@luzmo/embed 6.13.0-es2021 → 6.13.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 +5 -0
- package/index.cjs +80 -60
- package/index.js +80 -60
- package/luzmo-embed.min.js +228 -200
- package/package.json +2 -8
- 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,6 +1142,22 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1128
1142
|
this.libVersion = version + "-wc-luzmo";
|
|
1129
1143
|
this.postInitCallQueue = [];
|
|
1130
1144
|
}
|
|
1145
|
+
static {
|
|
1146
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1147
|
+
this.styles = import_lit3.css`
|
|
1148
|
+
:host {
|
|
1149
|
+
display: block;
|
|
1150
|
+
width: 100%;
|
|
1151
|
+
height: 100%;
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
luzmo-embed-viz-item {
|
|
1155
|
+
width: 100%;
|
|
1156
|
+
height: 1000%;
|
|
1157
|
+
display: block;
|
|
1158
|
+
}
|
|
1159
|
+
`;
|
|
1160
|
+
}
|
|
1131
1161
|
createRenderRoot() {
|
|
1132
1162
|
if (!this.style.display) {
|
|
1133
1163
|
this.style.display = "block";
|
|
@@ -1238,20 +1268,6 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1238
1268
|
return import_lit3.html` `;
|
|
1239
1269
|
}
|
|
1240
1270
|
};
|
|
1241
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1242
|
-
LuzmoBaseVizItem.styles = import_lit3.css`
|
|
1243
|
-
:host {
|
|
1244
|
-
display: block;
|
|
1245
|
-
width: 100%;
|
|
1246
|
-
height: 100%;
|
|
1247
|
-
}
|
|
1248
|
-
|
|
1249
|
-
luzmo-embed-viz-item {
|
|
1250
|
-
width: 100%;
|
|
1251
|
-
height: 1000%;
|
|
1252
|
-
display: block;
|
|
1253
|
-
}
|
|
1254
|
-
`;
|
|
1255
1271
|
__decorateClass([
|
|
1256
1272
|
(0, import_decorators2.property)()
|
|
1257
1273
|
], LuzmoBaseVizItem.prototype, "appServer", 2);
|
|
@@ -1345,6 +1361,16 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
|
|
|
1345
1361
|
this.remoteEntryServer = "http://localhost:4202/";
|
|
1346
1362
|
this.aydHost = "https://ayd.luzmo.com/";
|
|
1347
1363
|
}
|
|
1364
|
+
static {
|
|
1365
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1366
|
+
this.styles = import_lit4.css`
|
|
1367
|
+
:host {
|
|
1368
|
+
display: block;
|
|
1369
|
+
width: 100%;
|
|
1370
|
+
height: 100%;
|
|
1371
|
+
}
|
|
1372
|
+
`;
|
|
1373
|
+
}
|
|
1348
1374
|
createRenderRoot() {
|
|
1349
1375
|
return this;
|
|
1350
1376
|
}
|
|
@@ -1413,14 +1439,6 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
|
|
|
1413
1439
|
observer.observe(embedChat, { childList: true, subtree: true });
|
|
1414
1440
|
}
|
|
1415
1441
|
};
|
|
1416
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1417
|
-
LuzmoIQEmbedChatComponent.styles = import_lit4.css`
|
|
1418
|
-
:host {
|
|
1419
|
-
display: block;
|
|
1420
|
-
width: 100%;
|
|
1421
|
-
height: 100%;
|
|
1422
|
-
}
|
|
1423
|
-
`;
|
|
1424
1442
|
__decorateClass([
|
|
1425
1443
|
(0, import_decorators3.property)()
|
|
1426
1444
|
], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
|
|
@@ -1486,6 +1504,16 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
|
|
|
1486
1504
|
this.libVersion = version + "-wc-luzmo";
|
|
1487
1505
|
this.remoteEntryServer = "http://localhost:4202";
|
|
1488
1506
|
}
|
|
1507
|
+
static {
|
|
1508
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1509
|
+
this.styles = import_lit5.css`
|
|
1510
|
+
:host {
|
|
1511
|
+
display: block;
|
|
1512
|
+
width: 100%;
|
|
1513
|
+
height: 100%;
|
|
1514
|
+
}
|
|
1515
|
+
`;
|
|
1516
|
+
}
|
|
1489
1517
|
createRenderRoot() {
|
|
1490
1518
|
return this;
|
|
1491
1519
|
}
|
|
@@ -1536,14 +1564,6 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
|
|
|
1536
1564
|
return import_lit5.html` `;
|
|
1537
1565
|
}
|
|
1538
1566
|
};
|
|
1539
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1540
|
-
LuzmoIQEmbedAnswerComponent.styles = import_lit5.css`
|
|
1541
|
-
:host {
|
|
1542
|
-
display: block;
|
|
1543
|
-
width: 100%;
|
|
1544
|
-
height: 100%;
|
|
1545
|
-
}
|
|
1546
|
-
`;
|
|
1547
1567
|
__decorateClass([
|
|
1548
1568
|
(0, import_decorators4.property)()
|
|
1549
1569
|
], 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,6 +1100,22 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1086
1100
|
this.libVersion = version + "-wc-luzmo";
|
|
1087
1101
|
this.postInitCallQueue = [];
|
|
1088
1102
|
}
|
|
1103
|
+
static {
|
|
1104
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1105
|
+
this.styles = css2`
|
|
1106
|
+
:host {
|
|
1107
|
+
display: block;
|
|
1108
|
+
width: 100%;
|
|
1109
|
+
height: 100%;
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
luzmo-embed-viz-item {
|
|
1113
|
+
width: 100%;
|
|
1114
|
+
height: 1000%;
|
|
1115
|
+
display: block;
|
|
1116
|
+
}
|
|
1117
|
+
`;
|
|
1118
|
+
}
|
|
1089
1119
|
createRenderRoot() {
|
|
1090
1120
|
if (!this.style.display) {
|
|
1091
1121
|
this.style.display = "block";
|
|
@@ -1196,20 +1226,6 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1196
1226
|
return html2` `;
|
|
1197
1227
|
}
|
|
1198
1228
|
};
|
|
1199
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1200
|
-
LuzmoBaseVizItem.styles = css2`
|
|
1201
|
-
:host {
|
|
1202
|
-
display: block;
|
|
1203
|
-
width: 100%;
|
|
1204
|
-
height: 100%;
|
|
1205
|
-
}
|
|
1206
|
-
|
|
1207
|
-
luzmo-embed-viz-item {
|
|
1208
|
-
width: 100%;
|
|
1209
|
-
height: 1000%;
|
|
1210
|
-
display: block;
|
|
1211
|
-
}
|
|
1212
|
-
`;
|
|
1213
1229
|
__decorateClass([
|
|
1214
1230
|
property2()
|
|
1215
1231
|
], LuzmoBaseVizItem.prototype, "appServer", 2);
|
|
@@ -1303,6 +1319,16 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
|
|
|
1303
1319
|
this.remoteEntryServer = "http://localhost:4202/";
|
|
1304
1320
|
this.aydHost = "https://ayd.luzmo.com/";
|
|
1305
1321
|
}
|
|
1322
|
+
static {
|
|
1323
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1324
|
+
this.styles = css3`
|
|
1325
|
+
:host {
|
|
1326
|
+
display: block;
|
|
1327
|
+
width: 100%;
|
|
1328
|
+
height: 100%;
|
|
1329
|
+
}
|
|
1330
|
+
`;
|
|
1331
|
+
}
|
|
1306
1332
|
createRenderRoot() {
|
|
1307
1333
|
return this;
|
|
1308
1334
|
}
|
|
@@ -1371,14 +1397,6 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
|
|
|
1371
1397
|
observer.observe(embedChat, { childList: true, subtree: true });
|
|
1372
1398
|
}
|
|
1373
1399
|
};
|
|
1374
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1375
|
-
LuzmoIQEmbedChatComponent.styles = css3`
|
|
1376
|
-
:host {
|
|
1377
|
-
display: block;
|
|
1378
|
-
width: 100%;
|
|
1379
|
-
height: 100%;
|
|
1380
|
-
}
|
|
1381
|
-
`;
|
|
1382
1400
|
__decorateClass([
|
|
1383
1401
|
property3()
|
|
1384
1402
|
], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
|
|
@@ -1444,6 +1462,16 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
|
|
|
1444
1462
|
this.libVersion = version + "-wc-luzmo";
|
|
1445
1463
|
this.remoteEntryServer = "http://localhost:4202";
|
|
1446
1464
|
}
|
|
1465
|
+
static {
|
|
1466
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1467
|
+
this.styles = css4`
|
|
1468
|
+
:host {
|
|
1469
|
+
display: block;
|
|
1470
|
+
width: 100%;
|
|
1471
|
+
height: 100%;
|
|
1472
|
+
}
|
|
1473
|
+
`;
|
|
1474
|
+
}
|
|
1447
1475
|
createRenderRoot() {
|
|
1448
1476
|
return this;
|
|
1449
1477
|
}
|
|
@@ -1494,14 +1522,6 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
|
|
|
1494
1522
|
return html4` `;
|
|
1495
1523
|
}
|
|
1496
1524
|
};
|
|
1497
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1498
|
-
LuzmoIQEmbedAnswerComponent.styles = css4`
|
|
1499
|
-
:host {
|
|
1500
|
-
display: block;
|
|
1501
|
-
width: 100%;
|
|
1502
|
-
height: 100%;
|
|
1503
|
-
}
|
|
1504
|
-
`;
|
|
1505
1525
|
__decorateClass([
|
|
1506
1526
|
property4()
|
|
1507
1527
|
], 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,6 +6263,22 @@ var LuzmoBaseVizItem = class extends i4 {
|
|
|
6241
6263
|
this.libVersion = version + "-wc-luzmo";
|
|
6242
6264
|
this.postInitCallQueue = [];
|
|
6243
6265
|
}
|
|
6266
|
+
static {
|
|
6267
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
6268
|
+
this.styles = i`
|
|
6269
|
+
:host {
|
|
6270
|
+
display: block;
|
|
6271
|
+
width: 100%;
|
|
6272
|
+
height: 100%;
|
|
6273
|
+
}
|
|
6274
|
+
|
|
6275
|
+
luzmo-embed-viz-item {
|
|
6276
|
+
width: 100%;
|
|
6277
|
+
height: 1000%;
|
|
6278
|
+
display: block;
|
|
6279
|
+
}
|
|
6280
|
+
`;
|
|
6281
|
+
}
|
|
6244
6282
|
createRenderRoot() {
|
|
6245
6283
|
if (!this.style.display) {
|
|
6246
6284
|
this.style.display = "block";
|
|
@@ -6348,23 +6386,9 @@ var LuzmoBaseVizItem = class extends i4 {
|
|
|
6348
6386
|
}
|
|
6349
6387
|
}
|
|
6350
6388
|
render() {
|
|
6351
|
-
return
|
|
6389
|
+
return b2` `;
|
|
6352
6390
|
}
|
|
6353
6391
|
};
|
|
6354
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
6355
|
-
LuzmoBaseVizItem.styles = i`
|
|
6356
|
-
:host {
|
|
6357
|
-
display: block;
|
|
6358
|
-
width: 100%;
|
|
6359
|
-
height: 100%;
|
|
6360
|
-
}
|
|
6361
|
-
|
|
6362
|
-
luzmo-embed-viz-item {
|
|
6363
|
-
width: 100%;
|
|
6364
|
-
height: 1000%;
|
|
6365
|
-
display: block;
|
|
6366
|
-
}
|
|
6367
|
-
`;
|
|
6368
6392
|
__decorateClass([
|
|
6369
6393
|
n4()
|
|
6370
6394
|
], LuzmoBaseVizItem.prototype, "appServer", 2);
|
|
@@ -6455,6 +6479,16 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
|
|
|
6455
6479
|
this.remoteEntryServer = "http://localhost:4202/";
|
|
6456
6480
|
this.aydHost = "https://ayd.luzmo.com/";
|
|
6457
6481
|
}
|
|
6482
|
+
static {
|
|
6483
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
6484
|
+
this.styles = i`
|
|
6485
|
+
:host {
|
|
6486
|
+
display: block;
|
|
6487
|
+
width: 100%;
|
|
6488
|
+
height: 100%;
|
|
6489
|
+
}
|
|
6490
|
+
`;
|
|
6491
|
+
}
|
|
6458
6492
|
createRenderRoot() {
|
|
6459
6493
|
return this;
|
|
6460
6494
|
}
|
|
@@ -6501,7 +6535,7 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
|
|
|
6501
6535
|
}
|
|
6502
6536
|
}
|
|
6503
6537
|
render() {
|
|
6504
|
-
return
|
|
6538
|
+
return b2``;
|
|
6505
6539
|
}
|
|
6506
6540
|
connectedCallback() {
|
|
6507
6541
|
super.connectedCallback();
|
|
@@ -6523,14 +6557,6 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
|
|
|
6523
6557
|
observer.observe(embedChat, { childList: true, subtree: true });
|
|
6524
6558
|
}
|
|
6525
6559
|
};
|
|
6526
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
6527
|
-
LuzmoIQEmbedChatComponent.styles = i`
|
|
6528
|
-
:host {
|
|
6529
|
-
display: block;
|
|
6530
|
-
width: 100%;
|
|
6531
|
-
height: 100%;
|
|
6532
|
-
}
|
|
6533
|
-
`;
|
|
6534
6560
|
__decorateClass([
|
|
6535
6561
|
n4()
|
|
6536
6562
|
], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
|
|
@@ -6593,6 +6619,16 @@ var LuzmoIQEmbedAnswerComponent = class extends i4 {
|
|
|
6593
6619
|
this.libVersion = version + "-wc-luzmo";
|
|
6594
6620
|
this.remoteEntryServer = "http://localhost:4202";
|
|
6595
6621
|
}
|
|
6622
|
+
static {
|
|
6623
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
6624
|
+
this.styles = i`
|
|
6625
|
+
:host {
|
|
6626
|
+
display: block;
|
|
6627
|
+
width: 100%;
|
|
6628
|
+
height: 100%;
|
|
6629
|
+
}
|
|
6630
|
+
`;
|
|
6631
|
+
}
|
|
6596
6632
|
createRenderRoot() {
|
|
6597
6633
|
return this;
|
|
6598
6634
|
}
|
|
@@ -6640,17 +6676,9 @@ var LuzmoIQEmbedAnswerComponent = class extends i4 {
|
|
|
6640
6676
|
}
|
|
6641
6677
|
}
|
|
6642
6678
|
render() {
|
|
6643
|
-
return
|
|
6679
|
+
return b2` `;
|
|
6644
6680
|
}
|
|
6645
6681
|
};
|
|
6646
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
6647
|
-
LuzmoIQEmbedAnswerComponent.styles = i`
|
|
6648
|
-
:host {
|
|
6649
|
-
display: block;
|
|
6650
|
-
width: 100%;
|
|
6651
|
-
height: 100%;
|
|
6652
|
-
}
|
|
6653
|
-
`;
|
|
6654
6682
|
__decorateClass([
|
|
6655
6683
|
n4()
|
|
6656
6684
|
], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
|
package/package.json
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luzmo/embed",
|
|
3
|
-
"version": "6.13.
|
|
3
|
+
"version": "6.13.1",
|
|
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",
|
|
11
9
|
"es6",
|
|
12
10
|
"web-component",
|
|
13
11
|
"lit",
|
|
@@ -23,9 +21,5 @@
|
|
|
23
21
|
],
|
|
24
22
|
"module": "./index.js",
|
|
25
23
|
"types": "./src/index.d.ts",
|
|
26
|
-
"license": "SEE LICENSE IN LICENSE"
|
|
27
|
-
"description": "ES2021 build for Safari < 16.3 compatibility",
|
|
28
|
-
"publishConfig": {
|
|
29
|
-
"tag": "es2021"
|
|
30
|
-
}
|
|
24
|
+
"license": "SEE LICENSE IN LICENSE"
|
|
31
25
|
}
|
|
@@ -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;
|