@luzmo/embed 6.7.2-es2021 → 6.7.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/index.cjs CHANGED
@@ -1122,6 +1122,22 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
1122
1122
  this.libVersion = version + "-wc-luzmo";
1123
1123
  this.postInitCallQueue = [];
1124
1124
  }
1125
+ static {
1126
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1127
+ this.styles = import_lit3.css`
1128
+ :host {
1129
+ display: block;
1130
+ width: 100%;
1131
+ height: 100%;
1132
+ }
1133
+
1134
+ luzmo-embed-viz-item {
1135
+ width: 100%;
1136
+ height: 1000%;
1137
+ display: block;
1138
+ }
1139
+ `;
1140
+ }
1125
1141
  createRenderRoot() {
1126
1142
  if (!this.style.display) {
1127
1143
  this.style.display = "block";
@@ -1231,20 +1247,6 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
1231
1247
  return import_lit3.html` `;
1232
1248
  }
1233
1249
  };
1234
- // Static styles to set host display to block, else it is not shown at all for some reason.
1235
- LuzmoBaseVizItem.styles = import_lit3.css`
1236
- :host {
1237
- display: block;
1238
- width: 100%;
1239
- height: 100%;
1240
- }
1241
-
1242
- luzmo-embed-viz-item {
1243
- width: 100%;
1244
- height: 1000%;
1245
- display: block;
1246
- }
1247
- `;
1248
1250
  __decorateClass([
1249
1251
  (0, import_decorators2.property)()
1250
1252
  ], LuzmoBaseVizItem.prototype, "appServer", 2);
@@ -1338,6 +1340,16 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
1338
1340
  this.remoteEntryServer = "http://localhost:4202/";
1339
1341
  this.aydHost = "https://ayd.luzmo.com/";
1340
1342
  }
1343
+ static {
1344
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1345
+ this.styles = import_lit4.css`
1346
+ :host {
1347
+ display: block;
1348
+ width: 100%;
1349
+ height: 100%;
1350
+ }
1351
+ `;
1352
+ }
1341
1353
  createRenderRoot() {
1342
1354
  return this;
1343
1355
  }
@@ -1406,14 +1418,6 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
1406
1418
  observer.observe(embedChat, { childList: true, subtree: true });
1407
1419
  }
1408
1420
  };
1409
- // Static styles to set host display to block, else it is not shown at all for some reason.
1410
- LuzmoIQEmbedChatComponent.styles = import_lit4.css`
1411
- :host {
1412
- display: block;
1413
- width: 100%;
1414
- height: 100%;
1415
- }
1416
- `;
1417
1421
  __decorateClass([
1418
1422
  (0, import_decorators3.property)()
1419
1423
  ], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
@@ -1479,6 +1483,16 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
1479
1483
  this.libVersion = version + "-wc-luzmo";
1480
1484
  this.remoteEntryServer = "http://localhost:4202";
1481
1485
  }
1486
+ static {
1487
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1488
+ this.styles = import_lit5.css`
1489
+ :host {
1490
+ display: block;
1491
+ width: 100%;
1492
+ height: 100%;
1493
+ }
1494
+ `;
1495
+ }
1482
1496
  createRenderRoot() {
1483
1497
  return this;
1484
1498
  }
@@ -1529,14 +1543,6 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
1529
1543
  return import_lit5.html` `;
1530
1544
  }
1531
1545
  };
