@luzmo/embed 6.3.1 → 6.3.2
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 +6 -0
- package/README.md +4 -3
- package/index.cjs +3 -3
- package/index.js +6 -4
- package/luzmo-embed.min.js +3 -3
- package/package.json +3 -3
- package/src/index.d.ts +1 -1
- package/src/lib/dashboard-component/dashboard-base.d.ts +1 -1
- package/src/lib/viz-item/viz-item.base.d.ts +3 -3
package/CHANGELOG.md
CHANGED
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
|
-
|
|
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
|
@@ -62,7 +62,7 @@ var import_decorators = require("lit/decorators.js");
|
|
|
62
62
|
var import_style_map = require("lit/directives/style-map.js");
|
|
63
63
|
|
|
64
64
|
// libs/embed-libs/embed/package.json
|
|
65
|
-
var version = "6.3.
|
|
65
|
+
var version = "6.3.2";
|
|
66
66
|
|
|
67
67
|
// libs/embed-libs/embed/src/lib/helper/event-bus-handler.ts
|
|
68
68
|
var SharedLib = __toESM(require("@luzmo/shared-embed"), 1);
|
|
@@ -1143,8 +1143,8 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1143
1143
|
getFilters() {
|
|
1144
1144
|
return this.chartElement.getFilters();
|
|
1145
1145
|
}
|
|
1146
|
-
export() {
|
|
1147
|
-
return this.chartElement.export();
|
|
1146
|
+
export(type = "png") {
|
|
1147
|
+
return this.chartElement.export(type);
|
|
1148
1148
|
}
|
|
1149
1149
|
getData() {
|
|
1150
1150
|
return this.chartElement.getData();
|
package/index.js
CHANGED
|
@@ -15,13 +15,15 @@ import { selectedDataUtils } from "@luzmo/shared-embed";
|
|
|
15
15
|
|
|
16
16
|
// libs/embed-libs/embed/src/lib/dashboard-component/dashboard-base.ts
|
|
17
17
|
import * as SharedLib2 from "@luzmo/shared-embed";
|
|
18
|
-
import {
|
|
18
|
+
import {
|
|
19
|
+
luzmoEmbedContainerClass
|
|
20
|
+
} from "@luzmo/shared-embed";
|
|
19
21
|
import { html, LitElement } from "lit";
|
|
20
22
|
import { property, query, state } from "lit/decorators.js";
|
|
21
23
|
import { styleMap } from "lit/directives/style-map.js";
|
|
22
24
|
|
|
23
25
|
// libs/embed-libs/embed/package.json
|
|
24
|
-
var version = "6.3.
|
|
26
|
+
var version = "6.3.2";
|
|
25
27
|
|
|
26
28
|
// libs/embed-libs/embed/src/lib/helper/event-bus-handler.ts
|
|
27
29
|
import * as SharedLib from "@luzmo/shared-embed";
|
|
@@ -1102,8 +1104,8 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1102
1104
|
getFilters() {
|
|
1103
1105
|
return this.chartElement.getFilters();
|
|
1104
1106
|
}
|
|
1105
|
-
export() {
|
|
1106
|
-
return this.chartElement.export();
|
|
1107
|
+
export(type = "png") {
|
|
1108
|
+
return this.chartElement.export(type);
|
|
1107
1109
|
}
|
|
1108
1110
|
getData() {
|
|
1109
1111
|
return this.chartElement.getData();
|
package/luzmo-embed.min.js
CHANGED
|
@@ -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.
|
|
2029
|
+
var version = "6.3.2";
|
|
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();
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luzmo/embed",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.2",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"lit": "3.1.2",
|
|
6
|
-
"@luzmo/shared-embed": "5.3.
|
|
7
|
-
"@luzmo/dashboard-contents-types": "1.0.
|
|
6
|
+
"@luzmo/shared-embed": "5.3.1",
|
|
7
|
+
"@luzmo/dashboard-contents-types": "1.0.11"
|
|
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, 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.
|
|
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;
|