@luzmo/embed 5.1.3-beta.4 → 5.1.3-beta.6
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/index.cjs +9 -10
- package/index.js +9 -10
- package/index.libs.cjs +9 -10
- package/index.libs.js +9 -10
- package/lib/viz-item/viz-item.base.d.ts +5 -4
- package/luzmo-embed.libs.js +9 -10
- package/luzmo-embed.min.js +9 -10
- package/package.json +1 -1
- package/src/lib/viz-item/viz-item.base.d.ts +5 -4
package/index.cjs
CHANGED
|
@@ -56,7 +56,7 @@ var import_style_map = require("lit/directives/style-map.js");
|
|
|
56
56
|
var import_shared_embed = require("@luzmo/shared-embed");
|
|
57
57
|
|
|
58
58
|
// libs/embed-libs/embed/package.json
|
|
59
|
-
var version = "5.1.3-beta.
|
|
59
|
+
var version = "5.1.3-beta.6";
|
|
60
60
|
|
|
61
61
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
62
62
|
var LuzmoService = class {
|
|
@@ -1074,12 +1074,6 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1074
1074
|
this.appServer = "https://app.luzmo.com";
|
|
1075
1075
|
this.apiHost = "https://api.luzmo.com";
|
|
1076
1076
|
this.slots = [];
|
|
1077
|
-
this.options = {
|
|
1078
|
-
title: {
|
|
1079
|
-
en: ""
|
|
1080
|
-
},
|
|
1081
|
-
theme: "default"
|
|
1082
|
-
};
|
|
1083
1077
|
this.version = version + "-wc-luzmo";
|
|
1084
1078
|
}
|
|
1085
1079
|
static {
|
|
@@ -1092,9 +1086,12 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1092
1086
|
}
|
|
1093
1087
|
`;
|
|
1094
1088
|
}
|
|
1089
|
+
canInitializeVizItem() {
|
|
1090
|
+
return !!(this.type || this.dashboardId && this.itemId);
|
|
1091
|
+
}
|
|
1095
1092
|
async firstUpdated(_changedProperties) {
|
|
1096
1093
|
super.firstUpdated(_changedProperties);
|
|
1097
|
-
if (this.
|
|
1094
|
+
if (this.canInitializeVizItem()) {
|
|
1098
1095
|
await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
|
|
1099
1096
|
this.createAndAppendElement();
|
|
1100
1097
|
}
|
|
@@ -1131,8 +1128,10 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1131
1128
|
this.chartElement.setAttribute(mappedAttributeName, attributeValue);
|
|
1132
1129
|
}
|
|
1133
1130
|
} else {
|
|
1134
|
-
if (this.
|
|
1135
|
-
this.
|
|
1131
|
+
if (this.canInitializeVizItem()) {
|
|
1132
|
+
if (this.type) {
|
|
1133
|
+
this.parseAndValidate("type");
|
|
1134
|
+
}
|
|
1136
1135
|
await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
|
|
1137
1136
|
this.createAndAppendElement();
|
|
1138
1137
|
}
|
package/index.js
CHANGED
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
} from "@luzmo/shared-embed";
|
|
35
35
|
|
|
36
36
|
// libs/embed-libs/embed/package.json
|
|
37
|
-
var version = "5.1.3-beta.
|
|
37
|
+
var version = "5.1.3-beta.6";
|
|
38
38
|
|
|
39
39
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
40
40
|
var LuzmoService = class {
|
|
@@ -1052,12 +1052,6 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1052
1052
|
this.appServer = "https://app.luzmo.com";
|
|
1053
1053
|
this.apiHost = "https://api.luzmo.com";
|
|
1054
1054
|
this.slots = [];
|
|
1055
|
-
this.options = {
|
|
1056
|
-
title: {
|
|
1057
|
-
en: ""
|
|
1058
|
-
},
|
|
1059
|
-
theme: "default"
|
|
1060
|
-
};
|
|
1061
1055
|
this.version = version + "-wc-luzmo";
|
|
1062
1056
|
}
|
|
1063
1057
|
static {
|
|
@@ -1070,9 +1064,12 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1070
1064
|
}
|
|
1071
1065
|
`;
|
|
1072
1066
|
}
|
|
1067
|
+
canInitializeVizItem() {
|
|
1068
|
+
return !!(this.type || this.dashboardId && this.itemId);
|
|
1069
|
+
}
|
|
1073
1070
|
async firstUpdated(_changedProperties) {
|
|
1074
1071
|
super.firstUpdated(_changedProperties);
|
|
1075
|
-
if (this.
|
|
1072
|
+
if (this.canInitializeVizItem()) {
|
|
1076
1073
|
await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
|
|
1077
1074
|
this.createAndAppendElement();
|
|
1078
1075
|
}
|
|
@@ -1109,8 +1106,10 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1109
1106
|
this.chartElement.setAttribute(mappedAttributeName, attributeValue);
|
|
1110
1107
|
}
|
|
1111
1108
|
} else {
|
|
1112
|
-
if (this.
|
|
1113
|
-
this.
|
|
1109
|
+
if (this.canInitializeVizItem()) {
|
|
1110
|
+
if (this.type) {
|
|
1111
|
+
this.parseAndValidate("type");
|
|
1112
|
+
}
|
|
1114
1113
|
await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
|
|
1115
1114
|
this.createAndAppendElement();
|
|
1116
1115
|
}
|
package/index.libs.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.3-beta.
|
|
58
|
+
var version = "5.1.3-beta.6";
|
|
59
59
|
|
|
60
60
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
61
61
|
var LuzmoService = class {
|
|
@@ -1068,12 +1068,6 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1068
1068
|
this.appServer = "https://app.luzmo.com";
|
|
1069
1069
|
this.apiHost = "https://api.luzmo.com";
|
|
1070
1070
|
this.slots = [];
|
|
1071
|
-
this.options = {
|
|
1072
|
-
title: {
|
|
1073
|
-
en: ""
|
|
1074
|
-
},
|
|
1075
|
-
theme: "default"
|
|
1076
|
-
};
|
|
1077
1071
|
this.version = version + "-wc-luzmo";
|
|
1078
1072
|
}
|
|
1079
1073
|
static {
|
|
@@ -1086,9 +1080,12 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1086
1080
|
}
|
|
1087
1081
|
`;
|
|
1088
1082
|
}
|
|
1083
|
+
canInitializeVizItem() {
|
|
1084
|
+
return !!(this.type || this.dashboardId && this.itemId);
|
|
1085
|
+
}
|
|
1089
1086
|
async firstUpdated(_changedProperties) {
|
|
1090
1087
|
super.firstUpdated(_changedProperties);
|
|
1091
|
-
if (this.
|
|
1088
|
+
if (this.canInitializeVizItem()) {
|
|
1092
1089
|
await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
|
|
1093
1090
|
this.createAndAppendElement();
|
|
1094
1091
|
}
|
|
@@ -1125,8 +1122,10 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1125
1122
|
this.chartElement.setAttribute(mappedAttributeName, attributeValue);
|
|
1126
1123
|
}
|
|
1127
1124
|
} else {
|
|
1128
|
-
if (this.
|
|
1129
|
-
this.
|
|
1125
|
+
if (this.canInitializeVizItem()) {
|
|
1126
|
+
if (this.type) {
|
|
1127
|
+
this.parseAndValidate("type");
|
|
1128
|
+
}
|
|
1130
1129
|
await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
|
|
1131
1130
|
this.createAndAppendElement();
|
|
1132
1131
|
}
|
package/index.libs.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 = "5.1.3-beta.
|
|
35
|
+
var version = "5.1.3-beta.6";
|
|
36
36
|
|
|
37
37
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
38
38
|
var LuzmoService = class {
|
|
@@ -1045,12 +1045,6 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1045
1045
|
this.appServer = "https://app.luzmo.com";
|
|
1046
1046
|
this.apiHost = "https://api.luzmo.com";
|
|
1047
1047
|
this.slots = [];
|
|
1048
|
-
this.options = {
|
|
1049
|
-
title: {
|
|
1050
|
-
en: ""
|
|
1051
|
-
},
|
|
1052
|
-
theme: "default"
|
|
1053
|
-
};
|
|
1054
1048
|
this.version = version + "-wc-luzmo";
|
|
1055
1049
|
}
|
|
1056
1050
|
static {
|
|
@@ -1063,9 +1057,12 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1063
1057
|
}
|
|
1064
1058
|
`;
|
|
1065
1059
|
}
|
|
1060
|
+
canInitializeVizItem() {
|
|
1061
|
+
return !!(this.type || this.dashboardId && this.itemId);
|
|
1062
|
+
}
|
|
1066
1063
|
async firstUpdated(_changedProperties) {
|
|
1067
1064
|
super.firstUpdated(_changedProperties);
|
|
1068
|
-
if (this.
|
|
1065
|
+
if (this.canInitializeVizItem()) {
|
|
1069
1066
|
await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
|
|
1070
1067
|
this.createAndAppendElement();
|
|
1071
1068
|
}
|
|
@@ -1102,8 +1099,10 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1102
1099
|
this.chartElement.setAttribute(mappedAttributeName, attributeValue);
|
|
1103
1100
|
}
|
|
1104
1101
|
} else {
|
|
1105
|
-
if (this.
|
|
1106
|
-
this.
|
|
1102
|
+
if (this.canInitializeVizItem()) {
|
|
1103
|
+
if (this.type) {
|
|
1104
|
+
this.parseAndValidate("type");
|
|
1105
|
+
}
|
|
1107
1106
|
await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
|
|
1108
1107
|
this.createAndAppendElement();
|
|
1109
1108
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { LitElement, PropertyValues } from 'lit';
|
|
2
2
|
import * as SharedLib from '@luzmo/shared-embed';
|
|
3
3
|
export declare class LuzmoBaseVizItem extends LitElement implements SharedLib.LuzmoVizItemComponentInterface {
|
|
4
|
-
appServer
|
|
5
|
-
apiHost
|
|
6
|
-
slots
|
|
7
|
-
options
|
|
4
|
+
appServer?: string;
|
|
5
|
+
apiHost?: string;
|
|
6
|
+
slots?: SharedLib.Slots;
|
|
7
|
+
options?: SharedLib.VizItemOptions;
|
|
8
8
|
type?: SharedLib.ItemType;
|
|
9
9
|
authKey?: string;
|
|
10
10
|
authToken?: string;
|
|
@@ -17,6 +17,7 @@ export declare class LuzmoBaseVizItem extends LitElement implements SharedLib.Lu
|
|
|
17
17
|
chartElement: HTMLElement;
|
|
18
18
|
static styles: import("lit").CSSResult;
|
|
19
19
|
constructor();
|
|
20
|
+
canInitializeVizItem(): boolean;
|
|
20
21
|
protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
|
|
21
22
|
private createAndAppendElement;
|
|
22
23
|
private updateVizItemProperties;
|
package/luzmo-embed.libs.js
CHANGED
|
@@ -5970,7 +5970,7 @@ var o5 = e6(class extends i4 {
|
|
|
5970
5970
|
});
|
|
5971
5971
|
|
|
5972
5972
|
// libs/embed-libs/embed/package.json
|
|
5973
|
-
var version = "5.1.3-beta.
|
|
5973
|
+
var version = "5.1.3-beta.6";
|
|
5974
5974
|
|
|
5975
5975
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
5976
5976
|
var LuzmoService = class {
|
|
@@ -7132,12 +7132,6 @@ var LuzmoBaseVizItem = class extends s3 {
|
|
|
7132
7132
|
this.appServer = "https://app.luzmo.com";
|
|
7133
7133
|
this.apiHost = "https://api.luzmo.com";
|
|
7134
7134
|
this.slots = [];
|
|
7135
|
-
this.options = {
|
|
7136
|
-
title: {
|
|
7137
|
-
en: ""
|
|
7138
|
-
},
|
|
7139
|
-
theme: "default"
|
|
7140
|
-
};
|
|
7141
7135
|
this.version = version + "-wc-luzmo";
|
|
7142
7136
|
}
|
|
7143
7137
|
static {
|
|
@@ -7150,9 +7144,12 @@ var LuzmoBaseVizItem = class extends s3 {
|
|
|
7150
7144
|
}
|
|
7151
7145
|
`;
|
|
7152
7146
|
}
|
|
7147
|
+
canInitializeVizItem() {
|
|
7148
|
+
return !!(this.type || this.dashboardId && this.itemId);
|
|
7149
|
+
}
|
|
7153
7150
|
async firstUpdated(_changedProperties) {
|
|
7154
7151
|
super.firstUpdated(_changedProperties);
|
|
7155
|
-
if (this.
|
|
7152
|
+
if (this.canInitializeVizItem()) {
|
|
7156
7153
|
await loadLibrary(this.appServer, "DashboardApp");
|
|
7157
7154
|
this.createAndAppendElement();
|
|
7158
7155
|
}
|
|
@@ -7189,8 +7186,10 @@ var LuzmoBaseVizItem = class extends s3 {
|
|
|
7189
7186
|
this.chartElement.setAttribute(mappedAttributeName, attributeValue);
|
|
7190
7187
|
}
|
|
7191
7188
|
} else {
|
|
7192
|
-
if (this.
|
|
7193
|
-
this.
|
|
7189
|
+
if (this.canInitializeVizItem()) {
|
|
7190
|
+
if (this.type) {
|
|
7191
|
+
this.parseAndValidate("type");
|
|
7192
|
+
}
|
|
7194
7193
|
await loadLibrary(this.appServer, "DashboardApp");
|
|
7195
7194
|
this.createAndAppendElement();
|
|
7196
7195
|
}
|
package/luzmo-embed.min.js
CHANGED
|
@@ -5971,7 +5971,7 @@ var o5 = e6(class extends i4 {
|
|
|
5971
5971
|
});
|
|
5972
5972
|
|
|
5973
5973
|
// libs/embed-libs/embed/package.json
|
|
5974
|
-
var version = "5.1.3-beta.
|
|
5974
|
+
var version = "5.1.3-beta.6";
|
|
5975
5975
|
|
|
5976
5976
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
5977
5977
|
var LuzmoService = class {
|
|
@@ -7138,12 +7138,6 @@ var LuzmoBaseVizItem = class extends s3 {
|
|
|
7138
7138
|
this.appServer = "https://app.luzmo.com";
|
|
7139
7139
|
this.apiHost = "https://api.luzmo.com";
|
|
7140
7140
|
this.slots = [];
|
|
7141
|
-
this.options = {
|
|
7142
|
-
title: {
|
|
7143
|
-
en: ""
|
|
7144
|
-
},
|
|
7145
|
-
theme: "default"
|
|
7146
|
-
};
|
|
7147
7141
|
this.version = version + "-wc-luzmo";
|
|
7148
7142
|
}
|
|
7149
7143
|
static {
|
|
@@ -7156,9 +7150,12 @@ var LuzmoBaseVizItem = class extends s3 {
|
|
|
7156
7150
|
}
|
|
7157
7151
|
`;
|
|
7158
7152
|
}
|
|
7153
|
+
canInitializeVizItem() {
|
|
7154
|
+
return !!(this.type || this.dashboardId && this.itemId);
|
|
7155
|
+
}
|
|
7159
7156
|
async firstUpdated(_changedProperties) {
|
|
7160
7157
|
super.firstUpdated(_changedProperties);
|
|
7161
|
-
if (this.
|
|
7158
|
+
if (this.canInitializeVizItem()) {
|
|
7162
7159
|
await loadLibrary(this.appServer, "DashboardApp");
|
|
7163
7160
|
this.createAndAppendElement();
|
|
7164
7161
|
}
|
|
@@ -7195,8 +7192,10 @@ var LuzmoBaseVizItem = class extends s3 {
|
|
|
7195
7192
|
this.chartElement.setAttribute(mappedAttributeName, attributeValue);
|
|
7196
7193
|
}
|
|
7197
7194
|
} else {
|
|
7198
|
-
if (this.
|
|
7199
|
-
this.
|
|
7195
|
+
if (this.canInitializeVizItem()) {
|
|
7196
|
+
if (this.type) {
|
|
7197
|
+
this.parseAndValidate("type");
|
|
7198
|
+
}
|
|
7200
7199
|
await loadLibrary(this.appServer, "DashboardApp");
|
|
7201
7200
|
this.createAndAppendElement();
|
|
7202
7201
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { LitElement, PropertyValues } from 'lit';
|
|
2
2
|
import * as SharedLib from '@luzmo/shared-embed';
|
|
3
3
|
export declare class LuzmoBaseVizItem extends LitElement implements SharedLib.LuzmoVizItemComponentInterface {
|
|
4
|
-
appServer
|
|
5
|
-
apiHost
|
|
6
|
-
slots
|
|
7
|
-
options
|
|
4
|
+
appServer?: string;
|
|
5
|
+
apiHost?: string;
|
|
6
|
+
slots?: SharedLib.Slots;
|
|
7
|
+
options?: SharedLib.VizItemOptions;
|
|
8
8
|
type?: SharedLib.ItemType;
|
|
9
9
|
authKey?: string;
|
|
10
10
|
authToken?: string;
|
|
@@ -17,6 +17,7 @@ export declare class LuzmoBaseVizItem extends LitElement implements SharedLib.Lu
|
|
|
17
17
|
chartElement: HTMLElement;
|
|
18
18
|
static styles: import("lit").CSSResult;
|
|
19
19
|
constructor();
|
|
20
|
+
canInitializeVizItem(): boolean;
|
|
20
21
|
protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
|
|
21
22
|
private createAndAppendElement;
|
|
22
23
|
private updateVizItemProperties;
|