@ic3/reporting-api 8.4.0-alpha.2 → 8.4.1
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 +2 -2
- package/dist/ApiUtils.js.map +1 -1
- package/dist/ITypes.d.ts +10 -0
- package/dist/IcEvent.d.ts +13 -0
- package/dist/IcEvent.js +11 -1
- package/dist/IcEvent.js.map +1 -1
- package/dist/PublicAmchartsData.d.ts +3 -2
- package/dist/PublicAmchartsData.js +6 -6
- package/dist/PublicAmchartsData.js.map +1 -1
- package/dist/PublicContext.d.ts +42 -24
- package/dist/PublicContext.js.map +1 -1
- package/dist/PublicTemplate.d.ts +13 -3
- package/dist/PublicTemplate.js.map +1 -1
- package/dist/PublicTemplateForm.d.ts +1 -1
- package/dist/PublicTemplateForm.js +1 -1
- package/dist/PublicTemplateForm.js.map +1 -1
- package/dist/PublicTheme.d.ts +40 -3
- package/dist/PublicTheme.js.map +1 -1
- package/dist/PublicTidyColumn.d.ts +17 -1
- package/dist/PublicTidyColumn.js.map +1 -1
- package/dist/PublicTidyTable.d.ts +7 -1
- package/dist/PublicTidyTableInteractions.d.ts +4 -3
- package/dist/PublicTidyTableInteractions.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/theme/ThemeBaseTable.d.ts +10 -0
- package/dist/theme/ThemeDatePicker.d.ts +25 -14
- package/dist/theme/ThemeDatePicker.js +13 -1
- package/dist/theme/ThemeDatePicker.js.map +1 -1
- package/dist/theme/ThemeFilterAutocomplete.d.ts +1 -2
- package/dist/theme/ThemeFilterPanel.d.ts +1 -0
- package/dist/theme/ThemeFilterPanel.js +1 -0
- package/dist/theme/ThemeFilterPanel.js.map +1 -1
- package/dist/theme/ThemeFilterSlider.d.ts +1 -0
- package/dist/theme/ThemeFilterSlider.js +1 -0
- package/dist/theme/ThemeFilterSlider.js.map +1 -1
- package/dist/theme/ThemeFilterTree.d.ts +9 -3
- package/dist/theme/ThemeFilterTree.js +12 -1
- package/dist/theme/ThemeFilterTree.js.map +1 -1
- package/dist/theme/ThemeIc3TableCell.d.ts +6 -0
- package/dist/theme/ThemeIc3TableCell.js +7 -0
- package/dist/theme/ThemeIc3TableCell.js.map +1 -0
- package/dist/theme/ThemeLazyTreeClasses.d.ts +12 -0
- package/dist/theme/ThemeLazyTreeClasses.js +12 -0
- package/dist/theme/ThemeLazyTreeClasses.js.map +1 -1
- package/dist/theme/ThemeListCounter.d.ts +2 -0
- package/dist/theme/ThemeListCounter.js +2 -0
- package/dist/theme/ThemeListCounter.js.map +1 -1
- package/dist/theme/ThemeWidgetBox.d.ts +1 -0
- package/dist/theme/ThemeWidgetBox.js +1 -0
- package/dist/theme/ThemeWidgetBox.js.map +1 -1
- package/package.json +11 -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.1" || "-", "Fri, 05 May 2023 07:37:25 GMT" || "-") }, definition);
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
@@ -23,7 +23,7 @@ class ApiUtils {
|
|
|
23
23
|
}, reactComponent: false, withDrilldownPivotTableLikeAs: false });
|
|
24
24
|
}
|
|
25
25
|
static resolveAmCharts4WidgetTemplateDefinition(definition, wrapped) {
|
|
26
|
-
return Object.assign(Object.assign(Object.assign({}, wrapped), definition), { resolveDefinition: undefined, jsCode: wrapped.jsCode });
|
|
26
|
+
return Object.assign(Object.assign(Object.assign({}, wrapped), definition /* since Typescript 5.0.2 */), { resolveDefinition: undefined, jsCode: wrapped.jsCode });
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* A utility function creating a wrapper widget template definition for existing AmCharts 4 widgets.
|
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,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,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"}
|
package/dist/ITypes.d.ts
CHANGED
|
@@ -29,3 +29,13 @@ export declare enum QueryType {
|
|
|
29
29
|
EMBEDDED = "embedded",
|
|
30
30
|
HTTP_CSV = "HTTP_CSV"
|
|
31
31
|
}
|
|
32
|
+
export interface IWidgetBoxIconsDefinition {
|
|
33
|
+
disableQueryRunning?: boolean;
|
|
34
|
+
disableQueryFilter?: boolean;
|
|
35
|
+
disableQueryCellOnError?: boolean;
|
|
36
|
+
disableQueryMaxRowsReached?: boolean;
|
|
37
|
+
disableDrilldown?: boolean;
|
|
38
|
+
disableHelp?: boolean;
|
|
39
|
+
disableInteractionSwitch?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export type IUserMenuOptions = 'editGadget' | 'editWidget' | 'deleteWidget' | 'deleteGadget' | 'convertGadgetToWidget' | 'addEventToAllQueries' | 'migrateWidget' | 'maximize' | 'clearSorting' | 'showData' | 'resetQuery' | 'clearState' | 'clearSelection' | 'toInitialSelectionOnEditing' | 'toInitialSelection' | 'export_xls' | 'export_png' | 'export_svg';
|
package/dist/IcEvent.d.ts
CHANGED
|
@@ -39,3 +39,16 @@ export interface TidyActionEvent extends PublicIcEvent {
|
|
|
39
39
|
readonly type: IcEventType.TIDY_ACTION;
|
|
40
40
|
readonly tidyIdxHint: number;
|
|
41
41
|
}
|
|
42
|
+
export declare enum WidgetNotificationType {
|
|
43
|
+
doAllEvents = "ic3doAllEvents",
|
|
44
|
+
doExportToExcel = "ic3exportToExcel",
|
|
45
|
+
doExportToPNG = "ic3exportToPNG",
|
|
46
|
+
doExportToSVG = "ic3exportToSVG",
|
|
47
|
+
toInitialSelection = "ic3toInitialSelection",
|
|
48
|
+
clearSelection = "ic3clearSelection",
|
|
49
|
+
doTemplateUserMenuAction = "ic3doTemplateUserMenuAction"
|
|
50
|
+
}
|
|
51
|
+
export type WidgetNotificationHandler = {
|
|
52
|
+
type: WidgetNotificationType;
|
|
53
|
+
handler: (type: WidgetNotificationType, event: PublicIcEvent) => void;
|
|
54
|
+
};
|
package/dist/IcEvent.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IcEventType = exports.emptySet = void 0;
|
|
3
|
+
exports.WidgetNotificationType = exports.IcEventType = exports.emptySet = void 0;
|
|
4
4
|
exports.emptySet = "∅";
|
|
5
5
|
var IcEventType;
|
|
6
6
|
(function (IcEventType) {
|
|
@@ -9,4 +9,14 @@ var IcEventType;
|
|
|
9
9
|
IcEventType[IcEventType["TIDY_ACTION"] = 2] = "TIDY_ACTION";
|
|
10
10
|
IcEventType[IcEventType["API"] = 3] = "API";
|
|
11
11
|
})(IcEventType = exports.IcEventType || (exports.IcEventType = {}));
|
|
12
|
+
var WidgetNotificationType;
|
|
13
|
+
(function (WidgetNotificationType) {
|
|
14
|
+
WidgetNotificationType["doAllEvents"] = "ic3doAllEvents";
|
|
15
|
+
WidgetNotificationType["doExportToExcel"] = "ic3exportToExcel";
|
|
16
|
+
WidgetNotificationType["doExportToPNG"] = "ic3exportToPNG";
|
|
17
|
+
WidgetNotificationType["doExportToSVG"] = "ic3exportToSVG";
|
|
18
|
+
WidgetNotificationType["toInitialSelection"] = "ic3toInitialSelection";
|
|
19
|
+
WidgetNotificationType["clearSelection"] = "ic3clearSelection";
|
|
20
|
+
WidgetNotificationType["doTemplateUserMenuAction"] = "ic3doTemplateUserMenuAction";
|
|
21
|
+
})(WidgetNotificationType = exports.WidgetNotificationType || (exports.WidgetNotificationType = {}));
|
|
12
22
|
//# sourceMappingURL=IcEvent.js.map
|
package/dist/IcEvent.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IcEvent.js","sourceRoot":"","sources":["../src/IcEvent.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG,GAAG,CAAA;AAE3B,IAAY,WAKX;AALD,WAAY,WAAW;IACnB,iEAAc,CAAA;IACd,uDAAS,CAAA;IACT,2DAAW,CAAA;IACX,2CAAG,CAAA;AACP,CAAC,EALW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAKtB"}
|
|
1
|
+
{"version":3,"file":"IcEvent.js","sourceRoot":"","sources":["../src/IcEvent.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG,GAAG,CAAA;AAE3B,IAAY,WAKX;AALD,WAAY,WAAW;IACnB,iEAAc,CAAA;IACd,uDAAS,CAAA;IACT,2DAAW,CAAA;IACX,2CAAG,CAAA;AACP,CAAC,EALW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAKtB;AA+CD,IAAY,sBAaX;AAbD,WAAY,sBAAsB;IAE9B,wDAA8B,CAAA;IAE9B,8DAAoC,CAAA;IACpC,0DAAgC,CAAA;IAChC,0DAAgC,CAAA;IAEhC,sEAA4C,CAAA;IAE5C,8DAAoC,CAAA;IAEpC,kFAAwD,CAAA;AAC5D,CAAC,EAbW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAajC"}
|
|
@@ -11,7 +11,7 @@ export interface ISeriesValues {
|
|
|
11
11
|
type: ISeriesValuesType;
|
|
12
12
|
values: ITidyNumericColumn;
|
|
13
13
|
colors?: ITidyColorColumn;
|
|
14
|
-
|
|
14
|
+
parentValueColIdx?: number;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* Used for managing amcharts data in the Amcharts plugin. This class controls both the creation of the charts
|
|
@@ -24,7 +24,7 @@ export declare class PublicAmchartsData {
|
|
|
24
24
|
private readonly onGroup;
|
|
25
25
|
private readonly table;
|
|
26
26
|
constructor(table: ITidyTable, onValues: ISeriesValues[], onAxis: ITidyColumn, onGroup?: ITidyColumn, onLevel?: ITidyColumn);
|
|
27
|
-
static getSeriesId(
|
|
27
|
+
static getSeriesId(groupKey: string, valueColIdx: number): string;
|
|
28
28
|
/**
|
|
29
29
|
* Get the data for the chart.
|
|
30
30
|
*/
|
|
@@ -44,6 +44,7 @@ export declare class PublicAmchartsData {
|
|
|
44
44
|
* @param idx n
|
|
45
45
|
*/
|
|
46
46
|
getValueColumn(idx: number): ITidyNumericColumn;
|
|
47
|
+
getValueColumns(): ITidyNumericColumn[];
|
|
47
48
|
/**
|
|
48
49
|
* Call a function on each series and it's column
|
|
49
50
|
* @param itemControl map keeping track of current series in the chart.
|
|
@@ -21,11 +21,8 @@ class PublicAmchartsData {
|
|
|
21
21
|
this.onLevel = onLevel;
|
|
22
22
|
this.table = table;
|
|
23
23
|
}
|
|
24
|
-
static getSeriesId(
|
|
25
|
-
|
|
26
|
-
return group.getAmcharts4GroupKey(rowIdx) + "." + String(seriesId);
|
|
27
|
-
}
|
|
28
|
-
return PublicTidyTableTypes_1.IAmcharts4DataKey.NULL + "." + String(seriesId);
|
|
24
|
+
static getSeriesId(groupKey, valueColIdx) {
|
|
25
|
+
return groupKey + "." + String(valueColIdx);
|
|
29
26
|
}
|
|
30
27
|
/**
|
|
31
28
|
* Get the data for the chart.
|
|
@@ -65,7 +62,7 @@ class PublicAmchartsData {
|
|
|
65
62
|
if (seriesControl.typeFilter != null && !seriesControl.typeFilter(onValue.type)) {
|
|
66
63
|
return;
|
|
67
64
|
}
|
|
68
|
-
const seriesKey = groupKey
|
|
65
|
+
const seriesKey = PublicAmchartsData.getSeriesId(groupKey, idx);
|
|
69
66
|
let item = itemControl.get(seriesKey);
|
|
70
67
|
if (item == null) {
|
|
71
68
|
const newItem = seriesControl.create(seriesKey, groupKey, seriesKey + "v", seriesKey + "c", onValue);
|
|
@@ -120,6 +117,9 @@ class PublicAmchartsData {
|
|
|
120
117
|
getValueColumn(idx) {
|
|
121
118
|
return this.onValues[idx].values;
|
|
122
119
|
}
|
|
120
|
+
getValueColumns() {
|
|
121
|
+
return this.onValues.map(i => i.values);
|
|
122
|
+
}
|
|
123
123
|
/**
|
|
124
124
|
* Call a function on each series and it's column
|
|
125
125
|
* @param itemControl map keeping track of current series in the chart.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicAmchartsData.js","sourceRoot":"","sources":["../src/PublicAmchartsData.ts"],"names":[],"mappings":";;;AAEA,iEAA2G;AAE3G,IAAY,iBAKX;AALD,WAAY,iBAAiB;IACzB,yDAAI,CAAA;IACJ,6DAAM,CAAA;IACN,2DAAK,CAAA;IACL,mEAAS,CAAA;AACb,CAAC,EALW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAK5B;AAcD;;;GAGG;AACH,MAAa,kBAAkB;IAQ3B,YAAY,KAAiB,EAAE,QAAyB,EAAE,MAAmB,EAAE,OAAqB,EACxF,OAAqB;QAC7B,IAAI,CAAC,QAAQ,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IAAI,KAAK,iBAAiB,CAAC,KAAK;SACvD,EAAE,IAAI,CAAC,CAAC;IACb,CAAC;IAED;;OAEG;IACH,aAAa;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;IACnC,CAAC;IAED;;OAEG;IACH,cAAc;QACV,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,iBAAiB,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;IACpF,CAAC;CAEJ;AAxKD,gDAwKC"}
|
package/dist/PublicContext.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ import { IPublicWidgetTemplateDefinition } from "./PublicTemplate";
|
|
|
9
9
|
import { ITidyMath } from "./PublicTidyMath";
|
|
10
10
|
import { ILogger } from "./Logger";
|
|
11
11
|
import { AppNotification } from "./INotification";
|
|
12
|
+
import { WidgetNotificationHandler } from "./IcEvent";
|
|
13
|
+
import { TidyRowFilter } from "./PublicTidyTableTypes";
|
|
12
14
|
export declare enum WidgetRenderLayoutStatus {
|
|
13
15
|
RENDERING = "RENDERING",
|
|
14
16
|
RENDERED = "RENDERED"
|
|
@@ -53,7 +55,7 @@ export interface IPublicContext {
|
|
|
53
55
|
info: string;
|
|
54
56
|
description?: string;
|
|
55
57
|
};
|
|
56
|
-
localizeFormField(pluginId: string, widgetTemplateId: string, name: string, ...args: any[]): [string, string | undefined];
|
|
58
|
+
localizeFormField(pluginId: string, widgetTemplateId: string, name: string, ...args: any[]): [string, string | undefined, string | undefined];
|
|
57
59
|
/**
|
|
58
60
|
* A bunch of mathematical functions related to the tidy table.
|
|
59
61
|
*/
|
|
@@ -64,53 +66,66 @@ export interface IPublicContext {
|
|
|
64
66
|
* @param expression typically coming from a widget field so it cannot be null if there is a default value.
|
|
65
67
|
* To prevent usage of the default, pass an "empty" string that makes this method returns
|
|
66
68
|
* undefined.
|
|
69
|
+
* @param selectedColumns get the row of these columns using `_rowOfSelectedColumns` or `_selectedColumns`.
|
|
70
|
+
* @param isRowSelected function for usage with `totalSelectedOrTotal`. Use tableInter.isSelected(rowIdx).
|
|
67
71
|
*/
|
|
68
|
-
createTableRowTextExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined): ((rowIdx: number) => string) | undefined;
|
|
72
|
+
createTableRowTextExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined, isRowSelected?: TidyRowFilter): ((rowIdx: number) => string) | undefined;
|
|
69
73
|
/**
|
|
70
74
|
* Not in widget public context because of transformation not applied from a widget context always.
|
|
71
75
|
*
|
|
72
76
|
* @param expression typically coming from a widget field so it cannot be null if there is a default value.
|
|
73
77
|
* To prevent usage of the default, pass an "empty" string that makes this method returns
|
|
74
78
|
* undefined.
|
|
79
|
+
* @param isRowSelected function for usage with `totalSelectedOrTotal`. Use tableInter.isSelected(rowIdx).
|
|
75
80
|
*/
|
|
76
|
-
createTableTextExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined): (() => string) | undefined;
|
|
81
|
+
createTableTextExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, isRowSelected?: TidyRowFilter): (() => string) | undefined;
|
|
77
82
|
/**
|
|
78
83
|
* Not in widget public context because of transformation not applied from a widget context always.
|
|
79
84
|
*
|
|
80
85
|
* @param expression typically coming from a widget field so it cannot be null if there is a default value.
|
|
81
86
|
* To prevent usage of the default, pass an "empty" string that makes this method returns
|
|
82
87
|
* undefined.
|
|
88
|
+
* @param selectedColumns get the row of these columns using `_rowOfSelectedColumns` or `_selectedColumns`.
|
|
89
|
+
* @param isRowSelected function for usage with `totalSelectedOrTotal`. Use tableInter.isSelected(rowIdx).
|
|
83
90
|
*/
|
|
84
|
-
createTableRowMarkdownExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined): ((rowIdx: number) => string) | undefined;
|
|
91
|
+
createTableRowMarkdownExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined, isRowSelected?: TidyRowFilter): ((rowIdx: number) => string) | undefined;
|
|
85
92
|
/**
|
|
86
93
|
* Not in widget public context because of transformation not applied from a widget context always.
|
|
87
94
|
*
|
|
88
95
|
* @param expression typically coming from a widget field so it cannot be null if there is a default value.
|
|
89
96
|
* To prevent usage of the default, pass an "empty" string that makes this method returns
|
|
90
97
|
* undefined.
|
|
98
|
+
* @param selectedColumns get the row of these columns using `_rowOfSelectedColumns` or `_selectedColumns`.
|
|
99
|
+
* @param isRowSelected function for usage with `totalSelectedOrTotal`. Use tableInter.isSelected(rowIdx).
|
|
91
100
|
*/
|
|
92
|
-
createTableMarkdownExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined): (() => string) | undefined;
|
|
101
|
+
createTableMarkdownExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined, isRowSelected?: TidyRowFilter): (() => string) | undefined;
|
|
93
102
|
/**
|
|
94
103
|
* Not in widget public context because of transformation not applied from a widget context always.
|
|
95
104
|
*
|
|
96
105
|
* @param expression typically coming from a widget field so it cannot be null if there is a default value.
|
|
97
106
|
* To prevent usage of the default, pass an "empty" string that makes this method returns
|
|
98
107
|
* undefined.
|
|
108
|
+
* @param selectedColumns get the row of these columns using `_rowOfSelectedColumns` or `_selectedColumns`.
|
|
109
|
+
* @param isRowSelected function for usage with `totalSelectedOrTotal`. Use tableInter.isSelected(rowIdx).
|
|
99
110
|
*/
|
|
100
|
-
createTableRowNumericExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined): ((rowIdx: number) => number | undefined) | undefined;
|
|
111
|
+
createTableRowNumericExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined, isRowSelected?: TidyRowFilter): ((rowIdx: number) => number | undefined) | undefined;
|
|
101
112
|
/**
|
|
102
113
|
* same as createTableRowNumericExpr but returning a string
|
|
114
|
+
* @param selectedColumns get the row of these columns using `_rowOfSelectedColumns` or `_selectedColumns`.
|
|
115
|
+
* @param isRowSelected function for usage with `totalSelectedOrTotal`. Use tableInter.isSelected(rowIdx).
|
|
103
116
|
*/
|
|
104
|
-
createTableRowNumericStringExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined): ((rowIdx: number) => string | undefined) | undefined;
|
|
105
|
-
createTableScaleRowNumericExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined): ((rowIdx: number) => number | undefined) | undefined;
|
|
117
|
+
createTableRowNumericStringExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined, isRowSelected?: TidyRowFilter): ((rowIdx: number) => string | undefined) | undefined;
|
|
118
|
+
createTableScaleRowNumericExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined, isRowSelected?: TidyRowFilter): ((rowIdx: number) => number | undefined) | undefined;
|
|
106
119
|
/**
|
|
107
120
|
* Not in widget public context because of transformation not applied from a widget context always.
|
|
108
121
|
*
|
|
109
122
|
* @param expression typically coming from a widget field so it cannot be null if there is a default value.
|
|
110
123
|
* To prevent usage of the default, pass an "empty" string that makes this method returns
|
|
111
124
|
* undefined.
|
|
125
|
+
* @param selectedColumns get the row of these columns using `_rowOfSelectedColumns` or `_selectedColumns`.
|
|
126
|
+
* @param isRowSelected function for usage with `totalSelectedOrTotal`. Use tableInter.isSelected(rowIdx).
|
|
112
127
|
*/
|
|
113
|
-
createTableNumericExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined): (() => number | undefined) | undefined;
|
|
128
|
+
createTableNumericExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined, isRowSelected?: TidyRowFilter): (() => number | undefined) | undefined;
|
|
114
129
|
}
|
|
115
130
|
export interface IWidgetPublicContext extends IPublicContext {
|
|
116
131
|
/**
|
|
@@ -139,14 +154,6 @@ export interface IWidgetPublicContext extends IPublicContext {
|
|
|
139
154
|
*/
|
|
140
155
|
formatPercent(value: number | string | undefined | null, locale?: string): string;
|
|
141
156
|
wrapWithTooltip(tooltip: string | undefined, wrappedElement: React.ReactElement): React.ReactElement;
|
|
142
|
-
/**
|
|
143
|
-
* Allows to setup a template specific callback on userMenuAction (e.g. setZoom in GoogleMaps action)
|
|
144
|
-
*
|
|
145
|
-
* if the callback returns an object, the object should contains a record with new values for the
|
|
146
|
-
* template form fields, FormFieldDef (i.e. {zoom:14} to set the zoom to 14). If in editing mode,
|
|
147
|
-
* the edited options in the widget editor panel will be updated.
|
|
148
|
-
*/
|
|
149
|
-
onUserMenuAction(callback: (userMenuAction: string, event: any) => Record<string, any> | undefined): void;
|
|
150
157
|
onWidgetRenderStatusChange(status: WidgetRenderLayoutStatus): void;
|
|
151
158
|
/**
|
|
152
159
|
* Event methods that do not depend on a Table
|
|
@@ -181,13 +188,6 @@ export interface IWidgetPublicContext extends IPublicContext {
|
|
|
181
188
|
* Note it's NOT the initial value but value if undefined
|
|
182
189
|
*/
|
|
183
190
|
useReduxOwnPropsState<T>(fieldName: string, valueIfUndefined?: T): [T, (newValue: T | undefined) => void];
|
|
184
|
-
/**
|
|
185
|
-
* doExport callback is called on each exportToExcel from the userMenu of the widget
|
|
186
|
-
*
|
|
187
|
-
* if the callback returns a tidyTable, this table will be exported
|
|
188
|
-
* if undefined is returned no further action
|
|
189
|
-
*/
|
|
190
|
-
onExportToExcel(doExport: (fileName: string | undefined) => ITidyTable | undefined): void;
|
|
191
191
|
/**
|
|
192
192
|
* React -> useSelector on widgetOwnProps[fieldName]
|
|
193
193
|
*/
|
|
@@ -242,6 +242,24 @@ export interface IWidgetPublicContext extends IPublicContext {
|
|
|
242
242
|
* Clear the warnings in the widget.
|
|
243
243
|
*/
|
|
244
244
|
widgetClearWarnings(): void;
|
|
245
|
+
/**
|
|
246
|
+
* Notification
|
|
247
|
+
*
|
|
248
|
+
* like a listener on the components, for React the implementation uses a useEffect, it should
|
|
249
|
+
* NOT be called conditionally.
|
|
250
|
+
*/
|
|
251
|
+
useNotification(notifications: WidgetNotificationHandler | WidgetNotificationHandler[], deps: ReadonlyArray<unknown> | undefined): void;
|
|
252
|
+
useUserMenu(handler: (userMenu: string) => any | void, deps: ReadonlyArray<unknown> | undefined): void;
|
|
253
|
+
/**
|
|
254
|
+
* doExport callback is called on each exportToExcel from the userMenu of the widget
|
|
255
|
+
*
|
|
256
|
+
* if the callback returns a tidyTable, this table will be exported
|
|
257
|
+
* if undefined is returned no further action
|
|
258
|
+
*
|
|
259
|
+
* disabled === true, the doExport function is not used
|
|
260
|
+
*/
|
|
261
|
+
onExportToExcel(doExport: undefined | ((fileName: string | undefined) => ITidyTable | undefined), disabled?: boolean): void;
|
|
262
|
+
useUserMenuWidth(): number | undefined;
|
|
245
263
|
}
|
|
246
264
|
export interface IWidgetEditorPublicContext {
|
|
247
265
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicContext.js","sourceRoot":"","sources":["../src/PublicContext.ts"],"names":[],"mappings":";;;
|
|
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,GAAxB,gCAAwB,KAAxB,gCAAwB,QAGnC;AAED,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC7B,uEAAO,CAAA;IACP,mEAAK,CAAA;AACT,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC;AAED,IAAY,mBAAkC;AAA9C,WAAY,mBAAmB;IAAG,6DAAI,CAAA;IAAE,+DAAK,CAAA;AAAA,CAAC,EAAlC,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAAe"}
|
package/dist/PublicTemplate.d.ts
CHANGED
|
@@ -139,17 +139,27 @@ export interface IPublicJsChartTemplate<T extends FormFieldObject> {
|
|
|
139
139
|
renderOnResizeJS?: (data: IWidgetTemplateTidyData, options: T, header: string, info: IWidgetLayoutInfo) => void;
|
|
140
140
|
dispose: () => void;
|
|
141
141
|
}
|
|
142
|
+
export interface IPublicWidgetReactProps<OPTIONS> {
|
|
143
|
+
wContext: IWidgetPublicContext;
|
|
144
|
+
data: IWidgetTemplateTidyData;
|
|
145
|
+
options: OPTIONS;
|
|
146
|
+
widgetHeader: string;
|
|
147
|
+
}
|
|
142
148
|
/**
|
|
143
|
-
*
|
|
149
|
+
*
|
|
144
150
|
*
|
|
145
151
|
* @see IPublicReactChartTemplate
|
|
146
152
|
* @see FormFieldObject
|
|
147
153
|
*/
|
|
148
154
|
export interface IPublicWidgetReactTemplateDefinition<OPTIONS extends FormFieldObject> extends IPublicCommonWidgetTemplateDefinition<OPTIONS> {
|
|
149
155
|
/**
|
|
150
|
-
*
|
|
156
|
+
* Deprecated: use reactEl instead.
|
|
157
|
+
*/
|
|
158
|
+
jsCode?: (context: IWidgetPublicContext) => IPublicReactChartTemplate<OPTIONS>;
|
|
159
|
+
/**
|
|
160
|
+
* The React Hook component (function with props as parameter)
|
|
151
161
|
*/
|
|
152
|
-
|
|
162
|
+
reactEl?: React.FunctionComponent<IPublicWidgetReactProps<OPTIONS>>;
|
|
153
163
|
reactComponent: true;
|
|
154
164
|
/**
|
|
155
165
|
* Only the widget template meta information is required when starting the application.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicTemplate.js","sourceRoot":"","sources":["../src/PublicTemplate.ts"],"names":[],"mappings":";;;AAyDA,IAAY,4CAIX;AAJD,WAAY,4CAA4C;IACpD,qEAAqB,CAAA;IACrB,yEAAyB,CAAA;IACzB,2EAA2B,CAAA;AAC/B,CAAC,EAJW,4CAA4C,GAA5C,oDAA4C,KAA5C,oDAA4C,QAIvD;
|
|
1
|
+
{"version":3,"file":"PublicTemplate.js","sourceRoot":"","sources":["../src/PublicTemplate.ts"],"names":[],"mappings":";;;AAyDA,IAAY,4CAIX;AAJD,WAAY,4CAA4C;IACpD,qEAAqB,CAAA;IACrB,yEAAyB,CAAA;IACzB,2EAA2B,CAAA;AAC/B,CAAC,EAJW,4CAA4C,GAA5C,oDAA4C,KAA5C,oDAA4C,QAIvD;AAsdD;;;;GAIG;AACH,IAAY,4BAKX;AALD,WAAY,4BAA4B;IACpC,+CAAe,CAAA;IACf,iDAAiB,CAAA;IACjB,2CAAW,CAAA;IACX,6CAAa,CAAA;AACjB,CAAC,EALW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAKvC;AA6BD;;GAEG;AACH,IAAY,wBAMX;AAND,WAAY,wBAAwB;IAChC,mDAAuB,CAAA;IAEvB,gBAAgB;IAChB,0DAA8B,CAAA;IAC9B,iEAAqC,CAAA;AACzC,CAAC,EANW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAMnC"}
|
|
@@ -101,7 +101,7 @@ export type FormFields<T extends FormFieldObject> = {
|
|
|
101
101
|
}) & (Required<T>[key] extends FormFieldObject ? Omit<IFormEmbeddedFieldDef<Required<T>[key]>, 'fieldPath'> : Required<T>[key] extends IPaletteDef ? Omit<IFormPaletteEditorFieldDef, 'fieldPath'> : Required<T>[key] extends IColorDef ? Omit<IFormColorEditorFieldDef, 'fieldPath'> : Required<T>[key] extends TidyTableColumnSelector[] ? Omit<IFormColumnChooserMultipleFieldDef, 'fieldPath'> : Required<T>[key] extends TidyTableColumnSelector ? Omit<IFormColumnChooserSingleFieldDef, 'fieldPath'> : Required<T>[key] extends IFormEventMappingArrayFieldDefType ? Omit<IFormEventMappingArrayFieldDef, 'fieldPath'> : Required<T>[key] extends IFormEventArrayFieldDefType ? Omit<IFormEventArrayFieldDef, 'fieldPath'> : Required<T>[key] extends IFormSearchAndReplaceArrayFieldDefType ? Omit<IFormSearchAndReplaceArrayFieldDef, 'fieldPath'> : Required<T>[key] extends Hook<any> ? Omit<IFormHookFieldDef<any>, 'fieldPath'> : Required<T>[key] extends boolean ? Omit<IFormBooleanFieldDef, 'fieldPath'> : Required<T>[key] extends number ? Omit<IFormNumberFieldDef, 'fieldPath'> : Required<T>[key] extends number ? Omit<IFormMaskFieldDef, 'fieldPath'> : Required<T>[key] extends string ? Omit<IFormOptionFieldSingleDef, 'fieldPath'> | Omit<IFormStringFieldDef, 'fieldPath'> | Omit<IFormFormatterPickerFieldDef, 'fieldPath'> | Omit<IFormWidgetVariantFieldDef, 'fieldPath'> | Omit<IFormTidyTableTextExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableTextRowExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableHtmlRowExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableHtmlExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableNumericExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableNumericRowExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableColorRowExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableStringRowExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableScaleRowExprFieldDef, 'fieldPath'> | Omit<IFormJsFieldDef, 'fieldPath'> | Omit<IFormJsonFieldDef, 'fieldPath'> | Omit<IFormMarkdownFieldDef, 'fieldPath'> | Omit<IFormOptionFieldReportPathDef, 'fieldPath'> : Required<T>[key] extends string[] ? Omit<IFormOptionFieldMultipleDef, 'fieldPath'> | Omit<IFormGroupsFieldDef, 'fieldPath'> : never);
|
|
102
102
|
};
|
|
103
103
|
export declare enum IFormFieldGroupTypes {
|
|
104
|
-
Selection = "
|
|
104
|
+
Selection = "groupSelection",
|
|
105
105
|
FilterGeneralOption = "filterGeneralOptionsGroup",
|
|
106
106
|
FilterItem = "filterItemGroup"
|
|
107
107
|
}
|
|
@@ -7,7 +7,7 @@ function formFieldIsSelection(field) {
|
|
|
7
7
|
exports.formFieldIsSelection = formFieldIsSelection;
|
|
8
8
|
var IFormFieldGroupTypes;
|
|
9
9
|
(function (IFormFieldGroupTypes) {
|
|
10
|
-
IFormFieldGroupTypes["Selection"] = "
|
|
10
|
+
IFormFieldGroupTypes["Selection"] = "groupSelection";
|
|
11
11
|
IFormFieldGroupTypes["FilterGeneralOption"] = "filterGeneralOptionsGroup";
|
|
12
12
|
IFormFieldGroupTypes["FilterItem"] = "filterItemGroup";
|
|
13
13
|
})(IFormFieldGroupTypes = exports.IFormFieldGroupTypes || (exports.IFormFieldGroupTypes = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicTemplateForm.js","sourceRoot":"","sources":["../src/PublicTemplateForm.ts"],"names":[],"mappings":";;;AAkBA,SAAgB,oBAAoB,CAAC,KAAyB;IAC1D,OAAO,KAAK,CAAC,KAAK,KAAK,oBAAoB,CAAC,SAAS,CAAC;AAC1D,CAAC;AAFD,oDAEC;AAwJD,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B
|
|
1
|
+
{"version":3,"file":"PublicTemplateForm.js","sourceRoot":"","sources":["../src/PublicTemplateForm.ts"],"names":[],"mappings":";;;AAkBA,SAAgB,oBAAoB,CAAC,KAAyB;IAC1D,OAAO,KAAK,CAAC,KAAK,KAAK,oBAAoB,CAAC,SAAS,CAAC;AAC1D,CAAC;AAFD,oDAEC;AAwJD,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B,oDAA4B,CAAA;IAC5B,yEAAi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ACT,CAAC;AAHD,oDAGC;AAED;;;GAGG;AACH,IAAY,yBAKX;AALD,WAAY,yBAAyB;IACjC,sDAAyB,CAAA;IACzB,sDAAyB,CAAA;IACzB,gEAAmC,CAAA;IACnC,gEAAmC,CAAA;AACvC,CAAC,EALW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAKpC;AAED;;GAEG;AACH,IAAY,mBAEX;AAFD,WAAY,mBAAmB;IAC3B,8CAAuB,CAAA;AAC3B,CAAC,EAFW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAE9B"}
|
package/dist/PublicTheme.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ import { Components } from "@mui/material/styles/components";
|
|
|
27
27
|
import { FilterPanelClassesKey, FilterPanelProps } from "./theme/ThemeFilterPanel";
|
|
28
28
|
import { FilterCheckboxProps, FilterCheckboxRadioClassKey } from "./theme/ThemeFilterCheckboxRadio";
|
|
29
29
|
import { ReportAppLeftPanelClassKey } from "./theme/ThemeReportAppLeftPanel";
|
|
30
|
-
import { FilterTreeClassKey, FilterTreeProps } from "./theme/ThemeFilterTree";
|
|
30
|
+
import { FilterTreeClassKey, FilterTreePopOverClassKey, FilterTreePopOverProps, FilterTreeProps } from "./theme/ThemeFilterTree";
|
|
31
31
|
import { DatePickerClassKey, FilterDatePickerProps } from "./theme/ThemeDatePicker";
|
|
32
32
|
import { FilterAutocompleteClassesKey, FilterAutocompleteProps } from "./theme/ThemeFilterAutocomplete";
|
|
33
33
|
import { AppMenuIconClassKey, AppMenuIconProps } from "./theme/ThemeAppMenuIcon";
|
|
@@ -39,6 +39,8 @@ import { PrintButtonClassKey, StyledPrintButtonDivProps } from "./theme/ThemePri
|
|
|
39
39
|
import { CodeMirrorClassesKey } from "./theme/ThemeCodeMirror";
|
|
40
40
|
import { WidgetTemplateChartOptions } from "./PublicTemplates";
|
|
41
41
|
import { WidgetFilteredByClassesKey } from "./theme/ThemeWidgetFilteredBy";
|
|
42
|
+
import { IUserMenuOptions, IWidgetBoxIconsDefinition } from "./ITypes";
|
|
43
|
+
import { Ic3TableCellProps, ThemeIc3TableCellClassesKey } from "./theme/ThemeIc3TableCell";
|
|
42
44
|
export type Ic3ChartVariants = {
|
|
43
45
|
[Name in keyof WidgetTemplateChartOptions]?: Array<{
|
|
44
46
|
props: {
|
|
@@ -346,6 +348,10 @@ export interface ic3Theme {
|
|
|
346
348
|
radioUnselected: React.ReactNode | undefined;
|
|
347
349
|
radioSelected: React.ReactNode | undefined;
|
|
348
350
|
};
|
|
351
|
+
palette: {
|
|
352
|
+
darken: (color: string, factor: number) => string;
|
|
353
|
+
lighten: (color: string, factor: number) => string;
|
|
354
|
+
};
|
|
349
355
|
table: Record<TableRowHeightOptions, {
|
|
350
356
|
rowHeight: number;
|
|
351
357
|
headerRowHeight: number;
|
|
@@ -359,8 +365,11 @@ export interface ic3Theme {
|
|
|
359
365
|
};
|
|
360
366
|
userMenu: {
|
|
361
367
|
disableUserMenuEdition: boolean;
|
|
362
|
-
userMenuFilter?: (options:
|
|
368
|
+
userMenuFilter?: (options: IUserMenuOptions[], templateDef?: IPublicWidgetTemplateDefinition<any>) => IUserMenuOptions[];
|
|
363
369
|
};
|
|
370
|
+
widgetIcons?: {
|
|
371
|
+
disableWidgetIconsEdition?: boolean;
|
|
372
|
+
} & IWidgetBoxIconsDefinition;
|
|
364
373
|
widgetBox: {
|
|
365
374
|
contentOffset: {
|
|
366
375
|
top: number;
|
|
@@ -472,10 +481,22 @@ export interface ic3ThemeOptions {
|
|
|
472
481
|
googleMap?: {
|
|
473
482
|
options?: google.maps.MapOptions;
|
|
474
483
|
};
|
|
484
|
+
/**
|
|
485
|
+
* Change the settings for the user menu for some or all widgets.
|
|
486
|
+
*/
|
|
475
487
|
userMenu?: {
|
|
488
|
+
/**
|
|
489
|
+
* Set to true to make the user menu option readonly (non-editable) for all widgets.
|
|
490
|
+
*/
|
|
476
491
|
disableUserMenuEdition?: boolean;
|
|
477
|
-
|
|
492
|
+
/**
|
|
493
|
+
* Filter the items in the user menu. Return an empty array to disable and not show the user menu.
|
|
494
|
+
*/
|
|
495
|
+
userMenuFilter?: (options: IUserMenuOptions[], templateDef?: IPublicWidgetTemplateDefinition<any>) => IUserMenuOptions[];
|
|
478
496
|
};
|
|
497
|
+
widgetIcons?: {
|
|
498
|
+
disableWidgetIconsEdition?: boolean;
|
|
499
|
+
} & IWidgetBoxIconsDefinition;
|
|
479
500
|
widgetBox?: {
|
|
480
501
|
contentOffset: {
|
|
481
502
|
top: number;
|
|
@@ -601,6 +622,10 @@ interface ic3BaseComponents {
|
|
|
601
622
|
styleOverrides?: ComponentsOverrides["FilterTree"];
|
|
602
623
|
variants?: ComponentsVariants["FilterTree"];
|
|
603
624
|
};
|
|
625
|
+
FilterTreePopOver?: {
|
|
626
|
+
styleOverrides?: ComponentsOverrides["FilterTreePopOver"];
|
|
627
|
+
variants?: ComponentsVariants["FilterTreePopOver"];
|
|
628
|
+
};
|
|
604
629
|
FilterDatePicker?: {
|
|
605
630
|
styleOverrides?: ComponentsOverrides["FilterDatePicker"];
|
|
606
631
|
variants?: ComponentsVariants["FilterDatePicker"];
|
|
@@ -663,6 +688,12 @@ interface ic3BaseComponents {
|
|
|
663
688
|
WidgetBoxFilteredByTooltip?: {
|
|
664
689
|
styleOverrides?: ComponentsOverrides["WidgetBoxFilteredByTooltip"];
|
|
665
690
|
};
|
|
691
|
+
Ic3TableCell?: {
|
|
692
|
+
styleOverrides?: ComponentsOverrides["Ic3TableCell"];
|
|
693
|
+
};
|
|
694
|
+
Ic3TableCellError?: {
|
|
695
|
+
styleOverrides?: ComponentsOverrides["Ic3TableCellError"];
|
|
696
|
+
};
|
|
666
697
|
"amCharts4.AmCharts4BubbleChart"?: {
|
|
667
698
|
variants?: Ic3ChartVariants["amCharts4.AmCharts4BubbleChart"];
|
|
668
699
|
};
|
|
@@ -768,6 +799,7 @@ declare module '@mui/material/styles/overrides' {
|
|
|
768
799
|
FilterSlider: FilterSliderClassKey;
|
|
769
800
|
ListCounter: ListCounterClassKey;
|
|
770
801
|
FilterTree: FilterTreeClassKey;
|
|
802
|
+
FilterTreePopOver: FilterTreePopOverClassKey;
|
|
771
803
|
FilterDatePicker: DatePickerClassKey;
|
|
772
804
|
FilterAutocomplete: FilterAutocompleteClassesKey;
|
|
773
805
|
HtmlBox: HtmlBoxClassKey;
|
|
@@ -785,6 +817,8 @@ declare module '@mui/material/styles/overrides' {
|
|
|
785
817
|
PrintButton: PrintButtonClassKey;
|
|
786
818
|
CodeMirror: CodeMirrorClassesKey;
|
|
787
819
|
WidgetBoxFilteredByTooltip: WidgetFilteredByClassesKey;
|
|
820
|
+
Ic3TableCell: ThemeIc3TableCellClassesKey;
|
|
821
|
+
Ic3TableCellError: ThemeIc3TableCellClassesKey;
|
|
788
822
|
}
|
|
789
823
|
}
|
|
790
824
|
declare module '@mui/material/styles/props' {
|
|
@@ -796,6 +830,7 @@ declare module '@mui/material/styles/props' {
|
|
|
796
830
|
FilterSlider: FilterSliderProps;
|
|
797
831
|
ListCounter: ListCounterProps;
|
|
798
832
|
FilterTree: FilterTreeProps;
|
|
833
|
+
FilterTreePopOver: FilterTreePopOverProps;
|
|
799
834
|
FilterDatePicker: FilterDatePickerProps;
|
|
800
835
|
FilterAutocomplete: FilterAutocompleteProps;
|
|
801
836
|
HtmlBox: StyledHtmlBoxProps;
|
|
@@ -808,6 +843,8 @@ declare module '@mui/material/styles/props' {
|
|
|
808
843
|
App: AppDivProps;
|
|
809
844
|
QueryBuilderNode: QueryBuilderNodeProps;
|
|
810
845
|
PrintButton: StyledPrintButtonDivProps;
|
|
846
|
+
Ic3TableCell: Ic3TableCellProps;
|
|
847
|
+
Ic3TableCellError: Ic3TableCellProps;
|
|
811
848
|
}
|
|
812
849
|
}
|
|
813
850
|
export {};
|
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":";;;AA6VA,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC7B,8CAAqB,CAAA;IACrB,4CAAmB,CAAA;IACnB,wCAAe,CAAA;AACnB,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC"}
|
|
@@ -400,7 +400,7 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
|
|
|
400
400
|
getAxisInfo(): IMdxAxisSeriesInfo | undefined;
|
|
401
401
|
/**
|
|
402
402
|
* Get the MDX axis coordinate, if available.
|
|
403
|
-
* @see
|
|
403
|
+
* @see AxisCoordinate
|
|
404
404
|
*/
|
|
405
405
|
getAxisCoordinate(): AxisCoordinate | undefined;
|
|
406
406
|
/**
|
|
@@ -626,6 +626,22 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
|
|
|
626
626
|
* Returns the group key at the row index for use with table.toAmcharts4Data.
|
|
627
627
|
*/
|
|
628
628
|
getAmcharts4GroupKey(rowIdx: number): string;
|
|
629
|
+
/**
|
|
630
|
+
* Mark the column as a total column. Total columns have a different styling and css-class in tables and pivot
|
|
631
|
+
* tables.
|
|
632
|
+
* @param isTotal new value. Set to true to mark this column as a total. Use false to remove the mark.
|
|
633
|
+
* @see isTotalColumn
|
|
634
|
+
*/
|
|
635
|
+
setIsTotalColumn(isTotal: boolean): void;
|
|
636
|
+
/**
|
|
637
|
+
* Returns true if and only if the column contains total values.
|
|
638
|
+
* @see setTotalColumn
|
|
639
|
+
*/
|
|
640
|
+
getIsTotalColumn(): boolean;
|
|
641
|
+
/**
|
|
642
|
+
* return true if the column was created from an MDX axis (i.e. [Geo].[Countries] on 0 )
|
|
643
|
+
*/
|
|
644
|
+
isMdxAxis(): boolean;
|
|
629
645
|
}
|
|
630
646
|
export interface PublicTidyColumnCellDecorationRenderedOptions {
|
|
631
647
|
cellWidth?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicTidyColumn.js","sourceRoot":"","sources":["../src/PublicTidyColumn.ts"],"names":[],"mappings":";;;AAmDA;;GAEG;AACH,IAAY,0BAsFX;AAtFD,WAAY,0BAA0B;IAElC;;OAEG;IACH,oDAAsB,CAAA;IAEtB;;OAEG;IACH,sEAAwC,CAAA;IAExC;;OAEG;IACH,mEAAqC,CAAA;IAErC;;OAEG;IACH,mEAAqC,CAAA;IAErC;;;OAGG;IACH,yEAA2C,CAAA;IAE3C;;OAEG;IACH,oDAAsB,CAAA;IAEtB;;;;OAIG;IACH,yEAA2C,CAAA;IAE3C;;;;OAIG;IACH,+EAAiD,CAAA;IAEjD;;OAEG;IACH,qDAAuB,CAAA;IAEvB;;OAEG;IACH,uDAAyB,CAAA;IAEzB;;OAEG;IACH,6DAA+B,CAAA;IAE/B;;OAEG;IACH,uDAAyB,CAAA;IAEzB;;OAEG;IACH,iDAAmB,CAAA;IAEnB;;OAEG;IACH,gDAAkB,CAAA;IAElB;;OAEG;IACH,iDAAmB,CAAA;IAEnB;;OAEG;IACH,mDAAqB,CAAA;AACzB,CAAC,EAtFW,0BAA0B,GAA1B,kCAA0B,KAA1B,kCAA0B,QAsFrC;AAEY,QAAA,6BAA6B,GAAG,IAAI,GAAG,CAAS;IAEzD,0BAA0B,CAAC,qBAAqB;IAChD,0BAA0B,CAAC,UAAU;IAErC,0BAA0B,CAAC,mBAAmB;IAE9C,0BAA0B,CAAC,mBAAmB;IAC9C,0BAA0B,CAAC,SAAS;IAEpC,0BAA0B,CAAC,OAAO;IAClC,0BAA0B,CAAC,OAAO;CAErC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"PublicTidyColumn.js","sourceRoot":"","sources":["../src/PublicTidyColumn.ts"],"names":[],"mappings":";;;AAmDA;;GAEG;AACH,IAAY,0BAsFX;AAtFD,WAAY,0BAA0B;IAElC;;OAEG;IACH,oDAAsB,CAAA;IAE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,EAAC,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,mBAAmB,EAAC;IAC3D,EAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAC;IAEnC,EAAC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAC;IAErD,EAAC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAC;IAE1C,EAAC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAC;IACrD,EAAC,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAC;IAC3D,EAAC,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,IAAI,EAAC;IACjE,EAAC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAC;IAEnD,EAAC,OAAO,EAAE,sBAAsB,EAAE,MAAM,EAAE,aAAa,EAAE,mBAAmB,EAAE,IAAI,EAAC;CAEtF,CAAC"}
|
|
@@ -304,8 +304,9 @@ export interface ITidyTable {
|
|
|
304
304
|
* the resulting data object are given by '<group_id>.' preceding the values.
|
|
305
305
|
* @param level this column expands the axis so that widgets can plot level-like charts using guides. This expansion
|
|
306
306
|
* follows the patters axis-label[level-label].
|
|
307
|
+
* @param hideNulls column, do not include records where all rows in group evaluate to NULL.
|
|
307
308
|
*/
|
|
308
|
-
toAmcharts4Data<F extends string>(category: ITidyColumn, value: Record<F, ITidyColumn | undefined>, group?: ITidyColumn | ITidyColumn[], level?: ITidyColumn): IAmCharts4Data[];
|
|
309
|
+
toAmcharts4Data<F extends string>(category: ITidyColumn, value: Record<F, ITidyColumn | undefined>, group?: ITidyColumn | ITidyColumn[], level?: ITidyColumn, hideNulls?: ITidyColumn): IAmCharts4Data[];
|
|
309
310
|
/**
|
|
310
311
|
* Creates a data object for the Amcharts treemap
|
|
311
312
|
* @param level0 names for the parent nodes
|
|
@@ -477,6 +478,11 @@ export interface ITidyTable {
|
|
|
477
478
|
*/
|
|
478
479
|
toHistogramBucketColumn(context: IPublicContext, valueCol: ITidyBaseColumnReadonly<number | null>, options: TidyHistogramOptions): ITidyColumn;
|
|
479
480
|
addTotalRows(totals: Map<number, ITotalRowValues[]>): void;
|
|
481
|
+
/**
|
|
482
|
+
* Mark these rows as total rows in the table.
|
|
483
|
+
* @param totalRows
|
|
484
|
+
*/
|
|
485
|
+
setTotalRows(totalRows: (rowIdx: number) => boolean): void;
|
|
480
486
|
/**
|
|
481
487
|
* Get a column by its role as defined in the mdxBuilderSettings.
|
|
482
488
|
* @param role name of the axis-role
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EntityItem, ITidyTableSelection, SelectionBehaviour, WidgetTidySelectionOptions } from "./PublicTidyTableTypes";
|
|
1
|
+
import { EntityItem, ITidyTableSelection, SelectionBehaviour, TidyRowFilter, WidgetTidySelectionOptions } from "./PublicTidyTableTypes";
|
|
2
2
|
import { ITidyBaseColumn, ITidyColumn } from "./PublicTidyColumn";
|
|
3
3
|
import { ILazyTreeViewLoader } from "./LazyTreeView";
|
|
4
4
|
import { PublicIcEvent } from "./IcEvent";
|
|
@@ -197,9 +197,10 @@ export interface ITidyTableInteractionEvent {
|
|
|
197
197
|
*/
|
|
198
198
|
firesEvent(actionName: string): boolean;
|
|
199
199
|
/**
|
|
200
|
-
*
|
|
200
|
+
* Returns a function that evaluates to true if and only if that row is selected.
|
|
201
|
+
* Returns undefined if there is no selection.
|
|
201
202
|
*/
|
|
202
|
-
|
|
203
|
+
getIsRowSelectedFilter(): TidyRowFilter | undefined;
|
|
203
204
|
}
|
|
204
205
|
export interface ITidyTableInteraction extends ITidyTableInteractionSelection, ITidyTableInteractionEvent, ITidyTableDrilldown {
|
|
205
206
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicTidyTableInteractions.js","sourceRoot":"","sources":["../src/PublicTidyTableInteractions.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"PublicTidyTableInteractions.js","sourceRoot":"","sources":["../src/PublicTidyTableInteractions.ts"],"names":[],"mappings":";;;AAcA,IAAY,aAUX;AAVD,WAAY,aAAa;IACrB;;OAEG;IACH,kCAAiB,CAAA;IAEjB;;OAEG;IACH,sCAAqB,CAAA;AACzB,CAAC,EAVW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAUxB;AAED,IAAY,iBAMX;AAND,WAAY,iBAAiB;IACzB,kDAA6B,CAAA;IAC7B;;OAEG;IACH,4DAAuC,CAAA;AAC3C,CAAC,EANW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAM5B;AAGD,IAAY,4BAMX;AAND,WAAY,4BAA4B;IACpC,yFAAS,CAAA;IACT,uFAAQ,CAAA;IACR,uHAAwB,CAAA;IACxB,mGAAc,CAAA;IACd,qFAAO,CAAA;AACX,CAAC,EANW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAMvC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -84,4 +84,5 @@ __exportStar(require("./theme/ThemeTable"), exports);
|
|
|
84
84
|
__exportStar(require("./theme/ThemeReportAppLeftPanel"), exports);
|
|
85
85
|
__exportStar(require("./theme/ThemeWidgetBox"), exports);
|
|
86
86
|
__exportStar(require("./theme/ThemeWidgetBoxContentMessage"), exports);
|
|
87
|
+
__exportStar(require("./theme/ThemeIc3TableCell"), exports);
|
|
87
88
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,4CAA0B;AAC1B,yDAAuC;AACvC,kDAAgC;AAChC,sDAAoC;AACpC,sDAAoC;AACpC,kDAAgC;AAChC,uDAAqC;AACrC,wDAAsC;AACtC,6DAA0C;AAC1C,oEAAiD;AACjD,2CAAwB;AACxB,+DAA6C;AAC7C,2DAAyC;AACzC,0DAAwC;AACxC,mDAAiC;AACjC,iDAA+B;AAC/B,2CAAyB;AACzB,iDAA+B;AAC/B,kDAAgC;AAChC,+CAA6B;AAC7B,iDAA+B;AAC/B,mDAAiC;AACjC,uDAAqC;AACrC,oDAAkC;AAClC,gDAA8B;AAC9B,qDAAmC;AACnC,mDAAiC;AACjC,oDAAkC;AAClC,gEAA8C;AAC9C,yDAAuC;AACvC,mDAAiC;AACjC,wDAAsC;AACtC,yDAAuC;AACvC,qDAAmC;AAEnC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,yDAAuC;AACvC,0DAAwC;AACxC,8DAA4C;AAC5C,6DAA2C;AAC3C,kEAAgD;AAChD,6DAA2C;AAC3C,mEAAiD;AACjD,2DAAyC;AACzC,iEAA+C;AAC/C,4DAA0C;AAC1C,0DAAwC;AACxC,sDAAoC;AACpC,sDAAoC;AACpC,6DAA2C;AAC3C,8DAA4C;AAC5C,4DAA0C;AAC1C,uDAAqC;AACrC,qDAAmC;AACnC,sDAAoC;AACpC,uDAAqC;AACrC,sDAAoC;AACpC,0DAAwC;AACxC,+DAA6C;AAC7C,4DAA0C;AAC1C,0DAAwC;AACxC,2DAAyC;AACzC,gEAA8C;AAC9C,4DAA0C;AAC1C,qDAAmC;AACnC,kEAAgD;AAChD,yDAAuC;AACvC,uEAAqD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,4CAA0B;AAC1B,yDAAuC;AACvC,kDAAgC;AAChC,sDAAoC;AACpC,sDAAoC;AACpC,kDAAgC;AAChC,uDAAqC;AACrC,wDAAsC;AACtC,6DAA0C;AAC1C,oEAAiD;AACjD,2CAAwB;AACxB,+DAA6C;AAC7C,2DAAyC;AACzC,0DAAwC;AACxC,mDAAiC;AACjC,iDAA+B;AAC/B,2CAAyB;AACzB,iDAA+B;AAC/B,kDAAgC;AAChC,+CAA6B;AAC7B,iDAA+B;AAC/B,mDAAiC;AACjC,uDAAqC;AACrC,oDAAkC;AAClC,gDAA8B;AAC9B,qDAAmC;AACnC,mDAAiC;AACjC,oDAAkC;AAClC,gEAA8C;AAC9C,yDAAuC;AACvC,mDAAiC;AACjC,wDAAsC;AACtC,yDAAuC;AACvC,qDAAmC;AAEnC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,yDAAuC;AACvC,0DAAwC;AACxC,8DAA4C;AAC5C,6DAA2C;AAC3C,kEAAgD;AAChD,6DAA2C;AAC3C,mEAAiD;AACjD,2DAAyC;AACzC,iEAA+C;AAC/C,4DAA0C;AAC1C,0DAAwC;AACxC,sDAAoC;AACpC,sDAAoC;AACpC,6DAA2C;AAC3C,8DAA4C;AAC5C,4DAA0C;AAC1C,uDAAqC;AACrC,qDAAmC;AACnC,sDAAoC;AACpC,uDAAqC;AACrC,sDAAoC;AACpC,0DAAwC;AACxC,+DAA6C;AAC7C,4DAA0C;AAC1C,0DAAwC;AACxC,2DAAyC;AACzC,gEAA8C;AAC9C,4DAA0C;AAC1C,qDAAmC;AACnC,kEAAgD;AAChD,yDAAuC;AACvC,uEAAqD;AACrD,4DAA0C"}
|
|
@@ -6,6 +6,10 @@ export declare enum TableColumnSizing {
|
|
|
6
6
|
USER_RESIZABLE = "USER_RESIZABLE"
|
|
7
7
|
}
|
|
8
8
|
export interface BaseTableChartOptions extends FormFieldObject {
|
|
9
|
+
/**
|
|
10
|
+
* If active, the color defined in the Tidy Table are applied to the table
|
|
11
|
+
*/
|
|
12
|
+
applyHeaderColorDecoration?: boolean;
|
|
9
13
|
/**
|
|
10
14
|
* Row Height.
|
|
11
15
|
*/
|
|
@@ -55,6 +59,12 @@ export interface BaseTableChartOptions extends FormFieldObject {
|
|
|
55
59
|
* A list of boolean values: 'true', 'false'. The last value repeats itself.
|
|
56
60
|
*/
|
|
57
61
|
columnPinned: string;
|
|
62
|
+
/**
|
|
63
|
+
* Visible (CSV).
|
|
64
|
+
*
|
|
65
|
+
* A list of boolean values: 'true', 'false'. The last value repeats itself.
|
|
66
|
+
*/
|
|
67
|
+
columnVisible: string;
|
|
58
68
|
/**
|
|
59
69
|
* Columns Header Menu.
|
|
60
70
|
*
|
|
@@ -5,8 +5,19 @@ export declare class DatePickerClasses {
|
|
|
5
5
|
* Style applied to the root element.
|
|
6
6
|
*/
|
|
7
7
|
static readonly root = "ic3DatePicker-root";
|
|
8
|
+
static readonly rowDirection = "ic3DatePicker-row-direction";
|
|
9
|
+
static readonly columnDirection = "ic3DatePicker-column-direction";
|
|
10
|
+
/**
|
|
11
|
+
* + Mui DatePicker and/or DateRangePicker classes
|
|
12
|
+
*/
|
|
13
|
+
static readonly fieldSeparator = "ic3DatePicker-fieldSeparator";
|
|
8
14
|
}
|
|
9
15
|
export declare type DatePickerClassKey = keyof DatePickerClasses;
|
|
16
|
+
export declare enum DatePickerRangeDirection {
|
|
17
|
+
auto = "AUTO",
|
|
18
|
+
horizontal = "HORIZONTAL",
|
|
19
|
+
vertical = "VERTICAL"
|
|
20
|
+
}
|
|
10
21
|
/**
|
|
11
22
|
* Date Picker Options (fields of the "Chart" tab in the widget editor).
|
|
12
23
|
*
|
|
@@ -19,15 +30,15 @@ export declare type DatePickerClassKey = keyof DatePickerClasses;
|
|
|
19
30
|
*/
|
|
20
31
|
export interface DatePickerChartOptions extends FormFieldObject {
|
|
21
32
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* Display this text when the datepicker is empty.
|
|
33
|
+
* The label content (i.e Date)
|
|
25
34
|
*/
|
|
26
|
-
|
|
35
|
+
label?: string;
|
|
27
36
|
/**
|
|
28
|
-
* Text
|
|
37
|
+
* Helper Text.
|
|
38
|
+
*
|
|
39
|
+
* A text below the date picker to help the user when entering the date
|
|
29
40
|
*/
|
|
30
|
-
|
|
41
|
+
dateHelperText?: string;
|
|
31
42
|
/**
|
|
32
43
|
* Input Date Format.
|
|
33
44
|
*
|
|
@@ -88,15 +99,9 @@ export interface DatePickerChartOptions extends FormFieldObject {
|
|
|
88
99
|
*/
|
|
89
100
|
initialEndDate?: string;
|
|
90
101
|
/**
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
* Placeholder value for the end of the range. The widget shows this when the end of the range is empty.
|
|
94
|
-
*/
|
|
95
|
-
helperEndText?: string;
|
|
96
|
-
/**
|
|
97
|
-
* Text to show when the second date picker is empty.
|
|
102
|
+
* The label content for the end date
|
|
98
103
|
*/
|
|
99
|
-
|
|
104
|
+
endLabel?: string;
|
|
100
105
|
/**
|
|
101
106
|
* Range Picker: Center Text.
|
|
102
107
|
*
|
|
@@ -117,6 +122,12 @@ export interface DatePickerChartOptions extends FormFieldObject {
|
|
|
117
122
|
* `startCaption`, `endUName`, `endCaption` (note the back ticks).
|
|
118
123
|
*/
|
|
119
124
|
rangeToUniqueName: string;
|
|
125
|
+
/**
|
|
126
|
+
* The direction of the Picker, horizontal/vertical/auto
|
|
127
|
+
*
|
|
128
|
+
* "auto" will choose the direction depending on the ration width/height > 0.9
|
|
129
|
+
*/
|
|
130
|
+
rangeDirection: DatePickerRangeDirection;
|
|
120
131
|
/**
|
|
121
132
|
* Dates.
|
|
122
133
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DatePickerClasses = void 0;
|
|
3
|
+
exports.DatePickerRangeDirection = exports.DatePickerClasses = void 0;
|
|
4
4
|
// TOM : needs clarification
|
|
5
5
|
class DatePickerClasses {
|
|
6
6
|
}
|
|
@@ -9,4 +9,16 @@ exports.DatePickerClasses = DatePickerClasses;
|
|
|
9
9
|
* Style applied to the root element.
|
|
10
10
|
*/
|
|
11
11
|
DatePickerClasses.root = "ic3DatePicker-root";
|
|
12
|
+
DatePickerClasses.rowDirection = "ic3DatePicker-row-direction";
|
|
13
|
+
DatePickerClasses.columnDirection = "ic3DatePicker-column-direction";
|
|
14
|
+
/**
|
|
15
|
+
* + Mui DatePicker and/or DateRangePicker classes
|
|
16
|
+
*/
|
|
17
|
+
DatePickerClasses.fieldSeparator = "ic3DatePicker-fieldSeparator";
|
|
18
|
+
var DatePickerRangeDirection;
|
|
19
|
+
(function (DatePickerRangeDirection) {
|
|
20
|
+
DatePickerRangeDirection["auto"] = "AUTO";
|
|
21
|
+
DatePickerRangeDirection["horizontal"] = "HORIZONTAL";
|
|
22
|
+
DatePickerRangeDirection["vertical"] = "VERTICAL";
|
|
23
|
+
})(DatePickerRangeDirection = exports.DatePickerRangeDirection || (exports.DatePickerRangeDirection = {}));
|
|
12
24
|
//# sourceMappingURL=ThemeDatePicker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeDatePicker.js","sourceRoot":"","sources":["../../src/theme/ThemeDatePicker.ts"],"names":[],"mappings":";;;AAGA,4BAA4B;AAC5B,MAAa,iBAAiB;;AAA9B,
|
|
1
|
+
{"version":3,"file":"ThemeDatePicker.js","sourceRoot":"","sources":["../../src/theme/ThemeDatePicker.ts"],"names":[],"mappings":";;;AAGA,4BAA4B;AAC5B,MAAa,iBAAiB;;AAA9B,8CAgBC;AAdG;;GAEG;AACa,sBAAI,GAAG,oBAAoB,CAAC;AAG5B,8BAAY,GAAG,6BAA6B,CAAC;AAE7C,iCAAe,GAAG,gCAAgC,CAAC;AAEnE;;GAEG;AACa,gCAAc,GAAG,8BAA8B,CAAC;AAKpE,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAChC,yCAAa,CAAA;IACb,qDAAyB,CAAA;IACzB,iDAAqB,CAAA;AACzB,CAAC,EAJW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAInC"}
|
|
@@ -25,8 +25,7 @@ export interface FilterAutocompleteChartOptions extends FilterTidyTableChartOpti
|
|
|
25
25
|
*
|
|
26
26
|
* Allows for selecting a set of preset options. Note that a variant is possibly overriding defined options.
|
|
27
27
|
*/
|
|
28
|
-
variant?:
|
|
29
|
-
inputVariant: "standard" | "filled" | "outlined";
|
|
28
|
+
variant?: "fixedHeight" | "standard" | "filled" | "outlined";
|
|
30
29
|
/**
|
|
31
30
|
* Size.
|
|
32
31
|
*
|
|
@@ -58,6 +58,7 @@ export declare class FilterPanelClasses {
|
|
|
58
58
|
* Classname for the TextField component
|
|
59
59
|
*/
|
|
60
60
|
static readonly inputField = "ic3FilterPanel-filterInputfield";
|
|
61
|
+
static readonly dateTimePicker = "ic3FilterPanel-dateTimePicker";
|
|
61
62
|
/**
|
|
62
63
|
* A div with the displayed values for the value selector in preview mode
|
|
63
64
|
*/
|
|
@@ -62,6 +62,7 @@ FilterPanelClasses.filterItemRemoveButton = "ic3FilterPanel-ItemRemoveButton";
|
|
|
62
62
|
* Classname for the TextField component
|
|
63
63
|
*/
|
|
64
64
|
FilterPanelClasses.inputField = "ic3FilterPanel-filterInputfield";
|
|
65
|
+
FilterPanelClasses.dateTimePicker = "ic3FilterPanel-dateTimePicker";
|
|
65
66
|
/**
|
|
66
67
|
* A div with the displayed values for the value selector in preview mode
|
|
67
68
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeFilterPanel.js","sourceRoot":"","sources":["../../src/theme/ThemeFilterPanel.ts"],"names":[],"mappings":";;;AAEA,MAAa,kBAAkB;;AAA/B,
|
|
1
|
+
{"version":3,"file":"ThemeFilterPanel.js","sourceRoot":"","sources":["../../src/theme/ThemeFilterPanel.ts"],"names":[],"mappings":";;;AAEA,MAAa,kBAAkB;;AAA/B,gDA4FC;AA3FG;;GAEG;AACa,0BAAO,GAAG,qBAAqB,CAAC;AAEhD;;GAEG;AACa,6BAAU,GAAG,wBAAwB,CAAC;AAEtD;;GAEG;AACa,4BAAS,GAAG,uBAAuB,CAAC;AAEpD;;GAEG;AACa,2BAAQ,GAAG,sBAAsB,CAAC;AAElD;;GAEG;AACa,+BAAY,GAAG,2BAA2B,CAAC;AAE3D;;GAEG;AACa,mCAAgB,GAAG,+BAA+B,CAAC;AAEnE;;GAEG;AACa,qCAAkB,GAAG,mCAAmC,CAAC;AAEzE;;GAEG;AACa,2CAAwB,GAAG,yCAAyC,CAAC;AAErF;;GAEG;AACa,iCAAc,GAAG,6BAA6B,CAAC;AAE/D;;GAEG;AACa,6BAAU,GAAG,wBAAwB,CAAC;AAEtD;;GAEG;AACa,mCAAgB,GAAG,0BAA0B,CAAC;AAE9D;;GAEG;AACa,gCAAa,GAAG,2BAA2B,CAAC;AAE5D;;GAEG;AACa,sCAAmB,GAAG,iCAAiC,CAAC;AAExD,wCAAqB,GAAG,gCAAgC,CAAC;AAEzD,yCAAsB,GAAG,iCAAiC,CAAC;AAE3E;;GAEG;AACa,6BAAU,GAAG,iCAAiC,CAAC;AAE/C,iCAAc,GAAG,+BAA+B,CAAC;AAEjE;;GAEG;AACa,0CAAuB,GAAG,6BAA6B,CAAC;AAExE;;GAEG;AACa,4BAAS,GAAG,0BAA0B,CAAC;AAEvD;;GAEG;AACa,oCAAiB,GAAG,kCAAkC,CAAC"}
|
|
@@ -20,6 +20,7 @@ export declare class FilterSliderClasses {
|
|
|
20
20
|
* Slot for Selection Label (below the slider)
|
|
21
21
|
*/
|
|
22
22
|
static readonly selectionLabel = "ic3FilterSlider-SelectionLabel";
|
|
23
|
+
static readonly emptySelection = "ic3FilterSlider-EmptySelection";
|
|
23
24
|
/**
|
|
24
25
|
* root modifiers for horizontal or vertical slider
|
|
25
26
|
*/
|
|
@@ -25,6 +25,7 @@ FilterSliderClasses.muiSlider = "";
|
|
|
25
25
|
* Slot for Selection Label (below the slider)
|
|
26
26
|
*/
|
|
27
27
|
FilterSliderClasses.selectionLabel = "ic3FilterSlider-SelectionLabel";
|
|
28
|
+
FilterSliderClasses.emptySelection = "ic3FilterSlider-EmptySelection";
|
|
28
29
|
/**
|
|
29
30
|
* root modifiers for horizontal or vertical slider
|
|
30
31
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeFilterSlider.js","sourceRoot":"","sources":["../../src/theme/ThemeFilterSlider.ts"],"names":[],"mappings":";;;AAEA,4BAA4B;AAC5B,MAAa,mBAAmB;;AAAhC,
|
|
1
|
+
{"version":3,"file":"ThemeFilterSlider.js","sourceRoot":"","sources":["../../src/theme/ThemeFilterSlider.ts"],"names":[],"mappings":";;;AAEA,4BAA4B;AAC5B,MAAa,mBAAmB;;AAAhC,kDAmCC;AAjCG;;GAEG;AACa,wBAAI,GAAG,sBAAsB,CAAC;AAE9C;;GAEG;AACa,0BAAM,GAAG,wBAAwB,CAAC;AAElD;;GAEG;AACa,2BAAO,GAAG,yBAAyB,CAAA;AAEnD;;GAEG;AACa,6BAAS,GAAG,EAAE,CAAC;AAE/B;;GAEG;AACa,kCAAc,GAAG,gCAAgC,CAAC;AAClD,kCAAc,GAAG,gCAAgC,CAAC;AAElE;;GAEG;AACa,8BAAU,GAAG,4BAA4B,CAAC;AAC1C,4BAAQ,GAAG,0BAA0B,CAAC;AAO1D,IAAY,yBAMX;AAND,WAAY,yBAAyB;IAEjC,4CAAe,CAAA;IACf,kDAAqB,CAAA;IACrB,wEAA2C,CAAA;IAC3C,0CAAa,CAAA;AACjB,CAAC,EANW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAMpC"}
|
|
@@ -9,13 +9,16 @@ export declare class FilterTreeClasses extends LazyTreeClasses {
|
|
|
9
9
|
/**
|
|
10
10
|
* Style applied to the tree item without control icons
|
|
11
11
|
*/
|
|
12
|
-
static simpleItemLabel
|
|
12
|
+
static readonly simpleItemLabel = "ic3TreeFilter-simpleItemLabel";
|
|
13
13
|
/**
|
|
14
14
|
* Style applied to the tree item witht control icons
|
|
15
15
|
*/
|
|
16
|
-
static itemLabelWithIcons
|
|
16
|
+
static readonly itemLabelWithIcons = "ic3TreeFilter-itemLabelWithIcons";
|
|
17
|
+
}
|
|
18
|
+
export declare class FilterTreePopOverClasses {
|
|
17
19
|
}
|
|
18
20
|
export declare type FilterTreeClassKey = keyof FilterTreeClasses;
|
|
21
|
+
export declare type FilterTreePopOverClassKey = keyof FilterTreePopOverClasses;
|
|
19
22
|
export type FilterFireEventMode = TreeFireEventMode.ALL_SELECTED | TreeFireEventMode.COMPACT_ON_PARENT;
|
|
20
23
|
/**
|
|
21
24
|
* Filter Tree Options (fields of the "Chart" tab in the widget editor).
|
|
@@ -85,7 +88,7 @@ export interface FilterTreeChartOptions extends FilterTidyTableChartOptions {
|
|
|
85
88
|
/**
|
|
86
89
|
* Variant.
|
|
87
90
|
*/
|
|
88
|
-
autoCompleteVariant
|
|
91
|
+
autoCompleteVariant?: string;
|
|
89
92
|
/**
|
|
90
93
|
* Size (Dropdown/Autocomplete).
|
|
91
94
|
*
|
|
@@ -104,3 +107,6 @@ export interface FilterTreeProps {
|
|
|
104
107
|
variant?: string;
|
|
105
108
|
size: 'small' | 'medium';
|
|
106
109
|
}
|
|
110
|
+
export interface FilterTreePopOverProps {
|
|
111
|
+
variant?: string;
|
|
112
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FilterTreeClasses = void 0;
|
|
3
|
+
exports.FilterTreePopOverClasses = exports.FilterTreeClasses = void 0;
|
|
4
4
|
const ThemeLazyTreeClasses_1 = require("./ThemeLazyTreeClasses");
|
|
5
5
|
class FilterTreeClasses extends ThemeLazyTreeClasses_1.LazyTreeClasses {
|
|
6
6
|
}
|
|
@@ -9,4 +9,15 @@ exports.FilterTreeClasses = FilterTreeClasses;
|
|
|
9
9
|
* Style applied to the root element.
|
|
10
10
|
*/
|
|
11
11
|
FilterTreeClasses.root = "ic3TreeFilter-root";
|
|
12
|
+
/**
|
|
13
|
+
* Style applied to the tree item without control icons
|
|
14
|
+
*/
|
|
15
|
+
FilterTreeClasses.simpleItemLabel = "ic3TreeFilter-simpleItemLabel";
|
|
16
|
+
/**
|
|
17
|
+
* Style applied to the tree item witht control icons
|
|
18
|
+
*/
|
|
19
|
+
FilterTreeClasses.itemLabelWithIcons = "ic3TreeFilter-itemLabelWithIcons";
|
|
20
|
+
class FilterTreePopOverClasses {
|
|
21
|
+
}
|
|
22
|
+
exports.FilterTreePopOverClasses = FilterTreePopOverClasses;
|
|
12
23
|
//# sourceMappingURL=ThemeFilterTree.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeFilterTree.js","sourceRoot":"","sources":["../../src/theme/ThemeFilterTree.ts"],"names":[],"mappings":";;;AAEA,iEAAuD;AAEvD,MAAa,iBAAkB,SAAQ,sCAAe;;AAAtD,8CAsBC;AApBG;;GAEG;AACa,sBAAI,GAAG,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"ThemeFilterTree.js","sourceRoot":"","sources":["../../src/theme/ThemeFilterTree.ts"],"names":[],"mappings":";;;AAEA,iEAAuD;AAEvD,MAAa,iBAAkB,SAAQ,sCAAe;;AAAtD,8CAsBC;AApBG;;GAEG;AACa,sBAAI,GAAG,oBAAoB,CAAC;AAE5C;;GAEG;AACa,iCAAe,GAAG,+BAA+B,CAAC;AAElE;;GAEG;AACa,oCAAkB,GAAG,kCAAkC,CAAC;AAS5E,MAAa,wBAAwB;CAEpC;AAFD,4DAEC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ThemeIc3TableCellClasses = void 0;
|
|
4
|
+
class ThemeIc3TableCellClasses {
|
|
5
|
+
}
|
|
6
|
+
exports.ThemeIc3TableCellClasses = ThemeIc3TableCellClasses;
|
|
7
|
+
//# sourceMappingURL=ThemeIc3TableCell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeIc3TableCell.js","sourceRoot":"","sources":["../../src/theme/ThemeIc3TableCell.ts"],"names":[],"mappings":";;;AAAA,MAAa,wBAAwB;CAEpC;AAFD,4DAEC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export declare class LazyTreeClasses {
|
|
2
|
+
/**
|
|
3
|
+
* Style applied to the root element.
|
|
4
|
+
*/
|
|
5
|
+
static readonly lazyRoot = "ic3LazyTreeView-root";
|
|
2
6
|
/** Styles applied to the search toolbar element */
|
|
3
7
|
static readonly toolbar = "ic3LazyTreeView-toolbar";
|
|
4
8
|
/** Styles applied to the search search input element */
|
|
@@ -11,6 +15,14 @@ export declare class LazyTreeClasses {
|
|
|
11
15
|
static readonly buttonFilterSelectedOff = "ic3LazyTreeView-toolbar-buttonOff";
|
|
12
16
|
/** Styles applied to the TreeRoot element */
|
|
13
17
|
static readonly treeRoot = "ic3LazyTreeView-treeRoot";
|
|
18
|
+
/**
|
|
19
|
+
* Item classes
|
|
20
|
+
*/
|
|
21
|
+
static readonly itemRoot = "ic3LazyTreeView-itemRoot";
|
|
22
|
+
static readonly itemContainer = "ic3LazyTreeView-itemContainer";
|
|
23
|
+
static readonly leftDiv = "ic3LazyTreeView-itemLeftDiv";
|
|
24
|
+
static readonly itemLabelContainer = "ic3LazyTreeView-itemLabelContainer";
|
|
25
|
+
static readonly itemIcon = "ic3LazyTreeView-itemIcon";
|
|
14
26
|
}
|
|
15
27
|
export declare type LazyTreeClassesClassKey = keyof LazyTreeClasses;
|
|
16
28
|
export interface LazyTreeProps {
|
|
@@ -4,6 +4,10 @@ exports.LazyTreeClasses = void 0;
|
|
|
4
4
|
class LazyTreeClasses {
|
|
5
5
|
}
|
|
6
6
|
exports.LazyTreeClasses = LazyTreeClasses;
|
|
7
|
+
/**
|
|
8
|
+
* Style applied to the root element.
|
|
9
|
+
*/
|
|
10
|
+
LazyTreeClasses.lazyRoot = 'ic3LazyTreeView-root';
|
|
7
11
|
/** Styles applied to the search toolbar element */
|
|
8
12
|
LazyTreeClasses.toolbar = 'ic3LazyTreeView-toolbar';
|
|
9
13
|
/** Styles applied to the search search input element */
|
|
@@ -16,4 +20,12 @@ LazyTreeClasses.buttonFilterSelectedOn = 'ic3LazyTreeView-toolbar-buttonOn';
|
|
|
16
20
|
LazyTreeClasses.buttonFilterSelectedOff = 'ic3LazyTreeView-toolbar-buttonOff';
|
|
17
21
|
/** Styles applied to the TreeRoot element */
|
|
18
22
|
LazyTreeClasses.treeRoot = 'ic3LazyTreeView-treeRoot';
|
|
23
|
+
/**
|
|
24
|
+
* Item classes
|
|
25
|
+
*/
|
|
26
|
+
LazyTreeClasses.itemRoot = 'ic3LazyTreeView-itemRoot';
|
|
27
|
+
LazyTreeClasses.itemContainer = 'ic3LazyTreeView-itemContainer';
|
|
28
|
+
LazyTreeClasses.leftDiv = 'ic3LazyTreeView-itemLeftDiv';
|
|
29
|
+
LazyTreeClasses.itemLabelContainer = 'ic3LazyTreeView-itemLabelContainer';
|
|
30
|
+
LazyTreeClasses.itemIcon = 'ic3LazyTreeView-itemIcon';
|
|
19
31
|
//# sourceMappingURL=ThemeLazyTreeClasses.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeLazyTreeClasses.js","sourceRoot":"","sources":["../../src/theme/ThemeLazyTreeClasses.ts"],"names":[],"mappings":";;;AAAA,MAAa,eAAe;;AAA5B,
|
|
1
|
+
{"version":3,"file":"ThemeLazyTreeClasses.js","sourceRoot":"","sources":["../../src/theme/ThemeLazyTreeClasses.ts"],"names":[],"mappings":";;;AAAA,MAAa,eAAe;;AAA5B,0CAqCC;AAnCG;;GAEG;AACa,wBAAQ,GAAG,sBAAsB,CAAC;AAElD,mDAAmD;AACnC,uBAAO,GAAG,yBAAyB,CAAC;AAEpD,wDAAwD;AACxC,qBAAK,GAAG,+BAA+B,CAAC;AAExD,sDAAsD;AACtC,sBAAM,GAAG,gCAAgC,CAAC;AAE1D,sDAAsD;AACtC,sCAAsB,GAAG,kCAAkC,CAAC;AAE5E,uDAAuD;AACvC,uCAAuB,GAAG,mCAAmC,CAAC;AAE9E,6CAA6C;AAC7B,wBAAQ,GAAG,0BAA0B,CAAC;AAEtD;;GAEG;AACa,wBAAQ,GAAG,0BAA0B,CAAC;AAEtC,6BAAa,GAAG,+BAA+B,CAAC;AAEhD,uBAAO,GAAG,6BAA6B,CAAC;AAExC,kCAAkB,GAAG,oCAAoC,CAAC;AAE1D,wBAAQ,GAAG,0BAA0B,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare class ListCounterClasses {
|
|
2
2
|
static readonly counter = "ic3Counter";
|
|
3
3
|
static readonly label = "ic3ListCounter-Label";
|
|
4
|
+
static readonly labelSmallSize = "ic3ListCounter-Label-SizeMin";
|
|
5
|
+
static readonly labelMediumSize = "ic3ListCounter-Label-SizeMedium";
|
|
4
6
|
}
|
|
5
7
|
export declare type ListCounterClassKey = keyof ListCounterClasses;
|
|
6
8
|
export interface ListCounterProps {
|
|
@@ -6,4 +6,6 @@ class ListCounterClasses {
|
|
|
6
6
|
exports.ListCounterClasses = ListCounterClasses;
|
|
7
7
|
ListCounterClasses.counter = "ic3Counter";
|
|
8
8
|
ListCounterClasses.label = "ic3ListCounter-Label";
|
|
9
|
+
ListCounterClasses.labelSmallSize = "ic3ListCounter-Label-SizeMin";
|
|
10
|
+
ListCounterClasses.labelMediumSize = "ic3ListCounter-Label-SizeMedium";
|
|
9
11
|
//# sourceMappingURL=ThemeListCounter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeListCounter.js","sourceRoot":"","sources":["../../src/theme/ThemeListCounter.ts"],"names":[],"mappings":";;;AACA,MAAa,kBAAkB;;AAA/B,
|
|
1
|
+
{"version":3,"file":"ThemeListCounter.js","sourceRoot":"","sources":["../../src/theme/ThemeListCounter.ts"],"names":[],"mappings":";;;AACA,MAAa,kBAAkB;;AAA/B,gDASC;AAPmB,0BAAO,GAAG,YAAY,CAAC;AAEvB,wBAAK,GAAG,sBAAsB,CAAC;AAE/B,iCAAc,GAAG,8BAA8B,CAAC;AAChD,kCAAe,GAAG,iCAAiC,CAAC"}
|
|
@@ -71,6 +71,7 @@ export declare class WidgetBoxClasses {
|
|
|
71
71
|
* attribute for the root div containing the widgetId
|
|
72
72
|
*/
|
|
73
73
|
static readonly widgetIdAttribute: string;
|
|
74
|
+
static readonly nsIdAttribute: string;
|
|
74
75
|
}
|
|
75
76
|
export declare type WidgetBoxClassKey = keyof WidgetBoxClasses;
|
|
76
77
|
export declare enum WidgetBoxTooltipType {
|
|
@@ -76,6 +76,7 @@ WidgetBoxClasses.userMenuClosed = "ic3WidgetBox-userMenuClosed";
|
|
|
76
76
|
* attribute for the root div containing the widgetId
|
|
77
77
|
*/
|
|
78
78
|
WidgetBoxClasses.widgetIdAttribute = "data-widget-id";
|
|
79
|
+
WidgetBoxClasses.nsIdAttribute = "data-ns-id";
|
|
79
80
|
var WidgetBoxTooltipType;
|
|
80
81
|
(function (WidgetBoxTooltipType) {
|
|
81
82
|
WidgetBoxTooltipType["dialog"] = "dialog";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeWidgetBox.js","sourceRoot":"","sources":["../../src/theme/ThemeWidgetBox.ts"],"names":[],"mappings":";;;AAAA,MAAa,gBAAgB;;AAA7B,
|
|
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,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,GAApB,4BAAoB,KAApB,4BAAoB,QAG/B;AAED,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IAC/B,8CAAmB,CAAA;IACnB,kDAAuB,CAAA;IACvB,sEAA2C,CAAA;AAC/C,CAAC,EAJW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAIlC;AAED,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACjC,4EAA+C,CAAA;IAC/C,8EAAiD,CAAA;AACrD,CAAC,EAHW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAGpC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ic3/reporting-api",
|
|
3
|
-
"version": "8.4.
|
|
3
|
+
"version": "8.4.1",
|
|
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,18 +11,21 @@
|
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@mui/material": "5.
|
|
15
|
-
"@mui/system": "5.
|
|
16
|
-
"@emotion/react": "11.10.
|
|
17
|
-
"@emotion/styled": "11.10.
|
|
18
|
-
"@types/markerclustererplus": "2.1.33",
|
|
19
|
-
"@types/react": "18.0.28"
|
|
14
|
+
"@mui/material": "5.12.2",
|
|
15
|
+
"@mui/system": "5.12.1",
|
|
16
|
+
"@emotion/react": "11.10.8",
|
|
17
|
+
"@emotion/styled": "11.10.8"
|
|
20
18
|
},
|
|
21
19
|
"devDependencies": {
|
|
22
|
-
"@types/
|
|
20
|
+
"@types/markerclustererplus": "2.1.33",
|
|
21
|
+
"@types/node": "18.16.3",
|
|
22
|
+
"@types/react": "18.2.0",
|
|
23
23
|
"del-cli": "5.0.0",
|
|
24
24
|
"typescript": "4.9.5"
|
|
25
25
|
},
|
|
26
|
+
"overrides": {
|
|
27
|
+
"@types/react": "18.2.0"
|
|
28
|
+
},
|
|
26
29
|
"scripts": {
|
|
27
30
|
"build": "del-cli dist && npx tsc",
|
|
28
31
|
"clean": "del-cli dist && del-cli src",
|