@luzmo/analytics-components-kit 1.0.1-alpha.51 → 1.0.1-alpha.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/components/display-settings/display-settings.d.ts +2 -0
  2. package/components/display-settings/index.cjs +1 -1
  3. package/components/display-settings/index.js +1 -1
  4. package/components/display-settings-datetime/display-settings-datetime.d.ts +1 -1
  5. package/components/display-settings-datetime/index.cjs +43 -56
  6. package/components/display-settings-datetime/index.js +81 -95
  7. package/components/display-settings-numeric/index.cjs +17 -17
  8. package/components/display-settings-numeric/index.js +80 -80
  9. package/components/draggable-data-item-level/index.cjs +1 -1
  10. package/components/draggable-data-item-level/index.js +3 -3
  11. package/components/droppable-slot/droppable-slot.d.ts +2 -0
  12. package/components/droppable-slot/index.cjs +4 -4
  13. package/components/droppable-slot/index.js +68 -62
  14. package/components/edit-item/index.cjs +2 -2
  15. package/components/edit-item/index.js +4 -4
  16. package/components/edit-option/index.cjs +1 -1
  17. package/components/edit-option/index.js +1 -1
  18. package/components/{en-GB-BtLbN8o_.js → en-GB-UzDYaNfY.js} +1 -1
  19. package/components/{en-GB-Dd11ROdW.cjs → en-GB-cN3S24Cg.cjs} +1 -1
  20. package/components/{formatter-CQDms6fU.js → formatter-CqU9_98M.js} +1 -0
  21. package/components/{formatter-DiJYkB6b.cjs → formatter-Lo9PMcxy.cjs} +1 -1
  22. package/components/{heat-map-options.config-DQya-lag.js → heat-map-options.config-BnLWe8jS.js} +16 -14
  23. package/components/heat-map-options.config-DVH-Bb5-.cjs +20 -0
  24. package/components/{index-CSfR7FMV.cjs → index-BYO1LMBt.cjs} +1 -1
  25. package/components/{index-BPVXrhaX.js → index-CShrqT1H.js} +3 -3
  26. package/components/index-D05oY5ND.cjs +178 -0
  27. package/components/{index-Ct7UvUif.js → index-DV63kOPg.js} +315 -274
  28. package/components/index.cjs +1 -1
  29. package/components/index.js +3 -3
  30. package/components/{marker-map-options.config-CYoq89Oz.js → marker-map-options.config-DPJ955tt.js} +1 -1
  31. package/components/{marker-map-options.config-_XFv5XWK.cjs → marker-map-options.config-_FYZzRwA.cjs} +1 -1
  32. package/components/slot-contents-picker/index.cjs +1 -1
  33. package/components/slot-contents-picker/index.js +1 -1
  34. package/components/slot-menu/index.cjs +8 -8
  35. package/components/slot-menu/index.js +120 -101
  36. package/components/slot-menu/slot-menu.d.ts +4 -0
  37. package/components/slot-menu-list/index.cjs +1 -1
  38. package/components/slot-menu-list/index.js +14 -12
  39. package/components/slot-menu-list/slot-menu-list.d.ts +1 -0
  40. package/components/{symbol-map-options.config-Bj-UuL9m.js → symbol-map-options.config-DdDA4aa7.js} +1 -1
  41. package/components/{symbol-map-options.config-sdPlHspI.cjs → symbol-map-options.config-m-lwLTtu.cjs} +1 -1
  42. package/components/utils.cjs +1 -1
  43. package/components/utils.js +1 -1
  44. package/custom-elements.json +16 -1
  45. package/package.json +1 -1
  46. package/components/heat-map-options.config-BQ-Afrbi.cjs +0 -20
  47. package/components/index-DAoFunRy.cjs +0 -174
