@luzmo/embed 5.1.3-beta.3 → 5.1.3-beta.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/index.cjs +17 -6
- package/index.js +17 -6
- package/index.libs.cjs +17 -6
- package/index.libs.js +17 -6
- package/lib/viz-item/viz-item.base.d.ts +4 -1
- package/luzmo-embed.libs.js +20 -8
- package/luzmo-embed.min.js +20 -8
- package/package.json +2 -2
- package/src/lib/viz-item/viz-item.base.d.ts +4 -1
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.5";
|
|
60
60
|
|
|
61
61
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
62
62
|
var LuzmoService = class {
|
|
@@ -1092,9 +1092,12 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1092
1092
|
}
|
|
1093
1093
|
`;
|
|
1094
1094
|
}
|
|
1095
|
+
canInitializeVizItem() {
|
|
1096
|
+
return !!(this.type || this.dashboardId && this.itemId);
|
|
1097
|
+
}
|
|
1095
1098
|
async firstUpdated(_changedProperties) {
|
|
1096
1099
|
super.firstUpdated(_changedProperties);
|
|
1097
|
-
if (this.
|
|
1100
|
+
if (this.canInitializeVizItem()) {
|
|
1098
1101
|
await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
|
|
1099
1102
|
this.createAndAppendElement();
|
|
1100
1103
|
}
|
|
@@ -1131,8 +1134,10 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1131
1134
|
this.chartElement.setAttribute(mappedAttributeName, attributeValue);
|
|
1132
1135
|
}
|
|
1133
1136
|
} else {
|
|
1134
|
-
if (this.
|
|
1135
|
-
this.
|
|
1137
|
+
if (this.canInitializeVizItem()) {
|
|
1138
|
+
if (this.type) {
|
|
1139
|
+
this.parseAndValidate("type");
|
|
1140
|
+
}
|
|
1136
1141
|
await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
|
|
1137
1142
|
this.createAndAppendElement();
|
|
1138
1143
|
}
|
|
@@ -1151,8 +1156,8 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1151
1156
|
}
|
|
1152
1157
|
} catch (err) {
|
|
1153
1158
|
const validationError = (0, import_zod_validation_error.fromError)(err);
|
|
1154
|
-
console.
|
|
1155
|
-
console.
|
|
1159
|
+
console.warn(err);
|
|
1160
|
+
console.warn(validationError.toString());
|
|
1156
1161
|
}
|
|
1157
1162
|
}
|
|
1158
1163
|
render() {
|
|
@@ -1200,6 +1205,12 @@ __decorateClass([
|
|
|
1200
1205
|
__decorateClass([
|
|
1201
1206
|
(0, import_decorators3.property)({ type: Array })
|
|
1202
1207
|
], LuzmoBaseVizItem.prototype, "filters", 2);
|
|
1208
|
+
__decorateClass([
|
|
1209
|
+
(0, import_decorators3.property)()
|
|
1210
|
+
], LuzmoBaseVizItem.prototype, "dashboardId", 2);
|
|
1211
|
+
__decorateClass([
|
|
1212
|
+
(0, import_decorators3.property)()
|
|
1213
|
+
], LuzmoBaseVizItem.prototype, "itemId", 2);
|
|
1203
1214
|
|
|
1204
1215
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item-component.ts
|
|
1205
1216
|
var LuzmoVizItem = class extends LuzmoBaseVizItem {
|
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.5";
|
|
38
38
|
|
|
39
39
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
40
40
|
var LuzmoService = class {
|
|
@@ -1070,9 +1070,12 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1070
1070
|
}
|
|
1071
1071
|
`;
|
|
1072
1072
|
}
|
|
1073
|
+
canInitializeVizItem() {
|
|
1074
|
+
return !!(this.type || this.dashboardId && this.itemId);
|
|
1075
|
+
}
|
|
1073
1076
|
async firstUpdated(_changedProperties) {
|
|
1074
1077
|
super.firstUpdated(_changedProperties);
|
|
1075
|
-
if (this.
|
|
1078
|
+
if (this.canInitializeVizItem()) {
|
|
1076
1079
|
await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
|
|
1077
1080
|
this.createAndAppendElement();
|
|
1078
1081
|
}
|
|
@@ -1109,8 +1112,10 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1109
1112
|
this.chartElement.setAttribute(mappedAttributeName, attributeValue);
|
|
1110
1113
|
}
|
|
1111
1114
|
} else {
|
|
1112
|
-
if (this.
|
|
1113
|
-
this.
|
|
1115
|
+
if (this.canInitializeVizItem()) {
|
|
1116
|
+
if (this.type) {
|
|
1117
|
+
this.parseAndValidate("type");
|
|
1118
|
+
}
|
|
1114
1119
|
await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
|
|
1115
1120
|
this.createAndAppendElement();
|
|
1116
1121
|
}
|
|
@@ -1129,8 +1134,8 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1129
1134
|
}
|
|
1130
1135
|
} catch (err) {
|
|
1131
1136
|
const validationError = fromError(err);
|
|
1132
|
-
console.
|
|
1133
|
-
console.
|
|
1137
|
+
console.warn(err);
|
|
1138
|
+
console.warn(validationError.toString());
|
|
1134
1139
|
}
|
|
1135
1140
|
}
|
|
1136
1141
|
render() {
|
|
@@ -1178,6 +1183,12 @@ __decorateClass([
|
|
|
1178
1183
|
__decorateClass([
|
|
1179
1184
|
property2({ type: Array })
|
|
1180
1185
|
], LuzmoBaseVizItem.prototype, "filters", 2);
|
|
1186
|
+
__decorateClass([
|
|
1187
|
+
property2()
|
|
1188
|
+
], LuzmoBaseVizItem.prototype, "dashboardId", 2);
|
|
1189
|
+
__decorateClass([
|
|
1190
|
+
property2()
|
|
1191
|
+
], LuzmoBaseVizItem.prototype, "itemId", 2);
|
|
1181
1192
|
|
|
1182
1193
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item-component.ts
|
|
1183
1194
|
var LuzmoVizItem = class extends LuzmoBaseVizItem {
|
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.5";
|
|
59
59
|
|
|
60
60
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
61
61
|
var LuzmoService = class {
|
|
@@ -1086,9 +1086,12 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1086
1086
|
}
|
|
1087
1087
|
`;
|
|
1088
1088
|
}
|
|
1089
|
+
canInitializeVizItem() {
|
|
1090
|
+
return !!(this.type || this.dashboardId && this.itemId);
|
|
1091
|
+
}
|
|
1089
1092
|
async firstUpdated(_changedProperties) {
|
|
1090
1093
|
super.firstUpdated(_changedProperties);
|
|
1091
|
-
if (this.
|
|
1094
|
+
if (this.canInitializeVizItem()) {
|
|
1092
1095
|
await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
|
|
1093
1096
|
this.createAndAppendElement();
|
|
1094
1097
|
}
|
|
@@ -1125,8 +1128,10 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1125
1128
|
this.chartElement.setAttribute(mappedAttributeName, attributeValue);
|
|
1126
1129
|
}
|
|
1127
1130
|
} else {
|
|
1128
|
-
if (this.
|
|
1129
|
-
this.
|
|
1131
|
+
if (this.canInitializeVizItem()) {
|
|
1132
|
+
if (this.type) {
|
|
1133
|
+
this.parseAndValidate("type");
|
|
1134
|
+
}
|
|
1130
1135
|
await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
|
|
1131
1136
|
this.createAndAppendElement();
|
|
1132
1137
|
}
|
|
@@ -1145,8 +1150,8 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1145
1150
|
}
|
|
1146
1151
|
} catch (err) {
|
|
1147
1152
|
const validationError = (0, import_zod_validation_error.fromError)(err);
|
|
1148
|
-
console.
|
|
1149
|
-
console.
|
|
1153
|
+
console.warn(err);
|
|
1154
|
+
console.warn(validationError.toString());
|
|
1150
1155
|
}
|
|
1151
1156
|
}
|
|
1152
1157
|
render() {
|
|
@@ -1194,6 +1199,12 @@ __decorateClass([
|
|
|
1194
1199
|
__decorateClass([
|
|
1195
1200
|
(0, import_decorators3.property)({ type: Array })
|
|
1196
1201
|
], LuzmoBaseVizItem.prototype, "filters", 2);
|
|
1202
|
+
__decorateClass([
|
|
1203
|
+
(0, import_decorators3.property)()
|
|
1204
|
+
], LuzmoBaseVizItem.prototype, "dashboardId", 2);
|
|
1205
|
+
__decorateClass([
|
|
1206
|
+
(0, import_decorators3.property)()
|
|
1207
|
+
], LuzmoBaseVizItem.prototype, "itemId", 2);
|
|
1197
1208
|
|
|
1198
1209
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item-web-component.ts
|
|
1199
1210
|
var LuzmoVizItemWebComponent = class extends LuzmoBaseVizItem {
|
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.5";
|
|
36
36
|
|
|
37
37
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
38
38
|
var LuzmoService = class {
|
|
@@ -1063,9 +1063,12 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1063
1063
|
}
|
|
1064
1064
|
`;
|
|
1065
1065
|
}
|
|
1066
|
+
canInitializeVizItem() {
|
|
1067
|
+
return !!(this.type || this.dashboardId && this.itemId);
|
|
1068
|
+
}
|
|
1066
1069
|
async firstUpdated(_changedProperties) {
|
|
1067
1070
|
super.firstUpdated(_changedProperties);
|
|
1068
|
-
if (this.
|
|
1071
|
+
if (this.canInitializeVizItem()) {
|
|
1069
1072
|
await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
|
|
1070
1073
|
this.createAndAppendElement();
|
|
1071
1074
|
}
|
|
@@ -1102,8 +1105,10 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1102
1105
|
this.chartElement.setAttribute(mappedAttributeName, attributeValue);
|
|
1103
1106
|
}
|
|
1104
1107
|
} else {
|
|
1105
|
-
if (this.
|
|
1106
|
-
this.
|
|
1108
|
+
if (this.canInitializeVizItem()) {
|
|
1109
|
+
if (this.type) {
|
|
1110
|
+
this.parseAndValidate("type");
|
|
1111
|
+
}
|
|
1107
1112
|
await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
|
|
1108
1113
|
this.createAndAppendElement();
|
|
1109
1114
|
}
|
|
@@ -1122,8 +1127,8 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1122
1127
|
}
|
|
1123
1128
|
} catch (err) {
|
|
1124
1129
|
const validationError = fromError(err);
|
|
1125
|
-
console.
|
|
1126
|
-
console.
|
|
1130
|
+
console.warn(err);
|
|
1131
|
+
console.warn(validationError.toString());
|
|
1127
1132
|
}
|
|
1128
1133
|
}
|
|
1129
1134
|
render() {
|
|
@@ -1171,6 +1176,12 @@ __decorateClass([
|
|
|
1171
1176
|
__decorateClass([
|
|
1172
1177
|
property2({ type: Array })
|
|
1173
1178
|
], LuzmoBaseVizItem.prototype, "filters", 2);
|
|
1179
|
+
__decorateClass([
|
|
1180
|
+
property2()
|
|
1181
|
+
], LuzmoBaseVizItem.prototype, "dashboardId", 2);
|
|
1182
|
+
__decorateClass([
|
|
1183
|
+
property2()
|
|
1184
|
+
], LuzmoBaseVizItem.prototype, "itemId", 2);
|
|
1174
1185
|
|
|
1175
1186
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item-web-component.ts
|
|
1176
1187
|
var LuzmoVizItemWebComponent = class extends LuzmoBaseVizItem {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement, PropertyValues } from 'lit';
|
|
2
2
|
import * as SharedLib from '@luzmo/shared-embed';
|
|
3
|
-
export declare class LuzmoBaseVizItem extends LitElement {
|
|
3
|
+
export declare class LuzmoBaseVizItem extends LitElement implements SharedLib.LuzmoVizItemComponentInterface {
|
|
4
4
|
appServer: string;
|
|
5
5
|
apiHost: string;
|
|
6
6
|
slots: SharedLib.Slots;
|
|
@@ -12,9 +12,12 @@ export declare class LuzmoBaseVizItem extends LitElement {
|
|
|
12
12
|
contextId?: string;
|
|
13
13
|
canFilter?: SharedLib.CanFilter;
|
|
14
14
|
filters?: SharedLib.FilterGroup[];
|
|
15
|
+
dashboardId?: string;
|
|
16
|
+
itemId?: string;
|
|
15
17
|
chartElement: HTMLElement;
|
|
16
18
|
static styles: import("lit").CSSResult;
|
|
17
19
|
constructor();
|
|
20
|
+
canInitializeVizItem(): boolean;
|
|
18
21
|
protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
|
|
19
22
|
private createAndAppendElement;
|
|
20
23
|
private updateVizItemProperties;
|
package/luzmo-embed.libs.js
CHANGED
|
@@ -5525,7 +5525,6 @@ var vizItemOptionsParser = z.object({
|
|
|
5525
5525
|
var canFilterParser = z.union([z.array(z.string()), z.literal("all")]);
|
|
5526
5526
|
var libraryTypeToWebComponentTypeMapping = {
|
|
5527
5527
|
type: "type",
|
|
5528
|
-
theme: "theme",
|
|
5529
5528
|
slots: "slots",
|
|
5530
5529
|
options: "options",
|
|
5531
5530
|
appServer: "app-server",
|
|
@@ -5534,7 +5533,9 @@ var libraryTypeToWebComponentTypeMapping = {
|
|
|
5534
5533
|
authToken: "auth-token",
|
|
5535
5534
|
contextId: "context-id",
|
|
5536
5535
|
canFilter: "can-filter",
|
|
5537
|
-
filters: "filters"
|
|
5536
|
+
filters: "filters",
|
|
5537
|
+
dashboardId: "dashboard-id",
|
|
5538
|
+
itemId: "item-id"
|
|
5538
5539
|
};
|
|
5539
5540
|
|
|
5540
5541
|
// libs/embed-libs/shared-embed/src/lib/constants/class-constants.ts
|
|
@@ -5969,7 +5970,7 @@ var o5 = e6(class extends i4 {
|
|
|
5969
5970
|
});
|
|
5970
5971
|
|
|
5971
5972
|
// libs/embed-libs/embed/package.json
|
|
5972
|
-
var version = "5.1.3-beta.
|
|
5973
|
+
var version = "5.1.3-beta.5";
|
|
5973
5974
|
|
|
5974
5975
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
5975
5976
|
var LuzmoService = class {
|
|
@@ -7149,9 +7150,12 @@ var LuzmoBaseVizItem = class extends s3 {
|
|
|
7149
7150
|
}
|
|
7150
7151
|
`;
|
|
7151
7152
|
}
|
|
7153
|
+
canInitializeVizItem() {
|
|
7154
|
+
return !!(this.type || this.dashboardId && this.itemId);
|
|
7155
|
+
}
|
|
7152
7156
|
async firstUpdated(_changedProperties) {
|
|
7153
7157
|
super.firstUpdated(_changedProperties);
|
|
7154
|
-
if (this.
|
|
7158
|
+
if (this.canInitializeVizItem()) {
|
|
7155
7159
|
await loadLibrary(this.appServer, "DashboardApp");
|
|
7156
7160
|
this.createAndAppendElement();
|
|
7157
7161
|
}
|
|
@@ -7188,8 +7192,10 @@ var LuzmoBaseVizItem = class extends s3 {
|
|
|
7188
7192
|
this.chartElement.setAttribute(mappedAttributeName, attributeValue);
|
|
7189
7193
|
}
|
|
7190
7194
|
} else {
|
|
7191
|
-
if (this.
|
|
7192
|
-
this.
|
|
7195
|
+
if (this.canInitializeVizItem()) {
|
|
7196
|
+
if (this.type) {
|
|
7197
|
+
this.parseAndValidate("type");
|
|
7198
|
+
}
|
|
7193
7199
|
await loadLibrary(this.appServer, "DashboardApp");
|
|
7194
7200
|
this.createAndAppendElement();
|
|
7195
7201
|
}
|
|
@@ -7208,8 +7214,8 @@ var LuzmoBaseVizItem = class extends s3 {
|
|
|
7208
7214
|
}
|
|
7209
7215
|
} catch (err) {
|
|
7210
7216
|
const validationError = fromError(err);
|
|
7211
|
-
console.
|
|
7212
|
-
console.
|
|
7217
|
+
console.warn(err);
|
|
7218
|
+
console.warn(validationError.toString());
|
|
7213
7219
|
}
|
|
7214
7220
|
}
|
|
7215
7221
|
render() {
|
|
@@ -7257,6 +7263,12 @@ __decorateClass([
|
|
|
7257
7263
|
__decorateClass([
|
|
7258
7264
|
n3({ type: Array })
|
|
7259
7265
|
], LuzmoBaseVizItem.prototype, "filters", 2);
|
|
7266
|
+
__decorateClass([
|
|
7267
|
+
n3()
|
|
7268
|
+
], LuzmoBaseVizItem.prototype, "dashboardId", 2);
|
|
7269
|
+
__decorateClass([
|
|
7270
|
+
n3()
|
|
7271
|
+
], LuzmoBaseVizItem.prototype, "itemId", 2);
|
|
7260
7272
|
|
|
7261
7273
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item-web-component.ts
|
|
7262
7274
|
var LuzmoVizItemWebComponent = class extends LuzmoBaseVizItem {
|
package/luzmo-embed.min.js
CHANGED
|
@@ -5526,7 +5526,6 @@ var vizItemOptionsParser = z.object({
|
|
|
5526
5526
|
var canFilterParser = z.union([z.array(z.string()), z.literal("all")]);
|
|
5527
5527
|
var libraryTypeToWebComponentTypeMapping = {
|
|
5528
5528
|
type: "type",
|
|
5529
|
-
theme: "theme",
|
|
5530
5529
|
slots: "slots",
|
|
5531
5530
|
options: "options",
|
|
5532
5531
|
appServer: "app-server",
|
|
@@ -5535,7 +5534,9 @@ var libraryTypeToWebComponentTypeMapping = {
|
|
|
5535
5534
|
authToken: "auth-token",
|
|
5536
5535
|
contextId: "context-id",
|
|
5537
5536
|
canFilter: "can-filter",
|
|
5538
|
-
filters: "filters"
|
|
5537
|
+
filters: "filters",
|
|
5538
|
+
dashboardId: "dashboard-id",
|
|
5539
|
+
itemId: "item-id"
|
|
5539
5540
|
};
|
|
5540
5541
|
|
|
5541
5542
|
// libs/embed-libs/shared-embed/src/lib/constants/class-constants.ts
|
|
@@ -5970,7 +5971,7 @@ var o5 = e6(class extends i4 {
|
|
|
5970
5971
|
});
|
|
5971
5972
|
|
|
5972
5973
|
// libs/embed-libs/embed/package.json
|
|
5973
|
-
var version = "5.1.3-beta.
|
|
5974
|
+
var version = "5.1.3-beta.5";
|
|
5974
5975
|
|
|
5975
5976
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
5976
5977
|
var LuzmoService = class {
|
|
@@ -7155,9 +7156,12 @@ var LuzmoBaseVizItem = class extends s3 {
|
|
|
7155
7156
|
}
|
|
7156
7157
|
`;
|
|
7157
7158
|
}
|
|
7159
|
+
canInitializeVizItem() {
|
|
7160
|
+
return !!(this.type || this.dashboardId && this.itemId);
|
|
7161
|
+
}
|
|
7158
7162
|
async firstUpdated(_changedProperties) {
|
|
7159
7163
|
super.firstUpdated(_changedProperties);
|
|
7160
|
-
if (this.
|
|
7164
|
+
if (this.canInitializeVizItem()) {
|
|
7161
7165
|
await loadLibrary(this.appServer, "DashboardApp");
|
|
7162
7166
|
this.createAndAppendElement();
|
|
7163
7167
|
}
|
|
@@ -7194,8 +7198,10 @@ var LuzmoBaseVizItem = class extends s3 {
|
|
|
7194
7198
|
this.chartElement.setAttribute(mappedAttributeName, attributeValue);
|
|
7195
7199
|
}
|
|
7196
7200
|
} else {
|
|
7197
|
-
if (this.
|
|
7198
|
-
this.
|
|
7201
|
+
if (this.canInitializeVizItem()) {
|
|
7202
|
+
if (this.type) {
|
|
7203
|
+
this.parseAndValidate("type");
|
|
7204
|
+
}
|
|
7199
7205
|
await loadLibrary(this.appServer, "DashboardApp");
|
|
7200
7206
|
this.createAndAppendElement();
|
|
7201
7207
|
}
|
|
@@ -7214,8 +7220,8 @@ var LuzmoBaseVizItem = class extends s3 {
|
|
|
7214
7220
|
}
|
|
7215
7221
|
} catch (err) {
|
|
7216
7222
|
const validationError = fromError(err);
|
|
7217
|
-
console.
|
|
7218
|
-
console.
|
|
7223
|
+
console.warn(err);
|
|
7224
|
+
console.warn(validationError.toString());
|
|
7219
7225
|
}
|
|
7220
7226
|
}
|
|
7221
7227
|
render() {
|
|
@@ -7263,6 +7269,12 @@ __decorateClass([
|
|
|
7263
7269
|
__decorateClass([
|
|
7264
7270
|
n3({ type: Array })
|
|
7265
7271
|
], LuzmoBaseVizItem.prototype, "filters", 2);
|
|
7272
|
+
__decorateClass([
|
|
7273
|
+
n3()
|
|
7274
|
+
], LuzmoBaseVizItem.prototype, "dashboardId", 2);
|
|
7275
|
+
__decorateClass([
|
|
7276
|
+
n3()
|
|
7277
|
+
], LuzmoBaseVizItem.prototype, "itemId", 2);
|
|
7266
7278
|
|
|
7267
7279
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item-component.ts
|
|
7268
7280
|
var LuzmoVizItem = class extends LuzmoBaseVizItem {
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luzmo/embed",
|
|
3
|
-
"version": "5.1.3-beta.
|
|
3
|
+
"version": "5.1.3-beta.5",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"lit": "3.1.2",
|
|
6
|
-
"@luzmo/shared-embed": "5.0.8-beta.
|
|
6
|
+
"@luzmo/shared-embed": "5.0.8-beta.5",
|
|
7
7
|
"zod-validation-error": "3.2.0"
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement, PropertyValues } from 'lit';
|
|
2
2
|
import * as SharedLib from '@luzmo/shared-embed';
|
|
3
|
-
export declare class LuzmoBaseVizItem extends LitElement {
|
|
3
|
+
export declare class LuzmoBaseVizItem extends LitElement implements SharedLib.LuzmoVizItemComponentInterface {
|
|
4
4
|
appServer: string;
|
|
5
5
|
apiHost: string;
|
|
6
6
|
slots: SharedLib.Slots;
|
|
@@ -12,9 +12,12 @@ export declare class LuzmoBaseVizItem extends LitElement {
|
|
|
12
12
|
contextId?: string;
|
|
13
13
|
canFilter?: SharedLib.CanFilter;
|
|
14
14
|
filters?: SharedLib.FilterGroup[];
|
|
15
|
+
dashboardId?: string;
|
|
16
|
+
itemId?: string;
|
|
15
17
|
chartElement: HTMLElement;
|
|
16
18
|
static styles: import("lit").CSSResult;
|
|
17
19
|
constructor();
|
|
20
|
+
canInitializeVizItem(): boolean;
|
|
18
21
|
protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
|
|
19
22
|
private createAndAppendElement;
|
|
20
23
|
private updateVizItemProperties;
|