@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,139 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
readonly modelValue: {
|
|
3
|
+
readonly type: NumberConstructor;
|
|
4
|
+
readonly default: 0;
|
|
5
|
+
};
|
|
6
|
+
readonly max: {
|
|
7
|
+
readonly type: NumberConstructor;
|
|
8
|
+
readonly default: 5;
|
|
9
|
+
};
|
|
10
|
+
readonly allowHalf: {
|
|
11
|
+
readonly type: BooleanConstructor;
|
|
12
|
+
readonly default: false;
|
|
13
|
+
};
|
|
14
|
+
readonly disabled: {
|
|
15
|
+
readonly type: BooleanConstructor;
|
|
16
|
+
readonly default: false;
|
|
17
|
+
};
|
|
18
|
+
readonly readonly: {
|
|
19
|
+
readonly type: BooleanConstructor;
|
|
20
|
+
readonly default: false;
|
|
21
|
+
};
|
|
22
|
+
readonly color: {
|
|
23
|
+
readonly type: StringConstructor;
|
|
24
|
+
readonly default: "#fadb14";
|
|
25
|
+
};
|
|
26
|
+
readonly voidColor: {
|
|
27
|
+
readonly type: StringConstructor;
|
|
28
|
+
readonly default: "#e8e8e8";
|
|
29
|
+
};
|
|
30
|
+
readonly disabledColor: {
|
|
31
|
+
readonly type: StringConstructor;
|
|
32
|
+
readonly default: "#bfbfbf";
|
|
33
|
+
};
|
|
34
|
+
readonly icon: {
|
|
35
|
+
readonly type: StringConstructor;
|
|
36
|
+
readonly default: "lucide:star";
|
|
37
|
+
};
|
|
38
|
+
readonly voidIcon: {
|
|
39
|
+
readonly type: StringConstructor;
|
|
40
|
+
readonly default: "lucide:star";
|
|
41
|
+
};
|
|
42
|
+
readonly showText: {
|
|
43
|
+
readonly type: BooleanConstructor;
|
|
44
|
+
readonly default: false;
|
|
45
|
+
};
|
|
46
|
+
readonly texts: {
|
|
47
|
+
readonly type: import('vue').PropType<string[]>;
|
|
48
|
+
readonly default: () => string[];
|
|
49
|
+
};
|
|
50
|
+
readonly textColor: {
|
|
51
|
+
readonly type: StringConstructor;
|
|
52
|
+
readonly default: "#1f2937";
|
|
53
|
+
};
|
|
54
|
+
readonly size: {
|
|
55
|
+
readonly type: import('vue').PropType<number | string>;
|
|
56
|
+
readonly default: 20;
|
|
57
|
+
};
|
|
58
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
59
|
+
change: (value: number) => void;
|
|
60
|
+
"update:modelValue": (value: number) => void;
|
|
61
|
+
"hover-change": (value: number | null) => void;
|
|
62
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
63
|
+
readonly modelValue: {
|
|
64
|
+
readonly type: NumberConstructor;
|
|
65
|
+
readonly default: 0;
|
|
66
|
+
};
|
|
67
|
+
readonly max: {
|
|
68
|
+
readonly type: NumberConstructor;
|
|
69
|
+
readonly default: 5;
|
|
70
|
+
};
|
|
71
|
+
readonly allowHalf: {
|
|
72
|
+
readonly type: BooleanConstructor;
|
|
73
|
+
readonly default: false;
|
|
74
|
+
};
|
|
75
|
+
readonly disabled: {
|
|
76
|
+
readonly type: BooleanConstructor;
|
|
77
|
+
readonly default: false;
|
|
78
|
+
};
|
|
79
|
+
readonly readonly: {
|
|
80
|
+
readonly type: BooleanConstructor;
|
|
81
|
+
readonly default: false;
|
|
82
|
+
};
|
|
83
|
+
readonly color: {
|
|
84
|
+
readonly type: StringConstructor;
|
|
85
|
+
readonly default: "#fadb14";
|
|
86
|
+
};
|
|
87
|
+
readonly voidColor: {
|
|
88
|
+
readonly type: StringConstructor;
|
|
89
|
+
readonly default: "#e8e8e8";
|
|
90
|
+
};
|
|
91
|
+
readonly disabledColor: {
|
|
92
|
+
readonly type: StringConstructor;
|
|
93
|
+
readonly default: "#bfbfbf";
|
|
94
|
+
};
|
|
95
|
+
readonly icon: {
|
|
96
|
+
readonly type: StringConstructor;
|
|
97
|
+
readonly default: "lucide:star";
|
|
98
|
+
};
|
|
99
|
+
readonly voidIcon: {
|
|
100
|
+
readonly type: StringConstructor;
|
|
101
|
+
readonly default: "lucide:star";
|
|
102
|
+
};
|
|
103
|
+
readonly showText: {
|
|
104
|
+
readonly type: BooleanConstructor;
|
|
105
|
+
readonly default: false;
|
|
106
|
+
};
|
|
107
|
+
readonly texts: {
|
|
108
|
+
readonly type: import('vue').PropType<string[]>;
|
|
109
|
+
readonly default: () => string[];
|
|
110
|
+
};
|
|
111
|
+
readonly textColor: {
|
|
112
|
+
readonly type: StringConstructor;
|
|
113
|
+
readonly default: "#1f2937";
|
|
114
|
+
};
|
|
115
|
+
readonly size: {
|
|
116
|
+
readonly type: import('vue').PropType<number | string>;
|
|
117
|
+
readonly default: 20;
|
|
118
|
+
};
|
|
119
|
+
}>> & Readonly<{
|
|
120
|
+
onChange?: ((value: number) => any) | undefined;
|
|
121
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
122
|
+
"onHover-change"?: ((value: number | null) => any) | undefined;
|
|
123
|
+
}>, {
|
|
124
|
+
readonly size: string | number;
|
|
125
|
+
readonly disabled: boolean;
|
|
126
|
+
readonly modelValue: number;
|
|
127
|
+
readonly color: string;
|
|
128
|
+
readonly icon: string;
|
|
129
|
+
readonly readonly: boolean;
|
|
130
|
+
readonly textColor: string;
|
|
131
|
+
readonly max: number;
|
|
132
|
+
readonly allowHalf: boolean;
|
|
133
|
+
readonly voidColor: string;
|
|
134
|
+
readonly disabledColor: string;
|
|
135
|
+
readonly voidIcon: string;
|
|
136
|
+
readonly showText: boolean;
|
|
137
|
+
readonly texts: string[];
|
|
138
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
139
|
+
export default _default;
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
export declare const LRate: import('../utils/install').SFCWithInstall<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
readonly modelValue: {
|
|
3
|
+
readonly type: NumberConstructor;
|
|
4
|
+
readonly default: 0;
|
|
5
|
+
};
|
|
6
|
+
readonly max: {
|
|
7
|
+
readonly type: NumberConstructor;
|
|
8
|
+
readonly default: 5;
|
|
9
|
+
};
|
|
10
|
+
readonly allowHalf: {
|
|
11
|
+
readonly type: BooleanConstructor;
|
|
12
|
+
readonly default: false;
|
|
13
|
+
};
|
|
14
|
+
readonly disabled: {
|
|
15
|
+
readonly type: BooleanConstructor;
|
|
16
|
+
readonly default: false;
|
|
17
|
+
};
|
|
18
|
+
readonly readonly: {
|
|
19
|
+
readonly type: BooleanConstructor;
|
|
20
|
+
readonly default: false;
|
|
21
|
+
};
|
|
22
|
+
readonly color: {
|
|
23
|
+
readonly type: StringConstructor;
|
|
24
|
+
readonly default: "#fadb14";
|
|
25
|
+
};
|
|
26
|
+
readonly voidColor: {
|
|
27
|
+
readonly type: StringConstructor;
|
|
28
|
+
readonly default: "#e8e8e8";
|
|
29
|
+
};
|
|
30
|
+
readonly disabledColor: {
|
|
31
|
+
readonly type: StringConstructor;
|
|
32
|
+
readonly default: "#bfbfbf";
|
|
33
|
+
};
|
|
34
|
+
readonly icon: {
|
|
35
|
+
readonly type: StringConstructor;
|
|
36
|
+
readonly default: "lucide:star";
|
|
37
|
+
};
|
|
38
|
+
readonly voidIcon: {
|
|
39
|
+
readonly type: StringConstructor;
|
|
40
|
+
readonly default: "lucide:star";
|
|
41
|
+
};
|
|
42
|
+
readonly showText: {
|
|
43
|
+
readonly type: BooleanConstructor;
|
|
44
|
+
readonly default: false;
|
|
45
|
+
};
|
|
46
|
+
readonly texts: {
|
|
47
|
+
readonly type: import('vue').PropType<string[]>;
|
|
48
|
+
readonly default: () => string[];
|
|
49
|
+
};
|
|
50
|
+
readonly textColor: {
|
|
51
|
+
readonly type: StringConstructor;
|
|
52
|
+
readonly default: "#1f2937";
|
|
53
|
+
};
|
|
54
|
+
readonly size: {
|
|
55
|
+
readonly type: import('vue').PropType<number | string>;
|
|
56
|
+
readonly default: 20;
|
|
57
|
+
};
|
|
58
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
59
|
+
change: (value: number) => void;
|
|
60
|
+
"update:modelValue": (value: number) => void;
|
|
61
|
+
"hover-change": (value: number | null) => void;
|
|
62
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
63
|
+
readonly modelValue: {
|
|
64
|
+
readonly type: NumberConstructor;
|
|
65
|
+
readonly default: 0;
|
|
66
|
+
};
|
|
67
|
+
readonly max: {
|
|
68
|
+
readonly type: NumberConstructor;
|
|
69
|
+
readonly default: 5;
|
|
70
|
+
};
|
|
71
|
+
readonly allowHalf: {
|
|
72
|
+
readonly type: BooleanConstructor;
|
|
73
|
+
readonly default: false;
|
|
74
|
+
};
|
|
75
|
+
readonly disabled: {
|
|
76
|
+
readonly type: BooleanConstructor;
|
|
77
|
+
readonly default: false;
|
|
78
|
+
};
|
|
79
|
+
readonly readonly: {
|
|
80
|
+
readonly type: BooleanConstructor;
|
|
81
|
+
readonly default: false;
|
|
82
|
+
};
|
|
83
|
+
readonly color: {
|
|
84
|
+
readonly type: StringConstructor;
|
|
85
|
+
readonly default: "#fadb14";
|
|
86
|
+
};
|
|
87
|
+
readonly voidColor: {
|
|
88
|
+
readonly type: StringConstructor;
|
|
89
|
+
readonly default: "#e8e8e8";
|
|
90
|
+
};
|
|
91
|
+
readonly disabledColor: {
|
|
92
|
+
readonly type: StringConstructor;
|
|
93
|
+
readonly default: "#bfbfbf";
|
|
94
|
+
};
|
|
95
|
+
readonly icon: {
|
|
96
|
+
readonly type: StringConstructor;
|
|
97
|
+
readonly default: "lucide:star";
|
|
98
|
+
};
|
|
99
|
+
readonly voidIcon: {
|
|
100
|
+
readonly type: StringConstructor;
|
|
101
|
+
readonly default: "lucide:star";
|
|
102
|
+
};
|
|
103
|
+
readonly showText: {
|
|
104
|
+
readonly type: BooleanConstructor;
|
|
105
|
+
readonly default: false;
|
|
106
|
+
};
|
|
107
|
+
readonly texts: {
|
|
108
|
+
readonly type: import('vue').PropType<string[]>;
|
|
109
|
+
readonly default: () => string[];
|
|
110
|
+
};
|
|
111
|
+
readonly textColor: {
|
|
112
|
+
readonly type: StringConstructor;
|
|
113
|
+
readonly default: "#1f2937";
|
|
114
|
+
};
|
|
115
|
+
readonly size: {
|
|
116
|
+
readonly type: import('vue').PropType<number | string>;
|
|
117
|
+
readonly default: 20;
|
|
118
|
+
};
|
|
119
|
+
}>> & Readonly<{
|
|
120
|
+
onChange?: ((value: number) => any) | undefined;
|
|
121
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
122
|
+
"onHover-change"?: ((value: number | null) => any) | undefined;
|
|
123
|
+
}>, {
|
|
124
|
+
readonly size: string | number;
|
|
125
|
+
readonly disabled: boolean;
|
|
126
|
+
readonly modelValue: number;
|
|
127
|
+
readonly color: string;
|
|
128
|
+
readonly icon: string;
|
|
129
|
+
readonly readonly: boolean;
|
|
130
|
+
readonly textColor: string;
|
|
131
|
+
readonly max: number;
|
|
132
|
+
readonly allowHalf: boolean;
|
|
133
|
+
readonly voidColor: string;
|
|
134
|
+
readonly disabledColor: string;
|
|
135
|
+
readonly voidIcon: string;
|
|
136
|
+
readonly showText: boolean;
|
|
137
|
+
readonly texts: string[];
|
|
138
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>>;
|
|
139
|
+
export default LRate;
|
|
140
|
+
export * from './types';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
require('../style/rate.css');
|
|
2
|
+
require('../style/Icon.css');
|
|
3
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const z=require("../chunks/install-gnn2dOg9.js"),e=require("vue");require("../chunks/manager-C0AUxQ1I.js");const y=require("../chunks/index-DWAWrVaT.js"),M=require("../chunks/use-id-BycaM3-h.js"),T=require("../chunks/use-signals-Bz1smiXh.js"),A=require("../chunks/use-form-item-CloIcyon.js"),V=require("../chunks/Icon.vue_vue_type_script_setup_true_lang-YDWguTmi.js");function K(a={}){const g=a.max??5,r=a.allowHalf??!1,s=y.signal(a.value??0),v=y.signal(null),f=y.signal(typeof a.disabled=="function"?a.disabled():a.disabled??!1),m=y.signal(typeof a.readonly=="function"?a.readonly():a.readonly??!1);typeof a.disabled=="function"&&y.effect(()=>{f.value=a.disabled()}),typeof a.readonly=="function"&&y.effect(()=>{m.value=a.readonly()});const c=y.computed(()=>!f.value&&!m.value),b=t=>{var d;c.value&&(v.value=t,(d=a.onHoverChange)==null||d.call(a,t))},h=()=>{var t;c.value&&(v.value=null,(t=a.onHoverChange)==null||t.call(a,null))},p=t=>{var d;c.value&&(s.value=t,(d=a.onChange)==null||d.call(a,t))};return{state:{get value(){return s.value},set value(t){s.value=t},get hoverValue(){return v.value},get disabled(){return f.value},set disabled(t){f.value=t},get readonly(){return m.value},set readonly(t){m.value=t},get isInteractive(){return c.value}},actions:{handleHover:b,clearHover:h,selectValue:p,handleKeyDown:t=>{if(!c.value)return;const d=r?.5:1;let u=s.value;switch(t.key){case"ArrowUp":case"ArrowRight":t.preventDefault(),u=Math.min(g,u+d);break;case"ArrowDown":case"ArrowLeft":t.preventDefault(),u=Math.max(0,u-d);break;case"Home":t.preventDefault(),u=0;break;case"End":t.preventDefault(),u=g;break;default:return}u!==s.value&&p(u)}},props:{role:"slider","aria-valuemin":0,"aria-valuemax":g,get"aria-valuenow"(){return s.value},get"aria-disabled"(){return f.value},get"aria-readonly"(){return m.value},get tabindex(){return f.value?-1:0}}}}const H={modelValue:{type:Number,default:0},max:{type:Number,default:5},allowHalf:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},color:{type:String,default:"#fadb14"},voidColor:{type:String,default:"#e8e8e8"},disabledColor:{type:String,default:"#bfbfbf"},icon:{type:String,default:"lucide:star"},voidIcon:{type:String,default:"lucide:star"},showText:{type:Boolean,default:!1},texts:{type:Array,default:()=>["极差","失望","一般","满意","非常满意"]},textColor:{type:String,default:"#1f2937"},size:{type:[Number,String],default:20}},S={"update:modelValue":a=>typeof a=="number",change:a=>typeof a=="number","hover-change":a=>a===null||typeof a=="number"},L=["id","disabled"],P=["onMousemove","onClick"],F={class:"l-rate__star"},X={class:"l-rate__star-content l-rate__star-content--void"},j=e.defineComponent({name:"LRate",__name:"Rate",props:H,emits:S,setup(a,{emit:g}){const r=a,s=g,{formItem:v,disabled:f,readonly:m,inputId:c}=A.useFormItem(),b=e.computed(()=>r.disabled||f.value),h=e.computed(()=>r.readonly||m.value),p=M.useId("rate"),C=(c==null?void 0:c.value)||p,t=K({value:r.modelValue,max:r.max,allowHalf:r.allowHalf,disabled:()=>b.value,readonly:()=>h.value,onChange:l=>{s("update:modelValue",l),s("change",l),v==null||v.validate("change").catch(()=>{})},onHoverChange:l=>{s("hover-change",l)}}),{value:d,hoverValue:u,disabled:_,readonly:B,isInteractive:x}=T.useController(t,{value:()=>r.modelValue,disabled:()=>b.value,readonly:()=>h.value}),k=e.computed(()=>u.value!==null?u.value:d.value),w=l=>{const o=k.value;return o>=l?1:r.allowHalf&&o>=l-.5?.5:0},D=(l,o)=>{if(!x.value)return;let n=l;if(r.allowHalf){const i=o.currentTarget.getBoundingClientRect();o.clientX-i.left<i.width/2&&(n-=.5)}t.actions.selectValue(n)},E=(l,o)=>{if(!x.value)return;let n=l;if(r.allowHalf){const i=o.currentTarget.getBoundingClientRect();o.clientX-i.left<i.width/2&&(n-=.5)}t.actions.handleHover(n)},R=e.computed(()=>["l-rate",{"is-disabled":_.value,"is-readonly":B.value}]),N=l=>{const o=w(l),n=_.value?r.disabledColor:r.color;return{"--l-rate-star-color":o>0?n:r.voidColor,"--l-rate-star-size":typeof r.size=="number"?`${r.size}px`:r.size}},q=e.computed(()=>{if(!r.showText)return"";const l=Math.ceil(k.value);return r.texts[l-1]||""});return(l,o)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:R.value},e.unref(t).props,{onKeydown:o[0]||(o[0]=(...n)=>e.unref(t).actions.handleKeyDown&&e.unref(t).actions.handleKeyDown(...n)),onMouseleave:o[1]||(o[1]=(...n)=>e.unref(t).actions.clearHover&&e.unref(t).actions.clearHover(...n))}),[e.createElementVNode("input",{id:e.unref(C),type:"text",style:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)","white-space":"nowrap",border:"0"},"aria-hidden":"true",tabindex:"-1",disabled:e.unref(_)},null,8,L),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.max,n=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"l-rate__item",style:e.normalizeStyle(N(n)),onMousemove:i=>E(n,i),onClick:i=>D(n,i)},[e.createElementVNode("div",F,[e.createElementVNode("div",X,[e.createVNode(V._sfc_main,{name:l.voidIcon},null,8,["name"])]),e.createElementVNode("div",{class:"l-rate__star-content l-rate__star-content--active",style:e.normalizeStyle({width:w(n)===.5?"50%":w(n)===1?"100%":"0%"})},[e.createVNode(V._sfc_main,{name:l.icon},null,8,["name"])],4)])],44,P))),128)),l.showText?(e.openBlock(),e.createElementBlock("span",{key:0,class:"l-rate__text",style:e.normalizeStyle({color:l.textColor})},e.toDisplayString(q.value),5)):e.createCommentVNode("",!0)],16))}}),I=z.withInstall(j);exports.LRate=I;exports.default=I;exports.rateEmits=S;exports.rateProps=H;
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import '../style/rate.css';
|
|
2
|
+
import '../style/Icon.css';
|
|
3
|
+
import { w as L } from "../chunks/install-DJNxamQ0.mjs";
|
|
4
|
+
import { defineComponent as $, computed as g, openBlock as w, createElementBlock as C, mergeProps as F, unref as m, createElementVNode as _, Fragment as P, renderList as X, normalizeStyle as k, createVNode as R, toDisplayString as U, createCommentVNode as j } from "vue";
|
|
5
|
+
import "../chunks/manager-BUdQK4AD.mjs";
|
|
6
|
+
import { s as x, e as B, c as q } from "../chunks/index-B0yEC3RG.mjs";
|
|
7
|
+
import { u as G } from "../chunks/use-id-D3casveg.mjs";
|
|
8
|
+
import { u as J } from "../chunks/use-signals-CE1T2jXK.mjs";
|
|
9
|
+
import { u as O } from "../chunks/use-form-item-CqDbWCiU.mjs";
|
|
10
|
+
import { _ as z } from "../chunks/Icon.vue_vue_type_script_setup_true_lang-LQ-KuJ6a.mjs";
|
|
11
|
+
function Q(e = {}) {
|
|
12
|
+
const y = e.max ?? 5, l = e.allowHalf ?? !1, u = x(e.value ?? 0), f = x(null), c = x(typeof e.disabled == "function" ? e.disabled() : e.disabled ?? !1), v = x(typeof e.readonly == "function" ? e.readonly() : e.readonly ?? !1);
|
|
13
|
+
typeof e.disabled == "function" && B(() => {
|
|
14
|
+
c.value = e.disabled();
|
|
15
|
+
}), typeof e.readonly == "function" && B(() => {
|
|
16
|
+
v.value = e.readonly();
|
|
17
|
+
});
|
|
18
|
+
const d = q(() => !c.value && !v.value), h = (a) => {
|
|
19
|
+
var s;
|
|
20
|
+
d.value && (f.value = a, (s = e.onHoverChange) == null || s.call(e, a));
|
|
21
|
+
}, b = () => {
|
|
22
|
+
var a;
|
|
23
|
+
d.value && (f.value = null, (a = e.onHoverChange) == null || a.call(e, null));
|
|
24
|
+
}, p = (a) => {
|
|
25
|
+
var s;
|
|
26
|
+
d.value && (u.value = a, (s = e.onChange) == null || s.call(e, a));
|
|
27
|
+
};
|
|
28
|
+
return {
|
|
29
|
+
state: {
|
|
30
|
+
get value() {
|
|
31
|
+
return u.value;
|
|
32
|
+
},
|
|
33
|
+
set value(a) {
|
|
34
|
+
u.value = a;
|
|
35
|
+
},
|
|
36
|
+
get hoverValue() {
|
|
37
|
+
return f.value;
|
|
38
|
+
},
|
|
39
|
+
get disabled() {
|
|
40
|
+
return c.value;
|
|
41
|
+
},
|
|
42
|
+
set disabled(a) {
|
|
43
|
+
c.value = a;
|
|
44
|
+
},
|
|
45
|
+
get readonly() {
|
|
46
|
+
return v.value;
|
|
47
|
+
},
|
|
48
|
+
set readonly(a) {
|
|
49
|
+
v.value = a;
|
|
50
|
+
},
|
|
51
|
+
get isInteractive() {
|
|
52
|
+
return d.value;
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
actions: {
|
|
56
|
+
handleHover: h,
|
|
57
|
+
clearHover: b,
|
|
58
|
+
selectValue: p,
|
|
59
|
+
handleKeyDown: (a) => {
|
|
60
|
+
if (!d.value) return;
|
|
61
|
+
const s = l ? 0.5 : 1;
|
|
62
|
+
let o = u.value;
|
|
63
|
+
switch (a.key) {
|
|
64
|
+
case "ArrowUp":
|
|
65
|
+
case "ArrowRight":
|
|
66
|
+
a.preventDefault(), o = Math.min(y, o + s);
|
|
67
|
+
break;
|
|
68
|
+
case "ArrowDown":
|
|
69
|
+
case "ArrowLeft":
|
|
70
|
+
a.preventDefault(), o = Math.max(0, o - s);
|
|
71
|
+
break;
|
|
72
|
+
case "Home":
|
|
73
|
+
a.preventDefault(), o = 0;
|
|
74
|
+
break;
|
|
75
|
+
case "End":
|
|
76
|
+
a.preventDefault(), o = y;
|
|
77
|
+
break;
|
|
78
|
+
default:
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
o !== u.value && p(o);
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
props: {
|
|
85
|
+
role: "slider",
|
|
86
|
+
"aria-valuemin": 0,
|
|
87
|
+
"aria-valuemax": y,
|
|
88
|
+
get "aria-valuenow"() {
|
|
89
|
+
return u.value;
|
|
90
|
+
},
|
|
91
|
+
get "aria-disabled"() {
|
|
92
|
+
return c.value;
|
|
93
|
+
},
|
|
94
|
+
get "aria-readonly"() {
|
|
95
|
+
return v.value;
|
|
96
|
+
},
|
|
97
|
+
get tabindex() {
|
|
98
|
+
return c.value ? -1 : 0;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
const W = {
|
|
104
|
+
modelValue: {
|
|
105
|
+
type: Number,
|
|
106
|
+
default: 0
|
|
107
|
+
},
|
|
108
|
+
max: {
|
|
109
|
+
type: Number,
|
|
110
|
+
default: 5
|
|
111
|
+
},
|
|
112
|
+
allowHalf: {
|
|
113
|
+
type: Boolean,
|
|
114
|
+
default: !1
|
|
115
|
+
},
|
|
116
|
+
disabled: {
|
|
117
|
+
type: Boolean,
|
|
118
|
+
default: !1
|
|
119
|
+
},
|
|
120
|
+
readonly: {
|
|
121
|
+
type: Boolean,
|
|
122
|
+
default: !1
|
|
123
|
+
},
|
|
124
|
+
color: {
|
|
125
|
+
type: String,
|
|
126
|
+
default: "#fadb14"
|
|
127
|
+
// Standard golden color
|
|
128
|
+
},
|
|
129
|
+
voidColor: {
|
|
130
|
+
type: String,
|
|
131
|
+
default: "#e8e8e8"
|
|
132
|
+
},
|
|
133
|
+
disabledColor: {
|
|
134
|
+
type: String,
|
|
135
|
+
default: "#bfbfbf"
|
|
136
|
+
},
|
|
137
|
+
icon: {
|
|
138
|
+
type: String,
|
|
139
|
+
default: "lucide:star"
|
|
140
|
+
},
|
|
141
|
+
voidIcon: {
|
|
142
|
+
type: String,
|
|
143
|
+
default: "lucide:star"
|
|
144
|
+
},
|
|
145
|
+
showText: {
|
|
146
|
+
type: Boolean,
|
|
147
|
+
default: !1
|
|
148
|
+
},
|
|
149
|
+
texts: {
|
|
150
|
+
type: Array,
|
|
151
|
+
default: () => ["极差", "失望", "一般", "满意", "非常满意"]
|
|
152
|
+
},
|
|
153
|
+
textColor: {
|
|
154
|
+
type: String,
|
|
155
|
+
default: "#1f2937"
|
|
156
|
+
},
|
|
157
|
+
size: {
|
|
158
|
+
type: [Number, String],
|
|
159
|
+
default: 20
|
|
160
|
+
}
|
|
161
|
+
}, Y = {
|
|
162
|
+
"update:modelValue": (e) => typeof e == "number",
|
|
163
|
+
change: (e) => typeof e == "number",
|
|
164
|
+
"hover-change": (e) => e === null || typeof e == "number"
|
|
165
|
+
}, Z = ["id", "disabled"], ee = ["onMousemove", "onClick"], ae = { class: "l-rate__star" }, te = { class: "l-rate__star-content l-rate__star-content--void" }, le = /* @__PURE__ */ $({
|
|
166
|
+
name: "LRate",
|
|
167
|
+
__name: "Rate",
|
|
168
|
+
props: W,
|
|
169
|
+
emits: Y,
|
|
170
|
+
setup(e, { emit: y }) {
|
|
171
|
+
const l = e, u = y, { formItem: f, disabled: c, readonly: v, inputId: d } = O(), h = g(() => l.disabled || c.value), b = g(() => l.readonly || v.value), p = G("rate"), D = (d == null ? void 0 : d.value) || p, a = Q({
|
|
172
|
+
value: l.modelValue,
|
|
173
|
+
max: l.max,
|
|
174
|
+
allowHalf: l.allowHalf,
|
|
175
|
+
disabled: () => h.value,
|
|
176
|
+
readonly: () => b.value,
|
|
177
|
+
onChange: (t) => {
|
|
178
|
+
u("update:modelValue", t), u("change", t), f == null || f.validate("change").catch(() => {
|
|
179
|
+
});
|
|
180
|
+
},
|
|
181
|
+
onHoverChange: (t) => {
|
|
182
|
+
u("hover-change", t);
|
|
183
|
+
}
|
|
184
|
+
}), {
|
|
185
|
+
value: s,
|
|
186
|
+
hoverValue: o,
|
|
187
|
+
disabled: H,
|
|
188
|
+
readonly: M,
|
|
189
|
+
isInteractive: I
|
|
190
|
+
} = J(a, {
|
|
191
|
+
value: () => l.modelValue,
|
|
192
|
+
disabled: () => h.value,
|
|
193
|
+
readonly: () => b.value
|
|
194
|
+
}), S = g(() => o.value !== null ? o.value : s.value), V = (t) => {
|
|
195
|
+
const n = S.value;
|
|
196
|
+
return n >= t ? 1 : l.allowHalf && n >= t - 0.5 ? 0.5 : 0;
|
|
197
|
+
}, N = (t, n) => {
|
|
198
|
+
if (!I.value) return;
|
|
199
|
+
let r = t;
|
|
200
|
+
if (l.allowHalf) {
|
|
201
|
+
const i = n.currentTarget.getBoundingClientRect();
|
|
202
|
+
n.clientX - i.left < i.width / 2 && (r -= 0.5);
|
|
203
|
+
}
|
|
204
|
+
a.actions.selectValue(r);
|
|
205
|
+
}, T = (t, n) => {
|
|
206
|
+
if (!I.value) return;
|
|
207
|
+
let r = t;
|
|
208
|
+
if (l.allowHalf) {
|
|
209
|
+
const i = n.currentTarget.getBoundingClientRect();
|
|
210
|
+
n.clientX - i.left < i.width / 2 && (r -= 0.5);
|
|
211
|
+
}
|
|
212
|
+
a.actions.handleHover(r);
|
|
213
|
+
}, A = g(() => [
|
|
214
|
+
"l-rate",
|
|
215
|
+
{
|
|
216
|
+
"is-disabled": H.value,
|
|
217
|
+
"is-readonly": M.value
|
|
218
|
+
}
|
|
219
|
+
]), K = (t) => {
|
|
220
|
+
const n = V(t), r = H.value ? l.disabledColor : l.color;
|
|
221
|
+
return {
|
|
222
|
+
"--l-rate-star-color": n > 0 ? r : l.voidColor,
|
|
223
|
+
"--l-rate-star-size": typeof l.size == "number" ? `${l.size}px` : l.size
|
|
224
|
+
};
|
|
225
|
+
}, E = g(() => {
|
|
226
|
+
if (!l.showText) return "";
|
|
227
|
+
const t = Math.ceil(S.value);
|
|
228
|
+
return l.texts[t - 1] || "";
|
|
229
|
+
});
|
|
230
|
+
return (t, n) => (w(), C("div", F({ class: A.value }, m(a).props, {
|
|
231
|
+
onKeydown: n[0] || (n[0] = //@ts-ignore
|
|
232
|
+
(...r) => m(a).actions.handleKeyDown && m(a).actions.handleKeyDown(...r)),
|
|
233
|
+
onMouseleave: n[1] || (n[1] = //@ts-ignore
|
|
234
|
+
(...r) => m(a).actions.clearHover && m(a).actions.clearHover(...r))
|
|
235
|
+
}), [
|
|
236
|
+
_("input", {
|
|
237
|
+
id: m(D),
|
|
238
|
+
type: "text",
|
|
239
|
+
style: { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", "white-space": "nowrap", border: "0" },
|
|
240
|
+
"aria-hidden": "true",
|
|
241
|
+
tabindex: "-1",
|
|
242
|
+
disabled: m(H)
|
|
243
|
+
}, null, 8, Z),
|
|
244
|
+
(w(!0), C(P, null, X(t.max, (r) => (w(), C("div", {
|
|
245
|
+
key: r,
|
|
246
|
+
class: "l-rate__item",
|
|
247
|
+
style: k(K(r)),
|
|
248
|
+
onMousemove: (i) => T(r, i),
|
|
249
|
+
onClick: (i) => N(r, i)
|
|
250
|
+
}, [
|
|
251
|
+
_("div", ae, [
|
|
252
|
+
_("div", te, [
|
|
253
|
+
R(z, { name: t.voidIcon }, null, 8, ["name"])
|
|
254
|
+
]),
|
|
255
|
+
_("div", {
|
|
256
|
+
class: "l-rate__star-content l-rate__star-content--active",
|
|
257
|
+
style: k({ width: V(r) === 0.5 ? "50%" : V(r) === 1 ? "100%" : "0%" })
|
|
258
|
+
}, [
|
|
259
|
+
R(z, { name: t.icon }, null, 8, ["name"])
|
|
260
|
+
], 4)
|
|
261
|
+
])
|
|
262
|
+
], 44, ee))), 128)),
|
|
263
|
+
t.showText ? (w(), C("span", {
|
|
264
|
+
key: 0,
|
|
265
|
+
class: "l-rate__text",
|
|
266
|
+
style: k({ color: t.textColor })
|
|
267
|
+
}, U(E.value), 5)) : j("", !0)
|
|
268
|
+
], 16));
|
|
269
|
+
}
|
|
270
|
+
}), fe = L(le);
|
|
271
|
+
export {
|
|
272
|
+
fe as LRate,
|
|
273
|
+
fe as default,
|
|
274
|
+
Y as rateEmits,
|
|
275
|
+
W as rateProps
|
|
276
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
export declare const rateProps: {
|
|
3
|
+
readonly modelValue: {
|
|
4
|
+
readonly type: NumberConstructor;
|
|
5
|
+
readonly default: 0;
|
|
6
|
+
};
|
|
7
|
+
readonly max: {
|
|
8
|
+
readonly type: NumberConstructor;
|
|
9
|
+
readonly default: 5;
|
|
10
|
+
};
|
|
11
|
+
readonly allowHalf: {
|
|
12
|
+
readonly type: BooleanConstructor;
|
|
13
|
+
readonly default: false;
|
|
14
|
+
};
|
|
15
|
+
readonly disabled: {
|
|
16
|
+
readonly type: BooleanConstructor;
|
|
17
|
+
readonly default: false;
|
|
18
|
+
};
|
|
19
|
+
readonly readonly: {
|
|
20
|
+
readonly type: BooleanConstructor;
|
|
21
|
+
readonly default: false;
|
|
22
|
+
};
|
|
23
|
+
readonly color: {
|
|
24
|
+
readonly type: StringConstructor;
|
|
25
|
+
readonly default: "#fadb14";
|
|
26
|
+
};
|
|
27
|
+
readonly voidColor: {
|
|
28
|
+
readonly type: StringConstructor;
|
|
29
|
+
readonly default: "#e8e8e8";
|
|
30
|
+
};
|
|
31
|
+
readonly disabledColor: {
|
|
32
|
+
readonly type: StringConstructor;
|
|
33
|
+
readonly default: "#bfbfbf";
|
|
34
|
+
};
|
|
35
|
+
readonly icon: {
|
|
36
|
+
readonly type: StringConstructor;
|
|
37
|
+
readonly default: "lucide:star";
|
|
38
|
+
};
|
|
39
|
+
readonly voidIcon: {
|
|
40
|
+
readonly type: StringConstructor;
|
|
41
|
+
readonly default: "lucide:star";
|
|
42
|
+
};
|
|
43
|
+
readonly showText: {
|
|
44
|
+
readonly type: BooleanConstructor;
|
|
45
|
+
readonly default: false;
|
|
46
|
+
};
|
|
47
|
+
readonly texts: {
|
|
48
|
+
readonly type: PropType<string[]>;
|
|
49
|
+
readonly default: () => string[];
|
|
50
|
+
};
|
|
51
|
+
readonly textColor: {
|
|
52
|
+
readonly type: StringConstructor;
|
|
53
|
+
readonly default: "#1f2937";
|
|
54
|
+
};
|
|
55
|
+
readonly size: {
|
|
56
|
+
readonly type: PropType<number | string>;
|
|
57
|
+
readonly default: 20;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export type RateProps = ExtractPropTypes<typeof rateProps>;
|
|
61
|
+
export declare const rateEmits: {
|
|
62
|
+
'update:modelValue': (value: number) => boolean;
|
|
63
|
+
change: (value: number) => boolean;
|
|
64
|
+
'hover-change': (value: number | null) => boolean;
|
|
65
|
+
};
|
|
66
|
+
export type RateEmits = typeof rateEmits;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface RichTextProps {
|
|
2
|
+
modelValue?: string;
|
|
3
|
+
placeholder?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
readonly?: boolean;
|
|
6
|
+
size?: 'sm' | 'md' | 'lg';
|
|
7
|
+
minHeight?: string | number;
|
|
8
|
+
maxHeight?: string | number;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: import('vue').DefineComponent<RichTextProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
focus: (args_0: FocusEvent) => any;
|
|
12
|
+
blur: (args_0: FocusEvent) => any;
|
|
13
|
+
change: (args_0: string) => any;
|
|
14
|
+
"update:modelValue": (args_0: string) => any;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<RichTextProps> & Readonly<{
|
|
16
|
+
onFocus?: ((args_0: FocusEvent) => any) | undefined;
|
|
17
|
+
onBlur?: ((args_0: FocusEvent) => any) | undefined;
|
|
18
|
+
onChange?: ((args_0: string) => any) | undefined;
|
|
19
|
+
"onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
modelValue: string;
|
|
22
|
+
placeholder: string;
|
|
23
|
+
minHeight: string | number;
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const LRichText: import('../utils/install').SFCWithInstall<import('vue').DefineComponent<import('./RichText.vue').RichTextProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
|
+
focus: (args_0: FocusEvent) => any;
|
|
3
|
+
blur: (args_0: FocusEvent) => any;
|
|
4
|
+
change: (args_0: string) => any;
|
|
5
|
+
"update:modelValue": (args_0: string) => any;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<import('./RichText.vue').RichTextProps> & Readonly<{
|
|
7
|
+
onFocus?: ((args_0: FocusEvent) => any) | undefined;
|
|
8
|
+
onBlur?: ((args_0: FocusEvent) => any) | undefined;
|
|
9
|
+
onChange?: ((args_0: string) => any) | undefined;
|
|
10
|
+
"onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
|
|
11
|
+
}>, {
|
|
12
|
+
modelValue: string;
|
|
13
|
+
placeholder: string;
|
|
14
|
+
minHeight: string | number;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>>;
|
|
16
|
+
export default LRichText;
|
|
17
|
+
export * from './RichText.vue';
|