@luzmo/embed 6.1.0 → 6.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/index.cjs +1009 -555
- package/index.js +992 -540
- package/lib/viz-item/viz-item.base.d.ts +1 -1
- package/libs/dashboard-contents-types/json-schemas.d.ts +223 -68
- package/libs/dashboard-contents-types/src/lib/area-chart/area-chart-options.d.ts +5 -5
- package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart-options.d.ts +9 -9
- package/libs/dashboard-contents-types/src/lib/box-plot/box-plot-options.d.ts +4 -4
- package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart-options.d.ts +4 -4
- package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart-options.d.ts +6 -6
- package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map-options.d.ts +9 -9
- package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge-options.d.ts +6 -6
- package/libs/dashboard-contents-types/src/lib/column-chart/column-chart-options.d.ts +9 -9
- package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart-options.d.ts +5 -5
- package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number-options.d.ts +7 -7
- package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart-options.d.ts +5 -5
- package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number-options.d.ts +24 -9
- package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart-options.d.ts +5 -5
- package/libs/dashboard-contents-types/src/lib/line-chart/line-chart-options.d.ts +4 -4
- package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table-options.d.ts +9 -9
- package/libs/dashboard-contents-types/src/lib/regular-table/regular-table-options.d.ts +5 -5
- package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram-options.d.ts +6 -6
- package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot-options.d.ts +6 -6
- package/libs/dashboard-contents-types/src/lib/shared/common.d.ts +4 -4
- package/libs/dashboard-contents-types/src/lib/shared/drop-object-view-options.d.ts +2 -0
- package/libs/dashboard-contents-types/src/lib/shared/interactivity-export.d.ts +2 -2
- package/libs/dashboard-contents-types/src/lib/shared/theme.d.ts +5 -1
- package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter-options.d.ts +7 -7
- package/libs/embed-libs/embed/src/lib/viz-item/viz-item.base.d.ts +1 -1
- package/luzmo-embed.min.js +1389 -936
- package/package.json +3 -3
|
@@ -24,7 +24,7 @@ export interface AreaChartViewOptions extends Omit<AxisObjectViewOptions, 'inter
|
|
|
24
24
|
startWithSubType?: AreaChartSubtype;
|
|
25
25
|
/**
|
|
26
26
|
* This option set the interpolation for the area drawn: "linear" or "step-before" or "step-after" or "monotone"
|
|
27
|
-
* @default
|
|
27
|
+
* @default "linear"
|
|
28
28
|
*/
|
|
29
29
|
interpolation?: Interpolation;
|
|
30
30
|
/**
|
|
@@ -130,7 +130,7 @@ export interface AreaChartViewOptions extends Omit<AxisObjectViewOptions, 'inter
|
|
|
130
130
|
ticksMode?: AxisTicksMode;
|
|
131
131
|
/**
|
|
132
132
|
* Set manual axes range
|
|
133
|
-
* @
|
|
133
|
+
* @examples [[0, 100]]
|
|
134
134
|
*/
|
|
135
135
|
manualAxesRange?: ManualAxesRange;
|
|
136
136
|
/**
|
|
@@ -168,7 +168,7 @@ export interface AreaChartViewOptions extends Omit<AxisObjectViewOptions, 'inter
|
|
|
168
168
|
ticksMode?: AxisTicksMode;
|
|
169
169
|
/**
|
|
170
170
|
* Set manual axes range
|
|
171
|
-
* @
|
|
171
|
+
* @examples [[0, 100]]
|
|
172
172
|
*/
|
|
173
173
|
manualAxesRange?: ManualAxesRange;
|
|
174
174
|
/**
|
|
@@ -284,7 +284,7 @@ interface AreaChartDisplayViewOptions extends DisplayLegendViewOptions, DisplayT
|
|
|
284
284
|
modeOption?: boolean;
|
|
285
285
|
};
|
|
286
286
|
}
|
|
287
|
-
interface AreaChartInteractivityViewOptions extends InteractivityCustomEventsViewOptions, InteractivityCustomTooltipViewOptions, InteractivityExportViewOptions,
|
|
287
|
+
interface AreaChartInteractivityViewOptions extends InteractivityBrushViewOptions, InteractivityCustomEventsViewOptions, InteractivityCustomTooltipViewOptions, InteractivityExportViewOptions, InteractivityMeasureDimensionPickerViewOptions, InteractivityGoToUrlViewOptions {
|
|
288
288
|
/**
|
|
289
289
|
* Interactivity options
|
|
290
290
|
*/
|
|
@@ -321,7 +321,7 @@ interface AreaChartInteractivityViewOptions extends InteractivityCustomEventsVie
|
|
|
321
321
|
measureDimensionPicker?: NonNullable<NonNullable<InteractivityMeasureDimensionPickerViewOptions['interactivity']>['measureDimensionPicker']>;
|
|
322
322
|
/**
|
|
323
323
|
* Go to URL interactivity option
|
|
324
|
-
* @default { target:
|
|
324
|
+
* @default { "target": "_blank", "url": null }
|
|
325
325
|
*/
|
|
326
326
|
urlConfig?: NonNullable<NonNullable<InteractivityGoToUrlViewOptions['interactivity']>['urlConfig']>;
|
|
327
327
|
};
|
|
@@ -15,7 +15,7 @@ import { DisplayTitleViewOptions, TitleViewOptions } from '../shared/title';
|
|
|
15
15
|
export interface BarChartViewOptions extends Omit<AxisObjectViewOptions, 'display' | 'interactivity'>, TitleViewOptions, LegendViewOptions, InfoTooltipViewOptions, RankingViewOptions, LimitViewOptions, SortViewOptions, BarChartDisplayViewOptions, BarChartInteractivityViewOptions {
|
|
16
16
|
/**
|
|
17
17
|
* Mode of the Bar chart: grouped, stacked or 100% stacked
|
|
18
|
-
* @default
|
|
18
|
+
* @default "grouped"
|
|
19
19
|
*/
|
|
20
20
|
mode?: BarChartMode;
|
|
21
21
|
/**
|
|
@@ -126,12 +126,12 @@ export interface BarChartViewOptions extends Omit<AxisObjectViewOptions, 'displa
|
|
|
126
126
|
color?: string;
|
|
127
127
|
/**
|
|
128
128
|
* Ticks mode of the X-axis
|
|
129
|
-
* @default
|
|
129
|
+
* @default "ticks"
|
|
130
130
|
*/
|
|
131
131
|
ticksMode?: AxisTicksMode;
|
|
132
132
|
/**
|
|
133
133
|
* X-axis scale type
|
|
134
|
-
* @default
|
|
134
|
+
* @default "linear"
|
|
135
135
|
*/
|
|
136
136
|
scale?: AxisScaleType;
|
|
137
137
|
/**
|
|
@@ -155,7 +155,7 @@ export interface BarChartViewOptions extends Omit<AxisObjectViewOptions, 'displa
|
|
|
155
155
|
color?: string;
|
|
156
156
|
/**
|
|
157
157
|
* Ticks mode of the Y-axis
|
|
158
|
-
* @default
|
|
158
|
+
* @default "ticks"
|
|
159
159
|
*/
|
|
160
160
|
ticksMode?: AxisTicksMode;
|
|
161
161
|
};
|
|
@@ -166,7 +166,7 @@ export interface BarChartViewOptions extends Omit<AxisObjectViewOptions, 'displa
|
|
|
166
166
|
bars?: {
|
|
167
167
|
/**
|
|
168
168
|
* Bar label options
|
|
169
|
-
* @default
|
|
169
|
+
* @default "none"
|
|
170
170
|
*/
|
|
171
171
|
label?: BarChartLabel;
|
|
172
172
|
/**
|
|
@@ -206,14 +206,14 @@ interface BarChartDisplayViewOptions extends DisplayTitleViewOptions, DisplayLeg
|
|
|
206
206
|
modeOption?: boolean;
|
|
207
207
|
};
|
|
208
208
|
}
|
|
209
|
-
interface BarChartInteractivityViewOptions extends
|
|
209
|
+
interface BarChartInteractivityViewOptions extends InteractivityCustomEventsViewOptions, InteractivityCustomTooltipViewOptions, InteractivityDrilldownViewOptions, InteractivityExportViewOptions, InteractivityFilterOnSelectViewOptions, InteractivityGoToUrlViewOptions, InteractivityMeasureDimensionPickerViewOptions {
|
|
210
210
|
/**
|
|
211
211
|
* Interactivity options
|
|
212
212
|
*/
|
|
213
213
|
interactivity?: {
|
|
214
214
|
/**
|
|
215
215
|
* Available export types interactivity option
|
|
216
|
-
* @default [
|
|
216
|
+
* @default ["xlsx", "csv", "png"]
|
|
217
217
|
*/
|
|
218
218
|
availableExportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['availableExportTypes']>;
|
|
219
219
|
/**
|
|
@@ -232,7 +232,7 @@ interface BarChartInteractivityViewOptions extends InteractivityCustomTooltipVie
|
|
|
232
232
|
drilldown?: NonNullable<NonNullable<InteractivityDrilldownViewOptions['interactivity']>['drilldown']>;
|
|
233
233
|
/**
|
|
234
234
|
* Export types interactivity option
|
|
235
|
-
* @default [
|
|
235
|
+
* @default ["xlsx", "csv", "png"]
|
|
236
236
|
*/
|
|
237
237
|
exportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['exportTypes']>;
|
|
238
238
|
/**
|
|
@@ -247,7 +247,7 @@ interface BarChartInteractivityViewOptions extends InteractivityCustomTooltipVie
|
|
|
247
247
|
select?: NonNullable<NonNullable<InteractivityFilterOnSelectViewOptions['interactivity']>['select']>;
|
|
248
248
|
/**
|
|
249
249
|
* Go to URL interactivity option
|
|
250
|
-
* @default { target:
|
|
250
|
+
* @default { "target": "_blank", "url": null }
|
|
251
251
|
*/
|
|
252
252
|
urlConfig?: NonNullable<NonNullable<InteractivityGoToUrlViewOptions['interactivity']>['urlConfig']>;
|
|
253
253
|
};
|
|
@@ -266,14 +266,14 @@ export interface BoxPlotViewOptions extends Omit<AxisObjectViewOptions, 'interac
|
|
|
266
266
|
};
|
|
267
267
|
manualAxisRange?: ManualAxesRange;
|
|
268
268
|
}
|
|
269
|
-
export interface BoxPlotInteractivity extends
|
|
269
|
+
export interface BoxPlotInteractivity extends InteractivityBrushViewOptions, InteractivityCustomEventsViewOptions, InteractivityCustomTooltipViewOptions, InteractivityExportViewOptions, InteractivityGoToUrlViewOptions, InteractivityMeasureDimensionPickerViewOptions {
|
|
270
270
|
/**
|
|
271
271
|
* Interactivity options
|
|
272
272
|
*/
|
|
273
273
|
interactivity?: {
|
|
274
274
|
/**
|
|
275
275
|
* Available export types interactivity option
|
|
276
|
-
* @default [
|
|
276
|
+
* @default ["xlsx", "csv", "png"]
|
|
277
277
|
*/
|
|
278
278
|
availableExportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['availableExportTypes']>;
|
|
279
279
|
/**
|
|
@@ -293,7 +293,7 @@ export interface BoxPlotInteractivity extends InteractivityGoToUrlViewOptions, I
|
|
|
293
293
|
customTooltip?: NonNullable<NonNullable<InteractivityCustomTooltipViewOptions['interactivity']>['customTooltip']>;
|
|
294
294
|
/**
|
|
295
295
|
* Export types interactivity option
|
|
296
|
-
* @default [
|
|
296
|
+
* @default ["xlsx", "csv", "png"]
|
|
297
297
|
*/
|
|
298
298
|
exportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['exportTypes']>;
|
|
299
299
|
/**
|
|
@@ -303,7 +303,7 @@ export interface BoxPlotInteractivity extends InteractivityGoToUrlViewOptions, I
|
|
|
303
303
|
measureDimensionPicker?: NonNullable<NonNullable<InteractivityMeasureDimensionPickerViewOptions['interactivity']>['measureDimensionPicker']>;
|
|
304
304
|
/**
|
|
305
305
|
* Go to URL interactivity option
|
|
306
|
-
* @default { target:
|
|
306
|
+
* @default { "target": "_blank", "url": null }
|
|
307
307
|
*/
|
|
308
308
|
urlConfig?: NonNullable<NonNullable<InteractivityGoToUrlViewOptions['interactivity']>['urlConfig']>;
|
|
309
309
|
};
|
|
@@ -49,14 +49,14 @@ interface BubbleChartDisplayViewOptions extends DisplayLegendViewOptions, Displa
|
|
|
49
49
|
bubbleValues?: 'none' | 'percentage' | 'absolute';
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
interface BubbleChartInteractivityViewOptions extends InteractivityCustomEventsViewOptions, InteractivityCustomTooltipViewOptions, InteractivityDrilldownViewOptions, InteractivityExportViewOptions,
|
|
52
|
+
interface BubbleChartInteractivityViewOptions extends InteractivityCustomEventsViewOptions, InteractivityCustomTooltipViewOptions, InteractivityDrilldownViewOptions, InteractivityExportViewOptions, InteractivityFilterOnSelectViewOptions, InteractivityGoToUrlViewOptions {
|
|
53
53
|
/**
|
|
54
54
|
* Interactivity options
|
|
55
55
|
*/
|
|
56
56
|
interactivity?: {
|
|
57
57
|
/**
|
|
58
58
|
* Available export types interactivity option
|
|
59
|
-
* @default [
|
|
59
|
+
* @default ["xlsx", "csv", "png"]
|
|
60
60
|
*/
|
|
61
61
|
availableExportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['availableExportTypes']>;
|
|
62
62
|
/**
|
|
@@ -75,7 +75,7 @@ interface BubbleChartInteractivityViewOptions extends InteractivityCustomEventsV
|
|
|
75
75
|
drilldown?: NonNullable<NonNullable<InteractivityDrilldownViewOptions['interactivity']>['drilldown']>;
|
|
76
76
|
/**
|
|
77
77
|
* Export types interactivity option
|
|
78
|
-
* @default [
|
|
78
|
+
* @default ["xlsx", "csv", "png"]
|
|
79
79
|
*/
|
|
80
80
|
exportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['exportTypes']>;
|
|
81
81
|
/**
|
|
@@ -90,7 +90,7 @@ interface BubbleChartInteractivityViewOptions extends InteractivityCustomEventsV
|
|
|
90
90
|
select?: NonNullable<NonNullable<InteractivityFilterOnSelectViewOptions['interactivity']>['select']>;
|
|
91
91
|
/**
|
|
92
92
|
* Go to URL interactivity option
|
|
93
|
-
* @default { target:
|
|
93
|
+
* @default { "target": "_blank", "url": null }
|
|
94
94
|
*/
|
|
95
95
|
urlConfig?: NonNullable<NonNullable<InteractivityGoToUrlViewOptions['interactivity']>['urlConfig']>;
|
|
96
96
|
};
|
|
@@ -38,14 +38,14 @@ interface BulletChartDisplayViewOptions extends DisplayTitleViewOptions {
|
|
|
38
38
|
ranges?: boolean;
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
interface BulletChartInteractivityViewOptions extends InteractivityCustomEventsViewOptions, InteractivityCustomTooltipViewOptions, InteractivityExportViewOptions, InteractivityGoToUrlViewOptions {
|
|
41
|
+
interface BulletChartInteractivityViewOptions extends InteractivityCustomEventsViewOptions, InteractivityCustomTooltipViewOptions, InteractivityExportViewOptions, InteractivityGoToUrlViewOptions, InteractivityMeasureDimensionPickerViewOptions {
|
|
42
42
|
/**
|
|
43
43
|
* Interactivity options
|
|
44
44
|
*/
|
|
45
45
|
interactivity?: {
|
|
46
46
|
/**
|
|
47
47
|
* Available export types interactivity option
|
|
48
|
-
* @default [
|
|
48
|
+
* @default ["xlsx", "csv", "png"]
|
|
49
49
|
*/
|
|
50
50
|
availableExportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['availableExportTypes']>;
|
|
51
51
|
/**
|
|
@@ -60,7 +60,7 @@ interface BulletChartInteractivityViewOptions extends InteractivityCustomEventsV
|
|
|
60
60
|
customTooltip?: NonNullable<NonNullable<InteractivityCustomTooltipViewOptions['interactivity']>['customTooltip']>;
|
|
61
61
|
/**
|
|
62
62
|
* Export types interactivity option
|
|
63
|
-
* @default [
|
|
63
|
+
* @default ["xlsx", "csv", "png"]
|
|
64
64
|
*/
|
|
65
65
|
exportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['exportTypes']>;
|
|
66
66
|
/**
|
|
@@ -70,7 +70,7 @@ interface BulletChartInteractivityViewOptions extends InteractivityCustomEventsV
|
|
|
70
70
|
measureDimensionPicker?: NonNullable<NonNullable<InteractivityMeasureDimensionPickerViewOptions['interactivity']>['measureDimensionPicker']>;
|
|
71
71
|
/**
|
|
72
72
|
* Go to URL interactivity option
|
|
73
|
-
* @default { target:
|
|
73
|
+
* @default { "target": "_blank", "url": null }
|
|
74
74
|
*/
|
|
75
75
|
urlConfig?: NonNullable<NonNullable<InteractivityGoToUrlViewOptions['interactivity']>['urlConfig']>;
|
|
76
76
|
};
|
|
@@ -79,12 +79,12 @@ export interface BulletChartManualValue {
|
|
|
79
79
|
id?: string;
|
|
80
80
|
/**
|
|
81
81
|
* @TJS-type object
|
|
82
|
-
* @
|
|
82
|
+
* @examples [{ "en": "Revenue" }]
|
|
83
83
|
*/
|
|
84
84
|
title?: Record<string, string>;
|
|
85
85
|
/**
|
|
86
86
|
* @TJS-type object
|
|
87
|
-
* @
|
|
87
|
+
* @examples [{ "en": "Total Revenue" }]
|
|
88
88
|
*/
|
|
89
89
|
subtitle?: Record<string, string>;
|
|
90
90
|
/**
|
|
@@ -20,7 +20,7 @@ export interface ChoroplethMapViewOptions extends Omit<MapObjectViewOptions, 'di
|
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
22
22
|
* Classification options: quantile, interval, continuous or manual
|
|
23
|
-
* @default
|
|
23
|
+
* @default "quantile"
|
|
24
24
|
*/
|
|
25
25
|
classification?: 'quantile' | 'interval' | 'continuous' | 'manual';
|
|
26
26
|
/**
|
|
@@ -35,13 +35,13 @@ export interface ChoroplethMapViewOptions extends Omit<MapObjectViewOptions, 'di
|
|
|
35
35
|
opacity?: number;
|
|
36
36
|
/**
|
|
37
37
|
* Stroke color of the map
|
|
38
|
-
* @
|
|
39
|
-
* @default
|
|
38
|
+
* @examples ["#000000"]
|
|
39
|
+
* @default "rgba(0,0,0,.3)"
|
|
40
40
|
*/
|
|
41
41
|
strokeColor?: string;
|
|
42
42
|
/**
|
|
43
43
|
* Set classes on the colors
|
|
44
|
-
* @default
|
|
44
|
+
* @default "PuBu"
|
|
45
45
|
*/
|
|
46
46
|
colorsClass?: string;
|
|
47
47
|
/**
|
|
@@ -70,8 +70,8 @@ export interface ChoroplethMapViewOptions extends Omit<MapObjectViewOptions, 'di
|
|
|
70
70
|
active?: boolean;
|
|
71
71
|
/**
|
|
72
72
|
* If enabled, color of the highlight
|
|
73
|
-
* @
|
|
74
|
-
* @default
|
|
73
|
+
* @examples ["#000000"]
|
|
74
|
+
* @default "rgb(255,255,255)"
|
|
75
75
|
*/
|
|
76
76
|
color?: string;
|
|
77
77
|
};
|
|
@@ -100,7 +100,7 @@ interface ChoroplethMapInteractivityViewOptions extends InteractivityCustomEvent
|
|
|
100
100
|
interactivity?: {
|
|
101
101
|
/**
|
|
102
102
|
* Available export types interactivity option
|
|
103
|
-
* @default [
|
|
103
|
+
* @default ["xlsx", "csv", "png"]
|
|
104
104
|
*/
|
|
105
105
|
availableExportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['availableExportTypes']>;
|
|
106
106
|
/**
|
|
@@ -115,7 +115,7 @@ interface ChoroplethMapInteractivityViewOptions extends InteractivityCustomEvent
|
|
|
115
115
|
customTooltip?: NonNullable<NonNullable<InteractivityCustomTooltipViewOptions['interactivity']>['customTooltip']>;
|
|
116
116
|
/**
|
|
117
117
|
* Export types interactivity option
|
|
118
|
-
* @default [
|
|
118
|
+
* @default ["xlsx", "csv", "png"]
|
|
119
119
|
*/
|
|
120
120
|
exportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['exportTypes']>;
|
|
121
121
|
/**
|
|
@@ -130,7 +130,7 @@ interface ChoroplethMapInteractivityViewOptions extends InteractivityCustomEvent
|
|
|
130
130
|
select?: NonNullable<NonNullable<InteractivityFilterOnSelectViewOptions['interactivity']>['select']>;
|
|
131
131
|
/**
|
|
132
132
|
* Go to URL interactivity option
|
|
133
|
-
* @default { target:
|
|
133
|
+
* @default { "target": "_blank", "url": null }
|
|
134
134
|
*/
|
|
135
135
|
urlConfig?: NonNullable<NonNullable<InteractivityGoToUrlViewOptions['interactivity']>['urlConfig']>;
|
|
136
136
|
};
|
|
@@ -9,7 +9,7 @@ import { DisplayTitleViewOptions, TitleViewOptions } from '../shared/title';
|
|
|
9
9
|
export interface CircularGaugeViewOptions extends Omit<DropObjectViewOptions, 'interactivity' | 'display'>, InfoTooltipViewOptions, TitleViewOptions, CircularGaugeInteractivityViewOptions, CircularGaugeDisplayViewOptions {
|
|
10
10
|
/**
|
|
11
11
|
* Mode of the Circular Gauge: normal, percentage or difference
|
|
12
|
-
* @default
|
|
12
|
+
* @default "normal"
|
|
13
13
|
*/
|
|
14
14
|
mode?: 'normal' | 'percentage' | 'difference';
|
|
15
15
|
/**
|
|
@@ -32,12 +32,12 @@ export interface CircularGaugeViewOptions extends Omit<DropObjectViewOptions, 'i
|
|
|
32
32
|
color?: string;
|
|
33
33
|
/**
|
|
34
34
|
* Background color of the circle
|
|
35
|
-
* @default
|
|
35
|
+
* @default "rgba(0,0,0,.1)"
|
|
36
36
|
*/
|
|
37
37
|
background?: string;
|
|
38
38
|
/**
|
|
39
39
|
* Line cap of the circle
|
|
40
|
-
* @default
|
|
40
|
+
* @default "round"
|
|
41
41
|
*/
|
|
42
42
|
lineCap?: 'round';
|
|
43
43
|
/**
|
|
@@ -94,7 +94,7 @@ interface CircularGaugeInteractivityViewOptions extends InteractivityCustomEvent
|
|
|
94
94
|
interactivity?: {
|
|
95
95
|
/**
|
|
96
96
|
* Available export types interactivity option
|
|
97
|
-
* @default [
|
|
97
|
+
* @default ["xlsx", "csv", "png"]
|
|
98
98
|
*/
|
|
99
99
|
availableExportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['availableExportTypes']>;
|
|
100
100
|
/**
|
|
@@ -104,7 +104,7 @@ interface CircularGaugeInteractivityViewOptions extends InteractivityCustomEvent
|
|
|
104
104
|
customEvents?: NonNullable<NonNullable<InteractivityCustomEventsViewOptions['interactivity']>['customEvents']>;
|
|
105
105
|
/**
|
|
106
106
|
* Export types interactivity option
|
|
107
|
-
* @default [
|
|
107
|
+
* @default ["xlsx", "csv", "png"]
|
|
108
108
|
*/
|
|
109
109
|
exportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['exportTypes']>;
|
|
110
110
|
/**
|
|
@@ -114,7 +114,7 @@ interface CircularGaugeInteractivityViewOptions extends InteractivityCustomEvent
|
|
|
114
114
|
measureDimensionPicker?: NonNullable<NonNullable<InteractivityMeasureDimensionPickerViewOptions['interactivity']>['measureDimensionPicker']>;
|
|
115
115
|
/**
|
|
116
116
|
* Go to URL interactivity option
|
|
117
|
-
* @default { target:
|
|
117
|
+
* @default { "target": "_blank", "url": null }
|
|
118
118
|
*/
|
|
119
119
|
urlConfig?: NonNullable<NonNullable<InteractivityGoToUrlViewOptions['interactivity']>['urlConfig']>;
|
|
120
120
|
};
|
|
@@ -15,7 +15,7 @@ import { DisplayTitleViewOptions, TitleViewOptions } from '../shared/title';
|
|
|
15
15
|
export interface ColumnChartViewOptions extends Omit<AxisObjectViewOptions, 'display' | 'interactivity'>, InfoTooltipViewOptions, LegendViewOptions, TitleViewOptions, RankingViewOptions, LimitViewOptions, SortViewOptions, ColumnChartDisplayViewOptions, ColumnChartInteractivityViewOptions {
|
|
16
16
|
/**
|
|
17
17
|
* Mode of the Column chart: grouped, stacked or 100% stacked
|
|
18
|
-
* @default
|
|
18
|
+
* @default "grouped"
|
|
19
19
|
*/
|
|
20
20
|
mode?: 'grouped' | 'stacked' | '100';
|
|
21
21
|
/**
|
|
@@ -123,7 +123,7 @@ export interface ColumnChartViewOptions extends Omit<AxisObjectViewOptions, 'dis
|
|
|
123
123
|
color?: string;
|
|
124
124
|
/**
|
|
125
125
|
* Ticks mode of the X-axis
|
|
126
|
-
* @default
|
|
126
|
+
* @default "ticks"
|
|
127
127
|
*/
|
|
128
128
|
ticksMode?: AxisTicksMode;
|
|
129
129
|
};
|
|
@@ -138,12 +138,12 @@ export interface ColumnChartViewOptions extends Omit<AxisObjectViewOptions, 'dis
|
|
|
138
138
|
color?: string;
|
|
139
139
|
/**
|
|
140
140
|
* Ticks mode of the Y-axis
|
|
141
|
-
* @default
|
|
141
|
+
* @default "ticks"
|
|
142
142
|
*/
|
|
143
143
|
ticksMode?: AxisTicksMode;
|
|
144
144
|
/**
|
|
145
145
|
* Y-axis scale type
|
|
146
|
-
* @default
|
|
146
|
+
* @default "linear"
|
|
147
147
|
*/
|
|
148
148
|
scale?: AxisScaleType;
|
|
149
149
|
/**
|
|
@@ -163,7 +163,7 @@ export interface ColumnChartViewOptions extends Omit<AxisObjectViewOptions, 'dis
|
|
|
163
163
|
bars?: {
|
|
164
164
|
/**
|
|
165
165
|
* Bar label options
|
|
166
|
-
* @default
|
|
166
|
+
* @default "none"
|
|
167
167
|
*/
|
|
168
168
|
label?: ColumnChartLabel;
|
|
169
169
|
/**
|
|
@@ -203,14 +203,14 @@ interface ColumnChartDisplayViewOptions extends DisplayLegendViewOptions, Displa
|
|
|
203
203
|
modeOption?: boolean;
|
|
204
204
|
};
|
|
205
205
|
}
|
|
206
|
-
interface ColumnChartInteractivityViewOptions extends InteractivityCustomTooltipViewOptions, InteractivityDrilldownViewOptions, InteractivityExportViewOptions, InteractivityGoToUrlViewOptions, InteractivityFilterOnSelectViewOptions {
|
|
206
|
+
interface ColumnChartInteractivityViewOptions extends InteractivityCustomEventsViewOptions, InteractivityCustomTooltipViewOptions, InteractivityDrilldownViewOptions, InteractivityExportViewOptions, InteractivityGoToUrlViewOptions, InteractivityFilterOnSelectViewOptions, InteractivityMeasureDimensionPickerViewOptions {
|
|
207
207
|
/**
|
|
208
208
|
* Interactivity options
|
|
209
209
|
*/
|
|
210
210
|
interactivity?: {
|
|
211
211
|
/**
|
|
212
212
|
* Available export types interactivity option
|
|
213
|
-
* @default [
|
|
213
|
+
* @default ["xlsx", "csv", "png"]
|
|
214
214
|
*/
|
|
215
215
|
availableExportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['availableExportTypes']>;
|
|
216
216
|
/**
|
|
@@ -229,7 +229,7 @@ interface ColumnChartInteractivityViewOptions extends InteractivityCustomTooltip
|
|
|
229
229
|
drilldown?: NonNullable<NonNullable<InteractivityDrilldownViewOptions['interactivity']>['drilldown']>;
|
|
230
230
|
/**
|
|
231
231
|
* Export types interactivity option
|
|
232
|
-
* @default [
|
|
232
|
+
* @default ["xlsx", "csv", "png"]
|
|
233
233
|
*/
|
|
234
234
|
exportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['exportTypes']>;
|
|
235
235
|
/**
|
|
@@ -244,7 +244,7 @@ interface ColumnChartInteractivityViewOptions extends InteractivityCustomTooltip
|
|
|
244
244
|
select?: NonNullable<NonNullable<InteractivityFilterOnSelectViewOptions['interactivity']>['select']>;
|
|
245
245
|
/**
|
|
246
246
|
* Go to URL interactivity option
|
|
247
|
-
* @default { target:
|
|
247
|
+
* @default { "target": "_blank", "url": null }
|
|
248
248
|
*/
|
|
249
249
|
urlConfig?: NonNullable<NonNullable<InteractivityGoToUrlViewOptions['interactivity']>['urlConfig']>;
|
|
250
250
|
};
|
package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart-options.d.ts
CHANGED
|
@@ -211,7 +211,7 @@ export interface CombinationChartViewOptions extends Omit<AxisObjectViewOptions,
|
|
|
211
211
|
measures?: CombinationChartMeasure[];
|
|
212
212
|
guidelines?: Guidelines;
|
|
213
213
|
/**
|
|
214
|
-
* @default { active: false, direction:
|
|
214
|
+
* @default { "active": false, "direction": "top", "number": 10 }
|
|
215
215
|
*/
|
|
216
216
|
ranking: RankingViewOptions['ranking'];
|
|
217
217
|
/**
|
|
@@ -233,14 +233,14 @@ interface CombinationChartDisplayOptions extends DisplayTitleViewOptions, Displa
|
|
|
233
233
|
legend?: NonNullable<NonNullable<DisplayLegendViewOptions['display']>['legend']>;
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
|
-
interface CombinationChartInteractivityOptions extends
|
|
236
|
+
interface CombinationChartInteractivityOptions extends InteractivityBrushViewOptions, InteractivityCustomEventsViewOptions, InteractivityCustomTooltipViewOptions, InteractivityExportViewOptions, InteractivityGoToUrlViewOptions, InteractivityMeasureDimensionPickerViewOptions {
|
|
237
237
|
/**
|
|
238
238
|
* Interactivity options
|
|
239
239
|
*/
|
|
240
240
|
interactivity?: {
|
|
241
241
|
/**
|
|
242
242
|
* Available export types interactivity option
|
|
243
|
-
* @default [
|
|
243
|
+
* @default ["xlsx", "csv", "png"]
|
|
244
244
|
*/
|
|
245
245
|
availableExportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['availableExportTypes']>;
|
|
246
246
|
/**
|
|
@@ -260,7 +260,7 @@ interface CombinationChartInteractivityOptions extends InteractivityGoToUrlViewO
|
|
|
260
260
|
customTooltip?: NonNullable<NonNullable<InteractivityCustomTooltipViewOptions['interactivity']>['customTooltip']>;
|
|
261
261
|
/**
|
|
262
262
|
* Export types interactivity option
|
|
263
|
-
* @default [
|
|
263
|
+
* @default ["xlsx", "csv", "png"]
|
|
264
264
|
*/
|
|
265
265
|
exportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['exportTypes']>;
|
|
266
266
|
/**
|
|
@@ -270,7 +270,7 @@ interface CombinationChartInteractivityOptions extends InteractivityGoToUrlViewO
|
|
|
270
270
|
measureDimensionPicker?: NonNullable<NonNullable<InteractivityMeasureDimensionPickerViewOptions['interactivity']>['measureDimensionPicker']>;
|
|
271
271
|
/**
|
|
272
272
|
* Go to URL interactivity option
|
|
273
|
-
* @default { target:
|
|
273
|
+
* @default { "target": "_blank", "url": null }
|
|
274
274
|
*/
|
|
275
275
|
urlConfig?: NonNullable<NonNullable<InteractivityGoToUrlViewOptions['interactivity']>['urlConfig']>;
|
|
276
276
|
};
|
package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number-options.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { DisplayTitleViewOptions, TitleViewOptions } from '../shared/title';
|
|
|
10
10
|
export interface ConditionalNumberViewOptions extends Omit<DropObjectViewOptions, 'interactivity' | 'display'>, TitleViewOptions, InfoTooltipViewOptions, ConditionalNumberInteractivityViewOptions, ConditionalNumberDisplayViewOptions {
|
|
11
11
|
/**
|
|
12
12
|
* Display mode
|
|
13
|
-
* @default
|
|
13
|
+
* @default "normal"
|
|
14
14
|
*/
|
|
15
15
|
mode?: 'normal' | 'difference' | 'percentage';
|
|
16
16
|
/**
|
|
@@ -19,12 +19,12 @@ export interface ConditionalNumberViewOptions extends Omit<DropObjectViewOptions
|
|
|
19
19
|
alignment?: {
|
|
20
20
|
/**
|
|
21
21
|
* Horizontal alignment
|
|
22
|
-
* @default
|
|
22
|
+
* @default "center"
|
|
23
23
|
*/
|
|
24
24
|
horizontal?: XAxisLabelPosition;
|
|
25
25
|
/**
|
|
26
26
|
* Vertical alignment
|
|
27
|
-
* @default
|
|
27
|
+
* @default "middle"
|
|
28
28
|
*/
|
|
29
29
|
vertical?: YAxisLabelPosition;
|
|
30
30
|
};
|
|
@@ -59,14 +59,14 @@ interface ConditionalNumberDisplayViewOptions extends DisplayTitleViewOptions {
|
|
|
59
59
|
label?: boolean;
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
|
-
interface ConditionalNumberInteractivityViewOptions extends
|
|
62
|
+
interface ConditionalNumberInteractivityViewOptions extends InteractivityCustomEventsViewOptions, InteractivityExportViewOptions, InteractivityGoToUrlViewOptions, InteractivityMeasureDimensionPickerViewOptions {
|
|
63
63
|
/**
|
|
64
64
|
* Interactivity options
|
|
65
65
|
*/
|
|
66
66
|
interactivity?: {
|
|
67
67
|
/**
|
|
68
68
|
* Go to URL interactivity option
|
|
69
|
-
* @default { target:
|
|
69
|
+
* @default { "target": "_blank", "url": null }
|
|
70
70
|
*/
|
|
71
71
|
urlConfig?: NonNullable<NonNullable<InteractivityGoToUrlViewOptions['interactivity']>['urlConfig']>;
|
|
72
72
|
/**
|
|
@@ -81,12 +81,12 @@ interface ConditionalNumberInteractivityViewOptions extends InteractivityGoToUrl
|
|
|
81
81
|
customEvents?: NonNullable<NonNullable<InteractivityCustomEventsViewOptions['interactivity']>['customEvents']>;
|
|
82
82
|
/**
|
|
83
83
|
* Available export types interactivity option
|
|
84
|
-
* @default [
|
|
84
|
+
* @default ["xlsx", "csv", "png"]
|
|
85
85
|
*/
|
|
86
86
|
availableExportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['availableExportTypes']>;
|
|
87
87
|
/**
|
|
88
88
|
* Export types interactivity option
|
|
89
|
-
* @default [
|
|
89
|
+
* @default ["xlsx", "csv", "png"]
|
|
90
90
|
*/
|
|
91
91
|
exportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['exportTypes']>;
|
|
92
92
|
};
|
|
@@ -14,7 +14,7 @@ import { DisplayTitleViewOptions, TitleViewOptions } from '../shared/title';
|
|
|
14
14
|
export interface DonutChartViewOptions extends Omit<DropObjectViewOptions, 'display' | 'interactivity'>, InfoTooltipViewOptions, LegendViewOptions, TitleViewOptions, LimitViewOptions, SortViewOptions, DonutChartDisplayViewOptions, DonutChartInteractivityViewOptions {
|
|
15
15
|
/**
|
|
16
16
|
* Mode of the Donut chart: donut or pie
|
|
17
|
-
* @default
|
|
17
|
+
* @default "donut"
|
|
18
18
|
*/
|
|
19
19
|
mode?: 'donut' | 'pie';
|
|
20
20
|
/**
|
|
@@ -81,14 +81,14 @@ interface DonutChartDisplayViewOptions extends DisplayLegendViewOptions, Display
|
|
|
81
81
|
categoryLabels?: boolean;
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
|
-
interface DonutChartInteractivityViewOptions extends InteractivityCustomEventsViewOptions, InteractivityCustomTooltipViewOptions, InteractivityDrilldownViewOptions, InteractivityExportViewOptions, InteractivityGoToUrlViewOptions,
|
|
84
|
+
interface DonutChartInteractivityViewOptions extends InteractivityCustomEventsViewOptions, InteractivityCustomTooltipViewOptions, InteractivityDrilldownViewOptions, InteractivityExportViewOptions, InteractivityFilterOnSelectViewOptions, InteractivityGoToUrlViewOptions, InteractivityMeasureDimensionPickerViewOptions {
|
|
85
85
|
/**
|
|
86
86
|
* Interactivity options
|
|
87
87
|
*/
|
|
88
88
|
interactivity?: {
|
|
89
89
|
/**
|
|
90
90
|
* Available export types interactivity option
|
|
91
|
-
* @default [
|
|
91
|
+
* @default ["xlsx", "csv", "png"]
|
|
92
92
|
*/
|
|
93
93
|
availableExportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['availableExportTypes']>;
|
|
94
94
|
/**
|
|
@@ -107,7 +107,7 @@ interface DonutChartInteractivityViewOptions extends InteractivityCustomEventsVi
|
|
|
107
107
|
drilldown?: NonNullable<NonNullable<InteractivityDrilldownViewOptions['interactivity']>['drilldown']>;
|
|
108
108
|
/**
|
|
109
109
|
* Export types interactivity option
|
|
110
|
-
* @default [
|
|
110
|
+
* @default ["xlsx", "csv", "png"]
|
|
111
111
|
*/
|
|
112
112
|
exportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['exportTypes']>;
|
|
113
113
|
/**
|
|
@@ -122,7 +122,7 @@ interface DonutChartInteractivityViewOptions extends InteractivityCustomEventsVi
|
|
|
122
122
|
select?: NonNullable<NonNullable<InteractivityFilterOnSelectViewOptions['interactivity']>['select']>;
|
|
123
123
|
/**
|
|
124
124
|
* Go to URL interactivity option
|
|
125
|
-
* @default { target:
|
|
125
|
+
* @default { "target": "_blank", "url": null }
|
|
126
126
|
*/
|
|
127
127
|
urlConfig?: NonNullable<NonNullable<InteractivityGoToUrlViewOptions['interactivity']>['urlConfig']>;
|
|
128
128
|
};
|