@luzmo/analytics-components-kit 1.0.1-alpha.19 → 1.0.1-alpha.20
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.
- package/components/edit-item/edit-item.d.ts +11 -8
- package/components/edit-item/index.cjs +13 -11
- package/components/edit-item/index.js +100 -80
- package/components/edit-option/edit-option.d.ts +4 -2
- package/components/edit-option/helpers/get-control-by-key.d.ts +1 -1
- package/components/edit-option/index.cjs +1 -176
- package/components/edit-option/index.js +4 -690
- package/components/index-DYGldqzJ.js +735 -0
- package/components/index-LSrSqEfM.cjs +195 -0
- package/components/index.cjs +1 -1
- package/components/index.js +1 -1
- package/custom-elements.json +78 -37
- package/package.json +1 -1
@@ -17,700 +17,14 @@
|
|
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 {
|
21
|
-
|
22
|
-
import { o as N } from "../if-defined-Bv6MRdSW.js";
|
23
|
-
const F = () => {
|
20
|
+
import { L as u } from "../index-DYGldqzJ.js";
|
21
|
+
const l = () => {
|
24
22
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
25
23
|
const o = document.createElement("style");
|
26
24
|
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
25
|
}
|
28
26
|
};
|
29
|
-
|
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 e, n, i;
|
32
|
-
let t;
|
33
|
-
return typeof ((e = o == null ? void 0 : o.controlInfo) == null ? void 0 : e.default) == "function" ? t = o.controlInfo.default({
|
34
|
-
options: o.options,
|
35
|
-
slots: o.slots,
|
36
|
-
theme: o.theme
|
37
|
-
}) : ((n = o.controlInfo) == null ? void 0 : n.default) !== void 0 && ((i = o.controlInfo) == null ? void 0 : i.default) !== null && (t = o.controlInfo.default), t;
|
38
|
-
}, A = (o) => {
|
39
|
-
var l, r, f, s, y, L, k, h, u, b, c, a, p, m, d;
|
40
|
-
let t;
|
41
|
-
typeof ((l = o.controlInfo) == null ? void 0 : l.extraLabel) == "function" ? t = o.controlInfo.extraLabel({
|
42
|
-
options: o.options,
|
43
|
-
slots: o.slots,
|
44
|
-
theme: o.theme
|
45
|
-
}) : typeof ((r = o.controlInfo) == null ? void 0 : r.extraLabel) == "string" && (t = o.controlInfo.extraLabel), typeof t == "string" && (t = ((L = (y = (s = (f = o.translations) == null ? void 0 : f.options) == null ? void 0 : s[o.optionKey]) == null ? void 0 : y.extraLabel) == null ? void 0 : L[t]) ?? t);
|
46
|
-
let e;
|
47
|
-
typeof ((k = o.controlInfo) == null ? void 0 : k.extraLabelTooltip) == "function" ? t = o.controlInfo.extraLabelTooltip({
|
48
|
-
options: o.options,
|
49
|
-
slots: o.slots,
|
50
|
-
theme: o.theme
|
51
|
-
}) : typeof ((h = o.controlInfo) == null ? void 0 : h.extraLabelTooltip) == "string" && (e = o.controlInfo.extraLabelTooltip), typeof e == "string" && (t = ((a = (c = (b = (u = o.translations) == null ? void 0 : u.options) == null ? void 0 : b[o.optionKey]) == null ? void 0 : c.extraLabelTooltip) == null ? void 0 : a[e]) ?? e);
|
52
|
-
let n;
|
53
|
-
typeof ((p = o.controlInfo) == null ? void 0 : p.extraLabelHasClickAction) == "function" ? n = o.controlInfo.extraLabelHasClickAction({
|
54
|
-
options: o.options,
|
55
|
-
slots: o.slots,
|
56
|
-
theme: o.theme
|
57
|
-
}) : typeof ((m = o.controlInfo) == null ? void 0 : m.extraLabelHasClickAction) == "boolean" && (n = o.controlInfo.extraLabelHasClickAction);
|
58
|
-
const i = typeof ((d = o.controlInfo) == null ? void 0 : d.extraLabelClickAction) == "function" ? () => o.controlInfo.extraLabelClickAction({
|
59
|
-
options: o.options,
|
60
|
-
slots: o.slots,
|
61
|
-
theme: o.theme
|
62
|
-
}) : () => {
|
63
|
-
};
|
64
|
-
return {
|
65
|
-
extraLabel: t,
|
66
|
-
extraLabelTooltip: e,
|
67
|
-
extraLabelHasClickAction: n,
|
68
|
-
extraLabelClickAction: i
|
69
|
-
};
|
70
|
-
}, H = (o, t) => {
|
71
|
-
if (t.includes(".")) {
|
72
|
-
const e = t.split(".");
|
73
|
-
let n = o;
|
74
|
-
for (let l = 0; l < e.length - 1; l++)
|
75
|
-
n = n[e[l]] ?? {};
|
76
|
-
const i = e.length - 1;
|
77
|
-
return n[e[i]];
|
78
|
-
}
|
79
|
-
return o[t];
|
80
|
-
}, T = (o) => (t) => {
|
81
|
-
const e = { ...o.options };
|
82
|
-
if (o.optionKey.includes(".")) {
|
83
|
-
const n = o.optionKey.split(".");
|
84
|
-
let i = e;
|
85
|
-
for (let r = 0; r < n.length - 1; r++)
|
86
|
-
i[n[r]] = i[n[r]] ?? {}, i = i[n[r]];
|
87
|
-
const l = n.length - 1;
|
88
|
-
i[n[l]] = t.detail.value;
|
89
|
-
} else
|
90
|
-
e[o.optionKey] = t.detail.value;
|
91
|
-
return o.changeCallback(e);
|
92
|
-
}, q = (o) => {
|
93
|
-
var h, u, b, c, a, p, m, d, x, z, $, I;
|
94
|
-
const t = ((b = (u = (h = o.translations) == null ? void 0 : h.options) == null ? void 0 : u[o.optionKey]) == null ? void 0 : b.label) ?? ((c = o.controlInfo) == null ? void 0 : c.label) ?? o.optionKey ?? "", e = o.size, n = {};
|
95
|
-
Object.keys((a = o.controlInfo) == null ? void 0 : a.values).forEach((v) => {
|
96
|
-
var C, O, V, _, g, B;
|
97
|
-
n[v] = {
|
98
|
-
...(C = o.controlInfo) == null ? void 0 : C.values[v],
|
99
|
-
label: ((g = (_ = (V = (O = o.translations) == null ? void 0 : O.options) == null ? void 0 : V[o.optionKey]) == null ? void 0 : _.enum) == null ? void 0 : g[v]) ?? ((B = o.controlInfo) == null ? void 0 : B.values[v].label)
|
100
|
-
};
|
101
|
-
});
|
102
|
-
const i = ((d = (m = (p = o.translations) == null ? void 0 : p.options) == null ? void 0 : m[o.optionKey]) == null ? void 0 : d.tooltip) ?? ((x = o.controlInfo) == null ? void 0 : x.tooltip), l = H(o.options, o.optionKey), r = w(o), {
|
103
|
-
extraLabel: f,
|
104
|
-
extraLabelTooltip: s,
|
105
|
-
extraLabelHasClickAction: y,
|
106
|
-
extraLabelClickAction: L
|
107
|
-
} = A(o), k = T(o);
|
108
|
-
return K`
|
109
|
-
<luzmo-edit-option-action-button-group
|
110
|
-
.label=${t}
|
111
|
-
.value=${l}
|
112
|
-
.values=${n}
|
113
|
-
.default=${r}
|
114
|
-
.selects=${(z = o.controlInfo) == null ? void 0 : z.selects}
|
115
|
-
.size=${e}
|
116
|
-
.tooltip=${i}
|
117
|
-
.extraLabel=${f}
|
118
|
-
.extraLabelTooltip=${s}
|
119
|
-
.extraLabelHasClickAction=${y}
|
120
|
-
@extraLabelClick=${L}
|
121
|
-
@option-changed=${k}
|
122
|
-
.fromOptionValue=${($ = o.controlInfo) == null ? void 0 : $.fromOptionValue}
|
123
|
-
.toOptionValue=${(I = o.controlInfo) == null ? void 0 : I.toOptionValue}
|
124
|
-
></luzmo-edit-option-action-button-group>
|
125
|
-
`;
|
126
|
-
}, D = (o) => {
|
127
|
-
var h, u, b, c, a, p, m, d, x, z;
|
128
|
-
const t = ((b = (u = (h = o.translations) == null ? void 0 : h.options) == null ? void 0 : u[o.optionKey]) == null ? void 0 : b.label) ?? ((c = o.controlInfo) == null ? void 0 : c.label) ?? o.optionKey ?? "", e = H(o.options, o.optionKey), n = o.size, i = ((m = (p = (a = o.translations) == null ? void 0 : a.options) == null ? void 0 : p[o.optionKey]) == null ? void 0 : m.tooltip) ?? ((d = o.controlInfo) == null ? void 0 : d.tooltip), l = w(o), {
|
129
|
-
extraLabel: r,
|
130
|
-
extraLabelTooltip: f,
|
131
|
-
extraLabelHasClickAction: s,
|
132
|
-
extraLabelClickAction: y
|
133
|
-
} = A(o), L = T(o);
|
134
|
-
return K`
|
135
|
-
<luzmo-edit-option-color-picker
|
136
|
-
.value=${e ?? l}
|
137
|
-
.label=${t}
|
138
|
-
.size=${n}
|
139
|
-
.tooltip=${i}
|
140
|
-
.extraLabel=${r}
|
141
|
-
.extraLabelTooltip=${f}
|
142
|
-
.extraLabelHasClickAction=${s}
|
143
|
-
@extraLabelClick=${() => {
|
144
|
-
if (typeof y == "function") {
|
145
|
-
const { options: $ } = y();
|
146
|
-
return o.changeCallback($);
|
147
|
-
}
|
148
|
-
}}
|
149
|
-
@option-changed=${L}
|
150
|
-
.fromOptionValue=${(x = o.controlInfo) == null ? void 0 : x.fromOptionValue}
|
151
|
-
.toOptionValue=${(z = o.controlInfo) == null ? void 0 : z.toOptionValue}
|
152
|
-
></luzmo-edit-option-color-picker>
|
153
|
-
`;
|
154
|
-
}, J = (o) => {
|
155
|
-
var u, b, c, a, p, m, d, x, z, $, I, v, C, O;
|
156
|
-
const t = ((c = (b = (u = o.translations) == null ? void 0 : u.options) == null ? void 0 : b[o.optionKey]) == null ? void 0 : c.label) ?? ((a = o.controlInfo) == null ? void 0 : a.label) ?? o.optionKey ?? "", e = H(o.options, o.optionKey) ?? {}, n = ((d = (m = (p = o.translations) == null ? void 0 : p.options) == null ? void 0 : m[o.optionKey]) == null ? void 0 : d.tooltip) ?? ((x = o.controlInfo) == null ? void 0 : x.tooltip), i = o.language ?? "en", l = {};
|
157
|
-
l[i] = ((I = ($ = (z = o.translations) == null ? void 0 : z.options) == null ? void 0 : $[o.optionKey]) == null ? void 0 : I.placeholder) ?? ((v = o.controlInfo) == null ? void 0 : v.placeholder) ?? "";
|
158
|
-
const r = o.size, f = w(o), {
|
159
|
-
extraLabel: s,
|
160
|
-
extraLabelTooltip: y,
|
161
|
-
extraLabelHasClickAction: L,
|
162
|
-
extraLabelClickAction: k
|
163
|
-
} = A(o), h = T(o);
|
164
|
-
return K`
|
165
|
-
<luzmo-edit-option-multi-language-field
|
166
|
-
.label=${t}
|
167
|
-
.placeholder=${l}
|
168
|
-
.value=${e ?? f}
|
169
|
-
language=${N(i)}
|
170
|
-
.size=${r}
|
171
|
-
.tooltip=${n}
|
172
|
-
.extraLabel=${s}
|
173
|
-
.extraLabelTooltip=${y}
|
174
|
-
.extraLabelHasClickAction=${L}
|
175
|
-
@extraLabelClick=${k}
|
176
|
-
@option-changed=${h}
|
177
|
-
.fromOptionValue=${(C = o.controlInfo) == null ? void 0 : C.fromOptionValue}
|
178
|
-
.toOptionValue=${(O = o.controlInfo) == null ? void 0 : O.toOptionValue}
|
179
|
-
></luzmo-edit-option-multi-language-field>
|
180
|
-
`;
|
181
|
-
}, Q = (o) => {
|
182
|
-
var b, c, a, p, m, d, x, z, $, I, v, C, O;
|
183
|
-
const t = ((a = (c = (b = o.translations) == null ? void 0 : b.options) == null ? void 0 : c[o.optionKey]) == null ? void 0 : a.label) ?? ((p = o.controlInfo) == null ? void 0 : p.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 = ((I = ($ = (z = o.translations) == null ? void 0 : z.options) == null ? void 0 : $[o.optionKey]) == null ? void 0 : I.tooltip) ?? ((v = o.controlInfo) == null ? void 0 : v.tooltip), f = w(o), s = o.size, {
|
184
|
-
extraLabel: y,
|
185
|
-
extraLabelTooltip: L,
|
186
|
-
extraLabelHasClickAction: k,
|
187
|
-
extraLabelClickAction: h
|
188
|
-
} = A(o), u = T(o);
|
189
|
-
return K`
|
190
|
-
<luzmo-edit-option-number-field
|
191
|
-
.value=${l}
|
192
|
-
.default=${f}
|
193
|
-
.min=${e}
|
194
|
-
.max=${n}
|
195
|
-
.step=${i}
|
196
|
-
.label=${t}
|
197
|
-
.size=${s}
|
198
|
-
.tooltip=${r}
|
199
|
-
.extraLabel=${y}
|
200
|
-
.extraLabelTooltip=${L}
|
201
|
-
.extraLabelHasClickAction=${k}
|
202
|
-
@extraLabelClick=${h}
|
203
|
-
@option-changed=${u}
|
204
|
-
.fromOptionValue=${(C = o.controlInfo) == null ? void 0 : C.fromOptionValue}
|
205
|
-
.toOptionValue=${(O = o.controlInfo) == null ? void 0 : O.toOptionValue}
|
206
|
-
></luzmo-edit-option-number-field>
|
207
|
-
`;
|
208
|
-
}, W = (o) => {
|
209
|
-
var h, u, b, c, a, p, m, d, x, z, $;
|
210
|
-
const t = ((b = (u = (h = o.translations) == null ? void 0 : h.options) == null ? void 0 : u[o.optionKey]) == null ? void 0 : b.label) ?? ((c = o.controlInfo) == null ? void 0 : c.label) ?? o.optionKey ?? "", e = H(o.options, o.optionKey), n = ((m = (p = (a = o.translations) == null ? void 0 : a.options) == null ? void 0 : p[o.optionKey]) == null ? void 0 : m.tooltip) ?? ((d = o.controlInfo) == null ? void 0 : d.tooltip), i = (x = o.controlInfo) == null ? void 0 : x.enum.reduce(
|
211
|
-
(I, v) => {
|
212
|
-
var C, O, V, _;
|
213
|
-
return I[v] = ((_ = (V = (O = (C = o.translations) == null ? void 0 : C.options) == null ? void 0 : O[o.optionKey]) == null ? void 0 : V.enum) == null ? void 0 : _[v]) ?? v, I;
|
214
|
-
},
|
215
|
-
{}
|
216
|
-
), l = o.size, r = w(o), {
|
217
|
-
extraLabel: f,
|
218
|
-
extraLabelTooltip: s,
|
219
|
-
extraLabelHasClickAction: y,
|
220
|
-
extraLabelClickAction: L
|
221
|
-
} = A(o), k = T(o);
|
222
|
-
return K`
|
223
|
-
<luzmo-edit-option-picker
|
224
|
-
.value=${e}
|
225
|
-
.default=${r}
|
226
|
-
.values=${i}
|
227
|
-
.label=${t}
|
228
|
-
.tooltip=${n}
|
229
|
-
.size=${l}
|
230
|
-
.extraLabel=${f}
|
231
|
-
.extraLabelTooltip=${s}
|
232
|
-
.extraLabelHasClickAction=${y}
|
233
|
-
@extraLabelClick=${L}
|
234
|
-
@option-changed=${k}
|
235
|
-
.fromOptionValue=${(z = o.controlInfo) == null ? void 0 : z.fromOptionValue}
|
236
|
-
.toOptionValue=${($ = o.controlInfo) == null ? void 0 : $.toOptionValue}
|
237
|
-
></luzmo-edit-option-picker>
|
238
|
-
`;
|
239
|
-
}, X = (o) => {
|
240
|
-
var h, u, b, c, a, p, m, d, x, z, $;
|
241
|
-
const t = ((b = (u = (h = o.translations) == null ? void 0 : h.options) == null ? void 0 : u[o.optionKey]) == null ? void 0 : b.label) ?? ((c = o.controlInfo) == null ? void 0 : c.label), e = (a = o.controlInfo) == null ? void 0 : a.positions, n = o.size, i = H(o.options, o.optionKey), l = ((d = (m = (p = o.translations) == null ? void 0 : p.options) == null ? void 0 : m[o.optionKey]) == null ? void 0 : d.tooltip) ?? ((x = o.controlInfo) == null ? void 0 : x.tooltip), r = w(o) ?? "topRight", {
|
242
|
-
extraLabel: f,
|
243
|
-
extraLabelTooltip: s,
|
244
|
-
extraLabelHasClickAction: y,
|
245
|
-
extraLabelClickAction: L
|
246
|
-
} = A(o), k = T(o);
|
247
|
-
return K`
|
248
|
-
<luzmo-edit-option-position-picker
|
249
|
-
.value=${(z = o.controlInfo) == null ? void 0 : z.value}
|
250
|
-
.positions=${e}
|
251
|
-
.default=${r}
|
252
|
-
.label=${t}
|
253
|
-
.tooltip=${l}
|
254
|
-
.size=${n}
|
255
|
-
.value=${i}
|
256
|
-
.extraLabel=${f}
|
257
|
-
.extraLabelTooltip=${s}
|
258
|
-
.extraLabelHasClickAction=${y}
|
259
|
-
@extraLabelClick=${L}
|
260
|
-
@option-changed=${k}
|
261
|
-
.readonly=${($ = o.controlInfo) == null ? void 0 : $.readonly}
|
262
|
-
></luzmo-edit-option-position-picker>
|
263
|
-
`;
|
264
|
-
}, Y = (o) => {
|
265
|
-
var k, h, u, b, c, a, p, m, d, x, z, $;
|
266
|
-
const t = ((u = (h = (k = o.translations) == null ? void 0 : k.options) == null ? void 0 : h[o.optionKey]) == null ? void 0 : u.label) ?? ((b = o.controlInfo) == null ? void 0 : b.label), e = H(o.options, o.optionKey), n = o.size, i = ((p = (a = (c = o.translations) == null ? void 0 : c.options) == null ? void 0 : a[o.optionKey]) == null ? void 0 : p.tooltip) ?? ((m = o.controlInfo) == null ? void 0 : m.tooltip), l = w(o), {
|
267
|
-
extraLabel: r,
|
268
|
-
extraLabelTooltip: f,
|
269
|
-
extraLabelHasClickAction: s,
|
270
|
-
extraLabelClickAction: y
|
271
|
-
} = A(o), L = T(o);
|
272
|
-
return K`
|
273
|
-
<luzmo-edit-option-positions-number-field
|
274
|
-
.values=${e ?? l}
|
275
|
-
.positions=${(d = o.controlInfo) == null ? void 0 : d.positions}
|
276
|
-
.positionConfiguration=${(x = o.controlInfo) == null ? void 0 : x.positionConfiguration}
|
277
|
-
.label=${t}
|
278
|
-
.size=${n}
|
279
|
-
.tooltip=${i}
|
280
|
-
.extraLabel=${r}
|
281
|
-
.extraLabelTooltip=${f}
|
282
|
-
.extraLabelHasClickAction=${s}
|
283
|
-
@extraLabelClick=${y}
|
284
|
-
@option-changed=${L}
|
285
|
-
.fromOptionValue=${(z = o.controlInfo) == null ? void 0 : z.fromOptionValue}
|
286
|
-
.toOptionValue=${($ = o.controlInfo) == null ? void 0 : $.toOptionValue}
|
287
|
-
></luzmo-edit-option-positions-number-field>
|
288
|
-
`;
|
289
|
-
}, Z = (o) => {
|
290
|
-
var h, u, b, c, a, p, m, d, x, z, $;
|
291
|
-
const t = ((b = (u = (h = o.translations) == null ? void 0 : h.options) == null ? void 0 : u[o.optionKey]) == null ? void 0 : b.label) ?? ((c = o.controlInfo) == null ? void 0 : c.label) ?? o.optionKey ?? "", e = H(o.options, o.optionKey), n = w(o), i = (a = o.controlInfo) == null ? void 0 : a.enum.reduce(
|
292
|
-
(I, v) => {
|
293
|
-
var C, O, V, _;
|
294
|
-
return I[v] = ((_ = (V = (O = (C = o.translations) == null ? void 0 : C.options) == null ? void 0 : O[o.optionKey]) == null ? void 0 : V.enum) == null ? void 0 : _[v]) ?? v, I;
|
295
|
-
},
|
296
|
-
{}
|
297
|
-
), l = o.size, r = ((d = (m = (p = o.translations) == null ? void 0 : p.options) == null ? void 0 : m[o.optionKey]) == null ? void 0 : d.tooltip) ?? ((x = o.controlInfo) == null ? void 0 : x.tooltip), {
|
298
|
-
extraLabel: f,
|
299
|
-
extraLabelTooltip: s,
|
300
|
-
extraLabelHasClickAction: y,
|
301
|
-
extraLabelClickAction: L
|
302
|
-
} = A(o), k = T(o);
|
303
|
-
return K`
|
304
|
-
<luzmo-edit-option-radio-button-group
|
305
|
-
.value=${e ?? n}
|
306
|
-
.values=${i}
|
307
|
-
.label=${t}
|
308
|
-
.size=${l}
|
309
|
-
.tooltip=${r}
|
310
|
-
.extraLabel=${f}
|
311
|
-
.extraLabelTooltip=${s}
|
312
|
-
.extraLabelHasClickAction=${y}
|
313
|
-
@extraLabelClick=${L}
|
314
|
-
@option-changed=${k}
|
315
|
-
.fromOptionValue=${(z = o.controlInfo) == null ? void 0 : z.fromOptionValue}
|
316
|
-
.toOptionValue=${($ = o.controlInfo) == null ? void 0 : $.toOptionValue}
|
317
|
-
></luzmo-edit-option-radio-button-group>
|
318
|
-
`;
|
319
|
-
}, oo = (o) => {
|
320
|
-
var c, a, p, m, d, x, z, $, I, v, C, O, V;
|
321
|
-
const t = ((p = (a = (c = o.translations) == null ? void 0 : c.options) == null ? void 0 : a[o.optionKey]) == null ? void 0 : p.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) ?? (($ = o.controlInfo) == null ? void 0 : $.tooltip), n = (I = o.controlInfo) == null ? void 0 : I.min, i = (v = o.controlInfo) == null ? void 0 : v.max, l = (C = o.controlInfo) == null ? void 0 : C.step, r = H(o.options, o.optionKey), f = o.size, s = w(o), {
|
322
|
-
extraLabel: y,
|
323
|
-
extraLabelTooltip: L,
|
324
|
-
extraLabelHasClickAction: k,
|
325
|
-
extraLabelClickAction: h
|
326
|
-
} = A(o), u = T(o);
|
327
|
-
return K`
|
328
|
-
<luzmo-edit-option-slider
|
329
|
-
.value=${r}
|
330
|
-
.default=${s}
|
331
|
-
.min=${n}
|
332
|
-
.max=${i}
|
333
|
-
.step=${l}
|
334
|
-
.label=${t}
|
335
|
-
.tooltip=${e}
|
336
|
-
.size=${f}
|
337
|
-
.extraLabel=${y}
|
338
|
-
.extraLabelTooltip=${L}
|
339
|
-
.extraLabelHasClickAction=${k}
|
340
|
-
@extraLabelClick=${() => {
|
341
|
-
if (typeof h == "function") {
|
342
|
-
const { options: _ } = h();
|
343
|
-
return o.changeCallback(_);
|
344
|
-
}
|
345
|
-
}}
|
346
|
-
@option-changed=${u}
|
347
|
-
.fromOptionValue=${(O = o.controlInfo) == null ? void 0 : O.fromOptionValue}
|
348
|
-
.toOptionValue=${(V = o.controlInfo) == null ? void 0 : V.toOptionValue}
|
349
|
-
></luzmo-edit-option-slider>
|
350
|
-
`;
|
351
|
-
}, to = (o) => {
|
352
|
-
var k, h, u, b, c, a, p, m, d, x;
|
353
|
-
const t = ((u = (h = (k = o.translations) == null ? void 0 : k.options) == null ? void 0 : h[o.optionKey]) == null ? void 0 : u.label) ?? ((b = o.controlInfo) == null ? void 0 : b.label) ?? o.optionKey ?? "", e = H(o.options, o.optionKey), n = o.size, i = ((p = (a = (c = o.translations) == null ? void 0 : c.options) == null ? void 0 : a[o.optionKey]) == null ? void 0 : p.tooltip) ?? ((m = o.controlInfo) == null ? void 0 : m.tooltip), l = w(o), {
|
354
|
-
extraLabel: r,
|
355
|
-
extraLabelTooltip: f,
|
356
|
-
extraLabelHasClickAction: s,
|
357
|
-
extraLabelClickAction: y
|
358
|
-
} = A(o), L = T(o);
|
359
|
-
return K`
|
360
|
-
<luzmo-edit-option-switch
|
361
|
-
.value=${e ?? l ?? !1}
|
362
|
-
.label=${t}
|
363
|
-
.size=${n}
|
364
|
-
.tooltip=${i}
|
365
|
-
.extraLabel=${r}
|
366
|
-
.extraLabelTooltip=${f}
|
367
|
-
.extraLabelHasClickAction=${s}
|
368
|
-
@extraLabelClick=${y}
|
369
|
-
@option-changed=${L}
|
370
|
-
.fromOptionValue=${(d = o.controlInfo) == null ? void 0 : d.fromOptionValue}
|
371
|
-
.toOptionValue=${(x = o.controlInfo) == null ? void 0 : x.toOptionValue}
|
372
|
-
></luzmo-edit-option-switch>
|
373
|
-
`;
|
374
|
-
}, io = (o) => {
|
375
|
-
var u, b, c, a, p, m, d, x, z, $, I, v, C, O;
|
376
|
-
const t = ((c = (b = (u = o.translations) == null ? void 0 : u.options) == null ? void 0 : b[o.optionKey]) == null ? void 0 : c.label) ?? ((a = o.controlInfo) == null ? void 0 : a.label) ?? o.optionKey ?? "", e = o.language ?? "en", n = {};
|
377
|
-
n[e] = ((d = (m = (p = o.translations) == null ? void 0 : p.options) == null ? void 0 : m[o.optionKey]) == null ? void 0 : d.placeholder) ?? ((x = o.controlInfo) == null ? void 0 : x.placeholder) ?? "";
|
378
|
-
const i = H(o.options, o.optionKey) ?? "", l = o.size, r = ((I = ($ = (z = o.translations) == null ? void 0 : z.options) == null ? void 0 : $[o.optionKey]) == null ? void 0 : I.tooltip) ?? ((v = o.controlInfo) == null ? void 0 : v.tooltip), f = w(o), {
|
379
|
-
extraLabel: s,
|
380
|
-
extraLabelTooltip: y,
|
381
|
-
extraLabelHasClickAction: L,
|
382
|
-
extraLabelClickAction: k
|
383
|
-
} = A(o), h = T(o);
|
384
|
-
return K`
|
385
|
-
<luzmo-edit-option-text-field
|
386
|
-
.label=${t}
|
387
|
-
.placeholder=${n[e]}
|
388
|
-
.value=${i ?? f}
|
389
|
-
.size=${l}
|
390
|
-
.tooltip=${r}
|
391
|
-
.extraLabel=${s}
|
392
|
-
.extraLabelTooltip=${y}
|
393
|
-
.extraLabelHasClickAction=${L}
|
394
|
-
@extraLabelClick=${k}
|
395
|
-
@option-changed=${h}
|
396
|
-
.fromOptionValue=${(C = o.controlInfo) == null ? void 0 : C.fromOptionValue}
|
397
|
-
.toOptionValue=${(O = o.controlInfo) == null ? void 0 : O.toOptionValue}
|
398
|
-
></luzmo-edit-option-text-field>
|
399
|
-
`;
|
400
|
-
}, no = (o) => {
|
401
|
-
switch (o.controlType) {
|
402
|
-
case "picker":
|
403
|
-
return W(o);
|
404
|
-
case "slider":
|
405
|
-
return oo(o);
|
406
|
-
case "switch":
|
407
|
-
return to(o);
|
408
|
-
case "multi-language-field":
|
409
|
-
return J(o);
|
410
|
-
case "text-field":
|
411
|
-
return io(o);
|
412
|
-
case "number-field":
|
413
|
-
return Q(o);
|
414
|
-
case "position-picker":
|
415
|
-
return X(o);
|
416
|
-
case "positions-number-field":
|
417
|
-
return Y(o);
|
418
|
-
case "radio-button-group":
|
419
|
-
return Z(o);
|
420
|
-
case "color-picker":
|
421
|
-
return D(o);
|
422
|
-
case "action-button-group":
|
423
|
-
return q(o);
|
424
|
-
}
|
425
|
-
}, eo = (o, t) => {
|
426
|
-
const e = (n) => {
|
427
|
-
for (const i of n ?? []) {
|
428
|
-
if (i.key === o)
|
429
|
-
return i.control;
|
430
|
-
if (i.children) {
|
431
|
-
const l = e(i.children);
|
432
|
-
if (l)
|
433
|
-
return l;
|
434
|
-
}
|
435
|
-
}
|
436
|
-
return null;
|
437
|
-
};
|
438
|
-
if (t && Array.isArray(t))
|
439
|
-
for (const n of t) {
|
440
|
-
const i = e(n.children);
|
441
|
-
if (i)
|
442
|
-
return i;
|
443
|
-
}
|
444
|
-
return null;
|
445
|
-
};
|
446
|
-
var lo = Object.defineProperty, E = (o, t, e, n) => {
|
447
|
-
for (var i = void 0, l = o.length - 1, r; l >= 0; l--)
|
448
|
-
(r = o[l]) && (i = r(t, e, i) || i);
|
449
|
-
return i && lo(t, e, i), i;
|
450
|
-
};
|
451
|
-
const S = class S extends G {
|
452
|
-
constructor() {
|
453
|
-
super(...arguments), this._loadItemConfig = new P(this, {
|
454
|
-
task: async ([t, e, n]) => {
|
455
|
-
let i = !1;
|
456
|
-
if (t !== this._itemTypeLoaded) {
|
457
|
-
const f = /* @__PURE__ */ Object.assign({
|
458
|
-
"../../item-definitions/area-chart/area-chart-options.config.ts": () => import("../area-chart-options.config-BbSP_Auh.js"),
|
459
|
-
"../../item-definitions/bar-chart/bar-chart-options.config.ts": () => import("../bar-chart-options.config-CRGDLJCK.js"),
|
460
|
-
"../../item-definitions/box-plot/box-plot-options.config.ts": () => import("../box-plot-options.config-BtonHYul.js"),
|
461
|
-
"../../item-definitions/bubble-chart/bubble-chart-options.config.ts": () => import("../bubble-chart-options.config-R5R-E3dd.js"),
|
462
|
-
"../../item-definitions/bullet-chart/bullet-chart-options.config.ts": () => import("../bullet-chart-options.config-D-_esi9S.js"),
|
463
|
-
"../../item-definitions/choropleth-map/choropleth-map-options.config.ts": () => import("../choropleth-map-options.config-z2fY__jr.js"),
|
464
|
-
"../../item-definitions/circle-pack-chart/circle-pack-chart-options.config.ts": () => import("../circle-pack-chart-options.config-DEYL3DMK.js"),
|
465
|
-
"../../item-definitions/circular-gauge/circular-gauge-options.config.ts": () => import("../circular-gauge-options.config-9tIxyJj1.js"),
|
466
|
-
"../../item-definitions/column-chart/column-chart-options.config.ts": () => import("../column-chart-options.config-D87ZFT76.js"),
|
467
|
-
"../../item-definitions/combination-chart/combination-chart-options.config.ts": () => import("../combination-chart-options.config-CApdgFvv.js"),
|
468
|
-
"../../item-definitions/conditional-number/conditional-number-options.config.ts": () => import("../conditional-number-options.config-PVvKLc1P.js"),
|
469
|
-
"../../item-definitions/donut-chart/donut-chart-options.config.ts": () => import("../donut-chart-options.config-NPwNtLDW.js"),
|
470
|
-
"../../item-definitions/dropdown-filter/dropdown-filter-options.config.ts": () => import("../dropdown-filter-options.config-D9dvPypF.js"),
|
471
|
-
"../../item-definitions/funnel-chart/funnel-chart-options.config.ts": () => import("../funnel-chart-options.config-CrlHKd36.js"),
|
472
|
-
"../../item-definitions/image/image-options.config.ts": () => import("../image-options.config-CBfeq5Zw.js"),
|
473
|
-
"../../item-definitions/line-chart/line-chart-options.config.ts": () => import("../line-chart-options.config-BtfCTjNr.js"),
|
474
|
-
"../../item-definitions/ohlc-chart/ohlc-chart-options.config.ts": () => import("../ohlc-chart-options.config-D9npwajt.js"),
|
475
|
-
"../../item-definitions/radar-chart/radar-chart-options.config.ts": () => import("../radar-chart-options.config-DFxna7UF.js"),
|
476
|
-
"../../item-definitions/sankey-diagram/sankey-diagram-options.config.ts": () => import("../sankey-diagram-options.config-Dj9g2BOp.js"),
|
477
|
-
"../../item-definitions/search-filter/search-filter-options.config.ts": () => import("../search-filter-options.config-BE3JhR-F.js"),
|
478
|
-
"../../item-definitions/slicer-filter/slicer-filter-options.config.ts": () => import("../slicer-filter-options.config-BArPA7Mb.js"),
|
479
|
-
"../../item-definitions/slider-filter/slider-filter-options.config.ts": () => import("../slider-filter-options.config-BIKIbGbN.js"),
|
480
|
-
"../../item-definitions/spacer/spacer-options.config.ts": () => import("../spacer-options.config-IpwUxDyU.js"),
|
481
|
-
"../../item-definitions/sunburst-chart/sunburst-chart-options.config.ts": () => import("../sunburst-chart-options.config-BxkJfdrU.js"),
|
482
|
-
"../../item-definitions/text/text-options.config.ts": () => import("../text-options.config-BWaJoeG2.js"),
|
483
|
-
"../../item-definitions/treemap-chart/treemap-chart-options.config.ts": () => import("../treemap-chart-options.config-MyCTS35Y.js"),
|
484
|
-
"../../item-definitions/video/video-options.config.ts": () => import("../video-options.config-Dk36zJ1B.js"),
|
485
|
-
"../../item-definitions/wordcloud-chart/wordcloud-chart-options.config.ts": () => import("../wordcloud-chart-options.config-Dq7TF0sb.js")
|
486
|
-
});
|
487
|
-
if (f[`../../item-definitions/${t}/${t}-options.config.ts`])
|
488
|
-
try {
|
489
|
-
const s = await f[`../../item-definitions/${t}/${t}-options.config.ts`]();
|
490
|
-
this._optionsConfig = (s == null ? void 0 : s.default) ?? [];
|
491
|
-
} catch {
|
492
|
-
this._optionsConfig = [];
|
493
|
-
}
|
494
|
-
else
|
495
|
-
this._optionsConfig = [];
|
496
|
-
i = !0;
|
497
|
-
}
|
498
|
-
if (n !== this._languageLoaded || i) {
|
499
|
-
const f = /* @__PURE__ */ Object.assign({
|
500
|
-
"../../item-definitions/area-chart/i18n/area-chart-options.de.ts": () => import("../area-chart-options.de-FcVE2Ywe.js"),
|
501
|
-
"../../item-definitions/area-chart/i18n/area-chart-options.en.ts": () => import("../area-chart-options.en-Cz5aXeVe.js"),
|
502
|
-
"../../item-definitions/area-chart/i18n/area-chart-options.es.ts": () => import("../area-chart-options.es-o3ABpXnC.js"),
|
503
|
-
"../../item-definitions/area-chart/i18n/area-chart-options.fr.ts": () => import("../area-chart-options.fr-CBhHB_ER.js"),
|
504
|
-
"../../item-definitions/area-chart/i18n/area-chart-options.nl.ts": () => import("../area-chart-options.nl-SbYGv26w.js"),
|
505
|
-
"../../item-definitions/bar-chart/i18n/bar-chart-options.de.ts": () => import("../bar-chart-options.de-DwTn_qfu.js"),
|
506
|
-
"../../item-definitions/bar-chart/i18n/bar-chart-options.en.ts": () => import("../bar-chart-options.en-Crc8tYUJ.js"),
|
507
|
-
"../../item-definitions/bar-chart/i18n/bar-chart-options.es.ts": () => import("../bar-chart-options.es-ByT_D06p.js"),
|
508
|
-
"../../item-definitions/bar-chart/i18n/bar-chart-options.fr.ts": () => import("../bar-chart-options.fr-BwiGRlQf.js"),
|
509
|
-
"../../item-definitions/bar-chart/i18n/bar-chart-options.nl.ts": () => import("../bar-chart-options.nl-DzXnHdwX.js"),
|
510
|
-
"../../item-definitions/box-plot/i18n/box-plot-options.de.ts": () => import("../box-plot-options.de-D3Yye2Yp.js"),
|
511
|
-
"../../item-definitions/box-plot/i18n/box-plot-options.en.ts": () => import("../box-plot-options.en-DADAI4yL.js"),
|
512
|
-
"../../item-definitions/box-plot/i18n/box-plot-options.es.ts": () => import("../box-plot-options.es-ePZUgamp.js"),
|
513
|
-
"../../item-definitions/box-plot/i18n/box-plot-options.fr.ts": () => import("../box-plot-options.fr-DNkSteEz.js"),
|
514
|
-
"../../item-definitions/box-plot/i18n/box-plot-options.nl.ts": () => import("../box-plot-options.nl-GBXrkaLf.js"),
|
515
|
-
"../../item-definitions/bubble-chart/i18n/bubble-chart-options.de.ts": () => import("../bubble-chart-options.de-D8Ap7joq.js"),
|
516
|
-
"../../item-definitions/bubble-chart/i18n/bubble-chart-options.en.ts": () => import("../bubble-chart-options.en-BU3F4n13.js"),
|
517
|
-
"../../item-definitions/bubble-chart/i18n/bubble-chart-options.es.ts": () => import("../bubble-chart-options.es-Bh_dRgE3.js"),
|
518
|
-
"../../item-definitions/bubble-chart/i18n/bubble-chart-options.fr.ts": () => import("../bubble-chart-options.fr-CNiJgmGl.js"),
|
519
|
-
"../../item-definitions/bubble-chart/i18n/bubble-chart-options.nl.ts": () => import("../bubble-chart-options.nl-BoV3kpaZ.js"),
|
520
|
-
"../../item-definitions/bullet-chart/i18n/bullet-chart-options.de.ts": () => import("../bullet-chart-options.de-DxBk0yku.js"),
|
521
|
-
"../../item-definitions/bullet-chart/i18n/bullet-chart-options.en.ts": () => import("../bullet-chart-options.en-Cu1cnL90.js"),
|
522
|
-
"../../item-definitions/bullet-chart/i18n/bullet-chart-options.es.ts": () => import("../bullet-chart-options.es-pGm2umSR.js"),
|
523
|
-
"../../item-definitions/bullet-chart/i18n/bullet-chart-options.fr.ts": () => import("../bullet-chart-options.fr-DGOcuFKQ.js"),
|
524
|
-
"../../item-definitions/bullet-chart/i18n/bullet-chart-options.nl.ts": () => import("../bullet-chart-options.nl-BJ39_p2y.js"),
|
525
|
-
"../../item-definitions/choropleth-map/i18n/choropleth-map-options.de.ts": () => import("../choropleth-map-options.de-BSt-L5Vh.js"),
|
526
|
-
"../../item-definitions/choropleth-map/i18n/choropleth-map-options.en.ts": () => import("../choropleth-map-options.en-Cy7WcWLG.js"),
|
527
|
-
"../../item-definitions/choropleth-map/i18n/choropleth-map-options.es.ts": () => import("../choropleth-map-options.es-BnR-9vJv.js"),
|
528
|
-
"../../item-definitions/choropleth-map/i18n/choropleth-map-options.fr.ts": () => import("../choropleth-map-options.fr-BlwLS1Wy.js"),
|
529
|
-
"../../item-definitions/choropleth-map/i18n/choropleth-map-options.nl.ts": () => import("../choropleth-map-options.nl-D70fr4Hl.js"),
|
530
|
-
"../../item-definitions/circle-pack-chart/i18n/circle-pack-chart-options.de.ts": () => import("../circle-pack-chart-options.de-CUL0ypCU.js"),
|
531
|
-
"../../item-definitions/circle-pack-chart/i18n/circle-pack-chart-options.en.ts": () => import("../circle-pack-chart-options.en-CFTJowAI.js"),
|
532
|
-
"../../item-definitions/circle-pack-chart/i18n/circle-pack-chart-options.es.ts": () => import("../circle-pack-chart-options.es-BGoaousJ.js"),
|
533
|
-
"../../item-definitions/circle-pack-chart/i18n/circle-pack-chart-options.fr.ts": () => import("../circle-pack-chart-options.fr-DLb0Di6Z.js"),
|
534
|
-
"../../item-definitions/circle-pack-chart/i18n/circle-pack-chart-options.nl.ts": () => import("../circle-pack-chart-options.nl-CZL69ZgV.js"),
|
535
|
-
"../../item-definitions/circular-gauge/i18n/circular-gauge-options.de.ts": () => import("../circular-gauge-options.de-BO3S8GCr.js"),
|
536
|
-
"../../item-definitions/circular-gauge/i18n/circular-gauge-options.en.ts": () => import("../circular-gauge-options.en-Cyhhijwg.js"),
|
537
|
-
"../../item-definitions/circular-gauge/i18n/circular-gauge-options.es.ts": () => import("../circular-gauge-options.es-DJ7ru4Wf.js"),
|
538
|
-
"../../item-definitions/circular-gauge/i18n/circular-gauge-options.fr.ts": () => import("../circular-gauge-options.fr-BVWliP7i.js"),
|
539
|
-
"../../item-definitions/circular-gauge/i18n/circular-gauge-options.nl.ts": () => import("../circular-gauge-options.nl-DGpV7Riu.js"),
|
540
|
-
"../../item-definitions/column-chart/i18n/column-chart-options.de.ts": () => import("../column-chart-options.de-VQVdi8aP.js"),
|
541
|
-
"../../item-definitions/column-chart/i18n/column-chart-options.en.ts": () => import("../column-chart-options.en-Crc8tYUJ.js"),
|
542
|
-
"../../item-definitions/column-chart/i18n/column-chart-options.es.ts": () => import("../column-chart-options.es-CT9ZtjV_.js"),
|
543
|
-
"../../item-definitions/column-chart/i18n/column-chart-options.fr.ts": () => import("../column-chart-options.fr-BwiGRlQf.js"),
|
544
|
-
"../../item-definitions/column-chart/i18n/column-chart-options.nl.ts": () => import("../column-chart-options.nl-DB2dcotu.js"),
|
545
|
-
"../../item-definitions/combination-chart/i18n/combination-chart-options.de.ts": () => import("../combination-chart-options.de-CEsSn5-2.js"),
|
546
|
-
"../../item-definitions/combination-chart/i18n/combination-chart-options.en.ts": () => import("../combination-chart-options.en-BCKuLOQb.js"),
|
547
|
-
"../../item-definitions/combination-chart/i18n/combination-chart-options.es.ts": () => import("../combination-chart-options.es-zMa9kqmV.js"),
|
548
|
-
"../../item-definitions/combination-chart/i18n/combination-chart-options.fr.ts": () => import("../combination-chart-options.fr-DOXtaY1V.js"),
|
549
|
-
"../../item-definitions/combination-chart/i18n/combination-chart-options.nl.ts": () => import("../combination-chart-options.nl-CCChbhx_.js"),
|
550
|
-
"../../item-definitions/conditional-number/i18n/conditional-number-options.de.ts": () => import("../conditional-number-options.de-BJcjBZY1.js"),
|
551
|
-
"../../item-definitions/conditional-number/i18n/conditional-number-options.en.ts": () => import("../conditional-number-options.en-WSrIzRGJ.js"),
|
552
|
-
"../../item-definitions/conditional-number/i18n/conditional-number-options.es.ts": () => import("../conditional-number-options.es-BKqT0zog.js"),
|
553
|
-
"../../item-definitions/conditional-number/i18n/conditional-number-options.fr.ts": () => import("../conditional-number-options.fr-D2r7Azy8.js"),
|
554
|
-
"../../item-definitions/conditional-number/i18n/conditional-number-options.nl.ts": () => import("../conditional-number-options.nl-pkRI1tLZ.js"),
|
555
|
-
"../../item-definitions/donut-chart/i18n/donut-chart-options.de.ts": () => import("../donut-chart-options.de-nSj3ghwo.js"),
|
556
|
-
"../../item-definitions/donut-chart/i18n/donut-chart-options.en.ts": () => import("../donut-chart-options.en-CrUf4CJ9.js"),
|
557
|
-
"../../item-definitions/donut-chart/i18n/donut-chart-options.es.ts": () => import("../donut-chart-options.es-DnsGqOdo.js"),
|
558
|
-
"../../item-definitions/donut-chart/i18n/donut-chart-options.fr.ts": () => import("../donut-chart-options.fr-DVfZwZny.js"),
|
559
|
-
"../../item-definitions/donut-chart/i18n/donut-chart-options.nl.ts": () => import("../donut-chart-options.nl-CUuOQyJg.js"),
|
560
|
-
"../../item-definitions/dropdown-filter/i18n/dropdown-filter-options.de.ts": () => import("../dropdown-filter-options.de-0HBcrwev.js"),
|
561
|
-
"../../item-definitions/dropdown-filter/i18n/dropdown-filter-options.en.ts": () => import("../dropdown-filter-options.en-CNdmMsNW.js"),
|
562
|
-
"../../item-definitions/dropdown-filter/i18n/dropdown-filter-options.es.ts": () => import("../dropdown-filter-options.es-DjgZxklA.js"),
|
563
|
-
"../../item-definitions/dropdown-filter/i18n/dropdown-filter-options.fr.ts": () => import("../dropdown-filter-options.fr-n_2OjO_u.js"),
|
564
|
-
"../../item-definitions/dropdown-filter/i18n/dropdown-filter-options.nl.ts": () => import("../dropdown-filter-options.nl-CL6UEP00.js"),
|
565
|
-
"../../item-definitions/funnel-chart/i18n/funnel-chart-options.de.ts": () => import("../funnel-chart-options.de-CuVFMJUC.js"),
|
566
|
-
"../../item-definitions/funnel-chart/i18n/funnel-chart-options.en.ts": () => import("../funnel-chart-options.en-CvPbJr1r.js"),
|
567
|
-
"../../item-definitions/funnel-chart/i18n/funnel-chart-options.es.ts": () => import("../funnel-chart-options.es-_M7sC4m6.js"),
|
568
|
-
"../../item-definitions/funnel-chart/i18n/funnel-chart-options.fr.ts": () => import("../funnel-chart-options.fr-DvnZ-XbE.js"),
|
569
|
-
"../../item-definitions/funnel-chart/i18n/funnel-chart-options.nl.ts": () => import("../funnel-chart-options.nl-C72_FTNm.js"),
|
570
|
-
"../../item-definitions/image/i18n/image-options.de.ts": () => import("../image-options.de-CYVnqdL_.js"),
|
571
|
-
"../../item-definitions/image/i18n/image-options.en.ts": () => import("../image-options.en-BMmV-4O-.js"),
|
572
|
-
"../../item-definitions/image/i18n/image-options.es.ts": () => import("../image-options.es-UN5rmaEt.js"),
|
573
|
-
"../../item-definitions/image/i18n/image-options.fr.ts": () => import("../image-options.fr-DRE3zImB.js"),
|
574
|
-
"../../item-definitions/image/i18n/image-options.nl.ts": () => import("../image-options.nl-D20hki6i.js"),
|
575
|
-
"../../item-definitions/line-chart/i18n/line-chart-options.de.ts": () => import("../line-chart-options.de-C4c6fWBr.js"),
|
576
|
-
"../../item-definitions/line-chart/i18n/line-chart-options.en.ts": () => import("../line-chart-options.en-XEng6bZk.js"),
|
577
|
-
"../../item-definitions/line-chart/i18n/line-chart-options.es.ts": () => import("../line-chart-options.es-B6CBKzRj.js"),
|
578
|
-
"../../item-definitions/line-chart/i18n/line-chart-options.fr.ts": () => import("../line-chart-options.fr-BIugWKt4.js"),
|
579
|
-
"../../item-definitions/line-chart/i18n/line-chart-options.nl.ts": () => import("../line-chart-options.nl-87TuLT5-.js"),
|
580
|
-
"../../item-definitions/ohlc-chart/i18n/ohlc-chart-options.de.ts": () => import("../ohlc-chart-options.de-CZj-UIJm.js"),
|
581
|
-
"../../item-definitions/ohlc-chart/i18n/ohlc-chart-options.en.ts": () => import("../ohlc-chart-options.en-W7r8X64N.js"),
|
582
|
-
"../../item-definitions/ohlc-chart/i18n/ohlc-chart-options.es.ts": () => import("../ohlc-chart-options.es-B1PdbaLo.js"),
|
583
|
-
"../../item-definitions/ohlc-chart/i18n/ohlc-chart-options.fr.ts": () => import("../ohlc-chart-options.fr-3n_H_IQ3.js"),
|
584
|
-
"../../item-definitions/ohlc-chart/i18n/ohlc-chart-options.nl.ts": () => import("../ohlc-chart-options.nl-BVw9fPpa.js"),
|
585
|
-
"../../item-definitions/radar-chart/i18n/radar-chart-options.de.ts": () => import("../radar-chart-options.de-DUzx_7w0.js"),
|
586
|
-
"../../item-definitions/radar-chart/i18n/radar-chart-options.en.ts": () => import("../radar-chart-options.en-CV6ZYx8z.js"),
|
587
|
-
"../../item-definitions/radar-chart/i18n/radar-chart-options.es.ts": () => import("../radar-chart-options.es-BgvSKtUs.js"),
|
588
|
-
"../../item-definitions/radar-chart/i18n/radar-chart-options.fr.ts": () => import("../radar-chart-options.fr-CobHnfMX.js"),
|
589
|
-
"../../item-definitions/radar-chart/i18n/radar-chart-options.nl.ts": () => import("../radar-chart-options.nl-M4-vur3g.js"),
|
590
|
-
"../../item-definitions/sankey-diagram/i18n/sankey-diagram-options.de.ts": () => import("../sankey-diagram-options.de-kp4wK81w.js"),
|
591
|
-
"../../item-definitions/sankey-diagram/i18n/sankey-diagram-options.en.ts": () => import("../sankey-diagram-options.en-BJG2rmog.js"),
|
592
|
-
"../../item-definitions/sankey-diagram/i18n/sankey-diagram-options.es.ts": () => import("../sankey-diagram-options.es-DoU2uZkk.js"),
|
593
|
-
"../../item-definitions/sankey-diagram/i18n/sankey-diagram-options.fr.ts": () => import("../sankey-diagram-options.fr-CqASKXuH.js"),
|
594
|
-
"../../item-definitions/sankey-diagram/i18n/sankey-diagram-options.nl.ts": () => import("../sankey-diagram-options.nl-BQcClmve.js"),
|
595
|
-
"../../item-definitions/search-filter/i18n/search-filter-options.de.ts": () => import("../search-filter-options.de-CtQU33mZ.js"),
|
596
|
-
"../../item-definitions/search-filter/i18n/search-filter-options.en.ts": () => import("../search-filter-options.en-D_lZl4BW.js"),
|
597
|
-
"../../item-definitions/search-filter/i18n/search-filter-options.es.ts": () => import("../search-filter-options.es-4mDTBqYv.js"),
|
598
|
-
"../../item-definitions/search-filter/i18n/search-filter-options.fr.ts": () => import("../search-filter-options.fr-CSzsk8kC.js"),
|
599
|
-
"../../item-definitions/search-filter/i18n/search-filter-options.nl.ts": () => import("../search-filter-options.nl-CUIS-wlX.js"),
|
600
|
-
"../../item-definitions/slicer-filter/i18n/slicer-filter-options.de.ts": () => import("../slicer-filter-options.de-89LcA_-b.js"),
|
601
|
-
"../../item-definitions/slicer-filter/i18n/slicer-filter-options.en.ts": () => import("../slicer-filter-options.en-BtvdQlh6.js"),
|
602
|
-
"../../item-definitions/slicer-filter/i18n/slicer-filter-options.es.ts": () => import("../slicer-filter-options.es-CsuWj6x4.js"),
|
603
|
-
"../../item-definitions/slicer-filter/i18n/slicer-filter-options.fr.ts": () => import("../slicer-filter-options.fr-Q1R9a5aW.js"),
|
604
|
-
"../../item-definitions/slicer-filter/i18n/slicer-filter-options.nl.ts": () => import("../slicer-filter-options.nl-BR-R2l1o.js"),
|
605
|
-
"../../item-definitions/slider-filter/i18n/slider-filter-options.de.ts": () => import("../slider-filter-options.de-BETdnh_t.js"),
|
606
|
-
"../../item-definitions/slider-filter/i18n/slider-filter-options.en.ts": () => import("../slider-filter-options.en-DpbWEGHE.js"),
|
607
|
-
"../../item-definitions/slider-filter/i18n/slider-filter-options.es.ts": () => import("../slider-filter-options.es-CWazXehw.js"),
|
608
|
-
"../../item-definitions/slider-filter/i18n/slider-filter-options.fr.ts": () => import("../slider-filter-options.fr-B2RT9GfR.js"),
|
609
|
-
"../../item-definitions/slider-filter/i18n/slider-filter-options.nl.ts": () => import("../slider-filter-options.nl-CwxJqGoK.js"),
|
610
|
-
"../../item-definitions/sunburst-chart/i18n/sunburst-chart-options.de.ts": () => import("../sunburst-chart-options.de-DOjqnDNg.js"),
|
611
|
-
"../../item-definitions/sunburst-chart/i18n/sunburst-chart-options.en.ts": () => import("../sunburst-chart-options.en-DQOS_dec.js"),
|
612
|
-
"../../item-definitions/sunburst-chart/i18n/sunburst-chart-options.es.ts": () => import("../sunburst-chart-options.es-DGsVkhyC.js"),
|
613
|
-
"../../item-definitions/sunburst-chart/i18n/sunburst-chart-options.fr.ts": () => import("../sunburst-chart-options.fr-DIWRXmkr.js"),
|
614
|
-
"../../item-definitions/sunburst-chart/i18n/sunburst-chart-options.nl.ts": () => import("../sunburst-chart-options.nl-D0hYq2Mh.js"),
|
615
|
-
"../../item-definitions/text/i18n/text-options.de.ts": () => import("../text-options.de-BjfS5RBn.js"),
|
616
|
-
"../../item-definitions/text/i18n/text-options.en.ts": () => import("../text-options.en-BQqHFc7M.js"),
|
617
|
-
"../../item-definitions/text/i18n/text-options.es.ts": () => import("../text-options.es-CMB1DKq4.js"),
|
618
|
-
"../../item-definitions/text/i18n/text-options.fr.ts": () => import("../text-options.fr-VPJ3bDOM.js"),
|
619
|
-
"../../item-definitions/text/i18n/text-options.nl.ts": () => import("../text-options.nl-C8sliUgH.js"),
|
620
|
-
"../../item-definitions/treemap-chart/i18n/treemap-chart-options.de.ts": () => import("../treemap-chart-options.de-Bdj6O-Ju.js"),
|
621
|
-
"../../item-definitions/treemap-chart/i18n/treemap-chart-options.en.ts": () => import("../treemap-chart-options.en-D6co_QL8.js"),
|
622
|
-
"../../item-definitions/treemap-chart/i18n/treemap-chart-options.es.ts": () => import("../treemap-chart-options.es-BjbsJzCM.js"),
|
623
|
-
"../../item-definitions/treemap-chart/i18n/treemap-chart-options.fr.ts": () => import("../treemap-chart-options.fr-VG44wSIJ.js"),
|
624
|
-
"../../item-definitions/treemap-chart/i18n/treemap-chart-options.nl.ts": () => import("../treemap-chart-options.nl-BTKv3TBd.js"),
|
625
|
-
"../../item-definitions/video/i18n/video-options.de.ts": () => import("../video-options.de-DIKmTgn5.js"),
|
626
|
-
"../../item-definitions/video/i18n/video-options.en.ts": () => import("../video-options.en-DMzcDD7I.js"),
|
627
|
-
"../../item-definitions/video/i18n/video-options.es.ts": () => import("../video-options.es-CtV-__xN.js"),
|
628
|
-
"../../item-definitions/video/i18n/video-options.fr.ts": () => import("../video-options.fr-DHt0mV9L.js"),
|
629
|
-
"../../item-definitions/video/i18n/video-options.nl.ts": () => import("../video-options.nl-1cNZgoqf.js"),
|
630
|
-
"../../item-definitions/wordcloud-chart/i18n/wordcloud-chart-options.de.ts": () => import("../wordcloud-chart-options.de-DwLQlEJg.js"),
|
631
|
-
"../../item-definitions/wordcloud-chart/i18n/wordcloud-chart-options.en.ts": () => import("../wordcloud-chart-options.en-DWkM70-M.js"),
|
632
|
-
"../../item-definitions/wordcloud-chart/i18n/wordcloud-chart-options.es.ts": () => import("../wordcloud-chart-options.es-CkXbSwEc.js"),
|
633
|
-
"../../item-definitions/wordcloud-chart/i18n/wordcloud-chart-options.fr.ts": () => import("../wordcloud-chart-options.fr-DNK5Ouc5.js"),
|
634
|
-
"../../item-definitions/wordcloud-chart/i18n/wordcloud-chart-options.nl.ts": () => import("../wordcloud-chart-options.nl-CcgmqL7I.js")
|
635
|
-
});
|
636
|
-
if (f[`../../item-definitions/${t}/i18n/${t}-options.${n}.ts`])
|
637
|
-
try {
|
638
|
-
const s = await f[`../../item-definitions/${t}/i18n/${t}-options.${n}.ts`]();
|
639
|
-
this._translations = (s == null ? void 0 : s.default) ?? {};
|
640
|
-
} catch (s) {
|
641
|
-
this._translations = {}, console.error(s);
|
642
|
-
}
|
643
|
-
else
|
644
|
-
this._translations = {};
|
645
|
-
}
|
646
|
-
const l = eo(e, this._optionsConfig), r = l == null ? void 0 : l.type;
|
647
|
-
if (r !== this._controlTypeLoaded) {
|
648
|
-
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") });
|
649
|
-
try {
|
650
|
-
f[`../edit-option-${r}/index.ts`] && (await f[`../edit-option-${r}/index.ts`](), this._controlTypeLoaded = r);
|
651
|
-
} catch (s) {
|
652
|
-
console.error(s);
|
653
|
-
}
|
654
|
-
}
|
655
|
-
return l;
|
656
|
-
},
|
657
|
-
args: () => [this.itemType, this.optionKey, this.language]
|
658
|
-
}), this.language = "en", this.options = {}, this.slots = {}, this.theme = {}, this.size = "m", this.changedOptions = (t) => {
|
659
|
-
this.options = t, this.dispatchEvent(
|
660
|
-
new CustomEvent("options-changed", {
|
661
|
-
bubbles: !0,
|
662
|
-
composed: !0,
|
663
|
-
cancelable: !0,
|
664
|
-
detail: {
|
665
|
-
options: t
|
666
|
-
}
|
667
|
-
})
|
668
|
-
);
|
669
|
-
};
|
670
|
-
}
|
671
|
-
render() {
|
672
|
-
return this._loadItemConfig.render({
|
673
|
-
pending: () => K`<p>Loading...</p>`,
|
674
|
-
complete: (t) => no({
|
675
|
-
controlType: t == null ? void 0 : t.type,
|
676
|
-
optionKey: this.optionKey,
|
677
|
-
controlInfo: t,
|
678
|
-
options: this.options,
|
679
|
-
slots: this.slots,
|
680
|
-
theme: this.theme,
|
681
|
-
language: this.language,
|
682
|
-
translations: this._translations,
|
683
|
-
size: this.size,
|
684
|
-
changeCallback: this.changedOptions
|
685
|
-
}),
|
686
|
-
error: (t) => (console.error(t), K``)
|
687
|
-
});
|
688
|
-
}
|
689
|
-
};
|
690
|
-
S.styles = R(U);
|
691
|
-
let M = S;
|
692
|
-
E([
|
693
|
-
j({ type: String, reflect: !0 })
|
694
|
-
], M.prototype, "language");
|
695
|
-
E([
|
696
|
-
j({ type: String, reflect: !0, attribute: "item-type" })
|
697
|
-
], M.prototype, "itemType");
|
698
|
-
E([
|
699
|
-
j({ type: String, reflect: !0, attribute: "option-key" })
|
700
|
-
], M.prototype, "optionKey");
|
701
|
-
E([
|
702
|
-
j({ type: Object })
|
703
|
-
], M.prototype, "options");
|
704
|
-
E([
|
705
|
-
j({ type: Object })
|
706
|
-
], M.prototype, "slots");
|
707
|
-
E([
|
708
|
-
j({ type: Object })
|
709
|
-
], M.prototype, "theme");
|
710
|
-
E([
|
711
|
-
j({ type: String, reflect: !0 })
|
712
|
-
], M.prototype, "size");
|
713
|
-
customElements.get("luzmo-edit-option") || customElements.define("luzmo-edit-option", M);
|
27
|
+
l();
|
714
28
|
export {
|
715
|
-
|
29
|
+
u as LuzmoEditOption
|
716
30
|
};
|