@ic3/reporting-api 8.2.1 → 8.3.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/dist/ApiUtils.js +1 -1
  2. package/dist/ApiUtils.js.map +1 -1
  3. package/dist/INotification.d.ts +1 -1
  4. package/dist/IPluginDefinition.d.ts +7 -6
  5. package/dist/IReporting.d.ts +7 -1
  6. package/dist/ITidyTableTransformation.d.ts +5 -0
  7. package/dist/LazyTreeView.d.ts +38 -9
  8. package/dist/Loader.d.ts +31 -2
  9. package/dist/Loader.js +39 -21
  10. package/dist/Loader.js.map +1 -1
  11. package/dist/Logger.d.ts +13 -0
  12. package/dist/{theme/ThemeDrilldownUserSelectMenu.js → Logger.js} +1 -1
  13. package/dist/Logger.js.map +1 -0
  14. package/dist/PublicAmchartsData.d.ts +9 -3
  15. package/dist/PublicAmchartsData.js +28 -6
  16. package/dist/PublicAmchartsData.js.map +1 -1
  17. package/dist/PublicContext.d.ts +18 -10
  18. package/dist/PublicContext.js.map +1 -1
  19. package/dist/PublicTemplate.d.ts +4 -1
  20. package/dist/PublicTemplate.js.map +1 -1
  21. package/dist/PublicTemplateForm.d.ts +178 -17
  22. package/dist/PublicTemplateForm.js +2 -16
  23. package/dist/PublicTemplateForm.js.map +1 -1
  24. package/dist/PublicTheme.d.ts +16 -12
  25. package/dist/PublicTheme.js +1 -0
  26. package/dist/PublicTheme.js.map +1 -1
  27. package/dist/PublicTidyColumn.d.ts +25 -3
  28. package/dist/PublicTidyColumn.js +4 -0
  29. package/dist/PublicTidyColumn.js.map +1 -1
  30. package/dist/PublicTidyTable.d.ts +26 -1
  31. package/dist/PublicTidyTableTypeGuards.d.ts +3 -1
  32. package/dist/PublicTidyTableTypeGuards.js +22 -1
  33. package/dist/PublicTidyTableTypeGuards.js.map +1 -1
  34. package/dist/PublicTidyTableTypes.d.ts +25 -3
  35. package/dist/PublicTidyTableTypes.js +7 -1
  36. package/dist/PublicTidyTableTypes.js.map +1 -1
  37. package/dist/PublicTidyTree.d.ts +2 -4
  38. package/dist/PublicTidyTree.js +3 -4
  39. package/dist/PublicTidyTree.js.map +1 -1
  40. package/dist/RemoteContainerUtils.js +1 -1
  41. package/dist/RemoteContainerUtils.js.map +1 -1
  42. package/dist/index.d.ts +1 -1
  43. package/dist/index.js +1 -1
  44. package/dist/index.js.map +1 -1
  45. package/dist/theme/ThemeAlertDialog.d.ts +5 -3
  46. package/dist/theme/ThemeAlertDialog.js +14 -0
  47. package/dist/theme/ThemeAlertDialog.js.map +1 -1
  48. package/dist/theme/ThemeAmCharts4.d.ts +82 -5
  49. package/dist/theme/ThemeAmCharts4.js +8 -1
  50. package/dist/theme/ThemeAmCharts4.js.map +1 -1
  51. package/dist/theme/ThemeApp.d.ts +2 -1
  52. package/dist/theme/ThemeApp.js +1 -1
  53. package/dist/theme/ThemeApp.js.map +1 -1
  54. package/dist/theme/ThemeAppMenuIcon.d.ts +3 -3
  55. package/dist/theme/ThemeAppMenuIcon.js +4 -4
  56. package/dist/theme/ThemeAppMenuIcon.js.map +1 -1
  57. package/dist/theme/ThemeBaseTable.d.ts +4 -0
  58. package/dist/theme/ThemeDatePicker.d.ts +1 -1
  59. package/dist/theme/ThemeDatePicker.js +2 -1
  60. package/dist/theme/ThemeDatePicker.js.map +1 -1
  61. package/dist/theme/ThemeEditorTopBar.d.ts +5 -1
  62. package/dist/theme/ThemeEditorTopBar.js +11 -7
  63. package/dist/theme/ThemeEditorTopBar.js.map +1 -1
  64. package/dist/theme/ThemeErrorRenderer.d.ts +13 -13
  65. package/dist/theme/ThemeErrorRenderer.js +52 -0
  66. package/dist/theme/ThemeErrorRenderer.js.map +1 -1
  67. package/dist/theme/ThemeFilterAutocomplete.d.ts +2 -14
  68. package/dist/theme/ThemeFilterAutocomplete.js +3 -12
  69. package/dist/theme/ThemeFilterAutocomplete.js.map +1 -1
  70. package/dist/theme/ThemeFilterButtons.d.ts +3 -3
  71. package/dist/theme/ThemeFilterButtons.js +3 -3
  72. package/dist/theme/ThemeFilterButtons.js.map +1 -1
  73. package/dist/theme/ThemeFilterCheckboxRadio.d.ts +4 -4
  74. package/dist/theme/ThemeFilterCheckboxRadio.js +4 -4
  75. package/dist/theme/ThemeFilterCheckboxRadio.js.map +1 -1
  76. package/dist/theme/ThemeFilterPanel.d.ts +19 -19
  77. package/dist/theme/ThemeFilterPanel.js +19 -19
  78. package/dist/theme/ThemeFilterPanel.js.map +1 -1
  79. package/dist/theme/ThemeFilterSlider.d.ts +26 -4
  80. package/dist/theme/ThemeFilterSlider.js +14 -3
  81. package/dist/theme/ThemeFilterSlider.js.map +1 -1
  82. package/dist/theme/ThemeFilterTree.d.ts +6 -6
  83. package/dist/theme/ThemeFilterTree.js +1 -1
  84. package/dist/theme/ThemeFilterTree.js.map +1 -1
  85. package/dist/theme/ThemeGlobal.d.ts +2 -2
  86. package/dist/theme/ThemeGlobal.js +2 -2
  87. package/dist/theme/ThemeHtmlBox.d.ts +3 -3
  88. package/dist/theme/ThemeHtmlBox.js +9 -0
  89. package/dist/theme/ThemeHtmlBox.js.map +1 -1
  90. package/dist/theme/ThemeImage.d.ts +11 -0
  91. package/dist/theme/ThemeImage.js +9 -0
  92. package/dist/theme/ThemeImage.js.map +1 -1
  93. package/dist/theme/ThemeKpiCard.d.ts +5 -4
  94. package/dist/theme/ThemeKpiCard.js +12 -11
  95. package/dist/theme/ThemeKpiCard.js.map +1 -1
  96. package/dist/theme/ThemeLayout.d.ts +6 -3
  97. package/dist/theme/ThemeLayout.js +11 -0
  98. package/dist/theme/ThemeLayout.js.map +1 -1
  99. package/dist/theme/ThemeLayoutPage.d.ts +7 -6
  100. package/dist/theme/ThemeLayoutPage.js +25 -0
  101. package/dist/theme/ThemeLayoutPage.js.map +1 -1
  102. package/dist/theme/ThemeLazyTreeClasses.d.ts +6 -6
  103. package/dist/theme/ThemeLazyTreeClasses.js +6 -6
  104. package/dist/theme/ThemeLazyTreeClasses.js.map +1 -1
  105. package/dist/theme/ThemePivotTable.d.ts +1 -0
  106. package/dist/theme/ThemePivotTable.js +1 -0
  107. package/dist/theme/ThemePivotTable.js.map +1 -1
  108. package/dist/theme/ThemeQueryBuilderNode.d.ts +8 -3
  109. package/dist/theme/ThemeQueryBuilderNode.js +9 -4
  110. package/dist/theme/ThemeQueryBuilderNode.js.map +1 -1
  111. package/dist/theme/ThemeRepetitionWidget.d.ts +6 -0
  112. package/dist/theme/ThemeReportAppBar.d.ts +6 -3
  113. package/dist/theme/ThemeReportAppBar.js +18 -0
  114. package/dist/theme/ThemeReportAppBar.js.map +1 -1
  115. package/dist/theme/ThemeReportAppLeftPanel.d.ts +5 -4
  116. package/dist/theme/ThemeReportAppLeftPanel.js +5 -4
  117. package/dist/theme/ThemeReportAppLeftPanel.js.map +1 -1
  118. package/dist/theme/ThemeTable.d.ts +4 -0
  119. package/dist/theme/ThemeWidgetBoxContentMessage.d.ts +3 -3
  120. package/dist/theme/ThemeWidgetBoxContentMessage.js +12 -0
  121. package/dist/theme/ThemeWidgetBoxContentMessage.js.map +1 -1
  122. package/package.json +5 -5
  123. package/dist/theme/ThemeDrilldownUserSelectMenu.d.ts +0 -11
  124. package/dist/theme/ThemeDrilldownUserSelectMenu.js.map +0 -1
