@luzmo/embed 5.0.10 → 5.0.11

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 CHANGED
@@ -1,6 +1,12 @@
1
1
 
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [5.0.11] - 2024-03-18
5
+
6
+ ### Updates
7
+
8
+ - Correct typings are now exposed from @luzmo/embed.
9
+
4
10
  ## [5.0.10] - 2024-03-11
5
11
 
6
12
  ### Bugfixes
package/index.cjs CHANGED
@@ -39,12 +39,14 @@ var __decorateClass = (decorators, target, key, kind) => {
39
39
  // libs/embed-libs/embed/src/index.ts
40
40
  var src_exports = {};
41
41
  __export(src_exports, {
42
- LuzmoDashboard: () => LuzmoDashboard,
43
- LuzmoDashboardWebComponent: () => LuzmoDashboardWebComponent
42
+ LuzmoDashboard: () => LuzmoDashboard2
44
43
  });
45
44
  module.exports = __toCommonJS(src_exports);
46
45
 
47
46
  // libs/embed-libs/embed/src/lib/dashboard-component/dashboard-component.ts
47
+ var import_decorators2 = require("lit/decorators.js");
48
+
49
+ // libs/embed-libs/embed/src/lib/dashboard-component/dashboard-base.ts
48
50
  var SharedLib2 = __toESM(require("@luzmo/shared-embed"), 1);
49
51
  var import_lit2 = require("lit");
50
52
  var import_decorators = require("lit/decorators.js");
@@ -52,7 +54,7 @@ var import_style_map = require("lit/directives/style-map.js");
52
54
  var import_shared_embed = require("@luzmo/shared-embed");
53
55
 
54
56
  // libs/embed-libs/embed/package.json
55
- var version = "5.0.10";
57
+ var version = "5.0.11";
56
58
 
57
59
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
58
60
  var LuzmoService = class {
@@ -331,7 +333,7 @@ var dashboardStyles = import_lit.css`
331
333
  }
332
334
  `;
333
335
 
334
- // libs/embed-libs/embed/src/lib/dashboard-component/dashboard-component.ts
336
+ // libs/embed-libs/embed/src/lib/dashboard-component/dashboard-base.ts
335
337
  var LuzmoDashboard = class extends import_lit2.LitElement {
336
338
  constructor(inputParameters) {
337
339
  super();
@@ -418,7 +420,12 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
418
420
  if (import_shared_embed.remotesMap[appServer]) {
419
421
  return Promise.resolve(import_shared_embed.remotesMap[appServer].module);
420
422
  }
421
- import_shared_embed.remotesMap[appServer] = { url: appServer?.startsWith("http://localhost") ? `${SharedLib2.removeTrailingSlash(appServer)}/remoteEntry.mjs` : `${SharedLib2.removeTrailingSlash(appServer)}/dashboard-app/remoteEntry.mjs`, format: "esm", from: "vite", module: void 0 };
423
+ import_shared_embed.remotesMap[appServer] = {
424
+ url: appServer?.startsWith("http://localhost") ? `${SharedLib2.removeTrailingSlash(appServer)}/remoteEntry.mjs` : `${SharedLib2.removeTrailingSlash(appServer)}/dashboard-app/remoteEntry.mjs`,
425
+ format: "esm",
426
+ from: "vite",
427
+ module: void 0
428
+ };
422
429
  return (0, import_shared_embed.__federationMethodGetRemote)(appServer, "./DashboardApp").then((module2) => {
423
430
  const wrappedModule = (0, import_shared_embed.__federationMethodWrapDefault)(module2, true);
424
431
  import_shared_embed.remotesMap[appServer].module = wrappedModule;
@@ -721,68 +728,70 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
721
728
  return [dashboardStyles];
722
729
  }
723
730
  render() {
724
- let toBeRenderedHTML = import_lit2.html``;
731
+ let toBeRenderedHTML;
725
732
  const loader = import_lit2.html`
726
733
  <div
727
- class="luzmo-container-loader"
728
- id="luzmo-container-loader-${this._containerId}"
729
- style=${(0, import_style_map.styleMap)(
734
+ class="luzmo-container-loader"
735
+ id="luzmo-container-loader-${this._containerId}"
736
+ style=${(0, import_style_map.styleMap)(
730
737
  this._containerLoaderStyle
731
738
  )}
732
- >
733
- <div
734
- class="luzmo-loader"
735
- id="luzmo-loader-${this._containerId}"
736
- style=${(0, import_style_map.styleMap)(this._loaderStyle)}
737
- >
738
- <div
739
- class="luzmo-lc"
740
- style=${(0, import_style_map.styleMap)(this._lcStyle)}
741
- >
742
- <div
743
- class="luzmo-loading-circle"
744
- style=${(0, import_style_map.styleMap)(
739
+ >
740
+ <div
741
+ class="luzmo-loader"
742
+ id="luzmo-loader-${this._containerId}"
743
+ style=${(0, import_style_map.styleMap)(this._loaderStyle)}
744
+ >
745
+ <div
746
+ class="luzmo-lc"
747
+ style=${(0, import_style_map.styleMap)(this._lcStyle)}
748
+ >
749
+ <div
750
+ class="luzmo-loading-circle"
751
+ style=${(0, import_style_map.styleMap)(
745
752
  this._loadingCircleStyle
746
753
  )}
747
- ></div>
748
- ${this._itemEmbedding ? "" : import_lit2.html`
749
- <div
750
- class="luzmo-loading-message"
751
- style=${(0, import_style_map.styleMap)({ color: this.loaderFontColor })}
752
- >
753
- ${this._loaderMsg}
754
- </div>
755
- `}
754
+ ></div>
755
+ ${this._itemEmbedding ? "" : import_lit2.html`
756
+ <div
757
+ class="luzmo-loading-message"
758
+ style=${(0, import_style_map.styleMap)({ color: this.loaderFontColor })}
759
+ >
760
+ ${this._loaderMsg}
756
761
  </div>
757
- </div>
758
- </div>
762
+ `}
763
+ </div>
764
+ </div>
765
+ </div>
759
766
  `;
760
767
  if (this.getIsViewMode()) {
761
768
  toBeRenderedHTML = this.isLibraryLoaded ? import_lit2.html`
762
- ${this.dashboardId || this.dashboardSlug ? import_lit2.html`<dashboard-component dashboard-id="${this.params.dashboardId}" app-server="${this.params.appServer}" api-host="${this.params.apiHost}"></dashboard-component>` : import_lit2.html`
769
+ ${this.dashboardId || this.dashboardSlug ? import_lit2.html`
770
+ <dashboard-component dashboard-id="${this.params.dashboardId}" app-server="${this.params.appServer}"
771
+ api-host="${this.params.apiHost}"></dashboard-component>` : import_lit2.html`
763
772
  <div id="luzmo-error-${this._containerId}">
764
- <h3 class="luzmo-error">${this.browserErrorMsg}</h3>
765
- </div>
773
+ <h3 class="luzmo-error">${this.browserErrorMsg}</h3>
774
+ </div>
766
775
  `}
767
776
  ` : import_lit2.html`${loader}`;
768
777
  } else {
769
778
  toBeRenderedHTML = import_lit2.html`
770
- ${this.dashboardId || this.dashboardSlug ? import_lit2.html`
771
- ${loader}
772
- <iframe
773
- class="luzmo-embed-dashboard"
774
- id="${this._iframeId}"
775
- name="${this._iframeId}"
776
- style=${(0, import_style_map.styleMap)(this.iframeStyle)}
777
- src="${this._iframeUrl}"
778
- frameborder="0"
779
- ></iframe>
780
- ` : import_lit2.html`<!-- the dashboard will inititialize when you provide a dashboardSlug or a dashboardId -->`}
779
+ ${this.dashboardId || this.dashboardSlug ? import_lit2.html`
780
+ ${loader}
781
+ <iframe
782
+ class="luzmo-embed-dashboard"
783
+ id="${this._iframeId}"
784
+ name="${this._iframeId}"
785
+ style=${(0, import_style_map.styleMap)(this.iframeStyle)}
786
+ src="${this._iframeUrl}"
787
+ frameborder="0"
788
+ ></iframe>
789
+ ` : import_lit2.html`<!-- the dashboard will inititialize when you provide a dashboardSlug or a dashboardId -->`}
781
790
  ${this.browserError ? import_lit2.html`
782
- <div id="luzmo-error-${this._containerId}">
783
- <h3 class="luzmo-error">${this.browserErrorMsg}</h3>
784
- </div>
785
- ` : ""}
791
+ <div id="luzmo-error-${this._containerId}">
792
+ <h3 class="luzmo-error">${this.browserErrorMsg}</h3>
793
+ </div>
794
+ ` : ""}
786
795
  `;
787
796
  }
788
797
  return import_lit2.html`
@@ -915,10 +924,7 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
915
924
  return SharedLib2.setPreview(this, this.iframe, preview);
916
925
  }
917
926
  getIsViewMode() {
918
- if (this.experimental && this.params.editMode === "view" || this.params.editMode === void 0) {
919
- return true;
920
- }
921
- return false;
927
+ return this.experimental && this.params.editMode === "view" || this.params.editMode === void 0;
922
928
  }
923
929
  };
924
930
  __decorateClass([
@@ -1075,16 +1081,14 @@ __decorateClass([
1075
1081
  __decorateClass([
1076
1082
  (0, import_decorators.state)()
1077
1083
  ], LuzmoDashboard.prototype, "dashboardReference", 2);
1078
- LuzmoDashboard = __decorateClass([
1079
- (0, import_decorators.customElement)("luzmo-dashboard")
1080
- ], LuzmoDashboard);
1081
- var LuzmoDashboardWebComponent = class extends LuzmoDashboard {
1084
+
1085
+ // libs/embed-libs/embed/src/lib/dashboard-component/dashboard-component.ts
1086
+ var LuzmoDashboard2 = class extends LuzmoDashboard {
1082
1087
  };
1083
- LuzmoDashboardWebComponent = __decorateClass([
1084
- (0, import_decorators.customElement)("luzmo-dashboard-web-component")
1085
- ], LuzmoDashboardWebComponent);
1088
+ LuzmoDashboard2 = __decorateClass([
1089
+ (0, import_decorators2.customElement)("luzmo-dashboard")
1090
+ ], LuzmoDashboard2);
1086
1091
  // Annotate the CommonJS export names for ESM import in node:
1087
1092
  0 && (module.exports = {
1088
- LuzmoDashboard,
1089
- LuzmoDashboardWebComponent
1093
+ LuzmoDashboard
1090
1094
  });
package/index.d.ts CHANGED
@@ -1 +1,2 @@
1
+ export type { LoadEvent, ChangedFiltersEvent, CustomEvent, ItemsRenderedEvent, ExportedEvent, DashboardActionEvent, Filter, FilterExpression, FilterOrigin, FilterInput, FilterGroup, ExportType, ItemData, ExportDashboard, AccessibleDashboard, SetEditMode } from '@luzmo/shared-embed';
1
2
  export * from './lib/dashboard-component/dashboard-component';
package/index.js CHANGED
@@ -11,13 +11,17 @@ var __decorateClass = (decorators, target, key, kind) => {
11
11
  };
12
12
 
13
13
  // libs/embed-libs/embed/src/lib/dashboard-component/dashboard-component.ts
14
+ import {
15
+ customElement
16
+ } from "lit/decorators.js";
17
+
18
+ // libs/embed-libs/embed/src/lib/dashboard-component/dashboard-base.ts
14
19
  import * as SharedLib2 from "@luzmo/shared-embed";
15
20
  import {
16
21
  html,
17
22
  LitElement
18
23
  } from "lit";
19
24
  import {
20
- customElement,
21
25
  property,
22
26
  query,
23
27
  state
@@ -33,7 +37,7 @@ import {
33
37
  } from "@luzmo/shared-embed";
34
38
 
35
39
  // libs/embed-libs/embed/package.json
36
- var version = "5.0.10";
40
+ var version = "5.0.11";
37
41
 
38
42
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
39
43
  var LuzmoService = class {
@@ -312,7 +316,7 @@ var dashboardStyles = css`
312
316
  }
313
317
  `;
314
318
 
315
- // libs/embed-libs/embed/src/lib/dashboard-component/dashboard-component.ts
319
+ // libs/embed-libs/embed/src/lib/dashboard-component/dashboard-base.ts
316
320
  var LuzmoDashboard = class extends LitElement {
317
321
  constructor(inputParameters) {
318
322
  super();
@@ -399,7 +403,12 @@ var LuzmoDashboard = class extends LitElement {
399
403
  if (remotesMap[appServer]) {
400
404
  return Promise.resolve(remotesMap[appServer].module);
401
405
  }
402
- remotesMap[appServer] = { url: appServer?.startsWith("http://localhost") ? `${SharedLib2.removeTrailingSlash(appServer)}/remoteEntry.mjs` : `${SharedLib2.removeTrailingSlash(appServer)}/dashboard-app/remoteEntry.mjs`, format: "esm", from: "vite", module: void 0 };
406
+ remotesMap[appServer] = {
407
+ url: appServer?.startsWith("http://localhost") ? `${SharedLib2.removeTrailingSlash(appServer)}/remoteEntry.mjs` : `${SharedLib2.removeTrailingSlash(appServer)}/dashboard-app/remoteEntry.mjs`,
408
+ format: "esm",
409
+ from: "vite",
410
+ module: void 0
411
+ };
403
412
  return __federationMethodGetRemote(appServer, "./DashboardApp").then((module) => {
404
413
  const wrappedModule = __federationMethodWrapDefault(module, true);
405
414
  remotesMap[appServer].module = wrappedModule;
@@ -702,68 +711,70 @@ var LuzmoDashboard = class extends LitElement {
702
711
  return [dashboardStyles];
703
712
  }
704
713
  render() {
705
- let toBeRenderedHTML = html``;
714
+ let toBeRenderedHTML;
706
715
  const loader = html`
707
716
  <div
708
- class="luzmo-container-loader"
709
- id="luzmo-container-loader-${this._containerId}"
710
- style=${styleMap(
717
+ class="luzmo-container-loader"
718
+ id="luzmo-container-loader-${this._containerId}"
719
+ style=${styleMap(
711
720
  this._containerLoaderStyle
712
721
  )}
713
- >
714
- <div
715
- class="luzmo-loader"
716
- id="luzmo-loader-${this._containerId}"
717
- style=${styleMap(this._loaderStyle)}
718
- >
719
- <div
720
- class="luzmo-lc"
721
- style=${styleMap(this._lcStyle)}
722
- >
723
- <div
724
- class="luzmo-loading-circle"
725
- style=${styleMap(
722
+ >
723
+ <div
724
+ class="luzmo-loader"
725
+ id="luzmo-loader-${this._containerId}"
726
+ style=${styleMap(this._loaderStyle)}
727
+ >
728
+ <div
729
+ class="luzmo-lc"
730
+ style=${styleMap(this._lcStyle)}
731
+ >
732
+ <div
733
+ class="luzmo-loading-circle"
734
+ style=${styleMap(
726
735
  this._loadingCircleStyle
727
736
  )}
728
- ></div>
729
- ${this._itemEmbedding ? "" : html`
730
- <div
731
- class="luzmo-loading-message"
732
- style=${styleMap({ color: this.loaderFontColor })}
733
- >
734
- ${this._loaderMsg}
735
- </div>
736
- `}
737
+ ></div>
738
+ ${this._itemEmbedding ? "" : html`
739
+ <div
740
+ class="luzmo-loading-message"
741
+ style=${styleMap({ color: this.loaderFontColor })}
742
+ >
743
+ ${this._loaderMsg}
737
744
  </div>
738
- </div>
739
- </div>
745
+ `}
746
+ </div>
747
+ </div>
748
+ </div>
740
749
  `;
741
750
  if (this.getIsViewMode()) {
742
751
  toBeRenderedHTML = this.isLibraryLoaded ? html`
743
- ${this.dashboardId || this.dashboardSlug ? html`<dashboard-component dashboard-id="${this.params.dashboardId}" app-server="${this.params.appServer}" api-host="${this.params.apiHost}"></dashboard-component>` : html`
752
+ ${this.dashboardId || this.dashboardSlug ? html`
753
+ <dashboard-component dashboard-id="${this.params.dashboardId}" app-server="${this.params.appServer}"
754
+ api-host="${this.params.apiHost}"></dashboard-component>` : html`
744
755
  <div id="luzmo-error-${this._containerId}">
745
- <h3 class="luzmo-error">${this.browserErrorMsg}</h3>
746
- </div>
756
+ <h3 class="luzmo-error">${this.browserErrorMsg}</h3>
757
+ </div>
747
758
  `}
748
759
  ` : html`${loader}`;
749
760
  } else {
750
761
  toBeRenderedHTML = html`
751
- ${this.dashboardId || this.dashboardSlug ? html`
752
- ${loader}
753
- <iframe
754
- class="luzmo-embed-dashboard"
755
- id="${this._iframeId}"
756
- name="${this._iframeId}"
757
- style=${styleMap(this.iframeStyle)}
758
- src="${this._iframeUrl}"
759
- frameborder="0"
760
- ></iframe>
761
- ` : html`<!-- the dashboard will inititialize when you provide a dashboardSlug or a dashboardId -->`}
762
+ ${this.dashboardId || this.dashboardSlug ? html`
763
+ ${loader}
764
+ <iframe
765
+ class="luzmo-embed-dashboard"
766
+ id="${this._iframeId}"
767
+ name="${this._iframeId}"
768
+ style=${styleMap(this.iframeStyle)}
769
+ src="${this._iframeUrl}"
770
+ frameborder="0"
771
+ ></iframe>
772
+ ` : html`<!-- the dashboard will inititialize when you provide a dashboardSlug or a dashboardId -->`}
762
773
  ${this.browserError ? html`
763
- <div id="luzmo-error-${this._containerId}">
764
- <h3 class="luzmo-error">${this.browserErrorMsg}</h3>
765
- </div>
766
- ` : ""}
774
+ <div id="luzmo-error-${this._containerId}">
775
+ <h3 class="luzmo-error">${this.browserErrorMsg}</h3>
776
+ </div>
777
+ ` : ""}
767
778
  `;
768
779
  }
769
780
  return html`
@@ -896,10 +907,7 @@ var LuzmoDashboard = class extends LitElement {
896
907
  return SharedLib2.setPreview(this, this.iframe, preview);
897
908
  }
898
909
  getIsViewMode() {
899
- if (this.experimental && this.params.editMode === "view" || this.params.editMode === void 0) {
900
- return true;
901
- }
902
- return false;
910
+ return this.experimental && this.params.editMode === "view" || this.params.editMode === void 0;
903
911
  }
904
912
  };
905
913
  __decorateClass([
@@ -1056,15 +1064,13 @@ __decorateClass([
1056
1064
  __decorateClass([
1057
1065
  state()
1058
1066
  ], LuzmoDashboard.prototype, "dashboardReference", 2);
1059
- LuzmoDashboard = __decorateClass([
1060
- customElement("luzmo-dashboard")
1061
- ], LuzmoDashboard);
1062
- var LuzmoDashboardWebComponent = class extends LuzmoDashboard {
1067
+
1068
+ // libs/embed-libs/embed/src/lib/dashboard-component/dashboard-component.ts
1069
+ var LuzmoDashboard2 = class extends LuzmoDashboard {
1063
1070
  };
1064
- LuzmoDashboardWebComponent = __decorateClass([
1065
- customElement("luzmo-dashboard-web-component")
1066
- ], LuzmoDashboardWebComponent);
1071
+ LuzmoDashboard2 = __decorateClass([
1072
+ customElement("luzmo-dashboard")
1073
+ ], LuzmoDashboard2);
1067
1074
  export {
1068
- LuzmoDashboard,
1069
- LuzmoDashboardWebComponent
1075
+ LuzmoDashboard2 as LuzmoDashboard
1070
1076
  };
@@ -0,0 +1 @@
1
+ export * from './lib/dashboard-component/dashboard-web-component';
@@ -0,0 +1,96 @@
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
+ private attributesMap;
58
+ _loadTimeoutHandle?: number;
59
+ _onResize: () => void;
60
+ loaderSize: number;
61
+ borderWidth: number;
62
+ minHeight: number;
63
+ iframeHeight?: string;
64
+ iframeWidth?: string;
65
+ _resizeObserver: ResizeObserver;
66
+ constructor(inputParameters?: Record<keyof LuzmoDashboard, any>);
67
+ private loadLibrary;
68
+ private setInputParameters;
69
+ connectedCallback(): void;
70
+ disconnectedCallback(): void;
71
+ firstUpdated(): void;
72
+ initComponent(): void;
73
+ setAllAttributes(): void;
74
+ updated(changedProperties: PropertyValues): void;
75
+ _setOptions(): SharedLib.DashboardContentParams;
76
+ _updateIframeUrl(): void;
77
+ _setupLoader(): void;
78
+ _displayError(): void;
79
+ _calculateDimAfterDashboardLoaded(): void;
80
+ _loaderStyles(): void;
81
+ static get styles(): import("lit").CSSResult[];
82
+ render(): TemplateResult;
83
+ getDashboards(): Promise<LuzmoDashboard[]>;
84
+ getData(itemId: string): Promise<SharedLib.ItemData>;
85
+ getFilters(): Promise<SharedLib.FilterGroup[]>;
86
+ setFilters<K extends CombinedFilterInput>(itemId: string, filters: K): Promise<SharedLib.SetFilters>;
87
+ setAuthorization(key: string, token: string): Promise<void>;
88
+ refreshData(itemId?: string): Promise<void>;
89
+ reloadDashboard(): Promise<void>;
90
+ exportDashboard(format?: SharedLib.ExportType): Promise<SharedLib.ExportDashboard>;
91
+ getAccessibleDashboards(): Promise<SharedLib.AccessibleDashboard[]>;
92
+ addFilters(itemId: string, filters: SharedLib.FilterGroup[]): Promise<SharedLib.AddFilters>;
93
+ setEditMode(editMode?: SharedLib.DashboardEditMode): Promise<SharedLib.SetEditMode>;
94
+ setPreview(preview: boolean): Promise<SharedLib.SetPreview>;
95
+ getIsViewMode(): boolean;
96
+ }
@@ -1,94 +1,3 @@
1
- import * as SharedLib from '@luzmo/shared-embed';
2
- import { LitElement, PropertyValues, TemplateResult } from 'lit';
3
- import { CombinedFilterInput } from '@luzmo/shared-embed';
4
- export declare class LuzmoDashboard extends LitElement implements SharedLib.ES6LuzmoDashboard {
5
- container: HTMLElement;
6
- luzmoEmbedContainer: HTMLElement;
7
- iframe: HTMLIFrameElement;
8
- dashboardId?: SharedLib.DashboardInputs['dashboardId'];
9
- dashboardSlug?: SharedLib.DashboardInputs['dashboardSlug'];
10
- itemId?: SharedLib.DashboardInputs['itemId'];
11
- language: SharedLib.DashboardInputs['language'];
12
- qeVersion: SharedLib.DashboardInputs['qeVersion'];
13
- screenMode: SharedLib.DashboardInputs['screenMode'];
14
- switchScreenModeOnResize: boolean;
15
- editMode: SharedLib.DashboardInputs['editMode'];
16
- mainColor?: SharedLib.DashboardInputs['mainColor'];
17
- accentColor?: SharedLib.DashboardInputs['accentColor'];
18
- authToken?: SharedLib.DashboardInputs['authToken'];
19
- authKey?: SharedLib.DashboardInputs['authKey'];
20
- loaderBackground?: SharedLib.DashboardInputs['loaderBackground'];
21
- loaderFontColor?: SharedLib.DashboardInputs['loaderFontColor'];
22
- loaderSpinnerColor?: SharedLib.DashboardInputs['loaderSpinnerColor'];
23
- loaderSpinnerBackground?: SharedLib.DashboardInputs['loaderSpinnerBackground'];
24
- appServer?: SharedLib.DashboardInputs['appServer'];
25
- timezoneId?: SharedLib.DashboardInputs['timezoneId'];
26
- apiHost?: SharedLib.DashboardInputs['apiHost'];
27
- itemDimensions: SharedLib.DashboardInputs['itemDimensions'];
28
- experimental: boolean;
29
- _containerId: string;
30
- _iframeId: string;
31
- params: SharedLib.DashboardContentParams;
32
- _iframeUrl?: string;
33
- iframeLoaded: boolean;
34
- promises: SharedLib.DashboardPromises;
35
- iframeStyle: SharedLib.IframeStyles;
36
- _containerStyle: SharedLib.ContainerStyles;
37
- _loaderStyle: SharedLib.LoaderStyles;
38
- _lcStyle: SharedLib.LcStyles;
39
- _loadingCircleStyle: SharedLib.PlStyles;
40
- _containerLoaderStyle: SharedLib.ContainerLoaderStyles;
41
- _loaderMsg: string;
42
- containerWidth?: number;
43
- dimensions?: SharedLib.DashboardDimensions;
44
- currentScreenMode?: SharedLib.ScreenMode;
45
- _itemEmbedding: boolean;
46
- browserError: boolean;
47
- browserErrorMsg: string;
48
- dashboardError: boolean;
49
- browserNotSupported: any[];
50
- VERSION: string;
51
- protected isLibraryLoaded: boolean;
52
- protected dashboardReference: SharedLib.LuzmoElement;
53
- private attributesMap;
54
- _loadTimeoutHandle?: number;
55
- _onResize: () => void;
56
- loaderSize: number;
57
- borderWidth: number;
58
- minHeight: number;
59
- iframeHeight?: string;
60
- iframeWidth?: string;
61
- _resizeObserver: ResizeObserver;
62
- constructor(inputParameters?: Record<keyof LuzmoDashboard, any>);
63
- private loadLibrary;
64
- private setInputParameters;
65
- connectedCallback(): void;
66
- disconnectedCallback(): void;
67
- firstUpdated(): void;
68
- initComponent(): void;
69
- setAllAttributes(): void;
70
- updated(changedProperties: PropertyValues): void;
71
- _setOptions(): SharedLib.DashboardContentParams;
72
- _updateIframeUrl(): void;
73
- _setupLoader(): void;
74
- _displayError(): void;
75
- _calculateDimAfterDashboardLoaded(): void;
76
- _loaderStyles(): void;
77
- static get styles(): import("lit").CSSResult[];
78
- render(): TemplateResult<1>;
79
- getDashboards(): Promise<LuzmoDashboard[]>;
80
- getData(itemId: string): Promise<SharedLib.ItemData>;
81
- getFilters(): Promise<SharedLib.FilterGroup[]>;
82
- setFilters<K extends CombinedFilterInput>(itemId: string, filters: K): Promise<SharedLib.SetFilters>;
83
- setAuthorization(key: string, token: string): Promise<void>;
84
- refreshData(itemId?: string): Promise<void>;
85
- reloadDashboard(): Promise<void>;
86
- exportDashboard(format?: SharedLib.ExportType): Promise<SharedLib.ExportDashboard>;
87
- getAccessibleDashboards(): Promise<SharedLib.AccessibleDashboard[]>;
88
- addFilters(itemId: string, filters: SharedLib.FilterGroup[]): Promise<SharedLib.AddFilters>;
89
- setEditMode(editMode?: SharedLib.DashboardEditMode): Promise<SharedLib.SetEditMode>;
90
- setPreview(preview: boolean): Promise<SharedLib.SetPreview>;
91
- getIsViewMode(): boolean;
92
- }
93
- export declare class LuzmoDashboardWebComponent extends LuzmoDashboard {
1
+ import { LuzmoDashboard as LuzmoBaseDashboard } from './dashboard-base';
2
+ export declare class LuzmoDashboard extends LuzmoBaseDashboard {
94
3
  }
@@ -0,0 +1,3 @@
1
+ import { LuzmoDashboard } from './dashboard-base';
2
+ export declare class LuzmoDashboardWebComponent extends LuzmoDashboard {
3
+ }