@luzmo/embed 5.1.3-beta.0 → 5.1.3-beta.10

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,9 +1,10 @@
1
1
  {
2
2
  "name": "@luzmo/embed",
3
- "version": "5.1.3-beta.0",
3
+ "version": "5.1.3-beta.10",
4
4
  "dependencies": {
5
5
  "lit": "3.1.2",
6
- "@luzmo/shared-embed": "5.0.8-beta.2"
6
+ "@luzmo/shared-embed": "5.0.8-beta.8",
7
+ "zod-validation-error": "3.2.0"
7
8
  },
8
9
  "type": "module",
9
10
  "keywords": [
@@ -51,7 +51,7 @@ export declare class LuzmoDashboard extends LitElement implements SharedLib.ES6L
51
51
  browserErrorMsg: string;
52
52
  dashboardError: boolean;
53
53
  browserNotSupported: any[];
54
- version: string;
54
+ libVersion: string;
55
55
  protected isLibraryLoaded: boolean;
56
56
  protected dashboardReference: SharedLib.LuzmoElement;
57
57
  currentAuthKey: string;
@@ -1,10 +1,11 @@
1
1
  import { LitElement, PropertyValues } from 'lit';
2
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;
3
+ type FunctionCall = [(...args: any) => any, any[]];
4
+ export declare class LuzmoBaseVizItem extends LitElement implements SharedLib.LuzmoVizItemComponentInterface {
5
+ appServer?: string;
6
+ apiHost?: string;
7
+ slots?: SharedLib.Slots;
8
+ options?: SharedLib.VizItemOptions;
8
9
  type?: SharedLib.ItemType;
9
10
  authKey?: string;
10
11
  authToken?: string;
@@ -12,12 +13,28 @@ export declare class LuzmoBaseVizItem extends LitElement {
12
13
  contextId?: string;
13
14
  canFilter?: SharedLib.CanFilter;
14
15
  filters?: SharedLib.FilterGroup[];
15
- chartElement: HTMLElement;
16
+ dashboardId?: string;
17
+ itemId?: string;
18
+ selectedData: SharedLib.FilterInput;
19
+ libVersion?: string;
20
+ chartElement: HTMLElement & Partial<SharedLib.LuzmoVizItemComponentInterface> & {
21
+ setFilters?: (itemId?: string, filters?: SharedLib.FilterInput) => SharedLib.SetFilters;
22
+ };
23
+ postInitCallQueue: FunctionCall[];
16
24
  static styles: import("lit").CSSResult;
17
25
  constructor();
26
+ canInitializeVizItem(): boolean;
27
+ getFilters(): SharedLib.FilterGroup[];
28
+ export(): void;
29
+ getData(): any;
30
+ refreshData(): void;
31
+ setFilters(filterInput: SharedLib.FilterInput): SharedLib.SetFilters;
32
+ attributeChangedCallback(name: string, _old: string | null, value: string | null): void;
18
33
  protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
19
34
  private createAndAppendElement;
20
35
  private updateVizItemProperties;
21
36
  updated(changedProperties: PropertyValues): Promise<void>;
37
+ private parseAndValidate;
22
38
  protected render(): unknown;
23
39
  }
40
+ export {};