@pantograph/vue 0.23.3 → 0.23.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ActionButton/index.js +1 -1
- package/dist/ActionButton/index.umd.cjs +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-C40QLnax.js → ActionButton.vue_vue_type_script_setup_true_lang-Byy-SUY7.js} +2 -2
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-byWs7FGA.js +1 -0
- 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-DugtMNn6.js → Alert.vue_vue_type_style_index_0_lang-B30XPHvm.js} +4 -4
- package/dist/{Alert.vue_vue_type_style_index_0_lang-x6PDS57O.js → Alert.vue_vue_type_style_index_0_lang-zAvnYwjn.js} +1 -1
- 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-Dbdnz5VW.js → Avatar.vue_vue_type_style_index_0_lang-B5QoCaie.js} +1 -1
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-DTxpdu2k.js → Avatar.vue_vue_type_style_index_0_lang-BH1gFvLI.js} +3 -3
- 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-X_MnjVp9.js +1 -0
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-Dc6rezGr.js → Badge.vue_vue_type_script_setup_true_lang-uNQWz2GS.js} +2 -2
- 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-BGYEuhbj.js → BaseButton.vue_vue_type_style_index_0_lang-CxL85kWZ.js} +19 -18
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-DLorGJwo.js +1 -0
- 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-bjhWtH8H.js → Button.vue_vue_type_script_setup_true_lang-CZVffRST.js} +2 -2
- package/dist/Button.vue_vue_type_script_setup_true_lang-JEp-xK1r.js +1 -0
- 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-Dh2oLmt5.js +1 -0
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-Dhn_dWz7.js +224 -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-DKr8EzbN.js} +24 -22
- package/dist/Chip.vue_vue_type_style_index_0_lang-Ha5k2W3V.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-GEZo5nnM.js} +1 -1
- package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-ZlvXsJHD.js → ChipGroup.vue_vue_type_style_index_0_lang-V98bakNp.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-BnjCOPow.js → ColorPicker.vue_vue_type_style_index_0_lang-BN0V43ck.js} +2 -2
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-B8rVS60w.js → ColorPicker.vue_vue_type_style_index_0_lang-ofcHj216.js} +6 -6
- 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-C2CGtzy8.js +1 -0
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-CjQa4I-g.js → ColorSwatch.vue_vue_type_style_index_0_lang-DvCAHexP.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-BfwoeYwS.js} +37 -35
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-DtLQQxrr.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-CieQBrWD.js +1 -0
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-BNTg203W.js → ColorTrigger.vue_vue_type_style_index_0_lang-W0kl7vow.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-B2b5MoSC.js +924 -0
- package/dist/Combobox.vue_vue_type_style_index_0_lang-DUnSgObq.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-9W9p_J1i.js → DataTable.vue_vue_type_style_index_0_lang-D_T8Xxsh.js} +161 -156
- package/dist/DataTable.vue_vue_type_style_index_0_lang-aEvZTZpM.js +1 -0
- 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-qf9hNusy.js +1 -0
- package/dist/{DropZone.vue_vue_type_style_index_0_lang-CH23eQwT.js → DropZone.vue_vue_type_style_index_0_lang-vhZKklYh.js} +2 -2
- 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-BGZBnlXi.js → FloatButton.vue_vue_type_script_setup_true_lang-DQGcKCNh.js} +2 -2
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-fS1Yq2no.js +1 -0
- 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-CTRszGlB.js +9 -0
- package/dist/FormItem.vue_vue_type_style_index_0_lang-DbMENNc4.js +2785 -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-Cx0_O9-1.js +1 -0
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-BZCn44kG.js → GraphicalObject.vue_vue_type_script_setup_true_lang-tkL7jO-r.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-COvFyzfP.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-CUdg78Ni.js} +1 -1
- package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DiSPJXBZ.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-D-dG-MEU.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-C0T_gnJS.js} +2 -2
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-DEHsCjTK.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-CgczUp3D.js +1 -0
- package/dist/{Image.vue_vue_type_style_index_0_lang-3vJwTwh4.js → Image.vue_vue_type_style_index_0_lang-Cmn0ijum.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-Cjlog39U.js} +8 -8
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-Cwk_0wRr.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-C-czibvQ.js +1 -0
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-B1mn9s7i.js → Indicator.vue_vue_type_script_setup_true_lang-DhdiDbED.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-BFNYYFfe.js → Input.vue_vue_type_style_index_0_lang-Ccow0nkI.js} +48 -46
- package/dist/Input.vue_vue_type_style_index_0_lang-yHgbuD_4.js +1 -0
- 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-EaIWA0xP.js +579 -0
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-yuREIf6x.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-D7GA-4CS.js +1 -0
- package/dist/Popover.vue_vue_type_style_index_0_lang-SLueqv_E.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-kxQIMaNz.js} +2 -2
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-mjzo15tQ.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-906ZRFCK.js +165 -0
- package/dist/Segmented.vue_vue_type_style_index_0_lang-B4aQCMXZ.js +1 -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-C1iYwWCJ.js +1 -0
- package/dist/Select.vue_vue_type_style_index_0_lang-DUy8bGSD.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-BrkQxi9f.js → Switch.vue_vue_type_style_index_0_lang-BM-h82G0.js} +5 -4
- package/dist/Switch.vue_vue_type_style_index_0_lang-DHT9utPp.js +1 -0
- package/dist/THead.vue_vue_type_style_index_0_lang-B6U8HrWi.js +1 -0
- package/dist/{THead.vue_vue_type_style_index_0_lang-BcVlFS1z.js → THead.vue_vue_type_style_index_0_lang-CHicticP.js} +1 -1
- 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-DiCqcDyH.js +1 -0
- package/dist/{Textarea.vue_vue_type_style_index_0_lang-DnQgUyjY.js → Textarea.vue_vue_type_style_index_0_lang-UyndJFBo.js} +26 -24
- 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 +14 -0
- package/dist/Tree.vue_vue_type_style_index_0_lang-B6uVPvX8.js +6 -0
- package/dist/{Tree.vue_vue_type_style_index_0_lang-BRU_5PuO.js → Tree.vue_vue_type_style_index_0_lang-a_nDBSWx.js} +678 -695
- package/dist/_getTag-CIY3u1-e.js +1 -0
- package/dist/_getTag-MDQGqxLN.js +127 -0
- package/dist/exports.d.ts +4 -0
- package/dist/getEmojiList-CFiuBWyA.js +1 -0
- package/dist/{getEmojiList-BtCA6cyU.js → getEmojiList-DYrYRrM5.js} +249 -211
- package/dist/index-DWw7aruo.js +1 -0
- package/dist/index-jwkhq8oW.js +188 -0
- package/dist/index.d.ts +6 -6
- package/dist/index.js +189 -177
- package/dist/index.umd.cjs +1 -1
- package/dist/isEmpty-bCllo8T9.js +1 -0
- package/dist/isEmpty-wdqPTIXx.js +21 -0
- package/dist/omit-BuBwx_M2.js +630 -0
- package/dist/omit-CYbreqlf.js +1 -0
- package/dist/style/index.css +1 -1
- package/dist/{uniq-D8HAKpFq.js → uniq-BeFmBpYC.js} +17 -16
- package/dist/uniq-CezX8yQS.js +1 -0
- package/dist/useInputDataStates-Bzs7T9xb.js +57 -0
- package/dist/useInputDataStates-C1T7BL_V.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
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";const a=require("vue"),P=require("@pantograph/utils"),zt=require("class-variance-authority"),R=require("./FormItem.vue_vue_type_style_index_0_lang-CTRszGlB.js"),at=require("./uniq-CezX8yQS.js"),Rt=require("./options-CWrQ7gsa.js"),an=require("reka-ui"),ln=require("./IndentLevel.vue_vue_type_style_index_0_lang-Cwk_0wRr.js"),sn=require("./Icon.vue_vue_type_style_index_0_lang-D3cRtJNJ.js"),un=require("./Checkbox.vue_vue_type_style_index_0_lang-Dh2oLmt5.js"),Lt=require("./useInputDataStates-C1T7BL_V.js"),cn=require("@vueuse/core"),Kt=require("vuedraggable"),lt=require("./index-DWw7aruo.js"),dn=require("lodash-es"),fn=require("./omit-CYbreqlf.js");/**!
|
|
2
|
+
* Sortable 1.15.6
|
|
3
|
+
* @author RubaXa <trash@rubaxa.org>
|
|
4
|
+
* @author owenm <owen23355@gmail.com>
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/function kt(o,e){var n=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);e&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(o,r).enumerable})),n.push.apply(n,t)}return n}function he(o){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?kt(Object(n),!0).forEach(function(t){pn(o,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(n,t))})}return o}function We(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?We=function(e){return typeof e}:We=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},We(o)}function pn(o,e,n){return e in o?Object.defineProperty(o,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):o[e]=n,o}function Ee(){return Ee=Object.assign||function(o){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(o[t]=n[t])}return o},Ee.apply(this,arguments)}function hn(o,e){if(o==null)return{};var n={},t=Object.keys(o),r,i;for(i=0;i<t.length;i++)r=t[i],!(e.indexOf(r)>=0)&&(n[r]=o[r]);return n}function gn(o,e){if(o==null)return{};var n=hn(o,e),t,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);for(r=0;r<i.length;r++)t=i[r],!(e.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(o,t)&&(n[t]=o[t])}return n}var mn="1.15.6";function be(o){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(o)}var we=be(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ye=be(/Edge/i),It=be(/firefox/i),Re=be(/safari/i)&&!be(/chrome/i)&&!be(/android/i),_t=be(/iP(ad|od|hone)/i),Vt=be(/chrome/i)&&be(/android/i),Xt={capture:!1,passive:!1};function k(o,e,n){o.addEventListener(e,n,!we&&Xt)}function T(o,e,n){o.removeEventListener(e,n,!we&&Xt)}function et(o,e){if(e){if(e[0]===">"&&(e=e.substring(1)),o)try{if(o.matches)return o.matches(e);if(o.msMatchesSelector)return o.msMatchesSelector(e);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(e)}catch{return!1}return!1}}function Yt(o){return o.host&&o!==document&&o.host.nodeType?o.host:o.parentNode}function de(o,e,n,t){if(o){n=n||document;do{if(e!=null&&(e[0]===">"?o.parentNode===n&&et(o,e):et(o,e))||t&&o===n)return o;if(o===n)break}while(o=Yt(o))}return null}var Nt=/\s+/g;function ne(o,e,n){if(o&&e)if(o.classList)o.classList[n?"add":"remove"](e);else{var t=(" "+o.className+" ").replace(Nt," ").replace(" "+e+" "," ");o.className=(t+(n?" "+e:"")).replace(Nt," ")}}function w(o,e,n){var t=o&&o.style;if(t){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(o,""):o.currentStyle&&(n=o.currentStyle),e===void 0?n:n[e];!(e in t)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),t[e]=n+(typeof n=="string"?"":"px")}}function Ae(o,e){var n="";if(typeof o=="string")n=o;else do{var t=w(o,"transform");t&&t!=="none"&&(n=t+" "+n)}while(!e&&(o=o.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function qt(o,e,n){if(o){var t=o.getElementsByTagName(e),r=0,i=t.length;if(n)for(;r<i;r++)n(t[r],r);return t}return[]}function pe(){var o=document.scrollingElement;return o||document.documentElement}function V(o,e,n,t,r){if(!(!o.getBoundingClientRect&&o!==window)){var i,l,s,u,c,m,p;if(o!==window&&o.parentNode&&o!==pe()?(i=o.getBoundingClientRect(),l=i.top,s=i.left,u=i.bottom,c=i.right,m=i.height,p=i.width):(l=0,s=0,u=window.innerHeight,c=window.innerWidth,m=window.innerHeight,p=window.innerWidth),(e||n)&&o!==window&&(r=r||o.parentNode,!we))do if(r&&r.getBoundingClientRect&&(w(r,"transform")!=="none"||n&&w(r,"position")!=="static")){var E=r.getBoundingClientRect();l-=E.top+parseInt(w(r,"border-top-width")),s-=E.left+parseInt(w(r,"border-left-width")),u=l+i.height,c=s+i.width;break}while(r=r.parentNode);if(t&&o!==window){var y=Ae(r||o),C=y&&y.a,x=y&&y.d;y&&(l/=x,s/=C,p/=C,m/=x,u=l+m,c=s+p)}return{top:l,left:s,bottom:u,right:c,width:p,height:m}}}function Ot(o,e,n){for(var t=Ce(o,!0),r=V(o)[e];t;){var i=V(t)[n],l=void 0;if(l=r>=i,!l)return t;if(t===pe())break;t=Ce(t,!1)}return!1}function Be(o,e,n,t){for(var r=0,i=0,l=o.children;i<l.length;){if(l[i].style.display!=="none"&&l[i]!==_.ghost&&(t||l[i]!==_.dragged)&&de(l[i],n.draggable,o,!1)){if(r===e)return l[i];r++}i++}return null}function St(o,e){for(var n=o.lastElementChild;n&&(n===_.ghost||w(n,"display")==="none"||e&&!et(n,e));)n=n.previousElementSibling;return n||null}function le(o,e){var n=0;if(!o||!o.parentNode)return-1;for(;o=o.previousElementSibling;)o.nodeName.toUpperCase()!=="TEMPLATE"&&o!==_.clone&&(!e||et(o,e))&&n++;return n}function Pt(o){var e=0,n=0,t=pe();if(o)do{var r=Ae(o),i=r.a,l=r.d;e+=o.scrollLeft*i,n+=o.scrollTop*l}while(o!==t&&(o=o.parentNode));return[e,n]}function vn(o,e){for(var n in o)if(o.hasOwnProperty(n)){for(var t in e)if(e.hasOwnProperty(t)&&e[t]===o[n][t])return Number(n)}return-1}function Ce(o,e){if(!o||!o.getBoundingClientRect)return pe();var n=o,t=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=w(n);if(n.clientWidth<n.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return pe();if(t||e)return n;t=!0}}while(n=n.parentNode);return pe()}function yn(o,e){if(o&&e)for(var n in e)e.hasOwnProperty(n)&&(o[n]=e[n]);return o}function st(o,e){return Math.round(o.top)===Math.round(e.top)&&Math.round(o.left)===Math.round(e.left)&&Math.round(o.height)===Math.round(e.height)&&Math.round(o.width)===Math.round(e.width)}var Le;function $t(o,e){return function(){if(!Le){var n=arguments,t=this;n.length===1?o.call(t,n[0]):o.apply(t,n),Le=setTimeout(function(){Le=void 0},e)}}}function bn(){clearTimeout(Le),Le=void 0}function Gt(o,e,n){o.scrollLeft+=e,o.scrollTop+=n}function Ht(o){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(o).cloneNode(!0):n?n(o).clone(!0)[0]:o.cloneNode(!0)}function jt(o,e,n){var t={};return Array.from(o.children).forEach(function(r){var i,l,s,u;if(!(!de(r,e.draggable,o,!1)||r.animated||r===n)){var c=V(r);t.left=Math.min((i=t.left)!==null&&i!==void 0?i:1/0,c.left),t.top=Math.min((l=t.top)!==null&&l!==void 0?l:1/0,c.top),t.right=Math.max((s=t.right)!==null&&s!==void 0?s:-1/0,c.right),t.bottom=Math.max((u=t.bottom)!==null&&u!==void 0?u:-1/0,c.bottom)}}),t.width=t.right-t.left,t.height=t.bottom-t.top,t.x=t.left,t.y=t.top,t}var te="Sortable"+new Date().getTime();function En(){var o=[],e;return{captureAnimationState:function(){if(o=[],!!this.options.animation){var t=[].slice.call(this.el.children);t.forEach(function(r){if(!(w(r,"display")==="none"||r===_.ghost)){o.push({target:r,rect:V(r)});var i=he({},o[o.length-1].rect);if(r.thisAnimationDuration){var l=Ae(r,!0);l&&(i.top-=l.f,i.left-=l.e)}r.fromRect=i}})}},addAnimationState:function(t){o.push(t)},removeAnimationState:function(t){o.splice(vn(o,{target:t}),1)},animateAll:function(t){var r=this;if(!this.options.animation){clearTimeout(e),typeof t=="function"&&t();return}var i=!1,l=0;o.forEach(function(s){var u=0,c=s.target,m=c.fromRect,p=V(c),E=c.prevFromRect,y=c.prevToRect,C=s.rect,x=Ae(c,!0);x&&(p.top-=x.f,p.left-=x.e),c.toRect=p,c.thisAnimationDuration&&st(E,p)&&!st(m,p)&&(C.top-p.top)/(C.left-p.left)===(m.top-p.top)/(m.left-p.left)&&(u=_n(C,E,y,r.options)),st(p,m)||(c.prevFromRect=m,c.prevToRect=p,u||(u=r.options.animation),r.animate(c,C,p,u)),u&&(i=!0,l=Math.max(l,u),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},u),c.thisAnimationDuration=u)}),clearTimeout(e),i?e=setTimeout(function(){typeof t=="function"&&t()},l):typeof t=="function"&&t(),o=[]},animate:function(t,r,i,l){if(l){w(t,"transition",""),w(t,"transform","");var s=Ae(this.el),u=s&&s.a,c=s&&s.d,m=(r.left-i.left)/(u||1),p=(r.top-i.top)/(c||1);t.animatingX=!!m,t.animatingY=!!p,w(t,"transform","translate3d("+m+"px,"+p+"px,0)"),this.forRepaintDummy=wn(t),w(t,"transition","transform "+l+"ms"+(this.options.easing?" "+this.options.easing:"")),w(t,"transform","translate3d(0,0,0)"),typeof t.animated=="number"&&clearTimeout(t.animated),t.animated=setTimeout(function(){w(t,"transition",""),w(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},l)}}}}function wn(o){return o.offsetWidth}function _n(o,e,n,t){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}var Ie=[],ut={initializeByDefault:!0},qe={mount:function(e){for(var n in ut)ut.hasOwnProperty(n)&&!(n in e)&&(e[n]=ut[n]);Ie.forEach(function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),Ie.push(e)},pluginEvent:function(e,n,t){var r=this;this.eventCanceled=!1,t.cancel=function(){r.eventCanceled=!0};var i=e+"Global";Ie.forEach(function(l){n[l.pluginName]&&(n[l.pluginName][i]&&n[l.pluginName][i](he({sortable:n},t)),n.options[l.pluginName]&&n[l.pluginName][e]&&n[l.pluginName][e](he({sortable:n},t)))})},initializePlugins:function(e,n,t,r){Ie.forEach(function(s){var u=s.pluginName;if(!(!e.options[u]&&!s.initializeByDefault)){var c=new s(e,n,e.options);c.sortable=e,c.options=e.options,e[u]=c,Ee(t,c.defaults)}});for(var i in e.options)if(e.options.hasOwnProperty(i)){var l=this.modifyOption(e,i,e.options[i]);typeof l<"u"&&(e.options[i]=l)}},getEventProperties:function(e,n){var t={};return Ie.forEach(function(r){typeof r.eventProperties=="function"&&Ee(t,r.eventProperties.call(n[r.pluginName],e))}),t},modifyOption:function(e,n,t){var r;return Ie.forEach(function(i){e[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[n]=="function"&&(r=i.optionListeners[n].call(e[i.pluginName],t))}),r}};function Sn(o){var e=o.sortable,n=o.rootEl,t=o.name,r=o.targetEl,i=o.cloneEl,l=o.toEl,s=o.fromEl,u=o.oldIndex,c=o.newIndex,m=o.oldDraggableIndex,p=o.newDraggableIndex,E=o.originalEvent,y=o.putSortable,C=o.extraEventProperties;if(e=e||n&&n[te],!!e){var x,q=e.options,G="on"+t.charAt(0).toUpperCase()+t.substr(1);window.CustomEvent&&!we&&!Ye?x=new CustomEvent(t,{bubbles:!0,cancelable:!0}):(x=document.createEvent("Event"),x.initEvent(t,!0,!0)),x.to=l||n,x.from=s||n,x.item=r||n,x.clone=i,x.oldIndex=u,x.newIndex=c,x.oldDraggableIndex=m,x.newDraggableIndex=p,x.originalEvent=E,x.pullMode=y?y.lastPutMode:void 0;var O=he(he({},C),qe.getEventProperties(t,e));for(var L in O)x[L]=O[L];n&&n.dispatchEvent(x),q[G]&&q[G].call(e,x)}}var Cn=["evt"],ee=function(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=t.evt,i=gn(t,Cn);qe.pluginEvent.bind(_)(e,n,he({dragEl:d,parentEl:z,ghostEl:S,rootEl:F,nextEl:ke,lastDownEl:Ue,cloneEl:M,cloneHidden:Se,dragStarted:Fe,putSortable:$,activeSortable:_.active,originalEvent:r,oldIndex:Pe,oldDraggableIndex:Ke,newIndex:oe,newDraggableIndex:_e,hideGhostForTarget:Qt,unhideGhostForTarget:Jt,cloneNowHidden:function(){Se=!0},cloneNowShown:function(){Se=!1},dispatchSortableEvent:function(s){Q({sortable:n,name:s,originalEvent:r})}},i))};function Q(o){Sn(he({putSortable:$,cloneEl:M,targetEl:d,rootEl:F,oldIndex:Pe,oldDraggableIndex:Ke,newIndex:oe,newDraggableIndex:_e},o))}var d,z,S,F,ke,Ue,M,Se,Pe,oe,Ke,_e,$e,$,Oe=!1,tt=!1,nt=[],xe,ce,ct,dt,At,Bt,Fe,Ne,Ve,Xe=!1,Ge=!1,Ze,W,ft=[],vt=!1,ot=[],it=typeof document<"u",He=_t,Ft=Ye||we?"cssFloat":"float",Dn=it&&!Vt&&!_t&&"draggable"in document.createElement("div"),Wt=function(){if(it){if(we)return!1;var o=document.createElement("x");return o.style.cssText="pointer-events:auto",o.style.pointerEvents==="auto"}}(),Ut=function(e,n){var t=w(e),r=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),i=Be(e,0,n),l=Be(e,1,n),s=i&&w(i),u=l&&w(l),c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+V(i).width,m=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+V(l).width;if(t.display==="flex")return t.flexDirection==="column"||t.flexDirection==="column-reverse"?"vertical":"horizontal";if(t.display==="grid")return t.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&s.float&&s.float!=="none"){var p=s.float==="left"?"left":"right";return l&&(u.clear==="both"||u.clear===p)?"vertical":"horizontal"}return i&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||c>=r&&t[Ft]==="none"||l&&t[Ft]==="none"&&c+m>r)?"vertical":"horizontal"},xn=function(e,n,t){var r=t?e.left:e.top,i=t?e.right:e.bottom,l=t?e.width:e.height,s=t?n.left:n.top,u=t?n.right:n.bottom,c=t?n.width:n.height;return r===s||i===u||r+l/2===s+c/2},Tn=function(e,n){var t;return nt.some(function(r){var i=r[te].options.emptyInsertThreshold;if(!(!i||St(r))){var l=V(r),s=e>=l.left-i&&e<=l.right+i,u=n>=l.top-i&&n<=l.bottom+i;if(s&&u)return t=r}}),t},Zt=function(e){function n(i,l){return function(s,u,c,m){var p=s.options.group.name&&u.options.group.name&&s.options.group.name===u.options.group.name;if(i==null&&(l||p))return!0;if(i==null||i===!1)return!1;if(l&&i==="clone")return i;if(typeof i=="function")return n(i(s,u,c,m),l)(s,u,c,m);var E=(l?s:u).options.group.name;return i===!0||typeof i=="string"&&i===E||i.join&&i.indexOf(E)>-1}}var t={},r=e.group;(!r||We(r)!="object")&&(r={name:r}),t.name=r.name,t.checkPull=n(r.pull,!0),t.checkPut=n(r.put),t.revertClone=r.revertClone,e.group=t},Qt=function(){!Wt&&S&&w(S,"display","none")},Jt=function(){!Wt&&S&&w(S,"display","")};it&&!Vt&&document.addEventListener("click",function(o){if(tt)return o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.stopImmediatePropagation&&o.stopImmediatePropagation(),tt=!1,!1},!0);var Te=function(e){if(d){e=e.touches?e.touches[0]:e;var n=Tn(e.clientX,e.clientY);if(n){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.target=t.rootEl=n,t.preventDefault=void 0,t.stopPropagation=void 0,n[te]._onDragOver(t)}}},kn=function(e){d&&d.parentNode[te]._isOutsideThisEl(e.target)};function _(o,e){if(!(o&&o.nodeType&&o.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(o));this.el=o,this.options=e=Ee({},e),o[te]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(o.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ut(o,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(l,s){l.setData("Text",s.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:_.supportPointer!==!1&&"PointerEvent"in window&&(!Re||_t),emptyInsertThreshold:5};qe.initializePlugins(this,o,n);for(var t in n)!(t in e)&&(e[t]=n[t]);Zt(e);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=e.forceFallback?!1:Dn,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?k(o,"pointerdown",this._onTapStart):(k(o,"mousedown",this._onTapStart),k(o,"touchstart",this._onTapStart)),this.nativeDraggable&&(k(o,"dragover",this),k(o,"dragenter",this)),nt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Ee(this,En())}_.prototype={constructor:_,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Ne=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,d):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,t=this.el,r=this.options,i=r.preventOnFilter,l=e.type,s=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,u=(s||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||u,m=r.filter;if(Mn(t),!d&&!(/mousedown|pointerdown/.test(l)&&e.button!==0||r.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Re&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=de(u,r.draggable,t,!1),!(u&&u.animated)&&Ue!==u)){if(Pe=le(u),Ke=le(u,r.draggable),typeof m=="function"){if(m.call(this,e,u,this)){Q({sortable:n,rootEl:c,name:"filter",targetEl:u,toEl:t,fromEl:t}),ee("filter",n,{evt:e}),i&&e.preventDefault();return}}else if(m&&(m=m.split(",").some(function(p){if(p=de(c,p.trim(),t,!1),p)return Q({sortable:n,rootEl:p,name:"filter",targetEl:u,fromEl:t,toEl:t}),ee("filter",n,{evt:e}),!0}),m)){i&&e.preventDefault();return}r.handle&&!de(c,r.handle,t,!1)||this._prepareDragStart(e,s,u)}}},_prepareDragStart:function(e,n,t){var r=this,i=r.el,l=r.options,s=i.ownerDocument,u;if(t&&!d&&t.parentNode===i){var c=V(t);if(F=i,d=t,z=d.parentNode,ke=d.nextSibling,Ue=t,$e=l.group,_.dragged=d,xe={target:d,clientX:(n||e).clientX,clientY:(n||e).clientY},At=xe.clientX-c.left,Bt=xe.clientY-c.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,d.style["will-change"]="all",u=function(){if(ee("delayEnded",r,{evt:e}),_.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!It&&r.nativeDraggable&&(d.draggable=!0),r._triggerDragStart(e,n),Q({sortable:r,name:"choose",originalEvent:e}),ne(d,l.chosenClass,!0)},l.ignore.split(",").forEach(function(m){qt(d,m.trim(),pt)}),k(s,"dragover",Te),k(s,"mousemove",Te),k(s,"touchmove",Te),l.supportPointer?(k(s,"pointerup",r._onDrop),!this.nativeDraggable&&k(s,"pointercancel",r._onDrop)):(k(s,"mouseup",r._onDrop),k(s,"touchend",r._onDrop),k(s,"touchcancel",r._onDrop)),It&&this.nativeDraggable&&(this.options.touchStartThreshold=4,d.draggable=!0),ee("delayStart",this,{evt:e}),l.delay&&(!l.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Ye||we))){if(_.eventCanceled){this._onDrop();return}l.supportPointer?(k(s,"pointerup",r._disableDelayedDrag),k(s,"pointercancel",r._disableDelayedDrag)):(k(s,"mouseup",r._disableDelayedDrag),k(s,"touchend",r._disableDelayedDrag),k(s,"touchcancel",r._disableDelayedDrag)),k(s,"mousemove",r._delayedDragTouchMoveHandler),k(s,"touchmove",r._delayedDragTouchMoveHandler),l.supportPointer&&k(s,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(u,l.delay)}else u()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){d&&pt(d),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;T(e,"mouseup",this._disableDelayedDrag),T(e,"touchend",this._disableDelayedDrag),T(e,"touchcancel",this._disableDelayedDrag),T(e,"pointerup",this._disableDelayedDrag),T(e,"pointercancel",this._disableDelayedDrag),T(e,"mousemove",this._delayedDragTouchMoveHandler),T(e,"touchmove",this._delayedDragTouchMoveHandler),T(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?k(document,"pointermove",this._onTouchMove):n?k(document,"touchmove",this._onTouchMove):k(document,"mousemove",this._onTouchMove):(k(d,"dragend",this),k(F,"dragstart",this._onDragStart));try{document.selection?Qe(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(Oe=!1,F&&d){ee("dragStarted",this,{evt:n}),this.nativeDraggable&&k(document,"dragover",kn);var t=this.options;!e&&ne(d,t.dragClass,!1),ne(d,t.ghostClass,!0),_.active=this,e&&this._appendGhost(),Q({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(ce){this._lastX=ce.clientX,this._lastY=ce.clientY,Qt();for(var e=document.elementFromPoint(ce.clientX,ce.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ce.clientX,ce.clientY),e!==n);)n=e;if(d.parentNode[te]._isOutsideThisEl(e),n)do{if(n[te]){var t=void 0;if(t=n[te]._onDragOver({clientX:ce.clientX,clientY:ce.clientY,target:e,rootEl:n}),t&&!this.options.dragoverBubble)break}e=n}while(n=Yt(n));Jt()}},_onTouchMove:function(e){if(xe){var n=this.options,t=n.fallbackTolerance,r=n.fallbackOffset,i=e.touches?e.touches[0]:e,l=S&&Ae(S,!0),s=S&&l&&l.a,u=S&&l&&l.d,c=He&&W&&Pt(W),m=(i.clientX-xe.clientX+r.x)/(s||1)+(c?c[0]-ft[0]:0)/(s||1),p=(i.clientY-xe.clientY+r.y)/(u||1)+(c?c[1]-ft[1]:0)/(u||1);if(!_.active&&!Oe){if(t&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<t)return;this._onDragStart(e,!0)}if(S){l?(l.e+=m-(ct||0),l.f+=p-(dt||0)):l={a:1,b:0,c:0,d:1,e:m,f:p};var E="matrix(".concat(l.a,",").concat(l.b,",").concat(l.c,",").concat(l.d,",").concat(l.e,",").concat(l.f,")");w(S,"webkitTransform",E),w(S,"mozTransform",E),w(S,"msTransform",E),w(S,"transform",E),ct=m,dt=p,ce=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!S){var e=this.options.fallbackOnBody?document.body:F,n=V(d,!0,He,!0,e),t=this.options;if(He){for(W=e;w(W,"position")==="static"&&w(W,"transform")==="none"&&W!==document;)W=W.parentNode;W!==document.body&&W!==document.documentElement?(W===document&&(W=pe()),n.top+=W.scrollTop,n.left+=W.scrollLeft):W=pe(),ft=Pt(W)}S=d.cloneNode(!0),ne(S,t.ghostClass,!1),ne(S,t.fallbackClass,!0),ne(S,t.dragClass,!0),w(S,"transition",""),w(S,"transform",""),w(S,"box-sizing","border-box"),w(S,"margin",0),w(S,"top",n.top),w(S,"left",n.left),w(S,"width",n.width),w(S,"height",n.height),w(S,"opacity","0.8"),w(S,"position",He?"absolute":"fixed"),w(S,"zIndex","100000"),w(S,"pointerEvents","none"),_.ghost=S,e.appendChild(S),w(S,"transform-origin",At/parseInt(S.style.width)*100+"% "+Bt/parseInt(S.style.height)*100+"%")}},_onDragStart:function(e,n){var t=this,r=e.dataTransfer,i=t.options;if(ee("dragStart",this,{evt:e}),_.eventCanceled){this._onDrop();return}ee("setupClone",this),_.eventCanceled||(M=Ht(d),M.removeAttribute("id"),M.draggable=!1,M.style["will-change"]="",this._hideClone(),ne(M,this.options.chosenClass,!1),_.clone=M),t.cloneId=Qe(function(){ee("clone",t),!_.eventCanceled&&(t.options.removeCloneOnHide||F.insertBefore(M,d),t._hideClone(),Q({sortable:t,name:"clone"}))}),!n&&ne(d,i.dragClass,!0),n?(tt=!0,t._loopId=setInterval(t._emulateDragOver,50)):(T(document,"mouseup",t._onDrop),T(document,"touchend",t._onDrop),T(document,"touchcancel",t._onDrop),r&&(r.effectAllowed="move",i.setData&&i.setData.call(t,r,d)),k(document,"drop",t),w(d,"transform","translateZ(0)")),Oe=!0,t._dragStartId=Qe(t._dragStarted.bind(t,n,e)),k(document,"selectstart",t),Fe=!0,window.getSelection().removeAllRanges(),Re&&w(document.body,"user-select","none")},_onDragOver:function(e){var n=this.el,t=e.target,r,i,l,s=this.options,u=s.group,c=_.active,m=$e===u,p=s.sort,E=$||c,y,C=this,x=!1;if(vt)return;function q(I,ae){ee(I,C,he({evt:e,isOwner:m,axis:y?"vertical":"horizontal",revert:l,dragRect:r,targetRect:i,canSort:p,fromSortable:E,target:t,completed:O,onMove:function(Z,g){return je(F,n,d,r,Z,V(Z),e,g)},changed:L},ae))}function G(){q("dragOverAnimationCapture"),C.captureAnimationState(),C!==E&&E.captureAnimationState()}function O(I){return q("dragOverCompleted",{insertion:I}),I&&(m?c._hideClone():c._showClone(C),C!==E&&(ne(d,$?$.options.ghostClass:c.options.ghostClass,!1),ne(d,s.ghostClass,!0)),$!==C&&C!==_.active?$=C:C===_.active&&$&&($=null),E===C&&(C._ignoreWhileAnimating=t),C.animateAll(function(){q("dragOverAnimationComplete"),C._ignoreWhileAnimating=null}),C!==E&&(E.animateAll(),E._ignoreWhileAnimating=null)),(t===d&&!d.animated||t===n&&!t.animated)&&(Ne=null),!s.dragoverBubble&&!e.rootEl&&t!==document&&(d.parentNode[te]._isOutsideThisEl(e.target),!I&&Te(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),x=!0}function L(){oe=le(d),_e=le(d,s.draggable),Q({sortable:C,name:"change",toEl:n,newIndex:oe,newDraggableIndex:_e,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),t=de(t,s.draggable,n,!0),q("dragOver"),_.eventCanceled)return x;if(d.contains(e.target)||t.animated&&t.animatingX&&t.animatingY||C._ignoreWhileAnimating===t)return O(!1);if(tt=!1,c&&!s.disabled&&(m?p||(l=z!==F):$===this||(this.lastPutMode=$e.checkPull(this,c,d,e))&&u.checkPut(this,c,d,e))){if(y=this._getDirection(e,t)==="vertical",r=V(d),q("dragOverValid"),_.eventCanceled)return x;if(l)return z=F,G(),this._hideClone(),q("revert"),_.eventCanceled||(ke?F.insertBefore(d,ke):F.appendChild(d)),O(!0);var A=St(n,s.draggable);if(!A||Pn(e,y,this)&&!A.animated){if(A===d)return O(!1);if(A&&n===e.target&&(t=A),t&&(i=V(t)),je(F,n,d,r,t,i,e,!!t)!==!1)return G(),A&&A.nextSibling?n.insertBefore(d,A.nextSibling):n.appendChild(d),z=n,L(),O(!0)}else if(A&&On(e,y,this)){var U=Be(n,0,s,!0);if(U===d)return O(!1);if(t=U,i=V(t),je(F,n,d,r,t,i,e,!1)!==!1)return G(),n.insertBefore(d,U),z=n,L(),O(!0)}else if(t.parentNode===n){i=V(t);var Y=0,se,re=d.parentNode!==n,B=!xn(d.animated&&d.toRect||r,t.animated&&t.toRect||i,y),ge=y?"top":"left",ie=Ot(t,"top","top")||Ot(d,"top","top"),me=ie?ie.scrollTop:void 0;Ne!==t&&(se=i[ge],Xe=!1,Ge=!B&&s.invertSwap||re),Y=An(e,t,i,y,B?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,Ge,Ne===t);var H;if(Y!==0){var X=le(d);do X-=Y,H=z.children[X];while(H&&(w(H,"display")==="none"||H===S))}if(Y===0||H===t)return O(!1);Ne=t,Ve=Y;var fe=t.nextElementSibling,J=!1;J=Y===1;var b=je(F,n,d,r,t,i,e,J);if(b!==!1)return(b===1||b===-1)&&(J=b===1),vt=!0,setTimeout(Nn,30),G(),J&&!fe?n.appendChild(d):t.parentNode.insertBefore(d,J?fe:t),ie&&Gt(ie,0,me-ie.scrollTop),z=d.parentNode,se!==void 0&&!Ge&&(Ze=Math.abs(se-V(t)[ge])),L(),O(!0)}if(n.contains(d))return O(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){T(document,"mousemove",this._onTouchMove),T(document,"touchmove",this._onTouchMove),T(document,"pointermove",this._onTouchMove),T(document,"dragover",Te),T(document,"mousemove",Te),T(document,"touchmove",Te)},_offUpEvents:function(){var e=this.el.ownerDocument;T(e,"mouseup",this._onDrop),T(e,"touchend",this._onDrop),T(e,"pointerup",this._onDrop),T(e,"pointercancel",this._onDrop),T(e,"touchcancel",this._onDrop),T(document,"selectstart",this)},_onDrop:function(e){var n=this.el,t=this.options;if(oe=le(d),_e=le(d,t.draggable),ee("drop",this,{evt:e}),z=d&&d.parentNode,oe=le(d),_e=le(d,t.draggable),_.eventCanceled){this._nulling();return}Oe=!1,Ge=!1,Xe=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),yt(this.cloneId),yt(this._dragStartId),this.nativeDraggable&&(T(document,"drop",this),T(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Re&&w(document.body,"user-select",""),w(d,"transform",""),e&&(Fe&&(e.cancelable&&e.preventDefault(),!t.dropBubble&&e.stopPropagation()),S&&S.parentNode&&S.parentNode.removeChild(S),(F===z||$&&$.lastPutMode!=="clone")&&M&&M.parentNode&&M.parentNode.removeChild(M),d&&(this.nativeDraggable&&T(d,"dragend",this),pt(d),d.style["will-change"]="",Fe&&!Oe&&ne(d,$?$.options.ghostClass:this.options.ghostClass,!1),ne(d,this.options.chosenClass,!1),Q({sortable:this,name:"unchoose",toEl:z,newIndex:null,newDraggableIndex:null,originalEvent:e}),F!==z?(oe>=0&&(Q({rootEl:z,name:"add",toEl:z,fromEl:F,originalEvent:e}),Q({sortable:this,name:"remove",toEl:z,originalEvent:e}),Q({rootEl:z,name:"sort",toEl:z,fromEl:F,originalEvent:e}),Q({sortable:this,name:"sort",toEl:z,originalEvent:e})),$&&$.save()):oe!==Pe&&oe>=0&&(Q({sortable:this,name:"update",toEl:z,originalEvent:e}),Q({sortable:this,name:"sort",toEl:z,originalEvent:e})),_.active&&((oe==null||oe===-1)&&(oe=Pe,_e=Ke),Q({sortable:this,name:"end",toEl:z,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){ee("nulling",this),F=d=z=S=ke=M=Ue=Se=xe=ce=Fe=oe=_e=Pe=Ke=Ne=Ve=$=$e=_.dragged=_.ghost=_.clone=_.active=null,ot.forEach(function(e){e.checked=!0}),ot.length=ct=dt=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":d&&(this._onDragOver(e),In(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,t=this.el.children,r=0,i=t.length,l=this.options;r<i;r++)n=t[r],de(n,l.draggable,this.el,!1)&&e.push(n.getAttribute(l.dataIdAttr)||Fn(n));return e},sort:function(e,n){var t={},r=this.el;this.toArray().forEach(function(i,l){var s=r.children[l];de(s,this.options.draggable,r,!1)&&(t[i]=s)},this),n&&this.captureAnimationState(),e.forEach(function(i){t[i]&&(r.removeChild(t[i]),r.appendChild(t[i]))}),n&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,n){return de(e,n||this.options.draggable,this.el,!1)},option:function(e,n){var t=this.options;if(n===void 0)return t[e];var r=qe.modifyOption(this,e,n);typeof r<"u"?t[e]=r:t[e]=n,e==="group"&&Zt(t)},destroy:function(){ee("destroy",this);var e=this.el;e[te]=null,T(e,"mousedown",this._onTapStart),T(e,"touchstart",this._onTapStart),T(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(T(e,"dragover",this),T(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),nt.splice(nt.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Se){if(ee("hideClone",this),_.eventCanceled)return;w(M,"display","none"),this.options.removeCloneOnHide&&M.parentNode&&M.parentNode.removeChild(M),Se=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(Se){if(ee("showClone",this),_.eventCanceled)return;d.parentNode==F&&!this.options.group.revertClone?F.insertBefore(M,d):ke?F.insertBefore(M,ke):F.appendChild(M),this.options.group.revertClone&&this.animate(d,M),w(M,"display",""),Se=!1}}};function In(o){o.dataTransfer&&(o.dataTransfer.dropEffect="move"),o.cancelable&&o.preventDefault()}function je(o,e,n,t,r,i,l,s){var u,c=o[te],m=c.options.onMove,p;return window.CustomEvent&&!we&&!Ye?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=e,u.from=o,u.dragged=n,u.draggedRect=t,u.related=r||e,u.relatedRect=i||V(e),u.willInsertAfter=s,u.originalEvent=l,o.dispatchEvent(u),m&&(p=m.call(c,u,l)),p}function pt(o){o.draggable=!1}function Nn(){vt=!1}function On(o,e,n){var t=V(Be(n.el,0,n.options,!0)),r=jt(n.el,n.options,S),i=10;return e?o.clientX<r.left-i||o.clientY<t.top&&o.clientX<t.right:o.clientY<r.top-i||o.clientY<t.bottom&&o.clientX<t.left}function Pn(o,e,n){var t=V(St(n.el,n.options.draggable)),r=jt(n.el,n.options,S),i=10;return e?o.clientX>r.right+i||o.clientY>t.bottom&&o.clientX>t.left:o.clientY>r.bottom+i||o.clientX>t.right&&o.clientY>t.top}function An(o,e,n,t,r,i,l,s){var u=t?o.clientY:o.clientX,c=t?n.height:n.width,m=t?n.top:n.left,p=t?n.bottom:n.right,E=!1;if(!l){if(s&&Ze<c*r){if(!Xe&&(Ve===1?u>m+c*i/2:u<p-c*i/2)&&(Xe=!0),Xe)E=!0;else if(Ve===1?u<m+Ze:u>p-Ze)return-Ve}else if(u>m+c*(1-r)/2&&u<p-c*(1-r)/2)return Bn(e)}return E=E||l,E&&(u<m+c*i/2||u>p-c*i/2)?u>m+c/2?1:-1:0}function Bn(o){return le(d)<le(o)?1:-1}function Fn(o){for(var e=o.tagName+o.className+o.src+o.href+o.textContent,n=e.length,t=0;n--;)t+=e.charCodeAt(n);return t.toString(36)}function Mn(o){ot.length=0;for(var e=o.getElementsByTagName("input"),n=e.length;n--;){var t=e[n];t.checked&&ot.push(t)}}function Qe(o){return setTimeout(o,0)}function yt(o){return clearTimeout(o)}it&&k(document,"touchmove",function(o){(_.active||Oe)&&o.cancelable&&o.preventDefault()});_.utils={on:k,off:T,css:w,find:qt,is:function(e,n){return!!de(e,n,e,!1)},extend:yn,throttle:$t,closest:de,toggleClass:ne,clone:Ht,index:le,nextTick:Qe,cancelNextTick:yt,detectDirection:Ut,getChild:Be,expando:te};_.get=function(o){return o[te]};_.mount=function(){for(var o=arguments.length,e=new Array(o),n=0;n<o;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(_.utils=he(he({},_.utils),t.utils)),qe.mount(t)})};_.create=function(o,e){return new _(o,e)};_.version=mn;var K=[],Me,bt,Et=!1,ht,gt,rt,ze;function zn(){function o(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return o.prototype={dragStarted:function(n){var t=n.originalEvent;this.sortable.nativeDraggable?k(document,"dragover",this._handleAutoScroll):this.options.supportPointer?k(document,"pointermove",this._handleFallbackAutoScroll):t.touches?k(document,"touchmove",this._handleFallbackAutoScroll):k(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var t=n.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?T(document,"dragover",this._handleAutoScroll):(T(document,"pointermove",this._handleFallbackAutoScroll),T(document,"touchmove",this._handleFallbackAutoScroll),T(document,"mousemove",this._handleFallbackAutoScroll)),Mt(),Je(),bn()},nulling:function(){rt=bt=Me=Et=ze=ht=gt=null,K.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,t){var r=this,i=(n.touches?n.touches[0]:n).clientX,l=(n.touches?n.touches[0]:n).clientY,s=document.elementFromPoint(i,l);if(rt=n,t||this.options.forceAutoScrollFallback||Ye||we||Re){mt(n,this.options,s,t);var u=Ce(s,!0);Et&&(!ze||i!==ht||l!==gt)&&(ze&&Mt(),ze=setInterval(function(){var c=Ce(document.elementFromPoint(i,l),!0);c!==u&&(u=c,Je()),mt(n,r.options,c,t)},10),ht=i,gt=l)}else{if(!this.options.bubbleScroll||Ce(s,!0)===pe()){Je();return}mt(n,this.options,Ce(s,!1),!1)}}},Ee(o,{pluginName:"scroll",initializeByDefault:!0})}function Je(){K.forEach(function(o){clearInterval(o.pid)}),K=[]}function Mt(){clearInterval(ze)}var mt=$t(function(o,e,n,t){if(e.scroll){var r=(o.touches?o.touches[0]:o).clientX,i=(o.touches?o.touches[0]:o).clientY,l=e.scrollSensitivity,s=e.scrollSpeed,u=pe(),c=!1,m;bt!==n&&(bt=n,Je(),Me=e.scroll,m=e.scrollFn,Me===!0&&(Me=Ce(n,!0)));var p=0,E=Me;do{var y=E,C=V(y),x=C.top,q=C.bottom,G=C.left,O=C.right,L=C.width,A=C.height,U=void 0,Y=void 0,se=y.scrollWidth,re=y.scrollHeight,B=w(y),ge=y.scrollLeft,ie=y.scrollTop;y===u?(U=L<se&&(B.overflowX==="auto"||B.overflowX==="scroll"||B.overflowX==="visible"),Y=A<re&&(B.overflowY==="auto"||B.overflowY==="scroll"||B.overflowY==="visible")):(U=L<se&&(B.overflowX==="auto"||B.overflowX==="scroll"),Y=A<re&&(B.overflowY==="auto"||B.overflowY==="scroll"));var me=U&&(Math.abs(O-r)<=l&&ge+L<se)-(Math.abs(G-r)<=l&&!!ge),H=Y&&(Math.abs(q-i)<=l&&ie+A<re)-(Math.abs(x-i)<=l&&!!ie);if(!K[p])for(var X=0;X<=p;X++)K[X]||(K[X]={});(K[p].vx!=me||K[p].vy!=H||K[p].el!==y)&&(K[p].el=y,K[p].vx=me,K[p].vy=H,clearInterval(K[p].pid),(me!=0||H!=0)&&(c=!0,K[p].pid=setInterval((function(){t&&this.layer===0&&_.active._onTouchMove(rt);var fe=K[this.layer].vy?K[this.layer].vy*s:0,J=K[this.layer].vx?K[this.layer].vx*s:0;typeof m=="function"&&m.call(_.dragged.parentNode[te],J,fe,o,rt,K[this.layer].el)!=="continue"||Gt(K[this.layer].el,J,fe)}).bind({layer:p}),24))),p++}while(e.bubbleScroll&&E!==u&&(E=Ce(E,!1)));Et=c}},30),en=function(e){var n=e.originalEvent,t=e.putSortable,r=e.dragEl,i=e.activeSortable,l=e.dispatchSortableEvent,s=e.hideGhostForTarget,u=e.unhideGhostForTarget;if(n){var c=t||i;s();var m=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,p=document.elementFromPoint(m.clientX,m.clientY);u(),c&&!c.el.contains(p)&&(l("spill"),this.onSpill({dragEl:r,putSortable:t}))}};function Ct(){}Ct.prototype={startIndex:null,dragStart:function(e){var n=e.oldDraggableIndex;this.startIndex=n},onSpill:function(e){var n=e.dragEl,t=e.putSortable;this.sortable.captureAnimationState(),t&&t.captureAnimationState();var r=Be(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(n,r):this.sortable.el.appendChild(n),this.sortable.animateAll(),t&&t.animateAll()},drop:en};Ee(Ct,{pluginName:"revertOnSpill"});function Dt(){}Dt.prototype={onSpill:function(e){var n=e.dragEl,t=e.putSortable,r=t||this.sortable;r.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),r.animateAll()},drop:en};Ee(Dt,{pluginName:"removeOnSpill"});_.mount(new zn);_.mount(Dt,Ct);const tn=["sm","md","lg"],wt={none:"gap-none",sm:"gap-sm",md:"gap-md",lg:"gap-lg"},[nn,on]=an.createContext("CheckboxGroup"),Rn=["data-parents","data-key","data-draggable"],Ln=a.defineComponent({...Rt.getComponentOptions("TreeNode"),__name:"TreeNode",props:{item:{},level:{default:1},parentKeys:{}},setup(o){const e=o,n=a.useSlots(),t=nn(),r=zt.cva(t.prefixes.node,{variants:{disabled:P.generateVariantClassList("disabled",t.prefixes.node),active:P.generateVariantClassList("active",t.prefixes.node),hasChildren:P.generateVariantClassList("has-children",t.prefixes.node)}}),i=a.computed(()=>{switch(t.size.value){case"sm":return"2xsm";case"md":case"lg":return"xsm"}}),l=a.computed(()=>{switch(t.size.value){case"sm":return"2xsm";default:return"xsm"}}),s=b=>t.getNodeField(b,"children"),u=b=>t.getNodeField(b,"key"),c=a.computed(()=>s(R.cloneDeep(e.item))),m=a.computed(()=>t.getNodeField(e.item,"leaf")),p=a.computed(()=>{var b;return(b=t.props)!=null&&b.draggable?t.getNodeField(e.item,"draggable")??!0:!1}),E=a.computed(()=>u(e.item)),y=a.computed(()=>!!(t.disabled.value||t.getNodeField(e.item,"disabled"))),C=a.computed(()=>{var b;return!!((b=c.value)!=null&&b.some(I=>t.expandedKeys.value.includes(u(I))))}),x=a.computed(()=>{var b,I;return!((b=t.dragging.value)!=null&&b.key&&((I=t.dragging.value)==null?void 0:I.key)===E.value)&&t.expandedKeys.value.includes(E.value)}),q=a.computed(()=>{var b,I;return!!(!t.dragging.value.value&&((b=t.props)!=null&&b.showLine)&&x.value&&((I=c.value)!=null&&I.length))}),G=()=>{y.value||(t.props.syncCheckboxAndSelect?U():t.onSelect(e.item))},O=a.computed(()=>!!t.model.value.includes(E.value)),L=a.computed(()=>{const b=(Z=e.item)=>{const g=s(Z);return(g==null?void 0:g.length)&&g.every(f=>t.checked.value.includes(u(f)))},I=(Z=e.item)=>{const g=s(Z);return g!=null&&g.length?!!(g!=null&&g.some(f=>t.checked.value.includes(u(f))||I(f))):!1},ae=t.checked.value.includes(E.value);return b()?(ae||t.onCheck(e.item),!0):I()?(ae&&t.onCheck(e.item),"indeterminate"):!!ae}),A=b=>{t.props.syncCheckboxAndSelect||b==null||b.stopPropagation()},U=b=>{var Z;if(b!==void 0&&t.props.syncCheckboxAndSelect)return;if(!((Z=c.value)!=null&&Z.length))return t.props.syncCheckboxAndSelect&&t.onSelect(e.item),t.onCheck(e.item);const I=(g=e.item)=>{const f=s(g);return f!=null&&f.length?f.reduce((D,h)=>{const v=s(h),N=u(h);return v!=null&&v.length?[...D,N,...I(h)]:[...D,N]},[]):[]},ae=I(),ve={keys:[E.value,...ae],value:!t.checked.value.includes(E.value)};return t.props.syncCheckboxAndSelect&&t.onSelect(e.item,ve),t.onCheck(e.item,ve)},Y=a.computed(()=>[...e.parentKeys??[],E.value]),se=b=>{t.onExpandKey(e.item,b)},re=a.computed(()=>t.dragging.value.key===E.value?t.dragging.value.level??e.level:e.level),B=a.computed(()=>re.value+1),ge=a.computed(()=>{switch(t.size.value){case"sm":return"2xsm";case"md":return"xsm";case"lg":return"sm"}}),{rootBindings:ie,inputBindings:me}=Lt.UseInputDataStates({getDisabled:()=>y.value}),H=a.computed(()=>{var b,I;return!!((b=c.value)!=null&&b.length||(I=t.props)!=null&&I.lazyLoad&&!m.value)}),X=a.useTemplateRef("indent"),{width:fe,height:J}=cn.useElementSize(X);return(b,I)=>{var ve,Z,g,f,D,h,v,N,ye,j,De,ue;const ae=a.resolveComponent("TreeNode",!0);return a.openBlock(),a.createElementBlock("div",a.mergeProps({"data-parents":(ve=a.unref(t).props)!=null&&ve.draggable?b.parentKeys:void 0,"data-key":(Z=a.unref(t).props)!=null&&Z.draggable?E.value:void 0,"data-draggable":(g=a.unref(t).props)!=null&&g.draggable?!y.value&&p.value:void 0,class:[(f=c.value)!=null&&f.length?a.unref(t).prefixes.group:"",a.unref(P.getBemElement)(a.unref(t).prefixes.node,"root"),a.unref(t).getNodeField(b.item,"class"),{[a.unref(P.getBemModifier)(a.unref(t).prefixes.group,"child-expanded")]:C.value,[a.unref(P.getBemModifier)(a.unref(t).prefixes.group,"draggable")]:(D=a.unref(t).props)==null?void 0:D.draggable}]},a.unref(ie),{style:{"--ptc-tree-node-indent-height":`${a.unref(J)}px`,"--ptc-tree-node-indent-width":`${a.unref(fe)}px`}}),[q.value?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(a.unref(P.getBemElement)(a.unref(t).prefixes.group,"line"))},null,2)):a.createCommentVNode("",!0),a.createElementVNode("div",a.mergeProps({class:[a.unref(r)({disabled:y.value,active:O.value,hasChildren:H.value})]},a.unref(me),{onClick:G}),[(h=a.unref(t).props)!=null&&h.draggable?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(a.unref(t).prefixes.draggable)},[a.unref(t).dragging.value.key!==E.value&&!a.unref(t).dragging.value.value?(a.openBlock(),a.createBlock(sn._sfc_main,{key:0,icon:"tabler:grip-vertical",size:l.value,class:a.normalizeClass(a.unref(t).prefixes.draggableIcon)},{default:a.withCtx(()=>[a.renderSlot(b.$slots,"dragTrigger",a.normalizeProps(a.guardReactiveProps({...b.item,selected:O.value,checked:L.value,disabled:y.value,unFocusable:!0})))]),_:3},8,["size","class"])):a.createCommentVNode("",!0)],2)):a.createCommentVNode("",!0),a.createVNode(ln._sfc_main,{ref_key:"indent",ref:X,level:re.value,children:H.value,size:ge.value,expanded:x.value,showLine:!1,class:a.normalizeClass(a.unref(P.getBemElement)(a.unref(t).prefixes.node,"indent")),loading:a.unref(t).getNodeField(b.item,"loading"),"branch-icon":a.unref(t).getNodeField(b.item,"switcherIcon")??((v=a.unref(t).props)==null?void 0:v.switcherIcon),"no-rotate-branch":a.unref(t).getNodeField(b.item,"noRotateSwitcherIcon")??((N=a.unref(t).props)==null?void 0:N.noRotateSwitcherIcon),onToggleExpand:I[0]||(I[0]=a.withModifiers(xt=>se(),["stop"]))},{default:a.withCtx(()=>[a.renderSlot(b.$slots,"switcherIcon",a.normalizeProps(a.guardReactiveProps({...b.item,selected:O.value,checked:L.value,expanded:x.value,disabled:y.value,unFocusable:!0})))]),_:3},8,["level","children","size","expanded","class","loading","branch-icon","no-rotate-branch"]),a.unref(t).dragging.value.key!==E.value||!a.unref(t).dragging.value.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[(ye=a.unref(t).props)!=null&&ye.checkbox?(a.openBlock(),a.createBlock(un._sfc_main,{key:0,size:i.value,onClick:A,modelValue:L.value,"onUpdate:modelValue":U,disabled:y.value},null,8,["size","modelValue","disabled"])):a.createCommentVNode("",!0),a.renderSlot(b.$slots,"title",a.normalizeProps(a.guardReactiveProps({...b.item,selected:O.value,checked:L.value,disabled:y.value,unFocusable:!0})),()=>[a.createElementVNode("div",{class:a.normalizeClass(a.unref(P.getBemElement)(a.unref(t).prefixes.node,"title"))},a.toDisplayString(a.unref(t).getNodeField(b.item,"title")),3)])],64)):(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(a.unref(P.getBemElement)(a.unref(t).prefixes.node,"slot"))},null,2))],16),a.unref(t).dragging.value.value||a.unref(t).dragging.value.key||(j=c.value)!=null&&j.length&&(x.value||a.unref(t).props.forceMount)?a.withDirectives((a.openBlock(),a.createBlock(a.unref(Kt),a.mergeProps({key:1,class:a.unref(t).prefixes.groupList,"data-parents":(De=a.unref(t).props)!=null&&De.draggable?Y.value:void 0,"data-level":(ue=a.unref(t).props)!=null&&ue.draggable?B.value:void 0,tag:"div",list:c.value},a.unref(t).getSortableProps(b.item)),{item:a.withCtx(({element:xt})=>[a.createVNode(ae,{item:xt,parentKeys:Y.value,level:B.value},a.createSlots({_:2},[a.renderList(Object.keys(n),Tt=>({name:Tt,fn:a.withCtx(rn=>[a.renderSlot(b.$slots,Tt,a.normalizeProps(a.guardReactiveProps(rn)))])}))]),1032,["item","parentKeys","level"])]),_:3},16,["class","data-parents","data-level","list"])),[[a.vShow,x.value]]):a.createCommentVNode("",!0)],16,Rn)}}}),Kn=a.defineComponent({...Rt.getComponentOptions("Tree"),__name:"Tree",props:{class:{},size:{default:"md"},gap:{},dir:{},data:{},modelValue:{},value:{},checkedKeys:{},expandedKeys:{},multiple:{type:Boolean},checkbox:{type:Boolean},syncCheckboxAndSelect:{type:Boolean},defaultExpandAll:{type:Boolean},selectable:{type:Boolean},showLine:{type:Boolean},inlineNode:{type:Boolean},lazyLoad:{type:Boolean},forceMount:{type:Boolean},fieldNames:{},groupName:{},getSortableProps:{},switcherIcon:{},noRotateSwitcherIcon:{type:Boolean},draggable:{type:Boolean},disabled:{type:Boolean}},emits:["update:modelValue","update:value","update:expandedKeys","update:checkedKeys","expand","select","check","dragStart","dragEnd","move","choose","unchoose"],setup(o,{emit:e}){const n=o,t=e,r=a.useSlots(),i=P.getBemBlock("tree"),l=P.getBemElement(i,"node"),s=P.getBemElement(l,"group"),u=P.getBemElement(l,"draggable"),c=P.getBemElement(u,"icon"),m=P.getBemElement(s,"list"),p={node:l,group:s,draggable:u,draggableIcon:c,groupList:m},E=zt.cva(i,{variants:{size:P.generateVariantClassList(tn,i),gap:P.generateVariantClassList(wt,i),selectable:P.generateVariantClassList("selectable",i),disabled:P.generateVariantClassList("disabled",i),inlineNode:P.generateVariantClassList("inline-node",i),dragging:P.generateVariantClassList("dragging",i)}}),y=(g,f)=>{var h;const D=R.get(g,f);return(h=n.fieldNames)!=null&&h[f]?R.get(g,n.fieldNames[f],D):D},C=a.ref(R.cloneDeep(n.data)),x=a.computed(()=>R.cloneDeep(C.value)),q=()=>{if(!n.lazyLoad){const g=[],f=D=>{for(const h of D){const v=y(h,"children");v!=null&&v.length&&(g.push(y(h,"key")),f(v))}};return f(C.value),g}return[]},G=a.ref(n.expandedKeys??(n.defaultExpandAll?q():[]));a.watch(()=>[n.defaultExpandAll,n.expandedKeys],([g,f],[D,h])=>{f!==h?G.value=n.expandedKeys??[]:g&&!D&&(G.value=q())});const O=a.computed({get(){return n.expandedKeys?n.expandedKeys:G.value},set(g){n.expandedKeys||(G.value=g),t("update:expandedKeys",g)}});a.watch(()=>n.data,()=>{C.value=R.cloneDeep(n.data);const g=q();O.value=O.value.filter(f=>g.includes(f))},{deep:!0});const L=a.ref(n.modelValue??n.value??[]);a.watch(()=>[n.modelValue,n.value],()=>{L.value=n.modelValue??n.value??[]});const A=a.computed({get(){return n.modelValue??n.value?n.modelValue??n.value:L.value},set(g){g&&((n.modelValue??n.value)||(L.value=g),t("update:modelValue",g),t("update:value",g))}}),{getDisabled:U,getSize:Y}=Lt.useFormInput(),se=(g,f)=>{var D,h;if(n.selectable&&!U.value){let v=R.cloneDeep(A.value);const N=y(g,"key");f!=null&&f.keys.length&&n.multiple?f.value?v=at.uniq([...f.keys,...v]):v=R.cloneDeep(A.value.filter(j=>!f.keys.includes(j))):n.multiple?(D=A.value)!=null&&D.includes(N)?v=R.cloneDeep((h=A.value)==null?void 0:h.filter(j=>j!==N)):v=R.cloneDeep([...A.value??[],N]):A.value.includes(N)?v=[]:v=[N],A.value=v;const ye=(f==null?void 0:f.value)??v.includes(N);t("select",g,ye,(f==null?void 0:f.keys)??N)}},re=a.ref(n.checkedKeys??[]);a.watch(()=>n.checkedKeys,()=>{re.value=n.checkedKeys??[]});const B=a.computed({get(){return n.checkedKeys?n.checkedKeys:re.value},set(g){n.checkedKeys||(re.value=g),t("update:checkedKeys",g)}}),ge=(g,f)=>{if(n.checkbox&&!U.value){let D=R.cloneDeep(B.value);const h=y(g,"key");f!=null&&f.keys.length?f.value?D=at.uniq([...f.keys,...D]):D=R.cloneDeep(B.value.filter(N=>!f.keys.includes(N))):B.value.includes(h)?D=R.cloneDeep(B.value.filter(N=>N!==h)):D=R.cloneDeep([...B.value,h]),B.value=D;const v=(f==null?void 0:f.value)??D.includes(h);t("check",g,v,(f==null?void 0:f.keys)??h)}},ie=(g,f)=>{let D=!0;const h=y(g,"key");let v=R.cloneDeep(O.value);f||f!==!1&&!v.includes(h)?(v=at.uniq([...v,h]),D=!0):(v=v.filter(N=>N!==h),D=!1),O.value=v,t("expand",g,D)},me=a.computed(()=>{if(n.gap){if(typeof n.gap=="number")return`${n.gap}px`;if(!Object.keys(wt).includes(n.gap))return n.gap}}),H=n.groupName??P.usePCId(i),X=a.ref({key:void 0,value:!1,level:void 0}),fe=a.computed(()=>P.getBemModifier(P.getBemElement(i,"dragging_item"),Y.value)),J=g=>{var f;return(f=g.getAttribute("data-parents"))==null?void 0:f.split(",")},b=a.computed(()=>{const g=[],f=(D,h)=>{D!=null&&D.length&&D.forEach((v,N)=>{const ye=["title","disabled","draggable","leaf","loading","class","switcherIcon","noRotateSwitcherIcon"];let j=y(v,"key");if(!j){const ue=dn.last(R.cloneDeep(h)??[]);ue&&(j=`${ue}-${N}`),j=`${N}`}j=String(j),g.push(R.omitBy({...fn.omit(v,"children"),...Object.fromEntries(ye.map(ue=>[ue,y(v,ue)])),parentKeys:h,key:j},R.isUndefined));const De=y(v,"children");if(De!=null&&De.length){const ue=R.cloneDeep(h)??[];ue.push(j),f(De,ue)}})};return f(R.cloneDeep(C.value)),g}),I=g=>{const f=J(g),D=g.getAttribute("data-key")??"";return b.value.find(h=>{var v,N,ye;return(!((v=h.parentKeys)!=null&&v.length)&&!(f!=null&&f.length)||((N=h.parentKeys)==null?void 0:N.length)&&(f==null?void 0:f.length)&&h.parentKeys.length===f.length&&((ye=h.parentKeys)==null?void 0:ye.every(j=>f.includes(j))))&&D===h.key})},ae=g=>{var D;const f=((D=n.getSortableProps)==null?void 0:D.call(n,g))||{};return{...f,group:lt.isFunction(H)?H(g):H,animation:150,forceFallback:!0,fallbackOnBody:!0,filter:"[data-draggable=false]",handle:`.${p.node} .${p.draggable} .${p.draggableIcon}`,dataIdAttr:"data-key",dragClass:fe.value,onChoose(h){const v=I(h==null?void 0:h.item);v&&(X.value.key=y(v,"key")),t("choose",h)},onStart(h){if(typeof document<"u"){const v=document.querySelector(`.${fe.value}`);v!=null&&v.style&&(v.style.direction=Z.value??"ltr")}X.value.value=!0,t("dragStart",h)},onUnchoose(h){X.value.key=void 0,X.value.level=void 0,t("unchoose",h)},onEnd(h){X.value.value=!1;const v={...h,node:I(h==null?void 0:h.item),oldParents:J(h==null?void 0:h.item),newParents:J(h==null?void 0:h.to)};C.value=R.cloneDeep(n.data),t("dragEnd",v)},onMove(h,v){var N;if(X.value.level=Number(((N=h==null?void 0:h.to)==null?void 0:N.getAttribute("data-level"))??"1"),t("move",h,v),lt.isFunction(f.onMove))return f.onMove(h,v)},itemKey:h=>y(h,"key")}},{getDir:ve}=lt.useConfig(),Z=ve();return on({size:Y,disabled:U,props:n,expandedKeys:O,model:A,dir:Z,checked:B,onExpandKey:ie,onSelect:se,onCheck:ge,getNodeField:y,getSortableProps:ae,dragging:X,prefixes:p}),(g,f)=>(a.openBlock(),a.createBlock(a.unref(Kt),a.mergeProps({role:"tree",class:[a.unref(E)({size:a.unref(Y),gap:n.gap??a.unref(Y),selectable:n.selectable,disabled:a.unref(U),inlineNode:n.inlineNode,dragging:!!X.value.value}),n.class],style:{"--ptc-tree-gap":me.value},tag:"div",list:x.value},ae()),{item:a.withCtx(({element:D})=>[(a.openBlock(),a.createBlock(Ln,{key:y(D,"key"),item:D},a.createSlots({_:2},[a.renderList(Object.keys(r),h=>({name:h,fn:a.withCtx(v=>[a.renderSlot(g.$slots,h,a.normalizeProps(a.guardReactiveProps(v)))])}))]),1032,["item"]))]),_:3},16,["class","style","list"]))}});exports.TreeGaps=wt;exports.TreeSizes=tn;exports._sfc_main=Kn;exports.injectTreeContext=nn;exports.provideTreeContext=on;
|