@luzmo/analytics-components-kit 1.0.1-alpha.33 → 1.0.1-alpha.35

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 (74) hide show
  1. package/components/display-settings/index.cjs +1 -1
  2. package/components/display-settings/index.js +2 -2
  3. package/components/display-settings-datetime/index.cjs +1 -1
  4. package/components/display-settings-datetime/index.js +1 -1
  5. package/components/display-settings-numeric/index.cjs +1 -1
  6. package/components/display-settings-numeric/index.js +3 -3
  7. package/components/display-settings-period-over-period/index.cjs +1 -1
  8. package/components/display-settings-period-over-period/index.js +2 -2
  9. package/components/draggable-data-item-level/index.cjs +1 -1
  10. package/components/draggable-data-item-level/index.js +1 -1
  11. package/components/droppable-slot/index.cjs +1 -1
  12. package/components/droppable-slot/index.js +1 -1
  13. package/components/edit-item/index.cjs +1 -1
  14. package/components/edit-item/index.js +2 -2
  15. package/components/edit-option-action-button-group/index.cjs +1 -1
  16. package/components/edit-option-action-button-group/index.js +1 -1
  17. package/components/{edit-option-base-DeQjGX4i.js → edit-option-base-Brji81Gq.js} +1 -1
  18. package/components/{edit-option-base-CSJNbo2E.cjs → edit-option-base-DDvWhumg.cjs} +1 -1
  19. package/components/edit-option-color-picker/index.cjs +17 -18
  20. package/components/edit-option-color-picker/index.js +64 -61
  21. package/components/edit-option-multi-language-field/index.cjs +1 -1
  22. package/components/edit-option-multi-language-field/index.js +2 -2
  23. package/components/edit-option-number-field/index.cjs +1 -1
  24. package/components/edit-option-number-field/index.js +1 -1
  25. package/components/edit-option-picker/index.cjs +1 -1
  26. package/components/edit-option-picker/index.js +3 -3
  27. package/components/edit-option-position-picker/index.cjs +1 -1
  28. package/components/edit-option-position-picker/index.js +2 -2
  29. package/components/edit-option-positions-number-field/index.cjs +1 -1
  30. package/components/edit-option-positions-number-field/index.js +1 -1
  31. package/components/edit-option-radio-button-group/index.cjs +1 -1
  32. package/components/edit-option-radio-button-group/index.js +1 -1
  33. package/components/edit-option-slider/index.cjs +1 -1
  34. package/components/edit-option-slider/index.js +1 -1
  35. package/components/edit-option-switch/index.cjs +1 -1
  36. package/components/edit-option-switch/index.js +1 -1
  37. package/components/edit-option-text-field/index.cjs +1 -1
  38. package/components/edit-option-text-field/index.js +2 -2
  39. package/components/filter-data-item-picker/index.cjs +1 -1
  40. package/components/filter-data-item-picker/index.js +2 -2
  41. package/components/filter-expression-picker/index.cjs +1 -1
  42. package/components/filter-expression-picker/index.js +1 -1
  43. package/components/filter-item/index.cjs +1 -1
  44. package/components/filter-item/index.js +1 -1
  45. package/components/filter-value-picker/index.cjs +1 -1
  46. package/components/filter-value-picker/index.js +1 -1
  47. package/components/filter-value-picker-datetime/index.cjs +7 -7
  48. package/components/filter-value-picker-datetime/index.js +4 -4
  49. package/components/filter-value-picker-hierarchy/index.cjs +1 -1
  50. package/components/filter-value-picker-hierarchy/index.js +2 -2
  51. package/components/filter-value-picker-numeric/index.cjs +1 -1
  52. package/components/filter-value-picker-numeric/index.js +1 -1
  53. package/components/{index-BOqSYlku.cjs → index-B888fnYx.cjs} +1 -1
  54. package/components/{index-BtIWR_s6.cjs → index-C0rOztJP.cjs} +1 -1
  55. package/components/index-C2TAa6lH.cjs +192 -0
  56. package/components/{index-Cb5l6iK_.js → index-C8XzR0jl.js} +3 -3
  57. package/components/{index-CTHlwZ9E.cjs → index-CYqSw2_J.cjs} +1 -1
  58. package/components/{index-BwsEWpIS.js → index-Cbm8MFTj.js} +4 -4
  59. package/components/{index-CnRQGFHT.js → index-CbuHBIDB.js} +1 -1
  60. package/components/{index-Bmpw4rGV.js → index-D7LSPBqz.js} +1 -1
  61. package/components/{index-BbuNpVBr.js → index-DE3d0E0P.js} +12 -12
  62. package/components/{index-c2uKLWDt.cjs → index-DbPlCKPI.cjs} +1 -1
  63. package/components/{index-CyWwLYEO.js → index-Dj9-40eZ.js} +3 -3
  64. package/components/{index-Bafc5poK.cjs → index-PfWxaas9.cjs} +4 -4
  65. package/components/{index-BCBLJ-ei.js → index-Rydj3Txs.js} +617 -577
  66. package/components/{index-CeENkpNK.cjs → index-Tx5oQjbt.cjs} +1 -1
  67. package/components/{index-C5m9vRp5.js → index-b3FPYSZk.js} +2 -2
  68. package/components/{index-CSm0I7Gz.cjs → index-cHKqEi5-.cjs} +3 -3
  69. package/components/index.cjs +1 -1
  70. package/components/index.js +1 -1
  71. package/components/{pending-state-DTX7ggyF-BQGaWUEI.cjs → pending-state-DTX7ggyF-B5ihSygL.cjs} +1 -1
  72. package/components/{pending-state-DTX7ggyF-KolnwUB7.js → pending-state-DTX7ggyF-qbk3sPcq.js} +3 -3
  73. package/package.json +1 -1
  74. package/components/index-DF-s3cEL.cjs +0 -192
@@ -19,25 +19,25 @@
19
19
  * */
20
20
  var Co = Object.getPrototypeOf;
21
21
  var $o = Reflect.get;
22
- var oo = (r, o, e) => $o(Co(r), e, o);
23
- import { a as R, z as s, I as D, R as m, m as X } from "../base-D76d76ww-BGkuhs54.js";
24
- import { n as uo } from "../directive-helpers-Cm6gitnu-CeYtlPO9.js";
22
+ var eo = (r, o, e) => $o(Co(r), e, o);
23
+ import { a as R, z as s, I as L, R as m, m as X } from "../base-D76d76ww-BGkuhs54.js";
24
+ import { n as ho } from "../directive-helpers-Cm6gitnu-CeYtlPO9.js";
25
25
  import { m as N, d as C } from "../if-defined-DOaE2coe-CNT45Xcl.js";
26
26
  import { D as J, g as Eo, v as _o, s as Ao } from "../luzmo-icons-DbwDQtuO-QG0fLECn.js";
27
+ import { r as oo } from "../focusable-BxtpnzWp-DJQkL8Zv.js";
27
28
  import { w as Mo, a as Ho } from "../async-directive-BfcqVjDp-BCT-lA4F.js";
28
- import { l as ho, u as mo } from "../streaming-listener-CP-JE6Fa-9MH0gENR.js";
29
+ import { l as mo, u as po } from "../streaming-listener-CP-JE6Fa-9MH0gENR.js";
29
30
  import { i as Po } from "../text-field-BIADXoLC-B9oE05VF.js";
30
- import { p as Ro, d as Fo, a as To } from "../index-BCBLJ-ei.js";
31
- import { r as po } from "../focusable-BxtpnzWp-DJQkL8Zv.js";
31
+ import { p as Ro, d as Fo, a as To } from "../index-Rydj3Txs.js";
32
32
  import "../index-CskV_bXp.js";
33
33
  import "../index-CTVNGPeT.js";
34
- import { o as eo } from "../when-CDK1Tt5Y-C6ViXC43.js";
34
+ import { o as ro } from "../when-CDK1Tt5Y-C6ViXC43.js";
35
35
  import { a as Bo } from "../observe-slot-text-BPfIQQtz-v6B-1BYh.js";
