@luzmo/analytics-components-kit 1.0.1-alpha.11 → 1.0.1-alpha.13

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 (77) hide show
  1. package/components/area-chart.config-Ba68ZiSX.js +198 -0
  2. package/components/area-chart.config-Vo0u3UK8.cjs +20 -0
  3. package/components/{column-chart.config-BYIX4E6J.js → bar-chart.config-CF1i1Imw.js} +41 -14
  4. package/components/bar-chart.config-YLP38HOE.cjs +20 -0
  5. package/components/bubble-chart.config-1MrC55Nb.js +142 -0
  6. package/components/bubble-chart.config-bQBq1s3C.cjs +20 -0
  7. package/components/circle-pack-chart.config-BOlrxRJA.cjs +20 -0
  8. package/components/circle-pack-chart.config-Bbm2bTgy.js +110 -0
  9. package/components/{bar-chart.config-BYIX4E6J.js → column-chart.config-BT1QH4BI.js} +40 -14
  10. package/components/column-chart.config-CppyNukh.cjs +20 -0
  11. package/components/display-settings-datetime/index.cjs +25 -25
  12. package/components/display-settings-datetime/index.js +66 -59
  13. package/components/donut-chart.config-B_38UAqp.cjs +20 -0
  14. package/components/{donut-chart.config-3DhKiSSM.js → donut-chart.config-DuJFyp4z.js} +4 -2
  15. package/components/dropdown-filter.config-BPBxTuLQ.cjs +20 -0
  16. package/components/dropdown-filter.config-Drv-A4zw.js +163 -0
  17. package/components/edit-item/index.cjs +11 -16
  18. package/components/edit-item/index.js +103 -87
  19. package/components/edit-option/index.cjs +108 -100
  20. package/components/edit-option/index.js +330 -294
  21. package/components/edit-option/item-configs/area-chart.config.d.ts +146 -0
  22. package/components/edit-option/item-configs/bar-chart.config.d.ts +23 -2
  23. package/components/edit-option/item-configs/bubble-chart.config.d.ts +90 -0
  24. package/components/edit-option/item-configs/circle-pack-chart.config.d.ts +35 -0
  25. package/components/edit-option/item-configs/column-chart.config.d.ts +17 -2
  26. package/components/edit-option/item-configs/donut-chart.config.d.ts +4 -0
  27. package/components/edit-option/item-configs/dropdown-filter.config.d.ts +74 -0
  28. package/components/edit-option/item-configs/line-chart.config.d.ts +16 -0
  29. package/components/edit-option/item-configs/ohlc-chart.config.d.ts +37 -0
  30. package/components/edit-option/item-configs/radar-chart.config.d.ts +122 -0
  31. package/components/edit-option/item-configs/sankey-diagram.config.d.ts +46 -0
  32. package/components/edit-option/item-configs/search-filter.config.d.ts +40 -0
  33. package/components/edit-option/item-configs/slicer-filter.config.d.ts +136 -0
  34. package/components/edit-option/item-configs/slider-filter.config.d.ts +45 -0
  35. package/components/edit-option/item-configs/sunburst-chart.config.d.ts +51 -0
  36. package/components/edit-option/item-configs/treemap-chart.config.d.ts +103 -0
  37. package/components/edit-option/item-configs/wordcloud-chart.config.d.ts +46 -0
  38. package/components/{en-GB-C9t4MSgD.js → en-GB-BtLbN8o_.js} +1 -1
  39. package/components/{en-GB-D5Tvhki6.cjs → en-GB-Dd11ROdW.cjs} +1 -1
  40. package/components/{en-DlRadzUI.js → formatter-CQDms6fU.js} +258 -267
  41. package/components/{en-BnVnZvpC.cjs → formatter-DiJYkB6b.cjs} +1 -1
  42. package/components/index-DXyAeBh6.cjs +20 -0
  43. package/components/index-Di00QW2f.js +113 -0
  44. package/components/index.cjs +1 -1
  45. package/components/index.js +8 -6
  46. package/components/{line-chart.config-DBw4A3Rf.js → line-chart.config-BB_thZtA.js} +3 -2
  47. package/components/line-chart.config-i2233s5F.cjs +20 -0
  48. package/components/ohlc-chart.config-BLlRV_bs.cjs +20 -0
  49. package/components/ohlc-chart.config-D9npwajt.js +75 -0
  50. package/components/radar-chart.config-DPPlIptA.cjs +20 -0
  51. package/components/radar-chart.config-DfID1TZ-.js +164 -0
  52. package/components/sankey-diagram.config-BVjCEw5M.js +138 -0
  53. package/components/sankey-diagram.config-CG5S1OI3.cjs +20 -0
  54. package/components/search-filter.config-C9CoGS9f.cjs +20 -0
  55. package/components/search-filter.config-baX2Vdul.js +111 -0
  56. package/components/slicer-filter.config-A3YK_KZn.js +211 -0
  57. package/components/slicer-filter.config-DQunaj8q.cjs +20 -0
  58. package/components/slider-filter.config-C-zvfTNl.js +98 -0
  59. package/components/slider-filter.config-DF_sAElS.cjs +20 -0
  60. package/components/sunburst-chart.config-CEfAd1RQ.cjs +20 -0
  61. package/components/sunburst-chart.config-VZqDthcz.js +139 -0
  62. package/components/treemap-chart.config-BalwwrhW.js +214 -0
  63. package/components/treemap-chart.config-D6H5Hf2B.cjs +20 -0
  64. package/components/utils.cjs +1 -1
  65. package/components/utils.js +69 -6
  66. package/components/wordcloud-chart.config-BLvcDvxT.cjs +20 -0
  67. package/components/wordcloud-chart.config-CQs8YFfd.js +89 -0
  68. package/custom-elements.json +182 -0
  69. package/package.json +4 -9
  70. package/utils/index.d.ts +1 -0
  71. package/utils/switch-item/index.d.ts +18 -0
  72. package/components/bar-chart.config--VDhFN4d.cjs +0 -20
  73. package/components/column-chart.config-BmhmcBZJ.cjs +0 -20
  74. package/components/donut-chart.config-DLWJUlHx.cjs +0 -20
  75. package/components/line-chart.config-cvwDhvSq.cjs +0 -20
  76. /package/components/{slot-configs.cjs → item-slots-configs.cjs} +0 -0
  77. /package/components/{slot-configs.js → item-slots-configs.js} +0 -0
@@ -17,37 +17,37 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- import { h as B } from "../task-Cr9aRIbV.js";
21
- import { x as v, k as F, a as G, n as w } from "../property-B2F7x7Cz.js";
22
- import { o as N } from "../if-defined-Bv6MRdSW.js";
23
- const P = () => {
20
+ import { h as F } from "../task-Cr9aRIbV.js";
21
+ import { x as V, k as G, a as N, n as _ } from "../property-B2F7x7Cz.js";
22
+ import { o as R } from "../if-defined-Bv6MRdSW.js";
23
+ const B = () => {
24
24
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
25
25
  const o = document.createElement("style");
26
26
  o.setAttribute("data-luzmo-vars", ""), o.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-color-negative: #ca221c;--luzmo-color-negative-hover: #b3241f;--luzmo-color-negative-down: #9f231f;--luzmo-color-negative-focus: #b3241f;--luzmo-color-negative-rgb: 202, 34, 28;--luzmo-color-positive: rgb(20, 150, 101);--luzmo-color-positive-hover: rgb(17, 128, 86);--luzmo-color-positive-down: rgb(16, 105, 71);--luzmo-color-positive-focus: rgb(17, 128, 86);--luzmo-color-positive-rgb: 20, 150, 101;--luzmo-color-selected: rgb(110, 110, 110);--luzmo-color-selected-hover: rgb(70, 70, 70);--luzmo-color-selected-down: rgb(40, 40, 40);--luzmo-color-selected-focus: rgb(70, 70, 70);--luzmo-color-selected-hard: #1e1e1e;--luzmo-color-selected-hard-hover: rgb(0, 0, 0);--luzmo-color-selected-hard-down: rgb(0, 0, 0);--luzmo-color-selected-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(o);
27
27
  }
28
28
  };
