@luzmo/embed 9.0.0 → 9.1.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/CHANGELOG.md +6 -0
- package/README.md +3 -3
- package/index.cjs +1 -1
- package/index.js +1 -1
- package/luzmo-embed.min.js +1 -1
- package/package.json +1 -1
- package/src/index.d.ts +1 -1
- package/src/lib/dashboard/dashboard-base.d.ts +1 -1
- package/src/lib/shared/methods/get-data.d.ts +2 -2
- package/src/lib/shared/models/common.model.d.ts +2 -1
- package/src/lib/shared/models/dashboard.model.d.ts +2 -2
- package/src/lib/viz-item/viz-item.base.d.ts +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project are documented in this file.
|
|
4
4
|
|
|
5
|
+
## [9.1.0] - 2026-11-11
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- `getData()` on `<luzmo-embed-viz-item>` and `getData(itemId)` on `<luzmo-embed-dashboard>` are now typed as `ItemDataRows`: the data rows (a flat list of values for filter items), or `null` when the item has no data yet. A failed query returns `null` or an empty array, depending on the error. Code that read `.data` or `.status` from the result never received a value; use the result itself.
|
|
10
|
+
|
|
5
11
|
## [9.0.0] - 2026-11-10
|
|
6
12
|
|
|
7
13
|
### Breaking changes
|
package/README.md
CHANGED
|
@@ -114,8 +114,8 @@ a dashboard. Remove data the viewer must not access before supplying
|
|
|
114
114
|
### Public methods luzmo-embed-viz-item
|
|
115
115
|
|
|
116
116
|
```typescript
|
|
117
|
-
// Return
|
|
118
|
-
getData():
|
|
117
|
+
// Return the data rows of the viz item that's embedded (a flat list of values for filter items), or null when it has no data yet.
|
|
118
|
+
getData(): ItemDataRows;
|
|
119
119
|
|
|
120
120
|
// Return an array of active filters on the viz item.
|
|
121
121
|
getFilters(): ItemFilterOutput;
|
|
@@ -252,7 +252,7 @@ Omitting `embedMode` renders the dashboard directly on your page (no iframe), wh
|
|
|
252
252
|
getDashboards(): Promise<LuzmoDashboard[]>;
|
|
253
253
|
|
|
254
254
|
// Returns an array the data of a chart of a certain dashboard by adding the dashboardId or the container of the iframe.
|
|
255
|
-
getData(itemId: string): Promise<
|
|
255
|
+
getData(itemId: string): Promise<ItemDataRows>;
|
|
256
256
|
|
|
257
257
|
// Returns an array of active filters.
|
|
258
258
|
getFilters(): Promise<DashboardFilterOutput>;
|
package/index.cjs
CHANGED
|
@@ -1464,7 +1464,7 @@ var import_decorators = require("lit/decorators.js");
|
|
|
1464
1464
|
var import_style_map = require("lit/directives/style-map.js");
|
|
1465
1465
|
|
|
1466
1466
|
// libs/embed-libs/embed/package.json
|
|
1467
|
-
var version = "9.
|
|
1467
|
+
var version = "9.1.0";
|
|
1468
1468
|
|
|
1469
1469
|
// libs/embed-libs/embed/src/lib/utils/embed-error.utils.ts
|
|
1470
1470
|
function buildEmbedErrorDetail(errorMsg) {
|
package/index.js
CHANGED
|
@@ -1428,7 +1428,7 @@ import { property, query, state } from "lit/decorators.js";
|
|
|
1428
1428
|
import { styleMap } from "lit/directives/style-map.js";
|
|
1429
1429
|
|
|
1430
1430
|
// libs/embed-libs/embed/package.json
|
|
1431
|
-
var version = "9.
|
|
1431
|
+
var version = "9.1.0";
|
|
1432
1432
|
|
|
1433
1433
|
// libs/embed-libs/embed/src/lib/utils/embed-error.utils.ts
|
|
1434
1434
|
function buildEmbedErrorDetail(errorMsg) {
|
package/luzmo-embed.min.js
CHANGED
|
@@ -6168,7 +6168,7 @@ var o6 = e6(class extends i5 {
|
|
|
6168
6168
|
});
|
|
6169
6169
|
|
|
6170
6170
|
// libs/embed-libs/embed/package.json
|
|
6171
|
-
var version = "9.
|
|
6171
|
+
var version = "9.1.0";
|
|
6172
6172
|
|
|
6173
6173
|
// libs/embed-libs/embed/src/lib/utils/embed-error.utils.ts
|
|
6174
6174
|
function buildEmbedErrorDetail(errorMsg) {
|
package/package.json
CHANGED
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, CleanFilter, CleanFilterClauseGroup, CleanFilterGroup, CleanRetrievedFilterGroup, DashboardFilterOutput, ItemFilterOutput, SelectedDataInput, ExportType, DashboardExportType, ItemData, ExportDashboard, AccessibleDashboard, AddFilters, PartialRecord, SendExportEmailType, SetEditMode, SetPreview, SetSelectedData, DashboardEditMode, SupportedLanguage, VizItemPostMessageLoadEvent, VizItemPostMessageRenderedEvent, VizItemPostMessageExportedEvent, VizItemPostMessageChangedFiltersEvent, VizItemPostMessageCustomEventEvent, VizItemPostMessageAuthorizationExpiredEvent, VizItemPostMessageErrorEvent, EmbedErrorEvent, EmbedErrorEventData } from './index.shared';
|
|
2
|
+
export type { LoadEvent, ChangedFiltersEvent, CustomEvent, ItemsRenderedEvent, ExportedEvent, DashboardActionEvent, CleanFilter, CleanFilterClauseGroup, CleanFilterGroup, CleanRetrievedFilterGroup, DashboardFilterOutput, ItemFilterOutput, SelectedDataInput, ExportType, DashboardExportType, ItemData, ItemDataRows, ExportDashboard, AccessibleDashboard, AddFilters, PartialRecord, SendExportEmailType, SetEditMode, SetPreview, SetSelectedData, DashboardEditMode, SupportedLanguage, VizItemPostMessageLoadEvent, VizItemPostMessageRenderedEvent, VizItemPostMessageExportedEvent, VizItemPostMessageChangedFiltersEvent, VizItemPostMessageCustomEventEvent, VizItemPostMessageAuthorizationExpiredEvent, VizItemPostMessageErrorEvent, EmbedErrorEvent, EmbedErrorEventData } from './index.shared';
|
|
3
3
|
export { selectedDataUtils, preloadDashboard, preloadVizItem, preloadIQ } from './index.shared';
|
|
4
4
|
export * from './lib/dashboard/dashboard-component';
|
|
5
5
|
export * from './lib/viz-item/viz-item-component';
|
|
@@ -94,7 +94,7 @@ export declare class LuzmoDashboard extends LitElement implements SharedLib.WebC
|
|
|
94
94
|
static get styles(): import("lit").CSSResult[];
|
|
95
95
|
render(): TemplateResult;
|
|
96
96
|
getDashboards(): Promise<LuzmoDashboard[]>;
|
|
97
|
-
getData(itemId: string): Promise<SharedLib.
|
|
97
|
+
getData(itemId: string): Promise<SharedLib.ItemDataRows>;
|
|
98
98
|
getFilters(): Promise<SharedLib.DashboardFilterOutput>;
|
|
99
99
|
getInsights(options?: SharedLib.GetInsightsOptions): Promise<string>;
|
|
100
100
|
getDashboardContext(): Promise<SharedLib.DashboardContext | undefined>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { LuzmoDashboard } from '../models/dashboard.model';
|
|
2
|
-
import {
|
|
3
|
-
export declare const getData: <T extends LuzmoDashboard>(dashboardComponent: T, iframe: HTMLIFrameElement, itemId: string) => Promise<
|
|
2
|
+
import { ItemDataRows } from '../models/common.model';
|
|
3
|
+
export declare const getData: <T extends LuzmoDashboard>(dashboardComponent: T, iframe: HTMLIFrameElement, itemId: string) => Promise<ItemDataRows>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FilterGroup, ItemData as DashboardItemData, ScreenMode as DashboardScreenMode } from '@luzmo/dashboard-contents-types';
|
|
1
|
+
import type { FilterGroup, ItemData as DashboardItemData, ItemDataRow, ItemDataValue, ScreenMode as DashboardScreenMode } from '@luzmo/dashboard-contents-types';
|
|
2
2
|
export type ScreenMode = DashboardScreenMode | 'auto';
|
|
3
3
|
export type DashboardDimensions = Record<Exclude<ScreenMode, 'auto'>, [
|
|
4
4
|
number,
|
|
@@ -40,6 +40,7 @@ export type AccessibleDashboard = {
|
|
|
40
40
|
tags: string[];
|
|
41
41
|
};
|
|
42
42
|
export type ItemData = DashboardItemData;
|
|
43
|
+
export type ItemDataRows = ItemDataRow[] | ItemDataRow[][] | ItemDataValue[] | null;
|
|
43
44
|
export type DashboardEditMode = 'editFull' | 'editLimited' | 'view';
|
|
44
45
|
export type DashboardEmbedMode = 'webComponent' | 'iframe';
|
|
45
46
|
export type SetEditMode = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DashboardContext } from './dashboard-context.model';
|
|
2
|
-
import { AccessibleDashboard, AddFilters, BrowserCheckKey, DashboardContentParams, DashboardDimensions, DashboardEditMode, DashboardInputs, DashboardPromises, ExportDashboard,
|
|
2
|
+
import { AccessibleDashboard, AddFilters, BrowserCheckKey, DashboardContentParams, DashboardDimensions, DashboardEditMode, DashboardInputs, DashboardPromises, ExportDashboard, ItemDataRows, PartialRecord, ScreenMode, SetEditMode, SetPreview, SetSelectedData } from './common.model';
|
|
3
3
|
import type { DashboardExportType, SendExportEmailType } from './export.model';
|
|
4
4
|
import type { FilterInput } from './filter-input.model';
|
|
5
5
|
import type { DashboardFilterOutput } from './filter-output.model';
|
|
@@ -43,7 +43,7 @@ export interface LuzmoElement extends HTMLElement {
|
|
|
43
43
|
exportDashboard(format?: DashboardExportType): Promise<ExportDashboard>;
|
|
44
44
|
getAccessibleDashboards(): Promise<AccessibleDashboard[]>;
|
|
45
45
|
getDashboards(): Promise<LuzmoDashboard[]>;
|
|
46
|
-
getData(itemId: string): Promise<
|
|
46
|
+
getData(itemId: string): Promise<ItemDataRows>;
|
|
47
47
|
getDashboardContext(): Promise<DashboardContext | undefined>;
|
|
48
48
|
getFilters(): Promise<DashboardFilterOutput>;
|
|
49
49
|
getInsights(options?: GetInsightsOptions): Promise<string>;
|
|
@@ -33,7 +33,7 @@ interface LuzmoVizItemComponentInterface extends HTMLElement {
|
|
|
33
33
|
getVizItemContext?: () => SharedLib.VizItemContext;
|
|
34
34
|
export: (type?: VizItemExportType) => Promise<string | void>;
|
|
35
35
|
refreshData: () => void;
|
|
36
|
-
getData: () => SharedLib.
|
|
36
|
+
getData: () => SharedLib.ItemDataRows;
|
|
37
37
|
getInsights: (options?: SharedLib.GetInsightsOptions) => Promise<string>;
|
|
38
38
|
setSelectedData: (selectedDataInput: SharedLib.SelectedDataInput) => SharedLib.SetSelectedData;
|
|
39
39
|
setAuthorization: (key: string, token: string) => void;
|
|
@@ -64,7 +64,7 @@ export declare class LuzmoBaseVizItem extends LitElement implements LuzmoVizItem
|
|
|
64
64
|
getFilters: () => SharedLib.ItemFilterOutput;
|
|
65
65
|
getContextFilters?: () => SharedLib.DashboardFilterOutput;
|
|
66
66
|
export: (type?: VizItemExportType) => Promise<string | void>;
|
|
67
|
-
getData: () => SharedLib.
|
|
67
|
+
getData: () => SharedLib.ItemDataRows;
|
|
68
68
|
getInsights: (options?: SharedLib.GetInsightsOptions) => Promise<string>;
|
|
69
69
|
refreshData: () => void;
|
|
70
70
|
setSelectedData: (itemId?: string, filters?: SharedLib.SelectedDataInput) => SharedLib.SetSelectedData;
|
|
@@ -82,7 +82,7 @@ export declare class LuzmoBaseVizItem extends LitElement implements LuzmoVizItem
|
|
|
82
82
|
*/
|
|
83
83
|
getVizItemContext(): SharedLib.VizItemContext;
|
|
84
84
|
export(type?: VizItemExportType): Promise<string | void>;
|
|
85
|
-
getData(): SharedLib.
|
|
85
|
+
getData(): SharedLib.ItemDataRows;
|
|
86
86
|
getInsights(options?: SharedLib.GetInsightsOptions): Promise<string>;
|
|
87
87
|
refreshData(): void;
|
|
88
88
|
setSelectedData(selectedDataInput: SharedLib.SelectedDataInput): SharedLib.SetSelectedData;
|