@pantograph/vue 0.29.1 → 0.29.3
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/ActionButton.d.ts +2 -2
- package/dist/ActionButton/index.d.ts +1 -0
- package/dist/ActionButton/index.js +7 -3
- package/dist/ActionButton/index.umd.cjs +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-B51HPzjO.js → ActionButton.vue_vue_type_script_setup_true_lang-BKA6jQN0.js} +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-C8hiCxZe.js → ActionButton.vue_vue_type_script_setup_true_lang-BhI55sWu.js} +1 -1
- package/dist/Alert/index.d.ts +1 -0
- package/dist/Alert/index.js +121 -4
- package/dist/Alert/index.umd.cjs +1 -1
- package/dist/Avatar/index.d.ts +1 -0
- package/dist/Avatar/index.js +12 -7
- package/dist/Avatar/index.umd.cjs +1 -1
- package/dist/{Avatar.vue_vue_type_style_index_0_lang--FN9tQw0.js → Avatar.vue_vue_type_style_index_0_lang-BSPQHKch.js} +64 -63
- package/dist/Avatar.vue_vue_type_style_index_0_lang-D2o9rP-R.js +1 -0
- package/dist/AvatarGroup/index.d.ts +1 -0
- package/dist/AvatarGroup/index.js +7 -4
- package/dist/AvatarGroup/index.umd.cjs +1 -1
- package/dist/Badge/index.d.ts +1 -0
- package/dist/Badge/index.js +7 -3
- package/dist/Badge/index.umd.cjs +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-DVt1axIK.js → Badge.vue_vue_type_script_setup_true_lang-BFQCx53R.js} +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-D8HhPgXQ.js → Badge.vue_vue_type_script_setup_true_lang-BvaT1pMA.js} +5 -5
- package/dist/{BaseBadge.model-DCiuNKoh.js → BaseBadge.model-D4ZfMIfM.js} +4 -4
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-DG6AxxJf.js → BaseBadge.vue_vue_type_style_index_0_lang-10ckF176.js} +18 -17
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-CE9-_G4N.js +1 -0
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-BmmbeeCU.js +1 -0
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-LxH67DwE.js → BaseButton.vue_vue_type_style_index_0_lang-SL_re9nc.js} +5 -5
- package/dist/{BaseInput.vue_vue_type_style_index_0_lang-B-uL43gK.js → BaseInput.vue_vue_type_style_index_0_lang-BaaSkNs8.js} +1 -1
- package/dist/{BaseInput.vue_vue_type_style_index_0_lang-DTsfexlV.js → BaseInput.vue_vue_type_style_index_0_lang-CrYgr0E2.js} +1 -1
- package/dist/Button/Button.d.ts +2 -2
- package/dist/Button/index.d.ts +1 -0
- package/dist/Button/index.js +7 -3
- package/dist/Button/index.umd.cjs +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-eKE2_leQ.js → Button.vue_vue_type_script_setup_true_lang-BGBvg82i.js} +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-BdrjQ8uV.js → Button.vue_vue_type_script_setup_true_lang-DRaac7hE.js} +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -0
- package/dist/ButtonGroup/index.js +8 -5
- package/dist/ButtonGroup/index.umd.cjs +1 -1
- package/dist/Card/Card.d.ts +1 -0
- package/dist/Card/index.d.ts +1 -0
- package/dist/Card/index.js +114 -4
- package/dist/Card/index.umd.cjs +1 -1
- package/dist/Checkbox/index.d.ts +1 -0
- package/dist/Checkbox/index.js +10 -5
- package/dist/Checkbox/index.umd.cjs +1 -1
- package/dist/{Checkbox.vue_vue_type_style_index_0_lang-BEA8tGnv.js → Checkbox.vue_vue_type_style_index_0_lang-CFQlwsbT.js} +63 -62
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-CXAyoKcr.js +1 -0
- package/dist/CheckboxGroup/index.d.ts +1 -0
- package/dist/CheckboxGroup/index.js +7 -4
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- package/dist/Chip/index.d.ts +1 -0
- package/dist/Chip/index.js +10 -5
- package/dist/Chip/index.umd.cjs +1 -1
- package/dist/Chip.vue_vue_type_style_index_0_lang-Dm0RiLDU.js +1 -0
- package/dist/Chip.vue_vue_type_style_index_0_lang-VHPsw9Yn.js +144 -0
- package/dist/ChipGroup/ChipGroup.d.ts +2 -1
- package/dist/ChipGroup/index.d.ts +1 -0
- package/dist/ChipGroup/index.js +6 -3
- package/dist/ChipGroup/index.umd.cjs +1 -1
- package/dist/ColorPicker/index.d.ts +1 -0
- package/dist/ColorPicker/index.js +10 -5
- package/dist/ColorPicker/index.umd.cjs +1 -1
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-k4zhYbY2.js → ColorPicker.vue_vue_type_style_index_0_lang-CJ0_qSst.js} +3 -3
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-BsPMp6nY.js → ColorPicker.vue_vue_type_style_index_0_lang-gVtNEhvy.js} +1 -1
- package/dist/ColorSwatch/index.d.ts +1 -0
- package/dist/ColorSwatch/index.js +103 -5
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/ColorSwatch-0dacBE8u.js +1 -0
- package/dist/ColorSwatch-JpUYq643.js +4 -0
- package/dist/ColorSwatchGroup/index.d.ts +1 -0
- package/dist/ColorSwatchGroup/index.js +7 -3
- package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
- package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-CsFGOy9g.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-IJFzTFx_.js} +12 -12
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-KU2yttLu.js +1 -0
- package/dist/ColorTrigger/index.d.ts +1 -0
- package/dist/ColorTrigger/index.js +9 -4
- package/dist/ColorTrigger/index.umd.cjs +1 -1
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-BJuc5aeO.js → ColorTrigger.vue_vue_type_style_index_0_lang-CXBS_4cj.js} +1 -1
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-Buh4VSbs.js → ColorTrigger.vue_vue_type_style_index_0_lang-ypTGR_Fw.js} +2 -2
- package/dist/Combobox/index.d.ts +2 -0
- package/dist/Combobox/index.js +1153 -7
- package/dist/Combobox/index.umd.cjs +1 -1
- package/dist/Combobox/types.d.ts +1 -0
- package/dist/Comment/Comment.d.ts +11 -9
- package/dist/Comment/CommentActions.d.ts +4 -4
- package/dist/Comment/CommentEditor.d.ts +9 -9
- package/dist/Comment/CommentReactions.d.ts +2 -2
- package/dist/Comment/index.d.ts +6 -0
- package/dist/Comment/index.js +193 -182
- package/dist/Comment/index.umd.cjs +1 -1
- package/dist/ComponentMap-BK05GoCW.js +87 -0
- package/dist/ComponentMap-CFe_xZkg.js +1 -0
- package/dist/ComponentMap.d.ts +3 -0
- package/dist/ConfigProvider/ConfigProvider.d.ts +2 -4
- package/dist/ConfigProvider/index.d.ts +1 -0
- package/dist/ConfigProvider/index.js +125 -6
- package/dist/ConfigProvider/index.umd.cjs +1 -1
- package/dist/DataTable/components/DataTableHeaderCell.d.ts +6 -6
- package/dist/DataTable/index.d.ts +1 -0
- package/dist/DataTable/index.js +1942 -6
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/DataTable/types/index.d.ts +4 -0
- package/dist/Divider/index.d.ts +1 -0
- package/dist/Divider/index.js +8 -3
- package/dist/Divider/index.umd.cjs +1 -1
- package/dist/DropZone/index.d.ts +1 -0
- package/dist/DropZone/index.js +124 -5
- package/dist/DropZone/index.umd.cjs +1 -1
- package/dist/Empty/index.d.ts +1 -0
- package/dist/Empty/index.js +9 -4
- package/dist/Empty/index.umd.cjs +1 -1
- package/dist/{Empty.vue_vue_type_style_index_0_lang-CdQHeBeZ.js → Empty.vue_vue_type_style_index_0_lang-DRqpYyi-.js} +1 -1
- package/dist/{Empty.vue_vue_type_style_index_0_lang-DweNvcXn.js → Empty.vue_vue_type_style_index_0_lang-qlOjnH1j.js} +1 -1
- package/dist/FloatButton/FloatButton.d.ts +2 -2
- package/dist/FloatButton/index.d.ts +1 -0
- package/dist/FloatButton/index.js +7 -3
- package/dist/FloatButton/index.umd.cjs +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-ClqbpPNl.js → FloatButton.vue_vue_type_script_setup_true_lang-BD_pn8Vu.js} +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-BTmEBbt_.js → FloatButton.vue_vue_type_script_setup_true_lang-CjWleMQR.js} +1 -1
- package/dist/Form/index.d.ts +2 -0
- package/dist/Form/index.js +2482 -10
- package/dist/Form/index.umd.cjs +9 -1
- package/dist/FormValidation/FormValidation.d.ts +1 -1
- package/dist/FormValidation/index.d.ts +3 -0
- package/dist/FormValidation/index.js +19 -0
- package/dist/FormValidation/index.umd.cjs +1 -0
- package/dist/FormValidation.vue_vue_type_style_index_0_lang-4DQfQtme.js +45 -0
- package/dist/FormValidation.vue_vue_type_style_index_0_lang-CeM2O3Id.js +1 -0
- package/dist/GOPicker/GOPicker.d.ts +2 -2
- package/dist/GOPicker/index.d.ts +3 -2
- package/dist/GOPicker/index.js +16313 -6
- package/dist/GOPicker/index.umd.cjs +1 -1
- package/dist/GraphicalObject/index.d.ts +1 -0
- package/dist/GraphicalObject/index.js +7 -3
- package/dist/GraphicalObject/index.umd.cjs +1 -1
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-Zeg-CFjd.js → GraphicalObject.vue_vue_type_script_setup_true_lang-Cw-dYlrK.js} +8 -8
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-DuCrET7F.js +1 -0
- package/dist/GraphicalObjectGroup/index.d.ts +1 -0
- package/dist/GraphicalObjectGroup/index.js +61 -5
- package/dist/GraphicalObjectGroup/index.umd.cjs +1 -1
- package/dist/HoverCard/index.d.ts +1 -0
- package/dist/HoverCard/index.js +98 -6
- package/dist/HoverCard/index.umd.cjs +1 -1
- package/dist/Icon/index.d.ts +1 -0
- package/dist/Icon/index.js +9 -4
- package/dist/Icon/index.umd.cjs +1 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-D35DGfhm.js +1 -0
- package/dist/{Icon.vue_vue_type_style_index_0_lang-BUxhmWxU.js → Icon.vue_vue_type_style_index_0_lang-cUm6hfXg.js} +1 -1
- package/dist/IconButton/IconButton.d.ts +2 -2
- package/dist/IconButton/index.d.ts +1 -0
- package/dist/IconButton/index.js +7 -3
- package/dist/IconButton/index.umd.cjs +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-BJAoKnAC.js → IconButton.vue_vue_type_script_setup_true_lang-CeH-nxZ6.js} +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-BWRCL8hG.js → IconButton.vue_vue_type_script_setup_true_lang-DBDmWePu.js} +1 -1
- package/dist/Image/index.d.ts +1 -0
- package/dist/Image/index.js +10 -5
- package/dist/Image/index.umd.cjs +1 -1
- package/dist/{Image.vue_vue_type_style_index_0_lang-ylLPFLX3.js → Image.vue_vue_type_style_index_0_lang-B5wL0qfB.js} +1 -1
- package/dist/{Image.vue_vue_type_style_index_0_lang-BaZ9DPbi.js → Image.vue_vue_type_style_index_0_lang-DyZjQGcE.js} +4 -4
- package/dist/IndentLevel/index.d.ts +1 -0
- package/dist/IndentLevel/index.js +10 -5
- package/dist/IndentLevel/index.umd.cjs +1 -1
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-CPAOlvGw.js → IndentLevel.vue_vue_type_style_index_0_lang-D1htGz8f.js} +1 -1
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-B1tyl0fy.js → IndentLevel.vue_vue_type_style_index_0_lang-DXqbeAQ-.js} +4 -4
- package/dist/Indicator/index.d.ts +1 -0
- package/dist/Indicator/index.js +7 -3
- package/dist/Indicator/index.umd.cjs +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-qbXRbfSe.js → Indicator.vue_vue_type_script_setup_true_lang-JJjkSXKC.js} +6 -6
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-g2dBu5LK.js → Indicator.vue_vue_type_script_setup_true_lang-d3Y_ijwq.js} +1 -1
- package/dist/Input/Input.d.ts +2 -2
- package/dist/Input/index.d.ts +1 -0
- package/dist/Input/index.js +7 -3
- package/dist/Input/index.umd.cjs +1 -1
- package/dist/{Input.vue_vue_type_script_setup_true_lang-DrNJ4wW-.js → Input.vue_vue_type_script_setup_true_lang-BKbts3jz.js} +1 -1
- package/dist/{Input.vue_vue_type_script_setup_true_lang-CJ-mNejn.js → Input.vue_vue_type_script_setup_true_lang-BYffMo8x.js} +1 -1
- package/dist/InputNumber/InputNumber.d.ts +2 -2
- package/dist/InputNumber/index.d.ts +1 -0
- package/dist/InputNumber/index.js +7 -3
- package/dist/InputNumber/index.umd.cjs +1 -1
- package/dist/{InputNumber.vue_vue_type_script_setup_true_lang-DDBSoDn-.js → InputNumber.vue_vue_type_script_setup_true_lang-D9u3HUvv.js} +2 -2
- package/dist/{InputNumber.vue_vue_type_script_setup_true_lang-DkEkef8C.js → InputNumber.vue_vue_type_script_setup_true_lang-DOFeMQKx.js} +1 -1
- package/dist/Kbd/index.d.ts +1 -0
- package/dist/Kbd/index.js +47 -3
- package/dist/Kbd/index.umd.cjs +1 -1
- package/dist/Label/index.d.ts +1 -0
- package/dist/Label/index.js +9 -4
- package/dist/Label/index.umd.cjs +1 -1
- package/dist/{Label.vue_vue_type_style_index_0_lang-BFm3rwJK.js → Label.vue_vue_type_style_index_0_lang-D89a1p58.js} +1 -1
- package/dist/{Label.vue_vue_type_style_index_0_lang-CXZtFMJt.js → Label.vue_vue_type_style_index_0_lang-DMi6Zx-J.js} +1 -1
- package/dist/Link/index.d.ts +1 -0
- package/dist/Link/index.js +77 -4
- package/dist/Link/index.umd.cjs +1 -1
- package/dist/Menu/index.d.ts +1 -0
- package/dist/Menu/index.js +11 -6
- package/dist/Menu/index.umd.cjs +1 -1
- package/dist/MenuItem/index.d.ts +1 -0
- package/dist/MenuItem/index.js +9 -4
- package/dist/MenuItem/index.umd.cjs +1 -1
- package/dist/{MenuItem.vue_vue_type_style_index_0_lang-pKKwSjqz.js → MenuItem.vue_vue_type_style_index_0_lang-BAVVaaaZ.js} +37 -37
- package/dist/{MenuItem.vue_vue_type_style_index_0_lang-CpFi8orx.js → MenuItem.vue_vue_type_style_index_0_lang-DT3IAkAQ.js} +1 -1
- package/dist/Pagination/index.d.ts +1 -0
- package/dist/Pagination/index.js +240 -4
- package/dist/Pagination/index.umd.cjs +1 -1
- package/dist/Popover/index.d.ts +1 -0
- package/dist/Popover/index.js +7 -4
- package/dist/Popover/index.umd.cjs +1 -1
- package/dist/Popover/utils.d.ts +3 -1
- package/dist/Progress/index.d.ts +1 -0
- package/dist/Progress/index.js +18 -13
- package/dist/Progress/index.umd.cjs +1 -1
- package/dist/Progress.vue_vue_type_style_index_0_lang-Da3J8MwA.js +1 -0
- package/dist/{Progress.vue_vue_type_style_index_0_lang-9eAYLmtJ.js → Progress.vue_vue_type_style_index_0_lang-VcaWRb-o.js} +11 -11
- package/dist/RadioGroup/index.d.ts +2 -0
- package/dist/RadioGroup/index.js +9 -4
- package/dist/RadioGroup/index.umd.cjs +1 -1
- package/dist/ScrollContainer/index.d.ts +1 -0
- package/dist/ScrollContainer/index.js +10 -5
- package/dist/ScrollContainer/index.umd.cjs +1 -1
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-Br7-ZHr3.js +1 -0
- package/dist/{ScrollContainer.vue_vue_type_style_index_0_lang-CHAf6ZD-.js → ScrollContainer.vue_vue_type_style_index_0_lang-C9L-FJn7.js} +3 -3
- package/dist/Segmented/index.d.ts +1 -0
- package/dist/Segmented/index.js +9 -4
- package/dist/Segmented/index.umd.cjs +1 -1
- package/dist/Segmented.vue_vue_type_style_index_0_lang-Bwyz7RU9.js +1 -0
- package/dist/{Segmented.vue_vue_type_style_index_0_lang-DMAM-GcW.js → Segmented.vue_vue_type_style_index_0_lang-JoWqilVK.js} +5 -4
- package/dist/Select/index.d.ts +3 -0
- package/dist/Select/index.js +15 -8
- package/dist/Select/index.umd.cjs +1 -1
- package/dist/{Select.vue_vue_type_style_index_0_lang-BWQI_Gdd.js → Select.vue_vue_type_style_index_0_lang-43LRXAk7.js} +76 -74
- package/dist/Select.vue_vue_type_style_index_0_lang-DGdCmDGr.js +1 -0
- package/dist/Shortcut/index.d.ts +1 -0
- package/dist/Shortcut/index.js +7 -3
- package/dist/Shortcut/index.umd.cjs +1 -1
- package/dist/{Shortcut.vue_vue_type_style_index_0_lang-BCI1fBC1.js → Shortcut.vue_vue_type_style_index_0_lang-BE85KcH8.js} +6 -6
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-BfPJ-C7d.js +1 -0
- package/dist/Skeleton/index.d.ts +1 -0
- package/dist/Skeleton/index.js +10 -5
- package/dist/Skeleton/index.umd.cjs +1 -1
- package/dist/{Skeleton.vue_vue_type_style_index_0_lang-DOsf2SEN.js → Skeleton.vue_vue_type_style_index_0_lang-DeNnx4lD.js} +2 -2
- package/dist/Spinner/index.d.ts +1 -0
- package/dist/Spinner/index.js +8 -3
- package/dist/Spinner/index.umd.cjs +1 -1
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-B9xVVRzZ.js → Spinner.vue_vue_type_style_index_0_lang-ByCVaoZy.js} +1 -1
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-kqKDLFqb.js → Spinner.vue_vue_type_style_index_0_lang-D-425sXj.js} +1 -1
- package/dist/SubMenu/SubMenu.d.ts +1 -1
- package/dist/SubMenu/index.d.ts +1 -0
- package/dist/SubMenu/index.js +7 -3
- package/dist/SubMenu/index.umd.cjs +1 -1
- package/dist/Switch/Switch.d.ts +1 -1
- package/dist/Switch/index.d.ts +1 -0
- package/dist/Switch/index.js +8 -3
- package/dist/Switch/index.umd.cjs +1 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-B9pNw4SK.js +1 -0
- package/dist/{Switch.vue_vue_type_style_index_0_lang-CaqBM1l0.js → Switch.vue_vue_type_style_index_0_lang-BFHMw2kq.js} +1 -1
- package/dist/Table/index.d.ts +7 -0
- package/dist/Table/index.js +262 -9
- package/dist/Table/index.umd.cjs +1 -1
- package/dist/Tabs/TabTrigger.d.ts +1 -0
- package/dist/Tabs/Tabs.d.ts +0 -4
- package/dist/Tabs/index.d.ts +5 -1
- package/dist/Tabs/index.js +374 -9
- package/dist/Tabs/index.umd.cjs +1 -1
- package/dist/Textarea/Textarea.d.ts +2 -2
- package/dist/Textarea/index.d.ts +1 -0
- package/dist/Textarea/index.js +118 -5
- package/dist/Textarea/index.umd.cjs +1 -1
- package/dist/Tooltip/index.d.ts +1 -0
- package/dist/Tooltip/index.js +10 -5
- package/dist/Tooltip/index.umd.cjs +1 -1
- package/dist/Tree/index.d.ts +2 -0
- package/dist/Tree/index.js +12 -8
- package/dist/Tree/index.umd.cjs +1 -1
- package/dist/Upload/Upload.d.ts +177 -21
- package/dist/Upload/UploadList.d.ts +8 -9
- package/dist/Upload/index.d.ts +3 -0
- package/dist/Upload/index.js +1115 -15
- package/dist/Upload/index.umd.cjs +1 -1
- package/dist/Upload/types.d.ts +5 -11
- package/dist/Upload/utils/extension.d.ts +3 -1
- package/dist/index-BGRPfms4.js +1 -0
- package/dist/index-BMbS6v_U.js +1 -0
- package/dist/index-C3LNCbQ5.js +58 -0
- package/dist/index-CLWvy5OA.js +1 -0
- package/dist/index-CXAXCAp4.js +1 -0
- package/dist/{Tree.vue_vue_type_style_index_0_lang-DfkssuPL.js → index-ChJBx3zx.js} +153 -150
- package/dist/{index-ZfMi9Is4.js → index-D2tZoezA.js} +2 -2
- package/dist/index-D8GuRo14.js +77 -0
- package/dist/index-DObXz0JR.js +278 -0
- package/dist/index-DiTA0K4J.js +397 -0
- package/dist/index-SHgIzWWT.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +388 -269
- package/dist/index.umd.cjs +1 -1
- package/dist/nuxt/index.js +27 -0
- package/dist/nuxt/index.umd.cjs +1 -0
- package/dist/nuxt.d.ts +7 -0
- package/dist/resolver/index.js +21 -0
- package/dist/resolver/index.umd.cjs +1 -0
- package/dist/resolver.d.ts +11 -0
- package/dist/style/index.css +1 -1
- package/dist/use/index.js +13 -0
- package/dist/use/index.umd.cjs +1 -0
- package/dist/use.d.ts +7 -0
- package/package.json +26 -5
- package/dist/Alert.vue_vue_type_style_index_0_lang-C3d6Dl5k.js +0 -1
- package/dist/Alert.vue_vue_type_style_index_0_lang-CL20lgmx.js +0 -120
- package/dist/Avatar.vue_vue_type_style_index_0_lang-BTweD2oV.js +0 -1
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-C_f3-aVP.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-58oCf4xk.js +0 -1
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-B1xohKaV.js +0 -1
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-Cdto0wL9.js +0 -56
- package/dist/Card.vue_vue_type_style_index_0_lang-Cq4rXSmn.js +0 -109
- package/dist/Card.vue_vue_type_style_index_0_lang-Iyaj4565.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-BrNExnEV.js +0 -1
- package/dist/Chip.vue_vue_type_style_index_0_lang-CGBRYOsr.js +0 -212
- package/dist/Chip.vue_vue_type_style_index_0_lang-Cr9OkEzs.js +0 -1
- package/dist/ColorSwatch-C6PzsQKD.js +0 -1
- package/dist/ColorSwatch-mgCNnNfC.js +0 -4
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-BbX5CwJ6.js +0 -1
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-MLdGdgCi.js +0 -102
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-Bhy0Nsts.js +0 -1
- package/dist/Combobox.vue_vue_type_style_index_0_lang-a7qKkBIb.js +0 -1129
- package/dist/Combobox.vue_vue_type_style_index_0_lang-cmleh5Z8.js +0 -1
- package/dist/ConfigProvider.vue_vue_type_script_setup_true_lang-CyGHtFPF.js +0 -1
- package/dist/ConfigProvider.vue_vue_type_script_setup_true_lang-IVHvl51_.js +0 -116
- package/dist/DataTable.vue_vue_type_style_index_0_lang-DcYyvhP1.js +0 -1936
- package/dist/DataTable.vue_vue_type_style_index_0_lang-ZuEJ496q.js +0 -1
- package/dist/DropZone.vue_vue_type_style_index_0_lang-ApI6Y1Kb.js +0 -124
- package/dist/DropZone.vue_vue_type_style_index_0_lang-CzVP_oof.js +0 -1
- package/dist/FormValidation.vue_vue_type_style_index_0_lang-C5jDMAlq.js +0 -9
- package/dist/FormValidation.vue_vue_type_style_index_0_lang-C_zrxekC.js +0 -2512
- package/dist/GOPicker.vue_vue_type_style_index_0_lang-B79spkzQ.js +0 -1710
- package/dist/GOPicker.vue_vue_type_style_index_0_lang-BikulE0p.js +0 -1
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-Bd5AyEiC.js +0 -1
- package/dist/GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DfUwdVxt.js +0 -62
- package/dist/GraphicalObjectGroup.vue_vue_type_style_index_0_lang-Dlaf6rTD.js +0 -1
- package/dist/HoverCard.vue_vue_type_style_index_0_lang-B6a5M7RJ.js +0 -1
- package/dist/HoverCard.vue_vue_type_style_index_0_lang-DOwcNfdp.js +0 -94
- package/dist/Icon.vue_vue_type_style_index_0_lang-DQNF7GAr.js +0 -1
- package/dist/Kbd.vue_vue_type_style_index_0_lang--BbFRXDn.js +0 -1
- package/dist/Kbd.vue_vue_type_style_index_0_lang-s-4_L5Wz.js +0 -46
- package/dist/Link.vue_vue_type_style_index_0_lang-Cm0Wcj-k.js +0 -76
- package/dist/Link.vue_vue_type_style_index_0_lang-mE8WUPbK.js +0 -1
- package/dist/Pagination.vue_vue_type_style_index_0_lang-BtR1Olgf.js +0 -1
- package/dist/Pagination.vue_vue_type_style_index_0_lang-BvdjtI7o.js +0 -240
- package/dist/Popover.vue_vue_type_style_index_0_lang-CWM6Krh-.js +0 -275
- package/dist/Popover.vue_vue_type_style_index_0_lang-w-n010qN.js +0 -1
- package/dist/Progress.vue_vue_type_style_index_0_lang-DHysdRIJ.js +0 -1
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-DDjSsSEk.js +0 -1
- package/dist/Segmented.vue_vue_type_style_index_0_lang-BHrbYl3U.js +0 -1
- package/dist/Select.vue_vue_type_style_index_0_lang-CNm59A4k.js +0 -1
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-G0VfMmkm.js +0 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-6KGCYh5x.js +0 -1
- package/dist/TFoot.vue_vue_type_style_index_0_lang-BlzKy8f-.js +0 -1
- package/dist/TFoot.vue_vue_type_style_index_0_lang-CjyMQk21.js +0 -256
- package/dist/TabContent.vue_vue_type_script_setup_true_lang-BBb-wV7s.js +0 -1
- package/dist/TabContent.vue_vue_type_script_setup_true_lang-D0L4W1At.js +0 -364
- package/dist/Textarea.vue_vue_type_style_index_0_lang-CcBN3cHa.js +0 -1
- package/dist/Textarea.vue_vue_type_style_index_0_lang-Mb728qe4.js +0 -118
- package/dist/Tree.vue_vue_type_style_index_0_lang-y5ybjpV4.js +0 -1
- package/dist/Upload.vue_vue_type_style_index_0_lang-CPgody1-.js +0 -1
- package/dist/Upload.vue_vue_type_style_index_0_lang-rhWj1fgd.js +0 -1117
- package/dist/getEmojiList-CDYsgSBd.js +0 -14604
- package/dist/getEmojiList-DX90Kg6S.js +0 -1
|
@@ -1,1129 +0,0 @@
|
|
|
1
|
-
import { defineComponent as _e, useSlots as it, onBeforeUnmount as Rt, computed as C, createBlock as K, openBlock as I, unref as u, mergeProps as ue, createSlots as At, renderList as $e, withCtx as W, renderSlot as Ee, normalizeProps as Le, guardReactiveProps as Me, createVNode as X, h as _, useAttrs as $t, createElementBlock as ye, normalizeClass as Ie, toDisplayString as Kt, ref as ve, watch as Ft, isRef as Ye, createCommentVNode as De, createElementVNode as Ze, normalizeStyle as Nt, Fragment as Re } from "vue";
|
|
2
|
-
import { createContext as Wt, Slot as Ht, useEmitAsProps as Ut } from "reka-ui";
|
|
3
|
-
import { omit as he, isString as et, cloneDeep as le, isFunction as Gt, debounce as tt, pick as jt, last as ot } from "es-toolkit";
|
|
4
|
-
import { isEmptyElement as $, useVModel as Oe, useLazyLoading as qt, useFormInput as Jt, useVirtualScroll as Qt, useInputDataStates as Xt, useCollection as Yt, useDisableBodyPointerEvents as Zt } from "@pantograph/utils-vue";
|
|
5
|
-
import { getBemBlock as eo, getBemModifier as to, getBemElement as S, getComponentOptions as be, normCls as U, isEmptyLikeLodash as F, generateVariantClassList as q, createOptionGetterFunc as j, usePCId as lt, getPxSize as Ae } from "@pantograph/utils";
|
|
6
|
-
import { _ as oo } from "./Popover.vue_vue_type_style_index_0_lang-CWM6Krh-.js";
|
|
7
|
-
import { cva as ut } from "class-variance-authority";
|
|
8
|
-
import { _ as Ke } from "./Icon.vue_vue_type_style_index_0_lang-BUxhmWxU.js";
|
|
9
|
-
import { _ as ct, d as lo } from "./Avatar.vue_vue_type_style_index_0_lang--FN9tQw0.js";
|
|
10
|
-
import { _ as pt } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-Zeg-CFjd.js";
|
|
11
|
-
import { _ as ao } from "./GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DfUwdVxt.js";
|
|
12
|
-
import { b as no, _ as ro } from "./Chip.vue_vue_type_style_index_0_lang-CGBRYOsr.js";
|
|
13
|
-
import { _ as so } from "./Input.vue_vue_type_script_setup_true_lang-CJ-mNejn.js";
|
|
14
|
-
import { whenever as io, refDebounced as uo } from "@vueuse/core";
|
|
15
|
-
import { g as co, a as po } from "./MenuItem.vue_vue_type_style_index_0_lang-pKKwSjqz.js";
|
|
16
|
-
import { i as J } from "./isArray-QlWcxgml.js";
|
|
17
|
-
import { _ as go } from "./ScrollContainer.vue_vue_type_style_index_0_lang-CHAf6ZD-.js";
|
|
18
|
-
import { _ as fo } from "./Empty.vue_vue_type_style_index_0_lang-CdQHeBeZ.js";
|
|
19
|
-
import { f as mo, _ as vo, a as yo } from "./Tree.vue_vue_type_style_index_0_lang-DfkssuPL.js";
|
|
20
|
-
import { _ as ho } from "./Checkbox.vue_vue_type_style_index_0_lang-BEA8tGnv.js";
|
|
21
|
-
import "@pantograph/tokens";
|
|
22
|
-
import { _ as _o } from "./Skeleton.vue_vue_type_style_index_0_lang-DOsf2SEN.js";
|
|
23
|
-
import { _ as bo } from "./Divider.vue_vue_type_style_index_0_lang-GfWcHNix.js";
|
|
24
|
-
import { s as at } from "./index-ZfMi9Is4.js";
|
|
25
|
-
import { u as Co } from "./ConfigProvider.vue_vue_type_script_setup_true_lang-IVHvl51_.js";
|
|
26
|
-
import { h as nt } from "./head-E4xQy0iK.js";
|
|
27
|
-
const [Fe, ko] = Wt("Combobox"), w = eo("combobox"), dt = to(w, "value-placeholder"), rt = S(w, "option"), gt = ["sm", "md", "lg"], So = ["error", "warning", "success"], ft = /* @__PURE__ */ _e({
|
|
28
|
-
...be("ComboboxInput"),
|
|
29
|
-
__name: "ComboboxInput",
|
|
30
|
-
props: {
|
|
31
|
-
id: {},
|
|
32
|
-
maxlength: {},
|
|
33
|
-
type: {},
|
|
34
|
-
placeholder: {},
|
|
35
|
-
disabled: { type: Boolean, default: void 0 },
|
|
36
|
-
required: { type: Boolean },
|
|
37
|
-
readonly: { type: Boolean },
|
|
38
|
-
modelValue: {},
|
|
39
|
-
defaultValue: {},
|
|
40
|
-
immediateFocus: { type: Boolean },
|
|
41
|
-
leading: {},
|
|
42
|
-
trailing: {},
|
|
43
|
-
clearIcon: {},
|
|
44
|
-
trailingCls: {},
|
|
45
|
-
clearIconCls: {},
|
|
46
|
-
dividerCls: {},
|
|
47
|
-
leadingCls: {},
|
|
48
|
-
class: {},
|
|
49
|
-
allowClear: { type: Boolean },
|
|
50
|
-
bordered: { type: Boolean, default: void 0 },
|
|
51
|
-
simple: { type: Boolean },
|
|
52
|
-
size: {},
|
|
53
|
-
status: {},
|
|
54
|
-
steps: { type: Boolean }
|
|
55
|
-
},
|
|
56
|
-
setup(Y) {
|
|
57
|
-
const t = Y, c = it(), o = Fe();
|
|
58
|
-
io(() => o.openModel.value && o.inputRef.value, o.focusOnInput), Rt(() => {
|
|
59
|
-
o.comboboxInputFocused.value = !1;
|
|
60
|
-
});
|
|
61
|
-
const k = C(() => {
|
|
62
|
-
const L = t.placeholder ?? o.props.placeholder ?? "";
|
|
63
|
-
return (o.props.headerSearch ? L : o.placeholder.value) ?? L;
|
|
64
|
-
}), G = S(w, "input");
|
|
65
|
-
return (L, h) => (I(), K(u(so), ue({ ...u(o).comboboxInputBinding.value, ...t }, {
|
|
66
|
-
placeholder: k.value,
|
|
67
|
-
onKeydown: u(o).onKeyDown,
|
|
68
|
-
ref: u(o).inputRef,
|
|
69
|
-
class: u(U)(u(G), { [u(dt)]: u(o).valuePlaceholder.value }, t.class),
|
|
70
|
-
modelValue: u(o).searchModel.value,
|
|
71
|
-
"onUpdate:modelValue": h[0] || (h[0] = (d) => u(o).searchModel.value = d)
|
|
72
|
-
}), At({ _: 2 }, [
|
|
73
|
-
$e(Object.keys(u(he)(c, ["leading"])), (d) => ({
|
|
74
|
-
name: d,
|
|
75
|
-
fn: W((g) => [
|
|
76
|
-
Ee(L.$slots, d, Le(Me(g)))
|
|
77
|
-
])
|
|
78
|
-
})),
|
|
79
|
-
u(o).props.headerSearch ? {
|
|
80
|
-
name: "leading",
|
|
81
|
-
fn: W((d) => [
|
|
82
|
-
Ee(L.$slots, "leading", Le(Me(d)), () => [
|
|
83
|
-
X(u(Ke), {
|
|
84
|
-
size: d.iconSize,
|
|
85
|
-
icon: "tabler:search",
|
|
86
|
-
flipOnDir: "rtl"
|
|
87
|
-
}, null, 8, ["size"])
|
|
88
|
-
])
|
|
89
|
-
]),
|
|
90
|
-
key: "0"
|
|
91
|
-
} : {
|
|
92
|
-
name: "leading",
|
|
93
|
-
fn: W((d) => [
|
|
94
|
-
Ee(L.$slots, "leading", Le(Me(d)))
|
|
95
|
-
]),
|
|
96
|
-
key: "1"
|
|
97
|
-
}
|
|
98
|
-
]), 1040, ["placeholder", "onKeydown", "class", "modelValue"]));
|
|
99
|
-
}
|
|
100
|
-
}), xo = /* @__PURE__ */ _e({
|
|
101
|
-
...be("ComboboxTrigger"),
|
|
102
|
-
__name: "ComboboxTrigger",
|
|
103
|
-
setup(Y) {
|
|
104
|
-
const t = Fe(), c = ({ value: r }) => {
|
|
105
|
-
r && J(t.model.value) && !t.getDisabled.value && (t.model.value = t.model.value.filter((b) => b !== r));
|
|
106
|
-
}, o = C(() => {
|
|
107
|
-
switch (t.getSize.value) {
|
|
108
|
-
case "sm":
|
|
109
|
-
return "2xsm";
|
|
110
|
-
case "md":
|
|
111
|
-
default:
|
|
112
|
-
return "xsm";
|
|
113
|
-
}
|
|
114
|
-
}), k = C(() => {
|
|
115
|
-
if (!t.props.multiple && et(t.model.value) && !F(t.model.value))
|
|
116
|
-
return t.getOptionByValue(t.model.value);
|
|
117
|
-
}), G = (r = k.value) => {
|
|
118
|
-
if (t.props.selectedItemIconAsTrailingIcon && (r != null && r._icon))
|
|
119
|
-
return r._icon;
|
|
120
|
-
}, L = C(() => G()), h = C(() => {
|
|
121
|
-
if (!t.props.noTrailing)
|
|
122
|
-
return t.props.trailingIcon ?? "tabler:chevron-down";
|
|
123
|
-
}), d = C(() => {
|
|
124
|
-
var m, v;
|
|
125
|
-
const r = le(t.model.value), b = J(t.model.value);
|
|
126
|
-
return {
|
|
127
|
-
modelValue: r,
|
|
128
|
-
open: le(t.openModel.value),
|
|
129
|
-
option: b ? void 0 : t.getOptionByValue(t.model.value),
|
|
130
|
-
options: b ? (v = (m = t.model.value).map) == null ? void 0 : v.call(m, t.getOptionByValue).filter(Boolean) : void 0
|
|
131
|
-
};
|
|
132
|
-
}), g = (r) => ({
|
|
133
|
-
...d.value,
|
|
134
|
-
option: t.getOptionByValue(r)
|
|
135
|
-
}), n = S(w, "trigger"), N = ut(n, {
|
|
136
|
-
variants: {
|
|
137
|
-
size: q(gt, n),
|
|
138
|
-
headerSearch: q("header-search", n),
|
|
139
|
-
status: q(So, n),
|
|
140
|
-
bordered: q("bordered", n),
|
|
141
|
-
multiple: q("multiple", n),
|
|
142
|
-
contentFit: q("content-fit", n),
|
|
143
|
-
wrapped: q("wrapped", n),
|
|
144
|
-
filled: q("filled", n)
|
|
145
|
-
}
|
|
146
|
-
}), Q = C(() => ({
|
|
147
|
-
type: "button",
|
|
148
|
-
disabled: t.getDisabled.value,
|
|
149
|
-
tabindex: t.getDisabled.value || !t.props.headerSearch ? -1 : 0,
|
|
150
|
-
"data-disabled": t.getDisabled.value ? "" : void 0,
|
|
151
|
-
"aria-disabled": t.getDisabled.value ?? void 0,
|
|
152
|
-
"aria-label": "Show popup",
|
|
153
|
-
"aria-haspopup": "listbox",
|
|
154
|
-
"aria-expanded": t.openModel.value,
|
|
155
|
-
"data-state": t.openModel.value ? "open" : "closed",
|
|
156
|
-
class: U(
|
|
157
|
-
N({
|
|
158
|
-
size: t.getSize.value,
|
|
159
|
-
status: t.getStatus.value === "success" && F(t.model.value) ? void 0 : t.getStatus.value,
|
|
160
|
-
bordered: t.props.bordered,
|
|
161
|
-
multiple: t.props.multiple,
|
|
162
|
-
contentFit: t.props.contentFit,
|
|
163
|
-
wrapped: t.props.wrapped,
|
|
164
|
-
filled: !F(t.model.value),
|
|
165
|
-
headerSearch: t.props.headerSearch
|
|
166
|
-
}),
|
|
167
|
-
t.props.triggerCls
|
|
168
|
-
),
|
|
169
|
-
...t.comboboxTriggerBinding.value
|
|
170
|
-
})), f = (r, b = o.value) => _(Ke, { icon: r, size: b }), ae = () => {
|
|
171
|
-
var m, v;
|
|
172
|
-
let r;
|
|
173
|
-
const b = (v = (m = t.slots).triggerTrailing) == null ? void 0 : v.call(
|
|
174
|
-
m,
|
|
175
|
-
d.value
|
|
176
|
-
);
|
|
177
|
-
if (!$(b)) r = b;
|
|
178
|
-
else if (h.value && h.value) {
|
|
179
|
-
const V = h.value === !0 ? "tabler:chevron-down" : h.value;
|
|
180
|
-
r = f(V);
|
|
181
|
-
}
|
|
182
|
-
if (r)
|
|
183
|
-
return _(
|
|
184
|
-
"div",
|
|
185
|
-
{ class: U(S(n, "trailing"), t.props.triggerTrailingCls) },
|
|
186
|
-
r
|
|
187
|
-
);
|
|
188
|
-
}, Z = (r) => {
|
|
189
|
-
var m, v;
|
|
190
|
-
const b = t.getOptionByValue(r) ?? { _key: r };
|
|
191
|
-
return _(ct, {
|
|
192
|
-
size: t.getTagSize.value,
|
|
193
|
-
...b ? ((v = (m = t.props).getTagProps) == null ? void 0 : v.call(m, b)) ?? {} : {}
|
|
194
|
-
});
|
|
195
|
-
}, ce = (r) => {
|
|
196
|
-
var m, v;
|
|
197
|
-
const b = t.getOptionByValue(r) ?? { _key: r };
|
|
198
|
-
return _(pt, {
|
|
199
|
-
...b ? ((v = (m = t.props).getTagProps) == null ? void 0 : v.call(m, b)) ?? {} : {},
|
|
200
|
-
size: t.getTagSize.value
|
|
201
|
-
});
|
|
202
|
-
}, Ce = () => {
|
|
203
|
-
var r, b;
|
|
204
|
-
if (!t.props.multiple && !J(t.model.value) && t.model.value) {
|
|
205
|
-
let m;
|
|
206
|
-
et(t.model.value) && !F(t.model.value) && (m = t.model.value);
|
|
207
|
-
const v = m ? (b = (r = t.slots).optionLeading) == null ? void 0 : b.call(
|
|
208
|
-
r,
|
|
209
|
-
co(
|
|
210
|
-
t.props.size,
|
|
211
|
-
g(m)
|
|
212
|
-
)
|
|
213
|
-
) : null, V = !$(v);
|
|
214
|
-
if (V || t.props.tagRenderMode && ["avatar", "go"].includes(t.props.tagRenderMode) || L.value || t.props.leadingIcon) {
|
|
215
|
-
let M;
|
|
216
|
-
if (V ? M = v : t.props.tagRenderMode === "avatar" ? M = Z(t.model.value) : t.props.tagRenderMode === "go" ? M = ce(t.model.value) : L.value ? M = f(L.value) : t.props.leadingIcon && (M = f(t.props.leadingIcon)), !$(M))
|
|
217
|
-
return _(
|
|
218
|
-
"div",
|
|
219
|
-
{
|
|
220
|
-
class: U(S(n, "leading"), t.props.triggerLeadingCls)
|
|
221
|
-
},
|
|
222
|
-
M
|
|
223
|
-
);
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
}, pe = () => {
|
|
227
|
-
var de, ne;
|
|
228
|
-
const r = (ne = (de = t.slots).trigger) == null ? void 0 : ne.call(de, d.value);
|
|
229
|
-
if (!$(r))
|
|
230
|
-
return _(Ht, he(Q.value, ["class"]), () => r);
|
|
231
|
-
const m = () => {
|
|
232
|
-
const T = [], re = [
|
|
233
|
-
S(n, "tags"),
|
|
234
|
-
t.props.triggerContentCls,
|
|
235
|
-
t.props.triggerContentValueCls
|
|
236
|
-
], D = (() => {
|
|
237
|
-
if (t.props.multiple && J(t.model.value)) {
|
|
238
|
-
if (t.props.tagRenderMode === "avatar")
|
|
239
|
-
return _(
|
|
240
|
-
lo,
|
|
241
|
-
{
|
|
242
|
-
maxCount: t.props.maxCount,
|
|
243
|
-
size: t.getTagSize.value,
|
|
244
|
-
closeable: !t.getDisabled.value,
|
|
245
|
-
noPopover: !0,
|
|
246
|
-
noWrap: !t.props.wrapped,
|
|
247
|
-
class: re
|
|
248
|
-
},
|
|
249
|
-
() => t.model.value.map(Z)
|
|
250
|
-
);
|
|
251
|
-
if (t.props.tagRenderMode === "go")
|
|
252
|
-
return _(
|
|
253
|
-
ao,
|
|
254
|
-
{
|
|
255
|
-
maxCount: t.props.maxCount,
|
|
256
|
-
size: t.getTagSize.value,
|
|
257
|
-
closeable: !t.getDisabled.value,
|
|
258
|
-
noPopover: !0,
|
|
259
|
-
noWrap: !t.props.wrapped,
|
|
260
|
-
class: re
|
|
261
|
-
},
|
|
262
|
-
() => t.model.value.map(ce)
|
|
263
|
-
);
|
|
264
|
-
if (t.props.tagRenderMode === "chip")
|
|
265
|
-
return _(
|
|
266
|
-
no,
|
|
267
|
-
{
|
|
268
|
-
maxCount: t.props.maxCount,
|
|
269
|
-
size: t.getTagSize.value,
|
|
270
|
-
color: "primary",
|
|
271
|
-
closeable: !t.getDisabled.value,
|
|
272
|
-
noPopover: !0,
|
|
273
|
-
noWrap: !t.props.wrapped,
|
|
274
|
-
class: re,
|
|
275
|
-
onClose: c
|
|
276
|
-
},
|
|
277
|
-
() => t.model.value.map((se) => {
|
|
278
|
-
var ge, fe;
|
|
279
|
-
const we = () => t.getLabelByValue(se), ke = ({ size: Te }) => {
|
|
280
|
-
const R = G(t.getOptionByValue(se)) ?? t.props.leadingIcon;
|
|
281
|
-
return R ? f(R, Te) : null;
|
|
282
|
-
}, Se = t.getOptionByValue(se);
|
|
283
|
-
return _(
|
|
284
|
-
ro,
|
|
285
|
-
{
|
|
286
|
-
...Se ? ((fe = (ge = t.props).getTagProps) == null ? void 0 : fe.call(ge, Se)) ?? {} : {},
|
|
287
|
-
value: se,
|
|
288
|
-
class: U(S(n, "tag"), t.props.tagCls),
|
|
289
|
-
closeIconCls: S(n, "tag__close")
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
text: we,
|
|
293
|
-
leading: ke
|
|
294
|
-
}
|
|
295
|
-
);
|
|
296
|
-
})
|
|
297
|
-
);
|
|
298
|
-
}
|
|
299
|
-
})();
|
|
300
|
-
if (D && T.push(D), t.props.headerSearch ? (!t.props.noValueOnPlaceholder || t.props.placeholder) && T.push(
|
|
301
|
-
_(
|
|
302
|
-
"div",
|
|
303
|
-
{
|
|
304
|
-
class: U(S(n, "content__value"), {
|
|
305
|
-
[dt]: t.valuePlaceholder.value
|
|
306
|
-
})
|
|
307
|
-
},
|
|
308
|
-
t.placeholder.value ?? t.props.placeholder
|
|
309
|
-
)
|
|
310
|
-
) : T.push(
|
|
311
|
-
_(ft, {
|
|
312
|
-
noValueOnPlaceholder: t.props.noValueOnPlaceholder,
|
|
313
|
-
searchIcon: !1,
|
|
314
|
-
bordered: !1,
|
|
315
|
-
simple: !0
|
|
316
|
-
})
|
|
317
|
-
), !$(T) || !t.props.contentFit || t.props.trailingIcon)
|
|
318
|
-
return _("div", { class: S(n, "content") }, T);
|
|
319
|
-
}, v = [], V = Ce();
|
|
320
|
-
$(V) || v.push(V), v.push(m());
|
|
321
|
-
const M = ae();
|
|
322
|
-
return $(M) || v.push(M), _("button", Q.value, v);
|
|
323
|
-
};
|
|
324
|
-
return (r, b) => (I(), K(pe));
|
|
325
|
-
}
|
|
326
|
-
}), st = /* @__PURE__ */ _e({
|
|
327
|
-
...be("ComboboxOption"),
|
|
328
|
-
__name: "ComboboxOption",
|
|
329
|
-
props: {
|
|
330
|
-
option: {}
|
|
331
|
-
},
|
|
332
|
-
setup(Y) {
|
|
333
|
-
const t = Y, c = Fe(), o = C(() => c.isOptionSelected(t.option._key)), k = (h) => {
|
|
334
|
-
var n, N, Q, f, ae, Z;
|
|
335
|
-
const d = [];
|
|
336
|
-
!c.props.tree && c.props.multiple && c.props.checkbox && !t.option._noCheckbox && d.push(
|
|
337
|
-
_(ho, {
|
|
338
|
-
unExtendParent: !0,
|
|
339
|
-
modelValue: o.value,
|
|
340
|
-
size: h.checkboxSize,
|
|
341
|
-
disabled: t.option._disabled
|
|
342
|
-
})
|
|
343
|
-
);
|
|
344
|
-
const g = (N = (n = c.slots).optionLeading) == null ? void 0 : N.call(n, { ...h, option: t.option });
|
|
345
|
-
return $(g) ? c.props.tagRenderMode === "avatar" && c.props.showTriggerTagOnOption ? d.push(
|
|
346
|
-
_(ct, {
|
|
347
|
-
size: h.avatarSize,
|
|
348
|
-
...((f = (Q = c.props).getTagProps) == null ? void 0 : f.call(Q, t.option)) ?? {}
|
|
349
|
-
})
|
|
350
|
-
) : c.props.tagRenderMode === "go" && c.props.showTriggerTagOnOption ? d.push(
|
|
351
|
-
_(pt, {
|
|
352
|
-
size: h.iconSize,
|
|
353
|
-
...((Z = (ae = c.props).getTagProps) == null ? void 0 : Z.call(ae, t.option)) ?? {}
|
|
354
|
-
})
|
|
355
|
-
) : t.option._icon && d.push(_(Ke, { icon: t.option._icon, size: c.getIconSize.value })) : d.push(g), $(d) ? null : d;
|
|
356
|
-
}, G = $t(), L = () => {
|
|
357
|
-
const h = c.props.tree ? void 0 : t.option._description, d = (Gt(c.props.getMenuItemProps) ? c.props.getMenuItemProps(t.option) : c.props.getMenuItemProps) ?? {};
|
|
358
|
-
return _(
|
|
359
|
-
po,
|
|
360
|
-
{
|
|
361
|
-
unExtendParent: !0,
|
|
362
|
-
class: S(w, "option"),
|
|
363
|
-
unFocusable: !0,
|
|
364
|
-
staticStyle: c.props.tree,
|
|
365
|
-
description: h,
|
|
366
|
-
title: t.option._label,
|
|
367
|
-
key: t.option._key,
|
|
368
|
-
selected: o.value,
|
|
369
|
-
leadingCenter: !!h,
|
|
370
|
-
size: c.getSize.value,
|
|
371
|
-
disabled: c.props.tree ? !1 : t.option._disabled,
|
|
372
|
-
onClick: () => c.selectOption(t.option),
|
|
373
|
-
slotProps: t,
|
|
374
|
-
...d,
|
|
375
|
-
...G
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
leading: k,
|
|
379
|
-
trailing: c.slots.optionTrailing,
|
|
380
|
-
title: c.slots.optionTitle,
|
|
381
|
-
description: c.slots.optionDescription
|
|
382
|
-
}
|
|
383
|
-
);
|
|
384
|
-
};
|
|
385
|
-
return (h, d) => (I(), K(L));
|
|
386
|
-
}
|
|
387
|
-
}), Po = /* @__PURE__ */ _e({
|
|
388
|
-
...be("ComboboxLabel"),
|
|
389
|
-
__name: "ComboboxLabel",
|
|
390
|
-
props: {
|
|
391
|
-
label: {}
|
|
392
|
-
},
|
|
393
|
-
setup(Y) {
|
|
394
|
-
return (t, c) => (I(), ye("div", {
|
|
395
|
-
class: Ie(u(S)(u(w), "label"))
|
|
396
|
-
}, Kt(t.label), 3));
|
|
397
|
-
}
|
|
398
|
-
}), Zo = /* @__PURE__ */ _e({
|
|
399
|
-
...be("Combobox"),
|
|
400
|
-
__name: "Combobox",
|
|
401
|
-
props: {
|
|
402
|
-
modelValue: {},
|
|
403
|
-
defaultValue: {},
|
|
404
|
-
multiple: { type: Boolean, default: void 0 },
|
|
405
|
-
disabled: { type: Boolean, default: void 0 },
|
|
406
|
-
highlightOnHover: { type: Boolean },
|
|
407
|
-
resetSearchTermOnBlur: { type: Boolean, default: !0 },
|
|
408
|
-
resetSearchTermOnSelect: { type: Boolean, default: !0 },
|
|
409
|
-
size: { default: "md" },
|
|
410
|
-
status: {},
|
|
411
|
-
noValueOnPlaceholder: { type: Boolean },
|
|
412
|
-
zIndex: {},
|
|
413
|
-
checkbox: { type: Boolean, default: !0 },
|
|
414
|
-
tagRenderMode: { default: "chip" },
|
|
415
|
-
getTagProps: {},
|
|
416
|
-
tree: { type: Boolean },
|
|
417
|
-
treeProps: {},
|
|
418
|
-
contentFit: { type: Boolean },
|
|
419
|
-
wrapped: { type: Boolean },
|
|
420
|
-
sortSelectedItems: { type: Boolean },
|
|
421
|
-
noTrailing: { type: Boolean },
|
|
422
|
-
leadingIcon: {},
|
|
423
|
-
trailingIcon: { type: [String, Boolean], default: "tabler:chevron-down" },
|
|
424
|
-
selectedItemIconAsTrailingIcon: { type: Boolean, default: !0 },
|
|
425
|
-
maxCount: {},
|
|
426
|
-
to: {},
|
|
427
|
-
placeholder: {},
|
|
428
|
-
indicatorIcon: { default: "tabler:check" },
|
|
429
|
-
options: {},
|
|
430
|
-
getDisabled: {},
|
|
431
|
-
getLabel: {},
|
|
432
|
-
getDescription: {},
|
|
433
|
-
getValue: {},
|
|
434
|
-
getNoCheckbox: {},
|
|
435
|
-
getSingle: {},
|
|
436
|
-
getClear: {},
|
|
437
|
-
getOptions: {},
|
|
438
|
-
getIcon: {},
|
|
439
|
-
loading: { type: Boolean },
|
|
440
|
-
skeletonProps: {},
|
|
441
|
-
loadingRowCount: { default: 10 },
|
|
442
|
-
lazyLoading: { type: Boolean },
|
|
443
|
-
bordered: { type: Boolean, default: !0 },
|
|
444
|
-
clearOnChangeMultiple: { type: Boolean, default: !0 },
|
|
445
|
-
triggerCls: {},
|
|
446
|
-
triggerLeadingCls: {},
|
|
447
|
-
triggerContentCls: {},
|
|
448
|
-
triggerContentPlaceholderCls: {},
|
|
449
|
-
triggerContentValueCls: {},
|
|
450
|
-
triggerTrailingCls: {},
|
|
451
|
-
itemLeadingCls: {},
|
|
452
|
-
optionCls: {},
|
|
453
|
-
tagCls: {},
|
|
454
|
-
popupCls: {},
|
|
455
|
-
labelCls: {},
|
|
456
|
-
optionsCls: {},
|
|
457
|
-
optionTextCls: {},
|
|
458
|
-
optionContentCls: {},
|
|
459
|
-
emptyCls: {},
|
|
460
|
-
skeletonCls: {},
|
|
461
|
-
scrollContainerProps: {},
|
|
462
|
-
emptyProps: {},
|
|
463
|
-
samePopupWidth: { type: Boolean, default: !0 },
|
|
464
|
-
popupHeight: { default: 384 },
|
|
465
|
-
popupWidth: {},
|
|
466
|
-
minWidth: {},
|
|
467
|
-
search: {},
|
|
468
|
-
filterOptions: {},
|
|
469
|
-
expandedKeys: {},
|
|
470
|
-
headerSearch: { type: Boolean },
|
|
471
|
-
headerSearchInputProps: {},
|
|
472
|
-
virtual: { type: Boolean },
|
|
473
|
-
showTriggerTagOnOption: { type: Boolean },
|
|
474
|
-
disableOutsidePointerEvents: { type: Boolean, default: !0 },
|
|
475
|
-
getMenuItemProps: {},
|
|
476
|
-
placement: { default: "bottom-start" },
|
|
477
|
-
containerProps: {},
|
|
478
|
-
reversePlacementOnDir: {},
|
|
479
|
-
open: { type: Boolean, default: void 0 },
|
|
480
|
-
defaultOpen: { type: Boolean, default: void 0 },
|
|
481
|
-
sideOffset: { default: 4 },
|
|
482
|
-
alignOffset: {},
|
|
483
|
-
reference: {},
|
|
484
|
-
prioritizePosition: { type: Boolean, default: !1 },
|
|
485
|
-
avoidCollisions: { type: Boolean, default: void 0 },
|
|
486
|
-
dir: {},
|
|
487
|
-
noTrigger: { type: Boolean }
|
|
488
|
-
},
|
|
489
|
-
emits: ["update:modelValue", "update:expandedKeys", "keydownEnter", "keydownEscape", "update:search", "fetch", "search", "select", "update:open", "escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
490
|
-
setup(Y, { expose: t, emit: c }) {
|
|
491
|
-
const o = Y, k = c, G = () => {
|
|
492
|
-
var e, l;
|
|
493
|
-
o.tree && (((e = o.filterOptions) == null ? void 0 : e.expandParent) === "collapse" ? Q([]) : ((l = o.filterOptions) == null ? void 0 : l.expandParent) === "expand" && Q(
|
|
494
|
-
T.value.filter((a) => a._hasChildren).map((a) => a._key)
|
|
495
|
-
));
|
|
496
|
-
}, L = tt((e) => {
|
|
497
|
-
k("search", e), G();
|
|
498
|
-
}, 500), h = Oe(o, "search", k, {
|
|
499
|
-
passive: o.search === void 0,
|
|
500
|
-
onChange: L
|
|
501
|
-
}), d = uo(h, 500), g = Oe(o, "open", k, {
|
|
502
|
-
defaultValue: o.defaultOpen,
|
|
503
|
-
passive: o.open === void 0,
|
|
504
|
-
onChange(e) {
|
|
505
|
-
!e && o.resetSearchTermOnBlur && (h.value = void 0);
|
|
506
|
-
}
|
|
507
|
-
}), n = Oe(
|
|
508
|
-
o,
|
|
509
|
-
"modelValue",
|
|
510
|
-
k,
|
|
511
|
-
{
|
|
512
|
-
passive: o.modelValue === void 0,
|
|
513
|
-
onChange: () => {
|
|
514
|
-
var e, l;
|
|
515
|
-
g.value && !o.multiple && (g.value = !1), R != null && R.value && o.sortSelectedItems && ((l = (e = R == null ? void 0 : R.value) == null ? void 0 : e.measure) == null || l.call(e));
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
), N = Oe(
|
|
519
|
-
o,
|
|
520
|
-
"expandedKeys",
|
|
521
|
-
k,
|
|
522
|
-
{
|
|
523
|
-
passive: o.expandedKeys === void 0
|
|
524
|
-
}
|
|
525
|
-
), Q = tt(
|
|
526
|
-
(e) => {
|
|
527
|
-
N.value = e;
|
|
528
|
-
},
|
|
529
|
-
500,
|
|
530
|
-
{ edges: ["leading"] }
|
|
531
|
-
), f = it(), ae = Ut(k), Z = C(() => ({
|
|
532
|
-
...he(ae, ["update:modelValue", "update:search", "select"]),
|
|
533
|
-
...jt(o, [
|
|
534
|
-
"placement",
|
|
535
|
-
"reversePlacementOnDir",
|
|
536
|
-
"zIndex",
|
|
537
|
-
"to",
|
|
538
|
-
"sideOffset",
|
|
539
|
-
"alignOffset",
|
|
540
|
-
"reference",
|
|
541
|
-
"prioritizePosition",
|
|
542
|
-
"avoidCollisions",
|
|
543
|
-
"dir",
|
|
544
|
-
"size",
|
|
545
|
-
"noTrigger"
|
|
546
|
-
])
|
|
547
|
-
// modal: true,
|
|
548
|
-
})), ce = ve();
|
|
549
|
-
qt({ target: ce });
|
|
550
|
-
const Ce = j({
|
|
551
|
-
key: "value",
|
|
552
|
-
getter: o.getValue
|
|
553
|
-
}), pe = {
|
|
554
|
-
getDisabled: j({
|
|
555
|
-
key: "disabled",
|
|
556
|
-
getter: o.getDisabled,
|
|
557
|
-
noReturnOption: !0,
|
|
558
|
-
defaultValue: !1
|
|
559
|
-
}),
|
|
560
|
-
getDescription: j({
|
|
561
|
-
key: "description",
|
|
562
|
-
getter: o.getDescription,
|
|
563
|
-
noReturnOption: !0
|
|
564
|
-
}),
|
|
565
|
-
getValue: Ce,
|
|
566
|
-
getLabel: j({
|
|
567
|
-
key: "label",
|
|
568
|
-
getter: o.getLabel,
|
|
569
|
-
noReturnOption: !0,
|
|
570
|
-
defaultValue: Ce
|
|
571
|
-
}),
|
|
572
|
-
getNoCheckbox: j({
|
|
573
|
-
key: "noCheckbox",
|
|
574
|
-
getter: o.getNoCheckbox,
|
|
575
|
-
noReturnOption: !0,
|
|
576
|
-
defaultValue: !1
|
|
577
|
-
}),
|
|
578
|
-
getSingle: j({
|
|
579
|
-
key: "single",
|
|
580
|
-
getter: o.getSingle,
|
|
581
|
-
noReturnOption: !0,
|
|
582
|
-
defaultValue: !1
|
|
583
|
-
}),
|
|
584
|
-
getClear: j({
|
|
585
|
-
key: "clear",
|
|
586
|
-
getter: o.getClear,
|
|
587
|
-
noReturnOption: !0,
|
|
588
|
-
defaultValue: !1
|
|
589
|
-
}),
|
|
590
|
-
getOptions: j({
|
|
591
|
-
key: "options",
|
|
592
|
-
getter: o.getOptions,
|
|
593
|
-
noReturnOption: !0
|
|
594
|
-
}),
|
|
595
|
-
getIcon: j({
|
|
596
|
-
key: "icon",
|
|
597
|
-
getter: o.getIcon,
|
|
598
|
-
noReturnOption: !0
|
|
599
|
-
})
|
|
600
|
-
}, r = (e, l) => {
|
|
601
|
-
var i;
|
|
602
|
-
const a = `get${l[0].toUpperCase() + l.slice(1)}`;
|
|
603
|
-
return (i = pe[a]) == null ? void 0 : i.call(pe, e);
|
|
604
|
-
}, b = (e, l, a) => !!(!o.tree && !(l != null && l.length) && (a != null && a.length)), m = C(
|
|
605
|
-
() => mo({
|
|
606
|
-
getValue: (e, l, a) => {
|
|
607
|
-
const i = r(e, "value");
|
|
608
|
-
return F(i) && b(e, l, a) ? lt(rt) : i;
|
|
609
|
-
},
|
|
610
|
-
getDisabled: (e) => r(e, "disabled"),
|
|
611
|
-
arr: o.options ?? [],
|
|
612
|
-
getChildren: (e, l) => {
|
|
613
|
-
if (!(l != null && l.length && !o.tree))
|
|
614
|
-
return r(e, "options");
|
|
615
|
-
},
|
|
616
|
-
getExtra: (e) => {
|
|
617
|
-
if (e) {
|
|
618
|
-
let l = r(e, "label");
|
|
619
|
-
return F(l) || (l = String(l)), {
|
|
620
|
-
_description: r(e, "description"),
|
|
621
|
-
_label: l,
|
|
622
|
-
_title: o.tree ? l : void 0,
|
|
623
|
-
_noCheckbox: r(e, "noCheckbox"),
|
|
624
|
-
_single: r(e, "single"),
|
|
625
|
-
_clear: r(e, "clear"),
|
|
626
|
-
_icon: r(e, "icon")
|
|
627
|
-
};
|
|
628
|
-
}
|
|
629
|
-
},
|
|
630
|
-
allowNoValidKey: b
|
|
631
|
-
})
|
|
632
|
-
), v = (e, l = !1) => e ? m.value.filter((a) => {
|
|
633
|
-
var i;
|
|
634
|
-
if (l) {
|
|
635
|
-
const x = ot(a._parentKeys ?? []);
|
|
636
|
-
return x && x === e;
|
|
637
|
-
}
|
|
638
|
-
return (i = a._parentKeys) == null ? void 0 : i.includes(e);
|
|
639
|
-
}) : [], V = (e) => {
|
|
640
|
-
var l;
|
|
641
|
-
if ((l = m.value) != null && l.length && !F(e))
|
|
642
|
-
return m.value.find((a) => a._key === e);
|
|
643
|
-
}, M = (e) => {
|
|
644
|
-
const l = V(e);
|
|
645
|
-
return l && (l._label || l._key) || e;
|
|
646
|
-
}, de = (e) => {
|
|
647
|
-
const l = V(e);
|
|
648
|
-
return l ? l._single ?? !1 : !1;
|
|
649
|
-
}, ne = (e) => e === void 0 ? !1 : Array.isArray(n.value) ? !!(e && n.value.includes(e)) : n.value === e, T = C(() => {
|
|
650
|
-
var i, x;
|
|
651
|
-
let e = [];
|
|
652
|
-
const l = /* @__PURE__ */ new Set(), a = (s) => {
|
|
653
|
-
s != null && s._key && !l.has(s._key) && (e.push(le(s)), l.add(s._key));
|
|
654
|
-
};
|
|
655
|
-
if (d.value ? (m.value.forEach((s) => {
|
|
656
|
-
var y, E;
|
|
657
|
-
if (s._label && s._label.toLowerCase().includes(d.value.toLowerCase()) && !l.has(s._key)) {
|
|
658
|
-
if (a(s), s._hasChildren && v(s._key).forEach(a), (y = o.filterOptions) != null && y.strictNode)
|
|
659
|
-
s._parentKeys && s._parentKeys.forEach((p) => {
|
|
660
|
-
if (!l.has(p)) {
|
|
661
|
-
const te = V(p);
|
|
662
|
-
a(te);
|
|
663
|
-
}
|
|
664
|
-
});
|
|
665
|
-
else if ((E = s._parentKeys) != null && E.length) {
|
|
666
|
-
const p = nt(s._parentKeys);
|
|
667
|
-
if (!F(p)) {
|
|
668
|
-
if (!l.has(p)) {
|
|
669
|
-
const oe = V(p);
|
|
670
|
-
a(oe);
|
|
671
|
-
}
|
|
672
|
-
v(p).forEach(a);
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
}), e = e.sort(
|
|
677
|
-
(s, z) => m.value.findIndex((y) => y._key === s._key) - m.value.findIndex((y) => y._key === z._key)
|
|
678
|
-
)) : e = le(m.value), o.sortSelectedItems && !o.tree && !F(n.value)) {
|
|
679
|
-
let s = le(e);
|
|
680
|
-
const z = s.filter((B) => ne(B._key)), y = Symbol("root"), E = Symbol("rootGroup"), p = {}, te = (B, A, O = 1) => {
|
|
681
|
-
const H = s.splice(B, O);
|
|
682
|
-
s.splice(A, 0, ...H);
|
|
683
|
-
}, oe = (B) => B ? s.findIndex((A) => A._key === B) : -1, Pe = (B) => {
|
|
684
|
-
const A = p[B], O = oe(A == null ? void 0 : A.key);
|
|
685
|
-
return A != null && A.length ? O + A.length + 1 : O + 1;
|
|
686
|
-
};
|
|
687
|
-
z.forEach((B) => {
|
|
688
|
-
var A;
|
|
689
|
-
if ((A = B._parentKeys) != null && A.length) {
|
|
690
|
-
const O = nt(B._parentKeys);
|
|
691
|
-
let H = oe(O);
|
|
692
|
-
const Xe = Math.max(
|
|
693
|
-
Pe(y),
|
|
694
|
-
Pe(E)
|
|
695
|
-
);
|
|
696
|
-
if (H > Xe) {
|
|
697
|
-
const Be = v(O).length;
|
|
698
|
-
te(H, Xe, Be + 1);
|
|
699
|
-
}
|
|
700
|
-
if (p[E] = {
|
|
701
|
-
key: O,
|
|
702
|
-
length: v(O).length
|
|
703
|
-
}, H = oe(O), O && H > -1) {
|
|
704
|
-
const Be = oe(B._key);
|
|
705
|
-
if (p[O] === void 0)
|
|
706
|
-
te(Be, H + 1);
|
|
707
|
-
else {
|
|
708
|
-
const Dt = Pe(O);
|
|
709
|
-
te(Be, Dt);
|
|
710
|
-
}
|
|
711
|
-
p[O] = {
|
|
712
|
-
length: void 0,
|
|
713
|
-
key: B._key
|
|
714
|
-
};
|
|
715
|
-
}
|
|
716
|
-
} else {
|
|
717
|
-
const O = oe(B._key), H = Pe(y);
|
|
718
|
-
O > H && te(O, H), p[y] = {
|
|
719
|
-
key: B._key,
|
|
720
|
-
length: B._hasChildren ? v(B._key).length : void 0
|
|
721
|
-
};
|
|
722
|
-
}
|
|
723
|
-
s = le(s);
|
|
724
|
-
}), e = s;
|
|
725
|
-
}
|
|
726
|
-
if (!o.tree) {
|
|
727
|
-
const s = le(e);
|
|
728
|
-
for (let z = 0; z < s.length - 1; z++) {
|
|
729
|
-
const y = s[z], E = s[z + 1];
|
|
730
|
-
!E._divider && (E._hasChildren || (i = y._parentKeys) != null && i.length && !((x = E._parentKeys) != null && x.length)) && (s.splice(z + 1, 0, { _key: lt(rt), _divider: !0 }), z++);
|
|
731
|
-
}
|
|
732
|
-
e = s;
|
|
733
|
-
}
|
|
734
|
-
return e;
|
|
735
|
-
});
|
|
736
|
-
G();
|
|
737
|
-
const { getDisabled: re, getStatus: Ne, getSize: D } = Jt(), se = C(() => {
|
|
738
|
-
switch (D.value) {
|
|
739
|
-
case "sm":
|
|
740
|
-
return "xsm";
|
|
741
|
-
case "lg":
|
|
742
|
-
return "md";
|
|
743
|
-
case "md":
|
|
744
|
-
default:
|
|
745
|
-
return "sm";
|
|
746
|
-
}
|
|
747
|
-
}), we = C(() => {
|
|
748
|
-
switch (D.value) {
|
|
749
|
-
case "sm":
|
|
750
|
-
return "2xsm";
|
|
751
|
-
case "lg":
|
|
752
|
-
return "sm";
|
|
753
|
-
case "md":
|
|
754
|
-
default:
|
|
755
|
-
return "xsm";
|
|
756
|
-
}
|
|
757
|
-
}), ke = ve(), Se = {
|
|
758
|
-
sm: 4,
|
|
759
|
-
md: 6,
|
|
760
|
-
lg: 8
|
|
761
|
-
}, ge = {
|
|
762
|
-
sm: 14,
|
|
763
|
-
md: 16
|
|
764
|
-
}, fe = {
|
|
765
|
-
sm: 32,
|
|
766
|
-
md: 50,
|
|
767
|
-
lg: 54
|
|
768
|
-
}, Te = C(() => ({
|
|
769
|
-
get count() {
|
|
770
|
-
return T.value.length;
|
|
771
|
-
},
|
|
772
|
-
getScrollElement: () => {
|
|
773
|
-
var e;
|
|
774
|
-
return (e = ke.value) == null ? void 0 : e.container.viewportElement;
|
|
775
|
-
},
|
|
776
|
-
estimateSize: (e) => {
|
|
777
|
-
const l = T.value[e];
|
|
778
|
-
if (!o.tree && l) {
|
|
779
|
-
if (l._divider)
|
|
780
|
-
return 1;
|
|
781
|
-
if (l._label && l._hasChildren)
|
|
782
|
-
return 8 + (ge[D.value] ?? ge.md);
|
|
783
|
-
if (l._description)
|
|
784
|
-
return fe[D.value] ?? fe.md;
|
|
785
|
-
}
|
|
786
|
-
return at[D.value] ?? at.md;
|
|
787
|
-
},
|
|
788
|
-
overscan: 5,
|
|
789
|
-
get gap() {
|
|
790
|
-
return Se[D.value] ?? 0;
|
|
791
|
-
}
|
|
792
|
-
}));
|
|
793
|
-
let R, ee;
|
|
794
|
-
if (o.virtual) {
|
|
795
|
-
const { virtualizer: e, ...l } = Qt(
|
|
796
|
-
Te
|
|
797
|
-
);
|
|
798
|
-
R = e, ee = l;
|
|
799
|
-
}
|
|
800
|
-
const mt = C(
|
|
801
|
-
() => {
|
|
802
|
-
var e;
|
|
803
|
-
return o.virtual ? (((e = R == null ? void 0 : R.value) == null ? void 0 : e.getVirtualItems()) ?? []).map((l) => T.value[l.index]) : T.value;
|
|
804
|
-
}
|
|
805
|
-
), vt = C(() => (ee == null ? void 0 : ee.containerStyles.value) ?? {}), {
|
|
806
|
-
inputBindings: yt,
|
|
807
|
-
rootBindings: ht,
|
|
808
|
-
focused: _t
|
|
809
|
-
} = Xt({
|
|
810
|
-
getDisabled: () => re.value
|
|
811
|
-
}), ie = ve(), ze = () => {
|
|
812
|
-
var e;
|
|
813
|
-
if (g.value && ie.value && document.activeElement !== ((e = ie.value) == null ? void 0 : e.input)) {
|
|
814
|
-
ie.value.input.style.pointerEvents = "auto";
|
|
815
|
-
const l = setTimeout(() => {
|
|
816
|
-
var a, i;
|
|
817
|
-
(i = (a = ie.value) == null ? void 0 : a.focus) == null || i.call(a), clearTimeout(l);
|
|
818
|
-
}, 100);
|
|
819
|
-
ie.value.input.style.pointerEvents = "";
|
|
820
|
-
}
|
|
821
|
-
}, We = C(
|
|
822
|
-
() => !o.noValueOnPlaceholder && (J(n.value) ? n.value.length === 1 && !F(n.value[0]) : !F(n.value))
|
|
823
|
-
), bt = C(() => {
|
|
824
|
-
if (We.value) {
|
|
825
|
-
if (o.multiple && J(n.value))
|
|
826
|
-
return M(ot(n.value));
|
|
827
|
-
if (!o.multiple && !J(n.value))
|
|
828
|
-
return M(n.value);
|
|
829
|
-
}
|
|
830
|
-
}), { CollectionSlot: Ct, CollectionItem: He, itemMap: kt, getItems: Ue } = Yt({
|
|
831
|
-
isProvider: !0,
|
|
832
|
-
key: w
|
|
833
|
-
}), Ge = () => n.value ? Array.isArray(n.value) ? n.value : [n.value] : [], P = ve(), Ve = (e) => {
|
|
834
|
-
P.value = e;
|
|
835
|
-
}, je = (e) => ({
|
|
836
|
-
"data-disabled": e._disabled ? "" : void 0,
|
|
837
|
-
"data-highlighted": P.value === e._key ? "" : void 0
|
|
838
|
-
}), me = ve(), qe = (e, l) => {
|
|
839
|
-
var a, i;
|
|
840
|
-
if (l && ((a = me.value) != null && a.onSelect) && o.tree && ((i = me.value) == null || i.onSelect(e, !ne(e == null ? void 0 : e._key))), !(o.tree || !e || !e._key || e._disabled))
|
|
841
|
-
if (o.multiple)
|
|
842
|
-
if (e._clear)
|
|
843
|
-
n.value = [], k("select", void 0, !1);
|
|
844
|
-
else if (e._single)
|
|
845
|
-
n.value = [e._key], k("select", e._key, !0, e);
|
|
846
|
-
else {
|
|
847
|
-
let x = J(n.value) ? n.value : [];
|
|
848
|
-
const s = x.includes(e._key);
|
|
849
|
-
x.length === 1 && de(x[0]) && e._key !== x[0] && (x = []), s ? (n.value = x.filter((z) => z !== e._key), k("select", e._key, !0, e)) : (n.value = [...x, e._key], k("select", e._key, !1, e));
|
|
850
|
-
}
|
|
851
|
-
else e._clear ? (n.value = void 0, k("select", void 0, !1)) : (n.value = e._key, k("select", e._key, !0, e));
|
|
852
|
-
}, { getDir: St } = Co(), xe = St(), Je = {
|
|
853
|
-
props: o,
|
|
854
|
-
emit: k,
|
|
855
|
-
onKeyDown: (e) => {
|
|
856
|
-
var l, a, i, x, s, z;
|
|
857
|
-
if (o.headerSearch || e.stopPropagation(), e.key === "Backspace" && o.multiple && J(n.value) && F(h.value))
|
|
858
|
-
n.value = n.value.slice(0, -1);
|
|
859
|
-
else if (!g.value)
|
|
860
|
-
(e.key === "ArrowDown" || e.key === "Enter") && (g.value = !0);
|
|
861
|
-
else if (g.value) {
|
|
862
|
-
const y = Ue(o.tree);
|
|
863
|
-
if (e.key === "Escape") g.value = !1;
|
|
864
|
-
else if (e.key === "Tab" && !o.headerSearch) g.value = !1;
|
|
865
|
-
else if (["ArrowDown", "ArrowUp"].includes(e.key)) {
|
|
866
|
-
if (y.length) {
|
|
867
|
-
const E = y.findIndex(
|
|
868
|
-
(p) => P.value && p.value && p.value === P.value
|
|
869
|
-
);
|
|
870
|
-
if (e.key === "ArrowDown") {
|
|
871
|
-
const p = y[E + 1];
|
|
872
|
-
P.value = (p == null ? void 0 : p.value) ?? P.value ?? y[0].value;
|
|
873
|
-
} else if (e.key === "ArrowUp") {
|
|
874
|
-
const p = y[E - 1];
|
|
875
|
-
P.value = (p == null ? void 0 : p.value) ?? y[0].value;
|
|
876
|
-
}
|
|
877
|
-
(a = (l = y.find(
|
|
878
|
-
(p) => P.value && p.value && p.value === P.value
|
|
879
|
-
)) == null ? void 0 : l.ref) == null || a.scrollIntoView();
|
|
880
|
-
}
|
|
881
|
-
} else if (["ArrowLeft", "ArrowRight"].includes(e.key)) {
|
|
882
|
-
const E = V(P.value);
|
|
883
|
-
y.length && me.value && o.tree && P.value && E && ((i = N.value) != null && i.includes(P.value) && (xe.value === "ltr" && e.key === "ArrowLeft" || xe.value === "rtl" && e.key === "ArrowRight") || !((x = N.value) != null && x.includes(P.value)) && (xe.value === "ltr" && e.key === "ArrowRight" || xe.value === "rtl" && e.key === "ArrowLeft")) && ((z = (s = me.value).onExpandKey) == null || z.call(s, E));
|
|
884
|
-
} else e.key === "Enter" && (y.length === 1 && y[0].value && P.value !== y[0].value && (P.value = y[0].value), P.value && qe(V(P.value), !0), k("keydownEnter", e, h.value));
|
|
885
|
-
e.key === "Escape" && k("keydownEscape", e);
|
|
886
|
-
}
|
|
887
|
-
},
|
|
888
|
-
searchModel: h,
|
|
889
|
-
openModel: g,
|
|
890
|
-
model: n,
|
|
891
|
-
slots: f,
|
|
892
|
-
valuePlaceholder: We,
|
|
893
|
-
placeholder: bt,
|
|
894
|
-
getOptionByValue: V,
|
|
895
|
-
isOptionSelected: ne,
|
|
896
|
-
getLabelByValue: M,
|
|
897
|
-
getSingleByValue: de,
|
|
898
|
-
inputRef: ie,
|
|
899
|
-
focusOnInput: ze,
|
|
900
|
-
getDisabled: re,
|
|
901
|
-
getStatus: Ne,
|
|
902
|
-
getSize: D,
|
|
903
|
-
getTagSize: se,
|
|
904
|
-
getIconSize: we,
|
|
905
|
-
comboboxInputBinding: yt,
|
|
906
|
-
comboboxTriggerBinding: ht,
|
|
907
|
-
comboboxInputFocused: _t,
|
|
908
|
-
selectOption: qe,
|
|
909
|
-
itemMap: kt,
|
|
910
|
-
getItems: Ue,
|
|
911
|
-
highlightedOptionKey: P
|
|
912
|
-
};
|
|
913
|
-
ko(Je), Ft(
|
|
914
|
-
() => [o.clearOnChangeMultiple, o.multiple],
|
|
915
|
-
() => {
|
|
916
|
-
o.clearOnChangeMultiple && (n.value = void 0);
|
|
917
|
-
}
|
|
918
|
-
);
|
|
919
|
-
const xt = C(() => ({
|
|
920
|
-
defaultExpandAll: !0,
|
|
921
|
-
showLine: !0,
|
|
922
|
-
selectionBehavior: "replace",
|
|
923
|
-
...o.treeProps ?? {},
|
|
924
|
-
size: D.value,
|
|
925
|
-
flattenData: !0,
|
|
926
|
-
outerVirtualScroll: !0,
|
|
927
|
-
selectable: !0,
|
|
928
|
-
focusable: !1,
|
|
929
|
-
multiple: o.multiple,
|
|
930
|
-
checkable: o.multiple && o.checkbox,
|
|
931
|
-
virtual: R,
|
|
932
|
-
syncCheckboxAndSelect: o.multiple,
|
|
933
|
-
data: T.value,
|
|
934
|
-
modelValue: Ge(),
|
|
935
|
-
checkedKeys: Ge(),
|
|
936
|
-
class: S(w, "tree")
|
|
937
|
-
})), Pt = C(() => {
|
|
938
|
-
const e = o.scrollContainerProps ?? {};
|
|
939
|
-
return {
|
|
940
|
-
...e,
|
|
941
|
-
areaCls: [
|
|
942
|
-
S(w, "scroll_area"),
|
|
943
|
-
e == null ? void 0 : e.class,
|
|
944
|
-
e == null ? void 0 : e.areaCls
|
|
945
|
-
],
|
|
946
|
-
wrapProps: {
|
|
947
|
-
...(e == null ? void 0 : e.wrapProps) ?? {},
|
|
948
|
-
style: (ee == null ? void 0 : ee.scrollWrapperStyles.value) ?? {}
|
|
949
|
-
}
|
|
950
|
-
};
|
|
951
|
-
}), Qe = S(w, "popup"), Bt = ut(Qe, {
|
|
952
|
-
variants: {
|
|
953
|
-
size: q(gt, Qe)
|
|
954
|
-
}
|
|
955
|
-
}), Ot = C(() => Ae(o.popupWidth, !0)), It = C(() => Ae(o.popupHeight, !0)), wt = C(() => Ae(o.minWidth, !0)), Tt = () => {
|
|
956
|
-
var a, i;
|
|
957
|
-
const e = (i = f.header) == null ? void 0 : i.call(f, {
|
|
958
|
-
isEmpty: !((a = T.value) != null && a.length),
|
|
959
|
-
search: h.value
|
|
960
|
-
}), l = !$(e);
|
|
961
|
-
if (l || o.headerSearch)
|
|
962
|
-
return _(
|
|
963
|
-
"div",
|
|
964
|
-
{ class: S(w, "header") },
|
|
965
|
-
l ? e : _(ft, o.headerSearchInputProps || {})
|
|
966
|
-
);
|
|
967
|
-
}, zt = () => {
|
|
968
|
-
var a, i;
|
|
969
|
-
const e = (i = f.footer) == null ? void 0 : i.call(f, {
|
|
970
|
-
isEmpty: !((a = T.value) != null && a.length),
|
|
971
|
-
search: h.value
|
|
972
|
-
});
|
|
973
|
-
if (!$(e))
|
|
974
|
-
return _("div", { class: S(w, "footer") }, e);
|
|
975
|
-
}, Vt = () => {
|
|
976
|
-
var a;
|
|
977
|
-
const e = {
|
|
978
|
-
type: D.value === "sm" ? "simple" : "advance",
|
|
979
|
-
...he(o.emptyProps ?? {}, ["class"]),
|
|
980
|
-
class: U(S(w, "empty"), o.emptyCls)
|
|
981
|
-
}, l = (a = f.empty) == null ? void 0 : a.call(f, e);
|
|
982
|
-
return $(l) ? _(fo, e, {
|
|
983
|
-
title: f.emptyTitle,
|
|
984
|
-
description: f.emptyDescription,
|
|
985
|
-
actions: f.emptyActions,
|
|
986
|
-
image: f.emptyImage
|
|
987
|
-
}) : l;
|
|
988
|
-
}, Et = () => {
|
|
989
|
-
var a;
|
|
990
|
-
const e = (a = f.loading) == null ? void 0 : a.call(f, {});
|
|
991
|
-
return $(e) ? new Array(T.value.length ? 2 : o.loadingRowCount).fill(1).map(
|
|
992
|
-
() => _(_o, {
|
|
993
|
-
size: D.value,
|
|
994
|
-
class: U(S(w, "skeleton"), o.skeletonCls),
|
|
995
|
-
...he(o.skeletonProps ?? {}, ["class"])
|
|
996
|
-
})
|
|
997
|
-
) : e;
|
|
998
|
-
}, Lt = (e, l, a) => {
|
|
999
|
-
const i = e._clear;
|
|
1000
|
-
if (o.multiple) {
|
|
1001
|
-
const x = e._single;
|
|
1002
|
-
i ? n.value = [] : x ? n.value = [e._key] : n.value = a;
|
|
1003
|
-
} else i || !l ? n.value = void 0 : n.value = e._key;
|
|
1004
|
-
k(
|
|
1005
|
-
"select",
|
|
1006
|
-
e._key,
|
|
1007
|
-
l,
|
|
1008
|
-
e
|
|
1009
|
-
);
|
|
1010
|
-
}, Mt = (e) => {
|
|
1011
|
-
e.key === "ArrowDown" && !g.value ? g.value = !0 : e.key === "Tab" && g.value && (g.value = !1);
|
|
1012
|
-
};
|
|
1013
|
-
return o.disableOutsidePointerEvents && Zt(g), t(Je), (e, l) => (I(), K(u(oo), ue({
|
|
1014
|
-
open: u(g),
|
|
1015
|
-
"onUpdate:open": l[2] || (l[2] = (a) => Ye(g) ? g.value = a : null)
|
|
1016
|
-
}, Z.value, {
|
|
1017
|
-
containerProps: {
|
|
1018
|
-
...e.containerProps ?? {},
|
|
1019
|
-
onClick: ze
|
|
1020
|
-
},
|
|
1021
|
-
noPadding: !0,
|
|
1022
|
-
size: u(D),
|
|
1023
|
-
containerStyle: {
|
|
1024
|
-
pointerEvents: "auto",
|
|
1025
|
-
display: u(g) ? void 0 : "none",
|
|
1026
|
-
zIndex: e.zIndex,
|
|
1027
|
-
"--ptc-combobox-popup-width": e.samePopupWidth ? void 0 : Ot.value,
|
|
1028
|
-
"--ptc-combobox-popup-height": It.value,
|
|
1029
|
-
"--ptc-combobox-trigger-min-w": wt.value
|
|
1030
|
-
},
|
|
1031
|
-
containerCls: u(U)(u(Bt)(o), e.popupCls),
|
|
1032
|
-
onKeydown: Mt
|
|
1033
|
-
}), {
|
|
1034
|
-
default: W(() => [
|
|
1035
|
-
X(xo)
|
|
1036
|
-
]),
|
|
1037
|
-
content: W(() => [
|
|
1038
|
-
X(Tt),
|
|
1039
|
-
X(u(go), ue({
|
|
1040
|
-
ref_key: "scrollContainerRef",
|
|
1041
|
-
ref: ke
|
|
1042
|
-
}, Pt.value), {
|
|
1043
|
-
default: W(() => [
|
|
1044
|
-
T.value.length || e.loading ? (I(), K(u(Ct), { key: 0 }, {
|
|
1045
|
-
default: W(() => [
|
|
1046
|
-
Ze("div", {
|
|
1047
|
-
class: Ie(u(U)(u(S)(u(w), "options"), e.optionsCls)),
|
|
1048
|
-
style: Nt(e.virtual ? vt.value : {}),
|
|
1049
|
-
onPointerleave: l[1] || (l[1] = (a) => Ve(void 0))
|
|
1050
|
-
}, [
|
|
1051
|
-
e.tree ? (I(), K(u(vo), ue({
|
|
1052
|
-
key: 0,
|
|
1053
|
-
ref_key: "treeRef",
|
|
1054
|
-
ref: me
|
|
1055
|
-
}, xt.value, {
|
|
1056
|
-
expandedKeys: u(N),
|
|
1057
|
-
"onUpdate:expandedKeys": l[0] || (l[0] = (a) => Ye(N) ? N.value = a : null),
|
|
1058
|
-
onExpand: ze,
|
|
1059
|
-
onSelect: Lt
|
|
1060
|
-
}), {
|
|
1061
|
-
default: W(({ items: a }) => [
|
|
1062
|
-
(I(!0), ye(Re, null, $e(a, (i) => (I(), K(u(He), {
|
|
1063
|
-
key: i._key,
|
|
1064
|
-
value: i._key
|
|
1065
|
-
}, {
|
|
1066
|
-
default: W(() => [
|
|
1067
|
-
X(u(yo), ue({ node: i }, { ref_for: !0 }, je(i), {
|
|
1068
|
-
onPointermove: (x) => Ve(i._key)
|
|
1069
|
-
}), {
|
|
1070
|
-
default: W(() => [
|
|
1071
|
-
X(st, { option: i }, null, 8, ["option"])
|
|
1072
|
-
]),
|
|
1073
|
-
_: 2
|
|
1074
|
-
}, 1040, ["node", "onPointermove"])
|
|
1075
|
-
]),
|
|
1076
|
-
_: 2
|
|
1077
|
-
}, 1032, ["value"]))), 128))
|
|
1078
|
-
]),
|
|
1079
|
-
_: 1
|
|
1080
|
-
}, 16, ["expandedKeys"])) : (I(!0), ye(Re, { key: 1 }, $e(mt.value, (a) => (I(), ye(Re, {
|
|
1081
|
-
key: a._key
|
|
1082
|
-
}, [
|
|
1083
|
-
a._divider ? (I(), K(bo, { key: 0 })) : a._label && a._hasChildren ? (I(), K(Po, {
|
|
1084
|
-
key: 1,
|
|
1085
|
-
label: a._label
|
|
1086
|
-
}, null, 8, ["label"])) : a._hasChildren ? De("", !0) : (I(), K(u(He), {
|
|
1087
|
-
key: 2,
|
|
1088
|
-
value: a._key
|
|
1089
|
-
}, {
|
|
1090
|
-
default: W(() => [
|
|
1091
|
-
X(st, ue({ option: a }, { ref_for: !0 }, je(a), {
|
|
1092
|
-
onPointermove: (i) => Ve(a._key)
|
|
1093
|
-
}), null, 16, ["option", "onPointermove"])
|
|
1094
|
-
]),
|
|
1095
|
-
_: 2
|
|
1096
|
-
}, 1032, ["value"]))
|
|
1097
|
-
], 64))), 128)),
|
|
1098
|
-
e.loading ? (I(), K(Et, { key: 2 })) : De("", !0)
|
|
1099
|
-
], 38)
|
|
1100
|
-
]),
|
|
1101
|
-
_: 1
|
|
1102
|
-
})) : (I(), K(Vt, { key: 1 })),
|
|
1103
|
-
e.lazyLoading ? (I(), ye("div", {
|
|
1104
|
-
key: 2,
|
|
1105
|
-
class: Ie(u(S)(u(w), "lazy_loading"))
|
|
1106
|
-
}, [
|
|
1107
|
-
Ze("div", {
|
|
1108
|
-
class: Ie(u(S)(u(w), "lazy_loading_trigger")),
|
|
1109
|
-
ref_key: "target",
|
|
1110
|
-
ref: ce
|
|
1111
|
-
}, null, 2)
|
|
1112
|
-
], 2)) : De("", !0)
|
|
1113
|
-
]),
|
|
1114
|
-
_: 1
|
|
1115
|
-
}, 16),
|
|
1116
|
-
X(zt)
|
|
1117
|
-
]),
|
|
1118
|
-
_: 1
|
|
1119
|
-
}, 16, ["open", "containerProps", "size", "containerStyle", "containerCls"]));
|
|
1120
|
-
}
|
|
1121
|
-
});
|
|
1122
|
-
export {
|
|
1123
|
-
gt as C,
|
|
1124
|
-
Zo as _,
|
|
1125
|
-
ft as a,
|
|
1126
|
-
So as b,
|
|
1127
|
-
Fe as i,
|
|
1128
|
-
ko as p
|
|
1129
|
-
};
|