@luzmo/embed 5.1.0-beta.0 → 5.1.0-beta.1

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.1.0-beta.0";
58
+ var version = "5.1.0-beta.1";
59
59
 
60
60
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
61
61
  var LuzmoService = class {
@@ -1200,11 +1200,19 @@ __decorateClass([
1200
1200
  (0, import_decorators3.property)()
1201
1201
  ], LuzmoBaseVizItem.prototype, "contextId", 2);
1202
1202
  __decorateClass([
1203
- (0, import_decorators3.property)()
1203
+ (0, import_decorators3.property)({
1204
+ converter: (value) => {
1205
+ try {
1206
+ return JSON.parse(value);
1207
+ } catch (exc) {
1208
+ return value;
1209
+ }
1210
+ }
1211
+ })
1204
1212
  ], LuzmoBaseVizItem.prototype, "canFilter", 2);
1205
1213
  __decorateClass([
1206
- (0, import_decorators3.property)()
1207
- ], LuzmoBaseVizItem.prototype, "filtlers", 2);
1214
+ (0, import_decorators3.property)({ type: Array })
1215
+ ], LuzmoBaseVizItem.prototype, "filters", 2);
1208
1216
 
1209
1217
  // libs/embed-libs/embed/src/lib/viz-item/viz-item-component.ts
1210
1218
  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.1.0-beta.0";
40
+ var version = "5.1.0-beta.1";
41
41
 
42
42
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
43
43
  var LuzmoService = class {
@@ -1182,11 +1182,19 @@ __decorateClass([
1182
1182
  property2()
1183
1183
  ], LuzmoBaseVizItem.prototype, "contextId", 2);
1184
1184
  __decorateClass([
1185
- property2()
1185
+ property2({
1186
+ converter: (value) => {
1187
+ try {
1188
+ return JSON.parse(value);
1189
+ } catch (exc) {
1190
+ return value;
1191
+ }
1192
+ }
1193
+ })
1186
1194
  ], LuzmoBaseVizItem.prototype, "canFilter", 2);
1187
1195
  __decorateClass([
1188
- property2()
1189
- ], LuzmoBaseVizItem.prototype, "filtlers", 2);
1196
+ property2({ type: Array })
1197
+ ], LuzmoBaseVizItem.prototype, "filters", 2);
1190
1198
 
1191
1199
  // libs/embed-libs/embed/src/lib/viz-item/viz-item-component.ts
1192
1200
  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.1.0-beta.0";
58
+ var version = "5.1.0-beta.1";
59
59
 
60
60
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
61
61
  var LuzmoService = class {
@@ -1200,11 +1200,19 @@ __decorateClass([
1200
1200
  (0, import_decorators3.property)()
1201
1201
  ], LuzmoBaseVizItem.prototype, "contextId", 2);
1202
1202
  __decorateClass([
1203
- (0, import_decorators3.property)()
1203
+ (0, import_decorators3.property)({
1204
+ converter: (value) => {
1205
+ try {
1206
+ return JSON.parse(value);
1207
+ } catch (exc) {
1208
+ return value;
1209
+ }
1210
+ }
1211
+ })
1204
1212
  ], LuzmoBaseVizItem.prototype, "canFilter", 2);
1205
1213
  __decorateClass([
1206
- (0, import_decorators3.property)()
1207
- ], LuzmoBaseVizItem.prototype, "filtlers", 2);
1214
+ (0, import_decorators3.property)({ type: Array })
1215
+ ], LuzmoBaseVizItem.prototype, "filters", 2);
1208
1216
 
1209
1217
  // libs/embed-libs/embed/src/lib/viz-item/viz-item-web-component.ts
1210
1218
  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.1.0-beta.0";
38
+ var version = "5.1.0-beta.1";
39
39
 
40
40
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
41
41
  var LuzmoService = class {
@@ -1180,11 +1180,19 @@ __decorateClass([
1180
1180
  property2()
1181
1181
  ], LuzmoBaseVizItem.prototype, "contextId", 2);
1182
1182
  __decorateClass([
1183
- property2()
1183
+ property2({
1184
+ converter: (value) => {
1185
+ try {
1186
+ return JSON.parse(value);
1187
+ } catch (exc) {
1188
+ return value;
1189
+ }
1190
+ }
1191
+ })
1184
1192
  ], LuzmoBaseVizItem.prototype, "canFilter", 2);
1185
1193
  __decorateClass([
1186
- property2()
1187
- ], LuzmoBaseVizItem.prototype, "filtlers", 2);
1194
+ property2({ type: Array })
1195
+ ], LuzmoBaseVizItem.prototype, "filters", 2);
1188
1196
 