@@ -7,6 +7,7 @@ import { ThemeTextFormatter } from "./PublicTheme";
7
7
  import { ITidyColumn, ITidyNumericColumn } from "./PublicTidyColumn";
8
8
  import { IPublicWidgetTemplateDefinition } from "./PublicTemplate";
9
9
  import { ITidyMath } from "./PublicTidyMath";
10
+ import { ILogger } from "./Logger";
10
11
  export declare enum WidgetRenderLayoutStatus {
11
12
  RENDERING = "RENDERING",
12
13
  RENDERED = "RENDERED"
@@ -16,6 +17,7 @@ export declare enum IContentMessageType {
16
17
  error = 1
17
18
  }
18
19
  export interface IPublicContext {
20
+ logger(): ILogger;
19
21
  /**
20
22
  * React, returns true when loaded
21
23
  */
@@ -58,7 +60,7 @@ export interface IPublicContext {
58
60
  * To prevent usage of the default, pass an "empty" string that makes this method returns
59
61
  * undefined.
60
62
  */
61
- createTableRowTextExpr(field: string, table: ITidyTable, defaultColumn: ITidyColumn | undefined, expression: string | undefined): ((rowIdx: number) => string) | undefined;
63
+ createTableRowTextExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined): ((rowIdx: number) => string) | undefined;
62
64
  /**
63
65
  * Not in widget public context because of transformation not applied from a widget context always.
64
66
  *
@@ -66,7 +68,7 @@ export interface IPublicContext {
66
68
  * To prevent usage of the default, pass an "empty" string that makes this method returns
67
69
  * undefined.
68
70
  */
69
- createTableTextExpr(field: string, table: ITidyTable, defaultColumn: ITidyColumn | undefined, expression: string | undefined): (() => string) | undefined;
71
+ createTableTextExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined): (() => string) | undefined;
70
72
  /**
71
73
  * Not in widget public context because of transformation not applied from a widget context always.
72
74
  *
@@ -74,7 +76,7 @@ export interface IPublicContext {
74
76
  * To prevent usage of the default, pass an "empty" string that makes this method returns
75
77
  * undefined.
76
78
  */
77
- createTableRowMarkdownExpr(field: string, table: ITidyTable, defaultColumn: ITidyColumn | undefined, expression: string | undefined): ((rowIdx: number) => string) | undefined;
79
+ createTableRowMarkdownExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined): ((rowIdx: number) => string) | undefined;
78
80
  /**
79
81
  * Not in widget public context because of transformation not applied from a widget context always.
80
82
  *
@@ -90,12 +92,12 @@ export interface IPublicContext {
90
92
  * To prevent usage of the default, pass an "empty" string that makes this method returns
91
93
  * undefined.
92
94
  */
93
- createTableRowNumericExpr(field: string, table: ITidyTable, defaultColumn: ITidyColumn | undefined, expression: string | undefined): ((rowIdx: number) => number | undefined) | undefined;
95
+ createTableRowNumericExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined): ((rowIdx: number) => number | undefined) | undefined;
94
96
  /**
95
97
  * same as createTableRowNumericExpr but returning a string
96
98
  */
