@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,2 @@
|
|
|
1
|
+
require('../style/rich-text.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const k=require("../chunks/install-gnn2dOg9.js"),e=require("vue"),h=require("@tiptap/vue-3"),y=require("@tiptap/starter-kit"),B=require("../chunks/use-form-item-CloIcyon.js"),_={key:0,class:"l-rich-text__toolbar",role:"toolbar","aria-label":"富文本工具栏"},w={class:"l-rich-text__toolbar-group"},L={class:"l-rich-text__toolbar-group"},M={class:"l-rich-text__toolbar-group"},A={class:"l-rich-text__toolbar-group"},q={class:"l-rich-text__editor-container"},S={name:"LRichText"},T=e.defineComponent({...S,props:{modelValue:{default:""},placeholder:{default:"开始输入内容..."},disabled:{type:Boolean},readonly:{type:Boolean},size:{},minHeight:{default:"200px"},maxHeight:{}},emits:["update:modelValue","change","blur","focus"],setup(i,{emit:g}){const c=i,s=g,{formItem:r,disabled:u,readonly:a,inputId:f}=B.useFormItem(c),o=h.useEditor({content:c.modelValue,extensions:[y.configure({heading:{levels:[1,2,3]}})],editable:!u.value&&!a.value,editorProps:{attributes:{id:f.value||""}},onUpdate:({editor:t})=>{const l=t.getHTML(),n=l==="<p></p>"?"":l;s("update:modelValue",n),s("change",n),r==null||r.validate("change").catch(()=>{})},onBlur:({event:t})=>{s("blur",t),r==null||r.validate("blur").catch(()=>{})},onFocus:({event:t})=>{s("focus",t)}});e.watch(()=>c.modelValue,t=>{o.value&&t!==o.value.getHTML()&&o.value.commands.setContent(t||"",{emitUpdate:!1})}),e.watch([u,a],([t,l])=>{var n;(n=o.value)==null||n.setEditable(!t&&!l)}),e.onBeforeUnmount(()=>{var t;(t=o.value)==null||t.destroy()});const V=()=>{var t;return(t=o.value)==null?void 0:t.chain().focus().toggleBold().run()},b=()=>{var t;return(t=o.value)==null?void 0:t.chain().focus().toggleItalic().run()},x=()=>{var t;return(t=o.value)==null?void 0:t.chain().focus().toggleStrike().run()},d=t=>{var l;return(l=o.value)==null?void 0:l.chain().focus().toggleHeading({level:t}).run()},E=()=>{var t;return(t=o.value)==null?void 0:t.chain().focus().toggleBulletList().run()},p=()=>{var t;return(t=o.value)==null?void 0:t.chain().focus().toggleOrderedList().run()},C=()=>{var t;return(t=o.value)==null?void 0:t.chain().focus().toggleCodeBlock().run()},N=()=>{var t;return(t=o.value)==null?void 0:t.chain().focus().toggleBlockquote().run()},z=()=>{var t;return(t=o.value)==null?void 0:t.chain().focus().undo().run()},H=()=>{var t;return(t=o.value)==null?void 0:t.chain().focus().redo().run()};return(t,l)=>{var n;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["l-rich-text",{"is-disabled":e.unref(u),"is-readonly":e.unref(a),"is-focused":(n=e.unref(o))==null?void 0:n.isFocused}]),style:e.normalizeStyle({"--l-rt-min-height":typeof i.minHeight=="number"?i.minHeight+"px":i.minHeight,"--l-rt-max-height":typeof i.maxHeight=="number"?i.maxHeight+"px":i.maxHeight})},[e.unref(o)&&!e.unref(a)?(e.openBlock(),e.createElementBlock("div",_,[e.createElementVNode("div",w,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["l-rich-text__tool",{"is-active":e.unref(o).isActive("bold")}]),title:"加粗",onClick:V},[...l[4]||(l[4]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"18",height:"18"},[e.createElementVNode("path",{fill:"currentColor",d:"M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3v-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5z"})],-1)])],2),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["l-rich-text__tool",{"is-active":e.unref(o).isActive("italic")}]),title:"斜体",onClick:b},[...l[5]||(l[5]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"18",height:"18"},[e.createElementVNode("path",{fill:"currentColor",d:"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"})],-1)])],2),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["l-rich-text__tool",{"is-active":e.unref(o).isActive("strike")}]),title:"删除线",onClick:x},[...l[6]||(l[6]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"18",height:"18"},[e.createElementVNode("path",{fill:"currentColor",d:"M10 19h4v-3h-4v3zM5 4v3h5v3h4V7h5V4H5zM3 14h18v-2H3v2z"})],-1)])],2)]),e.createElementVNode("div",L,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["l-rich-text__tool",{"is-active":e.unref(o).isActive("heading",{level:1})}]),title:"一级标题",onClick:l[0]||(l[0]=v=>d(1))},"H1",2),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["l-rich-text__tool",{"is-active":e.unref(o).isActive("heading",{level:2})}]),title:"二级标题",onClick:l[1]||(l[1]=v=>d(2))},"H2",2),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["l-rich-text__tool",{"is-active":e.unref(o).isActive("heading",{level:3})}]),title:"三级标题",onClick:l[2]||(l[2]=v=>d(3))},"H3",2)]),e.createElementVNode("div",M,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["l-rich-text__tool",{"is-active":e.unref(o).isActive("bulletList")}]),title:"无序列表",onClick:E},[...l[7]||(l[7]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"18",height:"18"},[e.createElementVNode("path",{fill:"currentColor",d:"M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z"})],-1)])],2),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["l-rich-text__tool",{"is-active":e.unref(o).isActive("orderedList")}]),title:"有序列表",onClick:p},[...l[8]||(l[8]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"18",height:"18"},[e.createElementVNode("path",{fill:"currentColor",d:"M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z"})],-1)])],2)]),e.createElementVNode("div",A,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["l-rich-text__tool",{"is-active":e.unref(o).isActive("blockquote")}]),title:"引用",onClick:N},[...l[9]||(l[9]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"18",height:"18"},[e.createElementVNode("path",{fill:"currentColor",d:"M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z"})],-1)])],2),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["l-rich-text__tool",{"is-active":e.unref(o).isActive("codeBlock")}]),title:"代码块",onClick:C},[...l[10]||(l[10]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"18",height:"18"},[e.createElementVNode("path",{fill:"currentColor",d:"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"})],-1)])],2)]),e.createElementVNode("div",{class:"l-rich-text__toolbar-group",style:{"margin-left":"auto"}},[e.createElementVNode("button",{type:"button",class:"l-rich-text__tool",title:"撤销",onClick:z},[...l[11]||(l[11]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"18",height:"18"},[e.createElementVNode("path",{fill:"currentColor",d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"})],-1)])]),e.createElementVNode("button",{type:"button",class:"l-rich-text__tool",title:"重做",onClick:H},[...l[12]||(l[12]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"18",height:"18"},[e.createElementVNode("path",{fill:"currentColor",d:"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"})],-1)])])])])):e.createCommentVNode("",!0),e.createElementVNode("div",q,[e.createVNode(e.unref(h.EditorContent),{editor:e.unref(o),class:"l-rich-text__content"},null,8,["editor"]),e.unref(o)&&e.unref(o).isEmpty&&!e.unref(a)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"l-rich-text__placeholder",onClick:l[3]||(l[3]=v=>e.unref(o).commands.focus())},e.toDisplayString(i.placeholder),1)):e.createCommentVNode("",!0)])],6)}}}),m=k.withInstall(T);exports.LRichText=m;exports.default=m;
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
import '../style/rich-text.css';
|
|
2
|
+
import { w as M } from "../chunks/install-DJNxamQ0.mjs";
|
|
3
|
+
import { defineComponent as A, watch as p, onBeforeUnmount as E, openBlock as m, createElementBlock as b, normalizeStyle as S, normalizeClass as s, unref as i, createElementVNode as e, createCommentVNode as x, createVNode as T, toDisplayString as $ } from "vue";
|
|
4
|
+
import { useEditor as q, EditorContent as F } from "@tiptap/vue-3";
|
|
5
|
+
import N from "@tiptap/starter-kit";
|
|
6
|
+
import { u as R } from "../chunks/use-form-item-CqDbWCiU.mjs";
|
|
7
|
+
const U = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "l-rich-text__toolbar",
|
|
10
|
+
role: "toolbar",
|
|
11
|
+
"aria-label": "富文本工具栏"
|
|
12
|
+
}, D = { class: "l-rich-text__toolbar-group" }, I = { class: "l-rich-text__toolbar-group" }, O = { class: "l-rich-text__toolbar-group" }, K = { class: "l-rich-text__toolbar-group" }, P = { class: "l-rich-text__editor-container" }, j = {
|
|
13
|
+
name: "LRichText"
|
|
14
|
+
}, G = /* @__PURE__ */ A({
|
|
15
|
+
...j,
|
|
16
|
+
props: {
|
|
17
|
+
modelValue: { default: "" },
|
|
18
|
+
placeholder: { default: "开始输入内容..." },
|
|
19
|
+
disabled: { type: Boolean },
|
|
20
|
+
readonly: { type: Boolean },
|
|
21
|
+
size: {},
|
|
22
|
+
minHeight: { default: "200px" },
|
|
23
|
+
maxHeight: {}
|
|
24
|
+
},
|
|
25
|
+
emits: ["update:modelValue", "change", "blur", "focus"],
|
|
26
|
+
setup(n, { emit: f }) {
|
|
27
|
+
const h = n, u = f, { formItem: r, disabled: v, readonly: a, inputId: H } = R(h), l = q({
|
|
28
|
+
content: h.modelValue,
|
|
29
|
+
extensions: [
|
|
30
|
+
N.configure({
|
|
31
|
+
heading: {
|
|
32
|
+
levels: [1, 2, 3]
|
|
33
|
+
}
|
|
34
|
+
})
|
|
35
|
+
],
|
|
36
|
+
editable: !v.value && !a.value,
|
|
37
|
+
editorProps: {
|
|
38
|
+
attributes: {
|
|
39
|
+
id: H.value || ""
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
onUpdate: ({ editor: t }) => {
|
|
43
|
+
const o = t.getHTML(), c = o === "<p></p>" ? "" : o;
|
|
44
|
+
u("update:modelValue", c), u("change", c), r == null || r.validate("change").catch(() => {
|
|
45
|
+
});
|
|
46
|
+
},
|
|
47
|
+
onBlur: ({ event: t }) => {
|
|
48
|
+
u("blur", t), r == null || r.validate("blur").catch(() => {
|
|
49
|
+
});
|
|
50
|
+
},
|
|
51
|
+
onFocus: ({ event: t }) => {
|
|
52
|
+
u("focus", t);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
p(() => h.modelValue, (t) => {
|
|
56
|
+
l.value && t !== l.value.getHTML() && l.value.commands.setContent(t || "", { emitUpdate: !1 });
|
|
57
|
+
}), p([v, a], ([t, o]) => {
|
|
58
|
+
var c;
|
|
59
|
+
(c = l.value) == null || c.setEditable(!t && !o);
|
|
60
|
+
}), E(() => {
|
|
61
|
+
var t;
|
|
62
|
+
(t = l.value) == null || t.destroy();
|
|
63
|
+
});
|
|
64
|
+
const C = () => {
|
|
65
|
+
var t;
|
|
66
|
+
return (t = l.value) == null ? void 0 : t.chain().focus().toggleBold().run();
|
|
67
|
+
}, y = () => {
|
|
68
|
+
var t;
|
|
69
|
+
return (t = l.value) == null ? void 0 : t.chain().focus().toggleItalic().run();
|
|
70
|
+
}, z = () => {
|
|
71
|
+
var t;
|
|
72
|
+
return (t = l.value) == null ? void 0 : t.chain().focus().toggleStrike().run();
|
|
73
|
+
}, d = (t) => {
|
|
74
|
+
var o;
|
|
75
|
+
return (o = l.value) == null ? void 0 : o.chain().focus().toggleHeading({ level: t }).run();
|
|
76
|
+
}, k = () => {
|
|
77
|
+
var t;
|
|
78
|
+
return (t = l.value) == null ? void 0 : t.chain().focus().toggleBulletList().run();
|
|
79
|
+
}, B = () => {
|
|
80
|
+
var t;
|
|
81
|
+
return (t = l.value) == null ? void 0 : t.chain().focus().toggleOrderedList().run();
|
|
82
|
+
}, _ = () => {
|
|
83
|
+
var t;
|
|
84
|
+
return (t = l.value) == null ? void 0 : t.chain().focus().toggleCodeBlock().run();
|
|
85
|
+
}, w = () => {
|
|
86
|
+
var t;
|
|
87
|
+
return (t = l.value) == null ? void 0 : t.chain().focus().toggleBlockquote().run();
|
|
88
|
+
}, L = () => {
|
|
89
|
+
var t;
|
|
90
|
+
return (t = l.value) == null ? void 0 : t.chain().focus().undo().run();
|
|
91
|
+
}, V = () => {
|
|
92
|
+
var t;
|
|
93
|
+
return (t = l.value) == null ? void 0 : t.chain().focus().redo().run();
|
|
94
|
+
};
|
|
95
|
+
return (t, o) => {
|
|
96
|
+
var c;
|
|
97
|
+
return m(), b("div", {
|
|
98
|
+
class: s(["l-rich-text", {
|
|
99
|
+
"is-disabled": i(v),
|
|
100
|
+
"is-readonly": i(a),
|
|
101
|
+
"is-focused": (c = i(l)) == null ? void 0 : c.isFocused
|
|
102
|
+
}]),
|
|
103
|
+
style: S({
|
|
104
|
+
"--l-rt-min-height": typeof n.minHeight == "number" ? n.minHeight + "px" : n.minHeight,
|
|
105
|
+
"--l-rt-max-height": typeof n.maxHeight == "number" ? n.maxHeight + "px" : n.maxHeight
|
|
106
|
+
})
|
|
107
|
+
}, [
|
|
108
|
+
i(l) && !i(a) ? (m(), b("div", U, [
|
|
109
|
+
e("div", D, [
|
|
110
|
+
e("button", {
|
|
111
|
+
type: "button",
|
|
112
|
+
class: s(["l-rich-text__tool", { "is-active": i(l).isActive("bold") }]),
|
|
113
|
+
title: "加粗",
|
|
114
|
+
onClick: C
|
|
115
|
+
}, [...o[4] || (o[4] = [
|
|
116
|
+
e("svg", {
|
|
117
|
+
viewBox: "0 0 24 24",
|
|
118
|
+
width: "18",
|
|
119
|
+
height: "18"
|
|
120
|
+
}, [
|
|
121
|
+
e("path", {
|
|
122
|
+
fill: "currentColor",
|
|
123
|
+
d: "M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3v-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5z"
|
|
124
|
+
})
|
|
125
|
+
], -1)
|
|
126
|
+
])], 2),
|
|
127
|
+
e("button", {
|
|
128
|
+
type: "button",
|
|
129
|
+
class: s(["l-rich-text__tool", { "is-active": i(l).isActive("italic") }]),
|
|
130
|
+
title: "斜体",
|
|
131
|
+
onClick: y
|
|
132
|
+
}, [...o[5] || (o[5] = [
|
|
133
|
+
e("svg", {
|
|
134
|
+
viewBox: "0 0 24 24",
|
|
135
|
+
width: "18",
|
|
136
|
+
height: "18"
|
|
137
|
+
}, [
|
|
138
|
+
e("path", {
|
|
139
|
+
fill: "currentColor",
|
|
140
|
+
d: "M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"
|
|
141
|
+
})
|
|
142
|
+
], -1)
|
|
143
|
+
])], 2),
|
|
144
|
+
e("button", {
|
|
145
|
+
type: "button",
|
|
146
|
+
class: s(["l-rich-text__tool", { "is-active": i(l).isActive("strike") }]),
|
|
147
|
+
title: "删除线",
|
|
148
|
+
onClick: z
|
|
149
|
+
}, [...o[6] || (o[6] = [
|
|
150
|
+
e("svg", {
|
|
151
|
+
viewBox: "0 0 24 24",
|
|
152
|
+
width: "18",
|
|
153
|
+
height: "18"
|
|
154
|
+
}, [
|
|
155
|
+
e("path", {
|
|
156
|
+
fill: "currentColor",
|
|
157
|
+
d: "M10 19h4v-3h-4v3zM5 4v3h5v3h4V7h5V4H5zM3 14h18v-2H3v2z"
|
|
158
|
+
})
|
|
159
|
+
], -1)
|
|
160
|
+
])], 2)
|
|
161
|
+
]),
|
|
162
|
+
e("div", I, [
|
|
163
|
+
e("button", {
|
|
164
|
+
type: "button",
|
|
165
|
+
class: s(["l-rich-text__tool", { "is-active": i(l).isActive("heading", { level: 1 }) }]),
|
|
166
|
+
title: "一级标题",
|
|
167
|
+
onClick: o[0] || (o[0] = (g) => d(1))
|
|
168
|
+
}, "H1", 2),
|
|
169
|
+
e("button", {
|
|
170
|
+
type: "button",
|
|
171
|
+
class: s(["l-rich-text__tool", { "is-active": i(l).isActive("heading", { level: 2 }) }]),
|
|
172
|
+
title: "二级标题",
|
|
173
|
+
onClick: o[1] || (o[1] = (g) => d(2))
|
|
174
|
+
}, "H2", 2),
|
|
175
|
+
e("button", {
|
|
176
|
+
type: "button",
|
|
177
|
+
class: s(["l-rich-text__tool", { "is-active": i(l).isActive("heading", { level: 3 }) }]),
|
|
178
|
+
title: "三级标题",
|
|
179
|
+
onClick: o[2] || (o[2] = (g) => d(3))
|
|
180
|
+
}, "H3", 2)
|
|
181
|
+
]),
|
|
182
|
+
e("div", O, [
|
|
183
|
+
e("button", {
|
|
184
|
+
type: "button",
|
|
185
|
+
class: s(["l-rich-text__tool", { "is-active": i(l).isActive("bulletList") }]),
|
|
186
|
+
title: "无序列表",
|
|
187
|
+
onClick: k
|
|
188
|
+
}, [...o[7] || (o[7] = [
|
|
189
|
+
e("svg", {
|
|
190
|
+
viewBox: "0 0 24 24",
|
|
191
|
+
width: "18",
|
|
192
|
+
height: "18"
|
|
193
|
+
}, [
|
|
194
|
+
e("path", {
|
|
195
|
+
fill: "currentColor",
|
|
196
|
+
d: "M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z"
|
|
197
|
+
})
|
|
198
|
+
], -1)
|
|
199
|
+
])], 2),
|
|
200
|
+
e("button", {
|
|
201
|
+
type: "button",
|
|
202
|
+
class: s(["l-rich-text__tool", { "is-active": i(l).isActive("orderedList") }]),
|
|
203
|
+
title: "有序列表",
|
|
204
|
+
onClick: B
|
|
205
|
+
}, [...o[8] || (o[8] = [
|
|
206
|
+
e("svg", {
|
|
207
|
+
viewBox: "0 0 24 24",
|
|
208
|
+
width: "18",
|
|
209
|
+
height: "18"
|
|
210
|
+
}, [
|
|
211
|
+
e("path", {
|
|
212
|
+
fill: "currentColor",
|
|
213
|
+
d: "M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z"
|
|
214
|
+
})
|
|
215
|
+
], -1)
|
|
216
|
+
])], 2)
|
|
217
|
+
]),
|
|
218
|
+
e("div", K, [
|
|
219
|
+
e("button", {
|
|
220
|
+
type: "button",
|
|
221
|
+
class: s(["l-rich-text__tool", { "is-active": i(l).isActive("blockquote") }]),
|
|
222
|
+
title: "引用",
|
|
223
|
+
onClick: w
|
|
224
|
+
}, [...o[9] || (o[9] = [
|
|
225
|
+
e("svg", {
|
|
226
|
+
viewBox: "0 0 24 24",
|
|
227
|
+
width: "18",
|
|
228
|
+
height: "18"
|
|
229
|
+
}, [
|
|
230
|
+
e("path", {
|
|
231
|
+
fill: "currentColor",
|
|
232
|
+
d: "M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z"
|
|
233
|
+
})
|
|
234
|
+
], -1)
|
|
235
|
+
])], 2),
|
|
236
|
+
e("button", {
|
|
237
|
+
type: "button",
|
|
238
|
+
class: s(["l-rich-text__tool", { "is-active": i(l).isActive("codeBlock") }]),
|
|
239
|
+
title: "代码块",
|
|
240
|
+
onClick: _
|
|
241
|
+
}, [...o[10] || (o[10] = [
|
|
242
|
+
e("svg", {
|
|
243
|
+
viewBox: "0 0 24 24",
|
|
244
|
+
width: "18",
|
|
245
|
+
height: "18"
|
|
246
|
+
}, [
|
|
247
|
+
e("path", {
|
|
248
|
+
fill: "currentColor",
|
|
249
|
+
d: "M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"
|
|
250
|
+
})
|
|
251
|
+
], -1)
|
|
252
|
+
])], 2)
|
|
253
|
+
]),
|
|
254
|
+
e("div", {
|
|
255
|
+
class: "l-rich-text__toolbar-group",
|
|
256
|
+
style: { "margin-left": "auto" }
|
|
257
|
+
}, [
|
|
258
|
+
e("button", {
|
|
259
|
+
type: "button",
|
|
260
|
+
class: "l-rich-text__tool",
|
|
261
|
+
title: "撤销",
|
|
262
|
+
onClick: L
|
|
263
|
+
}, [...o[11] || (o[11] = [
|
|
264
|
+
e("svg", {
|
|
265
|
+
viewBox: "0 0 24 24",
|
|
266
|
+
width: "18",
|
|
267
|
+
height: "18"
|
|
268
|
+
}, [
|
|
269
|
+
e("path", {
|
|
270
|
+
fill: "currentColor",
|
|
271
|
+
d: "M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"
|
|
272
|
+
})
|
|
273
|
+
], -1)
|
|
274
|
+
])]),
|
|
275
|
+
e("button", {
|
|
276
|
+
type: "button",
|
|
277
|
+
class: "l-rich-text__tool",
|
|
278
|
+
title: "重做",
|
|
279
|
+
onClick: V
|
|
280
|
+
}, [...o[12] || (o[12] = [
|
|
281
|
+
e("svg", {
|
|
282
|
+
viewBox: "0 0 24 24",
|
|
283
|
+
width: "18",
|
|
284
|
+
height: "18"
|
|
285
|
+
}, [
|
|
286
|
+
e("path", {
|
|
287
|
+
fill: "currentColor",
|
|
288
|
+
d: "M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"
|
|
289
|
+
})
|
|
290
|
+
], -1)
|
|
291
|
+
])])
|
|
292
|
+
])
|
|
293
|
+
])) : x("", !0),
|
|
294
|
+
e("div", P, [
|
|
295
|
+
T(i(F), {
|
|
296
|
+
editor: i(l),
|
|
297
|
+
class: "l-rich-text__content"
|
|
298
|
+
}, null, 8, ["editor"]),
|
|
299
|
+
i(l) && i(l).isEmpty && !i(a) ? (m(), b("div", {
|
|
300
|
+
key: 0,
|
|
301
|
+
class: "l-rich-text__placeholder",
|
|
302
|
+
onClick: o[3] || (o[3] = (g) => i(l).commands.focus())
|
|
303
|
+
}, $(n.placeholder), 1)) : x("", !0)
|
|
304
|
+
])
|
|
305
|
+
], 6);
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
}), Z = M(G);
|
|
309
|
+
export {
|
|
310
|
+
Z as LRichText,
|
|
311
|
+
Z as default
|
|
312
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ScrollbarProps } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {
|
|
8
|
+
wrapRef: HTMLDivElement;
|
|
9
|
+
};
|
|
10
|
+
rootEl: HTMLDivElement;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<ScrollbarProps, {
|
|
14
|
+
wrapRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
15
|
+
scrollTo: (options: ScrollToOptions) => void;
|
|
16
|
+
setScrollTop: (value: number) => void;
|
|
17
|
+
setScrollLeft: (value: number) => void;
|
|
18
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
19
|
+
scroll: (event: Event) => any;
|
|
20
|
+
"update:scrollTop": (value: number) => any;
|
|
21
|
+
"update:scrollLeft": (value: number) => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<ScrollbarProps> & Readonly<{
|
|
23
|
+
onScroll?: ((event: Event) => any) | undefined;
|
|
24
|
+
"onUpdate:scrollTop"?: ((value: number) => any) | undefined;
|
|
25
|
+
"onUpdate:scrollLeft"?: ((value: number) => any) | undefined;
|
|
26
|
+
}>, {
|
|
27
|
+
direction: import('./types').ScrollbarDirection;
|
|
28
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
29
|
+
wrapRef: HTMLDivElement;
|
|
30
|
+
}, HTMLDivElement>;
|
|
31
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
32
|
+
export default _default;
|
|
33
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require('../style/Scrollbar.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../chunks/Scrollbar.vue_vue_type_script_setup_true_lang-CtBz7Ha9.js"),e=r._sfc_main;e.install=l=>{l.component("LScrollbar",e)};exports.LScrollbar=e;exports.default=e;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type ScrollbarDirection = 'vertical' | 'horizontal' | 'both';
|
|
2
|
+
export interface ScrollbarProps {
|
|
3
|
+
direction?: ScrollbarDirection;
|
|
4
|
+
scrollTop?: number;
|
|
5
|
+
scrollLeft?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface ScrollbarEmits {
|
|
8
|
+
(e: 'scroll', event: Event): void;
|
|
9
|
+
(e: 'update:scrollTop', value: number): void;
|
|
10
|
+
(e: 'update:scrollLeft', value: number): void;
|
|
11
|
+
}
|
|
12
|
+
export interface ScrollbarExposed {
|
|
13
|
+
wrapRef: HTMLElement | null;
|
|
14
|
+
scrollTo(options: ScrollToOptions): void;
|
|
15
|
+
setScrollTop(value: number): void;
|
|
16
|
+
setScrollLeft(value: number): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: HTMLDivElement;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
11
|
+
readonly value: {
|
|
12
|
+
readonly type: import('vue').PropType<any>;
|
|
13
|
+
readonly required: true;
|
|
14
|
+
};
|
|
15
|
+
readonly label: {
|
|
16
|
+
readonly type: StringConstructor;
|
|
17
|
+
readonly required: true;
|
|
18
|
+
};
|
|
19
|
+
readonly disabled: {
|
|
20
|
+
readonly type: BooleanConstructor;
|
|
21
|
+
readonly default: false;
|
|
22
|
+
};
|
|
23
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
24
|
+
readonly value: {
|
|
25
|
+
readonly type: import('vue').PropType<any>;
|
|
26
|
+
readonly required: true;
|
|
27
|
+
};
|
|
28
|
+
readonly label: {
|
|
29
|
+
readonly type: StringConstructor;
|
|
30
|
+
readonly required: true;
|
|
31
|
+
};
|
|
32
|
+
readonly disabled: {
|
|
33
|
+
readonly type: BooleanConstructor;
|
|
34
|
+
readonly default: false;
|
|
35
|
+
};
|
|
36
|
+
}>> & Readonly<{}>, {
|
|
37
|
+
readonly disabled: boolean;
|
|
38
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
39
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
40
|
+
export default _default;
|
|
41
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {
|
|
7
|
+
selectRef: HTMLDivElement;
|
|
8
|
+
popperRef: HTMLDivElement;
|
|
9
|
+
};
|
|
10
|
+
rootEl: HTMLDivElement;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
14
|
+
readonly modelValue: {
|
|
15
|
+
readonly type: import('vue').PropType<any | any[]>;
|
|
16
|
+
readonly default: null;
|
|
17
|
+
};
|
|
18
|
+
readonly multiple: {
|
|
19
|
+
readonly type: BooleanConstructor;
|
|
20
|
+
readonly default: false;
|
|
21
|
+
};
|
|
22
|
+
readonly disabled: {
|
|
23
|
+
readonly type: BooleanConstructor;
|
|
24
|
+
readonly default: false;
|
|
25
|
+
};
|
|
26
|
+
readonly clearable: {
|
|
27
|
+
readonly type: BooleanConstructor;
|
|
28
|
+
readonly default: false;
|
|
29
|
+
};
|
|
30
|
+
readonly filterable: {
|
|
31
|
+
readonly type: BooleanConstructor;
|
|
32
|
+
readonly default: false;
|
|
33
|
+
};
|
|
34
|
+
readonly placeholder: {
|
|
35
|
+
readonly type: StringConstructor;
|
|
36
|
+
readonly default: "请选择";
|
|
37
|
+
};
|
|
38
|
+
readonly size: {
|
|
39
|
+
readonly type: import('vue').PropType<"sm" | "md" | "lg">;
|
|
40
|
+
};
|
|
41
|
+
readonly noDataText: {
|
|
42
|
+
readonly type: StringConstructor;
|
|
43
|
+
readonly default: "无数据";
|
|
44
|
+
};
|
|
45
|
+
readonly loading: {
|
|
46
|
+
readonly type: BooleanConstructor;
|
|
47
|
+
readonly default: false;
|
|
48
|
+
};
|
|
49
|
+
readonly remote: {
|
|
50
|
+
readonly type: BooleanConstructor;
|
|
51
|
+
readonly default: false;
|
|
52
|
+
};
|
|
53
|
+
readonly loadingText: {
|
|
54
|
+
readonly type: StringConstructor;
|
|
55
|
+
readonly default: "加载中...";
|
|
56
|
+
};
|
|
57
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
58
|
+
change: (_val: any) => void;
|
|
59
|
+
search: (_query: string) => void;
|
|
60
|
+
clear: () => void;
|
|
61
|
+
"update:modelValue": (_val: any) => void;
|
|
62
|
+
"visible-change": (_visible: boolean) => void;
|
|
63
|
+
"remove-tag": (_val: any) => void;
|
|
64
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
65
|
+
readonly modelValue: {
|
|
66
|
+
readonly type: import('vue').PropType<any | any[]>;
|
|
67
|
+
readonly default: null;
|
|
68
|
+
};
|
|
69
|
+
readonly multiple: {
|
|
70
|
+
readonly type: BooleanConstructor;
|
|
71
|
+
readonly default: false;
|
|
72
|
+
};
|
|
73
|
+
readonly disabled: {
|
|
74
|
+
readonly type: BooleanConstructor;
|
|
75
|
+
readonly default: false;
|
|
76
|
+
};
|
|
77
|
+
readonly clearable: {
|
|
78
|
+
readonly type: BooleanConstructor;
|
|
79
|
+
readonly default: false;
|
|
80
|
+
};
|
|
81
|
+
readonly filterable: {
|
|
82
|
+
readonly type: BooleanConstructor;
|
|
83
|
+
readonly default: false;
|
|
84
|
+
};
|
|
85
|
+
readonly placeholder: {
|
|
86
|
+
readonly type: StringConstructor;
|
|
87
|
+
readonly default: "请选择";
|
|
88
|
+
};
|
|
89
|
+
readonly size: {
|
|
90
|
+
readonly type: import('vue').PropType<"sm" | "md" | "lg">;
|
|
91
|
+
};
|
|
92
|
+
readonly noDataText: {
|
|
93
|
+
readonly type: StringConstructor;
|
|
94
|
+
readonly default: "无数据";
|
|
95
|
+
};
|
|
96
|
+
readonly loading: {
|
|
97
|
+
readonly type: BooleanConstructor;
|
|
98
|
+
readonly default: false;
|
|
99
|
+
};
|
|
100
|
+
readonly remote: {
|
|
101
|
+
readonly type: BooleanConstructor;
|
|
102
|
+
readonly default: false;
|
|
103
|
+
};
|
|
104
|
+
readonly loadingText: {
|
|
105
|
+
readonly type: StringConstructor;
|
|
106
|
+
readonly default: "加载中...";
|
|
107
|
+
};
|
|
108
|
+
}>> & Readonly<{
|
|
109
|
+
onChange?: ((_val: any) => any) | undefined;
|
|
110
|
+
onSearch?: ((_query: string) => any) | undefined;
|
|
111
|
+
onClear?: (() => any) | undefined;
|
|
112
|
+
"onUpdate:modelValue"?: ((_val: any) => any) | undefined;
|
|
113
|
+
"onVisible-change"?: ((_visible: boolean) => any) | undefined;
|
|
114
|
+
"onRemove-tag"?: ((_val: any) => any) | undefined;
|
|
115
|
+
}>, {
|
|
116
|
+
readonly loading: boolean;
|
|
117
|
+
readonly disabled: boolean;
|
|
118
|
+
readonly multiple: boolean;
|
|
119
|
+
readonly modelValue: any;
|
|
120
|
+
readonly placeholder: string;
|
|
121
|
+
readonly clearable: boolean;
|
|
122
|
+
readonly filterable: boolean;
|
|
123
|
+
readonly noDataText: string;
|
|
124
|
+
readonly remote: boolean;
|
|
125
|
+
readonly loadingText: string;
|
|
126
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
127
|
+
selectRef: HTMLDivElement;
|
|
128
|
+
popperRef: HTMLDivElement;
|
|
129
|
+
}, HTMLDivElement>;
|
|
130
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
131
|
+
export default _default;
|
|
132
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
133
|
+
new (): {
|
|
134
|
+
$slots: S;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
import { default as LSelect } from './Select.vue';
|
|
3
|
+
import { default as LOption } from './Option.vue';
|
|
4
|
+
export { LSelect, LOption };
|
|
5
|
+
declare const _default: {
|
|
6
|
+
install(app: App): void;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
export * from './types';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
require('../style/select.css');
|
|
2
|
+
require('../style/Icon.css');
|
|
3
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../chunks/manager-C0AUxQ1I.js");const x=require("../chunks/index-DWAWrVaT.js"),ve=require("../chunks/z-index-CNZLw1v7.js"),fe=require("../chunks/controller-D1BTHmfO.js"),pe=require("../chunks/auto-update-6n8Xn1EH.js"),Z=require("../chunks/use-signals-Bz1smiXh.js"),me=require("../config-provider/index.js"),be=require("../chunks/use-form-item-CloIcyon.js"),ge=require("../chunks/use-id-BycaM3-h.js"),he=require("../icon/index.js");function ye(a={}){const o=a.multiple??!1,s=()=>typeof a.value=="function"?a.value():a.value??(o?[]:null),f=x.signal(!1),k=x.signal(""),v=x.signal(-1),w=()=>typeof a.disabled=="function"?a.disabled():a.disabled??!1,i=x.signal(s()),m=x.signal(w()),_=(l,c)=>Array.isArray(l)&&Array.isArray(c)?l.length===c.length&&l.every((r,y)=>Object.is(r,c[y])):Object.is(l,c);typeof a.value=="function"&&x.effect(()=>{const l=s(),c=x.untracked(()=>i.value);_(l,c)||(i.value=l)}),typeof a.disabled=="function"&&x.effect(()=>{m.value=w()});const h=()=>{m.value||(f.value=!f.value,f.value&&(k.value="",v.value=-1))},V=()=>{m.value||(f.value=!0,v.value=-1)},L=()=>{f.value=!1,v.value=-1},I=l=>{var c,r,y,C,O,T;if(!m.value)if(o){const E=Array.isArray(i.value)?i.value:[];if(E.includes(l)){const b=E.filter(g=>g!==l);i.value=b,(y=a.onInput)==null||y.call(a,b),(C=a.onChange)==null||C.call(a,b)}else{const b=[...E,l];i.value=b,(c=a.onInput)==null||c.call(a,b),(r=a.onChange)==null||r.call(a,b)}}else i.value=l,(O=a.onInput)==null||O.call(a,l),(T=a.onChange)==null||T.call(a,l),L()},B=()=>{var c,r,y;if(m.value)return;const l=o?[]:null;i.value=l,(c=a.onInput)==null||c.call(a,l),(r=a.onChange)==null||r.call(a,l),(y=a.onClear)==null||y.call(a)},u=(l,c,r,y)=>{if(l<=0)return-1;for(let C=0;C<l;C+=1){const O=(c+C*r+l)%l;if(!y||y(O))return O}return-1};return{state:{get value(){return i.value},set value(l){i.value=l},get isOpen(){return f.value},set isOpen(l){f.value=l},get filterText(){return k.value},set filterText(l){k.value=l},get focusedIndex(){return v.value},set focusedIndex(l){v.value=l},get disabled(){return m.value},set disabled(l){m.value=l},get multiple(){return o}},actions:{toggle:h,open:V,close:L,select:I,clear:B,focusFirst:(l,c)=>{v.value=u(l,0,1,c)},focusLast:(l,c)=>{v.value=u(l,l-1,-1,c)},focusNext:(l,c)=>{const r=v.value>=0?v.value+1:0;v.value=u(l,r,1,c)},focusPrevious:(l,c)=>{const r=v.value>=0?v.value-1:l-1;v.value=u(l,r,-1,c)},setFocusedIndex:l=>{v.value=l},setFilterText:l=>{k.value=l}}}}const W={modelValue:{type:[String,Number,Array],default:null},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},placeholder:{type:String,default:"请选择"},size:{type:String},noDataText:{type:String,default:"无数据"},loading:{type:Boolean,default:!1},remote:{type:Boolean,default:!1},loadingText:{type:String,default:"加载中..."}},G={"update:modelValue":a=>!0,change:a=>!0,clear:()=>!0,"visible-change":a=>!0,"remove-tag":a=>!0,search:a=>!0},J={value:{type:[String,Number,Object],required:!0},label:{type:String,required:!0},disabled:{type:Boolean,default:!1}},P=Symbol("SelectKey"),ke=["id","disabled"],we=["aria-expanded","aria-activedescendant","aria-disabled"],Ve={key:0,class:"l-select__tags"},_e=["onClick"],Ce=["disabled","aria-activedescendant","placeholder"],Ee=["disabled","aria-activedescendant","placeholder"],xe={key:1,class:"l-select__value"},Be={key:2,class:"l-select__placeholder"},Se={class:"l-select__suffix"},Oe={key:0,class:"l-select__loading",viewBox:"0 0 1024 1024",width:"14",height:"14"},Ne=["data-theme"],Ie=["aria-multiselectable"],ze={key:1,class:"l-select__loading-dropdown"},Te={key:2,class:"l-select__empty"},Q=e.defineComponent({name:"Select",__name:"Select",props:W,emits:G,setup(a,{emit:o}){const s=a,f=o,{teleportedCssVars:k,teleportedTheme:v}=me.useTeleportedConfig(),{formItem:w,size:i,disabled:m,inputId:_}=be.useFormItem(s),h=e.ref(null),V=e.ref(null),L=ge.useId("select"),I=(_==null?void 0:_.value)||L,B=`${I}-listbox`,u=ye({value:s.modelValue,multiple:s.multiple,disabled:m.value,onInput:t=>{f("update:modelValue",t)},onChange:t=>{f("change",t),w==null||w.validate("change").catch(()=>{})},onClear:()=>{f("clear")}}),z=fe.createFloatingController({placement:"bottom-start",offset:4,flip:!0,shift:!0}),{value:p,isOpen:F,disabled:S,filterText:l,focusedIndex:c}=Z.useController(u,{value:()=>s.modelValue,disabled:()=>m.value}),{isOpen:r,x:y,y:C}=Z.useController(z),{nextZIndex:O}=ve.useZIndex(),T=e.ref(2e3);e.watch(F,t=>{t?z.actions.open():(z.actions.close(),l.value="")}),e.watch(l,t=>{f("search",t)});const E=()=>{h.value&&V.value&&z.actions.updatePosition(h.value,V.value)};let b=null;e.watch(r,t=>{t?(T.value=O(),e.nextTick(()=>{h.value&&V.value&&(b=pe.autoUpdate(h.value,V.value,E))}),s.filterable&&e.nextTick(()=>{var d;const n=(d=h.value)==null?void 0:d.querySelector(".l-select__input");n==null||n.focus()})):(b==null||b(),b=null,w==null||w.validate("blur").catch(()=>{})),f("visible-change",t)}),e.watch(p,async()=>{r.value&&(await e.nextTick(),E())},{deep:!0});const g=e.reactive(new Map);let Y=0;const ee=t=>{const n=g.get(t.value);g.set(t.value,{label:t.label,disabled:t.disabled,visible:t.visible,order:(n==null?void 0:n.order)??Y++})},te=t=>{g.delete(t)},le=(t,n)=>{const d=g.get(t);d&&g.set(t,{...d,visible:n})},ae=(t,n)=>{const d=g.get(t);d&&g.set(t,{...d,disabled:n})},ne=e.computed(()=>{if(g.size===0)return!1;for(const t of g.values())if(t.visible)return!0;return!1}),se=e.computed(()=>!s.loading&&!ne.value),N=e.computed(()=>Array.from(g.entries()).map(([t,n])=>({value:t,...n})).filter(t=>t.visible).sort((t,n)=>t.order-n.order)),D=t=>{const n=N.value[t];return!!n&&!n.disabled},K=t=>`${I}-option-${String(t)}`,$=e.computed(()=>N.value[c.value]),M=e.computed(()=>$.value?K($.value.value):void 0);e.provide(P,{props:s,value:p,select:t=>{u.actions.select(t)},hoveredValue:null,filterText:l,focusedIndex:c,activeOptionId:M,listboxId:B,getOptionId:K,registerOption:ee,unregisterOption:te,updateOptionVisibility:le,updateOptionDisabled:ae});const R=t=>{h.value&&!h.value.contains(t.target)&&V.value&&!V.value.contains(t.target)&&u.actions.close()};e.onMounted(()=>{document.addEventListener("click",R),window.addEventListener("resize",E)}),e.onUnmounted(()=>{document.removeEventListener("click",R),window.removeEventListener("resize",E)});const U=t=>{const n=g.get(t);return n?n.label:t},j=e.computed(()=>s.multiple?"":U(p.value)??""),re=e.computed(()=>({top:`${C.value}px`,left:`${y.value}px`,width:h.value?`${h.value.offsetWidth}px`:"auto",zIndex:T.value,...k.value})),oe=e.computed(()=>["l-select",`l-select--${i.value}`,{"is-open":r.value,"is-focused":r.value,"is-disabled":S.value,"l-select--multiple":s.multiple,"l-select--filterable":s.filterable}]),ie=()=>{r.value||u.actions.open()},q=()=>{u.actions.focusFirst(N.value.length,D)},H=()=>{u.actions.focusLast(N.value.length,D)},ce=()=>{u.actions.focusNext(N.value.length,D)},ue=()=>{u.actions.focusPrevious(N.value.length,D)},de=()=>{const t=$.value;!t||t.disabled||u.actions.select(t.value)},A=t=>{if(!S.value)switch(t.key){case"ArrowDown":t.preventDefault(),r.value?ce():(u.actions.open(),e.nextTick(q));break;case"ArrowUp":t.preventDefault(),r.value?ue():(u.actions.open(),e.nextTick(H));break;case"Enter":case" ":t.preventDefault(),r.value?de():(u.actions.open(),e.nextTick(q));break;case"Home":if(!r.value)return;t.preventDefault(),q();break;case"End":if(!r.value)return;t.preventDefault(),H();break;case"Escape":if(!r.value)return;t.preventDefault(),u.actions.close();break}};return(t,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"selectRef",ref:h,class:e.normalizeClass(oe.value)},[e.createElementVNode("input",{id:e.unref(I),type:"text",style:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)","white-space":"nowrap",border:"0"},"aria-hidden":"true",tabindex:"-1",disabled:e.unref(S)},null,8,ke),e.createElementVNode("div",{class:"l-select__trigger",role:"combobox",tabindex:"0","aria-haspopup":"listbox","aria-expanded":e.unref(r)?"true":"false","aria-controls":B,"aria-activedescendant":M.value,"aria-disabled":e.unref(S)?"true":"false",onClick:ie,onKeydown:A},[t.multiple&&Array.isArray(e.unref(p))&&e.unref(p).length>0?(e.openBlock(),e.createElementBlock("div",Ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),d=>(e.openBlock(),e.createElementBlock("span",{key:d,class:"l-select-tag"},[e.createTextVNode(e.toDisplayString(U(d))+" ",1),e.createElementVNode("button",{type:"button",class:"l-select-tag__close","aria-label":"Remove selected option",onClick:e.withModifiers($e=>e.unref(u).actions.select(d),["stop"])},[...n[5]||(n[5]=[e.createElementVNode("svg",{viewBox:"0 0 1024 1024",width:"12",height:"12"},[e.createElementVNode("path",{fill:"currentColor",d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9c-4.4 5.2-.7 13.1 6.1 13.1h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"})],-1)])],8,_e)]))),128)),t.filterable?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,"onUpdate:modelValue":n[0]||(n[0]=d=>e.isRef(l)?l.value=d:null),type:"text",class:"l-select__input",disabled:e.unref(S),"aria-controls":B,"aria-activedescendant":M.value,placeholder:e.unref(p).length===0?t.placeholder:"",onInput:n[1]||(n[1]=d=>e.unref(u).actions.open()),onKeydown:e.withModifiers(A,["stop"])},null,40,Ce)),[[e.vModelText,e.unref(l)]]):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.filterable?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,"onUpdate:modelValue":n[2]||(n[2]=d=>e.isRef(l)?l.value=d:null),type:"text",class:"l-select__input",disabled:e.unref(S),"aria-controls":B,"aria-activedescendant":M.value,placeholder:e.unref(p)!==null&&e.unref(p)!==""&&!e.unref(r)?j.value:t.placeholder,onInput:n[3]||(n[3]=d=>e.unref(u).actions.open()),onKeydown:e.withModifiers(A,["stop"])},null,40,Ee)),[[e.vModelText,e.unref(l)]]):e.unref(p)!==null&&e.unref(p)!==""?(e.openBlock(),e.createElementBlock("div",xe,e.toDisplayString(j.value),1)):(e.openBlock(),e.createElementBlock("div",Be,e.toDisplayString(t.placeholder),1))],64)),e.createElementVNode("div",Se,[t.loading?(e.openBlock(),e.createElementBlock("svg",Oe,[...n[6]||(n[6]=[e.createElementVNode("path",{fill:"currentColor",d:"M512 64c-247.4 0-448 200.6-448 448S264.6 960 512 960s448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"},null,-1),e.createElementVNode("path",{fill:"currentColor",d:"M512 140c-11.3 0-20.7 9.4-20.7 20.7v103.5c0 11.3 9.4 20.7 20.7 20.7s20.7-9.4 20.7-20.7V160.7c0-11.3-9.4-20.7-20.7-20.7z"},null,-1)])])):t.clearable&&e.unref(p)!==null&&e.unref(p)!==""?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"l-select__clear","aria-label":"Clear selected option",onClick:n[4]||(n[4]=e.withModifiers((...d)=>e.unref(u).actions.clear&&e.unref(u).actions.clear(...d),["stop"]))},[...n[7]||(n[7]=[e.createElementVNode("svg",{viewBox:"0 0 1024 1024",width:"14",height:"14"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.5-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155.1-130.1-155.1a8.32 8.32 0 0 1-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 460.6l99.3-118.5 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 510.1l130.1 155.1c2.8 3.4 2.5 8.5-.9 11.3-1.4 1.2-3.3 1.9-5.3 1.9z"})],-1)])])):e.createCommentVNode("",!0),e.createVNode(e.unref(he.LIcon),{name:"lucide:chevron-down",class:e.normalizeClass(["l-select__caret",{"is-reverse":e.unref(r)}])},null,8,["class"])])],40,we),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"l-select-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"popperRef",ref:V,class:e.normalizeClass(["l-select__popper",`l-select--${e.unref(i)}`]),"data-theme":e.unref(v),style:e.normalizeStyle(re.value)},[e.createElementVNode("div",{id:B,class:"l-select__dropdown",role:"listbox","aria-multiselectable":t.multiple?"true":void 0},[t.loading?e.createCommentVNode("",!0):e.renderSlot(t.$slots,"default",{key:0}),t.loading?(e.openBlock(),e.createElementBlock("div",ze,[n[8]||(n[8]=e.createElementVNode("svg",{class:"l-select__loading-icon",viewBox:"0 0 1024 1024",width:"24",height:"24"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64c-247.4 0-448 200.6-448 448S264.6 960 512 960s448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",opacity:".2"}),e.createElementVNode("path",{fill:"currentColor",d:"M512 140c-11.3 0-20.7 9.4-20.7 20.7v103.5c0 11.3 9.4 20.7 20.7 20.7s20.7-9.4 20.7-20.7V160.7c0-11.3-9.4-20.7-20.7-20.7z"})],-1)),e.createElementVNode("span",null,e.toDisplayString(t.loadingText),1)])):se.value?(e.openBlock(),e.createElementBlock("div",Te,[n[9]||(n[9]=e.createElementVNode("svg",{class:"l-select__empty-icon",viewBox:"0 0 1024 1024",width:"40",height:"40"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 800c-194.4 0-352-157.6-352-352s157.6-352 352-352 352 157.6 352 352-157.6 352-352 352z"}),e.createElementVNode("path",{fill:"currentColor",d:"M512 312c-11.3 0-20.7 9.4-20.7 20.7v248.5c0 11.3 9.4 20.7 20.7 20.7s20.7-9.4 20.7-20.7V332.7c0-11.3-9.4-20.7-20.7-20.7zM512 650.3c-11.3 0-20.7 9.4-20.7 20.7s9.4 20.7 20.7 20.7 20.7-9.4 20.7-20.7-9.4-20.7-20.7-20.7z"})],-1)),e.createElementVNode("span",null,e.toDisplayString(t.noDataText),1)])):e.createCommentVNode("",!0)],8,Ie)],14,Ne),[[e.vShow,e.unref(r)]])]),_:3})]))],2))}}),Le=["id","aria-selected","aria-disabled"],De={key:0,class:"l-option__check"},X=e.defineComponent({name:"Option",__name:"Option",props:J,setup(a){const o=a,s=e.inject(P),f=e.computed(()=>{if(!s)return!1;const i=s.value.value;return Array.isArray(i)?i.includes(o.value):i===o.value}),k=e.computed(()=>!s||!s.props.filterable||s.props.remote||!s.filterText.value?!0:o.label.toLowerCase().includes(s.filterText.value.toLowerCase()));e.onMounted(()=>{s&&s.registerOption({value:o.value,label:o.label,disabled:o.disabled,visible:k.value})}),e.onUnmounted(()=>{s&&s.unregisterOption(o.value)}),e.watch(k,i=>{s&&s.updateOptionVisibility(o.value,i)}),e.watch(()=>o.disabled,i=>{s&&s.updateOptionDisabled(o.value,i)}),e.watch(()=>o.label,i=>{s&&s.registerOption({value:o.value,label:i,disabled:o.disabled,visible:k.value})});const v=()=>{o.disabled||!s||s.select(o.value)},w=e.computed(()=>["l-option",{"is-selected":f.value,"is-disabled":o.disabled,"is-hidden":!k.value,"is-focused":(s==null?void 0:s.activeOptionId.value)===(s==null?void 0:s.getOptionId(o.value))}]);return(i,m)=>{var _;return e.openBlock(),e.createElementBlock("div",{id:(_=e.unref(s))==null?void 0:_.getOptionId(o.value),class:e.normalizeClass(w.value),role:"option","aria-selected":f.value?"true":"false","aria-disabled":o.disabled?"true":"false",onClick:e.withModifiers(v,["stop"])},[e.renderSlot(i.$slots,"default",{},()=>[e.createElementVNode("span",null,e.toDisplayString(i.label),1)]),f.value?(e.openBlock(),e.createElementBlock("span",De,[...m[0]||(m[0]=[e.createElementVNode("svg",{viewBox:"0 0 1024 1024",width:"14",height:"14"},[e.createElementVNode("path",{fill:"currentColor",d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"})],-1)])])):e.createCommentVNode("",!0)],10,Le)}}}),Me={install(a){a.component("LSelect",Q),a.component("LOption",X)}};exports.LOption=X;exports.LSelect=Q;exports.SelectKey=P;exports.default=Me;exports.optionProps=J;exports.selectEmits=G;exports.selectProps=W;
|