@luzmo/embed 5.0.14-beta.5 → 5.1.0-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/index.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.0.14-beta.5";
58
+ var version = "5.1.0-beta.0";
59
59
 
60
60
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
61
61
  var LuzmoService = class {
@@ -1196,6 +1196,15 @@ __decorateClass([
1196
1196
  __decorateClass([
1197
1197
  (0, import_decorators3.property)()
1198
1198
  ], LuzmoBaseVizItem.prototype, "version", 2);
1199
+ __decorateClass([
1200
+ (0, import_decorators3.property)()
1201
+ ], LuzmoBaseVizItem.prototype, "contextId", 2);
1202
+ __decorateClass([
1203
+ (0, import_decorators3.property)()
1204
+ ], LuzmoBaseVizItem.prototype, "canFilter", 2);
1205
+ __decorateClass([
1206
+ (0, import_decorators3.property)()
1207
+ ], LuzmoBaseVizItem.prototype, "filtlers", 2);
1199
1208
 
1200
1209
  // libs/embed-libs/embed/src/lib/viz-item/viz-item-component.ts
1201
1210
  var LuzmoVizItem = class extends LuzmoBaseVizItem {
package/index.js CHANGED
@@ -37,7 +37,7 @@ import {
37
37
  } from "@luzmo/shared-embed";
38
38
 
39
39
  // libs/embed-libs/embed/package.json
40
- var version = "5.0.14-beta.5";
40
+ var version = "5.1.0-beta.0";
41
41
 
42
42
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
43
43
  var LuzmoService = class {
@@ -1178,6 +1178,15 @@ __decorateClass([
1178
1178
  __decorateClass([
1179
1179
  property2()
1180
1180
  ], LuzmoBaseVizItem.prototype, "version", 2);
1181
+ __decorateClass([
1182
+ property2()
1183
+ ], LuzmoBaseVizItem.prototype, "contextId", 2);
1184
+ __decorateClass([
1185
+ property2()
1186
+ ], LuzmoBaseVizItem.prototype, "canFilter", 2);
1187
+ __decorateClass([
1188
+ property2()
1189
+ ], LuzmoBaseVizItem.prototype, "filtlers", 2);
1181
1190
 
1182
1191
  // libs/embed-libs/embed/src/lib/viz-item/viz-item-component.ts
1183
1192
  var LuzmoVizItem = class extends LuzmoBaseVizItem {
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.0.14-beta.5";
58
+ var version = "5.1.0-beta.0";
59
59
 
60
60
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
61
61
  var LuzmoService = class {
@@ -1196,6 +1196,15 @@ __decorateClass([
1196
1196
  __decorateClass([
1197
1197
  (0, import_decorators3.property)()
1198
1198
  ], LuzmoBaseVizItem.prototype, "version", 2);
1199
+ __decorateClass([
1200
+ (0, import_decorators3.property)()
1201
+ ], LuzmoBaseVizItem.prototype, "contextId", 2);
1202
+ __decorateClass([
1203
+ (0, import_decorators3.property)()
1204
+ ], LuzmoBaseVizItem.prototype, "canFilter", 2);
1205
+ __decorateClass([
1206
+ (0, import_decorators3.property)()
1207
+ ], LuzmoBaseVizItem.prototype, "filtlers", 2);
1199
1208
 
1200
1209
  // libs/embed-libs/embed/src/lib/viz-item/viz-item-web-component.ts
1201
1210
  var LuzmoVizItemWebComponent = class extends LuzmoBaseVizItem {
package/index.libs.js CHANGED
@@ -35,7 +35,7 @@ import {
35
35
  } from "@luzmo/shared-embed";
36
36
 
37
37
  // libs/embed-libs/embed/package.json
38
- var version = "5.0.14-beta.5";
38
+ var version = "5.1.0-beta.0";
39
39
 
40
40
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
41
41
  var LuzmoService = class {
@@ -1176,6 +1176,15 @@ __decorateClass([
1176
1176
  __decorateClass([
1177
1177
  property2()
1178
1178
  ], LuzmoBaseVizItem.prototype, "version", 2);
1179
+ __decorateClass([
1180
+ property2()
1181
+ ], LuzmoBaseVizItem.prototype, "contextId", 2);
1182
+ __decorateClass([
1183
+ property2()
1184
+ ], LuzmoBaseVizItem.prototype, "canFilter", 2);
1185
+ __decorateClass([
1186
+ property2()
1187
+ ], LuzmoBaseVizItem.prototype, "filtlers", 2);
1179
1188
 
1180
1189
  // libs/embed-libs/embed/src/lib/viz-item/viz-item-web-component.ts
1181
1190
  var LuzmoVizItemWebComponent = class extends LuzmoBaseVizItem {
@@ -9,6 +9,9 @@ export declare class LuzmoBaseVizItem extends LitElement {
9
9
  authKey?: string;
10
10
  authToken?: string;
11
11
  version?: string;
12
+ contextId?: string;
13
+ canFilter?: SharedLib.CanFilter;
14
+ filtlers?: SharedLib.FilterGroup[];
12
15
  chartElement: HTMLElement;
13
16
  static styles: import("lit").CSSResult;
14
17
  constructor();
@@ -1495,7 +1495,10 @@ var libraryTypeToWebComponentTypeMapping = {
1495
1495
  appServer: "app-server",
1496
1496
  apiHost: "api-host",
1497
1497
  authKey: "auth-key",
1498
- authToken: "auth-token"
1498
+ authToken: "auth-token",
1499
+ contextId: "context-id",
1500
+ canFilter: "can-filter",
1501
+ filters: "filters"
1499
1502
  };
1500
1503
 
1501
1504
  // libs/embed-libs/shared-embed/src/lib/constants/class-constants.ts
@@ -1930,7 +1933,7 @@ var o5 = e6(class extends i4 {
1930
1933
  });
1931
1934
 
1932
1935
  // libs/embed-libs/embed/package.json
1933
- var version = "5.0.14-beta.5";
1936
+ var version = "5.1.0-beta.0";
1934
1937
 
1935
1938
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
1936
1939
  var LuzmoService = class {
@@ -3063,6 +3066,15 @@ __decorateClass([
3063
3066
  __decorateClass([
3064
3067
  n3()
3065
3068
  ], LuzmoBaseVizItem.prototype, "version", 2);
3069
+ __decorateClass([
3070
+ n3()
3071
+ ], LuzmoBaseVizItem.prototype, "contextId", 2);
3072
+ __decorateClass([
3073
+ n3()
3074
+ ], LuzmoBaseVizItem.prototype, "canFilter", 2);
3075
+ __decorateClass([
3076
+ n3()
3077
+ ], LuzmoBaseVizItem.prototype, "filtlers", 2);
3066
3078
 
3067
3079
  // libs/embed-libs/embed/src/lib/viz-item/viz-item-web-component.ts
3068
3080
  var LuzmoVizItemWebComponent = class extends LuzmoBaseVizItem {
@@ -1495,7 +1495,10 @@ var libraryTypeToWebComponentTypeMapping = {
1495
1495
  appServer: "app-server",
1496
1496
  apiHost: "api-host",
1497
1497
  authKey: "auth-key",
1498
- authToken: "auth-token"
1498
+ authToken: "auth-token",
1499
+ contextId: "context-id",
1500
+ canFilter: "can-filter",
1501
+ filters: "filters"
1499
1502
  };
1500
1503
 
1501
1504
  // libs/embed-libs/shared-embed/src/lib/constants/class-constants.ts
@@ -1930,7 +1933,7 @@ var o5 = e6(class extends i4 {
1930
1933
  });
1931
1934
 
1932
1935
  // libs/embed-libs/embed/package.json
1933
- var version = "5.0.14-beta.5";
1936
+ var version = "5.1.0-beta.0";
1934
1937
 
1935
1938
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
1936
1939
  var LuzmoService = class {
@@ -3063,6 +3066,15 @@ __decorateClass([
3063
3066
  __decorateClass([
3064
3067
  n3()
3065
3068
  ], LuzmoBaseVizItem.prototype, "version", 2);
3069
+ __decorateClass([
3070
+ n3()
3071
+ ], LuzmoBaseVizItem.prototype, "contextId", 2);
3072
+ __decorateClass([
3073
+ n3()
3074
+ ], LuzmoBaseVizItem.prototype, "canFilter", 2);
3075
+ __decorateClass([
3076
+ n3()
3077
+ ], LuzmoBaseVizItem.prototype, "filtlers", 2);
3066
3078
 
3067
3079
  // libs/embed-libs/embed/src/lib/viz-item/viz-item-component.ts
3068
3080
  var LuzmoVizItem = class extends LuzmoBaseVizItem {
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@luzmo/embed",
3
- "version": "5.0.14-beta.5",
3
+ "version": "5.1.0-beta.0",
4
4
  "dependencies": {
5
5
  "lit": "3.1.2",
6
- "@luzmo/shared-embed": "5.0.7-beta.0"
6
+ "@luzmo/shared-embed": "5.0.8-beta.0"
7
7
  },
8
8
  "type": "module",
9
9
  "keywords": [
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,3 @@
1
+ import { LuzmoDashboard as LuzmoBaseDashboard } from './dashboard-base';
2
+ export declare class LuzmoDashboard extends LuzmoBaseDashboard {
3
+ }
@@ -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
+ import { LuzmoDashboard } from './dashboard-component/dashboard-component';
2
+ declare class LuzmoService {
3
+ _components: LuzmoDashboard[];
4
+ }
5
+ declare const _default: LuzmoService;
6
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { LuzmoBaseVizItem } from './viz-item.base';
2
+ export declare class LuzmoVizItem extends LuzmoBaseVizItem {
3
+ }
@@ -0,0 +1,23 @@
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
+ filtlers?: 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
+ }