@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,266 @@
|
|
|
1
|
+
import '../style/tabs.css';
|
|
2
|
+
import { defineComponent as B, computed as _, provide as $, openBlock as p, createElementBlock as T, normalizeStyle as D, normalizeClass as V, createElementVNode as k, Fragment as x, renderList as E, unref as h, createBlock as K, resolveDynamicComponent as U, createTextVNode as j, toDisplayString as q, renderSlot as I, nextTick as F, inject as H, useSlots as M, ref as G, watch as C, onBeforeUnmount as J, withDirectives as O, vShow as Q, createCommentVNode as W } from "vue";
|
|
3
|
+
import "../chunks/manager-BUdQK4AD.mjs";
|
|
4
|
+
import { s as z, e as X } from "../chunks/index-B0yEC3RG.mjs";
|
|
5
|
+
import { u as Y } from "../chunks/use-signals-CE1T2jXK.mjs";
|
|
6
|
+
import { u as Z } from "../chunks/use-id-D3casveg.mjs";
|
|
7
|
+
function ee(a = {}) {
|
|
8
|
+
const s = z([]), n = z(
|
|
9
|
+
typeof a.value == "function" ? a.value() : a.value ?? a.defaultValue
|
|
10
|
+
), v = (e) => {
|
|
11
|
+
const t = s.value.filter((l) => !l.disabled);
|
|
12
|
+
if (t.length)
|
|
13
|
+
return t.some((l) => l.name === e) ? e : t[0].name;
|
|
14
|
+
};
|
|
15
|
+
if (typeof a.value == "function") {
|
|
16
|
+
const e = a.value;
|
|
17
|
+
X(() => {
|
|
18
|
+
n.value = v(e());
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
const o = () => {
|
|
22
|
+
n.value = v(n.value);
|
|
23
|
+
}, m = (e) => {
|
|
24
|
+
s.value.findIndex((l) => l.id === e.id) === -1 ? s.value = [...s.value, e] : s.value = s.value.map((l) => l.id === e.id ? e : l), o();
|
|
25
|
+
}, g = (e) => {
|
|
26
|
+
s.value = s.value.filter((t) => t.id !== e), o();
|
|
27
|
+
}, b = (e, t) => {
|
|
28
|
+
s.value = s.value.map((l) => l.id !== e ? l : { ...l, ...t }), o();
|
|
29
|
+
}, y = (e) => {
|
|
30
|
+
var l, u;
|
|
31
|
+
const t = s.value.find((d) => d.name === e);
|
|
32
|
+
!t || t.disabled || ((l = a.onTabClick) == null || l.call(a, e), n.value !== e && (n.value = e, (u = a.onChange) == null || u.call(a, e)));
|
|
33
|
+
};
|
|
34
|
+
return {
|
|
35
|
+
state: {
|
|
36
|
+
get panes() {
|
|
37
|
+
return s.value;
|
|
38
|
+
},
|
|
39
|
+
get activeValue() {
|
|
40
|
+
return n.value;
|
|
41
|
+
},
|
|
42
|
+
set activeValue(e) {
|
|
43
|
+
n.value = e;
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
actions: {
|
|
47
|
+
registerPane: m,
|
|
48
|
+
unregisterPane: g,
|
|
49
|
+
updatePane: b,
|
|
50
|
+
activateTab: y,
|
|
51
|
+
moveActiveTab: (e) => {
|
|
52
|
+
const t = s.value.filter((d) => !d.disabled);
|
|
53
|
+
if (!t.length) return;
|
|
54
|
+
const l = t.findIndex((d) => d.name === n.value);
|
|
55
|
+
let u = t[0];
|
|
56
|
+
return e === "first" ? u = t[0] : e === "last" ? u = t[t.length - 1] : l !== -1 && (u = t[(l + (e === "next" ? 1 : -1) + t.length) % t.length]), y(u.name), u.name;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
const te = {
|
|
62
|
+
modelValue: {
|
|
63
|
+
type: [String, Number],
|
|
64
|
+
default: void 0
|
|
65
|
+
},
|
|
66
|
+
defaultValue: {
|
|
67
|
+
type: [String, Number],
|
|
68
|
+
default: void 0
|
|
69
|
+
},
|
|
70
|
+
type: {
|
|
71
|
+
type: String,
|
|
72
|
+
default: "line"
|
|
73
|
+
},
|
|
74
|
+
size: {
|
|
75
|
+
type: String,
|
|
76
|
+
default: "md"
|
|
77
|
+
},
|
|
78
|
+
stretch: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
default: !1
|
|
81
|
+
},
|
|
82
|
+
bg: {
|
|
83
|
+
type: String,
|
|
84
|
+
default: ""
|
|
85
|
+
},
|
|
86
|
+
activeBg: {
|
|
87
|
+
type: String,
|
|
88
|
+
default: ""
|
|
89
|
+
}
|
|
90
|
+
}, ae = {
|
|
91
|
+
"update:modelValue": (a) => !0,
|
|
92
|
+
change: (a) => !0,
|
|
93
|
+
"tab-click": (a) => !0
|
|
94
|
+
}, ne = {
|
|
95
|
+
name: {
|
|
96
|
+
type: [String, Number],
|
|
97
|
+
required: !0
|
|
98
|
+
},
|
|
99
|
+
label: {
|
|
100
|
+
type: String,
|
|
101
|
+
default: ""
|
|
102
|
+
},
|
|
103
|
+
disabled: {
|
|
104
|
+
type: Boolean,
|
|
105
|
+
default: !1
|
|
106
|
+
},
|
|
107
|
+
lazy: {
|
|
108
|
+
type: Boolean,
|
|
109
|
+
default: !1
|
|
110
|
+
}
|
|
111
|
+
}, L = Symbol("TabsKey"), le = { class: "l-tabs__nav" }, se = {
|
|
112
|
+
class: "l-tabs__tablist",
|
|
113
|
+
role: "tablist",
|
|
114
|
+
"aria-orientation": "horizontal"
|
|
115
|
+
}, ie = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick"], re = { class: "l-tabs__nav-label" }, oe = { class: "l-tabs__content" }, ce = /* @__PURE__ */ B({
|
|
116
|
+
name: "Tabs",
|
|
117
|
+
__name: "Tabs",
|
|
118
|
+
props: te,
|
|
119
|
+
emits: ae,
|
|
120
|
+
setup(a, { emit: s }) {
|
|
121
|
+
const n = a, v = s, o = ee({
|
|
122
|
+
value: () => n.modelValue,
|
|
123
|
+
defaultValue: n.defaultValue,
|
|
124
|
+
onChange: (r) => {
|
|
125
|
+
v("update:modelValue", r), v("change", r);
|
|
126
|
+
},
|
|
127
|
+
onTabClick: (r) => {
|
|
128
|
+
v("tab-click", r);
|
|
129
|
+
}
|
|
130
|
+
}), { panes: m, activeValue: g } = Y(o), b = g, y = o.actions.activateTab, f = /* @__PURE__ */ new Map(), e = _(() => n.size), t = _(() => n.type), l = _(() => n.stretch), u = _(() => [
|
|
131
|
+
"l-tabs",
|
|
132
|
+
`l-tabs--${n.type}`,
|
|
133
|
+
`l-tabs--${n.size}`,
|
|
134
|
+
{
|
|
135
|
+
"is-stretch": n.stretch
|
|
136
|
+
}
|
|
137
|
+
]), d = (r, c) => {
|
|
138
|
+
if (c) {
|
|
139
|
+
f.set(r, c);
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
f.delete(r);
|
|
143
|
+
}, N = async (r) => {
|
|
144
|
+
var i;
|
|
145
|
+
await F();
|
|
146
|
+
const c = m.value.find((P) => P.name === r);
|
|
147
|
+
c && ((i = f.get(c.id)) == null || i.focus());
|
|
148
|
+
}, R = async (r) => {
|
|
149
|
+
let c = null;
|
|
150
|
+
if (r.key === "ArrowRight" || r.key === "ArrowDown" ? c = "next" : r.key === "ArrowLeft" || r.key === "ArrowUp" ? c = "prev" : r.key === "Home" ? c = "first" : r.key === "End" && (c = "last"), c) {
|
|
151
|
+
r.preventDefault();
|
|
152
|
+
const i = o.actions.moveActiveTab(c);
|
|
153
|
+
i !== void 0 && await N(i);
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
return $(L, {
|
|
157
|
+
activeName: b,
|
|
158
|
+
size: e,
|
|
159
|
+
type: t,
|
|
160
|
+
stretch: l,
|
|
161
|
+
registerPane: o.actions.registerPane,
|
|
162
|
+
unregisterPane: o.actions.unregisterPane,
|
|
163
|
+
updatePane: o.actions.updatePane
|
|
164
|
+
}), (r, c) => (p(), T("div", {
|
|
165
|
+
class: V(u.value),
|
|
166
|
+
style: D({
|
|
167
|
+
"--l-tabs-bg": n.bg || void 0,
|
|
168
|
+
"--l-tabs-active-bg": n.activeBg || void 0
|
|
169
|
+
})
|
|
170
|
+
}, [
|
|
171
|
+
k("div", le, [
|
|
172
|
+
k("div", se, [
|
|
173
|
+
(p(!0), T(x, null, E(h(m), (i) => {
|
|
174
|
+
var P;
|
|
175
|
+
return p(), T("button", {
|
|
176
|
+
key: i.id,
|
|
177
|
+
ref_for: !0,
|
|
178
|
+
ref: (S) => d(i.id, S),
|
|
179
|
+
type: "button",
|
|
180
|
+
class: V(["l-tabs__nav-item", {
|
|
181
|
+
"is-active": h(b) === i.name,
|
|
182
|
+
"is-disabled": i.disabled
|
|
183
|
+
}]),
|
|
184
|
+
role: "tab",
|
|
185
|
+
id: i.tabId,
|
|
186
|
+
"aria-selected": h(b) === i.name,
|
|
187
|
+
"aria-controls": i.panelId,
|
|
188
|
+
tabindex: h(b) === i.name ? 0 : -1,
|
|
189
|
+
disabled: i.disabled,
|
|
190
|
+
onClick: (S) => h(y)(i.name),
|
|
191
|
+
onKeydown: R
|
|
192
|
+
}, [
|
|
193
|
+
k("span", re, [
|
|
194
|
+
(P = i.slots) != null && P.label ? (p(), K(U(i.slots.label), { key: 0 })) : (p(), T(x, { key: 1 }, [
|
|
195
|
+
j(q(i.label || String(i.name)), 1)
|
|
196
|
+
], 64))
|
|
197
|
+
])
|
|
198
|
+
], 42, ie);
|
|
199
|
+
}), 128))
|
|
200
|
+
])
|
|
201
|
+
]),
|
|
202
|
+
k("div", oe, [
|
|
203
|
+
I(r.$slots, "default")
|
|
204
|
+
])
|
|
205
|
+
], 6));
|
|
206
|
+
}
|
|
207
|
+
}), ue = /* @__PURE__ */ B({
|
|
208
|
+
name: "TabPane",
|
|
209
|
+
__name: "TabPane",
|
|
210
|
+
props: ne,
|
|
211
|
+
setup(a) {
|
|
212
|
+
const s = a, n = H(L), v = M();
|
|
213
|
+
if (!n)
|
|
214
|
+
throw new Error("[Routa] LTabPane must be used within LTabs");
|
|
215
|
+
const o = Symbol("tab-pane"), m = Z("tabs-pane"), g = `${m}-tab`, b = `${m}-panel`, y = G(!1), f = _(() => n.activeName.value === s.name), e = _(() => !s.lazy || y.value || f.value);
|
|
216
|
+
return C(
|
|
217
|
+
f,
|
|
218
|
+
(t) => {
|
|
219
|
+
t && (y.value = !0);
|
|
220
|
+
},
|
|
221
|
+
{ immediate: !0 }
|
|
222
|
+
), C(
|
|
223
|
+
() => [s.name, s.label, s.disabled, s.lazy],
|
|
224
|
+
([t, l, u, d]) => {
|
|
225
|
+
n.registerPane({
|
|
226
|
+
id: o,
|
|
227
|
+
name: t,
|
|
228
|
+
label: l,
|
|
229
|
+
disabled: u,
|
|
230
|
+
lazy: d,
|
|
231
|
+
tabId: g,
|
|
232
|
+
panelId: b,
|
|
233
|
+
slots: v
|
|
234
|
+
});
|
|
235
|
+
},
|
|
236
|
+
{ immediate: !0 }
|
|
237
|
+
), J(() => {
|
|
238
|
+
n.unregisterPane(o);
|
|
239
|
+
}), (t, l) => e.value ? O((p(), T("div", {
|
|
240
|
+
key: 0,
|
|
241
|
+
class: V(["l-tab-pane", { "is-active": f.value }]),
|
|
242
|
+
role: "tabpanel",
|
|
243
|
+
id: b,
|
|
244
|
+
"aria-labelledby": g
|
|
245
|
+
}, [
|
|
246
|
+
I(t.$slots, "default")
|
|
247
|
+
], 2)), [
|
|
248
|
+
[Q, f.value]
|
|
249
|
+
]) : W("", !0);
|
|
250
|
+
}
|
|
251
|
+
}), A = ce, w = ue;
|
|
252
|
+
A.install = (a) => {
|
|
253
|
+
a.component("LTabs", A), a.component("LTabPane", w);
|
|
254
|
+
};
|
|
255
|
+
w.install = (a) => {
|
|
256
|
+
a.component("LTabPane", w);
|
|
257
|
+
};
|
|
258
|
+
export {
|
|
259
|
+
w as LTabPane,
|
|
260
|
+
A as LTabs,
|
|
261
|
+
L as TabsKey,
|
|
262
|
+
A as default,
|
|
263
|
+
ne as tabPaneProps,
|
|
264
|
+
ae as tabsEmits,
|
|
265
|
+
te as tabsProps
|
|
266
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { ExtractPropTypes, InjectionKey, PropType, Ref } from 'vue';
|
|
2
|
+
export type TabName = string | number;
|
|
3
|
+
export declare const tabsProps: {
|
|
4
|
+
readonly modelValue: {
|
|
5
|
+
readonly type: PropType<TabName | undefined>;
|
|
6
|
+
readonly default: undefined;
|
|
7
|
+
};
|
|
8
|
+
readonly defaultValue: {
|
|
9
|
+
readonly type: PropType<TabName | undefined>;
|
|
10
|
+
readonly default: undefined;
|
|
11
|
+
};
|
|
12
|
+
readonly type: {
|
|
13
|
+
readonly type: PropType<"line" | "card" | "chrome">;
|
|
14
|
+
readonly default: "line";
|
|
15
|
+
};
|
|
16
|
+
readonly size: {
|
|
17
|
+
readonly type: PropType<"sm" | "md" | "lg">;
|
|
18
|
+
readonly default: "md";
|
|
19
|
+
};
|
|
20
|
+
readonly stretch: {
|
|
21
|
+
readonly type: BooleanConstructor;
|
|
22
|
+
readonly default: false;
|
|
23
|
+
};
|
|
24
|
+
readonly bg: {
|
|
25
|
+
readonly type: StringConstructor;
|
|
26
|
+
readonly default: "";
|
|
27
|
+
};
|
|
28
|
+
readonly activeBg: {
|
|
29
|
+
readonly type: StringConstructor;
|
|
30
|
+
readonly default: "";
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export declare const tabsEmits: {
|
|
34
|
+
readonly 'update:modelValue': (_name: TabName) => boolean;
|
|
35
|
+
readonly change: (_name: TabName) => boolean;
|
|
36
|
+
readonly 'tab-click': (_name: TabName) => boolean;
|
|
37
|
+
};
|
|
38
|
+
export declare const tabPaneProps: {
|
|
39
|
+
readonly name: {
|
|
40
|
+
readonly type: PropType<TabName>;
|
|
41
|
+
readonly required: true;
|
|
42
|
+
};
|
|
43
|
+
readonly label: {
|
|
44
|
+
readonly type: StringConstructor;
|
|
45
|
+
readonly default: "";
|
|
46
|
+
};
|
|
47
|
+
readonly disabled: {
|
|
48
|
+
readonly type: BooleanConstructor;
|
|
49
|
+
readonly default: false;
|
|
50
|
+
};
|
|
51
|
+
readonly lazy: {
|
|
52
|
+
readonly type: BooleanConstructor;
|
|
53
|
+
readonly default: false;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export type TabsProps = ExtractPropTypes<typeof tabsProps>;
|
|
57
|
+
export type TabsEmits = typeof tabsEmits;
|
|
58
|
+
export type TabPaneProps = ExtractPropTypes<typeof tabPaneProps>;
|
|
59
|
+
export interface TabPaneRegistration {
|
|
60
|
+
id: symbol;
|
|
61
|
+
name: TabName;
|
|
62
|
+
label: string;
|
|
63
|
+
disabled: boolean;
|
|
64
|
+
lazy: boolean;
|
|
65
|
+
tabId: string;
|
|
66
|
+
panelId: string;
|
|
67
|
+
slots?: any;
|
|
68
|
+
}
|
|
69
|
+
export interface TabsContext {
|
|
70
|
+
activeName: Ref<TabName | undefined>;
|
|
71
|
+
size: Ref<TabsProps['size']>;
|
|
72
|
+
type: Ref<TabsProps['type']>;
|
|
73
|
+
stretch: Ref<boolean>;
|
|
74
|
+
registerPane: (pane: TabPaneRegistration) => void;
|
|
75
|
+
unregisterPane: (id: symbol) => void;
|
|
76
|
+
updatePane: (id: symbol, patch: Partial<Omit<TabPaneRegistration, 'id'>>) => void;
|
|
77
|
+
}
|
|
78
|
+
export declare const TabsKey: InjectionKey<TabsContext>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { TagProps } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
icon?(_: {}): any;
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
suffixIcon?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {};
|
|
10
|
+
rootEl: any;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<TagProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
14
|
+
click: (event: MouseEvent) => any;
|
|
15
|
+
close: (event: MouseEvent) => any;
|
|
16
|
+
"update:checked": (checked: boolean) => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<TagProps> & Readonly<{
|
|
18
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
19
|
+
onClose?: ((event: MouseEvent) => any) | undefined;
|
|
20
|
+
"onUpdate:checked"?: ((checked: boolean) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
size: import('./types').TagSize;
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
type: import('./types').TagType;
|
|
25
|
+
closable: boolean;
|
|
26
|
+
variant: import('./types').TagVariant;
|
|
27
|
+
round: boolean;
|
|
28
|
+
checked: boolean;
|
|
29
|
+
checkable: boolean;
|
|
30
|
+
selectEffect: import('./types').TagSelectEffect;
|
|
31
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require('../style/tag.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("../chunks/color-m1q_rZ68.js");require("../chunks/manager-C0AUxQ1I.js");const g=["role","aria-checked","tabindex"],b={key:0,class:"l-tag__icon l-tag__icon--prefix"},h={key:1,class:"l-tag__icon l-tag__icon--suffix"},B=e.defineComponent({name:"Tag",inheritAttrs:!1,__name:"Tag",props:{type:{default:"default"},variant:{default:"solid"},checkable:{type:Boolean,default:!1},size:{default:"md"},closable:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},selectEffect:{default:"color"},color:{},round:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},icon:{},suffixIcon:{},class:{},style:{}},emits:["close","click","update:checked"],setup(t,{emit:d}){const o=t,s=d,a=e.useAttrs(),c=e.computed(()=>o.checkable),u=l=>{o.disabled||(l.stopPropagation(),s("close",l))},i=l=>{o.disabled||(c.value&&s("update:checked",!o.checked),s("click",l))},f=l=>{o.disabled||c.value&&(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),i(l))},k=e.computed(()=>["l-tag",`l-tag--type-${o.type}`,`l-tag--variant-${o.variant}`,`l-tag--${o.size}`,`l-tag--select-effect-${o.selectEffect}`,{"is-round":o.round,"is-closable":o.closable,"is-checked":o.checked&&c.value,"is-disabled":o.disabled,"is-clickable":c.value||a.onClick,"is-checkable":c.value},a.class]),m=e.computed(()=>{const l={};return o.color&&(l["--l-tag-theme-color"]=o.color,l["--l-tag-theme-content"]=y.getContrastColor(o.color)),[a.style,l]});return(l,r)=>(e.openBlock(),e.createElementBlock("span",e.mergeProps({class:k.value,style:m.value},e.unref(a),{role:c.value?"checkbox":void 0,"aria-checked":c.value?t.checked:void 0,tabindex:c.value&&!t.disabled?0:void 0,onClick:i,onKeydown:f}),[l.$slots.icon||t.icon?(e.openBlock(),e.createElementBlock("span",b,[e.renderSlot(l.$slots,"icon",{},()=>[typeof t.icon!="string"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{key:0})):(e.openBlock(),e.createElementBlock("i",{key:1,class:e.normalizeClass(t.icon)},null,2))])])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"default"),l.$slots.suffixIcon||t.suffixIcon?(e.openBlock(),e.createElementBlock("span",h,[e.renderSlot(l.$slots,"suffixIcon",{},()=>[typeof t.suffixIcon!="string"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.suffixIcon),{key:0})):(e.openBlock(),e.createElementBlock("i",{key:1,class:e.normalizeClass(t.suffixIcon)},null,2))])])):e.createCommentVNode("",!0),t.closable?(e.openBlock(),e.createElementBlock("button",{key:2,class:"l-tag__close",type:"button","aria-label":"Close tag",onClick:u},[...r[0]||(r[0]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.createElementVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])):e.createCommentVNode("",!0)],16,g))}}),n=B;n.install=t=>{t.component("LTag",n)};exports.LTag=n;exports.default=n;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import '../style/tag.css';
|
|
2
|
+
import { defineComponent as B, useAttrs as $, computed as i, openBlock as a, createElementBlock as s, mergeProps as I, unref as E, renderSlot as r, createBlock as y, resolveDynamicComponent as g, normalizeClass as m, createCommentVNode as d, createElementVNode as f } from "vue";
|
|
3
|
+
import { g as w } from "../chunks/color-BBpRjg5d.mjs";
|
|
4
|
+
import "../chunks/manager-BUdQK4AD.mjs";
|
|
5
|
+
const T = ["role", "aria-checked", "tabindex"], z = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "l-tag__icon l-tag__icon--prefix"
|
|
8
|
+
}, D = {
|
|
9
|
+
key: 1,
|
|
10
|
+
class: "l-tag__icon l-tag__icon--suffix"
|
|
11
|
+
}, A = /* @__PURE__ */ B({
|
|
12
|
+
name: "Tag",
|
|
13
|
+
inheritAttrs: !1,
|
|
14
|
+
__name: "Tag",
|
|
15
|
+
props: {
|
|
16
|
+
type: { default: "default" },
|
|
17
|
+
variant: { default: "solid" },
|
|
18
|
+
checkable: { type: Boolean, default: !1 },
|
|
19
|
+
size: { default: "md" },
|
|
20
|
+
closable: { type: Boolean, default: !1 },
|
|
21
|
+
checked: { type: Boolean, default: !1 },
|
|
22
|
+
selectEffect: { default: "color" },
|
|
23
|
+
color: {},
|
|
24
|
+
round: { type: Boolean, default: !1 },
|
|
25
|
+
disabled: { type: Boolean, default: !1 },
|
|
26
|
+
icon: {},
|
|
27
|
+
suffixIcon: {},
|
|
28
|
+
class: {},
|
|
29
|
+
style: {}
|
|
30
|
+
},
|
|
31
|
+
emits: ["close", "click", "update:checked"],
|
|
32
|
+
setup(t, { emit: b }) {
|
|
33
|
+
const l = t, n = b, c = $(), o = i(() => l.checkable), v = (e) => {
|
|
34
|
+
l.disabled || (e.stopPropagation(), n("close", e));
|
|
35
|
+
}, u = (e) => {
|
|
36
|
+
l.disabled || (o.value && n("update:checked", !l.checked), n("click", e));
|
|
37
|
+
}, C = (e) => {
|
|
38
|
+
l.disabled || o.value && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), u(e));
|
|
39
|
+
}, p = i(() => [
|
|
40
|
+
"l-tag",
|
|
41
|
+
`l-tag--type-${l.type}`,
|
|
42
|
+
`l-tag--variant-${l.variant}`,
|
|
43
|
+
`l-tag--${l.size}`,
|
|
44
|
+
`l-tag--select-effect-${l.selectEffect}`,
|
|
45
|
+
{
|
|
46
|
+
"is-round": l.round,
|
|
47
|
+
"is-closable": l.closable,
|
|
48
|
+
"is-checked": l.checked && o.value,
|
|
49
|
+
"is-disabled": l.disabled,
|
|
50
|
+
"is-clickable": o.value || c.onClick,
|
|
51
|
+
"is-checkable": o.value
|
|
52
|
+
},
|
|
53
|
+
c.class
|
|
54
|
+
]), x = i(() => {
|
|
55
|
+
const e = {};
|
|
56
|
+
return l.color && (e["--l-tag-theme-color"] = l.color, e["--l-tag-theme-content"] = w(l.color)), [c.style, e];
|
|
57
|
+
});
|
|
58
|
+
return (e, k) => (a(), s("span", I({
|
|
59
|
+
class: p.value,
|
|
60
|
+
style: x.value
|
|
61
|
+
}, E(c), {
|
|
62
|
+
role: o.value ? "checkbox" : void 0,
|
|
63
|
+
"aria-checked": o.value ? t.checked : void 0,
|
|
64
|
+
tabindex: o.value && !t.disabled ? 0 : void 0,
|
|
65
|
+
onClick: u,
|
|
66
|
+
onKeydown: C
|
|
67
|
+
}), [
|
|
68
|
+
e.$slots.icon || t.icon ? (a(), s("span", z, [
|
|
69
|
+
r(e.$slots, "icon", {}, () => [
|
|
70
|
+
typeof t.icon != "string" ? (a(), y(g(t.icon), { key: 0 })) : (a(), s("i", {
|
|
71
|
+
key: 1,
|
|
72
|
+
class: m(t.icon)
|
|
73
|
+
}, null, 2))
|
|
74
|
+
])
|
|
75
|
+
])) : d("", !0),
|
|
76
|
+
r(e.$slots, "default"),
|
|
77
|
+
e.$slots.suffixIcon || t.suffixIcon ? (a(), s("span", D, [
|
|
78
|
+
r(e.$slots, "suffixIcon", {}, () => [
|
|
79
|
+
typeof t.suffixIcon != "string" ? (a(), y(g(t.suffixIcon), { key: 0 })) : (a(), s("i", {
|
|
80
|
+
key: 1,
|
|
81
|
+
class: m(t.suffixIcon)
|
|
82
|
+
}, null, 2))
|
|
83
|
+
])
|
|
84
|
+
])) : d("", !0),
|
|
85
|
+
t.closable ? (a(), s("button", {
|
|
86
|
+
key: 2,
|
|
87
|
+
class: "l-tag__close",
|
|
88
|
+
type: "button",
|
|
89
|
+
"aria-label": "Close tag",
|
|
90
|
+
onClick: v
|
|
91
|
+
}, [...k[0] || (k[0] = [
|
|
92
|
+
f("svg", {
|
|
93
|
+
viewBox: "0 0 24 24",
|
|
94
|
+
fill: "none",
|
|
95
|
+
stroke: "currentColor",
|
|
96
|
+
"stroke-width": "2.5",
|
|
97
|
+
"stroke-linecap": "round",
|
|
98
|
+
"stroke-linejoin": "round"
|
|
99
|
+
}, [
|
|
100
|
+
f("line", {
|
|
101
|
+
x1: "18",
|
|
102
|
+
y1: "6",
|
|
103
|
+
x2: "6",
|
|
104
|
+
y2: "18"
|
|
105
|
+
}),
|
|
106
|
+
f("line", {
|
|
107
|
+
x1: "6",
|
|
108
|
+
y1: "6",
|
|
109
|
+
x2: "18",
|
|
110
|
+
y2: "18"
|
|
111
|
+
})
|
|
112
|
+
], -1)
|
|
113
|
+
])])) : d("", !0)
|
|
114
|
+
], 16, T));
|
|
115
|
+
}
|
|
116
|
+
}), h = A;
|
|
117
|
+
h.install = (t) => {
|
|
118
|
+
t.component("LTag", h);
|
|
119
|
+
};
|
|
120
|
+
export {
|
|
121
|
+
h as LTag,
|
|
122
|
+
h as default
|
|
123
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { CSSProperties, VNode, Component } from 'vue';
|
|
2
|
+
export type TagType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
|
|
3
|
+
export type TagVariant = 'solid' | 'subtle' | 'outline';
|
|
4
|
+
export type TagSize = 'sm' | 'md' | 'lg';
|
|
5
|
+
export type TagSelectEffect = 'color' | 'border' | 'mark';
|
|
6
|
+
export interface TagProps {
|
|
7
|
+
/**
|
|
8
|
+
* 标签类型 (Semantic type)
|
|
9
|
+
* @default 'default'
|
|
10
|
+
*/
|
|
11
|
+
type?: TagType;
|
|
12
|
+
/**
|
|
13
|
+
* 视觉风格 (Visual variant)
|
|
14
|
+
* @default 'solid'
|
|
15
|
+
*/
|
|
16
|
+
variant?: TagVariant;
|
|
17
|
+
/**
|
|
18
|
+
* 是否可选择 (Whether checkable)
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
checkable?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* 尺寸 (Size)
|
|
24
|
+
* @default 'md'
|
|
25
|
+
*/
|
|
26
|
+
size?: TagSize;
|
|
27
|
+
/**
|
|
28
|
+
* 是否可关闭 (Whether closable)
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
closable?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* 选中状态 (仅在 checkable 变体下有效)
|
|
34
|
+
* Checked state (only for checkable variant)
|
|
35
|
+
* @default false
|
|
36
|
+
*/
|
|
37
|
+
checked?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* 选中时的视觉效果 (仅在 checkable 为 true 且 checked 为 true 时有效)
|
|
40
|
+
* @default 'color'
|
|
41
|
+
*/
|
|
42
|
+
selectEffect?: TagSelectEffect;
|
|
43
|
+
/**
|
|
44
|
+
* 自定义背景颜色
|
|
45
|
+
* Custom background color
|
|
46
|
+
*/
|
|
47
|
+
color?: string;
|
|
48
|
+
/**
|
|
49
|
+
* 是否为圆角形状
|
|
50
|
+
* Whether the tag is round
|
|
51
|
+
* @default false
|
|
52
|
+
*/
|
|
53
|
+
round?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* 是否禁用
|
|
56
|
+
* Whether the tag is disabled
|
|
57
|
+
* @default false
|
|
58
|
+
*/
|
|
59
|
+
disabled?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* 前置图标
|
|
62
|
+
* Prefix icon
|
|
63
|
+
*/
|
|
64
|
+
icon?: string | Component | VNode;
|
|
65
|
+
/**
|
|
66
|
+
* 后置图标
|
|
67
|
+
* Suffix icon
|
|
68
|
+
*/
|
|
69
|
+
suffixIcon?: string | Component | VNode;
|
|
70
|
+
/**
|
|
71
|
+
* 自定义类名
|
|
72
|
+
*/
|
|
73
|
+
class?: any;
|
|
74
|
+
/**
|
|
75
|
+
* 自定义样式
|
|
76
|
+
*/
|
|
77
|
+
style?: CSSProperties;
|
|
78
|
+
}
|
|
79
|
+
export interface TagEmits {
|
|
80
|
+
(e: 'close', event: MouseEvent): void;
|
|
81
|
+
(e: 'click', event: MouseEvent): void;
|
|
82
|
+
(e: 'update:checked', checked: boolean): void;
|
|
83
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue?: string;
|
|
3
|
+
format?: 'HH:mm:ss' | 'HH:mm' | 'mm:ss';
|
|
4
|
+
disabledHours?: () => number[];
|
|
5
|
+
disabledMinutes?: (hour: number) => number[];
|
|
6
|
+
disabledSeconds?: (hour: number, minute: number) => number[];
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
select: (args_0: string) => any;
|
|
10
|
+
"update:modelValue": (args_0: string) => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onSelect?: ((args_0: string) => any) | undefined;
|
|
13
|
+
"onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
15
|
+
hourRef: HTMLDivElement;
|
|
16
|
+
minuteRef: HTMLDivElement;
|
|
17
|
+
secondRef: HTMLDivElement;
|
|
18
|
+
}, HTMLDivElement>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue?: string;
|
|
3
|
+
placeholder?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
clearable?: boolean;
|
|
6
|
+
size?: 'sm' | 'md' | 'lg';
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
change: (args_0: string) => any;
|
|
10
|
+
"update:modelValue": (args_0: string) => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onChange?: ((args_0: string) => any) | undefined;
|
|
13
|
+
"onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
import { default as TimePicker } from './TimePicker.vue';
|
|
3
|
+
import { default as TimePanel } from './TimePanel.vue';
|
|
4
|
+
export declare const LTimePicker: typeof TimePicker & Plugin;
|
|
5
|
+
export declare const LTimePanel: typeof TimePanel & Plugin;
|
|
6
|
+
export default LTimePicker;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
require('../style/TimePanel.css');
|
|
2
|
+
require('../style/Input.css');
|
|
3
|
+
require('../style/Popover.css');
|
|
4
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../chunks/use-form-item-CloIcyon.js"),P=require("../chunks/use-id-BycaM3-h.js"),u=require("../chunks/TimePanel.vue_vue_type_script_setup_true_lang-BNTM3OeU.js"),V=require("../input/index.js"),C=require("../popover/index.js"),T={viewBox:"0 0 24 24",width:"16",height:"16",style:{opacity:"0.5"}},z={class:"l-time-picker__panel"},L=e.defineComponent({name:"TimePicker",__name:"TimePicker",props:{modelValue:{},placeholder:{},disabled:{type:Boolean},clearable:{type:Boolean},size:{}},emits:["update:modelValue","change"],setup(t,{emit:p}){const v=t,i=p,{formItem:l,size:d,disabled:s,inputId:o}=g.useFormItem(v),h=P.useId("time-picker"),b=(o==null?void 0:o.value)||h,r=e.ref(!1),f=a=>{i("update:modelValue",a),i("change",a),l==null||l.validate("change").catch(()=>{})},k=()=>{i("update:modelValue",""),i("change",""),l==null||l.validate("change").catch(()=>{})};return e.watch(r,a=>{a||l==null||l.validate("blur").catch(()=>{})}),(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["l-time-picker",[`l-time-picker--${e.unref(d)}`]])},[e.createVNode(e.unref(C.LPopover),{visible:r.value,"onUpdate:visible":n[0]||(n[0]=_=>r.value=_),trigger:"click",placement:"bottom-start",disabled:e.unref(s),width:"204"},{content:e.withCtx(()=>[e.createElementVNode("div",z,[e.createVNode(u._sfc_main,{"model-value":t.modelValue,onSelect:f},null,8,["model-value"])])]),default:e.withCtx(()=>[e.createVNode(e.unref(V.LInput),{id:e.unref(b),"model-value":t.modelValue,"read-only":"",placeholder:t.placeholder||"请选择时间",disabled:e.unref(s),size:e.unref(d),clearable:t.clearable,autocomplete:"off",onClear:k},{prefix:e.withCtx(()=>[(e.openBlock(),e.createElementBlock("svg",T,[...n[1]||(n[1]=[e.createElementVNode("path",{fill:"currentColor",d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"},null,-1)])]))]),_:1},8,["id","model-value","placeholder","disabled","size","clearable"])]),_:1},8,["visible","disabled"])],2))}}),c=L,m=u._sfc_main;c.install=t=>{t.component("LTimePicker",c),t.component("LTimePanel",m)};exports.LTimePanel=m;exports.LTimePicker=c;exports.default=c;
|