@luzmo/embed 10.1.0 → 10.1.1-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 CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## [10.1.1] - 2026-11-27
6
+
7
+ ### Fixed
8
+
9
+ - Fixed Dashboard Agent edits being rejected when an existing chart outside the allowed chart types had a `null` custom chart ID and the Agent omitted that ID from its response.
10
+
5
11
  ## [10.1.0] - 2026-11-26
6
12
 
7
13
  ### Changed
package/index.cjs CHANGED
@@ -1491,7 +1491,7 @@ var import_decorators = require("lit/decorators.js");
1491
1491
  var import_style_map = require("lit/directives/style-map.js");
1492
1492
 
1493
1493
  // libs/embed-libs/embed/package.json
1494
- var version = "10.1.0";
1494
+ var version = "10.1.1";
1495
1495
 
1496
1496
  // libs/embed-libs/embed/src/lib/utils/embed-error.utils.ts
1497
1497
  function buildEmbedErrorDetail(errorMsg) {
@@ -2853,22 +2853,6 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
2853
2853
  this.libVersion = version + "-wc-luzmo";
2854
2854
  this.postInitCallQueue = [];
2855
2855
  }
2856
- static {
2857
- // Static styles to set host display to block, else it is not shown at all for some reason.
2858
- this.styles = import_lit3.css`
2859
- :host {
2860
- display: block;
2861
- width: 100%;
2862
- height: 100%;
2863
- }
2864
-
2865
- luzmo-embed-viz-item {
2866
- width: 100%;
2867
- height: 1000%;
2868
- display: block;
2869
- }
2870
- `;
2871
- }
2872
2856
  createRenderRoot() {
2873
2857
  if (!this.style.display) {
2874
2858
  this.style.display = "block";
@@ -3048,6 +3032,20 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
3048
3032
  return import_lit3.html``;
3049
3033
  }
3050
3034
  };
3035
+ // Static styles to set host display to block, else it is not shown at all for some reason.
3036
+ LuzmoBaseVizItem.styles = import_lit3.css`
3037
+ :host {
3038
+ display: block;
3039
+ width: 100%;
3040
+ height: 100%;
3041
+ }
3042
+
3043
+ luzmo-embed-viz-item {
3044
+ width: 100%;
3045
+ height: 1000%;
3046
+ display: block;
3047
+ }
3048
+ `;
3051
3049
  __decorateClass([
3052
3050
  (0, import_decorators2.property)()
3053
3051
  ], LuzmoBaseVizItem.prototype, "appServer", 2);
@@ -3156,16 +3154,6 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
3156
3154
  this.remoteEntryServer = "http://localhost:4202/";
3157
3155
  this.aydHost = "https://ayd.luzmo.com/";
3158
3156
  }
3159
- static {
3160
- // Static styles to set host display to block, else it is not shown at all for some reason.
3161
- this.styles = import_lit4.css`
3162
- :host {
3163
- display: block;
3164
- width: 100%;
3165
- height: 100%;
3166
- }
3167
- `;
3168
- }
3169
3157
  createRenderRoot() {
3170
3158
  return this;
3171
3159
  }
@@ -3243,6 +3231,14 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
3243
3231
  observer.observe(embedChat, { childList: true, subtree: true });
3244
3232
  }
3245
3233
  };
3234
+ // Static styles to set host display to block, else it is not shown at all for some reason.
3235
+ LuzmoIQEmbedChatComponent.styles = import_lit4.css`
3236
+ :host {
3237
+ display: block;
3238
+ width: 100%;
3239
+ height: 100%;
3240
+ }
3241
+ `;
3246
3242
  __decorateClass([
3247
3243
  (0, import_decorators3.property)()
3248
3244
  ], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
@@ -3319,16 +3315,6 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
3319
3315
  this.libVersion = version + "-wc-luzmo";
3320
3316
  this.remoteEntryServer = "http://localhost:4202";
3321
3317
  }
3322
- static {
3323
- // Static styles to set host display to block, else it is not shown at all for some reason.
3324
- this.styles = import_lit5.css`
3325
- :host {
3326
- display: block;
3327
- width: 100%;
3328
- height: 100%;
3329
- }
3330
- `;
3331
- }
3332
3318
  createRenderRoot() {
3333
3319
  return this;
3334
3320
  }
@@ -3379,6 +3365,14 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
3379
3365
  return import_lit5.html` `;
3380
3366
  }
3381
3367
  };
