@luzmo/lucero 2.5.2 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/components/color-area/color-area.d.ts +15 -0
  2. package/components/color-area/index.cjs +1 -1
  3. package/components/color-area/index.d.ts +1 -0
  4. package/components/color-area/index.js +1 -1
  5. package/components/color-area-CFBE-rG3.cjs +80 -0
  6. package/components/{color-area-qlEAp8ZN.js → color-area-GGa8KJyd.js} +85 -44
  7. package/components/color-handle/index.cjs +1 -1
  8. package/components/color-handle/index.js +1 -1
  9. package/components/{color-handle-Dc0uLgkf.js → color-handle-Ya92rdpA.js} +5 -2
  10. package/components/{color-handle-BE0Z1gTU.cjs → color-handle-hJ7Kblh4.cjs} +1 -1
  11. package/components/color-menu/color-menu.d.ts +11 -0
  12. package/components/color-menu/index.cjs +1 -1
  13. package/components/color-menu/index.d.ts +1 -0
  14. package/components/color-menu/index.js +1 -1
  15. package/components/{color-menu-Cus3S-Re.cjs → color-menu-COhe5VUB.cjs} +1 -1
  16. package/components/{color-menu-BxFQnH79.js → color-menu-Ct3f01bI.js} +6 -3
  17. package/components/color-picker/color-picker.d.ts +13 -0
  18. package/components/color-picker/index.cjs +1 -1
  19. package/components/color-picker/index.d.ts +1 -0
  20. package/components/color-picker/index.js +1 -1
  21. package/components/{color-picker-orFSIqoZ.js → color-picker-DWERcNZi.js} +5 -2
  22. package/components/{color-picker-BTT1O-76.cjs → color-picker-ELa0yF2F.cjs} +1 -1
  23. package/components/color-slider/color-slider.d.ts +17 -0
  24. package/components/color-slider/index.cjs +1 -1
  25. package/components/color-slider/index.d.ts +1 -0
  26. package/components/color-slider/index.js +1 -1
  27. package/components/{color-slider-X1EArAnx.js → color-slider-DNd_ZrD6.js} +95 -56
  28. package/components/color-slider-IYBn2DL7.cjs +58 -0
  29. package/components/index.cjs +1 -1
  30. package/components/index.js +8 -8
  31. package/components/interaction-BjXWVy_C.cjs +18 -0
  32. package/components/interaction-BpCLJ1OV.js +83 -0
  33. package/components/number-field/index.cjs +1 -1
  34. package/components/number-field/index.js +1 -1
  35. package/components/number-field/number-field.d.ts +4 -0
  36. package/components/{number-field-Ceeli_mh.cjs → number-field-CV7g2Q20.cjs} +2 -2
  37. package/components/{number-field-D9UqpqpW.js → number-field-Crol6vc9.js} +15 -9
  38. package/components/slider/index.cjs +1 -1
  39. package/components/slider/index.d.ts +1 -0
  40. package/components/slider/index.js +1 -1
  41. package/components/slider/slider.d.ts +18 -0
  42. package/components/{slider-Ch7OgTdj.js → slider-BFTuAXK1.js} +167 -151
  43. package/components/slider-Ce6qgPZ4.cjs +136 -0
  44. package/components/{streaming-listener-Bfyk6Fsx.cjs → streaming-listener-BzGZUHkj.cjs} +1 -1
  45. package/components/{streaming-listener-B6mDl4pZ.js → streaming-listener-DyS3scAi.js} +1 -1
  46. package/components/utils.cjs +1 -1
  47. package/components/utils.js +1 -1
  48. package/custom-elements.json +1 -1
  49. package/package.json +1 -1
  50. package/standalone/chunks/color-area-D-AVcZza.js +66 -0
  51. package/standalone/chunks/{color-handle-BLQiuRSS.js → color-handle-DO7dxFGx.js} +1 -1
  52. package/standalone/chunks/{color-menu-BDZh85nX.js → color-menu-DIX2y9m_.js} +1 -1
  53. package/standalone/chunks/color-slider-MSADvkPC.js +50 -0
  54. package/standalone/chunks/interaction-BQyflxg-.js +2 -0
  55. package/standalone/chunks/{number-field-Dc4nBa6l.js → number-field-BoIKbmIv.js} +2 -2
  56. package/standalone/chunks/{streaming-listener-DbMoHlSj.js → streaming-listener-0FSzb9QY.js} +1 -1
  57. package/standalone/color-area.js +1 -1
  58. package/standalone/color-handle.js +1 -1
  59. package/standalone/color-menu.js +1 -1
  60. package/standalone/color-picker.js +1 -1
  61. package/standalone/color-slider.js +1 -1
  62. package/standalone/manifest.json +7 -6
  63. package/standalone/number-field.js +1 -1
  64. package/standalone/slider.js +11 -10
  65. package/standalone/utils.js +1 -1
  66. package/utils/reactive-controllers/interaction.d.ts +85 -0
  67. package/components/color-area-D1fRozE0.cjs +0 -80
  68. package/components/color-slider-9Ck28Qdk.cjs +0 -57
  69. package/components/slider-C1AdDTfB.cjs +0 -135
  70. package/standalone/chunks/color-area-BCI2oMGd.js +0 -66
  71. package/standalone/chunks/color-slider-Bipcekrc.js +0 -49
@@ -20,27 +20,28 @@ import { n as e, t } from "./decorate-CpKsOs9z.js";
20
20
  import { n } from "./sized-mixin-BmxIAuoH.js";
21
21
  import { t as r } from "./focusable-xjv79E40.js";
22
22
  import { r as i, t as a } from "./language-resolution-7rc0khIK.js";
