@luzmo/analytics-components-kit 1.0.1-alpha.24 → 1.0.1-alpha.26

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 (82) hide show
  1. package/components/box-plot-options.config-DJz_kt-M.cjs +20 -0
  2. package/components/{box-plot-options.config-RAhd--7J.js → box-plot-options.config-vlz5qeNq.js} +7 -7
  3. package/components/{choropleth-map-options.config-DHQu69ib.js → choropleth-map-options.config-CeKXtnYB.js} +2 -2
  4. package/components/{choropleth-map-options.config-BfiQod-y.cjs → choropleth-map-options.config-CxUOg3pw.cjs} +1 -1
  5. package/components/{circular-gauge-options.config-B8kWlhsc.cjs → circular-gauge-options.config-Cz2TGR6X.cjs} +1 -1
  6. package/components/{circular-gauge-options.config-D7FdVupw.js → circular-gauge-options.config-Kd_WK_w-.js} +6 -6
  7. package/components/{date-filter-options.config-KiuizKhg.js → date-filter-options.config-DBRxlTWy.js} +2 -2
  8. package/components/{donut-chart-options.config-NPwNtLDW.js → donut-chart-options.config-BulUEiaH.js} +37 -18
  9. package/components/donut-chart-options.config-tNpqBZfR.cjs +20 -0
  10. package/components/draggable-data-item-level/index.cjs +4 -4
  11. package/components/draggable-data-item-level/index.js +1 -1
  12. package/components/edit-item/index.cjs +2 -2
  13. package/components/edit-item/index.js +18 -18
  14. package/components/edit-option/helpers/get-value-by-key.d.ts +1 -1
  15. package/components/edit-option/index.cjs +1 -1
  16. package/components/edit-option/index.js +1 -1
  17. package/components/edit-option-multi-language-field/edit-option-multi-language-field.d.ts +2 -2
  18. package/components/edit-option-multi-language-field/index.cjs +2 -2
  19. package/components/edit-option-multi-language-field/index.js +10 -10
  20. package/components/edit-option-number-field/edit-option-number-field.d.ts +2 -2
  21. package/components/edit-option-number-field/index.cjs +3 -3
  22. package/components/edit-option-number-field/index.js +10 -10
  23. package/components/edit-option-picker/edit-option-picker.d.ts +2 -2
  24. package/components/edit-option-picker/index.cjs +6 -6
  25. package/components/edit-option-picker/index.js +10 -10
  26. package/components/edit-option-radio-button-group/edit-option-radio-button-group.d.ts +2 -2
  27. package/components/edit-option-radio-button-group/index.cjs +3 -3
  28. package/components/edit-option-radio-button-group/index.js +16 -16
  29. package/components/edit-option-slider/edit-option-slider.d.ts +2 -2
  30. package/components/edit-option-slider/index.cjs +2 -2
  31. package/components/edit-option-slider/index.js +29 -29
  32. package/components/edit-option-switch/edit-option-switch.d.ts +2 -2
  33. package/components/edit-option-switch/index.cjs +2 -2
  34. package/components/edit-option-switch/index.js +10 -10
  35. package/components/{evolution-number-options.config-D-2-hoge.cjs → evolution-number-options.config-BgIZY4gQ.cjs} +1 -1
  36. package/components/{evolution-number-options.config-FlQ0IH6f.js → evolution-number-options.config-DzkfeoIN.js} +2 -2
  37. package/components/{funnel-chart-options.config-CrlHKd36.js → funnel-chart-options.config-CIOrejfS.js} +23 -22
  38. package/components/funnel-chart-options.config-L_gqlFs2.cjs +20 -0
  39. package/components/{heat-map-options.config-B0FtmOXM.js → heat-map-options.config-BAuSJV3_.js} +4 -4
  40. package/components/{heat-map-options.config-CnBcz-lL.cjs → heat-map-options.config-DsUXxjN0.cjs} +1 -1
  41. package/components/{heat-table-options.config-C0L9ZJHP.js → heat-table-options.config-DSu_18VG.js} +2 -2
  42. package/components/{heat-table-options.config-QMSy8dYT.cjs → heat-table-options.config-DqPL2hIY.cjs} +1 -1
  43. package/components/{hexbin-map-options.config-BraDZx_s.cjs → hexbin-map-options.config-B_KAcDYq.cjs} +1 -1
  44. package/components/{hexbin-map-options.config-BJaPYxgd.js → hexbin-map-options.config-DaaC88d8.js} +2 -2
  45. package/components/{index-5yuxnZFm.js → index-Dn7LyFPv.js} +321 -311
  46. package/components/{index-CpBHyBSr.cjs → index-eEpFkbP8.cjs} +104 -104
  47. package/components/index.cjs +1 -1
  48. package/components/index.js +1 -1
  49. package/components/{marker-map-options.config-DlJhJQFX.js → marker-map-options.config-CYoq89Oz.js} +6 -6
  50. package/components/{marker-map-options.config-DJrnM51M.cjs → marker-map-options.config-_XFv5XWK.cjs} +1 -1
  51. package/components/{pyramid-chart-options.config-senv4pUq.js → pyramid-chart-options.config-CcVMatYx.js} +1 -1
  52. package/components/{regular-table-options.config-CAb4esiC.js → regular-table-options.config-BoLZsBry.js} +17 -17
  53. package/components/regular-table-options.config-DTx3RTnS.cjs +20 -0
  54. package/components/{route-map-options.config-Dcj-usMY.cjs → route-map-options.config-CcQXPmjN.cjs} +1 -1
  55. package/components/{route-map-options.config-BmrbNMnQ.js → route-map-options.config-u0hQqmDh.js} +5 -5
  56. package/components/{slicer-filter-options.config-DcUkjMck.js → slicer-filter-options.config-3JZZcw5C.js} +4 -4
  57. package/components/{slicer-filter-options.config-CC5wUFC3.cjs → slicer-filter-options.config-DNI-XevE.cjs} +1 -1
  58. package/components/{spike-map-options.config-CrccOQVL.cjs → spike-map-options.config-PpPPrsR2.cjs} +1 -1
  59. package/components/{spike-map-options.config-DwUz-EkV.js → spike-map-options.config-pdbV_vwg.js} +2 -2
  60. package/components/{symbol-map-options.config-CKd-phmw.js → symbol-map-options.config-Bj-UuL9m.js} +2 -2
  61. package/components/{symbol-map-options.config-BidCDEaK.cjs → symbol-map-options.config-sdPlHspI.cjs} +1 -1
  62. package/custom-elements.json +25 -25
  63. package/item-definitions/box-plot/box-plot-options.config.d.ts +4 -4
  64. package/item-definitions/choropleth-map/choropleth-map-options.config.d.ts +6 -6
  65. package/item-definitions/circular-gauge/circular-gauge-options.config.d.ts +6 -6
  66. package/item-definitions/donut-chart/donut-chart-options.config.d.ts +35 -13
  67. package/item-definitions/evolution-number/evolution-number-options.config.d.ts +10 -10
  68. package/item-definitions/funnel-chart/funnel-chart-options.config.d.ts +24 -8
  69. package/item-definitions/heat-map/heat-map-options.config.d.ts +4 -4
  70. package/item-definitions/heat-table/heat-table-options.config.d.ts +8 -8
  71. package/item-definitions/hexbin-map/hexbin-map-options.config.d.ts +4 -4
  72. package/item-definitions/marker-map/marker-map-options.config.d.ts +6 -6
  73. package/item-definitions/regular-table/regular-table-options.config.d.ts +6 -6
  74. package/item-definitions/route-map/route-map-options.config.d.ts +6 -6
  75. package/item-definitions/slicer-filter/slicer-filter-options.config.d.ts +10 -10
  76. package/item-definitions/spike-map/spike-map-options.config.d.ts +6 -6
  77. package/item-definitions/symbol-map/symbol-map-options.config.d.ts +4 -4
  78. package/package.json +1 -1
  79. package/components/box-plot-options.config-DNtA8fnn.cjs +0 -20
  80. package/components/donut-chart-options.config-bqcKuyIu.cjs +0 -20
  81. package/components/funnel-chart-options.config-hw_GXs4s.cjs +0 -20
  82. package/components/regular-table-options.config-Ba8dfyVF.cjs +0 -20
@@ -21,54 +21,54 @@ import { h as S } from "./task-Cr9aRIbV.js";
21
21
  import { x as K, k as G, a as R, n as M } from "./property-B2F7x7Cz.js";
22
22
  import { o as D } from "./if-defined-Bv6MRdSW.js";