3368
+ // Static styles to set host display to block, else it is not shown at all for some reason.
3369
+ LuzmoIQEmbedAnswerComponent.styles = import_lit5.css`
3370
+ :host {
3371
+ display: block;
3372
+ width: 100%;
3373
+ height: 100%;
3374
+ }
3375
+ `;
3382
3376
  __decorateClass([
3383
3377
  (0, import_decorators4.property)()
3384
3378
  ], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
@@ -1220,7 +1220,7 @@ var import_lit2 = require("lit");
1220
1220
  var import_decorators2 = require("lit/decorators.js");
1221
1221
 
1222
1222
  // libs/embed-libs/embed/package.json
1223
- var version = "10.1.0";
1223
+ var version = "10.1.1";
1224
1224
 
1225
1225
  // libs/embed-libs/embed/src/lib/shared/helpers/extents.ts
1226
1226
  var EXTENTS = [
@@ -1409,22 +1409,6 @@ var LuzmoBaseVizItem = class extends import_lit2.LitElement {
1409
1409
  this.libVersion = version + "-wc-luzmo";
1410
1410
  this.postInitCallQueue = [];
1411
1411
  }
1412
- static {
1413
- // Static styles to set host display to block, else it is not shown at all for some reason.
1414
- this.styles = import_lit2.css`
1415
- :host {
1416
- display: block;
1417
- width: 100%;
1418
- height: 100%;
1419
- }
1420
-
1421
- luzmo-embed-viz-item {
1422
- width: 100%;
1423
- height: 1000%;
1424
- display: block;
1425
- }
1426
- `;
1427
- }
1428
1412
  createRenderRoot() {
1429
1413
  if (!this.style.display) {
1430
1414
  this.style.display = "block";
@@ -1604,6 +1588,20 @@ var LuzmoBaseVizItem = class extends import_lit2.LitElement {
1604
1588
  return import_lit2.html``;
1605
1589
  }
1606
1590
  };
1591
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1592
+ LuzmoBaseVizItem.styles = import_lit2.css`
1593
+ :host {
1594
+ display: block;
1595
+ width: 100%;
1596
+ height: 100%;
1597
+ }
1598
+
1599
+ luzmo-embed-viz-item {
1600
+ width: 100%;
1601
+ height: 1000%;
1602
+ display: block;
1603
+ }
1604
+ `;
1607
1605
  __decorateClass([
1608
1606
  (0, import_decorators2.property)()
1609
1607
  ], LuzmoBaseVizItem.prototype, "appServer", 2);
@@ -4802,9 +4800,6 @@ var DashboardDataSettings = class extends import_lit8.LitElement {
4802
4800
  this.editorController = new DashboardDataSettingsController(this);
4803
4801
  this.controlWaiters = [];
4804
4802
  }
4805
- static {
4806
- this.styles = [dashboardChartSettingsStyles, dashboardDataSettingsStyles];
4807
- }
4808
4803
  get controlsPending() {
4809
4804
  return !this.editorController.context || this.editorController.state.loading;
4810
4805
  }
@@ -4893,6 +4888,7 @@ var DashboardDataSettings = class extends import_lit8.LitElement {
4893
4888
  `;
4894
4889
  }
4895
4890
  };
4891
+ DashboardDataSettings.styles = [dashboardChartSettingsStyles, dashboardDataSettingsStyles];
4896
4892
  __decorateClass([
4897
4893
  (0, import_decorators5.property)({ attribute: false })
4898
4894
  ], DashboardDataSettings.prototype, "stores", 2);
@@ -5232,9 +5228,6 @@ var DashboardSettingsPopover = class extends import_lit10.LitElement {
5232
5228
  this.tabs = ["data", "filters", "appearance"];
5233
5229
  this.disabled = false;
5234
5230
  }
5235
- static {
5236
- this.styles = dashboardSettingsPopoverStyles;
5237
- }
5238
5231
  async focusClose() {
5239
5232
  const button = this.renderRoot.querySelector('[part="close-settings"]');
5240
5233
  await button?.updateComplete;
@@ -5285,6 +5278,7 @@ var DashboardSettingsPopover = class extends import_lit10.LitElement {
5285
5278
  `;
5286
5279
  }
5287
5280
  };
5281
+ DashboardSettingsPopover.styles = dashboardSettingsPopoverStyles;
5288
5282
  __decorateClass([
5289
5283
  (0, import_decorators6.property)({ attribute: false })
5290
5284
  ], DashboardSettingsPopover.prototype, "labels", 2);
@@ -5411,9 +5405,6 @@ var DashboardFilterSettings = class extends import_lit12.LitElement {
5411
5405
  super(...arguments);
5412
5406
  this.controller = new DashboardFilterSettingsController(this);
5413
5407
  }
5414
- static {
5415
- this.styles = [dashboardChartSettingsStyles, dashboardFilterSettingsStyles];
5416
- }
5417
5408
  render() {
5418
5409
  const controller = this.controller;
5419
5410
  const { context, config, labels } = controller;
@@ -5445,6 +5436,7 @@ var DashboardFilterSettings = class extends import_lit12.LitElement {
5445
5436
  `;
5446
5437
  }
5447
5438
  };
5439
+ DashboardFilterSettings.styles = [dashboardChartSettingsStyles, dashboardFilterSettingsStyles];
5448
5440
  __decorateClass([
5449
5441
  (0, import_decorators7.property)({ attribute: false })
5450
5442
  ], DashboardFilterSettings.prototype, "stores", 2);
@@ -5905,9 +5897,6 @@ var DashboardAppearanceSettings = class extends import_lit14.LitElement {
5905
5897
  endInteractions() {
5906
5898
  this.controller.endInteractions();
5907
5899
  }
5908
- static {
5909
- this.styles = [dashboardChartSettingsStyles, dashboardAppearanceSettingsStyles];
5910
- }
5911
5900
  render() {
5912
5901
  const { context, config, labels } = this.controller;
5913
5902
  if (!context || !config || !labels) {
@@ -5994,6 +5983,7 @@ var DashboardAppearanceSettings = class extends import_lit14.LitElement {
5994
5983
  `;
5995
5984
  }
5996
5985
  };
5986
+ DashboardAppearanceSettings.styles = [dashboardChartSettingsStyles, dashboardAppearanceSettingsStyles];
5997
5987
  __decorateClass([
5998
5988
  (0, import_decorators8.property)({ attribute: false })
5999
5989
  ], DashboardAppearanceSettings.prototype, "stores", 2);
@@ -6272,7 +6262,7 @@ function applyDashboardAgentDraft(stores, dashboard, name, expected) {
6272
6262
  const synchronized = previousContents.syncScreenModes;
6273
6263
  if (contents.views.some((view) => {
6274
6264
  const previousItems = previousContents.views.filter((candidate) => synchronized || (candidate.screenModus ?? "desktop") === (view.screenModus ?? "desktop")).flatMap((candidate) => candidate.items);
6275
- return view.items.some((item) => !isDashboardChartTypeAllowed(types, item.type, item.customChartId) && !previousItems.some((existing) => existing.id === item.id && existing.type === item.type && existing.customChartId === item.customChartId));
6265
+ return view.items.some((item) => !isDashboardChartTypeAllowed(types, item.type, item.customChartId) && !previousItems.some((existing) => existing.id === item.id && existing.type === item.type && (existing.customChartId ?? null) === (item.customChartId ?? null)));
6276
6266
  })) {
6277
6267
  return "chart-type";
6278
6268
  }
@@ -6421,9 +6411,6 @@ var LuzmoDashboardNext = class extends (_b = DashboardConfiguredElement, _a = da
6421
6411
  get layout() {
6422
6412
  return this.content.layout;
6423
6413
  }
6424
- static {
6425
- this.styles = [dashboardLayoutSkeletonStyles, dashboardNextStyles];
6426
- }
6427
6414
  connectedCallback() {
6428
6415
  if (!this.experimentalWarningShown) {
6429
6416
  console.warn("Luzmo dashboard-next is experimental. Its API and behavior may change without notice.");
@@ -6644,6 +6631,7 @@ var LuzmoDashboardNext = class extends (_b = DashboardConfiguredElement, _a = da
6644
6631
  `;
6645
6632
  }
6646
6633
  };
6634
+ LuzmoDashboardNext.styles = [dashboardLayoutSkeletonStyles, dashboardNextStyles];
6647
6635
  __decorateClass([
6648
6636
  (0, import_decorators9.property)({ type: String, attribute: "edit-mode", noAccessor: true })
6649
6637
  ], LuzmoDashboardNext.prototype, "editMode", 1);
@@ -8253,26 +8241,6 @@ var DashboardAddChartMenu = class extends import_lit24.LitElement {
8253
8241
  this.disabled = false;
8254
8242
  this.controller = new DashboardAddChartController(this, () => this.stores);
8255
8243
  }
8256
- static {
8257
- this.styles = import_lit24.css`
8258
- :host { display: block; color: var(--luzmo-font-color); font: inherit; }
8259
- luzmo-popover { --luzmo-popover-border-radius: var(--luzmo-border-radius-l); --luzmo-popover-content-area-spacing-vertical: 0px; }
8260
- .panel { inline-size: min(calc(var(--luzmo-spacing-5) * 25), calc(100vw - var(--luzmo-spacing-5) * 2)); }
8261
- .search { padding: var(--luzmo-spacing-3); border-block-end: var(--luzmo-border-width) solid var(--luzmo-border-color); }
8262
- luzmo-search { inline-size: 100%; }
8263
- .catalog { padding: var(--luzmo-spacing-3); max-block-size: min(65vh, calc(var(--luzmo-spacing-5) * 28)); overflow: auto; overscroll-behavior: contain; }
8264
- h3 { margin: var(--luzmo-spacing-3) 0; font-size: var(--luzmo-font-size-s); font-weight: var(--luzmo-font-weight-semibold); color: var(--luzmo-font-color-extra-dimmed); }
8265
- .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 7rem), 1fr)); gap: var(--luzmo-spacing-2); }
8266
- .tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--luzmo-spacing-3); min-block-size: 5.5rem; padding: var(--luzmo-spacing-3); padding-block-start: calc(var(--luzmo-spacing-3) + .5lh); border: var(--luzmo-border-width) solid var(--luzmo-border-color); border-radius: var(--luzmo-border-radius); background: var(--luzmo-background-color); color: inherit; font: inherit; font-size: var(--luzmo-font-size-s); overflow-wrap: anywhere; cursor: pointer; }
8267
- .tile luzmo-icon { flex: none; --luzmo-icon-line-color: color-mix(in srgb, var(--luzmo-font-color) 60%, transparent); --luzmo-icon-line-color-dimmed: var(--luzmo-border-color); --luzmo-icon-color-1: var(--luzmo-primary); --luzmo-icon-color-2: color-mix(in srgb, var(--luzmo-primary) 50%, transparent); --luzmo-icon-color-3: color-mix(in srgb, var(--luzmo-primary) 25%, transparent); }
8268
- .tile span { display: flex; align-items: flex-start; justify-content: center; min-block-size: 2lh; text-align: center; }
8269
- .tile:hover { background: var(--luzmo-background-color-highlight); border-color: var(--luzmo-primary); }
8270
- .tile:active { background: color-mix(in srgb, var(--luzmo-primary) 15%, var(--luzmo-background-color)); }
8271
- .tile:focus-visible { outline: 2px solid var(--luzmo-primary); outline-offset: -2px; }
8272
- .tile:disabled { color: var(--luzmo-disabled-color); cursor: default; }
8273
- [role='status'] { text-align: center; padding: var(--luzmo-spacing-5); }
8274
- `;
8275
- }
8276
8244
  willUpdate(changes) {
8277
8245
  if (changes.has("stores")) {
8278
8246
  this.controller.connect();
@@ -8408,6 +8376,24 @@ var DashboardAddChartMenu = class extends import_lit24.LitElement {
8408
8376
  `;
8409
8377
  }
