@luzmo/embed 6.1.2-beta.3 → 6.1.3
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 +7 -0
- package/index.cjs +3324 -1426
- package/index.d.ts +1 -3
- package/index.js +3324 -1424
- package/lib/viz-item/viz-item.base.d.ts +0 -1
- package/libs/dashboard-contents-types/json-schemas.d.ts +2493 -648
- package/libs/dashboard-contents-types/src/lib/shared/item-filter-group.d.ts +54 -2
- package/libs/dashboard-contents-types/src/lib/shared/slots.d.ts +58 -2
- package/libs/embed-libs/embed/src/index.d.ts +1 -3
- package/libs/embed-libs/embed/src/lib/viz-item/viz-item.base.d.ts +0 -1
- package/libs/embed-libs/shared-embed/src/index.common.d.ts +0 -1
- package/libs/embed-libs/shared-embed/src/lib/helpers/remote-federation.d.ts +1 -1
- package/luzmo-embed.min.js +3057 -7901
- package/package.json +3 -5
- package/lib/ai-component/luzmo-ai-answer.d.ts +0 -23
- package/lib/ai-component/luzmo-ai-chat.d.ts +0 -24
- package/libs/embed-libs/embed/src/lib/ai-component/luzmo-ai-answer.d.ts +0 -23
- package/libs/embed-libs/embed/src/lib/ai-component/luzmo-ai-chat.d.ts +0 -24
- package/libs/embed-libs/shared-embed/src/lib/models/ai-components.model.d.ts +0 -135
- package/src/index.d.ts +0 -7
- package/src/lib/ai-component/luzmo-ai-answer.d.ts +0 -23
- package/src/lib/ai-component/luzmo-ai-chat.d.ts +0 -24
- package/src/lib/dashboard-component/dashboard-base.d.ts +0 -98
- package/src/lib/dashboard-component/dashboard-component.d.ts +0 -8
- package/src/lib/dashboard-component/dashboard-styles.d.ts +0 -1
- package/src/lib/helper/event-bus-handler.d.ts +0 -1
- package/src/lib/luzmo-service.d.ts +0 -6
- package/src/lib/viz-item/viz-item-component.d.ts +0 -4
- package/src/lib/viz-item/viz-item.base.d.ts +0 -73
package/package.json
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luzmo/embed",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.3",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"lit": "3.1.2",
|
|
6
|
-
"@luzmo/shared-embed": "5.1.2
|
|
7
|
-
"@luzmo/dashboard-contents-types": "0.
|
|
8
|
-
"ajv": "^8.17.1",
|
|
9
|
-
"ajv-formats": "^3.0.1"
|
|
6
|
+
"@luzmo/shared-embed": "5.1.2",
|
|
7
|
+
"@luzmo/dashboard-contents-types": "1.0.0"
|
|
10
8
|
},
|
|
11
9
|
"type": "module",
|
|
12
10
|
"keywords": [
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
-
import * as SharedLib from '@luzmo/shared-embed';
|
|
3
|
-
export declare class LuzmoEmbedAIAnswerComponent extends LitElement {
|
|
4
|
-
appServer?: string;
|
|
5
|
-
apiHost?: string;
|
|
6
|
-
options?: SharedLib.AIAnswerDisplayOptions;
|
|
7
|
-
aiEndPoint?: string;
|
|
8
|
-
authKey?: string;
|
|
9
|
-
authToken?: string;
|
|
10
|
-
messages: SharedLib.AIAnswerMessage[];
|
|
11
|
-
version?: string;
|
|
12
|
-
libVersion?: string;
|
|
13
|
-
remoteEntryServer: string;
|
|
14
|
-
chartElement: HTMLElement;
|
|
15
|
-
static styles: import("lit").CSSResult;
|
|
16
|
-
constructor();
|
|
17
|
-
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
18
|
-
protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
|
|
19
|
-
private createAndAppendElement;
|
|
20
|
-
private updateVizItemProperties;
|
|
21
|
-
updated(changedProperties: PropertyValues): Promise<void>;
|
|
22
|
-
protected render(): unknown;
|
|
23
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
-
import * as SharedLib from '@luzmo/shared-embed';
|
|
3
|
-
export declare class LuzmoEmbedAIChatComponent extends LitElement {
|
|
4
|
-
appServer?: string;
|
|
5
|
-
apiHost?: string;
|
|
6
|
-
options?: SharedLib.AIChatDisplayOptions;
|
|
7
|
-
datasets?: string[];
|
|
8
|
-
aiEndpoint?: string;
|
|
9
|
-
authKey?: string;
|
|
10
|
-
authToken?: string;
|
|
11
|
-
version?: string;
|
|
12
|
-
libVersion?: string;
|
|
13
|
-
remoteEntryServer: string;
|
|
14
|
-
aydHost: string;
|
|
15
|
-
chartElement: HTMLElement;
|
|
16
|
-
static styles: import("lit").CSSResult;
|
|
17
|
-
constructor();
|
|
18
|
-
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
19
|
-
protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
|
|
20
|
-
private createAndAppendElement;
|
|
21
|
-
private updateVizItemProperties;
|
|
22
|
-
updated(changedProperties: PropertyValues): Promise<void>;
|
|
23
|
-
protected render(): unknown;
|
|
24
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
-
import * as SharedLib from '@luzmo/shared-embed';
|
|
3
|
-
export declare class LuzmoEmbedAIAnswerComponent extends LitElement {
|
|
4
|
-
appServer?: string;
|
|
5
|
-
apiHost?: string;
|
|
6
|
-
options?: SharedLib.AIAnswerDisplayOptions;
|
|
7
|
-
aiEndPoint?: string;
|
|
8
|
-
authKey?: string;
|
|
9
|
-
authToken?: string;
|
|
10
|
-
messages: SharedLib.AIAnswerMessage[];
|
|
11
|
-
version?: string;
|
|
12
|
-
libVersion?: string;
|
|
13
|
-
remoteEntryServer: string;
|
|
14
|
-
chartElement: HTMLElement;
|
|
15
|
-
static styles: import("lit").CSSResult;
|
|
16
|
-
constructor();
|
|
17
|
-
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
18
|
-
protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
|
|
19
|
-
private createAndAppendElement;
|
|
20
|
-
private updateVizItemProperties;
|
|
21
|
-
updated(changedProperties: PropertyValues): Promise<void>;
|
|
22
|
-
protected render(): unknown;
|
|
23
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
-
import * as SharedLib from '@luzmo/shared-embed';
|
|
3
|
-
export declare class LuzmoEmbedAIChatComponent extends LitElement {
|
|
4
|
-
appServer?: string;
|
|
5
|
-
apiHost?: string;
|
|
6
|
-
options?: SharedLib.AIChatDisplayOptions;
|
|
7
|
-
datasets?: string[];
|
|
8
|
-
aiEndpoint?: string;
|
|
9
|
-
authKey?: string;
|
|
10
|
-
authToken?: string;
|
|
11
|
-
version?: string;
|
|
12
|
-
libVersion?: string;
|
|
13
|
-
remoteEntryServer: string;
|
|
14
|
-
aydHost: string;
|
|
15
|
-
chartElement: HTMLElement;
|
|
16
|
-
static styles: import("lit").CSSResult;
|
|
17
|
-
constructor();
|
|
18
|
-
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
19
|
-
protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
|
|
20
|
-
private createAndAppendElement;
|
|
21
|
-
private updateVizItemProperties;
|
|
22
|
-
updated(changedProperties: PropertyValues): Promise<void>;
|
|
23
|
-
protected render(): unknown;
|
|
24
|
-
}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { Filter, ItemType } from '@luzmo/ngx-embed';
|
|
2
|
-
import type { ThemeConfig } from '@luzmo/dashboard-contents-types';
|
|
3
|
-
declare interface ConnectedPosition {
|
|
4
|
-
originX: 'start' | 'center' | 'end';
|
|
5
|
-
originY: 'top' | 'center' | 'bottom';
|
|
6
|
-
overlayX: 'start' | 'center' | 'end';
|
|
7
|
-
overlayY: 'top' | 'center' | 'bottom';
|
|
8
|
-
weight?: number;
|
|
9
|
-
offsetX?: number;
|
|
10
|
-
offsetY?: number;
|
|
11
|
-
panelClass?: string | string[];
|
|
12
|
-
}
|
|
13
|
-
type ChartFeedback = {
|
|
14
|
-
aichart_id?: string;
|
|
15
|
-
based_on_message_id?: string;
|
|
16
|
-
corrected_chart: Chart;
|
|
17
|
-
created_at: string;
|
|
18
|
-
id: string;
|
|
19
|
-
message_id?: string;
|
|
20
|
-
rating: number;
|
|
21
|
-
type: 'user';
|
|
22
|
-
updated_at: string;
|
|
23
|
-
user_id: string;
|
|
24
|
-
};
|
|
25
|
-
type Chart = {
|
|
26
|
-
aichartId?: string;
|
|
27
|
-
filters?: Filter[];
|
|
28
|
-
feedback?: ChartFeedback;
|
|
29
|
-
name: string;
|
|
30
|
-
options?: {
|
|
31
|
-
display?: {
|
|
32
|
-
title?: boolean;
|
|
33
|
-
legend?: boolean;
|
|
34
|
-
categoryLabels?: boolean;
|
|
35
|
-
};
|
|
36
|
-
interactivity?: any;
|
|
37
|
-
theme?: string | ThemeConfig;
|
|
38
|
-
mode?: string;
|
|
39
|
-
sort?: any;
|
|
40
|
-
};
|
|
41
|
-
slots: any[];
|
|
42
|
-
type: ItemType;
|
|
43
|
-
setInitialOptions?: (options: any) => any;
|
|
44
|
-
cleanupOptions?: (options: any) => any;
|
|
45
|
-
};
|
|
46
|
-
type ColumnType = 'numeric' | 'datetime' | 'hierarchy' | 'spatial';
|
|
47
|
-
type Column = {
|
|
48
|
-
id: string;
|
|
49
|
-
name: Record<string, string>;
|
|
50
|
-
description: Record<string, string> | null;
|
|
51
|
-
type: ColumnType;
|
|
52
|
-
subtype: string | null;
|
|
53
|
-
format?: string;
|
|
54
|
-
idx: string;
|
|
55
|
-
securableFormula?: {
|
|
56
|
-
formula_id: string;
|
|
57
|
-
securable_id: string;
|
|
58
|
-
};
|
|
59
|
-
isFormula?: boolean;
|
|
60
|
-
};
|
|
61
|
-
type Formula = {
|
|
62
|
-
id: string;
|
|
63
|
-
name: Record<string, string>;
|
|
64
|
-
type: ColumnType;
|
|
65
|
-
subtype: string | null;
|
|
66
|
-
format?: string;
|
|
67
|
-
idx: string;
|
|
68
|
-
securableFormula?: {
|
|
69
|
-
formula_id: string;
|
|
70
|
-
securable_id: string;
|
|
71
|
-
};
|
|
72
|
-
isFormula?: boolean;
|
|
73
|
-
};
|
|
74
|
-
type Dataset = {
|
|
75
|
-
id: string;
|
|
76
|
-
name: Record<string, string>;
|
|
77
|
-
description: Record<string, string> | null;
|
|
78
|
-
columns: Column[];
|
|
79
|
-
formulas: Formula[];
|
|
80
|
-
};
|
|
81
|
-
export type Message = {
|
|
82
|
-
type?: 'humanMessage' | 'systemMessage' | 'chartAnswer';
|
|
83
|
-
message?: string;
|
|
84
|
-
question?: string;
|
|
85
|
-
chart?: Chart;
|
|
86
|
-
datasets?: Dataset[];
|
|
87
|
-
default?: boolean;
|
|
88
|
-
messageId?: string | number;
|
|
89
|
-
};
|
|
90
|
-
export interface AIChatDisplayOptions {
|
|
91
|
-
chatWelcomeMessages?: Message[];
|
|
92
|
-
chatContainerHeaderTitle?: string;
|
|
93
|
-
showConversationId?: boolean;
|
|
94
|
-
showDisclaimer?: boolean;
|
|
95
|
-
disclaimerText?: string;
|
|
96
|
-
display?: string;
|
|
97
|
-
language?: string;
|
|
98
|
-
timezone?: string;
|
|
99
|
-
suggestions?: Suggestion[];
|
|
100
|
-
showChart?: boolean;
|
|
101
|
-
showTextSummary?: boolean;
|
|
102
|
-
showInteractions?: boolean;
|
|
103
|
-
showNextActions?: boolean;
|
|
104
|
-
showSuggestions?: boolean;
|
|
105
|
-
showWelcomeChat?: boolean;
|
|
106
|
-
showFeedback?: boolean;
|
|
107
|
-
showConfiguration?: boolean;
|
|
108
|
-
chatBubbleOverlayPosition?: 'topRight' | 'topLeft' | 'topCenter' | 'bottomRight' | 'bottomLeft' | 'bottomCenter' | 'leftCenter' | 'rightCenter';
|
|
109
|
-
chatBubbleVerticalOffset?: number;
|
|
110
|
-
chatBubbleHorizontalOffset?: number;
|
|
111
|
-
positions?: ConnectedPosition[];
|
|
112
|
-
theme?: ThemeConfig;
|
|
113
|
-
}
|
|
114
|
-
export interface AIAnswerDisplayOptions {
|
|
115
|
-
language?: AIChatDisplayOptions['language'];
|
|
116
|
-
showChart?: AIChatDisplayOptions['showChart'];
|
|
117
|
-
showTextSummary?: AIChatDisplayOptions['showTextSummary'];
|
|
118
|
-
showInteractions?: AIChatDisplayOptions['showInteractions'];
|
|
119
|
-
showNextBestActions?: AIChatDisplayOptions['showNextActions'];
|
|
120
|
-
showFeedback?: AIChatDisplayOptions['showFeedback'];
|
|
121
|
-
showConfiguration?: AIChatDisplayOptions['showConfiguration'];
|
|
122
|
-
theme?: AIChatDisplayOptions['theme'];
|
|
123
|
-
}
|
|
124
|
-
export interface AIAnswerMessage {
|
|
125
|
-
type?: Extract<Message['type'], 'systemMessage' | 'chartAnswer'>;
|
|
126
|
-
chart?: Chart;
|
|
127
|
-
message?: string;
|
|
128
|
-
question?: string;
|
|
129
|
-
}
|
|
130
|
-
export interface Suggestion {
|
|
131
|
-
title: string;
|
|
132
|
-
chartType?: string;
|
|
133
|
-
columnIds?: number[];
|
|
134
|
-
}
|
|
135
|
-
export {};
|
package/src/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from '@luzmo/dashboard-contents-types';
|
|
2
|
-
export type { LoadEvent, ChangedFiltersEvent, CustomEvent, ItemsRenderedEvent, ExportedEvent, DashboardActionEvent, SelectedDataInput, ExportType, ItemData, ExportDashboard, AccessibleDashboard, SetEditMode, SetSelectedData, VizItemOptions, VizItemPostMessageLoadEvent, VizItemPostMessageRenderedEvent, VizItemPostMessageExportedEvent, VizItemPostMessageChangedFiltersEvent, VizItemPostMessageCustomEventEvent, AIChatDisplayOptions, AIAnswerMessage, AIAnswerDisplayOptions } from '@luzmo/shared-embed';
|
|
3
|
-
export { selectedDataUtils } from '@luzmo/shared-embed';
|
|
4
|
-
export * from './lib/dashboard-component/dashboard-component';
|
|
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';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
-
import * as SharedLib from '@luzmo/shared-embed';
|
|
3
|
-
export declare class LuzmoEmbedAIAnswerComponent extends LitElement {
|
|
4
|
-
appServer?: string;
|
|
5
|
-
apiHost?: string;
|
|
6
|
-
options?: SharedLib.AIAnswerDisplayOptions;
|
|
7
|
-
aiEndPoint?: string;
|
|
8
|
-
authKey?: string;
|
|
9
|
-
authToken?: string;
|
|
10
|
-
messages: SharedLib.AIAnswerMessage[];
|
|
11
|
-
version?: string;
|
|
12
|
-
libVersion?: string;
|
|
13
|
-
remoteEntryServer: string;
|
|
14
|
-
chartElement: HTMLElement;
|
|
15
|
-
static styles: import("lit").CSSResult;
|
|
16
|
-
constructor();
|
|
17
|
-
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
18
|
-
protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
|
|
19
|
-
private createAndAppendElement;
|
|
20
|
-
private updateVizItemProperties;
|
|
21
|
-
updated(changedProperties: PropertyValues): Promise<void>;
|
|
22
|
-
protected render(): unknown;
|
|
23
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
-
import * as SharedLib from '@luzmo/shared-embed';
|
|
3
|
-
export declare class LuzmoEmbedAIChatComponent extends LitElement {
|
|
4
|
-
appServer?: string;
|
|
5
|
-
apiHost?: string;
|
|
6
|
-
options?: SharedLib.AIChatDisplayOptions;
|
|
7
|
-
datasets?: string[];
|
|
8
|
-
aiEndpoint?: string;
|
|
9
|
-
authKey?: string;
|
|
10
|
-
authToken?: string;
|
|
11
|
-
version?: string;
|
|
12
|
-
libVersion?: string;
|
|
13
|
-
remoteEntryServer: string;
|
|
14
|
-
aydHost: string;
|
|
15
|
-
chartElement: HTMLElement;
|
|
16
|
-
static styles: import("lit").CSSResult;
|
|
17
|
-
constructor();
|
|
18
|
-
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
19
|
-
protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
|
|
20
|
-
private createAndAppendElement;
|
|
21
|
-
private updateVizItemProperties;
|
|
22
|
-
updated(changedProperties: PropertyValues): Promise<void>;
|
|
23
|
-
protected render(): unknown;
|
|
24
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import * as SharedLib from '@luzmo/shared-embed';
|
|
2
|
-
import { LitElement, PropertyValues, TemplateResult } from 'lit';
|
|
3
|
-
import { LuzmoElement, CombinedSelectedDataInput } from '@luzmo/shared-embed';
|
|
4
|
-
import type { FilterGroup } from '@luzmo/dashboard-contents-types';
|
|
5
|
-
/**
|
|
6
|
-
* Luzmo Dashboard
|
|
7
|
-
* Base component isn't registered in customEvents registry so that it can be reused.
|
|
8
|
-
*/
|
|
9
|
-
export declare class LuzmoDashboard extends LitElement implements SharedLib.ES6LuzmoDashboard {
|
|
10
|
-
container: HTMLElement;
|
|
11
|
-
luzmoEmbedContainer: HTMLElement;
|
|
12
|
-
iframe: HTMLIFrameElement;
|
|
13
|
-
dashboardId?: SharedLib.DashboardInputs['dashboardId'];
|
|
14
|
-
dashboardSlug?: SharedLib.DashboardInputs['dashboardSlug'];
|
|
15
|
-
itemId?: SharedLib.DashboardInputs['itemId'];
|
|
16
|
-
language: SharedLib.DashboardInputs['language'];
|
|
17
|
-
qeVersion: SharedLib.DashboardInputs['qeVersion'];
|
|
18
|
-
screenMode: SharedLib.DashboardInputs['screenMode'];
|
|
19
|
-
switchScreenModeOnResize: boolean;
|
|
20
|
-
editMode: SharedLib.DashboardInputs['editMode'];
|
|
21
|
-
mainColor?: SharedLib.DashboardInputs['mainColor'];
|
|
22
|
-
accentColor?: SharedLib.DashboardInputs['accentColor'];
|
|
23
|
-
authToken?: SharedLib.DashboardInputs['authToken'];
|
|
24
|
-
authKey?: SharedLib.DashboardInputs['authKey'];
|
|
25
|
-
loaderBackground?: SharedLib.DashboardInputs['loaderBackground'];
|
|
26
|
-
loaderFontColor?: SharedLib.DashboardInputs['loaderFontColor'];
|
|
27
|
-
loaderSpinnerColor?: SharedLib.DashboardInputs['loaderSpinnerColor'];
|
|
28
|
-
loaderSpinnerBackground?: SharedLib.DashboardInputs['loaderSpinnerBackground'];
|
|
29
|
-
appServer?: SharedLib.DashboardInputs['appServer'];
|
|
30
|
-
timezoneId?: SharedLib.DashboardInputs['timezoneId'];
|
|
31
|
-
apiHost?: SharedLib.DashboardInputs['apiHost'];
|
|
32
|
-
itemDimensions: SharedLib.DashboardInputs['itemDimensions'];
|
|
33
|
-
experimental: boolean;
|
|
34
|
-
_containerId: string;
|
|
35
|
-
_iframeId: string;
|
|
36
|
-
params: SharedLib.DashboardContentParams;
|
|
37
|
-
_iframeUrl?: string;
|
|
38
|
-
iframeLoaded: boolean;
|
|
39
|
-
promises: SharedLib.DashboardPromises;
|
|
40
|
-
iframeStyle: SharedLib.IframeStyles;
|
|
41
|
-
_containerStyle: SharedLib.ContainerStyles;
|
|
42
|
-
_loaderStyle: SharedLib.LoaderStyles;
|
|
43
|
-
_lcStyle: SharedLib.LcStyles;
|
|
44
|
-
_loadingCircleStyle: SharedLib.PlStyles;
|
|
45
|
-
_containerLoaderStyle: SharedLib.ContainerLoaderStyles;
|
|
46
|
-
_loaderMsg: string;
|
|
47
|
-
containerWidth?: number;
|
|
48
|
-
dimensions?: SharedLib.DashboardDimensions;
|
|
49
|
-
currentScreenMode?: SharedLib.ScreenMode;
|
|
50
|
-
_itemEmbedding: boolean;
|
|
51
|
-
browserError: boolean;
|
|
52
|
-
browserErrorMsg: string;
|
|
53
|
-
dashboardError: boolean;
|
|
54
|
-
browserNotSupported: any[];
|
|
55
|
-
libVersion: string;
|
|
56
|
-
protected isLibraryLoaded: boolean;
|
|
57
|
-
protected dashboardReference: LuzmoElement;
|
|
58
|
-
currentAuthKey: string;
|
|
59
|
-
currentAuthToken: string;
|
|
60
|
-
isInitCalled: boolean;
|
|
61
|
-
private attributesMap;
|
|
62
|
-
_loadTimeoutHandle?: number;
|
|
63
|
-
_onResize: () => void;
|
|
64
|
-
loaderSize: number;
|
|
65
|
-
borderWidth: number;
|
|
66
|
-
minHeight: number;
|
|
67
|
-
iframeHeight?: string;
|
|
68
|
-
iframeWidth?: string;
|
|
69
|
-
_resizeObserver: ResizeObserver;
|
|
70
|
-
constructor();
|
|
71
|
-
connectedCallback(): void;
|
|
72
|
-
disconnectedCallback(): void;
|
|
73
|
-
firstUpdated(): void;
|
|
74
|
-
initComponent(): void;
|
|
75
|
-
setAllAttributes(): void;
|
|
76
|
-
updated(changedProperties: PropertyValues): void;
|
|
77
|
-
_setOptions(): SharedLib.DashboardContentParams;
|
|
78
|
-
_updateIframeUrl(): void;
|
|
79
|
-
_setupLoader(): void;
|
|
80
|
-
_displayError(): void;
|
|
81
|
-
_calculateDimAfterDashboardLoaded(): void;
|
|
82
|
-
_loaderStyles(): void;
|
|
83
|
-
static get styles(): import("lit").CSSResult[];
|
|
84
|
-
render(): TemplateResult;
|
|
85
|
-
getDashboards(): Promise<LuzmoDashboard[]>;
|
|
86
|
-
getData(itemId: string): Promise<SharedLib.ItemData>;
|
|
87
|
-
getFilters(): Promise<FilterGroup[]>;
|
|
88
|
-
setSelectedData<K extends CombinedSelectedDataInput>(itemId: string, filters: K): Promise<SharedLib.SetSelectedData>;
|
|
89
|
-
setAuthorization(key: string, token: string): Promise<void>;
|
|
90
|
-
refreshData(itemId?: string): Promise<void>;
|
|
91
|
-
reloadDashboard(): Promise<void>;
|
|
92
|
-
exportDashboard(format?: SharedLib.ExportType): Promise<SharedLib.ExportDashboard>;
|
|
93
|
-
getAccessibleDashboards(): Promise<SharedLib.AccessibleDashboard[]>;
|
|
94
|
-
addFilters(itemId: string, filters: FilterGroup[]): Promise<SharedLib.AddFilters>;
|
|
95
|
-
setEditMode(editMode?: SharedLib.DashboardEditMode): Promise<SharedLib.SetEditMode>;
|
|
96
|
-
setPreview(preview: boolean): Promise<SharedLib.SetPreview>;
|
|
97
|
-
getIsViewMode(): boolean;
|
|
98
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const dashboardStyles: import("lit").CSSResult;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const _setEventHandler: () => void;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
-
import * as SharedLib from '@luzmo/shared-embed';
|
|
3
|
-
import type { VizItemType, VizItemSlots, FilterGroup } from '@luzmo/dashboard-contents-types';
|
|
4
|
-
/**
|
|
5
|
-
* The version of the dashboard contents that is linked to the current library.
|
|
6
|
-
*
|
|
7
|
-
* If custom options/slots/etc. are passed to the component, the library assumes that
|
|
8
|
-
* they are using this dashboard contents version. Then custom options/slots/etc.
|
|
9
|
-
* together with this dashboard contents version are passed to the dashboard app (https://app.luzmo.com/dashboard-app/remoteEntry.mjs)
|
|
10
|
-
* and if needed the migration will be applied on the dashboard app level.
|
|
11
|
-
*/
|
|
12
|
-
export declare const dashboardContentsVersion = "0.1.89";
|
|
13
|
-
type FunctionCall = [(...args: any) => any, any[]];
|
|
14
|
-
interface LuzmoVizItemComponentInterface extends HTMLElement {
|
|
15
|
-
options?: SharedLib.VizItemOptions;
|
|
16
|
-
type?: VizItemType;
|
|
17
|
-
appServer?: string;
|
|
18
|
-
apiHost?: string;
|
|
19
|
-
slots?: VizItemSlots;
|
|
20
|
-
canFilter?: string[] | 'all';
|
|
21
|
-
filters?: FilterGroup[];
|
|
22
|
-
contextId?: string;
|
|
23
|
-
authKey?: string;
|
|
24
|
-
authToken?: string;
|
|
25
|
-
dashboardId?: string;
|
|
26
|
-
itemId?: string;
|
|
27
|
-
getFilters: () => FilterGroup[];
|
|
28
|
-
export: () => void;
|
|
29
|
-
refreshData: () => void;
|
|
30
|
-
getData: () => SharedLib.ItemData;
|
|
31
|
-
setSelectedData: (selectedDataInput: SharedLib.SelectedDataInput) => SharedLib.SetSelectedData;
|
|
32
|
-
setAuthorization: (key: string, token: string) => void;
|
|
33
|
-
}
|
|
34
|
-
export type { LuzmoVizItemComponentInterface };
|
|
35
|
-
export declare class LuzmoBaseVizItem extends LitElement implements LuzmoVizItemComponentInterface {
|
|
36
|
-
appServer?: string;
|
|
37
|
-
apiHost?: string;
|
|
38
|
-
slots?: VizItemSlots;
|
|
39
|
-
options?: SharedLib.VizItemOptions;
|
|
40
|
-
type?: VizItemType;
|
|
41
|
-
authKey?: string;
|
|
42
|
-
authToken?: string;
|
|
43
|
-
version?: string;
|
|
44
|
-
contextId?: string;
|
|
45
|
-
canFilter?: SharedLib.CanFilter;
|
|
46
|
-
filters?: FilterGroup[];
|
|
47
|
-
dashboardId?: string;
|
|
48
|
-
itemId?: string;
|
|
49
|
-
selectedData: SharedLib.SelectedDataInput;
|
|
50
|
-
dashboardContentsVersion?: string;
|
|
51
|
-
libVersion?: string;
|
|
52
|
-
chartElement: HTMLElement & Partial<LuzmoVizItemComponentInterface> & {
|
|
53
|
-
setSelectedData?: (itemId?: string, filters?: SharedLib.SelectedDataInput) => SharedLib.SetSelectedData;
|
|
54
|
-
};
|
|
55
|
-
postInitCallQueue: FunctionCall[];
|
|
56
|
-
static styles: import("lit").CSSResult;
|
|
57
|
-
constructor();
|
|
58
|
-
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
59
|
-
canInitializeVizItem(): boolean;
|
|
60
|
-
getFilters(): FilterGroup[];
|
|
61
|
-
export(): void;
|
|
62
|
-
getData(): any;
|
|
63
|
-
refreshData(): void;
|
|
64
|
-
setSelectedData(selectedDataInput: SharedLib.SelectedDataInput): SharedLib.SetSelectedData;
|
|
65
|
-
setAuthorization(key: string, token: string): void;
|
|
66
|
-
attributeChangedCallback(name: string, _old: string | null, value: string | null): void;
|
|
67
|
-
protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
|
|
68
|
-
private createAndAppendElement;
|
|
69
|
-
private updateVizItemProperties;
|
|
70
|
-
updated(changedProperties: PropertyValues): Promise<void>;
|
|
71
|
-
private parseAndValidate;
|
|
72
|
-
protected render(): unknown;
|
|
73
|
-
}
|