@ic3/reporting-api 8.3.0 → 8.4.0-alpha.2

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 (63) hide show
  1. package/README.md +6 -4
  2. package/dist/ApiUtils.js +1 -1
  3. package/dist/ApiUtils.js.map +1 -1
  4. package/dist/INotification.d.ts +8 -2
  5. package/dist/IPluginDefinition.d.ts +3 -0
  6. package/dist/PublicAmCharts4Base.d.ts +91 -0
  7. package/dist/{IReporting.js → PublicAmCharts4Base.js} +1 -1
  8. package/dist/PublicAmCharts4Base.js.map +1 -0
  9. package/dist/PublicAmchartsData.d.ts +41 -15
  10. package/dist/PublicAmchartsData.js +32 -21
  11. package/dist/PublicAmchartsData.js.map +1 -1
  12. package/dist/PublicContext.d.ts +9 -1
  13. package/dist/PublicTemplate.d.ts +8 -0
  14. package/dist/PublicTemplate.js.map +1 -1
  15. package/dist/PublicTemplateForm.d.ts +21 -3
  16. package/dist/PublicTemplateForm.js.map +1 -1
  17. package/dist/PublicTheme.d.ts +140 -37
  18. package/dist/PublicTheme.js.map +1 -1
  19. package/dist/PublicTidyColumn.d.ts +16 -2
  20. package/dist/PublicTidyColumn.js +3 -14
  21. package/dist/PublicTidyColumn.js.map +1 -1
  22. package/dist/PublicTidyHistogram.d.ts +20 -1
  23. package/dist/PublicTidyHistogram.js +28 -5
  24. package/dist/PublicTidyHistogram.js.map +1 -1
  25. package/dist/PublicTidyMath.d.ts +7 -1
  26. package/dist/PublicTidyTableInteractions.d.ts +4 -0
  27. package/dist/PublicTidyTableTypes.d.ts +4 -0
  28. package/dist/index.d.ts +1 -2
  29. package/dist/index.js +1 -2
  30. package/dist/index.js.map +1 -1
  31. package/dist/theme/ThemeAmCharts4.d.ts +30 -7
  32. package/dist/theme/ThemeAmCharts4.js +7 -1
  33. package/dist/theme/ThemeAmCharts4.js.map +1 -1
  34. package/dist/theme/ThemeCodeMirror.d.ts +4 -0
  35. package/dist/theme/ThemeCodeMirror.js +8 -0
  36. package/dist/theme/ThemeCodeMirror.js.map +1 -0
  37. package/dist/theme/ThemeDatePicker.d.ts +2 -0
  38. package/dist/theme/ThemeEmbeddedReport.d.ts +9 -0
  39. package/dist/theme/ThemeEmbeddedReport.js +6 -0
  40. package/dist/theme/ThemeEmbeddedReport.js.map +1 -1
  41. package/dist/theme/ThemeFilterAutocomplete.d.ts +3 -0
  42. package/dist/theme/ThemeFilterButtons.d.ts +5 -0
  43. package/dist/theme/ThemeFilterCheckboxRadio.d.ts +4 -0
  44. package/dist/theme/ThemeFilterSlider.d.ts +8 -0
  45. package/dist/theme/ThemeFilterTree.d.ts +5 -0
  46. package/dist/theme/ThemeHtmlBox.d.ts +3 -4
  47. package/dist/theme/ThemeHtmlBox.js +0 -1
  48. package/dist/theme/ThemeHtmlBox.js.map +1 -1
  49. package/dist/theme/ThemeLazyTreeClasses.d.ts +2 -0
  50. package/dist/theme/ThemeListCounter.d.ts +2 -0
  51. package/dist/theme/ThemePrintButton.d.ts +3 -0
  52. package/dist/theme/ThemeTable.d.ts +1 -6
  53. package/dist/theme/ThemeTable.js.map +1 -1
  54. package/dist/theme/ThemeWidgetBox.d.ts +3 -0
  55. package/dist/theme/ThemeWidgetFilteredBy.d.ts +5 -0
  56. package/dist/theme/ThemeWidgetFilteredBy.js +9 -0
  57. package/dist/theme/ThemeWidgetFilteredBy.js.map +1 -0
  58. package/package.json +11 -11
  59. package/dist/IReporting.d.ts +0 -153
  60. package/dist/IReporting.js.map +0 -1
  61. package/dist/Loader.d.ts +0 -191
  62. package/dist/Loader.js +0 -209
  63. package/dist/Loader.js.map +0 -1
