@luzmo/embed 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +209 -0
- package/index.cjs +1 -0
- package/index.js +1 -0
- package/luzmo-embed.min.js +2 -0
- package/luzmo-embed.min.js.map +1 -0
- package/package.json +30 -0
- package/src/index.d.ts +2 -0
- package/src/lib/dashboard-component/dashboard-component.d.ts +81 -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/models/filters.model.d.ts +6 -0
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@luzmo/embed",
|
|
3
|
+
"version": "5.0.0",
|
|
4
|
+
"dependencies": {
|
|
5
|
+
"lit": "2.7.5",
|
|
6
|
+
"@luzmo/shared-embed": "5.0.0"
|
|
7
|
+
},
|
|
8
|
+
"keywords": [
|
|
9
|
+
"es6",
|
|
10
|
+
"web-component",
|
|
11
|
+
"lit",
|
|
12
|
+
"web-component-luzmo",
|
|
13
|
+
"luzmo",
|
|
14
|
+
"front-end",
|
|
15
|
+
"development",
|
|
16
|
+
"dashboard",
|
|
17
|
+
"visualization",
|
|
18
|
+
"chart",
|
|
19
|
+
"cumul.io",
|
|
20
|
+
"component"
|
|
21
|
+
],
|
|
22
|
+
"module": "./index.js",
|
|
23
|
+
"main": "./index.cjs",
|
|
24
|
+
"type": "module",
|
|
25
|
+
"types": "./src/index.d.ts",
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"core-js": "3.26.1",
|
|
28
|
+
"regenerator-runtime": "0.13.11"
|
|
29
|
+
}
|
|
30
|
+
}
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './lib/dashboard-component/dashboard-component';
|
|
2
|
+
export { LoadEvent, ChangedFiltersEvent, CustomEvent, ItemsRenderedEvent, ExportedEvent, DashboardActionEvent, Filter, FilterExpression, FilterOrigin, FilterInput, FilterGroup, ExportType, ItemData, ExportDashboard, AccessibleDashboard, SetEditMode, } from '@luzmo/shared-embed';
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import * as SharedLib from '@luzmo/shared-embed';
|
|
2
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
3
|
+
export declare class LuzmoDashboard extends LitElement implements SharedLib.ES6LuzmoDashboard {
|
|
4
|
+
container: HTMLElement;
|
|
5
|
+
iframe: HTMLIFrameElement;
|
|
6
|
+
dashboardId?: SharedLib.DashboardInputs['dashboardId'];
|
|
7
|
+
dashboardSlug?: SharedLib.DashboardInputs['dashboardSlug'];
|
|
8
|
+
itemId?: SharedLib.DashboardInputs['itemId'];
|
|
9
|
+
language: SharedLib.DashboardInputs['language'];
|
|
10
|
+
qeVersion: SharedLib.DashboardInputs['qeVersion'];
|
|
11
|
+
screenMode: SharedLib.DashboardInputs['screenMode'];
|
|
12
|
+
switchScreenModeOnResize: boolean;
|
|
13
|
+
editMode: SharedLib.DashboardInputs['editMode'];
|
|
14
|
+
mainColor?: SharedLib.DashboardInputs['mainColor'];
|
|
15
|
+
accentColor?: SharedLib.DashboardInputs['accentColor'];
|
|
16
|
+
authToken?: SharedLib.DashboardInputs['authToken'];
|
|
17
|
+
authKey?: SharedLib.DashboardInputs['authKey'];
|
|
18
|
+
loaderBackground?: SharedLib.DashboardInputs['loaderBackground'];
|
|
19
|
+
loaderFontColor?: SharedLib.DashboardInputs['loaderFontColor'];
|
|
20
|
+
loaderSpinnerColor?: SharedLib.DashboardInputs['loaderSpinnerColor'];
|
|
21
|
+
loaderSpinnerBackground?: SharedLib.DashboardInputs['loaderSpinnerBackground'];
|
|
22
|
+
appServer?: SharedLib.DashboardInputs['appServer'];
|
|
23
|
+
timezoneId?: SharedLib.DashboardInputs['timezoneId'];
|
|
24
|
+
apiHost?: SharedLib.DashboardInputs['apiHost'];
|
|
25
|
+
itemDimensions: SharedLib.DashboardInputs['itemDimensions'];
|
|
26
|
+
_containerId: string;
|
|
27
|
+
_iframeId: string;
|
|
28
|
+
params: SharedLib.DashboardContentParams;
|
|
29
|
+
_iframeUrl?: string;
|
|
30
|
+
iframeLoaded: boolean;
|
|
31
|
+
promises: SharedLib.DashboardPromises;
|
|
32
|
+
iframeStyle: SharedLib.IframeStyles;
|
|
33
|
+
_containerStyle: SharedLib.ContainerStyles;
|
|
34
|
+
_loaderStyle: SharedLib.LoaderStyles;
|
|
35
|
+
_lcStyle: SharedLib.LcStyles;
|
|
36
|
+
_loadingCircleStyle: SharedLib.PlStyles;
|
|
37
|
+
_containerLoaderStyle: SharedLib.ContainerLoaderStyles;
|
|
38
|
+
_loaderMsg: string;
|
|
39
|
+
containerWidth?: number;
|
|
40
|
+
dimensions?: SharedLib.DashboardDimensions;
|
|
41
|
+
currentScreenMode?: SharedLib.ScreenMode;
|
|
42
|
+
_itemEmbedding: boolean;
|
|
43
|
+
browserError: boolean;
|
|
44
|
+
browserErrorMsg: string;
|
|
45
|
+
dashboardError: boolean;
|
|
46
|
+
browserNotSupported: any[];
|
|
47
|
+
VERSION: string;
|
|
48
|
+
_loadTimeoutHandle?: number;
|
|
49
|
+
_onResize: () => void;
|
|
50
|
+
loaderSize: number;
|
|
51
|
+
borderWidth: number;
|
|
52
|
+
minHeight: number;
|
|
53
|
+
iframeHeight?: string;
|
|
54
|
+
iframeWidth?: string;
|
|
55
|
+
_resizeObserver: ResizeObserver;
|
|
56
|
+
constructor(inputParameters?: Record<keyof LuzmoDashboard, any>);
|
|
57
|
+
private setInputParameters;
|
|
58
|
+
connectedCallback(): void;
|
|
59
|
+
disconnectedCallback(): void;
|
|
60
|
+
firstUpdated(): void;
|
|
61
|
+
updated(changedProperties: PropertyValues): void;
|
|
62
|
+
_setOptions(): SharedLib.DashboardContentParams;
|
|
63
|
+
_updateIframeUrl(): void;
|
|
64
|
+
_setupLoader(): void;
|
|
65
|
+
_displayError(): void;
|
|
66
|
+
_calculateDimAfterDashboardLoaded(): void;
|
|
67
|
+
_loaderStyles(): void;
|
|
68
|
+
static get styles(): import("lit").CSSResult[];
|
|
69
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
70
|
+
getDashboards(): Promise<LuzmoDashboard[]>;
|
|
71
|
+
getData(itemId: string): Promise<SharedLib.ItemData>;
|
|
72
|
+
getFilters(): Promise<SharedLib.FilterGroup[]>;
|
|
73
|
+
setFilters(itemId: string, filters: SharedLib.FilterInput): Promise<SharedLib.SetFilters>;
|
|
74
|
+
setAuthorization(key: string, token: string): Promise<void>;
|
|
75
|
+
refreshData(itemId?: string): Promise<void>;
|
|
76
|
+
reloadDashboard(): Promise<void>;
|
|
77
|
+
exportDashboard(format?: SharedLib.ExportType): Promise<SharedLib.ExportDashboard>;
|
|
78
|
+
getAccessibleDashboards(): Promise<SharedLib.AccessibleDashboard[]>;
|
|
79
|
+
setEditMode(editMode?: SharedLib.DashboardEditMode): Promise<SharedLib.SetEditMode>;
|
|
80
|
+
setPreview(preview: boolean): Promise<SharedLib.SetPreview>;
|
|
81
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dashboardStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const _setEventHandler: () => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type FilterExpressionType = '? = ?' | '? != ?' | '? in ?' | '? not in ?' | '? like ?' | '? not like ?' | '? < ?' | '? <= ?' | '? > ?' | '? >= ?' | '? starts with ?' | '? not starts with ?' | '? ends with ?' | '? not ends with ?' | 'last_now' | 'last_available' | 'last_completed' | 'to_date' | 'WTD' | 'MTD' | 'QTD' | 'YTD' | '? within ?' | '? is null' | '? is not null';
|
|
2
|
+
export interface FilterInterface {
|
|
3
|
+
expression: FilterExpressionType;
|
|
4
|
+
parameters?: any;
|
|
5
|
+
properties?: any;
|
|
6
|
+
}
|