29
- P();
30
- const R = ":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))}", C = (o) => {
31
- var i, c, f, a, $, h, d, s, u, m, r, p, z, x, b;
29
+ B();
30
+ const U = ":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 = (o) => {
31
+ var i, c, d, r, k, I, $, m, b, z, a, p, s, u, f;
32
32
  let t;
33
33
  typeof ((i = o.controlInfo) == null ? void 0 : i.extraLabel) == "function" ? t = o.controlInfo.extraLabel(
34
34
  o.options,
35
35
  o.slots,
36
36
  o.theme
37
- ) : typeof ((c = o.controlInfo) == null ? void 0 : c.extraLabel) == "string" && (t = o.controlInfo.extraLabel), typeof t == "string" && (t = ((h = ($ = (a = (f = o.translations) == null ? void 0 : f.options) == null ? void 0 : a[o.optionKey]) == null ? void 0 : $.extraLabel) == null ? void 0 : h[t]) ?? t);
37
+ ) : typeof ((c = o.controlInfo) == null ? void 0 : c.extraLabel) == "string" && (t = o.controlInfo.extraLabel), typeof t == "string" && (t = ((I = (k = (r = (d = o.translations) == null ? void 0 : d.options) == null ? void 0 : r[o.optionKey]) == null ? void 0 : k.extraLabel) == null ? void 0 : I[t]) ?? t);
38
38
  let l;
39
- typeof ((d = o.controlInfo) == null ? void 0 : d.extraLabelTooltip) == "function" ? t = o.controlInfo.extraLabelTooltip(
39
+ typeof (($ = o.controlInfo) == null ? void 0 : $.extraLabelTooltip) == "function" ? t = o.controlInfo.extraLabelTooltip(
40
40
  o.options,
41
41
  o.slots,
42
42
  o.theme
43
- ) : typeof ((s = o.controlInfo) == null ? void 0 : s.extraLabelTooltip) == "string" && (l = o.controlInfo.extraLabelTooltip), typeof l == "string" && (t = ((p = (r = (m = (u = o.translations) == null ? void 0 : u.options) == null ? void 0 : m[o.optionKey]) == null ? void 0 : r.extraLabelTooltip) == null ? void 0 : p[l]) ?? l);
43
+ ) : typeof ((m = o.controlInfo) == null ? void 0 : m.extraLabelTooltip) == "string" && (l = o.controlInfo.extraLabelTooltip), typeof l == "string" && (t = ((p = (a = (z = (b = o.translations) == null ? void 0 : b.options) == null ? void 0 : z[o.optionKey]) == null ? void 0 : a.extraLabelTooltip) == null ? void 0 : p[l]) ?? l);
44
44
  let n;
