@pantograph/vue 0.23.28 → 0.23.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ActionButton/index.js +1 -1
- package/dist/ActionButton/index.umd.cjs +1 -1
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-DeTdC1cW.js +1 -0
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-C8z93ENb.js → ActionButton.vue_vue_type_script_setup_true_lang-RVj-nN0r.js} +2 -2
- package/dist/Alert/index.js +1 -1
- package/dist/Alert/index.umd.cjs +1 -1
- package/dist/{Alert.vue_vue_type_style_index_0_lang-BgHgn7SC.js → Alert.vue_vue_type_style_index_0_lang-CEizkMD6.js} +1 -1
- package/dist/{Alert.vue_vue_type_style_index_0_lang-CPRTbjop.js → Alert.vue_vue_type_style_index_0_lang-DzMkc2f8.js} +4 -4
- 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-DRTI7zpy.js → Avatar.vue_vue_type_style_index_0_lang-CG3qZwml.js} +21 -21
- package/dist/Avatar.vue_vue_type_style_index_0_lang-DR4oFB60.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-BnR8U44-.js → Badge.vue_vue_type_script_setup_true_lang-Bel7m2XO.js} +3 -3
- package/dist/Badge.vue_vue_type_script_setup_true_lang-kdwL4C3B.js +1 -0
- package/dist/Base/BaseBadge/BaseBadge.d.ts +2 -2
- package/dist/{BaseBadge.model-D4KY5lCI.js → BaseBadge.model-CahZXsyM.js} +13 -9
- package/dist/BaseBadge.model-DecqxaGN.js +1 -0
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-Wmx7m4Ui.js +1 -0
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-dZStVHyN.js +88 -0
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-jtdqVkoM.js → BaseButton.vue_vue_type_style_index_0_lang-D-FPDP8y.js} +1 -1
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-C43UZ0ej.js → BaseButton.vue_vue_type_style_index_0_lang-DXtUOscM.js} +9 -9
- 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-DMOpqcfL.js → Button.vue_vue_type_script_setup_true_lang-DenYIosW.js} +2 -2
- package/dist/Button.vue_vue_type_script_setup_true_lang-sPIPZQTw.js +1 -0
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/ButtonGroup/index.umd.cjs +1 -1
- package/dist/{ButtonGroup.vue_vue_type_script_setup_true_lang-Bx7dH5Fx.js → ButtonGroup.vue_vue_type_script_setup_true_lang-CF56RzMa.js} +1 -1
- package/dist/{ButtonGroup.vue_vue_type_script_setup_true_lang-D_6kzAX6.js → ButtonGroup.vue_vue_type_script_setup_true_lang-DL19WEBS.js} +1 -1
- package/dist/Checkbox/index.js +1 -1
- package/dist/Checkbox/index.umd.cjs +1 -1
- package/dist/{Checkbox.vue_vue_type_style_index_0_lang-aDK0Pvm-.js → Checkbox.vue_vue_type_style_index_0_lang-BQz71n-J.js} +13 -14
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-CEfUuSKn.js +1 -0
- package/dist/CheckboxGroup/index.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- 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-DXsCoBle.js → Chip.vue_vue_type_style_index_0_lang-BK96m8QS.js} +19 -21
- package/dist/Chip.vue_vue_type_style_index_0_lang-Dr18lqpx.js +1 -0
- package/dist/ChipGroup/index.js +1 -1
- package/dist/ChipGroup/index.umd.cjs +1 -1
- package/dist/ChipGroup.vue_vue_type_style_index_0_lang-CdSZ4qVb.js +1 -0
- package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-R-SmBNur.js → ChipGroup.vue_vue_type_style_index_0_lang-Deu3foBm.js} +3 -3
- 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-N19VFnXL.js → ColorPicker.vue_vue_type_style_index_0_lang-D39DWUGP.js} +3 -3
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-0SIDliS4.js → ColorPicker.vue_vue_type_style_index_0_lang-rrJjUJgM.js} +2 -2
- package/dist/ColorSwatch/index.js +1 -1
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/{ColorSwatch-BerOW8in.js → ColorSwatch-BEvCUdOZ.js} +1 -1
- package/dist/{ColorSwatch-BUXcDup7.js → ColorSwatch-CSSvqd_c.js} +1 -1
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-CdoLi2ow.js → ColorSwatch.vue_vue_type_style_index_0_lang-BVhMYaTw.js} +3 -3
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-CE5X5nlS.js +1 -0
- 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-DyXou_Un.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-D_nDDfhY.js} +14 -15
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-DcpBSdtq.js +1 -0
- package/dist/ColorTrigger/index.js +1 -1
- package/dist/ColorTrigger/index.umd.cjs +1 -1
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-DhTOw7qR.js +1 -0
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-CbOky0vB.js → ColorTrigger.vue_vue_type_style_index_0_lang-UyNY1isO.js} +19 -20
- package/dist/Combobox/Combobox.d.ts +10 -26
- package/dist/Combobox/ComboboxWrapper.d.ts +2 -2
- package/dist/Combobox/index.js +1 -1
- package/dist/Combobox/index.umd.cjs +1 -1
- package/dist/Combobox/types.d.ts +3 -2
- package/dist/{Combobox.vue_vue_type_style_index_0_lang-DXKRCrNG.js → Combobox.vue_vue_type_style_index_0_lang-DesiLm3f.js} +275 -276
- package/dist/Combobox.vue_vue_type_style_index_0_lang-xT5WxjkN.js +1 -0
- package/dist/ConfigProvider/index.js +1 -1
- package/dist/DataTable/index.js +1 -1
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/DataTable.vue_vue_type_style_index_0_lang-B1iqfrLk.js +1 -0
- package/dist/DataTable.vue_vue_type_style_index_0_lang-D7ei-pVz.js +878 -0
- package/dist/DropZone/index.js +1 -1
- package/dist/DropZone/index.umd.cjs +1 -1
- package/dist/{DropZone.vue_vue_type_style_index_0_lang-gFBvGjz1.js → DropZone.vue_vue_type_style_index_0_lang-BGI0xE7i.js} +1 -1
- package/dist/{DropZone.vue_vue_type_style_index_0_lang-BGPLh8_0.js → DropZone.vue_vue_type_style_index_0_lang-BUpigvsB.js} +2 -2
- package/dist/Empty/index.js +1 -1
- package/dist/Empty/index.umd.cjs +1 -1
- package/dist/{Empty.vue_vue_type_style_index_0_lang-jfObDGf0.js → Empty.vue_vue_type_style_index_0_lang-Bh1RXTPu.js} +5 -5
- package/dist/Empty.vue_vue_type_style_index_0_lang-Dz23WZAz.js +1 -0
- 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-C8YU2bkm.js +1 -0
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-BUfaLSLw.js → FloatButton.vue_vue_type_script_setup_true_lang-DG7cF0pA.js} +2 -2
- package/dist/Form/index.js +1 -1
- package/dist/Form/index.umd.cjs +1 -1
- package/dist/FormValidation/FormValidation.d.ts +29 -0
- package/dist/GOPicker/GOPicker.d.ts +2 -0
- package/dist/GOPicker/GOPicker.model.d.ts +5 -1
- package/dist/GOPicker/index.js +1 -1
- package/dist/GOPicker/index.umd.cjs +1 -1
- package/dist/GraphicalObject/index.js +1 -1
- package/dist/GraphicalObject/index.umd.cjs +1 -1
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-BdaaGJWu.js +1 -0
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-Cm_eOjGc.js → GraphicalObject.vue_vue_type_script_setup_true_lang-Co71MPdO.js} +4 -4
- package/dist/GraphicalObjectGroup/index.js +1 -1
- package/dist/GraphicalObjectGroup/index.umd.cjs +1 -1
- package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-C3LfQ7iN.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-C7e0n3EP.js} +6 -6
- package/dist/GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DAiMLwZR.js +1 -0
- package/dist/Icon/Icon.d.ts +1 -15
- package/dist/Icon/index.js +1 -1
- package/dist/Icon/index.umd.cjs +1 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-Caz79tKh.js +9 -0
- package/dist/Icon.vue_vue_type_style_index_0_lang-CoGeYkwL.js +3647 -0
- 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-BX4DBv1F.js +1 -0
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-Cx0nQH6I.js → IconButton.vue_vue_type_script_setup_true_lang-D7JgAv4k.js} +2 -2
- package/dist/Image/index.js +1 -1
- package/dist/Image/index.umd.cjs +1 -1
- package/dist/{Image.vue_vue_type_style_index_0_lang-2BaylnYm.js → Image.vue_vue_type_style_index_0_lang-B9xnIBX0.js} +12 -13
- package/dist/Image.vue_vue_type_style_index_0_lang-DwBL-Y-l.js +1 -0
- package/dist/IndentLevel/index.js +1 -1
- package/dist/IndentLevel/index.umd.cjs +1 -1
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-O93nqSfY.js → IndentLevel.vue_vue_type_style_index_0_lang-BNW6siZV.js} +12 -12
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-DJfjj7xo.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-CmsMJSXL.js → Indicator.vue_vue_type_script_setup_true_lang-D6zU6dVO.js} +3 -3
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-kQk7szIk.js +1 -0
- package/dist/Input/index.js +1 -1
- package/dist/Input/index.umd.cjs +1 -1
- package/dist/{Input.vue_vue_type_style_index_0_lang-oEQu3uIk.js → Input.vue_vue_type_style_index_0_lang-DmQw8XIX.js} +28 -30
- package/dist/Input.vue_vue_type_style_index_0_lang-Dvjqr9Xv.js +1 -0
- package/dist/Kbd/index.js +1 -1
- package/dist/Kbd/index.umd.cjs +1 -1
- package/dist/{Kbd.vue_vue_type_style_index_0_lang-CjNtLg1e.js → Kbd.vue_vue_type_style_index_0_lang-D3ztyCgC.js} +1 -1
- package/dist/{Kbd.vue_vue_type_style_index_0_lang-BQkzD8ay.js → Kbd.vue_vue_type_style_index_0_lang-rCwGhn3F.js} +4 -4
- package/dist/Label/index.js +1 -1
- package/dist/Label/index.umd.cjs +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/Link/index.umd.cjs +1 -1
- package/dist/Link.vue_vue_type_style_index_0_lang-CLEJ_vcP.js +1 -0
- package/dist/{Link.vue_vue_type_style_index_0_lang-BrS3jRuX.js → Link.vue_vue_type_style_index_0_lang-FbnTGj-S.js} +18 -19
- package/dist/Menu/index.js +1 -1
- package/dist/Menu/index.umd.cjs +1 -1
- package/dist/MenuItem/MenuItem.d.ts +1 -1
- package/dist/MenuItem/index.js +1 -1
- package/dist/MenuItem/index.umd.cjs +1 -1
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-BGtNa4LX.js +1 -0
- package/dist/{MenuItem.vue_vue_type_style_index_0_lang-7T_SPKSm.js → MenuItem.vue_vue_type_style_index_0_lang-CzqHUjTB.js} +133 -137
- package/dist/Popover/Popover.d.ts +6 -22
- package/dist/Popover/index.js +1 -1
- package/dist/Popover/index.umd.cjs +1 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-Bh9JyVRp.js +1 -0
- package/dist/{Popover.vue_vue_type_style_index_0_lang-DyIDJxIC.js → Popover.vue_vue_type_style_index_0_lang-V2fpykO-.js} +36 -38
- package/dist/Progress/Progress.d.ts +21 -0
- package/dist/Progress/ProgressCircle.d.ts +2 -0
- package/dist/Progress/ProgressHelperText.d.ts +2 -0
- package/dist/Progress/ProgressLabel.d.ts +2 -0
- package/dist/Progress/ProgressLegend.d.ts +2 -0
- package/dist/Progress/ProgressLine.d.ts +2 -0
- package/dist/Progress/ProgressValidationMessage.d.ts +2 -0
- 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-C0meJiGT.js +1 -0
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-B4itnrhx.js → RadioGroup.vue_vue_type_script_setup_true_lang-C7Ym1zLA.js} +2 -2
- package/dist/ScrollContainer/index.js +1 -1
- package/dist/{ScrollContainer.vue_vue_type_style_index_0_lang-DfMU1mTu.js → ScrollContainer.vue_vue_type_style_index_0_lang-BAxwM8rQ.js} +1 -1
- package/dist/Segmented/index.js +1 -1
- package/dist/Segmented/index.umd.cjs +1 -1
- package/dist/Segmented.vue_vue_type_style_index_0_lang-Bg8m0JHq.js +1 -0
- package/dist/{Segmented.vue_vue_type_style_index_0_lang-DEo3Y2uv.js → Segmented.vue_vue_type_style_index_0_lang-DIbrgKqc.js} +50 -53
- package/dist/Select/Select.d.ts +2 -6
- package/dist/Select/index.js +1 -1
- package/dist/Select/index.umd.cjs +1 -1
- package/dist/{Select.vue_vue_type_style_index_0_lang-COe9-Nur.js → Select.vue_vue_type_style_index_0_lang-HJPguJpZ.js} +153 -157
- package/dist/Select.vue_vue_type_style_index_0_lang-w0rDWnsH.js +1 -0
- package/dist/Shortcut/index.js +1 -1
- package/dist/Shortcut/index.umd.cjs +1 -1
- package/dist/{Shortcut.vue_vue_type_style_index_0_lang-DOhEtw_i.js → Shortcut.vue_vue_type_style_index_0_lang-BfkLWpzN.js} +1 -1
- package/dist/{Shortcut.vue_vue_type_style_index_0_lang-TtzM0gcb.js → Shortcut.vue_vue_type_style_index_0_lang-CAiLOLX0.js} +5 -5
- package/dist/Spinner/index.js +1 -1
- package/dist/Spinner/index.umd.cjs +1 -1
- package/dist/Spinner.vue_vue_type_style_index_0_lang-B58PCJ5d.js +1 -0
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-Bw_DeL5h.js → Spinner.vue_vue_type_style_index_0_lang-jGdUguew.js} +7 -7
- package/dist/SubMenu/SubMenu.d.ts +1 -1
- package/dist/SubMenu/index.js +1 -1
- package/dist/SubMenu/index.umd.cjs +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/Switch/index.umd.cjs +1 -1
- package/dist/{Switch.vue_vue_type_style_index_0_lang-D8QPqKz3.js → Switch.vue_vue_type_style_index_0_lang-CjdbtmcY.js} +4 -5
- package/dist/Switch.vue_vue_type_style_index_0_lang-DJTzQ0-k.js +1 -0
- package/dist/THead.vue_vue_type_style_index_0_lang-5hau1fhz.js +1 -0
- package/dist/{THead.vue_vue_type_style_index_0_lang-h3oNHUrT.js → THead.vue_vue_type_style_index_0_lang-Decfm1tR.js} +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/Table/index.umd.cjs +1 -1
- package/dist/Textarea/index.js +1 -1
- package/dist/Textarea/index.umd.cjs +1 -1
- package/dist/Textarea.vue_vue_type_style_index_0_lang-D5lL2O22.js +1 -0
- package/dist/{Textarea.vue_vue_type_style_index_0_lang-kXmJB4fr.js → Textarea.vue_vue_type_style_index_0_lang-bwCcI5Vn.js} +24 -26
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/index.umd.cjs +1 -1
- package/dist/{Tree.vue_vue_type_style_index_0_lang-26mqYWer.js → Tree.vue_vue_type_style_index_0_lang-DAlLOOjb.js} +2 -2
- package/dist/{Tree.vue_vue_type_style_index_0_lang-E0A2gSV2.js → Tree.vue_vue_type_style_index_0_lang-_3b0V0EZ.js} +12 -13
- package/dist/Upload/Upload.d.ts +61 -0
- package/dist/Upload/Upload.model.d.ts +8 -0
- package/dist/Upload/UploadFileGO.d.ts +2 -0
- package/dist/Upload/UploadList.d.ts +2 -0
- package/dist/Upload/UploadListItem.d.ts +12 -0
- package/dist/Upload/UploadListItemCard.d.ts +2 -0
- package/dist/Upload/UploadListItemImage.d.ts +2 -0
- package/dist/Upload/UploadTrigger.d.ts +25 -0
- package/dist/Upload/index.d.ts +4 -0
- package/dist/Upload/index.js +14 -0
- package/dist/Upload/index.umd.cjs +1 -0
- package/dist/Upload/types.d.ts +111 -0
- package/dist/Upload/utils/acceptFiles.d.ts +2 -0
- package/dist/Upload/utils/extension.d.ts +57 -0
- package/dist/Upload/utils/getImageThumb.d.ts +1 -0
- package/dist/Upload/utils/transformFile.d.ts +10 -0
- package/dist/Upload/utils/traverseFileTree.d.ts +13 -0
- package/dist/Upload.vue_vue_type_style_index_0_lang-BaQG46SX.js +1402 -0
- package/dist/Upload.vue_vue_type_style_index_0_lang-DbrnTJj4.js +1 -0
- package/dist/getEmojiList-0j4GWO0q.js +1 -0
- package/dist/{getEmojiList-DmEv8bcf.js → getEmojiList-DXBKd9CY.js} +77 -75
- package/dist/{index-jwkhq8oW.js → index-C7THkhcc.js} +7 -7
- package/dist/index.js +179 -169
- package/dist/index.umd.cjs +1 -1
- package/dist/sortBy-D19G_yjw.js +98 -0
- package/dist/sortBy-jNwQkh2Z.js +1 -0
- package/dist/style/index.css +1 -1
- package/dist/uniq-DladXX7X.js +1 -0
- package/dist/{uniq-Cxafs-eV.js → uniq-qxEaR7zg.js} +16 -17
- package/dist/useInputDataStates-Dbevvx51.js +56 -0
- package/dist/useInputDataStates-afRCO2my.js +1 -0
- package/dist/utils/index.js +6 -6
- package/dist/utils/index.umd.cjs +1 -1
- package/dist/utils/useInputDataStates.d.ts +1 -1
- package/package.json +14 -7
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-B7vGsGcO.js +0 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-CLZz5CmG.js +0 -1
- package/dist/Badge.vue_vue_type_script_setup_true_lang-BIli_mJS.js +0 -1
- package/dist/BaseBadge.model-Bz8P4acF.js +0 -1
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-B3h_XH3M.js +0 -1
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-BoT1B-0F.js +0 -87
- package/dist/Button.vue_vue_type_script_setup_true_lang-8omci6bm.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-Bz-fwglK.js +0 -1
- package/dist/Chip.vue_vue_type_style_index_0_lang-CtgInoR3.js +0 -1
- package/dist/ChipGroup.vue_vue_type_style_index_0_lang-BVwWqy-3.js +0 -1
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-BK2Ak9jv.js +0 -1
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-qx6S3kVF.js +0 -1
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-LcImZnD-.js +0 -1
- package/dist/Combobox.vue_vue_type_style_index_0_lang-CN8YBSRI.js +0 -1
- package/dist/DataTable.vue_vue_type_style_index_0_lang-BmUHso6v.js +0 -975
- package/dist/DataTable.vue_vue_type_style_index_0_lang-DlCKsldZ.js +0 -1
- package/dist/Empty.vue_vue_type_style_index_0_lang-DidQV2p4.js +0 -1
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-CF1FWNxr.js +0 -1
- package/dist/FormItem.vue_vue_type_style_index_0_lang-Bo3o8_6v.js +0 -9
- package/dist/FormItem.vue_vue_type_style_index_0_lang-BpgRONei.js +0 -2785
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-BZ5qLbnJ.js +0 -1
- package/dist/GraphicalObjectGroup.vue_vue_type_style_index_0_lang-CDFDVi-0.js +0 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-CbLL-Ngi.js +0 -49
- package/dist/Icon.vue_vue_type_style_index_0_lang-D3cRtJNJ.js +0 -1
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-B7dwj__6.js +0 -1
- package/dist/Image.vue_vue_type_style_index_0_lang-DCoVuK7u.js +0 -1
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-I_4wqG59.js +0 -1
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-CgN-sjj_.js +0 -1
- package/dist/Input.vue_vue_type_style_index_0_lang-CWW5TIRh.js +0 -1
- package/dist/Link.vue_vue_type_style_index_0_lang-C1i1VsGw.js +0 -1
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-CYOdJYFY.js +0 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-txLoIoSw.js +0 -1
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-D6pRyJ0t.js +0 -1
- package/dist/Segmented.vue_vue_type_style_index_0_lang-m8iNyqtw.js +0 -1
- package/dist/Select.vue_vue_type_style_index_0_lang-C5QD2kVd.js +0 -1
- package/dist/Spinner.vue_vue_type_style_index_0_lang-DGxzzl6D.js +0 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-aODjQm2H.js +0 -1
- package/dist/THead.vue_vue_type_style_index_0_lang-oUsIia-h.js +0 -1
- package/dist/Textarea.vue_vue_type_style_index_0_lang-DtO8cFFA.js +0 -1
- package/dist/_getTag-CIY3u1-e.js +0 -1
- package/dist/_getTag-MDQGqxLN.js +0 -127
- package/dist/element-BfQuKSll.js +0 -47
- package/dist/element-BjE0SVc4.js +0 -1
- package/dist/getEmojiList-5BGH5AZ_.js +0 -1
- package/dist/isEmpty-bCllo8T9.js +0 -1
- package/dist/isEmpty-wdqPTIXx.js +0 -21
- package/dist/omit-BuBwx_M2.js +0 -630
- package/dist/omit-CYbreqlf.js +0 -1
- package/dist/uniq-DGkyiyS4.js +0 -1
- package/dist/useInputDataStates-0nK-AuOK.js +0 -57
- package/dist/useInputDataStates-D1X-Whwt.js +0 -1
|
@@ -1,114 +1,110 @@
|
|
|
1
|
-
import { computed as m, unref as D, defineComponent as
|
|
2
|
-
import { createContext as Fe, ComboboxInput as ot, ComboboxAnchor as nt, injectComboboxRootContext as at, useFilter as
|
|
3
|
-
import {
|
|
4
|
-
import { a as
|
|
5
|
-
import { getBemBlock as
|
|
6
|
-
import {
|
|
7
|
-
import { cva as
|
|
8
|
-
import {
|
|
9
|
-
import { _ as
|
|
10
|
-
import { _ as yt } from "./Skeleton.vue_vue_type_style_index_0_lang-Xi8CteLp.js";
|
|
1
|
+
import { computed as m, unref as D, defineComponent as re, createBlock as xe, openBlock as ue, mergeProps as Ke, withCtx as he, createElementBlock as Re, createVNode as Ne, h as r, normalizeClass as Ye, renderSlot as Ae, ref as Ve, watch as $e, useSlots as Je, useAttrs as Qe, createSlots as Xe, renderList as Ze, normalizeProps as et, guardReactiveProps as tt } from "vue";
|
|
2
|
+
import { createContext as Fe, ComboboxInput as ot, ComboboxAnchor as nt, injectComboboxRootContext as at, useFilter as lt, ComboboxPortal as rt, ComboboxContent as st, useEmitAsProps as it, ComboboxRoot as pt } from "reka-ui";
|
|
3
|
+
import { B as ut, q as ct, C as dt, s as le, u as ae, k as Oe, j as U, g as gt, h as mt, f as ft, o as Le, x as vt, r as ht, l as Me, t as bt } from "./Icon.vue_vue_type_style_index_0_lang-CoGeYkwL.js";
|
|
4
|
+
import { a as Be, g as yt } from "./options-D4et5euX.js";
|
|
5
|
+
import { getBemBlock as Ct, getBemElement as B, generateVariantClassList as H } from "@pantograph/utils";
|
|
6
|
+
import { i as ce, f as A, a as Se, u as Vt, c as De } from "./index-C7THkhcc.js";
|
|
7
|
+
import { cva as Pe } from "class-variance-authority";
|
|
8
|
+
import { _ as _t } from "./Empty.vue_vue_type_style_index_0_lang-Bh1RXTPu.js";
|
|
9
|
+
import { _ as xt } from "./Skeleton.vue_vue_type_style_index_0_lang-Xi8CteLp.js";
|
|
11
10
|
import { _ as _e } from "./Divider.vue_vue_type_style_index_0_lang-B6fQsp1Y.js";
|
|
12
|
-
import {
|
|
13
|
-
import { u as St, U as Ot } from "./useInputDataStates-0nK-AuOK.js";
|
|
11
|
+
import { u as St, U as Ot } from "./useInputDataStates-Dbevvx51.js";
|
|
14
12
|
import { u as Bt } from "./useLazyLoading-Zo-PEp2E.js";
|
|
15
|
-
import { g as Pt, b as It } from "./Popover.vue_vue_type_style_index_0_lang-
|
|
16
|
-
import { _ as kt } from "./ScrollContainer.vue_vue_type_style_index_0_lang-
|
|
17
|
-
import { _ as Tt } from "./Tree.vue_vue_type_style_index_0_lang-
|
|
18
|
-
import { u as we } from "./uniq-
|
|
19
|
-
import {
|
|
20
|
-
import { _ as
|
|
21
|
-
import {
|
|
22
|
-
import { _ as
|
|
23
|
-
import {
|
|
24
|
-
import { _ as
|
|
25
|
-
import { _ as Ge } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-Cm_eOjGc.js";
|
|
26
|
-
import { _ as wt } from "./Input.vue_vue_type_style_index_0_lang-oEQu3uIk.js";
|
|
13
|
+
import { g as Pt, b as It } from "./Popover.vue_vue_type_style_index_0_lang-V2fpykO-.js";
|
|
14
|
+
import { _ as kt } from "./ScrollContainer.vue_vue_type_style_index_0_lang-BAxwM8rQ.js";
|
|
15
|
+
import { _ as Tt } from "./Tree.vue_vue_type_style_index_0_lang-_3b0V0EZ.js";
|
|
16
|
+
import { u as we } from "./uniq-qxEaR7zg.js";
|
|
17
|
+
import { _ as zt } from "./Chip.vue_vue_type_style_index_0_lang-BK96m8QS.js";
|
|
18
|
+
import { _ as Lt } from "./ChipGroup.vue_vue_type_style_index_0_lang-Deu3foBm.js";
|
|
19
|
+
import { d as Mt, _ as We } from "./Avatar.vue_vue_type_style_index_0_lang-CG3qZwml.js";
|
|
20
|
+
import { _ as Dt } from "./GraphicalObjectGroup.vue_vue_type_style_index_0_lang-C7e0n3EP.js";
|
|
21
|
+
import { _ as Ge } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-Co71MPdO.js";
|
|
22
|
+
import { _ as wt } from "./Input.vue_vue_type_style_index_0_lang-DmQw8XIX.js";
|
|
27
23
|
import { whenever as Et, useVModel as Kt } from "@vueuse/core";
|
|
28
24
|
import { last as Rt } from "lodash-es";
|
|
29
|
-
import { a as Nt } from "./MenuItem.vue_vue_type_style_index_0_lang-
|
|
25
|
+
import { a as Nt } from "./MenuItem.vue_vue_type_style_index_0_lang-CzqHUjTB.js";
|
|
30
26
|
import "@iconify/vue";
|
|
31
|
-
import { _ as At } from "./Checkbox.vue_vue_type_style_index_0_lang-
|
|
27
|
+
import { _ as At } from "./Checkbox.vue_vue_type_style_index_0_lang-BQz71n-J.js";
|
|
32
28
|
import "@pantograph/tokens";
|
|
33
|
-
const [Ie, $t] = Fe("Combobox"), [Ft, Wt] = Fe("_Combobox"), E =
|
|
29
|
+
const [Ie, $t] = Fe("Combobox"), [Ft, Wt] = Fe("_Combobox"), E = Ct("combobox");
|
|
34
30
|
var Gt = 1 / 0;
|
|
35
|
-
function Ut(
|
|
36
|
-
var o =
|
|
37
|
-
return o ?
|
|
31
|
+
function Ut(s) {
|
|
32
|
+
var o = s == null ? 0 : s.length;
|
|
33
|
+
return o ? ut(s, Gt) : [];
|
|
38
34
|
}
|
|
39
|
-
const
|
|
35
|
+
const ve = (s) => ct(s) || ce(s);
|
|
40
36
|
function jt({
|
|
41
|
-
getValue:
|
|
37
|
+
getValue: s,
|
|
42
38
|
arr: o,
|
|
43
39
|
getChildren: t
|
|
44
40
|
}) {
|
|
45
|
-
const e = [], c = (
|
|
46
|
-
|
|
47
|
-
const x =
|
|
48
|
-
if (
|
|
49
|
-
e.push({ ...T, _parentKeys:
|
|
41
|
+
const e = [], c = (p, P) => {
|
|
42
|
+
p.forEach((T) => {
|
|
43
|
+
const x = s(T);
|
|
44
|
+
if (ve(x)) {
|
|
45
|
+
e.push({ ...T, _parentKeys: P, _key: x });
|
|
50
46
|
const y = t(T);
|
|
51
|
-
y != null && y.length && c(y, [...
|
|
47
|
+
y != null && y.length && c(y, [...P ?? [], x]);
|
|
52
48
|
}
|
|
53
49
|
});
|
|
54
50
|
};
|
|
55
51
|
return c(o), e;
|
|
56
52
|
}
|
|
57
53
|
const Ht = ({
|
|
58
|
-
getData:
|
|
54
|
+
getData: s,
|
|
59
55
|
getModel: o,
|
|
60
56
|
getValue: t,
|
|
61
57
|
getChildren: e
|
|
62
58
|
}) => {
|
|
63
59
|
const c = m(
|
|
64
|
-
() => jt({ arr: D(
|
|
65
|
-
),
|
|
66
|
-
const d = t(
|
|
67
|
-
return c.value.filter((
|
|
60
|
+
() => jt({ arr: D(s()), getChildren: e, getValue: t })
|
|
61
|
+
), p = (l, f = !1) => {
|
|
62
|
+
const d = t(l);
|
|
63
|
+
return c.value.filter((i) => {
|
|
68
64
|
var S;
|
|
69
65
|
if (f) {
|
|
70
|
-
const V =
|
|
66
|
+
const V = dt(i._parentKeys ?? []);
|
|
71
67
|
return V && V === d;
|
|
72
68
|
}
|
|
73
|
-
return (S =
|
|
69
|
+
return (S = i._parentKeys) == null ? void 0 : S.includes(d);
|
|
74
70
|
});
|
|
75
|
-
},
|
|
76
|
-
if (
|
|
77
|
-
return
|
|
71
|
+
}, P = (l) => {
|
|
72
|
+
if (l && A(l))
|
|
73
|
+
return le(l);
|
|
78
74
|
const f = D(o());
|
|
79
|
-
return f && A(f) ?
|
|
80
|
-
}, T = (
|
|
81
|
-
const d =
|
|
82
|
-
if (
|
|
83
|
-
return
|
|
75
|
+
return f && A(f) ? le(f) : [];
|
|
76
|
+
}, T = (l, f) => {
|
|
77
|
+
const d = P(f), i = p(l);
|
|
78
|
+
if (i != null && i.length)
|
|
79
|
+
return i.some((S) => {
|
|
84
80
|
var a;
|
|
85
81
|
const V = S._key;
|
|
86
82
|
return V && ((a = d == null ? void 0 : d.includes) == null ? void 0 : a.call(d, V));
|
|
87
83
|
});
|
|
88
|
-
}, x = (
|
|
89
|
-
const d =
|
|
90
|
-
if (
|
|
91
|
-
return
|
|
84
|
+
}, x = (l, f) => {
|
|
85
|
+
const d = P(f), i = p(l);
|
|
86
|
+
if (i != null && i.length)
|
|
87
|
+
return i.every((S) => {
|
|
92
88
|
var a;
|
|
93
89
|
const V = S._key;
|
|
94
90
|
return V && ((a = d == null ? void 0 : d.includes) == null ? void 0 : a.call(d, V));
|
|
95
91
|
});
|
|
96
|
-
}, y = (
|
|
97
|
-
const d =
|
|
98
|
-
return
|
|
99
|
-
}, K = (
|
|
92
|
+
}, y = (l, f) => {
|
|
93
|
+
const d = P(f), i = p(l), S = t(l);
|
|
94
|
+
return i != null && i.length ? x(l) ? !0 : T(l) ? "intermediate" : !1 : d.includes(S);
|
|
95
|
+
}, K = (l) => ve(l) ? c.value.find((f) => f._key === l) : void 0;
|
|
100
96
|
return {
|
|
101
97
|
flattenData: c,
|
|
102
|
-
getNodeChildren:
|
|
98
|
+
getNodeChildren: p,
|
|
103
99
|
isSomeChildrenSelected: T,
|
|
104
100
|
isAllChildrenSelected: x,
|
|
105
101
|
isSelected: y,
|
|
106
|
-
selectValues: (
|
|
107
|
-
if (
|
|
108
|
-
let d =
|
|
109
|
-
const
|
|
110
|
-
f ? d.push(...
|
|
111
|
-
const S = d.map(K).filter((v) => v && v._parentKeys), a = we(Ut(S.map((v) => v._parentKeys))).filter(
|
|
102
|
+
selectValues: (l, f) => {
|
|
103
|
+
if (l.length) {
|
|
104
|
+
let d = P();
|
|
105
|
+
const i = l.filter(ve);
|
|
106
|
+
f ? d.push(...i) : d = d.filter((v) => !i.includes(v));
|
|
107
|
+
const S = d.map(K).filter((v) => v && v._parentKeys), a = we(Ut(S.map((v) => v._parentKeys))).filter(ve).map(K).filter(Boolean), _ = [], z = [];
|
|
112
108
|
return a.forEach((v) => {
|
|
113
109
|
const j = t(v);
|
|
114
110
|
x(v, d) ? _.push(j) : z.push(j);
|
|
@@ -116,9 +112,9 @@ const Ht = ({
|
|
|
116
112
|
}
|
|
117
113
|
}
|
|
118
114
|
};
|
|
119
|
-
}, Ue = ["sm", "md", "lg"], qt = ["error", "warning", "success"], Yt = { key: 1 }, je = /* @__PURE__ */
|
|
115
|
+
}, Ue = ["sm", "md", "lg"], qt = ["error", "warning", "success"], Yt = { key: 1 }, je = /* @__PURE__ */ re({
|
|
120
116
|
__name: "ComboboxInput",
|
|
121
|
-
setup(
|
|
117
|
+
setup(s) {
|
|
122
118
|
const o = Ie();
|
|
123
119
|
Et(
|
|
124
120
|
() => o.open.value && o.headerInputElement.value,
|
|
@@ -140,9 +136,9 @@ const Ht = ({
|
|
|
140
136
|
o.focusOnInput(), clearTimeout(x);
|
|
141
137
|
}, 2);
|
|
142
138
|
}
|
|
143
|
-
},
|
|
139
|
+
}, p = B(E, "input"), P = Pe(p, {
|
|
144
140
|
variants: {
|
|
145
|
-
valuePlaceholder: H("value-placeholder",
|
|
141
|
+
valuePlaceholder: H("value-placeholder", p)
|
|
146
142
|
}
|
|
147
143
|
});
|
|
148
144
|
return (T, x) => (ue(), xe(D(ot), Ke(D(o).comboboxInputBinding.value, {
|
|
@@ -152,19 +148,19 @@ const Ht = ({
|
|
|
152
148
|
modelValue: D(o).searchModel.value,
|
|
153
149
|
"onUpdate:modelValue": x[0] || (x[0] = (y) => D(o).searchModel.value = y),
|
|
154
150
|
onKeydown: c,
|
|
155
|
-
class: D(
|
|
151
|
+
class: D(P)({
|
|
156
152
|
valuePlaceholder: t.value
|
|
157
153
|
}),
|
|
158
154
|
displayValue: () => ""
|
|
159
155
|
}), {
|
|
160
|
-
default:
|
|
156
|
+
default: he(() => [
|
|
161
157
|
D(o).props.headerSearch ? (ue(), xe(wt, {
|
|
162
158
|
key: 0,
|
|
163
159
|
ref: D(o).headerInputElement,
|
|
164
160
|
placeholder: D(o).props.placeholder
|
|
165
161
|
}, {
|
|
166
|
-
leading:
|
|
167
|
-
Ne(
|
|
162
|
+
leading: he(({ iconSize: y }) => [
|
|
163
|
+
Ne(Oe, {
|
|
168
164
|
size: y,
|
|
169
165
|
icon: "tabler:search",
|
|
170
166
|
flipOnDir: "rtl"
|
|
@@ -176,10 +172,10 @@ const Ht = ({
|
|
|
176
172
|
_: 1
|
|
177
173
|
}, 16, ["disabled", "placeholder", "modelValue", "class"]));
|
|
178
174
|
}
|
|
179
|
-
}), Jt = /* @__PURE__ */
|
|
180
|
-
name:
|
|
175
|
+
}), Jt = /* @__PURE__ */ re({
|
|
176
|
+
name: Be("ComboboxTrigger"),
|
|
181
177
|
props: {},
|
|
182
|
-
setup(
|
|
178
|
+
setup(s, {
|
|
183
179
|
slots: o,
|
|
184
180
|
attrs: t
|
|
185
181
|
}) {
|
|
@@ -190,16 +186,16 @@ const Ht = ({
|
|
|
190
186
|
const z = e.modelValue.value.filter((v) => v !== a);
|
|
191
187
|
e.setModelValue(z);
|
|
192
188
|
}
|
|
193
|
-
},
|
|
189
|
+
}, p = B(E, "trigger"), P = Pe(p, {
|
|
194
190
|
variants: {
|
|
195
|
-
size: H(Ue,
|
|
196
|
-
headerSearch: H("header-search",
|
|
197
|
-
status: H(qt,
|
|
198
|
-
bordered: H("bordered",
|
|
199
|
-
multiple: H("multiple",
|
|
200
|
-
contentFit: H("content-fit",
|
|
201
|
-
wrapped: H("wrapped",
|
|
202
|
-
filled: H("filled",
|
|
191
|
+
size: H(Ue, p),
|
|
192
|
+
headerSearch: H("header-search", p),
|
|
193
|
+
status: H(qt, p),
|
|
194
|
+
bordered: H("bordered", p),
|
|
195
|
+
multiple: H("multiple", p),
|
|
196
|
+
contentFit: H("content-fit", p),
|
|
197
|
+
wrapped: H("wrapped", p),
|
|
198
|
+
filled: H("filled", p)
|
|
203
199
|
}
|
|
204
200
|
}), T = m(() => {
|
|
205
201
|
switch (e.getSize.value) {
|
|
@@ -210,7 +206,7 @@ const Ht = ({
|
|
|
210
206
|
return "xsm";
|
|
211
207
|
}
|
|
212
208
|
}), x = m(() => {
|
|
213
|
-
if (!e.props.multiple &&
|
|
209
|
+
if (!e.props.multiple && ce(e.modelValue.value) && !ae(e.modelValue.value))
|
|
214
210
|
return e.getOptionByValue(e.modelValue.value);
|
|
215
211
|
}), y = (a = x.value) => {
|
|
216
212
|
if (e.props.selectedItemIconAsTrailingIcon && Se(a) && "icon" in a)
|
|
@@ -218,12 +214,12 @@ const Ht = ({
|
|
|
218
214
|
}, K = m(() => y()), R = m(() => {
|
|
219
215
|
if (!e.props.noTrailing)
|
|
220
216
|
return e.props.trailingIcon;
|
|
221
|
-
}),
|
|
217
|
+
}), l = m(() => {
|
|
222
218
|
var z, v;
|
|
223
|
-
const a =
|
|
219
|
+
const a = le(e.modelValue.value), _ = A(e.modelValue.value);
|
|
224
220
|
return {
|
|
225
221
|
modelValue: a,
|
|
226
|
-
open:
|
|
222
|
+
open: le(e.open.value),
|
|
227
223
|
option: _ ? void 0 : e.getOptionByValue(e.modelValue.value),
|
|
228
224
|
options: _ ? (v = (z = e.modelValue.value).map) == null ? void 0 : v.call(z, e.getOptionByValue).filter(Boolean) : void 0
|
|
229
225
|
};
|
|
@@ -231,7 +227,7 @@ const Ht = ({
|
|
|
231
227
|
e.onOpenChange(!e.open.value);
|
|
232
228
|
}, d = (a) => {
|
|
233
229
|
e.props.headerSearch;
|
|
234
|
-
},
|
|
230
|
+
}, i = m(() => ({
|
|
235
231
|
disabled: e.getDisabled.value,
|
|
236
232
|
tabindex: e.getDisabled.value || !e.props.headerSearch ? -1 : 0,
|
|
237
233
|
reference: e.props.reference,
|
|
@@ -242,7 +238,7 @@ const Ht = ({
|
|
|
242
238
|
"aria-expanded": e.open.value,
|
|
243
239
|
"aria-controls": e.contentId,
|
|
244
240
|
"data-state": e.open.value ? "open" : "closed",
|
|
245
|
-
class: [
|
|
241
|
+
class: [P({
|
|
246
242
|
size: e.getSize.value,
|
|
247
243
|
status: e.getStatus.value === "success" && ae(e.modelValue.value) ? void 0 : e.getStatus.value,
|
|
248
244
|
bordered: e.props.bordered,
|
|
@@ -253,29 +249,29 @@ const Ht = ({
|
|
|
253
249
|
headerSearch: e.props.headerSearch
|
|
254
250
|
}), e.props.triggerCls],
|
|
255
251
|
...t
|
|
256
|
-
})), S = (a, _ = T.value) =>
|
|
252
|
+
})), S = (a, _ = T.value) => r(Oe, {
|
|
257
253
|
icon: a,
|
|
258
254
|
size: _
|
|
259
255
|
}), V = () => {
|
|
260
256
|
var z;
|
|
261
257
|
let a;
|
|
262
|
-
const _ = (z = o.triggerTrailing) == null ? void 0 : z.call(o,
|
|
258
|
+
const _ = (z = o.triggerTrailing) == null ? void 0 : z.call(o, l.value);
|
|
263
259
|
if (U(_) ? R.value && (a = S(R.value)) : a = _, a)
|
|
264
|
-
return
|
|
265
|
-
class: [
|
|
260
|
+
return r("div", {
|
|
261
|
+
class: [B(p, "trailing"), e.props.triggerTrailingCls]
|
|
266
262
|
}, a);
|
|
267
263
|
};
|
|
268
264
|
return () => {
|
|
269
265
|
var ee;
|
|
270
|
-
const a = (ee = o.trigger) == null ? void 0 : ee.call(o,
|
|
266
|
+
const a = (ee = o.trigger) == null ? void 0 : ee.call(o, l.value), _ = !U(a), v = (() => {
|
|
271
267
|
if (!_) return !1;
|
|
272
|
-
const Q =
|
|
273
|
-
return X ?
|
|
268
|
+
const Q = gt(a) ?? null, X = Q.length === 1 ? Q[0] : Q;
|
|
269
|
+
return X ? mt(X) && !ft(X) : !0;
|
|
274
270
|
})(), {
|
|
275
271
|
class: j,
|
|
276
272
|
...J
|
|
277
|
-
} =
|
|
278
|
-
return
|
|
273
|
+
} = i.value;
|
|
274
|
+
return r(nt, {
|
|
279
275
|
...J,
|
|
280
276
|
class: _ ? e.props.triggerCls : j,
|
|
281
277
|
...e.comboboxTriggerBinding.value,
|
|
@@ -287,37 +283,37 @@ const Ht = ({
|
|
|
287
283
|
}, () => {
|
|
288
284
|
if (_)
|
|
289
285
|
return a;
|
|
290
|
-
const Q = (
|
|
286
|
+
const Q = (I) => {
|
|
291
287
|
var F, N;
|
|
292
|
-
const $ = e.getOptionByValue(
|
|
293
|
-
value:
|
|
288
|
+
const $ = e.getOptionByValue(I) ?? {
|
|
289
|
+
value: I
|
|
294
290
|
};
|
|
295
|
-
return
|
|
291
|
+
return r(We, {
|
|
296
292
|
...$ ? ((N = (F = e.props).getTagProps) == null ? void 0 : N.call(F, $)) ?? {} : {},
|
|
297
293
|
size: e.getTagSize.value
|
|
298
294
|
});
|
|
299
|
-
}, X = (
|
|
295
|
+
}, X = (I) => {
|
|
300
296
|
var F, N;
|
|
301
|
-
const $ = e.getOptionByValue(
|
|
302
|
-
value:
|
|
297
|
+
const $ = e.getOptionByValue(I) ?? {
|
|
298
|
+
value: I
|
|
303
299
|
};
|
|
304
|
-
return
|
|
300
|
+
return r(Ge, {
|
|
305
301
|
...$ ? ((N = (F = e.props).getTagProps) == null ? void 0 : N.call(F, $)) ?? {} : {},
|
|
306
302
|
size: e.getTagSize.value
|
|
307
303
|
});
|
|
308
304
|
}, Z = () => {
|
|
309
305
|
if (!e.props.multiple && !e.props.multiple && !A(e.modelValue.value) && e.modelValue.value && (e.props.tagRenderMode && ["avatar", "go"].includes(e.props.tagRenderMode) || K.value || e.props.leadingIcon)) {
|
|
310
|
-
let
|
|
311
|
-
if (e.props.tagRenderMode === "avatar" ?
|
|
312
|
-
return
|
|
313
|
-
class: [
|
|
314
|
-
},
|
|
306
|
+
let I;
|
|
307
|
+
if (e.props.tagRenderMode === "avatar" ? I = Q(e.modelValue.value) : e.props.tagRenderMode === "go" ? I = X(e.modelValue.value) : K.value ? I = S(K.value) : e.props.leadingIcon && (I = S(e.props.leadingIcon)), !U(I))
|
|
308
|
+
return r("div", {
|
|
309
|
+
class: [B(p, "leading"), e.props.triggerLeadingCls]
|
|
310
|
+
}, I);
|
|
315
311
|
}
|
|
316
|
-
},
|
|
317
|
-
const
|
|
312
|
+
}, de = () => {
|
|
313
|
+
const I = [], $ = [B(p, "tags"), e.props.triggerContentCls, e.props.triggerContentValueCls], N = (() => {
|
|
318
314
|
if (e.props.multiple && A(e.modelValue.value)) {
|
|
319
315
|
if (e.props.tagRenderMode === "avatar")
|
|
320
|
-
return
|
|
316
|
+
return r(Mt, {
|
|
321
317
|
maxCount: e.props.maxCount,
|
|
322
318
|
size: e.getTagSize.value,
|
|
323
319
|
closeable: !e.getDisabled.value,
|
|
@@ -326,7 +322,7 @@ const Ht = ({
|
|
|
326
322
|
class: $
|
|
327
323
|
}, () => e.modelValue.value.map(Q));
|
|
328
324
|
if (e.props.tagRenderMode === "go")
|
|
329
|
-
return
|
|
325
|
+
return r(Dt, {
|
|
330
326
|
maxCount: e.props.maxCount,
|
|
331
327
|
size: e.getTagSize.value,
|
|
332
328
|
closeable: !e.getDisabled.value,
|
|
@@ -335,7 +331,7 @@ const Ht = ({
|
|
|
335
331
|
class: $
|
|
336
332
|
}, () => e.modelValue.value.map(X));
|
|
337
333
|
if (e.props.tagRenderMode === "chip")
|
|
338
|
-
return
|
|
334
|
+
return r(Lt, {
|
|
339
335
|
maxCount: e.props.maxCount,
|
|
340
336
|
size: e.getTagSize.value,
|
|
341
337
|
color: "primary",
|
|
@@ -345,18 +341,18 @@ const Ht = ({
|
|
|
345
341
|
class: $,
|
|
346
342
|
onClose: c
|
|
347
343
|
}, () => e.modelValue.value.map((q) => {
|
|
348
|
-
var
|
|
344
|
+
var me, ne;
|
|
349
345
|
const se = () => e.getLabelByValue(q), be = ({
|
|
350
346
|
size: ye
|
|
351
347
|
}) => {
|
|
352
|
-
const
|
|
353
|
-
return
|
|
348
|
+
const fe = y(e.getOptionByValue(q)) ?? e.props.leadingIcon;
|
|
349
|
+
return fe ? S(fe, ye) : null;
|
|
354
350
|
}, ie = e.getOptionByValue(q);
|
|
355
|
-
return
|
|
356
|
-
...ie ? ((ne = (
|
|
351
|
+
return r(zt, {
|
|
352
|
+
...ie ? ((ne = (me = e.props).getTagProps) == null ? void 0 : ne.call(me, ie)) ?? {} : {},
|
|
357
353
|
value: q,
|
|
358
|
-
class: [
|
|
359
|
-
closeIconCls:
|
|
354
|
+
class: [B(p, "tag"), e.props.tagCls],
|
|
355
|
+
closeIconCls: B(p, "tag__close")
|
|
360
356
|
}, {
|
|
361
357
|
text: se,
|
|
362
358
|
leading: be
|
|
@@ -364,27 +360,29 @@ const Ht = ({
|
|
|
364
360
|
}));
|
|
365
361
|
}
|
|
366
362
|
})();
|
|
367
|
-
return N &&
|
|
368
|
-
class:
|
|
369
|
-
},
|
|
363
|
+
return N && I.push(N), e.props.headerSearch ? e.props.showLabelValueOnHeaderSearch && !e.props.multiple && ce(e.modelValue.value) && I.push(r("div", {
|
|
364
|
+
class: B(p, "content__value")
|
|
365
|
+
}, e.getLabelByValue(e.modelValue.value))) : I.push(r(je)), r("div", {
|
|
366
|
+
class: B(p, "content")
|
|
367
|
+
}, I);
|
|
370
368
|
}, oe = [], te = Z();
|
|
371
|
-
U(te) || oe.push(te), oe.push(
|
|
372
|
-
const
|
|
373
|
-
return U(
|
|
369
|
+
U(te) || oe.push(te), oe.push(de());
|
|
370
|
+
const ge = V();
|
|
371
|
+
return U(ge) || oe.push(ge), oe;
|
|
374
372
|
});
|
|
375
373
|
};
|
|
376
374
|
}
|
|
377
|
-
}), Qt = /* @__PURE__ */
|
|
375
|
+
}), Qt = /* @__PURE__ */ re({
|
|
378
376
|
__name: "ComboboxLabel",
|
|
379
|
-
setup(
|
|
377
|
+
setup(s) {
|
|
380
378
|
return (o, t) => (ue(), Re("div", {
|
|
381
|
-
class: Ye(D(
|
|
379
|
+
class: Ye(D(B)(D(E), "label"))
|
|
382
380
|
}, [
|
|
383
381
|
Ae(o.$slots, "default")
|
|
384
382
|
], 2));
|
|
385
383
|
}
|
|
386
|
-
}), Ee = /* @__PURE__ */
|
|
387
|
-
name:
|
|
384
|
+
}), Ee = /* @__PURE__ */ re({
|
|
385
|
+
name: Be("SelectOption"),
|
|
388
386
|
props: {
|
|
389
387
|
option: {
|
|
390
388
|
type: [Object, String],
|
|
@@ -392,7 +390,7 @@ const Ht = ({
|
|
|
392
390
|
}
|
|
393
391
|
},
|
|
394
392
|
slots: Object,
|
|
395
|
-
setup(
|
|
393
|
+
setup(s, {
|
|
396
394
|
slots: o
|
|
397
395
|
}) {
|
|
398
396
|
const t = Ie(), e = m(() => {
|
|
@@ -405,203 +403,203 @@ const Ht = ({
|
|
|
405
403
|
default:
|
|
406
404
|
return "xsm";
|
|
407
405
|
}
|
|
408
|
-
}), c = m(() => t.getOptionValue(
|
|
406
|
+
}), c = m(() => t.getOptionValue(s.option)), p = m(() => t.getOptionNoCheckbox(s.option)), P = m(() => t.getOptionClear(s.option)), T = m(() => t.getOptionSingle(s.option)), x = m(() => t.getOptionLabel(s.option)), y = m(() => t.getOptionIcon(s.option)), K = m(() => t.props.tree ? void 0 : t.getOptionDescription(s.option)), R = m(() => t.getOptionDisabled(s.option)), l = m(() => t.isItemSelected(c.value)), f = B(E, "option"), d = () => {
|
|
409
407
|
if (!(t.props.tree || !c.value || R.value))
|
|
410
408
|
if (t.props.multiple)
|
|
411
|
-
if (
|
|
409
|
+
if (P.value)
|
|
412
410
|
t.setModelValue([]), t.emit("select", void 0, !1);
|
|
413
411
|
else if (T.value)
|
|
414
|
-
t.setModelValue([c.value]), t.emit("select", c.value, !0);
|
|
412
|
+
t.setModelValue([c.value]), t.emit("select", c.value, !0, s.option);
|
|
415
413
|
else {
|
|
416
|
-
let
|
|
417
|
-
const S =
|
|
418
|
-
|
|
414
|
+
let i = A(t.modelValue.value) ? t.modelValue.value : [];
|
|
415
|
+
const S = i.includes(c.value);
|
|
416
|
+
i.length === 1 && t.getSingleByValue(i[0]) && c.value !== i[0] && (i = []), S ? (t.setModelValue(i.filter((V) => V !== c.value)), t.emit("select", c.value, !0, s.option)) : (t.setModelValue([...i, c.value]), t.emit("select", c.value, !1, s.option));
|
|
419
417
|
}
|
|
420
|
-
else
|
|
418
|
+
else P.value ? (t.setModelValue(void 0), t.emit("select", void 0, !1)) : (t.setModelValue(c.value), t.emit("select", c.value, !0, s.option));
|
|
421
419
|
};
|
|
422
|
-
if (!
|
|
420
|
+
if (!s.option) throw new Error("option is required");
|
|
423
421
|
return () => {
|
|
424
|
-
const
|
|
422
|
+
const i = (V) => {
|
|
425
423
|
var z, v, j, J, ee;
|
|
426
424
|
const a = [];
|
|
427
|
-
!t.props.tree && t.props.multiple && t.props.checkbox && !
|
|
428
|
-
modelValue:
|
|
425
|
+
!t.props.tree && t.props.multiple && t.props.checkbox && !p.value && a.push(r(At, {
|
|
426
|
+
modelValue: l.value,
|
|
429
427
|
size: V.checkboxSize,
|
|
430
428
|
disabled: R.value
|
|
431
429
|
}));
|
|
432
430
|
const _ = (z = o.leading) == null ? void 0 : z.call(o, {
|
|
433
|
-
option:
|
|
431
|
+
option: s.option
|
|
434
432
|
});
|
|
435
|
-
return U(_) ? t.props.tagRenderMode === "avatar" ? a.push(
|
|
436
|
-
...((j = (v = t.props).getTagProps) == null ? void 0 : j.call(v,
|
|
433
|
+
return U(_) ? t.props.tagRenderMode === "avatar" ? a.push(r(We, {
|
|
434
|
+
...((j = (v = t.props).getTagProps) == null ? void 0 : j.call(v, s.option)) ?? {},
|
|
437
435
|
size: t.getTagSize.value
|
|
438
|
-
})) : t.props.tagRenderMode === "go" ? a.push(
|
|
439
|
-
...((ee = (J = t.props).getTagProps) == null ? void 0 : ee.call(J,
|
|
436
|
+
})) : t.props.tagRenderMode === "go" ? a.push(r(Ge, {
|
|
437
|
+
...((ee = (J = t.props).getTagProps) == null ? void 0 : ee.call(J, s.option)) ?? {},
|
|
440
438
|
size: t.getTagSize.value
|
|
441
|
-
})) : y.value && a.push(
|
|
439
|
+
})) : y.value && a.push(r(Oe, {
|
|
442
440
|
icon: y.value,
|
|
443
441
|
size: e.value
|
|
444
442
|
})) : a.push(_), U(a) ? null : a;
|
|
445
443
|
};
|
|
446
444
|
return (() => {
|
|
447
445
|
const V = !!K.value;
|
|
448
|
-
return
|
|
446
|
+
return r(Nt, {
|
|
449
447
|
class: f,
|
|
450
448
|
description: K.value,
|
|
451
449
|
title: x.value,
|
|
452
450
|
key: c.value,
|
|
453
|
-
selected:
|
|
451
|
+
selected: l.value,
|
|
454
452
|
unFocusable: !0,
|
|
455
453
|
leadingCenter: !V,
|
|
456
454
|
size: t.getSize.value,
|
|
457
455
|
disabled: R.value,
|
|
458
456
|
onClick: d
|
|
459
457
|
}, {
|
|
460
|
-
leading:
|
|
458
|
+
leading: i,
|
|
461
459
|
trailing: () => {
|
|
462
460
|
var a;
|
|
463
461
|
return (a = o.trailing) == null ? void 0 : a.call(o, {
|
|
464
|
-
option:
|
|
462
|
+
option: s.option
|
|
465
463
|
});
|
|
466
464
|
}
|
|
467
465
|
});
|
|
468
466
|
})();
|
|
469
467
|
};
|
|
470
468
|
}
|
|
471
|
-
}), Xt = /* @__PURE__ */
|
|
472
|
-
name:
|
|
473
|
-
setup(
|
|
469
|
+
}), Xt = /* @__PURE__ */ re({
|
|
470
|
+
name: Be("ComboboxWrapper"),
|
|
471
|
+
setup(s, {
|
|
474
472
|
slots: o
|
|
475
473
|
}) {
|
|
476
474
|
const t = Ft(), e = at(), c = Ve();
|
|
477
475
|
Bt({
|
|
478
476
|
target: c
|
|
479
477
|
});
|
|
480
|
-
const
|
|
481
|
-
triggerRef:
|
|
478
|
+
const p = Ve(), P = Pt({
|
|
479
|
+
triggerRef: p,
|
|
482
480
|
props: t.props
|
|
483
481
|
}), {
|
|
484
482
|
getFlipOnDir: T,
|
|
485
483
|
getDir: x
|
|
486
|
-
} =
|
|
484
|
+
} = Vt(), y = T("reversePlacementOnDir"), K = x(), R = It({
|
|
487
485
|
props: t.props,
|
|
488
486
|
flip: y,
|
|
489
487
|
emitsAsProps: t.emitsAsProps,
|
|
490
488
|
_dir: K,
|
|
491
489
|
controlAutoFocus: !1,
|
|
492
490
|
extraPropNames: ["bodyLock", "position"]
|
|
493
|
-
}),
|
|
491
|
+
}), l = ({
|
|
494
492
|
key: n,
|
|
495
|
-
getterKey:
|
|
493
|
+
getterKey: u,
|
|
496
494
|
defaultValue: h,
|
|
497
|
-
noReturnOption:
|
|
495
|
+
noReturnOption: k
|
|
498
496
|
}) => (b) => {
|
|
499
|
-
const
|
|
497
|
+
const M = De(h) ? h(b) : h;
|
|
500
498
|
if (Se(b)) {
|
|
501
|
-
const W = b[n] ??
|
|
499
|
+
const W = b[n] ?? M, G = u && t.props[u];
|
|
502
500
|
if (G) {
|
|
503
|
-
if (
|
|
501
|
+
if (ce(G))
|
|
504
502
|
return b[G] ?? W;
|
|
505
|
-
if (
|
|
503
|
+
if (De(G)) return G(b) ?? W;
|
|
506
504
|
}
|
|
507
505
|
return W;
|
|
508
506
|
}
|
|
509
|
-
return
|
|
510
|
-
}, f =
|
|
507
|
+
return ce(b) && !k ? b ?? M : M;
|
|
508
|
+
}, f = l({
|
|
511
509
|
getterKey: "getValue",
|
|
512
510
|
key: "value"
|
|
513
|
-
}), d =
|
|
511
|
+
}), d = l({
|
|
514
512
|
getterKey: "getNoCheckbox",
|
|
515
513
|
key: "noCheckbox"
|
|
516
|
-
}),
|
|
514
|
+
}), i = l({
|
|
517
515
|
getterKey: "getSingle",
|
|
518
516
|
key: "single",
|
|
519
517
|
noReturnOption: !0
|
|
520
|
-
}), S =
|
|
518
|
+
}), S = l({
|
|
521
519
|
getterKey: "getClear",
|
|
522
520
|
key: "clear",
|
|
523
521
|
noReturnOption: !0
|
|
524
|
-
}), V =
|
|
522
|
+
}), V = l({
|
|
525
523
|
getterKey: "getLabel",
|
|
526
524
|
key: "label",
|
|
527
525
|
defaultValue: f
|
|
528
|
-
}), a =
|
|
526
|
+
}), a = l({
|
|
529
527
|
getterKey: "getIcon",
|
|
530
528
|
key: "icon",
|
|
531
529
|
noReturnOption: !0
|
|
532
|
-
}), _ =
|
|
530
|
+
}), _ = l({
|
|
533
531
|
getterKey: "getDescription",
|
|
534
532
|
key: "description",
|
|
535
533
|
noReturnOption: !0
|
|
536
|
-
}), z =
|
|
534
|
+
}), z = l({
|
|
537
535
|
getterKey: "getDisabled",
|
|
538
536
|
key: "disabled",
|
|
539
537
|
defaultValue: !1,
|
|
540
538
|
noReturnOption: !0
|
|
541
|
-
}), v =
|
|
539
|
+
}), v = l({
|
|
542
540
|
getterKey: "getGroupLabel",
|
|
543
541
|
key: "label",
|
|
544
542
|
noReturnOption: !0
|
|
545
|
-
}), j =
|
|
543
|
+
}), j = l({
|
|
546
544
|
getterKey: "getGroupOptions",
|
|
547
545
|
key: "options",
|
|
548
546
|
noReturnOption: !0
|
|
549
547
|
}), J = (n) => {
|
|
550
|
-
const
|
|
548
|
+
const u = (h) => {
|
|
551
549
|
if (h != null && h.length && n)
|
|
552
|
-
for (const
|
|
553
|
-
if (f(
|
|
554
|
-
const b = j(
|
|
550
|
+
for (const k of h) {
|
|
551
|
+
if (f(k) === n) return k;
|
|
552
|
+
const b = j(k);
|
|
555
553
|
if (b != null && b.length) {
|
|
556
|
-
const
|
|
557
|
-
if (
|
|
554
|
+
const M = u(b);
|
|
555
|
+
if (M) return M;
|
|
558
556
|
}
|
|
559
557
|
}
|
|
560
558
|
};
|
|
561
|
-
return
|
|
559
|
+
return u(t.props.options);
|
|
562
560
|
}, ee = (n) => {
|
|
563
|
-
const
|
|
564
|
-
return
|
|
561
|
+
const u = J(n);
|
|
562
|
+
return u ? V(u) ?? n : n;
|
|
565
563
|
}, Q = (n) => {
|
|
566
|
-
const
|
|
567
|
-
return
|
|
564
|
+
const u = J(n);
|
|
565
|
+
return u ? i(u) ?? !1 : !1;
|
|
568
566
|
}, {
|
|
569
567
|
contains: X
|
|
570
|
-
} =
|
|
568
|
+
} = lt({
|
|
571
569
|
sensitivity: "base"
|
|
572
570
|
}), Z = m(() => {
|
|
573
|
-
const n = (
|
|
574
|
-
const
|
|
571
|
+
const n = (u) => u == null ? void 0 : u.map((h) => {
|
|
572
|
+
const k = V(h), b = f(h), M = z(h), W = v(h), G = !t.searchModel.value || k && X(k, t.searchModel.value), g = j(h), O = !t.props.tree || b;
|
|
575
573
|
if (g && O) {
|
|
576
574
|
const C = n(g);
|
|
577
575
|
if (C != null && C.length || G)
|
|
578
576
|
return {
|
|
579
577
|
groupLabel: W,
|
|
580
|
-
title:
|
|
578
|
+
title: k,
|
|
581
579
|
key: b,
|
|
582
|
-
disabled:
|
|
580
|
+
disabled: M,
|
|
583
581
|
children: C,
|
|
584
582
|
_option: h
|
|
585
583
|
};
|
|
586
584
|
}
|
|
587
585
|
return G && O ? {
|
|
588
|
-
title:
|
|
586
|
+
title: k,
|
|
589
587
|
key: b,
|
|
590
|
-
disabled:
|
|
588
|
+
disabled: M,
|
|
591
589
|
_option: h
|
|
592
590
|
} : null;
|
|
593
591
|
}).filter(Boolean);
|
|
594
592
|
if (t.props.options)
|
|
595
593
|
return n(t.props.options);
|
|
596
594
|
}), {
|
|
597
|
-
getDisabled:
|
|
595
|
+
getDisabled: de,
|
|
598
596
|
getStatus: oe,
|
|
599
597
|
getSize: te
|
|
600
598
|
} = St({
|
|
601
599
|
getDisabled: () => t.props.disabled,
|
|
602
600
|
getSize: () => t.props.size,
|
|
603
601
|
getStatus: () => t.props.status
|
|
604
|
-
}),
|
|
602
|
+
}), ge = m(() => {
|
|
605
603
|
switch (te.value) {
|
|
606
604
|
case "sm":
|
|
607
605
|
return "xsm";
|
|
@@ -612,13 +610,13 @@ const Ht = ({
|
|
|
612
610
|
return "sm";
|
|
613
611
|
}
|
|
614
612
|
}), {
|
|
615
|
-
inputBindings:
|
|
613
|
+
inputBindings: I,
|
|
616
614
|
rootBindings: $
|
|
617
615
|
} = Ot({
|
|
618
|
-
getDisabled: () =>
|
|
616
|
+
getDisabled: () => de.value
|
|
619
617
|
}), F = Ve(), N = () => {
|
|
620
|
-
var n,
|
|
621
|
-
e.open.value && e.inputElement.value && (t.props.headerSearch && ((n = F.value) != null && n.input) ? document.activeElement !== ((
|
|
618
|
+
var n, u, h, k, b, M, W;
|
|
619
|
+
e.open.value && e.inputElement.value && (t.props.headerSearch && ((n = F.value) != null && n.input) ? document.activeElement !== ((u = F.value) == null ? void 0 : u.input) && ((b = (k = (h = F.value) == null ? void 0 : h.input) == null ? void 0 : k.focus) == null || b.call(k)) : document.activeElement !== e.inputElement.value && ((W = (M = e.inputElement.value) == null ? void 0 : M.focus) == null || W.call(M)));
|
|
622
620
|
}, q = (n) => {
|
|
623
621
|
e.modelValue.value = n, t.emit("update:modelValue", n);
|
|
624
622
|
}, se = (n) => n === void 0 ? !1 : Array.isArray(e.modelValue.value) ? !!(n && e.modelValue.value.includes(n)) : e.modelValue.value === n;
|
|
@@ -626,7 +624,7 @@ const Ht = ({
|
|
|
626
624
|
...t,
|
|
627
625
|
getOptionValue: f,
|
|
628
626
|
getOptionLabel: V,
|
|
629
|
-
getOptionSingle:
|
|
627
|
+
getOptionSingle: i,
|
|
630
628
|
getOptionClear: S,
|
|
631
629
|
getOptionNoCheckbox: d,
|
|
632
630
|
getOptionDescription: _,
|
|
@@ -639,11 +637,11 @@ const Ht = ({
|
|
|
639
637
|
focusOnInput: N,
|
|
640
638
|
setModelValue: q,
|
|
641
639
|
headerInputElement: F,
|
|
642
|
-
getDisabled:
|
|
640
|
+
getDisabled: de,
|
|
643
641
|
getStatus: oe,
|
|
644
642
|
getSize: te,
|
|
645
|
-
getTagSize:
|
|
646
|
-
comboboxInputBinding:
|
|
643
|
+
getTagSize: ge,
|
|
644
|
+
comboboxInputBinding: I,
|
|
647
645
|
comboboxTriggerBinding: $,
|
|
648
646
|
...e,
|
|
649
647
|
modelValue: e.modelValue
|
|
@@ -654,9 +652,9 @@ const Ht = ({
|
|
|
654
652
|
const n = t.props.scrollContainerProps ?? {};
|
|
655
653
|
return {
|
|
656
654
|
...n,
|
|
657
|
-
areaCls: [
|
|
655
|
+
areaCls: [B(E, "scroll_area"), n == null ? void 0 : n.class, n == null ? void 0 : n.areaCls]
|
|
658
656
|
};
|
|
659
|
-
}), ie =
|
|
657
|
+
}), ie = B(E, "popup"), me = Pe(ie, {
|
|
660
658
|
variants: {
|
|
661
659
|
size: H(Ue, ie)
|
|
662
660
|
}
|
|
@@ -665,29 +663,29 @@ const Ht = ({
|
|
|
665
663
|
return `${n}px`;
|
|
666
664
|
if (typeof n == "string")
|
|
667
665
|
return n;
|
|
668
|
-
}, ye = m(() => ne(t.props.popupWidth)),
|
|
666
|
+
}, ye = m(() => ne(t.props.popupWidth)), fe = m(() => ne(t.props.popupHeight)), ke = m(() => ne(t.props.minWidth)), Te = m(() => ({
|
|
669
667
|
type: te.value === "sm" ? "simple" : "advance",
|
|
670
|
-
...
|
|
671
|
-
})), He = m(() =>
|
|
668
|
+
...Le(t.props.emptyProps ?? {}, "class")
|
|
669
|
+
})), He = m(() => Le(t.props.skeletonProps ?? {}, "class")), {
|
|
672
670
|
selectValues: qe
|
|
673
671
|
} = Ht({
|
|
674
672
|
getValue: (n) => n == null ? void 0 : n.key,
|
|
675
673
|
getChildren: (n) => n == null ? void 0 : n.children,
|
|
676
|
-
getModel: () =>
|
|
677
|
-
getData: () =>
|
|
674
|
+
getModel: () => le(e.modelValue.value),
|
|
675
|
+
getData: () => le(Z.value ?? [])
|
|
678
676
|
});
|
|
679
677
|
return () => {
|
|
680
678
|
var W, G;
|
|
681
|
-
const n = (g) =>
|
|
679
|
+
const n = (g) => r(Ee, {
|
|
682
680
|
option: g
|
|
683
681
|
}, {
|
|
684
682
|
trailing: o.optionTrailing,
|
|
685
683
|
leading: o.optionLeading
|
|
686
|
-
}),
|
|
684
|
+
}), u = [];
|
|
687
685
|
let h;
|
|
688
686
|
if (t.props.tree) {
|
|
689
687
|
const O = A(e.modelValue.value) ? e.modelValue.value : e.modelValue.value ? [e.modelValue.value] : [];
|
|
690
|
-
h =
|
|
688
|
+
h = r(Tt, {
|
|
691
689
|
data: Z.value ?? [],
|
|
692
690
|
selectable: !0,
|
|
693
691
|
checkbox: t.props.multiple && t.props.checkbox,
|
|
@@ -698,66 +696,66 @@ const Ht = ({
|
|
|
698
696
|
modelValue: O,
|
|
699
697
|
checkedKeys: O,
|
|
700
698
|
onExpand: N,
|
|
701
|
-
onSelect: (C, w,
|
|
699
|
+
onSelect: (C, w, L) => {
|
|
702
700
|
if (t.props.multiple) {
|
|
703
|
-
const Y = A(
|
|
701
|
+
const Y = A(L) ? L : [L];
|
|
704
702
|
q(qe(Y, w));
|
|
705
703
|
} else
|
|
706
|
-
q(
|
|
704
|
+
q(L);
|
|
707
705
|
},
|
|
708
706
|
class: "w-full"
|
|
709
707
|
}, {
|
|
710
708
|
title: (C) => n(C._option)
|
|
711
|
-
}),
|
|
709
|
+
}), u.push(h);
|
|
712
710
|
} else {
|
|
713
711
|
let g = !1;
|
|
714
712
|
const O = [];
|
|
715
713
|
if ((Z.value ?? []).forEach((C) => {
|
|
716
714
|
var w;
|
|
717
715
|
if ((w = C.children) != null && w.length) {
|
|
718
|
-
const
|
|
716
|
+
const L = [];
|
|
719
717
|
C.children.forEach((Y) => {
|
|
720
718
|
const pe = n(Y._option);
|
|
721
|
-
se(f(Y._option)) && t.props.sortSelectedItems ? O.push(pe) :
|
|
722
|
-
}),
|
|
719
|
+
se(f(Y._option)) && t.props.sortSelectedItems ? O.push(pe) : L.push(pe);
|
|
720
|
+
}), L.length && ((g || u.length) && (u.push(r(_e)), g = !1), C.groupLabel && u.push(r(Qt, {
|
|
723
721
|
class: t.props.labelCls
|
|
724
|
-
}, () => C.groupLabel)),
|
|
722
|
+
}, () => C.groupLabel)), u.push(...L), g = !0);
|
|
725
723
|
} else {
|
|
726
|
-
const
|
|
727
|
-
se(f(C._option)) && t.props.sortSelectedItems ? O.push(
|
|
724
|
+
const L = n(C._option);
|
|
725
|
+
se(f(C._option)) && t.props.sortSelectedItems ? O.push(L) : (g && (u.push(r(_e)), g = !1), u.push(L));
|
|
728
726
|
}
|
|
729
727
|
}), t.props.sortSelectedItems && O.length) {
|
|
730
|
-
const C = !!
|
|
731
|
-
|
|
728
|
+
const C = !!u.length;
|
|
729
|
+
u.splice(0, 0, ...O), C && u.splice(O.length, 0, r(_e));
|
|
732
730
|
}
|
|
733
731
|
}
|
|
734
|
-
const
|
|
732
|
+
const k = vt(h ? [h] : u, Ee).filter((g) => {
|
|
735
733
|
var O;
|
|
736
734
|
return Se(g == null ? void 0 : g.props) && ((O = g == null ? void 0 : g.props) == null ? void 0 : O.option);
|
|
737
|
-
}), b = !!(t.props.tree && ((W = Z.value) != null && W.length) ||
|
|
735
|
+
}), b = !!(t.props.tree && ((W = Z.value) != null && W.length) || k != null && k.length), M = () => {
|
|
738
736
|
var O, C;
|
|
739
737
|
const g = [];
|
|
740
738
|
if (b || t.props.loading) {
|
|
741
739
|
const w = [];
|
|
742
|
-
if (b && w.push(...
|
|
743
|
-
const
|
|
744
|
-
if (!U(
|
|
740
|
+
if (b && w.push(...u), t.props.loading) {
|
|
741
|
+
const L = (O = o.loading) == null ? void 0 : O.call(o, {});
|
|
742
|
+
if (!U(L)) w.push(L);
|
|
745
743
|
else {
|
|
746
744
|
const Y = new Array(b ? 2 : t.props.loadingRowCount).fill(1);
|
|
747
|
-
w.push(...Y.map(() =>
|
|
745
|
+
w.push(...Y.map(() => r(xt, {
|
|
748
746
|
size: te.value,
|
|
749
|
-
class: [
|
|
747
|
+
class: [B(E, "skeleton"), t.props.skeletonCls],
|
|
750
748
|
...He.value
|
|
751
749
|
})));
|
|
752
750
|
}
|
|
753
751
|
}
|
|
754
|
-
g.push(
|
|
755
|
-
class: [
|
|
752
|
+
g.push(r("div", {
|
|
753
|
+
class: [B(E, "options"), t.props.optionsCls]
|
|
756
754
|
}, w));
|
|
757
755
|
} else if (!b) {
|
|
758
756
|
const w = (C = o.empty) == null ? void 0 : C.call(o, Te.value);
|
|
759
|
-
U(w) ? g.push(
|
|
760
|
-
class: [
|
|
757
|
+
U(w) ? g.push(r(_t, {
|
|
758
|
+
class: [B(E, "empty"), t.props.emptyCls],
|
|
761
759
|
...Te.value
|
|
762
760
|
}, {
|
|
763
761
|
title: o.emptyTitle,
|
|
@@ -766,15 +764,15 @@ const Ht = ({
|
|
|
766
764
|
image: o.emptyImage
|
|
767
765
|
})) : g.push(w);
|
|
768
766
|
}
|
|
769
|
-
return t.props.lazyLoading && g.push(
|
|
770
|
-
class:
|
|
771
|
-
},
|
|
772
|
-
class:
|
|
767
|
+
return t.props.lazyLoading && g.push(r("div", {
|
|
768
|
+
class: B(E, "lazy_loading")
|
|
769
|
+
}, r("div", {
|
|
770
|
+
class: B(E, "lazy_loading_trigger"),
|
|
773
771
|
ref: c
|
|
774
772
|
}))), g;
|
|
775
773
|
};
|
|
776
|
-
return [
|
|
777
|
-
ref:
|
|
774
|
+
return [t.props.noTrigger ? null : r(Jt, {
|
|
775
|
+
ref: p,
|
|
778
776
|
...t.attrs,
|
|
779
777
|
style: {
|
|
780
778
|
...((G = t.attrs) == null ? void 0 : G.style) ?? {},
|
|
@@ -783,42 +781,42 @@ const Ht = ({
|
|
|
783
781
|
}, {
|
|
784
782
|
trigger: o.trigger,
|
|
785
783
|
triggerTrailing: o.triggerTrailing
|
|
786
|
-
}),
|
|
784
|
+
}), r(rt, P.value, () => r(st, {
|
|
787
785
|
...R.value,
|
|
788
786
|
vShow: e.open.value,
|
|
789
|
-
class: [
|
|
787
|
+
class: [me(t.props), t.props.popupCls],
|
|
790
788
|
style: {
|
|
791
789
|
zIndex: t.props.zIndex,
|
|
792
790
|
"--ptc-combobox-popup-width": t.props.samePopupWidth ? void 0 : ye.value,
|
|
793
|
-
"--ptc-combobox-popup-height":
|
|
791
|
+
"--ptc-combobox-popup-height": fe.value,
|
|
794
792
|
"--ptc-combobox-trigger-min-w": ke.value
|
|
795
793
|
},
|
|
796
794
|
onClick: N
|
|
797
795
|
}, () => {
|
|
798
|
-
var
|
|
796
|
+
var L, Y, pe, ze;
|
|
799
797
|
const g = [], O = (Y = o.header) == null ? void 0 : Y.call(o, {
|
|
800
|
-
isEmpty: !((
|
|
798
|
+
isEmpty: !((L = Z.value) != null && L.length),
|
|
801
799
|
search: t.searchModel.value
|
|
802
800
|
}), C = !U(O);
|
|
803
801
|
if (t.props.headerSearch || C) {
|
|
804
802
|
const Ce = [];
|
|
805
|
-
C && Ce.push(O), t.props.headerSearch && Ce.push(
|
|
806
|
-
class:
|
|
803
|
+
C && Ce.push(O), t.props.headerSearch && Ce.push(r(je)), g.push(r("div", {
|
|
804
|
+
class: B(E, "header")
|
|
807
805
|
}, Ce));
|
|
808
806
|
}
|
|
809
|
-
g.push(
|
|
807
|
+
g.push(r(kt, be.value, M));
|
|
810
808
|
const w = (ze = o.footer) == null ? void 0 : ze.call(o, {
|
|
811
809
|
isEmpty: !((pe = Z.value) != null && pe.length),
|
|
812
810
|
search: t.searchModel.value
|
|
813
811
|
});
|
|
814
|
-
return U(w) || g.push(
|
|
815
|
-
class:
|
|
812
|
+
return U(w) || g.push(r("div", {
|
|
813
|
+
class: B(E, "footer")
|
|
816
814
|
}, w)), g;
|
|
817
815
|
}))];
|
|
818
816
|
};
|
|
819
817
|
}
|
|
820
|
-
}),
|
|
821
|
-
...
|
|
818
|
+
}), Io = /* @__PURE__ */ re({
|
|
819
|
+
...yt("Combobox"),
|
|
822
820
|
__name: "Combobox",
|
|
823
821
|
props: {
|
|
824
822
|
size: { default: "md" },
|
|
@@ -885,6 +883,7 @@ const Ht = ({
|
|
|
885
883
|
minWidth: {},
|
|
886
884
|
headerSearch: { type: Boolean },
|
|
887
885
|
search: {},
|
|
886
|
+
noTrigger: { type: Boolean },
|
|
888
887
|
open: { type: Boolean, default: void 0 },
|
|
889
888
|
defaultOpen: { type: Boolean, default: void 0 },
|
|
890
889
|
resetSearchTermOnBlur: { type: Boolean, default: !0 },
|
|
@@ -921,9 +920,9 @@ const Ht = ({
|
|
|
921
920
|
defer: { type: Boolean }
|
|
922
921
|
},
|
|
923
922
|
emits: ["update:search", "select", "update:modelValue", "highlight", "update:open", "escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"],
|
|
924
|
-
setup(
|
|
925
|
-
const t =
|
|
926
|
-
() =>
|
|
923
|
+
setup(s, { emit: o }) {
|
|
924
|
+
const t = s, e = o, c = it(e), p = m(
|
|
925
|
+
() => ht(
|
|
927
926
|
{
|
|
928
927
|
...Me(
|
|
929
928
|
t,
|
|
@@ -943,15 +942,15 @@ const Ht = ({
|
|
|
943
942
|
),
|
|
944
943
|
ignoreFilter: !0
|
|
945
944
|
},
|
|
946
|
-
|
|
945
|
+
bt
|
|
947
946
|
)
|
|
948
|
-
),
|
|
947
|
+
), P = Kt(t, "search", e, {
|
|
949
948
|
passive: t.search === void 0
|
|
950
949
|
});
|
|
951
950
|
$e(
|
|
952
951
|
() => t.open,
|
|
953
952
|
(y) => {
|
|
954
|
-
y || (
|
|
953
|
+
y || (P.value = void 0);
|
|
955
954
|
}
|
|
956
955
|
);
|
|
957
956
|
const T = Je(), x = Qe();
|
|
@@ -959,15 +958,15 @@ const Ht = ({
|
|
|
959
958
|
attrs: x,
|
|
960
959
|
props: t,
|
|
961
960
|
emit: e,
|
|
962
|
-
searchModel:
|
|
961
|
+
searchModel: P,
|
|
963
962
|
emitsAsProps: c
|
|
964
|
-
}), (y, K) => (ue(), xe(D(pt), Ke(
|
|
965
|
-
default:
|
|
963
|
+
}), (y, K) => (ue(), xe(D(pt), Ke(p.value, { class: D(E) }), {
|
|
964
|
+
default: he(() => [
|
|
966
965
|
Ne(D(Xt), null, Xe({ _: 2 }, [
|
|
967
966
|
Ze(Object.keys(T), (R) => ({
|
|
968
967
|
name: R,
|
|
969
|
-
fn:
|
|
970
|
-
Ae(y.$slots, R, et(tt(
|
|
968
|
+
fn: he((l) => [
|
|
969
|
+
Ae(y.$slots, R, et(tt(l)))
|
|
971
970
|
])
|
|
972
971
|
}))
|
|
973
972
|
]), 1024)
|
|
@@ -978,7 +977,7 @@ const Ht = ({
|
|
|
978
977
|
});
|
|
979
978
|
export {
|
|
980
979
|
Ue as C,
|
|
981
|
-
|
|
980
|
+
Io as _,
|
|
982
981
|
qt as a,
|
|
983
982
|
Ie as i,
|
|
984
983
|
$t as p
|