@ic3/reporting-api 8.4.2-alpha.1 → 8.4.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.
Files changed (37) hide show
  1. package/dist/ApiUtils.js +1 -1
  2. package/dist/ApiUtils.js.map +1 -1
  3. package/dist/IPluginDefinition.d.ts +2 -0
  4. package/dist/IUserMenuOptionManager.d.ts +13 -0
  5. package/dist/IUserMenuOptionManager.js +3 -0
  6. package/dist/IUserMenuOptionManager.js.map +1 -0
  7. package/dist/PublicAmchartsData.d.ts +7 -1
  8. package/dist/PublicAmchartsData.js +9 -0
  9. package/dist/PublicAmchartsData.js.map +1 -1
  10. package/dist/PublicContext.d.ts +1 -0
  11. package/dist/PublicLayout.d.ts +49 -0
  12. package/dist/PublicTemplate.d.ts +12 -0
  13. package/dist/PublicTemplate.js.map +1 -1
  14. package/dist/PublicTemplateForm.d.ts +16 -3
  15. package/dist/PublicTemplateForm.js.map +1 -1
  16. package/dist/PublicTemplates.d.ts +2 -0
  17. package/dist/PublicTheme.d.ts +21 -0
  18. package/dist/PublicTheme.js.map +1 -1
  19. package/dist/PublicTidyColumn.d.ts +12 -27
  20. package/dist/PublicTidyColumn.js +9 -19
  21. package/dist/PublicTidyColumn.js.map +1 -1
  22. package/dist/PublicTidyMath.d.ts +49 -0
  23. package/dist/PublicTidyTable.d.ts +3 -2
  24. package/dist/index.d.ts +3 -0
  25. package/dist/index.js +3 -0
  26. package/dist/index.js.map +1 -1
  27. package/dist/theme/ThemeAmCharts4.d.ts +92 -16
  28. package/dist/theme/ThemeAmCharts4.js +11 -1
  29. package/dist/theme/ThemeAmCharts4.js.map +1 -1
  30. package/dist/theme/ThemeFilterPanel.d.ts +5 -0
  31. package/dist/theme/ThemeRegexFilter.d.ts +13 -0
  32. package/dist/theme/ThemeRegexFilter.js +15 -0
  33. package/dist/theme/ThemeRegexFilter.js.map +1 -0
  34. package/dist/theme/ThemeSeparator.d.ts +13 -0
  35. package/dist/theme/ThemeSeparator.js +3 -0
  36. package/dist/theme/ThemeSeparator.js.map +1 -0
  37. package/package.json +7 -7
