From 6e9c3b7b5d9fe6a3a972ea421713c62f0441458d Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 16 Apr 2021 11:06:21 +0100 Subject: [PATCH] Fix schema in when creating columns and use new spectrum form components in design section --- .../DataTable/modals/CreateEditColumn.svelte | 1 + .../design/PropertiesPanel/DesignView.svelte | 1 + .../DataProviderSelect.svelte | 16 ++--- .../PropertyControls/PropertyControl.svelte | 1 - .../PropertiesPanel/SettingsView.svelte | 7 +- .../design/PropertiesPanel/componentStyles.js | 69 +++++++++---------- .../design/[assetType]/_layout.svelte | 1 + 7 files changed, 45 insertions(+), 51 deletions(-) diff --git a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte index 11335eb4a6..0ecd667d5a 100644 --- a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte @@ -173,6 +173,7 @@ disabled={originalName} label="Type" bind:value={field.type} + on:change={handleTypeChange} options={[...Object.values(fieldDefinitions), { name: 'Auto Column', type: AUTO_COL }]} getOptionLabel={field => field.name} getOptionValue={field => field.type} /> diff --git a/packages/builder/src/components/design/PropertiesPanel/DesignView.svelte b/packages/builder/src/components/design/PropertiesPanel/DesignView.svelte index cf1816dc62..88c8eb6d8a 100644 --- a/packages/builder/src/components/design/PropertiesPanel/DesignView.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/DesignView.svelte @@ -105,6 +105,7 @@ position: relative; display: flex; min-height: 0; + flex: 1 1 auto; } .property-groups { diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/DataProviderSelect.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/DataProviderSelect.svelte index e773ba5e5d..3581658b0d 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/DataProviderSelect.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/DataProviderSelect.svelte @@ -13,13 +13,9 @@ ) - +