@luzmo/analytics-components-kit 1.0.1-alpha.4 → 1.0.1-alpha.6
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-DWRUSKKF-C2JoUGYR.cjs +56 -0
- package/components/async-directive-DWRUSKKF-CNTJHpgh.js +152 -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/{lib/button-base-CtfPWS-P.js → components/button-base-B7v4eeRh-B4fczZlv.js} +55 -36
- package/components/button-base-B7v4eeRh-CjngVDsD.cjs +43 -0
- package/components/checkbox-mixin-BFGTmw17-BR4ufh0S.js +88 -0
- package/components/checkbox-mixin-BFGTmw17-lIHmn1jk.cjs +45 -0
- package/components/directive-helpers-nlQRAaQt-CQ_hWlbQ.cjs +80 -0
- package/components/directive-helpers-nlQRAaQt-arNFWD5u.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 +136 -0
- package/components/display-settings-datetime/display-settings-datetime.d.ts +85 -0
- package/{lib/en-GB-BqYHIX1v.cjs → 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/components/display-settings-grand-totals/index.cjs +41 -0
- 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} +116 -106
- 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} +113 -132
- 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} +143 -242
- 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-Ck3NFAli.cjs +53 -0
- package/components/edit-option-base-w3UBiCoU.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/droppable-slot/index.cjs → components/en-BvtH5B9A.cjs} +1 -1
- package/{lib/index-D_KYpfBM.js → components/en-CN4CDOzo.js} +2 -3
- package/{lib/en-GB-CYx--4nh.js → components/en-GB-BMvD7axC.js} +1 -1
- package/{lib/index-0314DjEl.cjs → components/en-GB-DrOGXwdM.cjs} +1 -1
- package/{lib/draggable-data-item/index.cjs → components/en-US-BvtH5B9A.cjs} +1 -1
- package/components/en-US-CN4CDOzo.js +23 -0
- 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-BSAr_4u4-CNmaFBUP.cjs +60 -0
- package/components/if-defined-BSAr_4u4-CVDyXUmc.js +95 -0
- package/components/if-defined-_S7apvH1.js +29 -0
- package/components/if-defined-aQZR75uI.cjs +24 -0
- package/components/index-B0ZqIWfU.cjs +39 -0
- package/components/index-BEi8DTwW.cjs +36 -0
- package/components/index-Bti4K2L2.cjs +67 -0
- package/components/index-BuW8doNV.js +299 -0
- package/components/index-BxFGd_xp.cjs +36 -0
- package/components/index-ByfMhxDr.cjs +36 -0
- package/{lib/progress-circle/index.js → components/index-C44nA7Wn.js} +53 -20
- package/components/index-CHLcEawI.js +77 -0
- package/components/index-CKbGBBId.cjs +54 -0
- package/components/index-CMvLpPKD-CgGXdNKs.js +935 -0
- package/components/index-CMvLpPKD-DoxJRhRP.cjs +95 -0
- package/components/index-CQjWiSIp.cjs +202 -0
- package/components/index-C_Cxv6xn.js +164 -0
- package/components/index-C_xCeCrL.cjs +185 -0
- package/components/index-CdHFj3ra.cjs +59 -0
- package/components/index-Ci0Pe5UA.js +317 -0
- package/components/index-DC2Pby0z.cjs +95 -0
- package/components/index-DDleIdd8.cjs +192 -0
- package/components/index-DLrQ4hc5.cjs +42 -0
- package/components/index-DMbzEC_s.js +104 -0
- package/{lib/index-B9h2L_hV.js → components/index-DUlH3hbL.js} +1233 -1110
- package/{lib/en-CIeY2T5K.js → components/index-DeyQ1JGg.js} +439 -447
- package/components/index-DiSrnT1e.js +77 -0
- package/{lib/picker/index.js → components/index-Dkom_Qy5.js} +22 -6
- package/components/index-DxXcY78P.cjs +36 -0
- package/components/index-EkTLplXl.cjs +95 -0
- package/{lib/droppable-slot/index.js → components/index-FSUV_4nO.js} +18 -4
- package/components/index-Pmv-d4iw.js +744 -0
- package/{lib/index-CBCm4_7S.js → components/index-aLxc3xA_.js} +400 -459
- package/{lib/index-Bd4cKS9O.js → components/index-dJXOanPE.js} +67 -47
- package/components/index-f8GtjOLn.cjs +57 -0
- package/components/index-fbS4OrPM.js +145 -0
- package/components/index.cjs +20 -0
- package/components/index.js +74 -0
- package/components/language-resolution-8yZa5r_P-CLZhU076.js +161 -0
- package/components/language-resolution-8yZa5r_P-CpbzT4ej.cjs +52 -0
- package/components/localize-B6AsX_Zv.js +52 -0
- package/components/localize-DbobqcKs.cjs +20 -0
- package/components/observe-slot-text-ggb4kKgY-DqsddtTd.cjs +86 -0
- package/components/observe-slot-text-ggb4kKgY-yUxhPbbJ.js +221 -0
- package/{lib/popover-Bwnkg-5-.js → components/popover-DlkzrLpl-DFIvgCjc.js} +25 -6
- package/components/popover-DlkzrLpl-TYw7ejnD.cjs +48 -0
- package/components/property-CXJD1jOW.js +1480 -0
- package/components/property-ChsOQ1Yj.cjs +112 -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-BxMraZLS-Dc6r-Wg4.js +82 -0
- package/components/sized-mixin-BxMraZLS-w9I35lP7.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-DLrsMPet.cjs +24 -0
- package/components/state-DwFtyqCc.js +31 -0
- package/components/task-CgK9ztaw.cjs +24 -0
- package/components/task-DYLITx7R.js +120 -0
- package/components/text-field-CvKSS59x-BzSqtt2_.js +412 -0
- package/components/text-field-CvKSS59x-D0MM0fDH.cjs +131 -0
- package/components/utils.cjs +20 -0
- package/components/utils.js +20 -0
- 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-BDXFsKUM.cjs +0 -146
- package/lib/index-BmAD29P2.js +0 -106
- package/lib/index-Bo1DpZ-1.cjs +0 -58
- package/lib/index-C4ePDYEC.cjs +0 -41
- 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-DdtjeKYI.js +0 -928
- 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-DSbgZduE.js
DELETED
@@ -1,501 +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
|
-
import { S as v, L as f, r as x, x as z, n as l, e as I } from "./if-defined-BbzmSG-O.js";
|
21
|
-
import { s as E } from "./observe-slot-text-DOYmGOZe.js";
|
22
|
-
function p(c, t, e) {
|
23
|
-
return typeof c === t ? () => c : typeof c == "function" ? c : e;
|
24
|
-
}
|
25
|
-
class C {
|
26
|
-
constructor(t, {
|
27
|
-
direction: e,
|
28
|
-
elementEnterAction: r,
|
29
|
-
elements: i,
|
30
|
-
focusInIndex: s,
|
31
|
-
isFocusableElement: o,
|
32
|
-
listenerScope: g
|
33
|
-
} = { elements: () => [] }) {
|
34
|
-
this._currentIndex = -1, this.prevIndex = -1, this._direction = () => "both", this.directionLength = 5, this.elementEnterAction = (a) => {
|
35
|
-
}, this._focused = !1, this._focusInIndex = (a) => 0, this.isFocusableElement = (a) => !0, this._listenerScope = () => this.host, this.offset = 0, this.recentlyConnected = !1, this.handleFocusin = (a) => {
|
36
|
-
if (!this.isEventWithinListenerScope(a))
|
37
|
-
return;
|
38
|
-
const n = a.composedPath();
|
39
|
-
let h = -1;
|
40
|
-
n.find((b) => (h = this.elements.indexOf(b), h !== -1)), this.prevIndex = this.currentIndex, this.currentIndex = h > -1 ? h : this.currentIndex, this.isRelatedTargetOrContainAnElement(a) && this.hostContainsFocus();
|
41
|
-
}, this.handleClick = () => {
|
42
|
-
var h;
|
43
|
-
const a = this.elements;
|
44
|
-
if (a.length === 0)
|
45
|
-
return;
|
46
|
-
let n = a[this.currentIndex];
|
47
|
-
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")));
|
48
|
-
}, this.handleFocusout = (a) => {
|
49
|
-
this.isRelatedTargetOrContainAnElement(a) && this.hostNoLongerContainsFocus();
|
50
|
-
}, this.handleKeydown = (a) => {
|
51
|
-
if (!this.acceptsEventCode(a.code) || a.defaultPrevented)
|
52
|
-
return;
|
53
|
-
let n = 0;
|
54
|
-
switch (this.prevIndex = this.currentIndex, a.code) {
|
55
|
-
case "ArrowRight": {
|
56
|
-
n += 1;
|
57
|
-
break;
|
58
|
-
}
|
59
|
-
case "ArrowDown": {
|
60
|
-
n += this.direction === "grid" ? this.directionLength : 1;
|
61
|
-
break;
|
62
|
-
}
|
63
|
-
case "ArrowLeft": {
|
64
|
-
n -= 1;
|
65
|
-
break;
|
66
|
-
}
|
67
|
-
case "ArrowUp": {
|
68
|
-
n -= this.direction === "grid" ? this.directionLength : 1;
|
69
|
-
break;
|
70
|
-
}
|
71
|
-
case "End": {
|
72
|
-
this.currentIndex = 0, n -= 1;
|
73
|
-
break;
|
74
|
-
}
|
75
|
-
case "Home": {
|
76
|
-
this.currentIndex = this.elements.length - 1, n += 1;
|
77
|
-
break;
|
78
|
-
}
|
79
|
-
}
|
80
|
-
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();
|
81
|
-
}, this.mutationObserver = new MutationObserver(() => {
|
82
|
-
this.handleItemMutation();
|
83
|
-
}), this.host = t, this.host.addController(this), this._elements = i, this.isFocusableElement = o || this.isFocusableElement, this._direction = p(
|
84
|
-
e,
|
85
|
-
"string",
|
86
|
-
this._direction
|
87
|
-
), this.elementEnterAction = r || this.elementEnterAction, this._focusInIndex = p(
|
88
|
-
s,
|
89
|
-
"number",
|
90
|
-
this._focusInIndex
|
91
|
-
), this._listenerScope = p(
|
92
|
-
g,
|
93
|
-
"object",
|
94
|
-
this._listenerScope
|
95
|
-
);
|
96
|
-
}
|
97
|
-
get currentIndex() {
|
98
|
-
return this._currentIndex === -1 && (this._currentIndex = this.focusInIndex), this._currentIndex - this.offset;
|
99
|
-
}
|
100
|
-
set currentIndex(t) {
|
101
|
-
this._currentIndex = t + this.offset;
|
102
|
-
}
|
103
|
-
get direction() {
|
104
|
-
return this._direction();
|
105
|
-
}
|
106
|
-
get elements() {
|
107
|
-
return this.cachedElements || (this.cachedElements = this._elements()), this.cachedElements;
|
108
|
-
}
|
109
|
-
set focused(t) {
|
110
|
-
t !== this.focused && (this._focused = t);
|
111
|
-
}
|
112
|
-
get focused() {
|
113
|
-
return this._focused;
|
114
|
-
}
|
115
|
-
get focusInElement() {
|
116
|
-
return this.elements[this.focusInIndex];
|
117
|
-
}
|
118
|
-
get focusInIndex() {
|
119
|
-
return this._focusInIndex(this.elements);
|
120
|
-
}
|
121
|
-
isEventWithinListenerScope(t) {
|
122
|
-
return this._listenerScope() === this.host ? !0 : t.composedPath().includes(this._listenerScope());
|
123
|
-
}
|
124
|
-
/* In handleItemMutation() method the first if condition is checking if the element is not focused or if the element's children's length is not decreasing then it means no element has been deleted and we must return.
|
125
|
-
Then we are checking if the deleted element was the focused one before the deletion if so then we need to proceed else we casn return;
|
126
|
-
*/
|
127
|
-
handleItemMutation() {
|
128
|
-
if (this._currentIndex === -1 || this.elements.length <= this._elements().length)
|
129
|
-
return;
|
130
|
-
const t = this.elements[this.currentIndex];
|
131
|
-
if (this.clearElementCache(), this.elements.includes(t))
|
132
|
-
return;
|
133
|
-
const e = this.currentIndex !== this.elements.length, r = e ? 1 : -1;
|
134
|
-
e && this.setCurrentIndexCircularly(-1), this.setCurrentIndexCircularly(r), this.focus();
|
135
|
-
}
|
136
|
-
update({ elements: t } = { elements: () => [] }) {
|
137
|
-
this.unmanage(), this._elements = t, this.clearElementCache(), this.manage();
|
138
|
-
}
|
139
|
-
focus(t) {
|
140
|
-
var i;
|
141
|
-
const e = this.elements;
|
142
|
-
if (e.length === 0)
|
143
|
-
return;
|
144
|
-
let r = e[this.currentIndex];
|
145
|
-
(!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));
|
146
|
-
}
|
147
|
-
clearElementCache(t = 0) {
|
148
|
-
this.mutationObserver.disconnect(), delete this.cachedElements, this.offset = t, requestAnimationFrame(() => {
|
149
|
-
this.elements.forEach((e) => {
|
150
|
-
this.mutationObserver.observe(e, {
|
151
|
-
attributes: !0
|
152
|
-
});
|
153
|
-
});
|
154
|
-
});
|
155
|
-
}
|
156
|
-
setCurrentIndexCircularly(t) {
|
157
|
-
const { length: e } = this.elements;
|
158
|
-
let r = e;
|
159
|
-
this.prevIndex = this.currentIndex;
|
160
|
-
let i = (e + this.currentIndex + t) % e;
|
161
|
-
for (
|
162
|
-
;
|
163
|
-
// don't cycle the elements more than once
|
164
|
-
r && this.elements[i] && !this.isFocusableElement(this.elements[i]);
|
165
|
-
)
|
166
|
-
i = (e + i + t) % e, r -= 1;
|
167
|
-
this.currentIndex = i;
|
168
|
-
}
|
169
|
-
hostContainsFocus() {
|
170
|
-
this.host.addEventListener("focusout", this.handleFocusout), this.host.addEventListener("keydown", this.handleKeydown), this.focused = !0;
|
171
|
-
}
|
172
|
-
hostNoLongerContainsFocus() {
|
173
|
-
this.host.addEventListener("focusin", this.handleFocusin), this.host.removeEventListener("focusout", this.handleFocusout), this.host.removeEventListener("keydown", this.handleKeydown), this.focused = !1;
|
174
|
-
}
|
175
|
-
isRelatedTargetOrContainAnElement(t) {
|
176
|
-
const e = t.relatedTarget, r = this.elements.includes(e), i = this.elements.some(
|
177
|
-
(s) => s.contains(e)
|
178
|
-
);
|
179
|
-
return !(r || i);
|
180
|
-
}
|
181
|
-
acceptsEventCode(t) {
|
182
|
-
if (t === "End" || t === "Home")
|
183
|
-
return !0;
|
184
|
-
switch (this.direction) {
|
185
|
-
case "horizontal":
|
186
|
-
return t === "ArrowLeft" || t === "ArrowRight";
|
187
|
-
case "vertical":
|
188
|
-
return t === "ArrowUp" || t === "ArrowDown";
|
189
|
-
case "both":
|
190
|
-
case "grid":
|
191
|
-
return t.startsWith("Arrow");
|
192
|
-
}
|
193
|
-
}
|
194
|
-
manage() {
|
195
|
-
this.addEventListeners();
|
196
|
-
}
|
197
|
-
unmanage() {
|
198
|
-
this.removeEventListeners();
|
199
|
-
}
|
200
|
-
addEventListeners() {
|
201
|
-
this.host.addEventListener("focusin", this.handleFocusin), this.host.addEventListener("click", this.handleClick);
|
202
|
-
}
|
203
|
-
removeEventListeners() {
|
204
|
-
this.host.removeEventListener("focusin", this.handleFocusin), this.host.removeEventListener("focusout", this.handleFocusout), this.host.removeEventListener("keydown", this.handleKeydown), this.host.removeEventListener("click", this.handleClick);
|
205
|
-
}
|
206
|
-
hostConnected() {
|
207
|
-
this.recentlyConnected = !0, this.addEventListeners();
|
208
|
-
}
|
209
|
-
hostDisconnected() {
|
210
|
-
this.mutationObserver.disconnect(), this.removeEventListeners();
|
211
|
-
}
|
212
|
-
hostUpdated() {
|
213
|
-
this.recentlyConnected && (this.recentlyConnected = !1, this.elements.forEach((t) => {
|
214
|
-
this.mutationObserver.observe(t, {
|
215
|
-
attributes: !0
|
216
|
-
});
|
217
|
-
}));
|
218
|
-
}
|
219
|
-
}
|
220
|
-
class y extends C {
|
221
|
-
constructor() {
|
222
|
-
super(...arguments), this.managed = !0, this.manageIndexesAnimationFrame = 0;
|
223
|
-
}
|
224
|
-
set focused(t) {
|
225
|
-
t !== this.focused && (super.focused = t, this.manageTabindexes());
|
226
|
-
}
|
227
|
-
get focused() {
|
228
|
-
return super.focused;
|
229
|
-
}
|
230
|
-
clearElementCache(t = 0) {
|
231
|
-
cancelAnimationFrame(this.manageIndexesAnimationFrame), super.clearElementCache(t), this.managed && (this.manageIndexesAnimationFrame = requestAnimationFrame(
|
232
|
-
() => this.manageTabindexes()
|
233
|
-
));
|
234
|
-
}
|
235
|
-
manageTabindexes() {
|
236
|
-
this.focused ? this.updateTabindexes(() => ({ tabIndex: -1 })) : this.updateTabindexes((t) => ({
|
237
|
-
removeTabIndex: t.contains(this.focusInElement) && t !== this.focusInElement,
|
238
|
-
tabIndex: t === this.focusInElement ? 0 : -1
|
239
|
-
}));
|
240
|
-
}
|
241
|
-
updateTabindexes(t) {
|
242
|
-
this.elements.forEach((e) => {
|
243
|
-
const { tabIndex: r, removeTabIndex: i } = t(e);
|
244
|
-
if (!i) {
|
245
|
-
this.focused ? e !== this.elements[this.currentIndex] && (e.tabIndex = r) : e.tabIndex = r;
|
246
|
-
return;
|
247
|
-
}
|
248
|
-
e.removeAttribute("tabindex");
|
249
|
-
const s = e;
|
250
|
-
s.requestUpdate && s.requestUpdate();
|
251
|
-
});
|
252
|
-
}
|
253
|
-
manage() {
|
254
|
-
this.managed = !0, this.manageTabindexes(), super.manage();
|
255
|
-
}
|
256
|
-
unmanage() {
|
257
|
-
this.managed = !1, this.updateTabindexes(() => ({ tabIndex: 0 })), super.unmanage();
|
258
|
-
}
|
259
|
-
hostUpdated() {
|
260
|
-
super.hostUpdated(), this.host.hasUpdated || this.manageTabindexes();
|
261
|
-
}
|
262
|
-
}
|
263
|
-
const A = ":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))}";
|
264
|
-
var _ = Object.defineProperty, q = Object.getOwnPropertyDescriptor, d = (c, t, e, r) => {
|
265
|
-
for (var i = r > 1 ? void 0 : r ? q(t, e) : t, s = c.length - 1, o; s >= 0; s--)
|
266
|
-
(o = c[s]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
267
|
-
return r && i && _(t, e, i), i;
|
268
|
-
};
|
269
|
-
const m = [];
|
270
|
-
class u extends v(f, {
|
271
|
-
validSizes: ["xs", "s", "m", "l", "xl"],
|
272
|
-
noDefaultSize: !0
|
273
|
-
}) {
|
274
|
-
constructor() {
|
275
|
-
super(), this._buttons = [], this._buttonSelector = "luzmo-action-button, luzmo-action-menu", this.rovingTabindexController = new y(
|
276
|
-
this,
|
277
|
-
{
|
278
|
-
focusInIndex: (t) => {
|
279
|
-
let e = -1;
|
280
|
-
const r = t.findIndex((i, s) => (!t[e] && !i.disabled && (e = s), i.selected && !i.disabled));
|
281
|
-
return t[r] ? r : e;
|
282
|
-
},
|
283
|
-
elements: () => this.buttons,
|
284
|
-
isFocusableElement: (t) => !t.disabled
|
285
|
-
}
|
286
|
-
), 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 = () => {
|
287
|
-
if (!this.slotElement)
|
288
|
-
return;
|
289
|
-
const e = this.slotElement.assignedElements({
|
290
|
-
flatten: !0
|
291
|
-
}).reduce((r, i) => {
|
292
|
-
if (i.matches(this._buttonSelector))
|
293
|
-
r.push(i);
|
294
|
-
else {
|
295
|
-
const s = [
|
296
|
-
...i.querySelectorAll(`:scope > ${this._buttonSelector}`)
|
297
|
-
];
|
298
|
-
r.push(...s);
|
299
|
-
}
|
300
|
-
return r;
|
301
|
-
}, []);
|
302
|
-
if (this.buttons = e, this.selects || !this.hasManaged) {
|
303
|
-
const r = [];
|
304
|
-
this.buttons.forEach((i) => {
|
305
|
-
i.selected && r.push(i.value);
|
306
|
-
}), this.setSelected([...this.selected, ...r]);
|
307
|
-
}
|
308
|
-
this.manageChildren(), this.manageSelects(), this.hasManaged = !0;
|
309
|
-
}, new E(this, {
|
310
|
-
config: {
|
311
|
-
childList: !0,
|
312
|
-
subtree: !0
|
313
|
-
},
|
314
|
-
callback: () => {
|
315
|
-
this.manageButtons();
|
316
|
-
},
|
317
|
-
skipInitial: !0
|
318
|
-
});
|
319
|
-
}
|
320
|
-
static get styles() {
|
321
|
-
return [x(A)];
|
322
|
-
}
|
323
|
-
set buttons(t) {
|
324
|
-
t !== this.buttons && (this._buttons = t, this.rovingTabindexController.clearElementCache());
|
325
|
-
}
|
326
|
-
get buttons() {
|
327
|
-
return this._buttons;
|
328
|
-
}
|
329
|
-
set selected(t) {
|
330
|
-
this.requestUpdate("selected", this._selected), this._selected = t, this.updateComplete.then(() => {
|
331
|
-
this.applySelects(), this.manageChildren();
|
332
|
-
});
|
333
|
-
}
|
334
|
-
get selected() {
|
335
|
-
return this._selected;
|
336
|
-
}
|
337
|
-
dispatchChange(t) {
|
338
|
-
this.dispatchEvent(
|
339
|
-
new Event("change", {
|
340
|
-
bubbles: !0,
|
341
|
-
composed: !0,
|
342
|
-
cancelable: !0
|
343
|
-
})
|
344
|
-
) || (this.setSelected(t), this.buttons.map((r) => {
|
345
|
-
r.selected = this.selected.includes(r.value);
|
346
|
-
}));
|
347
|
-
}
|
348
|
-
setSelected(t, e) {
|
349
|
-
if (t === this.selected)
|
350
|
-
return;
|
351
|
-
const r = this.selected;
|
352
|
-
this.requestUpdate("selected", r), this._selected = t, e && this.dispatchChange(r);
|
353
|
-
}
|
354
|
-
focus(t) {
|
355
|
-
this.rovingTabindexController.focus(t);
|
356
|
-
}
|
357
|
-
deselectSelectedButtons() {
|
358
|
-
this.buttons.forEach((t) => {
|
359
|
-
t.selected && (t.selected = !1, t.tabIndex = -1, t.setAttribute(
|
360
|
-
this.selects ? "aria-checked" : (
|
361
|
-
/* c8 ignore */
|
362
|
-
"aria-pressed"
|
363
|
-
),
|
364
|
-
"false"
|
365
|
-
));
|
366
|
-
});
|
367
|
-
}
|
368
|
-
handleActionButtonChange(t) {
|
369
|
-
t.stopPropagation(), t.preventDefault();
|
370
|
-
}
|
371
|
-
handleClick(t) {
|
372
|
-
const e = t.target;
|
373
|
-
if (e.value !== void 0)
|
374
|
-
switch (this.selects) {
|
375
|
-
case "single": {
|
376
|
-
this.deselectSelectedButtons(), e.selected = !0, e.tabIndex = 0, e.setAttribute("aria-checked", "true"), this.setSelected([e.value], !0);
|
377
|
-
break;
|
378
|
-
}
|
379
|
-
case "multiple": {
|
380
|
-
const r = [...this.selected];
|
381
|
-
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) => {
|
382
|
-
i.tabIndex = -1;
|
383
|
-
}), e.tabIndex = 0;
|
384
|
-
break;
|
385
|
-
}
|
386
|
-
}
|
387
|
-
}
|
388
|
-
async applySelects() {
|
389
|
-
await this.manageSelects(!0);
|
390
|
-
}
|
391
|
-
async manageSelects(t) {
|
392
|
-
if (this.buttons.length === 0)
|
393
|
-
return;
|
394
|
-
const e = this.buttons;
|
395
|
-
switch (this.selects) {
|
396
|
-
case "single": {
|
397
|
-
this.setAttribute("role", "radiogroup");
|
398
|
-
const r = [], i = e.map(async (o) => {
|
399
|
-
await o.updateComplete, o.setAttribute("role", "radio"), o.setAttribute(
|
400
|
-
"aria-checked",
|
401
|
-
o.selected ? "true" : "false"
|
402
|
-
), o.selected && r.push(o);
|
403
|
-
});
|
404
|
-
if (t)
|
405
|
-
break;
|
406
|
-
await Promise.all(i);
|
407
|
-
const s = r.map((o) => o.value);
|
408
|
-
this.setSelected(s || m);
|
409
|
-
break;
|
410
|
-
}
|
411
|
-
case "multiple": {
|
412
|
-
this.getAttribute("role") === "radiogroup" && this.removeAttribute("role");
|
413
|
-
const r = [], i = e.map(async (o) => {
|
414
|
-
await o.updateComplete, o.setAttribute("role", "checkbox"), o.setAttribute(
|
415
|
-
"aria-checked",
|
416
|
-
o.selected ? "true" : "false"
|
417
|
-
), o.selected && r.push(o.value);
|
418
|
-
});
|
419
|
-
if (t)
|
420
|
-
break;
|
421
|
-
await Promise.all(i);
|
422
|
-
const s = r.length > 0 ? r : m;
|
423
|
-
this.setSelected(s);
|
424
|
-
break;
|
425
|
-
}
|
426
|
-
default:
|
427
|
-
if (this.selected.length > 0) {
|
428
|
-
const r = [], i = e.map(async (s) => {
|
429
|
-
await s.updateComplete, s.setAttribute("role", "button"), s.selected ? (s.setAttribute("aria-pressed", "true"), r.push(s)) : s.removeAttribute("aria-pressed");
|
430
|
-
});
|
431
|
-
if (t)
|
432
|
-
break;
|
433
|
-
await Promise.all(i), this.setSelected(r.map((s) => s.value));
|
434
|
-
} else {
|
435
|
-
this.buttons.forEach((r) => {
|
436
|
-
r.setAttribute("role", "button");
|
437
|
-
});
|
438
|
-
break;
|
439
|
-
}
|
440
|
-
}
|
441
|
-
this.hasAttribute("role") || this.setAttribute("role", "toolbar");
|
442
|
-
}
|
443
|
-
render() {
|
444
|
-
return z`
|
445
|
-
<slot role="presentation" @slotchange=${this.manageButtons}></slot>
|
446
|
-
`;
|
447
|
-
}
|
448
|
-
firstUpdated(t) {
|
449
|
-
super.firstUpdated(t), this.addEventListener("click", this.handleClick);
|
450
|
-
}
|
451
|
-
updated(t) {
|
452
|
-
super.updated(t), t.has("selects") && (this.manageSelects(), this.manageChildren(), this.selects ? this.renderRoot.addEventListener(
|
453
|
-
"change",
|
454
|
-
this.handleActionButtonChange
|
455
|
-
) : this.renderRoot.removeEventListener(
|
456
|
-
"change",
|
457
|
-
this.handleActionButtonChange
|
458
|
-
)), (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"));
|
459
|
-
}
|
460
|
-
manageChildren(t) {
|
461
|
-
this.buttons.forEach((e) => {
|
462
|
-
(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);
|
463
|
-
});
|
464
|
-
}
|
465
|
-
}
|
466
|
-
d([
|
467
|
-
l({ type: Boolean, reflect: !0 })
|
468
|
-
], u.prototype, "compact", 2);
|
469
|
-
d([
|
470
|
-
l({ type: Boolean, reflect: !0 })
|
471
|
-
], u.prototype, "emphasized", 2);
|
472
|
-
d([
|
473
|
-
l({ type: Boolean, reflect: !0 })
|
474
|
-
], u.prototype, "justified", 2);
|
475
|
-
d([
|
476
|
-
l({ type: String })
|
477
|
-
], u.prototype, "label", 2);
|
478
|
-
d([
|
479
|
-
l({ type: Boolean, reflect: !0 })
|
480
|
-
], u.prototype, "quiet", 2);
|
481
|
-
d([
|
482
|
-
l({ type: String })
|
483
|
-
], u.prototype, "selects", 2);
|
484
|
-
d([
|
485
|
-
l({ reflect: !0, attribute: "static-color" })
|
486
|
-
], u.prototype, "staticColor", 2);
|
487
|
-
d([
|
488
|
-
l({ type: Boolean, reflect: !0 })
|
489
|
-
], u.prototype, "vertical", 2);
|
490
|
-
d([
|
491
|
-
l({ type: Array })
|
492
|
-
], u.prototype, "selected", 1);
|
493
|
-
d([
|
494
|
-
I("slot")
|
495
|
-
], u.prototype, "slotElement", 2);
|
496
|
-
customElements.get("luzmo-action-group") || customElements.define("luzmo-action-group", u);
|
497
|
-
export {
|
498
|
-
C as F,
|
499
|
-
u as L,
|
500
|
-
y as R
|
501
|
-
};
|