@@ -1,9 +1,11 @@
1
1
  import { FormFieldObject, Hook, IColorDef } from "../PublicTemplateForm";
2
2
  import { TidyTableColumnSelector, UseDatetimeAxis } from "../PublicTidyTableTypes";
3
3
  import { TidyHistogramOptions } from "../PublicTidyHistogram";
4
+ import { PublicAmCharts4Base } from "../PublicAmCharts4Base";
4
5
  export declare enum AxisRangeType {
5
6
  LINE = "single_line",
6
- RANGE = "range"
7
+ RANGE = "range",
8
+ LINE_PER_MEASURE = "LINE_PER_MEASURE"
7
9
  }
8
10
  export declare enum GeoMapChartProjection {
9
11
  Albers = "Albers",
@@ -28,6 +30,10 @@ export declare enum Amcharts4LineSmoothMethod {
28
30
  MONOTONE_X = "monotoneX",
29
31
  MONOTONE_Y = "monotoneY"
30
32
  }
33
+ export declare enum TrendLineType {
34
+ MEAN = "MEAN",
35
+ OLS = "OLS"
36
+ }
31
37
  export interface IStrokeStyleProperties extends FormFieldObject {
32
38
  /**
33
39
  * Stroke color of the border.
@@ -132,6 +138,10 @@ export interface Am4PieLabelOptions extends FormFieldObject {
132
138
  * Align the labels to the left and to the right of the chart.
133
139
  */
134
140
  sliceLabelsAlignLabels: boolean;
141
+ /**
142
+ * Hide labels below this threshold. Can be a number (e.g., 100) or a percentage (e.g., 5%).
143
+ */
144
+ sliceLabelsHideThreshold?: string;
135
145
  }
136
146
  export interface Am4LabelOptions extends FormFieldObject {
137
147
  /**
@@ -346,7 +356,8 @@ export interface Am4SimpleCategoryAxisOptions extends FormFieldObject {
346
356
  /**
347
357
  * Initial Zoom.
348
358
  *
349
- * The start index and the end index seperated by a comma.
359
+ * The start index and the end index seperated by a comma. You can use negative values to get the index from the
360
+ * end of the axis. E.g., `-10,-1` zooms to the last 10 items.
350
361
  */
351
362
  xAxisInitialZoom?: string;
352
363
  /**
@@ -1041,7 +1052,8 @@ export interface Am4CategoryDateAxisOptions extends FormFieldObject {
1041
1052
  /**
1042
1053
  * Initial Zoom.
1043
1054
  *
1044
- * The start index and the end index seperated by a comma.
1055
+ * The start index and the end index seperated by a comma. You can use negative values to get the index from the
1056
+ * end of the axis. E.g., `-10,-1` zooms to the last 10 items.
1045
1057
  */
1046
1058
  xAxisInitialZoom?: string;
1047
1059
  /**
@@ -1109,7 +1121,7 @@ export interface Am4ValueAxisRangeOptions extends FormFieldObject {
1109
1121
  *
1110
1122
  * The color of the ranged fill / band or line.
1111
1123
  */
1112
- axisRangeColor: IColorDef;
1124
+ axisRangeColor?: IColorDef;
1113
1125
  /**
1114
1126
  * Range Opacity.
1115
1127
  *
@@ -1287,6 +1299,16 @@ export interface Am4ColumnSeriesOptions extends FormFieldObject, IStrokeStylePro
1287
1299
  */
1288
1300
  columnSeriesColor?: TidyTableColumnSelector;
1289
1301
  }
1302
+ export interface Am4DivergentAxisLabelOptions extends FormFieldObject {
1303
+ /**
1304
+ * The text to show in the left label. Use a single space to not show the label.
1305
+ */
1306
+ leftLabelText: string;
1307
+ /**
1308
+ * The text to show in the right label. Use a single space to not show the label.
1309
+ */
1310
+ rightLabelText: string;
1311
+ }
1290
1312
  export interface Am4DivergentBarSeriesOptions extends FormFieldObject, IStrokeStyleProperties {
1291
1313
  /**
1292
1314
  * Values for the series on the left
@@ -1316,6 +1338,7 @@ export interface Am4DivergentBarSeriesOptions extends FormFieldObject, IStrokeSt
1316
1338
  legendColumnSeriesShowValue: boolean;
1317
1339
  }
1318
1340
  export interface Am4TrendLineOptions extends FormFieldObject {
1341
+ trendLineType: TrendLineType;
1319
1342
  /**
1320
1343
  * Trend Line
1321
1344
  */
@@ -1395,13 +1418,13 @@ export interface Am4ChartOptions extends FormFieldObject {
1395
1418
  * In-place processing of the amCharts 4 chart instance.
1396
1419
  *
1397
1420
  * <pre>
1398
- * ( value: any ) => void;
1421
+ * ( value: PublicAmchartsBase<amcharts4.Chart, options> ) => void;
1399
1422
  *
1400
1423
  * value.getChart() is returning an instance of amChart 4 class
1401
1424
  * whose name is available in chart options below.
1402
1425
  * </pre>
1403
1426
  */
1404
- postRenderHook?: Hook<any>;
1427
+ postRenderHook?: Hook<PublicAmCharts4Base<any, any>>;
1405
1428
  /**
1406
1429
  * Called after the chart is created.
1407
1430
  *
@@ -1455,7 +1478,7 @@ export type AmCharts4RegularBarChartOptions = Am4CategoryDateAxisOptions & Am4Va
1455
1478
  /**
1456
1479
  * The corresponding AmCharts 4 chart class is XYChart.
1457
1480
  */
1458
- export type AmCharts4DivergentBarChartOptions = Am4CategoryDateAxisOptions & Am4ValueAxisOptions & Am4DivergentBarSeriesOptions & Am4LegendOptions & Am4ValueLabelOptions & Am4ChartCursorOptions & Am4ScrollbarOptions & Am4ValueAxisRangeOptions & Am4ChartOptions;
1481
+ export type AmCharts4DivergentBarChartOptions = Am4CategoryDateAxisOptions & Am4ValueAxisOptions & Am4DivergentBarSeriesOptions & Am4LegendOptions & Am4ValueLabelOptions & Am4ChartCursorOptions & Am4ScrollbarOptions & Am4ValueAxisRangeOptions & Am4ChartOptions & Am4DivergentAxisLabelOptions;
1459
1482
  /**
1460
1483
  * The corresponding AmCharts 4 chart class is XYChart.
1461
1484
  */
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SeriesLabelsPosition = exports.CategoryAxisRotateLabels = exports.OverflowType = exports.LegendPositionOption = exports.Amcharts4LineSmoothMethod = exports.GeoMapChartUnMatchedRegionStrategy = exports.GeoMapChartProjection = exports.AxisRangeType = void 0;
3
+ 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";
7
7
  AxisRangeType["RANGE"] = "range";
8
+ AxisRangeType["LINE_PER_MEASURE"] = "LINE_PER_MEASURE";
8
9
  })(AxisRangeType = exports.AxisRangeType || (exports.AxisRangeType = {}));
9
10
  var GeoMapChartProjection;
10
11
  (function (GeoMapChartProjection) {
@@ -32,6 +33,11 @@ var Amcharts4LineSmoothMethod;
32
33
  Amcharts4LineSmoothMethod["MONOTONE_X"] = "monotoneX";
33
34
  Amcharts4LineSmoothMethod["MONOTONE_Y"] = "monotoneY"; // See https://www.amcharts.com/docs/v4/chart-types/xy-chart/#Alternate_smoothing_algorithm
34
35
  })(Amcharts4LineSmoothMethod = exports.Amcharts4LineSmoothMethod || (exports.Amcharts4LineSmoothMethod = {}));
36
+ var TrendLineType;
37
+ (function (TrendLineType) {
38
+ TrendLineType["MEAN"] = "MEAN";
39
+ TrendLineType["OLS"] = "OLS";
40
+ })(TrendLineType = exports.TrendLineType || (exports.TrendLineType = {}));
35
41
  var LegendPositionOption;
36
42
  (function (LegendPositionOption) {
37
43
  LegendPositionOption["bottom_left"] = "bottom_left";
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeAmCharts4.js","sourceRoot":"","sources":["../../src/theme/ThemeAmCharts4.ts"],"names":[],"mappings":";;;AAIA,IAAY,aAGX;AAHD,WAAY,aAAa;IACrB,qCAAoB,CAAA;IACpB,gCAAe,CAAA;AACnB,CAAC,EAHW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAGxB;AAED,IAAY,qBAYX;AAZD,WAAY,qBAAqB;IAC7B,0CAAiB,CAAA;IACjB,gDAAuB,CAAA;IACvB,kEAAyC,CAAA;IACzC,4CAAmB,CAAA;IACnB,kDAAyB,CAAA;IACzB,kDAAyB,CAAA;IACzB,8CAAqB,CAAA;IACrB,0CAAiB,CAAA;IACjB,wDAA+B,CAAA;IAC/B,sDAA6B,CAAA;IAC7B,wDAA+B,CAAA;AACnC,CAAC,EAZW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAYhC;AAED,IAAY,kCAGX;AAHD,WAAY,kCAAkC;IAC1C,6EAAuC,CAAA;IACvC,2EAAqC,CAAA;AACzC,CAAC,EAHW,kCAAkC,GAAlC,0CAAkC,KAAlC,0CAAkC,QAG7C;AAED,IAAY,yBAKX;AALD,WAAY,yBAAyB;IACjC,0CAAa,CAAA;IACb,gDAAmB,CAAA;IACnB,qDAAwB,CAAA;IACxB,qDAAwB,CAAA,CAAE,2FAA2F;AACzH,CAAC,EALW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAKpC;AA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,EAHW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAGnC;AAED,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC5B,uCAAe,CAAA;IACf,yCAAiB,CAAA;IACjB,mCAAW,CAAA;IACX,2CAAmB,CAAA;AACvB,CAAC,EALW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAK/B"}
@@ -0,0 +1,4 @@
1
+ export declare class CodeMirrorClasses {
2
+ static readonly root: string;
3
+ }
4
+ export declare type CodeMirrorClassesKey = keyof CodeMirrorClasses;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CodeMirrorClasses = void 0;
4
+ class CodeMirrorClasses {
5
+ }
6
+ exports.CodeMirrorClasses = CodeMirrorClasses;
7
+ CodeMirrorClasses.root = "ic3CodeMirror-rootCM";
8
+ //# sourceMappingURL=ThemeCodeMirror.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeCodeMirror.js","sourceRoot":"","sources":["../../src/theme/ThemeCodeMirror.ts"],"names":[],"mappings":";;;AAAA,MAAa,iBAAiB;;AAA9B,8CAIC;AAFmB,sBAAI,GAAW,sBAAsB,CAAC"}
@@ -124,3 +124,5 @@ export interface DatePickerChartOptions extends FormFieldObject {
124
124
  */
125
125
  dates?: TidyTableColumnSelector;
126
126
  }
127
+ export interface FilterDatePickerProps {
128
+ }
@@ -22,7 +22,16 @@ export interface EmbeddedReportChartOptions extends FormFieldObject {
22
22
  * Forwarded events.
23
23
  */
24
24
  "@params"?: IFormEventMappingArrayFieldDefType;
25
+ "@eventsOut"?: IFormEventMappingArrayFieldDefType;
26
+ /**
27
+ * How to export the embedded report to excel.
28
+ */
29
+ exportToExcelMethod: ExportToExcelMethod;
25
30
  inheritSchemaName: boolean;
26
31
  inheritCubeName: boolean;
27
32
  inheritDisableDefaultSchemaAuthCheck: boolean;
28
33
  }
34
+ export declare enum ExportToExcelMethod {
35
+ SHEET_PER_WIDGET = "SHEET_PER_WIDGET",
36
+ ONE_TABLE = "ONE_TABLE"
37
+ }
@@ -1,3 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExportToExcelMethod = void 0;
4
+ var ExportToExcelMethod;
5
+ (function (ExportToExcelMethod) {
6
+ ExportToExcelMethod["SHEET_PER_WIDGET"] = "SHEET_PER_WIDGET";
7
+ ExportToExcelMethod["ONE_TABLE"] = "ONE_TABLE";
8
+ })(ExportToExcelMethod = exports.ExportToExcelMethod || (exports.ExportToExcelMethod = {}));
3
9
  //# sourceMappingURL=ThemeEmbeddedReport.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeEmbeddedReport.js","sourceRoot":"","sources":["../../src/theme/ThemeEmbeddedReport.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"ThemeEmbeddedReport.js","sourceRoot":"","sources":["../../src/theme/ThemeEmbeddedReport.ts"],"names":[],"mappings":";;;AA0CA,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC3B,4DAAqC,CAAA;IACrC,8CAAuB,CAAA;AAC3B,CAAC,EAHW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAG9B"}
@@ -44,3 +44,6 @@ export interface FilterAutocompleteChartOptions extends FilterTidyTableChartOpti
44
44
  */
45
45
  placeholderText?: string;
46
46
  }
47
+ export type FilterAutocompleteProps = Pick<FilterAutocompleteChartOptions, 'variant' | 'size'> & {
48
+ hideInput?: boolean;
49
+ };
@@ -57,3 +57,8 @@ export interface FilterButtonsChartOptions extends FilterTidyTableChartOptions {
57
57
  */
58
58
  columns?: number;
59
59
  }
60
+ export interface FilterButtonsProps {
61
+ printing: boolean;
62
+ variant?: string;
63
+ grouped: boolean;
64
+ }
@@ -46,3 +46,7 @@ export interface FilterCheckboxRadioChartOptions extends FilterTidyTableChartOpt
46
46
  */
47
47
  columns?: number;
48
48
  }
49
+ export interface FilterCheckboxProps {
50
+ variant?: string;
51
+ printing: boolean;
52
+ }
@@ -81,3 +81,11 @@ export interface FilterSliderChartOptions extends FilterTidyTableChartOptions {
81
81
  */
82
82
  selectionLabel?: string;
83
83
  }
84
+ export interface FilterSliderProps {
85
+ variant?: string;
86
+ thumbColor?: string;
87
+ emptySelection: boolean;
88
+ isVertical?: boolean;
89
+ size?: 'small' | 'medium';
90
+ padding: number;
91
+ }
@@ -99,3 +99,8 @@ export interface FilterTreeChartOptions extends FilterTidyTableChartOptions {
99
99
  */
100
100
  autoCompleteLimitChips: number;
101
101
  }
102
+ export interface FilterTreeProps {
103
+ printing: boolean;
104
+ variant?: string;
105
+ size: 'small' | 'medium';
106
+ }
@@ -1,4 +1,3 @@
1
- import { IWidgetPublicContext } from "../PublicContext";
2
1
  export declare class HtmlBoxClasses {
3
2
  /**
4
3
  * Style applied to the root element.
@@ -27,8 +26,8 @@ export type HtmlBoxVariant = "plain" |
27
26
  * Based on dashboard theme definition (h1,h2...)
28
27
  */
29
28
  "dashboardTheme";
30
- export interface HtmlBoxProps {
31
- context?: IWidgetPublicContext;
29
+ export interface StyledHtmlBoxProps {
30
+ sizing?: boolean;
31
+ sizingW?: number;
32
32
  variant?: HtmlBoxVariant;
33
- html: string;
34
33
  }
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.HtmlBoxClasses = void 0;
4
- // TOM : needs clarification
5
4
  class HtmlBoxClasses {
6
5
  }
7
6
  exports.HtmlBoxClasses = HtmlBoxClasses;
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeHtmlBox.js","sourceRoot":"","sources":["../../src/theme/ThemeHtmlBox.ts"],"names":[],"mappings":";;;AAEA,4BAA4B;AAC5B,MAAa,cAAc;;AAA3B,wCAMC;AAJG;;GAEG;AACW,mBAAI,GAAG,iBAAiB,CAAC"}
1
+ {"version":3,"file":"ThemeHtmlBox.js","sourceRoot":"","sources":["../../src/theme/ThemeHtmlBox.ts"],"names":[],"mappings":";;;AAAA,MAAa,cAAc;;AAA3B,wCAKC;AAJG;;GAEG;AACW,mBAAI,GAAG,iBAAiB,CAAC"}
@@ -13,3 +13,5 @@ export declare class LazyTreeClasses {
13
13
  static readonly treeRoot = "ic3LazyTreeView-treeRoot";
14
14
  }
15
15
  export declare type LazyTreeClassesClassKey = keyof LazyTreeClasses;
16
+ export interface LazyTreeProps {
17
+ }
@@ -3,3 +3,5 @@ export declare class ListCounterClasses {
3
3
  static readonly label = "ic3ListCounter-Label";
4
4
  }
5
5
  export declare type ListCounterClassKey = keyof ListCounterClasses;
6
+ export interface ListCounterProps {
7
+ }
@@ -20,3 +20,6 @@ export interface PrintButtonChartOptions extends FormFieldObject {
20
20
  variant: "text" | "outlined" | "contained" | string;
21
21
  withDialog: boolean;
22
22
  }
23
+ export interface StyledPrintButtonDivProps {
24
+ variant: "text" | "outlined" | "contained" | string;
25
+ }
@@ -12,6 +12,7 @@ export declare type TableClassKey = keyof TableClasses;
12
12
  */
13
13
  export interface TableProps {
14
14
  variant?: string;
15
+ printing: boolean;
15
16
  }
16
17
  /**
17
18
  * Copy of
@@ -131,12 +132,6 @@ export interface TableChartOptions extends BaseTableChartOptions {
131
132
  * Incompatible with 'Pagination'.
132
133
  */
133
134
  footerRowCount: boolean;
134
- /**
135
- * Add Selected Row Count.
136
- *
137
- * Incompatible with 'Pagination'.
138
- */
139
- footerSelectedRowCount: boolean;
140
135
  /**
141
136
  * Page Size.
142
137
  *
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeTable.js","sourceRoot":"","sources":["../../src/theme/ThemeTable.ts"],"names":[],"mappings":";;;AAqBA;;;GAGG;AACH,MAAa,YAAY;;AAAzB,oCAgKC;AA/JG,+DAA+D;AAC/C,0BAAY,GAAG,wBAAwB,CAAC;AACxD,sDAAsD;AACtC,2BAAa,GAAG,yBAAyB,CAAC;AAC1D,kEAAkE;AAClD,8BAAgB,GAAG,4BAA4B,CAAC;AAChE,sEAAsE;AACtD,6BAAe,GAAG,2BAA2B,CA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GAAG,8BAA8B,CAAC;AACpE,uDAAuD;AACvC,iCAAmB,GAAG,+BAA+B,CAAC;AACtE,+DAA+D;AAC/C,gCAAkB,GAAG,8BAA8B,CAAC;AACpE,+CAA+C;AAC/B,wBAAU,GAAG,sBAAsB,CAAC;AACpD,uDAAuD;AACvC,gCAAkB,GAAG,8BAA8B,CAAC;AACpE,yDAAyD;AACzC,iCAAmB,GAAG,+BAA+B,CAAC;AACtE,6FAA6F;AAC7E,0BAAY,GAAG,wBAAwB,CAAC;AACxD,0EAA0E;AAC1D,oCAAsB,GAAG,kCAAkC,CAAC;AAC5E,4EAA4E;AAC5D,0CAA4B,GAAG,wCAAwC,CAAC"}
@@ -130,3 +130,6 @@ export interface WidgetBoxOptions {
130
130
  autoExpandContent: IWidgetBoxExpandOptions;
131
131
  rectangle: IWidgetRectangle;
132
132
  }
133
+ export interface WidgetBoxDivProps {
134
+ variant: string;
135
+ }
@@ -0,0 +1,5 @@
1
+ export declare class WidgetFilteredByClasses {
2
+ static readonly text: string;
3
+ static readonly table: string;
4
+ }
5
+ export declare type WidgetFilteredByClassesKey = keyof WidgetFilteredByClasses;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WidgetFilteredByClasses = void 0;
4
+ class WidgetFilteredByClasses {
5
+ }
6
+ exports.WidgetFilteredByClasses = WidgetFilteredByClasses;
7
+ WidgetFilteredByClasses.text = "ic3WidgetFilteredBy-text";
8
+ WidgetFilteredByClasses.table = "ic3WidgetFilteredBy-table";
9
+ //# sourceMappingURL=ThemeWidgetFilteredBy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeWidgetFilteredBy.js","sourceRoot":"","sources":["../../src/theme/ThemeWidgetFilteredBy.ts"],"names":[],"mappings":";;;AAAA,MAAa,uBAAuB;;AAApC,0DAKC;AAHmB,4BAAI,GAAW,0BAA0B,CAAC;AAC1C,6BAAK,GAAW,2BAA2B,CAAC"}
package/package.json CHANGED
@@ -1,27 +1,27 @@
1
1
  {
2
2
  "name": "@ic3/reporting-api",
3
- "version": "8.3.0",
3
+ "version": "8.4.0-alpha.2",
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",
7
7
  "type": "commonjs",
8
8
  "main": "dist/index.js",
9
9
  "types": "dist/index.d.ts",
10
- "files": [
11
- "dist"
12
- ],
13
10
  "publishConfig": {
14
11
  "access": "public"
15
12
  },
16
- "devDependencies": {
17
- "@mui/material": "5.11.2",
18
- "@mui/system": "5.11.2",
19
- "@types/googlemaps": "3.43.3",
13
+ "dependencies": {
14
+ "@mui/material": "5.11.12",
15
+ "@mui/system": "5.11.12",
16
+ "@emotion/react": "11.10.6",
17
+ "@emotion/styled": "11.10.6",
20
18
  "@types/markerclustererplus": "2.1.33",
21
- "@types/node": "18.11.18",
22
- "@types/react": "17.0.43",
19
+ "@types/react": "18.0.28"
20
+ },
21
+ "devDependencies": {
22
+ "@types/node": "18.15.1",
23
23
  "del-cli": "5.0.0",
24
- "typescript": "4.9.4"
24
+ "typescript": "4.9.5"
25
25
  },
26
26
  "scripts": {
27
27
  "build": "del-cli dist && npx tsc",
@@ -1,153 +0,0 @@
1
- import ReportingVersion from "./ReportingVersion";
2
- import { AppNotification, IAppNotificationCallback, IAppNotificationToken } from "./INotification";
3
- export interface IReportDefinition {
4
- getName(): string;
5
- getPath(): string;
6
- getDefaultSchemaName(): string;
7
- setDefaultSchemaName(name: string): void;
8
- getDefaultCubeName(): string | undefined;
9
- setDefaultCubeName(name: string): void;
10
- getThemeUID(): string;
11
- setThemeUID(uid: string): void;
12
- }
13
- export interface IReportAppDefinition {
14
- }
15
- export interface IEventContentItem {
16
- /**
17
- * Localized name or name.
18
- */
19
- caption: string;
20
- name: string;
21
- uniqueName: string;
22
- }
23
- export type IEventContent = IEventContentItem | IEventContentItem[];
24
- /**
25
- * Used to setup filter initial selection.
26
- */
27
- export interface IReportParam {
28
- channelName: string;
29
- value: IEventContent;
30
- }
31
- export interface IOpenGadgetOptions {
32
- /**
33
- * Full path of the gadget (e.g., shared:/marc/my-gadget).
34
- */
35
- path: string;
36
- }
37
- export interface IOpenReportOptions {
38
- embedded?: boolean;
39
- /**
40
- * Full path of the report (e.g., shared:/marc/my-report).
41
- */
42
- path: string;
43
- /**
44
- * When opening a report in viewer mode (i.e., /viewer URL) icCube is checking that the default schema
45
- * is being authorized and generates an error. When opening a report from a host application and changing
46
- * the default schema on the fly, you might want to disable that check.
47
- */
48
- disableDefaultSchemaAuthCheck?: boolean;
49
- /**
50
- * Optional JSON object (i.e., constant / filter default value).
51
- */
52
- params?: IReportParam[];
53
- /**
54
- * Called before the report definition is actually applied. Give the opportunity
55
- * to change the definition (e.g., schema name).
56
- */
57
- onDefinition?: (report: IReportDefinition) => void;
58
- /**
59
- * If the method exist and return true then the default error dispatcher is not
60
- * being called. Give the caller the opportunity to render the error.
61
- */
62
- onError?: (error: any) => boolean;
63
- }
64
- export interface IOpenReportAppOptions {
65
- /**
66
- * Full path of the report app. (e.g., shared:/my-app).
67
- */
68
- path: string;
69
- /**
70
- * Called before the application definition is actually applied.
71
- * Give the opportunity to change the definition.
72
- */
73
- onDefinition?: (report: IReportAppDefinition) => void;
74
- /**
75
- * If the method exist and return true then the default error dispatcher is not
76
- * being called. Give the caller the opportunity to render the error.
77
- */
78
- onError?: (error: any) => boolean;
79
- }
80
- export interface IPathInfo {
81
- name: string;
82
- path: string;
83
- }
84
- export interface IRootPaths {
85
- shared?: IPathInfo;
86
- home?: IPathInfo;
87
- users?: IPathInfo;
88
- }
89
- export interface IPath {
90
- folder: boolean;
91
- name: string;
92
- path: string;
93
- }
94
- export interface IPathsCallback {
95
- onSuccess: (paths: IPath[]) => void;
96
- onError: (error: any) => void;
97
- }
98
- /**
99
- * An instance of icCube reporting application.
100
- */
101
- export interface IReporting {
102
- getVersion(): ReportingVersion;
103
- /**
104
- * The root paths for accessing dashboards, dashboards applications
105
- * according to the security profile of the user.
106
- */
107
- getRootPaths(): IRootPaths;
108
- /**
109
- * Asynchronous retrieval of dashboards paths.
110
- */
111
- getDashboardPaths(path: string, callback: IPathsCallback): void;
112
- /**
113
- * Asynchronous retrieval of dashboard applications paths.
114
- */
115
- getDashboardApplicationPaths(path: string, callback: IPathsCallback): void;
116
- /**
117
- * @param options path, ...
118
- * @param pushToHistory defaulted to true
119
- * @param keepGlobalFilter defaulted to true. Apply the global filter to the newly opened report.
120
- *
121
- * @see IOpenReportOptions#onDefinition
122
- */
123
- openReport(options: IOpenReportOptions, pushToHistory?: boolean, keepGlobalFilter?: boolean): void;
124
- /**
125
- * @param options path, ...
126
- * @param pushToHistory defaulted to true
127
- *
128
- * @see IOpenReportOptions#onDefinition
129
- */
130
- openReportApp(options: IOpenReportAppOptions, pushToHistory?: boolean): void;
131
- /**
132
- * Publish a widget event to the dashboard.
133
- */
134
- fireEvent(eventName: string, value: IEventContent | null): void;
135
- /**
136
- * Subscribe to a widget event.
137
- */
138
- onEvent(eventName: string, callback: (value: IEventContent | null) => void): void;
139
- /**
140
- * Publish an application notification (e.g., print-report).
141
- *
142
- * Note that a single 'print' notification can be active in the application.
143
- *
144
- * @param callback currently used to monitor a 'print' notification.
145
- */
146
- fireAppNotification(notification: AppNotification, callback?: IAppNotificationCallback): void;
147
- /**
148
- * Attempt to cancel an ongoing application notification (e.g., print).
149
- *
150
- * @param token as returned via the 'onSuccess' method in the 'fireAppNotification' callback.
151
- */
152
- cancelAppNotification(token: IAppNotificationToken): void;
153
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"IReporting.js","sourceRoot":"","sources":["../src/IReporting.ts"],"names":[],"mappings":""}