23
23
  const N = (t, i, o) => {
24
- const e = (n) => {
25
- for (const s of n ?? []) {
26
- if (s.key === t)
27
- return o ? s : s.control;
28
- if (s.children) {
29
- const p = e(s.children);
30
- if (p)
31
- return p;
24
+ const s = (e) => {
25
+ for (const n of e ?? []) {
26
+ if (n.key === t)
27
+ return o ? n : n.control;
28
+ if (n.children) {
29
+ const l = s(n.children);
30
+ if (l)
31
+ return l;
32
32
  }
33
33
  }
34
34
  return null;
35
35
  };
36
36
  if (i && Array.isArray(i))
37
- for (const n of i) {
38
- const s = e(n.children);
39
- if (s)
40
- return s;
37
+ for (const e of i) {
38
+ const n = s(e.children);
39
+ if (n)
40
+ return n;
41
41
  }
42
42
  return null;
43
- }, q = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-font-family));font-size:var(--luzmo-edit-option-font-size, var(--luzmo-font-size))}:host([size=s]){font-size:var(--luzmo-edit-option-font-size-s, var(--luzmo-font-size-s))}:host([size=l]){font-size:var(--luzmo-edit-option-font-size-l, var(--luzmo-font-size-l))}:host([size=xl]){font-size:var(--luzmo-edit-option-font-size-xl, var(--luzmo-font-size-xl))}", w = (t) => {
44
- var o, e, n;
43
+ }, q = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-font-family));font-size:var(--luzmo-edit-option-font-size, var(--luzmo-font-size))}:host([size=s]){font-size:var(--luzmo-edit-option-font-size-s, var(--luzmo-font-size-s))}:host([size=l]){font-size:var(--luzmo-edit-option-font-size-l, var(--luzmo-font-size-l))}:host([size=xl]){font-size:var(--luzmo-edit-option-font-size-xl, var(--luzmo-font-size-xl))}", H = (t) => {
44
+ var o, s, e;
45
45
  let i;
