@luzmo/embed 6.9.0 → 6.10.0-es2021
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/README.md +3 -3
- package/index.cjs +31 -37
- package/index.js +31 -37
- package/luzmo-embed.min.js +31 -37
- package/package.json +9 -3
- package/src/lib/viz-item/viz-item.base.d.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project are documented in this file.
|
|
4
4
|
|
|
5
|
+
## [6.10.0] - 2026-03-04
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
- Added `base64` as a supported format for `<luzmo-embed-viz-item>.export()`.
|
|
9
|
+
- Updated `<luzmo-embed-viz-item>.export()` to return `Promise<string | void>`.
|
|
10
|
+
|
|
5
11
|
## [6.9.0] - 2026-02-16
|
|
6
12
|
|
|
7
13
|
### Changed
|
package/README.md
CHANGED
|
@@ -107,8 +107,8 @@ refreshData(): void;
|
|
|
107
107
|
// Changes the authorization of the viz item. To fetch data based on new authorization parameters, refreshData() needs to be called.
|
|
108
108
|
setAuthorization(key: string, token: string): void;
|
|
109
109
|
|
|
110
|
-
// Export the viz item as png, csv, xlsx, xlsx-raw, csv-raw.
|
|
111
|
-
export(type: 'png' | 'xlsx' | 'csv' | 'xlsx-raw' | 'csv-raw'): void
|
|
110
|
+
// Export the viz item as png, base64, csv, xlsx, xlsx-raw, csv-raw.
|
|
111
|
+
export(type: 'png' | 'base64' | 'xlsx' | 'csv' | 'xlsx-raw' | 'csv-raw'): Promise<string | void>;
|
|
112
112
|
```
|
|
113
113
|
<br/>
|
|
114
114
|
|
|
@@ -145,7 +145,7 @@ const filters = vizItemComponent.getFilters();
|
|
|
145
145
|
Export the viz item
|
|
146
146
|
|
|
147
147
|
```typescript
|
|
148
|
-
const type = 'png'; // type is optional, defaults to png, other values supported are 'xlsx', 'csv', 'xlsx-raw', 'csv-raw'.
|
|
148
|
+
const type = 'png'; // type is optional, defaults to png, other values supported are 'base64', 'xlsx', 'csv', 'xlsx-raw', 'csv-raw'.
|
|
149
149
|
vizItemComponent.export(type);
|
|
150
150
|
```
|
|
151
151
|
|
package/index.cjs
CHANGED
|
@@ -62,7 +62,7 @@ var import_decorators = require("lit/decorators.js");
|
|
|
62
62
|
var import_style_map = require("lit/directives/style-map.js");
|
|
63
63
|
|
|
64
64
|
// libs/embed-libs/embed/package.json
|
|
65
|
-
var version = "6.
|
|
65
|
+
var version = "6.10.0";
|
|
66
66
|
|
|
67
67
|
// libs/embed-libs/embed/src/lib/helper/event-bus-handler.ts
|
|
68
68
|
var SharedLib = __toESM(require("@luzmo/shared-embed"));
|
|
@@ -1122,22 +1122,6 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1122
1122
|
this.libVersion = version + "-wc-luzmo";
|
|
1123
1123
|
this.postInitCallQueue = [];
|
|
1124
1124
|
}
|
|
1125
|
-
static {
|
|
1126
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1127
|
-
this.styles = import_lit3.css`
|
|
1128
|
-
:host {
|
|
1129
|
-
display: block;
|
|
1130
|
-
width: 100%;
|
|
1131
|
-
height: 100%;
|
|
1132
|
-
}
|
|
1133
|
-
|
|
1134
|
-
luzmo-embed-viz-item {
|
|
1135
|
-
width: 100%;
|
|
1136
|
-
height: 1000%;
|
|
1137
|
-
display: block;
|
|
1138
|
-
}
|
|
1139
|
-
`;
|
|
1140
|
-
}
|
|
1141
1125
|
createRenderRoot() {
|
|
1142
1126
|
if (!this.style.display) {
|
|
1143
1127
|
this.style.display = "block";
|
|
@@ -1248,6 +1232,20 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1248
1232
|
return import_lit3.html` `;
|
|
1249
1233
|
}
|
|
1250
1234
|
};
|
|
1235
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1236
|
+
LuzmoBaseVizItem.styles = import_lit3.css`
|
|
1237
|
+
:host {
|
|
1238
|
+
display: block;
|
|
1239
|
+
width: 100%;
|
|
1240
|
+
height: 100%;
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
luzmo-embed-viz-item {
|
|
1244
|
+
width: 100%;
|
|
1245
|
+
height: 1000%;
|
|
1246
|
+
display: block;
|
|
1247
|
+
}
|
|
1248
|
+
`;
|
|
1251
1249
|
__decorateClass([
|
|
1252
1250
|
(0, import_decorators2.property)()
|
|
1253
1251
|
], LuzmoBaseVizItem.prototype, "appServer", 2);
|
|
@@ -1341,16 +1339,6 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
|
|
|
1341
1339
|
this.remoteEntryServer = "http://localhost:4202/";
|
|
1342
1340
|
this.aydHost = "https://ayd.luzmo.com/";
|
|
1343
1341
|
}
|
|
1344
|
-
static {
|
|
1345
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1346
|
-
this.styles = import_lit4.css`
|
|
1347
|
-
:host {
|
|
1348
|
-
display: block;
|
|
1349
|
-
width: 100%;
|
|
1350
|
-
height: 100%;
|
|
1351
|
-
}
|
|
1352
|
-
`;
|
|
1353
|
-
}
|
|
1354
1342
|
createRenderRoot() {
|
|
1355
1343
|
return this;
|
|
1356
1344
|
}
|
|
@@ -1419,6 +1407,14 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
|
|
|
1419
1407
|
observer.observe(embedChat, { childList: true, subtree: true });
|
|
1420
1408
|
}
|
|
1421
1409
|
};
|
|
1410
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1411
|
+
LuzmoIQEmbedChatComponent.styles = import_lit4.css`
|
|
1412
|
+
:host {
|
|
1413
|
+
display: block;
|
|
1414
|
+
width: 100%;
|
|
1415
|
+
height: 100%;
|
|
1416
|
+
}
|
|
1417
|
+
`;
|
|
1422
1418
|
__decorateClass([
|
|
1423
1419
|
(0, import_decorators3.property)()
|
|
1424
1420
|
], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
|
|
@@ -1484,16 +1480,6 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
|
|
|
1484
1480
|
this.libVersion = version + "-wc-luzmo";
|
|
1485
1481
|
this.remoteEntryServer = "http://localhost:4202";
|
|
1486
1482
|
}
|
|
1487
|
-
static {
|
|
1488
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1489
|
-
this.styles = import_lit5.css`
|
|
1490
|
-
:host {
|
|
1491
|
-
display: block;
|
|
1492
|
-
width: 100%;
|
|
1493
|
-
height: 100%;
|
|
1494
|
-
}
|
|
1495
|
-
`;
|
|
1496
|
-
}
|
|
1497
1483
|
createRenderRoot() {
|
|
1498
1484
|
return this;
|
|
1499
1485
|
}
|
|
@@ -1544,6 +1530,14 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
|
|
|
1544
1530
|
return import_lit5.html` `;
|
|
1545
1531
|
}
|
|
1546
1532
|
};
|
|
1533
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1534
|
+
LuzmoIQEmbedAnswerComponent.styles = import_lit5.css`
|
|
1535
|
+
:host {
|
|
1536
|
+
display: block;
|
|
1537
|
+
width: 100%;
|
|
1538
|
+
height: 100%;
|
|
1539
|
+
}
|
|
1540
|
+
`;
|
|
1547
1541
|
__decorateClass([
|
|
1548
1542
|
(0, import_decorators4.property)()
|
|
1549
1543
|
], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
|
package/index.js
CHANGED
|
@@ -23,7 +23,7 @@ import { property, query, state } from "lit/decorators.js";
|
|
|
23
23
|
import { styleMap } from "lit/directives/style-map.js";
|
|
24
24
|
|
|
25
25
|
// libs/embed-libs/embed/package.json
|
|
26
|
-
var version = "6.
|
|
26
|
+
var version = "6.10.0";
|
|
27
27
|
|
|
28
28
|
// libs/embed-libs/embed/src/lib/helper/event-bus-handler.ts
|
|
29
29
|
import * as SharedLib from "@luzmo/shared-embed";
|
|
@@ -1083,22 +1083,6 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1083
1083
|
this.libVersion = version + "-wc-luzmo";
|
|
1084
1084
|
this.postInitCallQueue = [];
|
|
1085
1085
|
}
|
|
1086
|
-
static {
|
|
1087
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1088
|
-
this.styles = css2`
|
|
1089
|
-
:host {
|
|
1090
|
-
display: block;
|
|
1091
|
-
width: 100%;
|
|
1092
|
-
height: 100%;
|
|
1093
|
-
}
|
|
1094
|
-
|
|
1095
|
-
luzmo-embed-viz-item {
|
|
1096
|
-
width: 100%;
|
|
1097
|
-
height: 1000%;
|
|
1098
|
-
display: block;
|
|
1099
|
-
}
|
|
1100
|
-
`;
|
|
1101
|
-
}
|
|
1102
1086
|
createRenderRoot() {
|
|
1103
1087
|
if (!this.style.display) {
|
|
1104
1088
|
this.style.display = "block";
|
|
@@ -1209,6 +1193,20 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1209
1193
|
return html2` `;
|
|
1210
1194
|
}
|
|
1211
1195
|
};
|
|
1196
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1197
|
+
LuzmoBaseVizItem.styles = css2`
|
|
1198
|
+
:host {
|
|
1199
|
+
display: block;
|
|
1200
|
+
width: 100%;
|
|
1201
|
+
height: 100%;
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
luzmo-embed-viz-item {
|
|
1205
|
+
width: 100%;
|
|
1206
|
+
height: 1000%;
|
|
1207
|
+
display: block;
|
|
1208
|
+
}
|
|
1209
|
+
`;
|
|
1212
1210
|
__decorateClass([
|
|
1213
1211
|
property2()
|
|
1214
1212
|
], LuzmoBaseVizItem.prototype, "appServer", 2);
|
|
@@ -1302,16 +1300,6 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
|
|
|
1302
1300
|
this.remoteEntryServer = "http://localhost:4202/";
|
|
1303
1301
|
this.aydHost = "https://ayd.luzmo.com/";
|
|
1304
1302
|
}
|
|
1305
|
-
static {
|
|
1306
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1307
|
-
this.styles = css3`
|
|
1308
|
-
:host {
|
|
1309
|
-
display: block;
|
|
1310
|
-
width: 100%;
|
|
1311
|
-
height: 100%;
|
|
1312
|
-
}
|
|
1313
|
-
`;
|
|
1314
|
-
}
|
|
1315
1303
|
createRenderRoot() {
|
|
1316
1304
|
return this;
|
|
1317
1305
|
}
|
|
@@ -1380,6 +1368,14 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
|
|
|
1380
1368
|
observer.observe(embedChat, { childList: true, subtree: true });
|
|
1381
1369
|
}
|
|
1382
1370
|
};
|
|
1371
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1372
|
+
LuzmoIQEmbedChatComponent.styles = css3`
|
|
1373
|
+
:host {
|
|
1374
|
+
display: block;
|
|
1375
|
+
width: 100%;
|
|
1376
|
+
height: 100%;
|
|
1377
|
+
}
|
|
1378
|
+
`;
|
|
1383
1379
|
__decorateClass([
|
|
1384
1380
|
property3()
|
|
1385
1381
|
], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
|
|
@@ -1445,16 +1441,6 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
|
|
|
1445
1441
|
this.libVersion = version + "-wc-luzmo";
|
|
1446
1442
|
this.remoteEntryServer = "http://localhost:4202";
|
|
1447
1443
|
}
|
|
1448
|
-
static {
|
|
1449
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1450
|
-
this.styles = css4`
|
|
1451
|
-
:host {
|
|
1452
|
-
display: block;
|
|
1453
|
-
width: 100%;
|
|
1454
|
-
height: 100%;
|
|
1455
|
-
}
|
|
1456
|
-
`;
|
|
1457
|
-
}
|
|
1458
1444
|
createRenderRoot() {
|
|
1459
1445
|
return this;
|
|
1460
1446
|
}
|
|
@@ -1505,6 +1491,14 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
|
|
|
1505
1491
|
return html4` `;
|
|
1506
1492
|
}
|
|
1507
1493
|
};
|
|
1494
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1495
|
+
LuzmoIQEmbedAnswerComponent.styles = css4`
|
|
1496
|
+
:host {
|
|
1497
|
+
display: block;
|
|
1498
|
+
width: 100%;
|
|
1499
|
+
height: 100%;
|
|
1500
|
+
}
|
|
1501
|
+
`;
|
|
1508
1502
|
__decorateClass([
|
|
1509
1503
|
property4()
|
|
1510
1504
|
], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
|
package/luzmo-embed.min.js
CHANGED
|
@@ -6013,7 +6013,7 @@ var o6 = e6(class extends i5 {
|
|
|
6013
6013
|
});
|
|
6014
6014
|
|
|
6015
6015
|
// libs/embed-libs/embed/package.json
|
|
6016
|
-
var version = "6.
|
|
6016
|
+
var version = "6.10.0";
|
|
6017
6017
|
|
|
6018
6018
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
6019
6019
|
var LuzmoDashboardService = class {
|
|
@@ -7066,22 +7066,6 @@ var LuzmoBaseVizItem = class extends i4 {
|
|
|
7066
7066
|
this.libVersion = version + "-wc-luzmo";
|
|
7067
7067
|
this.postInitCallQueue = [];
|
|
7068
7068
|
}
|
|
7069
|
-
static {
|
|
7070
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
7071
|
-
this.styles = i`
|
|
7072
|
-
:host {
|
|
7073
|
-
display: block;
|
|
7074
|
-
width: 100%;
|
|
7075
|
-
height: 100%;
|
|
7076
|
-
}
|
|
7077
|
-
|
|
7078
|
-
luzmo-embed-viz-item {
|
|
7079
|
-
width: 100%;
|
|
7080
|
-
height: 1000%;
|
|
7081
|
-
display: block;
|
|
7082
|
-
}
|
|
7083
|
-
`;
|
|
7084
|
-
}
|
|
7085
7069
|
createRenderRoot() {
|
|
7086
7070
|
if (!this.style.display) {
|
|
7087
7071
|
this.style.display = "block";
|
|
@@ -7192,6 +7176,20 @@ var LuzmoBaseVizItem = class extends i4 {
|
|
|
7192
7176
|
return x` `;
|
|
7193
7177
|
}
|
|
7194
7178
|
};
|
|
7179
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
7180
|
+
LuzmoBaseVizItem.styles = i`
|
|
7181
|
+
:host {
|
|
7182
|
+
display: block;
|
|
7183
|
+
width: 100%;
|
|
7184
|
+
height: 100%;
|
|
7185
|
+
}
|
|
7186
|
+
|
|
7187
|
+
luzmo-embed-viz-item {
|
|
7188
|
+
width: 100%;
|
|
7189
|
+
height: 1000%;
|
|
7190
|
+
display: block;
|
|
7191
|
+
}
|
|
7192
|
+
`;
|
|
7195
7193
|
__decorateClass([
|
|
7196
7194
|
n4()
|
|
7197
7195
|
], LuzmoBaseVizItem.prototype, "appServer", 2);
|
|
@@ -7282,16 +7280,6 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
|
|
|
7282
7280
|
this.remoteEntryServer = "http://localhost:4202/";
|
|
7283
7281
|
this.aydHost = "https://ayd.luzmo.com/";
|
|
7284
7282
|
}
|
|
7285
|
-
static {
|
|
7286
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
7287
|
-
this.styles = i`
|
|
7288
|
-
:host {
|
|
7289
|
-
display: block;
|
|
7290
|
-
width: 100%;
|
|
7291
|
-
height: 100%;
|
|
7292
|
-
}
|
|
7293
|
-
`;
|
|
7294
|
-
}
|
|
7295
7283
|
createRenderRoot() {
|
|
7296
7284
|
return this;
|
|
7297
7285
|
}
|
|
@@ -7360,6 +7348,14 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
|
|
|
7360
7348
|
observer.observe(embedChat, { childList: true, subtree: true });
|
|
7361
7349
|
}
|
|
7362
7350
|
};
|
|
7351
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
7352
|
+
LuzmoIQEmbedChatComponent.styles = i`
|
|
7353
|
+
:host {
|
|
7354
|
+
display: block;
|
|
7355
|
+
width: 100%;
|
|
7356
|
+
height: 100%;
|
|
7357
|
+
}
|
|
7358
|
+
`;
|
|
7363
7359
|
__decorateClass([
|
|
7364
7360
|
n4()
|
|
7365
7361
|
], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
|
|
@@ -7422,16 +7418,6 @@ var LuzmoIQEmbedAnswerComponent = class extends i4 {
|
|
|
7422
7418
|
this.libVersion = version + "-wc-luzmo";
|
|
7423
7419
|
this.remoteEntryServer = "http://localhost:4202";
|
|
7424
7420
|
}
|
|
7425
|
-
static {
|
|
7426
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
7427
|
-
this.styles = i`
|
|
7428
|
-
:host {
|
|
7429
|
-
display: block;
|
|
7430
|
-
width: 100%;
|
|
7431
|
-
height: 100%;
|
|
7432
|
-
}
|
|
7433
|
-
`;
|
|
7434
|
-
}
|
|
7435
7421
|
createRenderRoot() {
|
|
7436
7422
|
return this;
|
|
7437
7423
|
}
|
|
@@ -7482,6 +7468,14 @@ var LuzmoIQEmbedAnswerComponent = class extends i4 {
|
|
|
7482
7468
|
return x` `;
|
|
7483
7469
|
}
|
|
7484
7470
|
};
|
|
7471
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
7472
|
+
LuzmoIQEmbedAnswerComponent.styles = i`
|
|
7473
|
+
:host {
|
|
7474
|
+
display: block;
|
|
7475
|
+
width: 100%;
|
|
7476
|
+
height: 100%;
|
|
7477
|
+
}
|
|
7478
|
+
`;
|
|
7485
7479
|
__decorateClass([
|
|
7486
7480
|
n4()
|
|
7487
7481
|
], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
|
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luzmo/embed",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.10.0-es2021",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"lit": "^3.3.1",
|
|
6
|
-
"@luzmo/shared-embed": "5.
|
|
6
|
+
"@luzmo/shared-embed": "5.9.0"
|
|
7
7
|
},
|
|
8
8
|
"keywords": [
|
|
9
|
+
"es2021",
|
|
10
|
+
"safari-compatible",
|
|
9
11
|
"es6",
|
|
10
12
|
"web-component",
|
|
11
13
|
"lit",
|
|
@@ -21,5 +23,9 @@
|
|
|
21
23
|
],
|
|
22
24
|
"module": "./index.js",
|
|
23
25
|
"types": "./src/index.d.ts",
|
|
24
|
-
"license": "SEE LICENSE IN LICENSE"
|
|
26
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
27
|
+
"description": "ES2021 build for Safari < 16.3 compatibility",
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"tag": "es2021"
|
|
30
|
+
}
|
|
25
31
|
}
|
|
@@ -25,7 +25,7 @@ interface LuzmoVizItemComponentInterface extends HTMLElement {
|
|
|
25
25
|
dashboardId?: string;
|
|
26
26
|
itemId?: string;
|
|
27
27
|
getFilters: () => FilterGroup[];
|
|
28
|
-
export: (type?: VizItemExportType) => void
|
|
28
|
+
export: (type?: VizItemExportType) => Promise<string | void>;
|
|
29
29
|
refreshData: () => void;
|
|
30
30
|
getData: () => SharedLib.ItemData;
|
|
31
31
|
setSelectedData: (selectedDataInput: SharedLib.SelectedDataInput) => SharedLib.SetSelectedData;
|
|
@@ -57,7 +57,7 @@ export declare class LuzmoBaseVizItem extends LitElement implements LuzmoVizItem
|
|
|
57
57
|
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
58
58
|
canInitializeVizItem(): boolean;
|
|
59
59
|
getFilters(): FilterGroup[];
|
|
60
|
-
export(type?: VizItemExportType): void
|
|
60
|
+
export(type?: VizItemExportType): Promise<string | void>;
|
|
61
61
|
getData(): SharedLib.ItemData;
|
|
62
62
|
refreshData(): void;
|
|
63
63
|
setSelectedData(selectedDataInput: SharedLib.SelectedDataInput): SharedLib.SetSelectedData;
|