@luzmo/analytics-components-kit 1.0.1-alpha.17 → 1.0.1-alpha.18

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 (25) hide show
  1. package/components/conditional-number-options.config-B24MqnZj.js +151 -0
  2. package/components/conditional-number-options.config-C1eERsoe.cjs +20 -0
  3. package/components/conditional-number-options.de-BJcjBZY1.js +74 -0
  4. package/components/conditional-number-options.de-CFnufi0r.cjs +20 -0
  5. package/components/conditional-number-options.en-WSrIzRGJ.js +74 -0
  6. package/components/conditional-number-options.en-Wd-0YtdE.cjs +20 -0
  7. package/components/conditional-number-options.es-BKqT0zog.js +74 -0
  8. package/components/conditional-number-options.es-BTDTe5SF.cjs +20 -0
  9. package/components/conditional-number-options.fr-CZ-9jzPm.cjs +20 -0
  10. package/components/conditional-number-options.fr-D2r7Azy8.js +74 -0
  11. package/components/conditional-number-options.nl-CfRYL6o1.cjs +20 -0
  12. package/components/conditional-number-options.nl-pkRI1tLZ.js +74 -0
  13. package/components/edit-item/index.cjs +4 -4
  14. package/components/edit-item/index.js +6 -0
  15. package/components/edit-option/index.cjs +24 -24
  16. package/components/edit-option/index.js +40 -34
  17. package/components/edit-option-action-button-group/index.cjs +7 -7
  18. package/components/edit-option-action-button-group/index.js +56 -54
  19. package/item-definitions/conditional-number/conditional-number-options.config.d.ts +135 -0
  20. package/item-definitions/conditional-number/i18n/conditional-number-options.de.d.ts +53 -0
  21. package/item-definitions/conditional-number/i18n/conditional-number-options.en.d.ts +53 -0
  22. package/item-definitions/conditional-number/i18n/conditional-number-options.es.d.ts +53 -0
  23. package/item-definitions/conditional-number/i18n/conditional-number-options.fr.d.ts +53 -0
  24. package/item-definitions/conditional-number/i18n/conditional-number-options.nl.d.ts +53 -0
  25. package/package.json +1 -1
@@ -28,7 +28,7 @@ const g = () => {
28
28
  };
29
29
  g();
30
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))}", A = (o) => {
31
- var l, r, u, s, L, v, $, d, b, h, c, p, a, m, f;
31
+ var l, r, u, s, L, v, $, f, b, h, c, p, a, m, d;
32
32
  let t;
33
33
  typeof ((l = o.controlInfo) == null ? void 0 : l.extraLabel) == "function" ? t = o.controlInfo.extraLabel(
34
34
  o.options,
@@ -40,14 +40,14 @@ const R = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-fo
40
40
  o.options,
41
41
  o.slots,
42
42
  o.theme
43
- ) : typeof ((d = o.controlInfo) == null ? void 0 : d.extraLabelTooltip) == "string" && (e = o.controlInfo.extraLabelTooltip), typeof e == "string" && (t = ((p = (c = (h = (b = o.translations) == null ? void 0 : b.options) == null ? void 0 : h[o.optionKey]) == null ? void 0 : c.extraLabelTooltip) == null ? void 0 : p[e]) ?? e);
43
+ ) : typeof ((f = o.controlInfo) == null ? void 0 : f.extraLabelTooltip) == "string" && (e = o.controlInfo.extraLabelTooltip), typeof e == "string" && (t = ((p = (c = (h = (b = o.translations) == null ? void 0 : b.options) == null ? void 0 : h[o.optionKey]) == null ? void 0 : c.extraLabelTooltip) == null ? void 0 : p[e]) ?? e);
44
44
  let n;
45
45
  typeof ((a = o.controlInfo) == null ? void 0 : a.extraLabelHasClickAction) == "function" ? n = o.controlInfo.extraLabelHasClickAction(
46
46
  o.options,
47
47
  o.slots,
48
48
  o.theme
49
49
  ) : typeof ((m = o.controlInfo) == null ? void 0 : m.extraLabelHasClickAction) == "boolean" && (n = o.controlInfo.extraLabelHasClickAction);
