@svgrid/enterprise 2.0.4 → 2.2.0
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 +18 -6
- package/dist/cdn/svgrid-enterprise.svelte-external.js +14024 -6835
- package/dist/node/studio.js +7888 -2459
- package/package.json +9 -4
- package/src/SvGridMasterDetail.svelte +24 -3
- package/src/SvGridScheduler.svelte +4410 -0
- package/src/SvPivotDesigner.svelte +1990 -1045
- package/src/SvSchemaChart.svelte +10 -9
- package/src/ai.test.ts +522 -522
- package/src/ai.ts +202 -2
- package/src/index.ts +409 -384
- package/src/install.ts +10 -0
- package/src/pivot-chart.test.ts +86 -0
- package/src/pivot-chart.ts +112 -0
- package/src/scheduler.ts +37 -0
- package/src/scheduling.test.ts +194 -0
- package/src/scheduling.ts +293 -0
- package/src/sources/filters.ts +6 -0
- package/src/studio/HANDLERS-DESIGN.md +142 -0
- package/src/studio/cli.ts +7 -2
- package/src/studio/emit-project.test.ts +1447 -13
- package/src/studio/emit-project.ts +3995 -1273
- package/src/studio/emit-schema.ts +146 -29
- package/src/studio/index.ts +320 -195
- package/src/studio/project.test.ts +370 -0
- package/src/studio/project.ts +1146 -26
- package/src/studio/sample-data.ts +4 -1
- package/src/studio/samples/ats.ts +2 -2
- package/src/studio/samples/clinic.ts +4 -2
- package/src/studio/samples/crm.ts +16 -8
- package/src/studio/samples/events.ts +4 -2
- package/src/studio/samples/fleet.ts +4 -2
- package/src/studio/samples/gym.ts +4 -2
- package/src/studio/samples/hr.ts +3 -1
- package/src/studio/samples/live-data.ts +308 -308
- package/src/studio/samples/projects.ts +2 -2
- package/src/studio/samples/restaurant.ts +4 -2
- package/src/studio/samples/samples.test.ts +13 -5
- package/src/studio/samples/shared.ts +346 -305
- package/src/studio/samples/support.ts +3 -1
- package/src/studio/scaffold.test.ts +15 -1
- package/src/studio/scaffold.ts +16 -0
- package/src/studio/themes.ts +7 -0
- package/src/studio/ui-components.ts +472 -0
- package/src/sveltekit/transport.test.ts +26 -0
- package/src/sveltekit/transport.ts +50 -5
- package/dist/designer/assets/index-Dp44bTid.js +0 -939
- package/dist/designer/assets/index-RJp6x8tw.css +0 -1
- package/dist/designer/assets/jszip.min-CjMo-QGg.js +0 -2
- package/dist/designer/index.html +0 -13
package/src/index.ts
CHANGED
|
@@ -1,384 +1,409 @@
|
|
|
1
|
-
export {
|
|
2
|
-
setLicenseKey,
|
|
3
|
-
clearLicenseKey,
|
|
4
|
-
getLicenseKey,
|
|
5
|
-
isLicenseKeySet,
|
|
6
|
-
hasValidLicense,
|
|
7
|
-
assertEnterpriseLicensed,
|
|
8
|
-
nudgeEnterprise,
|
|
9
|
-
checkLicenseKey,
|
|
10
|
-
type LicenseInfo,
|
|
11
|
-
type LicenseStatus,
|
|
12
|
-
} from './license'
|
|
13
|
-
|
|
14
|
-
export {
|
|
15
|
-
exportGrid,
|
|
16
|
-
copyExportToClipboard,
|
|
17
|
-
type ExportFormat,
|
|
18
|
-
type ExportOptions,
|
|
19
|
-
type ExportColumn,
|
|
20
|
-
type ExportCellStyle,
|
|
21
|
-
type ExportStyles,
|
|
22
|
-
type ExportHeaderFooterLine,
|
|
23
|
-
type ExportSheet,
|
|
24
|
-
type ExportRowSource,
|
|
25
|
-
type ExportProgress,
|
|
26
|
-
type ExportResult,
|
|
27
|
-
type ClipboardFormat,
|
|
28
|
-
type ClipboardExportOptions,
|
|
29
|
-
} from './export'
|
|
30
|
-
export { default as SvExportMenu } from './SvExportMenu.svelte'
|
|
31
|
-
export { buildPdfDocDefinition, type PdfExportOptions, type PdfPageSize } from './export-pdf'
|
|
32
|
-
export { printGrid, type PrintOptions } from './print'
|
|
33
|
-
export {
|
|
34
|
-
importData,
|
|
35
|
-
readImportMatrix,
|
|
36
|
-
mapImportMatrix,
|
|
37
|
-
mapImportMatrixAsync,
|
|
38
|
-
autoMapColumns,
|
|
39
|
-
inferImportColumnTypes,
|
|
40
|
-
type ImportFormat,
|
|
41
|
-
type ImportFieldType,
|
|
42
|
-
type ImportOptions,
|
|
43
|
-
type ImportResult,
|
|
44
|
-
type ImportProgress,
|
|
45
|
-
type ImportColumnMap,
|
|
46
|
-
type ImportColumnTypes,
|
|
47
|
-
type ImportGridColumn,
|
|
48
|
-
type ImportRowError,
|
|
49
|
-
type ImportValidator,
|
|
50
|
-
} from './import'
|
|
51
|
-
export { default as SvImportDialog } from './SvImportDialog.svelte'
|
|
52
|
-
export { installEnterprise, type EnterpriseGridApi, type EnterpriseAIApi, type EnterprisePivotApi } from './install'
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
type
|
|
72
|
-
type
|
|
73
|
-
type
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
type
|
|
88
|
-
type
|
|
89
|
-
type
|
|
90
|
-
type
|
|
91
|
-
type
|
|
92
|
-
type
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
type
|
|
108
|
-
type
|
|
109
|
-
type
|
|
110
|
-
type
|
|
111
|
-
type
|
|
112
|
-
type
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
type
|
|
154
|
-
type
|
|
155
|
-
type
|
|
156
|
-
type
|
|
157
|
-
type
|
|
158
|
-
type
|
|
159
|
-
type
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
type
|
|
169
|
-
type
|
|
170
|
-
type
|
|
171
|
-
type
|
|
172
|
-
type
|
|
173
|
-
type
|
|
174
|
-
type
|
|
175
|
-
type
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
type
|
|
187
|
-
type
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
export {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
} from './
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
type
|
|
289
|
-
type
|
|
290
|
-
type
|
|
291
|
-
type
|
|
292
|
-
type
|
|
293
|
-
type
|
|
294
|
-
type
|
|
295
|
-
type
|
|
296
|
-
type
|
|
297
|
-
type
|
|
298
|
-
type
|
|
299
|
-
type
|
|
300
|
-
type
|
|
301
|
-
type
|
|
302
|
-
type
|
|
303
|
-
type
|
|
304
|
-
type
|
|
305
|
-
type
|
|
306
|
-
type
|
|
307
|
-
type
|
|
308
|
-
type
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
type
|
|
320
|
-
type
|
|
321
|
-
type
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
type
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
type
|
|
358
|
-
type
|
|
359
|
-
type
|
|
360
|
-
type
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
type
|
|
370
|
-
type
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
type
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
type
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
type
|
|
382
|
-
type
|
|
383
|
-
|
|
384
|
-
|
|
1
|
+
export {
|
|
2
|
+
setLicenseKey,
|
|
3
|
+
clearLicenseKey,
|
|
4
|
+
getLicenseKey,
|
|
5
|
+
isLicenseKeySet,
|
|
6
|
+
hasValidLicense,
|
|
7
|
+
assertEnterpriseLicensed,
|
|
8
|
+
nudgeEnterprise,
|
|
9
|
+
checkLicenseKey,
|
|
10
|
+
type LicenseInfo,
|
|
11
|
+
type LicenseStatus,
|
|
12
|
+
} from './license'
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
exportGrid,
|
|
16
|
+
copyExportToClipboard,
|
|
17
|
+
type ExportFormat,
|
|
18
|
+
type ExportOptions,
|
|
19
|
+
type ExportColumn,
|
|
20
|
+
type ExportCellStyle,
|
|
21
|
+
type ExportStyles,
|
|
22
|
+
type ExportHeaderFooterLine,
|
|
23
|
+
type ExportSheet,
|
|
24
|
+
type ExportRowSource,
|
|
25
|
+
type ExportProgress,
|
|
26
|
+
type ExportResult,
|
|
27
|
+
type ClipboardFormat,
|
|
28
|
+
type ClipboardExportOptions,
|
|
29
|
+
} from './export'
|
|
30
|
+
export { default as SvExportMenu } from './SvExportMenu.svelte'
|
|
31
|
+
export { buildPdfDocDefinition, type PdfExportOptions, type PdfPageSize } from './export-pdf'
|
|
32
|
+
export { printGrid, type PrintOptions } from './print'
|
|
33
|
+
export {
|
|
34
|
+
importData,
|
|
35
|
+
readImportMatrix,
|
|
36
|
+
mapImportMatrix,
|
|
37
|
+
mapImportMatrixAsync,
|
|
38
|
+
autoMapColumns,
|
|
39
|
+
inferImportColumnTypes,
|
|
40
|
+
type ImportFormat,
|
|
41
|
+
type ImportFieldType,
|
|
42
|
+
type ImportOptions,
|
|
43
|
+
type ImportResult,
|
|
44
|
+
type ImportProgress,
|
|
45
|
+
type ImportColumnMap,
|
|
46
|
+
type ImportColumnTypes,
|
|
47
|
+
type ImportGridColumn,
|
|
48
|
+
type ImportRowError,
|
|
49
|
+
type ImportValidator,
|
|
50
|
+
} from './import'
|
|
51
|
+
export { default as SvImportDialog } from './SvImportDialog.svelte'
|
|
52
|
+
export { installEnterprise, type EnterpriseGridApi, type EnterpriseAIApi, type EnterprisePivotApi } from './install'
|
|
53
|
+
// Scheduler / calendar view (Pro). `enableSchedulerView()` registers the
|
|
54
|
+
// renderer so `<SvGrid scheduler={...}>` shows a Month/Week/Day/Agenda calendar.
|
|
55
|
+
// The pure model helpers + config types live in @svgrid/grid; import them from there.
|
|
56
|
+
export { enableSchedulerView, SvGridScheduler } from './scheduler'
|
|
57
|
+
export {
|
|
58
|
+
createStagedEditing,
|
|
59
|
+
type StagedChange,
|
|
60
|
+
type StagedEditingApi,
|
|
61
|
+
type StagedEditingEvent,
|
|
62
|
+
} from './staged-editing'
|
|
63
|
+
export {
|
|
64
|
+
createScheduler,
|
|
65
|
+
parseCron,
|
|
66
|
+
cronMatches,
|
|
67
|
+
cronMatchesParsed,
|
|
68
|
+
isScheduleDue,
|
|
69
|
+
nextRun,
|
|
70
|
+
CRON_PRESETS,
|
|
71
|
+
type Schedule,
|
|
72
|
+
type Scheduler,
|
|
73
|
+
type SchedulerOptions,
|
|
74
|
+
} from './scheduling'
|
|
75
|
+
export { dismissUnlicensedNudge } from './watermark'
|
|
76
|
+
export {
|
|
77
|
+
showUpgradePrompt,
|
|
78
|
+
dismissUpgradePrompt,
|
|
79
|
+
type EnterpriseFeatureLabel,
|
|
80
|
+
} from './upgrade-prompt'
|
|
81
|
+
|
|
82
|
+
export {
|
|
83
|
+
createPivotModel,
|
|
84
|
+
pivotAggregators,
|
|
85
|
+
filterCollapsedPivotRows,
|
|
86
|
+
type PivotAggregator,
|
|
87
|
+
type PivotAggregatorId,
|
|
88
|
+
type PivotConfig,
|
|
89
|
+
type PivotResult,
|
|
90
|
+
type PivotRow,
|
|
91
|
+
type PivotRowKind,
|
|
92
|
+
type PivotValueConfig,
|
|
93
|
+
} from './pivot'
|
|
94
|
+
|
|
95
|
+
export {
|
|
96
|
+
titleCase,
|
|
97
|
+
resolveIdField,
|
|
98
|
+
schemaToColumns,
|
|
99
|
+
schemaToFormFields,
|
|
100
|
+
validateField,
|
|
101
|
+
applyComputed,
|
|
102
|
+
validateEntity,
|
|
103
|
+
type EntitySchema,
|
|
104
|
+
type EntityField,
|
|
105
|
+
type EntityFieldType,
|
|
106
|
+
type EntityHooks,
|
|
107
|
+
type FormFieldDescriptor,
|
|
108
|
+
type StudioEditorType,
|
|
109
|
+
type StandardSchemaV1,
|
|
110
|
+
type StandardSchemaResult,
|
|
111
|
+
type ValidationOp,
|
|
112
|
+
type ValidationRuleSpec,
|
|
113
|
+
} from './schema'
|
|
114
|
+
|
|
115
|
+
export {
|
|
116
|
+
planQuery,
|
|
117
|
+
coerce,
|
|
118
|
+
createInMemoryDataSource,
|
|
119
|
+
createKitDataSource,
|
|
120
|
+
createKitHandlers,
|
|
121
|
+
createSqlDataSource,
|
|
122
|
+
planToSql,
|
|
123
|
+
type QueryPlan,
|
|
124
|
+
type PlanPredicate,
|
|
125
|
+
type PlanOp,
|
|
126
|
+
type KitDataSourceOptions,
|
|
127
|
+
type KitHandlerOptions,
|
|
128
|
+
type KitHandlers,
|
|
129
|
+
type KitMessage,
|
|
130
|
+
type SqlDialect,
|
|
131
|
+
type SqlPlan,
|
|
132
|
+
type SqlExecutor,
|
|
133
|
+
type SqlDataSourceConfig,
|
|
134
|
+
type WritableDataSource,
|
|
135
|
+
} from './sveltekit'
|
|
136
|
+
|
|
137
|
+
export {
|
|
138
|
+
createSupabaseDataSource,
|
|
139
|
+
createRestDataSource,
|
|
140
|
+
offsetLimitAdapter,
|
|
141
|
+
dummyJsonAdapter,
|
|
142
|
+
jsonServerAdapter,
|
|
143
|
+
introspectSupabaseTable,
|
|
144
|
+
createSupabaseRealtime,
|
|
145
|
+
createRelationLookup,
|
|
146
|
+
createSupabaseAuth,
|
|
147
|
+
aggregateRows,
|
|
148
|
+
chartFieldsFromSchema,
|
|
149
|
+
normalizeFilters,
|
|
150
|
+
buildEntitySchema,
|
|
151
|
+
pickLabelField,
|
|
152
|
+
linkRelationLabels,
|
|
153
|
+
type SupabaseDataSourceConfig,
|
|
154
|
+
type SupabaseClientLike,
|
|
155
|
+
type RestDataSourceConfig,
|
|
156
|
+
type RestAdapter,
|
|
157
|
+
type OffsetLimitOptions,
|
|
158
|
+
type IntrospectSupabaseOptions,
|
|
159
|
+
type IntrospectedColumn,
|
|
160
|
+
type ColumnReference,
|
|
161
|
+
type NormalizedFilter,
|
|
162
|
+
type NormalizedPredicate,
|
|
163
|
+
type SupabaseRealtimeConfig,
|
|
164
|
+
type SupabaseRealtimeClientLike,
|
|
165
|
+
type SupabaseRealtimeHandle,
|
|
166
|
+
type RealtimeChannelLike,
|
|
167
|
+
type RealtimeChange,
|
|
168
|
+
type RelationLookup,
|
|
169
|
+
type RelationLookupConfig,
|
|
170
|
+
type RelationOption,
|
|
171
|
+
type SupabaseAuthConfig,
|
|
172
|
+
type SupabaseAuthController,
|
|
173
|
+
type SupabaseAuthClientLike,
|
|
174
|
+
type AuthState,
|
|
175
|
+
type AuthUser,
|
|
176
|
+
withEntityRules,
|
|
177
|
+
withRelationLabels,
|
|
178
|
+
reduceValue,
|
|
179
|
+
kpiSeries,
|
|
180
|
+
sparklinePoints,
|
|
181
|
+
seriesDelta,
|
|
182
|
+
formatKpiValue,
|
|
183
|
+
dashboardFromSchema,
|
|
184
|
+
type AggregateReduce,
|
|
185
|
+
type AggregateRequest,
|
|
186
|
+
type AggregateBucket,
|
|
187
|
+
type AggregateSource,
|
|
188
|
+
type DashboardSpec,
|
|
189
|
+
type DashboardWidget,
|
|
190
|
+
type KpiWidget,
|
|
191
|
+
type ChartWidget,
|
|
192
|
+
type RelationLabelConfig,
|
|
193
|
+
} from './sources'
|
|
194
|
+
|
|
195
|
+
export {
|
|
196
|
+
buildInitialValues,
|
|
197
|
+
controlKind,
|
|
198
|
+
editMode,
|
|
199
|
+
rowId,
|
|
200
|
+
toSubmitValues,
|
|
201
|
+
validateAll,
|
|
202
|
+
type EditMode,
|
|
203
|
+
type ControlKind,
|
|
204
|
+
} from './edit-panel'
|
|
205
|
+
export { default as SvGridEditPanel } from './SvGridEditPanel.svelte'
|
|
206
|
+
export { default as SvLookupInput } from './SvLookupInput.svelte'
|
|
207
|
+
export { default as SvFileInput } from './SvFileInput.svelte'
|
|
208
|
+
export { default as SvAuthGate } from './SvAuthGate.svelte'
|
|
209
|
+
export { default as SvSchemaChart } from './SvSchemaChart.svelte'
|
|
210
|
+
export { default as SvSchemaDashboard } from './SvSchemaDashboard.svelte'
|
|
211
|
+
export { default as SvBoard } from './SvBoard.svelte'
|
|
212
|
+
export { default as SvSchedule } from './SvSchedule.svelte'
|
|
213
|
+
export { default as SvRecordDetail } from './SvRecordDetail.svelte'
|
|
214
|
+
|
|
215
|
+
export {
|
|
216
|
+
FIELD_TYPES,
|
|
217
|
+
blankField,
|
|
218
|
+
addField,
|
|
219
|
+
removeField,
|
|
220
|
+
updateField,
|
|
221
|
+
moveField,
|
|
222
|
+
validateSchema,
|
|
223
|
+
isSchemaValid,
|
|
224
|
+
sampleRows,
|
|
225
|
+
type SchemaIssue,
|
|
226
|
+
type SchemaIssueLevel,
|
|
227
|
+
} from './schema-designer'
|
|
228
|
+
// NOTE: The visual designer components (SvSchemaDesigner, SvStudioDesigner) are
|
|
229
|
+
// the commercial "SvGrid Studio" seller. They live entirely in the PRIVATE
|
|
230
|
+
// website repo (website/src/lib/designer), NOT in this public package - they
|
|
231
|
+
// import the public API below. The Studio *codegen* below stays public because
|
|
232
|
+
// the MCP server depends on it.
|
|
233
|
+
// The Studio project model + codegen (also on the pure `@svgrid/enterprise/studio`
|
|
234
|
+
// subpath) - re-exported so the designer and its model come from one import.
|
|
235
|
+
export {
|
|
236
|
+
createProject,
|
|
237
|
+
defaultScreenFor,
|
|
238
|
+
emitStudioProject,
|
|
239
|
+
emitStudioAppBundle,
|
|
240
|
+
emitStudioApp,
|
|
241
|
+
sampleApps,
|
|
242
|
+
getSampleApp,
|
|
243
|
+
liveDataSamples,
|
|
244
|
+
getLiveDataSample,
|
|
245
|
+
type SampleApp,
|
|
246
|
+
sanitizeStudioProject,
|
|
247
|
+
buildStudioBugReport,
|
|
248
|
+
type BugReport,
|
|
249
|
+
type BugReportInput,
|
|
250
|
+
addBlock,
|
|
251
|
+
addBlockAt,
|
|
252
|
+
removeBlock,
|
|
253
|
+
moveBlock,
|
|
254
|
+
reorderBlock,
|
|
255
|
+
updateBlock,
|
|
256
|
+
addScreen,
|
|
257
|
+
removeScreen,
|
|
258
|
+
updateScreen,
|
|
259
|
+
duplicateScreen,
|
|
260
|
+
reorderScreen,
|
|
261
|
+
insertBlock,
|
|
262
|
+
addEntity,
|
|
263
|
+
removeEntity,
|
|
264
|
+
updateEntity,
|
|
265
|
+
setDataSource,
|
|
266
|
+
defaultEntitySource,
|
|
267
|
+
setEntityDataSource,
|
|
268
|
+
entityDataSource,
|
|
269
|
+
setTheme,
|
|
270
|
+
setThemePreset,
|
|
271
|
+
setShell,
|
|
272
|
+
sanitizeProject,
|
|
273
|
+
screenFromTemplate,
|
|
274
|
+
addScreenFromTemplate,
|
|
275
|
+
addFreestandingScreen,
|
|
276
|
+
serializeProject,
|
|
277
|
+
parseProject,
|
|
278
|
+
blockPalette,
|
|
279
|
+
validateProject,
|
|
280
|
+
isProjectValid,
|
|
281
|
+
entityOf,
|
|
282
|
+
studioThemes,
|
|
283
|
+
defaultStudioTheme,
|
|
284
|
+
getStudioTheme,
|
|
285
|
+
resolveThemeTokens,
|
|
286
|
+
isDarkTheme,
|
|
287
|
+
themeStyleString,
|
|
288
|
+
type StudioTheme,
|
|
289
|
+
type StudioProject,
|
|
290
|
+
type Screen,
|
|
291
|
+
type ScreenNav,
|
|
292
|
+
type Block,
|
|
293
|
+
type BlockKind,
|
|
294
|
+
type BlockConfig,
|
|
295
|
+
type GridConfig,
|
|
296
|
+
type GridEditing,
|
|
297
|
+
type GridDensity,
|
|
298
|
+
type GridAlign,
|
|
299
|
+
type PagerPosition,
|
|
300
|
+
type GridColumnConfig,
|
|
301
|
+
type ChartConfig,
|
|
302
|
+
type KpiConfig,
|
|
303
|
+
type KpiFormat,
|
|
304
|
+
type DashboardConfig,
|
|
305
|
+
type MasterDetailConfig,
|
|
306
|
+
type LookupConfig,
|
|
307
|
+
type Reduce,
|
|
308
|
+
type DataSourceKind,
|
|
309
|
+
type EntityDataSource,
|
|
310
|
+
type MemorySource,
|
|
311
|
+
type RestSource,
|
|
312
|
+
type SqlSource,
|
|
313
|
+
type SupabaseSource,
|
|
314
|
+
type RestMethod,
|
|
315
|
+
type ParamLocation,
|
|
316
|
+
type ParamType,
|
|
317
|
+
type RequestParam,
|
|
318
|
+
type SqlDialectKind,
|
|
319
|
+
type ProjectTheme,
|
|
320
|
+
type ShellConfig,
|
|
321
|
+
type ShellStyle,
|
|
322
|
+
type ScreenTemplate,
|
|
323
|
+
type PaletteItem,
|
|
324
|
+
type ProjectIssue,
|
|
325
|
+
type GeneratedFile,
|
|
326
|
+
} from './studio'
|
|
327
|
+
export {
|
|
328
|
+
buildConnectionString,
|
|
329
|
+
parseConnectionString,
|
|
330
|
+
redactConnectionString,
|
|
331
|
+
isFileDialect,
|
|
332
|
+
DRIVER_PACKAGE,
|
|
333
|
+
DEFAULT_PORT,
|
|
334
|
+
countTableRows,
|
|
335
|
+
probeConnection,
|
|
336
|
+
type SqlConnectionParts,
|
|
337
|
+
type TableRowCount,
|
|
338
|
+
type SqlDialectName,
|
|
339
|
+
} from './studio'
|
|
340
|
+
|
|
341
|
+
export {
|
|
342
|
+
buildDisplayRows,
|
|
343
|
+
isDetailRow,
|
|
344
|
+
toggleExpanded,
|
|
345
|
+
type DetailRow,
|
|
346
|
+
} from './master-detail'
|
|
347
|
+
export { default as SvGridMasterDetail } from './SvGridMasterDetail.svelte'
|
|
348
|
+
|
|
349
|
+
export { default as SvPivotDesigner } from './SvPivotDesigner.svelte'
|
|
350
|
+
export {
|
|
351
|
+
ALL_AGGREGATORS,
|
|
352
|
+
AGG_LABEL,
|
|
353
|
+
EMPTY_LAYOUT,
|
|
354
|
+
defaultLayoutFor,
|
|
355
|
+
type PivotField,
|
|
356
|
+
type PivotValueChip,
|
|
357
|
+
type PivotFilterChip,
|
|
358
|
+
type PivotLayout,
|
|
359
|
+
type PivotPreset,
|
|
360
|
+
type Well,
|
|
361
|
+
} from './pivot-designer'
|
|
362
|
+
|
|
363
|
+
export {
|
|
364
|
+
// Provider plumbing
|
|
365
|
+
setAIProvider,
|
|
366
|
+
getAIProvider,
|
|
367
|
+
hasAIProvider,
|
|
368
|
+
mockAIProvider,
|
|
369
|
+
type AIProvider,
|
|
370
|
+
type AIRequest,
|
|
371
|
+
type AITask,
|
|
372
|
+
// Filter
|
|
373
|
+
aiFilter,
|
|
374
|
+
type AIFilterOptions,
|
|
375
|
+
type AIFilterResult,
|
|
376
|
+
type AIFilterClause,
|
|
377
|
+
type AISortClause,
|
|
378
|
+
// Smart fill
|
|
379
|
+
aiSmartFill,
|
|
380
|
+
type AISmartFillOptions,
|
|
381
|
+
type AISmartFillResult,
|
|
382
|
+
type AISmartFillExample,
|
|
383
|
+
// Summarize
|
|
384
|
+
aiSummarize,
|
|
385
|
+
type AISummarizeOptions,
|
|
386
|
+
type AISummarizeTarget,
|
|
387
|
+
type AISummary,
|
|
388
|
+
// Classify
|
|
389
|
+
aiClassify,
|
|
390
|
+
type AIClassifyOptions,
|
|
391
|
+
type AIClassifyResult,
|
|
392
|
+
// Natural-language export
|
|
393
|
+
aiExport,
|
|
394
|
+
type AIExportOptions,
|
|
395
|
+
type AIExportPlan,
|
|
396
|
+
// Anomaly detection
|
|
397
|
+
aiFindAnomalies,
|
|
398
|
+
type AIAnomaly,
|
|
399
|
+
type AIAnomalyOptions,
|
|
400
|
+
type AIAnomalyResult,
|
|
401
|
+
// Natural-language chart ("chart this")
|
|
402
|
+
aiChart,
|
|
403
|
+
enableAiCharting,
|
|
404
|
+
disableAiCharting,
|
|
405
|
+
type AIChartOptions,
|
|
406
|
+
type AIChartPlan,
|
|
407
|
+
type AIChartType,
|
|
408
|
+
} from './ai'
|
|
409
|
+
export { pivotToChartSpec, type PivotChartOptions } from './pivot-chart'
|