36
36
  import { m as Io } from "../roving-tabindex-DOg4z6ZU-dufnVmvL.js";
37
- import "../index-Cb5l6iK_.js";
37
+ import "../index-C8XzR0jl.js";
38
38
  import { x as No, n as F } from "../property-CxtZroGf.js";
39
39
  import { e as Uo } from "../query-Ddbd72Um.js";
40
- import { L as Do } from "../edit-option-base-DeQjGX4i.js";
40
+ import { L as Do } from "../edit-option-base-Brji81Gq.js";
41
41
  const So = () => {
42
42
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
43
43
  const r = document.createElement("style");
@@ -68,7 +68,7 @@ var Lo = Object.defineProperty, go = (r, o, e, t) => {
68
68
  (a = r[i]) && (l = a(o, e, l) || l);
69
69
  return l && Lo(o, e, l), l;
70
70
  };
71
- const bo = class extends D {
71
+ const bo = class extends L {
72
72
  constructor() {
73
73
  super(...arguments), this.open = !1, this.color = "rgba(255, 0, 0, 0.5)";
74
74
  }
@@ -152,7 +152,7 @@ var Ko = Object.defineProperty, W = (r, o, e, t) => {
152
152
  (a = r[i]) && (l = a(o, e, l) || l);
153
153
  return l && Ko(o, e, l), l;
154
154
  };
155
- const fo = class extends D {
155
+ const fo = class extends L {
156
156
  constructor() {
157
157
  super(...arguments), this.disabled = !1, this.focused = !1, this.open = !1, this.color = "rgba(255, 0, 0, 0.5)";
158
158
  }
@@ -176,23 +176,23 @@ const fo = class extends D {
176
176
  }
177
177
  };
178
178
  fo.styles = R(qo);
179
- let O = fo;
179
+ let D = fo;
180
180
  W([
181
181
  s({ type: Boolean, reflect: !0 })
182
- ], O.prototype, "disabled");
182
+ ], D.prototype, "disabled");
183
183
  W([
184
184
  s({ type: Boolean, reflect: !0 })
185
- ], O.prototype, "focused");
185
+ ], D.prototype, "focused");
186
186
  W([
187
187
  s({ type: Boolean, reflect: !0 })
188
- ], O.prototype, "open");
188
+ ], D.prototype, "open");
189
189
  W([
190
190
  s({ type: String })
191
- ], O.prototype, "color");
192
- customElements.get("luzmo-color-handle") || customElements.define("luzmo-color-handle", O);
191
+ ], D.prototype, "color");
192
+ customElements.get("luzmo-color-handle") || customElements.define("luzmo-color-handle", D);
193
193
  const Vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
194
194
  __proto__: null,
195
- LuzmoColorHandle: O
195
+ LuzmoColorHandle: D
196
196
  }, Symbol.toStringTag, { value: "Module" }));
197
197
  /*! * Lucero - The design system for Luzmo.
198
198
  *
@@ -241,7 +241,7 @@ function Yo(r, o, e) {
241
241
  b: p(e, 255) * 255
242
242
  };
243
243
  }
244
- function ro(r, o, e) {
244
+ function to(r, o, e) {
245
245
  r = p(r, 255), o = p(o, 255), e = p(e, 255);
246
246
  const t = Math.max(r, o, e), l = Math.min(r, o, e);
247
247
  let i = 0, a = 0;
@@ -278,7 +278,7 @@ function Zo(r, o, e) {
278
278
  }
279
279
  return { r: t * 255, g: l * 255, b: i * 255 };
280
280
  }
281
- function to(r, o, e) {
281
+ function lo(r, o, e) {
282
282
  r = p(r, 255), o = p(o, 255), e = p(e, 255);
283
283
  const t = Math.max(r, o, e), l = Math.min(r, o, e);
284
284
  let i = 0;
@@ -306,7 +306,7 @@ function Go(r, o, e) {
306
306
  const t = Math.floor(r), l = r - t, i = e * (1 - o), a = e * (1 - l * o), n = e * (1 - (1 - l) * o), c = t % 6, d = [e, a, i, i, n, e][c], b = [n, e, e, a, i, i][c], B = [i, i, n, e, e, a][c];
307
307
  return { r: d * 255, g: b * 255, b: B * 255 };
308
308
  }
309
- function lo(r, o, e, t) {
309
+ function io(r, o, e, t) {
310
310
  const l = [
311
311
  I(Math.round(r).toString(16)),
312
312
  I(Math.round(o).toString(16)),
@@ -327,7 +327,7 @@ function Qo(r, o, e, t) {
327
327
  const l = r / 100, i = o / 100, a = e / 100, n = t / 100, c = 255 * (1 - l) * (1 - n), d = 255 * (1 - i) * (1 - n), b = 255 * (1 - a) * (1 - n);
328
328
  return { r: c, g: d, b };
329
329
  }
330
- function io(r, o, e) {
330
+ function ao(r, o, e) {
331
331
  let t = 1 - r / 255, l = 1 - o / 255, i = 1 - e / 255, a = Math.min(t, l, i);
332
332
  return a === 1 ? (t = 0, l = 0, i = 0) : (t = (t - a) / (1 - a) * 100, l = (l - a) / (1 - a) * 100, i = (i - a) / (1 - a) * 100), a *= 100, {
333
333
  c: Math.round(t),
@@ -339,7 +339,7 @@ function io(r, o, e) {
339
339
  function oe(r) {
340
340
  return Math.round(parseFloat(r) * 255).toString(16);
341
341
  }
342
- function ao(r) {
342
+ function so(r) {
343
343
  return x(r) / 255;
344
344
  }
345
345
  function x(r) {
@@ -548,7 +548,7 @@ function ie(r) {
548
548
  r: x(e[1]),
549
549
  g: x(e[2]),
550
550
  b: x(e[3]),
551
- a: ao(e[4]),
551
+ a: so(e[4]),
552
552
  format: o ? "name" : "hex8"
553
553
  } : (e = w.hex6.exec(r), e ? {
554
554
  r: x(e[1]),
@@ -559,7 +559,7 @@ function ie(r) {
559
559
  r: x(e[1] + e[1]),
560
560
  g: x(e[2] + e[2]),
561
561
  b: x(e[3] + e[3]),
562
- a: ao(e[4] + e[4]),
562
+ a: so(e[4] + e[4]),
563
563
  format: o ? "name" : "hex8"
564
564
  } : (e = w.hex3.exec(r), e ? {
565
565
  r: x(e[1] + e[1]),
@@ -626,7 +626,7 @@ let h = class u {
626
626
  * Returns the object as a HSVA object.
627
627
  */
628
628
  toHsv() {
629
- const o = to(this.r, this.g, this.b);
629
+ const o = lo(this.r, this.g, this.b);
630
630
  return { h: o.h * 360, s: o.s, v: o.v, a: this.a };
631
631
  }
632
632
  /**
@@ -634,14 +634,14 @@ let h = class u {
634
634
  * "hsva(xxx, xxx, xxx, xx)".
635
635
  */
636
636
  toHsvString() {
637
- const o = to(this.r, this.g, this.b), e = Math.round(o.h * 360), t = Math.round(o.s * 100), l = Math.round(o.v * 100);
637
+ const o = lo(this.r, this.g, this.b), e = Math.round(o.h * 360), t = Math.round(o.s * 100), l = Math.round(o.v * 100);
638
638
  return this.a === 1 ? `hsv(${e}, ${t}%, ${l}%)` : `hsva(${e}, ${t}%, ${l}%, ${this.roundA})`;
639
639
  }
640
640
  /**
641
641
  * Returns the object as a HSLA object.
642
642
  */
643
643
  toHsl() {
644
- const o = ro(this.r, this.g, this.b);
644
+ const o = to(this.r, this.g, this.b);
645
645
  return { h: o.h * 360, s: o.s, l: o.l, a: this.a };
646
646
  }
647
647
  /**
@@ -649,7 +649,7 @@ let h = class u {
649
649
  * "hsla(xxx, xxx, xxx, xx)".
650
650
  */
