@luzmo/embed 6.1.0-beta.7 → 6.1.1

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.
Files changed (35) hide show
  1. package/CHANGELOG.md +149 -2
  2. package/README.md +2 -2
  3. package/index.cjs +2332 -1703
  4. package/index.d.ts +1 -1
  5. package/index.js +2342 -1718
  6. package/lib/viz-item/viz-item.base.d.ts +1 -1
  7. package/libs/dashboard-contents-types/index.d.ts +1 -1
  8. package/libs/dashboard-contents-types/json-schemas.d.ts +42178 -1
  9. package/libs/dashboard-contents-types/src/lib/area-chart/area-chart-options.d.ts +4 -4
  10. package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart-options.d.ts +8 -8
  11. package/libs/dashboard-contents-types/src/lib/box-plot/box-plot-options.d.ts +3 -3
  12. package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart-options.d.ts +3 -3
  13. package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart-options.d.ts +5 -5
  14. package/libs/dashboard-contents-types/src/lib/choropleth-map/choropleth-map-options.d.ts +9 -9
  15. package/libs/dashboard-contents-types/src/lib/circular-gauge/circular-gauge-options.d.ts +6 -6
  16. package/libs/dashboard-contents-types/src/lib/column-chart/column-chart-options.d.ts +8 -8
  17. package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart-options.d.ts +4 -4
  18. package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number-options.d.ts +6 -6
  19. package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart-options.d.ts +4 -4
  20. package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number-options.d.ts +23 -8
  21. package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart-options.d.ts +4 -4
  22. package/libs/dashboard-contents-types/src/lib/line-chart/line-chart-options.d.ts +3 -3
  23. package/libs/dashboard-contents-types/src/lib/pivot-table/pivot-table-options.d.ts +9 -9
  24. package/libs/dashboard-contents-types/src/lib/regular-table/regular-table-options.d.ts +5 -5
  25. package/libs/dashboard-contents-types/src/lib/sankey-diagram/sankey-diagram-options.d.ts +6 -6
  26. package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot-options.d.ts +5 -5
  27. package/libs/dashboard-contents-types/src/lib/shared/common.d.ts +4 -4
  28. package/libs/dashboard-contents-types/src/lib/shared/drop-object-view-options.d.ts +2 -0
  29. package/libs/dashboard-contents-types/src/lib/shared/interactivity-export.d.ts +2 -2
  30. package/libs/dashboard-contents-types/src/lib/shared/theme.d.ts +5 -1
  31. package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter-options.d.ts +7 -7
  32. package/libs/embed-libs/embed/src/index.d.ts +1 -1
  33. package/libs/embed-libs/embed/src/lib/viz-item/viz-item.base.d.ts +1 -1
  34. package/luzmo-embed.min.js +6682 -6416
  35. package/package.json +3 -3
@@ -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: '_blank', url: null }
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 ['xlsx', 'csv', 'png']
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 ['xlsx', 'csv', 'png']
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 'columns'
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 'left'
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 'left'
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 'left'
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 ['xlsx', 'csv', 'xlsx-raw', 'csv-raw', 'png']
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 ['xlsx', 'csv', 'xlsx-raw', 'csv-raw', 'png']
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: '_blank', url: null }
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 'none'
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 '#a5a5a5'
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: 'none', width: 1, color: '#ededed' }
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 'multiColumn'
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: '_blank', url: null }
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 ['xlsx', 'csv', 'png']
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 ['xlsx', 'csv', 'png']
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 'justify'
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 'gradient'
71
+ * @default "gradient"
72
72
  */
73
73
  linkColor?: 'gradient' | 'none' | 'target' | 'source';
74
74
  /**
75
75
  * Set node colors
76
- * @example #000000
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: '_blank', url: null }
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 ['xlsx', 'csv', 'png']
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 ['xlsx', 'csv', 'png']
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
- * @example [0, 100]
143
+ * @examples [[0, 100]]
144
144
  */
145
145
  x?: ManualAxesRange;
146
146
  /**
147
147
  * Manual axes range for Y axis
148
- * @example [0, 100]
148
+ * @examples [[0, 100]]
149
149
  */
150
150
  y?: ManualAxesRange;
151
151
  };
@@ -174,7 +174,7 @@ interface ScatterPlotInteractivityViewOptions extends InteractivityExportViewOpt
174
174
  interactivity?: {
175
175
  /**
176
176
  * Go to URL interactivity option
177
- * @default { target: '_blank', url: null }
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 ['xlsx', 'csv', 'png']
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 ['xlsx', 'csv', 'png']
207
+ * @default ["xlsx", "csv", "png"]
208
208
  */
209
209
  exportTypes?: NonNullable<NonNullable<InteractivityExportViewOptions['interactivity']>['exportTypes']>;
210
210
  };
@@ -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
  /**
@@ -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 ['xlsx', 'csv', 'png']
15
+ * @default ["xlsx", "csv", "png"]
16
16
  */
17
17
  availableExportTypes?: ExportType[];
18
18
  /**
19
19
  * Export types interactivity option
20
- * @default ['xlsx', 'csv', 'png']
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 ["dark", "light", "rgb(245, 245, 245)", "rgb(61, 61, 61)"]
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 'bottom'
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 '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 '#5A5A5A'
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 'check'
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 'vertical'
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 'vertical'
167
+ * @default "vertical"
168
168
  * @TJS-ignore
169
169
  */
170
170
  startWithSubType?: SlicerSubtype;
@@ -1,4 +1,4 @@
1
- export type * from '@luzmo/dashboard-contents-types';
1
+ export * from '@luzmo/dashboard-contents-types';
2
2
  export type { LoadEvent, ChangedFiltersEvent, CustomEvent, ItemsRenderedEvent, ExportedEvent, DashboardActionEvent, SelectedDataInput, ExportType, ItemData, ExportDashboard, AccessibleDashboard, SetEditMode, SetSelectedData, VizItemOptions, VizItemPostMessageLoadEvent, VizItemPostMessageRenderedEvent, VizItemPostMessageExportedEvent, VizItemPostMessageChangedFiltersEvent, VizItemPostMessageCustomEventEvent } from '@luzmo/shared-embed';
3
3
  export { selectedDataUtils } from '@luzmo/shared-embed';
4
4
  export * from './lib/dashboard-component/dashboard-component';
@@ -9,7 +9,7 @@ import type { VizItemType, VizItemSlots, FilterGroup } from '@luzmo/dashboard-co
9
9
  * together with this dashboard contents version are passed to the dashboard app (https://app.luzmo.com/dashboard-app/remoteEntry.mjs)
10
10
  * and if needed the migration will be applied on the dashboard app level.
11
11
  */
12
- export declare const dashboardContentsVersion = "0.1.88";
12
+ export declare const dashboardContentsVersion = "0.1.89";
13
13
  type FunctionCall = [(...args: any) => any, any[]];
14
14
  interface LuzmoVizItemComponentInterface extends HTMLElement {
15
15
  options?: SharedLib.VizItemOptions;