@ic3/reporting-api 8.0.0-alpha.9 → 8.0.0-rc.4

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.
Files changed (79) hide show
  1. package/dist/ApiUtils.d.ts +10 -0
  2. package/dist/ApiUtils.js +25 -1
  3. package/dist/ApiUtils.js.map +1 -1
  4. package/dist/INotification.d.ts +33 -0
  5. package/dist/INotification.js +3 -0
  6. package/dist/INotification.js.map +1 -0
  7. package/dist/IPluginDefinition.d.ts +4 -1
  8. package/dist/IReporting.d.ts +43 -4
  9. package/dist/IThemeManager.d.ts +1 -1
  10. package/dist/ITidyTableTransformation.d.ts +20 -1
  11. package/dist/ITypes.d.ts +3 -0
  12. package/dist/ITypes.js +3 -0
  13. package/dist/ITypes.js.map +1 -0
  14. package/dist/IWidgetVariantManager.d.ts +1 -1
  15. package/dist/LazyTreeView.d.ts +43 -1
  16. package/dist/LazyTreeView.js +5 -1
  17. package/dist/LazyTreeView.js.map +1 -1
  18. package/dist/Loader.d.ts +10 -0
  19. package/dist/Loader.js +33 -0
  20. package/dist/Loader.js.map +1 -0
  21. package/dist/PublicContext.d.ts +75 -10
  22. package/dist/PublicContext.js.map +1 -1
  23. package/dist/PublicLayout.d.ts +13 -29
  24. package/dist/PublicTemplate.d.ts +161 -58
  25. package/dist/PublicTemplate.js +16 -1
  26. package/dist/PublicTemplate.js.map +1 -1
  27. package/dist/PublicTemplateForm.d.ts +183 -20
  28. package/dist/PublicTemplateForm.js +7 -1
  29. package/dist/PublicTemplateForm.js.map +1 -1
  30. package/dist/PublicTheme.d.ts +165 -69
  31. package/dist/PublicTheme.js.map +1 -1
  32. package/dist/PublicTidyColumn.d.ts +331 -259
  33. package/dist/PublicTidyColumn.js +48 -2
  34. package/dist/PublicTidyColumn.js.map +1 -1
  35. package/dist/PublicTidyHistogram.d.ts +24 -0
  36. package/dist/PublicTidyHistogram.js +77 -0
  37. package/dist/PublicTidyHistogram.js.map +1 -0
  38. package/dist/PublicTidyMath.d.ts +49 -45
  39. package/dist/PublicTidyMath.js +0 -280
  40. package/dist/PublicTidyMath.js.map +1 -1
  41. package/dist/PublicTidyTable.d.ts +170 -154
  42. package/dist/PublicTidyTableInteractions.d.ts +34 -23
  43. package/dist/PublicTidyTableInteractions.js +5 -4
  44. package/dist/PublicTidyTableInteractions.js.map +1 -1
  45. package/dist/PublicTidyTableTypes.d.ts +133 -55
  46. package/dist/PublicTidyTableTypes.js +35 -18
  47. package/dist/PublicTidyTableTypes.js.map +1 -1
  48. package/dist/PublicTidyTree.d.ts +27 -37
  49. package/dist/PublicTidyTree.js +30 -58
  50. package/dist/PublicTidyTree.js.map +1 -1
  51. package/dist/RemoteContainerUtils.d.ts +1 -1
  52. package/dist/RemoteContainerUtils.js +9 -1
  53. package/dist/RemoteContainerUtils.js.map +1 -1
  54. package/dist/index.d.ts +12 -0
  55. package/dist/index.js +12 -0
  56. package/dist/index.js.map +1 -1
  57. package/dist/theme/ThemeFilterAutocomplete.d.ts +30 -0
  58. package/dist/theme/ThemeFilterAutocomplete.js +23 -0
  59. package/dist/theme/ThemeFilterAutocomplete.js.map +1 -0
  60. package/dist/theme/ThemeFilterButtons.d.ts +14 -2
  61. package/dist/theme/ThemeFilterButtons.js +4 -0
  62. package/dist/theme/ThemeFilterButtons.js.map +1 -1
  63. package/dist/theme/ThemeFilterCheckboxes.d.ts +18 -0
  64. package/dist/theme/ThemeFilterCheckboxes.js +11 -0
  65. package/dist/theme/ThemeFilterCheckboxes.js.map +1 -0
  66. package/dist/theme/ThemeFilterTree.d.ts +70 -0
  67. package/dist/theme/ThemeFilterTree.js +11 -0
  68. package/dist/theme/ThemeFilterTree.js.map +1 -0
  69. package/dist/theme/ThemeGoogleMapMarker.d.ts +51 -0
  70. package/dist/theme/ThemeGoogleMapMarker.js +3 -0
  71. package/dist/theme/ThemeGoogleMapMarker.js.map +1 -0
  72. package/dist/theme/ThemeHtmlBox.d.ts +7 -1
  73. package/dist/theme/ThemePivotTable.d.ts +23 -0
  74. package/dist/theme/ThemePivotTable.js +21 -0
  75. package/dist/theme/ThemePivotTable.js.map +1 -0
  76. package/dist/theme/ThemeTable.d.ts +99 -0
  77. package/dist/theme/ThemeTable.js +169 -0
  78. package/dist/theme/ThemeTable.js.map +1 -0
  79. package/package.json +9 -8
