@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,136 @@
|
|
|
1
|
+
var r = Object.defineProperty;
|
|
2
|
+
var u = (s, e, n) => e in s ? r(s, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : s[e] = n;
|
|
3
|
+
var i = (s, e, n) => u(s, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
let t = null;
|
|
5
|
+
function o(s) {
|
|
6
|
+
const e = t;
|
|
7
|
+
t = null;
|
|
8
|
+
try {
|
|
9
|
+
return s();
|
|
10
|
+
} finally {
|
|
11
|
+
t = e;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
class c {
|
|
15
|
+
// Signals are always at depth 0
|
|
16
|
+
constructor(e) {
|
|
17
|
+
i(this, "subscribers", /* @__PURE__ */ new Set());
|
|
18
|
+
i(this, "_value");
|
|
19
|
+
i(this, "version", 0);
|
|
20
|
+
i(this, "depth", 0);
|
|
21
|
+
this._value = e;
|
|
22
|
+
}
|
|
23
|
+
get value() {
|
|
24
|
+
return t && (t.dependencies.has(this) || (t.dependencies.add(this), this.subscribers.add(t), this.depth >= t.depth && (t.depth = this.depth + 1))), this._value;
|
|
25
|
+
}
|
|
26
|
+
set value(e) {
|
|
27
|
+
if (!Object.is(this._value, e)) {
|
|
28
|
+
this._value = e, this.version++;
|
|
29
|
+
for (const n of Array.from(this.subscribers))
|
|
30
|
+
n.notify();
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
unsubscribe(e) {
|
|
34
|
+
this.subscribers.delete(e);
|
|
35
|
+
}
|
|
36
|
+
peek() {
|
|
37
|
+
return this._value;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
function f(s) {
|
|
41
|
+
return new c(s);
|
|
42
|
+
}
|
|
43
|
+
class h {
|
|
44
|
+
constructor(e) {
|
|
45
|
+
i(this, "dependencies", /* @__PURE__ */ new Set());
|
|
46
|
+
i(this, "depth", 0);
|
|
47
|
+
i(this, "active", !0);
|
|
48
|
+
i(this, "running", !1);
|
|
49
|
+
this.fn = e, this.run();
|
|
50
|
+
}
|
|
51
|
+
cleanup() {
|
|
52
|
+
for (const e of this.dependencies)
|
|
53
|
+
e.unsubscribe(this);
|
|
54
|
+
this.dependencies.clear();
|
|
55
|
+
}
|
|
56
|
+
run() {
|
|
57
|
+
if (!this.active) return;
|
|
58
|
+
if (this.running)
|
|
59
|
+
throw new Error("[Routa Engine] Circular dependency detected in effect.");
|
|
60
|
+
this.cleanup();
|
|
61
|
+
const e = t;
|
|
62
|
+
t = this, this.running = !0;
|
|
63
|
+
try {
|
|
64
|
+
this.fn();
|
|
65
|
+
} finally {
|
|
66
|
+
this.running = !1, t = e;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
notify() {
|
|
70
|
+
this.run();
|
|
71
|
+
}
|
|
72
|
+
dispose() {
|
|
73
|
+
this.active = !1, this.cleanup();
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
function l(s) {
|
|
77
|
+
const e = new h(s);
|
|
78
|
+
return () => e.dispose();
|
|
79
|
+
}
|
|
80
|
+
class d {
|
|
81
|
+
constructor(e) {
|
|
82
|
+
i(this, "subscribers", /* @__PURE__ */ new Set());
|
|
83
|
+
i(this, "dependencies", /* @__PURE__ */ new Set());
|
|
84
|
+
i(this, "_value");
|
|
85
|
+
i(this, "dirty", !0);
|
|
86
|
+
i(this, "running", !1);
|
|
87
|
+
i(this, "version", 0);
|
|
88
|
+
i(this, "depth", 0);
|
|
89
|
+
this.getter = e;
|
|
90
|
+
}
|
|
91
|
+
cleanup() {
|
|
92
|
+
for (const e of this.dependencies)
|
|
93
|
+
e.unsubscribe(this);
|
|
94
|
+
this.dependencies.clear();
|
|
95
|
+
}
|
|
96
|
+
get value() {
|
|
97
|
+
if (this.dirty && this.compute(), t) {
|
|
98
|
+
t.dependencies.has(this) || (t.dependencies.add(this), this.subscribers.add(t));
|
|
99
|
+
const e = this.depth + 1;
|
|
100
|
+
t.depth < e && (t.depth = e);
|
|
101
|
+
}
|
|
102
|
+
return this._value;
|
|
103
|
+
}
|
|
104
|
+
compute() {
|
|
105
|
+
if (this.running)
|
|
106
|
+
throw new Error("[Routa Engine] Circular dependency detected in computed.");
|
|
107
|
+
this.cleanup();
|
|
108
|
+
const e = t;
|
|
109
|
+
t = this, this.running = !0;
|
|
110
|
+
try {
|
|
111
|
+
const n = this.getter();
|
|
112
|
+
Object.is(this._value, n) || (this._value = n, this.version++), this.dirty = !1;
|
|
113
|
+
} finally {
|
|
114
|
+
this.running = !1, t = e;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
notify() {
|
|
118
|
+
if (!this.dirty) {
|
|
119
|
+
this.dirty = !0;
|
|
120
|
+
for (const e of Array.from(this.subscribers))
|
|
121
|
+
e.notify();
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
unsubscribe(e) {
|
|
125
|
+
this.subscribers.delete(e), this.subscribers.size === 0 && (this.dirty = !0, this.cleanup());
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
function p(s) {
|
|
129
|
+
return new d(s);
|
|
130
|
+
}
|
|
131
|
+
export {
|
|
132
|
+
p as c,
|
|
133
|
+
l as e,
|
|
134
|
+
f as s,
|
|
135
|
+
o as u
|
|
136
|
+
};
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { s as o, e as p } from "./index-B0yEC3RG.mjs";
|
|
2
|
+
import { c as y } from "./controller-DZp6lWY1.mjs";
|
|
3
|
+
function g(e) {
|
|
4
|
+
return e.map((a, l) => ({ item: a, index: l })).filter((a) => !a.item.disabled).map((a) => a.index);
|
|
5
|
+
}
|
|
6
|
+
function w(e = {}) {
|
|
7
|
+
const a = o(typeof e.disabled == "function" ? e.disabled() : e.disabled ?? !1), l = o(-1), r = y({
|
|
8
|
+
kind: "menu",
|
|
9
|
+
reference: e.reference,
|
|
10
|
+
placement: e.placement ?? "bottom-start",
|
|
11
|
+
offset: e.offset,
|
|
12
|
+
flip: e.flip,
|
|
13
|
+
shift: e.shift,
|
|
14
|
+
onOpenChange: (t) => {
|
|
15
|
+
var n;
|
|
16
|
+
t ? l.value = m() : l.value = -1, (n = e.onOpenChange) == null || n.call(e, t);
|
|
17
|
+
}
|
|
18
|
+
}), s = () => {
|
|
19
|
+
var t;
|
|
20
|
+
return ((t = e.getItems) == null ? void 0 : t.call(e)) ?? [];
|
|
21
|
+
}, m = () => g(s())[0] ?? -1, c = () => r.state.isOpen;
|
|
22
|
+
typeof e.disabled == "function" && p(() => {
|
|
23
|
+
a.value = e.disabled();
|
|
24
|
+
});
|
|
25
|
+
const i = () => {
|
|
26
|
+
a.value || r.actions.open();
|
|
27
|
+
}, d = () => {
|
|
28
|
+
r.actions.close();
|
|
29
|
+
}, h = () => {
|
|
30
|
+
if (c()) {
|
|
31
|
+
d();
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
i();
|
|
35
|
+
}, b = (t) => {
|
|
36
|
+
if (a.value) return;
|
|
37
|
+
const n = g(s());
|
|
38
|
+
if (n.length === 0) {
|
|
39
|
+
l.value = -1;
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
const f = n.indexOf(l.value);
|
|
43
|
+
if (f === -1) {
|
|
44
|
+
l.value = t === "next" ? n[0] : n[n.length - 1];
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
const v = (f + (t === "next" ? 1 : -1) + n.length) % n.length;
|
|
48
|
+
l.value = n[v];
|
|
49
|
+
}, u = (t) => {
|
|
50
|
+
var n;
|
|
51
|
+
a.value || ((n = e.onCommand) == null || n.call(e, t), (e.closeOnSelect ?? !0) && d());
|
|
52
|
+
};
|
|
53
|
+
return {
|
|
54
|
+
state: {
|
|
55
|
+
get isOpen() {
|
|
56
|
+
return c();
|
|
57
|
+
},
|
|
58
|
+
set isOpen(t) {
|
|
59
|
+
if (t) {
|
|
60
|
+
i();
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
d();
|
|
64
|
+
},
|
|
65
|
+
get highlightedIndex() {
|
|
66
|
+
return l.value;
|
|
67
|
+
},
|
|
68
|
+
set highlightedIndex(t) {
|
|
69
|
+
l.value = t;
|
|
70
|
+
},
|
|
71
|
+
get disabled() {
|
|
72
|
+
return a.value;
|
|
73
|
+
},
|
|
74
|
+
set disabled(t) {
|
|
75
|
+
a.value = t;
|
|
76
|
+
},
|
|
77
|
+
get trigger() {
|
|
78
|
+
return e.trigger ?? "click";
|
|
79
|
+
},
|
|
80
|
+
get closeOnSelect() {
|
|
81
|
+
return e.closeOnSelect ?? !0;
|
|
82
|
+
},
|
|
83
|
+
get x() {
|
|
84
|
+
return r.state.x;
|
|
85
|
+
},
|
|
86
|
+
get y() {
|
|
87
|
+
return r.state.y;
|
|
88
|
+
},
|
|
89
|
+
get placement() {
|
|
90
|
+
return r.state.placement;
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
actions: {
|
|
94
|
+
open: i,
|
|
95
|
+
close: d,
|
|
96
|
+
toggle: h,
|
|
97
|
+
moveHighlight: b,
|
|
98
|
+
select: u,
|
|
99
|
+
selectHighlighted: () => {
|
|
100
|
+
const t = s()[l.value];
|
|
101
|
+
!t || t.disabled || u(t.command);
|
|
102
|
+
},
|
|
103
|
+
setReference: r.actions.setReference,
|
|
104
|
+
updatePosition: r.actions.updatePosition,
|
|
105
|
+
handleInteractOutside: r.actions.handleInteractOutside
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
const P = {
|
|
110
|
+
trigger: {
|
|
111
|
+
type: String,
|
|
112
|
+
default: "click"
|
|
113
|
+
},
|
|
114
|
+
placement: {
|
|
115
|
+
type: String,
|
|
116
|
+
default: "bottom-start"
|
|
117
|
+
},
|
|
118
|
+
disabled: {
|
|
119
|
+
type: Boolean,
|
|
120
|
+
default: !1
|
|
121
|
+
},
|
|
122
|
+
hideOnClick: {
|
|
123
|
+
type: Boolean,
|
|
124
|
+
default: !0
|
|
125
|
+
},
|
|
126
|
+
width: {
|
|
127
|
+
type: [String, Number],
|
|
128
|
+
default: void 0
|
|
129
|
+
},
|
|
130
|
+
size: {
|
|
131
|
+
type: String,
|
|
132
|
+
default: "md"
|
|
133
|
+
},
|
|
134
|
+
offset: {
|
|
135
|
+
type: Number,
|
|
136
|
+
default: 8
|
|
137
|
+
},
|
|
138
|
+
items: {
|
|
139
|
+
type: Array,
|
|
140
|
+
default: () => []
|
|
141
|
+
},
|
|
142
|
+
renderItem: Function
|
|
143
|
+
}, C = {
|
|
144
|
+
command: (e) => !0,
|
|
145
|
+
"visible-change": (e) => !0
|
|
146
|
+
}, D = {
|
|
147
|
+
command: {
|
|
148
|
+
type: [String, Number, Symbol],
|
|
149
|
+
default: void 0
|
|
150
|
+
},
|
|
151
|
+
disabled: {
|
|
152
|
+
type: Boolean,
|
|
153
|
+
default: !1
|
|
154
|
+
},
|
|
155
|
+
danger: {
|
|
156
|
+
type: Boolean,
|
|
157
|
+
default: !1
|
|
158
|
+
},
|
|
159
|
+
divided: {
|
|
160
|
+
type: Boolean,
|
|
161
|
+
default: !1
|
|
162
|
+
}
|
|
163
|
+
}, B = Symbol("DropdownKey");
|
|
164
|
+
export {
|
|
165
|
+
B as D,
|
|
166
|
+
D as a,
|
|
167
|
+
P as b,
|
|
168
|
+
w as c,
|
|
169
|
+
C as d
|
|
170
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var r=Object.defineProperty;var u=(s,e,n)=>e in s?r(s,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):s[e]=n;var i=(s,e,n)=>u(s,typeof e!="symbol"?e+"":e,n);let t=null;function c(s){const e=t;t=null;try{return s()}finally{t=e}}class h{constructor(e){i(this,"subscribers",new Set);i(this,"_value");i(this,"version",0);i(this,"depth",0);this._value=e}get value(){return t&&(t.dependencies.has(this)||(t.dependencies.add(this),this.subscribers.add(t),this.depth>=t.depth&&(t.depth=this.depth+1))),this._value}set value(e){if(!Object.is(this._value,e)){this._value=e,this.version++;for(const n of Array.from(this.subscribers))n.notify()}}unsubscribe(e){this.subscribers.delete(e)}peek(){return this._value}}function d(s){return new h(s)}class a{constructor(e){i(this,"dependencies",new Set);i(this,"depth",0);i(this,"active",!0);i(this,"running",!1);this.fn=e,this.run()}cleanup(){for(const e of this.dependencies)e.unsubscribe(this);this.dependencies.clear()}run(){if(!this.active)return;if(this.running)throw new Error("[Routa Engine] Circular dependency detected in effect.");this.cleanup();const e=t;t=this,this.running=!0;try{this.fn()}finally{this.running=!1,t=e}}notify(){this.run()}dispose(){this.active=!1,this.cleanup()}}function f(s){const e=new a(s);return()=>e.dispose()}class o{constructor(e){i(this,"subscribers",new Set);i(this,"dependencies",new Set);i(this,"_value");i(this,"dirty",!0);i(this,"running",!1);i(this,"version",0);i(this,"depth",0);this.getter=e}cleanup(){for(const e of this.dependencies)e.unsubscribe(this);this.dependencies.clear()}get value(){if(this.dirty&&this.compute(),t){t.dependencies.has(this)||(t.dependencies.add(this),this.subscribers.add(t));const e=this.depth+1;t.depth<e&&(t.depth=e)}return this._value}compute(){if(this.running)throw new Error("[Routa Engine] Circular dependency detected in computed.");this.cleanup();const e=t;t=this,this.running=!0;try{const n=this.getter();Object.is(this._value,n)||(this._value=n,this.version++),this.dirty=!1}finally{this.running=!1,t=e}}notify(){if(!this.dirty){this.dirty=!0;for(const e of Array.from(this.subscribers))e.notify()}}unsubscribe(e){this.subscribers.delete(e),this.subscribers.size===0&&(this.dirty=!0,this.cleanup())}}function l(s){return new o(s)}exports.computed=l;exports.effect=f;exports.signal=d;exports.untracked=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=require("./index-DWAWrVaT.js"),v=require("./controller-37WpkEdZ.js");function g(e){return e.map((l,r)=>({item:l,index:r})).filter(l=>!l.item.disabled).map(l=>l.index)}function y(e={}){const l=c.signal(typeof e.disabled=="function"?e.disabled():e.disabled??!1),r=c.signal(-1),a=v.createPopoverController({kind:"menu",reference:e.reference,placement:e.placement??"bottom-start",offset:e.offset,flip:e.flip,shift:e.shift,onOpenChange:t=>{var n;t?r.value=m():r.value=-1,(n=e.onOpenChange)==null||n.call(e,t)}}),i=()=>{var t;return((t=e.getItems)==null?void 0:t.call(e))??[]},m=()=>g(i())[0]??-1,u=()=>a.state.isOpen;typeof e.disabled=="function"&&c.effect(()=>{l.value=e.disabled()});const s=()=>{l.value||a.actions.open()},d=()=>{a.actions.close()},h=()=>{if(u()){d();return}s()},p=t=>{if(l.value)return;const n=g(i());if(n.length===0){r.value=-1;return}const f=n.indexOf(r.value);if(f===-1){r.value=t==="next"?n[0]:n[n.length-1];return}const b=(f+(t==="next"?1:-1)+n.length)%n.length;r.value=n[b]},o=t=>{var n;l.value||((n=e.onCommand)==null||n.call(e,t),(e.closeOnSelect??!0)&&d())};return{state:{get isOpen(){return u()},set isOpen(t){if(t){s();return}d()},get highlightedIndex(){return r.value},set highlightedIndex(t){r.value=t},get disabled(){return l.value},set disabled(t){l.value=t},get trigger(){return e.trigger??"click"},get closeOnSelect(){return e.closeOnSelect??!0},get x(){return a.state.x},get y(){return a.state.y},get placement(){return a.state.placement}},actions:{open:s,close:d,toggle:h,moveHighlight:p,select:o,selectHighlighted:()=>{const t=i()[r.value];!t||t.disabled||o(t.command)},setReference:a.actions.setReference,updatePosition:a.actions.updatePosition,handleInteractOutside:a.actions.handleInteractOutside}}}const O={trigger:{type:String,default:"click"},placement:{type:String,default:"bottom-start"},disabled:{type:Boolean,default:!1},hideOnClick:{type:Boolean,default:!0},width:{type:[String,Number],default:void 0},size:{type:String,default:"md"},offset:{type:Number,default:8},items:{type:Array,default:()=>[]},renderItem:Function},w={command:e=>!0,"visible-change":e=>!0},x={command:{type:[String,Number,Symbol],default:void 0},disabled:{type:Boolean,default:!1},danger:{type:Boolean,default:!1},divided:{type:Boolean,default:!1}},I=Symbol("DropdownKey");exports.DropdownKey=I;exports.createDropdownController=y;exports.dropdownEmits=w;exports.dropdownItemProps=x;exports.dropdownProps=O;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const l=t=>{const n=t;return n.install=a=>{const s=t.name||t.__name;s&&a.component(s,n)},n};exports.withInstall=l;
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
var p = Object.defineProperty;
|
|
2
|
+
var m = (n, e, t) => e in n ? p(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var l = (n, e, t) => m(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
const w = `(function(){"use strict";const t=new Map;self.onmessage=async o=>{const{type:n,url:c,id:e}=o.data;if(n==="CANCEL"){const s=t.get(e);s&&(s.abort(),t.delete(e));return}try{const s=new AbortController;t.set(e,s);const r=await(await fetch(c,{signal:s.signal})).blob();if(t.delete(e),r.size<100*1024){self.postMessage({id:e,blob:r,status:"success"});return}const a=await createImageBitmap(r);self.postMessage({id:e,imageBitmap:a,status:"success"},[a])}catch(s){if(t.delete(e),s.name==="AbortError")return;self.postMessage({id:e,error:s.message,status:"error"})}}})();
|
|
5
|
+
`, g = typeof self < "u" && self.Blob && new Blob([w], { type: "text/javascript;charset=utf-8" });
|
|
6
|
+
function y(n) {
|
|
7
|
+
let e;
|
|
8
|
+
try {
|
|
9
|
+
if (e = g && (self.URL || self.webkitURL).createObjectURL(g), !e) throw "";
|
|
10
|
+
const t = new Worker(e, {
|
|
11
|
+
name: n == null ? void 0 : n.name
|
|
12
|
+
});
|
|
13
|
+
return t.addEventListener("error", () => {
|
|
14
|
+
(self.URL || self.webkitURL).revokeObjectURL(e);
|
|
15
|
+
}), t;
|
|
16
|
+
} catch {
|
|
17
|
+
return new Worker(
|
|
18
|
+
"data:text/javascript;charset=utf-8," + encodeURIComponent(w),
|
|
19
|
+
{
|
|
20
|
+
name: n == null ? void 0 : n.name
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
} finally {
|
|
24
|
+
e && (self.URL || self.webkitURL).revokeObjectURL(e);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
const u = class u {
|
|
28
|
+
constructor() {
|
|
29
|
+
l(this, "queue", []);
|
|
30
|
+
l(this, "activeCount", 0);
|
|
31
|
+
l(this, "maxConcurrent", 6);
|
|
32
|
+
l(this, "workers", []);
|
|
33
|
+
l(this, "workerIdCounter", 0);
|
|
34
|
+
this.initWorkers();
|
|
35
|
+
}
|
|
36
|
+
static getInstance() {
|
|
37
|
+
return u.instance || (u.instance = new u()), u.instance;
|
|
38
|
+
}
|
|
39
|
+
initWorkers() {
|
|
40
|
+
if (typeof Worker < "u") {
|
|
41
|
+
const e = Math.min(navigator.hardwareConcurrency || 2, 4);
|
|
42
|
+
for (let t = 0; t < e; t++)
|
|
43
|
+
try {
|
|
44
|
+
const o = new y();
|
|
45
|
+
this.workers.push(o);
|
|
46
|
+
} catch (o) {
|
|
47
|
+
console.warn("[ImageManager] Failed to spawn worker:", o);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
load(e, t = {}) {
|
|
52
|
+
return new Promise((o, i) => {
|
|
53
|
+
var r, c;
|
|
54
|
+
const s = {
|
|
55
|
+
id: `task-${Date.now()}-${this.workerIdCounter++}`,
|
|
56
|
+
url: e,
|
|
57
|
+
priority: t.priority || "normal",
|
|
58
|
+
fetchpriority: t.fetchpriority || "auto",
|
|
59
|
+
resolve: o,
|
|
60
|
+
reject: i,
|
|
61
|
+
abortSignal: t.abortSignal
|
|
62
|
+
};
|
|
63
|
+
if ((r = s.abortSignal) != null && r.aborted)
|
|
64
|
+
return i(new DOMException("Aborted", "AbortError"));
|
|
65
|
+
const a = () => {
|
|
66
|
+
var f;
|
|
67
|
+
const d = this.queue.indexOf(s);
|
|
68
|
+
d > -1 && this.queue.splice(d, 1), (f = s.abortSignal) == null || f.removeEventListener("abort", a), i(new DOMException("Aborted", "AbortError"));
|
|
69
|
+
};
|
|
70
|
+
(c = s.abortSignal) == null || c.addEventListener("abort", a, { once: !0 }), this.queue.push(s), this.sortQueue(), this.next();
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
sortQueue() {
|
|
74
|
+
const e = { high: 0, normal: 1, low: 2 };
|
|
75
|
+
this.queue.sort((t, o) => e[t.priority] - e[o.priority]);
|
|
76
|
+
}
|
|
77
|
+
next() {
|
|
78
|
+
var i;
|
|
79
|
+
if (this.activeCount >= this.maxConcurrent || this.queue.length === 0)
|
|
80
|
+
return;
|
|
81
|
+
const e = this.queue.shift();
|
|
82
|
+
if ((i = e.abortSignal) != null && i.aborted) {
|
|
83
|
+
this.next();
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
this.activeCount++;
|
|
87
|
+
const t = this.getAvailableWorker();
|
|
88
|
+
(t ? this.processTaskWithWorker(t, e) : this.processTaskMainThread(e)).finally(() => {
|
|
89
|
+
this.activeCount--, this.next();
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
getAvailableWorker() {
|
|
93
|
+
return this.workers.length === 0 ? null : this.workers[this.workerIdCounter % this.workers.length];
|
|
94
|
+
}
|
|
95
|
+
processTaskWithWorker(e, t) {
|
|
96
|
+
return new Promise((o) => {
|
|
97
|
+
var a;
|
|
98
|
+
const i = (r) => {
|
|
99
|
+
if (r.data.id === t.id) {
|
|
100
|
+
if (s(), r.data.status === "success") {
|
|
101
|
+
if (r.data.imageBitmap)
|
|
102
|
+
t.resolve(r.data.imageBitmap);
|
|
103
|
+
else if (r.data.blob) {
|
|
104
|
+
const c = URL.createObjectURL(r.data.blob);
|
|
105
|
+
t.resolve(c);
|
|
106
|
+
}
|
|
107
|
+
} else
|
|
108
|
+
t.reject(new Error(r.data.error));
|
|
109
|
+
o();
|
|
110
|
+
}
|
|
111
|
+
}, b = () => {
|
|
112
|
+
s(), e.postMessage({ type: "CANCEL", id: t.id }), t.reject(new DOMException("Aborted", "AbortError")), o();
|
|
113
|
+
}, s = () => {
|
|
114
|
+
var r;
|
|
115
|
+
e.removeEventListener("message", i), (r = t.abortSignal) == null || r.removeEventListener("abort", b);
|
|
116
|
+
};
|
|
117
|
+
e.addEventListener("message", i), (a = t.abortSignal) == null || a.addEventListener("abort", b, { once: !0 }), e.postMessage({
|
|
118
|
+
id: t.id,
|
|
119
|
+
url: t.url,
|
|
120
|
+
type: "LOAD"
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
async processTaskMainThread(e) {
|
|
125
|
+
var t, o, i, b, s, a;
|
|
126
|
+
if ((t = e.abortSignal) != null && t.aborted) {
|
|
127
|
+
e.reject(new DOMException("Aborted", "AbortError"));
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
try {
|
|
131
|
+
const r = new Image();
|
|
132
|
+
("fetchPriority" in r || r.fetchpriority !== void 0) && (r.fetchPriority = e.fetchpriority), r.src = e.url, r.decoding = "async";
|
|
133
|
+
const c = () => {
|
|
134
|
+
r.src = "", e.reject(new DOMException("Aborted", "AbortError"));
|
|
135
|
+
};
|
|
136
|
+
(o = e.abortSignal) == null || o.addEventListener("abort", c, { once: !0 });
|
|
137
|
+
try {
|
|
138
|
+
if (await r.decode(), (i = e.abortSignal) != null && i.aborted)
|
|
139
|
+
throw new DOMException("Aborted", "AbortError");
|
|
140
|
+
e.resolve(e.url);
|
|
141
|
+
} catch (d) {
|
|
142
|
+
(b = e.abortSignal) != null && b.aborted ? e.reject(new DOMException("Aborted", "AbortError")) : e.reject(d);
|
|
143
|
+
} finally {
|
|
144
|
+
(s = e.abortSignal) == null || s.removeEventListener("abort", c);
|
|
145
|
+
}
|
|
146
|
+
} catch (r) {
|
|
147
|
+
(a = e.abortSignal) != null && a.aborted || e.reject(r);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
l(u, "instance");
|
|
152
|
+
let h = u;
|
|
153
|
+
const E = h.getInstance();
|
|
154
|
+
export {
|
|
155
|
+
E as i
|
|
156
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import "./manager-BUdQK4AD.mjs";
|
|
2
|
+
import { u as h } from "./z-index-D9ecXoNe.mjs";
|
|
3
|
+
import { render as d, h as b, reactive as x, markRaw as f } from "vue";
|
|
4
|
+
const j = [
|
|
5
|
+
"top-left",
|
|
6
|
+
"top-center",
|
|
7
|
+
"top-right",
|
|
8
|
+
"bottom-left",
|
|
9
|
+
"bottom-center",
|
|
10
|
+
"bottom-right"
|
|
11
|
+
], v = (n, u, i) => {
|
|
12
|
+
let o = null;
|
|
13
|
+
return {
|
|
14
|
+
ensureMounted: () => {
|
|
15
|
+
o || (o = document.createElement("div"), o.className = i), o.isConnected || document.body.appendChild(o), d(b(n, u), o);
|
|
16
|
+
},
|
|
17
|
+
unmount: () => {
|
|
18
|
+
o && (d(null, o), o.remove());
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
}, w = (n) => ({
|
|
22
|
+
"top-left": n(),
|
|
23
|
+
"top-center": n(),
|
|
24
|
+
"top-right": n(),
|
|
25
|
+
"bottom-left": n(),
|
|
26
|
+
"bottom-center": n(),
|
|
27
|
+
"bottom-right": n()
|
|
28
|
+
}), M = (n) => n.startsWith("top");
|
|
29
|
+
let A = 0;
|
|
30
|
+
const R = (n) => Object.values(n.groups).some((u) => u.length > 0), z = (n, u) => {
|
|
31
|
+
const i = x({
|
|
32
|
+
groups: w(() => [])
|
|
33
|
+
}), o = v(n, { state: i }, u), { nextZIndex: c } = h(), l = (e) => {
|
|
34
|
+
e.timer !== null && (window.clearTimeout(e.timer), e.timer = null);
|
|
35
|
+
}, m = (e) => {
|
|
36
|
+
l(e);
|
|
37
|
+
const s = i.groups[e.placement], r = s.findIndex((t) => t.id === e.id);
|
|
38
|
+
r >= 0 && s.splice(r, 1), R(i) || o.unmount();
|
|
39
|
+
}, a = (e, s = e.remaining) => {
|
|
40
|
+
s <= 0 || e.options.duration <= 0 || (l(e), e.startedAt = Date.now(), e.timer = window.setTimeout(() => {
|
|
41
|
+
e.timer = null, m(e);
|
|
42
|
+
}, s));
|
|
43
|
+
};
|
|
44
|
+
return {
|
|
45
|
+
state: i,
|
|
46
|
+
open: (e, s) => {
|
|
47
|
+
o.ensureMounted();
|
|
48
|
+
const r = f(e), t = {
|
|
49
|
+
id: `${u}-${A += 1}`,
|
|
50
|
+
placement: r.placement,
|
|
51
|
+
zIndex: c(),
|
|
52
|
+
options: r,
|
|
53
|
+
visual: f(s),
|
|
54
|
+
remaining: r.duration,
|
|
55
|
+
startedAt: 0,
|
|
56
|
+
timer: null,
|
|
57
|
+
close: () => {
|
|
58
|
+
m(t);
|
|
59
|
+
},
|
|
60
|
+
pause: () => {
|
|
61
|
+
if (t.timer === null || t.options.duration <= 0)
|
|
62
|
+
return;
|
|
63
|
+
const g = Date.now() - t.startedAt;
|
|
64
|
+
t.remaining = Math.max(0, t.remaining - g), l(t);
|
|
65
|
+
},
|
|
66
|
+
resume: () => {
|
|
67
|
+
t.options.duration <= 0 || t.timer !== null || t.remaining <= 0 || a(t, t.remaining);
|
|
68
|
+
}
|
|
69
|
+
}, p = i.groups[r.placement];
|
|
70
|
+
return M(r.placement) ? p.unshift(t) : p.push(t), a(t), {
|
|
71
|
+
id: t.id,
|
|
72
|
+
close: t.close
|
|
73
|
+
};
|
|
74
|
+
},
|
|
75
|
+
closeAll: () => {
|
|
76
|
+
for (const e of Object.values(i.groups))
|
|
77
|
+
for (const s of [...e])
|
|
78
|
+
s.close();
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
export {
|
|
83
|
+
z as c,
|
|
84
|
+
j as f
|
|
85
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var p=Object.defineProperty;var m=(n,e,t)=>e in n?p(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var l=(n,e,t)=>m(n,typeof e!="symbol"?e+"":e,t);const w=`(function(){"use strict";const t=new Map;self.onmessage=async o=>{const{type:n,url:c,id:e}=o.data;if(n==="CANCEL"){const s=t.get(e);s&&(s.abort(),t.delete(e));return}try{const s=new AbortController;t.set(e,s);const r=await(await fetch(c,{signal:s.signal})).blob();if(t.delete(e),r.size<100*1024){self.postMessage({id:e,blob:r,status:"success"});return}const a=await createImageBitmap(r);self.postMessage({id:e,imageBitmap:a,status:"success"},[a])}catch(s){if(t.delete(e),s.name==="AbortError")return;self.postMessage({id:e,error:s.message,status:"error"})}}})();
|
|
2
|
+
`,g=typeof self<"u"&&self.Blob&&new Blob([w],{type:"text/javascript;charset=utf-8"});function y(n){let e;try{if(e=g&&(self.URL||self.webkitURL).createObjectURL(g),!e)throw"";const t=new Worker(e,{name:n==null?void 0:n.name});return t.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(e)}),t}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(w),{name:n==null?void 0:n.name})}finally{e&&(self.URL||self.webkitURL).revokeObjectURL(e)}}const u=class u{constructor(){l(this,"queue",[]);l(this,"activeCount",0);l(this,"maxConcurrent",6);l(this,"workers",[]);l(this,"workerIdCounter",0);this.initWorkers()}static getInstance(){return u.instance||(u.instance=new u),u.instance}initWorkers(){if(typeof Worker<"u"){const e=Math.min(navigator.hardwareConcurrency||2,4);for(let t=0;t<e;t++)try{const o=new y;this.workers.push(o)}catch(o){console.warn("[ImageManager] Failed to spawn worker:",o)}}}load(e,t={}){return new Promise((o,i)=>{var r,c;const s={id:`task-${Date.now()}-${this.workerIdCounter++}`,url:e,priority:t.priority||"normal",fetchpriority:t.fetchpriority||"auto",resolve:o,reject:i,abortSignal:t.abortSignal};if((r=s.abortSignal)!=null&&r.aborted)return i(new DOMException("Aborted","AbortError"));const a=()=>{var f;const d=this.queue.indexOf(s);d>-1&&this.queue.splice(d,1),(f=s.abortSignal)==null||f.removeEventListener("abort",a),i(new DOMException("Aborted","AbortError"))};(c=s.abortSignal)==null||c.addEventListener("abort",a,{once:!0}),this.queue.push(s),this.sortQueue(),this.next()})}sortQueue(){const e={high:0,normal:1,low:2};this.queue.sort((t,o)=>e[t.priority]-e[o.priority])}next(){var i;if(this.activeCount>=this.maxConcurrent||this.queue.length===0)return;const e=this.queue.shift();if((i=e.abortSignal)!=null&&i.aborted){this.next();return}this.activeCount++;const t=this.getAvailableWorker();(t?this.processTaskWithWorker(t,e):this.processTaskMainThread(e)).finally(()=>{this.activeCount--,this.next()})}getAvailableWorker(){return this.workers.length===0?null:this.workers[this.workerIdCounter%this.workers.length]}processTaskWithWorker(e,t){return new Promise(o=>{var a;const i=r=>{if(r.data.id===t.id){if(s(),r.data.status==="success"){if(r.data.imageBitmap)t.resolve(r.data.imageBitmap);else if(r.data.blob){const c=URL.createObjectURL(r.data.blob);t.resolve(c)}}else t.reject(new Error(r.data.error));o()}},b=()=>{s(),e.postMessage({type:"CANCEL",id:t.id}),t.reject(new DOMException("Aborted","AbortError")),o()},s=()=>{var r;e.removeEventListener("message",i),(r=t.abortSignal)==null||r.removeEventListener("abort",b)};e.addEventListener("message",i),(a=t.abortSignal)==null||a.addEventListener("abort",b,{once:!0}),e.postMessage({id:t.id,url:t.url,type:"LOAD"})})}async processTaskMainThread(e){var t,o,i,b,s,a;if((t=e.abortSignal)!=null&&t.aborted){e.reject(new DOMException("Aborted","AbortError"));return}try{const r=new Image;("fetchPriority"in r||r.fetchpriority!==void 0)&&(r.fetchPriority=e.fetchpriority),r.src=e.url,r.decoding="async";const c=()=>{r.src="",e.reject(new DOMException("Aborted","AbortError"))};(o=e.abortSignal)==null||o.addEventListener("abort",c,{once:!0});try{if(await r.decode(),(i=e.abortSignal)!=null&&i.aborted)throw new DOMException("Aborted","AbortError");e.resolve(e.url)}catch(d){(b=e.abortSignal)!=null&&b.aborted?e.reject(new DOMException("Aborted","AbortError")):e.reject(d)}finally{(s=e.abortSignal)==null||s.removeEventListener("abort",c)}}catch(r){(a=e.abortSignal)!=null&&a.aborted||e.reject(r)}}};l(u,"instance");let h=u;const v=h.getInstance();exports.imageManager=v;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require("./manager-C0AUxQ1I.js");const f=require("./z-index-CNZLw1v7.js"),c=require("vue"),b=["top-left","top-center","top-right","bottom-left","bottom-center","bottom-right"],h=(n,u,i)=>{let o=null;return{ensureMounted:()=>{o||(o=document.createElement("div"),o.className=i),o.isConnected||document.body.appendChild(o),c.render(c.h(n,u),o)},unmount:()=>{o&&(c.render(null,o),o.remove())}}},v=n=>({"top-left":n(),"top-center":n(),"top-right":n(),"bottom-left":n(),"bottom-center":n(),"bottom-right":n()}),w=n=>n.startsWith("top");let x=0;const M=n=>Object.values(n.groups).some(u=>u.length>0),k=(n,u)=>{const i=c.reactive({groups:v(()=>[])}),o=h(n,{state:i},u),{nextZIndex:a}=f.useZIndex(),l=e=>{e.timer!==null&&(window.clearTimeout(e.timer),e.timer=null)},m=e=>{l(e);const s=i.groups[e.placement],r=s.findIndex(t=>t.id===e.id);r>=0&&s.splice(r,1),M(i)||o.unmount()},d=(e,s=e.remaining)=>{s<=0||e.options.duration<=0||(l(e),e.startedAt=Date.now(),e.timer=window.setTimeout(()=>{e.timer=null,m(e)},s))};return{state:i,open:(e,s)=>{o.ensureMounted();const r=c.markRaw(e),t={id:`${u}-${x+=1}`,placement:r.placement,zIndex:a(),options:r,visual:c.markRaw(s),remaining:r.duration,startedAt:0,timer:null,close:()=>{m(t)},pause:()=>{if(t.timer===null||t.options.duration<=0)return;const g=Date.now()-t.startedAt;t.remaining=Math.max(0,t.remaining-g),l(t)},resume:()=>{t.options.duration<=0||t.timer!==null||t.remaining<=0||d(t,t.remaining)}},p=i.groups[r.placement];return w(r.placement)?p.unshift(t):p.push(t),d(t),{id:t.id,close:t.close}},closeAll:()=>{for(const e of Object.values(i.groups))for(const s of[...e])s.close()}}};exports.createFeedbackManager=k;exports.feedbackPlacements=b;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { s as y } from "./index-B0yEC3RG.mjs";
|
|
2
|
+
import { i as k, u as O } from "./z-index-D9ecXoNe.mjs";
|
|
3
|
+
const f = /* @__PURE__ */ new WeakMap(), c = (e, n) => typeof e == "function" ? e() : e ?? n, g = (e) => e !== void 0 ? e ?? null : typeof document < "u" ? document : null, C = (e) => {
|
|
4
|
+
let n = null;
|
|
5
|
+
return {
|
|
6
|
+
lock: () => {
|
|
7
|
+
var d;
|
|
8
|
+
if (!c(e.lockScroll, !0) || n)
|
|
9
|
+
return;
|
|
10
|
+
const l = g(e.document), r = (d = l == null ? void 0 : l.body) == null ? void 0 : d.style;
|
|
11
|
+
if (!l || !r)
|
|
12
|
+
return;
|
|
13
|
+
const o = f.get(l) ?? {
|
|
14
|
+
count: 0,
|
|
15
|
+
previousOverflow: r.overflow
|
|
16
|
+
};
|
|
17
|
+
o.count === 0 && (o.previousOverflow = r.overflow), o.count += 1, r.overflow = "hidden", f.set(l, o), n = l;
|
|
18
|
+
},
|
|
19
|
+
unlock: () => {
|
|
20
|
+
var a;
|
|
21
|
+
if (!n)
|
|
22
|
+
return;
|
|
23
|
+
const l = (a = n.body) == null ? void 0 : a.style, r = f.get(n);
|
|
24
|
+
l && r && (r.count = Math.max(0, r.count - 1), r.count === 0 ? (l.overflow = r.previousOverflow, f.delete(n)) : l.overflow = "hidden"), n = null;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
function x(e = {}) {
|
|
29
|
+
const { nextZIndex: n } = O(), u = y(!1), v = y(k), l = y(!c(e.destroyOnClose, !1)), r = C(e), a = () => {
|
|
30
|
+
l.value = u.value || !c(e.destroyOnClose, !1);
|
|
31
|
+
}, o = (t) => {
|
|
32
|
+
var s;
|
|
33
|
+
if (u.value === t) {
|
|
34
|
+
a();
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
if (u.value = t, t) {
|
|
38
|
+
l.value = !0, v.value = n(), r.lock(), (s = e.onOpen) == null || s.call(e, !0);
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
r.unlock(), a();
|
|
42
|
+
}, d = (t = "manual") => {
|
|
43
|
+
var s, i;
|
|
44
|
+
return u.value ? ((s = e.onVisibilityChange) == null || s.call(e, !1), (i = e.onCloseRequest) == null || i.call(e, !1, t), !0) : !1;
|
|
45
|
+
};
|
|
46
|
+
return {
|
|
47
|
+
state: {
|
|
48
|
+
get visible() {
|
|
49
|
+
return u.value;
|
|
50
|
+
},
|
|
51
|
+
get shouldRender() {
|
|
52
|
+
return l.value;
|
|
53
|
+
},
|
|
54
|
+
get zIndex() {
|
|
55
|
+
return v.value;
|
|
56
|
+
},
|
|
57
|
+
get destroyOnClose() {
|
|
58
|
+
return c(e.destroyOnClose, !1);
|
|
59
|
+
},
|
|
60
|
+
get closeOnClickModal() {
|
|
61
|
+
return c(e.closeOnClickModal, !0);
|
|
62
|
+
},
|
|
63
|
+
get closeOnPressEscape() {
|
|
64
|
+
return c(e.closeOnPressEscape, !0);
|
|
65
|
+
},
|
|
66
|
+
get lockScroll() {
|
|
67
|
+
return c(e.lockScroll, !0);
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
actions: {
|
|
71
|
+
syncVisible: o,
|
|
72
|
+
syncRenderState: a,
|
|
73
|
+
open: () => o(!0),
|
|
74
|
+
close: () => o(!1),
|
|
75
|
+
requestClose: d,
|
|
76
|
+
handleOverlayClick: () => !u.value || !c(e.closeOnClickModal, !0) ? !1 : d("overlay"),
|
|
77
|
+
handleEscapeKeydown: (t) => {
|
|
78
|
+
var s;
|
|
79
|
+
return !u.value || !c(e.closeOnPressEscape, !0) || t.key !== "Escape" ? !1 : ((s = t.preventDefault) == null || s.call(t), d("escape"));
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
export {
|
|
85
|
+
x as c
|
|
86
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const v=require("./index-DWAWrVaT.js"),k=require("./z-index-CNZLw1v7.js"),f=new WeakMap,c=(e,n)=>typeof e=="function"?e():e??n,g=e=>e!==void 0?e??null:typeof document<"u"?document:null,O=e=>{let n=null;return{lock:()=>{var d;if(!c(e.lockScroll,!0)||n)return;const l=g(e.document),r=(d=l==null?void 0:l.body)==null?void 0:d.style;if(!l||!r)return;const o=f.get(l)??{count:0,previousOverflow:r.overflow};o.count===0&&(o.previousOverflow=r.overflow),o.count+=1,r.overflow="hidden",f.set(l,o),n=l},unlock:()=>{var a;if(!n)return;const l=(a=n.body)==null?void 0:a.style,r=f.get(n);l&&r&&(r.count=Math.max(0,r.count-1),r.count===0?(l.overflow=r.previousOverflow,f.delete(n)):l.overflow="hidden"),n=null}}};function C(e={}){const{nextZIndex:n}=k.useZIndex(),u=v.signal(!1),i=v.signal(k.initialZIndex),l=v.signal(!c(e.destroyOnClose,!1)),r=O(e),a=()=>{l.value=u.value||!c(e.destroyOnClose,!1)},o=t=>{var s;if(u.value===t){a();return}if(u.value=t,t){l.value=!0,i.value=n(),r.lock(),(s=e.onOpen)==null||s.call(e,!0);return}r.unlock(),a()},d=(t="manual")=>{var s,y;return u.value?((s=e.onVisibilityChange)==null||s.call(e,!1),(y=e.onCloseRequest)==null||y.call(e,!1,t),!0):!1};return{state:{get visible(){return u.value},get shouldRender(){return l.value},get zIndex(){return i.value},get destroyOnClose(){return c(e.destroyOnClose,!1)},get closeOnClickModal(){return c(e.closeOnClickModal,!0)},get closeOnPressEscape(){return c(e.closeOnPressEscape,!0)},get lockScroll(){return c(e.lockScroll,!0)}},actions:{syncVisible:o,syncRenderState:a,open:()=>o(!0),close:()=>o(!1),requestClose:d,handleOverlayClick:()=>!u.value||!c(e.closeOnClickModal,!0)?!1:d("overlay"),handleEscapeKeydown:t=>{var s;return!u.value||!c(e.closeOnPressEscape,!0)||t.key!=="Escape"?!1:((s=t.preventDefault)==null||s.call(t),d("escape"))}}}}exports.createModalController=C;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const d=require("vue"),r=["xs","sm","md","lg","xl"],n={sm:576,md:768,lg:992,xl:1200},i=d.ref("xs");let f=!1;function l(e){return e>=n.xl?"xl":e>=n.lg?"lg":e>=n.md?"md":e>=n.sm?"sm":"xs"}function a(){if(typeof window>"u"){i.value="xs";return}i.value=l(window.innerWidth)}function c(){typeof window>"u"||f||(a(),window.addEventListener("resize",a),f=!0)}function p(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function k(){return c(),d.computed(()=>i.value)}function B(e,t){if(e===void 0)return;if(!p(e))return e;let o;for(const s of r){const u=e[s];if(u!==void 0&&(o=u),s===t)break}return o}function v(e,t){return r.indexOf(e)<=r.indexOf(t)}exports.isBreakpointAtOrBelow=v;exports.layoutBreakpointOrder=r;exports.resolveResponsiveValue=B;exports.useLayoutBreakpoint=k;
|