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,167 @@
|
|
|
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
|
+
allowMultipleToast: () => allowMultipleToast,
|
|
27
|
+
closeToast: () => closeToast,
|
|
28
|
+
resetToastDefaultOptions: () => resetToastDefaultOptions,
|
|
29
|
+
setToastDefaultOptions: () => setToastDefaultOptions,
|
|
30
|
+
showFailToast: () => showFailToast,
|
|
31
|
+
showLoadingToast: () => showLoadingToast,
|
|
32
|
+
showSuccessToast: () => showSuccessToast,
|
|
33
|
+
showToast: () => showToast
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(stdin_exports);
|
|
36
|
+
var import_vue = require("vue");
|
|
37
|
+
var import_vue2 = require("vue");
|
|
38
|
+
var import_utils = require("../utils");
|
|
39
|
+
var import_mount_component = require("../utils/mount-component");
|
|
40
|
+
var import_Toast = __toESM(require("./Toast"));
|
|
41
|
+
const defaultOptions = {
|
|
42
|
+
icon: "",
|
|
43
|
+
type: "text",
|
|
44
|
+
message: "",
|
|
45
|
+
className: "",
|
|
46
|
+
overlay: false,
|
|
47
|
+
onClose: void 0,
|
|
48
|
+
onOpened: void 0,
|
|
49
|
+
duration: 2e3,
|
|
50
|
+
teleport: "body",
|
|
51
|
+
iconSize: void 0,
|
|
52
|
+
iconPrefix: void 0,
|
|
53
|
+
position: "middle",
|
|
54
|
+
transition: "zt-fade",
|
|
55
|
+
forbidClick: false,
|
|
56
|
+
loadingType: void 0,
|
|
57
|
+
overlayClass: "",
|
|
58
|
+
overlayStyle: void 0,
|
|
59
|
+
closeOnClick: false,
|
|
60
|
+
closeOnClickOverlay: false
|
|
61
|
+
};
|
|
62
|
+
let queue = [];
|
|
63
|
+
let allowMultiple = false;
|
|
64
|
+
let currentOptions = (0, import_utils.extend)({}, defaultOptions);
|
|
65
|
+
const defaultOptionsMap = /* @__PURE__ */ new Map();
|
|
66
|
+
function parseOptions(message) {
|
|
67
|
+
if ((0, import_utils.isObject)(message)) {
|
|
68
|
+
return message;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
message
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function createInstance() {
|
|
75
|
+
const {
|
|
76
|
+
instance,
|
|
77
|
+
unmount
|
|
78
|
+
} = (0, import_mount_component.mountComponent)({
|
|
79
|
+
setup() {
|
|
80
|
+
const message = (0, import_vue2.ref)("");
|
|
81
|
+
const {
|
|
82
|
+
open,
|
|
83
|
+
state,
|
|
84
|
+
close,
|
|
85
|
+
toggle
|
|
86
|
+
} = (0, import_mount_component.usePopupState)();
|
|
87
|
+
const onClosed = () => {
|
|
88
|
+
if (allowMultiple) {
|
|
89
|
+
queue = queue.filter((item) => item !== instance);
|
|
90
|
+
unmount();
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
const render = () => {
|
|
94
|
+
const attrs = {
|
|
95
|
+
onClosed,
|
|
96
|
+
"onUpdate:show": toggle
|
|
97
|
+
};
|
|
98
|
+
return (0, import_vue.createVNode)(import_Toast.default, (0, import_vue.mergeProps)(state, attrs), null);
|
|
99
|
+
};
|
|
100
|
+
(0, import_vue2.watch)(message, (val) => {
|
|
101
|
+
state.message = val;
|
|
102
|
+
});
|
|
103
|
+
(0, import_vue2.getCurrentInstance)().render = render;
|
|
104
|
+
return {
|
|
105
|
+
open,
|
|
106
|
+
close,
|
|
107
|
+
message
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
return instance;
|
|
112
|
+
}
|
|
113
|
+
function getInstance() {
|
|
114
|
+
if (!queue.length || allowMultiple) {
|
|
115
|
+
const instance = createInstance();
|
|
116
|
+
queue.push(instance);
|
|
117
|
+
}
|
|
118
|
+
return queue[queue.length - 1];
|
|
119
|
+
}
|
|
120
|
+
function showToast(options = {}) {
|
|
121
|
+
if (!import_utils.inBrowser) {
|
|
122
|
+
return {};
|
|
123
|
+
}
|
|
124
|
+
const toast = getInstance();
|
|
125
|
+
const parsedOptions = parseOptions(options);
|
|
126
|
+
toast.open((0, import_utils.extend)({}, currentOptions, defaultOptionsMap.get(parsedOptions.type || currentOptions.type), parsedOptions));
|
|
127
|
+
return toast;
|
|
128
|
+
}
|
|
129
|
+
const createMethod = (type) => (options) => showToast((0, import_utils.extend)({
|
|
130
|
+
type
|
|
131
|
+
}, parseOptions(options)));
|
|
132
|
+
const showLoadingToast = createMethod("loading");
|
|
133
|
+
const showSuccessToast = createMethod("success");
|
|
134
|
+
const showFailToast = createMethod("warning");
|
|
135
|
+
const closeToast = (all) => {
|
|
136
|
+
var _a;
|
|
137
|
+
if (queue.length) {
|
|
138
|
+
if (all) {
|
|
139
|
+
queue.forEach((toast) => {
|
|
140
|
+
toast.close();
|
|
141
|
+
});
|
|
142
|
+
queue = [];
|
|
143
|
+
} else if (!allowMultiple) {
|
|
144
|
+
queue[0].close();
|
|
145
|
+
} else {
|
|
146
|
+
(_a = queue.shift()) == null ? void 0 : _a.close();
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
function setToastDefaultOptions(type, options) {
|
|
151
|
+
if (typeof type === "string") {
|
|
152
|
+
defaultOptionsMap.set(type, options);
|
|
153
|
+
} else {
|
|
154
|
+
(0, import_utils.extend)(currentOptions, type);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
const resetToastDefaultOptions = (type) => {
|
|
158
|
+
if (typeof type === "string") {
|
|
159
|
+
defaultOptionsMap.delete(type);
|
|
160
|
+
} else {
|
|
161
|
+
currentOptions = (0, import_utils.extend)({}, defaultOptions);
|
|
162
|
+
defaultOptionsMap.clear();
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
const allowMultipleToast = (value = true) => {
|
|
166
|
+
allowMultiple = value;
|
|
167
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
body{--zt-toast-max-width: 70%;--zt-toast-font-size: var(--zt-font-size-md);--zt-toast-text-color: var(--zt-white);--zt-toast-loading-icon-color: var(--zt-white);--zt-toast-line-height: var(--zt-line-height-md);--zt-toast-radius: var(--zt-radius-lg);--zt-toast-background: rgba(45, 75, 115, .8);--zt-toast-icon-size: 36px;--zt-toast-text-min-width: 96px;--zt-toast-text-padding: var(--zt-padding-xs) var(--zt-padding-sm);--zt-toast-default-padding: var(--zt-padding-md);--zt-toast-default-width: 88px;--zt-toast-default-min-height: 84px;--zt-toast-position-top-distance: 20%;--zt-toast-position-bottom-distance: 20%}.zt-toast{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:content-box;transition:all var(--zt-duration-fast);width:var(--zt-toast-default-width);max-width:var(--zt-toast-max-width);min-height:var(--zt-toast-default-min-height);padding:var(--zt-toast-default-padding);color:var(--zt-toast-text-color);font-size:var(--zt-toast-font-size);line-height:var(--zt-toast-line-height);white-space:pre-wrap;text-align:center;word-break:break-all;background:var(--zt-toast-background);border-radius:var(--zt-toast-radius)}.zt-toast--unclickable{overflow:hidden;cursor:not-allowed}.zt-toast--unclickable *{pointer-events:none}.zt-toast--text,.zt-toast--html{width:-webkit-fit-content;width:fit-content;min-width:var(--zt-toast-text-min-width);min-height:0;padding:var(--zt-toast-text-padding)}.zt-toast--text .zt-toast__text,.zt-toast--html .zt-toast__text{margin-top:0}.zt-toast--top{top:var(--zt-toast-position-top-distance)}.zt-toast--bottom{top:auto;bottom:var(--zt-toast-position-bottom-distance)}.zt-toast__icon{font-size:var(--zt-toast-icon-size)}.zt-toast__loading{padding:var(--zt-padding-base);color:var(--zt-toast-loading-icon-color)}.zt-toast__text{margin-top:var(--zt-padding-xs)}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export declare const Toast: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
2
|
+
icon: StringConstructor;
|
|
3
|
+
show: BooleanConstructor;
|
|
4
|
+
type: {
|
|
5
|
+
type: import("vue").PropType<import("./types").ToastType>;
|
|
6
|
+
default: import("./types").ToastType;
|
|
7
|
+
};
|
|
8
|
+
overlay: BooleanConstructor;
|
|
9
|
+
message: (NumberConstructor | StringConstructor)[];
|
|
10
|
+
iconSize: (NumberConstructor | StringConstructor)[];
|
|
11
|
+
duration: {
|
|
12
|
+
type: NumberConstructor;
|
|
13
|
+
default: number;
|
|
14
|
+
};
|
|
15
|
+
position: {
|
|
16
|
+
type: import("vue").PropType<import("./types").ToastPosition>;
|
|
17
|
+
default: import("./types").ToastPosition;
|
|
18
|
+
};
|
|
19
|
+
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
|
20
|
+
className: import("vue").PropType<unknown>;
|
|
21
|
+
iconPrefix: StringConstructor;
|
|
22
|
+
transition: {
|
|
23
|
+
type: import("vue").PropType<string>;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
loadingType: import("vue").PropType<import("..").LoadingType>;
|
|
27
|
+
forbidClick: BooleanConstructor;
|
|
28
|
+
overlayClass: import("vue").PropType<unknown>;
|
|
29
|
+
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
|
30
|
+
closeOnClick: BooleanConstructor;
|
|
31
|
+
closeOnClickOverlay: BooleanConstructor;
|
|
32
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
+
icon: StringConstructor;
|
|
34
|
+
show: BooleanConstructor;
|
|
35
|
+
type: {
|
|
36
|
+
type: import("vue").PropType<import("./types").ToastType>;
|
|
37
|
+
default: import("./types").ToastType;
|
|
38
|
+
};
|
|
39
|
+
overlay: BooleanConstructor;
|
|
40
|
+
message: (NumberConstructor | StringConstructor)[];
|
|
41
|
+
iconSize: (NumberConstructor | StringConstructor)[];
|
|
42
|
+
duration: {
|
|
43
|
+
type: NumberConstructor;
|
|
44
|
+
default: number;
|
|
45
|
+
};
|
|
46
|
+
position: {
|
|
47
|
+
type: import("vue").PropType<import("./types").ToastPosition>;
|
|
48
|
+
default: import("./types").ToastPosition;
|
|
49
|
+
};
|
|
50
|
+
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
|
51
|
+
className: import("vue").PropType<unknown>;
|
|
52
|
+
iconPrefix: StringConstructor;
|
|
53
|
+
transition: {
|
|
54
|
+
type: import("vue").PropType<string>;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
loadingType: import("vue").PropType<import("..").LoadingType>;
|
|
58
|
+
forbidClick: BooleanConstructor;
|
|
59
|
+
overlayClass: import("vue").PropType<unknown>;
|
|
60
|
+
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
|
61
|
+
closeOnClick: BooleanConstructor;
|
|
62
|
+
closeOnClickOverlay: BooleanConstructor;
|
|
63
|
+
}>> & {
|
|
64
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
65
|
+
}, {
|
|
66
|
+
type: import("./types").ToastType;
|
|
67
|
+
position: import("./types").ToastPosition;
|
|
68
|
+
overlay: boolean;
|
|
69
|
+
show: boolean;
|
|
70
|
+
duration: number;
|
|
71
|
+
closeOnClickOverlay: boolean;
|
|
72
|
+
transition: string;
|
|
73
|
+
forbidClick: boolean;
|
|
74
|
+
closeOnClick: boolean;
|
|
75
|
+
}>>;
|
|
76
|
+
export default Toast;
|
|
77
|
+
export { showToast, closeToast, showFailToast, showLoadingToast, showSuccessToast, allowMultipleToast, setToastDefaultOptions, resetToastDefaultOptions, } from './function-call';
|
|
78
|
+
export type { ToastProps } from './Toast';
|
|
79
|
+
export type { ToastType, ToastOptions, ToastPosition } from './types';
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
Toast: () => Toast,
|
|
27
|
+
allowMultipleToast: () => import_function_call.allowMultipleToast,
|
|
28
|
+
closeToast: () => import_function_call.closeToast,
|
|
29
|
+
default: () => stdin_default,
|
|
30
|
+
resetToastDefaultOptions: () => import_function_call.resetToastDefaultOptions,
|
|
31
|
+
setToastDefaultOptions: () => import_function_call.setToastDefaultOptions,
|
|
32
|
+
showFailToast: () => import_function_call.showFailToast,
|
|
33
|
+
showLoadingToast: () => import_function_call.showLoadingToast,
|
|
34
|
+
showSuccessToast: () => import_function_call.showSuccessToast,
|
|
35
|
+
showToast: () => import_function_call.showToast
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(stdin_exports);
|
|
38
|
+
var import_utils = require("../utils");
|
|
39
|
+
var import_Toast = __toESM(require("./Toast"));
|
|
40
|
+
var import_function_call = require("./function-call");
|
|
41
|
+
const Toast = (0, import_utils.withInstall)(import_Toast.default);
|
|
42
|
+
var stdin_default = Toast;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function lockClick(lock: boolean): void;
|
|
@@ -0,0 +1,36 @@
|
|
|
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 name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], 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
|
+
lockClick: () => lockClick
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(stdin_exports);
|
|
23
|
+
let lockCount = 0;
|
|
24
|
+
function lockClick(lock) {
|
|
25
|
+
if (lock) {
|
|
26
|
+
if (!lockCount) {
|
|
27
|
+
document.body.classList.add("zt-toast--unclickable");
|
|
28
|
+
}
|
|
29
|
+
lockCount++;
|
|
30
|
+
} else if (lockCount) {
|
|
31
|
+
lockCount--;
|
|
32
|
+
if (!lockCount) {
|
|
33
|
+
document.body.classList.remove("zt-toast--unclickable");
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { ComponentPublicInstance, TeleportProps } from 'vue';
|
|
2
|
+
import type { LoadingType } from '../loading';
|
|
3
|
+
import type { Numeric } from '../utils';
|
|
4
|
+
export declare type ToastType = 'text' | 'loading' | 'success' | 'warning' | 'html';
|
|
5
|
+
export declare type ToastPosition = 'top' | 'middle' | 'bottom';
|
|
6
|
+
export declare type ToastOptions = {
|
|
7
|
+
icon?: string;
|
|
8
|
+
type?: ToastType;
|
|
9
|
+
mask?: boolean;
|
|
10
|
+
message?: Numeric;
|
|
11
|
+
onClose?: () => void;
|
|
12
|
+
onOpened?: () => void;
|
|
13
|
+
overlay?: boolean;
|
|
14
|
+
duration?: number;
|
|
15
|
+
teleport?: TeleportProps['to'];
|
|
16
|
+
iconSize?: Numeric;
|
|
17
|
+
position?: ToastPosition;
|
|
18
|
+
className?: unknown;
|
|
19
|
+
transition?: string;
|
|
20
|
+
iconPrefix?: string;
|
|
21
|
+
loadingType?: LoadingType;
|
|
22
|
+
forbidClick?: boolean;
|
|
23
|
+
closeOnClick?: boolean;
|
|
24
|
+
overlayClass?: unknown;
|
|
25
|
+
overlayStyle?: Record<string, any>;
|
|
26
|
+
closeOnClickOverlay?: boolean;
|
|
27
|
+
};
|
|
28
|
+
export declare type ToastWrapperInstance = ComponentPublicInstance<{
|
|
29
|
+
message: Numeric;
|
|
30
|
+
}, {
|
|
31
|
+
close: () => void;
|
|
32
|
+
/**
|
|
33
|
+
* @private
|
|
34
|
+
*/
|
|
35
|
+
open: (props: Record<string, any>) => void;
|
|
36
|
+
}>;
|
|
@@ -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,18 @@
|
|
|
1
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
2
|
+
export declare function noop(): void;
|
|
3
|
+
export declare const extend: {
|
|
4
|
+
<T extends {}, U>(target: T, source: U): T & U;
|
|
5
|
+
<T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
|
|
6
|
+
<T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
|
|
7
|
+
(target: object, ...sources: any[]): any;
|
|
8
|
+
};
|
|
9
|
+
export declare const inBrowser: boolean;
|
|
10
|
+
export declare type Numeric = number | string;
|
|
11
|
+
export declare type ComponentInstance = ComponentPublicInstance<{}, any>;
|
|
12
|
+
export declare function get(object: any, path: string): any;
|
|
13
|
+
export declare type Writeable<T> = {
|
|
14
|
+
-readonly [P in keyof T]: T[P];
|
|
15
|
+
};
|
|
16
|
+
export declare function pick<T, U extends keyof T>(obj: T, keys: ReadonlyArray<U>, ignoreUndefined?: boolean): Writeable<Pick<T, U>>;
|
|
17
|
+
export declare const isSameValue: (newValue: unknown, oldValue: unknown) => boolean;
|
|
18
|
+
export declare const toArray: <T>(item: T | T[]) => T[];
|
|
@@ -0,0 +1,51 @@
|
|
|
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 name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], 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
|
+
extend: () => extend,
|
|
21
|
+
get: () => get,
|
|
22
|
+
inBrowser: () => inBrowser,
|
|
23
|
+
isSameValue: () => isSameValue,
|
|
24
|
+
noop: () => noop,
|
|
25
|
+
pick: () => pick,
|
|
26
|
+
toArray: () => toArray
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(stdin_exports);
|
|
29
|
+
function noop() {
|
|
30
|
+
}
|
|
31
|
+
const extend = Object.assign;
|
|
32
|
+
const inBrowser = typeof window !== "undefined";
|
|
33
|
+
function get(object, path) {
|
|
34
|
+
const keys = path.split(".");
|
|
35
|
+
let result = object;
|
|
36
|
+
keys.forEach((key) => {
|
|
37
|
+
var _a;
|
|
38
|
+
result = (_a = result[key]) != null ? _a : "";
|
|
39
|
+
});
|
|
40
|
+
return result;
|
|
41
|
+
}
|
|
42
|
+
function pick(obj, keys, ignoreUndefined) {
|
|
43
|
+
return keys.reduce((ret, key) => {
|
|
44
|
+
if (!ignoreUndefined || obj[key] !== void 0) {
|
|
45
|
+
ret[key] = obj[key];
|
|
46
|
+
}
|
|
47
|
+
return ret;
|
|
48
|
+
}, {});
|
|
49
|
+
}
|
|
50
|
+
const isSameValue = (newValue, oldValue) => JSON.stringify(newValue) === JSON.stringify(oldValue);
|
|
51
|
+
const toArray = (item) => Array.isArray(item) ? item : [item];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const BORDER = "zt-hairline";
|
|
2
|
+
export declare const BORDER_TOP: string;
|
|
3
|
+
export declare const BORDER_LEFT: string;
|
|
4
|
+
export declare const BORDER_BOTTOM: string;
|
|
5
|
+
export declare const BORDER_SURROUND: string;
|
|
6
|
+
export declare const BORDER_TOP_BOTTOM: string;
|
|
7
|
+
export declare const BORDER_UNSET_TOP_BOTTOM: string;
|
|
8
|
+
export declare const HAPTICS_FEEDBACK = "zt-haptics-feedback";
|
|
@@ -0,0 +1,37 @@
|
|
|
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 name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], 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
|
+
BORDER: () => BORDER,
|
|
21
|
+
BORDER_BOTTOM: () => BORDER_BOTTOM,
|
|
22
|
+
BORDER_LEFT: () => BORDER_LEFT,
|
|
23
|
+
BORDER_SURROUND: () => BORDER_SURROUND,
|
|
24
|
+
BORDER_TOP: () => BORDER_TOP,
|
|
25
|
+
BORDER_TOP_BOTTOM: () => BORDER_TOP_BOTTOM,
|
|
26
|
+
BORDER_UNSET_TOP_BOTTOM: () => BORDER_UNSET_TOP_BOTTOM,
|
|
27
|
+
HAPTICS_FEEDBACK: () => HAPTICS_FEEDBACK
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(stdin_exports);
|
|
30
|
+
const BORDER = "zt-hairline";
|
|
31
|
+
const BORDER_TOP = `${BORDER}--top`;
|
|
32
|
+
const BORDER_LEFT = `${BORDER}--left`;
|
|
33
|
+
const BORDER_BOTTOM = `${BORDER}--bottom`;
|
|
34
|
+
const BORDER_SURROUND = `${BORDER}--surround`;
|
|
35
|
+
const BORDER_TOP_BOTTOM = `${BORDER}--top-bottom`;
|
|
36
|
+
const BORDER_UNSET_TOP_BOTTOM = `${BORDER}-unset--top-bottom`;
|
|
37
|
+
const HAPTICS_FEEDBACK = "zt-haptics-feedback";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare function createTranslate(name: string): (path: string, ...args: unknown[]) => any;
|
|
2
|
+
export declare type Translate = ReturnType<typeof createTranslate>;
|
|
3
|
+
export declare type Mod = string | {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
};
|
|
6
|
+
export declare type Mods = Mod | Mod[];
|
|
7
|
+
/**
|
|
8
|
+
* bem helper
|
|
9
|
+
* b() // 'button'
|
|
10
|
+
* b('text') // 'button__text'
|
|
11
|
+
* b({ disabled }) // 'button button--disabled'
|
|
12
|
+
* b('text', { disabled }) // 'button__text button__text--disabled'
|
|
13
|
+
* b(['disabled', 'primary']) // 'button button--disabled button--primary'
|
|
14
|
+
*/
|
|
15
|
+
export declare function createBEM(name: string): (el?: Mods, mods?: Mods) => Mods;
|
|
16
|
+
export declare type BEM = ReturnType<typeof createBEM>;
|
|
17
|
+
export declare function createNamespace(name: string): readonly [string, (el?: Mods | undefined, mods?: Mods | undefined) => Mods, (path: string, ...args: unknown[]) => any];
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
createBEM: () => createBEM,
|
|
27
|
+
createNamespace: () => createNamespace,
|
|
28
|
+
createTranslate: () => createTranslate
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(stdin_exports);
|
|
31
|
+
var import_basic = require("./basic");
|
|
32
|
+
var import_format = require("./format");
|
|
33
|
+
var import_validate = require("./validate");
|
|
34
|
+
var import_locale = __toESM(require("../locale"));
|
|
35
|
+
function createTranslate(name) {
|
|
36
|
+
const prefix = (0, import_format.camelize)(name) + ".";
|
|
37
|
+
return (path, ...args) => {
|
|
38
|
+
const messages = import_locale.default.messages();
|
|
39
|
+
const message = (0, import_basic.get)(messages, prefix + path) || (0, import_basic.get)(messages, path);
|
|
40
|
+
return (0, import_validate.isFunction)(message) ? message(...args) : message;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function genBem(name, mods) {
|
|
44
|
+
if (!mods) {
|
|
45
|
+
return "";
|
|
46
|
+
}
|
|
47
|
+
if (typeof mods === "string") {
|
|
48
|
+
return ` ${name}--${mods}`;
|
|
49
|
+
}
|
|
50
|
+
if (Array.isArray(mods)) {
|
|
51
|
+
return mods.reduce((ret, item) => ret + genBem(name, item), "");
|
|
52
|
+
}
|
|
53
|
+
return Object.keys(mods).reduce(
|
|
54
|
+
(ret, key) => ret + (mods[key] ? genBem(name, key) : ""),
|
|
55
|
+
""
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
function createBEM(name) {
|
|
59
|
+
return (el, mods) => {
|
|
60
|
+
if (el && typeof el !== "string") {
|
|
61
|
+
mods = el;
|
|
62
|
+
el = "";
|
|
63
|
+
}
|
|
64
|
+
el = el ? `${name}__${el}` : name;
|
|
65
|
+
return `${el}${genBem(el, mods)}`;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
function createNamespace(name) {
|
|
69
|
+
const prefixedName = `zt-${name}`;
|
|
70
|
+
return [
|
|
71
|
+
prefixedName,
|
|
72
|
+
createBEM(prefixedName),
|
|
73
|
+
createTranslate(prefixedName)
|
|
74
|
+
];
|
|
75
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], 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
|
+
deepAssign: () => deepAssign
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(stdin_exports);
|
|
23
|
+
var import_validate = require("./validate");
|
|
24
|
+
const { hasOwnProperty } = Object.prototype;
|
|
25
|
+
function assignKey(to, from, key) {
|
|
26
|
+
const val = from[key];
|
|
27
|
+
if (!(0, import_validate.isDef)(val)) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
if (!hasOwnProperty.call(to, key) || !(0, import_validate.isObject)(val)) {
|
|
31
|
+
to[key] = val;
|
|
32
|
+
} else {
|
|
33
|
+
to[key] = deepAssign(Object(to[key]), val);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function deepAssign(to, from) {
|
|
37
|
+
Object.keys(from).forEach((key) => {
|
|
38
|
+
assignKey(to, from, key);
|
|
39
|
+
});
|
|
40
|
+
return to;
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function deepClone<T extends Record<string, any> | null | undefined>(obj: T): T;
|