97
- createTableRowNumericStringExpr(field: string, table: ITidyTable, defaultColumn: ITidyColumn | undefined, expression: string | undefined): ((rowIdx: number) => string | undefined) | undefined;
98
- createTableScaleRowNumericExpr(field: string, table: ITidyTable, defaultColumn: ITidyColumn | undefined, expression: string | undefined): ((rowIdx: number) => number | undefined) | undefined;
99
+ createTableRowNumericStringExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined): ((rowIdx: number) => string | undefined) | undefined;
100
+ createTableScaleRowNumericExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined): ((rowIdx: number) => number | undefined) | undefined;
99
101
  /**
100
102
  * Not in widget public context because of transformation not applied from a widget context always.
101
103
  *
@@ -103,15 +105,14 @@ export interface IPublicContext {
103
105
  * To prevent usage of the default, pass an "empty" string that makes this method returns
104
106
  * undefined.
105
107
  */
106
- createTableNumericExpr(field: string, table: ITidyTable, defaultColumn: ITidyColumn | undefined, expression: string | undefined): (() => number | undefined) | undefined;
108
+ createTableNumericExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined): (() => number | undefined) | undefined;
107
109
  }
108
110
  export interface IWidgetPublicContext extends IPublicContext {
109
111
  getNsId(): string;
110
112
  getWidgetId(): string;
113
+ getWidgetPageNb(): number;
111
114
  getTemplateId(): string;
112
- getWidgetPageId(): string;
113
115
  isPrintingMode(): boolean;
114
- logInfoWidget(component: string, message: string): void;
115
116
  renderWidgetContentMessage(type: IContentMessageType, message: string): any;
116
117
  renderLazyTreeView<T>(props: LazyTreeViewProps): T;
117
118
  formatDate(value: Date | string | undefined | null, format: ThemeTextFormatter | null | undefined, locale?: string): string;
@@ -162,7 +163,14 @@ export interface IWidgetPublicContext extends IPublicContext {
162
163
  *
163
164
  * Note it's NOT the initial value but value if undefined
164
165
  */
165
- useReduxOwnPropsState<T>(fieldName: string, valueIfUndefined?: T): [T, (newValue: T) => void];
166
+ useReduxOwnPropsState<T>(fieldName: string, valueIfUndefined?: T): [T, (newValue: T | undefined) => void];
167
+ /**
168
+ * doExport callback is called on each exportToExcel from the userMenu of the widget
169
+ *
170
+ * if the callback returns a tidyTable, this table will be exported
171
+ * if undefined is returned no further action
172
+ */
173
+ onExportToExcel(doExport: (fileName: string | undefined) => ITidyTable | undefined): void;
166
174
  /**
167
175
  * React -> useSelector on widgetOwnProps[fieldName]
168
176
  */
@@ -1 +1 @@
1
- {"version":3,"file":"PublicContext.js","sourceRoot":"","sources":["../src/PublicContext.ts"],"names":[],"mappings":";;;AASA,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAChC,mDAAuB,CAAA;IACvB,iDAAqB,CAAA;AACzB,CAAC,EAHW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAGnC;AAED,IAAY,mBAAkC;AAA9C,WAAY,mBAAmB;IAAG,6DAAI,CAAA;IAAE,+DAAK,CAAA;AAAA,CAAC,EAAlC,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAAe"}
1
+ {"version":3,"file":"PublicContext.js","sourceRoot":"","sources":["../src/PublicContext.ts"],"names":[],"mappings":";;;AAUA,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAChC,mDAAuB,CAAA;IACvB,iDAAqB,CAAA;AACzB,CAAC,EAHW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAGnC;AAED,IAAY,mBAAkC;AAA9C,WAAY,mBAAmB;IAAG,6DAAI,CAAA;IAAE,+DAAK,CAAA;AAAA,CAAC,EAAlC,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAAe"}
@@ -9,6 +9,7 @@ import { WidgetTemplateChartOptions, WidgetTemplateIDs } from "./PublicTemplates
9
9
  import { ChartTemplateDataMapping, IFormFieldGranularityItem } from "./PublicTidyTableTypes";
10
10
  import { ResizingConstraintOptions } from "./theme/ThemeWidgetBox";
11
11
  import { QueryType } from "./ITypes";
12
+ import { ILogger } from "./Logger";
12
13
  export interface IRectanglePosition {
13
14
  top: number;
14
15
  left: number;
@@ -340,6 +341,8 @@ interface IPublicCommonWidgetTemplateDefinition<OPTIONS extends FormFieldObject>
340
341
  /**
341
342
  * Setup how to get default mappings from the table and options for this widget.
342
343
  * If undefined, it uses the default fallback logic.
344
+ *
345
+ * Note, the mapping keys must be in lower case.
343
346
  */
344
347
  defaultMapping?: (data: IWidgetTemplateTidyOptions<OPTIONS>) => ChartTemplateDataMapping;
345
348
  /**
@@ -382,7 +385,7 @@ interface IPublicCommonWidgetTemplateDefinition<OPTIONS extends FormFieldObject>
382
385
  /**
383
386
  * When defining new widgets using amCharts 4, this method registers the icCube license.
384
387
  */
385
- registerAmCharts4?: (callback: (am4core: any) => void) => void;
388
+ registerAmCharts4?: (logger: ILogger, callback: (am4core: any) => void) => void;
386
389
  /**
387
390
  * When opening "Use Global Filter" option on Interaction tab
388
391
  */
@@ -1 +1 @@
1
- {"version":3,"file":"PublicTemplate.js","sourceRoot":"","sources":["../src/PublicTemplate.ts"],"names":[],"mappings":";;;AA0DA,IAAY,4CAIX;AAJD,WAAY,4CAA4C;IACpD,qEAAqB,CAAA;IACrB,yEAAyB,CAAA;IACzB,2EAA2B,CAAA;AAC/B,CAAC,EAJW,4CAA4C,GAA5C,oDAA4C,KAA5C,oDAA4C,QAIvD;AAybD;;;;GAIG;AACH,IAAY,4BAKX;AALD,WAAY,4BAA4B;IACpC,+CAAe,CAAA;IACf,iDAAiB,CAAA;IACjB,2CAAW,CAAA;IACX,6CAAa,CAAA;AACjB,CAAC,EALW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAKvC;AA6BD;;GAEG;AACH,IAAY,wBAMX;AAND,WAAY,wBAAwB;IAChC,mDAAuB,CAAA;IAEvB,gBAAgB;IAChB,0DAA8B,CAAA;IAC9B,iEAAqC,CAAA;AACzC,CAAC,EANW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAMnC"}
1
+ {"version":3,"file":"PublicTemplate.js","sourceRoot":"","sources":["../src/PublicTemplate.ts"],"names":[],"mappings":";;;AA2DA,IAAY,4CAIX;AAJD,WAAY,4CAA4C;IACpD,qEAAqB,CAAA;IACrB,yEAAyB,CAAA;IACzB,2EAA2B,CAAA;AAC/B,CAAC,EAJW,4CAA4C,GAA5C,oDAA4C,KAA5C,oDAA4C,QAIvD;AA2bD;;;;GAIG;AACH,IAAY,4BAKX;AALD,WAAY,4BAA4B;IACpC,+CAAe,CAAA;IACf,iDAAiB,CAAA;IACjB,2CAAW,CAAA;IACX,6CAAa,CAAA;AACjB,CAAC,EALW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAKvC;AA6BD;;GAEG;AACH,IAAY,wBAMX;AAND,WAAY,wBAAwB;IAChC,mDAAuB,CAAA;IAEvB,gBAAgB;IAChB,0DAA8B,CAAA;IAC9B,iEAAqC,CAAA;AACzC,CAAC,EANW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAMnC"}
@@ -2,7 +2,7 @@ import { IWidgetEditorPublicContext } from "./PublicContext";
2
2
  import { ITidyColumn } from "./PublicTidyColumn";
3
3
  import * as React from "react";
4
4
  import { AutocompleteRenderInputParams, AutocompleteRenderOptionState } from "@mui/material/Autocomplete/Autocomplete";
5
- import { IFormFieldGranularityItem, TidyColumnsType, TidyTableColumnSelector } from "./PublicTidyTableTypes";
5
+ import { ChartTemplateDataMapping, IFormFieldGranularityItem, TidyColumnsType, TidyTableColumnSelector } from "./PublicTidyTableTypes";
6
6
  import { ITidyTable } from "./PublicTidyTable";
7
7
  export declare type Hook<T> = {
8
8
  hook: (value: T) => void;
@@ -97,7 +97,7 @@ export declare type FormFields<T extends FormFieldObject> = {
97
97
  } | {
98
98
  defaultValue?: any;
99
99
  mandatory?: false;
100
- }) & (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<IFormColumnChooserMultipleFieldDef, 'fieldPath'> : Required<T>[key] extends TidyTableColumnSelector ? Omit<IFormColumnChooserSingleFieldDef, 'fieldPath'> : Required<T>[key] extends IFormEventMappingArrayFieldDefType ? Omit<IFormEventMappingArrayFieldDef, 'fieldPath'> : Required<T>[key] extends Hook<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 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'> | Omit<IFormOptionFieldReportPathDef, 'fieldPath'> : Required<T>[key] extends string[] ? Omit<IFormOptionFieldMultipleDef, 'fieldPath'> | Omit<IFormGroupsFieldDef, 'fieldPath'> : never);
100
+ }) & (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<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 Hook<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<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'> | Omit<IFormOptionFieldReportPathDef, 'fieldPath'> : Required<T>[key] extends string[] ? Omit<IFormOptionFieldMultipleDef, 'fieldPath'> | Omit<IFormGroupsFieldDef, 'fieldPath'> : never);
101
101
  };
102
102
  export declare enum IFormFieldGroupTypes {
103
103
  Selection = "selection",
@@ -136,7 +136,7 @@ export declare type FormFieldType =
136
136
  /**
137
137
  * @see IFormArrayStringRecordsFieldDef
138
138
  */
139
- "eventMappingArray" |
139
+ "eventMappingArray" | "eventArray" |
140
140
  /**
141
141
  * @see IFormEmbeddedFieldDef
142
142
  */
@@ -177,6 +177,10 @@ export declare type FormFieldType =
177
177
  * @see IFormMarkdownFieldDef
178
178
  */
179
179
  "markdown" |
180
+ /**
181
+ * @see IFormMaskFieldDef
182
+ */
183
+ "mask" |
180
184
  /**
181
185
  * @see IFormMdxFieldDef
182
186
  */
@@ -282,7 +286,6 @@ export declare enum AutocompleteActions {
282
286
  ADD_COLOR = "ADD_COLOR"
283
287
  }
284
288
  export declare type CodeMirrorMode = "plain" | "mdx" | "sql" | "js" | "json" | "csv" | "md" | FormFieldTidyTableExprType;
285
- export declare function isCodeMirrorModeExpr(mode: CodeMirrorMode): boolean;
286
289
  export declare type FormFieldDialogEditorModelType = "unknown" | "markdown" | "mdxExpression" | FormFieldTidyTableExprType;
287
290
  export interface IColorDef {
288
291
  /**
@@ -402,9 +405,11 @@ interface IFormColumnChooserBaseDef<T extends TidyTableColumnSelector | TidyTabl
402
405
  *
403
406
  * Already mapped columns are skipped.
404
407
  *
405
- * You can also use your own fallback logic.
408
+ * You can also use your own fallback logic. The currentMapping is the object used when building the mapping
409
+ * from the options meta. It contains the mapped options from metas defined before this meta. Note, the order
410
+ * is important here.
406
411
  */
407
- fallback?: boolean | ((table: ITidyTable) => ITidyColumn[] | undefined);
412
+ fallback?: boolean | ((table: ITidyTable, currentMapping: ChartTemplateDataMapping) => ITidyColumn[] | undefined);
408
413
  /**
409
414
  * In the expression editor, use the alias to reference the column. Use the alias in table.getColumnByAlias(...).
410
415
  */
@@ -446,6 +451,16 @@ export declare type IFormEventMappingArrayFieldDefType = {
446
451
  export interface IFormEventMappingArrayFieldDef extends IFormFieldDef<IFormEventMappingArrayFieldDefType> {
447
452
  fieldType: "eventMappingArray";
448
453
  }
454
+ /**
455
+ * @see FormFieldDef
456
+ */
457
+ export declare type IFormEventArrayFieldDefType = {
458
+ event: string;
459
+ }[];
460
+ export interface IFormEventArrayFieldDef extends IFormFieldDef<IFormEventArrayFieldDefType> {
461
+ fieldType: "eventArray";
462
+ arrayField: string;
463
+ }
449
464
  /**
450
465
  * Contains the ordering of the groups.
451
466
  *
@@ -519,6 +534,16 @@ export interface IFormMdxFieldDef extends IFormFieldDef<string> {
519
534
  export interface IFormNumberFieldDef extends IFormFieldDef<number> {
520
535
  fieldType: "number";
521
536
  }
537
+ /**
538
+ * @see FormFieldDef
539
+ */
540
+ export interface IFormMaskFieldDef extends IFormFieldDef<number> {
541
+ fieldType: "mask";
542
+ editorConf: {
543
+ items: [number, string][];
544
+ name: string;
545
+ };
546
+ }
522
547
  /**
523
548
  * A string that is chosen from the list of available values (aka. options).
524
549
  *
@@ -548,6 +573,11 @@ export interface IFormOptionFieldMultipleDef extends IFormFieldDef<string[]> {
548
573
  optionValues?: string[] | IOption[] | ((callback: ((suggestions: string[] | IOption[]) => void), dependsOnValue?: any) => void);
549
574
  optionName?: string;
550
575
  getCaption?: (id: string) => string;
576
+ /**
577
+ * Use the first option available if the current value is not in the available options.
578
+ * It resets to null if there are no available options.
579
+ */
580
+ useFirstIfOptionNotFound?: boolean;
551
581
  };
552
582
  }
553
583
  export interface IFormOptionFieldReportPathDef extends IFormFieldDef<string> {
@@ -562,6 +592,11 @@ export interface IFormOptionFieldSingleDef extends IFormFieldDef<string> {
562
592
  optionValues?: string[] | IOption[] | ((callback: ((suggestions: string[] | IOption[]) => void), dependsOnValue?: any) => void);
563
593
  optionName?: string;
564
594
  getCaption?: (id: string) => string;
595
+ /**
596
+ * Use the first option available if the current value is not in the available options.
597
+ * It resets to null if there are no available options.
598
+ */
599
+ useFirstIfOptionNotFound?: boolean;
565
600
  };
566
601
  }
567
602
  export interface IFormEmbeddedFieldDef<T extends FormFieldObject> extends IFormFieldDef<T> {
@@ -618,7 +653,21 @@ export interface IFormStringFieldDef extends IFormFieldDef<string> {
618
653
  export interface IFormTidyTableHtmlExprFieldDef extends IFormFieldDef<string> {
619
654
  fieldType: "tidyTableHtmlExpr";
620
655
  editorConf?: {
621
- defaultColumn?: boolean;
656
+ /**
657
+ * If true, user can use select a column in the dialog editor. This column then is the _currentColumn in the
658
+ * expression when evaluating in the dialog editor.
659
+ */
660
+ userSelectsCurrentColumn?: boolean;
661
+ /**
662
+ * If true, user can use _currentColumn in the expression.
663
+ * The default current column comes from the first dependsOn option.
664
+ */
665
+ useCurrentColumn?: boolean;
666
+ /**
667
+ * If true, user can use _selectedColumns in the expression.
668
+ * The default selected columns come from the second dependsOn option.
669
+ */
670
+ useSelectedColumns?: boolean;
622
671
  };
623
672
  }
624
673
  /**
@@ -630,9 +679,23 @@ export interface IFormTidyTableHtmlExprFieldDef extends IFormFieldDef<string> {
630
679
  export interface IFormTidyTableHtmlRowExprFieldDef extends IFormFieldDef<string> {
631
680
  fieldType: "tidyTableHtmlRowExpr";
632
681
  editorConf?: {
633
- defaultColumn?: boolean;
634
682
  /**
635
- * Default = available columns + roles. Set here to override.
683
+ * If true, user can use select a column in the dialog editor. This column then is the _currentColumn in the
684
+ * expression when evaluating in the dialog editor.
685
+ */
686
+ userSelectsCurrentColumn?: boolean;
687
+ /**
688
+ * If true, user can use _currentColumn in the expression.
689
+ * The default current column comes from the first dependsOn option.
690
+ */
691
+ useCurrentColumn?: boolean;
692
+ /**
693
+ * If true, user can use _selectedColumns in the expression.
694
+ * The default selected columns come from the second dependsOn option.
695
+ */
696
+ useSelectedColumns?: boolean;
697
+ /**
698
+ * Set here to override the available columns and roles in the completion meta.
636
699
  */
637
700
  completionMeta?: string[];
638
701
  };
@@ -646,7 +709,21 @@ export interface IFormTidyTableHtmlRowExprFieldDef extends IFormFieldDef<string>
646
709
  export interface IFormTidyTableNumericExprFieldDef extends IFormFieldDef<string> {
647
710
  fieldType: "tidyTableNumericExpr";
648
711
  editorConf?: {
649
- defaultColumn?: boolean;
712
+ /**
713
+ * If true, user can use select a column in the dialog editor. This column then is the _currentColumn in the
714
+ * expression when evaluating in the dialog editor.
715
+ */
716
+ userSelectsCurrentColumn?: boolean;
717
+ /**
718
+ * If true, user can use _currentColumn in the expression.
719
+ * The default current column comes from the first dependsOn option.
720
+ */
721
+ useCurrentColumn?: boolean;
722
+ /**
723
+ * If true, user can use _selectedColumns in the expression.
724
+ * The default selected columns come from the second dependsOn option.
725
+ */
726
+ useSelectedColumns?: boolean;
650
727
  };
651
728
  }
652
729
  /**
@@ -658,7 +735,21 @@ export interface IFormTidyTableNumericExprFieldDef extends IFormFieldDef<string>
658
735
  export interface IFormTidyTableStringRowExprFieldDef extends IFormFieldDef<string> {
659
736
  fieldType: "tidyTableStringRowExpr";
660
737
  editorConf?: {
661
- defaultColumn?: boolean;
738
+ /**
739
+ * If true, user can use select a column in the dialog editor. This column then is the _currentColumn in the
740
+ * expression when evaluating in the dialog editor.
741
+ */
742
+ userSelectsCurrentColumn?: boolean;
743
+ /**
744
+ * If true, user can use _currentColumn in the expression.
745
+ * The default current column comes from the first dependsOn option.
746
+ */
747
+ useCurrentColumn?: boolean;
748
+ /**
749
+ * If true, user can use _selectedColumns in the expression.
750
+ * The default selected columns come from the second dependsOn option.
751
+ */
752
+ useSelectedColumns?: boolean;
662
753
  };
663
754
  }
664
755
  /**
@@ -670,7 +761,21 @@ export interface IFormTidyTableStringRowExprFieldDef extends IFormFieldDef<strin
670
761
  export interface IFormTidyTableColorRowExprFieldDef extends IFormFieldDef<string> {
671
762
  fieldType: "tidyTableColorRowExpr";
672
763
  editorConf?: {
673
- defaultColumn?: boolean;
764
+ /**
765
+ * If true, user can use select a column in the dialog editor. This column then is the _currentColumn in the
766
+ * expression when evaluating in the dialog editor.
767
+ */
768
+ userSelectsCurrentColumn?: boolean;
769
+ /**
770
+ * If true, user can use _currentColumn in the expression.
771
+ * The default current column comes from the first dependsOn option.
772
+ */
773
+ useCurrentColumn?: boolean;
774
+ /**
775
+ * If true, user can use _selectedColumns in the expression.
776
+ * The default selected columns come from the second dependsOn option.
777
+ */
778
+ useSelectedColumns?: boolean;
674
779
  };
675
780
  }
