@luzmo/analytics-components-kit 1.0.1-alpha.49 → 1.0.1-alpha.50

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.
@@ -17,8 +17,8 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- import { r as ie, x as y, n as f } from "./property-DCzt3DR1.js";
21
- import { h as oe } from "./task-Bh_X-xIU.js";
20
+ import { r as oe, x as f, n as b } from "./property-DCzt3DR1.js";
21
+ import { h as ne } from "./task-Bh_X-xIU.js";
22
22
  import "./index-CskV_bXp.js";
23
23
  import "./index-CsDgk_sj.js";
24
24
  import "./index-BC1LV3vH.js";
@@ -26,7 +26,7 @@ import "./index-CbuHBIDB.js";
26
26
  import "./index-C3N6qTxJ.js";
27
27
  import "./index-DE3d0E0P.js";
28
28
  import "./index-BmshD32H.js";
29
- import { r as ne } from "./state-nDsQPund.js";
29
+ import { r as G } from "./state-nDsQPund.js";
30
30
  import { e as ae } from "./query-Ddbd72Um.js";
31
31
  import { a8 as V, af as le, a7 as ue } from "./luzmo-icons-CVeTZ59u.js";
32
32
  import { L as ce } from "./focusable-BbymtxWI.js";
@@ -50,7 +50,7 @@ var he = Object.defineProperty, me = (e, t, s) => t in e ? he(e, t, { enumerable
50
50
  * Use of this source code is governed by an MIT-style license that can be
51
51
  * found in the LICENSE file at https://angular.io/license
52
52
  */
53
- function G(e, t) {
53
+ function H(e, t) {
54
54
  return Object.is(e, t);
55
55
  }
56
56
  /**
@@ -105,12 +105,12 @@ function O(e) {
105
105
  const s = u.producerNode[t];
106
106
  k(s, u.producerIndexOfThis[t]);
107
107
  }
108
- u.producerNode[t] !== e && (u.producerNode[t] = e, u.producerIndexOfThis[t] = R(u) ? K(e, u, t) : 0), u.producerLastReadVersion[t] = e.version;
108
+ u.producerNode[t] !== e && (u.producerNode[t] = e, u.producerIndexOfThis[t] = R(u) ? Q(e, u, t) : 0), u.producerLastReadVersion[t] = e.version;
109
109
  }
110
110
  function ye() {
111
111
  E++;
112
112
  }
113
- function H(e) {
113
+ function J(e) {
114
114
  if (!(!e.dirty && e.lastCleanEpoch === E)) {
115
115
  if (!e.producerMustRecompute(e) && !_e(e)) {
116
116
  e.dirty = !1, e.lastCleanEpoch = E;
@@ -119,7 +119,7 @@ function H(e) {
119
119
  e.producerRecomputeValue(e), e.dirty = !1, e.lastCleanEpoch = E;
120
120
  }
121
121
  }
122
- function J(e) {
122
+ function K(e) {
123
123
  if (e.liveConsumerNode === void 0)
124
124
  return;
125
125
  const t = x;
@@ -136,7 +136,7 @@ function be() {
136
136
  }
137
137
  function ze(e) {
138
138
  var t;
139
- e.dirty = !0, J(e), (t = e.consumerMarkedDirty) == null || t.call(e.wrapper ?? e);
139
+ e.dirty = !0, K(e), (t = e.consumerMarkedDirty) == null || t.call(e.wrapper ?? e);
140
140
  }
141
141
  function we(e) {
142
142
  return e && (e.nextProducerIndex = 0), S(e);
@@ -154,17 +154,17 @@ function _e(e) {
154
154
  $(e);
155
155
  for (let t = 0; t < e.producerNode.length; t++) {
156
156
  const s = e.producerNode[t], o = e.producerLastReadVersion[t];
157
- if (o !== s.version || (H(s), o !== s.version))
157
+ if (o !== s.version || (J(s), o !== s.version))
158
158
  return !0;
159
159
  }
160
160
  return !1;
161
161
  }
162
- function K(e, t, s) {
162
+ function Q(e, t, s) {
163
163
  var o;
164
164
  if (U(e), $(e), e.liveConsumerNode.length === 0) {
165
165
  (o = e.watched) == null || o.call(e.wrapper);
166
166
  for (let r = 0; r < e.producerNode.length; r++)
167
- e.producerIndexOfThis[r] = K(e.producerNode[r], e, r);
167
+ e.producerIndexOfThis[r] = Q(e.producerNode[r], e, r);
168
168
  }
169
169
  return e.liveConsumerIndexOfThis.push(s), e.liveConsumerNode.push(t) - 1;
170
170
  }
@@ -202,15 +202,15 @@ function U(e) {
202
202
  * Use of this source code is governed by an MIT-style license that can be
203
203
  * found in the LICENSE file at https://angular.io/license
204
204
  */
205
- function Q(e) {
206
- if (H(e), O(e), e.value === q)
205
+ function X(e) {
206
+ if (J(e), O(e), e.value === q)
207
207
  throw e.error;
208
208
  return e.value;
209
209
  }
210
210
  function Se(e) {
211
211
  const t = Object.create($e);
212
212
  t.computation = e;
213
- const s = () => Q(t);
213
+ const s = () => X(t);
214
214
  return s[I] = t, s;
215
215
  }
216
216
  const W = /* @__PURE__ */ Symbol("UNSET"), D = /* @__PURE__ */ Symbol("COMPUTING"), q = /* @__PURE__ */ Symbol("ERRORED"), $e = {
@@ -218,7 +218,7 @@ const W = /* @__PURE__ */ Symbol("UNSET"), D = /* @__PURE__ */ Symbol("COMPUTING
218
218
  value: W,
219
219
  dirty: !0,
220
220
  error: null,
221
- equal: G,
221
+ equal: H,
222
222
  producerMustRecompute(e) {
223
223
  return e.value === W || e.value === D;
224
224
  },
@@ -278,11 +278,11 @@ function Oe(e, t) {
278
278
  }
279
279
  const ke = {
280
280
  ...A,
281
- equal: G,
281
+ equal: H,
282
282
  value: void 0
283
283
  };
284
284
  function Le(e) {
285
- e.version++, ye(), J(e);
285
+ e.version++, ye(), K(e);
286
286
  }
287
287
  /**
288
288
  * @license
@@ -301,7 +301,7 @@ function Le(e) {
301
301
  * limitations under the License.
302
302
  */
303
303
  const d = Symbol("node");
304
- var b;
304
+ var y;
305
305
  ((e) => {
306
306
  var t, s, o, r;
307
307
  class l {
@@ -342,7 +342,7 @@ var b;
342
342
  get() {
343
343
  if (!(0, e.isComputed)(this))
344
344
  throw new TypeError("Wrong receiver type for Signal.Computed.prototype.get");
345
- return Q(this[d]);
345
+ return X(this[d]);
346
346
  }
347
347
  }
348
348
  o = d, r = /* @__PURE__ */ new WeakSet(), e.isComputed = (c) => typeof c == "object" && P(r, c), e.Computed = z, ((c) => {
@@ -357,35 +357,35 @@ var b;
357
357
  return n;
358
358
  }
359
359
  c.untrack = C;
360
- function X(a) {
360
+ function Y(a) {
361
361
  var n;
362
362
  if (!(0, e.isComputed)(a) && !(0, e.isWatcher)(a))
363
363
  throw new TypeError("Called introspectSources without a Computed or Watcher argument");
364
364
  return ((n = a[d].producerNode) == null ? void 0 : n.map((i) => i.wrapper)) ?? [];
365
365
  }
366
- c.introspectSources = X;
367
- function Y(a) {
366
+ c.introspectSources = Y;
367
+ function Z(a) {
368
368
  var n;
369
369
  if (!(0, e.isComputed)(a) && !(0, e.isState)(a))
370
370
  throw new TypeError("Called introspectSinks without a Signal argument");
371
371
  return ((n = a[d].liveConsumerNode) == null ? void 0 : n.map((i) => i.wrapper)) ?? [];
372
372
  }
373
- c.introspectSinks = Y;
374
- function Z(a) {
373
+ c.introspectSinks = Z;
374
+ function ee(a) {
375
375
  if (!(0, e.isComputed)(a) && !(0, e.isState)(a))
376
376
  throw new TypeError("Called hasSinks without a Signal argument");
377
377
  const n = a[d].liveConsumerNode;
378
378
  return n ? n.length > 0 : !1;
379
379
  }
380
- c.hasSinks = Z;
381
- function ee(a) {
380
+ c.hasSinks = ee;
381
+ function te(a) {
382
382
  if (!(0, e.isComputed)(a) && !(0, e.isWatcher)(a))
383
383
  throw new TypeError("Called hasSources without a Computed or Watcher argument");
384
384
  const n = a[d].producerNode;
385
385
  return n ? n.length > 0 : !1;
386
386
  }
387
- c.hasSources = ee;
388
- class te {
387
+ c.hasSources = te;
388
+ class se {
389
389
  // When a (recursive) source of Watcher is written to, call this callback,
390
390
  // if it hasn't already been called since the last `watch` call.
391
391
  // No signals may be read or written during the notify.
@@ -421,8 +421,8 @@ var b;
421
421
  k(i.producerNode[g], i.producerIndexOfThis[g]);
422
422
  const T = i.producerNode.length - 1;
423
423
  if (i.producerNode[g] = i.producerNode[T], i.producerIndexOfThis[g] = i.producerIndexOfThis[T], i.producerNode.length--, i.producerIndexOfThis.length--, i.nextProducerIndex--, g < i.producerNode.length) {
424
- const re = i.producerIndexOfThis[g], M = i.producerNode[g];
425
- U(M), M.liveConsumerIndexOfThis[re] = g;
424
+ const ie = i.producerIndexOfThis[g], M = i.producerNode[g];
425
+ U(M), M.liveConsumerIndexOfThis[ie] = g;
426
426
  }
427
427
  }
428
428
  }
@@ -438,14 +438,14 @@ var b;
438
438
  for (const n of a)
439
439
  if (!(0, e.isComputed)(n) && !(0, e.isState)(n))
440
440
  throw new TypeError("Called watch/unwatch without a Computed or State argument");
441
- }, e.isWatcher = (a) => P(h, a), c.Watcher = te;
442
- function se() {
441
+ }, e.isWatcher = (a) => P(h, a), c.Watcher = se;
442
+ function re() {
443
443
  var a;
444
444
  return (a = ve()) == null ? void 0 : a.wrapper;
445
445
  }
446
- c.currentComputed = se, c.watched = Symbol("watched"), c.unwatched = Symbol("unwatched");
446
+ c.currentComputed = re, c.watched = Symbol("watched"), c.unwatched = Symbol("unwatched");
447
447
  })(e.subtle || (e.subtle = {}));
448
- })(b || (b = {}));
448
+ })(y || (y = {}));
449
449
  /**
450
450
  * @license
451
451
  * Copyright 2023 Google LLC
@@ -457,14 +457,14 @@ const Pe = Symbol("SignalWatcherBrand"), We = new FinalizationRegistry(({ watche
457
457
  function De(e) {
458
458
  return e[Pe] === !0 ? (console.warn("SignalWatcher should not be applied to the same class more than once."), e) : class extends e {
459
459
  constructor() {
460
- super(...arguments), this._$St = new b.State(0), this._$Si = !1, this._$So = !0, this._$Sh = /* @__PURE__ */ new Set();
460
+ super(...arguments), this._$St = new y.State(0), this._$Si = !1, this._$So = !0, this._$Sh = /* @__PURE__ */ new Set();
461
461
  }
462
462
  _$Sl() {
463
463
  if (this._$Su !== void 0) return;
464
- this._$Sv = new b.Computed(() => {
464
+ this._$Sv = new y.Computed(() => {
465
465
  this._$St.get(), super.performUpdate();
466
466
  });
467
- const t = this._$Su = new b.subtle.Watcher(function() {
467
+ const t = this._$Su = new y.subtle.Watcher(function() {
468
468
  const s = F.get(this);
469
469
  s !== void 0 && (s._$Si === !1 && s.requestUpdate(), this.watch());
470
470
  });
@@ -509,9 +509,9 @@ function De(e) {
509
509
  * Copyright 2023 Google LLC
510
510
  * SPDX-License-Identifier: BSD-3-Clause
511
511
  */
512
- b.State;
513
- b.Computed;
514
- const st = (e, t) => new b.State(e, t), rt = (e, t) => new b.Computed(e, t);
512
+ y.State;
513
+ y.Computed;
514
+ const st = (e, t) => new y.State(e, t), rt = (e, t) => new y.Computed(e, t);
515
515
  /**
516
516
  * @license
517
517
  * Copyright 2021 Google LLC
@@ -582,7 +582,7 @@ class m extends De(
582
582
  })
583
583
  ) {
584
584
  constructor() {
585
- super(...arguments), this._loadDisplaySettings = new oe(this, {
585
+ super(...arguments), this._loadDisplaySettings = new ne(this, {
586
586
  task: async ([t, s, o]) => {
587
587
  const r = [];
588
588
  this.grandTotals && r.push("grandTotals"), this.periodOverPeriod && r.push("periodOverPeriod"), (s === "numeric" || s === "mixed" && (t == null ? void 0 : t.type) === "numeric") && r.push("numeric"), s !== "numeric" && (t == null ? void 0 : t.type) === "datetime" && r.push("datetime"), !["numeric", "mixed"].includes(s ?? "") && (t == null ? void 0 : t.type) === "numeric" && !this.binningDisabled && r.push("binning"), r.length > 0 && !o && (r.includes("numeric") && !this._settingsTypeLoaded.numeric ? (await import("./display-settings-numeric/index.js"), this._settingsTypeLoaded.numeric = !0, r.includes("periodOverPeriod") && !this._settingsTypeLoaded.periodOverPeriod && (await import("./display-settings-period-over-period/index.js"), this._settingsTypeLoaded.periodOverPeriod = !0)) : r.includes("datetime") && !this._settingsTypeLoaded.datetime ? (await import("./display-settings-datetime/index.js"), this._settingsTypeLoaded.datetime = !0) : r.includes("binning") && !this._settingsTypeLoaded.binning ? (await import("./display-settings-binning/index.js"), this._settingsTypeLoaded.binning = !0) : r.includes("grandTotals") && !this._settingsTypeLoaded.grandTotals && (await import("./display-settings-grand-totals/index.js"), this._settingsTypeLoaded.grandTotals = !0));
@@ -598,12 +598,12 @@ class m extends De(
598
598
  }, this._currentSlotContent = {};
599
599
  }
600
600
  static get styles() {
601
- return [ie(Ue)];
601
+ return [oe(Ue)];
602
602
  }
603
603
  willUpdate() {
604
- var s;
604
+ var s, o;
605
605
  const t = (s = this._store) == null ? void 0 : s.activeSlotContents.get();
606
- t && t !== this._currentSlotContent && (this._currentSlotContent = structuredClone(t));
606
+ this.periodOverPeriod = (o = this._store) == null ? void 0 : o.periodOverPeriodEnabled.get(), t && t !== this._currentSlotContent && (this._currentSlotContent = structuredClone(t));
607
607
  }
608
608
  _onSlotContentChange(t) {
609
609
  t.stopPropagation(), t.preventDefault(), this._currentSlotContent = structuredClone(t.detail.slotContent), this._sendEvent(), this.requestUpdate();
@@ -639,7 +639,7 @@ class m extends De(
639
639
  this._showIds = !this._showIds;
640
640
  }
641
641
  _renderDisplaySettings() {
642
- return y`<div class="settings-container">
642
+ return f`<div class="settings-container">
643
643
  <div class="settings-row">
644
644
  <div class="setting">
645
645
  <div class="label-container">
@@ -661,7 +661,7 @@ class m extends De(
661
661
  Show dataset and column id's
662
662
  </luzmo-tooltip>
663
663
  </button>
664
- ${this.showRemoveButton ? y`<button
664
+ ${this.showRemoveButton ? f`<button
665
665
  class="remove-button"
666
666
  @click=${this._removeEvent}
667
667
  >
@@ -677,40 +677,40 @@ class m extends De(
677
677
  </div>
678
678
  </div>
679
679
  </div>
680
- ${this.grandTotals ? y`<luzmo-display-settings-grand-totals
680
+ ${this.grandTotals ? f`<luzmo-display-settings-grand-totals
681
681
  .language=${this.language}
682
682
  .slotContent=${this._currentSlotContent}
683
683
  .size=${this.size}
684
684
  @slot-content-changed=${this._onSlotContentChange}
685
685
  ></luzmo-display-settings-grand-totals>` : ""}
686
- ${this.slotType === "numeric" || this.slotType === "mixed" && this.slotContent.type === "numeric" ? y`<luzmo-display-settings-numeric
686
+ ${this.slotType === "numeric" || this.slotType === "mixed" && this.slotContent.type === "numeric" ? f`<luzmo-display-settings-numeric
687
687
  .language=${this.language}
688
688
  .slotContent=${this._currentSlotContent}
689
689
  .size=${this.size}
690
690
  .measureColumns=${this.measureColumns}
691
691
  @slot-content-changed=${this._onSlotContentChange}
692
692
  ></luzmo-display-settings-numeric>` : ""}
693
- ${this.slotType !== "numeric" && this.slotContent.type === "datetime" ? y`<luzmo-display-settings-datetime
693
+ ${this.slotType !== "numeric" && this.slotContent.type === "datetime" ? f`<luzmo-display-settings-datetime
694
694
  .language=${this.language}
695
695
  .contentLanguage=${this.contentLanguage}
696
696
  .slotContent=${this._currentSlotContent}
697
697
  .size=${this.size}
698
698
  @slot-content-changed=${this._onSlotContentChange}
699
699
  ></luzmo-display-settings-datetime>` : ""}
700
- ${!["numeric", "mixed"].includes(this.slotType ?? "") && this.slotContent.type === "numeric" && !this.binningDisabled ? y`<luzmo-display-settings-binning
700
+ ${!["numeric", "mixed"].includes(this.slotType ?? "") && this.slotContent.type === "numeric" && !this.binningDisabled ? f`<luzmo-display-settings-binning
701
701
  .language=${this.language}
702
702
  .slotContent=${this._currentSlotContent}
703
703
  .size=${this.size}
704
704
  @slot-content-changed=${this._onSlotContentChange}
705
705
  ></luzmo-display-settings-binning>` : ""}
706
- ${this.periodOverPeriod ? y`<luzmo-display-settings-period-over-period
706
+ ${this.periodOverPeriod ? f`<luzmo-display-settings-period-over-period
707
707
  .language=${this.language}
708
708
  .slotContent=${this._currentSlotContent}
709
709
  .size=${this.size}
710
710
  @slot-content-changed=${this._onSlotContentChange}
711
711
  ></luzmo-display-settings-period-over-period>` : ""}
712
712
  </div>
713
- ${this._showIds ? y` <luzmo-divider></luzmo-divider>
713
+ ${this._showIds ? f` <luzmo-divider></luzmo-divider>
714
714
  <div class="ids-container">
715
715
  <div>
716
716
  <span class="id-label">Column: </span>
@@ -727,7 +727,7 @@ class m extends De(
727
727
  }
728
728
  render() {
729
729
  return this._loadDisplaySettings.render({
730
- pending: () => y`<luzmo-progress-circle
730
+ pending: () => f`<luzmo-progress-circle
731
731
  indeterminate
732
732
  .size=${this.size}
733
733
  ></luzmo-progress-circle>`,
@@ -737,37 +737,37 @@ class m extends De(
737
737
  }
738
738
  }
739
739
  v([
740
- f({ type: String })
740
+ b({ type: String })
741
741
  ], m.prototype, "language");
742
742
  v([
743
- f({ type: String, attribute: "content-language" })
743
+ b({ type: String, attribute: "content-language" })
744
744
  ], m.prototype, "contentLanguage");
745
745
  v([
746
- f({ type: Boolean, attribute: "hide-display-settings" })
746
+ b({ type: Boolean, attribute: "hide-display-settings" })
747
747
  ], m.prototype, "hideDisplaySettings");
748
748
  v([
749
- f({ type: Boolean, attribute: "binning-disabled" })
749
+ b({ type: Boolean, attribute: "binning-disabled" })
750
750
  ], m.prototype, "binningDisabled");
751
751
  v([
752
- f({ type: Boolean, attribute: "grand-totals" })
752
+ b({ type: Boolean, attribute: "grand-totals" })
753
753
  ], m.prototype, "grandTotals");
754
754
  v([
755
- f({ type: Boolean, attribute: "period-over-period" })
755
+ G()
756
756
  ], m.prototype, "periodOverPeriod");
757
757
  v([
758
- f({ type: Boolean, attribute: "show-remove-button" })
758
+ b({ type: Boolean, attribute: "show-remove-button" })
759
759
  ], m.prototype, "showRemoveButton");
760
760
  v([
761
- f({ type: String, attribute: "slot-type" })
761
+ b({ type: String, attribute: "slot-type" })
762
762
  ], m.prototype, "slotType");
763
763
  v([
764
- f()
764
+ b()
765
765
  ], m.prototype, "slotContent");
766
766
  v([
767
- ne()
767
+ G()
768
768
  ], m.prototype, "_showIds");
769
769
  v([
770
- f({ type: Array, reflect: !1 })
770
+ b({ type: Array, reflect: !1 })
771
771
  ], m.prototype, "measureColumns");
772
772
  v([
773
773
  ae("luzmo-multi-language-field")
@@ -17,25 +17,25 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";const c=require("./property-Cu4Q1hS4.cjs"),le=require("./task-CwmAXlv0.cjs");require("./index-DtohCwyO.cjs");require("./index-j8UKjHqY.cjs");require("./index-DSQyBS9Z.cjs");require("./index-Tx5oQjbt.cjs");require("./index-BKwbYw6x.cjs");require("./index-cHKqEi5-.cjs");require("./index-CYeQkVeJ.cjs");const ue=require("./state-fyl3IYMu.cjs"),ce=require("./query-D5qWDopr.cjs"),T=require("./luzmo-icons-DonyjSXg.cjs"),de=require("./focusable-DAGGGYyz.cjs"),V=require("./sized-mixin-j_7aJM4b.cjs");var pe=Object.defineProperty,he=(e,t,s)=>t in e?pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,q=(e,t,s)=>(he(e,typeof t!="symbol"?t+"":t,s),s),me=(e,t,s)=>{if(!t.has(e))throw TypeError("Cannot "+s)},L=(e,t)=>{if(Object(t)!==t)throw TypeError('Cannot use the "in" operator on this value');return e.has(t)},N=(e,t,s)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,s)},B=(e,t,s)=>(me(e,t,"access private method"),s);/**
20
+ "use strict";const c=require("./property-Cu4Q1hS4.cjs"),ue=require("./task-CwmAXlv0.cjs");require("./index-DtohCwyO.cjs");require("./index-j8UKjHqY.cjs");require("./index-DSQyBS9Z.cjs");require("./index-Tx5oQjbt.cjs");require("./index-BKwbYw6x.cjs");require("./index-cHKqEi5-.cjs");require("./index-CYeQkVeJ.cjs");const G=require("./state-fyl3IYMu.cjs"),ce=require("./query-D5qWDopr.cjs"),T=require("./luzmo-icons-DonyjSXg.cjs"),de=require("./focusable-DAGGGYyz.cjs"),V=require("./sized-mixin-j_7aJM4b.cjs");var pe=Object.defineProperty,he=(e,t,s)=>t in e?pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,q=(e,t,s)=>(he(e,typeof t!="symbol"?t+"":t,s),s),me=(e,t,s)=>{if(!t.has(e))throw TypeError("Cannot "+s)},P=(e,t)=>{if(Object(t)!==t)throw TypeError('Cannot use the "in" operator on this value');return e.has(t)},N=(e,t,s)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,s)},B=(e,t,s)=>(me(e,t,"access private method"),s);/**
21
21
  * @license
22
22
  * Copyright Google LLC All Rights Reserved.
23
23
  *
24
24
  * Use of this source code is governed by an MIT-style license that can be
25
25
  * found in the LICENSE file at https://angular.io/license
26
- */function G(e,t){return Object.is(e,t)}/**
26
+ */function H(e,t){return Object.is(e,t)}/**
27
27
  * @license
28
28
  * Copyright Google LLC All Rights Reserved.
29
29
  *
30
30
  * Use of this source code is governed by an MIT-style license that can be
31
31
  * found in the LICENSE file at https://angular.io/license
32
- */let u=null,x=!1,I=1;const E=Symbol("SIGNAL");function _(e){const t=u;return u=e,t}function ge(){return u}function ve(){return x}const A={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function O(e){if(x)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Assertion error: signal read during notification phase":"");if(u===null)return;u.consumerOnSignalRead(e);const t=u.nextProducerIndex++;if(S(u),t<u.producerNode.length&&u.producerNode[t]!==e&&D(u)){const s=u.producerNode[t];k(s,u.producerIndexOfThis[t])}u.producerNode[t]!==e&&(u.producerNode[t]=e,u.producerIndexOfThis[t]=D(u)?K(e,u,t):0),u.producerLastReadVersion[t]=e.version}function fe(){I++}function H(e){if(!(!e.dirty&&e.lastCleanEpoch===I)){if(!e.producerMustRecompute(e)&&!Ce(e)){e.dirty=!1,e.lastCleanEpoch=I;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=I}}function J(e){if(e.liveConsumerNode===void 0)return;const t=x;x=!0;try{for(const s of e.liveConsumerNode)s.dirty||be(s)}finally{x=t}}function ye(){return(u==null?void 0:u.consumerAllowSignalWrites)!==!1}function be(e){var t;e.dirty=!0,J(e),(t=e.consumerMarkedDirty)==null||t.call(e.wrapper??e)}function ze(e){return e&&(e.nextProducerIndex=0),_(e)}function we(e,t){if(_(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(D(e))for(let s=e.nextProducerIndex;s<e.producerNode.length;s++)k(e.producerNode[s],e.producerIndexOfThis[s]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Ce(e){S(e);for(let t=0;t<e.producerNode.length;t++){const s=e.producerNode[t],o=e.producerLastReadVersion[t];if(o!==s.version||(H(s),o!==s.version))return!0}return!1}function K(e,t,s){var o;if(U(e),S(e),e.liveConsumerNode.length===0){(o=e.watched)==null||o.call(e.wrapper);for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=K(e.producerNode[r],e,r)}return e.liveConsumerIndexOfThis.push(s),e.liveConsumerNode.push(t)-1}function k(e,t){var s;if(U(e),S(e),typeof ngDevMode<"u"&&ngDevMode&&t>=e.liveConsumerNode.length)throw new Error(`Assertion error: active consumer index ${t} is out of bounds of ${e.liveConsumerNode.length} consumers)`);if(e.liveConsumerNode.length===1){(s=e.unwatched)==null||s.call(e.wrapper);for(let r=0;r<e.producerNode.length;r++)k(e.producerNode[r],e.producerIndexOfThis[r])}const o=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[o],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[o],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){const r=e.liveConsumerIndexOfThis[t],l=e.liveConsumerNode[t];S(l),l.producerIndexOfThis[r]=t}}function D(e){var t;return e.consumerIsAlwaysLive||(((t=e==null?void 0:e.liveConsumerNode)==null?void 0:t.length)??0)>0}function S(e){e.producerNode??(e.producerNode=[]),e.producerIndexOfThis??(e.producerIndexOfThis=[]),e.producerLastReadVersion??(e.producerLastReadVersion=[])}function U(e){e.liveConsumerNode??(e.liveConsumerNode=[]),e.liveConsumerIndexOfThis??(e.liveConsumerIndexOfThis=[])}/**
32
+ */let u=null,x=!1,E=1;const I=Symbol("SIGNAL");function _(e){const t=u;return u=e,t}function ge(){return u}function ve(){return x}const A={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function O(e){if(x)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Assertion error: signal read during notification phase":"");if(u===null)return;u.consumerOnSignalRead(e);const t=u.nextProducerIndex++;if(S(u),t<u.producerNode.length&&u.producerNode[t]!==e&&D(u)){const s=u.producerNode[t];k(s,u.producerIndexOfThis[t])}u.producerNode[t]!==e&&(u.producerNode[t]=e,u.producerIndexOfThis[t]=D(u)?Q(e,u,t):0),u.producerLastReadVersion[t]=e.version}function fe(){E++}function J(e){if(!(!e.dirty&&e.lastCleanEpoch===E)){if(!e.producerMustRecompute(e)&&!Ce(e)){e.dirty=!1,e.lastCleanEpoch=E;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=E}}function K(e){if(e.liveConsumerNode===void 0)return;const t=x;x=!0;try{for(const s of e.liveConsumerNode)s.dirty||be(s)}finally{x=t}}function ye(){return(u==null?void 0:u.consumerAllowSignalWrites)!==!1}function be(e){var t;e.dirty=!0,K(e),(t=e.consumerMarkedDirty)==null||t.call(e.wrapper??e)}function ze(e){return e&&(e.nextProducerIndex=0),_(e)}function we(e,t){if(_(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(D(e))for(let s=e.nextProducerIndex;s<e.producerNode.length;s++)k(e.producerNode[s],e.producerIndexOfThis[s]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Ce(e){S(e);for(let t=0;t<e.producerNode.length;t++){const s=e.producerNode[t],o=e.producerLastReadVersion[t];if(o!==s.version||(J(s),o!==s.version))return!0}return!1}function Q(e,t,s){var o;if(U(e),S(e),e.liveConsumerNode.length===0){(o=e.watched)==null||o.call(e.wrapper);for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=Q(e.producerNode[r],e,r)}return e.liveConsumerIndexOfThis.push(s),e.liveConsumerNode.push(t)-1}function k(e,t){var s;if(U(e),S(e),typeof ngDevMode<"u"&&ngDevMode&&t>=e.liveConsumerNode.length)throw new Error(`Assertion error: active consumer index ${t} is out of bounds of ${e.liveConsumerNode.length} consumers)`);if(e.liveConsumerNode.length===1){(s=e.unwatched)==null||s.call(e.wrapper);for(let r=0;r<e.producerNode.length;r++)k(e.producerNode[r],e.producerIndexOfThis[r])}const o=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[o],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[o],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){const r=e.liveConsumerIndexOfThis[t],l=e.liveConsumerNode[t];S(l),l.producerIndexOfThis[r]=t}}function D(e){var t;return e.consumerIsAlwaysLive||(((t=e==null?void 0:e.liveConsumerNode)==null?void 0:t.length)??0)>0}function S(e){e.producerNode??(e.producerNode=[]),e.producerIndexOfThis??(e.producerIndexOfThis=[]),e.producerLastReadVersion??(e.producerLastReadVersion=[])}function U(e){e.liveConsumerNode??(e.liveConsumerNode=[]),e.liveConsumerIndexOfThis??(e.liveConsumerIndexOfThis=[])}/**
33
33
  * @license
34
34
  * Copyright Google LLC All Rights Reserved.
35
35
  *
36
36
  * Use of this source code is governed by an MIT-style license that can be
37
37
  * found in the LICENSE file at https://angular.io/license
38
- */function Q(e){if(H(e),O(e),e.value===R)throw e.error;return e.value}function _e(e){const t=Object.create(Se);t.computation=e;const s=()=>Q(t);return s[E]=t,s}const P=Symbol("UNSET"),W=Symbol("COMPUTING"),R=Symbol("ERRORED"),Se={...A,value:P,dirty:!0,error:null,equal:G,producerMustRecompute(e){return e.value===P||e.value===W},producerRecomputeValue(e){if(e.value===W)throw new Error("Detected cycle in computations.");const t=e.value;e.value=W;const s=ze(e);let o,r=!1;try{o=e.computation.call(e.wrapper),r=t!==P&&t!==R&&e.equal.call(e.wrapper,t,o)}catch(l){o=R,e.error=l}finally{we(e,s)}if(r){e.value=t;return}e.value=o,e.version++}};/**
38
+ */function X(e){if(J(e),O(e),e.value===R)throw e.error;return e.value}function _e(e){const t=Object.create(Se);t.computation=e;const s=()=>X(t);return s[I]=t,s}const L=Symbol("UNSET"),W=Symbol("COMPUTING"),R=Symbol("ERRORED"),Se={...A,value:L,dirty:!0,error:null,equal:H,producerMustRecompute(e){return e.value===L||e.value===W},producerRecomputeValue(e){if(e.value===W)throw new Error("Detected cycle in computations.");const t=e.value;e.value=W;const s=ze(e);let o,r=!1;try{o=e.computation.call(e.wrapper),r=t!==L&&t!==R&&e.equal.call(e.wrapper,t,o)}catch(l){o=R,e.error=l}finally{we(e,s)}if(r){e.value=t;return}e.value=o,e.version++}};/**
39
39
  * @license
40
40
  * Copyright Google LLC All Rights Reserved.
41
41
  *
@@ -47,7 +47,7 @@
47
47
  *
48
48
  * Use of this source code is governed by an MIT-style license that can be
49
49
  * found in the LICENSE file at https://angular.io/license
50
- */function Ne(e){const t=Object.create(Oe);t.value=e;const s=()=>(O(t),t.value);return s[E]=t,s}function Ie(){return O(this),this.value}function Ee(e,t){ye()||Te(),e.equal.call(e.wrapper,e.value,t)||(e.value=t,ke(e))}const Oe={...A,equal:G,value:void 0};function ke(e){e.version++,fe(),J(e)}/**
50
+ */function Ne(e){const t=Object.create(Oe);t.value=e;const s=()=>(O(t),t.value);return s[I]=t,s}function Ee(){return O(this),this.value}function Ie(e,t){ye()||Te(),e.equal.call(e.wrapper,e.value,t)||(e.value=t,ke(e))}const Oe={...A,equal:H,value:void 0};function ke(e){e.version++,fe(),K(e)}/**
51
51
  * @license
52
52
  * Copyright 2024 Bloomberg Finance L.P.
53
53
  *
@@ -62,19 +62,19 @@
62
62
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
63
63
  * See the License for the specific language governing permissions and
64
64
  * limitations under the License.
65
- */const p=Symbol("node");var y;(e=>{var t,s,o,r;class l{constructor(z,m={}){N(this,s),q(this,t);const h=Ne(z)[E];if(this[p]=h,h.wrapper=this,m){const w=m.equals;w&&(h.equal=w),h.watched=m[e.subtle.watched],h.unwatched=m[e.subtle.unwatched]}}get(){if(!(0,e.isState)(this))throw new TypeError("Wrong receiver type for Signal.State.prototype.get");return Ie.call(this[p])}set(z){if(!(0,e.isState)(this))throw new TypeError("Wrong receiver type for Signal.State.prototype.set");if(ve())throw new Error("Writes to signals not permitted during Watcher callback");const m=this[p];Ee(m,z)}}t=p,s=new WeakSet,e.isState=d=>typeof d=="object"&&L(s,d),e.State=l;class b{constructor(z,m){N(this,r),q(this,o);const h=_e(z)[E];if(h.consumerAllowSignalWrites=!0,this[p]=h,h.wrapper=this,m){const w=m.equals;w&&(h.equal=w),h.watched=m[e.subtle.watched],h.unwatched=m[e.subtle.unwatched]}}get(){if(!(0,e.isComputed)(this))throw new TypeError("Wrong receiver type for Signal.Computed.prototype.get");return Q(this[p])}}o=p,r=new WeakSet,e.isComputed=d=>typeof d=="object"&&L(r,d),e.Computed=b,(d=>{var z,m,C,h;function w(a){let n,i=null;try{i=_(null),n=a()}finally{_(i)}return n}d.untrack=w;function te(a){var n;if(!(0,e.isComputed)(a)&&!(0,e.isWatcher)(a))throw new TypeError("Called introspectSources without a Computed or Watcher argument");return((n=a[p].producerNode)==null?void 0:n.map(i=>i.wrapper))??[]}d.introspectSources=te;function se(a){var n;if(!(0,e.isComputed)(a)&&!(0,e.isState)(a))throw new TypeError("Called introspectSinks without a Signal argument");return((n=a[p].liveConsumerNode)==null?void 0:n.map(i=>i.wrapper))??[]}d.introspectSinks=se;function re(a){if(!(0,e.isComputed)(a)&&!(0,e.isState)(a))throw new TypeError("Called hasSinks without a Signal argument");const n=a[p].liveConsumerNode;return n?n.length>0:!1}d.hasSinks=re;function ie(a){if(!(0,e.isComputed)(a)&&!(0,e.isWatcher)(a))throw new TypeError("Called hasSources without a Computed or Watcher argument");const n=a[p].producerNode;return n?n.length>0:!1}d.hasSources=ie;class oe{constructor(n){N(this,m),N(this,C),q(this,z);let i=Object.create(A);i.wrapper=this,i.consumerMarkedDirty=n,i.consumerIsAlwaysLive=!0,i.consumerAllowSignalWrites=!1,i.producerNode=[],this[p]=i}watch(...n){if(!(0,e.isWatcher)(this))throw new TypeError("Called unwatch without Watcher receiver");B(this,C,h).call(this,n);const i=this[p];i.dirty=!1;const v=_(i);for(const $ of n)O($[p]);_(v)}unwatch(...n){if(!(0,e.isWatcher)(this))throw new TypeError("Called unwatch without Watcher receiver");B(this,C,h).call(this,n);const i=this[p];S(i);for(let v=i.producerNode.length-1;v>=0;v--)if(n.includes(i.producerNode[v].wrapper)){k(i.producerNode[v],i.producerIndexOfThis[v]);const $=i.producerNode.length-1;if(i.producerNode[v]=i.producerNode[$],i.producerIndexOfThis[v]=i.producerIndexOfThis[$],i.producerNode.length--,i.producerIndexOfThis.length--,i.nextProducerIndex--,v<i.producerNode.length){const ae=i.producerIndexOfThis[v],M=i.producerNode[v];U(M),M.liveConsumerIndexOfThis[ae]=v}}}getPending(){if(!(0,e.isWatcher)(this))throw new TypeError("Called getPending without Watcher receiver");return this[p].producerNode.filter(i=>i.dirty).map(i=>i.wrapper)}}z=p,m=new WeakSet,C=new WeakSet,h=function(a){for(const n of a)if(!(0,e.isComputed)(n)&&!(0,e.isState)(n))throw new TypeError("Called watch/unwatch without a Computed or State argument")},e.isWatcher=a=>L(m,a),d.Watcher=oe;function ne(){var a;return(a=ge())==null?void 0:a.wrapper}d.currentComputed=ne,d.watched=Symbol("watched"),d.unwatched=Symbol("unwatched")})(e.subtle||(e.subtle={}))})(y||(y={}));/**
65
+ */const p=Symbol("node");var y;(e=>{var t,s,o,r;class l{constructor(z,m={}){N(this,s),q(this,t);const h=Ne(z)[I];if(this[p]=h,h.wrapper=this,m){const w=m.equals;w&&(h.equal=w),h.watched=m[e.subtle.watched],h.unwatched=m[e.subtle.unwatched]}}get(){if(!(0,e.isState)(this))throw new TypeError("Wrong receiver type for Signal.State.prototype.get");return Ee.call(this[p])}set(z){if(!(0,e.isState)(this))throw new TypeError("Wrong receiver type for Signal.State.prototype.set");if(ve())throw new Error("Writes to signals not permitted during Watcher callback");const m=this[p];Ie(m,z)}}t=p,s=new WeakSet,e.isState=d=>typeof d=="object"&&P(s,d),e.State=l;class b{constructor(z,m){N(this,r),q(this,o);const h=_e(z)[I];if(h.consumerAllowSignalWrites=!0,this[p]=h,h.wrapper=this,m){const w=m.equals;w&&(h.equal=w),h.watched=m[e.subtle.watched],h.unwatched=m[e.subtle.unwatched]}}get(){if(!(0,e.isComputed)(this))throw new TypeError("Wrong receiver type for Signal.Computed.prototype.get");return X(this[p])}}o=p,r=new WeakSet,e.isComputed=d=>typeof d=="object"&&P(r,d),e.Computed=b,(d=>{var z,m,C,h;function w(a){let n,i=null;try{i=_(null),n=a()}finally{_(i)}return n}d.untrack=w;function se(a){var n;if(!(0,e.isComputed)(a)&&!(0,e.isWatcher)(a))throw new TypeError("Called introspectSources without a Computed or Watcher argument");return((n=a[p].producerNode)==null?void 0:n.map(i=>i.wrapper))??[]}d.introspectSources=se;function re(a){var n;if(!(0,e.isComputed)(a)&&!(0,e.isState)(a))throw new TypeError("Called introspectSinks without a Signal argument");return((n=a[p].liveConsumerNode)==null?void 0:n.map(i=>i.wrapper))??[]}d.introspectSinks=re;function ie(a){if(!(0,e.isComputed)(a)&&!(0,e.isState)(a))throw new TypeError("Called hasSinks without a Signal argument");const n=a[p].liveConsumerNode;return n?n.length>0:!1}d.hasSinks=ie;function oe(a){if(!(0,e.isComputed)(a)&&!(0,e.isWatcher)(a))throw new TypeError("Called hasSources without a Computed or Watcher argument");const n=a[p].producerNode;return n?n.length>0:!1}d.hasSources=oe;class ne{constructor(n){N(this,m),N(this,C),q(this,z);let i=Object.create(A);i.wrapper=this,i.consumerMarkedDirty=n,i.consumerIsAlwaysLive=!0,i.consumerAllowSignalWrites=!1,i.producerNode=[],this[p]=i}watch(...n){if(!(0,e.isWatcher)(this))throw new TypeError("Called unwatch without Watcher receiver");B(this,C,h).call(this,n);const i=this[p];i.dirty=!1;const v=_(i);for(const $ of n)O($[p]);_(v)}unwatch(...n){if(!(0,e.isWatcher)(this))throw new TypeError("Called unwatch without Watcher receiver");B(this,C,h).call(this,n);const i=this[p];S(i);for(let v=i.producerNode.length-1;v>=0;v--)if(n.includes(i.producerNode[v].wrapper)){k(i.producerNode[v],i.producerIndexOfThis[v]);const $=i.producerNode.length-1;if(i.producerNode[v]=i.producerNode[$],i.producerIndexOfThis[v]=i.producerIndexOfThis[$],i.producerNode.length--,i.producerIndexOfThis.length--,i.nextProducerIndex--,v<i.producerNode.length){const le=i.producerIndexOfThis[v],M=i.producerNode[v];U(M),M.liveConsumerIndexOfThis[le]=v}}}getPending(){if(!(0,e.isWatcher)(this))throw new TypeError("Called getPending without Watcher receiver");return this[p].producerNode.filter(i=>i.dirty).map(i=>i.wrapper)}}z=p,m=new WeakSet,C=new WeakSet,h=function(a){for(const n of a)if(!(0,e.isComputed)(n)&&!(0,e.isState)(n))throw new TypeError("Called watch/unwatch without a Computed or State argument")},e.isWatcher=a=>P(m,a),d.Watcher=ne;function ae(){var a;return(a=ge())==null?void 0:a.wrapper}d.currentComputed=ae,d.watched=Symbol("watched"),d.unwatched=Symbol("unwatched")})(e.subtle||(e.subtle={}))})(y||(y={}));/**
66
66
  * @license
67
67
  * Copyright 2023 Google LLC
68
68
  * SPDX-License-Identifier: BSD-3-Clause
69
- */const qe=Symbol("SignalWatcherBrand"),Le=new FinalizationRegistry(({watcher:e,signal:t})=>{e.unwatch(t)}),F=new WeakMap;function X(e){return e[qe]===!0?(console.warn("SignalWatcher should not be applied to the same class more than once."),e):class extends e{constructor(){super(...arguments),this._$St=new y.State(0),this._$Si=!1,this._$So=!0,this._$Sh=new Set}_$Sl(){if(this._$Su!==void 0)return;this._$Sv=new y.Computed(()=>{this._$St.get(),super.performUpdate()});const t=this._$Su=new y.subtle.Watcher(function(){const s=F.get(this);s!==void 0&&(s._$Si===!1&&s.requestUpdate(),this.watch())});F.set(t,this),Le.register(this,{watcher:t,signal:this._$Sv}),t.watch(this._$Sv)}_$Sp(){this._$Su!==void 0&&(this._$Su.unwatch(this._$Sv),this._$Sv=void 0,this._$Su=void 0)}performUpdate(){this.isUpdatePending&&(this._$Sl(),this._$Si=!0,this._$St.set(this._$St.get()+1),this._$Si=!1,this._$Sv.get())}update(t){try{this._$So?(this._$So=!1,super.update(t)):this._$Sh.forEach(s=>s.commit())}finally{this.isUpdatePending=!1,this._$Sh.clear()}}requestUpdate(t,s,o){this._$So=!0,super.requestUpdate(t,s,o)}connectedCallback(){super.connectedCallback(),this.requestUpdate()}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected===!1&&this._$Sp()})}_(t){this._$Sh.add(t);const s=this._$So;this.requestUpdate(),this._$So=s}m(t){this._$Sh.delete(t)}}}/**
69
+ */const qe=Symbol("SignalWatcherBrand"),Pe=new FinalizationRegistry(({watcher:e,signal:t})=>{e.unwatch(t)}),F=new WeakMap;function Y(e){return e[qe]===!0?(console.warn("SignalWatcher should not be applied to the same class more than once."),e):class extends e{constructor(){super(...arguments),this._$St=new y.State(0),this._$Si=!1,this._$So=!0,this._$Sh=new Set}_$Sl(){if(this._$Su!==void 0)return;this._$Sv=new y.Computed(()=>{this._$St.get(),super.performUpdate()});const t=this._$Su=new y.subtle.Watcher(function(){const s=F.get(this);s!==void 0&&(s._$Si===!1&&s.requestUpdate(),this.watch())});F.set(t,this),Pe.register(this,{watcher:t,signal:this._$Sv}),t.watch(this._$Sv)}_$Sp(){this._$Su!==void 0&&(this._$Su.unwatch(this._$Sv),this._$Sv=void 0,this._$Su=void 0)}performUpdate(){this.isUpdatePending&&(this._$Sl(),this._$Si=!0,this._$St.set(this._$St.get()+1),this._$Si=!1,this._$Sv.get())}update(t){try{this._$So?(this._$So=!1,super.update(t)):this._$Sh.forEach(s=>s.commit())}finally{this.isUpdatePending=!1,this._$Sh.clear()}}requestUpdate(t,s,o){this._$So=!0,super.requestUpdate(t,s,o)}connectedCallback(){super.connectedCallback(),this.requestUpdate()}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected===!1&&this._$Sp()})}_(t){this._$Sh.add(t);const s=this._$So;this.requestUpdate(),this._$So=s}m(t){this._$Sh.delete(t)}}}/**
70
70
  * @license
71
71
  * Copyright 2023 Google LLC
72
72
  * SPDX-License-Identifier: BSD-3-Clause
73
- */y.State;y.Computed;const Pe=(e,t)=>new y.State(e,t),We=(e,t)=>new y.Computed(e,t);/**
73
+ */y.State;y.Computed;const Le=(e,t)=>new y.State(e,t),We=(e,t)=>new y.Computed(e,t);/**
74
74
  * @license
75
75
  * Copyright 2021 Google LLC
76
76
  * SPDX-License-Identifier: BSD-3-Clause
77
- */let Y=class extends Event{constructor(t,s,o,r){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=s,this.callback=o,this.subscribe=r??!1}};/**
77
+ */let Z=class extends Event{constructor(t,s,o,r){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=s,this.callback=o,this.subscribe=r??!1}};/**
78
78
  * @license
79
79
  * Copyright 2021 Google LLC
80
80
  * SPDX-License-Identifier: BSD-3-Clause
@@ -82,11 +82,11 @@
82
82
  * @license
83
83
  * Copyright 2021 Google LLC
84
84
  * SPDX-License-Identifier: BSD-3-Clause
85
- */class j{constructor(t,s,o,r){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(l,b)=>{this.unsubscribe&&(this.unsubscribe!==b&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=l,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(l,b)),this.unsubscribe=b},this.host=t,s.context!==void 0){const l=s;this.context=l.context,this.callback=l.callback,this.subscribe=l.subscribe??!1}else this.context=s,this.callback=o,this.subscribe=r??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Y(this.context,this.host,this.t,this.subscribe))}}/**
85
+ */class j{constructor(t,s,o,r){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(l,b)=>{this.unsubscribe&&(this.unsubscribe!==b&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=l,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(l,b)),this.unsubscribe=b},this.host=t,s.context!==void 0){const l=s;this.context=l.context,this.callback=l.callback,this.subscribe=l.subscribe??!1}else this.context=s,this.callback=o,this.subscribe=r??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Z(this.context,this.host,this.t,this.subscribe))}}/**
86
86
  * @license
87
87
  * Copyright 2022 Google LLC
88
88
  * SPDX-License-Identifier: BSD-3-Clause
89
- */function Z({context:e,subscribe:t}){return(s,o)=>{typeof o=="object"?o.addInitializer(function(){new j(this,{context:e,callback:r=>{s.set.call(this,r)},subscribe:t})}):s.constructor.addInitializer(r=>{new j(r,{context:e,callback:l=>{r[o]=l},subscribe:t})})}}const ee=Symbol("slot-store-context"),De=":host{font-family:var(--luzmo-display-settings-font-family, var(--luzmo-font-family));font-size:var(--luzmo-display-settings-font-size, var(--display-settings-font-size));color:var(--luzmo-display-settings-font-color, var(--luzmo-font-color))}.settings-container{display:flex;flex-direction:column;gap:var(--luzmo-spacing-2)}.settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-gap, var(--display-settings-gap))}luzmo-divider{margin:var(--luzmo-display-settings-ids-container-vertical-margin, var(--display-settings-ids-container-vertical-margin)) 0}.setting{display:flex;align-items:center}.label-action-container{display:flex;align-items:center;justify-content:space-between;gap:var(--luzmo-display-settings-info-to-remove-icon-gap, var(--display-settings-info-to-remove-icon-gap))}.id-button,.remove-button{outline:none;cursor:pointer;border:none;background:none;font-size:var(--luzmo-display-settings-font-size, var(--display-settings-font-size));color:var(--luzmo-display-settings-font-color, var(--luzmo-font-color))}.remove-button{display:block;width:var(--luzmo-display-settings-remove-button-size, var(--display-settings-remove-button-size));height:var(--luzmo-display-settings-remove-button-size, var(--display-settings-remove-button-size));border-radius:var(--luzmo-display-settings-remove-button-border-radius, 50%)}.remove-button:hover{background-color:var(--luzmo-display-settings-remove-button-background-color-hover, var(--luzmo-background-color-hover))}.remove-button:active,.remove-button:focus{background-color:var(--luzmo-display-settings-remove-button-background-color-down, var(--luzmo-background-color-down))}.remove-button:focus-visible{box-shadow:0 0 0 var(--luzmo-display-settings-remove-button-indicator-thickness, var(--display-settings-remove-button-indicator-thickness)) var(--highcontrast-remove-button-indicator-color, var(--luzmo-display-settings-remove-button-indicator-color, var(--display-settings-remove-button-indicator-color)))}.ids-container{display:flex;flex-direction:column;gap:var(--luzmo-display-settings-gap, var(--display-settings-gap));border-radius:50%}.id-label{text-transform:var(--luzmo-display-settings-id-label-text-transform, var(--display-settings-id-label-text-transform));font-size:var(--luzmo-display-settings-id-label-font-size, var(--display-settings-id-label-font-size));color:var(--luzmo-display-settings-id-label-color, var(--display-settings-id-label-color))}:host{--display-settings-font-family: var(--luzmo-font-family);--display-settings-id-label-text-transform: uppercase;--display-settings-id-label-color: var(--luzmo-secondary);--display-settings-remove-button-indicator-color: var(--luzmo-primary);--display-settings-remove-button-indicator-thickness: var( --luzmo-border-width )}:host{--display-settings-font-size: var(--luzmo-font-size);--display-settings-id-label-font-size: var(--luzmo-font-size-s);--display-settings-gap: var(--luzmo-spacing-3);--display-settings-ids-container-vertical-margin: var(--luzmo-spacing-4);--display-settings-info-to-remove-icon-gap: var(--luzmo-spacing-5);--display-settings-remove-button-size: var(--luzmo-component-height)}:host([size=s]){--display-settings-id-label-font-size: var(--luzmo-font-size-s);--display-settings-font-size: var(--luzmo-font-size-s);--display-settings-gap: var(--luzmo-spacing-3);--display-settings-ids-container-vertical-margin: var(--luzmo-spacing-3);--display-settings-info-to-remove-icon-gap: var(--luzmo-spacing-4);--display-settings-remove-button-size: var(--luzmo-component-height-s)}:host([size=l]){--display-settings-id-label-font-size: var(--luzmo-font-size);--display-settings-font-size: var(--luzmo-font-size-l);--display-settings-gap: var(--luzmo-spacing-4);--display-settings-ids-container-vertical-margin: var(--luzmo-spacing-5);--display-settings-info-to-remove-icon-gap: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--display-settings-remove-button-size: var(--luzmo-component-height-l)}:host([size=xl]){--display-settings-id-label-font-size: var(--luzmo-font-size-l);--display-settings-font-size: var(--luzmo-font-size-xl);--display-settings-gap: var(--luzmo-spacing-5);--display-settings-ids-container-vertical-margin: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--display-settings-info-to-remove-icon-gap: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-2) );--display-settings-remove-button-size: var(--luzmo-component-height-xl)}";var Re=Object.defineProperty,f=(e,t,s,o)=>{for(var r=void 0,l=e.length-1,b;l>=0;l--)(b=e[l])&&(r=b(t,s,r)||r);return r&&Re(t,s,r),r};class g extends X(V.SizedMixin(de.LuzmoElement,{validSizes:Object.values(V.ElementSizes)})){constructor(){super(...arguments),this._loadDisplaySettings=new le.h(this,{task:async([t,s,o])=>{const r=[];this.grandTotals&&r.push("grandTotals"),this.periodOverPeriod&&r.push("periodOverPeriod"),(s==="numeric"||s==="mixed"&&(t==null?void 0:t.type)==="numeric")&&r.push("numeric"),s!=="numeric"&&(t==null?void 0:t.type)==="datetime"&&r.push("datetime"),!["numeric","mixed"].includes(s??"")&&(t==null?void 0:t.type)==="numeric"&&!this.binningDisabled&&r.push("binning"),r.length>0&&!o&&(r.includes("numeric")&&!this._settingsTypeLoaded.numeric?(await Promise.resolve().then(()=>require("./display-settings-numeric/index.cjs")),this._settingsTypeLoaded.numeric=!0,r.includes("periodOverPeriod")&&!this._settingsTypeLoaded.periodOverPeriod&&(await Promise.resolve().then(()=>require("./display-settings-period-over-period/index.cjs")),this._settingsTypeLoaded.periodOverPeriod=!0)):r.includes("datetime")&&!this._settingsTypeLoaded.datetime?(await Promise.resolve().then(()=>require("./display-settings-datetime/index.cjs")),this._settingsTypeLoaded.datetime=!0):r.includes("binning")&&!this._settingsTypeLoaded.binning?(await Promise.resolve().then(()=>require("./display-settings-binning/index.cjs")),this._settingsTypeLoaded.binning=!0):r.includes("grandTotals")&&!this._settingsTypeLoaded.grandTotals&&(await Promise.resolve().then(()=>require("./display-settings-grand-totals/index.cjs")),this._settingsTypeLoaded.grandTotals=!0))},args:()=>[this.slotContent,this.slotType,this.hideDisplaySettings]}),this.language="en",this.contentLanguage="en",this.slotType="numeric",this.slotContent={},this._showIds=!1,this.measureColumns=[],this._settingsTypeLoaded={binning:!1,datetime:!1,numeric:!1,grandTotals:!1,periodOverPeriod:!1,hierarchy:!0},this._currentSlotContent={}}static get styles(){return[c.r(De)]}willUpdate(){var s;const t=(s=this._store)==null?void 0:s.activeSlotContents.get();t&&t!==this._currentSlotContent&&(this._currentSlotContent=structuredClone(t))}_onSlotContentChange(t){t.stopPropagation(),t.preventDefault(),this._currentSlotContent=structuredClone(t.detail.slotContent),this._sendEvent(),this.requestUpdate()}_onLabelChange(){this._currentSlotContent=structuredClone(this._currentSlotContent),this._currentSlotContent.label=this._multiLanguageFieldElement.value||{},this._sendEvent(),this.requestUpdate()}_sendEvent(){this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:{...this._currentSlotContent}}})),this._store&&this._store.updateContent({...this._currentSlotContent})}_removeEvent(){this.dispatchEvent(new CustomEvent("remove-slot-content",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:this._currentSlotContent}}))}_toggleIds(){this._showIds=!this._showIds}_renderDisplaySettings(){return c.x`<div class="settings-container">
89
+ */function ee({context:e,subscribe:t}){return(s,o)=>{typeof o=="object"?o.addInitializer(function(){new j(this,{context:e,callback:r=>{s.set.call(this,r)},subscribe:t})}):s.constructor.addInitializer(r=>{new j(r,{context:e,callback:l=>{r[o]=l},subscribe:t})})}}const te=Symbol("slot-store-context"),De=":host{font-family:var(--luzmo-display-settings-font-family, var(--luzmo-font-family));font-size:var(--luzmo-display-settings-font-size, var(--display-settings-font-size));color:var(--luzmo-display-settings-font-color, var(--luzmo-font-color))}.settings-container{display:flex;flex-direction:column;gap:var(--luzmo-spacing-2)}.settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-gap, var(--display-settings-gap))}luzmo-divider{margin:var(--luzmo-display-settings-ids-container-vertical-margin, var(--display-settings-ids-container-vertical-margin)) 0}.setting{display:flex;align-items:center}.label-action-container{display:flex;align-items:center;justify-content:space-between;gap:var(--luzmo-display-settings-info-to-remove-icon-gap, var(--display-settings-info-to-remove-icon-gap))}.id-button,.remove-button{outline:none;cursor:pointer;border:none;background:none;font-size:var(--luzmo-display-settings-font-size, var(--display-settings-font-size));color:var(--luzmo-display-settings-font-color, var(--luzmo-font-color))}.remove-button{display:block;width:var(--luzmo-display-settings-remove-button-size, var(--display-settings-remove-button-size));height:var(--luzmo-display-settings-remove-button-size, var(--display-settings-remove-button-size));border-radius:var(--luzmo-display-settings-remove-button-border-radius, 50%)}.remove-button:hover{background-color:var(--luzmo-display-settings-remove-button-background-color-hover, var(--luzmo-background-color-hover))}.remove-button:active,.remove-button:focus{background-color:var(--luzmo-display-settings-remove-button-background-color-down, var(--luzmo-background-color-down))}.remove-button:focus-visible{box-shadow:0 0 0 var(--luzmo-display-settings-remove-button-indicator-thickness, var(--display-settings-remove-button-indicator-thickness)) var(--highcontrast-remove-button-indicator-color, var(--luzmo-display-settings-remove-button-indicator-color, var(--display-settings-remove-button-indicator-color)))}.ids-container{display:flex;flex-direction:column;gap:var(--luzmo-display-settings-gap, var(--display-settings-gap));border-radius:50%}.id-label{text-transform:var(--luzmo-display-settings-id-label-text-transform, var(--display-settings-id-label-text-transform));font-size:var(--luzmo-display-settings-id-label-font-size, var(--display-settings-id-label-font-size));color:var(--luzmo-display-settings-id-label-color, var(--display-settings-id-label-color))}:host{--display-settings-font-family: var(--luzmo-font-family);--display-settings-id-label-text-transform: uppercase;--display-settings-id-label-color: var(--luzmo-secondary);--display-settings-remove-button-indicator-color: var(--luzmo-primary);--display-settings-remove-button-indicator-thickness: var( --luzmo-border-width )}:host{--display-settings-font-size: var(--luzmo-font-size);--display-settings-id-label-font-size: var(--luzmo-font-size-s);--display-settings-gap: var(--luzmo-spacing-3);--display-settings-ids-container-vertical-margin: var(--luzmo-spacing-4);--display-settings-info-to-remove-icon-gap: var(--luzmo-spacing-5);--display-settings-remove-button-size: var(--luzmo-component-height)}:host([size=s]){--display-settings-id-label-font-size: var(--luzmo-font-size-s);--display-settings-font-size: var(--luzmo-font-size-s);--display-settings-gap: var(--luzmo-spacing-3);--display-settings-ids-container-vertical-margin: var(--luzmo-spacing-3);--display-settings-info-to-remove-icon-gap: var(--luzmo-spacing-4);--display-settings-remove-button-size: var(--luzmo-component-height-s)}:host([size=l]){--display-settings-id-label-font-size: var(--luzmo-font-size);--display-settings-font-size: var(--luzmo-font-size-l);--display-settings-gap: var(--luzmo-spacing-4);--display-settings-ids-container-vertical-margin: var(--luzmo-spacing-5);--display-settings-info-to-remove-icon-gap: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--display-settings-remove-button-size: var(--luzmo-component-height-l)}:host([size=xl]){--display-settings-id-label-font-size: var(--luzmo-font-size-l);--display-settings-font-size: var(--luzmo-font-size-xl);--display-settings-gap: var(--luzmo-spacing-5);--display-settings-ids-container-vertical-margin: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--display-settings-info-to-remove-icon-gap: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-2) );--display-settings-remove-button-size: var(--luzmo-component-height-xl)}";var Re=Object.defineProperty,f=(e,t,s,o)=>{for(var r=void 0,l=e.length-1,b;l>=0;l--)(b=e[l])&&(r=b(t,s,r)||r);return r&&Re(t,s,r),r};class g extends Y(V.SizedMixin(de.LuzmoElement,{validSizes:Object.values(V.ElementSizes)})){constructor(){super(...arguments),this._loadDisplaySettings=new ue.h(this,{task:async([t,s,o])=>{const r=[];this.grandTotals&&r.push("grandTotals"),this.periodOverPeriod&&r.push("periodOverPeriod"),(s==="numeric"||s==="mixed"&&(t==null?void 0:t.type)==="numeric")&&r.push("numeric"),s!=="numeric"&&(t==null?void 0:t.type)==="datetime"&&r.push("datetime"),!["numeric","mixed"].includes(s??"")&&(t==null?void 0:t.type)==="numeric"&&!this.binningDisabled&&r.push("binning"),r.length>0&&!o&&(r.includes("numeric")&&!this._settingsTypeLoaded.numeric?(await Promise.resolve().then(()=>require("./display-settings-numeric/index.cjs")),this._settingsTypeLoaded.numeric=!0,r.includes("periodOverPeriod")&&!this._settingsTypeLoaded.periodOverPeriod&&(await Promise.resolve().then(()=>require("./display-settings-period-over-period/index.cjs")),this._settingsTypeLoaded.periodOverPeriod=!0)):r.includes("datetime")&&!this._settingsTypeLoaded.datetime?(await Promise.resolve().then(()=>require("./display-settings-datetime/index.cjs")),this._settingsTypeLoaded.datetime=!0):r.includes("binning")&&!this._settingsTypeLoaded.binning?(await Promise.resolve().then(()=>require("./display-settings-binning/index.cjs")),this._settingsTypeLoaded.binning=!0):r.includes("grandTotals")&&!this._settingsTypeLoaded.grandTotals&&(await Promise.resolve().then(()=>require("./display-settings-grand-totals/index.cjs")),this._settingsTypeLoaded.grandTotals=!0))},args:()=>[this.slotContent,this.slotType,this.hideDisplaySettings]}),this.language="en",this.contentLanguage="en",this.slotType="numeric",this.slotContent={},this._showIds=!1,this.measureColumns=[],this._settingsTypeLoaded={binning:!1,datetime:!1,numeric:!1,grandTotals:!1,periodOverPeriod:!1,hierarchy:!0},this._currentSlotContent={}}static get styles(){return[c.r(De)]}willUpdate(){var s,o;const t=(s=this._store)==null?void 0:s.activeSlotContents.get();this.periodOverPeriod=(o=this._store)==null?void 0:o.periodOverPeriodEnabled.get(),t&&t!==this._currentSlotContent&&(this._currentSlotContent=structuredClone(t))}_onSlotContentChange(t){t.stopPropagation(),t.preventDefault(),this._currentSlotContent=structuredClone(t.detail.slotContent),this._sendEvent(),this.requestUpdate()}_onLabelChange(){this._currentSlotContent=structuredClone(this._currentSlotContent),this._currentSlotContent.label=this._multiLanguageFieldElement.value||{},this._sendEvent(),this.requestUpdate()}_sendEvent(){this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:{...this._currentSlotContent}}})),this._store&&this._store.updateContent({...this._currentSlotContent})}_removeEvent(){this.dispatchEvent(new CustomEvent("remove-slot-content",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:this._currentSlotContent}}))}_toggleIds(){this._showIds=!this._showIds}_renderDisplaySettings(){return c.x`<div class="settings-container">
90
90
  <div class="settings-row">
91
91
  <div class="setting">
92
92
  <div class="label-container">
@@ -171,4 +171,4 @@
171
171
  </div>`:""}`}render(){return this._loadDisplaySettings.render({pending:()=>c.x`<luzmo-progress-circle
172
172
  indeterminate
173
173
  .size=${this.size}
174
- ></luzmo-progress-circle>`,complete:()=>this._renderDisplaySettings(),error:()=>this._renderDisplaySettings()})}}f([c.n({type:String})],g.prototype,"language");f([c.n({type:String,attribute:"content-language"})],g.prototype,"contentLanguage");f([c.n({type:Boolean,attribute:"hide-display-settings"})],g.prototype,"hideDisplaySettings");f([c.n({type:Boolean,attribute:"binning-disabled"})],g.prototype,"binningDisabled");f([c.n({type:Boolean,attribute:"grand-totals"})],g.prototype,"grandTotals");f([c.n({type:Boolean,attribute:"period-over-period"})],g.prototype,"periodOverPeriod");f([c.n({type:Boolean,attribute:"show-remove-button"})],g.prototype,"showRemoveButton");f([c.n({type:String,attribute:"slot-type"})],g.prototype,"slotType");f([c.n()],g.prototype,"slotContent");f([ue.r()],g.prototype,"_showIds");f([c.n({type:Array,reflect:!1})],g.prototype,"measureColumns");f([ce.e("luzmo-multi-language-field")],g.prototype,"_multiLanguageFieldElement");f([Z({context:ee,subscribe:!0})],g.prototype,"_store");customElements.get("luzmo-display-settings")||customElements.define("luzmo-display-settings",g);exports.LuzmoDisplaySettings=g;exports.c=Z;exports.e=X;exports.i=We;exports.r=Pe;exports.s=Y;exports.slotContext=ee;
174
+ ></luzmo-progress-circle>`,complete:()=>this._renderDisplaySettings(),error:()=>this._renderDisplaySettings()})}}f([c.n({type:String})],g.prototype,"language");f([c.n({type:String,attribute:"content-language"})],g.prototype,"contentLanguage");f([c.n({type:Boolean,attribute:"hide-display-settings"})],g.prototype,"hideDisplaySettings");f([c.n({type:Boolean,attribute:"binning-disabled"})],g.prototype,"binningDisabled");f([c.n({type:Boolean,attribute:"grand-totals"})],g.prototype,"grandTotals");f([G.r()],g.prototype,"periodOverPeriod");f([c.n({type:Boolean,attribute:"show-remove-button"})],g.prototype,"showRemoveButton");f([c.n({type:String,attribute:"slot-type"})],g.prototype,"slotType");f([c.n()],g.prototype,"slotContent");f([G.r()],g.prototype,"_showIds");f([c.n({type:Array,reflect:!1})],g.prototype,"measureColumns");f([ce.e("luzmo-multi-language-field")],g.prototype,"_multiLanguageFieldElement");f([ee({context:te,subscribe:!0})],g.prototype,"_store");customElements.get("luzmo-display-settings")||customElements.define("luzmo-display-settings",g);exports.LuzmoDisplaySettings=g;exports.c=ee;exports.e=Y;exports.i=We;exports.r=Le;exports.s=Z;exports.slotContext=te;