@luzmo/embed 7.3.0 → 7.4.0-es2021

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/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "@luzmo/embed",
3
- "version": "7.3.0",
3
+ "version": "7.4.0-es2021",
4
4
  "dependencies": {
5
5
  "lit": "^3.3.1",
6
- "@luzmo/shared-embed": "6.3.0"
6
+ "@luzmo/shared-embed": "6.4.0"
7
7
  },
8
8
  "keywords": [
9
+ "es2021",
10
+ "safari-compatible",
9
11
  "es6",
10
12
  "web-component",
11
13
  "lit",
@@ -21,5 +23,9 @@
21
23
  ],
22
24
  "module": "./index.js",
23
25
  "types": "./src/index.d.ts",
24
- "license": "SEE LICENSE IN LICENSE"
26
+ "license": "SEE LICENSE IN LICENSE",
27
+ "description": "ES2021 build for Safari < 16.3 compatibility",
28
+ "publishConfig": {
29
+ "tag": "es2021"
30
+ }
25
31
  }
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, DashboardExportType, ItemData, ExportDashboard, AccessibleDashboard, SetEditMode, SetSelectedData, DashboardEditMode, VizItemPostMessageLoadEvent, VizItemPostMessageRenderedEvent, VizItemPostMessageExportedEvent, VizItemPostMessageChangedFiltersEvent, VizItemPostMessageCustomEventEvent, VizItemPostMessageAuthorizationExpiredEvent, VizItemPostMessageErrorEvent, EmbedErrorEvent, EmbedErrorEventData } from '@luzmo/shared-embed';
2
+ export type { LoadEvent, ChangedFiltersEvent, CustomEvent, ItemsRenderedEvent, ExportedEvent, DashboardActionEvent, CleanFilter, CleanFilterClauseGroup, CleanFilterGroup, CleanRetrievedFilterGroup, DashboardFilterOutput, ItemFilterOutput, SelectedDataInput, ExportType, DashboardExportType, ItemData, ExportDashboard, AccessibleDashboard, SetEditMode, SetSelectedData, DashboardEditMode, VizItemPostMessageLoadEvent, VizItemPostMessageRenderedEvent, VizItemPostMessageExportedEvent, VizItemPostMessageChangedFiltersEvent, VizItemPostMessageCustomEventEvent, VizItemPostMessageAuthorizationExpiredEvent, VizItemPostMessageErrorEvent, EmbedErrorEvent, EmbedErrorEventData } from '@luzmo/shared-embed';
3
3
  export { selectedDataUtils, preloadDashboard, preloadVizItem, preloadIQ } from '@luzmo/shared-embed';
4
4
  export * from './lib/dashboard/dashboard-component';
5
5
  export * from './lib/viz-item/viz-item-component';
@@ -1,4 +1,3 @@
1
- import type { FilterGroup } from '@luzmo/dashboard-contents-types';
2
1
  import * as SharedLib from '@luzmo/shared-embed';
3
2
  import { LitElement, type PropertyValues, type TemplateResult } from 'lit';