45
- typeof ((z = o.controlInfo) == null ? void 0 : z.extraLabelHasClickAction) == "function" ? n = o.controlInfo.extraLabelHasClickAction(
45
+ typeof ((s = o.controlInfo) == null ? void 0 : s.extraLabelHasClickAction) == "function" ? n = o.controlInfo.extraLabelHasClickAction(
46
46
  o.options,
47
47
  o.slots,
48
48
  o.theme
49
- ) : typeof ((x = o.controlInfo) == null ? void 0 : x.extraLabelHasClickAction) == "boolean" && (n = o.controlInfo.extraLabelHasClickAction);
50
- const e = typeof ((b = o.controlInfo) == null ? void 0 : b.extraLabelClickAction) == "function" ? () => o.controlInfo.extraLabelClickAction(
49
+ ) : typeof ((u = o.controlInfo) == null ? void 0 : u.extraLabelHasClickAction) == "boolean" && (n = o.controlInfo.extraLabelHasClickAction);
50
+ const e = typeof ((f = o.controlInfo) == null ? void 0 : f.extraLabelClickAction) == "function" ? () => o.controlInfo.extraLabelClickAction(
51
51
  o.options,
52
52
  o.slots,
53
53
  o.theme
@@ -59,7 +59,7 @@ const R = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-fo
59
59
  extraLabelHasClickAction: n,
60
60
  extraLabelClickAction: e
61
61
  };
62
- }, O = (o, t) => {
62
+ }, T = (o, t) => {
63
63
  if (t.includes(".")) {
64
64
  const l = t.split(".");
65
65
  let n = o;
@@ -69,7 +69,7 @@ const R = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-fo
69
69
  return n[l[e]];
70
70
  }
71
71
  return o[t];
72
- }, K = (o) => (t) => {
72
+ }, H = (o) => (t) => {
73
73
  const l = { ...o.options };
74
74
  if (o.optionKey.includes(".")) {
75
75
  const n = o.optionKey.split(".");
@@ -81,140 +81,144 @@ const R = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-fo
81
81
  } else
82
82
  l[o.optionKey] = t.detail.value;
83
83
  return o.changeCallback(l);
84
- }, U = (o) => {
85
- var h, d, s, u, m, r, p, z, x;
86
- const t = ((s = (d = (h = o.translations) == null ? void 0 : h.options) == null ? void 0 : d[o.optionKey]) == null ? void 0 : s.label) ?? ((u = o.controlInfo) == null ? void 0 : u.label) ?? o.optionKey ?? "", l = o.size, n = {};
87
- Object.keys((m = o.controlInfo) == null ? void 0 : m.values).forEach((b) => {
88
- var L, y, k, I, A, T;
89
- n[b] = {
90
- ...(L = o.controlInfo) == null ? void 0 : L.values[b],
91
- label: ((A = (I = (k = (y = o.translations) == null ? void 0 : y.options) == null ? void 0 : k[o.optionKey]) == null ? void 0 : I.enum) == null ? void 0 : A[b]) ?? ((T = o.controlInfo) == null ? void 0 : T.values[b].label)
84
+ }, q = (o) => {
85
+ var $, m, b, z, a, p, s, u, f, x, h, y, L;
86
+ const t = ((b = (m = ($ = o.translations) == null ? void 0 : $.options) == null ? void 0 : m[o.optionKey]) == null ? void 0 : b.label) ?? ((z = o.controlInfo) == null ? void 0 : z.label) ?? o.optionKey ?? "", l = o.size, n = {};
87
+ Object.keys((a = o.controlInfo) == null ? void 0 : a.values).forEach((v) => {
88
+ var C, O, K, A, E, S;
89
+ n[v] = {
90
+ ...(C = o.controlInfo) == null ? void 0 : C.values[v],
91
+ label: ((E = (A = (K = (O = o.translations) == null ? void 0 : O.options) == null ? void 0 : K[o.optionKey]) == null ? void 0 : A.enum) == null ? void 0 : E[v]) ?? ((S = o.controlInfo) == null ? void 0 : S.values[v].label)
92
92
  };
93
93
  });
94
- const e = O(o.options, o.optionKey), {
95
- extraLabel: i,
96
- extraLabelTooltip: c,
97
- extraLabelHasClickAction: f,
98
- extraLabelClickAction: a
99
- } = C(o), $ = K(o);
100
- return v`
94
+ const e = ((u = (s = (p = o.translations) == null ? void 0 : p.options) == null ? void 0 : s[o.optionKey]) == null ? void 0 : u.tooltip) ?? ((f = o.controlInfo) == null ? void 0 : f.tooltip), i = T(o.options, o.optionKey), {
95
+ extraLabel: c,
96
+ extraLabelTooltip: d,
97
+ extraLabelHasClickAction: r,
98
+ extraLabelClickAction: k
99
+ } = w(o), I = H(o);
100
+ return V`
101
101
  <luzmo-edit-option-action-button-group
102
102
  .label=${t}
103
- .value=${e}
103
+ .value=${i}
104
104
  .values=${n}
105
- .default=${(r = o.controlInfo) == null ? void 0 : r.default}
106
- .selects=${(p = o.controlInfo) == null ? void 0 : p.selects}
105
+ .default=${(x = o.controlInfo) == null ? void 0 : x.default}
106
+ .selects=${(h = o.controlInfo) == null ? void 0 : h.selects}
107
107
  .size=${l}
108
- .extraLabel=${i}
109
- .extraLabelTooltip=${c}
110
- .extraLabelHasClickAction=${f}
111
- @extraLabelClick=${a}
112
- @option-changed=${$}
113
- .fromOptionValue=${(z = o.controlInfo) == null ? void 0 : z.fromOptionValue}
114
- .toOptionValue=${(x = o.controlInfo) == null ? void 0 : x.toOptionValue}
108
+ .tooltip=${e}
109
+ .extraLabel=${c}
110
+ .extraLabelTooltip=${d}
111
+ .extraLabelHasClickAction=${r}
112
+ @extraLabelClick=${k}
113
+ @option-changed=${I}
114
+ .fromOptionValue=${(y = o.controlInfo) == null ? void 0 : y.fromOptionValue}
115
+ .toOptionValue=${(L = o.controlInfo) == null ? void 0 : L.toOptionValue}
115
116
  ></luzmo-edit-option-action-button-group>
116
117
  `;
117
- }, q = (o) => {
118
- var d, s, u, m, r, p, z, x;
119
- const t = ((u = (s = (d = o.translations) == null ? void 0 : d.options) == null ? void 0 : s[o.optionKey]) == null ? void 0 : u.label) ?? ((m = o.controlInfo) == null ? void 0 : m.label) ?? o.optionKey ?? "", l = O(o.options, o.optionKey), n = o.size;
120
- let e;
121
- typeof ((r = o.controlInfo) == null ? void 0 : r.default) == "function" ? e = o.controlInfo.default(
118
+ }, D = (o) => {
119
+ var m, b, z, a, p, s, u, f, x, h, y, L;
120
+ const t = ((z = (b = (m = o.translations) == null ? void 0 : m.options) == null ? void 0 : b[o.optionKey]) == null ? void 0 : z.label) ?? ((a = o.controlInfo) == null ? void 0 : a.label) ?? o.optionKey ?? "", l = T(o.options, o.optionKey), n = o.size, e = ((u = (s = (p = o.translations) == null ? void 0 : p.options) == null ? void 0 : s[o.optionKey]) == null ? void 0 : u.tooltip) ?? ((f = o.controlInfo) == null ? void 0 : f.tooltip);
121
+ let i;
122
+ typeof ((x = o.controlInfo) == null ? void 0 : x.default) == "function" ? i = o.controlInfo.default(
122
123
  o.options,
123
124
  o.slots,
124
125
  o.theme
125
- ) : typeof ((p = o.controlInfo) == null ? void 0 : p.default) == "string" && (e = o.controlInfo.default);
126
+ ) : typeof ((h = o.controlInfo) == null ? void 0 : h.default) == "string" && (i = o.controlInfo.default);
126
127
  const {
127
- extraLabel: i,
128
- extraLabelTooltip: c,
129
- extraLabelHasClickAction: f,
130
- extraLabelClickAction: a
131
- } = C(o), $ = K(o);
132
- return v`
128
+ extraLabel: c,
129
+ extraLabelTooltip: d,
130
+ extraLabelHasClickAction: r,
131
+ extraLabelClickAction: k
132
+ } = w(o), I = H(o);
133
+ return V`
133
134
  <luzmo-edit-option-color-picker
134
- .value=${l ?? e}
135
+ .value=${l ?? i}
135
136
  .label=${t}
136
137
  .size=${n}
137
- .extraLabel=${i}
138
- .extraLabelTooltip=${c}
139
- .extraLabelHasClickAction=${f}
138
+ .tooltip=${e}
139
+ .extraLabel=${c}
140
+ .extraLabelTooltip=${d}
141
+ .extraLabelHasClickAction=${r}
140
142
  @extraLabelClick=${() => {
141
- if (typeof a == "function") {
142
- const { options: b } = a();
143
- return o.changeCallback(b);
143
+ if (typeof k == "function") {
144
+ const { options: v } = k();
145
+ return o.changeCallback(v);
144
146
  }
145
147
  }}
146
- @option-changed=${$}
147
- .fromOptionValue=${(z = o.controlInfo) == null ? void 0 : z.fromOptionValue}
148
- .toOptionValue=${(x = o.controlInfo) == null ? void 0 : x.toOptionValue}
148
+ @option-changed=${I}
149
+ .fromOptionValue=${(y = o.controlInfo) == null ? void 0 : y.fromOptionValue}
150
+ .toOptionValue=${(L = o.controlInfo) == null ? void 0 : L.toOptionValue}
149
151
  ></luzmo-edit-option-color-picker>
150
152
  `;
151
- }, D = (o) => {
152
- var d, s, u, m, r, p, z, x, b, L;
153
- const t = ((u = (s = (d = o.translations) == null ? void 0 : d.options) == null ? void 0 : s[o.optionKey]) == null ? void 0 : u.label) ?? ((m = o.controlInfo) == null ? void 0 : m.label) ?? o.optionKey ?? "", l = O(o.options, o.optionKey) ?? {}, n = o.language ?? "en", e = {};
154
- e[n] = ((z = (p = (r = o.translations) == null ? void 0 : r.options) == null ? void 0 : p[o.optionKey]) == null ? void 0 : z.placeholder) ?? ((x = o.controlInfo) == null ? void 0 : x.placeholder) ?? "";
155
- const i = o.size, {
156
- extraLabel: c,
157
- extraLabelTooltip: f,
158
- extraLabelHasClickAction: a,
159
- extraLabelClickAction: $
160
- } = C(o), h = K(o);
161
- return v`
153
+ }, J = (o) => {
154
+ var m, b, z, a, p, s, u, f, x, h, y, L, v, C;
155
+ const t = ((z = (b = (m = o.translations) == null ? void 0 : m.options) == null ? void 0 : b[o.optionKey]) == null ? void 0 : z.label) ?? ((a = o.controlInfo) == null ? void 0 : a.label) ?? o.optionKey ?? "", l = T(o.options, o.optionKey) ?? {}, n = ((u = (s = (p = o.translations) == null ? void 0 : p.options) == null ? void 0 : s[o.optionKey]) == null ? void 0 : u.tooltip) ?? ((f = o.controlInfo) == null ? void 0 : f.tooltip), e = o.language ?? "en", i = {};
156
+ i[e] = ((y = (h = (x = o.translations) == null ? void 0 : x.options) == null ? void 0 : h[o.optionKey]) == null ? void 0 : y.placeholder) ?? ((L = o.controlInfo) == null ? void 0 : L.placeholder) ?? "";
157
+ const c = o.size, {
158
+ extraLabel: d,
159
+ extraLabelTooltip: r,
160
+ extraLabelHasClickAction: k,
161
+ extraLabelClickAction: I
162
+ } = w(o), $ = H(o);
163
+ return V`
162
164
  <luzmo-edit-option-multi-language-field
163
165
  .label=${t}
164
- .placeholder=${e}
166
+ .placeholder=${i}
165
167
  .value=${l}
166
- language=${N(n)}
167
- .size=${i}
168
- .extraLabel=${c}
169
- .extraLabelTooltip=${f}
170
- .extraLabelHasClickAction=${a}
171
- @extraLabelClick=${$}
172
- @option-changed=${h}
173
- .fromOptionValue=${(b = o.controlInfo) == null ? void 0 : b.fromOptionValue}
174
- .toOptionValue=${(L = o.controlInfo) == null ? void 0 : L.toOptionValue}
168
+ language=${R(e)}
169
+ .size=${c}
170
+ .tooltip=${n}
171
+ .extraLabel=${d}
172
+ .extraLabelTooltip=${r}
173
+ .extraLabelHasClickAction=${k}
174
+ @extraLabelClick=${I}
175
+ @option-changed=${$}
176
+ .fromOptionValue=${(v = o.controlInfo) == null ? void 0 : v.fromOptionValue}
177
+ .toOptionValue=${(C = o.controlInfo) == null ? void 0 : C.toOptionValue}
175
178
  ></luzmo-edit-option-multi-language-field>
176
179
  `;
177
- }, J = (o) => {
178
- var u, m, r, p, z, x, b, L, y, k;
179
- const t = ((r = (m = (u = o.translations) == null ? void 0 : u.options) == null ? void 0 : m[o.optionKey]) == null ? void 0 : r.label) ?? ((p = o.controlInfo) == null ? void 0 : p.label) ?? o.optionKey ?? "", l = (z = o.controlInfo) == null ? void 0 : z.min, n = (x = o.controlInfo) == null ? void 0 : x.max, e = (b = o.controlInfo) == null ? void 0 : b.step, i = O(o.options, o.optionKey), c = (L = o.controlInfo) == null ? void 0 : L.default, f = o.size, {
180
- extraLabel: a,
181
- extraLabelTooltip: $,
182
- extraLabelHasClickAction: h,
183
- extraLabelClickAction: d
184
- } = C(o), s = K(o);
185
- return v`
180
+ }, Q = (o) => {
181
+ var z, a, p, s, u, f, x, h, y, L, v, C, O, K;
182
+ const t = ((p = (a = (z = o.translations) == null ? void 0 : z.options) == null ? void 0 : a[o.optionKey]) == null ? void 0 : p.label) ?? ((s = o.controlInfo) == null ? void 0 : s.label) ?? o.optionKey ?? "", l = (u = o.controlInfo) == null ? void 0 : u.min, n = (f = o.controlInfo) == null ? void 0 : f.max, e = (x = o.controlInfo) == null ? void 0 : x.step, i = T(o.options, o.optionKey), c = ((L = (y = (h = o.translations) == null ? void 0 : h.options) == null ? void 0 : y[o.optionKey]) == null ? void 0 : L.tooltip) ?? ((v = o.controlInfo) == null ? void 0 : v.tooltip), d = (C = o.controlInfo) == null ? void 0 : C.default, r = o.size, {
183
+ extraLabel: k,
184
+ extraLabelTooltip: I,
185
+ extraLabelHasClickAction: $,
186
+ extraLabelClickAction: m
187
+ } = w(o), b = H(o);
188
+ return V`
186
189
  <luzmo-edit-option-number-field
187
190
  .value=${i}
188
- .default=${c}
191
+ .default=${d}
189
192
  .min=${l}
190
193
  .max=${n}
191
194
  .step=${e}
192
195
  .label=${t}
193
- .size=${f}
194
- .extraLabel=${a}
195
- .extraLabelTooltip=${$}
196
- .extraLabelHasClickAction=${h}
197
- @extraLabelClick=${d}
198
- @option-changed=${s}
199
- .fromOptionValue=${(y = o.controlInfo) == null ? void 0 : y.fromOptionValue}
200
- .toOptionValue=${(k = o.controlInfo) == null ? void 0 : k.toOptionValue}
196
+ .size=${r}
197
+ .tooltip=${c}
198
+ .extraLabel=${k}
199
+ .extraLabelTooltip=${I}
200
+ .extraLabelHasClickAction=${$}
201
+ @extraLabelClick=${m}
202
+ @option-changed=${b}
203
+ .fromOptionValue=${(O = o.controlInfo) == null ? void 0 : O.fromOptionValue}
204
+ .toOptionValue=${(K = o.controlInfo) == null ? void 0 : K.toOptionValue}
201
205
  ></luzmo-edit-option-number-field>
202
206
  `;
203
- }, Q = (o) => {
204
- var s, u, m, r, p, z, x, b, L, y, k;
205
- const t = ((m = (u = (s = o.translations) == null ? void 0 : s.options) == null ? void 0 : u[o.optionKey]) == null ? void 0 : m.label) ?? ((r = o.controlInfo) == null ? void 0 : r.label) ?? o.optionKey ?? "", l = O(o.options, o.optionKey), n = (p = o.controlInfo) == null ? void 0 : p.default, e = (b = (x = (z = o.translations) == null ? void 0 : z.options) == null ? void 0 : x[o.optionKey]) == null ? void 0 : b.tooltip, i = (L = o.controlInfo) == null ? void 0 : L.enum.reduce(
206
- (I, A) => {
207
- var T, j, M;
208
- return I[A] = ((M = (j = (T = o.translations) == null ? void 0 : T.options) == null ? void 0 : j[o.optionKey]) == null ? void 0 : M.enum[A]) ?? A, I;
207
+ }, W = (o) => {
208
+ var m, b, z, a, p, s, u, f, x, h, y, L;
209
+ const t = ((z = (b = (m = o.translations) == null ? void 0 : m.options) == null ? void 0 : b[o.optionKey]) == null ? void 0 : z.label) ?? ((a = o.controlInfo) == null ? void 0 : a.label) ?? o.optionKey ?? "", l = T(o.options, o.optionKey), n = (p = o.controlInfo) == null ? void 0 : p.default, e = ((f = (u = (s = o.translations) == null ? void 0 : s.options) == null ? void 0 : u[o.optionKey]) == null ? void 0 : f.tooltip) ?? ((x = o.controlInfo) == null ? void 0 : x.tooltip), i = (h = o.controlInfo) == null ? void 0 : h.enum.reduce(
210
+ (v, C) => {
211
+ var O, K, A;
212
+ return v[C] = ((A = (K = (O = o.translations) == null ? void 0 : O.options) == null ? void 0 : K[o.optionKey]) == null ? void 0 : A.enum[C]) ?? C, v;
209
213
  },
210
214
  {}
211
215
  ), c = o.size, {
212
- extraLabel: f,
213
- extraLabelTooltip: a,
214
- extraLabelHasClickAction: $,
215
- extraLabelClickAction: h
216
- } = C(o), d = K(o);
217
- return v`
216
+ extraLabel: d,
217
+ extraLabelTooltip: r,
218
+ extraLabelHasClickAction: k,
219
+ extraLabelClickAction: I
220
+ } = w(o), $ = H(o);
221
+ return V`
218
222
  <luzmo-edit-option-picker
219
223
  .value=${l}
220
224
  .default=${n}
@@ -222,205 +226,209 @@ const R = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-fo
222
226
  .label=${t}
223
227
  .tooltip=${e}
224
228
  .size=${c}
225
- .extraLabel=${f}
226
- .extraLabelTooltip=${a}
227
- .extraLabelHasClickAction=${$}
228
- @extraLabelClick=${h}
229
- @option-changed=${d}
229
+ .extraLabel=${d}
230
+ .extraLabelTooltip=${r}
231
+ .extraLabelHasClickAction=${k}
232
+ @extraLabelClick=${I}
233
+ @option-changed=${$}
230
234
  .fromOptionValue=${(y = o.controlInfo) == null ? void 0 : y.fromOptionValue}
231
- .toOptionValue=${(k = o.controlInfo) == null ? void 0 : k.toOptionValue}
235
+ .toOptionValue=${(L = o.controlInfo) == null ? void 0 : L.toOptionValue}
232
236
  ></luzmo-edit-option-picker>
233
237
  `;
234
- }, W = (o) => {
235
- var s, u, m, r, p, z, x, b, L;
236
- const t = ((m = (u = (s = o.translations) == null ? void 0 : s.options) == null ? void 0 : u[o.optionKey]) == null ? void 0 : m.label) ?? ((r = o.controlInfo) == null ? void 0 : r.label), l = (p = o.controlInfo) == null ? void 0 : p.positions, n = ((z = o.controlInfo) == null ? void 0 : z.defaultPosition) ?? "top-right", e = o.size, i = O(o.options, o.optionKey), c = (x = o.controlInfo) == null ? void 0 : x.tooltip, {
237
- extraLabel: f,
238
- extraLabelTooltip: a,
239
- extraLabelHasClickAction: $,
240
- extraLabelClickAction: h
241
- } = C(o), d = K(o);
242
- return v`
238
+ }, X = (o) => {
239
+ var m, b, z, a, p, s, u, f, x, h, y, L;
240
+ const t = ((z = (b = (m = o.translations) == null ? void 0 : m.options) == null ? void 0 : b[o.optionKey]) == null ? void 0 : z.label) ?? ((a = o.controlInfo) == null ? void 0 : a.label), l = (p = o.controlInfo) == null ? void 0 : p.positions, n = ((s = o.controlInfo) == null ? void 0 : s.defaultPosition) ?? "top-right", e = o.size, i = T(o.options, o.optionKey), c = ((x = (f = (u = o.translations) == null ? void 0 : u.options) == null ? void 0 : f[o.optionKey]) == null ? void 0 : x.tooltip) ?? ((h = o.controlInfo) == null ? void 0 : h.tooltip), {
241
+ extraLabel: d,
242
+ extraLabelTooltip: r,
243
+ extraLabelHasClickAction: k,
244
+ extraLabelClickAction: I
245
+ } = w(o), $ = H(o);
246
+ return V`
243
247
  <luzmo-edit-option-position-picker
244
- .value=${(b = o.controlInfo) == null ? void 0 : b.value}
248
+ .value=${(y = o.controlInfo) == null ? void 0 : y.value}
245
249
  .positions=${l}
246
250
  .defaultPosition=${n}
247
251
  .label=${t}
248
252
  .tooltip=${c}
249
253
  .size=${e}
250
254
  .value=${i}
251
- .extraLabel=${f}
252
- .extraLabelTooltip=${a}
253
- .extraLabelHasClickAction=${$}
254
- @extraLabelClick=${h}
255
- @option-changed=${d}
255
+ .extraLabel=${d}
256
+ .extraLabelTooltip=${r}
257
+ .extraLabelHasClickAction=${k}
258
+ @extraLabelClick=${I}
259
+ @option-changed=${$}
256
260
  .readonly=${(L = o.controlInfo) == null ? void 0 : L.readonly}
257
261
  ></luzmo-edit-option-position-picker>
258
262
  `;
259
- }, X = (o) => {
260
- var $, h, d, s, u, m, r, p;
261
- const t = ((d = (h = ($ = o.translations) == null ? void 0 : $.options) == null ? void 0 : h[o.optionKey]) == null ? void 0 : d.label) ?? ((s = o.controlInfo) == null ? void 0 : s.label), l = O(o.options, o.optionKey), n = o.size, {
262
- extraLabel: e,
263
- extraLabelTooltip: i,
264
- extraLabelHasClickAction: c,
265
- extraLabelClickAction: f
266
- } = C(o), a = K(o);
267
- return v`
263
+ }, Y = (o) => {
264
+ var I, $, m, b, z, a, p, s, u, f, x, h;
265
+ const t = ((m = ($ = (I = o.translations) == null ? void 0 : I.options) == null ? void 0 : $[o.optionKey]) == null ? void 0 : m.label) ?? ((b = o.controlInfo) == null ? void 0 : b.label), l = T(o.options, o.optionKey), n = o.size, e = ((p = (a = (z = o.translations) == null ? void 0 : z.options) == null ? void 0 : a[o.optionKey]) == null ? void 0 : p.tooltip) ?? ((s = o.controlInfo) == null ? void 0 : s.tooltip), {
266
+ extraLabel: i,
267
+ extraLabelTooltip: c,
268
+ extraLabelHasClickAction: d,
269
+ extraLabelClickAction: r
270
+ } = w(o), k = H(o);
271
+ return V`
268
272
  <luzmo-edit-option-positions-number-field
269
273
  .values=${l}
270
274
  .positions=${(u = o.controlInfo) == null ? void 0 : u.positions}
271
- .positionConfiguration=${(m = o.controlInfo) == null ? void 0 : m.positionConfiguration}
275
+ .positionConfiguration=${(f = o.controlInfo) == null ? void 0 : f.positionConfiguration}
272
276
  .label=${t}
273
277
  .size=${n}
274
- .extraLabel=${e}
275
- .extraLabelTooltip=${i}
276
- .extraLabelHasClickAction=${c}
277
- @extraLabelClick=${f}
278
- @option-changed=${a}
279
- .fromOptionValue=${(r = o.controlInfo) == null ? void 0 : r.fromOptionValue}
280
- .toOptionValue=${(p = o.controlInfo) == null ? void 0 : p.toOptionValue}
278
+ .tooltip=${e}
279
+ .extraLabel=${i}
280
+ .extraLabelTooltip=${c}
281
+ .extraLabelHasClickAction=${d}
282
+ @extraLabelClick=${r}
283
+ @option-changed=${k}
284
+ .fromOptionValue=${(x = o.controlInfo) == null ? void 0 : x.fromOptionValue}
285
+ .toOptionValue=${(h = o.controlInfo) == null ? void 0 : h.toOptionValue}
281
286
  ></luzmo-edit-option-positions-number-field>
282
287
  `;
283
- }, Y = (o) => {
284
- var d, s, u, m, r, p, z, x;
285
- const t = ((u = (s = (d = o.translations) == null ? void 0 : d.options) == null ? void 0 : s[o.optionKey]) == null ? void 0 : u.label) ?? ((m = o.controlInfo) == null ? void 0 : m.label) ?? o.optionKey ?? "", l = O(o.options, o.optionKey), n = (r = o == null ? void 0 : o.controlInfo) == null ? void 0 : r.default, e = (p = o.controlInfo) == null ? void 0 : p.enum.reduce(
286
- (b, L) => {
287
- var y, k, I;
288
- return b[L] = ((I = (k = (y = o.translations) == null ? void 0 : y.options) == null ? void 0 : k[o.optionKey]) == null ? void 0 : I.enum[L]) ?? L, b;
288
+ }, Z = (o) => {
289
+ var m, b, z, a, p, s, u, f, x, h, y, L;
290
+ const t = ((z = (b = (m = o.translations) == null ? void 0 : m.options) == null ? void 0 : b[o.optionKey]) == null ? void 0 : z.label) ?? ((a = o.controlInfo) == null ? void 0 : a.label) ?? o.optionKey ?? "", l = T(o.options, o.optionKey), n = (p = o == null ? void 0 : o.controlInfo) == null ? void 0 : p.default, e = (s = o.controlInfo) == null ? void 0 : s.enum.reduce(
291
+ (v, C) => {
292
+ var O, K, A;
293
+ return v[C] = ((A = (K = (O = o.translations) == null ? void 0 : O.options) == null ? void 0 : K[o.optionKey]) == null ? void 0 : A.enum[C]) ?? C, v;
289
294
  },
290
295
  {}
291
- ), i = o.size, {
292
- extraLabel: c,
293
- extraLabelTooltip: f,
294
- extraLabelHasClickAction: a,
295
- extraLabelClickAction: $
296
- } = C(o), h = K(o);
297
- return v`
296
+ ), i = o.size, c = ((x = (f = (u = o.translations) == null ? void 0 : u.options) == null ? void 0 : f[o.optionKey]) == null ? void 0 : x.tooltip) ?? ((h = o.controlInfo) == null ? void 0 : h.tooltip), {
297
+ extraLabel: d,
298
+ extraLabelTooltip: r,
299
+ extraLabelHasClickAction: k,
300
+ extraLabelClickAction: I
301
+ } = w(o), $ = H(o);
302
+ return V`
298
303
  <luzmo-edit-option-radio-button-group
299
304
  .value=${l ?? n}
300
305
  .values=${e}
301
306
  .label=${t}
302
307
  .size=${i}
303
- .extraLabel=${c}
304
- .extraLabelTooltip=${f}
305
- .extraLabelHasClickAction=${a}
306
- @extraLabelClick=${$}
307
- @option-changed=${h}
308
- .fromOptionValue=${(z = o.controlInfo) == null ? void 0 : z.fromOptionValue}
309
- .toOptionValue=${(x = o.controlInfo) == null ? void 0 : x.toOptionValue}
308
+ .tooltip=${c}
309
+ .extraLabel=${d}
310
+ .extraLabelTooltip=${r}
311
+ .extraLabelHasClickAction=${k}
312
+ @extraLabelClick=${I}
313
+ @option-changed=${$}
314
+ .fromOptionValue=${(y = o.controlInfo) == null ? void 0 : y.fromOptionValue}
315
+ .toOptionValue=${(L = o.controlInfo) == null ? void 0 : L.toOptionValue}
310
316
  ></luzmo-edit-option-radio-button-group>
311
317
  `;
312
- }, Z = (o) => {
313
- var r, p, z, x, b, L, y, k, I, A, T, j, M, E;
314
- const t = ((z = (p = (r = o.translations) == null ? void 0 : r.options) == null ? void 0 : p[o.optionKey]) == null ? void 0 : z.label) ?? ((x = o.controlInfo) == null ? void 0 : x.label) ?? o.optionKey ?? "", l = (y = (L = (b = o.translations) == null ? void 0 : b.options) == null ? void 0 : L[o.optionKey]) == null ? void 0 : y.tooltip, n = (k = o.controlInfo) == null ? void 0 : k.min, e = (I = o.controlInfo) == null ? void 0 : I.max, i = (A = o.controlInfo) == null ? void 0 : A.step, c = O(o.options, o.optionKey), f = o.size;
315
- let a;
316
- typeof ((T = o.controlInfo) == null ? void 0 : T.default) == "function" ? a = o.controlInfo.default(
318
+ }, g = (o) => {
319
+ var a, p, s, u, f, x, h, y, L, v, C, O, K, A, E;
320
+ const t = ((s = (p = (a = o.translations) == null ? void 0 : a.options) == null ? void 0 : p[o.optionKey]) == null ? void 0 : s.label) ?? ((u = o.controlInfo) == null ? void 0 : u.label) ?? o.optionKey ?? "", l = ((h = (x = (f = o.translations) == null ? void 0 : f.options) == null ? void 0 : x[o.optionKey]) == null ? void 0 : h.tooltip) ?? ((y = o.controlInfo) == null ? void 0 : y.tooltip), n = (L = o.controlInfo) == null ? void 0 : L.min, e = (v = o.controlInfo) == null ? void 0 : v.max, i = (C = o.controlInfo) == null ? void 0 : C.step, c = T(o.options, o.optionKey), d = o.size;
321
+ let r;
322
+ typeof ((O = o.controlInfo) == null ? void 0 : O.default) == "function" ? r = o.controlInfo.default(
317
323
  o.options,
318
324
  o.slots,
319
325
  o.theme
320
- ) : typeof ((j = o.controlInfo) == null ? void 0 : j.default) == "number" && (a = o.controlInfo.default);
326
+ ) : typeof ((K = o.controlInfo) == null ? void 0 : K.default) == "number" && (r = o.controlInfo.default);
321
327
  const {
322
- extraLabel: $,
323
- extraLabelTooltip: h,
324
- extraLabelHasClickAction: d,
325
- extraLabelClickAction: s
326
- } = C(o), u = K(o);
327
- return v`
328
+ extraLabel: k,
329
+ extraLabelTooltip: I,
330
+ extraLabelHasClickAction: $,
331
+ extraLabelClickAction: m
332
+ } = w(o), b = H(o);
333
+ return V`
328
334
  <luzmo-edit-option-slider
329
335
  .value=${c}
330
- .default=${a}
336
+ .default=${r}
331
337
  .min=${n}
332
338
  .max=${e}
333
339
  .step=${i}
334
340
  .label=${t}
335
341
  .tooltip=${l}
336
- .size=${f}
337
- .extraLabel=${$}
338
- .extraLabelTooltip=${h}
339
- .extraLabelHasClickAction=${d}
342
+ .size=${d}
343
+ .extraLabel=${k}
344
+ .extraLabelTooltip=${I}
345
+ .extraLabelHasClickAction=${$}
340
346
  @extraLabelClick=${() => {
341
- if (typeof s == "function") {
342
- const { options: S } = s();
347
+ if (typeof m == "function") {
348
+ const { options: S } = m();
343
349
  return o.changeCallback(S);
344
350
  }
345
351
  }}
346
- @option-changed=${u}
347
- .fromOptionValue=${(M = o.controlInfo) == null ? void 0 : M.fromOptionValue}
352
+ @option-changed=${b}
353
+ .fromOptionValue=${(A = o.controlInfo) == null ? void 0 : A.fromOptionValue}
348
354
  .toOptionValue=${(E = o.controlInfo) == null ? void 0 : E.toOptionValue}
349
355
  ></luzmo-edit-option-slider>
350
356
  `;
351
- }, g = (o) => {
352
- var h, d, s, u, m, r, p;
353
- const t = ((s = (d = (h = o.translations) == null ? void 0 : h.options) == null ? void 0 : d[o.optionKey]) == null ? void 0 : s.label) ?? ((u = o.controlInfo) == null ? void 0 : u.label) ?? o.optionKey ?? "", l = O(o.options, o.optionKey), n = (m = o.controlInfo) == null ? void 0 : m.default, e = o.size, {
354
- extraLabel: i,
355
- extraLabelTooltip: c,
356
- extraLabelHasClickAction: f,
357
- extraLabelClickAction: a
358
- } = C(o), $ = K(o);
359
- return v`
357
+ }, oo = (o) => {
358
+ var $, m, b, z, a, p, s, u, f, x, h;
359
+ const t = ((b = (m = ($ = o.translations) == null ? void 0 : $.options) == null ? void 0 : m[o.optionKey]) == null ? void 0 : b.label) ?? ((z = o.controlInfo) == null ? void 0 : z.label) ?? o.optionKey ?? "", l = T(o.options, o.optionKey), n = (a = o.controlInfo) == null ? void 0 : a.default, e = o.size, i = ((u = (s = (p = o.translations) == null ? void 0 : p.options) == null ? void 0 : s[o.optionKey]) == null ? void 0 : u.tooltip) ?? ((f = o.controlInfo) == null ? void 0 : f.tooltip), {
360
+ extraLabel: c,
361
+ extraLabelTooltip: d,
362
+ extraLabelHasClickAction: r,
363
+ extraLabelClickAction: k
364
+ } = w(o), I = H(o);
365
+ return V`
360
366
  <luzmo-edit-option-switch
361
367
  .value=${l ?? n ?? !1}
362
368
  .label=${t}
363
369
  .size=${e}
364
- .extraLabel=${i}
365
- .extraLabelTooltip=${c}
366
- .extraLabelHasClickAction=${f}
367
- @extraLabelClick=${a}
368
- @option-changed=${$}
369
- .fromOptionValue=${(r = o.controlInfo) == null ? void 0 : r.fromOptionValue}
370
- .toOptionValue=${(p = o.controlInfo) == null ? void 0 : p.toOptionValue}
370
+ .tooltip=${i}
371
+ .extraLabel=${c}
372
+ .extraLabelTooltip=${d}
373
+ .extraLabelHasClickAction=${r}
374
+ @extraLabelClick=${k}
375
+ @option-changed=${I}
376
+ .fromOptionValue=${(x = o.controlInfo) == null ? void 0 : x.fromOptionValue}
377
+ .toOptionValue=${(h = o.controlInfo) == null ? void 0 : h.toOptionValue}
371
378
  ></luzmo-edit-option-switch>
372
379
  `;
373
- }, oo = (o) => {
374
- var d, s, u, m, r, p, z, x, b, L;
375
- const t = ((u = (s = (d = o.translations) == null ? void 0 : d.options) == null ? void 0 : s[o.optionKey]) == null ? void 0 : u.label) ?? ((m = o.controlInfo) == null ? void 0 : m.label) ?? o.optionKey ?? "", l = o.language ?? "en", n = {};
376
- n[l] = ((z = (p = (r = o.translations) == null ? void 0 : r.options) == null ? void 0 : p[o.optionKey]) == null ? void 0 : z.placeholder) ?? ((x = o.controlInfo) == null ? void 0 : x.placeholder) ?? "";
377
- const e = O(o.options, o.optionKey) ?? "", i = o.size, {
378
- extraLabel: c,
379
- extraLabelTooltip: f,
380
- extraLabelHasClickAction: a,
381
- extraLabelClickAction: $
382
- } = C(o), h = K(o);
383
- return v`
380
+ }, to = (o) => {
381
+ var m, b, z, a, p, s, u, f, x, h, y, L, v, C;
382
+ const t = ((z = (b = (m = o.translations) == null ? void 0 : m.options) == null ? void 0 : b[o.optionKey]) == null ? void 0 : z.label) ?? ((a = o.controlInfo) == null ? void 0 : a.label) ?? o.optionKey ?? "", l = o.language ?? "en", n = {};
383
+ n[l] = ((u = (s = (p = o.translations) == null ? void 0 : p.options) == null ? void 0 : s[o.optionKey]) == null ? void 0 : u.placeholder) ?? ((f = o.controlInfo) == null ? void 0 : f.placeholder) ?? "";
384
+ const e = T(o.options, o.optionKey) ?? "", i = o.size, c = ((y = (h = (x = o.translations) == null ? void 0 : x.options) == null ? void 0 : h[o.optionKey]) == null ? void 0 : y.tooltip) ?? ((L = o.controlInfo) == null ? void 0 : L.tooltip), {
385
+ extraLabel: d,
386
+ extraLabelTooltip: r,
387
+ extraLabelHasClickAction: k,
388
+ extraLabelClickAction: I
389
+ } = w(o), $ = H(o);
390
+ return V`
384
391
  <luzmo-edit-option-text-field
385
392
  .label=${t}
386
393
  .placeholder=${n[l]}
387
394
  .value=${e}
388
395
  .size=${i}
389
- .extraLabel=${c}
390
- .extraLabelTooltip=${f}
391
- .extraLabelHasClickAction=${a}
392
- @extraLabelClick=${$}
393
- @option-changed=${h}
394
- .fromOptionValue=${(b = o.controlInfo) == null ? void 0 : b.fromOptionValue}
395
- .toOptionValue=${(L = o.controlInfo) == null ? void 0 : L.toOptionValue}
396
+ .tooltip=${c}
397
+ .extraLabel=${d}
398
+ .extraLabelTooltip=${r}
399
+ .extraLabelHasClickAction=${k}
400
+ @extraLabelClick=${I}
401
+ @option-changed=${$}
402
+ .fromOptionValue=${(v = o.controlInfo) == null ? void 0 : v.fromOptionValue}
403
+ .toOptionValue=${(C = o.controlInfo) == null ? void 0 : C.toOptionValue}
396
404
  ></luzmo-edit-option-text-field>
397
405
  `;
398
- }, to = (o) => {
406
+ }, eo = (o) => {
399
407
  switch (o.controlType) {
400
408
  case "picker":
401
- return Q(o);
409
+ return W(o);
402
410
  case "slider":
403
- return Z(o);
404
- case "switch":
405
411
  return g(o);
412
+ case "switch":
413
+ return oo(o);
406
414
  case "multi-language-field":
407
- return D(o);
415
+ return J(o);
408
416
  case "text-field":
409
- return oo(o);
417
+ return to(o);
410
418
  case "number-field":
411
- return J(o);
419
+ return Q(o);
412
420
  case "position-picker":
413
- return W(o);
414
- case "positions-number-field":
415
421
  return X(o);
416
- case "radio-button-group":
422
+ case "positions-number-field":
417
423
  return Y(o);
424
+ case "radio-button-group":
425
+ return Z(o);
418
426
  case "color-picker":
419
- return q(o);
427
+ return D(o);
420
428
  case "action-button-group":
421
- return U(o);
429
+ return q(o);
422
430
  }
423
- }, eo = (o, t) => {
431
+ }, no = (o, t) => {
424
432
  const l = (n) => {
425
433
  for (const e of n) {
426
434
  if (e.key === o)
@@ -433,51 +441,79 @@ const R = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-fo
433
441
  }
434
442
  return null;
435
443
  };
436
- for (const n of t) {
437
- const e = l(n.children);
438
- if (e)
439
- return e;
440
- }
444
+ if (t)
445
+ for (const n of t) {
446
+ const e = l(n.children);
447
+ if (e)
448
+ return e;
449
+ }
441
450
  return null;
442
451
  };
443
- var no = Object.defineProperty, H = (o, t, l, n) => {
452
+ var lo = Object.defineProperty, M = (o, t, l, n) => {
444
453
  for (var e = void 0, i = o.length - 1, c; i >= 0; i--)
445
454
  (c = o[i]) && (e = c(t, l, e) || e);
446
- return e && no(t, l, e), e;
455
+ return e && lo(t, l, e), e;
447
456
  };
448
- const _ = class _ extends F {
457
+ const P = class P extends G {
449
458
  constructor() {
450
- super(...arguments), this._loadItemConfig = new B(this, {
459
+ super(...arguments), this._loadItemConfig = new F(this, {
451
460
  task: async ([t, l, n]) => {
452
461
  let e = !1;
453
462
  if (t !== this._itemTypeLoaded) {
454
- const f = /* @__PURE__ */ Object.assign({
455
- "./item-configs/bar-chart.config.ts": () => import("../bar-chart.config-BYIX4E6J.js"),
456
- "./item-configs/column-chart.config.ts": () => import("../column-chart.config-BYIX4E6J.js"),
457
- "./item-configs/donut-chart.config.ts": () => import("../donut-chart.config-3DhKiSSM.js"),
463
+ const d = /* @__PURE__ */ Object.assign({
464
+ "./item-configs/area-chart.config.ts": () => import("../area-chart.config-Ba68ZiSX.js"),
465
+ "./item-configs/bar-chart.config.ts": () => import("../bar-chart.config-CF1i1Imw.js"),
466
+ "./item-configs/bubble-chart.config.ts": () => import("../bubble-chart.config-1MrC55Nb.js"),
467
+ "./item-configs/circle-pack-chart.config.ts": () => import("../circle-pack-chart.config-Bbm2bTgy.js"),
468
+ "./item-configs/column-chart.config.ts": () => import("../column-chart.config-BT1QH4BI.js"),
469
+ "./item-configs/donut-chart.config.ts": () => import("../donut-chart.config-DuJFyp4z.js"),
470
+ "./item-configs/dropdown-filter.config.ts": () => import("../dropdown-filter.config-Drv-A4zw.js"),
458
471
  "./item-configs/imageobject.config.ts": () => import("../imageobject.config-CBfeq5Zw.js"),
459
- "./item-configs/line-chart.config.ts": () => import("../line-chart.config-DBw4A3Rf.js"),
472
+ "./item-configs/line-chart.config.ts": () => import("../line-chart.config-BB_thZtA.js"),
473
+ "./item-configs/ohlc-chart.config.ts": () => import("../ohlc-chart.config-D9npwajt.js"),
474
+ "./item-configs/radar-chart.config.ts": () => import("../radar-chart.config-DfID1TZ-.js"),
475
+ "./item-configs/sankey-diagram.config.ts": () => import("../sankey-diagram.config-BVjCEw5M.js"),
476
+ "./item-configs/search-filter.config.ts": () => import("../search-filter.config-baX2Vdul.js"),
477
+ "./item-configs/slicer-filter.config.ts": () => import("../slicer-filter.config-A3YK_KZn.js"),
478
+ "./item-configs/slider-filter.config.ts": () => import("../slider-filter.config-C-zvfTNl.js"),
460
479
  "./item-configs/spacer.config.ts": () => import("../spacer.config-Br2Dm5Uv.js"),
480
+ "./item-configs/sunburst-chart.config.ts": () => import("../sunburst-chart.config-VZqDthcz.js"),
461
481
  "./item-configs/textobject.config.ts": () => import("../textobject.config-DTDqt0ci.js"),
462
- "./item-configs/videoobject.config.ts": () => import("../videoobject.config-CbtNZAEK.js")
482
+ "./item-configs/treemap-chart.config.ts": () => import("../treemap-chart.config-BalwwrhW.js"),
483
+ "./item-configs/videoobject.config.ts": () => import("../videoobject.config-CbtNZAEK.js"),
484
+ "./item-configs/wordcloud-chart.config.ts": () => import("../wordcloud-chart.config-CQs8YFfd.js")
463
485
  });
464
- if (f[`./item-configs/${t}.config.ts`]) {
465
- const a = await f[`./item-configs/${t}.config.ts`]();
466
- this._optionsConfig = (a == null ? void 0 : a.default) ?? {};
467
- }
486
+ if (d[`./item-configs/${t}.config.ts`])
487
+ try {
488
+ const r = await d[`./item-configs/${t}.config.ts`]();
489
+ this._optionsConfig = (r == null ? void 0 : r.default) ?? {};
490
+ } catch {
491
+ this._optionsConfig = {};
492
+ }
493
+ else
494
+ this._optionsConfig = {};
468
495
  e = !0;
469
496
  }
470
497
  if (n !== this._languageLoaded || e) {
471
- const f = /* @__PURE__ */ Object.assign({ "./item-translations/bar-chart.en.ts": () => import("../bar-chart.en-Crc8tYUJ.js"), "./item-translations/bar-chart.fr.ts": () => import("../bar-chart.fr-BwiGRlQf.js"), "./item-translations/bar-chart.nl.ts": () => import("../bar-chart.nl-C9EOP2kE.js"), "./item-translations/column-chart.en.ts": () => import("../column-chart.en-Crc8tYUJ.js"), "./item-translations/column-chart.fr.ts": () => import("../column-chart.fr-BwiGRlQf.js"), "./item-translations/column-chart.nl.ts": () => import("../column-chart.nl-C9EOP2kE.js"), "./item-translations/donut-chart.en.ts": () => import("../donut-chart.en-CrUf4CJ9.js"), "./item-translations/donut-chart.fr.ts": () => import("../donut-chart.fr-DVfZwZny.js"), "./item-translations/donut-chart.nl.ts": () => import("../donut-chart.nl-B13jr7SK.js"), "./item-translations/imageobject.en.ts": () => import("../imageobject.en-BMmV-4O-.js"), "./item-translations/imageobject.fr.ts": () => import("../imageobject.fr-DRE3zImB.js"), "./item-translations/imageobject.nl.ts": () => import("../imageobject.nl-D20hki6i.js"), "./item-translations/textobject.en.ts": () => import("../textobject.en-BQqHFc7M.js"), "./item-translations/textobject.fr.ts": () => import("../textobject.fr-VPJ3bDOM.js"), "./item-translations/textobject.nl.ts": () => import("../textobject.nl-V03mmGmH.js") });
472
- if (f[`./item-translations/${t}.${n}.ts`]) {
473
- const a = await f[`./item-translations/${t}.${n}.ts`]();
474
- this._translations = (a == null ? void 0 : a.default) ?? {};
475
- }
498
+ const d = /* @__PURE__ */ Object.assign({ "./item-translations/bar-chart.en.ts": () => import("../bar-chart.en-Crc8tYUJ.js"), "./item-translations/bar-chart.fr.ts": () => import("../bar-chart.fr-BwiGRlQf.js"), "./item-translations/bar-chart.nl.ts": () => import("../bar-chart.nl-C9EOP2kE.js"), "./item-translations/column-chart.en.ts": () => import("../column-chart.en-Crc8tYUJ.js"), "./item-translations/column-chart.fr.ts": () => import("../column-chart.fr-BwiGRlQf.js"), "./item-translations/column-chart.nl.ts": () => import("../column-chart.nl-C9EOP2kE.js"), "./item-translations/donut-chart.en.ts": () => import("../donut-chart.en-CrUf4CJ9.js"), "./item-translations/donut-chart.fr.ts": () => import("../donut-chart.fr-DVfZwZny.js"), "./item-translations/donut-chart.nl.ts": () => import("../donut-chart.nl-B13jr7SK.js"), "./item-translations/imageobject.en.ts": () => import("../imageobject.en-BMmV-4O-.js"), "./item-translations/imageobject.fr.ts": () => import("../imageobject.fr-DRE3zImB.js"), "./item-translations/imageobject.nl.ts": () => import("../imageobject.nl-D20hki6i.js"), "./item-translations/textobject.en.ts": () => import("../textobject.en-BQqHFc7M.js"), "./item-translations/textobject.fr.ts": () => import("../textobject.fr-VPJ3bDOM.js"), "./item-translations/textobject.nl.ts": () => import("../textobject.nl-V03mmGmH.js") });
499
+ if (d[`./item-translations/${t}.${n}.ts`])
500
+ try {
501
+ const r = await d[`./item-translations/${t}.${n}.ts`]();
502
+ this._translations = (r == null ? void 0 : r.default) ?? {};
503
+ } catch (r) {
504
+ this._translations = {}, console.error(r);
505
+ }
506
+ else
507
+ this._translations = {};
476
508
  }
477
- const i = eo(l, this._optionsConfig), c = i == null ? void 0 : i.type;
509
+ const i = no(l, this._optionsConfig), c = i == null ? void 0 : i.type;
478
510
  if (c !== this._controlTypeLoaded) {
479
- const f = /* @__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") });
480
- f[`../edit-option-${c}/index.ts`] && await f[`../edit-option-${c}/index.ts`](), this._controlTypeLoaded = c;
511
+ 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") });
512
+ try {
513
+ d[`../edit-option-${c}/index.ts`] && (await d[`../edit-option-${c}/index.ts`](), this._controlTypeLoaded = c);
514
+ } catch (r) {
515
+ console.error(r);
516
+ }
481
517
  }
482
518
  return i;
483
519
  },
@@ -497,8 +533,8 @@ const _ = class _ extends F {
497
533
  }
498
534
  render() {
499
535
  return this._loadItemConfig.render({
500
- pending: () => v`<p>Loading...</p>`,
501
- complete: (t) => to({
536
+ pending: () => V`<p>Loading...</p>`,
537
+ complete: (t) => eo({
502
538
  controlType: t == null ? void 0 : t.type,
503
539
  optionKey: this.optionKey,
504
540
  controlInfo: t,
@@ -510,34 +546,34 @@ const _ = class _ extends F {
510
546
  size: this.size,
511
547
  changeCallback: this.changedOptions
512
548
  }),
513
- error: (t) => (console.error(t), v``)
549
+ error: (t) => (console.error(t), V``)
514
550
  });
515
551
  }
516
552
  };
517
- _.styles = G(R);
518
- let V = _;
519
- H([
520
- w({ type: String, reflect: !0 })
521
- ], V.prototype, "language");
522
- H([
523
- w({ type: String, reflect: !0, attribute: "item-type" })
524
- ], V.prototype, "itemType");
525
- H([
526
- w({ type: String, reflect: !0, attribute: "option-key" })
527
- ], V.prototype, "optionKey");
528
- H([
529
- w({ type: Object })
530
- ], V.prototype, "options");
531
- H([
532
- w({ type: Object })
533
- ], V.prototype, "slots");
534
- H([
535
- w({ type: Object })
536
- ], V.prototype, "theme");
537
- H([
538
- w({ type: String, reflect: !0 })
539
- ], V.prototype, "size");
540
- customElements.get("luzmo-edit-option") || customElements.define("luzmo-edit-option", V);
553
+ P.styles = N(U);
554
+ let j = P;
555
+ M([
556
+ _({ type: String, reflect: !0 })
557
+ ], j.prototype, "language");
558
+ M([
559
+ _({ type: String, reflect: !0, attribute: "item-type" })
560
+ ], j.prototype, "itemType");
561
+ M([
562
+ _({ type: String, reflect: !0, attribute: "option-key" })
563
+ ], j.prototype, "optionKey");
564
+ M([
565
+ _({ type: Object })
566
+ ], j.prototype, "options");
567
+ M([
568
+ _({ type: Object })
569
+ ], j.prototype, "slots");
570
+ M([
571
+ _({ type: Object })
572
+ ], j.prototype, "theme");
573
+ M([
574
+ _({ type: String, reflect: !0 })
575
+ ], j.prototype, "size");
576
+ customElements.get("luzmo-edit-option") || customElements.define("luzmo-edit-option", j);
541
577
  export {
542
- V as LuzmoEditOption
578
+ j as LuzmoEditOption
543
579
  };