@ic3/reporting-api 8.4.11 → 8.4.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ApiUtils.js 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.11" || "-", "Thu, 02 May 2024 04:28:30 GMT" || "-") }, definition);
11
+ return Object.assign({ apiVersion: new ReportingVersion_1.default("8.4.13" || "-", "Thu, 18 Jul 2024 14:16:57 GMT" || "-") }, definition);
12
12
  };
13
13
  }
14
14
  /**
@@ -1,5 +1,5 @@
1
1
  import { CSSInterpolation } from "@mui/system";
2
- import { ic3Components } from "./PublicTheme";
2
+ import { Components } from "@mui/material/styles";
3
3
  export declare enum EmbeddedThemeNames {
4
4
  Statos = "ic3-statos"
5
5
  }
@@ -66,10 +66,10 @@ export interface IThemeManager {
66
66
  * The theme decorator allows to setup the Theme.components and Theme.ic3 using the theme
67
67
  * created from its partial options (e.g., using palette, typography, spacing, etc...)
68
68
  */
69
- registerTheme(themeOptions: any, themeDecorator?: (theme: any) => ic3Components, baseTheme?: EmbeddedThemeNames): void;
69
+ registerTheme(themeOptions: any, themeDecorator?: (theme: any) => Components, baseTheme?: EmbeddedThemeNames): void;
70
70
  /**
71
71
  * Register editor themes. Change the editor theme in ic3report-config.js by setting defaultEditorThemeId to a
72
72
  * themeId from a theme using this method.
73
73
  */
74
- registerEditorTheme(themeOptions: any, themeDecorator?: (theme: any) => ic3Components): void;
74
+ registerEditorTheme(themeOptions: any, themeDecorator?: (theme: any) => Components): void;
75
75
  }
