@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.
@@ -1090,7 +1090,7 @@ var import_lit = require("lit");
1090
1090
  var import_decorators = require("lit/decorators.js");
1091
1091
 
1092
1092
  // libs/embed-libs/embed/package.json
1093
- var version = "10.1.0";
1093
+ var version = "10.1.1";
1094
1094
 
1095
1095
  // libs/embed-libs/embed/src/lib/shared/helpers/extents.ts
1096
1096
  var EXTENTS = [
@@ -1279,22 +1279,6 @@ var LuzmoBaseVizItem = class extends import_lit.LitElement {
1279
1279
  this.libVersion = version + "-wc-luzmo";
1280
1280
  this.postInitCallQueue = [];
1281
1281
  }
1282
- static {
1283
- // Static styles to set host display to block, else it is not shown at all for some reason.
1284
- this.styles = import_lit.css`
1285
- :host {
1286
- display: block;
1287
- width: 100%;
1288
- height: 100%;
1289
- }
1290
-
1291
- luzmo-embed-viz-item {
1292
- width: 100%;
1293
- height: 1000%;
1294
- display: block;
1295
- }
1296
- `;
1297
- }
1298
1282
  createRenderRoot() {
1299
1283
  if (!this.style.display) {
1300
1284
  this.style.display = "block";
@@ -1474,6 +1458,20 @@ var LuzmoBaseVizItem = class extends import_lit.LitElement {
1474
1458
  return import_lit.html``;
1475
1459
  }
1476
1460
  };
1461
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1462
+ LuzmoBaseVizItem.styles = import_lit.css`
1463
+ :host {
1464
+ display: block;
1465
+ width: 100%;
1466
+ height: 100%;
1467
+ }
1468
+
1469
+ luzmo-embed-viz-item {
1470
+ width: 100%;
1471
+ height: 1000%;
1472
+ display: block;
1473
+ }
1474
+ `;
1477
1475
  __decorateClass([
1478
1476
  (0, import_decorators.property)()
1479
1477
  ], LuzmoBaseVizItem.prototype, "appServer", 2);
@@ -4672,9 +4670,6 @@ var DashboardDataSettings = class extends import_lit7.LitElement {
4672
4670
  this.editorController = new DashboardDataSettingsController(this);
4673
4671
  this.controlWaiters = [];
4674
4672
  }
4675
- static {
4676
- this.styles = [dashboardChartSettingsStyles, dashboardDataSettingsStyles];
4677
- }
4678
4673
  get controlsPending() {
4679
4674
  return !this.editorController.context || this.editorController.state.loading;
4680
4675
  }
@@ -4763,6 +4758,7 @@ var DashboardDataSettings = class extends import_lit7.LitElement {
4763
4758
  `;
4764
4759
  }
4765
4760
  };
4761
+ DashboardDataSettings.styles = [dashboardChartSettingsStyles, dashboardDataSettingsStyles];
4766
4762
  __decorateClass([
4767
4763
  (0, import_decorators4.property)({ attribute: false })
4768
4764
  ], DashboardDataSettings.prototype, "stores", 2);
@@ -5102,9 +5098,6 @@ var DashboardSettingsPopover = class extends import_lit9.LitElement {
5102
5098
  this.tabs = ["data", "filters", "appearance"];
5103
5099
  this.disabled = false;
5104
5100
  }
5105
- static {
5106
- this.styles = dashboardSettingsPopoverStyles;
5107
- }
5108
5101
  async focusClose() {
5109
5102
  const button = this.renderRoot.querySelector('[part="close-settings"]');
5110
5103
  await button?.updateComplete;
@@ -5155,6 +5148,7 @@ var DashboardSettingsPopover = class extends import_lit9.LitElement {
5155
5148
  `;
5156
5149
  }
5157
5150
  };
5151
+ DashboardSettingsPopover.styles = dashboardSettingsPopoverStyles;
5158
5152
  __decorateClass([
5159
5153
  (0, import_decorators5.property)({ attribute: false })
5160
5154
  ], DashboardSettingsPopover.prototype, "labels", 2);
@@ -5281,9 +5275,6 @@ var DashboardFilterSettings = class extends import_lit11.LitElement {
5281
5275
  super(...arguments);
5282
5276
  this.controller = new DashboardFilterSettingsController(this);
5283
5277
  }
5284
- static {
5285
- this.styles = [dashboardChartSettingsStyles, dashboardFilterSettingsStyles];
5286
- }
5287
5278
  render() {
5288
5279
  const controller = this.controller;
5289
5280
  const { context, config, labels } = controller;
@@ -5315,6 +5306,7 @@ var DashboardFilterSettings = class extends import_lit11.LitElement {
5315
5306
  `;
5316
5307
  }
5317
5308
  };
5309
+ DashboardFilterSettings.styles = [dashboardChartSettingsStyles, dashboardFilterSettingsStyles];
5318
5310
  __decorateClass([
5319
5311
  (0, import_decorators6.property)({ attribute: false })
5320
5312
  ], DashboardFilterSettings.prototype, "stores", 2);
@@ -5775,9 +5767,6 @@ var DashboardAppearanceSettings = class extends import_lit13.LitElement {
5775
5767
  endInteractions() {
5776
5768
  this.controller.endInteractions();
5777
5769
  }
5778
- static {
5779
- this.styles = [dashboardChartSettingsStyles, dashboardAppearanceSettingsStyles];
5780
- }
5781
5770
  render() {
5782
5771
  const { context, config, labels } = this.controller;
5783
5772
  if (!context || !config || !labels) {
@@ -5864,6 +5853,7 @@ var DashboardAppearanceSettings = class extends import_lit13.LitElement {
5864
5853
  `;
5865
5854
  }
5866
5855
  };
5856
+ DashboardAppearanceSettings.styles = [dashboardChartSettingsStyles, dashboardAppearanceSettingsStyles];
5867
5857
  __decorateClass([
5868
5858
  (0, import_decorators7.property)({ attribute: false })
5869
5859
  ], DashboardAppearanceSettings.prototype, "stores", 2);
@@ -6262,7 +6252,7 @@ function applyDashboardAgentDraft(stores, dashboard, name, expected) {
6262
6252
  const synchronized = previousContents.syncScreenModes;
6263
6253
  if (contents.views.some((view) => {
6264
6254
  const previousItems = previousContents.views.filter((candidate) => synchronized || (candidate.screenModus ?? "desktop") === (view.screenModus ?? "desktop")).flatMap((candidate) => candidate.items);
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 === item.customChartId));
6255
+ 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)));
6266
6256
  })) {
6267
6257
  return "chart-type";
6268
6258
  }
