@luzmo/embed 9.1.0-es2021 → 10.0.0

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.
Files changed (83) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/MIGRATIONS.md +7 -0
  3. package/README.md +53 -4
  4. package/index.cjs +71 -39
  5. package/index.dashboard-next.cjs +6291 -0
  6. package/index.dashboard-next.js +6259 -0
  7. package/index.js +70 -39
  8. package/index.rn.cjs +19 -2
  9. package/index.rn.js +18 -2
  10. package/index.shared.cjs +19 -2
  11. package/index.shared.js +18 -2
  12. package/luzmo-dashboard-next.min.js +157860 -0
  13. package/luzmo-embed.min.js +196 -165
  14. package/package.json +16 -9
  15. package/src/index.common.d.ts +1 -0
  16. package/src/index.d.ts +3 -0
  17. package/src/index.dashboard-next.d.ts +1 -0
  18. package/src/index.internal.d.ts +3 -0
  19. package/src/lib/dashboard/dashboard-base.d.ts +1 -1
  20. package/src/lib/dashboard-next/dashboard-next-component.d.ts +76 -0
  21. package/src/lib/dashboard-next/data/dashboard-api.d.ts +9 -0
  22. package/src/lib/dashboard-next/data/dashboard-errors.d.ts +5 -0
  23. package/src/lib/dashboard-next/data/dashboard-loading-controller.d.ts +21 -0
  24. package/src/lib/dashboard-next/data/dashboard-metadata-controller.d.ts +25 -0
  25. package/src/lib/dashboard-next/data/dashboard-permissions-api.d.ts +4 -0
  26. package/src/lib/dashboard-next/data/dashboard-publishing-api.d.ts +5 -0
  27. package/src/lib/dashboard-next/data/dashboard-renderer-controller.d.ts +25 -0
  28. package/src/lib/dashboard-next/data/dashboard-variant-management-controller.d.ts +30 -0
  29. package/src/lib/dashboard-next/data/dashboard-variant-rename-controller.d.ts +18 -0
  30. package/src/lib/dashboard-next/data/dashboard-variants-api.d.ts +30 -0
  31. package/src/lib/dashboard-next/data/dashboard-variants-controller.d.ts +47 -0
  32. package/src/lib/dashboard-next/data/load-dashboard-definition.d.ts +20 -0
  33. package/src/lib/dashboard-next/data/load-dashboard-layout.d.ts +4 -0
  34. package/src/lib/dashboard-next/grid/dashboard-grid-layout-controller.d.ts +23 -0
  35. package/src/lib/dashboard-next/grid/dashboard-layout-skeleton.d.ts +3 -0
  36. package/src/lib/dashboard-next/grid/dashboard-next-grid.d.ts +56 -0
  37. package/src/lib/dashboard-next/grid/dashboard-next-viz-item.d.ts +26 -0
  38. package/src/lib/dashboard-next/grid/dashboard-skeleton-motion-controller.d.ts +15 -0
  39. package/src/lib/dashboard-next/grid/render-dashboard-chart.d.ts +21 -0
  40. package/src/lib/dashboard-next/localization/dashboard-next-translations.d.ts +89 -0
  41. package/src/lib/dashboard-next/localization/resolve-dashboard-next-translations.d.ts +6 -0
  42. package/src/lib/dashboard-next/settings/appearance/dashboard-appearance-config.d.ts +63 -0
  43. package/src/lib/dashboard-next/settings/appearance/dashboard-appearance-settings-controller.d.ts +34 -0
  44. package/src/lib/dashboard-next/settings/appearance/dashboard-appearance-settings.d.ts +12 -0
  45. package/src/lib/dashboard-next/settings/appearance/dashboard-chart-type-conversion.d.ts +6 -0
  46. package/src/lib/dashboard-next/settings/dashboard-chart-settings-context.d.ts +31 -0
  47. package/src/lib/dashboard-next/settings/dashboard-editor-controller.d.ts +32 -0
  48. package/src/lib/dashboard-next/settings/dashboard-settings-content.d.ts +6 -0
  49. package/src/lib/dashboard-next/settings/dashboard-settings-controller.d.ts +43 -0
  50. package/src/lib/dashboard-next/settings/dashboard-settings-popover.d.ts +13 -0
  51. package/src/lib/dashboard-next/settings/dashboard-settings-positioning.d.ts +1 -0
  52. package/src/lib/dashboard-next/settings/dashboard-settings.test-utils.d.ts +19 -0
  53. package/src/lib/dashboard-next/settings/data/dashboard-data-metadata.d.ts +11 -0
  54. package/src/lib/dashboard-next/settings/data/dashboard-data-settings-controller.d.ts +41 -0
  55. package/src/lib/dashboard-next/settings/data/dashboard-data-settings.d.ts +15 -0
  56. package/src/lib/dashboard-next/settings/data/dashboard-data-slots.d.ts +3 -0
  57. package/src/lib/dashboard-next/settings/filters/dashboard-filter-settings-controller.d.ts +19 -0
  58. package/src/lib/dashboard-next/settings/filters/dashboard-filter-settings.d.ts +9 -0
  59. package/src/lib/dashboard-next/state/config/dashboard-config-store.d.ts +28 -0
  60. package/src/lib/dashboard-next/state/content/dashboard-content-controller.d.ts +47 -0
  61. package/src/lib/dashboard-next/state/content/dashboard-content-selectors.d.ts +6 -0
  62. package/src/lib/dashboard-next/state/content/dashboard-content-state.d.ts +46 -0
  63. package/src/lib/dashboard-next/state/content/dashboard-content-store.d.ts +18 -0
  64. package/src/lib/dashboard-next/state/content/dashboard-option-changes.d.ts +9 -0
  65. package/src/lib/dashboard-next/state/dashboard-stores.d.ts +12 -0
  66. package/src/lib/dashboard-next/state/runtime/dashboard-editor-state.d.ts +34 -0
  67. package/src/lib/dashboard-next/state/runtime/dashboard-runtime-state.d.ts +47 -0
  68. package/src/lib/dashboard-next/state/runtime/dashboard-runtime-store.d.ts +22 -0
  69. package/src/lib/dashboard-next/state/runtime/dashboard-variants-state.d.ts +42 -0
  70. package/src/lib/dashboard-next/toolbar/dashboard-next-toolbar.d.ts +36 -0
  71. package/src/lib/dashboard-next/toolbar/dashboard-picker.d.ts +36 -0
  72. package/src/lib/dashboard-next/toolbar/dashboard-toolbar-theme.d.ts +13 -0
  73. package/src/lib/dashboard-next/toolbar/dashboard-variant-delete.d.ts +15 -0
  74. package/src/lib/dashboard-next/views/dashboard-view-controller.d.ts +13 -0
  75. package/src/lib/dashboard-next/views/dashboard-view-layout.d.ts +3 -0
  76. package/src/lib/dashboard-next/views/dashboard-views.d.ts +44 -0
  77. package/src/lib/iq-components/luzmo-iq-answer.d.ts +1 -1
  78. package/src/lib/iq-components/luzmo-iq-chat.d.ts +1 -1
  79. package/src/lib/shared/helpers/normalize-viz-item-slots.d.ts +2 -0
  80. package/src/lib/shared/models/dashboard-definition.model.d.ts +34 -0
  81. package/src/lib/shared/models/index.d.ts +2 -0
  82. package/src/lib/shared/models/viz-item-service-port.model.d.ts +24 -0
  83. package/src/lib/viz-item/viz-item.base.d.ts +4 -4