1532
- // Static styles to set host display to block, else it is not shown at all for some reason.
1533
- LuzmoIQEmbedAnswerComponent.styles = import_lit5.css`
1534
- :host {
1535
- display: block;
1536
- width: 100%;
1537
- height: 100%;
1538
- }
1539
- `;
1540
1546
  __decorateClass([
1541
1547
  (0, import_decorators4.property)()
1542
1548
  ], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
package/index.js CHANGED
@@ -1083,6 +1083,22 @@ var LuzmoBaseVizItem = class extends LitElement2 {
1083
1083
  this.libVersion = version + "-wc-luzmo";
1084
1084
  this.postInitCallQueue = [];
1085
1085
  }
1086
+ static {
1087
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1088
+ this.styles = css2`
1089
+ :host {
1090
+ display: block;
1091
+ width: 100%;
1092
+ height: 100%;
1093
+ }
1094
+
1095
+ luzmo-embed-viz-item {
1096
+ width: 100%;
1097
+ height: 1000%;
1098
+ display: block;
1099
+ }
1100
+ `;
1101
+ }
1086
1102
  createRenderRoot() {
1087
1103
  if (!this.style.display) {
1088
1104
  this.style.display = "block";
@@ -1192,20 +1208,6 @@ var LuzmoBaseVizItem = class extends LitElement2 {
1192
1208
  return html2` `;
1193
1209
  }
1194
1210
  };
1195
- // Static styles to set host display to block, else it is not shown at all for some reason.
1196
- LuzmoBaseVizItem.styles = css2`
1197
- :host {
1198
- display: block;
1199
- width: 100%;
1200
- height: 100%;
1201
- }
1202
-
1203
- luzmo-embed-viz-item {
1204
- width: 100%;
1205
- height: 1000%;
1206
- display: block;
1207
- }
1208
- `;
1209
1211
  __decorateClass([
1210
1212
  property2()
1211
1213
  ], LuzmoBaseVizItem.prototype, "appServer", 2);
@@ -1299,6 +1301,16 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
1299
1301
  this.remoteEntryServer = "http://localhost:4202/";
1300
1302
  this.aydHost = "https://ayd.luzmo.com/";
1301
1303
  }
1304
+ static {
1305
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1306
+ this.styles = css3`
1307
+ :host {
1308
+ display: block;
1309
+ width: 100%;
1310
+ height: 100%;
1311
+ }
1312
+ `;
1313
+ }
1302
1314
  createRenderRoot() {
1303
1315
  return this;
1304
1316
  }
@@ -1367,14 +1379,6 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
1367
1379
  observer.observe(embedChat, { childList: true, subtree: true });
1368
1380
  }
1369
1381
  };
1370
- // Static styles to set host display to block, else it is not shown at all for some reason.
1371
- LuzmoIQEmbedChatComponent.styles = css3`
1372
- :host {
1373
- display: block;
1374
- width: 100%;
1375
- height: 100%;
1376
- }
1377
- `;
1378
1382
  __decorateClass([
1379
1383
  property3()
1380
1384
  ], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
@@ -1440,6 +1444,16 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
1440
1444
  this.libVersion = version + "-wc-luzmo";
1441
1445
  this.remoteEntryServer = "http://localhost:4202";
1442
1446
  }
1447
+ static {
1448
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1449
+ this.styles = css4`
1450
+ :host {
1451
+ display: block;
1452
+ width: 100%;
1453
+ height: 100%;
1454
+ }
1455
+ `;
1456
+ }
1443
1457
  createRenderRoot() {
1444
1458
  return this;
1445
1459
  }
@@ -1490,14 +1504,6 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
1490
1504
  return html4` `;
1491
1505
  }
1492
1506
  };
