@luzmo/embed 8.1.0-es2021 → 9.0.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 +15 -0
- package/README.md +1 -0
- package/index.cjs +27 -2
- package/index.js +27 -2
- package/index.rn.cjs +10 -0
- package/index.rn.js +10 -0
- package/index.shared.cjs +10 -0
- package/index.shared.js +10 -0
- package/luzmo-embed.min.js +28 -3
- package/package.json +3 -3
- package/src/lib/dashboard/dashboard-base.d.ts +1 -0
- package/src/lib/shared/helpers/default-parameters.d.ts +2 -1
- package/src/lib/shared/models/common.model.d.ts +1 -0
- package/src/lib/shared/models/translation.model.d.ts +1 -1
- package/src/lib/viz-item/viz-item.base.d.ts +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project are documented in this file.
|
|
4
4
|
|
|
5
|
+
## [9.0.0] - 2026-11-10
|
|
6
|
+
|
|
7
|
+
### Breaking changes
|
|
8
|
+
|
|
9
|
+
- If you use the comparison types directly: `PeriodOverPeriod`, the type of a slot's `periodOverPeriod`, now has the compact shape (`type`, `level`, `quantity`, `periodToDate`, an optional `rangeType`, and an optional `offsetDateColumn` with only `id`, `datasetId` and `lowestLevel`). `newUi`, `minLevel` and `hasConnectedComparisonFilter` are removed.
|
|
10
|
+
- `VizItemContextConfig`, `VizItemContextSlotConfig` and `VizItemContextSizeVariant` are removed. Use `VizItemConfig` and the slot's `context` instead. This package only re-exports types from `@luzmo/dashboard-contents-types`, so the removed `<item>ContextConfig` constants and `getContextConfigByItemType` were never usable from it at runtime.
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- `agentId` on `<luzmo-embed-dashboard>`, so the dashboard's Luzmo IQ panel and the editor's agent panel use a saved agent. The IQ panel uses the agent's rules, instructions, datasets and its analysis and chart capabilities. The editor's agent panel uses the agent's rules, instructions and datasets, with the editor's own capabilities. The agent must belong to the same organization, and if it has saved datasets, only the ones the dashboard also uses are available.
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- `@luzmo/dashboard-contents-types` is now `2.1.0` (was `1.0.45` in 8.1.0). It brings the KPI item type, the donut, funnel, sunburst and heat table options configs, the compact period comparison types and the item config type `VizItemConfig`, which this package re-exports as types.
|
|
19
|
+
|
|
5
20
|
## [8.1.0] - 2026-10-09
|
|
6
21
|
|
|
7
22
|
### Added
|
package/README.md
CHANGED
|
@@ -213,6 +213,7 @@ Below a list of available properties on the dashboard web component
|
|
|
213
213
|
| `loaderSpinnerBackground` | string | Background color of the spinner (Default: 'rgba(169, 169, 169, 0.14)') |
|
|
214
214
|
| `appServer` | string | Tenancy of luzmo.com to connect to (Default: 'https://app.luzmo.com/' for US set appServer to 'https://app.us.luzmo.com/') |
|
|
215
215
|
| `timezoneId` | string | The timezone you you wish to use in your dashboard. This timezone id needs to be a valid id that is available in the [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List), for example: Europe/Brussels or America/New_York. |
|
|
216
|
+
| `agentId` | string | Use a saved agent in the dashboard's Luzmo IQ panel and in the editor's agent panel. The IQ panel uses the agent's rules, instructions, datasets and its analysis and chart capabilities. The editor's agent panel uses the agent's rules, instructions and datasets, with the editor's own capabilities. The agent must belong to the same organization. If it has saved datasets, only the ones also used in the dashboard are available. If the agent cannot be found or used, the panels show an error and a warning naming the `agentId` is logged to the browser console. |
|
|
216
217
|
| `apiHost` | string | API server to connect to (Default: 'https://api.luzmo.com/' , for US set apiHost to 'https://api.us.luzmo.com/') |
|
|
217
218
|
| `editMode` | string | Specifies if the embedded dashboard should be editable or not. Accepted values: "view" , "editLimited" , "editFull" . Use "view" if you don't want the embedded dashboard to be editable. (Default: "view" ) |
|
|
218
219
|
| `mainColor` | string | Optional override of the main color used in the whitelabeling of the embedded dashboard editor. If not provided, the main color of the whitelabeling colors set on the organization will be used. Should be specified as a string of rgb values (i.e. "rgb(50,50,50)"). |
|
package/index.cjs
CHANGED
|
@@ -123,6 +123,7 @@ var DEFAULT_PARAMETERS = {
|
|
|
123
123
|
loaderSpinnerColor: "rgb(68, 52, 255)",
|
|
124
124
|
loaderSpinnerBackground: "rgba(169, 169, 169, 0.14)",
|
|
125
125
|
timezoneId: null,
|
|
126
|
+
agentId: null,
|
|
126
127
|
contextId: null
|
|
127
128
|
};
|
|
128
129
|
|
|
@@ -345,6 +346,7 @@ var createIframeUrl = (dashboardContent) => {
|
|
|
345
346
|
key,
|
|
346
347
|
token,
|
|
347
348
|
timezoneId,
|
|
349
|
+
agentId,
|
|
348
350
|
itemEmbedding,
|
|
349
351
|
itemDimensions,
|
|
350
352
|
dashboardId,
|
|
@@ -384,6 +386,9 @@ var createIframeUrl = (dashboardContent) => {
|
|
|
384
386
|
if (timezoneId) {
|
|
385
387
|
searchString.push("timezoneId=" + timezoneId);
|
|
386
388
|
}
|
|
389
|
+
if (agentId) {
|
|
390
|
+
searchString.push("agentId=" + agentId);
|
|
391
|
+
}
|
|
387
392
|
if (itemEmbedding && itemDimensions && itemDimensions.width) {
|
|
388
393
|
searchString.push("width=" + itemDimensions.width);
|
|
389
394
|
}
|
|
@@ -1214,6 +1219,7 @@ var _extendAndValidate = (dashboardContent) => {
|
|
|
1214
1219
|
"token",
|
|
1215
1220
|
"screenMode",
|
|
1216
1221
|
"timezoneId",
|
|
1222
|
+
"agentId",
|
|
1217
1223
|
"itemId",
|
|
1218
1224
|
"container",
|
|
1219
1225
|
"loaderBackground",
|
|
@@ -1335,6 +1341,8 @@ var libraryTypeToWebComponentTypeMapping = {
|
|
|
1335
1341
|
canFilter: "can-filter",
|
|
1336
1342
|
filters: "filters",
|
|
1337
1343
|
dashboardId: "dashboard-id",
|
|
1344
|
+
screenMode: "screen-mode",
|
|
1345
|
+
querySource: "query-source",
|
|
1338
1346
|
itemId: "item-id",
|
|
1339
1347
|
aiMessageAssetId: "ai-message-asset-id",
|
|
1340
1348
|
dashboardContentsVersion: "dashboard-contents-version",
|
|
@@ -1456,7 +1464,7 @@ var import_decorators = require("lit/decorators.js");
|
|
|
1456
1464
|
var import_style_map = require("lit/directives/style-map.js");
|
|
1457
1465
|
|
|
1458
1466
|
// libs/embed-libs/embed/package.json
|
|
1459
|
-
var version = "
|
|
1467
|
+
var version = "9.0.0";
|
|
1460
1468
|
|
|
1461
1469
|
// libs/embed-libs/embed/src/lib/utils/embed-error.utils.ts
|
|
1462
1470
|
function buildEmbedErrorDetail(errorMsg) {
|
|
@@ -1897,7 +1905,8 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
1897
1905
|
appServer: "app-server",
|
|
1898
1906
|
apiHost: "api-host",
|
|
1899
1907
|
itemDimensions: "item-dimensions",
|
|
1900
|
-
timezoneId: "timezone-id"
|
|
1908
|
+
timezoneId: "timezone-id",
|
|
1909
|
+
agentId: "agent-id"
|
|
1901
1910
|
};
|
|
1902
1911
|
this.loaderSize = 32;
|
|
1903
1912
|
this.borderWidth = 3;
|
|
@@ -2134,6 +2143,7 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
2134
2143
|
"appServer",
|
|
2135
2144
|
"apiHost",
|
|
2136
2145
|
"timezoneId",
|
|
2146
|
+
"agentId",
|
|
2137
2147
|
"itemDimensions"
|
|
2138
2148
|
]);
|
|
2139
2149
|
const webComponentRenderProperties = /* @__PURE__ */ new Set([
|
|
@@ -2145,6 +2155,7 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
2145
2155
|
"theme",
|
|
2146
2156
|
"screenMode",
|
|
2147
2157
|
"timezoneId",
|
|
2158
|
+
"agentId",
|
|
2148
2159
|
"itemDimensions"
|
|
2149
2160
|
]);
|
|
2150
2161
|
const conditionsToCheck = ["dashboardId", "dashboardSlug", "itemId"];
|
|
@@ -2298,6 +2309,9 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
2298
2309
|
if (this.timezoneId) {
|
|
2299
2310
|
defaultParameters.timezoneId = this.timezoneId;
|
|
2300
2311
|
}
|
|
2312
|
+
if (this.agentId) {
|
|
2313
|
+
defaultParameters.agentId = this.agentId;
|
|
2314
|
+
}
|
|
2301
2315
|
if (this.itemDimensions) {
|
|
2302
2316
|
defaultParameters.itemDimensions = this.itemDimensions;
|
|
2303
2317
|
}
|
|
@@ -2678,6 +2692,9 @@ __decorateClass([
|
|
|
2678
2692
|
__decorateClass([
|
|
2679
2693
|
(0, import_decorators.property)()
|
|
2680
2694
|
], LuzmoDashboard.prototype, "timezoneId", 2);
|
|
2695
|
+
__decorateClass([
|
|
2696
|
+
(0, import_decorators.property)()
|
|
2697
|
+
], LuzmoDashboard.prototype, "agentId", 2);
|
|
2681
2698
|
__decorateClass([
|
|
2682
2699
|
(0, import_decorators.property)()
|
|
2683
2700
|
], LuzmoDashboard.prototype, "apiHost", 2);
|
|
@@ -2952,6 +2969,8 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
2952
2969
|
if (propertyName === "inlineData" && (value === void 0 || value === null)) {
|
|
2953
2970
|
this.inlineData = void 0;
|
|
2954
2971
|
this.chartElement.removeAttribute(mappedAttributeName);
|
|
2972
|
+
} else if ((propertyName === "screenMode" || propertyName === "querySource") && value == null) {
|
|
2973
|
+
this.chartElement.removeAttribute(mappedAttributeName);
|
|
2955
2974
|
} else {
|
|
2956
2975
|
const attributeValue = typeof value === "object" ? JSON.stringify(value) : value?.toString() ?? value;
|
|
2957
2976
|
this.chartElement.setAttribute(mappedAttributeName, attributeValue);
|
|
@@ -3039,6 +3058,12 @@ __decorateClass([
|
|
|
3039
3058
|
__decorateClass([
|
|
3040
3059
|
(0, import_decorators2.property)()
|
|
3041
3060
|
], LuzmoBaseVizItem.prototype, "dashboardId", 2);
|
|
3061
|
+
__decorateClass([
|
|
3062
|
+
(0, import_decorators2.property)({ attribute: "screen-mode" })
|
|
3063
|
+
], LuzmoBaseVizItem.prototype, "screenMode", 2);
|
|
3064
|
+
__decorateClass([
|
|
3065
|
+
(0, import_decorators2.property)({ attribute: "query-source" })
|
|
3066
|
+
], LuzmoBaseVizItem.prototype, "querySource", 2);
|
|
3042
3067
|
__decorateClass([
|
|
3043
3068
|
(0, import_decorators2.property)()
|
|
3044
3069
|
], LuzmoBaseVizItem.prototype, "itemId", 2);
|
package/index.js
CHANGED
|
@@ -87,6 +87,7 @@ var DEFAULT_PARAMETERS = {
|
|
|
87
87
|
loaderSpinnerColor: "rgb(68, 52, 255)",
|
|
88
88
|
loaderSpinnerBackground: "rgba(169, 169, 169, 0.14)",
|
|
89
89
|
timezoneId: null,
|
|
90
|
+
agentId: null,
|
|
90
91
|
contextId: null
|
|
91
92
|
};
|
|
92
93
|
|
|
@@ -309,6 +310,7 @@ var createIframeUrl = (dashboardContent) => {
|
|
|
309
310
|
key,
|
|
310
311
|
token,
|
|
311
312
|
timezoneId,
|
|
313
|
+
agentId,
|
|
312
314
|
itemEmbedding,
|
|
313
315
|
itemDimensions,
|
|
314
316
|
dashboardId,
|
|
@@ -348,6 +350,9 @@ var createIframeUrl = (dashboardContent) => {
|
|
|
348
350
|
if (timezoneId) {
|
|
349
351
|
searchString.push("timezoneId=" + timezoneId);
|
|
350
352
|
}
|
|
353
|
+
if (agentId) {
|
|
354
|
+
searchString.push("agentId=" + agentId);
|
|
355
|
+
}
|
|
351
356
|
if (itemEmbedding && itemDimensions && itemDimensions.width) {
|
|
352
357
|
searchString.push("width=" + itemDimensions.width);
|
|
353
358
|
}
|
|
@@ -1178,6 +1183,7 @@ var _extendAndValidate = (dashboardContent) => {
|
|
|
1178
1183
|
"token",
|
|
1179
1184
|
"screenMode",
|
|
1180
1185
|
"timezoneId",
|
|
1186
|
+
"agentId",
|
|
1181
1187
|
"itemId",
|
|
1182
1188
|
"container",
|
|
1183
1189
|
"loaderBackground",
|
|
@@ -1299,6 +1305,8 @@ var libraryTypeToWebComponentTypeMapping = {
|
|
|
1299
1305
|
canFilter: "can-filter",
|
|
1300
1306
|
filters: "filters",
|
|
1301
1307
|
dashboardId: "dashboard-id",
|
|
1308
|
+
screenMode: "screen-mode",
|
|
1309
|
+
querySource: "query-source",
|
|
1302
1310
|
itemId: "item-id",
|
|
1303
1311
|
aiMessageAssetId: "ai-message-asset-id",
|
|
1304
1312
|
dashboardContentsVersion: "dashboard-contents-version",
|
|
@@ -1420,7 +1428,7 @@ import { property, query, state } from "lit/decorators.js";
|
|
|
1420
1428
|
import { styleMap } from "lit/directives/style-map.js";
|
|
1421
1429
|
|
|
1422
1430
|
// libs/embed-libs/embed/package.json
|
|
1423
|
-
var version = "
|
|
1431
|
+
var version = "9.0.0";
|
|
1424
1432
|
|
|
1425
1433
|
// libs/embed-libs/embed/src/lib/utils/embed-error.utils.ts
|
|
1426
1434
|
function buildEmbedErrorDetail(errorMsg) {
|
|
@@ -1861,7 +1869,8 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
1861
1869
|
appServer: "app-server",
|
|
1862
1870
|
apiHost: "api-host",
|
|
1863
1871
|
itemDimensions: "item-dimensions",
|
|
1864
|
-
timezoneId: "timezone-id"
|
|
1872
|
+
timezoneId: "timezone-id",
|
|
1873
|
+
agentId: "agent-id"
|
|
1865
1874
|
};
|
|
1866
1875
|
this.loaderSize = 32;
|
|
1867
1876
|
this.borderWidth = 3;
|
|
@@ -2098,6 +2107,7 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
2098
2107
|
"appServer",
|
|
2099
2108
|
"apiHost",
|
|
2100
2109
|
"timezoneId",
|
|
2110
|
+
"agentId",
|
|
2101
2111
|
"itemDimensions"
|
|
2102
2112
|
]);
|
|
2103
2113
|
const webComponentRenderProperties = /* @__PURE__ */ new Set([
|
|
@@ -2109,6 +2119,7 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
2109
2119
|
"theme",
|
|
2110
2120
|
"screenMode",
|
|
2111
2121
|
"timezoneId",
|
|
2122
|
+
"agentId",
|
|
2112
2123
|
"itemDimensions"
|
|
2113
2124
|
]);
|
|
2114
2125
|
const conditionsToCheck = ["dashboardId", "dashboardSlug", "itemId"];
|
|
@@ -2262,6 +2273,9 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
2262
2273
|
if (this.timezoneId) {
|
|
2263
2274
|
defaultParameters.timezoneId = this.timezoneId;
|
|
2264
2275
|
}
|
|
2276
|
+
if (this.agentId) {
|
|
2277
|
+
defaultParameters.agentId = this.agentId;
|
|
2278
|
+
}
|
|
2265
2279
|
if (this.itemDimensions) {
|
|
2266
2280
|
defaultParameters.itemDimensions = this.itemDimensions;
|
|
2267
2281
|
}
|
|
@@ -2642,6 +2656,9 @@ __decorateClass([
|
|
|
2642
2656
|
__decorateClass([
|
|
2643
2657
|
property()
|
|
2644
2658
|
], LuzmoDashboard.prototype, "timezoneId", 2);
|
|
2659
|
+
__decorateClass([
|
|
2660
|
+
property()
|
|
2661
|
+
], LuzmoDashboard.prototype, "agentId", 2);
|
|
2645
2662
|
__decorateClass([
|
|
2646
2663
|
property()
|
|
2647
2664
|
], LuzmoDashboard.prototype, "apiHost", 2);
|
|
@@ -2918,6 +2935,8 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
2918
2935
|
if (propertyName === "inlineData" && (value === void 0 || value === null)) {
|
|
2919
2936
|
this.inlineData = void 0;
|
|
2920
2937
|
this.chartElement.removeAttribute(mappedAttributeName);
|
|
2938
|
+
} else if ((propertyName === "screenMode" || propertyName === "querySource") && value == null) {
|
|
2939
|
+
this.chartElement.removeAttribute(mappedAttributeName);
|
|
2921
2940
|
} else {
|
|
2922
2941
|
const attributeValue = typeof value === "object" ? JSON.stringify(value) : value?.toString() ?? value;
|
|
2923
2942
|
this.chartElement.setAttribute(mappedAttributeName, attributeValue);
|
|
@@ -3005,6 +3024,12 @@ __decorateClass([
|
|
|
3005
3024
|
__decorateClass([
|
|
3006
3025
|
property2()
|
|
3007
3026
|
], LuzmoBaseVizItem.prototype, "dashboardId", 2);
|
|
3027
|
+
__decorateClass([
|
|
3028
|
+
property2({ attribute: "screen-mode" })
|
|
3029
|
+
], LuzmoBaseVizItem.prototype, "screenMode", 2);
|
|
3030
|
+
__decorateClass([
|
|
3031
|
+
property2({ attribute: "query-source" })
|
|
3032
|
+
], LuzmoBaseVizItem.prototype, "querySource", 2);
|
|
3008
3033
|
__decorateClass([
|
|
3009
3034
|
property2()
|
|
3010
3035
|
], LuzmoBaseVizItem.prototype, "itemId", 2);
|
package/index.rn.cjs
CHANGED
|
@@ -145,6 +145,7 @@ var DEFAULT_PARAMETERS = {
|
|
|
145
145
|
loaderSpinnerColor: "rgb(68, 52, 255)",
|
|
146
146
|
loaderSpinnerBackground: "rgba(169, 169, 169, 0.14)",
|
|
147
147
|
timezoneId: null,
|
|
148
|
+
agentId: null,
|
|
148
149
|
contextId: null
|
|
149
150
|
};
|
|
150
151
|
|
|
@@ -369,6 +370,7 @@ var createIframeUrl = (dashboardContent) => {
|
|
|
369
370
|
key,
|
|
370
371
|
token,
|
|
371
372
|
timezoneId,
|
|
373
|
+
agentId,
|
|
372
374
|
itemEmbedding,
|
|
373
375
|
itemDimensions,
|
|
374
376
|
dashboardId,
|
|
@@ -408,6 +410,9 @@ var createIframeUrl = (dashboardContent) => {
|
|
|
408
410
|
if (timezoneId) {
|
|
409
411
|
searchString.push("timezoneId=" + timezoneId);
|
|
410
412
|
}
|
|
413
|
+
if (agentId) {
|
|
414
|
+
searchString.push("agentId=" + agentId);
|
|
415
|
+
}
|
|
411
416
|
if (itemEmbedding && itemDimensions && itemDimensions.width) {
|
|
412
417
|
searchString.push("width=" + itemDimensions.width);
|
|
413
418
|
}
|
|
@@ -1238,6 +1243,7 @@ var _extendAndValidate = (dashboardContent) => {
|
|
|
1238
1243
|
"token",
|
|
1239
1244
|
"screenMode",
|
|
1240
1245
|
"timezoneId",
|
|
1246
|
+
"agentId",
|
|
1241
1247
|
"itemId",
|
|
1242
1248
|
"container",
|
|
1243
1249
|
"loaderBackground",
|
|
@@ -1359,6 +1365,8 @@ var libraryTypeToWebComponentTypeMapping = {
|
|
|
1359
1365
|
canFilter: "can-filter",
|
|
1360
1366
|
filters: "filters",
|
|
1361
1367
|
dashboardId: "dashboard-id",
|
|
1368
|
+
screenMode: "screen-mode",
|
|
1369
|
+
querySource: "query-source",
|
|
1362
1370
|
itemId: "item-id",
|
|
1363
1371
|
aiMessageAssetId: "ai-message-asset-id",
|
|
1364
1372
|
dashboardContentsVersion: "dashboard-contents-version",
|
|
@@ -1378,6 +1386,8 @@ var libraryAcceptedParametersList = [
|
|
|
1378
1386
|
"contextId",
|
|
1379
1387
|
"itemId",
|
|
1380
1388
|
"dashboardId",
|
|
1389
|
+
"screenMode",
|
|
1390
|
+
"querySource",
|
|
1381
1391
|
"aiMessageAssetId",
|
|
1382
1392
|
"libVersion"
|
|
1383
1393
|
];
|
package/index.rn.js
CHANGED
|
@@ -76,6 +76,7 @@ var DEFAULT_PARAMETERS = {
|
|
|
76
76
|
loaderSpinnerColor: "rgb(68, 52, 255)",
|
|
77
77
|
loaderSpinnerBackground: "rgba(169, 169, 169, 0.14)",
|
|
78
78
|
timezoneId: null,
|
|
79
|
+
agentId: null,
|
|
79
80
|
contextId: null
|
|
80
81
|
};
|
|
81
82
|
|
|
@@ -300,6 +301,7 @@ var createIframeUrl = (dashboardContent) => {
|
|
|
300
301
|
key,
|
|
301
302
|
token,
|
|
302
303
|
timezoneId,
|
|
304
|
+
agentId,
|
|
303
305
|
itemEmbedding,
|
|
304
306
|
itemDimensions,
|
|
305
307
|
dashboardId,
|
|
@@ -339,6 +341,9 @@ var createIframeUrl = (dashboardContent) => {
|
|
|
339
341
|
if (timezoneId) {
|
|
340
342
|
searchString.push("timezoneId=" + timezoneId);
|
|
341
343
|
}
|
|
344
|
+
if (agentId) {
|
|
345
|
+
searchString.push("agentId=" + agentId);
|
|
346
|
+
}
|
|
342
347
|
if (itemEmbedding && itemDimensions && itemDimensions.width) {
|
|
343
348
|
searchString.push("width=" + itemDimensions.width);
|
|
344
349
|
}
|
|
@@ -1169,6 +1174,7 @@ var _extendAndValidate = (dashboardContent) => {
|
|
|
1169
1174
|
"token",
|
|
1170
1175
|
"screenMode",
|
|
1171
1176
|
"timezoneId",
|
|
1177
|
+
"agentId",
|
|
1172
1178
|
"itemId",
|
|
1173
1179
|
"container",
|
|
1174
1180
|
"loaderBackground",
|
|
@@ -1290,6 +1296,8 @@ var libraryTypeToWebComponentTypeMapping = {
|
|
|
1290
1296
|
canFilter: "can-filter",
|
|
1291
1297
|
filters: "filters",
|
|
1292
1298
|
dashboardId: "dashboard-id",
|
|
1299
|
+
screenMode: "screen-mode",
|
|
1300
|
+
querySource: "query-source",
|
|
1293
1301
|
itemId: "item-id",
|
|
1294
1302
|
aiMessageAssetId: "ai-message-asset-id",
|
|
1295
1303
|
dashboardContentsVersion: "dashboard-contents-version",
|
|
@@ -1309,6 +1317,8 @@ var libraryAcceptedParametersList = [
|
|
|
1309
1317
|
"contextId",
|
|
1310
1318
|
"itemId",
|
|
1311
1319
|
"dashboardId",
|
|
1320
|
+
"screenMode",
|
|
1321
|
+
"querySource",
|
|
1312
1322
|
"aiMessageAssetId",
|
|
1313
1323
|
"libVersion"
|
|
1314
1324
|
];
|
package/index.shared.cjs
CHANGED
|
@@ -149,6 +149,7 @@ var DEFAULT_PARAMETERS = {
|
|
|
149
149
|
loaderSpinnerColor: "rgb(68, 52, 255)",
|
|
150
150
|
loaderSpinnerBackground: "rgba(169, 169, 169, 0.14)",
|
|
151
151
|
timezoneId: null,
|
|
152
|
+
agentId: null,
|
|
152
153
|
contextId: null
|
|
153
154
|
};
|
|
154
155
|
|
|
@@ -373,6 +374,7 @@ var createIframeUrl = (dashboardContent) => {
|
|
|
373
374
|
key,
|
|
374
375
|
token,
|
|
375
376
|
timezoneId,
|
|
377
|
+
agentId,
|
|
376
378
|
itemEmbedding,
|
|
377
379
|
itemDimensions,
|
|
378
380
|
dashboardId,
|
|
@@ -412,6 +414,9 @@ var createIframeUrl = (dashboardContent) => {
|
|
|
412
414
|
if (timezoneId) {
|
|
413
415
|
searchString.push("timezoneId=" + timezoneId);
|
|
414
416
|
}
|
|
417
|
+
if (agentId) {
|
|
418
|
+
searchString.push("agentId=" + agentId);
|
|
419
|
+
}
|
|
415
420
|
if (itemEmbedding && itemDimensions && itemDimensions.width) {
|
|
416
421
|
searchString.push("width=" + itemDimensions.width);
|
|
417
422
|
}
|
|
@@ -1242,6 +1247,7 @@ var _extendAndValidate = (dashboardContent) => {
|
|
|
1242
1247
|
"token",
|
|
1243
1248
|
"screenMode",
|
|
1244
1249
|
"timezoneId",
|
|
1250
|
+
"agentId",
|
|
1245
1251
|
"itemId",
|
|
1246
1252
|
"container",
|
|
1247
1253
|
"loaderBackground",
|
|
@@ -1363,6 +1369,8 @@ var libraryTypeToWebComponentTypeMapping = {
|
|
|
1363
1369
|
canFilter: "can-filter",
|
|
1364
1370
|
filters: "filters",
|
|
1365
1371
|
dashboardId: "dashboard-id",
|
|
1372
|
+
screenMode: "screen-mode",
|
|
1373
|
+
querySource: "query-source",
|
|
1366
1374
|
itemId: "item-id",
|
|
1367
1375
|
aiMessageAssetId: "ai-message-asset-id",
|
|
1368
1376
|
dashboardContentsVersion: "dashboard-contents-version",
|
|
@@ -1382,6 +1390,8 @@ var libraryAcceptedParametersList = [
|
|
|
1382
1390
|
"contextId",
|
|
1383
1391
|
"itemId",
|
|
1384
1392
|
"dashboardId",
|
|
1393
|
+
"screenMode",
|
|
1394
|
+
"querySource",
|
|
1385
1395
|
"aiMessageAssetId",
|
|
1386
1396
|
"libVersion"
|
|
1387
1397
|
];
|
package/index.shared.js
CHANGED
|
@@ -76,6 +76,7 @@ var DEFAULT_PARAMETERS = {
|
|
|
76
76
|
loaderSpinnerColor: "rgb(68, 52, 255)",
|
|
77
77
|
loaderSpinnerBackground: "rgba(169, 169, 169, 0.14)",
|
|
78
78
|
timezoneId: null,
|
|
79
|
+
agentId: null,
|
|
79
80
|
contextId: null
|
|
80
81
|
};
|
|
81
82
|
|
|
@@ -300,6 +301,7 @@ var createIframeUrl = (dashboardContent) => {
|
|
|
300
301
|
key,
|
|
301
302
|
token,
|
|
302
303
|
timezoneId,
|
|
304
|
+
agentId,
|
|
303
305
|
itemEmbedding,
|
|
304
306
|
itemDimensions,
|
|
305
307
|
dashboardId,
|
|
@@ -339,6 +341,9 @@ var createIframeUrl = (dashboardContent) => {
|
|
|
339
341
|
if (timezoneId) {
|
|
340
342
|
searchString.push("timezoneId=" + timezoneId);
|
|
341
343
|
}
|
|
344
|
+
if (agentId) {
|
|
345
|
+
searchString.push("agentId=" + agentId);
|
|
346
|
+
}
|
|
342
347
|
if (itemEmbedding && itemDimensions && itemDimensions.width) {
|
|
343
348
|
searchString.push("width=" + itemDimensions.width);
|
|
344
349
|
}
|
|
@@ -1169,6 +1174,7 @@ var _extendAndValidate = (dashboardContent) => {
|
|
|
1169
1174
|
"token",
|
|
1170
1175
|
"screenMode",
|
|
1171
1176
|
"timezoneId",
|
|
1177
|
+
"agentId",
|
|
1172
1178
|
"itemId",
|
|
1173
1179
|
"container",
|
|
1174
1180
|
"loaderBackground",
|
|
@@ -1290,6 +1296,8 @@ var libraryTypeToWebComponentTypeMapping = {
|
|
|
1290
1296
|
canFilter: "can-filter",
|
|
1291
1297
|
filters: "filters",
|
|
1292
1298
|
dashboardId: "dashboard-id",
|
|
1299
|
+
screenMode: "screen-mode",
|
|
1300
|
+
querySource: "query-source",
|
|
1293
1301
|
itemId: "item-id",
|
|
1294
1302
|
aiMessageAssetId: "ai-message-asset-id",
|
|
1295
1303
|
dashboardContentsVersion: "dashboard-contents-version",
|
|
@@ -1309,6 +1317,8 @@ var libraryAcceptedParametersList = [
|
|
|
1309
1317
|
"contextId",
|
|
1310
1318
|
"itemId",
|
|
1311
1319
|
"dashboardId",
|
|
1320
|
+
"screenMode",
|
|
1321
|
+
"querySource",
|
|
1312
1322
|
"aiMessageAssetId",
|
|
1313
1323
|
"libVersion"
|
|
1314
1324
|
];
|
package/luzmo-embed.min.js
CHANGED
|
@@ -124,6 +124,7 @@ var DEFAULT_PARAMETERS = {
|
|
|
124
124
|
loaderSpinnerColor: "rgb(68, 52, 255)",
|
|
125
125
|
loaderSpinnerBackground: "rgba(169, 169, 169, 0.14)",
|
|
126
126
|
timezoneId: null,
|
|
127
|
+
agentId: null,
|
|
127
128
|
contextId: null
|
|
128
129
|
};
|
|
129
130
|
|
|
@@ -346,6 +347,7 @@ var createIframeUrl = (dashboardContent) => {
|
|
|
346
347
|
key,
|
|
347
348
|
token,
|
|
348
349
|
timezoneId,
|
|
350
|
+
agentId,
|
|
349
351
|
itemEmbedding,
|
|
350
352
|
itemDimensions,
|
|
351
353
|
dashboardId,
|
|
@@ -385,6 +387,9 @@ var createIframeUrl = (dashboardContent) => {
|
|
|
385
387
|
if (timezoneId) {
|
|
386
388
|
searchString.push("timezoneId=" + timezoneId);
|
|
387
389
|
}
|
|
390
|
+
if (agentId) {
|
|
391
|
+
searchString.push("agentId=" + agentId);
|
|
392
|
+
}
|
|
388
393
|
if (itemEmbedding && itemDimensions && itemDimensions.width) {
|
|
389
394
|
searchString.push("width=" + itemDimensions.width);
|
|
390
395
|
}
|
|
@@ -1215,6 +1220,7 @@ var _extendAndValidate = (dashboardContent) => {
|
|
|
1215
1220
|
"token",
|
|
1216
1221
|
"screenMode",
|
|
1217
1222
|
"timezoneId",
|
|
1223
|
+
"agentId",
|
|
1218
1224
|
"itemId",
|
|
1219
1225
|
"container",
|
|
1220
1226
|
"loaderBackground",
|
|
@@ -1336,6 +1342,8 @@ var libraryTypeToWebComponentTypeMapping = {
|
|
|
1336
1342
|
canFilter: "can-filter",
|
|
1337
1343
|
filters: "filters",
|
|
1338
1344
|
dashboardId: "dashboard-id",
|
|
1345
|
+
screenMode: "screen-mode",
|
|
1346
|
+
querySource: "query-source",
|
|
1339
1347
|
itemId: "item-id",
|
|
1340
1348
|
aiMessageAssetId: "ai-message-asset-id",
|
|
1341
1349
|
dashboardContentsVersion: "dashboard-contents-version",
|
|
@@ -6160,7 +6168,7 @@ var o6 = e6(class extends i5 {
|
|
|
6160
6168
|
});
|
|
6161
6169
|
|
|
6162
6170
|
// libs/embed-libs/embed/package.json
|
|
6163
|
-
var version = "
|
|
6171
|
+
var version = "9.0.0";
|
|
6164
6172
|
|
|
6165
6173
|
// libs/embed-libs/embed/src/lib/utils/embed-error.utils.ts
|
|
6166
6174
|
function buildEmbedErrorDetail(errorMsg) {
|
|
@@ -6600,7 +6608,8 @@ var LuzmoDashboard = class extends i4 {
|
|
|
6600
6608
|
appServer: "app-server",
|
|
6601
6609
|
apiHost: "api-host",
|
|
6602
6610
|
itemDimensions: "item-dimensions",
|
|
6603
|
-
timezoneId: "timezone-id"
|
|
6611
|
+
timezoneId: "timezone-id",
|
|
6612
|
+
agentId: "agent-id"
|
|
6604
6613
|
};
|
|
6605
6614
|
this.loaderSize = 32;
|
|
6606
6615
|
this.borderWidth = 3;
|
|
@@ -6837,6 +6846,7 @@ var LuzmoDashboard = class extends i4 {
|
|
|
6837
6846
|
"appServer",
|
|
6838
6847
|
"apiHost",
|
|
6839
6848
|
"timezoneId",
|
|
6849
|
+
"agentId",
|
|
6840
6850
|
"itemDimensions"
|
|
6841
6851
|
]);
|
|
6842
6852
|
const webComponentRenderProperties = /* @__PURE__ */ new Set([
|
|
@@ -6848,6 +6858,7 @@ var LuzmoDashboard = class extends i4 {
|
|
|
6848
6858
|
"theme",
|
|
6849
6859
|
"screenMode",
|
|
6850
6860
|
"timezoneId",
|
|
6861
|
+
"agentId",
|
|
6851
6862
|
"itemDimensions"
|
|
6852
6863
|
]);
|
|
6853
6864
|
const conditionsToCheck = ["dashboardId", "dashboardSlug", "itemId"];
|
|
@@ -7001,6 +7012,9 @@ var LuzmoDashboard = class extends i4 {
|
|
|
7001
7012
|
if (this.timezoneId) {
|
|
7002
7013
|
defaultParameters.timezoneId = this.timezoneId;
|
|
7003
7014
|
}
|
|
7015
|
+
if (this.agentId) {
|
|
7016
|
+
defaultParameters.agentId = this.agentId;
|
|
7017
|
+
}
|
|
7004
7018
|
if (this.itemDimensions) {
|
|
7005
7019
|
defaultParameters.itemDimensions = this.itemDimensions;
|
|
7006
7020
|
}
|
|
@@ -7381,6 +7395,9 @@ __decorateClass([
|
|
|
7381
7395
|
__decorateClass([
|
|
7382
7396
|
n4()
|
|
7383
7397
|
], LuzmoDashboard.prototype, "timezoneId", 2);
|
|
7398
|
+
__decorateClass([
|
|
7399
|
+
n4()
|
|
7400
|
+
], LuzmoDashboard.prototype, "agentId", 2);
|
|
7384
7401
|
__decorateClass([
|
|
7385
7402
|
n4()
|
|
7386
7403
|
], LuzmoDashboard.prototype, "apiHost", 2);
|
|
@@ -7483,7 +7500,7 @@ if (!customElements.get("luzmo-embed-dashboard")) {
|
|
|
7483
7500
|
}
|
|
7484
7501
|
|
|
7485
7502
|
// libs/dashboard-contents-types/src/lib/shared/version.ts
|
|
7486
|
-
var CONTENTS_VERSION = "0.1.
|
|
7503
|
+
var CONTENTS_VERSION = "0.1.108";
|
|
7487
7504
|
|
|
7488
7505
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item.base.ts
|
|
7489
7506
|
var dashboardContentsVersion = CONTENTS_VERSION;
|
|
@@ -7655,6 +7672,8 @@ var LuzmoBaseVizItem = class extends i4 {
|
|
|
7655
7672
|
if (propertyName === "inlineData" && (value === void 0 || value === null)) {
|
|
7656
7673
|
this.inlineData = void 0;
|
|
7657
7674
|
this.chartElement.removeAttribute(mappedAttributeName);
|
|
7675
|
+
} else if ((propertyName === "screenMode" || propertyName === "querySource") && value == null) {
|
|
7676
|
+
this.chartElement.removeAttribute(mappedAttributeName);
|
|
7658
7677
|
} else {
|
|
7659
7678
|
const attributeValue = typeof value === "object" ? JSON.stringify(value) : value?.toString() ?? value;
|
|
7660
7679
|
this.chartElement.setAttribute(mappedAttributeName, attributeValue);
|
|
@@ -7742,6 +7761,12 @@ __decorateClass([
|
|
|
7742
7761
|
__decorateClass([
|
|
7743
7762
|
n4()
|
|
7744
7763
|
], LuzmoBaseVizItem.prototype, "dashboardId", 2);
|
|
7764
|
+
__decorateClass([
|
|
7765
|
+
n4({ attribute: "screen-mode" })
|
|
7766
|
+
], LuzmoBaseVizItem.prototype, "screenMode", 2);
|
|
7767
|
+
__decorateClass([
|
|
7768
|
+
n4({ attribute: "query-source" })
|
|
7769
|
+
], LuzmoBaseVizItem.prototype, "querySource", 2);
|
|
7745
7770
|
__decorateClass([
|
|
7746
7771
|
n4()
|
|
7747
7772
|
], LuzmoBaseVizItem.prototype, "itemId", 2);
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luzmo/embed",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0-es2021",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"lit": "^3.3.1",
|
|
6
6
|
"@module-federation/runtime": "^2.9.0",
|
|
7
|
-
"@luzmo/dashboard-contents-types": "1.0
|
|
7
|
+
"@luzmo/dashboard-contents-types": "2.1.0"
|
|
8
8
|
},
|
|
9
9
|
"keywords": [
|
|
10
10
|
"es2021",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
"license": "SEE LICENSE IN LICENSE",
|
|
47
|
-
"description": "ES2021 build for Safari
|
|
47
|
+
"description": "ES2021 build for Safari before 16.4",
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"tag": "es2021"
|
|
50
50
|
}
|
|
@@ -22,6 +22,7 @@ export declare class LuzmoDashboard extends LitElement implements SharedLib.WebC
|
|
|
22
22
|
loaderSpinnerBackground?: SharedLib.DashboardInputs['loaderSpinnerBackground'];
|
|
23
23
|
appServer?: SharedLib.DashboardInputs['appServer'];
|
|
24
24
|
timezoneId?: SharedLib.DashboardInputs['timezoneId'];
|
|
25
|
+
agentId?: SharedLib.DashboardInputs['agentId'];
|
|
25
26
|
apiHost?: SharedLib.DashboardInputs['apiHost'];
|
|
26
27
|
itemDimensions: SharedLib.DashboardInputs['itemDimensions'];
|
|
27
28
|
embedMode: SharedLib.DashboardInputs['embedMode'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DashboardContentParams, DashboardEditMode, ScreenMode } from '../models/common.model';
|
|
2
|
-
type DefaultParameters = Omit<DashboardContentParams, 'dashboardId' | 'dashboardSlug' | 'container' | 'key' | 'token' | 'editMode' | 'screenMode' | 'itemId' | 'timezoneId' | 'contextId' | 'itemDimensions'> & {
|
|
2
|
+
type DefaultParameters = Omit<DashboardContentParams, 'dashboardId' | 'dashboardSlug' | 'container' | 'key' | 'token' | 'editMode' | 'screenMode' | 'itemId' | 'timezoneId' | 'agentId' | 'contextId' | 'itemDimensions'> & {
|
|
3
3
|
dashboardId: string | null;
|
|
4
4
|
dashboardSlug: string | null;
|
|
5
5
|
container: string | null;
|
|
@@ -9,6 +9,7 @@ type DefaultParameters = Omit<DashboardContentParams, 'dashboardId' | 'dashboard
|
|
|
9
9
|
screenMode: ScreenMode | null;
|
|
10
10
|
itemId: string | null;
|
|
11
11
|
timezoneId: string | null;
|
|
12
|
+
agentId: string | null;
|
|
12
13
|
contextId: string | null;
|
|
13
14
|
itemDimensions: {
|
|
14
15
|
width: number | 'auto';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type SupportedLanguage = 'cs' | 'de' | 'en' | 'es' | 'fr' | 'it' | 'ja' | 'ko' | 'nl' | 'no' | 'pt' | 'ru' | 'sv' | 'tr';
|
|
1
|
+
export type SupportedLanguage = 'cs' | 'de' | 'en' | 'es' | 'fr' | 'hy' | 'it' | 'ja' | 'ko' | 'nl' | 'no' | 'pt' | 'ru' | 'sv' | 'tr';
|
|
2
2
|
export type SupportedEditorLanguage = 'de' | 'en' | 'es' | 'fr' | 'nl';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type InlineData, type VizItemExportType, type VizItemOptions, type VizItemSlot, type VizItemType } from '@luzmo/dashboard-contents-types';
|
|
1
|
+
import { type InlineData, type ScreenMode, type VizItemExportType, type VizItemOptions, type VizItemSlot, type VizItemType } from '@luzmo/dashboard-contents-types';
|
|
2
2
|
import { LitElement, type PropertyValues } from 'lit';
|
|
3
3
|
import * as SharedLib from '../../index.shared';
|
|
4
4
|
/**
|
|
@@ -9,7 +9,7 @@ import * as SharedLib from '../../index.shared';
|
|
|
9
9
|
* together with this dashboard contents version are passed to the dashboard app (https://app.luzmo.com/dashboard-app/remoteEntry.js)
|
|
10
10
|
* and if needed the migration will be applied on the dashboard app level.
|
|
11
11
|
*/
|
|
12
|
-
export declare const dashboardContentsVersion = "0.1.
|
|
12
|
+
export declare const dashboardContentsVersion = "0.1.108";
|
|
13
13
|
type FunctionCall = [(...args: any) => any, any[]];
|
|
14
14
|
interface LuzmoVizItemComponentInterface extends HTMLElement {
|
|
15
15
|
options?: VizItemOptions;
|
|
@@ -24,6 +24,8 @@ interface LuzmoVizItemComponentInterface extends HTMLElement {
|
|
|
24
24
|
authKey?: string;
|
|
25
25
|
authToken?: string;
|
|
26
26
|
dashboardId?: string;
|
|
27
|
+
screenMode?: ScreenMode;
|
|
28
|
+
querySource?: 'dashboard';
|
|
27
29
|
itemId?: string;
|
|
28
30
|
aiMessageAssetId?: string;
|
|
29
31
|
getFilters: () => SharedLib.ItemFilterOutput;
|
|
@@ -51,6 +53,8 @@ export declare class LuzmoBaseVizItem extends LitElement implements LuzmoVizItem
|
|
|
51
53
|
canFilter?: SharedLib.CanFilter;
|
|
52
54
|
filters?: SharedLib.FilterInput;
|
|
53
55
|
dashboardId?: string;
|
|
56
|
+
screenMode?: ScreenMode;
|
|
57
|
+
querySource?: 'dashboard';
|
|
54
58
|
itemId?: string;
|
|
55
59
|
aiMessageAssetId?: string;
|
|
56
60
|
selectedData: SharedLib.SelectedDataInput;
|