46
46
  return typeof ((o = t == null ? void 0 : t.controlInfo) == null ? void 0 : o.default) == "function" ? i = t.controlInfo.default({
47
47
  options: t.options,
48
48
  slots: t.slots,
49
49
  theme: t.theme
50
- }) : ((e = t.controlInfo) == null ? void 0 : e.default) !== void 0 && ((n = t.controlInfo) == null ? void 0 : n.default) !== null && (i = t.controlInfo.default), i;
51
- }, H = (t) => {
52
- var s, p, $, k, d, l, v, b, u, h, r, a, c, m, f;
50
+ }) : ((s = t.controlInfo) == null ? void 0 : s.default) !== void 0 && ((e = t.controlInfo) == null ? void 0 : e.default) !== null && (i = t.controlInfo.default), i;
51
+ }, O = (t) => {
52
+ var n, l, p, a, h, r, v, $, b, x, c, m, d, f, u;
53
53
  let i;
54
- typeof ((s = t.controlInfo) == null ? void 0 : s.extraLabel) == "function" ? i = t.controlInfo.extraLabel({
54
+ typeof ((n = t.controlInfo) == null ? void 0 : n.extraLabel) == "function" ? i = t.controlInfo.extraLabel({
55
55
  options: t.options,
56
56
  slots: t.slots,
57
57
  theme: t.theme
58
- }) : typeof ((p = t.controlInfo) == null ? void 0 : p.extraLabel) == "string" && (i = t.controlInfo.extraLabel), typeof i == "string" && (i = ((l = (d = (k = ($ = t.translations) == null ? void 0 : $.options) == null ? void 0 : k[t.optionKey]) == null ? void 0 : d.extraLabel) == null ? void 0 : l[i]) ?? i);
58
+ }) : typeof ((l = t.controlInfo) == null ? void 0 : l.extraLabel) == "string" && (i = t.controlInfo.extraLabel), typeof i == "string" && (i = ((r = (h = (a = (p = t.translations) == null ? void 0 : p.options) == null ? void 0 : a[t.optionKey]) == null ? void 0 : h.extraLabel) == null ? void 0 : r[i]) ?? i);
59
59
  let o;
60
60
  typeof ((v = t.controlInfo) == null ? void 0 : v.extraLabelTooltip) == "function" ? i = t.controlInfo.extraLabelTooltip({
61
61
  options: t.options,
62
62
  slots: t.slots,
63
63
  theme: t.theme
64
- }) : typeof ((b = t.controlInfo) == null ? void 0 : b.extraLabelTooltip) == "string" && (o = t.controlInfo.extraLabelTooltip), typeof o == "string" && (i = ((a = (r = (h = (u = t.translations) == null ? void 0 : u.options) == null ? void 0 : h[t.optionKey]) == null ? void 0 : r.extraLabelTooltip) == null ? void 0 : a[o]) ?? o);
65
- let e;
66
- typeof ((c = t.controlInfo) == null ? void 0 : c.extraLabelHasClickAction) == "function" ? e = t.controlInfo.extraLabelHasClickAction({
64
+ }) : typeof (($ = t.controlInfo) == null ? void 0 : $.extraLabelTooltip) == "string" && (o = t.controlInfo.extraLabelTooltip), typeof o == "string" && (i = ((m = (c = (x = (b = t.translations) == null ? void 0 : b.options) == null ? void 0 : x[t.optionKey]) == null ? void 0 : c.extraLabelTooltip) == null ? void 0 : m[o]) ?? o);
65
+ let s;
66
+ typeof ((d = t.controlInfo) == null ? void 0 : d.extraLabelHasClickAction) == "function" ? s = t.controlInfo.extraLabelHasClickAction({
67
67
  options: t.options,
68
68
  slots: t.slots,
69
69
  theme: t.theme
70
- }) : typeof ((m = t.controlInfo) == null ? void 0 : m.extraLabelHasClickAction) == "boolean" && (e = t.controlInfo.extraLabelHasClickAction);
71
- const n = typeof ((f = t.controlInfo) == null ? void 0 : f.extraLabelClickAction) == "function" ? () => t.controlInfo.extraLabelClickAction({
70
+ }) : typeof ((f = t.controlInfo) == null ? void 0 : f.extraLabelHasClickAction) == "boolean" && (s = t.controlInfo.extraLabelHasClickAction);
71
+ const e = typeof ((u = t.controlInfo) == null ? void 0 : u.extraLabelClickAction) == "function" ? () => t.controlInfo.extraLabelClickAction({
72
72
  options: t.options,
73
73
  slots: t.slots,
74
74
  theme: t.theme
@@ -77,337 +77,347 @@ const N = (t, i, o) => {
77
77
  return {
78
78
  extraLabel: i,
79
79
  extraLabelTooltip: o,
80
- extraLabelHasClickAction: e,
81
- extraLabelClickAction: n
80
+ extraLabelHasClickAction: s,
81
+ extraLabelClickAction: e
82
82
  };
83
83
  }, T = (t, i) => {
84
+ var s;
85
+ const o = (t == null ? void 0 : t.options) ?? {};
86
+ if (typeof ((s = t == null ? void 0 : t.controlInfo) == null ? void 0 : s.calculateValue) == "function")
87
+ return t.controlInfo.calculateValue({ options: o });
84
88
  if (i.includes(".")) {
85
- const o = i.split(".");
86
- let e = t;
87
- for (let s = 0; s < o.length - 1; s++)
88
- e = e[o[s]] ?? {};
89
- const n = o.length - 1;
90
- return e[o[n]];
91
- }
92
- return t[i];
93
- }, _ = (t) => (i) => {
94
- const o = { ...t.options };
95
- if (t.optionKey.includes(".")) {
96
- const e = t.optionKey.split(".");
89
+ const e = i.split(".");
97
90
  let n = o;
98
91
  for (let p = 0; p < e.length - 1; p++)
99
- n[e[p]] = n[e[p]] ?? {}, n = n[e[p]];
100
- const s = e.length - 1;
101
- n[e[s]] = i.detail.value;
92
+ n = n[e[p]] ?? {};
93
+ const l = e.length - 1;
94
+ return n[e[l]];
95
+ }
96
+ return o[i];
97
+ }, _ = (t) => (i) => {
98
+ var s, e;
99
+ let o = { ...t.options };
100
+ if (typeof ((s = t == null ? void 0 : t.controlInfo) == null ? void 0 : s.toOptions) == "function")
101
+ o = t.controlInfo.toOptions({
102
+ options: o,
103
+ value: (e = i == null ? void 0 : i.detail) == null ? void 0 : e.value
104
+ });
105
+ else if (t.optionKey.includes(".")) {
106
+ const n = t.optionKey.split(".");
107
+ let l = o;
108
+ for (let a = 0; a < n.length - 1; a++)
109
+ l[n[a]] = l[n[a]] ?? {}, l = l[n[a]];
110
+ const p = n.length - 1;
111
+ l[n[p]] = i.detail.value;
102
112
  } else
103
113
  o[t.optionKey] = i.detail.value;
104
114
  return t.changeCallback(o);
105
115
  }, J = (t) => {
106
- var b, u, h, r, a, c, m, f, x, y, L, I;
107
- const i = ((h = (u = (b = t.translations) == null ? void 0 : b.options) == null ? void 0 : u[t.optionKey]) == null ? void 0 : h.label) ?? ((r = t.controlInfo) == null ? void 0 : r.label) ?? t.optionKey ?? "", o = t.size, e = {};
108
- Object.keys((a = t.controlInfo) == null ? void 0 : a.values).forEach((z) => {
109
- var C, O, A, j, F, P;
110
- e[z] = {
111
- ...(C = t.controlInfo) == null ? void 0 : C.values[z],
112
- label: ((F = (j = (A = (O = t.translations) == null ? void 0 : O.options) == null ? void 0 : A[t.optionKey]) == null ? void 0 : j.enum) == null ? void 0 : F[z]) ?? ((P = t.controlInfo) == null ? void 0 : P.values[z].label)
116
+ var $, b, x, c, m, d, f, u, y, k, L, z;
117
+ const i = ((x = (b = ($ = t.translations) == null ? void 0 : $.options) == null ? void 0 : b[t.optionKey]) == null ? void 0 : x.label) ?? ((c = t.controlInfo) == null ? void 0 : c.label) ?? t.optionKey ?? "", o = t.size, s = {};
118
+ Object.keys((m = t.controlInfo) == null ? void 0 : m.values).forEach((I) => {
119
+ var C, V, w, j, F, P;
120
+ s[I] = {
121
+ ...(C = t.controlInfo) == null ? void 0 : C.values[I],
122
+ label: ((F = (j = (w = (V = t.translations) == null ? void 0 : V.options) == null ? void 0 : w[t.optionKey]) == null ? void 0 : j.enum) == null ? void 0 : F[I]) ?? ((P = t.controlInfo) == null ? void 0 : P.values[I].label)
113
123
  };
114
124
  });
115
- const n = ((f = (m = (c = t.translations) == null ? void 0 : c.options) == null ? void 0 : m[t.optionKey]) == null ? void 0 : f.tooltip) ?? ((x = t.controlInfo) == null ? void 0 : x.tooltip), s = T(t.options, t.optionKey), p = w(t), {
116
- extraLabel: $,
117
- extraLabelTooltip: k,
118
- extraLabelHasClickAction: d,
119
- extraLabelClickAction: l
120
- } = H(t), v = _(t);
125
+ const e = ((u = (f = (d = t.translations) == null ? void 0 : d.options) == null ? void 0 : f[t.optionKey]) == null ? void 0 : u.tooltip) ?? ((y = t.controlInfo) == null ? void 0 : y.tooltip), n = T(t, t.optionKey), l = H(t), {
126
+ extraLabel: p,
127
+ extraLabelTooltip: a,
128
+ extraLabelHasClickAction: h,
129
+ extraLabelClickAction: r
130
+ } = O(t), v = _(t);
121
131
  return K`
122
132
  <luzmo-edit-option-action-button-group
123
133
  .label=${i}
124
- .value=${s}
125
- .values=${e}
126
- .default=${p}
127
- .selects=${(y = t.controlInfo) == null ? void 0 : y.selects}
134
+ .value=${n}
135
+ .values=${s}
136
+ .default=${l}
137
+ .selects=${(k = t.controlInfo) == null ? void 0 : k.selects}
128
138
  .size=${o}
129
- .tooltip=${n}
130
- .extraLabel=${$}
131
- .extraLabelTooltip=${k}
132
- .extraLabelHasClickAction=${d}
133
- @extraLabelClick=${l}
139
+ .tooltip=${e}
140
+ .extraLabel=${p}
141
+ .extraLabelTooltip=${a}
142
+ .extraLabelHasClickAction=${h}
143
+ @extraLabelClick=${r}
134
144
  @option-changed=${v}
135
- .fromOptionValue=${(L = t.controlInfo) == null ? void 0 : L.fromOptionValue}
136
- .toOptionValue=${(I = t.controlInfo) == null ? void 0 : I.toOptionValue}
145
+ .parseValue=${(L = t.controlInfo) == null ? void 0 : L.parseValue}
146
+ .toValue=${(z = t.controlInfo) == null ? void 0 : z.toValue}
137
147
  ></luzmo-edit-option-action-button-group>
138
148
  `;
139
149
  }, Q = (t) => {
140
- var b, u, h, r, a, c, m, f, x, y;
141
- const i = ((h = (u = (b = t.translations) == null ? void 0 : b.options) == null ? void 0 : u[t.optionKey]) == null ? void 0 : h.label) ?? ((r = t.controlInfo) == null ? void 0 : r.label) ?? t.optionKey ?? "", o = T(t.options, t.optionKey), e = t.size, n = ((m = (c = (a = t.translations) == null ? void 0 : a.options) == null ? void 0 : c[t.optionKey]) == null ? void 0 : m.tooltip) ?? ((f = t.controlInfo) == null ? void 0 : f.tooltip), s = w(t), {
142
- extraLabel: p,
143
- extraLabelTooltip: $,
144
- extraLabelHasClickAction: k,
145
- extraLabelClickAction: d
146
- } = H(t), l = _(t);
150
+ var $, b, x, c, m, d, f, u, y, k;
151
+ const i = ((x = (b = ($ = t.translations) == null ? void 0 : $.options) == null ? void 0 : b[t.optionKey]) == null ? void 0 : x.label) ?? ((c = t.controlInfo) == null ? void 0 : c.label) ?? t.optionKey ?? "", o = T(t, t.optionKey), s = t.size, e = ((f = (d = (m = t.translations) == null ? void 0 : m.options) == null ? void 0 : d[t.optionKey]) == null ? void 0 : f.tooltip) ?? ((u = t.controlInfo) == null ? void 0 : u.tooltip), n = H(t), {
152
+ extraLabel: l,
153
+ extraLabelTooltip: p,
154
+ extraLabelHasClickAction: a,
155
+ extraLabelClickAction: h
156
+ } = O(t), r = _(t);
147
157
  return K`
148
158
  <luzmo-edit-option-color-picker
149
- .value=${o ?? s}
159
+ .value=${o ?? n}
150
160
  .label=${i}
151
- .size=${e}
152
- .tooltip=${n}
153
- .extraLabel=${p}
154
- .extraLabelTooltip=${$}
155
- .extraLabelHasClickAction=${k}
161
+ .size=${s}
162
+ .tooltip=${e}
163
+ .extraLabel=${l}
164
+ .extraLabelTooltip=${p}
165
+ .extraLabelHasClickAction=${a}
156
166
  @extraLabelClick=${() => {
157
- if (typeof d == "function") {
158
- const { options: L } = d();
167
+ if (typeof h == "function") {
168
+ const { options: L } = h();
159
169
  return t.changeCallback(L);
160
170
  }
161
171
  }}
162
- @option-changed=${l}
163
- .fromOptionValue=${(x = t.controlInfo) == null ? void 0 : x.fromOptionValue}
164
- .toOptionValue=${(y = t.controlInfo) == null ? void 0 : y.toOptionValue}
172
+ @option-changed=${r}
173
+ .parseValue=${(y = t.controlInfo) == null ? void 0 : y.parseValue}
174
+ .toValue=${(k = t.controlInfo) == null ? void 0 : k.toValue}
165
175
  ></luzmo-edit-option-color-picker>
166
176
  `;
167
177
  }, U = (t) => {
168
- var u, h, r, a, c, m, f, x, y, L, I, z, C, O;
169
- const i = ((r = (h = (u = t.translations) == null ? void 0 : u.options) == null ? void 0 : h[t.optionKey]) == null ? void 0 : r.label) ?? ((a = t.controlInfo) == null ? void 0 : a.label) ?? t.optionKey ?? "", o = T(t.options, t.optionKey) ?? {}, e = ((f = (m = (c = t.translations) == null ? void 0 : c.options) == null ? void 0 : m[t.optionKey]) == null ? void 0 : f.tooltip) ?? ((x = t.controlInfo) == null ? void 0 : x.tooltip), n = t.language ?? "en", s = {};
170
- s[n] = ((I = (L = (y = t.translations) == null ? void 0 : y.options) == null ? void 0 : L[t.optionKey]) == null ? void 0 : I.placeholder) ?? ((z = t.controlInfo) == null ? void 0 : z.placeholder) ?? "";
171
- const p = t.size, $ = w(t), {
172
- extraLabel: k,
173
- extraLabelTooltip: d,
174
- extraLabelHasClickAction: l,
178
+ var b, x, c, m, d, f, u, y, k, L, z, I, C, V;
179
+ const i = ((c = (x = (b = t.translations) == null ? void 0 : b.options) == null ? void 0 : x[t.optionKey]) == null ? void 0 : c.label) ?? ((m = t.controlInfo) == null ? void 0 : m.label) ?? t.optionKey ?? "", o = T(t, t.optionKey) ?? {}, s = ((u = (f = (d = t.translations) == null ? void 0 : d.options) == null ? void 0 : f[t.optionKey]) == null ? void 0 : u.tooltip) ?? ((y = t.controlInfo) == null ? void 0 : y.tooltip), e = t.language ?? "en", n = {};
180
+ n[e] = ((z = (L = (k = t.translations) == null ? void 0 : k.options) == null ? void 0 : L[t.optionKey]) == null ? void 0 : z.placeholder) ?? ((I = t.controlInfo) == null ? void 0 : I.placeholder) ?? "";
181
+ const l = t.size, p = H(t), {
182
+ extraLabel: a,
183
+ extraLabelTooltip: h,
184
+ extraLabelHasClickAction: r,
175
185
  extraLabelClickAction: v
176
- } = H(t), b = _(t);
186
+ } = O(t), $ = _(t);
177
187
  return K`
178
188
  <luzmo-edit-option-multi-language-field
179
189
  .label=${i}
180
- .placeholder=${s}
181
- .value=${o ?? $}
182
- language=${D(n)}
183
- .size=${p}
184
- .tooltip=${e}
185
- .extraLabel=${k}
186
- .extraLabelTooltip=${d}
187
- .extraLabelHasClickAction=${l}
190
+ .placeholder=${n}
191
+ .value=${o ?? p}
192
+ language=${D(e)}
193
+ .size=${l}
194
+ .tooltip=${s}
195
+ .extraLabel=${a}
196
+ .extraLabelTooltip=${h}
197
+ .extraLabelHasClickAction=${r}
188
198
  @extraLabelClick=${v}
189
- @option-changed=${b}
190
- .fromOptionValue=${(C = t.controlInfo) == null ? void 0 : C.fromOptionValue}
191
- .toOptionValue=${(O = t.controlInfo) == null ? void 0 : O.toOptionValue}
199
+ @option-changed=${$}
200
+ .parseValue=${(C = t.controlInfo) == null ? void 0 : C.parseValue}
201
+ .toValue=${(V = t.controlInfo) == null ? void 0 : V.toValue}
192
202
  ></luzmo-edit-option-multi-language-field>
193
203
  `;
194
204
  }, W = (t) => {
195
- var h, r, a, c, m, f, x, y, L, I, z, C, O;
196
- const i = ((a = (r = (h = t.translations) == null ? void 0 : h.options) == null ? void 0 : r[t.optionKey]) == null ? void 0 : a.label) ?? ((c = t.controlInfo) == null ? void 0 : c.label) ?? t.optionKey ?? "", o = (m = t.controlInfo) == null ? void 0 : m.min, e = (f = t.controlInfo) == null ? void 0 : f.max, n = (x = t.controlInfo) == null ? void 0 : x.step, s = T(t.options, t.optionKey), p = ((I = (L = (y = t.translations) == null ? void 0 : y.options) == null ? void 0 : L[t.optionKey]) == null ? void 0 : I.tooltip) ?? ((z = t.controlInfo) == null ? void 0 : z.tooltip), $ = w(t), k = t.size, {
197
- extraLabel: d,
198
- extraLabelTooltip: l,
205
+ var x, c, m, d, f, u, y, k, L, z, I, C, V;
206
+ const i = ((m = (c = (x = t.translations) == null ? void 0 : x.options) == null ? void 0 : c[t.optionKey]) == null ? void 0 : m.label) ?? ((d = t.controlInfo) == null ? void 0 : d.label) ?? t.optionKey ?? "", o = (f = t.controlInfo) == null ? void 0 : f.min, s = (u = t.controlInfo) == null ? void 0 : u.max, e = (y = t.controlInfo) == null ? void 0 : y.step, n = T(t, t.optionKey), l = ((z = (L = (k = t.translations) == null ? void 0 : k.options) == null ? void 0 : L[t.optionKey]) == null ? void 0 : z.tooltip) ?? ((I = t.controlInfo) == null ? void 0 : I.tooltip), p = H(t), a = t.size, {
207
+ extraLabel: h,
208
+ extraLabelTooltip: r,
199
209
  extraLabelHasClickAction: v,
200
- extraLabelClickAction: b
201
- } = H(t), u = _(t);
210
+ extraLabelClickAction: $
211
+ } = O(t), b = _(t);
202
212
  return K`
203
213
  <luzmo-edit-option-number-field
204
- .value=${s}
205
- .default=${$}
214
+ .value=${n}
215
+ .default=${p}
206
216
  .min=${o}
207
- .max=${e}
208
- .step=${n}
217
+ .max=${s}
218
+ .step=${e}
209
219
  .label=${i}
210
- .size=${k}
211
- .tooltip=${p}
212
- .extraLabel=${d}
213
- .extraLabelTooltip=${l}
220
+ .size=${a}
221
+ .tooltip=${l}
222
+ .extraLabel=${h}
223
+ .extraLabelTooltip=${r}
214
224
  .extraLabelHasClickAction=${v}
215
- @extraLabelClick=${b}
216
- @option-changed=${u}
217
- .fromOptionValue=${(C = t.controlInfo) == null ? void 0 : C.fromOptionValue}
218
- .toOptionValue=${(O = t.controlInfo) == null ? void 0 : O.toOptionValue}
225
+ @extraLabelClick=${$}
226
+ @option-changed=${b}
227
+ .parseValue=${(C = t.controlInfo) == null ? void 0 : C.parseValue}
228
+ .toValue=${(V = t.controlInfo) == null ? void 0 : V.toValue}
219
229
  ></luzmo-edit-option-number-field>
220
230
  `;
221
231
  }, X = (t) => {
222
- var b, u, h, r, a, c, m, f, x, y, L;
223
- const i = ((h = (u = (b = t.translations) == null ? void 0 : b.options) == null ? void 0 : u[t.optionKey]) == null ? void 0 : h.label) ?? ((r = t.controlInfo) == null ? void 0 : r.label) ?? t.optionKey ?? "", o = T(t.options, t.optionKey), e = ((m = (c = (a = t.translations) == null ? void 0 : a.options) == null ? void 0 : c[t.optionKey]) == null ? void 0 : m.tooltip) ?? ((f = t.controlInfo) == null ? void 0 : f.tooltip), n = (x = t.controlInfo) == null ? void 0 : x.enum.reduce(
224
- (I, z) => {
225
- var C, O, A, j;
226
- return I[z] = ((j = (A = (O = (C = t.translations) == null ? void 0 : C.options) == null ? void 0 : O[t.optionKey]) == null ? void 0 : A.enum) == null ? void 0 : j[z]) ?? z, I;
232
+ var $, b, x, c, m, d, f, u, y, k, L;
233
+ const i = ((x = (b = ($ = t.translations) == null ? void 0 : $.options) == null ? void 0 : b[t.optionKey]) == null ? void 0 : x.label) ?? ((c = t.controlInfo) == null ? void 0 : c.label) ?? t.optionKey ?? "", o = T(t, t.optionKey), s = ((f = (d = (m = t.translations) == null ? void 0 : m.options) == null ? void 0 : d[t.optionKey]) == null ? void 0 : f.tooltip) ?? ((u = t.controlInfo) == null ? void 0 : u.tooltip), e = (y = t.controlInfo) == null ? void 0 : y.enum.reduce(
234
+ (z, I) => {
235
+ var C, V, w, j;
236
+ return z[I] = ((j = (w = (V = (C = t.translations) == null ? void 0 : C.options) == null ? void 0 : V[t.optionKey]) == null ? void 0 : w.enum) == null ? void 0 : j[I]) ?? I, z;
227
237
  },
228
238
  {}
229
- ), s = t.size, p = w(t), {
230
- extraLabel: $,
231
- extraLabelTooltip: k,
232
- extraLabelHasClickAction: d,
233
- extraLabelClickAction: l
234
- } = H(t), v = _(t);
239
+ ), n = t.size, l = H(t), {
240
+ extraLabel: p,
241
+ extraLabelTooltip: a,
242
+ extraLabelHasClickAction: h,
243
+ extraLabelClickAction: r
244
+ } = O(t), v = _(t);
235
245
  return K`
236
246
  <luzmo-edit-option-picker
237
247
  .value=${o}
238
- .default=${p}
239
- .values=${n}
248
+ .default=${l}
249
+ .values=${e}
240
250
  .label=${i}
241
- .tooltip=${e}
242
- .size=${s}
243
- .extraLabel=${$}
244
- .extraLabelTooltip=${k}
245
- .extraLabelHasClickAction=${d}
246
- @extraLabelClick=${l}
251
+ .tooltip=${s}
252
+ .size=${n}
253
+ .extraLabel=${p}
254
+ .extraLabelTooltip=${a}
255
+ .extraLabelHasClickAction=${h}
256
+ @extraLabelClick=${r}
247
257
  @option-changed=${v}
248
- .fromOptionValue=${(y = t.controlInfo) == null ? void 0 : y.fromOptionValue}
249
- .toOptionValue=${(L = t.controlInfo) == null ? void 0 : L.toOptionValue}
258
+ .parseValue=${(k = t.controlInfo) == null ? void 0 : k.parseValue}
259
+ .toValue=${(L = t.controlInfo) == null ? void 0 : L.toValue}
250
260
  ></luzmo-edit-option-picker>
251
261
  `;
252
262
  }, Y = (t) => {
253
- var b, u, h, r, a, c, m, f, x, y, L;
254
- const i = ((h = (u = (b = t.translations) == null ? void 0 : b.options) == null ? void 0 : u[t.optionKey]) == null ? void 0 : h.label) ?? ((r = t.controlInfo) == null ? void 0 : r.label), o = (a = t.controlInfo) == null ? void 0 : a.positions, e = t.size, n = T(t.options, t.optionKey), s = ((f = (m = (c = t.translations) == null ? void 0 : c.options) == null ? void 0 : m[t.optionKey]) == null ? void 0 : f.tooltip) ?? ((x = t.controlInfo) == null ? void 0 : x.tooltip), p = w(t) ?? "topRight", {
255
- extraLabel: $,
256
- extraLabelTooltip: k,
257
- extraLabelHasClickAction: d,
258
- extraLabelClickAction: l
259
- } = H(t), v = _(t);
263
+ var $, b, x, c, m, d, f, u, y, k, L;
264
+ const i = ((x = (b = ($ = t.translations) == null ? void 0 : $.options) == null ? void 0 : b[t.optionKey]) == null ? void 0 : x.label) ?? ((c = t.controlInfo) == null ? void 0 : c.label), o = (m = t.controlInfo) == null ? void 0 : m.positions, s = t.size, e = T(t, t.optionKey), n = ((u = (f = (d = t.translations) == null ? void 0 : d.options) == null ? void 0 : f[t.optionKey]) == null ? void 0 : u.tooltip) ?? ((y = t.controlInfo) == null ? void 0 : y.tooltip), l = H(t) ?? "topRight", {
265
+ extraLabel: p,
266
+ extraLabelTooltip: a,
267
+ extraLabelHasClickAction: h,
268
+ extraLabelClickAction: r
269
+ } = O(t), v = _(t);
260
270
  return K`
261
271
  <luzmo-edit-option-position-picker
262
- .value=${(y = t.controlInfo) == null ? void 0 : y.value}
272
+ .value=${(k = t.controlInfo) == null ? void 0 : k.value}
263
273
  .positions=${o}
264
- .default=${p}
274
+ .default=${l}
265
275
  .label=${i}
266
- .tooltip=${s}
267
- .size=${e}
268
- .value=${n}
269
- .extraLabel=${$}
270
- .extraLabelTooltip=${k}
271
- .extraLabelHasClickAction=${d}
272
- @extraLabelClick=${l}
276
+ .tooltip=${n}
277
+ .size=${s}
278
+ .value=${e}
279
+ .extraLabel=${p}
280
+ .extraLabelTooltip=${a}
281
+ .extraLabelHasClickAction=${h}
282
+ @extraLabelClick=${r}
273
283
  @option-changed=${v}
274
284
  .readonly=${(L = t.controlInfo) == null ? void 0 : L.readonly}
275
285
  ></luzmo-edit-option-position-picker>
276
286
  `;
277
287
  }, Z = (t) => {
278
- var v, b, u, h, r, a, c, m, f, x, y, L;
279
- const i = ((u = (b = (v = t.translations) == null ? void 0 : v.options) == null ? void 0 : b[t.optionKey]) == null ? void 0 : u.label) ?? ((h = t.controlInfo) == null ? void 0 : h.label), o = T(t.options, t.optionKey), e = t.size, n = ((c = (a = (r = t.translations) == null ? void 0 : r.options) == null ? void 0 : a[t.optionKey]) == null ? void 0 : c.tooltip) ?? ((m = t.controlInfo) == null ? void 0 : m.tooltip), s = w(t), {
280
- extraLabel: p,
281
- extraLabelTooltip: $,
282
- extraLabelHasClickAction: k,
283
- extraLabelClickAction: d
284
- } = H(t), l = _(t);
288
+ var v, $, b, x, c, m, d, f, u, y, k, L;
289
+ const i = ((b = ($ = (v = t.translations) == null ? void 0 : v.options) == null ? void 0 : $[t.optionKey]) == null ? void 0 : b.label) ?? ((x = t.controlInfo) == null ? void 0 : x.label), o = T(t, t.optionKey), s = t.size, e = ((d = (m = (c = t.translations) == null ? void 0 : c.options) == null ? void 0 : m[t.optionKey]) == null ? void 0 : d.tooltip) ?? ((f = t.controlInfo) == null ? void 0 : f.tooltip), n = H(t), {
290
+ extraLabel: l,
291
+ extraLabelTooltip: p,
292
+ extraLabelHasClickAction: a,
293
+ extraLabelClickAction: h
294
+ } = O(t), r = _(t);
285
295
  return K`
286
296
  <luzmo-edit-option-positions-number-field
287
- .values=${o ?? s}
288
- .positions=${(f = t.controlInfo) == null ? void 0 : f.positions}
289
- .positionConfiguration=${(x = t.controlInfo) == null ? void 0 : x.positionConfiguration}
297
+ .values=${o ?? n}
298
+ .positions=${(u = t.controlInfo) == null ? void 0 : u.positions}
299
+ .positionConfiguration=${(y = t.controlInfo) == null ? void 0 : y.positionConfiguration}
290
300
  .label=${i}
291
- .size=${e}
292
- .tooltip=${n}
293
- .extraLabel=${p}
294
- .extraLabelTooltip=${$}
295
- .extraLabelHasClickAction=${k}
296
- @extraLabelClick=${d}
297
- @option-changed=${l}
298
- .fromOptionValue=${(y = t.controlInfo) == null ? void 0 : y.fromOptionValue}
299
- .toOptionValue=${(L = t.controlInfo) == null ? void 0 : L.toOptionValue}
301
+ .size=${s}
302
+ .tooltip=${e}
303
+ .extraLabel=${l}
304
+ .extraLabelTooltip=${p}
305
+ .extraLabelHasClickAction=${a}
306
+ @extraLabelClick=${h}
307
+ @option-changed=${r}
308
+ .parseValue=${(k = t.controlInfo) == null ? void 0 : k.parseValue}
309
+ .toValue=${(L = t.controlInfo) == null ? void 0 : L.toValue}
300
310
  ></luzmo-edit-option-positions-number-field>
301
311
  `;
302
312
  }, g = (t) => {
303
- var b, u, h, r, a, c, m, f, x, y, L;
304
- const i = ((h = (u = (b = t.translations) == null ? void 0 : b.options) == null ? void 0 : u[t.optionKey]) == null ? void 0 : h.label) ?? ((r = t.controlInfo) == null ? void 0 : r.label) ?? t.optionKey ?? "", o = T(t.options, t.optionKey), e = w(t), n = (a = t.controlInfo) == null ? void 0 : a.enum.reduce(
305
- (I, z) => {
306
- var C, O, A, j;
307
- return I[z] = ((j = (A = (O = (C = t.translations) == null ? void 0 : C.options) == null ? void 0 : O[t.optionKey]) == null ? void 0 : A.enum) == null ? void 0 : j[z]) ?? z, I;
313
+ var $, b, x, c, m, d, f, u, y, k, L;
314
+ const i = ((x = (b = ($ = t.translations) == null ? void 0 : $.options) == null ? void 0 : b[t.optionKey]) == null ? void 0 : x.label) ?? ((c = t.controlInfo) == null ? void 0 : c.label) ?? t.optionKey ?? "", o = T(t, t.optionKey), s = H(t), e = (m = t.controlInfo) == null ? void 0 : m.enum.reduce(
315
+ (z, I) => {
316
+ var C, V, w, j;
317
+ return z[I] = ((j = (w = (V = (C = t.translations) == null ? void 0 : C.options) == null ? void 0 : V[t.optionKey]) == null ? void 0 : w.enum) == null ? void 0 : j[I]) ?? I, z;
308
318
  },
309
319
  {}
310
- ), s = t.size, p = ((f = (m = (c = t.translations) == null ? void 0 : c.options) == null ? void 0 : m[t.optionKey]) == null ? void 0 : f.tooltip) ?? ((x = t.controlInfo) == null ? void 0 : x.tooltip), {
311
- extraLabel: $,
312
- extraLabelTooltip: k,
313
- extraLabelHasClickAction: d,
314
- extraLabelClickAction: l
315
- } = H(t), v = _(t);
320
+ ), n = t.size, l = ((u = (f = (d = t.translations) == null ? void 0 : d.options) == null ? void 0 : f[t.optionKey]) == null ? void 0 : u.tooltip) ?? ((y = t.controlInfo) == null ? void 0 : y.tooltip), {
321
+ extraLabel: p,
322
+ extraLabelTooltip: a,
323
+ extraLabelHasClickAction: h,
324
+ extraLabelClickAction: r
325
+ } = O(t), v = _(t);
316
326
  return K`
317
327
  <luzmo-edit-option-radio-button-group
318
- .value=${o ?? e}
319
- .values=${n}
328
+ .value=${o ?? s}
329
+ .values=${e}
320
330
  .label=${i}
321
- .size=${s}
322
- .tooltip=${p}
323
- .extraLabel=${$}
324
- .extraLabelTooltip=${k}
325
- .extraLabelHasClickAction=${d}
326
- @extraLabelClick=${l}
331
+ .size=${n}
332
+ .tooltip=${l}
333
+ .extraLabel=${p}
334
+ .extraLabelTooltip=${a}
335
+ .extraLabelHasClickAction=${h}
336
+ @extraLabelClick=${r}
327
337
  @option-changed=${v}
328
- .fromOptionValue=${(y = t.controlInfo) == null ? void 0 : y.fromOptionValue}
329
- .toOptionValue=${(L = t.controlInfo) == null ? void 0 : L.toOptionValue}
338
+ .parseValue=${(k = t.controlInfo) == null ? void 0 : k.parseValue}
339
+ .toValue=${(L = t.controlInfo) == null ? void 0 : L.toValue}
330
340
  ></luzmo-edit-option-radio-button-group>
331
341
  `;
332
342
  }, tt = (t) => {
333
- var r, a, c, m, f, x, y, L, I, z, C, O, A;
334
- const i = ((c = (a = (r = t.translations) == null ? void 0 : r.options) == null ? void 0 : a[t.optionKey]) == null ? void 0 : c.label) ?? ((m = t.controlInfo) == null ? void 0 : m.label) ?? t.optionKey ?? "", o = ((y = (x = (f = t.translations) == null ? void 0 : f.options) == null ? void 0 : x[t.optionKey]) == null ? void 0 : y.tooltip) ?? ((L = t.controlInfo) == null ? void 0 : L.tooltip), e = (I = t.controlInfo) == null ? void 0 : I.min, n = (z = t.controlInfo) == null ? void 0 : z.max, s = (C = t.controlInfo) == null ? void 0 : C.step, p = T(t.options, t.optionKey), $ = t.size, k = w(t), {
335
- extraLabel: d,
336
- extraLabelTooltip: l,
343
+ var c, m, d, f, u, y, k, L, z, I, C, V, w;
344
+ const i = ((d = (m = (c = t.translations) == null ? void 0 : c.options) == null ? void 0 : m[t.optionKey]) == null ? void 0 : d.label) ?? ((f = t.controlInfo) == null ? void 0 : f.label) ?? t.optionKey ?? "", o = ((k = (y = (u = t.translations) == null ? void 0 : u.options) == null ? void 0 : y[t.optionKey]) == null ? void 0 : k.tooltip) ?? ((L = t.controlInfo) == null ? void 0 : L.tooltip), s = (z = t.controlInfo) == null ? void 0 : z.min, e = (I = t.controlInfo) == null ? void 0 : I.max, n = (C = t.controlInfo) == null ? void 0 : C.step, l = T(t, t.optionKey), p = t.size, a = H(t), {
345
+ extraLabel: h,
346
+ extraLabelTooltip: r,
337
347
  extraLabelHasClickAction: v,
338
- extraLabelClickAction: b
339
- } = H(t), u = _(t);
348
+ extraLabelClickAction: $
349
+ } = O(t), b = _(t);
340
350
  return K`
341
351
  <luzmo-edit-option-slider
342
- .value=${p}
343
- .default=${k}
344
- .min=${e}
345
- .max=${n}
346
- .step=${s}
352
+ .value=${l}
353
+ .default=${a}
354
+ .min=${s}
355
+ .max=${e}
356
+ .step=${n}
347
357
  .label=${i}
348
358
  .tooltip=${o}
349
- .size=${$}
350
- .extraLabel=${d}
351
- .extraLabelTooltip=${l}
359
+ .size=${p}
360
+ .extraLabel=${h}
361
+ .extraLabelTooltip=${r}
352
362
  .extraLabelHasClickAction=${v}
353
363
  @extraLabelClick=${() => {
354
- if (typeof b == "function") {
355
- const { options: j } = b();
364
+ if (typeof $ == "function") {
365
+ const { options: j } = $();
356
366
  return t.changeCallback(j);
357
367
  }
358
368
  }}
359
- @option-changed=${u}
360
- .fromOptionValue=${(O = t.controlInfo) == null ? void 0 : O.fromOptionValue}
361
- .toOptionValue=${(A = t.controlInfo) == null ? void 0 : A.toOptionValue}
369
+ @option-changed=${b}
370
+ .parseValue=${(V = t.controlInfo) == null ? void 0 : V.parseValue}
371
+ .toValue=${(w = t.controlInfo) == null ? void 0 : w.toValue}
362
372
  ></luzmo-edit-option-slider>
363
373
  `;
364
374
  }, it = (t) => {
365
- var v, b, u, h, r, a, c, m, f, x;
366
- const i = ((u = (b = (v = t.translations) == null ? void 0 : v.options) == null ? void 0 : b[t.optionKey]) == null ? void 0 : u.label) ?? ((h = t.controlInfo) == null ? void 0 : h.label) ?? t.optionKey ?? "", o = T(t.options, t.optionKey), e = t.size, n = ((c = (a = (r = t.translations) == null ? void 0 : r.options) == null ? void 0 : a[t.optionKey]) == null ? void 0 : c.tooltip) ?? ((m = t.controlInfo) == null ? void 0 : m.tooltip), s = w(t), {
367
- extraLabel: p,
368
- extraLabelTooltip: $,
369
- extraLabelHasClickAction: k,
370
- extraLabelClickAction: d
371
- } = H(t), l = _(t);
375
+ var v, $, b, x, c, m, d, f, u, y;
376
+ const i = ((b = ($ = (v = t.translations) == null ? void 0 : v.options) == null ? void 0 : $[t.optionKey]) == null ? void 0 : b.label) ?? ((x = t.controlInfo) == null ? void 0 : x.label) ?? t.optionKey ?? "", o = T(t, t.optionKey), s = t.size, e = ((d = (m = (c = t.translations) == null ? void 0 : c.options) == null ? void 0 : m[t.optionKey]) == null ? void 0 : d.tooltip) ?? ((f = t.controlInfo) == null ? void 0 : f.tooltip), n = H(t), {
377
+ extraLabel: l,
378
+ extraLabelTooltip: p,
379
+ extraLabelHasClickAction: a,
380
+ extraLabelClickAction: h
381
+ } = O(t), r = _(t);
372
382
  return K`
373
383
  <luzmo-edit-option-switch
374
- .value=${o ?? s ?? !1}
384
+ .value=${o ?? n ?? !1}
375
385
  .label=${i}
376
- .size=${e}
377
- .tooltip=${n}
378
- .extraLabel=${p}
379
- .extraLabelTooltip=${$}
380
- .extraLabelHasClickAction=${k}
381
- @extraLabelClick=${d}
382
- @option-changed=${l}
383
- .fromOptionValue=${(f = t.controlInfo) == null ? void 0 : f.fromOptionValue}
384
- .toOptionValue=${(x = t.controlInfo) == null ? void 0 : x.toOptionValue}
386
+ .size=${s}
387
+ .tooltip=${e}
388
+ .extraLabel=${l}
389
+ .extraLabelTooltip=${p}
390
+ .extraLabelHasClickAction=${a}
391
+ @extraLabelClick=${h}
392
+ @option-changed=${r}
393
+ .parseValue=${(u = t.controlInfo) == null ? void 0 : u.parseValue}
394
+ .toValue=${(y = t.controlInfo) == null ? void 0 : y.toValue}
385
395
  ></luzmo-edit-option-switch>
386
396
  `;
387
397
  }, ot = (t) => {
388
- var u, h, r, a, c, m, f, x, y, L, I, z, C, O;
389
- const i = ((r = (h = (u = t.translations) == null ? void 0 : u.options) == null ? void 0 : h[t.optionKey]) == null ? void 0 : r.label) ?? ((a = t.controlInfo) == null ? void 0 : a.label) ?? t.optionKey ?? "", o = t.language ?? "en", e = {};
390
- e[o] = ((f = (m = (c = t.translations) == null ? void 0 : c.options) == null ? void 0 : m[t.optionKey]) == null ? void 0 : f.placeholder) ?? ((x = t.controlInfo) == null ? void 0 : x.placeholder) ?? "";
391
- const n = T(t.options, t.optionKey) ?? "", s = t.size, p = ((I = (L = (y = t.translations) == null ? void 0 : y.options) == null ? void 0 : L[t.optionKey]) == null ? void 0 : I.tooltip) ?? ((z = t.controlInfo) == null ? void 0 : z.tooltip), $ = w(t), {
392
- extraLabel: k,
393
- extraLabelTooltip: d,
394
- extraLabelHasClickAction: l,
398
+ var b, x, c, m, d, f, u, y, k, L, z, I, C, V;
399
+ const i = ((c = (x = (b = t.translations) == null ? void 0 : b.options) == null ? void 0 : x[t.optionKey]) == null ? void 0 : c.label) ?? ((m = t.controlInfo) == null ? void 0 : m.label) ?? t.optionKey ?? "", o = t.language ?? "en", s = {};
400
+ s[o] = ((u = (f = (d = t.translations) == null ? void 0 : d.options) == null ? void 0 : f[t.optionKey]) == null ? void 0 : u.placeholder) ?? ((y = t.controlInfo) == null ? void 0 : y.placeholder) ?? "";
401
+ const e = T(t, t.optionKey) ?? "", n = t.size, l = ((z = (L = (k = t.translations) == null ? void 0 : k.options) == null ? void 0 : L[t.optionKey]) == null ? void 0 : z.tooltip) ?? ((I = t.controlInfo) == null ? void 0 : I.tooltip), p = H(t), {
402
+ extraLabel: a,
403
+ extraLabelTooltip: h,
404
+ extraLabelHasClickAction: r,
395
405
  extraLabelClickAction: v
396
- } = H(t), b = _(t);
406
+ } = O(t), $ = _(t);
397
407
  return K`
398
408
  <luzmo-edit-option-text-field
399
409
  .label=${i}
400
- .placeholder=${e[o]}
401
- .value=${n ?? $}
402
- .size=${s}
403
- .tooltip=${p}
404
- .extraLabel=${k}
405
- .extraLabelTooltip=${d}
406
- .extraLabelHasClickAction=${l}
410
+ .placeholder=${s[o]}
411
+ .value=${e ?? p}
412
+ .size=${n}
413
+ .tooltip=${l}
414
+ .extraLabel=${a}
415
+ .extraLabelTooltip=${h}
416
+ .extraLabelHasClickAction=${r}
407
417
  @extraLabelClick=${v}
408
- @option-changed=${b}
409
- .fromOptionValue=${(C = t.controlInfo) == null ? void 0 : C.fromOptionValue}
410
- .toOptionValue=${(O = t.controlInfo) == null ? void 0 : O.toOptionValue}
418
+ @option-changed=${$}
419
+ .parseValue=${(C = t.controlInfo) == null ? void 0 : C.parseValue}
420
+ .toValue=${(V = t.controlInfo) == null ? void 0 : V.toValue}
411
421
  ></luzmo-edit-option-text-field>
412
422
  `;
413
423
  }, nt = (t) => {
@@ -436,10 +446,10 @@ const N = (t, i, o) => {
436
446
  return J(t);
437
447
  }
438
448
  };
439
- var et = Object.defineProperty, E = (t, i, o, e) => {
440
- for (var n = void 0, s = t.length - 1, p; s >= 0; s--)
441
- (p = t[s]) && (n = p(i, o, n) || n);
442
- return n && et(i, o, n), n;
449
+ var et = Object.defineProperty, E = (t, i, o, s) => {
450
+ for (var e = void 0, n = t.length - 1, l; n >= 0; n--)
451
+ (l = t[n]) && (e = l(i, o, e) || e);
452
+ return e && et(i, o, e), e;
443
453
  };
444
454
  const B = class B extends G {
445
455
  constructor() {
@@ -447,73 +457,73 @@ const B = class B extends G {
447
457
  task: async ([
448
458
  i,
449
459
  o,
460
+ s,
450
461
  e,
451
- n,
452
- s
462
+ n
453
463
  ]) => {
454
- let p = !1;
455
- if (i !== this._itemTypeLoaded && !n) {
456
- const d = /* @__PURE__ */ Object.assign({
464
+ let l = !1;
465
+ if (i !== this._itemTypeLoaded && !e) {
466
+ const h = /* @__PURE__ */ Object.assign({
457
467
  "../../item-definitions/area-chart/area-chart-options.config.ts": () => import("./area-chart-options.config-7NUkgEdr.js"),
458
468
  "../../item-definitions/bar-chart/bar-chart-options.config.ts": () => import("./bar-chart-options.config-BdbbHUJZ.js"),
459
- "../../item-definitions/box-plot/box-plot-options.config.ts": () => import("./box-plot-options.config-RAhd--7J.js"),
469
+ "../../item-definitions/box-plot/box-plot-options.config.ts": () => import("./box-plot-options.config-vlz5qeNq.js"),
460
470
  "../../item-definitions/bubble-chart/bubble-chart-options.config.ts": () => import("./bubble-chart-options.config-BacgXkJ_.js"),
461
471
  "../../item-definitions/bullet-chart/bullet-chart-options.config.ts": () => import("./bullet-chart-options.config-Bsw7N7Wl.js"),
462
- "../../item-definitions/choropleth-map/choropleth-map-options.config.ts": () => import("./choropleth-map-options.config-DHQu69ib.js"),
472
+ "../../item-definitions/choropleth-map/choropleth-map-options.config.ts": () => import("./choropleth-map-options.config-CeKXtnYB.js"),
463
473
  "../../item-definitions/circle-pack-chart/circle-pack-chart-options.config.ts": () => import("./circle-pack-chart-options.config-DEYL3DMK.js"),
464
- "../../item-definitions/circular-gauge/circular-gauge-options.config.ts": () => import("./circular-gauge-options.config-D7FdVupw.js"),
474
+ "../../item-definitions/circular-gauge/circular-gauge-options.config.ts": () => import("./circular-gauge-options.config-Kd_WK_w-.js"),
465
475
  "../../item-definitions/column-chart/column-chart-options.config.ts": () => import("./column-chart-options.config-BqSQ1Sl9.js"),
466
476
  "../../item-definitions/combination-chart/combination-chart-options.config.ts": () => import("./combination-chart-options.config-CApdgFvv.js"),
467
477
  "../../item-definitions/conditional-number/conditional-number-options.config.ts": () => import("./conditional-number-options.config-BzzAnCOB.js"),
468
- "../../item-definitions/date-filter/date-filter-options.config.ts": () => import("./date-filter-options.config-KiuizKhg.js"),
469
- "../../item-definitions/donut-chart/donut-chart-options.config.ts": () => import("./donut-chart-options.config-NPwNtLDW.js"),
478
+ "../../item-definitions/date-filter/date-filter-options.config.ts": () => import("./date-filter-options.config-DBRxlTWy.js"),
479
+ "../../item-definitions/donut-chart/donut-chart-options.config.ts": () => import("./donut-chart-options.config-BulUEiaH.js"),
470
480
  "../../item-definitions/dropdown-filter/dropdown-filter-options.config.ts": () => import("./dropdown-filter-options.config-D9dvPypF.js"),
471
- "../../item-definitions/evolution-number/evolution-number-options.config.ts": () => import("./evolution-number-options.config-FlQ0IH6f.js"),
472
- "../../item-definitions/funnel-chart/funnel-chart-options.config.ts": () => import("./funnel-chart-options.config-CrlHKd36.js"),
473
- "../../item-definitions/heat-map/heat-map-options.config.ts": () => import("./heat-map-options.config-B0FtmOXM.js"),
474
- "../../item-definitions/heat-table/heat-table-options.config.ts": () => import("./heat-table-options.config-C0L9ZJHP.js"),
475
- "../../item-definitions/hexbin-map/hexbin-map-options.config.ts": () => import("./hexbin-map-options.config-BJaPYxgd.js"),
481
+ "../../item-definitions/evolution-number/evolution-number-options.config.ts": () => import("./evolution-number-options.config-DzkfeoIN.js"),
482
+ "../../item-definitions/funnel-chart/funnel-chart-options.config.ts": () => import("./funnel-chart-options.config-CIOrejfS.js"),
483
+ "../../item-definitions/heat-map/heat-map-options.config.ts": () => import("./heat-map-options.config-BAuSJV3_.js"),
484
+ "../../item-definitions/heat-table/heat-table-options.config.ts": () => import("./heat-table-options.config-DSu_18VG.js"),
485
+ "../../item-definitions/hexbin-map/hexbin-map-options.config.ts": () => import("./hexbin-map-options.config-DaaC88d8.js"),
476
486
  "../../item-definitions/image/image-options.config.ts": () => import("./image-options.config-CBfeq5Zw.js"),
477
487
  "../../item-definitions/line-chart/line-chart-options.config.ts": () => import("./line-chart-options.config-DB3IsXXr.js"),
478
- "../../item-definitions/marker-map/marker-map-options.config.ts": () => import("./marker-map-options.config-DlJhJQFX.js"),
488
+ "../../item-definitions/marker-map/marker-map-options.config.ts": () => import("./marker-map-options.config-CYoq89Oz.js"),
479
489
  "../../item-definitions/ohlc-chart/ohlc-chart-options.config.ts": () => import("./ohlc-chart-options.config-D9npwajt.js"),
480
490
  "../../item-definitions/parallel-coordinates-plot/parallel-coordinates-plot-options.config.ts": () => import("./parallel-coordinates-plot-options.config-DxB4kd58.js"),
481
491
  "../../item-definitions/pivot-table/pivot-table-options.config.ts": () => import("./pivot-table-options.config-DNK_AIG7.js"),
482
- "../../item-definitions/pyramid-chart/pyramid-chart-options.config.ts": () => import("./pyramid-chart-options.config-senv4pUq.js"),
492
+ "../../item-definitions/pyramid-chart/pyramid-chart-options.config.ts": () => import("./pyramid-chart-options.config-CcVMatYx.js"),
483
493
  "../../item-definitions/radar-chart/radar-chart-options.config.ts": () => import("./radar-chart-options.config-CUZn_3Fd.js"),
484
- "../../item-definitions/regular-table/regular-table-options.config.ts": () => import("./regular-table-options.config-CAb4esiC.js"),
485
- "../../item-definitions/route-map/route-map-options.config.ts": () => import("./route-map-options.config-BmrbNMnQ.js"),
494
+ "../../item-definitions/regular-table/regular-table-options.config.ts": () => import("./regular-table-options.config-BoLZsBry.js"),
495
+ "../../item-definitions/route-map/route-map-options.config.ts": () => import("./route-map-options.config-u0hQqmDh.js"),
486
496
  "../../item-definitions/sankey-diagram/sankey-diagram-options.config.ts": () => import("./sankey-diagram-options.config-tVLKy_Zn.js"),
487
497
  "../../item-definitions/scatter-plot/scatter-plot-options.config.ts": () => import("./scatter-plot-options.config-lrkd9qj4.js"),
488
498
  "../../item-definitions/search-filter/search-filter-options.config.ts": () => import("./search-filter-options.config-BE3JhR-F.js"),
489
- "../../item-definitions/slicer-filter/slicer-filter-options.config.ts": () => import("./slicer-filter-options.config-DcUkjMck.js"),
499
+ "../../item-definitions/slicer-filter/slicer-filter-options.config.ts": () => import("./slicer-filter-options.config-3JZZcw5C.js"),
490
500
  "../../item-definitions/slider-filter/slider-filter-options.config.ts": () => import("./slider-filter-options.config-DH4SS8wH.js"),
491
501
  "../../item-definitions/spacer/spacer-options.config.ts": () => import("./spacer-options.config-IpwUxDyU.js"),
492
502
  "../../item-definitions/speedometer-chart/speedometer-chart-options.config.ts": () => import("./speedometer-chart-options.config-Dt2feQYV.js"),
493
- "../../item-definitions/spike-map/spike-map-options.config.ts": () => import("./spike-map-options.config-DwUz-EkV.js"),
503
+ "../../item-definitions/spike-map/spike-map-options.config.ts": () => import("./spike-map-options.config-pdbV_vwg.js"),
494
504
  "../../item-definitions/strip-plot/strip-plot-options.config.ts": () => import("./strip-plot-options.config-Bdr8yQJu.js"),
495
505
  "../../item-definitions/sunburst-chart/sunburst-chart-options.config.ts": () => import("./sunburst-chart-options.config-CNauGQJv.js"),
496
- "../../item-definitions/symbol-map/symbol-map-options.config.ts": () => import("./symbol-map-options.config-CKd-phmw.js"),
506
+ "../../item-definitions/symbol-map/symbol-map-options.config.ts": () => import("./symbol-map-options.config-Bj-UuL9m.js"),
497
507
  "../../item-definitions/text/text-options.config.ts": () => import("./text-options.config-BWaJoeG2.js"),
498
508
  "../../item-definitions/treemap-chart/treemap-chart-options.config.ts": () => import("./treemap-chart-options.config-D5AJaF_u.js"),
499
509
  "../../item-definitions/video/video-options.config.ts": () => import("./video-options.config-Dk36zJ1B.js"),
500
510
  "../../item-definitions/wordcloud-chart/wordcloud-chart-options.config.ts": () => import("./wordcloud-chart-options.config-w2NUIWVA.js")
501
511
  });
502
- if (d[`../../item-definitions/${i}/${i}-options.config.ts`])
512
+ if (h[`../../item-definitions/${i}/${i}-options.config.ts`])
503
513
  try {
504
- const l = await d[`../../item-definitions/${i}/${i}-options.config.ts`]();
505
- this._optionsConfig = (l == null ? void 0 : l.default) ?? [];
514
+ const r = await h[`../../item-definitions/${i}/${i}-options.config.ts`]();
515
+ this._optionsConfig = (r == null ? void 0 : r.default) ?? [];
506
516
  } catch {
507
517
  this._optionsConfig = [];
508
518
  }
509
519
  else
510
520
  this._optionsConfig = [];
511
- p = !0;
512
- } else n ? (o && i && console.warn(
521
+ l = !0;
522
+ } else e ? (o && i && console.warn(
513
523
  "optionKey and itemType are not needed when using custom option configuration"
514
- ), this._optionsConfig = [{ children: [n] }], o = n.key, i = void 0) : this._optionsConfig = [];
515
- if ((e !== this._languageLoaded || p) && !s) {
516
- const d = /* @__PURE__ */ Object.assign({
524
+ ), this._optionsConfig = [{ children: [e] }], o = e.key, i = void 0) : this._optionsConfig = [];
525
+ if ((s !== this._languageLoaded || l) && !n) {
526
+ const h = /* @__PURE__ */ Object.assign({
517
527
  "../../item-definitions/area-chart/i18n/area-chart-options.de.ts": () => import("./area-chart-options.de-FcVE2Ywe.js"),
518
528
  "../../item-definitions/area-chart/i18n/area-chart-options.en.ts": () => import("./area-chart-options.en-Cz5aXeVe.js"),
519
529
  "../../item-definitions/area-chart/i18n/area-chart-options.es.ts": () => import("./area-chart-options.es-o3ABpXnC.js"),
@@ -730,28 +740,28 @@ const B = class B extends G {
730
740
  "../../item-definitions/wordcloud-chart/i18n/wordcloud-chart-options.fr.ts": () => import("./wordcloud-chart-options.fr-DNK5Ouc5.js"),
731
741
  "../../item-definitions/wordcloud-chart/i18n/wordcloud-chart-options.nl.ts": () => import("./wordcloud-chart-options.nl-CcgmqL7I.js")
732
742
  });
733
- if (d[`../../item-definitions/${i}/i18n/${i}-options.${e}.ts`])
743
+ if (h[`../../item-definitions/${i}/i18n/${i}-options.${s}.ts`])
734
744
  try {
735
- const l = await d[`../../item-definitions/${i}/i18n/${i}-options.${e}.ts`]();
736
- this._translations = (l == null ? void 0 : l.default) ?? {};
737
- } catch (l) {
738
- this._translations = {}, console.error(l);
745
+ const r = await h[`../../item-definitions/${i}/i18n/${i}-options.${s}.ts`]();
746
+ this._translations = (r == null ? void 0 : r.default) ?? {};
747
+ } catch (r) {
748
+ this._translations = {}, console.error(r);
739
749
  }
740
750
  else
741
751
  this._translations = {};
742
- } else s ? this._translations = {
743
- options: { [o ?? ""]: s }
752
+ } else n ? this._translations = {
753
+ options: { [o ?? ""]: n }
744
754
  } : this._translations = {};
745
- const $ = N(o ?? "", this._optionsConfig), k = $ == null ? void 0 : $.type;
746
- if (k !== this._controlTypeLoaded) {
747
- const d = /* @__PURE__ */ Object.assign({ "../edit-option-action-button-group/index.ts": () => import("./edit-option-action-button-group/index.js"), "../edit-option-color-picker/index.ts": () => import("./edit-option-color-picker/index.js"), "../edit-option-multi-language-field/index.ts": () => import("./edit-option-multi-language-field/index.js"), "../edit-option-number-field/index.ts": () => import("./edit-option-number-field/index.js"), "../edit-option-picker/index.ts": () => import("./edit-option-picker/index.js"), "../edit-option-position-picker/index.ts": () => import("./edit-option-position-picker/index.js"), "../edit-option-positions-number-field/index.ts": () => import("./edit-option-positions-number-field/index.js"), "../edit-option-radio-button-group/index.ts": () => import("./edit-option-radio-button-group/index.js"), "../edit-option-slider/index.ts": () => import("./edit-option-slider/index.js"), "../edit-option-switch/index.ts": () => import("./edit-option-switch/index.js"), "../edit-option-text-field/index.ts": () => import("./edit-option-text-field/index.js") });
755
+ const p = N(o ?? "", this._optionsConfig), a = p == null ? void 0 : p.type;
756
+ if (a !== this._controlTypeLoaded) {
757
+ const h = /* @__PURE__ */ Object.assign({ "../edit-option-action-button-group/index.ts": () => import("./edit-option-action-button-group/index.js"), "../edit-option-color-picker/index.ts": () => import("./edit-option-color-picker/index.js"), "../edit-option-multi-language-field/index.ts": () => import("./edit-option-multi-language-field/index.js"), "../edit-option-number-field/index.ts": () => import("./edit-option-number-field/index.js"), "../edit-option-picker/index.ts": () => import("./edit-option-picker/index.js"), "../edit-option-position-picker/index.ts": () => import("./edit-option-position-picker/index.js"), "../edit-option-positions-number-field/index.ts": () => import("./edit-option-positions-number-field/index.js"), "../edit-option-radio-button-group/index.ts": () => import("./edit-option-radio-button-group/index.js"), "../edit-option-slider/index.ts": () => import("./edit-option-slider/index.js"), "../edit-option-switch/index.ts": () => import("./edit-option-switch/index.js"), "../edit-option-text-field/index.ts": () => import("./edit-option-text-field/index.js") });
748
758
  try {
749
- d[`../edit-option-${k}/index.ts`] && (await d[`../edit-option-${k}/index.ts`](), this._controlTypeLoaded = k);
750
- } catch (l) {
751
- console.error(l);
759
+ h[`../edit-option-${a}/index.ts`] && (await h[`../edit-option-${a}/index.ts`](), this._controlTypeLoaded = a);
760
+ } catch (r) {
761
+ console.error(r);
752
762
  }
753
763
  }
754
- return $;
764
+ return p;
755
765
  },
756
766
  args: () => [
757
767
  this.itemType,
@@ -796,36 +806,36 @@ const B = class B extends G {
796
806
  }
797
807
  };
798
808
  B.styles = R(q);
799
- let V = B;
809
+ let A = B;
800
810
  E([
801
811
  M({ type: String, reflect: !0 })
802
- ], V.prototype, "language");
812
+ ], A.prototype, "language");
803
813
  E([
804
814
  M({ type: String, reflect: !0, attribute: "item-type" })
805
- ], V.prototype, "itemType");
815
+ ], A.prototype, "itemType");
806
816
  E([
807
817
  M({ type: String, reflect: !0, attribute: "option-key" })
808
- ], V.prototype, "optionKey");
818
+ ], A.prototype, "optionKey");
809
819
  E([
810
820
  M({ type: Object, reflect: !1 })
811
- ], V.prototype, "customOptionConfiguration");
821
+ ], A.prototype, "customOptionConfiguration");
812
822
  E([
813
823
  M({ type: Object, reflect: !1 })
814
- ], V.prototype, "customTranslations");
824
+ ], A.prototype, "customTranslations");
815
825
  E([
816
826
  M({ type: Object })
817
- ], V.prototype, "options");
827
+ ], A.prototype, "options");
818
828
  E([
819
829
  M({ type: Object })
820
- ], V.prototype, "slots");
830
+ ], A.prototype, "slots");
821
831
  E([
822
832
  M({ type: Object })
823
- ], V.prototype, "theme");
833
+ ], A.prototype, "theme");
824
834
  E([
825
835
  M({ type: String, reflect: !0 })
826
- ], V.prototype, "size");
827
- customElements.get("luzmo-edit-option") || customElements.define("luzmo-edit-option", V);
836
+ ], A.prototype, "size");
837
+ customElements.get("luzmo-edit-option") || customElements.define("luzmo-edit-option", A);
828
838
  export {
829
- V as L,
839
+ A as L,
830
840
  N as g
831
841
  };