@luzmo/embed 6.1.0-beta.2 → 6.1.0-beta.4
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/index.cjs +1 -826
- package/index.d.ts +1 -1
- package/index.js +1 -826
- package/lib/viz-item/viz-item.base.d.ts +3 -3
- package/libs/dashboard-contents-types/src/lib/shared/common.d.ts +2 -1
- package/libs/dashboard-contents-types/src/lib/shared/item-filter-group.d.ts +3 -3
- package/libs/dashboard-contents-types/src/lib/shared/sort.d.ts +1 -1
- package/libs/dashboard-contents-types/src/lib/slicer-filter/slicer-filter-options.d.ts +1 -1
- package/libs/dashboard-contents-types/src/options.d.ts +0 -1
- package/libs/embed-libs/embed/src/index.d.ts +1 -1
- package/libs/embed-libs/embed/src/lib/viz-item/viz-item.base.d.ts +3 -3
- package/libs/embed-libs/shared-embed/src/lib/models/viz-item-post-message.model.d.ts +2 -1
- package/libs/embed-libs/shared-embed/src/lib/models/viz-item.model.d.ts +18 -0
- package/luzmo-embed.min.js +1 -826
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement, PropertyValues } from 'lit';
|
|
2
2
|
import * as SharedLib from '@luzmo/shared-embed';
|
|
3
|
-
import type {
|
|
3
|
+
import type { VizItemType, VizItemSlots, FilterGroup } from '@luzmo/dashboard-contents-types';
|
|
4
4
|
/**
|
|
5
5
|
* The version of the dashboard contents that is linked to the current library.
|
|
6
6
|
*
|
|
@@ -12,7 +12,7 @@ import type { VizItemOptions, VizItemType, VizItemSlots, FilterGroup } from '@lu
|
|
|
12
12
|
export declare const dashboardContentsVersion = "0.1.88";
|
|
13
13
|
type FunctionCall = [(...args: any) => any, any[]];
|
|
14
14
|
export interface LuzmoVizItemComponentInterface extends HTMLElement {
|
|
15
|
-
options?: VizItemOptions;
|
|
15
|
+
options?: SharedLib.VizItemOptions;
|
|
16
16
|
type?: VizItemType;
|
|
17
17
|
appServer?: string;
|
|
18
18
|
apiHost?: string;
|
|
@@ -35,7 +35,7 @@ export declare class LuzmoBaseVizItem extends LitElement implements LuzmoVizItem
|
|
|
35
35
|
appServer?: string;
|
|
36
36
|
apiHost?: string;
|
|
37
37
|
slots?: VizItemSlots;
|
|
38
|
-
options?: VizItemOptions;
|
|
38
|
+
options?: SharedLib.VizItemOptions;
|
|
39
39
|
type?: VizItemType;
|
|
40
40
|
authKey?: string;
|
|
41
41
|
authToken?: string;
|
|
@@ -94,9 +94,10 @@ export interface LimitViewOptions {
|
|
|
94
94
|
* Ranking options
|
|
95
95
|
*/
|
|
96
96
|
export interface RankingViewOptions {
|
|
97
|
-
ranking
|
|
97
|
+
ranking?: ItemQueryRanking;
|
|
98
98
|
}
|
|
99
99
|
export type SortDirection = OrderDirection | '';
|
|
100
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';
|
|
101
|
+
export type ItemType = VizItemType;
|
|
101
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';
|
|
102
103
|
export type ScreenMode = 'desktop' | 'tablet' | 'mobile' | 'largeScreen' | 'fixed';
|
|
@@ -74,7 +74,7 @@ export interface ItemFilterGroup {
|
|
|
74
74
|
*
|
|
75
75
|
* @format uuid
|
|
76
76
|
*/
|
|
77
|
-
id
|
|
77
|
+
id?: string;
|
|
78
78
|
/**
|
|
79
79
|
* "or" or "and" condition.
|
|
80
80
|
*/
|
|
@@ -86,11 +86,11 @@ export interface ItemFilterGroup {
|
|
|
86
86
|
/**
|
|
87
87
|
* Item filter subgroups. Has the same structure as filter group.
|
|
88
88
|
*/
|
|
89
|
-
subGroups
|
|
89
|
+
subGroups?: ItemFilterGroup[];
|
|
90
90
|
/**
|
|
91
91
|
* Value specifies the origin, for example, "itemFilter" or "global".
|
|
92
92
|
*/
|
|
93
|
-
origin
|
|
93
|
+
origin?: ItemFilterOrigin;
|
|
94
94
|
/**
|
|
95
95
|
* Stores single dataset id for whole FilterGroup if origin is 'global'.
|
|
96
96
|
*
|
|
@@ -23,4 +23,3 @@ import { SlicerFilterViewOptions } from './lib/slicer-filter';
|
|
|
23
23
|
import { SliderFilterViewOptions } from './lib/slider-filter';
|
|
24
24
|
import { TextViewOptions } from './lib/text';
|
|
25
25
|
export type Options = AreaChartViewOptions | BarChartViewOptions | BoxPlotViewOptions | BubbleChartViewOptions | BulletChartViewOptions | ChoroplethMapViewOptions | CircularGaugeViewOptions | ColumnChartViewOptions | CombinationChartViewOptions | ConditionalNumberViewOptions | DateFilterViewOptions | DonutChartViewOptions | DropdownFilterViewOptions | EvolutionNumberViewOptions | FunnelChartViewOptions | ImageViewOptions | LineChartViewOptions | PivotTableViewOptions | RegularTableViewOptions | SankeyDiagramViewOptions | ScatterPlotViewOptions | SlicerFilterViewOptions | SliderFilterViewOptions | TextViewOptions;
|
|
26
|
-
export type VizItemOptions = Options;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type * from '@luzmo/dashboard-contents-types';
|
|
2
|
-
export type { LoadEvent, ChangedFiltersEvent, CustomEvent, ItemsRenderedEvent, ExportedEvent, DashboardActionEvent, SelectedDataInput, ExportType, ItemData, ExportDashboard, AccessibleDashboard, SetEditMode, SetSelectedData, VizItemPostMessageLoadEvent, VizItemPostMessageRenderedEvent, VizItemPostMessageExportedEvent, VizItemPostMessageChangedFiltersEvent, VizItemPostMessageCustomEventEvent } from '@luzmo/shared-embed';
|
|
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';
|
|
5
5
|
export * from './lib/viz-item/viz-item-component';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement, PropertyValues } from 'lit';
|
|
2
2
|
import * as SharedLib from '@luzmo/shared-embed';
|
|
3
|
-
import type {
|
|
3
|
+
import type { VizItemType, VizItemSlots, FilterGroup } from '@luzmo/dashboard-contents-types';
|
|
4
4
|
/**
|
|
5
5
|
* The version of the dashboard contents that is linked to the current library.
|
|
6
6
|
*
|
|
@@ -12,7 +12,7 @@ import type { VizItemOptions, VizItemType, VizItemSlots, FilterGroup } from '@lu
|
|
|
12
12
|
export declare const dashboardContentsVersion = "0.1.88";
|
|
13
13
|
type FunctionCall = [(...args: any) => any, any[]];
|
|
14
14
|
export interface LuzmoVizItemComponentInterface extends HTMLElement {
|
|
15
|
-
options?: VizItemOptions;
|
|
15
|
+
options?: SharedLib.VizItemOptions;
|
|
16
16
|
type?: VizItemType;
|
|
17
17
|
appServer?: string;
|
|
18
18
|
apiHost?: string;
|
|
@@ -35,7 +35,7 @@ export declare class LuzmoBaseVizItem extends LitElement implements LuzmoVizItem
|
|
|
35
35
|
appServer?: string;
|
|
36
36
|
apiHost?: string;
|
|
37
37
|
slots?: VizItemSlots;
|
|
38
|
-
options?: VizItemOptions;
|
|
38
|
+
options?: SharedLib.VizItemOptions;
|
|
39
39
|
type?: VizItemType;
|
|
40
40
|
authKey?: string;
|
|
41
41
|
authToken?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FilterGroup, FilterOrigin } from '@luzmo/dashboard-contents-types';
|
|
2
2
|
import { ExportType } from '../methods/export-dashboard';
|
|
3
|
+
import { VizItemOptions } from './viz-item.model';
|
|
3
4
|
type VizItemPostMessageMetadata = {
|
|
4
5
|
dashboardId?: string;
|
|
5
6
|
itemId?: string;
|
|
@@ -1,4 +1,22 @@
|
|
|
1
|
+
import type { Options, ThemeConfig } from '@luzmo/dashboard-contents-types';
|
|
1
2
|
export declare const libraryTypeToWebComponentTypeMapping: Record<string, string>;
|
|
2
3
|
export declare const libraryAcceptedParametersList: string[];
|
|
3
4
|
export type CanFilter = string[] | 'all';
|
|
4
5
|
export type VizItemCanFilter = CanFilter;
|
|
6
|
+
type ChartLoader = {
|
|
7
|
+
background: string;
|
|
8
|
+
fontColor: string;
|
|
9
|
+
locale: string;
|
|
10
|
+
mode: string;
|
|
11
|
+
msg: string;
|
|
12
|
+
spinnerBackground: string;
|
|
13
|
+
spinnerColor: string;
|
|
14
|
+
showBranded: boolean;
|
|
15
|
+
};
|
|
16
|
+
export type VizItemOptions = Options & {
|
|
17
|
+
theme?: string | ThemeConfig;
|
|
18
|
+
locale?: string;
|
|
19
|
+
loader?: ChartLoader;
|
|
20
|
+
timezoneId?: string;
|
|
21
|
+
};
|
|
22
|
+
export {};
|