@pantograph/vue 0.25.7 → 0.26.0
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-BOiXNbKw.js → ActionButton.vue_vue_type_script_setup_true_lang-C-yubDE0.js} +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-DBykKGHQ.js → ActionButton.vue_vue_type_script_setup_true_lang-C8Q6waTJ.js} +1 -1
- 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-B1JrRGlL.js → Alert.vue_vue_type_style_index_0_lang-DxlwdpVq.js} +4 -4
- package/dist/{Alert.vue_vue_type_style_index_0_lang-iIyhPLmR.js → Alert.vue_vue_type_style_index_0_lang-Q2swor45.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-560JMJs8.js → Avatar.vue_vue_type_style_index_0_lang-DmIuHoi3.js} +10 -8
- package/dist/Avatar.vue_vue_type_style_index_0_lang-UzInGmo8.js +1 -0
- package/dist/AvatarGroup/AvatarGroup.d.ts +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-Btr5ZeJl.js → Badge.vue_vue_type_script_setup_true_lang-BBMB72Mz.js} +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-Kd8vLJ1r.js → Badge.vue_vue_type_script_setup_true_lang-DvZc9U-W.js} +1 -1
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-tjWWO1Eb.js → BaseBadge.vue_vue_type_style_index_0_lang-BNlyoiRz.js} +1 -1
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-no7MMMcb.js → BaseBadge.vue_vue_type_style_index_0_lang-Cekbj5do.js} +1 -1
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-gx7pLyR8.js → BaseButton.vue_vue_type_style_index_0_lang-Bwa2jAT_.js} +4 -4
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-DyR-qPkq.js → BaseButton.vue_vue_type_style_index_0_lang-DQGK3rUl.js} +1 -1
- package/dist/{BaseInput.vue_vue_type_style_index_0_lang-CZMdvNIt.js → BaseInput.vue_vue_type_style_index_0_lang-CalBdGIB.js} +1 -1
- package/dist/{BaseInput.vue_vue_type_style_index_0_lang-BOCVi3J8.js → BaseInput.vue_vue_type_style_index_0_lang-b7Cyp0zn.js} +1 -1
- 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-iY6wC5I7.js → Button.vue_vue_type_script_setup_true_lang-BGNxRN3s.js} +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-CKt4CFcG.js → Button.vue_vue_type_script_setup_true_lang-C_XW_RxE.js} +1 -1
- 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-srZfoj7r.js → Checkbox.vue_vue_type_style_index_0_lang-BftwQBSo.js} +1 -1
- package/dist/{Checkbox.vue_vue_type_style_index_0_lang-Q8nvY8Va.js → Checkbox.vue_vue_type_style_index_0_lang-QBA04hd1.js} +2 -2
- package/dist/CheckboxGroup/index.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- package/dist/Chip/index.js +4 -5
- package/dist/Chip/index.umd.cjs +1 -1
- package/dist/Chip.vue_vue_type_style_index_0_lang-CRI3QwLZ.js +192 -0
- package/dist/Chip.vue_vue_type_style_index_0_lang-z_hK7usq.js +1 -0
- package/dist/ChipGroup/ChipGroup.d.ts +3 -4
- package/dist/ChipGroup/index.js +1 -1
- package/dist/ChipGroup/index.umd.cjs +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-DL_ZJmhv.js → ColorPicker.vue_vue_type_style_index_0_lang-CFWIxkoW.js} +3 -3
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-Bn5JW2Gt.js → ColorPicker.vue_vue_type_style_index_0_lang-CcSrQKRq.js} +1 -1
- package/dist/ColorSwatch/index.js +1 -1
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/{ColorSwatch-BmsX5hTJ.js → ColorSwatch-B8Atg6sw.js} +1 -1
- package/dist/{ColorSwatch-BMQgaieC.js → ColorSwatch-Bjf8zaRk.js} +1 -1
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-DcE8KBJ4.js → ColorSwatch.vue_vue_type_style_index_0_lang-CXCshLKX.js} +1 -1
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-C4Kg1zF7.js → ColorSwatch.vue_vue_type_style_index_0_lang-DsriVs5P.js} +2 -2
- 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-DcQU4Avw.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-CczGrgYd.js} +1 -1
- package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-baZQlRfW.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-amI55LMo.js} +13 -14
- 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-D7z5WQlE.js → ColorTrigger.vue_vue_type_style_index_0_lang-BIaTcjVN.js} +3 -3
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-9NjMxcKG.js → ColorTrigger.vue_vue_type_style_index_0_lang-Bny3csr4.js} +1 -1
- package/dist/Combobox/Combobox.d.ts +2 -2
- package/dist/Combobox/index.js +1 -1
- package/dist/Combobox/index.umd.cjs +1 -1
- package/dist/Combobox.vue_vue_type_style_index_0_lang-C5lxH1Cg.js +1 -0
- package/dist/{Combobox.vue_vue_type_style_index_0_lang-CzVJFdEg.js → Combobox.vue_vue_type_style_index_0_lang-DLgal2Q-.js} +134 -136
- package/dist/Comment/index.js +36 -39
- package/dist/Comment/index.umd.cjs +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-CRv9-elM.js +1 -0
- package/dist/{DataTable.vue_vue_type_style_index_0_lang-a06ynWLy.js → DataTable.vue_vue_type_style_index_0_lang-DFOwpMxF.js} +81 -80
- 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-Dq0K__t6.js → DropZone.vue_vue_type_style_index_0_lang-B0T34FXZ.js} +2 -2
- package/dist/{DropZone.vue_vue_type_style_index_0_lang-B2XNdFr7.js → DropZone.vue_vue_type_style_index_0_lang-CjskWVFc.js} +1 -1
- 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-BkLWzc14.js → Empty.vue_vue_type_style_index_0_lang-2ZPIGpdZ.js} +1 -1
- package/dist/{Empty.vue_vue_type_style_index_0_lang-C1kPtilP.js → Empty.vue_vue_type_style_index_0_lang-Bk2nO0VN.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-sIUaExTM.js → FloatButton.vue_vue_type_script_setup_true_lang-CqI5GHuN.js} +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-CxSElBbb.js → FloatButton.vue_vue_type_script_setup_true_lang-DObfA5pf.js} +1 -1
- package/dist/Form/index.js +1 -1
- package/dist/Form/index.umd.cjs +1 -1
- package/dist/GOPicker/index.js +1 -1
- package/dist/GOPicker/index.umd.cjs +1 -1
- package/dist/{GOPicker.vue_vue_type_style_index_0_lang-rSEkCO3H.js → GOPicker.vue_vue_type_style_index_0_lang-BieXIwrY.js} +1 -1
- package/dist/{GOPicker.vue_vue_type_style_index_0_lang-CR7s37Os.js → GOPicker.vue_vue_type_style_index_0_lang-CJ-yY8X0.js} +11 -13
- 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-WjnCG0pe.js → GraphicalObject.vue_vue_type_script_setup_true_lang-BqtvZ4Zu.js} +1 -1
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-CpstWkLR.js → GraphicalObject.vue_vue_type_script_setup_true_lang-DFogOMOj.js} +2 -2
- package/dist/GraphicalObjectGroup/GraphicalObjectGroup.d.ts +2 -2
- 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-BXpVeN5_.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-CFIKZKMj.js} +20 -18
- package/dist/GraphicalObjectGroup.vue_vue_type_style_index_0_lang-CnsHb2Lb.js +1 -0
- package/dist/HoverCard/HoverCard.d.ts +163 -0
- package/dist/HoverCard/index.d.ts +2 -0
- package/dist/HoverCard/index.js +8 -0
- package/dist/HoverCard/index.umd.cjs +1 -0
- package/dist/HoverCard.vue_vue_type_style_index_0_lang-DGhlQaO0.js +124 -0
- package/dist/HoverCard.vue_vue_type_style_index_0_lang-tPtCNI95.js +1 -0
- 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-DkeXz23k.js → Icon.vue_vue_type_style_index_0_lang-26YK1SwL.js} +82 -81
- package/dist/{Icon.vue_vue_type_style_index_0_lang-DyeL9Lem.js → Icon.vue_vue_type_style_index_0_lang-CRquOLJG.js} +3 -3
- 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-CudH1Czj.js → IconButton.vue_vue_type_script_setup_true_lang-Dvu9WpEN.js} +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-Bz66rcDQ.js → IconButton.vue_vue_type_script_setup_true_lang-ZUsEmKon.js} +1 -1
- 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-D8BJOCro.js → Image.vue_vue_type_style_index_0_lang-BabuXXFH.js} +8 -8
- package/dist/{Image.vue_vue_type_style_index_0_lang-D7buZGTj.js → Image.vue_vue_type_style_index_0_lang-Dcqwbt4T.js} +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-DkVpxqkS.js → IndentLevel.vue_vue_type_style_index_0_lang-CZ95qLkr.js} +8 -8
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-iaGGd8NQ.js → IndentLevel.vue_vue_type_style_index_0_lang-LYssIii4.js} +1 -1
- 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-BTt9LTh1.js → Indicator.vue_vue_type_script_setup_true_lang-B-oDEbiu.js} +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-C6C6qnFI.js → Indicator.vue_vue_type_script_setup_true_lang-Bfc2cDZW.js} +1 -1
- package/dist/Input/index.js +2 -2
- package/dist/Input/index.umd.cjs +1 -1
- package/dist/{Input.vue_vue_type_script_setup_true_lang-Dws8FarS.js → Input.vue_vue_type_script_setup_true_lang-BVbKTWVG.js} +1 -1
- package/dist/{Input.vue_vue_type_script_setup_true_lang-Dtkw6-JD.js → Input.vue_vue_type_script_setup_true_lang-BZidgKiU.js} +10 -10
- package/dist/InputNumber/index.js +2 -2
- package/dist/InputNumber/index.umd.cjs +1 -1
- package/dist/{InputNumber.vue_vue_type_script_setup_true_lang-Cr4YLP4W.js → InputNumber.vue_vue_type_script_setup_true_lang-DEgVgZ_0.js} +1 -1
- package/dist/{InputNumber.vue_vue_type_script_setup_true_lang-mEje-O-q.js → InputNumber.vue_vue_type_script_setup_true_lang-y1SYHqAR.js} +3 -3
- 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-VXCAjXze.js → Kbd.vue_vue_type_style_index_0_lang-1ITCVp0q.js} +1 -1
- package/dist/{Kbd.vue_vue_type_style_index_0_lang-BFlrS9Oh.js → Kbd.vue_vue_type_style_index_0_lang-Cjc5Rk3l.js} +1 -1
- 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-DgvyW7Rs.js → Link.vue_vue_type_style_index_0_lang-CXRcuM5F.js} +1 -1
- package/dist/{Link.vue_vue_type_style_index_0_lang-BRLBWpij.js → Link.vue_vue_type_style_index_0_lang-gFBGdIkN.js} +1 -1
- package/dist/Menu/index.js +1 -1
- package/dist/Menu/index.umd.cjs +1 -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-BC0hNIHn.js +1 -0
- package/dist/{MenuItem.vue_vue_type_style_index_0_lang-BSbQKPOJ.js → MenuItem.vue_vue_type_style_index_0_lang-CK2KrtJa.js} +183 -182
- package/dist/Pagination/index.js +1 -1
- package/dist/Pagination/index.umd.cjs +1 -1
- package/dist/{Pagination.vue_vue_type_style_index_0_lang-6HV2JmdQ.js → Pagination.vue_vue_type_style_index_0_lang-DOwVgreM.js} +1 -1
- package/dist/{Pagination.vue_vue_type_style_index_0_lang-FoV1-lO_.js → Pagination.vue_vue_type_style_index_0_lang-Dgx-vviE.js} +30 -30
- package/dist/Popover/Popover.d.ts +4 -106
- package/dist/Popover/index.js +1 -1
- package/dist/Popover/index.umd.cjs +1 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-22ewjJ6F.js +1 -0
- package/dist/Popover.vue_vue_type_style_index_0_lang-BrLhsdZu.js +247 -0
- package/dist/Progress/index.js +1 -1
- package/dist/Progress/index.umd.cjs +1 -1
- package/dist/{Progress.vue_vue_type_style_index_0_lang-DNe_dcRZ.js → Progress.vue_vue_type_style_index_0_lang-8m4aQ4CZ.js} +1 -1
- package/dist/{Progress.vue_vue_type_style_index_0_lang-BXhIqXDx.js → Progress.vue_vue_type_style_index_0_lang-DHMo6akY.js} +11 -11
- 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-D-9WHezS.js → RadioGroup.vue_vue_type_script_setup_true_lang-B9rRuGDt.js} +1 -1
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-NO2KpdR5.js → RadioGroup.vue_vue_type_script_setup_true_lang-Zo3ozdqk.js} +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-DKfgCbWJ.js → ScrollContainer.vue_vue_type_style_index_0_lang-DRYmVHMT.js} +1 -1
- package/dist/{ScrollContainer.vue_vue_type_style_index_0_lang-Dl1jP8xY.js → ScrollContainer.vue_vue_type_style_index_0_lang-ioHY1esc.js} +1 -1
- package/dist/Segmented/index.js +1 -1
- package/dist/Segmented/index.umd.cjs +1 -1
- package/dist/{Segmented.vue_vue_type_style_index_0_lang-uZeKLoid.js → Segmented.vue_vue_type_style_index_0_lang-BPt9_TEH.js} +1 -1
- package/dist/{Segmented.vue_vue_type_style_index_0_lang-BKyJdc6h.js → Segmented.vue_vue_type_style_index_0_lang-BSt3GUbV.js} +1 -1
- package/dist/Select/Select.d.ts +2 -2
- package/dist/Select/index.js +1 -1
- package/dist/Select/index.umd.cjs +1 -1
- package/dist/Select.vue_vue_type_style_index_0_lang-D7VjqOBv.js +1 -0
- package/dist/{Select.vue_vue_type_style_index_0_lang-DzWX4QRp.js → Select.vue_vue_type_style_index_0_lang-XLlU2Du1.js} +39 -40
- 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-e8lB0y-L.js → Shortcut.vue_vue_type_style_index_0_lang-CllMPygM.js} +1 -1
- package/dist/{Shortcut.vue_vue_type_style_index_0_lang-2KAzQkhD.js → Shortcut.vue_vue_type_style_index_0_lang-D9NQzaRd.js} +2 -2
- 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-NYJmdFpB.js → Spinner.vue_vue_type_style_index_0_lang-Bflf_h7p.js} +1 -1
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-CKYCbCZQ.js → Spinner.vue_vue_type_style_index_0_lang-D0mZzwBr.js} +1 -1
- package/dist/SubMenu/index.js +1 -1
- package/dist/SubMenu/index.umd.cjs +1 -1
- 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-BIe63Ak0.js → Switch.vue_vue_type_style_index_0_lang-CLIDvWMp.js} +1 -1
- package/dist/{Switch.vue_vue_type_style_index_0_lang-B6Pt3aij.js → Switch.vue_vue_type_style_index_0_lang-DprBpzXg.js} +2 -2
- package/dist/{THead.vue_vue_type_style_index_0_lang-CCUQ2E3U.js → THead.vue_vue_type_style_index_0_lang-Bk62FCuE.js} +1 -1
- package/dist/{THead.vue_vue_type_style_index_0_lang-DuCJdfy4.js → THead.vue_vue_type_style_index_0_lang-CDQ98k-9.js} +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/Table/index.umd.cjs +1 -1
- 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-BqUWj9j2.js → Textarea.vue_vue_type_style_index_0_lang-CY82h4f9.js} +1 -1
- package/dist/{Textarea.vue_vue_type_style_index_0_lang-CgC3wstw.js → Textarea.vue_vue_type_style_index_0_lang-CYHt1v8A.js} +3 -3
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/index.umd.cjs +1 -1
- package/dist/{Tree.vue_vue_type_style_index_0_lang-BiU1prIp.js → Tree.vue_vue_type_style_index_0_lang-BrdekqZ8.js} +1 -1
- package/dist/{Tree.vue_vue_type_style_index_0_lang-wxS0iVAQ.js → Tree.vue_vue_type_style_index_0_lang-i9HBxbnw.js} +5 -5
- package/dist/Upload/index.js +1 -1
- package/dist/Upload/index.umd.cjs +1 -1
- package/dist/{Upload.vue_vue_type_style_index_0_lang-B_fYzNVt.js → Upload.vue_vue_type_style_index_0_lang-Bej4zFFq.js} +6 -6
- package/dist/{Upload.vue_vue_type_style_index_0_lang-BiBzroEH.js → Upload.vue_vue_type_style_index_0_lang-CTtVPcxp.js} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +227 -223
- package/dist/index.umd.cjs +1 -1
- package/dist/style/index.css +1 -1
- package/dist/{useInputDataStates-BNwXgt9l.js → useInputDataStates-D-XvZURF.js} +1 -1
- package/dist/{useInputDataStates-CM2GJM3c.js → useInputDataStates-DvfSqKSa.js} +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +15 -12
- package/dist/utils/index.umd.cjs +1 -1
- package/package.json +6 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-B2n3kzDz.js +0 -1
- package/dist/Chip.vue_vue_type_style_index_0_lang-BjBptRQ-.js +0 -1
- package/dist/Chip.vue_vue_type_style_index_0_lang-DZpyBQK1.js +0 -123
- package/dist/ChipGroup.vue_vue_type_style_index_0_lang-CeTQpuIw.js +0 -77
- package/dist/ChipGroup.vue_vue_type_style_index_0_lang-D3YTcBs3.js +0 -1
- package/dist/Combobox.vue_vue_type_style_index_0_lang-B--dMsNn.js +0 -1
- package/dist/DataTable.vue_vue_type_style_index_0_lang-DNX8ray0.js +0 -1
- package/dist/GraphicalObjectGroup.vue_vue_type_style_index_0_lang-i6Leg2rQ.js +0 -1
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-AhI5J805.js +0 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-BolWR0Oq.js +0 -254
- package/dist/Popover.vue_vue_type_style_index_0_lang-COPtUT1x.js +0 -1
- package/dist/Select.vue_vue_type_style_index_0_lang-i_BSOFzK.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),g=require("./Icon.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";const e=require("vue"),g=require("./Icon.vue_vue_type_style_index_0_lang-CRquOLJG.js");require("@tanstack/vue-virtual");const L=require("class-variance-authority"),R=require("./Divider.vue_vue_type_style_index_0_lang-B1VnMpBg.js"),O=require("./Segmented.vue_vue_type_style_index_0_lang-BSt3GUbV.js"),F=require("./InputNumber.vue_vue_type_script_setup_true_lang-DEgVgZ_0.js"),V=require("./BaseButton.vue_vue_type_style_index_0_lang-DQGK3rUl.js"),$=require("./options-CY2uxp5A.js");require("es-toolkit");const o=require("@pantograph/utils");function j(i){return Array.isArray(i)?i:Array.from(i)}function J(i){return i[0]}function U(i){if(g.isArrayLike(i))return J(j(i))}const S=["between","start","center","end"],G=["onClick"],H=e.defineComponent({...$.getComponentOptions("Pagination"),__name:"Pagination",props:{page:{},total:{default:0},showInput:{type:Boolean},iconButton:{type:Boolean},simple:{type:Boolean},hidePerv:{type:Boolean},hideNext:{type:Boolean},hideSize:{type:Boolean},hideTotal:{type:Boolean},resetPageOnChangeSize:{type:Boolean},sizes:{},pageSize:{},pervText:{default:"Previous"},nextText:{default:"Next"},pageText:{default:"Page"},justify:{default:"between"},class:{},sizeCls:{},paginationCls:{},totalCls:{},itemCls:{},paginationTextCls:{},paginationCurrentCls:{},paginationCountCls:{}},emits:["update:pageSize","update:page"],setup(i,{emit:b}){const l=i,x=b,r=o.getBemBlock("pagination"),m=o.getBemElement(r,"pagination"),I=L.cva(r,{variants:{justify:o.generateVariantClassList(S,r),simple:o.generateVariantClassList("simple",r)}}),P=e.computed(()=>l.sizes??[10,25,50,100]),s=g.useVModel(l,"page",x,{passive:l.page===void 0,defaultValue:1}),f=g.useVModel(l,"pageSize",x,{passive:l.pageSize===void 0,defaultValue:l.pageSize??U(P.value),onChange(){l.resetPageOnChangeSize&&(s.value=1)}}),v=e.computed(()=>Math.min(Math.max(s.value??1,0),u.value)),N=e.computed(()=>l.total??0),h=e.computed(()=>f.value??0),u=e.computed(()=>Math.max(1,Math.ceil(N.value/h.value))),M=e.computed(()=>{const n=l.total??0,t=v.value,a=n&&t?(t-1)*h.value+1:0;return{start:a,end:Math.min(a+h.value-1,n),total:l.total,page:t,pageCount:u.value}}),C="ellipsis",B=(n,t)=>{const a=t-n+1;return Array.from({length:a},(p,c)=>c+n)},y=n=>n.map(t=>typeof t=="number"?{type:"page",value:t}:{type:"ellipsis"}),T=e.computed(()=>{const t=u.value,a=2,p=Math.max(v.value-a,1),c=Math.min(v.value+a,t),k=Math.min(2*a+5,u.value)-2,_=p>3&&Math.abs(t-k-1+1)>2&&Math.abs(p-1)>2,z=c<t-2&&Math.abs(t-k)>2&&Math.abs(t-c)>2;if(!_&&z){const d=B(1,k);return y([...d,C,t])}if(_&&!z){const d=B(t-k+1,t);return y([1,C,...d])}if(_&&z){const d=B(p,c);return y([1,C,...d,C,t])}return y(B(1,t))}),q=()=>{s.value=(s.value??2)-1},D=()=>{s.value=(s.value??0)+1},w=n=>{g.isNumber(n.value)&&(s.value=n.value,e.nextTick(()=>{var t,a;return(a=(t=E.value)==null?void 0:t.focus)==null?void 0:a.call(t)}))},E=e.ref(),A=n=>{const t=n.value===v.value;return{"data-selected":t,ref:a=>{a&&t&&(E.value=a)}}};return(n,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(o.normCls)(e.unref(I)(l),l.class))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(o.normCls)(e.unref(m),l.paginationCls))},[n.hidePerv?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(V._sfc_main,{key:0,size:"sm",type:"ghost",variant:l.iconButton?"icon":"simple",preIcon:"tabler:chevron-left",icon:"tabler:chevron-left",preIconFlipOnDir:"rtl",disabled:!!(e.unref(s)&&e.unref(s)<=1),onClick:q},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.pervText),1)]),_:1},8,["variant","disabled"])),n.simple?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(o.normCls)(e.unref(o.getBemElement)(e.unref(m),"text"),l.paginationTextCls))},e.toDisplayString(n.pageText),3),n.showInput?(e.openBlock(),e.createBlock(F._sfc_main,{key:0,modelValue:e.unref(s),"onUpdate:modelValue":t[0]||(t[0]=a=>e.isRef(s)?s.value=a:null),size:"sm",min:1,controls:!1,max:u.value,class:e.normalizeClass(e.unref(o.normCls)(e.unref(o.getBemElement)(e.unref(m),"current"),l.paginationCurrentCls))},null,8,["modelValue","max","class"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(o.normCls)(e.unref(o.getBemElement)(e.unref(m),"current"),l.paginationCurrentCls))},e.toDisplayString(e.unref(s)),3)),e.createElementVNode("div",{class:e.normalizeClass(e.unref(o.normCls)(e.unref(o.getBemElement)(e.unref(m),"count"),l.paginationCountCls))},[t[2]||(t[2]=e.createElementVNode("div",null,"/",-1)),e.createElementVNode("div",null,e.toDisplayString(u.value),1)],2)],64)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(T.value,(a,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:a.value??a.type},[a.type==="page"?(e.openBlock(),e.createElementBlock("button",e.mergeProps({key:0,onClick:c=>w(a),class:e.unref(o.normCls)(e.unref(o.getBemElement)(e.unref(r),"item"),n.itemCls),ref_for:!0},A(a)),e.toDisplayString(a.value),17,G)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(o.normCls)(e.unref(o.getBemElement)(e.unref(r),"item"),n.itemCls))},[e.createVNode(g._sfc_main$2,{size:"12px",icon:"tabler:dots"})],2))],64))),128)),n.hideNext?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(V._sfc_main,{key:3,size:"sm",type:"ghost",variant:l.iconButton?"icon":"simple",postIcon:"tabler:chevron-right",icon:"tabler:chevron-right",postIconFlipOnDir:"rtl",disabled:!!(e.unref(s)&&e.unref(s)>=u.value),onClick:D},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.nextText),1)]),_:1},8,["variant","disabled"]))],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(o.normCls)(e.unref(o.getBemElement)(e.unref(r),"pageSize"),l.sizeCls))},[n.hideSize?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(O._sfc_main,{key:0,options:P.value,size:"sm",modelValue:e.unref(f),"onUpdate:modelValue":t[1]||(t[1]=a=>e.isRef(f)?f.value=a:null)},null,8,["options","modelValue"])),!n.hideTotal&&!n.hideSize?(e.openBlock(),e.createBlock(R._sfc_main,{key:1,type:"vertical",class:e.normalizeClass(e.unref(o.getBemElement)(e.unref(r),"divider"))},null,8,["class"])):e.createCommentVNode("",!0),n.hideTotal?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(e.unref(o.normCls)(e.unref(o.getBemElement)(e.unref(r),"total"),l.totalCls))},[e.renderSlot(n.$slots,"total",e.normalizeProps(e.guardReactiveProps(M.value)))],2))],2)],2))}});exports.PaginationJustifies=S;exports._sfc_main=H;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as X, computed as g, ref as Y, createElementBlock as c, openBlock as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as X, computed as g, ref as Y, createElementBlock as c, openBlock as o, normalizeClass as r, unref as e, createElementVNode as f, createBlock as x, createCommentVNode as z, withCtx as E, createTextVNode as L, toDisplayString as h, Fragment as _, isRef as O, renderList as Z, mergeProps as ee, createVNode as te, renderSlot as ae, normalizeProps as ne, guardReactiveProps as ie, nextTick as se } from "vue";
|
|
2
|
+
import { t as oe, u as R, e as le, q as re } from "./Icon.vue_vue_type_style_index_0_lang-26YK1SwL.js";
|
|
3
3
|
import "@tanstack/vue-virtual";
|
|
4
4
|
import { cva as ue } from "class-variance-authority";
|
|
5
5
|
import { _ as pe } from "./Divider.vue_vue_type_style_index_0_lang-CfBklijs.js";
|
|
6
|
-
import { _ as de } from "./Segmented.vue_vue_type_style_index_0_lang-
|
|
7
|
-
import { _ as ce } from "./InputNumber.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { _ as D } from "./BaseButton.vue_vue_type_style_index_0_lang-
|
|
6
|
+
import { _ as de } from "./Segmented.vue_vue_type_style_index_0_lang-BPt9_TEH.js";
|
|
7
|
+
import { _ as ce } from "./InputNumber.vue_vue_type_script_setup_true_lang-y1SYHqAR.js";
|
|
8
|
+
import { _ as D } from "./BaseButton.vue_vue_type_style_index_0_lang-Bwa2jAT_.js";
|
|
9
9
|
import { g as me } from "./options-Bh1s18jm.js";
|
|
10
10
|
import "es-toolkit";
|
|
11
11
|
import { getBemBlock as ge, getBemElement as u, generateVariantClassList as F, normCls as p } from "@pantograph/utils";
|
|
@@ -16,7 +16,7 @@ function fe(l) {
|
|
|
16
16
|
return l[0];
|
|
17
17
|
}
|
|
18
18
|
function he(l) {
|
|
19
|
-
if (
|
|
19
|
+
if (oe(l))
|
|
20
20
|
return fe(ve(l));
|
|
21
21
|
}
|
|
22
22
|
const Ce = ["between", "start", "center", "end"], ye = ["onClick"], _e = /* @__PURE__ */ X({
|
|
@@ -55,7 +55,7 @@ const Ce = ["between", "start", "center", "end"], ye = ["onClick"], _e = /* @__P
|
|
|
55
55
|
justify: F(Ce, d),
|
|
56
56
|
simple: F("simple", d)
|
|
57
57
|
}
|
|
58
|
-
}), w = g(() => i.sizes ?? [10, 25, 50, 100]),
|
|
58
|
+
}), w = g(() => i.sizes ?? [10, 25, 50, 100]), s = R(i, "page", $, {
|
|
59
59
|
passive: i.page === void 0,
|
|
60
60
|
defaultValue: 1
|
|
61
61
|
}), b = R(
|
|
@@ -66,10 +66,10 @@ const Ce = ["between", "start", "center", "end"], ye = ["onClick"], _e = /* @__P
|
|
|
66
66
|
passive: i.pageSize === void 0,
|
|
67
67
|
defaultValue: i.pageSize ?? he(w.value),
|
|
68
68
|
onChange() {
|
|
69
|
-
i.resetPageOnChangeSize && (
|
|
69
|
+
i.resetPageOnChangeSize && (s.value = 1);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
), k = g(() => Math.min(Math.max(
|
|
72
|
+
), k = g(() => Math.min(Math.max(s.value ?? 1, 0), m.value)), q = g(() => i.total ?? 0), V = g(() => b.value ?? 0), m = g(() => Math.max(1, Math.ceil(q.value / V.value))), J = g(() => {
|
|
73
73
|
const a = i.total ?? 0, t = k.value, n = a && t ? (t - 1) * V.value + 1 : 0;
|
|
74
74
|
return {
|
|
75
75
|
start: n,
|
|
@@ -107,11 +107,11 @@ const Ce = ["between", "start", "center", "end"], ye = ["onClick"], _e = /* @__P
|
|
|
107
107
|
}
|
|
108
108
|
return S(I(1, t));
|
|
109
109
|
}), H = () => {
|
|
110
|
-
|
|
110
|
+
s.value = (s.value ?? 2) - 1;
|
|
111
111
|
}, K = () => {
|
|
112
|
-
|
|
112
|
+
s.value = (s.value ?? 0) + 1;
|
|
113
113
|
}, Q = (a) => {
|
|
114
|
-
re(a.value) && (
|
|
114
|
+
re(a.value) && (s.value = a.value, se(() => {
|
|
115
115
|
var t, n;
|
|
116
116
|
return (n = (t = A.value) == null ? void 0 : t.focus) == null ? void 0 : n.call(t);
|
|
117
117
|
}));
|
|
@@ -124,13 +124,13 @@ const Ce = ["between", "start", "center", "end"], ye = ["onClick"], _e = /* @__P
|
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
126
|
};
|
|
127
|
-
return (a, t) => (
|
|
127
|
+
return (a, t) => (o(), c("div", {
|
|
128
128
|
class: r(e(p)(e(U)(i), i.class))
|
|
129
129
|
}, [
|
|
130
130
|
f("div", {
|
|
131
131
|
class: r(e(p)(e(C), i.paginationCls))
|
|
132
132
|
}, [
|
|
133
|
-
a.hidePerv ? z("", !0) : (
|
|
133
|
+
a.hidePerv ? z("", !0) : (o(), x(D, {
|
|
134
134
|
key: 0,
|
|
135
135
|
size: "sm",
|
|
136
136
|
type: "ghost",
|
|
@@ -138,7 +138,7 @@ const Ce = ["between", "start", "center", "end"], ye = ["onClick"], _e = /* @__P
|
|
|
138
138
|
preIcon: "tabler:chevron-left",
|
|
139
139
|
icon: "tabler:chevron-left",
|
|
140
140
|
preIconFlipOnDir: "rtl",
|
|
141
|
-
disabled: !!(e(
|
|
141
|
+
disabled: !!(e(s) && e(s) <= 1),
|
|
142
142
|
onClick: H
|
|
143
143
|
}, {
|
|
144
144
|
default: E(() => [
|
|
@@ -146,38 +146,38 @@ const Ce = ["between", "start", "center", "end"], ye = ["onClick"], _e = /* @__P
|
|
|
146
146
|
]),
|
|
147
147
|
_: 1
|
|
148
148
|
}, 8, ["variant", "disabled"])),
|
|
149
|
-
a.simple ? (
|
|
149
|
+
a.simple ? (o(), c(_, { key: 1 }, [
|
|
150
150
|
f("div", {
|
|
151
151
|
class: r(e(p)(e(u)(e(C), "text"), i.paginationTextCls))
|
|
152
152
|
}, h(a.pageText), 3),
|
|
153
|
-
a.showInput ? (
|
|
153
|
+
a.showInput ? (o(), x(ce, {
|
|
154
154
|
key: 0,
|
|
155
|
-
modelValue: e(
|
|
156
|
-
"onUpdate:modelValue": t[0] || (t[0] = (n) => O(
|
|
155
|
+
modelValue: e(s),
|
|
156
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => O(s) ? s.value = n : null),
|
|
157
157
|
size: "sm",
|
|
158
158
|
min: 1,
|
|
159
159
|
controls: !1,
|
|
160
160
|
max: m.value,
|
|
161
161
|
class: r(e(p)(e(u)(e(C), "current"), i.paginationCurrentCls))
|
|
162
|
-
}, null, 8, ["modelValue", "max", "class"])) : (
|
|
162
|
+
}, null, 8, ["modelValue", "max", "class"])) : (o(), c("div", {
|
|
163
163
|
key: 1,
|
|
164
164
|
class: r(e(p)(e(u)(e(C), "current"), i.paginationCurrentCls))
|
|
165
|
-
}, h(e(
|
|
165
|
+
}, h(e(s)), 3)),
|
|
166
166
|
f("div", {
|
|
167
167
|
class: r(e(p)(e(u)(e(C), "count"), i.paginationCountCls))
|
|
168
168
|
}, [
|
|
169
169
|
t[2] || (t[2] = f("div", null, "/", -1)),
|
|
170
170
|
f("div", null, h(m.value), 1)
|
|
171
171
|
], 2)
|
|
172
|
-
], 64)) : (
|
|
172
|
+
], 64)) : (o(!0), c(_, { key: 2 }, Z(G.value, (n, y) => (o(), c(_, {
|
|
173
173
|
key: n.value ?? n.type
|
|
174
174
|
}, [
|
|
175
|
-
n.type === "page" ? (
|
|
175
|
+
n.type === "page" ? (o(), c("button", ee({
|
|
176
176
|
key: 0,
|
|
177
177
|
onClick: (v) => Q(n),
|
|
178
178
|
class: e(p)(e(u)(e(d), "item"), a.itemCls),
|
|
179
179
|
ref_for: !0
|
|
180
|
-
}, W(n)), h(n.value), 17, ye)) : (
|
|
180
|
+
}, W(n)), h(n.value), 17, ye)) : (o(), c("div", {
|
|
181
181
|
key: 1,
|
|
182
182
|
class: r(e(p)(e(u)(e(d), "item"), a.itemCls))
|
|
183
183
|
}, [
|
|
@@ -187,7 +187,7 @@ const Ce = ["between", "start", "center", "end"], ye = ["onClick"], _e = /* @__P
|
|
|
187
187
|
})
|
|
188
188
|
], 2))
|
|
189
189
|
], 64))), 128)),
|
|
190
|
-
a.hideNext ? z("", !0) : (
|
|
190
|
+
a.hideNext ? z("", !0) : (o(), x(D, {
|
|
191
191
|
key: 3,
|
|
192
192
|
size: "sm",
|
|
193
193
|
type: "ghost",
|
|
@@ -195,7 +195,7 @@ const Ce = ["between", "start", "center", "end"], ye = ["onClick"], _e = /* @__P
|
|
|
195
195
|
postIcon: "tabler:chevron-right",
|
|
196
196
|
icon: "tabler:chevron-right",
|
|
197
197
|
postIconFlipOnDir: "rtl",
|
|
198
|
-
disabled: !!(e(
|
|
198
|
+
disabled: !!(e(s) && e(s) >= m.value),
|
|
199
199
|
onClick: K
|
|
200
200
|
}, {
|
|
201
201
|
default: E(() => [
|
|
@@ -207,23 +207,23 @@ const Ce = ["between", "start", "center", "end"], ye = ["onClick"], _e = /* @__P
|
|
|
207
207
|
f("div", {
|
|
208
208
|
class: r(e(p)(e(u)(e(d), "pageSize"), i.sizeCls))
|
|
209
209
|
}, [
|
|
210
|
-
a.hideSize ? z("", !0) : (
|
|
210
|
+
a.hideSize ? z("", !0) : (o(), x(de, {
|
|
211
211
|
key: 0,
|
|
212
212
|
options: w.value,
|
|
213
213
|
size: "sm",
|
|
214
214
|
modelValue: e(b),
|
|
215
215
|
"onUpdate:modelValue": t[1] || (t[1] = (n) => O(b) ? b.value = n : null)
|
|
216
216
|
}, null, 8, ["options", "modelValue"])),
|
|
217
|
-
!a.hideTotal && !a.hideSize ? (
|
|
217
|
+
!a.hideTotal && !a.hideSize ? (o(), x(pe, {
|
|
218
218
|
key: 1,
|
|
219
219
|
type: "vertical",
|
|
220
220
|
class: r(e(u)(e(d), "divider"))
|
|
221
221
|
}, null, 8, ["class"])) : z("", !0),
|
|
222
|
-
a.hideTotal ? z("", !0) : (
|
|
222
|
+
a.hideTotal ? z("", !0) : (o(), c("div", {
|
|
223
223
|
key: 2,
|
|
224
224
|
class: r(e(p)(e(u)(e(d), "total"), i.totalCls))
|
|
225
225
|
}, [
|
|
226
|
-
ae(a.$slots, "total", ne(ie(
|
|
226
|
+
ae(a.$slots, "total", ne(ie(J.value)))
|
|
227
227
|
], 2))
|
|
228
228
|
], 2)
|
|
229
229
|
], 2));
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { PopoverContentProps,
|
|
1
|
+
import { PopoverContentProps, PopoverRootProps, PopoverPortalProps } from 'reka-ui';
|
|
2
2
|
import { PopoverPlacement, PopoverSize } from './Popover.model';
|
|
3
3
|
import { Direction } from '../ConfigProvider';
|
|
4
4
|
import { ClassValue } from 'class-variance-authority/types';
|
|
5
5
|
export type GetPopupContainer = (triggerNode?: HTMLElement) => HTMLElement;
|
|
6
|
-
export interface PopoverProps extends Omit<
|
|
6
|
+
export interface PopoverProps extends Omit<PopoverRootProps, 'onCloseAutoFocus'>, Omit<PopoverPortalProps, 'to' | 'onCloseAutoFocus'>, Omit<PopoverContentProps, 'as' | 'asChild' | 'side' | 'align' | 'onCloseAutoFocus'> {
|
|
7
7
|
dir?: Direction;
|
|
8
8
|
class?: ClassValue;
|
|
9
9
|
containerCls?: ClassValue;
|
|
10
10
|
containerClass?: ClassValue;
|
|
11
11
|
containerProps?: object;
|
|
12
|
-
trigger?: 'hover' | 'click';
|
|
13
12
|
size?: PopoverSize;
|
|
14
13
|
to?: string | HTMLElement | GetPopupContainer;
|
|
15
14
|
placement?: PopoverPlacement;
|
|
@@ -76,56 +75,6 @@ declare function __VLS_template(): {
|
|
|
76
75
|
$slots: {
|
|
77
76
|
default?(_: {}): any;
|
|
78
77
|
};
|
|
79
|
-
}) | ({
|
|
80
|
-
$: import('vue').ComponentInternalInstance;
|
|
81
|
-
$data: {};
|
|
82
|
-
$props: {
|
|
83
|
-
readonly reference?: import('reka-ui').ReferenceElement | undefined;
|
|
84
|
-
readonly asChild?: boolean | undefined;
|
|
85
|
-
readonly as?: (import('reka-ui').AsTag | import('vue').Component) | undefined;
|
|
86
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
87
|
-
$attrs: {
|
|
88
|
-
[x: string]: unknown;
|
|
89
|
-
};
|
|
90
|
-
$refs: {
|
|
91
|
-
[x: string]: unknown;
|
|
92
|
-
};
|
|
93
|
-
$slots: Readonly<{
|
|
94
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
95
|
-
}>;
|
|
96
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
97
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
98
|
-
$host: Element | null;
|
|
99
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
100
|
-
$el: any;
|
|
101
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('reka-ui').HoverCardTriggerProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
102
|
-
as: import('reka-ui').AsTag | import('vue').Component;
|
|
103
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
104
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
105
|
-
created?: (() => void) | (() => void)[];
|
|
106
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
107
|
-
mounted?: (() => void) | (() => void)[];
|
|
108
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
109
|
-
updated?: (() => void) | (() => void)[];
|
|
110
|
-
activated?: (() => void) | (() => void)[];
|
|
111
|
-
deactivated?: (() => void) | (() => void)[];
|
|
112
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
113
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
114
|
-
destroyed?: (() => void) | (() => void)[];
|
|
115
|
-
unmounted?: (() => void) | (() => void)[];
|
|
116
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
117
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
118
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
119
|
-
};
|
|
120
|
-
$forceUpdate: () => void;
|
|
121
|
-
$nextTick: typeof import('vue').nextTick;
|
|
122
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
123
|
-
} & Readonly<{
|
|
124
|
-
as: import('reka-ui').AsTag | import('vue').Component;
|
|
125
|
-
}> & Omit<Readonly<import('reka-ui').HoverCardTriggerProps> & Readonly<{}>, "as"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
126
|
-
$slots: {
|
|
127
|
-
default?(_: {}): any;
|
|
128
|
-
};
|
|
129
78
|
}) | null;
|
|
130
79
|
};
|
|
131
80
|
rootEl: any;
|
|
@@ -134,24 +83,23 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
134
83
|
declare const __VLS_component: import('vue').DefineComponent<PopoverProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
135
84
|
closeAutoFocus: (event: Event) => any;
|
|
136
85
|
openAutoFocus: (event: Event) => any;
|
|
137
|
-
"update:open": (value: boolean) => any;
|
|
138
86
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
139
87
|
pointerDownOutside: (event: import('reka-ui').PointerDownOutsideEvent) => any;
|
|
140
88
|
focusOutside: (event: import('reka-ui').FocusOutsideEvent) => any;
|
|
141
89
|
interactOutside: (event: import('reka-ui').PointerDownOutsideEvent | import('reka-ui').FocusOutsideEvent) => any;
|
|
90
|
+
"update:open": (value: boolean) => any;
|
|
142
91
|
}, string, import('vue').PublicProps, Readonly<PopoverProps> & Readonly<{
|
|
143
92
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
144
93
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
145
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
146
94
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
147
95
|
onPointerDownOutside?: ((event: import('reka-ui').PointerDownOutsideEvent) => any) | undefined;
|
|
148
96
|
onFocusOutside?: ((event: import('reka-ui').FocusOutsideEvent) => any) | undefined;
|
|
149
97
|
onInteractOutside?: ((event: import('reka-ui').PointerDownOutsideEvent | import('reka-ui').FocusOutsideEvent) => any) | undefined;
|
|
98
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
150
99
|
}>, {
|
|
151
100
|
size: PopoverSize;
|
|
152
101
|
placement: PopoverPlacement;
|
|
153
102
|
sticky: "partial" | "always";
|
|
154
|
-
trigger: "hover" | "click";
|
|
155
103
|
prioritizePosition: boolean;
|
|
156
104
|
avoidCollisions: boolean;
|
|
157
105
|
updatePositionStrategy: "optimized" | "always";
|
|
@@ -206,56 +154,6 @@ declare const __VLS_component: import('vue').DefineComponent<PopoverProps, {}, {
|
|
|
206
154
|
$slots: {
|
|
207
155
|
default?(_: {}): any;
|
|
208
156
|
};
|
|
209
|
-
}) | ({
|
|
210
|
-
$: import('vue').ComponentInternalInstance;
|
|
211
|
-
$data: {};
|
|
212
|
-
$props: {
|
|
213
|
-
readonly reference?: import('reka-ui').ReferenceElement | undefined;
|
|
214
|
-
readonly asChild?: boolean | undefined;
|
|
215
|
-
readonly as?: (import('reka-ui').AsTag | import('vue').Component) | undefined;
|
|
216
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
217
|
-
$attrs: {
|
|
218
|
-
[x: string]: unknown;
|
|
219
|
-
};
|
|
220
|
-
$refs: {
|
|
221
|
-
[x: string]: unknown;
|
|
222
|
-
};
|
|
223
|
-
$slots: Readonly<{
|
|
224
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
225
|
-
}>;
|
|
226
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
227
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
228
|
-
$host: Element | null;
|
|
229
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
230
|
-
$el: any;
|
|
231
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('reka-ui').HoverCardTriggerProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
232
|
-
as: import('reka-ui').AsTag | import('vue').Component;
|
|
233
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
234
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
235
|
-
created?: (() => void) | (() => void)[];
|
|
236
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
237
|
-
mounted?: (() => void) | (() => void)[];
|
|
238
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
239
|
-
updated?: (() => void) | (() => void)[];
|
|
240
|
-
activated?: (() => void) | (() => void)[];
|
|
241
|
-
deactivated?: (() => void) | (() => void)[];
|
|
242
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
243
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
244
|
-
destroyed?: (() => void) | (() => void)[];
|
|
245
|
-
unmounted?: (() => void) | (() => void)[];
|
|
246
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
247
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
248
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
249
|
-
};
|
|
250
|
-
$forceUpdate: () => void;
|
|
251
|
-
$nextTick: typeof import('vue').nextTick;
|
|
252
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
253
|
-
} & Readonly<{
|
|
254
|
-
as: import('reka-ui').AsTag | import('vue').Component;
|
|
255
|
-
}> & Omit<Readonly<import('reka-ui').HoverCardTriggerProps> & Readonly<{}>, "as"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
256
|
-
$slots: {
|
|
257
|
-
default?(_: {}): any;
|
|
258
|
-
};
|
|
259
157
|
}) | null;
|
|
260
158
|
}, any>;
|
|
261
159
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
package/dist/Popover/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Popover.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Popover.vue_vue_type_style_index_0_lang-22ewjJ6F.js");exports.Popover=e._sfc_main;exports.PopoverPlacements=e.PopoverPlacements;exports.PopoverSizes=e.PopoverSizes;exports.default=e._sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),N=require("@pantograph/utils"),ie=require("class-variance-authority"),E=require("reka-ui"),re=require("./options-CY2uxp5A.js"),ae=require("./ConfigProvider.vue_vue_type_script_setup_true_lang-BAXkTMEt.js"),_=require("es-toolkit"),o=require("./Icon.vue_vue_type_style_index_0_lang-CRquOLJG.js"),U=["sm","md","lg"],le=["top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"],ce=["to","disabled","forceMount"],n=Object.fromEntries(ce.map(r=>[r,r])),q=({triggerRef:r,props:P},m=n)=>e.computed(()=>{var d,O,C,b,S;const{to:v=n.to,forceMount:a=n.forceMount,disabled:y=n.disabled}=m,p=e.getCurrentInstance(),s=P??(p==null?void 0:p.props)??{},t=o.get(s,v),f=o.get(s,y),g=o.get(s,a);let h=((d=e.unref(t))==null?void 0:d.$el)??e.unref(t);if(t instanceof Function){const B=((C=(O=r.value)==null?void 0:O.$el)==null?void 0:C.nodeName)!=="#text"?(b=r.value)==null?void 0:b.$el:(S=r.value)==null?void 0:S.$el.nextSibling;h=t(B)}return{to:h,disabled:f,forceMount:g}}),ue=["prioritizePosition","placement","sideOffset","alignOffset","sticky","collisionBoundary","avoidCollisions","collisionPadding","forceMount","disableUpdateOnLayoutShift","hideWhenDetached","positionStrategy","reference","updatePositionStrategy","autoFocusInside","containerProps","disableOutsidePointerEvents"],de=Object.fromEntries(ue.map(r=>[r,r])),L=({props:r,flip:P,_dir:m,controlAutoFocus:v,extraPropNames:a,emitsAsProps:y},p=de)=>e.computed(()=>{var M;const s=e.getCurrentInstance(),t=r??(s==null?void 0:s.props)??{},{prioritizePosition:f=n.prioritizePosition,placement:g=n.placement,sideOffset:h=n.sideOffset,alignOffset:d=n.alignOffset,sticky:O=n.sticky,collisionBoundary:C=n.collisionBoundary,avoidCollisions:b=n.avoidCollisions,collisionPadding:S=n.collisionPadding,forceMount:B=n.forceMount,disableUpdateOnLayoutShift:A=n.disableUpdateOnLayoutShift,disableOutsidePointerEvents:z=n.disableOutsidePointerEvents,hideWhenDetached:i=n.hideWhenDetached,positionStrategy:l=n.positionStrategy,reference:c=n.reference,updatePositionStrategy:$=n.updatePositionStrategy,autoFocusInside:x=n.autoFocusInside,containerProps:V=n.containerProps}=p,W=o.get(t,f),D=o.get(t,g),R=o.get(t,h),K=o.get(t,d),j=o.get(t,O),T=o.get(t,C),G=o.get(t,b),H=o.get(t,S),J=o.get(t,B),Q=o.get(t,A),X=o.get(t,z),Y=o.get(t,i),Z=o.get(t,l),ee=o.get(t,c),te=o.get(t,$),I=o.get(t,x),oe=o.get(t,V);let[w="bottom",ne="center"]=((M=D==null?void 0:D.split)==null?void 0:M.call(D,"-"))||["bottom","center"];P.value&&m.value&&m.value===P.value&&(w={right:"left",left:"right"}[w]??w);const k={};v&&(k.onCloseAutoFocus=u=>{var F;I||u.preventDefault(),(F=s==null?void 0:s.emit)==null||F.call(s,"closeAutoFocus",u)},k.onOpenAutoFocus=u=>{var F;I||u.preventDefault(),(F=s==null?void 0:s.emit)==null||F.call(s,"openAutoFocus",u)});const se=_.omitBy(Object.fromEntries((Array.isArray(a)?a:[]).map(u=>[u,o.get(t,u)])),_.isUndefined);return{..._.pick(y,["onEscapeKeyDown","onFocusOutside","onInteractOutside","onPointerDownOutside"]),..._.omit(oe??{},["class"]),...se,sticky:j,prioritizePosition:W,side:w,align:ne,sideOffset:R,alignOffset:K,collisionBoundary:T,avoidCollisions:G,collisionPadding:H,forceMount:J,disableUpdateOnLayoutShift:Q,disableOutsidePointerEvents:X,hideWhenDetached:Y,positionStrategy:Z,reference:ee,updatePositionStrategy:te,...k}}),pe=e.defineComponent({...re.getComponentOptions("Popover",!1),__name:"Popover",props:{dir:{},class:{},containerCls:{},containerClass:{},containerProps:{},size:{default:"md"},to:{},placement:{default:"bottom"},reversePlacementOnDir:{},autoFocusInside:{type:Boolean},zIndex:{},useReferenceAttribute:{type:Boolean},defaultOpen:{type:Boolean},open:{type:Boolean,default:void 0},modal:{type:Boolean},disabled:{type:Boolean},defer:{type:Boolean},forceMount:{type:Boolean},sideOffset:{},alignOffset:{},avoidCollisions:{type:Boolean,default:!0},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{default:"always"},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{default:"optimized"},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean,default:!0},reference:{},disableOutsidePointerEvents:{type:Boolean}},emits:["update:open","escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(r,{emit:P}){const m=P,v=E.useEmitAsProps(m),a=r,y=N.getBemBlock("popover"),p=N.getBemElement(y,"trigger"),s=N.getBemElement(y,"content"),t=ie.cva(s,{variants:{size:N.generateVariantClassList(U,s)}}),f=e.useSlots(),g=e.shallowRef(!0);e.onMounted(()=>{var c;const i=o.filterEmpty((c=f.default)==null?void 0:c.call(f,{}))??null,l=i.length===1?i[0]:i;g.value=l&&o.isValidElement(l)&&!o.isFragment(l)});const h=e.computed(()=>({..._.pick(a,["open","defaultOpen"]),..._.pick(v,["onUpdate:open"])})),d=e.ref(),O=q({triggerRef:d}),{getFlipOnDir:C,getDir:b}=ae.useConfig(),S=C("reversePlacementOnDir"),B=b(),A=L({emitsAsProps:v,flip:S,_dir:B,controlAutoFocus:!0}),z=e.ref(a.reference);return a.useReferenceAttribute&&!a.reference?e.onMounted(()=>{var i,l,c;z.value=(c=(l=(i=d.value)==null?void 0:i.$el)==null?void 0:l.closest)==null?void 0:c.call(l,"[data-popover-reference]")}):e.watch(()=>a.reference,i=>{z.value=i}),(i,l)=>(e.openBlock(),e.createBlock(e.unref(E.PopoverRoot),e.mergeProps(h.value,{key:g.value}),{default:e.withCtx(({open:c})=>[e.createVNode(e.unref(E.PopoverTrigger),e.mergeProps({as:"span",class:e.unref(N.normCls)(e.unref(p),a.class)},i.$attrs,{dir:e.unref(B),asChild:g.value,ref_key:"triggerRef",ref:d}),{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:3},16,["class","dir","asChild"]),e.createVNode(e.unref(E.PopoverPortal),e.normalizeProps(e.guardReactiveProps(e.unref(O))),{default:e.withCtx(()=>[e.withDirectives(e.createVNode(e.unref(E.PopoverContent),e.mergeProps({style:{zIndex:i.zIndex}},e.unref(A),{class:e.unref(N.normCls)(e.unref(t)({size:i.size}),i.containerClass,i.containerCls),reference:z.value}),{default:e.withCtx(()=>[e.renderSlot(i.$slots,"content")]),_:2},1040,["style","class","reference"]),[[e.vShow,c]])]),_:2},1040)]),_:3},16))}});exports.PopoverPlacements=le;exports.PopoverSizes=U;exports._sfc_main=pe;exports.getPopoverContentProps=L;exports.getPopoverPortalProps=q;
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { computed as L, getCurrentInstance as K, unref as r, defineComponent as de, useSlots as pe, shallowRef as ue, onMounted as _, ref as W, watch as fe, createBlock as me, openBlock as Pe, mergeProps as w, withCtx as E, createVNode as I, renderSlot as R, normalizeProps as ge, guardReactiveProps as ve, withDirectives as ye, vShow as he } from "vue";
|
|
2
|
+
import { getBemBlock as Oe, getBemElement as j, generateVariantClassList as be, normCls as x } from "@pantograph/utils";
|
|
3
|
+
import { cva as Ce } from "class-variance-authority";
|
|
4
|
+
import { useEmitAsProps as Be, PopoverRoot as Se, PopoverTrigger as Ne, PopoverPortal as De, PopoverContent as Fe } from "reka-ui";
|
|
5
|
+
import { g as ze } from "./options-Bh1s18jm.js";
|
|
6
|
+
import { u as Ee } from "./ConfigProvider.vue_vue_type_script_setup_true_lang-D8R0hBKt.js";
|
|
7
|
+
import { omitBy as Ae, isUndefined as Me, omit as we, pick as k } from "es-toolkit";
|
|
8
|
+
import { r as o, h as Ie, j as ke, g as Le } from "./Icon.vue_vue_type_style_index_0_lang-26YK1SwL.js";
|
|
9
|
+
const Ue = ["sm", "md", "lg"], Qe = [
|
|
10
|
+
"top",
|
|
11
|
+
"top-start",
|
|
12
|
+
"top-end",
|
|
13
|
+
"bottom",
|
|
14
|
+
"bottom-start",
|
|
15
|
+
"bottom-end",
|
|
16
|
+
"right",
|
|
17
|
+
"right-start",
|
|
18
|
+
"right-end",
|
|
19
|
+
"left",
|
|
20
|
+
"left-start",
|
|
21
|
+
"left-end"
|
|
22
|
+
], $e = ["to", "disabled", "forceMount"], t = Object.fromEntries($e.map((i) => [i, i])), _e = ({ triggerRef: i, props: P }, S = t) => L(() => {
|
|
23
|
+
var p, h, O, b, C;
|
|
24
|
+
const {
|
|
25
|
+
to: g = t.to,
|
|
26
|
+
forceMount: a = t.forceMount,
|
|
27
|
+
disabled: v = t.disabled
|
|
28
|
+
} = S, u = K(), s = P ?? (u == null ? void 0 : u.props) ?? {}, e = o(s, g), f = o(s, v), m = o(s, a);
|
|
29
|
+
let y = ((p = r(e)) == null ? void 0 : p.$el) ?? r(e);
|
|
30
|
+
if (e instanceof Function) {
|
|
31
|
+
const B = ((O = (h = i.value) == null ? void 0 : h.$el) == null ? void 0 : O.nodeName) !== "#text" ? (b = i.value) == null ? void 0 : b.$el : (C = i.value) == null ? void 0 : C.$el.nextSibling;
|
|
32
|
+
y = e(B);
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
to: y,
|
|
36
|
+
disabled: f,
|
|
37
|
+
forceMount: m
|
|
38
|
+
};
|
|
39
|
+
}), We = [
|
|
40
|
+
"prioritizePosition",
|
|
41
|
+
"placement",
|
|
42
|
+
"sideOffset",
|
|
43
|
+
"alignOffset",
|
|
44
|
+
"sticky",
|
|
45
|
+
"collisionBoundary",
|
|
46
|
+
"avoidCollisions",
|
|
47
|
+
"collisionPadding",
|
|
48
|
+
"forceMount",
|
|
49
|
+
"disableUpdateOnLayoutShift",
|
|
50
|
+
"hideWhenDetached",
|
|
51
|
+
"positionStrategy",
|
|
52
|
+
"reference",
|
|
53
|
+
"updatePositionStrategy",
|
|
54
|
+
"autoFocusInside",
|
|
55
|
+
"containerProps",
|
|
56
|
+
"disableOutsidePointerEvents"
|
|
57
|
+
], Re = Object.fromEntries(We.map((i) => [i, i])), je = ({
|
|
58
|
+
props: i,
|
|
59
|
+
flip: P,
|
|
60
|
+
_dir: S,
|
|
61
|
+
controlAutoFocus: g,
|
|
62
|
+
extraPropNames: a,
|
|
63
|
+
emitsAsProps: v
|
|
64
|
+
}, u = Re) => L(() => {
|
|
65
|
+
var $;
|
|
66
|
+
const s = K(), e = i ?? (s == null ? void 0 : s.props) ?? {}, {
|
|
67
|
+
prioritizePosition: f = t.prioritizePosition,
|
|
68
|
+
placement: m = t.placement,
|
|
69
|
+
sideOffset: y = t.sideOffset,
|
|
70
|
+
alignOffset: p = t.alignOffset,
|
|
71
|
+
sticky: h = t.sticky,
|
|
72
|
+
collisionBoundary: O = t.collisionBoundary,
|
|
73
|
+
avoidCollisions: b = t.avoidCollisions,
|
|
74
|
+
collisionPadding: C = t.collisionPadding,
|
|
75
|
+
forceMount: B = t.forceMount,
|
|
76
|
+
disableUpdateOnLayoutShift: A = t.disableUpdateOnLayoutShift,
|
|
77
|
+
disableOutsidePointerEvents: N = t.disableOutsidePointerEvents,
|
|
78
|
+
hideWhenDetached: n = t.hideWhenDetached,
|
|
79
|
+
positionStrategy: l = t.positionStrategy,
|
|
80
|
+
reference: c = t.reference,
|
|
81
|
+
updatePositionStrategy: V = t.updatePositionStrategy,
|
|
82
|
+
autoFocusInside: T = t.autoFocusInside,
|
|
83
|
+
containerProps: q = t.containerProps
|
|
84
|
+
} = u, G = o(e, f), D = o(e, m), H = o(e, y), J = o(e, p), Q = o(e, h), X = o(e, O), Y = o(e, b), Z = o(e, C), ee = o(e, B), oe = o(e, A), te = o(e, N), se = o(e, n), ne = o(e, l), ie = o(e, c), re = o(e, V), U = o(e, T), ae = o(e, q);
|
|
85
|
+
let [
|
|
86
|
+
z = "bottom",
|
|
87
|
+
le = "center"
|
|
88
|
+
] = (($ = D == null ? void 0 : D.split) == null ? void 0 : $.call(D, "-")) || ["bottom", "center"];
|
|
89
|
+
P.value && S.value && S.value === P.value && (z = {
|
|
90
|
+
right: "left",
|
|
91
|
+
left: "right"
|
|
92
|
+
}[z] ?? z);
|
|
93
|
+
const M = {};
|
|
94
|
+
g && (M.onCloseAutoFocus = (d) => {
|
|
95
|
+
var F;
|
|
96
|
+
U || d.preventDefault(), (F = s == null ? void 0 : s.emit) == null || F.call(s, "closeAutoFocus", d);
|
|
97
|
+
}, M.onOpenAutoFocus = (d) => {
|
|
98
|
+
var F;
|
|
99
|
+
U || d.preventDefault(), (F = s == null ? void 0 : s.emit) == null || F.call(s, "openAutoFocus", d);
|
|
100
|
+
});
|
|
101
|
+
const ce = Ae(
|
|
102
|
+
Object.fromEntries(
|
|
103
|
+
(Array.isArray(a) ? a : []).map((d) => [d, o(e, d)])
|
|
104
|
+
),
|
|
105
|
+
Me
|
|
106
|
+
);
|
|
107
|
+
return {
|
|
108
|
+
...k(v, [
|
|
109
|
+
"onEscapeKeyDown",
|
|
110
|
+
"onFocusOutside",
|
|
111
|
+
"onInteractOutside",
|
|
112
|
+
"onPointerDownOutside"
|
|
113
|
+
]),
|
|
114
|
+
...we(ae ?? {}, ["class"]),
|
|
115
|
+
...ce,
|
|
116
|
+
sticky: Q,
|
|
117
|
+
prioritizePosition: G,
|
|
118
|
+
side: z,
|
|
119
|
+
align: le,
|
|
120
|
+
sideOffset: H,
|
|
121
|
+
alignOffset: J,
|
|
122
|
+
collisionBoundary: X,
|
|
123
|
+
avoidCollisions: Y,
|
|
124
|
+
collisionPadding: Z,
|
|
125
|
+
forceMount: ee,
|
|
126
|
+
disableUpdateOnLayoutShift: oe,
|
|
127
|
+
disableOutsidePointerEvents: te,
|
|
128
|
+
hideWhenDetached: se,
|
|
129
|
+
positionStrategy: ne,
|
|
130
|
+
reference: ie,
|
|
131
|
+
updatePositionStrategy: re,
|
|
132
|
+
...M
|
|
133
|
+
};
|
|
134
|
+
}), Xe = /* @__PURE__ */ de({
|
|
135
|
+
...ze("Popover", !1),
|
|
136
|
+
__name: "Popover",
|
|
137
|
+
props: {
|
|
138
|
+
dir: {},
|
|
139
|
+
class: {},
|
|
140
|
+
containerCls: {},
|
|
141
|
+
containerClass: {},
|
|
142
|
+
containerProps: {},
|
|
143
|
+
size: { default: "md" },
|
|
144
|
+
to: {},
|
|
145
|
+
placement: { default: "bottom" },
|
|
146
|
+
reversePlacementOnDir: {},
|
|
147
|
+
autoFocusInside: { type: Boolean },
|
|
148
|
+
zIndex: {},
|
|
149
|
+
useReferenceAttribute: { type: Boolean },
|
|
150
|
+
defaultOpen: { type: Boolean },
|
|
151
|
+
open: { type: Boolean, default: void 0 },
|
|
152
|
+
modal: { type: Boolean },
|
|
153
|
+
disabled: { type: Boolean },
|
|
154
|
+
defer: { type: Boolean },
|
|
155
|
+
forceMount: { type: Boolean },
|
|
156
|
+
sideOffset: {},
|
|
157
|
+
alignOffset: {},
|
|
158
|
+
avoidCollisions: { type: Boolean, default: !0 },
|
|
159
|
+
collisionBoundary: {},
|
|
160
|
+
collisionPadding: {},
|
|
161
|
+
arrowPadding: {},
|
|
162
|
+
sticky: { default: "always" },
|
|
163
|
+
hideWhenDetached: { type: Boolean },
|
|
164
|
+
positionStrategy: {},
|
|
165
|
+
updatePositionStrategy: { default: "optimized" },
|
|
166
|
+
disableUpdateOnLayoutShift: { type: Boolean },
|
|
167
|
+
prioritizePosition: { type: Boolean, default: !0 },
|
|
168
|
+
reference: {},
|
|
169
|
+
disableOutsidePointerEvents: { type: Boolean }
|
|
170
|
+
},
|
|
171
|
+
emits: ["update:open", "escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
172
|
+
setup(i, { emit: P }) {
|
|
173
|
+
const g = Be(P), a = i, v = Oe("popover"), u = j(v, "trigger"), s = j(v, "content"), e = Ce(s, {
|
|
174
|
+
variants: {
|
|
175
|
+
size: be(Ue, s)
|
|
176
|
+
}
|
|
177
|
+
}), f = pe(), m = ue(!0);
|
|
178
|
+
_(() => {
|
|
179
|
+
var c;
|
|
180
|
+
const n = Ie((c = f.default) == null ? void 0 : c.call(f, {})) ?? null, l = n.length === 1 ? n[0] : n;
|
|
181
|
+
m.value = l && ke(l) && !Le(l);
|
|
182
|
+
});
|
|
183
|
+
const y = L(() => ({
|
|
184
|
+
...k(a, ["open", "defaultOpen"]),
|
|
185
|
+
...k(g, ["onUpdate:open"])
|
|
186
|
+
})), p = W(), h = _e({ triggerRef: p }), { getFlipOnDir: O, getDir: b } = Ee(), C = O("reversePlacementOnDir"), B = b(), A = je({
|
|
187
|
+
emitsAsProps: g,
|
|
188
|
+
flip: C,
|
|
189
|
+
_dir: B,
|
|
190
|
+
controlAutoFocus: !0
|
|
191
|
+
}), N = W(a.reference);
|
|
192
|
+
return a.useReferenceAttribute && !a.reference ? _(() => {
|
|
193
|
+
var n, l, c;
|
|
194
|
+
N.value = (c = (l = (n = p.value) == null ? void 0 : n.$el) == null ? void 0 : l.closest) == null ? void 0 : c.call(l, "[data-popover-reference]");
|
|
195
|
+
}) : fe(
|
|
196
|
+
() => a.reference,
|
|
197
|
+
(n) => {
|
|
198
|
+
N.value = n;
|
|
199
|
+
}
|
|
200
|
+
), (n, l) => (Pe(), me(r(Se), w(y.value, {
|
|
201
|
+
key: m.value
|
|
202
|
+
}), {
|
|
203
|
+
default: E(({ open: c }) => [
|
|
204
|
+
I(r(Ne), w({
|
|
205
|
+
as: "span",
|
|
206
|
+
class: r(x)(r(u), a.class)
|
|
207
|
+
}, n.$attrs, {
|
|
208
|
+
dir: r(B),
|
|
209
|
+
asChild: m.value,
|
|
210
|
+
ref_key: "triggerRef",
|
|
211
|
+
ref: p
|
|
212
|
+
}), {
|
|
213
|
+
default: E(() => [
|
|
214
|
+
R(n.$slots, "default")
|
|
215
|
+
]),
|
|
216
|
+
_: 3
|
|
217
|
+
}, 16, ["class", "dir", "asChild"]),
|
|
218
|
+
I(r(De), ge(ve(r(h))), {
|
|
219
|
+
default: E(() => [
|
|
220
|
+
ye(I(r(Fe), w({
|
|
221
|
+
style: { zIndex: n.zIndex }
|
|
222
|
+
}, r(A), {
|
|
223
|
+
class: r(x)(r(e)({ size: n.size }), n.containerClass, n.containerCls),
|
|
224
|
+
reference: N.value
|
|
225
|
+
}), {
|
|
226
|
+
default: E(() => [
|
|
227
|
+
R(n.$slots, "content")
|
|
228
|
+
]),
|
|
229
|
+
_: 2
|
|
230
|
+
}, 1040, ["style", "class", "reference"]), [
|
|
231
|
+
[he, c]
|
|
232
|
+
])
|
|
233
|
+
]),
|
|
234
|
+
_: 2
|
|
235
|
+
}, 1040)
|
|
236
|
+
]),
|
|
237
|
+
_: 3
|
|
238
|
+
}, 16));
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
export {
|
|
242
|
+
Qe as P,
|
|
243
|
+
Xe as _,
|
|
244
|
+
Ue as a,
|
|
245
|
+
je as b,
|
|
246
|
+
_e as g
|
|
247
|
+
};
|