@ic3/reporting-api 8.0.0-rc.2 → 8.0.0
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 +46 -8
- package/dist/ApiUtils.js +37 -21
- package/dist/ApiUtils.js.map +1 -1
- package/dist/INotification.d.ts +29 -8
- package/dist/IPluginDefinition.d.ts +9 -0
- package/dist/IReporting.d.ts +3 -1
- package/dist/IThemeManager.d.ts +14 -13
- package/dist/IThemeManager.js.map +1 -1
- package/dist/ITypes.d.ts +25 -0
- package/dist/ITypes.js +31 -0
- package/dist/ITypes.js.map +1 -0
- package/dist/IWidgetManager.d.ts +5 -2
- package/dist/LazyTreeView.d.ts +6 -1
- package/dist/PublicContext.d.ts +19 -4
- package/dist/PublicLayout.d.ts +7 -23
- package/dist/PublicTemplate.d.ts +101 -41
- package/dist/PublicTemplate.js +1 -10
- package/dist/PublicTemplate.js.map +1 -1
- package/dist/PublicTemplateForm.d.ts +126 -15
- package/dist/PublicTemplateForm.js +1 -9
- package/dist/PublicTemplateForm.js.map +1 -1
- package/dist/PublicTemplates.d.ts +61 -0
- package/dist/{theme/ThemeGoogleMapMarker.js → PublicTemplates.js} +1 -1
- package/dist/PublicTemplates.js.map +1 -0
- package/dist/PublicTheme.d.ts +112 -75
- package/dist/PublicTheme.js.map +1 -1
- package/dist/PublicTidyColumn.d.ts +29 -9
- package/dist/PublicTidyColumn.js.map +1 -1
- package/dist/PublicTidyHistogram.d.ts +32 -0
- package/dist/PublicTidyHistogram.js.map +1 -1
- package/dist/PublicTidyMath.d.ts +2 -2
- package/dist/PublicTidyTable.d.ts +35 -18
- package/dist/PublicTidyTableInteractions.d.ts +24 -2
- package/dist/PublicTidyTableTypes.d.ts +28 -8
- package/dist/PublicTidyTableTypes.js +18 -1
- package/dist/PublicTidyTableTypes.js.map +1 -1
- package/dist/PublicTidyTree.d.ts +13 -3
- package/dist/PublicTidyTree.js +19 -13
- package/dist/PublicTidyTree.js.map +1 -1
- package/dist/index.d.ts +24 -0
- package/dist/index.js +29 -1
- package/dist/index.js.map +1 -1
- package/dist/theme/ThemeAmCharts4.d.ts +1346 -0
- package/dist/theme/ThemeAmCharts4.js +61 -0
- package/dist/theme/ThemeAmCharts4.js.map +1 -0
- package/dist/theme/ThemeApp.d.ts +11 -11
- package/dist/theme/ThemeApp.js +40 -0
- package/dist/theme/ThemeApp.js.map +1 -1
- package/dist/theme/ThemeBaseTable.d.ts +94 -0
- package/dist/theme/ThemeBaseTable.js +10 -0
- package/dist/theme/ThemeBaseTable.js.map +1 -0
- package/dist/theme/ThemeDatePicker.d.ts +111 -0
- package/dist/theme/ThemeDatePicker.js +3 -0
- package/dist/theme/ThemeDatePicker.js.map +1 -0
- package/dist/theme/ThemeEmbeddedReport.d.ts +25 -0
- package/dist/theme/ThemeEmbeddedReport.js +3 -0
- package/dist/theme/ThemeEmbeddedReport.js.map +1 -0
- package/dist/theme/ThemeFilter.d.ts +28 -0
- package/dist/theme/ThemeFilter.js +3 -0
- package/dist/theme/ThemeFilter.js.map +1 -0
- package/dist/theme/ThemeFilterAutocomplete.d.ts +31 -15
- package/dist/theme/ThemeFilterAutocomplete.js.map +1 -1
- package/dist/theme/ThemeFilterButtons.d.ts +40 -19
- package/dist/theme/ThemeFilterButtons.js.map +1 -1
- package/dist/theme/ThemeFilterCheckboxRadio.d.ts +48 -0
- package/dist/theme/ThemeFilterCheckboxRadio.js +23 -0
- package/dist/theme/ThemeFilterCheckboxRadio.js.map +1 -0
- package/dist/theme/ThemeFilterPanel.d.ts +84 -0
- package/dist/theme/ThemeFilterPanel.js +35 -0
- package/dist/theme/ThemeFilterPanel.js.map +1 -0
- package/dist/theme/ThemeFilterSlider.d.ts +42 -28
- package/dist/theme/ThemeFilterSlider.js +7 -7
- package/dist/theme/ThemeFilterSlider.js.map +1 -1
- package/dist/theme/ThemeFilterTree.d.ts +60 -30
- package/dist/theme/ThemeFilterTree.js.map +1 -1
- package/dist/theme/ThemeGoogle.d.ts +132 -0
- package/dist/theme/ThemeGoogle.js +64 -0
- package/dist/theme/ThemeGoogle.js.map +1 -0
- package/dist/theme/ThemeGoogleHeatMap.d.ts +58 -0
- package/dist/theme/ThemeGoogleHeatMap.js +3 -0
- package/dist/theme/ThemeGoogleHeatMap.js.map +1 -0
- package/dist/theme/ThemeGoogleKmlLayer.d.ts +40 -0
- package/dist/theme/ThemeGoogleKmlLayer.js +3 -0
- package/dist/theme/ThemeGoogleKmlLayer.js.map +1 -0
- package/dist/theme/ThemeGoogleMarker.d.ts +147 -0
- package/dist/theme/ThemeGoogleMarker.js +3 -0
- package/dist/theme/ThemeGoogleMarker.js.map +1 -0
- package/dist/theme/ThemeHtmlBox.d.ts +5 -1
- package/dist/theme/ThemeImage.d.ts +19 -0
- package/dist/theme/ThemeImage.js +3 -0
- package/dist/theme/ThemeImage.js.map +1 -0
- package/dist/theme/ThemeKpiBox.d.ts +46 -0
- package/dist/theme/ThemeKpiBox.js +3 -0
- package/dist/theme/ThemeKpiBox.js.map +1 -0
- package/dist/theme/ThemeKpiCard.d.ts +98 -0
- package/dist/theme/ThemeKpiCard.js +3 -0
- package/dist/theme/ThemeKpiCard.js.map +1 -0
- package/dist/theme/ThemeMarkdownText.d.ts +27 -0
- package/dist/theme/ThemeMarkdownText.js +3 -0
- package/dist/theme/ThemeMarkdownText.js.map +1 -0
- package/dist/theme/ThemePivotTable.d.ts +61 -0
- package/dist/theme/ThemePivotTable.js +10 -1
- package/dist/theme/ThemePivotTable.js.map +1 -1
- package/dist/theme/ThemeRepetitionWidget.d.ts +51 -0
- package/dist/theme/ThemeRepetitionWidget.js +3 -0
- package/dist/theme/ThemeRepetitionWidget.js.map +1 -0
- package/dist/theme/ThemeReportAppLeftPanel.d.ts +7 -0
- package/dist/theme/ThemeReportAppLeftPanel.js +11 -0
- package/dist/theme/ThemeReportAppLeftPanel.js.map +1 -0
- package/dist/theme/ThemeTable.d.ts +155 -2
- package/dist/theme/ThemeTable.js +165 -1
- package/dist/theme/ThemeTable.js.map +1 -1
- package/dist/theme/ThemeWidgetBox.d.ts +69 -0
- package/dist/theme/ThemeWidgetBox.js +29 -1
- package/dist/theme/ThemeWidgetBox.js.map +1 -1
- package/package.json +6 -6
- package/dist/theme/ThemeFilterCheckboxes.d.ts +0 -18
- package/dist/theme/ThemeFilterCheckboxes.js +0 -11
- package/dist/theme/ThemeFilterCheckboxes.js.map +0 -1
- package/dist/theme/ThemeGoogleMapMarker.d.ts +0 -51
- package/dist/theme/ThemeGoogleMapMarker.js.map +0 -1
package/dist/PublicTemplate.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { ITidyTable } from "./PublicTidyTable";
|
|
2
2
|
import { ITidyTableInteraction } from "./PublicTidyTableInteractions";
|
|
3
3
|
import { IWidgetPublicContext } from "./PublicContext";
|
|
4
|
-
import {
|
|
4
|
+
import { FormFieldObject, FormFields, IFormColumnChooserFieldDef } from "./PublicTemplateForm";
|
|
5
5
|
import { IWidgetVariantManager } from "./IWidgetVariantManager";
|
|
6
6
|
import { ITidyColumn } from "./PublicTidyColumn";
|
|
7
7
|
import { ReactElement } from "react";
|
|
8
8
|
import { Theme } from "@mui/material/styles";
|
|
9
|
+
import { WidgetTemplateChartOptions, WidgetTemplateIDs } from "./PublicTemplates";
|
|
10
|
+
import { ChartTemplateDataMapping } from "./PublicTidyTableTypes";
|
|
9
11
|
declare type ChartTemplateWidgetProps = any;
|
|
10
12
|
export declare type IPublicWidgetTemplateDefinition<T extends FormFieldObject> = IPublicWidgetReactTemplateDefinition<T> | IPublicWidgetJsTemplateDefinition<T>;
|
|
11
13
|
export declare enum IWidgetTemplateMdxBuilderAxisPropsConstraint {
|
|
@@ -24,14 +26,10 @@ export interface IWidgetTemplateMdxBuilderAxisProps {
|
|
|
24
26
|
*/
|
|
25
27
|
isOptional?: true;
|
|
26
28
|
/**
|
|
27
|
-
* All axes with the same (not null) value for mdxAxisName are put as a tuple on the same axis.
|
|
28
|
-
*
|
|
29
|
+
* All axes with the same (not null) value for mdxAxisName are put as a tuple on the same axis. And the roles are
|
|
30
|
+
* comma separated.
|
|
29
31
|
*/
|
|
30
32
|
mdxAxisName?: string;
|
|
31
|
-
/**
|
|
32
|
-
* The test used to generated the axis role (see KPI card).
|
|
33
|
-
*/
|
|
34
|
-
mdxAxisRole?: string;
|
|
35
33
|
/**
|
|
36
34
|
* Disable empty
|
|
37
35
|
*/
|
|
@@ -68,15 +66,15 @@ export interface IWidgetTemplateMdxBuilderMapping {
|
|
|
68
66
|
*/
|
|
69
67
|
mdxAxis: Readonly<IWidgetTemplateMdxBuilderAxisProps[]>;
|
|
70
68
|
/**
|
|
71
|
-
* The generated
|
|
69
|
+
* The generated MDX is for a filter (the cell values are not of interest).
|
|
72
70
|
*/
|
|
73
71
|
mdxIsForFilter?: true;
|
|
74
72
|
/**
|
|
75
|
-
*
|
|
73
|
+
* The cell values are not needed
|
|
76
74
|
*/
|
|
77
75
|
withoutCellValues?: true;
|
|
78
76
|
/**
|
|
79
|
-
*
|
|
77
|
+
* An MDX query if the builder is empty.
|
|
80
78
|
*/
|
|
81
79
|
mdxQueryIfEmpty?: boolean;
|
|
82
80
|
}
|
|
@@ -113,9 +111,22 @@ export interface IPublicJsChartTemplate<T extends FormFieldObject> {
|
|
|
113
111
|
* @see IPublicReactChartTemplate
|
|
114
112
|
* @see FormFieldObject
|
|
115
113
|
*/
|
|
116
|
-
export interface IPublicWidgetReactTemplateDefinition<
|
|
117
|
-
|
|
114
|
+
export interface IPublicWidgetReactTemplateDefinition<OPTIONS extends FormFieldObject> extends IPublicCommonWidgetTemplateDefinition<OPTIONS> {
|
|
115
|
+
/**
|
|
116
|
+
* Actual widget rendering logic.
|
|
117
|
+
*/
|
|
118
|
+
jsCode: (context: IWidgetPublicContext) => IPublicReactChartTemplate<OPTIONS>;
|
|
118
119
|
reactComponent: true;
|
|
120
|
+
/**
|
|
121
|
+
* Only the widget template meta information is required when starting the application.
|
|
122
|
+
*
|
|
123
|
+
* This method gives the opportunity for a widget template to load (Webpack) its actual jsCode logic when required.
|
|
124
|
+
* For example, AmCharts 4 widgets are loading the AmCharts 4 actual JS libraries once their rendering is actually
|
|
125
|
+
* required.
|
|
126
|
+
*
|
|
127
|
+
* @param definitionW a resolved wrapped widget (extending widget).
|
|
128
|
+
*/
|
|
129
|
+
resolveDefinition?: (definitionW?: IPublicWidgetTemplateDefinition<any>) => Promise<IPublicWidgetTemplateDefinition<OPTIONS>>;
|
|
119
130
|
}
|
|
120
131
|
/**
|
|
121
132
|
* The definition of a widget that renders using plain Javascript/Typescript.
|
|
@@ -123,22 +134,27 @@ export interface IPublicWidgetReactTemplateDefinition<T extends FormFieldObject>
|
|
|
123
134
|
* @see IPublicJsChartTemplate
|
|
124
135
|
* @see FormFieldObject
|
|
125
136
|
*/
|
|
126
|
-
export interface IPublicWidgetJsTemplateDefinition<
|
|
127
|
-
|
|
137
|
+
export interface IPublicWidgetJsTemplateDefinition<OPTIONS extends FormFieldObject> extends IPublicCommonWidgetTemplateDefinition<OPTIONS> {
|
|
138
|
+
/**
|
|
139
|
+
* Actual widget rendering logic.
|
|
140
|
+
*/
|
|
141
|
+
jsCode: (context: IWidgetPublicContext, container: HTMLDivElement) => IPublicJsChartTemplate<OPTIONS>;
|
|
128
142
|
reactComponent?: false;
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
143
|
+
/**
|
|
144
|
+
* Only the widget template meta information is required when starting the application.
|
|
145
|
+
*
|
|
146
|
+
* This method gives the opportunity for a widget template to load (Webpack) its actual jsCode logic when required.
|
|
147
|
+
* For example, AmCharts 4 widgets are loading the AmCharts 4 actual JS libraries once their rendering is actually
|
|
148
|
+
* required.
|
|
149
|
+
*
|
|
150
|
+
* @param definitionW a resolved wrapped widget (extending widget).
|
|
151
|
+
*/
|
|
152
|
+
resolveDefinition?: (definitionW?: IPublicWidgetTemplateDefinition<any>) => Promise<IPublicWidgetTemplateDefinition<OPTIONS>>;
|
|
137
153
|
}
|
|
138
154
|
/**
|
|
139
155
|
* Definition - static - of a widget template
|
|
140
156
|
*/
|
|
141
|
-
interface IPublicCommonWidgetTemplateDefinition {
|
|
157
|
+
interface IPublicCommonWidgetTemplateDefinition<OPTIONS extends FormFieldObject> {
|
|
142
158
|
/**
|
|
143
159
|
* Determine the widget icon in the widget infos.
|
|
144
160
|
* Used for finding the right documentation.
|
|
@@ -159,6 +175,10 @@ interface IPublicCommonWidgetTemplateDefinition {
|
|
|
159
175
|
* Internal usage: while investigating lazy registration (setup upon registration).
|
|
160
176
|
*/
|
|
161
177
|
debug?: string;
|
|
178
|
+
/**
|
|
179
|
+
* Internal usage: the wrapped pluginId.templateId (setup upon registration).
|
|
180
|
+
*/
|
|
181
|
+
wrapped?: string;
|
|
162
182
|
/**
|
|
163
183
|
* Internal usage: pluginId.templateId (setup upon registration).
|
|
164
184
|
*/
|
|
@@ -277,20 +297,35 @@ interface IPublicCommonWidgetTemplateDefinition {
|
|
|
277
297
|
eventRoles?: ITemplateEventActionDef;
|
|
278
298
|
selection?: {
|
|
279
299
|
/**
|
|
280
|
-
*
|
|
281
|
-
|
|
300
|
+
* If defined, default selection role(s)
|
|
301
|
+
*/
|
|
302
|
+
defaultRoles?: string[];
|
|
303
|
+
/**
|
|
304
|
+
* If defined, returns the roles available
|
|
305
|
+
*
|
|
306
|
+
*/
|
|
307
|
+
allowedRoles?: (table: ITidyTable | undefined) => string[];
|
|
308
|
+
/**
|
|
309
|
+
* The list of columns that can be part of the selection granularity. The user can select from the roles
|
|
310
|
+
* of the MDX query if there are 2 or more roles.
|
|
282
311
|
*/
|
|
283
|
-
allowedColumns
|
|
284
|
-
optionValues?: undefined;
|
|
285
|
-
} | {
|
|
286
|
-
allowedColumns?: undefined;
|
|
287
|
-
optionValues?: SelectionGranularityOptions[];
|
|
312
|
+
allowedColumns?: (column: ITidyColumn, table: ITidyTable) => boolean;
|
|
288
313
|
};
|
|
289
314
|
mdxBuilderSettings?: IWidgetTemplateMdxBuilderMapping;
|
|
315
|
+
/**
|
|
316
|
+
* Setup how to get default mappings from the table and options for this widget. If undefined, it uses the default
|
|
317
|
+
* fallback logic.
|
|
318
|
+
*/
|
|
319
|
+
defaultMapping?: (data: IWidgetTemplateTidyOptions<OPTIONS>) => ChartTemplateDataMapping;
|
|
290
320
|
/**
|
|
291
321
|
* The meta information required for editing the widget options.
|
|
292
322
|
*/
|
|
293
|
-
chartOptionsMeta?:
|
|
323
|
+
chartOptionsMeta?: FormFields<OPTIONS>;
|
|
324
|
+
/**
|
|
325
|
+
* An optional hook that allows for modifying the chart options passed as parameter.
|
|
326
|
+
* Used when extending existing widget definition.
|
|
327
|
+
*/
|
|
328
|
+
hookChartOptions?: (options: any) => any;
|
|
294
329
|
/**
|
|
295
330
|
* When registering a variant add the following field editor meta:
|
|
296
331
|
* <pre>
|
|
@@ -309,11 +344,28 @@ interface IPublicCommonWidgetTemplateDefinition {
|
|
|
309
344
|
* Whether or not that component is using React for rendering.
|
|
310
345
|
*/
|
|
311
346
|
reactComponent?: boolean;
|
|
312
|
-
|
|
347
|
+
/**
|
|
348
|
+
* Only the widget template meta information is required when starting the application.
|
|
349
|
+
*
|
|
350
|
+
* This method gives the opportunity for a widget template to load (Webpack) its actual jsCode logic when required.
|
|
351
|
+
* For example, AmCharts 4 widgets are loading the AmCharts 4 actual JS libraries once their rendering is actually
|
|
352
|
+
* required.
|
|
353
|
+
*
|
|
354
|
+
* @param definitionW a resolved wrapped widget (extending widget).
|
|
355
|
+
*/
|
|
356
|
+
resolveDefinition?: (definitionW?: IPublicWidgetTemplateDefinition<any>) => Promise<IPublicWidgetTemplateDefinition<OPTIONS>>;
|
|
313
357
|
/**
|
|
314
358
|
* When defining new widgets using amCharts 4, this method registers the icCube license.
|
|
315
359
|
*/
|
|
316
360
|
registerAmCharts4?: (callback: (am4core: any) => void) => void;
|
|
361
|
+
/**
|
|
362
|
+
* When opening "Use Global Filter" option on Interaction tab
|
|
363
|
+
*/
|
|
364
|
+
enableUseGlobalFilter?: boolean;
|
|
365
|
+
/**
|
|
366
|
+
* Returns true if the widget fires a global event at initialization (start)
|
|
367
|
+
*/
|
|
368
|
+
firesGlobalEventAtStart?: (options: OPTIONS | undefined, templateDef: IPublicWidgetTemplateDefinition<OPTIONS>) => boolean;
|
|
317
369
|
}
|
|
318
370
|
/**
|
|
319
371
|
* *********************************************************************************************************************
|
|
@@ -326,16 +378,13 @@ export declare enum WidgetTemplateDefinitionType {
|
|
|
326
378
|
Map = "map",
|
|
327
379
|
Misc = "misc"
|
|
328
380
|
}
|
|
329
|
-
export interface
|
|
381
|
+
export interface IWidgetTemplateTidyData {
|
|
330
382
|
table: ITidyTable;
|
|
331
383
|
inter: ITidyTableInteraction;
|
|
332
|
-
options: {
|
|
333
|
-
[key: string]: any;
|
|
334
|
-
};
|
|
335
384
|
}
|
|
336
|
-
export interface
|
|
385
|
+
export interface IWidgetTemplateTidyOptions<T extends FormFieldObject> {
|
|
337
386
|
table: ITidyTable;
|
|
338
|
-
|
|
387
|
+
options: T;
|
|
339
388
|
}
|
|
340
389
|
export interface IChartVisualizationTypedInput<T extends FormFieldObject> {
|
|
341
390
|
table: ITidyTable;
|
|
@@ -361,7 +410,7 @@ export declare enum TemplateEventActionNames {
|
|
|
361
410
|
* Definition of the actions supported by a template
|
|
362
411
|
*
|
|
363
412
|
*
|
|
364
|
-
* ( e.g publish: 'onClick' )
|
|
413
|
+
* ( e.g., publish: 'onClick' )
|
|
365
414
|
*/
|
|
366
415
|
export interface ITemplateEventActionDef {
|
|
367
416
|
/**
|
|
@@ -385,7 +434,18 @@ export interface ITemplateEventActionDef {
|
|
|
385
434
|
*/
|
|
386
435
|
selectionSubscribe?: string;
|
|
387
436
|
}
|
|
388
|
-
export interface
|
|
389
|
-
|
|
437
|
+
export interface IWrappedWidgetTemplateDefinition<WIDGET extends WidgetTemplateIDs> {
|
|
438
|
+
/**
|
|
439
|
+
* Some free text used while registering the wrapper (e.g., error purpose).
|
|
440
|
+
*/
|
|
441
|
+
readonly registrationInfo: string;
|
|
442
|
+
/**
|
|
443
|
+
* e.g., ic3.Table
|
|
444
|
+
*/
|
|
445
|
+
readonly wrappedWidgetTemplateId: WIDGET;
|
|
446
|
+
/**
|
|
447
|
+
* A function generating the widget template definition based on the wrapped widget template definition.
|
|
448
|
+
*/
|
|
449
|
+
readonly wrapper: (wrapped: IPublicWidgetTemplateDefinition<WidgetTemplateChartOptions[WIDGET]>) => IPublicWidgetTemplateDefinition<FormFieldObject>;
|
|
390
450
|
}
|
|
391
451
|
export {};
|
package/dist/PublicTemplate.js
CHANGED
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TemplateEventActionNames = exports.WidgetTemplateDefinitionType = exports.
|
|
3
|
+
exports.TemplateEventActionNames = exports.WidgetTemplateDefinitionType = exports.IWidgetTemplateMdxBuilderAxisPropsConstraint = void 0;
|
|
4
4
|
var IWidgetTemplateMdxBuilderAxisPropsConstraint;
|
|
5
5
|
(function (IWidgetTemplateMdxBuilderAxisPropsConstraint) {
|
|
6
6
|
IWidgetTemplateMdxBuilderAxisPropsConstraint["DateType"] = "DateType";
|
|
7
7
|
IWidgetTemplateMdxBuilderAxisPropsConstraint["GeoLatLong"] = "GeoLatLong";
|
|
8
8
|
IWidgetTemplateMdxBuilderAxisPropsConstraint["GeoIso2Code"] = "GeoIso2Code";
|
|
9
9
|
})(IWidgetTemplateMdxBuilderAxisPropsConstraint = exports.IWidgetTemplateMdxBuilderAxisPropsConstraint || (exports.IWidgetTemplateMdxBuilderAxisPropsConstraint = {}));
|
|
10
|
-
/**
|
|
11
|
-
* List of special selection granularities (column selectors)
|
|
12
|
-
*/
|
|
13
|
-
var SelectionGranularityOptions;
|
|
14
|
-
(function (SelectionGranularityOptions) {
|
|
15
|
-
SelectionGranularityOptions["PivotTableTopHeader"] = "ic3pivotTableTopHeader";
|
|
16
|
-
SelectionGranularityOptions["PivotTableLeftHeader"] = "ic3pivotTableLeftHeader";
|
|
17
|
-
SelectionGranularityOptions["PivotTableCell"] = "ic3pivotTableCell";
|
|
18
|
-
})(SelectionGranularityOptions = exports.SelectionGranularityOptions || (exports.SelectionGranularityOptions = {}));
|
|
19
10
|
/**
|
|
20
11
|
* *********************************************************************************************************************
|
|
21
12
|
* DO NOT CHANGE THEIR VALUE : USED FOR FINDING THE DOCUMENTATION.
|
|
@@ -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":";;;AAgBA,IAAY,4CAIX;AAJD,WAAY,4CAA4C;IACpD,qEAAqB,CAAA;IACrB,yEAAyB,CAAA;IACzB,2EAA2B,CAAA;AAC/B,CAAC,EAJW,4CAA4C,GAA5C,oDAA4C,KAA5C,oDAA4C,QAIvD;AA8aD;;;;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"}
|
|
@@ -2,13 +2,23 @@ import { IWidgetEditorPublicContext } from "./PublicContext";
|
|
|
2
2
|
import { ITidyColumn } from "./PublicTidyColumn";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { AutocompleteRenderInputParams, AutocompleteRenderOptionState } from "@mui/material/Autocomplete/Autocomplete";
|
|
5
|
-
import { TidyColumnsType, TidyTableColumnSelector } from "./PublicTidyTableTypes";
|
|
5
|
+
import { IFormFieldGranularityItem, TidyColumnsType, TidyTableColumnSelector } from "./PublicTidyTableTypes";
|
|
6
|
+
import { ITidyTable } from "./PublicTidyTable";
|
|
7
|
+
export declare type Hook<T> = {
|
|
8
|
+
hook: (value: T) => void;
|
|
9
|
+
};
|
|
6
10
|
export declare function formFieldIsSelection(field: IFormFieldDef<any>): boolean;
|
|
7
11
|
export interface IFormFieldDef<DEFAULT_VALUE_TYPE> {
|
|
8
12
|
/**
|
|
9
13
|
* The path of the field within the edited bean.
|
|
10
14
|
*/
|
|
11
15
|
fieldPath: string;
|
|
16
|
+
/**
|
|
17
|
+
* Default: false ,
|
|
18
|
+
*
|
|
19
|
+
* If defaultValue is defined,
|
|
20
|
+
*/
|
|
21
|
+
mandatory?: boolean;
|
|
12
22
|
/**
|
|
13
23
|
* The default value defined at field level (note: can be defined at Theme level as well).
|
|
14
24
|
*/
|
|
@@ -40,10 +50,6 @@ export interface IFormFieldDef<DEFAULT_VALUE_TYPE> {
|
|
|
40
50
|
* Override default localization.
|
|
41
51
|
*/
|
|
42
52
|
fieldDescription?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Default: false
|
|
45
|
-
*/
|
|
46
|
-
mandatory?: boolean;
|
|
47
53
|
/**
|
|
48
54
|
* Default: false
|
|
49
55
|
*/
|
|
@@ -62,6 +68,8 @@ export interface IFormFieldDef<DEFAULT_VALUE_TYPE> {
|
|
|
62
68
|
visibility?: boolean | ((context: IWidgetEditorPublicContext) => boolean);
|
|
63
69
|
/**
|
|
64
70
|
* When defined the content of the field is translated (using context.translateContent).
|
|
71
|
+
*
|
|
72
|
+
* Only works for chart/widgetOptions !!
|
|
65
73
|
*/
|
|
66
74
|
translated?: boolean;
|
|
67
75
|
}
|
|
@@ -84,12 +92,12 @@ export declare type FormFields<T extends FormFieldObject> = {
|
|
|
84
92
|
} | {
|
|
85
93
|
mandatory: true;
|
|
86
94
|
}) & (Required<T>[key] extends FormFieldObject ? unknown : {
|
|
87
|
-
defaultValue?:
|
|
88
|
-
mandatory
|
|
95
|
+
defaultValue?: any;
|
|
96
|
+
mandatory?: true;
|
|
89
97
|
} | {
|
|
90
98
|
defaultValue?: any;
|
|
91
99
|
mandatory?: false;
|
|
92
|
-
}) & (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<IFormColumnChooserFieldDef, 'fieldPath'> : Required<T>[key] extends TidyTableColumnSelector ? Omit<IFormColumnChooserFieldDef, 'fieldPath'> : Required<T>[key] extends boolean ? Omit<IFormBooleanFieldDef, 'fieldPath'> : Required<T>[key] extends number ? Omit<IFormNumberFieldDef, 'fieldPath'> : Required<T>[key] extends string ? Omit<IFormOptionFieldSingleDef, 'fieldPath'> | Omit<IFormStringFieldDef, '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'> : Required<T>[key] extends string[] ? Omit<IFormOptionFieldMultipleDef, 'fieldPath'> | Omit<IFormGroupsFieldDef, 'fieldPath'> : never);
|
|
100
|
+
}) & (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<IFormColumnChooserFieldDef, 'fieldPath'> : Required<T>[key] extends TidyTableColumnSelector ? Omit<IFormColumnChooserFieldDef, 'fieldPath'> : Required<T>[key] extends IFormEventMappingArrayFieldDefType ? Omit<IFormEventMappingArrayFieldDef, '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 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);
|
|
93
101
|
};
|
|
94
102
|
export declare enum IFormFieldGroupTypes {
|
|
95
103
|
Selection = "selection",
|
|
@@ -121,6 +129,10 @@ export declare type FormFieldType =
|
|
|
121
129
|
* @see IFormColumnSelectionFieldDef
|
|
122
130
|
*/
|
|
123
131
|
"columnSelection" |
|
|
132
|
+
/**
|
|
133
|
+
* @see IFormConstantsFieldDef
|
|
134
|
+
*/
|
|
135
|
+
"constants" |
|
|
124
136
|
/**
|
|
125
137
|
* @see IFormArrayStringRecordsFieldDef
|
|
126
138
|
*/
|
|
@@ -133,6 +145,14 @@ export declare type FormFieldType =
|
|
|
133
145
|
* @see IFormFileUploaderFieldDef
|
|
134
146
|
*/
|
|
135
147
|
"fileUploader" |
|
|
148
|
+
/**
|
|
149
|
+
* @see IFormFormatterPickerFieldDef
|
|
150
|
+
*/
|
|
151
|
+
"formatterPicker" |
|
|
152
|
+
/**
|
|
153
|
+
* @see IFormBooleanFieldDef
|
|
154
|
+
*/
|
|
155
|
+
"fixedBoolean" |
|
|
136
156
|
/**
|
|
137
157
|
* @see IFormBooleanFieldDef
|
|
138
158
|
*/
|
|
@@ -141,6 +161,10 @@ export declare type FormFieldType =
|
|
|
141
161
|
* @see IFormGroupsFieldDef
|
|
142
162
|
*/
|
|
143
163
|
"groups" |
|
|
164
|
+
/**
|
|
165
|
+
* @see IFormFunctionFieldDef
|
|
166
|
+
*/
|
|
167
|
+
"hook" |
|
|
144
168
|
/**
|
|
145
169
|
* @see IFormJsFieldDef
|
|
146
170
|
*/
|
|
@@ -224,7 +248,11 @@ export declare type FormFieldType =
|
|
|
224
248
|
/**
|
|
225
249
|
* @see IFormWidgetVariantFieldDef
|
|
226
250
|
*/
|
|
227
|
-
"widgetVariant"
|
|
251
|
+
"widgetVariant" |
|
|
252
|
+
/**
|
|
253
|
+
* @see IFormGranularitySelectionFieldDef
|
|
254
|
+
*/
|
|
255
|
+
"granularityChooser";
|
|
228
256
|
export declare type FormFieldTidyTableExprType = "tidyTableHtmlExpr" | "tidyTableHtmlRowExpr" | "tidyTableNumericExpr" | "tidyTableNumericRowExpr" | "tidyTableScaleRowExpr" | "tidyTableTextExpr" | "tidyTableTextRowExpr" | "tidyTableStringRowExpr" | "tidyTableColorRowExpr";
|
|
229
257
|
export declare function isTidyTableExpr(type: FormFieldType): type is FormFieldTidyTableExprType;
|
|
230
258
|
export declare function isTidyTableExprTable(type: FormFieldType): boolean;
|
|
@@ -296,7 +324,7 @@ export interface IFormAutocompleteFieldDef<OPTION> extends IFormFieldDef<OPTION>
|
|
|
296
324
|
* @see IFormGroupsFieldDef
|
|
297
325
|
*/
|
|
298
326
|
export interface IFormBooleanFieldDef extends IFormFieldDef<boolean> {
|
|
299
|
-
fieldType: "boolean" | "groupBoolean";
|
|
327
|
+
fieldType: "boolean" | "fixedBoolean" | "groupBoolean";
|
|
300
328
|
}
|
|
301
329
|
/**
|
|
302
330
|
* @see FormFieldDef
|
|
@@ -314,13 +342,54 @@ export interface IFormColorEditorFieldDef extends IFormFieldDef<IColorDef> {
|
|
|
314
342
|
* selected by the user or in the fallback.
|
|
315
343
|
*
|
|
316
344
|
*/
|
|
317
|
-
export
|
|
345
|
+
export declare type IFormColumnChooserFieldDef = IFormColumnChooserSingleFieldDef | IFormColumnChooserMultipleFieldDef;
|
|
346
|
+
interface IFormColumnChooserSingleFieldDef extends IFormFieldDef<TidyTableColumnSelector> {
|
|
318
347
|
fieldType: "columnsChooser";
|
|
319
348
|
editorConf?: {
|
|
320
349
|
/**
|
|
321
350
|
* The user can select multiple columns / selectors
|
|
322
351
|
*/
|
|
323
|
-
multiple?:
|
|
352
|
+
multiple?: false;
|
|
353
|
+
/**
|
|
354
|
+
* The user can select the same column more than once
|
|
355
|
+
*/
|
|
356
|
+
allowDuplicate?: boolean;
|
|
357
|
+
/**
|
|
358
|
+
* Only columns of this/these type(s) are allowed.
|
|
359
|
+
*/
|
|
360
|
+
allowedTypes?: TidyColumnsType[] | ((column: ITidyColumn) => boolean);
|
|
361
|
+
/**
|
|
362
|
+
* The user can select properties of columns
|
|
363
|
+
*/
|
|
364
|
+
includeProperties?: boolean;
|
|
365
|
+
/**
|
|
366
|
+
* The user can choose a selector, see TidyTableMappingColumnSelectorOptions
|
|
367
|
+
*/
|
|
368
|
+
includeSelectors?: boolean;
|
|
369
|
+
/**
|
|
370
|
+
* Fallback to a column that has a type that is allowed. Note, properties of columns are not considered.
|
|
371
|
+
*
|
|
372
|
+
* It finds the column to fallback on by
|
|
373
|
+
* 1. role equal to fieldPath and type is allowed,
|
|
374
|
+
* 2. role equal to editorConfig.alias and type is allowed,
|
|
375
|
+
* 3. type is allowed.
|
|
376
|
+
*
|
|
377
|
+
* Already mapped columns are skipped.
|
|
378
|
+
*/
|
|
379
|
+
fallback?: boolean;
|
|
380
|
+
/**
|
|
381
|
+
* In the expression editor, use the alias to reference the column. Use the alias in table.getColumnByAlias(...).
|
|
382
|
+
*/
|
|
383
|
+
alias?: string;
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
interface IFormColumnChooserMultipleFieldDef extends IFormFieldDef<TidyTableColumnSelector[]> {
|
|
387
|
+
fieldType: "columnsChooser";
|
|
388
|
+
editorConf?: {
|
|
389
|
+
/**
|
|
390
|
+
* The user can select multiple columns / selectors
|
|
391
|
+
*/
|
|
392
|
+
multiple: true;
|
|
324
393
|
/**
|
|
325
394
|
* The user can select the same column more than once
|
|
326
395
|
*/
|
|
@@ -354,6 +423,19 @@ export interface IFormColumnChooserFieldDef extends IFormFieldDef<TidyTableColum
|
|
|
354
423
|
alias?: string;
|
|
355
424
|
};
|
|
356
425
|
}
|
|
426
|
+
/**
|
|
427
|
+
* @see FormFieldDef
|
|
428
|
+
*/
|
|
429
|
+
export interface IFormGranularitySelectionFieldDef extends IFormFieldDef<IFormFieldGranularityItem> {
|
|
430
|
+
fieldType: "granularityChooser";
|
|
431
|
+
editorConf?: {
|
|
432
|
+
allowedRoles?: (table: ITidyTable | undefined) => string[];
|
|
433
|
+
/**
|
|
434
|
+
* User can select from these columns. Undefined = no columns to select.
|
|
435
|
+
*/
|
|
436
|
+
allowedColumns?: (column: ITidyColumn, table: ITidyTable) => boolean;
|
|
437
|
+
};
|
|
438
|
+
}
|
|
357
439
|
/**
|
|
358
440
|
* @see FormFieldDef
|
|
359
441
|
*/
|
|
@@ -367,7 +449,17 @@ export interface IFormColumnSelectionFieldDef extends IFormFieldDef<any> {
|
|
|
367
449
|
/**
|
|
368
450
|
* @see FormFieldDef
|
|
369
451
|
*/
|
|
370
|
-
export interface
|
|
452
|
+
export interface IFormConstantsFieldDef extends IFormFieldDef<any> {
|
|
453
|
+
fieldType: "constants";
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* @see FormFieldDef
|
|
457
|
+
*/
|
|
458
|
+
export declare type IFormEventMappingArrayFieldDefType = {
|
|
459
|
+
toEvent: string;
|
|
460
|
+
fromEvent: string;
|
|
461
|
+
}[];
|
|
462
|
+
export interface IFormEventMappingArrayFieldDef extends IFormFieldDef<IFormEventMappingArrayFieldDefType> {
|
|
371
463
|
fieldType: "eventMappingArray";
|
|
372
464
|
}
|
|
373
465
|
/**
|
|
@@ -383,6 +475,12 @@ export interface IFormGroupsFieldDef extends IFormFieldDef<string[]> {
|
|
|
383
475
|
fieldType: "groups";
|
|
384
476
|
groups: string[];
|
|
385
477
|
}
|
|
478
|
+
/**
|
|
479
|
+
* @see FormFieldDef
|
|
480
|
+
*/
|
|
481
|
+
export interface IFormHookFieldDef<T> extends IFormFieldDef<Hook<T>> {
|
|
482
|
+
fieldType: "hook";
|
|
483
|
+
}
|
|
386
484
|
/**
|
|
387
485
|
* @see FormFieldDef
|
|
388
486
|
*/
|
|
@@ -410,6 +508,9 @@ export interface IFormFileUploaderFieldDef extends IFormFieldDef<any> {
|
|
|
410
508
|
*/
|
|
411
509
|
export interface IFormMarkdownFieldDef extends IFormFieldDef<string> {
|
|
412
510
|
fieldType: "markdown";
|
|
511
|
+
editorConf?: {
|
|
512
|
+
singleLine: false;
|
|
513
|
+
};
|
|
413
514
|
}
|
|
414
515
|
export declare type MdxExpressionType = "calcMeasure" | "drilldown";
|
|
415
516
|
/**
|
|
@@ -461,6 +562,9 @@ export interface IFormOptionFieldMultipleDef extends IFormFieldDef<string[]> {
|
|
|
461
562
|
getCaption?: (id: string) => string;
|
|
462
563
|
};
|
|
463
564
|
}
|
|
565
|
+
export interface IFormOptionFieldReportPathDef extends IFormFieldDef<string> {
|
|
566
|
+
fieldType: "reportPath";
|
|
567
|
+
}
|
|
464
568
|
export interface IFormOptionFieldSingleDef extends IFormFieldDef<string> {
|
|
465
569
|
fieldType: "option";
|
|
466
570
|
editorConf: {
|
|
@@ -539,6 +643,10 @@ export interface IFormTidyTableHtmlRowExprFieldDef extends IFormFieldDef<string>
|
|
|
539
643
|
fieldType: "tidyTableHtmlRowExpr";
|
|
540
644
|
editorConf?: {
|
|
541
645
|
defaultColumn?: boolean;
|
|
646
|
+
/**
|
|
647
|
+
* Default = available columns + roles. Set here to override.
|
|
648
|
+
*/
|
|
649
|
+
completionMeta?: string[];
|
|
542
650
|
};
|
|
543
651
|
}
|
|
544
652
|
/**
|
|
@@ -637,5 +745,8 @@ export interface IFormWidgetVariantFieldDef extends IFormFieldDef<string> {
|
|
|
637
745
|
predefinedVariants?: string[];
|
|
638
746
|
};
|
|
639
747
|
}
|
|
640
|
-
export
|
|
641
|
-
|
|
748
|
+
export interface IFormFormatterPickerFieldDef extends IFormFieldDef<string> {
|
|
749
|
+
fieldType: "formatterPicker";
|
|
750
|
+
}
|
|
751
|
+
export declare type FormFieldDef = IFormAutocompleteFieldDef<any> | IFormBooleanFieldDef | IFormColorEditorFieldDef | IFormColumnChooserFieldDef | IFormColumnSelectionFieldDef | IFormConstantsFieldDef | IFormEventMappingArrayFieldDef | IFormFileUploaderFieldDef | IFormGroupsFieldDef | IFormJsFieldDef | IFormMarkdownFieldDef | IFormMdxFieldDef | IFormNumberFieldDef | IFormOptionFieldDef | IFormOptionFieldSingleDef | IFormOptionFieldMultipleDef | IFormPaletteEditorFieldDef | IFormReportPathFieldDef | IFormReportPermaLinkFieldDef | IFormStringFieldDef | IFormTidyTableHtmlExprFieldDef | IFormTidyTableHtmlRowExprFieldDef | IFormTidyTableNumericExprFieldDef | IFormTidyTableNumericRowExprFieldDef | IFormTidyTableStringRowExprFieldDef | IFormTidyTableColorRowExprFieldDef | IFormTidyTableScaleRowExprFieldDef | IFormTidyTableTextExprFieldDef | IFormTidyTableTextRowExprFieldDef | IFormWidgetVariantFieldDef | IFormFormatterPickerFieldDef | IFormGranularitySelectionFieldDef;
|
|
752
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.isCodeMirrorModeExpr = exports.AutocompleteNoOptionsText = exports.isTidyTableExprScale = exports.isTidyTableExprNumeric = exports.isTidyTableExprTextHtml = exports.isTidyTableExprText = exports.isTidyTableExprRow = exports.isTidyTableExprTable = exports.isTidyTableExpr = exports.IFormFieldGroupTypes = exports.formFieldIsSelection = void 0;
|
|
4
4
|
function formFieldIsSelection(field) {
|
|
5
5
|
return field.group === IFormFieldGroupTypes.Selection;
|
|
6
6
|
}
|
|
@@ -80,12 +80,4 @@ function isCodeMirrorModeExpr(mode) {
|
|
|
80
80
|
|| mode === "tidyTableColorRowExpr";
|
|
81
81
|
}
|
|
82
82
|
exports.isCodeMirrorModeExpr = isCodeMirrorModeExpr;
|
|
83
|
-
function createGroupsMeta(groups) {
|
|
84
|
-
return {
|
|
85
|
-
fieldType: "groups",
|
|
86
|
-
groups: groups,
|
|
87
|
-
fieldPath: ""
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
exports.createGroupsMeta = createGroupsMeta;
|
|
91
83
|
//# sourceMappingURL=PublicTemplateForm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicTemplateForm.js","sourceRoot":"","sources":["../src/PublicTemplateForm.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"PublicTemplateForm.js","sourceRoot":"","sources":["../src/PublicTemplateForm.ts"],"names":[],"mappings":";;;AAaA,SAAgB,oBAAoB,CAAC,KAAyB;IAC1D,OAAO,KAAK,CAAC,KAAK,KAAK,oBAAoB,CAAC,SAAS,CAAC;AAC1D,CAAC;AAFD,oDAEC;AAmJD,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B,+CAAuB,CAAA;IACvB,yEAAiD,CAAA;IACjD,sDAA8B,CAAA;AAClC,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAI/B;AAsKD,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,KAAK,sBAAsB;WAC/B,IAAI,KAAK,yBAAyB;WAClC,IAAI,KAAK,wBAAwB;WACjC,IAAI,KAAK,uBAAuB;WAChC,IAAI,KAAK,uBAAuB,CAClC;AACT,CAAC;AARD,gDAQC;AAED,SAAgB,mBAAmB,CAAC,IAAmB;IACnD,OAAO,IAAI,KAAK,mBAAmB;WAC5B,IAAI,KAAK,sBAAsB;WAC/B,IAAI,KAAK,mBAAmB;WAC5B,IAAI,KAAK,sBAAsB,CACjC;AACT,CAAC;AAND,kDAMC;AAED,SAAgB,uBAAuB,CAAC,IAAmB;IACvD,OAAO,IAAI,KAAK,mBAAmB;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"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { PivotTableChartOptions } from "./theme/ThemePivotTable";
|
|
2
|
+
import { DatePickerChartOptions } from "./theme/ThemeDatePicker";
|
|
3
|
+
import { ImageChartOptions } from "./theme/ThemeImage";
|
|
4
|
+
import { KpiBoxChartOptions } from "./theme/ThemeKpiBox";
|
|
5
|
+
import { KpiCartChartOptions } from "./theme/ThemeKpiCard";
|
|
6
|
+
import { EmbeddedReportChartOptions } from "./theme/ThemeEmbeddedReport";
|
|
7
|
+
import { MarkdownTextChartOptions } from "./theme/ThemeMarkdownText";
|
|
8
|
+
import { FilterPanelChartOptions } from "./theme/ThemeFilterPanel";
|
|
9
|
+
import { RepetitionWidgetChartOptions } from "./theme/ThemeRepetitionWidget";
|
|
10
|
+
import { GoogleHeatMapChartOptions } from "./theme/ThemeGoogleHeatMap";
|
|
11
|
+
import { GoogleMarkerChartOptions } from "./theme/ThemeGoogleMarker";
|
|
12
|
+
import { GoogleKmlLayerChartOptions } from "./theme/ThemeGoogleKmlLayer";
|
|
13
|
+
import { TableChartOptions } from "./theme/ThemeTable";
|
|
14
|
+
import { FormFieldObject } from "./PublicTemplateForm";
|
|
15
|
+
import { FilterButtonsChartOptions } from "./theme/ThemeFilterButtons";
|
|
16
|
+
import { FilterCheckboxRadioChartOptions } from "./theme/ThemeFilterCheckboxRadio";
|
|
17
|
+
import { FilterSliderChartOptions } from "./theme/ThemeFilterSlider";
|
|
18
|
+
import { FilterAutocompleteChartOptions } from "./theme/ThemeFilterAutocomplete";
|
|
19
|
+
import { FilterTreeChartOptions } from "./theme/ThemeFilterTree";
|
|
20
|
+
import { AmCharts4BubbleChartOptions, AmCharts4ComboChartOptions, AmCharts4DonutChartOptions, AmCharts4GaugeChartOptions, AmCharts4HistogramOptions, AmCharts4RegularAreaChartOptions, AmCharts4RegularBarChartOptions, AmCharts4RegularColumnChartOptions, AmCharts4RegularLineChartOptions, AmCharts4SankeyDiagramOptions, AmCharts4ScatterPlotOptions, AmCharts4StackedAreaChartOptions, AmCharts4StackedBarChartOptions, AmCharts4StackedColumnChartOptions, AmCharts4TreemapOptions, GeoMapChartOptions } from "./theme/ThemeAmCharts4";
|
|
21
|
+
interface IWidgetTemplateChartOptions {
|
|
22
|
+
"ic3.DatePicker": DatePickerChartOptions;
|
|
23
|
+
"ic3.EmbeddedReport": EmbeddedReportChartOptions;
|
|
24
|
+
"ic3.FilterAutocomplete": FilterAutocompleteChartOptions;
|
|
25
|
+
"ic3.FilterButtons": FilterButtonsChartOptions;
|
|
26
|
+
"ic3.FilterCheckboxRadio": FilterCheckboxRadioChartOptions;
|
|
27
|
+
"ic3.FilterPanel": FilterPanelChartOptions;
|
|
28
|
+
"ic3.FilterSlider": FilterSliderChartOptions;
|
|
29
|
+
"ic3.FilterTree": FilterTreeChartOptions;
|
|
30
|
+
"ic3.GoogleHeatMap": GoogleHeatMapChartOptions;
|
|
31
|
+
"ic3.GoogleKmlLayer": GoogleKmlLayerChartOptions;
|
|
32
|
+
"ic3.GoogleMarker": GoogleMarkerChartOptions;
|
|
33
|
+
"ic3.Image": ImageChartOptions;
|
|
34
|
+
"ic3.KpiBox": KpiBoxChartOptions;
|
|
35
|
+
"ic3.KpiCard": KpiCartChartOptions;
|
|
36
|
+
"ic3.MarkdownText": MarkdownTextChartOptions;
|
|
37
|
+
"ic3.PivotTable": PivotTableChartOptions;
|
|
38
|
+
"ic3.RepetitionWidget": RepetitionWidgetChartOptions;
|
|
39
|
+
"ic3.Table": TableChartOptions;
|
|
40
|
+
"amCharts4.AmCharts4BubbleChart": AmCharts4BubbleChartOptions;
|
|
41
|
+
"amCharts4.AmCharts4ComboChart": AmCharts4ComboChartOptions;
|
|
42
|
+
"amCharts4.AmCharts4RegularAreaChart": AmCharts4RegularAreaChartOptions;
|
|
43
|
+
"amCharts4.AmCharts4RegularBarChart": AmCharts4RegularBarChartOptions;
|
|
44
|
+
"amCharts4.AmCharts4RegularColumnChart": AmCharts4RegularColumnChartOptions;
|
|
45
|
+
"amCharts4.AmCharts4RegularLineChart": AmCharts4RegularLineChartOptions;
|
|
46
|
+
"amCharts4.AmCharts4ScatterPlot": AmCharts4ScatterPlotOptions;
|
|
47
|
+
"amCharts4.AmCharts4StackedAreaChart": AmCharts4StackedAreaChartOptions;
|
|
48
|
+
"amCharts4.AmCharts4StackedBarChart": AmCharts4StackedBarChartOptions;
|
|
49
|
+
"amCharts4.AmCharts4StackedColumnChart": AmCharts4StackedColumnChartOptions;
|
|
50
|
+
"amCharts4.AmCharts4DonutChart": AmCharts4DonutChartOptions;
|
|
51
|
+
"amCharts4.AmCharts4GaugeChart": AmCharts4GaugeChartOptions;
|
|
52
|
+
"amCharts4.AmCharts4Histogram": AmCharts4HistogramOptions;
|
|
53
|
+
"amCharts4.AmCharts4SankeyDiagram": AmCharts4SankeyDiagramOptions;
|
|
54
|
+
"amCharts4.AmCharts4TreeMap": AmCharts4TreemapOptions;
|
|
55
|
+
"amCharts4.AmCharts4GeoMap": GeoMapChartOptions;
|
|
56
|
+
}
|
|
57
|
+
export declare type WidgetTemplateChartOptions = IWidgetTemplateChartOptions & {
|
|
58
|
+
[key: string]: FormFieldObject;
|
|
59
|
+
};
|
|
60
|
+
export declare type WidgetTemplateIDs = keyof IWidgetTemplateChartOptions;
|
|
61
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PublicTemplates.js","sourceRoot":"","sources":["../src/PublicTemplates.ts"],"names":[],"mappings":""}
|