@luzmo/embed 6.6.0 → 6.7.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/CHANGELOG.md +126 -165
- package/README.md +17 -0
- package/index.cjs +45 -43
- package/index.js +42 -40
- package/luzmo-embed.min.js +130 -219
- package/package.json +10 -4
- package/src/index.d.ts +0 -8
- package/src/lib/dashboard/dashboard-base.d.ts +0 -96
- package/src/lib/dashboard/dashboard-component.d.ts +0 -8
- package/src/lib/dashboard/dashboard-styles.d.ts +0 -1
- package/src/lib/helper/event-bus-handler.d.ts +0 -1
- package/src/lib/helper/json-schema-utils.d.ts +0 -64
- package/src/lib/iq-components/luzmo-iq-answer.d.ts +0 -24
- package/src/lib/iq-components/luzmo-iq-chat.d.ts +0 -27
- package/src/lib/luzmo-service.d.ts +0 -6
- package/src/lib/viz-item/viz-item-component.d.ts +0 -4
- package/src/lib/viz-item/viz-item.base.d.ts +0 -71
package/luzmo-embed.min.js
CHANGED
|
@@ -22,14 +22,13 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
22
22
|
for (var i7 = decorators.length - 1, decorator; i7 >= 0; i7--)
|
|
23
23
|
if (decorator = decorators[i7])
|
|
24
24
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
25
|
-
if (kind && result)
|
|
26
|
-
__defProp(target, key, result);
|
|
25
|
+
if (kind && result) __defProp(target, key, result);
|
|
27
26
|
return result;
|
|
28
27
|
};
|
|
29
28
|
|
|
30
29
|
// libs/embed-libs/embed/src/index.ts
|
|
31
|
-
var
|
|
32
|
-
__export(
|
|
30
|
+
var index_exports = {};
|
|
31
|
+
__export(index_exports, {
|
|
33
32
|
LuzmoEmbedDashboard: () => LuzmoEmbedDashboard,
|
|
34
33
|
LuzmoEmbedVizItem: () => LuzmoEmbedVizItem,
|
|
35
34
|
LuzmoIQEmbedAnswerComponent: () => LuzmoIQEmbedAnswerComponent,
|
|
@@ -42,7 +41,7 @@ __export(src_exports2, {
|
|
|
42
41
|
luzmoRefParserOptions: () => luzmoRefParserOptions,
|
|
43
42
|
selectedDataUtils: () => selectedDataUtils
|
|
44
43
|
});
|
|
45
|
-
module.exports = __toCommonJS(
|
|
44
|
+
module.exports = __toCommonJS(index_exports);
|
|
46
45
|
|
|
47
46
|
// libs/embed-libs/shared-embed/src/lib/helpers/error.ts
|
|
48
47
|
var _handleError = (errorMessage, parameters) => {
|
|
@@ -833,6 +832,24 @@ var reloadDashboard = (dashboardComponent, iframe) => {
|
|
|
833
832
|
return Promise.reject(new Error("Cannot retrieve contentWindow."));
|
|
834
833
|
};
|
|
835
834
|
|
|
835
|
+
// libs/embed-libs/shared-embed/src/lib/methods/send-export-email.ts
|
|
836
|
+
var sendExportEmail = (dashboardComponent, iframe, type, subject, message) => {
|
|
837
|
+
if (iframe) {
|
|
838
|
+
iframe.contentWindow.postMessage(
|
|
839
|
+
{
|
|
840
|
+
action: "sendExportEmail",
|
|
841
|
+
type: type || "once",
|
|
842
|
+
subject,
|
|
843
|
+
message,
|
|
844
|
+
_version: dashboardComponent.libVersion
|
|
845
|
+
},
|
|
846
|
+
"*"
|
|
847
|
+
);
|
|
848
|
+
return Promise.resolve();
|
|
849
|
+
}
|
|
850
|
+
return Promise.reject(new Error("Cannot retrieve contentWindow."));
|
|
851
|
+
};
|
|
852
|
+
|
|
836
853
|
// libs/embed-libs/shared-embed/src/lib/methods/set-authorization.ts
|
|
837
854
|
var setAuthorization = (dashboardComponent, iframe, key, token) => {
|
|
838
855
|
if (iframe) {
|
|
@@ -881,17 +898,16 @@ var setEditMode = (dashboardComponent, iframe, editMode) => {
|
|
|
881
898
|
return Promise.reject(new Error("Cannot retrieve contentWindow."));
|
|
882
899
|
};
|
|
883
900
|
|
|
884
|
-
// libs/embed-libs/shared-embed/src/lib/methods/set-
|
|
885
|
-
var
|
|
901
|
+
// libs/embed-libs/shared-embed/src/lib/methods/set-preview.ts
|
|
902
|
+
var setPreview = (dashboardComponent, iframe, preview) => {
|
|
886
903
|
if (iframe) {
|
|
887
904
|
const requestId = uuidv4();
|
|
888
905
|
iframe.contentWindow.postMessage(
|
|
889
906
|
{
|
|
890
|
-
action: "
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
_version: dashboardComponent.libVersion
|
|
894
|
-
requestId
|
|
907
|
+
action: "setPreview",
|
|
908
|
+
preview,
|
|
909
|
+
requestId,
|
|
910
|
+
_version: dashboardComponent.libVersion
|
|
895
911
|
},
|
|
896
912
|
"*"
|
|
897
913
|
);
|
|
@@ -899,7 +915,7 @@ var setSelectedData = (dashboardComponent, iframe, itemId, filters) => {
|
|
|
899
915
|
dashboardComponent.promises[requestId] = { resolve, reject };
|
|
900
916
|
setTimeout(() => {
|
|
901
917
|
if (dashboardComponent.promises[requestId]) {
|
|
902
|
-
const errorMessage = "
|
|
918
|
+
const errorMessage = "setPreview request timed out.";
|
|
903
919
|
dashboardComponent.promises[requestId].reject(
|
|
904
920
|
new Error(errorMessage)
|
|
905
921
|
);
|
|
@@ -908,19 +924,20 @@ var setSelectedData = (dashboardComponent, iframe, itemId, filters) => {
|
|
|
908
924
|
}, 2e3);
|
|
909
925
|
});
|
|
910
926
|
}
|
|
911
|
-
return Promise.reject();
|
|
927
|
+
return Promise.reject(new Error("Cannot retrieve contentWindow."));
|
|
912
928
|
};
|
|
913
929
|
|
|
914
|
-
// libs/embed-libs/shared-embed/src/lib/methods/set-
|
|
915
|
-
var
|
|
930
|
+
// libs/embed-libs/shared-embed/src/lib/methods/set-selected-data.ts
|
|
931
|
+
var setSelectedData = (dashboardComponent, iframe, itemId, filters) => {
|
|
916
932
|
if (iframe) {
|
|
917
933
|
const requestId = uuidv4();
|
|
918
934
|
iframe.contentWindow.postMessage(
|
|
919
935
|
{
|
|
920
|
-
action: "
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
_version: dashboardComponent.libVersion
|
|
936
|
+
action: "setSelectedData",
|
|
937
|
+
itemId,
|
|
938
|
+
filters,
|
|
939
|
+
_version: dashboardComponent.libVersion,
|
|
940
|
+
requestId
|
|
924
941
|
},
|
|
925
942
|
"*"
|
|
926
943
|
);
|
|
@@ -928,7 +945,7 @@ var setPreview = (dashboardComponent, iframe, preview) => {
|
|
|
928
945
|
dashboardComponent.promises[requestId] = { resolve, reject };
|
|
929
946
|
setTimeout(() => {
|
|
930
947
|
if (dashboardComponent.promises[requestId]) {
|
|
931
|
-
const errorMessage = "
|
|
948
|
+
const errorMessage = "setSelectedData request timed out.";
|
|
932
949
|
dashboardComponent.promises[requestId].reject(
|
|
933
950
|
new Error(errorMessage)
|
|
934
951
|
);
|
|
@@ -937,7 +954,7 @@ var setPreview = (dashboardComponent, iframe, preview) => {
|
|
|
937
954
|
}, 2e3);
|
|
938
955
|
});
|
|
939
956
|
}
|
|
940
|
-
return Promise.reject(
|
|
957
|
+
return Promise.reject();
|
|
941
958
|
};
|
|
942
959
|
|
|
943
960
|
// libs/embed-libs/shared-embed/src/lib/service/calculate-dimensions.ts
|
|
@@ -1344,8 +1361,7 @@ var s = Symbol();
|
|
|
1344
1361
|
var o = /* @__PURE__ */ new WeakMap();
|
|
1345
1362
|
var n = class {
|
|
1346
1363
|
constructor(t4, e7, o7) {
|
|
1347
|
-
if (this._$cssResult$ = true, o7 !== s)
|
|
1348
|
-
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
1364
|
+
if (this._$cssResult$ = true, o7 !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
1349
1365
|
this.cssText = t4, this.t = e7;
|
|
1350
1366
|
}
|
|
1351
1367
|
get styleSheet() {
|
|
@@ -1364,27 +1380,22 @@ var n = class {
|
|
|
1364
1380
|
var r = (t4) => new n("string" == typeof t4 ? t4 : t4 + "", void 0, s);
|
|
1365
1381
|
var i = (t4, ...e7) => {
|
|
1366
1382
|
const o7 = 1 === t4.length ? t4[0] : e7.reduce((e8, s4, o8) => e8 + ((t5) => {
|
|
1367
|
-
if (true === t5._$cssResult$)
|
|
1368
|
-
|
|
1369
|
-
if ("number" == typeof t5)
|
|
1370
|
-
return t5;
|
|
1383
|
+
if (true === t5._$cssResult$) return t5.cssText;
|
|
1384
|
+
if ("number" == typeof t5) return t5;
|
|
1371
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.");
|
|
1372
1386
|
})(s4) + t4[o8 + 1], t4[0]);
|
|
1373
1387
|
return new n(o7, t4, s);
|
|
1374
1388
|
};
|
|
1375
1389
|
var S = (s4, o7) => {
|
|
1376
|
-
if (e)
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
void 0 !== n6 && o8.setAttribute("nonce", n6), o8.textContent = e7.cssText, s4.appendChild(o8);
|
|
1382
|
-
}
|
|
1390
|
+
if (e) s4.adoptedStyleSheets = o7.map((t4) => t4 instanceof CSSStyleSheet ? t4 : t4.styleSheet);
|
|
1391
|
+
else for (const e7 of o7) {
|
|
1392
|
+
const o8 = document.createElement("style"), n6 = t.litNonce;
|
|
1393
|
+
void 0 !== n6 && o8.setAttribute("nonce", n6), o8.textContent = e7.cssText, s4.appendChild(o8);
|
|
1394
|
+
}
|
|
1383
1395
|
};
|
|
1384
1396
|
var c = e ? (t4) => t4 : (t4) => t4 instanceof CSSStyleSheet ? ((t5) => {
|
|
1385
1397
|
let e7 = "";
|
|
1386
|
-
for (const s4 of t5.cssRules)
|
|
1387
|
-
e7 += s4.cssText;
|
|
1398
|
+
for (const s4 of t5.cssRules) e7 += s4.cssText;
|
|
1388
1399
|
return r(e7);
|
|
1389
1400
|
})(t4) : t4;
|
|
1390
1401
|
|
|
@@ -1455,25 +1466,20 @@ var y = class extends HTMLElement {
|
|
|
1455
1466
|
return this.elementProperties.get(t4) ?? b;
|
|
1456
1467
|
}
|
|
1457
1468
|
static _$Ei() {
|
|
1458
|
-
if (this.hasOwnProperty(d("elementProperties")))
|
|
1459
|
-
return;
|
|
1469
|
+
if (this.hasOwnProperty(d("elementProperties"))) return;
|
|
1460
1470
|
const t4 = n2(this);
|
|
1461
1471
|
t4.finalize(), void 0 !== t4.l && (this.l = [...t4.l]), this.elementProperties = new Map(t4.elementProperties);
|
|
1462
1472
|
}
|
|
1463
1473
|
static finalize() {
|
|
1464
|
-
if (this.hasOwnProperty(d("finalized")))
|
|
1465
|
-
return;
|
|
1474
|
+
if (this.hasOwnProperty(d("finalized"))) return;
|
|
1466
1475
|
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d("properties"))) {
|
|
1467
1476
|
const t5 = this.properties, s4 = [...r2(t5), ...o2(t5)];
|
|
1468
|
-
for (const i7 of s4)
|
|
1469
|
-
this.createProperty(i7, t5[i7]);
|
|
1477
|
+
for (const i7 of s4) this.createProperty(i7, t5[i7]);
|
|
1470
1478
|
}
|
|
1471
1479
|
const t4 = this[Symbol.metadata];
|
|
1472
1480
|
if (null !== t4) {
|
|
1473
1481
|
const s4 = litPropertyMetadata.get(t4);
|
|
1474
|
-
if (void 0 !== s4)
|
|
1475
|
-
for (const [t5, i7] of s4)
|
|
1476
|
-
this.elementProperties.set(t5, i7);
|
|
1482
|
+
if (void 0 !== s4) for (const [t5, i7] of s4) this.elementProperties.set(t5, i7);
|
|
1477
1483
|
}
|
|
1478
1484
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
1479
1485
|
for (const [t5, s4] of this.elementProperties) {
|
|
@@ -1486,10 +1492,8 @@ var y = class extends HTMLElement {
|
|
|
1486
1492
|
const i7 = [];
|
|
1487
1493
|
if (Array.isArray(s4)) {
|
|
1488
1494
|
const e7 = new Set(s4.flat(1 / 0).reverse());
|
|
1489
|
-
for (const s5 of e7)
|
|
1490
|
-
|
|
1491
|
-
} else
|
|
1492
|
-
void 0 !== s4 && i7.push(c(s4));
|
|
1495
|
+
for (const s5 of e7) i7.unshift(c(s5));
|
|
1496
|
+
} else void 0 !== s4 && i7.push(c(s4));
|
|
1493
1497
|
return i7;
|
|
1494
1498
|
}
|
|
1495
1499
|
static _$Eu(t4, s4) {
|
|
@@ -1510,8 +1514,7 @@ var y = class extends HTMLElement {
|
|
|
1510
1514
|
}
|
|
1511
1515
|
_$E_() {
|
|
1512
1516
|
const t4 = /* @__PURE__ */ new Map(), s4 = this.constructor.elementProperties;
|
|
1513
|
-
for (const i7 of s4.keys())
|
|
1514
|
-
this.hasOwnProperty(i7) && (t4.set(i7, this[i7]), delete this[i7]);
|
|
1517
|
+
for (const i7 of s4.keys()) this.hasOwnProperty(i7) && (t4.set(i7, this[i7]), delete this[i7]);
|
|
1515
1518
|
t4.size > 0 && (this._$Ep = t4);
|
|
1516
1519
|
}
|
|
1517
1520
|
createRenderRoot() {
|
|
@@ -1546,8 +1549,7 @@ var y = class extends HTMLElement {
|
|
|
1546
1549
|
requestUpdate(t4, s4, i7) {
|
|
1547
1550
|
if (void 0 !== t4) {
|
|
1548
1551
|
const e7 = this.constructor, h3 = this[t4];
|
|
1549
|
-
if (i7 ??= e7.getPropertyOptions(t4), !((i7.hasChanged ?? f)(h3, s4) || i7.useDefault && i7.reflect && h3 === this._$Ej?.get(t4) && !this.hasAttribute(e7._$Eu(t4, i7))))
|
|
1550
|
-
return;
|
|
1552
|
+
if (i7 ??= e7.getPropertyOptions(t4), !((i7.hasChanged ?? f)(h3, s4) || i7.useDefault && i7.reflect && h3 === this._$Ej?.get(t4) && !this.hasAttribute(e7._$Eu(t4, i7)))) return;
|
|
1551
1553
|
this.C(t4, s4, i7);
|
|
1552
1554
|
}
|
|
1553
1555
|
false === this.isUpdatePending && (this._$ES = this._$EP());
|
|
@@ -1569,20 +1571,17 @@ var y = class extends HTMLElement {
|
|
|
1569
1571
|
return this.performUpdate();
|
|
1570
1572
|
}
|
|
1571
1573
|
performUpdate() {
|
|
1572
|
-
if (!this.isUpdatePending)
|
|
1573
|
-
return;
|
|
1574
|
+
if (!this.isUpdatePending) return;
|
|
1574
1575
|
if (!this.hasUpdated) {
|
|
1575
1576
|
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
1576
|
-
for (const [t6, s5] of this._$Ep)
|
|
1577
|
-
this[t6] = s5;
|
|
1577
|
+
for (const [t6, s5] of this._$Ep) this[t6] = s5;
|
|
1578
1578
|
this._$Ep = void 0;
|
|
1579
1579
|
}
|
|
1580
1580
|
const t5 = this.constructor.elementProperties;
|
|
1581
|
-
if (t5.size > 0)
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
}
|
|
1581
|
+
if (t5.size > 0) for (const [s5, i7] of t5) {
|
|
1582
|
+
const { wrapped: t6 } = i7, e7 = this[s5];
|
|
1583
|
+
true !== t6 || this._$AL.has(s5) || void 0 === e7 || this.C(s5, void 0, i7, e7);
|
|
1584
|
+
}
|
|
1586
1585
|
}
|
|
1587
1586
|
let t4 = false;
|
|
1588
1587
|
const s4 = this._$AL;
|
|
@@ -1651,8 +1650,7 @@ var E = Symbol.for("lit-nothing");
|
|
|
1651
1650
|
var A = /* @__PURE__ */ new WeakMap();
|
|
1652
1651
|
var C = r3.createTreeWalker(r3, 129);
|
|
1653
1652
|
function P(t4, i7) {
|
|
1654
|
-
if (!a2(t4) || !t4.hasOwnProperty("raw"))
|
|
1655
|
-
throw Error("invalid template strings array");
|
|
1653
|
+
if (!a2(t4) || !t4.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1656
1654
|
return void 0 !== s2 ? s2.createHTML(i7) : i7;
|
|
1657
1655
|
}
|
|
1658
1656
|
var V = (t4, i7) => {
|
|
@@ -1661,8 +1659,7 @@ var V = (t4, i7) => {
|
|
|
1661
1659
|
for (let i8 = 0; i8 < s4; i8++) {
|
|
1662
1660
|
const s5 = t4[i8];
|
|
1663
1661
|
let a3, u3, d3 = -1, y3 = 0;
|
|
1664
|
-
for (; y3 < s5.length && (c4.lastIndex = y3, u3 = c4.exec(s5), null !== u3); )
|
|
1665
|
-
y3 = c4.lastIndex, c4 === f2 ? "!--" === u3[1] ? c4 = v : void 0 !== u3[1] ? c4 = _ : void 0 !== u3[2] ? ($.test(u3[2]) && (r6 = RegExp("</" + u3[2], "g")), c4 = m) : void 0 !== u3[3] && (c4 = m) : c4 === m ? ">" === u3[0] ? (c4 = r6 ?? f2, d3 = -1) : void 0 === u3[1] ? d3 = -2 : (d3 = c4.lastIndex - u3[2].length, a3 = u3[1], c4 = void 0 === u3[3] ? m : '"' === u3[3] ? g : p2) : c4 === g || c4 === p2 ? c4 = m : c4 === v || c4 === _ ? c4 = f2 : (c4 = m, r6 = void 0);
|
|
1662
|
+
for (; y3 < s5.length && (c4.lastIndex = y3, u3 = c4.exec(s5), null !== u3); ) y3 = c4.lastIndex, c4 === f2 ? "!--" === u3[1] ? c4 = v : void 0 !== u3[1] ? c4 = _ : void 0 !== u3[2] ? ($.test(u3[2]) && (r6 = RegExp("</" + u3[2], "g")), c4 = m) : void 0 !== u3[3] && (c4 = m) : c4 === m ? ">" === u3[0] ? (c4 = r6 ?? f2, d3 = -1) : void 0 === u3[1] ? d3 = -2 : (d3 = c4.lastIndex - u3[2].length, a3 = u3[1], c4 = void 0 === u3[3] ? m : '"' === u3[3] ? g : p2) : c4 === g || c4 === p2 ? c4 = m : c4 === v || c4 === _ ? c4 = f2 : (c4 = m, r6 = void 0);
|
|
1666
1663
|
const x2 = c4 === m && t4[i8 + 1].startsWith("/>") ? " " : "";
|
|
1667
1664
|
l3 += c4 === f2 ? s5 + n3 : d3 >= 0 ? (o7.push(a3), s5.slice(0, d3) + e3 + s5.slice(d3) + h2 + x2) : s5 + h2 + (-2 === d3 ? i8 : x2);
|
|
1668
1665
|
}
|
|
@@ -1680,30 +1677,23 @@ var N = class _N {
|
|
|
1680
1677
|
}
|
|
1681
1678
|
for (; null !== (r6 = C.nextNode()) && d3.length < u3; ) {
|
|
1682
1679
|
if (1 === r6.nodeType) {
|
|
1683
|
-
if (r6.hasAttributes())
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
d3.push({ type: 1, index: c4, name: e7[2], strings: s5, ctor: "." === e7[1] ? H : "?" === e7[1] ? I : "@" === e7[1] ? L : k }), r6.removeAttribute(t5);
|
|
1688
|
-
} else
|
|
1689
|
-
t5.startsWith(h2) && (d3.push({ type: 6, index: c4 }), r6.removeAttribute(t5));
|
|
1680
|
+
if (r6.hasAttributes()) for (const t5 of r6.getAttributeNames()) if (t5.endsWith(e3)) {
|
|
1681
|
+
const i7 = v2[a3++], s5 = r6.getAttribute(t5).split(h2), e7 = /([.?@])?(.*)/.exec(i7);
|
|
1682
|
+
d3.push({ type: 1, index: c4, name: e7[2], strings: s5, ctor: "." === e7[1] ? H : "?" === e7[1] ? I : "@" === e7[1] ? L : k }), r6.removeAttribute(t5);
|
|
1683
|
+
} else t5.startsWith(h2) && (d3.push({ type: 6, index: c4 }), r6.removeAttribute(t5));
|
|
1690
1684
|
if ($.test(r6.tagName)) {
|
|
1691
1685
|
const t5 = r6.textContent.split(h2), s5 = t5.length - 1;
|
|
1692
1686
|
if (s5 > 0) {
|
|
1693
1687
|
r6.textContent = i3 ? i3.emptyScript : "";
|
|
1694
|
-
for (let i7 = 0; i7 < s5; i7++)
|
|
1695
|
-
r6.append(t5[i7], l2()), C.nextNode(), d3.push({ type: 2, index: ++c4 });
|
|
1688
|
+
for (let i7 = 0; i7 < s5; i7++) r6.append(t5[i7], l2()), C.nextNode(), d3.push({ type: 2, index: ++c4 });
|
|
1696
1689
|
r6.append(t5[s5], l2());
|
|
1697
1690
|
}
|
|
1698
1691
|
}
|
|
1699
|
-
} else if (8 === r6.nodeType)
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
for (; -1 !== (t5 = r6.data.indexOf(h2, t5 + 1)); )
|
|
1705
|
-
d3.push({ type: 7, index: c4 }), t5 += h2.length - 1;
|
|
1706
|
-
}
|
|
1692
|
+
} else if (8 === r6.nodeType) if (r6.data === o3) d3.push({ type: 2, index: c4 });
|
|
1693
|
+
else {
|
|
1694
|
+
let t5 = -1;
|
|
1695
|
+
for (; -1 !== (t5 = r6.data.indexOf(h2, t5 + 1)); ) d3.push({ type: 7, index: c4 }), t5 += h2.length - 1;
|
|
1696
|
+
}
|
|
1707
1697
|
c4++;
|
|
1708
1698
|
}
|
|
1709
1699
|
}
|
|
@@ -1713,8 +1703,7 @@ var N = class _N {
|
|
|
1713
1703
|
}
|
|
1714
1704
|
};
|
|
1715
1705
|
function S2(t4, i7, s4 = t4, e7) {
|
|
1716
|
-
if (i7 === T)
|
|
1717
|
-
return i7;
|
|
1706
|
+
if (i7 === T) return i7;
|
|
1718
1707
|
let h3 = void 0 !== e7 ? s4._$Co?.[e7] : s4._$Cl;
|
|
1719
1708
|
const o7 = c3(i7) ? void 0 : i7._$litDirective$;
|
|
1720
1709
|
return h3?.constructor !== o7 && (h3?._$AO?.(false), void 0 === o7 ? h3 = void 0 : (h3 = new o7(t4), h3._$AT(t4, s4, e7)), void 0 !== e7 ? (s4._$Co ??= [])[e7] = h3 : s4._$Cl = h3), void 0 !== h3 && (i7 = S2(t4, h3._$AS(t4, i7.values), h3, e7)), i7;
|
|
@@ -1744,8 +1733,7 @@ var M = class {
|
|
|
1744
1733
|
}
|
|
1745
1734
|
p(t4) {
|
|
1746
1735
|
let i7 = 0;
|
|
1747
|
-
for (const s4 of this._$AV)
|
|
1748
|
-
void 0 !== s4 && (void 0 !== s4.strings ? (s4._$AI(t4, s4, i7), i7 += s4.strings.length - 2) : s4._$AI(t4[i7])), i7++;
|
|
1736
|
+
for (const s4 of this._$AV) void 0 !== s4 && (void 0 !== s4.strings ? (s4._$AI(t4, s4, i7), i7 += s4.strings.length - 2) : s4._$AI(t4[i7])), i7++;
|
|
1749
1737
|
}
|
|
1750
1738
|
};
|
|
1751
1739
|
var R = class _R {
|
|
@@ -1780,8 +1768,7 @@ var R = class _R {
|
|
|
1780
1768
|
}
|
|
1781
1769
|
$(t4) {
|
|
1782
1770
|
const { values: i7, _$litType$: s4 } = t4, e7 = "number" == typeof s4 ? this._$AC(t4) : (void 0 === s4.el && (s4.el = N.createElement(P(s4.h, s4.h[0]), this.options)), s4);
|
|
1783
|
-
if (this._$AH?._$AD === e7)
|
|
1784
|
-
this._$AH.p(i7);
|
|
1771
|
+
if (this._$AH?._$AD === e7) this._$AH.p(i7);
|
|
1785
1772
|
else {
|
|
1786
1773
|
const t5 = new M(e7, this), s5 = t5.u(this.options);
|
|
1787
1774
|
t5.p(i7), this.T(s5), this._$AH = t5;
|
|
@@ -1795,8 +1782,7 @@ var R = class _R {
|
|
|
1795
1782
|
a2(this._$AH) || (this._$AH = [], this._$AR());
|
|
1796
1783
|
const i7 = this._$AH;
|
|
1797
1784
|
let s4, e7 = 0;
|
|
1798
|
-
for (const h3 of t4)
|
|
1799
|
-
e7 === i7.length ? i7.push(s4 = new _R(this.O(l2()), this.O(l2()), this, this.options)) : s4 = i7[e7], s4._$AI(h3), e7++;
|
|
1785
|
+
for (const h3 of t4) e7 === i7.length ? i7.push(s4 = new _R(this.O(l2()), this.O(l2()), this, this.options)) : s4 = i7[e7], s4._$AI(h3), e7++;
|
|
1800
1786
|
e7 < i7.length && (this._$AR(s4 && s4._$AB.nextSibling, e7), i7.length = e7);
|
|
1801
1787
|
}
|
|
1802
1788
|
_$AR(t4 = this._$AA.nextSibling, i7) {
|
|
@@ -1822,13 +1808,11 @@ var k = class {
|
|
|
1822
1808
|
_$AI(t4, i7 = this, s4, e7) {
|
|
1823
1809
|
const h3 = this.strings;
|
|
1824
1810
|
let o7 = false;
|
|
1825
|
-
if (void 0 === h3)
|
|
1826
|
-
t4 = S2(this, t4, i7, 0), o7 = !c3(t4) || t4 !== this._$AH && t4 !== T, o7 && (this._$AH = t4);
|
|
1811
|
+
if (void 0 === h3) t4 = S2(this, t4, i7, 0), o7 = !c3(t4) || t4 !== this._$AH && t4 !== T, o7 && (this._$AH = t4);
|
|
1827
1812
|
else {
|
|
1828
1813
|
const e8 = t4;
|
|
1829
1814
|
let n6, r6;
|
|
1830
|
-
for (t4 = h3[0], n6 = 0; n6 < h3.length - 1; n6++)
|
|
1831
|
-
r6 = S2(this, e8[s4 + n6], i7, n6), r6 === T && (r6 = this._$AH[n6]), o7 ||= !c3(r6) || r6 !== this._$AH[n6], r6 === E ? t4 = E : t4 !== E && (t4 += (r6 ?? "") + h3[n6 + 1]), this._$AH[n6] = r6;
|
|
1815
|
+
for (t4 = h3[0], n6 = 0; n6 < h3.length - 1; n6++) r6 = S2(this, e8[s4 + n6], i7, n6), r6 === T && (r6 = this._$AH[n6]), o7 ||= !c3(r6) || r6 !== this._$AH[n6], r6 === E ? t4 = E : t4 !== E && (t4 += (r6 ?? "") + h3[n6 + 1]), this._$AH[n6] = r6;
|
|
1832
1816
|
}
|
|
1833
1817
|
o7 && !e7 && this.j(t4);
|
|
1834
1818
|
}
|
|
@@ -1857,8 +1841,7 @@ var L = class extends k {
|
|
|
1857
1841
|
super(t4, i7, s4, e7, h3), this.type = 5;
|
|
1858
1842
|
}
|
|
1859
1843
|
_$AI(t4, i7 = this) {
|
|
1860
|
-
if ((t4 = S2(this, t4, i7, 0) ?? E) === T)
|
|
1861
|
-
return;
|
|
1844
|
+
if ((t4 = S2(this, t4, i7, 0) ?? E) === T) return;
|
|
1862
1845
|
const s4 = this._$AH, e7 = t4 === E && s4 !== E || t4.capture !== s4.capture || t4.once !== s4.once || t4.passive !== s4.passive, h3 = t4 !== E && (s4 === E || e7);
|
|
1863
1846
|
e7 && this.element.removeEventListener(this.name, this, s4), h3 && this.element.addEventListener(this.name, this, t4), this._$AH = t4;
|
|
1864
1847
|
}
|
|
@@ -2005,8 +1988,7 @@ var n5 = "important";
|
|
|
2005
1988
|
var i6 = " !" + n5;
|
|
2006
1989
|
var o6 = e6(class extends i5 {
|
|
2007
1990
|
constructor(t4) {
|
|
2008
|
-
if (super(t4), t4.type !== t3.ATTRIBUTE || "style" !== t4.name || t4.strings?.length > 2)
|
|
2009
|
-
throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
|
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.");
|
|
2010
1992
|
}
|
|
2011
1993
|
render(t4) {
|
|
2012
1994
|
return Object.keys(t4).reduce((e7, r6) => {
|
|
@@ -2016,10 +1998,8 @@ var o6 = e6(class extends i5 {
|
|
|
2016
1998
|
}
|
|
2017
1999
|
update(e7, [r6]) {
|
|
2018
2000
|
const { style: s4 } = e7.element;
|
|
2019
|
-
if (void 0 === this.ft)
|
|
2020
|
-
|
|
2021
|
-
for (const t4 of this.ft)
|
|
2022
|
-
null == r6[t4] && (this.ft.delete(t4), t4.includes("-") ? s4.removeProperty(t4) : s4[t4] = null);
|
|
2001
|
+
if (void 0 === this.ft) return this.ft = new Set(Object.keys(r6)), this.render(r6);
|
|
2002
|
+
for (const t4 of this.ft) null == r6[t4] && (this.ft.delete(t4), t4.includes("-") ? s4.removeProperty(t4) : s4[t4] = null);
|
|
2023
2003
|
for (const t4 in r6) {
|
|
2024
2004
|
const e8 = r6[t4];
|
|
2025
2005
|
if (null != e8) {
|
|
@@ -2033,7 +2013,7 @@ var o6 = e6(class extends i5 {
|
|
|
2033
2013
|
});
|
|
2034
2014
|
|
|
2035
2015
|
// libs/embed-libs/embed/package.json
|
|
2036
|
-
var version = "6.
|
|
2016
|
+
var version = "6.7.0";
|
|
2037
2017
|
|
|
2038
2018
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
2039
2019
|
var LuzmoDashboardService = class {
|
|
@@ -2142,6 +2122,7 @@ var _setEventHandler = () => {
|
|
|
2142
2122
|
break;
|
|
2143
2123
|
}
|
|
2144
2124
|
case "chartsRendered":
|
|
2125
|
+
// TODO remove once chartsRendered is changed to itemsRendered in FE app
|
|
2145
2126
|
case "itemsRendered": {
|
|
2146
2127
|
event.data.type = "itemsRendered";
|
|
2147
2128
|
dashboardComponent.dispatchEvent(
|
|
@@ -2887,6 +2868,14 @@ var LuzmoDashboard = class extends i4 {
|
|
|
2887
2868
|
}
|
|
2888
2869
|
return setPreview(this, this.iframe, preview);
|
|
2889
2870
|
}
|
|
2871
|
+
sendExportEmail(type, subject, message) {
|
|
2872
|
+
if (this.isWebComponentViewMode() && this.dashboardReference) {
|
|
2873
|
+
return this.dashboardReference.sendExportEmail(type, subject, message);
|
|
2874
|
+
} else if (!this.isWebComponentViewMode()) {
|
|
2875
|
+
return sendExportEmail(this, this.iframe, type, subject, message);
|
|
2876
|
+
}
|
|
2877
|
+
return Promise.reject();
|
|
2878
|
+
}
|
|
2890
2879
|
isWebComponentViewMode() {
|
|
2891
2880
|
return this.embedMode === "webComponent" && (this.params.editMode === "view" || this.params.editMode === void 0);
|
|
2892
2881
|
}
|
|
@@ -3064,7 +3053,7 @@ if (!customElements.get("luzmo-embed-dashboard")) {
|
|
|
3064
3053
|
}
|
|
3065
3054
|
|
|
3066
3055
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item.base.ts
|
|
3067
|
-
var dashboardContentsVersion = "0.1.
|
|
3056
|
+
var dashboardContentsVersion = "0.1.98";
|
|
3068
3057
|
var vizItemRemote = "VizItemApp";
|
|
3069
3058
|
var LuzmoBaseVizItem = class extends i4 {
|
|
3070
3059
|
constructor() {
|
|
@@ -3077,22 +3066,6 @@ var LuzmoBaseVizItem = class extends i4 {
|
|
|
3077
3066
|
this.libVersion = version + "-wc-luzmo";
|
|
3078
3067
|
this.postInitCallQueue = [];
|
|
3079
3068
|
}
|
|
3080
|
-
static {
|
|
3081
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
3082
|
-
this.styles = i`
|
|
3083
|
-
:host {
|
|
3084
|
-
display: block;
|
|
3085
|
-
width: 100%;
|
|
3086
|
-
height: 100%;
|
|
3087
|
-
}
|
|
3088
|
-
|
|
3089
|
-
luzmo-embed-viz-item {
|
|
3090
|
-
width: 100%;
|
|
3091
|
-
height: 1000%;
|
|
3092
|
-
display: block;
|
|
3093
|
-
}
|
|
3094
|
-
`;
|
|
3095
|
-
}
|
|
3096
3069
|
createRenderRoot() {
|
|
3097
3070
|
if (!this.style.display) {
|
|
3098
3071
|
this.style.display = "block";
|
|
@@ -3202,6 +3175,20 @@ var LuzmoBaseVizItem = class extends i4 {
|
|
|
3202
3175
|
return x` `;
|
|
3203
3176
|
}
|
|
3204
3177
|
};
|
|
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
|
+
`;
|
|
3205
3192
|
__decorateClass([
|
|
3206
3193
|
n4()
|
|
3207
3194
|
], LuzmoBaseVizItem.prototype, "appServer", 2);
|
|
@@ -3292,16 +3279,6 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
|
|
|
3292
3279
|
this.remoteEntryServer = "http://localhost:4202/";
|
|
3293
3280
|
this.aydHost = "https://ayd.luzmo.com/";
|
|
3294
3281
|
}
|
|
3295
|
-
static {
|
|
3296
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
3297
|
-
this.styles = i`
|
|
3298
|
-
:host {
|
|
3299
|
-
display: block;
|
|
3300
|
-
width: 100%;
|
|
3301
|
-
height: 100%;
|
|
3302
|
-
}
|
|
3303
|
-
`;
|
|
3304
|
-
}
|
|
3305
3282
|
createRenderRoot() {
|
|
3306
3283
|
return this;
|
|
3307
3284
|
}
|
|
@@ -3370,6 +3347,14 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
|
|
|
3370
3347
|
observer.observe(embedChat, { childList: true, subtree: true });
|
|
3371
3348
|
}
|
|
3372
3349
|
};
|
|
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
|
+
`;
|
|
3373
3358
|
__decorateClass([
|
|
3374
3359
|
n4()
|
|
3375
3360
|
], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
|
|
@@ -3432,16 +3417,6 @@ var LuzmoIQEmbedAnswerComponent = class extends i4 {
|
|
|
3432
3417
|
this.libVersion = version + "-wc-luzmo";
|
|
3433
3418
|
this.remoteEntryServer = "http://localhost:4202";
|
|
3434
3419
|
}
|
|
3435
|
-
static {
|
|
3436
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
3437
|
-
this.styles = i`
|
|
3438
|
-
:host {
|
|
3439
|
-
display: block;
|
|
3440
|
-
width: 100%;
|
|
3441
|
-
height: 100%;
|
|
3442
|
-
}
|
|
3443
|
-
`;
|
|
3444
|
-
}
|
|
3445
3420
|
createRenderRoot() {
|
|
3446
3421
|
return this;
|
|
3447
3422
|
}
|
|
@@ -3492,6 +3467,14 @@ var LuzmoIQEmbedAnswerComponent = class extends i4 {
|
|
|
3492
3467
|
return x` `;
|
|
3493
3468
|
}
|
|
3494
3469
|
};
|
|
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
|
+
`;
|
|
3495
3478
|
__decorateClass([
|
|
3496
3479
|
n4()
|
|
3497
3480
|
], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
|
|
@@ -3596,86 +3579,28 @@ i4.disableWarning?.("change-in-update");
|
|
|
3596
3579
|
*)
|
|
3597
3580
|
|
|
3598
3581
|
@lit/reactive-element/reactive-element.js:
|
|
3599
|
-
(**
|
|
3600
|
-
* @license
|
|
3601
|
-
* Copyright 2017 Google LLC
|
|
3602
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
3603
|
-
*)
|
|
3604
|
-
|
|
3605
3582
|
lit-html/lit-html.js:
|
|
3606
|
-
(**
|
|
3607
|
-
* @license
|
|
3608
|
-
* Copyright 2017 Google LLC
|
|
3609
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
3610
|
-
*)
|
|
3611
|
-
|
|
3612
3583
|
lit-element/lit-element.js:
|
|
3613
|
-
(**
|
|
3614
|
-
* @license
|
|
3615
|
-
* Copyright 2017 Google LLC
|
|
3616
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
3617
|
-
*)
|
|
3618
|
-
|
|
3619
|
-
lit-html/is-server.js:
|
|
3620
|
-
(**
|
|
3621
|
-
* @license
|
|
3622
|
-
* Copyright 2022 Google LLC
|
|
3623
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
3624
|
-
*)
|
|
3625
|
-
|
|
3626
3584
|
@lit/reactive-element/decorators/custom-element.js:
|
|
3627
|
-
(**
|
|
3628
|
-
* @license
|
|
3629
|
-
* Copyright 2017 Google LLC
|
|
3630
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
3631
|
-
*)
|
|
3632
|
-
|
|
3633
3585
|
@lit/reactive-element/decorators/property.js:
|
|
3634
|
-
(**
|
|
3635
|
-
* @license
|
|
3636
|
-
* Copyright 2017 Google LLC
|
|
3637
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
3638
|
-
*)
|
|
3639
|
-
|
|
3640
3586
|
@lit/reactive-element/decorators/state.js:
|
|
3641
|
-
(**
|
|
3642
|
-
* @license
|
|
3643
|
-
* Copyright 2017 Google LLC
|
|
3644
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
3645
|
-
*)
|
|
3646
|
-
|
|
3647
3587
|
@lit/reactive-element/decorators/event-options.js:
|
|
3648
|
-
(**
|
|
3649
|
-
* @license
|
|
3650
|
-
* Copyright 2017 Google LLC
|
|
3651
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
3652
|
-
*)
|
|
3653
|
-
|
|
3654
3588
|
@lit/reactive-element/decorators/base.js:
|
|
3655
|
-
(**
|
|
3656
|
-
* @license
|
|
3657
|
-
* Copyright 2017 Google LLC
|
|
3658
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
3659
|
-
*)
|
|
3660
|
-
|
|
3661
3589
|
@lit/reactive-element/decorators/query.js:
|
|
3662
|
-
(**
|
|
3663
|
-
* @license
|
|
3664
|
-
* Copyright 2017 Google LLC
|
|
3665
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
3666
|
-
*)
|
|
3667
|
-
|
|
3668
3590
|
@lit/reactive-element/decorators/query-all.js:
|
|
3591
|
+
@lit/reactive-element/decorators/query-async.js:
|
|
3592
|
+
@lit/reactive-element/decorators/query-assigned-nodes.js:
|
|
3593
|
+
lit-html/directive.js:
|
|
3669
3594
|
(**
|
|
3670
3595
|
* @license
|
|
3671
3596
|
* Copyright 2017 Google LLC
|
|
3672
3597
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3673
3598
|
*)
|
|
3674
3599
|
|
|
3675
|
-
|
|
3600
|
+
lit-html/is-server.js:
|
|
3676
3601
|
(**
|
|
3677
3602
|
* @license
|
|
3678
|
-
* Copyright
|
|
3603
|
+
* Copyright 2022 Google LLC
|
|
3679
3604
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3680
3605
|
*)
|
|
3681
3606
|
|
|
@@ -3686,20 +3611,6 @@ lit-html/is-server.js:
|
|
|
3686
3611
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3687
3612
|
*)
|
|
3688
3613
|
|
|
3689
|
-
@lit/reactive-element/decorators/query-assigned-nodes.js:
|
|
3690
|
-
(**
|
|
3691
|
-
* @license
|
|
3692
|
-
* Copyright 2017 Google LLC
|
|
3693
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
3694
|
-
*)
|
|
3695
|
-
|
|
3696
|
-
lit-html/directive.js:
|
|
3697
|
-
(**
|
|
3698
|
-
* @license
|
|
3699
|
-
* Copyright 2017 Google LLC
|
|
3700
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
3701
|
-
*)
|
|
3702
|
-
|
|
3703
3614
|
lit-html/directives/style-map.js:
|
|
3704
3615
|
(**
|
|
3705
3616
|
* @license
|