@luzmo/analytics-components-kit 1.0.1-alpha.4 → 1.0.1-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/async-directive-FGzMycjH-Bgeca09f.js +152 -0
- package/components/async-directive-FGzMycjH-CeG35vZ3.cjs +56 -0
- package/components/base-BjTwmyRF.cjs +24 -0
- package/components/base-D76d76ww-BiajPmzU.cjs +40 -0
- package/components/base-D76d76ww-gf0ESLsU.js +45 -0
- package/components/base-D76d76ww.js +28 -0
- package/components/button-base-CDLQV7Vk-BXgdcJZo.cjs +43 -0
- package/{lib/button-base-CtfPWS-P.js → components/button-base-CDLQV7Vk-C_3zTrbV.js} +55 -36
- package/components/checkbox-mixin-DXUIwtea-DNISZS47.cjs +45 -0
- package/components/checkbox-mixin-DXUIwtea-wiCZr_KI.js +88 -0
- package/components/directive-helpers-BLDZnGQv-DYFfxaqA.cjs +80 -0
- package/components/directive-helpers-BLDZnGQv-oKMCBvb2.js +115 -0
- package/components/display-settings/display-settings.d.ts +70 -0
- package/components/display-settings/index.cjs +105 -0
- package/components/display-settings/index.d.ts +7 -0
- package/components/display-settings/index.js +238 -0
- package/components/display-settings-binning/display-settings-binning.d.ts +32 -0
- package/components/display-settings-binning/index.cjs +51 -0
- package/components/display-settings-binning/index.d.ts +7 -0
- package/components/display-settings-binning/index.js +137 -0
- package/components/display-settings-datetime/display-settings-datetime.d.ts +85 -0
- package/{lib/draggable-data-item → components/display-settings-datetime}/index.cjs +1 -1
- package/components/display-settings-datetime/index.d.ts +7 -0
- package/{lib/draggable-data-item → components/display-settings-datetime}/index.js +2 -2
- package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +30 -0
- package/{lib/index-C4ePDYEC.cjs → components/display-settings-grand-totals/index.cjs} +4 -4
- package/components/display-settings-grand-totals/index.d.ts +7 -0
- package/components/display-settings-grand-totals/index.js +115 -0
- package/components/display-settings-numeric/display-settings-numeric.d.ts +73 -0
- package/components/display-settings-numeric/helpers/constants.d.ts +17 -0
- package/components/display-settings-numeric/index.cjs +146 -0
- package/components/display-settings-numeric/index.d.ts +7 -0
- package/{lib/index-CM80_HQw.js → components/display-settings-numeric/index.js} +106 -96
- package/components/display-settings-period-over-period/display-settings-period-over-period.d.ts +44 -0
- package/components/display-settings-period-over-period/helpers/constants.d.ts +33 -0
- package/components/display-settings-period-over-period/index.cjs +103 -0
- package/components/display-settings-period-over-period/index.d.ts +7 -0
- package/{lib/index-DJp_9h0l.js → components/display-settings-period-over-period/index.js} +104 -123
- package/components/divider.module-DwOuLGU3-B19eHVg2.js +40 -0
- package/components/divider.module-DwOuLGU3-Bg8RrFkc.cjs +36 -0
- package/components/draggable-data-item/draggable-data-item.d.ts +25 -0
- package/components/draggable-data-item/index.cjs +55 -0
- package/components/draggable-data-item/index.d.ts +7 -0
- package/components/draggable-data-item/index.js +140 -0
- package/components/draggable-data-item-level/draggable-data-item-level.d.ts +29 -0
- package/components/draggable-data-item-level/helpers/calculate-type-icon.d.ts +2 -0
- package/components/draggable-data-item-level/helpers/generate-preview.d.ts +1 -0
- package/components/draggable-data-item-level/index.cjs +36 -0
- package/components/draggable-data-item-level/index.d.ts +7 -0
- package/{lib/index-DrIA0eFE.js → components/draggable-data-item-level/index.js} +137 -236
- package/components/droppable-slot/droppable-slot.d.ts +49 -0
- package/components/droppable-slot/index.cjs +69 -0
- package/components/droppable-slot/index.d.ts +7 -0
- package/components/droppable-slot/index.js +255 -0
- package/components/droppable-slot/item-slots-configs/area-chart-slots.config.d.ts +44 -0
- package/components/droppable-slot/item-slots-configs/bar-chart-slots.config.d.ts +24 -0
- package/components/droppable-slot/item-slots-configs/donut-chart-slots.config.d.ts +20 -0
- package/components/edit-item/edit-item.d.ts +50 -0
- package/components/edit-item/index.cjs +85 -0
- package/components/edit-item/index.d.ts +7 -0
- package/components/edit-item/index.js +333 -0
- package/components/edit-option/edit-option.d.ts +22 -0
- package/components/edit-option/helpers/control-markup.d.ts +14 -0
- package/components/edit-option/helpers/control-templates/action-button-group-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/color-picker-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/multi-language-field-template.d.ts +8 -0
- package/components/edit-option/helpers/control-templates/number-field-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/picker-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/positions-number-field-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/radio-button-group.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/slider-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/switch-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/text-field-template.d.ts +7 -0
- package/components/edit-option/helpers/generate-callback.d.ts +1 -0
- package/components/edit-option/helpers/get-control-by-key.d.ts +1 -0
- package/components/edit-option/helpers/get-extra-label-values.d.ts +7 -0
- package/components/edit-option/helpers/get-value-by-key.d.ts +1 -0
- package/components/edit-option/index.cjs +176 -0
- package/components/edit-option/index.d.ts +7 -0
- package/components/edit-option/index.js +507 -0
- package/components/edit-option/item-configs/bar-chart.config.d.ts +108 -0
- package/components/edit-option/item-configs/column-chart.config.d.ts +108 -0
- package/components/edit-option/item-configs/donut-chart.config.d.ts +102 -0
- package/components/edit-option/item-configs/imageobject.config.d.ts +128 -0
- package/components/edit-option/item-configs/line-chart.config.d.ts +96 -0
- package/components/edit-option/item-configs/textobject.config.d.ts +13 -0
- package/components/edit-option/item-translations/bar-chart.en.d.ts +48 -0
- package/components/edit-option/item-translations/bar-chart.fr.d.ts +23 -0
- package/components/edit-option/item-translations/bar-chart.nl.d.ts +23 -0
- package/components/edit-option/item-translations/donut-chart.en.d.ts +64 -0
- package/components/edit-option/item-translations/donut-chart.fr.d.ts +18 -0
- package/components/edit-option/item-translations/donut-chart.nl.d.ts +18 -0
- package/components/edit-option-action-button-group/edit-option-action-button-group.d.ts +27 -0
- package/components/edit-option-action-button-group/index.cjs +44 -0
- package/components/edit-option-action-button-group/index.d.ts +7 -0
- package/components/edit-option-action-button-group/index.js +144 -0
- package/components/edit-option-base/edit-option-base.d.ts +22 -0
- package/components/edit-option-base-DnrerC_T.cjs +53 -0
- package/components/edit-option-base-oIvlolV9.js +120 -0
- package/components/edit-option-color-picker/edit-option-color-picker.d.ts +23 -0
- package/components/edit-option-color-picker/index.cjs +472 -0
- package/components/edit-option-color-picker/index.d.ts +7 -0
- package/components/edit-option-color-picker/index.js +2553 -0
- package/components/edit-option-multi-language-field/edit-option-multi-language-field.d.ts +15 -0
- package/components/edit-option-multi-language-field/index.cjs +31 -0
- package/components/edit-option-multi-language-field/index.d.ts +7 -0
- package/components/edit-option-multi-language-field/index.js +102 -0
- package/components/edit-option-number-field/edit-option-number-field.d.ts +19 -0
- package/components/edit-option-number-field/index.cjs +32 -0
- package/components/edit-option-number-field/index.d.ts +7 -0
- package/components/edit-option-number-field/index.js +115 -0
- package/components/edit-option-picker/edit-option-picker.d.ts +22 -0
- package/components/edit-option-picker/index.cjs +35 -0
- package/components/edit-option-picker/index.d.ts +7 -0
- package/components/edit-option-picker/index.js +106 -0
- package/components/edit-option-positions-number-field/edit-option-positions-number-field.d.ts +28 -0
- package/components/edit-option-positions-number-field/index.cjs +42 -0
- package/components/edit-option-positions-number-field/index.d.ts +7 -0
- package/components/edit-option-positions-number-field/index.js +170 -0
- package/components/edit-option-radio-button-group/edit-option-radio-button-group.d.ts +18 -0
- package/components/edit-option-radio-button-group/index.cjs +36 -0
- package/components/edit-option-radio-button-group/index.d.ts +7 -0
- package/components/edit-option-radio-button-group/index.js +113 -0
- package/components/edit-option-slider/edit-option-slider.d.ts +15 -0
- package/components/edit-option-slider/index.cjs +48 -0
- package/components/edit-option-slider/index.d.ts +7 -0
- package/components/edit-option-slider/index.js +1253 -0
- package/components/edit-option-switch/edit-option-switch.d.ts +11 -0
- package/components/edit-option-switch/index.cjs +50 -0
- package/components/edit-option-switch/index.d.ts +7 -0
- package/components/edit-option-switch/index.js +171 -0
- package/components/edit-option-text-field/edit-option-text-field.d.ts +15 -0
- package/components/edit-option-text-field/index.cjs +31 -0
- package/components/edit-option-text-field/index.d.ts +7 -0
- package/components/edit-option-text-field/index.js +100 -0
- package/components/element-resolution-FCUT-wql--7ctE626.js +163 -0
- package/components/element-resolution-FCUT-wql-DSTvdyds.cjs +68 -0
- package/{lib/en-CIeY2T5K.js → components/en-BsAhbMzm.js} +101 -102
- package/components/en-CdROUdjt.cjs +202 -0
- package/{lib/en-GB-BqYHIX1v.cjs → components/en-GB-g8rSQSba.cjs} +1 -1
- package/{lib/en-GB-CYx--4nh.js → components/en-GB-qub-Kemt.js} +1 -1
- package/components/focus-group-DHeTq18L-C9l9oHwM.cjs +36 -0
- package/components/focus-group-DHeTq18L-rNUu13eb.js +237 -0
- package/{lib/get-css-variable-BHHQ0SnL.js → components/get-css-variable-Bhbr-Kr1.js} +379 -410
- package/components/get-css-variable-DLiZYZEi.cjs +24 -0
- package/components/if-defined-CYpcjGCb-Bzbg7zmM.cjs +60 -0
- package/components/if-defined-CYpcjGCb-tXzyj9Dq.js +95 -0
- package/components/if-defined-Ch2dtEOS.js +29 -0
- package/components/if-defined-DMSuo5Qx.cjs +24 -0
- package/components/index-3ewegRbb.cjs +67 -0
- package/components/index-B0cBkCaq.cjs +39 -0
- package/components/index-B2N_PZf3.js +164 -0
- package/components/index-B2z7i1-X.js +77 -0
- package/components/index-B5VaT0lQ.js +145 -0
- package/components/index-BC-nmKjU.js +104 -0
- package/{lib/droppable-slot/index.js → components/index-BD3VxQBH.js} +18 -4
- package/components/index-BGaxFTL4.js +299 -0
- package/{lib/index-B9h2L_hV.js → components/index-BRk42NQn.js} +1235 -1112
- package/components/index-Bjs6Yqet.cjs +185 -0
- package/components/index-Bofs4Q2E.cjs +36 -0
- package/components/index-BqTdFs1o.js +77 -0
- package/components/index-C2qG2Sm8-BQUlk-w0.js +935 -0
- package/components/index-C2qG2Sm8-CbVWlbag.cjs +95 -0
- package/components/index-CTPox3yS.cjs +54 -0
- package/components/index-C_3Ak4MQ.cjs +59 -0
- package/components/index-CayjvyyX.cjs +95 -0
- package/components/index-CkDDDzuJ.js +744 -0
- package/{lib/progress-circle/index.js → components/index-Cp-lHUlX.js} +53 -20
- package/components/index-CtHO6VyI.cjs +42 -0
- package/components/index-D4x-O9Uc.cjs +192 -0
- package/components/index-D9vzXhtJ.cjs +95 -0
- package/components/index-DQiQXn8N.cjs +36 -0
- package/{lib/picker/index.js → components/index-DVaeDCbe.js} +22 -6
- package/components/index-DskAouD-.js +317 -0
- package/{lib/index-CBCm4_7S.js → components/index-DszPbTTD.js} +401 -460
- package/{lib/index-Bd4cKS9O.js → components/index-EQldC-LR.js} +67 -47
- package/components/index-ON4x-yZ7.cjs +36 -0
- package/components/index-gfU9TGd5.cjs +57 -0
- package/components/index-liTHhAef.cjs +36 -0
- package/components/index.cjs +20 -0
- package/components/index.js +74 -0
- package/components/language-resolution-8yZa5r_P-CTSmbE1U.js +161 -0
- package/components/language-resolution-8yZa5r_P-DQ3rZzW5.cjs +52 -0
- package/components/localize-B6AsX_Zv.js +52 -0
- package/components/localize-DbobqcKs.cjs +20 -0
- package/components/luzmo-icons-BrtBl3E5.cjs +31 -0
- package/{lib/index-DdtjeKYI.js → components/luzmo-icons-CZEpXpvy.js} +157 -472
- package/components/observe-slot-text-BG0H7bQK-C0wmc4DO.js +221 -0
- package/components/observe-slot-text-BG0H7bQK-CrkAqUMj.cjs +86 -0
- package/{lib/popover-Bwnkg-5-.js → components/popover-bg0EQQ8p-D4-hrhIx.js} +25 -6
- package/components/popover-bg0EQQ8p-Dha09dhV.cjs +48 -0
- package/components/property-CD3dwBJC.js +1447 -0
- package/components/property-Su1Q6aME.cjs +124 -0
- package/components/query-D5qWDopr.cjs +24 -0
- package/components/query-Ddbd72Um.js +39 -0
- package/components/query-assigned-nodes-C76XVPWY-BcyGjObB.cjs +40 -0
- package/components/query-assigned-nodes-C76XVPWY-DPC6kOmH.js +55 -0
- package/components/roving-tabindex-DOg4z6ZU-DmyYPRYY.cjs +36 -0
- package/components/roving-tabindex-DOg4z6ZU-dufnVmvL.js +85 -0
- package/components/sized-mixin-PyCYpyQq-B40Ek2UB.js +82 -0
- package/components/sized-mixin-PyCYpyQq-sKzDjc75.cjs +36 -0
- package/components/slot-menu/index.cjs +55 -0
- package/components/slot-menu/index.d.ts +7 -0
- package/components/slot-menu/index.js +188 -0
- package/components/slot-menu/slot-menu.d.ts +66 -0
- package/components/slot-menu-list/index.cjs +39 -0
- package/components/slot-menu-list/index.d.ts +7 -0
- package/components/slot-menu-list/index.js +351 -0
- package/components/slot-menu-list/slot-menu-list.d.ts +33 -0
- package/components/state-B1a8XIDm.js +31 -0
- package/components/state-ByiKNRhp.cjs +24 -0
- package/components/task-BPD0PyaQ.js +120 -0
- package/components/task-HFsHfTra.cjs +24 -0
- package/components/text-field-7ITo3Lac-CKXsSqJP.cjs +131 -0
- package/components/text-field-7ITo3Lac-DqVO04kR.js +412 -0
- package/{lib/index-D_KYpfBM.js → components/utils.cjs} +1 -5
- package/{lib/droppable-slot/index.cjs → components/utils.js} +1 -1
- package/components/when-CDK1Tt5Y-BN3qcTK0.cjs +40 -0
- package/components/when-CDK1Tt5Y-C6ViXC43.js +47 -0
- package/custom-elements.json +3562 -884
- package/index.d.ts +23 -0
- package/package.json +132 -17
- package/utils/formatter/calculate-duration.d.ts +2 -0
- package/utils/formatter/decompose-numeric-format.d.ts +11 -0
- package/utils/formatter/default-local-formats.d.ts +20 -0
- package/utils/formatter/formats/cs.d.ts +20 -0
- package/utils/formatter/formats/da.d.ts +20 -0
- package/utils/formatter/formats/de.d.ts +21 -0
- package/utils/formatter/formats/en-GB.d.ts +21 -0
- package/utils/formatter/formats/en-US.d.ts +1 -0
- package/utils/formatter/formats/en.d.ts +1 -0
- package/utils/formatter/formats/es.d.ts +54 -0
- package/utils/formatter/formats/fi.d.ts +20 -0
- package/utils/formatter/formats/fr.d.ts +54 -0
- package/utils/formatter/formats/he.d.ts +20 -0
- package/utils/formatter/formats/hu.d.ts +20 -0
- package/utils/formatter/formats/it.d.ts +54 -0
- package/utils/formatter/formats/ja.d.ts +20 -0
- package/utils/formatter/formats/ko.d.ts +20 -0
- package/utils/formatter/formats/mk.d.ts +20 -0
- package/utils/formatter/formats/nl.d.ts +21 -0
- package/utils/formatter/formats/no.d.ts +21 -0
- package/utils/formatter/formats/pl.d.ts +20 -0
- package/utils/formatter/formats/pt.d.ts +20 -0
- package/utils/formatter/formats/ru.d.ts +20 -0
- package/utils/formatter/formats/sv.d.ts +20 -0
- package/utils/formatter/formats/tr.d.ts +21 -0
- package/utils/formatter/formats/zh-CN.d.ts +20 -0
- package/utils/formatter/formats/zh-TW.d.ts +20 -0
- package/utils/formatter/formatter.d.ts +9 -0
- package/utils/formatter/localize.d.ts +3 -0
- package/utils/formatter/smart-datetime-formats.const.d.ts +36 -0
- package/utils/get-css-variable.d.ts +1 -0
- package/utils/index.d.ts +1 -0
- package/utils/time/formats.const.d.ts +8 -0
- package/utils/time/periods.const.d.ts +29 -0
- package/utils/types/column.types.d.ts +56 -0
- package/utils/types/type-check.d.ts +7 -0
- package/lib/async-directive-CPjMHOPu.cjs +0 -24
- package/lib/async-directive-SCUUQ3Mh.js +0 -114
- package/lib/button-base-B4PdJFVe.cjs +0 -27
- package/lib/directive-helpers-BSB0tfc9.cjs +0 -32
- package/lib/directive-helpers-eY1rHtyn.js +0 -154
- package/lib/divider.module-BW8qaMVq.js +0 -211
- package/lib/divider.module-DEy88Ieh.cjs +0 -20
- package/lib/en-BDBzmAXX.cjs +0 -202
- package/lib/get-css-variable-D439CdH9.cjs +0 -24
- package/lib/if-defined-BbzmSG-O.js +0 -757
- package/lib/if-defined-V7yEJWI3.cjs +0 -54
- package/lib/index-0314DjEl.cjs +0 -20
- package/lib/index-BDXFsKUM.cjs +0 -146
- package/lib/index-BmAD29P2.js +0 -106
- package/lib/index-Bo1DpZ-1.cjs +0 -58
- package/lib/index-C9xEN5Ji.js +0 -82
- package/lib/index-CcF-9wyF.cjs +0 -71
- package/lib/index-CfEm5P0J.cjs +0 -196
- package/lib/index-CrWoFMZ3.cjs +0 -22
- package/lib/index-CtEJZdT0.js +0 -1627
- package/lib/index-CvX-HLY1.cjs +0 -322
- package/lib/index-D37RwuEH.js +0 -1584
- package/lib/index-D5puKlcm.cjs +0 -96
- package/lib/index-DGz6jCKo.cjs +0 -26
- package/lib/index-DSbgZduE.js +0 -501
- package/lib/index-Dj7PF4Q9.cjs +0 -63
- package/lib/index-Dq3HAOaM.js +0 -127
- package/lib/index-jt6FL_uE.cjs +0 -20
- package/lib/index-kJR406YZ.cjs +0 -112
- package/lib/index-v8ZTprPO.cjs +0 -51
- package/lib/index.cjs +0 -875
- package/lib/index.js +0 -6411
- package/lib/observe-slot-text-DOYmGOZe.js +0 -181
- package/lib/observe-slot-text-oJ0a2KY9.cjs +0 -42
- package/lib/picker/index.cjs +0 -20
- package/lib/popover-CQGN8nbX.cjs +0 -32
- package/lib/progress-circle/index.cjs +0 -35
- /package/{lib → components}/area-chart-slots.config-BLxiYX05.cjs +0 -0
- /package/{lib → components}/area-chart-slots.config-C0c2ZzBh.js +0 -0
- /package/{lib → components}/bar-chart-slots.config-GSSL7XVA.js +0 -0
- /package/{lib → components}/bar-chart-slots.config-Jx1PveTM.cjs +0 -0
- /package/{lib → components}/bar-chart.config-B57geUzJ.cjs +0 -0
- /package/{lib → components}/bar-chart.config-CQ6HAvs2.js +0 -0
- /package/{lib → components}/bar-chart.en-BqYbiHO3.cjs +0 -0
- /package/{lib → components}/bar-chart.en-FwT00qdU.js +0 -0
- /package/{lib → components}/bar-chart.fr-DGx9smEh.cjs +0 -0
- /package/{lib → components}/bar-chart.fr-DbxKiM0j.js +0 -0
- /package/{lib → components}/bar-chart.nl-BYzVExsz.cjs +0 -0
- /package/{lib → components}/bar-chart.nl-ahX1ARpH.js +0 -0
- /package/{lib → components}/column-chart.config-B57geUzJ.cjs +0 -0
- /package/{lib → components}/column-chart.config-C9hP0kX7.js +0 -0
- /package/{lib → components}/cs-DVZ0Tapy.js +0 -0
- /package/{lib → components}/cs-I9E81keK.cjs +0 -0
- /package/{lib → components}/da-DHy05oSR.js +0 -0
- /package/{lib → components}/da-QkdvupDg.cjs +0 -0
- /package/{lib → components}/de-Dn5mUzha.cjs +0 -0
- /package/{lib → components}/de-iM39JlAt.js +0 -0
- /package/{lib → components}/decompose-numeric-format-B3rVVHpO.cjs +0 -0
- /package/{lib → components}/decompose-numeric-format-BuZcjH2k.js +0 -0
- /package/{lib → components}/donut-chart-slots.config-BEwhfq27.js +0 -0
- /package/{lib → components}/donut-chart-slots.config-DIp-24lO.cjs +0 -0
- /package/{lib → components}/donut-chart.config-3DhKiSSM.js +0 -0
- /package/{lib → components}/donut-chart.config-DLWJUlHx.cjs +0 -0
- /package/{lib → components}/donut-chart.en-Blb9oSdU.cjs +0 -0
- /package/{lib → components}/donut-chart.en-CzjT4-XN.js +0 -0
- /package/{lib → components}/donut-chart.fr-BeTVa2wh.cjs +0 -0
- /package/{lib → components}/donut-chart.fr-DftPrKbG.js +0 -0
- /package/{lib → components}/donut-chart.nl-D9YGbOce.cjs +0 -0
- /package/{lib → components}/donut-chart.nl-NMatXfhK.js +0 -0
- /package/{lib → components}/es-CwyPlN5d.cjs +0 -0
- /package/{lib → components}/es-KhTq4jX8.js +0 -0
- /package/{lib → components}/fi-Dh_ebgpe.js +0 -0
- /package/{lib → components}/fi-rijeZE5V.cjs +0 -0
- /package/{lib → components}/fr-BcgE-6S_.cjs +0 -0
- /package/{lib → components}/fr-CU727YF1.js +0 -0
- /package/{lib → components}/he-Au3xg6lR.js +0 -0
- /package/{lib → components}/he-O6Ih8Bqh.cjs +0 -0
- /package/{lib → components}/hu-BnZ8y3xQ.cjs +0 -0
- /package/{lib → components}/hu-DNJ-P_MW.js +0 -0
- /package/{lib → components}/imageobject.config-B7ld9bj3.cjs +0 -0
- /package/{lib → components}/imageobject.config-DZLp9Elq.js +0 -0
- /package/{lib → components}/it-Bh5U73z6.js +0 -0
- /package/{lib → components}/it-PshtLMkq.cjs +0 -0
- /package/{lib → components}/ja-CCcHUL61.js +0 -0
- /package/{lib → components}/ja-KIS2HdaG.cjs +0 -0
- /package/{lib → components}/ko--l4qmjLV.cjs +0 -0
- /package/{lib → components}/ko-DhapsZMM.js +0 -0
- /package/{lib → components}/line-chart.config-BZcvfO2c.cjs +0 -0
- /package/{lib → components}/line-chart.config-CIVN6uLI.js +0 -0
- /package/{lib → components}/mk-B9HPSuKa.js +0 -0
- /package/{lib → components}/mk-DZlj-edb.cjs +0 -0
- /package/{lib → components}/nl-BKlDqOXb.cjs +0 -0
- /package/{lib → components}/nl-BwSt5Bf4.js +0 -0
- /package/{lib → components}/no-D-DofYnx.js +0 -0
- /package/{lib → components}/no-D_SzxhTu.cjs +0 -0
- /package/{lib → components}/pl-D_L_0Boq.js +0 -0
- /package/{lib → components}/pl-PIK23rK_.cjs +0 -0
- /package/{lib → components}/pt-B0BBS5VB.js +0 -0
- /package/{lib → components}/pt-Dqlu4MS5.cjs +0 -0
- /package/{lib → components}/ru-Vo-m3O_2.js +0 -0
- /package/{lib → components}/ru-zyNDTB04.cjs +0 -0
- /package/{lib → components}/sv-1DPTltNQ.cjs +0 -0
- /package/{lib → components}/sv-CiozMaev.js +0 -0
- /package/{lib → components}/textobject.config-C8opcGG4.js +0 -0
- /package/{lib → components}/textobject.config-DbAajFz8.cjs +0 -0
- /package/{lib → components}/tr-BkmWvOG2.cjs +0 -0
- /package/{lib → components}/tr-D_D4i5iv.js +0 -0
- /package/{lib → components}/zh-CN-DTZ4OmdP.cjs +0 -0
- /package/{lib → components}/zh-CN-wsl7eFSd.js +0 -0
- /package/{lib → components}/zh-TW-DTZ4OmdP.cjs +0 -0
- /package/{lib → components}/zh-TW-wsl7eFSd.js +0 -0
@@ -17,102 +17,169 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
import {
|
21
|
-
import {
|
22
|
-
import {
|
23
|
-
import {
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
*
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
composed: !1
|
45
|
-
}), this.name = t, this.data = n, this.slotName = i === void 0 ? t : `${t}.${i}`;
|
46
|
-
}
|
47
|
-
}
|
48
|
-
const Nt = Symbol("remove-slottable-request");
|
20
|
+
import { c as De, I as ge, x as A, r as fe, H as x, E as ve, B as ye } from "./property-CD3dwBJC.js";
|
21
|
+
import { _ as _t, $ as Fe, s as Ne, n as mt } from "./directive-helpers-BLDZnGQv-oKMCBvb2.js";
|
22
|
+
import { m as $t, d as gt } from "./if-defined-CYpcjGCb-tXzyj9Dq.js";
|
23
|
+
import { o as qe } from "./base-D76d76ww-gf0ESLsU.js";
|
24
|
+
import { u as Nt, n as It, d as He, h as Be } from "./element-resolution-FCUT-wql--7ctE626.js";
|
25
|
+
import { t as ft } from "./index-DskAouD-.js";
|
26
|
+
import { a as _e, w as Ie, C as Me } from "./async-directive-FGzMycjH-Bgeca09f.js";
|
27
|
+
/*! * Lucero - The design system for Luzmo.
|
28
|
+
*
|
29
|
+
* Copyright © 2025 Luzmo
|
30
|
+
* All rights reserved.
|
31
|
+
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
32
|
+
* This license allows users with a current active Luzmo account to use Lucero.
|
33
|
+
* This license terminates automatically if a user no longer has an active Luzmo account.
|
34
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
35
|
+
*
|
36
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
37
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
38
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
39
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
40
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
41
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
42
|
+
* SOFTWARE.
|
43
|
+
* */
|
49
44
|
/**
|
50
45
|
* @license
|
51
46
|
* Copyright 2018 Google LLC
|
52
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
53
48
|
*/
|
54
|
-
const
|
49
|
+
const be = "important", We = " !" + be, re = _t(class extends Fe {
|
55
50
|
constructor(e) {
|
56
51
|
var t;
|
57
|
-
if (super(e), e.type !==
|
52
|
+
if (super(e), e.type !== Ne.ATTRIBUTE || e.name !== "style" || ((t = e.strings) == null ? void 0 : t.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
58
53
|
}
|
59
54
|
render(e) {
|
60
55
|
return Object.keys(e).reduce((t, n) => {
|
61
|
-
const
|
62
|
-
return
|
56
|
+
const o = e[n];
|
57
|
+
return o == null ? t : t + `${n = n.includes("-") ? n : n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${o};`;
|
63
58
|
}, "");
|
64
59
|
}
|
65
60
|
update(e, [t]) {
|
66
61
|
const { style: n } = e.element;
|
67
62
|
if (this.ft === void 0) return this.ft = new Set(Object.keys(t)), this.render(t);
|
68
|
-
for (const
|
69
|
-
for (const
|
70
|
-
const
|
71
|
-
if (
|
72
|
-
this.ft.add(
|
73
|
-
const s = typeof
|
74
|
-
|
63
|
+
for (const o of this.ft) t[o] == null && (this.ft.delete(o), o.includes("-") ? n.removeProperty(o) : n[o] = null);
|
64
|
+
for (const o in t) {
|
65
|
+
const i = t[o];
|
66
|
+
if (i != null) {
|
67
|
+
this.ft.add(o);
|
68
|
+
const s = typeof i == "string" && i.endsWith(We);
|
69
|
+
o.includes("-") || s ? n.setProperty(o, s ? i.slice(0, -11) : i, s ? be : "") : n[o] = i;
|
75
70
|
}
|
76
71
|
}
|
77
|
-
return
|
72
|
+
return De;
|
78
73
|
}
|
79
74
|
});
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
75
|
+
/*! * Lucero - The design system for Luzmo.
|
76
|
+
*
|
77
|
+
* Copyright © 2025 Luzmo
|
78
|
+
* All rights reserved.
|
79
|
+
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
80
|
+
* This license allows users with a current active Luzmo account to use Lucero.
|
81
|
+
* This license terminates automatically if a user no longer has an active Luzmo account.
|
82
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
83
|
+
*
|
84
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
85
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
86
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
87
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
88
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
89
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
90
|
+
* SOFTWARE.
|
91
|
+
* */
|
92
|
+
class we extends Event {
|
93
|
+
constructor(t, n, o) {
|
94
|
+
super("slottable-request", {
|
95
|
+
bubbles: !1,
|
96
|
+
cancelable: !0,
|
97
|
+
composed: !1
|
98
|
+
}), this.name = t, this.data = n, this.slotName = o === void 0 ? t : `${t}.${o}`;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
const St = Symbol("remove-slottable-request");
|
102
|
+
/*! * Lucero - The design system for Luzmo.
|
103
|
+
*
|
104
|
+
* Copyright © 2025 Luzmo
|
105
|
+
* All rights reserved.
|
106
|
+
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
107
|
+
* This license allows users with a current active Luzmo account to use Lucero.
|
108
|
+
* This license terminates automatically if a user no longer has an active Luzmo account.
|
109
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
110
|
+
*
|
111
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
112
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
113
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
114
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
115
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
116
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
117
|
+
* SOFTWARE.
|
118
|
+
* */
|
119
|
+
/**
|
120
|
+
* @license
|
121
|
+
* Copyright 2021 Google LLC
|
122
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
123
|
+
*/
|
124
|
+
function Ue(e) {
|
125
|
+
return (t, n) => {
|
126
|
+
const { slot: o, selector: i } = e ?? {}, s = "slot" + (o ? `[name=${o}]` : ":not([name])");
|
127
|
+
return qe(t, n, { get() {
|
128
|
+
var l;
|
129
|
+
const r = (l = this.renderRoot) == null ? void 0 : l.querySelector(s), a = (r == null ? void 0 : r.assignedElements(e)) ?? [];
|
130
|
+
return i === void 0 ? a : a.filter((c) => c.matches(i));
|
131
|
+
} });
|
132
|
+
};
|
133
|
+
}
|
134
|
+
/*! * Lucero - The design system for Luzmo.
|
135
|
+
*
|
136
|
+
* Copyright © 2025 Luzmo
|
137
|
+
* All rights reserved.
|
138
|
+
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
139
|
+
* This license allows users with a current active Luzmo account to use Lucero.
|
140
|
+
* This license terminates automatically if a user no longer has an active Luzmo account.
|
141
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
142
|
+
*
|
143
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
144
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
145
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
146
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
147
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
148
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
149
|
+
* SOFTWARE.
|
150
|
+
* */
|
151
|
+
function je(e, t, n = []) {
|
152
|
+
for (const [o, i] of t.entries()) {
|
153
|
+
const s = e[o], l = s.parentElement || s.getRootNode();
|
154
|
+
n[o] && n[o](i), l && l !== s && s.replaceWith(i), delete e[o];
|
84
155
|
}
|
85
156
|
return t;
|
86
157
|
}
|
87
|
-
const
|
158
|
+
const Ve = (e, t, {
|
88
159
|
position: n,
|
89
|
-
prepareCallback:
|
160
|
+
prepareCallback: o
|
90
161
|
} = { position: "beforeend" }) => {
|
91
|
-
let { length:
|
92
|
-
if (
|
162
|
+
let { length: i } = e;
|
163
|
+
if (i === 0)
|
93
164
|
return () => e;
|
94
|
-
let s = 1,
|
95
|
-
(n === "afterbegin" || n === "afterend") && (s = -1,
|
96
|
-
const
|
165
|
+
let s = 1, l = 0;
|
166
|
+
(n === "afterbegin" || n === "afterend") && (s = -1, l = i - 1);
|
167
|
+
const r = new Array(i), a = new Array(i), c = document.createComment(
|
97
168
|
"placeholder for reparented element"
|
98
169
|
);
|
99
170
|
do {
|
100
|
-
const h = e[
|
101
|
-
|
171
|
+
const h = e[l];
|
172
|
+
o && (a[l] = o(h)), r[l] = c.cloneNode();
|
102
173
|
const d = h.parentElement || h.getRootNode();
|
103
|
-
d && d !== h && d.replaceChild(l
|
104
|
-
} while (--
|
174
|
+
d && d !== h && d.replaceChild(r[l], h), t.insertAdjacentElement(n, h), l += s;
|
175
|
+
} while (--i > 0);
|
105
176
|
return function() {
|
106
|
-
return
|
107
|
-
l,
|
108
|
-
e,
|
109
|
-
a
|
110
|
-
);
|
177
|
+
return je(r, e, a);
|
111
178
|
};
|
112
|
-
},
|
113
|
-
class
|
179
|
+
}, Ke = 1e3, Xe = 1e3;
|
180
|
+
class Ye {
|
114
181
|
constructor(t = {}) {
|
115
|
-
this.warmUpDelay =
|
182
|
+
this.warmUpDelay = Ke, this.coolDownDelay = Xe, this.isWarm = !1, this.timeout = 0, Object.assign(this, t);
|
116
183
|
}
|
117
184
|
openTimer(t) {
|
118
185
|
if (this.cancelCooldownTimer(), !this.component || t !== this.component)
|
@@ -137,43 +204,43 @@ class qe {
|
|
137
204
|
this.cooldownTimeout && window.clearTimeout(this.cooldownTimeout), delete this.cooldownTimeout;
|
138
205
|
}
|
139
206
|
}
|
140
|
-
const
|
141
|
-
},
|
142
|
-
const
|
143
|
-
|
207
|
+
const lt = new Ye(), V = () => {
|
208
|
+
}, vt = (e, t, n) => {
|
209
|
+
const o = new AbortController(), i = /* @__PURE__ */ new Map(), s = () => {
|
210
|
+
o.abort(), n();
|
144
211
|
};
|
145
|
-
let
|
212
|
+
let l, r;
|
146
213
|
const a = requestAnimationFrame(() => {
|
147
|
-
|
148
|
-
|
214
|
+
l = requestAnimationFrame(() => {
|
215
|
+
r = requestAnimationFrame(() => {
|
149
216
|
s();
|
150
217
|
});
|
151
218
|
});
|
152
219
|
}), c = (d) => {
|
153
|
-
d.target === e && (
|
220
|
+
d.target === e && (i.set(
|
154
221
|
d.propertyName,
|
155
|
-
|
156
|
-
),
|
222
|
+
i.get(d.propertyName) - 1
|
223
|
+
), i.get(d.propertyName) || i.delete(d.propertyName), i.size === 0 && s());
|
157
224
|
}, h = (d) => {
|
158
|
-
d.target === e && (
|
225
|
+
d.target === e && (i.has(d.propertyName) || i.set(d.propertyName, 0), i.set(
|
159
226
|
d.propertyName,
|
160
|
-
|
161
|
-
), cancelAnimationFrame(a), cancelAnimationFrame(
|
227
|
+
i.get(d.propertyName) + 1
|
228
|
+
), cancelAnimationFrame(a), cancelAnimationFrame(l), cancelAnimationFrame(r));
|
162
229
|
};
|
163
230
|
e.addEventListener("transitionrun", h, {
|
164
|
-
signal:
|
231
|
+
signal: o.signal
|
165
232
|
}), e.addEventListener("transitionend", c, {
|
166
|
-
signal:
|
233
|
+
signal: o.signal
|
167
234
|
}), e.addEventListener("transitioncancel", c, {
|
168
|
-
signal:
|
235
|
+
signal: o.signal
|
169
236
|
}), t();
|
170
237
|
};
|
171
|
-
function
|
238
|
+
function T() {
|
172
239
|
return new Promise((e) => requestAnimationFrame(() => e()));
|
173
240
|
}
|
174
|
-
class
|
241
|
+
class J extends ge {
|
175
242
|
constructor() {
|
176
|
-
super(...arguments), this.dispose =
|
243
|
+
super(...arguments), this.dispose = V, this.offset = 0, this.willPreventClose = !1;
|
177
244
|
}
|
178
245
|
applyFocus(t, n) {
|
179
246
|
}
|
@@ -246,41 +313,41 @@ class rt extends le {
|
|
246
313
|
});
|
247
314
|
document.dispatchEvent(t);
|
248
315
|
}
|
249
|
-
static async open(t, n,
|
250
|
-
await Promise.resolve().then(() =>
|
251
|
-
const s = arguments.length === 2,
|
316
|
+
static async open(t, n, o, i) {
|
317
|
+
await Promise.resolve().then(() => kt);
|
318
|
+
const s = arguments.length === 2, l = o || t, r = new this();
|
252
319
|
let a = !1;
|
253
|
-
const c =
|
320
|
+
const c = Ve([l], r, {
|
254
321
|
position: "beforeend",
|
255
|
-
prepareCallback: (
|
256
|
-
const
|
257
|
-
return
|
258
|
-
|
322
|
+
prepareCallback: (d) => {
|
323
|
+
const p = d.slot;
|
324
|
+
return d.removeAttribute("slot"), () => {
|
325
|
+
d.slot = p;
|
259
326
|
};
|
260
327
|
}
|
261
328
|
});
|
262
|
-
if (
|
263
|
-
|
329
|
+
if (r.dispose = () => {
|
330
|
+
r.addEventListener("luzmo-closed", () => {
|
264
331
|
a || (c(), a = !0), requestAnimationFrame(() => {
|
265
|
-
|
332
|
+
r.remove();
|
266
333
|
});
|
267
|
-
}),
|
268
|
-
}, !s &&
|
269
|
-
const
|
270
|
-
return
|
271
|
-
...
|
272
|
-
delayed:
|
273
|
-
trigger:
|
274
|
-
type:
|
275
|
-
}),
|
334
|
+
}), r.open = !1, r.dispose = V;
|
335
|
+
}, !s && l && i) {
|
336
|
+
const d = t, p = n, u = i;
|
337
|
+
return J.applyOptions(r, {
|
338
|
+
...u,
|
339
|
+
delayed: u.delayed || l.hasAttribute("delayed"),
|
340
|
+
trigger: u.virtualTrigger || d,
|
341
|
+
type: p === "modal" ? "modal" : p === "hover" ? "hint" : "auto"
|
342
|
+
}), d.after(r), await r.updateComplete, r.open = !0, r.dispose;
|
276
343
|
}
|
277
|
-
const
|
278
|
-
return
|
279
|
-
...
|
280
|
-
delayed:
|
281
|
-
}),
|
282
|
-
|
283
|
-
}),
|
344
|
+
const h = n;
|
345
|
+
return r.append(l), J.applyOptions(r, {
|
346
|
+
...h,
|
347
|
+
delayed: h.delayed || l.hasAttribute("delayed")
|
348
|
+
}), r.updateComplete.then(() => {
|
349
|
+
r.open = !0;
|
350
|
+
}), r;
|
284
351
|
}
|
285
352
|
static applyOptions(t, n) {
|
286
353
|
t.delayed = !!n.delayed, t.receivesFocus = n.receivesFocus ?? "auto", t.triggerElement = n.trigger || null, t.type = n.type || "modal", t.offset = n.offset ?? 0, t.placement = n.placement, t.willPreventClose = !!n.notImmediatelyClosable;
|
@@ -288,10 +355,8 @@ class rt extends le {
|
|
288
355
|
}
|
289
356
|
const Mt = (e) => e.querySelector(
|
290
357
|
ft
|
291
|
-
),
|
292
|
-
|
293
|
-
);
|
294
|
-
class qt extends Event {
|
358
|
+
), Wt = (e) => e.assignedElements().find((t) => t.matches(ft));
|
359
|
+
class Ut extends Event {
|
295
360
|
constructor() {
|
296
361
|
super("beforetoggle", {
|
297
362
|
bubbles: !1,
|
@@ -299,7 +364,7 @@ class qt extends Event {
|
|
299
364
|
}), this.currentState = "open", this.newState = "closed";
|
300
365
|
}
|
301
366
|
}
|
302
|
-
class
|
367
|
+
class jt extends Event {
|
303
368
|
constructor() {
|
304
369
|
super("beforetoggle", {
|
305
370
|
bubbles: !1,
|
@@ -307,27 +372,27 @@ class It extends Event {
|
|
307
372
|
}), this.currentState = "closed", this.newState = "open";
|
308
373
|
}
|
309
374
|
}
|
310
|
-
class
|
375
|
+
class F extends Event {
|
311
376
|
constructor(t, n, {
|
312
|
-
publish:
|
313
|
-
interaction:
|
377
|
+
publish: o,
|
378
|
+
interaction: i,
|
314
379
|
reason: s
|
315
380
|
}) {
|
316
381
|
super(t, {
|
317
|
-
bubbles:
|
318
|
-
composed:
|
382
|
+
bubbles: o,
|
383
|
+
composed: o
|
319
384
|
}), this.overlay = n, this.detail = {
|
320
|
-
interaction:
|
385
|
+
interaction: i,
|
321
386
|
reason: s
|
322
387
|
};
|
323
388
|
}
|
324
389
|
}
|
325
|
-
class
|
390
|
+
class ct {
|
326
391
|
constructor(t, n) {
|
327
392
|
this.x = 0, this.y = 0, this.x = t, this.y = n;
|
328
393
|
}
|
329
394
|
updateBoundingClientRect(t, n) {
|
330
|
-
this.x = t, this.y = n,
|
395
|
+
this.x = t, this.y = n, J.update();
|
331
396
|
}
|
332
397
|
getBoundingClientRect() {
|
333
398
|
return {
|
@@ -345,65 +410,65 @@ class mt {
|
|
345
410
|
};
|
346
411
|
}
|
347
412
|
}
|
348
|
-
function
|
413
|
+
function Ge(e) {
|
349
414
|
class t extends e {
|
350
415
|
async manageDialogOpen() {
|
351
|
-
const
|
352
|
-
if (await
|
416
|
+
const o = this.open;
|
417
|
+
if (await T(), await this.managePosition(), this.open !== o)
|
353
418
|
return;
|
354
|
-
const
|
355
|
-
this.open ===
|
419
|
+
const i = await this.dialogMakeTransition(o);
|
420
|
+
this.open === o && await this.dialogApplyFocus(o, i);
|
356
421
|
}
|
357
|
-
dialogMakeTransition(
|
358
|
-
let
|
359
|
-
const s = (
|
360
|
-
if (
|
422
|
+
dialogMakeTransition(o) {
|
423
|
+
let i = null;
|
424
|
+
const s = (r, a) => () => {
|
425
|
+
if (r.open = o, !o) {
|
361
426
|
const h = () => {
|
362
|
-
|
427
|
+
r.removeEventListener("close", h);
|
363
428
|
};
|
364
|
-
|
429
|
+
r.addEventListener("close", h);
|
365
430
|
}
|
366
431
|
if (a > 0)
|
367
432
|
return;
|
368
|
-
const c =
|
369
|
-
this.dispatchEvent(new c()),
|
370
|
-
|
433
|
+
const c = o ? jt : Ut;
|
434
|
+
this.dispatchEvent(new c()), o && (r.matches(ft) && (i = r), i = i || Mt(r), i || r.querySelectorAll("slot").forEach((h) => {
|
435
|
+
i || (i = Wt(h));
|
371
436
|
}), !(!this.isConnected || this.dialogEl.open) && this.dialogEl.showModal());
|
372
|
-
},
|
373
|
-
if (this.open !==
|
437
|
+
}, l = (r, a) => () => {
|
438
|
+
if (this.open !== o)
|
374
439
|
return;
|
375
|
-
const c =
|
440
|
+
const c = o ? "luzmo-opened" : "luzmo-closed";
|
376
441
|
if (a > 0) {
|
377
|
-
|
378
|
-
new
|
442
|
+
r.dispatchEvent(
|
443
|
+
new F(c, this, {
|
379
444
|
interaction: this.type,
|
380
445
|
publish: !1
|
381
446
|
})
|
382
447
|
);
|
383
448
|
return;
|
384
449
|
}
|
385
|
-
if (!this.isConnected ||
|
450
|
+
if (!this.isConnected || o !== this.open)
|
386
451
|
return;
|
387
452
|
const h = async () => {
|
388
|
-
const d = this.triggerElement instanceof
|
453
|
+
const d = this.triggerElement instanceof ct;
|
389
454
|
this.dispatchEvent(
|
390
|
-
new
|
455
|
+
new F(c, this, {
|
391
456
|
interaction: this.type,
|
392
457
|
publish: d
|
393
458
|
})
|
394
|
-
),
|
395
|
-
new
|
459
|
+
), r.dispatchEvent(
|
460
|
+
new F(c, this, {
|
396
461
|
interaction: this.type,
|
397
462
|
publish: !1
|
398
463
|
})
|
399
464
|
), this.triggerElement && !d && this.triggerElement.dispatchEvent(
|
400
|
-
new
|
465
|
+
new F(c, this, {
|
401
466
|
interaction: this.type,
|
402
467
|
publish: !0
|
403
468
|
})
|
404
|
-
), this.state =
|
469
|
+
), this.state = o ? "opened" : "closed", this.returnFocus(), await T(), await T(), o === this.open && o === !1 && this.requestSlottable();
|
405
470
|
};
|
406
|
-
!
|
471
|
+
!o && this.dialogEl.open ? (this.dialogEl.addEventListener(
|
407
472
|
"close",
|
408
473
|
() => {
|
409
474
|
h();
|
@@ -411,79 +476,77 @@ function Ie(e) {
|
|
411
476
|
{ once: !0 }
|
412
477
|
), this.dialogEl.close()) : h();
|
413
478
|
};
|
414
|
-
return this.elements.forEach((
|
415
|
-
|
416
|
-
}),
|
479
|
+
return this.elements.forEach((r, a) => {
|
480
|
+
vt(r, s(r, a), l(r, a));
|
481
|
+
}), i;
|
417
482
|
}
|
418
|
-
dialogApplyFocus(
|
419
|
-
this.applyFocus(
|
483
|
+
dialogApplyFocus(o, i) {
|
484
|
+
this.applyFocus(o, i);
|
420
485
|
}
|
421
486
|
}
|
422
487
|
return t;
|
423
488
|
}
|
424
|
-
function
|
489
|
+
function Je(e) {
|
425
490
|
class t extends e {
|
426
491
|
async managePopoverOpen() {
|
427
492
|
await this.managePosition();
|
428
493
|
}
|
429
|
-
async manageDelay(
|
430
|
-
if (
|
431
|
-
|
494
|
+
async manageDelay(o) {
|
495
|
+
if (o === !1 || o !== this.open) {
|
496
|
+
lt.close(this);
|
432
497
|
return;
|
433
498
|
}
|
434
|
-
this.delayed && await
|
499
|
+
this.delayed && await lt.openTimer(this) && (this.open = !o);
|
435
500
|
}
|
436
|
-
ensureOnDOM(
|
501
|
+
ensureOnDOM(o) {
|
437
502
|
document.body.offsetHeight;
|
438
503
|
}
|
439
|
-
makeTransition(
|
440
|
-
if (this.open !==
|
504
|
+
makeTransition(o) {
|
505
|
+
if (this.open !== o)
|
441
506
|
return null;
|
442
|
-
let
|
443
|
-
const s = (
|
444
|
-
if (
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
507
|
+
let i = null;
|
508
|
+
const s = (r, a) => () => {
|
509
|
+
if (o === this.open) {
|
510
|
+
if (r.open = o, a === 0) {
|
511
|
+
const c = o ? jt : Ut;
|
512
|
+
this.dispatchEvent(new c());
|
513
|
+
}
|
514
|
+
o !== !0 || (r.matches(ft) && (i = r), i = i || Mt(r), i) || r.querySelectorAll("slot").forEach((c) => {
|
515
|
+
i || (i = Wt(c));
|
516
|
+
});
|
449
517
|
}
|
450
|
-
|
518
|
+
}, l = (r, a) => async () => {
|
519
|
+
if (this.open !== o)
|
451
520
|
return;
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
}, r = (l, a) => async () => {
|
456
|
-
if (this.open !== i)
|
457
|
-
return;
|
458
|
-
const c = i ? "luzmo-opened" : "luzmo-closed";
|
459
|
-
if (l.dispatchEvent(
|
460
|
-
new z(c, this, {
|
521
|
+
const c = o ? "luzmo-opened" : "luzmo-closed";
|
522
|
+
if (r.dispatchEvent(
|
523
|
+
new F(c, this, {
|
461
524
|
interaction: this.type
|
462
525
|
})
|
463
526
|
), a > 0)
|
464
527
|
return;
|
465
|
-
const h = this.triggerElement instanceof
|
528
|
+
const h = this.triggerElement instanceof ct;
|
466
529
|
this.dispatchEvent(
|
467
|
-
new
|
530
|
+
new F(c, this, {
|
468
531
|
interaction: this.type,
|
469
532
|
publish: h
|
470
533
|
})
|
471
534
|
), this.triggerElement && !h && this.triggerElement.dispatchEvent(
|
472
|
-
new
|
535
|
+
new F(c, this, {
|
473
536
|
interaction: this.type,
|
474
537
|
publish: !0
|
475
538
|
})
|
476
|
-
), this.state =
|
539
|
+
), this.state = o ? "opened" : "closed", this.returnFocus(), await T(), await T(), o === this.open && o === !1 && this.requestSlottable();
|
477
540
|
};
|
478
|
-
return this.elements.forEach((
|
479
|
-
|
480
|
-
}),
|
541
|
+
return this.elements.forEach((r, a) => {
|
542
|
+
vt(r, s(r, a), l(r, a));
|
543
|
+
}), i;
|
481
544
|
}
|
482
545
|
}
|
483
546
|
return t;
|
484
547
|
}
|
485
|
-
const
|
486
|
-
function
|
548
|
+
const Ze = CSS.supports("(overlay: auto)");
|
549
|
+
function le(e) {
|
487
550
|
let t = !1;
|
488
551
|
try {
|
489
552
|
t = e.matches(":popover-open");
|
@@ -496,39 +559,39 @@ function Qt(e) {
|
|
496
559
|
}
|
497
560
|
return t || n;
|
498
561
|
}
|
499
|
-
function
|
562
|
+
function Qe(e) {
|
500
563
|
class t extends e {
|
501
|
-
async manageDelay(
|
502
|
-
if (
|
503
|
-
|
564
|
+
async manageDelay(o) {
|
565
|
+
if (o === !1 || o !== this.open) {
|
566
|
+
lt.close(this);
|
504
567
|
return;
|
505
568
|
}
|
506
|
-
this.delayed && await
|
569
|
+
this.delayed && await lt.openTimer(this) && (this.open = !o);
|
507
570
|
}
|
508
571
|
/**
|
509
572
|
* A popover should be hidden _after_ it is no longer on top-layer because
|
510
573
|
* the position metrics will have changed from when it was originally positioned.
|
511
574
|
*/
|
512
|
-
shouldHidePopover(
|
513
|
-
if (
|
575
|
+
shouldHidePopover(o) {
|
576
|
+
if (o && this.open !== o)
|
514
577
|
return;
|
515
|
-
const
|
578
|
+
const i = async ({
|
516
579
|
newState: s
|
517
580
|
} = {}) => {
|
518
581
|
s !== "open" && await this.placementController.resetOverlayPosition();
|
519
582
|
};
|
520
|
-
if (!
|
521
|
-
|
583
|
+
if (!le(this.dialogEl)) {
|
584
|
+
i();
|
522
585
|
return;
|
523
586
|
}
|
524
|
-
this.dialogEl.addEventListener("toggle",
|
587
|
+
this.dialogEl.addEventListener("toggle", i, {
|
525
588
|
once: !0
|
526
589
|
});
|
527
590
|
}
|
528
|
-
shouldShowPopover(
|
529
|
-
let
|
591
|
+
shouldShowPopover(o) {
|
592
|
+
let i = !1;
|
530
593
|
try {
|
531
|
-
|
594
|
+
i = this.dialogEl.matches(":popover-open");
|
532
595
|
} catch {
|
533
596
|
}
|
534
597
|
let s = !1;
|
@@ -536,32 +599,30 @@ function Ue(e) {
|
|
536
599
|
s = this.dialogEl.matches(":open");
|
537
600
|
} catch {
|
538
601
|
}
|
539
|
-
|
602
|
+
o && this.open === o && !i && !s && this.isConnected && (this.dialogEl.showPopover(), this.managePosition());
|
540
603
|
}
|
541
|
-
async ensureOnDOM(
|
542
|
-
await
|
604
|
+
async ensureOnDOM(o) {
|
605
|
+
await T(), Ze || await this.shouldHidePopover(o), this.shouldShowPopover(o), await T();
|
543
606
|
}
|
544
|
-
makeTransition(
|
545
|
-
if (this.open !==
|
607
|
+
makeTransition(o) {
|
608
|
+
if (this.open !== o)
|
546
609
|
return null;
|
547
|
-
let
|
548
|
-
const s = (
|
549
|
-
if (
|
550
|
-
const
|
551
|
-
this.dispatchEvent(new
|
610
|
+
let i = null;
|
611
|
+
const s = (r, a) => () => {
|
612
|
+
if (r.open = o, a === 0) {
|
613
|
+
const c = o ? jt : Ut;
|
614
|
+
this.dispatchEvent(new c());
|
552
615
|
}
|
553
|
-
|
554
|
-
|
555
|
-
l.querySelectorAll("slot").forEach((h) => {
|
556
|
-
o || (o = Ht(h));
|
616
|
+
!o || (r.matches(ft) && (i = r), i = i || Mt(r), i) || r.querySelectorAll("slot").forEach((c) => {
|
617
|
+
i || (i = Wt(c));
|
557
618
|
});
|
558
|
-
},
|
559
|
-
if (this.open !==
|
619
|
+
}, l = (r, a) => () => {
|
620
|
+
if (this.open !== o)
|
560
621
|
return;
|
561
|
-
const c =
|
622
|
+
const c = o ? "luzmo-opened" : "luzmo-closed";
|
562
623
|
if (a > 0) {
|
563
|
-
|
564
|
-
new
|
624
|
+
r.dispatchEvent(
|
625
|
+
new F(c, this, {
|
565
626
|
interaction: this.type,
|
566
627
|
publish: !1
|
567
628
|
})
|
@@ -569,31 +630,31 @@ function Ue(e) {
|
|
569
630
|
return;
|
570
631
|
}
|
571
632
|
const h = async () => {
|
572
|
-
if (this.open !==
|
633
|
+
if (this.open !== o)
|
573
634
|
return;
|
574
|
-
await
|
575
|
-
const
|
635
|
+
await T();
|
636
|
+
const p = this.triggerElement instanceof ct;
|
576
637
|
this.dispatchEvent(
|
577
|
-
new
|
638
|
+
new F(c, this, {
|
578
639
|
interaction: this.type,
|
579
|
-
publish:
|
640
|
+
publish: p
|
580
641
|
})
|
581
|
-
),
|
582
|
-
new
|
642
|
+
), r.dispatchEvent(
|
643
|
+
new F(c, this, {
|
583
644
|
interaction: this.type,
|
584
645
|
publish: !1
|
585
646
|
})
|
586
|
-
), this.triggerElement && !
|
587
|
-
new
|
647
|
+
), this.triggerElement && !p && this.triggerElement.dispatchEvent(
|
648
|
+
new F(c, this, {
|
588
649
|
interaction: this.type,
|
589
650
|
publish: !0
|
590
651
|
})
|
591
|
-
), this.state =
|
652
|
+
), this.state = o ? "opened" : "closed", this.returnFocus(), await T(), await T(), o === this.open && o === !1 && this.requestSlottable();
|
592
653
|
};
|
593
|
-
if (this.open !==
|
654
|
+
if (this.open !== o)
|
594
655
|
return;
|
595
|
-
const d =
|
596
|
-
|
656
|
+
const d = le(this.dialogEl);
|
657
|
+
o !== !0 && d && this.isConnected ? (this.dialogEl.addEventListener(
|
597
658
|
"beforetoggle",
|
598
659
|
() => {
|
599
660
|
h();
|
@@ -601,15 +662,15 @@ function Ue(e) {
|
|
601
662
|
{ once: !0 }
|
602
663
|
), this.dialogEl.hidePopover()) : h();
|
603
664
|
};
|
604
|
-
return this.elements.forEach((
|
605
|
-
|
606
|
-
}),
|
665
|
+
return this.elements.forEach((r, a) => {
|
666
|
+
vt(r, s(r, a), l(r, a));
|
667
|
+
}), i;
|
607
668
|
}
|
608
669
|
}
|
609
670
|
return t;
|
610
671
|
}
|
611
|
-
const
|
612
|
-
class
|
672
|
+
const to = "showPopover" in document.createElement("div");
|
673
|
+
class eo {
|
613
674
|
constructor() {
|
614
675
|
this.root = document.body, this.stack = [], this.handlePointerdown = (t) => {
|
615
676
|
this.pointerdownPath = t.composedPath(), this.lastOverlay = this.stack.at(-1);
|
@@ -619,21 +680,25 @@ class Ke {
|
|
619
680
|
return;
|
620
681
|
const n = this.lastOverlay;
|
621
682
|
this.lastOverlay = void 0;
|
622
|
-
const
|
623
|
-
(
|
683
|
+
const o = this.stack.length - 1, i = this.stack.filter((s, l) => !t.find(
|
684
|
+
(r) => (
|
624
685
|
// The Overlay is in the stack
|
625
|
-
|
686
|
+
r === s || // The Overlay trigger is in the stack and the Overlay is a "hint"
|
687
|
+
r === (s == null ? void 0 : s.triggerElement) && (s == null ? void 0 : s.type) === "hint" || // The last Overlay in the stack is not the last Overlay at `pointerdown` time and has a
|
688
|
+
// `triggerInteraction` of "longpress", meaning it was opened by this poitner interaction
|
689
|
+
l === o && s !== n && s.triggerInteraction === "longpress"
|
626
690
|
)
|
627
|
-
) && !s.shouldPreventClose() && s.type !== "manual" &&
|
628
|
-
|
691
|
+
) && !s.shouldPreventClose() && s.type !== "manual" && // Don't close if this overlay is modal and not on top of the overlay stack.
|
692
|
+
!(s.type === "modal" && n !== s));
|
693
|
+
i.reverse(), i.forEach((s) => {
|
629
694
|
this.closeOverlay(s);
|
630
|
-
let
|
631
|
-
for (;
|
632
|
-
this.closeOverlay(
|
695
|
+
let l = s.parentOverlayToForceClose;
|
696
|
+
for (; l; )
|
697
|
+
this.closeOverlay(l), l = l.parentOverlayToForceClose;
|
633
698
|
});
|
634
699
|
}, this.handleBeforetoggle = (t) => {
|
635
|
-
const { target: n, newState:
|
636
|
-
|
700
|
+
const { target: n, newState: o } = t;
|
701
|
+
o !== "open" && this.closeOverlay(n);
|
637
702
|
}, this.handleKeydown = (t) => {
|
638
703
|
if (t.code !== "Escape" || this.stack.length === 0)
|
639
704
|
return;
|
@@ -642,7 +707,7 @@ class Ke {
|
|
642
707
|
t.preventDefault();
|
643
708
|
return;
|
644
709
|
}
|
645
|
-
|
710
|
+
to || (n == null ? void 0 : n.type) !== "manual" && n && this.closeOverlay(n);
|
646
711
|
}, this.bindEvents();
|
647
712
|
}
|
648
713
|
get document() {
|
@@ -681,27 +746,29 @@ class Ke {
|
|
681
746
|
return;
|
682
747
|
}
|
683
748
|
if (t.type === "auto" || t.type === "modal" || t.type === "page") {
|
684
|
-
const n = "luzmo-overlay-query-path",
|
749
|
+
const n = "luzmo-overlay-query-path", o = new Event(n, {
|
685
750
|
composed: !0,
|
686
751
|
bubbles: !0
|
687
752
|
});
|
688
753
|
t.addEventListener(
|
689
754
|
n,
|
690
|
-
(
|
691
|
-
const s =
|
692
|
-
this.stack.forEach((
|
693
|
-
!s.find((
|
755
|
+
(i) => {
|
756
|
+
const s = i.composedPath();
|
757
|
+
this.stack.forEach((l) => {
|
758
|
+
!s.find((r) => r === l) && l.type !== "manual" && l.type !== "modal" && this.closeOverlay(l);
|
694
759
|
});
|
695
760
|
},
|
696
761
|
{ once: !0 }
|
697
|
-
), t.dispatchEvent(
|
762
|
+
), t.dispatchEvent(o);
|
698
763
|
} else if (t.type === "hint") {
|
699
|
-
if (this.stack.some(
|
764
|
+
if (this.stack.some(
|
765
|
+
(n) => n.type !== "manual" && n.triggerElement && n.triggerElement === t.triggerElement
|
766
|
+
)) {
|
700
767
|
t.open = !1;
|
701
768
|
return;
|
702
769
|
}
|
703
|
-
this.stack.forEach((
|
704
|
-
|
770
|
+
this.stack.forEach((n) => {
|
771
|
+
n.type === "hint" && this.closeOverlay(n);
|
705
772
|
});
|
706
773
|
}
|
707
774
|
requestAnimationFrame(() => {
|
@@ -714,77 +781,77 @@ class Ke {
|
|
714
781
|
this.closeOverlay(t);
|
715
782
|
}
|
716
783
|
}
|
717
|
-
const
|
784
|
+
const ae = new eo(), oo = ':host{display:contents;pointer-events:none;--luzmo-overlay-animation-distance: .5rem}:host(:has(> luzmo-tooltip)){--luzmo-overlay-animation-distance: var( --luzmo-tooltip-animation-distance, 4px )}.dialog{margin:0;border:0;background:none;padding:0;position:fixed;overflow:visible;opacity:1!important;box-sizing:border-box;max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);max-width:calc(100vw - 16px);height:auto;inset:auto;top:0;left:0;display:flex;--luzmo-overlay-open: true}.dialog:not([is-visible]){display:none}.dialog:focus{outline:none}dialog:modal{--luzmo-popover-filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, .15))}:host(:not([open])) .dialog{--luzmo-overlay-open: false}.dialog::backdrop{display:none}.dialog:before{position:absolute;top:-999em;right:-999em;bottom:-999em;left:-999em;content:"";pointer-events:auto!important}.dialog:not(.not-immediately-closable):before{display:none}.dialog>div{width:100%}::slotted(*){pointer-events:auto;visibility:visible!important}::slotted(luzmo-popover){position:static}.dialog:not([actual-placement])[placement*=top]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:var(--luzmo-overlay-animation-distance)}.dialog:not([actual-placement])[placement*=right]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog:not([actual-placement])[placement*=bottom]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog:not([actual-placement])[placement*=left]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:var(--luzmo-overlay-animation-distance)}.dialog[actual-placement*=top]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:var(--luzmo-overlay-animation-distance)}.dialog[actual-placement*=right]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog[actual-placement*=bottom]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog[actual-placement*=left]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:var(--luzmo-overlay-animation-distance)}slot[name=longpress-describedby-descriptor]{display:none}@supports selector(:open){.dialog{opacity:0}.dialog:open{opacity:1;--luzmo-popover-filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, .15))}}@supports selector(:popover-open){.dialog{opacity:0}.dialog:popover-open{opacity:1;--luzmo-popover-filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, .15))}}@supports (overlay: auto){.dialog{display:none;transition:all var(--luzmo-overlay-animation-duration, .13s),translate 0s,display var(--luzmo-overlay-animation-duration, .13s);transition-behavior:allow-discrete}.dialog:popover-open,.dialog:modal{display:flex}}@supports (not selector(:open)) and (not selector(:popover-open)){:host:not([open]) .dialog{pointer-events:none}.dialog[actual-placement]{z-index:calc(var(--luzmo-overlay-z-index-base, 1000) + var(--luzmo-overlay-open-count))}}', Z = Math.min, L = Math.max, Ot = Math.round, xt = Math.floor, I = (e) => ({
|
718
785
|
x: e,
|
719
786
|
y: e
|
720
|
-
}),
|
787
|
+
}), no = {
|
721
788
|
left: "right",
|
722
789
|
right: "left",
|
723
790
|
bottom: "top",
|
724
791
|
top: "bottom"
|
725
|
-
},
|
792
|
+
}, io = {
|
726
793
|
start: "end",
|
727
794
|
end: "start"
|
728
795
|
};
|
729
|
-
function
|
730
|
-
return
|
796
|
+
function qt(e, t, n) {
|
797
|
+
return L(e, Z(t, n));
|
731
798
|
}
|
732
|
-
function
|
799
|
+
function ht(e, t) {
|
733
800
|
return typeof e == "function" ? e(t) : e;
|
734
801
|
}
|
735
802
|
function Q(e) {
|
736
803
|
return e.split("-")[0];
|
737
804
|
}
|
738
|
-
function
|
805
|
+
function dt(e) {
|
739
806
|
return e.split("-")[1];
|
740
807
|
}
|
741
|
-
function
|
808
|
+
function xe(e) {
|
742
809
|
return e === "x" ? "y" : "x";
|
743
810
|
}
|
744
|
-
function
|
811
|
+
function Vt(e) {
|
745
812
|
return e === "y" ? "height" : "width";
|
746
813
|
}
|
747
814
|
function et(e) {
|
748
815
|
return ["top", "bottom"].includes(Q(e)) ? "y" : "x";
|
749
816
|
}
|
750
|
-
function
|
751
|
-
return
|
817
|
+
function Kt(e) {
|
818
|
+
return xe(et(e));
|
752
819
|
}
|
753
|
-
function
|
820
|
+
function so(e, t, n) {
|
754
821
|
n === void 0 && (n = !1);
|
755
|
-
const
|
756
|
-
let
|
757
|
-
return t.reference[s] > t.floating[s] && (
|
822
|
+
const o = dt(e), i = Kt(e), s = Vt(i);
|
823
|
+
let l = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
824
|
+
return t.reference[s] > t.floating[s] && (l = Pt(l)), [l, Pt(l)];
|
758
825
|
}
|
759
|
-
function
|
826
|
+
function ro(e) {
|
760
827
|
const t = Pt(e);
|
761
|
-
return [
|
828
|
+
return [Ht(e), t, Ht(t)];
|
762
829
|
}
|
763
|
-
function
|
764
|
-
return e.replace(/start|end/g, (t) =>
|
830
|
+
function Ht(e) {
|
831
|
+
return e.replace(/start|end/g, (t) => io[t]);
|
765
832
|
}
|
766
|
-
function
|
767
|
-
const
|
833
|
+
function lo(e, t, n) {
|
834
|
+
const o = ["left", "right"], i = ["right", "left"], s = ["top", "bottom"], l = ["bottom", "top"];
|
768
835
|
switch (e) {
|
769
836
|
case "top":
|
770
837
|
case "bottom":
|
771
|
-
return n ? t ?
|
838
|
+
return n ? t ? i : o : t ? o : i;
|
772
839
|
case "left":
|
773
840
|
case "right":
|
774
|
-
return t ? s :
|
841
|
+
return t ? s : l;
|
775
842
|
default:
|
776
843
|
return [];
|
777
844
|
}
|
778
845
|
}
|
779
|
-
function
|
780
|
-
const
|
781
|
-
let s =
|
782
|
-
return
|
846
|
+
function ao(e, t, n, o) {
|
847
|
+
const i = dt(e);
|
848
|
+
let s = lo(Q(e), n === "start", o);
|
849
|
+
return i && (s = s.map((l) => l + "-" + i), t && (s = s.concat(s.map(Ht)))), s;
|
783
850
|
}
|
784
851
|
function Pt(e) {
|
785
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
852
|
+
return e.replace(/left|right|bottom|top/g, (t) => no[t]);
|
786
853
|
}
|
787
|
-
function
|
854
|
+
function co(e) {
|
788
855
|
return {
|
789
856
|
top: 0,
|
790
857
|
right: 0,
|
@@ -793,113 +860,113 @@ function en(e) {
|
|
793
860
|
...e
|
794
861
|
};
|
795
862
|
}
|
796
|
-
function
|
797
|
-
return typeof e != "number" ?
|
863
|
+
function Ee(e) {
|
864
|
+
return typeof e != "number" ? co(e) : {
|
798
865
|
top: e,
|
799
866
|
right: e,
|
800
867
|
bottom: e,
|
801
868
|
left: e
|
802
869
|
};
|
803
870
|
}
|
804
|
-
function
|
871
|
+
function Tt(e) {
|
805
872
|
const {
|
806
873
|
x: t,
|
807
874
|
y: n,
|
808
|
-
width:
|
809
|
-
height:
|
875
|
+
width: o,
|
876
|
+
height: i
|
810
877
|
} = e;
|
811
878
|
return {
|
812
|
-
width:
|
813
|
-
height:
|
879
|
+
width: o,
|
880
|
+
height: i,
|
814
881
|
top: n,
|
815
882
|
left: t,
|
816
|
-
right: t +
|
817
|
-
bottom: n +
|
883
|
+
right: t + o,
|
884
|
+
bottom: n + i,
|
818
885
|
x: t,
|
819
886
|
y: n
|
820
887
|
};
|
821
888
|
}
|
822
|
-
function
|
889
|
+
function ce(e, t, n) {
|
823
890
|
let {
|
824
|
-
reference:
|
825
|
-
floating:
|
891
|
+
reference: o,
|
892
|
+
floating: i
|
826
893
|
} = e;
|
827
|
-
const s = et(t),
|
894
|
+
const s = et(t), l = Kt(t), r = Vt(l), a = Q(t), c = s === "y", h = o.x + o.width / 2 - i.width / 2, d = o.y + o.height / 2 - i.height / 2, p = o[r] / 2 - i[r] / 2;
|
828
895
|
let u;
|
829
896
|
switch (a) {
|
830
897
|
case "top":
|
831
898
|
u = {
|
832
899
|
x: h,
|
833
|
-
y:
|
900
|
+
y: o.y - i.height
|
834
901
|
};
|
835
902
|
break;
|
836
903
|
case "bottom":
|
837
904
|
u = {
|
838
905
|
x: h,
|
839
|
-
y:
|
906
|
+
y: o.y + o.height
|
840
907
|
};
|
841
908
|
break;
|
842
909
|
case "right":
|
843
910
|
u = {
|
844
|
-
x:
|
911
|
+
x: o.x + o.width,
|
845
912
|
y: d
|
846
913
|
};
|
847
914
|
break;
|
848
915
|
case "left":
|
849
916
|
u = {
|
850
|
-
x:
|
917
|
+
x: o.x - i.width,
|
851
918
|
y: d
|
852
919
|
};
|
853
920
|
break;
|
854
921
|
default:
|
855
922
|
u = {
|
856
|
-
x:
|
857
|
-
y:
|
923
|
+
x: o.x,
|
924
|
+
y: o.y
|
858
925
|
};
|
859
926
|
}
|
860
|
-
switch (
|
927
|
+
switch (dt(t)) {
|
861
928
|
case "start":
|
862
|
-
u[
|
929
|
+
u[l] -= p * (n && c ? -1 : 1);
|
863
930
|
break;
|
864
931
|
case "end":
|
865
|
-
u[
|
932
|
+
u[l] += p * (n && c ? -1 : 1);
|
866
933
|
break;
|
867
934
|
}
|
868
935
|
return u;
|
869
936
|
}
|
870
|
-
const
|
937
|
+
const ho = async (e, t, n) => {
|
871
938
|
const {
|
872
|
-
placement:
|
873
|
-
strategy:
|
939
|
+
placement: o = "bottom",
|
940
|
+
strategy: i = "absolute",
|
874
941
|
middleware: s = [],
|
875
|
-
platform:
|
876
|
-
} = n,
|
877
|
-
let c = await
|
942
|
+
platform: l
|
943
|
+
} = n, r = s.filter(Boolean), a = await (l.isRTL == null ? void 0 : l.isRTL(t));
|
944
|
+
let c = await l.getElementRects({
|
878
945
|
reference: e,
|
879
946
|
floating: t,
|
880
|
-
strategy:
|
947
|
+
strategy: i
|
881
948
|
}), {
|
882
949
|
x: h,
|
883
950
|
y: d
|
884
|
-
} =
|
885
|
-
for (let
|
951
|
+
} = ce(c, o, a), p = o, u = {}, m = 0;
|
952
|
+
for (let g = 0; g < r.length; g++) {
|
886
953
|
const {
|
887
|
-
name:
|
888
|
-
fn:
|
889
|
-
} =
|
954
|
+
name: f,
|
955
|
+
fn: v
|
956
|
+
} = r[g], {
|
890
957
|
x: y,
|
891
958
|
y: b,
|
892
|
-
data:
|
893
|
-
reset:
|
894
|
-
} = await
|
959
|
+
data: w,
|
960
|
+
reset: E
|
961
|
+
} = await v({
|
895
962
|
x: h,
|
896
963
|
y: d,
|
897
|
-
initialPlacement:
|
898
|
-
placement:
|
899
|
-
strategy:
|
964
|
+
initialPlacement: o,
|
965
|
+
placement: p,
|
966
|
+
strategy: i,
|
900
967
|
middlewareData: u,
|
901
968
|
rects: c,
|
902
|
-
platform:
|
969
|
+
platform: l,
|
903
970
|
elements: {
|
904
971
|
reference: e,
|
905
972
|
floating: t
|
@@ -907,182 +974,182 @@ const nn = async (e, t, n) => {
|
|
907
974
|
});
|
908
975
|
h = y ?? h, d = b ?? d, u = {
|
909
976
|
...u,
|
910
|
-
[
|
911
|
-
...u[
|
912
|
-
...
|
977
|
+
[f]: {
|
978
|
+
...u[f],
|
979
|
+
...w
|
913
980
|
}
|
914
|
-
},
|
981
|
+
}, E && m <= 50 && (m++, typeof E == "object" && (E.placement && (p = E.placement), E.rects && (c = E.rects === !0 ? await l.getElementRects({
|
915
982
|
reference: e,
|
916
983
|
floating: t,
|
917
|
-
strategy:
|
918
|
-
}) :
|
984
|
+
strategy: i
|
985
|
+
}) : E.rects), {
|
919
986
|
x: h,
|
920
987
|
y: d
|
921
|
-
} =
|
988
|
+
} = ce(c, p, a)), g = -1);
|
922
989
|
}
|
923
990
|
return {
|
924
991
|
x: h,
|
925
992
|
y: d,
|
926
|
-
placement:
|
927
|
-
strategy:
|
993
|
+
placement: p,
|
994
|
+
strategy: i,
|
928
995
|
middlewareData: u
|
929
996
|
};
|
930
997
|
};
|
931
|
-
async function
|
998
|
+
async function Xt(e, t) {
|
932
999
|
var n;
|
933
1000
|
t === void 0 && (t = {});
|
934
1001
|
const {
|
935
|
-
x:
|
936
|
-
y:
|
1002
|
+
x: o,
|
1003
|
+
y: i,
|
937
1004
|
platform: s,
|
938
|
-
rects:
|
939
|
-
elements:
|
1005
|
+
rects: l,
|
1006
|
+
elements: r,
|
940
1007
|
strategy: a
|
941
1008
|
} = e, {
|
942
1009
|
boundary: c = "clippingAncestors",
|
943
1010
|
rootBoundary: h = "viewport",
|
944
1011
|
elementContext: d = "floating",
|
945
|
-
altBoundary:
|
1012
|
+
altBoundary: p = !1,
|
946
1013
|
padding: u = 0
|
947
|
-
} =
|
948
|
-
element: (n = await (s.isElement == null ? void 0 : s.isElement(
|
1014
|
+
} = ht(t, e), m = Ee(u), g = r[p ? d === "floating" ? "reference" : "floating" : d], f = Tt(await s.getClippingRect({
|
1015
|
+
element: (n = await (s.isElement == null ? void 0 : s.isElement(g))) == null || n ? g : g.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(r.floating)),
|
949
1016
|
boundary: c,
|
950
1017
|
rootBoundary: h,
|
951
1018
|
strategy: a
|
952
|
-
})),
|
953
|
-
x:
|
954
|
-
y:
|
955
|
-
width:
|
956
|
-
height:
|
957
|
-
} :
|
1019
|
+
})), v = d === "floating" ? {
|
1020
|
+
x: o,
|
1021
|
+
y: i,
|
1022
|
+
width: l.floating.width,
|
1023
|
+
height: l.floating.height
|
1024
|
+
} : l.reference, y = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(r.floating)), b = await (s.isElement == null ? void 0 : s.isElement(y)) ? await (s.getScale == null ? void 0 : s.getScale(y)) || {
|
958
1025
|
x: 1,
|
959
1026
|
y: 1
|
960
1027
|
} : {
|
961
1028
|
x: 1,
|
962
1029
|
y: 1
|
963
|
-
}, w =
|
964
|
-
elements:
|
965
|
-
rect:
|
966
|
-
offsetParent:
|
1030
|
+
}, w = Tt(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
1031
|
+
elements: r,
|
1032
|
+
rect: v,
|
1033
|
+
offsetParent: y,
|
967
1034
|
strategy: a
|
968
|
-
}) :
|
1035
|
+
}) : v);
|
969
1036
|
return {
|
970
|
-
top: (
|
971
|
-
bottom: (w.bottom -
|
972
|
-
left: (
|
973
|
-
right: (w.right -
|
1037
|
+
top: (f.top - w.top + m.top) / b.y,
|
1038
|
+
bottom: (w.bottom - f.bottom + m.bottom) / b.y,
|
1039
|
+
left: (f.left - w.left + m.left) / b.x,
|
1040
|
+
right: (w.right - f.right + m.right) / b.x
|
974
1041
|
};
|
975
1042
|
}
|
976
|
-
const
|
1043
|
+
const uo = (e) => ({
|
977
1044
|
name: "arrow",
|
978
1045
|
options: e,
|
979
1046
|
async fn(t) {
|
980
1047
|
const {
|
981
1048
|
x: n,
|
982
|
-
y:
|
983
|
-
placement:
|
1049
|
+
y: o,
|
1050
|
+
placement: i,
|
984
1051
|
rects: s,
|
985
|
-
platform:
|
986
|
-
elements:
|
1052
|
+
platform: l,
|
1053
|
+
elements: r,
|
987
1054
|
middlewareData: a
|
988
1055
|
} = t, {
|
989
1056
|
element: c,
|
990
1057
|
padding: h = 0
|
991
|
-
} =
|
1058
|
+
} = ht(e, t) || {};
|
992
1059
|
if (c == null)
|
993
1060
|
return {};
|
994
|
-
const d =
|
1061
|
+
const d = Ee(h), p = {
|
995
1062
|
x: n,
|
996
|
-
y:
|
997
|
-
}, u =
|
998
|
-
let
|
999
|
-
(
|
1000
|
-
const
|
1063
|
+
y: o
|
1064
|
+
}, u = Kt(i), m = Vt(u), g = await l.getDimensions(c), f = u === "y", v = f ? "top" : "left", y = f ? "bottom" : "right", b = f ? "clientHeight" : "clientWidth", w = s.reference[m] + s.reference[u] - p[u] - s.floating[m], E = p[u] - s.reference[u], S = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(c));
|
1065
|
+
let $ = S ? S[b] : 0;
|
1066
|
+
(!$ || !await (l.isElement == null ? void 0 : l.isElement(S))) && ($ = r.floating[b] || s.floating[m]);
|
1067
|
+
const U = w / 2 - E / 2, H = $ / 2 - g[m] / 2 - 1, D = Z(d[v], H), K = Z(d[y], H), B = D, X = $ - g[m] - K, O = $ / 2 - g[m] / 2 + U, it = qt(B, O, X), j = !a.arrow && dt(i) != null && O !== it && s.reference[m] / 2 - (O < B ? D : K) - g[m] / 2 < 0, _ = j ? O < B ? O - B : O - X : 0;
|
1001
1068
|
return {
|
1002
|
-
[u]:
|
1069
|
+
[u]: p[u] + _,
|
1003
1070
|
data: {
|
1004
1071
|
[u]: it,
|
1005
|
-
centerOffset:
|
1006
|
-
...
|
1007
|
-
alignmentOffset:
|
1072
|
+
centerOffset: O - it - _,
|
1073
|
+
...j && {
|
1074
|
+
alignmentOffset: _
|
1008
1075
|
}
|
1009
1076
|
},
|
1010
|
-
reset:
|
1077
|
+
reset: j
|
1011
1078
|
};
|
1012
1079
|
}
|
1013
|
-
}),
|
1080
|
+
}), po = function(e) {
|
1014
1081
|
return e === void 0 && (e = {}), {
|
1015
1082
|
name: "flip",
|
1016
1083
|
options: e,
|
1017
1084
|
async fn(t) {
|
1018
|
-
var n,
|
1085
|
+
var n, o;
|
1019
1086
|
const {
|
1020
|
-
placement:
|
1087
|
+
placement: i,
|
1021
1088
|
middlewareData: s,
|
1022
|
-
rects:
|
1023
|
-
initialPlacement:
|
1089
|
+
rects: l,
|
1090
|
+
initialPlacement: r,
|
1024
1091
|
platform: a,
|
1025
1092
|
elements: c
|
1026
1093
|
} = t, {
|
1027
1094
|
mainAxis: h = !0,
|
1028
1095
|
crossAxis: d = !0,
|
1029
|
-
fallbackPlacements:
|
1096
|
+
fallbackPlacements: p,
|
1030
1097
|
fallbackStrategy: u = "bestFit",
|
1031
|
-
fallbackAxisSideDirection:
|
1032
|
-
flipAlignment:
|
1033
|
-
...
|
1034
|
-
} =
|
1098
|
+
fallbackAxisSideDirection: m = "none",
|
1099
|
+
flipAlignment: g = !0,
|
1100
|
+
...f
|
1101
|
+
} = ht(e, t);
|
1035
1102
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
1036
1103
|
return {};
|
1037
|
-
const
|
1038
|
-
!
|
1039
|
-
const
|
1040
|
-
let
|
1041
|
-
if (h &&
|
1042
|
-
const
|
1043
|
-
|
1104
|
+
const v = Q(i), y = et(r), b = Q(r) === r, w = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), E = p || (b || !g ? [Pt(r)] : ro(r)), S = m !== "none";
|
1105
|
+
!p && S && E.push(...ao(r, g, m, w));
|
1106
|
+
const $ = [r, ...E], U = await Xt(t, f), H = [];
|
1107
|
+
let D = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
1108
|
+
if (h && H.push(U[v]), d) {
|
1109
|
+
const O = so(i, l, w);
|
1110
|
+
H.push(U[O[0]], U[O[1]]);
|
1044
1111
|
}
|
1045
|
-
if (
|
1046
|
-
placement:
|
1047
|
-
overflows:
|
1048
|
-
}], !
|
1049
|
-
var K,
|
1050
|
-
const
|
1112
|
+
if (D = [...D, {
|
1113
|
+
placement: i,
|
1114
|
+
overflows: H
|
1115
|
+
}], !H.every((O) => O <= 0)) {
|
1116
|
+
var K, B;
|
1117
|
+
const O = (((K = s.flip) == null ? void 0 : K.index) || 0) + 1, it = $[O];
|
1051
1118
|
if (it)
|
1052
1119
|
return {
|
1053
1120
|
data: {
|
1054
|
-
index:
|
1055
|
-
overflows:
|
1121
|
+
index: O,
|
1122
|
+
overflows: D
|
1056
1123
|
},
|
1057
1124
|
reset: {
|
1058
1125
|
placement: it
|
1059
1126
|
}
|
1060
1127
|
};
|
1061
|
-
let
|
1062
|
-
if (!
|
1128
|
+
let j = (B = D.filter((_) => _.overflows[0] <= 0).sort((_, Y) => _.overflows[1] - Y.overflows[1])[0]) == null ? void 0 : B.placement;
|
1129
|
+
if (!j)
|
1063
1130
|
switch (u) {
|
1064
1131
|
case "bestFit": {
|
1065
|
-
var
|
1066
|
-
const
|
1067
|
-
if (
|
1068
|
-
const
|
1069
|
-
return
|
1132
|
+
var X;
|
1133
|
+
const _ = (X = D.filter((Y) => {
|
1134
|
+
if (S) {
|
1135
|
+
const G = et(Y.placement);
|
1136
|
+
return G === y || // Create a bias to the `y` side axis due to horizontal
|
1070
1137
|
// reading directions favoring greater width.
|
1071
|
-
|
1138
|
+
G === "y";
|
1072
1139
|
}
|
1073
1140
|
return !0;
|
1074
|
-
}).map((
|
1075
|
-
|
1141
|
+
}).map((Y) => [Y.placement, Y.overflows.filter((G) => G > 0).reduce((G, $e) => G + $e, 0)]).sort((Y, G) => Y[1] - G[1])[0]) == null ? void 0 : X[0];
|
1142
|
+
_ && (j = _);
|
1076
1143
|
break;
|
1077
1144
|
}
|
1078
1145
|
case "initialPlacement":
|
1079
|
-
|
1146
|
+
j = r;
|
1080
1147
|
break;
|
1081
1148
|
}
|
1082
|
-
if (
|
1149
|
+
if (i !== j)
|
1083
1150
|
return {
|
1084
1151
|
reset: {
|
1085
|
-
placement:
|
1152
|
+
placement: j
|
1086
1153
|
}
|
1087
1154
|
};
|
1088
1155
|
}
|
@@ -1090,16 +1157,16 @@ const on = (e) => ({
|
|
1090
1157
|
}
|
1091
1158
|
};
|
1092
1159
|
};
|
1093
|
-
async function
|
1160
|
+
async function mo(e, t) {
|
1094
1161
|
const {
|
1095
1162
|
placement: n,
|
1096
|
-
platform:
|
1097
|
-
elements:
|
1098
|
-
} = e, s = await (
|
1163
|
+
platform: o,
|
1164
|
+
elements: i
|
1165
|
+
} = e, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), l = Q(n), r = dt(n), a = et(n) === "y", c = ["left", "top"].includes(l) ? -1 : 1, h = s && a ? -1 : 1, d = ht(t, e);
|
1099
1166
|
let {
|
1100
|
-
mainAxis:
|
1167
|
+
mainAxis: p,
|
1101
1168
|
crossAxis: u,
|
1102
|
-
alignmentAxis:
|
1169
|
+
alignmentAxis: m
|
1103
1170
|
} = typeof d == "number" ? {
|
1104
1171
|
mainAxis: d,
|
1105
1172
|
crossAxis: 0,
|
@@ -1109,126 +1176,126 @@ async function rn(e, t) {
|
|
1109
1176
|
crossAxis: d.crossAxis || 0,
|
1110
1177
|
alignmentAxis: d.alignmentAxis
|
1111
1178
|
};
|
1112
|
-
return
|
1179
|
+
return r && typeof m == "number" && (u = r === "end" ? m * -1 : m), a ? {
|
1113
1180
|
x: u * h,
|
1114
|
-
y:
|
1181
|
+
y: p * c
|
1115
1182
|
} : {
|
1116
|
-
x:
|
1183
|
+
x: p * c,
|
1117
1184
|
y: u * h
|
1118
1185
|
};
|
1119
1186
|
}
|
1120
|
-
const
|
1187
|
+
const go = function(e) {
|
1121
1188
|
return e === void 0 && (e = 0), {
|
1122
1189
|
name: "offset",
|
1123
1190
|
options: e,
|
1124
1191
|
async fn(t) {
|
1125
|
-
var n,
|
1192
|
+
var n, o;
|
1126
1193
|
const {
|
1127
|
-
x:
|
1194
|
+
x: i,
|
1128
1195
|
y: s,
|
1129
|
-
placement:
|
1130
|
-
middlewareData:
|
1131
|
-
} = t, a = await
|
1132
|
-
return
|
1133
|
-
x:
|
1196
|
+
placement: l,
|
1197
|
+
middlewareData: r
|
1198
|
+
} = t, a = await mo(t, e);
|
1199
|
+
return l === ((n = r.offset) == null ? void 0 : n.placement) && (o = r.arrow) != null && o.alignmentOffset ? {} : {
|
1200
|
+
x: i + a.x,
|
1134
1201
|
y: s + a.y,
|
1135
1202
|
data: {
|
1136
1203
|
...a,
|
1137
|
-
placement:
|
1204
|
+
placement: l
|
1138
1205
|
}
|
1139
1206
|
};
|
1140
1207
|
}
|
1141
1208
|
};
|
1142
|
-
},
|
1209
|
+
}, fo = function(e) {
|
1143
1210
|
return e === void 0 && (e = {}), {
|
1144
1211
|
name: "shift",
|
1145
1212
|
options: e,
|
1146
1213
|
async fn(t) {
|
1147
1214
|
const {
|
1148
1215
|
x: n,
|
1149
|
-
y:
|
1150
|
-
placement:
|
1216
|
+
y: o,
|
1217
|
+
placement: i
|
1151
1218
|
} = t, {
|
1152
1219
|
mainAxis: s = !0,
|
1153
|
-
crossAxis:
|
1154
|
-
limiter:
|
1155
|
-
fn: (
|
1220
|
+
crossAxis: l = !1,
|
1221
|
+
limiter: r = {
|
1222
|
+
fn: (f) => {
|
1156
1223
|
let {
|
1157
|
-
x:
|
1224
|
+
x: v,
|
1158
1225
|
y
|
1159
|
-
} =
|
1226
|
+
} = f;
|
1160
1227
|
return {
|
1161
|
-
x:
|
1228
|
+
x: v,
|
1162
1229
|
y
|
1163
1230
|
};
|
1164
1231
|
}
|
1165
1232
|
},
|
1166
1233
|
...a
|
1167
|
-
} =
|
1234
|
+
} = ht(e, t), c = {
|
1168
1235
|
x: n,
|
1169
|
-
y:
|
1170
|
-
}, h = await
|
1171
|
-
let u = c[
|
1236
|
+
y: o
|
1237
|
+
}, h = await Xt(t, a), d = et(Q(i)), p = xe(d);
|
1238
|
+
let u = c[p], m = c[d];
|
1172
1239
|
if (s) {
|
1173
|
-
const
|
1174
|
-
u =
|
1240
|
+
const f = p === "y" ? "top" : "left", v = p === "y" ? "bottom" : "right", y = u + h[f], b = u - h[v];
|
1241
|
+
u = qt(y, u, b);
|
1175
1242
|
}
|
1176
|
-
if (
|
1177
|
-
const
|
1178
|
-
|
1243
|
+
if (l) {
|
1244
|
+
const f = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right", y = m + h[f], b = m - h[v];
|
1245
|
+
m = qt(y, m, b);
|
1179
1246
|
}
|
1180
|
-
const
|
1247
|
+
const g = r.fn({
|
1181
1248
|
...t,
|
1182
|
-
[
|
1183
|
-
[d]:
|
1249
|
+
[p]: u,
|
1250
|
+
[d]: m
|
1184
1251
|
});
|
1185
1252
|
return {
|
1186
|
-
...
|
1253
|
+
...g,
|
1187
1254
|
data: {
|
1188
|
-
x:
|
1189
|
-
y:
|
1255
|
+
x: g.x - n,
|
1256
|
+
y: g.y - o,
|
1190
1257
|
enabled: {
|
1191
|
-
[
|
1192
|
-
[d]:
|
1258
|
+
[p]: s,
|
1259
|
+
[d]: l
|
1193
1260
|
}
|
1194
1261
|
}
|
1195
1262
|
};
|
1196
1263
|
}
|
1197
1264
|
};
|
1198
|
-
},
|
1265
|
+
}, vo = function(e) {
|
1199
1266
|
return e === void 0 && (e = {}), {
|
1200
1267
|
name: "size",
|
1201
1268
|
options: e,
|
1202
1269
|
async fn(t) {
|
1203
|
-
var n,
|
1270
|
+
var n, o;
|
1204
1271
|
const {
|
1205
|
-
placement:
|
1272
|
+
placement: i,
|
1206
1273
|
rects: s,
|
1207
|
-
platform:
|
1208
|
-
elements:
|
1274
|
+
platform: l,
|
1275
|
+
elements: r
|
1209
1276
|
} = t, {
|
1210
1277
|
apply: a = () => {
|
1211
1278
|
},
|
1212
1279
|
...c
|
1213
|
-
} =
|
1214
|
-
width:
|
1215
|
-
height:
|
1280
|
+
} = ht(e, t), h = await Xt(t, c), d = Q(i), p = dt(i), u = et(i) === "y", {
|
1281
|
+
width: m,
|
1282
|
+
height: g
|
1216
1283
|
} = s.floating;
|
1217
|
-
let
|
1218
|
-
d === "top" || d === "bottom" ? (
|
1219
|
-
const y =
|
1220
|
-
let
|
1221
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (
|
1222
|
-
const
|
1223
|
-
u ?
|
1284
|
+
let f, v;
|
1285
|
+
d === "top" || d === "bottom" ? (f = d, v = p === (await (l.isRTL == null ? void 0 : l.isRTL(r.floating)) ? "start" : "end") ? "left" : "right") : (v = d, f = p === "end" ? "top" : "bottom");
|
1286
|
+
const y = g - h.top - h.bottom, b = m - h.left - h.right, w = Z(g - h[f], y), E = Z(m - h[v], b), S = !t.middlewareData.shift;
|
1287
|
+
let $ = w, U = E;
|
1288
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (U = b), (o = t.middlewareData.shift) != null && o.enabled.y && ($ = y), S && !p) {
|
1289
|
+
const D = L(h.left, 0), K = L(h.right, 0), B = L(h.top, 0), X = L(h.bottom, 0);
|
1290
|
+
u ? U = m - 2 * (D !== 0 || K !== 0 ? D + K : L(h.left, h.right)) : $ = g - 2 * (B !== 0 || X !== 0 ? B + X : L(h.top, h.bottom));
|
1224
1291
|
}
|
1225
1292
|
await a({
|
1226
1293
|
...t,
|
1227
|
-
availableWidth:
|
1228
|
-
availableHeight:
|
1294
|
+
availableWidth: U,
|
1295
|
+
availableHeight: $
|
1229
1296
|
});
|
1230
|
-
const
|
1231
|
-
return
|
1297
|
+
const H = await l.getDimensions(r.floating);
|
1298
|
+
return m !== H.width || g !== H.height ? {
|
1232
1299
|
reset: {
|
1233
1300
|
rects: !0
|
1234
1301
|
}
|
@@ -1236,45 +1303,45 @@ const ln = function(e) {
|
|
1236
1303
|
}
|
1237
1304
|
};
|
1238
1305
|
};
|
1239
|
-
function
|
1306
|
+
function Lt() {
|
1240
1307
|
return typeof window < "u";
|
1241
1308
|
}
|
1242
|
-
function
|
1243
|
-
return
|
1309
|
+
function ut(e) {
|
1310
|
+
return ze(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
1244
1311
|
}
|
1245
|
-
function
|
1312
|
+
function R(e) {
|
1246
1313
|
var t;
|
1247
1314
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
1248
1315
|
}
|
1249
1316
|
function W(e) {
|
1250
1317
|
var t;
|
1251
|
-
return (t = (
|
1318
|
+
return (t = (ze(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
1252
1319
|
}
|
1253
|
-
function
|
1254
|
-
return
|
1320
|
+
function ze(e) {
|
1321
|
+
return Lt() ? e instanceof Node || e instanceof R(e).Node : !1;
|
1255
1322
|
}
|
1256
|
-
function
|
1257
|
-
return
|
1323
|
+
function N(e) {
|
1324
|
+
return Lt() ? e instanceof Element || e instanceof R(e).Element : !1;
|
1258
1325
|
}
|
1259
|
-
function
|
1260
|
-
return
|
1326
|
+
function M(e) {
|
1327
|
+
return Lt() ? e instanceof HTMLElement || e instanceof R(e).HTMLElement : !1;
|
1261
1328
|
}
|
1262
|
-
function
|
1263
|
-
return !
|
1329
|
+
function he(e) {
|
1330
|
+
return !Lt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof R(e).ShadowRoot;
|
1264
1331
|
}
|
1265
|
-
function
|
1332
|
+
function yt(e) {
|
1266
1333
|
const {
|
1267
1334
|
overflow: t,
|
1268
1335
|
overflowX: n,
|
1269
|
-
overflowY:
|
1270
|
-
display:
|
1271
|
-
} =
|
1272
|
-
return /auto|scroll|overlay|hidden|clip/.test(t +
|
1336
|
+
overflowY: o,
|
1337
|
+
display: i
|
1338
|
+
} = q(e);
|
1339
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(i);
|
1273
1340
|
}
|
1274
|
-
function
|
1275
|
-
return ["table", "td", "th"].includes(
|
1341
|
+
function yo(e) {
|
1342
|
+
return ["table", "td", "th"].includes(ut(e));
|
1276
1343
|
}
|
1277
|
-
function
|
1344
|
+
function Rt(e) {
|
1278
1345
|
return [":popover-open", ":modal"].some((t) => {
|
1279
1346
|
try {
|
1280
1347
|
return e.matches(t);
|
@@ -1283,32 +1350,32 @@ function Tt(e) {
|
|
1283
1350
|
}
|
1284
1351
|
});
|
1285
1352
|
}
|
1286
|
-
function
|
1287
|
-
const t =
|
1288
|
-
return ["transform", "translate", "scale", "rotate", "perspective"].some((
|
1353
|
+
function Yt(e) {
|
1354
|
+
const t = Gt(), n = N(e) ? q(e) : e;
|
1355
|
+
return ["transform", "translate", "scale", "rotate", "perspective"].some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
|
1289
1356
|
}
|
1290
|
-
function
|
1291
|
-
let t =
|
1292
|
-
for (;
|
1293
|
-
if (
|
1357
|
+
function bo(e) {
|
1358
|
+
let t = tt(e);
|
1359
|
+
for (; M(t) && !at(t); ) {
|
1360
|
+
if (Yt(t))
|
1294
1361
|
return t;
|
1295
|
-
if (
|
1362
|
+
if (Rt(t))
|
1296
1363
|
return null;
|
1297
|
-
t =
|
1364
|
+
t = tt(t);
|
1298
1365
|
}
|
1299
1366
|
return null;
|
1300
1367
|
}
|
1301
|
-
function
|
1368
|
+
function Gt() {
|
1302
1369
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
1303
1370
|
}
|
1304
|
-
function
|
1305
|
-
return ["html", "body", "#document"].includes(
|
1371
|
+
function at(e) {
|
1372
|
+
return ["html", "body", "#document"].includes(ut(e));
|
1306
1373
|
}
|
1307
|
-
function
|
1308
|
-
return
|
1374
|
+
function q(e) {
|
1375
|
+
return R(e).getComputedStyle(e);
|
1309
1376
|
}
|
1310
|
-
function
|
1311
|
-
return
|
1377
|
+
function At(e) {
|
1378
|
+
return N(e) ? {
|
1312
1379
|
scrollLeft: e.scrollLeft,
|
1313
1380
|
scrollTop: e.scrollTop
|
1314
1381
|
} : {
|
@@ -1316,421 +1383,421 @@ function Rt(e) {
|
|
1316
1383
|
scrollTop: e.scrollY
|
1317
1384
|
};
|
1318
1385
|
}
|
1319
|
-
function
|
1320
|
-
if (
|
1386
|
+
function tt(e) {
|
1387
|
+
if (ut(e) === "html")
|
1321
1388
|
return e;
|
1322
1389
|
const t = (
|
1323
1390
|
// Step into the shadow DOM of the parent of a slotted node.
|
1324
1391
|
e.assignedSlot || // DOM Element detected.
|
1325
1392
|
e.parentNode || // ShadowRoot detected.
|
1326
|
-
|
1393
|
+
he(e) && e.host || // Fallback.
|
1327
1394
|
W(e)
|
1328
1395
|
);
|
1329
|
-
return
|
1396
|
+
return he(t) ? t.host : t;
|
1330
1397
|
}
|
1331
|
-
function
|
1332
|
-
const t =
|
1333
|
-
return
|
1398
|
+
function Ce(e) {
|
1399
|
+
const t = tt(e);
|
1400
|
+
return at(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : M(t) && yt(t) ? t : Ce(t);
|
1334
1401
|
}
|
1335
|
-
function
|
1336
|
-
var
|
1402
|
+
function pt(e, t, n) {
|
1403
|
+
var o;
|
1337
1404
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
1338
|
-
const
|
1405
|
+
const i = Ce(e), s = i === ((o = e.ownerDocument) == null ? void 0 : o.body), l = R(i);
|
1339
1406
|
if (s) {
|
1340
|
-
const
|
1341
|
-
return t.concat(
|
1407
|
+
const r = Bt(l);
|
1408
|
+
return t.concat(l, l.visualViewport || [], yt(i) ? i : [], r && n ? pt(r) : []);
|
1342
1409
|
}
|
1343
|
-
return t.concat(
|
1410
|
+
return t.concat(i, pt(i, [], n));
|
1344
1411
|
}
|
1345
|
-
function
|
1412
|
+
function Bt(e) {
|
1346
1413
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
1347
1414
|
}
|
1348
|
-
function
|
1349
|
-
const t =
|
1350
|
-
let n = parseFloat(t.width) || 0,
|
1351
|
-
const
|
1352
|
-
return
|
1415
|
+
function Oe(e) {
|
1416
|
+
const t = q(e);
|
1417
|
+
let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
1418
|
+
const i = M(e), s = i ? e.offsetWidth : n, l = i ? e.offsetHeight : o, r = Ot(n) !== s || Ot(o) !== l;
|
1419
|
+
return r && (n = s, o = l), {
|
1353
1420
|
width: n,
|
1354
|
-
height:
|
1355
|
-
$:
|
1421
|
+
height: o,
|
1422
|
+
$: r
|
1356
1423
|
};
|
1357
1424
|
}
|
1358
|
-
function
|
1359
|
-
return
|
1425
|
+
function Jt(e) {
|
1426
|
+
return N(e) ? e : e.contextElement;
|
1360
1427
|
}
|
1361
|
-
function
|
1362
|
-
const t =
|
1363
|
-
if (!
|
1364
|
-
return
|
1428
|
+
function rt(e) {
|
1429
|
+
const t = Jt(e);
|
1430
|
+
if (!M(t))
|
1431
|
+
return I(1);
|
1365
1432
|
const n = t.getBoundingClientRect(), {
|
1366
|
-
width:
|
1367
|
-
height:
|
1433
|
+
width: o,
|
1434
|
+
height: i,
|
1368
1435
|
$: s
|
1369
|
-
} =
|
1370
|
-
let
|
1371
|
-
return (!
|
1372
|
-
x:
|
1373
|
-
y:
|
1436
|
+
} = Oe(t);
|
1437
|
+
let l = (s ? Ot(n.width) : n.width) / o, r = (s ? Ot(n.height) : n.height) / i;
|
1438
|
+
return (!l || !Number.isFinite(l)) && (l = 1), (!r || !Number.isFinite(r)) && (r = 1), {
|
1439
|
+
x: l,
|
1440
|
+
y: r
|
1374
1441
|
};
|
1375
1442
|
}
|
1376
|
-
const
|
1377
|
-
function
|
1378
|
-
const t =
|
1379
|
-
return !
|
1443
|
+
const wo = /* @__PURE__ */ I(0);
|
1444
|
+
function Pe(e) {
|
1445
|
+
const t = R(e);
|
1446
|
+
return !Gt() || !t.visualViewport ? wo : {
|
1380
1447
|
x: t.visualViewport.offsetLeft,
|
1381
1448
|
y: t.visualViewport.offsetTop
|
1382
1449
|
};
|
1383
1450
|
}
|
1384
|
-
function
|
1385
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
1451
|
+
function xo(e, t, n) {
|
1452
|
+
return t === void 0 && (t = !1), !n || t && n !== R(e) ? !1 : t;
|
1386
1453
|
}
|
1387
|
-
function
|
1454
|
+
function ot(e, t, n, o) {
|
1388
1455
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
1389
|
-
const
|
1390
|
-
let
|
1391
|
-
t && (
|
1392
|
-
const
|
1393
|
-
let a = (
|
1456
|
+
const i = e.getBoundingClientRect(), s = Jt(e);
|
1457
|
+
let l = I(1);
|
1458
|
+
t && (o ? N(o) && (l = rt(o)) : l = rt(e));
|
1459
|
+
const r = xo(s, n, o) ? Pe(s) : I(0);
|
1460
|
+
let a = (i.left + r.x) / l.x, c = (i.top + r.y) / l.y, h = i.width / l.x, d = i.height / l.y;
|
1394
1461
|
if (s) {
|
1395
|
-
const
|
1396
|
-
let
|
1397
|
-
for (;
|
1398
|
-
const
|
1399
|
-
a *=
|
1462
|
+
const p = R(s), u = o && N(o) ? R(o) : o;
|
1463
|
+
let m = p, g = Bt(m);
|
1464
|
+
for (; g && o && u !== m; ) {
|
1465
|
+
const f = rt(g), v = g.getBoundingClientRect(), y = q(g), b = v.left + (g.clientLeft + parseFloat(y.paddingLeft)) * f.x, w = v.top + (g.clientTop + parseFloat(y.paddingTop)) * f.y;
|
1466
|
+
a *= f.x, c *= f.y, h *= f.x, d *= f.y, a += b, c += w, m = R(g), g = Bt(m);
|
1400
1467
|
}
|
1401
1468
|
}
|
1402
|
-
return
|
1469
|
+
return Tt({
|
1403
1470
|
width: h,
|
1404
1471
|
height: d,
|
1405
1472
|
x: a,
|
1406
1473
|
y: c
|
1407
1474
|
});
|
1408
1475
|
}
|
1409
|
-
function
|
1410
|
-
const n =
|
1411
|
-
return t ? t.left + n :
|
1476
|
+
function Zt(e, t) {
|
1477
|
+
const n = At(e).scrollLeft;
|
1478
|
+
return t ? t.left + n : ot(W(e)).left + n;
|
1412
1479
|
}
|
1413
|
-
function
|
1480
|
+
function Te(e, t, n) {
|
1414
1481
|
n === void 0 && (n = !1);
|
1415
|
-
const
|
1482
|
+
const o = e.getBoundingClientRect(), i = o.left + t.scrollLeft - (n ? 0 : (
|
1416
1483
|
// RTL <body> scrollbar.
|
1417
|
-
|
1418
|
-
)), s =
|
1484
|
+
Zt(e, o)
|
1485
|
+
)), s = o.top + t.scrollTop;
|
1419
1486
|
return {
|
1420
|
-
x:
|
1487
|
+
x: i,
|
1421
1488
|
y: s
|
1422
1489
|
};
|
1423
1490
|
}
|
1424
|
-
function
|
1491
|
+
function Eo(e) {
|
1425
1492
|
let {
|
1426
1493
|
elements: t,
|
1427
1494
|
rect: n,
|
1428
|
-
offsetParent:
|
1429
|
-
strategy:
|
1495
|
+
offsetParent: o,
|
1496
|
+
strategy: i
|
1430
1497
|
} = e;
|
1431
|
-
const s =
|
1432
|
-
if (
|
1498
|
+
const s = i === "fixed", l = W(o), r = t ? Rt(t.floating) : !1;
|
1499
|
+
if (o === l || r && s)
|
1433
1500
|
return n;
|
1434
1501
|
let a = {
|
1435
1502
|
scrollLeft: 0,
|
1436
1503
|
scrollTop: 0
|
1437
|
-
}, c =
|
1438
|
-
const h =
|
1439
|
-
if ((d || !d && !s) && ((
|
1440
|
-
const u =
|
1441
|
-
c =
|
1504
|
+
}, c = I(1);
|
1505
|
+
const h = I(0), d = M(o);
|
1506
|
+
if ((d || !d && !s) && ((ut(o) !== "body" || yt(l)) && (a = At(o)), M(o))) {
|
1507
|
+
const u = ot(o);
|
1508
|
+
c = rt(o), h.x = u.x + o.clientLeft, h.y = u.y + o.clientTop;
|
1442
1509
|
}
|
1443
|
-
const
|
1510
|
+
const p = l && !d && !s ? Te(l, a, !0) : I(0);
|
1444
1511
|
return {
|
1445
1512
|
width: n.width * c.x,
|
1446
1513
|
height: n.height * c.y,
|
1447
|
-
x: n.x * c.x - a.scrollLeft * c.x + h.x +
|
1448
|
-
y: n.y * c.y - a.scrollTop * c.y + h.y +
|
1514
|
+
x: n.x * c.x - a.scrollLeft * c.x + h.x + p.x,
|
1515
|
+
y: n.y * c.y - a.scrollTop * c.y + h.y + p.y
|
1449
1516
|
};
|
1450
1517
|
}
|
1451
|
-
function
|
1518
|
+
function zo(e) {
|
1452
1519
|
return Array.from(e.getClientRects());
|
1453
1520
|
}
|
1454
|
-
function
|
1455
|
-
const t = W(e), n =
|
1456
|
-
let
|
1457
|
-
const
|
1458
|
-
return
|
1459
|
-
width:
|
1521
|
+
function Co(e) {
|
1522
|
+
const t = W(e), n = At(e), o = e.ownerDocument.body, i = L(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), s = L(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
1523
|
+
let l = -n.scrollLeft + Zt(e);
|
1524
|
+
const r = -n.scrollTop;
|
1525
|
+
return q(o).direction === "rtl" && (l += L(t.clientWidth, o.clientWidth) - i), {
|
1526
|
+
width: i,
|
1460
1527
|
height: s,
|
1461
|
-
x:
|
1462
|
-
y:
|
1528
|
+
x: l,
|
1529
|
+
y: r
|
1463
1530
|
};
|
1464
1531
|
}
|
1465
|
-
function
|
1466
|
-
const n =
|
1467
|
-
let s =
|
1468
|
-
if (
|
1469
|
-
s =
|
1470
|
-
const c =
|
1471
|
-
(!c || c && t === "fixed") && (
|
1532
|
+
function Oo(e, t) {
|
1533
|
+
const n = R(e), o = W(e), i = n.visualViewport;
|
1534
|
+
let s = o.clientWidth, l = o.clientHeight, r = 0, a = 0;
|
1535
|
+
if (i) {
|
1536
|
+
s = i.width, l = i.height;
|
1537
|
+
const c = Gt();
|
1538
|
+
(!c || c && t === "fixed") && (r = i.offsetLeft, a = i.offsetTop);
|
1472
1539
|
}
|
1473
1540
|
return {
|
1474
1541
|
width: s,
|
1475
|
-
height:
|
1476
|
-
x:
|
1542
|
+
height: l,
|
1543
|
+
x: r,
|
1477
1544
|
y: a
|
1478
1545
|
};
|
1479
1546
|
}
|
1480
|
-
function
|
1481
|
-
const n =
|
1547
|
+
function Po(e, t) {
|
1548
|
+
const n = ot(e, !0, t === "fixed"), o = n.top + e.clientTop, i = n.left + e.clientLeft, s = M(e) ? rt(e) : I(1), l = e.clientWidth * s.x, r = e.clientHeight * s.y, a = i * s.x, c = o * s.y;
|
1482
1549
|
return {
|
1483
|
-
width:
|
1484
|
-
height:
|
1550
|
+
width: l,
|
1551
|
+
height: r,
|
1485
1552
|
x: a,
|
1486
1553
|
y: c
|
1487
1554
|
};
|
1488
1555
|
}
|
1489
|
-
function
|
1490
|
-
let
|
1556
|
+
function de(e, t, n) {
|
1557
|
+
let o;
|
1491
1558
|
if (t === "viewport")
|
1492
|
-
|
1559
|
+
o = Oo(e, n);
|
1493
1560
|
else if (t === "document")
|
1494
|
-
|
1495
|
-
else if (
|
1496
|
-
|
1561
|
+
o = Co(W(e));
|
1562
|
+
else if (N(t))
|
1563
|
+
o = Po(t, n);
|
1497
1564
|
else {
|
1498
|
-
const
|
1499
|
-
|
1500
|
-
x: t.x -
|
1501
|
-
y: t.y -
|
1565
|
+
const i = Pe(e);
|
1566
|
+
o = {
|
1567
|
+
x: t.x - i.x,
|
1568
|
+
y: t.y - i.y,
|
1502
1569
|
width: t.width,
|
1503
1570
|
height: t.height
|
1504
1571
|
};
|
1505
1572
|
}
|
1506
|
-
return
|
1573
|
+
return Tt(o);
|
1507
1574
|
}
|
1508
|
-
function
|
1509
|
-
const n =
|
1510
|
-
return n === t || !
|
1575
|
+
function ke(e, t) {
|
1576
|
+
const n = tt(e);
|
1577
|
+
return n === t || !N(n) || at(n) ? !1 : q(n).position === "fixed" || ke(n, t);
|
1511
1578
|
}
|
1512
|
-
function
|
1579
|
+
function To(e, t) {
|
1513
1580
|
const n = t.get(e);
|
1514
1581
|
if (n)
|
1515
1582
|
return n;
|
1516
|
-
let
|
1517
|
-
const s =
|
1518
|
-
let
|
1519
|
-
for (;
|
1520
|
-
const
|
1521
|
-
!a &&
|
1583
|
+
let o = pt(e, [], !1).filter((r) => N(r) && ut(r) !== "body"), i = null;
|
1584
|
+
const s = q(e).position === "fixed";
|
1585
|
+
let l = s ? tt(e) : e;
|
1586
|
+
for (; N(l) && !at(l); ) {
|
1587
|
+
const r = q(l), a = Yt(l);
|
1588
|
+
!a && r.position === "fixed" && (i = null), (s ? !a && !i : !a && r.position === "static" && i && ["absolute", "fixed"].includes(i.position) || yt(l) && !a && ke(e, l)) ? o = o.filter((c) => c !== l) : i = r, l = tt(l);
|
1522
1589
|
}
|
1523
|
-
return t.set(e,
|
1590
|
+
return t.set(e, o), o;
|
1524
1591
|
}
|
1525
|
-
function
|
1592
|
+
function ko(e) {
|
1526
1593
|
let {
|
1527
1594
|
element: t,
|
1528
1595
|
boundary: n,
|
1529
|
-
rootBoundary:
|
1530
|
-
strategy:
|
1596
|
+
rootBoundary: o,
|
1597
|
+
strategy: i
|
1531
1598
|
} = e;
|
1532
|
-
const
|
1533
|
-
const
|
1534
|
-
return
|
1535
|
-
},
|
1599
|
+
const s = [...n === "clippingAncestors" ? Rt(t) ? [] : To(t, this._c) : [].concat(n), o], l = s[0], r = s.reduce((a, c) => {
|
1600
|
+
const h = de(t, c, i);
|
1601
|
+
return a.top = L(h.top, a.top), a.right = Z(h.right, a.right), a.bottom = Z(h.bottom, a.bottom), a.left = L(h.left, a.left), a;
|
1602
|
+
}, de(t, l, i));
|
1536
1603
|
return {
|
1537
|
-
width:
|
1538
|
-
height:
|
1539
|
-
x:
|
1540
|
-
y:
|
1604
|
+
width: r.right - r.left,
|
1605
|
+
height: r.bottom - r.top,
|
1606
|
+
x: r.left,
|
1607
|
+
y: r.top
|
1541
1608
|
};
|
1542
1609
|
}
|
1543
|
-
function
|
1610
|
+
function So(e) {
|
1544
1611
|
const {
|
1545
1612
|
width: t,
|
1546
1613
|
height: n
|
1547
|
-
} =
|
1614
|
+
} = Oe(e);
|
1548
1615
|
return {
|
1549
1616
|
width: t,
|
1550
1617
|
height: n
|
1551
1618
|
};
|
1552
1619
|
}
|
1553
|
-
function
|
1554
|
-
const
|
1555
|
-
let
|
1620
|
+
function Lo(e, t, n) {
|
1621
|
+
const o = M(t), i = W(t), s = n === "fixed", l = ot(e, !0, s, t);
|
1622
|
+
let r = {
|
1556
1623
|
scrollLeft: 0,
|
1557
1624
|
scrollTop: 0
|
1558
1625
|
};
|
1559
|
-
const a =
|
1560
|
-
if (
|
1561
|
-
if ((
|
1562
|
-
const
|
1563
|
-
a.x =
|
1564
|
-
} else
|
1565
|
-
const c =
|
1626
|
+
const a = I(0);
|
1627
|
+
if (o || !o && !s)
|
1628
|
+
if ((ut(t) !== "body" || yt(i)) && (r = At(t)), o) {
|
1629
|
+
const p = ot(t, !0, s, t);
|
1630
|
+
a.x = p.x + t.clientLeft, a.y = p.y + t.clientTop;
|
1631
|
+
} else i && (a.x = Zt(i));
|
1632
|
+
const c = i && !o && !s ? Te(i, r) : I(0), h = l.left + r.scrollLeft - a.x - c.x, d = l.top + r.scrollTop - a.y - c.y;
|
1566
1633
|
return {
|
1567
1634
|
x: h,
|
1568
1635
|
y: d,
|
1569
|
-
width:
|
1570
|
-
height:
|
1636
|
+
width: l.width,
|
1637
|
+
height: l.height
|
1571
1638
|
};
|
1572
1639
|
}
|
1573
|
-
function
|
1574
|
-
return
|
1640
|
+
function Dt(e) {
|
1641
|
+
return q(e).position === "static";
|
1575
1642
|
}
|
1576
|
-
function
|
1577
|
-
if (!
|
1643
|
+
function ue(e, t) {
|
1644
|
+
if (!M(e) || q(e).position === "fixed")
|
1578
1645
|
return null;
|
1579
1646
|
if (t)
|
1580
1647
|
return t(e);
|
1581
1648
|
let n = e.offsetParent;
|
1582
1649
|
return W(e) === n && (n = n.ownerDocument.body), n;
|
1583
1650
|
}
|
1584
|
-
function
|
1585
|
-
const n =
|
1586
|
-
if (
|
1651
|
+
function Se(e, t) {
|
1652
|
+
const n = R(e);
|
1653
|
+
if (Rt(e))
|
1587
1654
|
return n;
|
1588
|
-
if (!
|
1589
|
-
let
|
1590
|
-
for (;
|
1591
|
-
if (
|
1592
|
-
return
|
1593
|
-
|
1655
|
+
if (!M(e)) {
|
1656
|
+
let i = tt(e);
|
1657
|
+
for (; i && !at(i); ) {
|
1658
|
+
if (N(i) && !Dt(i))
|
1659
|
+
return i;
|
1660
|
+
i = tt(i);
|
1594
1661
|
}
|
1595
1662
|
return n;
|
1596
1663
|
}
|
1597
|
-
let
|
1598
|
-
for (;
|
1599
|
-
|
1600
|
-
return
|
1664
|
+
let o = ue(e, t);
|
1665
|
+
for (; o && yo(o) && Dt(o); )
|
1666
|
+
o = ue(o, t);
|
1667
|
+
return o && at(o) && Dt(o) && !Yt(o) ? n : o || bo(e) || n;
|
1601
1668
|
}
|
1602
|
-
const
|
1603
|
-
const t = this.getOffsetParent ||
|
1669
|
+
const Ro = async function(e) {
|
1670
|
+
const t = this.getOffsetParent || Se, n = this.getDimensions, o = await n(e.floating);
|
1604
1671
|
return {
|
1605
|
-
reference:
|
1672
|
+
reference: Lo(e.reference, await t(e.floating), e.strategy),
|
1606
1673
|
floating: {
|
1607
1674
|
x: 0,
|
1608
1675
|
y: 0,
|
1609
|
-
width:
|
1610
|
-
height:
|
1676
|
+
width: o.width,
|
1677
|
+
height: o.height
|
1611
1678
|
}
|
1612
1679
|
};
|
1613
1680
|
};
|
1614
|
-
function
|
1615
|
-
return
|
1681
|
+
function Ao(e) {
|
1682
|
+
return q(e).direction === "rtl";
|
1616
1683
|
}
|
1617
|
-
const
|
1618
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
1684
|
+
const $o = {
|
1685
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Eo,
|
1619
1686
|
getDocumentElement: W,
|
1620
|
-
getClippingRect:
|
1621
|
-
getOffsetParent:
|
1622
|
-
getElementRects:
|
1623
|
-
getClientRects:
|
1624
|
-
getDimensions:
|
1625
|
-
getScale:
|
1626
|
-
isElement:
|
1627
|
-
isRTL:
|
1687
|
+
getClippingRect: ko,
|
1688
|
+
getOffsetParent: Se,
|
1689
|
+
getElementRects: Ro,
|
1690
|
+
getClientRects: zo,
|
1691
|
+
getDimensions: So,
|
1692
|
+
getScale: rt,
|
1693
|
+
isElement: N,
|
1694
|
+
isRTL: Ao
|
1628
1695
|
};
|
1629
|
-
function
|
1696
|
+
function Le(e, t) {
|
1630
1697
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
1631
1698
|
}
|
1632
|
-
function
|
1633
|
-
let n = null,
|
1634
|
-
const
|
1699
|
+
function Do(e, t) {
|
1700
|
+
let n = null, o;
|
1701
|
+
const i = W(e);
|
1635
1702
|
function s() {
|
1636
|
-
var
|
1637
|
-
clearTimeout(
|
1703
|
+
var r;
|
1704
|
+
clearTimeout(o), (r = n) == null || r.disconnect(), n = null;
|
1638
1705
|
}
|
1639
|
-
function r
|
1640
|
-
|
1706
|
+
function l(r, a) {
|
1707
|
+
r === void 0 && (r = !1), a === void 0 && (a = 1), s();
|
1641
1708
|
const c = e.getBoundingClientRect(), {
|
1642
1709
|
left: h,
|
1643
1710
|
top: d,
|
1644
|
-
width:
|
1711
|
+
width: p,
|
1645
1712
|
height: u
|
1646
1713
|
} = c;
|
1647
|
-
if (
|
1714
|
+
if (r || t(), !p || !u)
|
1648
1715
|
return;
|
1649
|
-
const
|
1650
|
-
rootMargin: -
|
1651
|
-
threshold:
|
1716
|
+
const m = xt(d), g = xt(i.clientWidth - (h + p)), f = xt(i.clientHeight - (d + u)), v = xt(h), y = {
|
1717
|
+
rootMargin: -m + "px " + -g + "px " + -f + "px " + -v + "px",
|
1718
|
+
threshold: L(0, Z(1, a)) || 1
|
1652
1719
|
};
|
1653
|
-
let
|
1654
|
-
function w(
|
1655
|
-
const
|
1656
|
-
if (
|
1657
|
-
if (!
|
1658
|
-
return
|
1659
|
-
|
1660
|
-
|
1720
|
+
let b = !0;
|
1721
|
+
function w(E) {
|
1722
|
+
const S = E[0].intersectionRatio;
|
1723
|
+
if (S !== a) {
|
1724
|
+
if (!b)
|
1725
|
+
return l();
|
1726
|
+
S ? l(!1, S) : o = setTimeout(() => {
|
1727
|
+
l(!1, 1e-7);
|
1661
1728
|
}, 1e3);
|
1662
1729
|
}
|
1663
|
-
|
1730
|
+
S === 1 && !Le(c, e.getBoundingClientRect()) && l(), b = !1;
|
1664
1731
|
}
|
1665
1732
|
try {
|
1666
1733
|
n = new IntersectionObserver(w, {
|
1667
|
-
...
|
1734
|
+
...y,
|
1668
1735
|
// Handle <iframe>s
|
1669
|
-
root:
|
1736
|
+
root: i.ownerDocument
|
1670
1737
|
});
|
1671
1738
|
} catch {
|
1672
|
-
n = new IntersectionObserver(w,
|
1739
|
+
n = new IntersectionObserver(w, y);
|
1673
1740
|
}
|
1674
1741
|
n.observe(e);
|
1675
1742
|
}
|
1676
|
-
return
|
1743
|
+
return l(!0), s;
|
1677
1744
|
}
|
1678
|
-
function
|
1679
|
-
|
1745
|
+
function pe(e, t, n, o) {
|
1746
|
+
o === void 0 && (o = {});
|
1680
1747
|
const {
|
1681
|
-
ancestorScroll:
|
1748
|
+
ancestorScroll: i = !0,
|
1682
1749
|
ancestorResize: s = !0,
|
1683
|
-
elementResize:
|
1684
|
-
layoutShift:
|
1750
|
+
elementResize: l = typeof ResizeObserver == "function",
|
1751
|
+
layoutShift: r = typeof IntersectionObserver == "function",
|
1685
1752
|
animationFrame: a = !1
|
1686
|
-
} =
|
1687
|
-
h.forEach((
|
1688
|
-
|
1753
|
+
} = o, c = Jt(e), h = i || s ? [...c ? pt(c) : [], ...pt(t)] : [];
|
1754
|
+
h.forEach((v) => {
|
1755
|
+
i && v.addEventListener("scroll", n, {
|
1689
1756
|
passive: !0
|
1690
|
-
}), s &&
|
1757
|
+
}), s && v.addEventListener("resize", n);
|
1691
1758
|
});
|
1692
|
-
const d = c &&
|
1693
|
-
let
|
1694
|
-
|
1695
|
-
let [y] =
|
1696
|
-
y && y.target === c && u && (u.unobserve(t), cancelAnimationFrame(
|
1759
|
+
const d = c && r ? Do(c, n) : null;
|
1760
|
+
let p = -1, u = null;
|
1761
|
+
l && (u = new ResizeObserver((v) => {
|
1762
|
+
let [y] = v;
|
1763
|
+
y && y.target === c && u && (u.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
1697
1764
|
var b;
|
1698
1765
|
(b = u) == null || b.observe(t);
|
1699
1766
|
})), n();
|
1700
1767
|
}), c && !a && u.observe(c), u.observe(t));
|
1701
|
-
let
|
1702
|
-
a &&
|
1703
|
-
function
|
1704
|
-
const
|
1705
|
-
|
1768
|
+
let m, g = a ? ot(e) : null;
|
1769
|
+
a && f();
|
1770
|
+
function f() {
|
1771
|
+
const v = ot(e);
|
1772
|
+
g && !Le(g, v) && n(), g = v, m = requestAnimationFrame(f);
|
1706
1773
|
}
|
1707
1774
|
return n(), () => {
|
1708
|
-
var
|
1775
|
+
var v;
|
1709
1776
|
h.forEach((y) => {
|
1710
|
-
|
1711
|
-
}), d == null || d(), (
|
1777
|
+
i && y.removeEventListener("scroll", n), s && y.removeEventListener("resize", n);
|
1778
|
+
}), d == null || d(), (v = u) == null || v.disconnect(), u = null, a && cancelAnimationFrame(m);
|
1712
1779
|
};
|
1713
1780
|
}
|
1714
|
-
const
|
1715
|
-
const
|
1716
|
-
platform:
|
1781
|
+
const Fo = go, No = fo, me = po, qo = vo, Ho = uo, Bo = (e, t, n) => {
|
1782
|
+
const o = /* @__PURE__ */ new Map(), i = {
|
1783
|
+
platform: $o,
|
1717
1784
|
...n
|
1718
1785
|
}, s = {
|
1719
|
-
...
|
1720
|
-
_c:
|
1786
|
+
...i.platform,
|
1787
|
+
_c: o
|
1721
1788
|
};
|
1722
|
-
return
|
1723
|
-
...
|
1789
|
+
return ho(e, t, {
|
1790
|
+
...i,
|
1724
1791
|
platform: s
|
1725
1792
|
});
|
1726
1793
|
};
|
1727
|
-
function
|
1794
|
+
function Et(e) {
|
1728
1795
|
if (e === void 0)
|
1729
1796
|
return 0;
|
1730
1797
|
const t = window.devicePixelRatio || 1;
|
1731
1798
|
return Math.round(e * t) / t;
|
1732
1799
|
}
|
1733
|
-
const
|
1800
|
+
const zt = 8, _o = 100, Io = (e) => ({
|
1734
1801
|
left: ["right", "bottom", "top"],
|
1735
1802
|
"left-start": ["right-start", "bottom", "top"],
|
1736
1803
|
"left-end": ["right-end", "bottom", "top"],
|
@@ -1743,8 +1810,8 @@ const wt = 8, Ln = 100, $n = (e) => ({
|
|
1743
1810
|
bottom: ["top", "left", "right"],
|
1744
1811
|
"bottom-start": ["top-start", "left", "right"],
|
1745
1812
|
"bottom-end": ["top-end", "left", "right"]
|
1746
|
-
})[e] ?? [e];
|
1747
|
-
class
|
1813
|
+
})[e] ?? [e], Re = Symbol("placement updated");
|
1814
|
+
class Qt {
|
1748
1815
|
/**
|
1749
1816
|
* Creates an instance of the PlacementController.
|
1750
1817
|
*
|
@@ -1772,7 +1839,7 @@ class Fn {
|
|
1772
1839
|
placeOverlay(t = this.target, n = this.options) {
|
1773
1840
|
if (this.target = t, this.options = n, !t || !n)
|
1774
1841
|
return;
|
1775
|
-
const
|
1842
|
+
const o = pe(
|
1776
1843
|
n.trigger,
|
1777
1844
|
t,
|
1778
1845
|
this.closeForAncestorUpdate,
|
@@ -1781,7 +1848,7 @@ class Fn {
|
|
1781
1848
|
elementResize: !1,
|
1782
1849
|
layoutShift: !1
|
1783
1850
|
}
|
1784
|
-
),
|
1851
|
+
), i = pe(
|
1785
1852
|
n.trigger,
|
1786
1853
|
t,
|
1787
1854
|
this.updatePlacement,
|
@@ -1791,16 +1858,16 @@ class Fn {
|
|
1791
1858
|
);
|
1792
1859
|
this.cleanup = () => {
|
1793
1860
|
var s;
|
1794
|
-
(s = this.host.elements) == null || s.forEach((
|
1795
|
-
|
1861
|
+
(s = this.host.elements) == null || s.forEach((l) => {
|
1862
|
+
l.addEventListener(
|
1796
1863
|
"luzmo-closed",
|
1797
1864
|
() => {
|
1798
|
-
const
|
1799
|
-
|
1865
|
+
const r = this.originalPlacements.get(l);
|
1866
|
+
r && l.setAttribute("placement", r), this.originalPlacements.delete(l);
|
1800
1867
|
},
|
1801
1868
|
{ once: !0 }
|
1802
1869
|
);
|
1803
|
-
}),
|
1870
|
+
}), o(), i();
|
1804
1871
|
};
|
1805
1872
|
}
|
1806
1873
|
/**
|
@@ -1813,66 +1880,66 @@ class Fn {
|
|
1813
1880
|
* @returns A promise that resolves when the placement has been computed.
|
1814
1881
|
*/
|
1815
1882
|
async computePlacement() {
|
1816
|
-
var
|
1817
|
-
const { options:
|
1883
|
+
var t, n;
|
1884
|
+
const { options: o, target: i } = this;
|
1818
1885
|
await (document.fonts ? document.fonts.ready : Promise.resolve());
|
1819
|
-
const
|
1820
|
-
padding:
|
1821
|
-
fallbackPlacements:
|
1822
|
-
}), [
|
1823
|
-
(
|
1824
|
-
)) == null ? void 0 :
|
1825
|
-
|
1826
|
-
mainAxis:
|
1827
|
-
crossAxis:
|
1886
|
+
const s = o.trigger instanceof HTMLElement ? me() : me({
|
1887
|
+
padding: zt,
|
1888
|
+
fallbackPlacements: Io(o.placement)
|
1889
|
+
}), [l = 0, r = 0] = Array.isArray(o == null ? void 0 : o.offset) ? o.offset : [o.offset, 0], a = (t = this.host.elements.find(
|
1890
|
+
(m) => m.tipElement
|
1891
|
+
)) == null ? void 0 : t.tipElement, c = [
|
1892
|
+
Fo({
|
1893
|
+
mainAxis: l,
|
1894
|
+
crossAxis: r
|
1828
1895
|
}),
|
1829
|
-
|
1830
|
-
|
1831
|
-
|
1832
|
-
padding:
|
1833
|
-
apply: ({ availableWidth:
|
1834
|
-
const
|
1835
|
-
|
1836
|
-
Math.floor(
|
1837
|
-
), y =
|
1838
|
-
this.initialHeight = this.isConstrained && this.initialHeight || y, this.isConstrained = y < this.initialHeight ||
|
1839
|
-
const b = this.isConstrained ? `${
|
1840
|
-
Object.assign(
|
1841
|
-
maxWidth: `${Math.floor(
|
1896
|
+
No({ padding: zt }),
|
1897
|
+
s,
|
1898
|
+
qo({
|
1899
|
+
padding: zt,
|
1900
|
+
apply: ({ availableWidth: m, availableHeight: g, rects: { floating: f } }) => {
|
1901
|
+
const v = Math.max(
|
1902
|
+
_o,
|
1903
|
+
Math.floor(g)
|
1904
|
+
), y = f.height;
|
1905
|
+
this.initialHeight = this.isConstrained && this.initialHeight || y, this.isConstrained = y < this.initialHeight || v <= y;
|
1906
|
+
const b = this.isConstrained ? `${v}px` : "";
|
1907
|
+
Object.assign(i.style, {
|
1908
|
+
maxWidth: `${Math.floor(m)}px`,
|
1842
1909
|
maxHeight: b
|
1843
1910
|
});
|
1844
1911
|
}
|
1845
1912
|
}),
|
1846
|
-
...
|
1847
|
-
|
1848
|
-
element:
|
1849
|
-
padding:
|
1913
|
+
...a ? [
|
1914
|
+
Ho({
|
1915
|
+
element: a,
|
1916
|
+
padding: o.tipPadding || zt
|
1850
1917
|
})
|
1851
1918
|
] : []
|
1852
|
-
], { x:
|
1853
|
-
|
1854
|
-
|
1919
|
+
], { x: h, y: d, placement: p, middlewareData: u } = await Bo(
|
1920
|
+
o.trigger,
|
1921
|
+
i,
|
1855
1922
|
{
|
1856
|
-
placement:
|
1857
|
-
middleware:
|
1923
|
+
placement: o.placement,
|
1924
|
+
middleware: c,
|
1858
1925
|
strategy: "fixed"
|
1859
1926
|
}
|
1860
1927
|
);
|
1861
|
-
if (Object.assign(
|
1928
|
+
if (Object.assign(i.style, {
|
1862
1929
|
top: "0px",
|
1863
1930
|
left: "0px",
|
1864
|
-
translate: `${
|
1865
|
-
}),
|
1866
|
-
this.originalPlacements.has(
|
1867
|
-
|
1868
|
-
|
1869
|
-
),
|
1870
|
-
}),
|
1871
|
-
const { x:
|
1872
|
-
Object.assign(
|
1873
|
-
top:
|
1874
|
-
left:
|
1875
|
-
translate: `${
|
1931
|
+
translate: `${Et(h)}px ${Et(d)}px`
|
1932
|
+
}), i.setAttribute("actual-placement", p), (n = this.host.elements) == null || n.forEach((m) => {
|
1933
|
+
this.originalPlacements.has(m) || this.originalPlacements.set(
|
1934
|
+
m,
|
1935
|
+
m.getAttribute("placement")
|
1936
|
+
), m.setAttribute("placement", p);
|
1937
|
+
}), a && u.arrow) {
|
1938
|
+
const { x: m, y: g } = u.arrow;
|
1939
|
+
Object.assign(a.style, {
|
1940
|
+
top: p.startsWith("right") || p.startsWith("left") ? "0px" : "",
|
1941
|
+
left: p.startsWith("bottom") || p.startsWith("top") ? "0px" : "",
|
1942
|
+
translate: `${Et(m)}px ${Et(g)}px`
|
1876
1943
|
});
|
1877
1944
|
}
|
1878
1945
|
}
|
@@ -1918,10 +1985,10 @@ class Fn {
|
|
1918
1985
|
);
|
1919
1986
|
}
|
1920
1987
|
}
|
1921
|
-
var
|
1922
|
-
class
|
1923
|
-
constructor(t, { overlay: n, isPersistent:
|
1924
|
-
this.target = t, this.isLazilyOpen = !1, this.isPersistent = !1, this.isPersistent = !!
|
1988
|
+
var nt = /* @__PURE__ */ ((e) => (e[e.click = 0] = "click", e[e.hover = 1] = "hover", e[e.longpress = 2] = "longpress", e))(nt || {});
|
1989
|
+
class bt {
|
1990
|
+
constructor(t, { overlay: n, isPersistent: o, handleOverlayReady: i }) {
|
1991
|
+
this.target = t, this.isLazilyOpen = !1, this.isPersistent = !1, this.isPersistent = !!o, this.handleOverlayReady = i, this.isPersistent && this.init(), this.overlay = n;
|
1925
1992
|
}
|
1926
1993
|
get activelyOpening() {
|
1927
1994
|
return !1;
|
@@ -1940,9 +2007,9 @@ class Xt {
|
|
1940
2007
|
return;
|
1941
2008
|
}
|
1942
2009
|
t && (customElements.whenDefined("luzmo-overlay").then(async () => {
|
1943
|
-
const {
|
2010
|
+
const { LuzmoOverlay: n } = await Promise.resolve().then(() => kt);
|
1944
2011
|
this.overlay = new n(), this.overlay.open = !0;
|
1945
|
-
}), Promise.resolve().then(() =>
|
2012
|
+
}), Promise.resolve().then(() => kt));
|
1946
2013
|
}
|
1947
2014
|
}
|
1948
2015
|
get overlay() {
|
@@ -1975,9 +2042,9 @@ class Xt {
|
|
1975
2042
|
this.isPersistent || this.abort();
|
1976
2043
|
}
|
1977
2044
|
}
|
1978
|
-
class
|
2045
|
+
class te extends bt {
|
1979
2046
|
constructor() {
|
1980
|
-
super(...arguments), this.type =
|
2047
|
+
super(...arguments), this.type = nt.click, this.preventNextToggle = !1;
|
1981
2048
|
}
|
1982
2049
|
handleClick() {
|
1983
2050
|
this.preventNextToggle || (this.open = !this.open), this.preventNextToggle = !1;
|
@@ -1986,22 +2053,22 @@ class zn extends Xt {
|
|
1986
2053
|
this.preventNextToggle = this.open;
|
1987
2054
|
}
|
1988
2055
|
init() {
|
1989
|
-
var
|
1990
|
-
(
|
1991
|
-
const { signal:
|
2056
|
+
var t;
|
2057
|
+
(t = this.abortController) == null || t.abort(), this.abortController = new AbortController();
|
2058
|
+
const { signal: n } = this.abortController;
|
1992
2059
|
this.target.addEventListener("click", () => this.handleClick(), {
|
1993
|
-
signal:
|
2060
|
+
signal: n
|
1994
2061
|
}), this.target.addEventListener(
|
1995
2062
|
"pointerdown",
|
1996
2063
|
() => this.handlePointerdown(),
|
1997
|
-
{ signal:
|
2064
|
+
{ signal: n }
|
1998
2065
|
);
|
1999
2066
|
}
|
2000
2067
|
}
|
2001
|
-
const
|
2002
|
-
class
|
2068
|
+
const Mo = 300;
|
2069
|
+
class ee extends bt {
|
2003
2070
|
constructor() {
|
2004
|
-
super(...arguments), this.type =
|
2071
|
+
super(...arguments), this.type = nt.hover, this.elementIds = [], this.focusedin = !1, this.pointerentered = !1;
|
2005
2072
|
}
|
2006
2073
|
handleTargetFocusin() {
|
2007
2074
|
this.target.matches(":focus-visible") && (this.open = !0, this.focusedin = !0);
|
@@ -2027,31 +2094,31 @@ class Nn extends Xt {
|
|
2027
2094
|
prepareDescription() {
|
2028
2095
|
if (this.overlay.elements.length === 0)
|
2029
2096
|
return;
|
2030
|
-
const t = this.target.getRootNode(), n = this.overlay.elements[0].getRootNode(),
|
2031
|
-
t ===
|
2097
|
+
const t = this.target.getRootNode(), n = this.overlay.elements[0].getRootNode(), o = this.overlay.getRootNode();
|
2098
|
+
t === o ? this.prepareOverlayRelativeDescription() : t === n && this.prepareContentRelativeDescription();
|
2032
2099
|
}
|
2033
2100
|
prepareOverlayRelativeDescription() {
|
2034
|
-
const t =
|
2101
|
+
const t = Nt(
|
2035
2102
|
this.target,
|
2036
2103
|
"aria-describedby",
|
2037
2104
|
[this.overlay.id]
|
2038
2105
|
);
|
2039
2106
|
this.releaseDescription = () => {
|
2040
|
-
t(), this.releaseDescription =
|
2107
|
+
t(), this.releaseDescription = V;
|
2041
2108
|
};
|
2042
2109
|
}
|
2043
2110
|
prepareContentRelativeDescription() {
|
2044
|
-
const t = [], n = this.overlay.elements.map((
|
2111
|
+
const t = [], n = this.overlay.elements.map((i) => (t.push(i.id), i.id || (i.id = `${this.overlay.tagName.toLowerCase()}-helper-${It()}`), i.id));
|
2045
2112
|
this.elementIds = t;
|
2046
|
-
const
|
2113
|
+
const o = Nt(
|
2047
2114
|
this.target,
|
2048
2115
|
"aria-describedby",
|
2049
2116
|
n
|
2050
2117
|
);
|
2051
2118
|
this.releaseDescription = () => {
|
2052
|
-
|
2053
|
-
|
2054
|
-
}), this.releaseDescription =
|
2119
|
+
o(), this.overlay.elements.map((i, s) => {
|
2120
|
+
i.id = this.elementIds[s];
|
2121
|
+
}), this.releaseDescription = V;
|
2055
2122
|
};
|
2056
2123
|
}
|
2057
2124
|
doPointerleave() {
|
@@ -2059,26 +2126,26 @@ class Nn extends Xt {
|
|
2059
2126
|
const t = this.target;
|
2060
2127
|
this.focusedin && t.matches(":focus-visible") || (this.hoverTimeout = setTimeout(() => {
|
2061
2128
|
this.open = !1;
|
2062
|
-
},
|
2129
|
+
}, Mo));
|
2063
2130
|
}
|
2064
2131
|
init() {
|
2065
|
-
var
|
2066
|
-
(
|
2067
|
-
const { signal:
|
2132
|
+
var t;
|
2133
|
+
(t = this.abortController) == null || t.abort(), this.abortController = new AbortController();
|
2134
|
+
const { signal: n } = this.abortController;
|
2068
2135
|
this.target.addEventListener("focusin", () => this.handleTargetFocusin(), {
|
2069
|
-
signal:
|
2136
|
+
signal: n
|
2070
2137
|
}), this.target.addEventListener(
|
2071
2138
|
"focusout",
|
2072
2139
|
() => this.handleTargetFocusout(),
|
2073
|
-
{ signal:
|
2140
|
+
{ signal: n }
|
2074
2141
|
), this.target.addEventListener(
|
2075
2142
|
"pointerenter",
|
2076
2143
|
() => this.handleTargetPointerenter(),
|
2077
|
-
{ signal:
|
2144
|
+
{ signal: n }
|
2078
2145
|
), this.target.addEventListener(
|
2079
2146
|
"pointerleave",
|
2080
2147
|
() => this.handleTargetPointerleave(),
|
2081
|
-
{ signal:
|
2148
|
+
{ signal: n }
|
2082
2149
|
), this.overlay && this.initOverlay();
|
2083
2150
|
}
|
2084
2151
|
initOverlay() {
|
@@ -2096,14 +2163,14 @@ class Nn extends Xt {
|
|
2096
2163
|
);
|
2097
2164
|
}
|
2098
2165
|
}
|
2099
|
-
const
|
2166
|
+
const Wo = 300, oe = {
|
2100
2167
|
touch: "Double tap and long press for additional options",
|
2101
2168
|
keyboard: "Press Space or Alt+Down Arrow for additional options",
|
2102
2169
|
mouse: "Click and hold for additional options"
|
2103
2170
|
};
|
2104
|
-
class
|
2171
|
+
class ne extends bt {
|
2105
2172
|
constructor() {
|
2106
|
-
super(...arguments), this.type =
|
2173
|
+
super(...arguments), this.type = nt.longpress, this.longpressState = null, this.releaseDescription = V, this.handlePointerup = () => {
|
2107
2174
|
var t;
|
2108
2175
|
clearTimeout(this.timeout), this.target && (this.longpressState = ((t = this.overlay) == null ? void 0 : t.state) === "opening" ? "pressed" : null, document.removeEventListener("pointerup", this.handlePointerup), document.removeEventListener("pointercancel", this.handlePointerup));
|
2109
2176
|
};
|
@@ -2125,15 +2192,15 @@ class Hn extends Xt {
|
|
2125
2192
|
}
|
2126
2193
|
})
|
2127
2194
|
);
|
2128
|
-
},
|
2195
|
+
}, Wo));
|
2129
2196
|
}
|
2130
2197
|
handleKeydown(t) {
|
2131
|
-
const { code: n, altKey:
|
2132
|
-
|
2198
|
+
const { code: n, altKey: o } = t;
|
2199
|
+
o && n === "ArrowDown" && (t.stopPropagation(), t.stopImmediatePropagation());
|
2133
2200
|
}
|
2134
2201
|
handleKeyup(t) {
|
2135
|
-
const { code: n, altKey:
|
2136
|
-
if (n === "Space" ||
|
2202
|
+
const { code: n, altKey: o } = t;
|
2203
|
+
if (n === "Space" || o && n === "ArrowDown") {
|
2137
2204
|
if (!this.target)
|
2138
2205
|
return;
|
2139
2206
|
t.stopPropagation(), this.target.dispatchEvent(
|
@@ -2152,90 +2219,90 @@ class Hn extends Xt {
|
|
2152
2219
|
prepareDescription(t) {
|
2153
2220
|
if (
|
2154
2221
|
// do not reapply until target is recycled
|
2155
|
-
this.releaseDescription !==
|
2222
|
+
this.releaseDescription !== V || // require "longpress content" to apply relationship
|
2156
2223
|
this.overlay.elements.length === 0
|
2157
2224
|
)
|
2158
2225
|
return;
|
2159
2226
|
const n = document.createElement("div");
|
2160
|
-
n.id = `longpress-describedby-descriptor-${
|
2161
|
-
const
|
2162
|
-
n.textContent =
|
2163
|
-
const
|
2164
|
-
|
2165
|
-
const
|
2227
|
+
n.id = `longpress-describedby-descriptor-${It()}`;
|
2228
|
+
const o = _e() || Ie() ? "touch" : "keyboard";
|
2229
|
+
n.textContent = oe[o], n.slot = "longpress-describedby-descriptor";
|
2230
|
+
const i = t.getRootNode(), s = this.overlay.getRootNode();
|
2231
|
+
i === s ? this.overlay.append(n) : (n.hidden = !("host" in i), t.after(n));
|
2232
|
+
const l = Nt(
|
2166
2233
|
t,
|
2167
2234
|
"aria-describedby",
|
2168
2235
|
[n.id]
|
2169
2236
|
);
|
2170
2237
|
this.releaseDescription = () => {
|
2171
|
-
|
2238
|
+
l(), n.remove(), this.releaseDescription = V;
|
2172
2239
|
};
|
2173
2240
|
}
|
2174
2241
|
shouldCompleteOpen() {
|
2175
2242
|
this.longpressState = this.longpressState === "pressed" ? null : this.longpressState;
|
2176
2243
|
}
|
2177
2244
|
init() {
|
2178
|
-
var
|
2179
|
-
(
|
2180
|
-
const { signal:
|
2245
|
+
var t;
|
2246
|
+
(t = this.abortController) == null || t.abort(), this.abortController = new AbortController();
|
2247
|
+
const { signal: n } = this.abortController;
|
2181
2248
|
this.target.addEventListener("longpress", () => this.handleLongpress(), {
|
2182
|
-
signal:
|
2249
|
+
signal: n
|
2183
2250
|
}), this.target.addEventListener(
|
2184
2251
|
"pointerdown",
|
2185
|
-
(
|
2186
|
-
{ signal:
|
2252
|
+
(o) => this.handlePointerdown(o),
|
2253
|
+
{ signal: n }
|
2187
2254
|
), this.prepareDescription(this.target), !this.target.holdAffordance && (this.target.addEventListener(
|
2188
2255
|
"keydown",
|
2189
|
-
(
|
2190
|
-
{ signal:
|
2256
|
+
(o) => this.handleKeydown(o),
|
2257
|
+
{ signal: n }
|
2191
2258
|
), this.target.addEventListener(
|
2192
2259
|
"keyup",
|
2193
|
-
(
|
2194
|
-
{ signal:
|
2260
|
+
(o) => this.handleKeyup(o),
|
2261
|
+
{ signal: n }
|
2195
2262
|
));
|
2196
2263
|
}
|
2197
2264
|
}
|
2198
|
-
const
|
2199
|
-
click:
|
2200
|
-
longpress:
|
2201
|
-
hover:
|
2265
|
+
const ie = {
|
2266
|
+
click: te,
|
2267
|
+
longpress: ne,
|
2268
|
+
hover: ee
|
2202
2269
|
};
|
2203
|
-
var
|
2204
|
-
for (var
|
2205
|
-
(
|
2206
|
-
return
|
2270
|
+
var Uo = Object.defineProperty, jo = Object.getOwnPropertyDescriptor, P = (e, t, n, o) => {
|
2271
|
+
for (var i = o > 1 ? void 0 : o ? jo(t, n) : t, s = e.length - 1, l; s >= 0; s--)
|
2272
|
+
(l = e[s]) && (i = (o ? l(t, n, i) : l(i)) || i);
|
2273
|
+
return o && i && Uo(t, n, i), i;
|
2207
2274
|
};
|
2208
|
-
const
|
2209
|
-
let
|
2210
|
-
|
2211
|
-
var
|
2212
|
-
const
|
2275
|
+
const Vo = "showPopover" in document.createElement("div");
|
2276
|
+
let Ct = Ge(J);
|
2277
|
+
Ct = Vo ? Qe(Ct) : Je(Ct);
|
2278
|
+
var st;
|
2279
|
+
const z = (st = class extends Ct {
|
2213
2280
|
constructor() {
|
2214
|
-
super(...arguments), this._delayed = !1, this._disabled = !1, this.offset = 0, this._open = !1, this.lastRequestSlottableState = !1, this.receivesFocus = "auto", this._state = "closed", this.triggerElement = null, this.type = "auto", this.wasOpen = !1, this.closeOnFocusOut = (
|
2215
|
-
if (!
|
2281
|
+
super(...arguments), this._delayed = !1, this._disabled = !1, this.offset = 0, this._open = !1, this.lastRequestSlottableState = !1, this.receivesFocus = "auto", this._state = "closed", this.triggerElement = null, this.type = "auto", this.wasOpen = !1, this.closeOnFocusOut = (e) => {
|
2282
|
+
if (!e.relatedTarget)
|
2216
2283
|
return;
|
2217
|
-
const
|
2284
|
+
const t = new Event("overlay-relation-query", {
|
2218
2285
|
bubbles: !0,
|
2219
2286
|
composed: !0
|
2220
2287
|
});
|
2221
|
-
|
2222
|
-
|
2223
|
-
}),
|
2288
|
+
e.relatedTarget.addEventListener(t.type, (n) => {
|
2289
|
+
n.composedPath().includes(this) || (this.open = !1);
|
2290
|
+
}), e.relatedTarget.dispatchEvent(t);
|
2224
2291
|
};
|
2225
2292
|
}
|
2226
2293
|
get delayed() {
|
2227
|
-
var
|
2228
|
-
return ((
|
2294
|
+
var e;
|
2295
|
+
return ((e = this.elements.at(-1)) == null ? void 0 : e.hasAttribute("delayed")) || this._delayed;
|
2229
2296
|
}
|
2230
|
-
set delayed(
|
2231
|
-
this._delayed =
|
2297
|
+
set delayed(e) {
|
2298
|
+
this._delayed = e;
|
2232
2299
|
}
|
2233
2300
|
get disabled() {
|
2234
2301
|
return this._disabled;
|
2235
2302
|
}
|
2236
|
-
set disabled(
|
2237
|
-
var
|
2238
|
-
this._disabled =
|
2303
|
+
set disabled(e) {
|
2304
|
+
var t;
|
2305
|
+
this._disabled = e, e ? ((t = this.strategy) == null || t.abort(), this.wasOpen = this.open, this.open = !1) : (this.bindEvents(), this.open = this.open || this.wasOpen, this.wasOpen = !1);
|
2239
2306
|
}
|
2240
2307
|
/**
|
2241
2308
|
* Determines if the overlay has a non-virtual trigger element.
|
@@ -2243,7 +2310,7 @@ const P = (j = class extends Et {
|
|
2243
2310
|
* @returns `true` if the trigger element is not a virtual trigger, otherwise `false`.
|
2244
2311
|
*/
|
2245
2312
|
get hasNonVirtualTrigger() {
|
2246
|
-
return !!this.triggerElement && !(this.triggerElement instanceof
|
2313
|
+
return !!this.triggerElement && !(this.triggerElement instanceof ct);
|
2247
2314
|
}
|
2248
2315
|
/**
|
2249
2316
|
* Provides an instance of the `PlacementController` for managing the positioning
|
@@ -2256,24 +2323,24 @@ const P = (j = class extends Et {
|
|
2256
2323
|
* @returns The `PlacementController` instance.
|
2257
2324
|
*/
|
2258
2325
|
get placementController() {
|
2259
|
-
return this._placementController || (this._placementController = new
|
2326
|
+
return this._placementController || (this._placementController = new Qt(this)), this._placementController;
|
2260
2327
|
}
|
2261
2328
|
get open() {
|
2262
2329
|
return this._open;
|
2263
2330
|
}
|
2264
|
-
set open(
|
2265
|
-
var
|
2266
|
-
|
2331
|
+
set open(e) {
|
2332
|
+
var t;
|
2333
|
+
e && this.disabled || e !== this.open && ((t = this.strategy) != null && t.activelyOpening && !e || (this._open = e, this.open && (st.openCount += 1), this.requestUpdate("open", !this.open), this.open && this.requestSlottable()));
|
2267
2334
|
}
|
2268
2335
|
get state() {
|
2269
2336
|
return this._state;
|
2270
2337
|
}
|
2271
|
-
set state(
|
2272
|
-
var
|
2273
|
-
if (
|
2338
|
+
set state(e) {
|
2339
|
+
var t;
|
2340
|
+
if (e === this.state)
|
2274
2341
|
return;
|
2275
2342
|
const n = this.state;
|
2276
|
-
this._state =
|
2343
|
+
this._state = e, (this.state === "opened" || this.state === "closed") && ((t = this.strategy) == null || t.shouldCompleteOpen()), this.requestUpdate("state", n);
|
2277
2344
|
}
|
2278
2345
|
/**
|
2279
2346
|
* Provides an instance of the `ElementResolutionController` for managing the element
|
@@ -2284,7 +2351,7 @@ const P = (j = class extends Et {
|
|
2284
2351
|
* @returns The `ElementResolutionController` instance.
|
2285
2352
|
*/
|
2286
2353
|
get elementResolver() {
|
2287
|
-
return this._elementResolver || (this._elementResolver = new
|
2354
|
+
return this._elementResolver || (this._elementResolver = new He(this)), this._elementResolver;
|
2288
2355
|
}
|
2289
2356
|
/**
|
2290
2357
|
* Determines if the overlay uses a dialog.
|
@@ -2336,12 +2403,12 @@ const P = (j = class extends Et {
|
|
2336
2403
|
managePosition() {
|
2337
2404
|
if (!this.requiresPositioning || !this.open)
|
2338
2405
|
return;
|
2339
|
-
const
|
2406
|
+
const e = this.offset || 0, t = this.triggerElement, n = this.placement || "right", o = this.tipPadding;
|
2340
2407
|
this.placementController.placeOverlay(this.dialogEl, {
|
2341
|
-
offset:
|
2342
|
-
placement:
|
2408
|
+
offset: e,
|
2409
|
+
placement: n,
|
2343
2410
|
tipPadding: o,
|
2344
|
-
trigger:
|
2411
|
+
trigger: t,
|
2345
2412
|
type: this.type
|
2346
2413
|
});
|
2347
2414
|
}
|
@@ -2357,11 +2424,11 @@ const P = (j = class extends Et {
|
|
2357
2424
|
*/
|
2358
2425
|
async managePopoverOpen() {
|
2359
2426
|
super.managePopoverOpen();
|
2360
|
-
const
|
2361
|
-
if (this.open !==
|
2427
|
+
const e = this.open;
|
2428
|
+
if (this.open !== e || (await this.manageDelay(e), this.open !== e) || (await this.ensureOnDOM(e), this.open !== e))
|
2362
2429
|
return;
|
2363
|
-
const
|
2364
|
-
this.open ===
|
2430
|
+
const t = await this.makeTransition(e);
|
2431
|
+
this.open === e && await this.applyFocus(e, t);
|
2365
2432
|
}
|
2366
2433
|
/**
|
2367
2434
|
* Applies focus to the appropriate element after the popover has been opened.
|
@@ -2375,13 +2442,13 @@ const P = (j = class extends Et {
|
|
2375
2442
|
* @param focusEl - The element to focus after opening the popover.
|
2376
2443
|
* @returns A promise that resolves when the focus has been applied.
|
2377
2444
|
*/
|
2378
|
-
async applyFocus(
|
2445
|
+
async applyFocus(e, t) {
|
2379
2446
|
if (!(this.receivesFocus === "false" || this.type === "hint")) {
|
2380
|
-
if (await
|
2447
|
+
if (await T(), await T(), e === this.open && !this.open) {
|
2381
2448
|
this.hasNonVirtualTrigger && this.contains(this.getRootNode().activeElement) && this.triggerElement.focus();
|
2382
2449
|
return;
|
2383
2450
|
}
|
2384
|
-
|
2451
|
+
t == null || t.focus();
|
2385
2452
|
}
|
2386
2453
|
}
|
2387
2454
|
/**
|
@@ -2394,22 +2461,22 @@ const P = (j = class extends Et {
|
|
2394
2461
|
* @override
|
2395
2462
|
*/
|
2396
2463
|
returnFocus() {
|
2397
|
-
var
|
2464
|
+
var e;
|
2398
2465
|
if (this.open || this.type === "hint")
|
2399
2466
|
return;
|
2400
2467
|
const t = () => {
|
2401
|
-
var
|
2468
|
+
var n, o;
|
2402
2469
|
const i = [];
|
2403
|
-
let
|
2404
|
-
for (; (
|
2405
|
-
|
2406
|
-
for (;
|
2407
|
-
const l =
|
2408
|
-
l && i.push(l),
|
2470
|
+
let s = document.activeElement;
|
2471
|
+
for (; (n = s == null ? void 0 : s.shadowRoot) != null && n.activeElement; )
|
2472
|
+
s = s.shadowRoot.activeElement;
|
2473
|
+
for (; s; ) {
|
2474
|
+
const l = s.assignedSlot || s.parentElement || ((o = s.getRootNode()) == null ? void 0 : o.host);
|
2475
|
+
l && i.push(l), s = l;
|
2409
2476
|
}
|
2410
2477
|
return i;
|
2411
2478
|
};
|
2412
|
-
this.receivesFocus !== "false" && (
|
2479
|
+
this.receivesFocus !== "false" && (e = this.triggerElement) != null && e.focus && (this.contains(this.getRootNode().activeElement) || t().includes(this) || document.activeElement === document.body) && this.triggerElement.focus();
|
2413
2480
|
}
|
2414
2481
|
/**
|
2415
2482
|
* Manages the process of opening or closing the overlay.
|
@@ -2421,18 +2488,18 @@ const P = (j = class extends Et {
|
|
2421
2488
|
* @param oldOpen - The previous open state of the overlay.
|
2422
2489
|
* @returns A promise that resolves when the overlay has been fully managed.
|
2423
2490
|
*/
|
2424
|
-
async manageOpen(
|
2425
|
-
if (!(!this.isConnected && this.open) && (this.hasUpdated || await this.updateComplete, this.open ? (
|
2491
|
+
async manageOpen(e) {
|
2492
|
+
if (!(!this.isConnected && this.open) && (this.hasUpdated || await this.updateComplete, this.open ? (ae.add(this), this.willPreventClose && (document.addEventListener(
|
2426
2493
|
"pointerup",
|
2427
2494
|
() => {
|
2428
2495
|
this.dialogEl.classList.toggle("not-immediately-closable", !1), this.willPreventClose = !1;
|
2429
2496
|
},
|
2430
2497
|
{ once: !0 }
|
2431
|
-
), this.dialogEl.classList.toggle("not-immediately-closable", !0))) : (
|
2432
|
-
const
|
2433
|
-
this.open ?
|
2498
|
+
), this.dialogEl.classList.toggle("not-immediately-closable", !0))) : (e && this.dispose(), ae.remove(this)), this.open && this.state !== "opened" ? this.state = "opening" : !this.open && this.state !== "closed" && (this.state = "closing"), this.usesDialog ? this.manageDialogOpen() : this.managePopoverOpen(), this.type === "auto")) {
|
2499
|
+
const t = this.getRootNode();
|
2500
|
+
this.open ? t.addEventListener("focusout", this.closeOnFocusOut, {
|
2434
2501
|
capture: !0
|
2435
|
-
}) :
|
2502
|
+
}) : t.removeEventListener("focusout", this.closeOnFocusOut, {
|
2436
2503
|
capture: !0
|
2437
2504
|
});
|
2438
2505
|
}
|
@@ -2446,8 +2513,8 @@ const P = (j = class extends Et {
|
|
2446
2513
|
* @protected
|
2447
2514
|
*/
|
2448
2515
|
bindEvents() {
|
2449
|
-
var
|
2450
|
-
(
|
2516
|
+
var e;
|
2517
|
+
(e = this.strategy) == null || e.abort(), this.strategy = void 0, this.hasNonVirtualTrigger && this.triggerInteraction && (this.strategy = new ie[this.triggerInteraction](
|
2451
2518
|
this.triggerElement,
|
2452
2519
|
{
|
2453
2520
|
overlay: this
|
@@ -2463,8 +2530,8 @@ const P = (j = class extends Et {
|
|
2463
2530
|
* @protected
|
2464
2531
|
* @param event - The `beforetoggle` event with the new state.
|
2465
2532
|
*/
|
2466
|
-
handleBeforetoggle(
|
2467
|
-
|
2533
|
+
handleBeforetoggle(e) {
|
2534
|
+
e.newState !== "open" && this.handleBrowserClose(e);
|
2468
2535
|
}
|
2469
2536
|
/**
|
2470
2537
|
* Handles the browser's close event to manage the overlay's state.
|
@@ -2475,9 +2542,9 @@ const P = (j = class extends Et {
|
|
2475
2542
|
* @protected
|
2476
2543
|
* @param event - The browser's close event.
|
2477
2544
|
*/
|
2478
|
-
handleBrowserClose(
|
2479
|
-
var
|
2480
|
-
if (
|
2545
|
+
handleBrowserClose(e) {
|
2546
|
+
var t;
|
2547
|
+
if (e.stopPropagation(), !((t = this.strategy) != null && t.activelyOpening)) {
|
2481
2548
|
this.open = !1;
|
2482
2549
|
return;
|
2483
2550
|
}
|
@@ -2504,8 +2571,8 @@ const P = (j = class extends Et {
|
|
2504
2571
|
* @protected
|
2505
2572
|
*/
|
2506
2573
|
handleSlotchange() {
|
2507
|
-
var
|
2508
|
-
this.elements.length === 0 ? (
|
2574
|
+
var e, t;
|
2575
|
+
this.elements.length === 0 ? (e = this.strategy) == null || e.releaseDescription() : this.hasNonVirtualTrigger && ((t = this.strategy) == null || t.prepareDescription(this.triggerElement));
|
2509
2576
|
}
|
2510
2577
|
/**
|
2511
2578
|
* Determines whether the overlay should prevent closing.
|
@@ -2517,8 +2584,8 @@ const P = (j = class extends Et {
|
|
2517
2584
|
* @returns `true` if the overlay should prevent closing, otherwise `false`.
|
2518
2585
|
*/
|
2519
2586
|
shouldPreventClose() {
|
2520
|
-
const
|
2521
|
-
return this.willPreventClose = !1,
|
2587
|
+
const e = this.willPreventClose;
|
2588
|
+
return this.willPreventClose = !1, e;
|
2522
2589
|
}
|
2523
2590
|
/**
|
2524
2591
|
* Requests slottable content for the overlay.
|
@@ -2532,9 +2599,9 @@ const P = (j = class extends Et {
|
|
2532
2599
|
*/
|
2533
2600
|
requestSlottable() {
|
2534
2601
|
this.lastRequestSlottableState !== this.open && (this.open || document.body.offsetHeight, this.dispatchEvent(
|
2535
|
-
new
|
2602
|
+
new we(
|
2536
2603
|
"overlay-content",
|
2537
|
-
this.open ? {} :
|
2604
|
+
this.open ? {} : St
|
2538
2605
|
)
|
2539
2606
|
), this.lastRequestSlottableState = this.open);
|
2540
2607
|
}
|
@@ -2547,14 +2614,14 @@ const P = (j = class extends Et {
|
|
2547
2614
|
* @override
|
2548
2615
|
* @param changes - The properties that have changed.
|
2549
2616
|
*/
|
2550
|
-
willUpdate(
|
2551
|
-
var
|
2552
|
-
if (this.hasAttribute("id") || this.setAttribute("id", `${this.tagName.toLowerCase()}-${
|
2553
|
-
const [o,
|
2554
|
-
this.elementResolver.selector = o ? `#${o}` : "", this.triggerInteraction =
|
2617
|
+
willUpdate(e) {
|
2618
|
+
var t;
|
2619
|
+
if (this.hasAttribute("id") || this.setAttribute("id", `${this.tagName.toLowerCase()}-${It()}`), e.has("open") && (this.hasUpdated || this.open) && this.manageOpen(e.get("open")), e.has("trigger")) {
|
2620
|
+
const [o, i] = ((t = this.trigger) == null ? void 0 : t.split("@")) || [];
|
2621
|
+
this.elementResolver.selector = o ? `#${o}` : "", this.triggerInteraction = i;
|
2555
2622
|
}
|
2556
2623
|
let n = !1;
|
2557
|
-
|
2624
|
+
e.has(Be) && (n = this.triggerElement, this.triggerElement = this.elementResolver.element), e.has("triggerElement") && (n = e.get("triggerElement")), n !== !1 && this.bindEvents();
|
2558
2625
|
}
|
2559
2626
|
/**
|
2560
2627
|
* Lifecycle method called after the component updates.
|
@@ -2565,8 +2632,8 @@ const P = (j = class extends Et {
|
|
2565
2632
|
* @override
|
2566
2633
|
* @param changes - The properties that have changed.
|
2567
2634
|
*/
|
2568
|
-
updated(
|
2569
|
-
super.updated(
|
2635
|
+
updated(e) {
|
2636
|
+
super.updated(e), e.has("placement") && (this.placement ? this.dialogEl.setAttribute("actual-placement", this.placement) : this.dialogEl.removeAttribute("actual-placement"), this.open && e.get("placement") !== void 0 && this.placementController.resetOverlayPosition()), e.has("state") && this.state === "closed" && e.get("state") !== void 0 && this.placementController.clearOverlayPosition();
|
2570
2637
|
}
|
2571
2638
|
/**
|
2572
2639
|
* Renders the content of the overlay.
|
@@ -2578,7 +2645,7 @@ const P = (j = class extends Et {
|
|
2578
2645
|
* @returns The template result containing the slot element.
|
2579
2646
|
*/
|
2580
2647
|
renderContent() {
|
2581
|
-
return
|
2648
|
+
return A` <slot @slotchange=${this.handleSlotchange}></slot> `;
|
2582
2649
|
}
|
2583
2650
|
/**
|
2584
2651
|
* Generates a style map for the dialog element.
|
@@ -2591,7 +2658,7 @@ const P = (j = class extends Et {
|
|
2591
2658
|
*/
|
2592
2659
|
get dialogStyleMap() {
|
2593
2660
|
return {
|
2594
|
-
"--luzmo-overlay-open-count":
|
2661
|
+
"--luzmo-overlay-open-count": st.openCount.toString()
|
2595
2662
|
};
|
2596
2663
|
}
|
2597
2664
|
/**
|
@@ -2604,14 +2671,14 @@ const P = (j = class extends Et {
|
|
2604
2671
|
* @returns The template result containing the dialog element.
|
2605
2672
|
*/
|
2606
2673
|
renderDialog() {
|
2607
|
-
return
|
2674
|
+
return A`
|
2608
2675
|
<dialog
|
2609
2676
|
class="dialog"
|
2610
2677
|
part="dialog"
|
2611
|
-
placement=${
|
2678
|
+
placement=${$t(
|
2612
2679
|
this.requiresPositioning ? this.placement || "right" : void 0
|
2613
2680
|
)}
|
2614
|
-
style=${
|
2681
|
+
style=${re(this.dialogStyleMap)}
|
2615
2682
|
@close=${this.handleBrowserClose}
|
2616
2683
|
@cancel=${this.handleBrowserClose}
|
2617
2684
|
@beforetoggle=${this.handleBeforetoggle}
|
@@ -2631,15 +2698,15 @@ const P = (j = class extends Et {
|
|
2631
2698
|
* @returns The template result containing the popover element.
|
2632
2699
|
*/
|
2633
2700
|
renderPopover() {
|
2634
|
-
return
|
2701
|
+
return A`
|
2635
2702
|
<div
|
2636
2703
|
class="dialog"
|
2637
2704
|
part="dialog"
|
2638
|
-
placement=${
|
2705
|
+
placement=${$t(
|
2639
2706
|
this.requiresPositioning ? this.placement || "right" : void 0
|
2640
2707
|
)}
|
2641
|
-
popover=${
|
2642
|
-
style=${
|
2708
|
+
popover=${$t(this.popoverValue)}
|
2709
|
+
style=${re(this.dialogStyleMap)}
|
2643
2710
|
@beforetoggle=${this.handleBeforetoggle}
|
2644
2711
|
@close=${this.handleBrowserClose}
|
2645
2712
|
?is-visible=${this.state !== "closed"}
|
@@ -2658,9 +2725,9 @@ const P = (j = class extends Et {
|
|
2658
2725
|
* @returns The template result containing the overlay content.
|
2659
2726
|
*/
|
2660
2727
|
render() {
|
2661
|
-
const
|
2662
|
-
return
|
2663
|
-
${
|
2728
|
+
const e = this.type === "modal" || this.type === "page";
|
2729
|
+
return A`
|
2730
|
+
${e ? this.renderDialog() : this.renderPopover()}
|
2664
2731
|
<slot name="longpress-describedby-descriptor"></slot>
|
2665
2732
|
`;
|
2666
2733
|
}
|
@@ -2684,74 +2751,118 @@ const P = (j = class extends Et {
|
|
2684
2751
|
* @override
|
2685
2752
|
*/
|
2686
2753
|
disconnectedCallback() {
|
2687
|
-
var
|
2688
|
-
(
|
2754
|
+
var e;
|
2755
|
+
(e = this.strategy) == null || e.releaseDescription(), this.open = !1, super.disconnectedCallback();
|
2689
2756
|
}
|
2690
|
-
},
|
2691
|
-
|
2757
|
+
}, st.styles = [fe(oo)], st.openCount = 1, st);
|
2758
|
+
P([
|
2692
2759
|
x({ type: Boolean })
|
2693
|
-
],
|
2694
|
-
|
2695
|
-
|
2696
|
-
],
|
2697
|
-
|
2760
|
+
], z.prototype, "delayed", 1);
|
2761
|
+
P([
|
2762
|
+
gt(".dialog")
|
2763
|
+
], z.prototype, "dialogEl", 2);
|
2764
|
+
P([
|
2698
2765
|
x({ type: Boolean })
|
2699
|
-
],
|
2700
|
-
|
2701
|
-
|
2766
|
+
], z.prototype, "disabled", 1);
|
2767
|
+
P([
|
2768
|
+
Ue({
|
2702
2769
|
flatten: !0,
|
2703
2770
|
selector: ':not([slot="longpress-describedby-descriptor"], slot)'
|
2704
2771
|
})
|
2705
|
-
],
|
2706
|
-
|
2772
|
+
], z.prototype, "elements", 2);
|
2773
|
+
P([
|
2707
2774
|
x({ type: Number })
|
2708
|
-
],
|
2709
|
-
|
2775
|
+
], z.prototype, "offset", 2);
|
2776
|
+
P([
|
2710
2777
|
x({ type: Boolean, reflect: !0 })
|
2711
|
-
],
|
2712
|
-
|
2778
|
+
], z.prototype, "open", 1);
|
2779
|
+
P([
|
2713
2780
|
x()
|
2714
|
-
],
|
2715
|
-
|
2781
|
+
], z.prototype, "placement", 2);
|
2782
|
+
P([
|
2716
2783
|
x({ attribute: "receives-focus" })
|
2717
|
-
],
|
2718
|
-
|
2719
|
-
|
2720
|
-
],
|
2721
|
-
|
2722
|
-
|
2723
|
-
],
|
2724
|
-
|
2784
|
+
], z.prototype, "receivesFocus", 2);
|
2785
|
+
P([
|
2786
|
+
gt("slot")
|
2787
|
+
], z.prototype, "slotEl", 2);
|
2788
|
+
P([
|
2789
|
+
mt()
|
2790
|
+
], z.prototype, "state", 1);
|
2791
|
+
P([
|
2725
2792
|
x({ type: Number, attribute: "tip-padding" })
|
2726
|
-
],
|
2727
|
-
|
2793
|
+
], z.prototype, "tipPadding", 2);
|
2794
|
+
P([
|
2728
2795
|
x()
|
2729
|
-
],
|
2730
|
-
|
2796
|
+
], z.prototype, "trigger", 2);
|
2797
|
+
P([
|
2731
2798
|
x({ attribute: !1 })
|
2732
|
-
],
|
2733
|
-
|
2799
|
+
], z.prototype, "triggerElement", 2);
|
2800
|
+
P([
|
2734
2801
|
x({ attribute: !1 })
|
2735
|
-
],
|
2736
|
-
|
2802
|
+
], z.prototype, "triggerInteraction", 2);
|
2803
|
+
P([
|
2737
2804
|
x()
|
2738
|
-
],
|
2739
|
-
let
|
2740
|
-
const
|
2805
|
+
], z.prototype, "type", 2);
|
2806
|
+
let wt = z;
|
2807
|
+
const kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
2808
|
+
__proto__: null,
|
2809
|
+
LuzmoOverlay: wt
|
2810
|
+
}, Symbol.toStringTag, { value: "Module" })), Ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
2741
2811
|
__proto__: null,
|
2742
|
-
|
2743
|
-
|
2744
|
-
|
2745
|
-
|
2746
|
-
|
2747
|
-
|
2812
|
+
C: te,
|
2813
|
+
H: ee,
|
2814
|
+
I: nt,
|
2815
|
+
L: J,
|
2816
|
+
P: Qt,
|
2817
|
+
V: ct,
|
2818
|
+
a: T,
|
2819
|
+
b: bt,
|
2820
|
+
c: oe,
|
2821
|
+
d: ne,
|
2822
|
+
e: wt,
|
2823
|
+
f: kt,
|
2824
|
+
g: vt,
|
2825
|
+
n: V,
|
2826
|
+
o: lt,
|
2827
|
+
p: Re,
|
2828
|
+
s: ie
|
2829
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
2830
|
+
/*! * Lucero - The design system for Luzmo.
|
2831
|
+
*
|
2832
|
+
* Copyright © 2025 Luzmo
|
2833
|
+
* All rights reserved.
|
2834
|
+
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
2835
|
+
* This license allows users with a current active Luzmo account to use Lucero.
|
2836
|
+
* This license terminates automatically if a user no longer has an active Luzmo account.
|
2837
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
2838
|
+
*
|
2839
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
2840
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
2841
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
2842
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
2843
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
2844
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
2845
|
+
* SOFTWARE.
|
2846
|
+
* */
|
2847
|
+
const Ko = () => {
|
2848
|
+
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
2849
|
+
const e = document.createElement("style");
|
2850
|
+
e.setAttribute("data-luzmo-vars", ""), e.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(e);
|
2851
|
+
}
|
2852
|
+
};
|
2853
|
+
Ko();
|
2854
|
+
const Xo = ":host([disabled]) ::slotted([slot=trigger]){pointer-events:none}slot[name=longpress-describedby-descriptor]{display:none}";
|
2855
|
+
var Yo = Object.defineProperty, k = (e, t, n, o) => {
|
2856
|
+
for (var i = void 0, s = e.length - 1, l; s >= 0; s--)
|
2857
|
+
(l = e[s]) && (i = l(t, n, i) || i);
|
2858
|
+
return i && Yo(t, n, i), i;
|
2748
2859
|
};
|
2749
|
-
class
|
2860
|
+
class C extends ge {
|
2750
2861
|
constructor() {
|
2751
2862
|
super(...arguments), this.content = "click hover longpress", this.offset = 6, this.disabled = !1, this.receivesFocus = "auto", this.clickContent = [], this.longpressContent = [], this.hoverContent = [], this.targetContent = [];
|
2752
2863
|
}
|
2753
2864
|
static get styles() {
|
2754
|
-
return [
|
2865
|
+
return [fe(Xo)];
|
2755
2866
|
}
|
2756
2867
|
getAssignedElementsFromSlot(t) {
|
2757
2868
|
return t.assignedElements({ flatten: !0 });
|
@@ -2777,30 +2888,30 @@ class O extends le {
|
|
2777
2888
|
}
|
2778
2889
|
handleBeforetoggle(t) {
|
2779
2890
|
const { target: n } = t;
|
2780
|
-
let
|
2891
|
+
let o;
|
2781
2892
|
if (n === this.clickOverlayElement)
|
2782
|
-
|
2893
|
+
o = "click";
|
2783
2894
|
else if (n === this.longpressOverlayElement)
|
2784
|
-
|
2895
|
+
o = "longpress";
|
2785
2896
|
else if (n === this.hoverOverlayElement)
|
2786
|
-
|
2897
|
+
o = "hover";
|
2787
2898
|
else
|
2788
2899
|
return;
|
2789
|
-
t.newState === "open" ? this.open =
|
2900
|
+
t.newState === "open" ? this.open = o : this.open === o && (this.open = void 0);
|
2790
2901
|
}
|
2791
2902
|
update(t) {
|
2792
|
-
var n,
|
2793
|
-
t.has("clickContent") && (this.clickPlacement = ((n = this.clickContent[0]) == null ? void 0 : n.getAttribute("placement")) || ((
|
2903
|
+
var n, o, i, s, l, r;
|
2904
|
+
t.has("clickContent") && (this.clickPlacement = ((n = this.clickContent[0]) == null ? void 0 : n.getAttribute("placement")) || ((o = this.clickContent[0]) == null ? void 0 : o.getAttribute("direction")) || void 0), t.has("hoverContent") && (this.hoverPlacement = ((i = this.hoverContent[0]) == null ? void 0 : i.getAttribute("placement")) || ((s = this.hoverContent[0]) == null ? void 0 : s.getAttribute("direction")) || void 0), t.has("longpressContent") && (this.longpressPlacement = ((l = this.longpressContent[0]) == null ? void 0 : l.getAttribute("placement")) || ((r = this.longpressContent[0]) == null ? void 0 : r.getAttribute("direction")) || void 0), super.update(t);
|
2794
2905
|
}
|
2795
2906
|
renderSlot(t) {
|
2796
|
-
return
|
2907
|
+
return A`
|
2797
2908
|
<slot name=${t} @slotchange=${this.handleSlotContent}></slot>
|
2798
2909
|
`;
|
2799
2910
|
}
|
2800
2911
|
renderClickOverlay() {
|
2801
|
-
Promise.resolve().then(() =>
|
2912
|
+
Promise.resolve().then(() => Ft).then((n) => n.f);
|
2802
2913
|
const t = this.renderSlot("click-content");
|
2803
|
-
return this.clickContent.length === 0 ? t :
|
2914
|
+
return this.clickContent.length === 0 ? t : A`
|
2804
2915
|
<luzmo-overlay
|
2805
2916
|
id="click-overlay"
|
2806
2917
|
?disabled=${this.disabled || this.clickContent.length === 0}
|
@@ -2818,9 +2929,9 @@ class O extends le {
|
|
2818
2929
|
`;
|
2819
2930
|
}
|
2820
2931
|
renderHoverOverlay() {
|
2821
|
-
Promise.resolve().then(() =>
|
2932
|
+
Promise.resolve().then(() => Ft).then((n) => n.f);
|
2822
2933
|
const t = this.renderSlot("hover-content");
|
2823
|
-
return this.hoverContent.length === 0 ? t :
|
2934
|
+
return this.hoverContent.length === 0 ? t : A`
|
2824
2935
|
<luzmo-overlay
|
2825
2936
|
id="hover-overlay"
|
2826
2937
|
?open=${this.open === "hover" && this.hoverContent.length > 0}
|
@@ -2838,9 +2949,9 @@ class O extends le {
|
|
2838
2949
|
`;
|
2839
2950
|
}
|
2840
2951
|
renderLongpressOverlay() {
|
2841
|
-
Promise.resolve().then(() =>
|
2952
|
+
Promise.resolve().then(() => Ft).then((n) => n.f);
|
2842
2953
|
const t = this.renderSlot("longpress-content");
|
2843
|
-
return this.longpressContent.length === 0 ? t :
|
2954
|
+
return this.longpressContent.length === 0 ? t : A`
|
2844
2955
|
<luzmo-overlay
|
2845
2956
|
id="longpress-overlay"
|
2846
2957
|
?disabled=${this.disabled || this.longpressContent.length === 0}
|
@@ -2860,16 +2971,16 @@ class O extends le {
|
|
2860
2971
|
}
|
2861
2972
|
render() {
|
2862
2973
|
const t = this.content.split(" ");
|
2863
|
-
return
|
2974
|
+
return A`
|
2864
2975
|
<slot
|
2865
2976
|
id="trigger"
|
2866
2977
|
name="trigger"
|
2867
2978
|
@slotchange=${this.handleTriggerContent}
|
2868
2979
|
></slot>
|
2869
2980
|
${[
|
2870
|
-
t.includes("click") ? this.renderClickOverlay() :
|
2871
|
-
t.includes("hover") ? this.renderHoverOverlay() :
|
2872
|
-
t.includes("longpress") ? this.renderLongpressOverlay() :
|
2981
|
+
t.includes("click") ? this.renderClickOverlay() : A``,
|
2982
|
+
t.includes("hover") ? this.renderHoverOverlay() : A``,
|
2983
|
+
t.includes("longpress") ? this.renderLongpressOverlay() : A``
|
2873
2984
|
]}
|
2874
2985
|
`;
|
2875
2986
|
}
|
@@ -2883,60 +2994,60 @@ class O extends le {
|
|
2883
2994
|
return await super.getUpdateComplete();
|
2884
2995
|
}
|
2885
2996
|
}
|
2886
|
-
|
2997
|
+
k([
|
2887
2998
|
x()
|
2888
|
-
],
|
2889
|
-
|
2999
|
+
], C.prototype, "content");
|
3000
|
+
k([
|
2890
3001
|
x({ reflect: !0 })
|
2891
|
-
],
|
2892
|
-
|
3002
|
+
], C.prototype, "placement");
|
3003
|
+
k([
|
2893
3004
|
x()
|
2894
|
-
],
|
2895
|
-
|
3005
|
+
], C.prototype, "type");
|
3006
|
+
k([
|
2896
3007
|
x({ type: Number })
|
2897
|
-
],
|
2898
|
-
|
3008
|
+
], C.prototype, "offset");
|
3009
|
+
k([
|
2899
3010
|
x({ reflect: !0 })
|
2900
|
-
],
|
2901
|
-
|
3011
|
+
], C.prototype, "open");
|
3012
|
+
k([
|
2902
3013
|
x({ type: Boolean, reflect: !0 })
|
2903
|
-
],
|
2904
|
-
|
3014
|
+
], C.prototype, "disabled");
|
3015
|
+
k([
|
2905
3016
|
x({ attribute: "receives-focus" })
|
2906
|
-
],
|
2907
|
-
|
2908
|
-
|
2909
|
-
],
|
2910
|
-
|
2911
|
-
|
2912
|
-
],
|
2913
|
-
|
2914
|
-
|
2915
|
-
],
|
2916
|
-
|
2917
|
-
|
2918
|
-
],
|
2919
|
-
|
2920
|
-
|
2921
|
-
],
|
2922
|
-
|
2923
|
-
|
2924
|
-
],
|
2925
|
-
|
2926
|
-
|
2927
|
-
],
|
2928
|
-
function
|
2929
|
-
return
|
3017
|
+
], C.prototype, "receivesFocus");
|
3018
|
+
k([
|
3019
|
+
mt()
|
3020
|
+
], C.prototype, "clickContent");
|
3021
|
+
k([
|
3022
|
+
mt()
|
3023
|
+
], C.prototype, "longpressContent");
|
3024
|
+
k([
|
3025
|
+
mt()
|
3026
|
+
], C.prototype, "hoverContent");
|
3027
|
+
k([
|
3028
|
+
mt()
|
3029
|
+
], C.prototype, "targetContent");
|
3030
|
+
k([
|
3031
|
+
gt("#click-overlay", !0)
|
3032
|
+
], C.prototype, "clickOverlayElement");
|
3033
|
+
k([
|
3034
|
+
gt("#longpress-overlay", !0)
|
3035
|
+
], C.prototype, "longpressOverlayElement");
|
3036
|
+
k([
|
3037
|
+
gt("#hover-overlay", !0)
|
3038
|
+
], C.prototype, "hoverOverlayElement");
|
3039
|
+
function Go(e, t, n, o) {
|
3040
|
+
return wt.open(
|
2930
3041
|
e,
|
2931
3042
|
t,
|
2932
3043
|
n,
|
2933
|
-
|
3044
|
+
o
|
2934
3045
|
);
|
2935
3046
|
}
|
2936
|
-
class
|
3047
|
+
class se extends Me {
|
2937
3048
|
/* c8 ignore next 9 */
|
2938
3049
|
render(t) {
|
2939
|
-
return
|
3050
|
+
return ve;
|
2940
3051
|
}
|
2941
3052
|
update(t, [n]) {
|
2942
3053
|
this.template = n, this.target !== t.element && (this.target = t.element, this.renderBefore = this.target.children[0]), this.listenerHost = this.target, this.init();
|
@@ -2944,19 +3055,19 @@ class Kn extends $e {
|
|
2944
3055
|
handleSlottableRequest(t) {
|
2945
3056
|
if (t.target !== t.currentTarget)
|
2946
3057
|
return;
|
2947
|
-
const n = t.data ===
|
2948
|
-
|
3058
|
+
const n = t.data === St;
|
3059
|
+
ye(n ? void 0 : this.template(), this.target, {
|
2949
3060
|
renderBefore: this.renderBefore
|
2950
3061
|
});
|
2951
3062
|
}
|
2952
3063
|
init() {
|
2953
|
-
var
|
2954
|
-
(
|
2955
|
-
const { signal:
|
3064
|
+
var t;
|
3065
|
+
(t = this.listeners) == null || t.abort(), this.listeners = new AbortController();
|
3066
|
+
const { signal: n } = this.listeners;
|
2956
3067
|
this.listenerHost.addEventListener(
|
2957
3068
|
"slottable-request",
|
2958
|
-
(
|
2959
|
-
{ signal:
|
3069
|
+
(o) => this.handleSlottableRequest(o),
|
3070
|
+
{ signal: n }
|
2960
3071
|
);
|
2961
3072
|
}
|
2962
3073
|
disconnected() {
|
@@ -2968,7 +3079,8 @@ class Kn extends $e {
|
|
2968
3079
|
this.init();
|
2969
3080
|
}
|
2970
3081
|
}
|
2971
|
-
|
3082
|
+
const Jo = _t(se);
|
3083
|
+
class Ae extends se {
|
2972
3084
|
constructor() {
|
2973
3085
|
super(...arguments), this.defaultOptions = {
|
2974
3086
|
triggerInteraction: "click",
|
@@ -2982,67 +3094,78 @@ class Ce extends Kn {
|
|
2982
3094
|
}
|
2983
3095
|
/* c8 ignore next 9 */
|
2984
3096
|
render(t, n) {
|
2985
|
-
return
|
3097
|
+
return ve;
|
2986
3098
|
}
|
2987
|
-
update(t, [n,
|
2988
|
-
var
|
3099
|
+
update(t, [n, o]) {
|
3100
|
+
var i, s, l;
|
2989
3101
|
this.options = {
|
2990
3102
|
...this.defaultOptions.overlayOptions,
|
2991
|
-
...
|
2992
|
-
}, this.insertionOptions =
|
2993
|
-
let
|
2994
|
-
const
|
2995
|
-
this.target !== t.element && (this.target = t.element,
|
3103
|
+
...o == null ? void 0 : o.overlayOptions
|
3104
|
+
}, this.insertionOptions = o == null ? void 0 : o.insertionOptions, this.template = n, this.host = (i = t.options) == null ? void 0 : i.host;
|
3105
|
+
let r = !1;
|
3106
|
+
const a = (o == null ? void 0 : o.triggerInteraction) || this.defaultOptions.triggerInteraction, c = nt[(s = this.strategy) == null ? void 0 : s.type] !== a;
|
3107
|
+
this.target !== t.element && (this.target = t.element, r = !0), (r || c) && ((l = this.strategy) == null || l.abort(), this.strategy = new ie[a](this.target, {
|
2996
3108
|
isPersistent: !0,
|
2997
3109
|
handleOverlayReady: (h) => {
|
2998
3110
|
this.listenerHost = this.overlay = h, this.init();
|
2999
3111
|
}
|
3000
|
-
})), this.strategy.open = (
|
3112
|
+
})), this.strategy.open = (o == null ? void 0 : o.open) ?? !1;
|
3001
3113
|
}
|
3002
3114
|
handleSlottableRequest(t) {
|
3003
|
-
var
|
3115
|
+
var n, o;
|
3004
3116
|
if (t.target !== t.currentTarget)
|
3005
3117
|
return;
|
3006
|
-
const
|
3007
|
-
if (this.host && (
|
3008
|
-
|
3118
|
+
const i = t.data === St, s = {};
|
3119
|
+
if (this.host && (s.host = this.host), ye(
|
3120
|
+
i ? void 0 : this.template(),
|
3009
3121
|
this.overlay,
|
3010
|
-
|
3011
|
-
),
|
3122
|
+
s
|
3123
|
+
), i)
|
3012
3124
|
this.overlay.remove();
|
3013
3125
|
else {
|
3014
|
-
|
3126
|
+
J.applyOptions(this.overlay, {
|
3015
3127
|
...this.options,
|
3016
3128
|
trigger: this.target
|
3017
3129
|
});
|
3018
|
-
const
|
3019
|
-
|
3130
|
+
const l = typeof ((n = this.insertionOptions) == null ? void 0 : n.el) == "function" ? this.insertionOptions.el() : ((o = this.insertionOptions) == null ? void 0 : o.el) || this.target, { where: r = "afterend" } = this.insertionOptions || {};
|
3131
|
+
l.insertAdjacentElement(r, this.overlay);
|
3020
3132
|
}
|
3021
3133
|
}
|
3022
3134
|
}
|
3023
|
-
const
|
3024
|
-
customElements.get("luzmo-overlay") || customElements.define("luzmo-overlay",
|
3025
|
-
customElements.get("luzmo-overlay-trigger") || customElements.define("luzmo-overlay-trigger",
|
3026
|
-
const
|
3135
|
+
const Zo = _t(Ae);
|
3136
|
+
customElements.get("luzmo-overlay") || customElements.define("luzmo-overlay", wt);
|
3137
|
+
customElements.get("luzmo-overlay-trigger") || customElements.define("luzmo-overlay-trigger", C);
|
3138
|
+
const ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
3027
3139
|
__proto__: null,
|
3028
|
-
|
3029
|
-
|
3030
|
-
|
3031
|
-
|
3032
|
-
|
3033
|
-
|
3140
|
+
ClickController: te,
|
3141
|
+
HoverController: ee,
|
3142
|
+
InteractionController: bt,
|
3143
|
+
InteractionTypes: nt,
|
3144
|
+
LONGPRESS_INSTRUCTIONS: oe,
|
3145
|
+
LongpressController: ne,
|
3146
|
+
LuzmoAbstractOverlay: J,
|
3147
|
+
LuzmoOverlay: wt,
|
3148
|
+
LuzmoOverlayTrigger: C,
|
3149
|
+
OverlayTriggerDirective: Ae,
|
3150
|
+
PlacementController: Qt,
|
3151
|
+
SlottableRequestDirective: se,
|
3152
|
+
SlottableRequestEvent: we,
|
3153
|
+
VirtualTrigger: ct,
|
3154
|
+
guaranteedAllTransitionend: vt,
|
3155
|
+
nextFrame: T,
|
3156
|
+
noop: V,
|
3157
|
+
openOverlay: Go,
|
3158
|
+
overlayTimer: lt,
|
3159
|
+
placementUpdatedSymbol: Re,
|
3160
|
+
removeSlottableRequest: St,
|
3161
|
+
slottableRequest: Jo,
|
3162
|
+
trigger: Zo
|
3034
3163
|
}, Symbol.toStringTag, { value: "Module" }));
|
3035
3164
|
export {
|
3036
|
-
|
3037
|
-
|
3038
|
-
|
3039
|
-
|
3040
|
-
|
3041
|
-
|
3042
|
-
Ce as d,
|
3043
|
-
st as e,
|
3044
|
-
Zn as i,
|
3045
|
-
Jt as o,
|
3046
|
-
Nt as r,
|
3047
|
-
Yn as t
|
3165
|
+
St as a,
|
3166
|
+
Ft as b,
|
3167
|
+
Ue as d,
|
3168
|
+
ln as i,
|
3169
|
+
we as o,
|
3170
|
+
re as p
|
3048
3171
|
};
|