@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,49 +17,22 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
function
|
21
|
-
return e == null;
|
22
|
-
}
|
23
|
-
function je(e) {
|
24
|
-
return typeof e == "string" || e instanceof String;
|
25
|
-
}
|
26
|
-
function xe(e) {
|
27
|
-
return !Number.isNaN(e) && Number.isFinite(e);
|
28
|
-
}
|
29
|
-
function Ie(e) {
|
30
|
-
return typeof e == "boolean";
|
31
|
-
}
|
32
|
-
function Ce(e) {
|
33
|
-
return e !== null && typeof e == "object" && !Array.isArray(e);
|
34
|
-
}
|
35
|
-
function Fe(e) {
|
36
|
-
return e !== null && typeof e == "object" && Object.keys(e).length === 0;
|
37
|
-
}
|
38
|
-
function At(e, r, t) {
|
39
|
-
if (je(e) || xe(e) || Ie(e))
|
40
|
-
return e.toString();
|
41
|
-
if (ne(e) || !Ce(e) || Fe(e))
|
42
|
-
return "";
|
43
|
-
let n = "";
|
44
|
-
const a = Object.keys(e);
|
45
|
-
return r && e[r] && (n = e[r]), (ne(n) || n === "") && (a != null && a.length) && (n = e[a[0]]), n;
|
46
|
-
}
|
47
|
-
function Me(e) {
|
20
|
+
function Pe(e) {
|
48
21
|
if (Array.isArray(e)) return e;
|
49
22
|
}
|
50
|
-
function
|
23
|
+
function je(e, r) {
|
51
24
|
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
52
25
|
if (t != null) {
|
53
|
-
var n,
|
26
|
+
var n, i, a, o, l = [], u = !0, c = !1;
|
54
27
|
try {
|
55
|
-
if (
|
28
|
+
if (a = (t = t.call(e)).next, r !== 0) for (; !(u = (n = a.call(t)).done) && (l.push(n.value), l.length !== r); u = !0) ;
|
56
29
|
} catch (f) {
|
57
|
-
c = !0,
|
30
|
+
c = !0, i = f;
|
58
31
|
} finally {
|
59
32
|
try {
|
60
33
|
if (!u && t.return != null && (o = t.return(), Object(o) !== o)) return;
|
61
34
|
} finally {
|
62
|
-
if (c) throw
|
35
|
+
if (c) throw i;
|
63
36
|
}
|
64
37
|
}
|
65
38
|
return l;
|
@@ -70,63 +43,63 @@ function V(e, r) {
|
|
70
43
|
for (var t = 0, n = Array(r); t < r; t++) n[t] = e[t];
|
71
44
|
return n;
|
72
45
|
}
|
73
|
-
function
|
46
|
+
function be(e, r) {
|
74
47
|
if (e) {
|
75
48
|
if (typeof e == "string") return V(e, r);
|
76
49
|
var t = {}.toString.call(e).slice(8, -1);
|
77
50
|
return t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set" ? Array.from(e) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? V(e, r) : void 0;
|
78
51
|
}
|
79
52
|
}
|
80
|
-
function
|
53
|
+
function xe() {
|
81
54
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
82
55
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
83
56
|
}
|
84
|
-
function
|
85
|
-
return
|
57
|
+
function he(e, r) {
|
58
|
+
return Pe(e) || je(e, r) || be(e, r) || xe();
|
86
59
|
}
|
87
|
-
var X = {},
|
60
|
+
var X = {}, W = {}, ne;
|
88
61
|
function we() {
|
89
|
-
if (
|
90
|
-
|
62
|
+
if (ne) return W;
|
63
|
+
ne = 1, Object.defineProperty(W, "__esModule", { value: !0 }), W.bind = void 0;
|
91
64
|
function e(r, t) {
|
92
|
-
var n = t.type,
|
93
|
-
return r.addEventListener(n,
|
94
|
-
r.removeEventListener(n,
|
65
|
+
var n = t.type, i = t.listener, a = t.options;
|
66
|
+
return r.addEventListener(n, i, a), function() {
|
67
|
+
r.removeEventListener(n, i, a);
|
95
68
|
};
|
96
69
|
}
|
97
|
-
return
|
70
|
+
return W.bind = e, W;
|
98
71
|
}
|
99
|
-
var M = {},
|
100
|
-
function
|
101
|
-
if (
|
102
|
-
|
72
|
+
var M = {}, ae;
|
73
|
+
function Ie() {
|
74
|
+
if (ae) return M;
|
75
|
+
ae = 1;
|
103
76
|
var e = M && M.__assign || function() {
|
104
|
-
return e = Object.assign || function(
|
77
|
+
return e = Object.assign || function(a) {
|
105
78
|
for (var o, l = 1, u = arguments.length; l < u; l++) {
|
106
79
|
o = arguments[l];
|
107
|
-
for (var c in o) Object.prototype.hasOwnProperty.call(o, c) && (
|
80
|
+
for (var c in o) Object.prototype.hasOwnProperty.call(o, c) && (a[c] = o[c]);
|
108
81
|
}
|
109
|
-
return
|
82
|
+
return a;
|
110
83
|
}, e.apply(this, arguments);
|
111
84
|
};
|
112
85
|
Object.defineProperty(M, "__esModule", { value: !0 }), M.bindAll = void 0;
|
113
86
|
var r = /* @__PURE__ */ we();
|
114
|
-
function t(
|
115
|
-
if (!(typeof
|
116
|
-
return typeof
|
117
|
-
capture:
|
118
|
-
} :
|
87
|
+
function t(a) {
|
88
|
+
if (!(typeof a > "u"))
|
89
|
+
return typeof a == "boolean" ? {
|
90
|
+
capture: a
|
91
|
+
} : a;
|
119
92
|
}
|
120
|
-
function n(
|
93
|
+
function n(a, o) {
|
121
94
|
if (o == null)
|
122
|
-
return
|
123
|
-
var l = e(e({},
|
95
|
+
return a;
|
96
|
+
var l = e(e({}, a), { options: e(e({}, t(o)), t(a.options)) });
|
124
97
|
return l;
|
125
98
|
}
|
126
|
-
function a
|
99
|
+
function i(a, o, l) {
|
127
100
|
var u = o.map(function(c) {
|
128
101
|
var f = n(c, l);
|
129
|
-
return (0, r.bind)(
|
102
|
+
return (0, r.bind)(a, f);
|
130
103
|
});
|
131
104
|
return function() {
|
132
105
|
u.forEach(function(f) {
|
@@ -134,23 +107,23 @@ function Re() {
|
|
134
107
|
});
|
135
108
|
};
|
136
109
|
}
|
137
|
-
return M.bindAll =
|
110
|
+
return M.bindAll = i, M;
|
138
111
|
}
|
139
|
-
var
|
140
|
-
function
|
141
|
-
return
|
112
|
+
var ie;
|
113
|
+
function Ce() {
|
114
|
+
return ie || (ie = 1, function(e) {
|
142
115
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.bindAll = e.bind = void 0;
|
143
116
|
var r = /* @__PURE__ */ we();
|
144
117
|
Object.defineProperty(e, "bind", { enumerable: !0, get: function() {
|
145
118
|
return r.bind;
|
146
119
|
} });
|
147
|
-
var t = /* @__PURE__ */
|
120
|
+
var t = /* @__PURE__ */ Ie();
|
148
121
|
Object.defineProperty(e, "bindAll", { enumerable: !0, get: function() {
|
149
122
|
return t.bindAll;
|
150
123
|
} });
|
151
124
|
}(X)), X;
|
152
125
|
}
|
153
|
-
var H = /* @__PURE__ */
|
126
|
+
var H = /* @__PURE__ */ Ce();
|
154
127
|
function L(e) {
|
155
128
|
"@babel/helpers - typeof";
|
156
129
|
return L = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
|
@@ -159,7 +132,7 @@ function L(e) {
|
|
159
132
|
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
160
133
|
}, L(e);
|
161
134
|
}
|
162
|
-
function
|
135
|
+
function Fe(e, r) {
|
163
136
|
if (L(e) != "object" || !e) return e;
|
164
137
|
var t = e[Symbol.toPrimitive];
|
165
138
|
if (t !== void 0) {
|
@@ -169,67 +142,67 @@ function Ne(e, r) {
|
|
169
142
|
}
|
170
143
|
return (r === "string" ? String : Number)(e);
|
171
144
|
}
|
172
|
-
function
|
173
|
-
var r =
|
145
|
+
function Me(e) {
|
146
|
+
var r = Fe(e, "string");
|
174
147
|
return L(r) == "symbol" ? r : r + "";
|
175
148
|
}
|
176
149
|
function _(e, r, t) {
|
177
|
-
return (r =
|
150
|
+
return (r = Me(r)) in e ? Object.defineProperty(e, r, {
|
178
151
|
value: t,
|
179
152
|
enumerable: !0,
|
180
153
|
configurable: !0,
|
181
154
|
writable: !0
|
182
155
|
}) : e[r] = t, e;
|
183
156
|
}
|
184
|
-
var De = 2147483647,
|
185
|
-
function
|
157
|
+
var De = 2147483647, Oe = "data-pdnd-honey-pot";
|
158
|
+
function oe(e, r) {
|
186
159
|
var t = Object.keys(e);
|
187
160
|
if (Object.getOwnPropertySymbols) {
|
188
161
|
var n = Object.getOwnPropertySymbols(e);
|
189
|
-
r && (n = n.filter(function(
|
190
|
-
return Object.getOwnPropertyDescriptor(e,
|
162
|
+
r && (n = n.filter(function(i) {
|
163
|
+
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
191
164
|
})), t.push.apply(t, n);
|
192
165
|
}
|
193
166
|
return t;
|
194
167
|
}
|
195
|
-
function
|
168
|
+
function ue(e) {
|
196
169
|
for (var r = 1; r < arguments.length; r++) {
|
197
170
|
var t = arguments[r] != null ? arguments[r] : {};
|
198
|
-
r % 2 ?
|
171
|
+
r % 2 ? oe(Object(t), !0).forEach(function(n) {
|
199
172
|
_(e, n, t[n]);
|
200
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
173
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : oe(Object(t)).forEach(function(n) {
|
201
174
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
|
202
175
|
});
|
203
176
|
}
|
204
177
|
return e;
|
205
178
|
}
|
206
|
-
var $ = 2,
|
207
|
-
function
|
179
|
+
var $ = 2, le = $ / 2;
|
180
|
+
function He(e) {
|
208
181
|
return {
|
209
182
|
x: Math.floor(e.x),
|
210
183
|
y: Math.floor(e.y)
|
211
184
|
};
|
212
185
|
}
|
213
|
-
function
|
186
|
+
function Ke(e) {
|
214
187
|
return {
|
215
|
-
x: e.x -
|
216
|
-
y: e.y -
|
188
|
+
x: e.x - le,
|
189
|
+
y: e.y - le
|
217
190
|
};
|
218
191
|
}
|
219
|
-
function
|
192
|
+
function Re(e) {
|
220
193
|
return {
|
221
194
|
x: Math.max(e.x, 0),
|
222
195
|
y: Math.max(e.y, 0)
|
223
196
|
};
|
224
197
|
}
|
225
|
-
function
|
198
|
+
function We(e) {
|
226
199
|
return {
|
227
200
|
x: Math.min(e.x, window.innerWidth - $),
|
228
201
|
y: Math.min(e.y, window.innerHeight - $)
|
229
202
|
};
|
230
203
|
}
|
231
|
-
function
|
232
|
-
var r = e.client, t =
|
204
|
+
function ce(e) {
|
205
|
+
var r = e.client, t = We(Re(Ke(He(r))));
|
233
206
|
return DOMRect.fromRect({
|
234
207
|
x: t.x,
|
235
208
|
y: t.y,
|
@@ -246,7 +219,7 @@ function de(e) {
|
|
246
219
|
height: "".concat(r.height, "px")
|
247
220
|
};
|
248
221
|
}
|
249
|
-
function
|
222
|
+
function ke(e) {
|
250
223
|
var r = e.client, t = e.clientRect;
|
251
224
|
return (
|
252
225
|
// is within horizontal bounds
|
@@ -254,13 +227,13 @@ function Xe(e) {
|
|
254
227
|
r.y >= t.y && r.y <= t.y + t.height
|
255
228
|
);
|
256
229
|
}
|
257
|
-
function
|
230
|
+
function Ne(e) {
|
258
231
|
var r = e.initial, t = document.createElement("div");
|
259
|
-
t.setAttribute(
|
260
|
-
var n =
|
232
|
+
t.setAttribute(Oe, "true");
|
233
|
+
var n = ce({
|
261
234
|
client: r
|
262
235
|
});
|
263
|
-
Object.assign(t.style,
|
236
|
+
Object.assign(t.style, ue(ue({
|
264
237
|
// Setting a background color explicitly to avoid any inherited styles.
|
265
238
|
// Looks like this could be `opacity: 0`, but worried that _might_
|
266
239
|
// cause the element to be ignored on some platforms.
|
@@ -282,14 +255,14 @@ function Ye(e) {
|
|
282
255
|
// have been rendered (and removed) before the honey pot is rendered
|
283
256
|
zIndex: De
|
284
257
|
})), document.body.appendChild(t);
|
285
|
-
var
|
258
|
+
var i = H.bind(window, {
|
286
259
|
type: "pointermove",
|
287
260
|
listener: function(o) {
|
288
261
|
var l = {
|
289
262
|
x: o.clientX,
|
290
263
|
y: o.clientY
|
291
264
|
};
|
292
|
-
n =
|
265
|
+
n = ce({
|
293
266
|
client: l
|
294
267
|
}), Object.assign(t.style, de({
|
295
268
|
clientRect: n
|
@@ -302,7 +275,7 @@ function Ye(e) {
|
|
302
275
|
});
|
303
276
|
return function(o) {
|
304
277
|
var l = o.current;
|
305
|
-
if (
|
278
|
+
if (i(), ke({
|
306
279
|
client: l,
|
307
280
|
clientRect: n
|
308
281
|
})) {
|
@@ -354,15 +327,15 @@ function Ye(e) {
|
|
354
327
|
});
|
355
328
|
};
|
356
329
|
}
|
357
|
-
function
|
330
|
+
function Le() {
|
358
331
|
var e = null;
|
359
332
|
function r() {
|
360
333
|
return e = null, H.bind(window, {
|
361
334
|
type: "pointermove",
|
362
|
-
listener: function(
|
335
|
+
listener: function(i) {
|
363
336
|
e = {
|
364
|
-
x:
|
365
|
-
y:
|
337
|
+
x: i.clientX,
|
338
|
+
y: i.clientY
|
366
339
|
};
|
367
340
|
},
|
368
341
|
// listening for pointer move in capture phase
|
@@ -374,23 +347,23 @@ function qe() {
|
|
374
347
|
}
|
375
348
|
function t() {
|
376
349
|
var n = null;
|
377
|
-
return function(
|
378
|
-
var o =
|
350
|
+
return function(a) {
|
351
|
+
var o = a.eventName, l = a.payload;
|
379
352
|
if (o === "onDragStart") {
|
380
353
|
var u, c = l.location.initial.input, f = (u = e) !== null && u !== void 0 ? u : {
|
381
354
|
x: c.clientX,
|
382
355
|
y: c.clientY
|
383
356
|
};
|
384
|
-
n =
|
357
|
+
n = Ne({
|
385
358
|
initial: f
|
386
359
|
});
|
387
360
|
}
|
388
361
|
if (o === "onDrop") {
|
389
|
-
var
|
390
|
-
(
|
362
|
+
var p, v = l.location.current.input;
|
363
|
+
(p = n) === null || p === void 0 || p({
|
391
364
|
current: {
|
392
|
-
x:
|
393
|
-
y:
|
365
|
+
x: v.clientX,
|
366
|
+
y: v.clientY
|
394
367
|
}
|
395
368
|
}), n = null, e = null;
|
396
369
|
}
|
@@ -401,33 +374,33 @@ function qe() {
|
|
401
374
|
getOnPostDispatch: t
|
402
375
|
};
|
403
376
|
}
|
404
|
-
function
|
377
|
+
function $e(e) {
|
405
378
|
if (Array.isArray(e)) return V(e);
|
406
379
|
}
|
407
|
-
function
|
380
|
+
function Ue(e) {
|
408
381
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
409
382
|
}
|
410
|
-
function
|
383
|
+
function Be() {
|
411
384
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
412
385
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
413
386
|
}
|
414
387
|
function Te(e) {
|
415
|
-
return
|
388
|
+
return $e(e) || Ue(e) || be(e) || Be();
|
416
389
|
}
|
417
|
-
function
|
418
|
-
return e instanceof Element && e.hasAttribute(
|
390
|
+
function Se(e) {
|
391
|
+
return e instanceof Element && e.hasAttribute(Oe);
|
419
392
|
}
|
420
|
-
function
|
421
|
-
var r = document.elementsFromPoint(e.x, e.y), t =
|
422
|
-
return n ?
|
393
|
+
function Xe(e) {
|
394
|
+
var r = document.elementsFromPoint(e.x, e.y), t = he(r, 2), n = t[0], i = t[1];
|
395
|
+
return n ? Se(n) ? i ?? null : n : null;
|
423
396
|
}
|
424
397
|
function ee(e) {
|
425
398
|
var r = null;
|
426
399
|
return function() {
|
427
400
|
if (!r) {
|
428
|
-
for (var n = arguments.length,
|
429
|
-
a
|
430
|
-
var o = e.apply(this,
|
401
|
+
for (var n = arguments.length, i = new Array(n), a = 0; a < n; a++)
|
402
|
+
i[a] = arguments[a];
|
403
|
+
var o = e.apply(this, i);
|
431
404
|
r = {
|
432
405
|
result: o
|
433
406
|
};
|
@@ -435,21 +408,21 @@ function ee(e) {
|
|
435
408
|
return r.result;
|
436
409
|
};
|
437
410
|
}
|
438
|
-
var
|
411
|
+
var Ye = ee(function() {
|
439
412
|
return navigator.userAgent.includes("Firefox");
|
440
|
-
}),
|
413
|
+
}), B = ee(function() {
|
441
414
|
var r = navigator, t = r.userAgent;
|
442
415
|
return t.includes("AppleWebKit") && !t.includes("Chrome");
|
443
416
|
}), Z = {
|
444
417
|
isLeavingWindow: Symbol("leaving"),
|
445
418
|
isEnteringWindow: Symbol("entering")
|
446
419
|
};
|
447
|
-
function
|
420
|
+
function qe(e) {
|
448
421
|
var r = e.dragLeave;
|
449
|
-
return
|
422
|
+
return B() ? r.hasOwnProperty(Z.isLeavingWindow) : !1;
|
450
423
|
}
|
451
424
|
(function() {
|
452
|
-
if (typeof window > "u" || !
|
425
|
+
if (typeof window > "u" || !B())
|
453
426
|
return;
|
454
427
|
function r() {
|
455
428
|
return {
|
@@ -476,13 +449,13 @@ function Qe(e) {
|
|
476
449
|
listener: n
|
477
450
|
}, {
|
478
451
|
type: "dragenter",
|
479
|
-
listener: function(
|
480
|
-
!t.isOverWindow && t.enterCount === 0 && (
|
452
|
+
listener: function(a) {
|
453
|
+
!t.isOverWindow && t.enterCount === 0 && (a[Z.isEnteringWindow] = !0), t.isOverWindow = !0, t.enterCount++;
|
481
454
|
}
|
482
455
|
}, {
|
483
456
|
type: "dragleave",
|
484
|
-
listener: function(
|
485
|
-
t.enterCount--, t.isOverWindow && t.enterCount === 0 && (
|
457
|
+
listener: function(a) {
|
458
|
+
t.enterCount--, t.isOverWindow && t.enterCount === 0 && (a[Z.isLeavingWindow] = !0, t.isOverWindow = !1);
|
486
459
|
}
|
487
460
|
}],
|
488
461
|
// using `capture: true` so that adding event listeners
|
@@ -492,19 +465,19 @@ function Qe(e) {
|
|
492
465
|
}
|
493
466
|
);
|
494
467
|
})();
|
495
|
-
function
|
468
|
+
function ze(e) {
|
496
469
|
return "nodeName" in e;
|
497
470
|
}
|
498
|
-
function
|
499
|
-
return
|
471
|
+
function Ge(e) {
|
472
|
+
return ze(e) && e.ownerDocument !== document;
|
500
473
|
}
|
501
|
-
function
|
474
|
+
function Ve(e) {
|
502
475
|
var r = e.dragLeave, t = r.type, n = r.relatedTarget;
|
503
|
-
return t !== "dragleave" ? !1 :
|
476
|
+
return t !== "dragleave" ? !1 : B() ? qe({
|
504
477
|
dragLeave: r
|
505
|
-
}) : n == null ? !0 :
|
478
|
+
}) : n == null ? !0 : Ye() ? Ge(n) : n instanceof HTMLIFrameElement;
|
506
479
|
}
|
507
|
-
function
|
480
|
+
function Ze(e) {
|
508
481
|
var r = e.onDragEnd;
|
509
482
|
return [
|
510
483
|
// ## Detecting drag ending for removed draggables
|
@@ -548,7 +521,7 @@ function rt(e) {
|
|
548
521
|
}
|
549
522
|
];
|
550
523
|
}
|
551
|
-
function
|
524
|
+
function k(e) {
|
552
525
|
return {
|
553
526
|
altKey: e.altKey,
|
554
527
|
button: e.button,
|
@@ -562,27 +535,27 @@ function N(e) {
|
|
562
535
|
pageY: e.pageY
|
563
536
|
};
|
564
537
|
}
|
565
|
-
var
|
566
|
-
var t = [], n = null,
|
538
|
+
var Je = function(r) {
|
539
|
+
var t = [], n = null, i = function() {
|
567
540
|
for (var o = arguments.length, l = new Array(o), u = 0; u < o; u++)
|
568
541
|
l[u] = arguments[u];
|
569
542
|
t = l, !n && (n = requestAnimationFrame(function() {
|
570
543
|
n = null, r.apply(void 0, t);
|
571
544
|
}));
|
572
545
|
};
|
573
|
-
return
|
546
|
+
return i.cancel = function() {
|
574
547
|
n && (cancelAnimationFrame(n), n = null);
|
575
|
-
},
|
576
|
-
}, Y =
|
548
|
+
}, i;
|
549
|
+
}, Y = Je(function(e) {
|
577
550
|
return e();
|
578
|
-
}),
|
551
|
+
}), U = /* @__PURE__ */ function() {
|
579
552
|
var e = null;
|
580
553
|
function r(n) {
|
581
|
-
var
|
554
|
+
var i = requestAnimationFrame(function() {
|
582
555
|
e = null, n();
|
583
556
|
});
|
584
557
|
e = {
|
585
|
-
frameId:
|
558
|
+
frameId: i,
|
586
559
|
fn: n
|
587
560
|
};
|
588
561
|
}
|
@@ -594,12 +567,12 @@ var nt = function(r) {
|
|
594
567
|
flush: t
|
595
568
|
};
|
596
569
|
}();
|
597
|
-
function
|
598
|
-
var r = e.source, t = e.initial, n = e.dispatchEvent,
|
570
|
+
function Qe(e) {
|
571
|
+
var r = e.source, t = e.initial, n = e.dispatchEvent, i = {
|
599
572
|
dropTargets: []
|
600
573
|
};
|
601
|
-
function
|
602
|
-
n(l),
|
574
|
+
function a(l) {
|
575
|
+
n(l), i = {
|
603
576
|
dropTargets: l.payload.location.current.dropTargets
|
604
577
|
};
|
605
578
|
}
|
@@ -607,18 +580,18 @@ function at(e) {
|
|
607
580
|
start: function(u) {
|
608
581
|
var c = u.nativeSetDragImage, f = {
|
609
582
|
current: t,
|
610
|
-
previous:
|
583
|
+
previous: i,
|
611
584
|
initial: t
|
612
585
|
};
|
613
|
-
|
586
|
+
a({
|
614
587
|
eventName: "onGenerateDragPreview",
|
615
588
|
payload: {
|
616
589
|
source: r,
|
617
590
|
location: f,
|
618
591
|
nativeSetDragImage: c
|
619
592
|
}
|
620
|
-
}),
|
621
|
-
|
593
|
+
}), U.schedule(function() {
|
594
|
+
a({
|
622
595
|
eventName: "onDragStart",
|
623
596
|
payload: {
|
624
597
|
source: r,
|
@@ -629,13 +602,13 @@ function at(e) {
|
|
629
602
|
},
|
630
603
|
dragUpdate: function(u) {
|
631
604
|
var c = u.current;
|
632
|
-
|
605
|
+
U.flush(), Y.cancel(), a({
|
633
606
|
eventName: "onDropTargetChange",
|
634
607
|
payload: {
|
635
608
|
source: r,
|
636
609
|
location: {
|
637
610
|
initial: t,
|
638
|
-
previous:
|
611
|
+
previous: i,
|
639
612
|
current: c
|
640
613
|
}
|
641
614
|
}
|
@@ -644,13 +617,13 @@ function at(e) {
|
|
644
617
|
drag: function(u) {
|
645
618
|
var c = u.current;
|
646
619
|
Y(function() {
|
647
|
-
|
620
|
+
U.flush();
|
648
621
|
var f = {
|
649
622
|
initial: t,
|
650
|
-
previous:
|
623
|
+
previous: i,
|
651
624
|
current: c
|
652
625
|
};
|
653
|
-
|
626
|
+
a({
|
654
627
|
eventName: "onDrag",
|
655
628
|
payload: {
|
656
629
|
source: r,
|
@@ -661,13 +634,13 @@ function at(e) {
|
|
661
634
|
},
|
662
635
|
drop: function(u) {
|
663
636
|
var c = u.current, f = u.updatedSourcePayload;
|
664
|
-
|
637
|
+
U.flush(), Y.cancel(), a({
|
665
638
|
eventName: "onDrop",
|
666
639
|
payload: {
|
667
640
|
source: f ?? r,
|
668
641
|
location: {
|
669
642
|
current: c,
|
670
|
-
previous:
|
643
|
+
previous: i,
|
671
644
|
initial: t
|
672
645
|
}
|
673
646
|
}
|
@@ -679,13 +652,13 @@ function at(e) {
|
|
679
652
|
var J = {
|
680
653
|
isActive: !1
|
681
654
|
};
|
682
|
-
function
|
655
|
+
function Ae() {
|
683
656
|
return !J.isActive;
|
684
657
|
}
|
685
|
-
function
|
658
|
+
function _e(e) {
|
686
659
|
return e.dataTransfer ? e.dataTransfer.setDragImage.bind(e.dataTransfer) : null;
|
687
660
|
}
|
688
|
-
function
|
661
|
+
function et(e) {
|
689
662
|
var r = e.current, t = e.next;
|
690
663
|
if (r.length !== t.length)
|
691
664
|
return !0;
|
@@ -694,54 +667,54 @@ function ot(e) {
|
|
694
667
|
return !0;
|
695
668
|
return !1;
|
696
669
|
}
|
697
|
-
function
|
698
|
-
var r = e.event, t = e.dragType, n = e.getDropTargetsOver,
|
699
|
-
if (!
|
670
|
+
function tt(e) {
|
671
|
+
var r = e.event, t = e.dragType, n = e.getDropTargetsOver, i = e.dispatchEvent;
|
672
|
+
if (!Ae())
|
700
673
|
return;
|
701
|
-
var
|
674
|
+
var a = rt({
|
702
675
|
event: r,
|
703
676
|
dragType: t,
|
704
677
|
getDropTargetsOver: n
|
705
678
|
});
|
706
679
|
J.isActive = !0;
|
707
680
|
var o = {
|
708
|
-
current:
|
681
|
+
current: a
|
709
682
|
};
|
710
683
|
q({
|
711
684
|
event: r,
|
712
|
-
current:
|
685
|
+
current: a.dropTargets
|
713
686
|
});
|
714
|
-
var l =
|
687
|
+
var l = Qe({
|
715
688
|
source: t.payload,
|
716
|
-
dispatchEvent:
|
717
|
-
initial:
|
689
|
+
dispatchEvent: i,
|
690
|
+
initial: a
|
718
691
|
});
|
719
|
-
function u(
|
720
|
-
var
|
692
|
+
function u(d) {
|
693
|
+
var s = et({
|
721
694
|
current: o.current.dropTargets,
|
722
|
-
next:
|
695
|
+
next: d.dropTargets
|
723
696
|
});
|
724
|
-
o.current =
|
697
|
+
o.current = d, s && l.dragUpdate({
|
725
698
|
current: o.current
|
726
699
|
});
|
727
700
|
}
|
728
|
-
function c(
|
729
|
-
var
|
730
|
-
x:
|
731
|
-
y:
|
732
|
-
}) :
|
701
|
+
function c(d) {
|
702
|
+
var s = k(d), g = Se(d.target) ? Xe({
|
703
|
+
x: s.clientX,
|
704
|
+
y: s.clientY
|
705
|
+
}) : d.target, y = n({
|
733
706
|
target: g,
|
734
|
-
event:
|
735
|
-
input:
|
707
|
+
event: d,
|
708
|
+
input: s,
|
736
709
|
source: t.payload,
|
737
710
|
current: o.current.dropTargets
|
738
711
|
});
|
739
|
-
y.length && (
|
740
|
-
event:
|
712
|
+
y.length && (d.preventDefault(), q({
|
713
|
+
event: d,
|
741
714
|
current: y
|
742
715
|
})), u({
|
743
716
|
dropTargets: y,
|
744
|
-
input:
|
717
|
+
input: s
|
745
718
|
});
|
746
719
|
}
|
747
720
|
function f() {
|
@@ -751,12 +724,12 @@ function ut(e) {
|
|
751
724
|
}), l.drop({
|
752
725
|
current: o.current,
|
753
726
|
updatedSourcePayload: null
|
754
|
-
}),
|
727
|
+
}), p();
|
755
728
|
}
|
756
|
-
function
|
757
|
-
J.isActive = !1,
|
729
|
+
function p() {
|
730
|
+
J.isActive = !1, v();
|
758
731
|
}
|
759
|
-
var
|
732
|
+
var v = H.bindAll(
|
760
733
|
window,
|
761
734
|
[{
|
762
735
|
// 👋 Note: we are repurposing the `dragover` event as our `drag` event
|
@@ -766,8 +739,8 @@ function ut(e) {
|
|
766
739
|
// Because we are binding to `window` - our `dragover` is effectively the same as a `drag`
|
767
740
|
// 🦊😤
|
768
741
|
type: "dragover",
|
769
|
-
listener: function(
|
770
|
-
c(
|
742
|
+
listener: function(s) {
|
743
|
+
c(s), l.drag({
|
771
744
|
current: o.current
|
772
745
|
});
|
773
746
|
}
|
@@ -776,9 +749,9 @@ function ut(e) {
|
|
776
749
|
listener: c
|
777
750
|
}, {
|
778
751
|
type: "dragleave",
|
779
|
-
listener: function(
|
780
|
-
|
781
|
-
dragLeave:
|
752
|
+
listener: function(s) {
|
753
|
+
Ve({
|
754
|
+
dragLeave: s
|
782
755
|
}) && (u({
|
783
756
|
input: o.current.input,
|
784
757
|
dropTargets: []
|
@@ -787,23 +760,23 @@ function ut(e) {
|
|
787
760
|
}, {
|
788
761
|
// A "drop" can only happen if the browser allowed the drop
|
789
762
|
type: "drop",
|
790
|
-
listener: function(
|
763
|
+
listener: function(s) {
|
791
764
|
if (o.current = {
|
792
765
|
dropTargets: o.current.dropTargets,
|
793
|
-
input:
|
766
|
+
input: k(s)
|
794
767
|
}, !o.current.dropTargets.length) {
|
795
768
|
f();
|
796
769
|
return;
|
797
770
|
}
|
798
|
-
|
799
|
-
event:
|
771
|
+
s.preventDefault(), q({
|
772
|
+
event: s,
|
800
773
|
current: o.current.dropTargets
|
801
774
|
}), l.drop({
|
802
775
|
current: o.current,
|
803
776
|
// When dropping something native, we need to extract the latest
|
804
777
|
// `.items` from the "drop" event as it is now accessible
|
805
|
-
updatedSourcePayload: t.type === "external" ? t.getDropPayload(
|
806
|
-
}),
|
778
|
+
updatedSourcePayload: t.type === "external" ? t.getDropPayload(s) : null
|
779
|
+
}), p();
|
807
780
|
}
|
808
781
|
}, {
|
809
782
|
// "dragend" fires when on the drag source (eg a draggable element)
|
@@ -814,13 +787,13 @@ function ut(e) {
|
|
814
787
|
// This "dragend" listener will not fire if there was a successful drop
|
815
788
|
// as we will have already removed the event listener
|
816
789
|
type: "dragend",
|
817
|
-
listener: function(
|
790
|
+
listener: function(s) {
|
818
791
|
o.current = {
|
819
792
|
dropTargets: o.current.dropTargets,
|
820
|
-
input:
|
793
|
+
input: k(s)
|
821
794
|
}, f();
|
822
795
|
}
|
823
|
-
}].concat(Te(
|
796
|
+
}].concat(Te(Ze({
|
824
797
|
onDragEnd: f
|
825
798
|
}))),
|
826
799
|
// Once we have started a managed drag operation it is important that we see / own all drag events
|
@@ -832,49 +805,49 @@ function ut(e) {
|
|
832
805
|
}
|
833
806
|
);
|
834
807
|
l.start({
|
835
|
-
nativeSetDragImage:
|
808
|
+
nativeSetDragImage: _e(r)
|
836
809
|
});
|
837
810
|
}
|
838
811
|
function q(e) {
|
839
|
-
var r, t = e.event, n = e.current,
|
840
|
-
|
812
|
+
var r, t = e.event, n = e.current, i = (r = n[0]) === null || r === void 0 ? void 0 : r.dropEffect;
|
813
|
+
i != null && t.dataTransfer && (t.dataTransfer.dropEffect = i);
|
841
814
|
}
|
842
|
-
function
|
843
|
-
var r = e.event, t = e.dragType, n = e.getDropTargetsOver,
|
815
|
+
function rt(e) {
|
816
|
+
var r = e.event, t = e.dragType, n = e.getDropTargetsOver, i = k(r);
|
844
817
|
if (t.startedFrom === "external")
|
845
818
|
return {
|
846
|
-
input:
|
819
|
+
input: i,
|
847
820
|
dropTargets: []
|
848
821
|
};
|
849
|
-
var
|
850
|
-
input:
|
822
|
+
var a = n({
|
823
|
+
input: i,
|
851
824
|
source: t.payload,
|
852
825
|
target: r.target,
|
853
826
|
event: r,
|
854
827
|
current: []
|
855
828
|
});
|
856
829
|
return {
|
857
|
-
input:
|
858
|
-
dropTargets:
|
830
|
+
input: i,
|
831
|
+
dropTargets: a
|
859
832
|
};
|
860
833
|
}
|
861
|
-
var
|
862
|
-
canStart:
|
863
|
-
start:
|
834
|
+
var se = {
|
835
|
+
canStart: Ae,
|
836
|
+
start: tt
|
864
837
|
}, Q = /* @__PURE__ */ new Map();
|
865
|
-
function
|
838
|
+
function nt(e) {
|
866
839
|
var r = e.typeKey, t = e.mount, n = Q.get(r);
|
867
840
|
if (n)
|
868
841
|
return n.usageCount++, n;
|
869
|
-
var
|
842
|
+
var i = {
|
870
843
|
typeKey: r,
|
871
844
|
unmount: t(),
|
872
845
|
usageCount: 1
|
873
846
|
};
|
874
|
-
return Q.set(r,
|
847
|
+
return Q.set(r, i), i;
|
875
848
|
}
|
876
|
-
function
|
877
|
-
var r =
|
849
|
+
function at(e) {
|
850
|
+
var r = nt(e);
|
878
851
|
return function() {
|
879
852
|
r.usageCount--, !(r.usageCount > 0) && (r.unmount(), Q.delete(e.typeKey));
|
880
853
|
};
|
@@ -883,23 +856,23 @@ function te() {
|
|
883
856
|
for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
|
884
857
|
r[t] = arguments[t];
|
885
858
|
return function() {
|
886
|
-
r.forEach(function(
|
887
|
-
return
|
859
|
+
r.forEach(function(i) {
|
860
|
+
return i();
|
888
861
|
});
|
889
862
|
};
|
890
863
|
}
|
891
|
-
function
|
864
|
+
function Ee(e, r) {
|
892
865
|
var t = r.attribute, n = r.value;
|
893
866
|
return e.setAttribute(t, n), function() {
|
894
867
|
return e.removeAttribute(t);
|
895
868
|
};
|
896
869
|
}
|
897
|
-
function
|
870
|
+
function fe(e, r) {
|
898
871
|
var t = Object.keys(e);
|
899
872
|
if (Object.getOwnPropertySymbols) {
|
900
873
|
var n = Object.getOwnPropertySymbols(e);
|
901
|
-
r && (n = n.filter(function(
|
902
|
-
return Object.getOwnPropertyDescriptor(e,
|
874
|
+
r && (n = n.filter(function(i) {
|
875
|
+
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
903
876
|
})), t.push.apply(t, n);
|
904
877
|
}
|
905
878
|
return t;
|
@@ -907,9 +880,9 @@ function pe(e, r) {
|
|
907
880
|
function F(e) {
|
908
881
|
for (var r = 1; r < arguments.length; r++) {
|
909
882
|
var t = arguments[r] != null ? arguments[r] : {};
|
910
|
-
r % 2 ?
|
883
|
+
r % 2 ? fe(Object(t), !0).forEach(function(n) {
|
911
884
|
_(e, n, t[n]);
|
912
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
885
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : fe(Object(t)).forEach(function(n) {
|
913
886
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
|
914
887
|
});
|
915
888
|
}
|
@@ -918,36 +891,36 @@ function F(e) {
|
|
918
891
|
function z(e, r) {
|
919
892
|
var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
920
893
|
if (!t) {
|
921
|
-
if (Array.isArray(e) || (t =
|
894
|
+
if (Array.isArray(e) || (t = it(e)) || r) {
|
922
895
|
t && (e = t);
|
923
|
-
var n = 0,
|
896
|
+
var n = 0, i = function() {
|
924
897
|
};
|
925
|
-
return { s:
|
898
|
+
return { s: i, n: function() {
|
926
899
|
return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
|
927
900
|
}, e: function(c) {
|
928
901
|
throw c;
|
929
|
-
}, f:
|
902
|
+
}, f: i };
|
930
903
|
}
|
931
904
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
932
905
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
933
906
|
}
|
934
|
-
var
|
907
|
+
var a, o = !0, l = !1;
|
935
908
|
return { s: function() {
|
936
909
|
t = t.call(e);
|
937
910
|
}, n: function() {
|
938
911
|
var c = t.next();
|
939
912
|
return o = c.done, c;
|
940
913
|
}, e: function(c) {
|
941
|
-
l = !0,
|
914
|
+
l = !0, a = c;
|
942
915
|
}, f: function() {
|
943
916
|
try {
|
944
917
|
o || t.return == null || t.return();
|
945
918
|
} finally {
|
946
|
-
if (l) throw
|
919
|
+
if (l) throw a;
|
947
920
|
}
|
948
921
|
} };
|
949
922
|
}
|
950
|
-
function
|
923
|
+
function it(e, r) {
|
951
924
|
if (e) {
|
952
925
|
if (typeof e == "string") return ve(e, r);
|
953
926
|
var t = {}.toString.call(e).slice(8, -1);
|
@@ -962,78 +935,78 @@ function ve(e, r) {
|
|
962
935
|
function G(e) {
|
963
936
|
return e.slice(0).reverse();
|
964
937
|
}
|
965
|
-
function
|
966
|
-
var r = e.typeKey, t = e.defaultDropEffect, n = /* @__PURE__ */ new WeakMap(),
|
967
|
-
function o(
|
968
|
-
return n.set(
|
969
|
-
return n.delete(
|
938
|
+
function ot(e) {
|
939
|
+
var r = e.typeKey, t = e.defaultDropEffect, n = /* @__PURE__ */ new WeakMap(), i = "data-drop-target-for-".concat(r), a = "[".concat(i, "]");
|
940
|
+
function o(d) {
|
941
|
+
return n.set(d.element, d), function() {
|
942
|
+
return n.delete(d.element);
|
970
943
|
};
|
971
944
|
}
|
972
|
-
function l(
|
973
|
-
return te(
|
974
|
-
attribute:
|
945
|
+
function l(d) {
|
946
|
+
return te(Ee(d.element, {
|
947
|
+
attribute: i,
|
975
948
|
value: "true"
|
976
|
-
}), o(
|
949
|
+
}), o(d));
|
977
950
|
}
|
978
|
-
function u(
|
979
|
-
var
|
980
|
-
if (
|
951
|
+
function u(d) {
|
952
|
+
var s, g, y, T, w = d.source, D = d.target, m = d.input, S = d.event, b = d.result, h = b === void 0 ? [] : b;
|
953
|
+
if (S === void 0)
|
981
954
|
return h;
|
982
|
-
const E =
|
983
|
-
if (
|
984
|
-
return
|
985
|
-
source:
|
986
|
-
target:
|
955
|
+
const E = S.composedPath();
|
956
|
+
if (D = E.find((K) => K instanceof Element ? K.hasAttribute("data-drop-target-for-element") : !1), D = D ?? E[0], !(D instanceof Element))
|
957
|
+
return D instanceof Node ? u({
|
958
|
+
source: w,
|
959
|
+
target: D.parentElement,
|
987
960
|
input: m,
|
988
961
|
result: h
|
989
962
|
}) : h;
|
990
|
-
var j =
|
963
|
+
var j = D.closest(a);
|
991
964
|
if (j == null)
|
992
965
|
return h;
|
993
|
-
var
|
994
|
-
if (
|
966
|
+
var O = n.get(j);
|
967
|
+
if (O == null)
|
995
968
|
return h;
|
996
969
|
var P = {
|
997
970
|
input: m,
|
998
|
-
source:
|
999
|
-
element:
|
971
|
+
source: w,
|
972
|
+
element: O.element
|
1000
973
|
};
|
1001
|
-
if (
|
974
|
+
if (O.canDrop && !O.canDrop(P))
|
1002
975
|
return u({
|
1003
|
-
source:
|
1004
|
-
target:
|
976
|
+
source: w,
|
977
|
+
target: O.element.parentElement,
|
1005
978
|
input: m,
|
1006
979
|
result: h
|
1007
980
|
});
|
1008
|
-
var x = (
|
981
|
+
var x = (s = (g = O.getData) === null || g === void 0 ? void 0 : g.call(O, P)) !== null && s !== void 0 ? s : {}, A = (y = (T = O.getDropEffect) === null || T === void 0 ? void 0 : T.call(O, P)) !== null && y !== void 0 ? y : t, I = {
|
1009
982
|
data: x,
|
1010
|
-
element:
|
983
|
+
element: O.element,
|
1011
984
|
dropEffect: A,
|
1012
985
|
// we are collecting _actual_ drop targets, so these are
|
1013
986
|
// being applied _not_ due to stickiness
|
1014
987
|
isActiveDueToStickiness: !1
|
1015
988
|
};
|
1016
989
|
return u({
|
1017
|
-
source:
|
1018
|
-
target:
|
990
|
+
source: w,
|
991
|
+
target: O.element.parentElement,
|
1019
992
|
input: m,
|
1020
993
|
// Using bubble ordering. Same ordering as `event.getPath()`
|
1021
994
|
result: [].concat(Te(h), [I])
|
1022
995
|
});
|
1023
996
|
}
|
1024
|
-
function c(
|
1025
|
-
var
|
997
|
+
function c(d) {
|
998
|
+
var s = d.eventName, g = d.payload, y = z(g.location.current.dropTargets), T;
|
1026
999
|
try {
|
1027
|
-
for (y.s(); !(
|
1028
|
-
var
|
1029
|
-
self:
|
1000
|
+
for (y.s(); !(T = y.n()).done; ) {
|
1001
|
+
var w, D = T.value, m = n.get(D.element), S = F(F({}, g), {}, {
|
1002
|
+
self: D
|
1030
1003
|
});
|
1031
|
-
m == null || (
|
1004
|
+
m == null || (w = m[s]) === null || w === void 0 || w.call(
|
1032
1005
|
m,
|
1033
1006
|
// I cannot seem to get the types right here.
|
1034
1007
|
// TS doesn't seem to like that one event can need `nativeSetDragImage`
|
1035
1008
|
// @ts-expect-error
|
1036
|
-
|
1009
|
+
S
|
1037
1010
|
);
|
1038
1011
|
}
|
1039
1012
|
} catch (b) {
|
@@ -1047,16 +1020,16 @@ function ft(e) {
|
|
1047
1020
|
onDrag: c,
|
1048
1021
|
onDragStart: c,
|
1049
1022
|
onDrop: c,
|
1050
|
-
onDropTargetChange: function(
|
1051
|
-
var g =
|
1023
|
+
onDropTargetChange: function(s) {
|
1024
|
+
var g = s.payload, y = new Set(g.location.current.dropTargets.map(function(R) {
|
1052
1025
|
return R.element;
|
1053
|
-
})),
|
1026
|
+
})), T = /* @__PURE__ */ new Set(), w = z(g.location.previous.dropTargets), D;
|
1054
1027
|
try {
|
1055
|
-
for (
|
1056
|
-
var m,
|
1057
|
-
|
1058
|
-
var b = n.get(
|
1059
|
-
self:
|
1028
|
+
for (w.s(); !(D = w.n()).done; ) {
|
1029
|
+
var m, S = D.value;
|
1030
|
+
T.add(S.element);
|
1031
|
+
var b = n.get(S.element), h = y.has(S.element), E = F(F({}, g), {}, {
|
1032
|
+
self: S
|
1060
1033
|
});
|
1061
1034
|
if (b == null || (m = b.onDropTargetChange) === null || m === void 0 || m.call(b, E), !h) {
|
1062
1035
|
var j;
|
@@ -1064,15 +1037,15 @@ function ft(e) {
|
|
1064
1037
|
}
|
1065
1038
|
}
|
1066
1039
|
} catch (R) {
|
1067
|
-
|
1040
|
+
w.e(R);
|
1068
1041
|
} finally {
|
1069
|
-
|
1042
|
+
w.f();
|
1070
1043
|
}
|
1071
|
-
var
|
1044
|
+
var O = z(g.location.current.dropTargets), P;
|
1072
1045
|
try {
|
1073
|
-
for (
|
1046
|
+
for (O.s(); !(P = O.n()).done; ) {
|
1074
1047
|
var x, A, I = P.value;
|
1075
|
-
if (!
|
1048
|
+
if (!T.has(I.element)) {
|
1076
1049
|
var K = F(F({}, g), {}, {
|
1077
1050
|
self: I
|
1078
1051
|
}), C = n.get(I.element);
|
@@ -1080,28 +1053,28 @@ function ft(e) {
|
|
1080
1053
|
}
|
1081
1054
|
}
|
1082
1055
|
} catch (R) {
|
1083
|
-
|
1056
|
+
O.e(R);
|
1084
1057
|
} finally {
|
1085
|
-
|
1058
|
+
O.f();
|
1086
1059
|
}
|
1087
1060
|
}
|
1088
1061
|
};
|
1089
|
-
function
|
1090
|
-
f[
|
1062
|
+
function p(d) {
|
1063
|
+
f[d.eventName](d);
|
1091
1064
|
}
|
1092
|
-
function
|
1093
|
-
var
|
1094
|
-
source:
|
1065
|
+
function v(d) {
|
1066
|
+
var s = d.source, g = d.target, y = d.input, T = d.event, w = d.current, D = u({
|
1067
|
+
source: s,
|
1095
1068
|
target: g,
|
1096
|
-
event:
|
1069
|
+
event: T,
|
1097
1070
|
input: y
|
1098
1071
|
});
|
1099
|
-
if (
|
1100
|
-
return
|
1101
|
-
for (var m = G(
|
1102
|
-
var E, j = m[h],
|
1103
|
-
if (
|
1104
|
-
b.push(
|
1072
|
+
if (D.length >= w.length)
|
1073
|
+
return D;
|
1074
|
+
for (var m = G(w), S = G(D), b = [], h = 0; h < m.length; h++) {
|
1075
|
+
var E, j = m[h], O = S[h];
|
1076
|
+
if (O != null) {
|
1077
|
+
b.push(O);
|
1105
1078
|
continue;
|
1106
1079
|
}
|
1107
1080
|
var P = b[h - 1], x = m[h - 1];
|
@@ -1112,7 +1085,7 @@ function ft(e) {
|
|
1112
1085
|
break;
|
1113
1086
|
var I = {
|
1114
1087
|
input: y,
|
1115
|
-
source:
|
1088
|
+
source: s,
|
1116
1089
|
element: A.element
|
1117
1090
|
};
|
1118
1091
|
if (A.canDrop && !A.canDrop(I) || !((E = A.getIsSticky) !== null && E !== void 0 && E.call(A, I)))
|
@@ -1126,88 +1099,88 @@ function ft(e) {
|
|
1126
1099
|
}
|
1127
1100
|
return {
|
1128
1101
|
dropTargetForConsumers: l,
|
1129
|
-
getIsOver:
|
1130
|
-
dispatchEvent:
|
1102
|
+
getIsOver: v,
|
1103
|
+
dispatchEvent: p
|
1131
1104
|
};
|
1132
1105
|
}
|
1133
|
-
function
|
1106
|
+
function ut(e, r) {
|
1134
1107
|
var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
1135
1108
|
if (!t) {
|
1136
|
-
if (Array.isArray(e) || (t =
|
1109
|
+
if (Array.isArray(e) || (t = lt(e)) || r) {
|
1137
1110
|
t && (e = t);
|
1138
|
-
var n = 0,
|
1111
|
+
var n = 0, i = function() {
|
1139
1112
|
};
|
1140
|
-
return { s:
|
1113
|
+
return { s: i, n: function() {
|
1141
1114
|
return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
|
1142
1115
|
}, e: function(c) {
|
1143
1116
|
throw c;
|
1144
|
-
}, f:
|
1117
|
+
}, f: i };
|
1145
1118
|
}
|
1146
1119
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
1147
1120
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
1148
1121
|
}
|
1149
|
-
var
|
1122
|
+
var a, o = !0, l = !1;
|
1150
1123
|
return { s: function() {
|
1151
1124
|
t = t.call(e);
|
1152
1125
|
}, n: function() {
|
1153
1126
|
var c = t.next();
|
1154
1127
|
return o = c.done, c;
|
1155
1128
|
}, e: function(c) {
|
1156
|
-
l = !0,
|
1129
|
+
l = !0, a = c;
|
1157
1130
|
}, f: function() {
|
1158
1131
|
try {
|
1159
1132
|
o || t.return == null || t.return();
|
1160
1133
|
} finally {
|
1161
|
-
if (l) throw
|
1134
|
+
if (l) throw a;
|
1162
1135
|
}
|
1163
1136
|
} };
|
1164
1137
|
}
|
1165
|
-
function
|
1138
|
+
function lt(e, r) {
|
1166
1139
|
if (e) {
|
1167
|
-
if (typeof e == "string") return
|
1140
|
+
if (typeof e == "string") return pe(e, r);
|
1168
1141
|
var t = {}.toString.call(e).slice(8, -1);
|
1169
|
-
return t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set" ? Array.from(e) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ?
|
1142
|
+
return t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set" ? Array.from(e) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? pe(e, r) : void 0;
|
1170
1143
|
}
|
1171
1144
|
}
|
1172
|
-
function
|
1145
|
+
function pe(e, r) {
|
1173
1146
|
(r == null || r > e.length) && (r = e.length);
|
1174
1147
|
for (var t = 0, n = Array(r); t < r; t++) n[t] = e[t];
|
1175
1148
|
return n;
|
1176
1149
|
}
|
1177
|
-
function
|
1150
|
+
function ge(e, r) {
|
1178
1151
|
var t = Object.keys(e);
|
1179
1152
|
if (Object.getOwnPropertySymbols) {
|
1180
1153
|
var n = Object.getOwnPropertySymbols(e);
|
1181
|
-
r && (n = n.filter(function(
|
1182
|
-
return Object.getOwnPropertyDescriptor(e,
|
1154
|
+
r && (n = n.filter(function(i) {
|
1155
|
+
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
1183
1156
|
})), t.push.apply(t, n);
|
1184
1157
|
}
|
1185
1158
|
return t;
|
1186
1159
|
}
|
1187
|
-
function
|
1160
|
+
function ct(e) {
|
1188
1161
|
for (var r = 1; r < arguments.length; r++) {
|
1189
1162
|
var t = arguments[r] != null ? arguments[r] : {};
|
1190
|
-
r % 2 ?
|
1163
|
+
r % 2 ? ge(Object(t), !0).forEach(function(n) {
|
1191
1164
|
_(e, n, t[n]);
|
1192
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
1165
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ge(Object(t)).forEach(function(n) {
|
1193
1166
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
|
1194
1167
|
});
|
1195
1168
|
}
|
1196
1169
|
return e;
|
1197
1170
|
}
|
1198
|
-
function
|
1171
|
+
function dt() {
|
1199
1172
|
var e = /* @__PURE__ */ new Set(), r = null;
|
1200
|
-
function t(
|
1201
|
-
r && (!
|
1173
|
+
function t(a) {
|
1174
|
+
r && (!a.canMonitor || a.canMonitor(r.canMonitorArgs)) && r.active.add(a);
|
1202
1175
|
}
|
1203
|
-
function n(
|
1204
|
-
var o =
|
1176
|
+
function n(a) {
|
1177
|
+
var o = ct({}, a);
|
1205
1178
|
return e.add(o), t(o), function() {
|
1206
1179
|
e.delete(o), r && r.active.delete(o);
|
1207
1180
|
};
|
1208
1181
|
}
|
1209
|
-
function a
|
1210
|
-
var o =
|
1182
|
+
function i(a) {
|
1183
|
+
var o = a.eventName, l = a.payload;
|
1211
1184
|
if (o === "onGenerateDragPreview") {
|
1212
1185
|
r = {
|
1213
1186
|
canMonitorArgs: {
|
@@ -1216,7 +1189,7 @@ function yt() {
|
|
1216
1189
|
},
|
1217
1190
|
active: /* @__PURE__ */ new Set()
|
1218
1191
|
};
|
1219
|
-
var u =
|
1192
|
+
var u = ut(e), c;
|
1220
1193
|
try {
|
1221
1194
|
for (u.s(); !(c = u.n()).done; ) {
|
1222
1195
|
var f = c.value;
|
@@ -1229,49 +1202,49 @@ function yt() {
|
|
1229
1202
|
}
|
1230
1203
|
}
|
1231
1204
|
if (r) {
|
1232
|
-
for (var
|
1233
|
-
var
|
1234
|
-
if (r.active.has(
|
1205
|
+
for (var p = Array.from(r.active), v = 0, d = p; v < d.length; v++) {
|
1206
|
+
var s = d[v];
|
1207
|
+
if (r.active.has(s)) {
|
1235
1208
|
var g;
|
1236
|
-
(g =
|
1209
|
+
(g = s[o]) === null || g === void 0 || g.call(s, l);
|
1237
1210
|
}
|
1238
1211
|
}
|
1239
1212
|
o === "onDrop" && (r.active.clear(), r = null);
|
1240
1213
|
}
|
1241
1214
|
}
|
1242
1215
|
return {
|
1243
|
-
dispatchEvent:
|
1216
|
+
dispatchEvent: i,
|
1244
1217
|
monitorForConsumers: n
|
1245
1218
|
};
|
1246
1219
|
}
|
1247
|
-
function
|
1248
|
-
var r = e.typeKey, t = e.mount, n = e.dispatchEventToSource,
|
1220
|
+
function st(e) {
|
1221
|
+
var r = e.typeKey, t = e.mount, n = e.dispatchEventToSource, i = e.onPostDispatch, a = e.defaultDropEffect, o = dt(), l = ot({
|
1249
1222
|
typeKey: r,
|
1250
|
-
defaultDropEffect:
|
1223
|
+
defaultDropEffect: a
|
1251
1224
|
});
|
1252
|
-
function u(
|
1253
|
-
n == null || n(
|
1225
|
+
function u(p) {
|
1226
|
+
n == null || n(p), l.dispatchEvent(p), o.dispatchEvent(p), i == null || i(p);
|
1254
1227
|
}
|
1255
|
-
function c(
|
1256
|
-
var
|
1257
|
-
|
1258
|
-
event:
|
1259
|
-
dragType:
|
1228
|
+
function c(p) {
|
1229
|
+
var v = p.event, d = p.dragType;
|
1230
|
+
se.start({
|
1231
|
+
event: v,
|
1232
|
+
dragType: d,
|
1260
1233
|
getDropTargetsOver: l.getIsOver,
|
1261
1234
|
dispatchEvent: u
|
1262
1235
|
});
|
1263
1236
|
}
|
1264
1237
|
function f() {
|
1265
|
-
function
|
1266
|
-
var
|
1267
|
-
canStart:
|
1238
|
+
function p() {
|
1239
|
+
var v = {
|
1240
|
+
canStart: se.canStart,
|
1268
1241
|
start: c
|
1269
1242
|
};
|
1270
|
-
return t(
|
1243
|
+
return t(v);
|
1271
1244
|
}
|
1272
|
-
return
|
1245
|
+
return at({
|
1273
1246
|
typeKey: r,
|
1274
|
-
mount:
|
1247
|
+
mount: p
|
1275
1248
|
});
|
1276
1249
|
}
|
1277
1250
|
return {
|
@@ -1280,56 +1253,56 @@ function mt(e) {
|
|
1280
1253
|
monitor: o.monitorForConsumers
|
1281
1254
|
};
|
1282
1255
|
}
|
1283
|
-
var
|
1256
|
+
var ft = ee(function() {
|
1284
1257
|
return navigator.userAgent.toLocaleLowerCase().includes("android");
|
1285
|
-
}),
|
1286
|
-
function
|
1287
|
-
return
|
1288
|
-
|
1258
|
+
}), vt = "pdnd:android-fallback", ye = "text/plain", pt = "text/uri-list", gt = "application/vnd.pdnd", N = /* @__PURE__ */ new WeakMap();
|
1259
|
+
function yt(e) {
|
1260
|
+
return N.set(e.element, e), function() {
|
1261
|
+
N.delete(e.element);
|
1289
1262
|
};
|
1290
1263
|
}
|
1291
|
-
var
|
1264
|
+
var me = Le(), re = st({
|
1292
1265
|
typeKey: "element",
|
1293
1266
|
defaultDropEffect: "move",
|
1294
1267
|
mount: function(r) {
|
1295
|
-
return te(
|
1268
|
+
return te(me.bindEvents(), H.bind(document, {
|
1296
1269
|
type: "dragstart",
|
1297
1270
|
listener: function(n) {
|
1298
|
-
var
|
1271
|
+
var i, a, o, l, u, c;
|
1299
1272
|
if (!r.canStart(n) || n.defaultPrevented || !n.dataTransfer)
|
1300
1273
|
return;
|
1301
|
-
const
|
1302
|
-
if (!v)
|
1303
|
-
return null;
|
1304
|
-
const p = W.get(v);
|
1274
|
+
const p = n.composedPath().find((h) => h instanceof HTMLElement && N.has(h));
|
1305
1275
|
if (!p)
|
1306
1276
|
return null;
|
1307
|
-
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1277
|
+
const v = N.get(p);
|
1278
|
+
if (!v)
|
1279
|
+
return null;
|
1280
|
+
var d = k(n), s = {
|
1281
|
+
element: v.element,
|
1282
|
+
dragHandle: (i = v.dragHandle) !== null && i !== void 0 ? i : null,
|
1283
|
+
input: d
|
1311
1284
|
};
|
1312
|
-
if (
|
1285
|
+
if (v.canDrag && !v.canDrag(s))
|
1313
1286
|
return n.preventDefault(), null;
|
1314
|
-
if (
|
1315
|
-
const E = (
|
1316
|
-
if (!
|
1287
|
+
if (v.dragHandle) {
|
1288
|
+
const E = (p.shadowRoot || document).elementFromPoint(d.clientX, d.clientY);
|
1289
|
+
if (!v.dragHandle.contains(E))
|
1317
1290
|
return n.preventDefault(), null;
|
1318
1291
|
}
|
1319
|
-
var g = (
|
1292
|
+
var g = (a = (o = v.getInitialDataForExternal) === null || o === void 0 ? void 0 : o.call(v, s)) !== null && a !== void 0 ? a : null;
|
1320
1293
|
if (g)
|
1321
|
-
for (var y = 0,
|
1322
|
-
var
|
1323
|
-
n.dataTransfer.setData(
|
1294
|
+
for (var y = 0, T = Object.entries(g); y < T.length; y++) {
|
1295
|
+
var w = he(T[y], 2), D = w[0], m = w[1];
|
1296
|
+
n.dataTransfer.setData(D, m ?? "");
|
1324
1297
|
}
|
1325
|
-
|
1326
|
-
var
|
1327
|
-
element:
|
1328
|
-
dragHandle: (l =
|
1329
|
-
data: (u = (c =
|
1298
|
+
ft() && !n.dataTransfer.types.includes(ye) && !n.dataTransfer.types.includes(pt) && n.dataTransfer.setData(ye, vt), n.dataTransfer.setData(gt, "");
|
1299
|
+
var S = {
|
1300
|
+
element: v.element,
|
1301
|
+
dragHandle: (l = v.dragHandle) !== null && l !== void 0 ? l : null,
|
1302
|
+
data: (u = (c = v.getInitialData) === null || c === void 0 ? void 0 : c.call(v, s)) !== null && u !== void 0 ? u : {}
|
1330
1303
|
}, b = {
|
1331
1304
|
type: "element",
|
1332
|
-
payload:
|
1305
|
+
payload: S,
|
1333
1306
|
startedFrom: "internal"
|
1334
1307
|
};
|
1335
1308
|
r.start({
|
@@ -1340,40 +1313,40 @@ var be = qe(), re = mt({
|
|
1340
1313
|
}));
|
1341
1314
|
},
|
1342
1315
|
dispatchEventToSource: function(r) {
|
1343
|
-
var t, n,
|
1344
|
-
(t =
|
1316
|
+
var t, n, i = r.eventName, a = r.payload;
|
1317
|
+
(t = N.get(a.source.element)) === null || t === void 0 || (n = t[i]) === null || n === void 0 || n.call(
|
1345
1318
|
t,
|
1346
1319
|
// I cannot seem to get the types right here.
|
1347
1320
|
// TS doesn't seem to like that one event can need `nativeSetDragImage`
|
1348
1321
|
// @ts-expect-error
|
1349
|
-
|
1322
|
+
a
|
1350
1323
|
);
|
1351
1324
|
},
|
1352
|
-
onPostDispatch:
|
1353
|
-
}),
|
1354
|
-
function
|
1325
|
+
onPostDispatch: me.getOnPostDispatch()
|
1326
|
+
}), ht = re.dropTarget, mt = re.monitor;
|
1327
|
+
function wt(e) {
|
1355
1328
|
return te(
|
1356
1329
|
// making the draggable register the adapter rather than drop targets
|
1357
1330
|
// this is because you *must* have a draggable element to start a drag
|
1358
1331
|
// but you _might_ not have any drop targets immediately
|
1359
1332
|
// (You might create drop targets async)
|
1360
1333
|
re.registerUsage(),
|
1361
|
-
|
1362
|
-
|
1334
|
+
yt(e),
|
1335
|
+
Ee(e.element, {
|
1363
1336
|
attribute: "draggable",
|
1364
1337
|
value: "true"
|
1365
1338
|
})
|
1366
1339
|
);
|
1367
1340
|
}
|
1368
|
-
function
|
1341
|
+
function bt() {
|
1369
1342
|
return {
|
1370
1343
|
x: 0,
|
1371
1344
|
y: 0
|
1372
1345
|
};
|
1373
1346
|
}
|
1374
|
-
function
|
1375
|
-
var r = e.render, t = e.nativeSetDragImage, n = e.getOffset,
|
1376
|
-
Object.assign(
|
1347
|
+
function Dt(e) {
|
1348
|
+
var r = e.render, t = e.nativeSetDragImage, n = e.getOffset, i = n === void 0 ? bt : n, a = document.createElement("div");
|
1349
|
+
Object.assign(a.style, {
|
1377
1350
|
// Ensuring we don't cause reflow when adding the element to the page
|
1378
1351
|
// Using `position:fixed` rather than `position:absolute` so we are
|
1379
1352
|
// positioned on the current viewport.
|
@@ -1399,33 +1372,33 @@ function jt(e) {
|
|
1399
1372
|
zIndex: De,
|
1400
1373
|
// Avoiding any additional events caused by the new element (being super safe)
|
1401
1374
|
pointerEvents: "none"
|
1402
|
-
}), document.body.append(
|
1375
|
+
}), document.body.append(a);
|
1403
1376
|
var o = r({
|
1404
|
-
container:
|
1377
|
+
container: a
|
1405
1378
|
});
|
1406
1379
|
queueMicrotask(function() {
|
1407
|
-
var c =
|
1408
|
-
container:
|
1380
|
+
var c = i({
|
1381
|
+
container: a
|
1409
1382
|
});
|
1410
|
-
if (
|
1411
|
-
var f =
|
1383
|
+
if (B()) {
|
1384
|
+
var f = a.getBoundingClientRect();
|
1412
1385
|
if (f.width === 0)
|
1413
1386
|
return;
|
1414
|
-
|
1387
|
+
a.style.left = "-".concat(f.width - 1e-4, "px");
|
1415
1388
|
}
|
1416
|
-
t == null || t(
|
1389
|
+
t == null || t(a, c.x, c.y);
|
1417
1390
|
});
|
1418
1391
|
function l() {
|
1419
|
-
u(), o == null || o(), document.body.removeChild(
|
1392
|
+
u(), o == null || o(), document.body.removeChild(a);
|
1420
1393
|
}
|
1421
|
-
var u =
|
1394
|
+
var u = mt({
|
1422
1395
|
// Remove portal in the dragstart event so that the user will never see it
|
1423
1396
|
onDragStart: l,
|
1424
1397
|
// Backup: remove portal when the drop finishes (this would be an error case)
|
1425
1398
|
onDrop: l
|
1426
1399
|
});
|
1427
1400
|
}
|
1428
|
-
const
|
1401
|
+
const Ot = (e, r) => {
|
1429
1402
|
let t = getComputedStyle(e).getPropertyValue(r);
|
1430
1403
|
for (; !t && e.parentElement; )
|
1431
1404
|
e = e.parentElement, t = getComputedStyle(e).getPropertyValue(r);
|
@@ -1433,12 +1406,8 @@ const xt = (e, r) => {
|
|
1433
1406
|
};
|
1434
1407
|
export {
|
1435
1408
|
_,
|
1436
|
-
|
1437
|
-
|
1438
|
-
|
1439
|
-
|
1440
|
-
xt as g,
|
1441
|
-
ne as i,
|
1442
|
-
At as l,
|
1443
|
-
jt as s
|
1409
|
+
wt as a,
|
1410
|
+
ht as d,
|
1411
|
+
Ot as g,
|
1412
|
+
Dt as s
|
1444
1413
|
};
|