@luzmo/embed 5.0.13-beta.1 → 5.0.14-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 +6 -0
- package/index.cjs +43 -31
- package/index.d.ts +1 -1
- package/index.js +44 -32
- package/index.libs.cjs +1191 -0
- package/index.libs.d.ts +1 -1
- package/index.libs.js +1170 -0
- package/lib/viz-item/viz-item-component.d.ts +3 -0
- package/lib/viz-item/viz-item-web-component.d.ts +3 -0
- package/lib/viz-item/viz-item.base.d.ts +4 -3
- package/luzmo-embed.libs.js +49 -35
- package/luzmo-embed.min.js +46 -32
- package/package.json +2 -2
- package/src/index.d.ts +3 -0
- package/src/lib/dashboard-component/dashboard-base.d.ts +98 -0
- package/src/lib/dashboard-component/dashboard-component.d.ts +3 -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 +3 -0
- package/src/lib/viz-item/viz-item.base.d.ts +18 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement, PropertyValues } from 'lit';
|
|
2
2
|
import * as SharedLib from '@luzmo/shared-embed';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class LuzmoBaseVizItem extends LitElement {
|
|
4
4
|
appServer: string;
|
|
5
5
|
apiHost: string;
|
|
6
6
|
slots: SharedLib.Slots;
|
|
@@ -8,10 +8,11 @@ export declare class LuzmoVizItem extends LitElement {
|
|
|
8
8
|
type?: SharedLib.ItemType;
|
|
9
9
|
authKey?: string;
|
|
10
10
|
authToken?: string;
|
|
11
|
+
VERSION?: string;
|
|
11
12
|
chartElement: HTMLElement;
|
|
12
13
|
static styles: import("lit").CSSResult;
|
|
13
14
|
constructor();
|
|
14
|
-
protected firstUpdated(_changedProperties: PropertyValues): void
|
|
15
|
-
private
|
|
15
|
+
protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
|
|
16
|
+
private updateVizItemProperties;
|
|
16
17
|
protected render(): unknown;
|
|
17
18
|
}
|
package/luzmo-embed.libs.js
CHANGED
|
@@ -43,7 +43,7 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
43
43
|
var index_libs_exports = {};
|
|
44
44
|
__export(index_libs_exports, {
|
|
45
45
|
LuzmoDashboardWebComponent: () => LuzmoDashboardWebComponent,
|
|
46
|
-
|
|
46
|
+
LuzmoVizItemWebComponent: () => LuzmoVizItemWebComponent
|
|
47
47
|
});
|
|
48
48
|
module.exports = __toCommonJS(index_libs_exports);
|
|
49
49
|
|
|
@@ -1570,7 +1570,12 @@ async function loadLibrary(appServer, componentName) {
|
|
|
1570
1570
|
if (remotesMap[appServer]) {
|
|
1571
1571
|
return remotesMap[appServer].module;
|
|
1572
1572
|
}
|
|
1573
|
-
remotesMap[appServer] = {
|
|
1573
|
+
remotesMap[appServer] = {
|
|
1574
|
+
url: appServer?.startsWith("http://localhost") ? `${removeTrailingSlash(appServer)}/remoteEntry.mjs` : `${removeTrailingSlash(appServer)}/dashboard-app/remoteEntry.mjs`,
|
|
1575
|
+
format: "esm",
|
|
1576
|
+
from: "vite",
|
|
1577
|
+
module: void 0
|
|
1578
|
+
};
|
|
1574
1579
|
const module2 = await __federationMethodGetRemote(appServer, `./${componentName}`);
|
|
1575
1580
|
const wrappedModule = __federationMethodWrapDefault(module2, true);
|
|
1576
1581
|
remotesMap[appServer].module = wrappedModule;
|
|
@@ -1926,7 +1931,7 @@ var o5 = e6(class extends i4 {
|
|
|
1926
1931
|
});
|
|
1927
1932
|
|
|
1928
1933
|
// libs/embed-libs/embed/package.json
|
|
1929
|
-
var version = "5.0.
|
|
1934
|
+
var version = "5.0.14-beta.0";
|
|
1930
1935
|
|
|
1931
1936
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
1932
1937
|
var LuzmoService = class {
|
|
@@ -2965,10 +2970,10 @@ LuzmoDashboardWebComponent = __decorateClass([
|
|
|
2965
2970
|
], LuzmoDashboardWebComponent);
|
|
2966
2971
|
|
|
2967
2972
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item.base.ts
|
|
2968
|
-
var
|
|
2973
|
+
var LuzmoBaseVizItem = class extends s3 {
|
|
2969
2974
|
constructor() {
|
|
2970
2975
|
super();
|
|
2971
|
-
this.appServer = "
|
|
2976
|
+
this.appServer = "https://app.luzmo.com";
|
|
2972
2977
|
this.apiHost = "https://api.luzmo.com";
|
|
2973
2978
|
this.slots = [];
|
|
2974
2979
|
this.options = {
|
|
@@ -2977,26 +2982,36 @@ var LuzmoVizItem = class extends s3 {
|
|
|
2977
2982
|
},
|
|
2978
2983
|
theme: "default"
|
|
2979
2984
|
};
|
|
2985
|
+
this.VERSION = version + "-wc-luzmo";
|
|
2986
|
+
}
|
|
2987
|
+
static {
|
|
2988
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
2989
|
+
this.styles = i`
|
|
2990
|
+
:host {
|
|
2991
|
+
display: block;
|
|
2992
|
+
width: 100%;
|
|
2993
|
+
height: 100%;
|
|
2994
|
+
}
|
|
2995
|
+
`;
|
|
2980
2996
|
}
|
|
2981
|
-
firstUpdated(_changedProperties) {
|
|
2997
|
+
async firstUpdated(_changedProperties) {
|
|
2982
2998
|
super.firstUpdated(_changedProperties);
|
|
2983
2999
|
console.log(this.appServer);
|
|
2984
|
-
loadLibrary(this.appServer, "DashboardApp")
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
});
|
|
3000
|
+
await loadLibrary(this.appServer, "DashboardApp");
|
|
3001
|
+
this.chartElement = document.createElement("chart-component");
|
|
3002
|
+
this.chartElement.setAttribute("embedding-mode", "chart");
|
|
3003
|
+
this.updateVizItemProperties();
|
|
3004
|
+
this.renderRoot.append(this.chartElement);
|
|
2990
3005
|
}
|
|
2991
|
-
|
|
3006
|
+
updateVizItemProperties() {
|
|
2992
3007
|
if (this.chartElement) {
|
|
2993
|
-
this.chartElement.setAttribute("app-server", this.appServer);
|
|
2994
|
-
this.chartElement.setAttribute("api-host", this.apiHost);
|
|
2995
3008
|
for (const key in libraryTypeToWebComponentTypeMapping) {
|
|
2996
|
-
|
|
3009
|
+
const value = this[key];
|
|
3010
|
+
if (value) {
|
|
3011
|
+
const attributeValue = ["appServer", "apiHost"].includes(key) ? removeTrailingSlash(value) : value;
|
|
2997
3012
|
this.chartElement.setAttribute(
|
|
2998
3013
|
libraryTypeToWebComponentTypeMapping[key],
|
|
2999
|
-
typeof
|
|
3014
|
+
typeof attributeValue === "object" ? JSON.stringify(attributeValue) : attributeValue
|
|
3000
3015
|
);
|
|
3001
3016
|
}
|
|
3002
3017
|
}
|
|
@@ -3006,38 +3021,37 @@ var LuzmoVizItem = class extends s3 {
|
|
|
3006
3021
|
return x``;
|
|
3007
3022
|
}
|
|
3008
3023
|
};
|
|
3009
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
3010
|
-
LuzmoVizItem.styles = i`
|
|
3011
|
-
:host {
|
|
3012
|
-
display: block;
|
|
3013
|
-
width: 100%;
|
|
3014
|
-
height: 100%;
|
|
3015
|
-
}
|
|
3016
|
-
`;
|
|
3017
3024
|
__decorateClass([
|
|
3018
3025
|
n3()
|
|
3019
|
-
],
|
|
3026
|
+
], LuzmoBaseVizItem.prototype, "appServer", 2);
|
|
3020
3027
|
__decorateClass([
|
|
3021
3028
|
n3()
|
|
3022
|
-
],
|
|
3029
|
+
], LuzmoBaseVizItem.prototype, "apiHost", 2);
|
|
3023
3030
|
__decorateClass([
|
|
3024
3031
|
n3({ type: Array })
|
|
3025
|
-
],
|
|
3032
|
+
], LuzmoBaseVizItem.prototype, "slots", 2);
|
|
3026
3033
|
__decorateClass([
|
|
3027
3034
|
n3({ type: Object })
|
|
3028
|
-
],
|
|
3035
|
+
], LuzmoBaseVizItem.prototype, "options", 2);
|
|
3036
|
+
__decorateClass([
|
|
3037
|
+
n3()
|
|
3038
|
+
], LuzmoBaseVizItem.prototype, "type", 2);
|
|
3029
3039
|
__decorateClass([
|
|
3030
3040
|
n3()
|
|
3031
|
-
],
|
|
3041
|
+
], LuzmoBaseVizItem.prototype, "authKey", 2);
|
|
3032
3042
|
__decorateClass([
|
|
3033
3043
|
n3()
|
|
3034
|
-
],
|
|
3044
|
+
], LuzmoBaseVizItem.prototype, "authToken", 2);
|
|
3035
3045
|
__decorateClass([
|
|
3036
3046
|
n3()
|
|
3037
|
-
],
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3047
|
+
], LuzmoBaseVizItem.prototype, "VERSION", 2);
|
|
3048
|
+
|
|
3049
|
+
// libs/embed-libs/embed/src/lib/viz-item/viz-item-web-component.ts
|
|
3050
|
+
var LuzmoVizItemWebComponent = class extends LuzmoBaseVizItem {
|
|
3051
|
+
};
|
|
3052
|
+
LuzmoVizItemWebComponent = __decorateClass([
|
|
3053
|
+
t("luzmo-viz-item-web-component")
|
|
3054
|
+
], LuzmoVizItemWebComponent);
|
|
3041
3055
|
/*! Bundled license information:
|
|
3042
3056
|
|
|
3043
3057
|
@lit/reactive-element/decorators/custom-element.js:
|
package/luzmo-embed.min.js
CHANGED
|
@@ -1570,7 +1570,12 @@ async function loadLibrary(appServer, componentName) {
|
|
|
1570
1570
|
if (remotesMap[appServer]) {
|
|
1571
1571
|
return remotesMap[appServer].module;
|
|
1572
1572
|
}
|
|
1573
|
-
remotesMap[appServer] = {
|
|
1573
|
+
remotesMap[appServer] = {
|
|
1574
|
+
url: appServer?.startsWith("http://localhost") ? `${removeTrailingSlash(appServer)}/remoteEntry.mjs` : `${removeTrailingSlash(appServer)}/dashboard-app/remoteEntry.mjs`,
|
|
1575
|
+
format: "esm",
|
|
1576
|
+
from: "vite",
|
|
1577
|
+
module: void 0
|
|
1578
|
+
};
|
|
1574
1579
|
const module2 = await __federationMethodGetRemote(appServer, `./${componentName}`);
|
|
1575
1580
|
const wrappedModule = __federationMethodWrapDefault(module2, true);
|
|
1576
1581
|
remotesMap[appServer].module = wrappedModule;
|
|
@@ -1926,7 +1931,7 @@ var o5 = e6(class extends i4 {
|
|
|
1926
1931
|
});
|
|
1927
1932
|
|
|
1928
1933
|
// libs/embed-libs/embed/package.json
|
|
1929
|
-
var version = "5.0.
|
|
1934
|
+
var version = "5.0.14-beta.0";
|
|
1930
1935
|
|
|
1931
1936
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
1932
1937
|
var LuzmoService = class {
|
|
@@ -2965,10 +2970,10 @@ LuzmoDashboard2 = __decorateClass([
|
|
|
2965
2970
|
], LuzmoDashboard2);
|
|
2966
2971
|
|
|
2967
2972
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item.base.ts
|
|
2968
|
-
var
|
|
2973
|
+
var LuzmoBaseVizItem = class extends s3 {
|
|
2969
2974
|
constructor() {
|
|
2970
2975
|
super();
|
|
2971
|
-
this.appServer = "
|
|
2976
|
+
this.appServer = "https://app.luzmo.com";
|
|
2972
2977
|
this.apiHost = "https://api.luzmo.com";
|
|
2973
2978
|
this.slots = [];
|
|
2974
2979
|
this.options = {
|
|
@@ -2977,26 +2982,36 @@ var LuzmoVizItem = class extends s3 {
|
|
|
2977
2982
|
},
|
|
2978
2983
|
theme: "default"
|
|
2979
2984
|
};
|
|
2985
|
+
this.VERSION = version + "-wc-luzmo";
|
|
2986
|
+
}
|
|
2987
|
+
static {
|
|
2988
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
2989
|
+
this.styles = i`
|
|
2990
|
+
:host {
|
|
2991
|
+
display: block;
|
|
2992
|
+
width: 100%;
|
|
2993
|
+
height: 100%;
|
|
2994
|
+
}
|
|
2995
|
+
`;
|
|
2980
2996
|
}
|
|
2981
|
-
firstUpdated(_changedProperties) {
|
|
2997
|
+
async firstUpdated(_changedProperties) {
|
|
2982
2998
|
super.firstUpdated(_changedProperties);
|
|
2983
2999
|
console.log(this.appServer);
|
|
2984
|
-
loadLibrary(this.appServer, "DashboardApp")
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
});
|
|
3000
|
+
await loadLibrary(this.appServer, "DashboardApp");
|
|
3001
|
+
this.chartElement = document.createElement("chart-component");
|
|
3002
|
+
this.chartElement.setAttribute("embedding-mode", "chart");
|
|
3003
|
+
this.updateVizItemProperties();
|
|
3004
|
+
this.renderRoot.append(this.chartElement);
|
|
2990
3005
|
}
|
|
2991
|
-
|
|
3006
|
+
updateVizItemProperties() {
|
|
2992
3007
|
if (this.chartElement) {
|
|
2993
|
-
this.chartElement.setAttribute("app-server", this.appServer);
|
|
2994
|
-
this.chartElement.setAttribute("api-host", this.apiHost);
|
|
2995
3008
|
for (const key in libraryTypeToWebComponentTypeMapping) {
|
|
2996
|
-
|
|
3009
|
+
const value = this[key];
|
|
3010
|
+
if (value) {
|
|
3011
|
+
const attributeValue = ["appServer", "apiHost"].includes(key) ? removeTrailingSlash(value) : value;
|
|
2997
3012
|
this.chartElement.setAttribute(
|
|
2998
3013
|
libraryTypeToWebComponentTypeMapping[key],
|
|
2999
|
-
typeof
|
|
3014
|
+
typeof attributeValue === "object" ? JSON.stringify(attributeValue) : attributeValue
|
|
3000
3015
|
);
|
|
3001
3016
|
}
|
|
3002
3017
|
}
|
|
@@ -3006,37 +3021,36 @@ var LuzmoVizItem = class extends s3 {
|
|
|
3006
3021
|
return x``;
|
|
3007
3022
|
}
|
|
3008
3023
|
};
|
|
3009
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
3010
|
-
LuzmoVizItem.styles = i`
|
|
3011
|
-
:host {
|
|
3012
|
-
display: block;
|
|
3013
|
-
width: 100%;
|
|
3014
|
-
height: 100%;
|
|
3015
|
-
}
|
|
3016
|
-
`;
|
|
3017
3024
|
__decorateClass([
|
|
3018
3025
|
n3()
|
|
3019
|
-
],
|
|
3026
|
+
], LuzmoBaseVizItem.prototype, "appServer", 2);
|
|
3020
3027
|
__decorateClass([
|
|
3021
3028
|
n3()
|
|
3022
|
-
],
|
|
3029
|
+
], LuzmoBaseVizItem.prototype, "apiHost", 2);
|
|
3023
3030
|
__decorateClass([
|
|
3024
3031
|
n3({ type: Array })
|
|
3025
|
-
],
|
|
3032
|
+
], LuzmoBaseVizItem.prototype, "slots", 2);
|
|
3026
3033
|
__decorateClass([
|
|
3027
3034
|
n3({ type: Object })
|
|
3028
|
-
],
|
|
3035
|
+
], LuzmoBaseVizItem.prototype, "options", 2);
|
|
3036
|
+
__decorateClass([
|
|
3037
|
+
n3()
|
|
3038
|
+
], LuzmoBaseVizItem.prototype, "type", 2);
|
|
3029
3039
|
__decorateClass([
|
|
3030
3040
|
n3()
|
|
3031
|
-
],
|
|
3041
|
+
], LuzmoBaseVizItem.prototype, "authKey", 2);
|
|
3032
3042
|
__decorateClass([
|
|
3033
3043
|
n3()
|
|
3034
|
-
],
|
|
3044
|
+
], LuzmoBaseVizItem.prototype, "authToken", 2);
|
|
3035
3045
|
__decorateClass([
|
|
3036
3046
|
n3()
|
|
3037
|
-
],
|
|
3047
|
+
], LuzmoBaseVizItem.prototype, "VERSION", 2);
|
|
3048
|
+
|
|
3049
|
+
// libs/embed-libs/embed/src/lib/viz-item/viz-item-component.ts
|
|
3050
|
+
var LuzmoVizItem = class extends LuzmoBaseVizItem {
|
|
3051
|
+
};
|
|
3038
3052
|
LuzmoVizItem = __decorateClass([
|
|
3039
|
-
t("luzmo-
|
|
3053
|
+
t("luzmo-viz-item")
|
|
3040
3054
|
], LuzmoVizItem);
|
|
3041
3055
|
/*! Bundled license information:
|
|
3042
3056
|
|
package/package.json
CHANGED
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { LoadEvent, ChangedFiltersEvent, CustomEvent, ItemsRenderedEvent, ExportedEvent, DashboardActionEvent, Filter, FilterExpression, FilterOrigin, FilterInput, FilterGroup, ExportType, ItemData, ExportDashboard, AccessibleDashboard, SetEditMode } from '@luzmo/shared-embed';
|
|
2
|
+
export * from './lib/dashboard-component/dashboard-component';
|
|
3
|
+
export * from './lib/viz-item/viz-item-component';
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as SharedLib from '@luzmo/shared-embed';
|
|
2
|
+
import { LitElement, PropertyValues, TemplateResult } from 'lit';
|
|
3
|
+
import { CombinedFilterInput } from '@luzmo/shared-embed';
|
|
4
|
+
/**
|
|
5
|
+
* Luzmo Dashboard
|
|
6
|
+
* Base component isn't registered in customEvents registry so that it can be reused.
|
|
7
|
+
*/
|
|
8
|
+
export declare class LuzmoDashboard extends LitElement implements SharedLib.ES6LuzmoDashboard {
|
|
9
|
+
container: HTMLElement;
|
|
10
|
+
luzmoEmbedContainer: HTMLElement;
|
|
11
|
+
iframe: HTMLIFrameElement;
|
|
12
|
+
dashboardId?: SharedLib.DashboardInputs['dashboardId'];
|
|
13
|
+
dashboardSlug?: SharedLib.DashboardInputs['dashboardSlug'];
|
|
14
|
+
itemId?: SharedLib.DashboardInputs['itemId'];
|
|
15
|
+
language: SharedLib.DashboardInputs['language'];
|
|
16
|
+
qeVersion: SharedLib.DashboardInputs['qeVersion'];
|
|
17
|
+
screenMode: SharedLib.DashboardInputs['screenMode'];
|
|
18
|
+
switchScreenModeOnResize: boolean;
|
|
19
|
+
editMode: SharedLib.DashboardInputs['editMode'];
|
|
20
|
+
mainColor?: SharedLib.DashboardInputs['mainColor'];
|
|
21
|
+
accentColor?: SharedLib.DashboardInputs['accentColor'];
|
|
22
|
+
authToken?: SharedLib.DashboardInputs['authToken'];
|
|
23
|
+
authKey?: SharedLib.DashboardInputs['authKey'];
|
|
24
|
+
loaderBackground?: SharedLib.DashboardInputs['loaderBackground'];
|
|
25
|
+
loaderFontColor?: SharedLib.DashboardInputs['loaderFontColor'];
|
|
26
|
+
loaderSpinnerColor?: SharedLib.DashboardInputs['loaderSpinnerColor'];
|
|
27
|
+
loaderSpinnerBackground?: SharedLib.DashboardInputs['loaderSpinnerBackground'];
|
|
28
|
+
appServer?: SharedLib.DashboardInputs['appServer'];
|
|
29
|
+
timezoneId?: SharedLib.DashboardInputs['timezoneId'];
|
|
30
|
+
apiHost?: SharedLib.DashboardInputs['apiHost'];
|
|
31
|
+
itemDimensions: SharedLib.DashboardInputs['itemDimensions'];
|
|
32
|
+
experimental: boolean;
|
|
33
|
+
_containerId: string;
|
|
34
|
+
_iframeId: string;
|
|
35
|
+
params: SharedLib.DashboardContentParams;
|
|
36
|
+
_iframeUrl?: string;
|
|
37
|
+
iframeLoaded: boolean;
|
|
38
|
+
promises: SharedLib.DashboardPromises;
|
|
39
|
+
iframeStyle: SharedLib.IframeStyles;
|
|
40
|
+
_containerStyle: SharedLib.ContainerStyles;
|
|
41
|
+
_loaderStyle: SharedLib.LoaderStyles;
|
|
42
|
+
_lcStyle: SharedLib.LcStyles;
|
|
43
|
+
_loadingCircleStyle: SharedLib.PlStyles;
|
|
44
|
+
_containerLoaderStyle: SharedLib.ContainerLoaderStyles;
|
|
45
|
+
_loaderMsg: string;
|
|
46
|
+
containerWidth?: number;
|
|
47
|
+
dimensions?: SharedLib.DashboardDimensions;
|
|
48
|
+
currentScreenMode?: SharedLib.ScreenMode;
|
|
49
|
+
_itemEmbedding: boolean;
|
|
50
|
+
browserError: boolean;
|
|
51
|
+
browserErrorMsg: string;
|
|
52
|
+
dashboardError: boolean;
|
|
53
|
+
browserNotSupported: any[];
|
|
54
|
+
VERSION: string;
|
|
55
|
+
protected isLibraryLoaded: boolean;
|
|
56
|
+
protected dashboardReference: SharedLib.LuzmoElement;
|
|
57
|
+
currentAuthKey: string;
|
|
58
|
+
currentAuthToken: string;
|
|
59
|
+
private attributesMap;
|
|
60
|
+
_loadTimeoutHandle?: number;
|
|
61
|
+
_onResize: () => void;
|
|
62
|
+
loaderSize: number;
|
|
63
|
+
borderWidth: number;
|
|
64
|
+
minHeight: number;
|
|
65
|
+
iframeHeight?: string;
|
|
66
|
+
iframeWidth?: string;
|
|
67
|
+
_resizeObserver: ResizeObserver;
|
|
68
|
+
constructor(inputParameters?: Record<keyof LuzmoDashboard, any>);
|
|
69
|
+
private loadLibrary;
|
|
70
|
+
private setInputParameters;
|
|
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<SharedLib.FilterGroup[]>;
|
|
88
|
+
setFilters<K extends CombinedFilterInput>(itemId: string, filters: K): Promise<SharedLib.SetFilters>;
|
|
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: SharedLib.FilterGroup[]): Promise<SharedLib.AddFilters>;
|
|
95
|
+
setEditMode(editMode?: SharedLib.DashboardEditMode): Promise<SharedLib.SetEditMode>;
|
|
96
|
+
setPreview(preview: boolean): Promise<SharedLib.SetPreview>;
|
|
97
|
+
getIsViewMode(): boolean;
|
|
98
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dashboardStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const _setEventHandler: () => void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
+
import * as SharedLib from '@luzmo/shared-embed';
|
|
3
|
+
export declare class LuzmoBaseVizItem extends LitElement {
|
|
4
|
+
appServer: string;
|
|
5
|
+
apiHost: string;
|
|
6
|
+
slots: SharedLib.Slots;
|
|
7
|
+
options: SharedLib.VizItemOptions;
|
|
8
|
+
type?: SharedLib.ItemType;
|
|
9
|
+
authKey?: string;
|
|
10
|
+
authToken?: string;
|
|
11
|
+
VERSION?: string;
|
|
12
|
+
chartElement: HTMLElement;
|
|
13
|
+
static styles: import("lit").CSSResult;
|
|
14
|
+
constructor();
|
|
15
|
+
protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
|
|
16
|
+
private updateVizItemProperties;
|
|
17
|
+
protected render(): unknown;
|
|
18
|
+
}
|