@@ -17,7 +17,7 @@
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 oe, x as f, n as b } from "./property-DCzt3DR1.js";
20
+ import { r as re, E as oe, x as b, n as z } from "./property-DCzt3DR1.js";
21
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";
@@ -26,15 +26,16 @@ 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 G } from "./state-nDsQPund.js";
30
- import { e as ae } from "./query-Ddbd72Um.js";
31
- import { a8 as V, af as le, a7 as ue } from "./luzmo-icons-CVeTZ59u.js";
32
- import { L as ce } from "./focusable-BbymtxWI.js";
33
- import { S as de, E as pe } from "./sized-mixin-BGzkX2g1.js";
34
- var he = Object.defineProperty, me = (e, t, s) => t in e ? he(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, L = (e, t, s) => (me(e, typeof t != "symbol" ? t + "" : t, s), s), ge = (e, t, s) => {
29
+ import { r as ae } from "./state-nDsQPund.js";
30
+ import { e as le } from "./query-Ddbd72Um.js";
31
+ import { a8 as V, af as ue, a7 as ce } from "./luzmo-icons-CVeTZ59u.js";
32
+ import { f as de } from "./formatter-CqU9_98M.js";
33
+ import { L as pe } from "./focusable-BbymtxWI.js";
34
+ import { S as he, E as me } from "./sized-mixin-BGzkX2g1.js";
35
+ var ge = Object.defineProperty, ve = (e, t, s) => t in e ? ge(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, L = (e, t, s) => (ve(e, typeof t != "symbol" ? t + "" : t, s), s), fe = (e, t, s) => {
35
36
  if (!t.has(e))
36
37
  throw TypeError("Cannot " + s);
37
- }, P = (e, t) => {
38
+ }, D = (e, t) => {
38
39
  if (Object(t) !== t)
39
40
  throw TypeError('Cannot use the "in" operator on this value');
40
41
  return e.has(t);
@@ -42,7 +43,7 @@ var he = Object.defineProperty, me = (e, t, s) => t in e ? he(e, t, { enumerable
42
43
  if (t.has(e))
43
44
  throw TypeError("Cannot add the same private member more than once");
44
45
  t instanceof WeakSet ? t.add(e) : t.set(e, s);
45
- }, B = (e, t, s) => (ge(e, t, "access private method"), s);
46
+ }, B = (e, t, s) => (fe(e, t, "access private method"), s);
46
47
  /**
47
48
  * @license
48
49
  * Copyright Google LLC All Rights Reserved.
@@ -50,7 +51,7 @@ var he = Object.defineProperty, me = (e, t, s) => t in e ? he(e, t, { enumerable
50
51
  * Use of this source code is governed by an MIT-style license that can be
51
52
  * found in the LICENSE file at https://angular.io/license
52
53
  */
53
- function H(e, t) {
54
+ function G(e, t) {
54
55
  return Object.is(e, t);
55
56
  }
56
57
  /**
@@ -60,17 +61,17 @@ function H(e, t) {
60
61
  * Use of this source code is governed by an MIT-style license that can be
61
62
  * found in the LICENSE file at https://angular.io/license
62
63
  */
63
- let u = null, x = !1, E = 1;
64
+ let c = null, $ = !1, E = 1;
64
65
  const I = /* @__PURE__ */ Symbol("SIGNAL");
65
66
  function S(e) {
66
- const t = u;
67
- return u = e, t;
67
+ const t = c;
68
+ return c = e, t;
68
69
  }
69
- function ve() {
70
- return u;
70
+ function ye() {
71
+ return c;
71
72
  }
72
- function fe() {
73
- return x;
73
+ function be() {
74
+ return $;
74
75
  }
75
76
  const A = {
76
77
  version: 0,
@@ -93,55 +94,55 @@ const A = {
93
94
  }
94
95
  };
95
96
  function O(e) {
96
- if (x)
97
+ if ($)
97
98
  throw new Error(
98
99
  typeof ngDevMode < "u" && ngDevMode ? "Assertion error: signal read during notification phase" : ""
99
100
  );
100
- if (u === null)
101
+ if (c === null)
101
102
  return;
102
- u.consumerOnSignalRead(e);
103
- const t = u.nextProducerIndex++;
104
- if ($(u), t < u.producerNode.length && u.producerNode[t] !== e && R(u)) {
105
- const s = u.producerNode[t];
106
- k(s, u.producerIndexOfThis[t]);
103
+ c.consumerOnSignalRead(e);
104
+ const t = c.nextProducerIndex++;
105
+ if (x(c), t < c.producerNode.length && c.producerNode[t] !== e && R(c)) {
106
+ const s = c.producerNode[t];
107
+ k(s, c.producerIndexOfThis[t]);
107
108
  }
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
+ c.producerNode[t] !== e && (c.producerNode[t] = e, c.producerIndexOfThis[t] = R(c) ? K(e, c, t) : 0), c.producerLastReadVersion[t] = e.version;
109
110
  }
110
- function ye() {
111
+ function ze() {
111
112
  E++;
112
113
  }
113
- function J(e) {
114
+ function H(e) {
114
115
  if (!(!e.dirty && e.lastCleanEpoch === E)) {
115
- if (!e.producerMustRecompute(e) && !_e(e)) {
116
+ if (!e.producerMustRecompute(e) && !xe(e)) {
116
117
  e.dirty = !1, e.lastCleanEpoch = E;
117
118
  return;
118
119
  }
119
120
  e.producerRecomputeValue(e), e.dirty = !1, e.lastCleanEpoch = E;
120
121
  }
121
122
  }
122
- function K(e) {
123
+ function J(e) {
123
124
  if (e.liveConsumerNode === void 0)
124
125
  return;
125
- const t = x;
126
- x = !0;
126
+ const t = $;
127
+ $ = !0;
127
128
  try {
128
129
  for (const s of e.liveConsumerNode)
129
- s.dirty || ze(s);
130
+ s.dirty || we(s);
130
131
  } finally {
131
- x = t;
132
+ $ = t;
132
133
  }
133
134
  }
134
- function be() {
135
- return (u == null ? void 0 : u.consumerAllowSignalWrites) !== !1;
135
+ function Ce() {
136
+ return (c == null ? void 0 : c.consumerAllowSignalWrites) !== !1;
136
137
  }
137
- function ze(e) {
138
+ function we(e) {
138
139
  var t;
139
- e.dirty = !0, K(e), (t = e.consumerMarkedDirty) == null || t.call(e.wrapper ?? e);
140
+ e.dirty = !0, J(e), (t = e.consumerMarkedDirty) == null || t.call(e.wrapper ?? e);
140
141
  }
141
- function we(e) {
142
+ function _e(e) {
142
143
  return e && (e.nextProducerIndex = 0), S(e);
143
144
  }
144
- function Ce(e, t) {
145
+ function Se(e, t) {
145
146
  if (S(t), !(!e || e.producerNode === void 0 || e.producerIndexOfThis === void 0 || e.producerLastReadVersion === void 0)) {
146
147
  if (R(e))
147
148
  for (let s = e.nextProducerIndex; s < e.producerNode.length; s++)
@@ -150,49 +151,49 @@ function Ce(e, t) {
150
151
  e.producerNode.pop(), e.producerLastReadVersion.pop(), e.producerIndexOfThis.pop();
151
152
  }
152
153
  }
153
- function _e(e) {
154
- $(e);
154
+ function xe(e) {
155
+ x(e);
155
156
  for (let t = 0; t < e.producerNode.length; t++) {
156
- const s = e.producerNode[t], o = e.producerLastReadVersion[t];
157
- if (o !== s.version || (J(s), o !== s.version))
157
+ const s = e.producerNode[t], r = e.producerLastReadVersion[t];
158
+ if (r !== s.version || (H(s), r !== s.version))
158
159
  return !0;
159
160
  }
160
161
  return !1;
161
162
  }
162
- function Q(e, t, s) {
163
- var o;
164
- if (U(e), $(e), e.liveConsumerNode.length === 0) {
165
- (o = e.watched) == null || o.call(e.wrapper);
166
- for (let r = 0; r < e.producerNode.length; r++)
167
- e.producerIndexOfThis[r] = Q(e.producerNode[r], e, r);
163
+ function K(e, t, s) {
164
+ var r;
165
+ if (M(e), x(e), e.liveConsumerNode.length === 0) {
166
+ (r = e.watched) == null || r.call(e.wrapper);
167
+ for (let i = 0; i < e.producerNode.length; i++)
168
+ e.producerIndexOfThis[i] = K(e.producerNode[i], e, i);
168
169
  }
169
170
  return e.liveConsumerIndexOfThis.push(s), e.liveConsumerNode.push(t) - 1;
170
171
  }
171
172
  function k(e, t) {
172
173
  var s;
173
- if (U(e), $(e), typeof ngDevMode < "u" && ngDevMode && t >= e.liveConsumerNode.length)
174
+ if (M(e), x(e), typeof ngDevMode < "u" && ngDevMode && t >= e.liveConsumerNode.length)
174
175
  throw new Error(
175
176
  `Assertion error: active consumer index ${t} is out of bounds of ${e.liveConsumerNode.length} consumers)`
176
177
  );
177
178
  if (e.liveConsumerNode.length === 1) {
178
179
  (s = e.unwatched) == null || s.call(e.wrapper);
179
- for (let r = 0; r < e.producerNode.length; r++)
180
- k(e.producerNode[r], e.producerIndexOfThis[r]);
180
+ for (let i = 0; i < e.producerNode.length; i++)
181
+ k(e.producerNode[i], e.producerIndexOfThis[i]);
181
182
  }
182
- const o = e.liveConsumerNode.length - 1;
183
- if (e.liveConsumerNode[t] = e.liveConsumerNode[o], e.liveConsumerIndexOfThis[t] = e.liveConsumerIndexOfThis[o], e.liveConsumerNode.length--, e.liveConsumerIndexOfThis.length--, t < e.liveConsumerNode.length) {
184
- const r = e.liveConsumerIndexOfThis[t], l = e.liveConsumerNode[t];
185
- $(l), l.producerIndexOfThis[r] = t;
183
+ const r = e.liveConsumerNode.length - 1;
184
+ if (e.liveConsumerNode[t] = e.liveConsumerNode[r], e.liveConsumerIndexOfThis[t] = e.liveConsumerIndexOfThis[r], e.liveConsumerNode.length--, e.liveConsumerIndexOfThis.length--, t < e.liveConsumerNode.length) {
185
+ const i = e.liveConsumerIndexOfThis[t], n = e.liveConsumerNode[t];
186
+ x(n), n.producerIndexOfThis[i] = t;
186
187
  }
187
188
  }
188
189
  function R(e) {
189
190
  var t;
190
191
  return e.consumerIsAlwaysLive || (((t = e == null ? void 0 : e.liveConsumerNode) == null ? void 0 : t.length) ?? 0) > 0;
191
192
  }
192
- function $(e) {
193
+ function x(e) {
193
194
  e.producerNode ?? (e.producerNode = []), e.producerIndexOfThis ?? (e.producerIndexOfThis = []), e.producerLastReadVersion ?? (e.producerLastReadVersion = []);
194
195
  }
195
- function U(e) {
196
+ function M(e) {
196
197
  e.liveConsumerNode ?? (e.liveConsumerNode = []), e.liveConsumerIndexOfThis ?? (e.liveConsumerIndexOfThis = []);
197
198
  }
198
199
  /**
@@ -202,45 +203,45 @@ function U(e) {
202
203
  * Use of this source code is governed by an MIT-style license that can be
203
204
  * found in the LICENSE file at https://angular.io/license
204
205
  */
205
- function X(e) {
206
- if (J(e), O(e), e.value === q)
206
+ function Q(e) {
207
+ if (H(e), O(e), e.value === q)
207
208
  throw e.error;
208
209
  return e.value;
209
210
  }
210
- function Se(e) {
211
- const t = Object.create($e);
211
+ function $e(e) {
212
+ const t = Object.create(Te);
212
213
  t.computation = e;
213
- const s = () => X(t);
214
+ const s = () => Q(t);
214
215
  return s[I] = t, s;
215
216
  }
216
- const W = /* @__PURE__ */ Symbol("UNSET"), D = /* @__PURE__ */ Symbol("COMPUTING"), q = /* @__PURE__ */ Symbol("ERRORED"), $e = {
217
+ const P = /* @__PURE__ */ Symbol("UNSET"), W = /* @__PURE__ */ Symbol("COMPUTING"), q = /* @__PURE__ */ Symbol("ERRORED"), Te = {
217
218
  ...A,
218
- value: W,
219
+ value: P,
219
220
  dirty: !0,
220
221
  error: null,
221
- equal: H,
222
+ equal: G,
222
223
  producerMustRecompute(e) {
223
- return e.value === W || e.value === D;
224
+ return e.value === P || e.value === W;
224
225
  },
225
226
  producerRecomputeValue(e) {
226
- if (e.value === D)
227
+ if (e.value === W)
227
228
  throw new Error("Detected cycle in computations.");
228
229
  const t = e.value;
229
- e.value = D;
230
- const s = we(e);
231
- let o, r = !1;
230
+ e.value = W;
231
+ const s = _e(e);
232
+ let r, i = !1;
232
233
  try {
233
- o = e.computation.call(e.wrapper), r = t !== W && t !== q && e.equal.call(e.wrapper, t, o);
234
- } catch (l) {
235
- o = q, e.error = l;
234
+ r = e.computation.call(e.wrapper), i = t !== P && t !== q && e.equal.call(e.wrapper, t, r);
235
+ } catch (n) {
236
+ r = q, e.error = n;
236
237
  } finally {
237
- Ce(e, s);
238
+ Se(e, s);
238
239
  }
239
- if (r) {
240
+ if (i) {
240
241
  e.value = t;
241
242
  return;
242
243
  }
243
- e.value = o, e.version++;
244
+ e.value = r, e.version++;
244
245
  }
245
246
  };
246
247
  /**
@@ -250,12 +251,12 @@ const W = /* @__PURE__ */ Symbol("UNSET"), D = /* @__PURE__ */ Symbol("COMPUTING
250
251
  * Use of this source code is governed by an MIT-style license that can be
251
252
  * found in the LICENSE file at https://angular.io/license
252
253
  */
253
- function xe() {
254
+ function Ne() {
254
255
  throw new Error();
255
256
  }
256
- let Te = xe;
257
- function Ne() {
258
- Te();
257
+ let Ee = Ne;
258
+ function Ie() {
259
+ Ee();
259
260
  }
260
261
  /**
261
262
  * @license
@@ -264,25 +265,25 @@ function Ne() {
264
265
  * Use of this source code is governed by an MIT-style license that can be
265
266
  * found in the LICENSE file at https://angular.io/license
266
267
  */
267
- function Ee(e) {
268
- const t = Object.create(ke);
268
+ function Oe(e) {
269
+ const t = Object.create(De);
269
270
  t.value = e;
270
271
  const s = () => (O(t), t.value);
271
272
  return s[I] = t, s;
272
273
  }
273
- function Ie() {
274
+ function ke() {
274
275
  return O(this), this.value;
275
276
  }
276
- function Oe(e, t) {
277
- be() || Ne(), e.equal.call(e.wrapper, e.value, t) || (e.value = t, Le(e));
277
+ function Le(e, t) {
278
+ Ce() || Ie(), e.equal.call(e.wrapper, e.value, t) || (e.value = t, Pe(e));
278
279
  }
279
- const ke = {
280
+ const De = {
280
281
  ...A,
281
- equal: H,
282
+ equal: G,
282
283
  value: void 0
283
284
  };
284
- function Le(e) {
285
- e.version++, ye(), K(e);
285
+ function Pe(e) {
286
+ e.version++, ze(), J(e);
286
287
  }
287
288
  /**
288
289
  * @license
@@ -301,128 +302,128 @@ function Le(e) {
301
302
  * limitations under the License.
302
303
  */
303
304
  const d = Symbol("node");
304
- var y;
305
+ var C;
305
306
  ((e) => {
306
- var t, s, o, r;
307
- class l {
308
- constructor(w, h = {}) {
307
+ var t, s, r, i;
308
+ class n {
309
+ constructor(y, h = {}) {
309
310
  N(this, s), L(this, t);
310
- const p = Ee(w)[I];
311
+ const p = Oe(y)[I];
311
312
  if (this[d] = p, p.wrapper = this, h) {
312
- const C = h.equals;
313
- C && (p.equal = C), p.watched = h[e.subtle.watched], p.unwatched = h[e.subtle.unwatched];
313
+ const w = h.equals;
314
+ w && (p.equal = w), p.watched = h[e.subtle.watched], p.unwatched = h[e.subtle.unwatched];
314
315
  }
315
316
  }
316
317
  get() {
317
318
  if (!(0, e.isState)(this))
318
319
  throw new TypeError("Wrong receiver type for Signal.State.prototype.get");
319
- return Ie.call(this[d]);
320
+ return ke.call(this[d]);
320
321
  }
321
- set(w) {
322
+ set(y) {
322
323
  if (!(0, e.isState)(this))
323
324
  throw new TypeError("Wrong receiver type for Signal.State.prototype.set");
324
- if (fe())
325
+ if (be())
325
326
  throw new Error("Writes to signals not permitted during Watcher callback");
326
327
  const h = this[d];
327
- Oe(h, w);
328
+ Le(h, y);
328
329
  }
329
330
  }
330
- t = d, s = /* @__PURE__ */ new WeakSet(), e.isState = (c) => typeof c == "object" && P(s, c), e.State = l;
331
- class z {
331
+ t = d, s = /* @__PURE__ */ new WeakSet(), e.isState = (u) => typeof u == "object" && D(s, u), e.State = n;
332
+ class m {
332
333
  // Create a Signal which evaluates to the value returned by the callback.
333
334
  // Callback is called with this signal as the parameter.
334
- constructor(w, h) {
335
- N(this, r), L(this, o);
336
- const p = Se(w)[I];
335
+ constructor(y, h) {
336
+ N(this, i), L(this, r);
337
+ const p = $e(y)[I];
337
338
  if (p.consumerAllowSignalWrites = !0, this[d] = p, p.wrapper = this, h) {
338
- const C = h.equals;
339
- C && (p.equal = C), p.watched = h[e.subtle.watched], p.unwatched = h[e.subtle.unwatched];
339
+ const w = h.equals;
340
+ w && (p.equal = w), p.watched = h[e.subtle.watched], p.unwatched = h[e.subtle.unwatched];
340
341
  }
341
342
  }
342
343
  get() {
343
344
  if (!(0, e.isComputed)(this))
344
345
  throw new TypeError("Wrong receiver type for Signal.Computed.prototype.get");
345
- return X(this[d]);
346
+ return Q(this[d]);
346
347
  }
347
348
  }
348
- o = d, r = /* @__PURE__ */ new WeakSet(), e.isComputed = (c) => typeof c == "object" && P(r, c), e.Computed = z, ((c) => {
349
- var w, h, _, p;
350
- function C(a) {
351
- let n, i = null;
349
+ r = d, i = /* @__PURE__ */ new WeakSet(), e.isComputed = (u) => typeof u == "object" && D(i, u), e.Computed = m, ((u) => {
350
+ var y, h, _, p;
351
+ function w(l) {
352
+ let a, o = null;
352
353
  try {
353
- i = S(null), n = a();
354
+ o = S(null), a = l();
354
355
  } finally {
355
- S(i);
356
+ S(o);
356
357
  }
357
- return n;
358
+ return a;
358
359
  }
359
- c.untrack = C;
360
- function Y(a) {
361
- var n;
362
- if (!(0, e.isComputed)(a) && !(0, e.isWatcher)(a))
360
+ u.untrack = w;
361
+ function X(l) {
362
+ var a;
363
+ if (!(0, e.isComputed)(l) && !(0, e.isWatcher)(l))
363
364
  throw new TypeError("Called introspectSources without a Computed or Watcher argument");
364
- return ((n = a[d].producerNode) == null ? void 0 : n.map((i) => i.wrapper)) ?? [];
365
+ return ((a = l[d].producerNode) == null ? void 0 : a.map((o) => o.wrapper)) ?? [];
365
366
  }
366
- c.introspectSources = Y;
367
- function Z(a) {
368
- var n;
369
- if (!(0, e.isComputed)(a) && !(0, e.isState)(a))
367
+ u.introspectSources = X;
368
+ function Y(l) {
369
+ var a;
370
+ if (!(0, e.isComputed)(l) && !(0, e.isState)(l))
370
371
  throw new TypeError("Called introspectSinks without a Signal argument");
371
- return ((n = a[d].liveConsumerNode) == null ? void 0 : n.map((i) => i.wrapper)) ?? [];
372
+ return ((a = l[d].liveConsumerNode) == null ? void 0 : a.map((o) => o.wrapper)) ?? [];
372
373
  }
373
- c.introspectSinks = Z;
374
- function ee(a) {
375
- if (!(0, e.isComputed)(a) && !(0, e.isState)(a))
374
+ u.introspectSinks = Y;
375
+ function Z(l) {
376
+ if (!(0, e.isComputed)(l) && !(0, e.isState)(l))
376
377
  throw new TypeError("Called hasSinks without a Signal argument");
377
- const n = a[d].liveConsumerNode;
378
- return n ? n.length > 0 : !1;
378
+ const a = l[d].liveConsumerNode;
379
+ return a ? a.length > 0 : !1;
379
380
  }
380
- c.hasSinks = ee;
381
- function te(a) {
382
- if (!(0, e.isComputed)(a) && !(0, e.isWatcher)(a))
381
+ u.hasSinks = Z;
382
+ function ee(l) {
383
+ if (!(0, e.isComputed)(l) && !(0, e.isWatcher)(l))
383
384
  throw new TypeError("Called hasSources without a Computed or Watcher argument");
384
- const n = a[d].producerNode;
385
- return n ? n.length > 0 : !1;
385
+ const a = l[d].producerNode;
386
+ return a ? a.length > 0 : !1;
386
387
  }
387
- c.hasSources = te;
388
- class se {
388
+ u.hasSources = ee;
389
+ class te {
389
390
  // When a (recursive) source of Watcher is written to, call this callback,
390
391
  // if it hasn't already been called since the last `watch` call.
391
392
  // No signals may be read or written during the notify.
392
- constructor(n) {
393
- N(this, h), N(this, _), L(this, w);
394
- let i = Object.create(A);
395
- i.wrapper = this, i.consumerMarkedDirty = n, i.consumerIsAlwaysLive = !0, i.consumerAllowSignalWrites = !1, i.producerNode = [], this[d] = i;
393
+ constructor(a) {
394
+ N(this, h), N(this, _), L(this, y);
395
+ let o = Object.create(A);
396
+ o.wrapper = this, o.consumerMarkedDirty = a, o.consumerIsAlwaysLive = !0, o.consumerAllowSignalWrites = !1, o.producerNode = [], this[d] = o;
396
397
  }
397
398
  // Add these signals to the Watcher's set, and set the watcher to run its
398
399
  // notify callback next time any signal in the set (or one of its dependencies) changes.
399
400
  // Can be called with no arguments just to reset the "notified" state, so that
400
401
  // the notify callback will be invoked again.
401
- watch(...n) {
402
+ watch(...a) {
402
403
  if (!(0, e.isWatcher)(this))
403
404
  throw new TypeError("Called unwatch without Watcher receiver");
404
- B(this, _, p).call(this, n);
405
- const i = this[d];
406
- i.dirty = !1;
407
- const g = S(i);
408
- for (const T of n)
405
+ B(this, _, p).call(this, a);
406
+ const o = this[d];
407
+ o.dirty = !1;
408
+ const v = S(o);
409
+ for (const T of a)
409
410
  O(T[d]);
410
- S(g);
411
+ S(v);
411
412
  }
412
413
  // Remove these signals from the watched set (e.g., for an effect which is disposed)
413
- unwatch(...n) {
414
+ unwatch(...a) {
414
415
  if (!(0, e.isWatcher)(this))
415
416
  throw new TypeError("Called unwatch without Watcher receiver");
416
- B(this, _, p).call(this, n);
417
- const i = this[d];
418
- $(i);
419
- for (let g = i.producerNode.length - 1; g >= 0; g--)
420
- if (n.includes(i.producerNode[g].wrapper)) {
421
- k(i.producerNode[g], i.producerIndexOfThis[g]);
422
- const T = i.producerNode.length - 1;
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 ie = i.producerIndexOfThis[g], M = i.producerNode[g];
425
- U(M), M.liveConsumerIndexOfThis[ie] = g;
417
+ B(this, _, p).call(this, a);
418
+ const o = this[d];
419
+ x(o);
420
+ for (let v = o.producerNode.length - 1; v >= 0; v--)
421
+ if (a.includes(o.producerNode[v].wrapper)) {
422
+ k(o.producerNode[v], o.producerIndexOfThis[v]);
423
+ const T = o.producerNode.length - 1;
424
+ if (o.producerNode[v] = o.producerNode[T], o.producerIndexOfThis[v] = o.producerIndexOfThis[T], o.producerNode.length--, o.producerIndexOfThis.length--, o.nextProducerIndex--, v < o.producerNode.length) {
425
+ const ie = o.producerIndexOfThis[v], U = o.producerNode[v];
426
+ M(U), U.liveConsumerIndexOfThis[ie] = v;
426
427
  }
427
428
  }
428
429
  }
@@ -431,44 +432,44 @@ var y;
431
432
  getPending() {
432
433
  if (!(0, e.isWatcher)(this))
433
434
  throw new TypeError("Called getPending without Watcher receiver");
434
- return this[d].producerNode.filter((i) => i.dirty).map((i) => i.wrapper);
435
+ return this[d].producerNode.filter((o) => o.dirty).map((o) => o.wrapper);
435
436
  }
436
437
  }
437
- w = d, h = /* @__PURE__ */ new WeakSet(), _ = /* @__PURE__ */ new WeakSet(), p = function(a) {
438
- for (const n of a)
439
- if (!(0, e.isComputed)(n) && !(0, e.isState)(n))
438
+ y = d, h = /* @__PURE__ */ new WeakSet(), _ = /* @__PURE__ */ new WeakSet(), p = function(l) {
439
+ for (const a of l)
440
+ if (!(0, e.isComputed)(a) && !(0, e.isState)(a))
440
441
  throw new TypeError("Called watch/unwatch without a Computed or State argument");
441
- }, e.isWatcher = (a) => P(h, a), c.Watcher = se;
442
- function re() {
443
- var a;
444
- return (a = ve()) == null ? void 0 : a.wrapper;
442
+ }, e.isWatcher = (l) => D(h, l), u.Watcher = te;
443
+ function se() {
444
+ var l;
445
+ return (l = ye()) == null ? void 0 : l.wrapper;
445
446
  }
446
- c.currentComputed = re, c.watched = Symbol("watched"), c.unwatched = Symbol("unwatched");
447
+ u.currentComputed = se, u.watched = Symbol("watched"), u.unwatched = Symbol("unwatched");
447
448
  })(e.subtle || (e.subtle = {}));
448
- })(y || (y = {}));
449
+ })(C || (C = {}));
449
450
  /**
450
451
  * @license
451
452
  * Copyright 2023 Google LLC
452
453
  * SPDX-License-Identifier: BSD-3-Clause
453
454
  */
454
- const Pe = Symbol("SignalWatcherBrand"), We = new FinalizationRegistry(({ watcher: e, signal: t }) => {
455
+ const We = Symbol("SignalWatcherBrand"), Re = new FinalizationRegistry(({ watcher: e, signal: t }) => {
455
456
  e.unwatch(t);
456
457
  }), F = /* @__PURE__ */ new WeakMap();
457
- function De(e) {
458
- return e[Pe] === !0 ? (console.warn("SignalWatcher should not be applied to the same class more than once."), e) : class extends e {
458
+ function qe(e) {
459
+ return e[We] === !0 ? (console.warn("SignalWatcher should not be applied to the same class more than once."), e) : class extends e {
459
460
  constructor() {
460
- super(...arguments), this._$St = new y.State(0), this._$Si = !1, this._$So = !0, this._$Sh = /* @__PURE__ */ new Set();
461
+ super(...arguments), this._$St = new C.State(0), this._$Si = !1, this._$So = !0, this._$Sh = /* @__PURE__ */ new Set();
461
462
  }
462
463
  _$Sl() {
463
464
  if (this._$Su !== void 0) return;
464
- this._$Sv = new y.Computed(() => {
465
+ this._$Sv = new C.Computed(() => {
465
466
  this._$St.get(), super.performUpdate();
466
467
  });
467
- const t = this._$Su = new y.subtle.Watcher(function() {
468
+ const t = this._$Su = new C.subtle.Watcher(function() {
468
469
  const s = F.get(this);
469
470
  s !== void 0 && (s._$Si === !1 && s.requestUpdate(), this.watch());
470
471
  });
471
- F.set(t, this), We.register(this, { watcher: t, signal: this._$Sv }), t.watch(this._$Sv);
472
+ F.set(t, this), Re.register(this, { watcher: t, signal: this._$Sv }), t.watch(this._$Sv);
472
473
  }
473
474
  _$Sp() {
474
475
  this._$Su !== void 0 && (this._$Su.unwatch(this._$Sv), this._$Sv = void 0, this._$Su = void 0);
@@ -483,8 +484,8 @@ function De(e) {
483
484
  this.isUpdatePending = !1, this._$Sh.clear();
484
485
  }
485
486
  }
486
- requestUpdate(t, s, o) {
487
- this._$So = !0, super.requestUpdate(t, s, o);
487
+ requestUpdate(t, s, r) {
488
+ this._$So = !0, super.requestUpdate(t, s, r);
488
489
  }
489
490
  connectedCallback() {
490
491
  super.connectedCallback(), this.requestUpdate();
@@ -509,17 +510,17 @@ function De(e) {
509
510
  * Copyright 2023 Google LLC
510
511
  * SPDX-License-Identifier: BSD-3-Clause
511
512
  */
512
- y.State;
513
- y.Computed;
514
- const st = (e, t) => new y.State(e, t), rt = (e, t) => new y.Computed(e, t);
513
+ C.State;
514
+ C.Computed;
515
+ const ot = (e, t) => new C.State(e, t), nt = (e, t) => new C.Computed(e, t);
515
516
  /**
516
517
  * @license
517
518
  * Copyright 2021 Google LLC
518
519
  * SPDX-License-Identifier: BSD-3-Clause
519
520
  */
520
- let Re = class extends Event {
521
- constructor(t, s, o, r) {
522
- super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = s, this.callback = o, this.subscribe = r ?? !1;
521
+ let Ae = class extends Event {
522
+ constructor(t, s, r, i) {
523
+ super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = s, this.callback = r, this.subscribe = i ?? !1;
523
524
  }
524
525
  };
525
526
  /**
@@ -533,13 +534,13 @@ let Re = class extends Event {
533
534
  * SPDX-License-Identifier: BSD-3-Clause
534
535
  */
535
536
  class j {
536
- constructor(t, s, o, r) {
537
- if (this.subscribe = !1, this.provided = !1, this.value = void 0, this.t = (l, z) => {
538
- this.unsubscribe && (this.unsubscribe !== z && (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, z)), this.unsubscribe = z;
537
+ constructor(t, s, r, i) {
538
+ if (this.subscribe = !1, this.provided = !1, this.value = void 0, this.t = (n, m) => {
539
+ this.unsubscribe && (this.unsubscribe !== m && (this.provided = !1, this.unsubscribe()), this.subscribe || this.unsubscribe()), this.value = n, this.host.requestUpdate(), this.provided && !this.subscribe || (this.provided = !0, this.callback && this.callback(n, m)), this.unsubscribe = m;
539
540
  }, this.host = t, s.context !== void 0) {
540
- const l = s;
541
- this.context = l.context, this.callback = l.callback, this.subscribe = l.subscribe ?? !1;
542
- } else this.context = s, this.callback = o, this.subscribe = r ?? !1;
541
+ const n = s;
542
+ this.context = n.context, this.callback = n.callback, this.subscribe = n.subscribe ?? !1;
543
+ } else this.context = s, this.callback = r, this.subscribe = i ?? !1;
543
544
  this.host.addController(this);
544
545
  }
545
546
  hostConnected() {
@@ -549,7 +550,7 @@ class j {
549
550
  this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0);
550
551
  }
551
552
  dispatchRequest() {
552
- this.host.dispatchEvent(new Re(this.context, this.host, this.t, this.subscribe));
553
+ this.host.dispatchEvent(new Ae(this.context, this.host, this.t, this.subscribe));
553
554
  }
554
555
  }
555
556
  /**
@@ -557,37 +558,52 @@ class j {
557
558
  * Copyright 2022 Google LLC
558
559
  * SPDX-License-Identifier: BSD-3-Clause
559
560
  */
560
- function qe({ context: e, subscribe: t }) {
561
- return (s, o) => {
562
- typeof o == "object" ? o.addInitializer(function() {
563
- new j(this, { context: e, callback: (r) => {
564
- s.set.call(this, r);
561
+ function Me({ context: e, subscribe: t }) {
562
+ return (s, r) => {
563
+ typeof r == "object" ? r.addInitializer(function() {
564
+ new j(this, { context: e, callback: (i) => {
565
+ s.set.call(this, i);
565
566
  }, subscribe: t });
566
- }) : s.constructor.addInitializer((r) => {
567
- new j(r, { context: e, callback: (l) => {
568
- r[o] = l;
567
+ }) : s.constructor.addInitializer((i) => {
568
+ new j(i, { context: e, callback: (n) => {
569
+ i[r] = n;
569
570
  }, subscribe: t });
570
571
  });
571
572
  };
572
573
  }
573
- const Ae = Symbol("slot-store-context"), Ue = ":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)}";
574
- var Me = Object.defineProperty, v = (e, t, s, o) => {
575
- for (var r = void 0, l = e.length - 1, z; l >= 0; l--)
576
- (z = e[l]) && (r = z(t, s, r) || r);
577
- return r && Me(t, s, r), r;
574
+ const Ue = Symbol("slot-store-context"), Ve = ":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))}.example-container{line-height:var(--luzmo-display-settings-example-height, var(--display-settings-example-height));font-size:var(--luzmo-display-settings-example-font-size, var(--display-settings-example-font-size));color:var(--luzmo-display-settings-example-color, var(--display-settings-example-color))}.example-container .example-label{font-weight:var(--luzmo-display-settings-example-label-font-weight, var(--display-settings-example-label-font-weight));color:var(--luzmo-display-settings-example-label-color, var(--display-settings-example-label-color))}.example-container .example-language{text-transform:uppercase;color:var(--luzmo-display-settings-example-language-color, var(--display-settings-example-language-color))}.example{font-style:italic;white-space:nowrap}: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)}:host{--display-settings-example-font-size: var(--luzmo-font-size);--display-settings-example-color: var(--luzmo-font-color);--display-settings-example-label-font-weight: bold;--display-settings-example-label-color: var(--luzmo-primary);--display-settings-example-language-color: var(--luzmo-primary)}:host{--display-settings-example-height: var(--luzmo-component-height)}:host([size=s]){--display-settings-example-height: var(--luzmo-component-height-s);--display-settings-example-font-size: var(--luzmo-font-size-s)}:host([size=l]){--display-settings-example-height: var(--luzmo-component-height-l);--display-settings-example-font-size: var(--luzmo-font-size)}:host([size=xl]){--display-settings-example-height: var(--luzmo-component-height-xl);--display-settings-example-font-size: var(--luzmo-font-size-l)}";
575
+ var Be = Object.defineProperty, f = (e, t, s, r) => {
576
+ for (var i = void 0, n = e.length - 1, m; n >= 0; n--)
577
+ (m = e[n]) && (i = m(t, s, i) || i);
578
+ return i && Be(t, s, i), i;
578
579
  };
579
- class m extends De(
580
- de(ce, {
581
- validSizes: Object.values(pe)
580
+ class g extends qe(
581
+ he(pe, {
582
+ validSizes: Object.values(me)
582
583
  })
583
584
  ) {
584
585
  constructor() {
585
586
  super(...arguments), this._loadDisplaySettings = new ne(this, {
586
- task: async ([t, s, o]) => {
587
- const r = [];
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));
587
+ task: async ([
588
+ t,
589
+ s,
590
+ r,
591
+ i
592
+ ]) => {
593
+ var m, u, y;
594
+ const n = [];
595
+ this.grandTotals && n.push("grandTotals"), r && n.push("periodOverPeriod"), (t === "numeric" || t === "mixed" && ((m = this._currentSlotContent) == null ? void 0 : m.type) === "numeric") && n.push("numeric"), t !== "numeric" && ((u = this._currentSlotContent) == null ? void 0 : u.type) === "datetime" && n.push("datetime"), !["numeric", "mixed"].includes(t ?? "") && ((y = this._currentSlotContent) == null ? void 0 : y.type) === "numeric" && !i && n.push("binning"), r && !this._settingsTypeLoaded.periodOverPeriod && (await import("./display-settings-period-over-period/index.js"), this._settingsTypeLoaded.periodOverPeriod = !0), n.length > 0 && !s && (n.includes("numeric") && !this._settingsTypeLoaded.numeric ? (await import("./display-settings-numeric/index.js"), this._settingsTypeLoaded.numeric = !0) : n.includes("datetime") && !this._settingsTypeLoaded.datetime ? (await import("./display-settings-datetime/index.js"), this._settingsTypeLoaded.datetime = !0) : n.includes("binning") && !this._settingsTypeLoaded.binning ? (await import("./display-settings-binning/index.js"), this._settingsTypeLoaded.binning = !0) : n.includes("grandTotals") && !this._settingsTypeLoaded.grandTotals && (await import("./display-settings-grand-totals/index.js"), this._settingsTypeLoaded.grandTotals = !0));
589
596
  },
590
- args: () => [this.slotContent, this.slotType, this.hideDisplaySettings]
597
+ args: () => {
598
+ var t;
599
+ return [
600
+ this.slotType,
601
+ this.hideDisplaySettings,
602
+ (t = this._store) == null ? void 0 : t.periodOverPeriodEnabled.get(),
603
+ this.binningDisabled,
604
+ this.slotContent
605
+ ];
606
+ }
591
607
  }), this.language = "en", this.contentLanguage = "en", this.slotType = "numeric", this.slotContent = {}, this._showIds = !1, this.measureColumns = [], this._settingsTypeLoaded = {
592
608
  binning: !1,
593
609
  datetime: !1,
@@ -598,12 +614,12 @@ class m extends De(
598
614
  }, this._currentSlotContent = {};
599
615
  }
600
616
  static get styles() {
601
- return [oe(Ue)];
617
+ return [re(Ve)];
602
618
  }
603
619
  willUpdate() {
604
- var s, o;
605
- const t = (s = this._store) == null ? void 0 : s.activeSlotContents.get();
606
- this.periodOverPeriod = (o = this._store) == null ? void 0 : o.periodOverPeriodEnabled.get(), t && t !== this._currentSlotContent && (this._currentSlotContent = structuredClone(t));
620
+ var r;
621
+ const t = (r = this._store) == null ? void 0 : r.activeSlotContents.get(), s = this._store.periodOverPeriodEnabled.get();
622
+ s !== this.periodOverPeriod && (this.periodOverPeriod = s), t && t !== this._currentSlotContent && (this._currentSlotContent = structuredClone(t));
607
623
  }
608
624
  _onSlotContentChange(t) {
609
625
  t.stopPropagation(), t.preventDefault(), this._currentSlotContent = structuredClone(t.detail.slotContent), this._sendEvent(), this.requestUpdate();
@@ -638,8 +654,28 @@ class m extends De(
638
654
  _toggleIds() {
639
655
  this._showIds = !this._showIds;
640
656
  }
657
+ _renderExampleRow() {
658
+ var m;
659
+ const t = this.slotType === "numeric" || this.slotType === "mixed" && this._currentSlotContent.type === "numeric", s = this.slotType !== "datetime" && this._currentSlotContent.type === "datetime";
660
+ if (!(t || s))
661
+ return oe;
662
+ const r = !this._currentSlotContent.datetimeDisplayMode || this._currentSlotContent.datetimeDisplayMode === "default", i = t ? 1234.56 : r ? /* @__PURE__ */ new Date() : 1, n = de(
663
+ {
664
+ ...this._currentSlotContent,
665
+ type: t ? "numeric" : "datetime"
666
+ },
667
+ {
668
+ locale: this.contentLanguage,
669
+ level: (m = this._currentSlotContent) == null ? void 0 : m.level
670
+ }
671
+ )(i);
672
+ return b`<div class="settings-row example-container">
673
+ <span class="example-label">Example:</span>
674
+ <span class="example">${n}</span>
675
+ </div>`;
676
+ }
641
677
  _renderDisplaySettings() {
642
- return f`<div class="settings-container">
678
+ return b`<div class="settings-container">
643
679
  <div class="settings-row">
644
680
  <div class="setting">
645
681
  <div class="label-container">
@@ -656,16 +692,16 @@ class m extends De(
656
692
  </div>
657
693
  <div class="label-action-container">
658
694
  <button class="id-button" @click=${this._toggleIds}>
659
- ${V(le)}
695
+ ${V(ue)}
660
696
  <luzmo-tooltip self-managed placement="top" size=${this.size}>
661
697
  Show dataset and column id's
662
698
  </luzmo-tooltip>
663
699
  </button>
664
- ${this.showRemoveButton ? f`<button
700
+ ${this.showRemoveButton ? b`<button
665
701
  class="remove-button"
666
702
  @click=${this._removeEvent}
667
703
  >
668
- ${V(ue)}
704
+ ${V(ce)}
669
705
  <luzmo-tooltip
670
706
  self-managed
671
707
  placement="top"
@@ -677,40 +713,41 @@ class m extends De(
677
713
  </div>
678
714
  </div>
679
715
  </div>
680
- ${this.grandTotals ? f`<luzmo-display-settings-grand-totals
716
+ ${this.grandTotals ? b`<luzmo-display-settings-grand-totals
681
717
  .language=${this.language}
682
718
  .slotContent=${this._currentSlotContent}
683
719
  .size=${this.size}
684
720
  @slot-content-changed=${this._onSlotContentChange}
685
721
  ></luzmo-display-settings-grand-totals>` : ""}
686
- ${this.slotType === "numeric" || this.slotType === "mixed" && this.slotContent.type === "numeric" ? f`<luzmo-display-settings-numeric
722
+ ${this.slotType === "numeric" || this.slotType === "mixed" && this._currentSlotContent.type === "numeric" ? b`<luzmo-display-settings-numeric
687
723
  .language=${this.language}
688
724
  .slotContent=${this._currentSlotContent}
689
725
  .size=${this.size}
690
726
  .measureColumns=${this.measureColumns}
691
727
  @slot-content-changed=${this._onSlotContentChange}
692
728
  ></luzmo-display-settings-numeric>` : ""}
693
- ${this.slotType !== "numeric" && this.slotContent.type === "datetime" ? f`<luzmo-display-settings-datetime
729
+ ${this.slotType !== "numeric" && this._currentSlotContent.type === "datetime" ? b`<luzmo-display-settings-datetime
694
730
  .language=${this.language}
695
731
  .contentLanguage=${this.contentLanguage}
696
732
  .slotContent=${this._currentSlotContent}
697
733
  .size=${this.size}
698
734
  @slot-content-changed=${this._onSlotContentChange}
699
735
  ></luzmo-display-settings-datetime>` : ""}
700
- ${!["numeric", "mixed"].includes(this.slotType ?? "") && this.slotContent.type === "numeric" && !this.binningDisabled ? f`<luzmo-display-settings-binning
736
+ ${!["numeric", "mixed"].includes(this.slotType ?? "") && this._currentSlotContent.type === "numeric" && !this.binningDisabled ? b`<luzmo-display-settings-binning
701
737
  .language=${this.language}
702
738
  .slotContent=${this._currentSlotContent}
703
739
  .size=${this.size}
704
740
  @slot-content-changed=${this._onSlotContentChange}
705
741
  ></luzmo-display-settings-binning>` : ""}
706
- ${this.periodOverPeriod ? f`<luzmo-display-settings-period-over-period
742
+ ${this.periodOverPeriod ? b`<luzmo-display-settings-period-over-period
707
743
  .language=${this.language}
708
744
  .slotContent=${this._currentSlotContent}
709
745
  .size=${this.size}
710
746
  @slot-content-changed=${this._onSlotContentChange}
711
747
  ></luzmo-display-settings-period-over-period>` : ""}
748
+ ${this._renderExampleRow()}
712
749
  </div>
713
- ${this._showIds ? f` <luzmo-divider></luzmo-divider>
750
+ ${this._showIds ? b` <luzmo-divider></luzmo-divider>
714
751
  <div class="ids-container">
715
752
  <div>
716
753
  <span class="id-label">Column: </span>
@@ -727,7 +764,7 @@ class m extends De(
727
764
  }
728
765
  render() {
729
766
  return this._loadDisplaySettings.render({
730
- pending: () => f`<luzmo-progress-circle
767
+ pending: () => b`<luzmo-progress-circle
731
768
  indeterminate
732
769
  .size=${this.size}
733
770
  ></luzmo-progress-circle>`,
@@ -735,53 +772,57 @@ class m extends De(
735
772
  error: () => this._renderDisplaySettings()
736
773
  });
737
774
  }
775
+ disconnectedCallback() {
776
+ var t, s, r;
777
+ (t = super.disconnectedCallback) == null || t.call(this), (r = (s = this._loadDisplaySettings).abort) == null || r.call(s);
778
+ }
738
779
  }
739
- v([
740
- b({ type: String })
741
- ], m.prototype, "language");
742
- v([
743
- b({ type: String, attribute: "content-language" })
744
- ], m.prototype, "contentLanguage");
745
- v([
746
- b({ type: Boolean, attribute: "hide-display-settings" })
747
- ], m.prototype, "hideDisplaySettings");
748
- v([
749
- b({ type: Boolean, attribute: "binning-disabled" })
750
- ], m.prototype, "binningDisabled");
751
- v([
752
- b({ type: Boolean, attribute: "grand-totals" })
753
- ], m.prototype, "grandTotals");
754
- v([
755
- G()
756
- ], m.prototype, "periodOverPeriod");
757
- v([
758
- b({ type: Boolean, attribute: "show-remove-button" })
759
- ], m.prototype, "showRemoveButton");
760
- v([
761
- b({ type: String, attribute: "slot-type" })
762
- ], m.prototype, "slotType");
763
- v([
764
- b()
765
- ], m.prototype, "slotContent");
766
- v([
767
- G()
768
- ], m.prototype, "_showIds");
769
- v([
770
- b({ type: Array, reflect: !1 })
771
- ], m.prototype, "measureColumns");
772
- v([
773
- ae("luzmo-multi-language-field")
774
- ], m.prototype, "_multiLanguageFieldElement");
775
- v([
776
- qe({ context: Ae, subscribe: !0 })
777
- ], m.prototype, "_store");
778
- customElements.get("luzmo-display-settings") || customElements.define("luzmo-display-settings", m);
780
+ f([
781
+ z({ type: String })
782
+ ], g.prototype, "language");
783
+ f([
784
+ z({ type: String, attribute: "content-language" })
785
+ ], g.prototype, "contentLanguage");
786
+ f([
787
+ z({ type: Boolean, attribute: "hide-display-settings" })
788
+ ], g.prototype, "hideDisplaySettings");
789
+ f([
790
+ z({ type: Boolean, attribute: "binning-disabled" })
791
+ ], g.prototype, "binningDisabled");
792
+ f([
793
+ z({ type: Boolean, attribute: "grand-totals" })
794
+ ], g.prototype, "grandTotals");
795
+ f([
796
+ z({ type: Boolean })
797
+ ], g.prototype, "periodOverPeriod");
798
+ f([
799
+ z({ type: Boolean, attribute: "show-remove-button" })
800
+ ], g.prototype, "showRemoveButton");
801
+ f([
802
+ z({ type: String, attribute: "slot-type" })
803
+ ], g.prototype, "slotType");
804
+ f([
805
+ z()
806
+ ], g.prototype, "slotContent");
807
+ f([
808
+ ae()
809
+ ], g.prototype, "_showIds");
810
+ f([
811
+ z({ type: Array, reflect: !1 })
812
+ ], g.prototype, "measureColumns");
813
+ f([
814
+ le("luzmo-multi-language-field")
815
+ ], g.prototype, "_multiLanguageFieldElement");
816
+ f([
817
+ Me({ context: Ue, subscribe: !0 })
818
+ ], g.prototype, "_store");
819
+ customElements.get("luzmo-display-settings") || customElements.define("luzmo-display-settings", g);
779
820
  export {
780
- m as L,
781
- Re as a,
782
- qe as c,
783
- De as e,
784
- rt as i,
785
- st as r,
786
- Ae as s
821
+ g as L,
822
+ Ae as a,
823
+ Me as c,
824
+ qe as e,
825
+ nt as i,
826
+ ot as r,
827
+ Ue as s
787
828
  };