@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,548 @@
|
|
|
1
|
+
import '../style/tree.css';
|
|
2
|
+
import { w as X } from "../chunks/install-DJNxamQ0.mjs";
|
|
3
|
+
import { computed as h, watch as T, defineComponent as I, inject as O, openBlock as r, createElementBlock as c, normalizeStyle as E, unref as n, normalizeClass as S, createElementVNode as u, withModifiers as M, createCommentVNode as K, renderSlot as B, createTextVNode as P, toDisplayString as H, Fragment as Y, renderList as ee, createBlock as U, withCtx as Z, provide as te } from "vue";
|
|
4
|
+
import { a as de } from "../chunks/style-C-58-Hx4.mjs";
|
|
5
|
+
import { u as q } from "../chunks/use-id-D3casveg.mjs";
|
|
6
|
+
import { u as se } from "../chunks/use-signals-CE1T2jXK.mjs";
|
|
7
|
+
import "../chunks/manager-BUdQK4AD.mjs";
|
|
8
|
+
import { c as ae } from "../chunks/controller-3cWaJJMW.mjs";
|
|
9
|
+
const A = Symbol("TreeContextKey"), oe = {
|
|
10
|
+
data: {
|
|
11
|
+
type: Array,
|
|
12
|
+
default: () => []
|
|
13
|
+
},
|
|
14
|
+
nodes: {
|
|
15
|
+
type: Array,
|
|
16
|
+
default: void 0
|
|
17
|
+
},
|
|
18
|
+
fieldNames: {
|
|
19
|
+
type: Object,
|
|
20
|
+
default: void 0
|
|
21
|
+
},
|
|
22
|
+
nodeKey: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: "id"
|
|
25
|
+
},
|
|
26
|
+
labelKey: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "label"
|
|
29
|
+
},
|
|
30
|
+
childrenKey: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: "children"
|
|
33
|
+
},
|
|
34
|
+
currentNodeKey: {
|
|
35
|
+
type: [String, Number],
|
|
36
|
+
default: void 0
|
|
37
|
+
},
|
|
38
|
+
defaultCurrentNodeKey: {
|
|
39
|
+
type: [String, Number],
|
|
40
|
+
default: null
|
|
41
|
+
},
|
|
42
|
+
checkedKeys: {
|
|
43
|
+
type: Array,
|
|
44
|
+
default: void 0
|
|
45
|
+
},
|
|
46
|
+
defaultCheckedKeys: {
|
|
47
|
+
type: Array,
|
|
48
|
+
default: () => []
|
|
49
|
+
},
|
|
50
|
+
expandedKeys: {
|
|
51
|
+
type: Array,
|
|
52
|
+
default: void 0
|
|
53
|
+
},
|
|
54
|
+
defaultExpandedKeys: {
|
|
55
|
+
type: Array,
|
|
56
|
+
default: () => []
|
|
57
|
+
},
|
|
58
|
+
showCheckbox: Boolean,
|
|
59
|
+
checkStrictly: Boolean,
|
|
60
|
+
expandOnClickNode: Boolean,
|
|
61
|
+
accordion: Boolean,
|
|
62
|
+
filterable: Boolean,
|
|
63
|
+
showIcon: {
|
|
64
|
+
type: Boolean,
|
|
65
|
+
default: !0
|
|
66
|
+
},
|
|
67
|
+
showLine: Boolean,
|
|
68
|
+
disabled: Boolean,
|
|
69
|
+
emptyText: {
|
|
70
|
+
type: String,
|
|
71
|
+
default: "No data"
|
|
72
|
+
},
|
|
73
|
+
height: {
|
|
74
|
+
type: [Number, String],
|
|
75
|
+
default: void 0
|
|
76
|
+
},
|
|
77
|
+
size: {
|
|
78
|
+
type: String,
|
|
79
|
+
default: "md"
|
|
80
|
+
},
|
|
81
|
+
itemHeight: {
|
|
82
|
+
type: [Number, String],
|
|
83
|
+
default: void 0
|
|
84
|
+
}
|
|
85
|
+
}, ie = {
|
|
86
|
+
"update:currentNodeKey": (e) => !0,
|
|
87
|
+
"update:checkedKeys": (e) => !0,
|
|
88
|
+
"update:expandedKeys": (e) => !0,
|
|
89
|
+
"current-change": (e, d) => !0,
|
|
90
|
+
check: (e) => !0,
|
|
91
|
+
"node-click": (e, d) => !0,
|
|
92
|
+
"node-expand": (e, d) => !0,
|
|
93
|
+
"node-collapse": (e, d) => !0
|
|
94
|
+
}, j = (e = [], d = []) => e.length === d.length && e.every((a, i) => Object.is(a, d[i])), ne = (e, d) => {
|
|
95
|
+
var i, s;
|
|
96
|
+
if ((i = d.fieldNames) != null && i.key) return d.fieldNames.key;
|
|
97
|
+
if ((s = d.fieldNames) != null && s.id) return d.fieldNames.id;
|
|
98
|
+
if (d.nodeKey !== "id") return d.nodeKey;
|
|
99
|
+
const a = e[0];
|
|
100
|
+
return !a || typeof a != "object" || "id" in a ? "id" : "key" in a ? "key" : "value" in a ? "value" : "id";
|
|
101
|
+
}, le = (e, d) => {
|
|
102
|
+
const a = h(() => e.nodes ?? e.data), i = h(() => {
|
|
103
|
+
var o, x, V;
|
|
104
|
+
const t = ne(a.value, e);
|
|
105
|
+
return {
|
|
106
|
+
key: t,
|
|
107
|
+
id: ((o = e.fieldNames) == null ? void 0 : o.id) ?? t,
|
|
108
|
+
label: ((x = e.fieldNames) == null ? void 0 : x.label) ?? e.labelKey,
|
|
109
|
+
children: ((V = e.fieldNames) == null ? void 0 : V.children) ?? e.childrenKey
|
|
110
|
+
};
|
|
111
|
+
}), s = ae({
|
|
112
|
+
data: a.value,
|
|
113
|
+
checkedKeys: e.checkedKeys ?? e.defaultCheckedKeys,
|
|
114
|
+
currentNodeKey: e.currentNodeKey ?? e.defaultCurrentNodeKey,
|
|
115
|
+
expandedKeys: e.expandedKeys ?? e.defaultExpandedKeys,
|
|
116
|
+
multiple: e.showCheckbox,
|
|
117
|
+
checkStrictly: e.checkStrictly,
|
|
118
|
+
accordion: e.accordion,
|
|
119
|
+
fieldNames: i.value,
|
|
120
|
+
onCurrentChange: (t, o) => {
|
|
121
|
+
d("update:currentNodeKey", t), d("current-change", o, t);
|
|
122
|
+
},
|
|
123
|
+
onCheck: (t, o) => {
|
|
124
|
+
d("update:checkedKeys", t), d("check", {
|
|
125
|
+
checkedKeys: t,
|
|
126
|
+
halfCheckedKeys: p.value,
|
|
127
|
+
checkedNodes: o,
|
|
128
|
+
halfCheckedNodes: s.actions.getHalfCheckedNodes()
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
}), {
|
|
132
|
+
checkedKeys: w,
|
|
133
|
+
currentNodeKey: N,
|
|
134
|
+
expandedKeys: b,
|
|
135
|
+
filterText: v,
|
|
136
|
+
focusedKey: f,
|
|
137
|
+
indeterminateKeys: p,
|
|
138
|
+
visibleRows: k
|
|
139
|
+
} = se(s), C = q("tree"), l = (t) => String(t[i.value.label] ?? ""), g = () => {
|
|
140
|
+
d("update:expandedKeys", b.value.slice());
|
|
141
|
+
};
|
|
142
|
+
T(
|
|
143
|
+
a,
|
|
144
|
+
(t) => {
|
|
145
|
+
s.state.data = t;
|
|
146
|
+
},
|
|
147
|
+
{ deep: !0 }
|
|
148
|
+
), T(
|
|
149
|
+
i,
|
|
150
|
+
(t) => {
|
|
151
|
+
const o = s.state.fieldNames;
|
|
152
|
+
(o.key !== t.key || o.id !== t.id || o.label !== t.label || o.children !== t.children) && (s.state.fieldNames = t);
|
|
153
|
+
},
|
|
154
|
+
{ deep: !0 }
|
|
155
|
+
), T(
|
|
156
|
+
() => e.currentNodeKey,
|
|
157
|
+
(t) => {
|
|
158
|
+
t !== void 0 && !Object.is(t, N.value) && (s.state.currentNodeKey = t);
|
|
159
|
+
}
|
|
160
|
+
), T(
|
|
161
|
+
() => e.checkedKeys,
|
|
162
|
+
(t) => {
|
|
163
|
+
t !== void 0 && !j(t, w.value) && s.actions.setCheckedKeys(t);
|
|
164
|
+
},
|
|
165
|
+
{ deep: !0 }
|
|
166
|
+
), T(
|
|
167
|
+
() => e.expandedKeys,
|
|
168
|
+
(t) => {
|
|
169
|
+
t !== void 0 && !j(t, b.value) && s.actions.setExpandedKeys(t);
|
|
170
|
+
},
|
|
171
|
+
{ deep: !0 }
|
|
172
|
+
);
|
|
173
|
+
const y = (t) => {
|
|
174
|
+
s.actions.setCurrentKey(t);
|
|
175
|
+
}, L = (t) => {
|
|
176
|
+
s.actions.setCheckedKeys(t), d("update:checkedKeys", s.actions.getCheckedKeys()), d("check", {
|
|
177
|
+
checkedKeys: s.actions.getCheckedKeys(),
|
|
178
|
+
halfCheckedKeys: s.actions.getHalfCheckedKeys(),
|
|
179
|
+
checkedNodes: s.actions.getCheckedNodes(),
|
|
180
|
+
halfCheckedNodes: s.actions.getHalfCheckedNodes()
|
|
181
|
+
});
|
|
182
|
+
}, m = (t) => {
|
|
183
|
+
s.actions.setExpandedKeys(t), g();
|
|
184
|
+
}, _ = () => {
|
|
185
|
+
s.actions.expandAll(), g();
|
|
186
|
+
}, G = () => {
|
|
187
|
+
s.actions.collapseAll(), g();
|
|
188
|
+
}, $ = (t) => {
|
|
189
|
+
s.actions.filter(t);
|
|
190
|
+
}, F = (t) => {
|
|
191
|
+
e.disabled || t.isDisabled || (s.actions.setFocusedKey(t.key), y(t.key), d("node-click", t.node, t.key), e.expandOnClickNode && !t.isLeaf && R(t));
|
|
192
|
+
}, R = (t) => {
|
|
193
|
+
if (e.disabled || t.isDisabled || t.isLeaf) return;
|
|
194
|
+
const o = b.value.includes(t.key);
|
|
195
|
+
s.actions.toggleExpand(t.key), g(), d(o ? "node-collapse" : "node-expand", t.node, t.key);
|
|
196
|
+
}, D = (t) => {
|
|
197
|
+
!e.showCheckbox || e.disabled || t.isDisabled || (s.actions.setFocusedKey(t.key), s.actions.select(t.key));
|
|
198
|
+
}, J = (t) => {
|
|
199
|
+
var o;
|
|
200
|
+
$(((o = t.target) == null ? void 0 : o.value) ?? "");
|
|
201
|
+
}, Q = () => k.value.find((t) => t.key === f.value), z = (t) => `${C}-row-${String(t)}`, W = h(() => {
|
|
202
|
+
if (f.value != null)
|
|
203
|
+
return z(f.value);
|
|
204
|
+
});
|
|
205
|
+
return {
|
|
206
|
+
context: {
|
|
207
|
+
props: e,
|
|
208
|
+
fieldNames: i,
|
|
209
|
+
visibleRows: k,
|
|
210
|
+
filterText: v,
|
|
211
|
+
focusedKey: f,
|
|
212
|
+
activeDescendantId: W,
|
|
213
|
+
getNodeLabel: l,
|
|
214
|
+
getRowId: z,
|
|
215
|
+
handleTreeFocus: () => {
|
|
216
|
+
e.disabled || f.value == null && s.actions.focusFirst();
|
|
217
|
+
},
|
|
218
|
+
handleTreeKeydown: (t) => {
|
|
219
|
+
if (e.disabled) return;
|
|
220
|
+
const o = Q();
|
|
221
|
+
let x = !0;
|
|
222
|
+
switch (t.key) {
|
|
223
|
+
case "ArrowDown":
|
|
224
|
+
s.actions.focusNext();
|
|
225
|
+
break;
|
|
226
|
+
case "ArrowUp":
|
|
227
|
+
s.actions.focusPrevious();
|
|
228
|
+
break;
|
|
229
|
+
case "Home":
|
|
230
|
+
s.actions.focusFirst();
|
|
231
|
+
break;
|
|
232
|
+
case "End":
|
|
233
|
+
s.actions.focusLast();
|
|
234
|
+
break;
|
|
235
|
+
case "ArrowRight":
|
|
236
|
+
o ? !o.isLeaf && !o.isExpanded ? R(o) : s.actions.focusFirstChild() : s.actions.focusFirst();
|
|
237
|
+
break;
|
|
238
|
+
case "ArrowLeft":
|
|
239
|
+
o ? !o.isLeaf && o.isExpanded ? R(o) : s.actions.focusParent() : s.actions.focusFirst();
|
|
240
|
+
break;
|
|
241
|
+
case "Enter":
|
|
242
|
+
o && F(o);
|
|
243
|
+
break;
|
|
244
|
+
case " ":
|
|
245
|
+
case "Spacebar":
|
|
246
|
+
o && (e.showCheckbox ? D(o) : F(o));
|
|
247
|
+
break;
|
|
248
|
+
default:
|
|
249
|
+
x = !1;
|
|
250
|
+
}
|
|
251
|
+
x && t.preventDefault();
|
|
252
|
+
},
|
|
253
|
+
handleRowClick: F,
|
|
254
|
+
handleRowToggle: R,
|
|
255
|
+
handleRowCheck: D
|
|
256
|
+
},
|
|
257
|
+
expose: {
|
|
258
|
+
setCurrentKey: y,
|
|
259
|
+
getCurrentNode: () => s.actions.getCurrentNode(),
|
|
260
|
+
setCheckedKeys: L,
|
|
261
|
+
getCheckedKeys: () => s.actions.getCheckedKeys(),
|
|
262
|
+
getCheckedNodes: () => s.actions.getCheckedNodes(),
|
|
263
|
+
getHalfCheckedKeys: () => s.actions.getHalfCheckedKeys(),
|
|
264
|
+
getHalfCheckedNodes: () => s.actions.getHalfCheckedNodes(),
|
|
265
|
+
setExpandedKeys: m,
|
|
266
|
+
expandAll: _,
|
|
267
|
+
collapseAll: G,
|
|
268
|
+
filter: $
|
|
269
|
+
},
|
|
270
|
+
visibleRows: k,
|
|
271
|
+
filterText: v,
|
|
272
|
+
getNodeLabel: l,
|
|
273
|
+
handleFilterInput: J,
|
|
274
|
+
hasRows: h(() => k.value.length > 0)
|
|
275
|
+
};
|
|
276
|
+
}, re = ["id", "data-tree-key", "aria-level", "aria-expanded", "aria-selected", "aria-checked", "aria-disabled"], ce = ["disabled", "aria-label"], ue = ["disabled", "aria-checked"], he = {
|
|
277
|
+
key: 0,
|
|
278
|
+
viewBox: "0 0 16 16",
|
|
279
|
+
width: "12",
|
|
280
|
+
height: "12"
|
|
281
|
+
}, ye = {
|
|
282
|
+
key: 1,
|
|
283
|
+
viewBox: "0 0 1024 1024",
|
|
284
|
+
width: "10",
|
|
285
|
+
height: "10"
|
|
286
|
+
}, fe = {
|
|
287
|
+
key: 2,
|
|
288
|
+
class: "l-tree__icon"
|
|
289
|
+
}, ke = {
|
|
290
|
+
key: 0,
|
|
291
|
+
viewBox: "0 0 1024 1024",
|
|
292
|
+
width: "16",
|
|
293
|
+
height: "16"
|
|
294
|
+
}, we = {
|
|
295
|
+
key: 1,
|
|
296
|
+
viewBox: "0 0 1024 1024",
|
|
297
|
+
width: "16",
|
|
298
|
+
height: "16"
|
|
299
|
+
}, be = { class: "l-tree__label" }, ve = {
|
|
300
|
+
key: 3,
|
|
301
|
+
class: "l-tree__check",
|
|
302
|
+
"aria-hidden": "true"
|
|
303
|
+
}, Ce = /* @__PURE__ */ I({
|
|
304
|
+
name: "TreeRow",
|
|
305
|
+
__name: "TreeRow",
|
|
306
|
+
props: {
|
|
307
|
+
row: {}
|
|
308
|
+
},
|
|
309
|
+
setup(e) {
|
|
310
|
+
const d = e, a = O(A);
|
|
311
|
+
if (!a)
|
|
312
|
+
throw new Error("TreeRow must be used within LTree.");
|
|
313
|
+
const i = h(() => [
|
|
314
|
+
"l-tree__row",
|
|
315
|
+
{
|
|
316
|
+
"is-current": d.row.isCurrent,
|
|
317
|
+
"is-focused": d.row.isFocused,
|
|
318
|
+
"is-expanded": d.row.isExpanded,
|
|
319
|
+
"is-indeterminate": d.row.isIndeterminate,
|
|
320
|
+
"is-disabled": a.props.disabled || d.row.isDisabled
|
|
321
|
+
}
|
|
322
|
+
]), s = h(() => ({
|
|
323
|
+
"--l-tree-row-offset": `${d.row.level * 22}px`,
|
|
324
|
+
"--l-tree-level": d.row.level
|
|
325
|
+
})), w = h(() => [
|
|
326
|
+
"l-tree__checkbox",
|
|
327
|
+
{
|
|
328
|
+
"is-checked": d.row.isChecked,
|
|
329
|
+
"is-indeterminate": d.row.isIndeterminate
|
|
330
|
+
}
|
|
331
|
+
]), N = h(() => a.getNodeLabel(d.row.node)), b = h(
|
|
332
|
+
() => a.props.showCheckbox ? void 0 : d.row.isCurrent ? "true" : "false"
|
|
333
|
+
), v = h(() => {
|
|
334
|
+
if (a.props.showCheckbox)
|
|
335
|
+
return d.row.isIndeterminate ? "mixed" : d.row.isChecked ? "true" : "false";
|
|
336
|
+
}), f = () => {
|
|
337
|
+
a.handleRowClick(d.row);
|
|
338
|
+
}, p = () => {
|
|
339
|
+
a.handleRowToggle(d.row);
|
|
340
|
+
}, k = () => {
|
|
341
|
+
a.handleRowCheck(d.row);
|
|
342
|
+
};
|
|
343
|
+
return (C, l) => (r(), c("div", {
|
|
344
|
+
id: n(a).getRowId(e.row.key),
|
|
345
|
+
class: S(i.value),
|
|
346
|
+
"data-tree-key": e.row.key,
|
|
347
|
+
role: "treeitem",
|
|
348
|
+
"aria-level": e.row.level + 1,
|
|
349
|
+
"aria-expanded": e.row.isLeaf ? void 0 : e.row.isExpanded ? "true" : "false",
|
|
350
|
+
"aria-selected": b.value,
|
|
351
|
+
"aria-checked": v.value,
|
|
352
|
+
"aria-disabled": n(a).props.disabled || e.row.isDisabled ? "true" : "false",
|
|
353
|
+
style: E({ "--l-tree-level": e.row.level })
|
|
354
|
+
}, [
|
|
355
|
+
u("div", {
|
|
356
|
+
class: "l-tree__row-main",
|
|
357
|
+
style: E(s.value),
|
|
358
|
+
onClick: f
|
|
359
|
+
}, [
|
|
360
|
+
e.row.isLeaf ? K("", !0) : (r(), c("button", {
|
|
361
|
+
key: 0,
|
|
362
|
+
type: "button",
|
|
363
|
+
class: S(["l-tree__expand", { "is-expanded": e.row.isExpanded }]),
|
|
364
|
+
disabled: n(a).props.disabled || e.row.isDisabled,
|
|
365
|
+
"aria-label": e.row.isExpanded ? "Collapse node" : "Expand node",
|
|
366
|
+
onClick: M(p, ["stop"])
|
|
367
|
+
}, [...l[0] || (l[0] = [
|
|
368
|
+
u("svg", {
|
|
369
|
+
viewBox: "0 0 1024 1024",
|
|
370
|
+
width: "10",
|
|
371
|
+
height: "10"
|
|
372
|
+
}, [
|
|
373
|
+
u("path", {
|
|
374
|
+
fill: "currentColor",
|
|
375
|
+
d: "M338.752 104.448l65.344-65.344L836.48 471.552l-432.384 432.384-65.344-65.344 367.04-367.04z"
|
|
376
|
+
})
|
|
377
|
+
], -1)
|
|
378
|
+
])], 10, ce)),
|
|
379
|
+
n(a).props.showCheckbox ? (r(), c("button", {
|
|
380
|
+
key: 1,
|
|
381
|
+
type: "button",
|
|
382
|
+
class: S(w.value),
|
|
383
|
+
disabled: n(a).props.disabled || e.row.isDisabled,
|
|
384
|
+
role: "checkbox",
|
|
385
|
+
"aria-checked": v.value,
|
|
386
|
+
onClick: M(k, ["stop"])
|
|
387
|
+
}, [
|
|
388
|
+
e.row.isChecked ? (r(), c("svg", he, [...l[1] || (l[1] = [
|
|
389
|
+
u("path", {
|
|
390
|
+
fill: "currentColor",
|
|
391
|
+
d: "M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425a.247.247 0 0 1 .02-.022Z"
|
|
392
|
+
}, null, -1)
|
|
393
|
+
])])) : e.row.isIndeterminate ? (r(), c("svg", ye, [...l[2] || (l[2] = [
|
|
394
|
+
u("path", {
|
|
395
|
+
fill: "currentColor",
|
|
396
|
+
d: "M128 448h768v128H128z"
|
|
397
|
+
}, null, -1)
|
|
398
|
+
])])) : K("", !0)
|
|
399
|
+
], 10, ue)) : K("", !0),
|
|
400
|
+
n(a).props.showIcon ? (r(), c("span", fe, [
|
|
401
|
+
e.row.isLeaf ? (r(), c("svg", we, [...l[4] || (l[4] = [
|
|
402
|
+
u("path", {
|
|
403
|
+
fill: "currentColor",
|
|
404
|
+
d: "M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v222c0 17.7 14.3 32 32 32h226v498z"
|
|
405
|
+
}, null, -1)
|
|
406
|
+
])])) : (r(), c("svg", ke, [...l[3] || (l[3] = [
|
|
407
|
+
u("path", {
|
|
408
|
+
fill: "currentColor",
|
|
409
|
+
d: "M880 298.4H521L437.3 151c-4.1-7.1-11.7-11.5-19.9-11.5H144c-17.7 0-32 14.3-32 32v685c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zm-40 530.5H184V211.4h216.7L484.4 353c4.1 7.1 11.7 11.5 19.9 11.5H840v464.4z"
|
|
410
|
+
}, null, -1)
|
|
411
|
+
])]))
|
|
412
|
+
])) : K("", !0),
|
|
413
|
+
u("span", be, [
|
|
414
|
+
B(C.$slots, "default", {
|
|
415
|
+
node: e.row.node,
|
|
416
|
+
row: e.row
|
|
417
|
+
}, () => [
|
|
418
|
+
P(H(N.value), 1)
|
|
419
|
+
])
|
|
420
|
+
]),
|
|
421
|
+
e.row.isCurrent && !n(a).props.showCheckbox ? (r(), c("span", ve, [...l[5] || (l[5] = [
|
|
422
|
+
u("svg", {
|
|
423
|
+
viewBox: "0 0 16 16",
|
|
424
|
+
width: "14",
|
|
425
|
+
height: "14"
|
|
426
|
+
}, [
|
|
427
|
+
u("path", {
|
|
428
|
+
fill: "currentColor",
|
|
429
|
+
d: "M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425a.247.247 0 0 1 .02-.022Z"
|
|
430
|
+
})
|
|
431
|
+
], -1)
|
|
432
|
+
])])) : K("", !0)
|
|
433
|
+
], 4)
|
|
434
|
+
], 14, re));
|
|
435
|
+
}
|
|
436
|
+
}), ge = ["aria-activedescendant", "aria-multiselectable", "aria-disabled"], me = /* @__PURE__ */ I({
|
|
437
|
+
name: "TreeView",
|
|
438
|
+
__name: "TreeView",
|
|
439
|
+
props: {
|
|
440
|
+
visibleRows: {}
|
|
441
|
+
},
|
|
442
|
+
setup(e) {
|
|
443
|
+
const d = O(A);
|
|
444
|
+
if (!d)
|
|
445
|
+
throw new Error("TreeView must be used within LTree.");
|
|
446
|
+
return (a, i) => (r(), c("div", {
|
|
447
|
+
class: "l-tree__view",
|
|
448
|
+
role: "tree",
|
|
449
|
+
tabindex: "0",
|
|
450
|
+
"aria-activedescendant": n(d).activeDescendantId.value,
|
|
451
|
+
"aria-multiselectable": n(d).props.showCheckbox ? "true" : void 0,
|
|
452
|
+
"aria-disabled": n(d).props.disabled ? "true" : "false",
|
|
453
|
+
onFocus: i[0] || (i[0] = //@ts-ignore
|
|
454
|
+
(...s) => n(d).handleTreeFocus && n(d).handleTreeFocus(...s)),
|
|
455
|
+
onKeydown: i[1] || (i[1] = //@ts-ignore
|
|
456
|
+
(...s) => n(d).handleTreeKeydown && n(d).handleTreeKeydown(...s))
|
|
457
|
+
}, [
|
|
458
|
+
(r(!0), c(Y, null, ee(e.visibleRows, (s) => (r(), U(Ce, {
|
|
459
|
+
key: s.key,
|
|
460
|
+
row: s
|
|
461
|
+
}, {
|
|
462
|
+
default: Z((w) => [
|
|
463
|
+
B(a.$slots, "default", {
|
|
464
|
+
node: w.node,
|
|
465
|
+
row: w.row
|
|
466
|
+
})
|
|
467
|
+
]),
|
|
468
|
+
_: 2
|
|
469
|
+
}, 1032, ["row"]))), 128))
|
|
470
|
+
], 40, ge));
|
|
471
|
+
}
|
|
472
|
+
}), xe = {
|
|
473
|
+
key: 0,
|
|
474
|
+
class: "l-tree__filter"
|
|
475
|
+
}, Ke = ["id", "value"], Ne = {
|
|
476
|
+
key: 1,
|
|
477
|
+
class: "l-tree__empty"
|
|
478
|
+
}, pe = /* @__PURE__ */ I({
|
|
479
|
+
name: "LTree",
|
|
480
|
+
__name: "Tree",
|
|
481
|
+
props: oe,
|
|
482
|
+
emits: ie,
|
|
483
|
+
setup(e, { expose: d, emit: a }) {
|
|
484
|
+
const i = e, s = a, N = q("l-tree"), {
|
|
485
|
+
context: b,
|
|
486
|
+
expose: v,
|
|
487
|
+
visibleRows: f,
|
|
488
|
+
filterText: p,
|
|
489
|
+
getNodeLabel: k,
|
|
490
|
+
handleFilterInput: C,
|
|
491
|
+
hasRows: l
|
|
492
|
+
} = le(i, s);
|
|
493
|
+
te(A, b), d(v);
|
|
494
|
+
const g = h(() => {
|
|
495
|
+
if (i.height != null)
|
|
496
|
+
return {
|
|
497
|
+
maxHeight: typeof i.height == "number" ? `${i.height}px` : i.height,
|
|
498
|
+
overflow: "auto"
|
|
499
|
+
};
|
|
500
|
+
});
|
|
501
|
+
return (y, L) => (r(), c("div", {
|
|
502
|
+
class: S(["l-tree", [
|
|
503
|
+
`l-tree--${y.size}`,
|
|
504
|
+
{
|
|
505
|
+
"is-disabled": y.disabled,
|
|
506
|
+
"has-line": y.showLine
|
|
507
|
+
}
|
|
508
|
+
]]),
|
|
509
|
+
style: E({ "--l-tree-item-height": n(de)(y.itemHeight) })
|
|
510
|
+
}, [
|
|
511
|
+
y.filterable ? (r(), c("div", xe, [
|
|
512
|
+
u("input", {
|
|
513
|
+
id: `${n(N)}-filter`,
|
|
514
|
+
class: "l-tree__filter-input",
|
|
515
|
+
type: "text",
|
|
516
|
+
value: n(p),
|
|
517
|
+
onInput: L[0] || (L[0] = //@ts-ignore
|
|
518
|
+
(...m) => n(C) && n(C)(...m))
|
|
519
|
+
}, null, 40, Ke)
|
|
520
|
+
])) : K("", !0),
|
|
521
|
+
u("div", {
|
|
522
|
+
class: "l-tree__body",
|
|
523
|
+
style: E(g.value)
|
|
524
|
+
}, [
|
|
525
|
+
n(l) ? (r(), U(me, {
|
|
526
|
+
key: 0,
|
|
527
|
+
"visible-rows": n(f)
|
|
528
|
+
}, {
|
|
529
|
+
default: Z(({ node: m, row: _ }) => [
|
|
530
|
+
B(y.$slots, "default", {
|
|
531
|
+
node: m,
|
|
532
|
+
row: _
|
|
533
|
+
}, () => [
|
|
534
|
+
P(H(n(k)(m)), 1)
|
|
535
|
+
])
|
|
536
|
+
]),
|
|
537
|
+
_: 3
|
|
538
|
+
}, 8, ["visible-rows"])) : (r(), c("div", Ne, H(y.emptyText), 1))
|
|
539
|
+
], 4)
|
|
540
|
+
], 6));
|
|
541
|
+
}
|
|
542
|
+
}), $e = X(pe);
|
|
543
|
+
export {
|
|
544
|
+
$e as LTree,
|
|
545
|
+
$e as default,
|
|
546
|
+
ie as treeEmits,
|
|
547
|
+
oe as treeProps
|
|
548
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType, Ref } from 'vue';
|
|
2
|
+
import { TreeFieldNames, TreeNode, TreeVisibleRow } from '../../../headless/src/index.ts';
|
|
3
|
+
export interface TreeResolvedFieldNames extends Required<Pick<TreeFieldNames, 'id' | 'label' | 'children'>> {
|
|
4
|
+
key: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const treeProps: {
|
|
7
|
+
readonly data: {
|
|
8
|
+
readonly type: PropType<TreeNode[]>;
|
|
9
|
+
readonly default: () => never[];
|
|
10
|
+
};
|
|
11
|
+
readonly nodes: {
|
|
12
|
+
readonly type: PropType<TreeNode[] | undefined>;
|
|
13
|
+
readonly default: undefined;
|
|
14
|
+
};
|
|
15
|
+
readonly fieldNames: {
|
|
16
|
+
readonly type: PropType<TreeFieldNames>;
|
|
17
|
+
readonly default: undefined;
|
|
18
|
+
};
|
|
19
|
+
readonly nodeKey: {
|
|
20
|
+
readonly type: StringConstructor;
|
|
21
|
+
readonly default: "id";
|
|
22
|
+
};
|
|
23
|
+
readonly labelKey: {
|
|
24
|
+
readonly type: StringConstructor;
|
|
25
|
+
readonly default: "label";
|
|
26
|
+
};
|
|
27
|
+
readonly childrenKey: {
|
|
28
|
+
readonly type: StringConstructor;
|
|
29
|
+
readonly default: "children";
|
|
30
|
+
};
|
|
31
|
+
readonly currentNodeKey: {
|
|
32
|
+
readonly type: PropType<any>;
|
|
33
|
+
readonly default: undefined;
|
|
34
|
+
};
|
|
35
|
+
readonly defaultCurrentNodeKey: {
|
|
36
|
+
readonly type: PropType<any>;
|
|
37
|
+
readonly default: null;
|
|
38
|
+
};
|
|
39
|
+
readonly checkedKeys: {
|
|
40
|
+
readonly type: PropType<any[] | undefined>;
|
|
41
|
+
readonly default: undefined;
|
|
42
|
+
};
|
|
43
|
+
readonly defaultCheckedKeys: {
|
|
44
|
+
readonly type: PropType<any[]>;
|
|
45
|
+
readonly default: () => never[];
|
|
46
|
+
};
|
|
47
|
+
readonly expandedKeys: {
|
|
48
|
+
readonly type: PropType<any[] | undefined>;
|
|
49
|
+
readonly default: undefined;
|
|
50
|
+
};
|
|
51
|
+
readonly defaultExpandedKeys: {
|
|
52
|
+
readonly type: PropType<any[]>;
|
|
53
|
+
readonly default: () => never[];
|
|
54
|
+
};
|
|
55
|
+
readonly showCheckbox: BooleanConstructor;
|
|
56
|
+
readonly checkStrictly: BooleanConstructor;
|
|
57
|
+
readonly expandOnClickNode: BooleanConstructor;
|
|
58
|
+
readonly accordion: BooleanConstructor;
|
|
59
|
+
readonly filterable: BooleanConstructor;
|
|
60
|
+
readonly showIcon: {
|
|
61
|
+
readonly type: BooleanConstructor;
|
|
62
|
+
readonly default: true;
|
|
63
|
+
};
|
|
64
|
+
readonly showLine: BooleanConstructor;
|
|
65
|
+
readonly disabled: BooleanConstructor;
|
|
66
|
+
readonly emptyText: {
|
|
67
|
+
readonly type: StringConstructor;
|
|
68
|
+
readonly default: "No data";
|
|
69
|
+
};
|
|
70
|
+
readonly height: {
|
|
71
|
+
readonly type: PropType<number | string | undefined>;
|
|
72
|
+
readonly default: undefined;
|
|
73
|
+
};
|
|
74
|
+
readonly size: {
|
|
75
|
+
readonly type: PropType<"sm" | "md" | "lg">;
|
|
76
|
+
readonly default: "md";
|
|
77
|
+
};
|
|
78
|
+
readonly itemHeight: {
|
|
79
|
+
readonly type: PropType<number | string | undefined>;
|
|
80
|
+
readonly default: undefined;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
export declare const treeEmits: {
|
|
84
|
+
readonly 'update:currentNodeKey': (_key: any) => boolean;
|
|
85
|
+
readonly 'update:checkedKeys': (_keys: any[]) => boolean;
|
|
86
|
+
readonly 'update:expandedKeys': (_keys: any[]) => boolean;
|
|
87
|
+
readonly 'current-change': (_node: TreeNode | undefined, _key: any) => boolean;
|
|
88
|
+
readonly check: (_payload: {
|
|
89
|
+
checkedKeys: any[];
|
|
90
|
+
halfCheckedKeys: any[];
|
|
91
|
+
checkedNodes: TreeNode[];
|
|
92
|
+
halfCheckedNodes: TreeNode[];
|
|
93
|
+
}) => boolean;
|
|
94
|
+
readonly 'node-click': (_node: TreeNode, _key: any) => boolean;
|
|
95
|
+
readonly 'node-expand': (_node: TreeNode, _key: any) => boolean;
|
|
96
|
+
readonly 'node-collapse': (_node: TreeNode, _key: any) => boolean;
|
|
97
|
+
};
|
|
98
|
+
export type TreeProps = ExtractPropTypes<typeof treeProps>;
|
|
99
|
+
export type TreeEmits = typeof treeEmits;
|
|
100
|
+
export interface TreeExpose {
|
|
101
|
+
setCurrentKey: (key: any) => void;
|
|
102
|
+
getCurrentNode: () => TreeNode | undefined;
|
|
103
|
+
setCheckedKeys: (keys: any[]) => void;
|
|
104
|
+
getCheckedKeys: () => any[];
|
|
105
|
+
getCheckedNodes: () => TreeNode[];
|
|
106
|
+
getHalfCheckedKeys: () => any[];
|
|
107
|
+
getHalfCheckedNodes: () => TreeNode[];
|
|
108
|
+
setExpandedKeys: (keys: any[]) => void;
|
|
109
|
+
expandAll: () => void;
|
|
110
|
+
collapseAll: () => void;
|
|
111
|
+
filter: (value: string) => void;
|
|
112
|
+
}
|
|
113
|
+
export interface TreeContextValue {
|
|
114
|
+
props: TreeProps;
|
|
115
|
+
fieldNames: Ref<TreeResolvedFieldNames>;
|
|
116
|
+
visibleRows: Ref<TreeVisibleRow[]>;
|
|
117
|
+
filterText: Ref<string>;
|
|
118
|
+
focusedKey: Ref<any>;
|
|
119
|
+
activeDescendantId: Ref<string | undefined>;
|
|
120
|
+
getNodeLabel: (node: TreeNode) => string;
|
|
121
|
+
getRowId: (key: any) => string;
|
|
122
|
+
handleTreeFocus: () => void;
|
|
123
|
+
handleTreeKeydown: (event: KeyboardEvent) => void;
|
|
124
|
+
handleRowClick: (row: TreeVisibleRow) => void;
|
|
125
|
+
handleRowToggle: (row: TreeVisibleRow) => void;
|
|
126
|
+
handleRowCheck: (row: TreeVisibleRow) => void;
|
|
127
|
+
}
|