diff --git a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte index 477ca1caa9..8583dbcab7 100644 --- a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte @@ -517,261 +517,258 @@ }) - - - {#if mounted} - { - if ( - !uneditable && - !(linkEditDisabled && editableColumn.type === LINK_TYPE) - ) { - editableColumn.name = e.target.value - } - }} - disabled={uneditable || - (linkEditDisabled && editableColumn.type === LINK_TYPE)} - error={errors?.name} - /> - {/if} - { + if ( + !uneditable && + !(linkEditDisabled && editableColumn.type === LINK_TYPE) + ) { + editableColumn.name = e.target.value } - return true }} + disabled={uneditable || + (linkEditDisabled && editableColumn.type === LINK_TYPE)} + error={errors?.name} /> + {/if} + - {:else if editableColumn.type === FieldType.OPTIONS} - - {:else if editableColumn.type === FieldType.LONGFORM} -
-
- - - - -
+ {#if editableColumn.type === FieldType.STRING} + + {:else if editableColumn.type === FieldType.OPTIONS} + + {:else if editableColumn.type === FieldType.LONGFORM} +
+
+ + + + +
- +
+ {:else if editableColumn.type === FieldType.ARRAY} + + {:else if editableColumn.type === DATE_TYPE && !editableColumn.autocolumn} +
+
+ +
+
+
- {:else if editableColumn.type === FieldType.ARRAY} - - {:else if editableColumn.type === DATE_TYPE && !editableColumn.autocolumn} -
-
- -
-
- -
-
+
-
-
- -
-
- -
+
+
+
- {#if !editableColumn.timeOnly} - {#if datasource?.source !== SourceName.ORACLE && datasource?.source !== SourceName.SQL_SERVER && !editableColumn.dateOnly} -
-
- - - - -
- +
+ +
+
+ {#if !editableColumn.timeOnly} + {#if datasource?.source !== SourceName.ORACLE && datasource?.source !== SourceName.SQL_SERVER && !editableColumn.dateOnly} +
+
+ + + +
- {/if} - - {/if} - {:else if editableColumn.type === FieldType.NUMBER && !editableColumn.autocolumn} -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- {:else if editableColumn.type === FieldType.LINK && !editableColumn.autocolumn} - - {:else if editableColumn.type === FORMULA_TYPE} - {#if !table.sql} -
-
- -
-
- (editableColumn.subtype = e.detail)} - options={Object.entries(autoColumnOptions)} - getOptionLabel={option => option[1].name} - getOptionValue={option => option[0]} - disabled={!availableAutoColumnKeys?.length || editableColumn.autocolumn} - error={errors?.subtype} - /> - {/if} - - {#if canBeRequired || canBeDisplay} -
- {#if canBeRequired} - {/if} +
+ {/if} + + {/if} + {:else if editableColumn.type === FieldType.NUMBER && !editableColumn.autocolumn} +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ {:else if editableColumn.type === FieldType.LINK && !editableColumn.autocolumn} + + {:else if editableColumn.type === FORMULA_TYPE} + {#if !table.sql} +
+
+ +
+
+ (editableColumn.subtype = e.detail)} + options={Object.entries(autoColumnOptions)} + getOptionLabel={option => option[1].name} + getOptionValue={option => option[0]} + disabled={!availableAutoColumnKeys?.length || editableColumn.autocolumn} + error={errors?.subtype} + /> + {/if} + + {#if canBeRequired || canBeDisplay} +
+ {#if canBeRequired} + {/if} - -
- +
+ {/if} + + +
+ {#if !uneditable && originalName != null} + + {/if} + + +