@luzmo/analytics-components-kit 1.0.1-alpha.1 → 1.0.1-alpha.10
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/LICENSE +3 -3
- package/components/area-chart-slots.config-BLxiYX05.cjs +20 -0
- package/components/area-chart-slots.config-C0c2ZzBh.js +52 -0
- package/components/async-directive-DWRUSKKF-CmOVMf6V.js +152 -0
- package/components/async-directive-DWRUSKKF-D4itZyzc.cjs +56 -0
- package/components/bar-chart-slots.config-GSSL7XVA.js +47 -0
- package/components/bar-chart-slots.config-Jx1PveTM.cjs +20 -0
- package/components/bar-chart.config-B57geUzJ.cjs +20 -0
- package/components/bar-chart.config-CQ6HAvs2.js +153 -0
- package/components/bar-chart.en-BqYbiHO3.cjs +20 -0
- package/components/bar-chart.en-FwT00qdU.js +69 -0
- package/components/bar-chart.fr-DGx9smEh.cjs +20 -0
- package/components/bar-chart.fr-DbxKiM0j.js +44 -0
- package/components/bar-chart.nl-BYzVExsz.cjs +20 -0
- package/components/bar-chart.nl-ahX1ARpH.js +44 -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-B7v4eeRh-BKKUK3x0.cjs +43 -0
- package/components/button-base-B7v4eeRh-D3-GH03o.js +161 -0
- package/components/checkbox-mixin-BFGTmw17-C34LMsgu.js +88 -0
- package/components/checkbox-mixin-BFGTmw17-CCjGd0nS.cjs +45 -0
- package/components/column-chart.config-B57geUzJ.cjs +20 -0
- package/components/column-chart.config-C9hP0kX7.js +153 -0
- package/components/cs-DVZ0Tapy.js +89 -0
- package/components/cs-I9E81keK.cjs +20 -0
- package/components/da-DHy05oSR.js +97 -0
- package/components/da-QkdvupDg.cjs +20 -0
- package/components/de-BaTUIQk1.js +104 -0
- package/components/de-DgHoh7KS.cjs +20 -0
- package/components/de-Dn5mUzha.cjs +20 -0
- package/components/de-iM39JlAt.js +109 -0
- package/components/decompose-numeric-format-B3rVVHpO.cjs +20 -0
- package/components/decompose-numeric-format-BuZcjH2k.js +39 -0
- package/components/directive-helpers-nlQRAaQt-3kEWF2GV.cjs +80 -0
- package/components/directive-helpers-nlQRAaQt-I6T4KZKW.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 +33 -0
- package/components/display-settings-binning/index.cjs +55 -0
- package/components/display-settings-binning/index.d.ts +7 -0
- package/components/display-settings-binning/index.js +151 -0
- package/components/display-settings-datetime/display-settings-datetime.d.ts +85 -0
- package/components/display-settings-datetime/index.cjs +20 -0
- package/components/display-settings-datetime/index.d.ts +7 -0
- package/components/display-settings-datetime/index.js +30 -0
- package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +31 -0
- package/components/display-settings-grand-totals/index.cjs +43 -0
- package/components/display-settings-grand-totals/index.d.ts +7 -0
- package/components/display-settings-grand-totals/index.js +126 -0
- package/components/display-settings-numeric/display-settings-numeric.d.ts +73 -0
- package/components/display-settings-numeric/helpers/constants.d.ts +18 -0
- package/components/display-settings-numeric/index.cjs +156 -0
- package/components/display-settings-numeric/index.d.ts +7 -0
- package/components/display-settings-numeric/index.js +477 -0
- 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 +36 -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/components/display-settings-period-over-period/index.js +314 -0
- package/components/divider.module-DwOuLGU3-B19eHVg2.js +40 -0
- package/components/divider.module-DwOuLGU3-Bg8RrFkc.cjs +36 -0
- package/components/donut-chart-slots.config-BEwhfq27.js +39 -0
- package/components/donut-chart-slots.config-DIp-24lO.cjs +20 -0
- package/components/donut-chart.config-3DhKiSSM.js +177 -0
- package/components/donut-chart.config-DLWJUlHx.cjs +20 -0
- package/components/donut-chart.en-Blb9oSdU.cjs +20 -0
- package/components/donut-chart.en-CzjT4-XN.js +85 -0
- package/components/donut-chart.fr-BeTVa2wh.cjs +20 -0
- package/components/donut-chart.fr-DftPrKbG.js +39 -0
- package/components/donut-chart.nl-D9YGbOce.cjs +20 -0
- package/components/donut-chart.nl-NMatXfhK.js +39 -0
- package/components/draggable-data-item/draggable-data-item.d.ts +26 -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 +135 -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/components/draggable-data-item-level/index.js +293 -0
- 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 +266 -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/droppable-slot/item-slots-configs/slot-labels.const.d.ts +8 -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-Boz7TNRZ.cjs +53 -0
- package/components/edit-option-base-qePiIQWd.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/components/en-BByOeNuP.js +1989 -0
- package/components/en-BFGuvaVG.cjs +228 -0
- package/components/en-GB-Bz4u7Uqv.cjs +20 -0
- package/components/en-GB-DX5un7Gr.js +28 -0
- package/components/es-ByW01bzN.cjs +20 -0
- package/components/es-CwyPlN5d.cjs +20 -0
- package/components/es-D37mTCZB.js +104 -0
- package/components/es-KhTq4jX8.js +305 -0
- package/components/fi-Dh_ebgpe.js +97 -0
- package/components/fi-rijeZE5V.cjs +20 -0
- package/components/focus-group-DHeTq18L-C9l9oHwM.cjs +36 -0
- package/components/focus-group-DHeTq18L-rNUu13eb.js +237 -0
- package/components/fr-BWJHvkss.js +104 -0
- package/components/fr-BcgE-6S_.cjs +20 -0
- package/components/fr-CU727YF1.js +305 -0
- package/components/fr-DnFUAglm.cjs +20 -0
- package/components/get-css-variable-Bhbr-Kr1.js +1413 -0
- package/components/get-css-variable-DLiZYZEi.cjs +24 -0
- package/components/he-Au3xg6lR.js +89 -0
- package/components/he-O6Ih8Bqh.cjs +20 -0
- package/components/hu-BnZ8y3xQ.cjs +20 -0
- package/components/hu-DNJ-P_MW.js +97 -0
- package/components/if-defined-8BOch-oC.cjs +24 -0
- package/components/if-defined-BSAr_4u4-4Ys8VE7T.js +95 -0
- package/components/if-defined-BSAr_4u4-gECNwmTC.cjs +60 -0
- package/components/if-defined-Bv6MRdSW.js +29 -0
- package/components/imageobject.config-B7ld9bj3.cjs +20 -0
- package/components/imageobject.config-DZLp9Elq.js +127 -0
- package/components/index-86cIx1Ql.cjs +57 -0
- package/components/index-B3ve6cAj.js +810 -0
- package/components/index-B5Wvyv9s.js +744 -0
- package/components/index-BBrer3_5.js +44 -0
- package/components/index-BJVxTeoi.cjs +192 -0
- package/components/index-BUSWsm5N.js +77 -0
- package/components/index-BVX_ozT9.js +77 -0
- package/components/index-BYfDERr7.js +145 -0
- package/components/index-Bee1uunR.js +299 -0
- package/components/index-BrEDK88k.cjs +185 -0
- package/components/index-Bt5nP_6w.cjs +59 -0
- package/components/index-ByjLd3bT.cjs +95 -0
- package/components/index-C8IL2IZ6.js +317 -0
- package/components/index-CMvLpPKD-D5MpMVYZ.js +935 -0
- package/components/index-CMvLpPKD-Yf1PLWrj.cjs +95 -0
- package/components/index-CXIT0cYY.js +3171 -0
- package/components/index-CdCtJpK9.js +175 -0
- package/components/index-CdUTqQ3L.cjs +39 -0
- package/components/index-CdpyJ7hp.cjs +36 -0
- package/components/index-CfEn3fIT.js +137 -0
- package/components/index-D8qmoauu.cjs +36 -0
- package/components/index-DEVOZNSc.cjs +36 -0
- package/components/index-DUO13KGl.cjs +54 -0
- package/components/index-DVAsMiOm.js +164 -0
- package/components/index-DnozlYag.js +48 -0
- package/components/index-h9T5DPIm.cjs +36 -0
- package/components/index-i8GaIN7i.cjs +67 -0
- package/components/index-iYpAy-Kg.cjs +95 -0
- package/components/index-ymMEPngt.js +104 -0
- package/components/index-zuArOtOt.cjs +42 -0
- package/components/index.cjs +20 -0
- package/components/index.js +74 -0
- package/components/it-Bh5U73z6.js +305 -0
- package/components/it-PshtLMkq.cjs +20 -0
- package/components/ja-CCcHUL61.js +89 -0
- package/components/ja-KIS2HdaG.cjs +20 -0
- package/components/ko--l4qmjLV.cjs +20 -0
- package/components/ko-DhapsZMM.js +89 -0
- package/components/language-resolution-8yZa5r_P-Bn0bYosv.js +161 -0
- package/components/language-resolution-8yZa5r_P-FqQChUDW.cjs +52 -0
- package/components/line-chart.config-BZcvfO2c.cjs +20 -0
- package/components/line-chart.config-CIVN6uLI.js +115 -0
- package/components/localize-B6AsX_Zv.js +52 -0
- package/components/localize-DbobqcKs.cjs +20 -0
- package/components/luzmo-icons-BE2T8vWu.js +613 -0
- package/components/luzmo-icons-XsFsTAl3.cjs +31 -0
- package/components/mk-B9HPSuKa.js +97 -0
- package/components/mk-DZlj-edb.cjs +20 -0
- package/components/nl-BKlDqOXb.cjs +20 -0
- package/components/nl-BwSt5Bf4.js +109 -0
- package/components/nl-CWxJcTNT.js +104 -0
- package/components/nl-CpfDNK5c.cjs +20 -0
- package/components/no-D-DofYnx.js +109 -0
- package/components/no-D_SzxhTu.cjs +20 -0
- package/components/observe-slot-text-ggb4kKgY-DBVrKDBD.cjs +86 -0
- package/components/observe-slot-text-ggb4kKgY-o5QFWUeA.js +221 -0
- package/components/periods.const-CDIkC5CK.cjs +20 -0
- package/components/periods.const-GHh5bPfs.js +176 -0
- package/components/pl-D_L_0Boq.js +97 -0
- package/components/pl-PIK23rK_.cjs +20 -0
- package/components/popover-DlkzrLpl-BhTvuvTu.cjs +48 -0
- package/components/popover-DlkzrLpl-CCwcTIXr.js +86 -0
- package/components/property-0L4eB11h.cjs +112 -0
- package/components/property-B2F7x7Cz.js +1481 -0
- package/components/pt-B0BBS5VB.js +89 -0
- package/components/pt-Dqlu4MS5.cjs +20 -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/ru-Vo-m3O_2.js +108 -0
- package/components/ru-zyNDTB04.cjs +20 -0
- package/components/set-locale-ByIApH40.cjs +60 -0
- package/components/set-locale-DJYT4V7U.js +212 -0
- package/components/sized-mixin-BxMraZLS-B_y0PzR3.js +82 -0
- package/components/sized-mixin-BxMraZLS-DEFWqo8f.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-BFA93Sye.cjs +24 -0
- package/components/state-Joaryhrg.js +31 -0
- package/components/sv-1DPTltNQ.cjs +20 -0
- package/components/sv-CiozMaev.js +89 -0
- package/components/task-B8yMzxui.cjs +24 -0
- package/components/task-Cr9aRIbV.js +120 -0
- package/components/text-field-CvKSS59x-Dn0_1HO7.js +412 -0
- package/components/text-field-CvKSS59x-E9LQElL4.cjs +131 -0
- package/components/textobject.config-C8opcGG4.js +52 -0
- package/components/textobject.config-DbAajFz8.cjs +20 -0
- package/components/tr-BkmWvOG2.cjs +20 -0
- package/components/tr-D_D4i5iv.js +109 -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/components/zh-CN-DTZ4OmdP.cjs +20 -0
- package/components/zh-CN-wsl7eFSd.js +89 -0
- package/components/zh-TW-DTZ4OmdP.cjs +20 -0
- package/components/zh-TW-wsl7eFSd.js +89 -0
- package/custom-elements.json +4260 -0
- package/generated/locale-codes.d.ts +13 -0
- package/generated/locales/de.d.ts +82 -0
- package/generated/locales/es.d.ts +82 -0
- package/generated/locales/fr.d.ts +82 -0
- package/generated/locales/nl.d.ts +82 -0
- package/index.d.ts +23 -0
- package/package.json +130 -20
- 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/localize/set-locale.d.ts +5 -0
- package/utils/time/formats.const.d.ts +4 -0
- package/utils/time/periods.const.d.ts +15 -0
- package/utils/types/column.types.d.ts +56 -0
- package/utils/types/type-check.d.ts +7 -0
- package/37.js +0 -1
- package/729.js +0 -1
- package/README.md +0 -1
- package/common-31743c5a.js +0 -13
- package/common-b02547a0.js +0 -1
- package/common-b49d9a9d.js +0 -1
- package/common-b5232813.js +0 -56
- package/common-cefd4f4c.js +0 -1
- package/common-d6cb565f.js +0 -1
- package/common-fd868059.js +0 -1
- package/common-fedaf338.js +0 -32
- package/edit-option-picker/index.js +0 -314
- package/edit-option-slider/index.js +0 -102
- package/edit-option-toggle/index.js +0 -114
- package/index.js +0 -346
- package/vendors-93cc3efa.js +0 -1
- package/vendors-bb3d84b5.js +0 -1
@@ -0,0 +1,212 @@
|
|
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
|
+
/**
|
21
|
+
* @license
|
22
|
+
* Copyright 2021 Google LLC
|
23
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
24
|
+
*/
|
25
|
+
const _ = "lit-localize-status";
|
26
|
+
/**
|
27
|
+
* @license
|
28
|
+
* Copyright 2021 Google LLC
|
29
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
30
|
+
*/
|
31
|
+
const C = (e) => typeof e != "string" && "strTag" in e, y = (e, t, s) => {
|
32
|
+
let r = e[0];
|
33
|
+
for (let n = 1; n < e.length; n++)
|
34
|
+
r += t[s ? s[n - 1] : n - 1], r += e[n];
|
35
|
+
return r;
|
36
|
+
};
|
37
|
+
/**
|
38
|
+
* @license
|
39
|
+
* Copyright 2021 Google LLC
|
40
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
41
|
+
*/
|
42
|
+
const I = (e) => C(e) ? y(e.strings, e.values) : e;
|
43
|
+
let x = I, E = !1;
|
44
|
+
function z(e) {
|
45
|
+
if (E)
|
46
|
+
throw new Error("lit-localize can only be configured once");
|
47
|
+
x = e, E = !0;
|
48
|
+
}
|
49
|
+
/**
|
50
|
+
* @license
|
51
|
+
* Copyright 2021 Google LLC
|
52
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
53
|
+
*/
|
54
|
+
class P {
|
55
|
+
constructor(t) {
|
56
|
+
this.__litLocalizeEventHandler = (s) => {
|
57
|
+
s.detail.status === "ready" && this.host.requestUpdate();
|
58
|
+
}, this.host = t;
|
59
|
+
}
|
60
|
+
hostConnected() {
|
61
|
+
window.addEventListener(_, this.__litLocalizeEventHandler);
|
62
|
+
}
|
63
|
+
hostDisconnected() {
|
64
|
+
window.removeEventListener(_, this.__litLocalizeEventHandler);
|
65
|
+
}
|
66
|
+
}
|
67
|
+
const b = (e) => e.addController(new P(e)), j = b;
|
68
|
+
/**
|
69
|
+
* @license
|
70
|
+
* Copyright 2021 Google LLC
|
71
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
72
|
+
*/
|
73
|
+
const X = () => (e, t) => (e.addInitializer(j), e);
|
74
|
+
/**
|
75
|
+
* @license
|
76
|
+
* Copyright 2020 Google LLC
|
77
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
78
|
+
*/
|
79
|
+
class M {
|
80
|
+
constructor() {
|
81
|
+
this.settled = !1, this.promise = new Promise((t, s) => {
|
82
|
+
this._resolve = t, this._reject = s;
|
83
|
+
});
|
84
|
+
}
|
85
|
+
resolve(t) {
|
86
|
+
this.settled = !0, this._resolve(t);
|
87
|
+
}
|
88
|
+
reject(t) {
|
89
|
+
this.settled = !0, this._reject(t);
|
90
|
+
}
|
91
|
+
}
|
92
|
+
/**
|
93
|
+
* @license
|
94
|
+
* Copyright 2014 Travis Webb
|
95
|
+
* SPDX-License-Identifier: MIT
|
96
|
+
*/
|
97
|
+
const i = [];
|
98
|
+
for (let e = 0; e < 256; e++)
|
99
|
+
i[e] = (e >> 4 & 15).toString(16) + (e & 15).toString(16);
|
100
|
+
function H(e) {
|
101
|
+
let t = 0, s = 8997, r = 0, n = 33826, o = 0, a = 40164, g = 0, c = 52210;
|
102
|
+
for (let h = 0; h < e.length; h++)
|
103
|
+
s ^= e.charCodeAt(h), t = s * 435, r = n * 435, o = a * 435, g = c * 435, o += s << 8, g += n << 8, r += t >>> 16, s = t & 65535, o += r >>> 16, n = r & 65535, c = g + (o >>> 16) & 65535, a = o & 65535;
|
104
|
+
return i[c >> 8] + i[c & 255] + i[a >> 8] + i[a & 255] + i[n >> 8] + i[n & 255] + i[s >> 8] + i[s & 255];
|
105
|
+
}
|
106
|
+
/**
|
107
|
+
* @license
|
108
|
+
* Copyright 2020 Google LLC
|
109
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
110
|
+
*/
|
111
|
+
const R = "", q = "h", A = "s";
|
112
|
+
function k(e, t) {
|
113
|
+
return (t ? q : A) + H(typeof e == "string" ? e : e.join(R));
|
114
|
+
}
|
115
|
+
/**
|
116
|
+
* @license
|
117
|
+
* Copyright 2021 Google LLC
|
118
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
119
|
+
*/
|
120
|
+
const p = /* @__PURE__ */ new WeakMap(), w = /* @__PURE__ */ new Map();
|
121
|
+
function D(e, t, s) {
|
122
|
+
if (e) {
|
123
|
+
const r = (s == null ? void 0 : s.id) ?? N(t), n = e[r];
|
124
|
+
if (n) {
|
125
|
+
if (typeof n == "string")
|
126
|
+
return n;
|
127
|
+
if ("strTag" in n)
|
128
|
+
return y(
|
129
|
+
n.strings,
|
130
|
+
// Cast `template` because its type wasn't automatically narrowed (but
|
131
|
+
// we know it must be the same type as `localized`).
|
132
|
+
t.values,
|
133
|
+
n.values
|
134
|
+
);
|
135
|
+
{
|
136
|
+
let o = p.get(n);
|
137
|
+
return o === void 0 && (o = n.values, p.set(n, o)), {
|
138
|
+
...n,
|
139
|
+
values: o.map((a) => t.values[a])
|
140
|
+
};
|
141
|
+
}
|
142
|
+
}
|
143
|
+
}
|
144
|
+
return I(t);
|
145
|
+
}
|
146
|
+
function N(e) {
|
147
|
+
const t = typeof e == "string" ? e : e.strings;
|
148
|
+
let s = w.get(t);
|
149
|
+
return s === void 0 && (s = k(t, typeof e != "string" && !("strTag" in e)), w.set(t, s)), s;
|
150
|
+
}
|
151
|
+
/**
|
152
|
+
* @license
|
153
|
+
* Copyright 2021 Google LLC
|
154
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
155
|
+
*/
|
156
|
+
function v(e) {
|
157
|
+
window.dispatchEvent(new CustomEvent(_, { detail: e }));
|
158
|
+
}
|
159
|
+
let u = "", L, S, f, m, T, l = new M();
|
160
|
+
l.resolve();
|
161
|
+
let d = 0;
|
162
|
+
const U = (e) => (z((t, s) => D(T, t, s)), u = S = e.sourceLocale, f = new Set(e.targetLocales), f.add(e.sourceLocale), m = e.loadLocale, { getLocale: W, setLocale: $ }), W = () => u, $ = (e) => {
|
163
|
+
if (e === (L ?? u))
|
164
|
+
return l.promise;
|
165
|
+
if (!f || !m)
|
166
|
+
throw new Error("Internal error");
|
167
|
+
if (!f.has(e))
|
168
|
+
throw new Error("Invalid locale code");
|
169
|
+
d++;
|
170
|
+
const t = d;
|
171
|
+
return L = e, l.settled && (l = new M()), v({ status: "loading", loadingLocale: e }), (e === S ? (
|
172
|
+
// We could switch to the source locale synchronously, but we prefer to
|
173
|
+
// queue it on a microtask so that switching locales is consistently
|
174
|
+
// asynchronous.
|
175
|
+
Promise.resolve({ templates: void 0 })
|
176
|
+
) : m(e)).then((r) => {
|
177
|
+
d === t && (u = e, L = void 0, T = r.templates, v({ status: "ready", readyLocale: e }), l.resolve());
|
178
|
+
}, (r) => {
|
179
|
+
d === t && (v({
|
180
|
+
status: "error",
|
181
|
+
errorLocale: e,
|
182
|
+
errorMessage: r.toString()
|
183
|
+
}), l.reject(r));
|
184
|
+
}), l.promise;
|
185
|
+
}, F = (e, t, s) => {
|
186
|
+
const r = e[t];
|
187
|
+
return r ? typeof r == "function" ? r() : Promise.resolve(r) : new Promise((n, o) => {
|
188
|
+
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
189
|
+
o.bind(
|
190
|
+
null,
|
191
|
+
new Error(
|
192
|
+
"Unknown variable dynamic import: " + t + (t.split("/").length !== s ? ". Note that variables only represent file names one level deep." : "")
|
193
|
+
)
|
194
|
+
)
|
195
|
+
);
|
196
|
+
});
|
197
|
+
}, O = "en", V = [
|
198
|
+
"de",
|
199
|
+
"es",
|
200
|
+
"fr",
|
201
|
+
"nl"
|
202
|
+
], { setLocale: G } = U({
|
203
|
+
sourceLocale: O,
|
204
|
+
targetLocales: V,
|
205
|
+
loadLocale: (e) => F(/* @__PURE__ */ Object.assign({ "../../generated/locales/de.ts": () => import("./de-BaTUIQk1.js"), "../../generated/locales/es.ts": () => import("./es-D37mTCZB.js"), "../../generated/locales/fr.ts": () => import("./fr-BWJHvkss.js"), "../../generated/locales/nl.ts": () => import("./nl-CWxJcTNT.js") }), `../../generated/locales/${e}.ts`, 5)
|
206
|
+
});
|
207
|
+
export {
|
208
|
+
X as l,
|
209
|
+
x as m,
|
210
|
+
G as s,
|
211
|
+
V as t
|
212
|
+
};
|
@@ -0,0 +1,82 @@
|
|
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 { R as a } from "./property-B2F7x7Cz.js";
|
21
|
+
/*! * Lucero - The design system for Luzmo.
|
22
|
+
*
|
23
|
+
* Copyright © 2025 Luzmo
|
24
|
+
* All rights reserved.
|
25
|
+
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
26
|
+
* This license allows users with a current active Luzmo account to use Lucero.
|
27
|
+
* This license terminates automatically if a user no longer has an active Luzmo account.
|
28
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
29
|
+
*
|
30
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
31
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
32
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
33
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
34
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
35
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
36
|
+
* SOFTWARE.
|
37
|
+
* */
|
38
|
+
var c = Object.defineProperty, h = Object.getOwnPropertyDescriptor, p = (r, i, s, u) => {
|
39
|
+
for (var e = h(i, s), l = r.length - 1, t; l >= 0; l--)
|
40
|
+
(t = r[l]) && (e = t(i, s, e) || e);
|
41
|
+
return e && c(i, s, e), e;
|
42
|
+
};
|
43
|
+
const m = {
|
44
|
+
xxs: "xxs",
|
45
|
+
xs: "xs",
|
46
|
+
s: "s",
|
47
|
+
m: "m",
|
48
|
+
l: "l",
|
49
|
+
xl: "xl",
|
50
|
+
xxl: "xxl"
|
51
|
+
};
|
52
|
+
function f(r, {
|
53
|
+
validSizes: i = ["s", "m", "l", "xl"],
|
54
|
+
noDefaultSize: s,
|
55
|
+
defaultSize: u = "m"
|
56
|
+
} = {}) {
|
57
|
+
class e extends r {
|
58
|
+
constructor() {
|
59
|
+
super(...arguments), this._size = u;
|
60
|
+
}
|
61
|
+
get size() {
|
62
|
+
return this._size || u;
|
63
|
+
}
|
64
|
+
set size(t) {
|
65
|
+
const z = s ? null : u, o = t && t.toLocaleLowerCase(), n = i.includes(o) ? o : z;
|
66
|
+
if (n && this.setAttribute("size", n), this._size === n)
|
67
|
+
return;
|
68
|
+
const x = this._size;
|
69
|
+
this._size = n, this.requestUpdate("size", x);
|
70
|
+
}
|
71
|
+
update(t) {
|
72
|
+
!this.hasAttribute("size") && !s && this.setAttribute("size", this.size), super.update(t);
|
73
|
+
}
|
74
|
+
}
|
75
|
+
return p([
|
76
|
+
a({ type: String })
|
77
|
+
], e.prototype, "size"), e;
|
78
|
+
}
|
79
|
+
export {
|
80
|
+
m as d,
|
81
|
+
f as m
|
82
|
+
};
|
@@ -0,0 +1,36 @@
|
|
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 x=require("./property-0L4eB11h.cjs");/*! * Lucero - The design system for Luzmo.
|
21
|
+
*
|
22
|
+
* Copyright © 2025 Luzmo
|
23
|
+
* All rights reserved.
|
24
|
+
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
25
|
+
* This license allows users with a current active Luzmo account to use Lucero.
|
26
|
+
* This license terminates automatically if a user no longer has an active Luzmo account.
|
27
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
28
|
+
*
|
29
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
30
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
31
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
32
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
33
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
34
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
35
|
+
* SOFTWARE.
|
36
|
+
* */var a=Object.defineProperty,h=Object.getOwnPropertyDescriptor,p=(r,i,s,u)=>{for(var e=h(i,s),n=r.length-1,t;n>=0;n--)(t=r[n])&&(e=t(i,s,e)||e);return e&&a(i,s,e),e};const d={xxs:"xxs",xs:"xs",s:"s",m:"m",l:"l",xl:"xl",xxl:"xxl"};function m(r,{validSizes:i=["s","m","l","xl"],noDefaultSize:s,defaultSize:u="m"}={}){class e extends r{constructor(){super(...arguments),this._size=u}get size(){return this._size||u}set size(t){const o=s?null:u,z=t&&t.toLocaleLowerCase(),l=i.includes(z)?z:o;if(l&&this.setAttribute("size",l),this._size===l)return;const c=this._size;this._size=l,this.requestUpdate("size",c)}update(t){!this.hasAttribute("size")&&!s&&this.setAttribute("size",this.size),super.update(t)}}return p([x.Rt({type:String})],e.prototype,"size"),e}exports.d=d;exports.m=m;
|
@@ -0,0 +1,55 @@
|
|
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";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-DEVOZNSc.cjs");const t=require("../property-0L4eB11h.cjs");require("../display-settings/index.cjs");require("../slot-menu-list/index.cjs");const a=require("../luzmo-icons-XsFsTAl3.cjs"),c=require("../sized-mixin-BxMraZLS-DEFWqo8f.cjs"),h=require("../localize-DbobqcKs.cjs"),d=require("../query-D5qWDopr.cjs"),p=":host{font-family:var(--luzmo-slot-menu-font-family, var(--luzmo-font-family));font-size:var(--luzmo-slot-menu-font-size, var(--slot-menu-font-size));color:var(--luzmo-slot-menu-font-color, var(--luzmo-font-color));display:block;width:fit-content}luzmo-slot-menu-list{min-width:var(--luzmo-slot-menu-list-min-width, var(--slot-menu-list-min-width));max-width:var(--luzmo-slot-menu-list-max-width, var(--slot-menu-list-max-width))}.slot-contents-container{position:relative;border:var(--luzmo-slot-menu-border-width, var(--luzmo-border-width)) solid var(--luzmo-slot-menu-border-color, var(--luzmo-border-color));border-radius:var(--luzmo-slot-menu-border-radius, var(--luzmo-border-radius));background:var(--luzmo-slot-menu-background-color, var(--luzmo-background-color));border-top-left-radius:0}.slot-contents-container .inner-container{display:flex}.slot-contents-container .inner-container luzmo-display-settings{min-width:var(--luzmo-slot-menu-display-settings-min-width, var(--slot-menu-display-settings-min-width));padding:var(--luzmo-slot-menu-display-settings-vertical-padding, var(--slot-menu-display-settings-vertical-padding)) var(--luzmo-slot-menu-display-settings-horizontal-padding, var(--slot-menu-display-settings-horizontal-padding))}:host([variant=popup]) .slot-contents-container{overflow:hidden;border-top-left-radius:var(--luzmo-slot-menu-border-radius, var(--luzmo-border-radius));--slot-menu-popup-filter: drop-shadow( var( --luzmo-slot-menu-popup-shadow-horizontal, var(--slot-menu-popup-shadow-horizontal) ) var( --luzmo-slot-menu-popup-shadow-vertical, var(--slot-menu-popup-shadow-vertical) ) var( --luzmo-slot-menu-popup-shadow-blur, var(--slot-menu-popup-shadow-blur) ) var( --luzmo-slot-menu-popup-shadow-color, var(--slot-menu-popup-shadow-color) ) );filter:var(--luzmo-slot-menu-popup-filter, var(--slot-menu-popup-filter))}.slot-menu-top-menu{display:flex;align-items:center;border-radius:var(--luzmo-slot-menu-border-radius, var(--luzmo-border-radius));border-bottom-left-radius:0;border-bottom-right-radius:0;overflow:hidden;width:fit-content}.drag-handle{background-color:var(--luzmo-slot-menu-drag-handle-background-color, var(--luzmo-background-color-highlight));cursor:grab;width:fit-content;border:var(--luzmo-slot-menu-border-width, var(--luzmo-border-width)) solid var(--luzmo-slot-menu-border-color, var(--luzmo-background-color-highlight));font-size:var(--luzmo-slot-menu-drag-handle-size, var(--slot-menu-drag-handle-size));padding:var(--luzmo-slot-menu-drag-handle-vertical-padding, var(--slot-menu-drag-handle-vertical-padding)) var(--luzmo-slot-menu-drag-handle-horizontal-padding, var(--slot-menu-drag-handle-horizontal-padding))}.drag-handle:hover{background-color:var(--luzmo-slot-menu-drag-handle-background-color-hover, var(--luzmo-background-color-highlight-hover))}.slot-content-action{display:flex;flex:0 1 auto;max-width:var(--luzmo-slot-menu-top-menu-label-max-width, var(--slot-menu-top-menu-label-max-width));gap:var(--luzmo-slot-menu-label-to-icon-gap, var(--slot-menu-label-to-icon-gap));background-color:var(--luzmo-slot-menu-content-label-background-color, var(--luzmo-primary));color:var(--luzmo-slot-menu-content-label-color, var(--luzmo-primary-inverse-color));border:var(--luzmo-slot-menu-border-width, var(--luzmo-border-width)) solid var(--luzmo-slot-menu-content-label-border-color, var(--luzmo-primary));padding:var(--luzmo-slot-menu-drag-handle-vertical-padding, var(--slot-menu-drag-handle-vertical-padding)) var(--luzmo-slot-menu-drag-handle-horizontal-padding, var(--slot-menu-drag-handle-horizontal-padding))}.slot-content-action:hover{background-color:var(--luzmo-slot-menu-content-label-background-color-hover, var(--luzmo-primary-hover))}.slot-content-action:focus{background-color:var(--luzmo-slot-menu-content-label-background-color-focus, var(--luzmo-primary-focus))}.slot-content-action .slot-content-label{flex:1 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.slot-content-action .slot-content-remove{flex:0 0 auto;cursor:pointer}.close{position:absolute;right:1rem;cursor:pointer;top:calc(-2 * var(--luzmo-slot-menu-border-width, var(--luzmo-border-width)));background-color:var(--luzmo-slot-menu-close-button-background-color, var(--luzmo-background-color-highlight));font-size:var(--luzmo-slot-menu-close-button-size, var(--slot-menu-close-button-size));border:var(--luzmo-slot-menu-border-width, var(--luzmo-border-width)) solid var(--luzmo-slot-menu-border-color, var(--luzmo-border-color));border-radius:var(--luzmo-slot-menu-border-radius, var(--luzmo-border-radius));border-top-left-radius:0;border-top-right-radius:0;padding:var(--luzmo-slot-menu-close-button-vertical-padding, var(--slot-menu-close-button-vertical-padding)) var(--luzmo-slot-menu-close-button-horizontal-padding, var(--slot-menu-close-button-horizontal-padding))}.close:hover{background-color:var(--luzmo-slot-menu-close-button-background-color-hover, var(--luzmo-background-color-highlight-hover))}:host{--slot-menu-display-settings-min-width: 19rem;--slot-menu-min-height: calc(var(--luzmo-component-height) * 2);--slot-menu-font-size: var(--luzmo-font-size);--slot-menu-display-settings-horizontal-padding: var(--luzmo-spacing-5);--slot-menu-display-settings-vertical-padding: var(--luzmo-spacing-4);--slot-menu-top-menu-label-max-width: 12rem;--slot-menu-list-min-width: 8rem;--slot-menu-list-max-width: 12rem;--slot-menu-label-to-icon-gap: var(--luzmo-spacing-3);--slot-menu-drag-handle-size: var(--luzmo-font-size);--slot-menu-drag-handle-vertical-padding: var(--luzmo-spacing-2);--slot-menu-drag-handle-horizontal-padding: var(--luzmo-spacing-3);--slot-menu-close-button-size: var(--luzmo-font-size-s);--slot-menu-close-button-vertical-padding: var(--luzmo-spacing-2);--slot-menu-close-button-horizontal-padding: calc( var(--luzmo-spacing-2) + var(--luzmo-spacing-1) );--slot-menu-popup-shadow-horizontal: 0;--slot-menu-popup-shadow-vertical: 1px;--slot-menu-popup-shadow-blur: 4px;--slot-menu-popup-shadow-color: var(--luzmo-border-color)}:host([size=s]){--slot-menu-display-settings-min-width: 16rem;--slot-menu-min-height: calc(var(--luzmo-component-height-s) * 2);--slot-menu-font-size: var(--luzmo-font-size-s);--slot-menu-display-settings-horizontal-padding: var(--luzmo-spacing-4);--slot-menu-display-settings-vertical-padding: var(--luzmo-spacing-3);--slot-menu-top-menu-label-max-width: 10rem;--slot-menu-list-min-width: 6rem;--slot-menu-list-max-width: 10rem;--slot-menu-label-to-icon-gap: var(--luzmo-spacing-2);--slot-menu-drag-handle-size: var(--luzmo-font-size-s);--slot-menu-drag-handle-vertical-padding: var(--luzmo-spacing-2);--slot-menu-drag-handle-horizontal-padding: var(--luzmo-spacing-3);--slot-menu-close-button-size: var(--luzmo-font-size-xs);--slot-menu-close-button-vertical-padding: var(--luzmo-spacing-2);--slot-menu-close-button-horizontal-padding: calc( var(--luzmo-spacing-2) + var(--luzmo-spacing-1) )}:host([size=l]){--slot-menu-display-settings-min-width: 23rem;--slot-menu-min-height: calc(var(--luzmo-component-height-l) * 2);--slot-menu-font-size: var(--luzmo-font-size-l);--slot-menu-display-settings-horizontal-padding: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--slot-menu-display-settings-vertical-padding: var(--luzmo-spacing-5);--slot-menu-top-menu-label-max-width: 14rem;--slot-menu-list-min-width: 9rem;--slot-menu-list-max-width: 14rem;--slot-menu-label-to-icon-gap: var(--luzmo-spacing-4);--slot-menu-drag-handle-size: var(--luzmo-font-size-l);--slot-menu-drag-handle-vertical-padding: var(--luzmo-spacing-3);--slot-menu-drag-handle-horizontal-padding: var(--luzmo-spacing-3);--slot-menu-close-button-size: var(--luzmo-font-size);--slot-menu-close-button-vertical-padding: calc( var(--luzmo-spacing-2) + var(--luzmo-spacing-1) );--slot-menu-close-button-horizontal-padding: var(--luzmo-spacing-3)}:host([size=xl]){--slot-menu-display-settings-min-width: 26rem;--slot-menu-min-height: calc(var(--luzmo-component-height-xl) * 2);--slot-menu-font-size: var(--luzmo-font-size-xl);--slot-menu-display-settings-horizontal-padding: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-2) );--slot-menu-display-settings-vertical-padding: var(--luzmo-spacing-5);--slot-menu-top-menu-label-max-width: 16rem;--slot-menu-list-min-width: 10rem;--slot-menu-list-max-width: 16rem;--slot-menu-label-to-icon-gap: var(--luzmo-spacing-5);--slot-menu-drag-handle-size: var(--luzmo-font-size-xl);--slot-menu-drag-handle-vertical-padding: var(--luzmo-spacing-3);--slot-menu-drag-handle-horizontal-padding: var(--luzmo-spacing-4);--slot-menu-close-button-size: var(--luzmo-font-size-l);--slot-menu-close-button-vertical-padding: var(--luzmo-spacing-3);--slot-menu-close-button-horizontal-padding: var(--luzmo-spacing-3)}";var v=Object.defineProperty,n=(i,o,l,r)=>{for(var s=void 0,u=i.length-1,m;u>=0;u--)(m=i[u])&&(s=m(o,l,s)||s);return s&&v(o,l,s),s};class e extends c.m(t.kt,{validSizes:Object.values(c.d)}){constructor(){super(...arguments),this.language="en",this.contentLanguage="en",this.slotType="numeric",this.variant="draggable",this.slotContents=[],this._slotListData=[],this._slotContents=[],this._currentSlotContent={},this._activeIndex=0}static get styles(){return[t.r$1(p)]}disconnectedCallback(){super.disconnectedCallback()}_sendChangeEvent(){this.dispatchEvent(new CustomEvent("slot-contents-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContents:[...this._slotContents]}}))}_sendCloseEvent(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0,cancelable:!0}))}willUpdate(o){var l;o.has("slotContents")&&(this._slotContents=structuredClone(this.slotContents),this._slotListData=structuredClone(this.slotContents),this._currentSlotContent=((l=this._slotContents)==null?void 0:l[this._activeIndex??0])??{})}updated(){this.updateContentLabel()}_handleSlotListChange(o){var r;this._slotContents=structuredClone(o.detail.slotContents);const l=o.detail.activeIndex;l!==this._activeIndex&&(this._activeIndex=l),this._currentSlotContent=((r=this._slotContents)==null?void 0:r[this._activeIndex??0])??{},this.displaySettingsElement.slotContent=this._currentSlotContent,this._slotContents.length<=1&&this.requestUpdate(),this._sendChangeEvent()}_handleSlotContentChange(o){this._slotContents[this._activeIndex]=structuredClone(o.detail.slotContent),this._slotListData=structuredClone(this._slotContents),this.slotMenuListElement&&(this.slotMenuListElement.slotContents=this._slotListData),this.updateContentLabel(),this._sendChangeEvent()}updateContentLabel(){if(this.slotContentLabelElement){const o=h.localize(this._slotContents[this._activeIndex].label,this.contentLanguage);this.slotContentLabelElement.textContent=o}}removeSlotContent(o){this._slotContents=this._slotContents.filter((l,r)=>r!==o),this._currentSlotContent={},this._sendChangeEvent(),this._sendCloseEvent(),this.requestUpdate()}close(){this._sendCloseEvent()}_removeActiveSlotContent(){this.removeSlotContent(this._activeIndex)}render(){return t.x`<div class="slot-menu-top-menu">
|
21
|
+
${this.variant==="draggable"?t.x`<div class="drag-handle">${a.O2(a.W)}</div>`:""}
|
22
|
+
${this._slotContents.length===1&&this.variant!=="popup"?t.x` <div class="slot-content-action">
|
23
|
+
<div class="slot-content-label"></div>
|
24
|
+
<div
|
25
|
+
class="slot-content-remove"
|
26
|
+
@click=${this.removeSlotContent.bind(this,0)}
|
27
|
+
>
|
28
|
+
${a.O2(a.v1)}
|
29
|
+
</div>
|
30
|
+
</div>`:""}
|
31
|
+
</div>
|
32
|
+
<div
|
33
|
+
class="slot-contents-container ${this._slotContents.length>1?"multiple":""}"
|
34
|
+
>
|
35
|
+
${this.variant==="popup"?"":t.x`<div class="close" @click=${this.close}>
|
36
|
+
${a.O2(a.B)}
|
37
|
+
</div>`}
|
38
|
+
<div class="inner-container">
|
39
|
+
${this._slotContents.length>1?t.x`<luzmo-slot-menu-list
|
40
|
+
.slotContents=${this._slotListData}
|
41
|
+
.activeIndex=${this._activeIndex}
|
42
|
+
@slot-list-changed=${this._handleSlotListChange}
|
43
|
+
></luzmo-slot-menu-list>`:""}
|
44
|
+
<luzmo-display-settings
|
45
|
+
.size=${this.size}
|
46
|
+
.language=${this.language}
|
47
|
+
.contentLanguage=${this.contentLanguage}
|
48
|
+
.slotContent=${this._currentSlotContent}
|
49
|
+
.slotType=${this.slotType}
|
50
|
+
.showRemoveButton=${this.variant==="popup"&&this._slotContents.length===1}
|
51
|
+
@slot-content-changed=${this._handleSlotContentChange}
|
52
|
+
@remove-slot-content=${this._removeActiveSlotContent}
|
53
|
+
></luzmo-display-settings>
|
54
|
+
</div>
|
55
|
+
</div>`}}n([t.n({type:String,reflect:!0})],e.prototype,"language");n([t.n({type:String,attribute:"content-language",reflect:!0})],e.prototype,"contentLanguage");n([t.n({type:String,attribute:"slot-type",reflect:!0})],e.prototype,"slotType");n([t.n({type:Boolean,attribute:"no-drag",reflect:!0})],e.prototype,"noDrag");n([t.n({type:Boolean,attribute:"no-close",reflect:!0})],e.prototype,"noClose");n([t.n({type:String,reflect:!0})],e.prototype,"variant");n([t.n({type:Boolean,attribute:"no-top-menu-label",reflect:!0})],e.prototype,"noTopMenuLabel");n([t.n()],e.prototype,"slotContents");n([d.e(".slot-content-label")],e.prototype,"slotContentLabelElement");n([d.e("luzmo-display-settings")],e.prototype,"displaySettingsElement");n([d.e("luzmo-slot-menu-list")],e.prototype,"slotMenuListElement");customElements.get("luzmo-slot-menu")||customElements.define("luzmo-slot-menu",e);exports.LuzmoSlotMenu=e;
|
@@ -0,0 +1,188 @@
|
|
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 "../index-BVX_ozT9.js";
|
21
|
+
import { k as z, a as h, x as i, n } from "../property-B2F7x7Cz.js";
|
22
|
+
import "../display-settings/index.js";
|
23
|
+
import "../slot-menu-list/index.js";
|
24
|
+
import { O as m, W as g, v, B as b } from "../luzmo-icons-BE2T8vWu.js";
|
25
|
+
import { m as f, d as x } from "../sized-mixin-BxMraZLS-B_y0PzR3.js";
|
26
|
+
import { l as y } from "../localize-B6AsX_Zv.js";
|
27
|
+
import { e as d } from "../query-Ddbd72Um.js";
|
28
|
+
const p = () => {
|
29
|
+
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
30
|
+
const r = document.createElement("style");
|
31
|
+
r.setAttribute("data-luzmo-vars", ""), r.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-color-negative: #ca221c;--luzmo-color-negative-hover: #b3241f;--luzmo-color-negative-down: #9f231f;--luzmo-color-negative-focus: #b3241f;--luzmo-color-negative-rgb: 202, 34, 28;--luzmo-color-positive: rgb(20, 150, 101);--luzmo-color-positive-hover: rgb(17, 128, 86);--luzmo-color-positive-down: rgb(16, 105, 71);--luzmo-color-positive-focus: rgb(17, 128, 86);--luzmo-color-positive-rgb: 20, 150, 101;--luzmo-color-selected: rgb(110, 110, 110);--luzmo-color-selected-hover: rgb(70, 70, 70);--luzmo-color-selected-down: rgb(40, 40, 40);--luzmo-color-selected-focus: rgb(70, 70, 70);--luzmo-color-selected-hard: #1e1e1e;--luzmo-color-selected-hard-hover: rgb(0, 0, 0);--luzmo-color-selected-hard-down: rgb(0, 0, 0);--luzmo-color-selected-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(r);
|
32
|
+
}
|
33
|
+
};
|
34
|
+
p();
|
35
|
+
const w = ":host{font-family:var(--luzmo-slot-menu-font-family, var(--luzmo-font-family));font-size:var(--luzmo-slot-menu-font-size, var(--slot-menu-font-size));color:var(--luzmo-slot-menu-font-color, var(--luzmo-font-color));display:block;width:fit-content}luzmo-slot-menu-list{min-width:var(--luzmo-slot-menu-list-min-width, var(--slot-menu-list-min-width));max-width:var(--luzmo-slot-menu-list-max-width, var(--slot-menu-list-max-width))}.slot-contents-container{position:relative;border:var(--luzmo-slot-menu-border-width, var(--luzmo-border-width)) solid var(--luzmo-slot-menu-border-color, var(--luzmo-border-color));border-radius:var(--luzmo-slot-menu-border-radius, var(--luzmo-border-radius));background:var(--luzmo-slot-menu-background-color, var(--luzmo-background-color));border-top-left-radius:0}.slot-contents-container .inner-container{display:flex}.slot-contents-container .inner-container luzmo-display-settings{min-width:var(--luzmo-slot-menu-display-settings-min-width, var(--slot-menu-display-settings-min-width));padding:var(--luzmo-slot-menu-display-settings-vertical-padding, var(--slot-menu-display-settings-vertical-padding)) var(--luzmo-slot-menu-display-settings-horizontal-padding, var(--slot-menu-display-settings-horizontal-padding))}:host([variant=popup]) .slot-contents-container{overflow:hidden;border-top-left-radius:var(--luzmo-slot-menu-border-radius, var(--luzmo-border-radius));--slot-menu-popup-filter: drop-shadow( var( --luzmo-slot-menu-popup-shadow-horizontal, var(--slot-menu-popup-shadow-horizontal) ) var( --luzmo-slot-menu-popup-shadow-vertical, var(--slot-menu-popup-shadow-vertical) ) var( --luzmo-slot-menu-popup-shadow-blur, var(--slot-menu-popup-shadow-blur) ) var( --luzmo-slot-menu-popup-shadow-color, var(--slot-menu-popup-shadow-color) ) );filter:var(--luzmo-slot-menu-popup-filter, var(--slot-menu-popup-filter))}.slot-menu-top-menu{display:flex;align-items:center;border-radius:var(--luzmo-slot-menu-border-radius, var(--luzmo-border-radius));border-bottom-left-radius:0;border-bottom-right-radius:0;overflow:hidden;width:fit-content}.drag-handle{background-color:var(--luzmo-slot-menu-drag-handle-background-color, var(--luzmo-background-color-highlight));cursor:grab;width:fit-content;border:var(--luzmo-slot-menu-border-width, var(--luzmo-border-width)) solid var(--luzmo-slot-menu-border-color, var(--luzmo-background-color-highlight));font-size:var(--luzmo-slot-menu-drag-handle-size, var(--slot-menu-drag-handle-size));padding:var(--luzmo-slot-menu-drag-handle-vertical-padding, var(--slot-menu-drag-handle-vertical-padding)) var(--luzmo-slot-menu-drag-handle-horizontal-padding, var(--slot-menu-drag-handle-horizontal-padding))}.drag-handle:hover{background-color:var(--luzmo-slot-menu-drag-handle-background-color-hover, var(--luzmo-background-color-highlight-hover))}.slot-content-action{display:flex;flex:0 1 auto;max-width:var(--luzmo-slot-menu-top-menu-label-max-width, var(--slot-menu-top-menu-label-max-width));gap:var(--luzmo-slot-menu-label-to-icon-gap, var(--slot-menu-label-to-icon-gap));background-color:var(--luzmo-slot-menu-content-label-background-color, var(--luzmo-primary));color:var(--luzmo-slot-menu-content-label-color, var(--luzmo-primary-inverse-color));border:var(--luzmo-slot-menu-border-width, var(--luzmo-border-width)) solid var(--luzmo-slot-menu-content-label-border-color, var(--luzmo-primary));padding:var(--luzmo-slot-menu-drag-handle-vertical-padding, var(--slot-menu-drag-handle-vertical-padding)) var(--luzmo-slot-menu-drag-handle-horizontal-padding, var(--slot-menu-drag-handle-horizontal-padding))}.slot-content-action:hover{background-color:var(--luzmo-slot-menu-content-label-background-color-hover, var(--luzmo-primary-hover))}.slot-content-action:focus{background-color:var(--luzmo-slot-menu-content-label-background-color-focus, var(--luzmo-primary-focus))}.slot-content-action .slot-content-label{flex:1 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.slot-content-action .slot-content-remove{flex:0 0 auto;cursor:pointer}.close{position:absolute;right:1rem;cursor:pointer;top:calc(-2 * var(--luzmo-slot-menu-border-width, var(--luzmo-border-width)));background-color:var(--luzmo-slot-menu-close-button-background-color, var(--luzmo-background-color-highlight));font-size:var(--luzmo-slot-menu-close-button-size, var(--slot-menu-close-button-size));border:var(--luzmo-slot-menu-border-width, var(--luzmo-border-width)) solid var(--luzmo-slot-menu-border-color, var(--luzmo-border-color));border-radius:var(--luzmo-slot-menu-border-radius, var(--luzmo-border-radius));border-top-left-radius:0;border-top-right-radius:0;padding:var(--luzmo-slot-menu-close-button-vertical-padding, var(--slot-menu-close-button-vertical-padding)) var(--luzmo-slot-menu-close-button-horizontal-padding, var(--slot-menu-close-button-horizontal-padding))}.close:hover{background-color:var(--luzmo-slot-menu-close-button-background-color-hover, var(--luzmo-background-color-highlight-hover))}:host{--slot-menu-display-settings-min-width: 19rem;--slot-menu-min-height: calc(var(--luzmo-component-height) * 2);--slot-menu-font-size: var(--luzmo-font-size);--slot-menu-display-settings-horizontal-padding: var(--luzmo-spacing-5);--slot-menu-display-settings-vertical-padding: var(--luzmo-spacing-4);--slot-menu-top-menu-label-max-width: 12rem;--slot-menu-list-min-width: 8rem;--slot-menu-list-max-width: 12rem;--slot-menu-label-to-icon-gap: var(--luzmo-spacing-3);--slot-menu-drag-handle-size: var(--luzmo-font-size);--slot-menu-drag-handle-vertical-padding: var(--luzmo-spacing-2);--slot-menu-drag-handle-horizontal-padding: var(--luzmo-spacing-3);--slot-menu-close-button-size: var(--luzmo-font-size-s);--slot-menu-close-button-vertical-padding: var(--luzmo-spacing-2);--slot-menu-close-button-horizontal-padding: calc( var(--luzmo-spacing-2) + var(--luzmo-spacing-1) );--slot-menu-popup-shadow-horizontal: 0;--slot-menu-popup-shadow-vertical: 1px;--slot-menu-popup-shadow-blur: 4px;--slot-menu-popup-shadow-color: var(--luzmo-border-color)}:host([size=s]){--slot-menu-display-settings-min-width: 16rem;--slot-menu-min-height: calc(var(--luzmo-component-height-s) * 2);--slot-menu-font-size: var(--luzmo-font-size-s);--slot-menu-display-settings-horizontal-padding: var(--luzmo-spacing-4);--slot-menu-display-settings-vertical-padding: var(--luzmo-spacing-3);--slot-menu-top-menu-label-max-width: 10rem;--slot-menu-list-min-width: 6rem;--slot-menu-list-max-width: 10rem;--slot-menu-label-to-icon-gap: var(--luzmo-spacing-2);--slot-menu-drag-handle-size: var(--luzmo-font-size-s);--slot-menu-drag-handle-vertical-padding: var(--luzmo-spacing-2);--slot-menu-drag-handle-horizontal-padding: var(--luzmo-spacing-3);--slot-menu-close-button-size: var(--luzmo-font-size-xs);--slot-menu-close-button-vertical-padding: var(--luzmo-spacing-2);--slot-menu-close-button-horizontal-padding: calc( var(--luzmo-spacing-2) + var(--luzmo-spacing-1) )}:host([size=l]){--slot-menu-display-settings-min-width: 23rem;--slot-menu-min-height: calc(var(--luzmo-component-height-l) * 2);--slot-menu-font-size: var(--luzmo-font-size-l);--slot-menu-display-settings-horizontal-padding: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--slot-menu-display-settings-vertical-padding: var(--luzmo-spacing-5);--slot-menu-top-menu-label-max-width: 14rem;--slot-menu-list-min-width: 9rem;--slot-menu-list-max-width: 14rem;--slot-menu-label-to-icon-gap: var(--luzmo-spacing-4);--slot-menu-drag-handle-size: var(--luzmo-font-size-l);--slot-menu-drag-handle-vertical-padding: var(--luzmo-spacing-3);--slot-menu-drag-handle-horizontal-padding: var(--luzmo-spacing-3);--slot-menu-close-button-size: var(--luzmo-font-size);--slot-menu-close-button-vertical-padding: calc( var(--luzmo-spacing-2) + var(--luzmo-spacing-1) );--slot-menu-close-button-horizontal-padding: var(--luzmo-spacing-3)}:host([size=xl]){--slot-menu-display-settings-min-width: 26rem;--slot-menu-min-height: calc(var(--luzmo-component-height-xl) * 2);--slot-menu-font-size: var(--luzmo-font-size-xl);--slot-menu-display-settings-horizontal-padding: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-2) );--slot-menu-display-settings-vertical-padding: var(--luzmo-spacing-5);--slot-menu-top-menu-label-max-width: 16rem;--slot-menu-list-min-width: 10rem;--slot-menu-list-max-width: 16rem;--slot-menu-label-to-icon-gap: var(--luzmo-spacing-5);--slot-menu-drag-handle-size: var(--luzmo-font-size-xl);--slot-menu-drag-handle-vertical-padding: var(--luzmo-spacing-3);--slot-menu-drag-handle-horizontal-padding: var(--luzmo-spacing-4);--slot-menu-close-button-size: var(--luzmo-font-size-l);--slot-menu-close-button-vertical-padding: var(--luzmo-spacing-3);--slot-menu-close-button-horizontal-padding: var(--luzmo-spacing-3)}";
|
36
|
+
var C = Object.defineProperty, l = (r, o, e, a) => {
|
37
|
+
for (var s = void 0, u = r.length - 1, c; u >= 0; u--)
|
38
|
+
(c = r[u]) && (s = c(o, e, s) || s);
|
39
|
+
return s && C(o, e, s), s;
|
40
|
+
};
|
41
|
+
class t extends f(z, {
|
42
|
+
validSizes: Object.values(x)
|
43
|
+
}) {
|
44
|
+
constructor() {
|
45
|
+
super(...arguments), this.language = "en", this.contentLanguage = "en", this.slotType = "numeric", this.variant = "draggable", this.slotContents = [], this._slotListData = [], this._slotContents = [], this._currentSlotContent = {}, this._activeIndex = 0;
|
46
|
+
}
|
47
|
+
static get styles() {
|
48
|
+
return [h(w)];
|
49
|
+
}
|
50
|
+
disconnectedCallback() {
|
51
|
+
super.disconnectedCallback();
|
52
|
+
}
|
53
|
+
_sendChangeEvent() {
|
54
|
+
this.dispatchEvent(
|
55
|
+
new CustomEvent("slot-contents-changed", {
|
56
|
+
bubbles: !0,
|
57
|
+
composed: !0,
|
58
|
+
cancelable: !0,
|
59
|
+
detail: {
|
60
|
+
slotContents: [...this._slotContents]
|
61
|
+
}
|
62
|
+
})
|
63
|
+
);
|
64
|
+
}
|
65
|
+
_sendCloseEvent() {
|
66
|
+
this.dispatchEvent(
|
67
|
+
new CustomEvent("close", {
|
68
|
+
bubbles: !0,
|
69
|
+
composed: !0,
|
70
|
+
cancelable: !0
|
71
|
+
})
|
72
|
+
);
|
73
|
+
}
|
74
|
+
willUpdate(o) {
|
75
|
+
var e;
|
76
|
+
o.has("slotContents") && (this._slotContents = structuredClone(this.slotContents), this._slotListData = structuredClone(this.slotContents), this._currentSlotContent = ((e = this._slotContents) == null ? void 0 : e[this._activeIndex ?? 0]) ?? {});
|
77
|
+
}
|
78
|
+
updated() {
|
79
|
+
this.updateContentLabel();
|
80
|
+
}
|
81
|
+
_handleSlotListChange(o) {
|
82
|
+
var a;
|
83
|
+
this._slotContents = structuredClone(o.detail.slotContents);
|
84
|
+
const e = o.detail.activeIndex;
|
85
|
+
e !== this._activeIndex && (this._activeIndex = e), this._currentSlotContent = ((a = this._slotContents) == null ? void 0 : a[this._activeIndex ?? 0]) ?? {}, this.displaySettingsElement.slotContent = this._currentSlotContent, this._slotContents.length <= 1 && this.requestUpdate(), this._sendChangeEvent();
|
86
|
+
}
|
87
|
+
_handleSlotContentChange(o) {
|
88
|
+
this._slotContents[this._activeIndex] = structuredClone(
|
89
|
+
o.detail.slotContent
|
90
|
+
), this._slotListData = structuredClone(this._slotContents), this.slotMenuListElement && (this.slotMenuListElement.slotContents = this._slotListData), this.updateContentLabel(), this._sendChangeEvent();
|
91
|
+
}
|
92
|
+
// we set & update the label manually to not lose focus when typing in the display settings bc of rerender
|
93
|
+
updateContentLabel() {
|
94
|
+
if (this.slotContentLabelElement) {
|
95
|
+
const o = y(
|
96
|
+
this._slotContents[this._activeIndex].label,
|
97
|
+
this.contentLanguage
|
98
|
+
);
|
99
|
+
this.slotContentLabelElement.textContent = o;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
removeSlotContent(o) {
|
103
|
+
this._slotContents = this._slotContents.filter(
|
104
|
+
(e, a) => a !== o
|
105
|
+
), this._currentSlotContent = {}, this._sendChangeEvent(), this._sendCloseEvent(), this.requestUpdate();
|
106
|
+
}
|
107
|
+
close() {
|
108
|
+
this._sendCloseEvent();
|
109
|
+
}
|
110
|
+
_removeActiveSlotContent() {
|
111
|
+
this.removeSlotContent(this._activeIndex);
|
112
|
+
}
|
113
|
+
render() {
|
114
|
+
return i`<div class="slot-menu-top-menu">
|
115
|
+
${this.variant === "draggable" ? i`<div class="drag-handle">${m(g)}</div>` : ""}
|
116
|
+
${this._slotContents.length === 1 && this.variant !== "popup" ? i` <div class="slot-content-action">
|
117
|
+
<div class="slot-content-label"></div>
|
118
|
+
<div
|
119
|
+
class="slot-content-remove"
|
120
|
+
@click=${this.removeSlotContent.bind(this, 0)}
|
121
|
+
>
|
122
|
+
${m(v)}
|
123
|
+
</div>
|
124
|
+
</div>` : ""}
|
125
|
+
</div>
|
126
|
+
<div
|
127
|
+
class="slot-contents-container ${this._slotContents.length > 1 ? "multiple" : ""}"
|
128
|
+
>
|
129
|
+
${this.variant === "popup" ? "" : i`<div class="close" @click=${this.close}>
|
130
|
+
${m(b)}
|
131
|
+
</div>`}
|
132
|
+
<div class="inner-container">
|
133
|
+
${this._slotContents.length > 1 ? i`<luzmo-slot-menu-list
|
134
|
+
.slotContents=${this._slotListData}
|
135
|
+
.activeIndex=${this._activeIndex}
|
136
|
+
@slot-list-changed=${this._handleSlotListChange}
|
137
|
+
></luzmo-slot-menu-list>` : ""}
|
138
|
+
<luzmo-display-settings
|
139
|
+
.size=${this.size}
|
140
|
+
.language=${this.language}
|
141
|
+
.contentLanguage=${this.contentLanguage}
|
142
|
+
.slotContent=${this._currentSlotContent}
|
143
|
+
.slotType=${this.slotType}
|
144
|
+
.showRemoveButton=${this.variant === "popup" && this._slotContents.length === 1}
|
145
|
+
@slot-content-changed=${this._handleSlotContentChange}
|
146
|
+
@remove-slot-content=${this._removeActiveSlotContent}
|
147
|
+
></luzmo-display-settings>
|
148
|
+
</div>
|
149
|
+
</div>`;
|
150
|
+
}
|
151
|
+
}
|
152
|
+
l([
|
153
|
+
n({ type: String, reflect: !0 })
|
154
|
+
], t.prototype, "language");
|
155
|
+
l([
|
156
|
+
n({ type: String, attribute: "content-language", reflect: !0 })
|
157
|
+
], t.prototype, "contentLanguage");
|
158
|
+
l([
|
159
|
+
n({ type: String, attribute: "slot-type", reflect: !0 })
|
160
|
+
], t.prototype, "slotType");
|
161
|
+
l([
|
162
|
+
n({ type: Boolean, attribute: "no-drag", reflect: !0 })
|
163
|
+
], t.prototype, "noDrag");
|
164
|
+
l([
|
165
|
+
n({ type: Boolean, attribute: "no-close", reflect: !0 })
|
166
|
+
], t.prototype, "noClose");
|
167
|
+
l([
|
168
|
+
n({ type: String, reflect: !0 })
|
169
|
+
], t.prototype, "variant");
|
170
|
+
l([
|
171
|
+
n({ type: Boolean, attribute: "no-top-menu-label", reflect: !0 })
|
172
|
+
], t.prototype, "noTopMenuLabel");
|
173
|
+
l([
|
174
|
+
n()
|
175
|
+
], t.prototype, "slotContents");
|
176
|
+
l([
|
177
|
+
d(".slot-content-label")
|
178
|
+
], t.prototype, "slotContentLabelElement");
|
179
|
+
l([
|
180
|
+
d("luzmo-display-settings")
|
181
|
+
], t.prototype, "displaySettingsElement");
|
182
|
+
l([
|
183
|
+
d("luzmo-slot-menu-list")
|
184
|
+
], t.prototype, "slotMenuListElement");
|
185
|
+
customElements.get("luzmo-slot-menu") || customElements.define("luzmo-slot-menu", t);
|
186
|
+
export {
|
187
|
+
t as LuzmoSlotMenu
|
188
|
+
};
|