@ic3/reporting-api 8.4.3 → 8.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ApiUtils.js +1 -1
- package/dist/PublicContext.d.ts +34 -5
- package/dist/PublicLayout.d.ts +45 -6
- package/dist/PublicTemplate.d.ts +56 -0
- package/dist/PublicTemplate.js.map +1 -1
- package/dist/PublicTemplateForm.d.ts +110 -5
- package/dist/PublicTemplateForm.js +36 -7
- package/dist/PublicTemplateForm.js.map +1 -1
- package/dist/PublicTemplates.d.ts +0 -2
- package/dist/PublicTheme.d.ts +18 -4
- package/dist/PublicTheme.js +5 -1
- package/dist/PublicTheme.js.map +1 -1
- package/dist/PublicTidyColumn.d.ts +24 -7
- package/dist/PublicTidyColumn.js +5 -0
- package/dist/PublicTidyColumn.js.map +1 -1
- package/dist/PublicTidyTableInteractions.d.ts +2 -0
- package/dist/PublicTidyTableTypes.d.ts +9 -20
- package/dist/PublicTidyTableTypes.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/theme/ThemeAmCharts4.d.ts +4 -4
- package/dist/theme/ThemeFilterAutocomplete.d.ts +2 -0
- package/dist/theme/ThemeFilterButtons.d.ts +10 -0
- package/dist/theme/ThemeFilterPanel.d.ts +0 -1
- package/dist/theme/ThemePivotTable.d.ts +6 -0
- package/package.json +7 -7
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.5" || "-", "Fri, 15 Sep 2023 04:53:02 GMT" || "-") }, definition);
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
/**
|
package/dist/PublicContext.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { LazyTreeViewProps } from "./LazyTreeView";
|
|
|
3
3
|
import { ITidyTable } from "./PublicTidyTable";
|
|
4
4
|
import { ITidyTableTransformation } from "./ITidyTableTransformation";
|
|
5
5
|
import { Theme } from "@mui/material/styles";
|
|
6
|
-
import { ThemeTextFormatter } from "./PublicTheme";
|
|
6
|
+
import { ThemeFormatters, ThemeTextFormatter } from "./PublicTheme";
|
|
7
7
|
import { ITidyColumn, ITidyNumericColumn } from "./PublicTidyColumn";
|
|
8
8
|
import { IPublicWidgetTemplateDefinition } from "./PublicTemplate";
|
|
9
9
|
import { ITidyMath } from "./PublicTidyMath";
|
|
@@ -30,6 +30,10 @@ export interface IPublicContext {
|
|
|
30
30
|
*/
|
|
31
31
|
useGoogleMapHook(): boolean | Error;
|
|
32
32
|
getTheme(): Theme;
|
|
33
|
+
/**
|
|
34
|
+
* Return the formatter for the current user's locale.
|
|
35
|
+
*/
|
|
36
|
+
getThemeFormatter(): ThemeFormatters;
|
|
33
37
|
getUserName(): string;
|
|
34
38
|
getReportLocale(): string;
|
|
35
39
|
getNumberFormatter(format: ThemeTextFormatter): (value: any | undefined) => string;
|
|
@@ -56,6 +60,10 @@ export interface IPublicContext {
|
|
|
56
60
|
description?: string;
|
|
57
61
|
};
|
|
58
62
|
localizeFormField(pluginId: string, widgetTemplateId: string, name: string, ...args: any[]): [string, string | undefined, string | undefined];
|
|
63
|
+
/**
|
|
64
|
+
* markdown to sanitized html
|
|
65
|
+
*/
|
|
66
|
+
markdownToHtml(markDown: string): string;
|
|
59
67
|
/**
|
|
60
68
|
* A bunch of mathematical functions related to the tidy table.
|
|
61
69
|
*/
|
|
@@ -126,6 +134,31 @@ export interface IPublicContext {
|
|
|
126
134
|
* @param isRowSelected function for usage with `totalSelectedOrTotal`. Use tableInter.isSelected(rowIdx).
|
|
127
135
|
*/
|
|
128
136
|
createTableNumericExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined, isRowSelected?: TidyRowFilter): (() => number | undefined) | undefined;
|
|
137
|
+
/**
|
|
138
|
+
* same as createTableNumericExpr but returning a javascript object
|
|
139
|
+
*/
|
|
140
|
+
createTableNumericStringExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined, isRowSelected?: TidyRowFilter): (() => any | undefined) | undefined;
|
|
141
|
+
/**
|
|
142
|
+
* same as createTableNumericExpr but returning a javascript object
|
|
143
|
+
*/
|
|
144
|
+
createTableNumericJSExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined, isRowSelected?: TidyRowFilter): (() => any | undefined) | undefined;
|
|
145
|
+
/**
|
|
146
|
+
* Event methods that do not depend on a Table
|
|
147
|
+
*
|
|
148
|
+
* @see ITidyTableInteractionEvent for more
|
|
149
|
+
*/
|
|
150
|
+
/**
|
|
151
|
+
* actionName if the action is bound to a channel, clears the event (has no value)
|
|
152
|
+
*/
|
|
153
|
+
fireClearEventName(actionName: string): void;
|
|
154
|
+
/**
|
|
155
|
+
* actionName if the action is bound to a channel, send an Mdx Event (value,mdx)
|
|
156
|
+
*/
|
|
157
|
+
fireMdxEventName(actionName: string, value: string, mdx: string): void;
|
|
158
|
+
/**
|
|
159
|
+
* Used for publishing app notifications (e.g., print the report).
|
|
160
|
+
*/
|
|
161
|
+
fireAppNotification(notification: AppNotification): void;
|
|
129
162
|
}
|
|
130
163
|
export interface IWidgetPublicContext extends IPublicContext {
|
|
131
164
|
/**
|
|
@@ -172,10 +205,6 @@ export interface IWidgetPublicContext extends IPublicContext {
|
|
|
172
205
|
* actionName if the action is bound to a channel, send an Mdx Event (value,mdx)
|
|
173
206
|
*/
|
|
174
207
|
fireMdxEvent(actionName: string, value: string, mdx: string): void;
|
|
175
|
-
/**
|
|
176
|
-
* Used for publishing app notifications (e.g., print the report).
|
|
177
|
-
*/
|
|
178
|
-
fireAppNotification(notification: AppNotification): void;
|
|
179
208
|
/**
|
|
180
209
|
* Cypress testing purpose, after a rendering of the chart
|
|
181
210
|
*/
|
package/dist/PublicLayout.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PaperOrientation, PaperSizeUnits } from "./ITypes";
|
|
2
2
|
import { Property } from "csstype";
|
|
3
|
+
import { Breakpoint } from "@mui/material/styles";
|
|
3
4
|
type CSSProperties = any;
|
|
4
5
|
/**
|
|
5
6
|
* <pre>
|
|
@@ -45,6 +46,16 @@ export interface IWidgetLayoutGridDefinition {
|
|
|
45
46
|
width: number;
|
|
46
47
|
height: number;
|
|
47
48
|
}
|
|
49
|
+
export interface IResponsiveBreakpoint {
|
|
50
|
+
md: number;
|
|
51
|
+
xs: number;
|
|
52
|
+
}
|
|
53
|
+
export type ResponsiveValue = {
|
|
54
|
+
[key in Breakpoint]: number;
|
|
55
|
+
} & {
|
|
56
|
+
print: number;
|
|
57
|
+
printLandscape?: number;
|
|
58
|
+
};
|
|
48
59
|
/**
|
|
49
60
|
* Control how the layout is responding to width change.
|
|
50
61
|
*/
|
|
@@ -65,18 +76,37 @@ export interface IWidgetLayoutResponsivenessDefinition {
|
|
|
65
76
|
* Setup once the layout configuration is being resolved against the theme.
|
|
66
77
|
*/
|
|
67
78
|
themeSpacing: number;
|
|
79
|
+
/**
|
|
80
|
+
* The grid column span multiplier (i.e., x2 when the tables so widgets are twice as wide).
|
|
81
|
+
*/
|
|
82
|
+
multiplier: ResponsiveValue;
|
|
68
83
|
/**
|
|
69
84
|
* The grid margins.
|
|
70
85
|
*/
|
|
71
|
-
margin:
|
|
86
|
+
margin: ResponsiveValue;
|
|
72
87
|
/**
|
|
73
|
-
*
|
|
88
|
+
* Defines the horizontal space between the widgets.
|
|
74
89
|
*/
|
|
75
|
-
columnSpacing?:
|
|
90
|
+
columnSpacing?: ResponsiveValue;
|
|
76
91
|
/**
|
|
77
|
-
*
|
|
92
|
+
* Defines the vertical space between the widgets.
|
|
78
93
|
*/
|
|
79
|
-
rowSpacing?:
|
|
94
|
+
rowSpacing?: ResponsiveValue;
|
|
95
|
+
/**
|
|
96
|
+
* Defines a grid to snap the height of the widgets in group.
|
|
97
|
+
*
|
|
98
|
+
* When the group grid is defined as %, the grid percentages will be kept on group height resizing
|
|
99
|
+
* (not the case if the grid is defined in pixels).
|
|
100
|
+
*
|
|
101
|
+
* <ul>
|
|
102
|
+
* <li> undefined : no constraint.
|
|
103
|
+
* <li> array : a list of percentages to snap the widgets (e.g., [0.1,.0.2,0.3....1.0] to have
|
|
104
|
+
* a grid 10% of group height, 20%, etc...).
|
|
105
|
+
* <li> number < 1 : a percentage of the group height.
|
|
106
|
+
* <li> number >= 1 : grid in pixels
|
|
107
|
+
* </ul>
|
|
108
|
+
*/
|
|
109
|
+
groupSnapSteps: number[] | number;
|
|
80
110
|
}
|
|
81
111
|
export interface IPageHeaderFooterLogoDefinition {
|
|
82
112
|
style?: CSSProperties;
|
|
@@ -132,12 +162,20 @@ export interface IPageHeaderFooterDefinition {
|
|
|
132
162
|
*/
|
|
133
163
|
export interface IWidgetLayoutDefinition {
|
|
134
164
|
layoutConfigId: string;
|
|
165
|
+
layoutGroup: string;
|
|
166
|
+
layoutName: string;
|
|
135
167
|
cssClass?: string;
|
|
136
168
|
/**
|
|
137
169
|
* Not relevant if responsiveness is being defined: always an unlimited portrait.
|
|
138
170
|
*/
|
|
139
171
|
pageSize: IKnownPageSize | IManualPageSize | IUnlimitedPageSize;
|
|
172
|
+
/**
|
|
173
|
+
* Not relevant if responsiveness is being defined: always an unlimited portrait.
|
|
174
|
+
*/
|
|
140
175
|
pageOrientation: PaperOrientation;
|
|
176
|
+
/**
|
|
177
|
+
* Not relevant if responsiveness is being defined: margins are defined per breakpoint.
|
|
178
|
+
*/
|
|
141
179
|
pageMargin: IPageMargin;
|
|
142
180
|
/**
|
|
143
181
|
* Use the one defined from the theme (ic3 palette) when not defined here.
|
|
@@ -149,7 +187,8 @@ export interface IWidgetLayoutDefinition {
|
|
|
149
187
|
*/
|
|
150
188
|
expandH?: boolean;
|
|
151
189
|
/**
|
|
152
|
-
* Control how this layout is responding to width change
|
|
190
|
+
* Control how this layout is responding to width change : check ic3-demo-plugin-them
|
|
191
|
+
* (https://github.com/ic3-software/ic3-demo-plugin-theme) for a complete example.
|
|
153
192
|
*/
|
|
154
193
|
responsiveness?: IWidgetLayoutResponsivenessDefinition;
|
|
155
194
|
/**
|
package/dist/PublicTemplate.d.ts
CHANGED
|
@@ -20,6 +20,60 @@ export interface IRectangleSize {
|
|
|
20
20
|
}
|
|
21
21
|
export interface IRectangle extends IRectanglePosition, IRectangleSize {
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Widget box configuration when the widget is rendered in the responsive grid layout.
|
|
25
|
+
* This is used instead of the regular rectangle and positionOrder configuration.
|
|
26
|
+
*/
|
|
27
|
+
export interface IWidgetBoxGridLayoutInfo {
|
|
28
|
+
/**
|
|
29
|
+
* Handy (same as in IWidgetDefinition).
|
|
30
|
+
*/
|
|
31
|
+
widgetId: string;
|
|
32
|
+
/**
|
|
33
|
+
* The responsive grid layout is made of a single flex (row) box.
|
|
34
|
+
* The index in the only row of the 'flex' layout.
|
|
35
|
+
*/
|
|
36
|
+
position: number;
|
|
37
|
+
/**
|
|
38
|
+
* A part of the total number of columns in the 'flex' layout.
|
|
39
|
+
*/
|
|
40
|
+
colSpan: number;
|
|
41
|
+
/**
|
|
42
|
+
* The actual physical height.
|
|
43
|
+
*/
|
|
44
|
+
height: number;
|
|
45
|
+
/**
|
|
46
|
+
* The group (i.e., nested grid layout) this widget belongs to.
|
|
47
|
+
*/
|
|
48
|
+
group?: IWidgetBoxGroupGridLayoutInfo;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Support for nested grid layout : a grid item can be a group of widgets rendered as a grid layout.
|
|
52
|
+
*
|
|
53
|
+
* The actual number of columns of this nested grid layout is the colSpan of the group seen as a regular
|
|
54
|
+
* item of the containing grid layout. The group inherit both the column and row spacing of its containing
|
|
55
|
+
* grid layout and has no margin.
|
|
56
|
+
*
|
|
57
|
+
* For the sake of simplicity a group cannot contain a group.
|
|
58
|
+
*/
|
|
59
|
+
export interface IWidgetBoxGroupGridLayoutInfo {
|
|
60
|
+
groupId: string;
|
|
61
|
+
/**
|
|
62
|
+
* A group is a regular item of its containing grid layout.
|
|
63
|
+
* @see IWidgetBoxGridLayoutInfo
|
|
64
|
+
*/
|
|
65
|
+
position: number;
|
|
66
|
+
/**
|
|
67
|
+
* A group is a regular item of its containing grid layout.
|
|
68
|
+
* @see IWidgetBoxGridLayoutInfo
|
|
69
|
+
*/
|
|
70
|
+
colSpan: number;
|
|
71
|
+
/**
|
|
72
|
+
* A group is a regular item of its containing grid layout.
|
|
73
|
+
* @see IWidgetBoxGridLayoutInfo
|
|
74
|
+
*/
|
|
75
|
+
height: number;
|
|
76
|
+
}
|
|
23
77
|
export interface IWidgetLayoutData {
|
|
24
78
|
/**
|
|
25
79
|
* Keep box header settings for additional (i.e., generated) pages.
|
|
@@ -35,6 +89,7 @@ export interface IWidgetLayoutData {
|
|
|
35
89
|
export interface IWidgetLayoutInfo extends IRectangle {
|
|
36
90
|
pageNb: number;
|
|
37
91
|
positionOrder: number;
|
|
92
|
+
gridLayoutInfo?: IWidgetBoxGridLayoutInfo;
|
|
38
93
|
data?: IWidgetLayoutData;
|
|
39
94
|
resizingConstraint?: ResizingConstraintOptions;
|
|
40
95
|
}
|
|
@@ -319,6 +374,7 @@ interface IPublicCommonWidgetTemplateDefinition<OPTIONS extends FormFieldObject>
|
|
|
319
374
|
* header is repeating on each page.
|
|
320
375
|
*/
|
|
321
376
|
withOptionAutoExpandKeepTableHeader?: boolean;
|
|
377
|
+
withOptionAutoExpandHeightNotDependingOnWidth?: boolean;
|
|
322
378
|
/**
|
|
323
379
|
* If and only if not null, hide option 'Interactions' > 'Drilldown' > 'Pivot Table Like' and set it default value to withDrilldownPivotTableLikeAs.
|
|
324
380
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicTemplate.js","sourceRoot":"","sources":["../src/PublicTemplate.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"PublicTemplate.js","sourceRoot":"","sources":["../src/PublicTemplate.ts"],"names":[],"mappings":";;;AA8HA,IAAY,4CAIX;AAJD,WAAY,4CAA4C;IACpD,qEAAqB,CAAA;IACrB,yEAAyB,CAAA;IACzB,2EAA2B,CAAA;AAC/B,CAAC,EAJW,4CAA4C,GAA5C,oDAA4C,KAA5C,oDAA4C,QAIvD;AAweD;;;;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"}
|
|
@@ -73,6 +73,10 @@ export interface IFormFieldDef<DEFAULT_VALUE_TYPE> {
|
|
|
73
73
|
* Only works for chart/widgetOptions !!
|
|
74
74
|
*/
|
|
75
75
|
translated?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Allow for group of fields, disabled help in form wrapper
|
|
78
|
+
*/
|
|
79
|
+
disableHelpInWrapper?: boolean;
|
|
76
80
|
}
|
|
77
81
|
/**
|
|
78
82
|
* The options (possibly edited and/or from the theme) of a widget.
|
|
@@ -98,7 +102,7 @@ export type FormFields<T extends FormFieldObject> = {
|
|
|
98
102
|
} | {
|
|
99
103
|
defaultValue?: any;
|
|
100
104
|
mandatory?: false;
|
|
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'> | Omit<IFormPropertyChooserBaseDef, 'fieldPath'> : Required<T>[key] extends string[] ? Omit<IFormOptionFieldMultipleDef, 'fieldPath'> | Omit<IFormGroupsFieldDef, 'fieldPath'> : never);
|
|
105
|
+
}) & (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<IFormTidyTableNumericStringColumnExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableHtmlRowExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableHtmlExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableNumericExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableNumericRowExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableNumericColumnExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableNumericJSColumnExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableColorRowExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableStringRowExprFieldDef, 'fieldPath'> | Omit<IFormTidyTableScaleRowExprFieldDef, 'fieldPath'> | Omit<IFormJsFieldDef, 'fieldPath'> | Omit<IFormJsonFieldDef, 'fieldPath'> | Omit<IFormMarkdownFieldDef, 'fieldPath'> | Omit<IFormOptionFieldReportPathDef, 'fieldPath'> | Omit<IFormPropertyChooserBaseDef, 'fieldPath'> | Omit<IFormLayoutFieldDef, 'fieldPath'> : Required<T>[key] extends string[] ? Omit<IFormOptionFieldMultipleDef, 'fieldPath'> | Omit<IFormGroupsFieldDef, 'fieldPath'> : never);
|
|
102
106
|
};
|
|
103
107
|
export declare enum IFormFieldGroupTypes {
|
|
104
108
|
Selection = "groupSelection",
|
|
@@ -230,6 +234,14 @@ export type FormFieldType =
|
|
|
230
234
|
* @see IFormTidyTableNumericRowExprFieldDef
|
|
231
235
|
*/
|
|
232
236
|
"tidyTableNumericRowExpr" |
|
|
237
|
+
/**
|
|
238
|
+
* @see IFormTidyTableNumericColumnExprFieldDef
|
|
239
|
+
*/
|
|
240
|
+
"tidyTableNumericJSColumnExpr" |
|
|
241
|
+
/**
|
|
242
|
+
* @see IFormTidyTableNumericJSColumnExprFieldDef
|
|
243
|
+
*/
|
|
244
|
+
"tidyTableNumericColumnExpr" |
|
|
233
245
|
/**
|
|
234
246
|
* @see IFormTidyTableStringRowExprFieldDef
|
|
235
247
|
*/
|
|
@@ -250,6 +262,10 @@ export type FormFieldType =
|
|
|
250
262
|
* @see IFormTidyTableTextRowExprFieldDef
|
|
251
263
|
*/
|
|
252
264
|
"tidyTableTextRowExpr" |
|
|
265
|
+
/**
|
|
266
|
+
* @see IFormTidyTableNumericStringColumnExprFieldDef
|
|
267
|
+
*/
|
|
268
|
+
"tidyTableNumericStringColumnExpr" |
|
|
253
269
|
/**
|
|
254
270
|
* @see IFormUrlFieldDef
|
|
255
271
|
*/
|
|
@@ -269,14 +285,22 @@ export type FormFieldType =
|
|
|
269
285
|
/**
|
|
270
286
|
* @see IFormPropertyChooserBaseDef
|
|
271
287
|
*/
|
|
272
|
-
"propertyChooser"
|
|
273
|
-
|
|
288
|
+
"propertyChooser" |
|
|
289
|
+
/**
|
|
290
|
+
* @see IFormLayoutFieldDef
|
|
291
|
+
*/
|
|
292
|
+
"layout";
|
|
293
|
+
export type FormFieldTidyTableExprType = "tidyTableColorRowExpr" | "tidyTableHtmlExpr" | "tidyTableHtmlRowExpr" | "tidyTableNumericColumnExpr" | "tidyTableNumericExpr" | "tidyTableNumericJSColumnExpr" | "tidyTableNumericRowExpr" | "tidyTableNumericStringColumnExpr" | "tidyTableScaleRowExpr" | "tidyTableTextExpr" | "tidyTableTextRowExpr" | "tidyTableStringRowExpr";
|
|
274
294
|
export declare function isTidyTableExpr(type: FormFieldType): type is FormFieldTidyTableExprType;
|
|
295
|
+
export declare function isTidyTableExprJS(type: FormFieldType): boolean;
|
|
275
296
|
export declare function isTidyTableExprTable(type: FormFieldType): boolean;
|
|
297
|
+
export declare function isTidyTableExprColumn(type: FormFieldType): boolean;
|
|
276
298
|
export declare function isTidyTableExprRow(type: FormFieldType): boolean;
|
|
299
|
+
export declare function isTidyTableExprNumericString(type: FormFieldType): type is "tidyTableColorRowExpr" | "tidyTableStringRowExpr" | "tidyTableNumericStringColumnExpr";
|
|
300
|
+
export declare function isTidyTableExprNumericJS(type: FormFieldType): type is "tidyTableNumericJSColumnExpr";
|
|
277
301
|
export declare function isTidyTableExprText(type: FormFieldType): type is "tidyTableTextExpr" | "tidyTableTextRowExpr";
|
|
278
302
|
export declare function isTidyTableExprTextHtml(type: FormFieldType): type is "tidyTableHtmlExpr" | "tidyTableHtmlRowExpr";
|
|
279
|
-
export declare function isTidyTableExprNumeric(type: FormFieldType): type is "tidyTableNumericExpr" | "tidyTableNumericRowExpr";
|
|
303
|
+
export declare function isTidyTableExprNumeric(type: FormFieldType): type is "tidyTableNumericExpr" | "tidyTableNumericRowExpr" | "tidyTableNumericColumnExpr";
|
|
280
304
|
export declare function isTidyTableExprScale(type: FormFieldType): type is "tidyTableScaleRowExpr";
|
|
281
305
|
/**
|
|
282
306
|
* Error messages for field suggestions and value candidates.
|
|
@@ -354,6 +378,9 @@ export interface IFormAutocompleteFieldDef<OPTION> extends IFormFieldDef<OPTION>
|
|
|
354
378
|
export interface IFormBooleanFieldDef extends IFormFieldDef<boolean> {
|
|
355
379
|
fieldType: "boolean" | "fixedBoolean" | "groupBoolean";
|
|
356
380
|
}
|
|
381
|
+
export interface IFormLayoutFieldDef extends IFormFieldDef<string> {
|
|
382
|
+
fieldType: "layout";
|
|
383
|
+
}
|
|
357
384
|
/**
|
|
358
385
|
* @see FormFieldDef
|
|
359
386
|
*/
|
|
@@ -836,6 +863,58 @@ export interface IFormTidyTableNumericRowExprFieldDef extends IFormFieldDef<stri
|
|
|
836
863
|
useSelectedColumns?: boolean;
|
|
837
864
|
};
|
|
838
865
|
}
|
|
866
|
+
/**
|
|
867
|
+
* A numeric expression containing tidy table value accessor (e.g., chart's value axis minimum).
|
|
868
|
+
* The evaluation context is a column.
|
|
869
|
+
*
|
|
870
|
+
* @see FormFieldDef
|
|
871
|
+
*/
|
|
872
|
+
export interface IFormTidyTableNumericColumnExprFieldDef extends IFormFieldDef<string> {
|
|
873
|
+
fieldType: "tidyTableNumericColumnExpr";
|
|
874
|
+
editorConf?: {
|
|
875
|
+
/**
|
|
876
|
+
* If true, user can use select a column in the dialog editor. This column then is the _currentColumn in the
|
|
877
|
+
* expression when evaluating in the dialog editor.
|
|
878
|
+
*/
|
|
879
|
+
userSelectsCurrentColumn?: boolean;
|
|
880
|
+
/**
|
|
881
|
+
* If true, user can use _currentColumn in the expression.
|
|
882
|
+
* The default current column comes from the first dependsOn option.
|
|
883
|
+
*/
|
|
884
|
+
useCurrentColumn?: boolean;
|
|
885
|
+
/**
|
|
886
|
+
* If true, user can use _selectedColumns in the expression.
|
|
887
|
+
* The default selected columns come from the second dependsOn option.
|
|
888
|
+
*/
|
|
889
|
+
useSelectedColumns?: boolean;
|
|
890
|
+
};
|
|
891
|
+
}
|
|
892
|
+
/**
|
|
893
|
+
* A numeric expression containing tidy table value accessor (e.g., chart's value axis minimum).
|
|
894
|
+
* The evaluation context is a column.
|
|
895
|
+
*
|
|
896
|
+
* @see FormFieldDef
|
|
897
|
+
*/
|
|
898
|
+
export interface IFormTidyTableNumericJSColumnExprFieldDef extends IFormFieldDef<string> {
|
|
899
|
+
fieldType: "tidyTableNumericJSColumnExpr";
|
|
900
|
+
editorConf?: {
|
|
901
|
+
/**
|
|
902
|
+
* If true, user can use select a column in the dialog editor. This column then is the _currentColumn in the
|
|
903
|
+
* expression when evaluating in the dialog editor.
|
|
904
|
+
*/
|
|
905
|
+
userSelectsCurrentColumn?: boolean;
|
|
906
|
+
/**
|
|
907
|
+
* If true, user can use _currentColumn in the expression.
|
|
908
|
+
* The default current column comes from the first dependsOn option.
|
|
909
|
+
*/
|
|
910
|
+
useCurrentColumn?: boolean;
|
|
911
|
+
/**
|
|
912
|
+
* If true, user can use _selectedColumns in the expression.
|
|
913
|
+
* The default selected columns come from the second dependsOn option.
|
|
914
|
+
*/
|
|
915
|
+
useSelectedColumns?: boolean;
|
|
916
|
+
};
|
|
917
|
+
}
|
|
839
918
|
/**
|
|
840
919
|
* A numeric expression containing tidy table value accessor (e.g., chart's value axis minimum).
|
|
841
920
|
* The evaluation context is a row.
|
|
@@ -914,6 +993,32 @@ export interface IFormTidyTableTextRowExprFieldDef extends IFormFieldDef<string>
|
|
|
914
993
|
useSelectedColumns?: boolean;
|
|
915
994
|
};
|
|
916
995
|
}
|
|
996
|
+
/**
|
|
997
|
+
* A text expression containing tidy table value accessor (e.g., cell renderer link).
|
|
998
|
+
* The evaluation context is a column.
|
|
999
|
+
*
|
|
1000
|
+
* @see FormFieldDef
|
|
1001
|
+
*/
|
|
1002
|
+
export interface IFormTidyTableNumericStringColumnExprFieldDef extends IFormFieldDef<string> {
|
|
1003
|
+
fieldType: "tidyTableNumericStringColumnExpr";
|
|
1004
|
+
editorConf?: {
|
|
1005
|
+
/**
|
|
1006
|
+
* If true, user can use select a column in the dialog editor. This column then is the _currentColumn in the
|
|
1007
|
+
* expression when evaluating in the dialog editor.
|
|
1008
|
+
*/
|
|
1009
|
+
userSelectsCurrentColumn?: boolean;
|
|
1010
|
+
/**
|
|
1011
|
+
* If true, user can use _currentColumn in the expression.
|
|
1012
|
+
* The default current column comes from the first dependsOn option.
|
|
1013
|
+
*/
|
|
1014
|
+
useCurrentColumn?: boolean;
|
|
1015
|
+
/**
|
|
1016
|
+
* If true, user can use _selectedColumns in the expression.
|
|
1017
|
+
* The default selected columns come from the second dependsOn option.
|
|
1018
|
+
*/
|
|
1019
|
+
useSelectedColumns?: boolean;
|
|
1020
|
+
};
|
|
1021
|
+
}
|
|
917
1022
|
/**
|
|
918
1023
|
* icCube variants (defined in the theme's ic3.widgetVariants).
|
|
919
1024
|
*
|
|
@@ -929,5 +1034,5 @@ export interface IFormWidgetVariantFieldDef extends IFormFieldDef<string> {
|
|
|
929
1034
|
export interface IFormFormatterPickerFieldDef extends IFormFieldDef<string> {
|
|
930
1035
|
fieldType: "formatterPicker";
|
|
931
1036
|
}
|
|
932
|
-
export type FormFieldDef = IFormAutocompleteFieldDef<any> | IFormBooleanFieldDef | IFormColorEditorFieldDef | IFormColumnChooserFieldDef | IFormColumnSelectionFieldDef | IFormConstantsFieldDef | IFormEventArrayFieldDef | IFormEventMappingArrayFieldDef | IFormFileUploaderFieldDef | IFormGroupsFieldDef | IFormJsFieldDef | IFormMarkdownFieldDef | IFormMaskFieldDef | IFormMdxFieldDef | IFormNumberFieldDef | IFormOptionFieldDef | IFormOptionFieldSingleDef | IFormOptionFieldMultipleDef | IFormPaletteEditorFieldDef | IFormReportPathFieldDef | IFormReportPermaLinkFieldDef | IFormStringFieldDef | IFormTidyTableHtmlExprFieldDef | IFormTidyTableHtmlRowExprFieldDef | IFormTidyTableNumericExprFieldDef | IFormTidyTableNumericRowExprFieldDef | IFormTidyTableStringRowExprFieldDef | IFormTidyTableColorRowExprFieldDef | IFormTidyTableScaleRowExprFieldDef | IFormTidyTableTextExprFieldDef | IFormTidyTableTextRowExprFieldDef | IFormWidgetVariantFieldDef | IFormFormatterPickerFieldDef | IFormGranularitySelectionFieldDef | IFormSearchAndReplaceArrayFieldDef | IFormPropertyChooserBaseDef;
|
|
1037
|
+
export type FormFieldDef = IFormAutocompleteFieldDef<any> | IFormBooleanFieldDef | IFormColorEditorFieldDef | IFormColumnChooserFieldDef | IFormColumnSelectionFieldDef | IFormConstantsFieldDef | IFormEventArrayFieldDef | IFormEventMappingArrayFieldDef | IFormFileUploaderFieldDef | IFormGroupsFieldDef | IFormJsFieldDef | IFormMarkdownFieldDef | IFormMaskFieldDef | IFormMdxFieldDef | IFormNumberFieldDef | IFormOptionFieldDef | IFormOptionFieldSingleDef | IFormOptionFieldMultipleDef | IFormPaletteEditorFieldDef | IFormReportPathFieldDef | IFormReportPermaLinkFieldDef | IFormStringFieldDef | IFormTidyTableHtmlExprFieldDef | IFormTidyTableHtmlRowExprFieldDef | IFormTidyTableNumericExprFieldDef | IFormTidyTableNumericRowExprFieldDef | IFormTidyTableStringRowExprFieldDef | IFormTidyTableColorRowExprFieldDef | IFormTidyTableScaleRowExprFieldDef | IFormTidyTableTextExprFieldDef | IFormTidyTableTextRowExprFieldDef | IFormWidgetVariantFieldDef | IFormFormatterPickerFieldDef | IFormGranularitySelectionFieldDef | IFormSearchAndReplaceArrayFieldDef | IFormPropertyChooserBaseDef | IFormLayoutFieldDef;
|
|
933
1038
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AutocompleteActions = exports.AutocompleteNoOptionsText = exports.isTidyTableExprScale = exports.isTidyTableExprNumeric = exports.isTidyTableExprTextHtml = exports.isTidyTableExprText = exports.isTidyTableExprRow = exports.isTidyTableExprTable = exports.isTidyTableExpr = exports.IFormFieldGroupTypes = exports.formFieldIsSelection = void 0;
|
|
3
|
+
exports.AutocompleteActions = exports.AutocompleteNoOptionsText = exports.isTidyTableExprScale = exports.isTidyTableExprNumeric = exports.isTidyTableExprTextHtml = exports.isTidyTableExprText = exports.isTidyTableExprNumericJS = exports.isTidyTableExprNumericString = exports.isTidyTableExprRow = exports.isTidyTableExprColumn = exports.isTidyTableExprTable = exports.isTidyTableExprJS = exports.isTidyTableExpr = exports.IFormFieldGroupTypes = exports.formFieldIsSelection = void 0;
|
|
4
4
|
function formFieldIsSelection(field) {
|
|
5
5
|
return field.group === IFormFieldGroupTypes.Selection;
|
|
6
6
|
}
|
|
@@ -12,23 +12,43 @@ var IFormFieldGroupTypes;
|
|
|
12
12
|
IFormFieldGroupTypes["FilterItem"] = "filterItemGroup";
|
|
13
13
|
})(IFormFieldGroupTypes = exports.IFormFieldGroupTypes || (exports.IFormFieldGroupTypes = {}));
|
|
14
14
|
function isTidyTableExpr(type) {
|
|
15
|
-
return type === "
|
|
15
|
+
return type === "tidyTableColorRowExpr"
|
|
16
|
+
|| type === "tidyTableHtmlExpr"
|
|
16
17
|
|| type === "tidyTableHtmlRowExpr"
|
|
17
|
-
|| type === "
|
|
18
|
-
|| type === "tidyTableTextRowExpr"
|
|
18
|
+
|| type === "tidyTableNumericColumnExpr"
|
|
19
19
|
|| type === "tidyTableNumericExpr"
|
|
20
|
+
|| type === "tidyTableNumericJSColumnExpr"
|
|
20
21
|
|| type === "tidyTableNumericRowExpr"
|
|
21
|
-
|| type === "
|
|
22
|
-
|| type === "
|
|
23
|
-
|| type === "
|
|
22
|
+
|| type === "tidyTableNumericStringColumnExpr"
|
|
23
|
+
|| type === "tidyTableScaleRowExpr"
|
|
24
|
+
|| type === "tidyTableTextExpr"
|
|
25
|
+
|| type === "tidyTableTextRowExpr"
|
|
26
|
+
|| type === "tidyTableStringRowExpr";
|
|
24
27
|
}
|
|
25
28
|
exports.isTidyTableExpr = isTidyTableExpr;
|
|
29
|
+
function isTidyTableExprJS(type) {
|
|
30
|
+
return type === "tidyTableColorRowExpr"
|
|
31
|
+
|| type === "tidyTableStringRowExpr"
|
|
32
|
+
|| type === "tidyTableScaleRowExpr"
|
|
33
|
+
|| type === "tidyTableNumericExpr"
|
|
34
|
+
|| type === "tidyTableNumericColumnExpr"
|
|
35
|
+
|| type === "tidyTableNumericStringColumnExpr"
|
|
36
|
+
|| type === "tidyTableNumericJSColumnExpr"
|
|
37
|
+
|| type === "tidyTableNumericRowExpr";
|
|
38
|
+
}
|
|
39
|
+
exports.isTidyTableExprJS = isTidyTableExprJS;
|
|
26
40
|
function isTidyTableExprTable(type) {
|
|
27
41
|
return type === "tidyTableHtmlExpr"
|
|
28
42
|
|| type === "tidyTableTextExpr"
|
|
29
43
|
|| type === "tidyTableNumericExpr";
|
|
30
44
|
}
|
|
31
45
|
exports.isTidyTableExprTable = isTidyTableExprTable;
|
|
46
|
+
function isTidyTableExprColumn(type) {
|
|
47
|
+
return type === "tidyTableNumericColumnExpr"
|
|
48
|
+
|| type === "tidyTableNumericStringColumnExpr"
|
|
49
|
+
|| type === "tidyTableNumericJSColumnExpr";
|
|
50
|
+
}
|
|
51
|
+
exports.isTidyTableExprColumn = isTidyTableExprColumn;
|
|
32
52
|
function isTidyTableExprRow(type) {
|
|
33
53
|
return type === "tidyTableHtmlRowExpr"
|
|
34
54
|
|| type === "tidyTableTextRowExpr"
|
|
@@ -38,6 +58,14 @@ function isTidyTableExprRow(type) {
|
|
|
38
58
|
|| type === "tidyTableScaleRowExpr";
|
|
39
59
|
}
|
|
40
60
|
exports.isTidyTableExprRow = isTidyTableExprRow;
|
|
61
|
+
function isTidyTableExprNumericString(type) {
|
|
62
|
+
return type === "tidyTableColorRowExpr" || type === "tidyTableStringRowExpr" || type === "tidyTableNumericStringColumnExpr";
|
|
63
|
+
}
|
|
64
|
+
exports.isTidyTableExprNumericString = isTidyTableExprNumericString;
|
|
65
|
+
function isTidyTableExprNumericJS(type) {
|
|
66
|
+
return type === "tidyTableNumericJSColumnExpr";
|
|
67
|
+
}
|
|
68
|
+
exports.isTidyTableExprNumericJS = isTidyTableExprNumericJS;
|
|
41
69
|
function isTidyTableExprText(type) {
|
|
42
70
|
return type === "tidyTableTextExpr"
|
|
43
71
|
|| type === "tidyTableTextRowExpr";
|
|
@@ -50,6 +78,7 @@ function isTidyTableExprTextHtml(type) {
|
|
|
50
78
|
exports.isTidyTableExprTextHtml = isTidyTableExprTextHtml;
|
|
51
79
|
function isTidyTableExprNumeric(type) {
|
|
52
80
|
return type === "tidyTableNumericExpr"
|
|
81
|
+
|| type === "tidyTableNumericColumnExpr"
|
|
53
82
|
|| type === "tidyTableNumericRowExpr";
|
|
54
83
|
}
|
|
55
84
|
exports.isTidyTableExprNumeric = isTidyTableExprNumeric;
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"PublicTemplateForm.js","sourceRoot":"","sources":["../src/PublicTemplateForm.ts"],"names":[],"mappings":";;;AAkBA,SAAgB,oBAAoB,CAAC,KAAyB;IAC1D,OAAO,KAAK,CAAC,KAAK,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W,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAE9B"}
|
|
@@ -19,7 +19,6 @@ import { FilterAutocompleteChartOptions } from "./theme/ThemeFilterAutocomplete"
|
|
|
19
19
|
import { FilterTreeChartOptions } from "./theme/ThemeFilterTree";
|
|
20
20
|
import { AmCharts4BubbleChartOptions, AmCharts4ComboChartOptions, AmCharts4DonutChartOptions, AmCharts4GaugeChartOptions, AmCharts4HistogramOptions, AmCharts4RegularAreaChartOptions, AmCharts4RegularBarChartOptions, AmCharts4RegularColumnChartOptions, AmCharts4RegularLineChartOptions, AmCharts4SankeyDiagramOptions, AmCharts4ScatterPlotOptions, AmCharts4StackedAreaChartOptions, AmCharts4StackedBarChartOptions, AmCharts4StackedColumnChartOptions, AmCharts4TreemapOptions, GeoMapChartOptions } from "./theme/ThemeAmCharts4";
|
|
21
21
|
import { PrintButtonChartOptions } from "./theme/ThemePrintButton";
|
|
22
|
-
import { SeparatorChartOptions } from "./theme/ThemeSeparator";
|
|
23
22
|
interface IWidgetTemplateChartOptions {
|
|
24
23
|
"ic3.DatePicker": DatePickerChartOptions;
|
|
25
24
|
"ic3.EmbeddedReport": EmbeddedReportChartOptions;
|
|
@@ -40,7 +39,6 @@ interface IWidgetTemplateChartOptions {
|
|
|
40
39
|
"ic3.PrintButton": PrintButtonChartOptions;
|
|
41
40
|
"ic3.PivotTable": PivotTableChartOptions;
|
|
42
41
|
"ic3.RepetitionWidget": RepetitionWidgetChartOptions;
|
|
43
|
-
"ic3.Separator": SeparatorChartOptions;
|
|
44
42
|
"ic3.Table": TableChartOptions;
|
|
45
43
|
"amCharts4.AmCharts4BubbleChart": AmCharts4BubbleChartOptions;
|
|
46
44
|
"amCharts4.AmCharts4ComboChart": AmCharts4ComboChartOptions;
|
package/dist/PublicTheme.d.ts
CHANGED
|
@@ -74,6 +74,20 @@ export type ThemeTextFormatters = Record<string, ThemeTextFormatter> & {
|
|
|
74
74
|
defaultAmount: ThemeTextFormatter;
|
|
75
75
|
defaultPercentage: ThemeTextFormatter;
|
|
76
76
|
};
|
|
77
|
+
export interface ThemeFormatterPerLocale {
|
|
78
|
+
/**
|
|
79
|
+
* Fallback formatter for when no language is specified or a language is specified that is not defined in this
|
|
80
|
+
* model.
|
|
81
|
+
*/
|
|
82
|
+
default: ThemeFormatters;
|
|
83
|
+
/**
|
|
84
|
+
* A formatter per locale. Use JAVA locale tags for defining a formatter for that locale, e.g., en, en_US, nl, nl_NL, etc..
|
|
85
|
+
* Longer tags have prio over shorter tags. For example, if the user has locale en_US, the dashboards first use
|
|
86
|
+
* the en_US tag. If it isn't found, it will use the en tag. If that also isn't found, it will use the default.
|
|
87
|
+
*/
|
|
88
|
+
[k: string]: ThemeFormatters;
|
|
89
|
+
}
|
|
90
|
+
export declare function isThemeFormatterPerLocale(x: DeepPartial<ThemeFormatterPerLocale | ThemeFormatters> | undefined): x is ThemeFormatterPerLocale;
|
|
77
91
|
export type ThemeFormatters = {
|
|
78
92
|
text: ThemeTextFormatters;
|
|
79
93
|
emptyCell: string;
|
|
@@ -328,7 +342,7 @@ export interface ic3Theme {
|
|
|
328
342
|
caption: string;
|
|
329
343
|
cssClass: string;
|
|
330
344
|
waitForFonts?: () => Promise<any>;
|
|
331
|
-
formatter: ThemeFormatters;
|
|
345
|
+
formatter: ThemeFormatterPerLocale | ThemeFormatters;
|
|
332
346
|
/**
|
|
333
347
|
* Icons used in tables and trees
|
|
334
348
|
*/
|
|
@@ -432,9 +446,9 @@ export interface ic3Theme {
|
|
|
432
446
|
cursor: {
|
|
433
447
|
color: Property.Color;
|
|
434
448
|
/**
|
|
435
|
-
*
|
|
449
|
+
* the width as percentage of the viewport of the cursor line when hovering
|
|
436
450
|
*/
|
|
437
|
-
|
|
451
|
+
lineWidth: number;
|
|
438
452
|
/**
|
|
439
453
|
* The width of the stroke when hovering
|
|
440
454
|
*/
|
|
@@ -480,7 +494,7 @@ export interface ic3ThemeOptions {
|
|
|
480
494
|
* fonts in the theme definition .ts file.
|
|
481
495
|
*/
|
|
482
496
|
waitForFonts?: () => Promise<any>;
|
|
483
|
-
formatter?: DeepPartial<ThemeFormatters>;
|
|
497
|
+
formatter?: DeepPartial<ThemeFormatterPerLocale | ThemeFormatters>;
|
|
484
498
|
icons?: Partial<ic3Theme['icons']>;
|
|
485
499
|
table?: Record<TableRowHeightOptions, Partial<{
|
|
486
500
|
rowHeight: number;
|
package/dist/PublicTheme.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TableRowHeightOptions = void 0;
|
|
3
|
+
exports.TableRowHeightOptions = exports.isThemeFormatterPerLocale = void 0;
|
|
4
|
+
function isThemeFormatterPerLocale(x) {
|
|
5
|
+
return (x === null || x === void 0 ? void 0 : x['default']) != null;
|
|
6
|
+
}
|
|
7
|
+
exports.isThemeFormatterPerLocale = isThemeFormatterPerLocale;
|
|
4
8
|
var TableRowHeightOptions;
|
|
5
9
|
(function (TableRowHeightOptions) {
|
|
6
10
|
TableRowHeightOptions["standard"] = "standard";
|
package/dist/PublicTheme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicTheme.js","sourceRoot":"","sources":["../src/PublicTheme.ts"],"names":[],"mappings":";;;AA+
|
|
1
|
+
{"version":3,"file":"PublicTheme.js","sourceRoot":"","sources":["../src/PublicTheme.ts"],"names":[],"mappings":";;;AAkGA,SAAgB,yBAAyB,CAAC,CAAqE;IAC3G,OAAO,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAG,SAAS,CAAC,KAAI,IAAI,CAAC;AAClC,CAAC;AAFD,8DAEC;AA+RD,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC7B,8CAAqB,CAAA;IACrB,4CAAmB,CAAA;IACnB,wCAAe,CAAA;AACnB,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AxisCoordinate, ConvertToTypeParseSettings, EntityItem, GroupRowIndices, IMdxAxisSeriesInfo, ITidyColumnIndex, ITidyColumnsSource, MdxInfo,
|
|
2
|
+
import { AxisCoordinate, ConvertToTypeParseSettings, EntityItem, GroupRowIndices, IMdxAxisSeriesInfo, ITidyColumnIndex, ITidyColumnsSource, MdxInfo, TidyCellError, TidyColumnsSubType, TidyColumnsType } from "./PublicTidyTableTypes";
|
|
3
3
|
import { TidyActionEvent } from "./IcEvent";
|
|
4
4
|
import { ThemeTextFormatter } from "./PublicTheme";
|
|
5
5
|
import { Property } from "csstype";
|
|
6
6
|
import { AppNotification } from "./INotification";
|
|
7
7
|
import { MdxNodeIdentifier } from "./PublicTidyTable";
|
|
8
|
+
import { IPublicContext } from "./PublicContext";
|
|
8
9
|
export interface ITidyColumnTypedValue {
|
|
9
10
|
value: any;
|
|
10
11
|
fValue?: string;
|
|
@@ -87,6 +88,11 @@ export declare enum ITidyColumnNamedProperties {
|
|
|
87
88
|
* @see {ITidyColumn.getMdxInfo}
|
|
88
89
|
*/
|
|
89
90
|
mdxInfoCaption = "mdxInfoCaption",
|
|
91
|
+
/**
|
|
92
|
+
* The MdxInfo
|
|
93
|
+
* @see {ITidyColumn.getMdxInfo}
|
|
94
|
+
*/
|
|
95
|
+
mdxInfo = "mdxInfo",
|
|
90
96
|
/**
|
|
91
97
|
* Column defined as an MDX axis, the caption of the column
|
|
92
98
|
*/
|
|
@@ -235,7 +241,11 @@ export interface ITidyBaseColumnReadonly<T> {
|
|
|
235
241
|
/**
|
|
236
242
|
* Returns the color of this columns header.
|
|
237
243
|
*/
|
|
238
|
-
getHeaderColor(): string | undefined;
|
|
244
|
+
getHeaderColor(hierarchyIdx?: number): string | undefined;
|
|
245
|
+
/**
|
|
246
|
+
* Returns the colors of this columns header.
|
|
247
|
+
*/
|
|
248
|
+
getHeaderColors(): (string | undefined)[] | string | undefined;
|
|
239
249
|
}
|
|
240
250
|
/**
|
|
241
251
|
* Base interface for nullable column.
|
|
@@ -244,7 +254,7 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
|
|
|
244
254
|
/**
|
|
245
255
|
* Set the color for the columns header
|
|
246
256
|
*/
|
|
247
|
-
setHeaderColor(color: string | undefined): void;
|
|
257
|
+
setHeaderColor(color: (string | undefined)[] | string | undefined): void;
|
|
248
258
|
isSameDimensionality(other: ITidyBaseColumn<any>): boolean;
|
|
249
259
|
getErrors(): (TidyCellError | undefined)[];
|
|
250
260
|
/**
|
|
@@ -258,6 +268,10 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
|
|
|
258
268
|
* @param callback given the row index, outputs a value or undefined.
|
|
259
269
|
*/
|
|
260
270
|
findFirst<P>(callback: (idx: number) => P | undefined): P | undefined;
|
|
271
|
+
/**
|
|
272
|
+
* returns true if the column as a property defining the formatted value
|
|
273
|
+
*/
|
|
274
|
+
hasFormattedValue(): boolean;
|
|
261
275
|
/**
|
|
262
276
|
* Get the formatted value of the column at position idx.
|
|
263
277
|
*
|
|
@@ -382,10 +396,6 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
|
|
|
382
396
|
* if the column is not a MDX dimension.
|
|
383
397
|
*/
|
|
384
398
|
getHierarchyDefaultMember(): EntityItem | undefined;
|
|
385
|
-
/**
|
|
386
|
-
* Get the mdx coordinate (axeIdx,hierIdx,tupleIdx) of the cell at rowIdx. Defines a member in a MDX Query result axes
|
|
387
|
-
*/
|
|
388
|
-
getMdxCoordinates(rowIdx: number): MdxMemberCoordinates | undefined;
|
|
389
399
|
/**
|
|
390
400
|
* Get the array of MDX info in the column.
|
|
391
401
|
* Returns an empty array if there is no MDX info.
|
|
@@ -527,6 +537,12 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
|
|
|
527
537
|
* @param caption the caption for the added property
|
|
528
538
|
*/
|
|
529
539
|
setFormattedValues(formattedValues: (string | null)[] | ((value: T | undefined) => string), caption?: string): void;
|
|
540
|
+
/**
|
|
541
|
+
* Resets the formatted value
|
|
542
|
+
*
|
|
543
|
+
* @see setFormattedValues
|
|
544
|
+
*/
|
|
545
|
+
resetFormat(context: IPublicContext, format: ThemeTextFormatter): void;
|
|
530
546
|
/**
|
|
531
547
|
* Set the colors for the column.
|
|
532
548
|
* @param caption the caption for the added property
|
|
@@ -645,6 +661,7 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
|
|
|
645
661
|
* return true if the column was created from an MDX axis (i.e. [Geo].[Countries] on 0 )
|
|
646
662
|
*/
|
|
647
663
|
isMdxAxis(): boolean;
|
|
664
|
+
addRowValue(insert: ITidyColumnAddValueInsert): void;
|
|
648
665
|
}
|
|
649
666
|
export interface PublicTidyColumnCellDecorationRenderedOptions {
|
|
650
667
|
cellWidth?: number;
|
package/dist/PublicTidyColumn.js
CHANGED
|
@@ -66,6 +66,11 @@ var ITidyColumnNamedProperties;
|
|
|
66
66
|
* @see {ITidyColumn.getMdxInfo}
|
|
67
67
|
*/
|
|
68
68
|
ITidyColumnNamedProperties["mdxInfoCaption"] = "mdxInfoCaption";
|
|
69
|
+
/**
|
|
70
|
+
* The MdxInfo
|
|
71
|
+
* @see {ITidyColumn.getMdxInfo}
|
|
72
|
+
*/
|
|
73
|
+
ITidyColumnNamedProperties["mdxInfo"] = "mdxInfo";
|
|
69
74
|
/**
|
|
70
75
|
* Column defined as an MDX axis, the caption of the column
|
|
71
76
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicTidyColumn.js","sourceRoot":"","sources":["../src/PublicTidyColumn.ts"],"names":[],"mappings":";;;AAmDA;;GAEG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"PublicTidyColumn.js","sourceRoot":"","sources":["../src/PublicTidyColumn.ts"],"names":[],"mappings":";;;AAmDA;;GAEG;AACH,IAAY,0BAoGX;AApGD,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;;;;OAIG;IACH,uDAAyB,CAAA;IAEzB;;;OAGG;IACH,+DAAiC,CAAA;IAEjC;;;OAGG;IACH,iDAAmB,CAAA;IAEnB;;OAEG;IACH,iDAAmB,CAAA;IAEnB;;OAEG;IACH,gDAAkB,CAAA;IAElB;;OAEG;IACH,iDAAmB,CAAA;IAEnB;;OAEG;IACH,mDAAqB,CAAA;AACzB,CAAC,EApGW,0BAA0B,GAA1B,kCAA0B,KAA1B,kCAA0B,QAoGrC;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"}
|
|
@@ -177,6 +177,8 @@ export interface ITidyTableDrilldown {
|
|
|
177
177
|
export interface ITidyTableInteractionEvent {
|
|
178
178
|
/**
|
|
179
179
|
* actionName if the action is bound to a channel, sends the events ( e.g. 'onClick' to the channel 'year' )
|
|
180
|
+
*
|
|
181
|
+
* If rowIdx is an empty array, [], fires a mdx empty set event -> ∅
|
|
180
182
|
*/
|
|
181
183
|
fireEvent(actionName: string, column: ITidyColumn | ITidyColumn[] | undefined, rowIdx: number | number[]): void;
|
|
182
184
|
fireClearEvent(actionName: string): void;
|
|
@@ -130,34 +130,28 @@ export interface IFormFieldGranularityColumns {
|
|
|
130
130
|
type: "all_columns";
|
|
131
131
|
}
|
|
132
132
|
/**
|
|
133
|
-
*
|
|
133
|
+
* The coordinate of an MDX axis. If and only if the columns source is from ON 0, the hierIdx is defined.
|
|
134
134
|
*/
|
|
135
|
-
export interface
|
|
135
|
+
export interface AxisCoordinate {
|
|
136
136
|
/**
|
|
137
|
-
*
|
|
137
|
+
* Object keeping track of the transformation from the original axis to the current column.
|
|
138
|
+
* If this object is undefined, then the column can not be constructed using a coordinate transformation of the axis.
|
|
139
|
+
*/
|
|
140
|
+
repetitionInfo?: MdxRepetitionInfo;
|
|
141
|
+
/**
|
|
142
|
+
* index of the axis. ON 0, ON 1, etc...
|
|
138
143
|
*/
|
|
139
144
|
axisIdx: number;
|
|
140
145
|
/**
|
|
141
146
|
* index of the tuple in the axis. E.g. (AF, 2009) in [AF, 2008, AF, 2009, AF, 2010] has index 1.
|
|
142
147
|
*/
|
|
143
|
-
tupleIdx
|
|
148
|
+
tupleIdx?: number;
|
|
144
149
|
/**
|
|
145
150
|
* index of the member in the tuple. E.g. AF in (AF, 2009) has index 0 and 2009 has index 1.
|
|
146
151
|
* undefined means use the whole tuple.
|
|
147
152
|
*/
|
|
148
153
|
hierIdx?: number;
|
|
149
154
|
}
|
|
150
|
-
type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
|
|
151
|
-
/**
|
|
152
|
-
* The coordinate of an MDX axis. If and only if the columns source is from ON 0, the hierIdx is defined.
|
|
153
|
-
*/
|
|
154
|
-
export interface AxisCoordinate extends Optional<MdxMemberCoordinates, "tupleIdx"> {
|
|
155
|
-
/**
|
|
156
|
-
* Object keeping track of the transformation from the original axis to the current column.
|
|
157
|
-
* If this object is undefined, then the column can not be constructed using a coordinate transformation of the axis.
|
|
158
|
-
*/
|
|
159
|
-
repetitionInfo?: MdxRepetitionInfo;
|
|
160
|
-
}
|
|
161
155
|
export interface MdxRepetitionInfo {
|
|
162
156
|
/**
|
|
163
157
|
* The number of members in the axis (From 'len' in the json axis guts).
|
|
@@ -235,10 +229,6 @@ export interface MdxInfo {
|
|
|
235
229
|
* hierUN
|
|
236
230
|
*/
|
|
237
231
|
hierUN: string;
|
|
238
|
-
/**
|
|
239
|
-
* Index on the MDX axis of the tuple the member belongs to.
|
|
240
|
-
*/
|
|
241
|
-
tupleIndex: number;
|
|
242
232
|
}
|
|
243
233
|
export type MdxLevelType = "date" | "time";
|
|
244
234
|
export type MdxLevelSubType = "YEAR" | "HALF_YEAR" | "QUARTER" | "MONTH" | "WEEK" | "DAY" | "DAY_MONTH" | "DAY_YEAR" | "HOUR" | "HALF_HOUR" | "QUARTER_HOUR" | "MINUTE" | "SECOND";
|
|
@@ -478,4 +468,3 @@ export interface TreeRowPropsTreeData {
|
|
|
478
468
|
* Function filtering the rows of a column / table. Returns true if the row is included, false if the row is excluded.
|
|
479
469
|
*/
|
|
480
470
|
export type TidyRowFilter = (rowIdx: number) => boolean;
|
|
481
|
-
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicTidyTableTypes.js","sourceRoot":"","sources":["../src/PublicTidyTableTypes.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAOH,IAAY,eA0DX;AA1DD,WAAY,eAAe;IACvB;;OAEG;IACH,kCAAe,CAAA;IAEf,0CAAuB,CAAA;IACvB,wCAAqB,CAAA;IAErB;;OAEG;IACH,sDAAmC,CAAA;IAEnC;;OAEG;IACH,wCAAqB,CAAA;IAErB;;OAEG;IACH,sCAAmB,CAAA;IAEnB;;OAEG;IACH,0CAAuB,CAAA;IAEvB;;OAEG;IACH,sCAAmB,CAAA;IAEnB;;OAEG;IACH,gCAAa,CAAA;IAEb;;OAEG;IACH,kCAAe,CAAA;IAEf;;OAEG;IACH,sCAAmB,CAAA;IAEnB;;OAEG;IACH,gCAAa,CAAA;IAEb;;O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BAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAIjC;AAyBD;;;;;GAKG;AACH,IAAY,eAIX;AAJD,WAAY,eAAe;IACvB,8BAAW,CAAA;IACX,4BAAS,CAAA;IACT,gCAAa,CAAA;AACjB,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -87,5 +87,4 @@ __exportStar(require("./theme/ThemeReportAppLeftPanel"), exports);
|
|
|
87
87
|
__exportStar(require("./theme/ThemeWidgetBox"), exports);
|
|
88
88
|
__exportStar(require("./theme/ThemeWidgetBoxContentMessage"), exports);
|
|
89
89
|
__exportStar(require("./theme/ThemeIc3TableCell"), exports);
|
|
90
|
-
__exportStar(require("./theme/ThemeSeparator"), exports);
|
|
91
90
|
//# 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,2DAAyC;AACzC,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,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
|
|
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,2DAAyC;AACzC,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,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"}
|
|
@@ -260,7 +260,7 @@ export interface Am4GaugeAxisOptions extends FormFieldObject {
|
|
|
260
260
|
/**
|
|
261
261
|
* Format.
|
|
262
262
|
*
|
|
263
|
-
* Format pattern. Examples: integer:
|
|
263
|
+
* Format pattern. Examples: integer: `#`; two decimals: `#.00`; thousands/millions: `#a`; currency: `€#`.
|
|
264
264
|
*/
|
|
265
265
|
gaugeAxisValueFormat?: string;
|
|
266
266
|
/**
|
|
@@ -429,7 +429,7 @@ export interface Am4ValueAxisOptions extends FormFieldObject {
|
|
|
429
429
|
/**
|
|
430
430
|
* Value Format.
|
|
431
431
|
*
|
|
432
|
-
* Format pattern. Examples: integer:
|
|
432
|
+
* Format pattern. Examples: integer: `#`; two decimals: `#.00`; thousands/millions: `#a`; currency: `€#`.
|
|
433
433
|
*/
|
|
434
434
|
yAxisValueFormat?: string;
|
|
435
435
|
/**
|
|
@@ -838,7 +838,7 @@ export interface Am4SecondValueAxisOptions extends FormFieldObject {
|
|
|
838
838
|
/**
|
|
839
839
|
* Value Format.
|
|
840
840
|
*
|
|
841
|
-
* Format pattern. Examples: integer:
|
|
841
|
+
* Format pattern. Examples: integer: `#`; two decimals: `#.00`; thousands/millions: `#a`; currency: `€#`.
|
|
842
842
|
*/
|
|
843
843
|
yAxisSecondValueFormat?: string;
|
|
844
844
|
/**
|
|
@@ -1541,7 +1541,7 @@ export type AmCharts4BubbleChartOptions = Am4SecondValueAxisOptions & Am4ValueAx
|
|
|
1541
1541
|
/**
|
|
1542
1542
|
* The corresponding AmCharts 4 chart class is XYChart.
|
|
1543
1543
|
*/
|
|
1544
|
-
export type AmCharts4ComboChartOptions = Am4CategoryDateAxisOptions & Am4ValueAxisOptions & Am4SecondValueAxisOptions & Am4ComboSeriesOptions & Am4LegendOptions & Am4ChartCursorOptions & Am4ScrollbarOptions & Am4ChartOptions & Am4ValueLabelOptions;
|
|
1544
|
+
export type AmCharts4ComboChartOptions = Am4CategoryDateAxisOptions & Am4ValueAxisOptions & Am4SecondValueAxisOptions & Am4ComboSeriesOptions & Am4LegendOptions & Am4ChartCursorOptions & Am4ScrollbarOptions & Am4ChartOptions & Am4ValueLabelOptions & Am4SecondValueLabelOptions;
|
|
1545
1545
|
export type AmCharts4CoordinateChartOptions = Am4TrendLineOptions;
|
|
1546
1546
|
/**
|
|
1547
1547
|
* The corresponding AmCharts 4 chart class is XYChart.
|
|
@@ -57,8 +57,18 @@ export interface FilterButtonsChartOptions extends FilterTidyTableChartOptions {
|
|
|
57
57
|
*/
|
|
58
58
|
columns?: number;
|
|
59
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* Props for the FilterButtons root slot.
|
|
62
|
+
*/
|
|
60
63
|
export interface FilterButtonsProps {
|
|
61
64
|
printing: boolean;
|
|
62
65
|
variant?: string;
|
|
63
66
|
grouped: boolean;
|
|
67
|
+
columns?: number;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Props for the FilterButtons Container slot.
|
|
71
|
+
*/
|
|
72
|
+
export interface FilterButtonsContainerProps {
|
|
73
|
+
columns?: number;
|
|
64
74
|
}
|
|
@@ -129,7 +129,6 @@ export interface FilterPanelChartOptions extends FormFieldObject {
|
|
|
129
129
|
customFilterConfig?: string;
|
|
130
130
|
/**
|
|
131
131
|
* These filters are not allowed to be selected by the user. These filters are hidden from the add filter menu.
|
|
132
|
-
* // TODO (tom) localize + document this option #1373
|
|
133
132
|
*/
|
|
134
133
|
notAllowedFiltersConfig?: string;
|
|
135
134
|
/**
|
|
@@ -53,6 +53,12 @@ export interface PivotTableChartOptions extends BaseTableChartOptions {
|
|
|
53
53
|
* ($h for the hierarchy name, $l for the level name). The last value repeat itsef.
|
|
54
54
|
*/
|
|
55
55
|
cornerText?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Sortable (CSV).
|
|
58
|
+
*
|
|
59
|
+
* Display the sort options for the top left header. A list of boolean values: 'true', 'false'. The last value repeats itself.
|
|
60
|
+
*/
|
|
61
|
+
leftHeaderSortable: string;
|
|
56
62
|
/**
|
|
57
63
|
* Merge Left Header.
|
|
58
64
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ic3/reporting-api",
|
|
3
|
-
"version": "8.4.
|
|
3
|
+
"version": "8.4.5",
|
|
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,20 +11,20 @@
|
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@mui/material": "5.
|
|
15
|
-
"@mui/system": "5.
|
|
14
|
+
"@mui/material": "5.14.8",
|
|
15
|
+
"@mui/system": "5.14.8",
|
|
16
16
|
"@emotion/react": "11.11.1",
|
|
17
17
|
"@emotion/styled": "11.11.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/markerclustererplus": "2.1.33",
|
|
21
|
-
"@types/node": "20.
|
|
22
|
-
"@types/react": "18.2.
|
|
23
|
-
"del-cli": "5.
|
|
21
|
+
"@types/node": "20.6.0",
|
|
22
|
+
"@types/react": "18.2.21",
|
|
23
|
+
"del-cli": "5.1.0",
|
|
24
24
|
"typescript": "4.9.5"
|
|
25
25
|
},
|
|
26
26
|
"overrides": {
|
|
27
|
-
"@types/react": "18.2.
|
|
27
|
+
"@types/react": "18.2.21"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "del-cli dist && npx tsc",
|