@ic3/reporting-api 8.4.9 → 8.4.11
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 +1 -1
- package/dist/ApiUtils.js.map +1 -1
- package/dist/IOnNewEventJsContext.d.ts +6 -0
- package/dist/PublicAmchartsData.d.ts +2 -1
- package/dist/PublicAmchartsData.js +4 -3
- package/dist/PublicAmchartsData.js.map +1 -1
- package/dist/PublicContext.d.ts +7 -1
- package/dist/PublicDateShortcutUtils.d.ts +19 -7
- package/dist/PublicLayout.d.ts +1 -0
- package/dist/PublicTemplate.d.ts +6 -1
- package/dist/PublicTemplate.js.map +1 -1
- package/dist/PublicTemplateForm.d.ts +2 -1
- package/dist/PublicTemplateForm.js.map +1 -1
- package/dist/PublicTheme.d.ts +21 -0
- package/dist/PublicTheme.js.map +1 -1
- package/dist/PublicTidyColumn.d.ts +77 -32
- package/dist/PublicTidyTable.d.ts +2 -1
- package/dist/theme/ThemeAmCharts4.d.ts +4 -0
- package/dist/theme/ThemeApp.d.ts +4 -0
- package/dist/theme/ThemeApp.js +4 -0
- package/dist/theme/ThemeApp.js.map +1 -1
- package/dist/theme/ThemeDatePicker.d.ts +12 -4
- package/dist/theme/ThemeDatePicker.js.map +1 -1
- package/dist/theme/ThemeFilterPanel.d.ts +1 -1
- package/dist/theme/ThemeFilterPanel.js +1 -1
- package/dist/theme/ThemeTable.d.ts +4 -6
- package/dist/theme/ThemeTable.js +0 -12
- package/dist/theme/ThemeTable.js.map +1 -1
- package/dist/theme/ThemeWidgetBox.d.ts +3 -0
- package/dist/theme/ThemeWidgetBox.js +5 -1
- package/dist/theme/ThemeWidgetBox.js.map +1 -1
- package/package.json +8 -8
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
|
+
return Object.assign({ apiVersion: new ReportingVersion_1.default("8.4.11" || "-", "Thu, 02 May 2024 04:28:30 GMT" || "-") }, definition);
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
/**
|
package/dist/ApiUtils.js.map
CHANGED
|
@@ -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,
|
|
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,QAAQ,IAAI,GAAG,EACf,+BAA+B,IAAI,GAAG,CACzC,IAEE,UAAU,EAEhB;QAEL,CAAC,CAAA;IACL,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,oCAAoC,CAAkC,UAAsE;QAEtJ,uCAEO,UAAU,KAEb,MAAM,EAAE,CAAC,OAA6B,EAAE,SAAyB,EAAE,EAAE;gBACjE,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;YAC1D,CAAC,EAED,cAAc,EAAE,KAAK,EAErB,6BAA6B,EAAE,KAAK,IAEvC;IAEL,CAAC;IAEM,MAAM,CAAC,wCAAwC,CAAkC,UAAoD,EAAE,OAA6C;QAEvL,OAAO,8CAEA,OAAO,GACP,UAAiB,CAAC,4BAA4B,KAEjD,iBAAiB,EAAE,SAAS,EAC5B,MAAM,EAAE,OAAO,CAAC,MAAM,GAEmB,CAAA;IAEjD,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,4CAA4C,CAAmC,KAAyC;QAElI,OAAO;YAEH,gBAAgB,EAAE,KAAK,CAAC,gBAAgB;YACxC,uBAAuB,EAAE,KAAK,CAAC,uBAAuB;YAEtD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE;gBAEjB,qDAEO,OAAO,CAAC,gBAAgB,GAExB,KAAK,CAAC,KAAK,CAAC,+BAA+B;oBAE9C;;;;;uBAKG;oBACH,iBAAiB,EAAE,UAAU,QAAQ;wBAEjC,MAAM,eAAe,GAAG,QAAQ,CAAC,wCAAwC,CAAC,IAAI,EAAE,QAAS,CAAC,CAAC;wBAE3F,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;4BAEnC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,OAAO,iCAE/B,eAAe;gCAElB,8DAA8D;gCAE9D,gBAAgB,EAAE,UAAU,CAAC,OAAO,CAAC,oBAAoB,CAAC,eAAe,CAAC,gBAAgB,CAAC,EAC3F,gBAAgB,EAAE,UAAU,CAAC,OAAO,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
|
*/
|
|
@@ -41,7 +41,8 @@ export declare class PublicAmchartsData {
|
|
|
41
41
|
private readonly onLevel;
|
|
42
42
|
private readonly onGroup;
|
|
43
43
|
private readonly table;
|
|
44
|
-
|
|
44
|
+
private readonly disableGroupRecords?;
|
|
45
|
+
constructor(table: ITidyTable, onValues: ISeriesValues[], onAxis: ITidyColumn, onGroup?: ITidyColumn, onLevel?: ITidyColumn, disableGroupRecords?: boolean);
|
|
45
46
|
static getSeriesId(groupKey: string, valueColIdx: number): string;
|
|
46
47
|
/**
|
|
47
48
|
* Get the data for the chart.
|
|
@@ -16,12 +16,13 @@ var ISeriesValuesType;
|
|
|
16
16
|
* data and the creation of the series of that chart.
|
|
17
17
|
*/
|
|
18
18
|
class PublicAmchartsData {
|
|
19
|
-
constructor(table, onValues, onAxis, onGroup, onLevel) {
|
|
19
|
+
constructor(table, onValues, onAxis, onGroup, onLevel, disableGroupRecords) {
|
|
20
20
|
this.onValues = onValues;
|
|
21
21
|
this.onAxis = onAxis;
|
|
22
22
|
this.onGroup = onGroup;
|
|
23
23
|
this.onLevel = onLevel;
|
|
24
24
|
this.table = table;
|
|
25
|
+
this.disableGroupRecords = disableGroupRecords;
|
|
25
26
|
}
|
|
26
27
|
static getSeriesId(groupKey, valueColIdx) {
|
|
27
28
|
return groupKey + "." + String(valueColIdx);
|
|
@@ -51,7 +52,7 @@ class PublicAmchartsData {
|
|
|
51
52
|
chartValues[String(idx) + PublicAmchartsData.TAG_ADDITIONAL_VALUE] = value.additionalValues;
|
|
52
53
|
}
|
|
53
54
|
});
|
|
54
|
-
return this.table.toAmcharts4Data(this.onAxis, chartValues, this.onGroup, this.onLevel);
|
|
55
|
+
return this.table.toAmcharts4Data(this.onAxis, chartValues, this.onGroup, this.onLevel, undefined, this.disableGroupRecords);
|
|
55
56
|
}
|
|
56
57
|
/**
|
|
57
58
|
* Create, update and remove series in the chart.
|
|
@@ -78,7 +79,7 @@ class PublicAmchartsData {
|
|
|
78
79
|
updated.add(seriesKey);
|
|
79
80
|
});
|
|
80
81
|
};
|
|
81
|
-
if (group != null) {
|
|
82
|
+
if (group != null && !this.disableGroupRecords) {
|
|
82
83
|
const index = group.groupBy(true);
|
|
83
84
|
if (firstGroupOnly) {
|
|
84
85
|
const groupIdx = index.values().next();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicAmchartsData.js","sourceRoot":"","sources":["../src/PublicAmchartsData.ts"],"names":[],"mappings":";;;AAEA,iEAA2G;AAE3G,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IACzB,yDAAI,CAAA;IACJ,6DAAM,CAAA;IACN,2DAAK,CAAA;IACL,mEAAS,CAAA;IACT,uEAAW,CAAA;IACX,yEAAY,CAAA;AAChB,CAAC,EAPW,iBAAiB,iCAAjB,iBAAiB,QAO5B;AA8BD;;;GAGG;AACH,MAAa,kBAAkB;
|
|
1
|
+
{"version":3,"file":"PublicAmchartsData.js","sourceRoot":"","sources":["../src/PublicAmchartsData.ts"],"names":[],"mappings":";;;AAEA,iEAA2G;AAE3G,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IACzB,yDAAI,CAAA;IACJ,6DAAM,CAAA;IACN,2DAAK,CAAA;IACL,mEAAS,CAAA;IACT,uEAAW,CAAA;IACX,yEAAY,CAAA;AAChB,CAAC,EAPW,iBAAiB,iCAAjB,iBAAiB,QAO5B;AA8BD;;;GAGG;AACH,MAAa,kBAAkB;IAa3B,YAAY,KAAiB,EAAE,QAAyB,EAAE,MAAmB,EAAE,OAAqB,EACxF,OAAqB,EAAE,mBAA6B;QAC5D,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,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AAiB,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;IACpF,CAAC;IAED;;OAEG;IACH,oBAAoB,CAAC,UAA6B;;QAC9C,OAAO,MAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,UAAU,CAAC,0CAAE,MAAM,CAAC;IAClE,CAAC;;AA1LL,gDA4LC;AA1L0B,4BAAS,GAAG,GAAG,CAAC;AAChB,4BAAS,GAAG,GAAG,CAAC;AAChB,uCAAoB,GAAG,IAAI,CAAC"}
|
package/dist/PublicContext.d.ts
CHANGED
|
@@ -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):
|
|
6
|
+
asDate(year: number, month: number, day: number): T;
|
|
7
7
|
/**
|
|
8
8
|
* Return the current datetime.
|
|
9
9
|
*/
|
|
10
|
-
now():
|
|
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():
|
|
15
|
+
currentDate(): T;
|
|
16
16
|
/**
|
|
17
17
|
* Return the current datetime. Returns the anchor datetime if it exists.
|
|
18
18
|
*/
|
|
19
|
-
current():
|
|
19
|
+
current(): T;
|
|
20
20
|
/**
|
|
21
21
|
* Returns the anchor date.
|
|
22
22
|
*/
|
|
23
|
-
getAnchorDate():
|
|
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():
|
|
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 {};
|
package/dist/PublicLayout.d.ts
CHANGED
package/dist/PublicTemplate.d.ts
CHANGED
|
@@ -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":";;;
|
|
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":"PublicTemplateForm.js","sourceRoot":"","sources":["../src/PublicTemplateForm.ts"],"names":[],"mappings":";;;
|
|
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,IAAI,KAAK,sBAAsB,CACjC;AACT,CAAC;AALD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AmC,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"}
|
package/dist/PublicTheme.d.ts
CHANGED
|
@@ -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.
|
|
@@ -753,6 +770,10 @@ interface ic3BaseComponents {
|
|
|
753
770
|
styleOverrides?: ComponentsOverrides["FilterAutocomplete"];
|
|
754
771
|
variants?: ComponentsVariants["FilterAutocomplete"];
|
|
755
772
|
};
|
|
773
|
+
FilterAutocompletePopper?: {
|
|
774
|
+
styleOverrides?: ComponentsOverrides["MuiPopper"];
|
|
775
|
+
variants?: ComponentsVariants["MuiPopper"];
|
|
776
|
+
};
|
|
756
777
|
GoogleMarker?: {
|
|
757
778
|
variants?: ComponentsVariants['GoogleMarker'];
|
|
758
779
|
};
|
package/dist/PublicTheme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicTheme.js","sourceRoot":"","sources":["../src/PublicTheme.ts"],"names":[],"mappings":";;;
|
|
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
|
|
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():
|
|
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
|
|
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
|
|
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
|
|
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
|
|
432
|
+
* If it is an MDX Axis, the potentially sorted MDX axis (e.g., pivot table sort)
|
|
431
433
|
*
|
|
432
|
-
* If it
|
|
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
|
|
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
|
|
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
|
-
*
|
|
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
|
|
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,85 @@ 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
|
|
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
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
+
/**
|
|
674
|
+
* Returns true if and only if the all the datetime values in the column are dates (and do not have a time
|
|
675
|
+
* component).
|
|
676
|
+
*/
|
|
677
|
+
hasOnlyDates(): boolean;
|
|
673
678
|
}
|
|
674
679
|
export interface BaseTidyColumnCellDecoration {
|
|
680
|
+
/**
|
|
681
|
+
* If true, the renderer handles errors in the cells. If false, the table/pivot table renders an error if the cell
|
|
682
|
+
* has one.
|
|
683
|
+
*
|
|
684
|
+
* Use `column.getError(tidyRow)` to get the error of a cell.
|
|
685
|
+
*/
|
|
675
686
|
handlesCellsOnError?: boolean;
|
|
676
687
|
/**
|
|
677
688
|
* Default (i.e., when not defined) is true.
|
|
678
689
|
*/
|
|
679
690
|
handlesBackgroundColor?: boolean;
|
|
691
|
+
/**
|
|
692
|
+
* A function that determines if the renderer is applied to a cell. Return true if yes, return false if not.
|
|
693
|
+
* @param rowIdx row index.
|
|
694
|
+
*/
|
|
680
695
|
appliesToCell?: (rowIdx: number) => boolean;
|
|
681
696
|
/**
|
|
682
697
|
* If an object is returned the underlying code uses emotion CSS function to convert to a className,
|
|
683
698
|
* so you can do className like CSS :
|
|
684
699
|
*
|
|
700
|
+
* ```TypeScript
|
|
685
701
|
* {
|
|
686
702
|
* fontSize: "0.7rem",
|
|
687
703
|
* ':hover': {
|
|
688
704
|
* fontSize: "1.4rem",
|
|
689
705
|
* }
|
|
690
706
|
* }
|
|
707
|
+
* ```
|
|
691
708
|
*/
|
|
692
709
|
cssStyles?: (rowIdx: number) => Record<string, any> | undefined;
|
|
693
710
|
}
|
|
694
711
|
export interface ReactTidyColumnCellDecoration extends BaseTidyColumnCellDecoration {
|
|
712
|
+
/**
|
|
713
|
+
* False if your renderer returns a React element or if you have no renderer.
|
|
714
|
+
*/
|
|
695
715
|
stringRenderer?: false;
|
|
696
|
-
|
|
716
|
+
/**
|
|
717
|
+
* The cell renders the returned React element. Note that for the Pivot Table, Emotion CSS and JS does not work.
|
|
718
|
+
*/
|
|
719
|
+
renderer?: (rowIdx: number) => React.ReactElement;
|
|
697
720
|
}
|
|
698
721
|
export interface HtmlTidyColumnCellDecoration extends BaseTidyColumnCellDecoration {
|
|
722
|
+
/**
|
|
723
|
+
* True if your renderer returns a HTML string.
|
|
724
|
+
*/
|
|
699
725
|
stringRenderer: true;
|
|
700
|
-
|
|
726
|
+
/**
|
|
727
|
+
* The cell renders the returned string as HTML.
|
|
728
|
+
*/
|
|
729
|
+
renderer: (rowIdx: number) => string;
|
|
701
730
|
}
|
|
702
731
|
export type PublicTidyColumnCellDecoration = ReactTidyColumnCellDecoration | HtmlTidyColumnCellDecoration;
|
|
732
|
+
/**
|
|
733
|
+
* The renderer for a cell at a row index.
|
|
734
|
+
*
|
|
735
|
+
* @see {PublicTidyColumnCellDecoration}
|
|
736
|
+
*/
|
|
737
|
+
export type PublicTidyColumnCellDecorationRendered = ({
|
|
738
|
+
stringRenderer: true;
|
|
739
|
+
renderer: () => string;
|
|
740
|
+
} | {
|
|
741
|
+
stringRenderer?: false;
|
|
742
|
+
renderer?: () => React.ReactElement;
|
|
743
|
+
}) & {
|
|
744
|
+
handlesCellsOnError?: boolean;
|
|
745
|
+
handlesBackgroundColor?: boolean;
|
|
746
|
+
cssStyles?: () => Record<string, any> | undefined;
|
|
747
|
+
};
|
|
703
748
|
export type ITidyColumn = ITidyBaseColumn<any>;
|
|
704
749
|
export type ITidyUnknownColumn = ITidyBaseColumn<unknown>;
|
|
705
750
|
export type ITidyNullColumn = ITidyBaseColumn<null>;
|
|
@@ -306,8 +306,9 @@ export interface ITidyTable {
|
|
|
306
306
|
* @param level this column expands the axis so that widgets can plot level-like charts using guides. This expansion
|
|
307
307
|
* follows the patters axis-label[level-label].
|
|
308
308
|
* @param hideNulls column, do not include records where all rows in group evaluate to NULL.
|
|
309
|
+
* @param disableGroupRecords if true, all the rows become a single object. Else all data per group becomes a single object. Default = false.
|
|
309
310
|
*/
|
|
310
|
-
toAmcharts4Data<F extends string>(category: ITidyColumn, value: Record<F, ITidyColumn | undefined>, group?: ITidyColumn | ITidyColumn[], level?: ITidyColumn, hideNulls?: ITidyColumn): IAmCharts4Data[];
|
|
311
|
+
toAmcharts4Data<F extends string>(category: ITidyColumn, value: Record<F, ITidyColumn | undefined>, group?: ITidyColumn | ITidyColumn[], level?: ITidyColumn, hideNulls?: ITidyColumn, disableGroupRecords?: boolean): IAmCharts4Data[];
|
|
311
312
|
/**
|
|
312
313
|
* Creates a data object for the Amcharts treemap
|
|
313
314
|
* @param level0 names for the parent nodes
|
|
@@ -1406,6 +1406,10 @@ export interface Am4GanttSeriesOptions extends Omit<Am4ColumnSeriesOptions, "col
|
|
|
1406
1406
|
* End datetime values of the gantt series.
|
|
1407
1407
|
*/
|
|
1408
1408
|
endValue: TidyTableColumnSelector[];
|
|
1409
|
+
/**
|
|
1410
|
+
* If true, show groups in the same lane instead of in their separate lanes.
|
|
1411
|
+
*/
|
|
1412
|
+
showGroupsOnSingleLane?: boolean;
|
|
1409
1413
|
}
|
|
1410
1414
|
export interface Am4DivergentAxisLabelOptions extends FormFieldObject {
|
|
1411
1415
|
/**
|
package/dist/theme/ThemeApp.d.ts
CHANGED
|
@@ -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 {
|
package/dist/theme/ThemeApp.js
CHANGED
|
@@ -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,
|
|
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<
|
|
189
|
-
export type DateRangePickerShortcut = IShortcut<[
|
|
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;
|
|
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
|
|
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
|
|
90
|
+
* Div when it is collapsed
|
|
91
91
|
*/
|
|
92
92
|
FilterPanelClasses.collapsedDiv = "ic3FilterPanel-collapsedDiv";
|
|
93
93
|
//# sourceMappingURL=ThemeFilterPanel.js.map
|
|
@@ -27,7 +27,6 @@ export declare class TableClasses {
|
|
|
27
27
|
static readonly 'cell--textCenter' = "MuiDataGrid-cell--textCenter";
|
|
28
28
|
static readonly 'cell--textLeft' = "MuiDataGrid-cell--textLeft";
|
|
29
29
|
static readonly 'cell--textRight' = "MuiDataGrid-cell--textRight";
|
|
30
|
-
static readonly 'cell--withRenderer' = "MuiDataGrid-cell--withRenderer";
|
|
31
30
|
static readonly 'cell' = "MuiDataGrid-cell";
|
|
32
31
|
static readonly 'cellCheckbox' = "MuiDataGrid-cellCheckbox";
|
|
33
32
|
static readonly 'checkboxInput' = "MuiDataGrid-checkboxInput";
|
|
@@ -46,8 +45,6 @@ export declare class TableClasses {
|
|
|
46
45
|
static readonly 'columnHeaderTitle' = "MuiDataGrid-columnHeaderTitle";
|
|
47
46
|
static readonly 'columnHeaderTitleContainer' = "MuiDataGrid-columnHeaderTitleContainer";
|
|
48
47
|
static readonly 'columnHeaders' = "MuiDataGrid-columnHeaders";
|
|
49
|
-
static readonly 'columnHeadersInner' = "MuiDataGrid-columnHeadersInner";
|
|
50
|
-
static readonly 'columnHeadersInner--scrollable' = "MuiDataGrid-columnHeadersInner--scrollable";
|
|
51
48
|
static readonly 'columnSeparator--resizable' = "MuiDataGrid-columnSeparator--resizable";
|
|
52
49
|
static readonly 'columnSeparator--resizing' = "MuiDataGrid-columnSeparator--resizing";
|
|
53
50
|
static readonly 'columnSeparator--sideLeft' = "MuiDataGrid-columnSeparator--sideLeft";
|
|
@@ -81,9 +78,6 @@ export declare class TableClasses {
|
|
|
81
78
|
static readonly 'pinnedColumns' = "MuiDataGrid-pinnedColumns";
|
|
82
79
|
static readonly 'pinnedColumns--left' = "MuiDataGrid-pinnedColumns--left";
|
|
83
80
|
static readonly 'pinnedColumns--right' = "MuiDataGrid-pinnedColumns--right";
|
|
84
|
-
static readonly 'pinnedColumnHeaders' = "MuiDataGrid-pinnedColumnHeaders";
|
|
85
|
-
static readonly 'pinnedColumnHeaders--left' = "MuiDataGrid-pinnedColumnHeaders--left";
|
|
86
|
-
static readonly 'pinnedColumnHeaders--right' = "MuiDataGrid-pinnedColumnHeaders--right";
|
|
87
81
|
static readonly 'root' = "MuiDataGrid-root";
|
|
88
82
|
static readonly 'row--editable' = "MuiDataGrid-row--editable";
|
|
89
83
|
static readonly 'row--editing' = "MuiDataGrid-row--editing";
|
|
@@ -151,4 +145,8 @@ export interface TableChartOptions extends BaseTableChartOptions {
|
|
|
151
145
|
* Use column header groups.
|
|
152
146
|
*/
|
|
153
147
|
useColumnGrouping: boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Use checkbox selection. Adds a column with checkboxes as the first column.
|
|
150
|
+
*/
|
|
151
|
+
useCheckboxSelection: boolean;
|
|
154
152
|
}
|
package/dist/theme/ThemeTable.js
CHANGED
|
@@ -22,8 +22,6 @@ TableClasses['cell--textCenter'] = "MuiDataGrid-cell--textCenter";
|
|
|
22
22
|
TableClasses['cell--textLeft'] = "MuiDataGrid-cell--textLeft";
|
|
23
23
|
/* Styles applied to the cell element if align="right". */
|
|
24
24
|
TableClasses['cell--textRight'] = "MuiDataGrid-cell--textRight";
|
|
25
|
-
/* Styles applied to the cell element if the cell has a custom renderer. */
|
|
26
|
-
TableClasses['cell--withRenderer'] = "MuiDataGrid-cell--withRenderer";
|
|
27
25
|
/* Styles applied to the cell element. */
|
|
28
26
|
TableClasses['cell'] = "MuiDataGrid-cell";
|
|
29
27
|
/* Styles applied to the cell checkbox element. */
|
|
@@ -60,10 +58,6 @@ TableClasses['columnHeaderTitle'] = "MuiDataGrid-columnHeaderTitle";
|
|
|
60
58
|
TableClasses['columnHeaderTitleContainer'] = "MuiDataGrid-columnHeaderTitleContainer";
|
|
61
59
|
/* Styles applied to the column headers. */
|
|
62
60
|
TableClasses['columnHeaders'] = "MuiDataGrid-columnHeaders";
|
|
63
|
-
/* Styles applied to the column headers's inner element. */
|
|
64
|
-
TableClasses['columnHeadersInner'] = "MuiDataGrid-columnHeadersInner";
|
|
65
|
-
/* Styles applied to the column headers's inner element if there is a horizontal scrollbar. */
|
|
66
|
-
TableClasses['columnHeadersInner--scrollable'] = "MuiDataGrid-columnHeadersInner--scrollable";
|
|
67
61
|
/* Styles applied to the column header separator if the column is resizable. */
|
|
68
62
|
TableClasses['columnSeparator--resizable'] = "MuiDataGrid-columnSeparator--resizable";
|
|
69
63
|
/* Styles applied to the column header separator if the column is being resized. */
|
|
@@ -130,12 +124,6 @@ TableClasses['pinnedColumns'] = "MuiDataGrid-pinnedColumns";
|
|
|
130
124
|
TableClasses['pinnedColumns--left'] = "MuiDataGrid-pinnedColumns--left";
|
|
131
125
|
/* Styles applied to the right pinned columns. */
|
|
132
126
|
TableClasses['pinnedColumns--right'] = "MuiDataGrid-pinnedColumns--right";
|
|
133
|
-
/* Styles applied to the pinned column headers. */
|
|
134
|
-
TableClasses['pinnedColumnHeaders'] = "MuiDataGrid-pinnedColumnHeaders";
|
|
135
|
-
/* Styles applied to the left pinned column headers. */
|
|
136
|
-
TableClasses['pinnedColumnHeaders--left'] = "MuiDataGrid-pinnedColumnHeaders--left";
|
|
137
|
-
/* Styles applied to the right pinned column headers. */
|
|
138
|
-
TableClasses['pinnedColumnHeaders--right'] = "MuiDataGrid-pinnedColumnHeaders--right";
|
|
139
127
|
/* Styles applied to the root element. */
|
|
140
128
|
TableClasses['root'] = "MuiDataGrid-root";
|
|
141
129
|
/* Styles applied to the row element if the row is editable. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeTable.js","sourceRoot":"","sources":["../../src/theme/ThemeTable.ts"],"names":[],"mappings":";;;AAuBA;;;GAGG;AACH,MAAa,YAAY;;AAAzB,
|
|
1
|
+
{"version":3,"file":"ThemeTable.js","sourceRoot":"","sources":["../../src/theme/ThemeTable.ts"],"names":[],"mappings":";;;AAuBA;;;GAGG;AACH,MAAa,YAAY;;AAAzB,oCAoJC;AAnJG,+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,CAAC;AAC9D,4DAA4D;AAC5C,gCAAkB,GAAG,8BAA8B,CAAC;AACpE,0DAA0D;AAC1C,8BAAgB,GAAG,4BAA4B,CAAC;AAChE,2DAA2D;AAC3C,+BAAiB,GAAG,6BAA6B,CAAC;AAClE,0CAA0C;AAC1B,oBAAM,GAAG,kBAAkB,CAAC;AAC5C,mDAAmD;AACnC,4BAAc,GAAG,0BAA0B,CAAC;AAC5D,wDAAwD;AACxC,6BAAe,GAAG,2BAA2B,CAAC;AAC9D,mEAAmE;AACnD,yCAA2B,GAAG,uCAAuC,CAAC;AACtF,iEAAiE;AACjD,uCAAyB,GAAG,qCAAqC,CAAC;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BAAK,GAAG,iBAAiB,CAAC;AAC1C,+HAA+H;AAC/G,wBAAU,GAAG,sBAAsB,CAAC;AACpD,mDAAmD;AACnC,0BAAY,GAAG,wBAAwB,CAAC;AACxD,sDAAsD;AACtC,gCAAkB,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"}
|
|
@@ -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;;GAEG;AACa,4BAAW,GAAW,0BAA0B,CAAC;AAEjE;;GAEG;AACa,2B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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.
|
|
3
|
+
"version": "8.4.11",
|
|
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.
|
|
15
|
-
"@mui/system": "5.15.
|
|
16
|
-
"@emotion/react": "11.11.
|
|
17
|
-
"@emotion/styled": "11.11.
|
|
14
|
+
"@mui/material": "5.15.15",
|
|
15
|
+
"@mui/system": "5.15.15",
|
|
16
|
+
"@emotion/react": "11.11.4",
|
|
17
|
+
"@emotion/styled": "11.11.5"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/markerclustererplus": "2.1.33",
|
|
21
|
-
"@types/node": "20.
|
|
22
|
-
"@types/react": "18.
|
|
21
|
+
"@types/node": "20.12.7",
|
|
22
|
+
"@types/react": "18.3.1",
|
|
23
23
|
"del-cli": "5.1.0",
|
|
24
|
-
"typescript": "5.
|
|
24
|
+
"typescript": "5.4.5"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "del-cli dist && npx tsc",
|