4
3
  export declare class LuzmoDashboard extends LitElement implements SharedLib.WebComponentLuzmoDashboard {
@@ -91,7 +90,7 @@ export declare class LuzmoDashboard extends LitElement implements SharedLib.WebC
91
90
  render(): TemplateResult;
92
91
  getDashboards(): Promise<LuzmoDashboard[]>;
93
92
  getData(itemId: string): Promise<SharedLib.ItemData>;
94
- getFilters(): Promise<FilterGroup[]>;
93
+ getFilters(): Promise<SharedLib.DashboardFilterOutput>;
95
94
  getInsights(options?: SharedLib.GetInsightsOptions): Promise<string>;
96
95
  getDashboardContext(): Promise<SharedLib.DashboardContext | undefined>;
97
96
  setSelectedData<K extends SharedLib.CombinedSelectedDataInput>(itemId: string, filters: K): Promise<SharedLib.SetSelectedData>;
@@ -100,7 +99,7 @@ export declare class LuzmoDashboard extends LitElement implements SharedLib.WebC
100
99
  reloadDashboard(): Promise<void>;
101
100
  exportDashboard(format?: SharedLib.DashboardExportType): Promise<SharedLib.ExportDashboard>;
102
101
  getAccessibleDashboards(): Promise<SharedLib.AccessibleDashboard[]>;
103
- addFilters(itemId: string, filters: FilterGroup[]): Promise<SharedLib.AddFilters>;
102
+ addFilters(itemId: string, filters: SharedLib.FilterInput): Promise<SharedLib.AddFilters>;
104
103
  setEditMode(editMode?: SharedLib.DashboardEditMode): Promise<SharedLib.SetEditMode>;
105
104
  setPreview(preview: boolean): Promise<SharedLib.SetPreview>;
106
105
  sendExportEmail(type?: SharedLib.SendExportEmailType, subject?: SharedLib.PartialRecord<SharedLib.SupportedLanguage, string>, message?: SharedLib.PartialRecord<SharedLib.SupportedLanguage, string>): Promise<void>;
@@ -1,7 +1,6 @@
1
- import type { FilterGroup, VizItemExportType, VizItemOptions, VizItemSlot, VizItemType } from '@luzmo/dashboard-contents-types';
1
+ import { type VizItemExportType, type VizItemOptions, type VizItemSlot, type VizItemType } from '@luzmo/dashboard-contents-types';
2
2
  import * as SharedLib from '@luzmo/shared-embed';
3
- import { LitElement } from 'lit';
4
- import type { PropertyValues } from 'lit';
3
+ import { LitElement, type PropertyValues } from 'lit';
5
4
  /**
6
5
  * The version of the dashboard contents that is linked to the current library.
7
6
  *
@@ -19,14 +18,15 @@ interface LuzmoVizItemComponentInterface extends HTMLElement {
19
18
  apiHost?: string;
20
19
  slots?: VizItemSlot[];
21
20
  canFilter?: string[] | 'all';
22
- filters?: FilterGroup[];
21
+ filters?: SharedLib.FilterInput;
23
22
  contextId?: string;
24
23
  authKey?: string;
25
24
  authToken?: string;
26
25
  dashboardId?: string;
27
26
  itemId?: string;
28
27
  aiMessageAssetId?: string;
29
- getFilters: () => FilterGroup[];
28
+ getFilters: () => SharedLib.ItemFilterOutput;
29
+ getContextFilters?: () => SharedLib.DashboardFilterOutput;
30
30
  getVizItemContext?: () => SharedLib.VizItemContext;
31
31
  export: (type?: VizItemExportType) => Promise<string | void>;
32
32
  refreshData: () => void;
@@ -47,7 +47,7 @@ export declare class LuzmoBaseVizItem extends LitElement implements LuzmoVizItem
47
47
  version?: string;
48
48
  contextId?: string;
49
49
  canFilter?: SharedLib.CanFilter;
50
- filters?: FilterGroup[];
50
+ filters?: SharedLib.FilterInput;
51
51
  dashboardId?: string;
52
52
  itemId?: string;
53
53
  aiMessageAssetId?: string;
@@ -61,7 +61,7 @@ export declare class LuzmoBaseVizItem extends LitElement implements LuzmoVizItem
61
61
  static styles: import("lit").CSSResult;
62
62
  protected createRenderRoot(): HTMLElement | DocumentFragment;
63
63
  canInitializeVizItem(): boolean;
64
- getFilters(): FilterGroup[];
64
+ getFilters(): SharedLib.ItemFilterOutput;
65
65
  /**
66
66
  * Snapshot of this flex chart's live context: its definition (type, slots,
67
67
  * options), current filters and the datasets it reads. Used by context-aware