@luzmo/embed 5.1.0-beta.3 → 5.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 CHANGED
@@ -56,7 +56,7 @@ var import_style_map = require("lit/directives/style-map.js");
56
56
  var import_shared_embed = require("@luzmo/shared-embed");
57
57
 
58
58
  // libs/embed-libs/embed/package.json
59
- var version = "5.1.0-beta.3";
59
+ var version = "5.1.0-beta.4";
60
60
 
61
61
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
62
62
  var LuzmoService = class {
@@ -1119,8 +1119,8 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
1119
1119
  }
1120
1120
  async firstUpdated(_changedProperties) {
1121
1121
  super.firstUpdated(_changedProperties);
1122
- await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
1123
1122
  if (this.type) {
1123
+ await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
1124
1124
  this.createAndAppendElement();
1125
1125
  }
1126
1126
  }
@@ -1146,7 +1146,7 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
1146
1146
  }
1147
1147
  }
1148
1148
  }
1149
- updated(changedProperties) {
1149
+ async updated(changedProperties) {
1150
1150
  if (this.chartElement) {
1151
1151
  for (const [propertyName] of changedProperties.entries()) {
1152
1152
  const mappedAttributeName = SharedLib3.libraryTypeToWebComponentTypeMapping[propertyName] ?? propertyName;
@@ -1155,6 +1155,7 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
1155
1155
  }
1156
1156
  } else {
1157
1157
  if (this.type) {
1158
+ await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
1158
1159
  this.createAndAppendElement();
1159
1160
  }
1160
1161
  }
package/index.js CHANGED
@@ -34,7 +34,7 @@ import {
34
34
  } from "@luzmo/shared-embed";
35
35
 
36
36
  // libs/embed-libs/embed/package.json
37
- var version = "5.1.0-beta.3";
37
+ var version = "5.1.0-beta.4";
38
38
 
39
39
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
40
40
  var LuzmoService = class {
@@ -1097,8 +1097,8 @@ var LuzmoBaseVizItem = class extends LitElement2 {
1097
1097
  }
1098
1098
  async firstUpdated(_changedProperties) {
1099
1099
  super.firstUpdated(_changedProperties);
1100
- await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
1101
1100
  if (this.type) {
1101
+ await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
1102
1102
  this.createAndAppendElement();
1103
1103
  }
1104
1104
  }
@@ -1124,7 +1124,7 @@ var LuzmoBaseVizItem = class extends LitElement2 {
1124
1124
  }
1125
1125
  }
1126
1126
  }
1127
- updated(changedProperties) {
1127
+ async updated(changedProperties) {
1128
1128
  if (this.chartElement) {
1129
1129
  for (const [propertyName] of changedProperties.entries()) {
1130
1130
  const mappedAttributeName = SharedLib3.libraryTypeToWebComponentTypeMapping[propertyName] ?? propertyName;
@@ -1133,6 +1133,7 @@ var LuzmoBaseVizItem = class extends LitElement2 {
1133
1133
  }
1134
1134
  } else {
1135
1135
  if (this.type) {
1136
+ await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
1136
1137
  this.createAndAppendElement();
1137
1138
  }
1138
1139
  }
package/index.libs.cjs CHANGED
@@ -55,7 +55,7 @@ var import_style_map = require("lit/directives/style-map.js");
55
55
  var import_shared_embed = require("@luzmo/shared-embed");
56
56
 
57
57
  // libs/embed-libs/embed/package.json
58
- var version = "5.1.0-beta.3";
58
+ var version = "5.1.0-beta.4";
59
59
 
60
60
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
61
61
  var LuzmoService = class {
@@ -1113,8 +1113,8 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
1113
1113
  }
1114
1114
  async firstUpdated(_changedProperties) {
1115
1115
  super.firstUpdated(_changedProperties);
1116
- await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
1117
1116
  if (this.type) {
1117
+ await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
1118
1118
  this.createAndAppendElement();
1119
1119
  }
1120
1120
  }
@@ -1140,7 +1140,7 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
1140
1140
  }
1141
1141
  }
1142
1142
  }
1143
- updated(changedProperties) {
1143
+ async updated(changedProperties) {
1144
1144
  if (this.chartElement) {
1145
1145
  for (const [propertyName] of changedProperties.entries()) {
1146
1146
  const mappedAttributeName = SharedLib3.libraryTypeToWebComponentTypeMapping[propertyName] ?? propertyName;
@@ -1149,6 +1149,7 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
1149
1149
  }
1150
1150
  } else {
1151
1151
  if (this.type) {
1152
+ await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
1152
1153
  this.createAndAppendElement();
1153
1154
  }
1154
1155
  }
package/index.libs.js CHANGED
@@ -32,7 +32,7 @@ import {
32
32
  } from "@luzmo/shared-embed";
33
33
 
34
34
  // libs/embed-libs/embed/package.json
35
- var version = "5.1.0-beta.3";
35
+ var version = "5.1.0-beta.4";
36
36
 
37
37
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
38
38
  var LuzmoService = class {
@@ -1090,8 +1090,8 @@ var LuzmoBaseVizItem = class extends LitElement2 {
1090
1090
  }
1091
1091
  async firstUpdated(_changedProperties) {
1092
1092
  super.firstUpdated(_changedProperties);
1093
- await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
1094
1093
  if (this.type) {
1094
+ await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
1095
1095
  this.createAndAppendElement();
1096
1096
  }
1097
1097
  }
@@ -1117,7 +1117,7 @@ var LuzmoBaseVizItem = class extends LitElement2 {
1117
1117
  }
1118
1118
  }
1119
1119
  }
1120
- updated(changedProperties) {
1120
+ async updated(changedProperties) {
1121
1121
  if (this.chartElement) {
1122
1122
  for (const [propertyName] of changedProperties.entries()) {
1123
1123
  const mappedAttributeName = SharedLib3.libraryTypeToWebComponentTypeMapping[propertyName] ?? propertyName;
@@ -1126,6 +1126,7 @@ var LuzmoBaseVizItem = class extends LitElement2 {
1126
1126
  }
1127
1127
  } else {
1128
1128
  if (this.type) {
1129
+ await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
1129
1130
  this.createAndAppendElement();
1130
1131
  }
1131
1132
  }
@@ -18,6 +18,6 @@ export declare class LuzmoBaseVizItem extends LitElement {
18
18
  protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
19
19
  private createAndAppendElement;
20
20
  private updateVizItemProperties;
21
- updated(changedProperties: PropertyValues): void;
21
+ updated(changedProperties: PropertyValues): Promise<void>;
22
22
  protected render(): unknown;
23
23
  }
@@ -1937,7 +1937,7 @@ var o5 = e6(class extends i4 {
1937
1937
  });
1938
1938
 
1939
1939
  // libs/embed-libs/embed/package.json
1940
- var version = "5.1.0-beta.3";
1940
+ var version = "5.1.0-beta.4";
1941
1941
 
1942
1942
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
1943
1943
  var LuzmoService = class {
@@ -2987,8 +2987,8 @@ var LuzmoBaseVizItem = class extends s3 {
2987
2987
  }
2988
2988
  async firstUpdated(_changedProperties) {
2989
2989
  super.firstUpdated(_changedProperties);
2990
- await loadLibrary(this.appServer, "DashboardApp");
2991
2990
  if (this.type) {
2991
+ await loadLibrary(this.appServer, "DashboardApp");
2992
2992
  this.createAndAppendElement();
2993
2993
  }
2994
2994
  }
@@ -3014,7 +3014,7 @@ var LuzmoBaseVizItem = class extends s3 {
3014
3014
  }
3015
3015
  }
3016
3016
  }
3017
- updated(changedProperties) {
3017
+ async updated(changedProperties) {
3018
3018
  if (this.chartElement) {
3019
3019
  for (const [propertyName] of changedProperties.entries()) {
3020
3020
  const mappedAttributeName = libraryTypeToWebComponentTypeMapping[propertyName] ?? propertyName;
@@ -3023,6 +3023,7 @@ var LuzmoBaseVizItem = class extends s3 {
3023
3023
  }
3024
3024
  } else {
3025
3025
  if (this.type) {
3026
+ await loadLibrary(this.appServer, "DashboardApp");
3026
3027
  this.createAndAppendElement();
3027
3028
  }
3028
3029
  }
@@ -1938,7 +1938,7 @@ var o5 = e6(class extends i4 {
1938
1938
  });
1939
1939
 
1940
1940
  // libs/embed-libs/embed/package.json
1941
- var version = "5.1.0-beta.3";
1941
+ var version = "5.1.0-beta.4";
1942
1942
 
1943
1943
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
1944
1944
  var LuzmoService = class {
@@ -2993,8 +2993,8 @@ var LuzmoBaseVizItem = class extends s3 {
2993
2993
  }
2994
2994
  async firstUpdated(_changedProperties) {
2995
2995
  super.firstUpdated(_changedProperties);
2996
- await loadLibrary(this.appServer, "DashboardApp");
2997
2996
  if (this.type) {
2997
+ await loadLibrary(this.appServer, "DashboardApp");
2998
2998
  this.createAndAppendElement();
2999
2999
  }
3000
3000
  }
@@ -3020,7 +3020,7 @@ var LuzmoBaseVizItem = class extends s3 {
3020
3020
  }
3021
3021
  }
3022
3022
  }
3023
- updated(changedProperties) {
3023
+ async updated(changedProperties) {
3024
3024
  if (this.chartElement) {
3025
3025
  for (const [propertyName] of changedProperties.entries()) {
3026
3026
  const mappedAttributeName = libraryTypeToWebComponentTypeMapping[propertyName] ?? propertyName;
@@ -3029,6 +3029,7 @@ var LuzmoBaseVizItem = class extends s3 {
3029
3029
  }
3030
3030
  } else {
3031
3031
  if (this.type) {
3032
+ await loadLibrary(this.appServer, "DashboardApp");
3032
3033
  this.createAndAppendElement();
3033
3034
  }
3034
3035
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luzmo/embed",
3
- "version": "5.1.0-beta.3",
3
+ "version": "5.1.0-beta.4",
4
4
  "dependencies": {
5
5
  "lit": "3.1.2",
6
6
  "@luzmo/shared-embed": "5.0.8-beta.2"
package/src/index.d.ts DELETED
@@ -1,3 +0,0 @@
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';
@@ -1,97 +0,0 @@
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 setInputParameters;
70
- connectedCallback(): void;
71
- disconnectedCallback(): void;
72
- firstUpdated(): void;
73
- initComponent(): void;
74
- setAllAttributes(): void;
75
- updated(changedProperties: PropertyValues): void;
76
- _setOptions(): SharedLib.DashboardContentParams;
77
- _updateIframeUrl(): void;
78
- _setupLoader(): void;
79
- _displayError(): void;
80
- _calculateDimAfterDashboardLoaded(): void;
81
- _loaderStyles(): void;
82
- static get styles(): import("lit").CSSResult[];
83
- render(): TemplateResult;
84
- getDashboards(): Promise<LuzmoDashboard[]>;
85
- getData(itemId: string): Promise<SharedLib.ItemData>;
86
- getFilters(): Promise<SharedLib.FilterGroup[]>;
87
- setFilters<K extends CombinedFilterInput>(itemId: string, filters: K): Promise<SharedLib.SetFilters>;
88
- setAuthorization(key: string, token: string): Promise<void>;
89
- refreshData(itemId?: string): Promise<void>;
90
- reloadDashboard(): Promise<void>;
91
- exportDashboard(format?: SharedLib.ExportType): Promise<SharedLib.ExportDashboard>;
92
- getAccessibleDashboards(): Promise<SharedLib.AccessibleDashboard[]>;
93
- addFilters(itemId: string, filters: SharedLib.FilterGroup[]): Promise<SharedLib.AddFilters>;
94
- setEditMode(editMode?: SharedLib.DashboardEditMode): Promise<SharedLib.SetEditMode>;
95
- setPreview(preview: boolean): Promise<SharedLib.SetPreview>;
96
- getIsViewMode(): boolean;
97
- }
@@ -1,16 +0,0 @@
1
- import { LuzmoDashboard as LuzmoBaseDashboard } from './dashboard-base';
2
- /**!
3
- * @element luzmo-dashboard
4
- * @description Exposed by @luzmo/embed lib to everyone.
5
- *
6
- * @deprecated Will be removed in next major release. Switch to <luzmo-embed-dashboard> instead.
7
- */
8
- export declare class LuzmoDashboard extends LuzmoBaseDashboard {
9
- }
10
- /**!
11
- * @element luzmo-embed-dashboard
12
- * @description Exposed by @luzmo/embed lib to everyone.
13
- *
14
- */
15
- export declare class LuzmoEmbedDashboard extends LuzmoBaseDashboard {
16
- }
@@ -1 +0,0 @@
1
- export declare const dashboardStyles: import("lit").CSSResult;
@@ -1 +0,0 @@
1
- export declare const _setEventHandler: () => void;
@@ -1,6 +0,0 @@
1
- import { LuzmoDashboard } from './dashboard-component/dashboard-base';
2
- declare class LuzmoService {
3
- _components: LuzmoDashboard[];
4
- }
5
- declare const _default: LuzmoService;
6
- export default _default;
@@ -1,3 +0,0 @@
1
- import { LuzmoBaseVizItem } from './viz-item.base';
2
- export declare class LuzmoVizItem extends LuzmoBaseVizItem {
3
- }
@@ -1,23 +0,0 @@
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
- contextId?: string;
13
- canFilter?: SharedLib.CanFilter;
14
- filters?: SharedLib.FilterGroup[];
15
- chartElement: HTMLElement;
16
- static styles: import("lit").CSSResult;
17
- constructor();
18
- protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
19
- private createAndAppendElement;
20
- private updateVizItemProperties;
21
- updated(changedProperties: PropertyValues): void;
22
- protected render(): unknown;
23
- }