@luzmo/embed 6.13.0 → 6.13.1-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 +5 -0
- package/index.cjs +74 -66
- package/index.js +74 -66
- package/luzmo-embed.min.js +222 -206
- package/package.json +8 -2
- package/src/lib/dashboard/dashboard-base.d.ts +1 -0
package/CHANGELOG.md
CHANGED
package/index.cjs
CHANGED
|
@@ -65,7 +65,7 @@ var import_decorators = require("lit/decorators.js");
|
|
|
65
65
|
var import_style_map = require("lit/directives/style-map.js");
|
|
66
66
|
|
|
67
67
|
// libs/embed-libs/embed/package.json
|
|
68
|
-
var version = "6.13.
|
|
68
|
+
var version = "6.13.1";
|
|
69
69
|
|
|
70
70
|
// libs/embed-libs/embed/src/lib/helper/event-bus-handler.ts
|
|
71
71
|
var SharedLib = __toESM(require("@luzmo/shared-embed"));
|
|
@@ -483,22 +483,25 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
483
483
|
SharedLib2.loadLibrary(this.params.appServer, dashboardRemote).then(async () => {
|
|
484
484
|
this.isLibraryLoaded = true;
|
|
485
485
|
await this.updateComplete;
|
|
486
|
-
const
|
|
487
|
-
this.
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
this.containerWidth = this.dashboardReference.offsetWidth;
|
|
486
|
+
const el = document.createElement("dashboard-component");
|
|
487
|
+
this.setAllAttributesOnElement(el);
|
|
488
|
+
el.addEventListener("load", (payload) => {
|
|
489
|
+
this.containerWidth = el.offsetWidth;
|
|
491
490
|
this.dimensions = payload.detail.dimensions;
|
|
492
491
|
SharedLib2._setCalculatedDimensions(this);
|
|
493
492
|
window.dispatchEvent(new Event("resize"));
|
|
494
493
|
this.dispatchEvent(new CustomEvent("load", payload));
|
|
495
494
|
});
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
this.
|
|
495
|
+
el.addEventListener("itemsRendered", (payload) => this.dispatchEvent(new CustomEvent("itemsRendered", payload)));
|
|
496
|
+
el.addEventListener("customEvent", (payload) => this.dispatchEvent(new CustomEvent("customEvent", payload)));
|
|
497
|
+
el.addEventListener("changedFilters", (payload) => this.dispatchEvent(new CustomEvent("changedFilters", payload)));
|
|
498
|
+
el.addEventListener("dashboardAction", (payload) => this.dispatchEvent(new CustomEvent("dashboardAction", payload)));
|
|
499
|
+
el.addEventListener("export", (payload) => this.dispatchEvent(new CustomEvent("exported", payload)));
|
|
500
|
+
const container = this.renderRoot.querySelector("#dashboard-wc-container");
|
|
501
|
+
if (container) {
|
|
502
|
+
container.append(el);
|
|
503
|
+
this.dashboardReference = el;
|
|
504
|
+
}
|
|
502
505
|
});
|
|
503
506
|
} else {
|
|
504
507
|
this.containerWidth = this.container?.clientWidth;
|
|
@@ -516,24 +519,36 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
516
519
|
}
|
|
517
520
|
setAllAttributes() {
|
|
518
521
|
if (this.dashboardReference) {
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
522
|
+
this.setAllAttributesOnElement(this.dashboardReference);
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
setAllAttributesOnElement(el) {
|
|
526
|
+
if (!el) {
|
|
527
|
+
return;
|
|
528
|
+
}
|
|
529
|
+
if (this.params.dashboardId) {
|
|
530
|
+
el.setAttribute("dashboard-id", this.params.dashboardId);
|
|
531
|
+
}
|
|
532
|
+
if (this.params.appServer) {
|
|
533
|
+
el.setAttribute("app-server", this.params.appServer);
|
|
534
|
+
}
|
|
535
|
+
if (this.params.apiHost) {
|
|
536
|
+
el.setAttribute("api-host", SharedLib2.removeTrailingSlash(this.params.apiHost));
|
|
537
|
+
}
|
|
538
|
+
for (const key in this.attributesMap) {
|
|
539
|
+
if (!["authKey", "authToken", "apiHost", "itemDimensions", "dashboardId", "appServer"].includes(key) && this.params[key]) {
|
|
540
|
+
el.setAttribute(this.attributesMap[key], this.params[key]);
|
|
535
541
|
}
|
|
536
542
|
}
|
|
543
|
+
if (this.params.itemDimensions) {
|
|
544
|
+
el.setAttribute("item-dimensions", JSON.stringify(this.params.itemDimensions));
|
|
545
|
+
}
|
|
546
|
+
if (this.params.key) {
|
|
547
|
+
el.setAttribute("auth-key", this.params.key);
|
|
548
|
+
}
|
|
549
|
+
if (this.params.token) {
|
|
550
|
+
el.setAttribute("auth-token", this.params.token);
|
|
551
|
+
}
|
|
537
552
|
}
|
|
538
553
|
// Reload dashboard when triggerproperty changes
|
|
539
554
|
updated(changedProperties) {
|
|
@@ -771,8 +786,7 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
771
786
|
if (this.isWebComponentViewMode()) {
|
|
772
787
|
toBeRenderedHTML = this.isLibraryLoaded ? import_lit2.html`
|
|
773
788
|
${this.dashboardId || this.dashboardSlug ? import_lit2.html`
|
|
774
|
-
<
|
|
775
|
-
api-host="${this.params.apiHost}"></dashboard-component>
|
|
789
|
+
<div id="dashboard-wc-container"></div>
|
|
776
790
|
` : import_lit2.html`
|
|
777
791
|
<div id="luzmo-error-${this._containerId}">
|
|
778
792
|
<h3 class="luzmo-error">${this.browserErrorMsg}</h3>
|
|
@@ -1128,22 +1142,6 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1128
1142
|
this.libVersion = version + "-wc-luzmo";
|
|
1129
1143
|
this.postInitCallQueue = [];
|
|
1130
1144
|
}
|
|
1131
|
-
static {
|
|
1132
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1133
|
-
this.styles = import_lit3.css`
|
|
1134
|
-
:host {
|
|
1135
|
-
display: block;
|
|
1136
|
-
width: 100%;
|
|
1137
|
-
height: 100%;
|
|
1138
|
-
}
|
|
1139
|
-
|
|
1140
|
-
luzmo-embed-viz-item {
|
|
1141
|
-
width: 100%;
|
|
1142
|
-
height: 1000%;
|
|
1143
|
-
display: block;
|
|
1144
|
-
}
|
|
1145
|
-
`;
|
|
1146
|
-
}
|
|
1147
1145
|
createRenderRoot() {
|
|
1148
1146
|
if (!this.style.display) {
|
|
1149
1147
|
this.style.display = "block";
|
|
@@ -1254,6 +1252,20 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1254
1252
|
return import_lit3.html` `;
|
|
1255
1253
|
}
|
|
1256
1254
|
};
|
|
1255
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1256
|
+
LuzmoBaseVizItem.styles = import_lit3.css`
|
|
1257
|
+
:host {
|
|
1258
|
+
display: block;
|
|
1259
|
+
width: 100%;
|
|
1260
|
+
height: 100%;
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
luzmo-embed-viz-item {
|
|
1264
|
+
width: 100%;
|
|
1265
|
+
height: 1000%;
|
|
1266
|
+
display: block;
|
|
1267
|
+
}
|
|
1268
|
+
`;
|
|
1257
1269
|
__decorateClass([
|
|
1258
1270
|
(0, import_decorators2.property)()
|
|
1259
1271
|
], LuzmoBaseVizItem.prototype, "appServer", 2);
|
|
@@ -1347,16 +1359,6 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
|
|
|
1347
1359
|
this.remoteEntryServer = "http://localhost:4202/";
|
|
1348
1360
|
this.aydHost = "https://ayd.luzmo.com/";
|
|
1349
1361
|
}
|
|
1350
|
-
static {
|
|
1351
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1352
|
-
this.styles = import_lit4.css`
|
|
1353
|
-
:host {
|
|
1354
|
-
display: block;
|
|
1355
|
-
width: 100%;
|
|
1356
|
-
height: 100%;
|
|
1357
|
-
}
|
|
1358
|
-
`;
|
|
1359
|
-
}
|
|
1360
1362
|
createRenderRoot() {
|
|
1361
1363
|
return this;
|
|
1362
1364
|
}
|
|
@@ -1425,6 +1427,14 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
|
|
|
1425
1427
|
observer.observe(embedChat, { childList: true, subtree: true });
|
|
1426
1428
|
}
|
|
1427
1429
|
};
|
|
1430
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1431
|
+
LuzmoIQEmbedChatComponent.styles = import_lit4.css`
|
|
1432
|
+
:host {
|
|
1433
|
+
display: block;
|
|
1434
|
+
width: 100%;
|
|
1435
|
+
height: 100%;
|
|
1436
|
+
}
|
|
1437
|
+
`;
|
|
1428
1438
|
__decorateClass([
|
|
1429
1439
|
(0, import_decorators3.property)()
|
|
1430
1440
|
], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
|
|
@@ -1490,16 +1500,6 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
|
|
|
1490
1500
|
this.libVersion = version + "-wc-luzmo";
|
|
1491
1501
|
this.remoteEntryServer = "http://localhost:4202";
|
|
1492
1502
|
}
|
|
1493
|
-
static {
|
|
1494
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1495
|
-
this.styles = import_lit5.css`
|
|
1496
|
-
:host {
|
|
1497
|
-
display: block;
|
|
1498
|
-
width: 100%;
|
|
1499
|
-
height: 100%;
|
|
1500
|
-
}
|
|
1501
|
-
`;
|
|
1502
|
-
}
|
|
1503
1503
|
createRenderRoot() {
|
|
1504
1504
|
return this;
|
|
1505
1505
|
}
|
|
@@ -1550,6 +1550,14 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
|
|
|
1550
1550
|
return import_lit5.html` `;
|
|
1551
1551
|
}
|
|
1552
1552
|
};
|
|
1553
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1554
|
+
LuzmoIQEmbedAnswerComponent.styles = import_lit5.css`
|
|
1555
|
+
:host {
|
|
1556
|
+
display: block;
|
|
1557
|
+
width: 100%;
|
|
1558
|
+
height: 100%;
|
|
1559
|
+
}
|
|
1560
|
+
`;
|
|
1553
1561
|
__decorateClass([
|
|
1554
1562
|
(0, import_decorators4.property)()
|
|
1555
1563
|
], 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.13.
|
|
26
|
+
var version = "6.13.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";
|
|
@@ -441,22 +441,25 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
441
441
|
SharedLib2.loadLibrary(this.params.appServer, dashboardRemote).then(async () => {
|
|
442
442
|
this.isLibraryLoaded = true;
|
|
443
443
|
await this.updateComplete;
|
|
444
|
-
const
|
|
445
|
-
this.
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
this.containerWidth = this.dashboardReference.offsetWidth;
|
|
444
|
+
const el = document.createElement("dashboard-component");
|
|
445
|
+
this.setAllAttributesOnElement(el);
|
|
446
|
+
el.addEventListener("load", (payload) => {
|
|
447
|
+
this.containerWidth = el.offsetWidth;
|
|
449
448
|
this.dimensions = payload.detail.dimensions;
|
|
450
449
|
SharedLib2._setCalculatedDimensions(this);
|
|
451
450
|
window.dispatchEvent(new Event("resize"));
|
|
452
451
|
this.dispatchEvent(new CustomEvent("load", payload));
|
|
453
452
|
});
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
this.
|
|
453
|
+
el.addEventListener("itemsRendered", (payload) => this.dispatchEvent(new CustomEvent("itemsRendered", payload)));
|
|
454
|
+
el.addEventListener("customEvent", (payload) => this.dispatchEvent(new CustomEvent("customEvent", payload)));
|
|
455
|
+
el.addEventListener("changedFilters", (payload) => this.dispatchEvent(new CustomEvent("changedFilters", payload)));
|
|
456
|
+
el.addEventListener("dashboardAction", (payload) => this.dispatchEvent(new CustomEvent("dashboardAction", payload)));
|
|
457
|
+
el.addEventListener("export", (payload) => this.dispatchEvent(new CustomEvent("exported", payload)));
|
|
458
|
+
const container = this.renderRoot.querySelector("#dashboard-wc-container");
|
|
459
|
+
if (container) {
|
|
460
|
+
container.append(el);
|
|
461
|
+
this.dashboardReference = el;
|
|
462
|
+
}
|
|
460
463
|
});
|
|
461
464
|
} else {
|
|
462
465
|
this.containerWidth = this.container?.clientWidth;
|
|
@@ -474,24 +477,36 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
474
477
|
}
|
|
475
478
|
setAllAttributes() {
|
|
476
479
|
if (this.dashboardReference) {
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
480
|
+
this.setAllAttributesOnElement(this.dashboardReference);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
setAllAttributesOnElement(el) {
|
|
484
|
+
if (!el) {
|
|
485
|
+
return;
|
|
486
|
+
}
|
|
487
|
+
if (this.params.dashboardId) {
|
|
488
|
+
el.setAttribute("dashboard-id", this.params.dashboardId);
|
|
489
|
+
}
|
|
490
|
+
if (this.params.appServer) {
|
|
491
|
+
el.setAttribute("app-server", this.params.appServer);
|
|
492
|
+
}
|
|
493
|
+
if (this.params.apiHost) {
|
|
494
|
+
el.setAttribute("api-host", SharedLib2.removeTrailingSlash(this.params.apiHost));
|
|
495
|
+
}
|
|
496
|
+
for (const key in this.attributesMap) {
|
|
497
|
+
if (!["authKey", "authToken", "apiHost", "itemDimensions", "dashboardId", "appServer"].includes(key) && this.params[key]) {
|
|
498
|
+
el.setAttribute(this.attributesMap[key], this.params[key]);
|
|
493
499
|
}
|
|
494
500
|
}
|
|
501
|
+
if (this.params.itemDimensions) {
|
|
502
|
+
el.setAttribute("item-dimensions", JSON.stringify(this.params.itemDimensions));
|
|
503
|
+
}
|
|
504
|
+
if (this.params.key) {
|
|
505
|
+
el.setAttribute("auth-key", this.params.key);
|
|
506
|
+
}
|
|
507
|
+
if (this.params.token) {
|
|
508
|
+
el.setAttribute("auth-token", this.params.token);
|
|
509
|
+
}
|
|
495
510
|
}
|
|
496
511
|
// Reload dashboard when triggerproperty changes
|
|
497
512
|
updated(changedProperties) {
|
|
@@ -729,8 +744,7 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
729
744
|
if (this.isWebComponentViewMode()) {
|
|
730
745
|
toBeRenderedHTML = this.isLibraryLoaded ? html`
|
|
731
746
|
${this.dashboardId || this.dashboardSlug ? html`
|
|
732
|
-
<
|
|
733
|
-
api-host="${this.params.apiHost}"></dashboard-component>
|
|
747
|
+
<div id="dashboard-wc-container"></div>
|
|
734
748
|
` : html`
|
|
735
749
|
<div id="luzmo-error-${this._containerId}">
|
|
736
750
|
<h3 class="luzmo-error">${this.browserErrorMsg}</h3>
|
|
@@ -1086,22 +1100,6 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1086
1100
|
this.libVersion = version + "-wc-luzmo";
|
|
1087
1101
|
this.postInitCallQueue = [];
|
|
1088
1102
|
}
|
|
1089
|
-
static {
|
|
1090
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1091
|
-
this.styles = css2`
|
|
1092
|
-
:host {
|
|
1093
|
-
display: block;
|
|
1094
|
-
width: 100%;
|
|
1095
|
-
height: 100%;
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
luzmo-embed-viz-item {
|
|
1099
|
-
width: 100%;
|
|
1100
|
-
height: 1000%;
|
|
1101
|
-
display: block;
|
|
1102
|
-
}
|
|
1103
|
-
`;
|
|
1104
|
-
}
|
|
1105
1103
|
createRenderRoot() {
|
|
1106
1104
|
if (!this.style.display) {
|
|
1107
1105
|
this.style.display = "block";
|
|
@@ -1212,6 +1210,20 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1212
1210
|
return html2` `;
|
|
1213
1211
|
}
|
|
1214
1212
|
};
|
|
1213
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1214
|
+
LuzmoBaseVizItem.styles = css2`
|
|
1215
|
+
:host {
|
|
1216
|
+
display: block;
|
|
1217
|
+
width: 100%;
|
|
1218
|
+
height: 100%;
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
luzmo-embed-viz-item {
|
|
1222
|
+
width: 100%;
|
|
1223
|
+
height: 1000%;
|
|
1224
|
+
display: block;
|
|
1225
|
+
}
|
|
1226
|
+
`;
|
|
1215
1227
|
__decorateClass([
|
|
1216
1228
|
property2()
|
|
1217
1229
|
], LuzmoBaseVizItem.prototype, "appServer", 2);
|
|
@@ -1305,16 +1317,6 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
|
|
|
1305
1317
|
this.remoteEntryServer = "http://localhost:4202/";
|
|
1306
1318
|
this.aydHost = "https://ayd.luzmo.com/";
|
|
1307
1319
|
}
|
|
1308
|
-
static {
|
|
1309
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1310
|
-
this.styles = css3`
|
|
1311
|
-
:host {
|
|
1312
|
-
display: block;
|
|
1313
|
-
width: 100%;
|
|
1314
|
-
height: 100%;
|
|
1315
|
-
}
|
|
1316
|
-
`;
|
|
1317
|
-
}
|
|
1318
1320
|
createRenderRoot() {
|
|
1319
1321
|
return this;
|
|
1320
1322
|
}
|
|
@@ -1383,6 +1385,14 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
|
|
|
1383
1385
|
observer.observe(embedChat, { childList: true, subtree: true });
|
|
1384
1386
|
}
|
|
1385
1387
|
};
|
|
1388
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1389
|
+
LuzmoIQEmbedChatComponent.styles = css3`
|
|
1390
|
+
:host {
|
|
1391
|
+
display: block;
|
|
1392
|
+
width: 100%;
|
|
1393
|
+
height: 100%;
|
|
1394
|
+
}
|
|
1395
|
+
`;
|
|
1386
1396
|
__decorateClass([
|
|
1387
1397
|
property3()
|
|
1388
1398
|
], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
|
|
@@ -1448,16 +1458,6 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
|
|
|
1448
1458
|
this.libVersion = version + "-wc-luzmo";
|
|
1449
1459
|
this.remoteEntryServer = "http://localhost:4202";
|
|
1450
1460
|
}
|
|
1451
|
-
static {
|
|
1452
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1453
|
-
this.styles = css4`
|
|
1454
|
-
:host {
|
|
1455
|
-
display: block;
|
|
1456
|
-
width: 100%;
|
|
1457
|
-
height: 100%;
|
|
1458
|
-
}
|
|
1459
|
-
`;
|
|
1460
|
-
}
|
|
1461
1461
|
createRenderRoot() {
|
|
1462
1462
|
return this;
|
|
1463
1463
|
}
|
|
@@ -1508,6 +1508,14 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
|
|
|
1508
1508
|
return html4` `;
|
|
1509
1509
|
}
|
|
1510
1510
|
};
|
|
1511
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1512
|
+
LuzmoIQEmbedAnswerComponent.styles = css4`
|
|
1513
|
+
:host {
|
|
1514
|
+
display: block;
|
|
1515
|
+
width: 100%;
|
|
1516
|
+
height: 100%;
|
|
1517
|
+
}
|
|
1518
|
+
`;
|
|
1511
1519
|
__decorateClass([
|
|
1512
1520
|
property4()
|
|
1513
1521
|
], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
|
package/luzmo-embed.min.js
CHANGED
|
@@ -1262,7 +1262,7 @@ var libraryTypeToWebComponentTypeMapping = {
|
|
|
1262
1262
|
// libs/embed-libs/shared-embed/src/lib/constants/class-constants.ts
|
|
1263
1263
|
var luzmoEmbedContainerClass = "luzmo-embed-container";
|
|
1264
1264
|
|
|
1265
|
-
// node_modules/@module-federation/
|
|
1265
|
+
// node_modules/@module-federation/sdk/dist/constant.js
|
|
1266
1266
|
var MANIFEST_EXT = ".json";
|
|
1267
1267
|
var BROWSER_LOG_KEY = "FEDERATION_DEBUG";
|
|
1268
1268
|
var NameTransformSymbol = {
|
|
@@ -1288,7 +1288,7 @@ var TreeShakingStatus = /* @__PURE__ */ (function(TreeShakingStatus2) {
|
|
|
1288
1288
|
return TreeShakingStatus2;
|
|
1289
1289
|
})({});
|
|
1290
1290
|
|
|
1291
|
-
// node_modules/@module-federation/
|
|
1291
|
+
// node_modules/@module-federation/sdk/dist/env.js
|
|
1292
1292
|
var isBrowserEnvValue = typeof ENV_TARGET !== "undefined" ? ENV_TARGET === "web" : typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
1293
1293
|
function isBrowserEnv() {
|
|
1294
1294
|
return isBrowserEnvValue;
|
|
@@ -1310,7 +1310,7 @@ function isDebugMode() {
|
|
|
1310
1310
|
return isBrowserDebug();
|
|
1311
1311
|
}
|
|
1312
1312
|
|
|
1313
|
-
// node_modules/@module-federation/
|
|
1313
|
+
// node_modules/@module-federation/sdk/dist/utils.js
|
|
1314
1314
|
var LOG_CATEGORY = "[ Federation Runtime ]";
|
|
1315
1315
|
var composeKeyWithSeparator = function(...args) {
|
|
1316
1316
|
if (!args.length) return "";
|
|
@@ -1345,7 +1345,7 @@ function safeToString(info) {
|
|
|
1345
1345
|
}
|
|
1346
1346
|
}
|
|
1347
1347
|
|
|
1348
|
-
// node_modules/@module-federation/
|
|
1348
|
+
// node_modules/@module-federation/sdk/dist/generateSnapshotFromManifest.js
|
|
1349
1349
|
var simpleJoinRemoteEntry = (rPath, rName) => {
|
|
1350
1350
|
if (!rPath) return rName;
|
|
1351
1351
|
const transformPath = (str) => {
|
|
@@ -1453,7 +1453,7 @@ function isManifestProvider(moduleInfo) {
|
|
|
1453
1453
|
else return false;
|
|
1454
1454
|
}
|
|
1455
1455
|
|
|
1456
|
-
// node_modules/@module-federation/
|
|
1456
|
+
// node_modules/@module-federation/sdk/dist/logger.js
|
|
1457
1457
|
var PREFIX = "[ Module Federation ]";
|
|
1458
1458
|
var DEFAULT_DELEGATE = console;
|
|
1459
1459
|
var LOGGER_STACK_SKIP_TOKENS = [
|
|
@@ -1569,7 +1569,7 @@ function createInfrastructureLogger(prefix) {
|
|
|
1569
1569
|
var logger = createLogger(PREFIX);
|
|
1570
1570
|
var infrastructureLogger = createInfrastructureLogger(PREFIX);
|
|
1571
1571
|
|
|
1572
|
-
// node_modules/@module-federation/
|
|
1572
|
+
// node_modules/@module-federation/sdk/dist/dom.js
|
|
1573
1573
|
async function safeWrapper(callback, disableWarn) {
|
|
1574
1574
|
try {
|
|
1575
1575
|
return await callback();
|
|
@@ -1743,7 +1743,7 @@ function loadScript(url, info) {
|
|
|
1743
1743
|
});
|
|
1744
1744
|
}
|
|
1745
1745
|
|
|
1746
|
-
// node_modules/@module-federation/
|
|
1746
|
+
// node_modules/@module-federation/sdk/dist/node.js
|
|
1747
1747
|
var sdkImportCache = /* @__PURE__ */ new Map();
|
|
1748
1748
|
function importNodeModule(name) {
|
|
1749
1749
|
if (!name) throw new Error("import specifier is required");
|
|
@@ -2010,7 +2010,7 @@ function getGlobalFederationConstructor() {
|
|
|
2010
2010
|
function setGlobalFederationConstructor(FederationConstructor, isDebug = isDebugMode()) {
|
|
2011
2011
|
if (isDebug) {
|
|
2012
2012
|
CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor;
|
|
2013
|
-
CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "2.3.
|
|
2013
|
+
CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "2.3.3";
|
|
2014
2014
|
}
|
|
2015
2015
|
}
|
|
2016
2016
|
function getInfoWithoutType(target, key) {
|
|
@@ -2719,7 +2719,7 @@ function handleRemoteEntryLoaded(name, globalName, entry) {
|
|
|
2719
2719
|
});
|
|
2720
2720
|
return entryExports;
|
|
2721
2721
|
}
|
|
2722
|
-
async function loadEntryScript({ name, globalName, entry, loaderHook, getEntryUrl }) {
|
|
2722
|
+
async function loadEntryScript({ name, globalName, entry, remoteInfo, loaderHook, getEntryUrl }) {
|
|
2723
2723
|
const { entryExports: remoteEntryExports } = getRemoteEntryExports(name, globalName);
|
|
2724
2724
|
if (remoteEntryExports) return remoteEntryExports;
|
|
2725
2725
|
const url = getEntryUrl ? getEntryUrl(entry) : entry;
|
|
@@ -2728,7 +2728,8 @@ async function loadEntryScript({ name, globalName, entry, loaderHook, getEntryUr
|
|
|
2728
2728
|
createScriptHook: (url2, attrs) => {
|
|
2729
2729
|
const res = loaderHook.lifecycle.createScript.emit({
|
|
2730
2730
|
url: url2,
|
|
2731
|
-
attrs
|
|
2731
|
+
attrs,
|
|
2732
|
+
remoteInfo
|
|
2732
2733
|
});
|
|
2733
2734
|
if (!res) return;
|
|
2734
2735
|
if (res instanceof HTMLScriptElement) return res;
|
|
@@ -2763,6 +2764,7 @@ async function loadEntryDom({ remoteInfo, remoteEntryExports, loaderHook, getEnt
|
|
|
2763
2764
|
entry,
|
|
2764
2765
|
globalName,
|
|
2765
2766
|
name,
|
|
2767
|
+
remoteInfo,
|
|
2766
2768
|
loaderHook,
|
|
2767
2769
|
getEntryUrl
|
|
2768
2770
|
});
|
|
@@ -2781,7 +2783,8 @@ async function loadEntryNode({ remoteInfo, loaderHook }) {
|
|
|
2781
2783
|
loaderHook: { createScriptHook: (url, attrs = {}) => {
|
|
2782
2784
|
const res = loaderHook.lifecycle.createScript.emit({
|
|
2783
2785
|
url,
|
|
2784
|
-
attrs
|
|
2786
|
+
attrs,
|
|
2787
|
+
remoteInfo
|
|
2785
2788
|
});
|
|
2786
2789
|
if (!res) return;
|
|
2787
2790
|
if ("url" in res) return res;
|
|
@@ -2979,7 +2982,8 @@ function preloadAssets(remoteInfo, host, assets, useLinkPreload = true) {
|
|
|
2979
2982
|
createLinkHook: (url, attrs) => {
|
|
2980
2983
|
const res = host.loaderHook.lifecycle.createLink.emit({
|
|
2981
2984
|
url,
|
|
2982
|
-
attrs
|
|
2985
|
+
attrs,
|
|
2986
|
+
remoteInfo
|
|
2983
2987
|
});
|
|
2984
2988
|
if (res instanceof HTMLLinkElement) return res;
|
|
2985
2989
|
}
|
|
@@ -3000,7 +3004,8 @@ function preloadAssets(remoteInfo, host, assets, useLinkPreload = true) {
|
|
|
3000
3004
|
createLinkHook: (url, attrs) => {
|
|
3001
3005
|
const res = host.loaderHook.lifecycle.createLink.emit({
|
|
3002
3006
|
url,
|
|
3003
|
-
attrs
|
|
3007
|
+
attrs,
|
|
3008
|
+
remoteInfo
|
|
3004
3009
|
});
|
|
3005
3010
|
if (res instanceof HTMLLinkElement) return res;
|
|
3006
3011
|
},
|
|
@@ -3023,7 +3028,8 @@ function preloadAssets(remoteInfo, host, assets, useLinkPreload = true) {
|
|
|
3023
3028
|
createLinkHook: (url, attrs) => {
|
|
3024
3029
|
const res = host.loaderHook.lifecycle.createLink.emit({
|
|
3025
3030
|
url,
|
|
3026
|
-
attrs
|
|
3031
|
+
attrs,
|
|
3032
|
+
remoteInfo
|
|
3027
3033
|
});
|
|
3028
3034
|
if (res instanceof HTMLLinkElement) return res;
|
|
3029
3035
|
}
|
|
@@ -3044,7 +3050,8 @@ function preloadAssets(remoteInfo, host, assets, useLinkPreload = true) {
|
|
|
3044
3050
|
createScriptHook: (url, attrs) => {
|
|
3045
3051
|
const res = host.loaderHook.lifecycle.createScript.emit({
|
|
3046
3052
|
url,
|
|
3047
|
-
attrs
|
|
3053
|
+
attrs,
|
|
3054
|
+
remoteInfo
|
|
3048
3055
|
});
|
|
3049
3056
|
if (res instanceof HTMLScriptElement) return res;
|
|
3050
3057
|
},
|
|
@@ -3671,7 +3678,7 @@ var SnapshotHandler = class {
|
|
|
3671
3678
|
let manifestJson = this.manifestCache.get(manifestUrl);
|
|
3672
3679
|
if (manifestJson) return manifestJson;
|
|
3673
3680
|
try {
|
|
3674
|
-
let res = await this.loaderHook.lifecycle.fetch.emit(manifestUrl, {});
|
|
3681
|
+
let res = await this.loaderHook.lifecycle.fetch.emit(manifestUrl, {}, getRemoteInfo(moduleInfo));
|
|
3675
3682
|
if (!res || !(res instanceof Response)) res = await fetch(manifestUrl, {});
|
|
3676
3683
|
manifestJson = await res.json();
|
|
3677
3684
|
} catch (err) {
|
|
@@ -4296,7 +4303,7 @@ var ModuleFederation = class {
|
|
|
4296
4303
|
beforeInitContainer: new AsyncWaterfallHook("beforeInitContainer"),
|
|
4297
4304
|
initContainer: new AsyncWaterfallHook("initContainer")
|
|
4298
4305
|
});
|
|
4299
|
-
this.version = "2.3.
|
|
4306
|
+
this.version = "2.3.3";
|
|
4300
4307
|
this.moduleCache = /* @__PURE__ */ new Map();
|
|
4301
4308
|
this.loaderHook = new PluginSystem({
|
|
4302
4309
|
getModuleInfo: new SyncHook(),
|
|
@@ -4793,94 +4800,95 @@ y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[d("elementProper
|
|
|
4793
4800
|
|
|
4794
4801
|
// node_modules/lit-html/lit-html.js
|
|
4795
4802
|
var t2 = globalThis;
|
|
4796
|
-
var i3 =
|
|
4797
|
-
var s2 =
|
|
4798
|
-
var e3 = "
|
|
4799
|
-
var h2 =
|
|
4800
|
-
var o3 =
|
|
4801
|
-
var n3 =
|
|
4802
|
-
var r3 =
|
|
4803
|
-
var l2 =
|
|
4804
|
-
var c3 = (
|
|
4805
|
-
var a2 =
|
|
4806
|
-
var u2 =
|
|
4807
|
-
var d2 = "[
|
|
4808
|
-
var f2 =
|
|
4809
|
-
var v =
|
|
4810
|
-
var _ =
|
|
4811
|
-
var m =
|
|
4803
|
+
var i3 = (t4) => t4;
|
|
4804
|
+
var s2 = t2.trustedTypes;
|
|
4805
|
+
var e3 = s2 ? s2.createPolicy("lit-html", { createHTML: (t4) => t4 }) : void 0;
|
|
4806
|
+
var h2 = "$lit$";
|
|
4807
|
+
var o3 = `lit$${Math.random().toFixed(9).slice(2)}$`;
|
|
4808
|
+
var n3 = "?" + o3;
|
|
4809
|
+
var r3 = `<${n3}>`;
|
|
4810
|
+
var l2 = document;
|
|
4811
|
+
var c3 = () => l2.createComment("");
|
|
4812
|
+
var a2 = (t4) => null === t4 || "object" != typeof t4 && "function" != typeof t4;
|
|
4813
|
+
var u2 = Array.isArray;
|
|
4814
|
+
var d2 = (t4) => u2(t4) || "function" == typeof t4?.[Symbol.iterator];
|
|
4815
|
+
var f2 = "[ \n\f\r]";
|
|
4816
|
+
var v = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
|
|
4817
|
+
var _ = /-->/g;
|
|
4818
|
+
var m = />/g;
|
|
4819
|
+
var p2 = RegExp(`>|${f2}(?:([^\\s"'>=/]+)(${f2}*=${f2}*(?:[^
|
|
4812
4820
|
\f\r"'\`<>=]|("|')|))|$)`, "g");
|
|
4813
|
-
var
|
|
4814
|
-
var
|
|
4815
|
-
var
|
|
4816
|
-
var
|
|
4817
|
-
var
|
|
4818
|
-
var
|
|
4819
|
-
var
|
|
4820
|
-
var
|
|
4821
|
-
var
|
|
4822
|
-
var
|
|
4823
|
-
var
|
|
4824
|
-
function
|
|
4825
|
-
if (!
|
|
4826
|
-
return void 0 !==
|
|
4827
|
-
}
|
|
4828
|
-
var
|
|
4829
|
-
const s4 = t4.length - 1,
|
|
4830
|
-
let
|
|
4821
|
+
var g = /'/g;
|
|
4822
|
+
var $ = /"/g;
|
|
4823
|
+
var y2 = /^(?:script|style|textarea|title)$/i;
|
|
4824
|
+
var x = (t4) => (i7, ...s4) => ({ _$litType$: t4, strings: i7, values: s4 });
|
|
4825
|
+
var b2 = x(1);
|
|
4826
|
+
var w = x(2);
|
|
4827
|
+
var T = x(3);
|
|
4828
|
+
var E = /* @__PURE__ */ Symbol.for("lit-noChange");
|
|
4829
|
+
var A = /* @__PURE__ */ Symbol.for("lit-nothing");
|
|
4830
|
+
var C = /* @__PURE__ */ new WeakMap();
|
|
4831
|
+
var P = l2.createTreeWalker(l2, 129);
|
|
4832
|
+
function V(t4, i7) {
|
|
4833
|
+
if (!u2(t4) || !t4.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
4834
|
+
return void 0 !== e3 ? e3.createHTML(i7) : i7;
|
|
4835
|
+
}
|
|
4836
|
+
var N = (t4, i7) => {
|
|
4837
|
+
const s4 = t4.length - 1, e7 = [];
|
|
4838
|
+
let n6, l3 = 2 === i7 ? "<svg>" : 3 === i7 ? "<math>" : "", c4 = v;
|
|
4831
4839
|
for (let i8 = 0; i8 < s4; i8++) {
|
|
4832
4840
|
const s5 = t4[i8];
|
|
4833
|
-
let a3, u3, d3 = -1,
|
|
4834
|
-
for (;
|
|
4835
|
-
const x2 = c4 ===
|
|
4836
|
-
l3 += c4 ===
|
|
4841
|
+
let a3, u3, d3 = -1, f3 = 0;
|
|
4842
|
+
for (; f3 < s5.length && (c4.lastIndex = f3, u3 = c4.exec(s5), null !== u3); ) f3 = c4.lastIndex, c4 === v ? "!--" === u3[1] ? c4 = _ : void 0 !== u3[1] ? c4 = m : void 0 !== u3[2] ? (y2.test(u3[2]) && (n6 = RegExp("</" + u3[2], "g")), c4 = p2) : void 0 !== u3[3] && (c4 = p2) : c4 === p2 ? ">" === u3[0] ? (c4 = n6 ?? v, d3 = -1) : void 0 === u3[1] ? d3 = -2 : (d3 = c4.lastIndex - u3[2].length, a3 = u3[1], c4 = void 0 === u3[3] ? p2 : '"' === u3[3] ? $ : g) : c4 === $ || c4 === g ? c4 = p2 : c4 === _ || c4 === m ? c4 = v : (c4 = p2, n6 = void 0);
|
|
4843
|
+
const x2 = c4 === p2 && t4[i8 + 1].startsWith("/>") ? " " : "";
|
|
4844
|
+
l3 += c4 === v ? s5 + r3 : d3 >= 0 ? (e7.push(a3), s5.slice(0, d3) + h2 + s5.slice(d3) + o3 + x2) : s5 + o3 + (-2 === d3 ? i8 : x2);
|
|
4837
4845
|
}
|
|
4838
|
-
return [
|
|
4846
|
+
return [V(t4, l3 + (t4[s4] || "<?>") + (2 === i7 ? "</svg>" : 3 === i7 ? "</math>" : "")), e7];
|
|
4839
4847
|
};
|
|
4840
|
-
var
|
|
4841
|
-
constructor({ strings: t4, _$litType$:
|
|
4848
|
+
var S2 = class _S {
|
|
4849
|
+
constructor({ strings: t4, _$litType$: i7 }, e7) {
|
|
4842
4850
|
let r6;
|
|
4843
4851
|
this.parts = [];
|
|
4844
|
-
let
|
|
4845
|
-
const u3 = t4.length - 1, d3 = this.parts, [f3, v2] =
|
|
4846
|
-
if (this.el =
|
|
4852
|
+
let l3 = 0, a3 = 0;
|
|
4853
|
+
const u3 = t4.length - 1, d3 = this.parts, [f3, v2] = N(t4, i7);
|
|
4854
|
+
if (this.el = _S.createElement(f3, e7), P.currentNode = this.el.content, 2 === i7 || 3 === i7) {
|
|
4847
4855
|
const t5 = this.el.content.firstChild;
|
|
4848
4856
|
t5.replaceWith(...t5.childNodes);
|
|
4849
4857
|
}
|
|
4850
|
-
for (; null !== (r6 =
|
|
4858
|
+
for (; null !== (r6 = P.nextNode()) && d3.length < u3; ) {
|
|
4851
4859
|
if (1 === r6.nodeType) {
|
|
4852
|
-
if (r6.hasAttributes()) for (const t5 of r6.getAttributeNames()) if (t5.endsWith(
|
|
4853
|
-
const
|
|
4854
|
-
d3.push({ type: 1, index:
|
|
4855
|
-
} else t5.startsWith(
|
|
4856
|
-
if (
|
|
4857
|
-
const t5 = r6.textContent.split(
|
|
4858
|
-
if (
|
|
4859
|
-
r6.textContent =
|
|
4860
|
-
for (let
|
|
4861
|
-
r6.append(t5[
|
|
4860
|
+
if (r6.hasAttributes()) for (const t5 of r6.getAttributeNames()) if (t5.endsWith(h2)) {
|
|
4861
|
+
const i8 = v2[a3++], s4 = r6.getAttribute(t5).split(o3), e8 = /([.?@])?(.*)/.exec(i8);
|
|
4862
|
+
d3.push({ type: 1, index: l3, name: e8[2], strings: s4, ctor: "." === e8[1] ? I : "?" === e8[1] ? L : "@" === e8[1] ? z : H }), r6.removeAttribute(t5);
|
|
4863
|
+
} else t5.startsWith(o3) && (d3.push({ type: 6, index: l3 }), r6.removeAttribute(t5));
|
|
4864
|
+
if (y2.test(r6.tagName)) {
|
|
4865
|
+
const t5 = r6.textContent.split(o3), i8 = t5.length - 1;
|
|
4866
|
+
if (i8 > 0) {
|
|
4867
|
+
r6.textContent = s2 ? s2.emptyScript : "";
|
|
4868
|
+
for (let s4 = 0; s4 < i8; s4++) r6.append(t5[s4], c3()), P.nextNode(), d3.push({ type: 2, index: ++l3 });
|
|
4869
|
+
r6.append(t5[i8], c3());
|
|
4862
4870
|
}
|
|
4863
4871
|
}
|
|
4864
|
-
} else if (8 === r6.nodeType) if (r6.data ===
|
|
4872
|
+
} else if (8 === r6.nodeType) if (r6.data === n3) d3.push({ type: 2, index: l3 });
|
|
4865
4873
|
else {
|
|
4866
4874
|
let t5 = -1;
|
|
4867
|
-
for (; -1 !== (t5 = r6.data.indexOf(
|
|
4875
|
+
for (; -1 !== (t5 = r6.data.indexOf(o3, t5 + 1)); ) d3.push({ type: 7, index: l3 }), t5 += o3.length - 1;
|
|
4868
4876
|
}
|
|
4869
|
-
|
|
4877
|
+
l3++;
|
|
4870
4878
|
}
|
|
4871
4879
|
}
|
|
4872
4880
|
static createElement(t4, i7) {
|
|
4873
|
-
const s4 =
|
|
4881
|
+
const s4 = l2.createElement("template");
|
|
4874
4882
|
return s4.innerHTML = t4, s4;
|
|
4875
4883
|
}
|
|
4876
4884
|
};
|
|
4877
|
-
function
|
|
4878
|
-
if (i7 ===
|
|
4885
|
+
function M(t4, i7, s4 = t4, e7) {
|
|
4886
|
+
if (i7 === E) return i7;
|
|
4879
4887
|
let h3 = void 0 !== e7 ? s4._$Co?.[e7] : s4._$Cl;
|
|
4880
|
-
const o7 =
|
|
4881
|
-
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 =
|
|
4888
|
+
const o7 = a2(i7) ? void 0 : i7._$litDirective$;
|
|
4889
|
+
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 = M(t4, h3._$AS(t4, i7.values), h3, e7)), i7;
|
|
4882
4890
|
}
|
|
4883
|
-
var
|
|
4891
|
+
var R = class {
|
|
4884
4892
|
constructor(t4, i7) {
|
|
4885
4893
|
this._$AV = [], this._$AN = void 0, this._$AD = t4, this._$AM = i7;
|
|
4886
4894
|
}
|
|
@@ -4891,29 +4899,29 @@ var M = class {
|
|
|
4891
4899
|
return this._$AM._$AU;
|
|
4892
4900
|
}
|
|
4893
4901
|
u(t4) {
|
|
4894
|
-
const { el: { content: i7 }, parts: s4 } = this._$AD, e7 = (t4?.creationScope ??
|
|
4895
|
-
|
|
4896
|
-
let h3 =
|
|
4897
|
-
for (; void 0 !==
|
|
4898
|
-
if (o7 ===
|
|
4902
|
+
const { el: { content: i7 }, parts: s4 } = this._$AD, e7 = (t4?.creationScope ?? l2).importNode(i7, true);
|
|
4903
|
+
P.currentNode = e7;
|
|
4904
|
+
let h3 = P.nextNode(), o7 = 0, n6 = 0, r6 = s4[0];
|
|
4905
|
+
for (; void 0 !== r6; ) {
|
|
4906
|
+
if (o7 === r6.index) {
|
|
4899
4907
|
let i8;
|
|
4900
|
-
2 ===
|
|
4908
|
+
2 === r6.type ? i8 = new k(h3, h3.nextSibling, this, t4) : 1 === r6.type ? i8 = new r6.ctor(h3, r6.name, r6.strings, this, t4) : 6 === r6.type && (i8 = new Z(h3, this, t4)), this._$AV.push(i8), r6 = s4[++n6];
|
|
4901
4909
|
}
|
|
4902
|
-
o7 !==
|
|
4910
|
+
o7 !== r6?.index && (h3 = P.nextNode(), o7++);
|
|
4903
4911
|
}
|
|
4904
|
-
return
|
|
4912
|
+
return P.currentNode = l2, e7;
|
|
4905
4913
|
}
|
|
4906
4914
|
p(t4) {
|
|
4907
4915
|
let i7 = 0;
|
|
4908
4916
|
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++;
|
|
4909
4917
|
}
|
|
4910
4918
|
};
|
|
4911
|
-
var
|
|
4919
|
+
var k = class _k {
|
|
4912
4920
|
get _$AU() {
|
|
4913
4921
|
return this._$AM?._$AU ?? this._$Cv;
|
|
4914
4922
|
}
|
|
4915
4923
|
constructor(t4, i7, s4, e7) {
|
|
4916
|
-
this.type = 2, this._$AH =
|
|
4924
|
+
this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = t4, this._$AB = i7, this._$AM = s4, this.options = e7, this._$Cv = e7?.isConnected ?? true;
|
|
4917
4925
|
}
|
|
4918
4926
|
get parentNode() {
|
|
4919
4927
|
let t4 = this._$AA.parentNode;
|
|
@@ -4927,7 +4935,7 @@ var R = class _R {
|
|
|
4927
4935
|
return this._$AB;
|
|
4928
4936
|
}
|
|
4929
4937
|
_$AI(t4, i7 = this) {
|
|
4930
|
-
t4 =
|
|
4938
|
+
t4 = M(this, t4, i7), a2(t4) ? t4 === A || null == t4 || "" === t4 ? (this._$AH !== A && this._$AR(), this._$AH = A) : t4 !== this._$AH && t4 !== E && this._(t4) : void 0 !== t4._$litType$ ? this.$(t4) : void 0 !== t4.nodeType ? this.T(t4) : d2(t4) ? this.k(t4) : this._(t4);
|
|
4931
4939
|
}
|
|
4932
4940
|
O(t4) {
|
|
4933
4941
|
return this._$AA.parentNode.insertBefore(t4, this._$AB);
|
|
@@ -4936,38 +4944,38 @@ var R = class _R {
|
|
|
4936
4944
|
this._$AH !== t4 && (this._$AR(), this._$AH = this.O(t4));
|
|
4937
4945
|
}
|
|
4938
4946
|
_(t4) {
|
|
4939
|
-
this._$AH !==
|
|
4947
|
+
this._$AH !== A && a2(this._$AH) ? this._$AA.nextSibling.data = t4 : this.T(l2.createTextNode(t4)), this._$AH = t4;
|
|
4940
4948
|
}
|
|
4941
4949
|
$(t4) {
|
|
4942
|
-
const { values: i7, _$litType$: s4 } = t4, e7 = "number" == typeof s4 ? this._$AC(t4) : (void 0 === s4.el && (s4.el =
|
|
4950
|
+
const { values: i7, _$litType$: s4 } = t4, e7 = "number" == typeof s4 ? this._$AC(t4) : (void 0 === s4.el && (s4.el = S2.createElement(V(s4.h, s4.h[0]), this.options)), s4);
|
|
4943
4951
|
if (this._$AH?._$AD === e7) this._$AH.p(i7);
|
|
4944
4952
|
else {
|
|
4945
|
-
const t5 = new
|
|
4953
|
+
const t5 = new R(e7, this), s5 = t5.u(this.options);
|
|
4946
4954
|
t5.p(i7), this.T(s5), this._$AH = t5;
|
|
4947
4955
|
}
|
|
4948
4956
|
}
|
|
4949
4957
|
_$AC(t4) {
|
|
4950
|
-
let i7 =
|
|
4951
|
-
return void 0 === i7 &&
|
|
4958
|
+
let i7 = C.get(t4.strings);
|
|
4959
|
+
return void 0 === i7 && C.set(t4.strings, i7 = new S2(t4)), i7;
|
|
4952
4960
|
}
|
|
4953
4961
|
k(t4) {
|
|
4954
|
-
|
|
4962
|
+
u2(this._$AH) || (this._$AH = [], this._$AR());
|
|
4955
4963
|
const i7 = this._$AH;
|
|
4956
4964
|
let s4, e7 = 0;
|
|
4957
|
-
for (const h3 of t4) e7 === i7.length ? i7.push(s4 = new
|
|
4965
|
+
for (const h3 of t4) e7 === i7.length ? i7.push(s4 = new _k(this.O(c3()), this.O(c3()), this, this.options)) : s4 = i7[e7], s4._$AI(h3), e7++;
|
|
4958
4966
|
e7 < i7.length && (this._$AR(s4 && s4._$AB.nextSibling, e7), i7.length = e7);
|
|
4959
4967
|
}
|
|
4960
|
-
_$AR(t4 = this._$AA.nextSibling,
|
|
4961
|
-
for (this._$AP?.(false, true,
|
|
4962
|
-
const
|
|
4963
|
-
t4.remove(), t4 =
|
|
4968
|
+
_$AR(t4 = this._$AA.nextSibling, s4) {
|
|
4969
|
+
for (this._$AP?.(false, true, s4); t4 !== this._$AB; ) {
|
|
4970
|
+
const s5 = i3(t4).nextSibling;
|
|
4971
|
+
i3(t4).remove(), t4 = s5;
|
|
4964
4972
|
}
|
|
4965
4973
|
}
|
|
4966
4974
|
setConnected(t4) {
|
|
4967
4975
|
void 0 === this._$AM && (this._$Cv = t4, this._$AP?.(t4));
|
|
4968
4976
|
}
|
|
4969
4977
|
};
|
|
4970
|
-
var
|
|
4978
|
+
var H = class {
|
|
4971
4979
|
get tagName() {
|
|
4972
4980
|
return this.element.tagName;
|
|
4973
4981
|
}
|
|
@@ -4975,53 +4983,53 @@ var k = class {
|
|
|
4975
4983
|
return this._$AM._$AU;
|
|
4976
4984
|
}
|
|
4977
4985
|
constructor(t4, i7, s4, e7, h3) {
|
|
4978
|
-
this.type = 1, this._$AH =
|
|
4986
|
+
this.type = 1, this._$AH = A, this._$AN = void 0, this.element = t4, this.name = i7, this._$AM = e7, this.options = h3, s4.length > 2 || "" !== s4[0] || "" !== s4[1] ? (this._$AH = Array(s4.length - 1).fill(new String()), this.strings = s4) : this._$AH = A;
|
|
4979
4987
|
}
|
|
4980
4988
|
_$AI(t4, i7 = this, s4, e7) {
|
|
4981
4989
|
const h3 = this.strings;
|
|
4982
4990
|
let o7 = false;
|
|
4983
|
-
if (void 0 === h3) t4 =
|
|
4991
|
+
if (void 0 === h3) t4 = M(this, t4, i7, 0), o7 = !a2(t4) || t4 !== this._$AH && t4 !== E, o7 && (this._$AH = t4);
|
|
4984
4992
|
else {
|
|
4985
4993
|
const e8 = t4;
|
|
4986
4994
|
let n6, r6;
|
|
4987
|
-
for (t4 = h3[0], n6 = 0; n6 < h3.length - 1; n6++) r6 =
|
|
4995
|
+
for (t4 = h3[0], n6 = 0; n6 < h3.length - 1; n6++) r6 = M(this, e8[s4 + n6], i7, n6), r6 === E && (r6 = this._$AH[n6]), o7 ||= !a2(r6) || r6 !== this._$AH[n6], r6 === A ? t4 = A : t4 !== A && (t4 += (r6 ?? "") + h3[n6 + 1]), this._$AH[n6] = r6;
|
|
4988
4996
|
}
|
|
4989
4997
|
o7 && !e7 && this.j(t4);
|
|
4990
4998
|
}
|
|
4991
4999
|
j(t4) {
|
|
4992
|
-
t4 ===
|
|
5000
|
+
t4 === A ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t4 ?? "");
|
|
4993
5001
|
}
|
|
4994
5002
|
};
|
|
4995
|
-
var
|
|
5003
|
+
var I = class extends H {
|
|
4996
5004
|
constructor() {
|
|
4997
5005
|
super(...arguments), this.type = 3;
|
|
4998
5006
|
}
|
|
4999
5007
|
j(t4) {
|
|
5000
|
-
this.element[this.name] = t4 ===
|
|
5008
|
+
this.element[this.name] = t4 === A ? void 0 : t4;
|
|
5001
5009
|
}
|
|
5002
5010
|
};
|
|
5003
|
-
var
|
|
5011
|
+
var L = class extends H {
|
|
5004
5012
|
constructor() {
|
|
5005
5013
|
super(...arguments), this.type = 4;
|
|
5006
5014
|
}
|
|
5007
5015
|
j(t4) {
|
|
5008
|
-
this.element.toggleAttribute(this.name, !!t4 && t4 !==
|
|
5016
|
+
this.element.toggleAttribute(this.name, !!t4 && t4 !== A);
|
|
5009
5017
|
}
|
|
5010
5018
|
};
|
|
5011
|
-
var
|
|
5019
|
+
var z = class extends H {
|
|
5012
5020
|
constructor(t4, i7, s4, e7, h3) {
|
|
5013
5021
|
super(t4, i7, s4, e7, h3), this.type = 5;
|
|
5014
5022
|
}
|
|
5015
5023
|
_$AI(t4, i7 = this) {
|
|
5016
|
-
if ((t4 =
|
|
5017
|
-
const s4 = this._$AH, e7 = t4 ===
|
|
5024
|
+
if ((t4 = M(this, t4, i7, 0) ?? A) === E) return;
|
|
5025
|
+
const s4 = this._$AH, e7 = t4 === A && s4 !== A || t4.capture !== s4.capture || t4.once !== s4.once || t4.passive !== s4.passive, h3 = t4 !== A && (s4 === A || e7);
|
|
5018
5026
|
e7 && this.element.removeEventListener(this.name, this, s4), h3 && this.element.addEventListener(this.name, this, t4), this._$AH = t4;
|
|
5019
5027
|
}
|
|
5020
5028
|
handleEvent(t4) {
|
|
5021
5029
|
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t4) : this._$AH.handleEvent(t4);
|
|
5022
5030
|
}
|
|
5023
5031
|
};
|
|
5024
|
-
var
|
|
5032
|
+
var Z = class {
|
|
5025
5033
|
constructor(t4, i7, s4) {
|
|
5026
5034
|
this.element = t4, this.type = 6, this._$AN = void 0, this._$AM = i7, this.options = s4;
|
|
5027
5035
|
}
|
|
@@ -5029,17 +5037,17 @@ var z = class {
|
|
|
5029
5037
|
return this._$AM._$AU;
|
|
5030
5038
|
}
|
|
5031
5039
|
_$AI(t4) {
|
|
5032
|
-
|
|
5040
|
+
M(this, t4);
|
|
5033
5041
|
}
|
|
5034
5042
|
};
|
|
5035
|
-
var
|
|
5036
|
-
|
|
5037
|
-
var
|
|
5043
|
+
var B = t2.litHtmlPolyfillSupport;
|
|
5044
|
+
B?.(S2, k), (t2.litHtmlVersions ??= []).push("3.3.2");
|
|
5045
|
+
var D = (t4, i7, s4) => {
|
|
5038
5046
|
const e7 = s4?.renderBefore ?? i7;
|
|
5039
5047
|
let h3 = e7._$litPart$;
|
|
5040
5048
|
if (void 0 === h3) {
|
|
5041
5049
|
const t5 = s4?.renderBefore ?? null;
|
|
5042
|
-
e7._$litPart$ = h3 = new
|
|
5050
|
+
e7._$litPart$ = h3 = new k(i7.insertBefore(c3(), t5), t5, void 0, s4 ?? {});
|
|
5043
5051
|
}
|
|
5044
5052
|
return h3._$AI(t4), h3;
|
|
5045
5053
|
};
|
|
@@ -5056,7 +5064,7 @@ var i4 = class extends y {
|
|
|
5056
5064
|
}
|
|
5057
5065
|
update(t4) {
|
|
5058
5066
|
const r6 = this.render();
|
|
5059
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t4), this._$Do =
|
|
5067
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t4), this._$Do = D(r6, this.renderRoot, this.renderOptions);
|
|
5060
5068
|
}
|
|
5061
5069
|
connectedCallback() {
|
|
5062
5070
|
super.connectedCallback(), this._$Do?.setConnected(true);
|
|
@@ -5065,7 +5073,7 @@ var i4 = class extends y {
|
|
|
5065
5073
|
super.disconnectedCallback(), this._$Do?.setConnected(false);
|
|
5066
5074
|
}
|
|
5067
5075
|
render() {
|
|
5068
|
-
return
|
|
5076
|
+
return E;
|
|
5069
5077
|
}
|
|
5070
5078
|
};
|
|
5071
5079
|
i4._$litElement$ = true, i4["finalized"] = true, s3.litElementHydrateSupport?.({ LitElement: i4 });
|
|
@@ -5163,10 +5171,10 @@ var o6 = e6(class extends i5 {
|
|
|
5163
5171
|
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.");
|
|
5164
5172
|
}
|
|
5165
5173
|
render(t4) {
|
|
5166
|
-
return Object.keys(t4).reduce((
|
|
5174
|
+
return Object.keys(t4).reduce((e7, r6) => {
|
|
5167
5175
|
const s4 = t4[r6];
|
|
5168
5176
|
return null == s4 ? e7 : e7 + `${r6 = r6.includes("-") ? r6 : r6.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${s4};`;
|
|
5169
|
-
}
|
|
5177
|
+
}, "");
|
|
5170
5178
|
}
|
|
5171
5179
|
update(e7, [r6]) {
|
|
5172
5180
|
const { style: s4 } = e7.element;
|
|
@@ -5180,12 +5188,12 @@ var o6 = e6(class extends i5 {
|
|
|
5180
5188
|
t4.includes("-") || r7 ? s4.setProperty(t4, r7 ? e8.slice(0, -11) : e8, r7 ? n5 : "") : s4[t4] = e8;
|
|
5181
5189
|
}
|
|
5182
5190
|
}
|
|
5183
|
-
return
|
|
5191
|
+
return E;
|
|
5184
5192
|
}
|
|
5185
5193
|
});
|
|
5186
5194
|
|
|
5187
5195
|
// libs/embed-libs/embed/package.json
|
|
5188
|
-
var version = "6.13.
|
|
5196
|
+
var version = "6.13.1";
|
|
5189
5197
|
|
|
5190
5198
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
5191
5199
|
var LuzmoDashboardService = class {
|
|
@@ -5599,22 +5607,25 @@ var LuzmoDashboard = class extends i4 {
|
|
|
5599
5607
|
loadLibrary(this.params.appServer, dashboardRemote).then(async () => {
|
|
5600
5608
|
this.isLibraryLoaded = true;
|
|
5601
5609
|
await this.updateComplete;
|
|
5602
|
-
const
|
|
5603
|
-
this.
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
this.containerWidth = this.dashboardReference.offsetWidth;
|
|
5610
|
+
const el = document.createElement("dashboard-component");
|
|
5611
|
+
this.setAllAttributesOnElement(el);
|
|
5612
|
+
el.addEventListener("load", (payload) => {
|
|
5613
|
+
this.containerWidth = el.offsetWidth;
|
|
5607
5614
|
this.dimensions = payload.detail.dimensions;
|
|
5608
5615
|
_setCalculatedDimensions(this);
|
|
5609
5616
|
window.dispatchEvent(new Event("resize"));
|
|
5610
5617
|
this.dispatchEvent(new CustomEvent("load", payload));
|
|
5611
5618
|
});
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
this.
|
|
5619
|
+
el.addEventListener("itemsRendered", (payload) => this.dispatchEvent(new CustomEvent("itemsRendered", payload)));
|
|
5620
|
+
el.addEventListener("customEvent", (payload) => this.dispatchEvent(new CustomEvent("customEvent", payload)));
|
|
5621
|
+
el.addEventListener("changedFilters", (payload) => this.dispatchEvent(new CustomEvent("changedFilters", payload)));
|
|
5622
|
+
el.addEventListener("dashboardAction", (payload) => this.dispatchEvent(new CustomEvent("dashboardAction", payload)));
|
|
5623
|
+
el.addEventListener("export", (payload) => this.dispatchEvent(new CustomEvent("exported", payload)));
|
|
5624
|
+
const container = this.renderRoot.querySelector("#dashboard-wc-container");
|
|
5625
|
+
if (container) {
|
|
5626
|
+
container.append(el);
|
|
5627
|
+
this.dashboardReference = el;
|
|
5628
|
+
}
|
|
5618
5629
|
});
|
|
5619
5630
|
} else {
|
|
5620
5631
|
this.containerWidth = this.container?.clientWidth;
|
|
@@ -5632,24 +5643,36 @@ var LuzmoDashboard = class extends i4 {
|
|
|
5632
5643
|
}
|
|
5633
5644
|
setAllAttributes() {
|
|
5634
5645
|
if (this.dashboardReference) {
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5646
|
+
this.setAllAttributesOnElement(this.dashboardReference);
|
|
5647
|
+
}
|
|
5648
|
+
}
|
|
5649
|
+
setAllAttributesOnElement(el) {
|
|
5650
|
+
if (!el) {
|
|
5651
|
+
return;
|
|
5652
|
+
}
|
|
5653
|
+
if (this.params.dashboardId) {
|
|
5654
|
+
el.setAttribute("dashboard-id", this.params.dashboardId);
|
|
5655
|
+
}
|
|
5656
|
+
if (this.params.appServer) {
|
|
5657
|
+
el.setAttribute("app-server", this.params.appServer);
|
|
5658
|
+
}
|
|
5659
|
+
if (this.params.apiHost) {
|
|
5660
|
+
el.setAttribute("api-host", removeTrailingSlash(this.params.apiHost));
|
|
5661
|
+
}
|
|
5662
|
+
for (const key in this.attributesMap) {
|
|
5663
|
+
if (!["authKey", "authToken", "apiHost", "itemDimensions", "dashboardId", "appServer"].includes(key) && this.params[key]) {
|
|
5664
|
+
el.setAttribute(this.attributesMap[key], this.params[key]);
|
|
5651
5665
|
}
|
|
5652
5666
|
}
|
|
5667
|
+
if (this.params.itemDimensions) {
|
|
5668
|
+
el.setAttribute("item-dimensions", JSON.stringify(this.params.itemDimensions));
|
|
5669
|
+
}
|
|
5670
|
+
if (this.params.key) {
|
|
5671
|
+
el.setAttribute("auth-key", this.params.key);
|
|
5672
|
+
}
|
|
5673
|
+
if (this.params.token) {
|
|
5674
|
+
el.setAttribute("auth-token", this.params.token);
|
|
5675
|
+
}
|
|
5653
5676
|
}
|
|
5654
5677
|
// Reload dashboard when triggerproperty changes
|
|
5655
5678
|
updated(changedProperties) {
|
|
@@ -5849,7 +5872,7 @@ var LuzmoDashboard = class extends i4 {
|
|
|
5849
5872
|
}
|
|
5850
5873
|
render() {
|
|
5851
5874
|
let toBeRenderedHTML;
|
|
5852
|
-
const loader =
|
|
5875
|
+
const loader = b2`
|
|
5853
5876
|
<div
|
|
5854
5877
|
class="luzmo-container-loader"
|
|
5855
5878
|
id="luzmo-container-loader-${this._containerId}"
|
|
@@ -5872,7 +5895,7 @@ var LuzmoDashboard = class extends i4 {
|
|
|
5872
5895
|
this._loadingCircleStyle
|
|
5873
5896
|
)}
|
|
5874
5897
|
></div>
|
|
5875
|
-
${this._itemEmbedding ? "" :
|
|
5898
|
+
${this._itemEmbedding ? "" : b2`
|
|
5876
5899
|
<div
|
|
5877
5900
|
class="luzmo-loading-message"
|
|
5878
5901
|
style=${o6({ color: this.loaderFontColor })}
|
|
@@ -5885,19 +5908,18 @@ var LuzmoDashboard = class extends i4 {
|
|
|
5885
5908
|
</div>
|
|
5886
5909
|
`;
|
|
5887
5910
|
if (this.isWebComponentViewMode()) {
|
|
5888
|
-
toBeRenderedHTML = this.isLibraryLoaded ?
|
|
5889
|
-
${this.dashboardId || this.dashboardSlug ?
|
|
5890
|
-
<
|
|
5891
|
-
|
|
5892
|
-
` : x`
|
|
5911
|
+
toBeRenderedHTML = this.isLibraryLoaded ? b2`
|
|
5912
|
+
${this.dashboardId || this.dashboardSlug ? b2`
|
|
5913
|
+
<div id="dashboard-wc-container"></div>
|
|
5914
|
+
` : b2`
|
|
5893
5915
|
<div id="luzmo-error-${this._containerId}">
|
|
5894
5916
|
<h3 class="luzmo-error">${this.browserErrorMsg}</h3>
|
|
5895
5917
|
</div>
|
|
5896
5918
|
`}
|
|
5897
|
-
` :
|
|
5919
|
+
` : b2`${loader}`;
|
|
5898
5920
|
} else {
|
|
5899
|
-
toBeRenderedHTML =
|
|
5900
|
-
${this.dashboardId || this.dashboardSlug ?
|
|
5921
|
+
toBeRenderedHTML = b2`
|
|
5922
|
+
${this.dashboardId || this.dashboardSlug ? b2`
|
|
5901
5923
|
${loader}
|
|
5902
5924
|
<iframe
|
|
5903
5925
|
class="luzmo-embed-dashboard ${this.isWebComponentViewMode() ? "" : `luzmo-embed-dashboard-ede`}"
|
|
@@ -5907,15 +5929,15 @@ var LuzmoDashboard = class extends i4 {
|
|
|
5907
5929
|
src="${this._iframeUrl}"
|
|
5908
5930
|
frameborder="0"
|
|
5909
5931
|
></iframe>
|
|
5910
|
-
` :
|
|
5911
|
-
${this.browserError ?
|
|
5932
|
+
` : b2`<!-- the dashboard will inititialize when you provide a dashboardSlug or a dashboardId -->`}
|
|
5933
|
+
${this.browserError ? b2`
|
|
5912
5934
|
<div id="luzmo-error-${this._containerId}">
|
|
5913
5935
|
<h3 class="luzmo-error">${this.browserErrorMsg}</h3>
|
|
5914
5936
|
</div>
|
|
5915
5937
|
` : ""}
|
|
5916
5938
|
`;
|
|
5917
5939
|
}
|
|
5918
|
-
return
|
|
5940
|
+
return b2`
|
|
5919
5941
|
<div class="${luzmoEmbedContainerClass} ${this.isWebComponentViewMode() ? "" : `${luzmoEmbedContainerClass}-ede`}">
|
|
5920
5942
|
<div
|
|
5921
5943
|
class="dashboard-container"
|
|
@@ -6241,22 +6263,6 @@ var LuzmoBaseVizItem = class extends i4 {
|
|
|
6241
6263
|
this.libVersion = version + "-wc-luzmo";
|
|
6242
6264
|
this.postInitCallQueue = [];
|
|
6243
6265
|
}
|
|
6244
|
-
static {
|
|
6245
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
6246
|
-
this.styles = i`
|
|
6247
|
-
:host {
|
|
6248
|
-
display: block;
|
|
6249
|
-
width: 100%;
|
|
6250
|
-
height: 100%;
|
|
6251
|
-
}
|
|
6252
|
-
|
|
6253
|
-
luzmo-embed-viz-item {
|
|
6254
|
-
width: 100%;
|
|
6255
|
-
height: 1000%;
|
|
6256
|
-
display: block;
|
|
6257
|
-
}
|
|
6258
|
-
`;
|
|
6259
|
-
}
|
|
6260
6266
|
createRenderRoot() {
|
|
6261
6267
|
if (!this.style.display) {
|
|
6262
6268
|
this.style.display = "block";
|
|
@@ -6364,9 +6370,23 @@ var LuzmoBaseVizItem = class extends i4 {
|
|
|
6364
6370
|
}
|
|
6365
6371
|
}
|
|
6366
6372
|
render() {
|
|
6367
|
-
return
|
|
6373
|
+
return b2` `;
|
|
6368
6374
|
}
|
|
6369
6375
|
};
|
|
6376
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
6377
|
+
LuzmoBaseVizItem.styles = i`
|
|
6378
|
+
:host {
|
|
6379
|
+
display: block;
|
|
6380
|
+
width: 100%;
|
|
6381
|
+
height: 100%;
|
|
6382
|
+
}
|
|
6383
|
+
|
|
6384
|
+
luzmo-embed-viz-item {
|
|
6385
|
+
width: 100%;
|
|
6386
|
+
height: 1000%;
|
|
6387
|
+
display: block;
|
|
6388
|
+
}
|
|
6389
|
+
`;
|
|
6370
6390
|
__decorateClass([
|
|
6371
6391
|
n4()
|
|
6372
6392
|
], LuzmoBaseVizItem.prototype, "appServer", 2);
|
|
@@ -6457,16 +6477,6 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
|
|
|
6457
6477
|
this.remoteEntryServer = "http://localhost:4202/";
|
|
6458
6478
|
this.aydHost = "https://ayd.luzmo.com/";
|
|
6459
6479
|
}
|
|
6460
|
-
static {
|
|
6461
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
6462
|
-
this.styles = i`
|
|
6463
|
-
:host {
|
|
6464
|
-
display: block;
|
|
6465
|
-
width: 100%;
|
|
6466
|
-
height: 100%;
|
|
6467
|
-
}
|
|
6468
|
-
`;
|
|
6469
|
-
}
|
|
6470
6480
|
createRenderRoot() {
|
|
6471
6481
|
return this;
|
|
6472
6482
|
}
|
|
@@ -6513,7 +6523,7 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
|
|
|
6513
6523
|
}
|
|
6514
6524
|
}
|
|
6515
6525
|
render() {
|
|
6516
|
-
return
|
|
6526
|
+
return b2``;
|
|
6517
6527
|
}
|
|
6518
6528
|
connectedCallback() {
|
|
6519
6529
|
super.connectedCallback();
|
|
@@ -6535,6 +6545,14 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
|
|
|
6535
6545
|
observer.observe(embedChat, { childList: true, subtree: true });
|
|
6536
6546
|
}
|
|
6537
6547
|
};
|
|
6548
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
6549
|
+
LuzmoIQEmbedChatComponent.styles = i`
|
|
6550
|
+
:host {
|
|
6551
|
+
display: block;
|
|
6552
|
+
width: 100%;
|
|
6553
|
+
height: 100%;
|
|
6554
|
+
}
|
|
6555
|
+
`;
|
|
6538
6556
|
__decorateClass([
|
|
6539
6557
|
n4()
|
|
6540
6558
|
], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
|
|
@@ -6597,16 +6615,6 @@ var LuzmoIQEmbedAnswerComponent = class extends i4 {
|
|
|
6597
6615
|
this.libVersion = version + "-wc-luzmo";
|
|
6598
6616
|
this.remoteEntryServer = "http://localhost:4202";
|
|
6599
6617
|
}
|
|
6600
|
-
static {
|
|
6601
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
6602
|
-
this.styles = i`
|
|
6603
|
-
:host {
|
|
6604
|
-
display: block;
|
|
6605
|
-
width: 100%;
|
|
6606
|
-
height: 100%;
|
|
6607
|
-
}
|
|
6608
|
-
`;
|
|
6609
|
-
}
|
|
6610
6618
|
createRenderRoot() {
|
|
6611
6619
|
return this;
|
|
6612
6620
|
}
|
|
@@ -6654,9 +6662,17 @@ var LuzmoIQEmbedAnswerComponent = class extends i4 {
|
|
|
6654
6662
|
}
|
|
6655
6663
|
}
|
|
6656
6664
|
render() {
|
|
6657
|
-
return
|
|
6665
|
+
return b2` `;
|
|
6658
6666
|
}
|
|
6659
6667
|
};
|
|
6668
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
6669
|
+
LuzmoIQEmbedAnswerComponent.styles = i`
|
|
6670
|
+
:host {
|
|
6671
|
+
display: block;
|
|
6672
|
+
width: 100%;
|
|
6673
|
+
height: 100%;
|
|
6674
|
+
}
|
|
6675
|
+
`;
|
|
6660
6676
|
__decorateClass([
|
|
6661
6677
|
n4()
|
|
6662
6678
|
], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
|
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luzmo/embed",
|
|
3
|
-
"version": "6.13.
|
|
3
|
+
"version": "6.13.1-es2021",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"lit": "^3.3.1",
|
|
6
6
|
"@luzmo/shared-embed": "5.12.0"
|
|
7
7
|
},
|
|
8
8
|
"keywords": [
|
|
9
|
+
"es2021",
|
|
10
|
+
"safari-compatible",
|
|
9
11
|
"es6",
|
|
10
12
|
"web-component",
|
|
11
13
|
"lit",
|
|
@@ -21,5 +23,9 @@
|
|
|
21
23
|
],
|
|
22
24
|
"module": "./index.js",
|
|
23
25
|
"types": "./src/index.d.ts",
|
|
24
|
-
"license": "SEE LICENSE IN LICENSE"
|
|
26
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
27
|
+
"description": "ES2021 build for Safari < 16.3 compatibility",
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"tag": "es2021"
|
|
30
|
+
}
|
|
25
31
|
}
|
|
@@ -71,6 +71,7 @@ export declare class LuzmoDashboard extends LitElement implements SharedLib.WebC
|
|
|
71
71
|
firstUpdated(): void;
|
|
72
72
|
initComponent(): void;
|
|
73
73
|
setAllAttributes(): void;
|
|
74
|
+
setAllAttributesOnElement(el: LuzmoElement): void;
|
|
74
75
|
updated(changedProperties: PropertyValues): void;
|
|
75
76
|
_setOptions(): SharedLib.DashboardContentParams;
|
|
76
77
|
_updateIframeUrl(): void;
|