@luzmo/embed 7.3.0 → 7.4.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 +5 -0
- package/README.md +2 -2
- package/index.cjs +32 -38
- package/index.js +35 -39
- package/luzmo-embed.min.js +333 -150
- package/package.json +9 -3
- package/src/index.d.ts +1 -1
- package/src/lib/dashboard/dashboard-base.d.ts +2 -3
- package/src/lib/viz-item/viz-item.base.d.ts +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project are documented in this file.
|
|
4
4
|
|
|
5
|
+
## [7.4.0] - 2026-09-16
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- `DashboardFilterOutput` and `ItemFilterOutput` types, describing the filters returned by `getFilters()` on `<luzmo-embed-dashboard>` and `<luzmo-embed-viz-item>` and carried by the `changedFilters` event and the dashboard and viz-item contexts.
|
|
9
|
+
|
|
5
10
|
## [7.3.0] - 2026-09-10
|
|
6
11
|
|
|
7
12
|
### Added
|
package/README.md
CHANGED
|
@@ -101,7 +101,7 @@ Below a list of available properties on the viz item web component
|
|
|
101
101
|
getData(): ItemData;
|
|
102
102
|
|
|
103
103
|
// Return an array of active filters on the viz item.
|
|
104
|
-
getFilters():
|
|
104
|
+
getFilters(): ItemFilterOutput;
|
|
105
105
|
|
|
106
106
|
// Return the live context of the viz item: id (contextId/DOM id), type, slots, options, filters and datasetIds.
|
|
107
107
|
// Used to feed a flex chart's context into an IQ chat or an /aiprompt call.
|
|
@@ -234,7 +234,7 @@ getDashboards(): Promise<LuzmoDashboard[]>;
|
|
|
234
234
|
getData(itemId: string): Promise<ItemData>;
|
|
235
235
|
|
|
236
236
|
// Returns an array of active filters.
|
|
237
|
-
getFilters(): Promise<
|
|
237
|
+
getFilters(): Promise<DashboardFilterOutput>;
|
|
238
238
|
|
|
239
239
|
// Returns the live dashboard context (current views, runtime filters and titles) as the
|
|
240
240
|
// unified `dashboard` aiprompt input (`{ type: 'dashboard', value }`, where `value` carries
|
package/index.cjs
CHANGED
|
@@ -64,7 +64,7 @@ var import_decorators = require("lit/decorators.js");
|
|
|
64
64
|
var import_style_map = require("lit/directives/style-map.js");
|
|
65
65
|
|
|
66
66
|
// libs/embed-libs/embed/package.json
|
|
67
|
-
var version = "7.
|
|
67
|
+
var version = "7.4.0";
|
|
68
68
|
|
|
69
69
|
// libs/embed-libs/embed/src/lib/helper/embed-error.utils.ts
|
|
70
70
|
function buildEmbedErrorDetail(errorMsg) {
|
|
@@ -1312,22 +1312,6 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1312
1312
|
this.libVersion = version + "-wc-luzmo";
|
|
1313
1313
|
this.postInitCallQueue = [];
|
|
1314
1314
|
}
|
|
1315
|
-
static {
|
|
1316
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1317
|
-
this.styles = import_lit3.css`
|
|
1318
|
-
:host {
|
|
1319
|
-
display: block;
|
|
1320
|
-
width: 100%;
|
|
1321
|
-
height: 100%;
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
luzmo-embed-viz-item {
|
|
1325
|
-
width: 100%;
|
|
1326
|
-
height: 1000%;
|
|
1327
|
-
display: block;
|
|
1328
|
-
}
|
|
1329
|
-
`;
|
|
1330
|
-
}
|
|
1331
1315
|
createRenderRoot() {
|
|
1332
1316
|
if (!this.style.display) {
|
|
1333
1317
|
this.style.display = "block";
|
|
@@ -1358,7 +1342,7 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1358
1342
|
type: this.type,
|
|
1359
1343
|
slots,
|
|
1360
1344
|
options: this.options,
|
|
1361
|
-
filters: typeof this.chartElement?.
|
|
1345
|
+
filters: typeof this.chartElement?.getContextFilters === "function" ? this.chartElement.getContextFilters() : typeof this.chartElement?.getFilters === "function" ? this.getFilters() : [],
|
|
1362
1346
|
datasetIds: collectVizItemDatasetIds(slots)
|
|
1363
1347
|
};
|
|
1364
1348
|
}
|
|
@@ -1467,6 +1451,20 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
1467
1451
|
return import_lit3.html` `;
|
|
1468
1452
|
}
|
|
1469
1453
|
};
|
|
1454
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1455
|
+
LuzmoBaseVizItem.styles = import_lit3.css`
|
|
1456
|
+
:host {
|
|
1457
|
+
display: block;
|
|
1458
|
+
width: 100%;
|
|
1459
|
+
height: 100%;
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
luzmo-embed-viz-item {
|
|
1463
|
+
width: 100%;
|
|
1464
|
+
height: 1000%;
|
|
1465
|
+
display: block;
|
|
1466
|
+
}
|
|
1467
|
+
`;
|
|
1470
1468
|
__decorateClass([
|
|
1471
1469
|
(0, import_decorators2.property)()
|
|
1472
1470
|
], LuzmoBaseVizItem.prototype, "appServer", 2);
|
|
@@ -1567,16 +1565,6 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
|
|
|
1567
1565
|
this.remoteEntryServer = "http://localhost:4202/";
|
|
1568
1566
|
this.aydHost = "https://ayd.luzmo.com/";
|
|
1569
1567
|
}
|
|
1570
|
-
static {
|
|
1571
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1572
|
-
this.styles = import_lit4.css`
|
|
1573
|
-
:host {
|
|
1574
|
-
display: block;
|
|
1575
|
-
width: 100%;
|
|
1576
|
-
height: 100%;
|
|
1577
|
-
}
|
|
1578
|
-
`;
|
|
1579
|
-
}
|
|
1580
1568
|
createRenderRoot() {
|
|
1581
1569
|
return this;
|
|
1582
1570
|
}
|
|
@@ -1654,6 +1642,14 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
|
|
|
1654
1642
|
observer.observe(embedChat, { childList: true, subtree: true });
|
|
1655
1643
|
}
|
|
1656
1644
|
};
|
|
1645
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1646
|
+
LuzmoIQEmbedChatComponent.styles = import_lit4.css`
|
|
1647
|
+
:host {
|
|
1648
|
+
display: block;
|
|
1649
|
+
width: 100%;
|
|
1650
|
+
height: 100%;
|
|
1651
|
+
}
|
|
1652
|
+
`;
|
|
1657
1653
|
__decorateClass([
|
|
1658
1654
|
(0, import_decorators3.property)()
|
|
1659
1655
|
], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
|
|
@@ -1731,16 +1727,6 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
|
|
|
1731
1727
|
this.libVersion = version + "-wc-luzmo";
|
|
1732
1728
|
this.remoteEntryServer = "http://localhost:4202";
|
|
1733
1729
|
}
|
|
1734
|
-
static {
|
|
1735
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1736
|
-
this.styles = import_lit5.css`
|
|
1737
|
-
:host {
|
|
1738
|
-
display: block;
|
|
1739
|
-
width: 100%;
|
|
1740
|
-
height: 100%;
|
|
1741
|
-
}
|
|
1742
|
-
`;
|
|
1743
|
-
}
|
|
1744
1730
|
createRenderRoot() {
|
|
1745
1731
|
return this;
|
|
1746
1732
|
}
|
|
@@ -1791,6 +1777,14 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
|
|
|
1791
1777
|
return import_lit5.html` `;
|
|
1792
1778
|
}
|
|
1793
1779
|
};
|
|
1780
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1781
|
+
LuzmoIQEmbedAnswerComponent.styles = import_lit5.css`
|
|
1782
|
+
:host {
|
|
1783
|
+
display: block;
|
|
1784
|
+
width: 100%;
|
|
1785
|
+
height: 100%;
|
|
1786
|
+
}
|
|
1787
|
+
`;
|
|
1794
1788
|
__decorateClass([
|
|
1795
1789
|
(0, import_decorators4.property)()
|
|
1796
1790
|
], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
|
package/index.js
CHANGED
|
@@ -20,7 +20,7 @@ import { property, query, state } from "lit/decorators.js";
|
|
|
20
20
|
import { styleMap } from "lit/directives/style-map.js";
|
|
21
21
|
|
|
22
22
|
// libs/embed-libs/embed/package.json
|
|
23
|
-
var version = "7.
|
|
23
|
+
var version = "7.4.0";
|
|
24
24
|
|
|
25
25
|
// libs/embed-libs/embed/src/lib/helper/embed-error.utils.ts
|
|
26
26
|
function buildEmbedErrorDetail(errorMsg) {
|
|
@@ -1238,7 +1238,9 @@ if (!customElements.get("luzmo-embed-dashboard")) {
|
|
|
1238
1238
|
}
|
|
1239
1239
|
|
|
1240
1240
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item.base.ts
|
|
1241
|
-
import {
|
|
1241
|
+
import {
|
|
1242
|
+
CONTENTS_VERSION
|
|
1243
|
+
} from "@luzmo/dashboard-contents-types";
|
|
1242
1244
|
import * as SharedLib3 from "@luzmo/shared-embed";
|
|
1243
1245
|
import { css as css2, html as html2, LitElement as LitElement2 } from "lit";
|
|
1244
1246
|
import { property as property2 } from "lit/decorators.js";
|
|
@@ -1268,22 +1270,6 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1268
1270
|
this.libVersion = version + "-wc-luzmo";
|
|
1269
1271
|
this.postInitCallQueue = [];
|
|
1270
1272
|
}
|
|
1271
|
-
static {
|
|
1272
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1273
|
-
this.styles = css2`
|
|
1274
|
-
:host {
|
|
1275
|
-
display: block;
|
|
1276
|
-
width: 100%;
|
|
1277
|
-
height: 100%;
|
|
1278
|
-
}
|
|
1279
|
-
|
|
1280
|
-
luzmo-embed-viz-item {
|
|
1281
|
-
width: 100%;
|
|
1282
|
-
height: 1000%;
|
|
1283
|
-
display: block;
|
|
1284
|
-
}
|
|
1285
|
-
`;
|
|
1286
|
-
}
|
|
1287
1273
|
createRenderRoot() {
|
|
1288
1274
|
if (!this.style.display) {
|
|
1289
1275
|
this.style.display = "block";
|
|
@@ -1314,7 +1300,7 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1314
1300
|
type: this.type,
|
|
1315
1301
|
slots,
|
|
1316
1302
|
options: this.options,
|
|
1317
|
-
filters: typeof this.chartElement?.
|
|
1303
|
+
filters: typeof this.chartElement?.getContextFilters === "function" ? this.chartElement.getContextFilters() : typeof this.chartElement?.getFilters === "function" ? this.getFilters() : [],
|
|
1318
1304
|
datasetIds: collectVizItemDatasetIds(slots)
|
|
1319
1305
|
};
|
|
1320
1306
|
}
|
|
@@ -1423,6 +1409,20 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
1423
1409
|
return html2` `;
|
|
1424
1410
|
}
|
|
1425
1411
|
};
|
|
1412
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1413
|
+
LuzmoBaseVizItem.styles = css2`
|
|
1414
|
+
:host {
|
|
1415
|
+
display: block;
|
|
1416
|
+
width: 100%;
|
|
1417
|
+
height: 100%;
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
luzmo-embed-viz-item {
|
|
1421
|
+
width: 100%;
|
|
1422
|
+
height: 1000%;
|
|
1423
|
+
display: block;
|
|
1424
|
+
}
|
|
1425
|
+
`;
|
|
1426
1426
|
__decorateClass([
|
|
1427
1427
|
property2()
|
|
1428
1428
|
], LuzmoBaseVizItem.prototype, "appServer", 2);
|
|
@@ -1523,16 +1523,6 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
|
|
|
1523
1523
|
this.remoteEntryServer = "http://localhost:4202/";
|
|
1524
1524
|
this.aydHost = "https://ayd.luzmo.com/";
|
|
1525
1525
|
}
|
|
1526
|
-
static {
|
|
1527
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1528
|
-
this.styles = css3`
|
|
1529
|
-
:host {
|
|
1530
|
-
display: block;
|
|
1531
|
-
width: 100%;
|
|
1532
|
-
height: 100%;
|
|
1533
|
-
}
|
|
1534
|
-
`;
|
|
1535
|
-
}
|
|
1536
1526
|
createRenderRoot() {
|
|
1537
1527
|
return this;
|
|
1538
1528
|
}
|
|
@@ -1610,6 +1600,14 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
|
|
|
1610
1600
|
observer.observe(embedChat, { childList: true, subtree: true });
|
|
1611
1601
|
}
|
|
1612
1602
|
};
|
|
1603
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1604
|
+
LuzmoIQEmbedChatComponent.styles = css3`
|
|
1605
|
+
:host {
|
|
1606
|
+
display: block;
|
|
1607
|
+
width: 100%;
|
|
1608
|
+
height: 100%;
|
|
1609
|
+
}
|
|
1610
|
+
`;
|
|
1613
1611
|
__decorateClass([
|
|
1614
1612
|
property3()
|
|
1615
1613
|
], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
|
|
@@ -1687,16 +1685,6 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
|
|
|
1687
1685
|
this.libVersion = version + "-wc-luzmo";
|
|
1688
1686
|
this.remoteEntryServer = "http://localhost:4202";
|
|
1689
1687
|
}
|
|
1690
|
-
static {
|
|
1691
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1692
|
-
this.styles = css4`
|
|
1693
|
-
:host {
|
|
1694
|
-
display: block;
|
|
1695
|
-
width: 100%;
|
|
1696
|
-
height: 100%;
|
|
1697
|
-
}
|
|
1698
|
-
`;
|
|
1699
|
-
}
|
|
1700
1688
|
createRenderRoot() {
|
|
1701
1689
|
return this;
|
|
1702
1690
|
}
|
|
@@ -1747,6 +1735,14 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
|
|
|
1747
1735
|
return html4` `;
|
|
1748
1736
|
}
|
|
1749
1737
|
};
|
|
1738
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
1739
|
+
LuzmoIQEmbedAnswerComponent.styles = css4`
|
|
1740
|
+
:host {
|
|
1741
|
+
display: block;
|
|
1742
|
+
width: 100%;
|
|
1743
|
+
height: 100%;
|
|
1744
|
+
}
|
|
1745
|
+
`;
|
|
1750
1746
|
__decorateClass([
|
|
1751
1747
|
property4()
|
|
1752
1748
|
], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
|