@luzmo/embed 5.0.4 → 5.0.6

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.
@@ -1,5 +1,6 @@
1
- import * as SharedLib from '../../../../shared-embed/src/index.ts';
1
+ import * as SharedLib from '@luzmo/shared-embed';
2
2
  import { LitElement, PropertyValues, TemplateResult } from 'lit';
3
+ import { CombinedFilterInput } from '@luzmo/shared-embed';
3
4
  export declare class LuzmoDashboard extends LitElement implements SharedLib.ES6LuzmoDashboard {
4
5
  container: HTMLElement;
5
6
  iframe: HTMLIFrameElement;
@@ -23,7 +24,7 @@ export declare class LuzmoDashboard extends LitElement implements SharedLib.ES6L
23
24
  timezoneId?: SharedLib.DashboardInputs['timezoneId'];
24
25
  apiHost?: SharedLib.DashboardInputs['apiHost'];
25
26
  itemDimensions: SharedLib.DashboardInputs['itemDimensions'];
26
- dev: boolean;
27
+ experimental: boolean;
27
28
  _containerId: string;
28
29
  _iframeId: string;
29
30
  params: SharedLib.DashboardContentParams;
@@ -77,12 +78,13 @@ export declare class LuzmoDashboard extends LitElement implements SharedLib.ES6L
77
78
  getDashboards(): Promise<LuzmoDashboard[]>;
78
79
  getData(itemId: string): Promise<SharedLib.ItemData>;
79
80
  getFilters(): Promise<SharedLib.FilterGroup[]>;
80
- setFilters(itemId: string, filters: SharedLib.FilterInput): Promise<SharedLib.SetFilters>;
81
+ setFilters<K extends CombinedFilterInput>(itemId: string, filters: K): Promise<SharedLib.SetFilters>;
81
82
  setAuthorization(key: string, token: string): Promise<void>;
82
83
  refreshData(itemId?: string): Promise<void>;
83
84
  reloadDashboard(): Promise<void>;
84
85
  exportDashboard(format?: SharedLib.ExportType): Promise<SharedLib.ExportDashboard>;
85
86
  getAccessibleDashboards(): Promise<SharedLib.AccessibleDashboard[]>;
87
+ addFilters(itemId: string, filters: SharedLib.FilterGroup[]): Promise<SharedLib.AddFilters>;
86
88
  setEditMode(editMode?: SharedLib.DashboardEditMode): Promise<SharedLib.SetEditMode>;
87
89
  setPreview(preview: boolean): Promise<SharedLib.SetPreview>;
88
90
  getIsViewMode(): boolean;
@@ -0,0 +1,6 @@
1
+ export type FilterExpressionType = '? = ?' | '? != ?' | '? in ?' | '? not in ?' | '? like ?' | '? not like ?' | '? < ?' | '? <= ?' | '? > ?' | '? >= ?' | '? starts with ?' | '? not starts with ?' | '? ends with ?' | '? not ends with ?' | 'last_now' | 'last_available' | 'last_completed' | 'to_date' | 'WTD' | 'MTD' | 'QTD' | 'YTD' | '? within ?' | '? is null' | '? is not null';
2
+ export interface FilterInterface {
3
+ expression: FilterExpressionType;
4
+ parameters?: any;
5
+ properties?: any;
6
+ }