1189
1197
  // libs/embed-libs/embed/src/lib/viz-item/viz-item-web-component.ts
1190
1198
  var LuzmoVizItemWebComponent = class extends LuzmoBaseVizItem {
@@ -11,7 +11,7 @@ export declare class LuzmoBaseVizItem extends LitElement {
11
11
  version?: string;
12
12
  contextId?: string;
13
13
  canFilter?: SharedLib.CanFilter;
14
- filtlers?: SharedLib.FilterGroup[];
14
+ filters?: SharedLib.FilterGroup[];
15
15
  chartElement: HTMLElement;
16
16
  static styles: import("lit").CSSResult;
17
17
  constructor();
@@ -1933,7 +1933,7 @@ var o5 = e6(class extends i4 {
1933
1933
  });
1934
1934
 
1935
1935
  // libs/embed-libs/embed/package.json
1936
- var version = "5.1.0-beta.0";
1936
+ var version = "5.1.0-beta.1";
1937
1937
 
1938
1938
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
1939
1939
  var LuzmoService = class {
@@ -3070,11 +3070,19 @@ __decorateClass([
3070
3070
  n3()
3071
3071
  ], LuzmoBaseVizItem.prototype, "contextId", 2);
3072
3072
  __decorateClass([
3073
- n3()
3073
+ n3({
3074
+ converter: (value) => {
3075
+ try {
3076
+ return JSON.parse(value);
3077
+ } catch (exc) {
3078
+ return value;
3079
+ }
3080
+ }
3081
+ })
3074
3082
  ], LuzmoBaseVizItem.prototype, "canFilter", 2);
3075
3083
  __decorateClass([
3076
- n3()
3077
- ], LuzmoBaseVizItem.prototype, "filtlers", 2);
3084
+ n3({ type: Array })
3085
+ ], LuzmoBaseVizItem.prototype, "filters", 2);
3078
3086
 
3079
3087
  // libs/embed-libs/embed/src/lib/viz-item/viz-item-web-component.ts
3080
3088
  var LuzmoVizItemWebComponent = class extends LuzmoBaseVizItem {
@@ -1933,7 +1933,7 @@ var o5 = e6(class extends i4 {
1933
1933
  });
1934
1934
 
1935
1935
  // libs/embed-libs/embed/package.json
1936
- var version = "5.1.0-beta.0";
1936
+ var version = "5.1.0-beta.1";
1937
1937
 
1938
1938
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
1939
1939
  var LuzmoService = class {
@@ -3070,11 +3070,19 @@ __decorateClass([
3070
3070
  n3()
3071
3071
  ], LuzmoBaseVizItem.prototype, "contextId", 2);
3072
3072
  __decorateClass([
3073
- n3()
3073
+ n3({
3074
+ converter: (value) => {
3075
+ try {
3076
+ return JSON.parse(value);
3077
+ } catch (exc) {
3078
+ return value;
3079
+ }
3080
+ }
3081
+ })
3074
3082
  ], LuzmoBaseVizItem.prototype, "canFilter", 2);
3075
3083
  __decorateClass([
3076
- n3()
3077
- ], LuzmoBaseVizItem.prototype, "filtlers", 2);
3084
+ n3({ type: Array })
3085
+ ], LuzmoBaseVizItem.prototype, "filters", 2);
3078
3086
 
3079
3087
  // libs/embed-libs/embed/src/lib/viz-item/viz-item-component.ts
3080
3088
  var LuzmoVizItem = class extends LuzmoBaseVizItem {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luzmo/embed",
3
- "version": "5.1.0-beta.0",
3
+ "version": "5.1.0-beta.1",
4
4
  "dependencies": {
5
5
  "lit": "3.1.2",
6
6
  "@luzmo/shared-embed": "5.0.8-beta.0"
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,98 +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 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
- }
@@ -1,3 +0,0 @@
1
- import { LuzmoDashboard as LuzmoBaseDashboard } from './dashboard-base';
2
- export declare class LuzmoDashboard extends LuzmoBaseDashboard {
3
- }
@@ -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-component';
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
- 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
- }