@antdv-next/mobile 0.0.0-stage → 0.1.1
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 +102 -2
- package/README.zh-CN.md +89 -0
- package/dist/_base/BaseBadge.js +4 -0
- package/dist/_base/BaseBadge.vue.d.ts +28 -0
- package/dist/_base/BaseBadge.vue_vue_type_script_setup_true_lang.js +57 -0
- package/dist/_base/Portal.js +4 -0
- package/dist/_base/Portal.vue.d.ts +61 -0
- package/dist/_base/Portal.vue_vue_type_script_lang.js +67 -0
- package/dist/_base/Spinner.js +4 -0
- package/dist/_base/Spinner.vue.d.ts +4 -0
- package/dist/_base/Spinner.vue_vue_type_script_setup_true_lang.js +18 -0
- package/dist/_base/compact.d.ts +58 -0
- package/dist/_base/compact.js +57 -0
- package/dist/_base/index.d.ts +9 -0
- package/dist/_base/style/badge.css +34 -0
- package/dist/_util/RenderNode.d.ts +32 -0
- package/dist/_util/RenderNode.js +39 -0
- package/dist/_util/hooks/index.d.ts +8 -0
- package/dist/_util/hooks/useClickAway.d.ts +14 -0
- package/dist/_util/hooks/useClickAway.js +27 -0
- package/dist/_util/hooks/useControlled.d.ts +18 -0
- package/dist/_util/hooks/useControlled.js +36 -0
- package/dist/_util/hooks/useDraggable.d.ts +50 -0
- package/dist/_util/hooks/useDraggable.js +176 -0
- package/dist/_util/hooks/useEventListener.d.ts +11 -0
- package/dist/_util/hooks/useEventListener.js +29 -0
- package/dist/_util/hooks/useLockScroll.d.ts +8 -0
- package/dist/_util/hooks/useLockScroll.js +46 -0
- package/dist/_util/hooks/useTouch.d.ts +19 -0
- package/dist/_util/hooks/useTouch.js +63 -0
- package/dist/_util/hooks/useVirtualRange.d.ts +40 -0
- package/dist/_util/hooks/useVirtualRange.js +68 -0
- package/dist/_util/hooks/useZIndex.d.ts +3 -0
- package/dist/_util/hooks/useZIndex.js +11 -0
- package/dist/_util/index.d.ts +36 -0
- package/dist/_util/index.js +103 -0
- package/dist/_util/mount.d.ts +13 -0
- package/dist/_util/mount.js +46 -0
- package/dist/_util/type.d.ts +17 -0
- package/dist/_util/vnode.d.ts +11 -0
- package/dist/_util/vnode.js +35 -0
- package/dist/_util/withInstall.d.ts +7 -0
- package/dist/_util/withInstall.js +15 -0
- package/dist/_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/defineProperty.js +11 -0
- package/dist/_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/toPrimitive.js +13 -0
- package/dist/_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/toPropertyKey.js +8 -0
- package/dist/_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/typeof.js +10 -0
- package/dist/_virtual/_rolldown/runtime.js +12 -0
- package/dist/action-bar/ActionBar.js +4 -0
- package/dist/action-bar/ActionBar.vue.d.ts +21 -0
- package/dist/action-bar/ActionBar.vue_vue_type_script_setup_true_lang.js +75 -0
- package/dist/action-bar/ActionBarButton.js +4 -0
- package/dist/action-bar/ActionBarButton.vue.d.ts +27 -0
- package/dist/action-bar/ActionBarButton.vue_vue_type_script_setup_true_lang.js +94 -0
- package/dist/action-bar/ActionBarIcon.js +4 -0
- package/dist/action-bar/ActionBarIcon.vue.d.ts +26 -0
- package/dist/action-bar/ActionBarIcon.vue_vue_type_script_setup_true_lang.js +110 -0
- package/dist/action-bar/index.d.ts +256 -0
- package/dist/action-bar/index.js +12 -0
- package/dist/action-bar/interface.d.ts +92 -0
- package/dist/action-bar/style/index.css +192 -0
- package/dist/action-sheet/ActionSheet.js +4 -0
- package/dist/action-sheet/ActionSheet.vue.d.ts +46 -0
- package/dist/action-sheet/ActionSheet.vue_vue_type_script_setup_true_lang.js +236 -0
- package/dist/action-sheet/index.d.ts +113 -0
- package/dist/action-sheet/index.js +6 -0
- package/dist/action-sheet/interface.d.ts +109 -0
- package/dist/action-sheet/show.d.ts +3 -0
- package/dist/action-sheet/show.js +32 -0
- package/dist/action-sheet/style/index.css +153 -0
- package/dist/affix/Affix.js +4 -0
- package/dist/affix/Affix.vue.d.ts +21 -0
- package/dist/affix/Affix.vue_vue_type_script_setup_true_lang.js +176 -0
- package/dist/affix/index.d.ts +33 -0
- package/dist/affix/index.js +5 -0
- package/dist/affix/interface.d.ts +33 -0
- package/dist/affix/style/index.css +11 -0
- package/dist/alert/Alert.js +4 -0
- package/dist/alert/Alert.vue.d.ts +24 -0
- package/dist/alert/Alert.vue_vue_type_script_setup_true_lang.js +193 -0
- package/dist/alert/index.d.ts +47 -0
- package/dist/alert/index.js +5 -0
- package/dist/alert/interface.d.ts +67 -0
- package/dist/alert/style/index.css +164 -0
- package/dist/app/App.js +4 -0
- package/dist/app/App.vue.d.ts +15 -0
- package/dist/app/App.vue_vue_type_script_setup_true_lang.js +148 -0
- package/dist/app/context.d.ts +8 -0
- package/dist/app/context.js +24 -0
- package/dist/app/index.d.ts +26 -0
- package/dist/app/index.js +6 -0
- package/dist/app/interface.d.ts +31 -0
- package/dist/app/style/index.css +12 -0
- package/dist/app/useApp.d.ts +3 -0
- package/dist/app/useApp.js +7 -0
- package/dist/avatar/Avatar.js +4 -0
- package/dist/avatar/Avatar.vue.d.ts +20 -0
- package/dist/avatar/Avatar.vue_vue_type_script_setup_true_lang.js +157 -0
- package/dist/avatar/AvatarGroup.js +4 -0
- package/dist/avatar/AvatarGroup.vue.d.ts +13 -0
- package/dist/avatar/AvatarGroup.vue_vue_type_script_setup_true_lang.js +55 -0
- package/dist/avatar/context.d.ts +7 -0
- package/dist/avatar/context.js +3 -0
- package/dist/avatar/index.d.ts +67 -0
- package/dist/avatar/index.js +7 -0
- package/dist/avatar/interface.d.ts +61 -0
- package/dist/avatar/style/index.css +94 -0
- package/dist/badge/Badge.js +4 -0
- package/dist/badge/Badge.vue.d.ts +21 -0
- package/dist/badge/Badge.vue_vue_type_script_setup_true_lang.js +160 -0
- package/dist/badge/Ribbon.js +4 -0
- package/dist/badge/Ribbon.vue.d.ts +15 -0
- package/dist/badge/Ribbon.vue_vue_type_script_setup_true_lang.js +52 -0
- package/dist/badge/index.d.ts +84 -0
- package/dist/badge/index.js +7 -0
- package/dist/badge/interface.d.ts +66 -0
- package/dist/badge/style/index.css +305 -0
- package/dist/badge/util.d.ts +2 -0
- package/dist/badge/util.js +20 -0
- package/dist/barrage/Barrage.js +4 -0
- package/dist/barrage/Barrage.vue.d.ts +27 -0
- package/dist/barrage/Barrage.vue_vue_type_script_setup_true_lang.js +123 -0
- package/dist/barrage/index.d.ts +55 -0
- package/dist/barrage/index.js +5 -0
- package/dist/barrage/interface.d.ts +54 -0
- package/dist/barrage/style/index.css +90 -0
- package/dist/border-beam/BeamHost.d.ts +22 -0
- package/dist/border-beam/BeamHost.js +26 -0
- package/dist/border-beam/BorderBeam.js +4 -0
- package/dist/border-beam/BorderBeam.vue.d.ts +13 -0
- package/dist/border-beam/BorderBeam.vue_vue_type_script_setup_true_lang.js +85 -0
- package/dist/border-beam/index.d.ts +17 -0
- package/dist/border-beam/index.js +5 -0
- package/dist/border-beam/interface.d.ts +43 -0
- package/dist/border-beam/style/index.css +95 -0
- package/dist/border-beam/useBorderSize.d.ts +10 -0
- package/dist/border-beam/useBorderSize.js +56 -0
- package/dist/border-beam/util.d.ts +10 -0
- package/dist/border-beam/util.js +30 -0
- package/dist/button/Button.js +4 -0
- package/dist/button/Button.vue.d.ts +26 -0
- package/dist/button/Button.vue_vue_type_script_setup_true_lang.js +162 -0
- package/dist/button/index.d.ts +54 -0
- package/dist/button/index.js +5 -0
- package/dist/button/interface.d.ts +49 -0
- package/dist/button/style/index.css +246 -0
- package/dist/calendar/Calendar.js +4 -0
- package/dist/calendar/Calendar.vue.d.ts +78 -0
- package/dist/calendar/Calendar.vue_vue_type_script_setup_true_lang.js +621 -0
- package/dist/calendar/index.d.ts +189 -0
- package/dist/calendar/index.js +5 -0
- package/dist/calendar/interface.d.ts +151 -0
- package/dist/calendar/style/index.css +255 -0
- package/dist/card/Card.js +4 -0
- package/dist/card/Card.vue.d.ts +17 -0
- package/dist/card/Card.vue_vue_type_script_setup_true_lang.js +150 -0
- package/dist/card/CardMeta.js +4 -0
- package/dist/card/CardMeta.vue.d.ts +13 -0
- package/dist/card/CardMeta.vue_vue_type_script_setup_true_lang.js +73 -0
- package/dist/card/index.d.ts +60 -0
- package/dist/card/index.js +7 -0
- package/dist/card/interface.d.ts +84 -0
- package/dist/card/style/index.css +209 -0
- package/dist/carousel/Carousel.js +4 -0
- package/dist/carousel/Carousel.vue.d.ts +51 -0
- package/dist/carousel/Carousel.vue_vue_type_script_setup_true_lang.js +410 -0
- package/dist/carousel/index.d.ts +113 -0
- package/dist/carousel/index.js +5 -0
- package/dist/carousel/interface.d.ts +80 -0
- package/dist/carousel/style/index.css +198 -0
- package/dist/cascader/Cascader.js +4 -0
- package/dist/cascader/Cascader.vue.d.ts +55 -0
- package/dist/cascader/Cascader.vue_vue_type_script_setup_true_lang.js +318 -0
- package/dist/cascader/CascaderView.js +4 -0
- package/dist/cascader/CascaderView.vue.d.ts +38 -0
- package/dist/cascader/CascaderView.vue_vue_type_script_setup_true_lang.js +270 -0
- package/dist/cascader/index.d.ts +290 -0
- package/dist/cascader/index.js +7 -0
- package/dist/cascader/interface.d.ts +116 -0
- package/dist/cascader/style/index.css +119 -0
- package/dist/cascader/util.d.ts +6 -0
- package/dist/cascader/util.js +29 -0
- package/dist/checkbox/Checkbox.js +4 -0
- package/dist/checkbox/Checkbox.vue.d.ts +42 -0
- package/dist/checkbox/Checkbox.vue_vue_type_script_setup_true_lang.js +262 -0
- package/dist/checkbox/CheckboxGroup.js +4 -0
- package/dist/checkbox/CheckboxGroup.vue.d.ts +23 -0
- package/dist/checkbox/CheckboxGroup.vue_vue_type_script_setup_true_lang.js +145 -0
- package/dist/checkbox/context.d.ts +19 -0
- package/dist/checkbox/context.js +7 -0
- package/dist/checkbox/index.d.ts +183 -0
- package/dist/checkbox/index.js +7 -0
- package/dist/checkbox/interface.d.ts +129 -0
- package/dist/checkbox/style/index.css +197 -0
- package/dist/collapse/Collapse.js +4 -0
- package/dist/collapse/Collapse.vue.d.ts +25 -0
- package/dist/collapse/Collapse.vue_vue_type_script_setup_true_lang.js +134 -0
- package/dist/collapse/CollapsePanel.js +4 -0
- package/dist/collapse/CollapsePanel.vue.d.ts +22 -0
- package/dist/collapse/CollapsePanel.vue_vue_type_script_setup_true_lang.js +149 -0
- package/dist/collapse/context.d.ts +14 -0
- package/dist/collapse/context.js +3 -0
- package/dist/collapse/index.d.ts +133 -0
- package/dist/collapse/index.js +7 -0
- package/dist/collapse/interface.d.ts +95 -0
- package/dist/collapse/style/index.css +206 -0
- package/dist/collapse-transition/CollapseTransition.js +4 -0
- package/dist/collapse-transition/CollapseTransition.vue.d.ts +23 -0
- package/dist/collapse-transition/CollapseTransition.vue_vue_type_script_setup_true_lang.js +95 -0
- package/dist/collapse-transition/index.d.ts +45 -0
- package/dist/collapse-transition/index.js +5 -0
- package/dist/collapse-transition/interface.d.ts +29 -0
- package/dist/collapse-transition/style/index.css +25 -0
- package/dist/color-picker/ColorBlock.js +4 -0
- package/dist/color-picker/ColorBlock.vue.d.ts +12 -0
- package/dist/color-picker/ColorBlock.vue_vue_type_script_setup_true_lang.js +23 -0
- package/dist/color-picker/ColorInput.js +4 -0
- package/dist/color-picker/ColorInput.vue.d.ts +3 -0
- package/dist/color-picker/ColorInput.vue_vue_type_script_setup_true_lang.js +162 -0
- package/dist/color-picker/ColorPalette.js +4 -0
- package/dist/color-picker/ColorPalette.vue.d.ts +3 -0
- package/dist/color-picker/ColorPalette.vue_vue_type_script_setup_true_lang.js +44 -0
- package/dist/color-picker/ColorPicker.js +4 -0
- package/dist/color-picker/ColorPicker.vue.d.ts +50 -0
- package/dist/color-picker/ColorPicker.vue_vue_type_script_setup_true_lang.js +291 -0
- package/dist/color-picker/ColorPickerPanel.js +4 -0
- package/dist/color-picker/ColorPickerPanel.vue.d.ts +32 -0
- package/dist/color-picker/ColorPickerPanel.vue_vue_type_script_setup_true_lang.js +120 -0
- package/dist/color-picker/ColorSlider.js +4 -0
- package/dist/color-picker/ColorSlider.vue.d.ts +19 -0
- package/dist/color-picker/ColorSlider.vue_vue_type_script_setup_true_lang.js +76 -0
- package/dist/color-picker/PanelBody.js +4 -0
- package/dist/color-picker/PanelBody.vue.d.ts +42 -0
- package/dist/color-picker/PanelBody.vue_vue_type_script_setup_true_lang.js +138 -0
- package/dist/color-picker/PanelContent.js +4 -0
- package/dist/color-picker/PanelContent.vue.d.ts +3 -0
- package/dist/color-picker/PanelContent.vue_vue_type_script_setup_true_lang.js +26 -0
- package/dist/color-picker/PanelPicker.js +4 -0
- package/dist/color-picker/PanelPicker.vue.d.ts +3 -0
- package/dist/color-picker/PanelPicker.vue_vue_type_script_setup_true_lang.js +102 -0
- package/dist/color-picker/PanelPresets.js +4 -0
- package/dist/color-picker/PanelPresets.vue.d.ts +3 -0
- package/dist/color-picker/PanelPresets.vue_vue_type_script_setup_true_lang.js +80 -0
- package/dist/color-picker/color.d.ts +71 -0
- package/dist/color-picker/color.js +337 -0
- package/dist/color-picker/context.d.ts +27 -0
- package/dist/color-picker/context.js +12 -0
- package/dist/color-picker/index.d.ts +251 -0
- package/dist/color-picker/index.js +8 -0
- package/dist/color-picker/interface.d.ts +182 -0
- package/dist/color-picker/style/index.css +406 -0
- package/dist/color-picker/useColorDrag.d.ts +18 -0
- package/dist/color-picker/useColorDrag.js +70 -0
- package/dist/components.d.ts +178 -0
- package/dist/components.js +218 -0
- package/dist/config-provider/ConfigProvider.js +4 -0
- package/dist/config-provider/ConfigProvider.vue.d.ts +14 -0
- package/dist/config-provider/ConfigProvider.vue_vue_type_script_setup_true_lang.js +51 -0
- package/dist/config-provider/context.d.ts +54 -0
- package/dist/config-provider/context.js +52 -0
- package/dist/config-provider/index.d.ts +28 -0
- package/dist/config-provider/index.js +8 -0
- package/dist/date-picker/DatePicker.js +4 -0
- package/dist/date-picker/DatePicker.vue.d.ts +49 -0
- package/dist/date-picker/DatePicker.vue_vue_type_script_setup_true_lang.js +297 -0
- package/dist/date-picker/DatePickerView.js +4 -0
- package/dist/date-picker/DatePickerView.vue.d.ts +17 -0
- package/dist/date-picker/DatePickerView.vue_vue_type_script_setup_true_lang.js +93 -0
- package/dist/date-picker/RangePicker.js +4 -0
- package/dist/date-picker/RangePicker.vue.d.ts +54 -0
- package/dist/date-picker/RangePicker.vue_vue_type_script_setup_true_lang.js +461 -0
- package/dist/date-picker/index.d.ts +394 -0
- package/dist/date-picker/index.js +13 -0
- package/dist/date-picker/interface.d.ts +176 -0
- package/dist/date-picker/style/index.css +93 -0
- package/dist/date-picker/util.d.ts +39 -0
- package/dist/date-picker/util.js +264 -0
- package/dist/descriptions/Descriptions.js +4 -0
- package/dist/descriptions/Descriptions.vue.d.ts +18 -0
- package/dist/descriptions/Descriptions.vue_vue_type_script_setup_true_lang.js +168 -0
- package/dist/descriptions/index.d.ts +32 -0
- package/dist/descriptions/index.js +5 -0
- package/dist/descriptions/interface.d.ts +72 -0
- package/dist/descriptions/style/index.css +151 -0
- package/dist/divider/Divider.js +4 -0
- package/dist/divider/Divider.vue.d.ts +18 -0
- package/dist/divider/Divider.vue_vue_type_script_setup_true_lang.js +82 -0
- package/dist/divider/index.d.ts +32 -0
- package/dist/divider/index.js +5 -0
- package/dist/divider/interface.d.ts +38 -0
- package/dist/divider/style/index.css +96 -0
- package/dist/draggable/Draggable.js +4 -0
- package/dist/draggable/Draggable.vue.d.ts +35 -0
- package/dist/draggable/Draggable.vue_vue_type_script_setup_true_lang.js +121 -0
- package/dist/draggable/index.d.ts +74 -0
- package/dist/draggable/index.js +5 -0
- package/dist/draggable/interface.d.ts +48 -0
- package/dist/draggable/style/index.css +37 -0
- package/dist/drawer/Drawer.js +4 -0
- package/dist/drawer/Drawer.vue.d.ts +52 -0
- package/dist/drawer/Drawer.vue_vue_type_script_setup_true_lang.js +385 -0
- package/dist/drawer/index.d.ts +127 -0
- package/dist/drawer/index.js +5 -0
- package/dist/drawer/interface.d.ts +87 -0
- package/dist/drawer/style/index.css +183 -0
- package/dist/dropdown/Dropdown.js +4 -0
- package/dist/dropdown/Dropdown.vue.d.ts +29 -0
- package/dist/dropdown/Dropdown.vue_vue_type_script_setup_true_lang.js +205 -0
- package/dist/dropdown/DropdownItem.js +4 -0
- package/dist/dropdown/DropdownItem.vue.d.ts +45 -0
- package/dist/dropdown/DropdownItem.vue_vue_type_script_setup_true_lang.js +287 -0
- package/dist/dropdown/context.d.ts +31 -0
- package/dist/dropdown/context.js +3 -0
- package/dist/dropdown/index.d.ts +270 -0
- package/dist/dropdown/index.js +7 -0
- package/dist/dropdown/interface.d.ts +109 -0
- package/dist/dropdown/style/index.css +227 -0
- package/dist/empty/DefaultImage.js +4 -0
- package/dist/empty/DefaultImage.vue.d.ts +3 -0
- package/dist/empty/DefaultImage.vue_vue_type_script_setup_true_lang.js +20 -0
- package/dist/empty/Empty.js +4 -0
- package/dist/empty/Empty.vue.d.ts +20 -0
- package/dist/empty/Empty.vue_vue_type_script_setup_true_lang.js +93 -0
- package/dist/empty/SimpleImage.js +4 -0
- package/dist/empty/SimpleImage.vue.d.ts +3 -0
- package/dist/empty/SimpleImage.vue_vue_type_script_setup_true_lang.js +29 -0
- package/dist/empty/images.d.ts +8 -0
- package/dist/empty/images.js +9 -0
- package/dist/empty/index.d.ts +45 -0
- package/dist/empty/index.js +9 -0
- package/dist/empty/interface.d.ts +29 -0
- package/dist/empty/style/index.css +101 -0
- package/dist/flex/Flex.js +4 -0
- package/dist/flex/Flex.vue.d.ts +17 -0
- package/dist/flex/Flex.vue_vue_type_script_setup_true_lang.js +66 -0
- package/dist/flex/index.d.ts +29 -0
- package/dist/flex/index.js +5 -0
- package/dist/flex/interface.d.ts +23 -0
- package/dist/flex/style/index.css +31 -0
- package/dist/float-button/BackTop.js +4 -0
- package/dist/float-button/BackTop.vue.d.ts +27 -0
- package/dist/float-button/BackTop.vue_vue_type_script_setup_true_lang.js +138 -0
- package/dist/float-button/FloatButton.js +4 -0
- package/dist/float-button/FloatButton.vue.d.ts +38 -0
- package/dist/float-button/FloatButton.vue_vue_type_script_setup_true_lang.js +185 -0
- package/dist/float-button/FloatButtonGroup.js +4 -0
- package/dist/float-button/FloatButtonGroup.vue.d.ts +36 -0
- package/dist/float-button/FloatButtonGroup.vue_vue_type_script_setup_true_lang.js +145 -0
- package/dist/float-button/context.d.ts +6 -0
- package/dist/float-button/context.js +3 -0
- package/dist/float-button/index.d.ts +359 -0
- package/dist/float-button/index.js +12 -0
- package/dist/float-button/interface.d.ts +138 -0
- package/dist/float-button/style/index.css +234 -0
- package/dist/floating-panel/FloatingPanel.js +4 -0
- package/dist/floating-panel/FloatingPanel.vue.d.ts +34 -0
- package/dist/floating-panel/FloatingPanel.vue_vue_type_script_setup_true_lang.js +197 -0
- package/dist/floating-panel/index.d.ts +72 -0
- package/dist/floating-panel/index.js +5 -0
- package/dist/floating-panel/interface.d.ts +48 -0
- package/dist/floating-panel/style/index.css +92 -0
- package/dist/form/Form.js +4 -0
- package/dist/form/Form.vue.d.ts +41 -0
- package/dist/form/Form.vue_vue_type_script_setup_true_lang.js +367 -0
- package/dist/form/FormItem.js +4 -0
- package/dist/form/FormItem.vue.d.ts +34 -0
- package/dist/form/FormItem.vue_vue_type_script_setup_true_lang.js +471 -0
- package/dist/form/context.d.ts +32 -0
- package/dist/form/context.js +34 -0
- package/dist/form/index.d.ts +247 -0
- package/dist/form/index.js +7 -0
- package/dist/form/interface.d.ts +242 -0
- package/dist/form/internal.d.ts +46 -0
- package/dist/form/internal.js +9 -0
- package/dist/form/style/index.css +256 -0
- package/dist/form/utils.d.ts +23 -0
- package/dist/form/utils.js +218 -0
- package/dist/grid/Col.js +4 -0
- package/dist/grid/Col.vue.d.ts +13 -0
- package/dist/grid/Col.vue_vue_type_script_setup_true_lang.js +69 -0
- package/dist/grid/Grid.js +4 -0
- package/dist/grid/Grid.vue.d.ts +23 -0
- package/dist/grid/Grid.vue_vue_type_script_setup_true_lang.js +118 -0
- package/dist/grid/GridItem.js +4 -0
- package/dist/grid/GridItem.vue.d.ts +26 -0
- package/dist/grid/GridItem.vue_vue_type_script_setup_true_lang.js +137 -0
- package/dist/grid/Row.js +4 -0
- package/dist/grid/Row.vue.d.ts +16 -0
- package/dist/grid/Row.vue_vue_type_script_setup_true_lang.js +51 -0
- package/dist/grid/context.d.ts +9 -0
- package/dist/grid/context.js +4 -0
- package/dist/grid/index.d.ts +188 -0
- package/dist/grid/index.js +11 -0
- package/dist/grid/interface.d.ts +135 -0
- package/dist/grid/style/grid.css +172 -0
- package/dist/grid/style/index.css +75 -0
- package/dist/highlight/Highlight.js +4 -0
- package/dist/highlight/Highlight.vue.d.ts +19 -0
- package/dist/highlight/Highlight.vue_vue_type_script_setup_true_lang.js +66 -0
- package/dist/highlight/index.d.ts +36 -0
- package/dist/highlight/index.js +6 -0
- package/dist/highlight/interface.d.ts +50 -0
- package/dist/highlight/style/index.css +30 -0
- package/dist/highlight/utils.d.ts +7 -0
- package/dist/highlight/utils.js +60 -0
- package/dist/hooks/browser.d.ts +23 -0
- package/dist/hooks/browser.js +86 -0
- package/dist/hooks/dom.d.ts +81 -0
- package/dist/hooks/dom.js +243 -0
- package/dist/hooks/fn.d.ts +23 -0
- package/dist/hooks/fn.js +86 -0
- package/dist/hooks/gesture.d.ts +33 -0
- package/dist/hooks/gesture.js +113 -0
- package/dist/hooks/index.d.ts +14 -0
- package/dist/hooks/request.d.ts +79 -0
- package/dist/hooks/request.js +166 -0
- package/dist/hooks/shared.d.ts +7 -0
- package/dist/hooks/shared.js +16 -0
- package/dist/hooks/state.d.ts +20 -0
- package/dist/hooks/state.js +21 -0
- package/dist/hooks/timer.d.ts +79 -0
- package/dist/hooks/timer.js +215 -0
- package/dist/image/Image.js +4 -0
- package/dist/image/Image.vue.d.ts +31 -0
- package/dist/image/Image.vue_vue_type_script_setup_true_lang.js +232 -0
- package/dist/image/ImagePreviewGroup.js +4 -0
- package/dist/image/ImagePreviewGroup.vue.d.ts +23 -0
- package/dist/image/ImagePreviewGroup.vue_vue_type_script_setup_true_lang.js +98 -0
- package/dist/image/context.d.ts +12 -0
- package/dist/image/context.js +7 -0
- package/dist/image/index.d.ts +159 -0
- package/dist/image/index.js +7 -0
- package/dist/image/interface.d.ts +99 -0
- package/dist/image/style/index.css +65 -0
- package/dist/image-preview/ImagePreview.js +4 -0
- package/dist/image-preview/ImagePreview.vue.d.ts +49 -0
- package/dist/image-preview/ImagePreview.vue_vue_type_script_setup_true_lang.js +297 -0
- package/dist/image-preview/ImagePreviewItem.js +4 -0
- package/dist/image-preview/ImagePreviewItem.vue.d.ts +38 -0
- package/dist/image-preview/ImagePreviewItem.vue_vue_type_script_setup_true_lang.js +261 -0
- package/dist/image-preview/index.d.ts +120 -0
- package/dist/image-preview/index.js +51 -0
- package/dist/image-preview/interface.d.ts +104 -0
- package/dist/image-preview/style/index.css +147 -0
- package/dist/index-bar/IndexBar.js +4 -0
- package/dist/index-bar/IndexBar.vue.d.ts +23 -0
- package/dist/index-bar/IndexBar.vue_vue_type_script_setup_true_lang.js +189 -0
- package/dist/index-bar/IndexBarAnchor.js +4 -0
- package/dist/index-bar/IndexBarAnchor.vue.d.ts +13 -0
- package/dist/index-bar/IndexBarAnchor.vue_vue_type_script_setup_true_lang.js +42 -0
- package/dist/index-bar/context.d.ts +14 -0
- package/dist/index-bar/context.js +3 -0
- package/dist/index-bar/index.d.ts +73 -0
- package/dist/index-bar/index.js +7 -0
- package/dist/index-bar/interface.d.ts +46 -0
- package/dist/index-bar/style/index.css +120 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +126 -0
- package/dist/infinite-scroll/InfiniteScroll.js +4 -0
- package/dist/infinite-scroll/InfiniteScroll.vue.d.ts +42 -0
- package/dist/infinite-scroll/InfiniteScroll.vue_vue_type_script_setup_true_lang.js +211 -0
- package/dist/infinite-scroll/index.d.ts +97 -0
- package/dist/infinite-scroll/index.js +5 -0
- package/dist/infinite-scroll/interface.d.ts +53 -0
- package/dist/infinite-scroll/style/index.css +54 -0
- package/dist/input/Input.js +4 -0
- package/dist/input/Input.vue.d.ts +50 -0
- package/dist/input/Input.vue_vue_type_script_setup_true_lang.js +230 -0
- package/dist/input/InputOTP.js +4 -0
- package/dist/input/InputOTP.vue.d.ts +33 -0
- package/dist/input/InputOTP.vue_vue_type_script_setup_true_lang.js +208 -0
- package/dist/input/InputPassword.js +4 -0
- package/dist/input/InputPassword.vue.d.ts +51 -0
- package/dist/input/InputPassword.vue_vue_type_script_setup_true_lang.js +219 -0
- package/dist/input/InputSearch.js +4 -0
- package/dist/input/InputSearch.vue.d.ts +63 -0
- package/dist/input/InputSearch.vue_vue_type_script_setup_true_lang.js +309 -0
- package/dist/input/TextArea.js +4 -0
- package/dist/input/TextArea.vue.d.ts +51 -0
- package/dist/input/TextArea.vue_vue_type_script_setup_true_lang.js +237 -0
- package/dist/input/index.d.ts +1033 -0
- package/dist/input/index.js +18 -0
- package/dist/input/interface.d.ts +352 -0
- package/dist/input/style/index.css +575 -0
- package/dist/input/useInput.d.ts +46 -0
- package/dist/input/useInput.js +133 -0
- package/dist/input-number/InputNumber.js +4 -0
- package/dist/input-number/InputNumber.vue.d.ts +45 -0
- package/dist/input-number/InputNumber.vue_vue_type_script_setup_true_lang.js +424 -0
- package/dist/input-number/index.d.ts +105 -0
- package/dist/input-number/index.js +5 -0
- package/dist/input-number/interface.d.ts +98 -0
- package/dist/input-number/style/index.css +232 -0
- package/dist/list/List.js +4 -0
- package/dist/list/List.vue.d.ts +33 -0
- package/dist/list/List.vue_vue_type_script_setup_true_lang.js +182 -0
- package/dist/list/ListItem.js +4 -0
- package/dist/list/ListItem.vue.d.ts +36 -0
- package/dist/list/ListItem.vue_vue_type_script_setup_true_lang.js +178 -0
- package/dist/list/index.d.ts +232 -0
- package/dist/list/index.js +7 -0
- package/dist/list/interface.d.ts +117 -0
- package/dist/list/style/index.css +230 -0
- package/dist/listy/Listy.js +4 -0
- package/dist/listy/Listy.vue.d.ts +28 -0
- package/dist/listy/Listy.vue_vue_type_script_setup_true_lang.js +219 -0
- package/dist/listy/ListyStickyHeader.js +4 -0
- package/dist/listy/ListyStickyHeader.vue.d.ts +22 -0
- package/dist/listy/ListyStickyHeader.vue_vue_type_script_setup_true_lang.js +72 -0
- package/dist/listy/index.d.ts +56 -0
- package/dist/listy/index.js +5 -0
- package/dist/listy/interface.d.ts +84 -0
- package/dist/listy/style/index.css +91 -0
- package/dist/listy/util.d.ts +56 -0
- package/dist/listy/util.js +85 -0
- package/dist/loading-bar/LoadingBar.js +4 -0
- package/dist/loading-bar/LoadingBar.vue.d.ts +14 -0
- package/dist/loading-bar/LoadingBar.vue_vue_type_script_setup_true_lang.js +80 -0
- package/dist/loading-bar/api.d.ts +3 -0
- package/dist/loading-bar/api.js +110 -0
- package/dist/loading-bar/index.d.ts +3 -0
- package/dist/loading-bar/index.js +4 -0
- package/dist/loading-bar/interface.d.ts +42 -0
- package/dist/loading-bar/style/index.css +54 -0
- package/dist/locale/en_US.d.ts +3 -0
- package/dist/locale/en_US.js +195 -0
- package/dist/locale/index.d.ts +12 -0
- package/dist/locale/index.js +24 -0
- package/dist/locale/interface.d.ts +185 -0
- package/dist/locale/zh_CN.d.ts +3 -0
- package/dist/locale/zh_CN.js +195 -0
- package/dist/mask/Mask.js +4 -0
- package/dist/mask/Mask.vue.d.ts +28 -0
- package/dist/mask/Mask.vue_vue_type_script_setup_true_lang.js +97 -0
- package/dist/mask/index.d.ts +58 -0
- package/dist/mask/index.js +5 -0
- package/dist/mask/interface.d.ts +24 -0
- package/dist/mask/style/index.css +10 -0
- package/dist/masonry/Masonry.js +4 -0
- package/dist/masonry/Masonry.vue.d.ts +25 -0
- package/dist/masonry/Masonry.vue_vue_type_script_setup_true_lang.js +245 -0
- package/dist/masonry/index.d.ts +45 -0
- package/dist/masonry/index.js +5 -0
- package/dist/masonry/interface.d.ts +61 -0
- package/dist/masonry/layout.d.ts +27 -0
- package/dist/masonry/layout.js +39 -0
- package/dist/masonry/style/index.css +63 -0
- package/dist/message/Message.js +4 -0
- package/dist/message/Message.vue.d.ts +10 -0
- package/dist/message/Message.vue_vue_type_script_setup_true_lang.js +84 -0
- package/dist/message/api.d.ts +3 -0
- package/dist/message/api.js +157 -0
- package/dist/message/index.d.ts +3 -0
- package/dist/message/index.js +4 -0
- package/dist/message/interface.d.ts +68 -0
- package/dist/message/style/index.css +105 -0
- package/dist/modal/Modal.js +4 -0
- package/dist/modal/Modal.vue.d.ts +60 -0
- package/dist/modal/Modal.vue_vue_type_script_setup_true_lang.js +362 -0
- package/dist/modal/confirm.d.ts +9 -0
- package/dist/modal/confirm.js +202 -0
- package/dist/modal/index.d.ts +152 -0
- package/dist/modal/index.js +12 -0
- package/dist/modal/interface.d.ts +165 -0
- package/dist/modal/style/index.css +198 -0
- package/dist/nav-bar/NavBar.js +4 -0
- package/dist/nav-bar/NavBar.vue.d.ts +40 -0
- package/dist/nav-bar/NavBar.vue_vue_type_script_setup_true_lang.js +181 -0
- package/dist/nav-bar/index.d.ts +96 -0
- package/dist/nav-bar/index.js +5 -0
- package/dist/nav-bar/interface.d.ts +57 -0
- package/dist/nav-bar/style/index.css +140 -0
- package/dist/notice-bar/NoticeBar.js +4 -0
- package/dist/notice-bar/NoticeBar.vue.d.ts +31 -0
- package/dist/notice-bar/NoticeBar.vue_vue_type_script_setup_true_lang.js +221 -0
- package/dist/notice-bar/index.d.ts +67 -0
- package/dist/notice-bar/index.js +5 -0
- package/dist/notice-bar/interface.d.ts +59 -0
- package/dist/notice-bar/style/index.css +171 -0
- package/dist/notification/Notification.js +4 -0
- package/dist/notification/Notification.vue.d.ts +45 -0
- package/dist/notification/Notification.vue_vue_type_script_setup_true_lang.js +308 -0
- package/dist/notification/NotificationHolder.js +4 -0
- package/dist/notification/NotificationHolder.vue.d.ts +15 -0
- package/dist/notification/NotificationHolder.vue_vue_type_script_setup_true_lang.js +168 -0
- package/dist/notification/api.d.ts +3 -0
- package/dist/notification/api.js +160 -0
- package/dist/notification/index.d.ts +3 -0
- package/dist/notification/index.js +4 -0
- package/dist/notification/interface.d.ts +178 -0
- package/dist/notification/style/index.css +295 -0
- package/dist/number-keyboard/NumberKeyboard.js +4 -0
- package/dist/number-keyboard/NumberKeyboard.vue.d.ts +44 -0
- package/dist/number-keyboard/NumberKeyboard.vue_vue_type_script_setup_true_lang.js +398 -0
- package/dist/number-keyboard/index.d.ts +101 -0
- package/dist/number-keyboard/index.js +5 -0
- package/dist/number-keyboard/interface.d.ts +72 -0
- package/dist/number-keyboard/style/index.css +169 -0
- package/dist/pagination/Pagination.js +4 -0
- package/dist/pagination/Pagination.vue.d.ts +34 -0
- package/dist/pagination/Pagination.vue_vue_type_script_setup_true_lang.js +220 -0
- package/dist/pagination/index.d.ts +74 -0
- package/dist/pagination/index.js +5 -0
- package/dist/pagination/interface.d.ts +49 -0
- package/dist/pagination/style/index.css +137 -0
- package/dist/picker/Picker.js +4 -0
- package/dist/picker/Picker.vue.d.ts +50 -0
- package/dist/picker/Picker.vue_vue_type_script_setup_true_lang.js +286 -0
- package/dist/picker/PickerPopup.js +4 -0
- package/dist/picker/PickerPopup.vue.d.ts +49 -0
- package/dist/picker/PickerPopup.vue_vue_type_script_setup_true_lang.js +119 -0
- package/dist/picker/PickerTrigger.js +4 -0
- package/dist/picker/PickerTrigger.vue.d.ts +45 -0
- package/dist/picker/PickerTrigger.vue_vue_type_script_setup_true_lang.js +134 -0
- package/dist/picker/index.d.ts +119 -0
- package/dist/picker/index.js +5 -0
- package/dist/picker/interface.d.ts +102 -0
- package/dist/picker/style/index.css +238 -0
- package/dist/picker/usePickerField.d.ts +20 -0
- package/dist/picker/usePickerField.js +39 -0
- package/dist/picker-view/PickerView.js +4 -0
- package/dist/picker-view/PickerView.vue.d.ts +27 -0
- package/dist/picker-view/PickerView.vue_vue_type_script_setup_true_lang.js +118 -0
- package/dist/picker-view/PickerViewColumn.js +4 -0
- package/dist/picker-view/PickerViewColumn.vue.d.ts +37 -0
- package/dist/picker-view/PickerViewColumn.vue_vue_type_script_setup_true_lang.js +266 -0
- package/dist/picker-view/index.d.ts +56 -0
- package/dist/picker-view/index.js +5 -0
- package/dist/picker-view/interface.d.ts +69 -0
- package/dist/picker-view/style/index.css +111 -0
- package/dist/picker-view/util.d.ts +23 -0
- package/dist/picker-view/util.js +55 -0
- package/dist/popover/Popover.js +4 -0
- package/dist/popover/Popover.vue.d.ts +38 -0
- package/dist/popover/Popover.vue_vue_type_script_setup_true_lang.js +311 -0
- package/dist/popover/index.d.ts +88 -0
- package/dist/popover/index.js +5 -0
- package/dist/popover/interface.d.ts +72 -0
- package/dist/popover/position.d.ts +47 -0
- package/dist/popover/position.js +72 -0
- package/dist/popover/style/index.css +217 -0
- package/dist/popup/Popup.js +4 -0
- package/dist/popup/Popup.vue.d.ts +39 -0
- package/dist/popup/Popup.vue_vue_type_script_setup_true_lang.js +206 -0
- package/dist/popup/index.d.ts +87 -0
- package/dist/popup/index.js +5 -0
- package/dist/popup/interface.d.ts +57 -0
- package/dist/popup/style/index.css +121 -0
- package/dist/progress/Progress.js +4 -0
- package/dist/progress/Progress.vue.d.ts +18 -0
- package/dist/progress/Progress.vue_vue_type_script_setup_true_lang.js +356 -0
- package/dist/progress/index.d.ts +32 -0
- package/dist/progress/index.js +5 -0
- package/dist/progress/interface.d.ts +86 -0
- package/dist/progress/style/index.css +269 -0
- package/dist/pull-to-refresh/PullToRefresh.js +4 -0
- package/dist/pull-to-refresh/PullToRefresh.vue.d.ts +45 -0
- package/dist/pull-to-refresh/PullToRefresh.vue_vue_type_script_setup_true_lang.js +243 -0
- package/dist/pull-to-refresh/index.d.ts +106 -0
- package/dist/pull-to-refresh/index.js +5 -0
- package/dist/pull-to-refresh/interface.d.ts +57 -0
- package/dist/pull-to-refresh/style/index.css +52 -0
- package/dist/qrcode/QRCode.js +4 -0
- package/dist/qrcode/QRCode.vue.d.ts +31 -0
- package/dist/qrcode/QRCode.vue_vue_type_script_setup_true_lang.js +351 -0
- package/dist/qrcode/encoder.d.ts +47 -0
- package/dist/qrcode/encoder.js +786 -0
- package/dist/qrcode/index.d.ts +65 -0
- package/dist/qrcode/index.js +6 -0
- package/dist/qrcode/interface.d.ts +73 -0
- package/dist/qrcode/style/index.css +76 -0
- package/dist/radio/Radio.js +4 -0
- package/dist/radio/Radio.vue.d.ts +38 -0
- package/dist/radio/Radio.vue_vue_type_script_setup_true_lang.js +214 -0
- package/dist/radio/RadioButton.js +4 -0
- package/dist/radio/RadioButton.vue.d.ts +32 -0
- package/dist/radio/RadioButton.vue_vue_type_script_setup_true_lang.js +73 -0
- package/dist/radio/RadioGroup.js +4 -0
- package/dist/radio/RadioGroup.vue.d.ts +24 -0
- package/dist/radio/RadioGroup.vue_vue_type_script_setup_true_lang.js +147 -0
- package/dist/radio/context.d.ts +18 -0
- package/dist/radio/context.js +7 -0
- package/dist/radio/index.d.ts +321 -0
- package/dist/radio/index.js +12 -0
- package/dist/radio/interface.d.ts +142 -0
- package/dist/radio/style/index.css +328 -0
- package/dist/rate/Rate.js +4 -0
- package/dist/rate/Rate.vue.d.ts +34 -0
- package/dist/rate/Rate.vue_vue_type_script_setup_true_lang.js +243 -0
- package/dist/rate/index.d.ts +74 -0
- package/dist/rate/index.js +5 -0
- package/dist/rate/interface.d.ts +51 -0
- package/dist/rate/style/index.css +88 -0
- package/dist/result/ExceptionImage.js +4 -0
- package/dist/result/ExceptionImage.vue.d.ts +6 -0
- package/dist/result/ExceptionImage.vue_vue_type_script_setup_true_lang.js +56 -0
- package/dist/result/Result.js +4 -0
- package/dist/result/Result.vue.d.ts +18 -0
- package/dist/result/Result.vue_vue_type_script_setup_true_lang.js +126 -0
- package/dist/result/index.d.ts +32 -0
- package/dist/result/index.js +5 -0
- package/dist/result/interface.d.ts +41 -0
- package/dist/result/style/index.css +138 -0
- package/dist/rolling-text/RollingText.js +4 -0
- package/dist/rolling-text/RollingText.vue.d.ts +22 -0
- package/dist/rolling-text/RollingText.vue_vue_type_script_setup_true_lang.js +133 -0
- package/dist/rolling-text/index.d.ts +17 -0
- package/dist/rolling-text/index.js +5 -0
- package/dist/rolling-text/interface.d.ts +42 -0
- package/dist/rolling-text/style/index.css +86 -0
- package/dist/rolling-text/utils.d.ts +18 -0
- package/dist/rolling-text/utils.js +74 -0
- package/dist/safe-area/SafeArea.js +4 -0
- package/dist/safe-area/SafeArea.vue.d.ts +15 -0
- package/dist/safe-area/SafeArea.vue_vue_type_script_setup_true_lang.js +19 -0
- package/dist/safe-area/index.d.ts +23 -0
- package/dist/safe-area/index.js +5 -0
- package/dist/safe-area/interface.d.ts +9 -0
- package/dist/safe-area/style/index.css +18 -0
- package/dist/segmented/Segmented.js +4 -0
- package/dist/segmented/Segmented.vue.d.ts +25 -0
- package/dist/segmented/Segmented.vue_vue_type_script_setup_true_lang.js +165 -0
- package/dist/segmented/index.d.ts +50 -0
- package/dist/segmented/index.js +5 -0
- package/dist/segmented/interface.d.ts +50 -0
- package/dist/segmented/style/index.css +159 -0
- package/dist/select/Select.js +4 -0
- package/dist/select/Select.vue.d.ts +66 -0
- package/dist/select/Select.vue_vue_type_script_setup_true_lang.js +582 -0
- package/dist/select/index.d.ts +165 -0
- package/dist/select/index.js +5 -0
- package/dist/select/interface.d.ts +95 -0
- package/dist/select/style/index.css +167 -0
- package/dist/selector/Selector.js +4 -0
- package/dist/selector/Selector.vue.d.ts +24 -0
- package/dist/selector/Selector.vue_vue_type_script_setup_true_lang.js +158 -0
- package/dist/selector/index.d.ts +47 -0
- package/dist/selector/index.js +5 -0
- package/dist/selector/interface.d.ts +68 -0
- package/dist/selector/style/index.css +120 -0
- package/dist/share-sheet/ShareSheet.js +4 -0
- package/dist/share-sheet/ShareSheet.vue.d.ts +49 -0
- package/dist/share-sheet/ShareSheet.vue_vue_type_script_setup_true_lang.js +278 -0
- package/dist/share-sheet/index.d.ts +118 -0
- package/dist/share-sheet/index.js +5 -0
- package/dist/share-sheet/interface.d.ts +98 -0
- package/dist/share-sheet/style/index.css +213 -0
- package/dist/shimmer-text/ShimmerText.js +4 -0
- package/dist/shimmer-text/ShimmerText.vue.d.ts +19 -0
- package/dist/shimmer-text/ShimmerText.vue_vue_type_script_setup_true_lang.js +57 -0
- package/dist/shimmer-text/index.d.ts +35 -0
- package/dist/shimmer-text/index.js +5 -0
- package/dist/shimmer-text/interface.d.ts +28 -0
- package/dist/shimmer-text/style/index.css +56 -0
- package/dist/side-bar/SideBar.js +4 -0
- package/dist/side-bar/SideBar.vue.d.ts +22 -0
- package/dist/side-bar/SideBar.vue_vue_type_script_setup_true_lang.js +90 -0
- package/dist/side-bar/index.d.ts +38 -0
- package/dist/side-bar/index.js +5 -0
- package/dist/side-bar/interface.d.ts +44 -0
- package/dist/side-bar/style/index.css +132 -0
- package/dist/signature/Signature.js +4 -0
- package/dist/signature/Signature.vue.d.ts +45 -0
- package/dist/signature/Signature.vue_vue_type_script_setup_true_lang.js +423 -0
- package/dist/signature/index.d.ts +107 -0
- package/dist/signature/index.js +5 -0
- package/dist/signature/interface.d.ts +80 -0
- package/dist/signature/style/index.css +75 -0
- package/dist/skeleton/Skeleton.js +4 -0
- package/dist/skeleton/Skeleton.vue.d.ts +18 -0
- package/dist/skeleton/Skeleton.vue_vue_type_script_setup_true_lang.js +116 -0
- package/dist/skeleton/SkeletonAvatar.js +4 -0
- package/dist/skeleton/SkeletonAvatar.vue.d.ts +8 -0
- package/dist/skeleton/SkeletonAvatar.vue_vue_type_script_setup_true_lang.js +48 -0
- package/dist/skeleton/SkeletonButton.js +4 -0
- package/dist/skeleton/SkeletonButton.vue.d.ts +8 -0
- package/dist/skeleton/SkeletonButton.vue_vue_type_script_setup_true_lang.js +52 -0
- package/dist/skeleton/SkeletonImage.js +4 -0
- package/dist/skeleton/SkeletonImage.vue.d.ts +6 -0
- package/dist/skeleton/SkeletonImage.vue_vue_type_script_setup_true_lang.js +38 -0
- package/dist/skeleton/SkeletonInput.js +4 -0
- package/dist/skeleton/SkeletonInput.vue.d.ts +6 -0
- package/dist/skeleton/SkeletonInput.vue_vue_type_script_setup_true_lang.js +50 -0
- package/dist/skeleton/index.d.ts +49 -0
- package/dist/skeleton/index.js +18 -0
- package/dist/skeleton/interface.d.ts +90 -0
- package/dist/skeleton/style/index.css +222 -0
- package/dist/slider/Slider.js +4 -0
- package/dist/slider/Slider.vue.d.ts +36 -0
- package/dist/slider/Slider.vue_vue_type_script_setup_true_lang.js +455 -0
- package/dist/slider/index.d.ts +80 -0
- package/dist/slider/index.js +5 -0
- package/dist/slider/interface.d.ts +80 -0
- package/dist/slider/style/index.css +253 -0
- package/dist/space/Space.js +4 -0
- package/dist/space/Space.vue.d.ts +18 -0
- package/dist/space/Space.vue_vue_type_script_setup_true_lang.js +107 -0
- package/dist/space/SpaceAddon.js +4 -0
- package/dist/space/SpaceAddon.vue.d.ts +16 -0
- package/dist/space/SpaceAddon.vue_vue_type_script_setup_true_lang.js +39 -0
- package/dist/space/SpaceCompact.js +4 -0
- package/dist/space/SpaceCompact.vue.d.ts +16 -0
- package/dist/space/SpaceCompact.vue_vue_type_script_setup_true_lang.js +57 -0
- package/dist/space/index.d.ts +131 -0
- package/dist/space/index.js +13 -0
- package/dist/space/interface.d.ts +63 -0
- package/dist/space/style/compact.css +289 -0
- package/dist/space/style/index.css +83 -0
- package/dist/spin/Spin.js +4 -0
- package/dist/spin/Spin.vue.d.ts +16 -0
- package/dist/spin/Spin.vue_vue_type_script_setup_true_lang.js +144 -0
- package/dist/spin/SpinIndicator.js +4 -0
- package/dist/spin/SpinIndicator.vue.d.ts +7 -0
- package/dist/spin/SpinIndicator.vue_vue_type_script_setup_true_lang.js +51 -0
- package/dist/spin/index.d.ts +26 -0
- package/dist/spin/index.js +5 -0
- package/dist/spin/interface.d.ts +43 -0
- package/dist/spin/style/index.css +148 -0
- package/dist/statistic/Statistic.js +4 -0
- package/dist/statistic/Statistic.vue.d.ts +23 -0
- package/dist/statistic/Statistic.vue_vue_type_script_setup_true_lang.js +139 -0
- package/dist/statistic/StatisticTimer.js +4 -0
- package/dist/statistic/StatisticTimer.vue.d.ts +22 -0
- package/dist/statistic/StatisticTimer.vue_vue_type_script_setup_true_lang.js +141 -0
- package/dist/statistic/index.d.ts +136 -0
- package/dist/statistic/index.js +7 -0
- package/dist/statistic/interface.d.ts +110 -0
- package/dist/statistic/style/index.css +62 -0
- package/dist/statistic/utils.d.ts +12 -0
- package/dist/statistic/utils.js +61 -0
- package/dist/steps/Steps.js +4 -0
- package/dist/steps/Steps.vue.d.ts +25 -0
- package/dist/steps/Steps.vue_vue_type_script_setup_true_lang.js +148 -0
- package/dist/steps/index.d.ts +50 -0
- package/dist/steps/index.js +5 -0
- package/dist/steps/interface.d.ts +78 -0
- package/dist/steps/style/index.css +282 -0
- package/dist/style/index.css +433 -0
- package/dist/style/index.d.ts +1 -0
- package/dist/style/index2.js +6 -0
- package/dist/style.css +14366 -0
- package/dist/swipe-action/SwipeAction.js +4 -0
- package/dist/swipe-action/SwipeAction.vue.d.ts +31 -0
- package/dist/swipe-action/SwipeAction.vue_vue_type_script_setup_true_lang.js +246 -0
- package/dist/swipe-action/index.d.ts +61 -0
- package/dist/swipe-action/index.js +5 -0
- package/dist/swipe-action/interface.d.ts +57 -0
- package/dist/swipe-action/style/index.css +100 -0
- package/dist/switch/Switch.js +4 -0
- package/dist/switch/Switch.vue.d.ts +46 -0
- package/dist/switch/Switch.vue_vue_type_script_setup_true_lang.js +241 -0
- package/dist/switch/index.d.ts +109 -0
- package/dist/switch/index.js +5 -0
- package/dist/switch/interface.d.ts +62 -0
- package/dist/switch/style/index.css +173 -0
- package/dist/tab-bar/TabBar.js +4 -0
- package/dist/tab-bar/TabBar.vue.d.ts +26 -0
- package/dist/tab-bar/TabBar.vue_vue_type_script_setup_true_lang.js +143 -0
- package/dist/tab-bar/index.d.ts +50 -0
- package/dist/tab-bar/index.js +5 -0
- package/dist/tab-bar/interface.d.ts +60 -0
- package/dist/tab-bar/style/index.css +140 -0
- package/dist/tabs/Tabs.js +4 -0
- package/dist/tabs/Tabs.vue.d.ts +32 -0
- package/dist/tabs/Tabs.vue_vue_type_script_setup_true_lang.js +308 -0
- package/dist/tabs/index.d.ts +67 -0
- package/dist/tabs/index.js +5 -0
- package/dist/tabs/interface.d.ts +86 -0
- package/dist/tabs/style/index.css +252 -0
- package/dist/tag/CheckableTag.js +4 -0
- package/dist/tag/CheckableTag.vue.d.ts +26 -0
- package/dist/tag/CheckableTag.vue_vue_type_script_setup_true_lang.js +108 -0
- package/dist/tag/Tag.js +4 -0
- package/dist/tag/Tag.vue.d.ts +22 -0
- package/dist/tag/Tag.vue_vue_type_script_setup_true_lang.js +181 -0
- package/dist/tag/index.d.ts +143 -0
- package/dist/tag/index.js +7 -0
- package/dist/tag/interface.d.ts +75 -0
- package/dist/tag/style/index.css +250 -0
- package/dist/theme/index.d.ts +25 -0
- package/dist/theme/index.js +22 -0
- package/dist/theme/interface.d.ts +145 -0
- package/dist/theme/util.d.ts +25 -0
- package/dist/theme/util.js +135 -0
- package/dist/time-picker/TimePicker.js +4 -0
- package/dist/time-picker/TimePicker.vue.d.ts +50 -0
- package/dist/time-picker/TimePicker.vue_vue_type_script_setup_true_lang.js +270 -0
- package/dist/time-picker/index.d.ts +119 -0
- package/dist/time-picker/index.js +5 -0
- package/dist/time-picker/interface.d.ts +55 -0
- package/dist/time-picker/style/index.css +4 -0
- package/dist/timeline/Timeline.js +4 -0
- package/dist/timeline/Timeline.vue.d.ts +15 -0
- package/dist/timeline/Timeline.vue_vue_type_script_setup_true_lang.js +195 -0
- package/dist/timeline/index.d.ts +23 -0
- package/dist/timeline/index.js +5 -0
- package/dist/timeline/interface.d.ts +73 -0
- package/dist/timeline/style/index.css +159 -0
- package/dist/toast/Toast.js +4 -0
- package/dist/toast/Toast.vue.d.ts +22 -0
- package/dist/toast/Toast.vue_vue_type_script_setup_true_lang.js +113 -0
- package/dist/toast/api.d.ts +3 -0
- package/dist/toast/api.js +148 -0
- package/dist/toast/index.d.ts +3 -0
- package/dist/toast/index.js +4 -0
- package/dist/toast/interface.d.ts +58 -0
- package/dist/toast/style/index.css +83 -0
- package/dist/tour/Tour.js +4 -0
- package/dist/tour/Tour.vue.d.ts +43 -0
- package/dist/tour/Tour.vue_vue_type_script_setup_true_lang.js +596 -0
- package/dist/tour/TourActions.js +4 -0
- package/dist/tour/TourActions.vue.d.ts +27 -0
- package/dist/tour/TourActions.vue_vue_type_script_setup_true_lang.js +62 -0
- package/dist/tour/index.d.ts +101 -0
- package/dist/tour/index.js +5 -0
- package/dist/tour/interface.d.ts +169 -0
- package/dist/tour/position.d.ts +42 -0
- package/dist/tour/position.js +66 -0
- package/dist/tour/style/index.css +293 -0
- package/dist/tree/Tree.js +4 -0
- package/dist/tree/Tree.vue.d.ts +62 -0
- package/dist/tree/Tree.vue_vue_type_script_setup_true_lang.js +460 -0
- package/dist/tree/TreeNode.js +4 -0
- package/dist/tree/TreeNode.vue.d.ts +7 -0
- package/dist/tree/TreeNode.vue_vue_type_script_setup_true_lang.js +255 -0
- package/dist/tree/context.d.ts +34 -0
- package/dist/tree/context.js +9 -0
- package/dist/tree/index.d.ts +145 -0
- package/dist/tree/index.js +5 -0
- package/dist/tree/interface.d.ts +214 -0
- package/dist/tree/style/index.css +226 -0
- package/dist/tree/util.d.ts +79 -0
- package/dist/tree/util.js +212 -0
- package/dist/typography/Decorate.d.ts +9 -0
- package/dist/typography/Decorate.js +14 -0
- package/dist/typography/Typography.js +4 -0
- package/dist/typography/Typography.vue.d.ts +15 -0
- package/dist/typography/Typography.vue_vue_type_script_setup_true_lang.js +22 -0
- package/dist/typography/TypographyBase.js +4 -0
- package/dist/typography/TypographyBase.vue.d.ts +29 -0
- package/dist/typography/TypographyBase.vue_vue_type_script_setup_true_lang.js +228 -0
- package/dist/typography/TypographyParagraph.js +4 -0
- package/dist/typography/TypographyParagraph.vue.d.ts +22 -0
- package/dist/typography/TypographyParagraph.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/typography/TypographyText.js +4 -0
- package/dist/typography/TypographyText.vue.d.ts +22 -0
- package/dist/typography/TypographyText.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/typography/TypographyTitle.js +4 -0
- package/dist/typography/TypographyTitle.vue.d.ts +23 -0
- package/dist/typography/TypographyTitle.vue_vue_type_script_setup_true_lang.js +68 -0
- package/dist/typography/copy.d.ts +2 -0
- package/dist/typography/copy.js +25 -0
- package/dist/typography/index.d.ts +294 -0
- package/dist/typography/index.js +15 -0
- package/dist/typography/interface.d.ts +78 -0
- package/dist/typography/style/index.css +249 -0
- package/dist/upload/Upload.js +4 -0
- package/dist/upload/Upload.vue.d.ts +45 -0
- package/dist/upload/Upload.vue_vue_type_script_setup_true_lang.js +503 -0
- package/dist/upload/index.d.ts +97 -0
- package/dist/upload/index.js +6 -0
- package/dist/upload/interface.d.ts +160 -0
- package/dist/upload/request.d.ts +3 -0
- package/dist/upload/request.js +50 -0
- package/dist/upload/style/index.css +224 -0
- package/dist/upload/utils.d.ts +5 -0
- package/dist/upload/utils.js +19 -0
- package/dist/version/index.d.ts +2 -0
- package/dist/version/index.js +3 -0
- package/dist/virtual-list/VirtualList.js +4 -0
- package/dist/virtual-list/VirtualList.vue.d.ts +34 -0
- package/dist/virtual-list/VirtualList.vue_vue_type_script_setup_true_lang.js +275 -0
- package/dist/virtual-list/index.d.ts +70 -0
- package/dist/virtual-list/index.js +5 -0
- package/dist/virtual-list/interface.d.ts +68 -0
- package/dist/virtual-list/style/index.css +23 -0
- package/dist/watermark/Watermark.js +4 -0
- package/dist/watermark/Watermark.vue.d.ts +25 -0
- package/dist/watermark/Watermark.vue_vue_type_script_setup_true_lang.js +184 -0
- package/dist/watermark/index.d.ts +45 -0
- package/dist/watermark/index.js +5 -0
- package/dist/watermark/interface.d.ts +38 -0
- package/dist/watermark/style/index.css +18 -0
- package/dist/watermark/utils.d.ts +21 -0
- package/dist/watermark/utils.js +133 -0
- package/global.d.ts +100 -0
- package/package.json +75 -3
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import { isRenderable, preventDefault } from "../_util/index.js";
|
|
2
|
+
import { useTouch } from "../_util/hooks/useTouch.js";
|
|
3
|
+
import RenderNode_default from "../_util/RenderNode.js";
|
|
4
|
+
import { useLocale } from "../locale/index.js";
|
|
5
|
+
import "../style/index2.js";
|
|
6
|
+
import './style/index.css';/* empty css */
|
|
7
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderSlot, resolveDynamicComponent, unref, useSlots, watch, withModifiers } from "vue";
|
|
8
|
+
import { CheckCircleFilled, CloseCircleFilled, CloseOutlined, ExclamationCircleFilled, InfoCircleFilled } from "@antdv-next/icons";
|
|
9
|
+
// src/notification/Notification.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
+
var _hoisted_1 = ["role"];
|
|
11
|
+
var _hoisted_2 = ["aria-label", "disabled"];
|
|
12
|
+
var SWIPE_X = 80;
|
|
13
|
+
var SWIPE_Y = 32;
|
|
14
|
+
/** a flick faster than this (px / ms) dismisses it as well */
|
|
15
|
+
var VELOCITY = .5;
|
|
16
|
+
var FLICK_DISTANCE = 16;
|
|
17
|
+
var Notification_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
18
|
+
name: "AmNotification",
|
|
19
|
+
inheritAttrs: false,
|
|
20
|
+
__name: "Notification",
|
|
21
|
+
props: {
|
|
22
|
+
title: {
|
|
23
|
+
type: [
|
|
24
|
+
Object,
|
|
25
|
+
String,
|
|
26
|
+
Number,
|
|
27
|
+
Boolean,
|
|
28
|
+
null,
|
|
29
|
+
Array,
|
|
30
|
+
Function
|
|
31
|
+
],
|
|
32
|
+
default: void 0
|
|
33
|
+
},
|
|
34
|
+
description: {
|
|
35
|
+
type: [
|
|
36
|
+
Object,
|
|
37
|
+
String,
|
|
38
|
+
Number,
|
|
39
|
+
Boolean,
|
|
40
|
+
null,
|
|
41
|
+
Array,
|
|
42
|
+
Function
|
|
43
|
+
],
|
|
44
|
+
default: void 0
|
|
45
|
+
},
|
|
46
|
+
actions: {
|
|
47
|
+
type: [
|
|
48
|
+
Object,
|
|
49
|
+
String,
|
|
50
|
+
Number,
|
|
51
|
+
Boolean,
|
|
52
|
+
null,
|
|
53
|
+
Array,
|
|
54
|
+
Function
|
|
55
|
+
],
|
|
56
|
+
default: void 0
|
|
57
|
+
},
|
|
58
|
+
icon: {
|
|
59
|
+
type: [
|
|
60
|
+
Object,
|
|
61
|
+
String,
|
|
62
|
+
Number,
|
|
63
|
+
Boolean,
|
|
64
|
+
null,
|
|
65
|
+
Array,
|
|
66
|
+
Function
|
|
67
|
+
],
|
|
68
|
+
default: void 0
|
|
69
|
+
},
|
|
70
|
+
type: {},
|
|
71
|
+
duration: { default: 4.5 },
|
|
72
|
+
times: { default: 0 },
|
|
73
|
+
showProgress: {
|
|
74
|
+
type: Boolean,
|
|
75
|
+
default: false
|
|
76
|
+
},
|
|
77
|
+
pauseOnHover: {
|
|
78
|
+
type: Boolean,
|
|
79
|
+
default: true
|
|
80
|
+
},
|
|
81
|
+
closable: {
|
|
82
|
+
type: Boolean,
|
|
83
|
+
default: true
|
|
84
|
+
},
|
|
85
|
+
closeIcon: {
|
|
86
|
+
type: [
|
|
87
|
+
Object,
|
|
88
|
+
String,
|
|
89
|
+
Number,
|
|
90
|
+
Boolean,
|
|
91
|
+
null,
|
|
92
|
+
Array,
|
|
93
|
+
Function
|
|
94
|
+
],
|
|
95
|
+
default: void 0
|
|
96
|
+
},
|
|
97
|
+
closeDisabled: {
|
|
98
|
+
type: Boolean,
|
|
99
|
+
default: false
|
|
100
|
+
},
|
|
101
|
+
placement: { default: "top" },
|
|
102
|
+
role: { default: "alert" },
|
|
103
|
+
rootClass: {},
|
|
104
|
+
classes: {},
|
|
105
|
+
styles: {}
|
|
106
|
+
},
|
|
107
|
+
emits: ["close", "click"],
|
|
108
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
109
|
+
const props = __props;
|
|
110
|
+
const emit = __emit;
|
|
111
|
+
const slots = useSlots();
|
|
112
|
+
/** a swipe further than this (px) dismisses the card */
|
|
113
|
+
const locale = useLocale("common");
|
|
114
|
+
const icons = {
|
|
115
|
+
info: InfoCircleFilled,
|
|
116
|
+
success: CheckCircleFilled,
|
|
117
|
+
error: CloseCircleFilled,
|
|
118
|
+
warning: ExclamationCircleFilled
|
|
119
|
+
};
|
|
120
|
+
const rootRef = ref();
|
|
121
|
+
const hasIcon = computed(() => !!slots.icon || isRenderable(props.icon) || !!props.type);
|
|
122
|
+
const hasTitle = computed(() => !!slots.title || isRenderable(props.title));
|
|
123
|
+
const hasDescription = computed(() => !!slots.description || isRenderable(props.description));
|
|
124
|
+
const hasActions = computed(() => !!slots.actions || isRenderable(props.actions));
|
|
125
|
+
const showClose = computed(() => props.closable && props.closeIcon !== null && props.closeIcon !== false);
|
|
126
|
+
let timer;
|
|
127
|
+
let startedAt = 0;
|
|
128
|
+
let remaining = 0;
|
|
129
|
+
let closed = false;
|
|
130
|
+
const paused = ref(false);
|
|
131
|
+
function close() {
|
|
132
|
+
if (closed) return;
|
|
133
|
+
closed = true;
|
|
134
|
+
clearTimeout(timer);
|
|
135
|
+
timer = void 0;
|
|
136
|
+
emit("close");
|
|
137
|
+
}
|
|
138
|
+
function resume() {
|
|
139
|
+
paused.value = false;
|
|
140
|
+
if (closed || props.duration <= 0 || timer) return;
|
|
141
|
+
startedAt = Date.now();
|
|
142
|
+
timer = setTimeout(close, Math.max(remaining, 0));
|
|
143
|
+
}
|
|
144
|
+
function pause() {
|
|
145
|
+
if (!timer) return;
|
|
146
|
+
clearTimeout(timer);
|
|
147
|
+
timer = void 0;
|
|
148
|
+
remaining -= Date.now() - startedAt;
|
|
149
|
+
paused.value = true;
|
|
150
|
+
}
|
|
151
|
+
function restart() {
|
|
152
|
+
clearTimeout(timer);
|
|
153
|
+
timer = void 0;
|
|
154
|
+
remaining = props.duration * 1e3;
|
|
155
|
+
resume();
|
|
156
|
+
}
|
|
157
|
+
onMounted(restart);
|
|
158
|
+
watch(() => [props.duration, props.times], restart);
|
|
159
|
+
onBeforeUnmount(() => clearTimeout(timer));
|
|
160
|
+
function hold() {
|
|
161
|
+
if (props.pauseOnHover) pause();
|
|
162
|
+
}
|
|
163
|
+
const touch = useTouch();
|
|
164
|
+
const dragging = ref(false);
|
|
165
|
+
const leaving = ref(false);
|
|
166
|
+
const offsetX = ref(0);
|
|
167
|
+
const offsetY = ref(0);
|
|
168
|
+
let suppressClick = false;
|
|
169
|
+
function onTouchStart(event) {
|
|
170
|
+
if (leaving.value) return;
|
|
171
|
+
suppressClick = false;
|
|
172
|
+
touch.start(event);
|
|
173
|
+
dragging.value = true;
|
|
174
|
+
hold();
|
|
175
|
+
}
|
|
176
|
+
function onTouchMove(event) {
|
|
177
|
+
if (!dragging.value) return;
|
|
178
|
+
touch.move(event);
|
|
179
|
+
if (touch.isHorizontal()) {
|
|
180
|
+
offsetX.value = touch.deltaX.value;
|
|
181
|
+
offsetY.value = 0;
|
|
182
|
+
} else if (touch.isVertical()) {
|
|
183
|
+
const delta = touch.deltaY.value;
|
|
184
|
+
const toEdge = props.placement === "top" ? delta < 0 : delta > 0;
|
|
185
|
+
offsetX.value = 0;
|
|
186
|
+
offsetY.value = toEdge ? delta : delta * .2;
|
|
187
|
+
}
|
|
188
|
+
if (!touch.isTap.value) preventDefault(event);
|
|
189
|
+
}
|
|
190
|
+
function onTouchEnd() {
|
|
191
|
+
if (!dragging.value) return;
|
|
192
|
+
dragging.value = false;
|
|
193
|
+
suppressClick = !touch.isTap.value;
|
|
194
|
+
const velocity = 1 / Math.max(Date.now() - touch.startTime.value, 1);
|
|
195
|
+
const x = offsetX.value;
|
|
196
|
+
const y = offsetY.value;
|
|
197
|
+
const toEdge = props.placement === "top" ? y < 0 : y > 0;
|
|
198
|
+
const dismissX = Math.abs(x) > SWIPE_X || Math.abs(x) > FLICK_DISTANCE && Math.abs(x) * velocity > VELOCITY;
|
|
199
|
+
const dismissY = toEdge && (Math.abs(y) > SWIPE_Y || Math.abs(y) > FLICK_DISTANCE && Math.abs(y) * velocity > VELOCITY);
|
|
200
|
+
if (dismissX || dismissY) {
|
|
201
|
+
leaving.value = true;
|
|
202
|
+
const el = rootRef.value;
|
|
203
|
+
if (dismissX) offsetX.value = Math.sign(x) * ((el?.offsetWidth || 320) + 32);
|
|
204
|
+
else offsetY.value = Math.sign(y) * ((el?.offsetHeight || 80) + 32);
|
|
205
|
+
close();
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
offsetX.value = 0;
|
|
209
|
+
offsetY.value = 0;
|
|
210
|
+
resume();
|
|
211
|
+
}
|
|
212
|
+
function onClick(event) {
|
|
213
|
+
if (suppressClick) {
|
|
214
|
+
suppressClick = false;
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
emit("click", event);
|
|
218
|
+
}
|
|
219
|
+
const dragStyle = computed(() => {
|
|
220
|
+
if (!offsetX.value && !offsetY.value) return void 0;
|
|
221
|
+
return {
|
|
222
|
+
transform: `translate3d(${offsetX.value}px, ${offsetY.value}px, 0)`,
|
|
223
|
+
opacity: leaving.value ? 0 : void 0
|
|
224
|
+
};
|
|
225
|
+
});
|
|
226
|
+
__expose({ nativeElement: rootRef });
|
|
227
|
+
return (_ctx, _cache) => {
|
|
228
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
229
|
+
ref_key: "rootRef",
|
|
230
|
+
ref: rootRef
|
|
231
|
+
}, _ctx.$attrs, {
|
|
232
|
+
class: ["am-notification-notice", [
|
|
233
|
+
__props.type ? `am-notification-notice-${__props.type}` : void 0,
|
|
234
|
+
{
|
|
235
|
+
"am-notification-notice-closable": showClose.value,
|
|
236
|
+
"am-notification-notice-dragging": dragging.value,
|
|
237
|
+
"am-notification-notice-with-description": hasDescription.value
|
|
238
|
+
},
|
|
239
|
+
__props.rootClass,
|
|
240
|
+
__props.classes?.root
|
|
241
|
+
]],
|
|
242
|
+
style: [__props.styles?.root, dragStyle.value],
|
|
243
|
+
role: __props.role,
|
|
244
|
+
onTouchstartPassive: onTouchStart,
|
|
245
|
+
onTouchmove: onTouchMove,
|
|
246
|
+
onTouchend: onTouchEnd,
|
|
247
|
+
onTouchcancel: onTouchEnd,
|
|
248
|
+
onMouseenter: hold,
|
|
249
|
+
onMouseleave: resume,
|
|
250
|
+
onClick
|
|
251
|
+
}), [
|
|
252
|
+
hasIcon.value ? (openBlock(), createElementBlock("span", {
|
|
253
|
+
key: 0,
|
|
254
|
+
class: normalizeClass(["am-notification-icon", __props.classes?.icon]),
|
|
255
|
+
style: normalizeStyle(__props.styles?.icon)
|
|
256
|
+
}, [renderSlot(_ctx.$slots, "icon", {}, () => [unref(isRenderable)(__props.icon) ? (openBlock(), createBlock(unref(RenderNode_default), {
|
|
257
|
+
key: 0,
|
|
258
|
+
node: __props.icon
|
|
259
|
+
}, null, 8, ["node"])) : __props.type ? (openBlock(), createBlock(resolveDynamicComponent(icons[__props.type]), { key: 1 })) : createCommentVNode("", true)])], 6)) : createCommentVNode("", true),
|
|
260
|
+
createElementVNode("div", {
|
|
261
|
+
class: normalizeClass(["am-notification-section", __props.classes?.section]),
|
|
262
|
+
style: normalizeStyle(__props.styles?.section)
|
|
263
|
+
}, [
|
|
264
|
+
hasTitle.value ? (openBlock(), createElementBlock("div", {
|
|
265
|
+
key: 0,
|
|
266
|
+
class: normalizeClass(["am-notification-title", __props.classes?.title]),
|
|
267
|
+
style: normalizeStyle(__props.styles?.title)
|
|
268
|
+
}, [renderSlot(_ctx.$slots, "title", {}, () => [createVNode(unref(RenderNode_default), { node: __props.title }, null, 8, ["node"])])], 6)) : createCommentVNode("", true),
|
|
269
|
+
hasDescription.value ? (openBlock(), createElementBlock("div", {
|
|
270
|
+
key: 1,
|
|
271
|
+
class: normalizeClass(["am-notification-description", __props.classes?.description]),
|
|
272
|
+
style: normalizeStyle(__props.styles?.description)
|
|
273
|
+
}, [renderSlot(_ctx.$slots, "description", {}, () => [createVNode(unref(RenderNode_default), { node: __props.description }, null, 8, ["node"])])], 6)) : createCommentVNode("", true),
|
|
274
|
+
hasActions.value ? (openBlock(), createElementBlock("div", {
|
|
275
|
+
key: 2,
|
|
276
|
+
class: normalizeClass(["am-notification-actions", __props.classes?.actions]),
|
|
277
|
+
style: normalizeStyle(__props.styles?.actions)
|
|
278
|
+
}, [renderSlot(_ctx.$slots, "actions", {}, () => [createVNode(unref(RenderNode_default), { node: __props.actions }, null, 8, ["node"])])], 6)) : createCommentVNode("", true)
|
|
279
|
+
], 6),
|
|
280
|
+
showClose.value ? (openBlock(), createElementBlock("button", {
|
|
281
|
+
key: 1,
|
|
282
|
+
type: "button",
|
|
283
|
+
class: normalizeClass(["am-notification-close", __props.classes?.close]),
|
|
284
|
+
style: normalizeStyle(__props.styles?.close),
|
|
285
|
+
"aria-label": unref(locale).close,
|
|
286
|
+
disabled: __props.closeDisabled,
|
|
287
|
+
onClick: withModifiers(close, ["stop"])
|
|
288
|
+
}, [renderSlot(_ctx.$slots, "closeIcon", {}, () => [unref(isRenderable)(__props.closeIcon) && __props.closeIcon !== true ? (openBlock(), createBlock(unref(RenderNode_default), {
|
|
289
|
+
key: 0,
|
|
290
|
+
node: __props.closeIcon
|
|
291
|
+
}, null, 8, ["node"])) : (openBlock(), createBlock(unref(CloseOutlined), { key: 1 }))])], 14, _hoisted_2)) : createCommentVNode("", true),
|
|
292
|
+
__props.showProgress && __props.duration > 0 ? (openBlock(), createElementBlock("div", {
|
|
293
|
+
key: 2,
|
|
294
|
+
class: normalizeClass(["am-notification-progress", __props.classes?.progress]),
|
|
295
|
+
style: normalizeStyle(__props.styles?.progress)
|
|
296
|
+
}, [(openBlock(), createElementBlock("div", {
|
|
297
|
+
key: __props.times,
|
|
298
|
+
class: "am-notification-progress-bar",
|
|
299
|
+
style: normalizeStyle({
|
|
300
|
+
animationDuration: `${__props.duration}s`,
|
|
301
|
+
animationPlayState: paused.value ? "paused" : "running"
|
|
302
|
+
})
|
|
303
|
+
}, null, 4))], 6)) : createCommentVNode("", true)
|
|
304
|
+
], 16, _hoisted_1);
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
export { Notification_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import NotificationHolder_vue_vue_type_script_setup_true_lang_default from "./NotificationHolder.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
// src/notification/NotificationHolder.vue
|
|
3
|
+
var NotificationHolder_default = NotificationHolder_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
export { NotificationHolder_default as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { NotificationHolderProps, NotificationNotice } from './interface';
|
|
2
|
+
import '../style';
|
|
3
|
+
import './style/index.css';
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<NotificationHolderProps, {
|
|
5
|
+
nativeElement: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
close: (key: import("../_util/type.ts").Key) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<NotificationHolderProps> & Readonly<{
|
|
9
|
+
onClose?: ((key: import("../_util/type.ts").Key) => any) | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
notices: NotificationNotice[];
|
|
12
|
+
stack: boolean | import("./interface").NotificationStackConfig;
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import Portal_default from "../_base/Portal.js";
|
|
2
|
+
import { addUnit } from "../_util/index.js";
|
|
3
|
+
import { useClickAway } from "../_util/hooks/useClickAway.js";
|
|
4
|
+
import Notification_default from "./Notification.js";
|
|
5
|
+
import "../style/index2.js";
|
|
6
|
+
import './style/index.css';/* empty css */
|
|
7
|
+
import { Fragment, TransitionGroup, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, normalizeClass, normalizeStyle, onMounted, openBlock, reactive, ref, renderList, unref, watch, withCtx } from "vue";
|
|
8
|
+
// src/notification/NotificationHolder.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
+
var _hoisted_1 = ["dir"];
|
|
10
|
+
var DEFAULT_THRESHOLD = 3;
|
|
11
|
+
var NotificationHolder_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
12
|
+
name: "AmNotificationHolder",
|
|
13
|
+
inheritAttrs: false,
|
|
14
|
+
__name: "NotificationHolder",
|
|
15
|
+
props: {
|
|
16
|
+
notices: { default: () => [] },
|
|
17
|
+
top: {},
|
|
18
|
+
bottom: {},
|
|
19
|
+
zIndex: {},
|
|
20
|
+
stack: {
|
|
21
|
+
type: [Boolean, Object],
|
|
22
|
+
default: void 0
|
|
23
|
+
},
|
|
24
|
+
getContainer: {}
|
|
25
|
+
},
|
|
26
|
+
emits: ["close"],
|
|
27
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
28
|
+
const props = __props;
|
|
29
|
+
const emit = __emit;
|
|
30
|
+
const edges = ["top", "bottom"];
|
|
31
|
+
const rootRef = ref();
|
|
32
|
+
/** the holder is client-only: nothing is rendered on the server */
|
|
33
|
+
const mounted = ref(false);
|
|
34
|
+
onMounted(() => {
|
|
35
|
+
mounted.value = true;
|
|
36
|
+
});
|
|
37
|
+
/** per edge, the newest notification first (it sits next to the screen edge) */
|
|
38
|
+
const lists = computed(() => {
|
|
39
|
+
const result = {
|
|
40
|
+
top: [],
|
|
41
|
+
bottom: []
|
|
42
|
+
};
|
|
43
|
+
props.notices.forEach((notice) => result[notice.placement].unshift(notice));
|
|
44
|
+
return result;
|
|
45
|
+
});
|
|
46
|
+
const threshold = computed(() => {
|
|
47
|
+
const { stack } = props;
|
|
48
|
+
if (stack === false) return 0;
|
|
49
|
+
return (typeof stack === "object" ? stack.threshold : void 0) ?? DEFAULT_THRESHOLD;
|
|
50
|
+
});
|
|
51
|
+
/** a stack opened by a tap; it folds again on an outside tap or once it is short enough */
|
|
52
|
+
const expanded = reactive({
|
|
53
|
+
top: false,
|
|
54
|
+
bottom: false
|
|
55
|
+
});
|
|
56
|
+
function isStacked(edge) {
|
|
57
|
+
return threshold.value > 0 && lists.value[edge].length > threshold.value;
|
|
58
|
+
}
|
|
59
|
+
function isCollapsed(edge) {
|
|
60
|
+
return isStacked(edge) && !expanded[edge];
|
|
61
|
+
}
|
|
62
|
+
watch(() => edges.map(isStacked), (stacked) => {
|
|
63
|
+
edges.forEach((edge, index) => {
|
|
64
|
+
if (!stacked[index]) expanded[edge] = false;
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
/** a tap on a folded stack opens it instead of reaching the notification */
|
|
68
|
+
function onListClick(edge, event) {
|
|
69
|
+
if (!isCollapsed(edge)) return;
|
|
70
|
+
event.stopPropagation();
|
|
71
|
+
expanded[edge] = true;
|
|
72
|
+
}
|
|
73
|
+
useClickAway(rootRef, () => {
|
|
74
|
+
expanded.top = false;
|
|
75
|
+
expanded.bottom = false;
|
|
76
|
+
}, { enabled: () => expanded.top || expanded.bottom });
|
|
77
|
+
const rootStyle = computed(() => {
|
|
78
|
+
const top = addUnit(props.top);
|
|
79
|
+
const bottom = addUnit(props.bottom);
|
|
80
|
+
return [
|
|
81
|
+
{ zIndex: props.zIndex },
|
|
82
|
+
top ? { "--am-notification-top": top } : void 0,
|
|
83
|
+
bottom ? { "--am-notification-bottom": bottom } : void 0
|
|
84
|
+
];
|
|
85
|
+
});
|
|
86
|
+
__expose({ nativeElement: rootRef });
|
|
87
|
+
return (_ctx, _cache) => {
|
|
88
|
+
return mounted.value ? (openBlock(), createBlock(unref(Portal_default), {
|
|
89
|
+
key: 0,
|
|
90
|
+
"get-container": __props.getContainer
|
|
91
|
+
}, {
|
|
92
|
+
default: withCtx(({ theme }) => [createElementVNode("div", mergeProps({
|
|
93
|
+
ref_key: "rootRef",
|
|
94
|
+
ref: rootRef
|
|
95
|
+
}, _ctx.$attrs, {
|
|
96
|
+
class: ["am-notification", theme.class],
|
|
97
|
+
style: [theme.style, rootStyle.value],
|
|
98
|
+
dir: theme.dir
|
|
99
|
+
}), [(openBlock(), createElementBlock(Fragment, null, renderList(edges, (edge) => {
|
|
100
|
+
return createVNode(TransitionGroup, {
|
|
101
|
+
key: edge,
|
|
102
|
+
tag: "div",
|
|
103
|
+
name: "am-notification-motion",
|
|
104
|
+
appear: "",
|
|
105
|
+
class: normalizeClass(["am-notification-list", [`am-notification-list-${edge}`, {
|
|
106
|
+
"am-notification-list-stack": isStacked(edge),
|
|
107
|
+
"am-notification-list-collapsed": isCollapsed(edge)
|
|
108
|
+
}]]),
|
|
109
|
+
onClickCapture: ($event) => onListClick(edge, $event)
|
|
110
|
+
}, {
|
|
111
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(lists.value[edge], (notice, index) => {
|
|
112
|
+
return openBlock(), createElementBlock("div", {
|
|
113
|
+
key: notice.id,
|
|
114
|
+
class: "am-notification-wrapper",
|
|
115
|
+
style: normalizeStyle({ "--am-notification-index": index })
|
|
116
|
+
}, [createVNode(Notification_default, mergeProps({ ref_for: true }, notice.props, {
|
|
117
|
+
class: notice.class,
|
|
118
|
+
style: notice.style,
|
|
119
|
+
title: notice.title,
|
|
120
|
+
description: notice.description,
|
|
121
|
+
actions: notice.actions,
|
|
122
|
+
icon: notice.icon,
|
|
123
|
+
type: notice.type,
|
|
124
|
+
duration: notice.duration,
|
|
125
|
+
times: notice.times,
|
|
126
|
+
"show-progress": notice.showProgress,
|
|
127
|
+
"pause-on-hover": notice.pauseOnHover,
|
|
128
|
+
closable: notice.closable,
|
|
129
|
+
"close-icon": notice.closeIcon,
|
|
130
|
+
"close-disabled": notice.closeDisabled,
|
|
131
|
+
placement: edge,
|
|
132
|
+
role: notice.role,
|
|
133
|
+
classes: notice.classes,
|
|
134
|
+
styles: notice.styles,
|
|
135
|
+
onClick: ($event) => notice.onClick?.($event),
|
|
136
|
+
onClose: ($event) => emit("close", notice.key)
|
|
137
|
+
}), null, 16, [
|
|
138
|
+
"class",
|
|
139
|
+
"style",
|
|
140
|
+
"title",
|
|
141
|
+
"description",
|
|
142
|
+
"actions",
|
|
143
|
+
"icon",
|
|
144
|
+
"type",
|
|
145
|
+
"duration",
|
|
146
|
+
"times",
|
|
147
|
+
"show-progress",
|
|
148
|
+
"pause-on-hover",
|
|
149
|
+
"closable",
|
|
150
|
+
"close-icon",
|
|
151
|
+
"close-disabled",
|
|
152
|
+
"placement",
|
|
153
|
+
"role",
|
|
154
|
+
"classes",
|
|
155
|
+
"styles",
|
|
156
|
+
"onClick",
|
|
157
|
+
"onClose"
|
|
158
|
+
])], 4);
|
|
159
|
+
}), 128))]),
|
|
160
|
+
_: 2
|
|
161
|
+
}, 1032, ["class", "onClickCapture"]);
|
|
162
|
+
}), 64))], 16, _hoisted_1)]),
|
|
163
|
+
_: 1
|
|
164
|
+
}, 8, ["get-container"])) : createCommentVNode("", true);
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
export { NotificationHolder_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { inBrowser } from "../_util/index.js";
|
|
2
|
+
import { nextZIndex } from "../_util/hooks/useZIndex.js";
|
|
3
|
+
import { mountComponent } from "../_util/mount.js";
|
|
4
|
+
import NotificationHolder_default from "./NotificationHolder.js";
|
|
5
|
+
import { defineComponent, h, shallowReactive, shallowRef } from "vue";
|
|
6
|
+
// src/notification/api.ts
|
|
7
|
+
var DEFAULT_DURATION = 4.5;
|
|
8
|
+
var seed = 0;
|
|
9
|
+
/** PC corner placements collapse to the edge they belong to */
|
|
10
|
+
function toEdge(placement) {
|
|
11
|
+
return placement?.startsWith("bottom") ? "bottom" : "top";
|
|
12
|
+
}
|
|
13
|
+
function createManager(config, ensureHolder) {
|
|
14
|
+
const notices = shallowRef([]);
|
|
15
|
+
const zIndex = shallowRef();
|
|
16
|
+
const records = /* @__PURE__ */ new Map();
|
|
17
|
+
function remove(key, callClose) {
|
|
18
|
+
const record = records.get(key);
|
|
19
|
+
if (!record) return;
|
|
20
|
+
records.delete(key);
|
|
21
|
+
notices.value = notices.value.filter((n) => n !== record.notice);
|
|
22
|
+
if (callClose) {
|
|
23
|
+
record.onClosableClose?.();
|
|
24
|
+
record.onClose?.();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
const holderProps = () => ({
|
|
28
|
+
notices: notices.value,
|
|
29
|
+
zIndex: zIndex.value,
|
|
30
|
+
top: config.top,
|
|
31
|
+
bottom: config.bottom,
|
|
32
|
+
stack: config.stack,
|
|
33
|
+
getContainer: config.getContainer,
|
|
34
|
+
onClose: (key) => remove(key, true)
|
|
35
|
+
});
|
|
36
|
+
function open(args) {
|
|
37
|
+
if (!inBrowser) return;
|
|
38
|
+
ensureHolder(holderProps);
|
|
39
|
+
const key = args.key ?? `am-notification-${++seed}`;
|
|
40
|
+
const prev = records.get(key);
|
|
41
|
+
const closableArg = args.closable ?? config.closable;
|
|
42
|
+
const closable = typeof closableArg === "object" && closableArg !== null ? closableArg : void 0;
|
|
43
|
+
const closeIcon = closable?.closeIcon !== void 0 ? closable.closeIcon : args.closeIcon !== void 0 ? args.closeIcon : config.closeIcon;
|
|
44
|
+
const duration = args.duration ?? config.duration ?? DEFAULT_DURATION;
|
|
45
|
+
const notice = {
|
|
46
|
+
id: prev?.notice.id ?? ++seed,
|
|
47
|
+
key,
|
|
48
|
+
placement: args.placement || !prev ? toEdge(args.placement ?? config.placement) : prev.notice.placement,
|
|
49
|
+
times: (prev?.notice.times ?? -1) + 1,
|
|
50
|
+
duration: typeof duration === "number" && duration > 0 ? duration : 0,
|
|
51
|
+
title: args.title,
|
|
52
|
+
description: args.description,
|
|
53
|
+
actions: args.actions,
|
|
54
|
+
icon: args.icon,
|
|
55
|
+
type: args.type,
|
|
56
|
+
showProgress: args.showProgress ?? config.showProgress,
|
|
57
|
+
pauseOnHover: args.pauseOnHover ?? config.pauseOnHover,
|
|
58
|
+
closable: closableArg !== false,
|
|
59
|
+
closeIcon,
|
|
60
|
+
closeDisabled: closable?.disabled,
|
|
61
|
+
role: args.role,
|
|
62
|
+
class: args.class,
|
|
63
|
+
style: args.style,
|
|
64
|
+
classes: {
|
|
65
|
+
...config.classes,
|
|
66
|
+
...args.classes
|
|
67
|
+
},
|
|
68
|
+
styles: {
|
|
69
|
+
...config.styles,
|
|
70
|
+
...args.styles
|
|
71
|
+
},
|
|
72
|
+
props: args.props,
|
|
73
|
+
onClick: args.onClick
|
|
74
|
+
};
|
|
75
|
+
records.set(key, {
|
|
76
|
+
notice,
|
|
77
|
+
onClose: args.onClose,
|
|
78
|
+
onClosableClose: closable?.onClose
|
|
79
|
+
});
|
|
80
|
+
if (prev) {
|
|
81
|
+
notices.value = notices.value.map((n) => n === prev.notice ? notice : n);
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
zIndex.value = nextZIndex();
|
|
85
|
+
notices.value = [...notices.value, notice];
|
|
86
|
+
const { maxCount } = config;
|
|
87
|
+
if (typeof maxCount === "number" && maxCount > 0) while (notices.value.length > maxCount) remove(notices.value[0].key, true);
|
|
88
|
+
}
|
|
89
|
+
function destroy(key) {
|
|
90
|
+
if (key !== void 0) {
|
|
91
|
+
remove(key, false);
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
Array.from(records.keys()).forEach((k) => remove(k, false));
|
|
95
|
+
}
|
|
96
|
+
const typeOpen = (type) => (args) => open({
|
|
97
|
+
...args,
|
|
98
|
+
type
|
|
99
|
+
});
|
|
100
|
+
return {
|
|
101
|
+
open,
|
|
102
|
+
destroy,
|
|
103
|
+
success: typeOpen("success"),
|
|
104
|
+
error: typeOpen("error"),
|
|
105
|
+
info: typeOpen("info"),
|
|
106
|
+
warning: typeOpen("warning"),
|
|
107
|
+
holderProps
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
var globalOptions = shallowReactive({});
|
|
111
|
+
var holder;
|
|
112
|
+
function ensureStaticHolder(holderProps) {
|
|
113
|
+
if (holder) {
|
|
114
|
+
const el = holder.instance?.nativeElement;
|
|
115
|
+
if (!el || el.isConnected) return;
|
|
116
|
+
holder.unmount();
|
|
117
|
+
holder = void 0;
|
|
118
|
+
}
|
|
119
|
+
const current = {
|
|
120
|
+
unmount: () => {},
|
|
121
|
+
instance: void 0
|
|
122
|
+
};
|
|
123
|
+
holder = current;
|
|
124
|
+
current.unmount = mountComponent(() => h(NotificationHolder_default, {
|
|
125
|
+
...holderProps(),
|
|
126
|
+
ref: (instance) => {
|
|
127
|
+
if (instance) current.instance = instance;
|
|
128
|
+
}
|
|
129
|
+
}), globalOptions.appContext).unmount;
|
|
130
|
+
}
|
|
131
|
+
var staticManager = createManager(globalOptions, ensureStaticHolder);
|
|
132
|
+
function pickInstance(manager) {
|
|
133
|
+
const { open, destroy, success, error, info, warning } = manager;
|
|
134
|
+
return {
|
|
135
|
+
open,
|
|
136
|
+
destroy,
|
|
137
|
+
success,
|
|
138
|
+
error,
|
|
139
|
+
info,
|
|
140
|
+
warning
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
function useNotification(config = {}) {
|
|
144
|
+
const manager = createManager(config, () => {});
|
|
145
|
+
const ContextHolder = defineComponent({
|
|
146
|
+
name: "AmNotificationContextHolder",
|
|
147
|
+
setup() {
|
|
148
|
+
return () => h(NotificationHolder_default, manager.holderProps());
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
return [pickInstance(manager), ContextHolder];
|
|
152
|
+
}
|
|
153
|
+
var notification = {
|
|
154
|
+
...pickInstance(staticManager),
|
|
155
|
+
config(options) {
|
|
156
|
+
Object.assign(globalOptions, options);
|
|
157
|
+
},
|
|
158
|
+
useNotification
|
|
159
|
+
};
|
|
160
|
+
export { notification as default };
|