@luzmo/analytics-components-kit 1.0.1-alpha.4 → 1.0.1-alpha.5
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/async-directive-FGzMycjH-Bgeca09f.js +152 -0
- package/components/async-directive-FGzMycjH-CeG35vZ3.cjs +56 -0
- package/components/base-BjTwmyRF.cjs +24 -0
- package/components/base-D76d76ww-BiajPmzU.cjs +40 -0
- package/components/base-D76d76ww-gf0ESLsU.js +45 -0
- package/components/base-D76d76ww.js +28 -0
- package/components/button-base-CDLQV7Vk-BXgdcJZo.cjs +43 -0
- package/{lib/button-base-CtfPWS-P.js → components/button-base-CDLQV7Vk-C_3zTrbV.js} +55 -36
- package/components/checkbox-mixin-DXUIwtea-DNISZS47.cjs +45 -0
- package/components/checkbox-mixin-DXUIwtea-wiCZr_KI.js +88 -0
- package/components/directive-helpers-BLDZnGQv-DYFfxaqA.cjs +80 -0
- package/components/directive-helpers-BLDZnGQv-oKMCBvb2.js +115 -0
- package/components/display-settings/display-settings.d.ts +70 -0
- package/components/display-settings/index.cjs +105 -0
- package/components/display-settings/index.d.ts +7 -0
- package/components/display-settings/index.js +238 -0
- package/components/display-settings-binning/display-settings-binning.d.ts +32 -0
- package/components/display-settings-binning/index.cjs +51 -0
- package/components/display-settings-binning/index.d.ts +7 -0
- package/components/display-settings-binning/index.js +137 -0
- package/components/display-settings-datetime/display-settings-datetime.d.ts +85 -0
- package/{lib/draggable-data-item → components/display-settings-datetime}/index.cjs +1 -1
- package/components/display-settings-datetime/index.d.ts +7 -0
- package/{lib/draggable-data-item → components/display-settings-datetime}/index.js +2 -2
- package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +30 -0
- package/{lib/index-C4ePDYEC.cjs → components/display-settings-grand-totals/index.cjs} +4 -4
- package/components/display-settings-grand-totals/index.d.ts +7 -0
- package/components/display-settings-grand-totals/index.js +115 -0
- package/components/display-settings-numeric/display-settings-numeric.d.ts +73 -0
- package/components/display-settings-numeric/helpers/constants.d.ts +17 -0
- package/components/display-settings-numeric/index.cjs +146 -0
- package/components/display-settings-numeric/index.d.ts +7 -0
- package/{lib/index-CM80_HQw.js → components/display-settings-numeric/index.js} +106 -96
- package/components/display-settings-period-over-period/display-settings-period-over-period.d.ts +44 -0
- package/components/display-settings-period-over-period/helpers/constants.d.ts +33 -0
- package/components/display-settings-period-over-period/index.cjs +103 -0
- package/components/display-settings-period-over-period/index.d.ts +7 -0
- package/{lib/index-DJp_9h0l.js → components/display-settings-period-over-period/index.js} +104 -123
- package/components/divider.module-DwOuLGU3-B19eHVg2.js +40 -0
- package/components/divider.module-DwOuLGU3-Bg8RrFkc.cjs +36 -0
- package/components/draggable-data-item/draggable-data-item.d.ts +25 -0
- package/components/draggable-data-item/index.cjs +55 -0
- package/components/draggable-data-item/index.d.ts +7 -0
- package/components/draggable-data-item/index.js +140 -0
- package/components/draggable-data-item-level/draggable-data-item-level.d.ts +29 -0
- package/components/draggable-data-item-level/helpers/calculate-type-icon.d.ts +2 -0
- package/components/draggable-data-item-level/helpers/generate-preview.d.ts +1 -0
- package/components/draggable-data-item-level/index.cjs +36 -0
- package/components/draggable-data-item-level/index.d.ts +7 -0
- package/{lib/index-DrIA0eFE.js → components/draggable-data-item-level/index.js} +137 -236
- package/components/droppable-slot/droppable-slot.d.ts +49 -0
- package/components/droppable-slot/index.cjs +69 -0
- package/components/droppable-slot/index.d.ts +7 -0
- package/components/droppable-slot/index.js +255 -0
- package/components/droppable-slot/item-slots-configs/area-chart-slots.config.d.ts +44 -0
- package/components/droppable-slot/item-slots-configs/bar-chart-slots.config.d.ts +24 -0
- package/components/droppable-slot/item-slots-configs/donut-chart-slots.config.d.ts +20 -0
- package/components/edit-item/edit-item.d.ts +50 -0
- package/components/edit-item/index.cjs +85 -0
- package/components/edit-item/index.d.ts +7 -0
- package/components/edit-item/index.js +333 -0
- package/components/edit-option/edit-option.d.ts +22 -0
- package/components/edit-option/helpers/control-markup.d.ts +14 -0
- package/components/edit-option/helpers/control-templates/action-button-group-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/color-picker-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/multi-language-field-template.d.ts +8 -0
- package/components/edit-option/helpers/control-templates/number-field-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/picker-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/positions-number-field-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/radio-button-group.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/slider-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/switch-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/text-field-template.d.ts +7 -0
- package/components/edit-option/helpers/generate-callback.d.ts +1 -0
- package/components/edit-option/helpers/get-control-by-key.d.ts +1 -0
- package/components/edit-option/helpers/get-extra-label-values.d.ts +7 -0
- package/components/edit-option/helpers/get-value-by-key.d.ts +1 -0
- package/components/edit-option/index.cjs +176 -0
- package/components/edit-option/index.d.ts +7 -0
- package/components/edit-option/index.js +507 -0
- package/components/edit-option/item-configs/bar-chart.config.d.ts +108 -0
- package/components/edit-option/item-configs/column-chart.config.d.ts +108 -0
- package/components/edit-option/item-configs/donut-chart.config.d.ts +102 -0
- package/components/edit-option/item-configs/imageobject.config.d.ts +128 -0
- package/components/edit-option/item-configs/line-chart.config.d.ts +96 -0
- package/components/edit-option/item-configs/textobject.config.d.ts +13 -0
- package/components/edit-option/item-translations/bar-chart.en.d.ts +48 -0
- package/components/edit-option/item-translations/bar-chart.fr.d.ts +23 -0
- package/components/edit-option/item-translations/bar-chart.nl.d.ts +23 -0
- package/components/edit-option/item-translations/donut-chart.en.d.ts +64 -0
- package/components/edit-option/item-translations/donut-chart.fr.d.ts +18 -0
- package/components/edit-option/item-translations/donut-chart.nl.d.ts +18 -0
- package/components/edit-option-action-button-group/edit-option-action-button-group.d.ts +27 -0
- package/components/edit-option-action-button-group/index.cjs +44 -0
- package/components/edit-option-action-button-group/index.d.ts +7 -0
- package/components/edit-option-action-button-group/index.js +144 -0
- package/components/edit-option-base/edit-option-base.d.ts +22 -0
- package/components/edit-option-base-DnrerC_T.cjs +53 -0
- package/components/edit-option-base-oIvlolV9.js +120 -0
- package/components/edit-option-color-picker/edit-option-color-picker.d.ts +23 -0
- package/components/edit-option-color-picker/index.cjs +472 -0
- package/components/edit-option-color-picker/index.d.ts +7 -0
- package/components/edit-option-color-picker/index.js +2553 -0
- package/components/edit-option-multi-language-field/edit-option-multi-language-field.d.ts +15 -0
- package/components/edit-option-multi-language-field/index.cjs +31 -0
- package/components/edit-option-multi-language-field/index.d.ts +7 -0
- package/components/edit-option-multi-language-field/index.js +102 -0
- package/components/edit-option-number-field/edit-option-number-field.d.ts +19 -0
- package/components/edit-option-number-field/index.cjs +32 -0
- package/components/edit-option-number-field/index.d.ts +7 -0
- package/components/edit-option-number-field/index.js +115 -0
- package/components/edit-option-picker/edit-option-picker.d.ts +22 -0
- package/components/edit-option-picker/index.cjs +35 -0
- package/components/edit-option-picker/index.d.ts +7 -0
- package/components/edit-option-picker/index.js +106 -0
- package/components/edit-option-positions-number-field/edit-option-positions-number-field.d.ts +28 -0
- package/components/edit-option-positions-number-field/index.cjs +42 -0
- package/components/edit-option-positions-number-field/index.d.ts +7 -0
- package/components/edit-option-positions-number-field/index.js +170 -0
- package/components/edit-option-radio-button-group/edit-option-radio-button-group.d.ts +18 -0
- package/components/edit-option-radio-button-group/index.cjs +36 -0
- package/components/edit-option-radio-button-group/index.d.ts +7 -0
- package/components/edit-option-radio-button-group/index.js +113 -0
- package/components/edit-option-slider/edit-option-slider.d.ts +15 -0
- package/components/edit-option-slider/index.cjs +48 -0
- package/components/edit-option-slider/index.d.ts +7 -0
- package/components/edit-option-slider/index.js +1253 -0
- package/components/edit-option-switch/edit-option-switch.d.ts +11 -0
- package/components/edit-option-switch/index.cjs +50 -0
- package/components/edit-option-switch/index.d.ts +7 -0
- package/components/edit-option-switch/index.js +171 -0
- package/components/edit-option-text-field/edit-option-text-field.d.ts +15 -0
- package/components/edit-option-text-field/index.cjs +31 -0
- package/components/edit-option-text-field/index.d.ts +7 -0
- package/components/edit-option-text-field/index.js +100 -0
- package/components/element-resolution-FCUT-wql--7ctE626.js +163 -0
- package/components/element-resolution-FCUT-wql-DSTvdyds.cjs +68 -0
- package/{lib/en-CIeY2T5K.js → components/en-BsAhbMzm.js} +101 -102
- package/components/en-CdROUdjt.cjs +202 -0
- package/{lib/en-GB-BqYHIX1v.cjs → components/en-GB-g8rSQSba.cjs} +1 -1
- package/{lib/en-GB-CYx--4nh.js → components/en-GB-qub-Kemt.js} +1 -1
- package/components/focus-group-DHeTq18L-C9l9oHwM.cjs +36 -0
- package/components/focus-group-DHeTq18L-rNUu13eb.js +237 -0
- package/{lib/get-css-variable-BHHQ0SnL.js → components/get-css-variable-Bhbr-Kr1.js} +379 -410
- package/components/get-css-variable-DLiZYZEi.cjs +24 -0
- package/components/if-defined-CYpcjGCb-Bzbg7zmM.cjs +60 -0
- package/components/if-defined-CYpcjGCb-tXzyj9Dq.js +95 -0
- package/components/if-defined-Ch2dtEOS.js +29 -0
- package/components/if-defined-DMSuo5Qx.cjs +24 -0
- package/components/index-3ewegRbb.cjs +67 -0
- package/components/index-B0cBkCaq.cjs +39 -0
- package/components/index-B2N_PZf3.js +164 -0
- package/components/index-B2z7i1-X.js +77 -0
- package/components/index-B5VaT0lQ.js +145 -0
- package/components/index-BC-nmKjU.js +104 -0
- package/{lib/droppable-slot/index.js → components/index-BD3VxQBH.js} +18 -4
- package/components/index-BGaxFTL4.js +299 -0
- package/{lib/index-B9h2L_hV.js → components/index-BRk42NQn.js} +1235 -1112
- package/components/index-Bjs6Yqet.cjs +185 -0
- package/components/index-Bofs4Q2E.cjs +36 -0
- package/components/index-BqTdFs1o.js +77 -0
- package/components/index-C2qG2Sm8-BQUlk-w0.js +935 -0
- package/components/index-C2qG2Sm8-CbVWlbag.cjs +95 -0
- package/components/index-CTPox3yS.cjs +54 -0
- package/components/index-C_3Ak4MQ.cjs +59 -0
- package/components/index-CayjvyyX.cjs +95 -0
- package/components/index-CkDDDzuJ.js +744 -0
- package/{lib/progress-circle/index.js → components/index-Cp-lHUlX.js} +53 -20
- package/components/index-CtHO6VyI.cjs +42 -0
- package/components/index-D4x-O9Uc.cjs +192 -0
- package/components/index-D9vzXhtJ.cjs +95 -0
- package/components/index-DQiQXn8N.cjs +36 -0
- package/{lib/picker/index.js → components/index-DVaeDCbe.js} +22 -6
- package/components/index-DskAouD-.js +317 -0
- package/{lib/index-CBCm4_7S.js → components/index-DszPbTTD.js} +401 -460
- package/{lib/index-Bd4cKS9O.js → components/index-EQldC-LR.js} +67 -47
- package/components/index-ON4x-yZ7.cjs +36 -0
- package/components/index-gfU9TGd5.cjs +57 -0
- package/components/index-liTHhAef.cjs +36 -0
- package/components/index.cjs +20 -0
- package/components/index.js +74 -0
- package/components/language-resolution-8yZa5r_P-CTSmbE1U.js +161 -0
- package/components/language-resolution-8yZa5r_P-DQ3rZzW5.cjs +52 -0
- package/components/localize-B6AsX_Zv.js +52 -0
- package/components/localize-DbobqcKs.cjs +20 -0
- package/components/luzmo-icons-BrtBl3E5.cjs +31 -0
- package/{lib/index-DdtjeKYI.js → components/luzmo-icons-CZEpXpvy.js} +157 -472
- package/components/observe-slot-text-BG0H7bQK-C0wmc4DO.js +221 -0
- package/components/observe-slot-text-BG0H7bQK-CrkAqUMj.cjs +86 -0
- package/{lib/popover-Bwnkg-5-.js → components/popover-bg0EQQ8p-D4-hrhIx.js} +25 -6
- package/components/popover-bg0EQQ8p-Dha09dhV.cjs +48 -0
- package/components/property-CD3dwBJC.js +1447 -0
- package/components/property-Su1Q6aME.cjs +124 -0
- package/components/query-D5qWDopr.cjs +24 -0
- package/components/query-Ddbd72Um.js +39 -0
- package/components/query-assigned-nodes-C76XVPWY-BcyGjObB.cjs +40 -0
- package/components/query-assigned-nodes-C76XVPWY-DPC6kOmH.js +55 -0
- package/components/roving-tabindex-DOg4z6ZU-DmyYPRYY.cjs +36 -0
- package/components/roving-tabindex-DOg4z6ZU-dufnVmvL.js +85 -0
- package/components/sized-mixin-PyCYpyQq-B40Ek2UB.js +82 -0
- package/components/sized-mixin-PyCYpyQq-sKzDjc75.cjs +36 -0
- package/components/slot-menu/index.cjs +55 -0
- package/components/slot-menu/index.d.ts +7 -0
- package/components/slot-menu/index.js +188 -0
- package/components/slot-menu/slot-menu.d.ts +66 -0
- package/components/slot-menu-list/index.cjs +39 -0
- package/components/slot-menu-list/index.d.ts +7 -0
- package/components/slot-menu-list/index.js +351 -0
- package/components/slot-menu-list/slot-menu-list.d.ts +33 -0
- package/components/state-B1a8XIDm.js +31 -0
- package/components/state-ByiKNRhp.cjs +24 -0
- package/components/task-BPD0PyaQ.js +120 -0
- package/components/task-HFsHfTra.cjs +24 -0
- package/components/text-field-7ITo3Lac-CKXsSqJP.cjs +131 -0
- package/components/text-field-7ITo3Lac-DqVO04kR.js +412 -0
- package/{lib/index-D_KYpfBM.js → components/utils.cjs} +1 -5
- package/{lib/droppable-slot/index.cjs → components/utils.js} +1 -1
- package/components/when-CDK1Tt5Y-BN3qcTK0.cjs +40 -0
- package/components/when-CDK1Tt5Y-C6ViXC43.js +47 -0
- package/custom-elements.json +3562 -884
- package/index.d.ts +23 -0
- package/package.json +132 -17
- package/utils/formatter/calculate-duration.d.ts +2 -0
- package/utils/formatter/decompose-numeric-format.d.ts +11 -0
- package/utils/formatter/default-local-formats.d.ts +20 -0
- package/utils/formatter/formats/cs.d.ts +20 -0
- package/utils/formatter/formats/da.d.ts +20 -0
- package/utils/formatter/formats/de.d.ts +21 -0
- package/utils/formatter/formats/en-GB.d.ts +21 -0
- package/utils/formatter/formats/en-US.d.ts +1 -0
- package/utils/formatter/formats/en.d.ts +1 -0
- package/utils/formatter/formats/es.d.ts +54 -0
- package/utils/formatter/formats/fi.d.ts +20 -0
- package/utils/formatter/formats/fr.d.ts +54 -0
- package/utils/formatter/formats/he.d.ts +20 -0
- package/utils/formatter/formats/hu.d.ts +20 -0
- package/utils/formatter/formats/it.d.ts +54 -0
- package/utils/formatter/formats/ja.d.ts +20 -0
- package/utils/formatter/formats/ko.d.ts +20 -0
- package/utils/formatter/formats/mk.d.ts +20 -0
- package/utils/formatter/formats/nl.d.ts +21 -0
- package/utils/formatter/formats/no.d.ts +21 -0
- package/utils/formatter/formats/pl.d.ts +20 -0
- package/utils/formatter/formats/pt.d.ts +20 -0
- package/utils/formatter/formats/ru.d.ts +20 -0
- package/utils/formatter/formats/sv.d.ts +20 -0
- package/utils/formatter/formats/tr.d.ts +21 -0
- package/utils/formatter/formats/zh-CN.d.ts +20 -0
- package/utils/formatter/formats/zh-TW.d.ts +20 -0
- package/utils/formatter/formatter.d.ts +9 -0
- package/utils/formatter/localize.d.ts +3 -0
- package/utils/formatter/smart-datetime-formats.const.d.ts +36 -0
- package/utils/get-css-variable.d.ts +1 -0
- package/utils/index.d.ts +1 -0
- package/utils/time/formats.const.d.ts +8 -0
- package/utils/time/periods.const.d.ts +29 -0
- package/utils/types/column.types.d.ts +56 -0
- package/utils/types/type-check.d.ts +7 -0
- package/lib/async-directive-CPjMHOPu.cjs +0 -24
- package/lib/async-directive-SCUUQ3Mh.js +0 -114
- package/lib/button-base-B4PdJFVe.cjs +0 -27
- package/lib/directive-helpers-BSB0tfc9.cjs +0 -32
- package/lib/directive-helpers-eY1rHtyn.js +0 -154
- package/lib/divider.module-BW8qaMVq.js +0 -211
- package/lib/divider.module-DEy88Ieh.cjs +0 -20
- package/lib/en-BDBzmAXX.cjs +0 -202
- package/lib/get-css-variable-D439CdH9.cjs +0 -24
- package/lib/if-defined-BbzmSG-O.js +0 -757
- package/lib/if-defined-V7yEJWI3.cjs +0 -54
- package/lib/index-0314DjEl.cjs +0 -20
- package/lib/index-BDXFsKUM.cjs +0 -146
- package/lib/index-BmAD29P2.js +0 -106
- package/lib/index-Bo1DpZ-1.cjs +0 -58
- package/lib/index-C9xEN5Ji.js +0 -82
- package/lib/index-CcF-9wyF.cjs +0 -71
- package/lib/index-CfEm5P0J.cjs +0 -196
- package/lib/index-CrWoFMZ3.cjs +0 -22
- package/lib/index-CtEJZdT0.js +0 -1627
- package/lib/index-CvX-HLY1.cjs +0 -322
- package/lib/index-D37RwuEH.js +0 -1584
- package/lib/index-D5puKlcm.cjs +0 -96
- package/lib/index-DGz6jCKo.cjs +0 -26
- package/lib/index-DSbgZduE.js +0 -501
- package/lib/index-Dj7PF4Q9.cjs +0 -63
- package/lib/index-Dq3HAOaM.js +0 -127
- package/lib/index-jt6FL_uE.cjs +0 -20
- package/lib/index-kJR406YZ.cjs +0 -112
- package/lib/index-v8ZTprPO.cjs +0 -51
- package/lib/index.cjs +0 -875
- package/lib/index.js +0 -6411
- package/lib/observe-slot-text-DOYmGOZe.js +0 -181
- package/lib/observe-slot-text-oJ0a2KY9.cjs +0 -42
- package/lib/picker/index.cjs +0 -20
- package/lib/popover-CQGN8nbX.cjs +0 -32
- package/lib/progress-circle/index.cjs +0 -35
- /package/{lib → components}/area-chart-slots.config-BLxiYX05.cjs +0 -0
- /package/{lib → components}/area-chart-slots.config-C0c2ZzBh.js +0 -0
- /package/{lib → components}/bar-chart-slots.config-GSSL7XVA.js +0 -0
- /package/{lib → components}/bar-chart-slots.config-Jx1PveTM.cjs +0 -0
- /package/{lib → components}/bar-chart.config-B57geUzJ.cjs +0 -0
- /package/{lib → components}/bar-chart.config-CQ6HAvs2.js +0 -0
- /package/{lib → components}/bar-chart.en-BqYbiHO3.cjs +0 -0
- /package/{lib → components}/bar-chart.en-FwT00qdU.js +0 -0
- /package/{lib → components}/bar-chart.fr-DGx9smEh.cjs +0 -0
- /package/{lib → components}/bar-chart.fr-DbxKiM0j.js +0 -0
- /package/{lib → components}/bar-chart.nl-BYzVExsz.cjs +0 -0
- /package/{lib → components}/bar-chart.nl-ahX1ARpH.js +0 -0
- /package/{lib → components}/column-chart.config-B57geUzJ.cjs +0 -0
- /package/{lib → components}/column-chart.config-C9hP0kX7.js +0 -0
- /package/{lib → components}/cs-DVZ0Tapy.js +0 -0
- /package/{lib → components}/cs-I9E81keK.cjs +0 -0
- /package/{lib → components}/da-DHy05oSR.js +0 -0
- /package/{lib → components}/da-QkdvupDg.cjs +0 -0
- /package/{lib → components}/de-Dn5mUzha.cjs +0 -0
- /package/{lib → components}/de-iM39JlAt.js +0 -0
- /package/{lib → components}/decompose-numeric-format-B3rVVHpO.cjs +0 -0
- /package/{lib → components}/decompose-numeric-format-BuZcjH2k.js +0 -0
- /package/{lib → components}/donut-chart-slots.config-BEwhfq27.js +0 -0
- /package/{lib → components}/donut-chart-slots.config-DIp-24lO.cjs +0 -0
- /package/{lib → components}/donut-chart.config-3DhKiSSM.js +0 -0
- /package/{lib → components}/donut-chart.config-DLWJUlHx.cjs +0 -0
- /package/{lib → components}/donut-chart.en-Blb9oSdU.cjs +0 -0
- /package/{lib → components}/donut-chart.en-CzjT4-XN.js +0 -0
- /package/{lib → components}/donut-chart.fr-BeTVa2wh.cjs +0 -0
- /package/{lib → components}/donut-chart.fr-DftPrKbG.js +0 -0
- /package/{lib → components}/donut-chart.nl-D9YGbOce.cjs +0 -0
- /package/{lib → components}/donut-chart.nl-NMatXfhK.js +0 -0
- /package/{lib → components}/es-CwyPlN5d.cjs +0 -0
- /package/{lib → components}/es-KhTq4jX8.js +0 -0
- /package/{lib → components}/fi-Dh_ebgpe.js +0 -0
- /package/{lib → components}/fi-rijeZE5V.cjs +0 -0
- /package/{lib → components}/fr-BcgE-6S_.cjs +0 -0
- /package/{lib → components}/fr-CU727YF1.js +0 -0
- /package/{lib → components}/he-Au3xg6lR.js +0 -0
- /package/{lib → components}/he-O6Ih8Bqh.cjs +0 -0
- /package/{lib → components}/hu-BnZ8y3xQ.cjs +0 -0
- /package/{lib → components}/hu-DNJ-P_MW.js +0 -0
- /package/{lib → components}/imageobject.config-B7ld9bj3.cjs +0 -0
- /package/{lib → components}/imageobject.config-DZLp9Elq.js +0 -0
- /package/{lib → components}/it-Bh5U73z6.js +0 -0
- /package/{lib → components}/it-PshtLMkq.cjs +0 -0
- /package/{lib → components}/ja-CCcHUL61.js +0 -0
- /package/{lib → components}/ja-KIS2HdaG.cjs +0 -0
- /package/{lib → components}/ko--l4qmjLV.cjs +0 -0
- /package/{lib → components}/ko-DhapsZMM.js +0 -0
- /package/{lib → components}/line-chart.config-BZcvfO2c.cjs +0 -0
- /package/{lib → components}/line-chart.config-CIVN6uLI.js +0 -0
- /package/{lib → components}/mk-B9HPSuKa.js +0 -0
- /package/{lib → components}/mk-DZlj-edb.cjs +0 -0
- /package/{lib → components}/nl-BKlDqOXb.cjs +0 -0
- /package/{lib → components}/nl-BwSt5Bf4.js +0 -0
- /package/{lib → components}/no-D-DofYnx.js +0 -0
- /package/{lib → components}/no-D_SzxhTu.cjs +0 -0
- /package/{lib → components}/pl-D_L_0Boq.js +0 -0
- /package/{lib → components}/pl-PIK23rK_.cjs +0 -0
- /package/{lib → components}/pt-B0BBS5VB.js +0 -0
- /package/{lib → components}/pt-Dqlu4MS5.cjs +0 -0
- /package/{lib → components}/ru-Vo-m3O_2.js +0 -0
- /package/{lib → components}/ru-zyNDTB04.cjs +0 -0
- /package/{lib → components}/sv-1DPTltNQ.cjs +0 -0
- /package/{lib → components}/sv-CiozMaev.js +0 -0
- /package/{lib → components}/textobject.config-C8opcGG4.js +0 -0
- /package/{lib → components}/textobject.config-DbAajFz8.cjs +0 -0
- /package/{lib → components}/tr-BkmWvOG2.cjs +0 -0
- /package/{lib → components}/tr-D_D4i5iv.js +0 -0
- /package/{lib → components}/zh-CN-DTZ4OmdP.cjs +0 -0
- /package/{lib → components}/zh-CN-wsl7eFSd.js +0 -0
- /package/{lib → components}/zh-TW-DTZ4OmdP.cjs +0 -0
- /package/{lib → components}/zh-TW-wsl7eFSd.js +0 -0
@@ -0,0 +1,507 @@
|
|
1
|
+
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
2
|
+
*
|
3
|
+
* Copyright © 2024 Luzmo
|
4
|
+
* All rights reserved.
|
5
|
+
* Luzmo web components (“Luzmo Web Components”)
|
6
|
+
* must be used according to the Luzmo Terms of Service.
|
7
|
+
* This license allows users with a current active Luzmo account
|
8
|
+
* to use the Luzmo Web Components. This license terminates
|
9
|
+
* automatically if a user no longer has an active Luzmo account.
|
10
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
11
|
+
*
|
12
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
17
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
|
+
* SOFTWARE.
|
19
|
+
* */
|
20
|
+
import { h as B } from "../task-BPD0PyaQ.js";
|
21
|
+
import { x as y, I as F, r as G, n as K } from "../property-CD3dwBJC.js";
|
22
|
+
import { o as P } from "../if-defined-Ch2dtEOS.js";
|
23
|
+
const E = () => {
|
24
|
+
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
25
|
+
const o = document.createElement("style");
|
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
|
+
}
|
28
|
+
};
|
29
|
+
E();
|
30
|
+
const N = ":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, u, a, b, d, m, p, s, f, r, z, x, h, $;
|
32
|
+
let t;
|
33
|
+
typeof ((i = o.controlInfo) == null ? void 0 : i.extraLabel) == "function" ? t = o.controlInfo.extraLabel(
|
34
|
+
o.options,
|
35
|
+
o.slots,
|
36
|
+
o.theme
|
37
|
+
) : typeof ((c = o.controlInfo) == null ? void 0 : c.extraLabel) == "string" && (t = o.controlInfo.extraLabel), typeof t == "string" && (t = ((d = (b = (a = (u = o.translations) == null ? void 0 : u.options) == null ? void 0 : a[o.optionKey]) == null ? void 0 : b.extraLabel) == null ? void 0 : d[t]) ?? t);
|
38
|
+
let l;
|
39
|
+
typeof ((m = o.controlInfo) == null ? void 0 : m.extraLabelTooltip) == "function" ? t = o.controlInfo.extraLabelTooltip(
|
40
|
+
o.options,
|
41
|
+
o.slots,
|
42
|
+
o.theme
|
43
|
+
) : typeof ((p = o.controlInfo) == null ? void 0 : p.extraLabelTooltip) == "string" && (l = o.controlInfo.extraLabelTooltip), typeof l == "string" && (t = ((z = (r = (f = (s = o.translations) == null ? void 0 : s.options) == null ? void 0 : f[o.optionKey]) == null ? void 0 : r.extraLabelTooltip) == null ? void 0 : z[l]) ?? l);
|
44
|
+
let n;
|
45
|
+
typeof ((x = o.controlInfo) == null ? void 0 : x.extraLabelHasClickAction) == "function" ? n = o.controlInfo.extraLabelHasClickAction(
|
46
|
+
o.options,
|
47
|
+
o.slots,
|
48
|
+
o.theme
|
49
|
+
) : typeof ((h = o.controlInfo) == null ? void 0 : h.extraLabelHasClickAction) == "boolean" && (n = o.controlInfo.extraLabelHasClickAction);
|
50
|
+
const e = typeof (($ = o.controlInfo) == null ? void 0 : $.extraLabelClickAction) == "function" ? () => o.controlInfo.extraLabelClickAction(
|
51
|
+
o.options,
|
52
|
+
o.slots,
|
53
|
+
o.theme
|
54
|
+
) : () => {
|
55
|
+
};
|
56
|
+
return {
|
57
|
+
extraLabel: t,
|
58
|
+
extraLabelTooltip: l,
|
59
|
+
extraLabelHasClickAction: n,
|
60
|
+
extraLabelClickAction: e
|
61
|
+
};
|
62
|
+
}, I = (o, t) => {
|
63
|
+
if (t.includes(".")) {
|
64
|
+
const l = t.split(".");
|
65
|
+
let n = o;
|
66
|
+
for (let i = 0; i < l.length - 1; i++)
|
67
|
+
n = n[l[i]] ?? {};
|
68
|
+
const e = l.length - 1;
|
69
|
+
return n[l[e]];
|
70
|
+
}
|
71
|
+
return o[t];
|
72
|
+
}, O = (o) => (t) => {
|
73
|
+
const l = { ...o.options };
|
74
|
+
if (o.optionKey.includes(".")) {
|
75
|
+
const n = o.optionKey.split(".");
|
76
|
+
let e = l;
|
77
|
+
for (let c = 0; c < n.length - 1; c++)
|
78
|
+
e[n[c]] = e[n[c]] ?? {}, e = e[n[c]];
|
79
|
+
const i = n.length - 1;
|
80
|
+
e[n[i]] = t.detail.value;
|
81
|
+
} else
|
82
|
+
l[o.optionKey] = t.detail.value;
|
83
|
+
return o.changeCallback(l);
|
84
|
+
}, R = (o) => {
|
85
|
+
var b, d, m, p, s, f, r, z;
|
86
|
+
const t = ((m = (d = (b = o.translations) == null ? void 0 : b.options) == null ? void 0 : d[o.optionKey]) == null ? void 0 : m.label) ?? o.optionKey ?? "", l = o.size, n = I(o.options, o.optionKey), {
|
87
|
+
extraLabel: e,
|
88
|
+
extraLabelTooltip: i,
|
89
|
+
extraLabelHasClickAction: c,
|
90
|
+
extraLabelClickAction: u
|
91
|
+
} = C(o), a = O(o);
|
92
|
+
return y`
|
93
|
+
<luzmo-edit-option-action-button-group
|
94
|
+
.label=${t}
|
95
|
+
.value=${n}
|
96
|
+
.values=${(p = o.controlInfo) == null ? void 0 : p.values}
|
97
|
+
.default=${(s = o.controlInfo) == null ? void 0 : s.default}
|
98
|
+
.selects=${(f = o.controlInfo) == null ? void 0 : f.selects}
|
99
|
+
.size=${l}
|
100
|
+
.extraLabel=${e}
|
101
|
+
.extraLabelTooltip=${i}
|
102
|
+
.extraLabelHasClickAction=${c}
|
103
|
+
@extraLabelClick=${u}
|
104
|
+
@option-changed=${a}
|
105
|
+
.fromOptionValue=${(r = o.controlInfo) == null ? void 0 : r.fromOptionValue}
|
106
|
+
.toOptionValue=${(z = o.controlInfo) == null ? void 0 : z.toOptionValue}
|
107
|
+
></luzmo-edit-option-action-button-group>
|
108
|
+
`;
|
109
|
+
}, U = (o) => {
|
110
|
+
var m, p, s, f, r, z, x;
|
111
|
+
const t = ((s = (p = (m = o.translations) == null ? void 0 : m.options) == null ? void 0 : p[o.optionKey]) == null ? void 0 : s.label) ?? o.optionKey ?? "", l = I(o.options, o.optionKey), n = o.size;
|
112
|
+
let e;
|
113
|
+
typeof ((f = o.controlInfo) == null ? void 0 : f.default) == "function" ? e = o.controlInfo.default(
|
114
|
+
o.options,
|
115
|
+
o.slots,
|
116
|
+
o.theme
|
117
|
+
) : typeof ((r = o.controlInfo) == null ? void 0 : r.default) == "string" && (e = o.controlInfo.default);
|
118
|
+
const {
|
119
|
+
extraLabel: i,
|
120
|
+
extraLabelTooltip: c,
|
121
|
+
extraLabelHasClickAction: u,
|
122
|
+
extraLabelClickAction: a
|
123
|
+
} = C(o), b = O(o);
|
124
|
+
return y`
|
125
|
+
<luzmo-edit-option-color-picker
|
126
|
+
.value=${l ?? e}
|
127
|
+
.label=${t}
|
128
|
+
.size=${n}
|
129
|
+
.extraLabel=${i}
|
130
|
+
.extraLabelTooltip=${c}
|
131
|
+
.extraLabelHasClickAction=${u}
|
132
|
+
@extraLabelClick=${() => {
|
133
|
+
if (typeof a == "function") {
|
134
|
+
const { options: h } = a();
|
135
|
+
return o.changeCallback(h);
|
136
|
+
}
|
137
|
+
}}
|
138
|
+
@option-changed=${b}
|
139
|
+
.fromOptionValue=${(z = o.controlInfo) == null ? void 0 : z.fromOptionValue}
|
140
|
+
.toOptionValue=${(x = o.controlInfo) == null ? void 0 : x.toOptionValue}
|
141
|
+
></luzmo-edit-option-color-picker>
|
142
|
+
`;
|
143
|
+
}, q = (o) => {
|
144
|
+
var m, p, s, f, r, z;
|
145
|
+
const t = ((s = (p = (m = o.translations) == null ? void 0 : m.options) == null ? void 0 : p[o.optionKey]) == null ? void 0 : s.label) ?? o.optionKey ?? "", l = ((f = o.controlInfo) == null ? void 0 : f.placeholder) ?? "placeholder", n = I(o.options, o.optionKey) ?? {}, e = o.language ?? "en", i = o.size, {
|
146
|
+
extraLabel: c,
|
147
|
+
extraLabelTooltip: u,
|
148
|
+
extraLabelHasClickAction: a,
|
149
|
+
extraLabelClickAction: b
|
150
|
+
} = C(o), d = O(o);
|
151
|
+
return y`
|
152
|
+
<luzmo-edit-option-multi-language-field
|
153
|
+
.label=${t}
|
154
|
+
.placeholder=${l}
|
155
|
+
.value=${n}
|
156
|
+
language=${P(e)}
|
157
|
+
.size=${i}
|
158
|
+
.extraLabel=${c}
|
159
|
+
.extraLabelTooltip=${u}
|
160
|
+
.extraLabelHasClickAction=${a}
|
161
|
+
@extraLabelClick=${b}
|
162
|
+
@option-changed=${d}
|
163
|
+
.fromOptionValue=${(r = o.controlInfo) == null ? void 0 : r.fromOptionValue}
|
164
|
+
.toOptionValue=${(z = o.controlInfo) == null ? void 0 : z.toOptionValue}
|
165
|
+
></luzmo-edit-option-multi-language-field>
|
166
|
+
`;
|
167
|
+
}, D = (o) => {
|
168
|
+
var s, f, r, z, x, h, $, L, k;
|
169
|
+
const t = ((r = (f = (s = o.translations) == null ? void 0 : s.options) == null ? void 0 : f[o.optionKey]) == null ? void 0 : r.label) ?? o.optionKey ?? "", l = (z = o.controlInfo) == null ? void 0 : z.min, n = (x = o.controlInfo) == null ? void 0 : x.max, e = (h = o.controlInfo) == null ? void 0 : h.step, i = I(o.options, o.optionKey), c = ($ = o.controlInfo) == null ? void 0 : $.default, u = o.size, {
|
170
|
+
extraLabel: a,
|
171
|
+
extraLabelTooltip: b,
|
172
|
+
extraLabelHasClickAction: d,
|
173
|
+
extraLabelClickAction: m
|
174
|
+
} = C(o), p = O(o);
|
175
|
+
return y`
|
176
|
+
<luzmo-edit-option-number-field
|
177
|
+
.value=${i}
|
178
|
+
.default=${c}
|
179
|
+
.min=${l}
|
180
|
+
.max=${n}
|
181
|
+
.step=${e}
|
182
|
+
.label=${t}
|
183
|
+
.size=${u}
|
184
|
+
.extraLabel=${a}
|
185
|
+
.extraLabelTooltip=${b}
|
186
|
+
.extraLabelHasClickAction=${d}
|
187
|
+
@extraLabelClick=${m}
|
188
|
+
@option-changed=${p}
|
189
|
+
.fromOptionValue=${(L = o.controlInfo) == null ? void 0 : L.fromOptionValue}
|
190
|
+
.toOptionValue=${(k = o.controlInfo) == null ? void 0 : k.toOptionValue}
|
191
|
+
></luzmo-edit-option-number-field>
|
192
|
+
`;
|
193
|
+
}, J = (o) => {
|
194
|
+
var p, s, f, r, z, x, h, $, L, k;
|
195
|
+
const t = ((f = (s = (p = o.translations) == null ? void 0 : p.options) == null ? void 0 : s[o.optionKey]) == null ? void 0 : f.label) ?? o.optionKey ?? "", l = I(o.options, o.optionKey), n = (r = o.controlInfo) == null ? void 0 : r.default, e = (h = (x = (z = o.translations) == null ? void 0 : z.options) == null ? void 0 : x[o.optionKey]) == null ? void 0 : h.tooltip, i = ($ = o.controlInfo) == null ? void 0 : $.enum.reduce(
|
196
|
+
(V, T) => {
|
197
|
+
var w, H, _;
|
198
|
+
return V[T] = ((_ = (H = (w = o.translations) == null ? void 0 : w.options) == null ? void 0 : H[o.optionKey]) == null ? void 0 : _.enum[T]) ?? T, V;
|
199
|
+
},
|
200
|
+
{}
|
201
|
+
), c = o.size, {
|
202
|
+
extraLabel: u,
|
203
|
+
extraLabelTooltip: a,
|
204
|
+
extraLabelHasClickAction: b,
|
205
|
+
extraLabelClickAction: d
|
206
|
+
} = C(o), m = O(o);
|
207
|
+
return y`
|
208
|
+
<luzmo-edit-option-picker
|
209
|
+
.value=${l}
|
210
|
+
.default=${n}
|
211
|
+
.values=${i}
|
212
|
+
.label=${t}
|
213
|
+
.tooltip=${e}
|
214
|
+
.size=${c}
|
215
|
+
.extraLabel=${u}
|
216
|
+
.extraLabelTooltip=${a}
|
217
|
+
.extraLabelHasClickAction=${b}
|
218
|
+
@extraLabelClick=${d}
|
219
|
+
@option-changed=${m}
|
220
|
+
.fromOptionValue=${(L = o.controlInfo) == null ? void 0 : L.fromOptionValue}
|
221
|
+
.toOptionValue=${(k = o.controlInfo) == null ? void 0 : k.toOptionValue}
|
222
|
+
></luzmo-edit-option-picker>
|
223
|
+
`;
|
224
|
+
}, Q = (o) => {
|
225
|
+
var b, d, m, p, s, f, r;
|
226
|
+
const t = ((m = (d = (b = o.translations) == null ? void 0 : b.options) == null ? void 0 : d[o.optionKey]) == null ? void 0 : m.label) ?? o.optionKey ?? "", l = I(o.options, o.optionKey), n = o.size, {
|
227
|
+
extraLabel: e,
|
228
|
+
extraLabelTooltip: i,
|
229
|
+
extraLabelHasClickAction: c,
|
230
|
+
extraLabelClickAction: u
|
231
|
+
} = C(o), a = O(o);
|
232
|
+
return y`
|
233
|
+
<luzmo-edit-option-positions-number-field
|
234
|
+
.values=${l}
|
235
|
+
.positions=${(p = o.controlInfo) == null ? void 0 : p.positions}
|
236
|
+
.positionConfiguration=${(s = o.controlInfo) == null ? void 0 : s.positionConfiguration}
|
237
|
+
.label=${t}
|
238
|
+
.size=${n}
|
239
|
+
.extraLabel=${e}
|
240
|
+
.extraLabelTooltip=${i}
|
241
|
+
.extraLabelHasClickAction=${c}
|
242
|
+
@extraLabelClick=${u}
|
243
|
+
@option-changed=${a}
|
244
|
+
.fromOptionValue=${(f = o.controlInfo) == null ? void 0 : f.fromOptionValue}
|
245
|
+
.toOptionValue=${(r = o.controlInfo) == null ? void 0 : r.toOptionValue}
|
246
|
+
></luzmo-edit-option-positions-number-field>
|
247
|
+
`;
|
248
|
+
}, W = (o) => {
|
249
|
+
var m, p, s, f, r, z, x;
|
250
|
+
const t = ((s = (p = (m = o.translations) == null ? void 0 : m.options) == null ? void 0 : p[o.optionKey]) == null ? void 0 : s.label) ?? o.optionKey ?? "", l = I(o.options, o.optionKey), n = (f = o == null ? void 0 : o.controlInfo) == null ? void 0 : f.default, e = (r = o.controlInfo) == null ? void 0 : r.enum.reduce(
|
251
|
+
(h, $) => {
|
252
|
+
var L, k, V;
|
253
|
+
return h[$] = ((V = (k = (L = o.translations) == null ? void 0 : L.options) == null ? void 0 : k[o.optionKey]) == null ? void 0 : V.enum[$]) ?? $, h;
|
254
|
+
},
|
255
|
+
{}
|
256
|
+
), i = o.size, {
|
257
|
+
extraLabel: c,
|
258
|
+
extraLabelTooltip: u,
|
259
|
+
extraLabelHasClickAction: a,
|
260
|
+
extraLabelClickAction: b
|
261
|
+
} = C(o), d = O(o);
|
262
|
+
return y`
|
263
|
+
<luzmo-edit-option-radio-button-group
|
264
|
+
.value=${l ?? n}
|
265
|
+
.values=${e}
|
266
|
+
.label=${t}
|
267
|
+
.size=${i}
|
268
|
+
.extraLabel=${c}
|
269
|
+
.extraLabelTooltip=${u}
|
270
|
+
.extraLabelHasClickAction=${a}
|
271
|
+
@extraLabelClick=${b}
|
272
|
+
@option-changed=${d}
|
273
|
+
.fromOptionValue=${(z = o.controlInfo) == null ? void 0 : z.fromOptionValue}
|
274
|
+
.toOptionValue=${(x = o.controlInfo) == null ? void 0 : x.toOptionValue}
|
275
|
+
></luzmo-edit-option-radio-button-group>
|
276
|
+
`;
|
277
|
+
}, X = (o) => {
|
278
|
+
var r, z, x, h, $, L, k, V, T, w, H, _, j;
|
279
|
+
const t = ((x = (z = (r = o.translations) == null ? void 0 : r.options) == null ? void 0 : z[o.optionKey]) == null ? void 0 : x.label) ?? o.optionKey ?? "", l = (L = ($ = (h = o.translations) == null ? void 0 : h.options) == null ? void 0 : $[o.optionKey]) == null ? void 0 : L.tooltip, n = (k = o.controlInfo) == null ? void 0 : k.min, e = (V = o.controlInfo) == null ? void 0 : V.max, i = (T = o.controlInfo) == null ? void 0 : T.step, c = I(o.options, o.optionKey), u = o.size;
|
280
|
+
let a;
|
281
|
+
typeof ((w = o.controlInfo) == null ? void 0 : w.default) == "function" ? a = o.controlInfo.default(
|
282
|
+
o.options,
|
283
|
+
o.slots,
|
284
|
+
o.theme
|
285
|
+
) : typeof ((H = o.controlInfo) == null ? void 0 : H.default) == "number" && (a = o.controlInfo.default);
|
286
|
+
const {
|
287
|
+
extraLabel: b,
|
288
|
+
extraLabelTooltip: d,
|
289
|
+
extraLabelHasClickAction: m,
|
290
|
+
extraLabelClickAction: p
|
291
|
+
} = C(o), s = O(o);
|
292
|
+
return y`
|
293
|
+
<luzmo-edit-option-slider
|
294
|
+
.value=${c}
|
295
|
+
.default=${a}
|
296
|
+
.min=${n}
|
297
|
+
.max=${e}
|
298
|
+
.step=${i}
|
299
|
+
.label=${t}
|
300
|
+
.tooltip=${l}
|
301
|
+
.size=${u}
|
302
|
+
.extraLabel=${b}
|
303
|
+
.extraLabelTooltip=${d}
|
304
|
+
.extraLabelHasClickAction=${m}
|
305
|
+
@extraLabelClick=${() => {
|
306
|
+
if (typeof p == "function") {
|
307
|
+
const { options: S } = p();
|
308
|
+
return o.changeCallback(S);
|
309
|
+
}
|
310
|
+
}}
|
311
|
+
@option-changed=${s}
|
312
|
+
.fromOptionValue=${(_ = o.controlInfo) == null ? void 0 : _.fromOptionValue}
|
313
|
+
.toOptionValue=${(j = o.controlInfo) == null ? void 0 : j.toOptionValue}
|
314
|
+
></luzmo-edit-option-slider>
|
315
|
+
`;
|
316
|
+
}, Y = (o) => {
|
317
|
+
var d, m, p, s, f, r;
|
318
|
+
const t = ((p = (m = (d = o.translations) == null ? void 0 : d.options) == null ? void 0 : m[o.optionKey]) == null ? void 0 : p.label) ?? o.optionKey ?? "", l = I(o.options, o.optionKey), n = (s = o.controlInfo) == null ? void 0 : s.default, e = o.size, {
|
319
|
+
extraLabel: i,
|
320
|
+
extraLabelTooltip: c,
|
321
|
+
extraLabelHasClickAction: u,
|
322
|
+
extraLabelClickAction: a
|
323
|
+
} = C(o), b = O(o);
|
324
|
+
return y`
|
325
|
+
<luzmo-edit-option-switch
|
326
|
+
.value=${l ?? n ?? !1}
|
327
|
+
.label=${t}
|
328
|
+
.size=${e}
|
329
|
+
.extraLabel=${i}
|
330
|
+
.extraLabelTooltip=${c}
|
331
|
+
.extraLabelHasClickAction=${u}
|
332
|
+
@extraLabelClick=${a}
|
333
|
+
@option-changed=${b}
|
334
|
+
.fromOptionValue=${(f = o.controlInfo) == null ? void 0 : f.fromOptionValue}
|
335
|
+
.toOptionValue=${(r = o.controlInfo) == null ? void 0 : r.toOptionValue}
|
336
|
+
></luzmo-edit-option-switch>
|
337
|
+
`;
|
338
|
+
}, Z = (o) => {
|
339
|
+
var d, m, p, s, f, r;
|
340
|
+
const t = ((p = (m = (d = o.translations) == null ? void 0 : d.options) == null ? void 0 : m[o.optionKey]) == null ? void 0 : p.label) ?? o.optionKey ?? "", l = ((s = o.controlInfo) == null ? void 0 : s.placeholder) ?? "placeholder", n = I(o.options, o.optionKey) ?? "", e = o.size, {
|
341
|
+
extraLabel: i,
|
342
|
+
extraLabelTooltip: c,
|
343
|
+
extraLabelHasClickAction: u,
|
344
|
+
extraLabelClickAction: a
|
345
|
+
} = C(o), b = O(o);
|
346
|
+
return y`
|
347
|
+
<luzmo-edit-option-text-field
|
348
|
+
.label=${t}
|
349
|
+
.placeholder=${l}
|
350
|
+
.value=${n}
|
351
|
+
.size=${e}
|
352
|
+
.extraLabel=${i}
|
353
|
+
.extraLabelTooltip=${c}
|
354
|
+
.extraLabelHasClickAction=${u}
|
355
|
+
@extraLabelClick=${a}
|
356
|
+
@option-changed=${b}
|
357
|
+
.fromOptionValue=${(f = o.controlInfo) == null ? void 0 : f.fromOptionValue}
|
358
|
+
.toOptionValue=${(r = o.controlInfo) == null ? void 0 : r.toOptionValue}
|
359
|
+
></luzmo-edit-option-text-field>
|
360
|
+
`;
|
361
|
+
}, g = (o) => {
|
362
|
+
switch (o.controlType) {
|
363
|
+
case "picker":
|
364
|
+
return J(o);
|
365
|
+
case "slider":
|
366
|
+
return X(o);
|
367
|
+
case "switch":
|
368
|
+
return Y(o);
|
369
|
+
case "multi-language-field":
|
370
|
+
return q(o);
|
371
|
+
case "text-field":
|
372
|
+
return Z(o);
|
373
|
+
case "number-field":
|
374
|
+
return D(o);
|
375
|
+
case "positions-number-field":
|
376
|
+
return Q(o);
|
377
|
+
case "radio-button-group":
|
378
|
+
return W(o);
|
379
|
+
case "color-picker":
|
380
|
+
return U(o);
|
381
|
+
case "action-button-group":
|
382
|
+
return R(o);
|
383
|
+
}
|
384
|
+
}, oo = (o, t) => {
|
385
|
+
const l = (n) => {
|
386
|
+
for (const e of n) {
|
387
|
+
if (e.key === o)
|
388
|
+
return e.control;
|
389
|
+
if (e.children) {
|
390
|
+
const i = l(e.children);
|
391
|
+
if (i)
|
392
|
+
return i;
|
393
|
+
}
|
394
|
+
}
|
395
|
+
return null;
|
396
|
+
};
|
397
|
+
for (const n of t) {
|
398
|
+
const e = l(n.children);
|
399
|
+
if (e)
|
400
|
+
return e;
|
401
|
+
}
|
402
|
+
return null;
|
403
|
+
};
|
404
|
+
var to = Object.defineProperty, A = (o, t, l, n) => {
|
405
|
+
for (var e = void 0, i = o.length - 1, c; i >= 0; i--)
|
406
|
+
(c = o[i]) && (e = c(t, l, e) || e);
|
407
|
+
return e && to(t, l, e), e;
|
408
|
+
};
|
409
|
+
const M = class M extends F {
|
410
|
+
constructor() {
|
411
|
+
super(...arguments), this._loadItemConfig = new B(this, {
|
412
|
+
task: async ([t, l, n]) => {
|
413
|
+
let e = !1;
|
414
|
+
if (t !== this._itemTypeLoaded) {
|
415
|
+
const u = /* @__PURE__ */ Object.assign({
|
416
|
+
"./item-configs/bar-chart.config.ts": () => import("../bar-chart.config-CQ6HAvs2.js"),
|
417
|
+
"./item-configs/column-chart.config.ts": () => import("../column-chart.config-C9hP0kX7.js"),
|
418
|
+
"./item-configs/donut-chart.config.ts": () => import("../donut-chart.config-3DhKiSSM.js"),
|
419
|
+
"./item-configs/imageobject.config.ts": () => import("../imageobject.config-DZLp9Elq.js"),
|
420
|
+
"./item-configs/line-chart.config.ts": () => import("../line-chart.config-CIVN6uLI.js"),
|
421
|
+
"./item-configs/textobject.config.ts": () => import("../textobject.config-C8opcGG4.js")
|
422
|
+
});
|
423
|
+
if (u[`./item-configs/${t}.config.ts`]) {
|
424
|
+
const a = await u[`./item-configs/${t}.config.ts`]();
|
425
|
+
this._optionsConfig = (a == null ? void 0 : a.default) ?? {};
|
426
|
+
}
|
427
|
+
e = !0;
|
428
|
+
}
|
429
|
+
if (n !== this._languageLoaded || e) {
|
430
|
+
const u = /* @__PURE__ */ Object.assign({ "./item-translations/bar-chart.en.ts": () => import("../bar-chart.en-FwT00qdU.js"), "./item-translations/bar-chart.fr.ts": () => import("../bar-chart.fr-DbxKiM0j.js"), "./item-translations/bar-chart.nl.ts": () => import("../bar-chart.nl-ahX1ARpH.js"), "./item-translations/donut-chart.en.ts": () => import("../donut-chart.en-CzjT4-XN.js"), "./item-translations/donut-chart.fr.ts": () => import("../donut-chart.fr-DftPrKbG.js"), "./item-translations/donut-chart.nl.ts": () => import("../donut-chart.nl-NMatXfhK.js") });
|
431
|
+
if (u[`./item-translations/${t}.${n}.ts`]) {
|
432
|
+
const a = await u[`./item-translations/${t}.${n}.ts`]();
|
433
|
+
this._translations = (a == null ? void 0 : a.default) ?? {};
|
434
|
+
}
|
435
|
+
}
|
436
|
+
const i = oo(l, this._optionsConfig), c = i == null ? void 0 : i.type;
|
437
|
+
if (c !== this._controlTypeLoaded) {
|
438
|
+
const u = /* @__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-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") });
|
439
|
+
u[`../edit-option-${c}/index.ts`] && await u[`../edit-option-${c}/index.ts`](), this._controlTypeLoaded = c;
|
440
|
+
}
|
441
|
+
return i;
|
442
|
+
},
|
443
|
+
args: () => [this.itemType, this.optionKey, this.language]
|
444
|
+
}), this.language = "en", this.options = {}, this.slots = {}, this.theme = {}, this.size = "m", this.changedOptions = (t) => {
|
445
|
+
this.options = t, this.dispatchEvent(
|
446
|
+
new CustomEvent("options-changed", {
|
447
|
+
bubbles: !0,
|
448
|
+
composed: !0,
|
449
|
+
cancelable: !0,
|
450
|
+
detail: {
|
451
|
+
options: t
|
452
|
+
}
|
453
|
+
})
|
454
|
+
);
|
455
|
+
};
|
456
|
+
}
|
457
|
+
render() {
|
458
|
+
return this._loadItemConfig.render({
|
459
|
+
pending: () => y`<p>Loading...</p>`,
|
460
|
+
complete: (t) => g({
|
461
|
+
controlType: t == null ? void 0 : t.type,
|
462
|
+
optionKey: this.optionKey,
|
463
|
+
controlInfo: t,
|
464
|
+
options: this.options,
|
465
|
+
slots: this.slots,
|
466
|
+
theme: this.theme,
|
467
|
+
language: this.language,
|
468
|
+
translations: this._translations,
|
469
|
+
size: this.size,
|
470
|
+
changeCallback: this.changedOptions
|
471
|
+
}),
|
472
|
+
error: (t) => y`
|
473
|
+
<div>
|
474
|
+
Could not load control for option: '${this.optionKey}' of chart
|
475
|
+
'${this.itemType}': ${t}.
|
476
|
+
</div>
|
477
|
+
`
|
478
|
+
});
|
479
|
+
}
|
480
|
+
};
|
481
|
+
M.styles = G(N);
|
482
|
+
let v = M;
|
483
|
+
A([
|
484
|
+
K({ type: String, reflect: !0 })
|
485
|
+
], v.prototype, "language");
|
486
|
+
A([
|
487
|
+
K({ type: String, reflect: !0, attribute: "item-type" })
|
488
|
+
], v.prototype, "itemType");
|
489
|
+
A([
|
490
|
+
K({ type: String, reflect: !0, attribute: "option-key" })
|
491
|
+
], v.prototype, "optionKey");
|
492
|
+
A([
|
493
|
+
K({ type: Object })
|
494
|
+
], v.prototype, "options");
|
495
|
+
A([
|
496
|
+
K({ type: Object })
|
497
|
+
], v.prototype, "slots");
|
498
|
+
A([
|
499
|
+
K({ type: Object })
|
500
|
+
], v.prototype, "theme");
|
501
|
+
A([
|
502
|
+
K({ type: String, reflect: !0 })
|
503
|
+
], v.prototype, "size");
|
504
|
+
customElements.get("luzmo-edit-option") || customElements.define("luzmo-edit-option", v);
|
505
|
+
export {
|
506
|
+
v as LuzmoEditOption
|
507
|
+
};
|
@@ -0,0 +1,108 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
key: string;
|
3
|
+
type: string;
|
4
|
+
open: boolean;
|
5
|
+
children: ({
|
6
|
+
key: string;
|
7
|
+
control: {
|
8
|
+
type: string;
|
9
|
+
default: string;
|
10
|
+
enum: string[];
|
11
|
+
min?: undefined;
|
12
|
+
max?: undefined;
|
13
|
+
step?: undefined;
|
14
|
+
extraLabel?: undefined;
|
15
|
+
extraLabelHasClickAction?: undefined;
|
16
|
+
extraLabelClickAction?: undefined;
|
17
|
+
};
|
18
|
+
visibleIf: (_: any, slots: any) => boolean | undefined;
|
19
|
+
type?: undefined;
|
20
|
+
} | {
|
21
|
+
type: string;
|
22
|
+
visibleIf: (_: any, slots: any) => boolean | undefined;
|
23
|
+
key?: undefined;
|
24
|
+
control?: undefined;
|
25
|
+
} | {
|
26
|
+
key: string;
|
27
|
+
control: {
|
28
|
+
type: string;
|
29
|
+
default: boolean;
|
30
|
+
enum?: undefined;
|
31
|
+
min?: undefined;
|
32
|
+
max?: undefined;
|
33
|
+
step?: undefined;
|
34
|
+
extraLabel?: undefined;
|
35
|
+
extraLabelHasClickAction?: undefined;
|
36
|
+
extraLabelClickAction?: undefined;
|
37
|
+
};
|
38
|
+
visibleIf?: undefined;
|
39
|
+
type?: undefined;
|
40
|
+
} | {
|
41
|
+
key: string;
|
42
|
+
control: {
|
43
|
+
type: string;
|
44
|
+
default: boolean;
|
45
|
+
enum?: undefined;
|
46
|
+
min?: undefined;
|
47
|
+
max?: undefined;
|
48
|
+
step?: undefined;
|
49
|
+
extraLabel?: undefined;
|
50
|
+
extraLabelHasClickAction?: undefined;
|
51
|
+
extraLabelClickAction?: undefined;
|
52
|
+
};
|
53
|
+
visibleIf: (_: any, slots: any) => boolean | undefined;
|
54
|
+
type?: undefined;
|
55
|
+
} | {
|
56
|
+
key: string;
|
57
|
+
control: {
|
58
|
+
type: string;
|
59
|
+
default: string;
|
60
|
+
enum: string[];
|
61
|
+
min?: undefined;
|
62
|
+
max?: undefined;
|
63
|
+
step?: undefined;
|
64
|
+
extraLabel?: undefined;
|
65
|
+
extraLabelHasClickAction?: undefined;
|
66
|
+
extraLabelClickAction?: undefined;
|
67
|
+
};
|
68
|
+
visibleIf?: undefined;
|
69
|
+
type?: undefined;
|
70
|
+
} | {
|
71
|
+
key: string;
|
72
|
+
control: {
|
73
|
+
type: string;
|
74
|
+
default: (_options: any, _slots: any, theme: any) => any;
|
75
|
+
min: number;
|
76
|
+
max: number;
|
77
|
+
step: number;
|
78
|
+
extraLabel: (options: any, _slots: any, theme: any) => "auto" | "reset" | undefined;
|
79
|
+
extraLabelHasClickAction: (options: any, _slots: any, theme: any) => boolean;
|
80
|
+
extraLabelClickAction: (options: any, _slots: any, _theme: any) => {
|
81
|
+
value: null;
|
82
|
+
options: any;
|
83
|
+
};
|
84
|
+
enum?: undefined;
|
85
|
+
};
|
86
|
+
visibleIf?: undefined;
|
87
|
+
type?: undefined;
|
88
|
+
} | {
|
89
|
+
key: string;
|
90
|
+
control: {
|
91
|
+
type: string;
|
92
|
+
default: (_options: any, _slots: any, theme: any) => any;
|
93
|
+
extraLabel: (options: any, _slots: any, theme: any) => "reset" | undefined;
|
94
|
+
extraLabelHasClickAction: (options: any, _slots: any, theme: any) => boolean;
|
95
|
+
extraLabelClickAction: (options: any, _slots: any, theme: any) => {
|
96
|
+
value: any;
|
97
|
+
options: any;
|
98
|
+
};
|
99
|
+
enum?: undefined;
|
100
|
+
min?: undefined;
|
101
|
+
max?: undefined;
|
102
|
+
step?: undefined;
|
103
|
+
};
|
104
|
+
visibleIf: (_: any, slots: any) => boolean | undefined;
|
105
|
+
type?: undefined;
|
106
|
+
})[];
|
107
|
+
}[];
|
108
|
+
export default _default;
|