@@ -1,14 +1,20 @@
1
1
  import { IWidgetEditorPublicContext } from "./PublicContext";
2
2
  import { ITidyColumn } from "./PublicTidyColumn";
3
3
  import * as React from "react";
4
- import { AutocompleteRenderInputParams, AutocompleteRenderOptionState } from "@material-ui/core/Autocomplete/Autocomplete";
5
- import { TidyTableMappingCoordinate } from "./PublicTidyTableTypes";
4
+ import { AutocompleteRenderInputParams, AutocompleteRenderOptionState } from "@mui/material/Autocomplete/Autocomplete";
5
+ import { TidyColumnsType, TidyTableColumnSelector } from "./PublicTidyTableTypes";
6
6
  export declare function formFieldIsSelection(field: IFormFieldDef<any>): boolean;
7
7
  export interface IFormFieldDef<DEFAULT_VALUE_TYPE> {
8
8
  /**
9
9
  * The path of the field within the edited bean.
10
10
  */
11
11
  fieldPath: string;
12
+ /**
13
+ * Default: false ,
14
+ *
15
+ * If defaultValue is defined,
16
+ */
17
+ mandatory?: boolean;
12
18
  /**
13
19
  * The default value defined at field level (note: can be defined at Theme level as well).
14
20
  */
@@ -19,6 +25,9 @@ export interface IFormFieldDef<DEFAULT_VALUE_TYPE> {
19
25
  defaultValuePath?: string;
20
26
  /**
21
27
  * The optional group a field belongs too
28
+ *
29
+ * @see IFormGroupsFieldDef
30
+ * @see IFormBooleanFieldDef
22
31
  */
23
32
  group?: string;
24
33
  /**
@@ -37,10 +46,6 @@ export interface IFormFieldDef<DEFAULT_VALUE_TYPE> {
37
46
  * Override default localization.
38
47
  */
39
48
  fieldDescription?: string;
40
- /**
41
- * Default: false
42
- */
43
- mandatory?: boolean;
44
49
  /**
45
50
  * Default: false
46
51
  */
@@ -48,7 +53,7 @@ export interface IFormFieldDef<DEFAULT_VALUE_TYPE> {
48
53
  /**
49
54
  * An optional field path value. The value of this field depends on the value of the dependsOn field.
50
55
  */
51
- dependsOn?: string;
56
+ dependsOn?: string | string[];
52
57
  /**
53
58
  * When defined a function that returns the visibility of the field according to the dependsOn value.
54
59
  */
@@ -59,6 +64,8 @@ export interface IFormFieldDef<DEFAULT_VALUE_TYPE> {
59
64
  visibility?: boolean | ((context: IWidgetEditorPublicContext) => boolean);
60
65
  /**
61
66
  * When defined the content of the field is translated (using context.translateContent).
67
+ *
68
+ * Only works for chart/widgetOptions !!
62
69
  */
63
70
  translated?: boolean;
64
71
  }
@@ -80,7 +87,13 @@ export declare type FormFields<T extends FormFieldObject> = {
80
87
  defaultValue: unknown;
81
88
  } | {
82
89
  mandatory: true;
83
- }) & (Required<T>[key] extends FormFieldObject ? Omit<IFormEmbeddedFieldDef<Required<T>[key]>, 'fieldPath'> : Required<T>[key] extends IPaletteDef ? Omit<IFormPaletteEditorFieldDef, 'fieldPath'> : Required<T>[key] extends IColorDef ? Omit<IFormColorEditorFieldDef, 'fieldPath'> : Required<T>[key] extends TidyTableMappingCoordinate[] ? Omit<IFormColumnCoordinateFieldDef, 'fieldPath'> : Required<T>[key] extends TidyTableMappingCoordinate ? Omit<IFormColumnCoordinateFieldDef, 'fieldPath'> : Required<T>[key] extends boolean ? Omit<IFormBooleanFieldDef, 'fieldPath'> : Required<T>[key] extends number ? Omit<IFormNumberFieldDef, 'fieldPath'> : Required<T>[key] extends string ? Omit<IFormOptionFieldSingleDef, 'fieldPath'> | Omit<IFormStringFieldDef, 'fieldPath'> | Omit<IFormWidgetVariantFieldDef, 'fieldPath'> | Omit<IFormTidyTableTextRowExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableNumericRowExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableHtmlRowExprFieldDef, 'fieldPath'> | Omit<IFormColorEditorFieldDef, 'fieldPath'> | Omit<IFormJsFieldDef, 'fieldPath'> | Omit<IFormMarkdownFieldDef, 'fieldPath'> : Required<T>[key] extends string[] ? Omit<IFormOptionFieldMultipleDef, 'fieldPath'> | Omit<IFormPaletteEditorFieldDef, 'fieldPath'> : never);
90
+ }) & (Required<T>[key] extends FormFieldObject ? unknown : {
91
+ defaultValue?: any;
92
+ mandatory?: true;
93
+ } | {
94
+ defaultValue?: any;
95
+ mandatory?: false;
96
+ }) & (Required<T>[key] extends FormFieldObject ? Omit<IFormEmbeddedFieldDef<Required<T>[key]>, 'fieldPath'> : Required<T>[key] extends IPaletteDef ? Omit<IFormPaletteEditorFieldDef, 'fieldPath'> : Required<T>[key] extends IColorDef ? Omit<IFormColorEditorFieldDef, 'fieldPath'> : Required<T>[key] extends TidyTableColumnSelector[] ? Omit<IFormColumnChooserFieldDef, 'fieldPath'> : Required<T>[key] extends TidyTableColumnSelector ? Omit<IFormColumnChooserFieldDef, 'fieldPath'> : Required<T>[key] extends boolean ? Omit<IFormBooleanFieldDef, 'fieldPath'> : Required<T>[key] extends number ? Omit<IFormNumberFieldDef, 'fieldPath'> : Required<T>[key] extends string ? Omit<IFormOptionFieldSingleDef, 'fieldPath'> | Omit<IFormStringFieldDef, 'fieldPath'> | Omit<IFormFormatterPickerFieldDef, 'fieldPath'> | Omit<IFormWidgetVariantFieldDef, 'fieldPath'> | Omit<IFormTidyTableTextExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableTextRowExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableHtmlRowExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableHtmlExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableNumericExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableNumericRowExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableColorRowExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableStringRowExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableScaleRowExprFieldDef, 'fieldPath'> | Omit<IFormJsFieldDef, 'fieldPath'> | Omit<IFormJsonFieldDef, 'fieldPath'> | Omit<IFormMarkdownFieldDef, 'fieldPath'> : Required<T>[key] extends string[] ? Omit<IFormOptionFieldMultipleDef, 'fieldPath'> | Omit<IFormGroupsFieldDef, 'fieldPath'> : never);
84
97
  };