@@ -6411,9 +6401,6 @@ var LuzmoDashboardNext = class extends (_b = DashboardConfiguredElement, _a = da
6411
6401
  get layout() {
6412
6402
  return this.content.layout;
6413
6403
  }
6414
- static {
6415
- this.styles = [dashboardLayoutSkeletonStyles, dashboardNextStyles];
6416
- }
6417
6404
  connectedCallback() {
6418
6405
  if (!this.experimentalWarningShown) {
6419
6406
  console.warn("Luzmo dashboard-next is experimental. Its API and behavior may change without notice.");
@@ -6634,6 +6621,7 @@ var LuzmoDashboardNext = class extends (_b = DashboardConfiguredElement, _a = da
6634
6621
  `;
6635
6622
  }
6636
6623
  };
6624
+ LuzmoDashboardNext.styles = [dashboardLayoutSkeletonStyles, dashboardNextStyles];
6637
6625
  __decorateClass([
6638
6626
  (0, import_decorators9.property)({ type: String, attribute: "edit-mode", noAccessor: true })
6639
6627
  ], LuzmoDashboardNext.prototype, "editMode", 1);
@@ -1078,7 +1078,7 @@ import { css, html, LitElement } from "lit";
1078
1078
  import { property } from "lit/decorators.js";
1079
1079
 
1080
1080
  // libs/embed-libs/embed/package.json
1081
- var version = "10.1.0";
1081
+ var version = "10.1.1";
1082
1082
 
1083
1083
  // libs/embed-libs/embed/src/lib/shared/helpers/extents.ts
1084
1084
  var EXTENTS = [
@@ -1267,22 +1267,6 @@ var LuzmoBaseVizItem = class extends LitElement {
1267
1267
  this.libVersion = version + "-wc-luzmo";
1268
1268
  this.postInitCallQueue = [];
1269
1269
  }
1270
- static {
1271
- // Static styles to set host display to block, else it is not shown at all for some reason.
1272
- this.styles = css`
1273
- :host {
1274
- display: block;
1275
- width: 100%;
1276
- height: 100%;
1277
- }
1278
-
1279
- luzmo-embed-viz-item {
1280
- width: 100%;
1281
- height: 1000%;
1282
- display: block;
1283
- }
1284
- `;
1285
- }
1286
1270
  createRenderRoot() {
1287
1271
  if (!this.style.display) {
1288
1272
  this.style.display = "block";
@@ -1462,6 +1446,20 @@ var LuzmoBaseVizItem = class extends LitElement {
1462
1446
  return html``;
1463
1447
  }
1464
1448
  };
1449
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1450
+ LuzmoBaseVizItem.styles = css`
1451
+ :host {
1452
+ display: block;
1453
+ width: 100%;
1454
+ height: 100%;
1455
+ }
1456
+
1457
+ luzmo-embed-viz-item {
1458
+ width: 100%;
1459
+ height: 1000%;
1460
+ display: block;
1461
+ }
1462
+ `;
1465
1463
  __decorateClass([
1466
1464
  property()
1467
1465
  ], LuzmoBaseVizItem.prototype, "appServer", 2);
@@ -4660,9 +4658,6 @@ var DashboardDataSettings = class extends LitElement2 {
4660
4658
  this.editorController = new DashboardDataSettingsController(this);
4661
4659
  this.controlWaiters = [];
4662
4660
  }
4663
- static {
4664
- this.styles = [dashboardChartSettingsStyles, dashboardDataSettingsStyles];
4665
- }
4666
4661
  get controlsPending() {
4667
4662
  return !this.editorController.context || this.editorController.state.loading;
4668
4663
  }
@@ -4751,6 +4746,7 @@ var DashboardDataSettings = class extends LitElement2 {
4751
4746
  `;
4752
4747
  }
4753
4748
  };
4749
+ DashboardDataSettings.styles = [dashboardChartSettingsStyles, dashboardDataSettingsStyles];
4754
4750
  __decorateClass([
4755
4751
  property4({ attribute: false })
4756
4752
  ], DashboardDataSettings.prototype, "stores", 2);
@@ -5090,9 +5086,6 @@ var DashboardSettingsPopover = class extends LitElement3 {
5090
5086
  this.tabs = ["data", "filters", "appearance"];
5091
5087
  this.disabled = false;
5092
5088
  }
5093
- static {
5094
- this.styles = dashboardSettingsPopoverStyles;
5095
- }
5096
5089
  async focusClose() {
5097
5090
  const button = this.renderRoot.querySelector('[part="close-settings"]');
5098
5091
  await button?.updateComplete;
@@ -5143,6 +5136,7 @@ var DashboardSettingsPopover = class extends LitElement3 {
5143
5136
  `;
5144
5137
  }
5145
5138
  };
5139
+ DashboardSettingsPopover.styles = dashboardSettingsPopoverStyles;
5146
5140
  __decorateClass([
5147
5141
  property5({ attribute: false })
5148
5142
  ], DashboardSettingsPopover.prototype, "labels", 2);
@@ -5269,9 +5263,6 @@ var DashboardFilterSettings = class extends LitElement4 {
5269
5263
  super(...arguments);
5270
5264
  this.controller = new DashboardFilterSettingsController(this);
5271
5265
  }
5272
- static {
5273
- this.styles = [dashboardChartSettingsStyles, dashboardFilterSettingsStyles];
5274
- }
5275
5266
  render() {
5276
5267
  const controller = this.controller;
5277
5268
  const { context, config, labels } = controller;
@@ -5303,6 +5294,7 @@ var DashboardFilterSettings = class extends LitElement4 {
5303
5294
  `;
5304
5295
  }
5305
5296
  };
5297
+ DashboardFilterSettings.styles = [dashboardChartSettingsStyles, dashboardFilterSettingsStyles];
5306
5298
  __decorateClass([
5307
5299
  property6({ attribute: false })
5308
5300
  ], DashboardFilterSettings.prototype, "stores", 2);
@@ -5763,9 +5755,6 @@ var DashboardAppearanceSettings = class extends LitElement5 {
5763
5755
  endInteractions() {
5764
5756
  this.controller.endInteractions();
5765
5757
  }
5766
- static {
5767
- this.styles = [dashboardChartSettingsStyles, dashboardAppearanceSettingsStyles];
5768
- }
5769
5758
  render() {
5770
5759
  const { context, config, labels } = this.controller;
5771
5760
  if (!context || !config || !labels) {
@@ -5852,6 +5841,7 @@ var DashboardAppearanceSettings = class extends LitElement5 {
5852
5841
  `;
5853
5842
  }
5854
5843
  };
5844
+ DashboardAppearanceSettings.styles = [dashboardChartSettingsStyles, dashboardAppearanceSettingsStyles];
5855
5845
  __decorateClass([
5856
5846
  property7({ attribute: false })
5857
5847
  ], DashboardAppearanceSettings.prototype, "stores", 2);
@@ -6250,7 +6240,7 @@ function applyDashboardAgentDraft(stores, dashboard, name, expected) {
6250
6240
  const synchronized = previousContents.syncScreenModes;
6251
6241
  if (contents.views.some((view) => {
6252
6242
  const previousItems = previousContents.views.filter((candidate) => synchronized || (candidate.screenModus ?? "desktop") === (view.screenModus ?? "desktop")).flatMap((candidate) => candidate.items);
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 === item.customChartId));
6243
+ 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)));
6254
6244
  })) {
6255
6245
  return "chart-type";
6256
6246
  }
@@ -6399,9 +6389,6 @@ var LuzmoDashboardNext = class extends (_b = DashboardConfiguredElement, _a = da
6399
6389
  get layout() {
6400
6390
  return this.content.layout;
6401
6391
  }
6402
- static {
6403
- this.styles = [dashboardLayoutSkeletonStyles, dashboardNextStyles];
6404
- }
6405
6392
  connectedCallback() {
6406
6393
  if (!this.experimentalWarningShown) {
6407
6394
  console.warn("Luzmo dashboard-next is experimental. Its API and behavior may change without notice.");
@@ -6622,6 +6609,7 @@ var LuzmoDashboardNext = class extends (_b = DashboardConfiguredElement, _a = da
6622
6609
  `;
6623
6610
  }
6624
6611
  };
6612
+ LuzmoDashboardNext.styles = [dashboardLayoutSkeletonStyles, dashboardNextStyles];
6625
6613
  __decorateClass([
6626
6614
  property9({ type: String, attribute: "edit-mode", noAccessor: true })
6627
6615
  ], LuzmoDashboardNext.prototype, "editMode", 1);
package/index.js CHANGED
@@ -1453,7 +1453,7 @@ import { property, query, state } from "lit/decorators.js";
1453
1453
  import { styleMap } from "lit/directives/style-map.js";
1454
1454
 
1455
1455
  // libs/embed-libs/embed/package.json
1456
- var version = "10.1.0";
1456
+ var version = "10.1.1";
1457
1457
 
1458
1458
  // libs/embed-libs/embed/src/lib/utils/embed-error.utils.ts
1459
1459
  function buildEmbedErrorDetail(errorMsg) {
@@ -2817,22 +2817,6 @@ var LuzmoBaseVizItem = class extends LitElement2 {
2817
2817
  this.libVersion = version + "-wc-luzmo";
2818
2818
  this.postInitCallQueue = [];
2819
2819
  }
2820
- static {
2821
- // Static styles to set host display to block, else it is not shown at all for some reason.
2822
- this.styles = css2`
2823
- :host {
2824
- display: block;
2825
- width: 100%;
2826
- height: 100%;
2827
- }
2828
-
2829
- luzmo-embed-viz-item {
2830
- width: 100%;
2831
- height: 1000%;
2832
- display: block;
2833
- }
2834
- `;
2835
- }
2836
2820
  createRenderRoot() {
2837
2821
  if (!this.style.display) {
2838
2822
  this.style.display = "block";
@@ -3012,6 +2996,20 @@ var LuzmoBaseVizItem = class extends LitElement2 {
3012
2996
  return html2``;
3013
2997
  }
3014
2998
  };
2999
+ // Static styles to set host display to block, else it is not shown at all for some reason.
3000
+ LuzmoBaseVizItem.styles = css2`
3001
+ :host {
3002
+ display: block;
3003
+ width: 100%;
3004
+ height: 100%;
3005
+ }
3006
+
3007
+ luzmo-embed-viz-item {
3008
+ width: 100%;
3009
+ height: 1000%;
3010
+ display: block;
3011
+ }
3012
+ `;
3015
3013
  __decorateClass([
3016
3014
  property2()
3017
3015
  ], LuzmoBaseVizItem.prototype, "appServer", 2);
@@ -3120,16 +3118,6 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
3120
3118
  this.remoteEntryServer = "http://localhost:4202/";
3121
3119
  this.aydHost = "https://ayd.luzmo.com/";
3122
3120
  }
3123
- static {
3124
- // Static styles to set host display to block, else it is not shown at all for some reason.
3125
- this.styles = css3`
3126
- :host {
3127
- display: block;
3128
- width: 100%;
3129
- height: 100%;
3130
- }
3131
- `;
3132
- }
3133
3121
  createRenderRoot() {
3134
3122
  return this;
3135
3123
  }
@@ -3207,6 +3195,14 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
3207
3195
  observer.observe(embedChat, { childList: true, subtree: true });
3208
3196
  }
3209
3197
  };
3198
+ // Static styles to set host display to block, else it is not shown at all for some reason.
3199
+ LuzmoIQEmbedChatComponent.styles = css3`
3200
+ :host {
3201
+ display: block;
3202
+ width: 100%;
3203
+ height: 100%;
3204
+ }
3205
+ `;
3210
3206
  __decorateClass([
3211
3207
  property3()
3212
3208
  ], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
@@ -3283,16 +3279,6 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
3283
3279
  this.libVersion = version + "-wc-luzmo";
3284
3280
  this.remoteEntryServer = "http://localhost:4202";
3285
3281
  }
3286
- static {
3287
- // Static styles to set host display to block, else it is not shown at all for some reason.
3288
- this.styles = css4`
3289
- :host {
3290
- display: block;
3291
- width: 100%;
3292
- height: 100%;
3293
- }
3294
- `;
3295
- }
3296
3282
  createRenderRoot() {
3297
3283
  return this;
3298
3284
  }
@@ -3343,6 +3329,14 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
3343
3329
  return html4` `;
3344
3330
  }
3345
3331
  };
3332
+ // Static styles to set host display to block, else it is not shown at all for some reason.
3333
+ LuzmoIQEmbedAnswerComponent.styles = css4`
3334
+ :host {
3335
+ display: block;
3336
+ width: 100%;
3337
+ height: 100%;
3338
+ }
3339
+ `;
3346
3340
  __decorateClass([
3347
3341
  property4()
3348
3342
  ], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);