@luzmo/embed 6.3.1 → 6.3.3

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
@@ -2,6 +2,18 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [6.3.3] - 2025-02-06
6
+
7
+ ### Updates
8
+
9
+ - Updated dependent libs
10
+
11
+ ## [6.3.2] - 2025-01-31
12
+
13
+ ### Updates
14
+
15
+ - export() now allows you to export the viz item as a CSV, XLSX and PNG
16
+
5
17
  ## [6.3.1] - 2025-01-21
6
18
 
7
19
  ### Updates
package/README.md CHANGED
@@ -107,8 +107,8 @@ refreshData(): void
107
107
  setAuthorization(key: string, token: string): void
108
108
  // Changes the authorization of the viz item. To fetch data based on new authorization parameters, refreshData() needs to be called.
109
109
 
110
- export(): void
111
- // Export the viz item as png.
110
+ export(type: 'png' | 'xlsx' | 'csv' | 'xlsx-raw' | 'csv-raw'): void
111
+ // Export the viz item as png, csv, xlsx, xlsx-raw, csv-raw.
112
112
  ```
113
113
  <br/>
114
114
 
@@ -145,7 +145,8 @@ const filters = vizItemComponent.getFilters();
145
145
  Export the viz item
146
146
 
147
147
  ```typescript
148
- vizItemComponent.export();
148
+ const type = 'png'; // type is optional, defaults to png, other values supported are 'xlsx', 'csv', 'xlsx-raw', 'csv-raw'.
149
+ vizItemComponent.export(type);
149
150
  ```
150
151
 
151
152
  ## Luzmo Embed Dashboard
package/index.cjs CHANGED
@@ -53,6 +53,7 @@ __export(src_exports, {
53
53
  });
54
54
  module.exports = __toCommonJS(src_exports);
55
55
  var import_shared_embed2 = require("@luzmo/shared-embed");
56
+ var import_lit6 = require("lit");
56
57
 
57
58
  // libs/embed-libs/embed/src/lib/dashboard-component/dashboard-base.ts
58
59
  var SharedLib2 = __toESM(require("@luzmo/shared-embed"), 1);
@@ -62,7 +63,7 @@ var import_decorators = require("lit/decorators.js");
62
63
  var import_style_map = require("lit/directives/style-map.js");
63
64
 
64
65
  // libs/embed-libs/embed/package.json
65
- var version = "6.3.1";
66
+ var version = "6.3.3";
66
67
 
67
68
  // libs/embed-libs/embed/src/lib/helper/event-bus-handler.ts
68
69
  var SharedLib = __toESM(require("@luzmo/shared-embed"), 1);
@@ -1143,8 +1144,8 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
1143
1144
  getFilters() {
1144
1145
  return this.chartElement.getFilters();
1145
1146
  }
1146
- export() {
1147
- return this.chartElement.export();
1147
+ export(type = "png") {
1148
+ return this.chartElement.export(type);
1148
1149
  }
1149
1150
  getData() {
1150
1151
  return this.chartElement.getData();
@@ -1617,6 +1618,9 @@ var luzmoRefParserOptions = {
1617
1618
  external: true
1618
1619
  }
1619
1620
  };
1621
+
1622
+ // libs/embed-libs/embed/src/index.ts
1623
+ import_lit6.LitElement.disableWarning?.("change-in-update");
1620
1624
  // Annotate the CommonJS export names for ESM import in node:
1621
1625
  0 && (module.exports = {
1622
1626
  LuzmoEmbedDashboard,
package/index.js CHANGED
@@ -12,16 +12,19 @@ var __decorateClass = (decorators, target, key, kind) => {
12
12
 
13
13
  // libs/embed-libs/embed/src/index.ts
14
14
  import { selectedDataUtils } from "@luzmo/shared-embed";
15
+ import { LitElement as LitElement5 } from "lit";
15
16
 
16
17
  // libs/embed-libs/embed/src/lib/dashboard-component/dashboard-base.ts
17
18
  import * as SharedLib2 from "@luzmo/shared-embed";
18
- import { luzmoEmbedContainerClass } from "@luzmo/shared-embed";
19
+ import {
20
+ luzmoEmbedContainerClass
21
+ } from "@luzmo/shared-embed";
19
22
  import { html, LitElement } from "lit";
20
23
  import { property, query, state } from "lit/decorators.js";
21
24
  import { styleMap } from "lit/directives/style-map.js";
22
25
 
23
26
  // libs/embed-libs/embed/package.json
24
- var version = "6.3.1";
27
+ var version = "6.3.3";
25
28
 
26
29
  // libs/embed-libs/embed/src/lib/helper/event-bus-handler.ts
27
30
  import * as SharedLib from "@luzmo/shared-embed";
@@ -1102,8 +1105,8 @@ var LuzmoBaseVizItem = class extends LitElement2 {
1102
1105
  getFilters() {
1103
1106
  return this.chartElement.getFilters();
1104
1107
  }
1105
- export() {
1106
- return this.chartElement.export();
1108
+ export(type = "png") {
1109
+ return this.chartElement.export(type);
1107
1110
  }
1108
1111
  getData() {
1109
1112
  return this.chartElement.getData();
@@ -1576,6 +1579,9 @@ var luzmoRefParserOptions = {
1576
1579
  external: true
1577
1580
  }
1578
1581
  };
1582
+
1583
+ // libs/embed-libs/embed/src/index.ts
1584
+ LitElement5.disableWarning?.("change-in-update");
1579
1585
  export {
1580
1586
  LuzmoEmbedDashboard,
1581
1587
  LuzmoEmbedVizItem,
@@ -2026,7 +2026,7 @@ var se = e5(class extends i3 {
2026
2026
  });
2027
2027
 
2028
2028
  // libs/embed-libs/embed/package.json
2029
- var version = "6.3.1";
2029
+ var version = "6.3.3";
2030
2030
 
2031
2031
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
2032
2032
  var LuzmoService = class {
@@ -3100,8 +3100,8 @@ var LuzmoBaseVizItem = class extends h3 {
3100
3100
  getFilters() {
3101
3101
  return this.chartElement.getFilters();
3102
3102
  }
3103
- export() {
3104
- return this.chartElement.export();
3103
+ export(type = "png") {
3104
+ return this.chartElement.export(type);
3105
3105
  }
3106
3106
  getData() {
3107
3107
  return this.chartElement.getData();
@@ -3568,6 +3568,9 @@ var luzmoRefParserOptions = {
3568
3568
  external: true
3569
3569
  }
3570
3570
  };
3571
+
3572
+ // libs/embed-libs/embed/src/index.ts
3573
+ h3.disableWarning?.("change-in-update");
3571
3574
  /*! Bundled license information:
3572
3575
 
3573
3576
  @lit/reactive-element/css-tag.js:
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@luzmo/embed",
3
- "version": "6.3.1",
3
+ "version": "6.3.3",
4
4
  "dependencies": {
5
5
  "lit": "3.1.2",
6
- "@luzmo/shared-embed": "5.3.0",
7
- "@luzmo/dashboard-contents-types": "1.0.10"
6
+ "@luzmo/shared-embed": "5.3.2",
7
+ "@luzmo/dashboard-contents-types": "1.0.12"
8
8
  },
9
9
  "type": "module",
10
10
  "keywords": [
package/src/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export type * from '@luzmo/dashboard-contents-types';
2
- export type { LoadEvent, ChangedFiltersEvent, CustomEvent, ItemsRenderedEvent, ExportedEvent, DashboardActionEvent, SelectedDataInput, ExportType, ItemData, ExportDashboard, AccessibleDashboard, SetEditMode, SetSelectedData, VizItemPostMessageLoadEvent, VizItemPostMessageRenderedEvent, VizItemPostMessageExportedEvent, VizItemPostMessageChangedFiltersEvent, VizItemPostMessageCustomEventEvent } from '@luzmo/shared-embed';
2
+ export type { LoadEvent, ChangedFiltersEvent, CustomEvent, ItemsRenderedEvent, ExportedEvent, DashboardActionEvent, SelectedDataInput, ExportType, DashboardExportType, ItemData, ExportDashboard, AccessibleDashboard, SetEditMode, SetSelectedData, DashboardEditMode, VizItemPostMessageLoadEvent, VizItemPostMessageRenderedEvent, VizItemPostMessageExportedEvent, VizItemPostMessageChangedFiltersEvent, VizItemPostMessageCustomEventEvent } from '@luzmo/shared-embed';
3
3
  export { selectedDataUtils } from '@luzmo/shared-embed';
4
4
  export * from './lib/dashboard-component/dashboard-component';
5
5
  export * from './lib/viz-item/viz-item-component';
@@ -86,7 +86,7 @@ export declare class LuzmoDashboard extends LitElement implements SharedLib.ES6L
86
86
  setAuthorization(key: string, token: string): Promise<void>;
87
87
  refreshData(itemId?: string): Promise<void>;
88
88
  reloadDashboard(): Promise<void>;
89
- exportDashboard(format?: SharedLib.ExportType): Promise<SharedLib.ExportDashboard>;
89
+ exportDashboard(format?: SharedLib.DashboardExportType): Promise<SharedLib.ExportDashboard>;
90
90
  getAccessibleDashboards(): Promise<SharedLib.AccessibleDashboard[]>;
91
91
  addFilters(itemId: string, filters: FilterGroup[]): Promise<SharedLib.AddFilters>;
92
92
  setEditMode(editMode?: SharedLib.DashboardEditMode): Promise<SharedLib.SetEditMode>;
@@ -1,4 +1,4 @@
1
- import { FilterGroup, VizItemOptions, VizItemSlots, VizItemType } from '@luzmo/dashboard-contents-types';
1
+ import { VizItemExportType, FilterGroup, VizItemOptions, VizItemSlots, VizItemType } from '@luzmo/dashboard-contents-types';
2
2
  import * as SharedLib from '@luzmo/shared-embed';
3
3
  import { LitElement, PropertyValues } from 'lit';
4
4
  /**
@@ -25,7 +25,7 @@ interface LuzmoVizItemComponentInterface extends HTMLElement {
25
25
  dashboardId?: string;
26
26
  itemId?: string;
27
27
  getFilters: () => FilterGroup[];
28
- export: () => void;
28
+ export: (type?: VizItemExportType) => void;
29
29
  refreshData: () => void;
30
30
  getData: () => SharedLib.ItemData;
31
31
  setSelectedData: (selectedDataInput: SharedLib.SelectedDataInput) => SharedLib.SetSelectedData;
@@ -57,7 +57,7 @@ export declare class LuzmoBaseVizItem extends LitElement implements LuzmoVizItem
57
57
  protected createRenderRoot(): HTMLElement | DocumentFragment;
58
58
  canInitializeVizItem(): boolean;
59
59
  getFilters(): FilterGroup[];
60
- export(): void;
60
+ export(type?: VizItemExportType): void;
61
61
  getData(): any;
62
62
  refreshData(): void;
63
63
  setSelectedData(selectedDataInput: SharedLib.SelectedDataInput): SharedLib.SetSelectedData;