@luzmo/analytics-components-kit 1.0.1-alpha.10 → 1.0.1-alpha.11
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/bar-chart.config--VDhFN4d.cjs +20 -0
- package/components/{column-chart.config-C9hP0kX7.js → bar-chart.config-BYIX4E6J.js} +34 -33
- package/components/{bar-chart.en-FwT00qdU.js → bar-chart.en-Crc8tYUJ.js} +17 -0
- package/components/{donut-chart.en-Blb9oSdU.cjs → bar-chart.en-D1UfGsS3.cjs} +1 -1
- package/components/bar-chart.fr-BwiGRlQf.js +86 -0
- package/components/bar-chart.fr-CP7DTrlk.cjs +20 -0
- package/components/bar-chart.nl-C9EOP2kE.js +86 -0
- package/components/bar-chart.nl-Cxq8ID8c.cjs +20 -0
- package/components/{bar-chart.nl-ahX1ARpH.js → box-plot-slots.config-BRhnF2FE.js} +25 -21
- package/components/box-plot-slots.config-DZxyy3sS.cjs +20 -0
- package/components/{textobject.config-C8opcGG4.js → bubble-chart-slots.config-Bbh94VgZ.js} +18 -24
- package/components/bubble-chart-slots.config-BwSwgleO.cjs +20 -0
- package/components/bullet-chart-slots.config-Ccv_dX0s.js +45 -0
- package/components/bullet-chart-slots.config-CiYsxviC.cjs +20 -0
- package/components/choropleth-map-slots.config-B-uJTj4q.js +47 -0
- package/components/{bar-chart.nl-BYzVExsz.cjs → choropleth-map-slots.config-PNwSR0XY.cjs} +1 -1
- package/components/{donut-chart.nl-D9YGbOce.cjs → circle-pack-chart-slots.config-C-_ganmv.cjs} +1 -1
- package/components/circle-pack-chart-slots.config-xwVdRiwS.js +40 -0
- package/components/{donut-chart.fr-BeTVa2wh.cjs → circular-gauge-slots.config-Cd-nkNPm.cjs} +1 -1
- package/components/circular-gauge-slots.config-DA-ZAc5d.js +39 -0
- package/components/column-chart-slots.config-C7MhpoR8.cjs +20 -0
- package/components/column-chart-slots.config-DAdAk17k.js +47 -0
- package/components/{bar-chart.config-CQ6HAvs2.js → column-chart.config-BYIX4E6J.js} +36 -35
- package/components/column-chart.config-BmhmcBZJ.cjs +20 -0
- package/components/column-chart.en-Crc8tYUJ.js +86 -0
- package/components/{bar-chart.en-BqYbiHO3.cjs → column-chart.en-D1UfGsS3.cjs} +1 -1
- package/components/column-chart.fr-BwiGRlQf.js +86 -0
- package/components/column-chart.fr-CP7DTrlk.cjs +20 -0
- package/components/column-chart.nl-C9EOP2kE.js +86 -0
- package/components/column-chart.nl-Cxq8ID8c.cjs +20 -0
- package/components/combination-chart-slots.config-CqKLFKCZ.js +45 -0
- package/components/combination-chart-slots.config-crMO01EO.cjs +20 -0
- package/components/conditional-number-slots.config-CD5ZwXuY.cjs +20 -0
- package/components/conditional-number-slots.config-L3t5pb1-.js +39 -0
- package/components/date-filter-slots.config-Cb1LcT9W.cjs +20 -0
- package/components/date-filter-slots.config-CxB8IF5B.js +33 -0
- package/components/display-settings-datetime/index.cjs +209 -1
- package/components/display-settings-datetime/index.js +511 -6
- package/components/{donut-chart.en-CzjT4-XN.js → donut-chart.en-CrUf4CJ9.js} +14 -0
- package/components/donut-chart.en-DHCYs2el.cjs +20 -0
- package/components/donut-chart.fr-C33dLw52.cjs +20 -0
- package/components/donut-chart.fr-DVfZwZny.js +99 -0
- package/components/donut-chart.nl-B13jr7SK.js +99 -0
- package/components/donut-chart.nl-CHAnU1xZ.cjs +20 -0
- package/components/draggable-data-item-level/index.cjs +1 -1
- package/components/draggable-data-item-level/index.js +1 -1
- package/components/dropdown-filter-slots.config-B8J6ftCh.js +46 -0
- package/components/dropdown-filter-slots.config-I2n4b_6V.cjs +20 -0
- package/components/droppable-slot/index.cjs +12 -12
- package/components/droppable-slot/index.js +126 -85
- package/components/droppable-slot/item-slots-configs/box-plot-slots.config.d.ts +26 -0
- package/components/droppable-slot/item-slots-configs/bubble-chart-slots.config.d.ts +30 -0
- package/components/droppable-slot/item-slots-configs/bullet-chart-slots.config.d.ts +18 -0
- package/components/droppable-slot/item-slots-configs/choropleth-map-slots.config.d.ts +29 -0
- package/components/droppable-slot/item-slots-configs/circle-pack-chart-slots.config.d.ts +22 -0
- package/components/droppable-slot/item-slots-configs/circular-gauge-slots.config.d.ts +16 -0
- package/components/droppable-slot/item-slots-configs/column-chart-slots.config.d.ts +24 -0
- package/components/droppable-slot/item-slots-configs/combination-chart-slots.config.d.ts +30 -0
- package/components/droppable-slot/item-slots-configs/conditional-number-slots.config.d.ts +16 -0
- package/components/droppable-slot/item-slots-configs/date-filter-slots.config.d.ts +10 -0
- package/components/droppable-slot/item-slots-configs/dropdown-filter-slots.config.d.ts +23 -0
- package/components/droppable-slot/item-slots-configs/evolution-number-slots.config.d.ts +18 -0
- package/components/droppable-slot/item-slots-configs/funnel-chart-slots.config.d.ts +22 -0
- package/components/droppable-slot/item-slots-configs/heat-map-slots.config.d.ts +18 -0
- package/components/droppable-slot/item-slots-configs/heat-table-slots.config.d.ts +20 -0
- package/components/droppable-slot/item-slots-configs/hexbin-map-slots.config.d.ts +18 -0
- package/components/droppable-slot/item-slots-configs/image-slots.config.d.ts +2 -0
- package/components/droppable-slot/item-slots-configs/index.d.ts +44 -0
- package/components/droppable-slot/item-slots-configs/line-chart-slots.config.d.ts +44 -0
- package/components/droppable-slot/item-slots-configs/marker-map-slots.config.d.ts +18 -0
- package/components/droppable-slot/item-slots-configs/ohlc-chart-slots.config.d.ts +21 -0
- package/components/droppable-slot/item-slots-configs/parallel-coordinates-plot-slots.config.d.ts +23 -0
- package/components/droppable-slot/item-slots-configs/pivot-table-slots.config.d.ts +21 -0
- package/components/droppable-slot/item-slots-configs/pyramid-chart-slots.config.d.ts +33 -0
- package/components/droppable-slot/item-slots-configs/radar-chart-slots.config.d.ts +33 -0
- package/components/droppable-slot/item-slots-configs/regular-table-slots.config.d.ts +13 -0
- package/components/droppable-slot/item-slots-configs/route-map-slots.config.d.ts +28 -0
- package/components/droppable-slot/item-slots-configs/sankey-diagram-slots.config.d.ts +33 -0
- package/components/droppable-slot/item-slots-configs/scatter-plot-slots.config.d.ts +50 -0
- package/components/droppable-slot/item-slots-configs/search-filter-slots.config.d.ts +24 -0
- package/components/droppable-slot/item-slots-configs/slicer-filter-slots.config.d.ts +23 -0
- package/components/droppable-slot/item-slots-configs/slider-filter-slots.config.d.ts +13 -0
- package/components/droppable-slot/item-slots-configs/speedometer-chart-slots.config.d.ts +16 -0
- package/components/droppable-slot/item-slots-configs/spike-map-slots.config.d.ts +31 -0
- package/components/droppable-slot/item-slots-configs/strip-plot-slots.config.d.ts +22 -0
- package/components/droppable-slot/item-slots-configs/sunburst-chart-slots.config.d.ts +22 -0
- package/components/droppable-slot/item-slots-configs/symbol-map-slots.config.d.ts +31 -0
- package/components/droppable-slot/item-slots-configs/text-slots.config.d.ts +2 -0
- package/components/droppable-slot/item-slots-configs/treemap-chart-slots.config.d.ts +30 -0
- package/components/droppable-slot/item-slots-configs/venn-diagram-slots.config.d.ts +18 -0
- package/components/droppable-slot/item-slots-configs/video-slots.config.d.ts +2 -0
- package/components/droppable-slot/item-slots-configs/wordcloud-chart-slots.config.d.ts +23 -0
- package/components/edit-item/index.cjs +17 -14
- package/components/edit-item/index.js +176 -161
- package/components/edit-option/helpers/control-templates/position-picker-template.d.ts +2 -0
- package/components/edit-option/index.cjs +115 -104
- package/components/edit-option/index.js +262 -226
- package/components/edit-option/item-configs/imageobject.config.d.ts +1 -3
- package/components/edit-option/item-configs/line-chart.config.d.ts +36 -2
- package/components/edit-option/item-configs/spacer.config.d.ts +2 -0
- package/components/edit-option/item-configs/textobject.config.d.ts +34 -2
- package/components/edit-option/item-configs/videoobject.config.d.ts +90 -0
- package/components/edit-option/item-translations/bar-chart.en.d.ts +17 -0
- package/components/edit-option/item-translations/bar-chart.fr.d.ts +47 -5
- package/components/edit-option/item-translations/bar-chart.nl.d.ts +47 -5
- package/components/edit-option/item-translations/column-chart.en.d.ts +65 -0
- package/components/edit-option/item-translations/column-chart.fr.d.ts +65 -0
- package/components/edit-option/item-translations/column-chart.nl.d.ts +65 -0
- package/components/edit-option/item-translations/donut-chart.en.d.ts +14 -0
- package/components/edit-option/item-translations/donut-chart.fr.d.ts +62 -2
- package/components/edit-option/item-translations/donut-chart.nl.d.ts +62 -2
- package/components/edit-option/item-translations/imageobject.en.d.ts +71 -0
- package/components/edit-option/item-translations/imageobject.fr.d.ts +71 -0
- package/components/edit-option/item-translations/imageobject.nl.d.ts +71 -0
- package/components/edit-option/item-translations/textobject.en.d.ts +17 -0
- package/components/edit-option/item-translations/textobject.fr.d.ts +17 -0
- package/components/edit-option/item-translations/textobject.nl.d.ts +17 -0
- package/components/edit-option-action-button-group/index.cjs +12 -5
- package/components/edit-option-action-button-group/index.js +26 -19
- package/components/edit-option-multi-language-field/edit-option-multi-language-field.d.ts +2 -0
- package/components/edit-option-multi-language-field/index.cjs +3 -3
- package/components/edit-option-multi-language-field/index.js +32 -22
- package/components/edit-option-position-picker/edit-option-position-picker.d.ts +13 -0
- package/components/edit-option-position-picker/index.cjs +25 -0
- package/components/edit-option-position-picker/index.d.ts +7 -0
- package/components/edit-option-position-picker/index.js +110 -0
- package/components/edit-option-positions-number-field/edit-option-positions-number-field.d.ts +11 -9
- package/components/edit-option-positions-number-field/index.cjs +12 -12
- package/components/edit-option-positions-number-field/index.js +84 -75
- package/components/en-BnVnZvpC.cjs +20 -0
- package/components/en-DlRadzUI.js +1487 -0
- package/components/{en-GB-DX5un7Gr.js → en-GB-C9t4MSgD.js} +1 -1
- package/components/{en-GB-Bz4u7Uqv.cjs → en-GB-D5Tvhki6.cjs} +1 -1
- package/components/evolution-number-slots.config-BI-sFIug.cjs +20 -0
- package/components/evolution-number-slots.config-CW21b2ua.js +39 -0
- package/components/funnel-chart-slots.config-BBhMS2qi.js +40 -0
- package/components/funnel-chart-slots.config-WrokHS7f.cjs +20 -0
- package/components/heat-map-slots.config-CSxSsQwX.cjs +20 -0
- package/components/heat-map-slots.config-cdD8XTmI.js +39 -0
- package/components/heat-table-slots.config-DJkP72oT.js +48 -0
- package/components/heat-table-slots.config-GGX3BCh1.cjs +20 -0
- package/components/hexbin-map-slots.config-CSxSsQwX.cjs +20 -0
- package/components/hexbin-map-slots.config-cdD8XTmI.js +39 -0
- package/components/image-slots.config-IpwUxDyU.js +23 -0
- package/components/image-slots.config-mPXMR1CE.cjs +20 -0
- package/components/{imageobject.config-DZLp9Elq.js → imageobject.config-CBfeq5Zw.js} +2 -2
- package/components/{imageobject.config-B7ld9bj3.cjs → imageobject.config-Dqhc2c3b.cjs} +1 -1
- package/components/imageobject.en-BMmV-4O-.js +92 -0
- package/components/imageobject.en-DflcU_2H.cjs +20 -0
- package/components/imageobject.fr-DRE3zImB.js +92 -0
- package/components/imageobject.fr-ycH7UoX5.cjs +20 -0
- package/components/imageobject.nl-D20hki6i.js +92 -0
- package/components/imageobject.nl-DQL45o0j.cjs +20 -0
- package/components/index.cjs +1 -1
- package/components/index.js +33 -25
- package/components/item-list.cjs +20 -0
- package/components/item-list.js +423 -0
- package/components/item-menu/item-list/item-list.d.ts +35 -0
- package/components/line-chart-slots.config-CIfDfftd.cjs +20 -0
- package/components/line-chart-slots.config-P7xa-pHi.js +52 -0
- package/components/line-chart.config-DBw4A3Rf.js +178 -0
- package/components/line-chart.config-cvwDhvSq.cjs +20 -0
- package/components/{localize-B6AsX_Zv.js → localize-BX7q0S0M.js} +16 -16
- package/components/localize-r7ALOUy_.cjs +20 -0
- package/components/marker-map-slots.config-CSxSsQwX.cjs +20 -0
- package/components/marker-map-slots.config-cdD8XTmI.js +39 -0
- package/components/ohlc-chart-slots.config-Cvy5n1xv.js +64 -0
- package/components/ohlc-chart-slots.config-DMomcHMV.cjs +20 -0
- package/components/parallel-coordinates-plot-slots.config-BRXA5nUl.cjs +20 -0
- package/components/parallel-coordinates-plot-slots.config-CQW2CJW6.js +44 -0
- package/components/pivot-table-slots.config-BH5fOJre.js +48 -0
- package/components/pivot-table-slots.config-DzGWM3Ez.cjs +20 -0
- package/components/pyramid-chart-slots.config-Cm9bQsXT.js +47 -0
- package/components/pyramid-chart-slots.config-DeWrVApy.cjs +20 -0
- package/components/radar-chart-slots.config-Dpmytmc3.js +47 -0
- package/components/radar-chart-slots.config-Dxx5fKnS.cjs +20 -0
- package/components/regular-table-slots.config-ChrvnRDb.cjs +20 -0
- package/components/regular-table-slots.config-EUS-V9lL.js +33 -0
- package/components/route-map-slots.config-BfbIWCr0.cjs +20 -0
- package/components/route-map-slots.config-DYCcaQZi.js +53 -0
- package/components/sankey-diagram-slots.config-B7Q-ZfUP.cjs +20 -0
- package/components/sankey-diagram-slots.config-BSTBEZDe.js +55 -0
- package/components/scatter-plot-slots.config-BuWYqDWK.js +70 -0
- package/components/scatter-plot-slots.config-wlX_PVu8.cjs +20 -0
- package/components/search-filter-slots.config-DOlr8VaD.cjs +20 -0
- package/components/search-filter-slots.config-DmiVXOva.js +47 -0
- package/components/{bar-chart.fr-DbxKiM0j.js → slicer-filter-slots.config-CHQ0ZXga.js} +21 -20
- package/components/slicer-filter-slots.config-Dyte3aGp.cjs +20 -0
- package/components/slider-filter-slots.config-BN3K1rnl.js +33 -0
- package/components/slider-filter-slots.config-Cr5oXbok.cjs +20 -0
- package/components/slot-configs.cjs +20 -0
- package/components/slot-configs.js +109 -0
- package/components/slot-menu/index.cjs +1 -1
- package/components/slot-menu/index.js +1 -1
- package/components/slot-menu-list/index.cjs +1 -1
- package/components/slot-menu-list/index.js +1 -1
- package/components/spacer.config-Br2Dm5Uv.js +23 -0
- package/components/spacer.config-mPXMR1CE.cjs +20 -0
- package/components/speedometer-chart-slots.config-Cd-nkNPm.cjs +20 -0
- package/components/speedometer-chart-slots.config-DA-ZAc5d.js +39 -0
- package/components/spike-map-slots.config-CuqpgkvN.js +46 -0
- package/components/spike-map-slots.config-Drga6_j0.cjs +20 -0
- package/components/strip-plot-slots.config-Co8ghEv8.js +40 -0
- package/components/strip-plot-slots.config-JvkKY5Ga.cjs +20 -0
- package/components/sunburst-chart-slots.config-C-_ganmv.cjs +20 -0
- package/components/sunburst-chart-slots.config-xwVdRiwS.js +40 -0
- package/components/symbol-map-slots.config-C5CKaVED.js +47 -0
- package/components/{bar-chart.fr-DGx9smEh.cjs → symbol-map-slots.config-DtW-3xkd.cjs} +1 -1
- package/components/text-slots.config-BMBEkf0O.cjs +20 -0
- package/components/text-slots.config-Hy5yNIAX.js +23 -0
- package/components/{textobject.config-DbAajFz8.cjs → textobject.config-BFB3rEmt.cjs} +1 -1
- package/components/textobject.config-DTDqt0ci.js +73 -0
- package/components/textobject.en-BQqHFc7M.js +38 -0
- package/components/textobject.en-LfsMtwo6.cjs +20 -0
- package/components/textobject.fr-B8x29grG.cjs +20 -0
- package/components/{donut-chart.nl-NMatXfhK.js → textobject.fr-VPJ3bDOM.js} +11 -12
- package/components/textobject.nl-DzglrI3i.cjs +20 -0
- package/components/{donut-chart.fr-DftPrKbG.js → textobject.nl-V03mmGmH.js} +11 -12
- package/components/treemap-chart-slots.config-C3bnHCyy.cjs +20 -0
- package/components/treemap-chart-slots.config-xLD22K9V.js +46 -0
- package/components/utils.cjs +1 -1
- package/components/utils.js +8 -1
- package/components/venn-diagram-slots.config-CpOPbUjs.cjs +20 -0
- package/components/venn-diagram-slots.config-DPmj71cR.js +48 -0
- package/components/video-slots.config-IpwUxDyU.js +23 -0
- package/components/video-slots.config-mPXMR1CE.cjs +20 -0
- package/components/videoobject.config-BBDHSf6_.cjs +20 -0
- package/components/videoobject.config-CbtNZAEK.js +135 -0
- package/components/wordcloud-chart-slots.config-BS4sOOHt.js +44 -0
- package/components/wordcloud-chart-slots.config-D7CiYopX.cjs +20 -0
- package/custom-elements.json +3309 -1832
- package/index.d.ts +2 -0
- package/package.json +21 -1
- package/utils/index.d.ts +3 -1
- package/components/bar-chart.config-B57geUzJ.cjs +0 -20
- package/components/column-chart.config-B57geUzJ.cjs +0 -20
- package/components/en-BByOeNuP.js +0 -1989
- package/components/en-BFGuvaVG.cjs +0 -228
- package/components/line-chart.config-BZcvfO2c.cjs +0 -20
- package/components/line-chart.config-CIVN6uLI.js +0 -115
- package/components/localize-DbobqcKs.cjs +0 -20
- package/generated/locales/de.d.ts +0 -82
- package/generated/locales/es.d.ts +0 -82
- package/generated/locales/fr.d.ts +0 -82
- package/generated/locales/nl.d.ts +0 -82
@@ -18,36 +18,36 @@
|
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
20
|
import { h as B } from "../task-Cr9aRIbV.js";
|
21
|
-
import { x as
|
22
|
-
import { o as
|
23
|
-
const
|
21
|
+
import { x as v, k as F, a as G, n as w } from "../property-B2F7x7Cz.js";
|
22
|
+
import { o as N } from "../if-defined-Bv6MRdSW.js";
|
23
|
+
const P = () => {
|
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
|
+
P();
|
30
|
+
const R = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-font-family));font-size:var(--luzmo-edit-option-font-size, var(--luzmo-font-size))}:host([size=s]){font-size:var(--luzmo-edit-option-font-size-s, var(--luzmo-font-size-s))}:host([size=l]){font-size:var(--luzmo-edit-option-font-size-l, var(--luzmo-font-size-l))}:host([size=xl]){font-size:var(--luzmo-edit-option-font-size-xl, var(--luzmo-font-size-xl))}", C = (o) => {
|
31
|
+
var i, c, f, a, $, h, d, s, u, m, r, p, z, x, b;
|
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 = ((h = ($ = (a = (f = o.translations) == null ? void 0 : f.options) == null ? void 0 : a[o.optionKey]) == null ? void 0 : $.extraLabel) == null ? void 0 : h[t]) ?? t);
|
38
38
|
let l;
|
39
|
-
typeof ((
|
39
|
+
typeof ((d = o.controlInfo) == null ? void 0 : d.extraLabelTooltip) == "function" ? t = o.controlInfo.extraLabelTooltip(
|
40
40
|
o.options,
|
41
41
|
o.slots,
|
42
42
|
o.theme
|
43
|
-
) : typeof ((
|
43
|
+
) : typeof ((s = o.controlInfo) == null ? void 0 : s.extraLabelTooltip) == "string" && (l = o.controlInfo.extraLabelTooltip), typeof l == "string" && (t = ((p = (r = (m = (u = o.translations) == null ? void 0 : u.options) == null ? void 0 : m[o.optionKey]) == null ? void 0 : r.extraLabelTooltip) == null ? void 0 : p[l]) ?? l);
|
44
44
|
let n;
|
45
|
-
typeof ((
|
45
|
+
typeof ((z = o.controlInfo) == null ? void 0 : z.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 ((x = o.controlInfo) == null ? void 0 : x.extraLabelHasClickAction) == "boolean" && (n = o.controlInfo.extraLabelHasClickAction);
|
50
|
+
const e = typeof ((b = o.controlInfo) == null ? void 0 : b.extraLabelClickAction) == "function" ? () => o.controlInfo.extraLabelClickAction(
|
51
51
|
o.options,
|
52
52
|
o.slots,
|
53
53
|
o.theme
|
@@ -59,7 +59,7 @@ const N = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-fo
|
|
59
59
|
extraLabelHasClickAction: n,
|
60
60
|
extraLabelClickAction: e
|
61
61
|
};
|
62
|
-
},
|
62
|
+
}, O = (o, t) => {
|
63
63
|
if (t.includes(".")) {
|
64
64
|
const l = t.split(".");
|
65
65
|
let n = o;
|
@@ -69,7 +69,7 @@ const N = ":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
|
+
}, K = (o) => (t) => {
|
73
73
|
const l = { ...o.options };
|
74
74
|
if (o.optionKey.includes(".")) {
|
75
75
|
const n = o.optionKey.split(".");
|
@@ -81,98 +81,108 @@ const N = ":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
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
84
|
+
}, U = (o) => {
|
85
|
+
var h, d, s, u, m, r, p, z, x;
|
86
|
+
const t = ((s = (d = (h = o.translations) == null ? void 0 : h.options) == null ? void 0 : d[o.optionKey]) == null ? void 0 : s.label) ?? ((u = o.controlInfo) == null ? void 0 : u.label) ?? o.optionKey ?? "", l = o.size, n = {};
|
87
|
+
Object.keys((m = o.controlInfo) == null ? void 0 : m.values).forEach((b) => {
|
88
|
+
var L, y, k, I, A, T;
|
89
|
+
n[b] = {
|
90
|
+
...(L = o.controlInfo) == null ? void 0 : L.values[b],
|
91
|
+
label: ((A = (I = (k = (y = o.translations) == null ? void 0 : y.options) == null ? void 0 : k[o.optionKey]) == null ? void 0 : I.enum) == null ? void 0 : A[b]) ?? ((T = o.controlInfo) == null ? void 0 : T.values[b].label)
|
92
|
+
};
|
93
|
+
});
|
94
|
+
const e = O(o.options, o.optionKey), {
|
95
|
+
extraLabel: i,
|
96
|
+
extraLabelTooltip: c,
|
97
|
+
extraLabelHasClickAction: f,
|
98
|
+
extraLabelClickAction: a
|
99
|
+
} = C(o), $ = K(o);
|
100
|
+
return v`
|
93
101
|
<luzmo-edit-option-action-button-group
|
94
102
|
.label=${t}
|
95
|
-
.value=${
|
96
|
-
.values=${
|
97
|
-
.default=${(
|
98
|
-
.selects=${(
|
103
|
+
.value=${e}
|
104
|
+
.values=${n}
|
105
|
+
.default=${(r = o.controlInfo) == null ? void 0 : r.default}
|
106
|
+
.selects=${(p = o.controlInfo) == null ? void 0 : p.selects}
|
99
107
|
.size=${l}
|
100
|
-
.extraLabel=${
|
101
|
-
.extraLabelTooltip=${
|
102
|
-
.extraLabelHasClickAction=${
|
103
|
-
@extraLabelClick=${
|
104
|
-
@option-changed=${
|
105
|
-
.fromOptionValue=${(
|
106
|
-
.toOptionValue=${(
|
108
|
+
.extraLabel=${i}
|
109
|
+
.extraLabelTooltip=${c}
|
110
|
+
.extraLabelHasClickAction=${f}
|
111
|
+
@extraLabelClick=${a}
|
112
|
+
@option-changed=${$}
|
113
|
+
.fromOptionValue=${(z = o.controlInfo) == null ? void 0 : z.fromOptionValue}
|
114
|
+
.toOptionValue=${(x = o.controlInfo) == null ? void 0 : x.toOptionValue}
|
107
115
|
></luzmo-edit-option-action-button-group>
|
108
116
|
`;
|
109
|
-
},
|
110
|
-
var
|
111
|
-
const t = ((
|
117
|
+
}, q = (o) => {
|
118
|
+
var d, s, u, m, r, p, z, x;
|
119
|
+
const t = ((u = (s = (d = o.translations) == null ? void 0 : d.options) == null ? void 0 : s[o.optionKey]) == null ? void 0 : u.label) ?? ((m = o.controlInfo) == null ? void 0 : m.label) ?? o.optionKey ?? "", l = O(o.options, o.optionKey), n = o.size;
|
112
120
|
let e;
|
113
|
-
typeof ((
|
121
|
+
typeof ((r = o.controlInfo) == null ? void 0 : r.default) == "function" ? e = o.controlInfo.default(
|
114
122
|
o.options,
|
115
123
|
o.slots,
|
116
124
|
o.theme
|
117
|
-
) : typeof ((
|
125
|
+
) : typeof ((p = o.controlInfo) == null ? void 0 : p.default) == "string" && (e = o.controlInfo.default);
|
118
126
|
const {
|
119
127
|
extraLabel: i,
|
120
128
|
extraLabelTooltip: c,
|
121
|
-
extraLabelHasClickAction:
|
129
|
+
extraLabelHasClickAction: f,
|
122
130
|
extraLabelClickAction: a
|
123
|
-
} = C(o),
|
124
|
-
return
|
131
|
+
} = C(o), $ = K(o);
|
132
|
+
return v`
|
125
133
|
<luzmo-edit-option-color-picker
|
126
134
|
.value=${l ?? e}
|
127
135
|
.label=${t}
|
128
136
|
.size=${n}
|
129
137
|
.extraLabel=${i}
|
130
138
|
.extraLabelTooltip=${c}
|
131
|
-
.extraLabelHasClickAction=${
|
139
|
+
.extraLabelHasClickAction=${f}
|
132
140
|
@extraLabelClick=${() => {
|
133
141
|
if (typeof a == "function") {
|
134
|
-
const { options:
|
135
|
-
return o.changeCallback(
|
142
|
+
const { options: b } = a();
|
143
|
+
return o.changeCallback(b);
|
136
144
|
}
|
137
145
|
}}
|
138
|
-
@option-changed=${
|
146
|
+
@option-changed=${$}
|
139
147
|
.fromOptionValue=${(z = o.controlInfo) == null ? void 0 : z.fromOptionValue}
|
140
148
|
.toOptionValue=${(x = o.controlInfo) == null ? void 0 : x.toOptionValue}
|
141
149
|
></luzmo-edit-option-color-picker>
|
142
150
|
`;
|
143
|
-
},
|
144
|
-
var m, p,
|
145
|
-
const t = ((
|
151
|
+
}, D = (o) => {
|
152
|
+
var d, s, u, m, r, p, z, x, b, L;
|
153
|
+
const t = ((u = (s = (d = o.translations) == null ? void 0 : d.options) == null ? void 0 : s[o.optionKey]) == null ? void 0 : u.label) ?? ((m = o.controlInfo) == null ? void 0 : m.label) ?? o.optionKey ?? "", l = O(o.options, o.optionKey) ?? {}, n = o.language ?? "en", e = {};
|
154
|
+
e[n] = ((z = (p = (r = o.translations) == null ? void 0 : r.options) == null ? void 0 : p[o.optionKey]) == null ? void 0 : z.placeholder) ?? ((x = o.controlInfo) == null ? void 0 : x.placeholder) ?? "";
|
155
|
+
const i = o.size, {
|
146
156
|
extraLabel: c,
|
147
|
-
extraLabelTooltip:
|
157
|
+
extraLabelTooltip: f,
|
148
158
|
extraLabelHasClickAction: a,
|
149
|
-
extraLabelClickAction:
|
150
|
-
} = C(o),
|
151
|
-
return
|
159
|
+
extraLabelClickAction: $
|
160
|
+
} = C(o), h = K(o);
|
161
|
+
return v`
|
152
162
|
<luzmo-edit-option-multi-language-field
|
153
163
|
.label=${t}
|
154
|
-
.placeholder=${
|
155
|
-
.value=${
|
156
|
-
language=${
|
164
|
+
.placeholder=${e}
|
165
|
+
.value=${l}
|
166
|
+
language=${N(n)}
|
157
167
|
.size=${i}
|
158
168
|
.extraLabel=${c}
|
159
|
-
.extraLabelTooltip=${
|
169
|
+
.extraLabelTooltip=${f}
|
160
170
|
.extraLabelHasClickAction=${a}
|
161
|
-
@extraLabelClick=${
|
162
|
-
@option-changed=${
|
163
|
-
.fromOptionValue=${(
|
164
|
-
.toOptionValue=${(
|
171
|
+
@extraLabelClick=${$}
|
172
|
+
@option-changed=${h}
|
173
|
+
.fromOptionValue=${(b = o.controlInfo) == null ? void 0 : b.fromOptionValue}
|
174
|
+
.toOptionValue=${(L = o.controlInfo) == null ? void 0 : L.toOptionValue}
|
165
175
|
></luzmo-edit-option-multi-language-field>
|
166
176
|
`;
|
167
|
-
},
|
168
|
-
var
|
169
|
-
const t = ((r = (
|
177
|
+
}, J = (o) => {
|
178
|
+
var u, m, r, p, z, x, b, L, y, k;
|
179
|
+
const t = ((r = (m = (u = o.translations) == null ? void 0 : u.options) == null ? void 0 : m[o.optionKey]) == null ? void 0 : r.label) ?? ((p = o.controlInfo) == null ? void 0 : p.label) ?? o.optionKey ?? "", l = (z = o.controlInfo) == null ? void 0 : z.min, n = (x = o.controlInfo) == null ? void 0 : x.max, e = (b = o.controlInfo) == null ? void 0 : b.step, i = O(o.options, o.optionKey), c = (L = o.controlInfo) == null ? void 0 : L.default, f = o.size, {
|
170
180
|
extraLabel: a,
|
171
|
-
extraLabelTooltip:
|
172
|
-
extraLabelHasClickAction:
|
173
|
-
extraLabelClickAction:
|
174
|
-
} = C(o),
|
175
|
-
return
|
181
|
+
extraLabelTooltip: $,
|
182
|
+
extraLabelHasClickAction: h,
|
183
|
+
extraLabelClickAction: d
|
184
|
+
} = C(o), s = K(o);
|
185
|
+
return v`
|
176
186
|
<luzmo-edit-option-number-field
|
177
187
|
.value=${i}
|
178
188
|
.default=${c}
|
@@ -180,31 +190,31 @@ const N = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-fo
|
|
180
190
|
.max=${n}
|
181
191
|
.step=${e}
|
182
192
|
.label=${t}
|
183
|
-
.size=${
|
193
|
+
.size=${f}
|
184
194
|
.extraLabel=${a}
|
185
|
-
.extraLabelTooltip=${
|
186
|
-
.extraLabelHasClickAction=${
|
187
|
-
@extraLabelClick=${
|
188
|
-
@option-changed=${
|
189
|
-
.fromOptionValue=${(
|
195
|
+
.extraLabelTooltip=${$}
|
196
|
+
.extraLabelHasClickAction=${h}
|
197
|
+
@extraLabelClick=${d}
|
198
|
+
@option-changed=${s}
|
199
|
+
.fromOptionValue=${(y = o.controlInfo) == null ? void 0 : y.fromOptionValue}
|
190
200
|
.toOptionValue=${(k = o.controlInfo) == null ? void 0 : k.toOptionValue}
|
191
201
|
></luzmo-edit-option-number-field>
|
192
202
|
`;
|
193
|
-
},
|
194
|
-
var
|
195
|
-
const t = ((
|
196
|
-
(
|
197
|
-
var
|
198
|
-
return
|
203
|
+
}, Q = (o) => {
|
204
|
+
var s, u, m, r, p, z, x, b, L, y, k;
|
205
|
+
const t = ((m = (u = (s = o.translations) == null ? void 0 : s.options) == null ? void 0 : u[o.optionKey]) == null ? void 0 : m.label) ?? ((r = o.controlInfo) == null ? void 0 : r.label) ?? o.optionKey ?? "", l = O(o.options, o.optionKey), n = (p = o.controlInfo) == null ? void 0 : p.default, e = (b = (x = (z = o.translations) == null ? void 0 : z.options) == null ? void 0 : x[o.optionKey]) == null ? void 0 : b.tooltip, i = (L = o.controlInfo) == null ? void 0 : L.enum.reduce(
|
206
|
+
(I, A) => {
|
207
|
+
var T, j, M;
|
208
|
+
return I[A] = ((M = (j = (T = o.translations) == null ? void 0 : T.options) == null ? void 0 : j[o.optionKey]) == null ? void 0 : M.enum[A]) ?? A, I;
|
199
209
|
},
|
200
210
|
{}
|
201
211
|
), c = o.size, {
|
202
|
-
extraLabel:
|
212
|
+
extraLabel: f,
|
203
213
|
extraLabelTooltip: a,
|
204
|
-
extraLabelHasClickAction:
|
205
|
-
extraLabelClickAction:
|
206
|
-
} = C(o),
|
207
|
-
return
|
214
|
+
extraLabelHasClickAction: $,
|
215
|
+
extraLabelClickAction: h
|
216
|
+
} = C(o), d = K(o);
|
217
|
+
return v`
|
208
218
|
<luzmo-edit-option-picker
|
209
219
|
.value=${l}
|
210
220
|
.default=${n}
|
@@ -212,84 +222,109 @@ const N = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-fo
|
|
212
222
|
.label=${t}
|
213
223
|
.tooltip=${e}
|
214
224
|
.size=${c}
|
215
|
-
.extraLabel=${
|
225
|
+
.extraLabel=${f}
|
216
226
|
.extraLabelTooltip=${a}
|
217
|
-
.extraLabelHasClickAction=${
|
218
|
-
@extraLabelClick=${
|
219
|
-
@option-changed=${
|
220
|
-
.fromOptionValue=${(
|
227
|
+
.extraLabelHasClickAction=${$}
|
228
|
+
@extraLabelClick=${h}
|
229
|
+
@option-changed=${d}
|
230
|
+
.fromOptionValue=${(y = o.controlInfo) == null ? void 0 : y.fromOptionValue}
|
221
231
|
.toOptionValue=${(k = o.controlInfo) == null ? void 0 : k.toOptionValue}
|
222
232
|
></luzmo-edit-option-picker>
|
223
233
|
`;
|
224
|
-
},
|
225
|
-
var
|
226
|
-
const t = ((m = (
|
234
|
+
}, W = (o) => {
|
235
|
+
var s, u, m, r, p, z, x, b, L;
|
236
|
+
const t = ((m = (u = (s = o.translations) == null ? void 0 : s.options) == null ? void 0 : u[o.optionKey]) == null ? void 0 : m.label) ?? ((r = o.controlInfo) == null ? void 0 : r.label), l = (p = o.controlInfo) == null ? void 0 : p.positions, n = ((z = o.controlInfo) == null ? void 0 : z.defaultPosition) ?? "top-right", e = o.size, i = O(o.options, o.optionKey), c = (x = o.controlInfo) == null ? void 0 : x.tooltip, {
|
237
|
+
extraLabel: f,
|
238
|
+
extraLabelTooltip: a,
|
239
|
+
extraLabelHasClickAction: $,
|
240
|
+
extraLabelClickAction: h
|
241
|
+
} = C(o), d = K(o);
|
242
|
+
return v`
|
243
|
+
<luzmo-edit-option-position-picker
|
244
|
+
.value=${(b = o.controlInfo) == null ? void 0 : b.value}
|
245
|
+
.positions=${l}
|
246
|
+
.defaultPosition=${n}
|
247
|
+
.label=${t}
|
248
|
+
.tooltip=${c}
|
249
|
+
.size=${e}
|
250
|
+
.value=${i}
|
251
|
+
.extraLabel=${f}
|
252
|
+
.extraLabelTooltip=${a}
|
253
|
+
.extraLabelHasClickAction=${$}
|
254
|
+
@extraLabelClick=${h}
|
255
|
+
@option-changed=${d}
|
256
|
+
.readonly=${(L = o.controlInfo) == null ? void 0 : L.readonly}
|
257
|
+
></luzmo-edit-option-position-picker>
|
258
|
+
`;
|
259
|
+
}, X = (o) => {
|
260
|
+
var $, h, d, s, u, m, r, p;
|
261
|
+
const t = ((d = (h = ($ = o.translations) == null ? void 0 : $.options) == null ? void 0 : h[o.optionKey]) == null ? void 0 : d.label) ?? ((s = o.controlInfo) == null ? void 0 : s.label), l = O(o.options, o.optionKey), n = o.size, {
|
227
262
|
extraLabel: e,
|
228
263
|
extraLabelTooltip: i,
|
229
264
|
extraLabelHasClickAction: c,
|
230
|
-
extraLabelClickAction:
|
231
|
-
} = C(o), a =
|
232
|
-
return
|
265
|
+
extraLabelClickAction: f
|
266
|
+
} = C(o), a = K(o);
|
267
|
+
return v`
|
233
268
|
<luzmo-edit-option-positions-number-field
|
234
269
|
.values=${l}
|
235
|
-
.positions=${(
|
236
|
-
.positionConfiguration=${(
|
270
|
+
.positions=${(u = o.controlInfo) == null ? void 0 : u.positions}
|
271
|
+
.positionConfiguration=${(m = o.controlInfo) == null ? void 0 : m.positionConfiguration}
|
237
272
|
.label=${t}
|
238
273
|
.size=${n}
|
239
274
|
.extraLabel=${e}
|
240
275
|
.extraLabelTooltip=${i}
|
241
276
|
.extraLabelHasClickAction=${c}
|
242
|
-
@extraLabelClick=${
|
277
|
+
@extraLabelClick=${f}
|
243
278
|
@option-changed=${a}
|
244
|
-
.fromOptionValue=${(
|
245
|
-
.toOptionValue=${(
|
279
|
+
.fromOptionValue=${(r = o.controlInfo) == null ? void 0 : r.fromOptionValue}
|
280
|
+
.toOptionValue=${(p = o.controlInfo) == null ? void 0 : p.toOptionValue}
|
246
281
|
></luzmo-edit-option-positions-number-field>
|
247
282
|
`;
|
248
|
-
},
|
249
|
-
var
|
250
|
-
const t = ((
|
251
|
-
(
|
252
|
-
var
|
253
|
-
return
|
283
|
+
}, Y = (o) => {
|
284
|
+
var d, s, u, m, r, p, z, x;
|
285
|
+
const t = ((u = (s = (d = o.translations) == null ? void 0 : d.options) == null ? void 0 : s[o.optionKey]) == null ? void 0 : u.label) ?? ((m = o.controlInfo) == null ? void 0 : m.label) ?? o.optionKey ?? "", l = O(o.options, o.optionKey), n = (r = o == null ? void 0 : o.controlInfo) == null ? void 0 : r.default, e = (p = o.controlInfo) == null ? void 0 : p.enum.reduce(
|
286
|
+
(b, L) => {
|
287
|
+
var y, k, I;
|
288
|
+
return b[L] = ((I = (k = (y = o.translations) == null ? void 0 : y.options) == null ? void 0 : k[o.optionKey]) == null ? void 0 : I.enum[L]) ?? L, b;
|
254
289
|
},
|
255
290
|
{}
|
256
291
|
), i = o.size, {
|
257
292
|
extraLabel: c,
|
258
|
-
extraLabelTooltip:
|
293
|
+
extraLabelTooltip: f,
|
259
294
|
extraLabelHasClickAction: a,
|
260
|
-
extraLabelClickAction:
|
261
|
-
} = C(o),
|
262
|
-
return
|
295
|
+
extraLabelClickAction: $
|
296
|
+
} = C(o), h = K(o);
|
297
|
+
return v`
|
263
298
|
<luzmo-edit-option-radio-button-group
|
264
299
|
.value=${l ?? n}
|
265
300
|
.values=${e}
|
266
301
|
.label=${t}
|
267
302
|
.size=${i}
|
268
303
|
.extraLabel=${c}
|
269
|
-
.extraLabelTooltip=${
|
304
|
+
.extraLabelTooltip=${f}
|
270
305
|
.extraLabelHasClickAction=${a}
|
271
|
-
@extraLabelClick=${
|
272
|
-
@option-changed=${
|
306
|
+
@extraLabelClick=${$}
|
307
|
+
@option-changed=${h}
|
273
308
|
.fromOptionValue=${(z = o.controlInfo) == null ? void 0 : z.fromOptionValue}
|
274
309
|
.toOptionValue=${(x = o.controlInfo) == null ? void 0 : x.toOptionValue}
|
275
310
|
></luzmo-edit-option-radio-button-group>
|
276
311
|
`;
|
277
|
-
},
|
278
|
-
var r, z, x,
|
279
|
-
const t = ((
|
312
|
+
}, Z = (o) => {
|
313
|
+
var r, p, z, x, b, L, y, k, I, A, T, j, M, E;
|
314
|
+
const t = ((z = (p = (r = o.translations) == null ? void 0 : r.options) == null ? void 0 : p[o.optionKey]) == null ? void 0 : z.label) ?? ((x = o.controlInfo) == null ? void 0 : x.label) ?? o.optionKey ?? "", l = (y = (L = (b = o.translations) == null ? void 0 : b.options) == null ? void 0 : L[o.optionKey]) == null ? void 0 : y.tooltip, n = (k = o.controlInfo) == null ? void 0 : k.min, e = (I = o.controlInfo) == null ? void 0 : I.max, i = (A = o.controlInfo) == null ? void 0 : A.step, c = O(o.options, o.optionKey), f = o.size;
|
280
315
|
let a;
|
281
|
-
typeof ((
|
316
|
+
typeof ((T = o.controlInfo) == null ? void 0 : T.default) == "function" ? a = o.controlInfo.default(
|
282
317
|
o.options,
|
283
318
|
o.slots,
|
284
319
|
o.theme
|
285
|
-
) : typeof ((
|
320
|
+
) : typeof ((j = o.controlInfo) == null ? void 0 : j.default) == "number" && (a = o.controlInfo.default);
|
286
321
|
const {
|
287
|
-
extraLabel:
|
288
|
-
extraLabelTooltip:
|
289
|
-
extraLabelHasClickAction:
|
290
|
-
extraLabelClickAction:
|
291
|
-
} = C(o),
|
292
|
-
return
|
322
|
+
extraLabel: $,
|
323
|
+
extraLabelTooltip: h,
|
324
|
+
extraLabelHasClickAction: d,
|
325
|
+
extraLabelClickAction: s
|
326
|
+
} = C(o), u = K(o);
|
327
|
+
return v`
|
293
328
|
<luzmo-edit-option-slider
|
294
329
|
.value=${c}
|
295
330
|
.default=${a}
|
@@ -298,90 +333,94 @@ const N = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-fo
|
|
298
333
|
.step=${i}
|
299
334
|
.label=${t}
|
300
335
|
.tooltip=${l}
|
301
|
-
.size=${
|
302
|
-
.extraLabel=${
|
303
|
-
.extraLabelTooltip=${
|
304
|
-
.extraLabelHasClickAction=${
|
336
|
+
.size=${f}
|
337
|
+
.extraLabel=${$}
|
338
|
+
.extraLabelTooltip=${h}
|
339
|
+
.extraLabelHasClickAction=${d}
|
305
340
|
@extraLabelClick=${() => {
|
306
|
-
if (typeof
|
307
|
-
const { options: S } =
|
341
|
+
if (typeof s == "function") {
|
342
|
+
const { options: S } = s();
|
308
343
|
return o.changeCallback(S);
|
309
344
|
}
|
310
345
|
}}
|
311
|
-
@option-changed=${
|
312
|
-
.fromOptionValue=${(
|
313
|
-
.toOptionValue=${(
|
346
|
+
@option-changed=${u}
|
347
|
+
.fromOptionValue=${(M = o.controlInfo) == null ? void 0 : M.fromOptionValue}
|
348
|
+
.toOptionValue=${(E = o.controlInfo) == null ? void 0 : E.toOptionValue}
|
314
349
|
></luzmo-edit-option-slider>
|
315
350
|
`;
|
316
|
-
},
|
317
|
-
var d,
|
318
|
-
const t = ((
|
351
|
+
}, g = (o) => {
|
352
|
+
var h, d, s, u, m, r, p;
|
353
|
+
const t = ((s = (d = (h = o.translations) == null ? void 0 : h.options) == null ? void 0 : d[o.optionKey]) == null ? void 0 : s.label) ?? ((u = o.controlInfo) == null ? void 0 : u.label) ?? o.optionKey ?? "", l = O(o.options, o.optionKey), n = (m = o.controlInfo) == null ? void 0 : m.default, e = o.size, {
|
319
354
|
extraLabel: i,
|
320
355
|
extraLabelTooltip: c,
|
321
|
-
extraLabelHasClickAction:
|
356
|
+
extraLabelHasClickAction: f,
|
322
357
|
extraLabelClickAction: a
|
323
|
-
} = C(o),
|
324
|
-
return
|
358
|
+
} = C(o), $ = K(o);
|
359
|
+
return v`
|
325
360
|
<luzmo-edit-option-switch
|
326
361
|
.value=${l ?? n ?? !1}
|
327
362
|
.label=${t}
|
328
363
|
.size=${e}
|
329
364
|
.extraLabel=${i}
|
330
365
|
.extraLabelTooltip=${c}
|
331
|
-
.extraLabelHasClickAction=${
|
366
|
+
.extraLabelHasClickAction=${f}
|
332
367
|
@extraLabelClick=${a}
|
333
|
-
@option-changed=${
|
334
|
-
.fromOptionValue=${(
|
335
|
-
.toOptionValue=${(
|
368
|
+
@option-changed=${$}
|
369
|
+
.fromOptionValue=${(r = o.controlInfo) == null ? void 0 : r.fromOptionValue}
|
370
|
+
.toOptionValue=${(p = o.controlInfo) == null ? void 0 : p.toOptionValue}
|
336
371
|
></luzmo-edit-option-switch>
|
337
372
|
`;
|
338
|
-
},
|
339
|
-
var d, m, p,
|
340
|
-
const t = ((
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
373
|
+
}, oo = (o) => {
|
374
|
+
var d, s, u, m, r, p, z, x, b, L;
|
375
|
+
const t = ((u = (s = (d = o.translations) == null ? void 0 : d.options) == null ? void 0 : s[o.optionKey]) == null ? void 0 : u.label) ?? ((m = o.controlInfo) == null ? void 0 : m.label) ?? o.optionKey ?? "", l = o.language ?? "en", n = {};
|
376
|
+
n[l] = ((z = (p = (r = o.translations) == null ? void 0 : r.options) == null ? void 0 : p[o.optionKey]) == null ? void 0 : z.placeholder) ?? ((x = o.controlInfo) == null ? void 0 : x.placeholder) ?? "";
|
377
|
+
const e = O(o.options, o.optionKey) ?? "", i = o.size, {
|
378
|
+
extraLabel: c,
|
379
|
+
extraLabelTooltip: f,
|
380
|
+
extraLabelHasClickAction: a,
|
381
|
+
extraLabelClickAction: $
|
382
|
+
} = C(o), h = K(o);
|
383
|
+
return v`
|
347
384
|
<luzmo-edit-option-text-field
|
348
385
|
.label=${t}
|
349
|
-
.placeholder=${l}
|
350
|
-
.value=${
|
351
|
-
.size=${
|
352
|
-
.extraLabel=${
|
353
|
-
.extraLabelTooltip=${
|
354
|
-
.extraLabelHasClickAction=${
|
355
|
-
@extraLabelClick=${
|
356
|
-
@option-changed=${
|
357
|
-
.fromOptionValue=${(
|
358
|
-
.toOptionValue=${(
|
386
|
+
.placeholder=${n[l]}
|
387
|
+
.value=${e}
|
388
|
+
.size=${i}
|
389
|
+
.extraLabel=${c}
|
390
|
+
.extraLabelTooltip=${f}
|
391
|
+
.extraLabelHasClickAction=${a}
|
392
|
+
@extraLabelClick=${$}
|
393
|
+
@option-changed=${h}
|
394
|
+
.fromOptionValue=${(b = o.controlInfo) == null ? void 0 : b.fromOptionValue}
|
395
|
+
.toOptionValue=${(L = o.controlInfo) == null ? void 0 : L.toOptionValue}
|
359
396
|
></luzmo-edit-option-text-field>
|
360
397
|
`;
|
361
|
-
},
|
398
|
+
}, to = (o) => {
|
362
399
|
switch (o.controlType) {
|
363
400
|
case "picker":
|
364
|
-
return
|
401
|
+
return Q(o);
|
365
402
|
case "slider":
|
366
|
-
return
|
403
|
+
return Z(o);
|
367
404
|
case "switch":
|
368
|
-
return
|
405
|
+
return g(o);
|
369
406
|
case "multi-language-field":
|
370
|
-
return
|
407
|
+
return D(o);
|
371
408
|
case "text-field":
|
372
|
-
return
|
409
|
+
return oo(o);
|
373
410
|
case "number-field":
|
374
|
-
return
|
411
|
+
return J(o);
|
412
|
+
case "position-picker":
|
413
|
+
return W(o);
|
375
414
|
case "positions-number-field":
|
376
|
-
return
|
415
|
+
return X(o);
|
377
416
|
case "radio-button-group":
|
378
|
-
return
|
417
|
+
return Y(o);
|
379
418
|
case "color-picker":
|
380
|
-
return
|
419
|
+
return q(o);
|
381
420
|
case "action-button-group":
|
382
|
-
return
|
421
|
+
return U(o);
|
383
422
|
}
|
384
|
-
},
|
423
|
+
}, eo = (o, t) => {
|
385
424
|
const l = (n) => {
|
386
425
|
for (const e of n) {
|
387
426
|
if (e.key === o)
|
@@ -401,42 +440,44 @@ const N = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-fo
|
|
401
440
|
}
|
402
441
|
return null;
|
403
442
|
};
|
404
|
-
var
|
443
|
+
var no = Object.defineProperty, H = (o, t, l, n) => {
|
405
444
|
for (var e = void 0, i = o.length - 1, c; i >= 0; i--)
|
406
445
|
(c = o[i]) && (e = c(t, l, e) || e);
|
407
|
-
return e &&
|
446
|
+
return e && no(t, l, e), e;
|
408
447
|
};
|
409
|
-
const
|
448
|
+
const _ = class _ extends F {
|
410
449
|
constructor() {
|
411
450
|
super(...arguments), this._loadItemConfig = new B(this, {
|
412
451
|
task: async ([t, l, n]) => {
|
413
452
|
let e = !1;
|
414
453
|
if (t !== this._itemTypeLoaded) {
|
415
|
-
const
|
416
|
-
"./item-configs/bar-chart.config.ts": () => import("../bar-chart.config-
|
417
|
-
"./item-configs/column-chart.config.ts": () => import("../column-chart.config-
|
454
|
+
const f = /* @__PURE__ */ Object.assign({
|
455
|
+
"./item-configs/bar-chart.config.ts": () => import("../bar-chart.config-BYIX4E6J.js"),
|
456
|
+
"./item-configs/column-chart.config.ts": () => import("../column-chart.config-BYIX4E6J.js"),
|
418
457
|
"./item-configs/donut-chart.config.ts": () => import("../donut-chart.config-3DhKiSSM.js"),
|
419
|
-
"./item-configs/imageobject.config.ts": () => import("../imageobject.config-
|
420
|
-
"./item-configs/line-chart.config.ts": () => import("../line-chart.config-
|
421
|
-
"./item-configs/
|
458
|
+
"./item-configs/imageobject.config.ts": () => import("../imageobject.config-CBfeq5Zw.js"),
|
459
|
+
"./item-configs/line-chart.config.ts": () => import("../line-chart.config-DBw4A3Rf.js"),
|
460
|
+
"./item-configs/spacer.config.ts": () => import("../spacer.config-Br2Dm5Uv.js"),
|
461
|
+
"./item-configs/textobject.config.ts": () => import("../textobject.config-DTDqt0ci.js"),
|
462
|
+
"./item-configs/videoobject.config.ts": () => import("../videoobject.config-CbtNZAEK.js")
|
422
463
|
});
|
423
|
-
if (
|
424
|
-
const a = await
|
464
|
+
if (f[`./item-configs/${t}.config.ts`]) {
|
465
|
+
const a = await f[`./item-configs/${t}.config.ts`]();
|
425
466
|
this._optionsConfig = (a == null ? void 0 : a.default) ?? {};
|
426
467
|
}
|
427
468
|
e = !0;
|
428
469
|
}
|
429
470
|
if (n !== this._languageLoaded || e) {
|
430
|
-
const
|
431
|
-
if (
|
432
|
-
const a = await
|
471
|
+
const f = /* @__PURE__ */ Object.assign({ "./item-translations/bar-chart.en.ts": () => import("../bar-chart.en-Crc8tYUJ.js"), "./item-translations/bar-chart.fr.ts": () => import("../bar-chart.fr-BwiGRlQf.js"), "./item-translations/bar-chart.nl.ts": () => import("../bar-chart.nl-C9EOP2kE.js"), "./item-translations/column-chart.en.ts": () => import("../column-chart.en-Crc8tYUJ.js"), "./item-translations/column-chart.fr.ts": () => import("../column-chart.fr-BwiGRlQf.js"), "./item-translations/column-chart.nl.ts": () => import("../column-chart.nl-C9EOP2kE.js"), "./item-translations/donut-chart.en.ts": () => import("../donut-chart.en-CrUf4CJ9.js"), "./item-translations/donut-chart.fr.ts": () => import("../donut-chart.fr-DVfZwZny.js"), "./item-translations/donut-chart.nl.ts": () => import("../donut-chart.nl-B13jr7SK.js"), "./item-translations/imageobject.en.ts": () => import("../imageobject.en-BMmV-4O-.js"), "./item-translations/imageobject.fr.ts": () => import("../imageobject.fr-DRE3zImB.js"), "./item-translations/imageobject.nl.ts": () => import("../imageobject.nl-D20hki6i.js"), "./item-translations/textobject.en.ts": () => import("../textobject.en-BQqHFc7M.js"), "./item-translations/textobject.fr.ts": () => import("../textobject.fr-VPJ3bDOM.js"), "./item-translations/textobject.nl.ts": () => import("../textobject.nl-V03mmGmH.js") });
|
472
|
+
if (f[`./item-translations/${t}.${n}.ts`]) {
|
473
|
+
const a = await f[`./item-translations/${t}.${n}.ts`]();
|
433
474
|
this._translations = (a == null ? void 0 : a.default) ?? {};
|
434
475
|
}
|
435
476
|
}
|
436
|
-
const i =
|
477
|
+
const i = eo(l, this._optionsConfig), c = i == null ? void 0 : i.type;
|
437
478
|
if (c !== this._controlTypeLoaded) {
|
438
|
-
const
|
439
|
-
|
479
|
+
const f = /* @__PURE__ */ Object.assign({ "../edit-option-action-button-group/index.ts": () => import("../edit-option-action-button-group/index.js"), "../edit-option-color-picker/index.ts": () => import("../edit-option-color-picker/index.js"), "../edit-option-multi-language-field/index.ts": () => import("../edit-option-multi-language-field/index.js"), "../edit-option-number-field/index.ts": () => import("../edit-option-number-field/index.js"), "../edit-option-picker/index.ts": () => import("../edit-option-picker/index.js"), "../edit-option-position-picker/index.ts": () => import("../edit-option-position-picker/index.js"), "../edit-option-positions-number-field/index.ts": () => import("../edit-option-positions-number-field/index.js"), "../edit-option-radio-button-group/index.ts": () => import("../edit-option-radio-button-group/index.js"), "../edit-option-slider/index.ts": () => import("../edit-option-slider/index.js"), "../edit-option-switch/index.ts": () => import("../edit-option-switch/index.js"), "../edit-option-text-field/index.ts": () => import("../edit-option-text-field/index.js") });
|
480
|
+
f[`../edit-option-${c}/index.ts`] && await f[`../edit-option-${c}/index.ts`](), this._controlTypeLoaded = c;
|
440
481
|
}
|
441
482
|
return i;
|
442
483
|
},
|
@@ -456,8 +497,8 @@ const M = class M extends F {
|
|
456
497
|
}
|
457
498
|
render() {
|
458
499
|
return this._loadItemConfig.render({
|
459
|
-
pending: () =>
|
460
|
-
complete: (t) =>
|
500
|
+
pending: () => v`<p>Loading...</p>`,
|
501
|
+
complete: (t) => to({
|
461
502
|
controlType: t == null ? void 0 : t.type,
|
462
503
|
optionKey: this.optionKey,
|
463
504
|
controlInfo: t,
|
@@ -469,39 +510,34 @@ const M = class M extends F {
|
|
469
510
|
size: this.size,
|
470
511
|
changeCallback: this.changedOptions
|
471
512
|
}),
|
472
|
-
error: (t) =>
|
473
|
-
<div>
|
474
|
-
Could not load control for option: '${this.optionKey}' of chart
|
475
|
-
'${this.itemType}': ${t}.
|
476
|
-
</div>
|
477
|
-
`
|
513
|
+
error: (t) => (console.error(t), v``)
|
478
514
|
});
|
479
515
|
}
|
480
516
|
};
|
481
|
-
|
482
|
-
let
|
483
|
-
|
484
|
-
|
485
|
-
],
|
486
|
-
|
487
|
-
|
488
|
-
],
|
489
|
-
|
490
|
-
|
491
|
-
],
|
492
|
-
|
493
|
-
|
494
|
-
],
|
495
|
-
|
496
|
-
|
497
|
-
],
|
498
|
-
|
499
|
-
|
500
|
-
],
|
501
|
-
|
502
|
-
|
503
|
-
],
|
504
|
-
customElements.get("luzmo-edit-option") || customElements.define("luzmo-edit-option",
|
517
|
+
_.styles = G(R);
|
518
|
+
let V = _;
|
519
|
+
H([
|
520
|
+
w({ type: String, reflect: !0 })
|
521
|
+
], V.prototype, "language");
|
522
|
+
H([
|
523
|
+
w({ type: String, reflect: !0, attribute: "item-type" })
|
524
|
+
], V.prototype, "itemType");
|
525
|
+
H([
|
526
|
+
w({ type: String, reflect: !0, attribute: "option-key" })
|
527
|
+
], V.prototype, "optionKey");
|
528
|
+
H([
|
529
|
+
w({ type: Object })
|
530
|
+
], V.prototype, "options");
|
531
|
+
H([
|
532
|
+
w({ type: Object })
|
533
|
+
], V.prototype, "slots");
|
534
|
+
H([
|
535
|
+
w({ type: Object })
|
536
|
+
], V.prototype, "theme");
|
537
|
+
H([
|
538
|
+
w({ type: String, reflect: !0 })
|
539
|
+
], V.prototype, "size");
|
540
|
+
customElements.get("luzmo-edit-option") || customElements.define("luzmo-edit-option", V);
|
505
541
|
export {
|
506
|
-
|
542
|
+
V as LuzmoEditOption
|
507
543
|
};
|