@luzmo/embed 6.7.0-es2021 → 6.7.1

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 CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## [6.7.1] - 2025-11-12
6
+
7
+ ### Changed
8
+ - Maintenance update with stability improvements.
9
+
5
10
  ## [6.7.0] - 2025-10-14
6
11
 
7
12
  ### Added
package/index.cjs CHANGED
@@ -62,7 +62,7 @@ var import_decorators = require("lit/decorators.js");
62
62
  var import_style_map = require("lit/directives/style-map.js");
63
63
 
64
64
  // libs/embed-libs/embed/package.json
65
- var version = "6.7.0";
65
+ var version = "6.7.1";
66
66
 
67
67
  // libs/embed-libs/embed/src/lib/helper/event-bus-handler.ts
68
68
  var SharedLib = __toESM(require("@luzmo/shared-embed"));
@@ -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
@@ -23,7 +23,7 @@ import { property, query, state } from "lit/decorators.js";
23
23
  import { styleMap } from "lit/directives/style-map.js";
24
24
 
25
25
  // libs/embed-libs/embed/package.json
26
- var version = "6.7.0";
26
+ var version = "6.7.1";
27
27
 
28
28
  // libs/embed-libs/embed/src/lib/helper/event-bus-handler.ts
29
29
  import * as SharedLib from "@luzmo/shared-embed";
@@ -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);
@@ -1379,15 +1379,15 @@ var n = class {
1379
1379
  };
1380
1380
  var r = (t4) => new n("string" == typeof t4 ? t4 : t4 + "", void 0, s);
