@pantograph/vue 0.23.3 → 0.23.4
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/dist/ActionButton/index.js +1 -1
- package/dist/ActionButton/index.umd.cjs +1 -1
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-BM-HiVKZ.js +1 -0
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-C40QLnax.js → ActionButton.vue_vue_type_script_setup_true_lang-CoWtYp90.js} +2 -2
- package/dist/Alert/index.js +1 -1
- package/dist/Alert/index.umd.cjs +1 -1
- package/dist/{Alert.vue_vue_type_style_index_0_lang-x6PDS57O.js → Alert.vue_vue_type_style_index_0_lang-CsZWFSR_.js} +1 -1
- package/dist/{Alert.vue_vue_type_style_index_0_lang-DugtMNn6.js → Alert.vue_vue_type_style_index_0_lang-DmEdkb41.js} +4 -4
- package/dist/Avatar/index.js +1 -1
- package/dist/Avatar/index.umd.cjs +1 -1
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-DTxpdu2k.js → Avatar.vue_vue_type_style_index_0_lang-CcKQb0PA.js} +3 -3
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-Dbdnz5VW.js → Avatar.vue_vue_type_style_index_0_lang-DTndXzmH.js} +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/AvatarGroup/index.umd.cjs +1 -1
- package/dist/Badge/index.js +1 -1
- package/dist/Badge/index.umd.cjs +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-Dc6rezGr.js → Badge.vue_vue_type_script_setup_true_lang-Blql7wH1.js} +2 -2
- package/dist/Badge.vue_vue_type_script_setup_true_lang-CsIGsGWg.js +1 -0
- package/dist/Base/BaseBadge/BaseBadge.d.ts +1 -1
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-BMX9MX3W.js → BaseBadge.vue_vue_type_style_index_0_lang-Bhdde0lY.js} +14 -13
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-CA4e9gEN.js +1 -0
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-Ch3LDS1D.js +1 -0
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-BGYEuhbj.js → BaseButton.vue_vue_type_style_index_0_lang-stkOtvTd.js} +19 -18
- package/dist/Button/Button.d.ts +2 -2
- package/dist/Button/index.js +1 -1
- package/dist/Button/index.umd.cjs +1 -1
- package/dist/Button.vue_vue_type_script_setup_true_lang-BouXlBWO.js +1 -0
- package/dist/{Button.vue_vue_type_script_setup_true_lang-bjhWtH8H.js → Button.vue_vue_type_script_setup_true_lang-CIjMWs2s.js} +2 -2
- package/dist/Checkbox/Checkbox.d.ts +2 -2
- package/dist/Checkbox/index.js +1 -1
- package/dist/Checkbox/index.umd.cjs +1 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-2qQxhEQ0.js +224 -0
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-Bo8DiMqm.js +1 -0
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +7 -4
- package/dist/CheckboxGroup/index.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- package/dist/Chip/Chip.d.ts +1 -0
- package/dist/Chip/index.js +2 -2
- package/dist/Chip/index.umd.cjs +1 -1
- package/dist/{Chip.vue_vue_type_style_index_0_lang-Ci2Oqnfd.js → Chip.vue_vue_type_style_index_0_lang-pkEj-IcZ.js} +24 -22
- package/dist/Chip.vue_vue_type_style_index_0_lang-qKiQbAUD.js +1 -0
- package/dist/ChipGroup/index.js +1 -1
- package/dist/ChipGroup/index.umd.cjs +1 -1
- package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-Bln1W3La.js → ChipGroup.vue_vue_type_style_index_0_lang-BFHkFjPI.js} +1 -1
- package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-ZlvXsJHD.js → ChipGroup.vue_vue_type_style_index_0_lang-DmbWGoar.js} +1 -1
- package/dist/ColorPicker/index.js +1 -1
- package/dist/ColorPicker/index.umd.cjs +1 -1
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-B8rVS60w.js → ColorPicker.vue_vue_type_style_index_0_lang-CxWDk_6b.js} +263 -263
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-BnjCOPow.js → ColorPicker.vue_vue_type_style_index_0_lang-DKGxK13w.js} +2 -2
- package/dist/ColorSwatch/ColorSwatch.d.ts +1 -1
- package/dist/ColorSwatch/index.js +1 -1
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-CABlbyiP.js +1 -0
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-CjQa4I-g.js → ColorSwatch.vue_vue_type_style_index_0_lang-CAXvzEY_.js} +4 -5
- package/dist/ColorSwatchGroup/index.js +1 -1
- package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
- package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-BxBlKgbC.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-Cjn4NZYK.js} +38 -36
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-D8oB421I.js +1 -0
- package/dist/ColorTrigger/index.js +1 -1
- package/dist/ColorTrigger/index.umd.cjs +1 -1
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-BsexkD4u.js +1 -0
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-BNTg203W.js → ColorTrigger.vue_vue_type_style_index_0_lang-XqnB_VGl.js} +25 -23
- package/dist/Combobox/Combobox.d.ts +82 -0
- package/dist/Combobox/Combobox.model.d.ts +4 -0
- package/dist/Combobox/ComboboxInput.d.ts +2 -0
- package/dist/Combobox/ComboboxLabel.d.ts +16 -0
- package/dist/Combobox/ComboboxOption.d.ts +19 -0
- package/dist/Combobox/ComboboxTrigger.d.ts +4 -0
- package/dist/Combobox/ComboboxWrapper.d.ts +4 -0
- package/dist/Combobox/context.d.ts +34 -0
- package/dist/Combobox/index.d.ts +4 -0
- package/dist/Combobox/index.js +8 -0
- package/dist/Combobox/index.umd.cjs +1 -0
- package/dist/Combobox/types.d.ts +111 -0
- package/dist/Combobox.vue_vue_type_style_index_0_lang-BM7QiXKH.js +831 -0
- package/dist/Combobox.vue_vue_type_style_index_0_lang-IdKdwJfN.js +1 -0
- package/dist/ConfigProvider/index.js +5 -5
- package/dist/ConfigProvider/index.umd.cjs +1 -1
- package/dist/DataTable/DataTable.d.ts +1 -1
- package/dist/DataTable/index.js +1 -1
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/DataTable.vue_vue_type_style_index_0_lang-CnUiY5l1.js +1 -0
- package/dist/{DataTable.vue_vue_type_style_index_0_lang-9W9p_J1i.js → DataTable.vue_vue_type_style_index_0_lang-CpQ0Yn-D.js} +161 -156
- package/dist/DropZone/DropZone.d.ts +1 -1
- package/dist/DropZone/index.js +1 -1
- package/dist/DropZone/index.umd.cjs +1 -1
- package/dist/{DropZone.vue_vue_type_style_index_0_lang-CH23eQwT.js → DropZone.vue_vue_type_style_index_0_lang-BnrcUu_6.js} +2 -2
- package/dist/DropZone.vue_vue_type_style_index_0_lang-DVZrmQwL.js +1 -0
- package/dist/Empty/index.js +1 -1
- package/dist/Empty/index.umd.cjs +1 -1
- package/dist/Empty.vue_vue_type_style_index_0_lang-DidQV2p4.js +1 -0
- package/dist/{Empty.vue_vue_type_style_index_0_lang-C4a5JepF.js → Empty.vue_vue_type_style_index_0_lang-jfObDGf0.js} +1 -1
- package/dist/FloatButton/index.js +1 -1
- package/dist/FloatButton/index.umd.cjs +1 -1
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-BOFSVjFP.js +1 -0
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-BGZBnlXi.js → FloatButton.vue_vue_type_script_setup_true_lang-Br1BEY7H.js} +2 -2
- package/dist/Form/Form.d.ts +2 -2
- package/dist/Form/index.js +1 -1
- package/dist/Form/index.umd.cjs +1 -1
- package/dist/FormItem.vue_vue_type_style_index_0_lang-CwxlEgep.js +2785 -0
- package/dist/FormItem.vue_vue_type_style_index_0_lang-s7o6crR0.js +9 -0
- package/dist/GOPicker/GOPicker.d.ts +13 -8
- package/dist/GOPicker/index.js +1 -1
- package/dist/GOPicker/index.umd.cjs +1 -1
- package/dist/GraphicalObject/index.js +1 -1
- package/dist/GraphicalObject/index.umd.cjs +1 -1
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-BlFC2U5K.js +1 -0
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-BZCn44kG.js → GraphicalObject.vue_vue_type_script_setup_true_lang-C7HScEPN.js} +3 -3
- package/dist/GraphicalObjectGroup/index.js +1 -1
- package/dist/GraphicalObjectGroup/index.umd.cjs +1 -1
- package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DiSPJXBZ.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-ChJsB7QV.js} +1 -1
- package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-COvFyzfP.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DgjnAH0N.js} +1 -1
- package/dist/Icon/index.js +1 -1
- package/dist/Icon/index.umd.cjs +1 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-CbLL-Ngi.js +49 -0
- package/dist/Icon.vue_vue_type_style_index_0_lang-D3cRtJNJ.js +1 -0
- package/dist/IconButton/IconButton.d.ts +2 -2
- package/dist/IconButton/index.js +1 -1
- package/dist/IconButton/index.umd.cjs +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-BjFzPsUi.js → IconButton.vue_vue_type_script_setup_true_lang-DAX_14ed.js} +2 -2
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-DvbKC7wq.js +1 -0
- package/dist/Image/index.js +1 -1
- package/dist/Image/index.umd.cjs +1 -1
- package/dist/Image.vue_vue_type_style_index_0_lang-CGdnuyxZ.js +1 -0
- package/dist/{Image.vue_vue_type_style_index_0_lang-3vJwTwh4.js → Image.vue_vue_type_style_index_0_lang-CqilRo2A.js} +17 -16
- package/dist/IndentLevel/IndentLevel.d.ts +1 -1
- package/dist/IndentLevel/index.js +1 -1
- package/dist/IndentLevel/index.umd.cjs +1 -1
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-BWLdpspA.js → IndentLevel.vue_vue_type_style_index_0_lang-CjaQqD7w.js} +8 -8
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-DD2920xJ.js +1 -0
- package/dist/Indicator/index.js +1 -1
- package/dist/Indicator/index.umd.cjs +1 -1
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-Bnqpi2bU.js +1 -0
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-B1mn9s7i.js → Indicator.vue_vue_type_script_setup_true_lang-D5xqdZRn.js} +2 -2
- package/dist/Input/Input.d.ts +4 -4
- package/dist/Input/index.js +1 -1
- package/dist/Input/index.umd.cjs +1 -1
- package/dist/Input.vue_vue_type_style_index_0_lang-5iaTCkoa.js +1 -0
- package/dist/{Input.vue_vue_type_style_index_0_lang-BFNYYFfe.js → Input.vue_vue_type_style_index_0_lang-C-jEi11-.js} +48 -46
- package/dist/Kbd/index.js +1 -1
- package/dist/Kbd/index.umd.cjs +1 -1
- package/dist/{Kbd.vue_vue_type_style_index_0_lang-uEudChpD.js → Kbd.vue_vue_type_style_index_0_lang-BQkzD8ay.js} +1 -1
- package/dist/Kbd.vue_vue_type_style_index_0_lang-CjNtLg1e.js +1 -0
- package/dist/Label/index.js +1 -1
- package/dist/Label/index.umd.cjs +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/Link/index.umd.cjs +1 -1
- package/dist/{Link.vue_vue_type_style_index_0_lang-AsoIRQm_.js → Link.vue_vue_type_style_index_0_lang-BrS3jRuX.js} +16 -15
- package/dist/Link.vue_vue_type_style_index_0_lang-C1i1VsGw.js +1 -0
- package/dist/Menu/Menu.d.ts +6 -13
- package/dist/Menu/MenuItemWrapper.d.ts +15 -0
- package/dist/Menu/index.js +1 -1
- package/dist/Menu/index.umd.cjs +1 -1
- package/dist/MenuItem/MenuItem.d.ts +2 -26
- package/dist/MenuItem/MenuItemContent.d.ts +2 -1
- package/dist/MenuItem/index.js +1 -1
- package/dist/MenuItem/index.umd.cjs +1 -1
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-DGaSx-eQ.js +579 -0
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-DL9Njg73.js +1 -0
- package/dist/Popover/Popover.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/Popover/index.umd.cjs +1 -1
- package/dist/Popover/utils.d.ts +0 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-CZYvVeso.js +1 -0
- package/dist/Popover.vue_vue_type_style_index_0_lang-ColyiCeV.js +241 -0
- package/dist/RadioGroup/RadioGroupItem.d.ts +2 -2
- package/dist/RadioGroup/index.js +1 -1
- package/dist/RadioGroup/index.umd.cjs +1 -1
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-bWA97IMn.js → RadioGroup.vue_vue_type_script_setup_true_lang-Buet9dc2.js} +2 -2
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-lIx8QQp8.js +1 -0
- package/dist/ScrollContainer/ScrollContainer.d.ts +1 -1
- package/dist/ScrollContainer/index.js +1 -1
- package/dist/ScrollContainer/index.umd.cjs +1 -1
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-BIoD2_5T.js +1 -0
- package/dist/{ScrollContainer.vue_vue_type_style_index_0_lang-CZgFGbH_.js → ScrollContainer.vue_vue_type_style_index_0_lang-DfMU1mTu.js} +1 -1
- package/dist/Segmented/Segmented.d.ts +57 -0
- package/dist/Segmented/Segmented.model.d.ts +2 -0
- package/dist/Segmented/index.d.ts +2 -0
- package/dist/Segmented/index.js +6 -0
- package/dist/Segmented/index.umd.cjs +1 -0
- package/dist/Segmented.vue_vue_type_style_index_0_lang-DqaTvxYQ.js +1 -0
- package/dist/Segmented.vue_vue_type_style_index_0_lang-R_eXQ6g9.js +165 -0
- package/dist/Select/Select.d.ts +2 -2
- package/dist/Select/context.d.ts +1 -3
- package/dist/Select/index.js +1 -1
- package/dist/Select/index.umd.cjs +1 -1
- package/dist/Select/types.d.ts +1 -0
- package/dist/Select.vue_vue_type_style_index_0_lang-Bc9kyMDB.js +1 -0
- package/dist/Select.vue_vue_type_style_index_0_lang-BfUtCG_-.js +714 -0
- package/dist/Shortcut/index.js +1 -1
- package/dist/Shortcut/index.umd.cjs +1 -1
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-DOhEtw_i.js +1 -0
- package/dist/{Shortcut.vue_vue_type_style_index_0_lang-DXBz4Ysp.js → Shortcut.vue_vue_type_style_index_0_lang-TtzM0gcb.js} +2 -2
- package/dist/Skeleton/Skeleton.d.ts +1 -1
- package/dist/Spinner/index.js +1 -1
- package/dist/Spinner/index.umd.cjs +1 -1
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-DxV3D_9N.js → Spinner.vue_vue_type_style_index_0_lang-Dc9P7GsT.js} +13 -13
- package/dist/Spinner.vue_vue_type_style_index_0_lang-RE3hFFZA.js +1 -0
- package/dist/SubMenu/SubMenu.d.ts +44 -0
- package/dist/SubMenu/index.d.ts +1 -0
- package/dist/SubMenu/index.js +5 -0
- package/dist/SubMenu/index.umd.cjs +1 -0
- package/dist/Switch/Switch.d.ts +3 -3
- package/dist/Switch/index.js +1 -1
- package/dist/Switch/index.umd.cjs +1 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-DhuZK1wp.js +1 -0
- package/dist/{Switch.vue_vue_type_style_index_0_lang-BrkQxi9f.js → Switch.vue_vue_type_style_index_0_lang-jzphTPAF.js} +5 -4
- package/dist/{THead.vue_vue_type_style_index_0_lang-BcVlFS1z.js → THead.vue_vue_type_style_index_0_lang-DtBQAI4D.js} +1 -1
- package/dist/THead.vue_vue_type_style_index_0_lang-Du3rBBec.js +1 -0
- package/dist/Table/index.js +1 -1
- package/dist/Table/index.umd.cjs +1 -1
- package/dist/Textarea/Textarea.d.ts +7 -7
- package/dist/Textarea/index.js +1 -1
- package/dist/Textarea/index.umd.cjs +1 -1
- package/dist/Textarea.vue_vue_type_style_index_0_lang-BMbkTBJu.js +1 -0
- package/dist/{Textarea.vue_vue_type_style_index_0_lang-DnQgUyjY.js → Textarea.vue_vue_type_style_index_0_lang-Dbdx29In.js} +27 -25
- package/dist/Tree/Tree.model.d.ts +2 -1
- package/dist/Tree/TreeNode.d.ts +6 -6
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/index.umd.cjs +1 -1
- package/dist/Tree/utils.d.ts +1 -0
- package/dist/{Tree.vue_vue_type_style_index_0_lang-BRU_5PuO.js → Tree.vue_vue_type_style_index_0_lang-Bcy8moE2.js} +678 -695
- package/dist/Tree.vue_vue_type_style_index_0_lang-BrJHHwGl.js +6 -0
- package/dist/_getTag-CIY3u1-e.js +1 -0
- package/dist/_getTag-MDQGqxLN.js +127 -0
- package/dist/{getEmojiList-BtCA6cyU.js → getEmojiList-DSYihWrO.js} +253 -215
- package/dist/getEmojiList-kI-Nn4xv.js +1 -0
- package/dist/index-DWw7aruo.js +1 -0
- package/dist/index-jwkhq8oW.js +188 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +173 -161
- package/dist/index.umd.cjs +1 -1
- package/dist/isEmpty-bCllo8T9.js +1 -0
- package/dist/isEmpty-wdqPTIXx.js +21 -0
- package/dist/omit-B3e_dACs.js +629 -0
- package/dist/omit-DEPypqqe.js +1 -0
- package/dist/style/index.css +1 -1
- package/dist/{uniq-D8HAKpFq.js → uniq-BsN259vC.js} +17 -16
- package/dist/uniq-Dhcbw64V.js +1 -0
- package/dist/useInputDataStates-CtuCKcP6.js +57 -0
- package/dist/useInputDataStates-DEfYzXQl.js +1 -0
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.umd.cjs +1 -1
- package/dist/utils/useInputDataStates.d.ts +1 -1
- package/package.json +16 -1
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-Zbt1lDGL.js +0 -1
- package/dist/Badge.vue_vue_type_script_setup_true_lang-hG6klYy2.js +0 -1
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-VEdsFDiH.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-CcVDY3yV.js +0 -1
- package/dist/Button.vue_vue_type_script_setup_true_lang--np1Hw7N.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-5tG-1ejh.js +0 -215
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-DaWMPx_d.js +0 -1
- package/dist/Chip.vue_vue_type_style_index_0_lang-DqVcmql_.js +0 -1
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-BCkqRsud.js +0 -1
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-DBbTuynH.js +0 -1
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-Brci1et_.js +0 -1
- package/dist/DataTable.vue_vue_type_style_index_0_lang-DOJv5evl.js +0 -1
- package/dist/DropZone.vue_vue_type_style_index_0_lang-oJc56iXj.js +0 -1
- package/dist/Empty.vue_vue_type_style_index_0_lang-DHvpu4sq.js +0 -1
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-CaKIkb0P.js +0 -1
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-Byz-BOG1.js +0 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-Cc8Uh2lr.js +0 -9
- package/dist/Icon.vue_vue_type_style_index_0_lang-Kn_r4tp8.js +0 -3746
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-CGb0HxvX.js +0 -1
- package/dist/Image.vue_vue_type_style_index_0_lang-DVDZ0ova.js +0 -1
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-DVx2S15S.js +0 -1
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-_V0q7Zly.js +0 -1
- package/dist/Input.vue_vue_type_style_index_0_lang-HuiLdgsj.js +0 -1
- package/dist/Kbd.vue_vue_type_style_index_0_lang-CuYfgo6l.js +0 -1
- package/dist/Link.vue_vue_type_style_index_0_lang-BgwJE1ku.js +0 -1
- package/dist/Menu.vue_vue_type_style_index_0_lang-CFuwm984.js +0 -460
- package/dist/Menu.vue_vue_type_style_index_0_lang-CiyZmFBO.js +0 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-B-MX4Q7D.js +0 -242
- package/dist/Popover.vue_vue_type_style_index_0_lang-BnKgARrA.js +0 -1
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-Dq66i_P9.js +0 -1
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-CMdXXxZr.js +0 -1
- package/dist/Select.vue_vue_type_style_index_0_lang-C4F2WmaG.js +0 -698
- package/dist/Select.vue_vue_type_style_index_0_lang-D8SgxILT.js +0 -1
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-DIDsOrKm.js +0 -1
- package/dist/Spinner.vue_vue_type_style_index_0_lang-17QUeFmj.js +0 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-DISD-AzJ.js +0 -1
- package/dist/THead.vue_vue_type_style_index_0_lang-Ck81v68E.js +0 -1
- package/dist/Textarea.vue_vue_type_style_index_0_lang-CJHHqEWa.js +0 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-B9L-4ciK.js +0 -6
- package/dist/getEmojiList-Cz4Rzfi1.js +0 -1
- package/dist/uniq-Ci_ZUo6O.js +0 -1
- package/dist/useInputDataStates-BVOCxFWp.js +0 -56
- package/dist/useInputDataStates-C6bS7MJv.js +0 -1
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { defineComponent as tn, useSlots as nn, computed as
|
|
2
|
-
import { generateVariantClassList as
|
|
1
|
+
import { defineComponent as tn, useSlots as nn, computed as M, useTemplateRef as Dn, resolveComponent as Cn, createElementBlock as Xe, openBlock as pe, mergeProps as st, unref as v, createCommentVNode as Ye, createElementVNode as Yt, withDirectives as Tn, normalizeClass as Ae, createVNode as Lt, createBlock as Ue, withCtx as Be, renderSlot as $e, normalizeProps as Ge, guardReactiveProps as He, withModifiers as xn, Fragment as In, toDisplayString as On, createSlots as on, renderList as rn, vShow as kn, ref as Le, watch as ot } from "vue";
|
|
2
|
+
import { generateVariantClassList as Ee, getBemElement as fe, getBemModifier as kt, getBemBlock as Nn, usePCId as An } from "@pantograph/utils";
|
|
3
3
|
import { cva as an } from "class-variance-authority";
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
4
|
+
import { h as G, k as $t, o as Pn, j as Fn } from "./FormItem.vue_vue_type_style_index_0_lang-CwxlEgep.js";
|
|
5
|
+
import { u as wt } from "./uniq-BsN259vC.js";
|
|
6
6
|
import { g as ln } from "./options-D4et5euX.js";
|
|
7
|
-
import { createContext as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { _ as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
7
|
+
import { createContext as Mn } from "reka-ui";
|
|
8
|
+
import { _ as Bn } from "./IndentLevel.vue_vue_type_style_index_0_lang-CjaQqD7w.js";
|
|
9
|
+
import { _ as Rn } from "./Icon.vue_vue_type_style_index_0_lang-CbLL-Ngi.js";
|
|
10
|
+
import { _ as zn } from "./Checkbox.vue_vue_type_style_index_0_lang-2qQxhEQ0.js";
|
|
11
|
+
import { U as Kn, u as Xn } from "./useInputDataStates-CtuCKcP6.js";
|
|
12
|
+
import { useElementSize as Yn } from "@vueuse/core";
|
|
12
13
|
import sn from "vuedraggable";
|
|
13
|
-
import {
|
|
14
|
+
import { u as Ln, d as Gt } from "./index-jwkhq8oW.js";
|
|
15
|
+
import { last as $n } from "lodash-es";
|
|
16
|
+
import { o as Gn } from "./omit-B3e_dACs.js";
|
|
14
17
|
/**!
|
|
15
18
|
* Sortable 1.15.6
|
|
16
19
|
* @author RubaXa <trash@rubaxa.org>
|
|
@@ -27,26 +30,26 @@ function Ht(o, e) {
|
|
|
27
30
|
}
|
|
28
31
|
return n;
|
|
29
32
|
}
|
|
30
|
-
function
|
|
33
|
+
function me(o) {
|
|
31
34
|
for (var e = 1; e < arguments.length; e++) {
|
|
32
35
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
33
36
|
e % 2 ? Ht(Object(n), !0).forEach(function(t) {
|
|
34
|
-
|
|
37
|
+
Hn(o, t, n[t]);
|
|
35
38
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(n)) : Ht(Object(n)).forEach(function(t) {
|
|
36
39
|
Object.defineProperty(o, t, Object.getOwnPropertyDescriptor(n, t));
|
|
37
40
|
});
|
|
38
41
|
}
|
|
39
42
|
return o;
|
|
40
43
|
}
|
|
41
|
-
function
|
|
44
|
+
function ut(o) {
|
|
42
45
|
"@babel/helpers - typeof";
|
|
43
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
46
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? ut = function(e) {
|
|
44
47
|
return typeof e;
|
|
45
|
-
} :
|
|
48
|
+
} : ut = function(e) {
|
|
46
49
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
47
|
-
},
|
|
50
|
+
}, ut(o);
|
|
48
51
|
}
|
|
49
|
-
function
|
|
52
|
+
function Hn(o, e, n) {
|
|
50
53
|
return e in o ? Object.defineProperty(o, e, {
|
|
51
54
|
value: n,
|
|
52
55
|
enumerable: !0,
|
|
@@ -54,26 +57,26 @@ function Vn(o, e, n) {
|
|
|
54
57
|
writable: !0
|
|
55
58
|
}) : o[e] = n, o;
|
|
56
59
|
}
|
|
57
|
-
function
|
|
58
|
-
return
|
|
60
|
+
function _e() {
|
|
61
|
+
return _e = Object.assign || function(o) {
|
|
59
62
|
for (var e = 1; e < arguments.length; e++) {
|
|
60
63
|
var n = arguments[e];
|
|
61
64
|
for (var t in n)
|
|
62
65
|
Object.prototype.hasOwnProperty.call(n, t) && (o[t] = n[t]);
|
|
63
66
|
}
|
|
64
67
|
return o;
|
|
65
|
-
},
|
|
68
|
+
}, _e.apply(this, arguments);
|
|
66
69
|
}
|
|
67
|
-
function
|
|
70
|
+
function jn(o, e) {
|
|
68
71
|
if (o == null) return {};
|
|
69
72
|
var n = {}, t = Object.keys(o), i, r;
|
|
70
73
|
for (r = 0; r < t.length; r++)
|
|
71
74
|
i = t[r], !(e.indexOf(i) >= 0) && (n[i] = o[i]);
|
|
72
75
|
return n;
|
|
73
76
|
}
|
|
74
|
-
function
|
|
77
|
+
function Vn(o, e) {
|
|
75
78
|
if (o == null) return {};
|
|
76
|
-
var n =
|
|
79
|
+
var n = jn(o, e), t, i;
|
|
77
80
|
if (Object.getOwnPropertySymbols) {
|
|
78
81
|
var r = Object.getOwnPropertySymbols(o);
|
|
79
82
|
for (i = 0; i < r.length; i++)
|
|
@@ -81,22 +84,22 @@ function jn(o, e) {
|
|
|
81
84
|
}
|
|
82
85
|
return n;
|
|
83
86
|
}
|
|
84
|
-
var
|
|
85
|
-
function
|
|
87
|
+
var Wn = "1.15.6";
|
|
88
|
+
function Se(o) {
|
|
86
89
|
if (typeof window < "u" && window.navigator)
|
|
87
90
|
return !!/* @__PURE__ */ navigator.userAgent.match(o);
|
|
88
91
|
}
|
|
89
|
-
var
|
|
92
|
+
var De = Se(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), tt = Se(/Edge/i), jt = Se(/firefox/i), qe = Se(/safari/i) && !Se(/chrome/i) && !Se(/android/i), Mt = Se(/iP(ad|od|hone)/i), un = Se(/chrome/i) && Se(/android/i), dn = {
|
|
90
93
|
capture: !1,
|
|
91
94
|
passive: !1
|
|
92
95
|
};
|
|
93
96
|
function I(o, e, n) {
|
|
94
|
-
o.addEventListener(e, n, !
|
|
97
|
+
o.addEventListener(e, n, !De && dn);
|
|
95
98
|
}
|
|
96
99
|
function x(o, e, n) {
|
|
97
|
-
o.removeEventListener(e, n, !
|
|
100
|
+
o.removeEventListener(e, n, !De && dn);
|
|
98
101
|
}
|
|
99
|
-
function
|
|
102
|
+
function pt(o, e) {
|
|
100
103
|
if (e) {
|
|
101
104
|
if (e[0] === ">" && (e = e.substring(1)), o)
|
|
102
105
|
try {
|
|
@@ -119,21 +122,21 @@ function ce(o, e, n, t) {
|
|
|
119
122
|
if (o) {
|
|
120
123
|
n = n || document;
|
|
121
124
|
do {
|
|
122
|
-
if (e != null && (e[0] === ">" ? o.parentNode === n &&
|
|
125
|
+
if (e != null && (e[0] === ">" ? o.parentNode === n && pt(o, e) : pt(o, e)) || t && o === n)
|
|
123
126
|
return o;
|
|
124
127
|
if (o === n) break;
|
|
125
128
|
} while (o = cn(o));
|
|
126
129
|
}
|
|
127
130
|
return null;
|
|
128
131
|
}
|
|
129
|
-
var
|
|
132
|
+
var Vt = /\s+/g;
|
|
130
133
|
function ne(o, e, n) {
|
|
131
134
|
if (o && e)
|
|
132
135
|
if (o.classList)
|
|
133
136
|
o.classList[n ? "add" : "remove"](e);
|
|
134
137
|
else {
|
|
135
|
-
var t = (" " + o.className + " ").replace(
|
|
136
|
-
o.className = (t + (n ? " " + e : "")).replace(
|
|
138
|
+
var t = (" " + o.className + " ").replace(Vt, " ").replace(" " + e + " ", " ");
|
|
139
|
+
o.className = (t + (n ? " " + e : "")).replace(Vt, " ");
|
|
137
140
|
}
|
|
138
141
|
}
|
|
139
142
|
function E(o, e, n) {
|
|
@@ -144,7 +147,7 @@ function E(o, e, n) {
|
|
|
144
147
|
!(e in t) && e.indexOf("webkit") === -1 && (e = "-webkit-" + e), t[e] = n + (typeof n == "string" ? "" : "px");
|
|
145
148
|
}
|
|
146
149
|
}
|
|
147
|
-
function
|
|
150
|
+
function ze(o, e) {
|
|
148
151
|
var n = "";
|
|
149
152
|
if (typeof o == "string")
|
|
150
153
|
n = o;
|
|
@@ -166,24 +169,24 @@ function fn(o, e, n) {
|
|
|
166
169
|
}
|
|
167
170
|
return [];
|
|
168
171
|
}
|
|
169
|
-
function
|
|
172
|
+
function ge() {
|
|
170
173
|
var o = document.scrollingElement;
|
|
171
174
|
return o || document.documentElement;
|
|
172
175
|
}
|
|
173
176
|
function X(o, e, n, t, i) {
|
|
174
177
|
if (!(!o.getBoundingClientRect && o !== window)) {
|
|
175
|
-
var r, a, l, s, u,
|
|
176
|
-
if (o !== window && o.parentNode && o !==
|
|
178
|
+
var r, a, l, s, u, g, f;
|
|
179
|
+
if (o !== window && o.parentNode && o !== ge() ? (r = o.getBoundingClientRect(), a = r.top, l = r.left, s = r.bottom, u = r.right, g = r.height, f = r.width) : (a = 0, l = 0, s = window.innerHeight, u = window.innerWidth, g = window.innerHeight, f = window.innerWidth), (e || n) && o !== window && (i = i || o.parentNode, !De))
|
|
177
180
|
do
|
|
178
181
|
if (i && i.getBoundingClientRect && (E(i, "transform") !== "none" || n && E(i, "position") !== "static")) {
|
|
179
|
-
var
|
|
180
|
-
a -=
|
|
182
|
+
var w = i.getBoundingClientRect();
|
|
183
|
+
a -= w.top + parseInt(E(i, "border-top-width")), l -= w.left + parseInt(E(i, "border-left-width")), s = a + r.height, u = l + r.width;
|
|
181
184
|
break;
|
|
182
185
|
}
|
|
183
186
|
while (i = i.parentNode);
|
|
184
187
|
if (t && o !== window) {
|
|
185
|
-
var
|
|
186
|
-
|
|
188
|
+
var y = ze(i || o), D = y && y.a, T = y && y.d;
|
|
189
|
+
y && (a /= T, l /= D, f /= D, g /= T, s = a + g, u = l + f);
|
|
187
190
|
}
|
|
188
191
|
return {
|
|
189
192
|
top: a,
|
|
@@ -191,20 +194,20 @@ function X(o, e, n, t, i) {
|
|
|
191
194
|
bottom: s,
|
|
192
195
|
right: u,
|
|
193
196
|
width: f,
|
|
194
|
-
height:
|
|
197
|
+
height: g
|
|
195
198
|
};
|
|
196
199
|
}
|
|
197
200
|
}
|
|
198
|
-
function
|
|
199
|
-
for (var t =
|
|
201
|
+
function Wt(o, e, n) {
|
|
202
|
+
for (var t = xe(o, !0), i = X(o)[e]; t; ) {
|
|
200
203
|
var r = X(t)[n], a = void 0;
|
|
201
204
|
if (a = i >= r, !a) return t;
|
|
202
|
-
if (t ===
|
|
203
|
-
t =
|
|
205
|
+
if (t === ge()) break;
|
|
206
|
+
t = xe(t, !1);
|
|
204
207
|
}
|
|
205
208
|
return !1;
|
|
206
209
|
}
|
|
207
|
-
function
|
|
210
|
+
function Ke(o, e, n, t) {
|
|
208
211
|
for (var i = 0, r = 0, a = o.children; r < a.length; ) {
|
|
209
212
|
if (a[r].style.display !== "none" && a[r] !== S.ghost && (t || a[r] !== S.dragged) && ce(a[r], n.draggable, o, !1)) {
|
|
210
213
|
if (i === e)
|
|
@@ -216,28 +219,28 @@ function ze(o, e, n, t) {
|
|
|
216
219
|
return null;
|
|
217
220
|
}
|
|
218
221
|
function Bt(o, e) {
|
|
219
|
-
for (var n = o.lastElementChild; n && (n === S.ghost || E(n, "display") === "none" || e && !
|
|
222
|
+
for (var n = o.lastElementChild; n && (n === S.ghost || E(n, "display") === "none" || e && !pt(n, e)); )
|
|
220
223
|
n = n.previousElementSibling;
|
|
221
224
|
return n || null;
|
|
222
225
|
}
|
|
223
|
-
function
|
|
226
|
+
function le(o, e) {
|
|
224
227
|
var n = 0;
|
|
225
228
|
if (!o || !o.parentNode)
|
|
226
229
|
return -1;
|
|
227
230
|
for (; o = o.previousElementSibling; )
|
|
228
|
-
o.nodeName.toUpperCase() !== "TEMPLATE" && o !== S.clone && (!e ||
|
|
231
|
+
o.nodeName.toUpperCase() !== "TEMPLATE" && o !== S.clone && (!e || pt(o, e)) && n++;
|
|
229
232
|
return n;
|
|
230
233
|
}
|
|
231
234
|
function Ut(o) {
|
|
232
|
-
var e = 0, n = 0, t =
|
|
235
|
+
var e = 0, n = 0, t = ge();
|
|
233
236
|
if (o)
|
|
234
237
|
do {
|
|
235
|
-
var i =
|
|
238
|
+
var i = ze(o), r = i.a, a = i.d;
|
|
236
239
|
e += o.scrollLeft * r, n += o.scrollTop * a;
|
|
237
240
|
} while (o !== t && (o = o.parentNode));
|
|
238
241
|
return [e, n];
|
|
239
242
|
}
|
|
240
|
-
function
|
|
243
|
+
function Un(o, e) {
|
|
241
244
|
for (var n in o)
|
|
242
245
|
if (o.hasOwnProperty(n)) {
|
|
243
246
|
for (var t in e)
|
|
@@ -245,22 +248,22 @@ function qn(o, e) {
|
|
|
245
248
|
}
|
|
246
249
|
return -1;
|
|
247
250
|
}
|
|
248
|
-
function
|
|
249
|
-
if (!o || !o.getBoundingClientRect) return
|
|
251
|
+
function xe(o, e) {
|
|
252
|
+
if (!o || !o.getBoundingClientRect) return ge();
|
|
250
253
|
var n = o, t = !1;
|
|
251
254
|
do
|
|
252
255
|
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
253
256
|
var i = E(n);
|
|
254
257
|
if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
255
|
-
if (!n.getBoundingClientRect || n === document.body) return
|
|
258
|
+
if (!n.getBoundingClientRect || n === document.body) return ge();
|
|
256
259
|
if (t || e) return n;
|
|
257
260
|
t = !0;
|
|
258
261
|
}
|
|
259
262
|
}
|
|
260
263
|
while (n = n.parentNode);
|
|
261
|
-
return
|
|
264
|
+
return ge();
|
|
262
265
|
}
|
|
263
|
-
function
|
|
266
|
+
function qn(o, e) {
|
|
264
267
|
if (o && e)
|
|
265
268
|
for (var n in e)
|
|
266
269
|
e.hasOwnProperty(n) && (o[n] = e[n]);
|
|
@@ -280,7 +283,7 @@ function hn(o, e) {
|
|
|
280
283
|
}
|
|
281
284
|
};
|
|
282
285
|
}
|
|
283
|
-
function
|
|
286
|
+
function Zn() {
|
|
284
287
|
clearTimeout(Ze), Ze = void 0;
|
|
285
288
|
}
|
|
286
289
|
function pn(o, e, n) {
|
|
@@ -300,8 +303,8 @@ function mn(o, e, n) {
|
|
|
300
303
|
}
|
|
301
304
|
}), t.width = t.right - t.left, t.height = t.bottom - t.top, t.x = t.left, t.y = t.top, t;
|
|
302
305
|
}
|
|
303
|
-
var
|
|
304
|
-
function
|
|
306
|
+
var te = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
307
|
+
function Qn() {
|
|
305
308
|
var o = [], e;
|
|
306
309
|
return {
|
|
307
310
|
captureAnimationState: function() {
|
|
@@ -313,9 +316,9 @@ function Jn() {
|
|
|
313
316
|
target: i,
|
|
314
317
|
rect: X(i)
|
|
315
318
|
});
|
|
316
|
-
var r =
|
|
319
|
+
var r = me({}, o[o.length - 1].rect);
|
|
317
320
|
if (i.thisAnimationDuration) {
|
|
318
|
-
var a =
|
|
321
|
+
var a = ze(i, !0);
|
|
319
322
|
a && (r.top -= a.f, r.left -= a.e);
|
|
320
323
|
}
|
|
321
324
|
i.fromRect = r;
|
|
@@ -327,7 +330,7 @@ function Jn() {
|
|
|
327
330
|
o.push(t);
|
|
328
331
|
},
|
|
329
332
|
removeAnimationState: function(t) {
|
|
330
|
-
o.splice(
|
|
333
|
+
o.splice(Un(o, {
|
|
331
334
|
target: t
|
|
332
335
|
}), 1);
|
|
333
336
|
},
|
|
@@ -339,9 +342,9 @@ function Jn() {
|
|
|
339
342
|
}
|
|
340
343
|
var r = !1, a = 0;
|
|
341
344
|
o.forEach(function(l) {
|
|
342
|
-
var s = 0, u = l.target,
|
|
343
|
-
T && (f.top -= T.f, f.left -= T.e), u.toRect = f, u.thisAnimationDuration && Et(
|
|
344
|
-
(
|
|
345
|
+
var s = 0, u = l.target, g = u.fromRect, f = X(u), w = u.prevFromRect, y = u.prevToRect, D = l.rect, T = ze(u, !0);
|
|
346
|
+
T && (f.top -= T.f, f.left -= T.e), u.toRect = f, u.thisAnimationDuration && Et(w, f) && !Et(g, f) && // Make sure animatingRect is on line between toRect & fromRect
|
|
347
|
+
(D.top - f.top) / (D.left - f.left) === (g.top - f.top) / (g.left - f.left) && (s = eo(D, w, y, i.options)), Et(f, g) || (u.prevFromRect = g, u.prevToRect = f, s || (s = i.options.animation), i.animate(u, D, f, s)), s && (r = !0, a = Math.max(a, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
345
348
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
346
349
|
}, s), u.thisAnimationDuration = s);
|
|
347
350
|
}), clearTimeout(e), r ? e = setTimeout(function() {
|
|
@@ -351,30 +354,30 @@ function Jn() {
|
|
|
351
354
|
animate: function(t, i, r, a) {
|
|
352
355
|
if (a) {
|
|
353
356
|
E(t, "transition", ""), E(t, "transform", "");
|
|
354
|
-
var l =
|
|
355
|
-
t.animatingX = !!
|
|
357
|
+
var l = ze(this.el), s = l && l.a, u = l && l.d, g = (i.left - r.left) / (s || 1), f = (i.top - r.top) / (u || 1);
|
|
358
|
+
t.animatingX = !!g, t.animatingY = !!f, E(t, "transform", "translate3d(" + g + "px," + f + "px,0)"), this.forRepaintDummy = Jn(t), E(t, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), E(t, "transform", "translate3d(0,0,0)"), typeof t.animated == "number" && clearTimeout(t.animated), t.animated = setTimeout(function() {
|
|
356
359
|
E(t, "transition", ""), E(t, "transform", ""), t.animated = !1, t.animatingX = !1, t.animatingY = !1;
|
|
357
360
|
}, a);
|
|
358
361
|
}
|
|
359
362
|
}
|
|
360
363
|
};
|
|
361
364
|
}
|
|
362
|
-
function
|
|
365
|
+
function Jn(o) {
|
|
363
366
|
return o.offsetWidth;
|
|
364
367
|
}
|
|
365
|
-
function
|
|
368
|
+
function eo(o, e, n, t) {
|
|
366
369
|
return Math.sqrt(Math.pow(e.top - o.top, 2) + Math.pow(e.left - o.left, 2)) / Math.sqrt(Math.pow(e.top - n.top, 2) + Math.pow(e.left - n.left, 2)) * t.animation;
|
|
367
370
|
}
|
|
368
|
-
var
|
|
371
|
+
var Pe = [], St = {
|
|
369
372
|
initializeByDefault: !0
|
|
370
373
|
}, nt = {
|
|
371
374
|
mount: function(e) {
|
|
372
375
|
for (var n in St)
|
|
373
376
|
St.hasOwnProperty(n) && !(n in e) && (e[n] = St[n]);
|
|
374
|
-
|
|
377
|
+
Pe.forEach(function(t) {
|
|
375
378
|
if (t.pluginName === e.pluginName)
|
|
376
379
|
throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
|
|
377
|
-
}),
|
|
380
|
+
}), Pe.push(e);
|
|
378
381
|
},
|
|
379
382
|
pluginEvent: function(e, n, t) {
|
|
380
383
|
var i = this;
|
|
@@ -382,20 +385,20 @@ var Fe = [], St = {
|
|
|
382
385
|
i.eventCanceled = !0;
|
|
383
386
|
};
|
|
384
387
|
var r = e + "Global";
|
|
385
|
-
|
|
386
|
-
n[a.pluginName] && (n[a.pluginName][r] && n[a.pluginName][r](
|
|
388
|
+
Pe.forEach(function(a) {
|
|
389
|
+
n[a.pluginName] && (n[a.pluginName][r] && n[a.pluginName][r](me({
|
|
387
390
|
sortable: n
|
|
388
|
-
}, t)), n.options[a.pluginName] && n[a.pluginName][e] && n[a.pluginName][e](
|
|
391
|
+
}, t)), n.options[a.pluginName] && n[a.pluginName][e] && n[a.pluginName][e](me({
|
|
389
392
|
sortable: n
|
|
390
393
|
}, t)));
|
|
391
394
|
});
|
|
392
395
|
},
|
|
393
396
|
initializePlugins: function(e, n, t, i) {
|
|
394
|
-
|
|
397
|
+
Pe.forEach(function(l) {
|
|
395
398
|
var s = l.pluginName;
|
|
396
399
|
if (!(!e.options[s] && !l.initializeByDefault)) {
|
|
397
400
|
var u = new l(e, n, e.options);
|
|
398
|
-
u.sortable = e, u.options = e.options, e[s] = u,
|
|
401
|
+
u.sortable = e, u.options = e.options, e[s] = u, _e(t, u.defaults);
|
|
399
402
|
}
|
|
400
403
|
});
|
|
401
404
|
for (var r in e.options)
|
|
@@ -406,44 +409,44 @@ var Fe = [], St = {
|
|
|
406
409
|
},
|
|
407
410
|
getEventProperties: function(e, n) {
|
|
408
411
|
var t = {};
|
|
409
|
-
return
|
|
410
|
-
typeof i.eventProperties == "function" &&
|
|
412
|
+
return Pe.forEach(function(i) {
|
|
413
|
+
typeof i.eventProperties == "function" && _e(t, i.eventProperties.call(n[i.pluginName], e));
|
|
411
414
|
}), t;
|
|
412
415
|
},
|
|
413
416
|
modifyOption: function(e, n, t) {
|
|
414
417
|
var i;
|
|
415
|
-
return
|
|
418
|
+
return Pe.forEach(function(r) {
|
|
416
419
|
e[r.pluginName] && r.optionListeners && typeof r.optionListeners[n] == "function" && (i = r.optionListeners[n].call(e[r.pluginName], t));
|
|
417
420
|
}), i;
|
|
418
421
|
}
|
|
419
422
|
};
|
|
420
|
-
function
|
|
421
|
-
var e = o.sortable, n = o.rootEl, t = o.name, i = o.targetEl, r = o.cloneEl, a = o.toEl, l = o.fromEl, s = o.oldIndex, u = o.newIndex,
|
|
422
|
-
if (e = e || n && n[
|
|
423
|
-
var T, $ = e.options,
|
|
424
|
-
window.CustomEvent && !
|
|
423
|
+
function to(o) {
|
|
424
|
+
var e = o.sortable, n = o.rootEl, t = o.name, i = o.targetEl, r = o.cloneEl, a = o.toEl, l = o.fromEl, s = o.oldIndex, u = o.newIndex, g = o.oldDraggableIndex, f = o.newDraggableIndex, w = o.originalEvent, y = o.putSortable, D = o.extraEventProperties;
|
|
425
|
+
if (e = e || n && n[te], !!e) {
|
|
426
|
+
var T, $ = e.options, j = "on" + t.charAt(0).toUpperCase() + t.substr(1);
|
|
427
|
+
window.CustomEvent && !De && !tt ? T = new CustomEvent(t, {
|
|
425
428
|
bubbles: !0,
|
|
426
429
|
cancelable: !0
|
|
427
|
-
}) : (T = document.createEvent("Event"), T.initEvent(t, !0, !0)), T.to = a || n, T.from = l || n, T.item = i || n, T.clone = r, T.oldIndex = s, T.newIndex = u, T.oldDraggableIndex =
|
|
428
|
-
var
|
|
429
|
-
for (var
|
|
430
|
-
T[
|
|
431
|
-
n && n.dispatchEvent(T), $[
|
|
430
|
+
}) : (T = document.createEvent("Event"), T.initEvent(t, !0, !0)), T.to = a || n, T.from = l || n, T.item = i || n, T.clone = r, T.oldIndex = s, T.newIndex = u, T.oldDraggableIndex = g, T.newDraggableIndex = f, T.originalEvent = w, T.pullMode = y ? y.lastPutMode : void 0;
|
|
431
|
+
var N = me(me({}, D), nt.getEventProperties(t, e));
|
|
432
|
+
for (var z in N)
|
|
433
|
+
T[z] = N[z];
|
|
434
|
+
n && n.dispatchEvent(T), $[j] && $[j].call(e, T);
|
|
432
435
|
}
|
|
433
436
|
}
|
|
434
|
-
var
|
|
435
|
-
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = t.evt, r =
|
|
436
|
-
nt.pluginEvent.bind(S)(e, n,
|
|
437
|
+
var no = ["evt"], ee = function(e, n) {
|
|
438
|
+
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = t.evt, r = Vn(t, no);
|
|
439
|
+
nt.pluginEvent.bind(S)(e, n, me({
|
|
437
440
|
dragEl: d,
|
|
438
|
-
parentEl:
|
|
439
|
-
ghostEl:
|
|
440
|
-
rootEl:
|
|
441
|
-
nextEl:
|
|
442
|
-
lastDownEl:
|
|
443
|
-
cloneEl:
|
|
444
|
-
cloneHidden:
|
|
445
|
-
dragStarted:
|
|
446
|
-
putSortable:
|
|
441
|
+
parentEl: R,
|
|
442
|
+
ghostEl: _,
|
|
443
|
+
rootEl: F,
|
|
444
|
+
nextEl: Ne,
|
|
445
|
+
lastDownEl: dt,
|
|
446
|
+
cloneEl: B,
|
|
447
|
+
cloneHidden: Te,
|
|
448
|
+
dragStarted: je,
|
|
449
|
+
putSortable: H,
|
|
447
450
|
activeSortable: S.active,
|
|
448
451
|
originalEvent: i,
|
|
449
452
|
oldIndex: Re,
|
|
@@ -453,13 +456,13 @@ var oo = ["evt"], J = function(e, n) {
|
|
|
453
456
|
hideGhostForTarget: wn,
|
|
454
457
|
unhideGhostForTarget: En,
|
|
455
458
|
cloneNowHidden: function() {
|
|
456
|
-
|
|
459
|
+
Te = !0;
|
|
457
460
|
},
|
|
458
461
|
cloneNowShown: function() {
|
|
459
|
-
|
|
462
|
+
Te = !1;
|
|
460
463
|
},
|
|
461
464
|
dispatchSortableEvent: function(l) {
|
|
462
|
-
|
|
465
|
+
Q({
|
|
463
466
|
sortable: n,
|
|
464
467
|
name: l,
|
|
465
468
|
originalEvent: i
|
|
@@ -467,27 +470,27 @@ var oo = ["evt"], J = function(e, n) {
|
|
|
467
470
|
}
|
|
468
471
|
}, r));
|
|
469
472
|
};
|
|
470
|
-
function
|
|
471
|
-
|
|
472
|
-
putSortable:
|
|
473
|
-
cloneEl:
|
|
473
|
+
function Q(o) {
|
|
474
|
+
to(me({
|
|
475
|
+
putSortable: H,
|
|
476
|
+
cloneEl: B,
|
|
474
477
|
targetEl: d,
|
|
475
|
-
rootEl:
|
|
478
|
+
rootEl: F,
|
|
476
479
|
oldIndex: Re,
|
|
477
480
|
oldDraggableIndex: Qe,
|
|
478
481
|
newIndex: oe,
|
|
479
482
|
newDraggableIndex: Ce
|
|
480
483
|
}, o));
|
|
481
484
|
}
|
|
482
|
-
var d,
|
|
483
|
-
if (
|
|
484
|
-
if (
|
|
485
|
+
var d, R, _, F, Ne, dt, B, Te, Re, oe, Qe, Ce, it, H, Me = !1, gt = !1, mt = [], Oe, de, _t, Dt, qt, Zt, je, Fe, Je, et = !1, rt = !1, ct, U, Ct = [], Nt = !1, vt = [], bt = typeof document < "u", at = Mt, Qt = tt || De ? "cssFloat" : "float", oo = bt && !un && !Mt && "draggable" in document.createElement("div"), vn = function() {
|
|
486
|
+
if (bt) {
|
|
487
|
+
if (De)
|
|
485
488
|
return !1;
|
|
486
489
|
var o = document.createElement("x");
|
|
487
490
|
return o.style.cssText = "pointer-events:auto", o.style.pointerEvents === "auto";
|
|
488
491
|
}
|
|
489
|
-
}(),
|
|
490
|
-
var t = E(e), i = parseInt(t.width) - parseInt(t.paddingLeft) - parseInt(t.paddingRight) - parseInt(t.borderLeftWidth) - parseInt(t.borderRightWidth), r =
|
|
492
|
+
}(), yn = function(e, n) {
|
|
493
|
+
var t = E(e), i = parseInt(t.width) - parseInt(t.paddingLeft) - parseInt(t.paddingRight) - parseInt(t.borderLeftWidth) - parseInt(t.borderRightWidth), r = Ke(e, 0, n), a = Ke(e, 1, n), l = r && E(r), s = a && E(a), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + X(r).width, g = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + X(a).width;
|
|
491
494
|
if (t.display === "flex")
|
|
492
495
|
return t.flexDirection === "column" || t.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
493
496
|
if (t.display === "grid")
|
|
@@ -496,23 +499,23 @@ var d, B, D, P, Pe, ct, F, xe, Re, oe, Qe, Ce, it, G, Be = !1, mt = !1, vt = [],
|
|
|
496
499
|
var f = l.float === "left" ? "left" : "right";
|
|
497
500
|
return a && (s.clear === "both" || s.clear === f) ? "vertical" : "horizontal";
|
|
498
501
|
}
|
|
499
|
-
return r && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= i && t[Qt] === "none" || a && t[Qt] === "none" && u +
|
|
500
|
-
},
|
|
502
|
+
return r && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= i && t[Qt] === "none" || a && t[Qt] === "none" && u + g > i) ? "vertical" : "horizontal";
|
|
503
|
+
}, io = function(e, n, t) {
|
|
501
504
|
var i = t ? e.left : e.top, r = t ? e.right : e.bottom, a = t ? e.width : e.height, l = t ? n.left : n.top, s = t ? n.right : n.bottom, u = t ? n.width : n.height;
|
|
502
505
|
return i === l || r === s || i + a / 2 === l + u / 2;
|
|
503
|
-
},
|
|
506
|
+
}, ro = function(e, n) {
|
|
504
507
|
var t;
|
|
505
|
-
return
|
|
506
|
-
var r = i[
|
|
508
|
+
return mt.some(function(i) {
|
|
509
|
+
var r = i[te].options.emptyInsertThreshold;
|
|
507
510
|
if (!(!r || Bt(i))) {
|
|
508
511
|
var a = X(i), l = e >= a.left - r && e <= a.right + r, s = n >= a.top - r && n <= a.bottom + r;
|
|
509
512
|
if (l && s)
|
|
510
513
|
return t = i;
|
|
511
514
|
}
|
|
512
515
|
}), t;
|
|
513
|
-
},
|
|
516
|
+
}, bn = function(e) {
|
|
514
517
|
function n(r, a) {
|
|
515
|
-
return function(l, s, u,
|
|
518
|
+
return function(l, s, u, g) {
|
|
516
519
|
var f = l.options.group.name && s.options.group.name && l.options.group.name === s.options.group.name;
|
|
517
520
|
if (r == null && (a || f))
|
|
518
521
|
return !0;
|
|
@@ -521,42 +524,42 @@ var d, B, D, P, Pe, ct, F, xe, Re, oe, Qe, Ce, it, G, Be = !1, mt = !1, vt = [],
|
|
|
521
524
|
if (a && r === "clone")
|
|
522
525
|
return r;
|
|
523
526
|
if (typeof r == "function")
|
|
524
|
-
return n(r(l, s, u,
|
|
525
|
-
var
|
|
526
|
-
return r === !0 || typeof r == "string" && r ===
|
|
527
|
+
return n(r(l, s, u, g), a)(l, s, u, g);
|
|
528
|
+
var w = (a ? l : s).options.group.name;
|
|
529
|
+
return r === !0 || typeof r == "string" && r === w || r.join && r.indexOf(w) > -1;
|
|
527
530
|
};
|
|
528
531
|
}
|
|
529
532
|
var t = {}, i = e.group;
|
|
530
|
-
(!i ||
|
|
533
|
+
(!i || ut(i) != "object") && (i = {
|
|
531
534
|
name: i
|
|
532
535
|
}), t.name = i.name, t.checkPull = n(i.pull, !0), t.checkPut = n(i.put), t.revertClone = i.revertClone, e.group = t;
|
|
533
536
|
}, wn = function() {
|
|
534
|
-
!vn &&
|
|
537
|
+
!vn && _ && E(_, "display", "none");
|
|
535
538
|
}, En = function() {
|
|
536
|
-
!vn &&
|
|
539
|
+
!vn && _ && E(_, "display", "");
|
|
537
540
|
};
|
|
538
|
-
|
|
539
|
-
if (
|
|
540
|
-
return o.preventDefault(), o.stopPropagation && o.stopPropagation(), o.stopImmediatePropagation && o.stopImmediatePropagation(),
|
|
541
|
+
bt && !un && document.addEventListener("click", function(o) {
|
|
542
|
+
if (gt)
|
|
543
|
+
return o.preventDefault(), o.stopPropagation && o.stopPropagation(), o.stopImmediatePropagation && o.stopImmediatePropagation(), gt = !1, !1;
|
|
541
544
|
}, !0);
|
|
542
|
-
var
|
|
545
|
+
var ke = function(e) {
|
|
543
546
|
if (d) {
|
|
544
547
|
e = e.touches ? e.touches[0] : e;
|
|
545
|
-
var n =
|
|
548
|
+
var n = ro(e.clientX, e.clientY);
|
|
546
549
|
if (n) {
|
|
547
550
|
var t = {};
|
|
548
551
|
for (var i in e)
|
|
549
552
|
e.hasOwnProperty(i) && (t[i] = e[i]);
|
|
550
|
-
t.target = t.rootEl = n, t.preventDefault = void 0, t.stopPropagation = void 0, n[
|
|
553
|
+
t.target = t.rootEl = n, t.preventDefault = void 0, t.stopPropagation = void 0, n[te]._onDragOver(t);
|
|
551
554
|
}
|
|
552
555
|
}
|
|
553
|
-
},
|
|
554
|
-
d && d.parentNode[
|
|
556
|
+
}, ao = function(e) {
|
|
557
|
+
d && d.parentNode[te]._isOutsideThisEl(e.target);
|
|
555
558
|
};
|
|
556
559
|
function S(o, e) {
|
|
557
560
|
if (!(o && o.nodeType && o.nodeType === 1))
|
|
558
561
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(o));
|
|
559
|
-
this.el = o, this.options = e =
|
|
562
|
+
this.el = o, this.options = e = _e({}, e), o[te] = this;
|
|
560
563
|
var n = {
|
|
561
564
|
group: null,
|
|
562
565
|
sort: !0,
|
|
@@ -572,7 +575,7 @@ function S(o, e) {
|
|
|
572
575
|
// will be set to same as swapThreshold if default
|
|
573
576
|
removeCloneOnHide: !0,
|
|
574
577
|
direction: function() {
|
|
575
|
-
return
|
|
578
|
+
return yn(o, this.options);
|
|
576
579
|
},
|
|
577
580
|
ghostClass: "sortable-ghost",
|
|
578
581
|
chosenClass: "sortable-chosen",
|
|
@@ -606,51 +609,51 @@ function S(o, e) {
|
|
|
606
609
|
nt.initializePlugins(this, o, n);
|
|
607
610
|
for (var t in n)
|
|
608
611
|
!(t in e) && (e[t] = n[t]);
|
|
609
|
-
|
|
612
|
+
bn(e);
|
|
610
613
|
for (var i in this)
|
|
611
614
|
i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
612
|
-
this.nativeDraggable = e.forceFallback ? !1 :
|
|
615
|
+
this.nativeDraggable = e.forceFallback ? !1 : oo, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? I(o, "pointerdown", this._onTapStart) : (I(o, "mousedown", this._onTapStart), I(o, "touchstart", this._onTapStart)), this.nativeDraggable && (I(o, "dragover", this), I(o, "dragenter", this)), mt.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), _e(this, Qn());
|
|
613
616
|
}
|
|
614
617
|
S.prototype = /** @lends Sortable.prototype */
|
|
615
618
|
{
|
|
616
619
|
constructor: S,
|
|
617
620
|
_isOutsideThisEl: function(e) {
|
|
618
|
-
!this.el.contains(e) && e !== this.el && (
|
|
621
|
+
!this.el.contains(e) && e !== this.el && (Fe = null);
|
|
619
622
|
},
|
|
620
623
|
_getDirection: function(e, n) {
|
|
621
624
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, n, d) : this.options.direction;
|
|
622
625
|
},
|
|
623
626
|
_onTapStart: function(e) {
|
|
624
627
|
if (e.cancelable) {
|
|
625
|
-
var n = this, t = this.el, i = this.options, r = i.preventOnFilter, a = e.type, l = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (l || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s,
|
|
626
|
-
if (
|
|
627
|
-
if (Re =
|
|
628
|
-
if (
|
|
629
|
-
|
|
628
|
+
var n = this, t = this.el, i = this.options, r = i.preventOnFilter, a = e.type, l = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (l || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, g = i.filter;
|
|
629
|
+
if (go(t), !d && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || i.disabled) && !u.isContentEditable && !(!this.nativeDraggable && qe && s && s.tagName.toUpperCase() === "SELECT") && (s = ce(s, i.draggable, t, !1), !(s && s.animated) && dt !== s)) {
|
|
630
|
+
if (Re = le(s), Qe = le(s, i.draggable), typeof g == "function") {
|
|
631
|
+
if (g.call(this, e, s, this)) {
|
|
632
|
+
Q({
|
|
630
633
|
sortable: n,
|
|
631
634
|
rootEl: u,
|
|
632
635
|
name: "filter",
|
|
633
636
|
targetEl: s,
|
|
634
637
|
toEl: t,
|
|
635
638
|
fromEl: t
|
|
636
|
-
}),
|
|
639
|
+
}), ee("filter", n, {
|
|
637
640
|
evt: e
|
|
638
641
|
}), r && e.preventDefault();
|
|
639
642
|
return;
|
|
640
643
|
}
|
|
641
|
-
} else if (
|
|
644
|
+
} else if (g && (g = g.split(",").some(function(f) {
|
|
642
645
|
if (f = ce(u, f.trim(), t, !1), f)
|
|
643
|
-
return
|
|
646
|
+
return Q({
|
|
644
647
|
sortable: n,
|
|
645
648
|
rootEl: f,
|
|
646
649
|
name: "filter",
|
|
647
650
|
targetEl: s,
|
|
648
651
|
fromEl: t,
|
|
649
652
|
toEl: t
|
|
650
|
-
}),
|
|
653
|
+
}), ee("filter", n, {
|
|
651
654
|
evt: e
|
|
652
655
|
}), !0;
|
|
653
|
-
}),
|
|
656
|
+
}), g)) {
|
|
654
657
|
r && e.preventDefault();
|
|
655
658
|
return;
|
|
656
659
|
}
|
|
@@ -662,27 +665,27 @@ S.prototype = /** @lends Sortable.prototype */
|
|
|
662
665
|
var i = this, r = i.el, a = i.options, l = r.ownerDocument, s;
|
|
663
666
|
if (t && !d && t.parentNode === r) {
|
|
664
667
|
var u = X(t);
|
|
665
|
-
if (
|
|
668
|
+
if (F = r, d = t, R = d.parentNode, Ne = d.nextSibling, dt = t, it = a.group, S.dragged = d, Oe = {
|
|
666
669
|
target: d,
|
|
667
670
|
clientX: (n || e).clientX,
|
|
668
671
|
clientY: (n || e).clientY
|
|
669
672
|
}, qt = Oe.clientX - u.left, Zt = Oe.clientY - u.top, this._lastX = (n || e).clientX, this._lastY = (n || e).clientY, d.style["will-change"] = "all", s = function() {
|
|
670
|
-
if (
|
|
673
|
+
if (ee("delayEnded", i, {
|
|
671
674
|
evt: e
|
|
672
675
|
}), S.eventCanceled) {
|
|
673
676
|
i._onDrop();
|
|
674
677
|
return;
|
|
675
678
|
}
|
|
676
|
-
i._disableDelayedDragEvents(), !
|
|
679
|
+
i._disableDelayedDragEvents(), !jt && i.nativeDraggable && (d.draggable = !0), i._triggerDragStart(e, n), Q({
|
|
677
680
|
sortable: i,
|
|
678
681
|
name: "choose",
|
|
679
682
|
originalEvent: e
|
|
680
683
|
}), ne(d, a.chosenClass, !0);
|
|
681
|
-
}, a.ignore.split(",").forEach(function(
|
|
682
|
-
fn(d,
|
|
683
|
-
}), I(l, "dragover",
|
|
684
|
+
}, a.ignore.split(",").forEach(function(g) {
|
|
685
|
+
fn(d, g.trim(), Tt);
|
|
686
|
+
}), I(l, "dragover", ke), I(l, "mousemove", ke), I(l, "touchmove", ke), a.supportPointer ? (I(l, "pointerup", i._onDrop), !this.nativeDraggable && I(l, "pointercancel", i._onDrop)) : (I(l, "mouseup", i._onDrop), I(l, "touchend", i._onDrop), I(l, "touchcancel", i._onDrop)), jt && this.nativeDraggable && (this.options.touchStartThreshold = 4, d.draggable = !0), ee("delayStart", this, {
|
|
684
687
|
evt: e
|
|
685
|
-
}), a.delay && (!a.delayOnTouchOnly || n) && (!this.nativeDraggable || !(tt ||
|
|
688
|
+
}), a.delay && (!a.delayOnTouchOnly || n) && (!this.nativeDraggable || !(tt || De))) {
|
|
686
689
|
if (S.eventCanceled) {
|
|
687
690
|
this._onDrop();
|
|
688
691
|
return;
|
|
@@ -704,21 +707,21 @@ S.prototype = /** @lends Sortable.prototype */
|
|
|
704
707
|
x(e, "mouseup", this._disableDelayedDrag), x(e, "touchend", this._disableDelayedDrag), x(e, "touchcancel", this._disableDelayedDrag), x(e, "pointerup", this._disableDelayedDrag), x(e, "pointercancel", this._disableDelayedDrag), x(e, "mousemove", this._delayedDragTouchMoveHandler), x(e, "touchmove", this._delayedDragTouchMoveHandler), x(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
705
708
|
},
|
|
706
709
|
_triggerDragStart: function(e, n) {
|
|
707
|
-
n = n || e.pointerType == "touch" && e, !this.nativeDraggable || n ? this.options.supportPointer ? I(document, "pointermove", this._onTouchMove) : n ? I(document, "touchmove", this._onTouchMove) : I(document, "mousemove", this._onTouchMove) : (I(d, "dragend", this), I(
|
|
710
|
+
n = n || e.pointerType == "touch" && e, !this.nativeDraggable || n ? this.options.supportPointer ? I(document, "pointermove", this._onTouchMove) : n ? I(document, "touchmove", this._onTouchMove) : I(document, "mousemove", this._onTouchMove) : (I(d, "dragend", this), I(F, "dragstart", this._onDragStart));
|
|
708
711
|
try {
|
|
709
|
-
document.selection ?
|
|
712
|
+
document.selection ? ft(function() {
|
|
710
713
|
document.selection.empty();
|
|
711
714
|
}) : window.getSelection().removeAllRanges();
|
|
712
715
|
} catch {
|
|
713
716
|
}
|
|
714
717
|
},
|
|
715
718
|
_dragStarted: function(e, n) {
|
|
716
|
-
if (
|
|
717
|
-
|
|
719
|
+
if (Me = !1, F && d) {
|
|
720
|
+
ee("dragStarted", this, {
|
|
718
721
|
evt: n
|
|
719
|
-
}), this.nativeDraggable && I(document, "dragover",
|
|
722
|
+
}), this.nativeDraggable && I(document, "dragover", ao);
|
|
720
723
|
var t = this.options;
|
|
721
|
-
!e && ne(d, t.dragClass, !1), ne(d, t.ghostClass, !0), S.active = this, e && this._appendGhost(),
|
|
724
|
+
!e && ne(d, t.dragClass, !1), ne(d, t.ghostClass, !0), S.active = this, e && this._appendGhost(), Q({
|
|
722
725
|
sortable: this,
|
|
723
726
|
name: "start",
|
|
724
727
|
originalEvent: n
|
|
@@ -731,11 +734,11 @@ S.prototype = /** @lends Sortable.prototype */
|
|
|
731
734
|
this._lastX = de.clientX, this._lastY = de.clientY, wn();
|
|
732
735
|
for (var e = document.elementFromPoint(de.clientX, de.clientY), n = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(de.clientX, de.clientY), e !== n); )
|
|
733
736
|
n = e;
|
|
734
|
-
if (d.parentNode[
|
|
737
|
+
if (d.parentNode[te]._isOutsideThisEl(e), n)
|
|
735
738
|
do {
|
|
736
|
-
if (n[
|
|
739
|
+
if (n[te]) {
|
|
737
740
|
var t = void 0;
|
|
738
|
-
if (t = n[
|
|
741
|
+
if (t = n[te]._onDragOver({
|
|
739
742
|
clientX: de.clientX,
|
|
740
743
|
clientY: de.clientY,
|
|
741
744
|
target: e,
|
|
@@ -750,88 +753,88 @@ S.prototype = /** @lends Sortable.prototype */
|
|
|
750
753
|
},
|
|
751
754
|
_onTouchMove: function(e) {
|
|
752
755
|
if (Oe) {
|
|
753
|
-
var n = this.options, t = n.fallbackTolerance, i = n.fallbackOffset, r = e.touches ? e.touches[0] : e, a =
|
|
754
|
-
if (!S.active && !
|
|
756
|
+
var n = this.options, t = n.fallbackTolerance, i = n.fallbackOffset, r = e.touches ? e.touches[0] : e, a = _ && ze(_, !0), l = _ && a && a.a, s = _ && a && a.d, u = at && U && Ut(U), g = (r.clientX - Oe.clientX + i.x) / (l || 1) + (u ? u[0] - Ct[0] : 0) / (l || 1), f = (r.clientY - Oe.clientY + i.y) / (s || 1) + (u ? u[1] - Ct[1] : 0) / (s || 1);
|
|
757
|
+
if (!S.active && !Me) {
|
|
755
758
|
if (t && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < t)
|
|
756
759
|
return;
|
|
757
760
|
this._onDragStart(e, !0);
|
|
758
761
|
}
|
|
759
|
-
if (
|
|
760
|
-
a ? (a.e +=
|
|
762
|
+
if (_) {
|
|
763
|
+
a ? (a.e += g - (_t || 0), a.f += f - (Dt || 0)) : a = {
|
|
761
764
|
a: 1,
|
|
762
765
|
b: 0,
|
|
763
766
|
c: 0,
|
|
764
767
|
d: 1,
|
|
765
|
-
e:
|
|
768
|
+
e: g,
|
|
766
769
|
f
|
|
767
770
|
};
|
|
768
|
-
var
|
|
769
|
-
E(
|
|
771
|
+
var w = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
|
|
772
|
+
E(_, "webkitTransform", w), E(_, "mozTransform", w), E(_, "msTransform", w), E(_, "transform", w), _t = g, Dt = f, de = r;
|
|
770
773
|
}
|
|
771
774
|
e.cancelable && e.preventDefault();
|
|
772
775
|
}
|
|
773
776
|
},
|
|
774
777
|
_appendGhost: function() {
|
|
775
|
-
if (!
|
|
776
|
-
var e = this.options.fallbackOnBody ? document.body :
|
|
778
|
+
if (!_) {
|
|
779
|
+
var e = this.options.fallbackOnBody ? document.body : F, n = X(d, !0, at, !0, e), t = this.options;
|
|
777
780
|
if (at) {
|
|
778
|
-
for (
|
|
779
|
-
|
|
780
|
-
|
|
781
|
+
for (U = e; E(U, "position") === "static" && E(U, "transform") === "none" && U !== document; )
|
|
782
|
+
U = U.parentNode;
|
|
783
|
+
U !== document.body && U !== document.documentElement ? (U === document && (U = ge()), n.top += U.scrollTop, n.left += U.scrollLeft) : U = ge(), Ct = Ut(U);
|
|
781
784
|
}
|
|
782
|
-
|
|
785
|
+
_ = d.cloneNode(!0), ne(_, t.ghostClass, !1), ne(_, t.fallbackClass, !0), ne(_, t.dragClass, !0), E(_, "transition", ""), E(_, "transform", ""), E(_, "box-sizing", "border-box"), E(_, "margin", 0), E(_, "top", n.top), E(_, "left", n.left), E(_, "width", n.width), E(_, "height", n.height), E(_, "opacity", "0.8"), E(_, "position", at ? "absolute" : "fixed"), E(_, "zIndex", "100000"), E(_, "pointerEvents", "none"), S.ghost = _, e.appendChild(_), E(_, "transform-origin", qt / parseInt(_.style.width) * 100 + "% " + Zt / parseInt(_.style.height) * 100 + "%");
|
|
783
786
|
}
|
|
784
787
|
},
|
|
785
788
|
_onDragStart: function(e, n) {
|
|
786
789
|
var t = this, i = e.dataTransfer, r = t.options;
|
|
787
|
-
if (
|
|
790
|
+
if (ee("dragStart", this, {
|
|
788
791
|
evt: e
|
|
789
792
|
}), S.eventCanceled) {
|
|
790
793
|
this._onDrop();
|
|
791
794
|
return;
|
|
792
795
|
}
|
|
793
|
-
|
|
794
|
-
|
|
796
|
+
ee("setupClone", this), S.eventCanceled || (B = gn(d), B.removeAttribute("id"), B.draggable = !1, B.style["will-change"] = "", this._hideClone(), ne(B, this.options.chosenClass, !1), S.clone = B), t.cloneId = ft(function() {
|
|
797
|
+
ee("clone", t), !S.eventCanceled && (t.options.removeCloneOnHide || F.insertBefore(B, d), t._hideClone(), Q({
|
|
795
798
|
sortable: t,
|
|
796
799
|
name: "clone"
|
|
797
800
|
}));
|
|
798
|
-
}), !n && ne(d, r.dragClass, !0), n ? (
|
|
801
|
+
}), !n && ne(d, r.dragClass, !0), n ? (gt = !0, t._loopId = setInterval(t._emulateDragOver, 50)) : (x(document, "mouseup", t._onDrop), x(document, "touchend", t._onDrop), x(document, "touchcancel", t._onDrop), i && (i.effectAllowed = "move", r.setData && r.setData.call(t, i, d)), I(document, "drop", t), E(d, "transform", "translateZ(0)")), Me = !0, t._dragStartId = ft(t._dragStarted.bind(t, n, e)), I(document, "selectstart", t), je = !0, window.getSelection().removeAllRanges(), qe && E(document.body, "user-select", "none");
|
|
799
802
|
},
|
|
800
803
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
801
804
|
_onDragOver: function(e) {
|
|
802
|
-
var n = this.el, t = e.target, i, r, a, l = this.options, s = l.group, u = S.active,
|
|
805
|
+
var n = this.el, t = e.target, i, r, a, l = this.options, s = l.group, u = S.active, g = it === s, f = l.sort, w = H || u, y, D = this, T = !1;
|
|
803
806
|
if (Nt) return;
|
|
804
|
-
function $(
|
|
805
|
-
|
|
807
|
+
function $(O, ae) {
|
|
808
|
+
ee(O, D, me({
|
|
806
809
|
evt: e,
|
|
807
|
-
isOwner:
|
|
808
|
-
axis:
|
|
810
|
+
isOwner: g,
|
|
811
|
+
axis: y ? "vertical" : "horizontal",
|
|
809
812
|
revert: a,
|
|
810
813
|
dragRect: i,
|
|
811
814
|
targetRect: r,
|
|
812
815
|
canSort: f,
|
|
813
|
-
fromSortable:
|
|
816
|
+
fromSortable: w,
|
|
814
817
|
target: t,
|
|
815
|
-
completed:
|
|
816
|
-
onMove: function(
|
|
817
|
-
return lt(
|
|
818
|
+
completed: N,
|
|
819
|
+
onMove: function(Z, p) {
|
|
820
|
+
return lt(F, n, d, i, Z, X(Z), e, p);
|
|
818
821
|
},
|
|
819
|
-
changed:
|
|
820
|
-
},
|
|
822
|
+
changed: z
|
|
823
|
+
}, ae));
|
|
821
824
|
}
|
|
822
|
-
function
|
|
823
|
-
$("dragOverAnimationCapture"),
|
|
825
|
+
function j() {
|
|
826
|
+
$("dragOverAnimationCapture"), D.captureAnimationState(), D !== w && w.captureAnimationState();
|
|
824
827
|
}
|
|
825
|
-
function
|
|
828
|
+
function N(O) {
|
|
826
829
|
return $("dragOverCompleted", {
|
|
827
|
-
insertion:
|
|
828
|
-
}),
|
|
829
|
-
$("dragOverAnimationComplete"),
|
|
830
|
-
}),
|
|
830
|
+
insertion: O
|
|
831
|
+
}), O && (g ? u._hideClone() : u._showClone(D), D !== w && (ne(d, H ? H.options.ghostClass : u.options.ghostClass, !1), ne(d, l.ghostClass, !0)), H !== D && D !== S.active ? H = D : D === S.active && H && (H = null), w === D && (D._ignoreWhileAnimating = t), D.animateAll(function() {
|
|
832
|
+
$("dragOverAnimationComplete"), D._ignoreWhileAnimating = null;
|
|
833
|
+
}), D !== w && (w.animateAll(), w._ignoreWhileAnimating = null)), (t === d && !d.animated || t === n && !t.animated) && (Fe = null), !l.dragoverBubble && !e.rootEl && t !== document && (d.parentNode[te]._isOutsideThisEl(e.target), !O && ke(e)), !l.dragoverBubble && e.stopPropagation && e.stopPropagation(), T = !0;
|
|
831
834
|
}
|
|
832
|
-
function
|
|
833
|
-
oe =
|
|
834
|
-
sortable:
|
|
835
|
+
function z() {
|
|
836
|
+
oe = le(d), Ce = le(d, l.draggable), Q({
|
|
837
|
+
sortable: D,
|
|
835
838
|
name: "change",
|
|
836
839
|
toEl: n,
|
|
837
840
|
newIndex: oe,
|
|
@@ -840,52 +843,52 @@ S.prototype = /** @lends Sortable.prototype */
|
|
|
840
843
|
});
|
|
841
844
|
}
|
|
842
845
|
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), t = ce(t, l.draggable, n, !0), $("dragOver"), S.eventCanceled) return T;
|
|
843
|
-
if (d.contains(e.target) || t.animated && t.animatingX && t.animatingY ||
|
|
844
|
-
return
|
|
845
|
-
if (
|
|
846
|
-
if (
|
|
846
|
+
if (d.contains(e.target) || t.animated && t.animatingX && t.animatingY || D._ignoreWhileAnimating === t)
|
|
847
|
+
return N(!1);
|
|
848
|
+
if (gt = !1, u && !l.disabled && (g ? f || (a = R !== F) : H === this || (this.lastPutMode = it.checkPull(this, u, d, e)) && s.checkPut(this, u, d, e))) {
|
|
849
|
+
if (y = this._getDirection(e, t) === "vertical", i = X(d), $("dragOverValid"), S.eventCanceled) return T;
|
|
847
850
|
if (a)
|
|
848
|
-
return
|
|
849
|
-
var
|
|
850
|
-
if (!
|
|
851
|
-
if (
|
|
852
|
-
return
|
|
853
|
-
if (
|
|
854
|
-
return
|
|
855
|
-
} else if (
|
|
856
|
-
var
|
|
857
|
-
if (
|
|
858
|
-
return
|
|
859
|
-
if (t =
|
|
860
|
-
return
|
|
851
|
+
return R = F, j(), this._hideClone(), $("revert"), S.eventCanceled || (Ne ? F.insertBefore(d, Ne) : F.appendChild(d)), N(!0);
|
|
852
|
+
var A = Bt(n, l.draggable);
|
|
853
|
+
if (!A || co(e, y, this) && !A.animated) {
|
|
854
|
+
if (A === d)
|
|
855
|
+
return N(!1);
|
|
856
|
+
if (A && n === e.target && (t = A), t && (r = X(t)), lt(F, n, d, i, t, r, e, !!t) !== !1)
|
|
857
|
+
return j(), A && A.nextSibling ? n.insertBefore(d, A.nextSibling) : n.appendChild(d), R = n, z(), N(!0);
|
|
858
|
+
} else if (A && uo(e, y, this)) {
|
|
859
|
+
var q = Ke(n, 0, l, !0);
|
|
860
|
+
if (q === d)
|
|
861
|
+
return N(!1);
|
|
862
|
+
if (t = q, r = X(t), lt(F, n, d, i, t, r, e, !1) !== !1)
|
|
863
|
+
return j(), n.insertBefore(d, q), R = n, z(), N(!0);
|
|
861
864
|
} else if (t.parentNode === n) {
|
|
862
865
|
r = X(t);
|
|
863
|
-
var
|
|
864
|
-
|
|
866
|
+
var L = 0, se, ie = d.parentNode !== n, P = !io(d.animated && d.toRect || i, t.animated && t.toRect || r, y), ve = y ? "top" : "left", re = Wt(t, "top", "top") || Wt(d, "top", "top"), ye = re ? re.scrollTop : void 0;
|
|
867
|
+
Fe !== t && (se = r[ve], et = !1, rt = !P && l.invertSwap || ie), L = fo(e, t, r, y, P ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, rt, Fe === t);
|
|
865
868
|
var V;
|
|
866
|
-
if (
|
|
867
|
-
var
|
|
869
|
+
if (L !== 0) {
|
|
870
|
+
var Y = le(d);
|
|
868
871
|
do
|
|
869
|
-
|
|
870
|
-
while (V && (E(V, "display") === "none" || V ===
|
|
872
|
+
Y -= L, V = R.children[Y];
|
|
873
|
+
while (V && (E(V, "display") === "none" || V === _));
|
|
871
874
|
}
|
|
872
|
-
if (
|
|
873
|
-
return
|
|
874
|
-
|
|
875
|
-
var
|
|
876
|
-
|
|
877
|
-
var
|
|
878
|
-
if (
|
|
879
|
-
return (
|
|
875
|
+
if (L === 0 || V === t)
|
|
876
|
+
return N(!1);
|
|
877
|
+
Fe = t, Je = L;
|
|
878
|
+
var he = t.nextElementSibling, J = !1;
|
|
879
|
+
J = L === 1;
|
|
880
|
+
var b = lt(F, n, d, i, t, r, e, J);
|
|
881
|
+
if (b !== !1)
|
|
882
|
+
return (b === 1 || b === -1) && (J = b === 1), Nt = !0, setTimeout(so, 30), j(), J && !he ? n.appendChild(d) : t.parentNode.insertBefore(d, J ? he : t), re && pn(re, 0, ye - re.scrollTop), R = d.parentNode, se !== void 0 && !rt && (ct = Math.abs(se - X(t)[ve])), z(), N(!0);
|
|
880
883
|
}
|
|
881
884
|
if (n.contains(d))
|
|
882
|
-
return
|
|
885
|
+
return N(!1);
|
|
883
886
|
}
|
|
884
887
|
return !1;
|
|
885
888
|
},
|
|
886
889
|
_ignoreWhileAnimating: null,
|
|
887
890
|
_offMoveEvents: function() {
|
|
888
|
-
x(document, "mousemove", this._onTouchMove), x(document, "touchmove", this._onTouchMove), x(document, "pointermove", this._onTouchMove), x(document, "dragover",
|
|
891
|
+
x(document, "mousemove", this._onTouchMove), x(document, "touchmove", this._onTouchMove), x(document, "pointermove", this._onTouchMove), x(document, "dragover", ke), x(document, "mousemove", ke), x(document, "touchmove", ke);
|
|
889
892
|
},
|
|
890
893
|
_offUpEvents: function() {
|
|
891
894
|
var e = this.el.ownerDocument;
|
|
@@ -893,62 +896,62 @@ S.prototype = /** @lends Sortable.prototype */
|
|
|
893
896
|
},
|
|
894
897
|
_onDrop: function(e) {
|
|
895
898
|
var n = this.el, t = this.options;
|
|
896
|
-
if (oe =
|
|
899
|
+
if (oe = le(d), Ce = le(d, t.draggable), ee("drop", this, {
|
|
897
900
|
evt: e
|
|
898
|
-
}),
|
|
901
|
+
}), R = d && d.parentNode, oe = le(d), Ce = le(d, t.draggable), S.eventCanceled) {
|
|
899
902
|
this._nulling();
|
|
900
903
|
return;
|
|
901
904
|
}
|
|
902
|
-
|
|
905
|
+
Me = !1, rt = !1, et = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), At(this.cloneId), At(this._dragStartId), this.nativeDraggable && (x(document, "drop", this), x(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), qe && E(document.body, "user-select", ""), E(d, "transform", ""), e && (je && (e.cancelable && e.preventDefault(), !t.dropBubble && e.stopPropagation()), _ && _.parentNode && _.parentNode.removeChild(_), (F === R || H && H.lastPutMode !== "clone") && B && B.parentNode && B.parentNode.removeChild(B), d && (this.nativeDraggable && x(d, "dragend", this), Tt(d), d.style["will-change"] = "", je && !Me && ne(d, H ? H.options.ghostClass : this.options.ghostClass, !1), ne(d, this.options.chosenClass, !1), Q({
|
|
903
906
|
sortable: this,
|
|
904
907
|
name: "unchoose",
|
|
905
|
-
toEl:
|
|
908
|
+
toEl: R,
|
|
906
909
|
newIndex: null,
|
|
907
910
|
newDraggableIndex: null,
|
|
908
911
|
originalEvent: e
|
|
909
|
-
}),
|
|
910
|
-
rootEl:
|
|
912
|
+
}), F !== R ? (oe >= 0 && (Q({
|
|
913
|
+
rootEl: R,
|
|
911
914
|
name: "add",
|
|
912
|
-
toEl:
|
|
913
|
-
fromEl:
|
|
915
|
+
toEl: R,
|
|
916
|
+
fromEl: F,
|
|
914
917
|
originalEvent: e
|
|
915
|
-
}),
|
|
918
|
+
}), Q({
|
|
916
919
|
sortable: this,
|
|
917
920
|
name: "remove",
|
|
918
|
-
toEl:
|
|
921
|
+
toEl: R,
|
|
919
922
|
originalEvent: e
|
|
920
|
-
}),
|
|
921
|
-
rootEl:
|
|
923
|
+
}), Q({
|
|
924
|
+
rootEl: R,
|
|
922
925
|
name: "sort",
|
|
923
|
-
toEl:
|
|
924
|
-
fromEl:
|
|
926
|
+
toEl: R,
|
|
927
|
+
fromEl: F,
|
|
925
928
|
originalEvent: e
|
|
926
|
-
}),
|
|
929
|
+
}), Q({
|
|
927
930
|
sortable: this,
|
|
928
931
|
name: "sort",
|
|
929
|
-
toEl:
|
|
932
|
+
toEl: R,
|
|
930
933
|
originalEvent: e
|
|
931
|
-
})),
|
|
934
|
+
})), H && H.save()) : oe !== Re && oe >= 0 && (Q({
|
|
932
935
|
sortable: this,
|
|
933
936
|
name: "update",
|
|
934
|
-
toEl:
|
|
937
|
+
toEl: R,
|
|
935
938
|
originalEvent: e
|
|
936
|
-
}),
|
|
939
|
+
}), Q({
|
|
937
940
|
sortable: this,
|
|
938
941
|
name: "sort",
|
|
939
|
-
toEl:
|
|
942
|
+
toEl: R,
|
|
940
943
|
originalEvent: e
|
|
941
|
-
})), S.active && ((oe == null || oe === -1) && (oe = Re, Ce = Qe),
|
|
944
|
+
})), S.active && ((oe == null || oe === -1) && (oe = Re, Ce = Qe), Q({
|
|
942
945
|
sortable: this,
|
|
943
946
|
name: "end",
|
|
944
|
-
toEl:
|
|
947
|
+
toEl: R,
|
|
945
948
|
originalEvent: e
|
|
946
949
|
}), this.save()))), this._nulling();
|
|
947
950
|
},
|
|
948
951
|
_nulling: function() {
|
|
949
|
-
|
|
952
|
+
ee("nulling", this), F = d = R = _ = Ne = B = dt = Te = Oe = de = je = oe = Ce = Re = Qe = Fe = Je = H = it = S.dragged = S.ghost = S.clone = S.active = null, vt.forEach(function(e) {
|
|
950
953
|
e.checked = !0;
|
|
951
|
-
}),
|
|
954
|
+
}), vt.length = _t = Dt = 0;
|
|
952
955
|
},
|
|
953
956
|
handleEvent: function(e) {
|
|
954
957
|
switch (e.type) {
|
|
@@ -958,7 +961,7 @@ S.prototype = /** @lends Sortable.prototype */
|
|
|
958
961
|
break;
|
|
959
962
|
case "dragenter":
|
|
960
963
|
case "dragover":
|
|
961
|
-
d && (this._onDragOver(e),
|
|
964
|
+
d && (this._onDragOver(e), lo(e));
|
|
962
965
|
break;
|
|
963
966
|
case "selectstart":
|
|
964
967
|
e.preventDefault();
|
|
@@ -971,7 +974,7 @@ S.prototype = /** @lends Sortable.prototype */
|
|
|
971
974
|
*/
|
|
972
975
|
toArray: function() {
|
|
973
976
|
for (var e = [], n, t = this.el.children, i = 0, r = t.length, a = this.options; i < r; i++)
|
|
974
|
-
n = t[i], ce(n, a.draggable, this.el, !1) && e.push(n.getAttribute(a.dataIdAttr) ||
|
|
977
|
+
n = t[i], ce(n, a.draggable, this.el, !1) && e.push(n.getAttribute(a.dataIdAttr) || po(n));
|
|
975
978
|
return e;
|
|
976
979
|
},
|
|
977
980
|
/**
|
|
@@ -1014,22 +1017,22 @@ S.prototype = /** @lends Sortable.prototype */
|
|
|
1014
1017
|
if (n === void 0)
|
|
1015
1018
|
return t[e];
|
|
1016
1019
|
var i = nt.modifyOption(this, e, n);
|
|
1017
|
-
typeof i < "u" ? t[e] = i : t[e] = n, e === "group" &&
|
|
1020
|
+
typeof i < "u" ? t[e] = i : t[e] = n, e === "group" && bn(t);
|
|
1018
1021
|
},
|
|
1019
1022
|
/**
|
|
1020
1023
|
* Destroy
|
|
1021
1024
|
*/
|
|
1022
1025
|
destroy: function() {
|
|
1023
|
-
|
|
1026
|
+
ee("destroy", this);
|
|
1024
1027
|
var e = this.el;
|
|
1025
|
-
e[
|
|
1028
|
+
e[te] = null, x(e, "mousedown", this._onTapStart), x(e, "touchstart", this._onTapStart), x(e, "pointerdown", this._onTapStart), this.nativeDraggable && (x(e, "dragover", this), x(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(n) {
|
|
1026
1029
|
n.removeAttribute("draggable");
|
|
1027
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
1030
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), mt.splice(mt.indexOf(this.el), 1), this.el = e = null;
|
|
1028
1031
|
},
|
|
1029
1032
|
_hideClone: function() {
|
|
1030
|
-
if (!
|
|
1031
|
-
if (
|
|
1032
|
-
E(
|
|
1033
|
+
if (!Te) {
|
|
1034
|
+
if (ee("hideClone", this), S.eventCanceled) return;
|
|
1035
|
+
E(B, "display", "none"), this.options.removeCloneOnHide && B.parentNode && B.parentNode.removeChild(B), Te = !0;
|
|
1033
1036
|
}
|
|
1034
1037
|
},
|
|
1035
1038
|
_showClone: function(e) {
|
|
@@ -1037,72 +1040,72 @@ S.prototype = /** @lends Sortable.prototype */
|
|
|
1037
1040
|
this._hideClone();
|
|
1038
1041
|
return;
|
|
1039
1042
|
}
|
|
1040
|
-
if (
|
|
1041
|
-
if (
|
|
1042
|
-
d.parentNode ==
|
|
1043
|
+
if (Te) {
|
|
1044
|
+
if (ee("showClone", this), S.eventCanceled) return;
|
|
1045
|
+
d.parentNode == F && !this.options.group.revertClone ? F.insertBefore(B, d) : Ne ? F.insertBefore(B, Ne) : F.appendChild(B), this.options.group.revertClone && this.animate(d, B), E(B, "display", ""), Te = !1;
|
|
1043
1046
|
}
|
|
1044
1047
|
}
|
|
1045
1048
|
};
|
|
1046
|
-
function
|
|
1049
|
+
function lo(o) {
|
|
1047
1050
|
o.dataTransfer && (o.dataTransfer.dropEffect = "move"), o.cancelable && o.preventDefault();
|
|
1048
1051
|
}
|
|
1049
1052
|
function lt(o, e, n, t, i, r, a, l) {
|
|
1050
|
-
var s, u = o[
|
|
1051
|
-
return window.CustomEvent && !
|
|
1053
|
+
var s, u = o[te], g = u.options.onMove, f;
|
|
1054
|
+
return window.CustomEvent && !De && !tt ? s = new CustomEvent("move", {
|
|
1052
1055
|
bubbles: !0,
|
|
1053
1056
|
cancelable: !0
|
|
1054
|
-
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = o, s.dragged = n, s.draggedRect = t, s.related = i || e, s.relatedRect = r || X(e), s.willInsertAfter = l, s.originalEvent = a, o.dispatchEvent(s),
|
|
1057
|
+
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = o, s.dragged = n, s.draggedRect = t, s.related = i || e, s.relatedRect = r || X(e), s.willInsertAfter = l, s.originalEvent = a, o.dispatchEvent(s), g && (f = g.call(u, s, a)), f;
|
|
1055
1058
|
}
|
|
1056
1059
|
function Tt(o) {
|
|
1057
1060
|
o.draggable = !1;
|
|
1058
1061
|
}
|
|
1059
|
-
function
|
|
1062
|
+
function so() {
|
|
1060
1063
|
Nt = !1;
|
|
1061
1064
|
}
|
|
1062
|
-
function
|
|
1063
|
-
var t = X(
|
|
1065
|
+
function uo(o, e, n) {
|
|
1066
|
+
var t = X(Ke(n.el, 0, n.options, !0)), i = mn(n.el, n.options, _), r = 10;
|
|
1064
1067
|
return e ? o.clientX < i.left - r || o.clientY < t.top && o.clientX < t.right : o.clientY < i.top - r || o.clientY < t.bottom && o.clientX < t.left;
|
|
1065
1068
|
}
|
|
1066
|
-
function
|
|
1067
|
-
var t = X(Bt(n.el, n.options.draggable)), i = mn(n.el, n.options,
|
|
1069
|
+
function co(o, e, n) {
|
|
1070
|
+
var t = X(Bt(n.el, n.options.draggable)), i = mn(n.el, n.options, _), r = 10;
|
|
1068
1071
|
return e ? o.clientX > i.right + r || o.clientY > t.bottom && o.clientX > t.left : o.clientY > i.bottom + r || o.clientX > t.right && o.clientY > t.top;
|
|
1069
1072
|
}
|
|
1070
|
-
function
|
|
1071
|
-
var s = t ? o.clientY : o.clientX, u = t ? n.height : n.width,
|
|
1073
|
+
function fo(o, e, n, t, i, r, a, l) {
|
|
1074
|
+
var s = t ? o.clientY : o.clientX, u = t ? n.height : n.width, g = t ? n.top : n.left, f = t ? n.bottom : n.right, w = !1;
|
|
1072
1075
|
if (!a) {
|
|
1073
|
-
if (l &&
|
|
1074
|
-
if (!et && (Je === 1 ? s >
|
|
1075
|
-
|
|
1076
|
-
else if (Je === 1 ? s <
|
|
1076
|
+
if (l && ct < u * i) {
|
|
1077
|
+
if (!et && (Je === 1 ? s > g + u * r / 2 : s < f - u * r / 2) && (et = !0), et)
|
|
1078
|
+
w = !0;
|
|
1079
|
+
else if (Je === 1 ? s < g + ct : s > f - ct)
|
|
1077
1080
|
return -Je;
|
|
1078
|
-
} else if (s >
|
|
1079
|
-
return
|
|
1081
|
+
} else if (s > g + u * (1 - i) / 2 && s < f - u * (1 - i) / 2)
|
|
1082
|
+
return ho(e);
|
|
1080
1083
|
}
|
|
1081
|
-
return
|
|
1084
|
+
return w = w || a, w && (s < g + u * r / 2 || s > f - u * r / 2) ? s > g + u / 2 ? 1 : -1 : 0;
|
|
1082
1085
|
}
|
|
1083
|
-
function
|
|
1084
|
-
return
|
|
1086
|
+
function ho(o) {
|
|
1087
|
+
return le(d) < le(o) ? 1 : -1;
|
|
1085
1088
|
}
|
|
1086
|
-
function
|
|
1089
|
+
function po(o) {
|
|
1087
1090
|
for (var e = o.tagName + o.className + o.src + o.href + o.textContent, n = e.length, t = 0; n--; )
|
|
1088
1091
|
t += e.charCodeAt(n);
|
|
1089
1092
|
return t.toString(36);
|
|
1090
1093
|
}
|
|
1091
|
-
function
|
|
1092
|
-
|
|
1094
|
+
function go(o) {
|
|
1095
|
+
vt.length = 0;
|
|
1093
1096
|
for (var e = o.getElementsByTagName("input"), n = e.length; n--; ) {
|
|
1094
1097
|
var t = e[n];
|
|
1095
|
-
t.checked &&
|
|
1098
|
+
t.checked && vt.push(t);
|
|
1096
1099
|
}
|
|
1097
1100
|
}
|
|
1098
|
-
function
|
|
1101
|
+
function ft(o) {
|
|
1099
1102
|
return setTimeout(o, 0);
|
|
1100
1103
|
}
|
|
1101
|
-
function
|
|
1104
|
+
function At(o) {
|
|
1102
1105
|
return clearTimeout(o);
|
|
1103
1106
|
}
|
|
1104
|
-
|
|
1105
|
-
(S.active ||
|
|
1107
|
+
bt && I(document, "touchmove", function(o) {
|
|
1108
|
+
(S.active || Me) && o.cancelable && o.preventDefault();
|
|
1106
1109
|
});
|
|
1107
1110
|
S.utils = {
|
|
1108
1111
|
on: I,
|
|
@@ -1112,20 +1115,20 @@ S.utils = {
|
|
|
1112
1115
|
is: function(e, n) {
|
|
1113
1116
|
return !!ce(e, n, e, !1);
|
|
1114
1117
|
},
|
|
1115
|
-
extend:
|
|
1118
|
+
extend: qn,
|
|
1116
1119
|
throttle: hn,
|
|
1117
1120
|
closest: ce,
|
|
1118
1121
|
toggleClass: ne,
|
|
1119
1122
|
clone: gn,
|
|
1120
|
-
index:
|
|
1121
|
-
nextTick:
|
|
1122
|
-
cancelNextTick:
|
|
1123
|
-
detectDirection:
|
|
1124
|
-
getChild:
|
|
1125
|
-
expando:
|
|
1123
|
+
index: le,
|
|
1124
|
+
nextTick: ft,
|
|
1125
|
+
cancelNextTick: At,
|
|
1126
|
+
detectDirection: yn,
|
|
1127
|
+
getChild: Ke,
|
|
1128
|
+
expando: te
|
|
1126
1129
|
};
|
|
1127
1130
|
S.get = function(o) {
|
|
1128
|
-
return o[
|
|
1131
|
+
return o[te];
|
|
1129
1132
|
};
|
|
1130
1133
|
S.mount = function() {
|
|
1131
1134
|
for (var o = arguments.length, e = new Array(o), n = 0; n < o; n++)
|
|
@@ -1133,15 +1136,15 @@ S.mount = function() {
|
|
|
1133
1136
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(t) {
|
|
1134
1137
|
if (!t.prototype || !t.prototype.constructor)
|
|
1135
1138
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));
|
|
1136
|
-
t.utils && (S.utils =
|
|
1139
|
+
t.utils && (S.utils = me(me({}, S.utils), t.utils)), nt.mount(t);
|
|
1137
1140
|
});
|
|
1138
1141
|
};
|
|
1139
1142
|
S.create = function(o, e) {
|
|
1140
1143
|
return new S(o, e);
|
|
1141
1144
|
};
|
|
1142
|
-
S.version =
|
|
1143
|
-
var
|
|
1144
|
-
function
|
|
1145
|
+
S.version = Wn;
|
|
1146
|
+
var K = [], Ve, Pt, Ft = !1, xt, It, yt, We;
|
|
1147
|
+
function mo() {
|
|
1145
1148
|
function o() {
|
|
1146
1149
|
this.defaults = {
|
|
1147
1150
|
scroll: !0,
|
|
@@ -1163,64 +1166,64 @@ function vo() {
|
|
|
1163
1166
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
1164
1167
|
},
|
|
1165
1168
|
drop: function() {
|
|
1166
|
-
this.sortable.nativeDraggable ? x(document, "dragover", this._handleAutoScroll) : (x(document, "pointermove", this._handleFallbackAutoScroll), x(document, "touchmove", this._handleFallbackAutoScroll), x(document, "mousemove", this._handleFallbackAutoScroll)), Jt(),
|
|
1169
|
+
this.sortable.nativeDraggable ? x(document, "dragover", this._handleAutoScroll) : (x(document, "pointermove", this._handleFallbackAutoScroll), x(document, "touchmove", this._handleFallbackAutoScroll), x(document, "mousemove", this._handleFallbackAutoScroll)), Jt(), ht(), Zn();
|
|
1167
1170
|
},
|
|
1168
1171
|
nulling: function() {
|
|
1169
|
-
yt =
|
|
1172
|
+
yt = Pt = Ve = Ft = We = xt = It = null, K.length = 0;
|
|
1170
1173
|
},
|
|
1171
1174
|
_handleFallbackAutoScroll: function(n) {
|
|
1172
1175
|
this._handleAutoScroll(n, !0);
|
|
1173
1176
|
},
|
|
1174
1177
|
_handleAutoScroll: function(n, t) {
|
|
1175
1178
|
var i = this, r = (n.touches ? n.touches[0] : n).clientX, a = (n.touches ? n.touches[0] : n).clientY, l = document.elementFromPoint(r, a);
|
|
1176
|
-
if (yt = n, t || this.options.forceAutoScrollFallback || tt ||
|
|
1177
|
-
|
|
1178
|
-
var s =
|
|
1179
|
-
Ft && (!
|
|
1180
|
-
var u =
|
|
1181
|
-
u !== s && (s = u,
|
|
1179
|
+
if (yt = n, t || this.options.forceAutoScrollFallback || tt || De || qe) {
|
|
1180
|
+
Ot(n, this.options, l, t);
|
|
1181
|
+
var s = xe(l, !0);
|
|
1182
|
+
Ft && (!We || r !== xt || a !== It) && (We && Jt(), We = setInterval(function() {
|
|
1183
|
+
var u = xe(document.elementFromPoint(r, a), !0);
|
|
1184
|
+
u !== s && (s = u, ht()), Ot(n, i.options, u, t);
|
|
1182
1185
|
}, 10), xt = r, It = a);
|
|
1183
1186
|
} else {
|
|
1184
|
-
if (!this.options.bubbleScroll ||
|
|
1185
|
-
|
|
1187
|
+
if (!this.options.bubbleScroll || xe(l, !0) === ge()) {
|
|
1188
|
+
ht();
|
|
1186
1189
|
return;
|
|
1187
1190
|
}
|
|
1188
|
-
|
|
1191
|
+
Ot(n, this.options, xe(l, !1), !1);
|
|
1189
1192
|
}
|
|
1190
1193
|
}
|
|
1191
|
-
},
|
|
1194
|
+
}, _e(o, {
|
|
1192
1195
|
pluginName: "scroll",
|
|
1193
1196
|
initializeByDefault: !0
|
|
1194
1197
|
});
|
|
1195
1198
|
}
|
|
1196
|
-
function
|
|
1197
|
-
|
|
1199
|
+
function ht() {
|
|
1200
|
+
K.forEach(function(o) {
|
|
1198
1201
|
clearInterval(o.pid);
|
|
1199
|
-
}),
|
|
1202
|
+
}), K = [];
|
|
1200
1203
|
}
|
|
1201
1204
|
function Jt() {
|
|
1202
|
-
clearInterval(
|
|
1205
|
+
clearInterval(We);
|
|
1203
1206
|
}
|
|
1204
|
-
var
|
|
1207
|
+
var Ot = hn(function(o, e, n, t) {
|
|
1205
1208
|
if (e.scroll) {
|
|
1206
|
-
var i = (o.touches ? o.touches[0] : o).clientX, r = (o.touches ? o.touches[0] : o).clientY, a = e.scrollSensitivity, l = e.scrollSpeed, s =
|
|
1207
|
-
|
|
1208
|
-
var f = 0,
|
|
1209
|
+
var i = (o.touches ? o.touches[0] : o).clientX, r = (o.touches ? o.touches[0] : o).clientY, a = e.scrollSensitivity, l = e.scrollSpeed, s = ge(), u = !1, g;
|
|
1210
|
+
Pt !== n && (Pt = n, ht(), Ve = e.scroll, g = e.scrollFn, Ve === !0 && (Ve = xe(n, !0)));
|
|
1211
|
+
var f = 0, w = Ve;
|
|
1209
1212
|
do {
|
|
1210
|
-
var
|
|
1211
|
-
|
|
1212
|
-
var
|
|
1213
|
-
if (!
|
|
1214
|
-
for (var
|
|
1215
|
-
|
|
1216
|
-
(
|
|
1213
|
+
var y = w, D = X(y), T = D.top, $ = D.bottom, j = D.left, N = D.right, z = D.width, A = D.height, q = void 0, L = void 0, se = y.scrollWidth, ie = y.scrollHeight, P = E(y), ve = y.scrollLeft, re = y.scrollTop;
|
|
1214
|
+
y === s ? (q = z < se && (P.overflowX === "auto" || P.overflowX === "scroll" || P.overflowX === "visible"), L = A < ie && (P.overflowY === "auto" || P.overflowY === "scroll" || P.overflowY === "visible")) : (q = z < se && (P.overflowX === "auto" || P.overflowX === "scroll"), L = A < ie && (P.overflowY === "auto" || P.overflowY === "scroll"));
|
|
1215
|
+
var ye = q && (Math.abs(N - i) <= a && ve + z < se) - (Math.abs(j - i) <= a && !!ve), V = L && (Math.abs($ - r) <= a && re + A < ie) - (Math.abs(T - r) <= a && !!re);
|
|
1216
|
+
if (!K[f])
|
|
1217
|
+
for (var Y = 0; Y <= f; Y++)
|
|
1218
|
+
K[Y] || (K[Y] = {});
|
|
1219
|
+
(K[f].vx != ye || K[f].vy != V || K[f].el !== y) && (K[f].el = y, K[f].vx = ye, K[f].vy = V, clearInterval(K[f].pid), (ye != 0 || V != 0) && (u = !0, K[f].pid = setInterval((function() {
|
|
1217
1220
|
t && this.layer === 0 && S.active._onTouchMove(yt);
|
|
1218
|
-
var
|
|
1219
|
-
typeof
|
|
1221
|
+
var he = K[this.layer].vy ? K[this.layer].vy * l : 0, J = K[this.layer].vx ? K[this.layer].vx * l : 0;
|
|
1222
|
+
typeof g == "function" && g.call(S.dragged.parentNode[te], J, he, o, yt, K[this.layer].el) !== "continue" || pn(K[this.layer].el, J, he);
|
|
1220
1223
|
}).bind({
|
|
1221
1224
|
layer: f
|
|
1222
1225
|
}), 24))), f++;
|
|
1223
|
-
} while (e.bubbleScroll &&
|
|
1226
|
+
} while (e.bubbleScroll && w !== s && (w = xe(w, !1)));
|
|
1224
1227
|
Ft = u;
|
|
1225
1228
|
}
|
|
1226
1229
|
}, 30), Sn = function(e) {
|
|
@@ -1228,7 +1231,7 @@ var kt = hn(function(o, e, n, t) {
|
|
|
1228
1231
|
if (n) {
|
|
1229
1232
|
var u = t || r;
|
|
1230
1233
|
l();
|
|
1231
|
-
var
|
|
1234
|
+
var g = n.changedTouches && n.changedTouches.length ? n.changedTouches[0] : n, f = document.elementFromPoint(g.clientX, g.clientY);
|
|
1232
1235
|
s(), u && !u.el.contains(f) && (a("spill"), this.onSpill({
|
|
1233
1236
|
dragEl: i,
|
|
1234
1237
|
putSortable: t
|
|
@@ -1246,29 +1249,29 @@ Rt.prototype = {
|
|
|
1246
1249
|
onSpill: function(e) {
|
|
1247
1250
|
var n = e.dragEl, t = e.putSortable;
|
|
1248
1251
|
this.sortable.captureAnimationState(), t && t.captureAnimationState();
|
|
1249
|
-
var i =
|
|
1252
|
+
var i = Ke(this.sortable.el, this.startIndex, this.options);
|
|
1250
1253
|
i ? this.sortable.el.insertBefore(n, i) : this.sortable.el.appendChild(n), this.sortable.animateAll(), t && t.animateAll();
|
|
1251
1254
|
},
|
|
1252
1255
|
drop: Sn
|
|
1253
1256
|
};
|
|
1254
|
-
|
|
1257
|
+
_e(Rt, {
|
|
1255
1258
|
pluginName: "revertOnSpill"
|
|
1256
1259
|
});
|
|
1257
|
-
function
|
|
1260
|
+
function zt() {
|
|
1258
1261
|
}
|
|
1259
|
-
|
|
1262
|
+
zt.prototype = {
|
|
1260
1263
|
onSpill: function(e) {
|
|
1261
1264
|
var n = e.dragEl, t = e.putSortable, i = t || this.sortable;
|
|
1262
1265
|
i.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), i.animateAll();
|
|
1263
1266
|
},
|
|
1264
1267
|
drop: Sn
|
|
1265
1268
|
};
|
|
1266
|
-
|
|
1269
|
+
_e(zt, {
|
|
1267
1270
|
pluginName: "removeOnSpill"
|
|
1268
1271
|
});
|
|
1269
|
-
S.mount(new
|
|
1270
|
-
S.mount(
|
|
1271
|
-
const
|
|
1272
|
+
S.mount(new mo());
|
|
1273
|
+
S.mount(zt, Rt);
|
|
1274
|
+
const vo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-md", lg: "gap-lg" }, [yo, bo] = Mn("CheckboxGroup"), wo = ["data-parents", "data-key", "data-draggable"], Eo = /* @__PURE__ */ tn({
|
|
1272
1275
|
...ln("TreeNode"),
|
|
1273
1276
|
__name: "TreeNode",
|
|
1274
1277
|
props: {
|
|
@@ -1279,11 +1282,11 @@ const bo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
|
|
|
1279
1282
|
setup(o) {
|
|
1280
1283
|
const e = o, n = nn(), t = yo(), i = an(t.prefixes.node, {
|
|
1281
1284
|
variants: {
|
|
1282
|
-
disabled:
|
|
1283
|
-
active:
|
|
1284
|
-
hasChildren:
|
|
1285
|
+
disabled: Ee("disabled", t.prefixes.node),
|
|
1286
|
+
active: Ee("active", t.prefixes.node),
|
|
1287
|
+
hasChildren: Ee("has-children", t.prefixes.node)
|
|
1285
1288
|
}
|
|
1286
|
-
}), r =
|
|
1289
|
+
}), r = M(() => {
|
|
1287
1290
|
switch (t.size.value) {
|
|
1288
1291
|
case "sm":
|
|
1289
1292
|
return "2xsm";
|
|
@@ -1291,61 +1294,65 @@ const bo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
|
|
|
1291
1294
|
case "lg":
|
|
1292
1295
|
return "xsm";
|
|
1293
1296
|
}
|
|
1294
|
-
}), a =
|
|
1297
|
+
}), a = M(() => {
|
|
1295
1298
|
switch (t.size.value) {
|
|
1296
1299
|
case "sm":
|
|
1297
1300
|
return "2xsm";
|
|
1298
1301
|
default:
|
|
1299
1302
|
return "xsm";
|
|
1300
1303
|
}
|
|
1301
|
-
}), l = (
|
|
1302
|
-
var
|
|
1303
|
-
return (
|
|
1304
|
-
}),
|
|
1304
|
+
}), l = (b) => t.getNodeField(b, "children"), s = (b) => t.getNodeField(b, "key"), u = M(() => l(G(e.item))), g = M(() => t.getNodeField(e.item, "leaf")), f = M(() => {
|
|
1305
|
+
var b;
|
|
1306
|
+
return (b = t.props) != null && b.draggable ? t.getNodeField(e.item, "draggable") ?? !0 : !1;
|
|
1307
|
+
}), w = M(() => s(e.item)), y = M(
|
|
1305
1308
|
() => !!(t.disabled.value || t.getNodeField(e.item, "disabled"))
|
|
1306
|
-
),
|
|
1309
|
+
), D = M(
|
|
1307
1310
|
() => {
|
|
1308
|
-
var
|
|
1309
|
-
return !!((
|
|
1311
|
+
var b;
|
|
1312
|
+
return !!((b = u.value) != null && b.some((O) => t.expandedKeys.value.includes(s(O))));
|
|
1310
1313
|
}
|
|
1311
|
-
), T =
|
|
1314
|
+
), T = M(
|
|
1312
1315
|
() => {
|
|
1313
|
-
var
|
|
1314
|
-
return !((
|
|
1316
|
+
var b, O;
|
|
1317
|
+
return !((b = t.dragging.value) != null && b.key && ((O = t.dragging.value) == null ? void 0 : O.key) === w.value) && t.expandedKeys.value.includes(w.value);
|
|
1315
1318
|
}
|
|
1316
|
-
), $ =
|
|
1317
|
-
var
|
|
1318
|
-
return !!(!t.dragging.value.value && ((
|
|
1319
|
-
}),
|
|
1320
|
-
|
|
1321
|
-
},
|
|
1322
|
-
const
|
|
1323
|
-
const
|
|
1324
|
-
return (
|
|
1325
|
-
}, O = (
|
|
1326
|
-
const
|
|
1327
|
-
return
|
|
1328
|
-
(
|
|
1319
|
+
), $ = M(() => {
|
|
1320
|
+
var b, O;
|
|
1321
|
+
return !!(!t.dragging.value.value && ((b = t.props) != null && b.showLine) && T.value && ((O = u.value) != null && O.length));
|
|
1322
|
+
}), j = () => {
|
|
1323
|
+
y.value || (t.props.syncCheckboxAndSelect ? q() : t.onSelect(e.item));
|
|
1324
|
+
}, N = M(() => !!t.model.value.includes(w.value)), z = M(() => {
|
|
1325
|
+
const b = (Z = e.item) => {
|
|
1326
|
+
const p = l(Z);
|
|
1327
|
+
return (p == null ? void 0 : p.length) && p.every((c) => t.checked.value.includes(s(c)));
|
|
1328
|
+
}, O = (Z = e.item) => {
|
|
1329
|
+
const p = l(Z);
|
|
1330
|
+
return p != null && p.length ? !!(p != null && p.some(
|
|
1331
|
+
(c) => t.checked.value.includes(s(c)) || O(c)
|
|
1329
1332
|
)) : !1;
|
|
1330
|
-
},
|
|
1331
|
-
return
|
|
1332
|
-
}),
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1333
|
+
}, ae = t.checked.value.includes(w.value);
|
|
1334
|
+
return b() ? (ae || t.onCheck(e.item), !0) : O() ? (ae && t.onCheck(e.item), "indeterminate") : !!ae;
|
|
1335
|
+
}), A = (b) => {
|
|
1336
|
+
t.props.syncCheckboxAndSelect || b == null || b.stopPropagation();
|
|
1337
|
+
}, q = (b) => {
|
|
1338
|
+
var Z;
|
|
1339
|
+
if (b !== void 0 && t.props.syncCheckboxAndSelect) return;
|
|
1340
|
+
if (!((Z = u.value) != null && Z.length))
|
|
1341
|
+
return t.props.syncCheckboxAndSelect && t.onSelect(e.item), t.onCheck(e.item);
|
|
1342
|
+
const O = (p = e.item) => {
|
|
1343
|
+
const c = l(p);
|
|
1344
|
+
return c != null && c.length ? c.reduce((C, h) => {
|
|
1345
|
+
const m = l(h), k = s(h);
|
|
1346
|
+
return m != null && m.length ? [...C, k, ...O(h)] : [...C, k];
|
|
1340
1347
|
}, []) : [];
|
|
1341
|
-
},
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
},
|
|
1347
|
-
t.onExpandKey(e.item,
|
|
1348
|
-
}, ie =
|
|
1348
|
+
}, ae = O(), be = {
|
|
1349
|
+
keys: [w.value, ...ae],
|
|
1350
|
+
value: !t.checked.value.includes(w.value)
|
|
1351
|
+
};
|
|
1352
|
+
return t.props.syncCheckboxAndSelect && t.onSelect(e.item, be), t.onCheck(e.item, be);
|
|
1353
|
+
}, L = M(() => [...e.parentKeys ?? [], w.value]), se = (b) => {
|
|
1354
|
+
t.onExpandKey(e.item, b);
|
|
1355
|
+
}, ie = M(() => t.dragging.value.key === w.value ? t.dragging.value.level ?? e.level : e.level), P = M(() => ie.value + 1), ve = M(() => {
|
|
1349
1356
|
switch (t.size.value) {
|
|
1350
1357
|
case "sm":
|
|
1351
1358
|
return "2xsm";
|
|
@@ -1354,139 +1361,121 @@ const bo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
|
|
|
1354
1361
|
case "lg":
|
|
1355
1362
|
return "sm";
|
|
1356
1363
|
}
|
|
1357
|
-
}), { rootBindings:
|
|
1358
|
-
getDisabled: () =>
|
|
1359
|
-
}),
|
|
1364
|
+
}), { rootBindings: re, inputBindings: ye } = Kn({
|
|
1365
|
+
getDisabled: () => y.value
|
|
1366
|
+
}), V = M(
|
|
1360
1367
|
() => {
|
|
1361
|
-
var
|
|
1362
|
-
return !!((
|
|
1368
|
+
var b, O;
|
|
1369
|
+
return !!((b = u.value) != null && b.length || (O = t.props) != null && O.lazyLoad && !g.value);
|
|
1363
1370
|
}
|
|
1364
|
-
),
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
return me(), Xe("div", st({
|
|
1373
|
-
"data-parents": (le = m(t).props) != null && le.draggable ? y.parentKeys : void 0,
|
|
1374
|
-
"data-key": (g = m(t).props) != null && g.draggable ? b.value : void 0,
|
|
1375
|
-
"data-draggable": (h = m(t).props) != null && h.draggable ? !v.value && f.value : void 0,
|
|
1371
|
+
), Y = Dn("indent"), { width: he, height: J } = Yn(Y);
|
|
1372
|
+
return (b, O) => {
|
|
1373
|
+
var be, Z, p, c, C, h, m, k, we, W, Ie, ue;
|
|
1374
|
+
const ae = Cn("TreeNode", !0);
|
|
1375
|
+
return pe(), Xe("div", st({
|
|
1376
|
+
"data-parents": (be = v(t).props) != null && be.draggable ? b.parentKeys : void 0,
|
|
1377
|
+
"data-key": (Z = v(t).props) != null && Z.draggable ? w.value : void 0,
|
|
1378
|
+
"data-draggable": (p = v(t).props) != null && p.draggable ? !y.value && f.value : void 0,
|
|
1376
1379
|
class: [
|
|
1377
|
-
(
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
+
(c = u.value) != null && c.length ? v(t).prefixes.group : "",
|
|
1381
|
+
v(fe)(v(t).prefixes.node, "root"),
|
|
1382
|
+
v(t).getNodeField(b.item, "class"),
|
|
1380
1383
|
{
|
|
1381
|
-
[
|
|
1382
|
-
[
|
|
1384
|
+
[v(kt)(v(t).prefixes.group, "child-expanded")]: D.value,
|
|
1385
|
+
[v(kt)(v(t).prefixes.group, "draggable")]: (C = v(t).props) == null ? void 0 : C.draggable
|
|
1383
1386
|
}
|
|
1384
1387
|
]
|
|
1385
|
-
},
|
|
1388
|
+
}, v(re), {
|
|
1386
1389
|
style: {
|
|
1387
|
-
"--ptc-tree-node-indent-height": `${
|
|
1388
|
-
"--ptc-tree-node-indent-width": `${
|
|
1390
|
+
"--ptc-tree-node-indent-height": `${v(J)}px`,
|
|
1391
|
+
"--ptc-tree-node-indent-width": `${v(he)}px`
|
|
1389
1392
|
}
|
|
1390
1393
|
}), [
|
|
1391
|
-
$.value ? (
|
|
1394
|
+
$.value ? (pe(), Xe("div", {
|
|
1392
1395
|
key: 0,
|
|
1393
|
-
class: Ae(
|
|
1396
|
+
class: Ae(v(fe)(v(t).prefixes.group, "line"))
|
|
1394
1397
|
}, null, 2)) : Ye("", !0),
|
|
1395
|
-
|
|
1396
|
-
as: "div",
|
|
1397
|
-
tabStopId: b.value,
|
|
1398
|
-
onKeyup: [
|
|
1399
|
-
Xt(Z, ["left"]),
|
|
1400
|
-
Xt(De, ["right"])
|
|
1401
|
-
],
|
|
1402
|
-
focusable: !v.value,
|
|
1398
|
+
Yt("div", st({
|
|
1403
1399
|
class: [
|
|
1404
|
-
|
|
1405
|
-
disabled:
|
|
1406
|
-
active:
|
|
1407
|
-
hasChildren:
|
|
1400
|
+
v(i)({
|
|
1401
|
+
disabled: y.value,
|
|
1402
|
+
active: N.value,
|
|
1403
|
+
hasChildren: V.value
|
|
1408
1404
|
})
|
|
1409
1405
|
]
|
|
1410
|
-
},
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
class: Ae(m(fe)(m(t).prefixes.node, "slot"))
|
|
1467
|
-
}, null, 2))
|
|
1468
|
-
];
|
|
1469
|
-
}),
|
|
1470
|
-
_: 3
|
|
1471
|
-
}, 16, ["tabStopId", "focusable", "class"]),
|
|
1472
|
-
m(t).dragging.value.value || m(t).dragging.value.key || (w = u.value) != null && w.length && (T.value || m(t).props.forceMount) ? Cn((me(), Ue(m(sn), st({
|
|
1406
|
+
}, v(ye), { onClick: j }), [
|
|
1407
|
+
(h = v(t).props) != null && h.draggable ? (pe(), Xe("span", {
|
|
1408
|
+
key: 0,
|
|
1409
|
+
class: Ae(v(t).prefixes.draggable)
|
|
1410
|
+
}, [
|
|
1411
|
+
v(t).dragging.value.key !== w.value && !v(t).dragging.value.value ? (pe(), Ue(Rn, {
|
|
1412
|
+
key: 0,
|
|
1413
|
+
icon: "tabler:grip-vertical",
|
|
1414
|
+
size: a.value,
|
|
1415
|
+
class: Ae(v(t).prefixes.draggableIcon)
|
|
1416
|
+
}, {
|
|
1417
|
+
default: Be(() => [
|
|
1418
|
+
$e(b.$slots, "dragTrigger", Ge(He({ ...b.item, selected: N.value, checked: z.value, disabled: y.value, unFocusable: !0 })))
|
|
1419
|
+
]),
|
|
1420
|
+
_: 3
|
|
1421
|
+
}, 8, ["size", "class"])) : Ye("", !0)
|
|
1422
|
+
], 2)) : Ye("", !0),
|
|
1423
|
+
Lt(Bn, {
|
|
1424
|
+
ref_key: "indent",
|
|
1425
|
+
ref: Y,
|
|
1426
|
+
level: ie.value,
|
|
1427
|
+
children: V.value,
|
|
1428
|
+
size: ve.value,
|
|
1429
|
+
expanded: T.value,
|
|
1430
|
+
showLine: !1,
|
|
1431
|
+
class: Ae(v(fe)(v(t).prefixes.node, "indent")),
|
|
1432
|
+
loading: v(t).getNodeField(b.item, "loading"),
|
|
1433
|
+
"branch-icon": v(t).getNodeField(b.item, "switcherIcon") ?? ((m = v(t).props) == null ? void 0 : m.switcherIcon),
|
|
1434
|
+
"no-rotate-branch": v(t).getNodeField(b.item, "noRotateSwitcherIcon") ?? ((k = v(t).props) == null ? void 0 : k.noRotateSwitcherIcon),
|
|
1435
|
+
onToggleExpand: O[0] || (O[0] = xn((Kt) => se(), ["stop"]))
|
|
1436
|
+
}, {
|
|
1437
|
+
default: Be(() => [
|
|
1438
|
+
$e(b.$slots, "switcherIcon", Ge(He({ ...b.item, selected: N.value, checked: z.value, expanded: T.value, disabled: y.value, unFocusable: !0 })))
|
|
1439
|
+
]),
|
|
1440
|
+
_: 3
|
|
1441
|
+
}, 8, ["level", "children", "size", "expanded", "class", "loading", "branch-icon", "no-rotate-branch"]),
|
|
1442
|
+
v(t).dragging.value.key !== w.value || !v(t).dragging.value.value ? (pe(), Xe(In, { key: 1 }, [
|
|
1443
|
+
(we = v(t).props) != null && we.checkbox ? (pe(), Ue(zn, {
|
|
1444
|
+
key: 0,
|
|
1445
|
+
size: r.value,
|
|
1446
|
+
onClick: A,
|
|
1447
|
+
modelValue: z.value,
|
|
1448
|
+
"onUpdate:modelValue": q,
|
|
1449
|
+
disabled: y.value
|
|
1450
|
+
}, null, 8, ["size", "modelValue", "disabled"])) : Ye("", !0),
|
|
1451
|
+
$e(b.$slots, "title", Ge(He({ ...b.item, selected: N.value, checked: z.value, disabled: y.value, unFocusable: !0 })), () => [
|
|
1452
|
+
Yt("div", {
|
|
1453
|
+
class: Ae(v(fe)(v(t).prefixes.node, "title"))
|
|
1454
|
+
}, On(v(t).getNodeField(b.item, "title")), 3)
|
|
1455
|
+
])
|
|
1456
|
+
], 64)) : (pe(), Xe("div", {
|
|
1457
|
+
key: 2,
|
|
1458
|
+
class: Ae(v(fe)(v(t).prefixes.node, "slot"))
|
|
1459
|
+
}, null, 2))
|
|
1460
|
+
], 16),
|
|
1461
|
+
v(t).dragging.value.value || v(t).dragging.value.key || (W = u.value) != null && W.length && (T.value || v(t).props.forceMount) ? Tn((pe(), Ue(v(sn), st({
|
|
1473
1462
|
key: 1,
|
|
1474
|
-
class:
|
|
1475
|
-
"data-parents": (
|
|
1476
|
-
"data-level": (
|
|
1463
|
+
class: v(t).prefixes.groupList,
|
|
1464
|
+
"data-parents": (Ie = v(t).props) != null && Ie.draggable ? L.value : void 0,
|
|
1465
|
+
"data-level": (ue = v(t).props) != null && ue.draggable ? P.value : void 0,
|
|
1477
1466
|
tag: "div",
|
|
1478
1467
|
list: u.value
|
|
1479
|
-
},
|
|
1480
|
-
item:
|
|
1481
|
-
|
|
1482
|
-
item:
|
|
1483
|
-
parentKeys:
|
|
1484
|
-
level:
|
|
1468
|
+
}, v(t).getSortableProps(b.item)), {
|
|
1469
|
+
item: Be(({ element: Kt }) => [
|
|
1470
|
+
Lt(ae, {
|
|
1471
|
+
item: Kt,
|
|
1472
|
+
parentKeys: L.value,
|
|
1473
|
+
level: P.value
|
|
1485
1474
|
}, on({ _: 2 }, [
|
|
1486
|
-
rn(Object.keys(n), (
|
|
1487
|
-
name:
|
|
1488
|
-
fn:
|
|
1489
|
-
$e(
|
|
1475
|
+
rn(Object.keys(n), (Xt) => ({
|
|
1476
|
+
name: Xt,
|
|
1477
|
+
fn: Be((_n) => [
|
|
1478
|
+
$e(b.$slots, Xt, Ge(He(_n)))
|
|
1490
1479
|
])
|
|
1491
1480
|
}))
|
|
1492
1481
|
]), 1032, ["item", "parentKeys", "level"])
|
|
@@ -1495,10 +1484,10 @@ const bo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
|
|
|
1495
1484
|
}, 16, ["class", "data-parents", "data-level", "list"])), [
|
|
1496
1485
|
[kn, T.value]
|
|
1497
1486
|
]) : Ye("", !0)
|
|
1498
|
-
], 16,
|
|
1487
|
+
], 16, wo);
|
|
1499
1488
|
};
|
|
1500
1489
|
}
|
|
1501
|
-
}),
|
|
1490
|
+
}), zo = /* @__PURE__ */ tn({
|
|
1502
1491
|
...ln("Tree"),
|
|
1503
1492
|
__name: "Tree",
|
|
1504
1493
|
props: {
|
|
@@ -1513,6 +1502,7 @@ const bo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
|
|
|
1513
1502
|
expandedKeys: {},
|
|
1514
1503
|
multiple: { type: Boolean },
|
|
1515
1504
|
checkbox: { type: Boolean },
|
|
1505
|
+
syncCheckboxAndSelect: { type: Boolean },
|
|
1516
1506
|
defaultExpandAll: { type: Boolean },
|
|
1517
1507
|
selectable: { type: Boolean },
|
|
1518
1508
|
showLine: { type: Boolean },
|
|
@@ -1529,128 +1519,130 @@ const bo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
|
|
|
1529
1519
|
},
|
|
1530
1520
|
emits: ["update:modelValue", "update:value", "update:expandedKeys", "update:checkedKeys", "expand", "select", "check", "dragStart", "dragEnd", "move", "choose", "unchoose"],
|
|
1531
1521
|
setup(o, { emit: e }) {
|
|
1532
|
-
const n = o, t = e, i = nn(), r =
|
|
1522
|
+
const n = o, t = e, i = nn(), r = Nn("tree"), a = fe(r, "node"), l = fe(a, "group"), s = fe(a, "draggable"), u = fe(s, "icon"), g = fe(l, "list"), f = {
|
|
1533
1523
|
node: a,
|
|
1534
1524
|
group: l,
|
|
1535
1525
|
draggable: s,
|
|
1536
1526
|
draggableIcon: u,
|
|
1537
|
-
groupList:
|
|
1538
|
-
},
|
|
1527
|
+
groupList: g
|
|
1528
|
+
}, w = an(r, {
|
|
1539
1529
|
variants: {
|
|
1540
|
-
size:
|
|
1541
|
-
gap:
|
|
1542
|
-
selectable:
|
|
1543
|
-
disabled:
|
|
1544
|
-
inlineNode:
|
|
1545
|
-
dragging:
|
|
1530
|
+
size: Ee(vo, r),
|
|
1531
|
+
gap: Ee(en, r),
|
|
1532
|
+
selectable: Ee("selectable", r),
|
|
1533
|
+
disabled: Ee("disabled", r),
|
|
1534
|
+
inlineNode: Ee("inline-node", r),
|
|
1535
|
+
dragging: Ee("dragging", r)
|
|
1546
1536
|
}
|
|
1547
|
-
}),
|
|
1548
|
-
var
|
|
1549
|
-
const
|
|
1550
|
-
return (
|
|
1551
|
-
},
|
|
1537
|
+
}), y = (p, c) => {
|
|
1538
|
+
var h;
|
|
1539
|
+
const C = $t(p, c);
|
|
1540
|
+
return (h = n.fieldNames) != null && h[c] ? $t(p, n.fieldNames[c], C) : C;
|
|
1541
|
+
}, D = Le(G(n.data)), T = M(() => G(D.value)), $ = () => {
|
|
1552
1542
|
if (!n.lazyLoad) {
|
|
1553
|
-
const
|
|
1554
|
-
for (const
|
|
1555
|
-
const
|
|
1556
|
-
|
|
1543
|
+
const p = [], c = (C) => {
|
|
1544
|
+
for (const h of C) {
|
|
1545
|
+
const m = y(h, "children");
|
|
1546
|
+
m != null && m.length && (p.push(y(h, "key")), c(m));
|
|
1557
1547
|
}
|
|
1558
1548
|
};
|
|
1559
|
-
return
|
|
1549
|
+
return c(D.value), p;
|
|
1560
1550
|
}
|
|
1561
1551
|
return [];
|
|
1562
|
-
},
|
|
1552
|
+
}, j = Le(
|
|
1563
1553
|
n.expandedKeys ?? (n.defaultExpandAll ? $() : [])
|
|
1564
1554
|
);
|
|
1565
1555
|
ot(
|
|
1566
1556
|
() => [n.defaultExpandAll, n.expandedKeys],
|
|
1567
|
-
([
|
|
1568
|
-
|
|
1557
|
+
([p, c], [C, h]) => {
|
|
1558
|
+
c !== h ? j.value = n.expandedKeys ?? [] : p && !C && (j.value = $());
|
|
1569
1559
|
}
|
|
1570
1560
|
);
|
|
1571
|
-
const
|
|
1561
|
+
const N = M({
|
|
1572
1562
|
get() {
|
|
1573
|
-
return n.expandedKeys ? n.expandedKeys :
|
|
1563
|
+
return n.expandedKeys ? n.expandedKeys : j.value;
|
|
1574
1564
|
},
|
|
1575
|
-
set(
|
|
1576
|
-
n.expandedKeys || (
|
|
1565
|
+
set(p) {
|
|
1566
|
+
n.expandedKeys || (j.value = p), t("update:expandedKeys", p);
|
|
1577
1567
|
}
|
|
1578
1568
|
});
|
|
1579
1569
|
ot(
|
|
1580
1570
|
() => n.data,
|
|
1581
1571
|
() => {
|
|
1582
|
-
|
|
1583
|
-
const
|
|
1584
|
-
|
|
1572
|
+
D.value = G(n.data);
|
|
1573
|
+
const p = $();
|
|
1574
|
+
N.value = N.value.filter((c) => p.includes(c));
|
|
1585
1575
|
},
|
|
1586
1576
|
{ deep: !0 }
|
|
1587
1577
|
);
|
|
1588
|
-
const
|
|
1578
|
+
const z = Le(n.modelValue ?? n.value ?? []);
|
|
1589
1579
|
ot(
|
|
1590
1580
|
() => [n.modelValue, n.value],
|
|
1591
1581
|
() => {
|
|
1592
|
-
|
|
1582
|
+
z.value = n.modelValue ?? n.value ?? [];
|
|
1593
1583
|
}
|
|
1594
1584
|
);
|
|
1595
|
-
const
|
|
1585
|
+
const A = M({
|
|
1596
1586
|
get() {
|
|
1597
|
-
return n.modelValue ?? n.value ? n.modelValue ?? n.value :
|
|
1587
|
+
return n.modelValue ?? n.value ? n.modelValue ?? n.value : z.value;
|
|
1598
1588
|
},
|
|
1599
|
-
set(
|
|
1600
|
-
|
|
1589
|
+
set(p) {
|
|
1590
|
+
p && ((n.modelValue ?? n.value) || (z.value = p), t("update:modelValue", p), t("update:value", p));
|
|
1601
1591
|
}
|
|
1602
|
-
}), { getDisabled:
|
|
1603
|
-
var
|
|
1604
|
-
if (n.selectable && !
|
|
1605
|
-
let
|
|
1606
|
-
const
|
|
1607
|
-
n.multiple ? (
|
|
1592
|
+
}), { getDisabled: q, getSize: L } = Xn(), se = (p, c) => {
|
|
1593
|
+
var C, h;
|
|
1594
|
+
if (n.selectable && !q.value) {
|
|
1595
|
+
let m = G(A.value);
|
|
1596
|
+
const k = y(p, "key");
|
|
1597
|
+
c != null && c.keys.length && n.multiple ? c.value ? m = wt([...c.keys, ...m]) : m = G(A.value.filter((W) => !c.keys.includes(W))) : n.multiple ? (C = A.value) != null && C.includes(k) ? m = G((h = A.value) == null ? void 0 : h.filter((W) => W !== k)) : m = G([...A.value ?? [], k]) : A.value.includes(k) ? m = [] : m = [k], A.value = m;
|
|
1598
|
+
const we = (c == null ? void 0 : c.value) ?? m.includes(k);
|
|
1599
|
+
t("select", p, we, (c == null ? void 0 : c.keys) ?? k);
|
|
1608
1600
|
}
|
|
1609
|
-
},
|
|
1601
|
+
}, ie = Le(n.checkedKeys ?? []);
|
|
1610
1602
|
ot(
|
|
1611
1603
|
() => n.checkedKeys,
|
|
1612
1604
|
() => {
|
|
1613
|
-
|
|
1605
|
+
ie.value = n.checkedKeys ?? [];
|
|
1614
1606
|
}
|
|
1615
1607
|
);
|
|
1616
|
-
const
|
|
1608
|
+
const P = M({
|
|
1617
1609
|
get() {
|
|
1618
|
-
return n.checkedKeys ? n.checkedKeys :
|
|
1610
|
+
return n.checkedKeys ? n.checkedKeys : ie.value;
|
|
1619
1611
|
},
|
|
1620
|
-
set(
|
|
1621
|
-
n.checkedKeys || (
|
|
1612
|
+
set(p) {
|
|
1613
|
+
n.checkedKeys || (ie.value = p), t("update:checkedKeys", p);
|
|
1622
1614
|
}
|
|
1623
|
-
}),
|
|
1624
|
-
if (n.checkbox && !
|
|
1625
|
-
let
|
|
1626
|
-
const
|
|
1627
|
-
|
|
1628
|
-
const
|
|
1629
|
-
t("check",
|
|
1615
|
+
}), ve = (p, c) => {
|
|
1616
|
+
if (n.checkbox && !q.value) {
|
|
1617
|
+
let C = G(P.value);
|
|
1618
|
+
const h = y(p, "key");
|
|
1619
|
+
c != null && c.keys.length ? c.value ? C = wt([...c.keys, ...C]) : C = G(P.value.filter((k) => !c.keys.includes(k))) : P.value.includes(h) ? C = G(P.value.filter((k) => k !== h)) : C = G([...P.value, h]), P.value = C;
|
|
1620
|
+
const m = (c == null ? void 0 : c.value) ?? C.includes(h);
|
|
1621
|
+
t("check", p, m, (c == null ? void 0 : c.keys) ?? h);
|
|
1630
1622
|
}
|
|
1631
|
-
},
|
|
1632
|
-
let
|
|
1633
|
-
const
|
|
1634
|
-
let
|
|
1635
|
-
|
|
1636
|
-
},
|
|
1623
|
+
}, re = (p, c) => {
|
|
1624
|
+
let C = !0;
|
|
1625
|
+
const h = y(p, "key");
|
|
1626
|
+
let m = G(N.value);
|
|
1627
|
+
c || c !== !1 && !m.includes(h) ? (m = wt([...m, h]), C = !0) : (m = m.filter((k) => k !== h), C = !1), N.value = m, t("expand", p, C);
|
|
1628
|
+
}, ye = M(() => {
|
|
1637
1629
|
if (n.gap) {
|
|
1638
1630
|
if (typeof n.gap == "number") return `${n.gap}px`;
|
|
1639
1631
|
if (!Object.keys(en).includes(n.gap)) return n.gap;
|
|
1640
1632
|
}
|
|
1641
|
-
}), V = n.groupName ??
|
|
1633
|
+
}), V = n.groupName ?? An(r), Y = Le({
|
|
1642
1634
|
key: void 0,
|
|
1643
1635
|
value: !1,
|
|
1644
1636
|
level: void 0
|
|
1645
|
-
}),
|
|
1646
|
-
() =>
|
|
1647
|
-
),
|
|
1648
|
-
var
|
|
1649
|
-
return (
|
|
1650
|
-
},
|
|
1651
|
-
const
|
|
1652
|
-
|
|
1653
|
-
const
|
|
1637
|
+
}), he = M(
|
|
1638
|
+
() => kt(fe(r, "dragging_item"), L.value)
|
|
1639
|
+
), J = (p) => {
|
|
1640
|
+
var c;
|
|
1641
|
+
return (c = p.getAttribute("data-parents")) == null ? void 0 : c.split(",");
|
|
1642
|
+
}, b = M(() => {
|
|
1643
|
+
const p = [], c = (C, h) => {
|
|
1644
|
+
C != null && C.length && C.forEach((m, k) => {
|
|
1645
|
+
const we = [
|
|
1654
1646
|
"title",
|
|
1655
1647
|
"disabled",
|
|
1656
1648
|
"draggable",
|
|
@@ -1660,44 +1652,44 @@ const bo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
|
|
|
1660
1652
|
"switcherIcon",
|
|
1661
1653
|
"noRotateSwitcherIcon"
|
|
1662
1654
|
];
|
|
1663
|
-
let
|
|
1664
|
-
if (!
|
|
1665
|
-
const
|
|
1666
|
-
|
|
1655
|
+
let W = y(m, "key");
|
|
1656
|
+
if (!W) {
|
|
1657
|
+
const ue = $n(G(h) ?? []);
|
|
1658
|
+
ue && (W = `${ue}-${k}`), W = `${k}`;
|
|
1667
1659
|
}
|
|
1668
|
-
|
|
1669
|
-
|
|
1660
|
+
W = String(W), p.push(
|
|
1661
|
+
Pn(
|
|
1670
1662
|
{
|
|
1671
|
-
...
|
|
1672
|
-
...Object.fromEntries(
|
|
1673
|
-
parentKeys:
|
|
1674
|
-
key:
|
|
1663
|
+
...Gn(m, "children"),
|
|
1664
|
+
...Object.fromEntries(we.map((ue) => [ue, y(m, ue)])),
|
|
1665
|
+
parentKeys: h,
|
|
1666
|
+
key: W
|
|
1675
1667
|
},
|
|
1676
|
-
|
|
1668
|
+
Fn
|
|
1677
1669
|
)
|
|
1678
1670
|
);
|
|
1679
|
-
const
|
|
1680
|
-
if (
|
|
1681
|
-
const
|
|
1682
|
-
|
|
1671
|
+
const Ie = y(m, "children");
|
|
1672
|
+
if (Ie != null && Ie.length) {
|
|
1673
|
+
const ue = G(h) ?? [];
|
|
1674
|
+
ue.push(W), c(Ie, ue);
|
|
1683
1675
|
}
|
|
1684
1676
|
});
|
|
1685
1677
|
};
|
|
1686
|
-
return
|
|
1687
|
-
}),
|
|
1688
|
-
const
|
|
1689
|
-
return
|
|
1690
|
-
(
|
|
1691
|
-
var
|
|
1692
|
-
return (!((
|
|
1678
|
+
return c(G(D.value)), p;
|
|
1679
|
+
}), O = (p) => {
|
|
1680
|
+
const c = J(p), C = p.getAttribute("data-key") ?? "";
|
|
1681
|
+
return b.value.find(
|
|
1682
|
+
(h) => {
|
|
1683
|
+
var m, k, we;
|
|
1684
|
+
return (!((m = h.parentKeys) != null && m.length) && !(c != null && c.length) || ((k = h.parentKeys) == null ? void 0 : k.length) && (c == null ? void 0 : c.length) && h.parentKeys.length === c.length && ((we = h.parentKeys) == null ? void 0 : we.every((W) => c.includes(W)))) && C === h.key;
|
|
1693
1685
|
}
|
|
1694
1686
|
);
|
|
1695
|
-
},
|
|
1696
|
-
var
|
|
1697
|
-
const
|
|
1687
|
+
}, ae = (p) => {
|
|
1688
|
+
var C;
|
|
1689
|
+
const c = ((C = n.getSortableProps) == null ? void 0 : C.call(n, p)) || {};
|
|
1698
1690
|
return {
|
|
1699
|
-
...
|
|
1700
|
-
group:
|
|
1691
|
+
...c,
|
|
1692
|
+
group: Gt(V) ? V(p) : V,
|
|
1701
1693
|
animation: 150,
|
|
1702
1694
|
forceFallback: !0,
|
|
1703
1695
|
fallbackOnBody: !0,
|
|
@@ -1705,102 +1697,93 @@ const bo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
|
|
|
1705
1697
|
handle: `.${f.node} .${f.draggable} .${f.draggableIcon}`,
|
|
1706
1698
|
// swapThreshold: 0.65,
|
|
1707
1699
|
dataIdAttr: "data-key",
|
|
1708
|
-
dragClass:
|
|
1709
|
-
onChoose(
|
|
1710
|
-
const
|
|
1711
|
-
|
|
1700
|
+
dragClass: he.value,
|
|
1701
|
+
onChoose(h) {
|
|
1702
|
+
const m = O(h == null ? void 0 : h.item);
|
|
1703
|
+
m && (Y.value.key = y(m, "key")), t("choose", h);
|
|
1712
1704
|
},
|
|
1713
|
-
onStart(
|
|
1705
|
+
onStart(h) {
|
|
1714
1706
|
if (typeof document < "u") {
|
|
1715
|
-
const
|
|
1716
|
-
|
|
1707
|
+
const m = document.querySelector(`.${he.value}`);
|
|
1708
|
+
m != null && m.style && (m.style.direction = Z.value ?? "ltr");
|
|
1717
1709
|
}
|
|
1718
|
-
|
|
1710
|
+
Y.value.value = !0, t("dragStart", h);
|
|
1719
1711
|
},
|
|
1720
|
-
onUnchoose(
|
|
1721
|
-
|
|
1712
|
+
onUnchoose(h) {
|
|
1713
|
+
Y.value.key = void 0, Y.value.level = void 0, t("unchoose", h);
|
|
1722
1714
|
},
|
|
1723
|
-
onEnd(
|
|
1724
|
-
|
|
1725
|
-
const
|
|
1726
|
-
...
|
|
1727
|
-
node:
|
|
1728
|
-
oldParents:
|
|
1729
|
-
newParents:
|
|
1715
|
+
onEnd(h) {
|
|
1716
|
+
Y.value.value = !1;
|
|
1717
|
+
const m = {
|
|
1718
|
+
...h,
|
|
1719
|
+
node: O(h == null ? void 0 : h.item),
|
|
1720
|
+
oldParents: J(h == null ? void 0 : h.item),
|
|
1721
|
+
newParents: J(h == null ? void 0 : h.to)
|
|
1730
1722
|
};
|
|
1731
|
-
|
|
1723
|
+
D.value = G(n.data), t("dragEnd", m);
|
|
1732
1724
|
},
|
|
1733
|
-
onMove(
|
|
1734
|
-
var
|
|
1735
|
-
if (
|
|
1725
|
+
onMove(h, m) {
|
|
1726
|
+
var k;
|
|
1727
|
+
if (Y.value.level = Number(((k = h == null ? void 0 : h.to) == null ? void 0 : k.getAttribute("data-level")) ?? "1"), t("move", h, m), Gt(c.onMove)) return c.onMove(h, m);
|
|
1736
1728
|
},
|
|
1737
|
-
itemKey: (
|
|
1729
|
+
itemKey: (h) => y(h, "key")
|
|
1738
1730
|
};
|
|
1739
|
-
}, { getDir:
|
|
1740
|
-
return
|
|
1741
|
-
size:
|
|
1742
|
-
disabled:
|
|
1731
|
+
}, { getDir: be } = Ln(), Z = be();
|
|
1732
|
+
return bo({
|
|
1733
|
+
size: L,
|
|
1734
|
+
disabled: q,
|
|
1743
1735
|
props: n,
|
|
1744
|
-
expandedKeys:
|
|
1745
|
-
model:
|
|
1746
|
-
dir:
|
|
1747
|
-
checked:
|
|
1748
|
-
onExpandKey:
|
|
1749
|
-
onSelect:
|
|
1750
|
-
onCheck:
|
|
1751
|
-
getNodeField:
|
|
1752
|
-
getSortableProps:
|
|
1753
|
-
dragging:
|
|
1736
|
+
expandedKeys: N,
|
|
1737
|
+
model: A,
|
|
1738
|
+
dir: Z,
|
|
1739
|
+
checked: P,
|
|
1740
|
+
onExpandKey: re,
|
|
1741
|
+
onSelect: se,
|
|
1742
|
+
onCheck: ve,
|
|
1743
|
+
getNodeField: y,
|
|
1744
|
+
getSortableProps: ae,
|
|
1745
|
+
dragging: Y,
|
|
1754
1746
|
prefixes: f
|
|
1755
|
-
}), (
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
(
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
name: c,
|
|
1787
|
-
fn: Te((w) => [
|
|
1788
|
-
$e(g.$slots, c, Ge(He(w)))
|
|
1789
|
-
])
|
|
1790
|
-
}))
|
|
1791
|
-
]), 1032, ["item"]))
|
|
1792
|
-
]),
|
|
1793
|
-
_: 3
|
|
1794
|
-
}, 16, ["class", "style", "list"])
|
|
1747
|
+
}), (p, c) => (pe(), Ue(v(sn), st({
|
|
1748
|
+
role: "tree",
|
|
1749
|
+
class: [
|
|
1750
|
+
v(w)({
|
|
1751
|
+
size: v(L),
|
|
1752
|
+
gap: n.gap ?? v(L),
|
|
1753
|
+
selectable: n.selectable,
|
|
1754
|
+
disabled: v(q),
|
|
1755
|
+
inlineNode: n.inlineNode,
|
|
1756
|
+
dragging: !!Y.value.value
|
|
1757
|
+
}),
|
|
1758
|
+
n.class
|
|
1759
|
+
],
|
|
1760
|
+
style: {
|
|
1761
|
+
"--ptc-tree-gap": ye.value
|
|
1762
|
+
},
|
|
1763
|
+
tag: "div",
|
|
1764
|
+
list: T.value
|
|
1765
|
+
}, ae()), {
|
|
1766
|
+
item: Be(({ element: C }) => [
|
|
1767
|
+
(pe(), Ue(Eo, {
|
|
1768
|
+
key: y(C, "key"),
|
|
1769
|
+
item: C
|
|
1770
|
+
}, on({ _: 2 }, [
|
|
1771
|
+
rn(Object.keys(i), (h) => ({
|
|
1772
|
+
name: h,
|
|
1773
|
+
fn: Be((m) => [
|
|
1774
|
+
$e(p.$slots, h, Ge(He(m)))
|
|
1775
|
+
])
|
|
1776
|
+
}))
|
|
1777
|
+
]), 1032, ["item"]))
|
|
1795
1778
|
]),
|
|
1796
1779
|
_: 3
|
|
1797
|
-
},
|
|
1780
|
+
}, 16, ["class", "style", "list"]));
|
|
1798
1781
|
}
|
|
1799
1782
|
});
|
|
1800
1783
|
export {
|
|
1801
|
-
|
|
1802
|
-
|
|
1784
|
+
vo as T,
|
|
1785
|
+
zo as _,
|
|
1803
1786
|
en as a,
|
|
1804
1787
|
yo as i,
|
|
1805
|
-
|
|
1788
|
+
bo as p
|
|
1806
1789
|
};
|