8410
8378
  };
8379
+ DashboardAddChartMenu.styles = import_lit24.css`
8380
+ :host { display: block; color: var(--luzmo-font-color); font: inherit; }
8381
+ luzmo-popover { --luzmo-popover-border-radius: var(--luzmo-border-radius-l); --luzmo-popover-content-area-spacing-vertical: 0px; }
8382
+ .panel { inline-size: min(calc(var(--luzmo-spacing-5) * 25), calc(100vw - var(--luzmo-spacing-5) * 2)); }
8383
+ .search { padding: var(--luzmo-spacing-3); border-block-end: var(--luzmo-border-width) solid var(--luzmo-border-color); }
8384
+ luzmo-search { inline-size: 100%; }
8385
+ .catalog { padding: var(--luzmo-spacing-3); max-block-size: min(65vh, calc(var(--luzmo-spacing-5) * 28)); overflow: auto; overscroll-behavior: contain; }
8386
+ h3 { margin: var(--luzmo-spacing-3) 0; font-size: var(--luzmo-font-size-s); font-weight: var(--luzmo-font-weight-semibold); color: var(--luzmo-font-color-extra-dimmed); }
8387
+ .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 7rem), 1fr)); gap: var(--luzmo-spacing-2); }
8388
+ .tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--luzmo-spacing-3); min-block-size: 5.5rem; padding: var(--luzmo-spacing-3); padding-block-start: calc(var(--luzmo-spacing-3) + .5lh); border: var(--luzmo-border-width) solid var(--luzmo-border-color); border-radius: var(--luzmo-border-radius); background: var(--luzmo-background-color); color: inherit; font: inherit; font-size: var(--luzmo-font-size-s); overflow-wrap: anywhere; cursor: pointer; }
8389
+ .tile luzmo-icon { flex: none; --luzmo-icon-line-color: color-mix(in srgb, var(--luzmo-font-color) 60%, transparent); --luzmo-icon-line-color-dimmed: var(--luzmo-border-color); --luzmo-icon-color-1: var(--luzmo-primary); --luzmo-icon-color-2: color-mix(in srgb, var(--luzmo-primary) 50%, transparent); --luzmo-icon-color-3: color-mix(in srgb, var(--luzmo-primary) 25%, transparent); }
8390
+ .tile span { display: flex; align-items: flex-start; justify-content: center; min-block-size: 2lh; text-align: center; }
8391
+ .tile:hover { background: var(--luzmo-background-color-highlight); border-color: var(--luzmo-primary); }
8392
+ .tile:active { background: color-mix(in srgb, var(--luzmo-primary) 15%, var(--luzmo-background-color)); }
8393
+ .tile:focus-visible { outline: 2px solid var(--luzmo-primary); outline-offset: -2px; }
8394
+ .tile:disabled { color: var(--luzmo-disabled-color); cursor: default; }
8395
+ [role='status'] { text-align: center; padding: var(--luzmo-spacing-5); }
8396
+ `;
8411
8397
  __decorateClass([
8412
8398
  (0, import_decorators10.property)({ attribute: false })
8413
8399
  ], DashboardAddChartMenu.prototype, "stores", 2);
