@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,49 @@
|
|
|
1
|
+
import { ref as a, computed as c } from "vue";
|
|
2
|
+
const t = ["xs", "sm", "md", "lg", "xl"], n = {
|
|
3
|
+
sm: 576,
|
|
4
|
+
md: 768,
|
|
5
|
+
lg: 992,
|
|
6
|
+
xl: 1200
|
|
7
|
+
}, i = a("xs");
|
|
8
|
+
let u = !1;
|
|
9
|
+
function l(e) {
|
|
10
|
+
return e >= n.xl ? "xl" : e >= n.lg ? "lg" : e >= n.md ? "md" : e >= n.sm ? "sm" : "xs";
|
|
11
|
+
}
|
|
12
|
+
function d() {
|
|
13
|
+
if (typeof window > "u") {
|
|
14
|
+
i.value = "xs";
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
i.value = l(window.innerWidth);
|
|
18
|
+
}
|
|
19
|
+
function p() {
|
|
20
|
+
typeof window > "u" || u || (d(), window.addEventListener("resize", d), u = !0);
|
|
21
|
+
}
|
|
22
|
+
function k(e) {
|
|
23
|
+
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
24
|
+
}
|
|
25
|
+
function x() {
|
|
26
|
+
return p(), c(() => i.value);
|
|
27
|
+
}
|
|
28
|
+
function y(e, r) {
|
|
29
|
+
if (e === void 0)
|
|
30
|
+
return;
|
|
31
|
+
if (!k(e))
|
|
32
|
+
return e;
|
|
33
|
+
let o;
|
|
34
|
+
for (const s of t) {
|
|
35
|
+
const f = e[s];
|
|
36
|
+
if (f !== void 0 && (o = f), s === r)
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
return o;
|
|
40
|
+
}
|
|
41
|
+
function B(e, r) {
|
|
42
|
+
return t.indexOf(e) <= t.indexOf(r);
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
B as i,
|
|
46
|
+
t as l,
|
|
47
|
+
y as r,
|
|
48
|
+
x as u
|
|
49
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function n(r,t="px"){if(!(r==null||r===""))return typeof r=="number"?`${r}${t}`:/^\d+$/.test(r)?`${r}${t}`:r}exports.addUnit=n;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
const t = {
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: [String, Number, Symbol],
|
|
4
|
+
default: void 0
|
|
5
|
+
},
|
|
6
|
+
defaultValue: {
|
|
7
|
+
type: [String, Number, Symbol],
|
|
8
|
+
default: void 0
|
|
9
|
+
},
|
|
10
|
+
openKeys: {
|
|
11
|
+
type: Array,
|
|
12
|
+
default: void 0
|
|
13
|
+
},
|
|
14
|
+
defaultOpenKeys: {
|
|
15
|
+
type: Array,
|
|
16
|
+
default: () => []
|
|
17
|
+
},
|
|
18
|
+
mode: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: "vertical"
|
|
21
|
+
},
|
|
22
|
+
size: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: "md"
|
|
25
|
+
},
|
|
26
|
+
collapsed: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: !1
|
|
29
|
+
},
|
|
30
|
+
accordion: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: !1
|
|
33
|
+
},
|
|
34
|
+
disabled: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !1
|
|
37
|
+
},
|
|
38
|
+
items: {
|
|
39
|
+
type: Array,
|
|
40
|
+
default: () => []
|
|
41
|
+
}
|
|
42
|
+
}, a = {
|
|
43
|
+
"update:modelValue": (e) => !0,
|
|
44
|
+
"update:openKeys": (e) => !0,
|
|
45
|
+
select: (e) => !0,
|
|
46
|
+
"open-change": (e) => !0
|
|
47
|
+
}, u = {
|
|
48
|
+
value: {
|
|
49
|
+
type: [String, Number, Symbol],
|
|
50
|
+
required: !0
|
|
51
|
+
},
|
|
52
|
+
disabled: {
|
|
53
|
+
type: Boolean,
|
|
54
|
+
default: !1
|
|
55
|
+
},
|
|
56
|
+
danger: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
default: !1
|
|
59
|
+
}
|
|
60
|
+
}, l = {
|
|
61
|
+
value: {
|
|
62
|
+
type: [String, Number, Symbol],
|
|
63
|
+
required: !0
|
|
64
|
+
},
|
|
65
|
+
title: {
|
|
66
|
+
type: String,
|
|
67
|
+
default: ""
|
|
68
|
+
},
|
|
69
|
+
disabled: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
default: !1
|
|
72
|
+
},
|
|
73
|
+
popupOffset: {
|
|
74
|
+
type: Number,
|
|
75
|
+
default: 8
|
|
76
|
+
}
|
|
77
|
+
}, o = {
|
|
78
|
+
title: {
|
|
79
|
+
type: String,
|
|
80
|
+
default: ""
|
|
81
|
+
}
|
|
82
|
+
}, s = Symbol("MenuKey"), n = Symbol("MenuParentKey"), r = Symbol("MenuPopupHostKey");
|
|
83
|
+
export {
|
|
84
|
+
s as M,
|
|
85
|
+
n as a,
|
|
86
|
+
r as b,
|
|
87
|
+
o as c,
|
|
88
|
+
u as d,
|
|
89
|
+
t as e,
|
|
90
|
+
a as m,
|
|
91
|
+
l as s
|
|
92
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t={modelValue:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},openKeys:{type:Array,default:void 0},defaultOpenKeys:{type:Array,default:()=>[]},mode:{type:String,default:"vertical"},size:{type:String,default:"md"},collapsed:{type:Boolean,default:!1},accordion:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},items:{type:Array,default:()=>[]}},u={"update:modelValue":e=>!0,"update:openKeys":e=>!0,select:e=>!0,"open-change":e=>!0},o={value:{type:[String,Number,Symbol],required:!0},disabled:{type:Boolean,default:!1},danger:{type:Boolean,default:!1}},l={value:{type:[String,Number,Symbol],required:!0},title:{type:String,default:""},disabled:{type:Boolean,default:!1},popupOffset:{type:Number,default:8}},a={title:{type:String,default:""}},n=Symbol("MenuKey"),r=Symbol("MenuParentKey"),p=Symbol("MenuPopupHostKey");exports.MenuKey=n;exports.MenuParentKey=r;exports.MenuPopupHostKey=p;exports.menuEmits=u;exports.menuGroupProps=a;exports.menuItemProps=o;exports.menuProps=t;exports.subMenuProps=l;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("vue"),c=require("./context-BEsW77hb.js");function s(n){const d=i.inject(c.FORM_KEY,void 0),e=i.inject(c.FORM_ITEM_KEY,void 0),t=i.computed(()=>(n==null?void 0:n.size)||(e==null?void 0:e.size)||(d==null?void 0:d.size)||"md"),u=i.computed(()=>!!(n!=null&&n.disabled||e!=null&&e.disabled||d!=null&&d.disabled)),a=i.computed(()=>!!(n!=null&&n.readonly||e!=null&&e.readonly||d!=null&&d.readonly)),l=i.computed(()=>e==null?void 0:e.inputId);return{form:d,formItem:e,size:t,disabled:u,readonly:a,inputId:l}}exports.useFormItem=s;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { inject as e, computed as a } from "vue";
|
|
2
|
+
import { a as b, F as s } from "./context-BlK-PJ3n.mjs";
|
|
3
|
+
function F(n) {
|
|
4
|
+
const i = e(b, void 0), d = e(s, void 0), c = a(() => (n == null ? void 0 : n.size) || (d == null ? void 0 : d.size) || (i == null ? void 0 : i.size) || "md"), t = a(() => !!(n != null && n.disabled || d != null && d.disabled || i != null && i.disabled)), l = a(() => !!(n != null && n.readonly || d != null && d.readonly || i != null && i.readonly)), u = a(() => d == null ? void 0 : d.inputId);
|
|
5
|
+
return {
|
|
6
|
+
form: i,
|
|
7
|
+
formItem: d,
|
|
8
|
+
size: c,
|
|
9
|
+
disabled: t,
|
|
10
|
+
readonly: l,
|
|
11
|
+
inputId: u
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
F as u
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("vue");let e=0;function s(t="l"){const n=u.getCurrentInstance();return n?`${t}-${n.uid}-${++e}`:`${t}-${++e}`}exports.useId=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("vue"),i=require("./index-DWAWrVaT.js"),u='(function(){"use strict";const r={errors:[],metrics:{}};function c(o,t){switch(o){case"REPORT_ERROR":{const e=t;if(e.source==="hmr"){r.errors=r.errors.filter(i=>i.source!=="hmr");const s=e.message.match(/Found (\\d+) error/i),a=s?parseInt(s[1],10):1;r.errors.push({...e,id:"hmr-snapshot",count:a})}else{const s=`err-${Math.random().toString(36).slice(2,9)}`;r.errors.push({...e,id:s})}r.errors.length>50&&r.errors.shift();break}case"CLEAR_SOURCE":{const e=t;r.errors=r.errors.filter(s=>s.source!==e);break}case"REPORT_METRICS":r.metrics={...r.metrics,...t};break;case"CLEAR":r.errors=[],r.metrics={};break}}self.onmessage=o=>{const{type:t,payload:e}=o.data;t==="BATCH_MESSAGES"?e.forEach(s=>{c(s.type,s.payload)}):t!=="INIT"&&c(t,e),n()};function n(){self.postMessage({type:"STATE_UPDATE",payload:{errors:[...r.errors],metrics:{...r.metrics}}})}})();\n';typeof self<"u"&&self.Blob&&new Blob([u],{type:"text/javascript;charset=utf-8"});function f(e){return n.customRef((o,c)=>{const t=i.effect(()=>{e.value,c()});return n.onScopeDispose(()=>{t()}),{get(){return o(),e.value},set(r){e.value=r}}})}function p(e,o){const c={};if(Object.keys(e.state).forEach(t=>{c[t]=f({get value(){return e.state[t]},set value(r){e.state[t]=r}})}),o){const t=n.watchEffect(()=>{Object.keys(o).forEach(r=>{let s;for(let a=e.state;a&&(s=Object.getOwnPropertyDescriptor(a,r),!s);a=Object.getPrototypeOf(a));(!s||!!s.set||s.writable!==!1&&!s.get)&&(e.state[r]=o[r]())})});n.onScopeDispose(()=>{t()})}return c}exports.useController=p;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { watchEffect as i, onScopeDispose as n, customRef as f } from "vue";
|
|
2
|
+
import { e as u } from "./index-B0yEC3RG.mjs";
|
|
3
|
+
const p = '(function(){"use strict";const r={errors:[],metrics:{}};function c(o,t){switch(o){case"REPORT_ERROR":{const e=t;if(e.source==="hmr"){r.errors=r.errors.filter(i=>i.source!=="hmr");const s=e.message.match(/Found (\\d+) error/i),a=s?parseInt(s[1],10):1;r.errors.push({...e,id:"hmr-snapshot",count:a})}else{const s=`err-${Math.random().toString(36).slice(2,9)}`;r.errors.push({...e,id:s})}r.errors.length>50&&r.errors.shift();break}case"CLEAR_SOURCE":{const e=t;r.errors=r.errors.filter(s=>s.source!==e);break}case"REPORT_METRICS":r.metrics={...r.metrics,...t};break;case"CLEAR":r.errors=[],r.metrics={};break}}self.onmessage=o=>{const{type:t,payload:e}=o.data;t==="BATCH_MESSAGES"?e.forEach(s=>{c(s.type,s.payload)}):t!=="INIT"&&c(t,e),n()};function n(){self.postMessage({type:"STATE_UPDATE",payload:{errors:[...r.errors],metrics:{...r.metrics}}})}})();\n';
|
|
4
|
+
typeof self < "u" && self.Blob && new Blob([p], { type: "text/javascript;charset=utf-8" });
|
|
5
|
+
function m(e) {
|
|
6
|
+
return f((o, a) => {
|
|
7
|
+
const t = u(() => {
|
|
8
|
+
e.value, a();
|
|
9
|
+
});
|
|
10
|
+
return n(() => {
|
|
11
|
+
t();
|
|
12
|
+
}), {
|
|
13
|
+
get() {
|
|
14
|
+
return o(), e.value;
|
|
15
|
+
},
|
|
16
|
+
set(r) {
|
|
17
|
+
e.value = r;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function b(e, o) {
|
|
23
|
+
const a = {};
|
|
24
|
+
if (Object.keys(e.state).forEach((t) => {
|
|
25
|
+
a[t] = m({
|
|
26
|
+
get value() {
|
|
27
|
+
return e.state[t];
|
|
28
|
+
},
|
|
29
|
+
set value(r) {
|
|
30
|
+
e.state[t] = r;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}), o) {
|
|
34
|
+
const t = i(() => {
|
|
35
|
+
Object.keys(o).forEach((r) => {
|
|
36
|
+
let s;
|
|
37
|
+
for (let c = e.state; c && (s = Object.getOwnPropertyDescriptor(c, r), !s); c = Object.getPrototypeOf(c))
|
|
38
|
+
;
|
|
39
|
+
(!s || !!s.set || s.writable !== !1 && !s.get) && (e.state[r] = o[r]());
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
n(() => {
|
|
43
|
+
t();
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
return a;
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
b as u
|
|
50
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { ref as g, onUnmounted as W, watch as O } from "vue";
|
|
2
|
+
import { i as z } from "./manager-BUdQK4AD.mjs";
|
|
3
|
+
function U(f) {
|
|
4
|
+
const e = g("idle"), d = g(""), n = g(null), c = g(null);
|
|
5
|
+
let t = null;
|
|
6
|
+
const b = () => {
|
|
7
|
+
t == null || t.abort(), t = null, c.value && (c.value.close(), c.value = null), n.value && n.value.startsWith("blob:") && URL.revokeObjectURL(n.value), n.value = null, e.value = "idle", d.value = "";
|
|
8
|
+
}, r = async () => {
|
|
9
|
+
if (!(e.value === "loading" || e.value === "loaded")) {
|
|
10
|
+
e.value = "loading", t = new AbortController();
|
|
11
|
+
try {
|
|
12
|
+
const a = await z.load(f.src, {
|
|
13
|
+
priority: f.priority || "normal",
|
|
14
|
+
fetchpriority: f.priority === "high" ? "high" : "auto",
|
|
15
|
+
abortSignal: t.signal
|
|
16
|
+
});
|
|
17
|
+
return a instanceof ImageBitmap ? c.value = a : n.value = a, e.value = "loaded", a;
|
|
18
|
+
} catch (a) {
|
|
19
|
+
const i = a;
|
|
20
|
+
if (i.name === "AbortError" || i.message === "Aborted" || (t == null ? void 0 : t.signal.aborted)) {
|
|
21
|
+
e.value = "idle";
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
if (i.name === "EncodingError") {
|
|
25
|
+
e.value = "idle";
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
throw e.value = "error", d.value = i.message || "Unknown Error", i;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
return W(b), {
|
|
33
|
+
status: e,
|
|
34
|
+
errorMsg: d,
|
|
35
|
+
displayedSrc: n,
|
|
36
|
+
currentBitmap: c,
|
|
37
|
+
load: r,
|
|
38
|
+
reset: b
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function I(f, e) {
|
|
42
|
+
const d = g(null);
|
|
43
|
+
let n = !1;
|
|
44
|
+
const c = () => {
|
|
45
|
+
n = !1;
|
|
46
|
+
const r = e.bitmap.value, a = f.value;
|
|
47
|
+
if (!r || !a) return;
|
|
48
|
+
const i = a.getContext("2d");
|
|
49
|
+
if (!i) return;
|
|
50
|
+
const { width: m, height: h } = r, { clientWidth: l, clientHeight: s } = a, w = window.devicePixelRatio || 1;
|
|
51
|
+
a.width = l * w, a.height = s * w, i.scale(w, w), i.clearRect(0, 0, l, s);
|
|
52
|
+
const v = m / h, R = l / s;
|
|
53
|
+
let o, u, p, A;
|
|
54
|
+
const y = e.fit.value;
|
|
55
|
+
if (y === "cover")
|
|
56
|
+
R > v ? (o = l, u = l / v) : (u = s, o = s * v);
|
|
57
|
+
else if (y === "contain")
|
|
58
|
+
R < v ? (o = l, u = l / v) : (u = s, o = s * v);
|
|
59
|
+
else if (y === "none")
|
|
60
|
+
o = m, u = h;
|
|
61
|
+
else if (y === "scale-down") {
|
|
62
|
+
const x = Math.min(1, l / m, s / h);
|
|
63
|
+
o = m * x, u = h * x;
|
|
64
|
+
} else
|
|
65
|
+
o = l, u = s;
|
|
66
|
+
p = (l - o) / 2, A = (s - u) / 2, i.drawImage(r, p, A, o, u);
|
|
67
|
+
}, t = () => {
|
|
68
|
+
n || (n = !0, requestAnimationFrame(c));
|
|
69
|
+
};
|
|
70
|
+
O(() => e.fit.value, t), O(() => e.bitmap.value, (r) => {
|
|
71
|
+
r && t();
|
|
72
|
+
});
|
|
73
|
+
const b = (r) => {
|
|
74
|
+
typeof ResizeObserver > "u" || (d.value = new ResizeObserver(t), d.value.observe(r));
|
|
75
|
+
};
|
|
76
|
+
return W(() => {
|
|
77
|
+
var r;
|
|
78
|
+
(r = d.value) == null || r.disconnect();
|
|
79
|
+
}), {
|
|
80
|
+
draw: c,
|
|
81
|
+
initResizeObserver: b
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
export {
|
|
85
|
+
U as a,
|
|
86
|
+
I as u
|
|
87
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=require("vue"),U=require("./manager-C0AUxQ1I.js");function W(g){const e=c.ref("idle"),v=c.ref(""),a=c.ref(null),d=c.ref(null);let t=null;const h=()=>{t==null||t.abort(),t=null,d.value&&(d.value.close(),d.value=null),a.value&&a.value.startsWith("blob:")&&URL.revokeObjectURL(a.value),a.value=null,e.value="idle",v.value=""},r=async()=>{if(!(e.value==="loading"||e.value==="loaded")){e.value="loading",t=new AbortController;try{const n=await U.imageManager.load(g.src,{priority:g.priority||"normal",fetchpriority:g.priority==="high"?"high":"auto",abortSignal:t.signal});return n instanceof ImageBitmap?d.value=n:a.value=n,e.value="loaded",n}catch(n){const i=n;if(i.name==="AbortError"||i.message==="Aborted"||(t==null?void 0:t.signal.aborted)){e.value="idle";return}if(i.name==="EncodingError"){e.value="idle";return}throw e.value="error",v.value=i.message||"Unknown Error",i}}};return c.onUnmounted(h),{status:e,errorMsg:v,displayedSrc:a,currentBitmap:d,load:r,reset:h}}function q(g,e){const v=c.ref(null);let a=!1;const d=()=>{a=!1;const r=e.bitmap.value,n=g.value;if(!r||!n)return;const i=n.getContext("2d");if(!i)return;const{width:m,height:b}=r,{clientWidth:l,clientHeight:s}=n,w=window.devicePixelRatio||1;n.width=l*w,n.height=s*w,i.scale(w,w),i.clearRect(0,0,l,s);const f=m/b,y=l/s;let o,u,A,p;const R=e.fit.value;if(R==="cover")y>f?(o=l,u=l/f):(u=s,o=s*f);else if(R==="contain")y<f?(o=l,u=l/f):(u=s,o=s*f);else if(R==="none")o=m,u=b;else if(R==="scale-down"){const O=Math.min(1,l/m,s/b);o=m*O,u=b*O}else o=l,u=s;A=(l-o)/2,p=(s-u)/2,i.drawImage(r,A,p,o,u)},t=()=>{a||(a=!0,requestAnimationFrame(d))};c.watch(()=>e.fit.value,t),c.watch(()=>e.bitmap.value,r=>{r&&t()});const h=r=>{typeof ResizeObserver>"u"||(v.value=new ResizeObserver(t),v.value.observe(r))};return c.onUnmounted(()=>{var r;(r=v.value)==null||r.disconnect()}),{draw:d,initResizeObserver:h}}exports.useCanvasRenderer=q;exports.useImageLoader=W;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { watch as l, unref as u, onUnmounted as d } from "vue";
|
|
2
|
+
const f = /* @__PURE__ */ new WeakMap();
|
|
3
|
+
let i = null;
|
|
4
|
+
function a() {
|
|
5
|
+
return typeof window > "u" ? null : (i || (i = new ResizeObserver((t) => {
|
|
6
|
+
for (const o of t) {
|
|
7
|
+
const n = f.get(o.target);
|
|
8
|
+
n && n.forEach((e) => {
|
|
9
|
+
try {
|
|
10
|
+
e(o);
|
|
11
|
+
} catch (s) {
|
|
12
|
+
console.error("Routa ResizeObserver error:", s);
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
})), i);
|
|
17
|
+
}
|
|
18
|
+
function m(t, o) {
|
|
19
|
+
const n = (r) => {
|
|
20
|
+
const c = u(o);
|
|
21
|
+
typeof c == "function" && c(r);
|
|
22
|
+
};
|
|
23
|
+
let e = null;
|
|
24
|
+
const s = () => {
|
|
25
|
+
e && (v(e, n), e = null);
|
|
26
|
+
}, b = l(
|
|
27
|
+
() => {
|
|
28
|
+
const r = u(t);
|
|
29
|
+
return typeof r == "function" ? r() : r;
|
|
30
|
+
},
|
|
31
|
+
(r) => {
|
|
32
|
+
r !== e && (s(), r && (e = r, p(r, n)));
|
|
33
|
+
},
|
|
34
|
+
{ immediate: !0, flush: "post" }
|
|
35
|
+
);
|
|
36
|
+
return d(() => {
|
|
37
|
+
s(), b();
|
|
38
|
+
}), {
|
|
39
|
+
cleanup: s
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function p(t, o) {
|
|
43
|
+
const n = a();
|
|
44
|
+
if (n && t && t instanceof Element) {
|
|
45
|
+
let e = f.get(t);
|
|
46
|
+
e || (e = /* @__PURE__ */ new Set(), f.set(t, e), n.observe(t)), e.add(o);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function v(t, o) {
|
|
50
|
+
const n = a();
|
|
51
|
+
if (n && t && t instanceof Element) {
|
|
52
|
+
const e = f.get(t);
|
|
53
|
+
e && (e.delete(o), e.size === 0 && (n.unobserve(t), f.delete(t)));
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export {
|
|
57
|
+
m as a,
|
|
58
|
+
p as o,
|
|
59
|
+
v as u
|
|
60
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("vue"),u=new WeakMap;let c=null;function a(){return typeof window>"u"?null:(c||(c=new ResizeObserver(t=>{for(const s of t){const n=u.get(s.target);n&&n.forEach(e=>{try{e(s)}catch(o){console.error("Routa ResizeObserver error:",o)}})}})),c)}function d(t,s){const n=r=>{const f=i.unref(s);typeof f=="function"&&f(r)};let e=null;const o=()=>{e&&(v(e,n),e=null)},l=i.watch(()=>{const r=i.unref(t);return typeof r=="function"?r():r},r=>{r!==e&&(o(),r&&(e=r,b(r,n)))},{immediate:!0,flush:"post"});return i.onUnmounted(()=>{o(),l()}),{cleanup:o}}function b(t,s){const n=a();if(n&&t&&t instanceof Element){let e=u.get(t);e||(e=new Set,u.set(t,e),n.observe(t)),e.add(s)}}function v(t,s){const n=a();if(n&&t&&t instanceof Element){const e=u.get(t);e&&(e.delete(s),e.size===0&&(n.unobserve(t),u.delete(t)))}}exports.observe=b;exports.unobserve=v;exports.useResizeObserver=d;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("./index-DWAWrVaT.js"),n=3e3,e=t.signal(n);function r(){return{nextZIndex:()=>(e.value+=1,e.value),get current(){return e.value}}}exports.initialZIndex=n;exports.useZIndex=r;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CollapseProps } from './types';
|
|
2
|
+
import { CollapseActiveKey } from '../../../headless/src/index.ts';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: HTMLDivElement;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<CollapseProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
13
|
+
change: (value: CollapseActiveKey[]) => any;
|
|
14
|
+
"update:modelValue": (value: CollapseActiveKey[]) => any;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<CollapseProps> & Readonly<{
|
|
16
|
+
onChange?: ((value: CollapseActiveKey[]) => any) | undefined;
|
|
17
|
+
"onUpdate:modelValue"?: ((value: CollapseActiveKey[]) => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
modelValue: CollapseActiveKey[];
|
|
20
|
+
variant: import('./types').CollapseVariant;
|
|
21
|
+
defaultActiveKeys: CollapseActiveKey[];
|
|
22
|
+
accordion: boolean;
|
|
23
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
24
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CollapseItemProps } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
title?(_: {}): any;
|
|
6
|
+
icon?(_: {}): any;
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {};
|
|
10
|
+
rootEl: HTMLDivElement;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<CollapseItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CollapseItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
import { default as Collapse } from './Collapse.vue';
|
|
3
|
+
import { default as CollapseItem } from './CollapseItem.vue';
|
|
4
|
+
export declare const LCollapse: typeof Collapse & Plugin;
|
|
5
|
+
export declare const LCollapseItem: typeof CollapseItem & Plugin;
|
|
6
|
+
declare const CollapsePlugin: Plugin;
|
|
7
|
+
export { CollapsePlugin as default };
|
|
8
|
+
export * from './types';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
require('../style/collapse.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 u=require("../chunks/index-DWAWrVaT.js"),g=require("../chunks/use-signals-Bz1smiXh.js"),f=require("../icon/index.js");function C(l={}){const n=u.signal(l.activeKeys??l.defaultActiveKeys??[]),a=u.signal(l.accordion??!1),c=t=>{var d;const o=n.value;let s;a.value?s=o.includes(t)?[]:[t]:o.includes(t)?s=o.filter(p=>p!==t):s=[...o,t],n.value=s,(d=l.onChange)==null||d.call(l,s)};return{state:{get activeKeys(){return n.value},set activeKeys(t){n.value=t},get accordion(){return a.value},set accordion(t){a.value=t}},toggle:c,isActive:t=>n.value.includes(t),getTriggerProps:(t,o)=>({role:"button","aria-expanded":n.value.includes(t),"aria-disabled":o||!1,tabindex:o?-1:0,onKeyDown:s=>{o||(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),c(t))},onClick:()=>{o||c(t)}})}}const r=Symbol("COLLAPSE_CONTEXT_KEY"),_=e.defineComponent({name:"Collapse",__name:"Collapse",props:{modelValue:{default:()=>[]},defaultActiveKeys:{default:()=>[]},accordion:{type:Boolean,default:!1},variant:{default:"line"}},emits:["update:modelValue","change"],setup(l,{emit:n}){const a=l,c=n,i=C({accordion:a.accordion,activeKeys:a.modelValue,defaultActiveKeys:a.defaultActiveKeys,onChange:o=>{c("update:modelValue",o),c("change",o)}}),{activeKeys:t}=g.useController(i,{activeKeys:()=>a.modelValue});return e.provide(r,{activeKeys:t,toggle:i.toggle,accordion:e.toRef(a,"accordion"),getTriggerProps:i.getTriggerProps,variant:e.toRef(a,"variant")}),(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["l-collapse",`l-collapse--${l.variant}`])},[e.renderSlot(o.$slots,"default")],2))}}),h=["id","aria-controls"],E={class:"l-collapse-item__header-left"},K={class:"l-collapse-item__title"},y={class:"l-collapse-item__header-right"},L=["id","aria-labelledby"],V={class:"l-collapse-item__content-container"},b={class:"l-collapse-item__content"},S=e.defineComponent({name:"CollapseItem",__name:"CollapseItem",props:{name:{},title:{},disabled:{type:Boolean}},setup(l){const n=l,a=e.inject(r);if(!a)throw new Error("[Routa] LCollapseItem must be used within LCollapse");const c=e.computed(()=>a.activeKeys.value.includes(n.name));return(i,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["l-collapse-item",{"is-active":c.value,"is-disabled":l.disabled}])},[e.createElementVNode("div",e.mergeProps({id:`l-collapse-title-${l.name}`,class:"l-collapse-item__header"},e.unref(a).getTriggerProps(l.name,l.disabled),{"aria-controls":`l-collapse-content-${l.name}`}),[e.createElementVNode("div",E,[e.renderSlot(i.$slots,"title",{},()=>[e.createElementVNode("span",K,e.toDisplayString(l.title),1)])]),e.createElementVNode("div",y,[e.renderSlot(i.$slots,"icon",{},()=>[e.createVNode(e.unref(f.LIcon),{name:"lucide:chevron-right",class:"l-collapse-item__arrow"})])])],16,h),e.createElementVNode("div",{id:`l-collapse-content-${l.name}`,class:"l-collapse-item__wrapper",role:"region","aria-labelledby":`l-collapse-title-${l.name}`},[e.createElementVNode("div",V,[e.createElementVNode("div",b,[e.renderSlot(i.$slots,"default")])])],8,L)],2))}}),m=_,v=S,N={install(l){l.component("LCollapse",m),l.component("LCollapseItem",v)}};exports.COLLAPSE_CONTEXT_KEY=r;exports.LCollapse=m;exports.LCollapseItem=v;exports.default=N;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import '../style/collapse.css';
|
|
2
|
+
import '../style/Icon.css';
|
|
3
|
+
import { defineComponent as p, provide as K, toRef as u, openBlock as f, createElementBlock as g, normalizeClass as _, renderSlot as r, inject as y, computed as L, createElementVNode as i, mergeProps as b, unref as m, toDisplayString as E, createVNode as $ } from "vue";
|
|
4
|
+
import "../chunks/manager-BUdQK4AD.mjs";
|
|
5
|
+
import { s as v } from "../chunks/index-B0yEC3RG.mjs";
|
|
6
|
+
import { u as A } from "../chunks/use-signals-CE1T2jXK.mjs";
|
|
7
|
+
import { LIcon as P } from "../icon/index.mjs";
|
|
8
|
+
function T(e = {}) {
|
|
9
|
+
const o = v(
|
|
10
|
+
e.activeKeys ?? e.defaultActiveKeys ?? []
|
|
11
|
+
), t = v(e.accordion ?? !1), c = (l) => {
|
|
12
|
+
var d;
|
|
13
|
+
const a = o.value;
|
|
14
|
+
let s;
|
|
15
|
+
t.value ? s = a.includes(l) ? [] : [l] : a.includes(l) ? s = a.filter((h) => h !== l) : s = [...a, l], o.value = s, (d = e.onChange) == null || d.call(e, s);
|
|
16
|
+
};
|
|
17
|
+
return {
|
|
18
|
+
state: {
|
|
19
|
+
get activeKeys() {
|
|
20
|
+
return o.value;
|
|
21
|
+
},
|
|
22
|
+
set activeKeys(l) {
|
|
23
|
+
o.value = l;
|
|
24
|
+
},
|
|
25
|
+
get accordion() {
|
|
26
|
+
return t.value;
|
|
27
|
+
},
|
|
28
|
+
set accordion(l) {
|
|
29
|
+
t.value = l;
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
toggle: c,
|
|
33
|
+
isActive: (l) => o.value.includes(l),
|
|
34
|
+
getTriggerProps: (l, a) => ({
|
|
35
|
+
role: "button",
|
|
36
|
+
"aria-expanded": o.value.includes(l),
|
|
37
|
+
"aria-disabled": a || !1,
|
|
38
|
+
tabindex: a ? -1 : 0,
|
|
39
|
+
onKeyDown: (s) => {
|
|
40
|
+
a || (s.key === "Enter" || s.key === " ") && (s.preventDefault(), c(l));
|
|
41
|
+
},
|
|
42
|
+
onClick: () => {
|
|
43
|
+
a || c(l);
|
|
44
|
+
}
|
|
45
|
+
})
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
const C = Symbol("COLLAPSE_CONTEXT_KEY"), V = /* @__PURE__ */ p({
|
|
49
|
+
name: "Collapse",
|
|
50
|
+
__name: "Collapse",
|
|
51
|
+
props: {
|
|
52
|
+
modelValue: { default: () => [] },
|
|
53
|
+
defaultActiveKeys: { default: () => [] },
|
|
54
|
+
accordion: { type: Boolean, default: !1 },
|
|
55
|
+
variant: { default: "line" }
|
|
56
|
+
},
|
|
57
|
+
emits: ["update:modelValue", "change"],
|
|
58
|
+
setup(e, { emit: o }) {
|
|
59
|
+
const t = e, c = o, n = T({
|
|
60
|
+
accordion: t.accordion,
|
|
61
|
+
activeKeys: t.modelValue,
|
|
62
|
+
defaultActiveKeys: t.defaultActiveKeys,
|
|
63
|
+
onChange: (a) => {
|
|
64
|
+
c("update:modelValue", a), c("change", a);
|
|
65
|
+
}
|
|
66
|
+
}), { activeKeys: l } = A(n, {
|
|
67
|
+
activeKeys: () => t.modelValue
|
|
68
|
+
});
|
|
69
|
+
return K(C, {
|
|
70
|
+
activeKeys: l,
|
|
71
|
+
toggle: n.toggle,
|
|
72
|
+
accordion: u(t, "accordion"),
|
|
73
|
+
getTriggerProps: n.getTriggerProps,
|
|
74
|
+
variant: u(t, "variant")
|
|
75
|
+
}), (a, s) => (f(), g("div", {
|
|
76
|
+
class: _(["l-collapse", `l-collapse--${e.variant}`])
|
|
77
|
+
}, [
|
|
78
|
+
r(a.$slots, "default")
|
|
79
|
+
], 2));
|
|
80
|
+
}
|
|
81
|
+
}), w = ["id", "aria-controls"], I = { class: "l-collapse-item__header-left" }, S = { class: "l-collapse-item__title" }, B = { class: "l-collapse-item__header-right" }, N = ["id", "aria-labelledby"], O = { class: "l-collapse-item__content-container" }, x = { class: "l-collapse-item__content" }, D = /* @__PURE__ */ p({
|
|
82
|
+
name: "CollapseItem",
|
|
83
|
+
__name: "CollapseItem",
|
|
84
|
+
props: {
|
|
85
|
+
name: {},
|
|
86
|
+
title: {},
|
|
87
|
+
disabled: { type: Boolean }
|
|
88
|
+
},
|
|
89
|
+
setup(e) {
|
|
90
|
+
const o = e, t = y(C);
|
|
91
|
+
if (!t)
|
|
92
|
+
throw new Error("[Routa] LCollapseItem must be used within LCollapse");
|
|
93
|
+
const c = L(() => t.activeKeys.value.includes(o.name));
|
|
94
|
+
return (n, l) => (f(), g("div", {
|
|
95
|
+
class: _(["l-collapse-item", {
|
|
96
|
+
"is-active": c.value,
|
|
97
|
+
"is-disabled": e.disabled
|
|
98
|
+
}])
|
|
99
|
+
}, [
|
|
100
|
+
i("div", b({
|
|
101
|
+
id: `l-collapse-title-${e.name}`,
|
|
102
|
+
class: "l-collapse-item__header"
|
|
103
|
+
}, m(t).getTriggerProps(e.name, e.disabled), {
|
|
104
|
+
"aria-controls": `l-collapse-content-${e.name}`
|
|
105
|
+
}), [
|
|
106
|
+
i("div", I, [
|
|
107
|
+
r(n.$slots, "title", {}, () => [
|
|
108
|
+
i("span", S, E(e.title), 1)
|
|
109
|
+
])
|
|
110
|
+
]),
|
|
111
|
+
i("div", B, [
|
|
112
|
+
r(n.$slots, "icon", {}, () => [
|
|
113
|
+
$(m(P), {
|
|
114
|
+
name: "lucide:chevron-right",
|
|
115
|
+
class: "l-collapse-item__arrow"
|
|
116
|
+
})
|
|
117
|
+
])
|
|
118
|
+
])
|
|
119
|
+
], 16, w),
|
|
120
|
+
i("div", {
|
|
121
|
+
id: `l-collapse-content-${e.name}`,
|
|
122
|
+
class: "l-collapse-item__wrapper",
|
|
123
|
+
role: "region",
|
|
124
|
+
"aria-labelledby": `l-collapse-title-${e.name}`
|
|
125
|
+
}, [
|
|
126
|
+
i("div", O, [
|
|
127
|
+
i("div", x, [
|
|
128
|
+
r(n.$slots, "default")
|
|
129
|
+
])
|
|
130
|
+
])
|
|
131
|
+
], 8, N)
|
|
132
|
+
], 2));
|
|
133
|
+
}
|
|
134
|
+
}), R = V, X = D, G = {
|
|
135
|
+
install(e) {
|
|
136
|
+
e.component("LCollapse", R), e.component("LCollapseItem", X);
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
export {
|
|
140
|
+
C as COLLAPSE_CONTEXT_KEY,
|
|
141
|
+
R as LCollapse,
|
|
142
|
+
X as LCollapseItem,
|
|
143
|
+
G as default
|
|
144
|
+
};
|