package/dist/Logger.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type LoggerComponent = "AlertDialog" | "AmCharts4" | "AmCharts4GeoMap" | "AmCharts5" | "App" | "AppCustomHeaders" | "AppStarter" | "AppStatus" | "ChartTemplateWidget" | "Demo" | "EmbeddedReport" | "ErrorRenderer" | "Font" | "General" | "GoogleMap" | "Help" | "History" | "Keyboard" | "Layout" | "LayoutConverter" | "LayoutPage" | "LayoutRender" | "Loader" | "Localization" | "Operation" | "Other" | "PivotTable" | "PivotTablePagingView" | "Plugin" | "Profiler" | "ReportAppBar" | "ReportAppMenu" | "ReportInitializer" | "ReportStarter" | "RepetitionWidget" | "Request" | "SchemaDataUpdate" | "Storage" | "Table" | "WidgetBox" | "WidgetBoxWrapper" | "WidgetTemplateLibrary";
1
+ export type LoggerComponent = "AI" | "AlertDialog" | "AmCharts4" | "AmCharts4GeoMap" | "AmCharts5" | "App" | "AppCustomHeaders" | "AppStarter" | "AppStatus" | "ChartTemplateWidget" | "Demo" | "EmbeddedReport" | "ErrorRenderer" | "Font" | "General" | "GoogleMap" | "Help" | "History" | "Keyboard" | "Layout" | "LayoutConverter" | "LayoutPage" | "LayoutRender" | "Loader" | "Localization" | "Operation" | "Other" | "PivotTable" | "PivotTablePagingView" | "Plugin" | "Profiler" | "ReportAppBar" | "ReportAppMenu" | "ReportInitializer" | "ReportStarter" | "RepetitionWidget" | "Request" | "SchemaDataUpdate" | "Storage" | "Table" | "WidgetBox" | "WidgetBoxWrapper" | "WidgetTemplateLibrary";
2
2
  export interface ILogger {
3
3
  resetTime(): void;
4
4
  disable(component: LoggerComponent): void;
@@ -315,6 +315,12 @@ export interface IWidgetPublicContext extends IPublicContext {
315
315
  * Returns true if and only if the widgets has a header (from the chart box settings).
316
316
  */
317
317
  widgetHasHeader(): boolean;
318
+ getBoxSettings(): IPublicWidgetBoxSettings | undefined;
319
+ }
320
+ export interface IPublicWidgetBoxSettings {
321
+ widgetId: string;
322
+ waitingEventOrResult?: string;
323
+ emptyResult?: string;
318
324
  }
319
325
  export interface IWidgetEditorPublicContext {
320
326
  /**
@@ -16,4 +16,5 @@ var IContentMessageType;
16
16
  IContentMessageType[IContentMessageType["info"] = 0] = "info";
17
17
  IContentMessageType[IContentMessageType["error"] = 1] = "error";
18
18
  })(IContentMessageType || (exports.IContentMessageType = IContentMessageType = {}));
19
+ ;
19
20
  //# sourceMappingURL=PublicContext.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PublicContext.js","sourceRoot":"","sources":["../src/PublicContext.ts"],"names":[],"mappings":";;;AAaA,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAChC,mDAAuB,CAAA;IACvB,iDAAqB,CAAA;AACzB,CAAC,EAHW,wBAAwB,wCAAxB,wBAAwB,QAGnC;AAED,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC7B,uEAAO,CAAA;IACP,mEAAK,CAAA;AACT,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC;AAED,IAAY,mBAAkC;AAA9C,WAAY,mBAAmB;IAAG,6DAAI,CAAA;IAAE,+DAAK,CAAA;AAAA,CAAC,EAAlC,mBAAmB,mCAAnB,mBAAmB,QAAe"}
1
+ {"version":3,"file":"PublicContext.js","sourceRoot":"","sources":["../src/PublicContext.ts"],"names":[],"mappings":";;;AAaA,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAChC,mDAAuB,CAAA;IACvB,iDAAqB,CAAA;AACzB,CAAC,EAHW,wBAAwB,wCAAxB,wBAAwB,QAGnC;AAED,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC7B,uEAAO,CAAA;IACP,mEAAK,CAAA;AACT,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC;AAED,IAAY,mBAAkC;AAA9C,WAAY,mBAAmB;IAAG,6DAAI,CAAA;IAAE,+DAAK,CAAA;AAAA,CAAC,EAAlC,mBAAmB,mCAAnB,mBAAmB,QAAe;AA4X7C,CAAC"}
@@ -276,6 +276,13 @@ export interface IPublicWidgetJsTemplateDefinition<OPTIONS extends FormFieldObje
276
276
  * Definition - static - of a widget template
277
277
  */
278
278
  interface IPublicCommonWidgetTemplateDefinition<OPTIONS extends FormFieldObject> {
279
+ /**
280
+ * [BETA]
281
+ *
282
+ * Introduced to tag a template as part of the AI [BETA] features.
283
+ * Currently used to filter out the template when AI not enabled.
284
+ */
285
+ ai?: true;
279
286
  /**
280
287
  * Used for finding the right documentation of `typeForHelp` is not defined.
281
288
  * Determine the widget icon in the widget infos.
@@ -1 +1 @@
1
- {"version":3,"file":"PublicTemplate.js","sourceRoot":"","sources":["../src/PublicTemplate.ts"],"names":[],"mappings":";;;AAuIA,IAAY,4CAIX;AAJD,WAAY,4CAA4C;IACpD,qEAAqB,CAAA;IACrB,yEAAyB,CAAA;IACzB,2EAA2B,CAAA;AAC/B,CAAC,EAJW,4CAA4C,4DAA5C,4CAA4C,QAIvD;AAufD;;;;GAIG;AACH,IAAY,4BAKX;AALD,WAAY,4BAA4B;IACpC,+CAAe,CAAA;IACf,iDAAiB,CAAA;IACjB,2CAAW,CAAA;IACX,6CAAa,CAAA;AACjB,CAAC,EALW,4BAA4B,4CAA5B,4BAA4B,QAKvC;AA6BD;;GAEG;AACH,IAAY,wBAOX;AAPD,WAAY,wBAAwB;IAChC,mDAAuB,CAAA;IACvB,mDAAuB,CAAA;IAEvB,gBAAgB;IAChB,0DAA8B,CAAA;IAC9B,iEAAqC,CAAA;AACzC,CAAC,EAPW,wBAAwB,wCAAxB,wBAAwB,QAOnC"}
1
+ {"version":3,"file":"PublicTemplate.js","sourceRoot":"","sources":["../src/PublicTemplate.ts"],"names":[],"mappings":";;;AAuIA,IAAY,4CAIX;AAJD,WAAY,4CAA4C;IACpD,qEAAqB,CAAA;IACrB,yEAAyB,CAAA;IACzB,2EAA2B,CAAA;AAC/B,CAAC,EAJW,4CAA4C,4DAA5C,4CAA4C,QAIvD;AA+fD;;;;GAIG;AACH,IAAY,4BAKX;AALD,WAAY,4BAA4B;IACpC,+CAAe,CAAA;IACf,iDAAiB,CAAA;IACjB,2CAAW,CAAA;IACX,6CAAa,CAAA;AACjB,CAAC,EALW,4BAA4B,4CAA5B,4BAA4B,QAKvC;AA6BD;;GAEG;AACH,IAAY,wBAOX;AAPD,WAAY,wBAAwB;IAChC,mDAAuB,CAAA;IACvB,mDAAuB,CAAA;IAEvB,gBAAgB;IAChB,0DAA8B,CAAA;IAC9B,iEAAqC,CAAA;AACzC,CAAC,EAPW,wBAAwB,wCAAxB,wBAAwB,QAOnC"}
@@ -36,7 +36,7 @@ export interface IFormFieldDef<DEFAULT_VALUE_TYPE> {
36
36
  */
37
37
  group?: string;
38
38
  /**
39
- * When defined, the value is added as a prefix to the fieldPath to defined the localization tag.
39
+ * When defined, the value is added as a prefix to the fieldPath to define the localization tag.
40
40
  */
41
41
  fieldPrefixTag?: IFormFieldGroupTypes | string;
42
42
  /**
@@ -220,6 +220,10 @@ export type FormFieldType =
220
220
  * @see IFormStringFieldDef
221
221
  */
222
222
  "string" |
223
+ /**
224
+ * @see IFormTextFieldDef
225
+ */
226
+ "text" |
223
227
  /**
224
228
  * @see IFormTidyTableHtmlExprFieldDef
225
229
  */
@@ -567,6 +571,9 @@ export interface IFormJsFieldDef extends IFormFieldDef<string> {
567
571
  */
568
572
  export interface IFormJsonFieldDef extends IFormFieldDef<string> {
569
573
  fieldType: "json";
574
+ editorConf?: {
575
+ helpMdFile: string;
576
+ };
570
577
  }
571
578
  /**
572
579
  * @see FormFieldDef
@@ -707,15 +714,22 @@ export interface IFormReportPermaLinkFieldDef extends IFormFieldDef<string> {
707
714
  * @see FormFieldDef
708
715
  */
709
716
  export interface IFormStringFieldDef extends IFormFieldDef<string> {
710
- fieldType: "string" | "url";
717
+ fieldType: "string" | "url" | "text";
711
718
  editorConf?: {
712
719
  /**
713
720
  * A list of possible strings...
714
721
  */
715
722
  suggestions?: string[] | ((callback: ((candidates: string[]) => void), dependsOnValue?: any) => void);
716
723
  copyToClipboard?: boolean;
724
+ /**
725
+ * Show an error if the value is not valid. Return an empty string if the value is valid.
726
+ */
727
+ valueValidator?: (value: any) => string;
717
728
  };
718
729
  }
730
+ export interface IFormTextFieldDef extends IFormFieldDef<string> {
731
+ fieldType: "text";
732
+ }
719
733
  /**
720
734
  * An HTML (markdown) text expression containing tidy table value accessor (e.g., Donut's center text).
721
735
  * The evaluation context is the table.
@@ -1 +1 @@
1
- {"version":3,"file":"PublicTemplateForm.js","sourceRoot":"","sources":["../src/PublicTemplateForm.ts"],"names":[],"mappings":";;;AAuBA,SAAgB,oBAAoB,CAAC,KAAyB;IAC1D,OAAO,KAAK,CAAC,KAAK,KAAK,oBAAoB,CAAC,SAAS,CAAC;AAC1D,CAAC;AAFD,oDAEC;AAyKD,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B,oDAA4B,CAAA;IAC5B,yEAAiD,CAAA;IACjD,sDAA8B,CAAA;AAClC,CAAC,EAJW,oBAAoB,oCAApB,oBAAoB,QAI/B;AAwND,SAAgB,eAAe,CAAC,IAAmB;IAC/C,OAAO,IAAI,KAAK,uBAAuB;WAChC,IAAI,KAAK,mBAAmB;WAC5B,IAAI,KAAK,sBAAsB;WAC/B,IAAI,KAAK,4BAA4B;WACrC,IAAI,KAAK,sBAAsB;WAC/B,IAAI,KAAK,8BAA8B;WACvC,IAAI,KAAK,yBAAyB;WAClC,IAAI,KAAK,kCAAkC;WAC3C,IAAI,KAAK,uBAAuB;WAChC,IAAI,KAAK,mBAAmB;WAC5B,IAAI,KAAK,sBAAsB;WAC/B,IAAI,KAAK,wBAAwB,CACnC;AACT,CAAC;AAdD,0CAcC;AAED,SAAgB,iBAAiB,CAAC,IAAmB;IACjD,OAAO,IAAI,KAAK,uBAAuB;WAChC,IAAI,KAAK,wBAAwB;WACjC,IAAI,KAAK,uBAAuB;WAChC,IAAI,KAAK,sBAAsB;WAC/B,IAAI,KAAK,4BAA4B;WACrC,IAAI,KAAK,kCAAkC;WAC3C,IAAI,KAAK,8BAA8B;WACvC,IAAI,KAAK,yBAAyB,CACpC;AACT,CAAC;AAVD,8CAUC;AAED,SAAgB,oBAAoB,CAAC,IAAmB;IACpD,OAAO,IAAI,KAAK,mBAAmB;WAC5B,IAAI,KAAK,mBAAmB;WAC5B,IAA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B;WAC5B,IAAI,KAAK,sBAAsB,CACjC;AACT,CAAC;AAJD,0DAIC;AAED,SAAgB,sBAAsB,CAAC,IAAmB;IACtD,OAAO,IAAI,KAAK,sBAAsB;WAC/B,IAAI,KAAK,4BAA4B;WACrC,IAAI,KAAK,yBAAyB,CACpC;AACT,CAAC;AALD,wDAKC;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,yCAAzB,yBAAyB,QAKpC;AAED;;GAEG;AACH,IAAY,mBAEX;AAFD,WAAY,mBAAmB;IAC3B,8CAAuB,CAAA;AAC3B,CAAC,EAFW,mBAAmB,mCAAnB,mBAAmB,QAE9B;AAg+BD;;GAEG;AAEH,IAAY,wBAMX;AAND,WAAY,wBAAwB;IAChC,6CAAiB,CAAA;IACjB,yDAA6B,CAAA;IAC7B,qEAAyC,CAAA;IACzC,yDAA6B,CAAA;IAC7B,qEAAyC,CAAA;AAC7C,CAAC,EANW,wBAAwB,wCAAxB,wBAAwB,QAMnC"}
@@ -19,7 +19,9 @@ 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 { AIWidgetChatBotOptions } from "./theme/ThemeAIWidgetChatBot";
22
23
  interface IWidgetTemplateChartOptions {
24
+ "ic3.AIChatBox": AIWidgetChatBotOptions;
23
25
  "ic3.DatePicker": DatePickerChartOptions;
24
26
  "ic3.EmbeddedReport": EmbeddedReportChartOptions;
25
27
  "ic3.FilterAutocomplete": FilterAutocompleteChartOptions;
@@ -42,6 +42,8 @@ import { WidgetFilteredByClassesKey } from "./theme/ThemeWidgetFilteredBy";
42
42
  import { IUserMenuOptions, IWidgetBoxIconsDefinition } from "./ITypes";
43
43
  import { Ic3TableCellProps, ThemeIc3TableCellClassesKey } from "./theme/ThemeIc3TableCell";
44
44
  import { RegexFilterClassesKey, RegexFilterProps } from "./theme/ThemeRegexFilter";
45
+ import { AIWidgetChatBotClassKey, AIWidgetChatBotStyleProps } from "./theme/ThemeAIWidgetChatBot";
46
+ import { FilterPanelViewsMenuClassesKey } from "./theme/ThemeFilterPanelViewsMenu";
45
47
  export type Ic3ChartVariants = {
46
48
  [Name in keyof WidgetTemplateChartOptions]?: Array<{
47
49
  props: {
@@ -437,6 +439,9 @@ export interface ic3Theme {
437
439
  options?: google.maps.MapOptions;
438
440
  markerClustererOptions?: MarkerClustererOptions;
439
441
  };
442
+ drilldown?: {
443
+ disableDrilldownInTitle?: boolean;
444
+ };
440
445
  userMenu: {
441
446
  disableUserMenuEdition: boolean;
442
447
  userMenuFilter?: (options: IUserMenuOptions[], templateDef?: IPublicWidgetTemplateDefinition<any>) => IUserMenuOptions[];
@@ -543,13 +548,17 @@ export interface ic3Theme {
543
548
  */
544
549
  filterState?: {
545
550
  /**
546
- * Set to true to disable auto save for all dashboards and make the option inactive.
551
+ * Set to true to disable auto save for all dashboards/apps and make the option inactive.
547
552
  */
548
553
  disableFilterStateOption?: boolean;
549
554
  /**
550
- * The default value for auto-saving filter setting.
555
+ * The default value for auto-saving filter setting in the dashboards.
551
556
  */
552
557
  autosaveFilterStateToSessionStorage?: boolean;
558
+ /**
559
+ * The default value for auto-saving filter setting in the application filter panel.
560
+ */
561
+ autosaveReportAppFilterStateToSessionStorage?: boolean;
553
562
  };
554
563
  }
555
564
  export interface ic3ThemeOptions {
@@ -717,6 +726,10 @@ interface IWidgetIcons extends IWidgetBoxIconsDefinition {
717
726
  disableWidgetIconsEdition?: boolean;
718
727
  }
719
728
  interface ic3BaseComponents {
729
+ AIWidgetChatBot?: {
730
+ styleOverrides?: ComponentsOverrides["AIWidgetChatBot"];
731
+ variants?: ComponentsVariants["AIWidgetChatBot"];
732
+ };
720
733
  AlertDialog?: {
721
734
  styleOverrides?: ComponentsOverrides["AlertDialog"];
722
735
  };
@@ -884,7 +897,8 @@ interface ic3BaseComponents {
884
897
  };
885
898
  }
886
899
  /**
887
- * For Typing purpose extending MUI Theme with ic3 components
900
+ * For Typing purpose extending MUI Theme with ic3 components.
901
+ * @deprecated Please use `Components` with `import { Components } from "@mui/material/styles";`.
888
902
  */
889
903
  export interface ic3Components extends ic3BaseComponents, Components {
890
904
  }
@@ -929,6 +943,7 @@ declare module '@mui/material/styles/components' {
929
943
  }
930
944
  declare module '@mui/material/styles/overrides' {
931
945
  interface ComponentNameToClassKey {
946
+ AIWidgetChatBot: AIWidgetChatBotClassKey;
932
947
  AlertDialog: AlertDialogClassKey;
933
948
  App: AppClassKey;
934
949
  ErrorRenderer: ErrorRendererClassKey;
@@ -936,6 +951,7 @@ declare module '@mui/material/styles/overrides' {
936
951
  FilterButtons: FilterButtonsClassKey;
937
952
  LazyTreeViewStyled: LazyTreeClassesClassKey;
938
953
  FilterPanel: FilterPanelClassesKey;
954
+ FilterPanelViewsMenu: FilterPanelViewsMenuClassesKey;
939
955
  RegexFilter: RegexFilterClassesKey;
940
956
  FilterSlider: FilterSliderClassKey;
941
957
  ListCounter: ListCounterClassKey;
@@ -964,6 +980,7 @@ declare module '@mui/material/styles/overrides' {
964
980
  }
965
981
  declare module '@mui/material/styles/props' {
966
982
  interface ComponentsPropsList {
983
+ AIWidgetChatBot: AIWidgetChatBotStyleProps;
967
984
  FilterCheckbox: FilterCheckboxProps;
968
985
  FilterButtons: FilterButtonsProps;
969
986
  LazyTreeViewStyled: LazyTreeProps;
@@ -1 +1 @@
1
- {"version":3,"file":"PublicTheme.js","sourceRoot":"","sources":["../src/PublicTheme.ts"],"names":[],"mappings":";;;AA0JA,SAAgB,yBAAyB,CAAC,CAAqE;IAC3G,OAAO,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAG,SAAS,CAAC,KAAI,IAAI,CAAC;AAClC,CAAC;AAFD,8DAEC;AA6RD,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC7B,8CAAqB,CAAA;IACrB,4CAAmB,CAAA;IACnB,wCAAe,CAAA;AACnB,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC"}
1
+ {"version":3,"file":"PublicTheme.js","sourceRoot":"","sources":["../src/PublicTheme.ts"],"names":[],"mappings":";;;AA4JA,SAAgB,yBAAyB,CAAC,CAAqE;IAC3G,OAAO,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAG,SAAS,CAAC,KAAI,IAAI,CAAC;AAClC,CAAC;AAFD,8DAEC;AA6RD,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC7B,8CAAqB,CAAA;IACrB,4CAAmB,CAAA;IACnB,wCAAe,CAAA;AACnB,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC"}
@@ -0,0 +1,48 @@
1
+ import { FormFieldObject } from "../PublicTemplateForm";
2
+ export declare class AIWidgetChatBotClasses {
3
+ static root: string;
4
+ static messages: string;
5
+ static message: string;
6
+ static messageIcon: string;
7
+ static messageContent: string;
8
+ static messageOngoing: string;
9
+ static input: string;
10
+ static inputText: string;
11
+ static inputClick: string;
12
+ static footer: string;
13
+ static warning: string;
14
+ static reset: string;
15
+ }
16
+ export declare type AIWidgetChatBotClassKey = keyof AIWidgetChatBotClasses;
17
+ /**
18
+ * AI ChatBox Options (fields of the "Chart" tab in the widget editor).
19
+ *
20
+ * <pre>
21
+ * Plugin ID : ic3
22
+ * Widget/Template ID: AIWidgetChatBot
23
+ * </pre>
24
+ *
25
+ * @see WidgetTemplateChartOptions
26
+ */
27
+ export interface AIWidgetChatBotOptions extends FormFieldObject {
28
+ variant: AIWidgetChatBotVariant;
29
+ /**
30
+ * The widget this chatbot is talking about.
31
+ */
32
+ targetWidgetId: string;
33
+ initialQuestion?: string;
34
+ /**
35
+ * In this mode, only the initial question is being sent.
36
+ */
37
+ frozen?: true;
38
+ tableDataMaxRow?: number;
39
+ tableDataCaptionPage0?: string;
40
+ model?: string;
41
+ systemPrompt?: string;
42
+ initialPrompt?: string;
43
+ initialPromptPage0?: string;
44
+ }
45
+ export type AIWidgetChatBotVariant = "plain";
46
+ export interface AIWidgetChatBotStyleProps {
47
+ variant: AIWidgetChatBotVariant;
48
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AIWidgetChatBotClasses = void 0;
4
+ class AIWidgetChatBotClasses {
5
+ }
6
+ exports.AIWidgetChatBotClasses = AIWidgetChatBotClasses;
7
+ AIWidgetChatBotClasses.root = "ic3AIWidgetChatBot-root";
8
+ AIWidgetChatBotClasses.messages = "ic3AIWidgetChatBot-messages";
9
+ AIWidgetChatBotClasses.message = "ic3AIWidgetChatBot-message";
10
+ AIWidgetChatBotClasses.messageIcon = "ic3AIWidgetChatBot-messageIcon";
11
+ AIWidgetChatBotClasses.messageContent = "ic3AIWidgetChatBot-messageContent";
12
+ AIWidgetChatBotClasses.messageOngoing = "ic3AIWidgetChatBot-messageOngoing";
13
+ AIWidgetChatBotClasses.input = "ic3AIWidgetChatBot-input";
14
+ AIWidgetChatBotClasses.inputText = "ic3AIWidgetChatBot-inputText";
15
+ AIWidgetChatBotClasses.inputClick = "ic3AIWidgetChatBot-inputClick";
16
+ AIWidgetChatBotClasses.footer = "ic3AIWidgetChatBot-footer";
17
+ AIWidgetChatBotClasses.warning = "ic3AIWidgetChatBot-warning";
18
+ AIWidgetChatBotClasses.reset = "ic3AIWidgetChatBot-reset";
19
+ //# sourceMappingURL=ThemeAIWidgetChatBot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeAIWidgetChatBot.js","sourceRoot":"","sources":["../../src/theme/ThemeAIWidgetChatBot.ts"],"names":[],"mappings":";;;AAEA,MAAa,sBAAsB;;AAAnC,wDA0BC;AAxBiB,2BAAI,GAAG,yBAAyB,CAAC;AAEjC,+BAAQ,GAAG,6BAA6B,CAAC;AAEzC,8BAAO,GAAG,4BAA4B,CAAC;AAEvC,kCAAW,GAAG,gCAAgC,CAAC;AAE/C,qCAAc,GAAG,mCAAmC,CAAC;AAErD,qCAAc,GAAG,mCAAmC,CAAC;AAErD,4BAAK,GAAG,0BAA0B,CAAC;AAEnC,gCAAS,GAAG,8BAA8B,CAAC;AAE3C,iCAAU,GAAG,+BAA+B,CAAC;AAE7C,6BAAM,GAAG,2BAA2B,CAAC;AAErC,8BAAO,GAAG,4BAA4B,CAAC;AAEvC,4BAAK,GAAG,0BAA0B,CAAC"}
@@ -1527,7 +1527,8 @@ export interface Am4ScatterSeriesOptions extends FormFieldObject, IStrokeStylePr
1527
1527
  export interface Am4ChartOptions extends FormFieldObject {
1528
1528
  widgetVariant?: string;
1529
1529
  /**
1530
- * In-place processing of the amCharts 4 chart instance.
1530
+ * Hook to change the chart series, axes and other components. This hook is called for each data or options update
1531
+ * and after all the component have updated. You can use it to change the settings in the chart.
1531
1532
  *
1532
1533
  * <pre>
1533
1534
  * ( value: PublicAmchartsBase<amcharts4.Chart, options> ) => void;
@@ -1538,7 +1539,7 @@ export interface Am4ChartOptions extends FormFieldObject {
1538
1539
  */
1539
1540
  postRenderHook?: Hook<PublicAmCharts4Base<any, any>, any>;
1540
1541
  /**
1541
- * Called after the chart is created.
1542
+ * Called once, directly after the chart is created.
1542
1543
  *
1543
1544
  * <pre>
1544
1545
  * ( chart: amcharts4.Chart, options: Am4ChartOptions ) => void;
@@ -1577,7 +1578,7 @@ export type AmCharts4BubbleChartOptions = Am4SecondValueAxisOptions & Am4ValueAx
1577
1578
  /**
1578
1579
  * The corresponding AmCharts 4 chart class is XYChart.
1579
1580
  */
1580
- export type AmCharts4ComboChartOptions = Am4CategoryDateAxisOptions & Am4ValueAxisOptions & Am4SecondValueAxisOptions & Am4ComboSeriesOptions & Am4LegendOptions & Am4ChartCursorOptions & Am4ScrollbarOptions & Am4ChartOptions & Am4ValueLabelOptions & Am4SecondValueLabelOptions;
1581
+ export type AmCharts4ComboChartOptions = Am4CategoryDateAxisOptions & Am4ValueAxisOptions & Am4SecondValueAxisOptions & Am4ComboSeriesOptions & Am4LegendOptions & Am4ChartCursorOptions & Am4ScrollbarOptions & Am4ChartOptions & Am4ValueLabelOptions & Am4SecondValueLabelOptions & Am4ValueAxisRangeOptions;
1581
1582
  export type AmCharts4CoordinateChartOptions = Am4TrendLineOptions;
1582
1583
  /**
1583
1584
  * The corresponding AmCharts 4 chart class is XYChart.
@@ -7,9 +7,13 @@ export declare enum TableColumnSizing {
7
7
  }
8
8
  export interface BaseTableChartOptions extends FormFieldObject {
9
9
  /**
10
- * If active, the color defined in the Tidy Table are applied to the table
10
+ * If active, the color defined in the Tidy Table are applied to the table.
11
11
  */
12
12
  applyHeaderColorDecoration?: boolean;
13
+ /**
14
+ * If enabled, show tooltips on every cell in the table (excluding renderers). Default = true.
15
+ */
16
+ cellTooltips: boolean;
13
17
  /**
14
18
  * Row Height.
15
19
  */
@@ -38,6 +38,12 @@ export declare enum DatePickerRangeDirection {
38
38
  * @see WidgetTemplateChartOptions
39
39
  */
40
40
  export interface DatePickerChartOptions extends FormFieldObject {
41
+ /**
42
+ * Variant.
43
+ *
44
+ * Allows for selecting a set of preset options. Note that a variant is possibly overriding defined options.
45
+ */
46
+ variant?: string;
41
47
  /**
42
48
  * The label content (i.e Date)
43
49
  */
@@ -196,6 +202,10 @@ interface IShortcut<D, T> {
196
202
  export type DatePickerShortcut<T = any> = IShortcut<T, T | null>;
197
203
  export type DateRangePickerShortcut<T = any> = IShortcut<T, [T | null, T | null]>;
198
204
  export interface FilterDatePickerProps {
205
+ /**
206
+ * Variant defined in the theme. If the theme has variants, then the user can select one.
207
+ */
208
+ variant?: string;
199
209
  }
200
210
  export declare enum InitialDateFrom {
201
211
  MANUAL_DATES = "manual",
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeDatePicker.js","sourceRoot":"","sources":["../../src/theme/ThemeDatePicker.ts"],"names":[],"mappings":";;;AAIA,4BAA4B;AAC5B,MAAa,iBAAiB;;AAA9B,8CA0BC;AAxBG;;GAEG;AACa,sBAAI,GAAG,oBAAoB,CAAC;AAE5C;;GAEG;AACa,2BAAS,GAAG,yBAAyB,CAAC;AAGtC,8BAAY,GAAG,6BAA6B,CAAC;AAE7C,iCAAe,GAAG,gCAAgC,CAAC;AAEnE;;GAEG;AACa,gCAAc,GAAG,8BAA8B,CAAC;AAEhE;;GAEG;AACa,+BAAa,GAAG,6BAA6B,CAAC;AAKlE,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAChC,yCAAa,CAAA;IACb,qDAAyB,CAAA;IACzB,iDAAqB,CAAA;AACzB,CAAC,EAJW,wBAAwB,wCAAxB,wBAAwB,QAInC;AAkND,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,0CAAuB,CAAA;IACvB,wCAAqB,CAAA;AACzB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B"}
1
+ {"version":3,"file":"ThemeDatePicker.js","sourceRoot":"","sources":["../../src/theme/ThemeDatePicker.ts"],"names":[],"mappings":";;;AAIA,4BAA4B;AAC5B,MAAa,iBAAiB;;AAA9B,8CA0BC;AAxBG;;GAEG;AACa,sBAAI,GAAG,oBAAoB,CAAC;AAE5C;;GAEG;AACa,2BAAS,GAAG,yBAAyB,CAAC;AAGtC,8BAAY,GAAG,6BAA6B,CAAC;AAE7C,iCAAe,GAAG,gCAAgC,CAAC;AAEnE;;GAEG;AACa,gCAAc,GAAG,8BAA8B,CAAC;AAEhE;;GAEG;AACa,+BAAa,GAAG,6BAA6B,CAAC;AAKlE,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAChC,yCAAa,CAAA;IACb,qDAAyB,CAAA;IACzB,iDAAqB,CAAA;AACzB,CAAC,EAJW,wBAAwB,wCAAxB,wBAAwB,QAInC;AA8ND,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,0CAAuB,CAAA;IACvB,wCAAqB,CAAA;AACzB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B"}
@@ -20,10 +20,30 @@ export declare class FilterPanelClasses {
20
20
  * Div containing the 'Filters' text
21
21
  */
22
22
  static readonly titleDivText = "ic3FilterPanel-title-text";
23
+ /**
24
+ * The help button next to the filter panel title
25
+ */
26
+ static readonly titleDivButtons = "ic3FilterPanel-title-buttons";
27
+ /**
28
+ * Icon to make the filter panel collapsed (only available on App Left Panel)
29
+ */
30
+ static readonly collapsibleIcon = "ic3FilterPanel-collapsibleIcon";
31
+ /**
32
+ * Help icon
33
+ */
34
+ static readonly helpIcon = "ic3FilterPanel-helpIcon";
35
+ /**
36
+ * Menu icon for filter panel views.
37
+ */
38
+ static readonly menuIcon = "ic3FilterPanel-menuIcon";
23
39
  /**
24
40
  * Div containing the add and remove all buttons
25
41
  */
26
42
  static readonly headerDivButtons = "ic3FilterPanel-header-buttons";
43
+ /**
44
+ * alert
45
+ */
46
+ static readonly alert = "ic3FilterPanel-alert";
27
47
  /**
28
48
  * Add button
29
49
  */
@@ -65,6 +85,10 @@ export declare class FilterPanelClasses {
65
85
  * Classname for the TextField component
66
86
  */
67
87
  static readonly inputField = "ic3FilterPanel-filterInputfield";
88
+ /**
89
+ * Classname for the checkmark 'set' button.
90
+ */
91
+ static readonly inputFieldSetValueButton = "ic3FilterPanel-inputFieldSetValueButton";
68
92
  static readonly dateTimePicker = "ic3FilterPanel-dateTimePicker";
69
93
  /**
70
94
  * A div with the displayed values for the value selector in preview mode
@@ -75,13 +99,14 @@ export declare class FilterPanelClasses {
75
99
  */
76
100
  static readonly fieldName = "ic3FilterPanel-fieldName";
77
101
  /**
78
- * Div with selectable items for filters with few items
102
+
103
+ * Classname for the field label
79
104
  */
80
- static readonly selectableContent = "ic3FilterPanel-selectableContent";
105
+ static readonly fieldNameExtra = "ic3FilterPanel-fieldName-extra";
81
106
  /**
82
- * Icon to make the filter panel collapsed (only available on App Left Panel)
107
+ * Div with selectable items for filters with few items
83
108
  */
84
- static readonly collapsibleIcon = "ic3FilterPanel-collapsibleIcon";
109
+ static readonly selectableContent = "ic3FilterPanel-selectableContent";
85
110
  /**
86
111
  * Div when it is collapsed
87
112
  */
@@ -157,6 +182,10 @@ export interface FilterPanelChartOptions extends FormFieldObject {
157
182
  * Easily change by clicking 'Set Default Filters' in the user menu of the widget header.
158
183
  */
159
184
  initialFilterConfig?: string;
185
+ /**
186
+ * Allow users to save and load filters. Filters are stored in the users' browser.
187
+ */
188
+ enableViews?: boolean;
160
189
  /**
161
190
  * If true, grow filter in row direction. If false, grow in column direction.
162
191
  */
@@ -24,10 +24,30 @@ FilterPanelClasses.titleDiv = "ic3FilterPanel-title";
24
24
  * Div containing the 'Filters' text
25
25
  */
26
26
  FilterPanelClasses.titleDivText = "ic3FilterPanel-title-text";
27
+ /**
28
+ * The help button next to the filter panel title
29
+ */
30
+ FilterPanelClasses.titleDivButtons = "ic3FilterPanel-title-buttons";
31
+ /**
32
+ * Icon to make the filter panel collapsed (only available on App Left Panel)
33
+ */
34
+ FilterPanelClasses.collapsibleIcon = "ic3FilterPanel-collapsibleIcon";
35
+ /**
36
+ * Help icon
37
+ */
38
+ FilterPanelClasses.helpIcon = "ic3FilterPanel-helpIcon";
39
+ /**
40
+ * Menu icon for filter panel views.
41
+ */
42
+ FilterPanelClasses.menuIcon = "ic3FilterPanel-menuIcon";
27
43
  /**
28
44
  * Div containing the add and remove all buttons
29
45
  */
30
46
  FilterPanelClasses.headerDivButtons = "ic3FilterPanel-header-buttons";
47
+ /**
48
+ * alert
49
+ */
50
+ FilterPanelClasses.alert = "ic3FilterPanel-alert";
31
51
  /**
32
52
  * Add button
33
53
  */
@@ -69,6 +89,10 @@ FilterPanelClasses.filterItemRemoveButton = "ic3FilterPanel-ItemRemoveButton";
69
89
  * Classname for the TextField component
70
90
  */
71
91
  FilterPanelClasses.inputField = "ic3FilterPanel-filterInputfield";
92
+ /**
93
+ * Classname for the checkmark 'set' button.
94
+ */
95
+ FilterPanelClasses.inputFieldSetValueButton = "ic3FilterPanel-inputFieldSetValueButton";
72
96
  FilterPanelClasses.dateTimePicker = "ic3FilterPanel-dateTimePicker";
73
97
  /**
74
98
  * A div with the displayed values for the value selector in preview mode
@@ -79,13 +103,14 @@ FilterPanelClasses.inputFieldPreviewValues = "ic3FilterPanel-PreviewValue";
79
103
  */
80
104
  FilterPanelClasses.fieldName = "ic3FilterPanel-fieldName";
81
105
  /**
82
- * Div with selectable items for filters with few items
106
+
107
+ * Classname for the field label
83
108
  */
84
- FilterPanelClasses.selectableContent = "ic3FilterPanel-selectableContent";
109
+ FilterPanelClasses.fieldNameExtra = "ic3FilterPanel-fieldName-extra";
85
110
  /**
86
- * Icon to make the filter panel collapsed (only available on App Left Panel)
111
+ * Div with selectable items for filters with few items
87
112
  */
88
- FilterPanelClasses.collapsibleIcon = "ic3FilterPanel-collapsibleIcon";
113
+ FilterPanelClasses.selectableContent = "ic3FilterPanel-selectableContent";
89
114
  /**
90
115
  * Div when it is collapsed
91
116
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeFilterPanel.js","sourceRoot":"","sources":["../../src/theme/ThemeFilterPanel.ts"],"names":[],"mappings":";;;AAEA,MAAa,kBAAkB;;AAA/B,gDA8GC;AA7GG;;GAEG;AACa,0BAAO,GAAG,qBAAqB,CAAC;AAEhD;;GAEG;AACa,6BAAU,GAAG,wBAAwB,CAAC;AAEt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
+ export declare class FilterPanelViewsMenuClasses {
2
+ static readonly save = "ic3FilterPanelViewsMenu-save";
3
+ static readonly view = "ic3FilterPanelViewsMenu-view";
4
+ }
5
+ export declare type FilterPanelViewsMenuClassesKey = keyof FilterPanelViewsMenuClasses;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FilterPanelViewsMenuClasses = void 0;
4
+ class FilterPanelViewsMenuClasses {
5
+ }
6
+ exports.FilterPanelViewsMenuClasses = FilterPanelViewsMenuClasses;
7
+ FilterPanelViewsMenuClasses.save = "ic3FilterPanelViewsMenu-save";
8
+ FilterPanelViewsMenuClasses.view = "ic3FilterPanelViewsMenu-view";
9
+ //# sourceMappingURL=ThemeFilterPanelViewsMenu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeFilterPanelViewsMenu.js","sourceRoot":"","sources":["../../src/theme/ThemeFilterPanelViewsMenu.ts"],"names":[],"mappings":";;;AAAA,MAAa,2BAA2B;;AAAxC,kEAMC;AAJmB,gCAAI,GAAG,8BAA8B,CAAC;AAEtC,gCAAI,GAAG,8BAA8B,CAAC"}
@@ -3,4 +3,8 @@ export declare class ThemeIc3TableCellClasses {
3
3
  export declare type ThemeIc3TableCellClassesKey = keyof ThemeIc3TableCellClasses;
4
4
  export interface Ic3TableCellProps {
5
5
  align?: 'left' | 'right' | 'center';
6
+ /**
7
+ * True if and only if the cell has a cell-renderer.
8
+ */
9
+ hasRenderer?: boolean;
6
10
  }
@@ -94,6 +94,12 @@ export interface KpiCartChartOptions extends SparkChartOptionsMeta {
94
94
  * Display the trend icon?
95
95
  */
96
96
  includeTrendIcon: boolean;
97
+ /**
98
+ * Delta for zero value
99
+ *
100
+ * If the target value is below this delta value it is considered as a delta value (rounding issue)
101
+ */
102
+ deltaZero?: number;
97
103
  /**
98
104
  * Icon.
99
105
  *
@@ -12,7 +12,7 @@ import { FilterPanelChartOptions } from "./ThemeFilterPanel";
12
12
  */
13
13
  export interface SinglePanelFilterChartOptions extends FormFieldObject, Pick<FilterPanelChartOptions, "variant" | "initialFilterConfig" | "measureMdx" | "useSimpleFilterCutoff" | "useSimpleFilterCutoff" | "allowedOperatorsConfig" | "datePickerShortcuts"> {
14
14
  /**
15
- * The ID of the level / hierarchy that is used in the filter.
15
+ * The ID of the level / hierarchy that is used in the filter. Equal to `IPGFilterItem.fieldId`.
16
16
  */
17
17
  levelId: string;
18
18
  }
@@ -47,10 +47,34 @@ export declare class WidgetBoxClasses {
47
47
  * Styles applied to the widgetBox header element
48
48
  */
49
49
  static readonly header: string;
50
+ /**
51
+ * Styles applied to the widgetBox header left element ( title and drilldown )
52
+ */
53
+ static readonly headerLeft: string;
54
+ /**
55
+ * Styles applied to the widgetBox header right element ( user menu )
56
+ */
57
+ static readonly headerRight: string;
58
+ /**
59
+ * Styles applied to the header element has no title
60
+ */
61
+ static readonly headerNoTitle: string;
62
+ /**
63
+ * Styles applied to the header element container has no title
64
+ */
65
+ static readonly headerNoTitleContainer: string;
50
66
  /**
51
67
  * Styles applied to the widgetBox header Title element
52
68
  */
53
69
  static readonly headerTitle: string;
70
+ /**
71
+ * Styles applied to the widgetBox header Drilldown element
72
+ */
73
+ static readonly headerLeftSeparator: string;
74
+ /**
75
+ * Styles applied to the widgetBox header Drilldown element
76
+ */
77
+ static readonly headerDrilldown: string;
54
78
  /**
55
79
  * Root Styles applied to the widgetBox root element when the box is with header
56
80
  */
@@ -52,10 +52,34 @@ WidgetBoxClasses.userMenu = "ic3WidgetBox-userMenu";
52
52
  * Styles applied to the widgetBox header element
53
53
  */
54
54
  WidgetBoxClasses.header = "ic3WidgetBox-header";
55
+ /**
56
+ * Styles applied to the widgetBox header left element ( title and drilldown )
57
+ */
58
+ WidgetBoxClasses.headerLeft = "ic3WidgetBox-headerLeft";
59
+ /**
60
+ * Styles applied to the widgetBox header right element ( user menu )
61
+ */
62
+ WidgetBoxClasses.headerRight = "ic3WidgetBox-headerRight";
63
+ /**
64
+ * Styles applied to the header element has no title
65
+ */
66
+ WidgetBoxClasses.headerNoTitle = "ic3WidgetBox-headerNoTitle";
67
+ /**
68
+ * Styles applied to the header element container has no title
69
+ */
70
+ WidgetBoxClasses.headerNoTitleContainer = "ic3WidgetBox-headerNoTitleContainer";
55
71
  /**
56
72
  * Styles applied to the widgetBox header Title element
57
73
  */
58
74
  WidgetBoxClasses.headerTitle = "ic3WidgetBox-headerTitle";
75
+ /**
76
+ * Styles applied to the widgetBox header Drilldown element
77
+ */
78
+ WidgetBoxClasses.headerLeftSeparator = "ic3WidgetBox-headerLeftSeparator";
79
+ /**
80
+ * Styles applied to the widgetBox header Drilldown element
81
+ */
82
+ WidgetBoxClasses.headerDrilldown = "ic3WidgetBox-headerDrilldown";
59
83
  /**
60
84
  * Root Styles applied to the widgetBox root element when the box is with header
61
85
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeWidgetBox.js","sourceRoot":"","sources":["../../src/theme/ThemeWidgetBox.ts"],"names":[],"mappings":";;;AAAA,MAAa,gBAAgB;;AAA7B,4CA8FC;AA5FG;;GAEG;AACa,qBAAI,GAAW,cAAc,CAAC;AAG9C;;GAEG;AACa,yBAAQ,GAAW,uBAAuB,CAAC;AAE3D;;GAEG;AACa,yBAAQ,GAAW,uBAAuB,CAAC;AAE3D;;GAEG;AACa,qBAAI,GAAW,mBAAmB,CAAC;AAEnD;;GAEG;AACa,6BAAY,GAAW,2BAA2B,CAAC;AAEnE;;GAEG;AACa,0BAAS,GAAW,wBAAwB,CAAC;AAE7D;;GAEG;AACa,kCAAiB,GAAW,iCAAiC,CAAC;AAE9E;;GAEG;AACa,qCAAoB,GAAW,oCAAoC,CAAC;AAEpF;;GAEG;AACa,wBAAO,GAAW,sBAAsB,CAAC;AAEzD;;GAEG;AACa,4BAAW,GAAW,2BAA2B,CAAC;AAElE;;GAEG;AACa,yBAAQ,GAAW,uBAAuB,CAAC;AAE3D;;GAEG;AACa,uBAAM,GAAW,qBAAqB,CAAC;AAEvD;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AAA;IAC/C,8EAAiD,CAAA;AACrD,CAAC,EAHW,yBAAyB,yCAAzB,yBAAyB,QAGpC;AAED,IAAY,mBAEX;AAFD,WAAY,mBAAmB;IAC3B,sCAAe,CAAA;AACnB,CAAC,EAFW,mBAAmB,mCAAnB,mBAAmB,QAE9B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ic3/reporting-api",
3
- "version": "8.4.11",
3
+ "version": "8.4.13",
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,15 +11,15 @@
11
11
  "access": "public"
12
12
  },
13
13
  "dependencies": {
14
- "@mui/material": "5.15.15",
15
- "@mui/system": "5.15.15",
14
+ "@mui/material": "5.16.1",
15
+ "@mui/system": "5.16.1",
16
16
  "@emotion/react": "11.11.4",
17
17
  "@emotion/styled": "11.11.5"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/markerclustererplus": "2.1.33",
21
- "@types/node": "20.12.7",
22
- "@types/react": "18.3.1",
21
+ "@types/node": "20.14.10",
22
+ "@types/react": "18.3.3",
23
23
  "del-cli": "5.1.0",
24
24
  "typescript": "5.4.5"
25
25
  },