50
- const i = typeof ((f = o.controlInfo) == null ? void 0 : f.extraLabelClickAction) == "function" ? () => o.controlInfo.extraLabelClickAction(
50
+ const i = typeof ((d = o.controlInfo) == null ? void 0 : d.extraLabelClickAction) == "function" ? () => o.controlInfo.extraLabelClickAction(
51
51
  o.options,
52
52
  o.slots,
53
53
  o.theme
@@ -82,8 +82,8 @@ const R = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-fo
82
82
  e[o.optionKey] = t.detail.value;
83
83
  return o.changeCallback(e);
84
84
  }, U = (o) => {
85
- var $, d, b, h, c, p, a, m, f, x, z, y, k;
86
- const t = ((b = (d = ($ = o.translations) == null ? void 0 : $.options) == null ? void 0 : d[o.optionKey]) == null ? void 0 : b.label) ?? ((h = o.controlInfo) == null ? void 0 : h.label) ?? o.optionKey ?? "", e = o.size, n = {};
85
+ var $, f, b, h, c, p, a, m, d, x, z, y, k;
86
+ const t = ((b = (f = ($ = o.translations) == null ? void 0 : $.options) == null ? void 0 : f[o.optionKey]) == null ? void 0 : b.label) ?? ((h = o.controlInfo) == null ? void 0 : h.label) ?? o.optionKey ?? "", e = o.size, n = {};
87
87
  Object.keys((c = o.controlInfo) == null ? void 0 : c.values).forEach((I) => {
88
88
  var C, O, K, V, E, S;
89
89
  n[I] = {
@@ -91,7 +91,7 @@ const R = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-fo
91
91
  label: ((E = (V = (K = (O = o.translations) == null ? void 0 : O.options) == null ? void 0 : K[o.optionKey]) == null ? void 0 : V.enum) == null ? void 0 : E[I]) ?? ((S = o.controlInfo) == null ? void 0 : S.values[I].label)
92
92
  };
93
93
  });
94
- const i = ((m = (a = (p = o.translations) == null ? void 0 : p.options) == null ? void 0 : a[o.optionKey]) == null ? void 0 : m.tooltip) ?? ((f = o.controlInfo) == null ? void 0 : f.tooltip), l = H(o.options, o.optionKey), {
94
+ const i = ((m = (a = (p = o.translations) == null ? void 0 : p.options) == null ? void 0 : a[o.optionKey]) == null ? void 0 : m.tooltip) ?? ((d = o.controlInfo) == null ? void 0 : d.tooltip), l = H(o.options, o.optionKey), {
95
95
  extraLabel: r,
96
96
  extraLabelTooltip: u,
97
97
  extraLabelHasClickAction: s,
@@ -116,8 +116,8 @@ const R = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-fo
116
116
  ></luzmo-edit-option-action-button-group>
117
117
  `;
118
118
  }, q = (o) => {
119
- var d, b, h, c, p, a, m, f, x, z, y, k;
120
- const t = ((h = (b = (d = o.translations) == null ? void 0 : d.options) == null ? void 0 : b[o.optionKey]) == null ? void 0 : h.label) ?? ((c = o.controlInfo) == null ? void 0 : c.label) ?? o.optionKey ?? "", e = H(o.options, o.optionKey), n = o.size, i = ((m = (a = (p = o.translations) == null ? void 0 : p.options) == null ? void 0 : a[o.optionKey]) == null ? void 0 : m.tooltip) ?? ((f = o.controlInfo) == null ? void 0 : f.tooltip);
119
+ var f, b, h, c, p, a, m, d, x, z, y, k;
120
+ const t = ((h = (b = (f = o.translations) == null ? void 0 : f.options) == null ? void 0 : b[o.optionKey]) == null ? void 0 : h.label) ?? ((c = o.controlInfo) == null ? void 0 : c.label) ?? o.optionKey ?? "", e = H(o.options, o.optionKey), n = o.size, i = ((m = (a = (p = o.translations) == null ? void 0 : p.options) == null ? void 0 : a[o.optionKey]) == null ? void 0 : m.tooltip) ?? ((d = o.controlInfo) == null ? void 0 : d.tooltip);
121
121
  let l;
122
122
  typeof ((x = o.controlInfo) == null ? void 0 : x.default) == "function" ? l = o.controlInfo.default(
123
123
  o.options,
@@ -151,8 +151,8 @@ const R = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-fo
151
151
  ></luzmo-edit-option-color-picker>
152
152
  `;
153
153
  }, D = (o) => {
154
- var d, b, h, c, p, a, m, f, x, z, y, k, I, C;
155
- const t = ((h = (b = (d = o.translations) == null ? void 0 : d.options) == null ? void 0 : b[o.optionKey]) == null ? void 0 : h.label) ?? ((c = o.controlInfo) == null ? void 0 : c.label) ?? o.optionKey ?? "", e = H(o.options, o.optionKey) ?? {}, n = ((m = (a = (p = o.translations) == null ? void 0 : p.options) == null ? void 0 : a[o.optionKey]) == null ? void 0 : m.tooltip) ?? ((f = o.controlInfo) == null ? void 0 : f.tooltip), i = o.language ?? "en", l = {};
154
+ var f, b, h, c, p, a, m, d, x, z, y, k, I, C;
155
+ const t = ((h = (b = (f = o.translations) == null ? void 0 : f.options) == null ? void 0 : b[o.optionKey]) == null ? void 0 : h.label) ?? ((c = o.controlInfo) == null ? void 0 : c.label) ?? o.optionKey ?? "", e = H(o.options, o.optionKey) ?? {}, n = ((m = (a = (p = o.translations) == null ? void 0 : p.options) == null ? void 0 : a[o.optionKey]) == null ? void 0 : m.tooltip) ?? ((d = o.controlInfo) == null ? void 0 : d.tooltip), i = o.language ?? "en", l = {};
156
156
  l[i] = ((y = (z = (x = o.translations) == null ? void 0 : x.options) == null ? void 0 : z[o.optionKey]) == null ? void 0 : y.placeholder) ?? ((k = o.controlInfo) == null ? void 0 : k.placeholder) ?? "";
157
157
  const r = o.size, {
158
158
  extraLabel: u,
@@ -178,12 +178,12 @@ const R = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-fo
178
178
  ></luzmo-edit-option-multi-language-field>
179
179
  `;
180
180
  }, J = (o) => {
181
- var h, c, p, a, m, f, x, z, y, k, I, C, O, K;
182
- const t = ((p = (c = (h = o.translations) == null ? void 0 : h.options) == null ? void 0 : c[o.optionKey]) == null ? void 0 : p.label) ?? ((a = o.controlInfo) == null ? void 0 : a.label) ?? o.optionKey ?? "", e = (m = o.controlInfo) == null ? void 0 : m.min, n = (f = o.controlInfo) == null ? void 0 : f.max, i = (x = o.controlInfo) == null ? void 0 : x.step, l = H(o.options, o.optionKey), r = ((k = (y = (z = o.translations) == null ? void 0 : z.options) == null ? void 0 : y[o.optionKey]) == null ? void 0 : k.tooltip) ?? ((I = o.controlInfo) == null ? void 0 : I.tooltip), u = (C = o.controlInfo) == null ? void 0 : C.default, s = o.size, {
181
+ var h, c, p, a, m, d, x, z, y, k, I, C, O, K;
182
+ const t = ((p = (c = (h = o.translations) == null ? void 0 : h.options) == null ? void 0 : c[o.optionKey]) == null ? void 0 : p.label) ?? ((a = o.controlInfo) == null ? void 0 : a.label) ?? o.optionKey ?? "", e = (m = o.controlInfo) == null ? void 0 : m.min, n = (d = o.controlInfo) == null ? void 0 : d.max, i = (x = o.controlInfo) == null ? void 0 : x.step, l = H(o.options, o.optionKey), r = ((k = (y = (z = o.translations) == null ? void 0 : z.options) == null ? void 0 : y[o.optionKey]) == null ? void 0 : k.tooltip) ?? ((I = o.controlInfo) == null ? void 0 : I.tooltip), u = (C = o.controlInfo) == null ? void 0 : C.default, s = o.size, {
183
183
  extraLabel: L,
184
184
  extraLabelTooltip: v,
185
185
  extraLabelHasClickAction: $,
186
- extraLabelClickAction: d
186
+ extraLabelClickAction: f
187
187
  } = A(o), b = T(o);
188
188
  return w`
189
189
  <luzmo-edit-option-number-field
@@ -198,15 +198,15 @@ const R = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-fo
198
198
  .extraLabel=${L}
199
199
  .extraLabelTooltip=${v}
200
200
  .extraLabelHasClickAction=${$}
201
- @extraLabelClick=${d}
201
+ @extraLabelClick=${f}
202
202
  @option-changed=${b}
203
203
  .fromOptionValue=${(O = o.controlInfo) == null ? void 0 : O.fromOptionValue}
204
204
  .toOptionValue=${(K = o.controlInfo) == null ? void 0 : K.toOptionValue}
205
205
  ></luzmo-edit-option-number-field>
206
206
  `;
207
207
  }, Q = (o) => {
208
- var d, b, h, c, p, a, m, f, x, z, y, k;
209
- const t = ((h = (b = (d = o.translations) == null ? void 0 : d.options) == null ? void 0 : b[o.optionKey]) == null ? void 0 : h.label) ?? ((c = o.controlInfo) == null ? void 0 : c.label) ?? o.optionKey ?? "", e = H(o.options, o.optionKey), n = (p = o.controlInfo) == null ? void 0 : p.default, i = ((f = (m = (a = o.translations) == null ? void 0 : a.options) == null ? void 0 : m[o.optionKey]) == null ? void 0 : f.tooltip) ?? ((x = o.controlInfo) == null ? void 0 : x.tooltip), l = (z = o.controlInfo) == null ? void 0 : z.enum.reduce(
208
+ var f, b, h, c, p, a, m, d, x, z, y, k;
209
+ const t = ((h = (b = (f = o.translations) == null ? void 0 : f.options) == null ? void 0 : b[o.optionKey]) == null ? void 0 : h.label) ?? ((c = o.controlInfo) == null ? void 0 : c.label) ?? o.optionKey ?? "", e = H(o.options, o.optionKey), n = (p = o.controlInfo) == null ? void 0 : p.default, i = ((d = (m = (a = o.translations) == null ? void 0 : a.options) == null ? void 0 : m[o.optionKey]) == null ? void 0 : d.tooltip) ?? ((x = o.controlInfo) == null ? void 0 : x.tooltip), l = (z = o.controlInfo) == null ? void 0 : z.enum.reduce(
210
210
  (I, C) => {
211
211
  var O, K, V;
212
212
  return I[C] = ((V = (K = (O = o.translations) == null ? void 0 : O.options) == null ? void 0 : K[o.optionKey]) == null ? void 0 : V.enum[C]) ?? C, I;
@@ -236,8 +236,8 @@ const R = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-fo
236
236
  ></luzmo-edit-option-picker>
237
237
  `;
238
238
  }, W = (o) => {
239
- var d, b, h, c, p, a, m, f, x, z, y, k;
240
- const t = ((h = (b = (d = o.translations) == null ? void 0 : d.options) == null ? void 0 : b[o.optionKey]) == null ? void 0 : h.label) ?? ((c = o.controlInfo) == null ? void 0 : c.label), e = (p = o.controlInfo) == null ? void 0 : p.positions, n = ((a = o.controlInfo) == null ? void 0 : a.defaultPosition) ?? "top-right", i = o.size, l = H(o.options, o.optionKey), r = ((x = (f = (m = o.translations) == null ? void 0 : m.options) == null ? void 0 : f[o.optionKey]) == null ? void 0 : x.tooltip) ?? ((z = o.controlInfo) == null ? void 0 : z.tooltip), {
239
+ var f, b, h, c, p, a, m, d, x, z, y, k;
240
+ const t = ((h = (b = (f = o.translations) == null ? void 0 : f.options) == null ? void 0 : b[o.optionKey]) == null ? void 0 : h.label) ?? ((c = o.controlInfo) == null ? void 0 : c.label), e = (p = o.controlInfo) == null ? void 0 : p.positions, n = ((a = o.controlInfo) == null ? void 0 : a.defaultPosition) ?? "top-right", i = o.size, l = H(o.options, o.optionKey), r = ((x = (d = (m = o.translations) == null ? void 0 : m.options) == null ? void 0 : d[o.optionKey]) == null ? void 0 : x.tooltip) ?? ((z = o.controlInfo) == null ? void 0 : z.tooltip), {
241
241
  extraLabel: u,
242
242
  extraLabelTooltip: s,
243
243
  extraLabelHasClickAction: L,
@@ -261,8 +261,8 @@ const R = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-fo
261
261
  ></luzmo-edit-option-position-picker>
262
262
  `;
263
263
  }, X = (o) => {
264
- var v, $, d, b, h, c, p, a, m, f, x, z;
265
- const t = ((d = ($ = (v = o.translations) == null ? void 0 : v.options) == null ? void 0 : $[o.optionKey]) == null ? void 0 : d.label) ?? ((b = o.controlInfo) == null ? void 0 : b.label), e = H(o.options, o.optionKey), n = o.size, i = ((p = (c = (h = o.translations) == null ? void 0 : h.options) == null ? void 0 : c[o.optionKey]) == null ? void 0 : p.tooltip) ?? ((a = o.controlInfo) == null ? void 0 : a.tooltip), {
264
+ var v, $, f, b, h, c, p, a, m, d, x, z;
265
+ const t = ((f = ($ = (v = o.translations) == null ? void 0 : v.options) == null ? void 0 : $[o.optionKey]) == null ? void 0 : f.label) ?? ((b = o.controlInfo) == null ? void 0 : b.label), e = H(o.options, o.optionKey), n = o.size, i = ((p = (c = (h = o.translations) == null ? void 0 : h.options) == null ? void 0 : c[o.optionKey]) == null ? void 0 : p.tooltip) ?? ((a = o.controlInfo) == null ? void 0 : a.tooltip), {
266
266
  extraLabel: l,
267
267
  extraLabelTooltip: r,
268
268
  extraLabelHasClickAction: u,
@@ -272,7 +272,7 @@ const R = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-fo
272
272
  <luzmo-edit-option-positions-number-field
273
273
  .values=${e}
274
274
  .positions=${(m = o.controlInfo) == null ? void 0 : m.positions}
275
- .positionConfiguration=${(f = o.controlInfo) == null ? void 0 : f.positionConfiguration}
275
+ .positionConfiguration=${(d = o.controlInfo) == null ? void 0 : d.positionConfiguration}
276
276
  .label=${t}
277
277
  .size=${n}
278
278
  .tooltip=${i}
@@ -286,14 +286,14 @@ const R = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-fo
286
286
  ></luzmo-edit-option-positions-number-field>
287
287
  `;
288
288
  }, Y = (o) => {
289
- var d, b, h, c, p, a, m, f, x, z, y, k;
290
- const t = ((h = (b = (d = o.translations) == null ? void 0 : d.options) == null ? void 0 : b[o.optionKey]) == null ? void 0 : h.label) ?? ((c = o.controlInfo) == null ? void 0 : c.label) ?? o.optionKey ?? "", e = H(o.options, o.optionKey), n = (p = o == null ? void 0 : o.controlInfo) == null ? void 0 : p.default, i = (a = o.controlInfo) == null ? void 0 : a.enum.reduce(
289
+ var f, b, h, c, p, a, m, d, x, z, y, k;
290
+ const t = ((h = (b = (f = o.translations) == null ? void 0 : f.options) == null ? void 0 : b[o.optionKey]) == null ? void 0 : h.label) ?? ((c = o.controlInfo) == null ? void 0 : c.label) ?? o.optionKey ?? "", e = H(o.options, o.optionKey), n = (p = o == null ? void 0 : o.controlInfo) == null ? void 0 : p.default, i = (a = o.controlInfo) == null ? void 0 : a.enum.reduce(
291
291
  (I, C) => {
292
292
  var O, K, V;
293
293
  return I[C] = ((V = (K = (O = o.translations) == null ? void 0 : O.options) == null ? void 0 : K[o.optionKey]) == null ? void 0 : V.enum[C]) ?? C, I;
294
294
  },
295
295
  {}
296
- ), l = o.size, r = ((x = (f = (m = o.translations) == null ? void 0 : m.options) == null ? void 0 : f[o.optionKey]) == null ? void 0 : x.tooltip) ?? ((z = o.controlInfo) == null ? void 0 : z.tooltip), {
296
+ ), l = o.size, r = ((x = (d = (m = o.translations) == null ? void 0 : m.options) == null ? void 0 : d[o.optionKey]) == null ? void 0 : x.tooltip) ?? ((z = o.controlInfo) == null ? void 0 : z.tooltip), {
297
297
  extraLabel: u,
298
298
  extraLabelTooltip: s,
299
299
  extraLabelHasClickAction: L,
@@ -316,8 +316,8 @@ const R = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-fo
316
316
  ></luzmo-edit-option-radio-button-group>
317
317
  `;
318
318
  }, Z = (o) => {
319
- var c, p, a, m, f, x, z, y, k, I, C, O, K, V, E;
320
- const t = ((a = (p = (c = o.translations) == null ? void 0 : c.options) == null ? void 0 : p[o.optionKey]) == null ? void 0 : a.label) ?? ((m = o.controlInfo) == null ? void 0 : m.label) ?? o.optionKey ?? "", e = ((z = (x = (f = o.translations) == null ? void 0 : f.options) == null ? void 0 : x[o.optionKey]) == null ? void 0 : z.tooltip) ?? ((y = o.controlInfo) == null ? void 0 : y.tooltip), n = (k = o.controlInfo) == null ? void 0 : k.min, i = (I = o.controlInfo) == null ? void 0 : I.max, l = (C = o.controlInfo) == null ? void 0 : C.step, r = H(o.options, o.optionKey), u = o.size;
319
+ var c, p, a, m, d, x, z, y, k, I, C, O, K, V, E;
320
+ const t = ((a = (p = (c = o.translations) == null ? void 0 : c.options) == null ? void 0 : p[o.optionKey]) == null ? void 0 : a.label) ?? ((m = o.controlInfo) == null ? void 0 : m.label) ?? o.optionKey ?? "", e = ((z = (x = (d = o.translations) == null ? void 0 : d.options) == null ? void 0 : x[o.optionKey]) == null ? void 0 : z.tooltip) ?? ((y = o.controlInfo) == null ? void 0 : y.tooltip), n = (k = o.controlInfo) == null ? void 0 : k.min, i = (I = o.controlInfo) == null ? void 0 : I.max, l = (C = o.controlInfo) == null ? void 0 : C.step, r = H(o.options, o.optionKey), u = o.size;
321
321
  let s;
322
322
  typeof ((O = o.controlInfo) == null ? void 0 : O.default) == "function" ? s = o.controlInfo.default(
323
323
  o.options,
@@ -328,7 +328,7 @@ const R = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-fo
328
328
  extraLabel: L,
329
329
  extraLabelTooltip: v,
330
330
  extraLabelHasClickAction: $,
331
- extraLabelClickAction: d
331
+ extraLabelClickAction: f
332
332
  } = A(o), b = T(o);
333
333
  return w`
334
334
  <luzmo-edit-option-slider
@@ -344,8 +344,8 @@ const R = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-fo
344
344
  .extraLabelTooltip=${v}
345
345
  .extraLabelHasClickAction=${$}
346
346
  @extraLabelClick=${() => {
347
- if (typeof d == "function") {
348
- const { options: S } = d();
347
+ if (typeof f == "function") {
348
+ const { options: S } = f();
349
349
  return o.changeCallback(S);
350
350
  }
351
351
  }}
@@ -355,8 +355,8 @@ const R = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-fo
355
355
  ></luzmo-edit-option-slider>
356
356
  `;
357
357
  }, oo = (o) => {
358
- var $, d, b, h, c, p, a, m, f, x, z;
359
- const t = ((b = (d = ($ = o.translations) == null ? void 0 : $.options) == null ? void 0 : d[o.optionKey]) == null ? void 0 : b.label) ?? ((h = o.controlInfo) == null ? void 0 : h.label) ?? o.optionKey ?? "", e = H(o.options, o.optionKey), n = (c = o.controlInfo) == null ? void 0 : c.default, i = o.size, l = ((m = (a = (p = o.translations) == null ? void 0 : p.options) == null ? void 0 : a[o.optionKey]) == null ? void 0 : m.tooltip) ?? ((f = o.controlInfo) == null ? void 0 : f.tooltip), {
358
+ var $, f, b, h, c, p, a, m, d, x, z;
359
+ const t = ((b = (f = ($ = o.translations) == null ? void 0 : $.options) == null ? void 0 : f[o.optionKey]) == null ? void 0 : b.label) ?? ((h = o.controlInfo) == null ? void 0 : h.label) ?? o.optionKey ?? "", e = H(o.options, o.optionKey), n = (c = o.controlInfo) == null ? void 0 : c.default, i = o.size, l = ((m = (a = (p = o.translations) == null ? void 0 : p.options) == null ? void 0 : a[o.optionKey]) == null ? void 0 : m.tooltip) ?? ((d = o.controlInfo) == null ? void 0 : d.tooltip), {
360
360
  extraLabel: r,
361
361
  extraLabelTooltip: u,
362
362
  extraLabelHasClickAction: s,
@@ -378,9 +378,9 @@ const R = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-fo
378
378
  ></luzmo-edit-option-switch>
379
379
  `;
380
380
  }, to = (o) => {
381
- var d, b, h, c, p, a, m, f, x, z, y, k, I, C;
382
- const t = ((h = (b = (d = o.translations) == null ? void 0 : d.options) == null ? void 0 : b[o.optionKey]) == null ? void 0 : h.label) ?? ((c = o.controlInfo) == null ? void 0 : c.label) ?? o.optionKey ?? "", e = o.language ?? "en", n = {};
383
- n[e] = ((m = (a = (p = o.translations) == null ? void 0 : p.options) == null ? void 0 : a[o.optionKey]) == null ? void 0 : m.placeholder) ?? ((f = o.controlInfo) == null ? void 0 : f.placeholder) ?? "";
381
+ var f, b, h, c, p, a, m, d, x, z, y, k, I, C;
382
+ const t = ((h = (b = (f = o.translations) == null ? void 0 : f.options) == null ? void 0 : b[o.optionKey]) == null ? void 0 : h.label) ?? ((c = o.controlInfo) == null ? void 0 : c.label) ?? o.optionKey ?? "", e = o.language ?? "en", n = {};
383
+ n[e] = ((m = (a = (p = o.translations) == null ? void 0 : p.options) == null ? void 0 : a[o.optionKey]) == null ? void 0 : m.placeholder) ?? ((d = o.controlInfo) == null ? void 0 : d.placeholder) ?? "";
384
384
  const i = H(o.options, o.optionKey) ?? "", l = o.size, r = ((y = (z = (x = o.translations) == null ? void 0 : x.options) == null ? void 0 : z[o.optionKey]) == null ? void 0 : y.tooltip) ?? ((k = o.controlInfo) == null ? void 0 : k.tooltip), {
385
385
  extraLabel: u,
386
386
  extraLabelTooltip: s,
@@ -471,6 +471,7 @@ const P = class P extends F {
471
471
  "../../item-definitions/circular-gauge/circular-guage-options.config.ts": () => import("../circular-guage-options.config-C3ExuT5F.js"),
472
472
  "../../item-definitions/column-chart/column-chart-options.config.ts": () => import("../column-chart-options.config-CGw1dN1E.js"),
473
473
  "../../item-definitions/combination-chart/combination-chart-options.config.ts": () => import("../combination-chart-options.config-CApdgFvv.js"),
474
+ "../../item-definitions/conditional-number/conditional-number-options.config.ts": () => import("../conditional-number-options.config-B24MqnZj.js"),
474
475
  "../../item-definitions/donut-chart/donut-chart-options.config.ts": () => import("../donut-chart-options.config-DuJFyp4z.js"),
475
476
  "../../item-definitions/dropdown-filter/dropdown-filter-options.config.ts": () => import("../dropdown-filter-options.config-BxjR1xAD.js"),
476
477
  "../../item-definitions/image/image-options.config.ts": () => import("../image-options.config-CBfeq5Zw.js"),
@@ -551,6 +552,11 @@ const P = class P extends F {
551
552
  "../../item-definitions/combination-chart/i18n/combination-chart-options.es.ts": () => import("../combination-chart-options.es-zMa9kqmV.js"),
552
553
  "../../item-definitions/combination-chart/i18n/combination-chart-options.fr.ts": () => import("../combination-chart-options.fr-DOXtaY1V.js"),
553
554
  "../../item-definitions/combination-chart/i18n/combination-chart-options.nl.ts": () => import("../combination-chart-options.nl-CCChbhx_.js"),
555
+ "../../item-definitions/conditional-number/i18n/conditional-number-options.de.ts": () => import("../conditional-number-options.de-BJcjBZY1.js"),
556
+ "../../item-definitions/conditional-number/i18n/conditional-number-options.en.ts": () => import("../conditional-number-options.en-WSrIzRGJ.js"),
557
+ "../../item-definitions/conditional-number/i18n/conditional-number-options.es.ts": () => import("../conditional-number-options.es-BKqT0zog.js"),
558
+ "../../item-definitions/conditional-number/i18n/conditional-number-options.fr.ts": () => import("../conditional-number-options.fr-D2r7Azy8.js"),
559
+ "../../item-definitions/conditional-number/i18n/conditional-number-options.nl.ts": () => import("../conditional-number-options.nl-pkRI1tLZ.js"),
554
560
  "../../item-definitions/donut-chart/i18n/donut-chart-options.de.ts": () => import("../donut-chart-options.de-nSj3ghwo.js"),
555
561
  "../../item-definitions/donut-chart/i18n/donut-chart-options.en.ts": () => import("../donut-chart-options.en-CrUf4CJ9.js"),
556
562
  "../../item-definitions/donut-chart/i18n/donut-chart-options.es.ts": () => import("../donut-chart-options.es-DnsGqOdo.js"),
@@ -17,22 +17,22 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";var d=Object.getPrototypeOf;var m=Reflect.get;var s=(c,t,u)=>m(d(c),u,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../luzmo-icons-XsFsTAl3.cjs");require("../index-zuArOtOt.cjs");require("../index-DUO13KGl.cjs");require("../index-h9T5DPIm.cjs");const n=require("../property-0L4eB11h.cjs"),b=require("../query-D5qWDopr.cjs"),z=require("../edit-option-base-Boz7TNRZ.cjs"),g="luzmo-action-group{--luzmo-edit-option-action-button-group-button-background-hover: rgba( var(--luzmo-primary-rgb), .1 );--luzmo-edit-option-action-button-group-button-background-down: rgba( var(--luzmo-primary-rgb), .2 );--luzmo-edit-option-action-button-group-button-background-focus: rgba( var(--luzmo-primary-rgb), .1 );--luzmo-edit-option-action-button-group-button-content-color-default: var( --luzmo-font-color-disabled );--luzmo-edit-option-action-button-group-button-content-color-hover: var( --luzmo-font-color-hover );--luzmo-edit-option-action-button-group-button-content-color-down: var( --luzmo-font-color-down );--luzmo-edit-option-action-button-group-button-content-color-focus: var( --luzmo-font-color-focus )}luzmo-action-group[compact][quiet][emphasized]{--luzmo-action-group-gap-size-compact: var(--luzmo-spacing-1)}luzmo-action-group[compact][quiet][emphasized][size=s]{--luzmo-action-group-gap-size-compact: var(--luzmo-spacing-1)}luzmo-action-group[compact][quiet][emphasized][size=l]{--luzmo-action-group-gap-size-compact: var(--luzmo-spacing-2)}luzmo-action-group[compact][quiet][emphasized][size=xl]{--luzmo-action-group-gap-size-compact: var(--luzmo-spacing-3)}luzmo-action-group[compact][quiet][emphasized] luzmo-action-button{--luzmo-action-button-background-color-hover: var( --luzmo-edit-option-action-button-group-button-background-hover );--luzmo-action-button-background-color-down: var( --luzmo-edit-option-action-button-group-button-background-down );--luzmo-action-button-background-color-focus: var( --luzmo-edit-option-action-button-group-button-background-focus );--luzmo-action-button-content-color-default: var( --luzmo-edit-option-action-button-group-button-content-color-default );--luzmo-action-button-content-color-hover: var( --luzmo-edit-option-action-button-group-button-content-color-hover );--luzmo-action-button-content-color-down: var( --luzmo-edit-option-action-button-group-button-content-color-down );--luzmo-action-button-content-color-focus: var( --luzmo-edit-option-action-button-group-button-content-color-focus )}luzmo-action-group[compact][quiet][emphasized] luzmo-action-button[selected]:hover,luzmo-action-group[compact][quiet][emphasized] luzmo-action-button[selected]{--luzmo-action-button-background-color-hover: var( --luzmo-edit-option-action-button-group-button-background-down );--luzmo-action-button-background-color-default: var( --luzmo-edit-option-action-button-group-button-background-down );--luzmo-action-button-content-color-default: var( --luzmo-edit-option-action-button-group-button-content-color-down );--luzmo-action-button-content-color-hover: var( --luzmo-edit-option-action-button-group-button-content-color-down );--luzmo-action-button-content-color-down: var( --luzmo-edit-option-action-button-group-button-content-color-down )}";var v=Object.defineProperty,i=(c,t,u,f)=>{for(var r=void 0,l=c.length-1,p;l>=0;l--)(p=c[l])&&(r=p(t,u,r)||r);return r&&v(t,u,r),r};const h={alignBottom:o.U,alignMiddle:o.P,alignTop:o.E,alignLeft:o.G,alignCenter:o.q,alignRight:o.O,ban:o.a1,borderSolid:o.b2,borderDashed:o.k2,borderDotted:o.S2,compress:o.Y,expand:o._,arrowsExpand:o.c1,arrowsHorizontal:o.J,arrowsVertical:o.j,italic:o.w1,bold:o.D1,underline:o.x1,rows:o.E1,columns:o.P1,table:o.r1},a=class a extends z.LuzmoEditOptionBase{constructor(){super(...arguments),this.values={},this.disabled=!1}_handleEvent(){this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this.actionGroup.selected}}))}_generateButtonContents(t){return typeof t=="string"?n.x`${t}`:t.iconName||t.icon?n.x`
20
+ "use strict";var m=Object.getPrototypeOf;var b=Reflect.get;var d=(c,t,e)=>b(m(c),e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../luzmo-icons-XsFsTAl3.cjs");require("../index-zuArOtOt.cjs");require("../index-DUO13KGl.cjs");require("../index-h9T5DPIm.cjs");const n=require("../property-0L4eB11h.cjs"),z=require("../query-D5qWDopr.cjs"),g=require("../edit-option-base-Boz7TNRZ.cjs"),v="luzmo-action-group{--luzmo-edit-option-action-button-group-button-background-hover: rgba( var(--luzmo-primary-rgb), .1 );--luzmo-edit-option-action-button-group-button-background-down: rgba( var(--luzmo-primary-rgb), .2 );--luzmo-edit-option-action-button-group-button-background-focus: rgba( var(--luzmo-primary-rgb), .1 );--luzmo-edit-option-action-button-group-button-content-color-default: var( --luzmo-font-color-disabled );--luzmo-edit-option-action-button-group-button-content-color-hover: var( --luzmo-font-color-hover );--luzmo-edit-option-action-button-group-button-content-color-down: var( --luzmo-font-color-down );--luzmo-edit-option-action-button-group-button-content-color-focus: var( --luzmo-font-color-focus )}luzmo-action-group[compact][quiet][emphasized]{--luzmo-action-group-gap-size-compact: var(--luzmo-spacing-1)}luzmo-action-group[compact][quiet][emphasized][size=s]{--luzmo-action-group-gap-size-compact: var(--luzmo-spacing-1)}luzmo-action-group[compact][quiet][emphasized][size=l]{--luzmo-action-group-gap-size-compact: var(--luzmo-spacing-2)}luzmo-action-group[compact][quiet][emphasized][size=xl]{--luzmo-action-group-gap-size-compact: var(--luzmo-spacing-3)}luzmo-action-group[compact][quiet][emphasized] luzmo-action-button{--luzmo-action-button-background-color-hover: var( --luzmo-edit-option-action-button-group-button-background-hover );--luzmo-action-button-background-color-down: var( --luzmo-edit-option-action-button-group-button-background-down );--luzmo-action-button-background-color-focus: var( --luzmo-edit-option-action-button-group-button-background-focus );--luzmo-action-button-content-color-default: var( --luzmo-edit-option-action-button-group-button-content-color-default );--luzmo-action-button-content-color-hover: var( --luzmo-edit-option-action-button-group-button-content-color-hover );--luzmo-action-button-content-color-down: var( --luzmo-edit-option-action-button-group-button-content-color-down );--luzmo-action-button-content-color-focus: var( --luzmo-edit-option-action-button-group-button-content-color-focus )}luzmo-action-group[compact][quiet][emphasized] luzmo-action-button[selected]:hover,luzmo-action-group[compact][quiet][emphasized] luzmo-action-button[selected]{--luzmo-action-button-background-color-hover: var( --luzmo-edit-option-action-button-group-button-background-down );--luzmo-action-button-background-color-default: var( --luzmo-edit-option-action-button-group-button-background-down );--luzmo-action-button-content-color-default: var( --luzmo-edit-option-action-button-group-button-content-color-down );--luzmo-action-button-content-color-hover: var( --luzmo-edit-option-action-button-group-button-content-color-down );--luzmo-action-button-content-color-down: var( --luzmo-edit-option-action-button-group-button-content-color-down )}";var h=Object.defineProperty,i=(c,t,e,l)=>{for(var r=void 0,s=c.length-1,p;s>=0;s--)(p=c[s])&&(r=p(t,e,r)||r);return r&&h(t,e,r),r};const f={alignBottom:o.U,alignMiddle:o.P,alignTop:o.E,alignLeft:o.G,alignCenter:o.q,alignRight:o.O,ban:o.a1,borderSolid:o.b2,borderDashed:o.k2,borderDotted:o.S2,compress:o.Y,expand:o._,arrowsExpand:o.c1,arrowsHorizontal:o.J,arrowsVertical:o.j,italic:o.w1,bold:o.D1,underline:o.x1,rows:o.E1,columns:o.P1,table:o.r1},a=class a extends g.LuzmoEditOptionBase{constructor(){super(...arguments),this.values={},this.disabled=!1}_handleEvent(){var e,l,r;const t=this.selects==="multiple"?(e=this.actionGroup)==null?void 0:e.selected:(r=(l=this.actionGroup)==null?void 0:l.selected)==null?void 0:r[0];this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:t}}))}_generateButtonContents(t){return typeof t=="string"?n.x`${t}`:t.iconName||t.icon?n.x`
21
21
  <luzmo-icon
22
22
  slot="icon"
23
- .icon=${t.icon??h[t.iconName]}
23
+ .icon=${t.icon??f[t.iconName]}
24
24
  .label=${t.label??""}
25
25
  ></luzmo-icon>
26
26
  ${t.buttonText??""}
27
- `:n.x`${t.buttonText??""}`}_generateActionButtons(){return Object.entries(this.values).map(([t,u])=>n.x`
27
+ `:n.x`${t.buttonText??""}`}_generateActionButtons(){return Object.entries(this.values).map(([t,e])=>n.x`
28
28
  <luzmo-action-button value=${t} ?disabled=${this.disabled}>
29
- ${this._generateButtonContents(u)}
30
- ${u.label?n.x`<luzmo-tooltip
29
+ ${this._generateButtonContents(e)}
30
+ ${e.label?n.x`<luzmo-tooltip
31
31
  self-managed
32
32
  placement="top"
33
33
  size=${this.size}
34
34
  >
35
- ${u.label}
35
+ ${e.label}
36
36
  </luzmo-tooltip>`:""}
37
37
  </luzmo-action-button>
38
38
  `)}renderController(){const t=this._generateActionButtons();return n.x`
@@ -48,4 +48,4 @@
48
48
  >
49
49
  ${t}
50
50
  </luzmo-action-group>
51
- `}};a.styles=[...s(a,a,"styles"),n.r$1(g)];let e=a;i([n.n({type:Array})],e.prototype,"values");i([n.n({type:Boolean,reflect:!0})],e.prototype,"disabled");i([n.n({type:String})],e.prototype,"selects");i([n.n({type:Array})],e.prototype,"value");i([n.n({type:Array})],e.prototype,"default");i([b.e("luzmo-action-group")],e.prototype,"actionGroup");customElements.get("luzmo-edit-option-action-button-group")||customElements.define("luzmo-edit-option-action-button-group",e);exports.LuzmoEditOptionActionButtonGroup=e;
51
+ `}};a.styles=[...d(a,a,"styles"),n.r$1(v)];let u=a;i([n.n({type:Array})],u.prototype,"values");i([n.n({type:Boolean,reflect:!0})],u.prototype,"disabled");i([n.n({type:String})],u.prototype,"selects");i([n.n({type:Array})],u.prototype,"value");i([n.n({type:Array})],u.prototype,"default");i([z.e("luzmo-action-group")],u.prototype,"actionGroup");customElements.get("luzmo-edit-option-action-button-group")||customElements.define("luzmo-edit-option-action-button-group",u);exports.LuzmoEditOptionActionButtonGroup=u;
@@ -17,63 +17,65 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- var z = Object.getPrototypeOf;
21
- var d = Reflect.get;
22
- var s = (r, o, l) => d(z(r), l, o);
23
- import { r as b, P as g, E as f, a as h, D as v, w as x, j as y, J as w, c as k, _ as $, Y as C, S as q, e as S, f as E, g as _, i as B, q as P, G as D, l as j, m as A, U as H } from "../luzmo-icons-BE2T8vWu.js";
20
+ var d = Object.getPrototypeOf;
21
+ var p = Reflect.get;
22
+ var z = (r, o, t) => p(d(r), t, o);
23
+ import { r as g, P as f, E as h, a as v, D as x, w as y, j as w, J as k, c as $, _ as C, Y as q, S, e as E, f as _, g as B, i as P, q as D, G as j, l as A, m as H, U as N } from "../luzmo-icons-BE2T8vWu.js";
24
24
  import "../index-CdCtJpK9.js";
25
25
  import "../index-Bee1uunR.js";
26
26
  import "../index-ymMEPngt.js";
27
- import { a as N, x as u, n as c } from "../property-B2F7x7Cz.js";
28
- import { e as T } from "../query-Ddbd72Um.js";
29
- import { L as U } from "../edit-option-base-qePiIQWd.js";
30
- const p = () => {
27
+ import { a as T, x as u, n as c } from "../property-B2F7x7Cz.js";
28
+ import { e as U } from "../query-Ddbd72Um.js";
29
+ import { L as M } from "../edit-option-base-qePiIQWd.js";
30
+ const b = () => {
31
31
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
32
32
  const r = document.createElement("style");
33
33
  r.setAttribute("data-luzmo-vars", ""), r.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(r);
34
34
  }
35
35
  };
36
- p();
37
- const M = "luzmo-action-group{--luzmo-edit-option-action-button-group-button-background-hover: rgba( var(--luzmo-primary-rgb), .1 );--luzmo-edit-option-action-button-group-button-background-down: rgba( var(--luzmo-primary-rgb), .2 );--luzmo-edit-option-action-button-group-button-background-focus: rgba( var(--luzmo-primary-rgb), .1 );--luzmo-edit-option-action-button-group-button-content-color-default: var( --luzmo-font-color-disabled );--luzmo-edit-option-action-button-group-button-content-color-hover: var( --luzmo-font-color-hover );--luzmo-edit-option-action-button-group-button-content-color-down: var( --luzmo-font-color-down );--luzmo-edit-option-action-button-group-button-content-color-focus: var( --luzmo-font-color-focus )}luzmo-action-group[compact][quiet][emphasized]{--luzmo-action-group-gap-size-compact: var(--luzmo-spacing-1)}luzmo-action-group[compact][quiet][emphasized][size=s]{--luzmo-action-group-gap-size-compact: var(--luzmo-spacing-1)}luzmo-action-group[compact][quiet][emphasized][size=l]{--luzmo-action-group-gap-size-compact: var(--luzmo-spacing-2)}luzmo-action-group[compact][quiet][emphasized][size=xl]{--luzmo-action-group-gap-size-compact: var(--luzmo-spacing-3)}luzmo-action-group[compact][quiet][emphasized] luzmo-action-button{--luzmo-action-button-background-color-hover: var( --luzmo-edit-option-action-button-group-button-background-hover );--luzmo-action-button-background-color-down: var( --luzmo-edit-option-action-button-group-button-background-down );--luzmo-action-button-background-color-focus: var( --luzmo-edit-option-action-button-group-button-background-focus );--luzmo-action-button-content-color-default: var( --luzmo-edit-option-action-button-group-button-content-color-default );--luzmo-action-button-content-color-hover: var( --luzmo-edit-option-action-button-group-button-content-color-hover );--luzmo-action-button-content-color-down: var( --luzmo-edit-option-action-button-group-button-content-color-down );--luzmo-action-button-content-color-focus: var( --luzmo-edit-option-action-button-group-button-content-color-focus )}luzmo-action-group[compact][quiet][emphasized] luzmo-action-button[selected]:hover,luzmo-action-group[compact][quiet][emphasized] luzmo-action-button[selected]{--luzmo-action-button-background-color-hover: var( --luzmo-edit-option-action-button-group-button-background-down );--luzmo-action-button-background-color-default: var( --luzmo-edit-option-action-button-group-button-background-down );--luzmo-action-button-content-color-default: var( --luzmo-edit-option-action-button-group-button-content-color-down );--luzmo-action-button-content-color-hover: var( --luzmo-edit-option-action-button-group-button-content-color-down );--luzmo-action-button-content-color-down: var( --luzmo-edit-option-action-button-group-button-content-color-down )}";
38
- var R = Object.defineProperty, n = (r, o, l, F) => {
39
- for (var e = void 0, i = r.length - 1, m; i >= 0; i--)
40
- (m = r[i]) && (e = m(o, l, e) || e);
41
- return e && R(o, l, e), e;
36
+ b();
37
+ const R = "luzmo-action-group{--luzmo-edit-option-action-button-group-button-background-hover: rgba( var(--luzmo-primary-rgb), .1 );--luzmo-edit-option-action-button-group-button-background-down: rgba( var(--luzmo-primary-rgb), .2 );--luzmo-edit-option-action-button-group-button-background-focus: rgba( var(--luzmo-primary-rgb), .1 );--luzmo-edit-option-action-button-group-button-content-color-default: var( --luzmo-font-color-disabled );--luzmo-edit-option-action-button-group-button-content-color-hover: var( --luzmo-font-color-hover );--luzmo-edit-option-action-button-group-button-content-color-down: var( --luzmo-font-color-down );--luzmo-edit-option-action-button-group-button-content-color-focus: var( --luzmo-font-color-focus )}luzmo-action-group[compact][quiet][emphasized]{--luzmo-action-group-gap-size-compact: var(--luzmo-spacing-1)}luzmo-action-group[compact][quiet][emphasized][size=s]{--luzmo-action-group-gap-size-compact: var(--luzmo-spacing-1)}luzmo-action-group[compact][quiet][emphasized][size=l]{--luzmo-action-group-gap-size-compact: var(--luzmo-spacing-2)}luzmo-action-group[compact][quiet][emphasized][size=xl]{--luzmo-action-group-gap-size-compact: var(--luzmo-spacing-3)}luzmo-action-group[compact][quiet][emphasized] luzmo-action-button{--luzmo-action-button-background-color-hover: var( --luzmo-edit-option-action-button-group-button-background-hover );--luzmo-action-button-background-color-down: var( --luzmo-edit-option-action-button-group-button-background-down );--luzmo-action-button-background-color-focus: var( --luzmo-edit-option-action-button-group-button-background-focus );--luzmo-action-button-content-color-default: var( --luzmo-edit-option-action-button-group-button-content-color-default );--luzmo-action-button-content-color-hover: var( --luzmo-edit-option-action-button-group-button-content-color-hover );--luzmo-action-button-content-color-down: var( --luzmo-edit-option-action-button-group-button-content-color-down );--luzmo-action-button-content-color-focus: var( --luzmo-edit-option-action-button-group-button-content-color-focus )}luzmo-action-group[compact][quiet][emphasized] luzmo-action-button[selected]:hover,luzmo-action-group[compact][quiet][emphasized] luzmo-action-button[selected]{--luzmo-action-button-background-color-hover: var( --luzmo-edit-option-action-button-group-button-background-down );--luzmo-action-button-background-color-default: var( --luzmo-edit-option-action-button-group-button-background-down );--luzmo-action-button-content-color-default: var( --luzmo-edit-option-action-button-group-button-content-color-down );--luzmo-action-button-content-color-hover: var( --luzmo-edit-option-action-button-group-button-content-color-down );--luzmo-action-button-content-color-down: var( --luzmo-edit-option-action-button-group-button-content-color-down )}";
38
+ var V = Object.defineProperty, n = (r, o, t, i) => {
39
+ for (var e = void 0, m = r.length - 1, s; m >= 0; m--)
40
+ (s = r[m]) && (e = s(o, t, e) || e);
41
+ return e && V(o, t, e), e;
42
42
  };
43
- const V = {
44
- alignBottom: H,
45
- alignMiddle: A,
46
- alignTop: j,
47
- alignLeft: D,
48
- alignCenter: P,
49
- alignRight: B,
50
- ban: _,
51
- borderSolid: E,
52
- borderDashed: S,
53
- borderDotted: q,
54
- compress: C,
55
- expand: $,
56
- arrowsExpand: k,
57
- arrowsHorizontal: w,
58
- arrowsVertical: y,
59
- italic: x,
60
- bold: v,
61
- underline: h,
62
- rows: f,
63
- columns: g,
64
- table: b
65
- }, a = class a extends U {
43
+ const F = {
44
+ alignBottom: N,
45
+ alignMiddle: H,
46
+ alignTop: A,
47
+ alignLeft: j,
48
+ alignCenter: D,
49
+ alignRight: P,
50
+ ban: B,
51
+ borderSolid: _,
52
+ borderDashed: E,
53
+ borderDotted: S,
54
+ compress: q,
55
+ expand: C,
56
+ arrowsExpand: $,
57
+ arrowsHorizontal: k,
58
+ arrowsVertical: w,
59
+ italic: y,
60
+ bold: x,
61
+ underline: v,
62
+ rows: h,
63
+ columns: f,
64
+ table: g
65
+ }, a = class a extends M {
66
66
  constructor() {
67
67
  super(...arguments), this.values = {}, this.disabled = !1;
68
68
  }
69
69
  _handleEvent() {
70
+ var t, i, e;
71
+ const o = this.selects === "multiple" ? (t = this.actionGroup) == null ? void 0 : t.selected : (e = (i = this.actionGroup) == null ? void 0 : i.selected) == null ? void 0 : e[0];
70
72
  this.dispatchEvent(
71
73
  new CustomEvent("option-changed", {
72
74
  bubbles: !0,
73
75
  composed: !0,
74
76
  cancelable: !0,
75
77
  detail: {
76
- value: this.actionGroup.selected
78
+ value: o
77
79
  }
78
80
  })
79
81
  );
@@ -82,7 +84,7 @@ const V = {
82
84
  return typeof o == "string" ? u`${o}` : o.iconName || o.icon ? u`
83
85
  <luzmo-icon
84
86
  slot="icon"
85
- .icon=${o.icon ?? V[o.iconName]}
87
+ .icon=${o.icon ?? F[o.iconName]}
86
88
  .label=${o.label ?? ""}
87
89
  ></luzmo-icon>
88
90
  ${o.buttonText ?? ""}
@@ -90,15 +92,15 @@ const V = {
90
92
  }
91
93
  _generateActionButtons() {
92
94
  return Object.entries(this.values).map(
93
- ([o, l]) => u`
95
+ ([o, t]) => u`
94
96
  <luzmo-action-button value=${o} ?disabled=${this.disabled}>
95
- ${this._generateButtonContents(l)}
96
- ${l.label ? u`<luzmo-tooltip
97
+ ${this._generateButtonContents(t)}
98
+ ${t.label ? u`<luzmo-tooltip
97
99
  self-managed
98
100
  placement="top"
99
101
  size=${this.size}
100
102
  >
101
- ${l.label}
103
+ ${t.label}
102
104
  </luzmo-tooltip>` : ""}
103
105
  </luzmo-action-button>
104
106
  `
@@ -122,30 +124,30 @@ const V = {
122
124
  `;
123
125
  }
124
126
  };
125
- a.styles = [...s(a, a, "styles"), N(M)];
126
- let t = a;
127
+ a.styles = [...z(a, a, "styles"), T(R)];
128
+ let l = a;
127
129
  n([
128
130
  c({ type: Array })
129
- ], t.prototype, "values");
131
+ ], l.prototype, "values");
130
132
  n([
131
133
  c({ type: Boolean, reflect: !0 })
132
- ], t.prototype, "disabled");
134
+ ], l.prototype, "disabled");
133
135
  n([
134
136
  c({ type: String })
135
- ], t.prototype, "selects");
137
+ ], l.prototype, "selects");
136
138
  n([
137
139
  c({ type: Array })
138
- ], t.prototype, "value");
140
+ ], l.prototype, "value");
139
141
  n([
140
142
  c({ type: Array })
141
- ], t.prototype, "default");
143
+ ], l.prototype, "default");
142
144
  n([
143
- T("luzmo-action-group")
144
- ], t.prototype, "actionGroup");
145
+ U("luzmo-action-group")
146
+ ], l.prototype, "actionGroup");
145
147
  customElements.get("luzmo-edit-option-action-button-group") || customElements.define(
146
148
  "luzmo-edit-option-action-button-group",
147
- t
149
+ l
148
150
  );
149
151
  export {
150
- t as LuzmoEditOptionActionButtonGroup
152
+ l as LuzmoEditOptionActionButtonGroup
151
153
  };
@@ -0,0 +1,135 @@
1
+ declare const _default: ({
2
+ key: string;
3
+ type: string;
4
+ open: boolean;
5
+ children: ({
6
+ key: string;
7
+ control: {
8
+ type: string;
9
+ label: string;
10
+ default: boolean;
11
+ enum?: undefined;
12
+ min?: undefined;
13
+ step?: undefined;
14
+ extraLabel?: undefined;
15
+ extraLabelHasClickAction?: undefined;
16
+ extraLabelClickAction?: undefined;
17
+ };
18
+ visibleIf?: undefined;
19
+ } | {
20
+ key: string;
21
+ control: {
22
+ type: string;
23
+ label: string;
24
+ default: string;
25
+ enum: string[];
26
+ min?: undefined;
27
+ step?: undefined;
28
+ extraLabel?: undefined;
29
+ extraLabelHasClickAction?: undefined;
30
+ extraLabelClickAction?: undefined;
31
+ };
32
+ visibleIf?: undefined;
33
+ } | {
34
+ key: string;
35
+ control: {
36
+ type: string;
37
+ label: string;
38
+ default: number;
39
+ min: number;
40
+ step: number;
41
+ enum?: undefined;
42
+ extraLabel?: undefined;
43
+ extraLabelHasClickAction?: undefined;
44
+ extraLabelClickAction?: undefined;
45
+ };
46
+ visibleIf: (_: any, slots: any[]) => boolean;
47
+ } | {
48
+ key: string;
49
+ control: {
50
+ type: string;
51
+ label: string;
52
+ default: boolean;
53
+ enum?: undefined;
54
+ min?: undefined;
55
+ step?: undefined;
56
+ extraLabel?: undefined;
57
+ extraLabelHasClickAction?: undefined;
58
+ extraLabelClickAction?: undefined;
59
+ };
60
+ visibleIf: (options: any) => boolean;
61
+ } | {
62
+ key: string;
63
+ control: {
64
+ type: string;
65
+ label: string;
66
+ default: (_options: any, _slots: any, theme: any) => any;
67
+ extraLabel: (options: any, _slots: any, theme: any) => "reset" | undefined;
68
+ extraLabelHasClickAction: (options: any, _slots: any, theme: any) => boolean;
69
+ extraLabelClickAction: (options: any, _slots: any, theme: any) => {
70
+ value: any;
71
+ options: any;
72
+ };
73
+ enum?: undefined;
74
+ min?: undefined;
75
+ step?: undefined;
76
+ };
77
+ visibleIf: (options: any) => boolean;
78
+ })[];
79
+ } | {
80
+ key: string;
81
+ type: string;
82
+ open: boolean;
83
+ children: ({
84
+ key: string;
85
+ control: {
86
+ type: string;
87
+ label: string;
88
+ default: string[];
89
+ values: {
90
+ top: {
91
+ iconName: string;
92
+ label: string;
93
+ };
94
+ middle: {
95
+ iconName: string;
96
+ label: string;
97
+ };
98
+ bottom: {
99
+ iconName: string;
100
+ label: string;
101
+ };
102
+ left?: undefined;
103
+ center?: undefined;
104
+ right?: undefined;
105
+ };
106
+ selects: string;
107
+ };
108
+ } | {
109
+ key: string;
110
+ control: {
111
+ type: string;
112
+ label: string;
113
+ default: string[];
114
+ values: {
115
+ left: {
116
+ iconName: string;
117
+ label: string;
118
+ };
119
+ center: {
120
+ iconName: string;
121
+ label: string;
122
+ };
123
+ right: {
124
+ iconName: string;
125
+ label: string;
126
+ };
127
+ top?: undefined;
128
+ middle?: undefined;
129
+ bottom?: undefined;
130
+ };
131
+ selects: string;
132
+ };
133
+ })[];
134
+ })[];
135
+ export default _default;