676
781
  /**
@@ -682,7 +787,21 @@ export interface IFormTidyTableColorRowExprFieldDef extends IFormFieldDef<string
682
787
  export interface IFormTidyTableNumericRowExprFieldDef extends IFormFieldDef<string> {
683
788
  fieldType: "tidyTableNumericRowExpr";
684
789
  editorConf?: {
685
- defaultColumn?: boolean;
790
+ /**
791
+ * If true, user can use select a column in the dialog editor. This column then is the _currentColumn in the
792
+ * expression when evaluating in the dialog editor.
793
+ */
794
+ userSelectsCurrentColumn?: boolean;
795
+ /**
796
+ * If true, user can use _currentColumn in the expression.
797
+ * The default current column comes from the first dependsOn option.
798
+ */
799
+ useCurrentColumn?: boolean;
800
+ /**
801
+ * If true, user can use _selectedColumns in the expression.
802
+ * The default selected columns come from the second dependsOn option.
803
+ */
804
+ useSelectedColumns?: boolean;
686
805
  };
687
806
  }
688
807
  /**
@@ -694,7 +813,21 @@ export interface IFormTidyTableNumericRowExprFieldDef extends IFormFieldDef<stri
694
813
  export interface IFormTidyTableScaleRowExprFieldDef extends IFormFieldDef<string> {
695
814
  fieldType: "tidyTableScaleRowExpr";
696
815
  editorConf: {
697
- defaultColumn: true;
816
+ /**
817
+ * If true, user can use select a column in the dialog editor. This column then is the _currentColumn in the
818
+ * expression when evaluating in the dialog editor.
819
+ */
820
+ userSelectsCurrentColumn?: boolean;
821
+ /**
822
+ * If true, user can use _currentColumn in the expression.
823
+ * The default current column comes from the first dependsOn option.
824
+ */
825
+ useCurrentColumn?: boolean;
826
+ /**
827
+ * If true, user can use _selectedColumns in the expression.
828
+ * The default selected columns come from the second dependsOn option.
829
+ */
830
+ useSelectedColumns?: boolean;
698
831
  };
