diff --git a/lerna.json b/lerna.json index a9cd175fd1..77e870260b 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "2.7.37-alpha.4", + "version": "2.7.37-alpha.10", "npmClient": "yarn", "packages": [ "packages/*" diff --git a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte index 8a4a6d3012..665175a435 100644 --- a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte @@ -182,6 +182,15 @@ indexes, }) dispatch("updatecolumns") + if ( + saveColumn.type === LINK_TYPE && + saveColumn.relationshipType === RelationshipTypes.MANY_TO_MANY + ) { + // Fetching the new tables + tables.fetch() + // Fetching the new relationships + datasources.fetch() + } if (originalName) { notifications.success("Column updated successfully") } else { diff --git a/packages/builder/src/components/common/bindings/DrawerBindableCombobox.svelte b/packages/builder/src/components/common/bindings/DrawerBindableCombobox.svelte index 55f7866453..edf65797c2 100644 --- a/packages/builder/src/components/common/bindings/DrawerBindableCombobox.svelte +++ b/packages/builder/src/components/common/bindings/DrawerBindableCombobox.svelte @@ -68,6 +68,7 @@ on:blur={() => dispatch("blur")} {placeholder} {error} + options={allOptions} /> {#if !disabled}
diff --git a/packages/builder/src/components/design/settings/componentSettings.js b/packages/builder/src/components/design/settings/componentSettings.js index 31f51bf468..b3b9fb6577 100644 --- a/packages/builder/src/components/design/settings/componentSettings.js +++ b/packages/builder/src/components/design/settings/componentSettings.js @@ -20,6 +20,7 @@ import ValidationEditor from "./controls/ValidationEditor/ValidationEditor.svelt import DrawerBindableInput from "components/common/bindings/DrawerBindableInput.svelte" import ColumnEditor from "./controls/ColumnEditor/ColumnEditor.svelte" import BasicColumnEditor from "./controls/ColumnEditor/BasicColumnEditor.svelte" +import GridColumnEditor from "./controls/ColumnEditor/GridColumnEditor.svelte" import BarButtonList from "./controls/BarButtonList.svelte" import FieldConfiguration from "./controls/FieldConfiguration/FieldConfiguration.svelte" @@ -47,6 +48,7 @@ const componentMap = { fieldConfiguration: FieldConfiguration, columns: ColumnEditor, "columns/basic": BasicColumnEditor, + "columns/grid": GridColumnEditor, "field/sortable": SortableFieldSelect, "field/string": FormFieldSelect, "field/number": FormFieldSelect, diff --git a/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/NavigateTo.svelte b/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/NavigateTo.svelte index dca2887fb4..edbdc53083 100644 --- a/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/NavigateTo.svelte +++ b/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/NavigateTo.svelte @@ -43,7 +43,9 @@ title="Destination" placeholder="/screen" value={parameters.url} - on:change={value => (parameters.url = value.detail)} + on:change={value => { + parameters.url = value.detail ? value.detail.trim() : value.detail + }} {bindings} options={urlOptions} appendBindingsAsOptions={false} @@ -55,7 +57,9 @@ title="Destination" placeholder="/url" value={parameters.url} - on:change={value => (parameters.url = value.detail)} + on:change={value => { + parameters.url = value.detail ? value.detail.trim() : value.detail + }} {bindings} />
diff --git a/packages/builder/src/components/design/settings/controls/ColumnEditor/ColumnDrawer.svelte b/packages/builder/src/components/design/settings/controls/ColumnEditor/ColumnDrawer.svelte index 6e57d20751..f249245b34 100644 --- a/packages/builder/src/components/design/settings/controls/ColumnEditor/ColumnDrawer.svelte +++ b/packages/builder/src/components/design/settings/controls/ColumnEditor/ColumnDrawer.svelte @@ -18,6 +18,7 @@ export let options = [] export let schema = {} export let allowCellEditing = true + export let allowReorder = true const flipDurationMs = 150 let dragDisabled = true @@ -110,6 +111,7 @@ {#each columns as column (column.id)}
diff --git a/packages/builder/src/components/design/settings/controls/ColumnEditor/GridColumnEditor.svelte b/packages/builder/src/components/design/settings/controls/ColumnEditor/GridColumnEditor.svelte new file mode 100644 index 0000000000..291a1b61a8 --- /dev/null +++ b/packages/builder/src/components/design/settings/controls/ColumnEditor/GridColumnEditor.svelte @@ -0,0 +1,10 @@ + + + diff --git a/packages/client/manifest.json b/packages/client/manifest.json index 8e7d2bf21f..649038c20e 100644 --- a/packages/client/manifest.json +++ b/packages/client/manifest.json @@ -5248,7 +5248,7 @@ "required": true }, { - "type": "columns/basic", + "type": "columns/grid", "label": "Columns", "key": "columns", "dependsOn": "table" @@ -5274,7 +5274,7 @@ { "type": "select", "label": "Row height", - "key": "initialRowHeight", + "key": "fixedRowHeight", "placeholder": "Default", "options": [ { diff --git a/packages/client/src/components/app/GridBlock.svelte b/packages/client/src/components/app/GridBlock.svelte index ae0acb50f0..dd67a5657b 100644 --- a/packages/client/src/components/app/GridBlock.svelte +++ b/packages/client/src/components/app/GridBlock.svelte @@ -12,7 +12,7 @@ export let initialFilter = null export let initialSortColumn = null export let initialSortOrder = null - export let initialRowHeight = null + export let fixedRowHeight = null export let columns = null const component = getContext("component") @@ -47,7 +47,7 @@ {initialFilter} {initialSortColumn} {initialSortOrder} - {initialRowHeight} + {fixedRowHeight} {columnWhitelist} {schemaOverrides} showControls={false} diff --git a/packages/frontend-core/src/components/grid/controls/SizeButton.svelte b/packages/frontend-core/src/components/grid/controls/SizeButton.svelte index eb9bf917d9..22e0c6c2e9 100644 --- a/packages/frontend-core/src/components/grid/controls/SizeButton.svelte +++ b/packages/frontend-core/src/components/grid/controls/SizeButton.svelte @@ -8,7 +8,8 @@ SmallRowHeight, } from "../lib/constants" - const { stickyColumn, columns, rowHeight, table } = getContext("grid") + const { stickyColumn, columns, rowHeight, table, fixedRowHeight } = + getContext("grid") // Some constants for column width options const smallColSize = 120 @@ -86,6 +87,7 @@
{#each rowSizeOptions as option} changeRowHeight(option.size)} @@ -118,15 +120,15 @@