@luzmo/embed 6.1.0 → 6.1.2-beta.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/CHANGELOG.md +12 -0
- package/index.cjs +1247 -555
- package/index.d.ts +2 -0
- package/index.js +1228 -540
- package/lib/ai-component/luzmo-ai-answer.d.ts +23 -0
- package/lib/ai-component/luzmo-ai-chat.d.ts +24 -0
- 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/index.d.ts +1 -0
- 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/search-filter/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/search-filter/search-filter-options.d.ts +56 -0
- package/libs/dashboard-contents-types/src/lib/search-filter/search-filter-slots.d.ts +17 -0
- package/libs/dashboard-contents-types/src/lib/search-filter/search-filter.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/shared/common.d.ts +5 -5
- 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/index.d.ts +2 -0
- package/libs/embed-libs/embed/src/lib/ai-component/luzmo-ai-answer.d.ts +23 -0
- package/libs/embed-libs/embed/src/lib/ai-component/luzmo-ai-chat.d.ts +24 -0
- package/libs/embed-libs/embed/src/lib/viz-item/viz-item.base.d.ts +1 -1
- package/libs/embed-libs/shared-embed/src/index.common.d.ts +1 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/remote-federation.d.ts +1 -1
- package/libs/embed-libs/shared-embed/src/lib/models/ai-components.model.d.ts +128 -0
- package/luzmo-embed.min.js +1634 -942
- package/package.json +3 -3
- package/src/index.d.ts +7 -0
- package/src/lib/ai-component/luzmo-ai-answer.d.ts +23 -0
- package/src/lib/ai-component/luzmo-ai-chat.d.ts +24 -0
- package/src/lib/dashboard-component/dashboard-base.d.ts +98 -0
- package/src/lib/dashboard-component/dashboard-component.d.ts +8 -0
- package/src/lib/dashboard-component/dashboard-styles.d.ts +1 -0
- package/src/lib/helper/event-bus-handler.d.ts +1 -0
- package/src/lib/luzmo-service.d.ts +6 -0
- package/src/lib/viz-item/viz-item-component.d.ts +4 -0
- package/src/lib/viz-item/viz-item.base.d.ts +73 -0
package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number-options.d.ts
CHANGED
|
@@ -5,8 +5,17 @@ import { InteractivityCustomEventsViewOptions } from '../shared/interactivity-cu
|
|
|
5
5
|
import { InteractivityExportViewOptions } from '../shared/interactivity-export';
|
|
6
6
|
import { InteractivityGoToUrlViewOptions } from '../shared/interactivity-go-to-url';
|
|
7
7
|
import { InteractivityMeasureDimensionPickerViewOptions } from '../shared/interactivity-measure-dimension-picker';
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
export interface EvolutionNumberViewOptions extends Omit<DropObjectViewOptions, 'interactivity' | 'title' | 'display'>, InfoTooltipViewOptions, MissingValueViewOptions, EvolutionNumberInteractivityViewOptions {
|
|
9
|
+
/**
|
|
10
|
+
* It's used in the component but takes no effect if pass it as an option to a component. "showTitle" is used to show the title.
|
|
11
|
+
* @TJS-ignore
|
|
12
|
+
*/
|
|
13
|
+
display?: DropObjectViewOptions['display'];
|
|
14
|
+
/**
|
|
15
|
+
* It's used in the component but takes no effect if pass it as an option to a component. See "showTitle" description for details.
|
|
16
|
+
* @TJS-ignore
|
|
17
|
+
*/
|
|
18
|
+
title?: DropObjectViewOptions['title'];
|
|
10
19
|
/**
|
|
11
20
|
* Evolution color
|
|
12
21
|
* @default "normal"
|
|
@@ -45,6 +54,7 @@ export interface EvolutionNumberViewOptions extends Omit<DropObjectViewOptions,
|
|
|
45
54
|
imageAsBackground?: boolean;
|
|
46
55
|
/**
|
|
47
56
|
* Image background fill mode
|
|
57
|
+
* @examples ["fit", "fill", "stretch"]
|
|
48
58
|
*/
|
|
49
59
|
imageBackgroundFillMode?: 'fit' | 'fill' | 'stretch';
|
|
50
60
|
/**
|
|
@@ -59,7 +69,9 @@ export interface EvolutionNumberViewOptions extends Omit<DropObjectViewOptions,
|
|
|
59
69
|
*/
|
|
60
70
|
imageColor?: string;
|
|
61
71
|
/**
|
|
62
|
-
* Image content
|
|
72
|
+
* Image content. It's used when "imageMode" is "emoji" or "icon".
|
|
73
|
+
* @default ""
|
|
74
|
+
* @examples ["1f601", "1f602", "fa-dollar", "fa-bicycle"]
|
|
63
75
|
*/
|
|
64
76
|
imageContent?: string;
|
|
65
77
|
/**
|
|
@@ -96,6 +108,7 @@ export interface EvolutionNumberViewOptions extends Omit<DropObjectViewOptions,
|
|
|
96
108
|
};
|
|
97
109
|
/**
|
|
98
110
|
* Number font size
|
|
111
|
+
* @examples [58, 14, 20]
|
|
99
112
|
*/
|
|
100
113
|
numberFontSize?: number;
|
|
101
114
|
/**
|
|
@@ -109,7 +122,7 @@ export interface EvolutionNumberViewOptions extends Omit<DropObjectViewOptions,
|
|
|
109
122
|
*/
|
|
110
123
|
showSubtitle?: boolean;
|
|
111
124
|
/**
|
|
112
|
-
* Show title
|
|
125
|
+
* Show title, a value for the title is taken from a slot content's "label" option
|
|
113
126
|
* @default true
|
|
114
127
|
*/
|
|
115
128
|
showTitle?: boolean;
|
|
@@ -146,11 +159,13 @@ export interface EvolutionNumberViewOptions extends Omit<DropObjectViewOptions,
|
|
|
146
159
|
*/
|
|
147
160
|
verticalAlignment?: 'middle' | 'top' | 'bottom';
|
|
148
161
|
/**
|
|
149
|
-
* Uploaded image
|
|
162
|
+
* Uploaded image name (usually uuid), it's used when constructing a URL of an image, for example, "https://.../thumbnail/asset/512px/${uploadedImage}.png". It's used when "imageMode" is "image".
|
|
163
|
+
* @default ""
|
|
164
|
+
* @examples ["8e15ed25-bd9d-4f84-b839-8b219b97b0a2"]
|
|
150
165
|
*/
|
|
151
166
|
uploadedImage?: string;
|
|
152
167
|
}
|
|
153
|
-
interface EvolutionNumberInteractivityViewOptions extends InteractivityGoToUrlViewOptions, InteractivityExportViewOptions {
|
|
168
|
+
interface EvolutionNumberInteractivityViewOptions extends InteractivityMeasureDimensionPickerViewOptions, InteractivityCustomEventsViewOptions, InteractivityGoToUrlViewOptions, InteractivityExportViewOptions {
|
|
154
169
|
/**
|
|
155
170
|
* Interactivity options
|
|
156
171
|
*/
|
|
@@ -167,17 +182,17 @@ interface EvolutionNumberInteractivityViewOptions extends InteractivityGoToUrlVi
|
|
|
167
182
|
customEvents?: NonNullable<NonNullable<InteractivityCustomEventsViewOptions['interactivity']>['customEvents']>;
|
|
168
183
|
/**
|
|
169
184
|
* Go to URL interactivity option
|
|
170
|
-
* @default { target:
|
|
185
|
+
* @default { "target": "_blank", "url": null }
|
|
171
186
|
*/
|
|
172
187
|
urlConfig?: NonNullable<NonNullable<InteractivityGoToUrlViewOptions['interactivity']>['urlConfig']>;
|
|
173
188
|
/**
|
|
174
189
|
* Available export types interactivity option
|
|
175
|
-
* @default [
|
|
190
|
+
* @default ["xlsx", "csv", "png"]
|
|
176
191
|
*/
|
|
177
192
|
availableExportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['availableExportTypes']>;
|
|
178
193
|
/**
|
|
179
194
|
* Export types interactivity option
|
|
180
|
-
* @default [
|
|
195
|
+
* @default ["xlsx", "csv", "png"]
|
|
181
196
|
*/
|
|
182
197
|
exportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['exportTypes']>;
|
|
183
198
|
};
|
|
@@ -29,7 +29,7 @@ export interface FunnelChartViewOptions extends Omit<DropObjectViewOptions, 'dis
|
|
|
29
29
|
absValue?: boolean;
|
|
30
30
|
/**
|
|
31
31
|
* Toggle percentage
|
|
32
|
-
* @default
|
|
32
|
+
* @default "hide"
|
|
33
33
|
*/
|
|
34
34
|
perc?: 'hide' | 'ofTot' | 'ofMax';
|
|
35
35
|
};
|
|
@@ -61,14 +61,14 @@ interface FunnelChartDisplayViewOptions extends DisplayLegendViewOptions, Displa
|
|
|
61
61
|
values?: boolean;
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
interface FunnelChartInteractivityViewOptions extends InteractivityCustomEventsViewOptions, InteractivityCustomTooltipViewOptions, InteractivityDrilldownViewOptions, InteractivityExportViewOptions,
|
|
64
|
+
interface FunnelChartInteractivityViewOptions extends InteractivityCustomEventsViewOptions, InteractivityCustomTooltipViewOptions, InteractivityDrilldownViewOptions, InteractivityExportViewOptions, InteractivityFilterOnSelectViewOptions, InteractivityMeasureDimensionPickerViewOptions, InteractivityGoToUrlViewOptions {
|
|
65
65
|
/**
|
|
66
66
|
* Interactivity options
|
|
67
67
|
*/
|
|
68
68
|
interactivity?: {
|
|
69
69
|
/**
|
|
70
70
|
* Available export types interactivity option
|
|
71
|
-
* @default [
|
|
71
|
+
* @default ["xlsx", "csv", "png"]
|
|
72
72
|
*/
|
|
73
73
|
availableExportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['availableExportTypes']>;
|
|
74
74
|
/**
|
|
@@ -87,7 +87,7 @@ interface FunnelChartInteractivityViewOptions extends InteractivityCustomEventsV
|
|
|
87
87
|
drilldown?: NonNullable<NonNullable<InteractivityDrilldownViewOptions['interactivity']>['drilldown']>;
|
|
88
88
|
/**
|
|
89
89
|
* Export types interactivity option
|
|
90
|
-
* @default [
|
|
90
|
+
* @default ["xlsx", "csv", "png"]
|
|
91
91
|
*/
|
|
92
92
|
exportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['exportTypes']>;
|
|
93
93
|
/**
|
|
@@ -102,7 +102,7 @@ interface FunnelChartInteractivityViewOptions extends InteractivityCustomEventsV
|
|
|
102
102
|
select?: NonNullable<NonNullable<InteractivityFilterOnSelectViewOptions['interactivity']>['select']>;
|
|
103
103
|
/**
|
|
104
104
|
* Go to URL interactivity option
|
|
105
|
-
* @default { target:
|
|
105
|
+
* @default { "target": "_blank", "url": null }
|
|
106
106
|
*/
|
|
107
107
|
urlConfig?: NonNullable<NonNullable<InteractivityGoToUrlViewOptions['interactivity']>['urlConfig']>;
|
|
108
108
|
};
|
|
@@ -307,7 +307,7 @@ interface LineChartDisplayViewOptions extends DisplayTitleViewOptions, DisplayLe
|
|
|
307
307
|
legend?: NonNullable<NonNullable<DisplayLegendViewOptions['display']>['legend']>;
|
|
308
308
|
};
|
|
309
309
|
}
|
|
310
|
-
interface LineChartInteractivityViewOptions extends InteractivityCustomEventsViewOptions, InteractivityCustomTooltipViewOptions, InteractivityExportViewOptions, InteractivityGoToUrlViewOptions, InteractivityMeasureDimensionPickerViewOptions {
|
|
310
|
+
interface LineChartInteractivityViewOptions extends InteractivityBrushViewOptions, InteractivityCustomEventsViewOptions, InteractivityCustomTooltipViewOptions, InteractivityExportViewOptions, InteractivityGoToUrlViewOptions, InteractivityMeasureDimensionPickerViewOptions {
|
|
311
311
|
/**
|
|
312
312
|
* Interactivity options
|
|
313
313
|
*/
|
|
@@ -329,17 +329,17 @@ interface LineChartInteractivityViewOptions extends InteractivityCustomEventsVie
|
|
|
329
329
|
customTooltip?: NonNullable<NonNullable<InteractivityCustomTooltipViewOptions['interactivity']>['customTooltip']>;
|
|
330
330
|
/**
|
|
331
331
|
* Go to URL interactivity option
|
|
332
|
-
* @default { target:
|
|
332
|
+
* @default { "target": "_blank", "url": null }
|
|
333
333
|
*/
|
|
334
334
|
urlConfig?: NonNullable<NonNullable<InteractivityGoToUrlViewOptions['interactivity']>['urlConfig']>;
|
|
335
335
|
/**
|
|
336
336
|
* Available export types interactivity option
|
|
337
|
-
* @default [
|
|
337
|
+
* @default ["xlsx", "csv", "png"]
|
|
338
338
|
*/
|
|
339
339
|
availableExportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['availableExportTypes']>;
|
|
340
340
|
/**
|
|
341
341
|
* Export types interactivity option
|
|
342
|
-
* @default [
|
|
342
|
+
* @default ["xlsx", "csv", "png"]
|
|
343
343
|
*/
|
|
344
344
|
exportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['exportTypes']>;
|
|
345
345
|
/**
|
|
@@ -16,7 +16,7 @@ export interface PivotTableViewOptions extends Omit<DropObjectViewOptions, 'inte
|
|
|
16
16
|
tableBorders?: PivotTableBorders;
|
|
17
17
|
/**
|
|
18
18
|
* Measure axis labels
|
|
19
|
-
* @default
|
|
19
|
+
* @default "columns"
|
|
20
20
|
*/
|
|
21
21
|
measureLabelsAxis?: PivotTableAxis;
|
|
22
22
|
/**
|
|
@@ -42,7 +42,7 @@ export interface PivotTableViewOptions extends Omit<DropObjectViewOptions, 'inte
|
|
|
42
42
|
rowHeaders?: {
|
|
43
43
|
/**
|
|
44
44
|
* Alignment of the row header
|
|
45
|
-
* @default
|
|
45
|
+
* @default "left"
|
|
46
46
|
*/
|
|
47
47
|
align?: PivotTableTextAlign;
|
|
48
48
|
/**
|
|
@@ -57,7 +57,7 @@ export interface PivotTableViewOptions extends Omit<DropObjectViewOptions, 'inte
|
|
|
57
57
|
columnHeaders?: {
|
|
58
58
|
/**
|
|
59
59
|
* Alignment of the column header
|
|
60
|
-
* @default
|
|
60
|
+
* @default "left"
|
|
61
61
|
*/
|
|
62
62
|
align?: PivotTableTextAlign;
|
|
63
63
|
};
|
|
@@ -67,7 +67,7 @@ export interface PivotTableViewOptions extends Omit<DropObjectViewOptions, 'inte
|
|
|
67
67
|
valueCells?: {
|
|
68
68
|
/**
|
|
69
69
|
* Alignment of the value in the cell
|
|
70
|
-
* @default
|
|
70
|
+
* @default "left"
|
|
71
71
|
*/
|
|
72
72
|
align?: PivotTableTextAlign;
|
|
73
73
|
/**
|
|
@@ -113,7 +113,7 @@ interface PivotTableInteractivityViewOptions extends InteractivityCustomEventsVi
|
|
|
113
113
|
interactivity?: {
|
|
114
114
|
/**
|
|
115
115
|
* Available export types interactivity option
|
|
116
|
-
* @default [
|
|
116
|
+
* @default ["xlsx", "csv", "xlsx-raw", "csv-raw", "png"]
|
|
117
117
|
*/
|
|
118
118
|
availableExportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['availableExportTypes']>;
|
|
119
119
|
/**
|
|
@@ -128,7 +128,7 @@ interface PivotTableInteractivityViewOptions extends InteractivityCustomEventsVi
|
|
|
128
128
|
customTooltip?: NonNullable<NonNullable<InteractivityCustomTooltipViewOptions['interactivity']>['customTooltip']>;
|
|
129
129
|
/**
|
|
130
130
|
* Export types interactivity option
|
|
131
|
-
* @default [
|
|
131
|
+
* @default ["xlsx", "csv", "xlsx-raw", "csv-raw", "png"]
|
|
132
132
|
*/
|
|
133
133
|
exportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['exportTypes']>;
|
|
134
134
|
/**
|
|
@@ -143,7 +143,7 @@ interface PivotTableInteractivityViewOptions extends InteractivityCustomEventsVi
|
|
|
143
143
|
select?: NonNullable<NonNullable<InteractivityFilterOnSelectViewOptions['interactivity']>['select']>;
|
|
144
144
|
/**
|
|
145
145
|
* Go to URL interactivity option
|
|
146
|
-
* @default { target:
|
|
146
|
+
* @default { "target": "_blank", "url": null }
|
|
147
147
|
*/
|
|
148
148
|
urlConfig?: NonNullable<NonNullable<InteractivityGoToUrlViewOptions['interactivity']>['urlConfig']>;
|
|
149
149
|
};
|
|
@@ -160,7 +160,7 @@ export interface PivotTableMeasureSort {
|
|
|
160
160
|
export interface PivotTableBorders {
|
|
161
161
|
/**
|
|
162
162
|
* Type of the border
|
|
163
|
-
* @default
|
|
163
|
+
* @default "none"
|
|
164
164
|
*/
|
|
165
165
|
type: 'all' | 'rows' | 'columns' | 'none';
|
|
166
166
|
/**
|
|
@@ -170,7 +170,7 @@ export interface PivotTableBorders {
|
|
|
170
170
|
width: number;
|
|
171
171
|
/**
|
|
172
172
|
* Color of the border
|
|
173
|
-
* @default
|
|
173
|
+
* @default "#a5a5a5"
|
|
174
174
|
*/
|
|
175
175
|
color: string;
|
|
176
176
|
}
|
|
@@ -11,7 +11,7 @@ import { DisplayTitleViewOptions, TitleViewOptions } from '../shared/title';
|
|
|
11
11
|
export interface RegularTableViewOptions extends Omit<DropObjectViewOptions, 'interactivity'>, InfoTooltipViewOptions, TitleViewOptions, DisplayTitleViewOptions, LimitViewOptions, RegularTableSortViewOptions, RegularTableInteractivityViewOptions {
|
|
12
12
|
/**
|
|
13
13
|
* Border around the table
|
|
14
|
-
* @default { type:
|
|
14
|
+
* @default { "type": "none", "width": 1, "color": "#ededed" }
|
|
15
15
|
*/
|
|
16
16
|
tableBorders?: RegularTableBorders;
|
|
17
17
|
/**
|
|
@@ -46,7 +46,7 @@ export interface RegularTableViewOptions extends Omit<DropObjectViewOptions, 'in
|
|
|
46
46
|
infiniteScrolling?: boolean;
|
|
47
47
|
/**
|
|
48
48
|
* Sorting mode
|
|
49
|
-
* @default
|
|
49
|
+
* @default "multiColumn"
|
|
50
50
|
*/
|
|
51
51
|
sortingMode?: RegularTableSortingMode;
|
|
52
52
|
}
|
|
@@ -57,7 +57,7 @@ interface RegularTableInteractivityViewOptions extends InteractivityCustomEvents
|
|
|
57
57
|
interactivity?: {
|
|
58
58
|
/**
|
|
59
59
|
* Go to URL interactivity option
|
|
60
|
-
* @default { target:
|
|
60
|
+
* @default { "target": "_blank", "url": null }
|
|
61
61
|
*/
|
|
62
62
|
urlConfig?: NonNullable<NonNullable<InteractivityGoToUrlViewOptions['interactivity']>['urlConfig']>;
|
|
63
63
|
/**
|
|
@@ -72,12 +72,12 @@ interface RegularTableInteractivityViewOptions extends InteractivityCustomEvents
|
|
|
72
72
|
customEvents?: NonNullable<NonNullable<InteractivityCustomEventsViewOptions['interactivity']>['customEvents']>;
|
|
73
73
|
/**
|
|
74
74
|
* Available export types interactivity option
|
|
75
|
-
* @default [
|
|
75
|
+
* @default ["xlsx", "csv", "png"]
|
|
76
76
|
*/
|
|
77
77
|
availableExportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['availableExportTypes']>;
|
|
78
78
|
/**
|
|
79
79
|
* Export types interactivity option
|
|
80
|
-
* @default [
|
|
80
|
+
* @default ["xlsx", "csv", "png"]
|
|
81
81
|
*/
|
|
82
82
|
exportTypes?: ExportType[];
|
|
83
83
|
};
|
|
@@ -55,7 +55,7 @@ export interface SankeyDiagramViewOptions extends Omit<DropObjectViewOptions, 'i
|
|
|
55
55
|
};
|
|
56
56
|
/**
|
|
57
57
|
* Set alignment
|
|
58
|
-
* @default
|
|
58
|
+
* @default "justify"
|
|
59
59
|
*/
|
|
60
60
|
alignment?: 'justify' | 'left' | 'right' | 'center';
|
|
61
61
|
/**
|
|
@@ -68,12 +68,12 @@ export interface SankeyDiagramViewOptions extends Omit<DropObjectViewOptions, 'i
|
|
|
68
68
|
byCategory?: boolean;
|
|
69
69
|
/**
|
|
70
70
|
* Set link color: gradient, none, target or source
|
|
71
|
-
* @default
|
|
71
|
+
* @default "gradient"
|
|
72
72
|
*/
|
|
73
73
|
linkColor?: 'gradient' | 'none' | 'target' | 'source';
|
|
74
74
|
/**
|
|
75
75
|
* Set node colors
|
|
76
|
-
* @
|
|
76
|
+
* @examples ["#000000"]
|
|
77
77
|
*/
|
|
78
78
|
nodeColor?: string;
|
|
79
79
|
};
|
|
@@ -89,7 +89,7 @@ interface SankeyDiagramInteractivityViewOptions extends InteractivityCustomEvent
|
|
|
89
89
|
interactivity?: {
|
|
90
90
|
/**
|
|
91
91
|
* Go to URL interactivity option
|
|
92
|
-
* @default { target:
|
|
92
|
+
* @default { "target": "_blank", "url": null }
|
|
93
93
|
*/
|
|
94
94
|
urlConfig?: NonNullable<NonNullable<InteractivityGoToUrlViewOptions['interactivity']>['urlConfig']>;
|
|
95
95
|
/**
|
|
@@ -109,12 +109,12 @@ interface SankeyDiagramInteractivityViewOptions extends InteractivityCustomEvent
|
|
|
109
109
|
customEvents?: NonNullable<NonNullable<InteractivityCustomEventsViewOptions['interactivity']>['customEvents']>;
|
|
110
110
|
/**
|
|
111
111
|
* Available export types interactivity option
|
|
112
|
-
* @default [
|
|
112
|
+
* @default ["xlsx", "csv", "png"]
|
|
113
113
|
*/
|
|
114
114
|
availableExportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['availableExportTypes']>;
|
|
115
115
|
/**
|
|
116
116
|
* Export types interactivity option
|
|
117
|
-
* @default [
|
|
117
|
+
* @default ["xlsx", "csv", "png"]
|
|
118
118
|
*/
|
|
119
119
|
exportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['exportTypes']>;
|
|
120
120
|
};
|
|
@@ -140,12 +140,12 @@ export interface ScatterPlotViewOptions extends Omit<AxisObjectViewOptions, 'dis
|
|
|
140
140
|
manualAxesRange?: {
|
|
141
141
|
/**
|
|
142
142
|
* Manual axes range for X axis
|
|
143
|
-
* @
|
|
143
|
+
* @examples [[0, 100]]
|
|
144
144
|
*/
|
|
145
145
|
x?: ManualAxesRange;
|
|
146
146
|
/**
|
|
147
147
|
* Manual axes range for Y axis
|
|
148
|
-
* @
|
|
148
|
+
* @examples [[0, 100]]
|
|
149
149
|
*/
|
|
150
150
|
y?: ManualAxesRange;
|
|
151
151
|
};
|
|
@@ -167,14 +167,14 @@ interface ScatterPlotDisplayViewOptions extends DisplayLegendViewOptions, Displa
|
|
|
167
167
|
legend?: NonNullable<NonNullable<DisplayLegendViewOptions['display']>['legend']>;
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
|
-
interface ScatterPlotInteractivityViewOptions extends
|
|
170
|
+
interface ScatterPlotInteractivityViewOptions extends InteractivityBrushViewOptions, InteractivityCustomEventsViewOptions, InteractivityCustomTooltipViewOptions, InteractivityExportViewOptions, InteractivityGoToUrlViewOptions, InteractivityMeasureDimensionPickerViewOptions {
|
|
171
171
|
/**
|
|
172
172
|
* Interactivity options
|
|
173
173
|
*/
|
|
174
174
|
interactivity?: {
|
|
175
175
|
/**
|
|
176
176
|
* Go to URL interactivity option
|
|
177
|
-
* @default { target:
|
|
177
|
+
* @default { "target": "_blank", "url": null }
|
|
178
178
|
*/
|
|
179
179
|
urlConfig?: NonNullable<NonNullable<InteractivityGoToUrlViewOptions['interactivity']>['urlConfig']>;
|
|
180
180
|
/**
|
|
@@ -199,12 +199,12 @@ interface ScatterPlotInteractivityViewOptions extends InteractivityExportViewOpt
|
|
|
199
199
|
customEvents?: NonNullable<NonNullable<InteractivityCustomEventsViewOptions['interactivity']>['customEvents']>;
|
|
200
200
|
/**
|
|
201
201
|
* Available export types interactivity option
|
|
202
|
-
* @default [
|
|
202
|
+
* @default ["xlsx", "csv", "png"]
|
|
203
203
|
*/
|
|
204
204
|
availableExportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['availableExportTypes']>;
|
|
205
205
|
/**
|
|
206
206
|
* Export types interactivity option
|
|
207
|
-
* @default [
|
|
207
|
+
* @default ["xlsx", "csv", "png"]
|
|
208
208
|
*/
|
|
209
209
|
exportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['exportTypes']>;
|
|
210
210
|
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { InteractivityMeasureDimensionPickerViewOptions } from '../shared';
|
|
2
|
+
import { DropObjectViewOptions } from '../shared/drop-object-view-options';
|
|
3
|
+
import { InfoTooltipViewOptions } from '../shared/info-tooltip-options';
|
|
4
|
+
import { PlaceholderViewOptions } from '../shared/placeholder';
|
|
5
|
+
import { DisplayTitleViewOptions, TitleViewOptions } from '../shared/title';
|
|
6
|
+
export interface SearchFilterViewOptions extends Omit<DropObjectViewOptions, 'display' | 'interactivity'>, InfoTooltipViewOptions, TitleViewOptions, PlaceholderViewOptions, SearchFilterDisplayViewOptions, SearchFilterInteractivityViewOptions {
|
|
7
|
+
/**
|
|
8
|
+
* Whether to auto apply filters or add the apply button
|
|
9
|
+
*/
|
|
10
|
+
applyFiltersWithButton?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Update left or right padding of the Search filter
|
|
13
|
+
*/
|
|
14
|
+
padding?: {
|
|
15
|
+
/**
|
|
16
|
+
* Update left padding of the Search filter
|
|
17
|
+
*/
|
|
18
|
+
left?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Update right padding of the Search filter
|
|
21
|
+
*/
|
|
22
|
+
right?: number;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
interface SearchFilterDisplayViewOptions extends DisplayTitleViewOptions {
|
|
26
|
+
/**
|
|
27
|
+
* General display options of the Search filter: title, label, placeholder, search and clear
|
|
28
|
+
*/
|
|
29
|
+
display: {
|
|
30
|
+
/**
|
|
31
|
+
* Show or hide the title
|
|
32
|
+
*/
|
|
33
|
+
title: NonNullable<NonNullable<DisplayTitleViewOptions['display']>['title']>;
|
|
34
|
+
/**
|
|
35
|
+
* Show or hide the label of the Search filter
|
|
36
|
+
*/
|
|
37
|
+
label?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Show or hide the placeholder
|
|
40
|
+
*/
|
|
41
|
+
placeholder?: boolean;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
interface SearchFilterInteractivityViewOptions extends InteractivityMeasureDimensionPickerViewOptions {
|
|
45
|
+
/**
|
|
46
|
+
* Interactivity options
|
|
47
|
+
*/
|
|
48
|
+
interactivity?: {
|
|
49
|
+
/**
|
|
50
|
+
* An array of measure dimension picker configurations
|
|
51
|
+
* @default [[]]
|
|
52
|
+
*/
|
|
53
|
+
measureDimensionPicker?: NonNullable<NonNullable<InteractivityMeasureDimensionPickerViewOptions['interactivity']>['measureDimensionPicker']>;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DashboardContentVizItemSlot, DateTimeSlotContent, HierarchySlotContent, NumericSlotContent } from '../shared/slots';
|
|
2
|
+
/**
|
|
3
|
+
* Dimension slot definition of the search filter. Dimension slot is a required slot and it can have multiple columns.
|
|
4
|
+
*/
|
|
5
|
+
interface DimensionSlot extends DashboardContentVizItemSlot {
|
|
6
|
+
name: 'dimension';
|
|
7
|
+
/**
|
|
8
|
+
* Dimension slot definition
|
|
9
|
+
*/
|
|
10
|
+
content: (HierarchySlotContent | NumericSlotContent | DateTimeSlotContent)[];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Data definition of the Search filter
|
|
14
|
+
* @maxItems 1
|
|
15
|
+
*/
|
|
16
|
+
export type SearchFilterSlots = DimensionSlot[];
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { VizItemType } from '../shared/common';
|
|
2
|
+
import { SearchFilterViewOptions } from './search-filter-options';
|
|
3
|
+
import { SearchFilterSlots } from './search-filter-slots';
|
|
4
|
+
/**
|
|
5
|
+
* Search filter item
|
|
6
|
+
*/
|
|
7
|
+
export interface SearchFilter {
|
|
8
|
+
/**
|
|
9
|
+
* Type of the item
|
|
10
|
+
*/
|
|
11
|
+
type: Extract<VizItemType, 'search-filter'>;
|
|
12
|
+
/**
|
|
13
|
+
* Options of the search filter item
|
|
14
|
+
* @$ref ./search-filter-options.schema.json/
|
|
15
|
+
*/
|
|
16
|
+
options: SearchFilterViewOptions;
|
|
17
|
+
/**
|
|
18
|
+
* Data definition of the search filter
|
|
19
|
+
* @maxItems 1
|
|
20
|
+
* @$ref ./search-filter-slots.schema.json
|
|
21
|
+
*/
|
|
22
|
+
slots: SearchFilterSlots;
|
|
23
|
+
}
|
|
@@ -51,11 +51,11 @@ export interface GuidelineStyle {
|
|
|
51
51
|
width: string;
|
|
52
52
|
}
|
|
53
53
|
export type GuidelineLineType = 'median' | 'value' | 'average' | 'average open' | 'average close';
|
|
54
|
-
/**
|
|
55
|
-
* Null break options
|
|
56
|
-
* @default false
|
|
57
|
-
*/
|
|
58
54
|
export type NullBreakViewOptions = {
|
|
55
|
+
/**
|
|
56
|
+
* Null break options
|
|
57
|
+
* @default false
|
|
58
|
+
*/
|
|
59
59
|
nullBreak?: boolean;
|
|
60
60
|
};
|
|
61
61
|
/**
|
|
@@ -97,7 +97,7 @@ export interface RankingViewOptions {
|
|
|
97
97
|
ranking?: ItemQueryRanking;
|
|
98
98
|
}
|
|
99
99
|
export type SortDirection = OrderDirection | '';
|
|
100
|
-
export type VizItemType = 'area-chart' | 'bar-chart' | 'bubble-chart' | 'box-plot' | 'bullet-chart' | 'choropleth-map' | 'circular-gauge' | 'circle-pack-chart' | 'column-chart' | 'combination-chart' | 'date-filter' | 'donut-chart' | 'dropdown-filter' | 'dynamic-imageobject' | 'evolution-number' | 'funnel-chart' | 'heat-map' | 'heat-table' | 'hexbin-map' | 'iframeobject' | 'image' | 'line-chart' | 'line-chart-forecast' | 'marker-map' | 'conditional-number' | 'ohlc-chart' | 'parallel-coordinates-plot' | 'pivot-table' | 'pyramid-chart' | 'radar-chart' | 'regular-table' | 'route-map' | 'sankey-diagram' | 'scatter-plot' | 'slicer-filter' | 'slider-filter' | 'spacer' | 'speedometer-chart' | 'spike-map' | 'strip-plot' | 'sunburst-chart' | 'symbol-map' | 'text' | 'treemap-chart' | 'venn-diagram' | 'video' | 'wordcloud-chart';
|
|
100
|
+
export type VizItemType = 'area-chart' | 'bar-chart' | 'bubble-chart' | 'box-plot' | 'bullet-chart' | 'choropleth-map' | 'circular-gauge' | 'circle-pack-chart' | 'column-chart' | 'combination-chart' | 'date-filter' | 'donut-chart' | 'dropdown-filter' | 'dynamic-imageobject' | 'evolution-number' | 'funnel-chart' | 'heat-map' | 'heat-table' | 'hexbin-map' | 'iframeobject' | 'image' | 'line-chart' | 'line-chart-forecast' | 'marker-map' | 'conditional-number' | 'ohlc-chart' | 'parallel-coordinates-plot' | 'pivot-table' | 'pyramid-chart' | 'radar-chart' | 'regular-table' | 'route-map' | 'sankey-diagram' | 'scatter-plot' | 'search-filter' | 'slicer-filter' | 'slider-filter' | 'spacer' | 'speedometer-chart' | 'spike-map' | 'strip-plot' | 'sunburst-chart' | 'symbol-map' | 'text' | 'treemap-chart' | 'venn-diagram' | 'video' | 'wordcloud-chart';
|
|
101
101
|
export type ItemType = VizItemType;
|
|
102
102
|
export type DatetimeDisplayMode = 'default' | 'weekday_number' | 'weekday_name' | 'day_in_month' | 'day_in_year' | 'month_name' | 'month_number' | 'week_number' | 'second_in_minute' | 'minute_in_hour' | 'hour_in_day' | 'quarter_number';
|
|
103
103
|
export type ScreenMode = 'desktop' | 'tablet' | 'mobile' | 'largeScreen' | 'fixed';
|
|
@@ -2,6 +2,8 @@ import { ObjectViewOptions } from './object-view-options';
|
|
|
2
2
|
export interface DropObjectViewOptions extends ObjectViewOptions {
|
|
3
3
|
/**
|
|
4
4
|
* The main color for the item, if omitted the default color from the theme will be used.
|
|
5
|
+
* @examples ["#FF5733", "#33FF57", "#5733FF"]
|
|
6
|
+
* @default ""
|
|
5
7
|
*/
|
|
6
8
|
color?: string;
|
|
7
9
|
/**
|
|
@@ -12,12 +12,12 @@ export interface InteractivityExportViewOptions {
|
|
|
12
12
|
interactivity?: {
|
|
13
13
|
/**
|
|
14
14
|
* Available export types interactivity option
|
|
15
|
-
* @default [
|
|
15
|
+
* @default ["xlsx", "csv", "png"]
|
|
16
16
|
*/
|
|
17
17
|
availableExportTypes?: ExportType[];
|
|
18
18
|
/**
|
|
19
19
|
* Export types interactivity option
|
|
20
|
-
* @default [
|
|
20
|
+
* @default ["xlsx", "csv", "png"]
|
|
21
21
|
*/
|
|
22
22
|
exportTypes?: ExportType[];
|
|
23
23
|
};
|
|
@@ -34,7 +34,7 @@ export interface ThemeConfig {
|
|
|
34
34
|
name?: string;
|
|
35
35
|
/**
|
|
36
36
|
* Background color
|
|
37
|
-
* @examples ["
|
|
37
|
+
* @examples ["rgb(245, 245, 245)", "rgb(61, 61, 61)"]
|
|
38
38
|
*/
|
|
39
39
|
background?: DarkOrLightTheme | string;
|
|
40
40
|
/**
|
|
@@ -260,6 +260,10 @@ export interface ThemeConfig {
|
|
|
260
260
|
* @TJS-ignore
|
|
261
261
|
*/
|
|
262
262
|
editDarkOrLight?: 'dark-edit' | 'light-edit';
|
|
263
|
+
/**
|
|
264
|
+
* Base font size, usually it participates in calculations related to font sizes, spacings, etc.
|
|
265
|
+
* @examples [13, 16, 20]
|
|
266
|
+
*/
|
|
263
267
|
baseFontSize?: number;
|
|
264
268
|
}
|
|
265
269
|
export interface ThemeViewOptions {
|
|
@@ -17,7 +17,7 @@ export interface SlicerFilterViewOptions extends Omit<DropObjectViewOptions, 'di
|
|
|
17
17
|
rankbar?: {
|
|
18
18
|
/**
|
|
19
19
|
* Rank Bar position
|
|
20
|
-
* @default
|
|
20
|
+
* @default "bottom"
|
|
21
21
|
*/
|
|
22
22
|
position?: 'bottom' | 'background';
|
|
23
23
|
/**
|
|
@@ -37,7 +37,7 @@ export interface SlicerFilterViewOptions extends Omit<DropObjectViewOptions, 'di
|
|
|
37
37
|
range?: {
|
|
38
38
|
/**
|
|
39
39
|
* Range type
|
|
40
|
-
* @default
|
|
40
|
+
* @default "default"
|
|
41
41
|
*/
|
|
42
42
|
type?: 'default' | 'manual';
|
|
43
43
|
};
|
|
@@ -52,7 +52,7 @@ export interface SlicerFilterViewOptions extends Omit<DropObjectViewOptions, 'di
|
|
|
52
52
|
style?: boolean;
|
|
53
53
|
/**
|
|
54
54
|
* Measure color
|
|
55
|
-
* @default
|
|
55
|
+
* @default "#5A5A5A"
|
|
56
56
|
*/
|
|
57
57
|
color?: string;
|
|
58
58
|
/**
|
|
@@ -73,7 +73,7 @@ export interface SlicerFilterViewOptions extends Omit<DropObjectViewOptions, 'di
|
|
|
73
73
|
applyFiltersWithButton?: boolean;
|
|
74
74
|
/**
|
|
75
75
|
* Mode
|
|
76
|
-
* @default
|
|
76
|
+
* @default "check"
|
|
77
77
|
*/
|
|
78
78
|
mode?: 'check' | 'button';
|
|
79
79
|
/**
|
|
@@ -107,7 +107,7 @@ export interface SlicerFilterViewOptions extends Omit<DropObjectViewOptions, 'di
|
|
|
107
107
|
layout?: {
|
|
108
108
|
/**
|
|
109
109
|
* Layout alignment
|
|
110
|
-
* @default
|
|
110
|
+
* @default "vertical"
|
|
111
111
|
*/
|
|
112
112
|
alignment?: 'vertical' | 'horizontal' | 'table' | 'rank-vertical';
|
|
113
113
|
};
|
|
@@ -147,7 +147,7 @@ export interface SlicerFilterViewOptions extends Omit<DropObjectViewOptions, 'di
|
|
|
147
147
|
caseSensitive?: boolean;
|
|
148
148
|
/**
|
|
149
149
|
* Keyphrase
|
|
150
|
-
* @default
|
|
150
|
+
* @default ""
|
|
151
151
|
* @TJS-ignore
|
|
152
152
|
*/
|
|
153
153
|
keyphrase?: string;
|
|
@@ -164,7 +164,7 @@ export interface SlicerFilterViewOptions extends Omit<DropObjectViewOptions, 'di
|
|
|
164
164
|
manualMeasureRange?: number[];
|
|
165
165
|
/**
|
|
166
166
|
* Start with subtype
|
|
167
|
-
* @default
|
|
167
|
+
* @default "vertical"
|
|
168
168
|
* @TJS-ignore
|
|
169
169
|
*/
|
|
170
170
|
startWithSubType?: SlicerSubtype;
|
|
@@ -3,3 +3,5 @@ export type { LoadEvent, ChangedFiltersEvent, CustomEvent, ItemsRenderedEvent, E
|
|
|
3
3
|
export { selectedDataUtils } from '@luzmo/shared-embed';
|
|
4
4
|
export * from './lib/dashboard-component/dashboard-component';
|
|
5
5
|
export * from './lib/viz-item/viz-item-component';
|
|
6
|
+
export * from './lib/ai-component/luzmo-ai-chat';
|
|
7
|
+
export * from './lib/ai-component/luzmo-ai-answer';
|