@@ -8813,9 +8799,6 @@ var DashboardPicker = class extends import_lit27.LitElement {
8813
8799
  this.showPicker = true;
8814
8800
  this.unsubscribers = [];
8815
8801
  }
8816
- static {
8817
- this.styles = [dashboardPickerStyles, dashboardPreviewThumbnailStyles];
8818
- }
8819
8802
  connectedCallback() {
8820
8803
  super.connectedCallback();
8821
8804
  this.subscribe();
@@ -9121,6 +9104,7 @@ var DashboardPicker = class extends import_lit27.LitElement {
9121
9104
  `;
9122
9105
  }
9123
9106
  };
9107
+ DashboardPicker.styles = [dashboardPickerStyles, dashboardPreviewThumbnailStyles];
9124
9108
  __decorateClass([
9125
9109
  (0, import_decorators11.property)({ attribute: false })
9126
9110
  ], DashboardPicker.prototype, "stores", 2);
@@ -9184,9 +9168,6 @@ var DashboardVariantDelete = class extends import_lit29.LitElement {
9184
9168
  super(...arguments);
9185
9169
  this.dirty = false;
9186
9170
  }
9187
- static {
9188
- this.styles = dashboardVariantDeleteStyles;
9189
- }
9190
9171
  updated() {
9191
9172
  const dialog = this.renderRoot.querySelector("dialog");
9192
9173
  if (dialog && !dialog.open) {
@@ -9223,6 +9204,7 @@ var DashboardVariantDelete = class extends import_lit29.LitElement {
9223
9204
  `;
9224
9205
  }
9225
9206
  };
