@pantograph/vue 0.30.8 → 0.30.10
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 +6 -6
- 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-D9p0ZSR8.js +1 -0
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-CBomTo6K.js → ActionButton.vue_vue_type_script_setup_true_lang-DxSqcwKk.js} +10 -10
- package/dist/Alert/Alert.d.ts +1 -1
- package/dist/Alert/index.js +67 -67
- package/dist/Alert/index.umd.cjs +1 -1
- package/dist/Avatar/Avatar.d.ts +1 -1
- package/dist/Avatar/index.js +2 -2
- package/dist/Avatar/index.umd.cjs +1 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-5wPimdpu.js +201 -0
- package/dist/Avatar.vue_vue_type_style_index_0_lang-KicZdDY5.js +1 -0
- package/dist/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/AvatarGroup/index.umd.cjs +1 -1
- package/dist/Badge/index.js +1 -1
- package/dist/Badge/index.umd.cjs +1 -1
- package/dist/Badge.vue_vue_type_script_setup_true_lang-CQFRqDV5.js +1 -0
- package/dist/Badge.vue_vue_type_script_setup_true_lang-D5HMKOHA.js +58 -0
- package/dist/Base/BaseBadge/BaseBadge.d.ts +1 -1
- package/dist/Base/BaseButton/BaseButton.d.ts +2 -2
- package/dist/Base/BaseInput/BaseInput.d.ts +1 -1
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-Xgu4prlJ.js → BaseBadge.vue_vue_type_style_index_0_lang-Ca-g18u1.js} +27 -27
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-DDBBnMzY.js +1 -0
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-DMu6fhel.js +1 -0
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-DklrsHU0.js +226 -0
- package/dist/BaseInput.vue_vue_type_style_index_0_lang-0yOrRnPS.js +1 -0
- package/dist/BaseInput.vue_vue_type_style_index_0_lang-tmtwQWes.js +159 -0
- package/dist/Blanket/Blanket.d.ts +1 -1
- package/dist/Blanket/index.js +1 -1
- package/dist/Blanket/index.umd.cjs +1 -1
- package/dist/Blanket.vue_vue_type_style_index_0_lang-BPkyT5c6.js +22 -0
- package/dist/Blanket.vue_vue_type_style_index_0_lang-Bygy0Fq3.js +1 -0
- package/dist/Button/Button.d.ts +6 -6
- 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-4r_7Pf3d.js +1 -0
- package/dist/{Button.vue_vue_type_script_setup_true_lang-d-VCkYuL.js → Button.vue_vue_type_script_setup_true_lang-BriN8N0z.js} +19 -19
- package/dist/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/ButtonGroup/index.umd.cjs +1 -1
- package/dist/Card/Card.d.ts +1 -1
- package/dist/Card/index.js +69 -69
- package/dist/Card/index.umd.cjs +1 -1
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Checkbox/index.js +2 -2
- package/dist/Checkbox/index.umd.cjs +1 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-DHP7ASJN.js +1 -0
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-upe4IS_Q.js +224 -0
- package/dist/CheckboxGroup/index.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- package/dist/Chip/Chip.d.ts +2 -2
- package/dist/Chip/index.js +2 -2
- package/dist/Chip/index.umd.cjs +1 -1
- package/dist/Chip.vue_vue_type_style_index_0_lang-CSqQRmWd.js +1 -0
- package/dist/Chip.vue_vue_type_style_index_0_lang-CjM8-c2F.js +144 -0
- package/dist/ChipGroup/ChipGroup.d.ts +2 -2
- package/dist/ChipGroup/index.js +1 -1
- package/dist/ChipGroup/index.umd.cjs +1 -1
- package/dist/ColorPicker/ColorPicker.d.ts +1 -1
- package/dist/ColorPicker/index.js +2 -2
- package/dist/ColorPicker/index.umd.cjs +1 -1
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-BDXrVKWB.js → ColorPicker.vue_vue_type_style_index_0_lang-D_7EPnnc.js} +88 -88
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-BI2oaC3F.js → ColorPicker.vue_vue_type_style_index_0_lang-hWbfLKPH.js} +2 -2
- package/dist/ColorSwatch/index.js +47 -47
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/ColorSwatchGroup/ColorSwatchGroup.d.ts +1 -1
- package/dist/ColorSwatchGroup/index.js +1 -1
- package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-BK_7bsZT.js +1 -0
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-Cz8lY-US.js +171 -0
- package/dist/ColorTrigger/index.js +2 -2
- package/dist/ColorTrigger/index.umd.cjs +1 -1
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-B6h8UYUo.js +1 -0
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-Iid3Aoo0.js +89 -0
- package/dist/Combobox/index.js +398 -398
- package/dist/Combobox/index.umd.cjs +1 -1
- package/dist/Combobox/types.d.ts +1 -1
- package/dist/Comment/Comment.d.ts +1 -1
- package/dist/Comment/CommentActions.d.ts +8 -8
- package/dist/Comment/CommentEditor.d.ts +30 -26
- package/dist/Comment/CommentReactions.d.ts +4 -4
- package/dist/Comment/CommentTrigger.d.ts +1 -1
- package/dist/Comment/index.js +428 -432
- package/dist/Comment/index.umd.cjs +1 -1
- package/dist/DataTable/components/DataTableHeaderCell.d.ts +6 -6
- package/dist/DataTable/index.js +1019 -1011
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/DataTable/types/cell.d.ts +1 -1
- package/dist/DataTable/types/index.d.ts +1 -1
- package/dist/DataTable/utils/useColumnFixed.d.ts +2 -1
- package/dist/DataTable/utils/useColumnSize.d.ts +4 -1
- package/dist/Divider/Divider.d.ts +1 -1
- package/dist/Divider/index.js +2 -2
- package/dist/Divider/index.umd.cjs +1 -1
- package/dist/Divider.vue_vue_type_style_index_0_lang-Heq87yk1.js +1 -0
- package/dist/{Divider.vue_vue_type_style_index_0_lang-GfWcHNix.js → Divider.vue_vue_type_style_index_0_lang-eXMD78c3.js} +15 -15
- package/dist/DropZone/DropZone.d.ts +1 -1
- package/dist/DropZone/index.js +71 -71
- package/dist/DropZone/index.umd.cjs +1 -1
- package/dist/Empty/Empty.d.ts +1 -1
- package/dist/Empty/index.js +2 -2
- package/dist/Empty/index.umd.cjs +1 -1
- package/dist/Empty.vue_vue_type_style_index_0_lang-BNHYA3-k.js +1 -0
- package/dist/{Empty.vue_vue_type_style_index_0_lang-DnH-eKDp.js → Empty.vue_vue_type_style_index_0_lang-CjN-zB7k.js} +68 -68
- package/dist/FloatButton/FloatButton.d.ts +6 -6
- 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-BuUin84o.js → FloatButton.vue_vue_type_script_setup_true_lang-CunaTFDQ.js} +11 -11
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-RlW1TNPB.js +1 -0
- package/dist/Form/Form.d.ts +2 -2
- package/dist/Form/FormItem.d.ts +1 -1
- package/dist/Form/index.js +396 -396
- package/dist/Form/index.umd.cjs +3 -3
- package/dist/FormValidation/FormValidation.d.ts +1 -1
- package/dist/FormValidation/index.js +1 -1
- package/dist/FormValidation/index.umd.cjs +1 -1
- package/dist/FormValidation.vue_vue_type_style_index_0_lang-DcXAThgj.js +1 -0
- package/dist/FormValidation.vue_vue_type_style_index_0_lang-FGFyFCis.js +45 -0
- package/dist/GOPicker/GOPicker.model.d.ts +1 -1
- package/dist/GOPicker/index.js +226 -226
- package/dist/GOPicker/index.umd.cjs +1 -1
- package/dist/GraphicalObject/index.js +1 -1
- package/dist/GraphicalObject/index.umd.cjs +1 -1
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-BDZKksip.js +1 -0
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-km5VsLBH.js → GraphicalObject.vue_vue_type_script_setup_true_lang-Bnu4NkgN.js} +15 -15
- package/dist/GraphicalObjectGroup/GraphicalObjectGroup.d.ts +1 -1
- package/dist/GraphicalObjectGroup/index.js +28 -28
- package/dist/GraphicalObjectGroup/index.umd.cjs +1 -1
- package/dist/HoverCard/index.js +44 -44
- package/dist/HoverCard/index.umd.cjs +1 -1
- package/dist/Icon/Icon.d.ts +1 -1
- package/dist/Icon/index.js +2 -2
- package/dist/Icon/index.umd.cjs +1 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-D7PiBbDb.js +59 -0
- package/dist/Icon.vue_vue_type_style_index_0_lang-D9YESScE.js +1 -0
- package/dist/IconButton/IconButton.d.ts +6 -6
- 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-BwL7lOA2.js → IconButton.vue_vue_type_script_setup_true_lang-k-2rKarz.js} +10 -10
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-zUlWLsjp.js +1 -0
- package/dist/Image/Image.d.ts +1 -1
- package/dist/Image/index.js +2 -2
- package/dist/Image/index.umd.cjs +1 -1
- package/dist/Image.vue_vue_type_style_index_0_lang-BBxqLThg.js +1 -0
- package/dist/Image.vue_vue_type_style_index_0_lang-fXu01ETy.js +121 -0
- package/dist/IndentLevel/IndentLevel.d.ts +1 -1
- package/dist/IndentLevel/index.js +2 -2
- package/dist/IndentLevel/index.umd.cjs +1 -1
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-2IAeKcy_.js +1 -0
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-DUTq_uyH.js +98 -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-D-_aVIkv.js +38 -0
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-DRwrazbG.js +1 -0
- package/dist/Input/index.js +1 -1
- package/dist/Input/index.umd.cjs +1 -1
- package/dist/Input.vue_vue_type_script_setup_true_lang-9w1hhP5f.js +127 -0
- package/dist/Input.vue_vue_type_script_setup_true_lang-DCVDjXc6.js +1 -0
- package/dist/InputNumber/index.js +1 -1
- package/dist/InputNumber/index.umd.cjs +1 -1
- package/dist/InputNumber.vue_vue_type_script_setup_true_lang-BxrHntWT.js +1 -0
- package/dist/{InputNumber.vue_vue_type_script_setup_true_lang-DcxalTaC.js → InputNumber.vue_vue_type_script_setup_true_lang-C9Yla-kw.js} +149 -149
- package/dist/Kbd/Kbd.d.ts +1 -1
- package/dist/Kbd/index.js +26 -26
- package/dist/Kbd/index.umd.cjs +1 -1
- package/dist/Label/Label.d.ts +1 -1
- package/dist/Label/index.js +2 -2
- package/dist/Label/index.umd.cjs +1 -1
- package/dist/Label.vue_vue_type_style_index_0_lang-B5m20cLB.js +128 -0
- package/dist/Label.vue_vue_type_style_index_0_lang-teg6eTkO.js +1 -0
- package/dist/Link/Link.d.ts +1 -1
- package/dist/Link/index.js +40 -40
- package/dist/Link/index.umd.cjs +1 -1
- package/dist/Menu/Menu.d.ts +1 -1
- package/dist/Menu/index.js +2 -2
- package/dist/Menu/index.umd.cjs +1 -1
- package/dist/MenuItem/MenuItemContent.d.ts +1 -1
- package/dist/MenuItem/index.js +2 -2
- package/dist/MenuItem/index.umd.cjs +1 -1
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-Bwl4xGwb.js +1 -0
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-DsicR4mL.js +595 -0
- package/dist/Pagination/Pagination.d.ts +1 -1
- package/dist/Pagination/index.js +130 -130
- package/dist/Pagination/index.umd.cjs +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/Popover/index.umd.cjs +1 -1
- package/dist/Popover/type.d.ts +1 -1
- package/dist/Progress/Progress.d.ts +1 -1
- package/dist/Progress/index.js +2 -2
- package/dist/Progress/index.umd.cjs +1 -1
- package/dist/Progress/types.d.ts +1 -1
- package/dist/Progress.vue_vue_type_style_index_0_lang-B-OM1USr.js +1 -0
- package/dist/{Progress.vue_vue_type_style_index_0_lang-Ba_Fby6M.js → Progress.vue_vue_type_style_index_0_lang-DPoChN9a.js} +166 -166
- package/dist/RadioGroup/RadioGroup.d.ts +1 -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-CKst3QRj.js +105 -0
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-Cvo452s0.js +1 -0
- package/dist/ScrollContainer/Mask.d.ts +1 -1
- package/dist/ScrollContainer/ScrollContainer.d.ts +1 -1
- package/dist/ScrollContainer/index.js +2 -2
- package/dist/ScrollContainer/index.umd.cjs +1 -1
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-XfGedoBb.js +1 -0
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-wNU6CesK.js +227 -0
- package/dist/Segmented/Segmented.d.ts +1 -1
- package/dist/Segmented/index.js +2 -2
- package/dist/Segmented/index.umd.cjs +1 -1
- package/dist/Segmented.vue_vue_type_style_index_0_lang-CCAxhINA.js +169 -0
- package/dist/Segmented.vue_vue_type_style_index_0_lang-DyOI710D.js +1 -0
- package/dist/Select/index.js +2 -2
- package/dist/Select/index.umd.cjs +1 -1
- package/dist/Select/types.d.ts +1 -1
- package/dist/{Select.vue_vue_type_style_index_0_lang-BiFW4jfz.js → Select.vue_vue_type_style_index_0_lang-C2GqZ0-u.js} +272 -272
- package/dist/Select.vue_vue_type_style_index_0_lang-CZFrNbVt.js +1 -0
- package/dist/Shortcut/Shortcut.d.ts +1 -1
- package/dist/Shortcut/index.js +1 -1
- package/dist/Shortcut/index.umd.cjs +1 -1
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-D_Nl5CG7.js +31 -0
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-DnugoLzl.js +1 -0
- package/dist/Skeleton/Skeleton.d.ts +1 -1
- package/dist/Skeleton/index.js +2 -2
- package/dist/Skeleton/index.umd.cjs +1 -1
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-BrFBNDlI.js +57 -0
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-oMsTff2I.js +1 -0
- package/dist/Spinner/Spinner.d.ts +1 -1
- package/dist/Spinner/index.js +2 -2
- package/dist/Spinner/index.umd.cjs +1 -1
- package/dist/Spinner.vue_vue_type_style_index_0_lang-B7KhPt_X.js +1 -0
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-BCf2tJzR.js → Spinner.vue_vue_type_style_index_0_lang-C-Pajopx.js} +27 -27
- package/dist/Steps/Step.d.ts +1 -1
- package/dist/Steps/Steps.d.ts +1 -1
- package/dist/Steps/index.js +126 -126
- package/dist/Steps/index.umd.cjs +1 -1
- package/dist/SubMenu/index.js +1 -1
- package/dist/SubMenu/index.umd.cjs +1 -1
- package/dist/Switch/Switch.d.ts +1 -1
- package/dist/Switch/index.js +2 -2
- package/dist/Switch/index.umd.cjs +1 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-BmsIxVHQ.js +137 -0
- package/dist/Switch.vue_vue_type_style_index_0_lang-DGgteB6-.js +1 -0
- package/dist/Table/TBody.d.ts +1 -1
- package/dist/Table/TFoot.d.ts +1 -1
- package/dist/Table/THead.d.ts +1 -1
- package/dist/Table/Table.d.ts +1 -1
- package/dist/Table/Td.d.ts +1 -1
- package/dist/Table/Th.d.ts +1 -1
- package/dist/Table/Tr.d.ts +1 -1
- package/dist/Table/index.js +141 -141
- package/dist/Table/index.umd.cjs +1 -1
- package/dist/Tabs/TabList.d.ts +1 -1
- package/dist/Tabs/TabTrigger.d.ts +1 -1
- package/dist/Tabs/index.js +193 -193
- package/dist/Tabs/index.umd.cjs +1 -1
- package/dist/Textarea/Textarea.d.ts +1 -1
- package/dist/Textarea/index.js +53 -53
- package/dist/Textarea/index.umd.cjs +1 -1
- package/dist/Toast/Toast.d.ts +1 -1
- package/dist/Toast/index.js +102 -102
- package/dist/Toast/index.umd.cjs +1 -1
- package/dist/Tree/Tree.model.d.ts +1 -1
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/index.umd.cjs +1 -1
- package/dist/Upload/index.js +375 -375
- package/dist/Upload/index.umd.cjs +1 -1
- package/dist/Upload/types.d.ts +1 -1
- package/dist/index-B1i4l7x_.js +1 -0
- package/dist/index-BOecemV4.js +1 -0
- package/dist/index-CFgby7sR.js +1 -0
- package/dist/index-CVKJ--1_.js +281 -0
- package/dist/index-CZ5v-Cfi.js +1 -0
- package/dist/{index-BCPptNhu.js → index-EzEipSqD.js} +21 -21
- package/dist/index-PGo1VyBF.js +58 -0
- package/dist/{index-_lrD3ofV.js → index-WDp1-fAG.js} +239 -239
- package/dist/index.js +40 -40
- package/dist/index.umd.cjs +1 -1
- package/dist/style/index.css +1 -1
- package/dist/use/index.js +41 -41
- package/dist/use/index.umd.cjs +1 -1
- package/package.json +2 -2
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-CH_Oquxt.js +0 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-Br3Z0y8H.js +0 -201
- package/dist/Avatar.vue_vue_type_style_index_0_lang-DldQzFne.js +0 -1
- package/dist/Badge.vue_vue_type_script_setup_true_lang-BVE5H-tP.js +0 -1
- package/dist/Badge.vue_vue_type_script_setup_true_lang-BYCiP2uS.js +0 -58
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-DQMQ2WbE.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-CLFsLZTl.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-f9XsnFlF.js +0 -226
- package/dist/BaseInput.vue_vue_type_style_index_0_lang-DdjridzV.js +0 -1
- package/dist/BaseInput.vue_vue_type_style_index_0_lang-Djl15xzS.js +0 -159
- package/dist/Blanket.vue_vue_type_style_index_0_lang-BZDbPoxP.js +0 -22
- package/dist/Blanket.vue_vue_type_style_index_0_lang-CDrlnkqH.js +0 -1
- package/dist/Button.vue_vue_type_script_setup_true_lang-BjM34N0T.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-BfiCl2A5.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-D-7D_c_A.js +0 -224
- package/dist/Chip.vue_vue_type_style_index_0_lang-BgTLPRMz.js +0 -1
- package/dist/Chip.vue_vue_type_style_index_0_lang-CmXECWtq.js +0 -144
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-C4bagGpG.js +0 -1
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-oV_EmLx_.js +0 -171
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-CAok_I9N.js +0 -89
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-Yg82Jn5N.js +0 -1
- package/dist/Divider.vue_vue_type_style_index_0_lang-D3wrVsBd.js +0 -1
- package/dist/Empty.vue_vue_type_style_index_0_lang-CRS28Wia.js +0 -1
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-D2jtoN59.js +0 -1
- package/dist/FormValidation.vue_vue_type_style_index_0_lang-5tWE2LgD.js +0 -45
- package/dist/FormValidation.vue_vue_type_style_index_0_lang-p8foP-Nc.js +0 -1
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-mMrUHRm_.js +0 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-CD9EvvB5.js +0 -59
- package/dist/Icon.vue_vue_type_style_index_0_lang-DOQsa_aO.js +0 -1
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-CxiVq3Pa.js +0 -1
- package/dist/Image.vue_vue_type_style_index_0_lang-BK_dgR8l.js +0 -1
- package/dist/Image.vue_vue_type_style_index_0_lang-CQv-I6_G.js +0 -121
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-CkvTqlkt.js +0 -98
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-ra2hBDxs.js +0 -1
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-Cd4asWR8.js +0 -38
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-DFuzzwXK.js +0 -1
- package/dist/Input.vue_vue_type_script_setup_true_lang-CzKEJH7a.js +0 -127
- package/dist/Input.vue_vue_type_script_setup_true_lang-DTTGUaRI.js +0 -1
- package/dist/InputNumber.vue_vue_type_script_setup_true_lang-DDwIkrP0.js +0 -1
- package/dist/Label.vue_vue_type_style_index_0_lang-6bIJ5i7z.js +0 -128
- package/dist/Label.vue_vue_type_style_index_0_lang-Gvoq3arA.js +0 -1
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-BhdOsuVb.js +0 -595
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-DYhvQVbp.js +0 -1
- package/dist/Progress.vue_vue_type_style_index_0_lang-D_g_XsJ4.js +0 -1
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-Dnuebynm.js +0 -105
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-MqvqH3uR.js +0 -1
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-Br7-ZHr3.js +0 -1
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-CRjnv1ii.js +0 -227
- package/dist/Segmented.vue_vue_type_style_index_0_lang-CRoZKg2q.js +0 -1
- package/dist/Segmented.vue_vue_type_style_index_0_lang-D20lEgXh.js +0 -169
- package/dist/Select.vue_vue_type_style_index_0_lang-DI_YhCCT.js +0 -1
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-DTdKfRum.js +0 -31
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-ahrcqk01.js +0 -1
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-DOsf2SEN.js +0 -57
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-vZBJnVJj.js +0 -1
- package/dist/Spinner.vue_vue_type_style_index_0_lang-C6vFiHl7.js +0 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-BWuuLt7A.js +0 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-DM0BBZ3s.js +0 -137
- package/dist/index--fAgg2DC.js +0 -281
- package/dist/index-CUuaEiq_.js +0 -1
- package/dist/index-CaXYyVxq.js +0 -1
- package/dist/index-ClFtJyYC.js +0 -58
- package/dist/index-DzG8mnap.js +0 -1
- package/dist/index-SHgIzWWT.js +0 -1
package/dist/Combobox/index.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { createContext as
|
|
3
|
-
import { omit as
|
|
4
|
-
import { isEmptyElement as $, useVModel as
|
|
5
|
-
import { getBemBlock as oo, getBemModifier as lo, getBemElement as
|
|
6
|
-
import { _ as ao } from "../index--
|
|
1
|
+
import { defineComponent as be, useSlots as ut, onBeforeUnmount as Nt, computed as C, createBlock as j, openBlock as w, unref as i, mergeProps as ue, createSlots as $t, renderList as Ke, withCtx as W, renderSlot as De, normalizeProps as Le, guardReactiveProps as Me, createVNode as Y, h as b, useAttrs as jt, createElementBlock as ye, normalizeClass as we, toDisplayString as Kt, ref as ve, watch as Ft, isRef as tt, createCommentVNode as Re, createElementVNode as ot, normalizeStyle as Wt, Fragment as Ne } from "vue";
|
|
2
|
+
import { createContext as Gt, Slot as Ht, useEmitAsProps as Ut } from "reka-ui";
|
|
3
|
+
import { omit as he, isString as lt, cloneDeep as ae, isFunction as qt, debounce as at, pick as Jt, last as nt } from "es-toolkit";
|
|
4
|
+
import { isEmptyElement as $, useVModel as Pe, useLazyLoading as Qt, useFormInput as Xt, useVirtualScroll as Yt, useInputDataStates as Zt, useCollection as eo, useDisableBodyPointerEvents as to, installComponent as ct } from "@pantograph/utils-vue";
|
|
5
|
+
import { getBemBlock as oo, getBemModifier as lo, getBemElement as k, getComponentOptions as _e, normCls as H, isEmptyLikeLodash as K, generateVariantClassList as J, createOptionGetterFunc as q, usePCId as Ie, getPxSize as $e, getComponentName as pt } from "@pantograph/utils";
|
|
6
|
+
import { _ as ao } from "../index-CVKJ--1_.js";
|
|
7
7
|
import { cva as dt } from "class-variance-authority";
|
|
8
8
|
import "../Icon/index.js";
|
|
9
9
|
import "../Avatar/index.js";
|
|
10
10
|
import "../GraphicalObject/index.js";
|
|
11
|
-
import { _ as gt, d as no } from "../Avatar.vue_vue_type_style_index_0_lang-
|
|
11
|
+
import { _ as gt, d as no } from "../Avatar.vue_vue_type_style_index_0_lang-5wPimdpu.js";
|
|
12
12
|
import { GraphicalObjectGroup as ro } from "../GraphicalObjectGroup/index.js";
|
|
13
|
-
import { _ as so } from "../index-
|
|
14
|
-
import { _ as io } from "../Chip.vue_vue_type_style_index_0_lang-
|
|
13
|
+
import { _ as so } from "../index-EzEipSqD.js";
|
|
14
|
+
import { _ as io } from "../Chip.vue_vue_type_style_index_0_lang-CjM8-c2F.js";
|
|
15
15
|
import "../Input/index.js";
|
|
16
|
-
import { whenever as uo, refDebounced as
|
|
17
|
-
import { _ as
|
|
18
|
-
import { _ as
|
|
19
|
-
import { g as go, a as mo } from "../MenuItem.vue_vue_type_style_index_0_lang-
|
|
20
|
-
import { i as
|
|
21
|
-
import { _ as mt } from "../GraphicalObject.vue_vue_type_script_setup_true_lang-
|
|
16
|
+
import { whenever as uo, refDebounced as co } from "@vueuse/core";
|
|
17
|
+
import { _ as po } from "../Input.vue_vue_type_script_setup_true_lang-9w1hhP5f.js";
|
|
18
|
+
import { _ as Fe } from "../Icon.vue_vue_type_style_index_0_lang-D7PiBbDb.js";
|
|
19
|
+
import { g as go, a as mo } from "../MenuItem.vue_vue_type_style_index_0_lang-DsicR4mL.js";
|
|
20
|
+
import { i as Q } from "../isArray-QlWcxgml.js";
|
|
21
|
+
import { _ as mt } from "../GraphicalObject.vue_vue_type_script_setup_true_lang-Bnu4NkgN.js";
|
|
22
22
|
import "../ScrollContainer/index.js";
|
|
23
23
|
import "../Empty/index.js";
|
|
24
|
-
import { f as fo, _ as vo, a as
|
|
24
|
+
import { f as fo, _ as vo, a as yo } from "../index-WDp1-fAG.js";
|
|
25
25
|
import "../MenuItem/index.js";
|
|
26
26
|
import "../Checkbox/index.js";
|
|
27
|
-
import { _ as
|
|
28
|
-
import { _ as
|
|
29
|
-
import { _ as
|
|
27
|
+
import { _ as ho } from "../Checkbox.vue_vue_type_style_index_0_lang-upe4IS_Q.js";
|
|
28
|
+
import { _ as bo } from "../Skeleton.vue_vue_type_style_index_0_lang-BrFBNDlI.js";
|
|
29
|
+
import { _ as _o } from "../Divider.vue_vue_type_style_index_0_lang-eXMD78c3.js";
|
|
30
30
|
import { a as rt } from "../index-D2tZoezA.js";
|
|
31
31
|
import { useConfig as Co } from "../ConfigProvider/index.js";
|
|
32
32
|
import { h as st } from "../head-E4xQy0iK.js";
|
|
33
|
-
import { _ as
|
|
34
|
-
import { _ as
|
|
35
|
-
const [
|
|
36
|
-
...
|
|
33
|
+
import { _ as So } from "../ScrollContainer.vue_vue_type_style_index_0_lang-wNU6CesK.js";
|
|
34
|
+
import { _ as ko } from "../Empty.vue_vue_type_style_index_0_lang-CjN-zB7k.js";
|
|
35
|
+
const [We, xo] = Gt("Combobox"), T = oo("combobox"), ft = lo(T, "value-placeholder"), je = k(T, "option"), vt = ["sm", "md", "lg"], Bo = ["error", "warning", "success"], Ge = /* @__PURE__ */ be({
|
|
36
|
+
..._e("ComboboxInput"),
|
|
37
37
|
__name: "ComboboxInput",
|
|
38
38
|
props: {
|
|
39
39
|
id: {},
|
|
@@ -50,11 +50,11 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
|
|
|
50
50
|
leading: {},
|
|
51
51
|
trailing: {},
|
|
52
52
|
clearIcon: {},
|
|
53
|
-
trailingCls: {},
|
|
54
|
-
clearIconCls: {},
|
|
55
|
-
dividerCls: {},
|
|
56
|
-
leadingCls: {},
|
|
57
|
-
class: {},
|
|
53
|
+
trailingCls: { type: [Array, Object, String, Number, null, Boolean] },
|
|
54
|
+
clearIconCls: { type: [Array, Object, String, Number, null, Boolean] },
|
|
55
|
+
dividerCls: { type: [Array, Object, String, Number, null, Boolean] },
|
|
56
|
+
leadingCls: { type: [Array, Object, String, Number, null, Boolean] },
|
|
57
|
+
class: { type: [Array, Object, String, Number, null, Boolean] },
|
|
58
58
|
allowClear: { type: Boolean },
|
|
59
59
|
bordered: { type: Boolean, default: void 0 },
|
|
60
60
|
simple: { type: Boolean },
|
|
@@ -62,39 +62,39 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
|
|
|
62
62
|
status: {},
|
|
63
63
|
steps: { type: Boolean }
|
|
64
64
|
},
|
|
65
|
-
setup(
|
|
66
|
-
const t =
|
|
67
|
-
uo(() => o.openModel.value && o.inputRef.value, o.focusOnInput),
|
|
65
|
+
setup(B) {
|
|
66
|
+
const t = B, c = ut(), o = We();
|
|
67
|
+
uo(() => o.openModel.value && o.inputRef.value, o.focusOnInput), Nt(() => {
|
|
68
68
|
o.comboboxInputFocused.value = !1;
|
|
69
69
|
});
|
|
70
|
-
const
|
|
70
|
+
const S = C(() => {
|
|
71
71
|
const L = t.placeholder ?? o.props.placeholder ?? "";
|
|
72
72
|
return (o.props.headerSearch ? L : o.placeholder.value) ?? L;
|
|
73
|
-
}), U =
|
|
74
|
-
return (L,
|
|
73
|
+
}), U = k(T, "input");
|
|
74
|
+
return (L, h) => (w(), j(i(po), ue({
|
|
75
75
|
...i(o).comboboxInputBinding.value,
|
|
76
76
|
...t,
|
|
77
77
|
disabled: i(o).getDisabled.value || t.disabled
|
|
78
78
|
}, {
|
|
79
|
-
placeholder:
|
|
79
|
+
placeholder: S.value,
|
|
80
80
|
onKeydown: i(o).onKeyDown,
|
|
81
81
|
ref: i(o).inputRef,
|
|
82
82
|
class: i(H)(i(U), { [i(ft)]: i(o).valuePlaceholder.value }, t.class),
|
|
83
83
|
contentFit: !i(o).props.headerSearch && i(o).props.contentFit,
|
|
84
84
|
modelValue: i(o).searchModel.value,
|
|
85
|
-
"onUpdate:modelValue":
|
|
86
|
-
}),
|
|
87
|
-
|
|
85
|
+
"onUpdate:modelValue": h[0] || (h[0] = (d) => i(o).searchModel.value = d)
|
|
86
|
+
}), $t({ _: 2 }, [
|
|
87
|
+
Ke(Object.keys(i(he)(c, ["leading"])), (d) => ({
|
|
88
88
|
name: d,
|
|
89
89
|
fn: W((g) => [
|
|
90
|
-
|
|
90
|
+
De(L.$slots, d, Le(Me(g)))
|
|
91
91
|
])
|
|
92
92
|
})),
|
|
93
93
|
i(o).props.headerSearch ? {
|
|
94
94
|
name: "leading",
|
|
95
95
|
fn: W((d) => [
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
De(L.$slots, "leading", Le(Me(d)), () => [
|
|
97
|
+
Y(i(Fe), {
|
|
98
98
|
size: d.iconSize,
|
|
99
99
|
icon: "tabler:search",
|
|
100
100
|
flipOnDir: "rtl"
|
|
@@ -105,18 +105,18 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
|
|
|
105
105
|
} : {
|
|
106
106
|
name: "leading",
|
|
107
107
|
fn: W((d) => [
|
|
108
|
-
|
|
108
|
+
De(L.$slots, "leading", Le(Me(d)))
|
|
109
109
|
]),
|
|
110
110
|
key: "1"
|
|
111
111
|
}
|
|
112
112
|
]), 1040, ["placeholder", "onKeydown", "class", "contentFit", "modelValue"]));
|
|
113
113
|
}
|
|
114
|
-
}),
|
|
115
|
-
...
|
|
114
|
+
}), Oo = /* @__PURE__ */ be({
|
|
115
|
+
..._e("ComboboxTrigger"),
|
|
116
116
|
__name: "ComboboxTrigger",
|
|
117
|
-
setup(
|
|
118
|
-
const t =
|
|
119
|
-
r &&
|
|
117
|
+
setup(B) {
|
|
118
|
+
const t = We(), c = ({ value: r }) => {
|
|
119
|
+
r && Q(t.model.value) && !t.getDisabled.value && (t.model.value = t.model.value.filter((_) => _ !== r));
|
|
120
120
|
}, o = C(() => {
|
|
121
121
|
switch (t.getSize.value) {
|
|
122
122
|
case "sm":
|
|
@@ -125,39 +125,39 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
|
|
|
125
125
|
default:
|
|
126
126
|
return "xsm";
|
|
127
127
|
}
|
|
128
|
-
}),
|
|
129
|
-
if (!t.props.multiple && lt(t.model.value) && !
|
|
128
|
+
}), S = C(() => {
|
|
129
|
+
if (!t.props.multiple && lt(t.model.value) && !K(t.model.value))
|
|
130
130
|
return t.getOptionByValue(t.model.value);
|
|
131
|
-
}), U = (r =
|
|
131
|
+
}), U = (r = S.value) => {
|
|
132
132
|
if (t.props.selectedItemIconAsTrailingIcon && (r != null && r._icon))
|
|
133
133
|
return r._icon;
|
|
134
|
-
}, L = C(() => U()),
|
|
134
|
+
}, L = C(() => U()), h = C(() => {
|
|
135
135
|
if (!t.props.noTrailing)
|
|
136
136
|
return t.props.trailingIcon ?? "tabler:chevron-down";
|
|
137
137
|
}), d = C(() => {
|
|
138
138
|
var f, v;
|
|
139
|
-
const r = ae(t.model.value),
|
|
139
|
+
const r = ae(t.model.value), _ = Q(t.model.value);
|
|
140
140
|
return {
|
|
141
141
|
modelValue: r,
|
|
142
142
|
open: ae(t.openModel.value),
|
|
143
|
-
option:
|
|
144
|
-
options:
|
|
143
|
+
option: _ ? void 0 : t.getOptionByValue(t.model.value),
|
|
144
|
+
options: _ ? (v = (f = t.model.value).map) == null ? void 0 : v.call(f, t.getOptionByValue).filter(Boolean) : void 0
|
|
145
145
|
};
|
|
146
146
|
}), g = (r) => ({
|
|
147
147
|
...d.value,
|
|
148
148
|
option: t.getOptionByValue(r)
|
|
149
|
-
}), n =
|
|
149
|
+
}), n = k(T, "trigger"), F = dt(n, {
|
|
150
150
|
variants: {
|
|
151
|
-
size:
|
|
152
|
-
headerSearch:
|
|
153
|
-
status:
|
|
154
|
-
bordered:
|
|
155
|
-
multiple:
|
|
156
|
-
contentFit:
|
|
157
|
-
wrapped:
|
|
158
|
-
filled:
|
|
151
|
+
size: J(vt, n),
|
|
152
|
+
headerSearch: J("header-search", n),
|
|
153
|
+
status: J(Bo, n),
|
|
154
|
+
bordered: J("bordered", n),
|
|
155
|
+
multiple: J("multiple", n),
|
|
156
|
+
contentFit: J("content-fit", n),
|
|
157
|
+
wrapped: J("wrapped", n),
|
|
158
|
+
filled: J("filled", n)
|
|
159
159
|
}
|
|
160
|
-
}),
|
|
160
|
+
}), X = C(() => ({
|
|
161
161
|
type: "button",
|
|
162
162
|
disabled: t.getDisabled.value,
|
|
163
163
|
tabindex: t.getDisabled.value || !t.props.headerSearch ? -1 : 0,
|
|
@@ -168,89 +168,89 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
|
|
|
168
168
|
"aria-expanded": t.openModel.value,
|
|
169
169
|
"data-state": t.openModel.value ? "open" : "closed",
|
|
170
170
|
class: H(
|
|
171
|
-
|
|
171
|
+
F({
|
|
172
172
|
size: t.getSize.value,
|
|
173
|
-
status: t.getStatus.value === "success" &&
|
|
173
|
+
status: t.getStatus.value === "success" && K(t.model.value) ? void 0 : t.getStatus.value,
|
|
174
174
|
bordered: t.props.bordered,
|
|
175
175
|
multiple: t.props.multiple,
|
|
176
176
|
contentFit: t.props.contentFit,
|
|
177
177
|
wrapped: t.props.wrapped,
|
|
178
|
-
filled: !
|
|
178
|
+
filled: !K(t.model.value),
|
|
179
179
|
headerSearch: t.props.headerSearch
|
|
180
180
|
}),
|
|
181
181
|
t.props.triggerCls
|
|
182
182
|
),
|
|
183
183
|
...t.comboboxTriggerBinding.value
|
|
184
|
-
})), m = (r,
|
|
184
|
+
})), m = (r, _ = o.value) => b(Fe, { icon: r, size: _ }), ne = () => {
|
|
185
185
|
var f, v;
|
|
186
186
|
let r;
|
|
187
|
-
const
|
|
187
|
+
const _ = (v = (f = t.slots).triggerTrailing) == null ? void 0 : v.call(
|
|
188
188
|
f,
|
|
189
189
|
d.value
|
|
190
190
|
);
|
|
191
|
-
if (!$(
|
|
192
|
-
else if (
|
|
193
|
-
const
|
|
194
|
-
r = m(
|
|
191
|
+
if (!$(_)) r = _;
|
|
192
|
+
else if (h.value && h.value) {
|
|
193
|
+
const A = h.value === !0 ? "tabler:chevron-down" : h.value;
|
|
194
|
+
r = m(A);
|
|
195
195
|
}
|
|
196
196
|
if (r)
|
|
197
|
-
return
|
|
197
|
+
return b(
|
|
198
198
|
"div",
|
|
199
|
-
{ class: H(
|
|
199
|
+
{ class: H(k(n, "trailing"), t.props.triggerTrailingCls) },
|
|
200
200
|
r
|
|
201
201
|
);
|
|
202
202
|
}, Z = (r) => {
|
|
203
203
|
var f, v;
|
|
204
|
-
const
|
|
205
|
-
return
|
|
204
|
+
const _ = t.getOptionByValue(r) ?? { _key: r };
|
|
205
|
+
return b(gt, {
|
|
206
206
|
size: t.getTagSize.value,
|
|
207
|
-
...
|
|
207
|
+
..._ ? ((v = (f = t.props).getTagProps) == null ? void 0 : v.call(f, _)) ?? {} : {}
|
|
208
208
|
});
|
|
209
|
-
},
|
|
209
|
+
}, ce = (r) => {
|
|
210
210
|
var f, v;
|
|
211
|
-
const
|
|
212
|
-
return
|
|
213
|
-
...
|
|
211
|
+
const _ = t.getOptionByValue(r) ?? { _key: r };
|
|
212
|
+
return b(mt, {
|
|
213
|
+
..._ ? ((v = (f = t.props).getTagProps) == null ? void 0 : v.call(f, _)) ?? {} : {},
|
|
214
214
|
size: t.getTagSize.value
|
|
215
215
|
});
|
|
216
216
|
}, Ce = () => {
|
|
217
|
-
var r,
|
|
218
|
-
if (!t.props.multiple && !
|
|
217
|
+
var r, _;
|
|
218
|
+
if (!t.props.multiple && !Q(t.model.value) && t.model.value) {
|
|
219
219
|
let f;
|
|
220
|
-
lt(t.model.value) && !
|
|
221
|
-
const v = f ? (
|
|
220
|
+
lt(t.model.value) && !K(t.model.value) && (f = t.model.value);
|
|
221
|
+
const v = f ? (_ = (r = t.slots).optionLeading) == null ? void 0 : _.call(
|
|
222
222
|
r,
|
|
223
223
|
go(
|
|
224
224
|
t.props.size,
|
|
225
225
|
g(f)
|
|
226
226
|
)
|
|
227
|
-
) : null,
|
|
228
|
-
if (
|
|
227
|
+
) : null, A = !$(v);
|
|
228
|
+
if (A || t.props.tagRenderMode && ["avatar", "go"].includes(t.props.tagRenderMode) || L.value || t.props.leadingIcon) {
|
|
229
229
|
let M;
|
|
230
|
-
if (
|
|
231
|
-
return
|
|
230
|
+
if (A ? M = v : t.props.tagRenderMode === "avatar" ? M = Z(t.model.value) : t.props.tagRenderMode === "go" ? M = ce(t.model.value) : L.value ? M = m(L.value) : t.props.leadingIcon && (M = m(t.props.leadingIcon)), !$(M))
|
|
231
|
+
return b(
|
|
232
232
|
"div",
|
|
233
233
|
{
|
|
234
|
-
class: H(
|
|
234
|
+
class: H(k(n, "leading"), t.props.triggerLeadingCls)
|
|
235
235
|
},
|
|
236
236
|
M
|
|
237
237
|
);
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
|
-
},
|
|
240
|
+
}, pe = () => {
|
|
241
241
|
var de, re;
|
|
242
242
|
const r = (re = (de = t.slots).trigger) == null ? void 0 : re.call(de, d.value);
|
|
243
243
|
if (!$(r))
|
|
244
|
-
return
|
|
244
|
+
return b(Ht, he(X.value, ["class"]), () => r);
|
|
245
245
|
const f = () => {
|
|
246
|
-
const
|
|
247
|
-
|
|
246
|
+
const z = [], ee = [
|
|
247
|
+
k(n, "tags"),
|
|
248
248
|
t.props.triggerContentCls,
|
|
249
249
|
t.props.triggerContentValueCls
|
|
250
250
|
], E = (() => {
|
|
251
|
-
if (t.props.multiple &&
|
|
251
|
+
if (t.props.multiple && Q(t.model.value)) {
|
|
252
252
|
if (t.props.tagRenderMode === "avatar")
|
|
253
|
-
return
|
|
253
|
+
return b(
|
|
254
254
|
no,
|
|
255
255
|
{
|
|
256
256
|
maxCount: t.props.maxCount,
|
|
@@ -263,7 +263,7 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
|
|
|
263
263
|
() => t.model.value.map(Z)
|
|
264
264
|
);
|
|
265
265
|
if (t.props.tagRenderMode === "go")
|
|
266
|
-
return
|
|
266
|
+
return b(
|
|
267
267
|
ro,
|
|
268
268
|
{
|
|
269
269
|
maxCount: t.props.maxCount,
|
|
@@ -273,10 +273,10 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
|
|
|
273
273
|
noWrap: !t.props.wrapped,
|
|
274
274
|
class: ee
|
|
275
275
|
},
|
|
276
|
-
() => t.model.value.map(
|
|
276
|
+
() => t.model.value.map(ce)
|
|
277
277
|
);
|
|
278
278
|
if (t.props.tagRenderMode === "chip")
|
|
279
|
-
return
|
|
279
|
+
return b(
|
|
280
280
|
so,
|
|
281
281
|
{
|
|
282
282
|
maxCount: t.props.maxCount,
|
|
@@ -286,131 +286,131 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
|
|
|
286
286
|
noPopover: !0,
|
|
287
287
|
noWrap: !t.props.wrapped,
|
|
288
288
|
class: ee,
|
|
289
|
-
onClose:
|
|
289
|
+
onClose: c
|
|
290
290
|
},
|
|
291
291
|
() => t.model.value.map((se) => {
|
|
292
292
|
var ge, me;
|
|
293
|
-
const Te = () => t.getLabelByValue(se),
|
|
293
|
+
const Te = () => t.getLabelByValue(se), Se = ({ size: ze }) => {
|
|
294
294
|
const R = U(t.getOptionByValue(se)) ?? t.props.leadingIcon;
|
|
295
295
|
return R ? m(R, ze) : null;
|
|
296
|
-
},
|
|
297
|
-
return
|
|
296
|
+
}, ke = t.getOptionByValue(se);
|
|
297
|
+
return b(
|
|
298
298
|
io,
|
|
299
299
|
{
|
|
300
|
-
...
|
|
300
|
+
...ke ? ((me = (ge = t.props).getTagProps) == null ? void 0 : me.call(ge, ke)) ?? {} : {},
|
|
301
301
|
value: se,
|
|
302
|
-
class: H(
|
|
303
|
-
closeIconCls:
|
|
302
|
+
class: H(k(n, "tag"), t.props.tagCls),
|
|
303
|
+
closeIconCls: k(n, "tag__close")
|
|
304
304
|
},
|
|
305
305
|
{
|
|
306
306
|
text: Te,
|
|
307
|
-
leading:
|
|
307
|
+
leading: Se
|
|
308
308
|
}
|
|
309
309
|
);
|
|
310
310
|
})
|
|
311
311
|
);
|
|
312
312
|
}
|
|
313
313
|
})();
|
|
314
|
-
if (E &&
|
|
315
|
-
|
|
314
|
+
if (E && z.push(E), t.props.headerSearch ? (!t.props.noValueOnPlaceholder || t.props.placeholder) && z.push(
|
|
315
|
+
b(
|
|
316
316
|
"div",
|
|
317
317
|
{
|
|
318
|
-
class: H(
|
|
318
|
+
class: H(k(n, "content__value"), {
|
|
319
319
|
[ft]: t.valuePlaceholder.value
|
|
320
320
|
})
|
|
321
321
|
},
|
|
322
322
|
t.placeholder.value ?? t.props.placeholder
|
|
323
323
|
)
|
|
324
|
-
) :
|
|
325
|
-
|
|
324
|
+
) : z.push(
|
|
325
|
+
b(Ge, {
|
|
326
326
|
noValueOnPlaceholder: t.props.noValueOnPlaceholder,
|
|
327
327
|
searchIcon: !1,
|
|
328
328
|
bordered: !1,
|
|
329
329
|
simple: !0
|
|
330
330
|
})
|
|
331
|
-
), !$(
|
|
332
|
-
return
|
|
333
|
-
}, v = [],
|
|
334
|
-
$(
|
|
331
|
+
), !$(z) || !t.props.contentFit || t.props.trailingIcon)
|
|
332
|
+
return b("div", { class: k(n, "content") }, z);
|
|
333
|
+
}, v = [], A = Ce();
|
|
334
|
+
$(A) || v.push(A), v.push(f());
|
|
335
335
|
const M = ne();
|
|
336
|
-
return $(M) || v.push(M),
|
|
336
|
+
return $(M) || v.push(M), b("button", X.value, v);
|
|
337
337
|
};
|
|
338
|
-
return (r,
|
|
338
|
+
return (r, _) => (w(), j(pe));
|
|
339
339
|
}
|
|
340
|
-
}), it = /* @__PURE__ */
|
|
341
|
-
...
|
|
340
|
+
}), it = /* @__PURE__ */ be({
|
|
341
|
+
..._e("ComboboxOption"),
|
|
342
342
|
__name: "ComboboxOption",
|
|
343
343
|
props: {
|
|
344
344
|
option: {}
|
|
345
345
|
},
|
|
346
|
-
setup(
|
|
347
|
-
const t =
|
|
348
|
-
var n,
|
|
346
|
+
setup(B) {
|
|
347
|
+
const t = B, c = We(), o = C(() => c.isOptionSelected(t.option._key)), S = (h) => {
|
|
348
|
+
var n, F, X, m, ne, Z;
|
|
349
349
|
const d = [];
|
|
350
|
-
!
|
|
351
|
-
|
|
350
|
+
!c.props.tree && c.props.multiple && c.props.checkbox && !t.option._noCheckbox && d.push(
|
|
351
|
+
b(ho, {
|
|
352
352
|
unExtendParent: !0,
|
|
353
353
|
modelValue: o.value,
|
|
354
|
-
size:
|
|
355
|
-
disabled: t.option._disabled ||
|
|
354
|
+
size: h.checkboxSize,
|
|
355
|
+
disabled: t.option._disabled || c.getDisabled.value
|
|
356
356
|
})
|
|
357
357
|
);
|
|
358
|
-
const g = (
|
|
359
|
-
return $(g) ?
|
|
360
|
-
|
|
361
|
-
size:
|
|
362
|
-
...((m = (
|
|
358
|
+
const g = (F = (n = c.slots).optionLeading) == null ? void 0 : F.call(n, { ...h, option: t.option });
|
|
359
|
+
return $(g) ? c.props.tagRenderMode === "avatar" && c.props.showTriggerTagOnOption ? d.push(
|
|
360
|
+
b(gt, {
|
|
361
|
+
size: h.avatarSize,
|
|
362
|
+
...((m = (X = c.props).getTagProps) == null ? void 0 : m.call(X, t.option)) ?? {}
|
|
363
363
|
})
|
|
364
|
-
) :
|
|
365
|
-
|
|
366
|
-
size:
|
|
367
|
-
...((Z = (ne =
|
|
364
|
+
) : c.props.tagRenderMode === "go" && c.props.showTriggerTagOnOption ? d.push(
|
|
365
|
+
b(mt, {
|
|
366
|
+
size: h.iconSize,
|
|
367
|
+
...((Z = (ne = c.props).getTagProps) == null ? void 0 : Z.call(ne, t.option)) ?? {}
|
|
368
368
|
})
|
|
369
|
-
) : t.option._icon && d.push(
|
|
370
|
-
}, U =
|
|
371
|
-
const
|
|
372
|
-
return
|
|
369
|
+
) : t.option._icon && d.push(b(Fe, { icon: t.option._icon, size: c.getIconSize.value })) : d.push(g), $(d) ? null : d;
|
|
370
|
+
}, U = jt(), L = () => {
|
|
371
|
+
const h = c.props.tree ? void 0 : t.option._description, d = (qt(c.props.getMenuItemProps) ? c.props.getMenuItemProps(t.option) : c.props.getMenuItemProps) ?? {};
|
|
372
|
+
return b(
|
|
373
373
|
mo,
|
|
374
374
|
{
|
|
375
375
|
unExtendParent: !0,
|
|
376
|
-
class:
|
|
376
|
+
class: k(T, "option"),
|
|
377
377
|
unFocusable: !0,
|
|
378
|
-
staticStyle:
|
|
379
|
-
description:
|
|
378
|
+
staticStyle: c.props.tree,
|
|
379
|
+
description: h,
|
|
380
380
|
title: t.option._label,
|
|
381
381
|
key: t.option._key,
|
|
382
382
|
selected: o.value,
|
|
383
|
-
leadingCenter: !!
|
|
384
|
-
size:
|
|
385
|
-
disabled:
|
|
386
|
-
onClick: () =>
|
|
383
|
+
leadingCenter: !!h,
|
|
384
|
+
size: c.getSize.value,
|
|
385
|
+
disabled: c.props.tree ? !1 : t.option._disabled || c.getDisabled.value,
|
|
386
|
+
onClick: () => c.selectOption(t.option),
|
|
387
387
|
slotProps: t,
|
|
388
388
|
...d,
|
|
389
389
|
...U
|
|
390
390
|
},
|
|
391
391
|
{
|
|
392
|
-
leading:
|
|
393
|
-
trailing:
|
|
394
|
-
title:
|
|
395
|
-
description:
|
|
392
|
+
leading: S,
|
|
393
|
+
trailing: c.slots.optionTrailing,
|
|
394
|
+
title: c.slots.optionTitle,
|
|
395
|
+
description: c.slots.optionDescription
|
|
396
396
|
}
|
|
397
397
|
);
|
|
398
398
|
};
|
|
399
|
-
return (
|
|
399
|
+
return (h, d) => (w(), j(L));
|
|
400
400
|
}
|
|
401
|
-
}),
|
|
402
|
-
...
|
|
401
|
+
}), Po = /* @__PURE__ */ be({
|
|
402
|
+
..._e("ComboboxLabel"),
|
|
403
403
|
__name: "ComboboxLabel",
|
|
404
404
|
props: {
|
|
405
405
|
label: {}
|
|
406
406
|
},
|
|
407
|
-
setup(
|
|
408
|
-
return (t,
|
|
409
|
-
class: we(i(
|
|
410
|
-
},
|
|
407
|
+
setup(B) {
|
|
408
|
+
return (t, c) => (w(), ye("div", {
|
|
409
|
+
class: we(i(k)(i(T), "label"))
|
|
410
|
+
}, Kt(B.label), 3));
|
|
411
411
|
}
|
|
412
|
-
}), Io = /* @__PURE__ */
|
|
413
|
-
...
|
|
412
|
+
}), Io = /* @__PURE__ */ be({
|
|
413
|
+
..._e("Combobox"),
|
|
414
414
|
__name: "Combobox",
|
|
415
415
|
props: {
|
|
416
416
|
modelValue: {},
|
|
@@ -456,22 +456,22 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
|
|
|
456
456
|
lazyLoading: { type: Boolean },
|
|
457
457
|
bordered: { type: Boolean, default: !0 },
|
|
458
458
|
clearOnChangeMultiple: { type: Boolean, default: !0 },
|
|
459
|
-
triggerCls: {},
|
|
460
|
-
triggerLeadingCls: {},
|
|
461
|
-
triggerContentCls: {},
|
|
462
|
-
triggerContentPlaceholderCls: {},
|
|
463
|
-
triggerContentValueCls: {},
|
|
464
|
-
triggerTrailingCls: {},
|
|
465
|
-
itemLeadingCls: {},
|
|
466
|
-
optionCls: {},
|
|
467
|
-
tagCls: {},
|
|
468
|
-
popupCls: {},
|
|
469
|
-
labelCls: {},
|
|
470
|
-
optionsCls: {},
|
|
471
|
-
optionTextCls: {},
|
|
472
|
-
optionContentCls: {},
|
|
473
|
-
emptyCls: {},
|
|
474
|
-
skeletonCls: {},
|
|
459
|
+
triggerCls: { type: [Array, Object, String, Number, null, Boolean] },
|
|
460
|
+
triggerLeadingCls: { type: [Array, Object, String, Number, null, Boolean] },
|
|
461
|
+
triggerContentCls: { type: [Array, Object, String, Number, null, Boolean] },
|
|
462
|
+
triggerContentPlaceholderCls: { type: [Array, Object, String, Number, null, Boolean] },
|
|
463
|
+
triggerContentValueCls: { type: [Array, Object, String, Number, null, Boolean] },
|
|
464
|
+
triggerTrailingCls: { type: [Array, Object, String, Number, null, Boolean] },
|
|
465
|
+
itemLeadingCls: { type: [Array, Object, String, Number, null, Boolean] },
|
|
466
|
+
optionCls: { type: [Array, Object, String, Number, null, Boolean] },
|
|
467
|
+
tagCls: { type: [Array, Object, String, Number, null, Boolean] },
|
|
468
|
+
popupCls: { type: [Array, Object, String, Number, null, Boolean] },
|
|
469
|
+
labelCls: { type: [Array, Object, String, Number, null, Boolean] },
|
|
470
|
+
optionsCls: { type: [Array, Object, String, Number, null, Boolean] },
|
|
471
|
+
optionTextCls: { type: [Array, Object, String, Number, null, Boolean] },
|
|
472
|
+
optionContentCls: { type: [Array, Object, String, Number, null, Boolean] },
|
|
473
|
+
emptyCls: { type: [Array, Object, String, Number, null, Boolean] },
|
|
474
|
+
skeletonCls: { type: [Array, Object, String, Number, null, Boolean] },
|
|
475
475
|
scrollContainerProps: {},
|
|
476
476
|
emptyProps: {},
|
|
477
477
|
samePopupWidth: { type: Boolean, default: !0 },
|
|
@@ -501,27 +501,27 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
|
|
|
501
501
|
noTrigger: { type: Boolean }
|
|
502
502
|
},
|
|
503
503
|
emits: ["update:modelValue", "update:expandedKeys", "keydownEnter", "keydownEscape", "update:search", "fetch", "search", "select", "update:open", "escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
504
|
-
setup(
|
|
505
|
-
const o =
|
|
504
|
+
setup(B, { expose: t, emit: c }) {
|
|
505
|
+
const o = B, S = c, U = () => {
|
|
506
506
|
var e, l;
|
|
507
|
-
o.tree && (((e = o.filterOptions) == null ? void 0 : e.expandParent) === "collapse" ?
|
|
508
|
-
|
|
507
|
+
o.tree && (((e = o.filterOptions) == null ? void 0 : e.expandParent) === "collapse" ? X([]) : ((l = o.filterOptions) == null ? void 0 : l.expandParent) === "expand" && X(
|
|
508
|
+
z.value.filter((a) => a._hasChildren).map((a) => a._key)
|
|
509
509
|
));
|
|
510
510
|
}, L = at((e) => {
|
|
511
|
-
|
|
512
|
-
}, 500),
|
|
511
|
+
S("search", e), U();
|
|
512
|
+
}, 500), h = Pe(o, "search", S, {
|
|
513
513
|
passive: o.search === void 0,
|
|
514
514
|
onChange: L
|
|
515
|
-
}), d =
|
|
515
|
+
}), d = co(h, 500), g = Pe(o, "open", S, {
|
|
516
516
|
defaultValue: o.defaultOpen,
|
|
517
517
|
passive: o.open === void 0,
|
|
518
518
|
onChange(e) {
|
|
519
|
-
!e && o.resetSearchTermOnBlur && (
|
|
519
|
+
!e && o.resetSearchTermOnBlur && (h.value = void 0);
|
|
520
520
|
}
|
|
521
|
-
}), n =
|
|
521
|
+
}), n = Pe(
|
|
522
522
|
o,
|
|
523
523
|
"modelValue",
|
|
524
|
-
|
|
524
|
+
S,
|
|
525
525
|
{
|
|
526
526
|
passive: o.modelValue === void 0,
|
|
527
527
|
onChange: () => {
|
|
@@ -529,21 +529,21 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
|
|
|
529
529
|
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));
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
|
-
),
|
|
532
|
+
), F = Pe(
|
|
533
533
|
o,
|
|
534
534
|
"expandedKeys",
|
|
535
|
-
|
|
535
|
+
S,
|
|
536
536
|
{
|
|
537
537
|
passive: o.expandedKeys === void 0
|
|
538
538
|
}
|
|
539
|
-
),
|
|
539
|
+
), X = at(
|
|
540
540
|
(e) => {
|
|
541
|
-
|
|
541
|
+
F.value = e;
|
|
542
542
|
},
|
|
543
543
|
500,
|
|
544
544
|
{ edges: ["leading"] }
|
|
545
|
-
), m = ut(), ne =
|
|
546
|
-
...
|
|
545
|
+
), m = ut(), ne = Ut(S), Z = C(() => ({
|
|
546
|
+
...he(ne, ["update:modelValue", "update:search", "select"]),
|
|
547
547
|
...Jt(o, [
|
|
548
548
|
"placement",
|
|
549
549
|
"reversePlacementOnDir",
|
|
@@ -559,54 +559,54 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
|
|
|
559
559
|
"noTrigger"
|
|
560
560
|
])
|
|
561
561
|
// modal: true,
|
|
562
|
-
})),
|
|
563
|
-
Qt({ target:
|
|
564
|
-
const Ce =
|
|
562
|
+
})), ce = ve();
|
|
563
|
+
Qt({ target: ce });
|
|
564
|
+
const Ce = q({
|
|
565
565
|
key: "value",
|
|
566
566
|
getter: o.getValue
|
|
567
|
-
}),
|
|
568
|
-
getDisabled:
|
|
567
|
+
}), pe = {
|
|
568
|
+
getDisabled: q({
|
|
569
569
|
key: "disabled",
|
|
570
570
|
getter: o.getDisabled,
|
|
571
571
|
noReturnOption: !0,
|
|
572
572
|
defaultValue: !1
|
|
573
573
|
}),
|
|
574
|
-
getDescription:
|
|
574
|
+
getDescription: q({
|
|
575
575
|
key: "description",
|
|
576
576
|
getter: o.getDescription,
|
|
577
577
|
noReturnOption: !0
|
|
578
578
|
}),
|
|
579
579
|
getValue: Ce,
|
|
580
|
-
getLabel:
|
|
580
|
+
getLabel: q({
|
|
581
581
|
key: "label",
|
|
582
582
|
getter: o.getLabel,
|
|
583
583
|
noReturnOption: !0,
|
|
584
584
|
defaultValue: Ce
|
|
585
585
|
}),
|
|
586
|
-
getNoCheckbox:
|
|
586
|
+
getNoCheckbox: q({
|
|
587
587
|
key: "noCheckbox",
|
|
588
588
|
getter: o.getNoCheckbox,
|
|
589
589
|
noReturnOption: !0,
|
|
590
590
|
defaultValue: !1
|
|
591
591
|
}),
|
|
592
|
-
getSingle:
|
|
592
|
+
getSingle: q({
|
|
593
593
|
key: "single",
|
|
594
594
|
getter: o.getSingle,
|
|
595
595
|
noReturnOption: !0,
|
|
596
596
|
defaultValue: !1
|
|
597
597
|
}),
|
|
598
|
-
getClear:
|
|
598
|
+
getClear: q({
|
|
599
599
|
key: "clear",
|
|
600
600
|
getter: o.getClear,
|
|
601
601
|
noReturnOption: !0,
|
|
602
602
|
defaultValue: !1
|
|
603
603
|
}),
|
|
604
|
-
getOptions:
|
|
604
|
+
getOptions: q({
|
|
605
605
|
key: "options",
|
|
606
606
|
getter: o.getOptions,
|
|
607
607
|
noReturnOption: !0
|
|
608
608
|
}),
|
|
609
|
-
getIcon:
|
|
609
|
+
getIcon: q({
|
|
610
610
|
key: "icon",
|
|
611
611
|
getter: o.getIcon,
|
|
612
612
|
noReturnOption: !0
|
|
@@ -614,12 +614,12 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
|
|
|
614
614
|
}, r = (e, l) => {
|
|
615
615
|
var s;
|
|
616
616
|
const a = `get${l[0].toUpperCase() + l.slice(1)}`;
|
|
617
|
-
return (s =
|
|
618
|
-
},
|
|
617
|
+
return (s = pe[a]) == null ? void 0 : s.call(pe, e);
|
|
618
|
+
}, _ = (e, l, a) => !!(!o.tree && !(l != null && l.length) && (a != null && a.length)), f = C(
|
|
619
619
|
() => fo({
|
|
620
620
|
getValue: (e, l, a) => {
|
|
621
621
|
const s = r(e, "value");
|
|
622
|
-
return
|
|
622
|
+
return K(s) && _(e, l, a) ? Ie(je) : s;
|
|
623
623
|
},
|
|
624
624
|
getDisabled: (e) => r(e, "disabled"),
|
|
625
625
|
arr: o.options ?? [],
|
|
@@ -630,7 +630,7 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
|
|
|
630
630
|
getExtra: (e) => {
|
|
631
631
|
if (e) {
|
|
632
632
|
let l = r(e, "label");
|
|
633
|
-
return
|
|
633
|
+
return K(l) || (l = String(l)), {
|
|
634
634
|
_description: r(e, "description"),
|
|
635
635
|
_label: l,
|
|
636
636
|
_title: o.tree ? l : void 0,
|
|
@@ -638,101 +638,101 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
|
|
|
638
638
|
_single: r(e, "single"),
|
|
639
639
|
_clear: r(e, "clear"),
|
|
640
640
|
_icon: r(e, "icon"),
|
|
641
|
-
_id: Ie(
|
|
641
|
+
_id: Ie(Ee)
|
|
642
642
|
};
|
|
643
643
|
}
|
|
644
644
|
},
|
|
645
|
-
allowNoValidKey:
|
|
645
|
+
allowNoValidKey: _
|
|
646
646
|
})
|
|
647
647
|
), v = (e, l = !1) => e ? f.value.filter((a) => {
|
|
648
648
|
var s;
|
|
649
649
|
if (l) {
|
|
650
|
-
const
|
|
651
|
-
return
|
|
650
|
+
const x = nt(a._parentKeys ?? []);
|
|
651
|
+
return x && x === e;
|
|
652
652
|
}
|
|
653
653
|
return (s = a._parentKeys) == null ? void 0 : s.includes(e);
|
|
654
|
-
}) : [],
|
|
654
|
+
}) : [], A = (e) => {
|
|
655
655
|
var l;
|
|
656
|
-
if ((l = f.value) != null && l.length && !
|
|
656
|
+
if ((l = f.value) != null && l.length && !K(e))
|
|
657
657
|
return f.value.find((a) => a._key === e);
|
|
658
658
|
}, M = (e) => {
|
|
659
|
-
const l =
|
|
659
|
+
const l = A(e);
|
|
660
660
|
return l && (l._label || l._key) || e;
|
|
661
661
|
}, de = (e) => {
|
|
662
|
-
const l =
|
|
662
|
+
const l = A(e);
|
|
663
663
|
return l ? l._single ?? !1 : !1;
|
|
664
|
-
}, re = (e) => e === void 0 ? !1 : Array.isArray(n.value) ? !!(e && n.value.includes(e)) : n.value === e,
|
|
665
|
-
var s,
|
|
664
|
+
}, re = (e) => e === void 0 ? !1 : Array.isArray(n.value) ? !!(e && n.value.includes(e)) : n.value === e, z = C(() => {
|
|
665
|
+
var s, x;
|
|
666
666
|
let e = [];
|
|
667
667
|
const l = /* @__PURE__ */ new Set(), a = (u) => {
|
|
668
668
|
u != null && u._key && !l.has(u._key) && (e.push(ae(u)), l.add(u._key));
|
|
669
669
|
};
|
|
670
670
|
if (d.value ? (f.value.forEach((u) => {
|
|
671
|
-
var
|
|
671
|
+
var y, D;
|
|
672
672
|
if (u._label && u._label.toLowerCase().includes(d.value.toLowerCase()) && !l.has(u._key)) {
|
|
673
|
-
if (a(u), u._hasChildren && v(u._key).forEach(a), (
|
|
674
|
-
u._parentKeys && u._parentKeys.forEach((
|
|
675
|
-
if (!l.has(
|
|
676
|
-
const oe =
|
|
673
|
+
if (a(u), u._hasChildren && v(u._key).forEach(a), (y = o.filterOptions) != null && y.strictNode)
|
|
674
|
+
u._parentKeys && u._parentKeys.forEach((p) => {
|
|
675
|
+
if (!l.has(p)) {
|
|
676
|
+
const oe = A(p);
|
|
677
677
|
a(oe);
|
|
678
678
|
}
|
|
679
679
|
});
|
|
680
680
|
else if ((D = u._parentKeys) != null && D.length) {
|
|
681
|
-
const
|
|
682
|
-
if (!
|
|
683
|
-
if (!l.has(
|
|
684
|
-
const le =
|
|
681
|
+
const p = st(u._parentKeys);
|
|
682
|
+
if (!K(p)) {
|
|
683
|
+
if (!l.has(p)) {
|
|
684
|
+
const le = A(p);
|
|
685
685
|
a(le);
|
|
686
686
|
}
|
|
687
|
-
v(
|
|
687
|
+
v(p).forEach(a);
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
691
|
}), e = e.sort(
|
|
692
|
-
(u,
|
|
693
|
-
)) : e = ae(f.value), o.sortSelectedItems && !o.tree && !
|
|
692
|
+
(u, V) => f.value.findIndex((y) => y._key === u._key) - f.value.findIndex((y) => y._key === V._key)
|
|
693
|
+
)) : e = ae(f.value), o.sortSelectedItems && !o.tree && !K(n.value)) {
|
|
694
694
|
let u = ae(e);
|
|
695
|
-
const
|
|
696
|
-
const G = u.splice(
|
|
697
|
-
u.splice(
|
|
698
|
-
}, le = (
|
|
699
|
-
const
|
|
700
|
-
return
|
|
695
|
+
const V = u.filter((P) => re(P._key)), y = Symbol("root"), D = Symbol("rootGroup"), p = {}, oe = (P, N, I = 1) => {
|
|
696
|
+
const G = u.splice(P, I);
|
|
697
|
+
u.splice(N, 0, ...G);
|
|
698
|
+
}, le = (P) => P ? u.findIndex((N) => N._key === P) : -1, Be = (P) => {
|
|
699
|
+
const N = p[P], I = le(N == null ? void 0 : N.key);
|
|
700
|
+
return N != null && N.length ? I + N.length + 1 : I + 1;
|
|
701
701
|
};
|
|
702
|
-
|
|
703
|
-
var
|
|
704
|
-
if ((
|
|
705
|
-
const
|
|
706
|
-
let G = le(
|
|
702
|
+
V.forEach((P) => {
|
|
703
|
+
var N;
|
|
704
|
+
if ((N = P._parentKeys) != null && N.length) {
|
|
705
|
+
const I = st(P._parentKeys);
|
|
706
|
+
let G = le(I);
|
|
707
707
|
const et = Math.max(
|
|
708
|
-
|
|
709
|
-
|
|
708
|
+
Be(y),
|
|
709
|
+
Be(D)
|
|
710
710
|
);
|
|
711
711
|
if (G > et) {
|
|
712
|
-
const
|
|
713
|
-
oe(G, et,
|
|
712
|
+
const Oe = v(I).length;
|
|
713
|
+
oe(G, et, Oe + 1);
|
|
714
714
|
}
|
|
715
|
-
if (
|
|
716
|
-
key:
|
|
717
|
-
length: v(
|
|
718
|
-
}, G = le(
|
|
719
|
-
const
|
|
720
|
-
if (
|
|
721
|
-
oe(
|
|
715
|
+
if (p[D] = {
|
|
716
|
+
key: I,
|
|
717
|
+
length: v(I).length
|
|
718
|
+
}, G = le(I), I && G > -1) {
|
|
719
|
+
const Oe = le(P._key);
|
|
720
|
+
if (p[I] === void 0)
|
|
721
|
+
oe(Oe, G + 1);
|
|
722
722
|
else {
|
|
723
|
-
const
|
|
724
|
-
oe(
|
|
723
|
+
const Rt = Be(I);
|
|
724
|
+
oe(Oe, Rt);
|
|
725
725
|
}
|
|
726
|
-
|
|
726
|
+
p[I] = {
|
|
727
727
|
length: void 0,
|
|
728
|
-
key:
|
|
728
|
+
key: P._key
|
|
729
729
|
};
|
|
730
730
|
}
|
|
731
731
|
} else {
|
|
732
|
-
const
|
|
733
|
-
|
|
734
|
-
key:
|
|
735
|
-
length:
|
|
732
|
+
const I = le(P._key), G = Be(y);
|
|
733
|
+
I > G && oe(I, G), p[y] = {
|
|
734
|
+
key: P._key,
|
|
735
|
+
length: P._hasChildren ? v(P._key).length : void 0
|
|
736
736
|
};
|
|
737
737
|
}
|
|
738
738
|
u = ae(u);
|
|
@@ -740,20 +740,20 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
|
|
|
740
740
|
}
|
|
741
741
|
if (!o.tree) {
|
|
742
742
|
const u = ae(e);
|
|
743
|
-
for (let
|
|
744
|
-
const
|
|
745
|
-
!D._divider && (D._hasChildren || (s =
|
|
746
|
-
_key: Ie(
|
|
743
|
+
for (let V = 0; V < u.length - 1; V++) {
|
|
744
|
+
const y = u[V], D = u[V + 1];
|
|
745
|
+
!D._divider && (D._hasChildren || (s = y._parentKeys) != null && s.length && !((x = D._parentKeys) != null && x.length)) && (u.splice(V + 1, 0, {
|
|
746
|
+
_key: Ie(je),
|
|
747
747
|
_divider: !0,
|
|
748
|
-
_id: Ie(
|
|
749
|
-
}),
|
|
748
|
+
_id: Ie(je)
|
|
749
|
+
}), V++);
|
|
750
750
|
}
|
|
751
751
|
e = u;
|
|
752
752
|
}
|
|
753
753
|
return e;
|
|
754
754
|
});
|
|
755
755
|
U();
|
|
756
|
-
const { getDisabled: ee, getStatus:
|
|
756
|
+
const { getDisabled: ee, getStatus: He, getSize: E } = Xt({
|
|
757
757
|
defaults: { size: "md" },
|
|
758
758
|
exports: ["getDisabled", "getSize", "getStatus"]
|
|
759
759
|
}), se = C(() => {
|
|
@@ -776,7 +776,7 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
|
|
|
776
776
|
default:
|
|
777
777
|
return "xsm";
|
|
778
778
|
}
|
|
779
|
-
}),
|
|
779
|
+
}), Se = ve(), ke = {
|
|
780
780
|
sm: 4,
|
|
781
781
|
md: 6,
|
|
782
782
|
lg: 8
|
|
@@ -789,14 +789,14 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
|
|
|
789
789
|
lg: 54
|
|
790
790
|
}, ze = C(() => ({
|
|
791
791
|
get count() {
|
|
792
|
-
return
|
|
792
|
+
return z.value.length;
|
|
793
793
|
},
|
|
794
794
|
getScrollElement: () => {
|
|
795
795
|
var e;
|
|
796
|
-
return (e =
|
|
796
|
+
return (e = Se.value) == null ? void 0 : e.container.viewportElement;
|
|
797
797
|
},
|
|
798
798
|
estimateSize: (e) => {
|
|
799
|
-
const l =
|
|
799
|
+
const l = z.value[e];
|
|
800
800
|
if (!o.tree && l) {
|
|
801
801
|
if (l._divider)
|
|
802
802
|
return 1;
|
|
@@ -809,7 +809,7 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
|
|
|
809
809
|
},
|
|
810
810
|
overscan: 5,
|
|
811
811
|
get gap() {
|
|
812
|
-
return
|
|
812
|
+
return ke[E.value] ?? 0;
|
|
813
813
|
}
|
|
814
814
|
}));
|
|
815
815
|
let R, te;
|
|
@@ -819,14 +819,14 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
|
|
|
819
819
|
);
|
|
820
820
|
R = e, te = l;
|
|
821
821
|
}
|
|
822
|
-
const
|
|
822
|
+
const yt = C(
|
|
823
823
|
() => {
|
|
824
824
|
var e;
|
|
825
|
-
return o.virtual ? (((e = R == null ? void 0 : R.value) == null ? void 0 : e.getVirtualItems()) ?? []).map((l) =>
|
|
825
|
+
return o.virtual ? (((e = R == null ? void 0 : R.value) == null ? void 0 : e.getVirtualItems()) ?? []).map((l) => z.value[l.index]) : z.value;
|
|
826
826
|
}
|
|
827
|
-
),
|
|
828
|
-
inputBindings:
|
|
829
|
-
rootBindings:
|
|
827
|
+
), ht = C(() => (te == null ? void 0 : te.containerStyles.value) ?? {}), {
|
|
828
|
+
inputBindings: bt,
|
|
829
|
+
rootBindings: _t,
|
|
830
830
|
focused: Ct
|
|
831
831
|
} = Zt({
|
|
832
832
|
getDisabled: () => ee.value
|
|
@@ -840,105 +840,105 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
|
|
|
840
840
|
}, 100);
|
|
841
841
|
ie.value.input.style.pointerEvents = "";
|
|
842
842
|
}
|
|
843
|
-
},
|
|
844
|
-
() => !o.noValueOnPlaceholder && (
|
|
845
|
-
),
|
|
846
|
-
if (
|
|
847
|
-
if (o.multiple &&
|
|
843
|
+
}, Ue = C(
|
|
844
|
+
() => !o.noValueOnPlaceholder && (Q(n.value) ? n.value.length === 1 && !K(n.value[0]) : !K(n.value))
|
|
845
|
+
), St = C(() => {
|
|
846
|
+
if (Ue.value) {
|
|
847
|
+
if (o.multiple && Q(n.value))
|
|
848
848
|
return M(nt(n.value));
|
|
849
|
-
if (!o.multiple && !
|
|
849
|
+
if (!o.multiple && !Q(n.value))
|
|
850
850
|
return M(n.value);
|
|
851
851
|
}
|
|
852
|
-
}), { CollectionSlot:
|
|
852
|
+
}), { CollectionSlot: kt, CollectionItem: qe, itemMap: xt, getItems: Je } = eo({
|
|
853
853
|
isProvider: !0,
|
|
854
|
-
key:
|
|
855
|
-
}), Qe = () => n.value ? Array.isArray(n.value) ? n.value : [n.value] : [],
|
|
856
|
-
|
|
854
|
+
key: T
|
|
855
|
+
}), Qe = () => n.value ? Array.isArray(n.value) ? n.value : [n.value] : [], O = ve(), Ae = (e) => {
|
|
856
|
+
O.value = e;
|
|
857
857
|
}, Xe = (e) => ({
|
|
858
858
|
"data-disabled": e._disabled ? "" : void 0,
|
|
859
|
-
"data-highlighted":
|
|
859
|
+
"data-highlighted": O.value === e._key ? "" : void 0
|
|
860
860
|
}), fe = ve(), Ye = (e, l) => {
|
|
861
861
|
var a, s;
|
|
862
862
|
if (l && ((a = fe.value) != null && a.onSelect) && o.tree && ((s = fe.value) == null || s.onSelect(e, !re(e == null ? void 0 : e._key))), !(o.tree || !e || !e._key || e._disabled))
|
|
863
863
|
if (o.multiple)
|
|
864
864
|
if (e._clear)
|
|
865
|
-
n.value = [],
|
|
865
|
+
n.value = [], S("select", void 0, !1);
|
|
866
866
|
else if (e._single)
|
|
867
|
-
n.value = [e._key],
|
|
867
|
+
n.value = [e._key], S("select", e._key, !0, e);
|
|
868
868
|
else {
|
|
869
|
-
let
|
|
870
|
-
const u =
|
|
871
|
-
|
|
869
|
+
let x = Q(n.value) ? n.value : [];
|
|
870
|
+
const u = x.includes(e._key);
|
|
871
|
+
x.length === 1 && de(x[0]) && e._key !== x[0] && (x = []), u ? (n.value = x.filter((V) => V !== e._key), S("select", e._key, !0, e)) : (n.value = [...x, e._key], S("select", e._key, !1, e));
|
|
872
872
|
}
|
|
873
|
-
else e._clear ? (n.value = void 0,
|
|
874
|
-
}, { getDir:
|
|
873
|
+
else e._clear ? (n.value = void 0, S("select", void 0, !1)) : (n.value = e._key, S("select", e._key, !0, e));
|
|
874
|
+
}, { getDir: Bt } = Co(), xe = Bt(), Ze = {
|
|
875
875
|
props: o,
|
|
876
|
-
emit:
|
|
876
|
+
emit: S,
|
|
877
877
|
onKeyDown: (e) => {
|
|
878
|
-
var l, a, s,
|
|
879
|
-
if (o.headerSearch || e.stopPropagation(), e.key === "Backspace" && o.multiple &&
|
|
878
|
+
var l, a, s, x, u, V;
|
|
879
|
+
if (o.headerSearch || e.stopPropagation(), e.key === "Backspace" && o.multiple && Q(n.value) && K(h.value))
|
|
880
880
|
n.value = n.value.slice(0, -1);
|
|
881
881
|
else if (!g.value)
|
|
882
882
|
(e.key === "ArrowDown" || e.key === "Enter") && (g.value = !0);
|
|
883
883
|
else if (g.value) {
|
|
884
|
-
const
|
|
884
|
+
const y = Je(o.tree);
|
|
885
885
|
if (e.key === "Escape") g.value = !1;
|
|
886
886
|
else if (e.key === "Tab" && !o.headerSearch) g.value = !1;
|
|
887
887
|
else if (["ArrowDown", "ArrowUp"].includes(e.key)) {
|
|
888
|
-
if (
|
|
889
|
-
const D =
|
|
890
|
-
(
|
|
888
|
+
if (y.length) {
|
|
889
|
+
const D = y.findIndex(
|
|
890
|
+
(p) => O.value && p.value && p.value === O.value
|
|
891
891
|
);
|
|
892
892
|
if (e.key === "ArrowDown") {
|
|
893
|
-
const
|
|
894
|
-
|
|
893
|
+
const p = y[D + 1];
|
|
894
|
+
O.value = (p == null ? void 0 : p.value) ?? O.value ?? y[0].value;
|
|
895
895
|
} else if (e.key === "ArrowUp") {
|
|
896
|
-
const
|
|
897
|
-
|
|
896
|
+
const p = y[D - 1];
|
|
897
|
+
O.value = (p == null ? void 0 : p.value) ?? y[0].value;
|
|
898
898
|
}
|
|
899
|
-
(a = (l =
|
|
900
|
-
(
|
|
899
|
+
(a = (l = y.find(
|
|
900
|
+
(p) => O.value && p.value && p.value === O.value
|
|
901
901
|
)) == null ? void 0 : l.ref) == null || a.scrollIntoView();
|
|
902
902
|
}
|
|
903
903
|
} else if (["ArrowLeft", "ArrowRight"].includes(e.key)) {
|
|
904
|
-
const D =
|
|
905
|
-
|
|
906
|
-
} else e.key === "Enter" && (
|
|
907
|
-
e.key === "Escape" &&
|
|
904
|
+
const D = A(O.value);
|
|
905
|
+
y.length && fe.value && o.tree && O.value && D && ((s = F.value) != null && s.includes(O.value) && (xe.value === "ltr" && e.key === "ArrowLeft" || xe.value === "rtl" && e.key === "ArrowRight") || !((x = F.value) != null && x.includes(O.value)) && (xe.value === "ltr" && e.key === "ArrowRight" || xe.value === "rtl" && e.key === "ArrowLeft")) && ((V = (u = fe.value).onExpandKey) == null || V.call(u, D));
|
|
906
|
+
} else e.key === "Enter" && (y.length === 1 && y[0].value && O.value !== y[0].value && (O.value = y[0].value), O.value && Ye(A(O.value), !0), S("keydownEnter", e, h.value));
|
|
907
|
+
e.key === "Escape" && S("keydownEscape", e);
|
|
908
908
|
}
|
|
909
909
|
},
|
|
910
|
-
searchModel:
|
|
910
|
+
searchModel: h,
|
|
911
911
|
openModel: g,
|
|
912
912
|
model: n,
|
|
913
913
|
slots: m,
|
|
914
|
-
valuePlaceholder:
|
|
915
|
-
placeholder:
|
|
916
|
-
getOptionByValue:
|
|
914
|
+
valuePlaceholder: Ue,
|
|
915
|
+
placeholder: St,
|
|
916
|
+
getOptionByValue: A,
|
|
917
917
|
isOptionSelected: re,
|
|
918
918
|
getLabelByValue: M,
|
|
919
919
|
getSingleByValue: de,
|
|
920
920
|
inputRef: ie,
|
|
921
921
|
focusOnInput: Ve,
|
|
922
922
|
getDisabled: ee,
|
|
923
|
-
getStatus:
|
|
923
|
+
getStatus: He,
|
|
924
924
|
getSize: E,
|
|
925
925
|
getTagSize: se,
|
|
926
926
|
getIconSize: Te,
|
|
927
|
-
comboboxInputBinding:
|
|
928
|
-
comboboxTriggerBinding:
|
|
927
|
+
comboboxInputBinding: bt,
|
|
928
|
+
comboboxTriggerBinding: _t,
|
|
929
929
|
comboboxInputFocused: Ct,
|
|
930
930
|
selectOption: Ye,
|
|
931
|
-
itemMap:
|
|
931
|
+
itemMap: xt,
|
|
932
932
|
getItems: Je,
|
|
933
|
-
highlightedOptionKey:
|
|
933
|
+
highlightedOptionKey: O
|
|
934
934
|
};
|
|
935
|
-
|
|
935
|
+
xo(Ze), Ft(
|
|
936
936
|
() => [o.clearOnChangeMultiple, o.multiple],
|
|
937
937
|
() => {
|
|
938
938
|
o.clearOnChangeMultiple && (n.value = void 0);
|
|
939
939
|
}
|
|
940
940
|
);
|
|
941
|
-
const
|
|
941
|
+
const Ot = C(() => ({
|
|
942
942
|
defaultExpandAll: !0,
|
|
943
943
|
showLine: !0,
|
|
944
944
|
disabled: ee.value,
|
|
@@ -953,16 +953,16 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
|
|
|
953
953
|
checkable: o.multiple && o.checkbox,
|
|
954
954
|
virtual: R,
|
|
955
955
|
syncCheckboxAndSelect: o.multiple,
|
|
956
|
-
data:
|
|
956
|
+
data: z.value,
|
|
957
957
|
modelValue: Qe(),
|
|
958
958
|
checkedKeys: Qe(),
|
|
959
|
-
class:
|
|
960
|
-
})),
|
|
959
|
+
class: k(T, "tree")
|
|
960
|
+
})), Pt = C(() => {
|
|
961
961
|
const e = o.scrollContainerProps ?? {};
|
|
962
962
|
return {
|
|
963
963
|
...e,
|
|
964
964
|
areaCls: [
|
|
965
|
-
|
|
965
|
+
k(T, "scroll_area"),
|
|
966
966
|
e == null ? void 0 : e.class,
|
|
967
967
|
e == null ? void 0 : e.areaCls
|
|
968
968
|
],
|
|
@@ -971,74 +971,74 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
|
|
|
971
971
|
style: (te == null ? void 0 : te.scrollWrapperStyles.value) ?? {}
|
|
972
972
|
}
|
|
973
973
|
};
|
|
974
|
-
}),
|
|
974
|
+
}), Ee = k(T, "popup"), It = dt(Ee, {
|
|
975
975
|
variants: {
|
|
976
|
-
size:
|
|
976
|
+
size: J(vt, Ee)
|
|
977
977
|
}
|
|
978
|
-
}), wt = C(() =>
|
|
978
|
+
}), wt = C(() => $e(o.popupWidth, !0)), Tt = C(() => $e(o.popupHeight, !0)), zt = C(() => $e(o.minWidth, !0)), Vt = () => {
|
|
979
979
|
var a, s;
|
|
980
980
|
const e = (s = m.header) == null ? void 0 : s.call(m, {
|
|
981
|
-
isEmpty: !((a =
|
|
982
|
-
search:
|
|
981
|
+
isEmpty: !((a = z.value) != null && a.length),
|
|
982
|
+
search: h.value
|
|
983
983
|
}), l = !$(e);
|
|
984
984
|
if (l || o.headerSearch)
|
|
985
|
-
return
|
|
985
|
+
return b(
|
|
986
986
|
"div",
|
|
987
|
-
{ class:
|
|
988
|
-
l ? e :
|
|
987
|
+
{ class: k(T, "header") },
|
|
988
|
+
l ? e : b(Ge, o.headerSearchInputProps || {})
|
|
989
989
|
);
|
|
990
|
-
},
|
|
990
|
+
}, At = () => {
|
|
991
991
|
var a, s;
|
|
992
992
|
const e = (s = m.footer) == null ? void 0 : s.call(m, {
|
|
993
|
-
isEmpty: !((a =
|
|
994
|
-
search:
|
|
993
|
+
isEmpty: !((a = z.value) != null && a.length),
|
|
994
|
+
search: h.value
|
|
995
995
|
});
|
|
996
996
|
if (!$(e))
|
|
997
|
-
return
|
|
998
|
-
},
|
|
997
|
+
return b("div", { class: k(T, "footer") }, e);
|
|
998
|
+
}, Et = () => {
|
|
999
999
|
var a;
|
|
1000
1000
|
const e = {
|
|
1001
1001
|
type: E.value === "sm" ? "simple" : "advance",
|
|
1002
|
-
...
|
|
1003
|
-
class: H(
|
|
1002
|
+
...he(o.emptyProps ?? {}, ["class"]),
|
|
1003
|
+
class: H(k(T, "empty"), o.emptyCls)
|
|
1004
1004
|
}, l = (a = m.empty) == null ? void 0 : a.call(m, e);
|
|
1005
|
-
return $(l) ?
|
|
1005
|
+
return $(l) ? b(ko, e, {
|
|
1006
1006
|
title: m.emptyTitle,
|
|
1007
1007
|
description: m.emptyDescription,
|
|
1008
1008
|
actions: m.emptyActions,
|
|
1009
1009
|
image: m.emptyImage
|
|
1010
1010
|
}) : l;
|
|
1011
|
-
},
|
|
1011
|
+
}, Dt = () => {
|
|
1012
1012
|
var a;
|
|
1013
1013
|
const e = (a = m.loading) == null ? void 0 : a.call(m, {});
|
|
1014
|
-
return $(e) ? new Array(
|
|
1015
|
-
() =>
|
|
1014
|
+
return $(e) ? new Array(z.value.length ? 2 : o.loadingRowCount).fill(1).map(
|
|
1015
|
+
() => b(bo, {
|
|
1016
1016
|
size: E.value,
|
|
1017
|
-
class: H(
|
|
1018
|
-
...
|
|
1017
|
+
class: H(k(T, "skeleton"), o.skeletonCls),
|
|
1018
|
+
...he(o.skeletonProps ?? {}, ["class"])
|
|
1019
1019
|
})
|
|
1020
1020
|
) : e;
|
|
1021
|
-
},
|
|
1021
|
+
}, Lt = (e, l, a) => {
|
|
1022
1022
|
const s = e._clear;
|
|
1023
1023
|
if (o.multiple) {
|
|
1024
|
-
const
|
|
1025
|
-
s ? n.value = [] :
|
|
1024
|
+
const x = e._single;
|
|
1025
|
+
s ? n.value = [] : x ? n.value = [e._key] : n.value = a;
|
|
1026
1026
|
} else s || !l ? n.value = void 0 : n.value = e._key;
|
|
1027
|
-
|
|
1027
|
+
S(
|
|
1028
1028
|
"select",
|
|
1029
1029
|
e._key,
|
|
1030
1030
|
l,
|
|
1031
1031
|
e
|
|
1032
1032
|
);
|
|
1033
|
-
},
|
|
1033
|
+
}, Mt = (e) => {
|
|
1034
1034
|
e.key === "ArrowDown" && !g.value ? g.value = !0 : e.key === "Tab" && g.value && (g.value = !1);
|
|
1035
1035
|
};
|
|
1036
|
-
return o.disableOutsidePointerEvents && to(g), t(Ze), (e, l) => (
|
|
1036
|
+
return o.disableOutsidePointerEvents && to(g), t(Ze), (e, l) => (w(), j(i(ao), ue({
|
|
1037
1037
|
open: i(g),
|
|
1038
1038
|
"onUpdate:open": l[2] || (l[2] = (a) => tt(g) ? g.value = a : null)
|
|
1039
1039
|
}, Z.value, {
|
|
1040
1040
|
containerProps: {
|
|
1041
|
-
...
|
|
1041
|
+
...B.containerProps ?? {},
|
|
1042
1042
|
onClick: Ve
|
|
1043
1043
|
},
|
|
1044
1044
|
noPadding: !0,
|
|
@@ -1046,54 +1046,54 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
|
|
|
1046
1046
|
containerStyle: {
|
|
1047
1047
|
pointerEvents: "auto",
|
|
1048
1048
|
display: i(g) ? void 0 : "none",
|
|
1049
|
-
zIndex:
|
|
1050
|
-
"--ptc-combobox-popup-width":
|
|
1049
|
+
zIndex: B.zIndex,
|
|
1050
|
+
"--ptc-combobox-popup-width": B.samePopupWidth ? void 0 : wt.value,
|
|
1051
1051
|
"--ptc-combobox-popup-height": Tt.value,
|
|
1052
1052
|
"--ptc-combobox-trigger-min-w": zt.value
|
|
1053
1053
|
},
|
|
1054
|
-
containerCls: i(H)(i(It)({ size: i(E) }),
|
|
1055
|
-
onKeydown:
|
|
1054
|
+
containerCls: i(H)(i(It)({ size: i(E) }), B.popupCls),
|
|
1055
|
+
onKeydown: Mt
|
|
1056
1056
|
}), {
|
|
1057
1057
|
default: W(() => [
|
|
1058
|
-
|
|
1058
|
+
Y(Oo)
|
|
1059
1059
|
]),
|
|
1060
1060
|
content: W(() => [
|
|
1061
|
-
|
|
1062
|
-
|
|
1061
|
+
Y(Vt),
|
|
1062
|
+
Y(i(So), ue({
|
|
1063
1063
|
ref_key: "scrollContainerRef",
|
|
1064
|
-
ref:
|
|
1065
|
-
},
|
|
1064
|
+
ref: Se
|
|
1065
|
+
}, Pt.value), {
|
|
1066
1066
|
default: W(() => [
|
|
1067
|
-
|
|
1067
|
+
z.value.length || B.loading ? (w(), j(i(kt), { key: 0 }, {
|
|
1068
1068
|
default: W(() => [
|
|
1069
1069
|
ot("div", {
|
|
1070
|
-
class: we(i(H)(i(
|
|
1071
|
-
style:
|
|
1072
|
-
onPointerleave: l[1] || (l[1] = (a) =>
|
|
1070
|
+
class: we(i(H)(i(k)(i(T), "options"), B.optionsCls)),
|
|
1071
|
+
style: Wt(B.virtual ? ht.value : {}),
|
|
1072
|
+
onPointerleave: l[1] || (l[1] = (a) => Ae(void 0))
|
|
1073
1073
|
}, [
|
|
1074
|
-
|
|
1074
|
+
B.tree ? (w(), j(i(vo), ue({
|
|
1075
1075
|
key: 0,
|
|
1076
1076
|
ref_key: "treeRef",
|
|
1077
1077
|
ref: fe
|
|
1078
|
-
},
|
|
1079
|
-
expandedKeys: i(
|
|
1080
|
-
"onUpdate:expandedKeys": l[0] || (l[0] = (a) => tt(
|
|
1078
|
+
}, Ot.value, {
|
|
1079
|
+
expandedKeys: i(F),
|
|
1080
|
+
"onUpdate:expandedKeys": l[0] || (l[0] = (a) => tt(F) ? F.value = a : null),
|
|
1081
1081
|
onExpand: Ve,
|
|
1082
|
-
onSelect:
|
|
1082
|
+
onSelect: Lt
|
|
1083
1083
|
}), {
|
|
1084
1084
|
default: W(({ items: a }) => [
|
|
1085
|
-
(
|
|
1085
|
+
(w(!0), ye(Ne, null, Ke(a, (s) => (w(), j(i(qe), {
|
|
1086
1086
|
key: s._key,
|
|
1087
1087
|
value: s._key,
|
|
1088
1088
|
id: s._id
|
|
1089
1089
|
}, {
|
|
1090
1090
|
default: W(() => [
|
|
1091
|
-
|
|
1092
|
-
onPointermove: (
|
|
1091
|
+
Y(i(yo), ue({ node: s }, { ref_for: !0 }, Xe(s), {
|
|
1092
|
+
onPointermove: (x) => Ae(s._key),
|
|
1093
1093
|
id: s._id
|
|
1094
1094
|
}), {
|
|
1095
1095
|
default: W(() => [
|
|
1096
|
-
|
|
1096
|
+
Y(it, {
|
|
1097
1097
|
option: s
|
|
1098
1098
|
}, null, 8, ["option"])
|
|
1099
1099
|
]),
|
|
@@ -1104,57 +1104,57 @@ const [Ge, So] = Ht("Combobox"), w = oo("combobox"), ft = lo(w, "value-placehold
|
|
|
1104
1104
|
}, 1032, ["value", "id"]))), 128))
|
|
1105
1105
|
]),
|
|
1106
1106
|
_: 1
|
|
1107
|
-
}, 16, ["expandedKeys"])) : (
|
|
1107
|
+
}, 16, ["expandedKeys"])) : (w(!0), ye(Ne, { key: 1 }, Ke(yt.value, (a) => (w(), ye(Ne, {
|
|
1108
1108
|
key: a._key
|
|
1109
1109
|
}, [
|
|
1110
|
-
a._divider ? (
|
|
1110
|
+
a._divider ? (w(), j(_o, { key: 0 })) : a._label && a._hasChildren ? (w(), j(Po, {
|
|
1111
1111
|
key: 1,
|
|
1112
1112
|
label: a._label
|
|
1113
|
-
}, null, 8, ["label"])) : a._hasChildren ?
|
|
1113
|
+
}, null, 8, ["label"])) : a._hasChildren ? Re("", !0) : (w(), j(i(qe), {
|
|
1114
1114
|
key: 2,
|
|
1115
1115
|
value: a._key,
|
|
1116
1116
|
id: a._id
|
|
1117
1117
|
}, {
|
|
1118
1118
|
default: W(() => [
|
|
1119
|
-
|
|
1120
|
-
onPointermove: (s) =>
|
|
1119
|
+
Y(it, ue({ option: a }, { ref_for: !0 }, Xe(a), {
|
|
1120
|
+
onPointermove: (s) => Ae(a._key),
|
|
1121
1121
|
id: a._id
|
|
1122
1122
|
}), null, 16, ["option", "onPointermove", "id"])
|
|
1123
1123
|
]),
|
|
1124
1124
|
_: 2
|
|
1125
1125
|
}, 1032, ["value", "id"]))
|
|
1126
1126
|
], 64))), 128)),
|
|
1127
|
-
|
|
1127
|
+
B.loading ? (w(), j(Dt, { key: 2 })) : Re("", !0)
|
|
1128
1128
|
], 38)
|
|
1129
1129
|
]),
|
|
1130
1130
|
_: 1
|
|
1131
|
-
})) : (
|
|
1132
|
-
|
|
1131
|
+
})) : (w(), j(Et, { key: 1 })),
|
|
1132
|
+
B.lazyLoading ? (w(), ye("div", {
|
|
1133
1133
|
key: 2,
|
|
1134
|
-
class: we(i(
|
|
1134
|
+
class: we(i(k)(i(T), "lazy_loading"))
|
|
1135
1135
|
}, [
|
|
1136
1136
|
ot("div", {
|
|
1137
|
-
class: we(i(
|
|
1137
|
+
class: we(i(k)(i(T), "lazy_loading_trigger")),
|
|
1138
1138
|
ref_key: "target",
|
|
1139
|
-
ref:
|
|
1139
|
+
ref: ce
|
|
1140
1140
|
}, null, 2)
|
|
1141
|
-
], 2)) :
|
|
1141
|
+
], 2)) : Re("", !0)
|
|
1142
1142
|
]),
|
|
1143
1143
|
_: 1
|
|
1144
1144
|
}, 16),
|
|
1145
|
-
|
|
1145
|
+
Y(At)
|
|
1146
1146
|
]),
|
|
1147
1147
|
_: 1
|
|
1148
1148
|
}, 16, ["open", "containerProps", "size", "containerStyle", "containerCls"]));
|
|
1149
1149
|
}
|
|
1150
|
-
}),
|
|
1150
|
+
}), cl = ct(Io, pt("Combobox")), pl = ct(Ge, pt("ComboboxInput"));
|
|
1151
1151
|
export {
|
|
1152
1152
|
Io as Combobox,
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1153
|
+
Ge as ComboboxInput,
|
|
1154
|
+
pl as ComboboxInputPlugin,
|
|
1155
|
+
cl as ComboboxPlugin,
|
|
1156
1156
|
vt as ComboboxSizes,
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1157
|
+
Bo as ComboboxStatuses,
|
|
1158
|
+
We as injectComboboxContext,
|
|
1159
|
+
xo as provideComboboxContext
|
|
1160
1160
|
};
|