1493
- // Static styles to set host display to block, else it is not shown at all for some reason.
1494
- LuzmoIQEmbedAnswerComponent.styles = css4`
1495
- :host {
1496
- display: block;
1497
- width: 100%;
1498
- height: 100%;
1499
- }
1500
- `;
1501
1507
  __decorateClass([
1502
1508
  property4()
1503
1509
  ], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
@@ -3066,6 +3066,22 @@ var LuzmoBaseVizItem = class extends i4 {
3066
3066
  this.libVersion = version + "-wc-luzmo";
3067
3067
  this.postInitCallQueue = [];
3068
3068
  }
3069
+ static {
3070
+ // Static styles to set host display to block, else it is not shown at all for some reason.
3071
+ this.styles = i`
3072
+ :host {
3073
+ display: block;
3074
+ width: 100%;
3075
+ height: 100%;
3076
+ }
3077
+
3078
+ luzmo-embed-viz-item {
3079
+ width: 100%;
3080
+ height: 1000%;
3081
+ display: block;
3082
+ }
3083
+ `;
3084
+ }
3069
3085
  createRenderRoot() {
3070
3086
  if (!this.style.display) {
3071
3087
  this.style.display = "block";
@@ -3175,20 +3191,6 @@ var LuzmoBaseVizItem = class extends i4 {
3175
3191
  return x` `;
3176
3192
  }
3177
3193
  };
3178
- // Static styles to set host display to block, else it is not shown at all for some reason.
3179
- LuzmoBaseVizItem.styles = i`
3180
- :host {
3181
- display: block;
3182
- width: 100%;
3183
- height: 100%;
3184
- }
3185
-
3186
- luzmo-embed-viz-item {
3187
- width: 100%;
3188
- height: 1000%;
3189
- display: block;
3190
- }
3191
- `;
3192
3194
  __decorateClass([
3193
3195
  n4()
3194
3196
  ], LuzmoBaseVizItem.prototype, "appServer", 2);
@@ -3279,6 +3281,16 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
3279
3281
  this.remoteEntryServer = "http://localhost:4202/";
3280
3282
  this.aydHost = "https://ayd.luzmo.com/";
3281
3283
  }
3284
+ static {
3285
+ // Static styles to set host display to block, else it is not shown at all for some reason.
3286
+ this.styles = i`
3287
+ :host {
3288
+ display: block;
3289
+ width: 100%;
3290
+ height: 100%;
3291
+ }
3292
+ `;
3293
+ }
3282
3294
  createRenderRoot() {
3283
3295
  return this;
3284
3296
  }
@@ -3347,14 +3359,6 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
3347
3359
  observer.observe(embedChat, { childList: true, subtree: true });
3348
3360
  }
3349
3361
  };
3350
- // Static styles to set host display to block, else it is not shown at all for some reason.
3351
- LuzmoIQEmbedChatComponent.styles = i`
3352
- :host {
3353
- display: block;
3354
- width: 100%;
3355
- height: 100%;
3356
- }
3357
- `;
3358
3362
  __decorateClass([
3359
3363
  n4()
3360
3364
  ], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
@@ -3417,6 +3421,16 @@ var LuzmoIQEmbedAnswerComponent = class extends i4 {
3417
3421
  this.libVersion = version + "-wc-luzmo";
3418
3422
  this.remoteEntryServer = "http://localhost:4202";
3419
3423
  }
3424
+ static {
3425
+ // Static styles to set host display to block, else it is not shown at all for some reason.
3426
+ this.styles = i`
3427
+ :host {
3428
+ display: block;
3429
+ width: 100%;
3430
+ height: 100%;
3431
+ }
3432
+ `;
3433
+ }
3420
3434
  createRenderRoot() {
3421
3435
  return this;
3422
3436
  }
@@ -3467,14 +3481,6 @@ var LuzmoIQEmbedAnswerComponent = class extends i4 {
3467
3481
  return x` `;
3468
3482
  }
3469
3483
  };
