@ic3/reporting-api 8.0.0-rc.1 → 8.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ApiUtils.d.ts +10 -0
- package/dist/ApiUtils.js +25 -1
- package/dist/ApiUtils.js.map +1 -1
- package/dist/INotification.d.ts +1 -0
- package/dist/IReporting.d.ts +23 -1
- package/dist/PublicContext.d.ts +22 -0
- package/dist/PublicContext.js.map +1 -1
- package/dist/PublicTemplate.d.ts +15 -1
- package/dist/PublicTemplate.js.map +1 -1
- package/dist/PublicTemplateForm.d.ts +10 -0
- package/dist/PublicTemplateForm.js.map +1 -1
- package/dist/PublicTheme.d.ts +22 -9
- package/dist/PublicTheme.js.map +1 -1
- package/dist/PublicTidyColumn.d.ts +266 -326
- package/dist/PublicTidyColumn.js +10 -1
- package/dist/PublicTidyColumn.js.map +1 -1
- package/dist/PublicTidyHistogram.d.ts +3 -23
- package/dist/PublicTidyHistogram.js +55 -205
- package/dist/PublicTidyHistogram.js.map +1 -1
- package/dist/PublicTidyMath.d.ts +20 -42
- package/dist/PublicTidyMath.js +0 -353
- package/dist/PublicTidyMath.js.map +1 -1
- package/dist/PublicTidyTable.d.ts +80 -112
- package/dist/PublicTidyTableInteractions.d.ts +6 -12
- package/dist/PublicTidyTableTypes.d.ts +31 -18
- package/dist/PublicTidyTableTypes.js +1 -0
- package/dist/PublicTidyTableTypes.js.map +1 -1
- package/dist/theme/ThemePivotTable.d.ts +23 -0
- package/dist/theme/ThemePivotTable.js +21 -0
- package/dist/theme/ThemePivotTable.js.map +1 -0
- package/dist/theme/ThemeTable.d.ts +15 -0
- package/dist/theme/ThemeTable.js +5 -0
- package/dist/theme/ThemeTable.js.map +1 -0
- package/package.json +6 -6
package/dist/ApiUtils.d.ts
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { IPluginDefinition } from "./IPluginDefinition";
|
|
2
2
|
import { IVersionedPluginDefinition } from "./IVersionedPluginDefinition";
|
|
3
|
+
import { IPublicWidgetTemplateDefinition } from "./PublicTemplate";
|
|
3
4
|
export declare class ApiUtils {
|
|
4
5
|
/**
|
|
5
6
|
* Define the form field as being localized.
|
|
6
7
|
*/
|
|
7
8
|
static readonly TAG_I18N_FIELD = "ic3t_";
|
|
8
9
|
static makePlugin(definition: IPluginDefinition): () => IVersionedPluginDefinition;
|
|
10
|
+
/**
|
|
11
|
+
* Wrap the template from another widget. The widget can come from a plugin or from the included widgets.
|
|
12
|
+
* Wrapping means that the template receives its not-defined settings from the template that is wrapped.
|
|
13
|
+
* @param wrappedTemplateId the unique identifier of the template, e.g., amCharts4.AmCharts4DonutChart.
|
|
14
|
+
* @param newDefinition definition of the new widget.
|
|
15
|
+
* @param transformOptions create the available options using the options from the wrapped template.
|
|
16
|
+
*/
|
|
17
|
+
static makeWidgetTemplateWrapper<T extends IPublicWidgetTemplateDefinition<any>>(wrappedTemplateId: string, newDefinition: T, transformOptions?: (old: T['chartOptionsMeta']) => void): T;
|
|
18
|
+
private static resolveTemplateDefinition;
|
|
9
19
|
}
|
package/dist/ApiUtils.js
CHANGED
|
@@ -8,9 +8,33 @@ 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.0.0-rc.
|
|
11
|
+
return Object.assign({ apiVersion: new ReportingVersion_1.default("8.0.0-rc.2" || "-", "Fri, 17 Dec 2021 08:53:29 GMT" || "-") }, definition);
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* Wrap the template from another widget. The widget can come from a plugin or from the included widgets.
|
|
16
|
+
* Wrapping means that the template receives its not-defined settings from the template that is wrapped.
|
|
17
|
+
* @param wrappedTemplateId the unique identifier of the template, e.g., amCharts4.AmCharts4DonutChart.
|
|
18
|
+
* @param newDefinition definition of the new widget.
|
|
19
|
+
* @param transformOptions create the available options using the options from the wrapped template.
|
|
20
|
+
*/
|
|
21
|
+
static makeWidgetTemplateWrapper(wrappedTemplateId, newDefinition, transformOptions) {
|
|
22
|
+
return Object.assign(Object.assign({}, newDefinition), { resolveDefinition: function (lib) {
|
|
23
|
+
const self = newDefinition;
|
|
24
|
+
return lib.wrapTemplateDefinition(wrappedTemplateId)
|
|
25
|
+
.then(definition => ApiUtils.resolveTemplateDefinition(self, definition, transformOptions));
|
|
26
|
+
}, jsCode: () => {
|
|
27
|
+
throw Error("Wrapped widget template " + wrappedTemplateId + ": unexpected jsCode() call!");
|
|
28
|
+
} });
|
|
29
|
+
}
|
|
30
|
+
static resolveTemplateDefinition(self, definition, transformOptions) {
|
|
31
|
+
const newTemplate = Object.assign(Object.assign(Object.assign({}, definition), self), { resolveDefinition: undefined });
|
|
32
|
+
// TODO (tom) use deepClone for the optionsMeta.
|
|
33
|
+
if (transformOptions != null) {
|
|
34
|
+
transformOptions(newTemplate.chartOptionsMeta);
|
|
35
|
+
}
|
|
36
|
+
return newTemplate;
|
|
37
|
+
}
|
|
14
38
|
}
|
|
15
39
|
exports.ApiUtils = ApiUtils;
|
|
16
40
|
/**
|
package/dist/ApiUtils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiUtils.js","sourceRoot":"","sources":["../src/ApiUtils.ts"],"names":[],"mappings":";;;;;;AAEA,0EAAkD;
|
|
1
|
+
{"version":3,"file":"ApiUtils.js","sourceRoot":"","sources":["../src/ApiUtils.ts"],"names":[],"mappings":";;;;;;AAEA,0EAAkD;AAGlD,MAAa,QAAQ;IAOjB,MAAM,CAAC,UAAU,CAAC,UAA6B;QAE3C,OAAO,GAA+B,EAAE;YAEpC,uBAEI,UAAU,EAAE,IAAI,0BAAgB,CAC5B,YAAY,IAAI,GAAG,EACnB,+BAA+B,IAAI,GAAG,CACzC,IAEE,UAAU,EAEhB;QAEL,CAAC,CAAA;IACL,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,yBAAyB,CAC5B,iBAAyB,EAAE,aAAgB,EAAE,gBAAuD;QAEpG,uCAGO,aAAa,KAEhB,iBAAiB,EAAE,UAAU,GAA8B;gBACvD,MAAM,IAAI,GAAG,aAAa,CAAC;gBAC3B,OAAO,GAAG,CAAC,sBAAsB,CAAC,iBAAiB,CAAC;qBAC/C,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC,IAAI,EAAE,UAAU,EAAE,gBAAgB,CAAC,CAAC,CAAA;YACnG,CAAC,EAED,MAAM,EAAE,GAAG,EAAE;gBACT,MAAM,KAAK,CAAC,0BAA0B,GAAG,iBAAiB,GAAG,6BAA6B,CAAC,CAAC;YAChG,CAAC,IAEJ;IACL,CAAC;IAEO,MAAM,CAAC,yBAAyB,CACpC,IAAO,EAAE,UAAgD,EAAE,gBAAuD;QAElH,MAAM,WAAW,iDAAO,UAAU,GAAK,IAAI,KAAE,iBAAiB,EAAE,SAAS,GAAC,CAAC;QAC3E,gDAAgD;QAChD,IAAI,gBAAgB,IAAI,IAAI,EAAE;YAC1B,gBAAgB,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;SAClD;QACD,OAAO,WAAW,CAAC;IACvB,CAAC;;AA9DL,4BAgEC;AA9DG;;GAEG;AACoB,uBAAc,GAAG,OAAO,CAAC"}
|
package/dist/INotification.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export interface AppPrintReportDialogNotification extends IAppNotification {
|
|
|
24
24
|
export interface AppPrintReportNotificationPayload {
|
|
25
25
|
fileName?: string;
|
|
26
26
|
paperSizeName?: "A5" | "A4" | "A3" | "B5" | "B4" | "Letter" | "Legal" | "Ledger" | "JIS-B5" | "JIS-B4";
|
|
27
|
+
layout?: "portrait" | "landscape";
|
|
27
28
|
}
|
|
28
29
|
export interface AppPrintReportNotification extends IAppNotificationWithPayload<AppPrintReportNotificationPayload> {
|
|
29
30
|
readonly type: "print-report";
|
package/dist/IReporting.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export interface IReportDefinition {
|
|
|
8
8
|
getDefaultCubeName(): string | undefined;
|
|
9
9
|
setDefaultCubeName(name: string): void;
|
|
10
10
|
}
|
|
11
|
+
export interface IReportAppDefinition {
|
|
12
|
+
}
|
|
11
13
|
export interface IEventContentItem {
|
|
12
14
|
/**
|
|
13
15
|
* Localized name or name.
|
|
@@ -50,13 +52,33 @@ export interface IOpenReportAppOptions {
|
|
|
50
52
|
* Full path of the report app. (e.g., shared:/my-report).
|
|
51
53
|
*/
|
|
52
54
|
path: string;
|
|
55
|
+
/**
|
|
56
|
+
* Called before the application definition is actually applied.
|
|
57
|
+
* Give the opportunity to change the definition.
|
|
58
|
+
*/
|
|
59
|
+
onDefinition?: (report: IReportAppDefinition) => void;
|
|
60
|
+
/**
|
|
61
|
+
* If the method exist and return true then the default error dispatcher is not
|
|
62
|
+
* being called. Give the caller the opportunity to render the error.
|
|
63
|
+
*/
|
|
64
|
+
onError?: (error: any) => boolean;
|
|
53
65
|
}
|
|
54
66
|
/**
|
|
55
67
|
* An instance of icCube reporting application.
|
|
56
68
|
*/
|
|
57
69
|
export interface IReporting {
|
|
58
70
|
getVersion(): ReportingVersion;
|
|
59
|
-
|
|
71
|
+
/**
|
|
72
|
+
* @param options
|
|
73
|
+
* @param pushToHistory defaulted to true
|
|
74
|
+
* @param keepGlobalFilter defaulted to true
|
|
75
|
+
*/
|
|
76
|
+
openReport(options: IOpenReportOptions, pushToHistory?: boolean, keepGlobalFilter?: boolean): void;
|
|
77
|
+
/**
|
|
78
|
+
* @param options
|
|
79
|
+
* @param pushToHistory defaulted to true
|
|
80
|
+
*/
|
|
81
|
+
openReportApp(options: IOpenReportAppOptions, pushToHistory?: boolean): void;
|
|
60
82
|
fireEvent(eventName: string, value: IEventContent | null): void;
|
|
61
83
|
onEvent(eventName: string, callback: (value: IEventContent | null) => void): void;
|
|
62
84
|
/**
|
package/dist/PublicContext.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ import { ITidyTableTransformation } from "./ITidyTableTransformation";
|
|
|
5
5
|
import { Theme } from "@mui/material/styles";
|
|
6
6
|
import { ThemeTextFormatter } from "./PublicTheme";
|
|
7
7
|
import { ITidyColumn } from "./PublicTidyColumn";
|
|
8
|
+
import { IPublicWidgetTemplateDefinition } from "./PublicTemplate";
|
|
9
|
+
import { ITidyMath } from "./PublicTidyMath";
|
|
8
10
|
export declare enum WidgetRenderLayoutStatus {
|
|
9
11
|
RENDERING = "RENDERING",
|
|
10
12
|
RENDERED = "RENDERED"
|
|
@@ -29,6 +31,10 @@ export interface IPublicContext {
|
|
|
29
31
|
localizeError(name: string, ...args: any[]): string;
|
|
30
32
|
localize(name: string, ...args: any[]): string;
|
|
31
33
|
translateContent(content: string): string;
|
|
34
|
+
/**
|
|
35
|
+
* A bunch of mathematical functions related to the tidy table.
|
|
36
|
+
*/
|
|
37
|
+
tidyMath(): ITidyMath;
|
|
32
38
|
/**
|
|
33
39
|
* Not in widget public context because of transformation not applied from a widget context always.
|
|
34
40
|
*
|
|
@@ -134,6 +140,22 @@ export interface IWidgetPublicContext extends IPublicContext {
|
|
|
134
140
|
* Cypress testing purpose, after a rendering of the chart
|
|
135
141
|
*/
|
|
136
142
|
incrementWidgetContentRendering(): void;
|
|
143
|
+
getWidgetTemplateDefinition(qualifiedId: string): IPublicWidgetTemplateDefinition<any>;
|
|
144
|
+
resolveWidgetTemplateDefinition(definition: IPublicWidgetTemplateDefinition<any>): Promise<IPublicWidgetTemplateDefinition<any>>;
|
|
145
|
+
/**
|
|
146
|
+
* React -> combines useReduxOwnProps and setReduxOwnProps with a similar syntax to Redux.useState
|
|
147
|
+
*
|
|
148
|
+
* Note it's NOT the initial value but value if undefined
|
|
149
|
+
*/
|
|
150
|
+
useReduxOwnPropsState<T>(fieldName: string, valueIfUndefined?: T): [T, (newValue: T) => void];
|
|
151
|
+
/**
|
|
152
|
+
* React -> useSelector on widgetOwnProps[fieldName]
|
|
153
|
+
*/
|
|
154
|
+
useReduxOwnProps<T>(fieldName: string): T;
|
|
155
|
+
/**
|
|
156
|
+
* Redux -> set in Redux value in widgetOwnProps[fieldName]
|
|
157
|
+
*/
|
|
158
|
+
setReduxOwnProps(fieldName: string, value: any): void;
|
|
137
159
|
}
|
|
138
160
|
export interface IWidgetEditorPublicContext {
|
|
139
161
|
/**
|
|
@@ -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":";;;AASA,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAChC,mDAAuB,CAAA;IACvB,iDAAqB,CAAA;AACzB,CAAC,EAHW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAGnC;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
|
@@ -28,6 +28,10 @@ export interface IWidgetTemplateMdxBuilderAxisProps {
|
|
|
28
28
|
* of the first one in the set is used.
|
|
29
29
|
*/
|
|
30
30
|
mdxAxisName?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The test used to generated the axis role (see KPI card).
|
|
33
|
+
*/
|
|
34
|
+
mdxAxisRole?: string;
|
|
31
35
|
/**
|
|
32
36
|
* Disable empty
|
|
33
37
|
*/
|
|
@@ -220,6 +224,10 @@ interface IPublicCommonWidgetTemplateDefinition {
|
|
|
220
224
|
withoutEvents?: boolean;
|
|
221
225
|
withoutUserMenu?: boolean;
|
|
222
226
|
withoutGlobalFilter?: boolean;
|
|
227
|
+
/**
|
|
228
|
+
* Otherwise the widget box is rendering a floating icon to mention some data errors.
|
|
229
|
+
*/
|
|
230
|
+
handleCellsOnError?: boolean;
|
|
223
231
|
renderIfNotInViewport?: boolean;
|
|
224
232
|
/**
|
|
225
233
|
* This widget needs to render even if its query has not been executed yet. The default is false.
|
|
@@ -240,6 +248,9 @@ interface IPublicCommonWidgetTemplateDefinition {
|
|
|
240
248
|
*/
|
|
241
249
|
withDrilldownPivotTableLikeAs?: boolean;
|
|
242
250
|
userMenuOptions?: string[];
|
|
251
|
+
/**
|
|
252
|
+
* Additional widget user menu options when in editing mode.
|
|
253
|
+
*/
|
|
243
254
|
userMenuOptionsOnEditing?: string[];
|
|
244
255
|
/**
|
|
245
256
|
* Disables the user menu option to switch between selection and drilldown
|
|
@@ -298,7 +309,7 @@ interface IPublicCommonWidgetTemplateDefinition {
|
|
|
298
309
|
* Whether or not that component is using React for rendering.
|
|
299
310
|
*/
|
|
300
311
|
reactComponent?: boolean;
|
|
301
|
-
resolveDefinition?: () => Promise<IPublicWidgetTemplateDefinition<any>>;
|
|
312
|
+
resolveDefinition?: (library: IResolveDefinitionLibrary) => Promise<IPublicWidgetTemplateDefinition<any>>;
|
|
302
313
|
/**
|
|
303
314
|
* When defining new widgets using amCharts 4, this method registers the icCube license.
|
|
304
315
|
*/
|
|
@@ -374,4 +385,7 @@ export interface ITemplateEventActionDef {
|
|
|
374
385
|
*/
|
|
375
386
|
selectionSubscribe?: string;
|
|
376
387
|
}
|
|
388
|
+
export interface IResolveDefinitionLibrary {
|
|
389
|
+
wrapTemplateDefinition(id: string): Promise<IPublicWidgetTemplateDefinition<any>>;
|
|
390
|
+
}
|
|
377
391
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicTemplate.js","sourceRoot":"","sources":["../src/PublicTemplate.ts"],"names":[],"mappings":";;;AAcA,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":";;;AAcA,IAAY,4CAIX;AAJD,WAAY,4CAA4C;IACpD,qEAAqB,CAAA;IACrB,yEAAyB,CAAA;IACzB,2EAA2B,CAAA;AAC/B,CAAC,EAJW,4CAA4C,GAA5C,oDAA4C,KAA5C,oDAA4C,QAIvD;AAmJD;;GAEG;AAEH,IAAY,2BAIX;AAJD,WAAY,2BAA2B;IACnC,6EAA8C,CAAA;IAC9C,+EAAgD,CAAA;IAChD,mEAAoC,CAAA;AACxC,CAAC,EAJW,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAItC;AA6ND;;;;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;AAkCD;;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"}
|
|
@@ -339,6 +339,13 @@ export interface IFormColumnChooserFieldDef extends IFormFieldDef<TidyTableColum
|
|
|
339
339
|
includeSelectors?: boolean;
|
|
340
340
|
/**
|
|
341
341
|
* Fallback to a column that has a type that is allowed. Note, properties of columns are not considered.
|
|
342
|
+
*
|
|
343
|
+
* It finds the column to fallback on by
|
|
344
|
+
* 1. role equal to fieldPath and type is allowed,
|
|
345
|
+
* 2. role equal to editorConfig.alias and type is allowed,
|
|
346
|
+
* 3. type is allowed.
|
|
347
|
+
*
|
|
348
|
+
* Already mapped columns are skipped.
|
|
342
349
|
*/
|
|
343
350
|
fallback?: boolean;
|
|
344
351
|
/**
|
|
@@ -412,6 +419,9 @@ export interface IFormMdxFieldDef extends IFormFieldDef<string> {
|
|
|
412
419
|
fieldType: "mdxExpression";
|
|
413
420
|
editorConf: {
|
|
414
421
|
mdxExpressionType: MdxExpressionType;
|
|
422
|
+
metaReadOnly?: boolean;
|
|
423
|
+
schemaName?: string;
|
|
424
|
+
cubeName?: string;
|
|
415
425
|
};
|
|
416
426
|
}
|
|
417
427
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicTemplateForm.js","sourceRoot":"","sources":["../src/PublicTemplateForm.ts"],"names":[],"mappings":";;;AAOA,SAAgB,oBAAoB,CAAC,KAAyB;IAC1D,OAAO,KAAK,CAAC,KAAK,KAAK,oBAAoB,CAAC,SAAS,CAAC;AAC1D,CAAC;AAFD,oDAEC;AAyID,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B,+CAAuB,CAAA;IACvB,yEAAiD,CAAA;IACjD,sDAA8B,CAAA;AAClC,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAI/B;AAkJD,SAAgB,eAAe,CAAC,IAAmB;IAC/C,OAAO,IAAI,KAAK,mBAAmB;WAC5B,IAAI,KAAK,sBAAsB;WAC/B,IAAI,KAAK,mBAAmB;WAC5B,IAAI,KAAK,sBAAsB;WAC/B,IAAI,KAAK,sBAAsB;WAC/B,IAAI,KAAK,yBAAyB;WAClC,IAAI,KAAK,wBAAwB;WACjC,IAAI,KAAK,uBAAuB;WAChC,IAAI,KAAK,uBAAuB,CAClC;AACT,CAAC;AAXD,0CAWC;AAED,SAAgB,oBAAoB,CAAC,IAAmB;IACpD,OAAO,IAAI,KAAK,mBAAmB;WAC5B,IAAI,KAAK,mBAAmB;WAC5B,IAAI,KAAK,sBAAsB,CACjC;AACT,CAAC;AALD,oDAKC;AAED,SAAgB,kBAAkB,CAAC,IAAmB;IAClD,OAAO,IAAI,KAAK,sBAAsB;WAC/B,IAAI,K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;WAC5B,IAAI,KAAK,sBAAsB,CACjC;AACT,CAAC;AAJD,0DAIC;AAED,SAAgB,sBAAsB,CAAC,IAAmB;IACtD,OAAO,IAAI,KAAK,sBAAsB;WAC/B,IAAI,KAAK,yBAAyB,CACpC;AACT,CAAC;AAJD,wDAIC;AAED,SAAgB,oBAAoB,CAAC,IAAmB;IACpD,OAAO,IAAI,KAAK,uBAAuB,CAClC;AACT,CAAC;AAHD,oDAGC;AAED;;;GAGG;AACH,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACjC,sDAAyB,CAAA;IACzB,gEAAmC,CAAA;AACvC,CAAC,EAHW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAGpC;AAaD,SAAgB,oBAAoB,CAAC,IAAoB;IACrD,OAAO,IAAI,KAAK,mBAAmB;WAC5B,IAAI,KAAK,sBAAsB;WAC/B,IAAI,KAAK,mBAAmB;WAC5B,IAAI,KAAK,sBAAsB;WAC/B,IAAI,KAAK,sBAAsB;WAC/B,IAAI,KAAK,yBAAyB;WAClC,IAAI,KAAK,uBAAuB;WAChC,IAAI,KAAK,wBAAwB;WACjC,IAAI,KAAK,uBAAuB,CAClC;AACT,CAAC;AAXD,oDAWC;AAulBD,SAAgB,gBAAgB,CAAC,MAAgB;IAC7C,OAAO;QACH,SAAS,EAAE,QAAQ;QACnB,MAAM,EAAE,MAAM;QACd,SAAS,EAAE,EAAE;KAChB,CAAC;AACN,CAAC;AAND,4CAMC"}
|
package/dist/PublicTheme.d.ts
CHANGED
|
@@ -23,6 +23,8 @@ import { FilterButtonsClassKey, FilterButtonsProps } from "./theme/ThemeFilterBu
|
|
|
23
23
|
import { FilterSliderClassKey, FilterSliderProps } from "./theme/ThemeFilterSlider";
|
|
24
24
|
import { GoogleMapMarkerProps } from "./theme/ThemeGoogleMapMarker";
|
|
25
25
|
import { IPublicContext } from "./PublicContext";
|
|
26
|
+
import { TableClassKey, TableProps } from "./theme/ThemeTable";
|
|
27
|
+
import { PivotTableClassKey, PivotTableProps } from "./theme/ThemePivotTable";
|
|
26
28
|
export interface INoSchemaRendererOptions {
|
|
27
29
|
missingSchema: string;
|
|
28
30
|
}
|
|
@@ -240,6 +242,7 @@ export interface ic3Theme {
|
|
|
240
242
|
* Icons used in tables and trees
|
|
241
243
|
*/
|
|
242
244
|
icons: {
|
|
245
|
+
none: (className: string) => ReactElement | string;
|
|
243
246
|
expanded: (className: string) => ReactElement | string;
|
|
244
247
|
collapse: (className: string) => ReactElement | string;
|
|
245
248
|
loading: (className: string) => ReactElement | string;
|
|
@@ -409,10 +412,6 @@ declare module '@mui/material/styles/components' {
|
|
|
409
412
|
ErrorRenderer?: {
|
|
410
413
|
styleOverrides?: ComponentsOverrides["ErrorRenderer"];
|
|
411
414
|
};
|
|
412
|
-
HtmlBox?: {
|
|
413
|
-
styleOverrides?: ComponentsOverrides["HtmlBox"];
|
|
414
|
-
variants?: ComponentsVariants["HtmlBox"];
|
|
415
|
-
};
|
|
416
415
|
FilterButtons?: {
|
|
417
416
|
styleOverrides?: ComponentsOverrides["FilterButtons"];
|
|
418
417
|
variants?: ComponentsVariants["FilterButtons"];
|
|
@@ -421,18 +420,31 @@ declare module '@mui/material/styles/components' {
|
|
|
421
420
|
styleOverrides?: ComponentsOverrides["FilterSlider"];
|
|
422
421
|
variants?: ComponentsVariants["FilterSlider"];
|
|
423
422
|
};
|
|
423
|
+
GoogleMapMarker?: {
|
|
424
|
+
variants?: ComponentsVariants['GoogleMapMarker'];
|
|
425
|
+
};
|
|
426
|
+
HtmlBox?: {
|
|
427
|
+
styleOverrides?: ComponentsOverrides["HtmlBox"];
|
|
428
|
+
variants?: ComponentsVariants["HtmlBox"];
|
|
429
|
+
};
|
|
424
430
|
Layout?: {
|
|
425
431
|
styleOverrides?: ComponentsOverrides["Layout"];
|
|
426
432
|
};
|
|
427
433
|
LayoutPage?: {
|
|
428
434
|
styleOverrides?: ComponentsOverrides["LayoutPage"];
|
|
429
435
|
};
|
|
436
|
+
PivotTable?: {
|
|
437
|
+
styleOverrides?: ComponentsOverrides["PivotTable"];
|
|
438
|
+
};
|
|
430
439
|
ReportAppBar?: {
|
|
431
440
|
styleOverrides?: ComponentsOverrides["ReportAppBar"];
|
|
432
441
|
};
|
|
433
442
|
ReportAppMenu?: {
|
|
434
443
|
styleOverrides?: ComponentsOverrides["ReportAppMenu"];
|
|
435
444
|
};
|
|
445
|
+
Table?: {
|
|
446
|
+
styleOverrides?: ComponentsOverrides["Table"];
|
|
447
|
+
};
|
|
436
448
|
WidgetBox?: {
|
|
437
449
|
variants?: ComponentsVariants['WidgetBox'];
|
|
438
450
|
styleOverrides?: ComponentsOverrides["WidgetBox"];
|
|
@@ -440,9 +452,6 @@ declare module '@mui/material/styles/components' {
|
|
|
440
452
|
WidgetBoxContentMessage?: {
|
|
441
453
|
styleOverrides?: ComponentsOverrides["WidgetBoxContentMessage"];
|
|
442
454
|
};
|
|
443
|
-
GoogleMapMarker?: {
|
|
444
|
-
variants?: ComponentsVariants['GoogleMapMarker'];
|
|
445
|
-
};
|
|
446
455
|
}
|
|
447
456
|
}
|
|
448
457
|
declare module '@mui/material/styles/overrides' {
|
|
@@ -456,19 +465,23 @@ declare module '@mui/material/styles/overrides' {
|
|
|
456
465
|
HtmlBox: HtmlBoxClassKey;
|
|
457
466
|
Layout: LayoutClassKey;
|
|
458
467
|
LayoutPage: LayoutPageClassKey;
|
|
468
|
+
PivotTable: PivotTableClassKey;
|
|
459
469
|
ReportAppBar: ReportAppBarClassKey;
|
|
460
470
|
ReportAppMenu: ReportAppMenuClassKey;
|
|
471
|
+
Table: TableClassKey;
|
|
461
472
|
WidgetBox: WidgetBoxClassKey;
|
|
462
473
|
WidgetBoxContentMessage: WidgetBoxContentMessageClassKey;
|
|
463
474
|
}
|
|
464
475
|
}
|
|
465
476
|
declare module '@mui/material/styles/props' {
|
|
466
477
|
interface ComponentsPropsList {
|
|
467
|
-
HtmlBox: HtmlBoxProps;
|
|
468
|
-
WidgetBox: Record<never, any>;
|
|
469
478
|
FilterButtons: FilterButtonsProps;
|
|
470
479
|
FilterSlider: FilterSliderProps;
|
|
471
480
|
GoogleMapMarker: GoogleMapMarkerProps;
|
|
481
|
+
HtmlBox: HtmlBoxProps;
|
|
482
|
+
PivotTable: PivotTableProps;
|
|
483
|
+
Table: TableProps;
|
|
484
|
+
WidgetBox: Record<never, any>;
|
|
472
485
|
}
|
|
473
486
|
}
|
|
474
487
|
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":";;;AAgSA,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC7B,8CAAqB,CAAA;IACrB,4CAAmB,CAAA;AACvB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC"}
|