@ic3/reporting-api 8.0.0-alpha.6 → 8.0.0-rc.3
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/dist/ApiUtils.d.ts +10 -0
- package/dist/ApiUtils.js +25 -1
- package/dist/ApiUtils.js.map +1 -1
- package/dist/INotification.d.ts +32 -0
- package/dist/INotification.js +3 -0
- package/dist/INotification.js.map +1 -0
- package/dist/IPluginDefinition.d.ts +4 -1
- package/dist/IReporting.d.ts +41 -4
- package/dist/IThemeManager.d.ts +13 -18
- package/dist/IThemeManager.js.map +1 -1
- package/dist/ITidyTableTransformation.d.ts +20 -1
- package/dist/IWidgetVariantManager.d.ts +20 -2
- package/dist/LazyTreeView.d.ts +43 -1
- package/dist/LazyTreeView.js +5 -1
- package/dist/LazyTreeView.js.map +1 -1
- package/dist/Loader.d.ts +10 -0
- package/dist/Loader.js +33 -0
- package/dist/Loader.js.map +1 -0
- package/dist/PublicContext.d.ts +75 -10
- package/dist/PublicContext.js.map +1 -1
- package/dist/PublicLayout.d.ts +6 -6
- package/dist/PublicTemplate.d.ts +161 -58
- package/dist/PublicTemplate.js +16 -1
- package/dist/PublicTemplate.js.map +1 -1
- package/dist/PublicTemplateForm.d.ts +131 -29
- package/dist/PublicTemplateForm.js +7 -1
- package/dist/PublicTemplateForm.js.map +1 -1
- package/dist/PublicTheme.d.ts +114 -69
- package/dist/PublicTheme.js.map +1 -1
- package/dist/PublicTidyColumn.d.ts +327 -259
- package/dist/PublicTidyColumn.js +48 -2
- package/dist/PublicTidyColumn.js.map +1 -1
- package/dist/PublicTidyHistogram.d.ts +24 -0
- package/dist/PublicTidyHistogram.js +77 -0
- package/dist/PublicTidyHistogram.js.map +1 -0
- package/dist/PublicTidyMath.d.ts +49 -45
- package/dist/PublicTidyMath.js +0 -280
- package/dist/PublicTidyMath.js.map +1 -1
- package/dist/PublicTidyTable.d.ts +170 -154
- package/dist/PublicTidyTableInteractions.d.ts +30 -23
- package/dist/PublicTidyTableInteractions.js +5 -4
- package/dist/PublicTidyTableInteractions.js.map +1 -1
- package/dist/PublicTidyTableTypes.d.ts +133 -55
- package/dist/PublicTidyTableTypes.js +35 -18
- package/dist/PublicTidyTableTypes.js.map +1 -1
- package/dist/PublicTidyTree.d.ts +27 -37
- package/dist/PublicTidyTree.js +30 -58
- package/dist/PublicTidyTree.js.map +1 -1
- package/dist/RemoteContainerUtils.d.ts +1 -1
- package/dist/RemoteContainerUtils.js +9 -1
- package/dist/RemoteContainerUtils.js.map +1 -1
- package/dist/ReportingVersion.d.ts +1 -1
- package/dist/ReportingVersion.js +1 -1
- package/dist/ReportingVersion.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/theme/ThemeFilterAutocomplete.d.ts +30 -0
- package/dist/theme/ThemeFilterAutocomplete.js +23 -0
- package/dist/theme/ThemeFilterAutocomplete.js.map +1 -0
- package/dist/theme/ThemeFilterButtons.d.ts +28 -3
- package/dist/theme/ThemeFilterButtons.js +9 -3
- package/dist/theme/ThemeFilterButtons.js.map +1 -1
- package/dist/theme/ThemeFilterCheckboxes.d.ts +18 -0
- package/dist/theme/ThemeFilterCheckboxes.js +11 -0
- package/dist/theme/ThemeFilterCheckboxes.js.map +1 -0
- package/dist/theme/ThemeFilterSlider.d.ts +47 -0
- package/dist/theme/ThemeFilterSlider.js +29 -0
- package/dist/theme/ThemeFilterSlider.js.map +1 -0
- package/dist/theme/ThemeFilterTree.d.ts +70 -0
- package/dist/theme/ThemeFilterTree.js +11 -0
- package/dist/theme/ThemeFilterTree.js.map +1 -0
- package/dist/theme/ThemeGoogleMapMarker.d.ts +51 -0
- package/dist/theme/ThemeGoogleMapMarker.js +3 -0
- package/dist/theme/ThemeGoogleMapMarker.js.map +1 -0
- package/dist/theme/ThemeHtmlBox.d.ts +7 -1
- package/dist/theme/ThemePivotTable.d.ts +23 -0
- package/dist/theme/ThemePivotTable.js +21 -0
- package/dist/theme/ThemePivotTable.js.map +1 -0
- package/dist/theme/ThemeTable.d.ts +15 -0
- package/dist/theme/ThemeTable.js +5 -0
- package/dist/theme/ThemeTable.js.map +1 -0
- package/package.json +11 -10
|
@@ -1,8 +1,8 @@
|
|
|
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
|
|
5
|
-
import {
|
|
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
|
/**
|
|
@@ -19,6 +19,9 @@ export interface IFormFieldDef<DEFAULT_VALUE_TYPE> {
|
|
|
19
19
|
defaultValuePath?: string;
|
|
20
20
|
/**
|
|
21
21
|
* The optional group a field belongs too
|
|
22
|
+
*
|
|
23
|
+
* @see IFormGroupsFieldDef
|
|
24
|
+
* @see IFormBooleanFieldDef
|
|
22
25
|
*/
|
|
23
26
|
group?: string;
|
|
24
27
|
/**
|
|
@@ -48,7 +51,7 @@ export interface IFormFieldDef<DEFAULT_VALUE_TYPE> {
|
|
|
48
51
|
/**
|
|
49
52
|
* An optional field path value. The value of this field depends on the value of the dependsOn field.
|
|
50
53
|
*/
|
|
51
|
-
dependsOn?: string;
|
|
54
|
+
dependsOn?: string | string[];
|
|
52
55
|
/**
|
|
53
56
|
* When defined a function that returns the visibility of the field according to the dependsOn value.
|
|
54
57
|
*/
|
|
@@ -59,11 +62,15 @@ export interface IFormFieldDef<DEFAULT_VALUE_TYPE> {
|
|
|
59
62
|
visibility?: boolean | ((context: IWidgetEditorPublicContext) => boolean);
|
|
60
63
|
/**
|
|
61
64
|
* When defined the content of the field is translated (using context.translateContent).
|
|
65
|
+
*
|
|
66
|
+
* Only works for chart/widgetOptions !!
|
|
62
67
|
*/
|
|
63
68
|
translated?: boolean;
|
|
64
69
|
}
|
|
65
70
|
/**
|
|
66
71
|
* The options (possibly edited and/or from the theme) of a widget.
|
|
72
|
+
*
|
|
73
|
+
* Aka Props
|
|
67
74
|
*/
|
|
68
75
|
export interface FormFieldObject {
|
|
69
76
|
readonly '0242ac130003': '0242ac130003';
|
|
@@ -78,7 +85,13 @@ export declare type FormFields<T extends FormFieldObject> = {
|
|
|
78
85
|
defaultValue: unknown;
|
|
79
86
|
} | {
|
|
80
87
|
mandatory: true;
|
|
81
|
-
}) & (Required<T>[key] extends FormFieldObject ?
|
|
88
|
+
}) & (Required<T>[key] extends FormFieldObject ? unknown : {
|
|
89
|
+
defaultValue?: undefined;
|
|
90
|
+
mandatory: true;
|
|
91
|
+
} | {
|
|
92
|
+
defaultValue?: any;
|
|
93
|
+
mandatory?: false;
|
|
94
|
+
}) & (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<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);
|
|
82
95
|
};
|
|
83
96
|
export declare enum IFormFieldGroupTypes {
|
|
84
97
|
Selection = "selection",
|
|
@@ -103,9 +116,9 @@ export declare type FormFieldType =
|
|
|
103
116
|
*/
|
|
104
117
|
"color" |
|
|
105
118
|
/**
|
|
106
|
-
* @see
|
|
119
|
+
* @see IFormColumnChooserFieldDef
|
|
107
120
|
*/
|
|
108
|
-
"
|
|
121
|
+
"columnsChooser" |
|
|
109
122
|
/**
|
|
110
123
|
* @see IFormColumnSelectionFieldDef
|
|
111
124
|
*/
|
|
@@ -134,6 +147,10 @@ export declare type FormFieldType =
|
|
|
134
147
|
* @see IFormJsFieldDef
|
|
135
148
|
*/
|
|
136
149
|
"js" |
|
|
150
|
+
/**
|
|
151
|
+
* @see IFormJsonFieldDef
|
|
152
|
+
*/
|
|
153
|
+
"json" |
|
|
137
154
|
/**
|
|
138
155
|
* @see IFormMarkdownFieldDef
|
|
139
156
|
*/
|
|
@@ -145,10 +162,6 @@ export declare type FormFieldType =
|
|
|
145
162
|
/**
|
|
146
163
|
* @see IFormMuiVariantFieldDef
|
|
147
164
|
*/
|
|
148
|
-
"muiVariant" |
|
|
149
|
-
/**
|
|
150
|
-
* @see IFormNumberFieldDef
|
|
151
|
-
*/
|
|
152
165
|
"number" |
|
|
153
166
|
/**
|
|
154
167
|
* @see IFormOptionFieldDef
|
|
@@ -190,6 +203,14 @@ export declare type FormFieldType =
|
|
|
190
203
|
* @see IFormTidyTableNumericRowExprFieldDef
|
|
191
204
|
*/
|
|
192
205
|
"tidyTableNumericRowExpr" |
|
|
206
|
+
/**
|
|
207
|
+
* @see IFormTidyTableStringRowExprFieldDef
|
|
208
|
+
*/
|
|
209
|
+
"tidyTableStringRowExpr" |
|
|
210
|
+
/**
|
|
211
|
+
* @see IFormTidyTableColorRowExprFieldDef
|
|
212
|
+
*/
|
|
213
|
+
"tidyTableColorRowExpr" |
|
|
193
214
|
/**
|
|
194
215
|
* @see IFormTidyTableScaleRowExprFieldDef
|
|
195
216
|
*/
|
|
@@ -206,7 +227,7 @@ export declare type FormFieldType =
|
|
|
206
227
|
* @see IFormWidgetVariantFieldDef
|
|
207
228
|
*/
|
|
208
229
|
"widgetVariant";
|
|
209
|
-
export declare type FormFieldTidyTableExprType = "tidyTableHtmlExpr" | "tidyTableHtmlRowExpr" | "tidyTableNumericExpr" | "tidyTableNumericRowExpr" | "tidyTableScaleRowExpr" | "tidyTableTextExpr" | "tidyTableTextRowExpr";
|
|
230
|
+
export declare type FormFieldTidyTableExprType = "tidyTableHtmlExpr" | "tidyTableHtmlRowExpr" | "tidyTableNumericExpr" | "tidyTableNumericRowExpr" | "tidyTableScaleRowExpr" | "tidyTableTextExpr" | "tidyTableTextRowExpr" | "tidyTableStringRowExpr" | "tidyTableColorRowExpr";
|
|
210
231
|
export declare function isTidyTableExpr(type: FormFieldType): type is FormFieldTidyTableExprType;
|
|
211
232
|
export declare function isTidyTableExprTable(type: FormFieldType): boolean;
|
|
212
233
|
export declare function isTidyTableExprRow(type: FormFieldType): boolean;
|
|
@@ -222,9 +243,9 @@ export declare enum AutocompleteNoOptionsText {
|
|
|
222
243
|
NO_OPTIONS = "NO_OPTIONS",
|
|
223
244
|
NO_QUERY_RESULT = "NO_QUERY_RESULT"
|
|
224
245
|
}
|
|
225
|
-
export declare type CodeMirrorMode = "plain" | "mdx" | "sql" | "js" | "csv" | "md" | FormFieldTidyTableExprType;
|
|
246
|
+
export declare type CodeMirrorMode = "plain" | "mdx" | "sql" | "js" | "json" | "csv" | "md" | FormFieldTidyTableExprType;
|
|
226
247
|
export declare function isCodeMirrorModeExpr(mode: CodeMirrorMode): boolean;
|
|
227
|
-
export declare type FormFieldDialogEditorModelType = "unknown" | "markdown" | FormFieldTidyTableExprType;
|
|
248
|
+
export declare type FormFieldDialogEditorModelType = "unknown" | "markdown" | "mdxExpression" | FormFieldTidyTableExprType;
|
|
228
249
|
export interface IColorDef {
|
|
229
250
|
/**
|
|
230
251
|
* aka. name
|
|
@@ -266,10 +287,15 @@ export interface IFormAutocompleteFieldDef<OPTION> extends IFormFieldDef<OPTION>
|
|
|
266
287
|
noOptionsText?: AutocompleteNoOptionsText;
|
|
267
288
|
renderInput?: (params: AutocompleteRenderInputParams) => React.ReactNode;
|
|
268
289
|
renderOption?: (props: React.HTMLAttributes<HTMLLIElement>, option: OPTION, state: AutocompleteRenderOptionState, onClose: () => void) => React.ReactNode;
|
|
290
|
+
disableClearable?: boolean;
|
|
269
291
|
};
|
|
270
292
|
}
|
|
271
293
|
/**
|
|
294
|
+
* The "groupBoolean" allows for using that field as a group header and as a way
|
|
295
|
+
* to enable/disable the options in the group.
|
|
296
|
+
*
|
|
272
297
|
* @see FormFieldDef
|
|
298
|
+
* @see IFormGroupsFieldDef
|
|
273
299
|
*/
|
|
274
300
|
export interface IFormBooleanFieldDef extends IFormFieldDef<boolean> {
|
|
275
301
|
fieldType: "boolean" | "groupBoolean";
|
|
@@ -282,14 +308,52 @@ export interface IFormColorEditorFieldDef extends IFormFieldDef<IColorDef> {
|
|
|
282
308
|
}
|
|
283
309
|
/**
|
|
284
310
|
* @see FormFieldDef
|
|
311
|
+
*
|
|
312
|
+
* Use the fieldPath to access the column directly in the tidy table with table.getColumnByAlias(...).
|
|
313
|
+
* If multiple columns are in this field, it returns the first column.
|
|
314
|
+
*
|
|
315
|
+
* If the columns chooser is mandatory, the widget or transformation returns an error if there is no column either
|
|
316
|
+
* selected by the user or in the fallback.
|
|
317
|
+
*
|
|
285
318
|
*/
|
|
286
|
-
export interface
|
|
287
|
-
fieldType: "
|
|
319
|
+
export interface IFormColumnChooserFieldDef extends IFormFieldDef<TidyTableColumnSelector> {
|
|
320
|
+
fieldType: "columnsChooser";
|
|
288
321
|
editorConf?: {
|
|
322
|
+
/**
|
|
323
|
+
* The user can select multiple columns / selectors
|
|
324
|
+
*/
|
|
289
325
|
multiple?: boolean;
|
|
326
|
+
/**
|
|
327
|
+
* The user can select the same column more than once
|
|
328
|
+
*/
|
|
290
329
|
allowDuplicate?: boolean;
|
|
291
|
-
|
|
330
|
+
/**
|
|
331
|
+
* Only columns of this/these type(s) are allowed.
|
|
332
|
+
*/
|
|
333
|
+
allowedTypes?: TidyColumnsType[] | ((column: ITidyColumn) => boolean);
|
|
334
|
+
/**
|
|
335
|
+
* The user can select properties of columns
|
|
336
|
+
*/
|
|
292
337
|
includeProperties?: boolean;
|
|
338
|
+
/**
|
|
339
|
+
* The user can choose a selector, see TidyTableMappingColumnSelectorOptions
|
|
340
|
+
*/
|
|
341
|
+
includeSelectors?: boolean;
|
|
342
|
+
/**
|
|
343
|
+
* Fallback to a column that has a type that is allowed. Note, properties of columns are not considered.
|
|
344
|
+
*
|
|
345
|
+
* It finds the column to fallback on by
|
|
346
|
+
* 1. role equal to fieldPath and type is allowed,
|
|
347
|
+
* 2. role equal to editorConfig.alias and type is allowed,
|
|
348
|
+
* 3. type is allowed.
|
|
349
|
+
*
|
|
350
|
+
* Already mapped columns are skipped.
|
|
351
|
+
*/
|
|
352
|
+
fallback?: boolean;
|
|
353
|
+
/**
|
|
354
|
+
* In the expression editor, use the alias to reference the column. Use the alias in table.getColumnByAlias(...).
|
|
355
|
+
*/
|
|
356
|
+
alias?: string;
|
|
293
357
|
};
|
|
294
358
|
}
|
|
295
359
|
/**
|
|
@@ -311,7 +375,11 @@ export interface IFormEventMappingArrayFieldDef extends IFormFieldDef<any> {
|
|
|
311
375
|
/**
|
|
312
376
|
* Contains the ordering of the groups.
|
|
313
377
|
*
|
|
378
|
+
* An optional (and invisible) field that is defining how the groups are ordered (does not need to contain all
|
|
379
|
+
* the groups). When none defined, the groups order depends on the field order themselves.
|
|
380
|
+
*
|
|
314
381
|
* @see FormFieldDef
|
|
382
|
+
* @see IFormBooleanFieldDef
|
|
315
383
|
*/
|
|
316
384
|
export interface IFormGroupsFieldDef extends IFormFieldDef<string[]> {
|
|
317
385
|
fieldType: "groups";
|
|
@@ -323,6 +391,12 @@ export interface IFormGroupsFieldDef extends IFormFieldDef<string[]> {
|
|
|
323
391
|
export interface IFormJsFieldDef extends IFormFieldDef<string> {
|
|
324
392
|
fieldType: "js";
|
|
325
393
|
}
|
|
394
|
+
/**
|
|
395
|
+
* @see FormFieldDef
|
|
396
|
+
*/
|
|
397
|
+
export interface IFormJsonFieldDef extends IFormFieldDef<string> {
|
|
398
|
+
fieldType: "json";
|
|
399
|
+
}
|
|
326
400
|
/**
|
|
327
401
|
* @see FormFieldDef
|
|
328
402
|
*/
|
|
@@ -339,22 +413,17 @@ export interface IFormFileUploaderFieldDef extends IFormFieldDef<any> {
|
|
|
339
413
|
export interface IFormMarkdownFieldDef extends IFormFieldDef<string> {
|
|
340
414
|
fieldType: "markdown";
|
|
341
415
|
}
|
|
416
|
+
export declare type MdxExpressionType = "calcMeasure" | "drilldown";
|
|
342
417
|
/**
|
|
343
418
|
* @see FormFieldDef
|
|
344
419
|
*/
|
|
345
420
|
export interface IFormMdxFieldDef extends IFormFieldDef<string> {
|
|
346
421
|
fieldType: "mdxExpression";
|
|
347
|
-
}
|
|
348
|
-
/**
|
|
349
|
-
* Material-UI variants (defined in the theme's components).
|
|
350
|
-
*
|
|
351
|
-
* @see FormFieldDef
|
|
352
|
-
*/
|
|
353
|
-
export interface IFormMuiVariantFieldDef extends IFormFieldDef<string> {
|
|
354
|
-
fieldType: "muiVariant";
|
|
355
422
|
editorConf: {
|
|
356
|
-
|
|
357
|
-
|
|
423
|
+
mdxExpressionType: MdxExpressionType;
|
|
424
|
+
metaReadOnly?: boolean;
|
|
425
|
+
schemaName?: string;
|
|
426
|
+
cubeName?: string;
|
|
358
427
|
};
|
|
359
428
|
}
|
|
360
429
|
/**
|
|
@@ -417,6 +486,10 @@ export interface IFormEmbeddedFieldDef<T extends FormFieldObject> extends IFormF
|
|
|
417
486
|
*/
|
|
418
487
|
export interface IFormPaletteEditorFieldDef extends IFormFieldDef<IPaletteDef> {
|
|
419
488
|
fieldType: "palette";
|
|
489
|
+
editorConfig?: {
|
|
490
|
+
path: string;
|
|
491
|
+
reversed: boolean;
|
|
492
|
+
};
|
|
420
493
|
}
|
|
421
494
|
/**
|
|
422
495
|
* @see FormFieldDef
|
|
@@ -443,6 +516,7 @@ export interface IFormStringFieldDef extends IFormFieldDef<string> {
|
|
|
443
516
|
* A list of possible strings...
|
|
444
517
|
*/
|
|
445
518
|
suggestions?: string[] | ((callback: ((candidates: string[]) => void), dependsOnValue?: any) => void);
|
|
519
|
+
copyToClipboard?: boolean;
|
|
446
520
|
};
|
|
447
521
|
}
|
|
448
522
|
/**
|
|
@@ -481,6 +555,30 @@ export interface IFormTidyTableNumericExprFieldDef extends IFormFieldDef<string>
|
|
|
481
555
|
defaultColumn?: boolean;
|
|
482
556
|
};
|
|
483
557
|
}
|
|
558
|
+
/**
|
|
559
|
+
* A string expression containing tidy table value accessor (e.g., chart's value axis minimum).
|
|
560
|
+
* The evaluation context is the table.
|
|
561
|
+
*
|
|
562
|
+
* @see FormFieldDef
|
|
563
|
+
*/
|
|
564
|
+
export interface IFormTidyTableStringRowExprFieldDef extends IFormFieldDef<string> {
|
|
565
|
+
fieldType: "tidyTableStringRowExpr";
|
|
566
|
+
editorConf?: {
|
|
567
|
+
defaultColumn?: boolean;
|
|
568
|
+
};
|
|
569
|
+
}
|
|
570
|
+
/**
|
|
571
|
+
* A color (i.e., string) expression containing tidy table value accessor (e.g., chart's value axis minimum).
|
|
572
|
+
* The evaluation context is the table.
|
|
573
|
+
*
|
|
574
|
+
* @see FormFieldDef
|
|
575
|
+
*/
|
|
576
|
+
export interface IFormTidyTableColorRowExprFieldDef extends IFormFieldDef<string> {
|
|
577
|
+
fieldType: "tidyTableColorRowExpr";
|
|
578
|
+
editorConf?: {
|
|
579
|
+
defaultColumn?: boolean;
|
|
580
|
+
};
|
|
581
|
+
}
|
|
484
582
|
/**
|
|
485
583
|
* A numeric expression containing tidy table value accessor (e.g., chart's value axis minimum).
|
|
486
584
|
* The evaluation context is a row.
|
|
@@ -501,8 +599,8 @@ export interface IFormTidyTableNumericRowExprFieldDef extends IFormFieldDef<stri
|
|
|
501
599
|
*/
|
|
502
600
|
export interface IFormTidyTableScaleRowExprFieldDef extends IFormFieldDef<string> {
|
|
503
601
|
fieldType: "tidyTableScaleRowExpr";
|
|
504
|
-
editorConf
|
|
505
|
-
defaultColumn
|
|
602
|
+
editorConf: {
|
|
603
|
+
defaultColumn: true;
|
|
506
604
|
};
|
|
507
605
|
}
|
|
508
606
|
/**
|
|
@@ -536,6 +634,10 @@ export interface IFormTidyTableTextRowExprFieldDef extends IFormFieldDef<string>
|
|
|
536
634
|
*/
|
|
537
635
|
export interface IFormWidgetVariantFieldDef extends IFormFieldDef<string> {
|
|
538
636
|
fieldType: "widgetVariant";
|
|
637
|
+
editorConf?: {
|
|
638
|
+
componentName: string;
|
|
639
|
+
predefinedVariants?: string[];
|
|
640
|
+
};
|
|
539
641
|
}
|
|
540
|
-
export declare type FormFieldDef = IFormAutocompleteFieldDef<any> | IFormBooleanFieldDef | IFormColorEditorFieldDef |
|
|
642
|
+
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;
|
|
541
643
|
export declare function createGroupsMeta(groups: string[]): IFormGroupsFieldDef;
|
|
@@ -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":";;;
|
|
1
|
+
{"version":3,"file":"PublicTemplateForm.js","sourceRoot":"","sources":["../src/PublicTemplateForm.ts"],"names":[],"mappings":";;;AAOA,SAAgB,oBAAoB,CAAC,KAAyB;IAC1D,OAAO,KAAK,CAAC,KAAK,KAAK,oBAAoB,CAAC,SAAS,CAAC;AAC1D,CAAC;AAFD,oDAEC;AA2ID,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B,+CAAuB,CAAA;IACvB,yEAAiD,CAAA;IACjD,sDAA8B,CAAA;AAClC,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAI/B;AAkJD,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,wBAAwB;WACjC,IAAI,KAAK,uBAAuB;WAChC,IAAI,KAAK,uBAAuB,CAClC;AACT,CAAC;AAXD,0CAWC;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;WAClC,IAAI,KAAK,wBAAwB;WACjC,IAAI,KAAK,uBAAuB;WAChC,IAAI,KAAK,uBAAuB,CAClC;AACT,CAAC;AARD,gDAQC;AAED,SAAgB,mBAAmB,CAAC,IAAmB;IACnD,OAAO,IAAI,KAAK,mBAAmB;WAC5B,IAAI,KAAK,sBAAsB;WAC/B,IAAI,KAAK,mBAAmB;WAC5B,IAAI,KAAK,sBAAsB,CACjC;AACT,CAAC;AAND,kDAMC;AAED,SAAgB,uBAAuB,CAAC,IAAmB;IACvD,OAAO,IAAI,KAAK,mBAAmB;WAC5B,IAAI,KAAK,sBAAsB,CACjC;AACT,CAAC;AAJD,0DAIC;AAED,SAAgB,sBAAsB,CAAC,IAAmB;IACtD,OAAO,IAAI,KAAK,sBAAsB;WAC/B,IAAI,KAAK,yBAAyB,CACpC;AACT,CAAC;AAJD,wDAIC;AAED,SAAgB,oBAAoB,CAAC,IAAmB;IACpD,OAAO,IAAI,KAAK,uBAAuB,CAClC;AACT,CAAC;AAHD,oDAGC;AAED;;;GAGG;AACH,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACjC,sDAAyB,CAAA;IACzB,gEAAmC,CAAA;AACvC,CAAC,EAHW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAGpC;AAaD,SAAgB,oBAAoB,CAAC,IAAoB;IACrD,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;WAChC,IAAI,KAAK,wBAAwB;WACjC,IAAI,KAAK,uBAAuB,CAClC;AACT,CAAC;AAXD,oDAWC;AAulBD,SAAgB,gBAAgB,CAAC,MAAgB;IAC7C,OAAO;QACH,SAAS,EAAE,QAAQ;QACnB,MAAM,EAAE,MAAM;QACd,SAAS,EAAE,EAAE;KAChB,CAAC;AACN,CAAC;AAND,4CAMC"}
|