@ic3/reporting-api 8.4.9 → 8.4.10

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.9" || "-", "Fri, 23 Feb 2024 04:36:15 GMT" || "-") }, definition);
11
+ return Object.assign({ apiVersion: new ReportingVersion_1.default("8.4.10" || "-", "Wed, 10 Apr 2024 11:48: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,OAAO,IAAI,GAAG,EACd,+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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AO,CAAC,gBAAgB,IAEvD,CAAC,CAAC,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"}
@@ -6,6 +6,12 @@ export interface IEventPayLoad {
6
6
  event: PublicIcEvent | null | undefined;
7
7
  }
8
8
  export interface IOnNewEventJsContext {
9
+ isAppConsole(): boolean;
10
+ isAppReportViewer(): boolean;
11
+ isAppReportEditor(): boolean;
12
+ isAppReportEditorPreview(): boolean;
13
+ isAppReportAppEditor(): boolean;
14
+ isAppGadgetEditor(): boolean;
9
15
  /**
10
16
  * A context cache that persist over calls.
11
17
  */
@@ -25,6 +25,12 @@ export declare enum IContentMessageType {
25
25
  }
26
26
  export interface IPublicContext {
27
27
  logger(): ILogger;
28
+ isAppConsole(): boolean;
29
+ isAppReportViewer(): boolean;
30
+ isAppReportEditor(): boolean;
31
+ isAppReportEditorPreview(): boolean;
32
+ isAppReportAppEditor(): boolean;
33
+ isAppGadgetEditor(): boolean;
28
34
  /**
29
35
  * React, returns true when loaded
30
36
  */
@@ -51,7 +57,7 @@ export interface IPublicContext {
51
57
  *
52
58
  * aka content localization
53
59
  */
54
- translateContent(content: string): string;
60
+ translateContent(content: string, ...args: any[]): string;
55
61
  /**
56
62
  * localized report application tags (e.g. edit, write, save.. )
57
63
  */
@@ -1,29 +1,41 @@
1
1
  type DateType = any;
2
- export interface PublicDateShortcutUtils {
2
+ export interface PublicDateShortcutUtils<T = DateType> {
3
3
  /**
4
4
  * Get a date. See documentation for `new Date(…)` for the year, month and day arguments.
5
5
  */
6
- asDate(year: number, month: number, day: number): DateType;
6
+ asDate(year: number, month: number, day: number): T;
7
7
  /**
8
8
  * Return the current datetime.
9
9
  */
10
- now(): DateType;
10
+ now(): T;
11
11
  /**
12
12
  * Return the current date. Returns the anchor date if it exists. The date returned has time 00:00:00.
13
13
  * To get the date and time, use `current()`.
14
14
  */
15
- currentDate(): DateType;
15
+ currentDate(): T;
16
16
  /**
17
17
  * Return the current datetime. Returns the anchor datetime if it exists.
18
18
  */
19
- current(): DateType;
19
+ current(): T;
20
20
  /**
21
21
  * Returns the anchor date.
22
22
  */
23
- getAnchorDate(): DateType | null;
23
+ getAnchorDate(): T | null;
24
24
  /**
25
25
  * Return the date of today with the time 00:00:00. To get the date and time, use `now()`.
26
26
  */
27
- today(): DateType;
27
+ today(): T;
28
+ /**
29
+ * Get the bottom limit of the allowed date range (included). Returns `null` if no bottom limit.
30
+ */
31
+ minAllowedDate(): T | null;
32
+ /**
33
+ * Get the upper limit of the allowed date range (included). Returns `null` if no upper limit.
34
+ */
35
+ maxAllowedDate(): T | null;
36
+ /**
37
+ * Returns intersect of `range` and [minDate, maxDate].
38
+ */
39
+ clampDates(range: [T | null, T | null]): [T | null, T | null];
28
40
  }
29
41
  export {};
@@ -163,6 +163,7 @@ export interface IPageHeaderFooterDefinition {
163
163
  left?: IPageHeaderFooterPartDefinition;
164
164
  center?: IPageHeaderFooterPartDefinition;
165
165
  right?: IPageHeaderFooterPartDefinition;
166
+ printOnly?: true;
166
167
  }
167
168
  /**
168
169
  * E.g., size, orientation, ...
@@ -7,7 +7,7 @@ import { ReactElement } from "react";
7
7
  import { Theme } from "@mui/material/styles";
8
8
  import { WidgetTemplateChartOptions, WidgetTemplateIDs } from "./PublicTemplates";
9
9
  import { ChartTemplateDataMapping, IFormFieldGranularityItem } from "./PublicTidyTableTypes";
10
- import { ResizingConstraintOptions } from "./theme/ThemeWidgetBox";
10
+ import { PositionModeOptions, ResizingConstraintOptions } from "./theme/ThemeWidgetBox";
11
11
  import { QueryType } from "./ITypes";
12
12
  import { ILogger } from "./Logger";
13
13
  export interface IRectanglePosition {
@@ -92,6 +92,7 @@ export interface IWidgetLayoutInfo extends IRectangle {
92
92
  gridLayoutInfo?: IWidgetBoxGridLayoutInfo;
93
93
  data?: IWidgetLayoutData;
94
94
  resizingConstraint?: ResizingConstraintOptions;
95
+ positionMode?: PositionModeOptions;
95
96
  /**
96
97
  * When _ printing _, the widget's layout has been converted and this scale has been applied to compute
97
98
  * the new widget size.
@@ -510,6 +511,10 @@ interface IPublicCommonWidgetTemplateDefinition<OPTIONS extends FormFieldObject>
510
511
  * @param ownProps
511
512
  */
512
513
  getShowHideDataTable?: (table: ITidyTable | undefined, options: OPTIONS, ownProps: any, theme: Theme) => ITidyTable | undefined;
514
+ /**
515
+ * For lazy filters or widgets with selection do not clean initial Selection based on initial tidy table
516
+ */
517
+ doNotCleanSelectionOnInitialProps?: true;
513
518
  }
514
519
  /**
515
520
  * *********************************************************************************************************************
@@ -1 +1 @@
1
- {"version":3,"file":"PublicTemplate.js","sourceRoot":"","sources":["../src/PublicTemplate.ts"],"names":[],"mappings":";;;AAqIA,IAAY,4CAIX;AAJD,WAAY,4CAA4C;IACpD,qEAAqB,CAAA;IACrB,yEAAyB,CAAA;IACzB,2EAA2B,CAAA;AAC/B,CAAC,EAJW,4CAA4C,4DAA5C,4CAA4C,QAIvD;AAmfD;;;;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;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,7 +1,7 @@
1
1
  import { IPublicContext, IWidgetEditorPublicContext } from "./PublicContext";
2
2
  import { ITidyColumn } from "./PublicTidyColumn";
3
3
  import * as React from "react";
4
- import { AutocompleteRenderInputParams, AutocompleteRenderOptionState } from "@mui/material/Autocomplete/Autocomplete";
4
+ import { AutocompleteProps, AutocompleteRenderInputParams, AutocompleteRenderOptionState } from "@mui/material/Autocomplete/Autocomplete";
5
5
  import { ChartTemplateDataMapping, IFormFieldGranularityItem, TidyColumnsType, TidyTableColumnSelector } from "./PublicTidyTableTypes";
6
6
  import { ITidyTable } from "./PublicTidyTable";
7
7
  import { Theme } from "@mui/material/styles";
@@ -382,6 +382,7 @@ export interface IFormAutocompleteFieldDef<OPTION> extends IFormFieldDef<OPTION>
382
382
  renderInput?: (params: AutocompleteRenderInputParams) => React.ReactNode;
383
383
  renderOption?: (props: React.HTMLAttributes<HTMLLIElement>, option: OPTION, state: AutocompleteRenderOptionState, onClose: () => void) => React.ReactNode;
384
384
  disableClearable?: boolean;
385
+ renderTags?: AutocompleteProps<OPTION, any, any, any>['renderTags'];
385
386
  };
386
387
  }
387
388
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"PublicTempl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,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;AAi9BD;;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"}
@@ -538,6 +538,19 @@ export interface ic3Theme {
538
538
  rangePickerShortcuts: DateRangePickerShortcut[];
539
539
  }>;
540
540
  };
541
+ /**
542
+ * Options for saving the state of all dashboard filters into local storage.
543
+ */
544
+ filterState?: {
545
+ /**
546
+ * Set to true to disable auto save for all dashboards and make the option inactive.
547
+ */
548
+ disableFilterStateOption?: boolean;
549
+ /**
550
+ * The default value for auto-saving filter setting.
551
+ */
552
+ autosaveFilterStateToSessionStorage?: boolean;
553
+ };
541
554
  }
542
555
  export interface ic3ThemeOptions {
543
556
  /**
@@ -607,6 +620,10 @@ export interface ic3ThemeOptions {
607
620
  * Default values (e.g., box options, chart options, etc...).
608
621
  */
609
622
  widgetDefaults?: IThemeWidgetDefaults;
623
+ /**
624
+ * Settings for the filter state.
625
+ */
626
+ filterState?: Partial<ic3Theme['filterState']>;
610
627
  /**
611
628
  * A scale applied to the widget content when rendered for printing.
612
629
  * Defaulted to 0.64.
@@ -1 +1 @@
1
- {"version":3,"file":"PublicTheme.js","sourceRoot":"","sources":["../src/PublicTheme.ts"],"names":[],"mappings":";;;AAwJA,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":";;;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"}
@@ -269,7 +269,7 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
269
269
  */
270
270
  findFirst<P>(callback: (idx: number) => P | undefined): P | undefined;
271
271
  /**
272
- * returns true if the column as a property defining the formatted value
272
+ * returns true if the column as a property defining the formatted value.
273
273
  */
274
274
  hasFormattedValue(): boolean;
275
275
  /**
@@ -291,7 +291,7 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
291
291
  getFormattedValueOrValue(idx: number, context?: IPublicContext): string | undefined;
292
292
  getNumberFormatInfo(): string | undefined;
293
293
  /**
294
- * Get cell as expected by xlsx library (do not include the interface as it's lazy loaded !)
294
+ * Get cell as expected by XLSX library (do not include the interface as it is lazy loaded!).
295
295
  * Does not return the format string.
296
296
  *
297
297
  * @param idx the position to return the value of.
@@ -306,15 +306,16 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
306
306
  */
307
307
  getXGridType(): "string" | "number" | "date" | "dateTime" | "boolean" | undefined;
308
308
  /**
309
- * Return the cell decoration of the column
309
+ * Return the cell decoration of the column at `rowIdx`. If the cell has multiple renderers, this method returns
310
+ * the last added one.
310
311
  */
311
- getCellDecoration(): PublicTidyColumnCellDecoration | undefined;
312
+ getCellDecoration(rowIdx: number): PublicTidyColumnCellDecorationRendered | undefined;
312
313
  /**
313
314
  * Returns true if the column has a property of requested name.
314
315
  */
315
316
  hasProperty(name: ITidyColumnNamedProperties | string): boolean;
316
317
  /**
317
- * Returns true if the column has color property or is a color column
318
+ * Returns true if the column has color property or is a color column.
318
319
  */
319
320
  hasColorProperty(): boolean;
320
321
  /**
@@ -342,7 +343,8 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
342
343
  */
343
344
  getOptionalProperty(name: ITidyColumnNamedProperties | string): ITidyUnknownColumn | undefined;
344
345
  /**
345
- * Get the value of the property for the given property coordinate and the given row (undefined if the property does not exist)
346
+ * Get the value of the property for the given property coordinate, and the given row (undefined if the property
347
+ * does not exist).
346
348
  * @param name name of the property.
347
349
  * @param rowIdx row index for the value to return.
348
350
  */
@@ -365,7 +367,7 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
365
367
  getEntityItem(idx: number): EntityItem | undefined;
366
368
  /**
367
369
  * Get the entity item for the column. Used in column selection.
368
- * Returns empty array if there are no entityItems.
370
+ * Returns an empty array if no entityItems.
369
371
  * @param hierarchyIndeces only include these hierarchies for generating the EntityItem. Leave undefined to include
370
372
  * all.
371
373
  */
@@ -386,7 +388,7 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
386
388
  */
387
389
  hasChildren(index: number): boolean;
388
390
  /**
389
- * Returns the children of the node at index.
391
+ * Returns the children of the node at `index`.
390
392
  */
391
393
  getChildren(index: number): number[];
392
394
  /**
@@ -402,7 +404,7 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
402
404
  getHierarchyDefaultMember(): EntityItem | undefined;
403
405
  /**
404
406
  * Get the array of MDX info in the column.
405
- * Returns an empty array if there is no MDX info.
407
+ * Returns an empty array if no MDX info.
406
408
  */
407
409
  getMdxInfos(): (MdxInfo | undefined)[];
408
410
  /**
@@ -427,9 +429,9 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
427
429
  /**
428
430
  * Get the axis values in this column.
429
431
  *
430
- * If it's an MDX Axis, the potentially sorted MDX axis (e.g. pivot table sort)
432
+ * If it is an MDX Axis, the potentially sorted MDX axis (e.g., pivot table sort)
431
433
  *
432
- * If it's not, return undefined
434
+ * If it is not, return undefined
433
435
  */
434
436
  mdxAxis(): ReadonlyArray<T> | undefined;
435
437
  /**
@@ -462,7 +464,7 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
462
464
  /**
463
465
  * Convert the column to another type. This modifies the values to be of that type.
464
466
  *
465
- * If type is datetime, then the settings contain the date locale (default='en_US') and
467
+ * If type is datetime, then the settings contain the date locale (default='en_US'), and
466
468
  * the dateformat (default = 'yyyy-MM-dd').
467
469
  */
468
470
  convertToType(type: TidyColumnsType, settings?: ConvertToTypeParseSettings): void;
@@ -477,7 +479,7 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
477
479
  /**
478
480
  * Change the values of the column.
479
481
  * @param values the new values for the column.
480
- * @param newType the new type of the column. Leave undefined for automatic inference.
482
+ * @param newType the new type for the column. Leave undefined for automatic inference.
481
483
  */
482
484
  setValues<P>(values: P[], newType?: AllowedColumnType<P>): void;
483
485
  /**
@@ -536,9 +538,9 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
536
538
  */
537
539
  reIndex(index: number[]): void;
538
540
  /**
539
- * Set the formatted values. Use this if you have the formatted values pre-calculated
541
+ * Set the formatted values. Use this if you have the formatted values pre-calculated,
540
542
  * or a function to calculate the formatted values.
541
- * @param caption the caption for the added property
543
+ * @param caption the caption for the added property.
542
544
  */
543
545
  setFormattedValues(formattedValues: (string | null)[] | ((value: T | undefined) => string), caption?: string): void;
544
546
  /**
@@ -549,7 +551,7 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
549
551
  resetFormat(context: IPublicContext, format: ThemeTextFormatter): void;
550
552
  /**
551
553
  * Set the colors for the column.
552
- * @param caption the caption for the added property
554
+ * @param caption the caption for the added property.
553
555
  */
554
556
  setColors(colors: (Property.Color | null)[], caption?: string): void;
555
557
  /**
@@ -573,10 +575,10 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
573
575
  */
574
576
  mapAllRows<P>(callbackFn: (index: number, column: ITidyBaseColumn<T>) => P | undefined, forceMapAllRows?: boolean): P[];
575
577
  /**
576
- * Map the rows that are visible given a hierarchical axis and an array of boolean values
578
+ * Map the rows that are visible given a hierarchical axis, and an array of boolean values
577
579
  * @param expanded a function indicating for each index if it is expanded or not. If it is collapsed, then all
578
580
  * children are not visible.
579
- * @param fun function to apply
581
+ * @param fun function to apply.
580
582
  */
581
583
  mapVisibleRows<P>(expanded: (rowIdx: number) => boolean, fun: (index: number) => P): P[];
582
584
  /**
@@ -600,7 +602,7 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
600
602
  */
601
603
  getInitialSelectionRowIndices(column: ITidyColumn | undefined, items: any[]): number[];
602
604
  /**
603
- * The ITidyTableSelection row identifier for the row (uniqueName if it's an MDX like column)
605
+ * The ITidyTableSelection row identifier for the row (uniqueName if it is an MDX like column).
604
606
  */
605
607
  getSelectionRowIdentifier(idx: number): string;
606
608
  /**
@@ -614,7 +616,7 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
614
616
  * For a hierarchical columns returns a list of transformed columns as needed by a pivot table like structure.
615
617
  * If this column is not hierarchical, return this unchanged.
616
618
  *
617
- * E.g., a columns with Year, Quarter and Month will be converted into 3 columns [Year,Quarter,Month]).
619
+ * E.g., a columns with Year, Quarter and Month will be converted into 3 columns [Year, Quarter, Month].
618
620
  */
619
621
  toFlatColumns(nullValue: any, rows: number[] | undefined): ITidyUnknownColumn[];
620
622
  /**
@@ -624,16 +626,18 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
624
626
  */
625
627
  getNodePath(rowIdx: number): number[];
626
628
  /**
627
- * Returns if present a notification as defined by the properties of the columns
629
+ * Returns if present a notification as defined by the properties of the columns.
628
630
  */
629
631
  getAppNotification(rowIdx: number): AppNotification | undefined;
630
632
  /**
631
- * Returns if present an action as defined by the properties of the columns
633
+ * Returns if present an action as defined by the properties of the columns.
632
634
  */
633
635
  getEventAction(rowIdx: number): [string, TidyActionEvent] | undefined;
634
636
  mapUniqueNames<T>(uniqueNames: string[], mapper: (idx: number) => T | null | undefined): T[];
635
637
  /**
636
- * Cell decoration
638
+ * Add the renderer to the column. If a cell has multiple renderers, it uses the last added renderer.
639
+ *
640
+ * @see {BaseTidyColumnCellDecoration.appliesToCell}.
637
641
  */
638
642
  setCellDecoration(decoration: PublicTidyColumnCellDecoration): void;
639
643
  /**
@@ -642,11 +646,11 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
642
646
  */
643
647
  getIndex(): ITidyColumnIndex[];
644
648
  /**
645
- * undefined if it's not an Mdx member column
649
+ * undefined if it is not an MDX member column
646
650
  */
647
651
  getQueryNodeIdentifier(idx: number): MdxNodeIdentifier | undefined;
648
652
  /**
649
- * Returns the group key at the row index for use with table.toAmcharts4Data.
653
+ * Returns the group key at the row index for use with `table.toAmcharts4Data`.
650
654
  */
651
655
  getAmcharts4GroupKey(rowIdx: number): string;
652
656
  /**
@@ -662,44 +666,80 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
662
666
  */
663
667
  getIsTotalColumn(): boolean;
664
668
  /**
665
- * return true if the column was created from an MDX axis (i.e. [Geo].[Countries] on 0 )
669
+ * return true if the column was created from an MDX axis (i.e., [Geo].[Countries] on 0).
666
670
  */
667
671
  isMdxAxis(): boolean;
668
672
  addRowValue(insert: ITidyColumnAddValueInsert): void;
669
673
  }
670
- export interface PublicTidyColumnCellDecorationRenderedOptions {
671
- cellWidth?: number;
672
- cellHeight: number;
673
- }
674
674
  export interface BaseTidyColumnCellDecoration {
675
+ /**
676
+ * If true, the renderer handles errors in the cells. If false, the table/pivot table renders an error if the cell
677
+ * has one.
678
+ *
679
+ * Use `column.getError(tidyRow)` to get the error of a cell.
680
+ */
675
681
  handlesCellsOnError?: boolean;
676
682
  /**
677
683
  * Default (i.e., when not defined) is true.
678
684
  */
679
685
  handlesBackgroundColor?: boolean;
686
+ /**
687
+ * A function that determines if the renderer is applied to a cell. Return true if yes, return false if not.
688
+ * @param rowIdx row index.
689
+ */
680
690
  appliesToCell?: (rowIdx: number) => boolean;
681
691
  /**
682
692
  * If an object is returned the underlying code uses emotion CSS function to convert to a className,
683
693
  * so you can do className like CSS :
684
694
  *
695
+ * ```TypeScript
685
696
  * {
686
697
  * fontSize: "0.7rem",
687
698
  * ':hover': {
688
699
  * fontSize: "1.4rem",
689
700
  * }
690
701
  * }
702
+ * ```
691
703
  */
692
704
  cssStyles?: (rowIdx: number) => Record<string, any> | undefined;
693
705
  }
694
706
  export interface ReactTidyColumnCellDecoration extends BaseTidyColumnCellDecoration {
707
+ /**
708
+ * False if your renderer returns a React element or if you have no renderer.
709
+ */
695
710
  stringRenderer?: false;
696
- renderer?: (rowIdx: number, options?: PublicTidyColumnCellDecorationRenderedOptions) => React.ReactElement;
711
+ /**
712
+ * The cell renders the returned React element. Note that for the Pivot Table, Emotion CSS and JS does not work.
713
+ */
714
+ renderer?: (rowIdx: number) => React.ReactElement;
697
715
  }
698
716
  export interface HtmlTidyColumnCellDecoration extends BaseTidyColumnCellDecoration {
717
+ /**
718
+ * True if your renderer returns a HTML string.
719
+ */
699
720
  stringRenderer: true;
700
- renderer: (rowIdx: number, options?: PublicTidyColumnCellDecorationRenderedOptions) => string;
721
+ /**
722
+ * The cell renders the returned string as HTML.
723
+ */
724
+ renderer: (rowIdx: number) => string;
701
725
  }
702
726
  export type PublicTidyColumnCellDecoration = ReactTidyColumnCellDecoration | HtmlTidyColumnCellDecoration;
727
+ /**
728
+ * The renderer for a cell at a row index.
729
+ *
730
+ * @see {PublicTidyColumnCellDecoration}
731
+ */
732
+ export type PublicTidyColumnCellDecorationRendered = ({
733
+ stringRenderer: true;
734
+ renderer: () => string;
735
+ } | {
736
+ stringRenderer?: false;
737
+ renderer?: () => React.ReactElement;
738
+ }) & {
739
+ handlesCellsOnError?: boolean;
740
+ handlesBackgroundColor?: boolean;
741
+ cssStyles?: () => Record<string, any> | undefined;
742
+ };
703
743
  export type ITidyColumn = ITidyBaseColumn<any>;
704
744
  export type ITidyUnknownColumn = ITidyBaseColumn<unknown>;
705
745
  export type ITidyNullColumn = ITidyBaseColumn<null>;
@@ -35,6 +35,10 @@ export declare class AppClasses {
35
35
  * Style applied to
36
36
  */
37
37
  static readonly zoomWidget: string;
38
+ /**
39
+ * Class added to root when the left filter panel is collapsed.
40
+ */
41
+ static readonly leftPanelCollapsed: string;
38
42
  }
39
43
  export declare type AppClassKey = keyof AppClasses;
40
44
  export interface AppDivProps {
@@ -40,6 +40,10 @@ AppClasses.dashboard = "ic3App-dashboard";
40
40
  * Style applied to
41
41
  */
42
42
  AppClasses.zoomWidget = "ic3App-zoomWidget";
43
+ /**
44
+ * Class added to root when the left filter panel is collapsed.
45
+ */
46
+ AppClasses.leftPanelCollapsed = "ic3LeftPanelCollapsed";
43
47
  var TopBarOptions;
44
48
  (function (TopBarOptions) {
45
49
  TopBarOptions[TopBarOptions["None"] = 0] = "None";
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeApp.js","sourceRoot":"","sources":["../../src/theme/ThemeApp.ts"],"names":[],"mappings":";;;AACA,MAAa,UAAU;;AAAvB,gCAqCC;AApCG;;GAEG;AACa,eAAI,GAAW,aAAa,CAAC;AAC7C;;GAEG;AACa,kBAAO,GAAW,gBAAgB,CAAC;AACnD;;GAEG;AACa,kBAAO,GAAW,gBAAgB,CAAC;AACnD;;GAEG;AACa,kBAAO,GAAW,gBAAgB,CAAC;AACnD;;GAEG;AACa,gBAAK,GAAW,cAAc,CAAC;AAC/C;;GAEG;AACa,cAAG,GAAW,YAAY,CAAC;AAC3C;;GAEG;AACa,qBAAU,GAAW,mBAAmB,CAAC;AACzD;;GAEG;AACa,oBAAS,GAAW,kBAAkB,CAAC;AACvD;;GAEG;AACa,qBAAU,GAAW,mBAAmB,CAAC;AAa7D,IAAY,aAIX;AAJD,WAAY,aAAa;IACrB,iDAAI,CAAA;IACJ,yDAAQ,CAAA;IACR,qDAAM,CAAA;AACV,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB;AAED,IAAY,cAIX;AAJD,WAAY,cAAc;IACtB,mDAAI,CAAA;IACJ,2DAAQ,CAAA;IACR,uDAAM,CAAA;AACV,CAAC,EAJW,cAAc,8BAAd,cAAc,QAIzB"}
1
+ {"version":3,"file":"ThemeApp.js","sourceRoot":"","sources":["../../src/theme/ThemeApp.ts"],"names":[],"mappings":";;;AACA,MAAa,UAAU;;AAAvB,gCAyCC;AAxCG;;GAEG;AACa,eAAI,GAAW,aAAa,CAAC;AAC7C;;GAEG;AACa,kBAAO,GAAW,gBAAgB,CAAC;AACnD;;GAEG;AACa,kBAAO,GAAW,gBAAgB,CAAC;AACnD;;GAEG;AACa,kBAAO,GAAW,gBAAgB,CAAC;AACnD;;GAEG;AACa,gBAAK,GAAW,cAAc,CAAC;AAC/C;;GAEG;AACa,cAAG,GAAW,YAAY,CAAC;AAC3C;;GAEG;AACa,qBAAU,GAAW,mBAAmB,CAAC;AACzD;;GAEG;AACa,oBAAS,GAAW,kBAAkB,CAAC;AACvD;;GAEG;AACa,qBAAU,GAAW,mBAAmB,CAAC;AACzD;;GAEG;AACa,6BAAkB,GAAW,uBAAuB,CAAC;AAazE,IAAY,aAIX;AAJD,WAAY,aAAa;IACrB,iDAAI,CAAA;IACJ,yDAAQ,CAAA;IACR,qDAAM,CAAA;AACV,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB;AAED,IAAY,cAIX;AAJD,WAAY,cAAc;IACtB,mDAAI,CAAA;IACJ,2DAAQ,CAAA;IACR,uDAAM,CAAA;AACV,CAAC,EAJW,cAAc,8BAAd,cAAc,QAIzB"}
@@ -163,7 +163,7 @@ export interface DatePickerChartOptions extends FormFieldObject {
163
163
  */
164
164
  allowedShortcutGroup: string;
165
165
  }
166
- interface IShortcut<T> {
166
+ interface IShortcut<D, T> {
167
167
  /**
168
168
  * Show this name in the datepicker.
169
169
  *
@@ -175,8 +175,16 @@ interface IShortcut<T> {
175
175
  /**
176
176
  * Return the range of the dates that this shortcut selects. The date to return should be of type
177
177
  * Dayjs. See the `dayjs` library. Return `null` to clear the start/end value.
178
+ *
179
+ * A datepicker shortcut returns the date. Return null to reset the date.
180
+ *
181
+ * A range picker shortcut returns a range: [startDate (included), endDate (included)]. Return [null, null] to reset
182
+ * the date.
183
+ *
184
+ * If the date returned is outside the allowed range of dates in the widget, then the datepicker disables the
185
+ * option.
178
186
  */
179
- getValue: (util: PublicDateShortcutUtils) => T;
187
+ getValue: (util: PublicDateShortcutUtils<D>) => T;
180
188
  /**
181
189
  * If an anchor date is defined, then this shortcut will show.
182
190
  * — true: only show the shortcut when there is an anchor date.
@@ -185,8 +193,8 @@ interface IShortcut<T> {
185
193
  */
186
194
  needsAnchor?: boolean;
187
195
  }
188
- export type DatePickerShortcut = IShortcut<any>;
189
- export type DateRangePickerShortcut = IShortcut<[any, any]>;
196
+ export type DatePickerShortcut<T = any> = IShortcut<T, T | null>;
197
+ export type DateRangePickerShortcut<T = any> = IShortcut<T, [T | null, T | null]>;
190
198
  export interface FilterDatePickerProps {
191
199
  }
192
200
  export declare enum InitialDateFrom {
@@ -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;AA0MD,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;AAkND,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,0CAAuB,CAAA;IACvB,wCAAqB,CAAA;AACzB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B"}
@@ -83,7 +83,7 @@ export declare class FilterPanelClasses {
83
83
  */
84
84
  static readonly collapsibleIcon = "ic3FilterPanel-collapsibleIcon";
85
85
  /**
86
- * Div when it's collapsed
86
+ * Div when it is collapsed
87
87
  */
88
88
  static readonly collapsedDiv = "ic3FilterPanel-collapsedDiv";
89
89
  }
@@ -87,7 +87,7 @@ FilterPanelClasses.selectableContent = "ic3FilterPanel-selectableContent";
87
87
  */
88
88
  FilterPanelClasses.collapsibleIcon = "ic3FilterPanel-collapsibleIcon";
89
89
  /**
90
- * Div when it's collapsed
90
+ * Div when it is collapsed
91
91
  */
92
92
  FilterPanelClasses.collapsedDiv = "ic3FilterPanel-collapsedDiv";
93
93
  //# sourceMappingURL=ThemeFilterPanel.js.map
@@ -151,4 +151,8 @@ export interface TableChartOptions extends BaseTableChartOptions {
151
151
  * Use column header groups.
152
152
  */
153
153
  useColumnGrouping: boolean;
154
+ /**
155
+ * Use checkbox selection. Adds a column with checkboxes as the first column.
156
+ */
157
+ useCheckboxSelection: boolean;
154
158
  }
@@ -87,6 +87,9 @@ export declare enum ResizingConstraintOptions {
87
87
  FixedWidthLeftAligned = "FixedWidthLeftAligned",
88
88
  FixedWidthRightAligned = "FixedWidthRightAligned"
89
89
  }
90
+ export declare enum PositionModeOptions {
91
+ Fixed = "Fixed"
92
+ }
90
93
  /**
91
94
  * Support for repetition widget | pivot table expanding to make the whole content visible.
92
95
  */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ResizingConstraintOptions = exports.WidgetBoxVisibilityType = exports.WidgetBoxTooltipType = exports.WidgetBoxClasses = void 0;
3
+ exports.PositionModeOptions = exports.ResizingConstraintOptions = exports.WidgetBoxVisibilityType = exports.WidgetBoxTooltipType = exports.WidgetBoxClasses = void 0;
4
4
  class WidgetBoxClasses {
5
5
  }
6
6
  exports.WidgetBoxClasses = WidgetBoxClasses;
@@ -93,4 +93,8 @@ var ResizingConstraintOptions;
93
93
  ResizingConstraintOptions["FixedWidthLeftAligned"] = "FixedWidthLeftAligned";
94
94
  ResizingConstraintOptions["FixedWidthRightAligned"] = "FixedWidthRightAligned";
95
95
  })(ResizingConstraintOptions || (exports.ResizingConstraintOptions = ResizingConstraintOptions = {}));
96
+ var PositionModeOptions;
97
+ (function (PositionModeOptions) {
98
+ PositionModeOptions["Fixed"] = "Fixed";
99
+ })(PositionModeOptions || (exports.PositionModeOptions = PositionModeOptions = {}));
96
100
  //# sourceMappingURL=ThemeWidgetBox.js.map
@@ -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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EpF;;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;;GAEG;AACa,4BAAW,GAAW,0BAA0B,CAAC;AAEjE;;GAEG;AACa,2BAAU,GAAW,yBAAyB,CAAC;AAE/D;;GAEG;AACa,8BAAa,GAAW,4BAA4B,CAAC;AAErE;;GAEG;AACa,6BAAY,GAAW,2BAA2B,CAAC;AAEnE;;GAEG;AACa,+BAAc,GAAW,6BAA6B,CAAC;AAEvE;;GAEG;AACa,kCAAiB,GAAW,gBAAgB,CAAC;AAE7C,8BAAa,GAAW,YAAY,CAAC;AAKzD,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC5B,yCAAiB,CAAA;IACjB,2CAAmB,CAAA;AACvB,CAAC,EAHW,oBAAoB,oCAApB,oBAAoB,QAG/B;AAED,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IAC/B,8CAAmB,CAAA;IACnB,kDAAuB,CAAA;IACvB,sEAA2C,CAAA;AAC/C,CAAC,EAJW,uBAAuB,uCAAvB,uBAAuB,QAIlC;AAED,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACjC,4EAA+C,CAAA;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.9",
3
+ "version": "8.4.10",
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,17 +11,17 @@
11
11
  "access": "public"
12
12
  },
13
13
  "dependencies": {
14
- "@mui/material": "5.15.6",
15
- "@mui/system": "5.15.6",
16
- "@emotion/react": "11.11.3",
14
+ "@mui/material": "5.15.14",
15
+ "@mui/system": "5.15.14",
16
+ "@emotion/react": "11.11.4",
17
17
  "@emotion/styled": "11.11.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/markerclustererplus": "2.1.33",
21
- "@types/node": "20.11.10",
22
- "@types/react": "18.2.48",
21
+ "@types/node": "20.11.30",
22
+ "@types/react": "18.2.73",
23
23
  "del-cli": "5.1.0",
24
- "typescript": "5.3.3"
24
+ "typescript": "5.4.3"
25
25
  },
26
26
  "scripts": {
27
27
  "build": "del-cli dist && npx tsc",