3470
- // Static styles to set host display to block, else it is not shown at all for some reason.
3471
- LuzmoIQEmbedAnswerComponent.styles = i`
3472
- :host {
3473
- display: block;
3474
- width: 100%;
3475
- height: 100%;
3476
- }
3477
- `;
3478
3484
  __decorateClass([
3479
3485
  n4()
3480
3486
  ], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
package/package.json CHANGED
@@ -1,13 +1,11 @@
1
1
  {
2
2
  "name": "@luzmo/embed",
3
- "version": "6.7.2-es2021",
3
+ "version": "6.7.2",
4
4
  "dependencies": {
5
5
  "lit": "^3.3.1",
6
6
  "@luzmo/shared-embed": "5.6.2"
7
7
  },
8
8
  "keywords": [
9
- "es2021",
10
- "safari-compatible",
11
9
  "es6",
12
10
  "web-component",
13
11
  "lit",
@@ -23,9 +21,5 @@
23
21
  ],
24
22
  "module": "./index.js",
25
23
  "types": "./src/index.d.ts",
26
- "license": "SEE LICENSE IN LICENSE",
27
- "description": "ES2021 build for Safari < 16.3 compatibility",
28
- "publishConfig": {
29
- "tag": "es2021"
30
- }
24
+ "license": "SEE LICENSE IN LICENSE"
31
25
  }
package/src/index.d.ts ADDED
@@ -0,0 +1,8 @@
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 } from '@luzmo/shared-embed';
3
+ export { selectedDataUtils } from '@luzmo/shared-embed';
4
+ export * from './lib/dashboard/dashboard-component';
5
+ export * from './lib/viz-item/viz-item-component';
6
+ export * from './lib/iq-components/luzmo-iq-chat';
7
+ export * from './lib/iq-components/luzmo-iq-answer';
8
+ export * from './lib/helper/json-schema-utils';
@@ -0,0 +1,97 @@
1
+ import type { FilterGroup } from '@luzmo/dashboard-contents-types';
2
+ import * as SharedLib from '@luzmo/shared-embed';
3
+ import { CombinedSelectedDataInput, DashboardInputs, LuzmoElement, PartialRecord, SupportedLanguage } from '@luzmo/shared-embed';
4
+ import { LitElement, PropertyValues, TemplateResult } from 'lit';
5
+ export declare class LuzmoDashboard extends LitElement implements SharedLib.WebComponentLuzmoDashboard {
6
+ container: HTMLElement;
7
+ luzmoEmbedContainer: HTMLElement;
8
+ iframe: HTMLIFrameElement;
9
+ dashboardId?: SharedLib.DashboardInputs['dashboardId'];
10
+ dashboardSlug?: SharedLib.DashboardInputs['dashboardSlug'];
11
+ itemId?: SharedLib.DashboardInputs['itemId'];
12
+ language: SharedLib.DashboardInputs['language'];
13
+ editorLanguage: SharedLib.DashboardInputs['editorLanguage'];
14
+ qeVersion: SharedLib.DashboardInputs['qeVersion'];
15
+ screenMode: SharedLib.DashboardInputs['screenMode'];
16
+ switchScreenModeOnResize: boolean;
17
+ editMode: SharedLib.DashboardInputs['editMode'];
18
+ theme?: SharedLib.DashboardInputs['theme'];
19
+ mainColor?: SharedLib.DashboardInputs['mainColor'];
20
+ accentColor?: SharedLib.DashboardInputs['accentColor'];
21
+ authToken?: SharedLib.DashboardInputs['authToken'];
22
+ authKey?: SharedLib.DashboardInputs['authKey'];
23
+ loaderBackground?: SharedLib.DashboardInputs['loaderBackground'];
24
+ loaderFontColor?: SharedLib.DashboardInputs['loaderFontColor'];
25
+ loaderSpinnerColor?: SharedLib.DashboardInputs['loaderSpinnerColor'];
26
+ loaderSpinnerBackground?: SharedLib.DashboardInputs['loaderSpinnerBackground'];
27
+ appServer?: SharedLib.DashboardInputs['appServer'];
28
+ timezoneId?: SharedLib.DashboardInputs['timezoneId'];
29
+ apiHost?: SharedLib.DashboardInputs['apiHost'];
30
+ itemDimensions: SharedLib.DashboardInputs['itemDimensions'];
31
+ embedMode: DashboardInputs['embedMode'];
32
+ _containerId: string;
33
+ _iframeId: string;
34
+ params: SharedLib.DashboardContentParams;
35
+ _iframeUrl?: string;
36
+ iframeLoaded: boolean;
37
+ promises: SharedLib.DashboardPromises;
38
+ iframeStyle: SharedLib.IframeStyles;
39
+ _containerStyle: SharedLib.ContainerStyles;
40
+ _loaderStyle: SharedLib.LoaderStyles;
41
+ _lcStyle: SharedLib.LcStyles;
42
+ _loadingCircleStyle: SharedLib.PlStyles;
43
+ _containerLoaderStyle: SharedLib.ContainerLoaderStyles;
44
+ _loaderMsg: string;
45
+ containerWidth?: number;
46
+ dimensions?: SharedLib.DashboardDimensions;
47
+ currentScreenMode?: SharedLib.ScreenMode;
48
+ _itemEmbedding: boolean;
49
+ browserError: boolean;
50
+ browserErrorMsg: string;
51
+ dashboardError: boolean;
52
+ browserNotSupported: any[];
53
+ libVersion: string;
54
+ protected isLibraryLoaded: boolean;
55
+ protected dashboardReference: LuzmoElement;
56
+ currentAuthKey: string;
57
+ currentAuthToken: string;
58
+ isInitCalled: boolean;
59
+ private attributesMap;
60
+ _loadTimeoutHandle?: number;
61
+ _onResize: () => void;
62
+ loaderSize: number;
63
+ borderWidth: number;
64
+ minHeight: number;
65
+ iframeHeight?: string;
66
+ iframeWidth?: string;
67
+ _resizeObserver: ResizeObserver;
68
+ constructor();
69
+ connectedCallback(): void;
70
+ disconnectedCallback(): void;
71
+ firstUpdated(): void;
72
+ initComponent(): void;
73
+ setAllAttributes(): void;
74
+ updated(changedProperties: PropertyValues): void;
75
+ _setOptions(): SharedLib.DashboardContentParams;
76
+ _updateIframeUrl(): void;
77
+ _setupLoader(): void;
78
+ _displayError(): void;
79
+ _calculateDimAfterDashboardLoaded(): void;
80
+ _loaderStyles(): void;
81
+ static get styles(): import("lit").CSSResult[];
82
+ render(): TemplateResult;
83
+ getDashboards(): Promise<LuzmoDashboard[]>;
84
+ getData(itemId: string): Promise<SharedLib.ItemData>;
85
+ getFilters(): Promise<FilterGroup[]>;
86
+ setSelectedData<K extends CombinedSelectedDataInput>(itemId: string, filters: K): Promise<SharedLib.SetSelectedData>;
87
+ setAuthorization(key: string, token: string): Promise<void>;
88
+ refreshData(itemId?: string): Promise<void>;
89
+ reloadDashboard(): Promise<void>;
90
+ exportDashboard(format?: SharedLib.DashboardExportType): Promise<SharedLib.ExportDashboard>;
91
+ getAccessibleDashboards(): Promise<SharedLib.AccessibleDashboard[]>;
92
+ addFilters(itemId: string, filters: FilterGroup[]): Promise<SharedLib.AddFilters>;
93
+ setEditMode(editMode?: SharedLib.DashboardEditMode): Promise<SharedLib.SetEditMode>;
94
+ setPreview(preview: boolean): Promise<SharedLib.SetPreview>;
95
+ sendExportEmail(type?: SharedLib.SendExportEmailType, subject?: PartialRecord<SupportedLanguage, string>, message?: PartialRecord<SupportedLanguage, string>): Promise<void>;
96
+ isWebComponentViewMode(): boolean;
97
+ }
@@ -0,0 +1,8 @@
1
+ import { LuzmoDashboard } from './dashboard-base';
2
+ /** !
3
+ * @element luzmo-embed-dashboard
4
+ * @description Exposed by @luzmo/embed lib to everyone.
5
+ *
6
+ */
7
+ export declare class LuzmoEmbedDashboard extends LuzmoDashboard {
8
+ }
@@ -0,0 +1 @@
1
+ export declare const dashboardStyles: import("lit").CSSResult;
@@ -0,0 +1 @@
1
+ export declare const _setEventHandler: () => void;
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Adds JSON schemas to cache.
3
+ */
4
+ export declare function addJSONSchemas(schemas: any): void;
5
+ /**
6
+ * Returns a cached JSON schema by URL/schema $id.
7
+ */
8
+ export declare function getCachedJSONSchema(schemaUrl: string): any;
9
+ /**
10
+ * Returns all the cached JSON schemas.
11
+ */
12
+ export declare function getCachedJSONSchemas(): Record<string, any>;
13
+ /**
14
+ * Returns a URL for a Luzmo JSON schema name.
15
+ */
16
+ export declare function getJSONSchemaUrl(schemaName: string): string;
17
+ /**
18
+ * Fetches a Luzmo JSON schema. If a schema is cached it's returned.
19
+ *
20
+ * Example usage:
21
+ * const schema = await fetchJSONSchema('viz-item-type');
22
+ *
23
+ * In the example above, a schema https://developer.luzmo.com/assets/json-schemas/{version}/viz-item-type.schema.json
24
+ * will be fetched and cached.
25
+ */
26
+ export declare function fetchJSONSchema(schemaName: string): Promise<any>;
27
+ /**
28
+ * If you need to dereference Luzmo JSON schemas in your application, you can use @apidevtools/json-schema-ref-parser
29
+ * library and provide the following options for the refParser.dereference() method.
30
+ *
31
+ * Example usage:
32
+ *
33
+ * import * as refParser from '@apidevtools/json-schema-ref-parser';
34
+ * import { fetchJSONSchema, luzmoRefParserOptions } from '@luzmo/embed';
35
+ *
36
+ * async function showDereferencedSchema() {
37
+ * const schema = await fetchJSONSchema('text');
38
+ * const dereferencedSchema = await refParser.dereference(schema, luzmoRefParserOptions);
39
+ * console.log(dereferencedSchema);
40
+ * }
41
+ *
42
+ * Another example:
43
+ *
44
+ * import * as refParser from '@apidevtools/json-schema-ref-parser';
45
+ * import { addJSONSchemas, luzmoRefParserOptions } from '@luzmo/embed';
46
+ * import { TextJSONSchema, TextOptionsJSONSchema } from "@luzmo/dashboard-contents-types";
47
+ *
48
+ * async function showDereferencedSchema() {
49
+ * addJSONSchemas([TextJSONSchema, TextOptionsJSONSchema]);
50
+ * const dereferencedSchema = await refParser.dereference(TextJSONSchema, luzmoRefParserOptions);
51
+ * console.log(dereferencedSchema);
52
+ * }
53
+ */
54
+ export declare const luzmoRefParserOptions: {
55
+ mutateInputSchema: boolean;
56
+ resolve: {
57
+ luzmo: {
58
+ order: number;
59
+ canRead: (file: any) => boolean;
60
+ read: (file: any, callback: any) => void;
61
+ };
62
+ external: boolean;
63
+ };
64
+ };
@@ -0,0 +1,24 @@
1
+ import { IQAnswerOptions, IQMessage } from '@luzmo/dashboard-contents-types';
2
+ import { LitElement, PropertyValues } from 'lit';
3
+ import type { TemplateResult } from 'lit-html';
4
+ export declare class LuzmoIQEmbedAnswerComponent extends LitElement {
5
+ appServer?: string;
6
+ apiHost?: string;
7
+ options?: IQAnswerOptions;
8
+ aiEndPoint?: string;
9
+ authKey?: string;
10
+ authToken?: string;
11
+ messages: IQMessage[];
12
+ version?: string;
13
+ libVersion?: string;
14
+ remoteEntryServer: string;
15
+ chartElement: HTMLElement;
16
+ static styles: import("lit").CSSResult;
17
+ protected createRenderRoot(): HTMLElement | DocumentFragment;
18
+ protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
19
+ private get calculatedAppServer();
20
+ private createAndAppendElement;
21
+ private updateVizItemProperties;
22
+ updated(changedProperties: PropertyValues): Promise<void>;
23
+ protected render(): TemplateResult<1>;
24
+ }
@@ -0,0 +1,27 @@
1
+ import type { IQChatOptions } from '@luzmo/dashboard-contents-types';
2
+ import { LitElement, PropertyValues } from 'lit';
3
+ import type { TemplateResult } from 'lit-html';
4
+ export declare class LuzmoIQEmbedChatComponent extends LitElement {
5
+ appServer?: string;
6
+ apiHost?: string;
7
+ options?: IQChatOptions;
8
+ initialSuggestionsDatasetId?: string;
9
+ aiEndpoint?: string;
10
+ authKey?: string;
11
+ authToken?: string;
12
+ version?: string;
13
+ libVersion?: string;
14
+ remoteEntryServer: string;
15
+ aydHost: string;
16
+ availableDatasets?: string[];
17
+ chartElement: HTMLElement;
18
+ static styles: import("lit").CSSResult;
19
+ protected createRenderRoot(): HTMLElement | DocumentFragment;
20
+ protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
21
+ private get calculatedAppServer();
22
+ private createAndAppendElement;
23
+ private updateVizItemProperties;
24
+ updated(changedProperties: PropertyValues): Promise<void>;
25
+ protected render(): TemplateResult<1>;
26
+ connectedCallback(): void;
27
+ }
@@ -0,0 +1,6 @@
1
+ import { LuzmoDashboard } from './dashboard/dashboard-base';
2
+ declare class LuzmoDashboardService {
3
+ _dashboardComponents: LuzmoDashboard[];
4
+ }
5
+ declare const _default: LuzmoDashboardService;
6
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { LuzmoBaseVizItem } from './viz-item.base';
2
+ export type { LuzmoVizItemComponentInterface } from './viz-item.base';
3
+ export declare class LuzmoEmbedVizItem extends LuzmoBaseVizItem {
4
+ }
@@ -0,0 +1,71 @@
1
+ import { VizItemExportType, FilterGroup, VizItemOptions, VizItemSlots, VizItemType } from '@luzmo/dashboard-contents-types';
2
+ import * as SharedLib from '@luzmo/shared-embed';
3
+ import { LitElement, PropertyValues } from 'lit';
4
+ /**
5
+ * The version of the dashboard contents that is linked to the current library.
6
+ *
7
+ * If custom options/slots/etc. are passed to the component, the library assumes that
8
+ * they are using this dashboard contents version. Then custom options/slots/etc.
9
+ * together with this dashboard contents version are passed to the dashboard app (https://app.luzmo.com/dashboard-app/remoteEntry.mjs)
10
+ * and if needed the migration will be applied on the dashboard app level.
11
+ */
12
+ export declare const dashboardContentsVersion = "0.1.99";
13
+ type FunctionCall = [(...args: any) => any, any[]];
14
+ interface LuzmoVizItemComponentInterface extends HTMLElement {
15
+ options?: VizItemOptions;
16
+ type?: VizItemType;
17
+ appServer?: string;
18
+ apiHost?: string;
19
+ slots?: VizItemSlots;
20
+ canFilter?: string[] | 'all';
21
+ filters?: FilterGroup[];
22
+ contextId?: string;
23
+ authKey?: string;
24
+ authToken?: string;
25
+ dashboardId?: string;
26
+ itemId?: string;
27
+ getFilters: () => FilterGroup[];
28
+ export: (type?: VizItemExportType) => void;
29
+ refreshData: () => void;
30
+ getData: () => SharedLib.ItemData;
31
+ setSelectedData: (selectedDataInput: SharedLib.SelectedDataInput) => SharedLib.SetSelectedData;
32
+ setAuthorization: (key: string, token: string) => void;
33
+ }
34
+ export type { LuzmoVizItemComponentInterface };
35
+ export declare class LuzmoBaseVizItem extends LitElement implements LuzmoVizItemComponentInterface {
36
+ appServer?: string;
37
+ apiHost?: string;
38
+ slots?: VizItemSlots;
39
+ options?: VizItemOptions;
40
+ type?: VizItemType;
41
+ authKey?: string;
42
+ authToken?: string;
43
+ version?: string;
44
+ contextId?: string;
45
+ canFilter?: SharedLib.CanFilter;
46
+ filters?: FilterGroup[];
47
+ dashboardId?: string;
48
+ itemId?: string;
49
+ selectedData: SharedLib.SelectedDataInput;
50
+ dashboardContentsVersion?: string;
51
+ libVersion?: string;
52
+ chartElement: HTMLElement & Partial<LuzmoVizItemComponentInterface> & {
53
+ setSelectedData?: (itemId?: string, filters?: SharedLib.SelectedDataInput) => SharedLib.SetSelectedData;
54
+ };
55
+ postInitCallQueue: FunctionCall[];
56
+ static styles: import("lit").CSSResult;
57
+ protected createRenderRoot(): HTMLElement | DocumentFragment;
58
+ canInitializeVizItem(): boolean;
59
+ getFilters(): FilterGroup[];
60
+ export(type?: VizItemExportType): void;
61
+ getData(): SharedLib.ItemData;
62
+ refreshData(): void;
63
+ setSelectedData(selectedDataInput: SharedLib.SelectedDataInput): SharedLib.SetSelectedData;
64
+ setAuthorization(key: string, token: string): void;
65
+ attributeChangedCallback(name: string, _old: string | null, value: string | null): void;
66
+ protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
67
+ private createAndAppendElement;
68
+ private updateVizItemProperties;
69
+ updated(changedProperties: PropertyValues): Promise<void>;
70
+ protected render(): unknown;
71
+ }