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