9207
+ DashboardVariantDelete.styles = dashboardVariantDeleteStyles;
9226
9208
  __decorateClass([
9227
9209
  (0, import_decorators12.property)({ attribute: false })
9228
9210
  ], DashboardVariantDelete.prototype, "controller", 2);
@@ -9748,9 +9730,6 @@ var LuzmoDashboardAnalyst = class extends DashboardConfiguredElement {
9748
9730
  }
9749
9731
  });
9750
9732
  }
9751
- static {
9752
- this.styles = [dashboardAnalystStyles, dashboardAgentPanelStyles, dashboardAgentHistoryStyles, dashboardNextToolbarStyles, dashboardQuestionModeStyles];
9753
- }
9754
9733
  connectedCallback() {
9755
9734
  super.connectedCallback();
9756
9735
  this.disconnectDashboard = this.workspace.subscribe((next, previous) => {
@@ -9878,6 +9857,7 @@ var LuzmoDashboardAnalyst = class extends DashboardConfiguredElement {
9878
9857
  `;
9879
9858
  }
9880
9859
  };
9860
+ LuzmoDashboardAnalyst.styles = [dashboardAnalystStyles, dashboardAgentPanelStyles, dashboardAgentHistoryStyles, dashboardNextToolbarStyles, dashboardQuestionModeStyles];
9881
9861
  __decorateClass([
9882
9862
  (0, import_decorators13.property)({ type: String, attribute: "agent-id", noAccessor: true })
9883
9863
  ], LuzmoDashboardAnalyst.prototype, "agentId", 1);
@@ -1208,7 +1208,7 @@ import { css, html, LitElement as LitElement2 } from "lit";
1208
1208
  import { property as property2 } from "lit/decorators.js";
1209
1209
 
1210
1210
  // libs/embed-libs/embed/package.json
1211
- var version = "10.1.0";
1211
+ var version = "10.1.1";
1212
1212
 
1213
1213
  // libs/embed-libs/embed/src/lib/shared/helpers/extents.ts
1214
1214
  var EXTENTS = [
@@ -1397,22 +1397,6 @@ var LuzmoBaseVizItem = class extends LitElement2 {
1397
1397
  this.libVersion = version + "-wc-luzmo";
1398
1398
  this.postInitCallQueue = [];
1399
1399
  }
1400
- static {
1401
- // Static styles to set host display to block, else it is not shown at all for some reason.
1402
- this.styles = css`
1403
- :host {
1404
- display: block;
1405
- width: 100%;
1406
- height: 100%;
1407
- }
1408
-
1409
- luzmo-embed-viz-item {
1410
- width: 100%;
1411
- height: 1000%;
1412
- display: block;
1413
- }
1414
- `;
1415
- }
1416
1400
  createRenderRoot() {
1417
1401
  if (!this.style.display) {
1418
1402
  this.style.display = "block";
@@ -1592,6 +1576,20 @@ var LuzmoBaseVizItem = class extends LitElement2 {
1592
1576
  return html``;
1593
1577
  }
1594
1578
  };
1579
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1580
+ LuzmoBaseVizItem.styles = css`
1581
+ :host {
1582
+ display: block;
1583
+ width: 100%;
1584
+ height: 100%;
1585
+ }
1586
+
1587
+ luzmo-embed-viz-item {
1588
+ width: 100%;
1589
+ height: 1000%;
1590
+ display: block;
1591
+ }
1592
+ `;
1595
1593
  __decorateClass([
1596
1594
  property2()
1597
1595
  ], LuzmoBaseVizItem.prototype, "appServer", 2);
@@ -4790,9 +4788,6 @@ var DashboardDataSettings = class extends LitElement3 {
4790
4788
  this.editorController = new DashboardDataSettingsController(this);
4791
4789
  this.controlWaiters = [];
4792
4790
  }
4793
- static {
4794
- this.styles = [dashboardChartSettingsStyles, dashboardDataSettingsStyles];
4795
- }
4796
4791
  get controlsPending() {
4797
4792
  return !this.editorController.context || this.editorController.state.loading;
4798
4793
  }
@@ -4881,6 +4876,7 @@ var DashboardDataSettings = class extends LitElement3 {
4881
4876
  `;
4882
4877
  }
4883
4878
  };
4879
+ DashboardDataSettings.styles = [dashboardChartSettingsStyles, dashboardDataSettingsStyles];
4884
4880
  __decorateClass([
4885
4881
  property5({ attribute: false })
4886
4882
  ], DashboardDataSettings.prototype, "stores", 2);
@@ -5220,9 +5216,6 @@ var DashboardSettingsPopover = class extends LitElement4 {
5220
5216
  this.tabs = ["data", "filters", "appearance"];
5221
5217
  this.disabled = false;
5222
5218
  }
5223
- static {
5224
- this.styles = dashboardSettingsPopoverStyles;
5225
- }
5226
5219
  async focusClose() {
5227
5220
  const button = this.renderRoot.querySelector('[part="close-settings"]');
5228
5221
  await button?.updateComplete;
@@ -5273,6 +5266,7 @@ var DashboardSettingsPopover = class extends LitElement4 {
5273
5266
  `;
5274
5267
  }
5275
5268
  };
5269
+ DashboardSettingsPopover.styles = dashboardSettingsPopoverStyles;
5276
5270
  __decorateClass([
5277
5271
  property6({ attribute: false })
5278
5272
  ], DashboardSettingsPopover.prototype, "labels", 2);
@@ -5399,9 +5393,6 @@ var DashboardFilterSettings = class extends LitElement5 {
5399
5393
  super(...arguments);
5400
5394
  this.controller = new DashboardFilterSettingsController(this);
5401
5395
  }
5402
- static {
5403
- this.styles = [dashboardChartSettingsStyles, dashboardFilterSettingsStyles];
5404
- }
5405
5396
  render() {
5406
5397
  const controller = this.controller;
5407
5398
  const { context, config, labels } = controller;
@@ -5433,6 +5424,7 @@ var DashboardFilterSettings = class extends LitElement5 {
5433
5424
  `;
5434
5425
  }
5435
5426
  };
5427
+ DashboardFilterSettings.styles = [dashboardChartSettingsStyles, dashboardFilterSettingsStyles];
5436
5428
  __decorateClass([
5437
5429
  property7({ attribute: false })
5438
5430
  ], DashboardFilterSettings.prototype, "stores", 2);
@@ -5893,9 +5885,6 @@ var DashboardAppearanceSettings = class extends LitElement6 {
5893
5885
  endInteractions() {
5894
5886
  this.controller.endInteractions();
5895
5887
  }
5896
- static {
5897
- this.styles = [dashboardChartSettingsStyles, dashboardAppearanceSettingsStyles];
5898
- }
5899
5888
  render() {
5900
5889
  const { context, config, labels } = this.controller;
5901
5890
  if (!context || !config || !labels) {
@@ -5982,6 +5971,7 @@ var DashboardAppearanceSettings = class extends LitElement6 {
5982
5971
  `;
5983
5972
  }
5984
5973
  };
5974
+ DashboardAppearanceSettings.styles = [dashboardChartSettingsStyles, dashboardAppearanceSettingsStyles];
5985
5975
  __decorateClass([
5986
5976
  property8({ attribute: false })
5987
5977
  ], DashboardAppearanceSettings.prototype, "stores", 2);
@@ -6260,7 +6250,7 @@ function applyDashboardAgentDraft(stores, dashboard, name, expected) {
6260
6250
  const synchronized = previousContents.syncScreenModes;
6261
6251
  if (contents.views.some((view) => {
6262
6252
  const previousItems = previousContents.views.filter((candidate) => synchronized || (candidate.screenModus ?? "desktop") === (view.screenModus ?? "desktop")).flatMap((candidate) => candidate.items);
6263
- return view.items.some((item) => !isDashboardChartTypeAllowed(types, item.type, item.customChartId) && !previousItems.some((existing) => existing.id === item.id && existing.type === item.type && existing.customChartId === item.customChartId));
6253
+ return view.items.some((item) => !isDashboardChartTypeAllowed(types, item.type, item.customChartId) && !previousItems.some((existing) => existing.id === item.id && existing.type === item.type && (existing.customChartId ?? null) === (item.customChartId ?? null)));
6264
6254
  })) {
6265
6255
  return "chart-type";
6266
6256
  }
@@ -6409,9 +6399,6 @@ var LuzmoDashboardNext = class extends (_b = DashboardConfiguredElement, _a = da
6409
6399
  get layout() {
6410
6400
  return this.content.layout;
6411
6401
  }
6412
- static {
6413
- this.styles = [dashboardLayoutSkeletonStyles, dashboardNextStyles];
6414
- }
6415
6402
  connectedCallback() {
6416
6403
  if (!this.experimentalWarningShown) {
6417
6404
  console.warn("Luzmo dashboard-next is experimental. Its API and behavior may change without notice.");
@@ -6632,6 +6619,7 @@ var LuzmoDashboardNext = class extends (_b = DashboardConfiguredElement, _a = da
6632
6619
  `;
6633
6620
  }
6634
6621
  };
6622
+ LuzmoDashboardNext.styles = [dashboardLayoutSkeletonStyles, dashboardNextStyles];
6635
6623
  __decorateClass([
6636
6624
  property9({ type: String, attribute: "edit-mode", noAccessor: true })
6637
6625
  ], LuzmoDashboardNext.prototype, "editMode", 1);
@@ -8246,26 +8234,6 @@ var DashboardAddChartMenu = class extends LitElement7 {
8246
8234
  this.disabled = false;
8247
8235
  this.controller = new DashboardAddChartController(this, () => this.stores);
8248
8236
  }
8249
- static {
8250
- this.styles = css12`
8251
- :host { display: block; color: var(--luzmo-font-color); font: inherit; }
8252
- luzmo-popover { --luzmo-popover-border-radius: var(--luzmo-border-radius-l); --luzmo-popover-content-area-spacing-vertical: 0px; }
8253
- .panel { inline-size: min(calc(var(--luzmo-spacing-5) * 25), calc(100vw - var(--luzmo-spacing-5) * 2)); }
8254
- .search { padding: var(--luzmo-spacing-3); border-block-end: var(--luzmo-border-width) solid var(--luzmo-border-color); }
8255
- luzmo-search { inline-size: 100%; }
8256
- .catalog { padding: var(--luzmo-spacing-3); max-block-size: min(65vh, calc(var(--luzmo-spacing-5) * 28)); overflow: auto; overscroll-behavior: contain; }
8257
- h3 { margin: var(--luzmo-spacing-3) 0; font-size: var(--luzmo-font-size-s); font-weight: var(--luzmo-font-weight-semibold); color: var(--luzmo-font-color-extra-dimmed); }
8258
- .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 7rem), 1fr)); gap: var(--luzmo-spacing-2); }
8259
- .tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--luzmo-spacing-3); min-block-size: 5.5rem; padding: var(--luzmo-spacing-3); padding-block-start: calc(var(--luzmo-spacing-3) + .5lh); border: var(--luzmo-border-width) solid var(--luzmo-border-color); border-radius: var(--luzmo-border-radius); background: var(--luzmo-background-color); color: inherit; font: inherit; font-size: var(--luzmo-font-size-s); overflow-wrap: anywhere; cursor: pointer; }
8260
- .tile luzmo-icon { flex: none; --luzmo-icon-line-color: color-mix(in srgb, var(--luzmo-font-color) 60%, transparent); --luzmo-icon-line-color-dimmed: var(--luzmo-border-color); --luzmo-icon-color-1: var(--luzmo-primary); --luzmo-icon-color-2: color-mix(in srgb, var(--luzmo-primary) 50%, transparent); --luzmo-icon-color-3: color-mix(in srgb, var(--luzmo-primary) 25%, transparent); }
8261
- .tile span { display: flex; align-items: flex-start; justify-content: center; min-block-size: 2lh; text-align: center; }
8262
- .tile:hover { background: var(--luzmo-background-color-highlight); border-color: var(--luzmo-primary); }
8263
- .tile:active { background: color-mix(in srgb, var(--luzmo-primary) 15%, var(--luzmo-background-color)); }
8264
- .tile:focus-visible { outline: 2px solid var(--luzmo-primary); outline-offset: -2px; }
8265
- .tile:disabled { color: var(--luzmo-disabled-color); cursor: default; }
8266
- [role='status'] { text-align: center; padding: var(--luzmo-spacing-5); }
8267
- `;
8268
- }
8269
8237
  willUpdate(changes) {
8270
8238
  if (changes.has("stores")) {
8271
8239
  this.controller.connect();
@@ -8401,6 +8369,24 @@ var DashboardAddChartMenu = class extends LitElement7 {
8401
8369
  `;
8402
8370
  }
8403
8371
  };
8372
+ DashboardAddChartMenu.styles = css12`
8373
+ :host { display: block; color: var(--luzmo-font-color); font: inherit; }
8374
+ luzmo-popover { --luzmo-popover-border-radius: var(--luzmo-border-radius-l); --luzmo-popover-content-area-spacing-vertical: 0px; }
8375
+ .panel { inline-size: min(calc(var(--luzmo-spacing-5) * 25), calc(100vw - var(--luzmo-spacing-5) * 2)); }
8376
+ .search { padding: var(--luzmo-spacing-3); border-block-end: var(--luzmo-border-width) solid var(--luzmo-border-color); }
8377
+ luzmo-search { inline-size: 100%; }
8378
+ .catalog { padding: var(--luzmo-spacing-3); max-block-size: min(65vh, calc(var(--luzmo-spacing-5) * 28)); overflow: auto; overscroll-behavior: contain; }
8379
+ h3 { margin: var(--luzmo-spacing-3) 0; font-size: var(--luzmo-font-size-s); font-weight: var(--luzmo-font-weight-semibold); color: var(--luzmo-font-color-extra-dimmed); }
8380
+ .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 7rem), 1fr)); gap: var(--luzmo-spacing-2); }
8381
+ .tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--luzmo-spacing-3); min-block-size: 5.5rem; padding: var(--luzmo-spacing-3); padding-block-start: calc(var(--luzmo-spacing-3) + .5lh); border: var(--luzmo-border-width) solid var(--luzmo-border-color); border-radius: var(--luzmo-border-radius); background: var(--luzmo-background-color); color: inherit; font: inherit; font-size: var(--luzmo-font-size-s); overflow-wrap: anywhere; cursor: pointer; }
8382
+ .tile luzmo-icon { flex: none; --luzmo-icon-line-color: color-mix(in srgb, var(--luzmo-font-color) 60%, transparent); --luzmo-icon-line-color-dimmed: var(--luzmo-border-color); --luzmo-icon-color-1: var(--luzmo-primary); --luzmo-icon-color-2: color-mix(in srgb, var(--luzmo-primary) 50%, transparent); --luzmo-icon-color-3: color-mix(in srgb, var(--luzmo-primary) 25%, transparent); }
8383
+ .tile span { display: flex; align-items: flex-start; justify-content: center; min-block-size: 2lh; text-align: center; }
8384
+ .tile:hover { background: var(--luzmo-background-color-highlight); border-color: var(--luzmo-primary); }
8385
+ .tile:active { background: color-mix(in srgb, var(--luzmo-primary) 15%, var(--luzmo-background-color)); }
8386
+ .tile:focus-visible { outline: 2px solid var(--luzmo-primary); outline-offset: -2px; }
8387
+ .tile:disabled { color: var(--luzmo-disabled-color); cursor: default; }
8388
+ [role='status'] { text-align: center; padding: var(--luzmo-spacing-5); }
8389
+ `;
8404
8390
  __decorateClass([
8405
8391
  property10({ attribute: false })
8406
8392
  ], DashboardAddChartMenu.prototype, "stores", 2);
@@ -8806,9 +8792,6 @@ var DashboardPicker = class extends LitElement8 {
8806
8792
  this.showPicker = true;
8807
8793
  this.unsubscribers = [];
8808
8794
  }
8809
- static {
8810
- this.styles = [dashboardPickerStyles, dashboardPreviewThumbnailStyles];
8811
- }
8812
8795
  connectedCallback() {
8813
8796
  super.connectedCallback();
8814
8797
  this.subscribe();
@@ -9114,6 +9097,7 @@ var DashboardPicker = class extends LitElement8 {
9114
9097
  `;
9115
9098
  }
