@luzmo/embed 8.1.0 → 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 +57 -38
- package/index.js +57 -38
- 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 +58 -39
- package/package.json +9 -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);
|
|
@@ -2809,22 +2826,6 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
2809
2826
|
this.libVersion = version + "-wc-luzmo";
|
|
2810
2827
|
this.postInitCallQueue = [];
|
|
2811
2828
|
}
|
|
2812
|
-
static {
|
|
2813
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
2814
|
-
this.styles = import_lit3.css`
|
|
2815
|
-
:host {
|
|
2816
|
-
display: block;
|
|
2817
|
-
width: 100%;
|
|
2818
|
-
height: 100%;
|
|
2819
|
-
}
|
|
2820
|
-
|
|
2821
|
-
luzmo-embed-viz-item {
|
|
2822
|
-
width: 100%;
|
|
2823
|
-
height: 1000%;
|
|
2824
|
-
display: block;
|
|
2825
|
-
}
|
|
2826
|
-
`;
|
|
2827
|
-
}
|
|
2828
2829
|
createRenderRoot() {
|
|
2829
2830
|
if (!this.style.display) {
|
|
2830
2831
|
this.style.display = "block";
|
|
@@ -2968,6 +2969,8 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
2968
2969
|
if (propertyName === "inlineData" && (value === void 0 || value === null)) {
|
|
2969
2970
|
this.inlineData = void 0;
|
|
2970
2971
|
this.chartElement.removeAttribute(mappedAttributeName);
|
|
2972
|
+
} else if ((propertyName === "screenMode" || propertyName === "querySource") && value == null) {
|
|
2973
|
+
this.chartElement.removeAttribute(mappedAttributeName);
|
|
2971
2974
|
} else {
|
|
2972
2975
|
const attributeValue = typeof value === "object" ? JSON.stringify(value) : value?.toString() ?? value;
|
|
2973
2976
|
this.chartElement.setAttribute(mappedAttributeName, attributeValue);
|
|
@@ -2991,6 +2994,20 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
|
|
|
2991
2994
|
return import_lit3.html``;
|
|
2992
2995
|
}
|
|
2993
2996
|
};
|
|
2997
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
2998
|
+
LuzmoBaseVizItem.styles = import_lit3.css`
|
|
2999
|
+
:host {
|
|
3000
|
+
display: block;
|
|
3001
|
+
width: 100%;
|
|
3002
|
+
height: 100%;
|
|
3003
|
+
}
|
|
3004
|
+
|
|
3005
|
+
luzmo-embed-viz-item {
|
|
3006
|
+
width: 100%;
|
|
3007
|
+
height: 1000%;
|
|
3008
|
+
display: block;
|
|
3009
|
+
}
|
|
3010
|
+
`;
|
|
2994
3011
|
__decorateClass([
|
|
2995
3012
|
(0, import_decorators2.property)()
|
|
2996
3013
|
], LuzmoBaseVizItem.prototype, "appServer", 2);
|
|
@@ -3041,6 +3058,12 @@ __decorateClass([
|
|
|
3041
3058
|
__decorateClass([
|
|
3042
3059
|
(0, import_decorators2.property)()
|
|
3043
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);
|
|
3044
3067
|
__decorateClass([
|
|
3045
3068
|
(0, import_decorators2.property)()
|
|
3046
3069
|
], LuzmoBaseVizItem.prototype, "itemId", 2);
|
|
@@ -3096,16 +3119,6 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
|
|
|
3096
3119
|
this.remoteEntryServer = "http://localhost:4202/";
|
|
3097
3120
|
this.aydHost = "https://ayd.luzmo.com/";
|
|
3098
3121
|
}
|
|
3099
|
-
static {
|
|
3100
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
3101
|
-
this.styles = import_lit4.css`
|
|
3102
|
-
:host {
|
|
3103
|
-
display: block;
|
|
3104
|
-
width: 100%;
|
|
3105
|
-
height: 100%;
|
|
3106
|
-
}
|
|
3107
|
-
`;
|
|
3108
|
-
}
|
|
3109
3122
|
createRenderRoot() {
|
|
3110
3123
|
return this;
|
|
3111
3124
|
}
|
|
@@ -3183,6 +3196,14 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
|
|
|
3183
3196
|
observer.observe(embedChat, { childList: true, subtree: true });
|
|
3184
3197
|
}
|
|
3185
3198
|
};
|
|
3199
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
3200
|
+
LuzmoIQEmbedChatComponent.styles = import_lit4.css`
|
|
3201
|
+
:host {
|
|
3202
|
+
display: block;
|
|
3203
|
+
width: 100%;
|
|
3204
|
+
height: 100%;
|
|
3205
|
+
}
|
|
3206
|
+
`;
|
|
3186
3207
|
__decorateClass([
|
|
3187
3208
|
(0, import_decorators3.property)()
|
|
3188
3209
|
], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
|
|
@@ -3259,16 +3280,6 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
|
|
|
3259
3280
|
this.libVersion = version + "-wc-luzmo";
|
|
3260
3281
|
this.remoteEntryServer = "http://localhost:4202";
|
|
3261
3282
|
}
|
|
3262
|
-
static {
|
|
3263
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
3264
|
-
this.styles = import_lit5.css`
|
|
3265
|
-
:host {
|
|
3266
|
-
display: block;
|
|
3267
|
-
width: 100%;
|
|
3268
|
-
height: 100%;
|
|
3269
|
-
}
|
|
3270
|
-
`;
|
|
3271
|
-
}
|
|
3272
3283
|
createRenderRoot() {
|
|
3273
3284
|
return this;
|
|
3274
3285
|
}
|
|
@@ -3319,6 +3330,14 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
|
|
|
3319
3330
|
return import_lit5.html` `;
|
|
3320
3331
|
}
|
|
3321
3332
|
};
|
|
3333
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
3334
|
+
LuzmoIQEmbedAnswerComponent.styles = import_lit5.css`
|
|
3335
|
+
:host {
|
|
3336
|
+
display: block;
|
|
3337
|
+
width: 100%;
|
|
3338
|
+
height: 100%;
|
|
3339
|
+
}
|
|
3340
|
+
`;
|
|
3322
3341
|
__decorateClass([
|
|
3323
3342
|
(0, import_decorators4.property)()
|
|
3324
3343
|
], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 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);
|
|
@@ -2775,22 +2792,6 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
2775
2792
|
this.libVersion = version + "-wc-luzmo";
|
|
2776
2793
|
this.postInitCallQueue = [];
|
|
2777
2794
|
}
|
|
2778
|
-
static {
|
|
2779
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
2780
|
-
this.styles = css2`
|
|
2781
|
-
:host {
|
|
2782
|
-
display: block;
|
|
2783
|
-
width: 100%;
|
|
2784
|
-
height: 100%;
|
|
2785
|
-
}
|
|
2786
|
-
|
|
2787
|
-
luzmo-embed-viz-item {
|
|
2788
|
-
width: 100%;
|
|
2789
|
-
height: 1000%;
|
|
2790
|
-
display: block;
|
|
2791
|
-
}
|
|
2792
|
-
`;
|
|
2793
|
-
}
|
|
2794
2795
|
createRenderRoot() {
|
|
2795
2796
|
if (!this.style.display) {
|
|
2796
2797
|
this.style.display = "block";
|
|
@@ -2934,6 +2935,8 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
2934
2935
|
if (propertyName === "inlineData" && (value === void 0 || value === null)) {
|
|
2935
2936
|
this.inlineData = void 0;
|
|
2936
2937
|
this.chartElement.removeAttribute(mappedAttributeName);
|
|
2938
|
+
} else if ((propertyName === "screenMode" || propertyName === "querySource") && value == null) {
|
|
2939
|
+
this.chartElement.removeAttribute(mappedAttributeName);
|
|
2937
2940
|
} else {
|
|
2938
2941
|
const attributeValue = typeof value === "object" ? JSON.stringify(value) : value?.toString() ?? value;
|
|
2939
2942
|
this.chartElement.setAttribute(mappedAttributeName, attributeValue);
|
|
@@ -2957,6 +2960,20 @@ var LuzmoBaseVizItem = class extends LitElement2 {
|
|
|
2957
2960
|
return html2``;
|
|
2958
2961
|
}
|
|
2959
2962
|
};
|
|
2963
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
2964
|
+
LuzmoBaseVizItem.styles = css2`
|
|
2965
|
+
:host {
|
|
2966
|
+
display: block;
|
|
2967
|
+
width: 100%;
|
|
2968
|
+
height: 100%;
|
|
2969
|
+
}
|
|
2970
|
+
|
|
2971
|
+
luzmo-embed-viz-item {
|
|
2972
|
+
width: 100%;
|
|
2973
|
+
height: 1000%;
|
|
2974
|
+
display: block;
|
|
2975
|
+
}
|
|
2976
|
+
`;
|
|
2960
2977
|
__decorateClass([
|
|
2961
2978
|
property2()
|
|
2962
2979
|
], LuzmoBaseVizItem.prototype, "appServer", 2);
|
|
@@ -3007,6 +3024,12 @@ __decorateClass([
|
|
|
3007
3024
|
__decorateClass([
|
|
3008
3025
|
property2()
|
|
3009
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);
|
|
3010
3033
|
__decorateClass([
|
|
3011
3034
|
property2()
|
|
3012
3035
|
], LuzmoBaseVizItem.prototype, "itemId", 2);
|
|
@@ -3062,16 +3085,6 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
|
|
|
3062
3085
|
this.remoteEntryServer = "http://localhost:4202/";
|
|
3063
3086
|
this.aydHost = "https://ayd.luzmo.com/";
|
|
3064
3087
|
}
|
|
3065
|
-
static {
|
|
3066
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
3067
|
-
this.styles = css3`
|
|
3068
|
-
:host {
|
|
3069
|
-
display: block;
|
|
3070
|
-
width: 100%;
|
|
3071
|
-
height: 100%;
|
|
3072
|
-
}
|
|
3073
|
-
`;
|
|
3074
|
-
}
|
|
3075
3088
|
createRenderRoot() {
|
|
3076
3089
|
return this;
|
|
3077
3090
|
}
|
|
@@ -3149,6 +3162,14 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
|
|
|
3149
3162
|
observer.observe(embedChat, { childList: true, subtree: true });
|
|
3150
3163
|
}
|
|
3151
3164
|
};
|
|
3165
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
3166
|
+
LuzmoIQEmbedChatComponent.styles = css3`
|
|
3167
|
+
:host {
|
|
3168
|
+
display: block;
|
|
3169
|
+
width: 100%;
|
|
3170
|
+
height: 100%;
|
|
3171
|
+
}
|
|
3172
|
+
`;
|
|
3152
3173
|
__decorateClass([
|
|
3153
3174
|
property3()
|
|
3154
3175
|
], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
|
|
@@ -3225,16 +3246,6 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
|
|
|
3225
3246
|
this.libVersion = version + "-wc-luzmo";
|
|
3226
3247
|
this.remoteEntryServer = "http://localhost:4202";
|
|
3227
3248
|
}
|
|
3228
|
-
static {
|
|
3229
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
3230
|
-
this.styles = css4`
|
|
3231
|
-
:host {
|
|
3232
|
-
display: block;
|
|
3233
|
-
width: 100%;
|
|
3234
|
-
height: 100%;
|
|
3235
|
-
}
|
|
3236
|
-
`;
|
|
3237
|
-
}
|
|
3238
3249
|
createRenderRoot() {
|
|
3239
3250
|
return this;
|
|
3240
3251
|
}
|
|
@@ -3285,6 +3296,14 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
|
|
|
3285
3296
|
return html4` `;
|
|
3286
3297
|
}
|
|
3287
3298
|
};
|
|
3299
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
3300
|
+
LuzmoIQEmbedAnswerComponent.styles = css4`
|
|
3301
|
+
:host {
|
|
3302
|
+
display: block;
|
|
3303
|
+
width: 100%;
|
|
3304
|
+
height: 100%;
|
|
3305
|
+
}
|
|
3306
|
+
`;
|
|
3288
3307
|
__decorateClass([
|
|
3289
3308
|
property4()
|
|
3290
3309
|
], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 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;
|
|
@@ -7512,22 +7529,6 @@ var LuzmoBaseVizItem = class extends i4 {
|
|
|
7512
7529
|
this.libVersion = version + "-wc-luzmo";
|
|
7513
7530
|
this.postInitCallQueue = [];
|
|
7514
7531
|
}
|
|
7515
|
-
static {
|
|
7516
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
7517
|
-
this.styles = i`
|
|
7518
|
-
:host {
|
|
7519
|
-
display: block;
|
|
7520
|
-
width: 100%;
|
|
7521
|
-
height: 100%;
|
|
7522
|
-
}
|
|
7523
|
-
|
|
7524
|
-
luzmo-embed-viz-item {
|
|
7525
|
-
width: 100%;
|
|
7526
|
-
height: 1000%;
|
|
7527
|
-
display: block;
|
|
7528
|
-
}
|
|
7529
|
-
`;
|
|
7530
|
-
}
|
|
7531
7532
|
createRenderRoot() {
|
|
7532
7533
|
if (!this.style.display) {
|
|
7533
7534
|
this.style.display = "block";
|
|
@@ -7671,6 +7672,8 @@ var LuzmoBaseVizItem = class extends i4 {
|
|
|
7671
7672
|
if (propertyName === "inlineData" && (value === void 0 || value === null)) {
|
|
7672
7673
|
this.inlineData = void 0;
|
|
7673
7674
|
this.chartElement.removeAttribute(mappedAttributeName);
|
|
7675
|
+
} else if ((propertyName === "screenMode" || propertyName === "querySource") && value == null) {
|
|
7676
|
+
this.chartElement.removeAttribute(mappedAttributeName);
|
|
7674
7677
|
} else {
|
|
7675
7678
|
const attributeValue = typeof value === "object" ? JSON.stringify(value) : value?.toString() ?? value;
|
|
7676
7679
|
this.chartElement.setAttribute(mappedAttributeName, attributeValue);
|
|
@@ -7694,6 +7697,20 @@ var LuzmoBaseVizItem = class extends i4 {
|
|
|
7694
7697
|
return b2``;
|
|
7695
7698
|
}
|
|
7696
7699
|
};
|
|
7700
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
7701
|
+
LuzmoBaseVizItem.styles = i`
|
|
7702
|
+
:host {
|
|
7703
|
+
display: block;
|
|
7704
|
+
width: 100%;
|
|
7705
|
+
height: 100%;
|
|
7706
|
+
}
|
|
7707
|
+
|
|
7708
|
+
luzmo-embed-viz-item {
|
|
7709
|
+
width: 100%;
|
|
7710
|
+
height: 1000%;
|
|
7711
|
+
display: block;
|
|
7712
|
+
}
|
|
7713
|
+
`;
|
|
7697
7714
|
__decorateClass([
|
|
7698
7715
|
n4()
|
|
7699
7716
|
], LuzmoBaseVizItem.prototype, "appServer", 2);
|
|
@@ -7744,6 +7761,12 @@ __decorateClass([
|
|
|
7744
7761
|
__decorateClass([
|
|
7745
7762
|
n4()
|
|
7746
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);
|
|
7747
7770
|
__decorateClass([
|
|
7748
7771
|
n4()
|
|
7749
7772
|
], LuzmoBaseVizItem.prototype, "itemId", 2);
|
|
@@ -7797,16 +7820,6 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
|
|
|
7797
7820
|
this.remoteEntryServer = "http://localhost:4202/";
|
|
7798
7821
|
this.aydHost = "https://ayd.luzmo.com/";
|
|
7799
7822
|
}
|
|
7800
|
-
static {
|
|
7801
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
7802
|
-
this.styles = i`
|
|
7803
|
-
:host {
|
|
7804
|
-
display: block;
|
|
7805
|
-
width: 100%;
|
|
7806
|
-
height: 100%;
|
|
7807
|
-
}
|
|
7808
|
-
`;
|
|
7809
|
-
}
|
|
7810
7823
|
createRenderRoot() {
|
|
7811
7824
|
return this;
|
|
7812
7825
|
}
|
|
@@ -7884,6 +7897,14 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
|
|
|
7884
7897
|
observer.observe(embedChat, { childList: true, subtree: true });
|
|
7885
7898
|
}
|
|
7886
7899
|
};
|
|
7900
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
7901
|
+
LuzmoIQEmbedChatComponent.styles = i`
|
|
7902
|
+
:host {
|
|
7903
|
+
display: block;
|
|
7904
|
+
width: 100%;
|
|
7905
|
+
height: 100%;
|
|
7906
|
+
}
|
|
7907
|
+
`;
|
|
7887
7908
|
__decorateClass([
|
|
7888
7909
|
n4()
|
|
7889
7910
|
], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
|
|
@@ -7958,16 +7979,6 @@ var LuzmoIQEmbedAnswerComponent = class extends i4 {
|
|
|
7958
7979
|
this.libVersion = version + "-wc-luzmo";
|
|
7959
7980
|
this.remoteEntryServer = "http://localhost:4202";
|
|
7960
7981
|
}
|
|
7961
|
-
static {
|
|
7962
|
-
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
7963
|
-
this.styles = i`
|
|
7964
|
-
:host {
|
|
7965
|
-
display: block;
|
|
7966
|
-
width: 100%;
|
|
7967
|
-
height: 100%;
|
|
7968
|
-
}
|
|
7969
|
-
`;
|
|
7970
|
-
}
|
|
7971
7982
|
createRenderRoot() {
|
|
7972
7983
|
return this;
|
|
7973
7984
|
}
|
|
@@ -8018,6 +8029,14 @@ var LuzmoIQEmbedAnswerComponent = class extends i4 {
|
|
|
8018
8029
|
return b2` `;
|
|
8019
8030
|
}
|
|
8020
8031
|
};
|
|
8032
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
8033
|
+
LuzmoIQEmbedAnswerComponent.styles = i`
|
|
8034
|
+
:host {
|
|
8035
|
+
display: block;
|
|
8036
|
+
width: 100%;
|
|
8037
|
+
height: 100%;
|
|
8038
|
+
}
|
|
8039
|
+
`;
|
|
8021
8040
|
__decorateClass([
|
|
8022
8041
|
n4()
|
|
8023
8042
|
], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
|
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
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
|
+
"es2021",
|
|
11
|
+
"safari-compatible",
|
|
10
12
|
"es6",
|
|
11
13
|
"web-component",
|
|
12
14
|
"lit",
|
|
@@ -41,5 +43,9 @@
|
|
|
41
43
|
"default": "./index.rn.js"
|
|
42
44
|
}
|
|
43
45
|
},
|
|
44
|
-
"license": "SEE LICENSE IN LICENSE"
|
|
46
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
47
|
+
"description": "ES2021 build for Safari before 16.4",
|
|
48
|
+
"publishConfig": {
|
|
49
|
+
"tag": "es2021"
|
|
50
|
+
}
|
|
45
51
|
}
|
|
@@ -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;
|