Refactor record-field into ui sub-folder (#13888)
This PR prepares the refactor of record field definition and column definition. We need to separate the two concepts of FieldInput and FieldContext at the cell level, and the new RecordField concept that will replace FieldDefinition at the metadata and state level. So we create a new ui sub-folder in the already existing record-field folder, in order to separate those two concepts that are still very close.
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
||||
import { CurrencyCode } from '@/object-record/record-field/types/CurrencyCode';
|
||||
import { CurrencyCode } from '@/object-record/record-field/ui/types/CurrencyCode';
|
||||
import {
|
||||
type FieldActorValue,
|
||||
type FieldAddressValue,
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
type FieldLinksValue,
|
||||
type FieldPhonesValue,
|
||||
type FieldRichTextV2Value,
|
||||
} from '@/object-record/record-field/types/FieldMetadata';
|
||||
} from '@/object-record/record-field/ui/types/FieldMetadata';
|
||||
import { COMPOSITE_FIELD_SUB_FIELD_LABELS } from '@/settings/data-model/constants/CompositeFieldSubFieldLabel';
|
||||
import { type SettingsFieldTypeConfig } from '@/settings/data-model/constants/SettingsNonCompositeFieldTypeConfigs';
|
||||
import { type CompositeFieldType } from '@/settings/data-model/types/CompositeFieldType';
|
||||
|
||||
+5
-5
@@ -1,11 +1,9 @@
|
||||
import { type CurrencyCode } from '@/object-record/record-field/types/CurrencyCode';
|
||||
import { type CurrencyCode } from '@/object-record/record-field/ui/types/CurrencyCode';
|
||||
import {
|
||||
IconCoins,
|
||||
type IconComponent,
|
||||
IconCurrencyAfghani,
|
||||
IconCurrencyBahraini,
|
||||
IconCurrencyBaht,
|
||||
IconCurrencyForint,
|
||||
IconCurrencyDinar,
|
||||
IconCurrencyDirham,
|
||||
IconCurrencyDollar,
|
||||
@@ -18,6 +16,7 @@ import {
|
||||
IconCurrencyDram,
|
||||
IconCurrencyEuro,
|
||||
IconCurrencyFlorin,
|
||||
IconCurrencyForint,
|
||||
IconCurrencyFrank,
|
||||
IconCurrencyGuarani,
|
||||
IconCurrencyHryvnia,
|
||||
@@ -43,15 +42,16 @@ import {
|
||||
IconCurrencyRufiyaa,
|
||||
IconCurrencyRupee,
|
||||
IconCurrencyRupeeNepalese,
|
||||
IconCurrencyShekel,
|
||||
IconCurrencySom,
|
||||
IconCurrencyTaka,
|
||||
IconCurrencyTenge,
|
||||
IconCurrencyTugrik,
|
||||
IconCurrencySom,
|
||||
IconCurrencyShekel,
|
||||
IconCurrencyWon,
|
||||
IconCurrencyYen,
|
||||
IconCurrencyYuan,
|
||||
IconCurrencyZloty,
|
||||
type IconComponent,
|
||||
} from 'twenty-ui/display';
|
||||
|
||||
export const SETTINGS_FIELD_CURRENCY_CODES: Record<
|
||||
|
||||
+2
-2
@@ -11,12 +11,11 @@ import {
|
||||
type FieldSelectValue,
|
||||
type FieldTextValue,
|
||||
type FieldUUidValue,
|
||||
} from '@/object-record/record-field/types/FieldMetadata';
|
||||
} from '@/object-record/record-field/ui/types/FieldMetadata';
|
||||
import { DEFAULT_DATE_VALUE } from '@/settings/data-model/constants/DefaultDateValue';
|
||||
import { type SettingsFieldTypeCategoryType } from '@/settings/data-model/types/SettingsFieldTypeCategoryType';
|
||||
import { type SettingsNonCompositeFieldType } from '@/settings/data-model/types/SettingsNonCompositeFieldType';
|
||||
import {
|
||||
type IconComponent,
|
||||
IllustrationIconArray,
|
||||
IllustrationIconCalendarEvent,
|
||||
IllustrationIconCalendarTime,
|
||||
@@ -29,6 +28,7 @@ import {
|
||||
IllustrationIconText,
|
||||
IllustrationIconToggle,
|
||||
IllustrationIconUid,
|
||||
type IconComponent,
|
||||
} from 'twenty-ui/display';
|
||||
import { FieldMetadataType } from '~/generated-metadata/graphql';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user