package/dist/ApiUtils.js CHANGED
@@ -8,7 +8,7 @@ const ReportingVersion_1 = __importDefault(require("./ReportingVersion"));
8
8
  class ApiUtils {
9
9
  static makePlugin(definition) {
10
10
  return () => {
11
- return Object.assign({ apiVersion: new ReportingVersion_1.default("8.4.2-alpha.1" || "-", "Thu, 25 May 2023 07:46:10 GMT" || "-") }, definition);
11
+ return Object.assign({ apiVersion: new ReportingVersion_1.default("8.4.3" || "-", "Mon, 10 Jul 2023 11:00:07 GMT" || "-") }, definition);
12
12
  };
13
13
  }
14
14
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ApiUtils.js","sourceRoot":"","sources":["../src/ApiUtils.ts"],"names":[],"mappings":";;;;;;AAEA,0EAAkD;AAiDlD,MAAa,QAAQ;IAOV,MAAM,CAAC,UAAU,CAAC,UAA6B;QAElD,OAAO,GAA+B,EAAE;YAEpC,uBAEI,UAAU,EAAE,IAAI,0BAAgB,CAC5B,eAAe,IAAI,GAAG,EACtB,+BAA+B,IAAI,GAAG,CACzC,IAEE,UAAU,EAEhB;QAEL,CAAC,CAAA;IACL,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,oCAAoC,CAAkC,UAAsE;QAEtJ,uCAEO,UAAU,KAEb,MAAM,EAAE,CAAC,OAA6B,EAAE,SAAyB,EAAE,EAAE;gBACjE,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;YAC1D,CAAC,EAED,cAAc,EAAE,KAAK,EAErB,6BAA6B,EAAE,KAAK,IAEvC;IAEL,CAAC;IAEM,MAAM,CAAC,wCAAwC,CAAkC,UAAoD,EAAE,OAA6C;QAEvL,OAAO,8CAEA,OAAO,GACP,UAAiB,CAAC,4BAA4B,KAEjD,iBAAiB,EAAE,SAAS,EAC5B,MAAM,EAAE,OAAO,CAAC,MAAM,GAEmB,CAAA;IAEjD,CAAC;IAED;;OAEG;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AC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAA;wBACjC,CAAC,CAAC,CAAC;oBAEP,CAAC,IACJ;YACL,CAAC;SAEwC,CAAC;IAElD,CAAC;;AA/GL,4BAiHC;AA/GG;;GAEG;AACoB,uBAAc,GAAG,OAAO,CAAC"}
@@ -8,6 +8,7 @@ import { WidgetTemplateIDs } from "./PublicTemplates";
8
8
  import { FormFieldObject } from "./PublicTemplateForm";
9
9
  import { IPublicWidgetTemplateDefinition } from "./PublicTemplate";
10
10
  import { ILogger } from "./Logger";
11
+ import { IUserMenuOptionManager } from "./IUserMenuOptionManager";
11
12
  export interface IPluginDefinition {
12
13
  /**
13
14
  * Keep that id simple (i.e., ASCII letter without any dot, space, separator, etc...) as it will be used
@@ -21,6 +22,7 @@ export interface IPluginDefinition {
21
22
  */
22
23
  registerAmCharts4?: (logger: ILogger, callback: (am4core: any) => void) => void;
23
24
  registerLocalization?: (logger: ILogger, manager: ILocalizationManager) => void;
25
+ registerUserMenuOptions?: (logger: ILogger, manager: IUserMenuOptionManager) => void;
24
26
  registerThemes?: (logger: ILogger, manager: IThemeManager) => void;
25
27
  registerWidgets?: (logger: ILogger, manager: IWidgetManager) => void;
26
28
  registerTidyTableTransformations?: (logger: ILogger, manager: ITidyTableTransformationManager) => void;
@@ -0,0 +1,13 @@
1
+ export interface IUserMenuOptionDefinition {
2
+ /**
3
+ * IUserMenuOptions.
4
+ */
5
+ option: string;
6
+ /**
7
+ * WidgetNotificationType.
8
+ */
9
+ notification: string;
10
+ }
11
+ export interface IUserMenuOptionManager {
12
+ registerUserMenuOption(option: IUserMenuOptionDefinition): void;
13
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IUserMenuOptionManager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IUserMenuOptionManager.js","sourceRoot":"","sources":["../src/IUserMenuOptionManager.ts"],"names":[],"mappings":""}
@@ -5,7 +5,9 @@ export declare enum ISeriesValuesType {
5
5
  LINE = 0,
6
6
  COLUMN = 1,
7
7
  TREND = 2,
8
- DIVERGENT = 3
8
+ DIVERGENT = 3,
9
+ LEFT_SERIES = 4,
10
+ RIGHT_SERIES = 5
9
11
  }
10
12
  export interface ISeriesValues {
11
13
  type: ISeriesValuesType;
@@ -58,6 +60,10 @@ export declare class PublicAmchartsData {
58
60
  * Returns true if and only if there are multiple non-trend measures in the chart.
59
61
  */
60
62
  isMultiMeasure(): boolean;
63
+ /**
64
+ * Returns the first column used for a series type.
65
+ */
66
+ getFirstColumnOfType(seriesType: ISeriesValuesType): ITidyColumn | undefined;
61
67
  }
62
68
  /**
63
69
  * Controls when to add / remove / dispose / update series. This class exists because using chart.setSeries removes
@@ -8,6 +8,8 @@ var ISeriesValuesType;
8
8
  ISeriesValuesType[ISeriesValuesType["COLUMN"] = 1] = "COLUMN";
9
9
  ISeriesValuesType[ISeriesValuesType["TREND"] = 2] = "TREND";
10
10
  ISeriesValuesType[ISeriesValuesType["DIVERGENT"] = 3] = "DIVERGENT";
11
+ ISeriesValuesType[ISeriesValuesType["LEFT_SERIES"] = 4] = "LEFT_SERIES";
12
+ ISeriesValuesType[ISeriesValuesType["RIGHT_SERIES"] = 5] = "RIGHT_SERIES";
11
13
  })(ISeriesValuesType = exports.ISeriesValuesType || (exports.ISeriesValuesType = {}));
12
14
  /**
13
15
  * Used for managing amcharts data in the Amcharts plugin. This class controls both the creation of the charts
@@ -150,6 +152,13 @@ class PublicAmchartsData {
150
152
  isMultiMeasure() {
151
153
  return this.onValues.filter(i => i.type !== ISeriesValuesType.TREND).length > 1;
152
154
  }
155
+ /**
156
+ * Returns the first column used for a series type.
157
+ */
158
+ getFirstColumnOfType(seriesType) {
159
+ var _a;
160
+ return (_a = this.onValues.find(i => i.type === seriesType)) === null || _a === void 0 ? void 0 : _a.values;
161
+ }
153
162
  }
154
163
  exports.PublicAmchartsData = PublicAmchartsData;
155
164
  //# sourceMappingURL=PublicAmchartsData.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PublicAmchartsData.js","sourceRoot":"","sources":["../src/PublicAmchartsData.ts"],"names":[],"mappings":";;;AAEA,iEAA2G;AAE3G,IAAY,iBAKX;AALD,WAAY,iBAAiB;IACzB,yDAAI,CAAA;IACJ,6DAAM,CAAA;IACN,2DAAK,CAAA;IACL,mEAAS,CAAA;AACb,CAAC,EALW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAK5B;AAcD;;;GAGG;AACH,MAAa,kBAAkB;IAQ3B,YAAY,KAAiB,EAAE,QAAyB,EAAE,MAAmB,EAAE,OAAqB,EACxF,OAAqB;QAC7B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,QAAgB,EAAE,WAAmB;QACpD,OAAO,QAAQ,GAAG,GAAG,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;IAChD,CAAC;IAED;;OAEG;IACH,YAAY;QAER,MAAM,WAAW,GAAgC,EAAE,CAAC;QACpD,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;YAEjC;;;eAGG;YACH,IAAI,WAAwB,CAAC;YAC7B,IAAI,KAAK,CAAC,IAAI,KAAK,iBAAiB,CAAC,SAAS,EAAE;gBAC5C,WAAW,GAAG,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,YAAY,EAAE,sCAAe,CAAC,OAAO,CA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BAAiB,CAAC,KAAK;SACvD,EAAE,IAAI,CAAC,CAAC;IACb,CAAC;IAED;;OAEG;IACH,aAAa;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;IACnC,CAAC;IAED;;OAEG;IACH,cAAc;QACV,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,iBAAiB,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;IACpF,CAAC;IAED;;OAEG;IACH,oBAAoB,CAAC,UAA6B;;QAC9C,OAAO,MAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAG,UAAU,CAAC,0CAAE,MAAM,CAAC;IAChE,CAAC;CAEJ;AA/KD,gDA+KC"}
@@ -259,6 +259,7 @@ export interface IWidgetPublicContext extends IPublicContext {
259
259
  * disabled === true, the doExport function is not used
260
260
  */
261
261
  onExportToExcel(doExport: undefined | ((fileName: string | undefined) => ITidyTable | undefined), disabled?: boolean): void;
262
+ exportToExcel(table: ITidyTable, asPivotForExcel: boolean, rows: number[] | undefined): void;
262
263
  useUserMenuWidth(): number | undefined;
263
264
  }
264
265
  export interface IWidgetEditorPublicContext {
@@ -35,12 +35,49 @@ export interface IPageMargin {
35
35
  left: number;
36
36
  right: number;
37
37
  }
38
+ /**
39
+ * The background grid used for example to snap widgets to.
40
+ * Not related to the grid layout itself.
41
+ */
38
42
  export interface IWidgetLayoutGridDefinition {
39
43
  snap: boolean;
40
44
  show: boolean;
41
45
  width: number;
42
46
  height: number;
43
47
  }
48
+ /**
49
+ * Control how the layout is responding to width change.
50
+ */
51
+ export interface IWidgetLayoutResponsivenessDefinition {
52
+ /**
53
+ * Grid only for now.
54
+ */
55
+ type: "grid";
56
+ /**
57
+ * The number of virtual columns the widgets are aligned to (e.g., 12).
58
+ */
59
+ columnCount: number;
60
+ /**
61
+ * The number of pixels of each virtual column.
62
+ */
63
+ columnWidth: number;
64
+ /**
65
+ * Setup once the layout configuration is being resolved against the theme.
66
+ */
67
+ themeSpacing: number;
68
+ /**
69
+ * The grid margins.
70
+ */
71
+ margin: number;
72
+ /**
73
+ * Define the horizontal space between the widgets.
74
+ */
75
+ columnSpacing?: number;
76
+ /**
77
+ * Define the vertical space between the widgets.
78
+ */
79
+ rowSpacing?: number;
80
+ }
44
81
  export interface IPageHeaderFooterLogoDefinition {
45
82
  style?: CSSProperties;
46
83
  src: string;
@@ -96,6 +133,9 @@ export interface IPageHeaderFooterDefinition {
96
133
  export interface IWidgetLayoutDefinition {
97
134
  layoutConfigId: string;
98
135
  cssClass?: string;
136
+ /**
137
+ * Not relevant if responsiveness is being defined: always an unlimited portrait.
138
+ */
99
139
  pageSize: IKnownPageSize | IManualPageSize | IUnlimitedPageSize;
100
140
  pageOrientation: PaperOrientation;
101
141
  pageMargin: IPageMargin;
@@ -105,8 +145,17 @@ export interface IWidgetLayoutDefinition {
105
145
  pageBackgroundColor?: Property.Color;
106
146
  /**
107
147
  * Widgets are zoomed so that their bounding box fits the horizontal page area.
148
+ * Not relevant if responsiveness is being defined.
108
149
  */
109
150
  expandH?: boolean;
151
+ /**
152
+ * Control how this layout is responding to width change.
153
+ */
154
+ responsiveness?: IWidgetLayoutResponsivenessDefinition;
155
+ /**
156
+ * The background grid used for example to snap widgets to.
157
+ * Not related to the grid layout itself.
158
+ */
110
159
  grid: IWidgetLayoutGridDefinition;
111
160
  header?: IPageHeaderFooterDefinition;
112
161
  footer?: IPageHeaderFooterDefinition;
@@ -87,6 +87,10 @@ export interface IWidgetTemplateMdxBuilderAxisProps {
87
87
  * Show the mdxAxis names in this order in the builder
88
88
  */
89
89
  showOrder?: number;
90
+ /**
91
+ * Allows to overwrite the ON "rows"in the MDX query (to be used on modifyDefinition function)
92
+ */
93
+ overwriteAxisName?: string;
90
94
  }
91
95
  export interface IWidgetTemplateMdxBuilderMapping {
92
96
  /**
@@ -110,6 +114,14 @@ export interface IWidgetTemplateMdxBuilderMapping {
110
114
  * An MDX query if the builder is empty.
111
115
  */
112
116
  mdxQueryIfEmpty?: boolean;
117
+ /**
118
+ * model is a IMdxQueryBuilderModel, that is not shared publicly yet
119
+ *
120
+ * returns a modified definition or an MDX statement in a string
121
+ *
122
+ * If we return a string (MDX Statement), the Filters are still going to be appended to the end
123
+ */
124
+ modifyDefinition?: (model: any, definition: IWidgetTemplateMdxBuilderMapping) => IWidgetTemplateMdxBuilderMapping | string;
113
125
  }
114
126
  /**
115
127
  * A widget that renders using React.
@@ -1 +1 @@
1
- {"version":3,"file":"PublicTemplate.js","sourceRoot":"","sources":["../src/PublicTemplate.ts"],"names":[],"mappings":";;;AAyDA,IAAY,4CAIX;AAJD,WAAY,4CAA4C;IACpD,qEAAqB,CAAA;IACrB,yEAAyB,CAAA;IACzB,2EAA2B,CAAA;AAC/B,CAAC,EAJW,4CAA4C,GAA5C,oDAA4C,KAA5C,oDAA4C,QAIvD;AAsdD;;;;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":";;;AAyDA,IAAY,4CAIX;AAJD,WAAY,4CAA4C;IACpD,qEAAqB,CAAA;IACrB,yEAAyB,CAAA;IACzB,2EAA2B,CAAA;AAC/B,CAAC,EAJW,4CAA4C,GAA5C,oDAA4C,KAA5C,oDAA4C,QAIvD;AAseD;;;;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"}
@@ -98,7 +98,7 @@ export type FormFields<T extends FormFieldObject> = {
98
98
  } | {
99
99
  defaultValue?: any;
100
100
  mandatory?: false;
101
- }) & (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 IFormSearchAndReplaceArrayFieldDefType ? Omit<IFormSearchAndReplaceArrayFieldDef, '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
+ }) & (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 IFormSearchAndReplaceArrayFieldDefType ? Omit<IFormSearchAndReplaceArrayFieldDef, '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'> | Omit<IFormPropertyChooserBaseDef, 'fieldPath'> : Required<T>[key] extends string[] ? Omit<IFormOptionFieldMultipleDef, 'fieldPath'> | Omit<IFormGroupsFieldDef, 'fieldPath'> : never);
102
102
  };
103
103
  export declare enum IFormFieldGroupTypes {
104
104
  Selection = "groupSelection",
@@ -265,7 +265,11 @@ export type FormFieldType =
265
265
  /**
266
266
  * @see IFormSearchAndReplaceArrayFieldDefType
267
267
  */
268
- "searchAndReplaceArray";
268
+ "searchAndReplaceArray" |
269
+ /**
270
+ * @see IFormPropertyChooserBaseDef
271
+ */
272
+ "propertyChooser";
269
273
  export type FormFieldTidyTableExprType = "tidyTableHtmlExpr" | "tidyTableHtmlRowExpr" | "tidyTableNumericExpr" | "tidyTableNumericRowExpr" | "tidyTableScaleRowExpr" | "tidyTableTextExpr" | "tidyTableTextRowExpr" | "tidyTableStringRowExpr" | "tidyTableColorRowExpr";
270
274
  export declare function isTidyTableExpr(type: FormFieldType): type is FormFieldTidyTableExprType;
271
275
  export declare function isTidyTableExprTable(type: FormFieldType): boolean;
@@ -421,6 +425,15 @@ interface IFormColumnChooserBaseDef<T extends TidyTableColumnSelector | TidyTabl
421
425
  alias?: string;
422
426
  };
423
427
  }
428
+ export interface IFormPropertyChooserBaseDef extends IFormFieldDef<string> {
429
+ fieldType: "propertyChooser";
430
+ editorConf?: {
431
+ /**
432
+ * Only columns of this/these type(s) are allowed.
433
+ */
434
+ allowedTypes?: TidyColumnsType[];
435
+ };
436
+ }
424
437
  /**
425
438
  * @see FormFieldDef
426
439
  */
@@ -916,5 +929,5 @@ export interface IFormWidgetVariantFieldDef extends IFormFieldDef<string> {
916
929
  export interface IFormFormatterPickerFieldDef extends IFormFieldDef<string> {
917
930
  fieldType: "formatterPicker";
918
931
  }
919
- export 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 | IFormSearchAndReplaceArrayFieldDef;
932
+ export 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 | IFormSearchAndReplaceArrayFieldDef | IFormPropertyChooserBaseDef;
920
933
  export {};
@@ -1 +1 @@
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;AAwJD,IAAY,oBAIX;AAJ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ACT,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"}
@@ -19,6 +19,7 @@ import { FilterAutocompleteChartOptions } from "./theme/ThemeFilterAutocomplete"
19
19
  import { FilterTreeChartOptions } from "./theme/ThemeFilterTree";
20
20
  import { AmCharts4BubbleChartOptions, AmCharts4ComboChartOptions, AmCharts4DonutChartOptions, AmCharts4GaugeChartOptions, AmCharts4HistogramOptions, AmCharts4RegularAreaChartOptions, AmCharts4RegularBarChartOptions, AmCharts4RegularColumnChartOptions, AmCharts4RegularLineChartOptions, AmCharts4SankeyDiagramOptions, AmCharts4ScatterPlotOptions, AmCharts4StackedAreaChartOptions, AmCharts4StackedBarChartOptions, AmCharts4StackedColumnChartOptions, AmCharts4TreemapOptions, GeoMapChartOptions } from "./theme/ThemeAmCharts4";
21
21
  import { PrintButtonChartOptions } from "./theme/ThemePrintButton";
22
+ import { SeparatorChartOptions } from "./theme/ThemeSeparator";
22
23
  interface IWidgetTemplateChartOptions {
23
24
  "ic3.DatePicker": DatePickerChartOptions;
24
25
  "ic3.EmbeddedReport": EmbeddedReportChartOptions;
@@ -39,6 +40,7 @@ interface IWidgetTemplateChartOptions {
39
40
  "ic3.PrintButton": PrintButtonChartOptions;
40
41
  "ic3.PivotTable": PivotTableChartOptions;
41
42
  "ic3.RepetitionWidget": RepetitionWidgetChartOptions;
43
+ "ic3.Separator": SeparatorChartOptions;
42
44
  "ic3.Table": TableChartOptions;
43
45
  "amCharts4.AmCharts4BubbleChart": AmCharts4BubbleChartOptions;
44
46
  "amCharts4.AmCharts4ComboChart": AmCharts4ComboChartOptions;
@@ -41,6 +41,7 @@ import { WidgetTemplateChartOptions } from "./PublicTemplates";
41
41
  import { WidgetFilteredByClassesKey } from "./theme/ThemeWidgetFilteredBy";
42
42
  import { IUserMenuOptions, IWidgetBoxIconsDefinition } from "./ITypes";
43
43
  import { Ic3TableCellProps, ThemeIc3TableCellClassesKey } from "./theme/ThemeIc3TableCell";
44
+ import { RegexFilterClassesKey, RegexFilterProps } from "./theme/ThemeRegexFilter";
44
45
  export type Ic3ChartVariants = {
45
46
  [Name in keyof WidgetTemplateChartOptions]?: Array<{
46
47
  props: {
@@ -155,6 +156,13 @@ export interface ic3Palette {
155
156
  * The color for a selected item
156
157
  */
157
158
  selected: Property.Color;
159
+ /**
160
+ * For charts, you can define a function that derives the selected color from the color of the clicked item without
161
+ * selection. For example, you can use darken(color) from Mui-Material to get a darker color.
162
+ * @param color the color of the item without selection.
163
+ * @Return the color for the item in the selected state.
164
+ */
165
+ selectedChart?: (color: Property.Color | undefined | null) => Property.Color;
158
166
  /**
159
167
  * The text color for a selected item
160
168
  */
@@ -281,6 +289,13 @@ export interface ic3PaletteOptions {
281
289
  selectedText?: Property.Color;
282
290
  selectedBackground?: Property.Color;
283
291
  selectedOpacity?: number;
292
+ /**
293
+ * For charts, you can define a function that derives the selected color from the color of the clicked item without
294
+ * selection. For example, you can use darken(color) from Mui-Material to get a darker color.
295
+ * @param color the color of the item without selection.
296
+ * @Return the color for the item in the selected state.
297
+ */
298
+ selectedChart?: (color: Property.Color | undefined | null) => Property.Color;
284
299
  unSelectedOpacity?: number;
285
300
  hoverBackground?: Property.Color;
286
301
  chartPalettes?: {
@@ -610,6 +625,10 @@ interface ic3BaseComponents {
610
625
  variants?: ComponentsVariants['FilterPanel'];
611
626
  styleOverrides?: ComponentsOverrides["FilterPanel"];
612
627
  };
628
+ RegexFilter?: {
629
+ variants?: ComponentsVariants['RegexFilter'];
630
+ styleOverrides?: ComponentsOverrides["RegexFilter"];
631
+ };
613
632
  FilterSlider?: {
614
633
  styleOverrides?: ComponentsOverrides["FilterSlider"];
615
634
  variants?: ComponentsVariants["FilterSlider"];
@@ -796,6 +815,7 @@ declare module '@mui/material/styles/overrides' {
796
815
  FilterButtons: FilterButtonsClassKey;
797
816
  LazyTreeViewStyled: LazyTreeClassesClassKey;
798
817
  FilterPanel: FilterPanelClassesKey;
818
+ RegexFilter: RegexFilterClassesKey;
799
819
  FilterSlider: FilterSliderClassKey;
800
820
  ListCounter: ListCounterClassKey;
801
821
  FilterTree: FilterTreeClassKey;
@@ -827,6 +847,7 @@ declare module '@mui/material/styles/props' {
827
847
  FilterButtons: FilterButtonsProps;
828
848
  LazyTreeViewStyled: LazyTreeProps;
829
849
  FilterPanel: FilterPanelProps;
850
+ RegexFilter: RegexFilterProps;
830
851
  FilterSlider: FilterSliderProps;
831
852
  ListCounter: ListCounterProps;
832
853
  FilterTree: FilterTreeProps;
@@ -1 +1 @@
1
- {"version":3,"file":"PublicTheme.js","sourceRoot":"","sources":["../src/PublicTheme.ts"],"names":[],"mappings":";;;AA6VA,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC7B,8CAAqB,CAAA;IACrB,4CAAmB,CAAA;IACnB,wCAAe,CAAA;AACnB,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC"}
1
+ {"version":3,"file":"PublicTheme.js","sourceRoot":"","sources":["../src/PublicTheme.ts"],"names":[],"mappings":";;;AA+WA,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC7B,8CAAqB,CAAA;IACrB,4CAAmB,CAAA;IACnB,wCAAe,CAAA;AACnB,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC"}
@@ -77,9 +77,16 @@ export declare enum ITidyColumnNamedProperties {
77
77
  */
78
78
  eventMdxValue = "eventMdxValue",
79
79
  /**
80
- * Column defined as an MDX axis, the unique name of the column (the name is the value of the column)
80
+ * Column defined as an MDX axis, the unique name of the column (the name is the value of the column).
81
+ * This value is fired when doing selection events.
82
+ * @see {ITidyColumn.getMdxInfo}
81
83
  */
82
84
  uniqueName = "uniqueName",
85
+ /**
86
+ * The caption of the selection event to use. Returned by getMdxInfo(..).
87
+ * @see {ITidyColumn.getMdxInfo}
88
+ */
89
+ mdxInfoCaption = "mdxInfoCaption",
83
90
  /**
84
91
  * Column defined as an MDX axis, the caption of the column
85
92
  */
@@ -584,16 +591,12 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
584
591
  */
585
592
  getRowIndexOf(value: T): number | undefined;
586
593
  /**
587
- * For a hierarchical columns returns a a list of transformed colummns columns as needed by a pivot
588
- * table like structure
589
- *
590
- * (e.g. a columns with Year, Quarter and Month will be converteded into 3 columns [Year,Quarter,Month])
594
+ * For a hierarchical columns returns a list of transformed columns as needed by a pivot table like structure.
595
+ * If this column is not hierarchical, return this unchanged.
591
596
  *
592
- * .. still experimental
593
- *
594
- * If not, hierarchical, return this
597
+ * E.g., a columns with Year, Quarter and Month will be converted into 3 columns [Year,Quarter,Month]).
595
598
  */
596
- toFlatColumns(nullValue: any): ITidyUnknownColumn[];
599
+ toFlatColumns(nullValue: any, rows: number[] | undefined): ITidyUnknownColumn[];
597
600
  /**
598
601
  * Returns the tree-path for the node, including the node itself. The path starts at the node at rowIdx and contains
599
602
  * its parents.
@@ -683,22 +686,4 @@ export type ITidyDateColumn = ITidyBaseColumn<Date | null>;
683
686
  export type ITidyLogicalColumn = ITidyBaseColumn<boolean | null>;
684
687
  export type ITidyListColumn = ITidyBaseColumn<any[] | null>;
685
688
  export type ITidyColumnIsType<T extends TidyColumnsType> = T extends TidyColumnsType.ANY ? ITidyColumn : T extends TidyColumnsType.COLOR ? ITidyColorColumn : T extends TidyColumnsType.LONGITUDE ? ITidyBaseColumn<number | null> : T extends TidyColumnsType.LATITUDE ? ITidyBaseColumn<number | null> : T extends TidyColumnsType.ISO2_LOCATION_CODE ? ITidyCharacterColumn : T extends TidyColumnsType.DATETIME ? ITidyDateColumn : T extends TidyColumnsType.NUMERIC ? ITidyNumericColumn : T extends TidyColumnsType.CHARACTER ? ITidyCharacterColumn : T extends TidyColumnsType.LOGICAL ? ITidyLogicalColumn : T extends TidyColumnsType.LIST ? ITidyListColumn : T extends TidyColumnsType.MIXED ? ITidyColumn : T extends TidyColumnsType.NULL ? ITidyNullColumn : ITidyUnknownColumn;
686
- /**
687
- * Introduced for tidy table HTML expression (e.g., tooltip) completion.
688
- *
689
- * Quite simple for now: caption (as shown in the completion) to the actual Javascript method.
690
- */
691
- export interface TidyTableExprColumnMeta {
692
- caption: string;
693
- method: string;
694
- /**
695
- * If true, then modifier only available when eval mode is "row".
696
- */
697
- argRow?: boolean;
698
- /**
699
- * If true, then modifier only available when the fieldMeta has allowTotalOfSelection set to true.
700
- */
701
- allowsSelectedTotal?: boolean;
702
- }
703
- export declare const TidyTableTextExprColumnMetas: TidyTableExprColumnMeta[];
704
689
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TidyTableTextExprColumnMetas = exports.CharacterTidyColumnProperties = exports.ITidyColumnNamedProperties = void 0;
3
+ exports.CharacterTidyColumnProperties = exports.ITidyColumnNamedProperties = void 0;
4
4
  /**
5
5
  * Properties with a special meaning
6
6
  */
@@ -56,9 +56,16 @@ var ITidyColumnNamedProperties;
56
56
  */
57
57
  ITidyColumnNamedProperties["eventMdxValue"] = "eventMdxValue";
58
58
  /**
59
- * Column defined as an MDX axis, the unique name of the column (the name is the value of the column)
59
+ * Column defined as an MDX axis, the unique name of the column (the name is the value of the column).
60
+ * This value is fired when doing selection events.
61
+ * @see {ITidyColumn.getMdxInfo}
60
62
  */
61
63
  ITidyColumnNamedProperties["uniqueName"] = "uniqueName";
64
+ /**
65
+ * The caption of the selection event to use. Returned by getMdxInfo(..).
66
+ * @see {ITidyColumn.getMdxInfo}
67
+ */
68
+ ITidyColumnNamedProperties["mdxInfoCaption"] = "mdxInfoCaption";
62
69
  /**
63
70
  * Column defined as an MDX axis, the caption of the column
64
71
  */
@@ -85,21 +92,4 @@ exports.CharacterTidyColumnProperties = new Set([
85
92
  ITidyColumnNamedProperties.caption,
86
93
  ITidyColumnNamedProperties.tooltip,
87
94
  ]);
88
- exports.TidyTableTextExprColumnMetas = [
89
- { caption: "total", method: "sum" },
90
- { caption: "average", method: "mean" },
91
- { caption: "median", method: "median" },
92
- { caption: "min", method: "min" },
93
- { caption: "max", method: "max" },
94
- { caption: "variance", method: "variance" },
95
- { caption: "standardDeviation", method: "standardDeviation" },
96
- { caption: "count", method: "count" },
97
- { caption: "percent", method: "percent", argRow: true },
98
- { caption: "caption", method: "getCaption" },
99
- { caption: "mdxName", method: "mdxName", argRow: true },
100
- { caption: "mdxCaption", method: "mdxCaption", argRow: true },
101
- { caption: "mdxUniqueName", method: "mdxUniqueName", argRow: true },
102
- { caption: "mdxKey", method: "mdxKey", argRow: true },
103
- { caption: "totalSelectedOrTotal", method: "sumFiltered", allowsSelectedTotal: true }
104
- ];
105
95
  //# sourceMappingURL=PublicTidyColumn.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PublicTidyColumn.js","sourceRoot":"","sources":["../src/PublicTidyColumn.ts"],"names":[],"mappings":";;;AAmDA;;GAEG;AACH,IAAY,0BAsFX;AAtFD,WAAY,0BAA0B;IAElC;;OAEG;IACH,oDAAsB,CAAA;IAEtB;;OAEG;IACH,sEAAwC,CAAA;IAExC;;OAEG;IACH,mEAAqC,CAAA;IAErC;;OAEG;IACH,mEAAqC,CAAA;IAErC;;;OAGG;IACH,yEAA2C,CAAA;IAE3C;;OAEG;IACH,oDAAsB,CAAA;IAEtB;;;;OAIG;IACH,yEAA2C,CAAA;IAE3C;;;;OAIG;IACH,+EAAiD,CAAA;IAEjD;;OAEG;IACH,qDAAuB,CAAA;IAEvB;;OAEG;IACH,uDAAyB,CAAA;IAEzB;;OAEG;IACH,6DAA+B,CAAA;IAE/B;;OAEG;IACH,uDAAyB,CAAA;IAEzB;;OAEG;IACH,iDAAmB,CAAA;IAEnB;;OAEG;IACH,gDAAkB,CAAA;IAElB;;OAEG;IACH,iDAAmB,CAAA;IAEnB;;OAEG;IACH,mDAAqB,CAAA;AACzB,CAAC,EAtFW,0BAA0B,GAA1B,kCAA0B,KAA1B,kCAA0B,QAsFrC;AAEY,QAAA,6BAA6B,GAAG,IAAI,GAAG,CAAS;IAEzD,0BAA0B,CAAC,qBAAqB;IAChD,0BAA0B,CAAC,UAAU;IAErC,0BAA0B,CAAC,mBAAmB;IAE9C,0BAA0B,CAAC,mBAAmB;IAC9C,0BAA0B,CAAC,SAAS;IAEpC,0BAA0B,CAAC,OAAO;IAClC,0BAA0B,CAAC,OAAO;CAErC,CAAC,CAAC;AAyvBU,QAAA,4BAA4B,GAA8B;I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AEG;IACH,oDAAsB,CAAA;IAEtB;;OAEG;IACH,sEAAwC,CAAA;IAExC;;OAEG;IACH,mEAAqC,CAAA;IAErC;;OAEG;IACH,mEAAqC,CAAA;IAErC;;;OAGG;IACH,yEAA2C,CAAA;IAE3C;;OAEG;IACH,oDAAsB,CAAA;IAEtB;;;;OAIG;IACH,yEAA2C,CAAA;IAE3C;;;;OAIG;IACH,+EAAiD,CAAA;IAEjD;;OAEG;IACH,qDAAuB,CAAA;IAEvB;;OAEG;IACH,uDAAyB,CAAA;IAEzB;;OAEG;IACH,6DAA+B,CAAA;IAE/B;;;;OAIG;IACH,uDAAyB,CAAA;IAEzB;;;OAGG;IACH,+DAAiC,CAAA;IAEjC;;OAEG;IACH,iDAAmB,CAAA;IAEnB;;OAEG;IACH,gDAAkB,CAAA;IAElB;;OAEG;IACH,iDAAmB,CAAA;IAEnB;;OAEG;IACH,mDAAqB,CAAA;AACzB,CAAC,EA9FW,0BAA0B,GAA1B,kCAA0B,KAA1B,kCAA0B,QA8FrC;AAEY,QAAA,6BAA6B,GAAG,IAAI,GAAG,CAAS;IAEzD,0BAA0B,CAAC,qBAAqB;IAChD,0BAA0B,CAAC,UAAU;IAErC,0BAA0B,CAAC,mBAAmB;IAE9C,0BAA0B,CAAC,mBAAmB;IAC9C,0BAA0B,CAAC,SAAS;IAEpC,0BAA0B,CAAC,OAAO;IAClC,0BAA0B,CAAC,OAAO;CAErC,CAAC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { ITidyBaseColumnReadonly } from "./PublicTidyColumn";
2
2
  import { HistogramData, HistogramOptions, TidyRowFilter } from "./PublicTidyTableTypes";
3
3
  import { TrendLineType } from "./theme/ThemeAmCharts4";
4
+ import { ITidyTable } from "./PublicTidyTable";
4
5
  /**
5
6
  * Utility class for doing maths in columns
6
7
  *
@@ -88,12 +89,60 @@ export interface ITidyMath {
88
89
  * @param x column y
89
90
  */
90
91
  ols(y: ITidyBaseColumnReadonly<number | null>, x: ITidyBaseColumnReadonly<number | null>): ((x: number) => number) | undefined;
92
+ /**
93
+ * Returns the previous value in the column , undefined if idx is 0
94
+ * @param column
95
+ * @param idx row index.
96
+ */
97
+ prev(column: ITidyBaseColumnReadonly<number | null>, idx: number): number | undefined | null;
98
+ /**
99
+ * Returns the next value in the column , undefined if idx is last one
100
+ * @param column
101
+ * @param idx row index.
102
+ */
103
+ next(column: ITidyBaseColumnReadonly<number | null>, idx: number): number | undefined | null;
104
+ /**
105
+ * Returns the first value in the column
106
+ * @param column
107
+ * @param idx row index.
108
+ */
109
+ first(column: ITidyBaseColumnReadonly<number | null>, idx: number): number | undefined | null;
110
+ /**
111
+ * Returns the last value in the column
112
+ * @param column
113
+ * @param idx row index.
114
+ */
115
+ last(column: ITidyBaseColumnReadonly<number | null>, idx: number): number | undefined | null;
91
116
  /**
92
117
  * Calculate the percentage w.r.t. the total of the column.
93
118
  * @param column
94
119
  * @param idx row index of the cell to calculate the percentage of.
95
120
  */
96
121
  percent(column: ITidyBaseColumnReadonly<number | null>, idx: number): number | undefined;
122
+ /**
123
+ * Calculate the percentage w.r.t. the first value of the column.
124
+ * @param column
125
+ * @param idx row index of the cell to calculate the percentage of.
126
+ */
127
+ percentFirst(column: ITidyBaseColumnReadonly<number | null>, idx: number): number | undefined;
128
+ /**
129
+ * Calculate the percentage w.r.t. the last value of the column.
130
+ * @param column
131
+ * @param idx row index of the cell to calculate the percentage of.
132
+ */
133
+ percentLast(column: ITidyBaseColumnReadonly<number | null>, idx: number): number | undefined;
134
+ /**
135
+ * Calculate the percentage w.r.t. the table total value (all numeric columns).
136
+ * @param column
137
+ * @param idx row index of the cell to calculate the percentage of.
138
+ */
139
+ percentTable(table: ITidyTable, column: ITidyBaseColumnReadonly<number | null>, idx: number): number | undefined;
140
+ /**
141
+ * Calculate the percentage w.r.t. the row value of all numeric columns.
142
+ * @param column
143
+ * @param idx row index of the cell to calculate the percentage of.
144
+ */
145
+ percentRow(table: ITidyTable, column: ITidyBaseColumnReadonly<number | null>, idx: number): number | undefined;
97
146
  /**
98
147
  * Count the values in the column. For example: [a, b, b] -> {a: 1, b: 2}.
99
148
  */
@@ -37,7 +37,7 @@ export interface ITidyTable {
37
37
  */
38
38
  getQueryUid(): number;
39
39
  isSameDimensionality(other: ITidyTable): boolean;
40
- asPivotTableForExcel(nullValue: any): ITidyColumn[];
40
+ asPivotTableForExcel(nullValue: any, rows: number[] | undefined): ITidyColumn[];
41
41
  /**
42
42
  * Return all columns in the table
43
43
  */
@@ -418,7 +418,8 @@ export interface ITidyTable {
418
418
  createColumn<T>(name: string, values: T[], type?: AllowedColumnType<T>): ITidyBaseColumn<T>;
419
419
  createTable(): ITidyTable;
420
420
  /**
421
- * Returns a new table with the original columns and rows filtered and in a new order
421
+ * Returns a new table with the original columns and rows filtered and in a new order.
422
+ * It leaves the original table intact.
422
423
  *
423
424
  * cols : [2,1,4] -> 3 columns in a new order
424
425
  * rowIdx:[55,2,3,5] -> 4 rows in a new order
package/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export * from "./INotification";
5
5
  export * from "./IPluginDefinition";
6
6
  export * from "./IRemotePluginName";
7
7
  export * from "./IThemeManager";
8
+ export * from "./IUserMenuOptionManager";
8
9
  export * from "./PublicAmchartsData";
9
10
  export * from "./PublicAmCharts4Base";
10
11
  export * from "./ITidyTableTransformation";
@@ -44,6 +45,7 @@ export * from "./theme/ThemeFilterAutocomplete";
44
45
  export * from "./theme/ThemeFilterButtons";
45
46
  export * from "./theme/ThemeFilterCheckboxRadio";
46
47
  export * from "./theme/ThemeFilterPanel";
48
+ export * from "./theme/ThemeRegexFilter";
47
49
  export * from "./theme/ThemeSinglePanelFilter";
48
50
  export * from "./theme/ThemeFilterSlider";
49
51
  export * from "./theme/ThemeFilterTree";
@@ -69,3 +71,4 @@ export * from "./theme/ThemeReportAppLeftPanel";
69
71
  export * from "./theme/ThemeWidgetBox";
70
72
  export * from "./theme/ThemeWidgetBoxContentMessage";
71
73
  export * from "./theme/ThemeIc3TableCell";
74
+ export * from "./theme/ThemeSeparator";
package/dist/index.js CHANGED
@@ -21,6 +21,7 @@ __exportStar(require("./INotification"), exports);
21
21
  __exportStar(require("./IPluginDefinition"), exports);
22
22
  __exportStar(require("./IRemotePluginName"), exports);
23
23
  __exportStar(require("./IThemeManager"), exports);
24
+ __exportStar(require("./IUserMenuOptionManager"), exports);
24
25
  __exportStar(require("./PublicAmchartsData"), exports);
25
26
  __exportStar(require("./PublicAmCharts4Base"), exports);
26
27
  __exportStar(require("./ITidyTableTransformation"), exports);
@@ -60,6 +61,7 @@ __exportStar(require("./theme/ThemeFilterAutocomplete"), exports);
60
61
  __exportStar(require("./theme/ThemeFilterButtons"), exports);
61
62
  __exportStar(require("./theme/ThemeFilterCheckboxRadio"), exports);
62
63
  __exportStar(require("./theme/ThemeFilterPanel"), exports);
64
+ __exportStar(require("./theme/ThemeRegexFilter"), exports);
63
65
  __exportStar(require("./theme/ThemeSinglePanelFilter"), exports);
64
66
  __exportStar(require("./theme/ThemeFilterSlider"), exports);
65
67
  __exportStar(require("./theme/ThemeFilterTree"), exports);
@@ -85,4 +87,5 @@ __exportStar(require("./theme/ThemeReportAppLeftPanel"), exports);
85
87
  __exportStar(require("./theme/ThemeWidgetBox"), exports);
86
88
  __exportStar(require("./theme/ThemeWidgetBoxContentMessage"), exports);
87
89
  __exportStar(require("./theme/ThemeIc3TableCell"), exports);
90
+ __exportStar(require("./theme/ThemeSeparator"), exports);
88
91
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,4CAA0B;AAC1B,yDAAuC;AACvC,kDAAgC;AAChC,sDAAoC;AACpC,sDAAoC;AACpC,kDAAgC;AAChC,uDAAqC;AACrC,wDAAsC;AACtC,6DAA0C;AAC1C,oEAAiD;AACjD,2CAAwB;AACxB,+DAA6C;AAC7C,2DAAyC;AACzC,0DAAwC;AACxC,mDAAiC;AACjC,iDAA+B;AAC/B,2CAAyB;AACzB,iDAA+B;AAC/B,kDAAgC;AAChC,+CAA6B;AAC7B,iDAA+B;AAC/B,mDAAiC;AACjC,uDAAqC;AACrC,oDAAkC;AAClC,gDAA8B;AAC9B,qDAAmC;AACnC,mDAAiC;AACjC,oDAAkC;AAClC,gEAA8C;AAC9C,yDAAuC;AACvC,mDAAiC;AACjC,wDAAsC;AACtC,yDAAuC;AACvC,qDAAmC;AAEnC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,yDAAuC;AACvC,0DAAwC;AACxC,8DAA4C;AAC5C,6DAA2C;AAC3C,kEAAgD;AAChD,6DAA2C;AAC3C,mEAAiD;AACjD,2DAAyC;AACzC,iEAA+C;AAC/C,4DAA0C;AAC1C,0DAAwC;AACxC,sDAAoC;AACpC,sDAAoC;AACpC,6DAA2C;AAC3C,8DAA4C;AAC5C,4DAA0C;AAC1C,uDAAqC;AACrC,qDAAmC;AACnC,sDAAoC;AACpC,uDAAqC;AACrC,sDAAoC;AACpC,0DAAwC;AACxC,+DAA6C;AAC7C,4DAA0C;AAC1C,0DAAwC;AACxC,2DAAyC;AACzC,gEAA8C;AAC9C,4DAA0C;AAC1C,qDAAmC;AACnC,kEAAgD;AAChD,yDAAuC;AACvC,uEAAqD;AACrD,4DAA0C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,4CAA0B;AAC1B,yDAAuC;AACvC,kDAAgC;AAChC,sDAAoC;AACpC,sDAAoC;AACpC,kDAAgC;AAChC,2DAAyC;AACzC,uDAAqC;AACrC,wDAAsC;AACtC,6DAA0C;AAC1C,oEAAiD;AACjD,2CAAwB;AACxB,+DAA6C;AAC7C,2DAAyC;AACzC,0DAAwC;AACxC,mDAAiC;AACjC,iDAA+B;AAC/B,2CAAyB;AACzB,iDAA+B;AAC/B,kDAAgC;AAChC,+CAA6B;AAC7B,iDAA+B;AAC/B,mDAAiC;AACjC,uDAAqC;AACrC,oDAAkC;AAClC,gDAA8B;AAC9B,qDAAmC;AACnC,mDAAiC;AACjC,oDAAkC;AAClC,gEAA8C;AAC9C,yDAAuC;AACvC,mDAAiC;AACjC,wDAAsC;AACtC,yDAAuC;AACvC,qDAAmC;AAEnC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,yDAAuC;AACvC,0DAAwC;AACxC,8DAA4C;AAC5C,6DAA2C;AAC3C,kEAAgD;AAChD,6DAA2C;AAC3C,mEAAiD;AACjD,2DAAyC;AACzC,2DAAyC;AACzC,iEAA+C;AAC/C,4DAA0C;AAC1C,0DAAwC;AACxC,sDAAoC;AACpC,sDAAoC;AACpC,6DAA2C;AAC3C,8DAA4C;AAC5C,4DAA0C;AAC1C,uDAAqC;AACrC,qDAAmC;AACnC,sDAAoC;AACpC,uDAAqC;AACrC,sDAAoC;AACpC,0DAAwC;AACxC,+DAA6C;AAC7C,4DAA0C;AAC1C,0DAAwC;AACxC,2DAAyC;AACzC,gEAA8C;AAC9C,4DAA0C;AAC1C,qDAAmC;AACnC,kEAAgD;AAChD,yDAAuC;AACvC,uEAAqD;AACrD,4DAA0C;AAC1C,yDAAuC"}
@@ -77,6 +77,14 @@ export declare enum SeriesLabelsPosition {
77
77
  END = "END",
78
78
  OUTSIDE = "OUTSIDE"
79
79
  }
80
+ export declare enum SeriesType {
81
+ LINE = "LINE",
82
+ COLUMN = "COLUMN"
83
+ }
84
+ export declare enum DrawSeriesOnAxis {
85
+ LEFT = "left",
86
+ RIGHT = "right"
87
+ }
80
88
  export interface IBulletShapeOptions extends FormFieldObject {
81
89
  bulletShapeWidth: number;
82
90
  bulletShapeHeight: number;
@@ -529,6 +537,28 @@ export interface Am4ValueLabelOptions extends FormFieldObject {
529
537
  */
530
538
  seriesLabelsStackTotalText?: string;
531
539
  }
540
+ export interface Am4SecondValueLabelOptions extends FormFieldObject {
541
+ /**
542
+ * @see Am4ValueLabelOptions
543
+ */
544
+ seriesLabelsEnabledSecond: boolean;
545
+ /**
546
+ * @see Am4ValueLabelOptions
547
+ */
548
+ seriesLabelsTextSecond: string;
549
+ /**
550
+ * @see Am4ValueLabelOptions
551
+ */
552
+ seriesLabelsPositionSecond: SeriesLabelsPosition;
553
+ /**
554
+ * @see Am4ValueLabelOptions
555
+ */
556
+ seriesLabelsHideOversizeSecond: boolean;
557
+ /**
558
+ * @see Am4ValueLabelOptions
559
+ */
560
+ seriesLabelsStackTotalTextSecond?: string;
561
+ }
532
562
  export interface Am4ChartCursorOptions extends FormFieldObject {
533
563
  /**
534
564
  * Chart Cursor.
@@ -586,6 +616,10 @@ export interface Am4SankeyFlowOptions extends FormFieldObject {
586
616
  * Color Mode.
587
617
  */
588
618
  colorMode: 'solid' | 'gradient' | 'fromNode' | 'toNode';
619
+ /**
620
+ * The tooltip for the node
621
+ */
622
+ flowTooltip?: string;
589
623
  }
590
624
  export interface Am4SankeyNodeOptions extends FormFieldObject, IStrokeStyleProperties {
591
625
  /**
@@ -594,6 +628,10 @@ export interface Am4SankeyNodeOptions extends FormFieldObject, IStrokeStylePrope
594
628
  * Depending on the orientation, the width (if horizontal) or height (if vertical) of the node.
595
629
  */
596
630
  nodeWidth: number;
631
+ /**
632
+ * Tooltip for the node
633
+ */
634
+ nodeTooltip?: string;
597
635
  }
598
636
  export interface Am4SankeyDiagramOptions extends FormFieldObject {
599
637
  /**
@@ -602,6 +640,10 @@ export interface Am4SankeyDiagramOptions extends FormFieldObject {
602
640
  * Show the Sankey from left to right if 'Horizontal' and from top to bottom if 'Vertical'.
603
641
  */
604
642
  orientation: 'horizontal' | 'vertical';
643
+ /**
644
+ * If true, the first column describes the from nodes, and the second column the to nodes.
645
+ */
646
+ useFromToDataDefinition: boolean;
605
647
  }
606
648
  export interface Am4TreeMapSeriesOptions extends FormFieldObject, IStrokeStyleProperties {
607
649
  /**
@@ -1155,12 +1197,6 @@ export interface Am4ValueAxisRangeOptions extends FormFieldObject {
1155
1197
  }
1156
1198
  export interface Am4LineSeriesOptions extends FormFieldObject, IStrokeStyleProperties, IBulletShapeOptions {
1157
1199
  /**
1158
- * [Combo Chart]
1159
- *
1160
- * Line.
1161
- *
1162
- * Values for the line.
1163
- *
1164
1200
  * [Line Chart]
1165
1201
  *
1166
1202
  * Line Values.
@@ -1231,24 +1267,64 @@ export interface Am4LineSeriesOptions extends FormFieldObject, IStrokeStylePrope
1231
1267
  smoothLineTensionX: number;
1232
1268
  smoothLineTensionY: number;
1233
1269
  }
1234
- export interface Am4ComboSeriesOptions extends Am4LineSeriesOptions, Am4ColumnSeriesOptions {
1270
+ export interface Am4ComboSeriesOptions extends FormFieldObject, IStrokeStyleProperties {
1271
+ /**
1272
+ * Values for the left series. Named line due to legacy.
1273
+ */
1274
+ lineValue: TidyTableColumnSelector[];
1275
+ /**
1276
+ * Values for the right series. Named column due to legacy.
1277
+ */
1278
+ columnValue: TidyTableColumnSelector[];
1235
1279
  /**
1236
1280
  * Draw the line-series in this axis. Defaults to "left".
1237
1281
  */
1238
- lineSeriesDrawOnAxis: "left" | "right";
1282
+ lineSeriesDrawOnAxis: DrawSeriesOnAxis;
1239
1283
  /**
1240
1284
  * Draw the column-series in this axis. Defaults to "right".
1241
1285
  */
1242
- columnSeriesDrawOnAxis: "left" | "right";
1286
+ columnSeriesDrawOnAxis: DrawSeriesOnAxis;
1287
+ /**
1288
+ * Type of the left series. Line / Column.
1289
+ */
1290
+ seriesTypeLeft: SeriesType;
1291
+ /**
1292
+ * Type of the right series. Line / Column.
1293
+ */
1294
+ seriesTypeRight: SeriesType;
1295
+ lineBulletShapeLeft?: TidyTableColumnSelector;
1296
+ hideLineBulletsLeft: boolean;
1297
+ chartCursorTooltipLineLeft: string;
1298
+ legendLineSeriesLabelLeft?: string;
1299
+ legendLineSeriesShowValueLeft: boolean;
1300
+ areaFillOpacityLeft: number;
1301
+ lineSeriesColorLeft?: TidyTableColumnSelector;
1302
+ connectLineSeriesLeft: boolean;
1303
+ smoothLineMethodLeft: Amcharts4LineSmoothMethod;
1304
+ smoothLineTensionXLeft: number;
1305
+ smoothLineTensionYLeft: number;
1306
+ chartCursorTooltipColumnLeft: string;
1307
+ legendColumnSeriesLabelLeft?: string;
1308
+ legendColumnSeriesShowValueLeft: boolean;
1309
+ columnSeriesColorLeft?: TidyTableColumnSelector;
1310
+ lineBulletShapeRight?: TidyTableColumnSelector;
1311
+ hideLineBulletsRight: boolean;
1312
+ chartCursorTooltipLineRight: string;
1313
+ legendLineSeriesLabelRight?: string;
1314
+ legendLineSeriesShowValueRight: boolean;
1315
+ areaFillOpacityRight: number;
1316
+ lineSeriesColorRight?: TidyTableColumnSelector;
1317
+ connectLineSeriesRight: boolean;
1318
+ smoothLineMethodRight: Amcharts4LineSmoothMethod;
1319
+ smoothLineTensionXRight: number;
1320
+ smoothLineTensionYRight: number;
1321
+ chartCursorTooltipColumnRight: string;
1322
+ legendColumnSeriesLabelRight?: string;
1323
+ legendColumnSeriesShowValueRight: boolean;
1324
+ columnSeriesColorRight?: TidyTableColumnSelector;
1243
1325
  }
1244
1326
  export interface Am4ColumnSeriesOptions extends FormFieldObject, IStrokeStyleProperties {
1245
1327
  /**
1246
- * [Combo Chart]
1247
- *
1248
- * Values.
1249
- *
1250
- * Values for the columns.
1251
- *
1252
1328
  * [Column Chart]
1253
1329
  *
1254
1330
  * Column Values.
@@ -1465,7 +1541,7 @@ export type AmCharts4BubbleChartOptions = Am4SecondValueAxisOptions & Am4ValueAx
1465
1541
  /**
1466
1542
  * The corresponding AmCharts 4 chart class is XYChart.
1467
1543
  */
1468
- export type AmCharts4ComboChartOptions = Am4CategoryDateAxisOptions & Am4ValueAxisOptions & Am4SecondValueAxisOptions & Am4ComboSeriesOptions & Am4LegendOptions & Am4ChartCursorOptions & Am4ScrollbarOptions & Am4ChartOptions;
1544
+ export type AmCharts4ComboChartOptions = Am4CategoryDateAxisOptions & Am4ValueAxisOptions & Am4SecondValueAxisOptions & Am4ComboSeriesOptions & Am4LegendOptions & Am4ChartCursorOptions & Am4ScrollbarOptions & Am4ChartOptions & Am4ValueLabelOptions;
1469
1545
  export type AmCharts4CoordinateChartOptions = Am4TrendLineOptions;
1470
1546
  /**
1471
1547
  * The corresponding AmCharts 4 chart class is XYChart.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SeriesLabelsPosition = exports.CategoryAxisRotateLabels = exports.OverflowType = exports.LegendPositionOption = exports.TrendLineType = exports.Amcharts4LineSmoothMethod = exports.GeoMapChartUnMatchedRegionStrategy = exports.GeoMapChartProjection = exports.AxisRangeType = void 0;
3
+ exports.DrawSeriesOnAxis = exports.SeriesType = exports.SeriesLabelsPosition = exports.CategoryAxisRotateLabels = exports.OverflowType = exports.LegendPositionOption = exports.TrendLineType = exports.Amcharts4LineSmoothMethod = exports.GeoMapChartUnMatchedRegionStrategy = exports.GeoMapChartProjection = exports.AxisRangeType = void 0;
4
4
  var AxisRangeType;
5
5
  (function (AxisRangeType) {
6
6
  AxisRangeType["LINE"] = "single_line";
@@ -71,4 +71,14 @@ var SeriesLabelsPosition;
71
71
  SeriesLabelsPosition["END"] = "END";
72
72
  SeriesLabelsPosition["OUTSIDE"] = "OUTSIDE";
73
73
  })(SeriesLabelsPosition = exports.SeriesLabelsPosition || (exports.SeriesLabelsPosition = {}));
74
+ var SeriesType;
75
+ (function (SeriesType) {
76
+ SeriesType["LINE"] = "LINE";
77
+ SeriesType["COLUMN"] = "COLUMN";
78
+ })(SeriesType = exports.SeriesType || (exports.SeriesType = {}));
79
+ var DrawSeriesOnAxis;
80
+ (function (DrawSeriesOnAxis) {
81
+ DrawSeriesOnAxis["LEFT"] = "left";
82
+ DrawSeriesOnAxis["RIGHT"] = "right";
83
+ })(DrawSeriesOnAxis = exports.DrawSeriesOnAxis || (exports.DrawSeriesOnAxis = {}));
74
84
  //# sourceMappingURL=ThemeAmCharts4.js.map
@@ -1 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EALW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAK/B;AAED,IAAY,UAGX;AAHD,WAAY,UAAU;IAClB,2BAAa,CAAA;IACb,+BAAiB,CAAA;AACrB,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB;AAED,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IACxB,iCAAa,CAAA;IACb,mCAAe,CAAA;AACnB,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B"}
@@ -127,6 +127,11 @@ export interface FilterPanelChartOptions extends FormFieldObject {
127
127
  * Easily change by clicking 'Set Allowed Filters' in the user menu of the widget header.
128
128
  */
129
129
  customFilterConfig?: string;
130
+ /**
131
+ * These filters are not allowed to be selected by the user. These filters are hidden from the add filter menu.
132
+ * // TODO (tom) localize + document this option #1373
133
+ */
134
+ notAllowedFiltersConfig?: string;
130
135
  /**
131
136
  * Default Filters.
132
137
  *
@@ -0,0 +1,13 @@
1
+ export declare class RegexFilterClasses {
2
+ /**
3
+ * Main content div
4
+ */
5
+ static readonly searchBoxContainer = "ic3RegexFilter-searchBoxContainer";
6
+ static readonly reachedLimitText = "ic3RegexFilter-reachedLimitText";
7
+ static readonly searchContent = "ic3RegexFilter-searchContent";
8
+ static readonly footer = "ic3RegexFilter-footer";
9
+ static readonly filterCount = "ic3RegexFilter-filterCount";
10
+ }
11
+ export declare type RegexFilterClassesKey = keyof RegexFilterClasses;
12
+ export interface RegexFilterProps {
13
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RegexFilterClasses = void 0;
4
+ class RegexFilterClasses {
5
+ }
6
+ exports.RegexFilterClasses = RegexFilterClasses;
7
+ /**
8
+ * Main content div
9
+ */
10
+ RegexFilterClasses.searchBoxContainer = "ic3RegexFilter-searchBoxContainer";
11
+ RegexFilterClasses.reachedLimitText = "ic3RegexFilter-reachedLimitText";
12
+ RegexFilterClasses.searchContent = "ic3RegexFilter-searchContent";
13
+ RegexFilterClasses.footer = "ic3RegexFilter-footer";
14
+ RegexFilterClasses.filterCount = "ic3RegexFilter-filterCount";
15
+ //# sourceMappingURL=ThemeRegexFilter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeRegexFilter.js","sourceRoot":"","sources":["../../src/theme/ThemeRegexFilter.ts"],"names":[],"mappings":";;;AAAA,MAAa,kBAAkB;;AAA/B,gDAaC;AAZG;;GAEG;AACa,qCAAkB,GAAG,mCAAmC,CAAC;AAEzD,mCAAgB,GAAG,iCAAiC,CAAC;AAErD,gCAAa,GAAG,8BAA8B,CAAC;AAE/C,yBAAM,GAAG,uBAAuB,CAAC;AAEjC,8BAAW,GAAG,4BAA4B,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { FormFieldObject } from "../PublicTemplateForm";
2
+ /**
3
+ * Separator Options (fields of the "Chart" tab in the widget editor).
4
+ *
5
+ * <pre>
6
+ * Plugin ID : ic3
7
+ * Widget/Template ID: Separator
8
+ * </pre>
9
+ *
10
+ * @see WidgetTemplateChartOptions
11
+ */
12
+ export interface SeparatorChartOptions extends FormFieldObject {
13
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ThemeSeparator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeSeparator.js","sourceRoot":"","sources":["../../src/theme/ThemeSeparator.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ic3/reporting-api",
3
- "version": "8.4.2-alpha.1",
3
+ "version": "8.4.3",
4
4
  "description": "icCube dashboards API",
5
5
  "homepage": "https://github.com/ic3-software/ic3-reporting-api",
6
6
  "repository": "https://github.com/ic3-software/ic3-reporting-api",
@@ -11,20 +11,20 @@
11
11
  "access": "public"
12
12
  },
13
13
  "dependencies": {
14
- "@mui/material": "5.13.2",
15
- "@mui/system": "5.13.2",
16
- "@emotion/react": "11.11.0",
14
+ "@mui/material": "5.13.7",
15
+ "@mui/system": "5.13.7",
16
+ "@emotion/react": "11.11.1",
17
17
  "@emotion/styled": "11.11.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/markerclustererplus": "2.1.33",
21
- "@types/node": "20.2.3",
22
- "@types/react": "18.2.7",
21
+ "@types/node": "20.3.3",
22
+ "@types/react": "18.2.14",
23
23
  "del-cli": "5.0.0",
24
24
  "typescript": "4.9.5"
25
25
  },
26
26
  "overrides": {
27
- "@types/react": "18.2.7"
27
+ "@types/react": "18.2.14"
28
28
  },
29
29
  "scripts": {
30
30
  "build": "del-cli dist && npx tsc",