23
- import { t as o } from "./manage-help-text-CFUaqINN.js";
24
- import "./number-field-D9UqpqpW.js";
25
- import { html as s, nothing as c, unsafeCSS as l } from "lit";
26
- import { property as u, queryAll as d, state as f } from "lit/decorators.js";
27
- import { ifDefined as p } from "lit/directives/if-defined.js";
28
- import { classMap as m } from "lit/directives/class-map.js";
29
- import { styleMap as h } from "lit/directives/style-map.js";
30
- import { NumberFormatter as g } from "@internationalized/number";
31
- import { repeat as _ } from "lit/directives/repeat.js";
32
- var v = {
23
+ import { n as o, t as s } from "./interaction-BpCLJ1OV.js";
24
+ import { t as c } from "./manage-help-text-CFUaqINN.js";
25
+ import "./number-field-Crol6vc9.js";
26
+ import { html as l, nothing as u, unsafeCSS as d } from "lit";
27
+ import { property as f, queryAll as p, state as m } from "lit/decorators.js";
28
+ import { ifDefined as h } from "lit/directives/if-defined.js";
29
+ import { classMap as g } from "lit/directives/class-map.js";
30
+ import { styleMap as _ } from "lit/directives/style-map.js";
31
+ import { NumberFormatter as v } from "@internationalized/number";
32
+ import { repeat as y } from "lit/directives/repeat.js";
33
+ var b = {
33
34
  toNormalized(e, t, n) {
34
35
  return n === t ? 0 : (e - t) / (n - t);
35
36
  },
36
37
  fromNormalized(e, t, n) {
37
38
  return e * (n - t) + t;
38
39
  }
39
- }, y = (e, t) => {
40
+ }, x = (e, t) => {
40
41
  let n = e;
41
42
  for (let [e, r] of Object.entries(t)) n = n.replaceAll(`{${e}}`, r);
42
43
  return n;
43
- }, b = (e) => {
44
+ }, S = (e) => {
44
45
  if (!Number.isFinite(e)) return 0;
45
46
  let t = Math.abs(e).toString(), n = t.match(/^\d+(?:\.(?<fraction>\d+))?e(?<exponent>[+-]\d+)$/);
46
47
  if (n?.groups) {
@@ -49,7 +50,7 @@ var v = {
49
50
  }
50
51
  let [, r = ""] = t.split(".");
51
52
  return Math.min(r.length, 20);
52
- }, x = (e, t) => {
53
+ }, C = (e, t) => {
53
54
  let n;
54
55
  try {
55
56
  n = e();
@@ -59,22 +60,22 @@ var v = {
59
60
  if (typeof n == "number" && !Number.isNaN(n)) return n;
60
61
  let r = t();
61
62
  return Number.isNaN(r) ? 0 : r;
62
- }, S = (e, t) => Number.isFinite(e) ? e : t, C = (e, t, n) => Math.min(Math.max(e, Math.min(t, n)), Math.max(t, n)), w = (e, t, n, r) => {
63
- let i = S(t, 0), a = S(n, i), o = Number.isFinite(r) && r > 0 ? r : 1, s = Number.isNaN(e) ? i : e, c = Math.max(b(o), b(i), b(a)), l = i + Math.round((C(s, i, a) - i) / o) * o;
64
- return C(Number(l.toFixed(c)), i, a);
65
- }, T = (e, t, n, r = v) => C(x(() => r.toNormalized(e, t, n), () => v.toNormalized(e, t, n)), 0, 1), E = (e, t, n, r, i = v) => {
66
- let a = C(e, 0, 1);
67
- return w(x(() => i.fromNormalized(a, t, n), () => v.fromNormalized(a, t, n)), t, n, r);
68
- }, D = (e, t, n) => {
63
+ }, w = (e, t) => Number.isFinite(e) ? e : t, T = (e, t, n) => Math.min(Math.max(e, Math.min(t, n)), Math.max(t, n)), E = (e, t, n, r) => {
64
+ let i = w(t, 0), a = w(n, i), o = Number.isFinite(r) && r > 0 ? r : 1, s = Number.isNaN(e) ? i : e, c = Math.max(S(o), S(i), S(a)), l = i + Math.round((T(s, i, a) - i) / o) * o;
65
+ return T(Number(l.toFixed(c)), i, a);
66
+ }, D = (e, t, n, r = b) => T(C(() => r.toNormalized(e, t, n), () => b.toNormalized(e, t, n)), 0, 1), O = (e, t, n, r, i = b) => {
67
+ let a = T(e, 0, 1);
68
+ return E(C(() => i.fromNormalized(a, t, n), () => b.fromNormalized(a, t, n)), t, n, r);
69
+ }, k = (e, t, n) => {
69
70
  if (!Number.isFinite(e) || !Number.isFinite(t) || !Number.isFinite(n) || n <= 0 || t <= e) return [];
70
71
  let r = Math.floor((t - e) / n) + 1;
71
72
  if (r > 250) return [];
72
- let i = Math.max(b(e), b(n));
73
+ let i = Math.max(S(e), S(n));
73
74
  return Array.from({ length: r }, (t, r) => Number((e + r * n).toFixed(i)));
74
- }, O = (e, t, n, r, i = v) => {
75
- let a = t + (n - t) / 2, o = r === !0 ? a : r === void 0 ? t : r, s = T(Number.isNaN(o) ? t : o, t, n, i), c = T(e, t, n, i);
75
+ }, A = (e, t, n, r, i = b) => {
76
+ let a = t + (n - t) / 2, o = r === !0 ? a : r === void 0 ? t : r, s = D(Number.isNaN(o) ? t : o, t, n, i), c = D(e, t, n, i);
76
77
  return [Math.min(s, c), Math.max(s, c)];
77
- }, k = (e, t) => e + (t - e) / 2, A = class {
78
+ }, j = (e, t) => e + (t - e) / 2, M = class {
78
79
  constructor(e, t, n, r) {
79
80
  this._applySingleValue = t, this._formatHandleValue = n, this._formatHandleLabel = r, this._attachedHandles = /* @__PURE__ */ new Set(), this._inputMap = /* @__PURE__ */ new WeakMap(), this.activeIndex = 0, this.draggingIndex = -1, this._host = e, this._host.addController(this);
80
81
  }
@@ -113,12 +114,12 @@ var v = {
113
114
  let n = this.models[e];
114
115
  if (!n) return !1;
115
116
  this.activeIndex = e;
116
- let r = w(t, n.effectiveMin, n.effectiveMax, n.step);
117
+ let r = E(t, n.effectiveMin, n.effectiveMax, n.step);
117
118
  return r !== n.value && (n.handle ? n.handle.value = r : this._applySingleValue(r), this._cachedModels = this._resolveModels(), !0);
118
119
  }
119
120
  setNormalizedValue(e, t) {
120
121
  let n = this.models[e];
121
- return n ? this.setValue(e, E(t, n.min, n.max, n.step, n.normalization)) : !1;
122
+ return n ? this.setValue(e, O(t, n.min, n.max, n.step, n.normalization)) : !1;
122
123
  }
123
124
  nearestIndex(e) {
124
125
  let t = this.models;
@@ -178,10 +179,10 @@ var v = {
178
179
  };
179
180
  }), n = e.map((e, n) => {
180
181
  let { min: r, max: i } = t[n], a = this._resolveStep(e.step);
181
- return w(Number.isFinite(e.value) ? e.value : k(r, i), r, i, a);
182
+ return E(Number.isFinite(e.value) ? e.value : j(r, i), r, i, a);
182
183
  }), r = /* @__PURE__ */ new Set();
183
184
  return e.map((i, a) => {
184
- let { min: o, max: s } = t[a], c = this._resolveStep(i.step), l = i.min === "previous" && a > 0 ? Math.max(o, n[a - 1]) : o, u = Math.max(l, i.max === "next" && a < e.length - 1 ? Math.min(s, n[a + 1]) : s), d = w(n[a], l, u, c), f = i.normalization;
185
+ let { min: o, max: s } = t[a], c = this._resolveStep(i.step), l = i.min === "previous" && a > 0 ? Math.max(o, n[a - 1]) : o, u = Math.max(l, i.max === "next" && a < e.length - 1 ? Math.min(s, n[a + 1]) : s), d = E(n[a], l, u, c), f = i.normalization;
185
186
  return {
186
187
  handle: i,
187
188
  name: this._uniqueName(i.name, a, r),
@@ -193,13 +194,13 @@ var v = {
193
194
  effectiveMax: u,
194
195
  step: c,
195
196
  defaultValue: i.defaultValue,
196
- normalizedValue: T(d, o, s, f),
197
+ normalizedValue: D(d, o, s, f),
197
198
  normalization: f
198
199
  };
199
200
  });
200
201
  }
201
202
  _resolveSingleModel() {
202
- let { min: e, max: t, step: n, normalization: r } = this._host, i = w(this._host.value, e, t, n);
203
+ let { min: e, max: t, step: n, normalization: r } = this._host, i = E(this._host.value, e, t, n);
203
204
  return {
204
205
  name: "value",
205
206
  label: this._host.label,
@@ -210,7 +211,7 @@ var v = {
210
211
  effectiveMax: t,
211
212
  step: n,
212
213
  defaultValue: this._host.defaultValue,
213
- normalizedValue: T(i, e, t, r),
214
+ normalizedValue: D(i, e, t, r),
214
215
  normalization: r
215
216
  };
216
217
  }
@@ -227,24 +228,24 @@ var v = {
227
228
  }
228
229
  };
229
230
  // src/components/slider/slider-control-templates.ts
230
- function j({ model: e, index: t, total: n, grouped: r, label: i, appliedLabel: a, helpTextId: o, labelVisibility: l, formattedValue: u, activeIndex: d, draggingIndex: f, focusedIndex: g, invalid: _, readonly: v, disabled: y }) {
231
+ function N({ model: e, index: t, total: n, grouped: r, label: i, appliedLabel: a, helpTextId: o, labelVisibility: s, formattedValue: c, activeIndex: d, draggingIndex: f, focusedIndex: p, invalid: m, readonly: v, disabled: y }) {
231
232
  let b = n > 1 ? e.label : i || a || e.label;
232
- return s`
233
+ return l`
233
234
  <span
234
- class=${m({
235
+ class=${g({
235
236
  handle: !0,
236
- "tooltip-open": f === t || g === t
237
+ "tooltip-open": f === t || p === t
237
238
  })}
238
239
  data-handle-index=${t}
239
- style=${h({
240
+ style=${_({
240
241
  "inset-inline-start": `${e.normalizedValue * 100}%`,
241
242
  "--slider-handle-color": e.handle?.color || void 0,
242
243
  "z-index": String(d === t ? 3 : t + 2)
243
244
  })}
244
245
  >
245
- ${l === "none" ? s`<span class="value-tooltip" aria-hidden="true"
246
- >${u}</span
247
- >` : c}
246
+ ${s === "none" ? l`<span class="value-tooltip" aria-hidden="true"
247
+ >${c}</span
248
+ >` : u}
248
249
  <input
249
250
  data-handle-index=${t}
250
251
  type="range"
@@ -252,18 +253,18 @@ function j({ model: e, index: t, total: n, grouped: r, label: i, appliedLabel: a
252
253
  max=${e.effectiveMax}
253
254
  step=${e.step}
254
255
  .value=${String(e.value)}
255
- aria-label=${p(b || void 0)}
256
- aria-valuetext=${u}
257
- aria-describedby=${p(r ? void 0 : o)}
258
- aria-invalid=${p(_ || void 0)}
259
- aria-readonly=${p(v || void 0)}
256
+ aria-label=${h(b || void 0)}
257
+ aria-valuetext=${c}
258
+ aria-describedby=${h(r ? void 0 : o)}
259
+ aria-invalid=${h(m || void 0)}
260
+ aria-readonly=${h(v || void 0)}
260
261
  ?disabled=${y}
261
262
  />
262
263
  </span>
263
264
  `;
264
265
  }
265
- function M({ model: e, label: t, formatOptions: n, size: r, disabled: i, invalid: a, readonly: o, hideStepper: c, quiet: l, indeterminate: u, onInput: d, onChange: f }) {
266
- return s`
266
+ function P({ model: e, label: t, formatOptions: n, size: r, disabled: i, invalid: a, readonly: o, hideStepper: s, quiet: c, indeterminate: u, onInput: d, onChange: f }) {
267
+ return l`
267
268
  <luzmo-number-field
268
269
  id="number-field"
269
270
  label=${t}
@@ -276,8 +277,8 @@ function M({ model: e, label: t, formatOptions: n, size: r, disabled: i, invalid
276
277
  ?disabled=${i}
277
278
  ?invalid=${a}
278
279
  ?readonly=${o}
279
- ?hide-stepper=${c}
280
- ?quiet=${l}
280
+ ?hide-stepper=${s}
281
+ ?quiet=${c}
281
282
  ?indeterminate=${u}
282
283
  @input=${d}
283
284
  @change=${f}
@@ -285,52 +286,52 @@ function M({ model: e, label: t, formatOptions: n, size: r, disabled: i, invalid
285
286
  `;
286
287
  }
287
288
  // src/components/slider/slider-templates.ts
288
- function N(e, t, n, r, i) {
289
- return e.length === 0 ? c : s`
289
+ function F(e, t, n, r, i) {
290
+ return e.length === 0 ? u : l`
290
291
  <div class="ticks" aria-hidden="true">
291
- ${_(e, (e) => e, (e) => {
292
- let a = `${T(e, t, n) * 100}%`;
293
- return s`
292
+ ${y(e, (e) => e, (e) => {
293
+ let a = `${D(e, t, n) * 100}%`;
294
+ return l`
294
295
  <span
295
296
  class="tick"
296
- style=${h({ "inset-inline-start": a })}
297
+ style=${_({ "inset-inline-start": a })}
297
298
  ></span>
298
- ${i ? s`<span
299
+ ${i ? l`<span
299
300
  class="tick-label"
300
- style=${h({ "inset-inline-start": a })}
301
+ style=${_({ "inset-inline-start": a })}
301
302
  >${r.format(e)}</span
302
- >` : c}
303
+ >` : u}
303
304
  `;
304
305
  })}
305
306
  </div>
306
307
  `;
307
308
  }
308
- function P(e, t) {
309
+ function I(e, t) {
309
310
  if (e.length === 0) return;
310
311
  if (e.length > 1) {
311
312
  let t = e.map(({ normalizedValue: e }) => e).sort((e, t) => e - t);
312
313
  return [t[0], t.at(-1)];
313
314
  }
314
315
  let n = e[0];
315
- return O(n.value, n.min, n.max, t, n.normalization);
316
+ return A(n.value, n.min, n.max, t, n.normalization);
316
317
  }
317
- function F(e, t) {
318
- let n = P(e, t);
319
- if (!n) return c;
318
+ function L(e, t) {
319
+ let n = I(e, t);
320
+ if (!n) return u;
320
321
  let [r, i] = n;
321
- return s`
322
+ return l`
322
323
  <span
323
324
  class="fill"
324
- style=${h({
325
+ style=${_({
325
326
  "--slider-fill-start": `${r * 100}%`,
326
327
  "--slider-fill-end": `${i * 100}%`
327
328
  })}
328
329
  ></span>
329
330
  `;
330
331
  }
331
- function I(e, t, n) {
332
- let [r, i] = P(e, t) ?? [0, 0];
333
- return s`
332
+ function R(e, t, n) {
333
+ let [r, i] = I(e, t) ?? [0, 0];
334
+ return l`
334
335
  <span class="ramp" aria-hidden="true">
335
336
  <svg viewBox="0 0 240 16" preserveAspectRatio="none" focusable="false">
336
337
  <path
@@ -338,20 +339,20 @@ function I(e, t, n) {
338
339
  d="M240,4v8c0,2.3-1.9,4.1-4.2,4L1,9C0.4,9,0,8.5,0,8c0-0.5,0.4-1,1-1l234.8-7C238.1-0.1,240,1.7,240,4z"
339
340
  ></path>
340
341
  </svg>
341
- ${n ? s`
342
+ ${n ? l`
342
343
  <span
343
344
  class="ramp-fill"
344
- style=${h({
345
+ style=${_({
345
346
  "--slider-ramp-fill-start": `${r * 100}%`,
346
347
  "--slider-ramp-fill-end": `${(1 - i) * 100}%`
347
348
  })}
348
349
  ></span>
349
- ` : c}
350
+ ` : u}
350
351
  </span>
351
352
  `;
352
353
  }
353
354
  // src/components/slider/slider.module.scss?inline
354
- var L = ":host{min-inline-size:var(--luzmo-slider-min-inline-size,var(--slider-min-inline-size));min-block-size:var(--luzmo-slider-item-height,var(--slider-item-height));color:var(--slider-label-color);font-family:var(--luzmo-slider-font-family,var(--slider-font-family));flex-grow:1;display:block}:host([disabled]){cursor:not-allowed}.handle-slot{display:none}.control-row{align-items:center;gap:var(--slider-label-gap);inline-size:100%;display:flex}.track{min-inline-size:0;block-size:var(--luzmo-slider-item-height,var(--slider-item-height));cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none;flex:1;position:relative}.rail,.fill,.ramp{display:block;position:absolute;inset-block-start:calc(50% + var(--luzmo-slider-top-to-track,var(--slider-top-to-track)));transform:translateY(-50%)}.rail{block-size:var(--luzmo-slider-track-height,var(--slider-track-height));background:var(--highcontrast-slider-track-color,var(--slider-track-color));border-radius:var(--slider-track-radius);inset-inline:0}.fill{z-index:1;block-size:var(--luzmo-slider-track-height,var(--slider-track-height));background:var(--highcontrast-slider-fill-color,var(--luzmo-slider-fill-background,var(--slider-fill-background)));border-radius:var(--slider-track-radius);-webkit-mask-image:linear-gradient(to right, transparent 0, transparent var(--slider-fill-start), currentColor var(--slider-fill-start), currentColor var(--slider-fill-end), transparent var(--slider-fill-end), transparent 100%);mask-image:linear-gradient(to right, transparent 0, transparent var(--slider-fill-start), currentColor var(--slider-fill-start), currentColor var(--slider-fill-end), transparent var(--slider-fill-end), transparent 100%);inset-inline:0}.ramp{block-size:var(--slider-ramp-height);inset-inline:0}:host([ramp]) .rail{display:none}.ramp svg,.ramp-fill{block-size:100%;inline-size:100%;display:block;position:absolute;inset:0}.ramp-track{fill:var(--highcontrast-slider-track-color,var(--slider-track-color))}.ramp-fill{z-index:1;background:var(--highcontrast-slider-fill-color,var(--luzmo-slider-fill-background,var(--slider-fill-background)));clip-path:polygon(0 44%,100% 0,100% 100%,0 56%);-webkit-mask-image:linear-gradient(to right, transparent 0, transparent var(--slider-ramp-fill-start), currentColor var(--slider-ramp-fill-start), currentColor calc(100% - var(--slider-ramp-fill-end)), transparent calc(100% - var(--slider-ramp-fill-end)), transparent 100%);mask-image:linear-gradient(to right, transparent 0, transparent var(--slider-ramp-fill-start), currentColor var(--slider-ramp-fill-start), currentColor calc(100% - var(--slider-ramp-fill-end)), transparent calc(100% - var(--slider-ramp-fill-end)), transparent 100%)}:host(:dir(rtl)) .ramp svg{transform:scaleX(-1)}:host(:dir(rtl)) .fill{-webkit-mask-image:linear-gradient(to left, transparent 0, transparent var(--slider-fill-start), currentColor var(--slider-fill-start), currentColor var(--slider-fill-end), transparent var(--slider-fill-end), transparent 100%);mask-image:linear-gradient(to left, transparent 0, transparent var(--slider-fill-start), currentColor var(--slider-fill-start), currentColor var(--slider-fill-end), transparent var(--slider-fill-end), transparent 100%)}:host(:dir(rtl)) .ramp-fill{clip-path:polygon(0 0,100% 44%,100% 56%,0 100%);-webkit-mask-image:linear-gradient(to left, transparent 0, transparent var(--slider-ramp-fill-start), currentColor var(--slider-ramp-fill-start), currentColor calc(100% - var(--slider-ramp-fill-end)), transparent calc(100% - var(--slider-ramp-fill-end)), transparent 100%);mask-image:linear-gradient(to left, transparent 0, transparent var(--slider-ramp-fill-start), currentColor var(--slider-ramp-fill-start), currentColor calc(100% - var(--slider-ramp-fill-end)), transparent calc(100% - var(--slider-ramp-fill-end)), transparent 100%)}.handle{box-sizing:border-box;inline-size:var(--slider-hit-size);block-size:var(--slider-hit-size);cursor:grab;place-items:center;margin-inline-start:var(--luzmo-slider-edge-to-handle,var(--slider-edge-to-handle));display:grid;position:absolute;inset-block-start:calc(50% + var(--luzmo-slider-top-to-handle,var(--slider-top-to-handle)));transform:translate(-50%,-50%)}:host(:dir(rtl)) .handle{transform:translate(50%,-50%)}.handle:before{box-sizing:border-box;inline-size:var(--slider-handle-visual-size);block-size:var(--slider-handle-visual-size);background:var(--highcontrast-slider-handle-background,var(--slider-handle-color,var(--slider-handle-background)));border:var(--slider-handle-border-width) solid var(--highcontrast-slider-handle-border-color,var(--slider-handle-color,var(--slider-handle-border-color)));box-shadow:var(--slider-handle-shadow);content:\"\";transition:background-color var(--luzmo-animation-duration), border-color var(--luzmo-animation-duration);border-radius:50%}:host([ramp]) .handle:before,:host([variant=unfilled]) .handle:before{border-color:var(--highcontrast-slider-handle-border-color,var(--slider-handle-color,var(--slider-handle-border-color-unfilled)))}.handle:hover:before,:host([dragging]) .handle:before{background:var(--highcontrast-slider-handle-background,var(--slider-handle-color,var(--luzmo-slider-background-color-hover,var(--slider-handle-background-hover))))}:host([dragging]) .handle:before{border-color:var(--highcontrast-slider-focus-color,var(--slider-handle-color,var(--slider-handle-border-color-active)))}:host([dragging]) .handle{cursor:grabbing}.handle:has(input:focus-visible):before{border-color:var(--highcontrast-slider-focus-color,var(--slider-focus-color));outline:var(--slider-focus-width) solid var(--highcontrast-slider-focus-color,var(--slider-focus-color));outline-offset:var(--slider-focus-offset)}.handle input{block-size:100%;inline-size:100%;cursor:inherit;opacity:0;pointer-events:none;margin:0;position:absolute;inset:0}.ticks{z-index:1;pointer-events:none;position:absolute;inset:0}.tick{inline-size:var(--slider-tick-width);block-size:var(--slider-tick-height);background:var(--highcontrast-slider-tick-color,var(--slider-tick-color));position:absolute;inset-block-start:calc(50% + var(--luzmo-slider-top-to-track,var(--slider-top-to-track)) + var(--slider-tick-offset));transform:translate(-50%)}:host(:dir(rtl)) .tick{transform:translate(50%)}.tick-label{color:var(--slider-label-color);font-size:var(--slider-tick-label-font-size);white-space:nowrap;position:absolute;inset-block-start:calc(50% + var(--luzmo-slider-top-to-handle,var(--slider-top-to-handle)) + var(--slider-handle-visual-size) / 2 + var(--slider-tick-label-gap));transform:translate(-50%)}:host(:dir(rtl)) .tick-label{transform:translate(50%)}.value-label{min-inline-size:max-content;color:var(--slider-label-color);font-size:var(--slider-label-font-size);flex:none}.value-tooltip{z-index:1;box-sizing:border-box;padding:var(--slider-tooltip-padding);color:var(--highcontrast-slider-tooltip-color,var(--slider-tooltip-color));background:var(--highcontrast-slider-tooltip-background,var(--slider-tooltip-background));border:var(--slider-tooltip-border-width) solid var(--highcontrast-slider-tooltip-border-color,var(--slider-tooltip-border-color));border-radius:var(--slider-tooltip-border-radius);font-size:var(--luzmo-slider-tooltip-font-size,var(--slider-tooltip-font-size));white-space:nowrap;visibility:hidden;opacity:0;transition:opacity var(--luzmo-animation-duration), visibility 0s linear var(--luzmo-animation-duration);pointer-events:none;line-height:1;position:absolute;inset-block-end:calc(50% + var(--slider-handle-visual-size) / 2 + var(--slider-tooltip-gap));inset-inline-start:50%;transform:translate(-50%)}:host(:dir(rtl)) .value-tooltip{transform:translate(50%)}.handle:hover .value-tooltip,.handle.tooltip-open .value-tooltip{visibility:visible;opacity:1;transition-delay:0s}:host([disabled]) .value-tooltip{visibility:hidden;opacity:0}luzmo-number-field{inline-size:var(--slider-editable-width);flex:none}.visually-hidden{inline-size:calc(var(--luzmo-spacing-1) / 2);block-size:calc(var(--luzmo-spacing-1) / 2);clip-path:inset(50%);white-space:nowrap;position:absolute;overflow:hidden}:host([readonly]:not([disabled])) .track,:host([readonly]:not([disabled])) .handle{cursor:default}:host([disabled]) .track,:host([disabled]) .handle{cursor:not-allowed}:host([disabled]) .rail{background:var(--highcontrast-slider-track-color,var(--luzmo-slider-background-color-disabled,var(--slider-track-color-disabled)))}:host([disabled]) .ramp-track{fill:var(--highcontrast-slider-track-color,var(--luzmo-slider-background-color-disabled,var(--slider-track-color-disabled)))}:host([disabled]) .ramp-fill,:host([disabled]) .fill{background:var(--highcontrast-slider-fill-color,var(--slider-fill-color-disabled))}:host([disabled]) .handle:before,:host([disabled]) .handle:hover:before{background:var(--highcontrast-slider-handle-background,var(--luzmo-slider-background-color-disabled-hover,var(--slider-handle-background-disabled)));border-color:var(--highcontrast-slider-handle-border-color,var(--slider-handle-border-color-disabled));box-shadow:none}@media (forced-colors:active){.rail{--highcontrast-slider-track-color:ButtonFace;--highcontrast-slider-track-border-color:ButtonText;border:var(--slider-handle-border-width) solid var(--highcontrast-slider-track-border-color);forced-color-adjust:none}.ramp{--highcontrast-slider-track-color:ButtonText;--highcontrast-slider-fill-color:Highlight;forced-color-adjust:none}.fill{--highcontrast-slider-fill-color:Highlight;forced-color-adjust:none}.tick{--highcontrast-slider-tick-color:ButtonText;forced-color-adjust:none}.handle:before{--highcontrast-slider-handle-background:Canvas;--highcontrast-slider-handle-border-color:ButtonText;forced-color-adjust:none}:host([dragging]) .handle:before{--highcontrast-slider-focus-color:Highlight}.handle:has(input:focus-visible):before{--highcontrast-slider-focus-color:Highlight}.value-tooltip{--highcontrast-slider-tooltip-background:Canvas;--highcontrast-slider-tooltip-border-color:CanvasText;--highcontrast-slider-tooltip-color:CanvasText;forced-color-adjust:none}:host([disabled]) .rail,:host([disabled]) .ramp-track,:host([disabled]) .ramp-fill,:host([disabled]) .tick,:host([disabled]) .fill,:host([disabled]) .handle:before{--highcontrast-slider-disabled-color:GrayText;--highcontrast-slider-track-color:var(--highcontrast-slider-disabled-color);--highcontrast-slider-track-border-color:var(--highcontrast-slider-disabled-color);--highcontrast-slider-fill-color:var(--highcontrast-slider-disabled-color);--highcontrast-slider-tick-color:var(--highcontrast-slider-disabled-color);--highcontrast-slider-handle-background:Canvas;--highcontrast-slider-handle-border-color:var(--highcontrast-slider-disabled-color)}}@media (prefers-reduced-motion:reduce){.handle:before,.value-tooltip{transition:none}}:host{--slider-font-family:var(--luzmo-font-family);--slider-min-inline-size:calc(3 * var(--luzmo-component-height-l));--slider-item-height:var(--luzmo-component-height);--slider-track-height:var(--luzmo-spacing-2);--slider-handle-base-size:calc(var(--luzmo-component-height) + var(--luzmo-spacing-2));--slider-hit-size:var(--luzmo-component-height);--slider-top-to-track:0px;--slider-top-to-handle:0px;--slider-edge-to-handle:0px;--slider-handle-scale:.5;--slider-handle-visual-size:calc(var(--luzmo-slider-handle-size,var(--slider-handle-base-size)) * var(--luzmo-slider-handle-scale,var(--slider-handle-scale)));--slider-track-radius:var(--luzmo-border-radius-full);--slider-track-color:var(--luzmo-border-color);--slider-track-color-disabled:var(--luzmo-background-color-disabled);--slider-fill-color:var(--luzmo-primary);--slider-fill-background:var(--slider-fill-color);--slider-fill-color-disabled:var(--luzmo-disabled-color);--slider-handle-background:var(--luzmo-background-color);--slider-handle-background-hover:var(--luzmo-background-color-hover);--slider-handle-background-disabled:var(--luzmo-background-color);--slider-handle-border-color:var(--luzmo-border-color);--slider-handle-border-color-unfilled:var(--luzmo-primary);--slider-handle-border-color-active:var(--luzmo-primary);--slider-handle-border-color-disabled:var(--luzmo-border-color-disabled);--slider-handle-border-width:var(--luzmo-border-width);--slider-handle-shadow:0 var(--luzmo-spacing-1) var(--luzmo-spacing-2) var(--luzmo-shadow-color);--slider-focus-color:var(--luzmo-primary);--slider-focus-width:var(--luzmo-border-width);--slider-focus-offset:var(--luzmo-border-width);--slider-label-color:var(--luzmo-font-color);--slider-label-font-size:var(--luzmo-font-size-s);--slider-label-gap:var(--luzmo-spacing-3);--slider-ramp-height:var(--luzmo-spacing-4);--slider-tick-color:var(--luzmo-border-color-full);--slider-tick-width:var(--luzmo-border-width);--slider-tick-height:var(--luzmo-spacing-3);--slider-tick-offset:calc(-1 * var(--slider-tick-height) / 2);--slider-tick-label-gap:var(--luzmo-spacing-2);--slider-tick-label-font-size:var(--luzmo-font-size-xs);--slider-tooltip-padding:var(--luzmo-spacing-2);--slider-tooltip-border-radius:calc(var(--luzmo-spacing-2) - var(--luzmo-border-width));--slider-tooltip-background:var(--luzmo-background-color);--slider-tooltip-border-color:var(--luzmo-border-color);--slider-tooltip-border-width:var(--luzmo-border-width);--slider-tooltip-color:var(--luzmo-font-color);--slider-tooltip-font-size:var(--slider-label-font-size);--slider-tooltip-gap:var(--luzmo-spacing-2);--slider-editable-width:calc(3 * var(--luzmo-component-height))}:host([ramp]){--slider-tick-height:calc(var(--slider-ramp-height) + 2 * var(--luzmo-spacing-1))}:host([size=s]){--slider-item-height:var(--luzmo-component-height-s);--slider-track-height:calc(var(--luzmo-spacing-2) - var(--luzmo-border-width));--slider-handle-base-size:var(--luzmo-component-height-s);--slider-hit-size:var(--luzmo-component-height-s);--slider-label-font-size:var(--luzmo-font-size-xs);--slider-ramp-height:var(--luzmo-spacing-3)}:host([size=l]){--slider-item-height:var(--luzmo-component-height-l);--slider-track-height:calc(var(--luzmo-spacing-3) - var(--luzmo-spacing-1));--slider-handle-base-size:var(--luzmo-component-height-l);--slider-hit-size:var(--luzmo-component-height-l);--slider-label-font-size:var(--luzmo-font-size-m);--slider-ramp-height:var(--luzmo-spacing-5)}:host([size=xl]){--slider-item-height:var(--luzmo-component-height-xl);--slider-track-height:calc(var(--luzmo-spacing-3) - var(--luzmo-border-width));--slider-handle-base-size:calc(var(--luzmo-component-height-l) + var(--luzmo-spacing-2));--slider-hit-size:var(--luzmo-component-height-xl);--slider-label-font-size:var(--luzmo-font-size-m);--slider-ramp-height:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-2))}", R = { handleName: "{label} {position}" }, z = 16, B = /* @__PURE__ */ new Set(["filled", "unfilled"]), V = /* @__PURE__ */ new Set(["none", "value"]), H = {
355
+ var z = ":host{min-inline-size:var(--luzmo-slider-min-inline-size,var(--slider-min-inline-size));min-block-size:var(--luzmo-slider-item-height,var(--slider-item-height));color:var(--slider-label-color);font-family:var(--luzmo-slider-font-family,var(--slider-font-family));flex-grow:1;display:block}:host([disabled]){cursor:not-allowed}.handle-slot{display:none}.control-row{align-items:center;gap:var(--slider-label-gap);inline-size:100%;display:flex}.track{min-inline-size:0;block-size:var(--luzmo-slider-item-height,var(--slider-item-height));cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none;flex:1;position:relative}.rail,.fill,.ramp{display:block;position:absolute;inset-block-start:calc(50% + var(--luzmo-slider-top-to-track,var(--slider-top-to-track)));transform:translateY(-50%)}.rail{block-size:var(--luzmo-slider-track-height,var(--slider-track-height));background:var(--highcontrast-slider-track-color,var(--slider-track-color));border-radius:var(--slider-track-radius);inset-inline:0}.fill{z-index:1;block-size:var(--luzmo-slider-track-height,var(--slider-track-height));background:var(--highcontrast-slider-fill-color,var(--luzmo-slider-fill-background,var(--slider-fill-background)));border-radius:var(--slider-track-radius);-webkit-mask-image:linear-gradient(to right, transparent 0, transparent var(--slider-fill-start), currentColor var(--slider-fill-start), currentColor var(--slider-fill-end), transparent var(--slider-fill-end), transparent 100%);mask-image:linear-gradient(to right, transparent 0, transparent var(--slider-fill-start), currentColor var(--slider-fill-start), currentColor var(--slider-fill-end), transparent var(--slider-fill-end), transparent 100%);inset-inline:0}.ramp{block-size:var(--slider-ramp-height);inset-inline:0}:host([ramp]) .rail{display:none}.ramp svg,.ramp-fill{block-size:100%;inline-size:100%;display:block;position:absolute;inset:0}.ramp-track{fill:var(--highcontrast-slider-track-color,var(--slider-track-color))}.ramp-fill{z-index:1;background:var(--highcontrast-slider-fill-color,var(--luzmo-slider-fill-background,var(--slider-fill-background)));clip-path:polygon(0 44%,100% 0,100% 100%,0 56%);-webkit-mask-image:linear-gradient(to right, transparent 0, transparent var(--slider-ramp-fill-start), currentColor var(--slider-ramp-fill-start), currentColor calc(100% - var(--slider-ramp-fill-end)), transparent calc(100% - var(--slider-ramp-fill-end)), transparent 100%);mask-image:linear-gradient(to right, transparent 0, transparent var(--slider-ramp-fill-start), currentColor var(--slider-ramp-fill-start), currentColor calc(100% - var(--slider-ramp-fill-end)), transparent calc(100% - var(--slider-ramp-fill-end)), transparent 100%)}:host(:dir(rtl)) .ramp svg{transform:scaleX(-1)}:host(:dir(rtl)) .fill{-webkit-mask-image:linear-gradient(to left, transparent 0, transparent var(--slider-fill-start), currentColor var(--slider-fill-start), currentColor var(--slider-fill-end), transparent var(--slider-fill-end), transparent 100%);mask-image:linear-gradient(to left, transparent 0, transparent var(--slider-fill-start), currentColor var(--slider-fill-start), currentColor var(--slider-fill-end), transparent var(--slider-fill-end), transparent 100%)}:host(:dir(rtl)) .ramp-fill{clip-path:polygon(0 0,100% 44%,100% 56%,0 100%);-webkit-mask-image:linear-gradient(to left, transparent 0, transparent var(--slider-ramp-fill-start), currentColor var(--slider-ramp-fill-start), currentColor calc(100% - var(--slider-ramp-fill-end)), transparent calc(100% - var(--slider-ramp-fill-end)), transparent 100%);mask-image:linear-gradient(to left, transparent 0, transparent var(--slider-ramp-fill-start), currentColor var(--slider-ramp-fill-start), currentColor calc(100% - var(--slider-ramp-fill-end)), transparent calc(100% - var(--slider-ramp-fill-end)), transparent 100%)}.handle{box-sizing:border-box;inline-size:var(--slider-hit-size);block-size:var(--slider-hit-size);cursor:grab;place-items:center;margin-inline-start:var(--luzmo-slider-edge-to-handle,var(--slider-edge-to-handle));display:grid;position:absolute;inset-block-start:calc(50% + var(--luzmo-slider-top-to-handle,var(--slider-top-to-handle)));transform:translate(-50%,-50%)}:host(:dir(rtl)) .handle{transform:translate(50%,-50%)}.handle:before{box-sizing:border-box;inline-size:var(--slider-handle-visual-size);block-size:var(--slider-handle-visual-size);background:var(--highcontrast-slider-handle-background,var(--slider-handle-color,var(--slider-handle-background)));border:var(--slider-handle-border-width) solid var(--highcontrast-slider-handle-border-color,var(--slider-handle-color,var(--slider-handle-border-color)));box-shadow:var(--slider-handle-shadow);content:\"\";transition:background-color var(--luzmo-animation-duration), border-color var(--luzmo-animation-duration);border-radius:50%}:host([ramp]) .handle:before,:host([variant=unfilled]) .handle:before{border-color:var(--highcontrast-slider-handle-border-color,var(--slider-handle-color,var(--slider-handle-border-color-unfilled)))}.handle:hover:before,:host([dragging]) .handle:before{background:var(--highcontrast-slider-handle-background,var(--slider-handle-color,var(--luzmo-slider-background-color-hover,var(--slider-handle-background-hover))))}:host([dragging]) .handle:before{border-color:var(--highcontrast-slider-focus-color,var(--slider-handle-color,var(--slider-handle-border-color-active)))}:host([dragging]) .handle{cursor:grabbing}.handle:has(input:focus-visible):before{border-color:var(--highcontrast-slider-focus-color,var(--slider-focus-color));outline:var(--slider-focus-width) solid var(--highcontrast-slider-focus-color,var(--slider-focus-color));outline-offset:var(--slider-focus-offset)}.handle input{block-size:100%;inline-size:100%;cursor:inherit;opacity:0;pointer-events:none;margin:0;position:absolute;inset:0}.ticks{z-index:1;pointer-events:none;position:absolute;inset:0}.tick{inline-size:var(--slider-tick-width);block-size:var(--slider-tick-height);background:var(--highcontrast-slider-tick-color,var(--slider-tick-color));position:absolute;inset-block-start:calc(50% + var(--luzmo-slider-top-to-track,var(--slider-top-to-track)) + var(--slider-tick-offset));transform:translate(-50%)}:host(:dir(rtl)) .tick{transform:translate(50%)}.tick-label{color:var(--slider-label-color);font-size:var(--slider-tick-label-font-size);white-space:nowrap;position:absolute;inset-block-start:calc(50% + var(--luzmo-slider-top-to-handle,var(--slider-top-to-handle)) + var(--slider-handle-visual-size) / 2 + var(--slider-tick-label-gap));transform:translate(-50%)}:host(:dir(rtl)) .tick-label{transform:translate(50%)}.value-label{min-inline-size:max-content;color:var(--slider-label-color);font-size:var(--slider-label-font-size);flex:none}.value-tooltip{z-index:1;box-sizing:border-box;padding:var(--slider-tooltip-padding);color:var(--highcontrast-slider-tooltip-color,var(--slider-tooltip-color));background:var(--highcontrast-slider-tooltip-background,var(--slider-tooltip-background));border:var(--slider-tooltip-border-width) solid var(--highcontrast-slider-tooltip-border-color,var(--slider-tooltip-border-color));border-radius:var(--slider-tooltip-border-radius);font-size:var(--luzmo-slider-tooltip-font-size,var(--slider-tooltip-font-size));white-space:nowrap;visibility:hidden;opacity:0;transition:opacity var(--luzmo-animation-duration), visibility 0s linear var(--luzmo-animation-duration);pointer-events:none;line-height:1;position:absolute;inset-block-end:calc(50% + var(--slider-handle-visual-size) / 2 + var(--slider-tooltip-gap));inset-inline-start:50%;transform:translate(-50%)}:host(:dir(rtl)) .value-tooltip{transform:translate(50%)}.handle:hover .value-tooltip,.handle.tooltip-open .value-tooltip{visibility:visible;opacity:1;transition-delay:0s}:host([disabled]) .value-tooltip{visibility:hidden;opacity:0}luzmo-number-field{inline-size:var(--slider-editable-width);flex:none}.visually-hidden{inline-size:calc(var(--luzmo-spacing-1) / 2);block-size:calc(var(--luzmo-spacing-1) / 2);clip-path:inset(50%);white-space:nowrap;position:absolute;overflow:hidden}:host([readonly]:not([disabled])) .track,:host([readonly]:not([disabled])) .handle{cursor:default}:host([disabled]) .track,:host([disabled]) .handle{cursor:not-allowed}:host([disabled]) .rail{background:var(--highcontrast-slider-track-color,var(--luzmo-slider-background-color-disabled,var(--slider-track-color-disabled)))}:host([disabled]) .ramp-track{fill:var(--highcontrast-slider-track-color,var(--luzmo-slider-background-color-disabled,var(--slider-track-color-disabled)))}:host([disabled]) .ramp-fill,:host([disabled]) .fill{background:var(--highcontrast-slider-fill-color,var(--slider-fill-color-disabled))}:host([disabled]) .handle:before,:host([disabled]) .handle:hover:before{background:var(--highcontrast-slider-handle-background,var(--luzmo-slider-background-color-disabled-hover,var(--slider-handle-background-disabled)));border-color:var(--highcontrast-slider-handle-border-color,var(--slider-handle-border-color-disabled));box-shadow:none}@media (forced-colors:active){.rail{--highcontrast-slider-track-color:ButtonFace;--highcontrast-slider-track-border-color:ButtonText;border:var(--slider-handle-border-width) solid var(--highcontrast-slider-track-border-color);forced-color-adjust:none}.ramp{--highcontrast-slider-track-color:ButtonText;--highcontrast-slider-fill-color:Highlight;forced-color-adjust:none}.fill{--highcontrast-slider-fill-color:Highlight;forced-color-adjust:none}.tick{--highcontrast-slider-tick-color:ButtonText;forced-color-adjust:none}.handle:before{--highcontrast-slider-handle-background:Canvas;--highcontrast-slider-handle-border-color:ButtonText;forced-color-adjust:none}:host([dragging]) .handle:before{--highcontrast-slider-focus-color:Highlight}.handle:has(input:focus-visible):before{--highcontrast-slider-focus-color:Highlight}.value-tooltip{--highcontrast-slider-tooltip-background:Canvas;--highcontrast-slider-tooltip-border-color:CanvasText;--highcontrast-slider-tooltip-color:CanvasText;forced-color-adjust:none}:host([disabled]) .rail,:host([disabled]) .ramp-track,:host([disabled]) .ramp-fill,:host([disabled]) .tick,:host([disabled]) .fill,:host([disabled]) .handle:before{--highcontrast-slider-disabled-color:GrayText;--highcontrast-slider-track-color:var(--highcontrast-slider-disabled-color);--highcontrast-slider-track-border-color:var(--highcontrast-slider-disabled-color);--highcontrast-slider-fill-color:var(--highcontrast-slider-disabled-color);--highcontrast-slider-tick-color:var(--highcontrast-slider-disabled-color);--highcontrast-slider-handle-background:Canvas;--highcontrast-slider-handle-border-color:var(--highcontrast-slider-disabled-color)}}@media (prefers-reduced-motion:reduce){.handle:before,.value-tooltip{transition:none}}:host{--slider-font-family:var(--luzmo-font-family);--slider-min-inline-size:calc(3 * var(--luzmo-component-height-l));--slider-item-height:var(--luzmo-component-height);--slider-track-height:var(--luzmo-spacing-2);--slider-handle-base-size:calc(var(--luzmo-component-height) + var(--luzmo-spacing-2));--slider-hit-size:var(--luzmo-component-height);--slider-top-to-track:0px;--slider-top-to-handle:0px;--slider-edge-to-handle:0px;--slider-handle-scale:.5;--slider-handle-visual-size:calc(var(--luzmo-slider-handle-size,var(--slider-handle-base-size)) * var(--luzmo-slider-handle-scale,var(--slider-handle-scale)));--slider-track-radius:var(--luzmo-border-radius-full);--slider-track-color:var(--luzmo-border-color);--slider-track-color-disabled:var(--luzmo-background-color-disabled);--slider-fill-color:var(--luzmo-primary);--slider-fill-background:var(--slider-fill-color);--slider-fill-color-disabled:var(--luzmo-disabled-color);--slider-handle-background:var(--luzmo-background-color);--slider-handle-background-hover:var(--luzmo-background-color-hover);--slider-handle-background-disabled:var(--luzmo-background-color);--slider-handle-border-color:var(--luzmo-border-color);--slider-handle-border-color-unfilled:var(--luzmo-primary);--slider-handle-border-color-active:var(--luzmo-primary);--slider-handle-border-color-disabled:var(--luzmo-border-color-disabled);--slider-handle-border-width:var(--luzmo-border-width);--slider-handle-shadow:0 var(--luzmo-spacing-1) var(--luzmo-spacing-2) var(--luzmo-shadow-color);--slider-focus-color:var(--luzmo-primary);--slider-focus-width:var(--luzmo-border-width);--slider-focus-offset:var(--luzmo-border-width);--slider-label-color:var(--luzmo-font-color);--slider-label-font-size:var(--luzmo-font-size-s);--slider-label-gap:var(--luzmo-spacing-3);--slider-ramp-height:var(--luzmo-spacing-4);--slider-tick-color:var(--luzmo-border-color-full);--slider-tick-width:var(--luzmo-border-width);--slider-tick-height:var(--luzmo-spacing-3);--slider-tick-offset:calc(-1 * var(--slider-tick-height) / 2);--slider-tick-label-gap:var(--luzmo-spacing-2);--slider-tick-label-font-size:var(--luzmo-font-size-xs);--slider-tooltip-padding:var(--luzmo-spacing-2);--slider-tooltip-border-radius:calc(var(--luzmo-spacing-2) - var(--luzmo-border-width));--slider-tooltip-background:var(--luzmo-background-color);--slider-tooltip-border-color:var(--luzmo-border-color);--slider-tooltip-border-width:var(--luzmo-border-width);--slider-tooltip-color:var(--luzmo-font-color);--slider-tooltip-font-size:var(--slider-label-font-size);--slider-tooltip-gap:var(--luzmo-spacing-2);--slider-editable-width:calc(3 * var(--luzmo-component-height))}:host([ramp]){--slider-tick-height:calc(var(--slider-ramp-height) + 2 * var(--luzmo-spacing-1))}:host([size=s]){--slider-item-height:var(--luzmo-component-height-s);--slider-track-height:calc(var(--luzmo-spacing-2) - var(--luzmo-border-width));--slider-handle-base-size:var(--luzmo-component-height-s);--slider-hit-size:var(--luzmo-component-height-s);--slider-label-font-size:var(--luzmo-font-size-xs);--slider-ramp-height:var(--luzmo-spacing-3)}:host([size=l]){--slider-item-height:var(--luzmo-component-height-l);--slider-track-height:calc(var(--luzmo-spacing-3) - var(--luzmo-spacing-1));--slider-handle-base-size:var(--luzmo-component-height-l);--slider-hit-size:var(--luzmo-component-height-l);--slider-label-font-size:var(--luzmo-font-size-m);--slider-ramp-height:var(--luzmo-spacing-5)}:host([size=xl]){--slider-item-height:var(--luzmo-component-height-xl);--slider-track-height:calc(var(--luzmo-spacing-3) - var(--luzmo-border-width));--slider-handle-base-size:calc(var(--luzmo-component-height-l) + var(--luzmo-spacing-2));--slider-hit-size:var(--luzmo-component-height-xl);--slider-label-font-size:var(--luzmo-font-size-m);--slider-ramp-height:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-2))}", B = { handleName: "{label} {position}" }, V = 16, H = /* @__PURE__ */ new Set(["filled", "unfilled"]), U = /* @__PURE__ */ new Set(["none", "value"]), W = {
355
356
  fromAttribute(e) {
356
357
  if (e === null) return;
357
358
  if (e === "" || e === "true") return !0;
@@ -361,18 +362,18 @@ var L = ":host{min-inline-size:var(--luzmo-slider-min-inline-size,var(--slider-m
361
362
  toAttribute(e) {
362
363
  return e === void 0 ? null : e === !0 ? "" : String(e);
363
364
  }
364
- }, U = class extends o(n(r), {
365
+ }, G = class extends c(n(r), {
365
366
  mode: "internal",
366
367
  live: "polite"
367
368
  }) {
368
369
  constructor(...e) {
369
370
  super(...e), this.label = "", this.labels = {}, this._appliedLabel = "", this.applyFocusElementLabel = (e) => {
370
371
  this._appliedLabel = e;
371
- }, this.ramp = !1, this.ticks = !1, this.tickLabels = !1, this.editable = !1, this.hideStepper = !1, this.quiet = !1, this.indeterminate = !1, this.invalid = !1, this.readonly = !1, this.formatOptions = {}, this._languageResolver = new a(this), this._handleController = new A(this, (e) => this._applySingleValue(e), (e) => this._formatHandleValue(e), (e, t) => this._formatHandleLabel(e, t)), this._rawValue = NaN, this._rawMin = 0, this._rawMax = 100, this._rawStep = 1, this._rawTickStep = 0, this._rawVariant = "filled", this._rawLabelVisibility = "none", this._focusedIndex = -1, this._formatterCache = /* @__PURE__ */ new Map(), this._pendingCommits = /* @__PURE__ */ new Set(), this._defaultAriaHandleText = (e, t) => t.format(e), this._defaultAriaValueText = (e) => this._formatValueList([...e.values()]);
372
+ }, this.ramp = !1, this.ticks = !1, this.tickLabels = !1, this.editable = !1, this.hideStepper = !1, this.quiet = !1, this.indeterminate = !1, this.invalid = !1, this.readonly = !1, this.formatOptions = {}, this._languageResolver = new a(this), this._handleController = new M(this, (e) => this._applySingleValue(e), (e) => this._formatHandleValue(e), (e, t) => this._formatHandleLabel(e, t)), this._interaction = new s(this, { value: (e) => e ? this.values[e] : void 0 }), this._rawValue = NaN, this._rawMin = 0, this._rawMax = 100, this._rawStep = 1, this._rawTickStep = 0, this._rawVariant = "filled", this._rawLabelVisibility = "none", this._focusedIndex = -1, this._formatterCache = /* @__PURE__ */ new Map(), this._pendingCommits = /* @__PURE__ */ new Set(), this._defaultAriaHandleText = (e, t) => t.format(e), this._defaultAriaValueText = (e) => this._formatValueList([...e.values()]);
372
373
  }
373
374
  static get styles() {
374
375
  let e = super.styles;
375
- return [...Array.isArray(e) ? e : e ? [e] : [], l(L)];
376
+ return [...Array.isArray(e) ? e : e ? [e] : [], d(z)];
376
377
  }
377
378
  set value(e) {
378
379
  let t = Number.isFinite(e) ? e : NaN;
@@ -411,7 +412,7 @@ var L = ":host{min-inline-size:var(--luzmo-slider-min-inline-size,var(--slider-m
411
412
  return this._rawStep;
412
413
  }
413
414
  set variant(e) {
414
- let t = B.has(e) ? e : "filled";
415
+ let t = H.has(e) ? e : "filled";
415
416
  if (t === this._rawVariant) return;
416
417
  let n = this._rawVariant;
417
418
  this._rawVariant = t, this.requestUpdate("variant", n);
@@ -420,7 +421,7 @@ var L = ":host{min-inline-size:var(--luzmo-slider-min-inline-size,var(--slider-m
420
421
  return this._rawVariant;
421
422
  }
422
423
  set labelVisibility(e) {
423
- let t = V.has(e) ? e : "none";
424
+ let t = U.has(e) ? e : "none";
424
425
  if (t === this._rawLabelVisibility) return;
425
426
  let n = this._rawLabelVisibility;
426
427
  this._rawLabelVisibility = t, this.requestUpdate("labelVisibility", n);
@@ -442,7 +443,7 @@ var L = ":host{min-inline-size:var(--luzmo-slider-min-inline-size,var(--slider-m
442
443
  this._normalization = e, this.requestUpdate("normalization", t);
443
444
  }
444
445
  get normalization() {
445
- return this._normalization ?? v;
446
+ return this._normalization ?? b;
446
447
  }
447
448
  set getAriaHandleText(e) {
448
449
  let t = this.getAriaHandleText;
@@ -469,7 +470,7 @@ var L = ":host{min-inline-size:var(--luzmo-slider-min-inline-size,var(--slider-m
469
470
  }
470
471
  _normalizeRawValue() {
471
472
  if (!Number.isFinite(this._rawValue)) return;
472
- let e = this._rawValue, t = w(this._rawValue, this.min, this.max, this.step);
473
+ let e = this._rawValue, t = E(this._rawValue, this.min, this.max, this.step);
473
474
  Object.is(t, this._rawValue) || (this._rawValue = t, this.requestUpdate("value", e));
474
475
  }
475
476
  _formatHandleValue(e) {
@@ -480,7 +481,7 @@ var L = ":host{min-inline-size:var(--luzmo-slider-min-inline-size,var(--slider-m
480
481
  if (e.label) return e.label;
481
482
  if (e.name) return e.name;
482
483
  let n = this.label || this._appliedLabel, r = this._numberFormatter({ useGrouping: !1 }).format(t + 1);
483
- return n ? y(this.labels.handleName ?? R.handleName, {
484
+ return n ? x(this.labels.handleName ?? B.handleName, {
484
485
  label: n,
485
486
  position: r
486
487
  }) : r;
@@ -494,21 +495,21 @@ var L = ":host{min-inline-size:var(--luzmo-slider-min-inline-size,var(--slider-m
494
495
  let n = JSON.stringify(e ?? {}), r = this._formatterCache.get(n);
495
496
  if (r) return r;
496
497
  let i = this._createNumberFormatter(t, e ?? {});
497
- return this._formatterCache.size >= z && this._formatterCache.clear(), this._formatterCache.set(n, i), i;
498
+ return this._formatterCache.size >= V && this._formatterCache.clear(), this._formatterCache.set(n, i), i;
498
499
  }
499
500
  _withDefaultPrecision(e, ...t) {
500
501
  return e.style !== void 0 || e.minimumFractionDigits !== void 0 || e.maximumFractionDigits !== void 0 || e.minimumSignificantDigits !== void 0 || e.maximumSignificantDigits !== void 0 ? e : {
501
502
  ...e,
502
- maximumFractionDigits: Math.min(20, Math.max(...t.map((e) => b(e))))
503
+ maximumFractionDigits: Math.min(20, Math.max(...t.map((e) => S(e))))
503
504
  };
504
505
  }
505
506
  _createNumberFormatter(e, t) {
506
507
  try {
507
- let n = new g(e, t);
508
+ let n = new v(e, t);
508
509
  return n.format(1), n;
509
510
  } catch {
510
511
  let { style: n, unit: r, ...i } = t;
511
- return new g(e, i);
512
+ return new v(e, i);
512
513
  }
513
514
  }
514
515
  _clearNumberFormatterCache() {
@@ -532,7 +533,7 @@ var L = ":host{min-inline-size:var(--luzmo-slider-min-inline-size,var(--slider-m
532
533
  return this.getAriaValueText(this._formattedValues);
533
534
  }
534
535
  handleSlotChange() {
535
- this._handleController.draggingIndex >= 0 && this._endDrag(), this._handleController.activeIndex = 0, this._focusedIndex = -1, this._handleController.invalidate(), this.requestUpdate();
536
+ this._handleController.draggingIndex >= 0 && this._endDrag(), this._interaction.end(), this._handleController.activeIndex = 0, this._focusedIndex = -1, this._handleController.invalidate(), this.requestUpdate();
536
537
  }
537
538
  _normalizedPointerValue(e) {
538
539
  let t = e.currentTarget.getBoundingClientRect(), n = t.width ? (e.clientX - t.left) / t.width : 0, r = this.isLTR ? n : 1 - n;
@@ -554,29 +555,39 @@ var L = ":host{min-inline-size:var(--luzmo-slider-min-inline-size,var(--slider-m
554
555
  }
555
556
  _endDrag() {
556
557
  let e = this._handleController.draggingIndex;
557
- return this._releaseCapturedPointer(), this._handleController.draggingIndex = -1, this._dragStartValue = void 0, this.toggleAttribute("dragging", !1), e;
558
+ return this._releaseCapturedPointer(), this._handleController.draggingIndex = -1, this._dragPointerId = void 0, this._dragStartValue = void 0, this.toggleAttribute("dragging", !1), e;
558
559
  }
559
560
  handlePointerDown(e) {
560
561
  if (this.disabled || this.readonly || e.button !== 0) return;
562
+ this._finishDrag(!1);
561
563
  let t = e.currentTarget, n = e.target.closest("[data-handle-index]"), r = this._normalizedPointerValue(e), i = n ? Number(n.dataset.handleIndex) : this._handleController.nearestIndex(r);
562
- this._handleController.activeIndex = i, this._handleController.draggingIndex = i, this._dragStartValue = this._handleController.models[i]?.value, this.toggleAttribute("dragging", !0), this._capturePointer(t, e.pointerId), this.indeterminate = !1, this._handleController.setNormalizedValue(i, r) && this._handleController.dispatchInput(i), this.requestUpdate();
564
+ this._interaction.start(o(e), this._handleController.models[i]?.name) && (this.disabled || this.readonly ? this._interaction.end() : (this._handleController.activeIndex = i, this._handleController.draggingIndex = i, this._dragPointerId = e.pointerId, this._dragStartValue = this._handleController.models[i]?.value, this.toggleAttribute("dragging", !0), this._capturePointer(t, e.pointerId), this.indeterminate = !1, this._handleController.setNormalizedValue(i, r) && this._handleController.dispatchInput(i), this.requestUpdate()));
565
+ }
566
+ _isDragPointer(e) {
567
+ return this._handleController.draggingIndex >= 0 && e.pointerId === this._dragPointerId;
563
568
  }
564
569
  handlePointerMove(e) {
565
570
  let t = this._handleController.draggingIndex;
566
- t < 0 || this.disabled || this.readonly || this._handleController.setNormalizedValue(t, this._normalizedPointerValue(e)) && (this._handleController.dispatchInput(t), this.requestUpdate());
571
+ !this._isDragPointer(e) || this.disabled || this.readonly || this._handleController.setNormalizedValue(t, this._normalizedPointerValue(e)) && (this._handleController.dispatchInput(t), this.requestUpdate());
567
572
  }
568
- handlePointerUp() {
573
+ handlePointerUp(e) {
574
+ this._isDragPointer(e) && this._finishDrag(!0);
575
+ }
576
+ _finishDrag(e) {
569
577
  if (this._handleController.draggingIndex < 0) return;
570
- let e = this._dragStartValue, t = this._endDrag();
571
- !this.disabled && !this.readonly && (this._handleController.models[t]?.value !== e && this._handleController.dispatchChange(t), this.rangeInputs[t]?.focus({ preventScroll: !0 })), this.requestUpdate();
578
+ let t = this._dragStartValue, n = this._endDrag();
579
+ !this.disabled && !this.readonly && (this._handleController.models[n]?.value !== t && this._handleController.dispatchChange(n), e && this.rangeInputs[n]?.focus({ preventScroll: !0 })), this.requestUpdate(), this._interaction.end();
572
580
  }
573
- handleLostPointerCapture() {
574
- this.handlePointerCancel();
581
+ endInteraction() {
582
+ this._finishDrag(!1), this._interaction.end();
575
583
  }
576
- handlePointerCancel() {
577
- if (this._handleController.draggingIndex < 0) return;
578
- let e = this._dragStartValue, t = this._endDrag();
579
- e !== void 0 && this._handleController.setValue(t, e) && this._handleController.dispatchInput(t), this.requestUpdate();
584
+ handleLostPointerCapture(e) {
585
+ this.handlePointerCancel(e);
586
+ }
587
+ handlePointerCancel(e) {
588
+ if (!this._isDragPointer(e)) return;
589
+ let t = this._dragStartValue, n = this._endDrag();
590
+ t !== void 0 && this._handleController.setValue(n, t) && this._handleController.dispatchInput(n), this.requestUpdate(), this._interaction.cancel();
580
591
  }
581
592
  _applyInputValue(e, t) {
582
593
  Number.isFinite(t) && (this.indeterminate = !1, this._handleController.setValue(e, t) && (this._pendingCommits.add(e), this._handleController.dispatchInput(e)));
@@ -612,7 +623,7 @@ var L = ":host{min-inline-size:var(--luzmo-slider-min-inline-size,var(--slider-m
612
623
  return;
613
624
  }
614
625
  if (e.key === "Escape") {
615
- this._handleController.reset(t) && (e.preventDefault(), e.stopPropagation(), this.requestUpdate());
626
+ this._interaction.endKeyboard(), this._handleController.reset(t) && (e.preventDefault(), e.stopPropagation(), this.requestUpdate());
616
627
  return;
617
628
  }
618
629
  let r = (e) => n.value + n.step * e, i = this.isLTR ? 1 : -1, a;
@@ -643,7 +654,7 @@ var L = ":host{min-inline-size:var(--luzmo-slider-min-inline-size,var(--slider-m
643
654
  break;
644
655
  default: return;
645
656
  }
646
- e.preventDefault(), e.stopPropagation(), this.indeterminate = !1, this._handleController.setValue(t, a) && (this._handleController.dispatchInput(t), this._handleController.dispatchChange(t), this.requestUpdate());
657
+ e.preventDefault(), e.stopPropagation(), this._interaction.keyDown(e.key, n.name) && (this.disabled || this.readonly ? this._interaction.end() : (this.indeterminate = !1, this._handleController.setValue(t, a) && (this._interaction.commit(() => this._handleController.dispatchInput(t), () => this._handleController.dispatchChange(t)), this.requestUpdate())));
647
658
  }
648
659
  handleTrackInput(e) {
649
660
  let t = e.target;
@@ -657,11 +668,15 @@ var L = ":host{min-inline-size:var(--luzmo-slider-min-inline-size,var(--slider-m
657
668
  let t = e.target;
658
669
  this.handleKeyDown(e, Number(t.dataset.handleIndex));
659
670
  }
671
+ handleTrackKeyUp(e) {
672
+ this._interaction.keyUp(e.key);
673
+ }
660
674
  handleTrackFocusIn(e) {
661
675
  let t = e.target, n = Number(t.dataset.handleIndex);
662
676
  this._handleController.activeIndex = n, this._focusedIndex = n;
663
677
  }
664
678
  handleTrackFocusOut(e) {
679
+ this._interaction.endKeyboard();
665
680
  let t = e.target;
666
681
  this._focusedIndex === Number(t.dataset.handleIndex) && (this._focusedIndex = -1);
667
682
  }
@@ -683,15 +698,15 @@ var L = ":host{min-inline-size:var(--luzmo-slider-min-inline-size,var(--slider-m
683
698
  return this.variant !== "unfilled";
684
699
  }
685
700
  _renderTicks() {
686
- if (!this.ticks) return c;
687
- let e = this.tickStep || this.step, t = D(this.min, this.max, e), n = this._numberFormatter(this._withDefaultPrecision(this.formatOptions, e, this.min, this.max));
688
- return N(t, this.min, this.max, n, this.tickLabels);
701
+ if (!this.ticks) return u;
702
+ let e = this.tickStep || this.step, t = k(this.min, this.max, e), n = this._numberFormatter(this._withDefaultPrecision(this.formatOptions, e, this.min, this.max));
703
+ return F(t, this.min, this.max, n, this.tickLabels);
689
704
  }
690
705
  _renderFill(e) {
691
- return !this._hasFill || this.ramp ? c : F(e, this.fillStart);
706
+ return !this._hasFill || this.ramp ? u : L(e, this.fillStart);
692
707
  }
693
708
  render() {
694
- let e = this._handleController.models, t = this.labelVisibility === "value", n = this.editable && e.length === 1 ? e[0] : void 0, r = e.length > 1 || n !== void 0, i = _(e, ({ name: e }) => e, (t, n) => j({
709
+ let e = this._handleController.models, t = this.labelVisibility === "value", n = this.editable && e.length === 1 ? e[0] : void 0, r = e.length > 1 || n !== void 0, i = y(e, ({ name: e }) => e, (t, n) => N({
695
710
  model: t,
696
711
  index: n,
697
712
  total: e.length,
@@ -708,20 +723,20 @@ var L = ":host{min-inline-size:var(--luzmo-slider-min-inline-size,var(--slider-m
708
723
  readonly: this.readonly,
709
724
  disabled: this.disabled
710
725
  }));
711
- return s`
726
+ return l`
712
727
  <slot
713
728
  name="handle"
714
729
  class="handle-slot"
715
730
  @slotchange=${this.handleSlotChange}
716
731
  ></slot>
717
- ${r ? s`<span id="slider-label" class="visually-hidden"
732
+ ${r ? l`<span id="slider-label" class="visually-hidden"
718
733
  >${this.label || this._appliedLabel}</span
719
- >` : c}
734
+ >` : u}
720
735
  <div
721
736
  class="control-row"
722
- role=${p(r ? "group" : void 0)}
723
- aria-labelledby=${p(r ? "slider-label" : void 0)}
724
- aria-describedby=${p(r ? this.helpTextId : void 0)}
737
+ role=${h(r ? "group" : void 0)}
738
+ aria-labelledby=${h(r ? "slider-label" : void 0)}
739
+ aria-describedby=${h(r ? this.helpTextId : void 0)}
725
740
  >
726
741
  <div
727
742
  id="track"
@@ -734,18 +749,19 @@ var L = ":host{min-inline-size:var(--luzmo-slider-min-inline-size,var(--slider-m
734
749
  @input=${this.handleTrackInput}
735
750
  @change=${this.handleTrackChange}
736
751
  @keydown=${this.handleTrackKeyDown}
752
+ @keyup=${this.handleTrackKeyUp}
737
753
  @focusin=${this.handleTrackFocusIn}
738
754
  @focusout=${this.handleTrackFocusOut}
739
755
  @dblclick=${this.handleTrackDoubleClick}
740
756
  >
741
757
  <span class="rail"></span>
742
- ${this.ramp ? I(e, this.fillStart, this._hasFill) : c}
758
+ ${this.ramp ? R(e, this.fillStart, this._hasFill) : u}
743
759
  ${this._renderFill(e)} ${this._renderTicks()} ${i}
744
760
  </div>
745
- ${t ? s`<output class="value-label"
761
+ ${t ? l`<output class="value-label"
746
762
  >${this._combinedValueText}</output
747
- >` : c}
748
- ${n ? M({
763
+ >` : u}
764
+ ${n ? P({
749
765
  model: n,
750
766
  label: this.label || this._appliedLabel,
751
767
  formatOptions: this.formatOptions,
@@ -758,7 +774,7 @@ var L = ":host{min-inline-size:var(--luzmo-slider-min-inline-size,var(--slider-m
758
774
  indeterminate: this.indeterminate,
759
775
  onInput: this.handleNumberInput,
760
776
  onChange: this.handleNumberChange
761
- }) : c}
777
+ }) : u}
762
778
  </div>
763
779
  ${this.renderHelpText(this.invalid)}
764
780
  `;
@@ -767,72 +783,72 @@ var L = ":host{min-inline-size:var(--luzmo-slider-min-inline-size,var(--slider-m
767
783
  super.willUpdate(e), (e.has("value") || e.has("min") || e.has("max") || e.has("step")) && this._normalizeRawValue(), (e.has(i) || e.has("formatOptions")) && this._clearNumberFormatterCache();
768
784
  }
769
785
  updated(e) {
770
- super.updated(e), (e.has("disabled") && this.disabled || e.has("readonly") && this.readonly) && (this._endDrag(), this._pendingCommits.clear());
786
+ super.updated(e), (e.has("disabled") && this.disabled || e.has("readonly") && this.readonly) && (this._endDrag(), this._pendingCommits.clear(), this._interaction.end());
771
787
  }
772
788
  };
773
- t([u({ type: String })], U.prototype, "label", void 0), t([u({ attribute: !1 })], U.prototype, "labels", void 0), t([f()], U.prototype, "_appliedLabel", void 0), t([u({
789
+ t([f({ type: String })], G.prototype, "label", void 0), t([f({ attribute: !1 })], G.prototype, "labels", void 0), t([m()], G.prototype, "_appliedLabel", void 0), t([f({
774
790
  type: Number,
775
791
  reflect: !0
776
- })], U.prototype, "value", null), t([u({
792
+ })], G.prototype, "value", null), t([f({
777
793
  type: Number,
778
794
  reflect: !0
779
- })], U.prototype, "min", null), t([u({
795
+ })], G.prototype, "min", null), t([f({
780
796
  type: Number,
781
797
  reflect: !0
782
- })], U.prototype, "max", null), t([u({
798
+ })], G.prototype, "max", null), t([f({
783
799
  type: Number,
784
800
  reflect: !0
785
- })], U.prototype, "step", null), t([u({
801
+ })], G.prototype, "step", null), t([f({
786
802
  type: Number,
787
803
  reflect: !0,
788
804
  attribute: "default-value"
789
- })], U.prototype, "defaultValue", void 0), t([u({
805
+ })], G.prototype, "defaultValue", void 0), t([f({
790
806
  type: String,
791
807
  reflect: !0
792
- })], U.prototype, "variant", null), t([u({
808
+ })], G.prototype, "variant", null), t([f({
793
809
  type: Boolean,
794
810
  reflect: !0
795
- })], U.prototype, "ramp", void 0), t([u({
811
+ })], G.prototype, "ramp", void 0), t([f({
796
812
  type: Boolean,
797
813
  reflect: !0
798
- })], U.prototype, "ticks", void 0), t([u({
814
+ })], G.prototype, "ticks", void 0), t([f({
799
815
  type: String,
800
816
  reflect: !0,
801
817
  attribute: "label-visibility"
802
- })], U.prototype, "labelVisibility", null), t([u({
818
+ })], G.prototype, "labelVisibility", null), t([f({
803
819
  reflect: !0,
804
820
  attribute: "fill-start",
805
- converter: H
806
- })], U.prototype, "fillStart", void 0), t([u({
821
+ converter: W
822
+ })], G.prototype, "fillStart", void 0), t([f({
807
823
  type: Number,
808
824
  reflect: !0,
809
825
  attribute: "tick-step"
810
- })], U.prototype, "tickStep", null), t([u({
826
+ })], G.prototype, "tickStep", null), t([f({
811
827
  type: Boolean,
812
828
  reflect: !0,
813
829
  attribute: "tick-labels"
814
- })], U.prototype, "tickLabels", void 0), t([u({
830
+ })], G.prototype, "tickLabels", void 0), t([f({
815
831
  type: Boolean,
816
832
  reflect: !0
817
- })], U.prototype, "editable", void 0), t([u({
833
+ })], G.prototype, "editable", void 0), t([f({
818
834
  type: Boolean,
819
835
  reflect: !0,
820
836
  attribute: "hide-stepper"
821
- })], U.prototype, "hideStepper", void 0), t([u({
837
+ })], G.prototype, "hideStepper", void 0), t([f({
822
838
  type: Boolean,
823
839
  reflect: !0
824
- })], U.prototype, "quiet", void 0), t([u({
840
+ })], G.prototype, "quiet", void 0), t([f({
825
841
  type: Boolean,
826
842
  reflect: !0
827
- })], U.prototype, "indeterminate", void 0), t([u({
843
+ })], G.prototype, "indeterminate", void 0), t([f({
828
844
  type: Boolean,
829
845
  reflect: !0
830
- })], U.prototype, "invalid", void 0), t([u({
846
+ })], G.prototype, "invalid", void 0), t([f({
831
847
  type: Boolean,
832
848
  reflect: !0
833
- })], U.prototype, "readonly", void 0), t([u({ attribute: !1 })], U.prototype, "formatOptions", void 0), t([u({ attribute: !1 })], U.prototype, "normalization", null), t([u({ attribute: !1 })], U.prototype, "getAriaHandleText", null), t([u({ attribute: !1 })], U.prototype, "getAriaValueText", null), t([d("input[type=\"range\"]")], U.prototype, "rangeInputs", void 0), t([f()], U.prototype, "_focusedIndex", void 0);
849
+ })], G.prototype, "readonly", void 0), t([f({ attribute: !1 })], G.prototype, "formatOptions", void 0), t([f({ attribute: !1 })], G.prototype, "normalization", null), t([f({ attribute: !1 })], G.prototype, "getAriaHandleText", null), t([f({ attribute: !1 })], G.prototype, "getAriaValueText", null), t([p("input[type=\"range\"]")], G.prototype, "rangeInputs", void 0), t([m()], G.prototype, "_focusedIndex", void 0);
834
850
  // src/components/slider/slider-handle.ts
835
- var W = {
851
+ var K = {
836
852
  fromAttribute(e) {
837
853
  if (e === null) return;
838
854
  if (e === "previous") return e;
@@ -842,7 +858,7 @@ var W = {
842
858
  toAttribute(e) {
843
859
  return e === void 0 ? null : String(e);
844
860
  }
845
- }, G = {
861
+ }, q = {
846
862
  fromAttribute(e) {
847
863
  if (e === null) return;
848
864
  if (e === "next") return e;
@@ -852,7 +868,7 @@ var W = {
852
868
  toAttribute(e) {
853
869
  return e === void 0 ? null : String(e);
854
870
  }
855
- }, K = class extends e {
871
+ }, J = class extends e {
856
872
  constructor(...e) {
857
873
  super(...e), this.name = "", this.label = "", this.value = NaN, this.color = "";
858
874
  }
@@ -861,7 +877,7 @@ var W = {
861
877
  this._normalization = e, this.requestUpdate("normalization", t);
862
878
  }
863
879
  get normalization() {
864
- return this._normalization ?? v;
880
+ return this._normalization ?? b;
865
881
  }
866
882
  #e;
867
883
  attachController(e) {
@@ -877,33 +893,33 @@ var W = {
877
893
  this.#e?.inputForHandle(this)?.focus(e);
878
894
  }
879
895
  render() {
880
- return c;
896
+ return u;
881
897
  }
882
898
  updated(e) {
883
899
  super.updated(e), (e.has("value") || e.has("min") || e.has("max") || e.has("step") || e.has("color") || e.has("name") || e.has("label") || e.has("defaultValue") || e.has("formatOptions") || e.has("normalization") || e.has("getAriaHandleText")) && this.#e?.requestHostUpdate();
884
900
  }
885
901
  };
886
- t([u({
902
+ t([f({
887
903
  type: String,
888
904
  reflect: !0
889
- })], K.prototype, "name", void 0), t([u({ type: String })], K.prototype, "label", void 0), t([u({
905
+ })], J.prototype, "name", void 0), t([f({ type: String })], J.prototype, "label", void 0), t([f({
890
906
  type: Number,
891
907
  reflect: !0
892
- })], K.prototype, "value", void 0), t([u({
908
+ })], J.prototype, "value", void 0), t([f({
893
909
  type: Number,
894
910
  reflect: !0,
895
911
  attribute: "default-value"
896
- })], K.prototype, "defaultValue", void 0), t([u({
912
+ })], J.prototype, "defaultValue", void 0), t([f({
897
913
  reflect: !0,
898
- converter: W
899
- })], K.prototype, "min", void 0), t([u({
914
+ converter: K
915
+ })], J.prototype, "min", void 0), t([f({
900
916
  reflect: !0,
901
- converter: G
902
- })], K.prototype, "max", void 0), t([u({
917
+ converter: q
918
+ })], J.prototype, "max", void 0), t([f({
903
919
  type: Number,
904
920
  reflect: !0
905
- })], K.prototype, "step", void 0), t([u({
921
+ })], J.prototype, "step", void 0), t([f({
906
922
  type: String,
907
923
  reflect: !0
908
- })], K.prototype, "color", void 0), t([u({ attribute: !1 })], K.prototype, "formatOptions", void 0), t([u({ attribute: !1 })], K.prototype, "normalization", null), t([u({ attribute: !1 })], K.prototype, "getAriaHandleText", void 0), typeof customElements < "u" && !customElements.get("luzmo-slider-handle") && customElements.define("luzmo-slider-handle", K), typeof customElements < "u" && !customElements.get("luzmo-slider") && customElements.define("luzmo-slider", U);
909
- export { U as n, R as r, K as t };
924
+ })], J.prototype, "color", void 0), t([f({ attribute: !1 })], J.prototype, "formatOptions", void 0), t([f({ attribute: !1 })], J.prototype, "normalization", null), t([f({ attribute: !1 })], J.prototype, "getAriaHandleText", void 0), typeof customElements < "u" && !customElements.get("luzmo-slider-handle") && customElements.define("luzmo-slider-handle", J), typeof customElements < "u" && !customElements.get("luzmo-slider") && customElements.define("luzmo-slider", G);
925
+ export { G as n, B as r, J as t };