@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
package/lib/index-CrWoFMZ3.cjs
DELETED
@@ -1,22 +0,0 @@
|
|
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
|
-
"use strict";const u=require("./if-defined-V7yEJWI3.cjs"),x=require("./observe-slot-text-oJ0a2KY9.cjs");function p(d,t,e){return typeof d===t?()=>d:typeof d=="function"?d:e}class g{constructor(t,{direction:e,elementEnterAction:r,elements:i,focusInIndex:s,isFocusableElement:o,listenerScope:v}={elements:()=>[]}){this._currentIndex=-1,this.prevIndex=-1,this._direction=()=>"both",this.directionLength=5,this.elementEnterAction=a=>{},this._focused=!1,this._focusInIndex=a=>0,this.isFocusableElement=a=>!0,this._listenerScope=()=>this.host,this.offset=0,this.recentlyConnected=!1,this.handleFocusin=a=>{if(!this.isEventWithinListenerScope(a))return;const n=a.composedPath();let h=-1;n.find(f=>(h=this.elements.indexOf(f),h!==-1)),this.prevIndex=this.currentIndex,this.currentIndex=h>-1?h:this.currentIndex,this.isRelatedTargetOrContainAnElement(a)&&this.hostContainsFocus()},this.handleClick=()=>{var h;const a=this.elements;if(a.length===0)return;let n=a[this.currentIndex];this.currentIndex<0||((!n||!this.isFocusableElement(n))&&(this.setCurrentIndexCircularly(1),n=a[this.currentIndex]),n&&this.isFocusableElement(n)&&((h=a[this.prevIndex])==null||h.setAttribute("tabindex","-1"),n.setAttribute("tabindex","0")))},this.handleFocusout=a=>{this.isRelatedTargetOrContainAnElement(a)&&this.hostNoLongerContainsFocus()},this.handleKeydown=a=>{if(!this.acceptsEventCode(a.code)||a.defaultPrevented)return;let n=0;switch(this.prevIndex=this.currentIndex,a.code){case"ArrowRight":{n+=1;break}case"ArrowDown":{n+=this.direction==="grid"?this.directionLength:1;break}case"ArrowLeft":{n-=1;break}case"ArrowUp":{n-=this.direction==="grid"?this.directionLength:1;break}case"End":{this.currentIndex=0,n-=1;break}case"Home":{this.currentIndex=this.elements.length-1,n+=1;break}}a.preventDefault(),this.direction==="grid"&&this.currentIndex+n<0?this.currentIndex=0:this.direction==="grid"&&this.currentIndex+n>this.elements.length-1?this.currentIndex=this.elements.length-1:this.setCurrentIndexCircularly(n),this.elementEnterAction(this.elements[this.currentIndex]),this.focus()},this.mutationObserver=new MutationObserver(()=>{this.handleItemMutation()}),this.host=t,this.host.addController(this),this._elements=i,this.isFocusableElement=o||this.isFocusableElement,this._direction=p(e,"string",this._direction),this.elementEnterAction=r||this.elementEnterAction,this._focusInIndex=p(s,"number",this._focusInIndex),this._listenerScope=p(v,"object",this._listenerScope)}get currentIndex(){return this._currentIndex===-1&&(this._currentIndex=this.focusInIndex),this._currentIndex-this.offset}set currentIndex(t){this._currentIndex=t+this.offset}get direction(){return this._direction()}get elements(){return this.cachedElements||(this.cachedElements=this._elements()),this.cachedElements}set focused(t){t!==this.focused&&(this._focused=t)}get focused(){return this._focused}get focusInElement(){return this.elements[this.focusInIndex]}get focusInIndex(){return this._focusInIndex(this.elements)}isEventWithinListenerScope(t){return this._listenerScope()===this.host?!0:t.composedPath().includes(this._listenerScope())}handleItemMutation(){if(this._currentIndex===-1||this.elements.length<=this._elements().length)return;const t=this.elements[this.currentIndex];if(this.clearElementCache(),this.elements.includes(t))return;const e=this.currentIndex!==this.elements.length,r=e?1:-1;e&&this.setCurrentIndexCircularly(-1),this.setCurrentIndexCircularly(r),this.focus()}update({elements:t}={elements:()=>[]}){this.unmanage(),this._elements=t,this.clearElementCache(),this.manage()}focus(t){var i;const e=this.elements;if(e.length===0)return;let r=e[this.currentIndex];(!r||!this.isFocusableElement(r))&&(this.setCurrentIndexCircularly(1),r=e[this.currentIndex]),r&&this.isFocusableElement(r)&&((i=e[this.prevIndex])==null||i.setAttribute("tabindex","-1"),r.tabIndex=0,r.focus(t))}clearElementCache(t=0){this.mutationObserver.disconnect(),delete this.cachedElements,this.offset=t,requestAnimationFrame(()=>{this.elements.forEach(e=>{this.mutationObserver.observe(e,{attributes:!0})})})}setCurrentIndexCircularly(t){const{length:e}=this.elements;let r=e;this.prevIndex=this.currentIndex;let i=(e+this.currentIndex+t)%e;for(;r&&this.elements[i]&&!this.isFocusableElement(this.elements[i]);)i=(e+i+t)%e,r-=1;this.currentIndex=i}hostContainsFocus(){this.host.addEventListener("focusout",this.handleFocusout),this.host.addEventListener("keydown",this.handleKeydown),this.focused=!0}hostNoLongerContainsFocus(){this.host.addEventListener("focusin",this.handleFocusin),this.host.removeEventListener("focusout",this.handleFocusout),this.host.removeEventListener("keydown",this.handleKeydown),this.focused=!1}isRelatedTargetOrContainAnElement(t){const e=t.relatedTarget,r=this.elements.includes(e),i=this.elements.some(s=>s.contains(e));return!(r||i)}acceptsEventCode(t){if(t==="End"||t==="Home")return!0;switch(this.direction){case"horizontal":return t==="ArrowLeft"||t==="ArrowRight";case"vertical":return t==="ArrowUp"||t==="ArrowDown";case"both":case"grid":return t.startsWith("Arrow")}}manage(){this.addEventListeners()}unmanage(){this.removeEventListeners()}addEventListeners(){this.host.addEventListener("focusin",this.handleFocusin),this.host.addEventListener("click",this.handleClick)}removeEventListeners(){this.host.removeEventListener("focusin",this.handleFocusin),this.host.removeEventListener("focusout",this.handleFocusout),this.host.removeEventListener("keydown",this.handleKeydown),this.host.removeEventListener("click",this.handleClick)}hostConnected(){this.recentlyConnected=!0,this.addEventListeners()}hostDisconnected(){this.mutationObserver.disconnect(),this.removeEventListeners()}hostUpdated(){this.recentlyConnected&&(this.recentlyConnected=!1,this.elements.forEach(t=>{this.mutationObserver.observe(t,{attributes:!0})}))}}class b extends g{constructor(){super(...arguments),this.managed=!0,this.manageIndexesAnimationFrame=0}set focused(t){t!==this.focused&&(super.focused=t,this.manageTabindexes())}get focused(){return super.focused}clearElementCache(t=0){cancelAnimationFrame(this.manageIndexesAnimationFrame),super.clearElementCache(t),this.managed&&(this.manageIndexesAnimationFrame=requestAnimationFrame(()=>this.manageTabindexes()))}manageTabindexes(){this.focused?this.updateTabindexes(()=>({tabIndex:-1})):this.updateTabindexes(t=>({removeTabIndex:t.contains(this.focusInElement)&&t!==this.focusInElement,tabIndex:t===this.focusInElement?0:-1}))}updateTabindexes(t){this.elements.forEach(e=>{const{tabIndex:r,removeTabIndex:i}=t(e);if(!i){this.focused?e!==this.elements[this.currentIndex]&&(e.tabIndex=r):e.tabIndex=r;return}e.removeAttribute("tabindex");const s=e;s.requestUpdate&&s.requestUpdate()})}manage(){this.managed=!0,this.manageTabindexes(),super.manage()}unmanage(){this.managed=!1,this.updateTabindexes(()=>({tabIndex:0})),super.unmanage()}hostUpdated(){super.hostUpdated(),this.host.hasUpdated||this.manageTabindexes()}}const z=":host{gap:var(--luzmo-action-group-horizontal-spacing-regular, var(--action-group-horizontal-spacing-regular));flex-wrap:wrap;display:flex}::slotted(*){flex-shrink:0}::slotted(:focus-visible){z-index:3}:host(:not([vertical]):not([compact])) ::slotted(*){flex-shrink:0}:host([vertical]){gap:var(--luzmo-action-group-vertical-spacing-regular, var(--action-group-vertical-spacing-regular));flex-direction:column;display:inline-flex}:host([compact]){gap:var(--luzmo-action-group-gap-size-compact, var(--action-group-gap-size-compact))}:host([compact]:not([quiet])){flex-wrap:nowrap}:host([compact]:not([quiet])) ::slotted(*){border-radius:var(--luzmo-action-group-border-radius-reset, var(--action-group-border-radius-reset));z-index:0;position:relative}:host([compact]:not([quiet])) ::slotted(:first-child){--luzmo-actionbutton-focus-indicator-border-radius: var( --luzmo-action-group-border-radius, var(--action-group-border-radius) ) 0px 0px var(--luzmo-action-group-border-radius, var(--action-group-border-radius));border-start-start-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));border-end-start-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));margin-inline-start:var(--luzmo-action-group-button-spacing-reset, var(--action-group-button-spacing-reset))}:host([compact]:not([quiet])) ::slotted(:not(:first-child)){--luzmo-actionbutton-focus-indicator-border-radius: 0px;margin-inline-start:var(--luzmo-action-group-horizontal-spacing-compact, var(--action-group-horizontal-spacing-compact));margin-inline-end:var(--luzmo-action-group-horizontal-spacing-compact, var(--action-group-horizontal-spacing-compact))}:host([compact]:not([quiet])) ::slotted(:last-child){--luzmo-actionbutton-focus-indicator-border-radius: 0px var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0px;border-start-end-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));border-end-end-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));margin-inline-start:var(--luzmo-action-group-horizontal-spacing-compact, var(--action-group-horizontal-spacing-compact));margin-inline-end:var(--luzmo-action-group-border-radius-reset, var(--action-group-border-radius-reset))}:host([compact]:not([quiet])) ::slotted([selected]){z-index:1}@media (hover: hover){:host([compact]:not([quiet])) ::slotted(:hover){z-index:2}}:host([compact]:not([quiet])) ::slotted(:focus-visible){z-index:3}:host([compact]:not([quiet])[vertical]){gap:var(--luzmo-action-group-gap-size-compact, var(--action-group-gap-size-compact))}:host([compact][vertical]:not([quiet])) ::slotted(*){border-radius:var(--luzmo-action-group-border-radius-reset, var(--action-group-border-radius-reset))}:host([compact][vertical]:not([quiet])) ::slotted(:first-child){--luzmo-actionbutton-focus-indicator-border-radius: var( --luzmo-action-group-border-radius, var(--action-group-border-radius) ) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0px 0px;border-start-start-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));border-start-end-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));margin-block-start:var(--luzmo-action-group-vertical-spacing-compact, var(--action-group-vertical-spacing-compact));margin-block-end:var(--luzmo-action-group-vertical-spacing-compact, var(--action-group-vertical-spacing-compact));margin-inline-end:var(--luzmo-action-group-button-spacing-reset, var(--action-group-button-spacing-reset))}:host([compact][vertical]:not([quiet])) ::slotted(:not(:first-child)){margin-block-start:var(--luzmo-action-group-button-spacing-reset, var(--action-group-button-spacing-reset));margin-block-end:var(--luzmo-action-group-vertical-spacing-compact, var(--action-group-vertical-spacing-compact));margin-inline-start:var(--luzmo-action-group-button-spacing-reset, var(--action-group-button-spacing-reset));margin-inline-end:var(--luzmo-action-group-button-spacing-reset, var(--action-group-button-spacing-reset))}:host([compact][vertical]:not([quiet])) ::slotted(:last-child){--luzmo-actionbutton-focus-indicator-border-radius: 0px 0px var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius));border-end-end-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));border-end-start-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));margin-block-start:var(--luzmo-action-group-vertical-spacing-compact, var(--action-group-vertical-spacing-compact));margin-block-end:var(--luzmo-action-group-button-spacing-reset, var(--action-group-button-spacing-reset))}:host([justified]) ::slotted(*){flex:1}:host{--action-group-gap-size-compact: 0px;--action-group-horizontal-spacing-compact: -1px;--action-group-vertical-spacing-compact: -1px;--action-group-button-spacing-reset: 0px;--action-group-border-radius-reset: 0px;--action-group-border-radius: var(--luzmo-border-radius);--action-group-horizontal-spacing-regular: var(--luzmo-spacing-3);--action-group-vertical-spacing-regular: var(--luzmo-spacing-3)}:host([size=xs]),:host([size=s]){--action-group-horizontal-spacing-regular: var(--luzmo-spacing-2);--action-group-vertical-spacing-regular: var(--luzmo-spacing-2)}:host,:host([size=l]),:host([size=xl]){--action-group-horizontal-spacing-regular: var(--luzmo-spacing-3);--action-group-vertical-spacing-regular: var(--luzmo-spacing-3)}:host([dir][compact][vertical]) ::slotted(:nth-child(n)){margin-right:0;margin-left:0}:host([justified]) ::slotted(:not([role])),:host([vertical]) ::slotted(:not([role])){display:flex;flex-direction:column;align-items:stretch}:host([compact]:not([quiet])) ::slotted(:not([role])){--overriden-border-radius: 0;--luzmo-action-button-border-radius: var(--overriden-border-radius)}:host([compact][vertical]:not([quiet])) ::slotted(:not([role]):first-child){--overriden-border-radius: var( --luzmo-action-group-border-radius, var(--action-group-border-radius) ) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0 0}:host([compact][vertical]:not([quiet])) ::slotted(:not([role]):last-child){--overriden-border-radius: 0 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius))}:host([dir=ltr][compact]:not([quiet],[vertical])) ::slotted(:not([role]):first-child){--overriden-border-radius: var( --luzmo-action-group-border-radius, var(--action-group-border-radius) ) 0 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius))}:host([dir=rtl][compact]:not([quiet],[vertical])) ::slotted(:not([role]):first-child){--overriden-border-radius: 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0}:host([dir=ltr][compact]:not([quiet],[vertical])) ::slotted(:not([role]):last-child){--overriden-border-radius: 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0}:host([dir=rtl][compact]:not([quiet],[vertical])) ::slotted(:not([role]):last-child){--overriden-border-radius: var( --luzmo-action-group-border-radius, var(--action-group-border-radius) ) 0 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius))}:host([compact]:not([quiet])) ::slotted(*){--luzmo-action-button-focus-ring-border-radius: 0}:host([compact][vertical]:not([quiet])) ::slotted(:first-child){--luzmo-action-button-focus-ring-border-radius: var(--luzmo-border-radius) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0 0}:host([compact][vertical]:not([quiet])) ::slotted(:last-child){--luzmo-action-button-focus-ring-border-radius: 0 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius))}:host([dir=ltr][compact]:not([quiet],[vertical])) ::slotted(:first-child){--luzmo-action-button-focus-ring-border-radius: var(--luzmo-border-radius) 0 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius))}:host([dir=rtl][compact]:not([quiet],[vertical])) ::slotted(:first-child){--luzmo-action-button-focus-ring-border-radius: 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0}:host([dir=ltr][compact]:not([quiet],[vertical])) ::slotted(:last-child){--luzmo-action-button-focus-ring-border-radius: 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0}:host([dir=rtl][compact]:not([quiet],[vertical])) ::slotted(:last-child){--luzmo-action-button-focus-ring-border-radius: var(--luzmo-border-radius) 0 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius))}";var I=Object.defineProperty,E=Object.getOwnPropertyDescriptor,l=(d,t,e,r)=>{for(var i=r>1?void 0:r?E(t,e):t,s=d.length-1,o;s>=0;s--)(o=d[s])&&(i=(r?o(t,e,i):o(i))||i);return r&&i&&I(t,e,i),i};const m=[];class c extends u.SizedMixin(u.LuzmoElement,{validSizes:["xs","s","m","l","xl"],noDefaultSize:!0}){constructor(){super(),this._buttons=[],this._buttonSelector="luzmo-action-button, luzmo-action-menu",this.rovingTabindexController=new b(this,{focusInIndex:t=>{let e=-1;const r=t.findIndex((i,s)=>(!t[e]&&!i.disabled&&(e=s),i.selected&&!i.disabled));return t[r]?r:e},elements:()=>this.buttons,isFocusableElement:t=>!t.disabled}),this.compact=!1,this.emphasized=!1,this.justified=!1,this.label="",this.quiet=!1,this.vertical=!1,this._selected=m,this.hasManaged=!1,this.manageButtons=()=>{if(!this.slotElement)return;const e=this.slotElement.assignedElements({flatten:!0}).reduce((r,i)=>{if(i.matches(this._buttonSelector))r.push(i);else{const s=[...i.querySelectorAll(`:scope > ${this._buttonSelector}`)];r.push(...s)}return r},[]);if(this.buttons=e,this.selects||!this.hasManaged){const r=[];this.buttons.forEach(i=>{i.selected&&r.push(i.value)}),this.setSelected([...this.selected,...r])}this.manageChildren(),this.manageSelects(),this.hasManaged=!0},new x.s(this,{config:{childList:!0,subtree:!0},callback:()=>{this.manageButtons()},skipInitial:!0})}static get styles(){return[u.r(z)]}set buttons(t){t!==this.buttons&&(this._buttons=t,this.rovingTabindexController.clearElementCache())}get buttons(){return this._buttons}set selected(t){this.requestUpdate("selected",this._selected),this._selected=t,this.updateComplete.then(()=>{this.applySelects(),this.manageChildren()})}get selected(){return this._selected}dispatchChange(t){this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0,cancelable:!0}))||(this.setSelected(t),this.buttons.map(r=>{r.selected=this.selected.includes(r.value)}))}setSelected(t,e){if(t===this.selected)return;const r=this.selected;this.requestUpdate("selected",r),this._selected=t,e&&this.dispatchChange(r)}focus(t){this.rovingTabindexController.focus(t)}deselectSelectedButtons(){this.buttons.forEach(t=>{t.selected&&(t.selected=!1,t.tabIndex=-1,t.setAttribute(this.selects?"aria-checked":"aria-pressed","false"))})}handleActionButtonChange(t){t.stopPropagation(),t.preventDefault()}handleClick(t){const e=t.target;if(e.value!==void 0)switch(this.selects){case"single":{this.deselectSelectedButtons(),e.selected=!0,e.tabIndex=0,e.setAttribute("aria-checked","true"),this.setSelected([e.value],!0);break}case"multiple":{const r=[...this.selected];e.selected=!e.selected,e.setAttribute("aria-checked",e.selected?"true":"false"),e.selected?r.push(e.value):r.splice(this.selected.indexOf(e.value),1),this.setSelected(r,!0),this.buttons.forEach(i=>{i.tabIndex=-1}),e.tabIndex=0;break}}}async applySelects(){await this.manageSelects(!0)}async manageSelects(t){if(this.buttons.length===0)return;const e=this.buttons;switch(this.selects){case"single":{this.setAttribute("role","radiogroup");const r=[],i=e.map(async o=>{await o.updateComplete,o.setAttribute("role","radio"),o.setAttribute("aria-checked",o.selected?"true":"false"),o.selected&&r.push(o)});if(t)break;await Promise.all(i);const s=r.map(o=>o.value);this.setSelected(s||m);break}case"multiple":{this.getAttribute("role")==="radiogroup"&&this.removeAttribute("role");const r=[],i=e.map(async o=>{await o.updateComplete,o.setAttribute("role","checkbox"),o.setAttribute("aria-checked",o.selected?"true":"false"),o.selected&&r.push(o.value)});if(t)break;await Promise.all(i);const s=r.length>0?r:m;this.setSelected(s);break}default:if(this.selected.length>0){const r=[],i=e.map(async s=>{await s.updateComplete,s.setAttribute("role","button"),s.selected?(s.setAttribute("aria-pressed","true"),r.push(s)):s.removeAttribute("aria-pressed")});if(t)break;await Promise.all(i),this.setSelected(r.map(s=>s.value))}else{this.buttons.forEach(r=>{r.setAttribute("role","button")});break}}this.hasAttribute("role")||this.setAttribute("role","toolbar")}render(){return u.x`
|
21
|
-
<slot role="presentation" @slotchange=${this.manageButtons}></slot>
|
22
|
-
`}firstUpdated(t){super.firstUpdated(t),this.addEventListener("click",this.handleClick)}updated(t){super.updated(t),t.has("selects")&&(this.manageSelects(),this.manageChildren(),this.selects?this.renderRoot.addEventListener("change",this.handleActionButtonChange):this.renderRoot.removeEventListener("change",this.handleActionButtonChange)),(t.has("quiet")||t.has("emphasized")||t.has("size")||t.has("staticColor"))&&this.manageChildren(t),t.has("label")&&(this.label||t.get("label")!==void 0)&&(this.label.length>0?this.setAttribute("aria-label",this.label):this.removeAttribute("aria-label"))}manageChildren(t){this.buttons.forEach(e=>{(this.quiet||t!=null&&t.get("quiet"))&&(e.quiet=this.quiet),(this.emphasized||t!=null&&t.get("emphasized"))&&(e.emphasized=this.emphasized),(this.staticColor||t!=null&&t.get("staticColor"))&&(e.staticColor=this.staticColor),(this.selects||!this.hasManaged)&&(e.selected=this.selected.includes(e.value)),this.size&&(this.size!=="m"||(t==null?void 0:t.get("size"))!==void 0)&&(e.size=this.size)})}}l([u.n({type:Boolean,reflect:!0})],c.prototype,"compact",2);l([u.n({type:Boolean,reflect:!0})],c.prototype,"emphasized",2);l([u.n({type:Boolean,reflect:!0})],c.prototype,"justified",2);l([u.n({type:String})],c.prototype,"label",2);l([u.n({type:Boolean,reflect:!0})],c.prototype,"quiet",2);l([u.n({type:String})],c.prototype,"selects",2);l([u.n({reflect:!0,attribute:"static-color"})],c.prototype,"staticColor",2);l([u.n({type:Boolean,reflect:!0})],c.prototype,"vertical",2);l([u.n({type:Array})],c.prototype,"selected",1);l([u.e("slot")],c.prototype,"slotElement",2);customElements.get("luzmo-action-group")||customElements.define("luzmo-action-group",c);exports.FocusGroupController=g;exports.LuzmoActionGroup=c;exports.RovingTabindexController=b;
|