651
651
  toHslString() {
652
- const o = ro(this.r, this.g, this.b), e = Math.round(o.h * 360), t = Math.round(o.s * 100), l = Math.round(o.l * 100);
652
+ const o = to(this.r, this.g, this.b), e = Math.round(o.h * 360), t = Math.round(o.s * 100), l = Math.round(o.l * 100);
653
653
  return this.a === 1 ? `hsl(${e}, ${t}%, ${l}%)` : `hsla(${e}, ${t}%, ${l}%, ${this.roundA})`;
654
654
  }
655
655
  /**
@@ -657,7 +657,7 @@ let h = class u {
657
657
  * @param allow3Char will shorten hex value to 3 char if possible
658
658
  */
659
659
  toHex(o = !1) {
660
- return lo(this.r, this.g, this.b, o);
660
+ return io(this.r, this.g, this.b, o);
661
661
  }
662
662
  /**
663
663
  * Returns the hex value of the color -with a # prefixed.
@@ -727,11 +727,11 @@ let h = class u {
727
727
  }
728
728
  toCmyk() {
729
729
  return {
730
- ...io(this.r, this.g, this.b)
730
+ ...ao(this.r, this.g, this.b)
731
731
  };
732
732
  }
733
733
  toCmykString() {
734
- const { c: o, m: e, y: t, k: l } = io(this.r, this.g, this.b);
734
+ const { c: o, m: e, y: t, k: l } = ao(this.r, this.g, this.b);
735
735
  return `cmyk(${o}, ${e}, ${t}, ${l})`;
736
736
  }
737
737
  /**
@@ -742,7 +742,7 @@ let h = class u {
742
742
  return "transparent";
743
743
  if (this.a < 1)
744
744
  return !1;
745
- const o = "#" + lo(this.r, this.g, this.b, !1);
745
+ const o = "#" + io(this.r, this.g, this.b, !1);
746
746
  for (const [e, t] of Object.entries(Q))
747
747
  if (o === t)
748
748
  return e;
@@ -935,7 +935,7 @@ let h = class u {
935
935
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
936
936
  * SOFTWARE.
937
937
  * */
