@pantograph/vue 0.26.0 → 0.27.1
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 +20 -12
- 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-BVeWGfr7.js +1 -0
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-D4l05YZz.js +69 -0
- package/dist/Alert/index.js +1 -1
- package/dist/Alert/index.umd.cjs +1 -1
- package/dist/Alert.vue_vue_type_script_setup_true_lang-CZzHeneB.js +1 -0
- package/dist/Alert.vue_vue_type_script_setup_true_lang-D5F_9ZwU.js +128 -0
- 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-DmIuHoi3.js → Avatar.vue_vue_type_script_setup_true_lang-CH_6o8dq.js} +57 -52
- package/dist/Avatar.vue_vue_type_script_setup_true_lang-QZhssZnQ.js +1 -0
- 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-DKswgB1B.js +1 -0
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-DvZc9U-W.js → Badge.vue_vue_type_script_setup_true_lang-GQnZqeaV.js} +20 -15
- package/dist/Base/BaseButton/BaseButton.d.ts +2 -0
- package/dist/Base/BaseInput/BaseInput.d.ts +1 -1
- package/dist/{BaseBadge.model-D4ZfMIfM.js → BaseBadge.model-CahZXsyM.js} +2 -2
- package/dist/BaseBadge.vue_vue_type_script_setup_true_lang-8tuJTjkU.js +1 -0
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-Cekbj5do.js → BaseBadge.vue_vue_type_script_setup_true_lang-BVEnU-L5.js} +27 -21
- package/dist/BaseButton.vue_vue_type_script_setup_true_lang-B6fHU-br.js +1 -0
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-Bwa2jAT_.js → BaseButton.vue_vue_type_script_setup_true_lang-u4Fvon7Z.js} +53 -47
- package/dist/BaseInput.vue_vue_type_script_setup_true_lang-BEeid52h.js +1 -0
- package/dist/BaseInput.vue_vue_type_script_setup_true_lang-Ca0LOJfn.js +141 -0
- package/dist/Button/Button.d.ts +29 -21
- 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-3EriUXFH.js +1 -0
- package/dist/Button.vue_vue_type_script_setup_true_lang-CSKn-kYb.js +72 -0
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup.vue_vue_type_script_setup_true_lang-DPtJY6ad.js → ButtonGroup.vue_vue_type_script_setup_true_lang-BWfa7L2L.js} +4 -4
- package/dist/Checkbox/Checkbox.d.ts +1 -0
- package/dist/Checkbox/index.js +1 -1
- package/dist/Checkbox/index.umd.cjs +1 -1
- package/dist/Checkbox.vue_vue_type_script_setup_true_lang-B5hrYP5E.js +1 -0
- package/dist/Checkbox.vue_vue_type_script_setup_true_lang-DiG3cLmy.js +226 -0
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +4 -4
- package/dist/CheckboxGroup/index.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- package/dist/Chip/Chip.d.ts +4 -1
- package/dist/Chip/index.js +1 -1
- package/dist/Chip/index.umd.cjs +1 -1
- package/dist/Chip.vue_vue_type_script_setup_true_lang-DOIPsHk_.js +217 -0
- package/dist/Chip.vue_vue_type_script_setup_true_lang-Dn-EkG3e.js +1 -0
- package/dist/ChipGroup/index.js +1 -1
- package/dist/ChipGroup/index.umd.cjs +1 -1
- package/dist/ColorPicker/ColorPicker.d.ts +1 -0
- 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-CFWIxkoW.js → ColorPicker.vue_vue_type_script_setup_true_lang-Bz_mnMXB.js} +765 -763
- package/dist/ColorPicker.vue_vue_type_script_setup_true_lang-D6k_f_bV.js +4 -0
- package/dist/ColorSwatch/ColorSwatch.d.ts +2 -0
- package/dist/ColorSwatch/index.js +1 -1
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/ColorSwatch-BUx8Adlm.js +4 -0
- package/dist/ColorSwatch-CyLiiscO.js +1 -0
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-DsriVs5P.js → ColorSwatch.vue_vue_type_script_setup_true_lang-DBTZCpNP.js} +38 -29
- package/dist/ColorSwatch.vue_vue_type_script_setup_true_lang-mEt98xi2.js +1 -0
- package/dist/ColorSwatchGroup/ColorSwatchGroup.d.ts +3 -1
- package/dist/ColorSwatchGroup/index.js +1 -1
- package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
- package/dist/ColorSwatchGroup.vue_vue_type_script_setup_true_lang-B-cLoom6.js +175 -0
- package/dist/ColorSwatchGroup.vue_vue_type_script_setup_true_lang-D1yZXDV3.js +1 -0
- package/dist/ColorTrigger/ColorTrigger.d.ts +1 -0
- package/dist/ColorTrigger/index.js +1 -1
- package/dist/ColorTrigger/index.umd.cjs +1 -1
- package/dist/ColorTrigger.vue_vue_type_script_setup_true_lang-BbT6N2FL.js +94 -0
- package/dist/ColorTrigger.vue_vue_type_script_setup_true_lang-DIzDCzvv.js +1 -0
- package/dist/Combobox/Combobox.d.ts +912 -31
- package/dist/Combobox/ComboboxInput.d.ts +20 -1
- package/dist/Combobox/ComboboxLabel.d.ts +3 -15
- package/dist/Combobox/ComboboxOption.d.ts +4 -17
- package/dist/Combobox/ComboboxTrigger.d.ts +1 -3
- package/dist/Combobox/context.d.ts +22 -25
- package/dist/Combobox/index.js +1 -1
- package/dist/Combobox/index.umd.cjs +1 -1
- package/dist/Combobox/types.d.ts +73 -49
- package/dist/Combobox.vue_vue_type_script_setup_true_lang-CSN9cqZh.js +1120 -0
- package/dist/Combobox.vue_vue_type_script_setup_true_lang-NkTBG9kI.js +1 -0
- package/dist/Comment/Comment.d.ts +1 -1
- package/dist/Comment/CommentActions.d.ts +58 -44
- package/dist/Comment/CommentEditor.d.ts +248 -215
- package/dist/Comment/CommentMention.d.ts +1 -1
- package/dist/Comment/CommentReaction.d.ts +1 -1
- package/dist/Comment/CommentReactions.d.ts +29 -22
- package/dist/Comment/index.js +325 -327
- package/dist/Comment/index.umd.cjs +1 -1
- package/dist/ConfigProvider/index.js +1 -1
- package/dist/{ConfigProvider.vue_vue_type_script_setup_true_lang-D8R0hBKt.js → ConfigProvider.vue_vue_type_script_setup_true_lang-DiuPi_DT.js} +1 -1
- package/dist/DataTable/index.js +1 -1
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/DataTable.vue_vue_type_script_setup_true_lang-BbVKnjxN.js +1 -0
- package/dist/{DataTable.vue_vue_type_style_index_0_lang-DFOwpMxF.js → DataTable.vue_vue_type_script_setup_true_lang-BfTiBQMt.js} +105 -106
- package/dist/Divider/index.js +1 -1
- package/dist/Divider/index.umd.cjs +1 -1
- package/dist/Divider.vue_vue_type_script_setup_true_lang-BHkXVZCN.js +43 -0
- package/dist/Divider.vue_vue_type_script_setup_true_lang-BfrE098V.js +1 -0
- package/dist/DropZone/DropZone.d.ts +1 -0
- package/dist/DropZone/index.js +1 -1
- package/dist/DropZone/index.umd.cjs +1 -1
- package/dist/DropZone.vue_vue_type_script_setup_true_lang-C8PIE0KC.js +131 -0
- package/dist/DropZone.vue_vue_type_script_setup_true_lang-DEK0OBo2.js +1 -0
- package/dist/Empty/index.js +1 -1
- package/dist/Empty/index.umd.cjs +1 -1
- package/dist/Empty.vue_vue_type_script_setup_true_lang-BHsAnkd7.js +1 -0
- package/dist/{Empty.vue_vue_type_style_index_0_lang-Bk2nO0VN.js → Empty.vue_vue_type_script_setup_true_lang-CnJOScIi.js} +41 -35
- package/dist/FloatButton/FloatButton.d.ts +28 -20
- 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-D03EBWv5.js +67 -0
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-t22bWN9j.js +1 -0
- package/dist/Form/Form.d.ts +35 -29
- package/dist/Form/FormItem.d.ts +14 -3
- package/dist/Form/index.js +1 -1
- package/dist/Form/index.umd.cjs +1 -1
- package/dist/FormValidation/FormValidation.d.ts +1 -1
- package/dist/GOPicker/GOPicker.d.ts +44 -43
- package/dist/GOPicker/index.js +1 -1
- package/dist/GOPicker/index.umd.cjs +1 -1
- package/dist/GOPicker.vue_vue_type_script_setup_true_lang-BOyOH_qb.js +1 -0
- package/dist/{GOPicker.vue_vue_type_style_index_0_lang-CJ-yY8X0.js → GOPicker.vue_vue_type_script_setup_true_lang-Cx2WQErE.js} +162 -163
- 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-D6ppQA4I.js +1 -0
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-DFogOMOj.js → GraphicalObject.vue_vue_type_script_setup_true_lang-Dwf4A9T3.js} +9 -9
- package/dist/GraphicalObjectGroup/index.js +1 -1
- package/dist/GraphicalObjectGroup/index.umd.cjs +1 -1
- package/dist/GraphicalObjectGroup.vue_vue_type_script_setup_true_lang-CAvd-28M.js +68 -0
- package/dist/GraphicalObjectGroup.vue_vue_type_script_setup_true_lang-CXyuthQS.js +1 -0
- package/dist/HoverCard/HoverCard.d.ts +12 -133
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +2 -2
- package/dist/HoverCard/index.umd.cjs +1 -1
- package/dist/HoverCard.vue_vue_type_script_setup_true_lang-CbT9IDH_.js +1 -0
- package/dist/HoverCard.vue_vue_type_script_setup_true_lang-DBOk4tYh.js +100 -0
- package/dist/Icon/Icon.d.ts +18 -1
- package/dist/Icon/index.js +1 -1
- package/dist/Icon/index.umd.cjs +1 -1
- package/dist/Icon.vue_vue_type_script_setup_true_lang-BDTw4CRD.js +9 -0
- package/dist/Icon.vue_vue_type_script_setup_true_lang-DJv20Efl.js +2839 -0
- package/dist/IconButton/IconButton.d.ts +27 -21
- 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-CRdinhW6.js +66 -0
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-DtB1BlrH.js +1 -0
- package/dist/Image/index.js +1 -1
- package/dist/Image/index.umd.cjs +1 -1
- package/dist/Image.vue_vue_type_script_setup_true_lang-C8IFCQ1Z.js +1 -0
- package/dist/Image.vue_vue_type_script_setup_true_lang-DUAcgVt3.js +131 -0
- package/dist/IndentLevel/IndentLevel.d.ts +1 -1
- package/dist/IndentLevel/index.js +1 -1
- package/dist/IndentLevel/index.umd.cjs +1 -1
- package/dist/IndentLevel.vue_vue_type_script_setup_true_lang-CZIskYG5.js +105 -0
- package/dist/IndentLevel.vue_vue_type_script_setup_true_lang-DejchDVl.js +1 -0
- package/dist/Indicator/index.js +1 -1
- package/dist/Indicator/index.umd.cjs +1 -1
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-C5X3Ptal.js +1 -0
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-Bfc2cDZW.js → Indicator.vue_vue_type_script_setup_true_lang-CUzJo6Dq.js} +6 -6
- 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-BZidgKiU.js → Input.vue_vue_type_script_setup_true_lang-BBOWLata.js} +32 -27
- package/dist/Input.vue_vue_type_script_setup_true_lang-DQaTM8t7.js +1 -0
- 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-B2XDVABX.js +1 -0
- package/dist/{InputNumber.vue_vue_type_script_setup_true_lang-y1SYHqAR.js → InputNumber.vue_vue_type_script_setup_true_lang-Dg-C7-Gw.js} +20 -15
- package/dist/Kbd/index.js +1 -1
- package/dist/Kbd/index.umd.cjs +1 -1
- package/dist/Kbd.vue_vue_type_script_setup_true_lang-Bts8h3Rc.js +1 -0
- package/dist/Kbd.vue_vue_type_script_setup_true_lang-CZvbn4oA.js +53 -0
- package/dist/Label/index.js +1 -1
- package/dist/Label/index.umd.cjs +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/Link/index.umd.cjs +1 -1
- package/dist/Link.vue_vue_type_script_setup_true_lang-B9UfwACd.js +1 -0
- package/dist/{Link.vue_vue_type_style_index_0_lang-CXRcuM5F.js → Link.vue_vue_type_script_setup_true_lang-Dc6IcnzY.js} +26 -20
- package/dist/Menu/Menu.d.ts +5 -3
- package/dist/Menu/index.js +1 -1
- package/dist/Menu/index.umd.cjs +1 -1
- package/dist/MenuItem/MenuItem.d.ts +5 -5
- package/dist/MenuItem/MenuItemContent.d.ts +16 -10
- package/dist/MenuItem/index.js +1 -1
- package/dist/MenuItem/index.umd.cjs +1 -1
- package/dist/MenuItem.vue_vue_type_script_setup_true_lang-BhAWfw04.js +616 -0
- package/dist/MenuItem.vue_vue_type_script_setup_true_lang-DweYhLgr.js +1 -0
- package/dist/Pagination/Pagination.d.ts +3 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/Pagination/index.umd.cjs +1 -1
- package/dist/Pagination.vue_vue_type_script_setup_true_lang-CH2sZBOw.js +246 -0
- package/dist/Pagination.vue_vue_type_script_setup_true_lang-qyR_Occn.js +1 -0
- package/dist/Popover/Popover.d.ts +10 -131
- package/dist/Popover/Popover.model.d.ts +1 -1
- package/dist/Popover/index.d.ts +2 -1
- package/dist/Popover/index.js +1 -1
- package/dist/Popover/index.umd.cjs +1 -1
- package/dist/Popover/type.d.ts +27 -0
- package/dist/Popover/utils.d.ts +48 -4
- package/dist/Popover.vue_vue_type_script_setup_true_lang-Bye1k1gb.js +1 -0
- package/dist/Popover.vue_vue_type_script_setup_true_lang-D-Jebwr9.js +281 -0
- package/dist/Progress/index.js +1 -1
- package/dist/Progress/index.umd.cjs +1 -1
- package/dist/Progress.vue_vue_type_script_setup_true_lang-QIJAJeT9.js +1 -0
- package/dist/{Progress.vue_vue_type_style_index_0_lang-DHMo6akY.js → Progress.vue_vue_type_script_setup_true_lang-fxFcm9WO.js} +106 -100
- package/dist/RadioGroup/RadioGroup.d.ts +7 -1
- package/dist/RadioGroup/RadioGroupItem.d.ts +1 -1
- 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-B_-7GgYM.js +1 -0
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-w2aa6VhW.js +110 -0
- package/dist/ScrollContainer/ScrollContainer.d.ts +13 -17
- 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-ioHY1esc.js → ScrollContainer.vue_vue_type_script_setup_true_lang-BU7qU1LR.js} +39 -36
- package/dist/ScrollContainer.vue_vue_type_script_setup_true_lang-u50YBozy.js +1 -0
- package/dist/Segmented/Segmented.d.ts +4 -2
- package/dist/Segmented/index.js +1 -1
- package/dist/Segmented/index.umd.cjs +1 -1
- package/dist/Segmented.vue_vue_type_script_setup_true_lang-CoJCKPrs.js +1 -0
- package/dist/Segmented.vue_vue_type_script_setup_true_lang-D7yf-Ezy.js +171 -0
- package/dist/Select/Select.d.ts +9 -5
- package/dist/Select/index.js +1 -1
- package/dist/Select/index.umd.cjs +1 -1
- package/dist/Select/types.d.ts +6 -5
- package/dist/Select.vue_vue_type_script_setup_true_lang-B8L_locv.js +787 -0
- package/dist/Select.vue_vue_type_script_setup_true_lang-BxOgh92J.js +1 -0
- package/dist/Shortcut/index.js +1 -1
- package/dist/Shortcut/index.umd.cjs +1 -1
- package/dist/Shortcut.vue_vue_type_script_setup_true_lang-CByKa08f.js +1 -0
- package/dist/Shortcut.vue_vue_type_script_setup_true_lang-CPeD8ZFo.js +38 -0
- package/dist/Skeleton/index.js +1 -1
- package/dist/Skeleton/index.umd.cjs +1 -1
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-BPGtJ7m9.js +65 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CZd6jGSK.js +1 -0
- package/dist/Spinner/index.js +1 -1
- package/dist/Spinner/index.umd.cjs +1 -1
- package/dist/Spinner.vue_vue_type_script_setup_true_lang-BLbh3cW9.js +1 -0
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-Bflf_h7p.js → Spinner.vue_vue_type_script_setup_true_lang-plOMCeJw.js} +33 -27
- package/dist/SubMenu/SubMenu.d.ts +2 -2
- 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_script_setup_true_lang--nKqQaQz.js +1 -0
- package/dist/{Switch.vue_vue_type_style_index_0_lang-DprBpzXg.js → Switch.vue_vue_type_script_setup_true_lang-Br5agMiY.js} +41 -37
- package/dist/THead.vue_vue_type_script_setup_true_lang-B8EBMO33.js +214 -0
- package/dist/THead.vue_vue_type_script_setup_true_lang-midXJwsE.js +1 -0
- package/dist/TabContent.vue_vue_type_script_setup_true_lang-B3v-gPTa.js +1 -0
- package/dist/TabContent.vue_vue_type_script_setup_true_lang-DUqgKpvl.js +379 -0
- package/dist/Table/index.js +1 -1
- package/dist/Table/index.umd.cjs +1 -1
- package/dist/Tabs/TabContent.d.ts +18 -0
- package/dist/Tabs/TabList.d.ts +302 -0
- package/dist/Tabs/TabTrigger.d.ts +41 -0
- package/dist/Tabs/Tabs.d.ts +53 -0
- package/dist/Tabs/index.d.ts +5 -1
- package/dist/Tabs/index.js +11 -1
- package/dist/Tabs/index.umd.cjs +1 -1
- package/dist/Textarea/Textarea.d.ts +32 -36
- 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-CYHt1v8A.js → Textarea.vue_vue_type_script_setup_true_lang-BTywGT0W.js} +28 -25
- package/dist/Textarea.vue_vue_type_script_setup_true_lang-ZvXSpOuD.js +1 -0
- package/dist/Tree/Tree.d.ts +34 -5
- package/dist/Tree/Tree.model.d.ts +34 -13
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/index.umd.cjs +1 -1
- package/dist/Tree/utils.d.ts +29 -13
- package/dist/Tree.vue_vue_type_script_setup_true_lang-B5khp8Fw.js +726 -0
- package/dist/Tree.vue_vue_type_script_setup_true_lang-C7AJKgHE.js +1 -0
- package/dist/Upload/Upload.d.ts +2 -1
- package/dist/Upload/UploadListItem.d.ts +1 -1
- package/dist/Upload/UploadTrigger.d.ts +5 -3
- package/dist/Upload/index.js +1 -1
- package/dist/Upload/index.umd.cjs +1 -1
- package/dist/Upload/types.d.ts +2 -2
- package/dist/Upload/utils/extension.d.ts +1 -1
- package/dist/Upload/utils/transformFile.d.ts +1 -1
- package/dist/Upload.vue_vue_type_script_setup_true_lang-BNiFkx47.js +1027 -0
- package/dist/Upload.vue_vue_type_script_setup_true_lang-ClLueLCg.js +1 -0
- package/dist/bodyLock-DBGsJvTg.js +14 -0
- package/dist/bodyLock-DM_fELbd.js +1 -0
- package/dist/collection-BFrS9-RP.js +1 -0
- package/dist/collection-DUgtxIW2.js +70 -0
- package/dist/exports.d.ts +1 -6
- package/dist/index.js +272 -257
- package/dist/index.umd.cjs +1 -1
- package/dist/isEmpty-CgVXdsCr.js +40 -0
- package/dist/isEmpty-cyU2mCRb.js +1 -0
- package/dist/{options-Bh1s18jm.js → options-J8HfRMSU.js} +2 -2
- package/dist/style/index.css +1 -1
- package/dist/useInputDataStates-CVQJAe1K.js +1 -0
- package/dist/useInputDataStates-DCxDvkM-.js +50 -0
- package/dist/useVirtualScroll-3vEZzPrF.js +1 -0
- package/dist/useVirtualScroll-CXkmR_v2.js +32 -0
- package/dist/useVmodel-BU5qtyne.js +1 -0
- package/dist/useVmodel-DlyNieM5.js +52 -0
- package/dist/utils/bodyLock.d.ts +2 -0
- package/dist/utils/collection.d.ts +32 -0
- package/dist/utils/index.d.ts +10 -5
- package/dist/utils/index.js +32 -15
- package/dist/utils/index.umd.cjs +1 -1
- package/dist/utils/style.d.ts +1 -0
- package/dist/utils/useInputDataStates.d.ts +1 -1
- package/dist/utils/useVirtualScroll.d.ts +23 -0
- package/dist/utils/useVmodel.d.ts +69 -0
- package/package.json +9 -8
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-C-yubDE0.js +0 -1
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-C8Q6waTJ.js +0 -56
- package/dist/Alert.vue_vue_type_style_index_0_lang-DxlwdpVq.js +0 -123
- package/dist/Alert.vue_vue_type_style_index_0_lang-Q2swor45.js +0 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-UzInGmo8.js +0 -1
- package/dist/Badge.vue_vue_type_script_setup_true_lang-BBMB72Mz.js +0 -1
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-BNlyoiRz.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-DQGK3rUl.js +0 -1
- package/dist/BaseInput.vue_vue_type_style_index_0_lang-CalBdGIB.js +0 -133
- package/dist/BaseInput.vue_vue_type_style_index_0_lang-b7Cyp0zn.js +0 -1
- package/dist/Button.vue_vue_type_script_setup_true_lang-BGNxRN3s.js +0 -53
- package/dist/Button.vue_vue_type_script_setup_true_lang-C_XW_RxE.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-BftwQBSo.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-QBA04hd1.js +0 -223
- package/dist/Chip.vue_vue_type_style_index_0_lang-CRI3QwLZ.js +0 -192
- package/dist/Chip.vue_vue_type_style_index_0_lang-z_hK7usq.js +0 -1
- package/dist/ColorPicker.vue_vue_type_style_index_0_lang-CcSrQKRq.js +0 -4
- package/dist/ColorSwatch-B8Atg6sw.js +0 -4
- package/dist/ColorSwatch-Bjf8zaRk.js +0 -1
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-CXCshLKX.js +0 -1
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-CczGrgYd.js +0 -1
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-amI55LMo.js +0 -156
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-BIaTcjVN.js +0 -90
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-Bny3csr4.js +0 -1
- package/dist/Combobox/ComboboxWrapper.d.ts +0 -4
- package/dist/Combobox.vue_vue_type_style_index_0_lang-C5lxH1Cg.js +0 -1
- package/dist/Combobox.vue_vue_type_style_index_0_lang-DLgal2Q-.js +0 -949
- package/dist/DataTable.vue_vue_type_style_index_0_lang-CRv9-elM.js +0 -1
- package/dist/Divider.vue_vue_type_style_index_0_lang-B1VnMpBg.js +0 -1
- package/dist/Divider.vue_vue_type_style_index_0_lang-CfBklijs.js +0 -36
- package/dist/DropZone.vue_vue_type_style_index_0_lang-B0T34FXZ.js +0 -124
- package/dist/DropZone.vue_vue_type_style_index_0_lang-CjskWVFc.js +0 -1
- package/dist/Empty.vue_vue_type_style_index_0_lang-2ZPIGpdZ.js +0 -1
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-CqI5GHuN.js +0 -58
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-DObfA5pf.js +0 -1
- package/dist/GOPicker.vue_vue_type_style_index_0_lang-BieXIwrY.js +0 -1
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-BqtvZ4Zu.js +0 -1
- package/dist/GraphicalObjectGroup.vue_vue_type_style_index_0_lang-CFIKZKMj.js +0 -64
- package/dist/GraphicalObjectGroup.vue_vue_type_style_index_0_lang-CnsHb2Lb.js +0 -1
- package/dist/HoverCard.vue_vue_type_style_index_0_lang-DGhlQaO0.js +0 -124
- package/dist/HoverCard.vue_vue_type_style_index_0_lang-tPtCNI95.js +0 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-26YK1SwL.js +0 -2909
- package/dist/Icon.vue_vue_type_style_index_0_lang-CRquOLJG.js +0 -9
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-Dvu9WpEN.js +0 -58
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-ZUsEmKon.js +0 -1
- package/dist/Image.vue_vue_type_style_index_0_lang-BabuXXFH.js +0 -126
- package/dist/Image.vue_vue_type_style_index_0_lang-Dcqwbt4T.js +0 -1
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-CZ95qLkr.js +0 -99
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-LYssIii4.js +0 -1
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-B-oDEbiu.js +0 -1
- package/dist/Input.vue_vue_type_script_setup_true_lang-BVbKTWVG.js +0 -1
- package/dist/InputNumber.vue_vue_type_script_setup_true_lang-DEgVgZ_0.js +0 -1
- package/dist/Kbd.vue_vue_type_style_index_0_lang-1ITCVp0q.js +0 -47
- package/dist/Kbd.vue_vue_type_style_index_0_lang-Cjc5Rk3l.js +0 -1
- package/dist/Link.vue_vue_type_style_index_0_lang-gFBGdIkN.js +0 -1
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-BC0hNIHn.js +0 -1
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-CK2KrtJa.js +0 -587
- package/dist/Pagination.vue_vue_type_style_index_0_lang-DOwVgreM.js +0 -1
- package/dist/Pagination.vue_vue_type_style_index_0_lang-Dgx-vviE.js +0 -235
- package/dist/Popover.vue_vue_type_style_index_0_lang-22ewjJ6F.js +0 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-BrLhsdZu.js +0 -247
- package/dist/Progress.vue_vue_type_style_index_0_lang-8m4aQ4CZ.js +0 -1
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-B9rRuGDt.js +0 -1
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-Zo3ozdqk.js +0 -101
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-DRYmVHMT.js +0 -1
- package/dist/Segmented.vue_vue_type_style_index_0_lang-BPt9_TEH.js +0 -165
- package/dist/Segmented.vue_vue_type_style_index_0_lang-BSt3GUbV.js +0 -1
- package/dist/Select.vue_vue_type_style_index_0_lang-D7VjqOBv.js +0 -1
- package/dist/Select.vue_vue_type_style_index_0_lang-XLlU2Du1.js +0 -769
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-CllMPygM.js +0 -1
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-D9NQzaRd.js +0 -32
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-2rpO7HY2.js +0 -58
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-vYeWc1nI.js +0 -1
- package/dist/Spinner.vue_vue_type_style_index_0_lang-D0mZzwBr.js +0 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-CLIDvWMp.js +0 -1
- package/dist/THead.vue_vue_type_style_index_0_lang-Bk62FCuE.js +0 -1
- package/dist/THead.vue_vue_type_style_index_0_lang-CDQ98k-9.js +0 -200
- package/dist/Textarea.vue_vue_type_style_index_0_lang-CY82h4f9.js +0 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-BrdekqZ8.js +0 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-i9HBxbnw.js +0 -737
- package/dist/Upload.vue_vue_type_style_index_0_lang-Bej4zFFq.js +0 -1020
- package/dist/Upload.vue_vue_type_style_index_0_lang-CTtVPcxp.js +0 -1
- package/dist/style-BEhqkSEE.js +0 -20
- package/dist/style-CYb6EX2Q.js +0 -1
- package/dist/useInputDataStates-D-XvZURF.js +0 -52
- package/dist/useInputDataStates-DvfSqKSa.js +0 -1
|
@@ -1,949 +0,0 @@
|
|
|
1
|
-
import { defineComponent as le, computed as i, createBlock as xe, openBlock as ue, unref as P, mergeProps as Re, withCtx as fe, createElementBlock as Ae, createVNode as $e, h as n, normalizeClass as qe, renderSlot as Fe, ref as Ce, watch as Ne, useSlots as Je, useAttrs as Qe, createSlots as Xe, renderList as Ye, normalizeProps as Ze, guardReactiveProps as et } from "vue";
|
|
2
|
-
import { createContext as We, ComboboxInput as tt, ComboboxAnchor as ot, injectComboboxRootContext as at, useFilter as nt, ComboboxPortal as lt, ComboboxContent as rt, useEmitAsProps as st, ComboboxRoot as it } from "reka-ui";
|
|
3
|
-
import { last as pt, isString as ve, cloneDeep as Le, omit as Me, isFunction as we, omitBy as ut, pick as De, isUndefined as ct } from "es-toolkit";
|
|
4
|
-
import { g as Oe, a as Se } from "./options-Bh1s18jm.js";
|
|
5
|
-
import { n as ne, v as H, e as Be, k as F, o as _e, h as dt, j as gt, g as mt, m as ft, q as vt, u as ht } from "./Icon.vue_vue_type_style_index_0_lang-26YK1SwL.js";
|
|
6
|
-
import { getBemBlock as bt, getBemElement as f, generateVariantClassList as U, normCls as X } from "@pantograph/utils";
|
|
7
|
-
import { cva as Pe } from "class-variance-authority";
|
|
8
|
-
import { _ as yt } from "./Empty.vue_vue_type_style_index_0_lang-Bk2nO0VN.js";
|
|
9
|
-
import { _ as Ct } from "./Skeleton.vue_vue_type_style_index_0_lang-2rpO7HY2.js";
|
|
10
|
-
import { _ as Ve } from "./Divider.vue_vue_type_style_index_0_lang-CfBklijs.js";
|
|
11
|
-
import { u as Vt, U as xt } from "./useInputDataStates-D-XvZURF.js";
|
|
12
|
-
import { u as _t } from "./useLazyLoading-Zo-PEp2E.js";
|
|
13
|
-
import { g as Ot, b as St } from "./Popover.vue_vue_type_style_index_0_lang-BrLhsdZu.js";
|
|
14
|
-
import { u as Bt } from "./ConfigProvider.vue_vue_type_script_setup_true_lang-D8R0hBKt.js";
|
|
15
|
-
import { _ as Pt } from "./ScrollContainer.vue_vue_type_style_index_0_lang-ioHY1esc.js";
|
|
16
|
-
import { _ as kt } from "./Tree.vue_vue_type_style_index_0_lang-i9HBxbnw.js";
|
|
17
|
-
import { b as It, _ as Tt } from "./Chip.vue_vue_type_style_index_0_lang-CRI3QwLZ.js";
|
|
18
|
-
import { _ as Ke, d as zt } from "./Avatar.vue_vue_type_style_index_0_lang-DmIuHoi3.js";
|
|
19
|
-
import { _ as Lt } from "./GraphicalObjectGroup.vue_vue_type_style_index_0_lang-CFIKZKMj.js";
|
|
20
|
-
import { _ as Ge } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-DFogOMOj.js";
|
|
21
|
-
import { _ as Mt } from "./Input.vue_vue_type_script_setup_true_lang-BZidgKiU.js";
|
|
22
|
-
import { whenever as wt } from "@vueuse/core";
|
|
23
|
-
import { a as Dt } from "./MenuItem.vue_vue_type_style_index_0_lang-CK2KrtJa.js";
|
|
24
|
-
import { _ as Et } from "./Checkbox.vue_vue_type_style_index_0_lang-QBA04hd1.js";
|
|
25
|
-
import "@pantograph/tokens";
|
|
26
|
-
import "@tanstack/vue-virtual";
|
|
27
|
-
const [ke, Rt] = We("Combobox"), [At, $t] = We("_Combobox"), k = bt("combobox"), Ue = ["sm", "md", "lg"], Ft = ["error", "warning", "success"], Nt = { key: 1 }, je = /* @__PURE__ */ le({
|
|
28
|
-
...Oe("ComboboxInput"),
|
|
29
|
-
__name: "ComboboxInput",
|
|
30
|
-
setup(g) {
|
|
31
|
-
const o = ke();
|
|
32
|
-
wt(
|
|
33
|
-
() => o.open.value && o.headerInputElement.value,
|
|
34
|
-
() => {
|
|
35
|
-
o.headerInputElement.value && o.open.value && o.focusOnInput();
|
|
36
|
-
}
|
|
37
|
-
);
|
|
38
|
-
const t = i(() => !ne(o.modelValue.value)), e = i(() => {
|
|
39
|
-
if (t.value) {
|
|
40
|
-
if (o.props.multiple && H(o.modelValue.value) && !o.props.noLastValueOnPlaceholder)
|
|
41
|
-
return o.getLabelByValue(pt(o.modelValue.value));
|
|
42
|
-
if (!o.props.multiple && !H(o.modelValue.value))
|
|
43
|
-
return o.getLabelByValue(o.modelValue.value);
|
|
44
|
-
}
|
|
45
|
-
return o.props.placeholder ?? "";
|
|
46
|
-
}), m = (N) => {
|
|
47
|
-
if (N.key === "Backspace" && o.props.multiple && H(o.modelValue.value) && ne(o.searchModel.value) && (o.setModelValue(o.modelValue.value.slice(0, -1)), ne(o.modelValue.value))) {
|
|
48
|
-
const T = setTimeout(() => {
|
|
49
|
-
o.focusOnInput(), clearTimeout(T);
|
|
50
|
-
}, 2);
|
|
51
|
-
}
|
|
52
|
-
}, p = f(k, "input"), L = Pe(p, {
|
|
53
|
-
variants: {
|
|
54
|
-
valuePlaceholder: U("value-placeholder", p)
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
return (N, T) => (ue(), xe(P(tt), Re(P(o).comboboxInputBinding.value, {
|
|
58
|
-
disabled: P(o).getDisabled.value,
|
|
59
|
-
placeholder: e.value,
|
|
60
|
-
"as-child": "",
|
|
61
|
-
modelValue: P(o).searchModel.value,
|
|
62
|
-
"onUpdate:modelValue": T[0] || (T[0] = (_) => P(o).searchModel.value = _),
|
|
63
|
-
onKeydown: m,
|
|
64
|
-
class: P(L)({
|
|
65
|
-
valuePlaceholder: t.value
|
|
66
|
-
}),
|
|
67
|
-
displayValue: () => ""
|
|
68
|
-
}), {
|
|
69
|
-
default: fe(() => [
|
|
70
|
-
P(o).props.headerSearch ? (ue(), xe(Mt, {
|
|
71
|
-
key: 0,
|
|
72
|
-
ref: P(o).headerInputElement,
|
|
73
|
-
placeholder: P(o).props.placeholder
|
|
74
|
-
}, {
|
|
75
|
-
leading: fe(({ iconSize: _ }) => [
|
|
76
|
-
$e(Be, {
|
|
77
|
-
size: _,
|
|
78
|
-
icon: "tabler:search",
|
|
79
|
-
flipOnDir: "rtl"
|
|
80
|
-
}, null, 8, ["size"])
|
|
81
|
-
]),
|
|
82
|
-
_: 1
|
|
83
|
-
}, 8, ["placeholder"])) : (ue(), Ae("input", Nt))
|
|
84
|
-
]),
|
|
85
|
-
_: 1
|
|
86
|
-
}, 16, ["disabled", "placeholder", "modelValue", "class"]));
|
|
87
|
-
}
|
|
88
|
-
}), Wt = le({
|
|
89
|
-
name: Se("ComboboxTrigger"),
|
|
90
|
-
props: {},
|
|
91
|
-
setup(g, { slots: o, attrs: t }) {
|
|
92
|
-
const e = ke(), m = ({ value: l }, C) => {
|
|
93
|
-
if (C.stopPropagation(), l && H(e.modelValue.value) && !e.getDisabled.value) {
|
|
94
|
-
const S = e.modelValue.value.filter((I) => I !== l);
|
|
95
|
-
e.setModelValue(S);
|
|
96
|
-
}
|
|
97
|
-
}, p = f(k, "trigger"), L = Pe(p, {
|
|
98
|
-
variants: {
|
|
99
|
-
size: U(Ue, p),
|
|
100
|
-
headerSearch: U("header-search", p),
|
|
101
|
-
status: U(Ft, p),
|
|
102
|
-
bordered: U("bordered", p),
|
|
103
|
-
multiple: U("multiple", p),
|
|
104
|
-
contentFit: U("content-fit", p),
|
|
105
|
-
wrapped: U("wrapped", p),
|
|
106
|
-
filled: U("filled", p)
|
|
107
|
-
}
|
|
108
|
-
}), N = i(() => {
|
|
109
|
-
switch (e.getSize.value) {
|
|
110
|
-
case "sm":
|
|
111
|
-
return "2xsm";
|
|
112
|
-
case "md":
|
|
113
|
-
default:
|
|
114
|
-
return "xsm";
|
|
115
|
-
}
|
|
116
|
-
}), T = i(() => {
|
|
117
|
-
if (!e.props.multiple && ve(e.modelValue.value) && !ne(e.modelValue.value))
|
|
118
|
-
return e.getOptionByValue(e.modelValue.value);
|
|
119
|
-
}), _ = (l = T.value) => {
|
|
120
|
-
if (e.props.selectedItemIconAsTrailingIcon && _e(l) && "icon" in l)
|
|
121
|
-
return l.icon;
|
|
122
|
-
}, j = i(() => _()), M = i(() => {
|
|
123
|
-
if (!e.props.noTrailing)
|
|
124
|
-
return e.props.trailingIcon;
|
|
125
|
-
}), y = i(() => {
|
|
126
|
-
var S, I;
|
|
127
|
-
const l = Le(e.modelValue.value), C = H(e.modelValue.value);
|
|
128
|
-
return {
|
|
129
|
-
modelValue: l,
|
|
130
|
-
open: Le(e.open.value),
|
|
131
|
-
option: C ? void 0 : e.getOptionByValue(e.modelValue.value),
|
|
132
|
-
options: C ? (I = (S = e.modelValue.value).map) == null ? void 0 : I.call(S, e.getOptionByValue).filter(Boolean) : void 0
|
|
133
|
-
};
|
|
134
|
-
}), W = () => {
|
|
135
|
-
e.onOpenChange(!e.open.value);
|
|
136
|
-
}, re = (l) => {
|
|
137
|
-
e.props.headerSearch;
|
|
138
|
-
}, O = i(() => ({
|
|
139
|
-
disabled: e.getDisabled.value,
|
|
140
|
-
tabindex: e.getDisabled.value || !e.props.headerSearch ? -1 : 0,
|
|
141
|
-
reference: e.props.reference,
|
|
142
|
-
"data-disabled": e.getDisabled.value ? "" : void 0,
|
|
143
|
-
"aria-disabled": e.getDisabled.value ?? void 0,
|
|
144
|
-
"aria-label": "Show popup",
|
|
145
|
-
"aria-haspopup": "listbox",
|
|
146
|
-
"aria-expanded": e.open.value,
|
|
147
|
-
"aria-controls": e.contentId,
|
|
148
|
-
"data-state": e.open.value ? "open" : "closed",
|
|
149
|
-
class: X(
|
|
150
|
-
L({
|
|
151
|
-
size: e.getSize.value,
|
|
152
|
-
status: e.getStatus.value === "success" && ne(e.modelValue.value) ? void 0 : e.getStatus.value,
|
|
153
|
-
bordered: e.props.bordered,
|
|
154
|
-
multiple: e.props.multiple,
|
|
155
|
-
contentFit: e.props.contentFit,
|
|
156
|
-
wrapped: e.props.wrapped,
|
|
157
|
-
filled: !ne(e.modelValue.value),
|
|
158
|
-
headerSearch: e.props.headerSearch
|
|
159
|
-
}),
|
|
160
|
-
e.props.triggerCls
|
|
161
|
-
),
|
|
162
|
-
...t
|
|
163
|
-
})), K = (l, C = N.value) => n(Be, { icon: l, size: C }), w = () => {
|
|
164
|
-
var S;
|
|
165
|
-
let l;
|
|
166
|
-
const C = (S = o.triggerTrailing) == null ? void 0 : S.call(o, y.value);
|
|
167
|
-
if (F(C) ? M.value && (l = K(M.value)) : l = C, l)
|
|
168
|
-
return n(
|
|
169
|
-
"div",
|
|
170
|
-
{ class: X(f(p, "trailing"), e.props.triggerTrailingCls) },
|
|
171
|
-
l
|
|
172
|
-
);
|
|
173
|
-
};
|
|
174
|
-
return () => {
|
|
175
|
-
var Z;
|
|
176
|
-
const l = (Z = o.trigger) == null ? void 0 : Z.call(o, y.value), C = !F(l), I = (() => {
|
|
177
|
-
if (!C) return !1;
|
|
178
|
-
const J = dt(l) ?? null, Q = J.length === 1 ? J[0] : J;
|
|
179
|
-
return Q ? gt(Q) && !mt(Q) : !0;
|
|
180
|
-
})(), { class: Y, ...q } = O.value;
|
|
181
|
-
return n(
|
|
182
|
-
ot,
|
|
183
|
-
{
|
|
184
|
-
...q,
|
|
185
|
-
class: C ? e.props.triggerCls : Y,
|
|
186
|
-
...e.comboboxTriggerBinding.value,
|
|
187
|
-
asChild: I,
|
|
188
|
-
as: I ? "template" : "button",
|
|
189
|
-
key: String(I),
|
|
190
|
-
onKeyUp: re,
|
|
191
|
-
onClick: W
|
|
192
|
-
},
|
|
193
|
-
() => {
|
|
194
|
-
if (C)
|
|
195
|
-
return l;
|
|
196
|
-
const J = (v) => {
|
|
197
|
-
var E, z;
|
|
198
|
-
const D = e.getOptionByValue(v) ?? { value: v };
|
|
199
|
-
return n(Ke, {
|
|
200
|
-
...D ? ((z = (E = e.props).getTagProps) == null ? void 0 : z.call(E, D)) ?? {} : {},
|
|
201
|
-
size: e.getTagSize.value
|
|
202
|
-
});
|
|
203
|
-
}, Q = (v) => {
|
|
204
|
-
var E, z;
|
|
205
|
-
const D = e.getOptionByValue(v) ?? { value: v };
|
|
206
|
-
return n(Ge, {
|
|
207
|
-
...D ? ((z = (E = e.props).getTagProps) == null ? void 0 : z.call(E, D)) ?? {} : {},
|
|
208
|
-
size: e.getTagSize.value
|
|
209
|
-
});
|
|
210
|
-
}, ee = () => {
|
|
211
|
-
if (!e.props.multiple && !e.props.multiple && !H(e.modelValue.value) && e.modelValue.value && (e.props.tagRenderMode && ["avatar", "go"].includes(e.props.tagRenderMode) || j.value || e.props.leadingIcon)) {
|
|
212
|
-
let v;
|
|
213
|
-
if (e.props.tagRenderMode === "avatar" ? v = J(e.modelValue.value) : e.props.tagRenderMode === "go" ? v = Q(e.modelValue.value) : j.value ? v = K(j.value) : e.props.leadingIcon && (v = K(e.props.leadingIcon)), !F(v))
|
|
214
|
-
return n(
|
|
215
|
-
"div",
|
|
216
|
-
{
|
|
217
|
-
class: X(
|
|
218
|
-
f(p, "leading"),
|
|
219
|
-
e.props.triggerLeadingCls
|
|
220
|
-
)
|
|
221
|
-
},
|
|
222
|
-
v
|
|
223
|
-
);
|
|
224
|
-
}
|
|
225
|
-
}, ce = () => {
|
|
226
|
-
const v = [], D = [
|
|
227
|
-
f(p, "tags"),
|
|
228
|
-
e.props.triggerContentCls,
|
|
229
|
-
e.props.triggerContentValueCls
|
|
230
|
-
], z = (() => {
|
|
231
|
-
if (e.props.multiple && H(e.modelValue.value)) {
|
|
232
|
-
if (e.props.tagRenderMode === "avatar")
|
|
233
|
-
return n(
|
|
234
|
-
zt,
|
|
235
|
-
{
|
|
236
|
-
maxCount: e.props.maxCount,
|
|
237
|
-
size: e.getTagSize.value,
|
|
238
|
-
closeable: !e.getDisabled.value,
|
|
239
|
-
noPopover: !0,
|
|
240
|
-
noWrap: !e.props.wrapped,
|
|
241
|
-
class: D
|
|
242
|
-
},
|
|
243
|
-
() => e.modelValue.value.map(J)
|
|
244
|
-
);
|
|
245
|
-
if (e.props.tagRenderMode === "go")
|
|
246
|
-
return n(
|
|
247
|
-
Lt,
|
|
248
|
-
{
|
|
249
|
-
maxCount: e.props.maxCount,
|
|
250
|
-
size: e.getTagSize.value,
|
|
251
|
-
closeable: !e.getDisabled.value,
|
|
252
|
-
noPopover: !0,
|
|
253
|
-
noWrap: !e.props.wrapped,
|
|
254
|
-
class: D
|
|
255
|
-
},
|
|
256
|
-
() => e.modelValue.value.map(Q)
|
|
257
|
-
);
|
|
258
|
-
if (e.props.tagRenderMode === "chip")
|
|
259
|
-
return n(
|
|
260
|
-
It,
|
|
261
|
-
{
|
|
262
|
-
maxCount: e.props.maxCount,
|
|
263
|
-
size: e.getTagSize.value,
|
|
264
|
-
color: "primary",
|
|
265
|
-
closeable: !e.getDisabled.value,
|
|
266
|
-
noPopover: !0,
|
|
267
|
-
noWrap: !e.props.wrapped,
|
|
268
|
-
class: D,
|
|
269
|
-
onClose: m
|
|
270
|
-
},
|
|
271
|
-
() => e.modelValue.value.map((R) => {
|
|
272
|
-
var ge, ae;
|
|
273
|
-
const se = () => e.getLabelByValue(R), he = ({ size: be }) => {
|
|
274
|
-
const me = _(e.getOptionByValue(R)) ?? e.props.leadingIcon;
|
|
275
|
-
return me ? K(me, be) : null;
|
|
276
|
-
}, ie = e.getOptionByValue(R);
|
|
277
|
-
return n(
|
|
278
|
-
Tt,
|
|
279
|
-
{
|
|
280
|
-
...ie ? ((ae = (ge = e.props).getTagProps) == null ? void 0 : ae.call(ge, ie)) ?? {} : {},
|
|
281
|
-
value: R,
|
|
282
|
-
class: X(f(p, "tag"), e.props.tagCls),
|
|
283
|
-
closeIconCls: f(p, "tag__close")
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
text: se,
|
|
287
|
-
leading: he
|
|
288
|
-
}
|
|
289
|
-
);
|
|
290
|
-
})
|
|
291
|
-
);
|
|
292
|
-
}
|
|
293
|
-
})();
|
|
294
|
-
return z && v.push(z), e.props.headerSearch ? e.props.showLabelValueOnHeaderSearch && !e.props.multiple && ve(e.modelValue.value) && v.push(
|
|
295
|
-
n(
|
|
296
|
-
"div",
|
|
297
|
-
{ class: f(p, "content__value") },
|
|
298
|
-
e.getLabelByValue(e.modelValue.value)
|
|
299
|
-
)
|
|
300
|
-
) : v.push(n(je)), n("div", { class: f(p, "content") }, v);
|
|
301
|
-
}, oe = [], te = ee();
|
|
302
|
-
F(te) || oe.push(te), oe.push(ce());
|
|
303
|
-
const de = w();
|
|
304
|
-
return F(de) || oe.push(de), oe;
|
|
305
|
-
}
|
|
306
|
-
);
|
|
307
|
-
};
|
|
308
|
-
}
|
|
309
|
-
}), Kt = /* @__PURE__ */ le({
|
|
310
|
-
...Oe("ComboboxLabel"),
|
|
311
|
-
__name: "ComboboxLabel",
|
|
312
|
-
setup(g) {
|
|
313
|
-
return (o, t) => (ue(), Ae("div", {
|
|
314
|
-
class: qe(P(f)(P(k), "label"))
|
|
315
|
-
}, [
|
|
316
|
-
Fe(o.$slots, "default")
|
|
317
|
-
], 2));
|
|
318
|
-
}
|
|
319
|
-
}), Ee = le({
|
|
320
|
-
name: Se("ComboboxOption"),
|
|
321
|
-
props: {
|
|
322
|
-
option: {
|
|
323
|
-
type: [Object, String],
|
|
324
|
-
required: !0
|
|
325
|
-
}
|
|
326
|
-
},
|
|
327
|
-
slots: Object,
|
|
328
|
-
setup(g, { slots: o }) {
|
|
329
|
-
const t = ke(), e = i(() => {
|
|
330
|
-
switch (t.getSize.value) {
|
|
331
|
-
case "sm":
|
|
332
|
-
return "2xsm";
|
|
333
|
-
case "lg":
|
|
334
|
-
return "sm";
|
|
335
|
-
case "md":
|
|
336
|
-
default:
|
|
337
|
-
return "xsm";
|
|
338
|
-
}
|
|
339
|
-
}), m = i(() => t.getOptionValue(g.option)), p = i(() => t.getOptionNoCheckbox(g.option)), L = i(() => t.getOptionClear(g.option)), N = i(() => t.getOptionSingle(g.option)), T = i(() => t.getOptionLabel(g.option)), _ = i(() => t.getOptionIcon(g.option)), j = i(
|
|
340
|
-
() => t.props.tree ? void 0 : t.getOptionDescription(g.option)
|
|
341
|
-
), M = i(() => t.getOptionDisabled(g.option)), y = i(() => t.isItemSelected(m.value)), W = f(k, "option"), re = () => {
|
|
342
|
-
if (!(t.props.tree || !m.value || M.value))
|
|
343
|
-
if (t.props.multiple)
|
|
344
|
-
if (L.value)
|
|
345
|
-
t.setModelValue([]), t.emit("select", void 0, !1);
|
|
346
|
-
else if (N.value)
|
|
347
|
-
t.setModelValue([m.value]), t.emit("select", m.value, !0, g.option);
|
|
348
|
-
else {
|
|
349
|
-
let O = H(t.modelValue.value) ? t.modelValue.value : [];
|
|
350
|
-
const K = O.includes(m.value);
|
|
351
|
-
O.length === 1 && t.getSingleByValue(O[0]) && m.value !== O[0] && (O = []), K ? (t.setModelValue(O.filter((w) => w !== m.value)), t.emit("select", m.value, !0, g.option)) : (t.setModelValue([...O, m.value]), t.emit("select", m.value, !1, g.option));
|
|
352
|
-
}
|
|
353
|
-
else L.value ? (t.setModelValue(void 0), t.emit("select", void 0, !1)) : (t.setModelValue(m.value), t.emit("select", m.value, !0, g.option));
|
|
354
|
-
};
|
|
355
|
-
if (!g.option) throw new Error("option is required");
|
|
356
|
-
return () => {
|
|
357
|
-
const O = (w) => {
|
|
358
|
-
var S, I, Y, q, Z;
|
|
359
|
-
const l = [];
|
|
360
|
-
!t.props.tree && t.props.multiple && t.props.checkbox && !p.value && l.push(
|
|
361
|
-
n(Et, {
|
|
362
|
-
modelValue: y.value,
|
|
363
|
-
size: w.checkboxSize,
|
|
364
|
-
disabled: M.value
|
|
365
|
-
})
|
|
366
|
-
);
|
|
367
|
-
const C = (S = o.leading) == null ? void 0 : S.call(o, { option: g.option });
|
|
368
|
-
return F(C) ? t.props.tagRenderMode === "avatar" ? l.push(
|
|
369
|
-
n(Ke, {
|
|
370
|
-
...((Y = (I = t.props).getTagProps) == null ? void 0 : Y.call(I, g.option)) ?? {},
|
|
371
|
-
size: t.getTagSize.value
|
|
372
|
-
})
|
|
373
|
-
) : t.props.tagRenderMode === "go" ? l.push(
|
|
374
|
-
n(Ge, {
|
|
375
|
-
...((Z = (q = t.props).getTagProps) == null ? void 0 : Z.call(q, g.option)) ?? {},
|
|
376
|
-
size: t.getTagSize.value
|
|
377
|
-
})
|
|
378
|
-
) : _.value && l.push(n(Be, { icon: _.value, size: e.value })) : l.push(C), F(l) ? null : l;
|
|
379
|
-
};
|
|
380
|
-
return (() => {
|
|
381
|
-
const w = !!j.value;
|
|
382
|
-
return n(
|
|
383
|
-
Dt,
|
|
384
|
-
{
|
|
385
|
-
class: W,
|
|
386
|
-
description: j.value,
|
|
387
|
-
title: T.value,
|
|
388
|
-
key: m.value,
|
|
389
|
-
selected: y.value,
|
|
390
|
-
unFocusable: !0,
|
|
391
|
-
leadingCenter: !w,
|
|
392
|
-
size: t.getSize.value,
|
|
393
|
-
disabled: M.value,
|
|
394
|
-
onClick: re
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
leading: O,
|
|
398
|
-
trailing: () => {
|
|
399
|
-
var l;
|
|
400
|
-
return (l = o.trailing) == null ? void 0 : l.call(o, { option: g.option });
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
);
|
|
404
|
-
})();
|
|
405
|
-
};
|
|
406
|
-
}
|
|
407
|
-
}), Gt = le({
|
|
408
|
-
name: Se("ComboboxWrapper"),
|
|
409
|
-
setup(g, { slots: o }) {
|
|
410
|
-
const t = At(), e = at(), m = Ce();
|
|
411
|
-
_t({ target: m });
|
|
412
|
-
const p = Ce(), L = Ot({ triggerRef: p, props: t.props }), { getFlipOnDir: N, getDir: T } = Bt(), _ = N("reversePlacementOnDir"), j = T(), M = St({
|
|
413
|
-
props: t.props,
|
|
414
|
-
flip: _,
|
|
415
|
-
emitsAsProps: t.emitsAsProps,
|
|
416
|
-
_dir: j,
|
|
417
|
-
controlAutoFocus: !1,
|
|
418
|
-
extraPropNames: ["bodyLock", "position"]
|
|
419
|
-
}), y = ({
|
|
420
|
-
key: a,
|
|
421
|
-
getterKey: r,
|
|
422
|
-
defaultValue: c,
|
|
423
|
-
noReturnOption: h
|
|
424
|
-
}) => (d) => {
|
|
425
|
-
const V = we(c) ? c(d) : c;
|
|
426
|
-
if (_e(d)) {
|
|
427
|
-
const A = d[a] ?? V, $ = r && t.props[r];
|
|
428
|
-
if ($) {
|
|
429
|
-
if (ve($))
|
|
430
|
-
return d[$] ?? A;
|
|
431
|
-
if (we($)) return $(d) ?? A;
|
|
432
|
-
}
|
|
433
|
-
return A;
|
|
434
|
-
}
|
|
435
|
-
return ve(d) && !h ? d ?? V : V;
|
|
436
|
-
}, W = y({
|
|
437
|
-
getterKey: "getValue",
|
|
438
|
-
key: "value"
|
|
439
|
-
}), re = y({
|
|
440
|
-
getterKey: "getNoCheckbox",
|
|
441
|
-
key: "noCheckbox"
|
|
442
|
-
}), O = y({
|
|
443
|
-
getterKey: "getSingle",
|
|
444
|
-
key: "single",
|
|
445
|
-
noReturnOption: !0
|
|
446
|
-
}), K = y({
|
|
447
|
-
getterKey: "getClear",
|
|
448
|
-
key: "clear",
|
|
449
|
-
noReturnOption: !0
|
|
450
|
-
}), w = y({
|
|
451
|
-
getterKey: "getLabel",
|
|
452
|
-
key: "label",
|
|
453
|
-
defaultValue: W
|
|
454
|
-
}), l = y({
|
|
455
|
-
getterKey: "getIcon",
|
|
456
|
-
key: "icon",
|
|
457
|
-
noReturnOption: !0
|
|
458
|
-
}), C = y({
|
|
459
|
-
getterKey: "getDescription",
|
|
460
|
-
key: "description",
|
|
461
|
-
noReturnOption: !0
|
|
462
|
-
}), S = y({
|
|
463
|
-
getterKey: "getDisabled",
|
|
464
|
-
key: "disabled",
|
|
465
|
-
defaultValue: !1,
|
|
466
|
-
noReturnOption: !0
|
|
467
|
-
}), I = y({
|
|
468
|
-
getterKey: "getGroupLabel",
|
|
469
|
-
key: "label",
|
|
470
|
-
noReturnOption: !0
|
|
471
|
-
}), Y = y({
|
|
472
|
-
getterKey: "getGroupOptions",
|
|
473
|
-
key: "options",
|
|
474
|
-
noReturnOption: !0
|
|
475
|
-
}), q = (a) => {
|
|
476
|
-
const r = (c) => {
|
|
477
|
-
if (c != null && c.length && a)
|
|
478
|
-
for (const h of c) {
|
|
479
|
-
if (W(h) === a) return h;
|
|
480
|
-
const d = Y(h);
|
|
481
|
-
if (d != null && d.length) {
|
|
482
|
-
const V = r(d);
|
|
483
|
-
if (V) return V;
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
};
|
|
487
|
-
return r(t.props.options);
|
|
488
|
-
}, Z = (a) => {
|
|
489
|
-
const r = q(a);
|
|
490
|
-
return r ? w(r) ?? a : a;
|
|
491
|
-
}, J = (a) => {
|
|
492
|
-
const r = q(a);
|
|
493
|
-
return r ? O(r) ?? !1 : !1;
|
|
494
|
-
}, { contains: Q } = nt({ sensitivity: "base" }), ee = i(() => {
|
|
495
|
-
const a = (r) => r == null ? void 0 : r.map((c) => {
|
|
496
|
-
const h = w(c), d = W(c), V = S(c), A = I(c), $ = !t.searchModel.value || h && Q(h, t.searchModel.value), s = Y(c), b = !t.props.tree || d;
|
|
497
|
-
if (s && b) {
|
|
498
|
-
const u = a(s);
|
|
499
|
-
if (u != null && u.length || $)
|
|
500
|
-
return {
|
|
501
|
-
groupLabel: A,
|
|
502
|
-
title: h,
|
|
503
|
-
key: d,
|
|
504
|
-
disabled: V,
|
|
505
|
-
children: u,
|
|
506
|
-
_option: c
|
|
507
|
-
};
|
|
508
|
-
}
|
|
509
|
-
return $ && b ? {
|
|
510
|
-
title: h,
|
|
511
|
-
key: d,
|
|
512
|
-
disabled: V,
|
|
513
|
-
_option: c
|
|
514
|
-
} : null;
|
|
515
|
-
}).filter(Boolean);
|
|
516
|
-
if (t.props.options)
|
|
517
|
-
return a(t.props.options);
|
|
518
|
-
}), { getDisabled: ce, getStatus: oe, getSize: te } = Vt({
|
|
519
|
-
getDisabled: () => t.props.disabled,
|
|
520
|
-
getSize: () => t.props.size,
|
|
521
|
-
getStatus: () => t.props.status
|
|
522
|
-
}), de = i(() => {
|
|
523
|
-
switch (te.value) {
|
|
524
|
-
case "sm":
|
|
525
|
-
return "xsm";
|
|
526
|
-
case "lg":
|
|
527
|
-
return "md";
|
|
528
|
-
case "md":
|
|
529
|
-
default:
|
|
530
|
-
return "sm";
|
|
531
|
-
}
|
|
532
|
-
}), { inputBindings: v, rootBindings: D } = xt({
|
|
533
|
-
getDisabled: () => ce.value
|
|
534
|
-
}), E = Ce(), z = () => {
|
|
535
|
-
var a, r, c, h, d, V, A;
|
|
536
|
-
e.open.value && e.inputElement.value && (t.props.headerSearch && ((a = E.value) != null && a.input) ? document.activeElement !== ((r = E.value) == null ? void 0 : r.input) && ((d = (h = (c = E.value) == null ? void 0 : c.input) == null ? void 0 : h.focus) == null || d.call(h)) : document.activeElement !== e.inputElement.value && ((A = (V = e.inputElement.value) == null ? void 0 : V.focus) == null || A.call(V)));
|
|
537
|
-
}, R = (a) => {
|
|
538
|
-
e.modelValue.value = a, t.emit("update:modelValue", a);
|
|
539
|
-
}, se = (a) => a === void 0 ? !1 : Array.isArray(e.modelValue.value) ? !!(a && e.modelValue.value.includes(a)) : e.modelValue.value === a;
|
|
540
|
-
Rt({
|
|
541
|
-
...t,
|
|
542
|
-
getOptionValue: W,
|
|
543
|
-
getOptionLabel: w,
|
|
544
|
-
getOptionSingle: O,
|
|
545
|
-
getOptionClear: K,
|
|
546
|
-
getOptionNoCheckbox: re,
|
|
547
|
-
getOptionDescription: C,
|
|
548
|
-
getOptionDisabled: S,
|
|
549
|
-
getOptionIcon: l,
|
|
550
|
-
getOptionByValue: q,
|
|
551
|
-
isItemSelected: se,
|
|
552
|
-
getLabelByValue: Z,
|
|
553
|
-
getSingleByValue: J,
|
|
554
|
-
focusOnInput: z,
|
|
555
|
-
setModelValue: R,
|
|
556
|
-
headerInputElement: E,
|
|
557
|
-
getDisabled: ce,
|
|
558
|
-
getStatus: oe,
|
|
559
|
-
getSize: te,
|
|
560
|
-
getTagSize: de,
|
|
561
|
-
comboboxInputBinding: v,
|
|
562
|
-
comboboxTriggerBinding: D,
|
|
563
|
-
...e,
|
|
564
|
-
modelValue: e.modelValue
|
|
565
|
-
}), Ne(
|
|
566
|
-
() => [t.props.clearOnChangeMultiple, t.props.multiple],
|
|
567
|
-
() => {
|
|
568
|
-
t.props.clearOnChangeMultiple && R(void 0);
|
|
569
|
-
}
|
|
570
|
-
);
|
|
571
|
-
const he = i(() => {
|
|
572
|
-
const a = t.props.scrollContainerProps ?? {};
|
|
573
|
-
return {
|
|
574
|
-
...a,
|
|
575
|
-
areaCls: [
|
|
576
|
-
f(k, "scroll_area"),
|
|
577
|
-
a == null ? void 0 : a.class,
|
|
578
|
-
a == null ? void 0 : a.areaCls
|
|
579
|
-
]
|
|
580
|
-
};
|
|
581
|
-
}), ie = f(k, "popup"), ge = Pe(ie, {
|
|
582
|
-
variants: {
|
|
583
|
-
size: U(Ue, ie)
|
|
584
|
-
}
|
|
585
|
-
}), ae = (a) => {
|
|
586
|
-
if (vt(a))
|
|
587
|
-
return `${a}px`;
|
|
588
|
-
if (typeof a == "string")
|
|
589
|
-
return a;
|
|
590
|
-
}, be = i(() => ae(t.props.popupWidth)), me = i(() => ae(t.props.popupHeight)), Ie = i(() => ae(t.props.minWidth)), Te = i(() => ({
|
|
591
|
-
type: te.value === "sm" ? "simple" : "advance",
|
|
592
|
-
...Me(t.props.emptyProps ?? {}, ["class"])
|
|
593
|
-
})), He = i(() => Me(t.props.skeletonProps ?? {}, ["class"]));
|
|
594
|
-
return () => {
|
|
595
|
-
var A, $;
|
|
596
|
-
const a = (s) => n(
|
|
597
|
-
Ee,
|
|
598
|
-
{
|
|
599
|
-
option: s
|
|
600
|
-
},
|
|
601
|
-
{
|
|
602
|
-
trailing: o.optionTrailing,
|
|
603
|
-
leading: o.optionLeading
|
|
604
|
-
}
|
|
605
|
-
), r = [];
|
|
606
|
-
let c;
|
|
607
|
-
if (t.props.tree) {
|
|
608
|
-
const b = H(e.modelValue.value) ? e.modelValue.value : e.modelValue.value ? [e.modelValue.value] : [];
|
|
609
|
-
c = n(
|
|
610
|
-
kt,
|
|
611
|
-
{
|
|
612
|
-
selectable: !0,
|
|
613
|
-
checkable: t.props.multiple && t.props.checkbox,
|
|
614
|
-
multiple: t.props.multiple,
|
|
615
|
-
defaultExpandAll: !0,
|
|
616
|
-
syncCheckboxAndSelect: t.props.multiple,
|
|
617
|
-
showLine: !0,
|
|
618
|
-
focusable: !1,
|
|
619
|
-
modelValue: b,
|
|
620
|
-
...t.props.treeProps ?? {},
|
|
621
|
-
data: ee.value ?? [],
|
|
622
|
-
onExpand: z,
|
|
623
|
-
onSelect: (u, x, B) => {
|
|
624
|
-
const G = K(u._option);
|
|
625
|
-
t.props.multiple ? R(G ? [] : B) : R(G || !x ? void 0 : u._key), t.emit("select", u._key, x, u._option);
|
|
626
|
-
},
|
|
627
|
-
class: "w-full"
|
|
628
|
-
},
|
|
629
|
-
{
|
|
630
|
-
node: (u) => a(u._option)
|
|
631
|
-
}
|
|
632
|
-
), r.push(c);
|
|
633
|
-
} else {
|
|
634
|
-
let s = !1;
|
|
635
|
-
const b = [];
|
|
636
|
-
if ((ee.value ?? []).forEach((u) => {
|
|
637
|
-
var x;
|
|
638
|
-
if ((x = u.children) != null && x.length) {
|
|
639
|
-
const B = [];
|
|
640
|
-
u.children.forEach((G) => {
|
|
641
|
-
const pe = a(G._option);
|
|
642
|
-
se(W(G._option)) && t.props.sortSelectedItems ? b.push(pe) : B.push(pe);
|
|
643
|
-
}), B.length && ((s || r.length) && (r.push(n(Ve)), s = !1), u.groupLabel && r.push(
|
|
644
|
-
n(Kt, { class: t.props.labelCls }, () => u.groupLabel)
|
|
645
|
-
), r.push(...B), s = !0);
|
|
646
|
-
} else {
|
|
647
|
-
const B = a(u._option);
|
|
648
|
-
se(W(u._option)) && t.props.sortSelectedItems ? b.push(B) : (s && (r.push(n(Ve)), s = !1), r.push(B));
|
|
649
|
-
}
|
|
650
|
-
}), t.props.sortSelectedItems && b.length) {
|
|
651
|
-
const u = !!r.length;
|
|
652
|
-
r.splice(0, 0, ...b), u && r.splice(b.length, 0, n(Ve));
|
|
653
|
-
}
|
|
654
|
-
}
|
|
655
|
-
const h = ft(
|
|
656
|
-
c ? [c] : r,
|
|
657
|
-
Ee
|
|
658
|
-
).filter(
|
|
659
|
-
(s) => {
|
|
660
|
-
var b;
|
|
661
|
-
return _e(s == null ? void 0 : s.props) && ((b = s == null ? void 0 : s.props) == null ? void 0 : b.option);
|
|
662
|
-
}
|
|
663
|
-
), d = !!(t.props.tree && ((A = ee.value) != null && A.length) || h != null && h.length), V = () => {
|
|
664
|
-
var b, u;
|
|
665
|
-
const s = [];
|
|
666
|
-
if (d || t.props.loading) {
|
|
667
|
-
const x = [];
|
|
668
|
-
if (d && x.push(...r), t.props.loading) {
|
|
669
|
-
const B = (b = o.loading) == null ? void 0 : b.call(o, {});
|
|
670
|
-
if (!F(B)) x.push(B);
|
|
671
|
-
else {
|
|
672
|
-
const G = new Array(d ? 2 : t.props.loadingRowCount).fill(1);
|
|
673
|
-
x.push(
|
|
674
|
-
...G.map(
|
|
675
|
-
() => n(Ct, {
|
|
676
|
-
size: te.value,
|
|
677
|
-
class: X(
|
|
678
|
-
f(k, "skeleton"),
|
|
679
|
-
t.props.skeletonCls
|
|
680
|
-
),
|
|
681
|
-
...He.value
|
|
682
|
-
})
|
|
683
|
-
)
|
|
684
|
-
);
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
s.push(
|
|
688
|
-
n(
|
|
689
|
-
"div",
|
|
690
|
-
{
|
|
691
|
-
class: X(f(k, "options"), t.props.optionsCls)
|
|
692
|
-
},
|
|
693
|
-
x
|
|
694
|
-
)
|
|
695
|
-
);
|
|
696
|
-
} else if (!d) {
|
|
697
|
-
const x = (u = o.empty) == null ? void 0 : u.call(o, Te.value);
|
|
698
|
-
F(x) ? s.push(
|
|
699
|
-
n(
|
|
700
|
-
yt,
|
|
701
|
-
{
|
|
702
|
-
class: X(f(k, "empty"), t.props.emptyCls),
|
|
703
|
-
...Te.value
|
|
704
|
-
},
|
|
705
|
-
{
|
|
706
|
-
title: o.emptyTitle,
|
|
707
|
-
description: o.emptyDescription,
|
|
708
|
-
actions: o.emptyActions,
|
|
709
|
-
image: o.emptyImage
|
|
710
|
-
}
|
|
711
|
-
)
|
|
712
|
-
) : s.push(x);
|
|
713
|
-
}
|
|
714
|
-
return t.props.lazyLoading && s.push(
|
|
715
|
-
n(
|
|
716
|
-
"div",
|
|
717
|
-
{ class: f(k, "lazy_loading") },
|
|
718
|
-
n("div", {
|
|
719
|
-
class: f(k, "lazy_loading_trigger"),
|
|
720
|
-
ref: m
|
|
721
|
-
})
|
|
722
|
-
)
|
|
723
|
-
), s;
|
|
724
|
-
};
|
|
725
|
-
return [
|
|
726
|
-
t.props.noTrigger ? null : n(
|
|
727
|
-
Wt,
|
|
728
|
-
{
|
|
729
|
-
ref: p,
|
|
730
|
-
...t.attrs,
|
|
731
|
-
style: {
|
|
732
|
-
...(($ = t.attrs) == null ? void 0 : $.style) ?? {},
|
|
733
|
-
"--ptc-combobox-trigger-min-w": Ie.value
|
|
734
|
-
}
|
|
735
|
-
},
|
|
736
|
-
{
|
|
737
|
-
trigger: o.trigger,
|
|
738
|
-
triggerTrailing: o.triggerTrailing
|
|
739
|
-
}
|
|
740
|
-
),
|
|
741
|
-
n(
|
|
742
|
-
lt,
|
|
743
|
-
L.value,
|
|
744
|
-
() => n(
|
|
745
|
-
rt,
|
|
746
|
-
{
|
|
747
|
-
...M.value,
|
|
748
|
-
class: X(ge(t.props), t.props.popupCls),
|
|
749
|
-
style: {
|
|
750
|
-
display: e.open.value ? void 0 : "none",
|
|
751
|
-
zIndex: t.props.zIndex,
|
|
752
|
-
"--ptc-combobox-popup-width": t.props.samePopupWidth ? void 0 : be.value,
|
|
753
|
-
"--ptc-combobox-popup-height": me.value,
|
|
754
|
-
"--ptc-combobox-trigger-min-w": Ie.value
|
|
755
|
-
},
|
|
756
|
-
onClick: z
|
|
757
|
-
},
|
|
758
|
-
() => {
|
|
759
|
-
var B, G, pe, ze;
|
|
760
|
-
const s = [], b = (G = o.header) == null ? void 0 : G.call(o, {
|
|
761
|
-
isEmpty: !((B = ee.value) != null && B.length),
|
|
762
|
-
search: t.searchModel.value
|
|
763
|
-
}), u = !F(b);
|
|
764
|
-
if (t.props.headerSearch || u) {
|
|
765
|
-
const ye = [];
|
|
766
|
-
u && ye.push(b), t.props.headerSearch && ye.push(n(je)), s.push(
|
|
767
|
-
n("div", { class: f(k, "header") }, ye)
|
|
768
|
-
);
|
|
769
|
-
}
|
|
770
|
-
s.push(n(Pt, he.value, V));
|
|
771
|
-
const x = (ze = o.footer) == null ? void 0 : ze.call(o, {
|
|
772
|
-
isEmpty: !((pe = ee.value) != null && pe.length),
|
|
773
|
-
search: t.searchModel.value
|
|
774
|
-
});
|
|
775
|
-
return F(x) || s.push(
|
|
776
|
-
n("div", { class: f(k, "footer") }, x)
|
|
777
|
-
), s;
|
|
778
|
-
}
|
|
779
|
-
)
|
|
780
|
-
)
|
|
781
|
-
];
|
|
782
|
-
};
|
|
783
|
-
}
|
|
784
|
-
}), bo = /* @__PURE__ */ le({
|
|
785
|
-
...Oe("Combobox"),
|
|
786
|
-
__name: "Combobox",
|
|
787
|
-
props: {
|
|
788
|
-
size: { default: "md" },
|
|
789
|
-
status: {},
|
|
790
|
-
multiple: { type: Boolean, default: void 0 },
|
|
791
|
-
noLastValueOnPlaceholder: { type: Boolean },
|
|
792
|
-
showLabelValueOnHeaderSearch: { type: Boolean },
|
|
793
|
-
zIndex: {},
|
|
794
|
-
checkbox: { type: Boolean, default: !0 },
|
|
795
|
-
tagRenderMode: { default: "chip" },
|
|
796
|
-
getTagProps: {},
|
|
797
|
-
tree: { type: Boolean },
|
|
798
|
-
treeProps: {},
|
|
799
|
-
contentFit: { type: Boolean },
|
|
800
|
-
wrapped: { type: Boolean },
|
|
801
|
-
sortSelectedItems: { type: Boolean },
|
|
802
|
-
noTrailing: { type: Boolean },
|
|
803
|
-
leadingIcon: {},
|
|
804
|
-
trailingIcon: { default: "tabler:chevron-down" },
|
|
805
|
-
selectedItemIconAsTrailingIcon: { type: Boolean, default: !0 },
|
|
806
|
-
maxCount: {},
|
|
807
|
-
to: {},
|
|
808
|
-
placeholder: {},
|
|
809
|
-
indicatorIcon: { default: "tabler:check" },
|
|
810
|
-
options: {},
|
|
811
|
-
getDisabled: {},
|
|
812
|
-
getLabel: {},
|
|
813
|
-
getDescription: {},
|
|
814
|
-
getValue: {},
|
|
815
|
-
getNoCheckbox: {},
|
|
816
|
-
getSingle: {},
|
|
817
|
-
getClear: {},
|
|
818
|
-
getGroupOptions: {},
|
|
819
|
-
getGroupLabel: {},
|
|
820
|
-
getIcon: {},
|
|
821
|
-
placement: { default: "bottom-start" },
|
|
822
|
-
reversePlacementOnDir: {},
|
|
823
|
-
loading: { type: Boolean },
|
|
824
|
-
skeletonProps: {},
|
|
825
|
-
loadingRowCount: { default: 10 },
|
|
826
|
-
lazyLoading: { type: Boolean },
|
|
827
|
-
bordered: { type: Boolean, default: !0 },
|
|
828
|
-
clearOnChangeMultiple: { type: Boolean, default: !0 },
|
|
829
|
-
triggerCls: {},
|
|
830
|
-
triggerLeadingCls: {},
|
|
831
|
-
triggerContentCls: {},
|
|
832
|
-
triggerContentPlaceholderCls: {},
|
|
833
|
-
triggerContentValueCls: {},
|
|
834
|
-
triggerTrailingCls: {},
|
|
835
|
-
itemLeadingCls: {},
|
|
836
|
-
optionCls: {},
|
|
837
|
-
tagCls: {},
|
|
838
|
-
popupCls: {},
|
|
839
|
-
labelCls: {},
|
|
840
|
-
optionsCls: {},
|
|
841
|
-
optionTextCls: {},
|
|
842
|
-
optionContentCls: {},
|
|
843
|
-
emptyCls: {},
|
|
844
|
-
skeletonCls: {},
|
|
845
|
-
scrollContainerProps: {},
|
|
846
|
-
emptyProps: {},
|
|
847
|
-
samePopupWidth: { type: Boolean, default: !0 },
|
|
848
|
-
popupHeight: { default: 384 },
|
|
849
|
-
popupWidth: {},
|
|
850
|
-
minWidth: {},
|
|
851
|
-
headerSearch: { type: Boolean },
|
|
852
|
-
search: {},
|
|
853
|
-
noTrigger: { type: Boolean },
|
|
854
|
-
open: { type: Boolean, default: void 0 },
|
|
855
|
-
defaultOpen: { type: Boolean, default: void 0 },
|
|
856
|
-
resetSearchTermOnBlur: { type: Boolean, default: !0 },
|
|
857
|
-
resetSearchTermOnSelect: { type: Boolean, default: !0 },
|
|
858
|
-
modelValue: {},
|
|
859
|
-
defaultValue: {},
|
|
860
|
-
dir: {},
|
|
861
|
-
disabled: { type: Boolean, default: void 0 },
|
|
862
|
-
highlightOnHover: { type: Boolean },
|
|
863
|
-
by: {},
|
|
864
|
-
asChild: { type: Boolean },
|
|
865
|
-
as: {},
|
|
866
|
-
name: {},
|
|
867
|
-
required: { type: Boolean },
|
|
868
|
-
reference: {},
|
|
869
|
-
forceMount: { type: Boolean, default: void 0 },
|
|
870
|
-
position: { default: "popper" },
|
|
871
|
-
bodyLock: { type: Boolean },
|
|
872
|
-
side: {},
|
|
873
|
-
sideOffset: { default: 4 },
|
|
874
|
-
align: {},
|
|
875
|
-
alignOffset: {},
|
|
876
|
-
avoidCollisions: { type: Boolean, default: void 0 },
|
|
877
|
-
collisionBoundary: {},
|
|
878
|
-
collisionPadding: { default: 4 },
|
|
879
|
-
arrowPadding: {},
|
|
880
|
-
sticky: {},
|
|
881
|
-
hideWhenDetached: { type: Boolean, default: void 0 },
|
|
882
|
-
positionStrategy: { default: "fixed" },
|
|
883
|
-
updatePositionStrategy: {},
|
|
884
|
-
disableUpdateOnLayoutShift: { type: Boolean, default: void 0 },
|
|
885
|
-
prioritizePosition: { type: Boolean, default: void 0 },
|
|
886
|
-
disableOutsidePointerEvents: { type: Boolean, default: !0 },
|
|
887
|
-
defer: { type: Boolean }
|
|
888
|
-
},
|
|
889
|
-
emits: ["update:search", "select", "update:modelValue", "highlight", "update:open", "escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"],
|
|
890
|
-
setup(g, { emit: o }) {
|
|
891
|
-
const t = g, e = o, m = st(e), p = i(
|
|
892
|
-
() => ut(
|
|
893
|
-
{
|
|
894
|
-
...De(t, [
|
|
895
|
-
"open",
|
|
896
|
-
"defaultOpen",
|
|
897
|
-
"defaultValue",
|
|
898
|
-
"modelValue",
|
|
899
|
-
"by",
|
|
900
|
-
"dir",
|
|
901
|
-
"multiple",
|
|
902
|
-
"disabled"
|
|
903
|
-
]),
|
|
904
|
-
...De(m, [
|
|
905
|
-
"onUpdate:modelValue",
|
|
906
|
-
"onUpdate:open"
|
|
907
|
-
]),
|
|
908
|
-
ignoreFilter: !0
|
|
909
|
-
},
|
|
910
|
-
ct
|
|
911
|
-
)
|
|
912
|
-
), L = ht(t, "search", e, {
|
|
913
|
-
passive: t.search === void 0
|
|
914
|
-
});
|
|
915
|
-
Ne(
|
|
916
|
-
() => t.open,
|
|
917
|
-
(_) => {
|
|
918
|
-
_ || (L.value = void 0);
|
|
919
|
-
}
|
|
920
|
-
);
|
|
921
|
-
const N = Je(), T = Qe();
|
|
922
|
-
return $t({
|
|
923
|
-
attrs: T,
|
|
924
|
-
props: t,
|
|
925
|
-
emit: e,
|
|
926
|
-
searchModel: L,
|
|
927
|
-
emitsAsProps: m
|
|
928
|
-
}), (_, j) => (ue(), xe(P(it), Re(p.value, { class: P(k) }), {
|
|
929
|
-
default: fe(() => [
|
|
930
|
-
$e(P(Gt), null, Xe({ _: 2 }, [
|
|
931
|
-
Ye(Object.keys(N), (M) => ({
|
|
932
|
-
name: M,
|
|
933
|
-
fn: fe((y) => [
|
|
934
|
-
Fe(_.$slots, M, Ze(et(y)))
|
|
935
|
-
])
|
|
936
|
-
}))
|
|
937
|
-
]), 1024)
|
|
938
|
-
]),
|
|
939
|
-
_: 3
|
|
940
|
-
}, 16, ["class"]));
|
|
941
|
-
}
|
|
942
|
-
});
|
|
943
|
-
export {
|
|
944
|
-
Ue as C,
|
|
945
|
-
bo as _,
|
|
946
|
-
Ft as a,
|
|
947
|
-
ke as i,
|
|
948
|
-
Rt as p
|
|
949
|
-
};
|