@luzmo/embed 6.2.3 → 6.2.4
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/LICENSE +17 -0
- package/index.cjs +14 -5
- package/index.js +14 -5
- package/luzmo-embed.min.js +19 -5
- package/package.json +3 -3
- package/src/lib/dashboard-component/dashboard-base.d.ts +1 -0
- package/src/lib/viz-item/viz-item.base.d.ts +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
A modern Web Component for Luzmo dashboards in your web application.
|
|
2
|
+
|
|
3
|
+
Copyright © 2024 Luzmo
|
|
4
|
+
|
|
5
|
+
All rights reserved.
|
|
6
|
+
Luzmo dashboard web component must be used according to the Luzmo Terms of Service.
|
|
7
|
+
|
|
8
|
+
This license allows users with a current active Luzmo account to use the Luzmo Dashboard Web Component.
|
|
9
|
+
This license terminates automatically if a user no longer has an active Luzmo account.
|
|
10
|
+
|
|
11
|
+
Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
|
14
|
+
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
15
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
16
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/index.cjs
CHANGED
|
@@ -62,7 +62,7 @@ var import_style_map = require("lit/directives/style-map.js");
|
|
|
62
62
|
var import_shared_embed = require("@luzmo/shared-embed");
|
|
63
63
|
|
|
64
64
|
// libs/embed-libs/embed/package.json
|
|
65
|
-
var version = "6.2.
|
|
65
|
+
var version = "6.2.4";
|
|
66
66
|
|
|
67
67
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
68
68
|
var LuzmoService = class {
|
|
@@ -397,6 +397,7 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
397
397
|
authKey: "auth-key",
|
|
398
398
|
authToken: "auth-token",
|
|
399
399
|
editMode: "edit-mode",
|
|
400
|
+
theme: "theme",
|
|
400
401
|
mainColor: "main-color",
|
|
401
402
|
accentColor: "accent-color",
|
|
402
403
|
loaderBackground: "loader-background",
|
|
@@ -533,6 +534,7 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
533
534
|
"itemId",
|
|
534
535
|
"language",
|
|
535
536
|
"qeVersion",
|
|
537
|
+
"theme",
|
|
536
538
|
"editMode",
|
|
537
539
|
"screenMode",
|
|
538
540
|
"switchScreenModeOnResize",
|
|
@@ -631,6 +633,9 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
631
633
|
if (this.editMode) {
|
|
632
634
|
defaultParameters.editMode = this.editMode;
|
|
633
635
|
}
|
|
636
|
+
if (this.theme) {
|
|
637
|
+
defaultParameters.theme = this.theme;
|
|
638
|
+
}
|
|
634
639
|
if (this.mainColor) {
|
|
635
640
|
defaultParameters.mainColor = this.mainColor;
|
|
636
641
|
}
|
|
@@ -754,7 +759,8 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
754
759
|
toBeRenderedHTML = this.isLibraryLoaded ? import_lit2.html`
|
|
755
760
|
${this.dashboardId || this.dashboardSlug ? import_lit2.html`
|
|
756
761
|
<dashboard-component dashboard-id="${this.params.dashboardId}" app-server="${this.params.appServer}"
|
|
757
|
-
api-host="${this.params.apiHost}"></dashboard-component
|
|
762
|
+
api-host="${this.params.apiHost}"></dashboard-component>
|
|
763
|
+
` : import_lit2.html`
|
|
758
764
|
<div id="luzmo-error-${this._containerId}">
|
|
759
765
|
<h3 class="luzmo-error">${this.browserErrorMsg}</h3>
|
|
760
766
|
</div>
|
|
@@ -765,7 +771,7 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
765
771
|
${this.dashboardId || this.dashboardSlug ? import_lit2.html`
|
|
766
772
|
${loader}
|
|
767
773
|
<iframe
|
|
768
|
-
class="luzmo-embed-dashboard ${
|
|
774
|
+
class="luzmo-embed-dashboard ${this.getIsViewMode() ? "" : `luzmo-embed-dashboard-ede`}"
|
|
769
775
|
id="${this._iframeId}"
|
|
770
776
|
name="${this._iframeId}"
|
|
771
777
|
style=${(0, import_style_map.styleMap)(this.iframeStyle)}
|
|
@@ -781,7 +787,7 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
781
787
|
`;
|
|
782
788
|
}
|
|
783
789
|
return import_lit2.html`
|
|
784
|
-
<div class="${import_shared_embed.luzmoEmbedContainerClass} ${
|
|
790
|
+
<div class="${import_shared_embed.luzmoEmbedContainerClass} ${this.getIsViewMode() ? "" : `${import_shared_embed.luzmoEmbedContainerClass}-ede`}">
|
|
785
791
|
<div
|
|
786
792
|
class="dashboard-container"
|
|
787
793
|
style=${(0, import_style_map.styleMap)(Object.assign({}, this._containerStyle, {
|
|
@@ -947,6 +953,9 @@ __decorateClass([
|
|
|
947
953
|
__decorateClass([
|
|
948
954
|
(0, import_decorators.property)()
|
|
949
955
|
], LuzmoDashboard.prototype, "editMode", 2);
|
|
956
|
+
__decorateClass([
|
|
957
|
+
(0, import_decorators.property)()
|
|
958
|
+
], LuzmoDashboard.prototype, "theme", 2);
|
|
950
959
|
__decorateClass([
|
|
951
960
|
(0, import_decorators.property)()
|
|
952
961
|
], LuzmoDashboard.prototype, "mainColor", 2);
|
|
@@ -1084,7 +1093,7 @@ if (!customElements.get("luzmo-embed-dashboard")) {
|
|
|
1084
1093
|
var import_decorators2 = require("lit/decorators.js");
|
|
1085
1094
|
var import_lit3 = require("lit");
|
|
1086
1095
|
var SharedLib3 = __toESM(require("@luzmo/shared-embed"), 1);
|
|
1087
|
-
var dashboardContentsVersion = "0.1.
|
|
1096
|
+
var dashboardContentsVersion = "0.1.92";
|
|
1088
1097
|
var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
1089
1098
|
constructor() {
|
|
1090
1099
|
super(...arguments);
|
package/index.js
CHANGED
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "@luzmo/shared-embed";
|
|
33
33
|
|
|
34
34
|
// libs/embed-libs/embed/package.json
|
|
35
|
-
var version = "6.2.
|
|
35
|
+
var version = "6.2.4";
|
|
36
36
|
|
|
37
37
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
38
38
|
var LuzmoService = class {
|
|
@@ -367,6 +367,7 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
367
367
|
authKey: "auth-key",
|
|
368
368
|
authToken: "auth-token",
|
|
369
369
|
editMode: "edit-mode",
|
|
370
|
+
theme: "theme",
|
|
370
371
|
mainColor: "main-color",
|
|
371
372
|
accentColor: "accent-color",
|
|
372
373
|
loaderBackground: "loader-background",
|
|
@@ -503,6 +504,7 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
503
504
|
"itemId",
|
|
504
505
|
"language",
|
|
505
506
|
"qeVersion",
|
|
507
|
+
"theme",
|
|
506
508
|
"editMode",
|
|
507
509
|
"screenMode",
|
|
508
510
|
"switchScreenModeOnResize",
|
|
@@ -601,6 +603,9 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
601
603
|
if (this.editMode) {
|
|
602
604
|
defaultParameters.editMode = this.editMode;
|
|
603
605
|
}
|
|
606
|
+
if (this.theme) {
|
|
607
|
+
defaultParameters.theme = this.theme;
|
|
608
|
+
}
|
|
604
609
|
if (this.mainColor) {
|
|
605
610
|
defaultParameters.mainColor = this.mainColor;
|
|
606
611
|
}
|
|
@@ -724,7 +729,8 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
724
729
|
toBeRenderedHTML = this.isLibraryLoaded ? html`
|
|
725
730
|
${this.dashboardId || this.dashboardSlug ? html`
|
|
726
731
|
<dashboard-component dashboard-id="${this.params.dashboardId}" app-server="${this.params.appServer}"
|
|
727
|
-
api-host="${this.params.apiHost}"></dashboard-component
|
|
732
|
+
api-host="${this.params.apiHost}"></dashboard-component>
|
|
733
|
+
` : html`
|
|
728
734
|
<div id="luzmo-error-${this._containerId}">
|
|
729
735
|
<h3 class="luzmo-error">${this.browserErrorMsg}</h3>
|
|
730
736
|
</div>
|
|
@@ -735,7 +741,7 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
735
741
|
${this.dashboardId || this.dashboardSlug ? html`
|
|
736
742
|
${loader}
|
|
737
743
|
<iframe
|
|
738
|
-
class="luzmo-embed-dashboard ${
|
|
744
|
+
class="luzmo-embed-dashboard ${this.getIsViewMode() ? "" : `luzmo-embed-dashboard-ede`}"
|
|
739
745
|
id="${this._iframeId}"
|
|
740
746
|
name="${this._iframeId}"
|
|
741
747
|
style=${styleMap(this.iframeStyle)}
|
|
@@ -751,7 +757,7 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
751
757
|
`;
|
|
752
758
|
}
|
|
753
759
|
return html`
|
|
754
|
-
<div class="${luzmoEmbedContainerClass} ${
|
|
760
|
+
<div class="${luzmoEmbedContainerClass} ${this.getIsViewMode() ? "" : `${luzmoEmbedContainerClass}-ede`}">
|
|
755
761
|
<div
|
|
756
762
|
class="dashboard-container"
|
|
757
763
|
style=${styleMap(Object.assign({}, this._containerStyle, {
|
|
@@ -917,6 +923,9 @@ __decorateClass([
|
|
|
917
923
|
__decorateClass([
|
|
918
924
|
property()
|
|
919
925
|
], LuzmoDashboard.prototype, "editMode", 2);
|
|
926
|
+
__decorateClass([
|
|
927
|
+
property()
|
|
928
|
+
], LuzmoDashboard.prototype, "theme", 2);
|
|
920
929
|
__decorateClass([
|
|
921
930
|
property()
|
|
922
931
|
], LuzmoDashboard.prototype, "mainColor", 2);
|
|
@@ -1054,7 +1063,7 @@ if (!customElements.get("luzmo-embed-dashboard")) {
|
|
|
1054
1063
|
import { property as property2 } from "lit/decorators.js";
|
|
1055
1064
|
import { LitElement as LitElement2, html as html2, css as css2 } from "lit";
|
|
1056
1065
|
import * as SharedLib3 from "@luzmo/shared-embed";
|
|
1057
|
-
var dashboardContentsVersion = "0.1.
|
|
1066
|
+
var dashboardContentsVersion = "0.1.92";
|
|
1058
1067
|
var LuzmoBaseVizItem = class extends LitElement2 {
|
|
1059
1068
|
constructor() {
|
|
1060
1069
|
super(...arguments);
|
package/luzmo-embed.min.js
CHANGED
|
@@ -111,6 +111,7 @@ var DEFAULT_PARAMETERS = {
|
|
|
111
111
|
screenMode: null,
|
|
112
112
|
switchScreenModeOnResize: true,
|
|
113
113
|
itemId: null,
|
|
114
|
+
theme: "",
|
|
114
115
|
mainColor: "",
|
|
115
116
|
accentColor: "",
|
|
116
117
|
itemDimensions: {
|
|
@@ -350,6 +351,7 @@ var createIframeUrl = (dashboardContent) => {
|
|
|
350
351
|
dashboardId,
|
|
351
352
|
dashboardSlug,
|
|
352
353
|
itemId,
|
|
354
|
+
theme,
|
|
353
355
|
mainColor,
|
|
354
356
|
accentColor,
|
|
355
357
|
editMode
|
|
@@ -372,6 +374,9 @@ var createIframeUrl = (dashboardContent) => {
|
|
|
372
374
|
if (loaderSpinnerBackground) {
|
|
373
375
|
searchString.push(`ldrspbg=${loaderSpinnerBackground}`);
|
|
374
376
|
}
|
|
377
|
+
if (theme) {
|
|
378
|
+
searchString.push(`theme=${theme}`);
|
|
379
|
+
}
|
|
375
380
|
if (mainColor) {
|
|
376
381
|
searchString.push(`mainColor=${mainColor}`);
|
|
377
382
|
}
|
|
@@ -2015,7 +2020,7 @@ var se = e5(class extends i3 {
|
|
|
2015
2020
|
});
|
|
2016
2021
|
|
|
2017
2022
|
// libs/embed-libs/embed/package.json
|
|
2018
|
-
var version = "6.2.
|
|
2023
|
+
var version = "6.2.4";
|
|
2019
2024
|
|
|
2020
2025
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
2021
2026
|
var LuzmoService = class {
|
|
@@ -2348,6 +2353,7 @@ var LuzmoDashboard = class extends h3 {
|
|
|
2348
2353
|
authKey: "auth-key",
|
|
2349
2354
|
authToken: "auth-token",
|
|
2350
2355
|
editMode: "edit-mode",
|
|
2356
|
+
theme: "theme",
|
|
2351
2357
|
mainColor: "main-color",
|
|
2352
2358
|
accentColor: "accent-color",
|
|
2353
2359
|
loaderBackground: "loader-background",
|
|
@@ -2484,6 +2490,7 @@ var LuzmoDashboard = class extends h3 {
|
|
|
2484
2490
|
"itemId",
|
|
2485
2491
|
"language",
|
|
2486
2492
|
"qeVersion",
|
|
2493
|
+
"theme",
|
|
2487
2494
|
"editMode",
|
|
2488
2495
|
"screenMode",
|
|
2489
2496
|
"switchScreenModeOnResize",
|
|
@@ -2582,6 +2589,9 @@ var LuzmoDashboard = class extends h3 {
|
|
|
2582
2589
|
if (this.editMode) {
|
|
2583
2590
|
defaultParameters.editMode = this.editMode;
|
|
2584
2591
|
}
|
|
2592
|
+
if (this.theme) {
|
|
2593
|
+
defaultParameters.theme = this.theme;
|
|
2594
|
+
}
|
|
2585
2595
|
if (this.mainColor) {
|
|
2586
2596
|
defaultParameters.mainColor = this.mainColor;
|
|
2587
2597
|
}
|
|
@@ -2705,7 +2715,8 @@ var LuzmoDashboard = class extends h3 {
|
|
|
2705
2715
|
toBeRenderedHTML = this.isLibraryLoaded ? ke`
|
|
2706
2716
|
${this.dashboardId || this.dashboardSlug ? ke`
|
|
2707
2717
|
<dashboard-component dashboard-id="${this.params.dashboardId}" app-server="${this.params.appServer}"
|
|
2708
|
-
api-host="${this.params.apiHost}"></dashboard-component
|
|
2718
|
+
api-host="${this.params.apiHost}"></dashboard-component>
|
|
2719
|
+
` : ke`
|
|
2709
2720
|
<div id="luzmo-error-${this._containerId}">
|
|
2710
2721
|
<h3 class="luzmo-error">${this.browserErrorMsg}</h3>
|
|
2711
2722
|
</div>
|
|
@@ -2716,7 +2727,7 @@ var LuzmoDashboard = class extends h3 {
|
|
|
2716
2727
|
${this.dashboardId || this.dashboardSlug ? ke`
|
|
2717
2728
|
${loader}
|
|
2718
2729
|
<iframe
|
|
2719
|
-
class="luzmo-embed-dashboard ${
|
|
2730
|
+
class="luzmo-embed-dashboard ${this.getIsViewMode() ? "" : `luzmo-embed-dashboard-ede`}"
|
|
2720
2731
|
id="${this._iframeId}"
|
|
2721
2732
|
name="${this._iframeId}"
|
|
2722
2733
|
style=${se(this.iframeStyle)}
|
|
@@ -2732,7 +2743,7 @@ var LuzmoDashboard = class extends h3 {
|
|
|
2732
2743
|
`;
|
|
2733
2744
|
}
|
|
2734
2745
|
return ke`
|
|
2735
|
-
<div class="${luzmoEmbedContainerClass} ${
|
|
2746
|
+
<div class="${luzmoEmbedContainerClass} ${this.getIsViewMode() ? "" : `${luzmoEmbedContainerClass}-ede`}">
|
|
2736
2747
|
<div
|
|
2737
2748
|
class="dashboard-container"
|
|
2738
2749
|
style=${se(Object.assign({}, this._containerStyle, {
|
|
@@ -2898,6 +2909,9 @@ __decorateClass([
|
|
|
2898
2909
|
__decorateClass([
|
|
2899
2910
|
n4()
|
|
2900
2911
|
], LuzmoDashboard.prototype, "editMode", 2);
|
|
2912
|
+
__decorateClass([
|
|
2913
|
+
n4()
|
|
2914
|
+
], LuzmoDashboard.prototype, "theme", 2);
|
|
2901
2915
|
__decorateClass([
|
|
2902
2916
|
n4()
|
|
2903
2917
|
], LuzmoDashboard.prototype, "mainColor", 2);
|
|
@@ -3032,7 +3046,7 @@ if (!customElements.get("luzmo-embed-dashboard")) {
|
|
|
3032
3046
|
}
|
|
3033
3047
|
|
|
3034
3048
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item.base.ts
|
|
3035
|
-
var dashboardContentsVersion = "0.1.
|
|
3049
|
+
var dashboardContentsVersion = "0.1.92";
|
|
3036
3050
|
var LuzmoBaseVizItem = class extends h3 {
|
|
3037
3051
|
constructor() {
|
|
3038
3052
|
super(...arguments);
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luzmo/embed",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.4",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"lit": "3.1.2",
|
|
6
|
-
"@luzmo/shared-embed": "5.2.
|
|
7
|
-
"@luzmo/dashboard-contents-types": "1.0.
|
|
6
|
+
"@luzmo/shared-embed": "5.2.2",
|
|
7
|
+
"@luzmo/dashboard-contents-types": "1.0.8"
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
10
|
"keywords": [
|
|
@@ -18,6 +18,7 @@ export declare class LuzmoDashboard extends LitElement implements SharedLib.ES6L
|
|
|
18
18
|
screenMode: SharedLib.DashboardInputs['screenMode'];
|
|
19
19
|
switchScreenModeOnResize: boolean;
|
|
20
20
|
editMode: SharedLib.DashboardInputs['editMode'];
|
|
21
|
+
theme?: SharedLib.DashboardInputs['theme'];
|
|
21
22
|
mainColor?: SharedLib.DashboardInputs['mainColor'];
|
|
22
23
|
accentColor?: SharedLib.DashboardInputs['accentColor'];
|
|
23
24
|
authToken?: SharedLib.DashboardInputs['authToken'];
|
|
@@ -9,7 +9,7 @@ import { VizItemType, FilterGroup, VizItemOptions, VizItemSlots } from '@luzmo/d
|
|
|
9
9
|
* together with this dashboard contents version are passed to the dashboard app (https://app.luzmo.com/dashboard-app/remoteEntry.mjs)
|
|
10
10
|
* and if needed the migration will be applied on the dashboard app level.
|
|
11
11
|
*/
|
|
12
|
-
export declare const dashboardContentsVersion = "0.1.
|
|
12
|
+
export declare const dashboardContentsVersion = "0.1.92";
|
|
13
13
|
type FunctionCall = [(...args: any) => any, any[]];
|
|
14
14
|
interface LuzmoVizItemComponentInterface extends HTMLElement {
|
|
15
15
|
options?: VizItemOptions;
|