938
- const so = /^hs[v|l]a?\s?\((\d{1,3}\.?\d*?),?\s?(\d{1,3})/, no = /(^hs[v|l]a?\s?\()\d{1,3}\.?\d*?(,?\s?)\d{1,3}/, co = /(^hs[v|l]a?\()\d{1,3}/, V = (r, o) => o ? r.toHexString() : r.toHex();
938
+ const no = /^hs[v|l]a?\s?\((\d{1,3}\.?\d*?),?\s?(\d{1,3})/, co = /(^hs[v|l]a?\s?\()\d{1,3}\.?\d*?(,?\s?)\d{1,3}/, uo = /(^hs[v|l]a?\()\d{1,3}/, V = (r, o) => o ? r.toHexString() : r.toHex();
939
939
  let xo = class {
940
940
  constructor(o, {
941
941
  applyColorToState: e,
@@ -950,13 +950,13 @@ let xo = class {
950
950
  hsl: (i, a) => {
951
951
  if (this.maintains === "hue") {
952
952
  if (a)
953
- return i.toHslString().replace(co, `$1${this.hue}`);
953
+ return i.toHslString().replace(uo, `$1${this.hue}`);
954
954
  const { s: b, l: B, a: Y } = i.toHsl();
955
955
  return { h: this.hue, s: b, l: B, a: Y };
956
956
  }
957
957
  if (a)
958
958
  return i.toHslString().replace(
959
- no,
959
+ co,
960
960
  `$1${this.hue}$2${this.saturation}`
961
961
  );
962
962
  const { s: n, l: c, a: d } = i.toHsl();
@@ -965,13 +965,13 @@ let xo = class {
965
965
  hsv: (i, a) => {
966
966
  if (this.maintains === "hue") {
967
967
  if (a)
968
- return i.toHsvString().replace(co, `$1${this.hue}`);
968
+ return i.toHsvString().replace(uo, `$1${this.hue}`);
969
969
  const { s: b, v: B, a: Y } = i.toHsv();
970
970
  return { h: this.hue, s: b, v: B, a: Y };
971
971
  }
972
972
  if (a)
973
973
  return i.toHsvString().replace(
974
- no,
974
+ co,
975
975
  `$1${this.hue}$2${this.saturation}`
976
976
  );
977
977
  const { s: n, v: c, a: d } = i.toHsv();
@@ -998,7 +998,7 @@ let xo = class {
998
998
  const { h: i, s: a, v: n, a: c } = this._color.toHsv();
999
999
  let d;
1000
1000
  if (l && t.startsWith("hs")) {
1001
- const b = so.exec(e);
1001
+ const b = no.exec(e);
1002
1002
  if (b !== null) {
1003
1003
  const [, B] = b;
1004
1004
  d = Number(B);
@@ -1012,7 +1012,7 @@ let xo = class {
1012
1012
  setColorMaintainSaturation(o, e, t, l) {
1013
1013
  const { a: i } = this._color.toHsv();
1014
1014
  if (l && t.startsWith("hs")) {
1015
- const a = so.exec(e);
1015
+ const a = no.exec(e);
1016
1016
  if (a !== null) {
1017
1017
  const [, n, c] = a;
1018
1018
  this.hue = Number(n), this.saturation = Number(c);
@@ -1122,9 +1122,9 @@ var ne = Object.defineProperty, ce = Object.getOwnPropertyDescriptor, z = (r, o,
1122
1122
  (a = r[i]) && (l = (t ? a(o, e, l) : a(l)) || l);
1123
1123
  return t && l && ne(o, e, l), l;
1124
1124
  };
1125
- class g extends D {
1125
+ class g extends L {
1126
1126
  constructor() {
1127
- super(...arguments), this.disabled = !1, this.focused = !1, this.labelX = "saturation", this.labelY = "luminosity", this.isLTR = !0, this.languageResolver = new ho(this), this.colorController = new xo(this, {
1127
+ super(...arguments), this.disabled = !1, this.focused = !1, this.labelX = "saturation", this.labelY = "luminosity", this.isLTR = !0, this.languageResolver = new mo(this), this.colorController = new xo(this, {
1128
1128
  extractColorFromState: () => ({
1129
1129
  h: this.hue,
1130
1130
  s: this.x,
@@ -1325,7 +1325,7 @@ class g extends D {
1325
1325
  color=${this.colorController.getHslString()}
1326
1326
  ?disabled=${this.disabled}
1327
1327
  style=${`transform: translate(${(this.isLTR ? this.x : 1 - this.x) * o}px, ${e - this.y * e}px);`}
1328
- ${mo({
1328
+ ${po({
1329
1329
  start: ["pointerdown", this.handlePointerdown],
1330
1330
  streamInside: ["pointermove", this.handlePointermove],
1331
1331
  end: [
@@ -1558,9 +1558,9 @@ var ge = Object.defineProperty, be = Object.getOwnPropertyDescriptor, y = (r, o,
1558
1558
  (a = r[i]) && (l = (t ? a(o, e, l) : a(l)) || l);
1559
1559
  return t && l && ge(o, e, l), l;
1560
1560
  };
1561
- let f = class extends po {
1561
+ let f = class extends oo {
1562
1562
  constructor() {
1563
- super(...arguments), this.disabled = !1, this.focused = !1, this.label = "hue", this.vertical = !1, this.languageResolver = new ho(this), this.colorController = new xo(this, {
1563
+ super(...arguments), this.disabled = !1, this.focused = !1, this.label = "hue", this.vertical = !1, this.languageResolver = new mo(this), this.colorController = new xo(this, {
1564
1564
  /* c8 ignore next 3 */
1565
1565
  applyColorToState: () => {
1566
1566
  if (this.mode === "opacity") {
@@ -1747,7 +1747,7 @@ let f = class extends po {
1747
1747
  color=${this.mode === "opacity" ? this.color : "hsl(" + this.value + ", 100%, 50%)"}
1748
1748
  ?disabled=${this.disabled}
1749
1749
  style=${this.handlePositionStyles}
1750
- ${mo({
1750
+ ${po({
1751
1751
  start: ["pointerdown", this.handlePointerdown],
1752
1752
  streamInside: ["pointermove", this.handlePointermove],
1753
1753
  end: [
@@ -1863,7 +1863,7 @@ var ve = Object.defineProperty, xe = Object.getOwnPropertyDescriptor, E = (r, o,
1863
1863
  (a = r[i]) && (l = (t ? a(o, e, l) : a(l)) || l);
1864
1864
  return t && l && ve(o, e, l), l;
1865
1865
  };
1866
- let $ = class extends X(po, {
1866
+ let $ = class extends X(oo, {
1867
1867
  validSizes: ["xxs", "xs", "s", "m", "l", "xl"],
1868
1868
  noDefaultSize: !0
1869
1869
  }) {
@@ -1950,8 +1950,8 @@ let $ = class extends X(po, {
1950
1950
  )}
1951
1951
  >
1952
1952
  <slot name="image"></slot>
1953
- ${eo(this.disabled, this.renderDisabled)}
1954
- ${eo(this.mixedValue, this.renderMixedValue)}
1953
+ ${ro(this.disabled, this.renderDisabled)}
1954
+ ${ro(this.mixedValue, this.renderMixedValue)}
1955
1955
  </div>
1956
1956
  `;
1957
1957
  }
@@ -2006,7 +2006,7 @@ var we = Object.defineProperty, ke = Object.getOwnPropertyDescriptor, U = (r, o,
2006
2006
  (a = r[i]) && (l = (t ? a(o, e, l) : a(l)) || l);
2007
2007
  return t && l && we(o, e, l), l;
2008
2008
  };
2009
- class T extends X(D, {
2009
+ class T extends X(L, {
2010
2010
  validSizes: ["xs", "s", "m", "l"],
2011
2011
  noDefaultSize: !0
2012
2012
  }) {
@@ -2190,7 +2190,7 @@ var Se = Object.defineProperty, M = (r, o, e, t) => {
2190
2190
  (a = r[i]) && (l = a(o, e, l) || l);
2191
2191
  return l && Se(o, e, l), l;
2192
2192
  };
2193
- const wo = class extends X(D) {
2193
+ const wo = class extends X(oo) {
2194
2194
  constructor() {
2195
2195
  super(...arguments), this.color = "rgb(255, 0, 0)", this.noAlphaChannel = !1, this._alpha = 1, this._rgbColor = "rgb(255, 0, 0)", this._rgbaColor = "rgb(255, 0, 0, 1)", this._previousColor = "rgb(255, 0, 0)";
2196
2196
  }
@@ -2204,6 +2204,9 @@ const wo = class extends X(D) {
2204
2204
  const e = new h(this._rgbColor);
2205
2205
  this._rgbaColor = e.setAlpha(this._alpha).toRgbString(), this.colorFieldElement.value = this._rgbaColor, this.noAlphaChannel || (this.opacitySliderElement.color = this._rgbaColor), this.colorFieldElement.value = this.formatTextField(e), this.swatchElement.color = this._rgbaColor, this._previousColor = this._rgbaColor, this.color = this._rgbaColor, this.dispatchEvent(new CustomEvent("change", { detail: this.color }));
2206
2206
  }
2207
+ get focusElement() {
2208
+ return this.areaElement || this.colorFieldElement || this;
2209
+ }
2207
2210
  handleHueSliderChange(o) {
2208
2211
  o.stopPropagation(), o.preventDefault();
2209
2212
  const e = new h(this._rgbColor).toHsl();
@@ -2252,7 +2255,7 @@ const wo = class extends X(D) {
2252
2255
  render() {
2253
2256
  var o;
2254
2257
  return m`
2255
- <div>
2258
+ <div id="color-menu" tabindex="0">
2256
2259
  <luzmo-color-area
2257
2260
  .size=${this.size}
2258
2261
  @input=${this.handleAreaChange}
@@ -2344,7 +2347,7 @@ M([
2344
2347
  C("luzmo-swatch")
2345
2348
  ], A.prototype, "swatchElement");
2346
2349
  M([
2347
- uo()
2350
+ ho()
2348
2351
  ], A.prototype, "_format");
2349
2352
  customElements.get("luzmo-color-menu") || customElements.define("luzmo-color-menu", A);
2350
2353
  /*! * Lucero - The design system for Luzmo.
@@ -2377,7 +2380,7 @@ var Ae = Object.defineProperty, _ = (r, o, e, t) => {
2377
2380
  (a = r[i]) && (l = a(o, e, l) || l);
2378
2381
  return l && Ae(o, e, l), l;
2379
2382
  };
2380
- const ko = class extends X(D) {
2383
+ const ko = class extends X(L) {
2381
2384
  constructor() {
2382
2385
  super(...arguments), this.color = "rgb(255, 0, 0)", this.open = !1, this.disabled = !1, this.placement = "left-start", this.rounding = "full", this.swatches = [], this.noAlphaChannel = !1, this._renderMenu = !1;
2383
2386
  }
@@ -2388,7 +2391,8 @@ const ko = class extends X(D) {
2388
2391
  this.open = !0;
2389
2392
  }
2390
2393
  handleColorChange() {
2391
- this.color = this.menuElement.color, this.dispatchEvent(
2394
+ const o = this.menuElement.color;
2395
+ this.color = typeof o == "string" ? o : String(o), this.dispatchEvent(
2392
2396
  new Event("change", {
2393
2397
  bubbles: !0,
2394
2398
  composed: !0
@@ -2429,9 +2433,8 @@ const ko = class extends X(D) {
2429
2433
  ></luzmo-swatch>
2430
2434
  <luzmo-overlay
2431
2435
  trigger=${this.disabled ? "" : "trigger@click"}
2432
- type="auto"
2433
2436
  .placement=${this.placement}
2434
- type="page"
2437
+ type="auto"
2435
2438
  >
2436
2439
  <luzmo-popover style="position:relative">
2437
2440
  ${this._renderMenu ? this.renderColorMenu() : m``}
@@ -2473,7 +2476,7 @@ _([
2473
2476
  C("luzmo-overlay")
2474
2477
  ], S.prototype, "overlayElement");
2475
2478
  _([
2476
- uo()
2479
+ ho()
2477
2480
  ], S.prototype, "_renderMenu");
2478
2481
  customElements.get("luzmo-color-picker") || customElements.define("luzmo-color-picker", S);
2479
2482
  var Me = Object.defineProperty, H = (r, o, e, t) => {
@@ -2481,7 +2484,7 @@ var Me = Object.defineProperty, H = (r, o, e, t) => {
2481
2484
  (a = r[i]) && (l = a(o, e, l) || l);
2482
2485
  return l && Me(o, e, l), l;
2483
2486
  };
2484
- const L = class L extends Do {
2487
+ const O = class O extends Do {
2485
2488
  constructor() {
2486
2489
  super(...arguments), this.value = "transparent", this.disabled = !1, this.noAlphaChannel = !1, this.swatches = [], this.rounding = "full", this.shape = "circle", this.placement = "left-start", this.debounce = 50;
2487
2490
  }
@@ -2516,8 +2519,8 @@ const L = class L extends Do {
2516
2519
  `;
2517
2520
  }
2518
2521
  };
2519
- L.styles = [oo(L, L, "styles")];
2520
- let k = L;
2522
+ O.styles = [eo(O, O, "styles")];
2523
+ let k = O;
2521
2524
  H([
2522
2525
  F({ type: String, reflect: !0 })
2523
2526
  ], k.prototype, "value");
@@ -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
- "use strict";var d=Object.getPrototypeOf;var c=Reflect.get;var p=(o,t,n)=>c(d(o),n,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-CeENkpNK.cjs");const l=require("../property-Dlf9S6Jz.cjs"),h=require("../query-D5qWDopr.cjs"),g=require("../edit-option-base-CSJNbo2E.cjs");var m=Object.defineProperty,i=(o,t,n,f)=>{for(var u=void 0,r=o.length-1,s;r>=0;r--)(s=o[r])&&(u=s(t,n,u)||u);return u&&m(t,n,u),u};const a=class a extends g.LuzmoEditOptionBase{constructor(){super(...arguments),this.value={},this.invalid=!1,this.readonly=!1,this.language="en",this.debounce=200}_handleEvent(){this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{var t,n;this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toValue=="function"?this.toValue(((t=this.multiLangFieldElement)==null?void 0:t.value)??{},this.language??"en"):((n=this.multiLangFieldElement)==null?void 0:n.value)??{}}}))},this.debounce??200)}renderController(){const t=typeof this.parseValue=="function"?this.parseValue(this.value,this.language??"en"):this.value;return l.x`
20
+ "use strict";var d=Object.getPrototypeOf;var c=Reflect.get;var p=(o,t,n)=>c(d(o),n,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-Tx5oQjbt.cjs");const l=require("../property-Dlf9S6Jz.cjs"),h=require("../query-D5qWDopr.cjs"),g=require("../edit-option-base-DDvWhumg.cjs");var m=Object.defineProperty,i=(o,t,n,f)=>{for(var u=void 0,r=o.length-1,s;r>=0;r--)(s=o[r])&&(u=s(t,n,u)||u);return u&&m(t,n,u),u};const a=class a extends g.LuzmoEditOptionBase{constructor(){super(...arguments),this.value={},this.invalid=!1,this.readonly=!1,this.language="en",this.debounce=200}_handleEvent(){this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{var t,n;this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toValue=="function"?this.toValue(((t=this.multiLangFieldElement)==null?void 0:t.value)??{},this.language??"en"):((n=this.multiLangFieldElement)==null?void 0:n.value)??{}}}))},this.debounce??200)}renderController(){const t=typeof this.parseValue=="function"?this.parseValue(this.value,this.language??"en"):this.value;return l.x`
21
21
  <luzmo-multi-language-field
22
22
  .value=${t}
23
23
  .language=${this.language??"en"}
@@ -20,10 +20,10 @@
20
20
  var s = Object.getPrototypeOf;
21
21
  var d = Reflect.get;
22
22
  var c = (r, e, u) => d(s(r), u, e);
23
- import "../index-CnRQGFHT.js";
23
+ import "../index-CbuHBIDB.js";
24
24
  import { x as f, n as t } from "../property-CxtZroGf.js";
25
25
  import { e as g } from "../query-Ddbd72Um.js";
26
- import { L as p } from "../edit-option-base-DeQjGX4i.js";
26
+ import { L as p } from "../edit-option-base-Brji81Gq.js";
27
27
  const z = () => {
28
28
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
29
29
  const r = document.createElement("style");
@@ -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
- "use strict";var d=Object.getPrototypeOf;var c=Reflect.get;var p=(n,r,s)=>c(d(n),s,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-CBOAQ3-E.cjs");const t=require("../property-Dlf9S6Jz.cjs"),h=require("../query-D5qWDopr.cjs"),f=require("../edit-option-base-CSJNbo2E.cjs");var m=Object.defineProperty,u=(n,r,s,b)=>{for(var i=void 0,l=n.length-1,a;l>=0;l--)(a=n[l])&&(i=a(r,s,i)||i);return i&&m(r,s,i),i};const o=class o extends f.LuzmoEditOptionBase{constructor(){super(...arguments),this.disabled=!1,this.step=1,this.unit=!1,this.debounce=200}_handleEvent(){this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toValue=="function"?this.toValue(this.numberField.value):this.numberField.value}}))},this.debounce??200)}renderController(){const r=typeof this.parseValue=="function"?this.parseValue(this.value):this.value,s=typeof this.parseValue=="function"?this.parseValue(this.default):this.default;return t.x`
20
+ "use strict";var d=Object.getPrototypeOf;var c=Reflect.get;var p=(n,r,s)=>c(d(n),s,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-CBOAQ3-E.cjs");const t=require("../property-Dlf9S6Jz.cjs"),h=require("../query-D5qWDopr.cjs"),f=require("../edit-option-base-DDvWhumg.cjs");var m=Object.defineProperty,u=(n,r,s,b)=>{for(var i=void 0,l=n.length-1,a;l>=0;l--)(a=n[l])&&(i=a(r,s,i)||i);return i&&m(r,s,i),i};const o=class o extends f.LuzmoEditOptionBase{constructor(){super(...arguments),this.disabled=!1,this.step=1,this.unit=!1,this.debounce=200}_handleEvent(){this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toValue=="function"?this.toValue(this.numberField.value):this.numberField.value}}))},this.debounce??200)}renderController(){const r=typeof this.parseValue=="function"?this.parseValue(this.value):this.value,s=typeof this.parseValue=="function"?this.parseValue(this.default):this.default;return t.x`
21
21
  <luzmo-number-field
22
22
  .value=${r??s??0}
23
23
  .size=${this.size}
@@ -23,7 +23,7 @@ var s = (r, t, u) => d(a(r), u, t);
23
23
  import "../index-Desl7GJ0.js";
24
24
  import { x as f, n as l } from "../property-CxtZroGf.js";
25
25
  import { e as p } from "../query-Ddbd72Um.js";
26
- import { L as b } from "../edit-option-base-DeQjGX4i.js";
26
+ import { L as b } from "../edit-option-base-Brji81Gq.js";
27
27
  const z = () => {
28
28
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
29
29
  const r = document.createElement("style");
@@ -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
- "use strict";var h=Object.getPrototypeOf;var c=Reflect.get;var p=(i,e,l)=>c(h(i),l,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-Bafc5poK.cjs");require("../index-c2uKLWDt.cjs");const s=require("../property-Dlf9S6Jz.cjs"),d=require("../edit-option-base-CSJNbo2E.cjs");var m=Object.defineProperty,a=(i,e,l,f)=>{for(var n=void 0,u=i.length-1,o;u>=0;u--)(o=i[u])&&(n=o(e,l,n)||n);return n&&m(e,l,n),n};const r=class r extends d.LuzmoEditOptionBase{constructor(){super(...arguments),this.values={},this.disabled=!1,this.placement="bottom-end"}_handleEvent(e){this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toValue=="function"?this.toValue(e.detail):e.detail}}))}generateMenuItems(){return s.x`
20
+ "use strict";var h=Object.getPrototypeOf;var c=Reflect.get;var p=(i,e,l)=>c(h(i),l,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-PfWxaas9.cjs");require("../index-DbPlCKPI.cjs");const s=require("../property-Dlf9S6Jz.cjs"),d=require("../edit-option-base-DDvWhumg.cjs");var m=Object.defineProperty,a=(i,e,l,f)=>{for(var n=void 0,u=i.length-1,o;u>=0;u--)(o=i[u])&&(n=o(e,l,n)||n);return n&&m(e,l,n),n};const r=class r extends d.LuzmoEditOptionBase{constructor(){super(...arguments),this.values={},this.disabled=!1,this.placement="bottom-end"}_handleEvent(e){this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toValue=="function"?this.toValue(e.detail):e.detail}}))}generateMenuItems(){return s.x`
21
21
  ${Object.entries(this.values).map(([e,l])=>s.x`
22
22
  <luzmo-menu-item value=${e}> ${l} </luzmo-menu-item>
23
23
  `)}
@@ -20,10 +20,10 @@
20
20
  var z = Object.getPrototypeOf;
21
21
  var d = Reflect.get;
22
22
  var s = (l, o, r) => d(z(l), r, o);
23
- import "../index-Cb5l6iK_.js";
24
- import "../index-BwsEWpIS.js";
23
+ import "../index-C8XzR0jl.js";
24
+ import "../index-Cbm8MFTj.js";
25
25
  import { x as n, n as t } from "../property-CxtZroGf.js";
26
- import { L as f } from "../edit-option-base-DeQjGX4i.js";
26
+ import { L as f } from "../edit-option-base-Brji81Gq.js";
27
27
  const p = () => {
28
28
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
29
29
  const l = document.createElement("style");
@@ -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
- "use strict";var m=Object.getPrototypeOf;var h=Reflect.get;var c=(r,o,i)=>h(m(r),i,o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-CSm0I7Gz.cjs");const e=require("../property-Dlf9S6Jz.cjs"),k=require("../edit-option-base-CSJNbo2E.cjs"),v=":host{height:var(--luzmo-edit-option-position-picker-grid-height, var(--edit-option-position-picker-grid-height));display:flex;align-items:center}.luzmo-edit-option{height:var(--luzmo-edit-option-position-picker-grid-height, var(--edit-option-position-picker-grid-height))}.position-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--luzmo-edit-option-position-picker-grid-gap, var(--edit-option-position-picker-grid-gap));width:var(--luzmo-edit-option-position-picker-grid-width, var(--edit-option-position-picker-grid-width));box-sizing:border-box;border:.0625rem solid var(--luzmo-edit-option-position-picker-grid-border-color, var(--luzmo-border-color));padding:var(--luzmo-edit-option-position-picker-grid-padding, var(--edit-option-position-picker-grid-padding));border-radius:var(--luzmo-edit-option-position-picker-grid-border-radius, var(--edit-option-position-picker-grid-border-radius))}.position-item{width:100%;height:var(--luzmo-edit-option-position-picker-item-height, var(--edit-option-position-picker-item-height));box-sizing:border-box;border:.0625rem solid var(--luzmo-edit-option-position-picker-border-color, var(--luzmo-border-color));border-radius:var(--luzmo-edit-option-position-picker-border-radius, var(--edit-option-position-picker-border-radius));background:var(--luzmo-edit-option-position-picker-background, var(--luzmo-background-color-highlight));transition:background-color var(--luzmo-edit-option-position-picker-animation-duration, var(--luzmo-animation-duration)) ease-in-out;cursor:pointer}.position-item:hover{background-color:var(--luzmo-edit-option-position-picker-background-hover, var(--luzmo-background-color-highlight-down))}.position-item.selected,.position-item.selected:hover,.position-item.selected:active,.position-item.selected:focus{background-color:var(--luzmo-edit-option-position-picker-background-selected, var(--luzmo-primary));transition:background-color var(--luzmo-edit-option-position-picker-selected-animation-duration, 0) ease-in-out}.position-item.position-item-not-allowed{opacity:0}:host{--edit-option-position-picker-grid-height: 7rem;--edit-option-position-picker-grid-width: 7rem;--edit-option-position-picker-border-radius: var(--luzmo-border-radius);--edit-option-position-picker-grid-border-radius: var(--luzmo-border-radius);--edit-option-position-picker-grid-padding: .25rem;--edit-option-position-picker-item-height: 1.75rem;--edit-option-position-picker-grid-gap: .25rem}:host([size=s]){--edit-option-position-picker-grid-height: 5.125rem;--edit-option-position-picker-grid-width: 5.625rem;--edit-option-position-picker-border-radius: var(--luzmo-border-radius);--edit-option-position-picker-grid-border-radius: var( --luzmo-border-radius-s );--edit-option-position-picker-grid-padding: .125rem;--edit-option-position-picker-item-height: 1.5rem;--edit-option-position-picker-grid-gap: .125rem}:host([size=l]){--edit-option-position-picker-grid-height: 8rem;--edit-option-position-picker-grid-width: 8rem;--edit-option-position-picker-border-radius: var(--luzmo-border-radius-l);--edit-option-position-picker-grid-border-radius: var( --luzmo-border-radius-l );--edit-option-position-picker-grid-padding: .3rem;--edit-option-position-picker-item-height: 2rem;--edit-option-position-picker-grid-gap: .25rem}:host([size=xl]){--edit-option-position-picker-grid-height: 9rem;--edit-option-position-picker-grid-width: 9rem;--edit-option-position-picker-border-radius: var(--luzmo-border-radius-xl);--edit-option-position-picker-grid-border-radius: var( --luzmo-border-radius-xl );--edit-option-position-picker-grid-padding: .375rem;--edit-option-position-picker-item-height: 2.25rem;--edit-option-position-picker-grid-gap: .275rem}";var b=Object.defineProperty,n=(r,o,i,s)=>{for(var p=void 0,a=r.length-1,l;a>=0;a--)(l=r[a])&&(p=l(o,i,p)||p);return p&&b(o,i,p),p};const g=["topLeft","top","topRight","left","center","right","bottomLeft","bottom","bottomRight"],u=g.filter(r=>r!=="center"),d=class d extends k.LuzmoEditOptionBase{constructor(){super(...arguments),this.default="topRight",this.positions=u,this.readonly=!1}_handleEvent(){this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this.value}}))}_handleClick(o){var i;(i=this.positions)!=null&&i.includes(o)&&(this.value=o,this._handleEvent())}willUpdate(){this.value=this.value??this.default??"topRight",this.positions=this.positions??u}renderController(){const o=g.map(i=>{var s;return e.x`
20
+ "use strict";var m=Object.getPrototypeOf;var h=Reflect.get;var c=(r,o,i)=>h(m(r),i,o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-cHKqEi5-.cjs");const e=require("../property-Dlf9S6Jz.cjs"),k=require("../edit-option-base-DDvWhumg.cjs"),v=":host{height:var(--luzmo-edit-option-position-picker-grid-height, var(--edit-option-position-picker-grid-height));display:flex;align-items:center}.luzmo-edit-option{height:var(--luzmo-edit-option-position-picker-grid-height, var(--edit-option-position-picker-grid-height))}.position-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--luzmo-edit-option-position-picker-grid-gap, var(--edit-option-position-picker-grid-gap));width:var(--luzmo-edit-option-position-picker-grid-width, var(--edit-option-position-picker-grid-width));box-sizing:border-box;border:.0625rem solid var(--luzmo-edit-option-position-picker-grid-border-color, var(--luzmo-border-color));padding:var(--luzmo-edit-option-position-picker-grid-padding, var(--edit-option-position-picker-grid-padding));border-radius:var(--luzmo-edit-option-position-picker-grid-border-radius, var(--edit-option-position-picker-grid-border-radius))}.position-item{width:100%;height:var(--luzmo-edit-option-position-picker-item-height, var(--edit-option-position-picker-item-height));box-sizing:border-box;border:.0625rem solid var(--luzmo-edit-option-position-picker-border-color, var(--luzmo-border-color));border-radius:var(--luzmo-edit-option-position-picker-border-radius, var(--edit-option-position-picker-border-radius));background:var(--luzmo-edit-option-position-picker-background, var(--luzmo-background-color-highlight));transition:background-color var(--luzmo-edit-option-position-picker-animation-duration, var(--luzmo-animation-duration)) ease-in-out;cursor:pointer}.position-item:hover{background-color:var(--luzmo-edit-option-position-picker-background-hover, var(--luzmo-background-color-highlight-down))}.position-item.selected,.position-item.selected:hover,.position-item.selected:active,.position-item.selected:focus{background-color:var(--luzmo-edit-option-position-picker-background-selected, var(--luzmo-primary));transition:background-color var(--luzmo-edit-option-position-picker-selected-animation-duration, 0) ease-in-out}.position-item.position-item-not-allowed{opacity:0}:host{--edit-option-position-picker-grid-height: 7rem;--edit-option-position-picker-grid-width: 7rem;--edit-option-position-picker-border-radius: var(--luzmo-border-radius);--edit-option-position-picker-grid-border-radius: var(--luzmo-border-radius);--edit-option-position-picker-grid-padding: .25rem;--edit-option-position-picker-item-height: 1.75rem;--edit-option-position-picker-grid-gap: .25rem}:host([size=s]){--edit-option-position-picker-grid-height: 5.125rem;--edit-option-position-picker-grid-width: 5.625rem;--edit-option-position-picker-border-radius: var(--luzmo-border-radius);--edit-option-position-picker-grid-border-radius: var( --luzmo-border-radius-s );--edit-option-position-picker-grid-padding: .125rem;--edit-option-position-picker-item-height: 1.5rem;--edit-option-position-picker-grid-gap: .125rem}:host([size=l]){--edit-option-position-picker-grid-height: 8rem;--edit-option-position-picker-grid-width: 8rem;--edit-option-position-picker-border-radius: var(--luzmo-border-radius-l);--edit-option-position-picker-grid-border-radius: var( --luzmo-border-radius-l );--edit-option-position-picker-grid-padding: .3rem;--edit-option-position-picker-item-height: 2rem;--edit-option-position-picker-grid-gap: .25rem}:host([size=xl]){--edit-option-position-picker-grid-height: 9rem;--edit-option-position-picker-grid-width: 9rem;--edit-option-position-picker-border-radius: var(--luzmo-border-radius-xl);--edit-option-position-picker-grid-border-radius: var( --luzmo-border-radius-xl );--edit-option-position-picker-grid-padding: .375rem;--edit-option-position-picker-item-height: 2.25rem;--edit-option-position-picker-grid-gap: .275rem}";var b=Object.defineProperty,n=(r,o,i,s)=>{for(var p=void 0,a=r.length-1,l;a>=0;a--)(l=r[a])&&(p=l(o,i,p)||p);return p&&b(o,i,p),p};const g=["topLeft","top","topRight","left","center","right","bottomLeft","bottom","bottomRight"],u=g.filter(r=>r!=="center"),d=class d extends k.LuzmoEditOptionBase{constructor(){super(...arguments),this.default="topRight",this.positions=u,this.readonly=!1}_handleEvent(){this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this.value}}))}_handleClick(o){var i;(i=this.positions)!=null&&i.includes(o)&&(this.value=o,this._handleEvent())}willUpdate(){this.value=this.value??this.default??"topRight",this.positions=this.positions??u}renderController(){const o=g.map(i=>{var s;return e.x`
21
21
  <div
22
22
  class="position-item ${(s=this.positions)!=null&&s.includes(i)?"position-item-allowed":"position-item-not-allowed"} ${this.value===i?"selected":""}"
23
23
  @click=${this._handleClick.bind(this,i)}
@@ -20,9 +20,9 @@
20
20
  var z = Object.getPrototypeOf;
21
21
  var h = Reflect.get;
22
22
  var a = (i, r, o) => h(z(i), o, r);
23
- import "../index-BbuNpVBr.js";
23
+ import "../index-DE3d0E0P.js";
24
24
  import { r as f, x as c, n as d } from "../property-CxtZroGf.js";
25
- import { L as v } from "../edit-option-base-DeQjGX4i.js";
25
+ import { L as v } from "../edit-option-base-Brji81Gq.js";
26
26
  const b = () => {
27
27
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
28
28
  const i = document.createElement("style");
@@ -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
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../luzmo-icons-Nyf1P71v.cjs");require("../index-CBOAQ3-E.cjs");const s=require("../property-Dlf9S6Jz.cjs"),$=require("../state-CrfOw8Zp.cjs"),x=require("../edit-option-base-CSJNbo2E.cjs"),S=":host{--edit-option-positions-number-field-container-row-gap: var( --luzmo-spacing-2 );--edit-option-positions-number-field-container-column-gap: var( --luzmo-spacing-2 );--edit-option-positions-number-field-sync-height: calc( var(--luzmo-component-height) * 1.5 )}:host([size=s]){--edit-option-positions-number-field-sync-height: calc( var(--luzmo-component-height-s) * 1.5 )}:host([size=l]){--edit-option-positions-number-field-sync-height: calc( var(--luzmo-component-height-l) * 1.5 )}:host([size=xl]){--edit-option-positions-number-field-sync-height: calc( var(--luzmo-component-height-xl) * 1.5 )}:host{--var: test}.positions-container{max-width:var(--luzmo-edit-option-positions-number-field-container-max-width, var(--edit-option-positions-number-field-container-max-width));display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);row-gap:var(--luzmo-edit-option-positions-number-field-container-row-gap, var(--edit-option-positions-number-field-container-row-gap));column-gap:var(--luzmo-edit-option-positions-number-field-container-column-gap, var(--edit-option-positions-number-field-container-column-gap))}.position,.sync-button{display:flex;align-items:center;justify-content:center}.sync-button{cursor:pointer}.sync-button[position=center].sync{border:var(--luzmo-edit-option-positions-number-field-sync-border-width, var(--luzmo-border-width)) solid var(--luzmo-edit-option-positions-number-field-sync-border-color, var(--luzmo-primary));border-radius:var(--luzmo-edit-option-positions-number-field-sync-border-radius, var(--luzmo-border-radius));height:var(--luzmo-edit-option-positions-number-field-sync-height, var(--edit-option-positions-number-field-sync-height))}.no-sync-center{border:var(--luzmo-edit-option-positions-number-field-no-sync-center-border-width, var(--luzmo-border-width)) solid var(--luzmo-edit-option-positions-number-field-no-sync-center-border-color, var(--luzmo-border-color));border-radius:var(--luzmo-edit-option-positions-number-field-no-sync-center-border-radius, var(--luzmo-border-radius));height:var(--luzmo-edit-option-positions-number-field-sync-height, var(--edit-option-positions-number-field-sync-height));background-color:var(--luzmo-edit-option-positions-number-field-no-sync-center-background-color, var(--luzmo-background-color-highlight))}";var V=Object.defineProperty,a=(f,t,i,n)=>{for(var e=void 0,o=f.length-1,r;o>=0;o--)(r=f[o])&&(e=r(t,i,e)||e);return e&&V(t,i,e),e};class u extends x.LuzmoEditOptionBase{constructor(){super(...arguments),this.canSync=!0,this.invalid=!1,this.readonly=!1,this.debounce=200,this._positions=[["top-left","top","top-right"],["left","center","right"],["bottom-left","bottom","bottom-right"]]}static get styles(){return[s.r(S)]}_calculateSyncedValue(){var n;let t;const i={};return(n=this.positions)==null||n.forEach(e=>{var o,r,l;i[e]=((o=this.values)==null?void 0:o[e])??((l=(r=this.positionConfiguration)==null?void 0:r[e])==null?void 0:l.default)??0,t=typeof t=="number"&&i[e]?Math.min(t,i[e]):i[e]}),t}toggleSync(){if(this.sync=!this.sync,this.sync&&(this.syncedValue=this._calculateSyncedValue(),typeof this.syncedValue=="number")){this.values={...this.values};for(const t of this.positions??[])this.values[t]=this.syncedValue}}_handleEvent(t){const i=t.target.getAttribute("position"),n=t.target.value;let e={};if(!(!i||typeof n!="number")){if(this.canSync&&this.sync&&i==="center"){this.syncedValue=n;for(const o of this.positions??[])e[o]=n}else e={...this.values,[i]:n};this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{var c;const o=Object.keys(this.values??{}),r=Object.keys(e);let l=!0;o.length!==r.length&&(l=!1);for(const d of o)((c=this.values)==null?void 0:c[d])!==e[d]&&(l=!1);l||(this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{values:{...e}}})),this.values=e)},this.debounce??200)}}_renderNumberField(t){var i,n,e,o,r,l,c,d,p,h,m;return(i=this.positions)!=null&&i.includes(t)||t==="center"?this.canSync&&(this.sync&&t!=="center"||!this.sync&&t==="center")?s.x`<div
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../luzmo-icons-Nyf1P71v.cjs");require("../index-CBOAQ3-E.cjs");const s=require("../property-Dlf9S6Jz.cjs"),$=require("../state-CrfOw8Zp.cjs"),x=require("../edit-option-base-DDvWhumg.cjs"),S=":host{--edit-option-positions-number-field-container-row-gap: var( --luzmo-spacing-2 );--edit-option-positions-number-field-container-column-gap: var( --luzmo-spacing-2 );--edit-option-positions-number-field-sync-height: calc( var(--luzmo-component-height) * 1.5 )}:host([size=s]){--edit-option-positions-number-field-sync-height: calc( var(--luzmo-component-height-s) * 1.5 )}:host([size=l]){--edit-option-positions-number-field-sync-height: calc( var(--luzmo-component-height-l) * 1.5 )}:host([size=xl]){--edit-option-positions-number-field-sync-height: calc( var(--luzmo-component-height-xl) * 1.5 )}:host{--var: test}.positions-container{max-width:var(--luzmo-edit-option-positions-number-field-container-max-width, var(--edit-option-positions-number-field-container-max-width));display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);row-gap:var(--luzmo-edit-option-positions-number-field-container-row-gap, var(--edit-option-positions-number-field-container-row-gap));column-gap:var(--luzmo-edit-option-positions-number-field-container-column-gap, var(--edit-option-positions-number-field-container-column-gap))}.position,.sync-button{display:flex;align-items:center;justify-content:center}.sync-button{cursor:pointer}.sync-button[position=center].sync{border:var(--luzmo-edit-option-positions-number-field-sync-border-width, var(--luzmo-border-width)) solid var(--luzmo-edit-option-positions-number-field-sync-border-color, var(--luzmo-primary));border-radius:var(--luzmo-edit-option-positions-number-field-sync-border-radius, var(--luzmo-border-radius));height:var(--luzmo-edit-option-positions-number-field-sync-height, var(--edit-option-positions-number-field-sync-height))}.no-sync-center{border:var(--luzmo-edit-option-positions-number-field-no-sync-center-border-width, var(--luzmo-border-width)) solid var(--luzmo-edit-option-positions-number-field-no-sync-center-border-color, var(--luzmo-border-color));border-radius:var(--luzmo-edit-option-positions-number-field-no-sync-center-border-radius, var(--luzmo-border-radius));height:var(--luzmo-edit-option-positions-number-field-sync-height, var(--edit-option-positions-number-field-sync-height));background-color:var(--luzmo-edit-option-positions-number-field-no-sync-center-background-color, var(--luzmo-background-color-highlight))}";var V=Object.defineProperty,a=(f,t,i,n)=>{for(var e=void 0,o=f.length-1,r;o>=0;o--)(r=f[o])&&(e=r(t,i,e)||e);return e&&V(t,i,e),e};class u extends x.LuzmoEditOptionBase{constructor(){super(...arguments),this.canSync=!0,this.invalid=!1,this.readonly=!1,this.debounce=200,this._positions=[["top-left","top","top-right"],["left","center","right"],["bottom-left","bottom","bottom-right"]]}static get styles(){return[s.r(S)]}_calculateSyncedValue(){var n;let t;const i={};return(n=this.positions)==null||n.forEach(e=>{var o,r,l;i[e]=((o=this.values)==null?void 0:o[e])??((l=(r=this.positionConfiguration)==null?void 0:r[e])==null?void 0:l.default)??0,t=typeof t=="number"&&i[e]?Math.min(t,i[e]):i[e]}),t}toggleSync(){if(this.sync=!this.sync,this.sync&&(this.syncedValue=this._calculateSyncedValue(),typeof this.syncedValue=="number")){this.values={...this.values};for(const t of this.positions??[])this.values[t]=this.syncedValue}}_handleEvent(t){const i=t.target.getAttribute("position"),n=t.target.value;let e={};if(!(!i||typeof n!="number")){if(this.canSync&&this.sync&&i==="center"){this.syncedValue=n;for(const o of this.positions??[])e[o]=n}else e={...this.values,[i]:n};this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{var c;const o=Object.keys(this.values??{}),r=Object.keys(e);let l=!0;o.length!==r.length&&(l=!1);for(const d of o)((c=this.values)==null?void 0:c[d])!==e[d]&&(l=!1);l||(this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{values:{...e}}})),this.values=e)},this.debounce??200)}}_renderNumberField(t){var i,n,e,o,r,l,c,d,p,h,m;return(i=this.positions)!=null&&i.includes(t)||t==="center"?this.canSync&&(this.sync&&t!=="center"||!this.sync&&t==="center")?s.x`<div
21
21
  class="sync-button ${this.sync?"":"sync"}"
22
22
  position=${t}
23
23
  @click=${this.toggleSync}
@@ -21,7 +21,7 @@ import { a3 as k, a4 as S } from "../luzmo-icons-CPucBq6e.js";
21
21
  import "../index-Desl7GJ0.js";
22
22
  import { r as $, x as p, n as m } from "../property-CxtZroGf.js";
23
23
  import { r as C } from "../state-BVYsk_HZ.js";
24
- import { L as V } from "../edit-option-base-DeQjGX4i.js";
24
+ import { L as V } from "../edit-option-base-Brji81Gq.js";
25
25
  const w = () => {
26
26
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
27
27
  const d = document.createElement("style");
@@ -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
- "use strict";var d=Object.getPrototypeOf;var h=Reflect.get;var c=(l,e,t)=>h(d(l),t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-C2PPSv8E.cjs");require("../index-CnpJUw_z.cjs");const a=require("../property-Dlf9S6Jz.cjs"),v=require("../query-D5qWDopr.cjs"),y=require("../edit-option-base-CSJNbo2E.cjs");var f=Object.defineProperty,i=(l,e,t,r)=>{for(var o=void 0,n=l.length-1,p;n>=0;n--)(p=l[n])&&(o=p(e,t,o)||o);return o&&f(e,t,o),o};const u=class u extends y.LuzmoEditOptionBase{constructor(){super(...arguments),this.values={},this.disabled=!1}generateRadioButtons(){const e=Object.entries(this.values).map(([t,r])=>a.x`
20
+ "use strict";var d=Object.getPrototypeOf;var h=Reflect.get;var c=(l,e,t)=>h(d(l),t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-C2PPSv8E.cjs");require("../index-CnpJUw_z.cjs");const a=require("../property-Dlf9S6Jz.cjs"),v=require("../query-D5qWDopr.cjs"),y=require("../edit-option-base-DDvWhumg.cjs");var f=Object.defineProperty,i=(l,e,t,r)=>{for(var o=void 0,n=l.length-1,p;n>=0;n--)(p=l[n])&&(o=p(e,t,o)||o);return o&&f(e,t,o),o};const u=class u extends y.LuzmoEditOptionBase{constructor(){super(...arguments),this.values={},this.disabled=!1}generateRadioButtons(){const e=Object.entries(this.values).map(([t,r])=>a.x`
21
21
  <luzmo-action-button value=${t} ?disabled=${this.disabled}>
22
22
  ${r}
23
23
  </luzmo-action-button>
@@ -24,7 +24,7 @@ import "../index-rQxtPaJl.js";
24
24
  import "../index-BHJH1eGn.js";
25
25
  import { x as m, n as i } from "../property-CxtZroGf.js";
26
26
  import { e as b } from "../query-Ddbd72Um.js";
27
- import { L as g } from "../edit-option-base-DeQjGX4i.js";
27
+ import { L as g } from "../edit-option-base-Brji81Gq.js";
28
28
  const f = () => {
29
29
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
30
30
  const t = document.createElement("style");
@@ -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
- "use strict";var Ve=Object.getPrototypeOf;var Pe=Reflect.get;var Bt=(o,t,i)=>Pe(Ve(o),i,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("../base-D76d76ww-tT6yr8eb.cjs"),_=require("../property-Dlf9S6Jz.cjs"),Ae=require("../edit-option-base-CSJNbo2E.cjs");/*! * Lucero - The design system for Luzmo.
20
+ "use strict";var Ve=Object.getPrototypeOf;var Pe=Reflect.get;var Bt=(o,t,i)=>Pe(Ve(o),i,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("../base-D76d76ww-tT6yr8eb.cjs"),_=require("../property-Dlf9S6Jz.cjs"),Ae=require("../edit-option-base-DDvWhumg.cjs");/*! * Lucero - The design system for Luzmo.
21
21
  *
22
22
  * Copyright © 2025 Luzmo
23
23
  * All rights reserved.
@@ -22,7 +22,7 @@ var At = Reflect.get;
22
22
  var Be = (o, e, i) => At(Vt(o), i, e);
23
23
  import { m as Mt, I as Ot, R as Dt, a as Lt, z as W } from "../base-D76d76ww-BGkuhs54.js";
24
24
  import { x as Ht, n as B } from "../property-CxtZroGf.js";
25
- import { L as jt } from "../edit-option-base-DeQjGX4i.js";
25
+ import { L as jt } from "../edit-option-base-Brji81Gq.js";
26
26
  const Pt = () => {
27
27
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
28
28
  const o = document.createElement("style");