zartui 0.1.112 → 3.0.2
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/README.md +6 -2
- package/es/badge/Badge.d.ts +66 -0
- package/es/badge/Badge.mjs +95 -0
- package/es/badge/index.css +1 -0
- package/es/badge/index.d.ts +49 -0
- package/es/badge/index.mjs +8 -0
- package/es/badge/style/index.d.ts +1 -0
- package/es/badge/style/index.mjs +2 -0
- package/es/button/Button.d.ts +154 -0
- package/es/button/Button.mjs +166 -0
- package/es/button/index.css +1 -0
- package/es/button/index.d.ts +113 -0
- package/es/button/index.mjs +8 -0
- package/es/button/style/index.d.ts +1 -0
- package/es/button/style/index.mjs +5 -0
- package/es/button/types.d.ts +5 -0
- package/es/button/types.mjs +0 -0
- package/es/cell/Cell.d.ts +128 -0
- package/es/cell/Cell.mjs +132 -0
- package/es/cell/index.css +1 -0
- package/es/cell/index.d.ts +74 -0
- package/es/cell/index.mjs +8 -0
- package/es/cell/style/index.d.ts +1 -0
- package/es/cell/style/index.mjs +4 -0
- package/es/col/Col.d.ts +38 -0
- package/es/col/Col.mjs +63 -0
- package/es/col/index.css +1 -0
- package/es/col/index.d.ts +31 -0
- package/es/col/index.mjs +8 -0
- package/es/col/style/index.d.ts +1 -0
- package/es/col/style/index.mjs +3 -0
- package/es/composables/on-popup-reopen.d.ts +3 -0
- package/es/composables/on-popup-reopen.mjs +16 -0
- package/es/composables/use-expose.d.ts +1 -0
- package/es/composables/use-expose.mjs +11 -0
- package/es/composables/use-height.d.ts +2 -0
- package/es/composables/use-height.mjs +20 -0
- package/es/composables/use-id.d.ts +1 -0
- package/es/composables/use-id.mjs +13 -0
- package/es/composables/use-lazy-render.d.ts +2 -0
- package/es/composables/use-lazy-render.mjs +17 -0
- package/es/composables/use-lock-scroll.d.ts +2 -0
- package/es/composables/use-lock-scroll.mjs +56 -0
- package/es/composables/use-placeholder.d.ts +3 -0
- package/es/composables/use-placeholder.mjs +14 -0
- package/es/composables/use-refs.d.ts +2 -0
- package/es/composables/use-refs.mjs +20 -0
- package/es/composables/use-route.d.ts +13 -0
- package/es/composables/use-route.mjs +29 -0
- package/es/composables/use-tab-status.d.ts +3 -0
- package/es/composables/use-tab-status.mjs +7 -0
- package/es/composables/use-touch.d.ts +16 -0
- package/es/composables/use-touch.mjs +61 -0
- package/es/composables/use-visibility-change.d.ts +2 -0
- package/es/composables/use-visibility-change.mjs +30 -0
- package/es/config-provider/ConfigProvider.d.ts +47 -0
- package/es/config-provider/ConfigProvider.mjs +64 -0
- package/es/config-provider/index.d.ts +33 -0
- package/es/config-provider/index.mjs +8 -0
- package/es/config-provider/style/index.d.ts +1 -0
- package/es/config-provider/style/index.mjs +1 -0
- package/es/divider/Divider.d.ts +40 -0
- package/es/divider/Divider.mjs +31 -0
- package/es/divider/index.css +1 -0
- package/es/divider/index.d.ts +32 -0
- package/es/divider/index.mjs +8 -0
- package/es/divider/style/index.d.ts +1 -0
- package/es/divider/style/index.mjs +2 -0
- package/es/empty/Empty.d.ts +29 -0
- package/es/empty/Empty.mjs +58 -0
- package/es/empty/Images.d.ts +4 -0
- package/es/empty/Images.mjs +2104 -0
- package/es/empty/index.css +1 -0
- package/es/empty/index.d.ts +24 -0
- package/es/empty/index.mjs +8 -0
- package/es/empty/style/index.d.ts +1 -0
- package/es/empty/style/index.mjs +2 -0
- package/es/icon/Icon.d.ts +45 -0
- package/es/icon/Icon.mjs +59 -0
- package/es/icon/config.d.ts +41 -0
- package/es/icon/config.mjs +139 -0
- package/es/icon/index.css +1 -0
- package/es/icon/index.d.ts +35 -0
- package/es/icon/index.mjs +8 -0
- package/es/icon/style/index.d.ts +1 -0
- package/es/icon/style/index.mjs +3 -0
- package/es/index.d.ts +35 -0
- package/es/index.mjs +105 -0
- package/es/list/List.d.ts +74 -0
- package/es/list/List.mjs +147 -0
- package/es/list/index.css +1 -0
- package/es/list/index.d.ts +59 -0
- package/es/list/index.mjs +8 -0
- package/es/list/style/index.d.ts +1 -0
- package/es/list/style/index.mjs +4 -0
- package/es/list/types.d.ts +7 -0
- package/es/list/types.mjs +0 -0
- package/es/loading/Loading.d.ts +39 -0
- package/es/loading/Loading.mjs +114 -0
- package/es/loading/index.css +1 -0
- package/es/loading/index.d.ts +31 -0
- package/es/loading/index.mjs +8 -0
- package/es/loading/style/index.d.ts +1 -0
- package/es/loading/style/index.mjs +2 -0
- package/es/locale/index.d.ts +7 -0
- package/es/locale/index.mjs +24 -0
- package/es/locale/lang/en-US.d.ts +62 -0
- package/es/locale/lang/en-US.mjs +64 -0
- package/es/locale/lang/zh-CN.d.ts +62 -0
- package/es/locale/lang/zh-CN.mjs +64 -0
- package/es/locale/style/index.d.ts +1 -0
- package/es/locale/style/index.mjs +1 -0
- package/es/notice-bar/NoticeBar.d.ts +71 -0
- package/es/notice-bar/NoticeBar.mjs +165 -0
- package/es/notice-bar/index.css +1 -0
- package/es/notice-bar/index.d.ts +56 -0
- package/es/notice-bar/index.mjs +8 -0
- package/es/notice-bar/style/index.d.ts +1 -0
- package/es/notice-bar/style/index.mjs +4 -0
- package/es/notice-bar/types.d.ts +7 -0
- package/es/notice-bar/types.mjs +0 -0
- package/es/notify/Notify.d.ts +134 -0
- package/es/notify/Notify.mjs +44 -0
- package/es/notify/function-call.d.ts +6 -0
- package/es/notify/function-call.mjs +68 -0
- package/es/notify/index.css +1 -0
- package/es/notify/index.d.ts +99 -0
- package/es/notify/index.mjs +18 -0
- package/es/notify/style/index.d.ts +1 -0
- package/es/notify/style/index.mjs +6 -0
- package/es/notify/types.d.ts +17 -0
- package/es/notify/types.mjs +0 -0
- package/es/number-keyboard/NumberKeyboard.d.ts +162 -0
- package/es/number-keyboard/NumberKeyboard.mjs +243 -0
- package/es/number-keyboard/NumberKeyboardKey.d.ts +24 -0
- package/es/number-keyboard/NumberKeyboardKey.mjs +89 -0
- package/es/number-keyboard/index.css +1 -0
- package/es/number-keyboard/index.d.ts +119 -0
- package/es/number-keyboard/index.mjs +8 -0
- package/es/number-keyboard/style/index.d.ts +1 -0
- package/es/number-keyboard/style/index.mjs +9 -0
- package/es/overlay/Overlay.d.ts +51 -0
- package/es/overlay/Overlay.mjs +47 -0
- package/es/overlay/index.css +1 -0
- package/es/overlay/index.d.ts +40 -0
- package/es/overlay/index.mjs +8 -0
- package/es/overlay/style/index.d.ts +1 -0
- package/es/overlay/style/index.mjs +2 -0
- package/es/password-input/PasswordInput.d.ts +63 -0
- package/es/password-input/PasswordInput.mjs +78 -0
- package/es/password-input/index.css +1 -0
- package/es/password-input/index.d.ts +49 -0
- package/es/password-input/index.mjs +8 -0
- package/es/password-input/style/index.d.ts +1 -0
- package/es/password-input/style/index.mjs +2 -0
- package/es/popup/Popup.d.ts +165 -0
- package/es/popup/Popup.mjs +205 -0
- package/es/popup/index.css +1 -0
- package/es/popup/index.d.ts +123 -0
- package/es/popup/index.mjs +8 -0
- package/es/popup/shared.d.ts +30 -0
- package/es/popup/shared.mjs +22 -0
- package/es/popup/style/index.d.ts +1 -0
- package/es/popup/style/index.mjs +5 -0
- package/es/popup/types.d.ts +8 -0
- package/es/popup/types.mjs +0 -0
- package/es/pull-refresh/PullRefresh.d.ts +75 -0
- package/es/pull-refresh/PullRefresh.mjs +191 -0
- package/es/pull-refresh/index.css +1 -0
- package/es/pull-refresh/index.d.ts +58 -0
- package/es/pull-refresh/index.mjs +8 -0
- package/es/pull-refresh/style/index.d.ts +1 -0
- package/es/pull-refresh/style/index.mjs +3 -0
- package/es/rate/Rate.d.ts +107 -0
- package/es/rate/Rate.mjs +217 -0
- package/es/rate/index.css +1 -0
- package/es/rate/index.d.ts +80 -0
- package/es/rate/index.mjs +8 -0
- package/es/rate/style/index.d.ts +1 -0
- package/es/rate/style/index.mjs +4 -0
- package/es/row/Row.d.ts +64 -0
- package/es/row/Row.mjs +91 -0
- package/es/row/index.css +1 -0
- package/es/row/index.d.ts +42 -0
- package/es/row/index.mjs +8 -0
- package/es/row/style/index.d.ts +1 -0
- package/es/row/style/index.mjs +2 -0
- package/es/stepper/Stepper.d.ts +181 -0
- package/es/stepper/Stepper.mjs +258 -0
- package/es/stepper/index.css +1 -0
- package/es/stepper/index.d.ts +132 -0
- package/es/stepper/index.mjs +8 -0
- package/es/stepper/style/index.d.ts +1 -0
- package/es/stepper/style/index.mjs +4 -0
- package/es/sticky/Sticky.d.ts +58 -0
- package/es/sticky/Sticky.mjs +119 -0
- package/es/sticky/index.css +1 -0
- package/es/sticky/index.d.ts +45 -0
- package/es/sticky/index.mjs +8 -0
- package/es/sticky/style/index.d.ts +1 -0
- package/es/sticky/style/index.mjs +2 -0
- package/es/style/animation.css +1 -0
- package/es/style/base.css +1 -0
- package/es/style/css-variables.css +1 -0
- package/es/style/mixins/clearfix.css +0 -0
- package/es/style/mixins/ellipsis.css +0 -0
- package/es/style/mixins/hairline.css +0 -0
- package/es/style/normalize.css +1 -0
- package/es/swipe/Swipe.d.ts +121 -0
- package/es/swipe/Swipe.mjs +353 -0
- package/es/swipe/index.css +1 -0
- package/es/swipe/index.d.ts +90 -0
- package/es/swipe/index.mjs +8 -0
- package/es/swipe/style/index.d.ts +1 -0
- package/es/swipe/style/index.mjs +2 -0
- package/es/swipe/types.d.ts +31 -0
- package/es/swipe/types.mjs +0 -0
- package/es/swipe-item/SwipeItem.d.ts +2 -0
- package/es/swipe-item/SwipeItem.mjs +82 -0
- package/es/swipe-item/index.css +1 -0
- package/es/swipe-item/index.d.ts +7 -0
- package/es/swipe-item/index.mjs +8 -0
- package/es/swipe-item/style/index.d.ts +1 -0
- package/es/swipe-item/style/index.mjs +3 -0
- package/es/switch/Switch.d.ts +58 -0
- package/es/switch/Switch.mjs +85 -0
- package/es/switch/index.css +1 -0
- package/es/switch/index.d.ts +46 -0
- package/es/switch/index.mjs +8 -0
- package/es/switch/style/index.d.ts +1 -0
- package/es/switch/style/index.mjs +3 -0
- package/es/tab/Tab.d.ts +58 -0
- package/es/tab/Tab.mjs +113 -0
- package/es/tab/index.css +1 -0
- package/es/tab/index.d.ts +45 -0
- package/es/tab/index.mjs +8 -0
- package/es/tab/style/index.d.ts +1 -0
- package/es/tab/style/index.mjs +7 -0
- package/es/tabs/Tabs.d.ts +154 -0
- package/es/tabs/Tabs.mjs +352 -0
- package/es/tabs/TabsContent.d.ts +43 -0
- package/es/tabs/TabsContent.mjs +64 -0
- package/es/tabs/TabsTitle.d.ts +45 -0
- package/es/tabs/TabsTitle.mjs +90 -0
- package/es/tabs/index.css +1 -0
- package/es/tabs/index.d.ts +114 -0
- package/es/tabs/index.mjs +8 -0
- package/es/tabs/style/index.d.ts +1 -0
- package/es/tabs/style/index.mjs +5 -0
- package/es/tabs/types.d.ts +23 -0
- package/es/tabs/types.mjs +0 -0
- package/es/tabs/utils.d.ts +3 -0
- package/es/tabs/utils.mjs +37 -0
- package/es/toast/Toast.d.ts +112 -0
- package/es/toast/Toast.mjs +119 -0
- package/es/toast/function-call.d.ts +10 -0
- package/es/toast/function-call.mjs +142 -0
- package/es/toast/index.css +1 -0
- package/es/toast/index.d.ts +79 -0
- package/es/toast/index.mjs +26 -0
- package/es/toast/lock-click.d.ts +1 -0
- package/es/toast/lock-click.mjs +17 -0
- package/es/toast/style/index.d.ts +1 -0
- package/es/toast/style/index.mjs +7 -0
- package/es/toast/types.d.ts +36 -0
- package/es/toast/types.mjs +0 -0
- package/es/utils/basic.d.ts +18 -0
- package/es/utils/basic.mjs +32 -0
- package/es/utils/constant.d.ts +8 -0
- package/es/utils/constant.mjs +18 -0
- package/es/utils/create.d.ts +17 -0
- package/es/utils/create.mjs +50 -0
- package/es/utils/deep-assign.d.ts +3 -0
- package/es/utils/deep-assign.mjs +22 -0
- package/es/utils/deep-clone.d.ts +1 -0
- package/es/utils/deep-clone.mjs +20 -0
- package/es/utils/dom.d.ts +12 -0
- package/es/utils/dom.mjs +67 -0
- package/es/utils/format.d.ts +13 -0
- package/es/utils/format.mjs +120 -0
- package/es/utils/index.d.ts +9 -0
- package/es/utils/index.mjs +9 -0
- package/es/utils/interceptor.d.ts +6 -0
- package/es/utils/interceptor.mjs +29 -0
- package/es/utils/mount-component.d.ts +14 -0
- package/es/utils/mount-component.mjs +39 -0
- package/es/utils/props.d.ts +31 -0
- package/es/utils/props.mjs +36 -0
- package/es/utils/validate.d.ts +9 -0
- package/es/utils/validate.mjs +22 -0
- package/es/utils/with-install.d.ts +13 -0
- package/es/utils/with-install.mjs +12 -0
- package/es/vue-sfc-shim.d.ts +6 -0
- package/es/vue-tsx-shim.d.ts +16 -0
- package/lib/badge/Badge.d.ts +66 -0
- package/lib/badge/Badge.js +114 -0
- package/lib/badge/index.css +1 -0
- package/lib/badge/index.d.ts +49 -0
- package/lib/badge/index.js +33 -0
- package/lib/badge/style/index.d.ts +1 -0
- package/lib/badge/style/index.js +2 -0
- package/lib/button/Button.d.ts +154 -0
- package/lib/button/Button.js +185 -0
- package/lib/button/index.css +1 -0
- package/lib/button/index.d.ts +113 -0
- package/lib/button/index.js +33 -0
- package/lib/button/style/index.d.ts +1 -0
- package/lib/button/style/index.js +5 -0
- package/lib/button/types.d.ts +5 -0
- package/lib/button/types.js +15 -0
- package/lib/cell/Cell.d.ts +128 -0
- package/lib/cell/Cell.js +151 -0
- package/lib/cell/index.css +1 -0
- package/lib/cell/index.d.ts +74 -0
- package/lib/cell/index.js +33 -0
- package/lib/cell/style/index.d.ts +1 -0
- package/lib/cell/style/index.js +4 -0
- package/lib/col/Col.d.ts +38 -0
- package/lib/col/Col.js +82 -0
- package/lib/col/index.css +1 -0
- package/lib/col/index.d.ts +31 -0
- package/lib/col/index.js +33 -0
- package/lib/col/style/index.d.ts +1 -0
- package/lib/col/style/index.js +3 -0
- package/lib/composables/on-popup-reopen.d.ts +3 -0
- package/lib/composables/on-popup-reopen.js +35 -0
- package/lib/composables/use-expose.d.ts +1 -0
- package/lib/composables/use-expose.js +30 -0
- package/lib/composables/use-height.d.ts +2 -0
- package/lib/composables/use-height.js +39 -0
- package/lib/composables/use-id.d.ts +1 -0
- package/lib/composables/use-id.js +32 -0
- package/lib/composables/use-lazy-render.d.ts +2 -0
- package/lib/composables/use-lazy-render.js +36 -0
- package/lib/composables/use-lock-scroll.d.ts +2 -0
- package/lib/composables/use-lock-scroll.js +75 -0
- package/lib/composables/use-placeholder.d.ts +3 -0
- package/lib/composables/use-placeholder.js +33 -0
- package/lib/composables/use-refs.d.ts +2 -0
- package/lib/composables/use-refs.js +39 -0
- package/lib/composables/use-route.d.ts +13 -0
- package/lib/composables/use-route.js +46 -0
- package/lib/composables/use-tab-status.d.ts +3 -0
- package/lib/composables/use-tab-status.js +26 -0
- package/lib/composables/use-touch.d.ts +16 -0
- package/lib/composables/use-touch.js +80 -0
- package/lib/composables/use-visibility-change.d.ts +2 -0
- package/lib/composables/use-visibility-change.js +49 -0
- package/lib/config-provider/ConfigProvider.d.ts +47 -0
- package/lib/config-provider/ConfigProvider.js +83 -0
- package/lib/config-provider/index.d.ts +33 -0
- package/lib/config-provider/index.js +33 -0
- package/lib/config-provider/style/index.d.ts +1 -0
- package/lib/config-provider/style/index.js +1 -0
- package/lib/divider/Divider.d.ts +40 -0
- package/lib/divider/Divider.js +50 -0
- package/lib/divider/index.css +1 -0
- package/lib/divider/index.d.ts +32 -0
- package/lib/divider/index.js +33 -0
- package/lib/divider/style/index.d.ts +1 -0
- package/lib/divider/style/index.js +2 -0
- package/lib/empty/Empty.d.ts +29 -0
- package/lib/empty/Empty.js +77 -0
- package/lib/empty/Images.d.ts +4 -0
- package/lib/empty/Images.js +2123 -0
- package/lib/empty/index.css +1 -0
- package/lib/empty/index.d.ts +24 -0
- package/lib/empty/index.js +33 -0
- package/lib/empty/style/index.d.ts +1 -0
- package/lib/empty/style/index.js +2 -0
- package/lib/icon/Icon.d.ts +45 -0
- package/lib/icon/Icon.js +78 -0
- package/lib/icon/config.d.ts +41 -0
- package/lib/icon/config.js +158 -0
- package/lib/icon/index.css +1 -0
- package/lib/icon/index.d.ts +35 -0
- package/lib/icon/index.js +33 -0
- package/lib/icon/style/index.d.ts +1 -0
- package/lib/icon/style/index.js +3 -0
- package/lib/index.css +1 -0
- package/lib/index.d.ts +35 -0
- package/lib/index.js +125 -0
- package/lib/list/List.d.ts +74 -0
- package/lib/list/List.js +166 -0
- package/lib/list/index.css +1 -0
- package/lib/list/index.d.ts +59 -0
- package/lib/list/index.js +33 -0
- package/lib/list/style/index.d.ts +1 -0
- package/lib/list/style/index.js +4 -0
- package/lib/list/types.d.ts +7 -0
- package/lib/list/types.js +15 -0
- package/lib/loading/Loading.d.ts +39 -0
- package/lib/loading/Loading.js +133 -0
- package/lib/loading/index.css +1 -0
- package/lib/loading/index.d.ts +31 -0
- package/lib/loading/index.js +33 -0
- package/lib/loading/style/index.d.ts +1 -0
- package/lib/loading/style/index.js +2 -0
- package/lib/locale/index.d.ts +7 -0
- package/lib/locale/index.js +49 -0
- package/lib/locale/lang/en-US.d.ts +62 -0
- package/lib/locale/lang/en-US.js +83 -0
- package/lib/locale/lang/zh-CN.d.ts +62 -0
- package/lib/locale/lang/zh-CN.js +83 -0
- package/lib/locale/style/index.d.ts +1 -0
- package/lib/locale/style/index.js +1 -0
- package/lib/notice-bar/NoticeBar.d.ts +71 -0
- package/lib/notice-bar/NoticeBar.js +190 -0
- package/lib/notice-bar/index.css +1 -0
- package/lib/notice-bar/index.d.ts +56 -0
- package/lib/notice-bar/index.js +33 -0
- package/lib/notice-bar/style/index.d.ts +1 -0
- package/lib/notice-bar/style/index.js +4 -0
- package/lib/notice-bar/types.d.ts +7 -0
- package/lib/notice-bar/types.js +15 -0
- package/lib/notify/Notify.d.ts +134 -0
- package/lib/notify/Notify.js +63 -0
- package/lib/notify/function-call.d.ts +6 -0
- package/lib/notify/function-call.js +93 -0
- package/lib/notify/index.css +1 -0
- package/lib/notify/index.d.ts +99 -0
- package/lib/notify/index.js +38 -0
- package/lib/notify/style/index.d.ts +1 -0
- package/lib/notify/style/index.js +6 -0
- package/lib/notify/types.d.ts +17 -0
- package/lib/notify/types.js +15 -0
- package/lib/number-keyboard/NumberKeyboard.d.ts +162 -0
- package/lib/number-keyboard/NumberKeyboard.js +268 -0
- package/lib/number-keyboard/NumberKeyboardKey.d.ts +24 -0
- package/lib/number-keyboard/NumberKeyboardKey.js +114 -0
- package/lib/number-keyboard/index.css +1 -0
- package/lib/number-keyboard/index.d.ts +119 -0
- package/lib/number-keyboard/index.js +33 -0
- package/lib/number-keyboard/style/index.d.ts +1 -0
- package/lib/number-keyboard/style/index.js +9 -0
- package/lib/overlay/Overlay.d.ts +51 -0
- package/lib/overlay/Overlay.js +66 -0
- package/lib/overlay/index.css +1 -0
- package/lib/overlay/index.d.ts +40 -0
- package/lib/overlay/index.js +33 -0
- package/lib/overlay/style/index.d.ts +1 -0
- package/lib/overlay/style/index.js +2 -0
- package/lib/password-input/PasswordInput.d.ts +63 -0
- package/lib/password-input/PasswordInput.js +97 -0
- package/lib/password-input/index.css +1 -0
- package/lib/password-input/index.d.ts +49 -0
- package/lib/password-input/index.js +33 -0
- package/lib/password-input/style/index.d.ts +1 -0
- package/lib/password-input/style/index.js +2 -0
- package/lib/popup/Popup.d.ts +165 -0
- package/lib/popup/Popup.js +224 -0
- package/lib/popup/index.css +1 -0
- package/lib/popup/index.d.ts +123 -0
- package/lib/popup/index.js +33 -0
- package/lib/popup/shared.d.ts +30 -0
- package/lib/popup/shared.js +41 -0
- package/lib/popup/style/index.d.ts +1 -0
- package/lib/popup/style/index.js +5 -0
- package/lib/popup/types.d.ts +8 -0
- package/lib/popup/types.js +15 -0
- package/lib/pull-refresh/PullRefresh.d.ts +75 -0
- package/lib/pull-refresh/PullRefresh.js +210 -0
- package/lib/pull-refresh/index.css +1 -0
- package/lib/pull-refresh/index.d.ts +58 -0
- package/lib/pull-refresh/index.js +33 -0
- package/lib/pull-refresh/style/index.d.ts +1 -0
- package/lib/pull-refresh/style/index.js +3 -0
- package/lib/rate/Rate.d.ts +107 -0
- package/lib/rate/Rate.js +236 -0
- package/lib/rate/index.css +1 -0
- package/lib/rate/index.d.ts +80 -0
- package/lib/rate/index.js +33 -0
- package/lib/rate/style/index.d.ts +1 -0
- package/lib/rate/style/index.js +4 -0
- package/lib/row/Row.d.ts +64 -0
- package/lib/row/Row.js +110 -0
- package/lib/row/index.css +1 -0
- package/lib/row/index.d.ts +42 -0
- package/lib/row/index.js +33 -0
- package/lib/row/style/index.d.ts +1 -0
- package/lib/row/style/index.js +2 -0
- package/lib/stepper/Stepper.d.ts +181 -0
- package/lib/stepper/Stepper.js +283 -0
- package/lib/stepper/index.css +1 -0
- package/lib/stepper/index.d.ts +132 -0
- package/lib/stepper/index.js +33 -0
- package/lib/stepper/style/index.d.ts +1 -0
- package/lib/stepper/style/index.js +4 -0
- package/lib/sticky/Sticky.d.ts +58 -0
- package/lib/sticky/Sticky.js +138 -0
- package/lib/sticky/index.css +1 -0
- package/lib/sticky/index.d.ts +45 -0
- package/lib/sticky/index.js +33 -0
- package/lib/sticky/style/index.d.ts +1 -0
- package/lib/sticky/style/index.js +2 -0
- package/lib/style/animation.css +1 -0
- package/lib/style/base.css +1 -0
- package/lib/style/css-variables.css +1 -0
- package/lib/style/mixins/clearfix.css +0 -0
- package/lib/style/mixins/ellipsis.css +0 -0
- package/lib/style/mixins/hairline.css +0 -0
- package/lib/style/normalize.css +1 -0
- package/lib/swipe/Swipe.d.ts +121 -0
- package/lib/swipe/Swipe.js +372 -0
- package/lib/swipe/index.css +1 -0
- package/lib/swipe/index.d.ts +90 -0
- package/lib/swipe/index.js +33 -0
- package/lib/swipe/style/index.d.ts +1 -0
- package/lib/swipe/style/index.js +2 -0
- package/lib/swipe/types.d.ts +31 -0
- package/lib/swipe/types.js +15 -0
- package/lib/swipe-item/SwipeItem.d.ts +2 -0
- package/lib/swipe-item/SwipeItem.js +101 -0
- package/lib/swipe-item/index.css +1 -0
- package/lib/swipe-item/index.d.ts +7 -0
- package/lib/swipe-item/index.js +33 -0
- package/lib/swipe-item/style/index.d.ts +1 -0
- package/lib/swipe-item/style/index.js +3 -0
- package/lib/switch/Switch.d.ts +58 -0
- package/lib/switch/Switch.js +104 -0
- package/lib/switch/index.css +1 -0
- package/lib/switch/index.d.ts +46 -0
- package/lib/switch/index.js +33 -0
- package/lib/switch/style/index.d.ts +1 -0
- package/lib/switch/style/index.js +3 -0
- package/lib/tab/Tab.d.ts +58 -0
- package/lib/tab/Tab.js +132 -0
- package/lib/tab/index.css +1 -0
- package/lib/tab/index.d.ts +45 -0
- package/lib/tab/index.js +33 -0
- package/lib/tab/style/index.d.ts +1 -0
- package/lib/tab/style/index.js +7 -0
- package/lib/tabs/Tabs.d.ts +154 -0
- package/lib/tabs/Tabs.js +377 -0
- package/lib/tabs/TabsContent.d.ts +43 -0
- package/lib/tabs/TabsContent.js +83 -0
- package/lib/tabs/TabsTitle.d.ts +45 -0
- package/lib/tabs/TabsTitle.js +109 -0
- package/lib/tabs/index.css +1 -0
- package/lib/tabs/index.d.ts +114 -0
- package/lib/tabs/index.js +33 -0
- package/lib/tabs/style/index.d.ts +1 -0
- package/lib/tabs/style/index.js +5 -0
- package/lib/tabs/types.d.ts +23 -0
- package/lib/tabs/types.js +15 -0
- package/lib/tabs/utils.d.ts +3 -0
- package/lib/tabs/utils.js +56 -0
- package/lib/toast/Toast.d.ts +112 -0
- package/lib/toast/Toast.js +138 -0
- package/lib/toast/function-call.d.ts +10 -0
- package/lib/toast/function-call.js +167 -0
- package/lib/toast/index.css +1 -0
- package/lib/toast/index.d.ts +79 -0
- package/lib/toast/index.js +42 -0
- package/lib/toast/lock-click.d.ts +1 -0
- package/lib/toast/lock-click.js +36 -0
- package/lib/toast/style/index.d.ts +1 -0
- package/lib/toast/style/index.js +7 -0
- package/lib/toast/types.d.ts +36 -0
- package/lib/toast/types.js +15 -0
- package/lib/utils/basic.d.ts +18 -0
- package/lib/utils/basic.js +51 -0
- package/lib/utils/constant.d.ts +8 -0
- package/lib/utils/constant.js +37 -0
- package/lib/utils/create.d.ts +17 -0
- package/lib/utils/create.js +75 -0
- package/lib/utils/deep-assign.d.ts +3 -0
- package/lib/utils/deep-assign.js +41 -0
- package/lib/utils/deep-clone.d.ts +1 -0
- package/lib/utils/deep-clone.js +39 -0
- package/lib/utils/dom.d.ts +12 -0
- package/lib/utils/dom.js +86 -0
- package/lib/utils/format.d.ts +13 -0
- package/lib/utils/format.js +139 -0
- package/lib/utils/index.d.ts +9 -0
- package/lib/utils/index.js +25 -0
- package/lib/utils/interceptor.d.ts +6 -0
- package/lib/utils/interceptor.js +48 -0
- package/lib/utils/mount-component.d.ts +14 -0
- package/lib/utils/mount-component.js +58 -0
- package/lib/utils/props.d.ts +31 -0
- package/lib/utils/props.js +55 -0
- package/lib/utils/validate.d.ts +9 -0
- package/lib/utils/validate.js +41 -0
- package/lib/utils/with-install.d.ts +13 -0
- package/lib/utils/with-install.js +31 -0
- package/lib/vue-sfc-shim.d.ts +6 -0
- package/lib/vue-tsx-shim.d.ts +16 -0
- package/lib/web-types.json +3197 -0
- package/lib/zartui.cjs.js +6740 -0
- package/lib/zartui.es.js +6740 -0
- package/lib/zartui.js +6974 -0
- package/lib/zartui.min.js +1 -0
- package/package.json +50 -61
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
+
import { NoticeBarMode } from './types';
|
|
3
|
+
declare const noticeBarProps: {
|
|
4
|
+
text: StringConstructor;
|
|
5
|
+
mode: PropType<NoticeBarMode>;
|
|
6
|
+
color: StringConstructor;
|
|
7
|
+
delay: {
|
|
8
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
9
|
+
default: number;
|
|
10
|
+
};
|
|
11
|
+
speed: {
|
|
12
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
13
|
+
default: number;
|
|
14
|
+
};
|
|
15
|
+
leftIcon: StringConstructor;
|
|
16
|
+
wrapable: BooleanConstructor;
|
|
17
|
+
background: StringConstructor;
|
|
18
|
+
scrollable: {
|
|
19
|
+
type: PropType<boolean | null>;
|
|
20
|
+
default: null;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export declare type NoticeBarProps = ExtractPropTypes<typeof noticeBarProps>;
|
|
24
|
+
declare const _default: import("vue").DefineComponent<{
|
|
25
|
+
text: StringConstructor;
|
|
26
|
+
mode: PropType<NoticeBarMode>;
|
|
27
|
+
color: StringConstructor;
|
|
28
|
+
delay: {
|
|
29
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
30
|
+
default: number;
|
|
31
|
+
};
|
|
32
|
+
speed: {
|
|
33
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
34
|
+
default: number;
|
|
35
|
+
};
|
|
36
|
+
leftIcon: StringConstructor;
|
|
37
|
+
wrapable: BooleanConstructor;
|
|
38
|
+
background: StringConstructor;
|
|
39
|
+
scrollable: {
|
|
40
|
+
type: PropType<boolean | null>;
|
|
41
|
+
default: null;
|
|
42
|
+
};
|
|
43
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "replay")[], "close" | "replay", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
44
|
+
text: StringConstructor;
|
|
45
|
+
mode: PropType<NoticeBarMode>;
|
|
46
|
+
color: StringConstructor;
|
|
47
|
+
delay: {
|
|
48
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
49
|
+
default: number;
|
|
50
|
+
};
|
|
51
|
+
speed: {
|
|
52
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
53
|
+
default: number;
|
|
54
|
+
};
|
|
55
|
+
leftIcon: StringConstructor;
|
|
56
|
+
wrapable: BooleanConstructor;
|
|
57
|
+
background: StringConstructor;
|
|
58
|
+
scrollable: {
|
|
59
|
+
type: PropType<boolean | null>;
|
|
60
|
+
default: null;
|
|
61
|
+
};
|
|
62
|
+
}>> & {
|
|
63
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
64
|
+
onReplay?: ((...args: any[]) => any) | undefined;
|
|
65
|
+
}, {
|
|
66
|
+
delay: string | number;
|
|
67
|
+
speed: string | number;
|
|
68
|
+
wrapable: boolean;
|
|
69
|
+
scrollable: boolean | null;
|
|
70
|
+
}>;
|
|
71
|
+
export default _default;
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name2 in all)
|
|
9
|
+
__defProp(target, name2, { get: all[name2], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
21
|
+
mod
|
|
22
|
+
));
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
+
var stdin_exports = {};
|
|
25
|
+
__export(stdin_exports, {
|
|
26
|
+
default: () => stdin_default
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(stdin_exports);
|
|
29
|
+
var import_vue = require("vue");
|
|
30
|
+
var import_vue2 = require("vue");
|
|
31
|
+
var import_utils = require("../utils");
|
|
32
|
+
var import_use = require("@zartui/use");
|
|
33
|
+
var import_use_expose = require("../composables/use-expose");
|
|
34
|
+
var import_on_popup_reopen = require("../composables/on-popup-reopen");
|
|
35
|
+
var import_icon = __toESM(require("../icon"));
|
|
36
|
+
const [name, bem] = (0, import_utils.createNamespace)("notice-bar");
|
|
37
|
+
const noticeBarProps = {
|
|
38
|
+
text: String,
|
|
39
|
+
mode: String,
|
|
40
|
+
color: String,
|
|
41
|
+
delay: (0, import_utils.makeNumericProp)(1),
|
|
42
|
+
speed: (0, import_utils.makeNumericProp)(60),
|
|
43
|
+
leftIcon: String,
|
|
44
|
+
wrapable: Boolean,
|
|
45
|
+
background: String,
|
|
46
|
+
scrollable: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: null
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
var stdin_default = (0, import_vue2.defineComponent)({
|
|
52
|
+
name,
|
|
53
|
+
props: noticeBarProps,
|
|
54
|
+
emits: ["close", "replay"],
|
|
55
|
+
setup(props, {
|
|
56
|
+
emit,
|
|
57
|
+
slots
|
|
58
|
+
}) {
|
|
59
|
+
let wrapWidth = 0;
|
|
60
|
+
let contentWidth = 0;
|
|
61
|
+
let startTimer;
|
|
62
|
+
const wrapRef = (0, import_vue2.ref)();
|
|
63
|
+
const contentRef = (0, import_vue2.ref)();
|
|
64
|
+
const state = (0, import_vue2.reactive)({
|
|
65
|
+
show: true,
|
|
66
|
+
offset: 0,
|
|
67
|
+
duration: 0
|
|
68
|
+
});
|
|
69
|
+
const renderLeftIcon = () => {
|
|
70
|
+
if (slots["left-icon"]) {
|
|
71
|
+
return slots["left-icon"]();
|
|
72
|
+
}
|
|
73
|
+
if (props.leftIcon) {
|
|
74
|
+
return (0, import_vue.createVNode)(import_icon.default, {
|
|
75
|
+
"class": bem("left-icon"),
|
|
76
|
+
"name": props.leftIcon
|
|
77
|
+
}, null);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
const getRightIconName = () => {
|
|
81
|
+
if (props.mode === "closeable") {
|
|
82
|
+
return "clear-r";
|
|
83
|
+
}
|
|
84
|
+
if (props.mode === "link") {
|
|
85
|
+
return "arrow-right";
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
const onClickRightIcon = (event) => {
|
|
89
|
+
if (props.mode === "closeable") {
|
|
90
|
+
state.show = false;
|
|
91
|
+
emit("close", event);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
const renderRightIcon = () => {
|
|
95
|
+
if (slots["right-icon"]) {
|
|
96
|
+
return slots["right-icon"]();
|
|
97
|
+
}
|
|
98
|
+
const name2 = getRightIconName();
|
|
99
|
+
if (name2) {
|
|
100
|
+
return (0, import_vue.createVNode)(import_icon.default, {
|
|
101
|
+
"name": name2,
|
|
102
|
+
"class": bem("right-icon"),
|
|
103
|
+
"onClick": onClickRightIcon
|
|
104
|
+
}, null);
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
const onTransitionEnd = () => {
|
|
108
|
+
state.offset = wrapWidth;
|
|
109
|
+
state.duration = 0;
|
|
110
|
+
(0, import_use.raf)(() => {
|
|
111
|
+
(0, import_use.doubleRaf)(() => {
|
|
112
|
+
state.offset = -contentWidth;
|
|
113
|
+
state.duration = (contentWidth + wrapWidth) / +props.speed;
|
|
114
|
+
emit("replay");
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
const renderMarquee = () => {
|
|
119
|
+
const ellipsis = props.scrollable === false && !props.wrapable;
|
|
120
|
+
const style = {
|
|
121
|
+
transform: state.offset ? `translateX(${state.offset}px)` : "",
|
|
122
|
+
transitionDuration: `${state.duration}s`
|
|
123
|
+
};
|
|
124
|
+
return (0, import_vue.createVNode)("div", {
|
|
125
|
+
"ref": wrapRef,
|
|
126
|
+
"role": "marquee",
|
|
127
|
+
"class": bem("wrap")
|
|
128
|
+
}, [(0, import_vue.createVNode)("div", {
|
|
129
|
+
"ref": contentRef,
|
|
130
|
+
"style": style,
|
|
131
|
+
"class": [bem("content"), {
|
|
132
|
+
"zt-ellipsis": ellipsis
|
|
133
|
+
}],
|
|
134
|
+
"onTransitionend": onTransitionEnd
|
|
135
|
+
}, [slots.default ? slots.default() : props.text])]);
|
|
136
|
+
};
|
|
137
|
+
const reset = () => {
|
|
138
|
+
const {
|
|
139
|
+
delay,
|
|
140
|
+
speed,
|
|
141
|
+
scrollable
|
|
142
|
+
} = props;
|
|
143
|
+
const ms = (0, import_utils.isDef)(delay) ? +delay * 1e3 : 0;
|
|
144
|
+
wrapWidth = 0;
|
|
145
|
+
contentWidth = 0;
|
|
146
|
+
state.offset = 0;
|
|
147
|
+
state.duration = 0;
|
|
148
|
+
clearTimeout(startTimer);
|
|
149
|
+
startTimer = setTimeout(() => {
|
|
150
|
+
if (!wrapRef.value || !contentRef.value || scrollable === false) {
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
const wrapRefWidth = (0, import_use.useRect)(wrapRef).width;
|
|
154
|
+
const contentRefWidth = (0, import_use.useRect)(contentRef).width;
|
|
155
|
+
if (scrollable || contentRefWidth > wrapRefWidth) {
|
|
156
|
+
(0, import_use.doubleRaf)(() => {
|
|
157
|
+
wrapWidth = wrapRefWidth;
|
|
158
|
+
contentWidth = contentRefWidth;
|
|
159
|
+
state.offset = -contentWidth;
|
|
160
|
+
state.duration = contentWidth / +speed;
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
}, ms);
|
|
164
|
+
};
|
|
165
|
+
(0, import_on_popup_reopen.onPopupReopen)(reset);
|
|
166
|
+
(0, import_use.onMountedOrActivated)(reset);
|
|
167
|
+
(0, import_use.useEventListener)("pageshow", reset);
|
|
168
|
+
(0, import_use_expose.useExpose)({
|
|
169
|
+
reset
|
|
170
|
+
});
|
|
171
|
+
(0, import_vue2.watch)(() => [props.text, props.scrollable], reset);
|
|
172
|
+
return () => {
|
|
173
|
+
const {
|
|
174
|
+
color,
|
|
175
|
+
wrapable,
|
|
176
|
+
background
|
|
177
|
+
} = props;
|
|
178
|
+
return (0, import_vue.withDirectives)((0, import_vue.createVNode)("div", {
|
|
179
|
+
"role": "alert",
|
|
180
|
+
"class": bem({
|
|
181
|
+
wrapable
|
|
182
|
+
}),
|
|
183
|
+
"style": {
|
|
184
|
+
color,
|
|
185
|
+
background
|
|
186
|
+
}
|
|
187
|
+
}, [renderLeftIcon(), renderMarquee(), renderRightIcon()]), [[import_vue.vShow, state.show]]);
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
body{--zt-notice-bar-height: 36px;--zt-notice-bar-padding: 0 var(--zt-padding-md);--zt-notice-bar-wrapable-padding: var(--zt-padding-xs) var(--zt-padding-md);--zt-notice-bar-text-color: var(--zt-orange-2);--zt-notice-bar-font-size: var(--zt-font-size-md);--zt-notice-bar-line-height: 36px;--zt-notice-bar-background: var(--zt-background-4);--zt-notice-bar-icon-size: 20px;--zt-notice-bar-icon-min-width: 20px;--zt-notice-bar-icon-height: 20px}.zt-notice-bar{position:relative;display:flex;align-items:center;height:var(--zt-notice-bar-height);padding:var(--zt-notice-bar-padding);color:var(--zt-notice-bar-text-color);font-size:var(--zt-notice-bar-font-size);line-height:var(--zt-notice-bar-line-height);background:var(--zt-notice-bar-background)}.zt-notice-bar__left-icon,.zt-notice-bar__right-icon{min-width:var(--zt-notice-bar-icon-min-width);font-size:var(--zt-notice-bar-icon-size);height:var(--zt-notice-bar-icon-height)}.zt-notice-bar__right-icon{text-align:right;cursor:pointer}.zt-notice-bar__left-icon-size,.zt-notice-bar__right-icon-size{width:var(--zt-notice-bar-icon-size);height:var(--zt-notice-bar-icon-size)}.zt-notice-bar__wrap{position:relative;display:flex;flex:1;align-items:center;height:100%;overflow:hidden}.zt-notice-bar__content{position:absolute;white-space:nowrap;transition-timing-function:linear}.zt-notice-bar__content.zt-ellipsis{max-width:100%}.zt-notice-bar--wrapable{height:auto;padding:var(--zt-notice-bar-wrapable-padding)}.zt-notice-bar--wrapable .zt-notice-bar__wrap{height:auto}.zt-notice-bar--wrapable .zt-notice-bar__content{position:relative;white-space:normal;word-wrap:break-word}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { NoticeBarProps } from './NoticeBar';
|
|
2
|
+
export declare const NoticeBar: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
3
|
+
text: StringConstructor;
|
|
4
|
+
mode: import("vue").PropType<import("./types").NoticeBarMode>;
|
|
5
|
+
color: StringConstructor;
|
|
6
|
+
delay: {
|
|
7
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
8
|
+
default: number;
|
|
9
|
+
};
|
|
10
|
+
speed: {
|
|
11
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
leftIcon: StringConstructor;
|
|
15
|
+
wrapable: BooleanConstructor;
|
|
16
|
+
background: StringConstructor;
|
|
17
|
+
scrollable: {
|
|
18
|
+
type: import("vue").PropType<boolean | null>;
|
|
19
|
+
default: null;
|
|
20
|
+
};
|
|
21
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "replay")[], "close" | "replay", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
text: StringConstructor;
|
|
23
|
+
mode: import("vue").PropType<import("./types").NoticeBarMode>;
|
|
24
|
+
color: StringConstructor;
|
|
25
|
+
delay: {
|
|
26
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
27
|
+
default: number;
|
|
28
|
+
};
|
|
29
|
+
speed: {
|
|
30
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
31
|
+
default: number;
|
|
32
|
+
};
|
|
33
|
+
leftIcon: StringConstructor;
|
|
34
|
+
wrapable: BooleanConstructor;
|
|
35
|
+
background: StringConstructor;
|
|
36
|
+
scrollable: {
|
|
37
|
+
type: import("vue").PropType<boolean | null>;
|
|
38
|
+
default: null;
|
|
39
|
+
};
|
|
40
|
+
}>> & {
|
|
41
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
42
|
+
onReplay?: ((...args: any[]) => any) | undefined;
|
|
43
|
+
}, {
|
|
44
|
+
delay: string | number;
|
|
45
|
+
speed: string | number;
|
|
46
|
+
wrapable: boolean;
|
|
47
|
+
scrollable: boolean | null;
|
|
48
|
+
}>>;
|
|
49
|
+
export default NoticeBar;
|
|
50
|
+
export type { NoticeBarProps };
|
|
51
|
+
export type { NoticeBarMode, NoticeBarInstance } from './types';
|
|
52
|
+
declare module 'vue' {
|
|
53
|
+
interface GlobalComponents {
|
|
54
|
+
ZtNoticeBar: typeof NoticeBar;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
21
|
+
mod
|
|
22
|
+
));
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
+
var stdin_exports = {};
|
|
25
|
+
__export(stdin_exports, {
|
|
26
|
+
NoticeBar: () => NoticeBar,
|
|
27
|
+
default: () => stdin_default
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(stdin_exports);
|
|
30
|
+
var import_utils = require("../utils");
|
|
31
|
+
var import_NoticeBar = __toESM(require("./NoticeBar"));
|
|
32
|
+
const NoticeBar = (0, import_utils.withInstall)(import_NoticeBar.default);
|
|
33
|
+
var stdin_default = NoticeBar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
2
|
+
import type { NoticeBarProps } from './NoticeBar';
|
|
3
|
+
export declare type NoticeBarMode = 'closeable' | 'link';
|
|
4
|
+
export declare type NoticeBarExpose = {
|
|
5
|
+
reset: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare type NoticeBarInstance = ComponentPublicInstance<NoticeBarProps, NoticeBarExpose>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
var stdin_exports = {};
|
|
15
|
+
module.exports = __toCommonJS(stdin_exports);
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
|
2
|
+
import type { NotifyType, NotifyPosition } from './types';
|
|
3
|
+
declare const notifyProps: {
|
|
4
|
+
show: BooleanConstructor;
|
|
5
|
+
zIndex: (NumberConstructor | StringConstructor)[];
|
|
6
|
+
overlay: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: true;
|
|
9
|
+
};
|
|
10
|
+
duration: (NumberConstructor | StringConstructor)[];
|
|
11
|
+
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
|
12
|
+
lockScroll: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: true;
|
|
15
|
+
};
|
|
16
|
+
lazyRender: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: true;
|
|
19
|
+
};
|
|
20
|
+
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
|
21
|
+
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
|
22
|
+
overlayClass: import("vue").PropType<unknown>;
|
|
23
|
+
transitionAppear: BooleanConstructor;
|
|
24
|
+
closeOnClickOverlay: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: true;
|
|
27
|
+
};
|
|
28
|
+
} & {
|
|
29
|
+
type: {
|
|
30
|
+
type: import("vue").PropType<NotifyType>;
|
|
31
|
+
default: NotifyType;
|
|
32
|
+
};
|
|
33
|
+
color: StringConstructor;
|
|
34
|
+
message: (NumberConstructor | StringConstructor)[];
|
|
35
|
+
position: {
|
|
36
|
+
type: import("vue").PropType<NotifyPosition>;
|
|
37
|
+
default: NotifyPosition;
|
|
38
|
+
};
|
|
39
|
+
className: import("vue").PropType<unknown>;
|
|
40
|
+
background: StringConstructor;
|
|
41
|
+
lockScroll: BooleanConstructor;
|
|
42
|
+
};
|
|
43
|
+
export declare type NotifyProps = ExtractPropTypes<typeof notifyProps>;
|
|
44
|
+
declare const _default: import("vue").DefineComponent<{
|
|
45
|
+
show: BooleanConstructor;
|
|
46
|
+
zIndex: (NumberConstructor | StringConstructor)[];
|
|
47
|
+
overlay: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: true;
|
|
50
|
+
};
|
|
51
|
+
duration: (NumberConstructor | StringConstructor)[];
|
|
52
|
+
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
|
53
|
+
lockScroll: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: true;
|
|
56
|
+
};
|
|
57
|
+
lazyRender: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: true;
|
|
60
|
+
};
|
|
61
|
+
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
|
62
|
+
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
|
63
|
+
overlayClass: import("vue").PropType<unknown>;
|
|
64
|
+
transitionAppear: BooleanConstructor;
|
|
65
|
+
closeOnClickOverlay: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: true;
|
|
68
|
+
};
|
|
69
|
+
} & {
|
|
70
|
+
type: {
|
|
71
|
+
type: import("vue").PropType<NotifyType>;
|
|
72
|
+
default: NotifyType;
|
|
73
|
+
};
|
|
74
|
+
color: StringConstructor;
|
|
75
|
+
message: (NumberConstructor | StringConstructor)[];
|
|
76
|
+
position: {
|
|
77
|
+
type: import("vue").PropType<NotifyPosition>;
|
|
78
|
+
default: NotifyPosition;
|
|
79
|
+
};
|
|
80
|
+
className: import("vue").PropType<unknown>;
|
|
81
|
+
background: StringConstructor;
|
|
82
|
+
lockScroll: BooleanConstructor;
|
|
83
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
84
|
+
show: BooleanConstructor;
|
|
85
|
+
zIndex: (NumberConstructor | StringConstructor)[];
|
|
86
|
+
overlay: {
|
|
87
|
+
type: BooleanConstructor;
|
|
88
|
+
default: true;
|
|
89
|
+
};
|
|
90
|
+
duration: (NumberConstructor | StringConstructor)[];
|
|
91
|
+
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
|
92
|
+
lockScroll: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: true;
|
|
95
|
+
};
|
|
96
|
+
lazyRender: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: true;
|
|
99
|
+
};
|
|
100
|
+
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
|
101
|
+
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
|
102
|
+
overlayClass: import("vue").PropType<unknown>;
|
|
103
|
+
transitionAppear: BooleanConstructor;
|
|
104
|
+
closeOnClickOverlay: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: true;
|
|
107
|
+
};
|
|
108
|
+
} & {
|
|
109
|
+
type: {
|
|
110
|
+
type: import("vue").PropType<NotifyType>;
|
|
111
|
+
default: NotifyType;
|
|
112
|
+
};
|
|
113
|
+
color: StringConstructor;
|
|
114
|
+
message: (NumberConstructor | StringConstructor)[];
|
|
115
|
+
position: {
|
|
116
|
+
type: import("vue").PropType<NotifyPosition>;
|
|
117
|
+
default: NotifyPosition;
|
|
118
|
+
};
|
|
119
|
+
className: import("vue").PropType<unknown>;
|
|
120
|
+
background: StringConstructor;
|
|
121
|
+
lockScroll: BooleanConstructor;
|
|
122
|
+
}>> & {
|
|
123
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
124
|
+
}, {
|
|
125
|
+
type: NotifyType;
|
|
126
|
+
position: NotifyPosition;
|
|
127
|
+
overlay: boolean;
|
|
128
|
+
show: boolean;
|
|
129
|
+
lockScroll: boolean;
|
|
130
|
+
lazyRender: boolean;
|
|
131
|
+
transitionAppear: boolean;
|
|
132
|
+
closeOnClickOverlay: boolean;
|
|
133
|
+
}>;
|
|
134
|
+
export default _default;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name2 in all)
|
|
7
|
+
__defProp(target, name2, { get: all[name2], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var stdin_exports = {};
|
|
19
|
+
__export(stdin_exports, {
|
|
20
|
+
default: () => stdin_default
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(stdin_exports);
|
|
23
|
+
var import_vue = require("vue");
|
|
24
|
+
var import_vue2 = require("vue");
|
|
25
|
+
var import_utils = require("../utils");
|
|
26
|
+
var import_popup = require("../popup");
|
|
27
|
+
var import_shared = require("../popup/shared");
|
|
28
|
+
const [name, bem] = (0, import_utils.createNamespace)("notify");
|
|
29
|
+
const notifyProps = (0, import_utils.extend)({}, import_shared.popupSharedProps, {
|
|
30
|
+
type: (0, import_utils.makeStringProp)("danger"),
|
|
31
|
+
color: String,
|
|
32
|
+
message: import_utils.numericProp,
|
|
33
|
+
position: (0, import_utils.makeStringProp)("top"),
|
|
34
|
+
className: import_utils.unknownProp,
|
|
35
|
+
background: String,
|
|
36
|
+
lockScroll: Boolean
|
|
37
|
+
});
|
|
38
|
+
var stdin_default = (0, import_vue2.defineComponent)({
|
|
39
|
+
name,
|
|
40
|
+
props: notifyProps,
|
|
41
|
+
emits: ["update:show"],
|
|
42
|
+
setup(props, {
|
|
43
|
+
emit,
|
|
44
|
+
slots
|
|
45
|
+
}) {
|
|
46
|
+
const updateShow = (show) => emit("update:show", show);
|
|
47
|
+
return () => (0, import_vue.createVNode)(import_popup.Popup, {
|
|
48
|
+
"show": props.show,
|
|
49
|
+
"class": [bem([props.type]), props.className],
|
|
50
|
+
"style": {
|
|
51
|
+
color: props.color,
|
|
52
|
+
background: props.background
|
|
53
|
+
},
|
|
54
|
+
"overlay": false,
|
|
55
|
+
"position": props.position,
|
|
56
|
+
"duration": 0.2,
|
|
57
|
+
"lockScroll": props.lockScroll,
|
|
58
|
+
"onUpdate:show": updateShow
|
|
59
|
+
}, {
|
|
60
|
+
default: () => [slots.default ? slots.default() : props.message]
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ComponentInstance } from '../utils';
|
|
2
|
+
import type { NotifyMessage, NotifyOptions } from './types';
|
|
3
|
+
export declare const closeNotify: () => void;
|
|
4
|
+
export declare function showNotify(options: NotifyMessage | NotifyOptions): ComponentInstance | undefined;
|
|
5
|
+
export declare const setNotifyDefaultOptions: (options: NotifyOptions) => NotifyOptions;
|
|
6
|
+
export declare const resetNotifyDefaultOptions: () => void;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
21
|
+
mod
|
|
22
|
+
));
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
+
var stdin_exports = {};
|
|
25
|
+
__export(stdin_exports, {
|
|
26
|
+
closeNotify: () => closeNotify,
|
|
27
|
+
resetNotifyDefaultOptions: () => resetNotifyDefaultOptions,
|
|
28
|
+
setNotifyDefaultOptions: () => setNotifyDefaultOptions,
|
|
29
|
+
showNotify: () => showNotify
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(stdin_exports);
|
|
32
|
+
var import_vue = require("vue");
|
|
33
|
+
var import_utils = require("../utils");
|
|
34
|
+
var import_mount_component = require("../utils/mount-component");
|
|
35
|
+
var import_Notify = __toESM(require("./Notify"));
|
|
36
|
+
let timer;
|
|
37
|
+
let instance;
|
|
38
|
+
const parseOptions = (message) => (0, import_utils.isObject)(message) ? message : {
|
|
39
|
+
message
|
|
40
|
+
};
|
|
41
|
+
function initInstance() {
|
|
42
|
+
({
|
|
43
|
+
instance
|
|
44
|
+
} = (0, import_mount_component.mountComponent)({
|
|
45
|
+
setup() {
|
|
46
|
+
const {
|
|
47
|
+
state,
|
|
48
|
+
toggle
|
|
49
|
+
} = (0, import_mount_component.usePopupState)();
|
|
50
|
+
return () => (0, import_vue.createVNode)(import_Notify.default, (0, import_vue.mergeProps)(state, {
|
|
51
|
+
"onUpdate:show": toggle
|
|
52
|
+
}), null);
|
|
53
|
+
}
|
|
54
|
+
}));
|
|
55
|
+
}
|
|
56
|
+
const getDefaultOptions = () => ({
|
|
57
|
+
type: "danger",
|
|
58
|
+
color: void 0,
|
|
59
|
+
message: "",
|
|
60
|
+
onClose: void 0,
|
|
61
|
+
onClick: void 0,
|
|
62
|
+
onOpened: void 0,
|
|
63
|
+
duration: 3e3,
|
|
64
|
+
position: void 0,
|
|
65
|
+
className: "",
|
|
66
|
+
lockScroll: false,
|
|
67
|
+
background: void 0
|
|
68
|
+
});
|
|
69
|
+
let currentOptions = getDefaultOptions();
|
|
70
|
+
const closeNotify = () => {
|
|
71
|
+
if (instance) {
|
|
72
|
+
instance.toggle(false);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
function showNotify(options) {
|
|
76
|
+
if (!import_utils.inBrowser) {
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
if (!instance) {
|
|
80
|
+
initInstance();
|
|
81
|
+
}
|
|
82
|
+
options = (0, import_utils.extend)({}, currentOptions, parseOptions(options));
|
|
83
|
+
instance.open(options);
|
|
84
|
+
clearTimeout(timer);
|
|
85
|
+
if (options.duration > 0) {
|
|
86
|
+
timer = window.setTimeout(closeNotify, options.duration);
|
|
87
|
+
}
|
|
88
|
+
return instance;
|
|
89
|
+
}
|
|
90
|
+
const setNotifyDefaultOptions = (options) => (0, import_utils.extend)(currentOptions, options);
|
|
91
|
+
const resetNotifyDefaultOptions = () => {
|
|
92
|
+
currentOptions = getDefaultOptions();
|
|
93
|
+
};
|