@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,59 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: any;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
11
|
+
readonly tag: {
|
|
12
|
+
type: import('vue').PropType<string>;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
readonly width: {
|
|
16
|
+
readonly type: import('vue').PropType<number | string>;
|
|
17
|
+
readonly default: 240;
|
|
18
|
+
};
|
|
19
|
+
readonly collapsedWidth: {
|
|
20
|
+
readonly type: import('vue').PropType<number | string>;
|
|
21
|
+
readonly default: 80;
|
|
22
|
+
};
|
|
23
|
+
readonly collapsed: BooleanConstructor;
|
|
24
|
+
readonly collapseBelow: {
|
|
25
|
+
readonly type: import('vue').PropType<import('..').LayoutBreakpoint>;
|
|
26
|
+
readonly default: undefined;
|
|
27
|
+
};
|
|
28
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
29
|
+
readonly tag: {
|
|
30
|
+
type: import('vue').PropType<string>;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
readonly width: {
|
|
34
|
+
readonly type: import('vue').PropType<number | string>;
|
|
35
|
+
readonly default: 240;
|
|
36
|
+
};
|
|
37
|
+
readonly collapsedWidth: {
|
|
38
|
+
readonly type: import('vue').PropType<number | string>;
|
|
39
|
+
readonly default: 80;
|
|
40
|
+
};
|
|
41
|
+
readonly collapsed: BooleanConstructor;
|
|
42
|
+
readonly collapseBelow: {
|
|
43
|
+
readonly type: import('vue').PropType<import('..').LayoutBreakpoint>;
|
|
44
|
+
readonly default: undefined;
|
|
45
|
+
};
|
|
46
|
+
}>> & Readonly<{}>, {
|
|
47
|
+
readonly width: string | number;
|
|
48
|
+
readonly collapsed: boolean;
|
|
49
|
+
readonly tag: string;
|
|
50
|
+
readonly collapsedWidth: string | number;
|
|
51
|
+
readonly collapseBelow: import('..').LayoutBreakpoint;
|
|
52
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
53
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
54
|
+
export default _default;
|
|
55
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
56
|
+
new (): {
|
|
57
|
+
$slots: S;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
import { default as Layout } from './Layout.vue';
|
|
3
|
+
import { default as Header } from './Header.vue';
|
|
4
|
+
import { default as Content } from './Content.vue';
|
|
5
|
+
import { default as Footer } from './Footer.vue';
|
|
6
|
+
import { default as Sider } from './Sider.vue';
|
|
7
|
+
export declare const LLayout: typeof Layout & Plugin;
|
|
8
|
+
export declare const LHeader: typeof Header & Plugin;
|
|
9
|
+
export declare const LContent: typeof Content & Plugin;
|
|
10
|
+
export declare const LFooter: typeof Footer & Plugin;
|
|
11
|
+
export declare const LSider: typeof Sider & Plugin;
|
|
12
|
+
export * from './types';
|
|
13
|
+
export default LLayout;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require('../style/layout.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),_=require("../chunks/responsive-BYScjISa.js"),L=require("../chunks/style-CjCLKeeU.js"),c=t=>({type:String,default:t}),C={hasSider:Boolean,tag:c("div")},v={tag:c("header")},S={tag:c("main")},g={tag:c("footer")},B={tag:c("aside"),width:{type:[Number,String],default:240},collapsedWidth:{type:[Number,String],default:80},collapsed:Boolean,collapseBelow:{type:String,default:void 0}},k=e.defineComponent({name:"LSider",__name:"Sider",props:B,setup(t){const o=t,s=_.useLayoutBreakpoint(),l=e.computed(()=>L.addUnit(o.width)??"240px"),h=e.computed(()=>L.addUnit(o.collapsedWidth)??"80px"),y=e.computed(()=>o.collapseBelow?_.isBreakpointAtOrBelow(s.value,o.collapseBelow):!1),u=e.computed(()=>o.collapsed||y.value),n=e.computed(()=>u.value?h.value:l.value),r=e.computed(()=>["l-sider",{"l-sider--collapsed":u.value}]),a=e.computed(()=>({flex:`0 0 ${n.value}`,maxWidth:n.value,minWidth:n.value,width:n.value}));return(w,W)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.tag),{class:e.normalizeClass(r.value),style:e.normalizeStyle(a.value)},{default:e.withCtx(()=>[e.renderSlot(w.$slots,"default")]),_:3},8,["class","style"]))}}),P=e.defineComponent({name:"LLayout",__name:"Layout",props:C,setup(t){const o=t,s=e.useSlots(),l=n=>{const r=[];return n.forEach(a=>{if(a.type===e.Fragment&&Array.isArray(a.children)){r.push(...l(a.children));return}r.push(a)}),r},h=e.computed(()=>(s.default?l(s.default()):[]).filter(r=>r.type===e.Comment?!1:r.type===e.Text?String(r.children??"").trim().length>0:!0)),y=e.computed(()=>o.hasSider||h.value.some(n=>n.type===k)),u=e.computed(()=>["l-layout",{"l-layout--has-sider":y.value}]);return(n,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.tag),{class:e.normalizeClass(u.value)},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},8,["class"]))}}),x=e.defineComponent({name:"LHeader",__name:"Header",props:v,setup(t){const o=t;return(s,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.tag),{class:"l-layout-header"},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3}))}}),$=e.defineComponent({name:"LContent",__name:"Content",props:S,setup(t){const o=t;return(s,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.tag),{class:"l-layout-content"},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3}))}}),F=e.defineComponent({name:"LFooter",__name:"Footer",props:g,setup(t){const o=t;return(s,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.tag),{class:"l-layout-footer"},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3}))}}),d=P,i=x,p=$,m=F,f=k;d.install=t=>{t.component("LLayout",d),t.component("LHeader",i),t.component("LContent",p),t.component("LFooter",m),t.component("LSider",f)};i.install=t=>{t.component("LHeader",i)};p.install=t=>{t.component("LContent",p)};m.install=t=>{t.component("LFooter",m)};f.install=t=>{t.component("LSider",f)};exports.LContent=p;exports.LFooter=m;exports.LHeader=i;exports.LLayout=d;exports.LSider=f;exports.contentProps=S;exports.default=d;exports.footerProps=g;exports.headerProps=v;exports.layoutProps=C;exports.siderProps=B;
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import '../style/layout.css';
|
|
2
|
+
import { defineComponent as c, computed as n, openBlock as u, createBlock as i, resolveDynamicComponent as d, normalizeStyle as W, normalizeClass as $, withCtx as p, renderSlot as m, useSlots as F, Comment as P, Text as k, Fragment as H } from "vue";
|
|
3
|
+
import { u as b, i as A } from "../chunks/responsive-jCVnPx1a.mjs";
|
|
4
|
+
import { a as C } from "../chunks/style-C-58-Hx4.mjs";
|
|
5
|
+
const f = (e) => ({
|
|
6
|
+
type: String,
|
|
7
|
+
default: e
|
|
8
|
+
}), N = {
|
|
9
|
+
hasSider: Boolean,
|
|
10
|
+
tag: f("div")
|
|
11
|
+
}, z = {
|
|
12
|
+
tag: f("header")
|
|
13
|
+
}, T = {
|
|
14
|
+
tag: f("main")
|
|
15
|
+
}, D = {
|
|
16
|
+
tag: f("footer")
|
|
17
|
+
}, E = {
|
|
18
|
+
tag: f("aside"),
|
|
19
|
+
width: {
|
|
20
|
+
type: [Number, String],
|
|
21
|
+
default: 240
|
|
22
|
+
},
|
|
23
|
+
collapsedWidth: {
|
|
24
|
+
type: [Number, String],
|
|
25
|
+
default: 80
|
|
26
|
+
},
|
|
27
|
+
collapsed: Boolean,
|
|
28
|
+
collapseBelow: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: void 0
|
|
31
|
+
}
|
|
32
|
+
}, w = /* @__PURE__ */ c({
|
|
33
|
+
name: "LSider",
|
|
34
|
+
__name: "Sider",
|
|
35
|
+
props: E,
|
|
36
|
+
setup(e) {
|
|
37
|
+
const t = e, s = b(), l = n(() => C(t.width) ?? "240px"), _ = n(() => C(t.collapsedWidth) ?? "80px"), y = n(() => t.collapseBelow ? A(s.value, t.collapseBelow) : !1), h = n(() => t.collapsed || y.value), o = n(() => h.value ? _.value : l.value), a = n(() => [
|
|
38
|
+
"l-sider",
|
|
39
|
+
{
|
|
40
|
+
"l-sider--collapsed": h.value
|
|
41
|
+
}
|
|
42
|
+
]), r = n(() => ({
|
|
43
|
+
flex: `0 0 ${o.value}`,
|
|
44
|
+
maxWidth: o.value,
|
|
45
|
+
minWidth: o.value,
|
|
46
|
+
width: o.value
|
|
47
|
+
}));
|
|
48
|
+
return (x, G) => (u(), i(d(t.tag), {
|
|
49
|
+
class: $(a.value),
|
|
50
|
+
style: W(r.value)
|
|
51
|
+
}, {
|
|
52
|
+
default: p(() => [
|
|
53
|
+
m(x.$slots, "default")
|
|
54
|
+
]),
|
|
55
|
+
_: 3
|
|
56
|
+
}, 8, ["class", "style"]));
|
|
57
|
+
}
|
|
58
|
+
}), O = /* @__PURE__ */ c({
|
|
59
|
+
name: "LLayout",
|
|
60
|
+
__name: "Layout",
|
|
61
|
+
props: N,
|
|
62
|
+
setup(e) {
|
|
63
|
+
const t = e, s = F(), l = (o) => {
|
|
64
|
+
const a = [];
|
|
65
|
+
return o.forEach((r) => {
|
|
66
|
+
if (r.type === H && Array.isArray(r.children)) {
|
|
67
|
+
a.push(...l(r.children));
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
a.push(r);
|
|
71
|
+
}), a;
|
|
72
|
+
}, _ = n(() => (s.default ? l(s.default()) : []).filter((a) => a.type === P ? !1 : a.type === k ? String(a.children ?? "").trim().length > 0 : !0)), y = n(() => t.hasSider || _.value.some((o) => o.type === w)), h = n(() => [
|
|
73
|
+
"l-layout",
|
|
74
|
+
{
|
|
75
|
+
"l-layout--has-sider": y.value
|
|
76
|
+
}
|
|
77
|
+
]);
|
|
78
|
+
return (o, a) => (u(), i(d(t.tag), {
|
|
79
|
+
class: $(h.value)
|
|
80
|
+
}, {
|
|
81
|
+
default: p(() => [
|
|
82
|
+
m(o.$slots, "default")
|
|
83
|
+
]),
|
|
84
|
+
_: 3
|
|
85
|
+
}, 8, ["class"]));
|
|
86
|
+
}
|
|
87
|
+
}), U = /* @__PURE__ */ c({
|
|
88
|
+
name: "LHeader",
|
|
89
|
+
__name: "Header",
|
|
90
|
+
props: z,
|
|
91
|
+
setup(e) {
|
|
92
|
+
const t = e;
|
|
93
|
+
return (s, l) => (u(), i(d(t.tag), { class: "l-layout-header" }, {
|
|
94
|
+
default: p(() => [
|
|
95
|
+
m(s.$slots, "default")
|
|
96
|
+
]),
|
|
97
|
+
_: 3
|
|
98
|
+
}));
|
|
99
|
+
}
|
|
100
|
+
}), j = /* @__PURE__ */ c({
|
|
101
|
+
name: "LContent",
|
|
102
|
+
__name: "Content",
|
|
103
|
+
props: T,
|
|
104
|
+
setup(e) {
|
|
105
|
+
const t = e;
|
|
106
|
+
return (s, l) => (u(), i(d(t.tag), { class: "l-layout-content" }, {
|
|
107
|
+
default: p(() => [
|
|
108
|
+
m(s.$slots, "default")
|
|
109
|
+
]),
|
|
110
|
+
_: 3
|
|
111
|
+
}));
|
|
112
|
+
}
|
|
113
|
+
}), q = /* @__PURE__ */ c({
|
|
114
|
+
name: "LFooter",
|
|
115
|
+
__name: "Footer",
|
|
116
|
+
props: D,
|
|
117
|
+
setup(e) {
|
|
118
|
+
const t = e;
|
|
119
|
+
return (s, l) => (u(), i(d(t.tag), { class: "l-layout-footer" }, {
|
|
120
|
+
default: p(() => [
|
|
121
|
+
m(s.$slots, "default")
|
|
122
|
+
]),
|
|
123
|
+
_: 3
|
|
124
|
+
}));
|
|
125
|
+
}
|
|
126
|
+
}), B = O, L = U, v = j, g = q, S = w;
|
|
127
|
+
B.install = (e) => {
|
|
128
|
+
e.component("LLayout", B), e.component("LHeader", L), e.component("LContent", v), e.component("LFooter", g), e.component("LSider", S);
|
|
129
|
+
};
|
|
130
|
+
L.install = (e) => {
|
|
131
|
+
e.component("LHeader", L);
|
|
132
|
+
};
|
|
133
|
+
v.install = (e) => {
|
|
134
|
+
e.component("LContent", v);
|
|
135
|
+
};
|
|
136
|
+
g.install = (e) => {
|
|
137
|
+
e.component("LFooter", g);
|
|
138
|
+
};
|
|
139
|
+
S.install = (e) => {
|
|
140
|
+
e.component("LSider", S);
|
|
141
|
+
};
|
|
142
|
+
export {
|
|
143
|
+
v as LContent,
|
|
144
|
+
g as LFooter,
|
|
145
|
+
L as LHeader,
|
|
146
|
+
B as LLayout,
|
|
147
|
+
S as LSider,
|
|
148
|
+
T as contentProps,
|
|
149
|
+
B as default,
|
|
150
|
+
D as footerProps,
|
|
151
|
+
z as headerProps,
|
|
152
|
+
N as layoutProps,
|
|
153
|
+
E as siderProps
|
|
154
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { LayoutBreakpoint } from '../layout-system/types';
|
|
3
|
+
export declare const layoutProps: {
|
|
4
|
+
readonly hasSider: BooleanConstructor;
|
|
5
|
+
readonly tag: {
|
|
6
|
+
type: PropType<string>;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare const headerProps: {
|
|
11
|
+
readonly tag: {
|
|
12
|
+
type: PropType<string>;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare const contentProps: {
|
|
17
|
+
readonly tag: {
|
|
18
|
+
type: PropType<string>;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare const footerProps: {
|
|
23
|
+
readonly tag: {
|
|
24
|
+
type: PropType<string>;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export declare const siderProps: {
|
|
29
|
+
readonly tag: {
|
|
30
|
+
type: PropType<string>;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
readonly width: {
|
|
34
|
+
readonly type: PropType<number | string>;
|
|
35
|
+
readonly default: 240;
|
|
36
|
+
};
|
|
37
|
+
readonly collapsedWidth: {
|
|
38
|
+
readonly type: PropType<number | string>;
|
|
39
|
+
readonly default: 80;
|
|
40
|
+
};
|
|
41
|
+
readonly collapsed: BooleanConstructor;
|
|
42
|
+
readonly collapseBelow: {
|
|
43
|
+
readonly type: PropType<LayoutBreakpoint>;
|
|
44
|
+
readonly default: undefined;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export type LayoutProps = ExtractPropTypes<typeof layoutProps>;
|
|
48
|
+
export type HeaderProps = ExtractPropTypes<typeof headerProps>;
|
|
49
|
+
export type ContentProps = ExtractPropTypes<typeof contentProps>;
|
|
50
|
+
export type FooterProps = ExtractPropTypes<typeof footerProps>;
|
|
51
|
+
export type SiderProps = ExtractPropTypes<typeof siderProps>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { LayoutBreakpoint, ResponsiveValue } from './types';
|
|
2
|
+
export declare function useLayoutBreakpoint(): import('vue').ComputedRef<LayoutBreakpoint>;
|
|
3
|
+
export declare function resolveResponsiveValue<T>(value: ResponsiveValue<T> | undefined, breakpoint: LayoutBreakpoint): T | undefined;
|
|
4
|
+
export declare function isBreakpointAtOrBelow(current: LayoutBreakpoint, target: LayoutBreakpoint): boolean;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: any;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
12
|
+
readonly loading: {
|
|
13
|
+
readonly type: BooleanConstructor;
|
|
14
|
+
readonly default: true;
|
|
15
|
+
};
|
|
16
|
+
readonly mode: {
|
|
17
|
+
readonly type: import('vue').PropType<import('../../../headless/src/index.ts').LoadingMode>;
|
|
18
|
+
readonly default: "inline";
|
|
19
|
+
};
|
|
20
|
+
readonly text: {
|
|
21
|
+
readonly type: StringConstructor;
|
|
22
|
+
readonly default: undefined;
|
|
23
|
+
};
|
|
24
|
+
readonly size: {
|
|
25
|
+
readonly type: import('vue').PropType<import('../../../headless/src/index.ts').LoadingSize>;
|
|
26
|
+
readonly default: undefined;
|
|
27
|
+
};
|
|
28
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
29
|
+
readonly loading: {
|
|
30
|
+
readonly type: BooleanConstructor;
|
|
31
|
+
readonly default: true;
|
|
32
|
+
};
|
|
33
|
+
readonly mode: {
|
|
34
|
+
readonly type: import('vue').PropType<import('../../../headless/src/index.ts').LoadingMode>;
|
|
35
|
+
readonly default: "inline";
|
|
36
|
+
};
|
|
37
|
+
readonly text: {
|
|
38
|
+
readonly type: StringConstructor;
|
|
39
|
+
readonly default: undefined;
|
|
40
|
+
};
|
|
41
|
+
readonly size: {
|
|
42
|
+
readonly type: import('vue').PropType<import('../../../headless/src/index.ts').LoadingSize>;
|
|
43
|
+
readonly default: undefined;
|
|
44
|
+
};
|
|
45
|
+
}>> & Readonly<{}>, {
|
|
46
|
+
readonly text: string;
|
|
47
|
+
readonly loading: boolean;
|
|
48
|
+
readonly mode: import('../../../headless/src/index.ts').LoadingMode;
|
|
49
|
+
readonly size: import('../../../headless/src/index.ts').LoadingSize;
|
|
50
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
51
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
52
|
+
export default _default;
|
|
53
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
54
|
+
new (): {
|
|
55
|
+
$slots: S;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LoadingSize } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
fullscreen?: boolean;
|
|
4
|
+
text?: string;
|
|
5
|
+
size?: LoadingSize;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require('../style/loading.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");require("../chunks/manager-C0AUxQ1I.js");const u=require("../chunks/index-DWAWrVaT.js"),C=require("../chunks/use-signals-Bz1smiXh.js"),z=require("../config-provider/index.js"),_=e=>{if(typeof e=="number")return`${e}px`;if(typeof e=="string"&&/^\d+$/.test(e))return`${e}px`;if(typeof e=="string"&&e.endsWith("px"))return e;switch(e){case"small":return"16px";case"large":return"28px";default:return"22px"}},L=(e,o)=>typeof e=="boolean"?{loading:e,text:o.text,fullscreen:!1,size:o.size}:{loading:e.loading,text:e.text??o.text,fullscreen:e.fullscreen??!1,size:e.size??o.size};function T(e={}){const o=u.signal(e.loading??!0),n=u.signal(e.mode??"inline"),a=u.signal(e.text),l=u.signal(e.size),s=u.signal(e.defaultText??""),r=u.signal(e.defaultSize??"medium"),g=i=>{"loading"in i&&(o.value=i.loading??!0),"mode"in i&&i.mode&&(n.value=i.mode),"text"in i&&(a.value=i.text),"size"in i&&(l.value=i.size),"defaultText"in i&&(s.value=i.defaultText??""),"defaultSize"in i&&i.defaultSize!==void 0&&(r.value=i.defaultSize)},d=()=>a.value??s.value,f=()=>l.value??r.value;return{state:{get loading(){return o.value},set loading(i){o.value=i},get mode(){return n.value},set mode(i){n.value=i},get text(){return a.value},set text(i){a.value=i},get size(){return l.value},set size(i){l.value=i},get defaultText(){return s.value},set defaultText(i){s.value=i},get defaultSize(){return r.value},set defaultSize(i){r.value=i},get resolvedText(){return d()},get resolvedSize(){return f()},get indicatorSize(){return _(f())},get isInline(){return n.value==="inline"},get isContainer(){return n.value==="container"},get isFullscreen(){return n.value==="fullscreen"}},actions:{sync:g}}}const S={loading:{type:Boolean,default:!0},mode:{type:String,default:"inline"},text:{type:String,default:void 0},size:{type:[String,Number],default:void 0}},B=["data-theme"],E={class:"l-loading__indicator"},b={key:0,class:"l-loading__text"},m=t.defineComponent({__name:"LoadingMask",props:{fullscreen:{type:Boolean},text:{},size:{}},setup(e){const o=e,{teleportedCssVars:n,teleportedTheme:a}=z.useTeleportedConfig(),l=t.computed(()=>_(o.size)),s=t.computed(()=>["l-loading__mask",{"l-loading--fullscreen":o.fullscreen}]),r=t.computed(()=>({...n.value}));return(g,d)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(s.value),"data-theme":t.unref(a),style:t.normalizeStyle(r.value),role:"status","aria-live":"polite"},[t.createElementVNode("div",E,[t.createElementVNode("span",{class:"l-loading__spinner",style:t.normalizeStyle({width:l.value,height:l.value})},null,4),e.text?(t.openBlock(),t.createElementBlock("span",b,t.toDisplayString(e.text),1)):t.createCommentVNode("",!0)])],14,B))}}),N={key:0,class:"l-loading l-loading--inline",role:"status","aria-live":"polite"},$={class:"l-loading__indicator"},P={key:0,class:"l-loading__text"},R=["aria-busy"],V=t.defineComponent({name:"Loading",__name:"Loading",props:S,setup(e){const o=e,n=z.useRoutaConfig(),a=T({loading:o.loading,mode:o.mode,text:o.text,size:o.size,defaultText:n.feedback.loading.text,defaultSize:n.feedback.loading.size}),{loading:l,isInline:s,isContainer:r,isFullscreen:g,resolvedText:d,resolvedSize:f,indicatorSize:i}=C.useController(a,{loading:()=>o.loading,mode:()=>o.mode,text:()=>o.text,size:()=>o.size,defaultText:()=>n.feedback.loading.text,defaultSize:()=>n.feedback.loading.size});return(y,M)=>t.unref(s)&&t.unref(l)?(t.openBlock(),t.createElementBlock("div",N,[t.createElementVNode("div",$,[t.createElementVNode("span",{class:"l-loading__spinner",style:t.normalizeStyle({width:t.unref(i),height:t.unref(i)})},null,4),t.unref(d)?(t.openBlock(),t.createElementBlock("span",P,t.toDisplayString(t.unref(d)),1)):t.createCommentVNode("",!0)])])):t.unref(r)?(t.openBlock(),t.createElementBlock("div",{key:1,class:"l-loading l-loading--container","aria-busy":t.unref(l)?!0:void 0},[t.renderSlot(y.$slots,"default"),t.unref(l)?(t.openBlock(),t.createBlock(m,{key:0,text:t.unref(d),size:t.unref(f)},null,8,["text","size"])):t.createCommentVNode("",!0)],8,R)):t.unref(g)&&t.unref(l)?(t.openBlock(),t.createBlock(t.Teleport,{key:2,to:"body"},[t.createVNode(m,{fullscreen:"",text:t.unref(d),size:t.unref(f)},null,8,["text","size"])])):t.unref(g)?t.renderSlot(y.$slots,"default",{key:3}):t.createCommentVNode("",!0)}}),c=Symbol("L_LOADING_STATE"),q=(e,o)=>{const n=z.resolveRoutaConfigFromElement(e);return L(o,{text:n.feedback.loading.text,size:n.feedback.loading.size})},D=e=>(e[c]||(e[c]={host:document.createElement("div"),target:e,originalPosition:e.style.position,appliedRelative:!1}),e[c]),x=e=>{const o=e[c];o!=null&&o.appliedRelative&&(e.style.position=o.originalPosition,o.appliedRelative=!1)},k=e=>{const o=e[c];o&&(t.render(null,o.host),o.host.remove(),x(e),o.target=e)},I=(e,o)=>{const n=D(e),a=o.fullscreen?document.body:e;o.fullscreen?x(e):window.getComputedStyle(e).position==="static"&&(n.originalPosition=e.style.position,e.style.position="relative",n.appliedRelative=!0),n.target!==a&&n.host.isConnected&&n.host.remove(),n.target=a,n.host.isConnected||a.appendChild(n.host),t.render(t.h(m,{fullscreen:o.fullscreen,text:o.text,size:o.size}),n.host)},p=(e,o)=>{const n=q(e,o);if(!n.loading){k(e);return}I(e,n)},h={mounted(e,o){const n=e;p(n,o.value),queueMicrotask(()=>{n.isConnected&&p(n,o.value)})},updated(e,o){p(e,o.value)},unmounted(e){const o=e;k(o),delete o[c]}},v=V;v.install=e=>{e.component("LLoading",v),e.directive("loading",h)};exports.LLoading=v;exports.default=v;exports.loadingProps=S;exports.resolveLoadingIndicatorSize=_;exports.vLoading=h;
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import '../style/loading.css';
|
|
2
|
+
import { defineComponent as L, computed as _, openBlock as u, createElementBlock as p, normalizeStyle as y, unref as n, normalizeClass as N, createElementVNode as z, toDisplayString as b, createCommentVNode as m, renderSlot as k, createBlock as T, Teleport as w, createVNode as D, render as E, h as I } from "vue";
|
|
3
|
+
import "../chunks/manager-BUdQK4AD.mjs";
|
|
4
|
+
import { s as c } from "../chunks/index-B0yEC3RG.mjs";
|
|
5
|
+
import { u as P } from "../chunks/use-signals-CE1T2jXK.mjs";
|
|
6
|
+
import { useTeleportedConfig as A, useRoutaConfig as M, resolveRoutaConfigFromElement as F } from "../config-provider/index.mjs";
|
|
7
|
+
const $ = (e) => {
|
|
8
|
+
if (typeof e == "number")
|
|
9
|
+
return `${e}px`;
|
|
10
|
+
if (typeof e == "string" && /^\d+$/.test(e))
|
|
11
|
+
return `${e}px`;
|
|
12
|
+
if (typeof e == "string" && e.endsWith("px"))
|
|
13
|
+
return e;
|
|
14
|
+
switch (e) {
|
|
15
|
+
case "small":
|
|
16
|
+
return "16px";
|
|
17
|
+
case "large":
|
|
18
|
+
return "28px";
|
|
19
|
+
default:
|
|
20
|
+
return "22px";
|
|
21
|
+
}
|
|
22
|
+
}, G = (e, t) => typeof e == "boolean" ? {
|
|
23
|
+
loading: e,
|
|
24
|
+
text: t.text,
|
|
25
|
+
fullscreen: !1,
|
|
26
|
+
size: t.size
|
|
27
|
+
} : {
|
|
28
|
+
loading: e.loading,
|
|
29
|
+
text: e.text ?? t.text,
|
|
30
|
+
fullscreen: e.fullscreen ?? !1,
|
|
31
|
+
size: e.size ?? t.size
|
|
32
|
+
};
|
|
33
|
+
function O(e = {}) {
|
|
34
|
+
const t = c(e.loading ?? !0), o = c(e.mode ?? "inline"), s = c(e.text), l = c(e.size), a = c(e.defaultText ?? ""), r = c(e.defaultSize ?? "medium"), f = (i) => {
|
|
35
|
+
"loading" in i && (t.value = i.loading ?? !0), "mode" in i && i.mode && (o.value = i.mode), "text" in i && (s.value = i.text), "size" in i && (l.value = i.size), "defaultText" in i && (a.value = i.defaultText ?? ""), "defaultSize" in i && i.defaultSize !== void 0 && (r.value = i.defaultSize);
|
|
36
|
+
}, d = () => s.value ?? a.value, v = () => l.value ?? r.value;
|
|
37
|
+
return {
|
|
38
|
+
state: {
|
|
39
|
+
get loading() {
|
|
40
|
+
return t.value;
|
|
41
|
+
},
|
|
42
|
+
set loading(i) {
|
|
43
|
+
t.value = i;
|
|
44
|
+
},
|
|
45
|
+
get mode() {
|
|
46
|
+
return o.value;
|
|
47
|
+
},
|
|
48
|
+
set mode(i) {
|
|
49
|
+
o.value = i;
|
|
50
|
+
},
|
|
51
|
+
get text() {
|
|
52
|
+
return s.value;
|
|
53
|
+
},
|
|
54
|
+
set text(i) {
|
|
55
|
+
s.value = i;
|
|
56
|
+
},
|
|
57
|
+
get size() {
|
|
58
|
+
return l.value;
|
|
59
|
+
},
|
|
60
|
+
set size(i) {
|
|
61
|
+
l.value = i;
|
|
62
|
+
},
|
|
63
|
+
get defaultText() {
|
|
64
|
+
return a.value;
|
|
65
|
+
},
|
|
66
|
+
set defaultText(i) {
|
|
67
|
+
a.value = i;
|
|
68
|
+
},
|
|
69
|
+
get defaultSize() {
|
|
70
|
+
return r.value;
|
|
71
|
+
},
|
|
72
|
+
set defaultSize(i) {
|
|
73
|
+
r.value = i;
|
|
74
|
+
},
|
|
75
|
+
get resolvedText() {
|
|
76
|
+
return d();
|
|
77
|
+
},
|
|
78
|
+
get resolvedSize() {
|
|
79
|
+
return v();
|
|
80
|
+
},
|
|
81
|
+
get indicatorSize() {
|
|
82
|
+
return $(v());
|
|
83
|
+
},
|
|
84
|
+
get isInline() {
|
|
85
|
+
return o.value === "inline";
|
|
86
|
+
},
|
|
87
|
+
get isContainer() {
|
|
88
|
+
return o.value === "container";
|
|
89
|
+
},
|
|
90
|
+
get isFullscreen() {
|
|
91
|
+
return o.value === "fullscreen";
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
actions: {
|
|
95
|
+
sync: f
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
const V = {
|
|
100
|
+
loading: {
|
|
101
|
+
type: Boolean,
|
|
102
|
+
default: !0
|
|
103
|
+
},
|
|
104
|
+
mode: {
|
|
105
|
+
type: String,
|
|
106
|
+
default: "inline"
|
|
107
|
+
},
|
|
108
|
+
text: {
|
|
109
|
+
type: String,
|
|
110
|
+
default: void 0
|
|
111
|
+
},
|
|
112
|
+
size: {
|
|
113
|
+
type: [String, Number],
|
|
114
|
+
default: void 0
|
|
115
|
+
}
|
|
116
|
+
}, q = ["data-theme"], K = { class: "l-loading__indicator" }, W = {
|
|
117
|
+
key: 0,
|
|
118
|
+
class: "l-loading__text"
|
|
119
|
+
}, h = /* @__PURE__ */ L({
|
|
120
|
+
__name: "LoadingMask",
|
|
121
|
+
props: {
|
|
122
|
+
fullscreen: { type: Boolean },
|
|
123
|
+
text: {},
|
|
124
|
+
size: {}
|
|
125
|
+
},
|
|
126
|
+
setup(e) {
|
|
127
|
+
const t = e, { teleportedCssVars: o, teleportedTheme: s } = A(), l = _(() => $(t.size)), a = _(() => [
|
|
128
|
+
"l-loading__mask",
|
|
129
|
+
{
|
|
130
|
+
"l-loading--fullscreen": t.fullscreen
|
|
131
|
+
}
|
|
132
|
+
]), r = _(() => ({
|
|
133
|
+
...o.value
|
|
134
|
+
}));
|
|
135
|
+
return (f, d) => (u(), p("div", {
|
|
136
|
+
class: N(a.value),
|
|
137
|
+
"data-theme": n(s),
|
|
138
|
+
style: y(r.value),
|
|
139
|
+
role: "status",
|
|
140
|
+
"aria-live": "polite"
|
|
141
|
+
}, [
|
|
142
|
+
z("div", K, [
|
|
143
|
+
z("span", {
|
|
144
|
+
class: "l-loading__spinner",
|
|
145
|
+
style: y({ width: l.value, height: l.value })
|
|
146
|
+
}, null, 4),
|
|
147
|
+
e.text ? (u(), p("span", W, b(e.text), 1)) : m("", !0)
|
|
148
|
+
])
|
|
149
|
+
], 14, q));
|
|
150
|
+
}
|
|
151
|
+
}), Y = {
|
|
152
|
+
key: 0,
|
|
153
|
+
class: "l-loading l-loading--inline",
|
|
154
|
+
role: "status",
|
|
155
|
+
"aria-live": "polite"
|
|
156
|
+
}, j = { class: "l-loading__indicator" }, H = {
|
|
157
|
+
key: 0,
|
|
158
|
+
class: "l-loading__text"
|
|
159
|
+
}, J = ["aria-busy"], Q = /* @__PURE__ */ L({
|
|
160
|
+
name: "Loading",
|
|
161
|
+
__name: "Loading",
|
|
162
|
+
props: V,
|
|
163
|
+
setup(e) {
|
|
164
|
+
const t = e, o = M(), s = O({
|
|
165
|
+
loading: t.loading,
|
|
166
|
+
mode: t.mode,
|
|
167
|
+
text: t.text,
|
|
168
|
+
size: t.size,
|
|
169
|
+
defaultText: o.feedback.loading.text,
|
|
170
|
+
defaultSize: o.feedback.loading.size
|
|
171
|
+
}), {
|
|
172
|
+
loading: l,
|
|
173
|
+
isInline: a,
|
|
174
|
+
isContainer: r,
|
|
175
|
+
isFullscreen: f,
|
|
176
|
+
resolvedText: d,
|
|
177
|
+
resolvedSize: v,
|
|
178
|
+
indicatorSize: i
|
|
179
|
+
} = P(s, {
|
|
180
|
+
loading: () => t.loading,
|
|
181
|
+
mode: () => t.mode,
|
|
182
|
+
text: () => t.text,
|
|
183
|
+
size: () => t.size,
|
|
184
|
+
defaultText: () => o.feedback.loading.text,
|
|
185
|
+
defaultSize: () => o.feedback.loading.size
|
|
186
|
+
});
|
|
187
|
+
return (S, te) => n(a) && n(l) ? (u(), p("div", Y, [
|
|
188
|
+
z("div", j, [
|
|
189
|
+
z("span", {
|
|
190
|
+
class: "l-loading__spinner",
|
|
191
|
+
style: y({ width: n(i), height: n(i) })
|
|
192
|
+
}, null, 4),
|
|
193
|
+
n(d) ? (u(), p("span", H, b(n(d)), 1)) : m("", !0)
|
|
194
|
+
])
|
|
195
|
+
])) : n(r) ? (u(), p("div", {
|
|
196
|
+
key: 1,
|
|
197
|
+
class: "l-loading l-loading--container",
|
|
198
|
+
"aria-busy": n(l) ? !0 : void 0
|
|
199
|
+
}, [
|
|
200
|
+
k(S.$slots, "default"),
|
|
201
|
+
n(l) ? (u(), T(h, {
|
|
202
|
+
key: 0,
|
|
203
|
+
text: n(d),
|
|
204
|
+
size: n(v)
|
|
205
|
+
}, null, 8, ["text", "size"])) : m("", !0)
|
|
206
|
+
], 8, J)) : n(f) && n(l) ? (u(), T(w, {
|
|
207
|
+
key: 2,
|
|
208
|
+
to: "body"
|
|
209
|
+
}, [
|
|
210
|
+
D(h, {
|
|
211
|
+
fullscreen: "",
|
|
212
|
+
text: n(d),
|
|
213
|
+
size: n(v)
|
|
214
|
+
}, null, 8, ["text", "size"])
|
|
215
|
+
])) : n(f) ? k(S.$slots, "default", { key: 3 }) : m("", !0);
|
|
216
|
+
}
|
|
217
|
+
}), g = Symbol("L_LOADING_STATE"), U = (e, t) => {
|
|
218
|
+
const o = F(e);
|
|
219
|
+
return G(t, {
|
|
220
|
+
text: o.feedback.loading.text,
|
|
221
|
+
size: o.feedback.loading.size
|
|
222
|
+
});
|
|
223
|
+
}, X = (e) => (e[g] || (e[g] = {
|
|
224
|
+
host: document.createElement("div"),
|
|
225
|
+
target: e,
|
|
226
|
+
originalPosition: e.style.position,
|
|
227
|
+
appliedRelative: !1
|
|
228
|
+
}), e[g]), R = (e) => {
|
|
229
|
+
const t = e[g];
|
|
230
|
+
t != null && t.appliedRelative && (e.style.position = t.originalPosition, t.appliedRelative = !1);
|
|
231
|
+
}, B = (e) => {
|
|
232
|
+
const t = e[g];
|
|
233
|
+
t && (E(null, t.host), t.host.remove(), R(e), t.target = e);
|
|
234
|
+
}, Z = (e, t) => {
|
|
235
|
+
const o = X(e), s = t.fullscreen ? document.body : e;
|
|
236
|
+
t.fullscreen ? R(e) : window.getComputedStyle(e).position === "static" && (o.originalPosition = e.style.position, e.style.position = "relative", o.appliedRelative = !0), o.target !== s && o.host.isConnected && o.host.remove(), o.target = s, o.host.isConnected || s.appendChild(o.host), E(
|
|
237
|
+
I(h, {
|
|
238
|
+
fullscreen: t.fullscreen,
|
|
239
|
+
text: t.text,
|
|
240
|
+
size: t.size
|
|
241
|
+
}),
|
|
242
|
+
o.host
|
|
243
|
+
);
|
|
244
|
+
}, x = (e, t) => {
|
|
245
|
+
const o = U(e, t);
|
|
246
|
+
if (!o.loading) {
|
|
247
|
+
B(e);
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
250
|
+
Z(e, o);
|
|
251
|
+
}, ee = {
|
|
252
|
+
mounted(e, t) {
|
|
253
|
+
const o = e;
|
|
254
|
+
x(o, t.value), queueMicrotask(() => {
|
|
255
|
+
o.isConnected && x(o, t.value);
|
|
256
|
+
});
|
|
257
|
+
},
|
|
258
|
+
updated(e, t) {
|
|
259
|
+
x(e, t.value);
|
|
260
|
+
},
|
|
261
|
+
unmounted(e) {
|
|
262
|
+
const t = e;
|
|
263
|
+
B(t), delete t[g];
|
|
264
|
+
}
|
|
265
|
+
}, C = Q;
|
|
266
|
+
C.install = (e) => {
|
|
267
|
+
e.component("LLoading", C), e.directive("loading", ee);
|
|
268
|
+
};
|
|
269
|
+
export {
|
|
270
|
+
C as LLoading,
|
|
271
|
+
C as default,
|
|
272
|
+
V as loadingProps,
|
|
273
|
+
$ as resolveLoadingIndicatorSize,
|
|
274
|
+
ee as vLoading
|
|
275
|
+
};
|