@luzmo/embed 5.1.4 → 5.1.5
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 +6 -0
- package/index.cjs +16 -42
- package/index.js +16 -42
- package/index.libs.cjs +16 -42
- package/index.libs.js +16 -42
- package/lib/dashboard-component/dashboard-base.d.ts +2 -2
- package/luzmo-embed.libs.js +16 -42
- package/luzmo-embed.min.js +16 -42
- package/package.json +1 -1
- package/src/lib/dashboard-component/dashboard-base.d.ts +2 -2
package/CHANGELOG.md
CHANGED
package/index.cjs
CHANGED
|
@@ -55,7 +55,7 @@ var import_style_map = require("lit/directives/style-map.js");
|
|
|
55
55
|
var import_shared_embed = require("@luzmo/shared-embed");
|
|
56
56
|
|
|
57
57
|
// libs/embed-libs/embed/package.json
|
|
58
|
-
var version = "5.1.
|
|
58
|
+
var version = "5.1.5";
|
|
59
59
|
|
|
60
60
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
61
61
|
var LuzmoService = class {
|
|
@@ -341,7 +341,7 @@ var dashboardStyles = import_lit.css`
|
|
|
341
341
|
|
|
342
342
|
// libs/embed-libs/embed/src/lib/dashboard-component/dashboard-base.ts
|
|
343
343
|
var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
344
|
-
constructor(
|
|
344
|
+
constructor() {
|
|
345
345
|
super();
|
|
346
346
|
this.language = "auto";
|
|
347
347
|
this.screenMode = "auto";
|
|
@@ -364,6 +364,7 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
364
364
|
this.isLibraryLoaded = false;
|
|
365
365
|
this.currentAuthKey = null;
|
|
366
366
|
this.currentAuthToken = null;
|
|
367
|
+
this.isInitCalled = false;
|
|
367
368
|
this.attributesMap = {
|
|
368
369
|
dashboardId: "dashboard-id",
|
|
369
370
|
dashboardSlug: "dashboard-slug",
|
|
@@ -393,7 +394,6 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
393
394
|
this._iframeId = `luzmo-dashboard-${this._containerId}`;
|
|
394
395
|
this.iframeLoaded = false;
|
|
395
396
|
this.promises = {};
|
|
396
|
-
this.setInputParameters(inputParameters);
|
|
397
397
|
this.params = this._setOptions();
|
|
398
398
|
this._onResize = () => {
|
|
399
399
|
if (this.shadowRoot?.querySelector(".dashboard-container")) {
|
|
@@ -440,44 +440,6 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
440
440
|
return wrappedModule;
|
|
441
441
|
});
|
|
442
442
|
}
|
|
443
|
-
setInputParameters(inputParameters) {
|
|
444
|
-
if (!inputParameters) {
|
|
445
|
-
return;
|
|
446
|
-
}
|
|
447
|
-
const params = [
|
|
448
|
-
"dashboardId",
|
|
449
|
-
"dashboardSlug",
|
|
450
|
-
"itemId",
|
|
451
|
-
"language",
|
|
452
|
-
"qeVersion",
|
|
453
|
-
"screenMode",
|
|
454
|
-
"switchScreenModeOnResize",
|
|
455
|
-
"accentColor",
|
|
456
|
-
"mainColor",
|
|
457
|
-
"authToken",
|
|
458
|
-
"authKey",
|
|
459
|
-
"editMode",
|
|
460
|
-
"loaderBackground",
|
|
461
|
-
"loaderFontColor",
|
|
462
|
-
"loaderSpinnerColor",
|
|
463
|
-
"loaderSpinnerBackground",
|
|
464
|
-
"timezoneId",
|
|
465
|
-
"itemDimensions",
|
|
466
|
-
"apiHost"
|
|
467
|
-
];
|
|
468
|
-
for (const key of params) {
|
|
469
|
-
const value = inputParameters[key];
|
|
470
|
-
if (value) {
|
|
471
|
-
this[key] = value;
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
if (inputParameters.experimental) {
|
|
475
|
-
this.experimental = inputParameters.experimental;
|
|
476
|
-
}
|
|
477
|
-
if (inputParameters.appServer) {
|
|
478
|
-
this.appServer = SharedLib2.addTrailingSlash(inputParameters.appServer);
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
443
|
// Set resize event listener
|
|
482
444
|
connectedCallback() {
|
|
483
445
|
super.connectedCallback();
|
|
@@ -496,7 +458,6 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
496
458
|
this._loaderMsg = SharedLib2.getLoader(this)?.loadingMsg;
|
|
497
459
|
this._loaderStyles();
|
|
498
460
|
luzmo_service_default._components.push(this);
|
|
499
|
-
this.initComponent();
|
|
500
461
|
if (this.luzmoEmbedContainer) {
|
|
501
462
|
this._resizeObserver.observe(this.luzmoEmbedContainer);
|
|
502
463
|
}
|
|
@@ -576,6 +537,16 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
576
537
|
"timezoneId",
|
|
577
538
|
"itemDimensions"
|
|
578
539
|
]);
|
|
540
|
+
const conditionsToCheck = ["dashboardId", "dashboardSlug", "itemId"];
|
|
541
|
+
let callInitComponent = false;
|
|
542
|
+
for (const condition of conditionsToCheck) {
|
|
543
|
+
callInitComponent = callInitComponent || changedProperties.get(condition) === void 0 && this[condition] !== void 0;
|
|
544
|
+
}
|
|
545
|
+
if (callInitComponent && !this.isInitCalled) {
|
|
546
|
+
this.initComponent();
|
|
547
|
+
this.isInitCalled = true;
|
|
548
|
+
return;
|
|
549
|
+
}
|
|
579
550
|
if (this.getIsViewMode()) {
|
|
580
551
|
if (this.dashboardReference) {
|
|
581
552
|
for (const [propertyName] of changedProperties.entries()) {
|
|
@@ -1092,6 +1063,9 @@ __decorateClass([
|
|
|
1092
1063
|
__decorateClass([
|
|
1093
1064
|
(0, import_decorators.state)()
|
|
1094
1065
|
], LuzmoDashboard.prototype, "currentAuthToken", 2);
|
|
1066
|
+
__decorateClass([
|
|
1067
|
+
(0, import_decorators.state)()
|
|
1068
|
+
], LuzmoDashboard.prototype, "isInitCalled", 2);
|
|
1095
1069
|
|
|
1096
1070
|
// libs/embed-libs/embed/src/lib/dashboard-component/dashboard-component.ts
|
|
1097
1071
|
var LuzmoDashboard2 = class extends LuzmoDashboard {
|
package/index.js
CHANGED
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
} from "@luzmo/shared-embed";
|
|
38
38
|
|
|
39
39
|
// libs/embed-libs/embed/package.json
|
|
40
|
-
var version = "5.1.
|
|
40
|
+
var version = "5.1.5";
|
|
41
41
|
|
|
42
42
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
43
43
|
var LuzmoService = class {
|
|
@@ -323,7 +323,7 @@ var dashboardStyles = css`
|
|
|
323
323
|
|
|
324
324
|
// libs/embed-libs/embed/src/lib/dashboard-component/dashboard-base.ts
|
|
325
325
|
var LuzmoDashboard = class extends LitElement {
|
|
326
|
-
constructor(
|
|
326
|
+
constructor() {
|
|
327
327
|
super();
|
|
328
328
|
this.language = "auto";
|
|
329
329
|
this.screenMode = "auto";
|
|
@@ -346,6 +346,7 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
346
346
|
this.isLibraryLoaded = false;
|
|
347
347
|
this.currentAuthKey = null;
|
|
348
348
|
this.currentAuthToken = null;
|
|
349
|
+
this.isInitCalled = false;
|
|
349
350
|
this.attributesMap = {
|
|
350
351
|
dashboardId: "dashboard-id",
|
|
351
352
|
dashboardSlug: "dashboard-slug",
|
|
@@ -375,7 +376,6 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
375
376
|
this._iframeId = `luzmo-dashboard-${this._containerId}`;
|
|
376
377
|
this.iframeLoaded = false;
|
|
377
378
|
this.promises = {};
|
|
378
|
-
this.setInputParameters(inputParameters);
|
|
379
379
|
this.params = this._setOptions();
|
|
380
380
|
this._onResize = () => {
|
|
381
381
|
if (this.shadowRoot?.querySelector(".dashboard-container")) {
|
|
@@ -422,44 +422,6 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
422
422
|
return wrappedModule;
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
|
-
setInputParameters(inputParameters) {
|
|
426
|
-
if (!inputParameters) {
|
|
427
|
-
return;
|
|
428
|
-
}
|
|
429
|
-
const params = [
|
|
430
|
-
"dashboardId",
|
|
431
|
-
"dashboardSlug",
|
|
432
|
-
"itemId",
|
|
433
|
-
"language",
|
|
434
|
-
"qeVersion",
|
|
435
|
-
"screenMode",
|
|
436
|
-
"switchScreenModeOnResize",
|
|
437
|
-
"accentColor",
|
|
438
|
-
"mainColor",
|
|
439
|
-
"authToken",
|
|
440
|
-
"authKey",
|
|
441
|
-
"editMode",
|
|
442
|
-
"loaderBackground",
|
|
443
|
-
"loaderFontColor",
|
|
444
|
-
"loaderSpinnerColor",
|
|
445
|
-
"loaderSpinnerBackground",
|
|
446
|
-
"timezoneId",
|
|
447
|
-
"itemDimensions",
|
|
448
|
-
"apiHost"
|
|
449
|
-
];
|
|
450
|
-
for (const key of params) {
|
|
451
|
-
const value = inputParameters[key];
|
|
452
|
-
if (value) {
|
|
453
|
-
this[key] = value;
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
if (inputParameters.experimental) {
|
|
457
|
-
this.experimental = inputParameters.experimental;
|
|
458
|
-
}
|
|
459
|
-
if (inputParameters.appServer) {
|
|
460
|
-
this.appServer = SharedLib2.addTrailingSlash(inputParameters.appServer);
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
425
|
// Set resize event listener
|
|
464
426
|
connectedCallback() {
|
|
465
427
|
super.connectedCallback();
|
|
@@ -478,7 +440,6 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
478
440
|
this._loaderMsg = SharedLib2.getLoader(this)?.loadingMsg;
|
|
479
441
|
this._loaderStyles();
|
|
480
442
|
luzmo_service_default._components.push(this);
|
|
481
|
-
this.initComponent();
|
|
482
443
|
if (this.luzmoEmbedContainer) {
|
|
483
444
|
this._resizeObserver.observe(this.luzmoEmbedContainer);
|
|
484
445
|
}
|
|
@@ -558,6 +519,16 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
558
519
|
"timezoneId",
|
|
559
520
|
"itemDimensions"
|
|
560
521
|
]);
|
|
522
|
+
const conditionsToCheck = ["dashboardId", "dashboardSlug", "itemId"];
|
|
523
|
+
let callInitComponent = false;
|
|
524
|
+
for (const condition of conditionsToCheck) {
|
|
525
|
+
callInitComponent = callInitComponent || changedProperties.get(condition) === void 0 && this[condition] !== void 0;
|
|
526
|
+
}
|
|
527
|
+
if (callInitComponent && !this.isInitCalled) {
|
|
528
|
+
this.initComponent();
|
|
529
|
+
this.isInitCalled = true;
|
|
530
|
+
return;
|
|
531
|
+
}
|
|
561
532
|
if (this.getIsViewMode()) {
|
|
562
533
|
if (this.dashboardReference) {
|
|
563
534
|
for (const [propertyName] of changedProperties.entries()) {
|
|
@@ -1074,6 +1045,9 @@ __decorateClass([
|
|
|
1074
1045
|
__decorateClass([
|
|
1075
1046
|
state()
|
|
1076
1047
|
], LuzmoDashboard.prototype, "currentAuthToken", 2);
|
|
1048
|
+
__decorateClass([
|
|
1049
|
+
state()
|
|
1050
|
+
], LuzmoDashboard.prototype, "isInitCalled", 2);
|
|
1077
1051
|
|
|
1078
1052
|
// libs/embed-libs/embed/src/lib/dashboard-component/dashboard-component.ts
|
|
1079
1053
|
var LuzmoDashboard2 = class extends LuzmoDashboard {
|
package/index.libs.cjs
CHANGED
|
@@ -54,7 +54,7 @@ var import_style_map = require("lit/directives/style-map.js");
|
|
|
54
54
|
var import_shared_embed = require("@luzmo/shared-embed");
|
|
55
55
|
|
|
56
56
|
// libs/embed-libs/embed/package.json
|
|
57
|
-
var version = "5.1.
|
|
57
|
+
var version = "5.1.5";
|
|
58
58
|
|
|
59
59
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
60
60
|
var LuzmoService = class {
|
|
@@ -340,7 +340,7 @@ var dashboardStyles = import_lit.css`
|
|
|
340
340
|
|
|
341
341
|
// libs/embed-libs/embed/src/lib/dashboard-component/dashboard-base.ts
|
|
342
342
|
var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
343
|
-
constructor(
|
|
343
|
+
constructor() {
|
|
344
344
|
super();
|
|
345
345
|
this.language = "auto";
|
|
346
346
|
this.screenMode = "auto";
|
|
@@ -363,6 +363,7 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
363
363
|
this.isLibraryLoaded = false;
|
|
364
364
|
this.currentAuthKey = null;
|
|
365
365
|
this.currentAuthToken = null;
|
|
366
|
+
this.isInitCalled = false;
|
|
366
367
|
this.attributesMap = {
|
|
367
368
|
dashboardId: "dashboard-id",
|
|
368
369
|
dashboardSlug: "dashboard-slug",
|
|
@@ -392,7 +393,6 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
392
393
|
this._iframeId = `luzmo-dashboard-${this._containerId}`;
|
|
393
394
|
this.iframeLoaded = false;
|
|
394
395
|
this.promises = {};
|
|
395
|
-
this.setInputParameters(inputParameters);
|
|
396
396
|
this.params = this._setOptions();
|
|
397
397
|
this._onResize = () => {
|
|
398
398
|
if (this.shadowRoot?.querySelector(".dashboard-container")) {
|
|
@@ -439,44 +439,6 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
439
439
|
return wrappedModule;
|
|
440
440
|
});
|
|
441
441
|
}
|
|
442
|
-
setInputParameters(inputParameters) {
|
|
443
|
-
if (!inputParameters) {
|
|
444
|
-
return;
|
|
445
|
-
}
|
|
446
|
-
const params = [
|
|
447
|
-
"dashboardId",
|
|
448
|
-
"dashboardSlug",
|
|
449
|
-
"itemId",
|
|
450
|
-
"language",
|
|
451
|
-
"qeVersion",
|
|
452
|
-
"screenMode",
|
|
453
|
-
"switchScreenModeOnResize",
|
|
454
|
-
"accentColor",
|
|
455
|
-
"mainColor",
|
|
456
|
-
"authToken",
|
|
457
|
-
"authKey",
|
|
458
|
-
"editMode",
|
|
459
|
-
"loaderBackground",
|
|
460
|
-
"loaderFontColor",
|
|
461
|
-
"loaderSpinnerColor",
|
|
462
|
-
"loaderSpinnerBackground",
|
|
463
|
-
"timezoneId",
|
|
464
|
-
"itemDimensions",
|
|
465
|
-
"apiHost"
|
|
466
|
-
];
|
|
467
|
-
for (const key of params) {
|
|
468
|
-
const value = inputParameters[key];
|
|
469
|
-
if (value) {
|
|
470
|
-
this[key] = value;
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
if (inputParameters.experimental) {
|
|
474
|
-
this.experimental = inputParameters.experimental;
|
|
475
|
-
}
|
|
476
|
-
if (inputParameters.appServer) {
|
|
477
|
-
this.appServer = SharedLib2.addTrailingSlash(inputParameters.appServer);
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
442
|
// Set resize event listener
|
|
481
443
|
connectedCallback() {
|
|
482
444
|
super.connectedCallback();
|
|
@@ -495,7 +457,6 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
495
457
|
this._loaderMsg = SharedLib2.getLoader(this)?.loadingMsg;
|
|
496
458
|
this._loaderStyles();
|
|
497
459
|
luzmo_service_default._components.push(this);
|
|
498
|
-
this.initComponent();
|
|
499
460
|
if (this.luzmoEmbedContainer) {
|
|
500
461
|
this._resizeObserver.observe(this.luzmoEmbedContainer);
|
|
501
462
|
}
|
|
@@ -575,6 +536,16 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
575
536
|
"timezoneId",
|
|
576
537
|
"itemDimensions"
|
|
577
538
|
]);
|
|
539
|
+
const conditionsToCheck = ["dashboardId", "dashboardSlug", "itemId"];
|
|
540
|
+
let callInitComponent = false;
|
|
541
|
+
for (const condition of conditionsToCheck) {
|
|
542
|
+
callInitComponent = callInitComponent || changedProperties.get(condition) === void 0 && this[condition] !== void 0;
|
|
543
|
+
}
|
|
544
|
+
if (callInitComponent && !this.isInitCalled) {
|
|
545
|
+
this.initComponent();
|
|
546
|
+
this.isInitCalled = true;
|
|
547
|
+
return;
|
|
548
|
+
}
|
|
578
549
|
if (this.getIsViewMode()) {
|
|
579
550
|
if (this.dashboardReference) {
|
|
580
551
|
for (const [propertyName] of changedProperties.entries()) {
|
|
@@ -1091,6 +1062,9 @@ __decorateClass([
|
|
|
1091
1062
|
__decorateClass([
|
|
1092
1063
|
(0, import_decorators.state)()
|
|
1093
1064
|
], LuzmoDashboard.prototype, "currentAuthToken", 2);
|
|
1065
|
+
__decorateClass([
|
|
1066
|
+
(0, import_decorators.state)()
|
|
1067
|
+
], LuzmoDashboard.prototype, "isInitCalled", 2);
|
|
1094
1068
|
|
|
1095
1069
|
// libs/embed-libs/embed/src/lib/dashboard-component/dashboard-web-component.ts
|
|
1096
1070
|
var LuzmoDashboardWebComponent = class extends LuzmoDashboard {
|
package/index.libs.js
CHANGED
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
} from "@luzmo/shared-embed";
|
|
36
36
|
|
|
37
37
|
// libs/embed-libs/embed/package.json
|
|
38
|
-
var version = "5.1.
|
|
38
|
+
var version = "5.1.5";
|
|
39
39
|
|
|
40
40
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
41
41
|
var LuzmoService = class {
|
|
@@ -321,7 +321,7 @@ var dashboardStyles = css`
|
|
|
321
321
|
|
|
322
322
|
// libs/embed-libs/embed/src/lib/dashboard-component/dashboard-base.ts
|
|
323
323
|
var LuzmoDashboard = class extends LitElement {
|
|
324
|
-
constructor(
|
|
324
|
+
constructor() {
|
|
325
325
|
super();
|
|
326
326
|
this.language = "auto";
|
|
327
327
|
this.screenMode = "auto";
|
|
@@ -344,6 +344,7 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
344
344
|
this.isLibraryLoaded = false;
|
|
345
345
|
this.currentAuthKey = null;
|
|
346
346
|
this.currentAuthToken = null;
|
|
347
|
+
this.isInitCalled = false;
|
|
347
348
|
this.attributesMap = {
|
|
348
349
|
dashboardId: "dashboard-id",
|
|
349
350
|
dashboardSlug: "dashboard-slug",
|
|
@@ -373,7 +374,6 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
373
374
|
this._iframeId = `luzmo-dashboard-${this._containerId}`;
|
|
374
375
|
this.iframeLoaded = false;
|
|
375
376
|
this.promises = {};
|
|
376
|
-
this.setInputParameters(inputParameters);
|
|
377
377
|
this.params = this._setOptions();
|
|
378
378
|
this._onResize = () => {
|
|
379
379
|
if (this.shadowRoot?.querySelector(".dashboard-container")) {
|
|
@@ -420,44 +420,6 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
420
420
|
return wrappedModule;
|
|
421
421
|
});
|
|
422
422
|
}
|
|
423
|
-
setInputParameters(inputParameters) {
|
|
424
|
-
if (!inputParameters) {
|
|
425
|
-
return;
|
|
426
|
-
}
|
|
427
|
-
const params = [
|
|
428
|
-
"dashboardId",
|
|
429
|
-
"dashboardSlug",
|
|
430
|
-
"itemId",
|
|
431
|
-
"language",
|
|
432
|
-
"qeVersion",
|
|
433
|
-
"screenMode",
|
|
434
|
-
"switchScreenModeOnResize",
|
|
435
|
-
"accentColor",
|
|
436
|
-
"mainColor",
|
|
437
|
-
"authToken",
|
|
438
|
-
"authKey",
|
|
439
|
-
"editMode",
|
|
440
|
-
"loaderBackground",
|
|
441
|
-
"loaderFontColor",
|
|
442
|
-
"loaderSpinnerColor",
|
|
443
|
-
"loaderSpinnerBackground",
|
|
444
|
-
"timezoneId",
|
|
445
|
-
"itemDimensions",
|
|
446
|
-
"apiHost"
|
|
447
|
-
];
|
|
448
|
-
for (const key of params) {
|
|
449
|
-
const value = inputParameters[key];
|
|
450
|
-
if (value) {
|
|
451
|
-
this[key] = value;
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
if (inputParameters.experimental) {
|
|
455
|
-
this.experimental = inputParameters.experimental;
|
|
456
|
-
}
|
|
457
|
-
if (inputParameters.appServer) {
|
|
458
|
-
this.appServer = SharedLib2.addTrailingSlash(inputParameters.appServer);
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
423
|
// Set resize event listener
|
|
462
424
|
connectedCallback() {
|
|
463
425
|
super.connectedCallback();
|
|
@@ -476,7 +438,6 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
476
438
|
this._loaderMsg = SharedLib2.getLoader(this)?.loadingMsg;
|
|
477
439
|
this._loaderStyles();
|
|
478
440
|
luzmo_service_default._components.push(this);
|
|
479
|
-
this.initComponent();
|
|
480
441
|
if (this.luzmoEmbedContainer) {
|
|
481
442
|
this._resizeObserver.observe(this.luzmoEmbedContainer);
|
|
482
443
|
}
|
|
@@ -556,6 +517,16 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
556
517
|
"timezoneId",
|
|
557
518
|
"itemDimensions"
|
|
558
519
|
]);
|
|
520
|
+
const conditionsToCheck = ["dashboardId", "dashboardSlug", "itemId"];
|
|
521
|
+
let callInitComponent = false;
|
|
522
|
+
for (const condition of conditionsToCheck) {
|
|
523
|
+
callInitComponent = callInitComponent || changedProperties.get(condition) === void 0 && this[condition] !== void 0;
|
|
524
|
+
}
|
|
525
|
+
if (callInitComponent && !this.isInitCalled) {
|
|
526
|
+
this.initComponent();
|
|
527
|
+
this.isInitCalled = true;
|
|
528
|
+
return;
|
|
529
|
+
}
|
|
559
530
|
if (this.getIsViewMode()) {
|
|
560
531
|
if (this.dashboardReference) {
|
|
561
532
|
for (const [propertyName] of changedProperties.entries()) {
|
|
@@ -1072,6 +1043,9 @@ __decorateClass([
|
|
|
1072
1043
|
__decorateClass([
|
|
1073
1044
|
state()
|
|
1074
1045
|
], LuzmoDashboard.prototype, "currentAuthToken", 2);
|
|
1046
|
+
__decorateClass([
|
|
1047
|
+
state()
|
|
1048
|
+
], LuzmoDashboard.prototype, "isInitCalled", 2);
|
|
1075
1049
|
|
|
1076
1050
|
// libs/embed-libs/embed/src/lib/dashboard-component/dashboard-web-component.ts
|
|
1077
1051
|
var LuzmoDashboardWebComponent = class extends LuzmoDashboard {
|
|
@@ -56,6 +56,7 @@ export declare class LuzmoDashboard extends LitElement implements SharedLib.ES6L
|
|
|
56
56
|
protected dashboardReference: SharedLib.LuzmoElement;
|
|
57
57
|
currentAuthKey: string;
|
|
58
58
|
currentAuthToken: string;
|
|
59
|
+
isInitCalled: boolean;
|
|
59
60
|
private attributesMap;
|
|
60
61
|
_loadTimeoutHandle?: number;
|
|
61
62
|
_onResize: () => void;
|
|
@@ -65,9 +66,8 @@ export declare class LuzmoDashboard extends LitElement implements SharedLib.ES6L
|
|
|
65
66
|
iframeHeight?: string;
|
|
66
67
|
iframeWidth?: string;
|
|
67
68
|
_resizeObserver: ResizeObserver;
|
|
68
|
-
constructor(
|
|
69
|
+
constructor();
|
|
69
70
|
private loadLibrary;
|
|
70
|
-
private setInputParameters;
|
|
71
71
|
connectedCallback(): void;
|
|
72
72
|
disconnectedCallback(): void;
|
|
73
73
|
firstUpdated(): void;
|
package/luzmo-embed.libs.js
CHANGED
|
@@ -1906,7 +1906,7 @@ var o5 = e6(class extends i4 {
|
|
|
1906
1906
|
});
|
|
1907
1907
|
|
|
1908
1908
|
// libs/embed-libs/embed/package.json
|
|
1909
|
-
var version = "5.1.
|
|
1909
|
+
var version = "5.1.5";
|
|
1910
1910
|
|
|
1911
1911
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
1912
1912
|
var LuzmoService = class {
|
|
@@ -2190,7 +2190,7 @@ var dashboardStyles = i`
|
|
|
2190
2190
|
|
|
2191
2191
|
// libs/embed-libs/embed/src/lib/dashboard-component/dashboard-base.ts
|
|
2192
2192
|
var LuzmoDashboard = class extends s3 {
|
|
2193
|
-
constructor(
|
|
2193
|
+
constructor() {
|
|
2194
2194
|
super();
|
|
2195
2195
|
this.language = "auto";
|
|
2196
2196
|
this.screenMode = "auto";
|
|
@@ -2213,6 +2213,7 @@ var LuzmoDashboard = class extends s3 {
|
|
|
2213
2213
|
this.isLibraryLoaded = false;
|
|
2214
2214
|
this.currentAuthKey = null;
|
|
2215
2215
|
this.currentAuthToken = null;
|
|
2216
|
+
this.isInitCalled = false;
|
|
2216
2217
|
this.attributesMap = {
|
|
2217
2218
|
dashboardId: "dashboard-id",
|
|
2218
2219
|
dashboardSlug: "dashboard-slug",
|
|
@@ -2242,7 +2243,6 @@ var LuzmoDashboard = class extends s3 {
|
|
|
2242
2243
|
this._iframeId = `luzmo-dashboard-${this._containerId}`;
|
|
2243
2244
|
this.iframeLoaded = false;
|
|
2244
2245
|
this.promises = {};
|
|
2245
|
-
this.setInputParameters(inputParameters);
|
|
2246
2246
|
this.params = this._setOptions();
|
|
2247
2247
|
this._onResize = () => {
|
|
2248
2248
|
if (this.shadowRoot?.querySelector(".dashboard-container")) {
|
|
@@ -2289,44 +2289,6 @@ var LuzmoDashboard = class extends s3 {
|
|
|
2289
2289
|
return wrappedModule;
|
|
2290
2290
|
});
|
|
2291
2291
|
}
|
|
2292
|
-
setInputParameters(inputParameters) {
|
|
2293
|
-
if (!inputParameters) {
|
|
2294
|
-
return;
|
|
2295
|
-
}
|
|
2296
|
-
const params = [
|
|
2297
|
-
"dashboardId",
|
|
2298
|
-
"dashboardSlug",
|
|
2299
|
-
"itemId",
|
|
2300
|
-
"language",
|
|
2301
|
-
"qeVersion",
|
|
2302
|
-
"screenMode",
|
|
2303
|
-
"switchScreenModeOnResize",
|
|
2304
|
-
"accentColor",
|
|
2305
|
-
"mainColor",
|
|
2306
|
-
"authToken",
|
|
2307
|
-
"authKey",
|
|
2308
|
-
"editMode",
|
|
2309
|
-
"loaderBackground",
|
|
2310
|
-
"loaderFontColor",
|
|
2311
|
-
"loaderSpinnerColor",
|
|
2312
|
-
"loaderSpinnerBackground",
|
|
2313
|
-
"timezoneId",
|
|
2314
|
-
"itemDimensions",
|
|
2315
|
-
"apiHost"
|
|
2316
|
-
];
|
|
2317
|
-
for (const key of params) {
|
|
2318
|
-
const value = inputParameters[key];
|
|
2319
|
-
if (value) {
|
|
2320
|
-
this[key] = value;
|
|
2321
|
-
}
|
|
2322
|
-
}
|
|
2323
|
-
if (inputParameters.experimental) {
|
|
2324
|
-
this.experimental = inputParameters.experimental;
|
|
2325
|
-
}
|
|
2326
|
-
if (inputParameters.appServer) {
|
|
2327
|
-
this.appServer = addTrailingSlash(inputParameters.appServer);
|
|
2328
|
-
}
|
|
2329
|
-
}
|
|
2330
2292
|
// Set resize event listener
|
|
2331
2293
|
connectedCallback() {
|
|
2332
2294
|
super.connectedCallback();
|
|
@@ -2345,7 +2307,6 @@ var LuzmoDashboard = class extends s3 {
|
|
|
2345
2307
|
this._loaderMsg = getLoader(this)?.loadingMsg;
|
|
2346
2308
|
this._loaderStyles();
|
|
2347
2309
|
luzmo_service_default._components.push(this);
|
|
2348
|
-
this.initComponent();
|
|
2349
2310
|
if (this.luzmoEmbedContainer) {
|
|
2350
2311
|
this._resizeObserver.observe(this.luzmoEmbedContainer);
|
|
2351
2312
|
}
|
|
@@ -2425,6 +2386,16 @@ var LuzmoDashboard = class extends s3 {
|
|
|
2425
2386
|
"timezoneId",
|
|
2426
2387
|
"itemDimensions"
|
|
2427
2388
|
]);
|
|
2389
|
+
const conditionsToCheck = ["dashboardId", "dashboardSlug", "itemId"];
|
|
2390
|
+
let callInitComponent = false;
|
|
2391
|
+
for (const condition of conditionsToCheck) {
|
|
2392
|
+
callInitComponent = callInitComponent || changedProperties.get(condition) === void 0 && this[condition] !== void 0;
|
|
2393
|
+
}
|
|
2394
|
+
if (callInitComponent && !this.isInitCalled) {
|
|
2395
|
+
this.initComponent();
|
|
2396
|
+
this.isInitCalled = true;
|
|
2397
|
+
return;
|
|
2398
|
+
}
|
|
2428
2399
|
if (this.getIsViewMode()) {
|
|
2429
2400
|
if (this.dashboardReference) {
|
|
2430
2401
|
for (const [propertyName] of changedProperties.entries()) {
|
|
@@ -2941,6 +2912,9 @@ __decorateClass([
|
|
|
2941
2912
|
__decorateClass([
|
|
2942
2913
|
r4()
|
|
2943
2914
|
], LuzmoDashboard.prototype, "currentAuthToken", 2);
|
|
2915
|
+
__decorateClass([
|
|
2916
|
+
r4()
|
|
2917
|
+
], LuzmoDashboard.prototype, "isInitCalled", 2);
|
|
2944
2918
|
|
|
2945
2919
|
// libs/embed-libs/embed/src/lib/dashboard-component/dashboard-web-component.ts
|
|
2946
2920
|
var LuzmoDashboardWebComponent = class extends LuzmoDashboard {
|
package/luzmo-embed.min.js
CHANGED
|
@@ -1907,7 +1907,7 @@ var o5 = e6(class extends i4 {
|
|
|
1907
1907
|
});
|
|
1908
1908
|
|
|
1909
1909
|
// libs/embed-libs/embed/package.json
|
|
1910
|
-
var version = "5.1.
|
|
1910
|
+
var version = "5.1.5";
|
|
1911
1911
|
|
|
1912
1912
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
1913
1913
|
var LuzmoService = class {
|
|
@@ -2191,7 +2191,7 @@ var dashboardStyles = i`
|
|
|
2191
2191
|
|
|
2192
2192
|
// libs/embed-libs/embed/src/lib/dashboard-component/dashboard-base.ts
|
|
2193
2193
|
var LuzmoDashboard = class extends s3 {
|
|
2194
|
-
constructor(
|
|
2194
|
+
constructor() {
|
|
2195
2195
|
super();
|
|
2196
2196
|
this.language = "auto";
|
|
2197
2197
|
this.screenMode = "auto";
|
|
@@ -2214,6 +2214,7 @@ var LuzmoDashboard = class extends s3 {
|
|
|
2214
2214
|
this.isLibraryLoaded = false;
|
|
2215
2215
|
this.currentAuthKey = null;
|
|
2216
2216
|
this.currentAuthToken = null;
|
|
2217
|
+
this.isInitCalled = false;
|
|
2217
2218
|
this.attributesMap = {
|
|
2218
2219
|
dashboardId: "dashboard-id",
|
|
2219
2220
|
dashboardSlug: "dashboard-slug",
|
|
@@ -2243,7 +2244,6 @@ var LuzmoDashboard = class extends s3 {
|
|
|
2243
2244
|
this._iframeId = `luzmo-dashboard-${this._containerId}`;
|
|
2244
2245
|
this.iframeLoaded = false;
|
|
2245
2246
|
this.promises = {};
|
|
2246
|
-
this.setInputParameters(inputParameters);
|
|
2247
2247
|
this.params = this._setOptions();
|
|
2248
2248
|
this._onResize = () => {
|
|
2249
2249
|
if (this.shadowRoot?.querySelector(".dashboard-container")) {
|
|
@@ -2290,44 +2290,6 @@ var LuzmoDashboard = class extends s3 {
|
|
|
2290
2290
|
return wrappedModule;
|
|
2291
2291
|
});
|
|
2292
2292
|
}
|
|
2293
|
-
setInputParameters(inputParameters) {
|
|
2294
|
-
if (!inputParameters) {
|
|
2295
|
-
return;
|
|
2296
|
-
}
|
|
2297
|
-
const params = [
|
|
2298
|
-
"dashboardId",
|
|
2299
|
-
"dashboardSlug",
|
|
2300
|
-
"itemId",
|
|
2301
|
-
"language",
|
|
2302
|
-
"qeVersion",
|
|
2303
|
-
"screenMode",
|
|
2304
|
-
"switchScreenModeOnResize",
|
|
2305
|
-
"accentColor",
|
|
2306
|
-
"mainColor",
|
|
2307
|
-
"authToken",
|
|
2308
|
-
"authKey",
|
|
2309
|
-
"editMode",
|
|
2310
|
-
"loaderBackground",
|
|
2311
|
-
"loaderFontColor",
|
|
2312
|
-
"loaderSpinnerColor",
|
|
2313
|
-
"loaderSpinnerBackground",
|
|
2314
|
-
"timezoneId",
|
|
2315
|
-
"itemDimensions",
|
|
2316
|
-
"apiHost"
|
|
2317
|
-
];
|
|
2318
|
-
for (const key of params) {
|
|
2319
|
-
const value = inputParameters[key];
|
|
2320
|
-
if (value) {
|
|
2321
|
-
this[key] = value;
|
|
2322
|
-
}
|
|
2323
|
-
}
|
|
2324
|
-
if (inputParameters.experimental) {
|
|
2325
|
-
this.experimental = inputParameters.experimental;
|
|
2326
|
-
}
|
|
2327
|
-
if (inputParameters.appServer) {
|
|
2328
|
-
this.appServer = addTrailingSlash(inputParameters.appServer);
|
|
2329
|
-
}
|
|
2330
|
-
}
|
|
2331
2293
|
// Set resize event listener
|
|
2332
2294
|
connectedCallback() {
|
|
2333
2295
|
super.connectedCallback();
|
|
@@ -2346,7 +2308,6 @@ var LuzmoDashboard = class extends s3 {
|
|
|
2346
2308
|
this._loaderMsg = getLoader(this)?.loadingMsg;
|
|
2347
2309
|
this._loaderStyles();
|
|
2348
2310
|
luzmo_service_default._components.push(this);
|
|
2349
|
-
this.initComponent();
|
|
2350
2311
|
if (this.luzmoEmbedContainer) {
|
|
2351
2312
|
this._resizeObserver.observe(this.luzmoEmbedContainer);
|
|
2352
2313
|
}
|
|
@@ -2426,6 +2387,16 @@ var LuzmoDashboard = class extends s3 {
|
|
|
2426
2387
|
"timezoneId",
|
|
2427
2388
|
"itemDimensions"
|
|
2428
2389
|
]);
|
|
2390
|
+
const conditionsToCheck = ["dashboardId", "dashboardSlug", "itemId"];
|
|
2391
|
+
let callInitComponent = false;
|
|
2392
|
+
for (const condition of conditionsToCheck) {
|
|
2393
|
+
callInitComponent = callInitComponent || changedProperties.get(condition) === void 0 && this[condition] !== void 0;
|
|
2394
|
+
}
|
|
2395
|
+
if (callInitComponent && !this.isInitCalled) {
|
|
2396
|
+
this.initComponent();
|
|
2397
|
+
this.isInitCalled = true;
|
|
2398
|
+
return;
|
|
2399
|
+
}
|
|
2429
2400
|
if (this.getIsViewMode()) {
|
|
2430
2401
|
if (this.dashboardReference) {
|
|
2431
2402
|
for (const [propertyName] of changedProperties.entries()) {
|
|
@@ -2942,6 +2913,9 @@ __decorateClass([
|
|
|
2942
2913
|
__decorateClass([
|
|
2943
2914
|
r4()
|
|
2944
2915
|
], LuzmoDashboard.prototype, "currentAuthToken", 2);
|
|
2916
|
+
__decorateClass([
|
|
2917
|
+
r4()
|
|
2918
|
+
], LuzmoDashboard.prototype, "isInitCalled", 2);
|
|
2945
2919
|
|
|
2946
2920
|
// libs/embed-libs/embed/src/lib/dashboard-component/dashboard-component.ts
|
|
2947
2921
|
var LuzmoDashboard2 = class extends LuzmoDashboard {
|
package/package.json
CHANGED
|
@@ -56,6 +56,7 @@ export declare class LuzmoDashboard extends LitElement implements SharedLib.ES6L
|
|
|
56
56
|
protected dashboardReference: SharedLib.LuzmoElement;
|
|
57
57
|
currentAuthKey: string;
|
|
58
58
|
currentAuthToken: string;
|
|
59
|
+
isInitCalled: boolean;
|
|
59
60
|
private attributesMap;
|
|
60
61
|
_loadTimeoutHandle?: number;
|
|
61
62
|
_onResize: () => void;
|
|
@@ -65,9 +66,8 @@ export declare class LuzmoDashboard extends LitElement implements SharedLib.ES6L
|
|
|
65
66
|
iframeHeight?: string;
|
|
66
67
|
iframeWidth?: string;
|
|
67
68
|
_resizeObserver: ResizeObserver;
|
|
68
|
-
constructor(
|
|
69
|
+
constructor();
|
|
69
70
|
private loadLibrary;
|
|
70
|
-
private setInputParameters;
|
|
71
71
|
connectedCallback(): void;
|
|
72
72
|
disconnectedCallback(): void;
|
|
73
73
|
firstUpdated(): void;
|