699
832
  }
700
833
  /**
@@ -706,7 +839,21 @@ export interface IFormTidyTableScaleRowExprFieldDef extends IFormFieldDef<string
706
839
  export interface IFormTidyTableTextExprFieldDef extends IFormFieldDef<string> {
707
840
  fieldType: "tidyTableTextExpr";
708
841
  editorConf?: {
709
- defaultColumn?: boolean;
842
+ /**
843
+ * If true, user can use select a column in the dialog editor. This column then is the _currentColumn in the
844
+ * expression when evaluating in the dialog editor.
845
+ */
846
+ userSelectsCurrentColumn?: boolean;
847
+ /**
848
+ * If true, user can use _currentColumn in the expression.
849
+ * The default current column comes from the first dependsOn option.
850
+ */
851
+ useCurrentColumn?: boolean;
852
+ /**
853
+ * If true, user can use _selectedColumns in the expression.
854
+ * The default selected columns come from the second dependsOn option.
855
+ */
856
+ useSelectedColumns?: boolean;
710
857
  };
711
858
  }
712
859
  /**
@@ -718,7 +865,21 @@ export interface IFormTidyTableTextExprFieldDef extends IFormFieldDef<string> {
718
865
  export interface IFormTidyTableTextRowExprFieldDef extends IFormFieldDef<string> {
719
866
  fieldType: "tidyTableTextRowExpr";
720
867
  editorConf?: {
721
- defaultColumn?: boolean;
868
+ /**
869
+ * If true, user can use select a column in the dialog editor. This column then is the _currentColumn in the
870
+ * expression when evaluating in the dialog editor.
871
+ */
872
+ userSelectsCurrentColumn?: boolean;
873
+ /**
874
+ * If true, user can use _currentColumn in the expression.
875
+ * The default current column comes from the first dependsOn option.
876
+ */
877
+ useCurrentColumn?: boolean;
878
+ /**
879
+ * If true, user can use _selectedColumns in the expression.
880
+ * The default selected columns come from the second dependsOn option.
881
+ */
882
+ useSelectedColumns?: boolean;
722
883
  };