package/index.js CHANGED
@@ -295,6 +295,23 @@ var uuidv4 = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replaceAll(/[xy]/g, fu
295
295
  return v.toString(16);
296
296
  });
297
297
 
298
+ // libs/embed-libs/embed/src/lib/shared/helpers/normalize-viz-item-slots.ts
299
+ function normalizeVizItemSlots(slots) {
300
+ return slots.map((slot) => ({
301
+ ...slot,
302
+ content: slot.content.map((content) => ({
303
+ ...content,
304
+ ...content.columnId === void 0 ? {} : { column: content.columnId },
305
+ ...content.datasetId === void 0 ? {} : { set: content.datasetId },
306
+ ...content.aggregationWeight ? { aggregationWeight: {
307
+ ...content.aggregationWeight,
308
+ set: content.aggregationWeight.datasetId ?? content.aggregationWeight.set,
309
+ column: content.aggregationWeight.columnId ?? content.aggregationWeight.column
310
+ } } : {}
311
+ }))
312
+ }));
313
+ }
314
+
298
315
  // libs/embed-libs/embed/src/lib/shared/helpers/iframe-url.ts
299
316
  var createIframeUrl = (dashboardContent) => {
300
317
  const searchString = [];
@@ -1306,7 +1323,6 @@ var libraryTypeToWebComponentTypeMapping = {
1306
1323
  filters: "filters",
1307
1324
  dashboardId: "dashboard-id",
1308
1325
  screenMode: "screen-mode",
1309
- querySource: "query-source",
1310
1326
  itemId: "item-id",
1311
1327
  aiMessageAssetId: "ai-message-asset-id",
1312
1328
  dashboardContentsVersion: "dashboard-contents-version",
@@ -1428,7 +1444,7 @@ import { property, query, state } from "lit/decorators.js";
1428
1444
  import { styleMap } from "lit/directives/style-map.js";
1429
1445
 
1430
1446
  // libs/embed-libs/embed/package.json
1431
- var version = "9.1.0";
1447
+ var version = "10.0.0";
1432
1448
 
1433
1449
  // libs/embed-libs/embed/src/lib/utils/embed-error.utils.ts
1434
1450
  function buildEmbedErrorDetail(errorMsg) {
@@ -2792,6 +2808,22 @@ var LuzmoBaseVizItem = class extends LitElement2 {
2792
2808
  this.libVersion = version + "-wc-luzmo";
2793
2809
  this.postInitCallQueue = [];
2794
2810
  }
2811
+ static {
2812
+ // Static styles to set host display to block, else it is not shown at all for some reason.
2813
+ this.styles = css2`
2814
+ :host {
2815
+ display: block;
2816
+ width: 100%;
2817
+ height: 100%;
2818
+ }
2819
+
2820
+ luzmo-embed-viz-item {
2821
+ width: 100%;
2822
+ height: 1000%;
2823
+ display: block;
2824
+ }
2825
+ `;
2826
+ }
2795
2827
  createRenderRoot() {
2796
2828
  if (!this.style.display) {
2797
2829
  this.style.display = "block";
@@ -2858,13 +2890,22 @@ var LuzmoBaseVizItem = class extends LitElement2 {
2858
2890
  async firstUpdated(_changedProperties) {
2859
2891
  super.firstUpdated(_changedProperties);
2860
2892
  if (this.canInitializeVizItem()) {
2861
- await loadLibrary(this.appServer, vizItemRemote);
2893
+ if (!await this.loadVizItem()) {
2894
+ return;
2895
+ }
2862
2896
  this.createAndAppendElement();
2863
2897
  }
2864
2898
  }
2899
+ async loadVizItem() {
2900
+ await loadLibrary(this.appServer, vizItemRemote);
2901
+ return true;
2902
+ }
2903
+ createVizItemElement() {
2904
+ return document.createElement("chart-component");
2905
+ }
2865
2906
  createAndAppendElement() {
2866
2907
  if (!this.chartElement) {
2867
- this.chartElement = document.createElement("chart-component");
2908
+ this.chartElement = this.createVizItemElement();
2868
2909
  this.chartElement.setAttribute("embedding-mode", "chart");
2869
2910
  this.chartElement.style.height = "100%";
2870
2911
  this.chartElement.style.width = "100%";
@@ -2935,7 +2976,7 @@ var LuzmoBaseVizItem = class extends LitElement2 {
2935
2976
  if (propertyName === "inlineData" && (value === void 0 || value === null)) {
2936
2977
  this.inlineData = void 0;
2937
2978
  this.chartElement.removeAttribute(mappedAttributeName);
2938
- } else if ((propertyName === "screenMode" || propertyName === "querySource") && value == null) {
2979
+ } else if (propertyName === "screenMode" && value == null) {
2939
2980
  this.chartElement.removeAttribute(mappedAttributeName);
2940
2981
  } else {
2941
2982
  const attributeValue = typeof value === "object" ? JSON.stringify(value) : value?.toString() ?? value;
@@ -2951,7 +2992,9 @@ var LuzmoBaseVizItem = class extends LitElement2 {
2951
2992
  }
2952
2993
  } else {
2953
2994
  if (this.canInitializeVizItem()) {
2954
- await loadLibrary(this.appServer, vizItemRemote);
2995
+ if (!await this.loadVizItem()) {
2996
+ return;
2997
+ }
2955
2998
  this.createAndAppendElement();
2956
2999
  }
2957
3000
  }
@@ -2960,20 +3003,6 @@ var LuzmoBaseVizItem = class extends LitElement2 {
2960
3003
  return html2``;
2961
3004
  }
2962
3005
  };
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
- `;
2977
3006
  __decorateClass([
2978
3007
  property2()
2979
3008
  ], LuzmoBaseVizItem.prototype, "appServer", 2);
@@ -3027,9 +3056,6 @@ __decorateClass([
3027
3056
  __decorateClass([
3028
3057
  property2({ attribute: "screen-mode" })
3029
3058
  ], LuzmoBaseVizItem.prototype, "screenMode", 2);
3030
- __decorateClass([
3031
- property2({ attribute: "query-source" })
3032
- ], LuzmoBaseVizItem.prototype, "querySource", 2);
3033
3059
  __decorateClass([
3034
3060
  property2()
3035
3061
  ], LuzmoBaseVizItem.prototype, "itemId", 2);
@@ -3085,6 +3111,16 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
3085
3111
  this.remoteEntryServer = "http://localhost:4202/";
3086
3112
  this.aydHost = "https://ayd.luzmo.com/";
3087
3113
  }
3114
+ static {
3115
+ // Static styles to set host display to block, else it is not shown at all for some reason.
3116
+ this.styles = css3`
3117
+ :host {
3118
+ display: block;
3119
+ width: 100%;
3120
+ height: 100%;
3121
+ }
3122
+ `;
3123
+ }
3088
3124
  createRenderRoot() {
3089
3125
  return this;
3090
3126
  }
@@ -3162,14 +3198,6 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
3162
3198
  observer.observe(embedChat, { childList: true, subtree: true });
3163
3199
  }
3164
3200
  };
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
- `;
3173
3201
  __decorateClass([
3174
3202
  property3()
3175
3203
  ], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
@@ -3246,6 +3274,16 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
3246
3274
  this.libVersion = version + "-wc-luzmo";
3247
3275
  this.remoteEntryServer = "http://localhost:4202";
3248
3276
  }
3277
+ static {
3278
+ // Static styles to set host display to block, else it is not shown at all for some reason.
3279
+ this.styles = css4`
3280
+ :host {
3281
+ display: block;
3282
+ width: 100%;
3283
+ height: 100%;
3284
+ }
3285
+ `;
3286
+ }
3249
3287
  createRenderRoot() {
3250
3288
  return this;
3251
3289
  }
@@ -3296,14 +3334,6 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
3296
3334
  return html4` `;
3297
3335
  }
3298
3336
  };
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
- `;
3307
3337
  __decorateClass([
3308
3338
  property4()
3309
3339
  ], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
@@ -3409,6 +3439,7 @@ export {
3409
3439
  getCachedJSONSchemas,
3410
3440
  getJSONSchemaUrl,
3411
3441
  luzmoRefParserOptions,
3442
+ normalizeVizItemSlots,
3412
3443
  preloadDashboard,
3413
3444
  preloadIQ,
3414
3445
  preloadVizItem,
package/index.rn.cjs CHANGED
@@ -48,6 +48,7 @@ __export(index_rn_exports, {
48
48
  libraryTypeToWebComponentTypeMapping: () => libraryTypeToWebComponentTypeMapping,
49
49
  loaderStyles: () => loaderStyles,
50
50
  luzmoEmbedContainerClass: () => luzmoEmbedContainerClass,
51
+ normalizeVizItemSlots: () => normalizeVizItemSlots,
51
52
  plStyles: () => plStyles,
52
53
  refreshData: () => refreshData,
53
54
  rejectPromise: () => rejectPromise,
@@ -355,6 +356,23 @@ var uuidv4 = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replaceAll(/[xy]/g, fu
355
356
  return v.toString(16);
356
357
  });
357
358
 
359
+ // libs/embed-libs/embed/src/lib/shared/helpers/normalize-viz-item-slots.ts
360
+ function normalizeVizItemSlots(slots) {
361
+ return slots.map((slot) => ({
362
+ ...slot,
363
+ content: slot.content.map((content) => ({
364
+ ...content,
365
+ ...content.columnId === void 0 ? {} : { column: content.columnId },
366
+ ...content.datasetId === void 0 ? {} : { set: content.datasetId },
367
+ ...content.aggregationWeight ? { aggregationWeight: {
368
+ ...content.aggregationWeight,
369
+ set: content.aggregationWeight.datasetId ?? content.aggregationWeight.set,
370
+ column: content.aggregationWeight.columnId ?? content.aggregationWeight.column
371
+ } } : {}
372
+ }))
373
+ }));
374
+ }
375
+
358
376
  // libs/embed-libs/embed/src/lib/shared/helpers/iframe-url.ts
359
377
  var createIframeUrl = (dashboardContent) => {
360
378
  const searchString = [];
@@ -1366,7 +1384,6 @@ var libraryTypeToWebComponentTypeMapping = {
1366
1384
  filters: "filters",
1367
1385
  dashboardId: "dashboard-id",
1368
1386
  screenMode: "screen-mode",
1369
- querySource: "query-source",
1370
1387
  itemId: "item-id",
1371
1388
  aiMessageAssetId: "ai-message-asset-id",
1372
1389
  dashboardContentsVersion: "dashboard-contents-version",
@@ -1387,7 +1404,6 @@ var libraryAcceptedParametersList = [
1387
1404
  "itemId",
1388
1405
  "dashboardId",
1389
1406
  "screenMode",
1390
- "querySource",
1391
1407
  "aiMessageAssetId",
1392
1408
  "libVersion"
1393
1409
  ];
@@ -1424,6 +1440,7 @@ var luzmoEmbedContainerClass = "luzmo-embed-container";
1424
1440
  libraryTypeToWebComponentTypeMapping,
1425
1441
  loaderStyles,
1426
1442
  luzmoEmbedContainerClass,
1443
+ normalizeVizItemSlots,
1427
1444
  plStyles,
1428
1445
  refreshData,
1429
1446
  rejectPromise,
package/index.rn.js CHANGED
@@ -286,6 +286,23 @@ var uuidv4 = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replaceAll(/[xy]/g, fu
286
286
  return v.toString(16);
287
287
  });
288
288
 
289
+ // libs/embed-libs/embed/src/lib/shared/helpers/normalize-viz-item-slots.ts
290
+ function normalizeVizItemSlots(slots) {
291
+ return slots.map((slot) => ({
292
+ ...slot,
293
+ content: slot.content.map((content) => ({
294
+ ...content,
295
+ ...content.columnId === void 0 ? {} : { column: content.columnId },
296
+ ...content.datasetId === void 0 ? {} : { set: content.datasetId },
297
+ ...content.aggregationWeight ? { aggregationWeight: {
298
+ ...content.aggregationWeight,
299
+ set: content.aggregationWeight.datasetId ?? content.aggregationWeight.set,
300
+ column: content.aggregationWeight.columnId ?? content.aggregationWeight.column
301
+ } } : {}
302
+ }))
303
+ }));
304
+ }
305
+
289
306
  // libs/embed-libs/embed/src/lib/shared/helpers/iframe-url.ts
290
307
  var createIframeUrl = (dashboardContent) => {
291
308
  const searchString = [];
@@ -1297,7 +1314,6 @@ var libraryTypeToWebComponentTypeMapping = {
1297
1314
  filters: "filters",
1298
1315
  dashboardId: "dashboard-id",
1299
1316
  screenMode: "screen-mode",
1300
- querySource: "query-source",
1301
1317
  itemId: "item-id",
1302
1318
  aiMessageAssetId: "ai-message-asset-id",
1303
1319
  dashboardContentsVersion: "dashboard-contents-version",
@@ -1318,7 +1334,6 @@ var libraryAcceptedParametersList = [
1318
1334
  "itemId",
1319
1335
  "dashboardId",
1320
1336
  "screenMode",
1321
- "querySource",
1322
1337
  "aiMessageAssetId",
1323
1338
  "libVersion"
1324
1339
  ];
@@ -1354,6 +1369,7 @@ export {
1354
1369
  libraryTypeToWebComponentTypeMapping,
1355
1370
  loaderStyles,
1356
1371
  luzmoEmbedContainerClass,
1372
+ normalizeVizItemSlots,
1357
1373
  plStyles,
1358
1374
  refreshData,
1359
1375
  rejectPromise,
package/index.shared.cjs CHANGED
@@ -49,6 +49,7 @@ __export(index_shared_exports, {
49
49
  loadLibrary: () => loadLibrary,
50
50
  loaderStyles: () => loaderStyles,
51
51
  luzmoEmbedContainerClass: () => luzmoEmbedContainerClass,
52
+ normalizeVizItemSlots: () => normalizeVizItemSlots,
52
53
  plStyles: () => plStyles,
53
54
  preloadDashboard: () => preloadDashboard,
54
55
  preloadIQ: () => preloadIQ,
@@ -359,6 +360,23 @@ var uuidv4 = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replaceAll(/[xy]/g, fu
359
360
  return v.toString(16);
360
361
  });
361
362
 
363
+ // libs/embed-libs/embed/src/lib/shared/helpers/normalize-viz-item-slots.ts
364
+ function normalizeVizItemSlots(slots) {
365
+ return slots.map((slot) => ({
366
+ ...slot,
367
+ content: slot.content.map((content) => ({
368
+ ...content,
369
+ ...content.columnId === void 0 ? {} : { column: content.columnId },
370
+ ...content.datasetId === void 0 ? {} : { set: content.datasetId },
371
+ ...content.aggregationWeight ? { aggregationWeight: {
372
+ ...content.aggregationWeight,
373
+ set: content.aggregationWeight.datasetId ?? content.aggregationWeight.set,
374
+ column: content.aggregationWeight.columnId ?? content.aggregationWeight.column
375
+ } } : {}
376
+ }))
377
+ }));
378
+ }
379
+
362
380
  // libs/embed-libs/embed/src/lib/shared/helpers/iframe-url.ts
363
381
  var createIframeUrl = (dashboardContent) => {
364
382
  const searchString = [];
@@ -1370,7 +1388,6 @@ var libraryTypeToWebComponentTypeMapping = {
1370
1388
  filters: "filters",
1371
1389
  dashboardId: "dashboard-id",
1372
1390
  screenMode: "screen-mode",
1373
- querySource: "query-source",
1374
1391
  itemId: "item-id",
1375
1392
  aiMessageAssetId: "ai-message-asset-id",
1376
1393
  dashboardContentsVersion: "dashboard-contents-version",
@@ -1391,7 +1408,6 @@ var libraryAcceptedParametersList = [
1391
1408
  "itemId",
1392
1409
  "dashboardId",
1393
1410
  "screenMode",
1394
- "querySource",
1395
1411
  "aiMessageAssetId",
1396
1412
  "libVersion"
1397
1413
  ];
@@ -1532,6 +1548,7 @@ function preloadIQ(appServer = "https://app.luzmo.com") {
1532
1548
  loadLibrary,
1533
1549
  loaderStyles,
1534
1550
  luzmoEmbedContainerClass,
1551
+ normalizeVizItemSlots,
1535
1552
  plStyles,
1536
1553
  preloadDashboard,
1537
1554
  preloadIQ,
package/index.shared.js CHANGED
@@ -286,6 +286,23 @@ var uuidv4 = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replaceAll(/[xy]/g, fu
286
286
  return v.toString(16);
287
287
  });
288
288
 
289
+ // libs/embed-libs/embed/src/lib/shared/helpers/normalize-viz-item-slots.ts
290
+ function normalizeVizItemSlots(slots) {
291
+ return slots.map((slot) => ({
292
+ ...slot,
293
+ content: slot.content.map((content) => ({
294
+ ...content,
295
+ ...content.columnId === void 0 ? {} : { column: content.columnId },
296
+ ...content.datasetId === void 0 ? {} : { set: content.datasetId },
297
+ ...content.aggregationWeight ? { aggregationWeight: {
298
+ ...content.aggregationWeight,
299
+ set: content.aggregationWeight.datasetId ?? content.aggregationWeight.set,
300
+ column: content.aggregationWeight.columnId ?? content.aggregationWeight.column
301
+ } } : {}
302
+ }))
303
+ }));
304
+ }
305
+
289
306
  // libs/embed-libs/embed/src/lib/shared/helpers/iframe-url.ts
290
307
  var createIframeUrl = (dashboardContent) => {
291
308
  const searchString = [];
@@ -1297,7 +1314,6 @@ var libraryTypeToWebComponentTypeMapping = {
1297
1314
  filters: "filters",
1298
1315
  dashboardId: "dashboard-id",
1299
1316
  screenMode: "screen-mode",
1300
- querySource: "query-source",
1301
1317
  itemId: "item-id",
1302
1318
  aiMessageAssetId: "ai-message-asset-id",
1303
1319
  dashboardContentsVersion: "dashboard-contents-version",
@@ -1318,7 +1334,6 @@ var libraryAcceptedParametersList = [
1318
1334
  "itemId",
1319
1335
  "dashboardId",
1320
1336
  "screenMode",
1321
- "querySource",
1322
1337
  "aiMessageAssetId",
1323
1338
  "libVersion"
1324
1339
  ];
@@ -1458,6 +1473,7 @@ export {
1458
1473
  loadLibrary,
1459
1474
  loaderStyles,
1460
1475
  luzmoEmbedContainerClass,
1476
+ normalizeVizItemSlots,
1461
1477
  plStyles,
1462
1478
  preloadDashboard,
1463
1479
  preloadIQ,