85
98
  export declare enum IFormFieldGroupTypes {
86
99
  Selection = "selection",
@@ -105,9 +118,9 @@ export declare type FormFieldType =
105
118
  */
106
119
  "color" |
107
120
  /**
108
- * @see IFormColumnCoordinateFieldDef
121
+ * @see IFormColumnChooserFieldDef
109
122
  */
110
- "columnCoordinate" |
123
+ "columnsChooser" |
111
124
  /**
112
125
  * @see IFormColumnSelectionFieldDef
113
126
  */
@@ -124,6 +137,10 @@ export declare type FormFieldType =
124
137
  * @see IFormFileUploaderFieldDef
125
138
  */
126
139
  "fileUploader" |
140
+ /**
141
+ * @see IFormFormatterPickerFieldDef
142
+ */
143
+ "formatterPicker" |
127
144
  /**
128
145
  * @see IFormBooleanFieldDef
129
146
  */
@@ -136,6 +153,10 @@ export declare type FormFieldType =
136
153
  * @see IFormJsFieldDef
137
154
  */
138
155
  "js" |
156
+ /**
157
+ * @see IFormJsonFieldDef
158
+ */
159
+ "json" |
139
160
  /**
140
161
  * @see IFormMarkdownFieldDef
141
162
  */
@@ -188,6 +209,14 @@ export declare type FormFieldType =
188
209
  * @see IFormTidyTableNumericRowExprFieldDef
189
210
  */
190
211
  "tidyTableNumericRowExpr" |
212
+ /**
213
+ * @see IFormTidyTableStringRowExprFieldDef
214
+ */
215
+ "tidyTableStringRowExpr" |
216
+ /**
217
+ * @see IFormTidyTableColorRowExprFieldDef
218
+ */
219
+ "tidyTableColorRowExpr" |
191
220
  /**
192
221
  * @see IFormTidyTableScaleRowExprFieldDef
193
222
  */
@@ -204,7 +233,7 @@ export declare type FormFieldType =
204
233
  * @see IFormWidgetVariantFieldDef
205
234
  */
206
235
  "widgetVariant";
207
- export declare type FormFieldTidyTableExprType = "tidyTableHtmlExpr" | "tidyTableHtmlRowExpr" | "tidyTableNumericExpr" | "tidyTableNumericRowExpr" | "tidyTableScaleRowExpr" | "tidyTableTextExpr" | "tidyTableTextRowExpr";
236
+ export declare type FormFieldTidyTableExprType = "tidyTableHtmlExpr" | "tidyTableHtmlRowExpr" | "tidyTableNumericExpr" | "tidyTableNumericRowExpr" | "tidyTableScaleRowExpr" | "tidyTableTextExpr" | "tidyTableTextRowExpr" | "tidyTableStringRowExpr" | "tidyTableColorRowExpr";
208
237
  export declare function isTidyTableExpr(type: FormFieldType): type is FormFieldTidyTableExprType;
209
238
  export declare function isTidyTableExprTable(type: FormFieldType): boolean;
210
239
  export declare function isTidyTableExprRow(type: FormFieldType): boolean;
@@ -220,9 +249,9 @@ export declare enum AutocompleteNoOptionsText {
220
249
  NO_OPTIONS = "NO_OPTIONS",
221
250
  NO_QUERY_RESULT = "NO_QUERY_RESULT"
222
251
  }
223
- export declare type CodeMirrorMode = "plain" | "mdx" | "sql" | "js" | "csv" | "md" | FormFieldTidyTableExprType;
252
+ export declare type CodeMirrorMode = "plain" | "mdx" | "sql" | "js" | "json" | "csv" | "md" | FormFieldTidyTableExprType;
224
253
  export declare function isCodeMirrorModeExpr(mode: CodeMirrorMode): boolean;
225
- export declare type FormFieldDialogEditorModelType = "unknown" | "markdown" | FormFieldTidyTableExprType;
254
+ export declare type FormFieldDialogEditorModelType = "unknown" | "markdown" | "mdxExpression" | FormFieldTidyTableExprType;
226
255
  export interface IColorDef {
227
256
  /**
228
257
  * aka. name
@@ -264,10 +293,15 @@ export interface IFormAutocompleteFieldDef<OPTION> extends IFormFieldDef<OPTION>
264
293
  noOptionsText?: AutocompleteNoOptionsText;
265
294
  renderInput?: (params: AutocompleteRenderInputParams) => React.ReactNode;
266
295
  renderOption?: (props: React.HTMLAttributes<HTMLLIElement>, option: OPTION, state: AutocompleteRenderOptionState, onClose: () => void) => React.ReactNode;
296
+ disableClearable?: boolean;
267
297
  };
268
298
  }
269
299
  /**
300
+ * The "groupBoolean" allows for using that field as a group header and as a way
301
+ * to enable/disable the options in the group.
302
+ *
270
303
  * @see FormFieldDef
304
+ * @see IFormGroupsFieldDef
271
305
  */
272
306
  export interface IFormBooleanFieldDef extends IFormFieldDef<boolean> {
273
307
  fieldType: "boolean" | "groupBoolean";
@@ -280,14 +314,93 @@ export interface IFormColorEditorFieldDef extends IFormFieldDef<IColorDef> {
280
314
  }
281
315
  /**
282
316
  * @see FormFieldDef
317
+ *
318
+ * Use the fieldPath to access the column directly in the tidy table with table.getColumnByAlias(...).
319
+ * If multiple columns are in this field, it returns the first column.
320
+ *
321
+ * If the columns chooser is mandatory, the widget or transformation returns an error if there is no column either
322
+ * selected by the user or in the fallback.
323
+ *
283
324
  */
284
- export interface IFormColumnCoordinateFieldDef extends IFormFieldDef<never> {
285
- fieldType: "columnCoordinate";
325
+ export declare type IFormColumnChooserFieldDef = IFormColumnChooserSingleFieldDef | IFormColumnChooserMultipleFieldDef;
326
+ interface IFormColumnChooserSingleFieldDef extends IFormFieldDef<TidyTableColumnSelector> {
327
+ fieldType: "columnsChooser";
286
328
  editorConf?: {
287
- multiple?: boolean;
329
+ /**
330
+ * The user can select multiple columns / selectors
331
+ */
332
+ multiple?: false;
333
+ /**
334
+ * The user can select the same column more than once
335
+ */
288
336
  allowDuplicate?: boolean;
289
- allowedTypes?: (column: ITidyColumn) => boolean;
337
+ /**
338
+ * Only columns of this/these type(s) are allowed.
339
+ */
340
+ allowedTypes?: TidyColumnsType[] | ((column: ITidyColumn) => boolean);
341
+ /**
342
+ * The user can select properties of columns
343
+ */
290
344
  includeProperties?: boolean;
345
+ /**
346
+ * The user can choose a selector, see TidyTableMappingColumnSelectorOptions
347
+ */
348
+ includeSelectors?: boolean;
349
+ /**
350
+ * Fallback to a column that has a type that is allowed. Note, properties of columns are not considered.
351
+ *
352
+ * It finds the column to fallback on by
353
+ * 1. role equal to fieldPath and type is allowed,
354
+ * 2. role equal to editorConfig.alias and type is allowed,
355
+ * 3. type is allowed.
356
+ *
357
+ * Already mapped columns are skipped.
358
+ */
359
+ fallback?: boolean;
360
+ /**
361
+ * In the expression editor, use the alias to reference the column. Use the alias in table.getColumnByAlias(...).
362
+ */
363
+ alias?: string;
364
+ };
365
+ }
366
+ interface IFormColumnChooserMultipleFieldDef extends IFormFieldDef<TidyTableColumnSelector[]> {
367
+ fieldType: "columnsChooser";
368
+ editorConf?: {
369
+ /**
370
+ * The user can select multiple columns / selectors
371
+ */
372
+ multiple: true;
373
+ /**
374
+ * The user can select the same column more than once
375
+ */
376
+ allowDuplicate?: boolean;
377
+ /**
378
+ * Only columns of this/these type(s) are allowed.
379
+ */
380
+ allowedTypes?: TidyColumnsType[] | ((column: ITidyColumn) => boolean);
381
+ /**
382
+ * The user can select properties of columns
383
+ */
384
+ includeProperties?: boolean;
385
+ /**
386
+ * The user can choose a selector, see TidyTableMappingColumnSelectorOptions
387
+ */
388
+ includeSelectors?: boolean;
389
+ /**
390
+ * Fallback to a column that has a type that is allowed. Note, properties of columns are not considered.
391
+ *
392
+ * It finds the column to fallback on by
393
+ * 1. role equal to fieldPath and type is allowed,
394
+ * 2. role equal to editorConfig.alias and type is allowed,
395
+ * 3. type is allowed.
396
+ *
397
+ * Already mapped columns are skipped.
398
+ */
399
+ fallback?: boolean;
400
+ /**
401
+ * In the expression editor, use the alias to reference the column. Use the alias in table.getColumnByAlias(...).
402
+ */
403
+ alias?: string;
291
404
  };
292
405
  }
293
406
  /**
@@ -309,7 +422,11 @@ export interface IFormEventMappingArrayFieldDef extends IFormFieldDef<any> {
309
422
  /**
310
423
  * Contains the ordering of the groups.
311
424
  *
425
+ * An optional (and invisible) field that is defining how the groups are ordered (does not need to contain all
426
+ * the groups). When none defined, the groups order depends on the field order themselves.
427
+ *
312
428
  * @see FormFieldDef
429
+ * @see IFormBooleanFieldDef
313
430
  */
314
431
  export interface IFormGroupsFieldDef extends IFormFieldDef<string[]> {
315
432
  fieldType: "groups";
@@ -321,6 +438,12 @@ export interface IFormGroupsFieldDef extends IFormFieldDef<string[]> {
321
438
  export interface IFormJsFieldDef extends IFormFieldDef<string> {
322
439
  fieldType: "js";
323
440
  }
441
+ /**
442
+ * @see FormFieldDef
443
+ */
444
+ export interface IFormJsonFieldDef extends IFormFieldDef<string> {
445
+ fieldType: "json";
446
+ }
324
447
  /**
325
448
  * @see FormFieldDef
326
449
  */
@@ -337,11 +460,18 @@ export interface IFormFileUploaderFieldDef extends IFormFieldDef<any> {
337
460
  export interface IFormMarkdownFieldDef extends IFormFieldDef<string> {
338
461
  fieldType: "markdown";
339
462
  }
463
+ export declare type MdxExpressionType = "calcMeasure" | "drilldown";
340
464
  /**
341
465
  * @see FormFieldDef
342
466
  */
343
467
  export interface IFormMdxFieldDef extends IFormFieldDef<string> {
344
468
  fieldType: "mdxExpression";
469
+ editorConf: {
470
+ mdxExpressionType: MdxExpressionType;
471
+ metaReadOnly?: boolean;
472
+ schemaName?: string;
473
+ cubeName?: string;
474
+ };
345
475
  }
346
476
  /**
347
477
  * @see FormFieldDef
@@ -433,6 +563,7 @@ export interface IFormStringFieldDef extends IFormFieldDef<string> {
433
563
  * A list of possible strings...
434
564
  */
435
565
  suggestions?: string[] | ((callback: ((candidates: string[]) => void), dependsOnValue?: any) => void);
566
+ copyToClipboard?: boolean;
436
567
  };
437
568
  }
438
569
  /**
@@ -457,6 +588,10 @@ export interface IFormTidyTableHtmlRowExprFieldDef extends IFormFieldDef<string>
457
588
  fieldType: "tidyTableHtmlRowExpr";
458
589
  editorConf?: {
459
590
  defaultColumn?: boolean;
591
+ /**
592
+ * Default = available columns + roles. Set here to override.
593
+ */
594
+ completionMeta?: string[];
460
595
  };
461
596
  }
462
597
  /**
@@ -471,6 +606,30 @@ export interface IFormTidyTableNumericExprFieldDef extends IFormFieldDef<string>
471
606
  defaultColumn?: boolean;
472
607
  };
473
608
  }
609
+ /**
610
+ * A string expression containing tidy table value accessor (e.g., chart's value axis minimum).
611
+ * The evaluation context is the table.
612
+ *
613
+ * @see FormFieldDef
614
+ */
615
+ export interface IFormTidyTableStringRowExprFieldDef extends IFormFieldDef<string> {
616
+ fieldType: "tidyTableStringRowExpr";
617
+ editorConf?: {
618
+ defaultColumn?: boolean;
619
+ };
620
+ }
621
+ /**
622
+ * A color (i.e., string) expression containing tidy table value accessor (e.g., chart's value axis minimum).
623
+ * The evaluation context is the table.
624
+ *
625
+ * @see FormFieldDef
626
+ */
627
+ export interface IFormTidyTableColorRowExprFieldDef extends IFormFieldDef<string> {
628
+ fieldType: "tidyTableColorRowExpr";
629
+ editorConf?: {
630
+ defaultColumn?: boolean;
631
+ };
632
+ }
474
633
  /**
475
634
  * A numeric expression containing tidy table value accessor (e.g., chart's value axis minimum).
476
635
  * The evaluation context is a row.
@@ -491,8 +650,8 @@ export interface IFormTidyTableNumericRowExprFieldDef extends IFormFieldDef<stri
491
650
  */
492
651
  export interface IFormTidyTableScaleRowExprFieldDef extends IFormFieldDef<string> {
493
652
  fieldType: "tidyTableScaleRowExpr";
494
- editorConf?: {
495
- defaultColumn?: boolean;
653
+ editorConf: {
654
+ defaultColumn: true;
496
655
  };
497
656
  }
498
657
  /**
@@ -531,5 +690,9 @@ export interface IFormWidgetVariantFieldDef extends IFormFieldDef<string> {
531
690
  predefinedVariants?: string[];
532
691
  };
533
692
  }
534
- export declare type FormFieldDef = IFormAutocompleteFieldDef<any> | IFormBooleanFieldDef | IFormColorEditorFieldDef | IFormColumnCoordinateFieldDef | IFormColumnSelectionFieldDef | IFormEventMappingArrayFieldDef | IFormFileUploaderFieldDef | IFormGroupsFieldDef | IFormJsFieldDef | IFormMarkdownFieldDef | IFormMdxFieldDef | IFormNumberFieldDef | IFormOptionFieldDef | IFormOptionFieldSingleDef | IFormOptionFieldMultipleDef | IFormPaletteEditorFieldDef | IFormReportPathFieldDef | IFormReportPermaLinkFieldDef | IFormStringFieldDef | IFormTidyTableHtmlExprFieldDef | IFormTidyTableHtmlRowExprFieldDef | IFormTidyTableNumericExprFieldDef | IFormTidyTableNumericRowExprFieldDef | IFormTidyTableScaleRowExprFieldDef | IFormTidyTableTextExprFieldDef | IFormTidyTableTextRowExprFieldDef | IFormWidgetVariantFieldDef;
693
+ export interface IFormFormatterPickerFieldDef extends IFormFieldDef<string> {
694
+ fieldType: "formatterPicker";
695
+ }
696
+ export declare type FormFieldDef = IFormAutocompleteFieldDef<any> | IFormBooleanFieldDef | IFormColorEditorFieldDef | IFormColumnChooserFieldDef | IFormColumnSelectionFieldDef | IFormEventMappingArrayFieldDef | IFormFileUploaderFieldDef | IFormGroupsFieldDef | IFormJsFieldDef | IFormMarkdownFieldDef | IFormMdxFieldDef | IFormNumberFieldDef | IFormOptionFieldDef | IFormOptionFieldSingleDef | IFormOptionFieldMultipleDef | IFormPaletteEditorFieldDef | IFormReportPathFieldDef | IFormReportPermaLinkFieldDef | IFormStringFieldDef | IFormTidyTableHtmlExprFieldDef | IFormTidyTableHtmlRowExprFieldDef | IFormTidyTableNumericExprFieldDef | IFormTidyTableNumericRowExprFieldDef | IFormTidyTableStringRowExprFieldDef | IFormTidyTableColorRowExprFieldDef | IFormTidyTableScaleRowExprFieldDef | IFormTidyTableTextExprFieldDef | IFormTidyTableTextRowExprFieldDef | IFormWidgetVariantFieldDef | IFormFormatterPickerFieldDef;
535
697
  export declare function createGroupsMeta(groups: string[]): IFormGroupsFieldDef;
698
+ export {};
@@ -18,6 +18,8 @@ function isTidyTableExpr(type) {
18
18
  || type === "tidyTableTextRowExpr"
19
19
  || type === "tidyTableNumericExpr"
20
20
  || type === "tidyTableNumericRowExpr"
21
+ || type === "tidyTableStringRowExpr"
22
+ || type === "tidyTableColorRowExpr"
21
23
  || type === "tidyTableScaleRowExpr";
22
24
  }
23
25
  exports.isTidyTableExpr = isTidyTableExpr;
@@ -31,6 +33,8 @@ function isTidyTableExprRow(type) {
31
33
  return type === "tidyTableHtmlRowExpr"
32
34
  || type === "tidyTableTextRowExpr"
33
35
  || type === "tidyTableNumericRowExpr"
36
+ || type === "tidyTableStringRowExpr"
37
+ || type === "tidyTableColorRowExpr"
34
38
  || type === "tidyTableScaleRowExpr";
35
39
  }
36
40
  exports.isTidyTableExprRow = isTidyTableExprRow;
@@ -71,7 +75,9 @@ function isCodeMirrorModeExpr(mode) {
71
75
  || mode === "tidyTableTextRowExpr"
72
76
  || mode === "tidyTableNumericExpr"
73
77
  || mode === "tidyTableNumericRowExpr"
74
- || mode === "tidyTableScaleRowExpr";
78
+ || mode === "tidyTableScaleRowExpr"
79
+ || mode === "tidyTableStringRowExpr"
80
+ || mode === "tidyTableColorRowExpr";
75
81
  }
76
82
  exports.isCodeMirrorModeExpr = isCodeMirrorModeExpr;
77
83
  function createGroupsMeta(groups) {
@@ -1 +1 @@
1
- {"version":3,"file":"PublicTemplateForm.js","sourceRoot":"","sources":["../src/PublicTemplateForm.ts"],"names":[],"mappings":";;;AAUA,SAAgB,oBAAoB,CAAC,KAAyB;IAC1D,OAAO,KAAK,CAAC,KAAK,KAAK,oBAAoB,CAAC,SAAS,CAAC;AAC1D,CAAC;AAFD,oDAEC;AA0HD,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B,+CAAuB,CAAA;IACvB,yEAAiD,CAAA;IACjD,sDAA8B,CAAA;AAClC,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAI/B;AAoID,SAAgB,eAAe,CAAC,IAAmB;IAC/C,OAAO,IAAI,KAAK,mBAAmB;WAC5B,IAAI,KAAK,sBAAsB;WAC/B,IAAI,KAAK,mBAAmB;WAC5B,IAAI,KAAK,sBAAsB;WAC/B,IAAI,KAAK,sBAAsB;WAC/B,IAAI,KAAK,yBAAyB;WAClC,IAAI,KAAK,uBAAuB,CAClC;AACT,CAAC;AATD,0CASC;AAED,SAAgB,oBAAoB,CAAC,IAAmB;IACpD,OAAO,IAAI,KAAK,mBAAmB;WAC5B,IAAI,KAAK,mBAAmB;WAC5B,IAAI,KAAK,sBAAsB,CACjC;AACT,CAAC;AALD,oDAKC;AAED,SAAgB,kBAAkB,CAAC,IAAmB;IAClD,OAAO,IAAI,KAAK,sBAAsB;WAC/B,IAAI,KAAK,sBAAsB;WAC/B,IAAI,KAAK,yBAAyB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