723
884
  }
724
885
  /**
@@ -736,5 +897,5 @@ export interface IFormWidgetVariantFieldDef extends IFormFieldDef<string> {
736
897
  export interface IFormFormatterPickerFieldDef extends IFormFieldDef<string> {
737
898
  fieldType: "formatterPicker";
738
899
  }
739
- export declare type FormFieldDef = IFormAutocompleteFieldDef<any> | IFormBooleanFieldDef | IFormColorEditorFieldDef | IFormColumnChooserFieldDef | IFormColumnSelectionFieldDef | IFormConstantsFieldDef | 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 | IFormGranularitySelectionFieldDef;
900
+ export declare type FormFieldDef = IFormAutocompleteFieldDef<any> | IFormBooleanFieldDef | IFormColorEditorFieldDef | IFormColumnChooserFieldDef | IFormColumnSelectionFieldDef | IFormConstantsFieldDef | IFormEventArrayFieldDef | IFormEventMappingArrayFieldDef | IFormFileUploaderFieldDef | IFormGroupsFieldDef | IFormJsFieldDef | IFormMarkdownFieldDef | IFormMaskFieldDef | IFormMdxFieldDef | IFormNumberFieldDef | IFormOptionFieldDef | IFormOptionFieldSingleDef | IFormOptionFieldMultipleDef | IFormPaletteEditorFieldDef | IFormReportPathFieldDef | IFormReportPermaLinkFieldDef | IFormStringFieldDef | IFormTidyTableHtmlExprFieldDef | IFormTidyTableHtmlRowExprFieldDef | IFormTidyTableNumericExprFieldDef | IFormTidyTableNumericRowExprFieldDef | IFormTidyTableStringRowExprFieldDef | IFormTidyTableColorRowExprFieldDef | IFormTidyTableScaleRowExprFieldDef | IFormTidyTableTextExprFieldDef | IFormTidyTableTextRowExprFieldDef | IFormWidgetVariantFieldDef | IFormFormatterPickerFieldDef | IFormGranularitySelectionFieldDef;
740
901
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isCodeMirrorModeExpr = exports.AutocompleteActions = exports.AutocompleteNoOptionsText = exports.isTidyTableExprScale = exports.isTidyTableExprNumeric = exports.isTidyTableExprTextHtml = exports.isTidyTableExprText = exports.isTidyTableExprRow = exports.isTidyTableExprTable = exports.isTidyTableExpr = exports.IFormFieldGroupTypes = exports.formFieldIsSelection = void 0;
3
+ exports.AutocompleteActions = exports.AutocompleteNoOptionsText = exports.isTidyTableExprScale = exports.isTidyTableExprNumeric = exports.isTidyTableExprTextHtml = exports.isTidyTableExprText = exports.isTidyTableExprRow = exports.isTidyTableExprTable = exports.isTidyTableExpr = exports.IFormFieldGroupTypes = exports.formFieldIsSelection = void 0;
4
4
  function formFieldIsSelection(field) {
5
5
  return field.group === IFormFieldGroupTypes.Selection;
6
6
  }
@@ -39,9 +39,7 @@ function isTidyTableExprRow(type) {
39
39
  }
40
40
  exports.isTidyTableExprRow = isTidyTableExprRow;
41
41
  function isTidyTableExprText(type) {
42
- return type === "tidyTableHtmlExpr"
43
- || type === "tidyTableHtmlRowExpr"
44
- || type === "tidyTableTextExpr"
42
+ return type === "tidyTableTextExpr"
45
43
  || type === "tidyTableTextRowExpr";
46
44
  }
47
45
  exports.isTidyTableExprText = isTidyTableExprText;
@@ -77,16 +75,4 @@ var AutocompleteActions;
77
75
  (function (AutocompleteActions) {
78
76
  AutocompleteActions["ADD_COLOR"] = "ADD_COLOR";
79
77
  })(AutocompleteActions = exports.AutocompleteActions || (exports.AutocompleteActions = {}));
80
- function isCodeMirrorModeExpr(mode) {
81
- return mode === "tidyTableHtmlExpr"
82
- || mode === "tidyTableHtmlRowExpr"
83
- || mode === "tidyTableTextExpr"
84
- || mode === "tidyTableTextRowExpr"
85
- || mode === "tidyTableNumericExpr"
86
- || mode === "tidyTableNumericRowExpr"
87
- || mode === "tidyTableScaleRowExpr"
88
- || mode === "tidyTableStringRowExpr"
89
- || mode === "tidyTableColorRowExpr";
90
- }
91
- exports.isCodeMirrorModeExpr = isCodeMirrorModeExpr;
92
78
  //# sourceMappingURL=PublicTemplateForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PublicTemplateForm.js","sourceRoot":"","sources":["../src/PublicTemplateForm.ts"],"names":[],"mappings":";;;AAaA,SAAgB,oBAAoB,CAAC,KAAyB;IAC1D,OAAO,KAAK,CAAC,KAAK,KAAK,oBAAoB,CAAC,SAAS,CAAC;AAC1D,CAAC;AAFD,oDAEC;AAmJD,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B,+CAAuB,CAAA;IACvB,yEAAiD,CAAA;IACjD,sDAA8B,CAAA;AAClC,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAI/B;AA0KD,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,yBAKX;AALD,WAAY,yBAAyB;IACjC,sDAAyB,CAAA;IACzB,sDAAyB,CAAA;IACzB,gEAAmC,CAAA;IACnC,gEAAmC,CAAA;AACvC,CAAC,EALW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAKpC;AAED;;GAEG;AACH,IAAY,mBAEX;AAFD,WAAY,mBAAmB;IAC3B,8CAAuB,CAAA;AAC3B,CAAC,EAFW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAE9B;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"}
1
+ {"version":3,"file":"PublicTemplateForm.js","sourceRoot":"","sources":["../src/PublicTemplateForm.ts"],"names":[],"mappings":";;;AAkBA,SAAgB,oBAAoB,CAAC,KAAyB;IAC1D,OAAO,KAAK,CAAC,KAAK,KAAK,oBAAoB,CAAC,SAAS,CAAC;AAC1D,CAAC;AAFD,oDAEC;AAqJD,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B,+CAAuB,CAAA;IACvB,yEAAiD,CAAA;IACjD,sDAA8B,CAAA;AAClC,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAI/B;AAgLD,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,CACjC;AACT,CAAC;AAJD,kDAIC;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,yBAKX;AALD,WAAY,yBAAyB;IACjC,sDAAyB,CAAA;IACzB,sDAAyB,CAAA;IACzB,gEAAmC,CAAA;IACnC,gEAAmC,CAAA;AACvC,CAAC,EALW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAKpC;AAED;;GAEG;AACH,IAAY,mBAEX;AAFD,WAAY,mBAAmB;IAC3B,8CAAuB,CAAA;AAC3B,CAAC,EAFW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAE9B"}
@@ -7,7 +7,6 @@ import { IWidgetLayoutDefinition } from "./PublicLayout";
7
7
  import { IThemeWidgetDefaults } from "./IThemeManager";
8
8
  import { AlertDialogClassKey } from "./theme/ThemeAlertDialog";
9
9
  import { AppClassKey, AppDivProps } from "./theme/ThemeApp";
10
- import { DrilldownUserSelectMenuClassKey } from "./theme/ThemeDrilldownUserSelectMenu";
11
10
  import { ErrorRendererClassKey } from "./theme/ThemeErrorRenderer";
12
11
  import { HtmlBoxClassKey, HtmlBoxProps } from "./theme/ThemeHtmlBox";
13
12
  import { LayoutClassKey } from "./theme/ThemeLayout";
@@ -31,8 +30,8 @@ import { ReportAppLeftPanelClassKey } from "./theme/ThemeReportAppLeftPanel";
31
30
  import { FilterTreeChartOptions, FilterTreeClassKey } from "./theme/ThemeFilterTree";
32
31
  import { DatePickerChartOptions, DatePickerClassKey } from "./theme/ThemeDatePicker";
33
32
  import { FilterAutocompleteChartOptions, FilterAutocompleteClassesKey } from "./theme/ThemeFilterAutocomplete";
34
- import { AppMenuIconProps, ThemeAppMenuIconClassKey } from "./theme/ThemeAppMenuIcon";
35
- import { QueryBuilderNodeProps, ThemeQueryBuilderNodeClassKey } from "./theme/ThemeQueryBuilderNode";
33
+ import { AppMenuIconClassKey, AppMenuIconProps } from "./theme/ThemeAppMenuIcon";
34
+ import { QueryBuilderNodeClassKey, QueryBuilderNodeProps } from "./theme/ThemeQueryBuilderNode";
36
35
  import { KpiCardClassKey, KpiCardProps } from "./theme/ThemeKpiCard";
37
36
  export interface INoSchemaRendererOptions {
38
37
  missingSchema: string;
@@ -242,13 +241,13 @@ export interface ic3TypographyOptions {
242
241
  }
243
242
  export declare enum TableRowHeightOptions {
244
243
  standard = "standard",
245
- compact = "compact"
244
+ compact = "compact",
245
+ small = "small"
246
246
  }
247
247
  export interface ic3Theme {
248
248
  id: string;
249
249
  caption: string;
250
250
  cssClass: string;
251
- loadFonts?: (continuation: () => void) => void;
252
251
  formatter: ThemeFormatters;
253
252
  /**
254
253
  * Icons used in tables and trees
@@ -266,6 +265,9 @@ export interface ic3Theme {
266
265
  rowHeight: number;
267
266
  headerRowHeight: number;
268
267
  }>;
268
+ treeFilter: {
269
+ itemHeight: number;
270
+ };
269
271
  googleMap: {
270
272
  options?: google.maps.MapOptions;
271
273
  markerClustererOptions?: MarkerClustererOptions;
@@ -364,7 +366,6 @@ export interface ic3ThemeOptions {
364
366
  id: string;
365
367
  caption: string;
366
368
  cssClass?: string;
367
- loadFonts?: (continuation: () => void) => void;
368
369
  formatter?: ThemeFormattersOptions;
369
370
  icons?: {
370
371
  expanded?: (className: string) => ReactElement | string;
@@ -378,6 +379,13 @@ export interface ic3ThemeOptions {
378
379
  rowHeight: number;
379
380
  headerRowHeight: number;
380
381
  }>>;
382
+ treeFilter?: {
383
+ /**
384
+ * Define the height for an item in the tree. This cannot be done using css, because the tree is virtualized and
385
+ * requires a fixed height setting.
386
+ */
387
+ itemHeight?: number;
388
+ };
381
389
  googleMap?: {
382
390
  options?: google.maps.MapOptions;
383
391
  };