1381
1381
  var i = (t4, ...e7) => {
1382
- const o7 = 1 === t4.length ? t4[0] : e7.reduce((e8, s4, o8) => e8 + ((t5) => {
1382
+ const o7 = 1 === t4.length ? t4[0] : e7.reduce(((e8, s4, o8) => e8 + ((t5) => {
1383
1383
  if (true === t5._$cssResult$) return t5.cssText;
1384
1384
  if ("number" == typeof t5) return t5;
1385
1385
  throw Error("Value passed to 'css' function must be a 'css' function result: " + t5 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
1386
- })(s4) + t4[o8 + 1], t4[0]);
1386
+ })(s4) + t4[o8 + 1]), t4[0]);
1387
1387
  return new n(o7, t4, s);
1388
1388
  };
1389
1389
  var S = (s4, o7) => {
1390
- if (e) s4.adoptedStyleSheets = o7.map((t4) => t4 instanceof CSSStyleSheet ? t4 : t4.styleSheet);
1390
+ if (e) s4.adoptedStyleSheets = o7.map(((t4) => t4 instanceof CSSStyleSheet ? t4 : t4.styleSheet));
1391
1391
  else for (const e7 of o7) {
1392
1392
  const o8 = document.createElement("style"), n6 = t.litNonce;
1393
1393
  void 0 !== n6 && o8.setAttribute("nonce", n6), o8.textContent = e7.cssText, s4.appendChild(o8);
@@ -1504,7 +1504,7 @@ var y = class extends HTMLElement {
1504
1504
  super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
1505
1505
  }
1506
1506
  _$Ev() {
1507
- this._$ES = new Promise((t4) => this.enableUpdating = t4), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t4) => t4(this));
1507
+ this._$ES = new Promise(((t4) => this.enableUpdating = t4)), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(((t4) => t4(this)));
1508
1508
  }
1509
1509
  addController(t4) {
1510
1510
  (this._$EO ??= /* @__PURE__ */ new Set()).add(t4), void 0 !== this.renderRoot && this.isConnected && t4.hostConnected?.();
@@ -1522,12 +1522,12 @@ var y = class extends HTMLElement {
1522
1522
  return S(t4, this.constructor.elementStyles), t4;
1523
1523
  }
1524
1524
  connectedCallback() {
1525
- this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((t4) => t4.hostConnected?.());
1525
+ this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach(((t4) => t4.hostConnected?.()));
1526
1526
  }
1527
1527
  enableUpdating(t4) {
1528
1528
  }
1529
1529
  disconnectedCallback() {
1530
- this._$EO?.forEach((t4) => t4.hostDisconnected?.());
1530
+ this._$EO?.forEach(((t4) => t4.hostDisconnected?.()));
1531
1531
  }
1532
1532
  attributeChangedCallback(t4, s4, i7) {
1533
1533
  this._$AK(t4, i7);
@@ -1586,7 +1586,7 @@ var y = class extends HTMLElement {
1586
1586
  let t4 = false;
1587
1587
  const s4 = this._$AL;
1588
1588
  try {
1589
- t4 = this.shouldUpdate(s4), t4 ? (this.willUpdate(s4), this._$EO?.forEach((t5) => t5.hostUpdate?.()), this.update(s4)) : this._$EM();
1589
+ t4 = this.shouldUpdate(s4), t4 ? (this.willUpdate(s4), this._$EO?.forEach(((t5) => t5.hostUpdate?.())), this.update(s4)) : this._$EM();
1590
1590
  } catch (s5) {
1591
1591
  throw t4 = false, this._$EM(), s5;
1592
1592
  }
@@ -1595,7 +1595,7 @@ var y = class extends HTMLElement {
1595
1595
  willUpdate(t4) {
1596
1596
  }
1597
1597
  _$AE(t4) {
1598
- this._$EO?.forEach((t5) => t5.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t4)), this.updated(t4);
1598
+ this._$EO?.forEach(((t5) => t5.hostUpdated?.())), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t4)), this.updated(t4);
1599
1599
  }
1600
1600
  _$EM() {
1601
1601
  this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
@@ -1610,7 +1610,7 @@ var y = class extends HTMLElement {
1610
1610
  return true;
1611
1611
  }
1612
1612
  update(t4) {
1613
- this._$Eq &&= this._$Eq.forEach((t5) => this._$ET(t5, this[t5])), this._$EM();
1613
+ this._$Eq &&= this._$Eq.forEach(((t5) => this._$ET(t5, this[t5]))), this._$EM();
1614
1614
  }
1615
1615
  updated(t4) {
1616
1616
  }
@@ -1786,7 +1786,7 @@ var R = class _R {
1786
1786
  e7 < i7.length && (this._$AR(s4 && s4._$AB.nextSibling, e7), i7.length = e7);
1787
1787
  }
1788
1788
  _$AR(t4 = this._$AA.nextSibling, i7) {
1789
- for (this._$AP?.(false, true, i7); t4 && t4 !== this._$AB; ) {
1789
+ for (this._$AP?.(false, true, i7); t4 !== this._$AB; ) {
1790
1790
  const i8 = t4.nextSibling;
1791
1791
  t4.remove(), t4 = i8;
1792
1792
  }
@@ -1861,7 +1861,7 @@ var z = class {
1861
1861
  }
1862
1862
  };
1863
1863
  var j = t2.litHtmlPolyfillSupport;
1864
- j?.(N, R), (t2.litHtmlVersions ??= []).push("3.3.0");
1864
+ j?.(N, R), (t2.litHtmlVersions ??= []).push("3.3.1");
1865
1865
  var B = (t4, i7, s4) => {
1866
1866
  const e7 = s4?.renderBefore ?? i7;
1867
1867
  let h3 = e7._$litPart$;
@@ -1991,10 +1991,10 @@ var o6 = e6(class extends i5 {
1991
1991
  if (super(t4), t4.type !== t3.ATTRIBUTE || "style" !== t4.name || t4.strings?.length > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
1992
1992
  }
1993
1993
  render(t4) {
1994
- return Object.keys(t4).reduce((e7, r6) => {
1994
+ return Object.keys(t4).reduce(((e7, r6) => {
1995
1995
  const s4 = t4[r6];
1996
1996
  return null == s4 ? e7 : e7 + `${r6 = r6.includes("-") ? r6 : r6.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${s4};`;
1997
- }, "");
1997
+ }), "");
1998
1998
  }
1999
1999
  update(e7, [r6]) {
2000
2000
  const { style: s4 } = e7.element;
@@ -2013,7 +2013,7 @@ var o6 = e6(class extends i5 {
2013
2013
  });
2014
2014
 
2015
2015
  // libs/embed-libs/embed/package.json
2016
- var version = "6.7.0";
2016
+ var version = "6.7.1";
2017
2017
 
2018
2018
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
2019
2019
  var LuzmoDashboardService = class {
@@ -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,14 +1,11 @@
1
1
  {
2
2
  "name": "@luzmo/embed",
3
- "version": "6.7.0-es2021",
3
+ "version": "6.7.1",
4
4
  "dependencies": {
5
- "lit": "3.3.0",
6
- "@luzmo/shared-embed": "5.6.0",
7
- "@luzmo/dashboard-contents-types": "1.0.18"
5
+ "lit": "3.3.1",
6
+ "@luzmo/shared-embed": "5.6.1"
8
7
  },
9
8
  "keywords": [
10
- "es2021",
11
- "safari-compatible",
12
9
  "es6",
13
10
  "web-component",
14
11
  "lit",
@@ -24,9 +21,5 @@
24
21
  ],
25
22
  "module": "./index.js",
26
23
  "types": "./src/index.d.ts",
27
- "license": "SEE LICENSE IN LICENSE",
28
- "description": "ES2021 build for Safari < 16.3 compatibility",
29
- "publishConfig": {
30
- "tag": "es2021"
31
- }
24
+ "license": "SEE LICENSE IN LICENSE"
32
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.98";
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
+ }