@pantograph/vue 0.25.8 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ActionButton/ActionButton.d.ts +20 -12
- package/dist/ActionButton/index.js +1 -1
- package/dist/ActionButton/index.umd.cjs +1 -1
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-CCV0cEjJ.js +1 -0
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-DcyIRPRG.js +69 -0
- package/dist/Alert/index.js +1 -1
- package/dist/Alert/index.umd.cjs +1 -1
- package/dist/Alert.vue_vue_type_script_setup_true_lang-4NcndwYt.js +1 -0
- package/dist/Alert.vue_vue_type_script_setup_true_lang-B3d8P77F.js +128 -0
- package/dist/Avatar/index.js +1 -1
- package/dist/Avatar/index.umd.cjs +1 -1
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-560JMJs8.js → Avatar.vue_vue_type_script_setup_true_lang-B_MhEGg3.js} +58 -51
- package/dist/Avatar.vue_vue_type_script_setup_true_lang-CCjfTTXn.js +1 -0
- package/dist/AvatarGroup/AvatarGroup.d.ts +3 -3
- 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-Kd8vLJ1r.js → Badge.vue_vue_type_script_setup_true_lang-B9bri5or.js} +20 -15
- package/dist/Badge.vue_vue_type_script_setup_true_lang-CNAZiqff.js +1 -0
- package/dist/Base/BaseButton/BaseButton.d.ts +2 -0
- package/dist/Base/BaseInput/BaseInput.d.ts +1 -1
- package/dist/{BaseBadge.model-D4ZfMIfM.js → BaseBadge.model-CahZXsyM.js} +2 -2
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-no7MMMcb.js → BaseBadge.vue_vue_type_script_setup_true_lang-BEAMOqfY.js} +27 -21
- package/dist/BaseBadge.vue_vue_type_script_setup_true_lang-DPNTPAXQ.js +1 -0
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-gx7pLyR8.js → BaseButton.vue_vue_type_script_setup_true_lang-BOEHDNrA.js} +53 -47
- package/dist/BaseButton.vue_vue_type_script_setup_true_lang-CfvlGfAR.js +1 -0
- package/dist/BaseInput.vue_vue_type_script_setup_true_lang-Co4deofh.js +141 -0
- package/dist/BaseInput.vue_vue_type_script_setup_true_lang-DkzD7d2O.js +1 -0
- package/dist/Button/Button.d.ts +29 -21
- package/dist/Button/index.js +1 -1
- package/dist/Button/index.umd.cjs +1 -1
- package/dist/Button.vue_vue_type_script_setup_true_lang-H1KQzfTW.js +1 -0
- package/dist/Button.vue_vue_type_script_setup_true_lang-b801s6x6.js +72 -0
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup.vue_vue_type_script_setup_true_lang-DPtJY6ad.js → ButtonGroup.vue_vue_type_script_setup_true_lang-BWfa7L2L.js} +4 -4
- package/dist/Checkbox/Checkbox.d.ts +1 -0
- package/dist/Checkbox/index.js +1 -1
- package/dist/Checkbox/index.umd.cjs +1 -1
- package/dist/Checkbox.vue_vue_type_script_setup_true_lang-Bq7H8Hmk.js +1 -0
- package/dist/Checkbox.vue_vue_type_script_setup_true_lang-CgvdLwu5.js +226 -0
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +4 -4
- package/dist/CheckboxGroup/index.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- package/dist/Chip/Chip.d.ts +1 -1
- package/dist/Chip/index.js +4 -5
- package/dist/Chip/index.umd.cjs +1 -1
- package/dist/Chip.vue_vue_type_script_setup_true_lang-Bact--QN.js +1 -0
- package/dist/Chip.vue_vue_type_script_setup_true_lang-BfaS9elh.js +198 -0
- package/dist/ChipGroup/ChipGroup.d.ts +3 -4
- package/dist/ChipGroup/index.js +1 -1
- package/dist/ChipGroup/index.umd.cjs +1 -1
- package/dist/ColorPicker/ColorPicker.d.ts +1 -0
- package/dist/ColorPicker/index.js +1 -1
- package/dist/ColorPicker/index.umd.cjs +1 -1
- package/dist/ColorPicker.vue_vue_type_script_setup_true_lang-7MtJ5jis.js +4 -0
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-DL_ZJmhv.js → ColorPicker.vue_vue_type_script_setup_true_lang-CKpEjVT4.js} +765 -763
- package/dist/ColorSwatch/ColorSwatch.d.ts +2 -0
- package/dist/ColorSwatch/index.js +1 -1
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/ColorSwatch-DTpfqDKv.js +1 -0
- package/dist/ColorSwatch-DWwR0ENY.js +4 -0
- package/dist/ColorSwatch.vue_vue_type_script_setup_true_lang-BOMHgBU8.js +1 -0
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-C4Kg1zF7.js → ColorSwatch.vue_vue_type_script_setup_true_lang-ChPF6zW_.js} +38 -29
- package/dist/ColorSwatchGroup/ColorSwatchGroup.d.ts +3 -1
- package/dist/ColorSwatchGroup/index.js +1 -1
- package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
- package/dist/ColorSwatchGroup.vue_vue_type_script_setup_true_lang-BY1ynbN8.js +176 -0
- package/dist/ColorSwatchGroup.vue_vue_type_script_setup_true_lang-CIUtgzTs.js +1 -0
- package/dist/ColorTrigger/ColorTrigger.d.ts +1 -0
- package/dist/ColorTrigger/index.js +1 -1
- package/dist/ColorTrigger/index.umd.cjs +1 -1
- package/dist/ColorTrigger.vue_vue_type_script_setup_true_lang-D8K8ECOf.js +94 -0
- package/dist/ColorTrigger.vue_vue_type_script_setup_true_lang-DZlk0Qqv.js +1 -0
- package/dist/Combobox/Combobox.d.ts +909 -29
- package/dist/Combobox/ComboboxInput.d.ts +20 -1
- package/dist/Combobox/ComboboxLabel.d.ts +3 -15
- package/dist/Combobox/ComboboxOption.d.ts +4 -17
- package/dist/Combobox/ComboboxTrigger.d.ts +1 -3
- package/dist/Combobox/context.d.ts +22 -25
- package/dist/Combobox/index.js +1 -1
- package/dist/Combobox/index.umd.cjs +1 -1
- package/dist/Combobox/types.d.ts +72 -49
- package/dist/Combobox.vue_vue_type_script_setup_true_lang-CWb0Rxdo.js +1123 -0
- package/dist/Combobox.vue_vue_type_script_setup_true_lang-Ds71BFeT.js +1 -0
- package/dist/Comment/Comment.d.ts +1 -1
- package/dist/Comment/CommentActions.d.ts +58 -44
- package/dist/Comment/CommentEditor.d.ts +248 -215
- package/dist/Comment/CommentMention.d.ts +1 -1
- package/dist/Comment/CommentReaction.d.ts +1 -1
- package/dist/Comment/CommentReactions.d.ts +29 -22
- package/dist/Comment/index.js +326 -333
- package/dist/Comment/index.umd.cjs +1 -1
- package/dist/ConfigProvider/index.js +1 -1
- package/dist/{ConfigProvider.vue_vue_type_script_setup_true_lang-D8R0hBKt.js → ConfigProvider.vue_vue_type_script_setup_true_lang-DiuPi_DT.js} +1 -1
- package/dist/DataTable/index.js +1 -1
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/DataTable.vue_vue_type_script_setup_true_lang-CkZYd-iy.js +1 -0
- package/dist/{DataTable.vue_vue_type_style_index_0_lang-a06ynWLy.js → DataTable.vue_vue_type_script_setup_true_lang-koEhCeSV.js} +81 -75
- package/dist/Divider/index.js +1 -1
- package/dist/Divider/index.umd.cjs +1 -1
- package/dist/Divider.vue_vue_type_script_setup_true_lang-Bs3xi5Tz.js +1 -0
- package/dist/Divider.vue_vue_type_script_setup_true_lang-BxSyJj4Y.js +43 -0
- package/dist/DropZone/DropZone.d.ts +1 -0
- package/dist/DropZone/index.js +1 -1
- package/dist/DropZone/index.umd.cjs +1 -1
- package/dist/DropZone.vue_vue_type_script_setup_true_lang-DbviIH2J.js +131 -0
- package/dist/DropZone.vue_vue_type_script_setup_true_lang-Dr3W1Vf6.js +1 -0
- 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-C1kPtilP.js → Empty.vue_vue_type_script_setup_true_lang-Bll3iUYH.js} +41 -35
- package/dist/Empty.vue_vue_type_script_setup_true_lang-Cw-L4cfY.js +1 -0
- package/dist/FloatButton/FloatButton.d.ts +28 -20
- package/dist/FloatButton/index.js +1 -1
- package/dist/FloatButton/index.umd.cjs +1 -1
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-CpeEeXF5.js +67 -0
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-_N0_n9cC.js +1 -0
- package/dist/Form/Form.d.ts +35 -29
- package/dist/Form/FormItem.d.ts +14 -3
- package/dist/Form/index.js +1 -1
- package/dist/Form/index.umd.cjs +1 -1
- package/dist/FormValidation/FormValidation.d.ts +1 -1
- package/dist/GOPicker/GOPicker.d.ts +44 -43
- package/dist/GOPicker/index.js +1 -1
- package/dist/GOPicker/index.umd.cjs +1 -1
- package/dist/GOPicker.vue_vue_type_script_setup_true_lang-5XEIQyAw.js +1 -0
- package/dist/{GOPicker.vue_vue_type_style_index_0_lang-CR7s37Os.js → GOPicker.vue_vue_type_script_setup_true_lang-BEVq_AiC.js} +160 -161
- 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-CpstWkLR.js → GraphicalObject.vue_vue_type_script_setup_true_lang-D0_HCJjo.js} +9 -9
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-okC2eyl7.js +1 -0
- package/dist/GraphicalObjectGroup/GraphicalObjectGroup.d.ts +2 -2
- package/dist/GraphicalObjectGroup/index.js +1 -1
- package/dist/GraphicalObjectGroup/index.umd.cjs +1 -1
- package/dist/GraphicalObjectGroup.vue_vue_type_script_setup_true_lang-BmFUF6Kt.js +1 -0
- package/dist/GraphicalObjectGroup.vue_vue_type_script_setup_true_lang-DN_eN1aV.js +68 -0
- package/dist/HoverCard/HoverCard.d.ts +42 -0
- package/dist/HoverCard/index.d.ts +2 -0
- package/dist/HoverCard/index.js +8 -0
- package/dist/HoverCard/index.umd.cjs +1 -0
- package/dist/HoverCard.vue_vue_type_script_setup_true_lang-BABPj0Qr.js +100 -0
- package/dist/HoverCard.vue_vue_type_script_setup_true_lang-KbXPPPlZ.js +1 -0
- package/dist/Icon/Icon.d.ts +18 -1
- package/dist/Icon/index.js +1 -1
- package/dist/Icon/index.umd.cjs +1 -1
- package/dist/Icon.vue_vue_type_script_setup_true_lang-CXwAf04H.js +9 -0
- package/dist/Icon.vue_vue_type_script_setup_true_lang-X8iOewkh.js +2839 -0
- package/dist/IconButton/IconButton.d.ts +27 -21
- package/dist/IconButton/index.js +1 -1
- package/dist/IconButton/index.umd.cjs +1 -1
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-ByYlU8Jk.js +66 -0
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-DnxEc7O6.js +1 -0
- 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-D8BJOCro.js → Image.vue_vue_type_script_setup_true_lang-B6TIsMzF.js} +45 -40
- package/dist/Image.vue_vue_type_script_setup_true_lang-C1wUq_TX.js +1 -0
- package/dist/IndentLevel/IndentLevel.d.ts +1 -1
- package/dist/IndentLevel/index.js +1 -1
- package/dist/IndentLevel/index.umd.cjs +1 -1
- package/dist/IndentLevel.vue_vue_type_script_setup_true_lang-B9koS5pw.js +1 -0
- package/dist/IndentLevel.vue_vue_type_script_setup_true_lang-DVDr7sdq.js +105 -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-C6C6qnFI.js → Indicator.vue_vue_type_script_setup_true_lang-Dqxgfs9Z.js} +6 -6
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-L2FYpwoZ.js +1 -0
- package/dist/Input/index.js +2 -2
- package/dist/Input/index.umd.cjs +1 -1
- package/dist/Input.vue_vue_type_script_setup_true_lang-BvWIuBEn.js +1 -0
- package/dist/{Input.vue_vue_type_script_setup_true_lang-Dtkw6-JD.js → Input.vue_vue_type_script_setup_true_lang-Cvw1sc65.js} +31 -26
- package/dist/InputNumber/index.js +2 -2
- package/dist/InputNumber/index.umd.cjs +1 -1
- package/dist/{InputNumber.vue_vue_type_script_setup_true_lang-mEje-O-q.js → InputNumber.vue_vue_type_script_setup_true_lang-BppO9sap.js} +20 -15
- package/dist/InputNumber.vue_vue_type_script_setup_true_lang-ClnvvnEa.js +1 -0
- package/dist/Kbd/index.js +1 -1
- package/dist/Kbd/index.umd.cjs +1 -1
- package/dist/Kbd.vue_vue_type_script_setup_true_lang-B4Zx_Cz7.js +1 -0
- package/dist/Kbd.vue_vue_type_script_setup_true_lang-DDQm9-8J.js +53 -0
- package/dist/Label/index.js +1 -1
- package/dist/Label/index.umd.cjs +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/Link/index.umd.cjs +1 -1
- package/dist/Link.vue_vue_type_script_setup_true_lang-DJosUIxn.js +1 -0
- package/dist/{Link.vue_vue_type_style_index_0_lang-DgvyW7Rs.js → Link.vue_vue_type_script_setup_true_lang-wnKyVT8F.js} +26 -20
- package/dist/Menu/Menu.d.ts +5 -3
- package/dist/Menu/index.js +1 -1
- package/dist/Menu/index.umd.cjs +1 -1
- package/dist/MenuItem/MenuItem.d.ts +5 -5
- package/dist/MenuItem/MenuItemContent.d.ts +16 -10
- package/dist/MenuItem/index.js +1 -1
- package/dist/MenuItem/index.umd.cjs +1 -1
- package/dist/MenuItem.vue_vue_type_script_setup_true_lang-3xnbhfN0.js +616 -0
- package/dist/MenuItem.vue_vue_type_script_setup_true_lang-Dz7WhsTd.js +1 -0
- package/dist/Pagination/Pagination.d.ts +3 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/Pagination/index.umd.cjs +1 -1
- package/dist/Pagination.vue_vue_type_script_setup_true_lang-C5AKq1DW.js +1 -0
- package/dist/Pagination.vue_vue_type_script_setup_true_lang-_FCEaPIU.js +247 -0
- package/dist/Popover/Popover.d.ts +8 -231
- package/dist/Popover/Popover.model.d.ts +1 -1
- package/dist/Popover/index.d.ts +2 -1
- package/dist/Popover/index.js +1 -1
- package/dist/Popover/index.umd.cjs +1 -1
- package/dist/Popover/type.d.ts +27 -0
- package/dist/Popover/utils.d.ts +48 -4
- package/dist/Popover.vue_vue_type_script_setup_true_lang-1pdG_U1y.js +281 -0
- package/dist/Popover.vue_vue_type_script_setup_true_lang-DZu6h5sn.js +1 -0
- package/dist/Progress/index.js +1 -1
- package/dist/Progress/index.umd.cjs +1 -1
- package/dist/{Progress.vue_vue_type_style_index_0_lang-BXhIqXDx.js → Progress.vue_vue_type_script_setup_true_lang-BvwWC_7K.js} +102 -96
- package/dist/Progress.vue_vue_type_script_setup_true_lang-Cwyk5uVB.js +1 -0
- package/dist/RadioGroup/RadioGroup.d.ts +7 -1
- package/dist/RadioGroup/RadioGroupItem.d.ts +1 -1
- package/dist/RadioGroup/index.js +1 -1
- package/dist/RadioGroup/index.umd.cjs +1 -1
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-BADpfqTO.js +110 -0
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-BLfj2wLT.js +1 -0
- package/dist/ScrollContainer/ScrollContainer.d.ts +13 -17
- package/dist/ScrollContainer/index.js +1 -1
- package/dist/ScrollContainer/index.umd.cjs +1 -1
- package/dist/{ScrollContainer.vue_vue_type_style_index_0_lang-Dl1jP8xY.js → ScrollContainer.vue_vue_type_script_setup_true_lang-BmQrQlax.js} +39 -36
- package/dist/ScrollContainer.vue_vue_type_script_setup_true_lang-WN0vUSFg.js +1 -0
- package/dist/Segmented/Segmented.d.ts +4 -2
- package/dist/Segmented/index.js +1 -1
- package/dist/Segmented/index.umd.cjs +1 -1
- package/dist/Segmented.vue_vue_type_script_setup_true_lang-CCtmPmga.js +1 -0
- package/dist/Segmented.vue_vue_type_script_setup_true_lang-h3fMBqbf.js +171 -0
- package/dist/Select/Select.d.ts +7 -3
- package/dist/Select/index.js +1 -1
- package/dist/Select/index.umd.cjs +1 -1
- package/dist/Select/types.d.ts +6 -5
- package/dist/Select.vue_vue_type_script_setup_true_lang-CjWKTWNp.js +1 -0
- package/dist/Select.vue_vue_type_script_setup_true_lang-DCf6t4T7.js +786 -0
- package/dist/Shortcut/index.js +1 -1
- package/dist/Shortcut/index.umd.cjs +1 -1
- package/dist/Shortcut.vue_vue_type_script_setup_true_lang-CZV3jJ5z.js +1 -0
- package/dist/Shortcut.vue_vue_type_script_setup_true_lang-LxDK1tVp.js +38 -0
- package/dist/Skeleton/index.js +1 -1
- package/dist/Skeleton/index.umd.cjs +1 -1
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-BscqKi2O.js +65 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DBb6fA3l.js +1 -0
- 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-NYJmdFpB.js → Spinner.vue_vue_type_script_setup_true_lang-C13qk_bV.js} +33 -27
- package/dist/Spinner.vue_vue_type_script_setup_true_lang-SdSGAS1h.js +1 -0
- package/dist/SubMenu/SubMenu.d.ts +2 -2
- package/dist/SubMenu/index.js +1 -1
- package/dist/SubMenu/index.umd.cjs +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/Switch/index.umd.cjs +1 -1
- package/dist/Switch.vue_vue_type_script_setup_true_lang-BX5MeukB.js +1 -0
- package/dist/{Switch.vue_vue_type_style_index_0_lang-B6Pt3aij.js → Switch.vue_vue_type_script_setup_true_lang-BY7LV3wY.js} +41 -37
- package/dist/THead.vue_vue_type_script_setup_true_lang-BZMNoSJC.js +1 -0
- package/dist/THead.vue_vue_type_script_setup_true_lang-BbIs0XD7.js +214 -0
- package/dist/TabContent.vue_vue_type_script_setup_true_lang-C2BdEFBQ.js +1 -0
- package/dist/TabContent.vue_vue_type_script_setup_true_lang-CPqtXohJ.js +379 -0
- package/dist/Table/index.js +1 -1
- package/dist/Table/index.umd.cjs +1 -1
- package/dist/Tabs/TabContent.d.ts +18 -0
- package/dist/Tabs/TabList.d.ts +302 -0
- package/dist/Tabs/TabTrigger.d.ts +41 -0
- package/dist/Tabs/Tabs.d.ts +53 -0
- package/dist/Tabs/index.d.ts +5 -1
- package/dist/Tabs/index.js +11 -1
- package/dist/Tabs/index.umd.cjs +1 -1
- package/dist/Textarea/Textarea.d.ts +32 -36
- package/dist/Textarea/index.js +1 -1
- package/dist/Textarea/index.umd.cjs +1 -1
- package/dist/Textarea.vue_vue_type_script_setup_true_lang-DXSk1XyT.js +1 -0
- package/dist/{Textarea.vue_vue_type_style_index_0_lang-CgC3wstw.js → Textarea.vue_vue_type_script_setup_true_lang-I3h9Qx60.js} +28 -25
- package/dist/Tree/Tree.d.ts +34 -5
- package/dist/Tree/Tree.model.d.ts +34 -13
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/index.umd.cjs +1 -1
- package/dist/Tree/utils.d.ts +29 -13
- package/dist/Tree.vue_vue_type_script_setup_true_lang-BExNSikU.js +1 -0
- package/dist/Tree.vue_vue_type_script_setup_true_lang-Drf23Cl_.js +726 -0
- package/dist/Upload/Upload.d.ts +2 -1
- package/dist/Upload/UploadListItem.d.ts +1 -1
- package/dist/Upload/UploadTrigger.d.ts +5 -3
- package/dist/Upload/index.js +1 -1
- package/dist/Upload/index.umd.cjs +1 -1
- package/dist/Upload/types.d.ts +2 -2
- package/dist/Upload/utils/extension.d.ts +1 -1
- package/dist/Upload/utils/transformFile.d.ts +1 -1
- package/dist/Upload.vue_vue_type_script_setup_true_lang-BeuZtxvi.js +1 -0
- package/dist/Upload.vue_vue_type_script_setup_true_lang-D1qk3zuI.js +1027 -0
- package/dist/bodyLock-DBGsJvTg.js +14 -0
- package/dist/bodyLock-DM_fELbd.js +1 -0
- package/dist/collection-BFrS9-RP.js +1 -0
- package/dist/collection-DUgtxIW2.js +70 -0
- package/dist/exports.d.ts +1 -6
- package/dist/index.d.ts +1 -0
- package/dist/index.js +268 -249
- package/dist/index.umd.cjs +1 -1
- package/dist/isEmpty-BKZMdy8h.js +1 -0
- package/dist/isEmpty-Cqj4i6ou.js +40 -0
- package/dist/{options-Bh1s18jm.js → options-J8HfRMSU.js} +2 -2
- package/dist/style/index.css +1 -1
- package/dist/useInputDataStates-B2KtpFr0.js +1 -0
- package/dist/useInputDataStates-Db6zJZ1T.js +50 -0
- package/dist/useVirtualScroll-3vEZzPrF.js +1 -0
- package/dist/useVirtualScroll-CXkmR_v2.js +32 -0
- package/dist/useVmodel-BU5qtyne.js +1 -0
- package/dist/useVmodel-DlyNieM5.js +52 -0
- package/dist/utils/bodyLock.d.ts +2 -0
- package/dist/utils/collection.d.ts +32 -0
- package/dist/utils/index.d.ts +10 -5
- package/dist/utils/index.js +33 -13
- package/dist/utils/index.umd.cjs +1 -1
- package/dist/utils/style.d.ts +1 -0
- package/dist/utils/useInputDataStates.d.ts +1 -1
- package/dist/utils/useVirtualScroll.d.ts +23 -0
- package/dist/utils/useVmodel.d.ts +69 -0
- package/package.json +12 -6
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-BOiXNbKw.js +0 -1
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-DBykKGHQ.js +0 -56
- package/dist/Alert.vue_vue_type_style_index_0_lang-B1JrRGlL.js +0 -123
- package/dist/Alert.vue_vue_type_style_index_0_lang-iIyhPLmR.js +0 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-B2n3kzDz.js +0 -1
- package/dist/Badge.vue_vue_type_script_setup_true_lang-Btr5ZeJl.js +0 -1
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-tjWWO1Eb.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-DyR-qPkq.js +0 -1
- package/dist/BaseInput.vue_vue_type_style_index_0_lang-BOCVi3J8.js +0 -1
- package/dist/BaseInput.vue_vue_type_style_index_0_lang-CZMdvNIt.js +0 -133
- package/dist/Button.vue_vue_type_script_setup_true_lang-CKt4CFcG.js +0 -1
- package/dist/Button.vue_vue_type_script_setup_true_lang-iY6wC5I7.js +0 -53
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-Q8nvY8Va.js +0 -223
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-srZfoj7r.js +0 -1
- package/dist/Chip.vue_vue_type_style_index_0_lang-BjBptRQ-.js +0 -1
- package/dist/Chip.vue_vue_type_style_index_0_lang-DZpyBQK1.js +0 -123
- package/dist/ChipGroup.vue_vue_type_style_index_0_lang-CeTQpuIw.js +0 -77
- package/dist/ChipGroup.vue_vue_type_style_index_0_lang-D3YTcBs3.js +0 -1
- package/dist/ColorPicker.vue_vue_type_style_index_0_lang-Bn5JW2Gt.js +0 -4
- package/dist/ColorSwatch-BMQgaieC.js +0 -1
- package/dist/ColorSwatch-BmsX5hTJ.js +0 -4
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-DcE8KBJ4.js +0 -1
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-DcQU4Avw.js +0 -1
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-baZQlRfW.js +0 -157
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-9NjMxcKG.js +0 -1
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-D7z5WQlE.js +0 -90
- package/dist/Combobox/ComboboxWrapper.d.ts +0 -4
- package/dist/Combobox.vue_vue_type_style_index_0_lang-B--dMsNn.js +0 -1
- package/dist/Combobox.vue_vue_type_style_index_0_lang-CzVJFdEg.js +0 -951
- package/dist/DataTable.vue_vue_type_style_index_0_lang-DNX8ray0.js +0 -1
- package/dist/Divider.vue_vue_type_style_index_0_lang-B1VnMpBg.js +0 -1
- package/dist/Divider.vue_vue_type_style_index_0_lang-CfBklijs.js +0 -36
- package/dist/DropZone.vue_vue_type_style_index_0_lang-B2XNdFr7.js +0 -1
- package/dist/DropZone.vue_vue_type_style_index_0_lang-Dq0K__t6.js +0 -124
- package/dist/Empty.vue_vue_type_style_index_0_lang-BkLWzc14.js +0 -1
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-CxSElBbb.js +0 -1
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-sIUaExTM.js +0 -58
- package/dist/GOPicker.vue_vue_type_style_index_0_lang-rSEkCO3H.js +0 -1
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-WjnCG0pe.js +0 -1
- package/dist/GraphicalObjectGroup.vue_vue_type_style_index_0_lang-BXpVeN5_.js +0 -62
- package/dist/GraphicalObjectGroup.vue_vue_type_style_index_0_lang-i6Leg2rQ.js +0 -1
- package/dist/Icon.vue_vue_type_style_index_0_lang-DkeXz23k.js +0 -2908
- package/dist/Icon.vue_vue_type_style_index_0_lang-DyeL9Lem.js +0 -9
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-Bz66rcDQ.js +0 -1
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-CudH1Czj.js +0 -58
- package/dist/Image.vue_vue_type_style_index_0_lang-D7buZGTj.js +0 -1
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-DkVpxqkS.js +0 -99
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-iaGGd8NQ.js +0 -1
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-BTt9LTh1.js +0 -1
- package/dist/Input.vue_vue_type_script_setup_true_lang-Dws8FarS.js +0 -1
- package/dist/InputNumber.vue_vue_type_script_setup_true_lang-Cr4YLP4W.js +0 -1
- package/dist/Kbd.vue_vue_type_style_index_0_lang-BFlrS9Oh.js +0 -1
- package/dist/Kbd.vue_vue_type_style_index_0_lang-VXCAjXze.js +0 -47
- package/dist/Link.vue_vue_type_style_index_0_lang-BRLBWpij.js +0 -1
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-AhI5J805.js +0 -1
- package/dist/MenuItem.vue_vue_type_style_index_0_lang-BSbQKPOJ.js +0 -586
- package/dist/Pagination.vue_vue_type_style_index_0_lang-6HV2JmdQ.js +0 -1
- package/dist/Pagination.vue_vue_type_style_index_0_lang-FoV1-lO_.js +0 -235
- package/dist/Popover.vue_vue_type_style_index_0_lang-BolWR0Oq.js +0 -254
- package/dist/Popover.vue_vue_type_style_index_0_lang-COPtUT1x.js +0 -1
- package/dist/Progress.vue_vue_type_style_index_0_lang-DNe_dcRZ.js +0 -1
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-D-9WHezS.js +0 -1
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-NO2KpdR5.js +0 -101
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-DKfgCbWJ.js +0 -1
- package/dist/Segmented.vue_vue_type_style_index_0_lang-BKyJdc6h.js +0 -1
- package/dist/Segmented.vue_vue_type_style_index_0_lang-uZeKLoid.js +0 -165
- package/dist/Select.vue_vue_type_style_index_0_lang-DzWX4QRp.js +0 -770
- package/dist/Select.vue_vue_type_style_index_0_lang-i_BSOFzK.js +0 -1
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-2KAzQkhD.js +0 -32
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-e8lB0y-L.js +0 -1
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-2rpO7HY2.js +0 -58
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-vYeWc1nI.js +0 -1
- package/dist/Spinner.vue_vue_type_style_index_0_lang-CKYCbCZQ.js +0 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-BIe63Ak0.js +0 -1
- package/dist/THead.vue_vue_type_style_index_0_lang-CCUQ2E3U.js +0 -1
- package/dist/THead.vue_vue_type_style_index_0_lang-DuCJdfy4.js +0 -200
- package/dist/Textarea.vue_vue_type_style_index_0_lang-BqUWj9j2.js +0 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-BiU1prIp.js +0 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-wxS0iVAQ.js +0 -737
- package/dist/Upload.vue_vue_type_style_index_0_lang-B_fYzNVt.js +0 -1020
- package/dist/Upload.vue_vue_type_style_index_0_lang-BiBzroEH.js +0 -1
- package/dist/style-BEhqkSEE.js +0 -20
- package/dist/style-CYb6EX2Q.js +0 -1
- package/dist/useInputDataStates-BNwXgt9l.js +0 -52
- package/dist/useInputDataStates-CM2GJM3c.js +0 -1
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
import { defineComponent as b, ref as Q, watch as U, computed as
|
|
1
|
+
import { defineComponent as b, ref as Q, watch as U, computed as x, createBlock as k, openBlock as p, unref as n, withCtx as se, createElementVNode as G, createElementBlock as S, createCommentVNode as X, normalizeClass as M, normalizeStyle as q, h as u, Fragment as N, createVNode as B, renderList as Y, useSlots as ne } from "vue";
|
|
2
2
|
import { getBemBlock as oe, getBemElement as m, generateVariantClassList as T, normCls as Z, usePCId as ae } from "@pantograph/utils";
|
|
3
3
|
import { cva as F } from "class-variance-authority";
|
|
4
|
-
import { a as le, g as
|
|
5
|
-
import { createContext as
|
|
6
|
-
import {
|
|
4
|
+
import { a as le, g as ie } from "./BaseBadge.model-CahZXsyM.js";
|
|
5
|
+
import { createContext as ce, Primitive as pe } from "reka-ui";
|
|
6
|
+
import { a as $ } from "./options-J8HfRMSU.js";
|
|
7
|
+
import "@pantograph/tokens";
|
|
7
8
|
import { sortBy as ue } from "es-toolkit";
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import { g as z, e as de, A as me, u as ge, w as fe } from "./Icon.vue_vue_type_script_setup_true_lang-X8iOewkh.js";
|
|
10
|
+
import "@vueuse/core";
|
|
11
|
+
import "@tanstack/vue-virtual";
|
|
12
|
+
import { _ as ve } from "./Divider.vue_vue_type_script_setup_true_lang-BxSyJj4Y.js";
|
|
13
|
+
import { i as _e } from "./isEmpty-Cqj4i6ou.js";
|
|
14
|
+
import { u as he } from "./ConfigProvider.vue_vue_type_script_setup_true_lang-DiuPi_DT.js";
|
|
15
|
+
import ye from "@pantograph/style/progress.css?raw";
|
|
11
16
|
const L = [
|
|
12
17
|
"red",
|
|
13
18
|
"orange",
|
|
@@ -26,7 +31,7 @@ const L = [
|
|
|
26
31
|
"amethyst",
|
|
27
32
|
"fuchsia",
|
|
28
33
|
"mallard"
|
|
29
|
-
],
|
|
34
|
+
], Je = [...L, "primary", ...le], h = oe("progress"), A = m(h, "circle"), V = m(h, "line"), xe = ["2xsm", "xsm", "sm", "md", "lg"], ke = ["progress", "warning", "error", "success"], Pe = ["circle", "line"], [R, Ce] = ce("progress"), Se = ["d", "stroke-width", "stroke-linecap", "stroke"], be = ["from", "to", "dur"], W = /* @__PURE__ */ b({
|
|
30
35
|
...$("ProgressCirclePath"),
|
|
31
36
|
__name: "ProgressCirclePath",
|
|
32
37
|
props: {
|
|
@@ -40,10 +45,10 @@ const L = [
|
|
|
40
45
|
color: {}
|
|
41
46
|
},
|
|
42
47
|
setup(P) {
|
|
43
|
-
const e = P,
|
|
48
|
+
const e = P, c = m(A, "path"), o = F(c, {
|
|
44
49
|
variants: {
|
|
45
|
-
trail: T("trail",
|
|
46
|
-
indeterminate: T("indeterminate",
|
|
50
|
+
trail: T("trail", c),
|
|
51
|
+
indeterminate: T("indeterminate", c)
|
|
47
52
|
}
|
|
48
53
|
}), s = R(), l = Q(0);
|
|
49
54
|
U(
|
|
@@ -60,10 +65,10 @@ const L = [
|
|
|
60
65
|
immediate: !0
|
|
61
66
|
}
|
|
62
67
|
);
|
|
63
|
-
const a =
|
|
68
|
+
const a = x(() => e.circleRadius - e.strokeWidth / 2), y = x(() => {
|
|
64
69
|
const t = e.circleRadius * 2 - e.strokeWidth;
|
|
65
70
|
return `M ${e.circleRadius},${e.circleRadius} m 0,-${a.value} a ${a.value},${a.value} 0 1 1 0,${t} a ${a.value},${a.value} 0 1 1 0,-${t}`;
|
|
66
|
-
}),
|
|
71
|
+
}), v = x(() => {
|
|
67
72
|
const t = 2 * Math.PI * a.value, r = l.value / 100;
|
|
68
73
|
return {
|
|
69
74
|
"stroke-dasharray": e.trail ? void 0 : t,
|
|
@@ -71,21 +76,21 @@ const L = [
|
|
|
71
76
|
"--ptc-progress-animation-duration": s.duration.value
|
|
72
77
|
};
|
|
73
78
|
});
|
|
74
|
-
return (t, r) => (p(),
|
|
79
|
+
return (t, r) => (p(), k(n(pe), {
|
|
75
80
|
as: "g",
|
|
76
81
|
"as-child": !t.indeterminate,
|
|
77
82
|
key: String(t.indeterminate)
|
|
78
83
|
}, {
|
|
79
84
|
default: se(() => [
|
|
80
|
-
|
|
85
|
+
G("path", {
|
|
81
86
|
d: y.value,
|
|
82
87
|
"stroke-width": t.strokeWidth,
|
|
83
88
|
fill: "none",
|
|
84
|
-
style: q(
|
|
89
|
+
style: q(v.value),
|
|
85
90
|
"stroke-linecap": t.strokeLinecap,
|
|
86
91
|
class: M(n(o)({ trail: t.trail, indeterminate: t.indeterminate })),
|
|
87
92
|
stroke: t.color ?? "currentColor"
|
|
88
|
-
}, null, 14,
|
|
93
|
+
}, null, 14, Se),
|
|
89
94
|
t.indeterminate ? (p(), S("animateTransform", {
|
|
90
95
|
key: 0,
|
|
91
96
|
attributeName: "transform",
|
|
@@ -94,7 +99,7 @@ const L = [
|
|
|
94
99
|
to: `360 ${e.circleRadius} ${e.circleRadius}`,
|
|
95
100
|
dur: `${n(s).duration.value || 700}s`,
|
|
96
101
|
repeatCount: "indefinite"
|
|
97
|
-
}, null, 8,
|
|
102
|
+
}, null, 8, be)) : X("", !0)
|
|
98
103
|
]),
|
|
99
104
|
_: 1
|
|
100
105
|
}, 8, ["as-child"]));
|
|
@@ -103,7 +108,7 @@ const L = [
|
|
|
103
108
|
...$("ProgressLabel"),
|
|
104
109
|
__name: "ProgressLabel",
|
|
105
110
|
setup(P) {
|
|
106
|
-
const e = R(),
|
|
111
|
+
const e = R(), c = () => {
|
|
107
112
|
var l, a;
|
|
108
113
|
const o = (a = (l = e.slots).label) == null ? void 0 : a.call(l, {}), s = !z(o);
|
|
109
114
|
return s || e.props.label ? u(
|
|
@@ -112,13 +117,13 @@ const L = [
|
|
|
112
117
|
s ? o : e.props.label
|
|
113
118
|
) : null;
|
|
114
119
|
};
|
|
115
|
-
return (o, s) => (p(),
|
|
120
|
+
return (o, s) => (p(), k(c));
|
|
116
121
|
}
|
|
117
122
|
}), J = /* @__PURE__ */ b({
|
|
118
123
|
...$("ProgressHelperText"),
|
|
119
124
|
__name: "ProgressHelperText",
|
|
120
125
|
setup(P) {
|
|
121
|
-
const e = R(),
|
|
126
|
+
const e = R(), c = () => {
|
|
122
127
|
var l, a;
|
|
123
128
|
const o = (a = (l = e.slots).helperText) == null ? void 0 : a.call(l, {}), s = !z(o);
|
|
124
129
|
return s || e.props.helperText ? u(
|
|
@@ -127,38 +132,38 @@ const L = [
|
|
|
127
132
|
s ? o : e.props.helperText
|
|
128
133
|
) : null;
|
|
129
134
|
};
|
|
130
|
-
return (o, s) => (p(),
|
|
135
|
+
return (o, s) => (p(), k(c));
|
|
131
136
|
}
|
|
132
137
|
}), te = /* @__PURE__ */ b({
|
|
133
138
|
...$("ProgressLegend"),
|
|
134
139
|
__name: "ProgressLegend",
|
|
135
140
|
setup(P) {
|
|
136
|
-
const e = R(),
|
|
141
|
+
const e = R(), c = m(h, "legend"), o = m(c, "item"), s = (r) => u("div", {
|
|
137
142
|
class: m(o, "indicator"),
|
|
138
143
|
style: { background: e.getColor(r.color) }
|
|
139
144
|
}), l = (r) => u("div", { class: m(o, "title") }, r.title), a = (r) => u("div", { class: Z(m(o, "percent"), "en") }, `(${r._percent}%)`), y = (r) => u("div", { class: o }, [
|
|
140
145
|
s(r),
|
|
141
146
|
l(r),
|
|
142
147
|
a(r)
|
|
143
|
-
]),
|
|
148
|
+
]), v = () => {
|
|
144
149
|
var r;
|
|
145
150
|
return (r = e.getSteps.value) == null ? void 0 : r.map((d) => {
|
|
146
151
|
var g, _;
|
|
147
|
-
const
|
|
148
|
-
return z(
|
|
152
|
+
const i = (_ = (g = e.slots).legendItem) == null ? void 0 : _.call(g, d);
|
|
153
|
+
return z(i) ? y(d) : i;
|
|
149
154
|
});
|
|
150
155
|
}, t = () => {
|
|
151
|
-
var
|
|
152
|
-
const r = (g = (
|
|
153
|
-
return d || e.props.legend && ((_ = e.getSteps.value) != null && _.length) ? u("div", { class:
|
|
156
|
+
var i, g, _;
|
|
157
|
+
const r = (g = (i = e.slots).legend) == null ? void 0 : g.call(i, {}), d = !z(r);
|
|
158
|
+
return d || e.props.legend && ((_ = e.getSteps.value) != null && _.length) ? u("div", { class: c }, d ? r : v()) : null;
|
|
154
159
|
};
|
|
155
|
-
return (r, d) => (p(),
|
|
160
|
+
return (r, d) => (p(), k(t));
|
|
156
161
|
}
|
|
157
|
-
}),
|
|
162
|
+
}), $e = { viewBox: "0 0 32 32" }, Ie = /* @__PURE__ */ b({
|
|
158
163
|
...$("ProgressCircle"),
|
|
159
164
|
__name: "ProgressCircle",
|
|
160
165
|
setup(P) {
|
|
161
|
-
const e = R(),
|
|
166
|
+
const e = R(), c = x(() => {
|
|
162
167
|
switch (e.props.size) {
|
|
163
168
|
case "2xsm":
|
|
164
169
|
case "xsm":
|
|
@@ -170,32 +175,32 @@ const L = [
|
|
|
170
175
|
case "lg":
|
|
171
176
|
return "sm";
|
|
172
177
|
}
|
|
173
|
-
}), o = F(
|
|
178
|
+
}), o = F(A, {
|
|
174
179
|
variants: {
|
|
175
|
-
size: T(
|
|
180
|
+
size: T(xe, A)
|
|
176
181
|
}
|
|
177
182
|
}), s = () => {
|
|
178
|
-
var
|
|
179
|
-
const a = (t = (
|
|
183
|
+
var v, t;
|
|
184
|
+
const a = (t = (v = e.slots).icon) == null ? void 0 : t.call(v, {}), y = !z(a);
|
|
180
185
|
if (e.statusIcon.value || y) {
|
|
181
186
|
let r = a;
|
|
182
187
|
return y || (r = u(de, {
|
|
183
188
|
icon: e.statusIcon.value,
|
|
184
|
-
size:
|
|
185
|
-
})), u("div", { class: m(
|
|
189
|
+
size: c.value
|
|
190
|
+
})), u("div", { class: m(A, "content") }, r);
|
|
186
191
|
}
|
|
187
192
|
return null;
|
|
188
|
-
}, l =
|
|
193
|
+
}, l = x(
|
|
189
194
|
() => ue(e.getSteps.value ?? [], ["percent"]).reverse()
|
|
190
195
|
);
|
|
191
196
|
return (a, y) => {
|
|
192
|
-
var
|
|
197
|
+
var v;
|
|
193
198
|
return p(), S(N, null, [
|
|
194
|
-
|
|
199
|
+
G("div", {
|
|
195
200
|
class: M(n(o)(n(e).props))
|
|
196
201
|
}, [
|
|
197
|
-
(p(), S("svg",
|
|
198
|
-
n(e).props.indeterminate ? (p(),
|
|
202
|
+
(p(), S("svg", $e, [
|
|
203
|
+
n(e).props.indeterminate ? (p(), k(W, {
|
|
199
204
|
key: 1,
|
|
200
205
|
indeterminate: "",
|
|
201
206
|
"stroke-linecap": "round",
|
|
@@ -205,12 +210,12 @@ const L = [
|
|
|
205
210
|
"stroke-linecap": n(e).props.strokeLinecap,
|
|
206
211
|
trail: ""
|
|
207
212
|
}, null, 8, ["stroke-linecap"]),
|
|
208
|
-
(
|
|
213
|
+
(v = n(e).getSteps.value) != null && v.length ? (p(!0), S(N, { key: 0 }, Y(l.value, (t) => (p(), k(W, {
|
|
209
214
|
key: t.step_id,
|
|
210
215
|
"stroke-linecap": n(e).props.strokeLinecap,
|
|
211
216
|
color: n(e).getColor(t.color),
|
|
212
217
|
percent: t.percent
|
|
213
|
-
}, null, 8, ["stroke-linecap", "color", "percent"]))), 128)) : (p(),
|
|
218
|
+
}, null, 8, ["stroke-linecap", "color", "percent"]))), 128)) : (p(), k(W, {
|
|
214
219
|
key: 1,
|
|
215
220
|
"stroke-linecap": n(e).props.strokeLinecap,
|
|
216
221
|
color: n(e).props.status ? void 0 : n(e).getColor(n(e).props.color),
|
|
@@ -226,11 +231,11 @@ const L = [
|
|
|
226
231
|
], 64);
|
|
227
232
|
};
|
|
228
233
|
}
|
|
229
|
-
}),
|
|
234
|
+
}), Le = /* @__PURE__ */ b({
|
|
230
235
|
...$("ProgressValidationMessage"),
|
|
231
236
|
__name: "ProgressValidationMessage",
|
|
232
237
|
setup(P) {
|
|
233
|
-
const e = R(),
|
|
238
|
+
const e = R(), c = () => {
|
|
234
239
|
var o, s;
|
|
235
240
|
if (e.props.status) {
|
|
236
241
|
const l = (s = (o = e.slots).validationMessage) == null ? void 0 : s.call(o, {});
|
|
@@ -245,13 +250,13 @@ const L = [
|
|
|
245
250
|
}
|
|
246
251
|
return null;
|
|
247
252
|
};
|
|
248
|
-
return (o, s) => (p(),
|
|
253
|
+
return (o, s) => (p(), k(c));
|
|
249
254
|
}
|
|
250
|
-
}),
|
|
255
|
+
}), Be = /* @__PURE__ */ b({
|
|
251
256
|
...$("ProgressLine"),
|
|
252
257
|
__name: "ProgressLine",
|
|
253
258
|
setup(P) {
|
|
254
|
-
const e = R(),
|
|
259
|
+
const e = R(), c = m(V, "value"), o = F(V, {
|
|
255
260
|
variants: {
|
|
256
261
|
notRounded: T("not-rounded", V),
|
|
257
262
|
indeterminate: T("indeterminate", V)
|
|
@@ -276,7 +281,7 @@ const L = [
|
|
|
276
281
|
if (!((t = e.getSteps.value) != null && t.length))
|
|
277
282
|
return e.getColor(e.props.color);
|
|
278
283
|
}
|
|
279
|
-
}, a =
|
|
284
|
+
}, a = x(() => ({
|
|
280
285
|
width: s.value ? `${s.value}%` : void 0,
|
|
281
286
|
background: l(),
|
|
282
287
|
"--ptc-progress-animation-duration": e.duration.value
|
|
@@ -292,11 +297,11 @@ const L = [
|
|
|
292
297
|
);
|
|
293
298
|
}
|
|
294
299
|
return null;
|
|
295
|
-
},
|
|
300
|
+
}, v = () => {
|
|
296
301
|
if (e.props.status || e.props.indeterminate) {
|
|
297
|
-
const t = u(J), r = u(
|
|
298
|
-
if (
|
|
299
|
-
u(
|
|
302
|
+
const t = u(J), r = u(Le), d = [], i = _e(e.slots.label || e.props.label) && (e.slots.helperText || e.props.helperText);
|
|
303
|
+
if (i && d.push(t), (e.slots.validationMessage || e.props.validationMessage) && !e.props.indeterminate && e.statusIcon.value && (i && d.push(
|
|
304
|
+
u(ve, { type: "vertical", class: m(h, "divider") })
|
|
300
305
|
), d.push(r)), d.length)
|
|
301
306
|
return u("div", { class: m(h, "line_validation_box") }, d);
|
|
302
307
|
} else
|
|
@@ -307,7 +312,7 @@ const L = [
|
|
|
307
312
|
var d;
|
|
308
313
|
return p(), S(N, null, [
|
|
309
314
|
B(y),
|
|
310
|
-
|
|
315
|
+
G("div", {
|
|
311
316
|
class: M(
|
|
312
317
|
n(o)({
|
|
313
318
|
notRounded: n(e).props.notRounded,
|
|
@@ -315,22 +320,22 @@ const L = [
|
|
|
315
320
|
})
|
|
316
321
|
)
|
|
317
322
|
}, [
|
|
318
|
-
|
|
319
|
-
class: M(n(
|
|
323
|
+
G("div", {
|
|
324
|
+
class: M(n(c)),
|
|
320
325
|
style: q(a.value)
|
|
321
326
|
}, [
|
|
322
|
-
(d = n(e).getSteps.value) != null && d.length && !n(e).props.indeterminate ? (p(!0), S(N, { key: 0 }, Y(n(e).getSteps.value, (
|
|
323
|
-
class: M(n(m)(n(
|
|
324
|
-
key:
|
|
325
|
-
style: q({ background: n(e).getColor(
|
|
327
|
+
(d = n(e).getSteps.value) != null && d.length && !n(e).props.indeterminate ? (p(!0), S(N, { key: 0 }, Y(n(e).getSteps.value, (i) => (p(), S("div", {
|
|
328
|
+
class: M(n(m)(n(c), "step")),
|
|
329
|
+
key: i.step_id,
|
|
330
|
+
style: q({ background: n(e).getColor(i.color), width: `${i.percent ?? 0}%` })
|
|
326
331
|
}, null, 6))), 128)) : X("", !0)
|
|
327
332
|
], 6)
|
|
328
333
|
], 2),
|
|
329
|
-
B(
|
|
334
|
+
B(v)
|
|
330
335
|
], 64);
|
|
331
336
|
};
|
|
332
337
|
}
|
|
333
|
-
}),
|
|
338
|
+
}), Te = ["dir"], Ke = /* @__PURE__ */ b({
|
|
334
339
|
...$("Progress"),
|
|
335
340
|
__name: "Progress",
|
|
336
341
|
props: {
|
|
@@ -357,38 +362,39 @@ const L = [
|
|
|
357
362
|
color: { default: "primary" }
|
|
358
363
|
},
|
|
359
364
|
setup(P) {
|
|
360
|
-
|
|
361
|
-
|
|
365
|
+
ge("progress", ye);
|
|
366
|
+
const e = P, c = ne(), o = ie, s = (i, g = !0) => {
|
|
367
|
+
const _ = Number(i);
|
|
362
368
|
if (!(isNaN(_) || g && (_ > 100 || _ < 0)))
|
|
363
369
|
return _;
|
|
364
|
-
}, l =
|
|
365
|
-
var
|
|
366
|
-
if ((
|
|
367
|
-
const g = e.steps.map((
|
|
368
|
-
...
|
|
370
|
+
}, l = x(() => s(e.percent) ?? 0), a = x(() => {
|
|
371
|
+
var i;
|
|
372
|
+
if ((i = e.steps) != null && i.length && !e.status) {
|
|
373
|
+
const g = e.steps.map((f) => ({
|
|
374
|
+
...f,
|
|
369
375
|
step_id: ae(h)
|
|
370
376
|
}));
|
|
371
377
|
let _ = 0;
|
|
372
|
-
const j = g.reduce((
|
|
378
|
+
const j = g.reduce((f, C) => {
|
|
373
379
|
const w = s(C.percent);
|
|
374
380
|
w === void 0 && _++;
|
|
375
381
|
const H = g.findIndex((I) => I.step_id === C.step_id);
|
|
376
|
-
return H !== -1 && (g[H].percent = w),
|
|
382
|
+
return H !== -1 && (g[H].percent = w), f + (w || 0);
|
|
377
383
|
}, 0);
|
|
378
384
|
if (l.value > 100 || l.value < 0 || j > 100 || j < 0)
|
|
379
385
|
throw "Invalid percentage";
|
|
380
386
|
let E = 0;
|
|
381
|
-
const D = g.map((
|
|
382
|
-
(
|
|
387
|
+
const D = g.map((f) => L.findIndex((C) => C === f.color)).sort(), re = Array.from({ length: L.length }, (f, C) => C).filter(
|
|
388
|
+
(f) => !D.includes(f)
|
|
383
389
|
);
|
|
384
390
|
let K = -1;
|
|
385
|
-
return g.map((
|
|
386
|
-
const C = (100 - j) / _, w = (I = !0) =>
|
|
387
|
-
const I = o(
|
|
391
|
+
return g.map((f) => {
|
|
392
|
+
const C = (100 - j) / _, w = (I = !0) => f.percent === void 0 ? e.type === "circle" && I ? (E += C, E * ((l.value || 100) / 100)) : C : e.type === "circle" && I ? (E += f.percent, E) : f.percent, H = () => {
|
|
393
|
+
const I = o(f.color);
|
|
388
394
|
if (!I) {
|
|
389
395
|
if (L.length !== D.length) {
|
|
390
396
|
const O = re.shift();
|
|
391
|
-
if (
|
|
397
|
+
if (fe(O))
|
|
392
398
|
return D.push(O), L[O];
|
|
393
399
|
}
|
|
394
400
|
return K++, L[K % L.length];
|
|
@@ -396,7 +402,7 @@ const L = [
|
|
|
396
402
|
return I;
|
|
397
403
|
};
|
|
398
404
|
return {
|
|
399
|
-
...
|
|
405
|
+
...f,
|
|
400
406
|
percent: w(),
|
|
401
407
|
_percent: w(!1),
|
|
402
408
|
color: H()
|
|
@@ -405,10 +411,10 @@ const L = [
|
|
|
405
411
|
}
|
|
406
412
|
}), y = F(h, {
|
|
407
413
|
variants: {
|
|
408
|
-
status: T(
|
|
409
|
-
type: T(
|
|
414
|
+
status: T(ke, h),
|
|
415
|
+
type: T(Pe, h)
|
|
410
416
|
}
|
|
411
|
-
}),
|
|
417
|
+
}), v = x(() => e.noAnimate ? 0 : (s(e.duration, !1) || 0) / 1e3), { getDir: t } = he(), r = t(), d = x(() => {
|
|
412
418
|
switch (e.status) {
|
|
413
419
|
case "success":
|
|
414
420
|
return e.type === "circle" ? "tabler:check" : "tabler:circle-check";
|
|
@@ -418,33 +424,33 @@ const L = [
|
|
|
418
424
|
return e.type === "circle" ? "tabler:x" : "tabler:circle-x";
|
|
419
425
|
}
|
|
420
426
|
});
|
|
421
|
-
return
|
|
427
|
+
return Ce({
|
|
422
428
|
props: e,
|
|
423
429
|
getColor: o,
|
|
424
430
|
getSteps: a,
|
|
425
431
|
percentProp: l,
|
|
426
432
|
getPercent: s,
|
|
427
|
-
duration:
|
|
428
|
-
slots:
|
|
433
|
+
duration: v,
|
|
434
|
+
slots: c,
|
|
429
435
|
statusIcon: d
|
|
430
|
-
}), (
|
|
436
|
+
}), (i, g) => (p(), S("div", {
|
|
431
437
|
class: M(n(y)(e)),
|
|
432
438
|
dir: n(r)
|
|
433
439
|
}, [
|
|
434
|
-
|
|
435
|
-
], 10,
|
|
440
|
+
i.type === "circle" ? (p(), k(Ie, { key: 0 })) : (p(), k(Be, { key: 1 }))
|
|
441
|
+
], 10, Te));
|
|
436
442
|
}
|
|
437
443
|
});
|
|
438
444
|
export {
|
|
439
445
|
L as P,
|
|
440
|
-
|
|
441
|
-
|
|
446
|
+
Ke as _,
|
|
447
|
+
Je as a,
|
|
442
448
|
h as b,
|
|
443
|
-
|
|
449
|
+
A as c,
|
|
444
450
|
V as d,
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
451
|
+
xe as e,
|
|
452
|
+
ke as f,
|
|
453
|
+
Pe as g,
|
|
448
454
|
R as i,
|
|
449
|
-
|
|
455
|
+
Ce as p
|
|
450
456
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),o=require("@pantograph/utils"),V=require("class-variance-authority"),w=require("./BaseBadge.model-DecqxaGN.js"),M=require("reka-ui"),y=require("./options-CY2uxp5A.js");require("@pantograph/tokens");const D=require("es-toolkit"),h=require("./Icon.vue_vue_type_script_setup_true_lang-CXwAf04H.js");require("@vueuse/core");require("@tanstack/vue-virtual");const U=require("./Divider.vue_vue_type_script_setup_true_lang-Bs3xi5Tz.js"),J=require("./isEmpty-BKZMdy8h.js"),K=require("./ConfigProvider.vue_vue_type_script_setup_true_lang-BAXkTMEt.js"),Q=require("@pantograph/style/progress.css?raw"),B=["red","orange","yellow","lime","green","sky","blue","pink","violet","gray","amber","teal","cyan","ocean","amethyst","fuchsia","mallard"],X=[...B,"primary",...w.BadgeColorsSubtle],v=o.getBemBlock("progress"),L=o.getBemElement(v,"circle"),S=o.getBemElement(v,"line"),O=["2xsm","xsm","sm","md","lg"],F=["progress","warning","error","success"],H=["circle","line"],[P,W]=M.createContext("progress"),Y=["d","stroke-width","stroke-linecap","stroke"],Z=["from","to","dur"],I=e.defineComponent({...y.getComponentOptions("ProgressCirclePath"),__name:"ProgressCirclePath",props:{strokeLinecap:{default:"round"},trail:{type:Boolean},indeterminate:{type:Boolean},percent:{},delay:{default:0},strokeWidth:{default:2.4},circleRadius:{default:16},color:{}},setup(k){const t=k,p=o.getBemElement(L,"path"),l=V.cva(p,{variants:{trail:o.generateVariantClassList("trail",p),indeterminate:o.generateVariantClassList("indeterminate",p)}}),s=P(),c=e.ref(0);e.watch(()=>[t.trail,t.percent],()=>{const r=s.getPercent(t.percent);if(!t.trail&&r!==void 0){const n=setTimeout(()=>{c.value=r,clearTimeout(n)},t.delay)}},{immediate:!0});const a=e.computed(()=>t.circleRadius-t.strokeWidth/2),_=e.computed(()=>{const r=t.circleRadius*2-t.strokeWidth;return`M ${t.circleRadius},${t.circleRadius} m 0,-${a.value} a ${a.value},${a.value} 0 1 1 0,${r} a ${a.value},${a.value} 0 1 1 0,-${r}`}),g=e.computed(()=>{const r=2*Math.PI*a.value,n=c.value/100;return{"stroke-dasharray":t.trail?void 0:r,"stroke-dashoffset":t.trail?void 0:r*(1-n),"--ptc-progress-animation-duration":s.duration.value}});return(r,n)=>(e.openBlock(),e.createBlock(e.unref(M.Primitive),{as:"g","as-child":!r.indeterminate,key:String(r.indeterminate)},{default:e.withCtx(()=>[e.createElementVNode("path",{d:_.value,"stroke-width":r.strokeWidth,fill:"none",style:e.normalizeStyle(g.value),"stroke-linecap":r.strokeLinecap,class:e.normalizeClass(e.unref(l)({trail:r.trail,indeterminate:r.indeterminate})),stroke:r.color??"currentColor"},null,14,Y),r.indeterminate?(e.openBlock(),e.createElementBlock("animateTransform",{key:0,attributeName:"transform",type:"rotate",from:`0 ${t.circleRadius} ${t.circleRadius}`,to:`360 ${t.circleRadius} ${t.circleRadius}`,dur:`${e.unref(s).duration.value||700}s`,repeatCount:"indefinite"},null,8,Z)):e.createCommentVNode("",!0)]),_:1},8,["as-child"]))}}),A=e.defineComponent({...y.getComponentOptions("ProgressLabel"),__name:"ProgressLabel",setup(k){const t=P(),p=()=>{var c,a;const l=(a=(c=t.slots).label)==null?void 0:a.call(c,{}),s=!h.isEmptyElement(l);return s||t.props.label?e.h("div",{class:o.getBemElement(v,"label")},s?l:t.props.label):null};return(l,s)=>(e.openBlock(),e.createBlock(p))}}),q=e.defineComponent({...y.getComponentOptions("ProgressHelperText"),__name:"ProgressHelperText",setup(k){const t=P(),p=()=>{var c,a;const l=(a=(c=t.slots).helperText)==null?void 0:a.call(c,{}),s=!h.isEmptyElement(l);return s||t.props.helperText?e.h("div",{class:o.normCls(o.getBemElement(v,"helper_text"),t.props.helperTextCls)},s?l:t.props.helperText):null};return(l,s)=>(e.openBlock(),e.createBlock(p))}}),G=e.defineComponent({...y.getComponentOptions("ProgressLegend"),__name:"ProgressLegend",setup(k){const t=P(),p=o.getBemElement(v,"legend"),l=o.getBemElement(p,"item"),s=n=>e.h("div",{class:o.getBemElement(l,"indicator"),style:{background:t.getColor(n.color)}}),c=n=>e.h("div",{class:o.getBemElement(l,"title")},n.title),a=n=>e.h("div",{class:o.normCls(o.getBemElement(l,"percent"),"en")},`(${n._percent}%)`),_=n=>e.h("div",{class:l},[s(n),c(n),a(n)]),g=()=>{var n;return(n=t.getSteps.value)==null?void 0:n.map(u=>{var d,f;const i=(f=(d=t.slots).legendItem)==null?void 0:f.call(d,u);return h.isEmptyElement(i)?_(u):i})},r=()=>{var i,d,f;const n=(d=(i=t.slots).legend)==null?void 0:d.call(i,{}),u=!h.isEmptyElement(n);return u||t.props.legend&&((f=t.getSteps.value)!=null&&f.length)?e.h("div",{class:p},u?n:g()):null};return(n,u)=>(e.openBlock(),e.createBlock(r))}}),ee={viewBox:"0 0 32 32"},te=e.defineComponent({...y.getComponentOptions("ProgressCircle"),__name:"ProgressCircle",setup(k){const t=P(),p=e.computed(()=>{switch(t.props.size){case"2xsm":case"xsm":return"3xsm";case"sm":return"2xsm";case"md":return"xsm";case"lg":return"sm"}}),l=V.cva(L,{variants:{size:o.generateVariantClassList(O,L)}}),s=()=>{var g,r;const a=(r=(g=t.slots).icon)==null?void 0:r.call(g,{}),_=!h.isEmptyElement(a);if(t.statusIcon.value||_){let n=a;return _||(n=e.h(h._sfc_main$2,{icon:t.statusIcon.value,size:p.value})),e.h("div",{class:o.getBemElement(L,"content")},n)}return null},c=e.computed(()=>D.sortBy(t.getSteps.value??[],["percent"]).reverse());return(a,_)=>{var g;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass(e.unref(l)(e.unref(t).props))},[(e.openBlock(),e.createElementBlock("svg",ee,[e.unref(t).props.indeterminate?(e.openBlock(),e.createBlock(I,{key:1,indeterminate:"","stroke-linecap":"round",percent:75})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(I,{"stroke-linecap":e.unref(t).props.strokeLinecap,trail:""},null,8,["stroke-linecap"]),(g=e.unref(t).getSteps.value)!=null&&g.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(c.value,r=>(e.openBlock(),e.createBlock(I,{key:r.step_id,"stroke-linecap":e.unref(t).props.strokeLinecap,color:e.unref(t).getColor(r.color),percent:r.percent},null,8,["stroke-linecap","color","percent"]))),128)):(e.openBlock(),e.createBlock(I,{key:1,"stroke-linecap":e.unref(t).props.strokeLinecap,color:e.unref(t).props.status?void 0:e.unref(t).getColor(e.unref(t).props.color),percent:e.unref(t).percentProp.value},null,8,["stroke-linecap","color","percent"]))],64))])),e.createVNode(s)],2),e.createVNode(A),e.createVNode(q),e.createVNode(G)],64)}}}),re=e.defineComponent({...y.getComponentOptions("ProgressValidationMessage"),__name:"ProgressValidationMessage",setup(k){const t=P(),p=()=>{var l,s;if(t.props.status){const c=(s=(l=t.slots).validationMessage)==null?void 0:s.call(l,{});if(!h.isEmptyElement(c)||t.props.validationMessage)return e.h(h._sfc_main$4,{status:t.props.status,message:t.props.validationMessage},{message:c})}return null};return(l,s)=>(e.openBlock(),e.createBlock(p))}}),ne=e.defineComponent({...y.getComponentOptions("ProgressLine"),__name:"ProgressLine",setup(k){const t=P(),p=o.getBemElement(S,"value"),l=V.cva(S,{variants:{notRounded:o.generateVariantClassList("not-rounded",S),indeterminate:o.generateVariantClassList("indeterminate",S)}}),s=e.ref(0);e.watch(()=>[t.percentProp.value,t.props.indeterminate],()=>{const r=setTimeout(()=>{var n;t.props.indeterminate?s.value=void 0:!t.percentProp.value&&((n=t.getSteps.value)!=null&&n.length)?s.value=100:s.value=t.percentProp.value??0,clearTimeout(r)},t.props.delay??0)},{immediate:!0});const c=()=>{var r;if(!t.props.indeterminate){if(t.props.status)return"currentColor";if(!((r=t.getSteps.value)!=null&&r.length))return t.getColor(t.props.color)}},a=e.computed(()=>({width:s.value?`${s.value}%`:void 0,background:c(),"--ptc-progress-animation-duration":t.duration.value})),_=()=>{if(t.slots.label||t.props.label){const r=e.h(A),n=e.h(q,{renderIfHasLabel:!0});return e.h("div",{class:o.getBemElement(v,"line_content")},[r,n])}return null},g=()=>{if(t.props.status||t.props.indeterminate){const r=e.h(q),n=e.h(re),u=[],i=J.isEmptyLikeLodash(t.slots.label||t.props.label)&&(t.slots.helperText||t.props.helperText);if(i&&u.push(r),(t.slots.validationMessage||t.props.validationMessage)&&!t.props.indeterminate&&t.statusIcon.value&&(i&&u.push(e.h(U._sfc_main,{type:"vertical",class:o.getBemElement(v,"divider")})),u.push(n)),u.length)return e.h("div",{class:o.getBemElement(v,"line_validation_box")},u)}else return e.h(G);return null};return(r,n)=>{var u;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(_),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l)({notRounded:e.unref(t).props.notRounded,indeterminate:e.unref(t).props.indeterminate}))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(p)),style:e.normalizeStyle(a.value)},[(u=e.unref(t).getSteps.value)!=null&&u.length&&!e.unref(t).props.indeterminate?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(t).getSteps.value,i=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(o.getBemElement)(e.unref(p),"step")),key:i.step_id,style:e.normalizeStyle({background:e.unref(t).getColor(i.color),width:`${i.percent??0}%`})},null,6))),128)):e.createCommentVNode("",!0)],6)],2),e.createVNode(g)],64)}}}),se=["dir"],oe=e.defineComponent({...y.getComponentOptions("Progress"),__name:"Progress",props:{steps:{},type:{default:"line"},legend:{type:Boolean},indeterminate:{type:Boolean},noAnimate:{type:Boolean},size:{default:"md"},status:{},label:{},validationMessage:{},helperText:{},helperTextCls:{},notRounded:{type:Boolean},duration:{default:700},dir:{},strokeLinecap:{default:"round"},trail:{type:Boolean},percent:{},delay:{},strokeWidth:{},circleRadius:{},color:{default:"primary"}},setup(k){h.useComponentStyle("progress",Q);const t=k,p=e.useSlots(),l=w.getBadgeColor,s=(i,d=!0)=>{const f=Number(i);if(!(isNaN(f)||d&&(f>100||f<0)))return f},c=e.computed(()=>s(t.percent)??0),a=e.computed(()=>{var i;if((i=t.steps)!=null&&i.length&&!t.status){const d=t.steps.map(m=>({...m,step_id:o.usePCId(v)}));let f=0;const T=d.reduce((m,C)=>{const E=s(C.percent);E===void 0&&f++;const $=d.findIndex(x=>x.step_id===C.step_id);return $!==-1&&(d[$].percent=E),m+(E||0)},0);if(c.value>100||c.value<0||T>100||T<0)throw"Invalid percentage";let b=0;const N=d.map(m=>B.findIndex(C=>C===m.color)).sort(),j=Array.from({length:B.length},(m,C)=>C).filter(m=>!N.includes(m));let R=-1;return d.map(m=>{const C=(100-T)/f,E=(x=!0)=>m.percent===void 0?t.type==="circle"&&x?(b+=C,b*((c.value||100)/100)):C:t.type==="circle"&&x?(b+=m.percent,b):m.percent,$=()=>{const x=l(m.color);if(!x){if(B.length!==N.length){const z=j.shift();if(h.isNumber(z))return N.push(z),B[z]}return R++,B[R%B.length]}return x};return{...m,percent:E(),_percent:E(!1),color:$()}})}}),_=V.cva(v,{variants:{status:o.generateVariantClassList(F,v),type:o.generateVariantClassList(H,v)}}),g=e.computed(()=>t.noAnimate?0:(s(t.duration,!1)||0)/1e3),{getDir:r}=K.useConfig(),n=r(),u=e.computed(()=>{switch(t.status){case"success":return t.type==="circle"?"tabler:check":"tabler:circle-check";case"warning":return t.type==="circle"?"tabler:exclamation-mark":"tabler:exclamation-circle";case"error":return t.type==="circle"?"tabler:x":"tabler:circle-x"}});return W({props:t,getColor:l,getSteps:a,percentProp:c,getPercent:s,duration:g,slots:p,statusIcon:u}),(i,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(_)(t)),dir:e.unref(n)},[i.type==="circle"?(e.openBlock(),e.createBlock(te,{key:0})):(e.openBlock(),e.createBlock(ne,{key:1}))],10,se))}});exports.ProgressBoldColors=B;exports.ProgressColors=X;exports.ProgressSizes=O;exports.ProgressStatuses=F;exports.ProgressTypes=H;exports._sfc_main=oe;exports.injectProgressContext=P;exports.progressCirclePrefix=L;exports.progressLinePrefix=S;exports.progressPrefix=v;exports.provideProgressContext=W;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RadioGroupRootProps } from 'reka-ui';
|
|
1
|
+
import { RadioGroupRootEmits, RadioGroupRootProps } from 'reka-ui';
|
|
2
2
|
import { RadioGroupItemProps } from './RadioGroupItem';
|
|
3
3
|
import { RadioGroupSize } from './RadioGroup.model';
|
|
4
4
|
import { ClassValue } from 'class-variance-authority/types';
|
|
@@ -9,6 +9,9 @@ export interface RadioGroupProps extends RadioGroupRootProps {
|
|
|
9
9
|
size?: RadioGroupSize;
|
|
10
10
|
class?: ClassValue;
|
|
11
11
|
}
|
|
12
|
+
export interface RadioGroupEmits extends RadioGroupRootEmits {
|
|
13
|
+
change: RadioGroupRootEmits['update:modelValue'];
|
|
14
|
+
}
|
|
12
15
|
declare function __VLS_template(): {
|
|
13
16
|
attrs: Partial<{}>;
|
|
14
17
|
slots: {
|
|
@@ -20,10 +23,13 @@ declare function __VLS_template(): {
|
|
|
20
23
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
24
|
declare const __VLS_component: import('vue').DefineComponent<RadioGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
25
|
"update:modelValue": (payload: string) => any;
|
|
26
|
+
change: (payload: string) => any;
|
|
23
27
|
}, string, import('vue').PublicProps, Readonly<RadioGroupProps> & Readonly<{
|
|
24
28
|
"onUpdate:modelValue"?: ((payload: string) => any) | undefined;
|
|
29
|
+
onChange?: ((payload: string) => any) | undefined;
|
|
25
30
|
}>, {
|
|
26
31
|
size: RadioGroupSize;
|
|
32
|
+
disabled: boolean;
|
|
27
33
|
orientation: "horizontal" | "vertical";
|
|
28
34
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
29
35
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { RadioGroupItemProps as RadixRadioGroupItemProps } from 'reka-ui';
|
|
2
2
|
import { ClassValue } from 'class-variance-authority/types';
|
|
3
|
+
export declare const radioGroupPrefix: string;
|
|
3
4
|
export interface RadioGroupItemProps extends Omit<RadixRadioGroupItemProps, 'asChild' | 'as'> {
|
|
4
5
|
class?: ClassValue;
|
|
5
6
|
rootCls?: ClassValue;
|
|
6
7
|
labelCls?: ClassValue;
|
|
7
8
|
label?: string;
|
|
8
9
|
}
|
|
9
|
-
export declare const radioGroupPrefix: string;
|
|
10
10
|
export interface RadioGroupSlots {
|
|
11
11
|
label?: () => never;
|
|
12
12
|
}
|
package/dist/RadioGroup/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../RadioGroup.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../RadioGroup.vue_vue_type_script_setup_true_lang-BLfj2wLT.js");exports.RadioGroup=e._sfc_main;exports.RadioGroupItem=e._sfc_main$1;exports.default=e._sfc_main;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { defineComponent as R, useSlots as D, computed as l, createElementBlock as v, openBlock as r, mergeProps as u, unref as e, createVNode as h, createCommentVNode as I, withCtx as k, normalizeClass as y, renderSlot as x, createTextVNode as P, toDisplayString as U, createBlock as V, Fragment as L, renderList as N } from "vue";
|
|
2
|
+
import { RadioGroupItem as $, RadioGroupIndicator as q, RadioGroupRoot as w } from "reka-ui";
|
|
3
|
+
import { cva as E } from "class-variance-authority";
|
|
4
|
+
import { omit as S } from "es-toolkit";
|
|
5
|
+
import { a as z } from "./options-J8HfRMSU.js";
|
|
6
|
+
import { u as F } from "./Icon.vue_vue_type_script_setup_true_lang-X8iOewkh.js";
|
|
7
|
+
import { U as O, u as T } from "./useInputDataStates-Db6zJZ1T.js";
|
|
8
|
+
import "@vueuse/core";
|
|
9
|
+
import "@tanstack/vue-virtual";
|
|
10
|
+
import j from "@pantograph/style/radio.css?raw";
|
|
11
|
+
import { getBemBlock as A, getBemElement as d, usePCId as H, normCls as m, generateVariantClassList as G } from "@pantograph/utils";
|
|
12
|
+
import "@pantograph/tokens";
|
|
13
|
+
const J = ["for"], p = A("radio_group"), K = /* @__PURE__ */ R({
|
|
14
|
+
...z("RadioGroupItem"),
|
|
15
|
+
__name: "RadioGroupItem",
|
|
16
|
+
props: {
|
|
17
|
+
class: {},
|
|
18
|
+
rootCls: {},
|
|
19
|
+
labelCls: {},
|
|
20
|
+
label: {},
|
|
21
|
+
id: {},
|
|
22
|
+
value: {},
|
|
23
|
+
disabled: { type: Boolean },
|
|
24
|
+
name: {},
|
|
25
|
+
required: { type: Boolean }
|
|
26
|
+
},
|
|
27
|
+
emits: ["update:modelValue", "blur", "focus"],
|
|
28
|
+
setup(c, { emit: f }) {
|
|
29
|
+
F("radio", j);
|
|
30
|
+
const o = c, t = d(p, "item"), b = D(), C = f, i = l(() => o.id ?? H(t)), { rootBindings: g, inputBindings: n } = O({
|
|
31
|
+
getDisabled: () => o.disabled,
|
|
32
|
+
emit: C
|
|
33
|
+
}), s = l(() => ({
|
|
34
|
+
...S(o, ["class", "id", "rootCls", "labelCls", "label"]),
|
|
35
|
+
id: i.value,
|
|
36
|
+
...n.value
|
|
37
|
+
})), B = l(() => !!(b.label || o.label));
|
|
38
|
+
return (a, _) => (r(), v("label", u({
|
|
39
|
+
class: e(m)(e(d)(e(t), "root"), a.rootCls)
|
|
40
|
+
}, e(g), { for: i.value }), [
|
|
41
|
+
h(e($), u({
|
|
42
|
+
class: e(m)(e(t), o.class)
|
|
43
|
+
}, s.value), {
|
|
44
|
+
default: k(() => [
|
|
45
|
+
h(e(q), {
|
|
46
|
+
class: y(e(d)(e(t), "indicator")),
|
|
47
|
+
as: "div"
|
|
48
|
+
}, null, 8, ["class"])
|
|
49
|
+
]),
|
|
50
|
+
_: 1
|
|
51
|
+
}, 16, ["class"]),
|
|
52
|
+
B.value ? (r(), v("span", {
|
|
53
|
+
key: 0,
|
|
54
|
+
class: y(e(m)(e(d)(e(t), "label"), a.labelCls))
|
|
55
|
+
}, [
|
|
56
|
+
x(a.$slots, "label", {}, () => [
|
|
57
|
+
P(U(a.label), 1)
|
|
58
|
+
])
|
|
59
|
+
], 2)) : I("", !0)
|
|
60
|
+
], 16, J));
|
|
61
|
+
}
|
|
62
|
+
}), M = ["2xsm", "xsm"], ie = /* @__PURE__ */ R({
|
|
63
|
+
...z("RadioGroup"),
|
|
64
|
+
__name: "RadioGroup",
|
|
65
|
+
props: {
|
|
66
|
+
items: {},
|
|
67
|
+
options: {},
|
|
68
|
+
size: { default: "xsm" },
|
|
69
|
+
class: {},
|
|
70
|
+
modelValue: {},
|
|
71
|
+
defaultValue: {},
|
|
72
|
+
disabled: { type: Boolean, default: void 0 },
|
|
73
|
+
orientation: { default: "vertical" },
|
|
74
|
+
dir: {},
|
|
75
|
+
loop: { type: Boolean },
|
|
76
|
+
asChild: { type: Boolean },
|
|
77
|
+
as: {},
|
|
78
|
+
name: {},
|
|
79
|
+
required: { type: Boolean }
|
|
80
|
+
},
|
|
81
|
+
emits: ["change", "update:modelValue"],
|
|
82
|
+
setup(c, { emit: f }) {
|
|
83
|
+
const o = c, t = f, b = l(() => S(o, ["items", "options", "class"])), C = (s) => {
|
|
84
|
+
t("update:modelValue", s), t("change", s);
|
|
85
|
+
}, i = E(p, {
|
|
86
|
+
variants: {
|
|
87
|
+
size: G(M, p),
|
|
88
|
+
orientation: G(["vertical", "horizontal"], p)
|
|
89
|
+
}
|
|
90
|
+
}), { getDisabled: g } = T(), n = l(() => o.options ?? o.items);
|
|
91
|
+
return (s, B) => (r(), V(e(w), u({ ...b.value, disabled: e(g) }, {
|
|
92
|
+
"onUpdate:modelValue": C,
|
|
93
|
+
class: e(m)(e(i)(o), o.class)
|
|
94
|
+
}), {
|
|
95
|
+
default: k(() => [
|
|
96
|
+
x(s.$slots, "default", {}, () => {
|
|
97
|
+
var a;
|
|
98
|
+
return [
|
|
99
|
+
(a = n.value) != null && a.length ? (r(!0), v(L, { key: 0 }, N(n.value, (_) => (r(), V(K, u({ ref_for: !0 }, _), null, 16))), 256)) : I("", !0)
|
|
100
|
+
];
|
|
101
|
+
})
|
|
102
|
+
]),
|
|
103
|
+
_: 3
|
|
104
|
+
}, 16, ["class"]));
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
export {
|
|
108
|
+
ie as _,
|
|
109
|
+
K as a
|
|
110
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),f=require("reka-ui"),k=require("class-variance-authority"),B=require("es-toolkit"),_=require("./options-CY2uxp5A.js"),q=require("./Icon.vue_vue_type_script_setup_true_lang-CXwAf04H.js"),b=require("./useInputDataStates-B2KtpFr0.js");require("@vueuse/core");require("@tanstack/vue-virtual");const V=require("@pantograph/style/radio.css?raw"),o=require("@pantograph/utils");require("@pantograph/tokens");const h=["for"],i=o.getBemBlock("radio_group"),v=e.defineComponent({..._.getComponentOptions("RadioGroupItem"),__name:"RadioGroupItem",props:{class:{},rootCls:{},labelCls:{},label:{},id:{},value:{},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:["update:modelValue","blur","focus"],setup(u,{emit:c}){q.useComponentStyle("radio",V);const t=u,s=o.getBemElement(i,"item"),d=e.useSlots(),m=c,n=e.computed(()=>t.id??o.usePCId(s)),{rootBindings:p,inputBindings:l}=b.UseInputDataStates({getDisabled:()=>t.disabled,emit:m}),a=e.computed(()=>({...B.omit(t,["class","id","rootCls","labelCls","label"]),id:n.value,...l.value})),C=e.computed(()=>!!(d.label||t.label));return(r,g)=>(e.openBlock(),e.createElementBlock("label",e.mergeProps({class:e.unref(o.normCls)(e.unref(o.getBemElement)(e.unref(s),"root"),r.rootCls)},e.unref(p),{for:n.value}),[e.createVNode(e.unref(f.RadioGroupItem),e.mergeProps({class:e.unref(o.normCls)(e.unref(s),t.class)},a.value),{default:e.withCtx(()=>[e.createVNode(e.unref(f.RadioGroupIndicator),{class:e.normalizeClass(e.unref(o.getBemElement)(e.unref(s),"indicator")),as:"div"},null,8,["class"])]),_:1},16,["class"]),C.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(o.normCls)(e.unref(o.getBemElement)(e.unref(s),"label"),r.labelCls))},[e.renderSlot(r.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(r.label),1)])],2)):e.createCommentVNode("",!0)],16,h))}}),y=["2xsm","xsm"],G=e.defineComponent({..._.getComponentOptions("RadioGroup"),__name:"RadioGroup",props:{items:{},options:{},size:{default:"xsm"},class:{},modelValue:{},defaultValue:{},disabled:{type:Boolean,default:void 0},orientation:{default:"vertical"},dir:{},loop:{type:Boolean},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean}},emits:["change","update:modelValue"],setup(u,{emit:c}){const t=u,s=c,d=e.computed(()=>B.omit(t,["items","options","class"])),m=a=>{s("update:modelValue",a),s("change",a)},n=k.cva(i,{variants:{size:o.generateVariantClassList(y,i),orientation:o.generateVariantClassList(["vertical","horizontal"],i)}}),{getDisabled:p}=b.useFormInput(),l=e.computed(()=>t.options??t.items);return(a,C)=>(e.openBlock(),e.createBlock(e.unref(f.RadioGroupRoot),e.mergeProps({...d.value,disabled:e.unref(p)},{"onUpdate:modelValue":m,class:e.unref(o.normCls)(e.unref(n)(t),t.class)}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default",{},()=>{var r;return[(r=l.value)!=null&&r.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.value,g=>(e.openBlock(),e.createBlock(v,e.mergeProps({ref_for:!0},g),null,16))),256)):e.createCommentVNode("",!0)]})]),_:3},16,["class"]))}});exports._sfc_main=G;exports._sfc_main$1=v;
|