@luzmo/embed 5.1.3-beta.2 → 5.1.3-beta.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/index.cjs +12 -4
- package/index.js +12 -4
- package/index.libs.cjs +12 -4
- package/index.libs.js +12 -4
- package/lib/viz-item/viz-item.base.d.ts +3 -1
- package/luzmo-embed.libs.js +15 -6
- package/luzmo-embed.min.js +15 -6
- package/package.json +2 -2
- package/src/lib/viz-item/viz-item.base.d.ts +3 -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.4";
|
|
60
60
|
|
|
61
61
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
62
62
|
var LuzmoService = class {
|
|
@@ -1132,7 +1132,7 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1132
1132
|
}
|
|
1133
1133
|
} else {
|
|
1134
1134
|
if (this.type) {
|
|
1135
|
-
|
|
1135
|
+
this.parseAndValidate("type");
|
|
1136
1136
|
await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
|
|
1137
1137
|
this.createAndAppendElement();
|
|
1138
1138
|
}
|
|
@@ -1146,11 +1146,13 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1146
1146
|
SharedLib3.vizItemOptionsParser.parse(this.options);
|
|
1147
1147
|
} else if (key === "canFilter") {
|
|
1148
1148
|
SharedLib3.canFilterParser.parse(this.canFilter);
|
|
1149
|
+
} else if (key === "type") {
|
|
1150
|
+
SharedLib3.itemTypeParser.parse(this.type);
|
|
1149
1151
|
}
|
|
1150
1152
|
} catch (err) {
|
|
1151
1153
|
const validationError = (0, import_zod_validation_error.fromError)(err);
|
|
1152
|
-
console.
|
|
1153
|
-
console.
|
|
1154
|
+
console.warn(err);
|
|
1155
|
+
console.warn(validationError.toString());
|
|
1154
1156
|
}
|
|
1155
1157
|
}
|
|
1156
1158
|
render() {
|
|
@@ -1198,6 +1200,12 @@ __decorateClass([
|
|
|
1198
1200
|
__decorateClass([
|
|
1199
1201
|
(0, import_decorators3.property)({ type: Array })
|
|
1200
1202
|
], LuzmoBaseVizItem.prototype, "filters", 2);
|
|
1203
|
+
__decorateClass([
|
|
1204
|
+
(0, import_decorators3.property)()
|
|
1205
|
+
], LuzmoBaseVizItem.prototype, "dashboardId", 2);
|
|
1206
|
+
__decorateClass([
|
|
1207
|
+
(0, import_decorators3.property)()
|
|
1208
|
+
], LuzmoBaseVizItem.prototype, "itemId", 2);
|
|
1201
1209
|
|
|
1202
1210
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item-component.ts
|
|
1203
1211
|
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.4";
|
|
38
38
|
|
|
39
39
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
40
40
|
var LuzmoService = class {
|
|
@@ -1110,7 +1110,7 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1110
1110
|
}
|
|
1111
1111
|
} else {
|
|
1112
1112
|
if (this.type) {
|
|
1113
|
-
|
|
1113
|
+
this.parseAndValidate("type");
|
|
1114
1114
|
await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
|
|
1115
1115
|
this.createAndAppendElement();
|
|
1116
1116
|
}
|
|
@@ -1124,11 +1124,13 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1124
1124
|
SharedLib3.vizItemOptionsParser.parse(this.options);
|
|
1125
1125
|
} else if (key === "canFilter") {
|
|
1126
1126
|
SharedLib3.canFilterParser.parse(this.canFilter);
|
|
1127
|
+
} else if (key === "type") {
|
|
1128
|
+
SharedLib3.itemTypeParser.parse(this.type);
|
|
1127
1129
|
}
|
|
1128
1130
|
} catch (err) {
|
|
1129
1131
|
const validationError = fromError(err);
|
|
1130
|
-
console.
|
|
1131
|
-
console.
|
|
1132
|
+
console.warn(err);
|
|
1133
|
+
console.warn(validationError.toString());
|
|
1132
1134
|
}
|
|
1133
1135
|
}
|
|
1134
1136
|
render() {
|
|
@@ -1176,6 +1178,12 @@ __decorateClass([
|
|
|
1176
1178
|
__decorateClass([
|
|
1177
1179
|
property2({ type: Array })
|
|
1178
1180
|
], LuzmoBaseVizItem.prototype, "filters", 2);
|
|
1181
|
+
__decorateClass([
|
|
1182
|
+
property2()
|
|
1183
|
+
], LuzmoBaseVizItem.prototype, "dashboardId", 2);
|
|
1184
|
+
__decorateClass([
|
|
1185
|
+
property2()
|
|
1186
|
+
], LuzmoBaseVizItem.prototype, "itemId", 2);
|
|
1179
1187
|
|
|
1180
1188
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item-component.ts
|
|
1181
1189
|
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.4";
|
|
59
59
|
|
|
60
60
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
61
61
|
var LuzmoService = class {
|
|
@@ -1126,7 +1126,7 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1126
1126
|
}
|
|
1127
1127
|
} else {
|
|
1128
1128
|
if (this.type) {
|
|
1129
|
-
|
|
1129
|
+
this.parseAndValidate("type");
|
|
1130
1130
|
await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
|
|
1131
1131
|
this.createAndAppendElement();
|
|
1132
1132
|
}
|
|
@@ -1140,11 +1140,13 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1140
1140
|
SharedLib3.vizItemOptionsParser.parse(this.options);
|
|
1141
1141
|
} else if (key === "canFilter") {
|
|
1142
1142
|
SharedLib3.canFilterParser.parse(this.canFilter);
|
|
1143
|
+
} else if (key === "type") {
|
|
1144
|
+
SharedLib3.itemTypeParser.parse(this.type);
|
|
1143
1145
|
}
|
|
1144
1146
|
} catch (err) {
|
|
1145
1147
|
const validationError = (0, import_zod_validation_error.fromError)(err);
|
|
1146
|
-
console.
|
|
1147
|
-
console.
|
|
1148
|
+
console.warn(err);
|
|
1149
|
+
console.warn(validationError.toString());
|
|
1148
1150
|
}
|
|
1149
1151
|
}
|
|
1150
1152
|
render() {
|
|
@@ -1192,6 +1194,12 @@ __decorateClass([
|
|
|
1192
1194
|
__decorateClass([
|
|
1193
1195
|
(0, import_decorators3.property)({ type: Array })
|
|
1194
1196
|
], LuzmoBaseVizItem.prototype, "filters", 2);
|
|
1197
|
+
__decorateClass([
|
|
1198
|
+
(0, import_decorators3.property)()
|
|
1199
|
+
], LuzmoBaseVizItem.prototype, "dashboardId", 2);
|
|
1200
|
+
__decorateClass([
|
|
1201
|
+
(0, import_decorators3.property)()
|
|
1202
|
+
], LuzmoBaseVizItem.prototype, "itemId", 2);
|
|
1195
1203
|
|
|
1196
1204
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item-web-component.ts
|
|
1197
1205
|
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.4";
|
|
36
36
|
|
|
37
37
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
38
38
|
var LuzmoService = class {
|
|
@@ -1103,7 +1103,7 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1103
1103
|
}
|
|
1104
1104
|
} else {
|
|
1105
1105
|
if (this.type) {
|
|
1106
|
-
|
|
1106
|
+
this.parseAndValidate("type");
|
|
1107
1107
|
await SharedLib3.loadLibrary(this.appServer, "DashboardApp");
|
|
1108
1108
|
this.createAndAppendElement();
|
|
1109
1109
|
}
|
|
@@ -1117,11 +1117,13 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1117
1117
|
SharedLib3.vizItemOptionsParser.parse(this.options);
|
|
1118
1118
|
} else if (key === "canFilter") {
|
|
1119
1119
|
SharedLib3.canFilterParser.parse(this.canFilter);
|
|
1120
|
+
} else if (key === "type") {
|
|
1121
|
+
SharedLib3.itemTypeParser.parse(this.type);
|
|
1120
1122
|
}
|
|
1121
1123
|
} catch (err) {
|
|
1122
1124
|
const validationError = fromError(err);
|
|
1123
|
-
console.
|
|
1124
|
-
console.
|
|
1125
|
+
console.warn(err);
|
|
1126
|
+
console.warn(validationError.toString());
|
|
1125
1127
|
}
|
|
1126
1128
|
}
|
|
1127
1129
|
render() {
|
|
@@ -1169,6 +1171,12 @@ __decorateClass([
|
|
|
1169
1171
|
__decorateClass([
|
|
1170
1172
|
property2({ type: Array })
|
|
1171
1173
|
], LuzmoBaseVizItem.prototype, "filters", 2);
|
|
1174
|
+
__decorateClass([
|
|
1175
|
+
property2()
|
|
1176
|
+
], LuzmoBaseVizItem.prototype, "dashboardId", 2);
|
|
1177
|
+
__decorateClass([
|
|
1178
|
+
property2()
|
|
1179
|
+
], LuzmoBaseVizItem.prototype, "itemId", 2);
|
|
1172
1180
|
|
|
1173
1181
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item-web-component.ts
|
|
1174
1182
|
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,6 +12,8 @@ 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();
|
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.4";
|
|
5973
5974
|
|
|
5974
5975
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
5975
5976
|
var LuzmoService = class {
|
|
@@ -7189,7 +7190,7 @@ var LuzmoBaseVizItem = class extends s3 {
|
|
|
7189
7190
|
}
|
|
7190
7191
|
} else {
|
|
7191
7192
|
if (this.type) {
|
|
7192
|
-
|
|
7193
|
+
this.parseAndValidate("type");
|
|
7193
7194
|
await loadLibrary(this.appServer, "DashboardApp");
|
|
7194
7195
|
this.createAndAppendElement();
|
|
7195
7196
|
}
|
|
@@ -7203,11 +7204,13 @@ var LuzmoBaseVizItem = class extends s3 {
|
|
|
7203
7204
|
vizItemOptionsParser.parse(this.options);
|
|
7204
7205
|
} else if (key === "canFilter") {
|
|
7205
7206
|
canFilterParser.parse(this.canFilter);
|
|
7207
|
+
} else if (key === "type") {
|
|
7208
|
+
itemTypeParser.parse(this.type);
|
|
7206
7209
|
}
|
|
7207
7210
|
} catch (err) {
|
|
7208
7211
|
const validationError = fromError(err);
|
|
7209
|
-
console.
|
|
7210
|
-
console.
|
|
7212
|
+
console.warn(err);
|
|
7213
|
+
console.warn(validationError.toString());
|
|
7211
7214
|
}
|
|
7212
7215
|
}
|
|
7213
7216
|
render() {
|
|
@@ -7255,6 +7258,12 @@ __decorateClass([
|
|
|
7255
7258
|
__decorateClass([
|
|
7256
7259
|
n3({ type: Array })
|
|
7257
7260
|
], LuzmoBaseVizItem.prototype, "filters", 2);
|
|
7261
|
+
__decorateClass([
|
|
7262
|
+
n3()
|
|
7263
|
+
], LuzmoBaseVizItem.prototype, "dashboardId", 2);
|
|
7264
|
+
__decorateClass([
|
|
7265
|
+
n3()
|
|
7266
|
+
], LuzmoBaseVizItem.prototype, "itemId", 2);
|
|
7258
7267
|
|
|
7259
7268
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item-web-component.ts
|
|
7260
7269
|
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.4";
|
|
5974
5975
|
|
|
5975
5976
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
5976
5977
|
var LuzmoService = class {
|
|
@@ -7195,7 +7196,7 @@ var LuzmoBaseVizItem = class extends s3 {
|
|
|
7195
7196
|
}
|
|
7196
7197
|
} else {
|
|
7197
7198
|
if (this.type) {
|
|
7198
|
-
|
|
7199
|
+
this.parseAndValidate("type");
|
|
7199
7200
|
await loadLibrary(this.appServer, "DashboardApp");
|
|
7200
7201
|
this.createAndAppendElement();
|
|
7201
7202
|
}
|
|
@@ -7209,11 +7210,13 @@ var LuzmoBaseVizItem = class extends s3 {
|
|
|
7209
7210
|
vizItemOptionsParser.parse(this.options);
|
|
7210
7211
|
} else if (key === "canFilter") {
|
|
7211
7212
|
canFilterParser.parse(this.canFilter);
|
|
7213
|
+
} else if (key === "type") {
|
|
7214
|
+
itemTypeParser.parse(this.type);
|
|
7212
7215
|
}
|
|
7213
7216
|
} catch (err) {
|
|
7214
7217
|
const validationError = fromError(err);
|
|
7215
|
-
console.
|
|
7216
|
-
console.
|
|
7218
|
+
console.warn(err);
|
|
7219
|
+
console.warn(validationError.toString());
|
|
7217
7220
|
}
|
|
7218
7221
|
}
|
|
7219
7222
|
render() {
|
|
@@ -7261,6 +7264,12 @@ __decorateClass([
|
|
|
7261
7264
|
__decorateClass([
|
|
7262
7265
|
n3({ type: Array })
|
|
7263
7266
|
], LuzmoBaseVizItem.prototype, "filters", 2);
|
|
7267
|
+
__decorateClass([
|
|
7268
|
+
n3()
|
|
7269
|
+
], LuzmoBaseVizItem.prototype, "dashboardId", 2);
|
|
7270
|
+
__decorateClass([
|
|
7271
|
+
n3()
|
|
7272
|
+
], LuzmoBaseVizItem.prototype, "itemId", 2);
|
|
7264
7273
|
|
|
7265
7274
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item-component.ts
|
|
7266
7275
|
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.4",
|
|
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,6 +12,8 @@ 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();
|