@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,75 @@
|
|
|
1
|
+
import { SpaceAlign, SpaceJustify, SpaceSize } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
separator?(_: {}): 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 direction: {
|
|
13
|
+
readonly type: import('vue').PropType<import('./types').SpaceDirection>;
|
|
14
|
+
readonly default: "horizontal";
|
|
15
|
+
};
|
|
16
|
+
readonly size: {
|
|
17
|
+
readonly type: import('vue').PropType<SpaceSize>;
|
|
18
|
+
readonly default: "md";
|
|
19
|
+
};
|
|
20
|
+
readonly align: {
|
|
21
|
+
readonly type: import('vue').PropType<SpaceAlign>;
|
|
22
|
+
readonly default: "stretch";
|
|
23
|
+
};
|
|
24
|
+
readonly justify: {
|
|
25
|
+
readonly type: import('vue').PropType<SpaceJustify>;
|
|
26
|
+
readonly default: "start";
|
|
27
|
+
};
|
|
28
|
+
readonly wrap: {
|
|
29
|
+
readonly type: BooleanConstructor;
|
|
30
|
+
readonly default: false;
|
|
31
|
+
};
|
|
32
|
+
readonly inline: {
|
|
33
|
+
readonly type: BooleanConstructor;
|
|
34
|
+
readonly default: false;
|
|
35
|
+
};
|
|
36
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
37
|
+
readonly direction: {
|
|
38
|
+
readonly type: import('vue').PropType<import('./types').SpaceDirection>;
|
|
39
|
+
readonly default: "horizontal";
|
|
40
|
+
};
|
|
41
|
+
readonly size: {
|
|
42
|
+
readonly type: import('vue').PropType<SpaceSize>;
|
|
43
|
+
readonly default: "md";
|
|
44
|
+
};
|
|
45
|
+
readonly align: {
|
|
46
|
+
readonly type: import('vue').PropType<SpaceAlign>;
|
|
47
|
+
readonly default: "stretch";
|
|
48
|
+
};
|
|
49
|
+
readonly justify: {
|
|
50
|
+
readonly type: import('vue').PropType<SpaceJustify>;
|
|
51
|
+
readonly default: "start";
|
|
52
|
+
};
|
|
53
|
+
readonly wrap: {
|
|
54
|
+
readonly type: BooleanConstructor;
|
|
55
|
+
readonly default: false;
|
|
56
|
+
};
|
|
57
|
+
readonly inline: {
|
|
58
|
+
readonly type: BooleanConstructor;
|
|
59
|
+
readonly default: false;
|
|
60
|
+
};
|
|
61
|
+
}>> & Readonly<{}>, {
|
|
62
|
+
readonly inline: boolean;
|
|
63
|
+
readonly size: SpaceSize;
|
|
64
|
+
readonly direction: import('./types').SpaceDirection;
|
|
65
|
+
readonly wrap: boolean;
|
|
66
|
+
readonly justify: SpaceJustify;
|
|
67
|
+
readonly align: SpaceAlign;
|
|
68
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
69
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
70
|
+
export default _default;
|
|
71
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
72
|
+
new (): {
|
|
73
|
+
$slots: S;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require('../style/space.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y={direction:{type:String,default:"horizontal"},size:{type:[String,Number,Array],default:"md"},align:{type:String,default:"stretch"},justify:{type:String,default:"start"},wrap:{type:Boolean,default:!1},inline:{type:Boolean,default:!1}},k={class:"l-space__item"},B={key:0,class:"l-space__separator","aria-hidden":"true"},x=e.defineComponent({name:"LSpace",__name:"Space",props:y,setup(c){const s=c,p=e.useSlots(),i={sm:"var(--l-spacing-2)",md:"var(--l-spacing-4)",lg:"var(--l-spacing-6)"},u=t=>t==="start"?"flex-start":t==="end"?"flex-end":t,o=t=>typeof t=="number"?`${t}px`:/^\d+(\.\d+)?$/.test(t)?`${t}px`:t,d=t=>{const n=[];return t.forEach(r=>{if(r.type===e.Fragment&&Array.isArray(r.children)){n.push(...d(r.children));return}n.push(r)}),n},g=t=>typeof t=="string"&&t in i,h=t=>{if(Array.isArray(t)){const[r,a]=t;return{x:o(r),y:o(a)}}if(g(t)){const r=i[t];return{x:r,y:r}}const n=o(t);return{x:n,y:n}},m=e.computed(()=>(p.default?d(p.default()):[]).filter(n=>n.type===e.Comment?!1:n.type===e.Text?String(n.children??"").trim().length>0:!0)),f=e.computed(()=>h(s.size)),S=e.computed(()=>["l-space",`l-space--${s.direction}`,{"l-space--inline":s.inline,"l-space--wrap":s.wrap}]),_=e.computed(()=>({"--l-space-gap-x":f.value.x,"--l-space-gap-y":f.value.y,"--l-space-align":u(s.align),"--l-space-justify":u(s.justify)}));return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(S.value),style:e.normalizeStyle(_.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(r,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:r.key??a},[e.createElementVNode("div",k,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r)))]),t.$slots.separator&&a<m.value.length-1?(e.openBlock(),e.createElementBlock("div",B,[e.renderSlot(t.$slots,"separator")])):e.createCommentVNode("",!0)],64))),128))],6))}}),l=x;l.install=c=>{c.component("LSpace",l)};exports.LSpace=l;exports.default=l;exports.spaceProps=y;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import '../style/space.css';
|
|
2
|
+
import { defineComponent as k, useSlots as $, computed as l, Comment as A, Text as B, openBlock as n, createElementBlock as c, normalizeStyle as C, normalizeClass as L, Fragment as p, renderList as N, createElementVNode as j, createBlock as w, resolveDynamicComponent as E, renderSlot as G, createCommentVNode as V } from "vue";
|
|
3
|
+
const b = {
|
|
4
|
+
direction: {
|
|
5
|
+
type: String,
|
|
6
|
+
default: "horizontal"
|
|
7
|
+
},
|
|
8
|
+
size: {
|
|
9
|
+
type: [String, Number, Array],
|
|
10
|
+
default: "md"
|
|
11
|
+
},
|
|
12
|
+
align: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: "stretch"
|
|
15
|
+
},
|
|
16
|
+
justify: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: "start"
|
|
19
|
+
},
|
|
20
|
+
wrap: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: !1
|
|
23
|
+
},
|
|
24
|
+
inline: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: !1
|
|
27
|
+
}
|
|
28
|
+
}, v = { class: "l-space__item" }, F = {
|
|
29
|
+
key: 0,
|
|
30
|
+
class: "l-space__separator",
|
|
31
|
+
"aria-hidden": "true"
|
|
32
|
+
}, P = /* @__PURE__ */ k({
|
|
33
|
+
name: "LSpace",
|
|
34
|
+
__name: "Space",
|
|
35
|
+
props: b,
|
|
36
|
+
setup(i) {
|
|
37
|
+
const s = i, u = $(), f = {
|
|
38
|
+
sm: "var(--l-spacing-2)",
|
|
39
|
+
md: "var(--l-spacing-4)",
|
|
40
|
+
lg: "var(--l-spacing-6)"
|
|
41
|
+
}, d = (e) => e === "start" ? "flex-start" : e === "end" ? "flex-end" : e, o = (e) => typeof e == "number" ? `${e}px` : /^\d+(\.\d+)?$/.test(e) ? `${e}px` : e, y = (e) => {
|
|
42
|
+
const r = [];
|
|
43
|
+
return e.forEach((t) => {
|
|
44
|
+
if (t.type === p && Array.isArray(t.children)) {
|
|
45
|
+
r.push(...y(t.children));
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
r.push(t);
|
|
49
|
+
}), r;
|
|
50
|
+
}, S = (e) => typeof e == "string" && e in f, _ = (e) => {
|
|
51
|
+
if (Array.isArray(e)) {
|
|
52
|
+
const [t, a] = e;
|
|
53
|
+
return {
|
|
54
|
+
x: o(t),
|
|
55
|
+
y: o(a)
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
if (S(e)) {
|
|
59
|
+
const t = f[e];
|
|
60
|
+
return { x: t, y: t };
|
|
61
|
+
}
|
|
62
|
+
const r = o(e);
|
|
63
|
+
return {
|
|
64
|
+
x: r,
|
|
65
|
+
y: r
|
|
66
|
+
};
|
|
67
|
+
}, m = l(() => (u.default ? y(u.default()) : []).filter((r) => r.type === A ? !1 : r.type === B ? String(r.children ?? "").trim().length > 0 : !0)), g = l(() => _(s.size)), x = l(() => [
|
|
68
|
+
"l-space",
|
|
69
|
+
`l-space--${s.direction}`,
|
|
70
|
+
{
|
|
71
|
+
"l-space--inline": s.inline,
|
|
72
|
+
"l-space--wrap": s.wrap
|
|
73
|
+
}
|
|
74
|
+
]), z = l(() => ({
|
|
75
|
+
"--l-space-gap-x": g.value.x,
|
|
76
|
+
"--l-space-gap-y": g.value.y,
|
|
77
|
+
"--l-space-align": d(s.align),
|
|
78
|
+
"--l-space-justify": d(s.justify)
|
|
79
|
+
}));
|
|
80
|
+
return (e, r) => (n(), c("div", {
|
|
81
|
+
class: L(x.value),
|
|
82
|
+
style: C(z.value)
|
|
83
|
+
}, [
|
|
84
|
+
(n(!0), c(p, null, N(m.value, (t, a) => (n(), c(p, {
|
|
85
|
+
key: t.key ?? a
|
|
86
|
+
}, [
|
|
87
|
+
j("div", v, [
|
|
88
|
+
(n(), w(E(t)))
|
|
89
|
+
]),
|
|
90
|
+
e.$slots.separator && a < m.value.length - 1 ? (n(), c("div", F, [
|
|
91
|
+
G(e.$slots, "separator")
|
|
92
|
+
])) : V("", !0)
|
|
93
|
+
], 64))), 128))
|
|
94
|
+
], 6));
|
|
95
|
+
}
|
|
96
|
+
}), h = P;
|
|
97
|
+
h.install = (i) => {
|
|
98
|
+
i.component("LSpace", h);
|
|
99
|
+
};
|
|
100
|
+
export {
|
|
101
|
+
h as LSpace,
|
|
102
|
+
h as default,
|
|
103
|
+
b as spaceProps
|
|
104
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
export type SpaceDirection = 'horizontal' | 'vertical';
|
|
3
|
+
export type SpaceAlign = 'start' | 'center' | 'end' | 'baseline' | 'stretch';
|
|
4
|
+
export type SpaceJustify = 'start' | 'center' | 'end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
5
|
+
export type SpaceGapValue = number | string;
|
|
6
|
+
export type SpaceGapTuple = [SpaceGapValue, SpaceGapValue];
|
|
7
|
+
export type SpaceSize = 'sm' | 'md' | 'lg' | SpaceGapValue | SpaceGapTuple;
|
|
8
|
+
export declare const spaceProps: {
|
|
9
|
+
readonly direction: {
|
|
10
|
+
readonly type: PropType<SpaceDirection>;
|
|
11
|
+
readonly default: "horizontal";
|
|
12
|
+
};
|
|
13
|
+
readonly size: {
|
|
14
|
+
readonly type: PropType<SpaceSize>;
|
|
15
|
+
readonly default: "md";
|
|
16
|
+
};
|
|
17
|
+
readonly align: {
|
|
18
|
+
readonly type: PropType<SpaceAlign>;
|
|
19
|
+
readonly default: "stretch";
|
|
20
|
+
};
|
|
21
|
+
readonly justify: {
|
|
22
|
+
readonly type: PropType<SpaceJustify>;
|
|
23
|
+
readonly default: "start";
|
|
24
|
+
};
|
|
25
|
+
readonly wrap: {
|
|
26
|
+
readonly type: BooleanConstructor;
|
|
27
|
+
readonly default: false;
|
|
28
|
+
};
|
|
29
|
+
readonly inline: {
|
|
30
|
+
readonly type: BooleanConstructor;
|
|
31
|
+
readonly default: false;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export type SpaceProps = ExtractPropTypes<typeof spaceProps>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
readonly direction: {
|
|
3
|
+
readonly type: import('vue').PropType<import('./types').SplitterDirection>;
|
|
4
|
+
readonly default: "horizontal";
|
|
5
|
+
};
|
|
6
|
+
readonly sizes: {
|
|
7
|
+
readonly type: import('vue').PropType<number[]>;
|
|
8
|
+
readonly default: undefined;
|
|
9
|
+
};
|
|
10
|
+
readonly defaultSizes: {
|
|
11
|
+
readonly type: import('vue').PropType<number[]>;
|
|
12
|
+
readonly default: undefined;
|
|
13
|
+
};
|
|
14
|
+
readonly keyboardStep: {
|
|
15
|
+
readonly type: NumberConstructor;
|
|
16
|
+
readonly default: 10;
|
|
17
|
+
};
|
|
18
|
+
readonly disabled: BooleanConstructor;
|
|
19
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
change: (sizes: number[]) => void;
|
|
21
|
+
"update:sizes": (sizes: number[]) => void;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
23
|
+
readonly direction: {
|
|
24
|
+
readonly type: import('vue').PropType<import('./types').SplitterDirection>;
|
|
25
|
+
readonly default: "horizontal";
|
|
26
|
+
};
|
|
27
|
+
readonly sizes: {
|
|
28
|
+
readonly type: import('vue').PropType<number[]>;
|
|
29
|
+
readonly default: undefined;
|
|
30
|
+
};
|
|
31
|
+
readonly defaultSizes: {
|
|
32
|
+
readonly type: import('vue').PropType<number[]>;
|
|
33
|
+
readonly default: undefined;
|
|
34
|
+
};
|
|
35
|
+
readonly keyboardStep: {
|
|
36
|
+
readonly type: NumberConstructor;
|
|
37
|
+
readonly default: 10;
|
|
38
|
+
};
|
|
39
|
+
readonly disabled: BooleanConstructor;
|
|
40
|
+
}>> & Readonly<{
|
|
41
|
+
onChange?: ((sizes: number[]) => any) | undefined;
|
|
42
|
+
"onUpdate:sizes"?: ((sizes: number[]) => any) | undefined;
|
|
43
|
+
}>, {
|
|
44
|
+
readonly disabled: boolean;
|
|
45
|
+
readonly direction: import('./types').SplitterDirection;
|
|
46
|
+
readonly sizes: number[];
|
|
47
|
+
readonly defaultSizes: number[];
|
|
48
|
+
readonly keyboardStep: number;
|
|
49
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
50
|
+
rootRef: HTMLDivElement;
|
|
51
|
+
}, HTMLDivElement>;
|
|
52
|
+
export default _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
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 min: {
|
|
12
|
+
readonly type: NumberConstructor;
|
|
13
|
+
readonly default: 0;
|
|
14
|
+
};
|
|
15
|
+
readonly max: {
|
|
16
|
+
readonly type: NumberConstructor;
|
|
17
|
+
readonly default: 100;
|
|
18
|
+
};
|
|
19
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
20
|
+
readonly min: {
|
|
21
|
+
readonly type: NumberConstructor;
|
|
22
|
+
readonly default: 0;
|
|
23
|
+
};
|
|
24
|
+
readonly max: {
|
|
25
|
+
readonly type: NumberConstructor;
|
|
26
|
+
readonly default: 100;
|
|
27
|
+
};
|
|
28
|
+
}>> & Readonly<{}>, {
|
|
29
|
+
readonly min: number;
|
|
30
|
+
readonly max: number;
|
|
31
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
32
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
import { default as Splitter } from './Splitter.vue';
|
|
3
|
+
import { default as SplitterPane } from './SplitterPane.vue';
|
|
4
|
+
export declare const LSplitter: typeof Splitter & Plugin;
|
|
5
|
+
export declare const LSplitterPane: typeof SplitterPane & Plugin;
|
|
6
|
+
export * from './types';
|
|
7
|
+
export default LSplitter;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require('../style/splitter.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),ee=require("../chunks/use-id-BycaM3-h.js"),F={direction:{type:String,default:"horizontal"},sizes:{type:Array,default:void 0},defaultSizes:{type:Array,default:void 0},keyboardStep:{type:Number,default:10},disabled:Boolean},x={"update:sizes":n=>Array.isArray(n),change:n=>Array.isArray(n)},V={min:{type:Number,default:0},max:{type:Number,default:100}};function g(n){return Math.abs(n)<1e-8?0:Number(n.toFixed(10))}function O(n,s,t){return Math.min(Math.max(n,s),t)}function T(n,s){return Number.isFinite(n)?O(n,0,100):s}function D(n){if(n<=0)return[];const s=g(100/n),t=Array.from({length:n},()=>s),c=t.reduce((l,h)=>l+h,0);return t[n-1]=g(t[n-1]+(100-c)),t}function H(n,s){if(!Array.isArray(n)||n.length!==s)return D(s);const t=n.map(u=>Number.isFinite(u)&&u>0?u:0),c=t.reduce((u,d)=>u+d,0);if(c<=0)return D(s);const l=t.map(u=>g(u/c*100)),h=g(100-l.reduce((u,d)=>u+d,0));return l[s-1]=g(l[s-1]+h),l}function $(n){return`${g(n).toFixed(10).replace(/\.?0+$/,"")}%`}function k(n,s){const t=T(n,0),c=T(s,100);return{min:Math.min(t,c),max:Math.max(t,c)}}function te(n,s,t,c){if(t<0||t>=n.length-1)return n;const l=[...n],h=s[t]??k(0,100),u=s[t+1]??k(0,100),d=n[t]+n[t+1],y=Math.max(h.min,d-u.max),v=Math.min(h.max,d-u.min),b=O(n[t]+c,y,v),f=d-b;l[t]=g(b),l[t+1]=g(f);const z=l.reduce((E,_)=>E+_,0);return l[l.length-1]=g(l[l.length-1]+(100-z)),l}const re=["id"],ne=["tabindex","aria-orientation","aria-valuenow","aria-valuemin","aria-valuemax","aria-valuetext","aria-controls","aria-label","aria-disabled","onMousedown","onPointerdown","onTouchstart","onKeydown"],ae=a.defineComponent({name:"LSplitter",__name:"Splitter",props:F,emits:x,setup(n,{emit:s}){const t=n,c=s,l=a.useSlots(),h=ee.useId("splitter"),u=a.ref(null),d=a.ref([]),y=a.ref(null),v=a.ref(null),b=e=>{const r=[];return e.forEach(i=>{if(i.type===a.Fragment&&Array.isArray(i.children)){r.push(...b(i.children));return}r.push(i)}),r},f=a.computed(()=>(l.default?b(l.default()):[]).filter(r=>r.type===a.Comment?!1:r.type===a.Text?String(r.children??"").trim().length>0:!0)),z=a.computed(()=>f.value.map(e=>{const r=e.props??{},i=Number(r.min??0),o=Number(r.max??100);return k(i,o)})),E=new Set(["min","max","class","style","id"]),_=a.computed(()=>["l-splitter",`l-splitter--${t.direction}`,{"is-disabled":t.disabled}]),j=a.computed(()=>Array.isArray(t.sizes)?H(t.sizes,f.value.length):d.value.length===f.value.length?d.value:H(t.defaultSizes,f.value.length)),m=a.computed(()=>y.value&&y.value.length===f.value.length?y.value:j.value);a.watch(()=>t.sizes,()=>{y.value=null},{deep:!0});const q=(e,r=!1)=>{Array.isArray(t.sizes)?y.value=e:d.value=e,c("update:sizes",e),r&&c("change",e)},K=e=>t.direction==="vertical"?e.height:e.width,R=e=>{if("touches"in e&&e.touches.length>0)return t.direction==="vertical"?e.touches[0].clientY:e.touches[0].clientX;if("changedTouches"in e&&e.changedTouches.length>0)return t.direction==="vertical"?e.changedTouches[0].clientY:e.changedTouches[0].clientX;const r=e;return t.direction==="vertical"?r.clientY:r.clientX},A=(e,r,i,o=!1)=>{const p=te(e,z.value,r,i);q(p,o)},M=(e,r)=>{t.disabled||!u.value||(v.value={handleIndex:r,origin:R(e),sizes:[...m.value]},e.preventDefault())},w=()=>{v.value&&(v.value=null,c("change",[...m.value]))},S=e=>{if(!v.value||!u.value)return;"touches"in e&&e.preventDefault();const r=u.value.getBoundingClientRect(),i=K(r);if(i<=0)return;const o=(R(e)-v.value.origin)/i*100;A(v.value.sizes,v.value.handleIndex,o)},X=(e,r)=>{if(t.disabled)return;let i=0;if(t.direction==="vertical"?(e.key==="ArrowDown"&&(i=t.keyboardStep),e.key==="ArrowUp"&&(i=-t.keyboardStep)):(e.key==="ArrowRight"&&(i=t.keyboardStep),e.key==="ArrowLeft"&&(i=-t.keyboardStep)),e.key==="Home"||e.key==="End"){e.preventDefault();const o=B(r),p=e.key==="Home"?o.min:o.max;A(m.value,r,p-(m.value[r]??0),!0);return}i!==0&&(e.preventDefault(),A(m.value,r,i,!0))},C=e=>`${h}-pane-${e}`,Y=e=>`${C(e)} ${C(e+1)}`,U=e=>`${$(m.value[e]??0)} / ${$(m.value[e+1]??0)}`,G=e=>({flexGrow:m.value[e]??0,flexShrink:0,flexBasis:"0px"}),N=e=>{var r;return((r=f.value[e])==null?void 0:r.props)??{}},J=e=>N(e).class,Q=e=>[G(e),N(e).style],W=e=>{const r=N(e);return Object.fromEntries(Object.entries(r).filter(([i])=>!E.has(i)))},Z=e=>m.value.slice(0,e+1).reduce((r,i)=>r+i,0),I=e=>{const r=Z(e);return{"--l-splitter-handle-offset":$(Math.min(Math.max(r,0),100))}},B=e=>{const r=z.value[e]??k(0,100),i=z.value[e+1]??k(0,100),o=(m.value[e]??0)+(m.value[e+1]??0);return{min:Math.max(r.min,o-i.max),max:Math.min(r.max,o-i.min)}};return a.onMounted(()=>{window.addEventListener("mousemove",S),window.addEventListener("mouseup",w),window.addEventListener("pointermove",S),window.addEventListener("pointerup",w),window.addEventListener("touchmove",S,{passive:!1}),window.addEventListener("touchend",w)}),a.onUnmounted(()=>{window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",w),window.removeEventListener("pointermove",S),window.removeEventListener("pointerup",w),window.removeEventListener("touchmove",S),window.removeEventListener("touchend",w)}),(e,r)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"rootRef",ref:u,class:a.normalizeClass(_.value)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.value,(i,o)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:i.key??o},[a.createElementVNode("div",a.mergeProps({id:C(o),class:["l-splitter__pane",J(o)],style:Q(o)},{ref_for:!0},W(o)),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i)))],16,re),o<f.value.length-1?(a.openBlock(),a.createElementBlock("button",{key:0,type:"button",class:"l-splitter__handle",style:a.normalizeStyle(I(o)),role:"separator",tabindex:t.disabled?-1:0,"aria-orientation":t.direction,"aria-valuenow":m.value[o]??0,"aria-valuemin":B(o).min,"aria-valuemax":B(o).max,"aria-valuetext":U(o),"aria-controls":Y(o),"aria-label":`Resize panes ${o+1} and ${o+2}`,"aria-disabled":t.disabled?"true":"false",onMousedown:p=>M(p,o),onPointerdown:p=>M(p,o),onTouchstart:p=>M(p,o),onKeydown:p=>X(p,o)},[...r[0]||(r[0]=[a.createElementVNode("span",{class:"l-splitter__handle-line","aria-hidden":"true"},null,-1)])],44,ne)):a.createCommentVNode("",!0)],64))),128))],2))}}),oe=a.defineComponent({name:"LSplitterPane",inheritAttrs:!1,__name:"SplitterPane",props:V,setup(n){return(s,t)=>a.renderSlot(s.$slots,"default")}}),L=ae,P=oe;L.install=n=>{n.component("LSplitter",L),n.component("LSplitterPane",P)};P.install=n=>{n.component("LSplitterPane",P)};exports.LSplitter=L;exports.LSplitterPane=P;exports.default=L;exports.splitterEmits=x;exports.splitterPaneProps=V;exports.splitterProps=F;
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import '../style/splitter.css';
|
|
2
|
+
import { defineComponent as X, useSlots as ne, ref as _, computed as z, Comment as ae, Text as oe, watch as ie, onMounted as se, onUnmounted as le, openBlock as L, createElementBlock as k, normalizeClass as ue, Fragment as D, renderList as ce, createElementVNode as B, mergeProps as me, createBlock as de, resolveDynamicComponent as pe, normalizeStyle as fe, createCommentVNode as ve, renderSlot as ge } from "vue";
|
|
3
|
+
import { u as he } from "../chunks/use-id-D3casveg.mjs";
|
|
4
|
+
const ye = {
|
|
5
|
+
direction: {
|
|
6
|
+
type: String,
|
|
7
|
+
default: "horizontal"
|
|
8
|
+
},
|
|
9
|
+
sizes: {
|
|
10
|
+
type: Array,
|
|
11
|
+
default: void 0
|
|
12
|
+
},
|
|
13
|
+
defaultSizes: {
|
|
14
|
+
type: Array,
|
|
15
|
+
default: void 0
|
|
16
|
+
},
|
|
17
|
+
keyboardStep: {
|
|
18
|
+
type: Number,
|
|
19
|
+
default: 10
|
|
20
|
+
},
|
|
21
|
+
disabled: Boolean
|
|
22
|
+
}, we = {
|
|
23
|
+
"update:sizes": (n) => Array.isArray(n),
|
|
24
|
+
change: (n) => Array.isArray(n)
|
|
25
|
+
}, Se = {
|
|
26
|
+
min: {
|
|
27
|
+
type: Number,
|
|
28
|
+
default: 0
|
|
29
|
+
},
|
|
30
|
+
max: {
|
|
31
|
+
type: Number,
|
|
32
|
+
default: 100
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
function v(n) {
|
|
36
|
+
return Math.abs(n) < 1e-8 ? 0 : Number(n.toFixed(10));
|
|
37
|
+
}
|
|
38
|
+
function Y(n, i, t) {
|
|
39
|
+
return Math.min(Math.max(n, i), t);
|
|
40
|
+
}
|
|
41
|
+
function F(n, i) {
|
|
42
|
+
return Number.isFinite(n) ? Y(n, 0, 100) : i;
|
|
43
|
+
}
|
|
44
|
+
function V(n) {
|
|
45
|
+
if (n <= 0)
|
|
46
|
+
return [];
|
|
47
|
+
const i = v(100 / n), t = Array.from({ length: n }, () => i), u = t.reduce((s, g) => s + g, 0);
|
|
48
|
+
return t[n - 1] = v(t[n - 1] + (100 - u)), t;
|
|
49
|
+
}
|
|
50
|
+
function K(n, i) {
|
|
51
|
+
if (!Array.isArray(n) || n.length !== i)
|
|
52
|
+
return V(i);
|
|
53
|
+
const t = n.map((l) => Number.isFinite(l) && l > 0 ? l : 0), u = t.reduce((l, m) => l + m, 0);
|
|
54
|
+
if (u <= 0)
|
|
55
|
+
return V(i);
|
|
56
|
+
const s = t.map((l) => v(l / u * 100)), g = v(100 - s.reduce((l, m) => l + m, 0));
|
|
57
|
+
return s[i - 1] = v(s[i - 1] + g), s;
|
|
58
|
+
}
|
|
59
|
+
function T(n) {
|
|
60
|
+
return `${v(n).toFixed(10).replace(/\.?0+$/, "")}%`;
|
|
61
|
+
}
|
|
62
|
+
function A(n, i) {
|
|
63
|
+
const t = F(n, 0), u = F(i, 100);
|
|
64
|
+
return {
|
|
65
|
+
min: Math.min(t, u),
|
|
66
|
+
max: Math.max(t, u)
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function be(n, i, t, u) {
|
|
70
|
+
if (t < 0 || t >= n.length - 1)
|
|
71
|
+
return n;
|
|
72
|
+
const s = [...n], g = i[t] ?? A(0, 100), l = i[t + 1] ?? A(0, 100), m = n[t] + n[t + 1], h = Math.max(g.min, m - l.max), f = Math.min(g.max, m - l.min), S = Y(n[t] + u, h, f), p = m - S;
|
|
73
|
+
s[t] = v(S), s[t + 1] = v(p);
|
|
74
|
+
const b = s.reduce((P, E) => P + E, 0);
|
|
75
|
+
return s[s.length - 1] = v(s[s.length - 1] + (100 - b)), s;
|
|
76
|
+
}
|
|
77
|
+
const ze = ["id"], Le = ["tabindex", "aria-orientation", "aria-valuenow", "aria-valuemin", "aria-valuemax", "aria-valuetext", "aria-controls", "aria-label", "aria-disabled", "onMousedown", "onPointerdown", "onTouchstart", "onKeydown"], Ae = /* @__PURE__ */ X({
|
|
78
|
+
name: "LSplitter",
|
|
79
|
+
__name: "Splitter",
|
|
80
|
+
props: ye,
|
|
81
|
+
emits: we,
|
|
82
|
+
setup(n, { emit: i }) {
|
|
83
|
+
const t = n, u = i, s = ne(), g = he("splitter"), l = _(null), m = _([]), h = _(null), f = _(null), S = (e) => {
|
|
84
|
+
const r = [];
|
|
85
|
+
return e.forEach((o) => {
|
|
86
|
+
if (o.type === D && Array.isArray(o.children)) {
|
|
87
|
+
r.push(...S(o.children));
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
r.push(o);
|
|
91
|
+
}), r;
|
|
92
|
+
}, p = z(() => (s.default ? S(s.default()) : []).filter((r) => r.type === ae ? !1 : r.type === oe ? String(r.children ?? "").trim().length > 0 : !0)), b = z(() => p.value.map((e) => {
|
|
93
|
+
const r = e.props ?? {}, o = Number(r.min ?? 0), a = Number(r.max ?? 100);
|
|
94
|
+
return A(o, a);
|
|
95
|
+
})), P = /* @__PURE__ */ new Set(["min", "max", "class", "style", "id"]), E = z(() => [
|
|
96
|
+
"l-splitter",
|
|
97
|
+
`l-splitter--${t.direction}`,
|
|
98
|
+
{
|
|
99
|
+
"is-disabled": t.disabled
|
|
100
|
+
}
|
|
101
|
+
]), j = z(() => Array.isArray(t.sizes) ? K(t.sizes, p.value.length) : m.value.length === p.value.length ? m.value : K(t.defaultSizes, p.value.length)), c = z(() => h.value && h.value.length === p.value.length ? h.value : j.value);
|
|
102
|
+
ie(
|
|
103
|
+
() => t.sizes,
|
|
104
|
+
() => {
|
|
105
|
+
h.value = null;
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
deep: !0
|
|
109
|
+
}
|
|
110
|
+
);
|
|
111
|
+
const U = (e, r = !1) => {
|
|
112
|
+
Array.isArray(t.sizes) ? h.value = e : m.value = e, u("update:sizes", e), r && u("change", e);
|
|
113
|
+
}, q = (e) => t.direction === "vertical" ? e.height : e.width, x = (e) => {
|
|
114
|
+
if ("touches" in e && e.touches.length > 0)
|
|
115
|
+
return t.direction === "vertical" ? e.touches[0].clientY : e.touches[0].clientX;
|
|
116
|
+
if ("changedTouches" in e && e.changedTouches.length > 0)
|
|
117
|
+
return t.direction === "vertical" ? e.changedTouches[0].clientY : e.changedTouches[0].clientX;
|
|
118
|
+
const r = e;
|
|
119
|
+
return t.direction === "vertical" ? r.clientY : r.clientX;
|
|
120
|
+
}, M = (e, r, o, a = !1) => {
|
|
121
|
+
const d = be(e, b.value, r, o);
|
|
122
|
+
U(d, a);
|
|
123
|
+
}, C = (e, r) => {
|
|
124
|
+
t.disabled || !l.value || (f.value = {
|
|
125
|
+
handleIndex: r,
|
|
126
|
+
origin: x(e),
|
|
127
|
+
sizes: [...c.value]
|
|
128
|
+
}, e.preventDefault());
|
|
129
|
+
}, y = () => {
|
|
130
|
+
f.value && (f.value = null, u("change", [...c.value]));
|
|
131
|
+
}, w = (e) => {
|
|
132
|
+
if (!f.value || !l.value)
|
|
133
|
+
return;
|
|
134
|
+
"touches" in e && e.preventDefault();
|
|
135
|
+
const r = l.value.getBoundingClientRect(), o = q(r);
|
|
136
|
+
if (o <= 0)
|
|
137
|
+
return;
|
|
138
|
+
const a = (x(e) - f.value.origin) / o * 100;
|
|
139
|
+
M(f.value.sizes, f.value.handleIndex, a);
|
|
140
|
+
}, G = (e, r) => {
|
|
141
|
+
if (t.disabled)
|
|
142
|
+
return;
|
|
143
|
+
let o = 0;
|
|
144
|
+
if (t.direction === "vertical" ? (e.key === "ArrowDown" && (o = t.keyboardStep), e.key === "ArrowUp" && (o = -t.keyboardStep)) : (e.key === "ArrowRight" && (o = t.keyboardStep), e.key === "ArrowLeft" && (o = -t.keyboardStep)), e.key === "Home" || e.key === "End") {
|
|
145
|
+
e.preventDefault();
|
|
146
|
+
const a = R(r), d = e.key === "Home" ? a.min : a.max;
|
|
147
|
+
M(
|
|
148
|
+
c.value,
|
|
149
|
+
r,
|
|
150
|
+
d - (c.value[r] ?? 0),
|
|
151
|
+
!0
|
|
152
|
+
);
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
o !== 0 && (e.preventDefault(), M(c.value, r, o, !0));
|
|
156
|
+
}, N = (e) => `${g}-pane-${e}`, J = (e) => `${N(e)} ${N(e + 1)}`, Q = (e) => `${T(c.value[e] ?? 0)} / ${T(c.value[e + 1] ?? 0)}`, W = (e) => ({
|
|
157
|
+
flexGrow: c.value[e] ?? 0,
|
|
158
|
+
flexShrink: 0,
|
|
159
|
+
flexBasis: "0px"
|
|
160
|
+
}), $ = (e) => {
|
|
161
|
+
var r;
|
|
162
|
+
return ((r = p.value[e]) == null ? void 0 : r.props) ?? {};
|
|
163
|
+
}, Z = (e) => $(e).class, I = (e) => [
|
|
164
|
+
W(e),
|
|
165
|
+
$(e).style
|
|
166
|
+
], ee = (e) => {
|
|
167
|
+
const r = $(e);
|
|
168
|
+
return Object.fromEntries(
|
|
169
|
+
Object.entries(r).filter(([o]) => !P.has(o))
|
|
170
|
+
);
|
|
171
|
+
}, te = (e) => c.value.slice(0, e + 1).reduce((r, o) => r + o, 0), re = (e) => {
|
|
172
|
+
const r = te(e);
|
|
173
|
+
return {
|
|
174
|
+
"--l-splitter-handle-offset": T(Math.min(Math.max(r, 0), 100))
|
|
175
|
+
};
|
|
176
|
+
}, R = (e) => {
|
|
177
|
+
const r = b.value[e] ?? A(0, 100), o = b.value[e + 1] ?? A(0, 100), a = (c.value[e] ?? 0) + (c.value[e + 1] ?? 0);
|
|
178
|
+
return {
|
|
179
|
+
min: Math.max(r.min, a - o.max),
|
|
180
|
+
max: Math.min(r.max, a - o.min)
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
return se(() => {
|
|
184
|
+
window.addEventListener("mousemove", w), window.addEventListener("mouseup", y), window.addEventListener("pointermove", w), window.addEventListener("pointerup", y), window.addEventListener("touchmove", w, { passive: !1 }), window.addEventListener("touchend", y);
|
|
185
|
+
}), le(() => {
|
|
186
|
+
window.removeEventListener("mousemove", w), window.removeEventListener("mouseup", y), window.removeEventListener("pointermove", w), window.removeEventListener("pointerup", y), window.removeEventListener("touchmove", w), window.removeEventListener("touchend", y);
|
|
187
|
+
}), (e, r) => (L(), k("div", {
|
|
188
|
+
ref_key: "rootRef",
|
|
189
|
+
ref: l,
|
|
190
|
+
class: ue(E.value)
|
|
191
|
+
}, [
|
|
192
|
+
(L(!0), k(D, null, ce(p.value, (o, a) => (L(), k(D, {
|
|
193
|
+
key: o.key ?? a
|
|
194
|
+
}, [
|
|
195
|
+
B("div", me({
|
|
196
|
+
id: N(a),
|
|
197
|
+
class: ["l-splitter__pane", Z(a)],
|
|
198
|
+
style: I(a)
|
|
199
|
+
}, { ref_for: !0 }, ee(a)), [
|
|
200
|
+
(L(), de(pe(o)))
|
|
201
|
+
], 16, ze),
|
|
202
|
+
a < p.value.length - 1 ? (L(), k("button", {
|
|
203
|
+
key: 0,
|
|
204
|
+
type: "button",
|
|
205
|
+
class: "l-splitter__handle",
|
|
206
|
+
style: fe(re(a)),
|
|
207
|
+
role: "separator",
|
|
208
|
+
tabindex: t.disabled ? -1 : 0,
|
|
209
|
+
"aria-orientation": t.direction,
|
|
210
|
+
"aria-valuenow": c.value[a] ?? 0,
|
|
211
|
+
"aria-valuemin": R(a).min,
|
|
212
|
+
"aria-valuemax": R(a).max,
|
|
213
|
+
"aria-valuetext": Q(a),
|
|
214
|
+
"aria-controls": J(a),
|
|
215
|
+
"aria-label": `Resize panes ${a + 1} and ${a + 2}`,
|
|
216
|
+
"aria-disabled": t.disabled ? "true" : "false",
|
|
217
|
+
onMousedown: (d) => C(d, a),
|
|
218
|
+
onPointerdown: (d) => C(d, a),
|
|
219
|
+
onTouchstart: (d) => C(d, a),
|
|
220
|
+
onKeydown: (d) => G(d, a)
|
|
221
|
+
}, [...r[0] || (r[0] = [
|
|
222
|
+
B("span", {
|
|
223
|
+
class: "l-splitter__handle-line",
|
|
224
|
+
"aria-hidden": "true"
|
|
225
|
+
}, null, -1)
|
|
226
|
+
])], 44, Le)) : ve("", !0)
|
|
227
|
+
], 64))), 128))
|
|
228
|
+
], 2));
|
|
229
|
+
}
|
|
230
|
+
}), _e = /* @__PURE__ */ X({
|
|
231
|
+
name: "LSplitterPane",
|
|
232
|
+
inheritAttrs: !1,
|
|
233
|
+
__name: "SplitterPane",
|
|
234
|
+
props: Se,
|
|
235
|
+
setup(n) {
|
|
236
|
+
return (i, t) => ge(i.$slots, "default");
|
|
237
|
+
}
|
|
238
|
+
}), O = Ae, H = _e;
|
|
239
|
+
O.install = (n) => {
|
|
240
|
+
n.component("LSplitter", O), n.component("LSplitterPane", H);
|
|
241
|
+
};
|
|
242
|
+
H.install = (n) => {
|
|
243
|
+
n.component("LSplitterPane", H);
|
|
244
|
+
};
|
|
245
|
+
export {
|
|
246
|
+
O as LSplitter,
|
|
247
|
+
H as LSplitterPane,
|
|
248
|
+
O as default,
|
|
249
|
+
we as splitterEmits,
|
|
250
|
+
Se as splitterPaneProps,
|
|
251
|
+
ye as splitterProps
|
|
252
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
export type SplitterDirection = 'horizontal' | 'vertical';
|
|
3
|
+
export interface SplitterPaneConstraint {
|
|
4
|
+
min: number;
|
|
5
|
+
max: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const splitterProps: {
|
|
8
|
+
readonly direction: {
|
|
9
|
+
readonly type: PropType<SplitterDirection>;
|
|
10
|
+
readonly default: "horizontal";
|
|
11
|
+
};
|
|
12
|
+
readonly sizes: {
|
|
13
|
+
readonly type: PropType<number[]>;
|
|
14
|
+
readonly default: undefined;
|
|
15
|
+
};
|
|
16
|
+
readonly defaultSizes: {
|
|
17
|
+
readonly type: PropType<number[]>;
|
|
18
|
+
readonly default: undefined;
|
|
19
|
+
};
|
|
20
|
+
readonly keyboardStep: {
|
|
21
|
+
readonly type: NumberConstructor;
|
|
22
|
+
readonly default: 10;
|
|
23
|
+
};
|
|
24
|
+
readonly disabled: BooleanConstructor;
|
|
25
|
+
};
|
|
26
|
+
export declare const splitterEmits: {
|
|
27
|
+
readonly 'update:sizes': (sizes: number[]) => boolean;
|
|
28
|
+
readonly change: (sizes: number[]) => boolean;
|
|
29
|
+
};
|
|
30
|
+
export declare const splitterPaneProps: {
|
|
31
|
+
readonly min: {
|
|
32
|
+
readonly type: NumberConstructor;
|
|
33
|
+
readonly default: 0;
|
|
34
|
+
};
|
|
35
|
+
readonly max: {
|
|
36
|
+
readonly type: NumberConstructor;
|
|
37
|
+
readonly default: 100;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export type SplitterProps = ExtractPropTypes<typeof splitterProps>;
|
|
41
|
+
export type SplitterPaneProps = ExtractPropTypes<typeof splitterPaneProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SplitterPaneConstraint } from './types';
|
|
2
|
+
export declare function createEqualSizes(count: number): number[];
|
|
3
|
+
export declare function normalizeSizeList(value: number[] | undefined, count: number): number[];
|
|
4
|
+
export declare function formatSizePercent(value: number): string;
|
|
5
|
+
export declare function normalizeConstraint(min: number, max: number): SplitterPaneConstraint;
|
|
6
|
+
export declare function resizePanePair(sizes: number[], constraints: SplitterPaneConstraint[], handleIndex: number, delta: number): number[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.l-button{--l-button-theme-color: var(--l-color-primary);--l-button-theme-content: var(--l-color-primary-content);--l-button-bg: transparent;--l-button-text: currentColor;--l-button-border: transparent;--l-button-hover-bg: transparent;--l-button-active-bg: transparent;display:inline-flex;align-items:center;justify-content:center;gap:var(--l-spacing-2);border-radius:var(--l-radius-control);font-family:var(--l-font-family);font-weight:var(--l-font-weight-medium);cursor:pointer;transition:background-color .2s cubic-bezier(.4,0,.2,1),border-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1),transform .2s cubic-bezier(.4,0,.2,1);border:var(--l-spacing-0-5) solid var(--l-button-border);background:var(--l-button-bg);color:var(--l-button-text);outline:none;position:relative;overflow:hidden;white-space:nowrap;flex-shrink:0;-webkit-user-select:none;user-select:none;box-sizing:border-box}.l-button--type-primary{--l-button-theme-color: var(--l-color-primary);--l-button-theme-content: var(--l-color-primary-content)}.l-button--type-default{--l-button-theme-color: var(--l-color-neutral-content);--l-button-theme-content: var(--l-color-neutral-content);--l-button-theme-bg-fallback: var(--l-color-neutral)}.l-button--type-success{--l-button-theme-color: var(--l-color-success);--l-button-theme-content: var(--l-color-success-content)}.l-button--type-warning{--l-button-theme-color: var(--l-color-warning);--l-button-theme-content: var(--l-color-warning-content)}.l-button--type-danger{--l-button-theme-color: var(--l-color-danger);--l-button-theme-content: var(--l-color-danger-content)}.l-button--variant-solid{--l-button-bg: var(--l-button-custom-color, var(--l-button-theme-color));--l-button-text: var(--l-button-theme-content);--l-button-hover-bg: color-mix(in srgb, var(--l-button-theme-color), white 15%);--l-button-active-bg: color-mix(in srgb, var(--l-button-theme-color), black 10%)}.l-button--type-default.l-button--variant-solid{--l-button-bg: var(--l-button-custom-color, var(--l-color-neutral-hover));--l-button-hover-bg: var(--l-button-custom-color, var(--l-color-neutral-hover));--l-button-active-bg: var(--l-button-custom-color, var(--l-color-neutral-border))}.l-button--variant-outline{--l-button-bg: transparent;--l-button-text: var(--l-button-theme-color);--l-button-border: var(--l-button-theme-color);--l-button-hover-bg: color-mix(in srgb, var(--l-button-theme-color), transparent 90%);--l-button-active-bg: color-mix(in srgb, var(--l-button-theme-color), transparent 80%)}.l-button--variant-ghost{--l-button-bg: transparent;--l-button-text: var(--l-button-theme-color);--l-button-border: color-mix(in srgb, var(--l-button-theme-color), transparent 75%);--l-button-hover-bg: color-mix(in srgb, var(--l-button-theme-color), transparent 92%);--l-button-active-bg: color-mix(in srgb, var(--l-button-theme-color), transparent 84%)}.l-button--variant-text{--l-button-bg: transparent;--l-button-text: var(--l-button-theme-color);--l-button-border: transparent;--l-button-hover-bg: color-mix(in srgb, var(--l-button-theme-color), transparent 92%)}.l-button--custom{height:var(--l-button-custom-size);padding:0 calc(var(--l-button-custom-size) * .4)}.l-button--custom.l-button--icon-only,.l-button--custom.l-button--shape-circle,.l-button--custom.l-button--shape-square{width:var(--l-button-custom-size);padding:0}.l-button:hover:not(.is-disabled):not(.is-loading){background-color:var(--l-button-hover-bg);transform:translateY(-1px)}.l-button:active:not(.is-disabled):not(.is-loading){background-color:var(--l-button-active-bg);transform:translateY(0)}.l-button.l-button--shape-circle{border-radius:50%;aspect-ratio:1/1;padding:0}.l-button.l-button--shape-square{aspect-ratio:1/1;padding:0}.l-button.l-button--shape-round{border-radius:var(--l-radius-full)}.l-button--sm{padding:var(--l-spacing-2) var(--l-spacing-6);font-size:var(--l-font-size-sm);height:var(--l-size-sm)}.l-button--md{padding:var(--l-spacing-4) var(--l-spacing-10);font-size:var(--l-font-size-sm);height:var(--l-size-md)}.l-button--lg{padding:var(--l-spacing-6) var(--l-spacing-16);font-size:var(--l-font-size-base);height:var(--l-size-lg)}.l-button--block{display:flex;width:100%}.l-button.l-button--icon-only{width:var(--l-size-md);padding:0}.l-button--icon-only.l-button--sm{width:var(--l-size-sm)}.l-button--icon-only.l-button--lg{width:var(--l-size-lg)}.is-disabled{cursor:not-allowed;opacity:.5;filter:grayscale(.5)}.is-loading{cursor:wait;opacity:.8;pointer-events:none}.l-button__loader{width:1.2em;height:1.2em;border:var(--l-spacing-1) solid currentColor;border-bottom-color:transparent;border-radius:50%;animation:l-spin .8s linear infinite;position:absolute}@keyframes l-spin{to{transform:rotate(360deg)}}.l-fade-enter-active,.l-fade-leave-active{transition:opacity .3s ease}.l-fade-enter-from,.l-fade-leave-to{opacity:0}.l-button__content,.l-button__icon-prefix,.l-button__icon-suffix{display:inline-flex;align-items:center;transition:opacity .2s ease,transform .2s ease}.is-loading .l-button__content,.is-loading .l-button__icon-prefix,.is-loading .l-button__icon-suffix{opacity:0;transform:scale(.9)}.l-button__icon-prefix,.l-button__icon-suffix{font-size:1.1em}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.l-checkbox{--l-checkbox-size: var(--l-checkbox-size-md);--l-checkbox-color: var(--l-color-primary);--l-checkbox-bg: var(--l-control-bg);--l-checkbox-border: var(--l-color-neutral-border);--l-checkbox-text: var(--l-control-text);--l-checkbox-radius: 4px;display:inline-flex;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;margin-right:var(--l-spacing-6);position:relative;transition:all .3s cubic-bezier(.4,0,.2,1);font-family:var(--l-font-family);font-size:var(--l-font-size-base);vertical-align:middle;line-height:1}.l-checkbox--sm{--l-checkbox-size: var(--l-checkbox-size-sm);font-size:var(--l-font-size-sm)}.l-checkbox--lg{--l-checkbox-size: var(--l-checkbox-size-lg);font-size:var(--l-font-size-lg)}.l-checkbox__input-wrapper{position:relative;display:inline-flex;align-items:center;justify-content:center;width:var(--l-checkbox-size);height:var(--l-checkbox-size);flex-shrink:0}.l-checkbox__original{opacity:0;outline:none;position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;margin:0}.l-checkbox__inner{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--l-checkbox-radius);border:2px solid var(--l-checkbox-border);background-color:var(--l-checkbox-bg);box-sizing:border-box;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex;align-items:center;justify-content:center;z-index:1}.l-checkbox__checkmark{width:70%;height:70%;color:#fff;opacity:0;transform:scale(.5);transition:all .3s cubic-bezier(.175,.885,.32,1.275)}.l-checkbox__checkmark path{stroke-dasharray:1200;stroke-dashoffset:1200;transition:stroke-dashoffset .4s ease-out}.l-checkbox__inner:after{content:"";position:absolute;width:10px;height:1.5px;background-color:#fff;transform:scale(0);transition:transform .2s cubic-bezier(.4,0,.2,1)}.l-checkbox:hover .l-checkbox__inner{border-color:var(--l-checkbox-color);box-shadow:0 0 0 4px color-mix(in srgb,var(--l-checkbox-color),transparent 85%)}.is-checked .l-checkbox__inner,.is-indeterminate .l-checkbox__inner{border-color:var(--l-checkbox-color);background-color:var(--l-checkbox-color)}.is-checked .l-checkbox__checkmark{opacity:1;transform:scale(1)}.is-checked .l-checkbox__checkmark path{stroke-dashoffset:0}.is-indeterminate .l-checkbox__inner:after{transform:scale(1)}.is-focused .l-checkbox__inner{box-shadow:0 0 0 4px color-mix(in srgb,var(--l-checkbox-color),transparent 70%)}.is-disabled{cursor:not-allowed;opacity:.5}.is-disabled .l-checkbox__inner{border-color:var(--l-checkbox-border);background-color:var(--l-control-disabled-bg)}.is-bordered{padding:var(--l-spacing-4) var(--l-spacing-8);border-radius:var(--l-radius-control);border:1px solid var(--l-checkbox-border)}.is-bordered.is-checked{border-color:var(--l-checkbox-color);background:color-mix(in srgb,var(--l-checkbox-color),transparent 95%)}.l-checkbox__label{padding-left:var(--l-spacing-4);color:var(--l-checkbox-text);line-height:1}.is-checked .l-checkbox__label{color:var(--l-checkbox-color)}.l-checkbox-group{display:flex;flex-wrap:wrap;gap:var(--l-spacing-4)}
|