@svgrid/enterprise 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +95 -95
- package/dist/ExpressionEditorHarness.svelte.d.ts +2 -2
- package/dist/SvAdvancedFilter.svelte.d.ts +2 -2
- package/dist/SvAlertRuleEditor.svelte.d.ts +2 -2
- package/dist/SvAlertsManager.svelte.d.ts +3 -3
- package/dist/SvAlertsPanel.svelte.d.ts +1 -1
- package/dist/SvAuthGate.svelte +115 -115
- package/dist/SvAuthGate.svelte.d.ts +1 -1
- package/dist/SvBoard.svelte.d.ts +1 -1
- package/dist/SvExportMenu.svelte +553 -553
- package/dist/SvExportMenu.svelte.d.ts +2 -2
- package/dist/SvExpressionEditor.svelte.d.ts +2 -2
- package/dist/SvFileInput.svelte +113 -113
- package/dist/SvGridAlerts.svelte.d.ts +2 -2
- package/dist/SvGridBoard.svelte +2358 -2358
- package/dist/SvGridBulkEditDrawer.svelte.d.ts +1 -1
- package/dist/SvGridEditPanel.svelte +1157 -1157
- package/dist/SvGridEditPanel.svelte.d.ts +3 -3
- package/dist/SvGridMasterDetail.svelte +116 -116
- package/dist/SvGridMasterDetail.svelte.d.ts +1 -1
- package/dist/SvGridScheduler.svelte +5358 -5358
- package/dist/SvImportDialog.svelte +1020 -1020
- package/dist/SvImportDialog.svelte.d.ts +2 -2
- package/dist/SvLookupInput.svelte +180 -180
- package/dist/SvLookupInput.svelte.d.ts +1 -1
- package/dist/SvPivotDesigner.svelte +1990 -1990
- package/dist/SvPivotDesigner.svelte.d.ts +2 -2
- package/dist/SvRecordDetail.svelte.d.ts +1 -1
- package/dist/SvSchedule.svelte.d.ts +1 -1
- package/dist/SvSchemaChart.svelte +234 -234
- package/dist/SvSchemaChart.svelte.d.ts +2 -2
- package/dist/SvSchemaDashboard.svelte +130 -130
- package/dist/SvSchemaDashboard.svelte.d.ts +3 -3
- package/dist/advanced-filter/expr-columns-from-grid.d.ts +1 -1
- package/dist/advanced-filter-enable.js +3 -3
- package/dist/alerts/alert-engine-attach.d.ts +2 -2
- package/dist/alerts/alert-engine-attach.js +3 -3
- package/dist/alerts/alert-engine.d.ts +1 -1
- package/dist/alerts/alert-engine.js +2 -2
- package/dist/alerts/alert-formats.d.ts +1 -1
- package/dist/alerts/alert-formats.js +1 -1
- package/dist/alerts/alert-observer.d.ts +3 -3
- package/dist/alerts/alert-observer.js +1 -1
- package/dist/alerts/alert-storage.d.ts +1 -1
- package/dist/alerts/alert-store.svelte.d.ts +1 -1
- package/dist/alerts/alert-types.d.ts +2 -2
- package/dist/alerts.js +2 -2
- package/dist/board.js +2 -2
- package/dist/cdn/svgrid-enterprise.svelte-external.js +1161 -1144
- package/dist/designer/assets/GridMenus-B1JtIN21.js +8 -0
- package/dist/designer/assets/SvDateRangeInput-C0iCCZ8o.css +1 -0
- package/dist/designer/assets/{SvDateRangeInput-CVn-yqrQ.js → SvDateRangeInput-CjO7nn_x.js} +1 -1
- package/dist/designer/assets/SvDateTimePicker-ByBD_ov6.js +1 -0
- package/dist/designer/assets/SvDateTimePicker-DPv09DIT.css +1 -0
- package/dist/designer/assets/SvField-YDLipR6O.css +1 -0
- package/dist/designer/assets/{SvField-BsqiA5me.js → SvField-cj1PFNgZ.js} +1 -1
- package/dist/designer/assets/{preload-helper-CG0n22O7.js → SvGrid.helpers-BgT-gnCo.js} +1 -1
- package/dist/designer/assets/SvGridCellEditor-0W1L2hJ1.js +2 -0
- package/dist/designer/assets/SvGridChart-DBOR4xcz.js +2 -0
- package/dist/designer/assets/SvGridChart-fkMWeh1J.css +1 -0
- package/dist/designer/assets/SvGridChartPanel-symrhNnR.js +11 -0
- package/dist/designer/assets/SvGridChartView-BmRxq6mU.js +1 -0
- package/dist/designer/assets/SvGridChartView-DUc-1RUf.css +1 -0
- package/dist/designer/assets/SvGridDropdown-Bb3HH2Aj.js +1 -0
- package/dist/designer/assets/SvGridDropdown-CcidB3rm.css +1 -0
- package/dist/designer/assets/SvListBox-1oUF6Iav.js +110 -0
- package/dist/designer/assets/SvListBox-BXfyqy4a.css +1 -0
- package/dist/designer/assets/cell-formatting-wr5wm7US.js +1 -0
- package/dist/designer/assets/chart-DXFganU8.js +1 -0
- package/dist/designer/assets/date-format-DGagAqRc.css +1 -0
- package/dist/designer/assets/{date-format-4DJvNtG2.js → date-format-onlYDsrY.js} +1 -1
- package/dist/designer/assets/export-format-D-eP4b2l.js +6 -0
- package/dist/designer/assets/{index-zUBix-JQ.js → index-C_a9Cj8Y.js} +2984 -141
- package/dist/designer/assets/index-k2stW6L8.css +1 -0
- package/dist/designer/assets/preload-helper-HclGiUj8.js +1 -0
- package/dist/designer/assets/src-D9p27OGC.js +58 -0
- package/dist/designer/index.html +22 -22
- package/dist/export-conditional.d.ts +1 -1
- package/dist/export-print.js +19 -19
- package/dist/export-xls.d.ts +2 -2
- package/dist/export.d.ts +2 -2
- package/dist/export.js +7 -7
- package/dist/expressions/builder-tree.d.ts +2 -2
- package/dist/expressions/builder-tree.js +1 -1
- package/dist/expressions/compile.d.ts +1 -1
- package/dist/import.js +1 -1
- package/dist/index.d.ts +53 -53
- package/dist/index.js +50 -50
- package/dist/install.d.ts +4 -4
- package/dist/install.js +11 -11
- package/dist/license.d.ts +3 -2
- package/dist/license.js +9 -4
- package/dist/node/studio.js +123 -114
- package/dist/pivot-chart.d.ts +1 -1
- package/dist/pivot-designer.d.ts +1 -1
- package/dist/pivot-enable.js +3 -3
- package/dist/print.d.ts +1 -1
- package/dist/print.js +4 -4
- package/dist/scheduler-config.d.ts +5 -5
- package/dist/scheduler-freebusy.d.ts +1 -1
- package/dist/scheduler-freebusy.js +1 -1
- package/dist/scheduler.js +2 -2
- package/dist/schema-designer.d.ts +1 -1
- package/dist/schema-designer.js +2 -2
- package/dist/selection-bar.js +2 -2
- package/dist/sources/aggregate.d.ts +1 -1
- package/dist/sources/auth-supabase.js +1 -1
- package/dist/sources/dashboard.d.ts +2 -2
- package/dist/sources/dashboard.js +1 -1
- package/dist/sources/index.d.ts +13 -13
- package/dist/sources/index.js +13 -13
- package/dist/sources/realtime-supabase.js +1 -1
- package/dist/sources/relation-lookup.d.ts +1 -1
- package/dist/sources/relation-lookup.js +1 -1
- package/dist/sources/rest-adapters.d.ts +1 -1
- package/dist/sources/rest-adapters.js +1 -1
- package/dist/sources/rest.d.ts +2 -2
- package/dist/sources/rest.js +3 -3
- package/dist/sources/supabase.d.ts +2 -2
- package/dist/sources/supabase.js +3 -3
- package/dist/sources/with-entity-rules.d.ts +1 -1
- package/dist/sources/with-entity-rules.js +1 -1
- package/dist/sources/with-relation-labels.d.ts +1 -1
- package/dist/studio/emit-project.js +2161 -2127
- package/dist/studio/emit-schema.js +369 -369
- package/dist/studio/index.d.ts +1 -1
- package/dist/studio/index.js +1 -1
- package/dist/studio/introspect-db.js +45 -45
- package/dist/studio/project.d.ts +10 -0
- package/dist/studio/samples/crm.js +6 -6
- package/dist/studio/samples/fleet.js +7 -7
- package/dist/studio/samples/insurance.js +9 -9
- package/dist/studio/samples/inventory.js +12 -12
- package/dist/studio/samples/projects.js +5 -5
- package/dist/studio/samples/support.js +8 -8
- package/dist/studio/scaffold-app.js +104 -104
- package/dist/studio/scaffold.js +151 -151
- package/dist/studio/ui-components.d.ts +7 -0
- package/dist/studio/ui-components.js +35 -0
- package/dist/sveltekit/in-memory.d.ts +3 -3
- package/dist/sveltekit/in-memory.js +4 -4
- package/dist/sveltekit/index.d.ts +6 -6
- package/dist/sveltekit/index.js +5 -5
- package/dist/sveltekit/query-plan.d.ts +1 -1
- package/dist/sveltekit/sql-source.d.ts +4 -4
- package/dist/sveltekit/sql-source.js +4 -4
- package/dist/sveltekit/sql.d.ts +1 -1
- package/dist/sveltekit/transport.d.ts +2 -2
- package/dist/sveltekit/transport.js +1 -1
- package/dist/upgrade-prompt.js +25 -25
- package/package.json +6 -3
- package/dist/designer/assets/GridMenus-Cgilexpk.js +0 -8
- package/dist/designer/assets/SvDateRangeInput-BV5OXYQ2.css +0 -1
- package/dist/designer/assets/SvDateTimePicker-BdioTrJQ.js +0 -1
- package/dist/designer/assets/SvDateTimePicker-CY8TK4BT.css +0 -1
- package/dist/designer/assets/SvField-BF-9TJSd.css +0 -1
- package/dist/designer/assets/SvGridCellEditor-dLY7_kk9.js +0 -2
- package/dist/designer/assets/SvGridChart-BEDNTdc5.js +0 -2
- package/dist/designer/assets/SvGridChart-Vu4Nvjiv.css +0 -1
- package/dist/designer/assets/SvGridChartPanel-x3lzSxuf.js +0 -10
- package/dist/designer/assets/SvGridChartView-CAKhPELi.js +0 -1
- package/dist/designer/assets/SvGridChartView-DX9HfkBR.css +0 -1
- package/dist/designer/assets/SvGridDropdown-CAYG7Y-O.js +0 -1
- package/dist/designer/assets/SvGridDropdown-Crwb2P3Q.css +0 -1
- package/dist/designer/assets/SvListBox-CVYQcLX9.js +0 -1
- package/dist/designer/assets/SvListBox-DgN8kvjt.css +0 -1
- package/dist/designer/assets/chart-DHEgt4lN.js +0 -1
- package/dist/designer/assets/date-format-Dzy4mTGh.css +0 -1
- package/dist/designer/assets/export-format-DwjuTfrQ.js +0 -6
- package/dist/designer/assets/index-Cp7fDJ3b.css +0 -1
- package/dist/designer/assets/js-scroller.svelte-Bhxqb3-c.js +0 -110
- package/dist/designer/assets/src-B7DNcoQK.css +0 -1
- package/dist/designer/assets/src-BoYyigAC.js +0 -2896
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/_svelte_metadata.json +0 -1
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/_metadata.json +0 -178
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/attachments-BOv1rBKp.js +0 -3875
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/attachments-BOv1rBKp.js.map +0 -1
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/constants-B9vgIdCd.js +0 -21
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/constants-B9vgIdCd.js.map +0 -1
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/dev-T1qbW_qD.js +0 -1938
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/dev-T1qbW_qD.js.map +0 -1
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/events-Bo11SfVK.js +0 -205
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/events-Bo11SfVK.js.map +0 -1
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/flags-X7D4vfrZ.js +0 -18
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/flags-X7D4vfrZ.js.map +0 -1
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/hydration-oyUje5i1.js +0 -264
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/hydration-oyUje5i1.js.map +0 -1
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/legacy-client-DeSQgSFm.js +0 -697
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/legacy-client-DeSQgSFm.js.map +0 -1
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/package.json +0 -3
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte.js +0 -134
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte.js.map +0 -1
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_animate.js +0 -55
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_animate.js.map +0 -1
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_attachments.js +0 -2
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_compiler.js +0 -46843
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_compiler.js.map +0 -1
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_easing.js +0 -237
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_easing.js.map +0 -1
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_events.js +0 -2
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal.js +0 -4
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal.js.map +0 -1
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_client.js +0 -7
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_disclose-version.js +0 -4
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_disclose-version.js.map +0 -1
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_flags_async.js +0 -5
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_flags_async.js.map +0 -1
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_flags_legacy.js +0 -5
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_flags_legacy.js.map +0 -1
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_flags_tracing.js +0 -5
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_flags_tracing.js.map +0 -1
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_internal_server.js +0 -6
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_legacy.js +0 -83
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_legacy.js.map +0 -1
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_motion.js +0 -559
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_motion.js.map +0 -1
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_reactivity.js +0 -24
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_reactivity.js.map +0 -1
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_reactivity_window.js +0 -122
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_reactivity_window.js.map +0 -1
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_server.js +0 -2
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_store.js +0 -89
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_store.js.map +0 -1
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_transition.js +0 -241
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/svelte_transition.js.map +0 -1
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/utils-BbWyXNk1.js +0 -4938
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/utils-BbWyXNk1.js.map +0 -1
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/utils-DI_fC7vt.js +0 -495
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/utils-DI_fC7vt.js.map +0 -1
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/validate-Dyr3lQv9.js +0 -190
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/validate-Dyr3lQv9.js.map +0 -1
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/version-_9FHH-LF.js +0 -8
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/version-_9FHH-LF.js.map +0 -1
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/warnings-CUbSPnyP.js +0 -138
- package/dist/studio/node_modules/.vite/vitest/be65d27ae088a0e03fd8e1331d90b01649464cb6/deps___vitest__/warnings-CUbSPnyP.js.map +0 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Deterministic - the caller supplies all dates. Reuses the interval algebra from
|
|
6
6
|
* scheduler-slots (`mergeIntervals` / `subtractIntervals`).
|
|
7
7
|
*/
|
|
8
|
-
import { type Interval } from './scheduler-slots';
|
|
8
|
+
import { type Interval } from './scheduler-slots.js';
|
|
9
9
|
export type { Interval };
|
|
10
10
|
/** Union of a set of busy intervals into a sorted, disjoint list (an alias of the
|
|
11
11
|
* slots merge, named for the free/busy domain). */
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Deterministic - the caller supplies all dates. Reuses the interval algebra from
|
|
6
6
|
* scheduler-slots (`mergeIntervals` / `subtractIntervals`).
|
|
7
7
|
*/
|
|
8
|
-
import { mergeIntervals, subtractIntervals } from './scheduler-slots';
|
|
8
|
+
import { mergeIntervals, subtractIntervals } from './scheduler-slots.js';
|
|
9
9
|
const MS_MIN = 60000;
|
|
10
10
|
/** Union of a set of busy intervals into a sorted, disjoint list (an alias of the
|
|
11
11
|
* slots merge, named for the free/busy domain). */
|
package/dist/scheduler.js
CHANGED
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
18
|
import { registerSchedulerView } from '@svgrid/grid';
|
|
19
|
-
import { isLicenseKeySet } from './license';
|
|
20
|
-
import { emitUnlicensedNudge } from './watermark';
|
|
19
|
+
import { isLicenseKeySet } from './license.js';
|
|
20
|
+
import { emitUnlicensedNudge } from './watermark.js';
|
|
21
21
|
import SvGridScheduler from './SvGridScheduler.svelte';
|
|
22
22
|
let enabled = false;
|
|
23
23
|
/**
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Pure (no Svelte, no DOM), mirroring the pivot-designer / edit-panel split.
|
|
8
8
|
* Every mutation returns a NEW schema so Svelte reactivity and undo stay simple.
|
|
9
9
|
*/
|
|
10
|
-
import type { EntityField, EntityFieldType, EntitySchema } from './schema';
|
|
10
|
+
import type { EntityField, EntityFieldType, EntitySchema } from './schema.js';
|
|
11
11
|
/** All field types the designer offers, in menu order. */
|
|
12
12
|
export declare const FIELD_TYPES: ReadonlyArray<EntityFieldType>;
|
|
13
13
|
/** A fresh field with a name unique within the schema. */
|
package/dist/schema-designer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { resolveIdField } from './schema';
|
|
2
|
-
import { generateRows } from './studio/sample-data';
|
|
1
|
+
import { resolveIdField } from './schema.js';
|
|
2
|
+
import { generateRows } from './studio/sample-data.js';
|
|
3
3
|
/** All field types the designer offers, in menu order. */
|
|
4
4
|
export const FIELD_TYPES = [
|
|
5
5
|
'text',
|
package/dist/selection-bar.js
CHANGED
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
24
|
import { registerSelectionBarView } from '@svgrid/grid';
|
|
25
|
-
import { isLicenseKeySet } from './license';
|
|
26
|
-
import { emitUnlicensedNudge } from './watermark';
|
|
25
|
+
import { isLicenseKeySet } from './license.js';
|
|
26
|
+
import { emitUnlicensedNudge } from './watermark.js';
|
|
27
27
|
import SvGridSelectionBar from './SvGridSelectionBar.svelte';
|
|
28
28
|
let enabled = false;
|
|
29
29
|
/**
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* consumes either.
|
|
7
7
|
*/
|
|
8
8
|
import type { RowData, ServerFilterModel } from '@svgrid/grid';
|
|
9
|
-
import type { EntitySchema } from '../schema';
|
|
9
|
+
import type { EntitySchema } from '../schema.js';
|
|
10
10
|
export type AggregateReduce = 'sum' | 'avg' | 'count' | 'min' | 'max';
|
|
11
11
|
export type AggregateRequest = {
|
|
12
12
|
/**
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* await auth.signIn(email, password)
|
|
10
10
|
* // ... auth.signOut(); auth.dispose() on unmount
|
|
11
11
|
*/
|
|
12
|
-
import { nudgeEnterprise } from '../license';
|
|
12
|
+
import { nudgeEnterprise } from '../license.js';
|
|
13
13
|
const userOf = (session) => session?.user ? { id: session.user.id, email: session.user.email } : null;
|
|
14
14
|
export function createSupabaseAuth(config) {
|
|
15
15
|
nudgeEnterprise('Studio'); // soft-gate; never blocks
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* / `getAggregate` seam), so nothing here re-implements aggregation.
|
|
8
8
|
*/
|
|
9
9
|
import type { RowData } from '@svgrid/grid';
|
|
10
|
-
import type { EntitySchema } from '../schema';
|
|
11
|
-
import { type AggregateReduce } from './aggregate';
|
|
10
|
+
import type { EntitySchema } from '../schema.js';
|
|
11
|
+
import { type AggregateReduce } from './aggregate.js';
|
|
12
12
|
import type { ChartType } from '@svgrid/grid';
|
|
13
13
|
/** A single-number tile: reduce `measure` over the rows (count ignores measure). */
|
|
14
14
|
export type KpiWidget = {
|
package/dist/sources/index.d.ts
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
* `ServerDataSource` over a specific backend, so the grid, edit form, sorting,
|
|
4
4
|
* filtering, and paging work identically regardless of where the data lives.
|
|
5
5
|
*/
|
|
6
|
-
export { normalizeFilters, type NormalizedFilter, type NormalizedPredicate } from './filters';
|
|
7
|
-
export { buildEntitySchema, pickLabelField, linkRelationLabels, type IntrospectedColumn, type ColumnReference, } from './schema-from-columns';
|
|
8
|
-
export { createSupabaseDataSource, type SupabaseDataSourceConfig, type SupabaseClientLike } from './supabase';
|
|
9
|
-
export { createRestDataSource, type RestDataSourceConfig } from './rest';
|
|
10
|
-
export { offsetLimitAdapter, dummyJsonAdapter, jsonServerAdapter, type RestAdapter, type OffsetLimitOptions, } from './rest-adapters';
|
|
11
|
-
export { introspectSupabaseTable, listSupabaseTables, type IntrospectSupabaseOptions } from './introspect-supabase';
|
|
12
|
-
export { createSupabaseRealtime, type SupabaseRealtimeConfig, type SupabaseRealtimeClientLike, type SupabaseRealtimeHandle, type RealtimeChannelLike, type RealtimeChange, } from './realtime-supabase';
|
|
13
|
-
export { createRelationLookup, type RelationLookup, type RelationLookupConfig, type RelationOption, } from './relation-lookup';
|
|
14
|
-
export { createSupabaseAuth, type SupabaseAuthConfig, type SupabaseAuthController, type SupabaseAuthClientLike, type AuthState, type AuthUser, } from './auth-supabase';
|
|
15
|
-
export { aggregateRows, chartFieldsFromSchema, type AggregateReduce, type AggregateRequest, type AggregateBucket, type AggregateSource, } from './aggregate';
|
|
16
|
-
export { withEntityRules } from './with-entity-rules';
|
|
17
|
-
export { withRelationLabels, type RelationLabelConfig } from './with-relation-labels';
|
|
18
|
-
export { reduceValue, kpiSeries, sparklinePoints, seriesDelta, formatKpiValue, dashboardFromSchema, type DashboardSpec, type DashboardWidget, type KpiWidget, type ChartWidget, } from './dashboard';
|
|
6
|
+
export { normalizeFilters, type NormalizedFilter, type NormalizedPredicate } from './filters.js';
|
|
7
|
+
export { buildEntitySchema, pickLabelField, linkRelationLabels, type IntrospectedColumn, type ColumnReference, } from './schema-from-columns.js';
|
|
8
|
+
export { createSupabaseDataSource, type SupabaseDataSourceConfig, type SupabaseClientLike } from './supabase.js';
|
|
9
|
+
export { createRestDataSource, type RestDataSourceConfig } from './rest.js';
|
|
10
|
+
export { offsetLimitAdapter, dummyJsonAdapter, jsonServerAdapter, type RestAdapter, type OffsetLimitOptions, } from './rest-adapters.js';
|
|
11
|
+
export { introspectSupabaseTable, listSupabaseTables, type IntrospectSupabaseOptions } from './introspect-supabase.js';
|
|
12
|
+
export { createSupabaseRealtime, type SupabaseRealtimeConfig, type SupabaseRealtimeClientLike, type SupabaseRealtimeHandle, type RealtimeChannelLike, type RealtimeChange, } from './realtime-supabase.js';
|
|
13
|
+
export { createRelationLookup, type RelationLookup, type RelationLookupConfig, type RelationOption, } from './relation-lookup.js';
|
|
14
|
+
export { createSupabaseAuth, type SupabaseAuthConfig, type SupabaseAuthController, type SupabaseAuthClientLike, type AuthState, type AuthUser, } from './auth-supabase.js';
|
|
15
|
+
export { aggregateRows, chartFieldsFromSchema, type AggregateReduce, type AggregateRequest, type AggregateBucket, type AggregateSource, } from './aggregate.js';
|
|
16
|
+
export { withEntityRules } from './with-entity-rules.js';
|
|
17
|
+
export { withRelationLabels, type RelationLabelConfig } from './with-relation-labels.js';
|
|
18
|
+
export { reduceValue, kpiSeries, sparklinePoints, seriesDelta, formatKpiValue, dashboardFromSchema, type DashboardSpec, type DashboardWidget, type KpiWidget, type ChartWidget, } from './dashboard.js';
|
package/dist/sources/index.js
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
* `ServerDataSource` over a specific backend, so the grid, edit form, sorting,
|
|
4
4
|
* filtering, and paging work identically regardless of where the data lives.
|
|
5
5
|
*/
|
|
6
|
-
export { normalizeFilters } from './filters';
|
|
7
|
-
export { buildEntitySchema, pickLabelField, linkRelationLabels, } from './schema-from-columns';
|
|
8
|
-
export { createSupabaseDataSource } from './supabase';
|
|
9
|
-
export { createRestDataSource } from './rest';
|
|
10
|
-
export { offsetLimitAdapter, dummyJsonAdapter, jsonServerAdapter, } from './rest-adapters';
|
|
11
|
-
export { introspectSupabaseTable, listSupabaseTables } from './introspect-supabase';
|
|
12
|
-
export { createSupabaseRealtime, } from './realtime-supabase';
|
|
13
|
-
export { createRelationLookup, } from './relation-lookup';
|
|
14
|
-
export { createSupabaseAuth, } from './auth-supabase';
|
|
15
|
-
export { aggregateRows, chartFieldsFromSchema, } from './aggregate';
|
|
16
|
-
export { withEntityRules } from './with-entity-rules';
|
|
17
|
-
export { withRelationLabels } from './with-relation-labels';
|
|
18
|
-
export { reduceValue, kpiSeries, sparklinePoints, seriesDelta, formatKpiValue, dashboardFromSchema, } from './dashboard';
|
|
6
|
+
export { normalizeFilters } from './filters.js';
|
|
7
|
+
export { buildEntitySchema, pickLabelField, linkRelationLabels, } from './schema-from-columns.js';
|
|
8
|
+
export { createSupabaseDataSource } from './supabase.js';
|
|
9
|
+
export { createRestDataSource } from './rest.js';
|
|
10
|
+
export { offsetLimitAdapter, dummyJsonAdapter, jsonServerAdapter, } from './rest-adapters.js';
|
|
11
|
+
export { introspectSupabaseTable, listSupabaseTables } from './introspect-supabase.js';
|
|
12
|
+
export { createSupabaseRealtime, } from './realtime-supabase.js';
|
|
13
|
+
export { createRelationLookup, } from './relation-lookup.js';
|
|
14
|
+
export { createSupabaseAuth, } from './auth-supabase.js';
|
|
15
|
+
export { aggregateRows, chartFieldsFromSchema, } from './aggregate.js';
|
|
16
|
+
export { withEntityRules } from './with-entity-rules.js';
|
|
17
|
+
export { withRelationLabels } from './with-relation-labels.js';
|
|
18
|
+
export { reduceValue, kpiSeries, sparklinePoints, seriesDelta, formatKpiValue, dashboardFromSchema, } from './dashboard.js';
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* coalesce bursts into a single refetch. For per-row effects (e.g. flashing a
|
|
18
18
|
* changed row) read the normalized event passed to `onChange`.
|
|
19
19
|
*/
|
|
20
|
-
import { nudgeEnterprise } from '../license';
|
|
20
|
+
import { nudgeEnterprise } from '../license.js';
|
|
21
21
|
export function createSupabaseRealtime(config) {
|
|
22
22
|
nudgeEnterprise('Studio'); // soft-gate; never blocks
|
|
23
23
|
const schema = config.schema ?? 'public';
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* `companyId` relation field renders a searchable picker instead of a raw input.
|
|
18
18
|
*/
|
|
19
19
|
import type { RowData, ServerDataSource } from '@svgrid/grid';
|
|
20
|
-
import { type EntitySchema } from '../schema';
|
|
20
|
+
import { type EntitySchema } from '../schema.js';
|
|
21
21
|
export type RelationOption = {
|
|
22
22
|
value: string;
|
|
23
23
|
label: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveIdField } from '../schema';
|
|
1
|
+
import { resolveIdField } from '../schema.js';
|
|
2
2
|
export function createRelationLookup(config) {
|
|
3
3
|
const pageSize = config.pageSize ?? 20;
|
|
4
4
|
const valueField = config.valueField ?? (config.schema ? resolveIdField(config.schema) : 'id');
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* `jsonServerAdapter` are ready-made presets for two very common shapes.
|
|
13
13
|
*/
|
|
14
14
|
import type { RowData } from '@svgrid/grid';
|
|
15
|
-
import type { RestDataSourceConfig } from './rest';
|
|
15
|
+
import type { RestDataSourceConfig } from './rest.js';
|
|
16
16
|
/** The parts of a REST config that describe a backend's wire format. */
|
|
17
17
|
export type RestAdapter<TData extends RowData> = Required<Pick<RestDataSourceConfig<TData>, 'buildQuery' | 'parse'>>;
|
|
18
18
|
export type OffsetLimitOptions = {
|
package/dist/sources/rest.d.ts
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
* where `sort` is a comma list with `-` for descending (e.g. `-createdAt,name`).
|
|
16
16
|
*/
|
|
17
17
|
import type { RowData, ServerRequest, ServerResult } from '@svgrid/grid';
|
|
18
|
-
import { type EntitySchema } from '../schema';
|
|
19
|
-
import type { WritableDataSource } from '../sveltekit/types';
|
|
18
|
+
import { type EntitySchema } from '../schema.js';
|
|
19
|
+
import type { WritableDataSource } from '../sveltekit/types.js';
|
|
20
20
|
export type RestDataSourceConfig<TData extends RowData> = {
|
|
21
21
|
/** Collection endpoint, e.g. `/api/customers`. */
|
|
22
22
|
url: string;
|
package/dist/sources/rest.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { resolveIdField } from '../schema';
|
|
2
|
-
import { nudgeEnterprise } from '../license';
|
|
3
|
-
import { normalizeFilters } from './filters';
|
|
1
|
+
import { resolveIdField } from '../schema.js';
|
|
2
|
+
import { nudgeEnterprise } from '../license.js';
|
|
3
|
+
import { normalizeFilters } from './filters.js';
|
|
4
4
|
const encodePredicate = (p) => {
|
|
5
5
|
if (p.op === 'in')
|
|
6
6
|
return `in:${p.values.join(',')}`;
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* stripped from inserts (it's database-generated).
|
|
14
14
|
*/
|
|
15
15
|
import type { RowData } from '@svgrid/grid';
|
|
16
|
-
import { type EntitySchema } from '../schema';
|
|
17
|
-
import type { WritableDataSource } from '../sveltekit/types';
|
|
16
|
+
import { type EntitySchema } from '../schema.js';
|
|
17
|
+
import type { WritableDataSource } from '../sveltekit/types.js';
|
|
18
18
|
/** The slice of a `supabase-js` client this adapter needs. */
|
|
19
19
|
export type SupabaseClientLike = {
|
|
20
20
|
from(table: string): any;
|
package/dist/sources/supabase.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { resolveIdField } from '../schema';
|
|
2
|
-
import { nudgeEnterprise } from '../license';
|
|
3
|
-
import { normalizeFilters } from './filters';
|
|
1
|
+
import { resolveIdField } from '../schema.js';
|
|
2
|
+
import { nudgeEnterprise } from '../license.js';
|
|
3
|
+
import { normalizeFilters } from './filters.js';
|
|
4
4
|
const sanitize = (term) => term.replace(/[%,()]/g, '');
|
|
5
5
|
export function createSupabaseDataSource(config) {
|
|
6
6
|
nudgeEnterprise('Studio'); // soft-gate; never blocks
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
* correct (a source must return the same row shape from all methods).
|
|
22
22
|
*/
|
|
23
23
|
import type { RowData, ServerDataSource } from '@svgrid/grid';
|
|
24
|
-
import { type EntitySchema } from '../schema';
|
|
24
|
+
import { type EntitySchema } from '../schema.js';
|
|
25
25
|
export declare function withEntityRules<TData extends RowData, S extends ServerDataSource<TData>>(source: S, schema: EntitySchema<TData>): S;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* correct.
|
|
15
15
|
*/
|
|
16
16
|
import type { RowData, ServerDataSource } from '@svgrid/grid';
|
|
17
|
-
import type { RelationLookup } from './relation-lookup';
|
|
17
|
+
import type { RelationLookup } from './relation-lookup.js';
|
|
18
18
|
export type RelationLabelConfig = {
|
|
19
19
|
/** Local foreign-key field to resolve. */
|
|
20
20
|
fk: string;
|