@pantograph/vue 0.27.3 → 0.27.5
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-D3TR9Ar1.js +1 -0
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-CMYqH6Se.js → ActionButton.vue_vue_type_script_setup_true_lang-D6GO-k30.js} +1 -1
- package/dist/Alert/index.js +1 -1
- package/dist/Alert/index.umd.cjs +1 -1
- package/dist/{Alert.vue_vue_type_script_setup_true_lang-BBT46WOZ.js → Alert.vue_vue_type_style_index_0_lang-Cimlr_5H.js} +15 -17
- package/dist/Alert.vue_vue_type_style_index_0_lang-Co_PbSBJ.js +1 -0
- package/dist/Avatar/Avatar.d.ts +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/Avatar/index.umd.cjs +1 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-DOGITXBz.js +1 -0
- package/dist/{Avatar.vue_vue_type_script_setup_true_lang-CAk_50Zi.js → Avatar.vue_vue_type_style_index_0_lang-No-wnVXp.js} +32 -34
- 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-BP3OmkDG.js +1 -0
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-DIHxOGxU.js → Badge.vue_vue_type_script_setup_true_lang-CjM2eHxl.js} +5 -5
- package/dist/Base/BaseInput/BaseInput.d.ts +1 -1
- package/dist/{BaseBadge.model-CahZXsyM.js → BaseBadge.model-DCiuNKoh.js} +4 -4
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-Cgdc_pvz.js +1 -0
- package/dist/{BaseBadge.vue_vue_type_script_setup_true_lang-D0PDTdnu.js → BaseBadge.vue_vue_type_style_index_0_lang-DwkMDLPp.js} +21 -23
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-CJ5cQhLc.js +1 -0
- package/dist/{BaseButton.vue_vue_type_script_setup_true_lang-Lb9kTaQo.js → BaseButton.vue_vue_type_style_index_0_lang-D8UQiapO.js} +14 -16
- package/dist/{BaseInput.vue_vue_type_script_setup_true_lang-BIm-kBuJ.js → BaseInput.vue_vue_type_style_index_0_lang-C4NwIPPo.js} +40 -42
- package/dist/BaseInput.vue_vue_type_style_index_0_lang-Tx73X2wE.js +1 -0
- 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-CcvYCTsv.js → Button.vue_vue_type_script_setup_true_lang-Mnltc7z6.js} +1 -1
- package/dist/Button.vue_vue_type_script_setup_true_lang-jL1v7uqc.js +1 -0
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup.vue_vue_type_script_setup_true_lang-Bbua5FNc.js → ButtonGroup.vue_vue_type_script_setup_true_lang-DGuzTQhm.js} +3 -3
- package/dist/Checkbox/index.js +1 -1
- package/dist/Checkbox/index.umd.cjs +1 -1
- package/dist/{Checkbox.vue_vue_type_script_setup_true_lang-DVmFg39-.js → Checkbox.vue_vue_type_style_index_0_lang-DnfmdUgk.js} +58 -60
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-bWMji_p5.js +1 -0
- package/dist/CheckboxGroup/index.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- package/dist/Chip/index.js +1 -1
- package/dist/Chip/index.umd.cjs +1 -1
- package/dist/Chip.vue_vue_type_style_index_0_lang-DHg4Cw0Y.js +1 -0
- package/dist/{Chip.vue_vue_type_script_setup_true_lang-nFZDIpIs.js → Chip.vue_vue_type_style_index_0_lang-Duq9O1Pn.js} +48 -52
- package/dist/ChipGroup/index.js +1 -1
- package/dist/ChipGroup/index.umd.cjs +1 -1
- package/dist/ColorPicker/index.js +1 -1
- package/dist/ColorPicker/index.umd.cjs +1 -1
- package/dist/{ColorPicker.vue_vue_type_script_setup_true_lang-Do5cC0lX.js → ColorPicker.vue_vue_type_style_index_0_lang-BdRXoxLG.js} +188 -190
- package/dist/{ColorPicker.vue_vue_type_script_setup_true_lang-qMOFhEXd.js → ColorPicker.vue_vue_type_style_index_0_lang-CIb0P6YZ.js} +3 -3
- package/dist/ColorSwatch/index.js +1 -1
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/ColorSwatch-BlUCcGaO.js +1 -0
- package/dist/ColorSwatch-ukjwhJJk.js +4 -0
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-4qF1KSmE.js +1 -0
- package/dist/{ColorSwatch.vue_vue_type_script_setup_true_lang-DMDwVSYQ.js → ColorSwatch.vue_vue_type_style_index_0_lang-C08jdCS4.js} +29 -31
- package/dist/ColorSwatchGroup/index.js +1 -1
- package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
- package/dist/{ColorSwatchGroup.vue_vue_type_script_setup_true_lang-BOvvsjnf.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-CDc9ejV1.js} +27 -29
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-DQwc2Fax.js +1 -0
- package/dist/ColorTrigger/index.js +1 -1
- package/dist/ColorTrigger/index.umd.cjs +1 -1
- package/dist/{ColorTrigger.vue_vue_type_script_setup_true_lang-7VkfG8Wp.js → ColorTrigger.vue_vue_type_style_index_0_lang-C0N1EyqL.js} +23 -25
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-C7JX2jzz.js +1 -0
- package/dist/Combobox/Combobox.d.ts +88 -88
- package/dist/Combobox/index.js +1 -1
- package/dist/Combobox/index.umd.cjs +1 -1
- package/dist/Combobox/types.d.ts +2 -2
- package/dist/{Combobox.vue_vue_type_script_setup_true_lang-BBkIM9dG.js → Combobox.vue_vue_type_style_index_0_lang-BhI9R538.js} +58 -60
- package/dist/Combobox.vue_vue_type_style_index_0_lang-DBXy4T6d.js +1 -0
- package/dist/Comment/CommentActions.d.ts +2 -2
- package/dist/Comment/CommentEditor.d.ts +4 -4
- package/dist/Comment/CommentReactions.d.ts +1 -1
- package/dist/Comment/index.js +99 -105
- package/dist/Comment/index.umd.cjs +1 -1
- package/dist/DataTable/DataTable.d.ts +13 -13
- package/dist/DataTable/index.js +1 -1
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/DataTable/types.d.ts +2 -2
- package/dist/DataTable/useCell.d.ts +1 -1
- package/dist/DataTable/useColumnWrap.d.ts +1 -1
- package/dist/DataTable/useSelection.d.ts +1 -1
- package/dist/DataTable/useSort.d.ts +2 -2
- package/dist/{DataTable.vue_vue_type_script_setup_true_lang-FcKxN2S3.js → DataTable.vue_vue_type_style_index_0_lang-BzdZ7aX8.js} +35 -37
- package/dist/DataTable.vue_vue_type_style_index_0_lang-D95CpMGo.js +1 -0
- package/dist/Divider/index.js +1 -1
- package/dist/Divider/index.umd.cjs +1 -1
- package/dist/Divider.vue_vue_type_style_index_0_lang-Clrzj4R0.js +36 -0
- package/dist/Divider.vue_vue_type_style_index_0_lang-jjCOfwfM.js +1 -0
- package/dist/DropZone/DropZone.d.ts +1 -1
- 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-D2U8rqTy.js +1 -0
- package/dist/{DropZone.vue_vue_type_script_setup_true_lang-CeEBMopD.js → DropZone.vue_vue_type_style_index_0_lang-ZfmWjf5_.js} +33 -35
- package/dist/Empty/index.js +1 -1
- package/dist/Empty/index.umd.cjs +1 -1
- package/dist/{Empty.vue_vue_type_script_setup_true_lang-BCQOhz-A.js → Empty.vue_vue_type_style_index_0_lang-GEhjGuWp.js} +25 -27
- package/dist/Empty.vue_vue_type_style_index_0_lang-JL3Igq8r.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-CWTRpfgb.js → FloatButton.vue_vue_type_script_setup_true_lang-DH1hvvgb.js} +1 -1
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-Drvb_yGk.js +1 -0
- package/dist/Form/index.js +1 -1
- package/dist/Form/index.umd.cjs +1 -1
- package/dist/{FormValidation.vue_vue_type_script_setup_true_lang-BVTTJmKI.js → FormValidation.vue_vue_type_style_index_0_lang-ByTzoA28.js} +3 -3
- package/dist/{FormValidation.vue_vue_type_script_setup_true_lang-BJnTmqoo.js → FormValidation.vue_vue_type_style_index_0_lang-DmI2Cicu.js} +309 -313
- package/dist/GOPicker/GOPicker.model.d.ts +2 -2
- package/dist/GOPicker/index.js +1 -1
- package/dist/GOPicker/index.umd.cjs +1 -1
- package/dist/{GOPicker.vue_vue_type_script_setup_true_lang-jpmUl2AJ.js → GOPicker.vue_vue_type_style_index_0_lang-BdQkCY3A.js} +21 -23
- package/dist/GOPicker.vue_vue_type_style_index_0_lang-CtmZNPfp.js +1 -0
- package/dist/GraphicalObject/GraphicalObject.model.d.ts +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-8m8KVfwQ.js +1 -0
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-CKG8pyZ-.js → GraphicalObject.vue_vue_type_script_setup_true_lang-kOA-XIMt.js} +13 -13
- 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-B0gIroF1.js +62 -0
- package/dist/GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DdKo1y9b.js +1 -0
- package/dist/HoverCard/HoverCard.d.ts +3 -3
- package/dist/HoverCard/index.js +2 -2
- package/dist/HoverCard/index.umd.cjs +1 -1
- package/dist/{HoverCard.vue_vue_type_script_setup_true_lang-CgDV1bGl.js → HoverCard.vue_vue_type_style_index_0_lang-Btu3REIl.js} +15 -17
- package/dist/HoverCard.vue_vue_type_style_index_0_lang-hVdE6mvJ.js +1 -0
- package/dist/Icon/index.d.ts +1 -1
- 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-CMFYMG-2.js +1 -0
- package/dist/Icon.vue_vue_type_style_index_0_lang-LLvjBJx0.js +47 -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-Dk1TQJVA.js +1 -0
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-lZz3QWio.js → IconButton.vue_vue_type_script_setup_true_lang-ahPqU4HJ.js} +1 -1
- package/dist/Image/index.js +1 -1
- package/dist/Image/index.umd.cjs +1 -1
- package/dist/Image.vue_vue_type_style_index_0_lang-6NV8jF6n.js +1 -0
- package/dist/Image.vue_vue_type_style_index_0_lang-CLuipQtA.js +126 -0
- package/dist/IndentLevel/index.js +1 -1
- package/dist/IndentLevel/index.umd.cjs +1 -1
- package/dist/{IndentLevel.vue_vue_type_script_setup_true_lang-CSnMNn7l.js → IndentLevel.vue_vue_type_style_index_0_lang-D9CXKwfM.js} +29 -31
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-DupzYtBR.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-DAMwZQWn.js +1 -0
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-YuOtvhCP.js → Indicator.vue_vue_type_script_setup_true_lang-rKOaH8eB.js} +6 -6
- package/dist/Input/index.d.ts +0 -1
- package/dist/Input/index.js +3 -6
- package/dist/Input/index.umd.cjs +1 -1
- package/dist/{Input.vue_vue_type_script_setup_true_lang-B6TZLtSK.js → Input.vue_vue_type_script_setup_true_lang-8xzs2Ugc.js} +1 -1
- package/dist/Input.vue_vue_type_script_setup_true_lang-C6YGbdin.js +1 -0
- package/dist/InputNumber/index.d.ts +0 -1
- package/dist/InputNumber/index.js +3 -6
- package/dist/InputNumber/index.umd.cjs +1 -1
- package/dist/InputNumber.vue_vue_type_script_setup_true_lang-CKg_NSdF.js +1 -0
- package/dist/{InputNumber.vue_vue_type_script_setup_true_lang-Dk-jieRY.js → InputNumber.vue_vue_type_script_setup_true_lang-CNWtwCOO.js} +2 -2
- 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-BCfWLm9R.js +1 -0
- package/dist/{Kbd.vue_vue_type_script_setup_true_lang-BjIP0HlW.js → Kbd.vue_vue_type_style_index_0_lang-D1FVFk72.js} +11 -13
- package/dist/Label/index.js +1 -1
- package/dist/Label/index.umd.cjs +1 -1
- package/dist/{Label.vue_vue_type_script_setup_true_lang-NFunrvyw.js → Label.vue_vue_type_style_index_0_lang-DCjjITld.js} +26 -28
- package/dist/Label.vue_vue_type_style_index_0_lang-DwExesoL.js +1 -0
- 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-B1uxGXxI.js +1 -0
- package/dist/{Link.vue_vue_type_script_setup_true_lang-BISssWeB.js → Link.vue_vue_type_style_index_0_lang-brdTffbT.js} +18 -20
- package/dist/Menu/index.js +1 -1
- package/dist/Menu/index.umd.cjs +1 -1
- package/dist/MenuItem/index.js +1 -1
- package/dist/MenuItem/index.umd.cjs +1 -1
- package/dist/{MenuItem.vue_vue_type_script_setup_true_lang-CC0ZX8mk.js → MenuItem.vue_vue_type_style_index_0_lang-CzNgZ7CJ.js} +99 -104
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-DRaDzSf5.js +1 -0
- package/dist/Pagination/index.js +1 -1
- package/dist/Pagination/index.umd.cjs +1 -1
- package/dist/Pagination.vue_vue_type_style_index_0_lang-B0_VsOAZ.js +1 -0
- package/dist/{Pagination.vue_vue_type_script_setup_true_lang-CYpg-o7g.js → Pagination.vue_vue_type_style_index_0_lang-CLsI3KAW.js} +54 -56
- package/dist/Popover/Popover.d.ts +3 -3
- 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/Popover/utils.d.ts +1 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-C6ZZEJzh.js +1 -0
- package/dist/{Popover.vue_vue_type_script_setup_true_lang-DhDzrGk6.js → Popover.vue_vue_type_style_index_0_lang-J68ZockB.js} +27 -29
- package/dist/Progress/ProgressCirclePath.d.ts +1 -1
- package/dist/Progress/index.js +1 -1
- package/dist/Progress/index.umd.cjs +1 -1
- package/dist/Progress/types.d.ts +2 -2
- package/dist/Progress.vue_vue_type_style_index_0_lang-B4GBo6sb.js +1 -0
- package/dist/{Progress.vue_vue_type_script_setup_true_lang-BqeypNvL.js → Progress.vue_vue_type_style_index_0_lang-DtG1mmcQ.js} +35 -37
- 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-Bpc9dmT5.js +1 -0
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-wamsBRJy.js → RadioGroup.vue_vue_type_script_setup_true_lang-DwnLgUkZ.js} +27 -29
- package/dist/ScrollContainer/index.js +1 -1
- package/dist/ScrollContainer/index.umd.cjs +1 -1
- package/dist/{ScrollContainer.vue_vue_type_script_setup_true_lang-FKw-Hnvi.js → ScrollContainer.vue_vue_type_style_index_0_lang-CCEG6AjN.js} +24 -26
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-Dti6qFXk.js +1 -0
- 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-HKjApQIO.js +1 -0
- package/dist/{Segmented.vue_vue_type_script_setup_true_lang-C3_Tl2yp.js → Segmented.vue_vue_type_style_index_0_lang-q28c-KjP.js} +16 -18
- package/dist/Select/SelectTrigger.d.ts +1 -1
- 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-DIlypQRE.js +1 -0
- package/dist/{Select.vue_vue_type_script_setup_true_lang-DcRVPTfy.js → Select.vue_vue_type_style_index_0_lang-f__hXx_6.js} +66 -68
- 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-C-wsusvY.js +32 -0
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-TFcjdHpb.js +1 -0
- package/dist/Skeleton/index.js +1 -1
- package/dist/Skeleton/index.umd.cjs +1 -1
- package/dist/{Skeleton.vue_vue_type_script_setup_true_lang-V3Y9sTi-.js → Skeleton.vue_vue_type_style_index_0_lang-BUizov_K.js} +16 -18
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-W1OLEfkY.js +1 -0
- package/dist/Spinner/index.js +1 -1
- package/dist/Spinner/index.umd.cjs +1 -1
- package/dist/{Spinner.vue_vue_type_script_setup_true_lang-CMhmFqGC.js → Spinner.vue_vue_type_style_index_0_lang-COQRqpmY.js} +19 -21
- package/dist/Spinner.vue_vue_type_style_index_0_lang-k30PU_tO.js +1 -0
- package/dist/SubMenu/index.js +1 -1
- package/dist/SubMenu/index.umd.cjs +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/Switch/index.umd.cjs +1 -1
- package/dist/{Switch.vue_vue_type_script_setup_true_lang-C-mChuJl.js → Switch.vue_vue_type_style_index_0_lang-6euiPiT-.js} +19 -21
- package/dist/Switch.vue_vue_type_style_index_0_lang-Cc1XCDc2.js +1 -0
- package/dist/THead.vue_vue_type_style_index_0_lang-CnapuGqj.js +1 -0
- package/dist/THead.vue_vue_type_style_index_0_lang-DaCjVYIl.js +198 -0
- package/dist/TabContent.vue_vue_type_script_setup_true_lang-B6GAPEdf.js +1 -0
- package/dist/{TabContent.vue_vue_type_script_setup_true_lang-H49InORX.js → TabContent.vue_vue_type_script_setup_true_lang-B6gNekgT.js} +37 -39
- package/dist/Table/index.js +1 -1
- package/dist/Table/index.umd.cjs +1 -1
- package/dist/Tabs/index.js +1 -1
- package/dist/Tabs/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_script_setup_true_lang-CvTs1oY9.js → Textarea.vue_vue_type_style_index_0_lang-CLhSsqGd.js} +41 -43
- package/dist/Textarea.vue_vue_type_style_index_0_lang-S0QXyiqu.js +1 -0
- package/dist/Tooltip/index.d.ts +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/{Tree.vue_vue_type_script_setup_true_lang-wJ-oWZvZ.js → Tree.vue_vue_type_style_index_0_lang-BHRZ_p39.js} +36 -38
- package/dist/Tree.vue_vue_type_style_index_0_lang-Du30UiYr.js +1 -0
- package/dist/Upload/Upload.d.ts +3 -3
- package/dist/Upload/index.js +1 -1
- package/dist/Upload/index.umd.cjs +1 -1
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-ZRmDqqX8.js → Upload.vue_vue_type_style_index_0_lang-Bs66TQtw.js} +70 -72
- package/dist/Upload.vue_vue_type_style_index_0_lang-DreAGPIr.js +1 -0
- package/dist/exports.d.ts +3 -3
- package/dist/index.js +52 -52
- package/dist/index.umd.cjs +1 -1
- package/dist/style/index.css +1 -1
- package/package.json +5 -6
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-B95JGdI_.js +0 -1
- package/dist/Alert.vue_vue_type_script_setup_true_lang-CJna3KsH.js +0 -1
- package/dist/Avatar.vue_vue_type_script_setup_true_lang-Nn10rcGu.js +0 -1
- package/dist/Badge.vue_vue_type_script_setup_true_lang-DJej9nkJ.js +0 -1
- package/dist/BaseBadge.vue_vue_type_script_setup_true_lang-BKUITOpw.js +0 -1
- package/dist/BaseButton.vue_vue_type_script_setup_true_lang-Bo_ZJcOQ.js +0 -1
- package/dist/BaseInput.vue_vue_type_script_setup_true_lang-CpnBS-1D.js +0 -1
- package/dist/Button.vue_vue_type_script_setup_true_lang-CdtU8pJ8.js +0 -1
- package/dist/Checkbox.vue_vue_type_script_setup_true_lang-DdF-cXiP.js +0 -1
- package/dist/Chip.vue_vue_type_script_setup_true_lang-DerG27zp.js +0 -1
- package/dist/ColorSwatch-BiIlHy4_.js +0 -4
- package/dist/ColorSwatch-By6c-JXm.js +0 -1
- package/dist/ColorSwatch.vue_vue_type_script_setup_true_lang-BJY6PbEL.js +0 -1
- package/dist/ColorSwatchGroup.vue_vue_type_script_setup_true_lang-ovLnyiXB.js +0 -1
- package/dist/ColorTrigger.vue_vue_type_script_setup_true_lang-DBwNGwz7.js +0 -1
- package/dist/Combobox.vue_vue_type_script_setup_true_lang-Cmor3uQM.js +0 -1
- package/dist/DataTable.vue_vue_type_script_setup_true_lang-CnRD6Q68.js +0 -1
- package/dist/Divider.vue_vue_type_script_setup_true_lang-BZRu0h3n.js +0 -38
- package/dist/Divider.vue_vue_type_script_setup_true_lang-D6Tc-M5M.js +0 -1
- package/dist/DropZone.vue_vue_type_script_setup_true_lang-dVL4HZVW.js +0 -1
- package/dist/Empty.vue_vue_type_script_setup_true_lang-BbliP7AT.js +0 -1
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-BhhowIQi.js +0 -1
- package/dist/GOPicker.vue_vue_type_script_setup_true_lang-DsZCv1Eu.js +0 -1
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-CudIoHnp.js +0 -1
- package/dist/GraphicalObjectGroup.vue_vue_type_script_setup_true_lang-Ciq5L_5z.js +0 -64
- package/dist/GraphicalObjectGroup.vue_vue_type_script_setup_true_lang-DlxMW3gN.js +0 -1
- package/dist/HoverCard.vue_vue_type_script_setup_true_lang-B6gl0uZH.js +0 -1
- package/dist/Icon.vue_vue_type_script_setup_true_lang-Be6ayltH.js +0 -1
- package/dist/Icon.vue_vue_type_script_setup_true_lang-DBiBHDqC.js +0 -49
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-mcs7CjOV.js +0 -1
- package/dist/Image.vue_vue_type_script_setup_true_lang-Bci9LkrG.js +0 -1
- package/dist/Image.vue_vue_type_script_setup_true_lang-C_MGypeV.js +0 -128
- package/dist/IndentLevel.vue_vue_type_script_setup_true_lang-D1ySGf-Z.js +0 -1
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-BDGaDDdg.js +0 -1
- package/dist/Input.vue_vue_type_script_setup_true_lang-C7eXK7Z1.js +0 -1
- package/dist/InputNumber.vue_vue_type_script_setup_true_lang-CyPMExCk.js +0 -1
- package/dist/Kbd.vue_vue_type_script_setup_true_lang-CxCXfVcU.js +0 -1
- package/dist/Label.vue_vue_type_script_setup_true_lang-DOIcDmSu.js +0 -1
- package/dist/Link.vue_vue_type_script_setup_true_lang-BKdeGQtS.js +0 -1
- package/dist/MenuItem.vue_vue_type_script_setup_true_lang-FR-W6X_P.js +0 -1
- package/dist/Pagination.vue_vue_type_script_setup_true_lang-DSzq-2Nd.js +0 -1
- package/dist/Popover.vue_vue_type_script_setup_true_lang-DlS1RQhN.js +0 -1
- package/dist/Progress.vue_vue_type_script_setup_true_lang-DpTDjzYC.js +0 -1
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-DlbOsulw.js +0 -1
- package/dist/ScrollContainer.vue_vue_type_script_setup_true_lang-CIXeFarD.js +0 -1
- package/dist/Segmented.vue_vue_type_script_setup_true_lang-v__5oumm.js +0 -1
- package/dist/Select.vue_vue_type_script_setup_true_lang-DgqUr22B.js +0 -1
- package/dist/Shortcut.vue_vue_type_script_setup_true_lang-B16kPcKe.js +0 -34
- package/dist/Shortcut.vue_vue_type_script_setup_true_lang-EJF2NtL_.js +0 -1
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-ywJfG4ii.js +0 -1
- package/dist/Spinner.vue_vue_type_script_setup_true_lang-DO3B4TxR.js +0 -1
- package/dist/Switch.vue_vue_type_script_setup_true_lang-jd0vNflL.js +0 -1
- package/dist/THead.vue_vue_type_script_setup_true_lang-DCBqDoCR.js +0 -1
- package/dist/THead.vue_vue_type_script_setup_true_lang-DEiGZvbY.js +0 -209
- package/dist/TabContent.vue_vue_type_script_setup_true_lang-DmsuHY8J.js +0 -1
- package/dist/Textarea.vue_vue_type_script_setup_true_lang-DiPxIJB_.js +0 -1
- package/dist/Tree.vue_vue_type_script_setup_true_lang-CjdtoEEK.js +0 -1
- package/dist/Upload.vue_vue_type_script_setup_true_lang-Di3zmtNn.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CheckNode } from '@pantograph/utils-vue';
|
|
2
|
-
import { SelectOptionSlotsKeys } from './types
|
|
2
|
+
import { SelectOptionSlotsKeys } from './types';
|
|
3
3
|
type GetOptionSlot = (name: SelectOptionSlotsKeys, value?: string) => (() => CheckNode[] | undefined) | undefined;
|
|
4
4
|
declare const _default: import('vue').DefineComponent<{
|
|
5
5
|
getOptionSlot: GetOptionSlot;
|
package/dist/Select/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as a, a as s, S, b as c, c as l, i as o, p as i } from "../Select.
|
|
1
|
+
import { _ as a, a as s, S, b as c, c as l, i as o, p as i } from "../Select.vue_vue_type_style_index_0_lang-f__hXx_6.js";
|
|
2
2
|
export {
|
|
3
3
|
a as Select,
|
|
4
4
|
s as SelectLabel,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Select.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Select.vue_vue_type_style_index_0_lang-DIlypQRE.js");exports.Select=e._sfc_main;exports.SelectLabel=e._sfc_main$1;exports.SelectOption=e.SelectOption;exports.SelectSizes=e.SelectSizes;exports.SelectStatuses=e.SelectStatuses;exports.injectSelectContext=e.injectSelectContext;exports.provideSelectContext=e.provideSelectContext;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("vue"),k=require("reka-ui"),V=require("es-toolkit"),i=require("@pantograph/utils-vue"),r=require("@pantograph/utils"),pe=require("class-variance-authority"),ve=require("./Empty.vue_vue_type_style_index_0_lang-JL3Igq8r.js"),Ce=require("./Skeleton.vue_vue_type_style_index_0_lang-W1OLEfkY.js"),ce=require("./Divider.vue_vue_type_style_index_0_lang-jjCOfwfM.js"),ge=require("./Popover.vue_vue_type_style_index_0_lang-C6ZZEJzh.js"),he=require("./ConfigProvider.vue_vue_type_script_setup_true_lang-Dn5qxQ1y.js"),_e=require("./ScrollContainer.vue_vue_type_style_index_0_lang-Dti6qFXk.js"),ae=require("./Icon.vue_vue_type_style_index_0_lang-CMFYMG-2.js"),H=require("./isArray-Bin_5of_.js"),de=require("./Chip.vue_vue_type_style_index_0_lang-DHg4Cw0Y.js"),X=require("./isObject-BDHKUJKN.js"),Se=require("./isNumber-DMOjxgl8.js"),ie=["sm","md","lg"],me=["error","warning","success"],[se,fe]=k.createContext("Select"),[Ee,Ve]=k.createContext("_Select"),D=r.getBemBlock("select"),ye=n.defineComponent({...i.getComponentOptions("SelectLabel"),__name:"SelectLabel",setup(f){return(t,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(r.getBemElement)(n.unref(D),"label"))},[n.renderSlot(t.$slots,"default")],2))}}),oe=n.defineComponent({name:i.getComponentName("SelectOption"),props:{option:{type:[Object,String],required:!0}},slots:Object,setup(f,{slots:t}){const o=se(),e=n.computed(()=>{switch(o.getSize.value){case"sm":return"2xsm";case"lg":return"sm";case"md":default:return"xsm"}}),q=n.computed(()=>o.getOptionValue(f.option)),c=n.computed(()=>o.getOptionLabel(f.option)),W=n.computed(()=>o.getOptionIcon(f.option)),M=n.computed(()=>o.getOptionDisabled(f.option)),P=r.getBemElement(D,"option"),$=pe.cva(P,{variants:{size:r.generateVariantClassList(ie,P)}}),A=_=>{var L,z;const y=_.detail.value;o.emit("select",y,H.isArray(o.modelValue.value)?!((z=(L=o.modelValue.value)==null?void 0:L.includes)!=null&&z.call(L,y)):!0)};if(!f.option)throw new Error("option is required");const F=()=>{var y;const _=(y=t.indicator)==null?void 0:y.call(t,{option:f.option});return i.isEmptyElement(_)?n.h(k.SelectItemIndicator,{asChild:!0},()=>n.h(ae._sfc_main,{icon:o.props.indicatorIcon,size:e.value})):_},T=()=>{var L,z,j;const _=(L=t.default)==null?void 0:L.call(t,{option:f.option}),y=[];if(!i.isEmptyElement(_))y.push(_);else{const U=(z=t.leading)==null?void 0:z.call(t,{option:f.option}),s=!i.isEmptyElement(U);if(W.value||s){let w;s?w=U:w=n.h(ae._sfc_main,{icon:W.value,size:e.value}),y.push(n.h("div",{class:r.normCls(r.getBemElement(P,"leading"),o.props.itemLeadingCls)},w))}let E;const B=(j=t.text)==null?void 0:j.call(t,{option:f.option});i.isEmptyElement(B)?E=c.value:E=B,y.push(n.h("div",{class:r.normCls(r.getBemElement(P,"text"),o.props.optionTextCls)},E))}return n.h("div",{class:r.normCls(r.getBemElement(P,"content"),o.props.optionContentCls)},y)};return()=>n.h(k.SelectItem,{value:q.value,textValue:c.value,disabled:M.value,class:r.normCls($({size:o.getSize.value}),o.props.optionCls),onSelect:A},()=>[T(),F()])}}),Le=n.defineComponent({name:i.getComponentName("SelectTrigger"),props:{getOptionSlot:{type:Function,required:!0}},setup(f,{slots:t,attrs:o}){const e=se(),q=({value:s},E)=>{if(E.stopPropagation(),s&&H.isArray(e.modelValue.value)&&!e.getDisabled.value){const B=e.modelValue.value.filter(w=>w!==s);e.modelValue.value=B,e.emit("update:modelValue",B),e.emit("select",s,!1)}},c=r.getBemElement(D,"trigger"),W=pe.cva(c,{variants:{size:r.generateVariantClassList(ie,c),status:r.generateVariantClassList(me,c),bordered:r.generateVariantClassList("bordered",c),multiple:r.generateVariantClassList("multiple",c),contentFit:r.generateVariantClassList("content-fit",c),wrapped:r.generateVariantClassList("wrapped",c),filled:r.generateVariantClassList("filled",c)}}),M=n.computed(()=>{switch(e.getSize.value){case"sm":return"xsm";case"lg":return"md";case"md":default:return"sm"}}),P=n.computed(()=>{switch(e.getSize.value){case"sm":return"2xsm";case"md":default:return"xsm"}}),$=n.computed(()=>{if(!e.props.multiple&&V.isString(e.modelValue.value)&&!i.isEmptyLikeLodash(e.modelValue.value))return e.getOptionByValue(e.modelValue.value)}),A=(s=$.value)=>{if(e.props.selectedItemIconAsTrailingIcon&&X.isObject(s)&&"icon"in s)return s.icon},F=n.computed(()=>A()),T=n.computed(()=>{if(!e.props.noTrailing)return e.props.trailingIcon}),_=n.computed(()=>!i.isEmptyLikeLodash(e.modelValue.value)&&e.props.multiple&&H.isArray(e.modelValue.value)),y=n.computed(()=>({modelValue:V.cloneDeep(e.modelValue.value),open:V.cloneDeep(e.open.value)})),L=s=>({...y.value,option:e.getOptionByValue(s)}),z=n.computed(()=>({disabled:e.getDisabled.value,reference:e.props.reference,tabindex:e.getDisabled.value?void 0:0,as:"div",class:r.normCls(W({size:e.getSize.value,status:e.getStatus.value==="success"&&i.isEmptyLikeLodash(e.modelValue.value)?void 0:e.getStatus.value,bordered:e.props.bordered,multiple:e.props.multiple,contentFit:e.props.contentFit,wrapped:e.props.wrapped,filled:!i.isEmptyLikeLodash(e.modelValue.value)}),e.props.triggerCls),...o})),j=(s,E=P.value)=>n.h(ae._sfc_main,{icon:s,size:E}),U=()=>{var B;let s;const E=(B=t.triggerTrailing)==null?void 0:B.call(t,y.value);if(i.isEmptyElement(E)?T.value&&(s=j(T.value)):s=E,s)return n.h("div",{class:r.normCls(r.getBemElement(c,"trailing"),e.props.triggerTrailingCls)},s)};return()=>{var w;const s=(w=t.trigger)==null?void 0:w.call(t,y.value),B=(()=>{if(i.isEmptyElement(s))return!1;const x=i.filterEmpty(s)??null,R=x.length===1?x[0]:x;return R?i.isValidElement(R)&&!i.isFragment(R):!0})();return n.h(k.SelectTrigger,{...z.value,asChild:B,key:String(B)},{default:()=>{var J;if(!i.isEmptyElement(s))return s;const x=(J=t.triggerLeading)==null?void 0:J.call(t,y.value),R=!i.isEmptyElement(x),Y=()=>{var N;if(!e.props.multiple&&!H.isArray(e.modelValue.value)){const K=(N=f.getOptionSlot("leading",e.modelValue.value))==null?void 0:N();if(R||K||F.value||e.props.leadingIcon){let a;return i.isEmptyElement(K)?F.value?a=j(F.value):R?a=x:e.props.leadingIcon&&(a=j(e.props.leadingIcon)):a=K,n.h("div",{class:r.normCls(r.getBemElement(c,"leading"),e.props.triggerLeadingCls)},a)}}},re=()=>{const N=[];if(i.isEmptyLikeLodash(e.modelValue.value)){if(e.props.placeholder&&!e.props.multiple){const K=()=>{var S;const a=(S=t.placeholder)==null?void 0:S.call(t,y.value);return i.isEmptyElement(a)?e.props.placeholder:a};N.push(K())}}else{const a=(()=>{var O,v,d;const S=(O=t.triggerValue)==null?void 0:O.call(t,y.value);if(!i.isEmptyElement(S))return S;if(e.props.multiple&&H.isArray(e.modelValue.value))return n.h(de._sfc_main$1,{maxCount:e.props.maxCount,size:M.value,color:"primary",closeable:!e.getDisabled.value,noPopover:!0,noWrap:!e.props.wrapped,class:r.normCls(r.getBemElement(c,"tag_list"),e.props.tagListCls),onClose:q},()=>e.modelValue.value.map(g=>{var Q;const b=l=>{var C;const p=(C=t.tagClose)==null?void 0:C.call(t,{...L(g),onClose:l});return i.isEmptyElement(p)?null:p},I=(Q=f.getOptionSlot("default",g))==null?void 0:Q(),le=()=>{var C,u;const l=(C=f.getOptionSlot("text",g))==null?void 0:C(),p=(u=t.tagText)==null?void 0:u.call(t,L(g));return i.isEmptyElement(p)?i.isEmptyElement(I)?i.isEmptyElement(l)?e.getLabelByValue(g):l:I:p},te=({size:l})=>{var h,m;if(!i.isEmptyElement(I))return null;const p=(h=f.getOptionSlot("leading",g))==null?void 0:h(),C=(m=t.tagLeading)==null?void 0:m.call(t,L(g)),u=A(e.getOptionByValue(g))??e.props.leadingIcon;return i.isEmptyElement(C)?i.isEmptyElement(p)?u?j(u,l):i.isEmptyElement(x)?null:x:p:C},ne=()=>{var p;const l=(p=t.tagTrailing)==null?void 0:p.call(t,L(g));return i.isEmptyElement(l)?null:l};return n.h(de._sfc_main,{value:g,class:r.normCls(r.getBemElement(c,"tag"),e.props.tagCls),closeIconCls:r.getBemElement(c,"tag__close"),closeTrigger:"pointer"},{text:le,leading:te,trailing:ne,close:b})}));if(!H.isArray(e.modelValue.value)){const g=(v=f.getOptionSlot("default",e.modelValue.value))==null?void 0:v(),b=(d=f.getOptionSlot("text",e.modelValue.value))==null?void 0:d();return i.isEmptyElement(g)?i.isEmptyElement(b)?V.isString(e.modelValue.value)?e.getLabelByValue(e.modelValue.value):e.modelValue.value:b:g}})();a&&N.push(a)}return N},G=[],Z=Y();i.isEmptyElement(Z)||G.push(Z),G.push(n.h(k.Primitive,{class:r.normCls(r.getBemElement(c,"content"),e.props.triggerContentCls,i.isEmptyLikeLodash(e.modelValue.value)?e.props.triggerContentPlaceholderCls:e.props.triggerContentValueCls),as:"div",key:String(_.value),asChild:_.value},{default:re}));const ee=U();return i.isEmptyElement(ee)||G.push(ee),G}})}}}),be=n.defineComponent({name:i.getComponentName("SelectWrapper"),setup(f,{slots:t}){const o=Ee(),e=k.injectSelectRootContext(),q=n.ref();i.useLazyLoading({target:q});const c=n.ref(),W=ge.getPopoverPortalProps({triggerRef:c,props:o.props}),{getFlipOnDir:M,getDir:P}=he.useConfig(),$=M("reversePlacementOnDir"),A=P(),F=ge.getPopoverContentProps({props:o.props,flip:$,emitsAsProps:o.emitsAsProps,_dir:A,controlAutoFocus:!1,extraPropNames:["bodyLock","position"]}),T=({key:a,getterKey:S,defaultValue:O,noReturnOption:v})=>d=>{const g=V.isFunction(O)?O(d):O;if(X.isObject(d)){const b=d[a]??g,I=S&&o.props[S];if(I){if(V.isString(I))return d[I]??b;if(V.isFunction(I))return I(d)??b}return b}return V.isString(d)&&!v?d??g:g},_=T({getterKey:"getValue",key:"value"}),y=T({getterKey:"getLabel",key:"label",defaultValue:_}),L=T({getterKey:"getIcon",key:"icon",noReturnOption:!0}),z=a=>{var S;if((S=o.props.options)!=null&&S.length)for(const O of o.props.options){if(_(O)===a)return O;const v=E(O);if(v!=null&&v.length){for(const d of v)if(_(d)===a)return d}}return a},j=a=>{const S=z(a);return S?y(S)??a:a},U=T({getterKey:"getDisabled",key:"disabled",defaultValue:!1,noReturnOption:!0}),s=T({getterKey:"getGroupLabel",key:"label",noReturnOption:!0}),E=T({getterKey:"getGroupOptions",key:"options",noReturnOption:!0}),{getDisabled:B,getStatus:w,getSize:x}=i.useFormInput({getDisabled:()=>o.props.disabled,getSize:()=>o.props.size,getStatus:()=>o.props.status});fe({props:o.props,attrs:o.attrs,emit:o.emit,getOptionValue:_,getOptionLabel:y,getOptionDisabled:U,getOptionIcon:L,getOptionByValue:z,getLabelByValue:j,getDisabled:B,getStatus:w,getSize:x,...e,modelValue:e.modelValue}),n.watch(()=>[o.props.clearOnChangeMultiple,o.props.multiple],()=>{o.props.clearOnChangeMultiple&&(e.modelValue.value=void 0,o.emit("update:modelValue",void 0))});const R=n.computed(()=>{const a=o.props.scrollContainerProps??{};return{...a,areaCls:[r.getBemElement(D,"scroll_area"),a==null?void 0:a.class,a==null?void 0:a.areaCls]}}),Y=r.getBemElement(D,"popup"),re=pe.cva(Y,{variants:{size:r.generateVariantClassList(ie,Y)}}),G=a=>{if(Se.isNumber(a))return`${a}px`;if(typeof a=="string")return a},Z=n.computed(()=>G(o.props.popupWidth)),ee=n.computed(()=>G(o.props.popupHeight)),J=n.computed(()=>G(o.props.minWidth)),N=n.computed(()=>({type:x.value==="sm"?"simple":"advance",...V.omit(o.props.emptyProps??{},["class"])})),K=n.computed(()=>V.omit(o.props.skeletonProps??{},["class"]));return()=>{var te,ne,Q;const a=l=>{var p;if((p=o.props.options)!=null&&p.length&&l>0)return!!o.props.options[l-1]},S=l=>{var p,C;if((p=o.props.options)!=null&&p.length&&l>0){const u=o.props.options[l-1];return!!(u&&((C=E(u))!=null&&C.length))}},O=(te=t.default)==null?void 0:te.call(t,{}),v=(ne=i.flattenChildrenByType(O,oe))==null?void 0:ne.filter(l=>{var p;return X.isObject(l==null?void 0:l.props)&&((p=l==null?void 0:l.props)==null?void 0:p.option)}),d=[];(o.props.options??[]).forEach((l,p)=>{const C=h=>n.h(oe,{option:h},{default:()=>{var m;return(m=t.option)==null?void 0:m.call(t,{option:h})},leading:()=>{var m;return(m=t.optionLeading)==null?void 0:m.call(t,{option:h})},indicator:()=>{var m;return(m=t.optionIndicator)==null?void 0:m.call(t,{option:h})},text:()=>{var m;return(m=t.optionText)==null?void 0:m.call(t,{option:h})}}),u=E(l);if(u!=null&&u.length){a(p)&&d.push(n.h(ce._sfc_main));const h=s(l);h&&d.push(n.h(ye,{class:o.props.labelCls},()=>h)),u.forEach(m=>{d.push(C(m))})}else S(p)?d.push(n.h(ce._sfc_main)):d.push(C(l))});const g=i.flattenChildrenByType(d,oe).filter(l=>{var p;return X.isObject(l==null?void 0:l.props)&&((p=l==null?void 0:l.props)==null?void 0:p.option)}),b=!!(g!=null&&g.length||v!=null&&v.length),I=(l,p)=>{var C;if(b&&!i.isEmptyLikeLodash(p)&&V.isString(p)){const u=v!=null&&v.length?v:g;if(u.length){const h=u.find(m=>{var ue;return X.isObject(m.props)&&_((ue=m.props)==null?void 0:ue.option)===p});return(C=h==null?void 0:h.children)==null?void 0:C[l]}}},le=()=>{var p,C;const l=[];if(b||o.props.loading){const u=[];if(b&&(v!=null&&v.length?u.push(O):u.push(...d)),o.props.loading){const h=(p=t.loading)==null?void 0:p.call(t,{});if(!i.isEmptyElement(h))u.push(h);else{const m=new Array(b?2:o.props.loadingRowCount).fill(1);u.push(...m.map(()=>n.h(Ce._sfc_main,{size:x.value,class:r.normCls(r.getBemElement(D,"skeleton"),o.props.skeletonCls),...K.value})))}}l.push(n.h("div",{class:r.normCls(r.getBemElement(D,"options"),o.props.optionsCls)},u))}else if(!b){const u=(C=t.empty)==null?void 0:C.call(t,N.value);i.isEmptyElement(u)?l.push(n.h(ve._sfc_main,{class:r.normCls(r.getBemElement(D,"empty"),o.props.emptyCls),...N.value},{title:t.emptyTitle,description:t.emptyDescription,actions:t.emptyActions,image:t.emptyImage})):l.push(u)}return o.props.lazyLoading&&l.push(n.h("div",{class:r.getBemElement(D,"lazy_loading")},n.h("div",{class:r.getBemElement(D,"lazy_loading_trigger"),ref:q}))),l};return[n.h(Le,{getOptionSlot:I,ref:c,...o.attrs,style:{...((Q=o.attrs)==null?void 0:Q.style)??{},"--ptc-select-trigger-min-w":J.value}},{trigger:t.trigger,triggerLeading:t.triggerLeading,placeholder:t.placeholder,triggerValue:t.triggerValue,triggerTrailing:t.triggerTrailing,tagClose:t.tagClose,tagTrailing:t.tagTrailing,tagLeading:t.tagLeading,tagText:t.tagText}),n.h(k.SelectPortal,W.value,()=>n.h(k.SelectContent,{...F.value,class:r.normCls(re(o.props),o.props.popupCls),style:{display:e.open.value?void 0:"none",zIndex:o.props.zIndex,"--ptc-select-popup-width":o.props.samePopupWidth?void 0:Z.value,"--ptc-select-popup-height":ee.value,"--ptc-select-trigger-min-w":J.value}},()=>n.h(_e._sfc_main,R.value,le)))]}}}),Be=n.defineComponent({...i.getComponentOptions("Select"),__name:"Select",props:{status:{},size:{default:"md"},multiple:{type:Boolean,default:void 0},contentFit:{type:Boolean},wrapped:{type:Boolean},noTrailing:{type:Boolean},leadingIcon:{},zIndex:{},trailingIcon:{default:"tabler:chevron-down"},selectedItemIconAsTrailingIcon:{type:Boolean,default:!0},maxCount:{},to:{},placeholder:{},indicatorIcon:{default:"tabler:check"},options:{},getDisabled:{},getLabel:{},getValue:{},getGroupOptions:{},getGroupLabel:{},getIcon:{},placement:{default:"bottom"},reversePlacementOnDir:{},loading:{type:Boolean},skeletonProps:{},loadingRowCount:{default:10},lazyLoading:{type:Boolean},bordered:{type:Boolean,default:!0},clearOnChangeMultiple:{type:Boolean,default:!0},triggerCls:{},triggerLeadingCls:{},triggerContentCls:{},triggerContentPlaceholderCls:{},triggerContentValueCls:{},triggerTrailingCls:{},itemLeadingCls:{},optionCls:{},tagListCls:{},tagCls:{},popupCls:{},labelCls:{},optionsCls:{},optionTextCls:{},optionContentCls:{},emptyCls:{},skeletonCls:{},scrollContainerProps:{},emptyProps:{},samePopupWidth:{type:Boolean,default:!0},popupHeight:{default:384},popupWidth:{},minWidth:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},defaultValue:{},modelValue:{},by:{},dir:{},autocomplete:{},disabled:{type:Boolean,default:void 0},name:{},required:{type:Boolean},reference:{},forceMount:{type:Boolean,default:void 0},position:{default:"popper"},bodyLock:{type:Boolean},side:{},sideOffset:{default:4},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean,default:void 0},collisionBoundary:{},collisionPadding:{default:4},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean,default:void 0},positionStrategy:{default:"fixed"},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean,default:void 0},prioritizePosition:{type:Boolean,default:void 0},asChild:{type:Boolean},as:{},defer:{type:Boolean}},emits:["change","select","update:modelValue","update:open","closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(f,{emit:t}){const o=f,e=t,q=k.useEmitAsProps(e),c=n.computed(()=>V.omitBy({...V.pick(o,["open","defaultOpen","defaultValue","modelValue","by","dir","multiple","autocomplete","disabled"]),...V.pick(q,["onUpdate:modelValue","onUpdate:open"])},V.isUndefined)),W=n.useSlots(),M=n.useAttrs();return Ve({attrs:M,props:o,emit:e,emitsAsProps:q}),(P,$)=>(n.openBlock(),n.createBlock(n.unref(k.SelectRoot),n.normalizeProps(n.guardReactiveProps(c.value)),{default:n.withCtx(()=>[n.createVNode(n.unref(be),null,n.createSlots({_:2},[n.renderList(Object.keys(W),A=>({name:A,fn:n.withCtx(F=>[n.renderSlot(P.$slots,A,n.normalizeProps(n.guardReactiveProps(F)))])}))]),1024)]),_:3},16))}});exports.SelectOption=oe;exports.SelectSizes=ie;exports.SelectStatuses=me;exports._sfc_main=Be;exports._sfc_main$1=ye;exports.injectSelectContext=se;exports.provideSelectContext=fe;
|
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
import { defineComponent as te, createElementBlock as ze, openBlock as
|
|
1
|
+
import { defineComponent as te, createElementBlock as ze, openBlock as xe, normalizeClass as ke, unref as le, renderSlot as _e, computed as y, h as a, ref as ve, watch as we, useSlots as De, useAttrs as Fe, createBlock as Ae, normalizeProps as Ce, guardReactiveProps as ye, withCtx as Se, createVNode as We, createSlots as $e, renderList as Ee } from "vue";
|
|
2
2
|
import { createContext as Pe, SelectItem as Ge, SelectItemIndicator as Ne, SelectTrigger as Re, Primitive as je, injectSelectRootContext as Ke, SelectPortal as Me, SelectContent as qe, useEmitAsProps as Ue, SelectRoot as He } from "reka-ui";
|
|
3
3
|
import { isString as ee, cloneDeep as he, omit as be, isFunction as Ve, omitBy as Je, pick as Oe, isUndefined as Qe } from "es-toolkit";
|
|
4
|
-
import { getComponentOptions as Te, getComponentName as ge, isEmptyElement as p, isEmptyLikeLodash as U, filterEmpty as Xe, isValidElement as Ye, isFragment as Ze, useLazyLoading as et, useFormInput as tt, flattenChildrenByType as Le
|
|
5
|
-
import { getBemBlock as
|
|
4
|
+
import { getComponentOptions as Te, getComponentName as ge, isEmptyElement as p, isEmptyLikeLodash as U, filterEmpty as Xe, isValidElement as Ye, isFragment as Ze, useLazyLoading as et, useFormInput as tt, flattenChildrenByType as Le } from "@pantograph/utils-vue";
|
|
5
|
+
import { getBemBlock as ot, getBemElement as S, generateVariantClassList as N, normCls as x } from "@pantograph/utils";
|
|
6
6
|
import { cva as de } from "class-variance-authority";
|
|
7
|
-
import { _ as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { g as
|
|
11
|
-
import { u as
|
|
12
|
-
import { _ as
|
|
13
|
-
import { _ as ce } from "./Icon.
|
|
7
|
+
import { _ as nt } from "./Empty.vue_vue_type_style_index_0_lang-GEhjGuWp.js";
|
|
8
|
+
import { _ as rt } from "./Skeleton.vue_vue_type_style_index_0_lang-BUizov_K.js";
|
|
9
|
+
import { _ as Be } from "./Divider.vue_vue_type_style_index_0_lang-Clrzj4R0.js";
|
|
10
|
+
import { g as it, b as at } from "./Popover.vue_vue_type_style_index_0_lang-J68ZockB.js";
|
|
11
|
+
import { u as lt } from "./ConfigProvider.vue_vue_type_script_setup_true_lang-C-xm8OzO.js";
|
|
12
|
+
import { _ as pt } from "./ScrollContainer.vue_vue_type_style_index_0_lang-CCEG6AjN.js";
|
|
13
|
+
import { _ as ce } from "./Icon.vue_vue_type_style_index_0_lang-LLvjBJx0.js";
|
|
14
14
|
import { i as Q } from "./isArray-QlWcxgml.js";
|
|
15
|
-
import { b as
|
|
15
|
+
import { b as st, _ as ut } from "./Chip.vue_vue_type_style_index_0_lang-Duq9O1Pn.js";
|
|
16
16
|
import { i as Z } from "./isObject-vmP43YLW.js";
|
|
17
|
-
import { i as
|
|
18
|
-
|
|
19
|
-
const me = ["sm", "md", "lg"], mt = ["error", "warning", "success"], [Ie, ft] = Pe("Select"), [vt, Ct] = Pe("_Select"), F = nt("select"), yt = /* @__PURE__ */ te({
|
|
17
|
+
import { i as ct } from "./isNumber-BduWbB-B.js";
|
|
18
|
+
const me = ["sm", "md", "lg"], gt = ["error", "warning", "success"], [Ie, dt] = Pe("Select"), [mt, ft] = Pe("_Select"), F = ot("select"), vt = /* @__PURE__ */ te({
|
|
20
19
|
...Te("SelectLabel"),
|
|
21
20
|
__name: "SelectLabel",
|
|
22
21
|
setup(m) {
|
|
23
|
-
return (t, o) => (
|
|
22
|
+
return (t, o) => (xe(), ze("div", {
|
|
24
23
|
class: ke(le(S)(le(F), "label"))
|
|
25
24
|
}, [
|
|
26
25
|
_e(t.$slots, "default")
|
|
@@ -79,7 +78,7 @@ const me = ["sm", "md", "lg"], mt = ["error", "warning", "success"], [Ie, ft] =
|
|
|
79
78
|
l ? D = J : D = a(ce, { icon: R.value, size: e.value }), f.push(
|
|
80
79
|
a(
|
|
81
80
|
"div",
|
|
82
|
-
{ class:
|
|
81
|
+
{ class: x(S(I, "leading"), o.props.itemLeadingCls) },
|
|
83
82
|
D
|
|
84
83
|
)
|
|
85
84
|
);
|
|
@@ -90,7 +89,7 @@ const me = ["sm", "md", "lg"], mt = ["error", "warning", "success"], [Ie, ft] =
|
|
|
90
89
|
a(
|
|
91
90
|
"div",
|
|
92
91
|
{
|
|
93
|
-
class:
|
|
92
|
+
class: x(S(I, "text"), o.props.optionTextCls)
|
|
94
93
|
},
|
|
95
94
|
O
|
|
96
95
|
)
|
|
@@ -98,7 +97,7 @@ const me = ["sm", "md", "lg"], mt = ["error", "warning", "success"], [Ie, ft] =
|
|
|
98
97
|
}
|
|
99
98
|
return a(
|
|
100
99
|
"div",
|
|
101
|
-
{ class:
|
|
100
|
+
{ class: x(S(I, "content"), o.props.optionContentCls) },
|
|
102
101
|
f
|
|
103
102
|
);
|
|
104
103
|
};
|
|
@@ -108,7 +107,7 @@ const me = ["sm", "md", "lg"], mt = ["error", "warning", "success"], [Ie, ft] =
|
|
|
108
107
|
value: A.value,
|
|
109
108
|
textValue: u.value,
|
|
110
109
|
disabled: q.value,
|
|
111
|
-
class:
|
|
110
|
+
class: x(
|
|
112
111
|
H({
|
|
113
112
|
size: o.getSize.value
|
|
114
113
|
}),
|
|
@@ -119,7 +118,7 @@ const me = ["sm", "md", "lg"], mt = ["error", "warning", "success"], [Ie, ft] =
|
|
|
119
118
|
() => [z(), $()]
|
|
120
119
|
);
|
|
121
120
|
}
|
|
122
|
-
}),
|
|
121
|
+
}), Ct = te({
|
|
123
122
|
name: ge("SelectTrigger"),
|
|
124
123
|
props: {
|
|
125
124
|
getOptionSlot: {
|
|
@@ -136,7 +135,7 @@ const me = ["sm", "md", "lg"], mt = ["error", "warning", "success"], [Ie, ft] =
|
|
|
136
135
|
}, u = S(F, "trigger"), R = de(u, {
|
|
137
136
|
variants: {
|
|
138
137
|
size: N(me, u),
|
|
139
|
-
status: N(
|
|
138
|
+
status: N(gt, u),
|
|
140
139
|
bordered: N("bordered", u),
|
|
141
140
|
multiple: N("multiple", u),
|
|
142
141
|
contentFit: N("content-fit", u),
|
|
@@ -183,7 +182,7 @@ const me = ["sm", "md", "lg"], mt = ["error", "warning", "success"], [Ie, ft] =
|
|
|
183
182
|
reference: e.props.reference,
|
|
184
183
|
tabindex: e.getDisabled.value ? void 0 : 0,
|
|
185
184
|
as: "div",
|
|
186
|
-
class:
|
|
185
|
+
class: x(
|
|
187
186
|
R({
|
|
188
187
|
size: e.getSize.value,
|
|
189
188
|
status: e.getStatus.value === "success" && U(e.modelValue.value) ? void 0 : e.getStatus.value,
|
|
@@ -203,7 +202,7 @@ const me = ["sm", "md", "lg"], mt = ["error", "warning", "success"], [Ie, ft] =
|
|
|
203
202
|
if (p(O) ? z.value && (l = E(z.value)) : l = O, l)
|
|
204
203
|
return a(
|
|
205
204
|
"div",
|
|
206
|
-
{ class:
|
|
205
|
+
{ class: x(S(u, "trailing"), e.props.triggerTrailingCls) },
|
|
207
206
|
l
|
|
208
207
|
);
|
|
209
208
|
};
|
|
@@ -234,7 +233,7 @@ const me = ["sm", "md", "lg"], mt = ["error", "warning", "success"], [Ie, ft] =
|
|
|
234
233
|
return p(M) ? $.value ? r = E($.value) : j ? r = T : e.props.leadingIcon && (r = E(e.props.leadingIcon)) : r = M, a(
|
|
235
234
|
"div",
|
|
236
235
|
{
|
|
237
|
-
class:
|
|
236
|
+
class: x(
|
|
238
237
|
S(u, "leading"),
|
|
239
238
|
e.props.triggerLeadingCls
|
|
240
239
|
)
|
|
@@ -261,7 +260,7 @@ const me = ["sm", "md", "lg"], mt = ["error", "warning", "success"], [Ie, ft] =
|
|
|
261
260
|
if (!p(V)) return V;
|
|
262
261
|
if (e.props.multiple && Q(e.modelValue.value))
|
|
263
262
|
return a(
|
|
264
|
-
|
|
263
|
+
st,
|
|
265
264
|
{
|
|
266
265
|
maxCount: e.props.maxCount,
|
|
267
266
|
size: q.value,
|
|
@@ -269,12 +268,12 @@ const me = ["sm", "md", "lg"], mt = ["error", "warning", "success"], [Ie, ft] =
|
|
|
269
268
|
closeable: !e.getDisabled.value,
|
|
270
269
|
noPopover: !0,
|
|
271
270
|
noWrap: !e.props.wrapped,
|
|
272
|
-
class:
|
|
271
|
+
class: x(S(u, "tag_list"), e.props.tagListCls),
|
|
273
272
|
onClose: A
|
|
274
273
|
},
|
|
275
274
|
() => e.modelValue.value.map((c) => {
|
|
276
275
|
var Y;
|
|
277
|
-
const
|
|
276
|
+
const B = (n) => {
|
|
278
277
|
var C;
|
|
279
278
|
const i = (C = t.tagClose) == null ? void 0 : C.call(t, {
|
|
280
279
|
...L(c),
|
|
@@ -296,10 +295,10 @@ const me = ["sm", "md", "lg"], mt = ["error", "warning", "success"], [Ie, ft] =
|
|
|
296
295
|
return p(n) ? null : n;
|
|
297
296
|
};
|
|
298
297
|
return a(
|
|
299
|
-
|
|
298
|
+
ut,
|
|
300
299
|
{
|
|
301
300
|
value: c,
|
|
302
|
-
class:
|
|
301
|
+
class: x(S(u, "tag"), e.props.tagCls),
|
|
303
302
|
closeIconCls: S(u, "tag__close"),
|
|
304
303
|
closeTrigger: "pointer"
|
|
305
304
|
},
|
|
@@ -307,14 +306,14 @@ const me = ["sm", "md", "lg"], mt = ["error", "warning", "success"], [Ie, ft] =
|
|
|
307
306
|
text: se,
|
|
308
307
|
leading: ie,
|
|
309
308
|
trailing: ae,
|
|
310
|
-
close:
|
|
309
|
+
close: B
|
|
311
310
|
}
|
|
312
311
|
);
|
|
313
312
|
})
|
|
314
313
|
);
|
|
315
314
|
if (!Q(e.modelValue.value)) {
|
|
316
|
-
const c = (v = m.getOptionSlot("default", e.modelValue.value)) == null ? void 0 : v(),
|
|
317
|
-
return p(c) ? p(
|
|
315
|
+
const c = (v = m.getOptionSlot("default", e.modelValue.value)) == null ? void 0 : v(), B = (g = m.getOptionSlot("text", e.modelValue.value)) == null ? void 0 : g();
|
|
316
|
+
return p(c) ? p(B) ? ee(e.modelValue.value) ? e.getLabelByValue(e.modelValue.value) : e.modelValue.value : B : c;
|
|
318
317
|
}
|
|
319
318
|
})();
|
|
320
319
|
r && G.push(r);
|
|
@@ -325,7 +324,7 @@ const me = ["sm", "md", "lg"], mt = ["error", "warning", "success"], [Ie, ft] =
|
|
|
325
324
|
a(
|
|
326
325
|
je,
|
|
327
326
|
{
|
|
328
|
-
class:
|
|
327
|
+
class: x(
|
|
329
328
|
S(u, "content"),
|
|
330
329
|
e.props.triggerContentCls,
|
|
331
330
|
U(e.modelValue.value) ? e.props.triggerContentPlaceholderCls : e.props.triggerContentValueCls
|
|
@@ -344,12 +343,12 @@ const me = ["sm", "md", "lg"], mt = ["error", "warning", "success"], [Ie, ft] =
|
|
|
344
343
|
);
|
|
345
344
|
};
|
|
346
345
|
}
|
|
347
|
-
}),
|
|
346
|
+
}), yt = te({
|
|
348
347
|
name: ge("SelectWrapper"),
|
|
349
348
|
setup(m, { slots: t }) {
|
|
350
|
-
const o =
|
|
349
|
+
const o = mt(), e = Ke(), A = ve();
|
|
351
350
|
et({ target: A });
|
|
352
|
-
const u = ve(), R =
|
|
351
|
+
const u = ve(), R = it({ triggerRef: u, props: o.props }), { getFlipOnDir: q, getDir: I } = lt(), H = q("reversePlacementOnDir"), W = I(), $ = at({
|
|
353
352
|
props: o.props,
|
|
354
353
|
flip: H,
|
|
355
354
|
emitsAsProps: o.emitsAsProps,
|
|
@@ -364,13 +363,13 @@ const me = ["sm", "md", "lg"], mt = ["error", "warning", "success"], [Ie, ft] =
|
|
|
364
363
|
}) => (g) => {
|
|
365
364
|
const c = Ve(P) ? P(g) : P;
|
|
366
365
|
if (Z(g)) {
|
|
367
|
-
const
|
|
366
|
+
const B = g[r] ?? c, k = V && o.props[V];
|
|
368
367
|
if (k) {
|
|
369
368
|
if (ee(k))
|
|
370
|
-
return g[k] ??
|
|
371
|
-
if (Ve(k)) return k(g) ??
|
|
369
|
+
return g[k] ?? B;
|
|
370
|
+
if (Ve(k)) return k(g) ?? B;
|
|
372
371
|
}
|
|
373
|
-
return
|
|
372
|
+
return B;
|
|
374
373
|
}
|
|
375
374
|
return ee(g) && !v ? g ?? c : c;
|
|
376
375
|
}, b = z({
|
|
@@ -417,7 +416,7 @@ const me = ["sm", "md", "lg"], mt = ["error", "warning", "success"], [Ie, ft] =
|
|
|
417
416
|
getSize: () => o.props.size,
|
|
418
417
|
getStatus: () => o.props.status
|
|
419
418
|
});
|
|
420
|
-
|
|
419
|
+
dt({
|
|
421
420
|
props: o.props,
|
|
422
421
|
attrs: o.attrs,
|
|
423
422
|
emit: o.emit,
|
|
@@ -453,7 +452,7 @@ const me = ["sm", "md", "lg"], mt = ["error", "warning", "success"], [Ie, ft] =
|
|
|
453
452
|
size: N(me, oe)
|
|
454
453
|
}
|
|
455
454
|
}), K = (r) => {
|
|
456
|
-
if (
|
|
455
|
+
if (ct(r))
|
|
457
456
|
return `${r}px`;
|
|
458
457
|
if (typeof r == "string")
|
|
459
458
|
return r;
|
|
@@ -505,23 +504,23 @@ const me = ["sm", "md", "lg"], mt = ["error", "warning", "success"], [Ie, ft] =
|
|
|
505
504
|
}
|
|
506
505
|
), s = O(n);
|
|
507
506
|
if (s != null && s.length) {
|
|
508
|
-
r(i) && g.push(a(
|
|
507
|
+
r(i) && g.push(a(Be));
|
|
509
508
|
const h = l(n);
|
|
510
509
|
h && g.push(
|
|
511
|
-
a(
|
|
510
|
+
a(vt, { class: o.props.labelCls }, () => h)
|
|
512
511
|
), s.forEach((d) => {
|
|
513
512
|
g.push(C(d));
|
|
514
513
|
});
|
|
515
|
-
} else V(i) ? g.push(a(
|
|
514
|
+
} else V(i) ? g.push(a(Be)) : g.push(C(n));
|
|
516
515
|
});
|
|
517
516
|
const c = Le(g, ue).filter(
|
|
518
517
|
(n) => {
|
|
519
518
|
var i;
|
|
520
519
|
return Z(n == null ? void 0 : n.props) && ((i = n == null ? void 0 : n.props) == null ? void 0 : i.option);
|
|
521
520
|
}
|
|
522
|
-
),
|
|
521
|
+
), B = !!(c != null && c.length || v != null && v.length), k = (n, i) => {
|
|
523
522
|
var C;
|
|
524
|
-
if (
|
|
523
|
+
if (B && !U(i) && ee(i)) {
|
|
525
524
|
const s = v != null && v.length ? v : c;
|
|
526
525
|
if (s.length) {
|
|
527
526
|
const h = s.find(
|
|
@@ -536,18 +535,18 @@ const me = ["sm", "md", "lg"], mt = ["error", "warning", "success"], [Ie, ft] =
|
|
|
536
535
|
}, se = () => {
|
|
537
536
|
var i, C;
|
|
538
537
|
const n = [];
|
|
539
|
-
if (
|
|
538
|
+
if (B || o.props.loading) {
|
|
540
539
|
const s = [];
|
|
541
|
-
if (
|
|
540
|
+
if (B && (v != null && v.length ? s.push(P) : s.push(...g)), o.props.loading) {
|
|
542
541
|
const h = (i = t.loading) == null ? void 0 : i.call(t, {});
|
|
543
542
|
if (!p(h)) s.push(h);
|
|
544
543
|
else {
|
|
545
|
-
const d = new Array(
|
|
544
|
+
const d = new Array(B ? 2 : o.props.loadingRowCount).fill(1);
|
|
546
545
|
s.push(
|
|
547
546
|
...d.map(
|
|
548
|
-
() => a(
|
|
547
|
+
() => a(rt, {
|
|
549
548
|
size: T.value,
|
|
550
|
-
class:
|
|
549
|
+
class: x(
|
|
551
550
|
S(F, "skeleton"),
|
|
552
551
|
o.props.skeletonCls
|
|
553
552
|
),
|
|
@@ -561,18 +560,18 @@ const me = ["sm", "md", "lg"], mt = ["error", "warning", "success"], [Ie, ft] =
|
|
|
561
560
|
a(
|
|
562
561
|
"div",
|
|
563
562
|
{
|
|
564
|
-
class:
|
|
563
|
+
class: x(S(F, "options"), o.props.optionsCls)
|
|
565
564
|
},
|
|
566
565
|
s
|
|
567
566
|
)
|
|
568
567
|
);
|
|
569
|
-
} else if (!
|
|
568
|
+
} else if (!B) {
|
|
570
569
|
const s = (C = t.empty) == null ? void 0 : C.call(t, G.value);
|
|
571
570
|
p(s) ? n.push(
|
|
572
571
|
a(
|
|
573
|
-
|
|
572
|
+
nt,
|
|
574
573
|
{
|
|
575
|
-
class:
|
|
574
|
+
class: x(S(F, "empty"), o.props.emptyCls),
|
|
576
575
|
...G.value
|
|
577
576
|
},
|
|
578
577
|
{
|
|
@@ -594,7 +593,7 @@ const me = ["sm", "md", "lg"], mt = ["error", "warning", "success"], [Ie, ft] =
|
|
|
594
593
|
};
|
|
595
594
|
return [
|
|
596
595
|
a(
|
|
597
|
-
|
|
596
|
+
Ct,
|
|
598
597
|
{
|
|
599
598
|
getOptionSlot: k,
|
|
600
599
|
ref: u,
|
|
@@ -623,7 +622,7 @@ const me = ["sm", "md", "lg"], mt = ["error", "warning", "success"], [Ie, ft] =
|
|
|
623
622
|
qe,
|
|
624
623
|
{
|
|
625
624
|
...$.value,
|
|
626
|
-
class:
|
|
625
|
+
class: x(pe(o.props), o.props.popupCls),
|
|
627
626
|
style: {
|
|
628
627
|
display: e.open.value ? void 0 : "none",
|
|
629
628
|
zIndex: o.props.zIndex,
|
|
@@ -632,13 +631,13 @@ const me = ["sm", "md", "lg"], mt = ["error", "warning", "success"], [Ie, ft] =
|
|
|
632
631
|
"--ptc-select-trigger-min-w": X.value
|
|
633
632
|
}
|
|
634
633
|
},
|
|
635
|
-
() => a(
|
|
634
|
+
() => a(pt, j.value, se)
|
|
636
635
|
)
|
|
637
636
|
)
|
|
638
637
|
];
|
|
639
638
|
};
|
|
640
639
|
}
|
|
641
|
-
}),
|
|
640
|
+
}), At = /* @__PURE__ */ te({
|
|
642
641
|
...Te("Select"),
|
|
643
642
|
__name: "Select",
|
|
644
643
|
props: {
|
|
@@ -730,7 +729,6 @@ const me = ["sm", "md", "lg"], mt = ["error", "warning", "success"], [Ie, ft] =
|
|
|
730
729
|
},
|
|
731
730
|
emits: ["change", "select", "update:modelValue", "update:open", "closeAutoFocus", "escapeKeyDown", "pointerDownOutside"],
|
|
732
731
|
setup(m, { emit: t }) {
|
|
733
|
-
ot("select", dt);
|
|
734
732
|
const o = m, e = t, A = Ue(e), u = y(
|
|
735
733
|
() => Je(
|
|
736
734
|
{
|
|
@@ -753,14 +751,14 @@ const me = ["sm", "md", "lg"], mt = ["error", "warning", "success"], [Ie, ft] =
|
|
|
753
751
|
Qe
|
|
754
752
|
)
|
|
755
753
|
), R = De(), q = Fe();
|
|
756
|
-
return
|
|
754
|
+
return ft({
|
|
757
755
|
attrs: q,
|
|
758
756
|
props: o,
|
|
759
757
|
emit: e,
|
|
760
758
|
emitsAsProps: A
|
|
761
|
-
}), (I, H) => (
|
|
759
|
+
}), (I, H) => (xe(), Ae(le(He), Ce(ye(u.value)), {
|
|
762
760
|
default: Se(() => [
|
|
763
|
-
We(le(
|
|
761
|
+
We(le(yt), null, $e({ _: 2 }, [
|
|
764
762
|
Ee(Object.keys(R), (W) => ({
|
|
765
763
|
name: W,
|
|
766
764
|
fn: Se(($) => [
|
|
@@ -775,10 +773,10 @@ const me = ["sm", "md", "lg"], mt = ["error", "warning", "success"], [Ie, ft] =
|
|
|
775
773
|
});
|
|
776
774
|
export {
|
|
777
775
|
ue as S,
|
|
778
|
-
|
|
779
|
-
|
|
776
|
+
At as _,
|
|
777
|
+
vt as a,
|
|
780
778
|
me as b,
|
|
781
|
-
|
|
779
|
+
gt as c,
|
|
782
780
|
Ie as i,
|
|
783
|
-
|
|
781
|
+
dt as p
|
|
784
782
|
};
|
package/dist/Shortcut/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Shortcut.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Shortcut.vue_vue_type_style_index_0_lang-TFcjdHpb.js");exports.Shortcut=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { defineComponent as c, createElementBlock as t, openBlock as r, normalizeClass as i, unref as o, Fragment as s, renderList as u, createVNode as f, createBlock as _, createCommentVNode as d, mergeProps as g } from "vue";
|
|
2
|
+
import { getBemBlock as h, normCls as B } from "@pantograph/utils";
|
|
3
|
+
import { getComponentOptions as k } from "@pantograph/utils-vue";
|
|
4
|
+
import { _ as C } from "./Kbd.vue_vue_type_style_index_0_lang-D1FVFk72.js";
|
|
5
|
+
import { _ as y } from "./Icon.vue_vue_type_style_index_0_lang-LLvjBJx0.js";
|
|
6
|
+
const v = /* @__PURE__ */ c({
|
|
7
|
+
...k("Shortcut"),
|
|
8
|
+
__name: "Shortcut",
|
|
9
|
+
props: {
|
|
10
|
+
class: {},
|
|
11
|
+
items: {},
|
|
12
|
+
plus: { type: Boolean, default: !0 }
|
|
13
|
+
},
|
|
14
|
+
setup(n) {
|
|
15
|
+
const m = n, l = h("shortcut");
|
|
16
|
+
return (e, z) => (r(), t("div", {
|
|
17
|
+
class: i(o(B)(o(l), m.class))
|
|
18
|
+
}, [
|
|
19
|
+
(r(!0), t(s, null, u(e.items, (a, p) => (r(), t(s, null, [
|
|
20
|
+
f(o(C), g({ ref_for: !0 }, a), null, 16),
|
|
21
|
+
e.items.length > 1 && p < e.items.length - 1 && e.plus ? (r(), _(y, {
|
|
22
|
+
key: 0,
|
|
23
|
+
icon: "tabler:plus",
|
|
24
|
+
size: "3xsm"
|
|
25
|
+
})) : d("", !0)
|
|
26
|
+
], 64))), 256))
|
|
27
|
+
], 2));
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
v as _
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),n=require("@pantograph/utils"),u=require("@pantograph/utils-vue"),i=require("./Kbd.vue_vue_type_style_index_0_lang-BCfWLm9R.js"),a=require("./Icon.vue_vue_type_style_index_0_lang-CMFYMG-2.js"),m=e.defineComponent({...u.getComponentOptions("Shortcut"),__name:"Shortcut",props:{class:{},items:{},plus:{type:Boolean,default:!0}},setup(r){const s=r,o=n.getBemBlock("shortcut");return(t,_)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(n.normCls)(e.unref(o),s.class))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(l,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(i._sfc_main),e.mergeProps({ref_for:!0},l),null,16),t.items.length>1&&c<t.items.length-1&&t.plus?(e.openBlock(),e.createBlock(a._sfc_main,{key:0,icon:"tabler:plus",size:"3xsm"})):e.createCommentVNode("",!0)],64))),256))],2))}});exports._sfc_main=m;
|
package/dist/Skeleton/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Skeleton.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Skeleton.vue_vue_type_style_index_0_lang-W1OLEfkY.js");exports.Skeleton=e._sfc_main;exports.SkeletonSizes=e.SkeletonSizes;exports.SkeletonTypes=e.SkeletonTypes;exports.default=e._sfc_main;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getBemBlock as
|
|
3
|
-
import { cva as
|
|
4
|
-
import { getComponentOptions as
|
|
5
|
-
|
|
6
|
-
const x = [
|
|
1
|
+
import { defineComponent as d, computed as f, createElementBlock as a, openBlock as n, normalizeClass as r, unref as s, createCommentVNode as C, Fragment as v, renderList as g } from "vue";
|
|
2
|
+
import { getBemBlock as k, generateVariantClassList as o, normCls as i, getBemElement as y } from "@pantograph/utils";
|
|
3
|
+
import { cva as h } from "class-variance-authority";
|
|
4
|
+
import { getComponentOptions as B } from "@pantograph/utils-vue";
|
|
5
|
+
const S = [
|
|
7
6
|
"avatar",
|
|
8
7
|
"input",
|
|
9
8
|
"button",
|
|
@@ -13,8 +12,8 @@ const x = [
|
|
|
13
12
|
"base",
|
|
14
13
|
"custom",
|
|
15
14
|
"custom-items"
|
|
16
|
-
],
|
|
17
|
-
...
|
|
15
|
+
], _ = ["2xsm", "sm", "md", "lg"], V = /* @__PURE__ */ d({
|
|
16
|
+
...B("Skeleton"),
|
|
18
17
|
__name: "Skeleton",
|
|
19
18
|
props: {
|
|
20
19
|
type: { default: "base" },
|
|
@@ -25,14 +24,13 @@ const x = [
|
|
|
25
24
|
itemsCount: {}
|
|
26
25
|
},
|
|
27
26
|
setup(m) {
|
|
28
|
-
|
|
29
|
-
const t = g("skeleton"), e = m, l = S(t, {
|
|
27
|
+
const t = k("skeleton"), e = m, l = h(t, {
|
|
30
28
|
variants: {
|
|
31
29
|
inactive: o("inactive", t),
|
|
32
|
-
size: o(
|
|
33
|
-
type: o(
|
|
30
|
+
size: o(_, t),
|
|
31
|
+
type: o(S, t)
|
|
34
32
|
}
|
|
35
|
-
}), c =
|
|
33
|
+
}), c = f(() => {
|
|
36
34
|
if (e.type === "custom-items" && e.itemsCount) return e.itemsCount;
|
|
37
35
|
switch (e.type) {
|
|
38
36
|
case "paragraph":
|
|
@@ -43,10 +41,10 @@ const x = [
|
|
|
43
41
|
return 0;
|
|
44
42
|
}
|
|
45
43
|
});
|
|
46
|
-
return (p,
|
|
44
|
+
return (p, z) => (n(), a("div", {
|
|
47
45
|
class: r(s(i)(s(l)(e), e.class))
|
|
48
46
|
}, [
|
|
49
|
-
["paragraph", "list", "custom-items"].includes(p.type) ? (
|
|
47
|
+
["paragraph", "list", "custom-items"].includes(p.type) ? (n(!0), a(v, { key: 0 }, g(c.value, (u) => (n(), a("div", {
|
|
50
48
|
class: r(s(i)(s(y)(s(t), "item"), e.itemCls)),
|
|
51
49
|
key: u
|
|
52
50
|
}, null, 2))), 128)) : C("", !0)
|
|
@@ -54,7 +52,7 @@ const x = [
|
|
|
54
52
|
}
|
|
55
53
|
});
|
|
56
54
|
export {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
S,
|
|
56
|
+
V as _,
|
|
57
|
+
_ as a
|
|
60
58
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),s=require("@pantograph/utils"),m=require("class-variance-authority"),p=require("@pantograph/utils-vue"),a=["avatar","input","button","paragraph","headline","list","base","custom","custom-items"],r=["2xsm","sm","md","lg"],C=e.defineComponent({...p.getComponentOptions("Skeleton"),__name:"Skeleton",props:{type:{default:"base"},size:{default:"md"},inactive:{type:Boolean,default:!1},class:{},itemCls:{},itemsCount:{}},setup(i){const n=s.getBemBlock("skeleton"),t=i,o=m.cva(n,{variants:{inactive:s.generateVariantClassList("inactive",n),size:s.generateVariantClassList(r,n),type:s.generateVariantClassList(a,n)}}),l=e.computed(()=>{if(t.type==="custom-items"&&t.itemsCount)return t.itemsCount;switch(t.type){case"paragraph":return 4;case"list":return 2;default:return 0}});return(c,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(s.normCls)(e.unref(o)(t),t.class))},[["paragraph","list","custom-items"].includes(c.type)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.value,u=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(s.normCls)(e.unref(s.getBemElement)(e.unref(n),"item"),t.itemCls)),key:u},null,2))),128)):e.createCommentVNode("",!0)],2))}});exports.SkeletonSizes=r;exports.SkeletonTypes=a;exports._sfc_main=C;
|
package/dist/Spinner/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Spinner.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Spinner.vue_vue_type_style_index_0_lang-k30PU_tO.js");exports.Spinner=e._sfc_main;exports.SpinnerSizes=e.SpinnerSizes;exports.default=e._sfc_main;
|