9116
9099
  };
9100
+ DashboardPicker.styles = [dashboardPickerStyles, dashboardPreviewThumbnailStyles];
9117
9101
  __decorateClass([
9118
9102
  property11({ attribute: false })
9119
9103
  ], DashboardPicker.prototype, "stores", 2);
@@ -9177,9 +9161,6 @@ var DashboardVariantDelete = class extends LitElement9 {
9177
9161
  super(...arguments);
9178
9162
  this.dirty = false;
9179
9163
  }
9180
- static {
9181
- this.styles = dashboardVariantDeleteStyles;
9182
- }
9183
9164
  updated() {
9184
9165
  const dialog = this.renderRoot.querySelector("dialog");
9185
9166
  if (dialog && !dialog.open) {
@@ -9216,6 +9197,7 @@ var DashboardVariantDelete = class extends LitElement9 {
9216
9197
  `;
9217
9198
  }
9218
9199
  };
9200
+ DashboardVariantDelete.styles = dashboardVariantDeleteStyles;
9219
9201
  __decorateClass([
9220
9202
  property12({ attribute: false })
9221
9203
  ], DashboardVariantDelete.prototype, "controller", 2);
@@ -9741,9 +9723,6 @@ var LuzmoDashboardAnalyst = class extends DashboardConfiguredElement {
9741
9723
  }
9742
9724
  });
9743
9725
  }
9744
- static {
9745
- this.styles = [dashboardAnalystStyles, dashboardAgentPanelStyles, dashboardAgentHistoryStyles, dashboardNextToolbarStyles, dashboardQuestionModeStyles];
9746
- }
9747
9726
  connectedCallback() {
9748
9727
  super.connectedCallback();
9749
9728
  this.disconnectDashboard = this.workspace.subscribe((next, previous) => {
@@ -9871,6 +9850,7 @@ var LuzmoDashboardAnalyst = class extends DashboardConfiguredElement {
9871
9850
  `;
9872
9851
  }
9873
9852
  };
9853
+ LuzmoDashboardAnalyst.styles = [dashboardAnalystStyles, dashboardAgentPanelStyles, dashboardAgentHistoryStyles, dashboardNextToolbarStyles, dashboardQuestionModeStyles];
9874
9854
  __decorateClass([
9875
9855
  property13({ type: String, attribute: "agent-id", noAccessor: true })
9876
9856
  ], LuzmoDashboardAnalyst.prototype, "agentId", 1);