@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,5 @@
|
|
|
1
|
+
require('../style/mentions.css');
|
|
2
|
+
require('../style/Input.css');
|
|
3
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const X=require("../chunks/install-gnn2dOg9.js"),e=require("vue");require("../chunks/manager-C0AUxQ1I.js");const C=require("../chunks/index-DWAWrVaT.js"),Y=require("../chunks/id-CfLxBW9l.js"),H=require("../chunks/use-signals-Bz1smiXh.js"),U=require("../config-provider/index.js"),G=require("../chunks/use-id-BycaM3-h.js"),J=require("../chunks/use-form-item-CloIcyon.js"),Q=require("../chunks/Input.vue_vue_type_script_setup_true_lang-8x2HE2Cj.js");function Z(s){const h=s.idPrefix??Y.useId("mentions"),f=Array.isArray(s.prefix)?s.prefix:[s.prefix??"@"],g=s.split??" ",c=C.signal(!1),y=C.signal([]),r=C.signal(-1),V=C.signal(!1),d=C.signal(null),b=(o,u)=>{var w;const i=o.substring(0,u);let a=null;for(const m of f){const v=i.lastIndexOf(m);if(v!==-1){const _=i[v-1];if(v===0||_===g||_===`
|
|
4
|
+
`){const z=i.substring(v+m.length);!z.includes(g)&&!z.includes(`
|
|
5
|
+
`)&&(!a||v>a.index)&&(a={prefix:m,index:v})}}}if(a){const m=i.substring(a.index+a.prefix.length);d.value={prefix:a.prefix,keyword:m,start:a.index,end:u},c.value=!0,r.value=-1,(w=s.onSearch)==null||w.call(s,a.prefix,m)}else d.value=null,c.value=!1},x=o=>{var u;d.value&&((u=s.onSelect)==null||u.call(s,o,d.value.prefix),c.value=!1,d.value=null)};return{state:{get isOpen(){return c.value},set isOpen(o){c.value=o},get suggestions(){return y.value},set suggestions(o){y.value=o},get activeIndex(){return r.value},set activeIndex(o){r.value=o},get loading(){return V.value},set loading(o){V.value=o},get context(){return d.value}},actions:{checkMention:b,select:x,navigate:o=>{if(!c.value||y.value.length===0)return;const u=y.value.length;if(r.value===-1){r.value=o==="down"?0:u-1;return}o==="down"?r.value=(r.value+1)%u:r.value=(r.value-1+u)%u},confirmSelection:()=>{r.value>=0&&r.value<y.value.length?x(y.value[r.value]):c.value=!1},close:()=>{c.value=!1,d.value=null}},getInputProps:()=>({role:"combobox","aria-autocomplete":"list","aria-expanded":c.value,"aria-controls":`${h}-listbox`,"aria-activedescendant":r.value>=0?`${h}-option-${r.value}`:void 0}),getListProps:()=>({id:`${h}-listbox`,role:"listbox"}),getItemProps:o=>({id:`${h}-option-${o}`,role:"option","aria-selected":r.value===o})}}const D={modelValue:{type:String,default:""},type:{type:String,default:"textarea"},prefix:{type:[String,Array],default:"@"},split:{type:String,default:" "},placeholder:String,disabled:Boolean,size:{type:String,default:"md"},fetchSuggestions:{type:Function,required:!0},valueKey:{type:String,default:"value"},rows:{type:[Number,String],default:3}},N={"update:modelValue":s=>!0,select:(s,h)=>!0,search:(s,h)=>!0,focus:s=>!0,blur:s=>!0},ee=["data-theme"],te={key:0,class:"l-mentions__loading"},ne=["onMousedown"],le=e.defineComponent({name:"LMentions",__name:"Mentions",props:D,emits:N,setup(s,{emit:h}){const f=s,g=h,{teleportedCssVars:c,teleportedTheme:y}=U.useTeleportedConfig(),{size:r,disabled:V,inputId:d}=J.useFormItem(),b=e.computed(()=>f.disabled||V.value),x=e.ref(null),P=e.ref({top:0,left:0}),o=G.useId("mentions"),u=(d==null?void 0:d.value)||o,i=Z({prefix:f.prefix,split:f.split,idPrefix:u,onSearch:(t,l)=>{g("search",t,l),T(t,l)},onSelect:(t,l)=>{R(t,l)}}),{isOpen:a,suggestions:w,activeIndex:m,loading:v,context:_}=H.useController(i),T=(t,l)=>{v.value=!0,f.fetchSuggestions(t,l,n=>{v.value=!1,w.value=n,n.length===0&&(a.value=!1)})},z=()=>{var B,$;const t=($=(B=x.value)==null?void 0:B.$el)==null?void 0:$.querySelector("input, textarea");if(!t)return{top:0,left:0};const l=t.selectionStart??0,n=document.createElement("div"),p=window.getComputedStyle(t);["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize"].forEach(L=>{n.style[L]=p[L]}),n.style.position="absolute",n.style.visibility="hidden",n.style.whiteSpace="pre-wrap",n.style.wordWrap="break-word",n.style.top="0",n.style.left="-9999px";const E=t.value.substring(0,l);n.textContent=E;const k=document.createElement("span");k.textContent=t.value.substring(l,l+1)||".",n.appendChild(k),document.body.appendChild(n);const{offsetTop:q,offsetLeft:M}=k,I=t.getBoundingClientRect();return document.body.removeChild(n),{top:I.top+q+window.scrollY-t.scrollTop,left:I.left+M+window.scrollX-t.scrollLeft}},F=()=>{P.value=z()},O=t=>{var n,p;if(b.value)return;g("update:modelValue",t);const l=(p=(n=x.value)==null?void 0:n.$el)==null?void 0:p.querySelector("input, textarea");if(l){const S=l.selectionStart||0;i.actions.checkMention(t,S),a.value&&e.nextTick(F)}},R=(t,l)=>{var M,I;if(!_.value)return;const n=(I=(M=x.value)==null?void 0:M.$el)==null?void 0:I.querySelector("input, textarea");if(!n)return;const p=typeof t=="string"?t:t[f.valueKey],S=f.modelValue,{start:E,end:k}=_.value,q=S.substring(0,E)+l+p+f.split+S.substring(k);g("update:modelValue",q),g("select",t,l),e.nextTick(()=>{const B=E+l.length+p.length+f.split.length;n.setSelectionRange(B,B),n.focus()})},W=t=>{if(a.value)switch(t.key){case"ArrowUp":t.preventDefault(),i.actions.navigate("up");break;case"ArrowDown":t.preventDefault(),i.actions.navigate("down");break;case"Enter":m.value!==-1?(t.preventDefault(),i.actions.confirmSelection()):a.value=!1;break;case"Escape":a.value=!1;break}},K=t=>{g("blur",t),setTimeout(()=>{a.value=!1},200)},j=e.computed(()=>({position:"fixed",top:`${P.value.top+20}px`,left:`${P.value.left}px`,zIndex:3e3,...c.value}));return(t,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["l-mentions",[`l-mentions--${t.size||e.unref(r)}`,{"is-disabled":b.value}]])},[e.createVNode(Q._sfc_main,e.mergeProps({ref_key:"inputRef",ref:x,id:e.unref(u),type:t.type,"model-value":t.modelValue,placeholder:t.placeholder},e.unref(i).getInputProps(),{disabled:b.value,size:t.size||e.unref(r),rows:t.rows,onInput:O,onKeydown:W,onFocus:l[0]||(l[0]=n=>g("focus",n)),onBlur:K}),null,16,["id","type","model-value","placeholder","disabled","size","rows"]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"l-fade"},{default:e.withCtx(()=>[e.unref(a)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"l-mentions__popper","data-theme":e.unref(y),style:e.normalizeStyle(j.value)},[e.createElementVNode("ul",e.mergeProps({class:"l-mentions__suggestions"},e.unref(i).getListProps()),[e.unref(v)?(e.openBlock(),e.createElementBlock("li",te,[...l[1]||(l[1]=[e.createElementVNode("svg",{class:"l-mentions__loading-icon",viewBox:"0 0 1024 1024",width:"16",height:"16"},[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.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref(w),(n,p)=>(e.openBlock(),e.createElementBlock("li",e.mergeProps({key:p,class:["l-mentions__item",{"is-active":p===e.unref(m)}]},{ref_for:!0},e.unref(i).getItemProps(p),{onMousedown:e.withModifiers(S=>e.unref(i).actions.select(n),["prevent"])}),[e.renderSlot(t.$slots,"default",{item:n},()=>[e.createTextVNode(e.toDisplayString(typeof n=="string"?n:n[t.valueKey]),1)])],16,ne))),128))],16)],12,ee)):e.createCommentVNode("",!0)]),_:3})]))],2))}}),A=X.withInstall(le);exports.LMentions=A;exports.default=A;exports.mentionsEmits=N;exports.mentionsProps=D;
|
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import '../style/mentions.css';
|
|
2
|
+
import '../style/Input.css';
|
|
3
|
+
import { w as J } from "../chunks/install-DJNxamQ0.mjs";
|
|
4
|
+
import { defineComponent as Q, computed as K, ref as N, openBlock as b, createElementBlock as V, normalizeClass as Z, unref as u, createVNode as O, mergeProps as A, createBlock as ee, Teleport as te, Transition as ne, withCtx as le, normalizeStyle as oe, createElementVNode as L, Fragment as se, renderList as ae, withModifiers as re, renderSlot as ie, createTextVNode as ue, toDisplayString as ce, createCommentVNode as de, nextTick as q } from "vue";
|
|
5
|
+
import "../chunks/manager-BUdQK4AD.mjs";
|
|
6
|
+
import { s as $ } from "../chunks/index-B0yEC3RG.mjs";
|
|
7
|
+
import { u as pe } from "../chunks/id-VS2potoV.mjs";
|
|
8
|
+
import { u as fe } from "../chunks/use-signals-CE1T2jXK.mjs";
|
|
9
|
+
import { useTeleportedConfig as ve } from "../config-provider/index.mjs";
|
|
10
|
+
import { u as ge } from "../chunks/use-id-D3casveg.mjs";
|
|
11
|
+
import { u as me } from "../chunks/use-form-item-CqDbWCiU.mjs";
|
|
12
|
+
import { _ as he } from "../chunks/Input.vue_vue_type_script_setup_true_lang-PeDZ7smO.mjs";
|
|
13
|
+
function ye(o) {
|
|
14
|
+
const h = o.idPrefix ?? pe("mentions"), f = Array.isArray(o.prefix) ? o.prefix : [o.prefix ?? "@"], g = o.split ?? " ", c = $(!1), y = $([]), s = $(-1), P = $(!1), d = $(null), w = (l, i) => {
|
|
15
|
+
var _;
|
|
16
|
+
const r = l.substring(0, i);
|
|
17
|
+
let a = null;
|
|
18
|
+
for (const m of f) {
|
|
19
|
+
const v = r.lastIndexOf(m);
|
|
20
|
+
if (v !== -1) {
|
|
21
|
+
const C = r[v - 1];
|
|
22
|
+
if (v === 0 || C === g || C === `
|
|
23
|
+
`) {
|
|
24
|
+
const M = r.substring(v + m.length);
|
|
25
|
+
!M.includes(g) && !M.includes(`
|
|
26
|
+
`) && (!a || v > a.index) && (a = { prefix: m, index: v });
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
if (a) {
|
|
31
|
+
const m = r.substring(a.index + a.prefix.length);
|
|
32
|
+
d.value = {
|
|
33
|
+
prefix: a.prefix,
|
|
34
|
+
keyword: m,
|
|
35
|
+
start: a.index,
|
|
36
|
+
end: i
|
|
37
|
+
}, c.value = !0, s.value = -1, (_ = o.onSearch) == null || _.call(o, a.prefix, m);
|
|
38
|
+
} else
|
|
39
|
+
d.value = null, c.value = !1;
|
|
40
|
+
}, x = (l) => {
|
|
41
|
+
var i;
|
|
42
|
+
d.value && ((i = o.onSelect) == null || i.call(o, l, d.value.prefix), c.value = !1, d.value = null);
|
|
43
|
+
};
|
|
44
|
+
return {
|
|
45
|
+
state: {
|
|
46
|
+
get isOpen() {
|
|
47
|
+
return c.value;
|
|
48
|
+
},
|
|
49
|
+
set isOpen(l) {
|
|
50
|
+
c.value = l;
|
|
51
|
+
},
|
|
52
|
+
get suggestions() {
|
|
53
|
+
return y.value;
|
|
54
|
+
},
|
|
55
|
+
set suggestions(l) {
|
|
56
|
+
y.value = l;
|
|
57
|
+
},
|
|
58
|
+
get activeIndex() {
|
|
59
|
+
return s.value;
|
|
60
|
+
},
|
|
61
|
+
set activeIndex(l) {
|
|
62
|
+
s.value = l;
|
|
63
|
+
},
|
|
64
|
+
get loading() {
|
|
65
|
+
return P.value;
|
|
66
|
+
},
|
|
67
|
+
set loading(l) {
|
|
68
|
+
P.value = l;
|
|
69
|
+
},
|
|
70
|
+
get context() {
|
|
71
|
+
return d.value;
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
actions: {
|
|
75
|
+
checkMention: w,
|
|
76
|
+
select: x,
|
|
77
|
+
navigate: (l) => {
|
|
78
|
+
if (!c.value || y.value.length === 0) return;
|
|
79
|
+
const i = y.value.length;
|
|
80
|
+
if (s.value === -1) {
|
|
81
|
+
s.value = l === "down" ? 0 : i - 1;
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
l === "down" ? s.value = (s.value + 1) % i : s.value = (s.value - 1 + i) % i;
|
|
85
|
+
},
|
|
86
|
+
confirmSelection: () => {
|
|
87
|
+
s.value >= 0 && s.value < y.value.length ? x(y.value[s.value]) : c.value = !1;
|
|
88
|
+
},
|
|
89
|
+
close: () => {
|
|
90
|
+
c.value = !1, d.value = null;
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
getInputProps: () => ({
|
|
94
|
+
role: "combobox",
|
|
95
|
+
"aria-autocomplete": "list",
|
|
96
|
+
"aria-expanded": c.value,
|
|
97
|
+
"aria-controls": `${h}-listbox`,
|
|
98
|
+
"aria-activedescendant": s.value >= 0 ? `${h}-option-${s.value}` : void 0
|
|
99
|
+
}),
|
|
100
|
+
getListProps: () => ({
|
|
101
|
+
id: `${h}-listbox`,
|
|
102
|
+
role: "listbox"
|
|
103
|
+
}),
|
|
104
|
+
getItemProps: (l) => ({
|
|
105
|
+
id: `${h}-option-${l}`,
|
|
106
|
+
role: "option",
|
|
107
|
+
"aria-selected": s.value === l
|
|
108
|
+
})
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
const xe = {
|
|
112
|
+
/** 绑定值 | Binding value */
|
|
113
|
+
modelValue: {
|
|
114
|
+
type: String,
|
|
115
|
+
default: ""
|
|
116
|
+
},
|
|
117
|
+
/** 类型 | Input type */
|
|
118
|
+
type: {
|
|
119
|
+
type: String,
|
|
120
|
+
default: "textarea"
|
|
121
|
+
},
|
|
122
|
+
/** 触发前缀 | Trigger prefix */
|
|
123
|
+
prefix: {
|
|
124
|
+
type: [String, Array],
|
|
125
|
+
default: "@"
|
|
126
|
+
},
|
|
127
|
+
/** 分隔符 | Split character */
|
|
128
|
+
split: {
|
|
129
|
+
type: String,
|
|
130
|
+
default: " "
|
|
131
|
+
},
|
|
132
|
+
/** 占位文字 | Placeholder */
|
|
133
|
+
placeholder: String,
|
|
134
|
+
/** 禁用 | Disabled */
|
|
135
|
+
disabled: Boolean,
|
|
136
|
+
/** 尺寸 | Size */
|
|
137
|
+
size: {
|
|
138
|
+
type: String,
|
|
139
|
+
default: "md"
|
|
140
|
+
},
|
|
141
|
+
/** 获取建议列表的回调 | Callback to fetch suggestions */
|
|
142
|
+
fetchSuggestions: {
|
|
143
|
+
type: Function,
|
|
144
|
+
required: !0
|
|
145
|
+
},
|
|
146
|
+
/** 显示字段名 | Display label field */
|
|
147
|
+
valueKey: {
|
|
148
|
+
type: String,
|
|
149
|
+
default: "value"
|
|
150
|
+
},
|
|
151
|
+
/** 文本域行数 | Rows for textarea */
|
|
152
|
+
rows: {
|
|
153
|
+
type: [Number, String],
|
|
154
|
+
default: 3
|
|
155
|
+
}
|
|
156
|
+
}, Se = {
|
|
157
|
+
"update:modelValue": (o) => !0,
|
|
158
|
+
select: (o, h) => !0,
|
|
159
|
+
search: (o, h) => !0,
|
|
160
|
+
focus: (o) => !0,
|
|
161
|
+
blur: (o) => !0
|
|
162
|
+
}, be = ["data-theme"], we = {
|
|
163
|
+
key: 0,
|
|
164
|
+
class: "l-mentions__loading"
|
|
165
|
+
}, _e = ["onMousedown"], Ce = /* @__PURE__ */ Q({
|
|
166
|
+
name: "LMentions",
|
|
167
|
+
__name: "Mentions",
|
|
168
|
+
props: xe,
|
|
169
|
+
emits: Se,
|
|
170
|
+
setup(o, { emit: h }) {
|
|
171
|
+
const f = o, g = h, { teleportedCssVars: c, teleportedTheme: y } = ve(), { size: s, disabled: P, inputId: d } = me(), w = K(() => f.disabled || P.value), x = N(null), B = N({ top: 0, left: 0 }), l = ge("mentions"), i = (d == null ? void 0 : d.value) || l, r = ye({
|
|
172
|
+
prefix: f.prefix,
|
|
173
|
+
split: f.split,
|
|
174
|
+
idPrefix: i,
|
|
175
|
+
onSearch: (e, n) => {
|
|
176
|
+
g("search", e, n), R(e, n);
|
|
177
|
+
},
|
|
178
|
+
onSelect: (e, n) => {
|
|
179
|
+
j(e, n);
|
|
180
|
+
}
|
|
181
|
+
}), {
|
|
182
|
+
isOpen: a,
|
|
183
|
+
suggestions: _,
|
|
184
|
+
activeIndex: m,
|
|
185
|
+
loading: v,
|
|
186
|
+
context: C
|
|
187
|
+
} = fe(r), R = (e, n) => {
|
|
188
|
+
v.value = !0, f.fetchSuggestions(e, n, (t) => {
|
|
189
|
+
v.value = !1, _.value = t, t.length === 0 && (a.value = !1);
|
|
190
|
+
});
|
|
191
|
+
}, M = () => {
|
|
192
|
+
var z, W;
|
|
193
|
+
const e = (W = (z = x.value) == null ? void 0 : z.$el) == null ? void 0 : W.querySelector("input, textarea");
|
|
194
|
+
if (!e) return { top: 0, left: 0 };
|
|
195
|
+
const n = e.selectionStart ?? 0, t = document.createElement("div"), p = window.getComputedStyle(e);
|
|
196
|
+
[
|
|
197
|
+
"direction",
|
|
198
|
+
"boxSizing",
|
|
199
|
+
"width",
|
|
200
|
+
"height",
|
|
201
|
+
"overflowX",
|
|
202
|
+
"overflowY",
|
|
203
|
+
"borderTopWidth",
|
|
204
|
+
"borderRightWidth",
|
|
205
|
+
"borderBottomWidth",
|
|
206
|
+
"borderLeftWidth",
|
|
207
|
+
"borderStyle",
|
|
208
|
+
"paddingTop",
|
|
209
|
+
"paddingRight",
|
|
210
|
+
"paddingBottom",
|
|
211
|
+
"paddingLeft",
|
|
212
|
+
"fontStyle",
|
|
213
|
+
"fontVariant",
|
|
214
|
+
"fontWeight",
|
|
215
|
+
"fontStretch",
|
|
216
|
+
"fontSize",
|
|
217
|
+
"fontSizeAdjust",
|
|
218
|
+
"lineHeight",
|
|
219
|
+
"fontFamily",
|
|
220
|
+
"textAlign",
|
|
221
|
+
"textTransform",
|
|
222
|
+
"textIndent",
|
|
223
|
+
"textDecoration",
|
|
224
|
+
"letterSpacing",
|
|
225
|
+
"wordSpacing",
|
|
226
|
+
"tabSize"
|
|
227
|
+
].forEach((F) => {
|
|
228
|
+
t.style[F] = p[F];
|
|
229
|
+
}), t.style.position = "absolute", t.style.visibility = "hidden", t.style.whiteSpace = "pre-wrap", t.style.wordWrap = "break-word", t.style.top = "0", t.style.left = "-9999px";
|
|
230
|
+
const T = e.value.substring(0, n);
|
|
231
|
+
t.textContent = T;
|
|
232
|
+
const k = document.createElement("span");
|
|
233
|
+
k.textContent = e.value.substring(n, n + 1) || ".", t.appendChild(k), document.body.appendChild(t);
|
|
234
|
+
const { offsetTop: E, offsetLeft: D } = k, I = e.getBoundingClientRect();
|
|
235
|
+
return document.body.removeChild(t), {
|
|
236
|
+
top: I.top + E + window.scrollY - e.scrollTop,
|
|
237
|
+
left: I.left + D + window.scrollX - e.scrollLeft
|
|
238
|
+
};
|
|
239
|
+
}, X = () => {
|
|
240
|
+
B.value = M();
|
|
241
|
+
}, Y = (e) => {
|
|
242
|
+
var t, p;
|
|
243
|
+
if (w.value) return;
|
|
244
|
+
g("update:modelValue", e);
|
|
245
|
+
const n = (p = (t = x.value) == null ? void 0 : t.$el) == null ? void 0 : p.querySelector("input, textarea");
|
|
246
|
+
if (n) {
|
|
247
|
+
const S = n.selectionStart || 0;
|
|
248
|
+
r.actions.checkMention(e, S), a.value && q(X);
|
|
249
|
+
}
|
|
250
|
+
}, j = (e, n) => {
|
|
251
|
+
var D, I;
|
|
252
|
+
if (!C.value) return;
|
|
253
|
+
const t = (I = (D = x.value) == null ? void 0 : D.$el) == null ? void 0 : I.querySelector("input, textarea");
|
|
254
|
+
if (!t) return;
|
|
255
|
+
const p = typeof e == "string" ? e : e[f.valueKey], S = f.modelValue, { start: T, end: k } = C.value, E = S.substring(0, T) + n + p + f.split + S.substring(k);
|
|
256
|
+
g("update:modelValue", E), g("select", e, n), q(() => {
|
|
257
|
+
const z = T + n.length + p.length + f.split.length;
|
|
258
|
+
t.setSelectionRange(z, z), t.focus();
|
|
259
|
+
});
|
|
260
|
+
}, H = (e) => {
|
|
261
|
+
if (a.value)
|
|
262
|
+
switch (e.key) {
|
|
263
|
+
case "ArrowUp":
|
|
264
|
+
e.preventDefault(), r.actions.navigate("up");
|
|
265
|
+
break;
|
|
266
|
+
case "ArrowDown":
|
|
267
|
+
e.preventDefault(), r.actions.navigate("down");
|
|
268
|
+
break;
|
|
269
|
+
case "Enter":
|
|
270
|
+
m.value !== -1 ? (e.preventDefault(), r.actions.confirmSelection()) : a.value = !1;
|
|
271
|
+
break;
|
|
272
|
+
case "Escape":
|
|
273
|
+
a.value = !1;
|
|
274
|
+
break;
|
|
275
|
+
}
|
|
276
|
+
}, U = (e) => {
|
|
277
|
+
g("blur", e), setTimeout(() => {
|
|
278
|
+
a.value = !1;
|
|
279
|
+
}, 200);
|
|
280
|
+
}, G = K(() => ({
|
|
281
|
+
position: "fixed",
|
|
282
|
+
top: `${B.value.top + 20}px`,
|
|
283
|
+
left: `${B.value.left}px`,
|
|
284
|
+
zIndex: 3e3,
|
|
285
|
+
...c.value
|
|
286
|
+
}));
|
|
287
|
+
return (e, n) => (b(), V("div", {
|
|
288
|
+
class: Z(["l-mentions", [`l-mentions--${e.size || u(s)}`, { "is-disabled": w.value }]])
|
|
289
|
+
}, [
|
|
290
|
+
O(he, A({
|
|
291
|
+
ref_key: "inputRef",
|
|
292
|
+
ref: x,
|
|
293
|
+
id: u(i),
|
|
294
|
+
type: e.type,
|
|
295
|
+
"model-value": e.modelValue,
|
|
296
|
+
placeholder: e.placeholder
|
|
297
|
+
}, u(r).getInputProps(), {
|
|
298
|
+
disabled: w.value,
|
|
299
|
+
size: e.size || u(s),
|
|
300
|
+
rows: e.rows,
|
|
301
|
+
onInput: Y,
|
|
302
|
+
onKeydown: H,
|
|
303
|
+
onFocus: n[0] || (n[0] = (t) => g("focus", t)),
|
|
304
|
+
onBlur: U
|
|
305
|
+
}), null, 16, ["id", "type", "model-value", "placeholder", "disabled", "size", "rows"]),
|
|
306
|
+
(b(), ee(te, { to: "body" }, [
|
|
307
|
+
O(ne, { name: "l-fade" }, {
|
|
308
|
+
default: le(() => [
|
|
309
|
+
u(a) ? (b(), V("div", {
|
|
310
|
+
key: 0,
|
|
311
|
+
class: "l-mentions__popper",
|
|
312
|
+
"data-theme": u(y),
|
|
313
|
+
style: oe(G.value)
|
|
314
|
+
}, [
|
|
315
|
+
L("ul", A({ class: "l-mentions__suggestions" }, u(r).getListProps()), [
|
|
316
|
+
u(v) ? (b(), V("li", we, [...n[1] || (n[1] = [
|
|
317
|
+
L("svg", {
|
|
318
|
+
class: "l-mentions__loading-icon",
|
|
319
|
+
viewBox: "0 0 1024 1024",
|
|
320
|
+
width: "16",
|
|
321
|
+
height: "16"
|
|
322
|
+
}, [
|
|
323
|
+
L("path", {
|
|
324
|
+
fill: "currentColor",
|
|
325
|
+
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",
|
|
326
|
+
opacity: ".2"
|
|
327
|
+
}),
|
|
328
|
+
L("path", {
|
|
329
|
+
fill: "currentColor",
|
|
330
|
+
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"
|
|
331
|
+
})
|
|
332
|
+
], -1)
|
|
333
|
+
])])) : (b(!0), V(se, { key: 1 }, ae(u(_), (t, p) => (b(), V("li", A({
|
|
334
|
+
key: p,
|
|
335
|
+
class: ["l-mentions__item", { "is-active": p === u(m) }]
|
|
336
|
+
}, { ref_for: !0 }, u(r).getItemProps(p), {
|
|
337
|
+
onMousedown: re((S) => u(r).actions.select(t), ["prevent"])
|
|
338
|
+
}), [
|
|
339
|
+
ie(e.$slots, "default", { item: t }, () => [
|
|
340
|
+
ue(ce(typeof t == "string" ? t : t[e.valueKey]), 1)
|
|
341
|
+
])
|
|
342
|
+
], 16, _e))), 128))
|
|
343
|
+
], 16)
|
|
344
|
+
], 12, be)) : de("", !0)
|
|
345
|
+
]),
|
|
346
|
+
_: 3
|
|
347
|
+
})
|
|
348
|
+
]))
|
|
349
|
+
], 2));
|
|
350
|
+
}
|
|
351
|
+
}), Le = J(Ce);
|
|
352
|
+
export {
|
|
353
|
+
Le as LMentions,
|
|
354
|
+
Le as default,
|
|
355
|
+
Se as mentionsEmits,
|
|
356
|
+
xe as mentionsProps
|
|
357
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
export declare const mentionsProps: {
|
|
3
|
+
/** 绑定值 | Binding value */
|
|
4
|
+
readonly modelValue: {
|
|
5
|
+
readonly type: StringConstructor;
|
|
6
|
+
readonly default: "";
|
|
7
|
+
};
|
|
8
|
+
/** 类型 | Input type */
|
|
9
|
+
readonly type: {
|
|
10
|
+
readonly type: PropType<"text" | "textarea">;
|
|
11
|
+
readonly default: "textarea";
|
|
12
|
+
};
|
|
13
|
+
/** 触发前缀 | Trigger prefix */
|
|
14
|
+
readonly prefix: {
|
|
15
|
+
readonly type: PropType<string | string[]>;
|
|
16
|
+
readonly default: "@";
|
|
17
|
+
};
|
|
18
|
+
/** 分隔符 | Split character */
|
|
19
|
+
readonly split: {
|
|
20
|
+
readonly type: StringConstructor;
|
|
21
|
+
readonly default: " ";
|
|
22
|
+
};
|
|
23
|
+
/** 占位文字 | Placeholder */
|
|
24
|
+
readonly placeholder: StringConstructor;
|
|
25
|
+
/** 禁用 | Disabled */
|
|
26
|
+
readonly disabled: BooleanConstructor;
|
|
27
|
+
/** 尺寸 | Size */
|
|
28
|
+
readonly size: {
|
|
29
|
+
readonly type: PropType<"sm" | "md" | "lg">;
|
|
30
|
+
readonly default: "md";
|
|
31
|
+
};
|
|
32
|
+
/** 获取建议列表的回调 | Callback to fetch suggestions */
|
|
33
|
+
readonly fetchSuggestions: {
|
|
34
|
+
readonly type: PropType<(prefix: string, keyword: string, cb: (data: any[]) => void) => void>;
|
|
35
|
+
readonly required: true;
|
|
36
|
+
};
|
|
37
|
+
/** 显示字段名 | Display label field */
|
|
38
|
+
readonly valueKey: {
|
|
39
|
+
readonly type: StringConstructor;
|
|
40
|
+
readonly default: "value";
|
|
41
|
+
};
|
|
42
|
+
/** 文本域行数 | Rows for textarea */
|
|
43
|
+
readonly rows: {
|
|
44
|
+
readonly type: PropType<number | string>;
|
|
45
|
+
readonly default: 3;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export type MentionsProps = ExtractPropTypes<typeof mentionsProps>;
|
|
49
|
+
export declare const mentionsEmits: {
|
|
50
|
+
'update:modelValue': (_val: string) => boolean;
|
|
51
|
+
select: (_item: any, _prefix: string) => boolean;
|
|
52
|
+
search: (_prefix: string, _keyword: string) => boolean;
|
|
53
|
+
focus: (_e: FocusEvent) => boolean;
|
|
54
|
+
blur: (_e: FocusEvent) => boolean;
|
|
55
|
+
};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: HTMLUListElement;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
11
|
+
readonly modelValue: {
|
|
12
|
+
readonly type: import('vue').PropType<import('../../../headless/src/index.ts').MenuValue | undefined>;
|
|
13
|
+
readonly default: undefined;
|
|
14
|
+
};
|
|
15
|
+
readonly defaultValue: {
|
|
16
|
+
readonly type: import('vue').PropType<import('../../../headless/src/index.ts').MenuValue | undefined>;
|
|
17
|
+
readonly default: undefined;
|
|
18
|
+
};
|
|
19
|
+
readonly openKeys: {
|
|
20
|
+
readonly type: import('vue').PropType<import('../../../headless/src/index.ts').MenuValue[] | undefined>;
|
|
21
|
+
readonly default: undefined;
|
|
22
|
+
};
|
|
23
|
+
readonly defaultOpenKeys: {
|
|
24
|
+
readonly type: import('vue').PropType<import('../../../headless/src/index.ts').MenuValue[]>;
|
|
25
|
+
readonly default: () => never[];
|
|
26
|
+
};
|
|
27
|
+
readonly mode: {
|
|
28
|
+
readonly type: import('vue').PropType<import('../../../headless/src/index.ts').MenuMode>;
|
|
29
|
+
readonly default: "vertical";
|
|
30
|
+
};
|
|
31
|
+
readonly size: {
|
|
32
|
+
readonly type: import('vue').PropType<"sm" | "md" | "lg">;
|
|
33
|
+
readonly default: "md";
|
|
34
|
+
};
|
|
35
|
+
readonly collapsed: {
|
|
36
|
+
readonly type: BooleanConstructor;
|
|
37
|
+
readonly default: false;
|
|
38
|
+
};
|
|
39
|
+
readonly accordion: {
|
|
40
|
+
readonly type: BooleanConstructor;
|
|
41
|
+
readonly default: false;
|
|
42
|
+
};
|
|
43
|
+
readonly disabled: {
|
|
44
|
+
readonly type: BooleanConstructor;
|
|
45
|
+
readonly default: false;
|
|
46
|
+
};
|
|
47
|
+
readonly items: {
|
|
48
|
+
readonly type: import('vue').PropType<import('../../../headless/src/index.ts').MenuItemInput[]>;
|
|
49
|
+
readonly default: () => never[];
|
|
50
|
+
};
|
|
51
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
52
|
+
select: (_value: import('../../../headless/src/index.ts').MenuValue) => void;
|
|
53
|
+
"update:modelValue": (_value: import('../../../headless/src/index.ts').MenuValue) => void;
|
|
54
|
+
"update:openKeys": (_keys: import('../../../headless/src/index.ts').MenuValue[]) => void;
|
|
55
|
+
"open-change": (_keys: import('../../../headless/src/index.ts').MenuValue[]) => void;
|
|
56
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
57
|
+
readonly modelValue: {
|
|
58
|
+
readonly type: import('vue').PropType<import('../../../headless/src/index.ts').MenuValue | undefined>;
|
|
59
|
+
readonly default: undefined;
|
|
60
|
+
};
|
|
61
|
+
readonly defaultValue: {
|
|
62
|
+
readonly type: import('vue').PropType<import('../../../headless/src/index.ts').MenuValue | undefined>;
|
|
63
|
+
readonly default: undefined;
|
|
64
|
+
};
|
|
65
|
+
readonly openKeys: {
|
|
66
|
+
readonly type: import('vue').PropType<import('../../../headless/src/index.ts').MenuValue[] | undefined>;
|
|
67
|
+
readonly default: undefined;
|
|
68
|
+
};
|
|
69
|
+
readonly defaultOpenKeys: {
|
|
70
|
+
readonly type: import('vue').PropType<import('../../../headless/src/index.ts').MenuValue[]>;
|
|
71
|
+
readonly default: () => never[];
|
|
72
|
+
};
|
|
73
|
+
readonly mode: {
|
|
74
|
+
readonly type: import('vue').PropType<import('../../../headless/src/index.ts').MenuMode>;
|
|
75
|
+
readonly default: "vertical";
|
|
76
|
+
};
|
|
77
|
+
readonly size: {
|
|
78
|
+
readonly type: import('vue').PropType<"sm" | "md" | "lg">;
|
|
79
|
+
readonly default: "md";
|
|
80
|
+
};
|
|
81
|
+
readonly collapsed: {
|
|
82
|
+
readonly type: BooleanConstructor;
|
|
83
|
+
readonly default: false;
|
|
84
|
+
};
|
|
85
|
+
readonly accordion: {
|
|
86
|
+
readonly type: BooleanConstructor;
|
|
87
|
+
readonly default: false;
|
|
88
|
+
};
|
|
89
|
+
readonly disabled: {
|
|
90
|
+
readonly type: BooleanConstructor;
|
|
91
|
+
readonly default: false;
|
|
92
|
+
};
|
|
93
|
+
readonly items: {
|
|
94
|
+
readonly type: import('vue').PropType<import('../../../headless/src/index.ts').MenuItemInput[]>;
|
|
95
|
+
readonly default: () => never[];
|
|
96
|
+
};
|
|
97
|
+
}>> & Readonly<{
|
|
98
|
+
onSelect?: ((_value: import('../../../headless/src/index.ts').MenuValue) => any) | undefined;
|
|
99
|
+
"onUpdate:modelValue"?: ((_value: import('../../../headless/src/index.ts').MenuValue) => any) | undefined;
|
|
100
|
+
"onUpdate:openKeys"?: ((_keys: import('../../../headless/src/index.ts').MenuValue[]) => any) | undefined;
|
|
101
|
+
"onOpen-change"?: ((_keys: import('../../../headless/src/index.ts').MenuValue[]) => any) | undefined;
|
|
102
|
+
}>, {
|
|
103
|
+
readonly mode: import('../../../headless/src/index.ts').MenuMode;
|
|
104
|
+
readonly size: "sm" | "md" | "lg";
|
|
105
|
+
readonly disabled: boolean;
|
|
106
|
+
readonly modelValue: import('../../../headless/src/index.ts').MenuValue | undefined;
|
|
107
|
+
readonly accordion: boolean;
|
|
108
|
+
readonly items: import('../../../headless/src/index.ts').MenuItemInput[];
|
|
109
|
+
readonly defaultValue: import('../../../headless/src/index.ts').MenuValue | undefined;
|
|
110
|
+
readonly openKeys: import('../../../headless/src/index.ts').MenuValue[] | undefined;
|
|
111
|
+
readonly defaultOpenKeys: import('../../../headless/src/index.ts').MenuValue[];
|
|
112
|
+
readonly collapsed: boolean;
|
|
113
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLUListElement>;
|
|
114
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
115
|
+
export default _default;
|
|
116
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
117
|
+
new (): {
|
|
118
|
+
$slots: S;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLLIElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: HTMLLIElement;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
11
|
+
readonly title: {
|
|
12
|
+
readonly type: StringConstructor;
|
|
13
|
+
readonly default: "";
|
|
14
|
+
};
|
|
15
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
|
+
readonly title: {
|
|
17
|
+
readonly type: StringConstructor;
|
|
18
|
+
readonly default: "";
|
|
19
|
+
};
|
|
20
|
+
}>> & Readonly<{}>, {
|
|
21
|
+
readonly title: string;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLLIElement>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
icon?(_: {}): any;
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
suffix?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: HTMLLIElement;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
13
|
+
readonly value: {
|
|
14
|
+
readonly type: import('vue').PropType<import('../../../headless/src/index.ts').MenuValue>;
|
|
15
|
+
readonly required: true;
|
|
16
|
+
};
|
|
17
|
+
readonly disabled: {
|
|
18
|
+
readonly type: BooleanConstructor;
|
|
19
|
+
readonly default: false;
|
|
20
|
+
};
|
|
21
|
+
readonly danger: {
|
|
22
|
+
readonly type: BooleanConstructor;
|
|
23
|
+
readonly default: false;
|
|
24
|
+
};
|
|
25
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
26
|
+
readonly value: {
|
|
27
|
+
readonly type: import('vue').PropType<import('../../../headless/src/index.ts').MenuValue>;
|
|
28
|
+
readonly required: true;
|
|
29
|
+
};
|
|
30
|
+
readonly disabled: {
|
|
31
|
+
readonly type: BooleanConstructor;
|
|
32
|
+
readonly default: false;
|
|
33
|
+
};
|
|
34
|
+
readonly danger: {
|
|
35
|
+
readonly type: BooleanConstructor;
|
|
36
|
+
readonly default: false;
|
|
37
|
+
};
|
|
38
|
+
}>> & Readonly<{}>, {
|
|
39
|
+
readonly disabled: boolean;
|
|
40
|
+
readonly danger: boolean;
|
|
41
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLLIElement>;
|
|
42
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
43
|
+
export default _default;
|
|
44
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
45
|
+
new (): {
|
|
46
|
+
$slots: S;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MenuItemInput } from '../../../headless/src/index.ts';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
items: MenuItemInput[];
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|