@routa/ui-vue 0.1.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/LICENSE +21 -0
- package/README.md +52 -0
- package/base.css +1 -0
- package/dist/autocomplete/AutoComplete.vue.d.ts +336 -0
- package/dist/autocomplete/index.d.ts +298 -0
- package/dist/autocomplete/index.js +4 -0
- package/dist/autocomplete/index.mjs +321 -0
- package/dist/autocomplete/types.d.ts +58 -0
- package/dist/avatar/Avatar.vue.d.ts +36 -0
- package/dist/avatar/AvatarGroup.vue.d.ts +7 -0
- package/dist/avatar/index.d.ts +7 -0
- package/dist/avatar/index.js +3 -0
- package/dist/avatar/index.mjs +192 -0
- package/dist/avatar/types.d.ts +111 -0
- package/dist/badge/Badge.vue.d.ts +25 -0
- package/dist/badge/index.d.ts +5 -0
- package/dist/badge/index.js +2 -0
- package/dist/badge/index.mjs +72 -0
- package/dist/badge/types.d.ts +86 -0
- package/dist/breadcrumb/Breadcrumb.vue.d.ts +38 -0
- package/dist/breadcrumb/BreadcrumbItem.vue.d.ts +48 -0
- package/dist/breadcrumb/index.d.ts +7 -0
- package/dist/breadcrumb/index.js +2 -0
- package/dist/breadcrumb/index.mjs +87 -0
- package/dist/breadcrumb/types.d.ts +28 -0
- package/dist/button/Button.vue.d.ts +27 -0
- package/dist/button/index.d.ts +5 -0
- package/dist/button/index.js +2 -0
- package/dist/button/index.mjs +10 -0
- package/dist/button/types.d.ts +14 -0
- package/dist/card/Card.vue.d.ts +49 -0
- package/dist/card/index.d.ts +72 -0
- package/dist/card/index.js +2 -0
- package/dist/card/index.mjs +60 -0
- package/dist/card/types.d.ts +16 -0
- package/dist/carousel/Carousel.vue.d.ts +134 -0
- package/dist/carousel/CarouselItem.vue.d.ts +23 -0
- package/dist/carousel/index.d.ts +250 -0
- package/dist/carousel/index.js +2 -0
- package/dist/carousel/index.mjs +354 -0
- package/dist/carousel/types.d.ts +97 -0
- package/dist/cascader/Cascader.vue.d.ts +109 -0
- package/dist/cascader/CascaderPanel.vue.d.ts +55 -0
- package/dist/cascader/index.d.ts +110 -0
- package/dist/cascader/index.js +5 -0
- package/dist/cascader/index.mjs +370 -0
- package/dist/cascader/types.d.ts +54 -0
- package/dist/checkbox/Checkbox.vue.d.ts +99 -0
- package/dist/checkbox/CheckboxGroup.vue.d.ts +59 -0
- package/dist/checkbox/constants.d.ts +2 -0
- package/dist/checkbox/index.d.ts +9 -0
- package/dist/checkbox/index.js +2 -0
- package/dist/checkbox/index.mjs +70 -0
- package/dist/checkbox/types.d.ts +64 -0
- package/dist/chunks/Button.vue_vue_type_script_setup_true_lang-BthtEkGw.mjs +170 -0
- package/dist/chunks/Button.vue_vue_type_script_setup_true_lang-Do1NtIFC.js +1 -0
- package/dist/chunks/Checkbox.vue_vue_type_script_setup_true_lang-DxecbRJE.js +1 -0
- package/dist/chunks/Checkbox.vue_vue_type_script_setup_true_lang-fOXXjwnz.mjs +289 -0
- package/dist/chunks/Icon.vue_vue_type_script_setup_true_lang-LQ-KuJ6a.mjs +57 -0
- package/dist/chunks/Icon.vue_vue_type_script_setup_true_lang-YDWguTmi.js +1 -0
- package/dist/chunks/Input.vue_vue_type_script_setup_true_lang-8x2HE2Cj.js +1 -0
- package/dist/chunks/Input.vue_vue_type_script_setup_true_lang-PeDZ7smO.mjs +391 -0
- package/dist/chunks/Popover.vue_vue_type_script_setup_true_lang-CVWbekIQ.mjs +176 -0
- package/dist/chunks/Popover.vue_vue_type_script_setup_true_lang-TF9OnqB0.js +1 -0
- package/dist/chunks/Scrollbar.vue_vue_type_script_setup_true_lang-CtBz7Ha9.js +1 -0
- package/dist/chunks/Scrollbar.vue_vue_type_script_setup_true_lang-kKvR0Hz3.mjs +124 -0
- package/dist/chunks/TimePanel.vue_vue_type_script_setup_true_lang-BNTM3OeU.js +1 -0
- package/dist/chunks/TimePanel.vue_vue_type_script_setup_true_lang-BxuIhLsF.mjs +170 -0
- package/dist/chunks/_plugin-vue_export-helper-BHFhmbuH.js +1 -0
- package/dist/chunks/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/dist/chunks/auto-update-6n8Xn1EH.js +1 -0
- package/dist/chunks/auto-update-Dw-2qIsQ.mjs +59 -0
- package/dist/chunks/color-BBpRjg5d.mjs +32 -0
- package/dist/chunks/color-m1q_rZ68.js +1 -0
- package/dist/chunks/context-BEsW77hb.js +1 -0
- package/dist/chunks/context-BlK-PJ3n.mjs +5 -0
- package/dist/chunks/controller-37WpkEdZ.js +1 -0
- package/dist/chunks/controller-3cWaJJMW.mjs +318 -0
- package/dist/chunks/controller-BQhkT8pi.mjs +95 -0
- package/dist/chunks/controller-BnNZOOMj.js +1 -0
- package/dist/chunks/controller-CV-a983I.js +1 -0
- package/dist/chunks/controller-D1BTHmfO.js +1 -0
- package/dist/chunks/controller-DZp6lWY1.mjs +96 -0
- package/dist/chunks/controller-DdEBnv9V.mjs +82 -0
- package/dist/chunks/id-CfLxBW9l.js +1 -0
- package/dist/chunks/id-VS2potoV.mjs +7 -0
- package/dist/chunks/index-B0yEC3RG.mjs +136 -0
- package/dist/chunks/index-B4GP5rXr.mjs +170 -0
- package/dist/chunks/index-DWAWrVaT.js +1 -0
- package/dist/chunks/index-RYR-1S7A.js +1 -0
- package/dist/chunks/install-DJNxamQ0.mjs +10 -0
- package/dist/chunks/install-gnn2dOg9.js +1 -0
- package/dist/chunks/manager-BUdQK4AD.mjs +156 -0
- package/dist/chunks/manager-C-VTKQvg.mjs +85 -0
- package/dist/chunks/manager-C0AUxQ1I.js +2 -0
- package/dist/chunks/manager-d-AJMlyO.js +1 -0
- package/dist/chunks/modal-BiivqQQz.mjs +86 -0
- package/dist/chunks/modal-CRbFkVcm.js +1 -0
- package/dist/chunks/responsive-BYScjISa.js +1 -0
- package/dist/chunks/responsive-jCVnPx1a.mjs +49 -0
- package/dist/chunks/style-C-58-Hx4.mjs +7 -0
- package/dist/chunks/style-CjCLKeeU.js +1 -0
- package/dist/chunks/types-CXAGM03M.mjs +92 -0
- package/dist/chunks/types-DS78vyi2.js +1 -0
- package/dist/chunks/use-form-item-CloIcyon.js +1 -0
- package/dist/chunks/use-form-item-CqDbWCiU.mjs +16 -0
- package/dist/chunks/use-id-BycaM3-h.js +1 -0
- package/dist/chunks/use-id-D3casveg.mjs +9 -0
- package/dist/chunks/use-signals-Bz1smiXh.js +1 -0
- package/dist/chunks/use-signals-CE1T2jXK.mjs +50 -0
- package/dist/chunks/useCanvasRenderer-BPTNzGy0.mjs +87 -0
- package/dist/chunks/useCanvasRenderer-D77k3JCQ.js +1 -0
- package/dist/chunks/useResizeObserver-Cki4q_CI.mjs +60 -0
- package/dist/chunks/useResizeObserver-DMkB1OF3.js +1 -0
- package/dist/chunks/z-index-CNZLw1v7.js +1 -0
- package/dist/chunks/z-index-D9ecXoNe.mjs +14 -0
- package/dist/collapse/Collapse.vue.d.ts +30 -0
- package/dist/collapse/CollapseItem.vue.d.ts +20 -0
- package/dist/collapse/index.d.ts +8 -0
- package/dist/collapse/index.js +3 -0
- package/dist/collapse/index.mjs +144 -0
- package/dist/collapse/types.d.ts +54 -0
- package/dist/color-picker/AlphaSlider.vue.d.ts +38 -0
- package/dist/color-picker/ColorPicker.vue.d.ts +57 -0
- package/dist/color-picker/HueSlider.vue.d.ts +28 -0
- package/dist/color-picker/SaturationPanel.vue.d.ts +46 -0
- package/dist/color-picker/index.d.ts +56 -0
- package/dist/color-picker/index.js +6 -0
- package/dist/color-picker/index.mjs +481 -0
- package/dist/config-provider/ConfigProvider.vue.d.ts +64 -0
- package/dist/config-provider/context.d.ts +888 -0
- package/dist/config-provider/index.d.ts +97 -0
- package/dist/config-provider/index.js +1 -0
- package/dist/config-provider/index.mjs +396 -0
- package/dist/config-provider/resolver.d.ts +2 -0
- package/dist/config-provider/runtime.d.ts +5 -0
- package/dist/config-provider/teleport.d.ts +6 -0
- package/dist/config-provider/types.d.ts +131 -0
- package/dist/context-menu/ContextMenu.vue.d.ts +87 -0
- package/dist/context-menu/index.d.ts +5 -0
- package/dist/context-menu/index.js +3 -0
- package/dist/context-menu/index.mjs +215 -0
- package/dist/context-menu/types.d.ts +34 -0
- package/dist/date-picker/Calendar.vue.d.ts +22 -0
- package/dist/date-picker/DatePicker.vue.d.ts +31 -0
- package/dist/date-picker/DateRangePicker.vue.d.ts +26 -0
- package/dist/date-picker/DateTimePicker.vue.d.ts +27 -0
- package/dist/date-picker/DateTimeRangePicker.vue.d.ts +27 -0
- package/dist/date-picker/index.d.ts +13 -0
- package/dist/date-picker/index.js +6 -0
- package/dist/date-picker/index.mjs +1229 -0
- package/dist/date-picker/utils.d.ts +3 -0
- package/dist/dialog/Dialog.vue.d.ts +97 -0
- package/dist/dialog/index.d.ts +5 -0
- package/dist/dialog/index.js +2 -0
- package/dist/dialog/index.mjs +161 -0
- package/dist/dialog/types.d.ts +38 -0
- package/dist/divider/Divider.vue.d.ts +74 -0
- package/dist/divider/index.d.ts +5 -0
- package/dist/divider/index.js +2 -0
- package/dist/divider/index.mjs +96 -0
- package/dist/divider/types.d.ts +57 -0
- package/dist/drawer/Drawer.vue.d.ts +106 -0
- package/dist/drawer/index.d.ts +5 -0
- package/dist/drawer/index.js +2 -0
- package/dist/drawer/index.mjs +168 -0
- package/dist/drawer/types.d.ts +42 -0
- package/dist/dropdown/Dropdown.vue.d.ts +109 -0
- package/dist/dropdown/DropdownItem.vue.d.ts +60 -0
- package/dist/dropdown/index.d.ts +7 -0
- package/dist/dropdown/index.js +3 -0
- package/dist/dropdown/index.mjs +310 -0
- package/dist/dropdown/types.d.ts +87 -0
- package/dist/empty/Empty.vue.d.ts +47 -0
- package/dist/empty/index.d.ts +70 -0
- package/dist/empty/index.js +2 -0
- package/dist/empty/index.mjs +50 -0
- package/dist/empty/types.d.ts +16 -0
- package/dist/feedback-runtime/manager.d.ts +109 -0
- package/dist/feedback-runtime/mount.d.ts +5 -0
- package/dist/feedback-runtime/types.d.ts +27 -0
- package/dist/form/Form.vue.d.ts +37 -0
- package/dist/form/FormItem.vue.d.ts +32 -0
- package/dist/form/FormSchemaFields.vue.d.ts +7 -0
- package/dist/form/context.d.ts +33 -0
- package/dist/form/index.d.ts +6 -0
- package/dist/form/index.js +2 -0
- package/dist/form/index.mjs +389 -0
- package/dist/grid/Col.vue.d.ts +101 -0
- package/dist/grid/Row.vue.d.ts +56 -0
- package/dist/grid/index.d.ts +7 -0
- package/dist/grid/index.js +2 -0
- package/dist/grid/index.mjs +182 -0
- package/dist/grid/responsive.d.ts +9 -0
- package/dist/grid/types.d.ts +85 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/index.mjs +9 -0
- package/dist/hooks/use-form-item.d.ts +13 -0
- package/dist/hooks/use-id.d.ts +5 -0
- package/dist/hooks/useCanvasRenderer.d.ts +10 -0
- package/dist/hooks/useImageLoader.d.ts +20 -0
- package/dist/hooks/useResizeObserver.d.ts +17 -0
- package/dist/icon/Icon.vue.d.ts +20 -0
- package/dist/icon/index.d.ts +5 -0
- package/dist/icon/index.js +2 -0
- package/dist/icon/index.mjs +10 -0
- package/dist/icon/types.d.ts +45 -0
- package/dist/image/Image.vue.d.ts +38 -0
- package/dist/image/index.d.ts +5 -0
- package/dist/image/index.js +2 -0
- package/dist/image/index.mjs +128 -0
- package/dist/image/types.d.ts +10 -0
- package/dist/index.d.ts +59 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +362 -0
- package/dist/input/Input.vue.d.ts +47 -0
- package/dist/input/index.d.ts +5 -0
- package/dist/input/index.js +2 -0
- package/dist/input/index.mjs +10 -0
- package/dist/input/types.d.ts +51 -0
- package/dist/input-number/InputNumber.vue.d.ts +119 -0
- package/dist/input-number/index.d.ts +5 -0
- package/dist/input-number/index.js +2 -0
- package/dist/input-number/index.mjs +312 -0
- package/dist/input-number/types.d.ts +58 -0
- package/dist/layout/Content.vue.d.ts +29 -0
- package/dist/layout/Footer.vue.d.ts +29 -0
- package/dist/layout/Header.vue.d.ts +29 -0
- package/dist/layout/Layout.vue.d.ts +32 -0
- package/dist/layout/Sider.vue.d.ts +59 -0
- package/dist/layout/index.d.ts +13 -0
- package/dist/layout/index.js +2 -0
- package/dist/layout/index.mjs +154 -0
- package/dist/layout/types.d.ts +51 -0
- package/dist/layout-system/responsive.d.ts +4 -0
- package/dist/layout-system/types.d.ts +3 -0
- package/dist/loading/Loading.vue.d.ts +57 -0
- package/dist/loading/LoadingMask.vue.d.ts +8 -0
- package/dist/loading/directive.d.ts +5 -0
- package/dist/loading/index.d.ts +7 -0
- package/dist/loading/index.js +2 -0
- package/dist/loading/index.mjs +275 -0
- package/dist/loading/types.d.ts +23 -0
- package/dist/mentions/Mentions.vue.d.ts +337 -0
- package/dist/mentions/index.d.ts +296 -0
- package/dist/mentions/index.js +5 -0
- package/dist/mentions/index.mjs +357 -0
- package/dist/mentions/types.d.ts +55 -0
- package/dist/menu/Menu.vue.d.ts +120 -0
- package/dist/menu/MenuDivider.vue.d.ts +2 -0
- package/dist/menu/MenuGroup.vue.d.ts +29 -0
- package/dist/menu/MenuItem.vue.d.ts +48 -0
- package/dist/menu/MenuNodeRenderer.vue.d.ts +6 -0
- package/dist/menu/SubMenu.vue.d.ts +57 -0
- package/dist/menu/index.d.ts +13 -0
- package/dist/menu/index.js +2 -0
- package/dist/menu/index.mjs +772 -0
- package/dist/menu/types.d.ts +126 -0
- package/dist/message/MessageHost.vue.d.ts +15 -0
- package/dist/message/MessageItem.vue.d.ts +15 -0
- package/dist/message/index.d.ts +10 -0
- package/dist/message/index.js +2 -0
- package/dist/message/index.mjs +199 -0
- package/dist/message/runtime.d.ts +149 -0
- package/dist/message/types.d.ts +12 -0
- package/dist/notification/NotificationHost.vue.d.ts +15 -0
- package/dist/notification/NotificationItem.vue.d.ts +15 -0
- package/dist/notification/index.d.ts +10 -0
- package/dist/notification/index.js +2 -0
- package/dist/notification/index.mjs +207 -0
- package/dist/notification/runtime.d.ts +155 -0
- package/dist/notification/types.d.ts +12 -0
- package/dist/otp-input/OTPInput.vue.d.ts +84 -0
- package/dist/otp-input/index.d.ts +5 -0
- package/dist/otp-input/index.js +2 -0
- package/dist/otp-input/index.mjs +216 -0
- package/dist/otp-input/types.d.ts +41 -0
- package/dist/pagination/Pagination.vue.d.ts +101 -0
- package/dist/pagination/index.d.ts +102 -0
- package/dist/pagination/index.js +2 -0
- package/dist/pagination/index.mjs +260 -0
- package/dist/pagination/types.d.ts +48 -0
- package/dist/popover/Popover.vue.d.ts +136 -0
- package/dist/popover/index.d.ts +5 -0
- package/dist/popover/index.js +2 -0
- package/dist/popover/index.mjs +13 -0
- package/dist/popover/types.d.ts +49 -0
- package/dist/radio/Radio.vue.d.ts +30 -0
- package/dist/radio/RadioGroup.vue.d.ts +26 -0
- package/dist/radio/constants.d.ts +3 -0
- package/dist/radio/index.d.ts +7 -0
- package/dist/radio/index.js +2 -0
- package/dist/radio/index.mjs +273 -0
- package/dist/radio/types.d.ts +45 -0
- package/dist/rate/Rate.vue.d.ts +139 -0
- package/dist/rate/index.d.ts +140 -0
- package/dist/rate/index.js +3 -0
- package/dist/rate/index.mjs +276 -0
- package/dist/rate/types.d.ts +66 -0
- package/dist/rich-text/RichText.vue.d.ts +25 -0
- package/dist/rich-text/index.d.ts +17 -0
- package/dist/rich-text/index.js +2 -0
- package/dist/rich-text/index.mjs +312 -0
- package/dist/scrollbar/Scrollbar.vue.d.ts +37 -0
- package/dist/scrollbar/index.d.ts +5 -0
- package/dist/scrollbar/index.js +2 -0
- package/dist/scrollbar/index.mjs +10 -0
- package/dist/scrollbar/types.d.ts +17 -0
- package/dist/select/Option.vue.d.ts +45 -0
- package/dist/select/Select.vue.d.ts +136 -0
- package/dist/select/index.d.ts +9 -0
- package/dist/select/index.js +3 -0
- package/dist/select/index.mjs +656 -0
- package/dist/select/types.d.ts +92 -0
- package/dist/slider/Slider.vue.d.ts +123 -0
- package/dist/slider/index.d.ts +5 -0
- package/dist/slider/index.js +2 -0
- package/dist/slider/index.mjs +326 -0
- package/dist/slider/types.d.ts +57 -0
- package/dist/space/Space.vue.d.ts +75 -0
- package/dist/space/index.d.ts +5 -0
- package/dist/space/index.js +2 -0
- package/dist/space/index.mjs +104 -0
- package/dist/space/types.d.ts +34 -0
- package/dist/splitter/Splitter.vue.d.ts +52 -0
- package/dist/splitter/SplitterPane.vue.d.ts +38 -0
- package/dist/splitter/index.d.ts +7 -0
- package/dist/splitter/index.js +2 -0
- package/dist/splitter/index.mjs +252 -0
- package/dist/splitter/types.d.ts +41 -0
- package/dist/splitter/utils.d.ts +6 -0
- package/dist/style/Button.css +1 -0
- package/dist/style/Checkbox.css +1 -0
- package/dist/style/Icon.css +1 -0
- package/dist/style/Input.css +1 -0
- package/dist/style/Popover.css +1 -0
- package/dist/style/Scrollbar.css +1 -0
- package/dist/style/TimePanel.css +1 -0
- package/dist/style/autocomplete.css +1 -0
- package/dist/style/avatar.css +1 -0
- package/dist/style/badge.css +1 -0
- package/dist/style/base.css +1 -0
- package/dist/style/breadcrumb.css +1 -0
- package/dist/style/card.css +1 -0
- package/dist/style/carousel.css +1 -0
- package/dist/style/cascader.css +1 -0
- package/dist/style/collapse.css +1 -0
- package/dist/style/color-picker.css +1 -0
- package/dist/style/context-menu.css +1 -0
- package/dist/style/date-picker.css +1 -0
- package/dist/style/dialog.css +1 -0
- package/dist/style/divider.css +1 -0
- package/dist/style/drawer.css +1 -0
- package/dist/style/empty.css +1 -0
- package/dist/style/form.css +1 -0
- package/dist/style/grid.css +1 -0
- package/dist/style/image.css +1 -0
- package/dist/style/index.css +1 -0
- package/dist/style/input-number.css +1 -0
- package/dist/style/layout.css +1 -0
- package/dist/style/loading.css +1 -0
- package/dist/style/mentions.css +1 -0
- package/dist/style/menu.css +1 -0
- package/dist/style/message.css +1 -0
- package/dist/style/notification.css +1 -0
- package/dist/style/otp-input.css +1 -0
- package/dist/style/pagination.css +1 -0
- package/dist/style/radio.css +1 -0
- package/dist/style/rate.css +1 -0
- package/dist/style/rich-text.css +1 -0
- package/dist/style/select.css +1 -0
- package/dist/style/slider.css +1 -0
- package/dist/style/space.css +1 -0
- package/dist/style/splitter.css +1 -0
- package/dist/style/switch.css +1 -0
- package/dist/style/table.css +1 -0
- package/dist/style/tabs.css +1 -0
- package/dist/style/tag.css +1 -0
- package/dist/style/tooltip.css +1 -0
- package/dist/style/transfer.css +1 -0
- package/dist/style/tree-select.css +1 -0
- package/dist/style/tree.css +1 -0
- package/dist/style/upload.css +1 -0
- package/dist/style/watermark.css +1 -0
- package/dist/switch/Switch.vue.d.ts +95 -0
- package/dist/switch/index.d.ts +5 -0
- package/dist/switch/index.js +2 -0
- package/dist/switch/index.mjs +285 -0
- package/dist/switch/types.d.ts +81 -0
- package/dist/table/Table.vue.d.ts +102 -0
- package/dist/table/index.d.ts +5 -0
- package/dist/table/index.js +2 -0
- package/dist/table/index.mjs +263 -0
- package/dist/table/types.d.ts +64 -0
- package/dist/tabs/TabPane.vue.d.ts +55 -0
- package/dist/tabs/Tabs.vue.d.ts +92 -0
- package/dist/tabs/index.d.ts +7 -0
- package/dist/tabs/index.js +2 -0
- package/dist/tabs/index.mjs +266 -0
- package/dist/tabs/types.d.ts +78 -0
- package/dist/tag/Tag.vue.d.ts +38 -0
- package/dist/tag/index.d.ts +5 -0
- package/dist/tag/index.js +2 -0
- package/dist/tag/index.mjs +123 -0
- package/dist/tag/types.d.ts +83 -0
- package/dist/time-picker/TimePanel.vue.d.ts +19 -0
- package/dist/time-picker/TimePicker.vue.d.ts +15 -0
- package/dist/time-picker/index.d.ts +6 -0
- package/dist/time-picker/index.js +4 -0
- package/dist/time-picker/index.mjs +91 -0
- package/dist/tooltip/Tooltip.vue.d.ts +99 -0
- package/dist/tooltip/index.d.ts +5 -0
- package/dist/tooltip/index.js +2 -0
- package/dist/tooltip/index.mjs +186 -0
- package/dist/tooltip/types.d.ts +37 -0
- package/dist/transfer/Transfer.vue.d.ts +104 -0
- package/dist/transfer/TransferPanel.vue.d.ts +90 -0
- package/dist/transfer/index.d.ts +167 -0
- package/dist/transfer/index.js +7 -0
- package/dist/transfer/index.mjs +343 -0
- package/dist/tree/Tree.vue.d.ts +237 -0
- package/dist/tree/TreeRow.vue.d.ts +24 -0
- package/dist/tree/TreeView.vue.d.ts +24 -0
- package/dist/tree/context.d.ts +3 -0
- package/dist/tree/index.d.ts +431 -0
- package/dist/tree/index.js +2 -0
- package/dist/tree/index.mjs +548 -0
- package/dist/tree/types.d.ts +127 -0
- package/dist/tree/use-tree-foundation.d.ts +37 -0
- package/dist/tree-select/TreeNode.vue.d.ts +7 -0
- package/dist/tree-select/TreeSelect.vue.d.ts +210 -0
- package/dist/tree-select/index.d.ts +7 -0
- package/dist/tree-select/index.js +3 -0
- package/dist/tree-select/index.mjs +799 -0
- package/dist/tree-select/types.d.ts +111 -0
- package/dist/upload/Upload.vue.d.ts +50 -0
- package/dist/upload/index.d.ts +67 -0
- package/dist/upload/index.js +3 -0
- package/dist/upload/index.mjs +271 -0
- package/dist/utils/install.d.ts +3 -0
- package/dist/utils/style.d.ts +1 -0
- package/dist/watermark/Watermark.vue.d.ts +98 -0
- package/dist/watermark/index.d.ts +5 -0
- package/dist/watermark/index.js +2 -0
- package/dist/watermark/index.mjs +183 -0
- package/dist/watermark/types.d.ts +85 -0
- package/package.json +69 -0
- package/src/autocomplete/style/index.css +80 -0
- package/src/avatar/style/index.css +105 -0
- package/src/badge/style/index.css +232 -0
- package/src/base.css +4 -0
- package/src/breadcrumb/style/index.css +75 -0
- package/src/button/style/index.css +242 -0
- package/src/card/style/index.css +60 -0
- package/src/carousel/style/index.css +195 -0
- package/src/cascader/style/index.css +153 -0
- package/src/checkbox/style/index.css +165 -0
- package/src/collapse/style/index.css +166 -0
- package/src/color-picker/style/index.css +132 -0
- package/src/context-menu/style/index.css +21 -0
- package/src/date-picker/style/index.css +372 -0
- package/src/dialog/style/index.css +141 -0
- package/src/divider/style/index.css +112 -0
- package/src/drawer/style/index.css +211 -0
- package/src/dropdown/style/index.css +118 -0
- package/src/empty/style/index.css +87 -0
- package/src/form/style/index.css +148 -0
- package/src/grid/style/index.css +16 -0
- package/src/icon/style/index.css +28 -0
- package/src/image/style/index.css +114 -0
- package/src/input/style/index.css +217 -0
- package/src/input-number/style/index.css +166 -0
- package/src/layout/style/index.css +37 -0
- package/src/loading/style/index.css +58 -0
- package/src/mentions/style/index.css +83 -0
- package/src/menu/style/index.css +300 -0
- package/src/message/style/index.css +109 -0
- package/src/notification/style/index.css +116 -0
- package/src/otp-input/style/index.css +96 -0
- package/src/pagination/style/index.css +96 -0
- package/src/popover/style/index.css +47 -0
- package/src/radio/style/index.css +185 -0
- package/src/rate/style/index.css +89 -0
- package/src/rich-text/style/index.css +154 -0
- package/src/scrollbar/style/index.css +57 -0
- package/src/select/style/index.css +262 -0
- package/src/slider/style/index.css +181 -0
- package/src/space/style/index.css +31 -0
- package/src/splitter/style/index.css +76 -0
- package/src/style.css +1 -0
- package/src/styles/reset.css +29 -0
- package/src/switch/style/index.css +164 -0
- package/src/table/style/index.css +108 -0
- package/src/tabs/style/index.css +270 -0
- package/src/tag/style/index.css +207 -0
- package/src/time-picker/style/index.css +135 -0
- package/src/tooltip/style/index.css +50 -0
- package/src/transfer/style/index.css +181 -0
- package/src/tree/style/index.css +246 -0
- package/src/tree-select/style/index.css +346 -0
- package/src/upload/style/index.css +166 -0
- package/src/watermark/style/index.css +15 -0
- package/style.css +1 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export interface InputProps {
|
|
2
|
+
/** 绑定值 | Binding value */
|
|
3
|
+
modelValue?: string | number;
|
|
4
|
+
/** 类型 | Input type */
|
|
5
|
+
type?: 'text' | 'password' | 'textarea' | 'number' | 'email' | 'tel';
|
|
6
|
+
/** 占位文字 | Placeholder */
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
/** 禁用 | Disabled */
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/** 只读 | Readonly */
|
|
11
|
+
readonly?: boolean;
|
|
12
|
+
/** 可清空 | Clearable */
|
|
13
|
+
clearable?: boolean;
|
|
14
|
+
/** 显示密码切换 | Show password toggle */
|
|
15
|
+
showPassword?: boolean;
|
|
16
|
+
/** 尺寸 | Size */
|
|
17
|
+
size?: 'sm' | 'md' | 'lg';
|
|
18
|
+
/** 最大长度 | Maximum length */
|
|
19
|
+
maxLength?: number | string;
|
|
20
|
+
/** 最小长度 | Minimum length */
|
|
21
|
+
minLength?: number | string;
|
|
22
|
+
/** 显示字数统计 | Show word count */
|
|
23
|
+
showWordLimit?: boolean;
|
|
24
|
+
/** 行数 (仅 textarea) | Rows (textarea only) */
|
|
25
|
+
rows?: number | string;
|
|
26
|
+
/** 自适应高度 (仅 textarea) | Autosize (textarea only) */
|
|
27
|
+
autosize?: boolean | {
|
|
28
|
+
minRows?: number;
|
|
29
|
+
maxRows?: number;
|
|
30
|
+
};
|
|
31
|
+
/** 前缀图标 | Prefix icon */
|
|
32
|
+
prefixIcon?: string;
|
|
33
|
+
/** 后缀图标 | Suffix icon */
|
|
34
|
+
suffixIcon?: string;
|
|
35
|
+
/** 自动聚焦 | Autofocus */
|
|
36
|
+
autofocus?: boolean;
|
|
37
|
+
/** 原生 autocomplete | Native autocomplete */
|
|
38
|
+
autocomplete?: string;
|
|
39
|
+
/** 原生 name | Native name */
|
|
40
|
+
name?: string;
|
|
41
|
+
/** 原生 id | Native id */
|
|
42
|
+
id?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface InputEmits {
|
|
45
|
+
(e: 'update:modelValue', value: string): void;
|
|
46
|
+
(e: 'input', value: string): void;
|
|
47
|
+
(e: 'change', value: string): void;
|
|
48
|
+
(e: 'focus', event: FocusEvent): void;
|
|
49
|
+
(e: 'blur', event: FocusEvent): void;
|
|
50
|
+
(e: 'clear'): void;
|
|
51
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
readonly modelValue: {
|
|
3
|
+
readonly type: import('vue').PropType<number | null>;
|
|
4
|
+
readonly default: null;
|
|
5
|
+
};
|
|
6
|
+
readonly min: {
|
|
7
|
+
readonly type: NumberConstructor;
|
|
8
|
+
readonly default: number;
|
|
9
|
+
};
|
|
10
|
+
readonly max: {
|
|
11
|
+
readonly type: NumberConstructor;
|
|
12
|
+
readonly default: number;
|
|
13
|
+
};
|
|
14
|
+
readonly step: {
|
|
15
|
+
readonly type: NumberConstructor;
|
|
16
|
+
readonly default: 1;
|
|
17
|
+
};
|
|
18
|
+
readonly stepStrictly: {
|
|
19
|
+
readonly type: BooleanConstructor;
|
|
20
|
+
readonly default: false;
|
|
21
|
+
};
|
|
22
|
+
readonly precision: {
|
|
23
|
+
readonly type: NumberConstructor;
|
|
24
|
+
};
|
|
25
|
+
readonly disabled: {
|
|
26
|
+
readonly type: BooleanConstructor;
|
|
27
|
+
readonly default: false;
|
|
28
|
+
};
|
|
29
|
+
readonly readonly: {
|
|
30
|
+
readonly type: BooleanConstructor;
|
|
31
|
+
readonly default: false;
|
|
32
|
+
};
|
|
33
|
+
readonly size: {
|
|
34
|
+
readonly type: import('vue').PropType<"sm" | "md" | "lg">;
|
|
35
|
+
};
|
|
36
|
+
readonly controls: {
|
|
37
|
+
readonly type: BooleanConstructor;
|
|
38
|
+
readonly default: true;
|
|
39
|
+
};
|
|
40
|
+
readonly controlsPosition: {
|
|
41
|
+
readonly type: import('vue').PropType<"" | "right">;
|
|
42
|
+
readonly default: "";
|
|
43
|
+
};
|
|
44
|
+
readonly placeholder: {
|
|
45
|
+
readonly type: StringConstructor;
|
|
46
|
+
readonly default: "";
|
|
47
|
+
};
|
|
48
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
49
|
+
focus: (_event: FocusEvent) => void;
|
|
50
|
+
blur: (_event: FocusEvent) => void;
|
|
51
|
+
change: (_val: number | null) => void;
|
|
52
|
+
input: (_val: number | null) => void;
|
|
53
|
+
"update:modelValue": (_val: number | null) => void;
|
|
54
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
55
|
+
readonly modelValue: {
|
|
56
|
+
readonly type: import('vue').PropType<number | null>;
|
|
57
|
+
readonly default: null;
|
|
58
|
+
};
|
|
59
|
+
readonly min: {
|
|
60
|
+
readonly type: NumberConstructor;
|
|
61
|
+
readonly default: number;
|
|
62
|
+
};
|
|
63
|
+
readonly max: {
|
|
64
|
+
readonly type: NumberConstructor;
|
|
65
|
+
readonly default: number;
|
|
66
|
+
};
|
|
67
|
+
readonly step: {
|
|
68
|
+
readonly type: NumberConstructor;
|
|
69
|
+
readonly default: 1;
|
|
70
|
+
};
|
|
71
|
+
readonly stepStrictly: {
|
|
72
|
+
readonly type: BooleanConstructor;
|
|
73
|
+
readonly default: false;
|
|
74
|
+
};
|
|
75
|
+
readonly precision: {
|
|
76
|
+
readonly type: NumberConstructor;
|
|
77
|
+
};
|
|
78
|
+
readonly disabled: {
|
|
79
|
+
readonly type: BooleanConstructor;
|
|
80
|
+
readonly default: false;
|
|
81
|
+
};
|
|
82
|
+
readonly readonly: {
|
|
83
|
+
readonly type: BooleanConstructor;
|
|
84
|
+
readonly default: false;
|
|
85
|
+
};
|
|
86
|
+
readonly size: {
|
|
87
|
+
readonly type: import('vue').PropType<"sm" | "md" | "lg">;
|
|
88
|
+
};
|
|
89
|
+
readonly controls: {
|
|
90
|
+
readonly type: BooleanConstructor;
|
|
91
|
+
readonly default: true;
|
|
92
|
+
};
|
|
93
|
+
readonly controlsPosition: {
|
|
94
|
+
readonly type: import('vue').PropType<"" | "right">;
|
|
95
|
+
readonly default: "";
|
|
96
|
+
};
|
|
97
|
+
readonly placeholder: {
|
|
98
|
+
readonly type: StringConstructor;
|
|
99
|
+
readonly default: "";
|
|
100
|
+
};
|
|
101
|
+
}>> & Readonly<{
|
|
102
|
+
onFocus?: ((_event: FocusEvent) => any) | undefined;
|
|
103
|
+
onBlur?: ((_event: FocusEvent) => any) | undefined;
|
|
104
|
+
onChange?: ((_val: number | null) => any) | undefined;
|
|
105
|
+
onInput?: ((_val: number | null) => any) | undefined;
|
|
106
|
+
"onUpdate:modelValue"?: ((_val: number | null) => any) | undefined;
|
|
107
|
+
}>, {
|
|
108
|
+
readonly disabled: boolean;
|
|
109
|
+
readonly modelValue: number | null;
|
|
110
|
+
readonly placeholder: string;
|
|
111
|
+
readonly readonly: boolean;
|
|
112
|
+
readonly min: number;
|
|
113
|
+
readonly max: number;
|
|
114
|
+
readonly step: number;
|
|
115
|
+
readonly stepStrictly: boolean;
|
|
116
|
+
readonly controls: boolean;
|
|
117
|
+
readonly controlsPosition: "" | "right";
|
|
118
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
119
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require('../style/input-number.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../chunks/manager-C0AUxQ1I.js");const k=require("../chunks/index-DWAWrVaT.js"),D=require("../chunks/use-signals-Bz1smiXh.js"),P=require("../chunks/use-form-item-CloIcyon.js"),q=require("../chunks/use-id-BycaM3-h.js");function z(t={}){var I;const p=t.min??-1/0,a=t.max??1/0,r=t.step??1,m=t.stepStrictly??!1,o=k.signal(typeof t.value=="function"?t.value():t.value??null),d=k.signal(((I=o.value)==null?void 0:I.toString())??""),f=k.signal(typeof t.disabled=="function"?t.disabled():t.disabled??!1),v=k.signal(typeof t.readonly=="function"?t.readonly():t.readonly??!1),g=k.signal(!1);typeof t.value=="function"&&k.effect(()=>{const n=t.value();n!==o.value&&(o.value=n,d.value=(n==null?void 0:n.toString())??"")});const C=n=>{if(n===null||isNaN(n))return null;let c=Math.max(p,Math.min(a,n));if(m){const u=(c-(p!==-1/0?p:0))%r;u!==0&&(c=u>=r/2?c-u+r:c-u)}if(t.precision!==void 0)c=parseFloat(c.toFixed(t.precision));else{const u=r.toString(),N=u.indexOf(".");if(N!==-1){const h=u.length-N-1;c=parseFloat(c.toFixed(h))}}return c},i=(n,c=!1)=>{var h,V;if(f.value||v.value)return;const u=C(n),N=u!==o.value;o.value=u,d.value=(u==null?void 0:u.toString())??"",N&&((h=t.onInput)==null||h.call(t,u),c&&((V=t.onChange)==null||V.call(t,u)))};return{state:{get value(){return o.value},set value(n){i(n)},get displayValue(){return d.value},set displayValue(n){d.value=n},get disabled(){return f.value},set disabled(n){f.value=n},get readonly(){return v.value},set readonly(n){v.value=n},get focused(){return g.value},set focused(n){g.value=n},get canIncrease(){return(o.value??0)+r<=a},get canDecrease(){return(o.value??0)-r>=p}},actions:{increase:()=>{const n=o.value??0;i(n+r,!0)},decrease:()=>{const n=o.value??0;i(n-r,!0)},handleInput:n=>{d.value=n},handleBlur:()=>{g.value=!1;const n=parseFloat(d.value);i(isNaN(n)?null:n,!0)},setFocused:n=>{g.value=n}},props:{role:"spinbutton","aria-valuemin":p,"aria-valuemax":a,get"aria-valuenow"(){return o.value!==null?o.value:void 0},min:p,max:a,step:r,disabled:f.value,readonly:v.value}}}const F={modelValue:{type:Number,default:null},min:{type:Number,default:-1/0},max:{type:Number,default:1/0},step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},precision:{type:Number},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},size:{type:String},controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},placeholder:{type:String,default:""}},_={"update:modelValue":t=>!0,change:t=>!0,input:t=>!0,blur:t=>!0,focus:t=>!0},j=["id","value","placeholder"],L={key:2,class:"l-input-number__controls-separator"},$=e.defineComponent({name:"InputNumber",__name:"InputNumber",props:F,emits:_,setup(t,{emit:p}){const a=t,r=p,{formItem:m,size:o,disabled:d,readonly:f,inputId:v}=P.useFormItem(a),g=q.useId("input-number"),C=e.computed(()=>a.id||(v==null?void 0:v.value)||g),i=z({value:a.modelValue,min:a.min,max:a.max,step:a.step,precision:a.precision,stepStrictly:a.stepStrictly,disabled:()=>d.value,readonly:()=>f.value,onInput:l=>{r("update:modelValue",l),r("input",l)},onChange:l=>{r("change",l),m==null||m.validate("change").catch(()=>{})}}),{value:x,displayValue:w,disabled:b,readonly:y,focused:I,canIncrease:n,canDecrease:c}=D.useController(i,{disabled:()=>d.value,readonly:()=>f.value}),u=e.computed(()=>({role:"spinbutton","aria-valuemin":a.min,"aria-valuemax":a.max,"aria-valuenow":x.value??void 0,min:a.min,max:a.max,step:a.step,disabled:b.value,readonly:y.value}));e.watch(()=>a.modelValue,l=>{l!==x.value&&(i.state.value=l)});const N=l=>{const s=l.target;i.actions.handleInput(s.value);const B=s.value.trim()===""?null:Number.parseFloat(s.value);r("input",Number.isNaN(B)?null:B)},h=l=>{i.actions.handleBlur(),r("blur",l),m==null||m.validate("blur").catch(()=>{})},V=l=>{i.actions.setFocused(!0),r("focus",l)},E=l=>{l.key==="ArrowUp"?(l.preventDefault(),i.actions.increase()):l.key==="ArrowDown"&&(l.preventDefault(),i.actions.decrease())},M=e.computed(()=>["l-input-number",`l-input-number--${o.value}`,{"is-disabled":b.value,"is-readonly":y.value,"is-focused":I.value,"l-input-number--right":a.controlsPosition==="right"}]);return(l,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(M.value)},[l.controls?(e.openBlock(),e.createElementBlock("span",{key:0,role:"button","aria-label":"decrease number",class:e.normalizeClass(["l-input-number__decrease",{"is-disabled":!e.unref(c)||e.unref(b)||e.unref(y)}]),onClick:s[0]||(s[0]=B=>e.unref(c)&&!e.unref(b)&&!e.unref(y)&&e.unref(i).actions.decrease()),onMousedown:s[1]||(s[1]=e.withModifiers(()=>{},["prevent"]))},[...s[4]||(s[4]=[e.createElementVNode("svg",{class:"l-input-number__icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},[e.createElementVNode("path",{d:"M5 12h14","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],34)):e.createCommentVNode("",!0),e.createElementVNode("input",e.mergeProps({id:C.value,type:"text",class:"l-input-number__input"},u.value,{value:e.unref(w),placeholder:l.placeholder,autocomplete:"off",onInput:N,onBlur:h,onFocus:V,onKeydown:E}),null,16,j),l.controls?(e.openBlock(),e.createElementBlock("span",{key:1,role:"button","aria-label":"increase number",class:e.normalizeClass(["l-input-number__increase",{"is-disabled":!e.unref(n)||e.unref(b)||e.unref(y)}]),onClick:s[2]||(s[2]=B=>e.unref(n)&&!e.unref(b)&&!e.unref(y)&&e.unref(i).actions.increase()),onMousedown:s[3]||(s[3]=e.withModifiers(()=>{},["prevent"]))},[...s[5]||(s[5]=[e.createElementVNode("svg",{class:"l-input-number__icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},[e.createElementVNode("path",{d:"M12 5v14M5 12h14","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],34)):e.createCommentVNode("",!0),l.controls&&l.controlsPosition==="right"?(e.openBlock(),e.createElementBlock("div",L)):e.createCommentVNode("",!0)],2))}}),S=$;S.install=t=>{t.component("LInputNumber",S)};exports.LInputNumber=S;exports.default=S;exports.inputNumberEmits=_;exports.inputNumberProps=F;
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
import '../style/input-number.css';
|
|
2
|
+
import { defineComponent as A, computed as _, watch as K, openBlock as V, createElementBlock as B, normalizeClass as D, withModifiers as z, unref as s, createElementVNode as I, createCommentVNode as M, mergeProps as L } from "vue";
|
|
3
|
+
import "../chunks/manager-BUdQK4AD.mjs";
|
|
4
|
+
import { s as k, e as R } from "../chunks/index-B0yEC3RG.mjs";
|
|
5
|
+
import { u as O } from "../chunks/use-signals-CE1T2jXK.mjs";
|
|
6
|
+
import { u as U } from "../chunks/use-form-item-CqDbWCiU.mjs";
|
|
7
|
+
import { u as q } from "../chunks/use-id-D3casveg.mjs";
|
|
8
|
+
function G(t = {}) {
|
|
9
|
+
var x;
|
|
10
|
+
const p = t.min ?? -1 / 0, n = t.max ?? 1 / 0, u = t.step ?? 1, v = t.stepStrictly ?? !1, o = k(
|
|
11
|
+
typeof t.value == "function" ? t.value() : t.value ?? null
|
|
12
|
+
), c = k(((x = o.value) == null ? void 0 : x.toString()) ?? ""), f = k(typeof t.disabled == "function" ? t.disabled() : t.disabled ?? !1), m = k(typeof t.readonly == "function" ? t.readonly() : t.readonly ?? !1), g = k(!1);
|
|
13
|
+
typeof t.value == "function" && R(() => {
|
|
14
|
+
const e = t.value();
|
|
15
|
+
e !== o.value && (o.value = e, c.value = (e == null ? void 0 : e.toString()) ?? "");
|
|
16
|
+
});
|
|
17
|
+
const C = (e) => {
|
|
18
|
+
if (e === null || isNaN(e)) return null;
|
|
19
|
+
let d = Math.max(p, Math.min(n, e));
|
|
20
|
+
if (v) {
|
|
21
|
+
const l = (d - (p !== -1 / 0 ? p : 0)) % u;
|
|
22
|
+
l !== 0 && (d = l >= u / 2 ? d - l + u : d - l);
|
|
23
|
+
}
|
|
24
|
+
if (t.precision !== void 0)
|
|
25
|
+
d = parseFloat(d.toFixed(t.precision));
|
|
26
|
+
else {
|
|
27
|
+
const l = u.toString(), N = l.indexOf(".");
|
|
28
|
+
if (N !== -1) {
|
|
29
|
+
const h = l.length - N - 1;
|
|
30
|
+
d = parseFloat(d.toFixed(h));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return d;
|
|
34
|
+
}, i = (e, d = !1) => {
|
|
35
|
+
var h, S;
|
|
36
|
+
if (f.value || m.value) return;
|
|
37
|
+
const l = C(e), N = l !== o.value;
|
|
38
|
+
o.value = l, c.value = (l == null ? void 0 : l.toString()) ?? "", N && ((h = t.onInput) == null || h.call(t, l), d && ((S = t.onChange) == null || S.call(t, l)));
|
|
39
|
+
};
|
|
40
|
+
return {
|
|
41
|
+
state: {
|
|
42
|
+
get value() {
|
|
43
|
+
return o.value;
|
|
44
|
+
},
|
|
45
|
+
set value(e) {
|
|
46
|
+
i(e);
|
|
47
|
+
},
|
|
48
|
+
get displayValue() {
|
|
49
|
+
return c.value;
|
|
50
|
+
},
|
|
51
|
+
set displayValue(e) {
|
|
52
|
+
c.value = e;
|
|
53
|
+
},
|
|
54
|
+
get disabled() {
|
|
55
|
+
return f.value;
|
|
56
|
+
},
|
|
57
|
+
set disabled(e) {
|
|
58
|
+
f.value = e;
|
|
59
|
+
},
|
|
60
|
+
get readonly() {
|
|
61
|
+
return m.value;
|
|
62
|
+
},
|
|
63
|
+
set readonly(e) {
|
|
64
|
+
m.value = e;
|
|
65
|
+
},
|
|
66
|
+
get focused() {
|
|
67
|
+
return g.value;
|
|
68
|
+
},
|
|
69
|
+
set focused(e) {
|
|
70
|
+
g.value = e;
|
|
71
|
+
},
|
|
72
|
+
get canIncrease() {
|
|
73
|
+
return (o.value ?? 0) + u <= n;
|
|
74
|
+
},
|
|
75
|
+
get canDecrease() {
|
|
76
|
+
return (o.value ?? 0) - u >= p;
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
actions: {
|
|
80
|
+
increase: () => {
|
|
81
|
+
const e = o.value ?? 0;
|
|
82
|
+
i(e + u, !0);
|
|
83
|
+
},
|
|
84
|
+
decrease: () => {
|
|
85
|
+
const e = o.value ?? 0;
|
|
86
|
+
i(e - u, !0);
|
|
87
|
+
},
|
|
88
|
+
handleInput: (e) => {
|
|
89
|
+
c.value = e;
|
|
90
|
+
},
|
|
91
|
+
handleBlur: () => {
|
|
92
|
+
g.value = !1;
|
|
93
|
+
const e = parseFloat(c.value);
|
|
94
|
+
i(isNaN(e) ? null : e, !0);
|
|
95
|
+
},
|
|
96
|
+
setFocused: (e) => {
|
|
97
|
+
g.value = e;
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
props: {
|
|
101
|
+
role: "spinbutton",
|
|
102
|
+
"aria-valuemin": p,
|
|
103
|
+
"aria-valuemax": n,
|
|
104
|
+
get "aria-valuenow"() {
|
|
105
|
+
return o.value !== null ? o.value : void 0;
|
|
106
|
+
},
|
|
107
|
+
min: p,
|
|
108
|
+
max: n,
|
|
109
|
+
step: u,
|
|
110
|
+
disabled: f.value,
|
|
111
|
+
readonly: m.value
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
const H = {
|
|
116
|
+
modelValue: {
|
|
117
|
+
type: Number,
|
|
118
|
+
default: null
|
|
119
|
+
},
|
|
120
|
+
min: {
|
|
121
|
+
type: Number,
|
|
122
|
+
default: -1 / 0
|
|
123
|
+
},
|
|
124
|
+
max: {
|
|
125
|
+
type: Number,
|
|
126
|
+
default: 1 / 0
|
|
127
|
+
},
|
|
128
|
+
step: {
|
|
129
|
+
type: Number,
|
|
130
|
+
default: 1
|
|
131
|
+
},
|
|
132
|
+
stepStrictly: {
|
|
133
|
+
type: Boolean,
|
|
134
|
+
default: !1
|
|
135
|
+
},
|
|
136
|
+
precision: {
|
|
137
|
+
type: Number
|
|
138
|
+
},
|
|
139
|
+
disabled: {
|
|
140
|
+
type: Boolean,
|
|
141
|
+
default: !1
|
|
142
|
+
},
|
|
143
|
+
readonly: {
|
|
144
|
+
type: Boolean,
|
|
145
|
+
default: !1
|
|
146
|
+
},
|
|
147
|
+
size: {
|
|
148
|
+
type: String
|
|
149
|
+
},
|
|
150
|
+
controls: {
|
|
151
|
+
type: Boolean,
|
|
152
|
+
default: !0
|
|
153
|
+
},
|
|
154
|
+
controlsPosition: {
|
|
155
|
+
type: String,
|
|
156
|
+
default: ""
|
|
157
|
+
},
|
|
158
|
+
placeholder: {
|
|
159
|
+
type: String,
|
|
160
|
+
default: ""
|
|
161
|
+
}
|
|
162
|
+
}, J = {
|
|
163
|
+
"update:modelValue": (t) => !0,
|
|
164
|
+
change: (t) => !0,
|
|
165
|
+
input: (t) => !0,
|
|
166
|
+
blur: (t) => !0,
|
|
167
|
+
focus: (t) => !0
|
|
168
|
+
}, Q = ["id", "value", "placeholder"], T = {
|
|
169
|
+
key: 2,
|
|
170
|
+
class: "l-input-number__controls-separator"
|
|
171
|
+
}, W = /* @__PURE__ */ A({
|
|
172
|
+
name: "InputNumber",
|
|
173
|
+
__name: "InputNumber",
|
|
174
|
+
props: H,
|
|
175
|
+
emits: J,
|
|
176
|
+
setup(t, { emit: p }) {
|
|
177
|
+
const n = t, u = p, { formItem: v, size: o, disabled: c, readonly: f, inputId: m } = U(n), g = q("input-number"), C = _(() => n.id || (m == null ? void 0 : m.value) || g), i = G({
|
|
178
|
+
value: n.modelValue,
|
|
179
|
+
min: n.min,
|
|
180
|
+
max: n.max,
|
|
181
|
+
step: n.step,
|
|
182
|
+
precision: n.precision,
|
|
183
|
+
stepStrictly: n.stepStrictly,
|
|
184
|
+
disabled: () => c.value,
|
|
185
|
+
readonly: () => f.value,
|
|
186
|
+
onInput: (a) => {
|
|
187
|
+
u("update:modelValue", a), u("input", a);
|
|
188
|
+
},
|
|
189
|
+
onChange: (a) => {
|
|
190
|
+
u("change", a), v == null || v.validate("change").catch(() => {
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
}), {
|
|
194
|
+
value: F,
|
|
195
|
+
displayValue: P,
|
|
196
|
+
disabled: b,
|
|
197
|
+
readonly: y,
|
|
198
|
+
focused: x,
|
|
199
|
+
canIncrease: e,
|
|
200
|
+
canDecrease: d
|
|
201
|
+
} = O(i, {
|
|
202
|
+
disabled: () => c.value,
|
|
203
|
+
readonly: () => f.value
|
|
204
|
+
}), l = _(() => ({
|
|
205
|
+
role: "spinbutton",
|
|
206
|
+
"aria-valuemin": n.min,
|
|
207
|
+
"aria-valuemax": n.max,
|
|
208
|
+
"aria-valuenow": F.value ?? void 0,
|
|
209
|
+
min: n.min,
|
|
210
|
+
max: n.max,
|
|
211
|
+
step: n.step,
|
|
212
|
+
disabled: b.value,
|
|
213
|
+
readonly: y.value
|
|
214
|
+
}));
|
|
215
|
+
K(() => n.modelValue, (a) => {
|
|
216
|
+
a !== F.value && (i.state.value = a);
|
|
217
|
+
});
|
|
218
|
+
const N = (a) => {
|
|
219
|
+
const r = a.target;
|
|
220
|
+
i.actions.handleInput(r.value);
|
|
221
|
+
const w = r.value.trim() === "" ? null : Number.parseFloat(r.value);
|
|
222
|
+
u("input", Number.isNaN(w) ? null : w);
|
|
223
|
+
}, h = (a) => {
|
|
224
|
+
i.actions.handleBlur(), u("blur", a), v == null || v.validate("blur").catch(() => {
|
|
225
|
+
});
|
|
226
|
+
}, S = (a) => {
|
|
227
|
+
i.actions.setFocused(!0), u("focus", a);
|
|
228
|
+
}, $ = (a) => {
|
|
229
|
+
a.key === "ArrowUp" ? (a.preventDefault(), i.actions.increase()) : a.key === "ArrowDown" && (a.preventDefault(), i.actions.decrease());
|
|
230
|
+
}, j = _(() => [
|
|
231
|
+
"l-input-number",
|
|
232
|
+
`l-input-number--${o.value}`,
|
|
233
|
+
{
|
|
234
|
+
"is-disabled": b.value,
|
|
235
|
+
"is-readonly": y.value,
|
|
236
|
+
"is-focused": x.value,
|
|
237
|
+
"l-input-number--right": n.controlsPosition === "right"
|
|
238
|
+
}
|
|
239
|
+
]);
|
|
240
|
+
return (a, r) => (V(), B("div", {
|
|
241
|
+
class: D(j.value)
|
|
242
|
+
}, [
|
|
243
|
+
a.controls ? (V(), B("span", {
|
|
244
|
+
key: 0,
|
|
245
|
+
role: "button",
|
|
246
|
+
"aria-label": "decrease number",
|
|
247
|
+
class: D(["l-input-number__decrease", { "is-disabled": !s(d) || s(b) || s(y) }]),
|
|
248
|
+
onClick: r[0] || (r[0] = (w) => s(d) && !s(b) && !s(y) && s(i).actions.decrease()),
|
|
249
|
+
onMousedown: r[1] || (r[1] = z(() => {
|
|
250
|
+
}, ["prevent"]))
|
|
251
|
+
}, [...r[4] || (r[4] = [
|
|
252
|
+
I("svg", {
|
|
253
|
+
class: "l-input-number__icon",
|
|
254
|
+
viewBox: "0 0 24 24",
|
|
255
|
+
fill: "none",
|
|
256
|
+
stroke: "currentColor"
|
|
257
|
+
}, [
|
|
258
|
+
I("path", {
|
|
259
|
+
d: "M5 12h14",
|
|
260
|
+
"stroke-linecap": "round",
|
|
261
|
+
"stroke-linejoin": "round"
|
|
262
|
+
})
|
|
263
|
+
], -1)
|
|
264
|
+
])], 34)) : M("", !0),
|
|
265
|
+
I("input", L({
|
|
266
|
+
id: C.value,
|
|
267
|
+
type: "text",
|
|
268
|
+
class: "l-input-number__input"
|
|
269
|
+
}, l.value, {
|
|
270
|
+
value: s(P),
|
|
271
|
+
placeholder: a.placeholder,
|
|
272
|
+
autocomplete: "off",
|
|
273
|
+
onInput: N,
|
|
274
|
+
onBlur: h,
|
|
275
|
+
onFocus: S,
|
|
276
|
+
onKeydown: $
|
|
277
|
+
}), null, 16, Q),
|
|
278
|
+
a.controls ? (V(), B("span", {
|
|
279
|
+
key: 1,
|
|
280
|
+
role: "button",
|
|
281
|
+
"aria-label": "increase number",
|
|
282
|
+
class: D(["l-input-number__increase", { "is-disabled": !s(e) || s(b) || s(y) }]),
|
|
283
|
+
onClick: r[2] || (r[2] = (w) => s(e) && !s(b) && !s(y) && s(i).actions.increase()),
|
|
284
|
+
onMousedown: r[3] || (r[3] = z(() => {
|
|
285
|
+
}, ["prevent"]))
|
|
286
|
+
}, [...r[5] || (r[5] = [
|
|
287
|
+
I("svg", {
|
|
288
|
+
class: "l-input-number__icon",
|
|
289
|
+
viewBox: "0 0 24 24",
|
|
290
|
+
fill: "none",
|
|
291
|
+
stroke: "currentColor"
|
|
292
|
+
}, [
|
|
293
|
+
I("path", {
|
|
294
|
+
d: "M12 5v14M5 12h14",
|
|
295
|
+
"stroke-linecap": "round",
|
|
296
|
+
"stroke-linejoin": "round"
|
|
297
|
+
})
|
|
298
|
+
], -1)
|
|
299
|
+
])], 34)) : M("", !0),
|
|
300
|
+
a.controls && a.controlsPosition === "right" ? (V(), B("div", T)) : M("", !0)
|
|
301
|
+
], 2));
|
|
302
|
+
}
|
|
303
|
+
}), E = W;
|
|
304
|
+
E.install = (t) => {
|
|
305
|
+
t.component("LInputNumber", E);
|
|
306
|
+
};
|
|
307
|
+
export {
|
|
308
|
+
E as LInputNumber,
|
|
309
|
+
E as default,
|
|
310
|
+
J as inputNumberEmits,
|
|
311
|
+
H as inputNumberProps
|
|
312
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
export declare const inputNumberProps: {
|
|
3
|
+
readonly modelValue: {
|
|
4
|
+
readonly type: PropType<number | null>;
|
|
5
|
+
readonly default: null;
|
|
6
|
+
};
|
|
7
|
+
readonly min: {
|
|
8
|
+
readonly type: NumberConstructor;
|
|
9
|
+
readonly default: number;
|
|
10
|
+
};
|
|
11
|
+
readonly max: {
|
|
12
|
+
readonly type: NumberConstructor;
|
|
13
|
+
readonly default: number;
|
|
14
|
+
};
|
|
15
|
+
readonly step: {
|
|
16
|
+
readonly type: NumberConstructor;
|
|
17
|
+
readonly default: 1;
|
|
18
|
+
};
|
|
19
|
+
readonly stepStrictly: {
|
|
20
|
+
readonly type: BooleanConstructor;
|
|
21
|
+
readonly default: false;
|
|
22
|
+
};
|
|
23
|
+
readonly precision: {
|
|
24
|
+
readonly type: NumberConstructor;
|
|
25
|
+
};
|
|
26
|
+
readonly disabled: {
|
|
27
|
+
readonly type: BooleanConstructor;
|
|
28
|
+
readonly default: false;
|
|
29
|
+
};
|
|
30
|
+
readonly readonly: {
|
|
31
|
+
readonly type: BooleanConstructor;
|
|
32
|
+
readonly default: false;
|
|
33
|
+
};
|
|
34
|
+
readonly size: {
|
|
35
|
+
readonly type: PropType<"sm" | "md" | "lg">;
|
|
36
|
+
};
|
|
37
|
+
readonly controls: {
|
|
38
|
+
readonly type: BooleanConstructor;
|
|
39
|
+
readonly default: true;
|
|
40
|
+
};
|
|
41
|
+
readonly controlsPosition: {
|
|
42
|
+
readonly type: PropType<"" | "right">;
|
|
43
|
+
readonly default: "";
|
|
44
|
+
};
|
|
45
|
+
readonly placeholder: {
|
|
46
|
+
readonly type: StringConstructor;
|
|
47
|
+
readonly default: "";
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export type InputNumberProps = ExtractPropTypes<typeof inputNumberProps>;
|
|
51
|
+
export declare const inputNumberEmits: {
|
|
52
|
+
'update:modelValue': (_val: number | null) => boolean;
|
|
53
|
+
change: (_val: number | null) => boolean;
|
|
54
|
+
input: (_val: number | null) => boolean;
|
|
55
|
+
blur: (_event: FocusEvent) => boolean;
|
|
56
|
+
focus: (_event: FocusEvent) => boolean;
|
|
57
|
+
};
|
|
58
|
+
export type InputNumberEmits = typeof inputNumberEmits;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: any;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
11
|
+
readonly tag: {
|
|
12
|
+
type: import('vue').PropType<string>;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
|
+
readonly tag: {
|
|
17
|
+
type: import('vue').PropType<string>;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
}>> & Readonly<{}>, {
|
|
21
|
+
readonly tag: string;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: any;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
11
|
+
readonly tag: {
|
|
12
|
+
type: import('vue').PropType<string>;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
|
+
readonly tag: {
|
|
17
|
+
type: import('vue').PropType<string>;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
}>> & Readonly<{}>, {
|
|
21
|
+
readonly tag: string;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: any;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
11
|
+
readonly tag: {
|
|
12
|
+
type: import('vue').PropType<string>;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
|
+
readonly tag: {
|
|
17
|
+
type: import('vue').PropType<string>;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
}>> & Readonly<{}>, {
|
|
21
|
+
readonly tag: string;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: any;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
11
|
+
readonly hasSider: BooleanConstructor;
|
|
12
|
+
readonly tag: {
|
|
13
|
+
type: import('vue').PropType<string>;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
17
|
+
readonly hasSider: BooleanConstructor;
|
|
18
|
+
readonly tag: {
|
|
19
|
+
type: import('vue').PropType<string>;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
}>> & Readonly<{}>, {
|
|
23
|
+
readonly hasSider: boolean;
|
|
24
|
+
readonly tag: string;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
26
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|