@luzmo/analytics-components-kit 1.0.1-alpha.84 → 1.0.1-alpha.85
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/angular/components/droppable-slot.component.ts +2 -2
- package/angular/esm/components/droppable-slot.component.d.ts +2 -2
- package/angular/esm/types.d.ts +1 -1
- package/angular/types.ts +2 -2
- package/components/ai-chat-messages-container/index.cjs +1 -1
- package/components/ai-chat-messages-container/index.js +2 -2
- package/components/ai-interaction-textarea/index.cjs +50 -0
- package/components/ai-interaction-textarea/index.d.ts +1 -1
- package/components/ai-interaction-textarea/index.js +152 -0
- package/components/area-chart-options.config-Bl8bhhOo.cjs +20 -0
- package/components/{area-chart-options.config-_J0sG4NF.js → area-chart-options.config-u8itidsi.js} +14 -26
- package/components/bar-chart-options.config-CePAqM83.cjs +20 -0
- package/components/{bar-chart-options.config-D1mb5TDl.js → bar-chart-options.config-DIirbAJ0.js} +21 -35
- package/components/box-plot-options.config-BVNrV2eD.cjs +20 -0
- package/components/{box-plot-options.config-xu_i6ms7.js → box-plot-options.config-BWROiguA.js} +52 -88
- package/components/{bubble-chart-options.config-BacgXkJ_.js → bubble-chart-options.config-4QD8VPhU.js} +9 -18
- package/components/bubble-chart-options.config-BDgOe3GQ.cjs +20 -0
- package/components/{bullet-chart-options.config-CDPpX1yc.js → bullet-chart-options.config-3bH7uekx.js} +1 -1
- package/components/{bullet-chart-options.config-DfS4Bwds.cjs → bullet-chart-options.config-tWb6Fio-.cjs} +1 -1
- package/components/calculate-data-item-icon-C8CbsMQf.js +139 -0
- package/components/{calculate-data-item-icon-DjW1_RI1.cjs → calculate-data-item-icon-CX4VW9Km.cjs} +1 -1
- package/components/{choropleth-map-options.config-B_W9-rhe.js → choropleth-map-options.config-CMxx3ORp.js} +63 -84
- package/components/choropleth-map-options.config-CWJACFd0.cjs +20 -0
- package/components/circular-gauge-options.config-BMxgq3zH.cjs +20 -0
- package/components/{circular-gauge-options.config-DAIjz4Rl.js → circular-gauge-options.config-DhIKn44k.js} +23 -36
- package/components/{color-DuJ4-73S.js → color-B7m0j8lX.js} +941 -950
- package/components/color-Czp4Im5q.cjs +20 -0
- package/components/{color-range-utils-Bvo9sm5A.js → color-range-utils-BSfqtB3A.js} +31 -32
- package/components/color-range-utils-DYYR-iwx.cjs +20 -0
- package/components/column-chart-options.config-BV9R3ssH.cjs +20 -0
- package/components/{column-chart-options.config-B5SjBVdy.js → column-chart-options.config-D5-yR7iq.js} +27 -37
- package/components/conditional-number-options.config-Co099Qfm.cjs +20 -0
- package/components/{conditional-number-options.config-BCEpSK9J.js → conditional-number-options.config-DPYsdML5.js} +24 -40
- package/components/dataset-selector-list/index.cjs +11 -11
- package/components/dataset-selector-list/index.js +65 -69
- package/components/dataset-selector-row/dataset-selector-row.d.ts +1 -0
- package/components/dataset-selector-row/index.cjs +79 -0
- package/components/dataset-selector-row/index.d.ts +1 -1
- package/components/dataset-selector-row/index.js +209 -0
- package/components/{date-comparison-filter-options.config-JA_yYpJa.js → date-comparison-filter-options.config-CSwGyuBg.js} +3 -6
- package/components/{date-comparison-filter-options.config-DAVncmi0.cjs → date-comparison-filter-options.config-QaoWaFUn.cjs} +1 -1
- package/components/{date-filter-options.config-DBRxlTWy.js → date-filter-options.config-BTVyHRkp.js} +3 -6
- package/components/{date-filter-options.config-CWPMtA18.cjs → date-filter-options.config-n-zhWaYa.cjs} +1 -1
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -1
- package/components/display-settings-binning/index.cjs +5 -5
- package/components/display-settings-binning/index.js +29 -30
- package/components/display-settings-datetime/index.cjs +29 -29
- package/components/display-settings-datetime/index.js +112 -120
- package/components/display-settings-grand-totals/index.cjs +4 -4
- package/components/display-settings-grand-totals/index.js +23 -24
- package/components/display-settings-numeric/index.cjs +48 -48
- package/components/display-settings-numeric/index.js +194 -211
- package/components/display-settings-period-over-period/index.cjs +16 -16
- package/components/display-settings-period-over-period/index.js +91 -97
- package/components/{donut-chart-options.config-BulUEiaH.js → donut-chart-options.config-3ZqX8Cbb.js} +21 -37
- package/components/donut-chart-options.config-BQyPgnC9.cjs +20 -0
- package/components/draggable-data-item/index.cjs +8 -8
- package/components/draggable-data-item/index.js +44 -45
- package/components/draggable-data-item-level/index.cjs +11 -11
- package/components/draggable-data-item-level/index.js +89 -92
- package/components/{dropdown-filter-options.config-D9dvPypF.js → dropdown-filter-options.config-CGJTtgAX.js} +7 -10
- package/components/{dropdown-filter-options.config-DS-MORmq.cjs → dropdown-filter-options.config-DJvfCTk7.cjs} +1 -1
- package/components/droppable-slot/droppable-slot.d.ts +2 -2
- package/components/droppable-slot/index.cjs +20 -20
- package/components/droppable-slot/index.js +167 -181
- package/components/edit-item/index.cjs +9 -9
- package/components/edit-item/index.js +116 -119
- package/components/edit-option/index.cjs +1 -1
- package/components/edit-option/index.js +1 -1
- package/components/edit-option-action-button-group/index.cjs +8 -8
- package/components/edit-option-action-button-group/index.js +52 -53
- package/components/{edit-option-base-DIc7iC-b.js → edit-option-base-Bh29-Cak.js} +1 -1
- package/components/{edit-option-base-VhTih9T1.cjs → edit-option-base-tFr8Qg2B.cjs} +1 -1
- package/components/edit-option-color-palette-picker/index.cjs +1 -1
- package/components/edit-option-color-palette-picker/index.js +1 -1
- package/components/edit-option-color-picker/index.cjs +1 -1
- package/components/edit-option-color-picker/index.js +1 -1
- package/components/edit-option-color-range/index.cjs +19 -19
- package/components/edit-option-color-range/index.js +106 -117
- package/components/edit-option-multi-language-field/index.cjs +3 -3
- package/components/edit-option-multi-language-field/index.js +26 -27
- package/components/edit-option-number-field/index.cjs +1 -1
- package/components/edit-option-number-field/index.js +1 -1
- package/components/edit-option-picker/index.cjs +5 -5
- package/components/edit-option-picker/index.js +7 -7
- package/components/edit-option-position-picker/index.cjs +4 -4
- package/components/edit-option-position-picker/index.js +21 -25
- package/components/edit-option-positions-number-field/index.cjs +9 -9
- package/components/edit-option-positions-number-field/index.js +76 -81
- package/components/edit-option-radio-button-group/index.cjs +6 -6
- package/components/edit-option-radio-button-group/index.js +21 -22
- package/components/edit-option-slider/index.cjs +1 -1
- package/components/edit-option-slider/index.js +1 -1
- package/components/edit-option-switch/index.cjs +1 -1
- package/components/edit-option-switch/index.js +1 -1
- package/components/edit-option-text-field/index.cjs +2 -2
- package/components/edit-option-text-field/index.js +22 -23
- package/components/en--a5SfjnM.cjs +20 -0
- package/components/en-CtCctD2c.js +1483 -0
- package/components/{en-GB-DG6uS3sM.cjs → en-GB-CXVKFWyH.cjs} +1 -1
- package/components/{en-GB-CEHEs8F2.js → en-GB-CbNfyZMo.js} +1 -1
- package/components/{evolution-number-options.config-DzkfeoIN.js → evolution-number-options.config-BIPO_4n3.js} +11 -14
- package/components/{evolution-number-options.config-BgIZY4gQ.cjs → evolution-number-options.config-Bc9eKYnn.cjs} +1 -1
- package/components/{extrapolate-color-0j_AeYkz.cjs → extrapolate-color-C0n1UDs-.cjs} +1 -1
- package/components/{extrapolate-color-CC9CURf6.js → extrapolate-color-v1PimdQr.js} +1 -1
- package/components/filter-data-item-picker/index.cjs +7 -7
- package/components/filter-data-item-picker/index.js +85 -86
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -1
- package/components/filter-item/index.cjs +6 -6
- package/components/filter-item/index.js +109 -119
- package/components/filter-value-picker/index.cjs +2 -2
- package/components/filter-value-picker/index.js +34 -36
- package/components/filter-value-picker-datetime/index.cjs +8 -8
- package/components/filter-value-picker-datetime/index.js +56 -71
- package/components/filter-value-picker-hierarchy/index.cjs +12 -12
- package/components/filter-value-picker-hierarchy/index.js +113 -124
- package/components/filter-value-picker-numeric/index.cjs +8 -8
- package/components/filter-value-picker-numeric/index.js +101 -110
- package/components/{focusable-DCIFkpiW.js → focusable-BS2pbY7w.js} +24 -26
- package/components/focusable-QLh-LlNt.cjs +20 -0
- package/components/{funnel-chart-options.config-C_VjTOvD.js → funnel-chart-options.config-CrJy2U7_.js} +5 -20
- package/components/funnel-chart-options.config-DrP4AFgk.cjs +20 -0
- package/components/{get-css-variable-DLiZYZEi.cjs → get-css-variable-CuDaWSjr.cjs} +2 -2
- package/components/{get-css-variable-YlLiVgo8.js → get-css-variable-DEf4GhTH.js} +4 -4
- package/components/grid/index.cjs +46 -46
- package/components/grid/index.js +2612 -1873
- package/components/heat-map-options.config-CIHnPdYE.cjs +20 -0
- package/components/{heat-map-options.config-BnLWe8jS.js → heat-map-options.config-CmL87j1j.js} +35 -41
- package/components/{heat-table-options.config-CUsDdgUr.js → heat-table-options.config-BrCYAgYD.js} +60 -88
- package/components/heat-table-options.config-DTlZRc_i.cjs +20 -0
- package/components/helpers-9I0oLoUB.cjs +20 -0
- package/components/helpers-bR8Ibjqh.js +79 -0
- package/components/{hexbin-map-options.config-F-7uCqxb.js → hexbin-map-options.config-BguV1w8q.js} +20 -38
- package/components/hexbin-map-options.config-CKnn3VAB.cjs +20 -0
- package/components/{index-Do7O9azB.js → index-3WsfvkZF.js} +112 -123
- package/components/{index-PMDgRSzR.js → index-BDFBUGBc.js} +94 -104
- package/components/index-BGb_wRRW.js +1766 -0
- package/components/{index-BPNsFiyq.cjs → index-BNAmjOkm.cjs} +4 -4
- package/components/index-BUal0r_D.cjs +121 -0
- package/components/index-D1Y5TRsH.cjs +20 -0
- package/components/index-DvkzMbLt.cjs +249 -0
- package/components/{index-CdIUfo-L.js → index-haa7WNrl.js} +453 -481
- package/components/index.cjs +1 -60
- package/components/index.js +102 -281
- package/components/item-options-configs.cjs +1 -1
- package/components/item-options-configs.js +37 -37
- package/components/{line-chart-options.config-DB3IsXXr.js → line-chart-options.config-BhirTGqD.js} +13 -28
- package/components/line-chart-options.config-Cqwou5u6.cjs +20 -0
- package/components/{localize-r7ALOUy_.cjs → localize-C4zNlrwK.cjs} +1 -1
- package/components/{localize-BX7q0S0M.js → localize-CcDpq940.js} +10 -10
- package/components/{marker-map-options.config-DPJ955tt.js → marker-map-options.config-Bx17jmiq.js} +1 -1
- package/components/{marker-map-options.config-_FYZzRwA.cjs → marker-map-options.config-CvhCylSC.cjs} +1 -1
- package/components/{pivot-table-options.config-DNK_AIG7.js → pivot-table-options.config-CFc7y0IT.js} +15 -24
- package/components/pivot-table-options.config-uZDAertf.cjs +20 -0
- package/components/{pyramid-chart-options.config-CcVMatYx.js → pyramid-chart-options.config-2Waxb11l.js} +29 -43
- package/components/pyramid-chart-options.config-DoGfEvzU.cjs +20 -0
- package/components/{radar-chart-options.config-CUZn_3Fd.js → radar-chart-options.config-CPN5fOl8.js} +11 -23
- package/components/radar-chart-options.config-CtNUMN1l.cjs +20 -0
- package/components/{regular-table-options.config-BoLZsBry.js → regular-table-options.config-CFKCJQK1.js} +17 -23
- package/components/{regular-table-options.config-DTx3RTnS.cjs → regular-table-options.config-YRuoijIk.cjs} +1 -1
- package/components/route-map-options.config-CVTk5RVL.cjs +20 -0
- package/components/{route-map-options.config-CN86T7c0.js → route-map-options.config-CyolTJfK.js} +87 -109
- package/components/{sankey-diagram-options.config-RFB83YLZ.cjs → sankey-diagram-options.config-D7OSvSqm.cjs} +1 -1
- package/components/{sankey-diagram-options.config-tVLKy_Zn.js → sankey-diagram-options.config-Ldjk84ro.js} +7 -10
- package/components/scatter-plot-options.config-5gN7pMTm.cjs +20 -0
- package/components/{scatter-plot-options.config-Corlzno1.js → scatter-plot-options.config-CfxEfkQ1.js} +56 -86
- package/components/{search-filter-options.config-BE3JhR-F.js → search-filter-options.config-C0syQmP4.js} +3 -6
- package/components/{search-filter-options.config-BCaDlYqZ.cjs → search-filter-options.config-Oqco9BKj.cjs} +1 -1
- package/components/{set-locale-B-Tz2sdI.js → set-locale-nv7fWEtl.js} +1 -8
- package/components/slicer-filter-options.config-CrusP6a0.cjs +20 -0
- package/components/{slicer-filter-options.config-3JZZcw5C.js → slicer-filter-options.config-DmOe3440.js} +9 -18
- package/components/{slider-filter-options.config-DH4SS8wH.js → slider-filter-options.config-B1M8RcDs.js} +1 -1
- package/components/{slider-filter-options.config-_8Z2zKmU.cjs → slider-filter-options.config-k45I-t6G.cjs} +1 -1
- package/components/slot-contents-picker/index.cjs +33 -33
- package/components/slot-contents-picker/index.js +194 -205
- package/components/slot-menu/index.cjs +12 -12
- package/components/slot-menu/index.js +171 -184
- package/components/slot-menu-list/index.cjs +3 -3
- package/components/slot-menu-list/index.js +97 -103
- package/components/speedometer-chart-options.config-B4ceg_qI.cjs +20 -0
- package/components/{speedometer-chart-options.config-SL581yOa.js → speedometer-chart-options.config-CzOmuEF8.js} +31 -53
- package/components/spike-map-options.config-BkkDqb4g.cjs +20 -0
- package/components/{spike-map-options.config-C5KewecZ.js → spike-map-options.config-Cbt1YUw6.js} +91 -122
- package/components/{sunburst-chart-options.config-AbNjWS6t.cjs → sunburst-chart-options.config-Yrxc2i57.cjs} +1 -1
- package/components/{sunburst-chart-options.config-CNauGQJv.js → sunburst-chart-options.config-_dyLQxPJ.js} +9 -20
- package/components/{symbol-map-options.config-DdDA4aa7.js → symbol-map-options.config-BORL1NSU.js} +11 -20
- package/components/symbol-map-options.config-NpBKm64d.cjs +20 -0
- package/components/{treemap-chart-options.config-D5AJaF_u.js → treemap-chart-options.config-B9i9qIm_.js} +20 -37
- package/components/treemap-chart-options.config-x4J54WSw.cjs +20 -0
- package/components/utils.cjs +1 -1
- package/components/utils.js +64 -65
- package/components/{video-options.config-CGsDTwHc.cjs → video-options.config-B0asgYt8.cjs} +1 -1
- package/components/{video-options.config-Dk36zJ1B.js → video-options.config-UX-9MDfS.js} +7 -10
- package/components/{wordcloud-chart-options.config-vGfCW8kE.cjs → wordcloud-chart-options.config-BKtJT8Va.cjs} +1 -1
- package/components/{wordcloud-chart-options.config-w2NUIWVA.js → wordcloud-chart-options.config-BoB_KuhA.js} +4 -7
- package/custom-elements.json +22 -2
- package/index.d.ts +1 -0
- package/package.json +5 -5
- package/types.d.ts +1 -1
- package/components/area-chart-options.config-C7sMAHco.cjs +0 -20
- package/components/bar-chart-options.config-DcxEkOT5.cjs +0 -20
- package/components/box-plot-options.config-SrrbDEYW.cjs +0 -20
- package/components/bubble-chart-options.config-Ihn6eVQI.cjs +0 -20
- package/components/calculate-data-item-icon-DZDqb3xu.js +0 -139
- package/components/choropleth-map-options.config-ZW8yoZH2.cjs +0 -20
- package/components/circular-gauge-options.config-msZ4mfpN.cjs +0 -20
- package/components/color-B6LaL8qz.cjs +0 -20
- package/components/color-range-utils-C5yXW7ZC.cjs +0 -20
- package/components/column-chart-options.config-BjDvA7i9.cjs +0 -20
- package/components/conditional-number-options.config-DgzUo0xi.cjs +0 -20
- package/components/donut-chart-options.config-tNpqBZfR.cjs +0 -20
- package/components/en-BKBhKBXY.cjs +0 -20
- package/components/en-BOTjhwEc.js +0 -1488
- package/components/focusable-B3E_hQmm.cjs +0 -20
- package/components/funnel-chart-options.config-D7H7gFcx.cjs +0 -20
- package/components/heat-map-options.config-DVH-Bb5-.cjs +0 -20
- package/components/heat-table-options.config-B12JEYnp.cjs +0 -20
- package/components/helpers-DXQwEH1P.cjs +0 -20
- package/components/helpers-v1bPALRP.js +0 -91
- package/components/hexbin-map-options.config-DZERRhM8.cjs +0 -20
- package/components/index-BPN3bG9X.js +0 -1733
- package/components/index-CQ9ck-BO.cjs +0 -249
- package/components/index-CXn67vdn.cjs +0 -121
- package/components/index-cfj52IbK.cjs +0 -20
- package/components/line-chart-options.config-DSugoe0t.cjs +0 -20
- package/components/pivot-table-options.config-BiJXKSFR.cjs +0 -20
- package/components/pyramid-chart-options.config-C4zbFS26.cjs +0 -20
- package/components/radar-chart-options.config-EqQu6PTh.cjs +0 -20
- package/components/route-map-options.config-D7NJePTu.cjs +0 -20
- package/components/scatter-plot-options.config-CFfGJXsV.cjs +0 -20
- package/components/slicer-filter-options.config-DNI-XevE.cjs +0 -20
- package/components/speedometer-chart-options.config-BX9LTQBH.cjs +0 -20
- package/components/spike-map-options.config-DoBFXPmN.cjs +0 -20
- package/components/symbol-map-options.config-m-lwLTtu.cjs +0 -20
- package/components/treemap-chart-options.config-C0Q9aQ1Z.cjs +0 -20
|
@@ -17,18 +17,18 @@
|
|
|
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 { Task as
|
|
21
|
-
import { html as
|
|
22
|
-
import { property as
|
|
23
|
-
import { L as
|
|
24
|
-
import { ifDefined as
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
for (const
|
|
28
|
-
if (
|
|
29
|
-
return
|
|
30
|
-
if (
|
|
31
|
-
const s = l
|
|
20
|
+
import { Task as O } from "@lit/task";
|
|
21
|
+
import { html as u, unsafeCSS as T } from "lit";
|
|
22
|
+
import { property as k } from "lit/decorators.js";
|
|
23
|
+
import { L as H } from "./focusable-BS2pbY7w.js";
|
|
24
|
+
import { ifDefined as _ } from "lit/directives/if-defined.js";
|
|
25
|
+
const M = (t, i, n) => {
|
|
26
|
+
const e = (o) => {
|
|
27
|
+
for (const l of o ?? []) {
|
|
28
|
+
if (l.key === t)
|
|
29
|
+
return n ? l : l.control;
|
|
30
|
+
if (l.children) {
|
|
31
|
+
const s = e(l.children);
|
|
32
32
|
if (s)
|
|
33
33
|
return s;
|
|
34
34
|
}
|
|
@@ -36,41 +36,39 @@ const tt = (t, i, o) => {
|
|
|
36
36
|
return null;
|
|
37
37
|
};
|
|
38
38
|
if (i && Array.isArray(i))
|
|
39
|
-
for (const
|
|
40
|
-
const
|
|
41
|
-
if (
|
|
42
|
-
return
|
|
39
|
+
for (const o of i) {
|
|
40
|
+
const l = e(o.children);
|
|
41
|
+
if (l)
|
|
42
|
+
return l;
|
|
43
43
|
}
|
|
44
44
|
return null;
|
|
45
|
-
},
|
|
46
|
-
var o, l, n;
|
|
45
|
+
}, S = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-font-family));font-size:var(--luzmo-edit-option-font-size, var(--luzmo-font-size))}:host([size=s]){font-size:var(--luzmo-edit-option-font-size-s, var(--luzmo-font-size-s))}:host([size=l]){font-size:var(--luzmo-edit-option-font-size-l, var(--luzmo-font-size-l))}:host([size=xl]){font-size:var(--luzmo-edit-option-font-size-xl, var(--luzmo-font-size-xl))}", h = (t) => {
|
|
47
46
|
let i;
|
|
48
|
-
return typeof
|
|
47
|
+
return typeof t?.controlInfo?.default == "function" ? i = t.controlInfo.default({
|
|
49
48
|
options: t.options,
|
|
50
49
|
slots: t.slots,
|
|
51
50
|
theme: t.theme
|
|
52
|
-
}) :
|
|
53
|
-
},
|
|
54
|
-
var e, s, d, u, b, p, v, k, $, h, a, c, r, m, f;
|
|
51
|
+
}) : t.controlInfo?.default !== void 0 && t.controlInfo?.default !== null && (i = t.controlInfo.default), i;
|
|
52
|
+
}, b = (t) => {
|
|
55
53
|
let i;
|
|
56
|
-
typeof
|
|
54
|
+
typeof t.controlInfo?.extraLabel == "function" ? i = t.controlInfo.extraLabel({
|
|
57
55
|
options: t.options,
|
|
58
56
|
slots: t.slots,
|
|
59
57
|
theme: t.theme
|
|
60
|
-
}) : typeof
|
|
61
|
-
let
|
|
62
|
-
typeof
|
|
58
|
+
}) : typeof t.controlInfo?.extraLabel == "string" && (i = t.controlInfo.extraLabel), typeof i == "string" && (i = t.translations?.options?.[t.optionKey]?.extraLabel?.[i] ?? i);
|
|
59
|
+
let n;
|
|
60
|
+
typeof t.controlInfo?.extraLabelTooltip == "function" ? i = t.controlInfo.extraLabelTooltip({
|
|
63
61
|
options: t.options,
|
|
64
62
|
slots: t.slots,
|
|
65
63
|
theme: t.theme
|
|
66
|
-
}) : typeof
|
|
67
|
-
let
|
|
68
|
-
typeof
|
|
64
|
+
}) : typeof t.controlInfo?.extraLabelTooltip == "string" && (n = t.controlInfo.extraLabelTooltip), typeof n == "string" && (i = t.translations?.options?.[t.optionKey]?.extraLabelTooltip?.[n] ?? n);
|
|
65
|
+
let e;
|
|
66
|
+
typeof t.controlInfo?.extraLabelHasClickAction == "function" ? e = t.controlInfo.extraLabelHasClickAction({
|
|
69
67
|
options: t.options,
|
|
70
68
|
slots: t.slots,
|
|
71
69
|
theme: t.theme
|
|
72
|
-
}) : typeof
|
|
73
|
-
const
|
|
70
|
+
}) : typeof t.controlInfo?.extraLabelHasClickAction == "boolean" && (e = t.controlInfo.extraLabelHasClickAction);
|
|
71
|
+
const o = typeof t.controlInfo?.extraLabelClickAction == "function" ? () => t.controlInfo.extraLabelClickAction({
|
|
74
72
|
options: t.options,
|
|
75
73
|
slots: t.slots,
|
|
76
74
|
theme: t.theme
|
|
@@ -78,551 +76,528 @@ const tt = (t, i, o) => {
|
|
|
78
76
|
};
|
|
79
77
|
return {
|
|
80
78
|
extraLabel: i,
|
|
81
|
-
extraLabelTooltip:
|
|
82
|
-
extraLabelHasClickAction:
|
|
83
|
-
extraLabelClickAction:
|
|
79
|
+
extraLabelTooltip: n,
|
|
80
|
+
extraLabelHasClickAction: e,
|
|
81
|
+
extraLabelClickAction: o
|
|
84
82
|
};
|
|
85
|
-
},
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
return t.controlInfo.calculateValue({ options: o });
|
|
83
|
+
}, $ = (t, i) => {
|
|
84
|
+
const n = t?.options ?? {};
|
|
85
|
+
if (typeof t?.controlInfo?.calculateValue == "function")
|
|
86
|
+
return t.controlInfo.calculateValue({ options: n });
|
|
90
87
|
if (i.includes(".")) {
|
|
91
|
-
const
|
|
92
|
-
let
|
|
93
|
-
for (let
|
|
94
|
-
|
|
95
|
-
const
|
|
96
|
-
return e[
|
|
88
|
+
const e = i.split(".");
|
|
89
|
+
let o = n;
|
|
90
|
+
for (let s = 0; s < e.length - 1; s++)
|
|
91
|
+
o = o[e[s]] ?? {};
|
|
92
|
+
const l = e.length - 1;
|
|
93
|
+
return o[e[l]];
|
|
97
94
|
}
|
|
98
|
-
return
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
value: (n = i == null ? void 0 : i.detail) == null ? void 0 : n.value
|
|
95
|
+
return n[i];
|
|
96
|
+
}, x = (t) => (i) => {
|
|
97
|
+
let n = { ...t.options };
|
|
98
|
+
if (typeof t?.controlInfo?.toOptions == "function")
|
|
99
|
+
n = t.controlInfo.toOptions({
|
|
100
|
+
options: n,
|
|
101
|
+
value: i?.detail?.value
|
|
106
102
|
});
|
|
107
103
|
else if (t.optionKey.includes(".")) {
|
|
108
104
|
const e = t.optionKey.split(".");
|
|
109
|
-
let
|
|
110
|
-
for (let
|
|
111
|
-
|
|
112
|
-
const
|
|
113
|
-
|
|
105
|
+
let o = n;
|
|
106
|
+
for (let s = 0; s < e.length - 1; s++)
|
|
107
|
+
o[e[s]] = o[e[s]] ?? {}, o = o[e[s]];
|
|
108
|
+
const l = e.length - 1;
|
|
109
|
+
o[e[l]] = i.detail.value;
|
|
114
110
|
} else
|
|
115
|
-
|
|
116
|
-
return t.changeCallback(
|
|
117
|
-
},
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
...(V = t.controlInfo) == null ? void 0 : V.values[z],
|
|
124
|
-
label: ((E = (w = (A = (K = t.translations) == null ? void 0 : K.options) == null ? void 0 : A[t.optionKey]) == null ? void 0 : w.enum) == null ? void 0 : E[z]) ?? ((P = t.controlInfo) == null ? void 0 : P.values[z].label)
|
|
111
|
+
n[t.optionKey] = i.detail.value;
|
|
112
|
+
return t.changeCallback(n);
|
|
113
|
+
}, j = (t) => {
|
|
114
|
+
const i = t.translations?.options?.[t.optionKey]?.label ?? t.controlInfo?.label ?? t.optionKey ?? "", n = t.size, e = {};
|
|
115
|
+
Object.keys(t.controlInfo?.values).forEach((m) => {
|
|
116
|
+
e[m] = {
|
|
117
|
+
...t.controlInfo?.values[m],
|
|
118
|
+
label: t.translations?.options?.[t.optionKey]?.enum?.[m] ?? t.controlInfo?.values[m].label
|
|
125
119
|
};
|
|
126
120
|
});
|
|
127
|
-
const
|
|
128
|
-
extraLabel:
|
|
129
|
-
extraLabelTooltip:
|
|
130
|
-
extraLabelHasClickAction:
|
|
121
|
+
const o = t.translations?.options?.[t.optionKey]?.tooltip ?? t.controlInfo?.tooltip, l = $(t, t.optionKey), s = h(t), {
|
|
122
|
+
extraLabel: c,
|
|
123
|
+
extraLabelTooltip: a,
|
|
124
|
+
extraLabelHasClickAction: r,
|
|
131
125
|
extraLabelClickAction: p
|
|
132
|
-
} =
|
|
133
|
-
return
|
|
126
|
+
} = b(t), f = x(t);
|
|
127
|
+
return u`
|
|
134
128
|
<luzmo-edit-option-action-button-group
|
|
135
129
|
.label=${i}
|
|
136
|
-
?hide-label=${
|
|
137
|
-
.value=${
|
|
138
|
-
.values=${
|
|
130
|
+
?hide-label=${t.controlInfo?.hideLabel}
|
|
131
|
+
.value=${l}
|
|
132
|
+
.values=${e}
|
|
139
133
|
.default=${s}
|
|
140
|
-
.selects=${
|
|
141
|
-
.size=${
|
|
142
|
-
.tooltip=${
|
|
143
|
-
.extraLabel=${
|
|
144
|
-
.extraLabelTooltip=${
|
|
145
|
-
.extraLabelHasClickAction=${
|
|
134
|
+
.selects=${t.controlInfo?.selects}
|
|
135
|
+
.size=${n}
|
|
136
|
+
.tooltip=${o}
|
|
137
|
+
.extraLabel=${c}
|
|
138
|
+
.extraLabelTooltip=${a}
|
|
139
|
+
.extraLabelHasClickAction=${r}
|
|
146
140
|
@extraLabelClick=${p}
|
|
147
|
-
@option-changed=${
|
|
148
|
-
.parseValue=${
|
|
149
|
-
.toValue=${
|
|
141
|
+
@option-changed=${f}
|
|
142
|
+
.parseValue=${t.controlInfo?.parseValue}
|
|
143
|
+
.toValue=${t.controlInfo?.toValue}
|
|
150
144
|
></luzmo-edit-option-action-button-group>
|
|
151
145
|
`;
|
|
152
|
-
},
|
|
153
|
-
var o, l, n;
|
|
146
|
+
}, R = (t) => {
|
|
154
147
|
let i;
|
|
155
|
-
return typeof
|
|
148
|
+
return typeof t?.controlInfo?.enum == "function" ? i = t.controlInfo.enum({
|
|
156
149
|
options: t.options,
|
|
157
150
|
slots: t.slots,
|
|
158
151
|
theme: t.theme
|
|
159
|
-
}) :
|
|
160
|
-
},
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
extraLabelHasClickAction: b,
|
|
152
|
+
}) : t.controlInfo?.enum !== void 0 && t.controlInfo?.enum !== null && (i = t.controlInfo.enum), i;
|
|
153
|
+
}, E = (t) => {
|
|
154
|
+
const i = t.translations?.options?.[t.optionKey]?.label ?? t.controlInfo?.label ?? t.optionKey ?? "", n = $(t, t.optionKey), e = R(t), o = t.size, l = t.translations?.options?.[t.optionKey]?.tooltip ?? t.controlInfo?.tooltip, s = h(t), {
|
|
155
|
+
extraLabel: c,
|
|
156
|
+
extraLabelTooltip: a,
|
|
157
|
+
extraLabelHasClickAction: r,
|
|
166
158
|
extraLabelClickAction: p
|
|
167
|
-
} =
|
|
159
|
+
} = b(t), f = x(t), m = () => {
|
|
168
160
|
if (typeof p == "function") {
|
|
169
|
-
const { options:
|
|
170
|
-
return t.changeCallback(
|
|
161
|
+
const { options: d } = p();
|
|
162
|
+
return t.changeCallback(d);
|
|
171
163
|
}
|
|
172
164
|
};
|
|
173
|
-
return
|
|
165
|
+
return u`
|
|
174
166
|
<luzmo-edit-option-color-palette-picker
|
|
175
|
-
.value=${
|
|
176
|
-
.values=${
|
|
167
|
+
.value=${n ?? s}
|
|
168
|
+
.values=${e}
|
|
177
169
|
.label=${i}
|
|
178
|
-
?hide-label=${
|
|
179
|
-
.size=${
|
|
180
|
-
.tooltip=${
|
|
181
|
-
.extraLabel=${
|
|
182
|
-
.extraLabelTooltip=${
|
|
183
|
-
.extraLabelHasClickAction=${
|
|
184
|
-
@extraLabelClick=${
|
|
185
|
-
@option-changed=${
|
|
186
|
-
.parseValue=${
|
|
187
|
-
.toValue=${
|
|
170
|
+
?hide-label=${t.controlInfo?.hideLabel}
|
|
171
|
+
.size=${o}
|
|
172
|
+
.tooltip=${l}
|
|
173
|
+
.extraLabel=${c}
|
|
174
|
+
.extraLabelTooltip=${a}
|
|
175
|
+
.extraLabelHasClickAction=${r}
|
|
176
|
+
@extraLabelClick=${m}
|
|
177
|
+
@option-changed=${f}
|
|
178
|
+
.parseValue=${t.controlInfo?.parseValue}
|
|
179
|
+
.toValue=${t.controlInfo?.toValue}
|
|
188
180
|
></luzmo-edit-option-color-palette-picker>
|
|
189
181
|
`;
|
|
190
|
-
},
|
|
191
|
-
|
|
192
|
-
const i = ((h = ($ = (k = t.translations) == null ? void 0 : k.options) == null ? void 0 : $[t.optionKey]) == null ? void 0 : h.label) ?? ((a = t.controlInfo) == null ? void 0 : a.label) ?? t.optionKey ?? "", o = _(t, t.optionKey), l = t.size, n = ((m = (r = (c = t.translations) == null ? void 0 : c.options) == null ? void 0 : r[t.optionKey]) == null ? void 0 : m.tooltip) ?? ((f = t.controlInfo) == null ? void 0 : f.tooltip), e = H(t), {
|
|
182
|
+
}, P = (t) => {
|
|
183
|
+
const i = t.translations?.options?.[t.optionKey]?.label ?? t.controlInfo?.label ?? t.optionKey ?? "", n = $(t, t.optionKey), e = t.size, o = t.translations?.options?.[t.optionKey]?.tooltip ?? t.controlInfo?.tooltip, l = h(t), {
|
|
193
184
|
extraLabel: s,
|
|
194
|
-
extraLabelTooltip:
|
|
195
|
-
extraLabelHasClickAction:
|
|
196
|
-
extraLabelClickAction:
|
|
197
|
-
} =
|
|
198
|
-
if (typeof
|
|
199
|
-
const { options:
|
|
200
|
-
return t.changeCallback(
|
|
185
|
+
extraLabelTooltip: c,
|
|
186
|
+
extraLabelHasClickAction: a,
|
|
187
|
+
extraLabelClickAction: r
|
|
188
|
+
} = b(t), p = x(t), f = () => {
|
|
189
|
+
if (typeof r == "function") {
|
|
190
|
+
const { options: m } = r();
|
|
191
|
+
return t.changeCallback(m);
|
|
201
192
|
}
|
|
202
193
|
};
|
|
203
|
-
return
|
|
194
|
+
return u`
|
|
204
195
|
<luzmo-edit-option-color-picker
|
|
205
|
-
.value=${
|
|
196
|
+
.value=${n ?? l}
|
|
206
197
|
.label=${i}
|
|
207
|
-
?hide-label=${
|
|
208
|
-
.size=${
|
|
209
|
-
.tooltip=${
|
|
198
|
+
?hide-label=${t.controlInfo?.hideLabel}
|
|
199
|
+
.size=${e}
|
|
200
|
+
.tooltip=${o}
|
|
210
201
|
.extraLabel=${s}
|
|
211
|
-
.extraLabelTooltip=${
|
|
212
|
-
.extraLabelHasClickAction=${
|
|
213
|
-
@extraLabelClick=${
|
|
202
|
+
.extraLabelTooltip=${c}
|
|
203
|
+
.extraLabelHasClickAction=${a}
|
|
204
|
+
@extraLabelClick=${f}
|
|
214
205
|
@option-changed=${p}
|
|
215
|
-
.parseValue=${
|
|
216
|
-
.toValue=${
|
|
206
|
+
.parseValue=${t.controlInfo?.parseValue}
|
|
207
|
+
.toValue=${t.controlInfo?.toValue}
|
|
217
208
|
></luzmo-edit-option-color-picker>
|
|
218
209
|
`;
|
|
219
|
-
},
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
return t.changeCallback(U);
|
|
210
|
+
}, F = (t) => {
|
|
211
|
+
const i = t.translations?.options?.[t.optionKey]?.label ?? t.controlInfo?.label ?? t.optionKey ?? "", n = $(t, t.optionKey), e = t.size, o = t.translations?.options?.[t.optionKey]?.tooltip ?? t.controlInfo?.tooltip, l = h(t), s = typeof t?.controlInfo?.percentage == "function" ? t.controlInfo.percentage(t) : t.controlInfo.percentage, c = typeof t?.controlInfo?.reverse == "function" ? t.controlInfo.reverse(t) : t.controlInfo.reverse, a = typeof t?.controlInfo?.noAlphaChannel == "function" ? t.controlInfo.noAlphaChannel(t) : t.controlInfo.noAlphaChannel, r = typeof t?.controlInfo?.editRangeSize == "function" ? t.controlInfo.editRangeSize(t) : t.controlInfo.editRangeSize, p = typeof t?.controlInfo?.minimumRangeSize == "function" ? t.controlInfo.minimumRangeSize(t) : t.controlInfo.minimumRangeSize, f = typeof t?.controlInfo?.negativeInfinityValue == "function" ? t.controlInfo.negativeInfinityValue(t) : t.controlInfo.negativeInfinityValue, m = typeof t?.controlInfo?.noValues == "function" ? t.controlInfo.noValues(t) : t.controlInfo.noValues, d = typeof t?.controlInfo?.readOnlyColorPicker == "function" ? t.controlInfo.readOnlyColorPicker(t) : t.controlInfo.readOnlyColorPicker, {
|
|
212
|
+
extraLabel: L,
|
|
213
|
+
extraLabelTooltip: v,
|
|
214
|
+
extraLabelHasClickAction: V,
|
|
215
|
+
extraLabelClickAction: C
|
|
216
|
+
} = b(t), K = x(t), A = () => {
|
|
217
|
+
if (typeof C == "function") {
|
|
218
|
+
const { options: w } = C();
|
|
219
|
+
return t.changeCallback(w);
|
|
230
220
|
}
|
|
231
221
|
};
|
|
232
|
-
return
|
|
222
|
+
return u`
|
|
233
223
|
<luzmo-edit-option-color-range
|
|
234
|
-
.value=${
|
|
224
|
+
.value=${n ?? l}
|
|
235
225
|
.label=${i}
|
|
236
|
-
.size=${
|
|
237
|
-
.tooltip=${
|
|
238
|
-
?hide-label=${
|
|
239
|
-
.extraLabel=${
|
|
240
|
-
.extraLabelTooltip=${
|
|
241
|
-
.extraLabelHasClickAction=${
|
|
242
|
-
.debounce=${
|
|
243
|
-
?reverse=${
|
|
226
|
+
.size=${e}
|
|
227
|
+
.tooltip=${o}
|
|
228
|
+
?hide-label=${t.controlInfo?.hideLabel}
|
|
229
|
+
.extraLabel=${L}
|
|
230
|
+
.extraLabelTooltip=${v}
|
|
231
|
+
.extraLabelHasClickAction=${V}
|
|
232
|
+
.debounce=${t.controlInfo?.debounce}
|
|
233
|
+
?reverse=${c}
|
|
244
234
|
?percentage=${s}
|
|
245
|
-
?no-alpha-channel=${
|
|
246
|
-
?edit-range-size=${
|
|
247
|
-
?no-values=${
|
|
248
|
-
?read-only-color-picker=${
|
|
235
|
+
?no-alpha-channel=${a}
|
|
236
|
+
?edit-range-size=${r}
|
|
237
|
+
?no-values=${m}
|
|
238
|
+
?read-only-color-picker=${d}
|
|
249
239
|
.minimum-range-size=${p}
|
|
250
|
-
?negative-infinity-value=${
|
|
251
|
-
@extraLabelClick=${
|
|
252
|
-
@option-changed=${
|
|
253
|
-
.parseValue=${
|
|
254
|
-
.toValue=${
|
|
240
|
+
?negative-infinity-value=${f}
|
|
241
|
+
@extraLabelClick=${A}
|
|
242
|
+
@option-changed=${K}
|
|
243
|
+
.parseValue=${t.controlInfo?.parseValue}
|
|
244
|
+
.toValue=${t.controlInfo?.toValue}
|
|
255
245
|
></luzmo-edit-option-color-range>
|
|
256
246
|
`;
|
|
257
|
-
},
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
extraLabelTooltip: b,
|
|
247
|
+
}, B = (t) => {
|
|
248
|
+
const i = t.translations?.options?.[t.optionKey]?.label ?? t.controlInfo?.label ?? t.optionKey ?? "", n = $(t, t.optionKey) ?? {}, e = t.translations?.options?.[t.optionKey]?.tooltip ?? t.controlInfo?.tooltip, o = t.language ?? "en", l = {};
|
|
249
|
+
l[o] = t.translations?.options?.[t.optionKey]?.placeholder ?? t.controlInfo?.placeholder ?? "";
|
|
250
|
+
const s = t.size, c = h(t), {
|
|
251
|
+
extraLabel: a,
|
|
252
|
+
extraLabelTooltip: r,
|
|
264
253
|
extraLabelHasClickAction: p,
|
|
265
|
-
extraLabelClickAction:
|
|
266
|
-
} =
|
|
267
|
-
return
|
|
254
|
+
extraLabelClickAction: f
|
|
255
|
+
} = b(t), m = x(t);
|
|
256
|
+
return u`
|
|
268
257
|
<luzmo-edit-option-multi-language-field
|
|
269
258
|
.label=${i}
|
|
270
|
-
?hide-label=${
|
|
271
|
-
.placeholder=${
|
|
272
|
-
.value=${
|
|
273
|
-
language=${
|
|
259
|
+
?hide-label=${t.controlInfo?.hideLabel}
|
|
260
|
+
.placeholder=${l}
|
|
261
|
+
.value=${n ?? c}
|
|
262
|
+
language=${_(o)}
|
|
274
263
|
.size=${s}
|
|
275
|
-
.tooltip=${
|
|
276
|
-
.extraLabel=${
|
|
277
|
-
.extraLabelTooltip=${
|
|
264
|
+
.tooltip=${e}
|
|
265
|
+
.extraLabel=${a}
|
|
266
|
+
.extraLabelTooltip=${r}
|
|
278
267
|
.extraLabelHasClickAction=${p}
|
|
279
|
-
@extraLabelClick=${
|
|
280
|
-
@option-changed=${
|
|
281
|
-
.parseValue=${
|
|
282
|
-
.toValue=${
|
|
268
|
+
@extraLabelClick=${f}
|
|
269
|
+
@option-changed=${m}
|
|
270
|
+
.parseValue=${t.controlInfo?.parseValue}
|
|
271
|
+
.toValue=${t.controlInfo?.toValue}
|
|
283
272
|
></luzmo-edit-option-multi-language-field>
|
|
284
273
|
`;
|
|
285
|
-
},
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
extraLabel: b,
|
|
274
|
+
}, D = (t) => {
|
|
275
|
+
const i = t.translations?.options?.[t.optionKey]?.label ?? t.controlInfo?.label ?? t.optionKey ?? "", n = t.controlInfo?.min, e = t.controlInfo?.max, o = t.controlInfo?.step, l = $(t, t.optionKey), s = t.translations?.options?.[t.optionKey]?.tooltip ?? t.controlInfo?.tooltip, c = h(t), a = t.size, {
|
|
276
|
+
extraLabel: r,
|
|
289
277
|
extraLabelTooltip: p,
|
|
290
|
-
extraLabelHasClickAction:
|
|
291
|
-
extraLabelClickAction:
|
|
292
|
-
} =
|
|
293
|
-
return
|
|
278
|
+
extraLabelHasClickAction: f,
|
|
279
|
+
extraLabelClickAction: m
|
|
280
|
+
} = b(t), d = x(t);
|
|
281
|
+
return u`
|
|
294
282
|
<luzmo-edit-option-number-field
|
|
295
|
-
.value=${
|
|
296
|
-
.default=${
|
|
297
|
-
.min=${
|
|
298
|
-
.max=${
|
|
299
|
-
.step=${
|
|
283
|
+
.value=${l}
|
|
284
|
+
.default=${c}
|
|
285
|
+
.min=${n}
|
|
286
|
+
.max=${e}
|
|
287
|
+
.step=${o}
|
|
300
288
|
.label=${i}
|
|
301
|
-
?hide-label=${
|
|
302
|
-
.size=${
|
|
289
|
+
?hide-label=${t.controlInfo?.hideLabel}
|
|
290
|
+
.size=${a}
|
|
303
291
|
.tooltip=${s}
|
|
304
|
-
.placeholder=${
|
|
305
|
-
.minWidthInputField=${
|
|
306
|
-
.debounce=${
|
|
307
|
-
.extraLabel=${
|
|
292
|
+
.placeholder=${t.controlInfo?.placeholder}
|
|
293
|
+
.minWidthInputField=${t.controlInfo?.minWidthInputField}
|
|
294
|
+
.debounce=${t.controlInfo?.debounce}
|
|
295
|
+
.extraLabel=${r}
|
|
308
296
|
.extraLabelTooltip=${p}
|
|
309
|
-
.extraLabelHasClickAction=${
|
|
310
|
-
@extraLabelClick=${
|
|
311
|
-
@option-changed=${
|
|
312
|
-
.parseValue=${
|
|
313
|
-
.toValue=${
|
|
297
|
+
.extraLabelHasClickAction=${f}
|
|
298
|
+
@extraLabelClick=${m}
|
|
299
|
+
@option-changed=${d}
|
|
300
|
+
.parseValue=${t.controlInfo?.parseValue}
|
|
301
|
+
.toValue=${t.controlInfo?.toValue}
|
|
314
302
|
></luzmo-edit-option-number-field>
|
|
315
303
|
`;
|
|
316
|
-
},
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
(C, z) => {
|
|
320
|
-
var V, K, A, w;
|
|
321
|
-
return C[z] = ((w = (A = (K = (V = t.translations) == null ? void 0 : V.options) == null ? void 0 : K[t.optionKey]) == null ? void 0 : A.enum) == null ? void 0 : w[z]) ?? z, C;
|
|
322
|
-
},
|
|
304
|
+
}, G = (t) => {
|
|
305
|
+
const i = t.translations?.options?.[t.optionKey]?.label ?? t.controlInfo?.label ?? t.optionKey ?? "", n = $(t, t.optionKey), e = t.translations?.options?.[t.optionKey]?.tooltip ?? t.controlInfo?.tooltip, o = t.controlInfo?.enum.reduce(
|
|
306
|
+
(m, d) => (m[d] = t.translations?.options?.[t.optionKey]?.enum?.[d] ?? d, m),
|
|
323
307
|
{}
|
|
324
|
-
),
|
|
325
|
-
extraLabel:
|
|
326
|
-
extraLabelTooltip:
|
|
327
|
-
extraLabelHasClickAction:
|
|
308
|
+
), l = t.size, s = h(t), {
|
|
309
|
+
extraLabel: c,
|
|
310
|
+
extraLabelTooltip: a,
|
|
311
|
+
extraLabelHasClickAction: r,
|
|
328
312
|
extraLabelClickAction: p
|
|
329
|
-
} =
|
|
330
|
-
return
|
|
313
|
+
} = b(t), f = x(t);
|
|
314
|
+
return u`
|
|
331
315
|
<luzmo-edit-option-picker
|
|
332
|
-
.value=${
|
|
316
|
+
.value=${n}
|
|
333
317
|
.default=${s}
|
|
334
|
-
.values=${
|
|
318
|
+
.values=${o}
|
|
335
319
|
.label=${i}
|
|
336
|
-
?hide-label=${
|
|
337
|
-
.tooltip=${
|
|
338
|
-
.size=${
|
|
339
|
-
.extraLabel=${
|
|
340
|
-
.extraLabelTooltip=${
|
|
341
|
-
.extraLabelHasClickAction=${
|
|
320
|
+
?hide-label=${t.controlInfo?.hideLabel}
|
|
321
|
+
.tooltip=${e}
|
|
322
|
+
.size=${l}
|
|
323
|
+
.extraLabel=${c}
|
|
324
|
+
.extraLabelTooltip=${a}
|
|
325
|
+
.extraLabelHasClickAction=${r}
|
|
342
326
|
@extraLabelClick=${p}
|
|
343
|
-
@option-changed=${
|
|
344
|
-
.parseValue=${
|
|
345
|
-
.toValue=${
|
|
327
|
+
@option-changed=${f}
|
|
328
|
+
.parseValue=${t.controlInfo?.parseValue}
|
|
329
|
+
.toValue=${t.controlInfo?.toValue}
|
|
346
330
|
></luzmo-edit-option-picker>
|
|
347
331
|
`;
|
|
348
|
-
},
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
extraLabelHasClickAction: b,
|
|
332
|
+
}, W = (t) => {
|
|
333
|
+
const i = t.translations?.options?.[t.optionKey]?.label ?? t.controlInfo?.label, n = t.controlInfo?.positions, e = t.size, o = $(t, t.optionKey), l = t.translations?.options?.[t.optionKey]?.tooltip ?? t.controlInfo?.tooltip, s = h(t) ?? "topRight", {
|
|
334
|
+
extraLabel: c,
|
|
335
|
+
extraLabelTooltip: a,
|
|
336
|
+
extraLabelHasClickAction: r,
|
|
354
337
|
extraLabelClickAction: p
|
|
355
|
-
} =
|
|
356
|
-
return
|
|
338
|
+
} = b(t), f = x(t);
|
|
339
|
+
return u`
|
|
357
340
|
<luzmo-edit-option-position-picker
|
|
358
|
-
.value=${
|
|
359
|
-
.positions=${
|
|
341
|
+
.value=${t.controlInfo?.value}
|
|
342
|
+
.positions=${n}
|
|
360
343
|
.default=${s}
|
|
361
344
|
.label=${i}
|
|
362
|
-
?hide-label=${
|
|
363
|
-
.tooltip=${
|
|
364
|
-
.size=${
|
|
365
|
-
.value=${
|
|
366
|
-
.extraLabel=${
|
|
367
|
-
.extraLabelTooltip=${
|
|
368
|
-
.extraLabelHasClickAction=${
|
|
345
|
+
?hide-label=${t.controlInfo?.hideLabel}
|
|
346
|
+
.tooltip=${l}
|
|
347
|
+
.size=${e}
|
|
348
|
+
.value=${o}
|
|
349
|
+
.extraLabel=${c}
|
|
350
|
+
.extraLabelTooltip=${a}
|
|
351
|
+
.extraLabelHasClickAction=${r}
|
|
369
352
|
@extraLabelClick=${p}
|
|
370
|
-
@option-changed=${
|
|
371
|
-
.readonly=${
|
|
353
|
+
@option-changed=${f}
|
|
354
|
+
.readonly=${t.controlInfo?.readonly}
|
|
372
355
|
></luzmo-edit-option-position-picker>
|
|
373
356
|
`;
|
|
374
|
-
},
|
|
375
|
-
|
|
376
|
-
const i = (($ = (k = (v = t.translations) == null ? void 0 : v.options) == null ? void 0 : k[t.optionKey]) == null ? void 0 : $.label) ?? ((h = t.controlInfo) == null ? void 0 : h.label), o = _(t, t.optionKey), l = t.size, n = ((r = (c = (a = t.translations) == null ? void 0 : a.options) == null ? void 0 : c[t.optionKey]) == null ? void 0 : r.tooltip) ?? ((m = t.controlInfo) == null ? void 0 : m.tooltip), e = H(t), {
|
|
357
|
+
}, N = (t) => {
|
|
358
|
+
const i = t.translations?.options?.[t.optionKey]?.label ?? t.controlInfo?.label, n = $(t, t.optionKey), e = t.size, o = t.translations?.options?.[t.optionKey]?.tooltip ?? t.controlInfo?.tooltip, l = h(t), {
|
|
377
359
|
extraLabel: s,
|
|
378
|
-
extraLabelTooltip:
|
|
379
|
-
extraLabelHasClickAction:
|
|
380
|
-
extraLabelClickAction:
|
|
381
|
-
} =
|
|
382
|
-
return
|
|
360
|
+
extraLabelTooltip: c,
|
|
361
|
+
extraLabelHasClickAction: a,
|
|
362
|
+
extraLabelClickAction: r
|
|
363
|
+
} = b(t), p = x(t);
|
|
364
|
+
return u`
|
|
383
365
|
<luzmo-edit-option-positions-number-field
|
|
384
|
-
.values=${
|
|
385
|
-
.positions=${
|
|
386
|
-
.positionConfiguration=${
|
|
366
|
+
.values=${n ?? l}
|
|
367
|
+
.positions=${t.controlInfo?.positions}
|
|
368
|
+
.positionConfiguration=${t.controlInfo?.positionConfiguration}
|
|
387
369
|
.label=${i}
|
|
388
|
-
?hide-label=${
|
|
389
|
-
.size=${
|
|
390
|
-
.tooltip=${
|
|
370
|
+
?hide-label=${t.controlInfo?.hideLabel}
|
|
371
|
+
.size=${e}
|
|
372
|
+
.tooltip=${o}
|
|
391
373
|
.extraLabel=${s}
|
|
392
|
-
.extraLabelTooltip=${
|
|
393
|
-
.extraLabelHasClickAction=${
|
|
394
|
-
@extraLabelClick=${
|
|
374
|
+
.extraLabelTooltip=${c}
|
|
375
|
+
.extraLabelHasClickAction=${a}
|
|
376
|
+
@extraLabelClick=${r}
|
|
395
377
|
@option-changed=${p}
|
|
396
|
-
.parseValue=${
|
|
397
|
-
.toValue=${
|
|
378
|
+
.parseValue=${t.controlInfo?.parseValue}
|
|
379
|
+
.toValue=${t.controlInfo?.toValue}
|
|
398
380
|
></luzmo-edit-option-positions-number-field>
|
|
399
381
|
`;
|
|
400
|
-
},
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
(C, z) => {
|
|
404
|
-
var V, K, A, w;
|
|
405
|
-
return C[z] = ((w = (A = (K = (V = t.translations) == null ? void 0 : V.options) == null ? void 0 : K[t.optionKey]) == null ? void 0 : A.enum) == null ? void 0 : w[z]) ?? z, C;
|
|
406
|
-
},
|
|
382
|
+
}, q = (t) => {
|
|
383
|
+
const i = t.translations?.options?.[t.optionKey]?.label ?? t.controlInfo?.label ?? t.optionKey ?? "", n = $(t, t.optionKey), e = h(t), o = t.controlInfo?.enum.reduce(
|
|
384
|
+
(m, d) => (m[d] = t.translations?.options?.[t.optionKey]?.enum?.[d] ?? d, m),
|
|
407
385
|
{}
|
|
408
|
-
),
|
|
409
|
-
extraLabel:
|
|
410
|
-
extraLabelTooltip:
|
|
411
|
-
extraLabelHasClickAction:
|
|
386
|
+
), l = t.size, s = t.translations?.options?.[t.optionKey]?.tooltip ?? t.controlInfo?.tooltip, {
|
|
387
|
+
extraLabel: c,
|
|
388
|
+
extraLabelTooltip: a,
|
|
389
|
+
extraLabelHasClickAction: r,
|
|
412
390
|
extraLabelClickAction: p
|
|
413
|
-
} =
|
|
414
|
-
return
|
|
391
|
+
} = b(t), f = x(t);
|
|
392
|
+
return u`
|
|
415
393
|
<luzmo-edit-option-radio-button-group
|
|
416
|
-
.value=${
|
|
417
|
-
.values=${
|
|
394
|
+
.value=${n ?? e}
|
|
395
|
+
.values=${o}
|
|
418
396
|
.label=${i}
|
|
419
|
-
?hide-label=${
|
|
420
|
-
.size=${
|
|
397
|
+
?hide-label=${t.controlInfo?.hideLabel}
|
|
398
|
+
.size=${l}
|
|
421
399
|
.tooltip=${s}
|
|
422
|
-
.extraLabel=${
|
|
423
|
-
.extraLabelTooltip=${
|
|
424
|
-
.extraLabelHasClickAction=${
|
|
400
|
+
.extraLabel=${c}
|
|
401
|
+
.extraLabelTooltip=${a}
|
|
402
|
+
.extraLabelHasClickAction=${r}
|
|
425
403
|
@extraLabelClick=${p}
|
|
426
|
-
@option-changed=${
|
|
427
|
-
.parseValue=${
|
|
428
|
-
.toValue=${
|
|
404
|
+
@option-changed=${f}
|
|
405
|
+
.parseValue=${t.controlInfo?.parseValue}
|
|
406
|
+
.toValue=${t.controlInfo?.toValue}
|
|
429
407
|
></luzmo-edit-option-radio-button-group>
|
|
430
408
|
`;
|
|
431
|
-
},
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
extraLabel: b,
|
|
409
|
+
}, J = (t) => {
|
|
410
|
+
const i = t.translations?.options?.[t.optionKey]?.label ?? t.controlInfo?.label ?? t.optionKey ?? "", n = t.translations?.options?.[t.optionKey]?.tooltip ?? t.controlInfo?.tooltip, e = t.controlInfo?.min, o = t.controlInfo?.max, l = t.controlInfo?.step, s = $(t, t.optionKey), c = t.size, a = h(t), {
|
|
411
|
+
extraLabel: r,
|
|
435
412
|
extraLabelTooltip: p,
|
|
436
|
-
extraLabelHasClickAction:
|
|
437
|
-
extraLabelClickAction:
|
|
438
|
-
} =
|
|
439
|
-
if (typeof
|
|
440
|
-
const { options:
|
|
441
|
-
return t.changeCallback(
|
|
413
|
+
extraLabelHasClickAction: f,
|
|
414
|
+
extraLabelClickAction: m
|
|
415
|
+
} = b(t), d = x(t), L = () => {
|
|
416
|
+
if (typeof m == "function") {
|
|
417
|
+
const { options: v } = m();
|
|
418
|
+
return t.changeCallback(v);
|
|
442
419
|
}
|
|
443
420
|
};
|
|
444
|
-
return
|
|
421
|
+
return u`
|
|
445
422
|
<luzmo-edit-option-slider
|
|
446
423
|
.value=${s}
|
|
447
|
-
.default=${
|
|
448
|
-
.min=${
|
|
449
|
-
.max=${
|
|
450
|
-
.step=${
|
|
424
|
+
.default=${a}
|
|
425
|
+
.min=${e}
|
|
426
|
+
.max=${o}
|
|
427
|
+
.step=${l}
|
|
451
428
|
.label=${i}
|
|
452
|
-
?hide-label=${
|
|
453
|
-
.tooltip=${
|
|
454
|
-
.size=${
|
|
455
|
-
.extraLabel=${
|
|
429
|
+
?hide-label=${t.controlInfo?.hideLabel}
|
|
430
|
+
.tooltip=${n}
|
|
431
|
+
.size=${c}
|
|
432
|
+
.extraLabel=${r}
|
|
456
433
|
.extraLabelTooltip=${p}
|
|
457
|
-
.extraLabelHasClickAction=${
|
|
458
|
-
@extraLabelClick=${
|
|
459
|
-
@option-changed=${
|
|
460
|
-
.parseValue=${
|
|
461
|
-
.toValue=${
|
|
434
|
+
.extraLabelHasClickAction=${f}
|
|
435
|
+
@extraLabelClick=${L}
|
|
436
|
+
@option-changed=${d}
|
|
437
|
+
.parseValue=${t.controlInfo?.parseValue}
|
|
438
|
+
.toValue=${t.controlInfo?.toValue}
|
|
462
439
|
></luzmo-edit-option-slider>
|
|
463
440
|
`;
|
|
464
|
-
},
|
|
465
|
-
|
|
466
|
-
const i = (($ = (k = (v = t.translations) == null ? void 0 : v.options) == null ? void 0 : k[t.optionKey]) == null ? void 0 : $.label) ?? ((h = t.controlInfo) == null ? void 0 : h.label) ?? t.optionKey ?? "", o = _(t, t.optionKey), l = t.size, n = ((r = (c = (a = t.translations) == null ? void 0 : a.options) == null ? void 0 : c[t.optionKey]) == null ? void 0 : r.tooltip) ?? ((m = t.controlInfo) == null ? void 0 : m.tooltip), e = H(t), {
|
|
441
|
+
}, Q = (t) => {
|
|
442
|
+
const i = t.translations?.options?.[t.optionKey]?.label ?? t.controlInfo?.label ?? t.optionKey ?? "", n = $(t, t.optionKey), e = t.size, o = t.translations?.options?.[t.optionKey]?.tooltip ?? t.controlInfo?.tooltip, l = h(t), {
|
|
467
443
|
extraLabel: s,
|
|
468
|
-
extraLabelTooltip:
|
|
469
|
-
extraLabelHasClickAction:
|
|
470
|
-
extraLabelClickAction:
|
|
471
|
-
} =
|
|
472
|
-
return
|
|
444
|
+
extraLabelTooltip: c,
|
|
445
|
+
extraLabelHasClickAction: a,
|
|
446
|
+
extraLabelClickAction: r
|
|
447
|
+
} = b(t), p = x(t);
|
|
448
|
+
return u`
|
|
473
449
|
<luzmo-edit-option-switch
|
|
474
|
-
.value=${
|
|
450
|
+
.value=${n ?? l ?? !1}
|
|
475
451
|
.label=${i}
|
|
476
|
-
?hide-label=${
|
|
477
|
-
.size=${
|
|
478
|
-
.tooltip=${
|
|
452
|
+
?hide-label=${t.controlInfo?.hideLabel}
|
|
453
|
+
.size=${e}
|
|
454
|
+
.tooltip=${o}
|
|
479
455
|
.extraLabel=${s}
|
|
480
|
-
.extraLabelTooltip=${
|
|
481
|
-
.extraLabelHasClickAction=${
|
|
482
|
-
@extraLabelClick=${
|
|
456
|
+
.extraLabelTooltip=${c}
|
|
457
|
+
.extraLabelHasClickAction=${a}
|
|
458
|
+
@extraLabelClick=${r}
|
|
483
459
|
@option-changed=${p}
|
|
484
|
-
.parseValue=${
|
|
485
|
-
.toValue=${
|
|
460
|
+
.parseValue=${t.controlInfo?.parseValue}
|
|
461
|
+
.toValue=${t.controlInfo?.toValue}
|
|
486
462
|
></luzmo-edit-option-switch>
|
|
487
463
|
`;
|
|
488
|
-
},
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
extraLabelTooltip: b,
|
|
464
|
+
}, U = (t) => {
|
|
465
|
+
const i = t.translations?.options?.[t.optionKey]?.label ?? t.controlInfo?.label ?? t.optionKey ?? "", n = t.language ?? "en", e = {};
|
|
466
|
+
e[n] = t.translations?.options?.[t.optionKey]?.placeholder ?? t.controlInfo?.placeholder ?? "";
|
|
467
|
+
const o = $(t, t.optionKey) ?? "", l = t.size, s = t.translations?.options?.[t.optionKey]?.tooltip ?? t.controlInfo?.tooltip, c = h(t), {
|
|
468
|
+
extraLabel: a,
|
|
469
|
+
extraLabelTooltip: r,
|
|
495
470
|
extraLabelHasClickAction: p,
|
|
496
|
-
extraLabelClickAction:
|
|
497
|
-
} =
|
|
498
|
-
return
|
|
471
|
+
extraLabelClickAction: f
|
|
472
|
+
} = b(t), m = x(t);
|
|
473
|
+
return u`
|
|
499
474
|
<luzmo-edit-option-text-field
|
|
500
475
|
.label=${i}
|
|
501
|
-
?hide-label=${
|
|
502
|
-
.placeholder=${
|
|
503
|
-
.value=${
|
|
504
|
-
.size=${
|
|
476
|
+
?hide-label=${t.controlInfo?.hideLabel}
|
|
477
|
+
.placeholder=${e[n]}
|
|
478
|
+
.value=${o ?? c}
|
|
479
|
+
.size=${l}
|
|
505
480
|
.tooltip=${s}
|
|
506
|
-
.extraLabel=${
|
|
507
|
-
.extraLabelTooltip=${
|
|
481
|
+
.extraLabel=${a}
|
|
482
|
+
.extraLabelTooltip=${r}
|
|
508
483
|
.extraLabelHasClickAction=${p}
|
|
509
|
-
@extraLabelClick=${
|
|
510
|
-
@option-changed=${
|
|
511
|
-
.parseValue=${
|
|
512
|
-
.toValue=${
|
|
484
|
+
@extraLabelClick=${f}
|
|
485
|
+
@option-changed=${m}
|
|
486
|
+
.parseValue=${t.controlInfo?.parseValue}
|
|
487
|
+
.toValue=${t.controlInfo?.toValue}
|
|
513
488
|
></luzmo-edit-option-text-field>
|
|
514
489
|
`;
|
|
515
|
-
},
|
|
490
|
+
}, X = (t) => {
|
|
516
491
|
switch (t.controlType) {
|
|
517
492
|
case "picker":
|
|
518
|
-
return
|
|
493
|
+
return G(t);
|
|
519
494
|
case "slider":
|
|
520
|
-
return
|
|
495
|
+
return J(t);
|
|
521
496
|
case "switch":
|
|
522
|
-
return
|
|
497
|
+
return Q(t);
|
|
523
498
|
case "multi-language-field":
|
|
524
|
-
return
|
|
499
|
+
return B(t);
|
|
525
500
|
case "text-field":
|
|
526
|
-
return
|
|
501
|
+
return U(t);
|
|
527
502
|
case "number-field":
|
|
528
|
-
return
|
|
503
|
+
return D(t);
|
|
529
504
|
case "color-range":
|
|
530
|
-
return
|
|
505
|
+
return F(t);
|
|
531
506
|
case "color-palette-picker":
|
|
532
|
-
return
|
|
507
|
+
return E(t);
|
|
533
508
|
case "position-picker":
|
|
534
|
-
return
|
|
509
|
+
return W(t);
|
|
535
510
|
case "positions-number-field":
|
|
536
|
-
return
|
|
511
|
+
return N(t);
|
|
537
512
|
case "radio-button-group":
|
|
538
|
-
return
|
|
513
|
+
return q(t);
|
|
539
514
|
case "color-picker":
|
|
540
|
-
return
|
|
515
|
+
return P(t);
|
|
541
516
|
case "action-button-group":
|
|
542
|
-
return
|
|
517
|
+
return j(t);
|
|
543
518
|
}
|
|
544
519
|
};
|
|
545
|
-
var
|
|
546
|
-
for (var
|
|
547
|
-
(s = t[
|
|
548
|
-
return
|
|
520
|
+
var Y = Object.defineProperty, I = (t, i, n, e) => {
|
|
521
|
+
for (var o = void 0, l = t.length - 1, s; l >= 0; l--)
|
|
522
|
+
(s = t[l]) && (o = s(i, n, o) || o);
|
|
523
|
+
return o && Y(i, n, o), o;
|
|
549
524
|
};
|
|
550
|
-
const
|
|
525
|
+
const z = class z extends H {
|
|
551
526
|
constructor() {
|
|
552
|
-
super(...arguments), this._loadItemConfig = new
|
|
527
|
+
super(...arguments), this._loadItemConfig = new O(this, {
|
|
553
528
|
task: async ([
|
|
554
529
|
i,
|
|
555
|
-
o,
|
|
556
|
-
l,
|
|
557
530
|
n,
|
|
558
|
-
e
|
|
531
|
+
e,
|
|
532
|
+
o,
|
|
533
|
+
l
|
|
559
534
|
]) => {
|
|
560
535
|
let s = !1;
|
|
561
|
-
if (i !== this._itemTypeLoaded && !
|
|
562
|
-
const
|
|
563
|
-
"../../item-definitions/area-chart/area-chart-options.config.ts": () => import("./area-chart-options.config-
|
|
564
|
-
"../../item-definitions/bar-chart/bar-chart-options.config.ts": () => import("./bar-chart-options.config-
|
|
565
|
-
"../../item-definitions/box-plot/box-plot-options.config.ts": () => import("./box-plot-options.config-
|
|
566
|
-
"../../item-definitions/bubble-chart/bubble-chart-options.config.ts": () => import("./bubble-chart-options.config-
|
|
567
|
-
"../../item-definitions/bullet-chart/bullet-chart-options.config.ts": () => import("./bullet-chart-options.config-
|
|
568
|
-
"../../item-definitions/choropleth-map/choropleth-map-options.config.ts": () => import("./choropleth-map-options.config-
|
|
536
|
+
if (i !== this._itemTypeLoaded && !o) {
|
|
537
|
+
const r = /* @__PURE__ */ Object.assign({
|
|
538
|
+
"../../item-definitions/area-chart/area-chart-options.config.ts": () => import("./area-chart-options.config-u8itidsi.js"),
|
|
539
|
+
"../../item-definitions/bar-chart/bar-chart-options.config.ts": () => import("./bar-chart-options.config-DIirbAJ0.js"),
|
|
540
|
+
"../../item-definitions/box-plot/box-plot-options.config.ts": () => import("./box-plot-options.config-BWROiguA.js"),
|
|
541
|
+
"../../item-definitions/bubble-chart/bubble-chart-options.config.ts": () => import("./bubble-chart-options.config-4QD8VPhU.js"),
|
|
542
|
+
"../../item-definitions/bullet-chart/bullet-chart-options.config.ts": () => import("./bullet-chart-options.config-3bH7uekx.js"),
|
|
543
|
+
"../../item-definitions/choropleth-map/choropleth-map-options.config.ts": () => import("./choropleth-map-options.config-CMxx3ORp.js"),
|
|
569
544
|
"../../item-definitions/circle-pack-chart/circle-pack-chart-options.config.ts": () => import("./circle-pack-chart-options.config-DEYL3DMK.js"),
|
|
570
|
-
"../../item-definitions/circular-gauge/circular-gauge-options.config.ts": () => import("./circular-gauge-options.config-
|
|
571
|
-
"../../item-definitions/column-chart/column-chart-options.config.ts": () => import("./column-chart-options.config-
|
|
545
|
+
"../../item-definitions/circular-gauge/circular-gauge-options.config.ts": () => import("./circular-gauge-options.config-DhIKn44k.js"),
|
|
546
|
+
"../../item-definitions/column-chart/column-chart-options.config.ts": () => import("./column-chart-options.config-D5-yR7iq.js"),
|
|
572
547
|
"../../item-definitions/combination-chart/combination-chart-options.config.ts": () => import("./combination-chart-options.config-CApdgFvv.js"),
|
|
573
|
-
"../../item-definitions/conditional-number/conditional-number-options.config.ts": () => import("./conditional-number-options.config-
|
|
574
|
-
"../../item-definitions/date-comparison-filter/date-comparison-filter-options.config.ts": () => import("./date-comparison-filter-options.config-
|
|
575
|
-
"../../item-definitions/date-filter/date-filter-options.config.ts": () => import("./date-filter-options.config-
|
|
576
|
-
"../../item-definitions/donut-chart/donut-chart-options.config.ts": () => import("./donut-chart-options.config-
|
|
577
|
-
"../../item-definitions/dropdown-filter/dropdown-filter-options.config.ts": () => import("./dropdown-filter-options.config-
|
|
578
|
-
"../../item-definitions/evolution-number/evolution-number-options.config.ts": () => import("./evolution-number-options.config-
|
|
579
|
-
"../../item-definitions/funnel-chart/funnel-chart-options.config.ts": () => import("./funnel-chart-options.config-
|
|
580
|
-
"../../item-definitions/heat-map/heat-map-options.config.ts": () => import("./heat-map-options.config-
|
|
581
|
-
"../../item-definitions/heat-table/heat-table-options.config.ts": () => import("./heat-table-options.config-
|
|
582
|
-
"../../item-definitions/hexbin-map/hexbin-map-options.config.ts": () => import("./hexbin-map-options.config-
|
|
548
|
+
"../../item-definitions/conditional-number/conditional-number-options.config.ts": () => import("./conditional-number-options.config-DPYsdML5.js"),
|
|
549
|
+
"../../item-definitions/date-comparison-filter/date-comparison-filter-options.config.ts": () => import("./date-comparison-filter-options.config-CSwGyuBg.js"),
|
|
550
|
+
"../../item-definitions/date-filter/date-filter-options.config.ts": () => import("./date-filter-options.config-BTVyHRkp.js"),
|
|
551
|
+
"../../item-definitions/donut-chart/donut-chart-options.config.ts": () => import("./donut-chart-options.config-3ZqX8Cbb.js"),
|
|
552
|
+
"../../item-definitions/dropdown-filter/dropdown-filter-options.config.ts": () => import("./dropdown-filter-options.config-CGJTtgAX.js"),
|
|
553
|
+
"../../item-definitions/evolution-number/evolution-number-options.config.ts": () => import("./evolution-number-options.config-BIPO_4n3.js"),
|
|
554
|
+
"../../item-definitions/funnel-chart/funnel-chart-options.config.ts": () => import("./funnel-chart-options.config-CrJy2U7_.js"),
|
|
555
|
+
"../../item-definitions/heat-map/heat-map-options.config.ts": () => import("./heat-map-options.config-CmL87j1j.js"),
|
|
556
|
+
"../../item-definitions/heat-table/heat-table-options.config.ts": () => import("./heat-table-options.config-BrCYAgYD.js"),
|
|
557
|
+
"../../item-definitions/hexbin-map/hexbin-map-options.config.ts": () => import("./hexbin-map-options.config-BguV1w8q.js"),
|
|
583
558
|
"../../item-definitions/image/image-options.config.ts": () => import("./image-options.config-CBfeq5Zw.js"),
|
|
584
559
|
"../../item-definitions/item-options.config.ts": () => import("./item-options-configs.js"),
|
|
585
|
-
"../../item-definitions/line-chart/line-chart-options.config.ts": () => import("./line-chart-options.config-
|
|
586
|
-
"../../item-definitions/marker-map/marker-map-options.config.ts": () => import("./marker-map-options.config-
|
|
560
|
+
"../../item-definitions/line-chart/line-chart-options.config.ts": () => import("./line-chart-options.config-BhirTGqD.js"),
|
|
561
|
+
"../../item-definitions/marker-map/marker-map-options.config.ts": () => import("./marker-map-options.config-Bx17jmiq.js"),
|
|
587
562
|
"../../item-definitions/ohlc-chart/ohlc-chart-options.config.ts": () => import("./ohlc-chart-options.config-D9npwajt.js"),
|
|
588
563
|
"../../item-definitions/parallel-coordinates-plot/parallel-coordinates-plot-options.config.ts": () => import("./parallel-coordinates-plot-options.config-DxB4kd58.js"),
|
|
589
|
-
"../../item-definitions/pivot-table/pivot-table-options.config.ts": () => import("./pivot-table-options.config-
|
|
590
|
-
"../../item-definitions/pyramid-chart/pyramid-chart-options.config.ts": () => import("./pyramid-chart-options.config-
|
|
591
|
-
"../../item-definitions/radar-chart/radar-chart-options.config.ts": () => import("./radar-chart-options.config-
|
|
592
|
-
"../../item-definitions/regular-table/regular-table-options.config.ts": () => import("./regular-table-options.config-
|
|
593
|
-
"../../item-definitions/route-map/route-map-options.config.ts": () => import("./route-map-options.config-
|
|
594
|
-
"../../item-definitions/sankey-diagram/sankey-diagram-options.config.ts": () => import("./sankey-diagram-options.config-
|
|
595
|
-
"../../item-definitions/scatter-plot/scatter-plot-options.config.ts": () => import("./scatter-plot-options.config-
|
|
596
|
-
"../../item-definitions/search-filter/search-filter-options.config.ts": () => import("./search-filter-options.config-
|
|
597
|
-
"../../item-definitions/slicer-filter/slicer-filter-options.config.ts": () => import("./slicer-filter-options.config-
|
|
598
|
-
"../../item-definitions/slider-filter/slider-filter-options.config.ts": () => import("./slider-filter-options.config-
|
|
564
|
+
"../../item-definitions/pivot-table/pivot-table-options.config.ts": () => import("./pivot-table-options.config-CFc7y0IT.js"),
|
|
565
|
+
"../../item-definitions/pyramid-chart/pyramid-chart-options.config.ts": () => import("./pyramid-chart-options.config-2Waxb11l.js"),
|
|
566
|
+
"../../item-definitions/radar-chart/radar-chart-options.config.ts": () => import("./radar-chart-options.config-CPN5fOl8.js"),
|
|
567
|
+
"../../item-definitions/regular-table/regular-table-options.config.ts": () => import("./regular-table-options.config-CFKCJQK1.js"),
|
|
568
|
+
"../../item-definitions/route-map/route-map-options.config.ts": () => import("./route-map-options.config-CyolTJfK.js"),
|
|
569
|
+
"../../item-definitions/sankey-diagram/sankey-diagram-options.config.ts": () => import("./sankey-diagram-options.config-Ldjk84ro.js"),
|
|
570
|
+
"../../item-definitions/scatter-plot/scatter-plot-options.config.ts": () => import("./scatter-plot-options.config-CfxEfkQ1.js"),
|
|
571
|
+
"../../item-definitions/search-filter/search-filter-options.config.ts": () => import("./search-filter-options.config-C0syQmP4.js"),
|
|
572
|
+
"../../item-definitions/slicer-filter/slicer-filter-options.config.ts": () => import("./slicer-filter-options.config-DmOe3440.js"),
|
|
573
|
+
"../../item-definitions/slider-filter/slider-filter-options.config.ts": () => import("./slider-filter-options.config-B1M8RcDs.js"),
|
|
599
574
|
"../../item-definitions/spacer/spacer-options.config.ts": () => import("./spacer-options.config-IpwUxDyU.js"),
|
|
600
|
-
"../../item-definitions/speedometer-chart/speedometer-chart-options.config.ts": () => import("./speedometer-chart-options.config-
|
|
601
|
-
"../../item-definitions/spike-map/spike-map-options.config.ts": () => import("./spike-map-options.config-
|
|
575
|
+
"../../item-definitions/speedometer-chart/speedometer-chart-options.config.ts": () => import("./speedometer-chart-options.config-CzOmuEF8.js"),
|
|
576
|
+
"../../item-definitions/spike-map/spike-map-options.config.ts": () => import("./spike-map-options.config-Cbt1YUw6.js"),
|
|
602
577
|
"../../item-definitions/strip-plot/strip-plot-options.config.ts": () => import("./strip-plot-options.config-Bdr8yQJu.js"),
|
|
603
|
-
"../../item-definitions/sunburst-chart/sunburst-chart-options.config.ts": () => import("./sunburst-chart-options.config-
|
|
604
|
-
"../../item-definitions/symbol-map/symbol-map-options.config.ts": () => import("./symbol-map-options.config-
|
|
578
|
+
"../../item-definitions/sunburst-chart/sunburst-chart-options.config.ts": () => import("./sunburst-chart-options.config-_dyLQxPJ.js"),
|
|
579
|
+
"../../item-definitions/symbol-map/symbol-map-options.config.ts": () => import("./symbol-map-options.config-BORL1NSU.js"),
|
|
605
580
|
"../../item-definitions/text/text-options.config.ts": () => import("./text-options.config-BWaJoeG2.js"),
|
|
606
|
-
"../../item-definitions/treemap-chart/treemap-chart-options.config.ts": () => import("./treemap-chart-options.config-
|
|
581
|
+
"../../item-definitions/treemap-chart/treemap-chart-options.config.ts": () => import("./treemap-chart-options.config-B9i9qIm_.js"),
|
|
607
582
|
"../../item-definitions/venn-diagram/venn-diagram-options.config.ts": () => import("./venn-diagram-options.config-CGUMA930.js"),
|
|
608
|
-
"../../item-definitions/video/video-options.config.ts": () => import("./video-options.config-
|
|
609
|
-
"../../item-definitions/wordcloud-chart/wordcloud-chart-options.config.ts": () => import("./wordcloud-chart-options.config-
|
|
583
|
+
"../../item-definitions/video/video-options.config.ts": () => import("./video-options.config-UX-9MDfS.js"),
|
|
584
|
+
"../../item-definitions/wordcloud-chart/wordcloud-chart-options.config.ts": () => import("./wordcloud-chart-options.config-BoB_KuhA.js")
|
|
610
585
|
});
|
|
611
|
-
if (
|
|
586
|
+
if (r[`../../item-definitions/${i}/${i}-options.config.ts`])
|
|
612
587
|
try {
|
|
613
|
-
const p = await
|
|
614
|
-
this._optionsConfig =
|
|
588
|
+
const p = await r[`../../item-definitions/${i}/${i}-options.config.ts`]();
|
|
589
|
+
this._optionsConfig = p?.default ?? [];
|
|
615
590
|
} catch {
|
|
616
591
|
this._optionsConfig = [];
|
|
617
592
|
}
|
|
618
593
|
else
|
|
619
594
|
this._optionsConfig = [];
|
|
620
595
|
s = !0;
|
|
621
|
-
} else
|
|
596
|
+
} else o ? (n && i && console.warn(
|
|
622
597
|
"optionKey and itemType are not needed when using custom option configuration"
|
|
623
|
-
), this._optionsConfig = [{ children: [
|
|
624
|
-
if ((
|
|
625
|
-
const
|
|
598
|
+
), this._optionsConfig = [{ children: [o] }], n = o.key, i = void 0) : this._optionsConfig = [];
|
|
599
|
+
if ((e !== this._languageLoaded || s) && !l) {
|
|
600
|
+
const r = /* @__PURE__ */ Object.assign({
|
|
626
601
|
"../../item-definitions/area-chart/i18n/area-chart-options.de.ts": () => import("./area-chart-options.de-FcVE2Ywe.js"),
|
|
627
602
|
"../../item-definitions/area-chart/i18n/area-chart-options.en.ts": () => import("./area-chart-options.en-Cz5aXeVe.js"),
|
|
628
603
|
"../../item-definitions/area-chart/i18n/area-chart-options.es.ts": () => import("./area-chart-options.es-o3ABpXnC.js"),
|
|
@@ -844,28 +819,28 @@ const F = class F extends Z {
|
|
|
844
819
|
"../../item-definitions/wordcloud-chart/i18n/wordcloud-chart-options.fr.ts": () => import("./wordcloud-chart-options.fr-DNK5Ouc5.js"),
|
|
845
820
|
"../../item-definitions/wordcloud-chart/i18n/wordcloud-chart-options.nl.ts": () => import("./wordcloud-chart-options.nl-CcgmqL7I.js")
|
|
846
821
|
});
|
|
847
|
-
if (
|
|
822
|
+
if (r[`../../item-definitions/${i}/i18n/${i}-options.${e}.ts`])
|
|
848
823
|
try {
|
|
849
|
-
const p = await
|
|
850
|
-
this._translations =
|
|
824
|
+
const p = await r[`../../item-definitions/${i}/i18n/${i}-options.${e}.ts`]();
|
|
825
|
+
this._translations = p?.default ?? {};
|
|
851
826
|
} catch (p) {
|
|
852
827
|
this._translations = {}, console.error(p);
|
|
853
828
|
}
|
|
854
829
|
else
|
|
855
830
|
this._translations = {};
|
|
856
|
-
} else
|
|
857
|
-
options: { [
|
|
831
|
+
} else l ? this._translations = {
|
|
832
|
+
options: { [n ?? ""]: l }
|
|
858
833
|
} : this._translations = {};
|
|
859
|
-
const
|
|
860
|
-
if (
|
|
861
|
-
const
|
|
834
|
+
const c = M(n ?? "", this._optionsConfig), a = c?.type;
|
|
835
|
+
if (a !== this._controlTypeLoaded) {
|
|
836
|
+
const r = /* @__PURE__ */ Object.assign({ "../edit-option-action-button-group/index.ts": () => import("./edit-option-action-button-group/index.js"), "../edit-option-color-palette-picker/index.ts": () => import("./edit-option-color-palette-picker/index.js"), "../edit-option-color-picker/index.ts": () => import("./edit-option-color-picker/index.js"), "../edit-option-color-range/index.ts": () => import("./edit-option-color-range/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") });
|
|
862
837
|
try {
|
|
863
|
-
|
|
838
|
+
r[`../edit-option-${a}/index.ts`] && (await r[`../edit-option-${a}/index.ts`](), this._controlTypeLoaded = a);
|
|
864
839
|
} catch (p) {
|
|
865
840
|
console.error(p);
|
|
866
841
|
}
|
|
867
842
|
}
|
|
868
|
-
return
|
|
843
|
+
return c;
|
|
869
844
|
},
|
|
870
845
|
args: () => [
|
|
871
846
|
this.itemType,
|
|
@@ -889,57 +864,54 @@ const F = class F extends Z {
|
|
|
889
864
|
}
|
|
890
865
|
render() {
|
|
891
866
|
return this._loadItemConfig.render({
|
|
892
|
-
pending: () =>
|
|
893
|
-
complete: (i) => {
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
});
|
|
907
|
-
},
|
|
908
|
-
error: (i) => (console.error(i), O``)
|
|
867
|
+
pending: () => u`<p>Loading...</p>`,
|
|
868
|
+
complete: (i) => X({
|
|
869
|
+
controlType: i?.type,
|
|
870
|
+
optionKey: this.customOptionConfiguration?.key ?? this.optionKey,
|
|
871
|
+
controlInfo: i,
|
|
872
|
+
options: this.options,
|
|
873
|
+
slots: this.slots,
|
|
874
|
+
theme: this.theme,
|
|
875
|
+
language: this.language,
|
|
876
|
+
translations: this._translations,
|
|
877
|
+
size: this.size,
|
|
878
|
+
changeCallback: this.changedOptions
|
|
879
|
+
}),
|
|
880
|
+
error: (i) => (console.error(i), u``)
|
|
909
881
|
});
|
|
910
882
|
}
|
|
911
883
|
};
|
|
912
|
-
|
|
913
|
-
let
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
],
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
],
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
],
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
],
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
],
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
],
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
],
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
],
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
],
|
|
941
|
-
customElements.get("luzmo-edit-option") || customElements.define("luzmo-edit-option",
|
|
884
|
+
z.styles = T(S);
|
|
885
|
+
let y = z;
|
|
886
|
+
I([
|
|
887
|
+
k({ type: String, reflect: !0 })
|
|
888
|
+
], y.prototype, "language");
|
|
889
|
+
I([
|
|
890
|
+
k({ type: String, reflect: !0, attribute: "item-type" })
|
|
891
|
+
], y.prototype, "itemType");
|
|
892
|
+
I([
|
|
893
|
+
k({ type: String, reflect: !0, attribute: "option-key" })
|
|
894
|
+
], y.prototype, "optionKey");
|
|
895
|
+
I([
|
|
896
|
+
k({ type: Object, reflect: !1 })
|
|
897
|
+
], y.prototype, "customOptionConfiguration");
|
|
898
|
+
I([
|
|
899
|
+
k({ type: Object, reflect: !1 })
|
|
900
|
+
], y.prototype, "customTranslations");
|
|
901
|
+
I([
|
|
902
|
+
k({ type: Object })
|
|
903
|
+
], y.prototype, "options");
|
|
904
|
+
I([
|
|
905
|
+
k({ type: Object })
|
|
906
|
+
], y.prototype, "slots");
|
|
907
|
+
I([
|
|
908
|
+
k({ type: Object })
|
|
909
|
+
], y.prototype, "theme");
|
|
910
|
+
I([
|
|
911
|
+
k({ type: String, reflect: !0 })
|
|
912
|
+
], y.prototype, "size");
|
|
913
|
+
customElements.get("luzmo-edit-option") || customElements.define("luzmo-edit-option", y);
|
|
942
914
|
export {
|
|
943
|
-
|
|
944
|
-
|
|
915
|
+
y as L,
|
|
916
|
+
M as g
|
|
945
917
|
};
|