@ic3/reporting-api 8.6.1 → 9.0.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/dist/ApiUtils.js +27 -8
- package/dist/ApiUtils.js.map +1 -1
- package/dist/IOnNewEventJsContext.d.ts +10 -1
- package/dist/ITypes.d.ts +1 -2
- package/dist/IcEvent.d.ts +3 -1
- package/dist/IcEvent.js +2 -0
- package/dist/IcEvent.js.map +1 -1
- package/dist/Logger.d.ts +1 -1
- package/dist/PublicAmchartsData.js +1 -2
- package/dist/PublicAmchartsData.js.map +1 -1
- package/dist/PublicContext.d.ts +66 -13
- package/dist/PublicContext.js +0 -1
- package/dist/PublicContext.js.map +1 -1
- package/dist/PublicLayout.d.ts +3 -0
- package/dist/PublicTemplate.d.ts +8 -5
- package/dist/PublicTemplate.js.map +1 -1
- package/dist/PublicTemplateExprForm.d.ts +30 -0
- package/dist/PublicTemplateExprForm.js +3 -0
- package/dist/PublicTemplateExprForm.js.map +1 -0
- package/dist/PublicTemplateForm.d.ts +74 -311
- package/dist/PublicTemplateForm.js +22 -18
- package/dist/PublicTemplateForm.js.map +1 -1
- package/dist/PublicTemplates.d.ts +3 -1
- package/dist/PublicTheme.d.ts +142 -155
- package/dist/PublicTheme.js +3 -3
- package/dist/PublicTheme.js.map +1 -1
- package/dist/PublicTidyColumn.d.ts +6 -14
- package/dist/PublicTidyMath.d.ts +1 -1
- package/dist/PublicTidyTableInteractions.d.ts +4 -0
- package/dist/PublicTidyTableTypeGuards.d.ts +2 -2
- package/dist/PublicTidyTableTypeGuards.js +5 -6
- package/dist/PublicTidyTableTypeGuards.js.map +1 -1
- package/dist/PublicTidyTree.js +6 -3
- package/dist/PublicTidyTree.js.map +1 -1
- package/dist/RemoteContainerUtils.js +5 -14
- package/dist/RemoteContainerUtils.js.map +1 -1
- package/dist/ReportingVersion.d.ts +1 -1
- package/dist/ReportingVersion.js +2 -2
- package/dist/ReportingVersion.js.map +1 -1
- package/dist/ThemeAugmentation.d.ts +35 -0
- package/dist/ThemeAugmentation.js +3 -0
- package/dist/ThemeAugmentation.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/theme/ThemeAIWidgetChatBot.d.ts +1 -0
- package/dist/theme/ThemeAmCharts4.d.ts +13 -1
- package/dist/theme/ThemeApp.d.ts +1 -0
- package/dist/theme/ThemeApp.js.map +1 -1
- package/dist/theme/ThemeFilterPanel.d.ts +18 -1
- package/dist/theme/ThemeFilterPanel.js +10 -1
- package/dist/theme/ThemeFilterPanel.js.map +1 -1
- package/dist/theme/ThemeFilterPanelViewsMenu.d.ts +2 -0
- package/dist/theme/ThemeFilterPanelViewsMenu.js +2 -0
- package/dist/theme/ThemeFilterPanelViewsMenu.js.map +1 -1
- package/dist/theme/ThemeHomeCard.d.ts +9 -0
- package/dist/theme/ThemeHomeCard.js +10 -0
- package/dist/theme/ThemeHomeCard.js.map +1 -0
- package/dist/theme/ThemeHomeConsole.d.ts +16 -0
- package/dist/theme/ThemeHomeConsole.js +20 -0
- package/dist/theme/ThemeHomeConsole.js.map +1 -0
- package/dist/theme/ThemeIc3CustomDrilldownMenu.d.ts +7 -0
- package/dist/theme/ThemeIc3CustomDrilldownMenu.js +11 -0
- package/dist/theme/ThemeIc3CustomDrilldownMenu.js.map +1 -0
- package/dist/theme/ThemeIc3TableCellDrilldown.js.map +1 -1
- package/dist/theme/ThemeIc3WidgetBoxSpinner.d.ts +15 -0
- package/dist/theme/ThemeIc3WidgetBoxSpinner.js +13 -0
- package/dist/theme/ThemeIc3WidgetBoxSpinner.js.map +1 -0
- package/dist/theme/ThemeKpiCard.d.ts +0 -8
- package/dist/theme/ThemeListCounter.d.ts +6 -0
- package/dist/theme/ThemeListCounter.js +6 -0
- package/dist/theme/ThemeListCounter.js.map +1 -1
- package/dist/theme/ThemeSinglePanelFilter.d.ts +1 -1
- package/dist/theme/ThemeTable.d.ts +4 -0
- package/dist/theme/ThemeWidgetBox.d.ts +1 -0
- package/package.json +8 -8
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { IPublicContext, IWidgetEditorPublicContext } from "./PublicContext";
|
|
2
2
|
import { ITidyColumn } from "./PublicTidyColumn";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import { AutocompleteProps, AutocompleteRenderInputParams, AutocompleteRenderOptionState } from "@mui/material/Autocomplete/Autocomplete";
|
|
5
4
|
import { ChartTemplateDataMapping, IFormFieldGranularityItem, TidyColumnsType, TidyTableColumnSelector } from "./PublicTidyTableTypes";
|
|
6
5
|
import { ITidyTable } from "./PublicTidyTable";
|
|
7
6
|
import { Theme } from "@mui/material/styles";
|
|
7
|
+
import { AutocompleteProps, AutocompleteRenderInputParams, AutocompleteRenderOptionState } from "@mui/material/Autocomplete";
|
|
8
|
+
import { IFormTidyTableExprFieldDef } from "./PublicTemplateExprForm";
|
|
8
9
|
export type Hook<T, P> = {
|
|
9
10
|
hook: (value: T, options: P) => void;
|
|
10
11
|
};
|
|
@@ -108,7 +109,7 @@ export type FormFields<T extends FormFieldObject> = {
|
|
|
108
109
|
} | {
|
|
109
110
|
defaultValue?: any;
|
|
110
111
|
mandatory?: false;
|
|
111
|
-
}) & (Required<T>[key] extends FormFieldObject ? Omit<IFormEmbeddedFieldDef<Required<T>[key]>, 'fieldPath'> : Required<T>[key] extends IPaletteDef ? Omit<IFormPaletteEditorFieldDef, 'fieldPath'> : Required<T>[key] extends IFormConditionalColorRule[] ? Omit<IFormConditionalColorRulesFieldDef, 'fieldPath'> : Required<T>[key] extends IColorDef ? Omit<IFormColorEditorFieldDef, 'fieldPath'> : Required<T>[key] extends TidyTableColumnSelector[] ? Omit<IFormColumnChooserMultipleFieldDef, 'fieldPath'> : Required<T>[key] extends TidyTableColumnSelector ? Omit<IFormColumnChooserSingleFieldDef, 'fieldPath'> : Required<T>[key] extends IFormEventMappingArrayFieldDefType ? Omit<IFormEventMappingArrayFieldDef, 'fieldPath'> : Required<T>[key] extends IFormEventArrayFieldDefType ? Omit<IFormEventArrayFieldDef, 'fieldPath'> : Required<T>[key] extends IFormSearchAndReplaceArrayFieldDefType ? Omit<IFormSearchAndReplaceArrayFieldDef, 'fieldPath'> : Required<T>[key] extends Hook<any, any> ? Omit<IFormHookFieldDef<any>, 'fieldPath'> : Required<T>[key] extends boolean ? Omit<IFormBooleanFieldDef, 'fieldPath'> : Required<T>[key] extends number ? Omit<IFormNumberFieldDef, 'fieldPath'> : Required<T>[key] extends number ? Omit<IFormMaskFieldDef, '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<IFormTidyTableNumericStringColumnExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableHtmlRowExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableHtmlExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableNumericExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableNumericRowExprFieldDef, 'fieldPath'> | Omit<
|
|
112
|
+
}) & (Required<T>[key] extends FormFieldObject ? Omit<IFormEmbeddedFieldDef<Required<T>[key]>, 'fieldPath'> : Required<T>[key] extends IPaletteDef ? Omit<IFormPaletteEditorFieldDef, 'fieldPath'> : Required<T>[key] extends IFormConditionalColorRule[] ? Omit<IFormConditionalColorRulesFieldDef, 'fieldPath'> : Required<T>[key] extends IColorDef ? Omit<IFormColorEditorFieldDef, 'fieldPath'> : Required<T>[key] extends TidyTableColumnSelector[] ? Omit<IFormColumnChooserMultipleFieldDef, 'fieldPath'> : Required<T>[key] extends TidyTableColumnSelector ? Omit<IFormColumnChooserSingleFieldDef, 'fieldPath'> : Required<T>[key] extends IFormEventMappingArrayFieldDefType ? Omit<IFormEventMappingArrayFieldDef, 'fieldPath'> : Required<T>[key] extends IFormEventArrayFieldDefType ? Omit<IFormEventArrayFieldDef, 'fieldPath'> : Required<T>[key] extends IFormSearchAndReplaceArrayFieldDefType ? Omit<IFormSearchAndReplaceArrayFieldDef, 'fieldPath'> : Required<T>[key] extends Hook<any, any> ? Omit<IFormHookFieldDef<any>, 'fieldPath'> : Required<T>[key] extends boolean ? Omit<IFormBooleanFieldDef, 'fieldPath'> : Required<T>[key] extends number ? Omit<IFormNumberFieldDef, 'fieldPath'> : Required<T>[key] extends number ? Omit<IFormMaskFieldDef, '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<IFormTidyTableNumericStringColumnExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableHtmlRowExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableHtmlExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableNumericExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableNumericRowExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableNumericJSColumnExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableColorRowExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableStringRowExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableScaleRowExprFieldDef, 'fieldPath'> | Omit<IFormJsFieldDef, 'fieldPath'> | Omit<IFormJsonFieldDef, 'fieldPath'> | Omit<IFormMarkdownFieldDef, 'fieldPath'> | Omit<IFormOptionFieldReportPathDef, 'fieldPath'> | Omit<IFormPropertyChooserBaseDef, 'fieldPath'> | Omit<IFormLayoutFieldDef, 'fieldPath'> | Omit<IFormLayoutFieldDef, 'fieldPath'> | Omit<IFormFilterPanelModelSelectorFieldDef, 'fieldPath'> | Omit<IFormShortcutChooserDef<string>, 'fieldPath'> : Required<T>[key] extends string[] ? Omit<IFormOptionFieldMultipleDef, 'fieldPath'> | Omit<IFormGroupsFieldDef, 'fieldPath'> | Omit<IFormShortcutChooserDef<string[]>, 'fieldPath'> : never);
|
|
112
113
|
};
|
|
113
114
|
export declare enum IFormFieldGroupTypes {
|
|
114
115
|
Selection = "groupSelection",
|
|
@@ -227,102 +228,98 @@ export type FormFieldType =
|
|
|
227
228
|
/**
|
|
228
229
|
* @see IFormTextFieldDef
|
|
229
230
|
*/
|
|
230
|
-
"text" |
|
|
231
|
+
"text" | FormFieldTidyTableExprType |
|
|
231
232
|
/**
|
|
232
|
-
* @see
|
|
233
|
-
*/
|
|
234
|
-
"tidyTableHtmlExpr" |
|
|
235
|
-
/**
|
|
236
|
-
* @see IFormTidyTableHtmlRowExprFieldDef
|
|
233
|
+
* @see IFormUrlFieldDef
|
|
237
234
|
*/
|
|
238
|
-
"
|
|
235
|
+
"url" |
|
|
239
236
|
/**
|
|
240
|
-
* @see
|
|
237
|
+
* @see IFormWidgetVariantFieldDef
|
|
241
238
|
*/
|
|
242
|
-
"
|
|
239
|
+
"widgetVariant" |
|
|
243
240
|
/**
|
|
244
|
-
* @see
|
|
241
|
+
* @see IFormGranularitySelectionFieldDef
|
|
245
242
|
*/
|
|
246
|
-
"
|
|
243
|
+
"granularityChooser" |
|
|
247
244
|
/**
|
|
248
|
-
* @see
|
|
245
|
+
* @see IFormSearchAndReplaceArrayFieldDefType
|
|
249
246
|
*/
|
|
250
|
-
"
|
|
247
|
+
"searchAndReplaceArray" |
|
|
251
248
|
/**
|
|
252
|
-
* @see
|
|
249
|
+
* @see IFormPropertyChooserBaseDef
|
|
253
250
|
*/
|
|
254
|
-
"
|
|
251
|
+
"propertyChooser" |
|
|
255
252
|
/**
|
|
256
|
-
* @see
|
|
253
|
+
* @see IFormLayoutFieldDef
|
|
257
254
|
*/
|
|
258
|
-
"
|
|
255
|
+
"layout" |
|
|
259
256
|
/**
|
|
260
|
-
* @see
|
|
257
|
+
* @see IFormConditionalColorRulesFieldDef
|
|
261
258
|
*/
|
|
262
|
-
"
|
|
259
|
+
"conditionalColorRules" |
|
|
263
260
|
/**
|
|
264
|
-
* @see
|
|
261
|
+
* @see IFormFilterPanelModelSelectorFieldDef
|
|
265
262
|
*/
|
|
266
|
-
"
|
|
263
|
+
"filterPanelModelSelector" |
|
|
267
264
|
/**
|
|
268
|
-
* @see
|
|
265
|
+
* @see IFormShortcutChooserDef
|
|
269
266
|
*/
|
|
270
|
-
"
|
|
267
|
+
"shortcutChooser";
|
|
268
|
+
export type FormFieldTidyTableExprType =
|
|
271
269
|
/**
|
|
272
|
-
* @see
|
|
270
|
+
* @see IFormTidyTableColorRowExprFieldDef
|
|
273
271
|
*/
|
|
274
|
-
"
|
|
272
|
+
"tidyTableColorRowExpr" |
|
|
275
273
|
/**
|
|
276
|
-
* @see
|
|
274
|
+
* @see IFormTidyTableHtmlExprFieldDef
|
|
277
275
|
*/
|
|
278
|
-
"
|
|
276
|
+
"tidyTableHtmlExpr" |
|
|
279
277
|
/**
|
|
280
|
-
* @see
|
|
278
|
+
* @see IFormTidyTableHtmlRowExprFieldDef
|
|
281
279
|
*/
|
|
282
|
-
"
|
|
280
|
+
"tidyTableHtmlRowExpr" |
|
|
283
281
|
/**
|
|
284
|
-
* @see
|
|
282
|
+
* @see IFormTidyTableNumericExprFieldDef
|
|
285
283
|
*/
|
|
286
|
-
"
|
|
284
|
+
"tidyTableNumericExpr" |
|
|
287
285
|
/**
|
|
288
|
-
* @see
|
|
286
|
+
* @see IFormTidyTableNumericJSColumnExprFieldDef
|
|
289
287
|
*/
|
|
290
|
-
"
|
|
288
|
+
"tidyTableNumericJSColumnExpr" |
|
|
291
289
|
/**
|
|
292
|
-
* @see
|
|
290
|
+
* @see IFormTidyTableNumericRowExprFieldDef
|
|
293
291
|
*/
|
|
294
|
-
"
|
|
292
|
+
"tidyTableNumericRowExpr" |
|
|
295
293
|
/**
|
|
296
|
-
* @see
|
|
294
|
+
* @see IFormTidyTableNumericStringColumnExprFieldDef
|
|
297
295
|
*/
|
|
298
|
-
"
|
|
296
|
+
"tidyTableNumericStringColumnExpr" |
|
|
299
297
|
/**
|
|
300
|
-
* @see
|
|
298
|
+
* @see IFormTidyTableScaleRowExprFieldDef
|
|
301
299
|
*/
|
|
302
|
-
"
|
|
300
|
+
"tidyTableScaleRowExpr" |
|
|
303
301
|
/**
|
|
304
|
-
* @see
|
|
302
|
+
* @see IFormTidyTableTextExprFieldDef
|
|
305
303
|
*/
|
|
306
|
-
"
|
|
304
|
+
"tidyTableTextExpr" |
|
|
307
305
|
/**
|
|
308
|
-
* @see
|
|
306
|
+
* @see IFormTidyTableTextRowExprFieldDef
|
|
309
307
|
*/
|
|
310
|
-
"
|
|
308
|
+
"tidyTableTextRowExpr" |
|
|
311
309
|
/**
|
|
312
|
-
* @see
|
|
310
|
+
* @see IFormTidyTableStringRowExprFieldDef
|
|
313
311
|
*/
|
|
314
|
-
"
|
|
315
|
-
export type FormFieldTidyTableExprType = "tidyTableColorRowExpr" | "tidyTableHtmlExpr" | "tidyTableHtmlRowExpr" | "tidyTableNumericColumnExpr" | "tidyTableNumericExpr" | "tidyTableNumericJSColumnExpr" | "tidyTableNumericRowExpr" | "tidyTableNumericStringColumnExpr" | "tidyTableScaleRowExpr" | "tidyTableTextExpr" | "tidyTableTextRowExpr" | "tidyTableStringRowExpr";
|
|
312
|
+
"tidyTableStringRowExpr";
|
|
316
313
|
export declare function isTidyTableExpr(type: FormFieldType): type is FormFieldTidyTableExprType;
|
|
317
314
|
export declare function isTidyTableExprJS(type: FormFieldType): boolean;
|
|
318
|
-
export declare function isTidyTableExprTable(type: FormFieldType):
|
|
315
|
+
export declare function isTidyTableExprTable(type: FormFieldType): type is "tidyTableHtmlExpr" | "tidyTableNumericExpr" | "tidyTableTextExpr";
|
|
319
316
|
export declare function isTidyTableExprColumn(type: FormFieldType): boolean;
|
|
320
317
|
export declare function isTidyTableExprRow(type: FormFieldType): boolean;
|
|
321
318
|
export declare function isTidyTableExprNumericString(type: FormFieldType): type is "tidyTableColorRowExpr" | "tidyTableStringRowExpr" | "tidyTableNumericStringColumnExpr";
|
|
322
319
|
export declare function isTidyTableExprNumericJS(type: FormFieldType): type is "tidyTableNumericJSColumnExpr";
|
|
323
320
|
export declare function isTidyTableExprText(type: FormFieldType): type is "tidyTableTextExpr" | "tidyTableTextRowExpr";
|
|
324
321
|
export declare function isTidyTableExprTextHtml(type: FormFieldType): type is "tidyTableHtmlExpr" | "tidyTableHtmlRowExpr";
|
|
325
|
-
export declare function isTidyTableExprNumeric(type: FormFieldType): type is "tidyTableNumericExpr" | "tidyTableNumericRowExpr"
|
|
322
|
+
export declare function isTidyTableExprNumeric(type: FormFieldType): type is "tidyTableNumericExpr" | "tidyTableNumericRowExpr";
|
|
326
323
|
export declare function isTidyTableExprScale(type: FormFieldType): type is "tidyTableScaleRowExpr";
|
|
327
324
|
/**
|
|
328
325
|
* Error messages for field suggestions and value candidates.
|
|
@@ -332,13 +329,16 @@ export declare enum AutocompleteNoOptionsText {
|
|
|
332
329
|
NO_OPTIONS = "NO_OPTIONS",
|
|
333
330
|
NO_COLUMNS = "NO_COLUMNS",
|
|
334
331
|
NO_QUERY_RESULT = "NO_QUERY_RESULT",
|
|
335
|
-
QUERY_HAS_ERROR = "QUERY_HAS_ERROR"
|
|
332
|
+
QUERY_HAS_ERROR = "QUERY_HAS_ERROR",
|
|
333
|
+
TRANSFORMATION_HAS_ERROR = "TRANSFORMATION_HAS_ERROR",
|
|
334
|
+
QUERY_OUTDATED = "QUERY_OUTDATED"
|
|
336
335
|
}
|
|
337
336
|
/**
|
|
338
337
|
* Show an action button below the options
|
|
339
338
|
*/
|
|
340
339
|
export declare enum AutocompleteActions {
|
|
341
|
-
ADD_COLOR = "ADD_COLOR"
|
|
340
|
+
ADD_COLOR = "ADD_COLOR",
|
|
341
|
+
REFRESH_QUERY = "REFRESH_QUERY"
|
|
342
342
|
}
|
|
343
343
|
export type CodeMirrorMode = "plain" | "mdx" | "sql" | "js" | "json" | "csv" | "md" | FormFieldTidyTableExprType;
|
|
344
344
|
export type FormFieldDialogEditorModelType = "unknown" | "markdown" | "mdxExpression" | FormFieldTidyTableExprType;
|
|
@@ -380,11 +380,11 @@ export interface IFormAutocompleteFieldDef<OPTION> extends IFormFieldDef<OPTION>
|
|
|
380
380
|
optionValues?: OPTION[] | ((callback: ((suggestions: OPTION[]) => void), dependsOnValue?: any, param?: {
|
|
381
381
|
theme: Theme;
|
|
382
382
|
}) => void);
|
|
383
|
-
optionValuesObsolete?: boolean;
|
|
384
|
-
optionValuesObsoleteMessage?: string;
|
|
385
383
|
noOptionsText?: AutocompleteNoOptionsText;
|
|
386
384
|
/**
|
|
387
|
-
* Show an action button below the options
|
|
385
|
+
* Show an action button below the options.
|
|
386
|
+
*
|
|
387
|
+
* If the query is outdated or not run yet, it shows a refresh action instead.
|
|
388
388
|
*/
|
|
389
389
|
action?: AutocompleteActions;
|
|
390
390
|
renderInput?: (params: AutocompleteRenderInputParams) => React.ReactNode;
|
|
@@ -655,11 +655,6 @@ export interface IFormOptionFieldMultipleDef extends IFormFieldDef<string[]> {
|
|
|
655
655
|
optionValues?: string[] | IOption[] | ((callback: ((suggestions: string[] | IOption[]) => void), dependsOnValue?: any) => void);
|
|
656
656
|
optionName?: string;
|
|
657
657
|
getCaption?: (id: string) => string;
|
|
658
|
-
/**
|
|
659
|
-
* Use the first option available if the current value is not in the available options.
|
|
660
|
-
* It resets to null if there are no available options.
|
|
661
|
-
*/
|
|
662
|
-
useFirstIfOptionNotFound?: boolean;
|
|
663
658
|
};
|
|
664
659
|
}
|
|
665
660
|
export interface IFormOptionFieldReportPathDef extends IFormFieldDef<string> {
|
|
@@ -674,11 +669,6 @@ export interface IFormOptionFieldSingleDef extends IFormFieldDef<string> {
|
|
|
674
669
|
optionValues?: string[] | IOption[] | ((callback: ((suggestions: string[] | IOption[]) => void), dependsOnValue?: any) => void);
|
|
675
670
|
optionName?: string;
|
|
676
671
|
getCaption?: (id: string) => string;
|
|
677
|
-
/**
|
|
678
|
-
* Use the first option available if the current value is not in the available options.
|
|
679
|
-
* It resets to null if there are no available options.
|
|
680
|
-
*/
|
|
681
|
-
useFirstIfOptionNotFound?: boolean;
|
|
682
672
|
};
|
|
683
673
|
}
|
|
684
674
|
export interface IFormEmbeddedFieldDef<T extends FormFieldObject> extends IFormFieldDef<T> {
|
|
@@ -734,64 +724,20 @@ export interface IFormTextFieldDef extends IFormFieldDef<string> {
|
|
|
734
724
|
fieldType: "text";
|
|
735
725
|
}
|
|
736
726
|
/**
|
|
737
|
-
*
|
|
727
|
+
* A Markdown text expression containing tidy table value accessor (e.g., Donut's center text).
|
|
738
728
|
* The evaluation context is the table.
|
|
739
729
|
*
|
|
740
730
|
* @see FormFieldDef
|
|
741
731
|
*/
|
|
742
|
-
export interface IFormTidyTableHtmlExprFieldDef extends
|
|
743
|
-
fieldType: "tidyTableHtmlExpr";
|
|
744
|
-
editorConf?: {
|
|
745
|
-
/**
|
|
746
|
-
* If true, user can use select a column in the dialog editor. This column then is the _currentColumn in the
|
|
747
|
-
* expression when evaluating in the dialog editor.
|
|
748
|
-
*/
|
|
749
|
-
userSelectsCurrentColumn?: boolean;
|
|
750
|
-
/**
|
|
751
|
-
* If true, user can use _currentColumn in the expression.
|
|
752
|
-
* The default current column comes from the first dependsOn option.
|
|
753
|
-
*/
|
|
754
|
-
useCurrentColumn?: boolean;
|
|
755
|
-
/**
|
|
756
|
-
* If true, user can use _selectedColumns in the expression.
|
|
757
|
-
* The default selected columns come from the second dependsOn option.
|
|
758
|
-
*/
|
|
759
|
-
useSelectedColumns?: boolean;
|
|
760
|
-
/**
|
|
761
|
-
* If true, the user can use $value.totalSelectedOrTotal$ to get the total of the selected for this field.
|
|
762
|
-
*/
|
|
763
|
-
allowTotalOfSelection?: boolean;
|
|
764
|
-
};
|
|
732
|
+
export interface IFormTidyTableHtmlExprFieldDef extends IFormTidyTableExprFieldDef<"tidyTableHtmlExpr"> {
|
|
765
733
|
}
|
|
766
734
|
/**
|
|
767
|
-
* An
|
|
735
|
+
* An Markdown text expression containing tidy table value accessor (e.g., chart's tooltip).
|
|
768
736
|
* The evaluation context is a row.
|
|
769
737
|
*
|
|
770
738
|
* @see FormFieldDef
|
|
771
739
|
*/
|
|
772
|
-
export interface IFormTidyTableHtmlRowExprFieldDef extends
|
|
773
|
-
fieldType: "tidyTableHtmlRowExpr";
|
|
774
|
-
editorConf?: {
|
|
775
|
-
/**
|
|
776
|
-
* If true, user can use select a column in the dialog editor. This column then is the _currentColumn in the
|
|
777
|
-
* expression when evaluating in the dialog editor.
|
|
778
|
-
*/
|
|
779
|
-
userSelectsCurrentColumn?: boolean;
|
|
780
|
-
/**
|
|
781
|
-
* If true, user can use _currentColumn in the expression.
|
|
782
|
-
* The default current column comes from the first dependsOn option.
|
|
783
|
-
*/
|
|
784
|
-
useCurrentColumn?: boolean;
|
|
785
|
-
/**
|
|
786
|
-
* If true, user can use _selectedColumns in the expression.
|
|
787
|
-
* The default selected columns come from the second dependsOn option.
|
|
788
|
-
*/
|
|
789
|
-
useSelectedColumns?: boolean;
|
|
790
|
-
/**
|
|
791
|
-
* Set here to override the available columns and roles in the completion meta.
|
|
792
|
-
*/
|
|
793
|
-
completionMeta?: string[];
|
|
794
|
-
};
|
|
740
|
+
export interface IFormTidyTableHtmlRowExprFieldDef extends IFormTidyTableExprFieldDef<"tidyTableHtmlRowExpr"> {
|
|
795
741
|
}
|
|
796
742
|
/**
|
|
797
743
|
* A numeric expression containing tidy table value accessor (e.g., chart's value axis minimum).
|
|
@@ -799,25 +745,7 @@ export interface IFormTidyTableHtmlRowExprFieldDef extends IFormFieldDef<string>
|
|
|
799
745
|
*
|
|
800
746
|
* @see FormFieldDef
|
|
801
747
|
*/
|
|
802
|
-
export interface IFormTidyTableNumericExprFieldDef extends
|
|
803
|
-
fieldType: "tidyTableNumericExpr";
|
|
804
|
-
editorConf?: {
|
|
805
|
-
/**
|
|
806
|
-
* If true, user can use select a column in the dialog editor. This column then is the _currentColumn in the
|
|
807
|
-
* expression when evaluating in the dialog editor.
|
|
808
|
-
*/
|
|
809
|
-
userSelectsCurrentColumn?: boolean;
|
|
810
|
-
/**
|
|
811
|
-
* If true, user can use _currentColumn in the expression.
|
|
812
|
-
* The default current column comes from the first dependsOn option.
|
|
813
|
-
*/
|
|
814
|
-
useCurrentColumn?: boolean;
|
|
815
|
-
/**
|
|
816
|
-
* If true, user can use _selectedColumns in the expression.
|
|
817
|
-
* The default selected columns come from the second dependsOn option.
|
|
818
|
-
*/
|
|
819
|
-
useSelectedColumns?: boolean;
|
|
820
|
-
};
|
|
748
|
+
export interface IFormTidyTableNumericExprFieldDef extends IFormTidyTableExprFieldDef<"tidyTableNumericExpr"> {
|
|
821
749
|
}
|
|
822
750
|
/**
|
|
823
751
|
* A string expression containing tidy table value accessor (e.g., chart's value axis minimum).
|
|
@@ -825,25 +753,7 @@ export interface IFormTidyTableNumericExprFieldDef extends IFormFieldDef<string>
|
|
|
825
753
|
*
|
|
826
754
|
* @see FormFieldDef
|
|
827
755
|
*/
|
|
828
|
-
export interface IFormTidyTableStringRowExprFieldDef extends
|
|
829
|
-
fieldType: "tidyTableStringRowExpr";
|
|
830
|
-
editorConf?: {
|
|
831
|
-
/**
|
|
832
|
-
* If true, user can use select a column in the dialog editor. This column then is the _currentColumn in the
|
|
833
|
-
* expression when evaluating in the dialog editor.
|
|
834
|
-
*/
|
|
835
|
-
userSelectsCurrentColumn?: boolean;
|
|
836
|
-
/**
|
|
837
|
-
* If true, user can use _currentColumn in the expression.
|
|
838
|
-
* The default current column comes from the first dependsOn option.
|
|
839
|
-
*/
|
|
840
|
-
useCurrentColumn?: boolean;
|
|
841
|
-
/**
|
|
842
|
-
* If true, user can use _selectedColumns in the expression.
|
|
843
|
-
* The default selected columns come from the second dependsOn option.
|
|
844
|
-
*/
|
|
845
|
-
useSelectedColumns?: boolean;
|
|
846
|
-
};
|
|
756
|
+
export interface IFormTidyTableStringRowExprFieldDef extends IFormTidyTableExprFieldDef<"tidyTableStringRowExpr"> {
|
|
847
757
|
}
|
|
848
758
|
/**
|
|
849
759
|
* A color (i.e., string) expression containing tidy table value accessor (e.g., chart's value axis minimum).
|
|
@@ -851,25 +761,7 @@ export interface IFormTidyTableStringRowExprFieldDef extends IFormFieldDef<strin
|
|
|
851
761
|
*
|
|
852
762
|
* @see FormFieldDef
|
|
853
763
|
*/
|
|
854
|
-
export interface IFormTidyTableColorRowExprFieldDef extends
|
|
855
|
-
fieldType: "tidyTableColorRowExpr";
|
|
856
|
-
editorConf?: {
|
|
857
|
-
/**
|
|
858
|
-
* If true, user can use select a column in the dialog editor. This column then is the _currentColumn in the
|
|
859
|
-
* expression when evaluating in the dialog editor.
|
|
860
|
-
*/
|
|
861
|
-
userSelectsCurrentColumn?: boolean;
|
|
862
|
-
/**
|
|
863
|
-
* If true, user can use _currentColumn in the expression.
|
|
864
|
-
* The default current column comes from the first dependsOn option.
|
|
865
|
-
*/
|
|
866
|
-
useCurrentColumn?: boolean;
|
|
867
|
-
/**
|
|
868
|
-
* If true, user can use _selectedColumns in the expression.
|
|
869
|
-
* The default selected columns come from the second dependsOn option.
|
|
870
|
-
*/
|
|
871
|
-
useSelectedColumns?: boolean;
|
|
872
|
-
};
|
|
764
|
+
export interface IFormTidyTableColorRowExprFieldDef extends IFormTidyTableExprFieldDef<"tidyTableColorRowExpr"> {
|
|
873
765
|
}
|
|
874
766
|
/**
|
|
875
767
|
* A numeric expression containing tidy table value accessor (e.g., chart's value axis minimum).
|
|
@@ -877,51 +769,7 @@ export interface IFormTidyTableColorRowExprFieldDef extends IFormFieldDef<string
|
|
|
877
769
|
*
|
|
878
770
|
* @see FormFieldDef
|
|
879
771
|
*/
|
|
880
|
-
export interface IFormTidyTableNumericRowExprFieldDef extends
|
|
881
|
-
fieldType: "tidyTableNumericRowExpr";
|
|
882
|
-
editorConf?: {
|
|
883
|
-
/**
|
|
884
|
-
* If true, user can use select a column in the dialog editor. This column then is the _currentColumn in the
|
|
885
|
-
* expression when evaluating in the dialog editor.
|
|
886
|
-
*/
|
|
887
|
-
userSelectsCurrentColumn?: boolean;
|
|
888
|
-
/**
|
|
889
|
-
* If true, user can use _currentColumn in the expression.
|
|
890
|
-
* The default current column comes from the first dependsOn option.
|
|
891
|
-
*/
|
|
892
|
-
useCurrentColumn?: boolean;
|
|
893
|
-
/**
|
|
894
|
-
* If true, user can use _selectedColumns in the expression.
|
|
895
|
-
* The default selected columns come from the second dependsOn option.
|
|
896
|
-
*/
|
|
897
|
-
useSelectedColumns?: boolean;
|
|
898
|
-
};
|
|
899
|
-
}
|
|
900
|
-
/**
|
|
901
|
-
* A numeric expression containing tidy table value accessor (e.g., chart's value axis minimum).
|
|
902
|
-
* The evaluation context is a column.
|
|
903
|
-
*
|
|
904
|
-
* @see FormFieldDef
|
|
905
|
-
*/
|
|
906
|
-
export interface IFormTidyTableNumericColumnExprFieldDef extends IFormFieldDef<string> {
|
|
907
|
-
fieldType: "tidyTableNumericColumnExpr";
|
|
908
|
-
editorConf?: {
|
|
909
|
-
/**
|
|
910
|
-
* If true, user can use select a column in the dialog editor. This column then is the _currentColumn in the
|
|
911
|
-
* expression when evaluating in the dialog editor.
|
|
912
|
-
*/
|
|
913
|
-
userSelectsCurrentColumn?: boolean;
|
|
914
|
-
/**
|
|
915
|
-
* If true, user can use _currentColumn in the expression.
|
|
916
|
-
* The default current column comes from the first dependsOn option.
|
|
917
|
-
*/
|
|
918
|
-
useCurrentColumn?: boolean;
|
|
919
|
-
/**
|
|
920
|
-
* If true, user can use _selectedColumns in the expression.
|
|
921
|
-
* The default selected columns come from the second dependsOn option.
|
|
922
|
-
*/
|
|
923
|
-
useSelectedColumns?: boolean;
|
|
924
|
-
};
|
|
772
|
+
export interface IFormTidyTableNumericRowExprFieldDef extends IFormTidyTableExprFieldDef<"tidyTableNumericRowExpr"> {
|
|
925
773
|
}
|
|
926
774
|
/**
|
|
927
775
|
* A numeric expression containing tidy table value accessor (e.g., chart's value axis minimum).
|
|
@@ -929,25 +777,7 @@ export interface IFormTidyTableNumericColumnExprFieldDef extends IFormFieldDef<s
|
|
|
929
777
|
*
|
|
930
778
|
* @see FormFieldDef
|
|
931
779
|
*/
|
|
932
|
-
export interface IFormTidyTableNumericJSColumnExprFieldDef extends
|
|
933
|
-
fieldType: "tidyTableNumericJSColumnExpr";
|
|
934
|
-
editorConf?: {
|
|
935
|
-
/**
|
|
936
|
-
* If true, user can use select a column in the dialog editor. This column then is the _currentColumn in the
|
|
937
|
-
* expression when evaluating in the dialog editor.
|
|
938
|
-
*/
|
|
939
|
-
userSelectsCurrentColumn?: boolean;
|
|
940
|
-
/**
|
|
941
|
-
* If true, user can use _currentColumn in the expression.
|
|
942
|
-
* The default current column comes from the first dependsOn option.
|
|
943
|
-
*/
|
|
944
|
-
useCurrentColumn?: boolean;
|
|
945
|
-
/**
|
|
946
|
-
* If true, user can use _selectedColumns in the expression.
|
|
947
|
-
* The default selected columns come from the second dependsOn option.
|
|
948
|
-
*/
|
|
949
|
-
useSelectedColumns?: boolean;
|
|
950
|
-
};
|
|
780
|
+
export interface IFormTidyTableNumericJSColumnExprFieldDef extends IFormTidyTableExprFieldDef<"tidyTableNumericJSColumnExpr"> {
|
|
951
781
|
}
|
|
952
782
|
/**
|
|
953
783
|
* A numeric expression containing tidy table value accessor (e.g., chart's value axis minimum).
|
|
@@ -955,25 +785,7 @@ export interface IFormTidyTableNumericJSColumnExprFieldDef extends IFormFieldDef
|
|
|
955
785
|
*
|
|
956
786
|
* @see FormFieldDef
|
|
957
787
|
*/
|
|
958
|
-
export interface IFormTidyTableScaleRowExprFieldDef extends
|
|
959
|
-
fieldType: "tidyTableScaleRowExpr";
|
|
960
|
-
editorConf: {
|
|
961
|
-
/**
|
|
962
|
-
* If true, user can use select a column in the dialog editor. This column then is the _currentColumn in the
|
|
963
|
-
* expression when evaluating in the dialog editor.
|
|
964
|
-
*/
|
|
965
|
-
userSelectsCurrentColumn?: boolean;
|
|
966
|
-
/**
|
|
967
|
-
* If true, user can use _currentColumn in the expression.
|
|
968
|
-
* The default current column comes from the first dependsOn option.
|
|
969
|
-
*/
|
|
970
|
-
useCurrentColumn?: boolean;
|
|
971
|
-
/**
|
|
972
|
-
* If true, user can use _selectedColumns in the expression.
|
|
973
|
-
* The default selected columns come from the second dependsOn option.
|
|
974
|
-
*/
|
|
975
|
-
useSelectedColumns?: boolean;
|
|
976
|
-
};
|
|
788
|
+
export interface IFormTidyTableScaleRowExprFieldDef extends IFormTidyTableExprFieldDef<"tidyTableScaleRowExpr"> {
|
|
977
789
|
}
|
|
978
790
|
/**
|
|
979
791
|
* A text expression containing tidy table value accessor (e.g., Donut's center text).
|
|
@@ -981,25 +793,7 @@ export interface IFormTidyTableScaleRowExprFieldDef extends IFormFieldDef<string
|
|
|
981
793
|
*
|
|
982
794
|
* @see FormFieldDef
|
|
983
795
|
*/
|
|
984
|
-
export interface IFormTidyTableTextExprFieldDef extends
|
|
985
|
-
fieldType: "tidyTableTextExpr";
|
|
986
|
-
editorConf?: {
|
|
987
|
-
/**
|
|
988
|
-
* If true, user can use select a column in the dialog editor. This column then is the _currentColumn in the
|
|
989
|
-
* expression when evaluating in the dialog editor.
|
|
990
|
-
*/
|
|
991
|
-
userSelectsCurrentColumn?: boolean;
|
|
992
|
-
/**
|
|
993
|
-
* If true, user can use _currentColumn in the expression.
|
|
994
|
-
* The default current column comes from the first dependsOn option.
|
|
995
|
-
*/
|
|
996
|
-
useCurrentColumn?: boolean;
|
|
997
|
-
/**
|
|
998
|
-
* If true, user can use _selectedColumns in the expression.
|
|
999
|
-
* The default selected columns come from the second dependsOn option.
|
|
1000
|
-
*/
|
|
1001
|
-
useSelectedColumns?: boolean;
|
|
1002
|
-
};
|
|
796
|
+
export interface IFormTidyTableTextExprFieldDef extends IFormTidyTableExprFieldDef<"tidyTableTextExpr"> {
|
|
1003
797
|
}
|
|
1004
798
|
/**
|
|
1005
799
|
* A text expression containing tidy table value accessor (e.g., cell renderer link).
|
|
@@ -1007,25 +801,7 @@ export interface IFormTidyTableTextExprFieldDef extends IFormFieldDef<string> {
|
|
|
1007
801
|
*
|
|
1008
802
|
* @see FormFieldDef
|
|
1009
803
|
*/
|
|
1010
|
-
export interface IFormTidyTableTextRowExprFieldDef extends
|
|
1011
|
-
fieldType: "tidyTableTextRowExpr";
|
|
1012
|
-
editorConf?: {
|
|
1013
|
-
/**
|
|
1014
|
-
* If true, user can use select a column in the dialog editor. This column then is the _currentColumn in the
|
|
1015
|
-
* expression when evaluating in the dialog editor.
|
|
1016
|
-
*/
|
|
1017
|
-
userSelectsCurrentColumn?: boolean;
|
|
1018
|
-
/**
|
|
1019
|
-
* If true, user can use _currentColumn in the expression.
|
|
1020
|
-
* The default current column comes from the first dependsOn option.
|
|
1021
|
-
*/
|
|
1022
|
-
useCurrentColumn?: boolean;
|
|
1023
|
-
/**
|
|
1024
|
-
* If true, user can use _selectedColumns in the expression.
|
|
1025
|
-
* The default selected columns come from the second dependsOn option.
|
|
1026
|
-
*/
|
|
1027
|
-
useSelectedColumns?: boolean;
|
|
1028
|
-
};
|
|
804
|
+
export interface IFormTidyTableTextRowExprFieldDef extends IFormTidyTableExprFieldDef<"tidyTableTextRowExpr"> {
|
|
1029
805
|
}
|
|
1030
806
|
/**
|
|
1031
807
|
* A text expression containing tidy table value accessor (e.g., cell renderer link).
|
|
@@ -1033,25 +809,7 @@ export interface IFormTidyTableTextRowExprFieldDef extends IFormFieldDef<string>
|
|
|
1033
809
|
*
|
|
1034
810
|
* @see FormFieldDef
|
|
1035
811
|
*/
|
|
1036
|
-
export interface IFormTidyTableNumericStringColumnExprFieldDef extends
|
|
1037
|
-
fieldType: "tidyTableNumericStringColumnExpr";
|
|
1038
|
-
editorConf?: {
|
|
1039
|
-
/**
|
|
1040
|
-
* If true, user can use select a column in the dialog editor. This column then is the _currentColumn in the
|
|
1041
|
-
* expression when evaluating in the dialog editor.
|
|
1042
|
-
*/
|
|
1043
|
-
userSelectsCurrentColumn?: boolean;
|
|
1044
|
-
/**
|
|
1045
|
-
* If true, user can use _currentColumn in the expression.
|
|
1046
|
-
* The default current column comes from the first dependsOn option.
|
|
1047
|
-
*/
|
|
1048
|
-
useCurrentColumn?: boolean;
|
|
1049
|
-
/**
|
|
1050
|
-
* If true, user can use _selectedColumns in the expression.
|
|
1051
|
-
* The default selected columns come from the second dependsOn option.
|
|
1052
|
-
*/
|
|
1053
|
-
useSelectedColumns?: boolean;
|
|
1054
|
-
};
|
|
812
|
+
export interface IFormTidyTableNumericStringColumnExprFieldDef extends IFormTidyTableExprFieldDef<"tidyTableNumericStringColumnExpr"> {
|
|
1055
813
|
}
|
|
1056
814
|
/**
|
|
1057
815
|
* icCube variants (defined in the theme's ic3.widgetVariants).
|
|
@@ -1073,10 +831,15 @@ export interface IFormFormatterPickerFieldDef extends IFormFieldDef<string> {
|
|
|
1073
831
|
*/
|
|
1074
832
|
export declare enum ConditionalRuleOperators {
|
|
1075
833
|
EQUALS = "EQUALS",
|
|
834
|
+
NOT_EQUALS = "NOT_EQUALS",
|
|
1076
835
|
GREATER_THAN = "GREATER_THAN",
|
|
1077
836
|
GREATER_EQUAL_THAN = "GREATER_EQUAL_THAN",
|
|
1078
837
|
SMALLER_THAN = "SMALLER_THAN",
|
|
1079
|
-
SMALLER_EQUAL_THAN = "SMALLER_EQUAL_THAN"
|
|
838
|
+
SMALLER_EQUAL_THAN = "SMALLER_EQUAL_THAN",
|
|
839
|
+
CONTAINS = "CONTAINS",
|
|
840
|
+
NOT_CONTAINS = "NOT_CONTAINS",
|
|
841
|
+
STARTS_WITH = "STARTS_WITH",
|
|
842
|
+
ENDS_WITH = "ENDS_WITH"
|
|
1080
843
|
}
|
|
1081
844
|
export interface IFormConditionalColorRule {
|
|
1082
845
|
operator: ConditionalRuleOperators;
|