@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,263 @@
|
|
|
1
|
+
import '../style/table.css';
|
|
2
|
+
import { defineComponent as z, computed as _, openBlock as i, createElementBlock as p, normalizeClass as A, createElementVNode as g, normalizeStyle as P, mergeProps as m, Fragment as C, renderList as k, renderSlot as w, createTextVNode as $, toDisplayString as K, unref as L, createBlock as V, resolveDynamicComponent as E } from "vue";
|
|
3
|
+
import "../chunks/manager-BUdQK4AD.mjs";
|
|
4
|
+
import { s as h } from "../chunks/index-B0yEC3RG.mjs";
|
|
5
|
+
import { u as q } from "../chunks/use-signals-CE1T2jXK.mjs";
|
|
6
|
+
function H(y) {
|
|
7
|
+
const t = h(y.data), s = h(y.columns), n = h(0), u = h(0);
|
|
8
|
+
return {
|
|
9
|
+
state: {
|
|
10
|
+
get data() {
|
|
11
|
+
return t.value;
|
|
12
|
+
},
|
|
13
|
+
set data(l) {
|
|
14
|
+
t.value = l;
|
|
15
|
+
},
|
|
16
|
+
get columns() {
|
|
17
|
+
return s.value;
|
|
18
|
+
},
|
|
19
|
+
set columns(l) {
|
|
20
|
+
s.value = l;
|
|
21
|
+
},
|
|
22
|
+
get focusedRowIndex() {
|
|
23
|
+
return n.value;
|
|
24
|
+
},
|
|
25
|
+
set focusedRowIndex(l) {
|
|
26
|
+
n.value = l;
|
|
27
|
+
},
|
|
28
|
+
get focusedColIndex() {
|
|
29
|
+
return u.value;
|
|
30
|
+
},
|
|
31
|
+
set focusedColIndex(l) {
|
|
32
|
+
u.value = l;
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
actions: {
|
|
36
|
+
moveFocus: (l) => {
|
|
37
|
+
const c = t.value.length, v = s.value.length;
|
|
38
|
+
if (!(c === 0 || v === 0))
|
|
39
|
+
switch (l) {
|
|
40
|
+
case "up":
|
|
41
|
+
n.value = Math.max(0, n.value - 1);
|
|
42
|
+
break;
|
|
43
|
+
case "down":
|
|
44
|
+
n.value = Math.min(c - 1, n.value + 1);
|
|
45
|
+
break;
|
|
46
|
+
case "left":
|
|
47
|
+
u.value = Math.max(0, u.value - 1);
|
|
48
|
+
break;
|
|
49
|
+
case "right":
|
|
50
|
+
u.value = Math.min(v - 1, u.value + 1);
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
setFocus: (l, c) => {
|
|
55
|
+
n.value = l, u.value = c;
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
props: {
|
|
59
|
+
role: "grid",
|
|
60
|
+
get "aria-rowcount"() {
|
|
61
|
+
return t.value.length;
|
|
62
|
+
},
|
|
63
|
+
get "aria-colcount"() {
|
|
64
|
+
return s.value.length;
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
getRowProps: (l) => ({
|
|
68
|
+
role: "row",
|
|
69
|
+
"aria-rowindex": l + 1
|
|
70
|
+
}),
|
|
71
|
+
getCellProps: (l, c) => ({
|
|
72
|
+
role: "gridcell",
|
|
73
|
+
"aria-colindex": c + 1,
|
|
74
|
+
tabindex: n.value === l && u.value === c ? 0 : -1,
|
|
75
|
+
onFocus: () => {
|
|
76
|
+
n.value = l, u.value = c;
|
|
77
|
+
}
|
|
78
|
+
})
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
const U = {
|
|
82
|
+
columns: {
|
|
83
|
+
type: Array,
|
|
84
|
+
default: () => []
|
|
85
|
+
},
|
|
86
|
+
data: {
|
|
87
|
+
type: Array,
|
|
88
|
+
default: () => []
|
|
89
|
+
},
|
|
90
|
+
rowKey: {
|
|
91
|
+
type: [String, Function],
|
|
92
|
+
default: void 0
|
|
93
|
+
},
|
|
94
|
+
size: {
|
|
95
|
+
type: String,
|
|
96
|
+
default: "md"
|
|
97
|
+
},
|
|
98
|
+
stripe: {
|
|
99
|
+
type: Boolean,
|
|
100
|
+
default: !1
|
|
101
|
+
},
|
|
102
|
+
border: {
|
|
103
|
+
type: Boolean,
|
|
104
|
+
default: !1
|
|
105
|
+
},
|
|
106
|
+
height: {
|
|
107
|
+
type: [String, Number],
|
|
108
|
+
default: void 0
|
|
109
|
+
},
|
|
110
|
+
emptyText: {
|
|
111
|
+
type: String,
|
|
112
|
+
default: "暂无数据"
|
|
113
|
+
}
|
|
114
|
+
}, W = { class: "l-table__thead" }, j = {
|
|
115
|
+
class: "l-table__tr",
|
|
116
|
+
role: "row"
|
|
117
|
+
}, G = {
|
|
118
|
+
key: 0,
|
|
119
|
+
class: "l-table__tbody"
|
|
120
|
+
}, I = {
|
|
121
|
+
key: 1,
|
|
122
|
+
class: "l-table__tbody"
|
|
123
|
+
}, J = { class: "l-table__tr l-table__tr--empty" }, O = ["colspan"], Q = /* @__PURE__ */ z({
|
|
124
|
+
name: "Table",
|
|
125
|
+
__name: "Table",
|
|
126
|
+
props: U,
|
|
127
|
+
setup(y) {
|
|
128
|
+
const t = y, s = H({
|
|
129
|
+
data: t.data,
|
|
130
|
+
columns: t.columns
|
|
131
|
+
}), {
|
|
132
|
+
data: n,
|
|
133
|
+
columns: u,
|
|
134
|
+
focusedRowIndex: S,
|
|
135
|
+
focusedColIndex: l
|
|
136
|
+
} = q(s, {
|
|
137
|
+
data: () => t.data,
|
|
138
|
+
columns: () => t.columns
|
|
139
|
+
}), c = (e) => {
|
|
140
|
+
const a = {
|
|
141
|
+
ArrowUp: "up",
|
|
142
|
+
ArrowDown: "down",
|
|
143
|
+
ArrowLeft: "left",
|
|
144
|
+
ArrowRight: "right"
|
|
145
|
+
}[e.key];
|
|
146
|
+
if (a) {
|
|
147
|
+
e.preventDefault(), s.actions.moveFocus(a);
|
|
148
|
+
const r = document.querySelector(`[aria-rowindex="${s.state.focusedRowIndex + 1}"] [aria-colindex="${s.state.focusedColIndex + 1}"]`);
|
|
149
|
+
r == null || r.focus();
|
|
150
|
+
}
|
|
151
|
+
}, v = _(() => [
|
|
152
|
+
"l-table",
|
|
153
|
+
`l-table--${t.size}`,
|
|
154
|
+
{
|
|
155
|
+
"is-bordered": t.border,
|
|
156
|
+
"is-striped": t.stripe,
|
|
157
|
+
"is-empty": t.data.length === 0
|
|
158
|
+
}
|
|
159
|
+
]), x = _(() => ({
|
|
160
|
+
...s.props,
|
|
161
|
+
"aria-rowcount": n.value.length,
|
|
162
|
+
"aria-colcount": u.value.length
|
|
163
|
+
})), F = _(() => {
|
|
164
|
+
if (t.height)
|
|
165
|
+
return {
|
|
166
|
+
maxHeight: typeof t.height == "number" ? `${t.height}px` : t.height
|
|
167
|
+
};
|
|
168
|
+
}), b = (e, o) => {
|
|
169
|
+
const a = o.dataIndex ?? o.dataKey;
|
|
170
|
+
if (a)
|
|
171
|
+
return e[a];
|
|
172
|
+
}, D = (e, o) => typeof t.rowKey == "function" ? t.rowKey(e, o) : typeof t.rowKey == "string" && t.rowKey in e ? e[t.rowKey] : o, R = (e) => `is-align-${e ?? "left"}`, B = (e) => {
|
|
173
|
+
if (e)
|
|
174
|
+
return {
|
|
175
|
+
width: typeof e == "number" ? `${e}px` : e
|
|
176
|
+
};
|
|
177
|
+
}, M = (e, o) => ({
|
|
178
|
+
...s.getCellProps(e, o),
|
|
179
|
+
tabindex: S.value === e && l.value === o ? 0 : -1
|
|
180
|
+
}), N = (e, o, a, r) => {
|
|
181
|
+
var f;
|
|
182
|
+
const d = b(e, o);
|
|
183
|
+
return (f = o.render) == null ? void 0 : f.call(o, {
|
|
184
|
+
row: e,
|
|
185
|
+
column: o,
|
|
186
|
+
value: d,
|
|
187
|
+
rowIndex: a,
|
|
188
|
+
columnIndex: r
|
|
189
|
+
});
|
|
190
|
+
};
|
|
191
|
+
return (e, o) => (i(), p("div", {
|
|
192
|
+
class: A(v.value),
|
|
193
|
+
onKeydown: c
|
|
194
|
+
}, [
|
|
195
|
+
g("div", {
|
|
196
|
+
class: "l-table__body",
|
|
197
|
+
style: P(F.value)
|
|
198
|
+
}, [
|
|
199
|
+
g("table", m({ class: "l-table__table" }, x.value), [
|
|
200
|
+
g("thead", W, [
|
|
201
|
+
g("tr", j, [
|
|
202
|
+
(i(!0), p(C, null, k(e.columns, (a, r) => (i(), p("th", {
|
|
203
|
+
key: a.key,
|
|
204
|
+
class: A(["l-table__th", [R(a.align), a.headerClassName]]),
|
|
205
|
+
style: P(B(a.width)),
|
|
206
|
+
scope: "col",
|
|
207
|
+
role: "columnheader"
|
|
208
|
+
}, [
|
|
209
|
+
w(e.$slots, `header-${a.key}`, {
|
|
210
|
+
column: a,
|
|
211
|
+
columnIndex: r
|
|
212
|
+
}, () => [
|
|
213
|
+
$(K(a.title), 1)
|
|
214
|
+
])
|
|
215
|
+
], 6))), 128))
|
|
216
|
+
])
|
|
217
|
+
]),
|
|
218
|
+
e.data.length ? (i(), p("tbody", G, [
|
|
219
|
+
(i(!0), p(C, null, k(e.data, (a, r) => (i(), p("tr", m({
|
|
220
|
+
key: D(a, r),
|
|
221
|
+
class: "l-table__tr"
|
|
222
|
+
}, { ref_for: !0 }, L(s).getRowProps(r)), [
|
|
223
|
+
(i(!0), p(C, null, k(e.columns, (d, f) => (i(), p("td", m({
|
|
224
|
+
key: d.key,
|
|
225
|
+
class: ["l-table__td", [R(d.align), d.className]]
|
|
226
|
+
}, { ref_for: !0 }, M(r, f)), [
|
|
227
|
+
d.render ? (i(), V(E(N(a, d, r, f)), { key: 0 })) : w(e.$slots, `cell-${d.key}`, {
|
|
228
|
+
key: 1,
|
|
229
|
+
row: a,
|
|
230
|
+
column: d,
|
|
231
|
+
value: b(a, d),
|
|
232
|
+
rowIndex: r,
|
|
233
|
+
columnIndex: f
|
|
234
|
+
}, () => [
|
|
235
|
+
$(K(b(a, d) ?? "-"), 1)
|
|
236
|
+
])
|
|
237
|
+
], 16))), 128))
|
|
238
|
+
], 16))), 128))
|
|
239
|
+
])) : (i(), p("tbody", I, [
|
|
240
|
+
g("tr", J, [
|
|
241
|
+
g("td", {
|
|
242
|
+
class: "l-table__td l-table__empty",
|
|
243
|
+
colspan: Math.max(e.columns.length, 1)
|
|
244
|
+
}, [
|
|
245
|
+
w(e.$slots, "empty", {}, () => [
|
|
246
|
+
$(K(e.emptyText), 1)
|
|
247
|
+
])
|
|
248
|
+
], 8, O)
|
|
249
|
+
])
|
|
250
|
+
]))
|
|
251
|
+
], 16)
|
|
252
|
+
], 4)
|
|
253
|
+
], 34));
|
|
254
|
+
}
|
|
255
|
+
}), T = Q;
|
|
256
|
+
T.install = (y) => {
|
|
257
|
+
y.component("LTable", T);
|
|
258
|
+
};
|
|
259
|
+
export {
|
|
260
|
+
T as LTable,
|
|
261
|
+
T as default,
|
|
262
|
+
U as tableProps
|
|
263
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType, VNodeChild } from 'vue';
|
|
2
|
+
export type TableAlign = 'left' | 'center' | 'right';
|
|
3
|
+
export type TableSize = 'sm' | 'md' | 'lg';
|
|
4
|
+
export interface TableColumn {
|
|
5
|
+
key: string;
|
|
6
|
+
title: string;
|
|
7
|
+
dataIndex?: string;
|
|
8
|
+
dataKey?: string;
|
|
9
|
+
align?: TableAlign;
|
|
10
|
+
width?: string | number;
|
|
11
|
+
className?: string;
|
|
12
|
+
headerClassName?: string;
|
|
13
|
+
render?: TableCellRenderer;
|
|
14
|
+
}
|
|
15
|
+
export interface TableCellSlotProps<T = Record<string, unknown>> {
|
|
16
|
+
row: T;
|
|
17
|
+
column: TableColumn;
|
|
18
|
+
value: unknown;
|
|
19
|
+
rowIndex: number;
|
|
20
|
+
columnIndex: number;
|
|
21
|
+
}
|
|
22
|
+
export interface TableHeaderSlotProps {
|
|
23
|
+
column: TableColumn;
|
|
24
|
+
columnIndex: number;
|
|
25
|
+
}
|
|
26
|
+
export type TableRowKey<T = Record<string, unknown>> = keyof T | string | ((row: T, index: number) => string | number);
|
|
27
|
+
export declare const tableProps: {
|
|
28
|
+
readonly columns: {
|
|
29
|
+
readonly type: PropType<TableColumn[]>;
|
|
30
|
+
readonly default: () => never[];
|
|
31
|
+
};
|
|
32
|
+
readonly data: {
|
|
33
|
+
readonly type: PropType<Record<string, unknown>[]>;
|
|
34
|
+
readonly default: () => never[];
|
|
35
|
+
};
|
|
36
|
+
readonly rowKey: {
|
|
37
|
+
readonly type: PropType<TableRowKey | undefined>;
|
|
38
|
+
readonly default: undefined;
|
|
39
|
+
};
|
|
40
|
+
readonly size: {
|
|
41
|
+
readonly type: PropType<TableSize>;
|
|
42
|
+
readonly default: "md";
|
|
43
|
+
};
|
|
44
|
+
readonly stripe: {
|
|
45
|
+
readonly type: BooleanConstructor;
|
|
46
|
+
readonly default: false;
|
|
47
|
+
};
|
|
48
|
+
readonly border: {
|
|
49
|
+
readonly type: BooleanConstructor;
|
|
50
|
+
readonly default: false;
|
|
51
|
+
};
|
|
52
|
+
readonly height: {
|
|
53
|
+
readonly type: PropType<string | number | undefined>;
|
|
54
|
+
readonly default: undefined;
|
|
55
|
+
};
|
|
56
|
+
readonly emptyText: {
|
|
57
|
+
readonly type: StringConstructor;
|
|
58
|
+
readonly default: "暂无数据";
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export type TableProps = ExtractPropTypes<typeof tableProps>;
|
|
62
|
+
export interface TableCellRenderer<T = Record<string, unknown>> {
|
|
63
|
+
(slotProps: TableCellSlotProps<T>): VNodeChild;
|
|
64
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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 name: {
|
|
12
|
+
readonly type: import('vue').PropType<import('./types').TabName>;
|
|
13
|
+
readonly required: true;
|
|
14
|
+
};
|
|
15
|
+
readonly label: {
|
|
16
|
+
readonly type: StringConstructor;
|
|
17
|
+
readonly default: "";
|
|
18
|
+
};
|
|
19
|
+
readonly disabled: {
|
|
20
|
+
readonly type: BooleanConstructor;
|
|
21
|
+
readonly default: false;
|
|
22
|
+
};
|
|
23
|
+
readonly lazy: {
|
|
24
|
+
readonly type: BooleanConstructor;
|
|
25
|
+
readonly default: false;
|
|
26
|
+
};
|
|
27
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
28
|
+
readonly name: {
|
|
29
|
+
readonly type: import('vue').PropType<import('./types').TabName>;
|
|
30
|
+
readonly required: true;
|
|
31
|
+
};
|
|
32
|
+
readonly label: {
|
|
33
|
+
readonly type: StringConstructor;
|
|
34
|
+
readonly default: "";
|
|
35
|
+
};
|
|
36
|
+
readonly disabled: {
|
|
37
|
+
readonly type: BooleanConstructor;
|
|
38
|
+
readonly default: false;
|
|
39
|
+
};
|
|
40
|
+
readonly lazy: {
|
|
41
|
+
readonly type: BooleanConstructor;
|
|
42
|
+
readonly default: false;
|
|
43
|
+
};
|
|
44
|
+
}>> & Readonly<{}>, {
|
|
45
|
+
readonly label: string;
|
|
46
|
+
readonly disabled: boolean;
|
|
47
|
+
readonly lazy: boolean;
|
|
48
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
49
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
50
|
+
export default _default;
|
|
51
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
52
|
+
new (): {
|
|
53
|
+
$slots: S;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { TabName } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: HTMLDivElement;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
12
|
+
readonly modelValue: {
|
|
13
|
+
readonly type: import('vue').PropType<TabName | undefined>;
|
|
14
|
+
readonly default: undefined;
|
|
15
|
+
};
|
|
16
|
+
readonly defaultValue: {
|
|
17
|
+
readonly type: import('vue').PropType<TabName | undefined>;
|
|
18
|
+
readonly default: undefined;
|
|
19
|
+
};
|
|
20
|
+
readonly type: {
|
|
21
|
+
readonly type: import('vue').PropType<"line" | "card" | "chrome">;
|
|
22
|
+
readonly default: "line";
|
|
23
|
+
};
|
|
24
|
+
readonly size: {
|
|
25
|
+
readonly type: import('vue').PropType<"sm" | "md" | "lg">;
|
|
26
|
+
readonly default: "md";
|
|
27
|
+
};
|
|
28
|
+
readonly stretch: {
|
|
29
|
+
readonly type: BooleanConstructor;
|
|
30
|
+
readonly default: false;
|
|
31
|
+
};
|
|
32
|
+
readonly bg: {
|
|
33
|
+
readonly type: StringConstructor;
|
|
34
|
+
readonly default: "";
|
|
35
|
+
};
|
|
36
|
+
readonly activeBg: {
|
|
37
|
+
readonly type: StringConstructor;
|
|
38
|
+
readonly default: "";
|
|
39
|
+
};
|
|
40
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
41
|
+
change: (_name: TabName) => void;
|
|
42
|
+
"update:modelValue": (_name: TabName) => void;
|
|
43
|
+
"tab-click": (_name: TabName) => void;
|
|
44
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
45
|
+
readonly modelValue: {
|
|
46
|
+
readonly type: import('vue').PropType<TabName | undefined>;
|
|
47
|
+
readonly default: undefined;
|
|
48
|
+
};
|
|
49
|
+
readonly defaultValue: {
|
|
50
|
+
readonly type: import('vue').PropType<TabName | undefined>;
|
|
51
|
+
readonly default: undefined;
|
|
52
|
+
};
|
|
53
|
+
readonly type: {
|
|
54
|
+
readonly type: import('vue').PropType<"line" | "card" | "chrome">;
|
|
55
|
+
readonly default: "line";
|
|
56
|
+
};
|
|
57
|
+
readonly size: {
|
|
58
|
+
readonly type: import('vue').PropType<"sm" | "md" | "lg">;
|
|
59
|
+
readonly default: "md";
|
|
60
|
+
};
|
|
61
|
+
readonly stretch: {
|
|
62
|
+
readonly type: BooleanConstructor;
|
|
63
|
+
readonly default: false;
|
|
64
|
+
};
|
|
65
|
+
readonly bg: {
|
|
66
|
+
readonly type: StringConstructor;
|
|
67
|
+
readonly default: "";
|
|
68
|
+
};
|
|
69
|
+
readonly activeBg: {
|
|
70
|
+
readonly type: StringConstructor;
|
|
71
|
+
readonly default: "";
|
|
72
|
+
};
|
|
73
|
+
}>> & Readonly<{
|
|
74
|
+
onChange?: ((_name: TabName) => any) | undefined;
|
|
75
|
+
"onUpdate:modelValue"?: ((_name: TabName) => any) | undefined;
|
|
76
|
+
"onTab-click"?: ((_name: TabName) => any) | undefined;
|
|
77
|
+
}>, {
|
|
78
|
+
readonly size: "sm" | "md" | "lg";
|
|
79
|
+
readonly type: "line" | "card" | "chrome";
|
|
80
|
+
readonly modelValue: TabName | undefined;
|
|
81
|
+
readonly stretch: boolean;
|
|
82
|
+
readonly defaultValue: TabName | undefined;
|
|
83
|
+
readonly bg: string;
|
|
84
|
+
readonly activeBg: string;
|
|
85
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
86
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
87
|
+
export default _default;
|
|
88
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
89
|
+
new (): {
|
|
90
|
+
$slots: S;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
import { default as Tabs } from './Tabs.vue';
|
|
3
|
+
import { default as TabPane } from './TabPane.vue';
|
|
4
|
+
export declare const LTabs: typeof Tabs & Plugin;
|
|
5
|
+
export declare const LTabPane: typeof TabPane & Plugin;
|
|
6
|
+
export * from './types';
|
|
7
|
+
export default LTabs;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require('../style/tabs.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../chunks/manager-C0AUxQ1I.js");const T=require("../chunks/index-DWAWrVaT.js"),z=require("../chunks/use-signals-Bz1smiXh.js"),E=require("../chunks/use-id-BycaM3-h.js");function N(n={}){const o=T.signal([]),l=T.signal(typeof n.value=="function"?n.value():n.value??n.defaultValue),m=t=>{const a=o.value.filter(s=>!s.disabled);if(a.length)return a.some(s=>s.name===t)?t:a[0].name};if(typeof n.value=="function"){const t=n.value;T.effect(()=>{l.value=m(t())})}const c=()=>{l.value=m(l.value)},y=t=>{o.value.findIndex(s=>s.id===t.id)===-1?o.value=[...o.value,t]:o.value=o.value.map(s=>s.id===t.id?t:s),c()},g=t=>{o.value=o.value.filter(a=>a.id!==t),c()},f=(t,a)=>{o.value=o.value.map(s=>s.id!==t?s:{...s,...a}),c()},p=t=>{var s,d;const a=o.value.find(b=>b.name===t);!a||a.disabled||((s=n.onTabClick)==null||s.call(n,t),l.value!==t&&(l.value=t,(d=n.onChange)==null||d.call(n,t)))};return{state:{get panes(){return o.value},get activeValue(){return l.value},set activeValue(t){l.value=t}},actions:{registerPane:y,unregisterPane:g,updatePane:f,activateTab:p,moveActiveTab:t=>{const a=o.value.filter(b=>!b.disabled);if(!a.length)return;const s=a.findIndex(b=>b.name===l.value);let d=a[0];return t==="first"?d=a[0]:t==="last"?d=a[a.length-1]:s!==-1&&(d=a[(s+(t==="next"?1:-1)+a.length)%a.length]),p(d.name),d.name}}}}const B={modelValue:{type:[String,Number],default:void 0},defaultValue:{type:[String,Number],default:void 0},type:{type:String,default:"line"},size:{type:String,default:"md"},stretch:{type:Boolean,default:!1},bg:{type:String,default:""},activeBg:{type:String,default:""}},S={"update:modelValue":n=>!0,change:n=>!0,"tab-click":n=>!0},w={name:{type:[String,Number],required:!0},label:{type:String,default:""},disabled:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1}},P=Symbol("TabsKey"),A={class:"l-tabs__nav"},L={class:"l-tabs__tablist",role:"tablist","aria-orientation":"horizontal"},I=["id","aria-selected","aria-controls","tabindex","disabled","onClick"],R={class:"l-tabs__nav-label"},$={class:"l-tabs__content"},q=e.defineComponent({name:"Tabs",__name:"Tabs",props:B,emits:S,setup(n,{emit:o}){const l=n,m=o,c=N({value:()=>l.modelValue,defaultValue:l.defaultValue,onChange:i=>{m("update:modelValue",i),m("change",i)},onTabClick:i=>{m("tab-click",i)}}),{panes:y,activeValue:g}=z.useController(c),f=g,p=c.actions.activateTab,v=new Map,t=e.computed(()=>l.size),a=e.computed(()=>l.type),s=e.computed(()=>l.stretch),d=e.computed(()=>["l-tabs",`l-tabs--${l.type}`,`l-tabs--${l.size}`,{"is-stretch":l.stretch}]),b=(i,u)=>{if(u){v.set(i,u);return}v.delete(i)},C=async i=>{var r;await e.nextTick();const u=y.value.find(_=>_.name===i);u&&((r=v.get(u.id))==null||r.focus())},x=async i=>{let u=null;if(i.key==="ArrowRight"||i.key==="ArrowDown"?u="next":i.key==="ArrowLeft"||i.key==="ArrowUp"?u="prev":i.key==="Home"?u="first":i.key==="End"&&(u="last"),u){i.preventDefault();const r=c.actions.moveActiveTab(u);r!==void 0&&await C(r)}};return e.provide(P,{activeName:f,size:t,type:a,stretch:s,registerPane:c.actions.registerPane,unregisterPane:c.actions.unregisterPane,updatePane:c.actions.updatePane}),(i,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(d.value),style:e.normalizeStyle({"--l-tabs-bg":l.bg||void 0,"--l-tabs-active-bg":l.activeBg||void 0})},[e.createElementVNode("div",A,[e.createElementVNode("div",L,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(y),r=>{var _;return e.openBlock(),e.createElementBlock("button",{key:r.id,ref_for:!0,ref:V=>b(r.id,V),type:"button",class:e.normalizeClass(["l-tabs__nav-item",{"is-active":e.unref(f)===r.name,"is-disabled":r.disabled}]),role:"tab",id:r.tabId,"aria-selected":e.unref(f)===r.name,"aria-controls":r.panelId,tabindex:e.unref(f)===r.name?0:-1,disabled:r.disabled,onClick:V=>e.unref(p)(r.name),onKeydown:x},[e.createElementVNode("span",R,[(_=r.slots)!=null&&_.label?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.slots.label),{key:0})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(r.label||String(r.name)),1)],64))])],42,I)}),128))])]),e.createElementVNode("div",$,[e.renderSlot(i.$slots,"default")])],6))}}),D=e.defineComponent({name:"TabPane",__name:"TabPane",props:w,setup(n){const o=n,l=e.inject(P),m=e.useSlots();if(!l)throw new Error("[Routa] LTabPane must be used within LTabs");const c=Symbol("tab-pane"),y=E.useId("tabs-pane"),g=`${y}-tab`,f=`${y}-panel`,p=e.ref(!1),v=e.computed(()=>l.activeName.value===o.name),t=e.computed(()=>!o.lazy||p.value||v.value);return e.watch(v,a=>{a&&(p.value=!0)},{immediate:!0}),e.watch(()=>[o.name,o.label,o.disabled,o.lazy],([a,s,d,b])=>{l.registerPane({id:c,name:a,label:s,disabled:d,lazy:b,tabId:g,panelId:f,slots:m})},{immediate:!0}),e.onBeforeUnmount(()=>{l.unregisterPane(c)}),(a,s)=>t.value?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["l-tab-pane",{"is-active":v.value}]),role:"tabpanel",id:f,"aria-labelledby":g},[e.renderSlot(a.$slots,"default")],2)),[[e.vShow,v.value]]):e.createCommentVNode("",!0)}}),h=q,k=D;h.install=n=>{n.component("LTabs",h),n.component("LTabPane",k)};k.install=n=>{n.component("LTabPane",k)};exports.LTabPane=k;exports.LTabs=h;exports.TabsKey=P;exports.default=h;exports.tabPaneProps=w;exports.tabsEmits=S;exports.tabsProps=B;
|