@@ -460,9 +468,6 @@ interface ic3BaseComponents {
460
468
  App?: {
461
469
  styleOverrides?: ComponentsOverrides["App"];
462
470
  };
463
- DrilldownUserSelectMenu?: {
464
- styleOverrides?: ComponentsOverrides["DrilldownUserSelectMenu"];
465
- };
466
471
  ErrorRenderer?: {
467
472
  styleOverrides?: ComponentsOverrides["ErrorRenderer"];
468
473
  };
@@ -633,7 +638,6 @@ declare module '@mui/material/styles/overrides' {
633
638
  interface ComponentNameToClassKey {
634
639
  AlertDialog: AlertDialogClassKey;
635
640
  App: AppClassKey;
636
- DrilldownUserSelectMenu: DrilldownUserSelectMenuClassKey;
637
641
  ErrorRenderer: ErrorRendererClassKey;
638
642
  FilterCheckbox: FilterCheckboxRadioClassKey;
639
643
  FilterButtons: FilterButtonsClassKey;
@@ -652,8 +656,8 @@ declare module '@mui/material/styles/overrides' {
652
656
  WidgetBox: WidgetBoxClassKey;
653
657
  WidgetBoxContentMessage: WidgetBoxContentMessageClassKey;
654
658
  ReportAppLeftPanel: ReportAppLeftPanelClassKey;
655
- AppMenuIcon: ThemeAppMenuIconClassKey;
656
- QueryBuilderNode: ThemeQueryBuilderNodeClassKey;
659
+ AppMenuIcon: AppMenuIconClassKey;
660
+ QueryBuilderNode: QueryBuilderNodeClassKey;
657
661
  }
658
662
  }
659
663
  declare module '@mui/material/styles/props' {
@@ -5,5 +5,6 @@ var TableRowHeightOptions;
5
5
  (function (TableRowHeightOptions) {
6
6
  TableRowHeightOptions["standard"] = "standard";
7
7
  TableRowHeightOptions["compact"] = "compact";
8
+ TableRowHeightOptions["small"] = "small";
8
9
  })(TableRowHeightOptions = exports.TableRowHeightOptions || (exports.TableRowHeightOptions = {}));
9
10
  //# sourceMappingURL=PublicTheme.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PublicTheme.js","sourceRoot":"","sources":["../src/PublicTheme.ts"],"names":[],"mappings":";;;AA8RA,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC7B,8CAAqB,CAAA;IACrB,4CAAmB,CAAA;AACvB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC"}
1
+ {"version":3,"file":"PublicTheme.js","sourceRoot":"","sources":["../src/PublicTheme.ts"],"names":[],"mappings":";;;AA6RA,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC7B,8CAAqB,CAAA;IACrB,4CAAmB,CAAA;IACnB,wCAAe,CAAA;AACnB,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC"}