@luzmo/embed 6.13.0 → 6.13.2-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 +10 -0
- package/index.cjs +76 -70
- package/index.js +75 -69
- package/luzmo-embed.min.js +1032 -467
- package/package.json +9 -3
- package/src/lib/dashboard/dashboard-base.d.ts +1 -0
- package/src/lib/viz-item/viz-item.base.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project are documented in this file.
|
|
4
4
|
|
|
5
|
+
## [6.13.2] - 2026-05-25
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- Updated `@luzmo/shared-embed` to `5.12.1`, which reuses the host page's existing Module Federation runtime instead of creating a siloed private instance. Fixes NG0201 / NG0203 DI errors when a Luzmo remote (e.g. iq-app, dashboard-app) is loaded into a host that already has its own MF runtime.
|
|
9
|
+
|
|
10
|
+
## [6.13.1] - 2026-05-13
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- Properly initialized dashboard webcomponent.
|
|
14
|
+
|
|
5
15
|
## [6.13.0] - 2026-03-30
|
|
6
16
|
|
|
7
17
|
### 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.2";
|
|
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>
|
|
@@ -1108,14 +1122,12 @@ if (!customElements.get("luzmo-embed-dashboard")) {
|
|
|
1108
1122
|
customElements.define("luzmo-embed-dashboard", LuzmoEmbedDashboard);
|
|
1109
1123
|
}
|
|
1110
1124
|
|
|
1111
|
-
// libs/dashboard-contents-types/src/lib/shared/version.ts
|
|
1112
|
-
var CONTENTS_VERSION = "0.1.99";
|
|
1113
|
-
|
|
1114
1125
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item.base.ts
|
|
1126
|
+
var import_dashboard_contents_types = require("@luzmo/dashboard-contents-types");
|
|
1115
1127
|
var SharedLib3 = __toESM(require("@luzmo/shared-embed"));
|
|
1116
1128
|
var import_lit3 = require("lit");
|
|
1117
1129
|
var import_decorators2 = require("lit/decorators.js");
|
|
1118
|
-
var dashboardContentsVersion = CONTENTS_VERSION;
|
|
1130
|
+
var dashboardContentsVersion = import_dashboard_contents_types.CONTENTS_VERSION;
|
|
1119
1131
|
var vizItemRemote = "VizItemApp";
|
|
1120
1132
|
var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
1121
1133
|
constructor() {
|
|
@@ -1128,22 +1140,6 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1128
1140
|
this.libVersion = version + "-wc-luzmo";
|
|
1129
1141
|
this.postInitCallQueue = [];
|
|
1130
1142
|
}
|
|
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
1143
|
createRenderRoot() {
|
|
1148
1144
|
if (!this.style.display) {
|
|
1149
1145
|
this.style.display = "block";
|
|
@@ -1254,6 +1250,20 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1254
1250
|
return import_lit3.html` `;
|
|
1255
1251
|
}
|
|
1256
1252
|
};
|
|
1253
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1254
|
+
LuzmoBaseVizItem.styles = import_lit3.css`
|
|
1255
|
+
:host {
|
|
1256
|
+
display: block;
|
|
1257
|
+
width: 100%;
|
|
1258
|
+
height: 100%;
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
luzmo-embed-viz-item {
|
|
1262
|
+
width: 100%;
|
|
1263
|
+
height: 1000%;
|
|
1264
|
+
display: block;
|
|
1265
|
+
}
|
|
1266
|
+
`;
|
|
1257
1267
|
__decorateClass([
|
|
1258
1268
|
(0, import_decorators2.property)()
|
|
1259
1269
|
], LuzmoBaseVizItem.prototype, "appServer", 2);
|
|
@@ -1347,16 +1357,6 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
|
|
|
1347
1357
|
this.remoteEntryServer = "http://localhost:4202/";
|
|
1348
1358
|
this.aydHost = "https://ayd.luzmo.com/";
|
|
1349
1359
|
}
|
|
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
1360
|
createRenderRoot() {
|
|
1361
1361
|
return this;
|
|
1362
1362
|
}
|
|
@@ -1425,6 +1425,14 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
|
|
|
1425
1425
|
observer.observe(embedChat, { childList: true, subtree: true });
|
|
1426
1426
|
}
|
|
1427
1427
|
};
|
|
1428
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1429
|
+
LuzmoIQEmbedChatComponent.styles = import_lit4.css`
|
|
1430
|
+
:host {
|
|
1431
|
+
display: block;
|
|
1432
|
+
width: 100%;
|
|
1433
|
+
height: 100%;
|
|
1434
|
+
}
|
|
1435
|
+
`;
|
|
1428
1436
|
__decorateClass([
|
|
1429
1437
|
(0, import_decorators3.property)()
|
|
1430
1438
|
], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
|
|
@@ -1490,16 +1498,6 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
|
|
|
1490
1498
|
this.libVersion = version + "-wc-luzmo";
|
|
1491
1499
|
this.remoteEntryServer = "http://localhost:4202";
|
|
1492
1500
|
}
|
|
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
1501
|
createRenderRoot() {
|
|
1504
1502
|
return this;
|
|
1505
1503
|
}
|
|
@@ -1550,6 +1548,14 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
|
|
|
1550
1548
|
return import_lit5.html` `;
|
|
1551
1549
|
}
|
|
1552
1550
|
};
|
|
1551
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1552
|
+
LuzmoIQEmbedAnswerComponent.styles = import_lit5.css`
|
|
1553
|
+
:host {
|
|
1554
|
+
display: block;
|
|
1555
|
+
width: 100%;
|
|
1556
|
+
height: 100%;
|
|
1557
|
+
}
|
|
1558
|
+
`;
|
|
1553
1559
|
__decorateClass([
|
|
1554
1560
|
(0, import_decorators4.property)()
|
|
1555
1561
|
], 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.2";
|
|
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>
|
|
@@ -1066,10 +1080,8 @@ if (!customElements.get("luzmo-embed-dashboard")) {
|
|
|
1066
1080
|
customElements.define("luzmo-embed-dashboard", LuzmoEmbedDashboard);
|
|
1067
1081
|
}
|
|
1068
1082
|
|
|
1069
|
-
// libs/dashboard-contents-types/src/lib/shared/version.ts
|
|
1070
|
-
var CONTENTS_VERSION = "0.1.99";
|
|
1071
|
-
|
|
1072
1083
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item.base.ts
|
|
1084
|
+
import { CONTENTS_VERSION } from "@luzmo/dashboard-contents-types";
|
|
1073
1085
|
import * as SharedLib3 from "@luzmo/shared-embed";
|
|
1074
1086
|
import { css as css2, html as html2, LitElement as LitElement2 } from "lit";
|
|
1075
1087
|
import { property as property2 } from "lit/decorators.js";
|
|
@@ -1086,22 +1098,6 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1086
1098
|
this.libVersion = version + "-wc-luzmo";
|
|
1087
1099
|
this.postInitCallQueue = [];
|
|
1088
1100
|
}
|
|
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
1101
|
createRenderRoot() {
|
|
1106
1102
|
if (!this.style.display) {
|
|
1107
1103
|
this.style.display = "block";
|
|
@@ -1212,6 +1208,20 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1212
1208
|
return html2` `;
|
|
1213
1209
|
}
|
|
1214
1210
|
};
|
|
1211
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1212
|
+
LuzmoBaseVizItem.styles = css2`
|
|
1213
|
+
:host {
|
|
1214
|
+
display: block;
|
|
1215
|
+
width: 100%;
|
|
1216
|
+
height: 100%;
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
luzmo-embed-viz-item {
|
|
1220
|
+
width: 100%;
|
|
1221
|
+
height: 1000%;
|
|
1222
|
+
display: block;
|
|
1223
|
+
}
|
|
1224
|
+
`;
|
|
1215
1225
|
__decorateClass([
|
|
1216
1226
|
property2()
|
|
1217
1227
|
], LuzmoBaseVizItem.prototype, "appServer", 2);
|
|
@@ -1305,16 +1315,6 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
|
|
|
1305
1315
|
this.remoteEntryServer = "http://localhost:4202/";
|
|
1306
1316
|
this.aydHost = "https://ayd.luzmo.com/";
|
|
1307
1317
|
}
|
|
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
1318
|
createRenderRoot() {
|
|
1319
1319
|
return this;
|
|
1320
1320
|
}
|
|
@@ -1383,6 +1383,14 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
|
|
|
1383
1383
|
observer.observe(embedChat, { childList: true, subtree: true });
|
|
1384
1384
|
}
|
|
1385
1385
|
};
|
|
1386
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1387
|
+
LuzmoIQEmbedChatComponent.styles = css3`
|
|
1388
|
+
:host {
|
|
1389
|
+
display: block;
|
|
1390
|
+
width: 100%;
|
|
1391
|
+
height: 100%;
|
|
1392
|
+
}
|
|
1393
|
+
`;
|
|
1386
1394
|
__decorateClass([
|
|
1387
1395
|
property3()
|
|
1388
1396
|
], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
|
|
@@ -1448,16 +1456,6 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
|
|
|
1448
1456
|
this.libVersion = version + "-wc-luzmo";
|
|
1449
1457
|
this.remoteEntryServer = "http://localhost:4202";
|
|
1450
1458
|
}
|
|
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
1459
|
createRenderRoot() {
|
|
1462
1460
|
return this;
|
|
1463
1461
|
}
|
|
@@ -1508,6 +1506,14 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
|
|
|
1508
1506
|
return html4` `;
|
|
1509
1507
|
}
|
|
1510
1508
|
};
|
|
1509
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1510
|
+
LuzmoIQEmbedAnswerComponent.styles = css4`
|
|
1511
|
+
:host {
|
|
1512
|
+
display: block;
|
|
1513
|
+
width: 100%;
|
|
1514
|
+
height: 100%;
|
|
1515
|
+
}
|
|
1516
|
+
`;
|
|
1511
1517
|
__decorateClass([
|
|
1512
1518
|
property4()
|
|
1513
1519
|
], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
|