antd-mobile 5.13.0 → 5.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2x/bundle/antd-mobile.cjs.js +18967 -0
- package/2x/bundle/antd-mobile.es.js +18876 -0
- package/2x/bundle/css-vars-patch.css +399 -0
- package/2x/bundle/style.css +4712 -0
- package/2x/cjs/components/action-sheet/action-sheet.css +8 -8
- package/2x/cjs/components/badge/badge.css +2 -2
- package/2x/cjs/components/button/button.css +6 -6
- package/2x/cjs/components/button/button.patch.css +106 -0
- package/2x/cjs/components/calendar/calendar.css +5 -5
- package/2x/cjs/components/capsule-tabs/capsule-tabs.css +4 -24
- package/2x/cjs/components/card/card.css +3 -3
- package/2x/cjs/components/cascader/cascader.css +2 -2
- package/2x/cjs/components/cascader/cascader.d.ts +1 -0
- package/2x/cjs/components/cascader-view/cascader-view.css +2 -2
- package/2x/cjs/components/cascader-view/cascader-view.d.ts +1 -0
- package/2x/cjs/components/cascader-view/cascader-view.js +14 -8
- package/2x/cjs/components/cascader-view/use-cascader-value-extend.js +5 -14
- package/2x/cjs/components/center-popup/center-popup.css +29 -0
- package/2x/cjs/components/center-popup/center-popup.d.ts +23 -0
- package/2x/cjs/components/center-popup/center-popup.js +116 -0
- package/2x/cjs/components/center-popup/center-popup.patch.css +13 -0
- package/2x/cjs/components/center-popup/index.d.ts +4 -0
- package/2x/cjs/components/center-popup/index.js +13 -0
- package/2x/cjs/components/check-list/check-list.css +1 -1
- package/2x/cjs/components/checkbox/checkbox.css +3 -3
- package/2x/cjs/components/dialog/dialog.css +21 -34
- package/2x/cjs/components/dialog/dialog.d.ts +4 -18
- package/2x/cjs/components/dialog/dialog.js +26 -84
- package/2x/cjs/components/divider/divider.css +2 -2
- package/2x/cjs/components/dropdown/dropdown.css +2 -2
- package/2x/cjs/components/ellipsis/ellipsis.js +0 -1
- package/2x/cjs/components/empty/empty.css +1 -1
- package/2x/cjs/components/error-block/error-block.css +4 -4
- package/2x/cjs/components/error-block/error-block.patch.css +29 -0
- package/2x/cjs/components/form/form-item.css +2 -2
- package/2x/cjs/components/form/form.css +3 -3
- package/2x/cjs/components/form/index.css +5 -5
- package/2x/cjs/components/image/image.css +1 -1
- package/2x/cjs/components/image/image.js +2 -0
- package/2x/cjs/components/image/image.patch.css +12 -0
- package/2x/cjs/components/image-uploader/image-uploader.css +4 -4
- package/2x/cjs/components/image-viewer/image-viewer.css +1 -1
- package/2x/cjs/components/index-bar/index-bar.css +4 -4
- package/2x/cjs/components/infinite-scroll/infinite-scroll.css +6 -1
- package/2x/cjs/components/infinite-scroll/infinite-scroll.d.ts +2 -2
- package/2x/cjs/components/infinite-scroll/infinite-scroll.js +48 -17
- package/2x/cjs/components/input/input.css +2 -2
- package/2x/cjs/components/jumbo-tabs/jumbo-tabs.css +4 -24
- package/2x/cjs/components/list/list.css +10 -11
- package/2x/cjs/components/mask/mask.patch.css +3 -0
- package/2x/cjs/components/modal/modal.css +14 -29
- package/2x/cjs/components/modal/modal.d.ts +4 -18
- package/2x/cjs/components/modal/modal.js +25 -86
- package/2x/cjs/components/modal/modal.patch.css +29 -0
- package/2x/cjs/components/nav-bar/nav-bar.css +2 -2
- package/2x/cjs/components/notice-bar/notice-bar.css +4 -4
- package/2x/cjs/components/number-keyboard/number-keyboard.css +4 -4
- package/2x/cjs/components/page-indicator/page-indicator.patch.css +31 -0
- package/2x/cjs/components/passcode-input/passcode-input.css +1 -1
- package/2x/cjs/components/picker/picker.css +6 -7
- package/2x/cjs/components/picker-view/picker-view.css +3 -3
- package/2x/cjs/components/popover/popover-menu.css +1 -1
- package/2x/cjs/components/popover/popover-menu.patch.css +31 -0
- package/2x/cjs/components/popover/popover.css +3 -2
- package/2x/cjs/components/popover/popover.js +3 -1
- package/2x/cjs/components/popover/popover.patch.css +24 -0
- package/2x/cjs/components/popup/popup.css +1 -1
- package/2x/cjs/components/popup/popup.d.ts +11 -12
- package/2x/cjs/components/radio/radio.css +2 -2
- package/2x/cjs/components/result/result.css +2 -2
- package/2x/cjs/components/scroll-mask/scroll-mask.css +2 -2
- package/2x/cjs/components/scroll-mask/scroll-mask.patch.css +7 -0
- package/2x/cjs/components/search-bar/search-bar.css +4 -4
- package/2x/cjs/components/selector/selector.css +3 -3
- package/2x/cjs/components/side-bar/corner.js +1 -1
- package/2x/cjs/components/side-bar/side-bar.css +3 -3
- package/2x/cjs/components/slider/slider.css +26 -24
- package/2x/cjs/components/slider/slider.d.ts +3 -2
- package/2x/cjs/components/slider/slider.js +4 -2
- package/2x/cjs/components/slider/thumb-icon.js +20 -18
- package/2x/cjs/components/slider/thumb.d.ts +2 -1
- package/2x/cjs/components/slider/thumb.js +19 -5
- package/2x/cjs/components/space/space.patch.css +16 -0
- package/2x/cjs/components/spin-loading/spin-loading.css +0 -3
- package/2x/cjs/components/spin-loading/spin-loading.patch.css +14 -0
- package/2x/cjs/components/stepper/stepper.css +3 -3
- package/2x/cjs/components/steps/steps.css +2 -2
- package/2x/cjs/components/swipe-action/swipe-action.css +1 -1
- package/2x/cjs/components/swipe-action/swipe-action.js +7 -6
- package/2x/cjs/components/swiper/swiper.js +9 -8
- package/2x/cjs/components/swiper/swiper.patch.css +26 -0
- package/2x/cjs/components/switch/switch.css +4 -4
- package/2x/cjs/components/tab-bar/tab-bar.css +8 -5
- package/2x/cjs/components/tab-bar/tab-bar.js +1 -1
- package/2x/cjs/components/tabs/tabs.css +4 -4
- package/2x/cjs/components/tabs/tabs.patch.css +29 -0
- package/2x/cjs/components/tag/tag.css +1 -1
- package/2x/cjs/components/text-area/text-area.css +2 -2
- package/2x/cjs/components/toast/toast.css +1 -1
- package/2x/cjs/components/toast/toast.patch.css +13 -0
- package/2x/cjs/components/tree-select/tree-select.css +1 -1
- package/2x/cjs/components/virtual-input/virtual-input.css +2 -2
- package/2x/cjs/global/css-vars-patch.css +399 -0
- package/2x/cjs/global/global.css +36 -4
- package/2x/cjs/global/index.js +2 -1
- package/2x/cjs/global/theme-dark.css +14 -0
- package/2x/cjs/global/theme-default.css +33 -0
- package/2x/cjs/index.d.ts +1 -0
- package/2x/cjs/index.js +8 -0
- package/2x/cjs/locales/base.d.ts +2 -0
- package/2x/cjs/locales/base.js +3 -1
- package/2x/cjs/locales/en-US.d.ts +2 -0
- package/2x/cjs/locales/es-ES.d.ts +2 -0
- package/2x/cjs/locales/fa-IR.d.ts +2 -0
- package/2x/cjs/locales/fr-FR.d.ts +2 -0
- package/2x/cjs/locales/ko-KR.d.ts +2 -0
- package/2x/cjs/locales/zh-CN.d.ts +2 -0
- package/2x/cjs/locales/zh-CN.js +3 -1
- package/2x/cjs/locales/zh-HK.d.ts +2 -0
- package/2x/cjs/locales/zh-TW.d.ts +2 -0
- package/2x/es/components/action-sheet/action-sheet.css +8 -8
- package/2x/es/components/badge/badge.css +2 -2
- package/2x/es/components/button/button.css +6 -6
- package/2x/es/components/button/button.patch.css +106 -0
- package/2x/es/components/calendar/calendar.css +5 -5
- package/2x/es/components/capsule-tabs/capsule-tabs.css +4 -24
- package/2x/es/components/card/card.css +3 -3
- package/2x/es/components/cascader/cascader.css +2 -2
- package/2x/es/components/cascader/cascader.d.ts +1 -0
- package/2x/es/components/cascader-view/cascader-view.css +2 -2
- package/2x/es/components/cascader-view/cascader-view.d.ts +1 -0
- package/2x/es/components/cascader-view/cascader-view.js +14 -8
- package/2x/es/components/cascader-view/use-cascader-value-extend.js +5 -14
- package/2x/es/components/center-popup/center-popup.css +29 -0
- package/2x/es/components/center-popup/center-popup.d.ts +23 -0
- package/2x/es/components/center-popup/center-popup.js +86 -0
- package/2x/es/components/center-popup/center-popup.patch.css +13 -0
- package/2x/es/components/center-popup/index.d.ts +4 -0
- package/2x/es/components/center-popup/index.js +3 -0
- package/2x/es/components/check-list/check-list.css +1 -1
- package/2x/es/components/checkbox/checkbox.css +3 -3
- package/2x/es/components/dialog/dialog.css +21 -34
- package/2x/es/components/dialog/dialog.d.ts +4 -18
- package/2x/es/components/dialog/dialog.js +25 -72
- package/2x/es/components/divider/divider.css +2 -2
- package/2x/es/components/dropdown/dropdown.css +2 -2
- package/2x/es/components/ellipsis/ellipsis.js +0 -1
- package/2x/es/components/empty/empty.css +1 -1
- package/2x/es/components/error-block/error-block.css +4 -4
- package/2x/es/components/error-block/error-block.patch.css +29 -0
- package/2x/es/components/form/form-item.css +2 -2
- package/2x/es/components/form/form.css +3 -3
- package/2x/es/components/form/index.css +5 -5
- package/2x/es/components/image/image.css +1 -1
- package/2x/es/components/image/image.js +2 -0
- package/2x/es/components/image/image.patch.css +12 -0
- package/2x/es/components/image-uploader/image-uploader.css +4 -4
- package/2x/es/components/image-viewer/image-viewer.css +1 -1
- package/2x/es/components/index-bar/index-bar.css +4 -4
- package/2x/es/components/infinite-scroll/infinite-scroll.css +6 -1
- package/2x/es/components/infinite-scroll/infinite-scroll.d.ts +2 -2
- package/2x/es/components/infinite-scroll/infinite-scroll.js +47 -17
- package/2x/es/components/input/input.css +2 -2
- package/2x/es/components/jumbo-tabs/jumbo-tabs.css +4 -24
- package/2x/es/components/list/list.css +10 -11
- package/2x/es/components/mask/mask.patch.css +3 -0
- package/2x/es/components/modal/modal.css +14 -29
- package/2x/es/components/modal/modal.d.ts +4 -18
- package/2x/es/components/modal/modal.js +24 -74
- package/2x/es/components/modal/modal.patch.css +29 -0
- package/2x/es/components/nav-bar/nav-bar.css +2 -2
- package/2x/es/components/notice-bar/notice-bar.css +4 -4
- package/2x/es/components/number-keyboard/number-keyboard.css +4 -4
- package/2x/es/components/page-indicator/page-indicator.patch.css +31 -0
- package/2x/es/components/passcode-input/passcode-input.css +1 -1
- package/2x/es/components/picker/picker.css +6 -7
- package/2x/es/components/picker-view/picker-view.css +3 -3
- package/2x/es/components/popover/popover-menu.css +1 -1
- package/2x/es/components/popover/popover-menu.patch.css +31 -0
- package/2x/es/components/popover/popover.css +3 -2
- package/2x/es/components/popover/popover.js +3 -1
- package/2x/es/components/popover/popover.patch.css +24 -0
- package/2x/es/components/popup/popup.css +1 -1
- package/2x/es/components/popup/popup.d.ts +11 -12
- package/2x/es/components/radio/radio.css +2 -2
- package/2x/es/components/result/result.css +2 -2
- package/2x/es/components/scroll-mask/scroll-mask.css +2 -2
- package/2x/es/components/scroll-mask/scroll-mask.patch.css +7 -0
- package/2x/es/components/search-bar/search-bar.css +4 -4
- package/2x/es/components/selector/selector.css +3 -3
- package/2x/es/components/side-bar/corner.js +1 -1
- package/2x/es/components/side-bar/side-bar.css +3 -3
- package/2x/es/components/slider/slider.css +26 -24
- package/2x/es/components/slider/slider.d.ts +3 -2
- package/2x/es/components/slider/slider.js +4 -2
- package/2x/es/components/slider/thumb-icon.js +20 -18
- package/2x/es/components/slider/thumb.d.ts +2 -1
- package/2x/es/components/slider/thumb.js +17 -6
- package/2x/es/components/space/space.patch.css +16 -0
- package/2x/es/components/spin-loading/spin-loading.css +0 -3
- package/2x/es/components/spin-loading/spin-loading.patch.css +14 -0
- package/2x/es/components/stepper/stepper.css +3 -3
- package/2x/es/components/steps/steps.css +2 -2
- package/2x/es/components/swipe-action/swipe-action.css +1 -1
- package/2x/es/components/swipe-action/swipe-action.js +7 -6
- package/2x/es/components/swiper/swiper.js +9 -8
- package/2x/es/components/swiper/swiper.patch.css +26 -0
- package/2x/es/components/switch/switch.css +4 -4
- package/2x/es/components/tab-bar/tab-bar.css +8 -5
- package/2x/es/components/tab-bar/tab-bar.js +1 -1
- package/2x/es/components/tabs/tabs.css +4 -4
- package/2x/es/components/tabs/tabs.patch.css +29 -0
- package/2x/es/components/tag/tag.css +1 -1
- package/2x/es/components/text-area/text-area.css +2 -2
- package/2x/es/components/toast/toast.css +1 -1
- package/2x/es/components/toast/toast.patch.css +13 -0
- package/2x/es/components/tree-select/tree-select.css +1 -1
- package/2x/es/components/virtual-input/virtual-input.css +2 -2
- package/2x/es/global/css-vars-patch.css +399 -0
- package/2x/es/global/global.css +36 -4
- package/2x/es/global/index.js +2 -1
- package/2x/es/global/theme-dark.css +14 -0
- package/2x/es/global/theme-default.css +33 -0
- package/2x/es/index.d.ts +1 -0
- package/2x/es/index.js +1 -0
- package/2x/es/locales/base.d.ts +2 -0
- package/2x/es/locales/base.js +3 -1
- package/2x/es/locales/en-US.d.ts +2 -0
- package/2x/es/locales/es-ES.d.ts +2 -0
- package/2x/es/locales/fa-IR.d.ts +2 -0
- package/2x/es/locales/fr-FR.d.ts +2 -0
- package/2x/es/locales/ko-KR.d.ts +2 -0
- package/2x/es/locales/zh-CN.d.ts +2 -0
- package/2x/es/locales/zh-CN.js +3 -1
- package/2x/es/locales/zh-HK.d.ts +2 -0
- package/2x/es/locales/zh-TW.d.ts +2 -0
- package/2x/package.json +1 -1
- package/2x/umd/antd-mobile.js +2 -0
- package/2x/umd/antd-mobile.js.LICENSE.txt +35 -0
- package/bundle/antd-mobile.cjs.js +778 -737
- package/bundle/antd-mobile.es.js +778 -738
- package/bundle/css-vars-patch.css +312 -0
- package/bundle/style.css +272 -271
- package/cjs/components/action-sheet/action-sheet.css +8 -8
- package/cjs/components/badge/badge.css +2 -2
- package/cjs/components/button/button.css +6 -6
- package/cjs/components/button/button.patch.css +86 -0
- package/cjs/components/calendar/calendar.css +5 -5
- package/cjs/components/capsule-tabs/capsule-tabs.css +4 -21
- package/cjs/components/card/card.css +3 -3
- package/cjs/components/cascader/cascader.css +2 -2
- package/cjs/components/cascader/cascader.d.ts +1 -0
- package/cjs/components/cascader-view/cascader-view.css +2 -2
- package/cjs/components/cascader-view/cascader-view.d.ts +1 -0
- package/cjs/components/cascader-view/cascader-view.js +14 -8
- package/cjs/components/cascader-view/use-cascader-value-extend.js +5 -14
- package/cjs/components/center-popup/center-popup.css +26 -0
- package/cjs/components/center-popup/center-popup.d.ts +23 -0
- package/cjs/components/center-popup/center-popup.js +116 -0
- package/cjs/components/center-popup/center-popup.patch.css +11 -0
- package/cjs/components/center-popup/index.d.ts +4 -0
- package/cjs/components/center-popup/index.js +13 -0
- package/cjs/components/check-list/check-list.css +1 -1
- package/cjs/components/checkbox/checkbox.css +3 -3
- package/cjs/components/dialog/dialog.css +21 -33
- package/cjs/components/dialog/dialog.d.ts +4 -18
- package/cjs/components/dialog/dialog.js +26 -84
- package/cjs/components/divider/divider.css +2 -2
- package/cjs/components/dropdown/dropdown.css +2 -2
- package/cjs/components/ellipsis/ellipsis.js +0 -1
- package/cjs/components/empty/empty.css +1 -1
- package/cjs/components/error-block/error-block.css +4 -4
- package/cjs/components/error-block/error-block.patch.css +23 -0
- package/cjs/components/form/form-item.css +2 -2
- package/cjs/components/form/form.css +3 -3
- package/cjs/components/form/index.css +5 -5
- package/cjs/components/image/image.css +1 -1
- package/cjs/components/image/image.js +2 -0
- package/cjs/components/image/image.patch.css +10 -0
- package/cjs/components/image-uploader/image-uploader.css +4 -4
- package/cjs/components/image-viewer/image-viewer.css +1 -1
- package/cjs/components/index-bar/index-bar.css +4 -4
- package/cjs/components/infinite-scroll/infinite-scroll.css +5 -1
- package/cjs/components/infinite-scroll/infinite-scroll.d.ts +2 -2
- package/cjs/components/infinite-scroll/infinite-scroll.js +48 -17
- package/cjs/components/input/input.css +2 -2
- package/cjs/components/jumbo-tabs/jumbo-tabs.css +4 -21
- package/cjs/components/list/list.css +10 -11
- package/cjs/components/mask/mask.patch.css +3 -0
- package/cjs/components/modal/modal.css +15 -29
- package/cjs/components/modal/modal.d.ts +4 -18
- package/cjs/components/modal/modal.js +25 -86
- package/cjs/components/modal/modal.patch.css +23 -0
- package/cjs/components/nav-bar/nav-bar.css +2 -2
- package/cjs/components/notice-bar/notice-bar.css +4 -4
- package/cjs/components/number-keyboard/number-keyboard.css +4 -4
- package/cjs/components/page-indicator/page-indicator.patch.css +25 -0
- package/cjs/components/passcode-input/passcode-input.css +1 -1
- package/cjs/components/picker/picker.css +6 -7
- package/cjs/components/picker-view/picker-view.css +3 -3
- package/cjs/components/popover/popover-menu.css +1 -1
- package/cjs/components/popover/popover-menu.patch.css +24 -0
- package/cjs/components/popover/popover.css +3 -2
- package/cjs/components/popover/popover.js +3 -1
- package/cjs/components/popover/popover.patch.css +19 -0
- package/cjs/components/popup/popup.css +1 -1
- package/cjs/components/popup/popup.d.ts +11 -12
- package/cjs/components/radio/radio.css +2 -2
- package/cjs/components/result/result.css +2 -2
- package/cjs/components/scroll-mask/scroll-mask.css +2 -2
- package/cjs/components/scroll-mask/scroll-mask.patch.css +6 -0
- package/cjs/components/search-bar/search-bar.css +4 -4
- package/cjs/components/selector/selector.css +3 -3
- package/cjs/components/side-bar/corner.js +1 -1
- package/cjs/components/side-bar/side-bar.css +3 -3
- package/cjs/components/slider/slider.css +26 -24
- package/cjs/components/slider/slider.d.ts +3 -2
- package/cjs/components/slider/slider.js +4 -2
- package/cjs/components/slider/thumb-icon.js +20 -18
- package/cjs/components/slider/thumb.d.ts +2 -1
- package/cjs/components/slider/thumb.js +19 -5
- package/cjs/components/space/space.patch.css +13 -0
- package/cjs/components/spin-loading/spin-loading.css +0 -3
- package/cjs/components/spin-loading/spin-loading.patch.css +12 -0
- package/cjs/components/stepper/stepper.css +3 -3
- package/cjs/components/steps/steps.css +2 -2
- package/cjs/components/swipe-action/swipe-action.css +1 -1
- package/cjs/components/swipe-action/swipe-action.js +7 -6
- package/cjs/components/swiper/swiper.js +9 -8
- package/cjs/components/swiper/swiper.patch.css +21 -0
- package/cjs/components/switch/switch.css +4 -4
- package/cjs/components/tab-bar/tab-bar.css +7 -5
- package/cjs/components/tab-bar/tab-bar.js +1 -1
- package/cjs/components/tabs/tabs.css +4 -4
- package/cjs/components/tabs/tabs.patch.css +23 -0
- package/cjs/components/tag/tag.css +1 -1
- package/cjs/components/text-area/text-area.css +2 -2
- package/cjs/components/toast/toast.css +1 -1
- package/cjs/components/toast/toast.patch.css +11 -0
- package/cjs/components/tree-select/tree-select.css +1 -1
- package/cjs/components/virtual-input/virtual-input.css +2 -2
- package/cjs/global/css-vars-patch.css +312 -0
- package/cjs/global/global.css +35 -4
- package/cjs/global/index.js +2 -1
- package/cjs/global/theme-dark.css +14 -0
- package/cjs/global/theme-default.css +33 -0
- package/cjs/index.d.ts +1 -0
- package/cjs/index.js +8 -0
- package/cjs/locales/base.d.ts +2 -0
- package/cjs/locales/base.js +3 -1
- package/cjs/locales/en-US.d.ts +2 -0
- package/cjs/locales/es-ES.d.ts +2 -0
- package/cjs/locales/fa-IR.d.ts +2 -0
- package/cjs/locales/fr-FR.d.ts +2 -0
- package/cjs/locales/ko-KR.d.ts +2 -0
- package/cjs/locales/zh-CN.d.ts +2 -0
- package/cjs/locales/zh-CN.js +3 -1
- package/cjs/locales/zh-HK.d.ts +2 -0
- package/cjs/locales/zh-TW.d.ts +2 -0
- package/es/components/action-sheet/action-sheet.css +8 -8
- package/es/components/badge/badge.css +2 -2
- package/es/components/button/button.css +6 -6
- package/es/components/button/button.patch.css +86 -0
- package/es/components/calendar/calendar.css +5 -5
- package/es/components/capsule-tabs/capsule-tabs.css +4 -21
- package/es/components/card/card.css +3 -3
- package/es/components/cascader/cascader.css +2 -2
- package/es/components/cascader/cascader.d.ts +1 -0
- package/es/components/cascader-view/cascader-view.css +2 -2
- package/es/components/cascader-view/cascader-view.d.ts +1 -0
- package/es/components/cascader-view/cascader-view.js +14 -8
- package/es/components/cascader-view/use-cascader-value-extend.js +5 -14
- package/es/components/center-popup/center-popup.css +26 -0
- package/es/components/center-popup/center-popup.d.ts +23 -0
- package/es/components/center-popup/center-popup.js +86 -0
- package/es/components/center-popup/center-popup.patch.css +11 -0
- package/es/components/center-popup/index.d.ts +4 -0
- package/es/components/center-popup/index.js +3 -0
- package/es/components/check-list/check-list.css +1 -1
- package/es/components/checkbox/checkbox.css +3 -3
- package/es/components/dialog/dialog.css +21 -33
- package/es/components/dialog/dialog.d.ts +4 -18
- package/es/components/dialog/dialog.js +25 -72
- package/es/components/divider/divider.css +2 -2
- package/es/components/dropdown/dropdown.css +2 -2
- package/es/components/ellipsis/ellipsis.js +0 -1
- package/es/components/empty/empty.css +1 -1
- package/es/components/error-block/error-block.css +4 -4
- package/es/components/error-block/error-block.patch.css +23 -0
- package/es/components/form/form-item.css +2 -2
- package/es/components/form/form.css +3 -3
- package/es/components/form/index.css +5 -5
- package/es/components/image/image.css +1 -1
- package/es/components/image/image.js +2 -0
- package/es/components/image/image.patch.css +10 -0
- package/es/components/image-uploader/image-uploader.css +4 -4
- package/es/components/image-viewer/image-viewer.css +1 -1
- package/es/components/index-bar/index-bar.css +4 -4
- package/es/components/infinite-scroll/infinite-scroll.css +5 -1
- package/es/components/infinite-scroll/infinite-scroll.d.ts +2 -2
- package/es/components/infinite-scroll/infinite-scroll.js +47 -17
- package/es/components/input/input.css +2 -2
- package/es/components/jumbo-tabs/jumbo-tabs.css +4 -21
- package/es/components/list/list.css +10 -11
- package/es/components/mask/mask.patch.css +3 -0
- package/es/components/modal/modal.css +15 -29
- package/es/components/modal/modal.d.ts +4 -18
- package/es/components/modal/modal.js +24 -74
- package/es/components/modal/modal.patch.css +23 -0
- package/es/components/nav-bar/nav-bar.css +2 -2
- package/es/components/notice-bar/notice-bar.css +4 -4
- package/es/components/number-keyboard/number-keyboard.css +4 -4
- package/es/components/page-indicator/page-indicator.patch.css +25 -0
- package/es/components/passcode-input/passcode-input.css +1 -1
- package/es/components/picker/picker.css +6 -7
- package/es/components/picker-view/picker-view.css +3 -3
- package/es/components/popover/popover-menu.css +1 -1
- package/es/components/popover/popover-menu.patch.css +24 -0
- package/es/components/popover/popover.css +3 -2
- package/es/components/popover/popover.js +3 -1
- package/es/components/popover/popover.patch.css +19 -0
- package/es/components/popup/popup.css +1 -1
- package/es/components/popup/popup.d.ts +11 -12
- package/es/components/radio/radio.css +2 -2
- package/es/components/result/result.css +2 -2
- package/es/components/scroll-mask/scroll-mask.css +2 -2
- package/es/components/scroll-mask/scroll-mask.patch.css +6 -0
- package/es/components/search-bar/search-bar.css +4 -4
- package/es/components/selector/selector.css +3 -3
- package/es/components/side-bar/corner.js +1 -1
- package/es/components/side-bar/side-bar.css +3 -3
- package/es/components/slider/slider.css +26 -24
- package/es/components/slider/slider.d.ts +3 -2
- package/es/components/slider/slider.js +4 -2
- package/es/components/slider/thumb-icon.js +20 -18
- package/es/components/slider/thumb.d.ts +2 -1
- package/es/components/slider/thumb.js +17 -6
- package/es/components/space/space.patch.css +13 -0
- package/es/components/spin-loading/spin-loading.css +0 -3
- package/es/components/spin-loading/spin-loading.patch.css +12 -0
- package/es/components/stepper/stepper.css +3 -3
- package/es/components/steps/steps.css +2 -2
- package/es/components/swipe-action/swipe-action.css +1 -1
- package/es/components/swipe-action/swipe-action.js +7 -6
- package/es/components/swiper/swiper.js +9 -8
- package/es/components/swiper/swiper.patch.css +21 -0
- package/es/components/switch/switch.css +4 -4
- package/es/components/tab-bar/tab-bar.css +7 -5
- package/es/components/tab-bar/tab-bar.js +1 -1
- package/es/components/tabs/tabs.css +4 -4
- package/es/components/tabs/tabs.patch.css +23 -0
- package/es/components/tag/tag.css +1 -1
- package/es/components/text-area/text-area.css +2 -2
- package/es/components/toast/toast.css +1 -1
- package/es/components/toast/toast.patch.css +11 -0
- package/es/components/tree-select/tree-select.css +1 -1
- package/es/components/virtual-input/virtual-input.css +2 -2
- package/es/global/css-vars-patch.css +312 -0
- package/es/global/global.css +35 -4
- package/es/global/index.js +2 -1
- package/es/global/theme-dark.css +14 -0
- package/es/global/theme-default.css +33 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/locales/base.d.ts +2 -0
- package/es/locales/base.js +3 -1
- package/es/locales/en-US.d.ts +2 -0
- package/es/locales/es-ES.d.ts +2 -0
- package/es/locales/fa-IR.d.ts +2 -0
- package/es/locales/fr-FR.d.ts +2 -0
- package/es/locales/ko-KR.d.ts +2 -0
- package/es/locales/zh-CN.d.ts +2 -0
- package/es/locales/zh-CN.js +3 -1
- package/es/locales/zh-HK.d.ts +2 -0
- package/es/locales/zh-TW.d.ts +2 -0
- package/package.json +1 -1
- package/umd/antd-mobile.js +1 -1
- package/2x/cjs/global/theme.css +0 -16
- package/2x/es/global/theme.css +0 -16
- package/cjs/global/theme.css +0 -16
- package/es/global/theme.css +0 -16
|
@@ -1343,7 +1343,9 @@ const base = {
|
|
|
1343
1343
|
upload: "Upload"
|
|
1344
1344
|
},
|
|
1345
1345
|
InfiniteScroll: {
|
|
1346
|
-
noMore: "No more"
|
|
1346
|
+
noMore: "No more",
|
|
1347
|
+
failedToLoad: "Failed to load",
|
|
1348
|
+
retry: "Retry"
|
|
1347
1349
|
},
|
|
1348
1350
|
Mask: {
|
|
1349
1351
|
name: "Mask"
|
|
@@ -1449,7 +1451,9 @@ const zhCN = mergeLocale(base, {
|
|
|
1449
1451
|
upload: "\u4E0A\u4F20"
|
|
1450
1452
|
},
|
|
1451
1453
|
InfiniteScroll: {
|
|
1452
|
-
noMore: "\u6CA1\u6709\u66F4\u591A\u4E86"
|
|
1454
|
+
noMore: "\u6CA1\u6709\u66F4\u591A\u4E86",
|
|
1455
|
+
failedToLoad: "\u52A0\u8F7D\u5931\u8D25",
|
|
1456
|
+
retry: "\u91CD\u65B0\u52A0\u8F7D"
|
|
1453
1457
|
},
|
|
1454
1458
|
Mask: {
|
|
1455
1459
|
name: "\u906E\u7F69\u5C42"
|
|
@@ -8873,13 +8877,13 @@ function withStopPropagation(events, element) {
|
|
|
8873
8877
|
}
|
|
8874
8878
|
return React__default["default"].cloneElement(element, props);
|
|
8875
8879
|
}
|
|
8876
|
-
const classPrefix$
|
|
8880
|
+
const classPrefix$1i = `adm-mask`;
|
|
8877
8881
|
const opacityRecord = {
|
|
8878
8882
|
default: 0.55,
|
|
8879
8883
|
thin: 0.35,
|
|
8880
8884
|
thick: 0.75
|
|
8881
8885
|
};
|
|
8882
|
-
const defaultProps
|
|
8886
|
+
const defaultProps$$ = {
|
|
8883
8887
|
visible: true,
|
|
8884
8888
|
destroyOnClose: false,
|
|
8885
8889
|
forceRender: false,
|
|
@@ -8890,7 +8894,7 @@ const defaultProps$Z = {
|
|
|
8890
8894
|
stopPropagation: ["click"]
|
|
8891
8895
|
};
|
|
8892
8896
|
const Mask = (p2) => {
|
|
8893
|
-
const props = mergeProps(defaultProps
|
|
8897
|
+
const props = mergeProps(defaultProps$$, p2);
|
|
8894
8898
|
const {
|
|
8895
8899
|
locale
|
|
8896
8900
|
} = useConfig();
|
|
@@ -8931,7 +8935,7 @@ const Mask = (p2) => {
|
|
|
8931
8935
|
}
|
|
8932
8936
|
});
|
|
8933
8937
|
const node = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default["default"].createElement(web.animated.div, {
|
|
8934
|
-
className: classPrefix$
|
|
8938
|
+
className: classPrefix$1i,
|
|
8935
8939
|
ref,
|
|
8936
8940
|
style: Object.assign(Object.assign({}, props.style), {
|
|
8937
8941
|
background,
|
|
@@ -8945,12 +8949,12 @@ const Mask = (p2) => {
|
|
|
8945
8949
|
}
|
|
8946
8950
|
}
|
|
8947
8951
|
}, props.onMaskClick && React__default["default"].createElement("div", {
|
|
8948
|
-
className: `${classPrefix$
|
|
8952
|
+
className: `${classPrefix$1i}-aria-button`,
|
|
8949
8953
|
role: "button",
|
|
8950
8954
|
"aria-label": locale.Mask.name,
|
|
8951
8955
|
onClick: props.onMaskClick
|
|
8952
8956
|
}), React__default["default"].createElement("div", {
|
|
8953
|
-
className: `${classPrefix$
|
|
8957
|
+
className: `${classPrefix$1i}-content`
|
|
8954
8958
|
}, props.children))));
|
|
8955
8959
|
return React__default["default"].createElement(ShouldRender, {
|
|
8956
8960
|
active,
|
|
@@ -8958,8 +8962,8 @@ const Mask = (p2) => {
|
|
|
8958
8962
|
destroyOnClose: props.destroyOnClose
|
|
8959
8963
|
}, renderToContainer(props.getContainer, node));
|
|
8960
8964
|
};
|
|
8961
|
-
const classPrefix$
|
|
8962
|
-
const defaultProps$
|
|
8965
|
+
const classPrefix$1h = `adm-popup`;
|
|
8966
|
+
const defaultProps$_ = {
|
|
8963
8967
|
position: "bottom",
|
|
8964
8968
|
visible: false,
|
|
8965
8969
|
getContainer: () => document.body,
|
|
@@ -8967,8 +8971,8 @@ const defaultProps$Y = {
|
|
|
8967
8971
|
stopPropagation: ["click"]
|
|
8968
8972
|
};
|
|
8969
8973
|
const Popup = (p2) => {
|
|
8970
|
-
const props = mergeProps(defaultProps$
|
|
8971
|
-
const bodyCls = classNames__default["default"](`${classPrefix$
|
|
8974
|
+
const props = mergeProps(defaultProps$_, p2);
|
|
8975
|
+
const bodyCls = classNames__default["default"](`${classPrefix$1h}-body`, props.bodyClassName, `${classPrefix$1h}-body-position-${props.position}`);
|
|
8972
8976
|
const ref = React$1.useRef(null);
|
|
8973
8977
|
const [active, setActive] = React$1.useState(props.visible);
|
|
8974
8978
|
useLockScroll(ref, active);
|
|
@@ -9000,7 +9004,7 @@ const Popup = (p2) => {
|
|
|
9000
9004
|
}
|
|
9001
9005
|
});
|
|
9002
9006
|
const node = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default["default"].createElement("div", {
|
|
9003
|
-
className: classPrefix$
|
|
9007
|
+
className: classPrefix$1h,
|
|
9004
9008
|
onClick: props.onClick,
|
|
9005
9009
|
style: {
|
|
9006
9010
|
display: active ? void 0 : "none"
|
|
@@ -9036,10 +9040,10 @@ const Popup = (p2) => {
|
|
|
9036
9040
|
return renderToContainer(props.getContainer, node);
|
|
9037
9041
|
};
|
|
9038
9042
|
var safeArea = "";
|
|
9039
|
-
const classPrefix$
|
|
9043
|
+
const classPrefix$1g = "adm-safe-area";
|
|
9040
9044
|
const SafeArea = (props) => {
|
|
9041
9045
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
9042
|
-
className: classNames__default["default"](classPrefix$
|
|
9046
|
+
className: classNames__default["default"](classPrefix$1g, `${classPrefix$1g}-position-${props.position}`)
|
|
9043
9047
|
}));
|
|
9044
9048
|
};
|
|
9045
9049
|
const fullClone = Object.assign({}, ReactDOM);
|
|
@@ -9155,8 +9159,8 @@ function renderImperatively(element) {
|
|
|
9155
9159
|
close
|
|
9156
9160
|
};
|
|
9157
9161
|
}
|
|
9158
|
-
const classPrefix$
|
|
9159
|
-
const defaultProps$
|
|
9162
|
+
const classPrefix$1f = `adm-action-sheet`;
|
|
9163
|
+
const defaultProps$Z = {
|
|
9160
9164
|
visible: false,
|
|
9161
9165
|
actions: [],
|
|
9162
9166
|
cancelText: "",
|
|
@@ -9165,7 +9169,7 @@ const defaultProps$X = {
|
|
|
9165
9169
|
safeArea: true
|
|
9166
9170
|
};
|
|
9167
9171
|
const ActionSheet = (p2) => {
|
|
9168
|
-
const props = mergeProps(defaultProps$
|
|
9172
|
+
const props = mergeProps(defaultProps$Z, p2);
|
|
9169
9173
|
return React__default["default"].createElement(Popup, {
|
|
9170
9174
|
visible: props.visible,
|
|
9171
9175
|
onMaskClick: () => {
|
|
@@ -9176,22 +9180,22 @@ const ActionSheet = (p2) => {
|
|
|
9176
9180
|
}
|
|
9177
9181
|
},
|
|
9178
9182
|
afterClose: props.afterClose,
|
|
9179
|
-
className: classNames__default["default"](`${classPrefix$
|
|
9183
|
+
className: classNames__default["default"](`${classPrefix$1f}-popup`, props.popupClassName),
|
|
9180
9184
|
style: props.popupStyle,
|
|
9181
9185
|
getContainer: props.getContainer
|
|
9182
9186
|
}, withNativeProps(props, React__default["default"].createElement("div", {
|
|
9183
|
-
className: classPrefix$
|
|
9187
|
+
className: classPrefix$1f
|
|
9184
9188
|
}, props.extra && React__default["default"].createElement("div", {
|
|
9185
|
-
className: `${classPrefix$
|
|
9189
|
+
className: `${classPrefix$1f}-extra`
|
|
9186
9190
|
}, props.extra), React__default["default"].createElement("div", {
|
|
9187
|
-
className: `${classPrefix$
|
|
9191
|
+
className: `${classPrefix$1f}-button-list`
|
|
9188
9192
|
}, props.actions.map((action, index2) => React__default["default"].createElement("div", {
|
|
9189
9193
|
key: action.key,
|
|
9190
|
-
className: `${classPrefix$
|
|
9194
|
+
className: `${classPrefix$1f}-button-item-wrapper`
|
|
9191
9195
|
}, React__default["default"].createElement("a", {
|
|
9192
|
-
className: classNames__default["default"]("adm-plain-anchor", `${classPrefix$
|
|
9193
|
-
[`${classPrefix$
|
|
9194
|
-
[`${classPrefix$
|
|
9196
|
+
className: classNames__default["default"]("adm-plain-anchor", `${classPrefix$1f}-button-item`, {
|
|
9197
|
+
[`${classPrefix$1f}-button-item-danger`]: action.danger,
|
|
9198
|
+
[`${classPrefix$1f}-button-item-disabled`]: action.disabled
|
|
9195
9199
|
}),
|
|
9196
9200
|
onClick: () => {
|
|
9197
9201
|
var _a, _b, _c;
|
|
@@ -9202,21 +9206,21 @@ const ActionSheet = (p2) => {
|
|
|
9202
9206
|
}
|
|
9203
9207
|
}
|
|
9204
9208
|
}, React__default["default"].createElement("div", {
|
|
9205
|
-
className: `${classPrefix$
|
|
9209
|
+
className: `${classPrefix$1f}-button-item-name`
|
|
9206
9210
|
}, action.text), action.description && React__default["default"].createElement("div", {
|
|
9207
|
-
className: `${classPrefix$
|
|
9211
|
+
className: `${classPrefix$1f}-button-item-description`
|
|
9208
9212
|
}, action.description))))), props.cancelText && React__default["default"].createElement("div", {
|
|
9209
|
-
className: `${classPrefix$
|
|
9213
|
+
className: `${classPrefix$1f}-cancel`
|
|
9210
9214
|
}, React__default["default"].createElement("div", {
|
|
9211
|
-
className: `${classPrefix$
|
|
9215
|
+
className: `${classPrefix$1f}-button-item-wrapper`
|
|
9212
9216
|
}, React__default["default"].createElement("a", {
|
|
9213
|
-
className: classNames__default["default"]("adm-plain-anchor", `${classPrefix$
|
|
9217
|
+
className: classNames__default["default"]("adm-plain-anchor", `${classPrefix$1f}-button-item`),
|
|
9214
9218
|
onClick: () => {
|
|
9215
9219
|
var _a;
|
|
9216
9220
|
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
9217
9221
|
}
|
|
9218
9222
|
}, React__default["default"].createElement("div", {
|
|
9219
|
-
className: `${classPrefix$
|
|
9223
|
+
className: `${classPrefix$1f}-button-item-name`
|
|
9220
9224
|
}, props.cancelText)))), props.safeArea && React__default["default"].createElement(SafeArea, {
|
|
9221
9225
|
position: "bottom"
|
|
9222
9226
|
}))));
|
|
@@ -9228,12 +9232,12 @@ var index$h = attachPropertiesToComponent(ActionSheet, {
|
|
|
9228
9232
|
show: showActionSheet
|
|
9229
9233
|
});
|
|
9230
9234
|
var autoCenter = "";
|
|
9231
|
-
const classPrefix$
|
|
9235
|
+
const classPrefix$1e = "adm-auto-center";
|
|
9232
9236
|
const AutoCenter = (props) => {
|
|
9233
9237
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
9234
|
-
className: classPrefix$
|
|
9238
|
+
className: classPrefix$1e
|
|
9235
9239
|
}, React__default["default"].createElement("div", {
|
|
9236
|
-
className: `${classPrefix$
|
|
9240
|
+
className: `${classPrefix$1e}-content`
|
|
9237
9241
|
}, props.children)));
|
|
9238
9242
|
};
|
|
9239
9243
|
var avatar = "";
|
|
@@ -9275,15 +9279,15 @@ const Fallback = React$1.memo(() => React__default["default"].createElement("svg
|
|
|
9275
9279
|
fillRule: "nonzero",
|
|
9276
9280
|
mask: "url(#mask-2)"
|
|
9277
9281
|
}))))));
|
|
9278
|
-
const classPrefix$
|
|
9279
|
-
const defaultProps$
|
|
9282
|
+
const classPrefix$1d = "adm-avatar";
|
|
9283
|
+
const defaultProps$Y = {
|
|
9280
9284
|
fallback: React__default["default"].createElement(Fallback, null),
|
|
9281
9285
|
fit: "cover"
|
|
9282
9286
|
};
|
|
9283
9287
|
const Avatar = (p2) => {
|
|
9284
|
-
const props = mergeProps(defaultProps$
|
|
9288
|
+
const props = mergeProps(defaultProps$Y, p2);
|
|
9285
9289
|
return withNativeProps(props, React__default["default"].createElement(Image$1, {
|
|
9286
|
-
className: classPrefix$
|
|
9290
|
+
className: classPrefix$1d,
|
|
9287
9291
|
src: props.src,
|
|
9288
9292
|
fallback: props.fallback,
|
|
9289
9293
|
placeholder: props.fallback,
|
|
@@ -9295,7 +9299,7 @@ const Avatar = (p2) => {
|
|
|
9295
9299
|
}));
|
|
9296
9300
|
};
|
|
9297
9301
|
var badge = "";
|
|
9298
|
-
const classPrefix$
|
|
9302
|
+
const classPrefix$1c = `adm-badge`;
|
|
9299
9303
|
const dot = React__default["default"].createElement(React__default["default"].Fragment, null);
|
|
9300
9304
|
const Badge$1 = (props) => {
|
|
9301
9305
|
const {
|
|
@@ -9304,17 +9308,17 @@ const Badge$1 = (props) => {
|
|
|
9304
9308
|
children
|
|
9305
9309
|
} = props;
|
|
9306
9310
|
const isDot = content === dot;
|
|
9307
|
-
const badgeCls = classNames__default["default"](classPrefix$
|
|
9311
|
+
const badgeCls = classNames__default["default"](classPrefix$1c, !!children && `${classPrefix$1c}-fixed`, isDot && `${classPrefix$1c}-dot`, props.bordered && `${classPrefix$1c}-bordered`);
|
|
9308
9312
|
const element = content || content === 0 ? withNativeProps(props, React__default["default"].createElement("div", {
|
|
9309
9313
|
className: badgeCls,
|
|
9310
9314
|
style: {
|
|
9311
9315
|
"--color": color
|
|
9312
9316
|
}
|
|
9313
9317
|
}, !isDot && React__default["default"].createElement("div", {
|
|
9314
|
-
className: `${classPrefix$
|
|
9318
|
+
className: `${classPrefix$1c}-content`
|
|
9315
9319
|
}, content))) : null;
|
|
9316
9320
|
return children ? React__default["default"].createElement("div", {
|
|
9317
|
-
className: `${classPrefix$
|
|
9321
|
+
className: `${classPrefix$1c}-wrap`
|
|
9318
9322
|
}, children, element) : element;
|
|
9319
9323
|
};
|
|
9320
9324
|
var Badge = attachPropertiesToComponent(Badge$1, {
|
|
@@ -9322,23 +9326,23 @@ var Badge = attachPropertiesToComponent(Badge$1, {
|
|
|
9322
9326
|
});
|
|
9323
9327
|
var button = "";
|
|
9324
9328
|
var dotLoading = "";
|
|
9325
|
-
const classPrefix$
|
|
9329
|
+
const classPrefix$1b = `adm-dot-loading`;
|
|
9326
9330
|
const colorRecord$3 = {
|
|
9327
9331
|
default: "var(--adm-color-weak)",
|
|
9328
9332
|
primary: "var(--adm-color-primary)",
|
|
9329
9333
|
white: "var(--adm-color-white)"
|
|
9330
9334
|
};
|
|
9331
|
-
const defaultProps$
|
|
9335
|
+
const defaultProps$X = {
|
|
9332
9336
|
color: "default"
|
|
9333
9337
|
};
|
|
9334
9338
|
const DotLoading = React$1.memo((p2) => {
|
|
9335
9339
|
var _a;
|
|
9336
|
-
const props = mergeProps(defaultProps$
|
|
9340
|
+
const props = mergeProps(defaultProps$X, p2);
|
|
9337
9341
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
9338
9342
|
style: {
|
|
9339
9343
|
color: (_a = colorRecord$3[props.color]) !== null && _a !== void 0 ? _a : props.color
|
|
9340
9344
|
},
|
|
9341
|
-
className: classNames__default["default"]("adm-loading", classPrefix$
|
|
9345
|
+
className: classNames__default["default"]("adm-loading", classPrefix$1b)
|
|
9342
9346
|
}, React__default["default"].createElement("svg", {
|
|
9343
9347
|
height: "1em",
|
|
9344
9348
|
viewBox: "0 0 100 40",
|
|
@@ -9381,8 +9385,8 @@ function isPromise(obj) {
|
|
|
9381
9385
|
function isIOS() {
|
|
9382
9386
|
return canUseDom ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : false;
|
|
9383
9387
|
}
|
|
9384
|
-
const classPrefix$
|
|
9385
|
-
const defaultProps$
|
|
9388
|
+
const classPrefix$1a = `adm-button`;
|
|
9389
|
+
const defaultProps$W = {
|
|
9386
9390
|
color: "default",
|
|
9387
9391
|
fill: "solid",
|
|
9388
9392
|
block: false,
|
|
@@ -9395,7 +9399,7 @@ const defaultProps$U = {
|
|
|
9395
9399
|
size: "middle"
|
|
9396
9400
|
};
|
|
9397
9401
|
const Button = React$1.forwardRef((p2, ref) => {
|
|
9398
|
-
const props = mergeProps(defaultProps$
|
|
9402
|
+
const props = mergeProps(defaultProps$W, p2);
|
|
9399
9403
|
const [innerLoading, setInnerLoading] = React$1.useState(false);
|
|
9400
9404
|
const nativeButtonRef = React$1.useRef(null);
|
|
9401
9405
|
const loading = props.loading === "auto" ? innerLoading : props.loading;
|
|
@@ -9424,23 +9428,23 @@ const Button = React$1.forwardRef((p2, ref) => {
|
|
|
9424
9428
|
ref: nativeButtonRef,
|
|
9425
9429
|
type: props.type,
|
|
9426
9430
|
onClick: handleClick,
|
|
9427
|
-
className: classNames__default["default"](classPrefix$
|
|
9428
|
-
[`${classPrefix$
|
|
9429
|
-
[`${classPrefix$
|
|
9430
|
-
[`${classPrefix$
|
|
9431
|
-
[`${classPrefix$
|
|
9432
|
-
[`${classPrefix$
|
|
9433
|
-
[`${classPrefix$
|
|
9434
|
-
[`${classPrefix$
|
|
9435
|
-
[`${classPrefix$
|
|
9436
|
-
}, `${classPrefix$
|
|
9431
|
+
className: classNames__default["default"](classPrefix$1a, props.color ? `${classPrefix$1a}-${props.color}` : null, {
|
|
9432
|
+
[`${classPrefix$1a}-block`]: props.block,
|
|
9433
|
+
[`${classPrefix$1a}-disabled`]: disabled,
|
|
9434
|
+
[`${classPrefix$1a}-fill-outline`]: props.fill === "outline",
|
|
9435
|
+
[`${classPrefix$1a}-fill-none`]: props.fill === "none",
|
|
9436
|
+
[`${classPrefix$1a}-mini`]: props.size === "mini",
|
|
9437
|
+
[`${classPrefix$1a}-small`]: props.size === "small",
|
|
9438
|
+
[`${classPrefix$1a}-large`]: props.size === "large",
|
|
9439
|
+
[`${classPrefix$1a}-loading`]: loading
|
|
9440
|
+
}, `${classPrefix$1a}-shape-${props.shape}`),
|
|
9437
9441
|
disabled,
|
|
9438
9442
|
onMouseDown: props.onMouseDown,
|
|
9439
9443
|
onMouseUp: props.onMouseUp,
|
|
9440
9444
|
onTouchStart: props.onTouchStart,
|
|
9441
9445
|
onTouchEnd: props.onTouchEnd
|
|
9442
9446
|
}, loading ? React__default["default"].createElement("div", {
|
|
9443
|
-
className: `${classPrefix$
|
|
9447
|
+
className: `${classPrefix$1a}-loading-wrapper`
|
|
9444
9448
|
}, props.loadingIcon, props.loadingText) : props.children));
|
|
9445
9449
|
});
|
|
9446
9450
|
var calendar = "";
|
|
@@ -9561,8 +9565,8 @@ function convertValueToRange(selectionMode, value) {
|
|
|
9561
9565
|
return [value, value];
|
|
9562
9566
|
}
|
|
9563
9567
|
dayjs__default["default"].extend(isoWeek);
|
|
9564
|
-
const classPrefix$
|
|
9565
|
-
const defaultProps$
|
|
9568
|
+
const classPrefix$19 = "adm-calendar";
|
|
9569
|
+
const defaultProps$V = {
|
|
9566
9570
|
weekStartsOn: "Sunday",
|
|
9567
9571
|
defaultValue: null,
|
|
9568
9572
|
allowClear: true,
|
|
@@ -9573,7 +9577,7 @@ const defaultProps$T = {
|
|
|
9573
9577
|
};
|
|
9574
9578
|
const Calendar = React$1.forwardRef((p2, ref) => {
|
|
9575
9579
|
const today = dayjs__default["default"]();
|
|
9576
|
-
const props = mergeProps(defaultProps$
|
|
9580
|
+
const props = mergeProps(defaultProps$V, p2);
|
|
9577
9581
|
const {
|
|
9578
9582
|
locale
|
|
9579
9583
|
} = useConfig();
|
|
@@ -9619,26 +9623,26 @@ const Calendar = React$1.forwardRef((p2, ref) => {
|
|
|
9619
9623
|
}
|
|
9620
9624
|
}));
|
|
9621
9625
|
const header = React__default["default"].createElement("div", {
|
|
9622
|
-
className: `${classPrefix$
|
|
9626
|
+
className: `${classPrefix$19}-header`
|
|
9623
9627
|
}, React__default["default"].createElement("a", {
|
|
9624
|
-
className: `${classPrefix$
|
|
9628
|
+
className: `${classPrefix$19}-arrow-button ${classPrefix$19}-arrow-button-year`,
|
|
9625
9629
|
onClick: () => {
|
|
9626
9630
|
setCurrent(current.subtract(1, "year"));
|
|
9627
9631
|
}
|
|
9628
9632
|
}, props.prevYearButton), React__default["default"].createElement("a", {
|
|
9629
|
-
className: `${classPrefix$
|
|
9633
|
+
className: `${classPrefix$19}-arrow-button ${classPrefix$19}-arrow-button-month`,
|
|
9630
9634
|
onClick: () => {
|
|
9631
9635
|
setCurrent(current.subtract(1, "month"));
|
|
9632
9636
|
}
|
|
9633
9637
|
}, props.prevMonthButton), React__default["default"].createElement("div", {
|
|
9634
|
-
className: `${classPrefix$
|
|
9638
|
+
className: `${classPrefix$19}-title`
|
|
9635
9639
|
}, locale.Calendar.renderYearAndMonth(current.year(), current.month() + 1)), React__default["default"].createElement("a", {
|
|
9636
|
-
className: classNames__default["default"](`${classPrefix$
|
|
9640
|
+
className: classNames__default["default"](`${classPrefix$19}-arrow-button`, `${classPrefix$19}-arrow-button-right`, `${classPrefix$19}-arrow-button-right-month`),
|
|
9637
9641
|
onClick: () => {
|
|
9638
9642
|
setCurrent(current.add(1, "month"));
|
|
9639
9643
|
}
|
|
9640
9644
|
}, props.nextMonthButton), React__default["default"].createElement("a", {
|
|
9641
|
-
className: classNames__default["default"](`${classPrefix$
|
|
9645
|
+
className: classNames__default["default"](`${classPrefix$19}-arrow-button`, `${classPrefix$19}-arrow-button-right`, `${classPrefix$19}-arrow-button-right-year`),
|
|
9642
9646
|
onClick: () => {
|
|
9643
9647
|
setCurrent(current.add(1, "year"));
|
|
9644
9648
|
}
|
|
@@ -9667,11 +9671,11 @@ const Calendar = React$1.forwardRef((p2, ref) => {
|
|
|
9667
9671
|
const disabled = props.shouldDisableDate ? props.shouldDisableDate(d.toDate()) : maxDay && d.isAfter(maxDay, "day") || minDay && d.isBefore(minDay, "day");
|
|
9668
9672
|
cells.push(React__default["default"].createElement("div", {
|
|
9669
9673
|
key: d.valueOf(),
|
|
9670
|
-
className: classNames__default["default"](`${classPrefix$
|
|
9671
|
-
[`${classPrefix$
|
|
9672
|
-
[`${classPrefix$
|
|
9673
|
-
[`${classPrefix$
|
|
9674
|
-
[`${classPrefix$
|
|
9674
|
+
className: classNames__default["default"](`${classPrefix$19}-cell`, (disabled || !inThisMonth) && `${classPrefix$19}-cell-disabled`, inThisMonth && {
|
|
9675
|
+
[`${classPrefix$19}-cell-today`]: d.isSame(today, "day"),
|
|
9676
|
+
[`${classPrefix$19}-cell-selected`]: isSelect,
|
|
9677
|
+
[`${classPrefix$19}-cell-selected-begin`]: isBegin,
|
|
9678
|
+
[`${classPrefix$19}-cell-selected-end`]: isEnd
|
|
9675
9679
|
}),
|
|
9676
9680
|
onClick: () => {
|
|
9677
9681
|
if (!props.selectionMode)
|
|
@@ -9718,25 +9722,25 @@ const Calendar = React$1.forwardRef((p2, ref) => {
|
|
|
9718
9722
|
}
|
|
9719
9723
|
}
|
|
9720
9724
|
}, React__default["default"].createElement("div", {
|
|
9721
|
-
className: `${classPrefix$
|
|
9725
|
+
className: `${classPrefix$19}-cell-top`
|
|
9722
9726
|
}, d.date()), React__default["default"].createElement("div", {
|
|
9723
|
-
className: `${classPrefix$
|
|
9727
|
+
className: `${classPrefix$19}-cell-bottom`
|
|
9724
9728
|
}, (_a = props.renderLabel) === null || _a === void 0 ? void 0 : _a.call(props, d.toDate()))));
|
|
9725
9729
|
iterator = iterator.add(1, "day");
|
|
9726
9730
|
}
|
|
9727
9731
|
return cells;
|
|
9728
9732
|
}
|
|
9729
9733
|
const body = React__default["default"].createElement("div", {
|
|
9730
|
-
className: `${classPrefix$
|
|
9734
|
+
className: `${classPrefix$19}-cells`
|
|
9731
9735
|
}, renderCells());
|
|
9732
9736
|
const mark = React__default["default"].createElement("div", {
|
|
9733
|
-
className: `${classPrefix$
|
|
9737
|
+
className: `${classPrefix$19}-mark`
|
|
9734
9738
|
}, markItems.map((item) => React__default["default"].createElement("div", {
|
|
9735
9739
|
key: item,
|
|
9736
|
-
className: `${classPrefix$
|
|
9740
|
+
className: `${classPrefix$19}-mark-cell`
|
|
9737
9741
|
}, item)));
|
|
9738
9742
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
9739
|
-
className: classPrefix$
|
|
9743
|
+
className: classPrefix$19
|
|
9740
9744
|
}, header, mark, body));
|
|
9741
9745
|
});
|
|
9742
9746
|
var capsuleTabs = "";
|
|
@@ -9838,7 +9842,7 @@ const useTabListScroll = (targetRef, activeIndex) => {
|
|
|
9838
9842
|
};
|
|
9839
9843
|
};
|
|
9840
9844
|
var scrollMask = "";
|
|
9841
|
-
const classPrefix$
|
|
9845
|
+
const classPrefix$18 = `adm-scroll-mask`;
|
|
9842
9846
|
const ScrollMask = (props) => {
|
|
9843
9847
|
const maskRef = React$1.useRef(null);
|
|
9844
9848
|
const [{
|
|
@@ -9885,12 +9889,12 @@ const ScrollMask = (props) => {
|
|
|
9885
9889
|
}, []);
|
|
9886
9890
|
return React__default["default"].createElement(React__default["default"].Fragment, null, React__default["default"].createElement(web.animated.div, {
|
|
9887
9891
|
ref: maskRef,
|
|
9888
|
-
className: classNames__default["default"](classPrefix$
|
|
9892
|
+
className: classNames__default["default"](classPrefix$18, `${classPrefix$18}-left`),
|
|
9889
9893
|
style: {
|
|
9890
9894
|
opacity: leftMaskOpacity
|
|
9891
9895
|
}
|
|
9892
9896
|
}), React__default["default"].createElement(web.animated.div, {
|
|
9893
|
-
className: classNames__default["default"](classPrefix$
|
|
9897
|
+
className: classNames__default["default"](classPrefix$18, `${classPrefix$18}-right`),
|
|
9894
9898
|
style: {
|
|
9895
9899
|
opacity: rightMaskOpacity
|
|
9896
9900
|
}
|
|
@@ -9910,7 +9914,7 @@ function traverseReactNode(children, fn) {
|
|
|
9910
9914
|
}
|
|
9911
9915
|
handle(children);
|
|
9912
9916
|
}
|
|
9913
|
-
const classPrefix$
|
|
9917
|
+
const classPrefix$17 = `adm-capsule-tabs`;
|
|
9914
9918
|
const CapsuleTab = () => {
|
|
9915
9919
|
return null;
|
|
9916
9920
|
};
|
|
@@ -9951,19 +9955,19 @@ const CapsuleTabs = (props) => {
|
|
|
9951
9955
|
animate(true);
|
|
9952
9956
|
}, rootRef);
|
|
9953
9957
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
9954
|
-
className: classPrefix$
|
|
9958
|
+
className: classPrefix$17,
|
|
9955
9959
|
ref: rootRef
|
|
9956
9960
|
}, React__default["default"].createElement("div", {
|
|
9957
|
-
className: `${classPrefix$
|
|
9961
|
+
className: `${classPrefix$17}-header`
|
|
9958
9962
|
}, React__default["default"].createElement(ScrollMask, {
|
|
9959
9963
|
scrollTrackRef: tabListContainerRef
|
|
9960
9964
|
}), React__default["default"].createElement(web.animated.div, {
|
|
9961
|
-
className: `${classPrefix$
|
|
9965
|
+
className: `${classPrefix$17}-tab-list`,
|
|
9962
9966
|
ref: tabListContainerRef,
|
|
9963
9967
|
scrollLeft
|
|
9964
9968
|
}, panes.map((pane) => withNativeProps(pane.props, React__default["default"].createElement("div", {
|
|
9965
9969
|
key: pane.key,
|
|
9966
|
-
className: `${classPrefix$
|
|
9970
|
+
className: `${classPrefix$17}-tab-wrapper`
|
|
9967
9971
|
}, React__default["default"].createElement("div", {
|
|
9968
9972
|
onClick: () => {
|
|
9969
9973
|
const {
|
|
@@ -9976,9 +9980,9 @@ const CapsuleTabs = (props) => {
|
|
|
9976
9980
|
}
|
|
9977
9981
|
setActiveKey(key.toString());
|
|
9978
9982
|
},
|
|
9979
|
-
className: classNames__default["default"](`${classPrefix$
|
|
9980
|
-
[`${classPrefix$
|
|
9981
|
-
[`${classPrefix$
|
|
9983
|
+
className: classNames__default["default"](`${classPrefix$17}-tab`, {
|
|
9984
|
+
[`${classPrefix$17}-tab-active`]: pane.key === activeKey,
|
|
9985
|
+
[`${classPrefix$17}-tab-disabled`]: pane.props.disabled
|
|
9982
9986
|
})
|
|
9983
9987
|
}, pane.props.title)))))), panes.map((pane) => {
|
|
9984
9988
|
if (pane.props.children === void 0) {
|
|
@@ -9991,7 +9995,7 @@ const CapsuleTabs = (props) => {
|
|
|
9991
9995
|
forceRender: pane.props.forceRender,
|
|
9992
9996
|
destroyOnClose: pane.props.destroyOnClose
|
|
9993
9997
|
}, React__default["default"].createElement("div", {
|
|
9994
|
-
className: `${classPrefix$
|
|
9998
|
+
className: `${classPrefix$17}-content`,
|
|
9995
9999
|
style: {
|
|
9996
10000
|
display: active ? "block" : "none"
|
|
9997
10001
|
}
|
|
@@ -10002,18 +10006,18 @@ var index$g = attachPropertiesToComponent(CapsuleTabs, {
|
|
|
10002
10006
|
Tab: CapsuleTab
|
|
10003
10007
|
});
|
|
10004
10008
|
var card = "";
|
|
10005
|
-
const classPrefix$
|
|
10009
|
+
const classPrefix$16 = `adm-card`;
|
|
10006
10010
|
const Card = (props) => {
|
|
10007
10011
|
const renderHeader = () => {
|
|
10008
10012
|
if (!(props.title || props.extra)) {
|
|
10009
10013
|
return null;
|
|
10010
10014
|
}
|
|
10011
10015
|
return React__default["default"].createElement("div", {
|
|
10012
|
-
className: classNames__default["default"](`${classPrefix$
|
|
10016
|
+
className: classNames__default["default"](`${classPrefix$16}-header`, props.headerClassName),
|
|
10013
10017
|
style: props.headerStyle,
|
|
10014
10018
|
onClick: props.onHeaderClick
|
|
10015
10019
|
}, React__default["default"].createElement("div", {
|
|
10016
|
-
className: `${classPrefix$
|
|
10020
|
+
className: `${classPrefix$16}-header-title`
|
|
10017
10021
|
}, props.title), props.extra);
|
|
10018
10022
|
};
|
|
10019
10023
|
const renderBody = () => {
|
|
@@ -10021,13 +10025,13 @@ const Card = (props) => {
|
|
|
10021
10025
|
return null;
|
|
10022
10026
|
}
|
|
10023
10027
|
return React__default["default"].createElement("div", {
|
|
10024
|
-
className: classNames__default["default"](`${classPrefix$
|
|
10028
|
+
className: classNames__default["default"](`${classPrefix$16}-body`, props.bodyClassName),
|
|
10025
10029
|
style: props.bodyStyle,
|
|
10026
10030
|
onClick: props.onBodyClick
|
|
10027
10031
|
}, props.children);
|
|
10028
10032
|
};
|
|
10029
10033
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
10030
|
-
className: classPrefix$
|
|
10034
|
+
className: classPrefix$16,
|
|
10031
10035
|
onClick: props.onClick
|
|
10032
10036
|
}, renderHeader(), renderBody()));
|
|
10033
10037
|
};
|
|
@@ -10308,7 +10312,7 @@ function measureCSSLength(raw) {
|
|
|
10308
10312
|
return 0;
|
|
10309
10313
|
}
|
|
10310
10314
|
}
|
|
10311
|
-
const classPrefix$
|
|
10315
|
+
const classPrefix$15 = `adm-picker-view`;
|
|
10312
10316
|
const Wheel = React$1.memo((props) => {
|
|
10313
10317
|
const {
|
|
10314
10318
|
value,
|
|
@@ -10448,12 +10452,12 @@ const Wheel = React$1.memo((props) => {
|
|
|
10448
10452
|
}
|
|
10449
10453
|
return React__default["default"].createElement("div", {
|
|
10450
10454
|
ref: rootRef,
|
|
10451
|
-
className: `${classPrefix$
|
|
10455
|
+
className: `${classPrefix$15}-column`
|
|
10452
10456
|
}, React__default["default"].createElement(web.animated.div, {
|
|
10453
10457
|
style: {
|
|
10454
10458
|
translateY: y
|
|
10455
10459
|
},
|
|
10456
|
-
className: `${classPrefix$
|
|
10460
|
+
className: `${classPrefix$15}-column-wheel`,
|
|
10457
10461
|
"aria-hidden": true
|
|
10458
10462
|
}, column.map((item, index2) => {
|
|
10459
10463
|
var _a;
|
|
@@ -10467,12 +10471,12 @@ const Wheel = React$1.memo((props) => {
|
|
|
10467
10471
|
return React__default["default"].createElement("div", {
|
|
10468
10472
|
key: (_a = item.key) !== null && _a !== void 0 ? _a : item.value,
|
|
10469
10473
|
"data-selected": item.value === value,
|
|
10470
|
-
className: `${classPrefix$
|
|
10474
|
+
className: `${classPrefix$15}-column-item`,
|
|
10471
10475
|
onClick: handleClick,
|
|
10472
10476
|
"aria-hidden": !selected,
|
|
10473
10477
|
"aria-label": selected ? "active" : ""
|
|
10474
10478
|
}, React__default["default"].createElement("div", {
|
|
10475
|
-
className: `${classPrefix$
|
|
10479
|
+
className: `${classPrefix$15}-column-item-label`
|
|
10476
10480
|
}, renderLabel(item)));
|
|
10477
10481
|
})), renderAccessible());
|
|
10478
10482
|
}, (prev, next) => {
|
|
@@ -10528,14 +10532,14 @@ function useColumnsExtend(rawColumns, value) {
|
|
|
10528
10532
|
return React$1.useMemo(() => generateColumnsExtend(rawColumns, value), [rawColumns, value]);
|
|
10529
10533
|
}
|
|
10530
10534
|
const defaultRenderLabel$3 = (item) => item.label;
|
|
10531
|
-
const classPrefix$
|
|
10532
|
-
const defaultProps$
|
|
10535
|
+
const classPrefix$14 = `adm-picker-view`;
|
|
10536
|
+
const defaultProps$U = {
|
|
10533
10537
|
defaultValue: [],
|
|
10534
10538
|
renderLabel: defaultRenderLabel$3,
|
|
10535
10539
|
mouseWheel: false
|
|
10536
10540
|
};
|
|
10537
10541
|
const PickerView = React$1.memo((p2) => {
|
|
10538
|
-
const props = mergeProps(defaultProps$
|
|
10542
|
+
const props = mergeProps(defaultProps$U, p2);
|
|
10539
10543
|
const [innerValue, setInnerValue] = React$1.useState(props.value === void 0 ? props.defaultValue : props.value);
|
|
10540
10544
|
React$1.useEffect(() => {
|
|
10541
10545
|
if (props.value === void 0)
|
|
@@ -10576,7 +10580,7 @@ const PickerView = React$1.memo((p2) => {
|
|
|
10576
10580
|
});
|
|
10577
10581
|
}, []);
|
|
10578
10582
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
10579
|
-
className: `${classPrefix$
|
|
10583
|
+
className: `${classPrefix$14}`
|
|
10580
10584
|
}, columns.map((column, index2) => React__default["default"].createElement(Wheel, {
|
|
10581
10585
|
key: index2,
|
|
10582
10586
|
index: index2,
|
|
@@ -10586,19 +10590,19 @@ const PickerView = React$1.memo((p2) => {
|
|
|
10586
10590
|
renderLabel: props.renderLabel,
|
|
10587
10591
|
mouseWheel: props.mouseWheel
|
|
10588
10592
|
})), React__default["default"].createElement("div", {
|
|
10589
|
-
className: `${classPrefix$
|
|
10593
|
+
className: `${classPrefix$14}-mask`
|
|
10590
10594
|
}, React__default["default"].createElement("div", {
|
|
10591
|
-
className: `${classPrefix$
|
|
10595
|
+
className: `${classPrefix$14}-mask-top`
|
|
10592
10596
|
}), React__default["default"].createElement("div", {
|
|
10593
|
-
className: `${classPrefix$
|
|
10597
|
+
className: `${classPrefix$14}-mask-middle`
|
|
10594
10598
|
}), React__default["default"].createElement("div", {
|
|
10595
|
-
className: `${classPrefix$
|
|
10599
|
+
className: `${classPrefix$14}-mask-bottom`
|
|
10596
10600
|
}))));
|
|
10597
10601
|
});
|
|
10598
10602
|
PickerView.displayName = "PickerView";
|
|
10599
10603
|
var pickerView = "";
|
|
10600
|
-
const classPrefix$
|
|
10601
|
-
const defaultProps$
|
|
10604
|
+
const classPrefix$13 = `adm-picker`;
|
|
10605
|
+
const defaultProps$T = {
|
|
10602
10606
|
defaultValue: [],
|
|
10603
10607
|
closeOnMaskClick: true,
|
|
10604
10608
|
renderLabel: defaultRenderLabel$3
|
|
@@ -10608,7 +10612,7 @@ const Picker$1 = React$1.memo(React$1.forwardRef((p2, ref) => {
|
|
|
10608
10612
|
const {
|
|
10609
10613
|
locale
|
|
10610
10614
|
} = useConfig();
|
|
10611
|
-
const props = mergeProps(defaultProps$
|
|
10615
|
+
const props = mergeProps(defaultProps$T, {
|
|
10612
10616
|
confirmText: locale.common.confirm,
|
|
10613
10617
|
cancelText: locale.common.cancel
|
|
10614
10618
|
}, p2);
|
|
@@ -10662,26 +10666,26 @@ const Picker$1 = React$1.memo(React$1.forwardRef((p2, ref) => {
|
|
|
10662
10666
|
});
|
|
10663
10667
|
const shouldRender = useShouldRender(visible, props.forceRender, props.destroyOnClose);
|
|
10664
10668
|
const pickerElement = withNativeProps(props, React__default["default"].createElement("div", {
|
|
10665
|
-
className: classPrefix$
|
|
10669
|
+
className: classPrefix$13
|
|
10666
10670
|
}, React__default["default"].createElement("div", {
|
|
10667
|
-
className: `${classPrefix$
|
|
10671
|
+
className: `${classPrefix$13}-header`
|
|
10668
10672
|
}, React__default["default"].createElement("a", {
|
|
10669
|
-
className: `${classPrefix$
|
|
10673
|
+
className: `${classPrefix$13}-header-button`,
|
|
10670
10674
|
onClick: () => {
|
|
10671
10675
|
var _a2;
|
|
10672
10676
|
(_a2 = props.onCancel) === null || _a2 === void 0 ? void 0 : _a2.call(props);
|
|
10673
10677
|
setVisible(false);
|
|
10674
10678
|
}
|
|
10675
10679
|
}, props.cancelText), React__default["default"].createElement("div", {
|
|
10676
|
-
className: `${classPrefix$
|
|
10680
|
+
className: `${classPrefix$13}-header-title`
|
|
10677
10681
|
}, props.title), React__default["default"].createElement("a", {
|
|
10678
|
-
className: `${classPrefix$
|
|
10682
|
+
className: `${classPrefix$13}-header-button`,
|
|
10679
10683
|
onClick: () => {
|
|
10680
10684
|
setValue(innerValue);
|
|
10681
10685
|
setVisible(false);
|
|
10682
10686
|
}
|
|
10683
10687
|
}, props.confirmText)), React__default["default"].createElement("div", {
|
|
10684
|
-
className: `${classPrefix$
|
|
10688
|
+
className: `${classPrefix$13}-body`
|
|
10685
10689
|
}, React__default["default"].createElement(PickerView, {
|
|
10686
10690
|
columns: props.columns,
|
|
10687
10691
|
renderLabel: props.renderLabel,
|
|
@@ -10691,7 +10695,7 @@ const Picker$1 = React$1.memo(React$1.forwardRef((p2, ref) => {
|
|
|
10691
10695
|
}))));
|
|
10692
10696
|
const popupElement = React__default["default"].createElement(Popup, {
|
|
10693
10697
|
style: props.popupStyle,
|
|
10694
|
-
className: classNames__default["default"](`${classPrefix$
|
|
10698
|
+
className: classNames__default["default"](`${classPrefix$13}-popup`, props.popupClassName),
|
|
10695
10699
|
visible,
|
|
10696
10700
|
position: "bottom",
|
|
10697
10701
|
onMaskClick: () => {
|
|
@@ -10840,17 +10844,17 @@ const CascadePickerView = (props) => {
|
|
|
10840
10844
|
};
|
|
10841
10845
|
var cascaderView = "";
|
|
10842
10846
|
var tabs = "";
|
|
10843
|
-
const classPrefix$
|
|
10847
|
+
const classPrefix$12 = `adm-tabs`;
|
|
10844
10848
|
const Tab = () => {
|
|
10845
10849
|
return null;
|
|
10846
10850
|
};
|
|
10847
|
-
const defaultProps$
|
|
10851
|
+
const defaultProps$S = {
|
|
10848
10852
|
activeLineMode: "auto",
|
|
10849
10853
|
stretch: true
|
|
10850
10854
|
};
|
|
10851
10855
|
const Tabs$1 = (p2) => {
|
|
10852
10856
|
var _a;
|
|
10853
|
-
const props = mergeProps(defaultProps$
|
|
10857
|
+
const props = mergeProps(defaultProps$S, p2);
|
|
10854
10858
|
const tabListContainerRef = React$1.useRef(null);
|
|
10855
10859
|
const activeLineRef = React$1.useRef(null);
|
|
10856
10860
|
const keyToIndexRecord = {};
|
|
@@ -11001,35 +11005,35 @@ const Tabs$1 = (p2) => {
|
|
|
11001
11005
|
updateMask(true);
|
|
11002
11006
|
}, []);
|
|
11003
11007
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
11004
|
-
className: classPrefix$
|
|
11008
|
+
className: classPrefix$12
|
|
11005
11009
|
}, React__default["default"].createElement("div", {
|
|
11006
|
-
className: `${classPrefix$
|
|
11010
|
+
className: `${classPrefix$12}-header`
|
|
11007
11011
|
}, React__default["default"].createElement(web.animated.div, {
|
|
11008
|
-
className: classNames__default["default"](`${classPrefix$
|
|
11012
|
+
className: classNames__default["default"](`${classPrefix$12}-header-mask`, `${classPrefix$12}-header-mask-left`),
|
|
11009
11013
|
style: {
|
|
11010
11014
|
opacity: leftMaskOpacity
|
|
11011
11015
|
}
|
|
11012
11016
|
}), React__default["default"].createElement(web.animated.div, {
|
|
11013
|
-
className: classNames__default["default"](`${classPrefix$
|
|
11017
|
+
className: classNames__default["default"](`${classPrefix$12}-header-mask`, `${classPrefix$12}-header-mask-right`),
|
|
11014
11018
|
style: {
|
|
11015
11019
|
opacity: rightMaskOpacity
|
|
11016
11020
|
}
|
|
11017
11021
|
}), React__default["default"].createElement(web.animated.div, {
|
|
11018
|
-
className: `${classPrefix$
|
|
11022
|
+
className: `${classPrefix$12}-tab-list`,
|
|
11019
11023
|
ref: tabListContainerRef,
|
|
11020
11024
|
scrollLeft,
|
|
11021
11025
|
onScroll: updateMask
|
|
11022
11026
|
}, React__default["default"].createElement(web.animated.div, {
|
|
11023
11027
|
ref: activeLineRef,
|
|
11024
|
-
className: `${classPrefix$
|
|
11028
|
+
className: `${classPrefix$12}-tab-line`,
|
|
11025
11029
|
style: {
|
|
11026
11030
|
width: props.activeLineMode === "fixed" ? "var(--fixed-active-line-width, 30px)" : width,
|
|
11027
11031
|
x
|
|
11028
11032
|
}
|
|
11029
11033
|
}), panes.map((pane) => withNativeProps(pane.props, React__default["default"].createElement("div", {
|
|
11030
11034
|
key: pane.key,
|
|
11031
|
-
className: classNames__default["default"](`${classPrefix$
|
|
11032
|
-
[`${classPrefix$
|
|
11035
|
+
className: classNames__default["default"](`${classPrefix$12}-tab-wrapper`, {
|
|
11036
|
+
[`${classPrefix$12}-tab-wrapper-stretch`]: props.stretch
|
|
11033
11037
|
})
|
|
11034
11038
|
}, React__default["default"].createElement("div", {
|
|
11035
11039
|
onClick: () => {
|
|
@@ -11043,9 +11047,9 @@ const Tabs$1 = (p2) => {
|
|
|
11043
11047
|
}
|
|
11044
11048
|
setActiveKey(key.toString());
|
|
11045
11049
|
},
|
|
11046
|
-
className: classNames__default["default"](`${classPrefix$
|
|
11047
|
-
[`${classPrefix$
|
|
11048
|
-
[`${classPrefix$
|
|
11050
|
+
className: classNames__default["default"](`${classPrefix$12}-tab`, {
|
|
11051
|
+
[`${classPrefix$12}-tab-active`]: pane.key === activeKey,
|
|
11052
|
+
[`${classPrefix$12}-tab-disabled`]: pane.props.disabled
|
|
11049
11053
|
})
|
|
11050
11054
|
}, pane.props.title)))))), panes.map((pane) => {
|
|
11051
11055
|
if (pane.props.children === void 0) {
|
|
@@ -11058,7 +11062,7 @@ const Tabs$1 = (p2) => {
|
|
|
11058
11062
|
forceRender: pane.props.forceRender,
|
|
11059
11063
|
destroyOnClose: pane.props.destroyOnClose
|
|
11060
11064
|
}, React__default["default"].createElement("div", {
|
|
11061
|
-
className: `${classPrefix$
|
|
11065
|
+
className: `${classPrefix$12}-content`,
|
|
11062
11066
|
style: {
|
|
11063
11067
|
display: active ? "block" : "none"
|
|
11064
11068
|
}
|
|
@@ -11070,47 +11074,47 @@ var Tabs = attachPropertiesToComponent(Tabs$1, {
|
|
|
11070
11074
|
});
|
|
11071
11075
|
var checkList = "";
|
|
11072
11076
|
var list = "";
|
|
11073
|
-
const classPrefix
|
|
11074
|
-
const defaultProps$
|
|
11077
|
+
const classPrefix$11 = `adm-list`;
|
|
11078
|
+
const defaultProps$R = {
|
|
11075
11079
|
mode: "default"
|
|
11076
11080
|
};
|
|
11077
11081
|
const List$1 = (p2) => {
|
|
11078
|
-
const props = mergeProps(defaultProps$
|
|
11082
|
+
const props = mergeProps(defaultProps$R, p2);
|
|
11079
11083
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
11080
|
-
className: classNames__default["default"](classPrefix
|
|
11084
|
+
className: classNames__default["default"](classPrefix$11, `${classPrefix$11}-${props.mode}`)
|
|
11081
11085
|
}, props.header && React__default["default"].createElement("div", {
|
|
11082
|
-
className: `${classPrefix
|
|
11086
|
+
className: `${classPrefix$11}-header`
|
|
11083
11087
|
}, props.header), React__default["default"].createElement("div", {
|
|
11084
|
-
className: `${classPrefix
|
|
11088
|
+
className: `${classPrefix$11}-body`
|
|
11085
11089
|
}, React__default["default"].createElement("div", {
|
|
11086
|
-
className: `${classPrefix
|
|
11090
|
+
className: `${classPrefix$11}-body-inner`
|
|
11087
11091
|
}, props.children))));
|
|
11088
11092
|
};
|
|
11089
11093
|
function isNodeWithContent(node) {
|
|
11090
11094
|
return node !== void 0 && node !== null && node !== false;
|
|
11091
11095
|
}
|
|
11092
|
-
const classPrefix$
|
|
11096
|
+
const classPrefix$10 = `adm-list-item`;
|
|
11093
11097
|
const ListItem = (props) => {
|
|
11094
11098
|
var _a;
|
|
11095
11099
|
const clickable = (_a = props.clickable) !== null && _a !== void 0 ? _a : !!props.onClick;
|
|
11096
11100
|
const arrow = props.arrow === void 0 ? clickable : props.arrow;
|
|
11097
11101
|
const content = React__default["default"].createElement("div", {
|
|
11098
|
-
className: `${classPrefix$
|
|
11102
|
+
className: `${classPrefix$10}-content`
|
|
11099
11103
|
}, isNodeWithContent(props.prefix) && React__default["default"].createElement("div", {
|
|
11100
|
-
className: `${classPrefix$
|
|
11104
|
+
className: `${classPrefix$10}-content-prefix`
|
|
11101
11105
|
}, props.prefix), React__default["default"].createElement("div", {
|
|
11102
|
-
className: `${classPrefix$
|
|
11106
|
+
className: `${classPrefix$10}-content-main`
|
|
11103
11107
|
}, isNodeWithContent(props.title) && React__default["default"].createElement("div", {
|
|
11104
|
-
className: `${classPrefix$
|
|
11108
|
+
className: `${classPrefix$10}-title`
|
|
11105
11109
|
}, props.title), props.children, isNodeWithContent(props.description) && React__default["default"].createElement("div", {
|
|
11106
|
-
className: `${classPrefix$
|
|
11110
|
+
className: `${classPrefix$10}-description`
|
|
11107
11111
|
}, props.description)), isNodeWithContent(props.extra) && React__default["default"].createElement("div", {
|
|
11108
|
-
className: `${classPrefix$
|
|
11112
|
+
className: `${classPrefix$10}-content-extra`
|
|
11109
11113
|
}, props.extra), isNodeWithContent(arrow) && React__default["default"].createElement("div", {
|
|
11110
|
-
className: `${classPrefix$
|
|
11114
|
+
className: `${classPrefix$10}-content-arrow`
|
|
11111
11115
|
}, arrow === true ? React__default["default"].createElement(antdMobileIcons.RightOutline, null) : arrow));
|
|
11112
11116
|
return withNativeProps(props, React__default["default"].createElement(clickable ? "a" : "div", {
|
|
11113
|
-
className: classNames__default["default"](`${classPrefix$
|
|
11117
|
+
className: classNames__default["default"](`${classPrefix$10}`, clickable ? ["adm-plain-anchor"] : [], props.disabled && `${classPrefix$10}-disabled`),
|
|
11114
11118
|
onClick: props.disabled ? void 0 : props.onClick
|
|
11115
11119
|
}, content));
|
|
11116
11120
|
};
|
|
@@ -11118,14 +11122,14 @@ var List = attachPropertiesToComponent(List$1, {
|
|
|
11118
11122
|
Item: ListItem
|
|
11119
11123
|
});
|
|
11120
11124
|
const CheckListContext = React$1.createContext(null);
|
|
11121
|
-
const classPrefix
|
|
11122
|
-
const defaultProps$
|
|
11125
|
+
const classPrefix$$ = "adm-check-list";
|
|
11126
|
+
const defaultProps$Q = {
|
|
11123
11127
|
multiple: false,
|
|
11124
11128
|
defaultValue: [],
|
|
11125
11129
|
activeIcon: React__default["default"].createElement(antdMobileIcons.CheckOutline, null)
|
|
11126
11130
|
};
|
|
11127
11131
|
const CheckList$1 = (p2) => {
|
|
11128
|
-
const props = mergeProps(defaultProps$
|
|
11132
|
+
const props = mergeProps(defaultProps$Q, p2);
|
|
11129
11133
|
const [value, setValue] = usePropsValue(props);
|
|
11130
11134
|
function check(val) {
|
|
11131
11135
|
if (props.multiple) {
|
|
@@ -11153,10 +11157,10 @@ const CheckList$1 = (p2) => {
|
|
|
11153
11157
|
}
|
|
11154
11158
|
}, withNativeProps(props, React__default["default"].createElement(List, {
|
|
11155
11159
|
mode: props.mode,
|
|
11156
|
-
className: classPrefix
|
|
11160
|
+
className: classPrefix$$
|
|
11157
11161
|
}, props.children)));
|
|
11158
11162
|
};
|
|
11159
|
-
const classPrefix$
|
|
11163
|
+
const classPrefix$_ = `adm-check-list-item`;
|
|
11160
11164
|
const CheckListItem = (props) => {
|
|
11161
11165
|
const context = React$1.useContext(CheckListContext);
|
|
11162
11166
|
if (context === null) {
|
|
@@ -11165,11 +11169,11 @@ const CheckListItem = (props) => {
|
|
|
11165
11169
|
const active = context.value.includes(props.value);
|
|
11166
11170
|
const readOnly = props.readOnly || context.readOnly;
|
|
11167
11171
|
const extra = React__default["default"].createElement("div", {
|
|
11168
|
-
className: `${classPrefix$
|
|
11172
|
+
className: `${classPrefix$_}-extra`
|
|
11169
11173
|
}, active ? context.activeIcon : null);
|
|
11170
11174
|
return withNativeProps(props, React__default["default"].createElement(List.Item, {
|
|
11171
11175
|
title: props.title,
|
|
11172
|
-
className: classNames__default["default"](classPrefix$
|
|
11176
|
+
className: classNames__default["default"](classPrefix$_, readOnly && `${classPrefix$_}-readonly`, active && `${classPrefix$_}-active`),
|
|
11173
11177
|
description: props.description,
|
|
11174
11178
|
prefix: props.prefix,
|
|
11175
11179
|
onClick: (e2) => {
|
|
@@ -11232,16 +11236,11 @@ function useCascaderValueExtend(options) {
|
|
|
11232
11236
|
}, [options]);
|
|
11233
11237
|
const generateIsLeaf = React$1.useMemo(() => {
|
|
11234
11238
|
return memoize_1((val) => {
|
|
11235
|
-
|
|
11236
|
-
|
|
11237
|
-
|
|
11238
|
-
|
|
11239
|
-
|
|
11240
|
-
break;
|
|
11241
|
-
}
|
|
11242
|
-
isLeaf = ((_a = target.children) === null || _a === void 0 ? void 0 : _a.length) === val.length;
|
|
11243
|
-
}
|
|
11244
|
-
return isLeaf;
|
|
11239
|
+
const children = val.reduce((currentOptions, v) => {
|
|
11240
|
+
var _a;
|
|
11241
|
+
return ((_a = currentOptions.find((option) => option.value === v)) === null || _a === void 0 ? void 0 : _a.children) || [];
|
|
11242
|
+
}, options);
|
|
11243
|
+
return children.length === 0;
|
|
11245
11244
|
}, (val) => JSON.stringify(val));
|
|
11246
11245
|
}, [options]);
|
|
11247
11246
|
function generateValueExtend(val) {
|
|
@@ -11265,18 +11264,18 @@ function generateIntArray(from, to) {
|
|
|
11265
11264
|
}
|
|
11266
11265
|
return array;
|
|
11267
11266
|
}
|
|
11268
|
-
const classPrefix$
|
|
11267
|
+
const classPrefix$Z = "adm-skeleton";
|
|
11269
11268
|
const Skeleton$1 = (props) => {
|
|
11270
11269
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
11271
|
-
className: classNames__default["default"](classPrefix$
|
|
11272
|
-
[`${classPrefix$
|
|
11270
|
+
className: classNames__default["default"](classPrefix$Z, {
|
|
11271
|
+
[`${classPrefix$Z}-animated`]: props.animated
|
|
11273
11272
|
})
|
|
11274
11273
|
}));
|
|
11275
11274
|
};
|
|
11276
11275
|
const SkeletonTitle = (props) => {
|
|
11277
11276
|
return withNativeProps(props, React__default["default"].createElement(Skeleton$1, {
|
|
11278
11277
|
animated: props.animated,
|
|
11279
|
-
className: `${classPrefix$
|
|
11278
|
+
className: `${classPrefix$Z}-title`
|
|
11280
11279
|
}));
|
|
11281
11280
|
};
|
|
11282
11281
|
const defaultSkeletonParagraphProps = {
|
|
@@ -11286,11 +11285,11 @@ const SkeletonParagraph = (p2) => {
|
|
|
11286
11285
|
const props = mergeProps(defaultSkeletonParagraphProps, p2);
|
|
11287
11286
|
const keys2 = generateIntArray(1, props.lineCount);
|
|
11288
11287
|
const node = React__default["default"].createElement("div", {
|
|
11289
|
-
className: `${classPrefix$
|
|
11288
|
+
className: `${classPrefix$Z}-paragraph`
|
|
11290
11289
|
}, keys2.map((key) => React__default["default"].createElement(Skeleton$1, {
|
|
11291
11290
|
key,
|
|
11292
11291
|
animated: props.animated,
|
|
11293
|
-
className: `${classPrefix$
|
|
11292
|
+
className: `${classPrefix$Z}-paragraph-line`
|
|
11294
11293
|
})));
|
|
11295
11294
|
return withNativeProps(props, node);
|
|
11296
11295
|
};
|
|
@@ -11298,15 +11297,15 @@ var Skeleton = attachPropertiesToComponent(Skeleton$1, {
|
|
|
11298
11297
|
Title: SkeletonTitle,
|
|
11299
11298
|
Paragraph: SkeletonParagraph
|
|
11300
11299
|
});
|
|
11301
|
-
const classPrefix$
|
|
11302
|
-
const defaultProps$
|
|
11300
|
+
const classPrefix$Y = `adm-cascader-view`;
|
|
11301
|
+
const defaultProps$P = {
|
|
11303
11302
|
defaultValue: []
|
|
11304
11303
|
};
|
|
11305
11304
|
const CascaderView$1 = (p2) => {
|
|
11306
11305
|
const {
|
|
11307
11306
|
locale
|
|
11308
11307
|
} = useConfig();
|
|
11309
|
-
const props = mergeProps(defaultProps$
|
|
11308
|
+
const props = mergeProps(defaultProps$P, {
|
|
11310
11309
|
placeholder: locale.Cascader.placeholder
|
|
11311
11310
|
}, p2);
|
|
11312
11311
|
const [value, setValue] = usePropsValue(Object.assign(Object.assign({}, props), {
|
|
@@ -11315,7 +11314,7 @@ const CascaderView$1 = (p2) => {
|
|
|
11315
11314
|
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, val, generateValueExtend(val));
|
|
11316
11315
|
}
|
|
11317
11316
|
}));
|
|
11318
|
-
const [
|
|
11317
|
+
const [tabActiveIndex, setTabActiveIndex] = React$1.useState(0);
|
|
11319
11318
|
const generateValueExtend = useCascaderValueExtend(props.options);
|
|
11320
11319
|
const levels = React$1.useMemo(() => {
|
|
11321
11320
|
const ret = [];
|
|
@@ -11342,14 +11341,14 @@ const CascaderView$1 = (p2) => {
|
|
|
11342
11341
|
return ret;
|
|
11343
11342
|
}, [value, props.options]);
|
|
11344
11343
|
React$1.useEffect(() => {
|
|
11345
|
-
|
|
11344
|
+
setTabActiveIndex(levels.length - 1);
|
|
11346
11345
|
}, [value]);
|
|
11347
11346
|
React$1.useEffect(() => {
|
|
11348
11347
|
const max = levels.length - 1;
|
|
11349
|
-
if (
|
|
11350
|
-
|
|
11348
|
+
if (tabActiveIndex > max) {
|
|
11349
|
+
setTabActiveIndex(max);
|
|
11351
11350
|
}
|
|
11352
|
-
}, [
|
|
11351
|
+
}, [tabActiveIndex, levels]);
|
|
11353
11352
|
const onItemSelect = (selectValue, depth) => {
|
|
11354
11353
|
const next = value.slice(0, depth);
|
|
11355
11354
|
if (selectValue !== void 0) {
|
|
@@ -11358,35 +11357,40 @@ const CascaderView$1 = (p2) => {
|
|
|
11358
11357
|
setValue(next);
|
|
11359
11358
|
};
|
|
11360
11359
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
11361
|
-
className: classPrefix$
|
|
11360
|
+
className: classPrefix$Y
|
|
11362
11361
|
}, React__default["default"].createElement(Tabs, {
|
|
11363
|
-
activeKey:
|
|
11364
|
-
onChange: (key) =>
|
|
11362
|
+
activeKey: tabActiveIndex.toString(),
|
|
11363
|
+
onChange: (key) => {
|
|
11364
|
+
var _a;
|
|
11365
|
+
const activeIndex = parseInt(key);
|
|
11366
|
+
setTabActiveIndex(activeIndex);
|
|
11367
|
+
(_a = props.onTabsChange) === null || _a === void 0 ? void 0 : _a.call(props, activeIndex);
|
|
11368
|
+
},
|
|
11365
11369
|
stretch: false,
|
|
11366
|
-
className: `${classPrefix$
|
|
11370
|
+
className: `${classPrefix$Y}-tabs`
|
|
11367
11371
|
}, levels.map((level, index2) => {
|
|
11368
11372
|
const selected = level.selected;
|
|
11369
11373
|
return React__default["default"].createElement(Tabs.Tab, {
|
|
11370
|
-
key: index2,
|
|
11374
|
+
key: index2.toString(),
|
|
11371
11375
|
title: React__default["default"].createElement("div", {
|
|
11372
|
-
className: `${classPrefix$
|
|
11376
|
+
className: `${classPrefix$Y}-header-title`
|
|
11373
11377
|
}, selected ? selected.label : props.placeholder),
|
|
11374
11378
|
forceRender: true
|
|
11375
11379
|
}, React__default["default"].createElement("div", {
|
|
11376
|
-
className: `${classPrefix$
|
|
11380
|
+
className: `${classPrefix$Y}-content`
|
|
11377
11381
|
}, level.options === optionSkeleton ? React__default["default"].createElement("div", {
|
|
11378
|
-
className: `${classPrefix$
|
|
11382
|
+
className: `${classPrefix$Y}-skeleton`
|
|
11379
11383
|
}, React__default["default"].createElement(Skeleton, {
|
|
11380
|
-
className: `${classPrefix$
|
|
11384
|
+
className: `${classPrefix$Y}-skeleton-line-1`,
|
|
11381
11385
|
animated: true
|
|
11382
11386
|
}), React__default["default"].createElement(Skeleton, {
|
|
11383
|
-
className: `${classPrefix$
|
|
11387
|
+
className: `${classPrefix$Y}-skeleton-line-2`,
|
|
11384
11388
|
animated: true
|
|
11385
11389
|
}), React__default["default"].createElement(Skeleton, {
|
|
11386
|
-
className: `${classPrefix$
|
|
11390
|
+
className: `${classPrefix$Y}-skeleton-line-3`,
|
|
11387
11391
|
animated: true
|
|
11388
11392
|
}), React__default["default"].createElement(Skeleton, {
|
|
11389
|
-
className: `${classPrefix$
|
|
11393
|
+
className: `${classPrefix$Y}-skeleton-line-4`,
|
|
11390
11394
|
animated: true
|
|
11391
11395
|
})) : React__default["default"].createElement(CheckList, {
|
|
11392
11396
|
value: [value[index2]],
|
|
@@ -11397,8 +11401,8 @@ const CascaderView$1 = (p2) => {
|
|
|
11397
11401
|
value: option.value,
|
|
11398
11402
|
key: option.value,
|
|
11399
11403
|
disabled: option.disabled,
|
|
11400
|
-
className: classNames__default["default"](`${classPrefix$
|
|
11401
|
-
[`${classPrefix$
|
|
11404
|
+
className: classNames__default["default"](`${classPrefix$Y}-item`, {
|
|
11405
|
+
[`${classPrefix$Y}-item-active`]: active
|
|
11402
11406
|
})
|
|
11403
11407
|
}, option.label);
|
|
11404
11408
|
}))));
|
|
@@ -11407,8 +11411,8 @@ const CascaderView$1 = (p2) => {
|
|
|
11407
11411
|
var CascaderView = attachPropertiesToComponent(CascaderView$1, {
|
|
11408
11412
|
optionSkeleton
|
|
11409
11413
|
});
|
|
11410
|
-
const classPrefix$
|
|
11411
|
-
const defaultProps$
|
|
11414
|
+
const classPrefix$X = `adm-cascader`;
|
|
11415
|
+
const defaultProps$O = {
|
|
11412
11416
|
defaultValue: []
|
|
11413
11417
|
};
|
|
11414
11418
|
const Cascader = (p2) => {
|
|
@@ -11416,7 +11420,7 @@ const Cascader = (p2) => {
|
|
|
11416
11420
|
const {
|
|
11417
11421
|
locale
|
|
11418
11422
|
} = useConfig();
|
|
11419
|
-
const props = mergeProps(defaultProps$
|
|
11423
|
+
const props = mergeProps(defaultProps$O, {
|
|
11420
11424
|
confirmText: locale.common.confirm,
|
|
11421
11425
|
cancelText: locale.common.cancel,
|
|
11422
11426
|
placeholder: locale.Cascader.placeholder
|
|
@@ -11440,27 +11444,27 @@ const Cascader = (p2) => {
|
|
|
11440
11444
|
}
|
|
11441
11445
|
}, [value]);
|
|
11442
11446
|
const cascaderElement = withNativeProps(props, React__default["default"].createElement("div", {
|
|
11443
|
-
className: classPrefix$
|
|
11447
|
+
className: classPrefix$X
|
|
11444
11448
|
}, React__default["default"].createElement("div", {
|
|
11445
|
-
className: `${classPrefix$
|
|
11449
|
+
className: `${classPrefix$X}-header`
|
|
11446
11450
|
}, React__default["default"].createElement("a", {
|
|
11447
|
-
className: `${classPrefix$
|
|
11451
|
+
className: `${classPrefix$X}-header-button`,
|
|
11448
11452
|
onClick: () => {
|
|
11449
11453
|
var _a2, _b;
|
|
11450
11454
|
(_a2 = props.onCancel) === null || _a2 === void 0 ? void 0 : _a2.call(props);
|
|
11451
11455
|
(_b = props.onClose) === null || _b === void 0 ? void 0 : _b.call(props);
|
|
11452
11456
|
}
|
|
11453
11457
|
}, props.cancelText), React__default["default"].createElement("div", {
|
|
11454
|
-
className: `${classPrefix$
|
|
11458
|
+
className: `${classPrefix$X}-header-title`
|
|
11455
11459
|
}, props.title), React__default["default"].createElement("a", {
|
|
11456
|
-
className: `${classPrefix$
|
|
11460
|
+
className: `${classPrefix$X}-header-button`,
|
|
11457
11461
|
onClick: () => {
|
|
11458
11462
|
var _a2;
|
|
11459
11463
|
setValue(innerValue);
|
|
11460
11464
|
(_a2 = props.onClose) === null || _a2 === void 0 ? void 0 : _a2.call(props);
|
|
11461
11465
|
}
|
|
11462
11466
|
}, props.confirmText)), React__default["default"].createElement("div", {
|
|
11463
|
-
className: `${classPrefix$
|
|
11467
|
+
className: `${classPrefix$X}-body`
|
|
11464
11468
|
}, React__default["default"].createElement(CascaderView, Object.assign({}, props, {
|
|
11465
11469
|
value: innerValue,
|
|
11466
11470
|
onChange: (val, ext) => {
|
|
@@ -11523,14 +11527,95 @@ var index$e = attachPropertiesToComponent(Cascader, {
|
|
|
11523
11527
|
prompt: prompt$1,
|
|
11524
11528
|
optionSkeleton
|
|
11525
11529
|
});
|
|
11530
|
+
var centerPopup = "";
|
|
11531
|
+
function useInnerVisible(outerVisible) {
|
|
11532
|
+
const [innerVisible, setInnerVisible] = React$1.useState(outerVisible);
|
|
11533
|
+
ahooks.useIsomorphicLayoutEffect(() => {
|
|
11534
|
+
setInnerVisible(outerVisible);
|
|
11535
|
+
}, [outerVisible]);
|
|
11536
|
+
return innerVisible;
|
|
11537
|
+
}
|
|
11538
|
+
const defaultProps$N = {
|
|
11539
|
+
destroyOnClose: false,
|
|
11540
|
+
disableBodyScroll: true,
|
|
11541
|
+
forceRender: false,
|
|
11542
|
+
getContainer: null,
|
|
11543
|
+
mask: true,
|
|
11544
|
+
showCloseButton: false,
|
|
11545
|
+
stopPropagation: ["click"],
|
|
11546
|
+
visible: false
|
|
11547
|
+
};
|
|
11548
|
+
const CenterPopup = (p2) => {
|
|
11549
|
+
const props = mergeProps(defaultProps$N, p2);
|
|
11550
|
+
const unmountedRef = ahooks.useUnmountedRef();
|
|
11551
|
+
const style = web.useSpring({
|
|
11552
|
+
scale: props.visible ? 1 : 0.8,
|
|
11553
|
+
opacity: props.visible ? 1 : 0,
|
|
11554
|
+
config: {
|
|
11555
|
+
mass: 1.2,
|
|
11556
|
+
tension: 200,
|
|
11557
|
+
friction: 25,
|
|
11558
|
+
clamp: true
|
|
11559
|
+
},
|
|
11560
|
+
onRest: () => {
|
|
11561
|
+
var _a, _b;
|
|
11562
|
+
if (unmountedRef.current)
|
|
11563
|
+
return;
|
|
11564
|
+
setActive(props.visible);
|
|
11565
|
+
if (props.visible) {
|
|
11566
|
+
(_a = props.afterShow) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
11567
|
+
} else {
|
|
11568
|
+
(_b = props.afterClose) === null || _b === void 0 ? void 0 : _b.call(props);
|
|
11569
|
+
}
|
|
11570
|
+
}
|
|
11571
|
+
});
|
|
11572
|
+
const [active, setActive] = React$1.useState(props.visible);
|
|
11573
|
+
ahooks.useIsomorphicLayoutEffect(() => {
|
|
11574
|
+
if (props.visible) {
|
|
11575
|
+
setActive(true);
|
|
11576
|
+
}
|
|
11577
|
+
}, [props.visible]);
|
|
11578
|
+
const ref = React$1.useRef(null);
|
|
11579
|
+
useLockScroll(ref, props.disableBodyScroll && active);
|
|
11580
|
+
const maskVisible = useInnerVisible(active && props.visible);
|
|
11581
|
+
const body = React__default["default"].createElement("div", {
|
|
11582
|
+
className: classNames__default["default"]("adm-center-popup-body", props.bodyClassName),
|
|
11583
|
+
style: props.bodyStyle
|
|
11584
|
+
}, props.children);
|
|
11585
|
+
const node = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default["default"].createElement("div", {
|
|
11586
|
+
className: "adm-center-popup",
|
|
11587
|
+
style: {
|
|
11588
|
+
display: active ? void 0 : "none",
|
|
11589
|
+
pointerEvents: active ? void 0 : "none"
|
|
11590
|
+
}
|
|
11591
|
+
}, props.mask && React__default["default"].createElement(Mask, {
|
|
11592
|
+
visible: maskVisible,
|
|
11593
|
+
forceRender: props.forceRender,
|
|
11594
|
+
destroyOnClose: props.destroyOnClose,
|
|
11595
|
+
onMaskClick: props.onMaskClick,
|
|
11596
|
+
style: props.maskStyle,
|
|
11597
|
+
className: classNames__default["default"]("adm-center-popup-mask", props.maskClassName),
|
|
11598
|
+
disableBodyScroll: false
|
|
11599
|
+
}), React__default["default"].createElement("div", {
|
|
11600
|
+
className: "adm-center-popup-wrap"
|
|
11601
|
+
}, React__default["default"].createElement(web.animated.div, {
|
|
11602
|
+
style,
|
|
11603
|
+
ref
|
|
11604
|
+
}, body)))));
|
|
11605
|
+
return React__default["default"].createElement(ShouldRender, {
|
|
11606
|
+
active,
|
|
11607
|
+
forceRender: props.forceRender,
|
|
11608
|
+
destroyOnClose: props.destroyOnClose
|
|
11609
|
+
}, renderToContainer(props.getContainer, node));
|
|
11610
|
+
};
|
|
11526
11611
|
var checkbox = "";
|
|
11527
11612
|
const CheckboxGroupContext = React$1.createContext(null);
|
|
11528
|
-
const defaultProps$
|
|
11613
|
+
const defaultProps$M = {
|
|
11529
11614
|
disabled: false,
|
|
11530
11615
|
defaultValue: []
|
|
11531
11616
|
};
|
|
11532
11617
|
const Group$1 = (p2) => {
|
|
11533
|
-
const props = mergeProps(defaultProps$
|
|
11618
|
+
const props = mergeProps(defaultProps$M, p2);
|
|
11534
11619
|
const [value, setValue] = usePropsValue(props);
|
|
11535
11620
|
return React__default["default"].createElement(CheckboxGroupContext.Provider, {
|
|
11536
11621
|
value: {
|
|
@@ -11589,14 +11674,14 @@ const NativeInput = (props) => {
|
|
|
11589
11674
|
id: props.id
|
|
11590
11675
|
});
|
|
11591
11676
|
};
|
|
11592
|
-
const classPrefix$
|
|
11593
|
-
const defaultProps$
|
|
11677
|
+
const classPrefix$W = `adm-checkbox`;
|
|
11678
|
+
const defaultProps$L = {
|
|
11594
11679
|
defaultChecked: false,
|
|
11595
11680
|
indeterminate: false
|
|
11596
11681
|
};
|
|
11597
11682
|
const Checkbox$1 = (p2) => {
|
|
11598
11683
|
const groupContext = React$1.useContext(CheckboxGroupContext);
|
|
11599
|
-
const props = mergeProps(defaultProps$
|
|
11684
|
+
const props = mergeProps(defaultProps$L, p2);
|
|
11600
11685
|
let [checked, setChecked] = usePropsValue({
|
|
11601
11686
|
value: props.checked,
|
|
11602
11687
|
defaultValue: props.defaultChecked,
|
|
@@ -11622,19 +11707,19 @@ const Checkbox$1 = (p2) => {
|
|
|
11622
11707
|
const renderIcon = () => {
|
|
11623
11708
|
if (props.icon) {
|
|
11624
11709
|
return React__default["default"].createElement("div", {
|
|
11625
|
-
className: `${classPrefix$
|
|
11710
|
+
className: `${classPrefix$W}-custom-icon`
|
|
11626
11711
|
}, props.icon(checked, props.indeterminate));
|
|
11627
11712
|
}
|
|
11628
11713
|
return React__default["default"].createElement("div", {
|
|
11629
|
-
className: `${classPrefix$
|
|
11714
|
+
className: `${classPrefix$W}-icon`
|
|
11630
11715
|
}, props.indeterminate ? React__default["default"].createElement(IndeterminateIcon, null) : checked && React__default["default"].createElement(CheckIcon, null));
|
|
11631
11716
|
};
|
|
11632
11717
|
return withNativeProps(props, React__default["default"].createElement("label", {
|
|
11633
|
-
className: classNames__default["default"](classPrefix$
|
|
11634
|
-
[`${classPrefix$
|
|
11635
|
-
[`${classPrefix$
|
|
11636
|
-
[`${classPrefix$
|
|
11637
|
-
[`${classPrefix$
|
|
11718
|
+
className: classNames__default["default"](classPrefix$W, {
|
|
11719
|
+
[`${classPrefix$W}-checked`]: checked && !props.indeterminate,
|
|
11720
|
+
[`${classPrefix$W}-indeterminate`]: props.indeterminate,
|
|
11721
|
+
[`${classPrefix$W}-disabled`]: disabled,
|
|
11722
|
+
[`${classPrefix$W}-block`]: props.block
|
|
11638
11723
|
})
|
|
11639
11724
|
}, React__default["default"].createElement(NativeInput, {
|
|
11640
11725
|
type: "checkbox",
|
|
@@ -11643,14 +11728,14 @@ const Checkbox$1 = (p2) => {
|
|
|
11643
11728
|
disabled,
|
|
11644
11729
|
id: props.id
|
|
11645
11730
|
}), renderIcon(), props.children && React__default["default"].createElement("div", {
|
|
11646
|
-
className: `${classPrefix$
|
|
11731
|
+
className: `${classPrefix$W}-content`
|
|
11647
11732
|
}, props.children)));
|
|
11648
11733
|
};
|
|
11649
11734
|
var Checkbox = attachPropertiesToComponent(Checkbox$1, {
|
|
11650
11735
|
Group: Group$1
|
|
11651
11736
|
});
|
|
11652
11737
|
var collapse = "";
|
|
11653
|
-
const classPrefix$
|
|
11738
|
+
const classPrefix$V = `adm-collapse`;
|
|
11654
11739
|
const CollapsePanel = () => {
|
|
11655
11740
|
return null;
|
|
11656
11741
|
};
|
|
@@ -11704,7 +11789,7 @@ const CollapsePanelContent = (props) => {
|
|
|
11704
11789
|
}
|
|
11705
11790
|
}, [visible]);
|
|
11706
11791
|
return React__default["default"].createElement(web.animated.div, {
|
|
11707
|
-
className: `${classPrefix$
|
|
11792
|
+
className: `${classPrefix$V}-panel-content`,
|
|
11708
11793
|
style: {
|
|
11709
11794
|
height: height.to((v) => {
|
|
11710
11795
|
if (height.idle && visible) {
|
|
@@ -11715,7 +11800,7 @@ const CollapsePanelContent = (props) => {
|
|
|
11715
11800
|
})
|
|
11716
11801
|
}
|
|
11717
11802
|
}, React__default["default"].createElement("div", {
|
|
11718
|
-
className: `${classPrefix$
|
|
11803
|
+
className: `${classPrefix$V}-panel-content-inner`,
|
|
11719
11804
|
ref: innerRef
|
|
11720
11805
|
}, React__default["default"].createElement(List.Item, null, shouldRender && props.children)));
|
|
11721
11806
|
};
|
|
@@ -11744,7 +11829,7 @@ const Collapse = (props) => {
|
|
|
11744
11829
|
});
|
|
11745
11830
|
const activeKeyList = activeKey === null ? [] : Array.isArray(activeKey) ? activeKey : [activeKey];
|
|
11746
11831
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
11747
|
-
className: classPrefix$
|
|
11832
|
+
className: classPrefix$V
|
|
11748
11833
|
}, React__default["default"].createElement(List, null, panels.map((panel) => {
|
|
11749
11834
|
const key = panel.key;
|
|
11750
11835
|
const active = activeKeyList.includes(key);
|
|
@@ -11774,15 +11859,15 @@ const Collapse = (props) => {
|
|
|
11774
11859
|
arrow = panel.props.arrow;
|
|
11775
11860
|
}
|
|
11776
11861
|
return typeof arrow === "function" ? arrow(active) : React__default["default"].createElement("div", {
|
|
11777
|
-
className: classNames__default["default"](`${classPrefix$
|
|
11778
|
-
[`${classPrefix$
|
|
11862
|
+
className: classNames__default["default"](`${classPrefix$V}-arrow`, {
|
|
11863
|
+
[`${classPrefix$V}-arrow-active`]: active
|
|
11779
11864
|
})
|
|
11780
11865
|
}, arrow);
|
|
11781
11866
|
};
|
|
11782
11867
|
return React__default["default"].createElement(React__default["default"].Fragment, {
|
|
11783
11868
|
key
|
|
11784
11869
|
}, withNativeProps(panel.props, React__default["default"].createElement(List.Item, {
|
|
11785
|
-
className: `${classPrefix$
|
|
11870
|
+
className: `${classPrefix$V}-panel-header`,
|
|
11786
11871
|
onClick: handleClick,
|
|
11787
11872
|
disabled: panel.props.disabled,
|
|
11788
11873
|
arrow: renderArrow()
|
|
@@ -12110,7 +12195,7 @@ const defaultRenderLabel = (precision, data) => {
|
|
|
12110
12195
|
}
|
|
12111
12196
|
};
|
|
12112
12197
|
const thisYear$1 = new Date().getFullYear();
|
|
12113
|
-
const defaultProps$
|
|
12198
|
+
const defaultProps$K = {
|
|
12114
12199
|
min: new Date(new Date().setFullYear(thisYear$1 - 10)),
|
|
12115
12200
|
max: new Date(new Date().setFullYear(thisYear$1 + 10)),
|
|
12116
12201
|
precision: "day",
|
|
@@ -12118,7 +12203,7 @@ const defaultProps$J = {
|
|
|
12118
12203
|
defaultValue: null
|
|
12119
12204
|
};
|
|
12120
12205
|
const DatePicker = React$1.forwardRef((p2, ref) => {
|
|
12121
|
-
const props = mergeProps(defaultProps$
|
|
12206
|
+
const props = mergeProps(defaultProps$K, p2);
|
|
12122
12207
|
const [value, setValue] = usePropsValue({
|
|
12123
12208
|
value: props.value,
|
|
12124
12209
|
defaultValue: props.defaultValue,
|
|
@@ -12202,7 +12287,7 @@ var index$c = attachPropertiesToComponent(DatePicker, {
|
|
|
12202
12287
|
prompt
|
|
12203
12288
|
});
|
|
12204
12289
|
const thisYear = new Date().getFullYear();
|
|
12205
|
-
const defaultProps$
|
|
12290
|
+
const defaultProps$J = {
|
|
12206
12291
|
min: new Date(new Date().setFullYear(thisYear - 10)),
|
|
12207
12292
|
max: new Date(new Date().setFullYear(thisYear + 10)),
|
|
12208
12293
|
precision: "day",
|
|
@@ -12210,7 +12295,7 @@ const defaultProps$I = {
|
|
|
12210
12295
|
};
|
|
12211
12296
|
const DatePickerView = (p2) => {
|
|
12212
12297
|
var _a;
|
|
12213
|
-
const props = mergeProps(defaultProps$
|
|
12298
|
+
const props = mergeProps(defaultProps$J, p2);
|
|
12214
12299
|
const [value, setValue] = usePropsValue({
|
|
12215
12300
|
value: props.value,
|
|
12216
12301
|
defaultValue: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : null
|
|
@@ -12282,20 +12367,20 @@ const BrokenImageIcon = () => React__default["default"].createElement("svg", {
|
|
|
12282
12367
|
fill: "#DBDBDB",
|
|
12283
12368
|
fillRule: "nonzero"
|
|
12284
12369
|
}));
|
|
12285
|
-
const classPrefix$
|
|
12286
|
-
const defaultProps$
|
|
12370
|
+
const classPrefix$U = `adm-image`;
|
|
12371
|
+
const defaultProps$I = {
|
|
12287
12372
|
fit: "fill",
|
|
12288
12373
|
placeholder: React__default["default"].createElement("div", {
|
|
12289
|
-
className: `${classPrefix$
|
|
12374
|
+
className: `${classPrefix$U}-tip`
|
|
12290
12375
|
}, React__default["default"].createElement(ImageIcon, null)),
|
|
12291
12376
|
fallback: React__default["default"].createElement("div", {
|
|
12292
|
-
className: `${classPrefix$
|
|
12377
|
+
className: `${classPrefix$U}-tip`
|
|
12293
12378
|
}, React__default["default"].createElement(BrokenImageIcon, null)),
|
|
12294
12379
|
lazy: false,
|
|
12295
12380
|
draggable: false
|
|
12296
12381
|
};
|
|
12297
12382
|
const Image$1 = stagedComponents.staged((p2) => {
|
|
12298
|
-
const props = mergeProps(defaultProps$
|
|
12383
|
+
const props = mergeProps(defaultProps$I, p2);
|
|
12299
12384
|
const [loaded, setLoaded] = React$1.useState(false);
|
|
12300
12385
|
const [failed, setFailed] = React$1.useState(false);
|
|
12301
12386
|
const ref = React$1.useRef(null);
|
|
@@ -12313,7 +12398,7 @@ const Image$1 = stagedComponents.staged((p2) => {
|
|
|
12313
12398
|
return React__default["default"].createElement(React__default["default"].Fragment, null, props.fallback);
|
|
12314
12399
|
}
|
|
12315
12400
|
const img = React__default["default"].createElement("img", {
|
|
12316
|
-
className: `${classPrefix$
|
|
12401
|
+
className: `${classPrefix$U}-img`,
|
|
12317
12402
|
src,
|
|
12318
12403
|
alt: props.alt,
|
|
12319
12404
|
onClick: props.onClick,
|
|
@@ -12345,13 +12430,15 @@ const Image$1 = stagedComponents.staged((p2) => {
|
|
|
12345
12430
|
const style = {};
|
|
12346
12431
|
if (props.width) {
|
|
12347
12432
|
style["--width"] = toCSSLength(props.width);
|
|
12433
|
+
style["width"] = toCSSLength(props.width);
|
|
12348
12434
|
}
|
|
12349
12435
|
if (props.height) {
|
|
12350
12436
|
style["--height"] = toCSSLength(props.height);
|
|
12437
|
+
style["height"] = toCSSLength(props.height);
|
|
12351
12438
|
}
|
|
12352
12439
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
12353
12440
|
ref,
|
|
12354
|
-
className: classPrefix$
|
|
12441
|
+
className: classPrefix$U,
|
|
12355
12442
|
style
|
|
12356
12443
|
}, props.lazy && !initialized && React__default["default"].createElement(LazyDetector, {
|
|
12357
12444
|
onActive: () => {
|
|
@@ -12359,59 +12446,14 @@ const Image$1 = stagedComponents.staged((p2) => {
|
|
|
12359
12446
|
}
|
|
12360
12447
|
}), renderInner()));
|
|
12361
12448
|
});
|
|
12362
|
-
|
|
12363
|
-
const [innerVisible, setInnerVisible] = React$1.useState(outerVisible);
|
|
12364
|
-
ahooks.useIsomorphicLayoutEffect(() => {
|
|
12365
|
-
setInnerVisible(outerVisible);
|
|
12366
|
-
}, [outerVisible]);
|
|
12367
|
-
return innerVisible;
|
|
12368
|
-
}
|
|
12369
|
-
const defaultProps$G = {
|
|
12370
|
-
visible: false,
|
|
12449
|
+
const defaultProps$H = {
|
|
12371
12450
|
actions: [],
|
|
12372
12451
|
closeOnAction: false,
|
|
12373
|
-
closeOnMaskClick: false
|
|
12374
|
-
stopPropagation: ["click"],
|
|
12375
|
-
getContainer: null,
|
|
12376
|
-
disableBodyScroll: true,
|
|
12377
|
-
destroyOnClose: false,
|
|
12378
|
-
forceRender: false
|
|
12452
|
+
closeOnMaskClick: false
|
|
12379
12453
|
};
|
|
12380
12454
|
const Dialog = (p2) => {
|
|
12381
|
-
const props = mergeProps(defaultProps$
|
|
12382
|
-
const
|
|
12383
|
-
const style = web.useSpring({
|
|
12384
|
-
scale: props.visible ? 1 : 0.8,
|
|
12385
|
-
opacity: props.visible ? 1 : 0,
|
|
12386
|
-
config: {
|
|
12387
|
-
mass: 1.2,
|
|
12388
|
-
tension: 200,
|
|
12389
|
-
friction: 25,
|
|
12390
|
-
clamp: true
|
|
12391
|
-
},
|
|
12392
|
-
onRest: () => {
|
|
12393
|
-
var _a, _b;
|
|
12394
|
-
if (unmountedRef.current)
|
|
12395
|
-
return;
|
|
12396
|
-
setActive(props.visible);
|
|
12397
|
-
if (props.visible) {
|
|
12398
|
-
(_a = props.afterShow) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
12399
|
-
} else {
|
|
12400
|
-
(_b = props.afterClose) === null || _b === void 0 ? void 0 : _b.call(props);
|
|
12401
|
-
}
|
|
12402
|
-
}
|
|
12403
|
-
});
|
|
12404
|
-
const [active, setActive] = React$1.useState(props.visible);
|
|
12405
|
-
ahooks.useIsomorphicLayoutEffect(() => {
|
|
12406
|
-
if (props.visible) {
|
|
12407
|
-
setActive(true);
|
|
12408
|
-
}
|
|
12409
|
-
}, [props.visible]);
|
|
12410
|
-
const maskVisible = useInnerVisible(active && props.visible);
|
|
12411
|
-
const body = React__default["default"].createElement("div", {
|
|
12412
|
-
className: classNames__default["default"](cls$1("body"), props.image && cls$1("with-image"), props.bodyClassName),
|
|
12413
|
-
style: props.bodyStyle
|
|
12414
|
-
}, !!props.image && React__default["default"].createElement("div", {
|
|
12455
|
+
const props = mergeProps(defaultProps$H, p2);
|
|
12456
|
+
const element = React__default["default"].createElement(React__default["default"].Fragment, null, !!props.image && React__default["default"].createElement("div", {
|
|
12415
12457
|
className: cls$1("image-container")
|
|
12416
12458
|
}, React__default["default"].createElement(Image$1, {
|
|
12417
12459
|
src: props.image,
|
|
@@ -12442,28 +12484,26 @@ const Dialog = (p2) => {
|
|
|
12442
12484
|
})
|
|
12443
12485
|
})));
|
|
12444
12486
|
})));
|
|
12445
|
-
|
|
12446
|
-
className: cls$1(),
|
|
12447
|
-
style:
|
|
12448
|
-
|
|
12449
|
-
|
|
12450
|
-
|
|
12451
|
-
|
|
12452
|
-
|
|
12453
|
-
|
|
12454
|
-
|
|
12455
|
-
|
|
12456
|
-
|
|
12457
|
-
|
|
12458
|
-
|
|
12459
|
-
|
|
12460
|
-
|
|
12461
|
-
|
|
12462
|
-
|
|
12463
|
-
|
|
12464
|
-
|
|
12465
|
-
destroyOnClose: props.destroyOnClose
|
|
12466
|
-
}, renderToContainer(props.getContainer, node));
|
|
12487
|
+
return React__default["default"].createElement(CenterPopup, {
|
|
12488
|
+
className: classNames__default["default"](cls$1(), props.className),
|
|
12489
|
+
style: props.style,
|
|
12490
|
+
afterClose: props.afterClose,
|
|
12491
|
+
afterShow: props.afterShow,
|
|
12492
|
+
onMaskClick: props.closeOnMaskClick ? () => {
|
|
12493
|
+
var _a;
|
|
12494
|
+
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
12495
|
+
} : void 0,
|
|
12496
|
+
visible: props.visible,
|
|
12497
|
+
getContainer: props.getContainer,
|
|
12498
|
+
bodyStyle: props.bodyStyle,
|
|
12499
|
+
bodyClassName: classNames__default["default"](cls$1("body"), props.image && cls$1("with-image"), props.bodyClassName),
|
|
12500
|
+
maskStyle: props.maskStyle,
|
|
12501
|
+
maskClassName: props.maskClassName,
|
|
12502
|
+
stopPropagation: props.stopPropagation,
|
|
12503
|
+
disableBodyScroll: props.disableBodyScroll,
|
|
12504
|
+
destroyOnClose: props.destroyOnClose,
|
|
12505
|
+
forceRender: props.forceRender
|
|
12506
|
+
}, element);
|
|
12467
12507
|
};
|
|
12468
12508
|
function cls$1(name = "") {
|
|
12469
12509
|
return "adm-dialog" + (name && "-") + name;
|
|
@@ -12501,7 +12541,7 @@ function alert$1(p2) {
|
|
|
12501
12541
|
}));
|
|
12502
12542
|
});
|
|
12503
12543
|
}
|
|
12504
|
-
const defaultProps$
|
|
12544
|
+
const defaultProps$G = {
|
|
12505
12545
|
confirmText: "\u786E\u8BA4",
|
|
12506
12546
|
cancelText: "\u53D6\u6D88"
|
|
12507
12547
|
};
|
|
@@ -12509,7 +12549,7 @@ function confirm$1(p2) {
|
|
|
12509
12549
|
const {
|
|
12510
12550
|
locale
|
|
12511
12551
|
} = getDefaultConfig();
|
|
12512
|
-
const props = mergeProps(defaultProps$
|
|
12552
|
+
const props = mergeProps(defaultProps$G, {
|
|
12513
12553
|
confirmText: locale.common.confirm,
|
|
12514
12554
|
cancelText: locale.common.cancel
|
|
12515
12555
|
}, p2);
|
|
@@ -12554,37 +12594,37 @@ var index$b = attachPropertiesToComponent(Dialog, {
|
|
|
12554
12594
|
clear: clear$2
|
|
12555
12595
|
});
|
|
12556
12596
|
var divider = "";
|
|
12557
|
-
const classPrefix$
|
|
12558
|
-
const defaultProps$
|
|
12597
|
+
const classPrefix$T = `adm-divider`;
|
|
12598
|
+
const defaultProps$F = {
|
|
12559
12599
|
contentPosition: "center",
|
|
12560
12600
|
direction: "horizontal"
|
|
12561
12601
|
};
|
|
12562
12602
|
const Divider = (p2) => {
|
|
12563
|
-
const props = mergeProps(defaultProps$
|
|
12603
|
+
const props = mergeProps(defaultProps$F, p2);
|
|
12564
12604
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
12565
|
-
className: classNames__default["default"](classPrefix$
|
|
12605
|
+
className: classNames__default["default"](classPrefix$T, `${classPrefix$T}-${props.direction}`, `${classPrefix$T}-${props.contentPosition}`)
|
|
12566
12606
|
}, props.children && React__default["default"].createElement("div", {
|
|
12567
|
-
className: `${classPrefix$
|
|
12607
|
+
className: `${classPrefix$T}-content`
|
|
12568
12608
|
}, props.children)));
|
|
12569
12609
|
};
|
|
12570
12610
|
var dropdown = "";
|
|
12571
|
-
const classPrefix$
|
|
12611
|
+
const classPrefix$S = `adm-dropdown-item`;
|
|
12572
12612
|
const Item = (props) => {
|
|
12573
12613
|
var _a;
|
|
12574
|
-
const cls2 = classNames__default["default"](classPrefix$
|
|
12575
|
-
[`${classPrefix$
|
|
12576
|
-
[`${classPrefix$
|
|
12614
|
+
const cls2 = classNames__default["default"](classPrefix$S, {
|
|
12615
|
+
[`${classPrefix$S}-active`]: props.active,
|
|
12616
|
+
[`${classPrefix$S}-highlight`]: (_a = props.highlight) !== null && _a !== void 0 ? _a : props.active
|
|
12577
12617
|
});
|
|
12578
12618
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
12579
12619
|
className: cls2,
|
|
12580
12620
|
onClick: props.onClick
|
|
12581
12621
|
}, React__default["default"].createElement("div", {
|
|
12582
|
-
className: `${classPrefix$
|
|
12622
|
+
className: `${classPrefix$S}-title`
|
|
12583
12623
|
}, React__default["default"].createElement("span", {
|
|
12584
|
-
className: `${classPrefix$
|
|
12624
|
+
className: `${classPrefix$S}-title-text`
|
|
12585
12625
|
}, props.title), React__default["default"].createElement("span", {
|
|
12586
|
-
className: classNames__default["default"](`${classPrefix$
|
|
12587
|
-
[`${classPrefix$
|
|
12626
|
+
className: classNames__default["default"](`${classPrefix$S}-title-arrow`, {
|
|
12627
|
+
[`${classPrefix$S}-title-arrow-active`]: props.active
|
|
12588
12628
|
})
|
|
12589
12629
|
}, props.arrow === void 0 ? React__default["default"].createElement(antdMobileIcons.DownFill, null) : props.arrow))));
|
|
12590
12630
|
};
|
|
@@ -12593,22 +12633,22 @@ const ItemChildrenWrap = (props) => {
|
|
|
12593
12633
|
active = false
|
|
12594
12634
|
} = props;
|
|
12595
12635
|
const shouldRender = useShouldRender(active, props.forceRender, props.destroyOnClose);
|
|
12596
|
-
const cls2 = classNames__default["default"](`${classPrefix$
|
|
12597
|
-
[`${classPrefix$
|
|
12636
|
+
const cls2 = classNames__default["default"](`${classPrefix$S}-content`, {
|
|
12637
|
+
[`${classPrefix$S}-content-hidden`]: !active
|
|
12598
12638
|
});
|
|
12599
12639
|
return shouldRender ? React__default["default"].createElement("div", {
|
|
12600
12640
|
className: cls2,
|
|
12601
12641
|
onClick: props.onClick
|
|
12602
12642
|
}, props.children) : null;
|
|
12603
12643
|
};
|
|
12604
|
-
const classPrefix$
|
|
12605
|
-
const defaultProps$
|
|
12644
|
+
const classPrefix$R = `adm-dropdown`;
|
|
12645
|
+
const defaultProps$E = {
|
|
12606
12646
|
defaultActiveKey: null,
|
|
12607
12647
|
closeOnMaskClick: true,
|
|
12608
12648
|
closeOnClickAway: false
|
|
12609
12649
|
};
|
|
12610
12650
|
const Dropdown = React$1.forwardRef((p2, ref) => {
|
|
12611
|
-
const props = mergeProps(defaultProps$
|
|
12651
|
+
const props = mergeProps(defaultProps$E, p2);
|
|
12612
12652
|
const [value, setValue] = usePropsValue({
|
|
12613
12653
|
value: props.activeKey,
|
|
12614
12654
|
defaultValue: props.defaultActiveKey,
|
|
@@ -12664,19 +12704,19 @@ const Dropdown = React$1.forwardRef((p2, ref) => {
|
|
|
12664
12704
|
}
|
|
12665
12705
|
}), [setValue]);
|
|
12666
12706
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
12667
|
-
className: classNames__default["default"](classPrefix$
|
|
12668
|
-
[`${classPrefix$
|
|
12707
|
+
className: classNames__default["default"](classPrefix$R, {
|
|
12708
|
+
[`${classPrefix$R}-open`]: !!value
|
|
12669
12709
|
}),
|
|
12670
12710
|
ref: containerRef
|
|
12671
12711
|
}, React__default["default"].createElement("div", {
|
|
12672
|
-
className: `${classPrefix$
|
|
12712
|
+
className: `${classPrefix$R}-nav`,
|
|
12673
12713
|
ref: navRef
|
|
12674
12714
|
}, navs), React__default["default"].createElement(Popup, {
|
|
12675
12715
|
visible: !!value,
|
|
12676
12716
|
position: "top",
|
|
12677
|
-
className: `${classPrefix$
|
|
12678
|
-
maskClassName: `${classPrefix$
|
|
12679
|
-
bodyClassName: `${classPrefix$
|
|
12717
|
+
className: `${classPrefix$R}-popup`,
|
|
12718
|
+
maskClassName: `${classPrefix$R}-popup-mask`,
|
|
12719
|
+
bodyClassName: `${classPrefix$R}-popup-body`,
|
|
12680
12720
|
style: {
|
|
12681
12721
|
top
|
|
12682
12722
|
},
|
|
@@ -12700,8 +12740,8 @@ var index$a = attachPropertiesToComponent(Dropdown, {
|
|
|
12700
12740
|
Item
|
|
12701
12741
|
});
|
|
12702
12742
|
var ellipsis = "";
|
|
12703
|
-
const classPrefix$
|
|
12704
|
-
const defaultProps$
|
|
12743
|
+
const classPrefix$Q = `adm-ellipsis`;
|
|
12744
|
+
const defaultProps$D = {
|
|
12705
12745
|
direction: "end",
|
|
12706
12746
|
rows: 1,
|
|
12707
12747
|
expandText: "",
|
|
@@ -12711,7 +12751,7 @@ const defaultProps$C = {
|
|
|
12711
12751
|
}
|
|
12712
12752
|
};
|
|
12713
12753
|
const Ellipsis = (p2) => {
|
|
12714
|
-
const props = mergeProps(defaultProps$
|
|
12754
|
+
const props = mergeProps(defaultProps$D, p2);
|
|
12715
12755
|
const rootRef = React$1.useRef(null);
|
|
12716
12756
|
const [ellipsised, setEllipsised] = React$1.useState({});
|
|
12717
12757
|
const [expanded, setExpanded] = React$1.useState(false);
|
|
@@ -12736,7 +12776,6 @@ const Ellipsis = (p2) => {
|
|
|
12736
12776
|
container.style.textOverflow = "clip";
|
|
12737
12777
|
container.style.whiteSpace = "normal";
|
|
12738
12778
|
container.style.webkitLineClamp = "unset";
|
|
12739
|
-
container.style.webkitBoxOrient = "unset";
|
|
12740
12779
|
container.style.display = "block";
|
|
12741
12780
|
const lineHeight = pxToNumber(originStyle.lineHeight);
|
|
12742
12781
|
const maxHeight = Math.floor(lineHeight * (props.rows + 0.5) + pxToNumber(originStyle.paddingTop) + pxToNumber(originStyle.paddingBottom));
|
|
@@ -12827,7 +12866,7 @@ const Ellipsis = (p2) => {
|
|
|
12827
12866
|
};
|
|
12828
12867
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
12829
12868
|
ref: rootRef,
|
|
12830
|
-
className: classPrefix$
|
|
12869
|
+
className: classPrefix$Q,
|
|
12831
12870
|
onClick: (e2) => {
|
|
12832
12871
|
if (e2.target === e2.currentTarget) {
|
|
12833
12872
|
props.onContentClick(e2);
|
|
@@ -12864,7 +12903,7 @@ const EmptyIcon = (props) => {
|
|
|
12864
12903
|
fill: "#fafafa"
|
|
12865
12904
|
})))));
|
|
12866
12905
|
};
|
|
12867
|
-
const classPrefix$
|
|
12906
|
+
const classPrefix$P = `adm-empty`;
|
|
12868
12907
|
const Empty = (props) => {
|
|
12869
12908
|
function renderImageNode() {
|
|
12870
12909
|
const {
|
|
@@ -12872,13 +12911,13 @@ const Empty = (props) => {
|
|
|
12872
12911
|
} = props;
|
|
12873
12912
|
if (image2 === void 0) {
|
|
12874
12913
|
return React__default["default"].createElement(EmptyIcon, {
|
|
12875
|
-
className: `${classPrefix$
|
|
12914
|
+
className: `${classPrefix$P}-image`,
|
|
12876
12915
|
style: props.imageStyle
|
|
12877
12916
|
});
|
|
12878
12917
|
}
|
|
12879
12918
|
if (typeof image2 === "string") {
|
|
12880
12919
|
return React__default["default"].createElement("img", {
|
|
12881
|
-
className: `${classPrefix$
|
|
12920
|
+
className: `${classPrefix$P}-image`,
|
|
12882
12921
|
style: props.imageStyle,
|
|
12883
12922
|
src: image2,
|
|
12884
12923
|
alt: "empty"
|
|
@@ -12887,22 +12926,22 @@ const Empty = (props) => {
|
|
|
12887
12926
|
return image2;
|
|
12888
12927
|
}
|
|
12889
12928
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
12890
|
-
className: classPrefix$
|
|
12929
|
+
className: classPrefix$P
|
|
12891
12930
|
}, React__default["default"].createElement("div", {
|
|
12892
|
-
className: `${classPrefix$
|
|
12931
|
+
className: `${classPrefix$P}-image-container`
|
|
12893
12932
|
}, renderImageNode()), props.description && React__default["default"].createElement("div", {
|
|
12894
|
-
className: classNames__default["default"](`${classPrefix$
|
|
12933
|
+
className: classNames__default["default"](`${classPrefix$P}-description`)
|
|
12895
12934
|
}, props.description)));
|
|
12896
12935
|
};
|
|
12897
12936
|
var errorBlock = "";
|
|
12898
|
-
const classPrefix$
|
|
12899
|
-
const defaultProps$
|
|
12937
|
+
const classPrefix$O = `adm-error-block`;
|
|
12938
|
+
const defaultProps$C = {
|
|
12900
12939
|
status: "default"
|
|
12901
12940
|
};
|
|
12902
12941
|
function createErrorBlock(imageRecord2) {
|
|
12903
12942
|
const ErrorBlock2 = (p2) => {
|
|
12904
12943
|
var _a;
|
|
12905
|
-
const props = mergeProps(defaultProps$
|
|
12944
|
+
const props = mergeProps(defaultProps$C, p2);
|
|
12906
12945
|
const {
|
|
12907
12946
|
locale
|
|
12908
12947
|
} = useConfig();
|
|
@@ -12915,19 +12954,19 @@ function createErrorBlock(imageRecord2) {
|
|
|
12915
12954
|
alt: "error block image"
|
|
12916
12955
|
}) : image2;
|
|
12917
12956
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
12918
|
-
className: classNames__default["default"](classPrefix$
|
|
12919
|
-
[`${classPrefix$
|
|
12957
|
+
className: classNames__default["default"](classPrefix$O, {
|
|
12958
|
+
[`${classPrefix$O}-full-page`]: props.fullPage
|
|
12920
12959
|
})
|
|
12921
12960
|
}, React__default["default"].createElement("div", {
|
|
12922
|
-
className: `${classPrefix$
|
|
12961
|
+
className: `${classPrefix$O}-image`
|
|
12923
12962
|
}, imageNode), React__default["default"].createElement("div", {
|
|
12924
|
-
className: `${classPrefix$
|
|
12963
|
+
className: `${classPrefix$O}-description`
|
|
12925
12964
|
}, title && React__default["default"].createElement("div", {
|
|
12926
|
-
className: `${classPrefix$
|
|
12965
|
+
className: `${classPrefix$O}-description-title`
|
|
12927
12966
|
}, title), des && React__default["default"].createElement("div", {
|
|
12928
|
-
className: `${classPrefix$
|
|
12967
|
+
className: `${classPrefix$O}-description-subtitle`
|
|
12929
12968
|
}, des)), props.children && React__default["default"].createElement("div", {
|
|
12930
|
-
className: `${classPrefix$
|
|
12969
|
+
className: `${classPrefix$O}-content`
|
|
12931
12970
|
}, props.children)));
|
|
12932
12971
|
};
|
|
12933
12972
|
return ErrorBlock2;
|
|
@@ -13434,12 +13473,12 @@ const imageRecord = {
|
|
|
13434
13473
|
};
|
|
13435
13474
|
const ErrorBlock = createErrorBlock(imageRecord);
|
|
13436
13475
|
var floatingBubble = "";
|
|
13437
|
-
const classPrefix$
|
|
13438
|
-
const defaultProps$
|
|
13476
|
+
const classPrefix$N = `adm-floating-bubble`;
|
|
13477
|
+
const defaultProps$B = {
|
|
13439
13478
|
axis: "y"
|
|
13440
13479
|
};
|
|
13441
13480
|
const FloatingBubble = (p2) => {
|
|
13442
|
-
const props = mergeProps(defaultProps$
|
|
13481
|
+
const props = mergeProps(defaultProps$B, p2);
|
|
13443
13482
|
const boundaryRef = React$1.useRef(null);
|
|
13444
13483
|
const buttonRef = React$1.useRef(null);
|
|
13445
13484
|
const [{
|
|
@@ -13498,11 +13537,11 @@ const FloatingBubble = (p2) => {
|
|
|
13498
13537
|
from: () => [x.get(), y.get()]
|
|
13499
13538
|
});
|
|
13500
13539
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
13501
|
-
className: classPrefix$
|
|
13540
|
+
className: classPrefix$N
|
|
13502
13541
|
}, React__default["default"].createElement("div", {
|
|
13503
|
-
className: `${classPrefix$
|
|
13542
|
+
className: `${classPrefix$N}-boundary-outer`
|
|
13504
13543
|
}, React__default["default"].createElement("div", {
|
|
13505
|
-
className: `${classPrefix$
|
|
13544
|
+
className: `${classPrefix$N}-boundary`,
|
|
13506
13545
|
ref: boundaryRef
|
|
13507
13546
|
})), React__default["default"].createElement(web.animated.div, Object.assign({}, bind(), {
|
|
13508
13547
|
style: {
|
|
@@ -13510,7 +13549,7 @@ const FloatingBubble = (p2) => {
|
|
|
13510
13549
|
transform: web.to([x, y], (x2, y2) => `translate(${x2}px, ${y2}px)`)
|
|
13511
13550
|
},
|
|
13512
13551
|
onClick: props.onClick,
|
|
13513
|
-
className: `${classPrefix$
|
|
13552
|
+
className: `${classPrefix$N}-button`,
|
|
13514
13553
|
ref: buttonRef
|
|
13515
13554
|
}), props.children)));
|
|
13516
13555
|
};
|
|
@@ -13520,12 +13559,12 @@ function nearest(arr, target) {
|
|
|
13520
13559
|
return Math.abs(pre - target) < Math.abs(cur - target) ? pre : cur;
|
|
13521
13560
|
});
|
|
13522
13561
|
}
|
|
13523
|
-
const defaultProps$
|
|
13562
|
+
const defaultProps$A = {
|
|
13524
13563
|
handleDraggingOfContent: true
|
|
13525
13564
|
};
|
|
13526
13565
|
const FloatingPanel = React$1.forwardRef((p2, ref) => {
|
|
13527
13566
|
var _a, _b;
|
|
13528
|
-
const props = mergeProps(defaultProps$
|
|
13567
|
+
const props = mergeProps(defaultProps$A, p2);
|
|
13529
13568
|
const {
|
|
13530
13569
|
anchors
|
|
13531
13570
|
} = props;
|
|
@@ -13682,10 +13721,10 @@ const FormArray = (props) => {
|
|
|
13682
13721
|
return React__default["default"].createElement(React__default["default"].Fragment, null, children);
|
|
13683
13722
|
});
|
|
13684
13723
|
};
|
|
13685
|
-
const classPrefix$
|
|
13686
|
-
const defaultProps$
|
|
13724
|
+
const classPrefix$M = "adm-form";
|
|
13725
|
+
const defaultProps$z = defaultFormContext;
|
|
13687
13726
|
const Form$1 = React$1.forwardRef((p2, ref) => {
|
|
13688
|
-
const props = mergeProps(defaultProps$
|
|
13727
|
+
const props = mergeProps(defaultProps$z, p2);
|
|
13689
13728
|
const {
|
|
13690
13729
|
className,
|
|
13691
13730
|
style,
|
|
@@ -13733,7 +13772,7 @@ const Form$1 = React$1.forwardRef((p2, ref) => {
|
|
|
13733
13772
|
});
|
|
13734
13773
|
collect();
|
|
13735
13774
|
return React__default["default"].createElement(RcForm__default["default"], Object.assign({
|
|
13736
|
-
className: classNames__default["default"](classPrefix$
|
|
13775
|
+
className: classNames__default["default"](classPrefix$M, className),
|
|
13737
13776
|
style,
|
|
13738
13777
|
ref
|
|
13739
13778
|
}, formProps, {
|
|
@@ -13747,7 +13786,7 @@ const Form$1 = React$1.forwardRef((p2, ref) => {
|
|
|
13747
13786
|
disabled
|
|
13748
13787
|
}
|
|
13749
13788
|
}, lists), footer && React__default["default"].createElement("div", {
|
|
13750
|
-
className: `${classPrefix$
|
|
13789
|
+
className: `${classPrefix$M}-footer`
|
|
13751
13790
|
}, footer));
|
|
13752
13791
|
});
|
|
13753
13792
|
var FieldContext = {};
|
|
@@ -13982,15 +14021,15 @@ function convertPx(px) {
|
|
|
13982
14021
|
tester.style.setProperty("--size", px.toString());
|
|
13983
14022
|
return tester.getBoundingClientRect().height;
|
|
13984
14023
|
}
|
|
13985
|
-
const classPrefix$
|
|
13986
|
-
const defaultProps$
|
|
14024
|
+
const classPrefix$L = `adm-popover`;
|
|
14025
|
+
const defaultProps$y = {
|
|
13987
14026
|
placement: "top",
|
|
13988
14027
|
defaultVisible: false,
|
|
13989
14028
|
stopPropagation: ["click"],
|
|
13990
14029
|
getContainer: () => document.body
|
|
13991
14030
|
};
|
|
13992
14031
|
const Popover$1 = React$1.forwardRef((p2, ref) => {
|
|
13993
|
-
const props = mergeProps(defaultProps$
|
|
14032
|
+
const props = mergeProps(defaultProps$y, p2);
|
|
13994
14033
|
const {
|
|
13995
14034
|
mode = "light"
|
|
13996
14035
|
} = props;
|
|
@@ -14011,17 +14050,17 @@ const Popover$1 = React$1.forwardRef((p2, ref) => {
|
|
|
14011
14050
|
const floatingRef = React$1.useRef(null);
|
|
14012
14051
|
const arrowRef = React$1.useRef(null);
|
|
14013
14052
|
const floating = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default["default"].createElement("div", {
|
|
14014
|
-
className: classNames__default["default"](classPrefix$
|
|
14053
|
+
className: classNames__default["default"](classPrefix$L, `${classPrefix$L}-${mode}`, !visible && `${classPrefix$L}-hidden`),
|
|
14015
14054
|
ref: floatingRef
|
|
14016
14055
|
}, React__default["default"].createElement("div", {
|
|
14017
|
-
className: `${classPrefix$
|
|
14056
|
+
className: `${classPrefix$L}-arrow`,
|
|
14018
14057
|
ref: arrowRef
|
|
14019
14058
|
}, React__default["default"].createElement(Arrow, {
|
|
14020
|
-
className: `${classPrefix$
|
|
14059
|
+
className: `${classPrefix$L}-arrow-icon`
|
|
14021
14060
|
})), React__default["default"].createElement("div", {
|
|
14022
|
-
className: `${classPrefix$
|
|
14061
|
+
className: `${classPrefix$L}-inner`
|
|
14023
14062
|
}, React__default["default"].createElement("div", {
|
|
14024
|
-
className: `${classPrefix$
|
|
14063
|
+
className: `${classPrefix$L}-inner-content`
|
|
14025
14064
|
}, props.content)))));
|
|
14026
14065
|
const [targetElement, setTargetElement] = React$1.useState(null);
|
|
14027
14066
|
function update() {
|
|
@@ -14100,7 +14139,9 @@ const Popover$1 = React$1.forwardRef((p2, ref) => {
|
|
|
14100
14139
|
const floatingElement = floatingRef.current;
|
|
14101
14140
|
if (!targetElement || !floatingElement)
|
|
14102
14141
|
return;
|
|
14103
|
-
return dom.autoUpdate(targetElement, floatingElement, update
|
|
14142
|
+
return dom.autoUpdate(targetElement, floatingElement, update, {
|
|
14143
|
+
elementResize: typeof ResizeObserver !== "undefined"
|
|
14144
|
+
});
|
|
14104
14145
|
}, [targetElement]);
|
|
14105
14146
|
ahooks.useClickAway(() => {
|
|
14106
14147
|
if (!props.trigger)
|
|
@@ -14115,7 +14156,7 @@ const Popover$1 = React$1.forwardRef((p2, ref) => {
|
|
|
14115
14156
|
ref: targetRef
|
|
14116
14157
|
}, props.children), shouldRender && renderToContainer(props.getContainer, floating));
|
|
14117
14158
|
});
|
|
14118
|
-
const classPrefix$
|
|
14159
|
+
const classPrefix$K = `adm-popover-menu`;
|
|
14119
14160
|
const PopoverMenu = React$1.forwardRef((props, ref) => {
|
|
14120
14161
|
const innerRef = React$1.useRef(null);
|
|
14121
14162
|
React$1.useImperativeHandle(ref, () => innerRef.current, []);
|
|
@@ -14131,14 +14172,14 @@ const PopoverMenu = React$1.forwardRef((props, ref) => {
|
|
|
14131
14172
|
}, [props.onAction]);
|
|
14132
14173
|
const overlay = React$1.useMemo(() => {
|
|
14133
14174
|
return React__default["default"].createElement("div", {
|
|
14134
|
-
className: `${classPrefix$
|
|
14175
|
+
className: `${classPrefix$K}-list`
|
|
14135
14176
|
}, React__default["default"].createElement("div", {
|
|
14136
|
-
className: `${classPrefix$
|
|
14177
|
+
className: `${classPrefix$K}-list-inner`
|
|
14137
14178
|
}, props.actions.map((action, index2) => {
|
|
14138
14179
|
var _a;
|
|
14139
14180
|
return React__default["default"].createElement("a", {
|
|
14140
14181
|
key: (_a = action.key) !== null && _a !== void 0 ? _a : index2,
|
|
14141
|
-
className: classNames__default["default"](`${classPrefix$
|
|
14182
|
+
className: classNames__default["default"](`${classPrefix$K}-item`, "adm-plain-anchor", action.disabled && `${classPrefix$K}-item-disabled`),
|
|
14142
14183
|
onClick: () => {
|
|
14143
14184
|
var _a2;
|
|
14144
14185
|
if (action.disabled)
|
|
@@ -14147,16 +14188,16 @@ const PopoverMenu = React$1.forwardRef((props, ref) => {
|
|
|
14147
14188
|
(_a2 = action.onClick) === null || _a2 === void 0 ? void 0 : _a2.call(action);
|
|
14148
14189
|
}
|
|
14149
14190
|
}, action.icon && React__default["default"].createElement("div", {
|
|
14150
|
-
className: `${classPrefix$
|
|
14191
|
+
className: `${classPrefix$K}-item-icon`
|
|
14151
14192
|
}, action.icon), React__default["default"].createElement("div", {
|
|
14152
|
-
className: `${classPrefix$
|
|
14193
|
+
className: `${classPrefix$K}-item-text`
|
|
14153
14194
|
}, action.text));
|
|
14154
14195
|
})));
|
|
14155
14196
|
}, [props.actions, onClick]);
|
|
14156
14197
|
return React__default["default"].createElement(Popover$1, Object.assign({
|
|
14157
14198
|
ref: innerRef
|
|
14158
14199
|
}, props, {
|
|
14159
|
-
className: classNames__default["default"](classPrefix$
|
|
14200
|
+
className: classNames__default["default"](classPrefix$K, props.className),
|
|
14160
14201
|
content: overlay
|
|
14161
14202
|
}), props.children);
|
|
14162
14203
|
});
|
|
@@ -14172,7 +14213,7 @@ function undefinedFallback(...items) {
|
|
|
14172
14213
|
return items[i];
|
|
14173
14214
|
}
|
|
14174
14215
|
const NAME_SPLIT = "__SPLIT__";
|
|
14175
|
-
const classPrefix$
|
|
14216
|
+
const classPrefix$J = `adm-form-item`;
|
|
14176
14217
|
const MemoInput = React__default["default"].memo(({
|
|
14177
14218
|
children
|
|
14178
14219
|
}) => children, (prev, next) => prev.value === next.value && prev.update === next.update);
|
|
@@ -14205,39 +14246,39 @@ const FormItemLayout = (props) => {
|
|
|
14205
14246
|
switch (requiredMarkStyle) {
|
|
14206
14247
|
case "asterisk":
|
|
14207
14248
|
return required && React__default["default"].createElement("span", {
|
|
14208
|
-
className: `${classPrefix$
|
|
14249
|
+
className: `${classPrefix$J}-required-asterisk`
|
|
14209
14250
|
}, "*");
|
|
14210
14251
|
case "text-required":
|
|
14211
14252
|
return required && React__default["default"].createElement("span", {
|
|
14212
|
-
className: `${classPrefix$
|
|
14253
|
+
className: `${classPrefix$J}-required-text`
|
|
14213
14254
|
}, "(", locale.Form.required, ")");
|
|
14214
14255
|
case "text-optional":
|
|
14215
14256
|
return !required && React__default["default"].createElement("span", {
|
|
14216
|
-
className: `${classPrefix$
|
|
14257
|
+
className: `${classPrefix$J}-required-text`
|
|
14217
14258
|
}, "(", locale.Form.optional, ")");
|
|
14218
14259
|
default:
|
|
14219
14260
|
return null;
|
|
14220
14261
|
}
|
|
14221
14262
|
})();
|
|
14222
14263
|
const labelElement = label ? React__default["default"].createElement("label", {
|
|
14223
|
-
className: `${classPrefix$
|
|
14264
|
+
className: `${classPrefix$J}-label`,
|
|
14224
14265
|
htmlFor
|
|
14225
14266
|
}, label, requiredMark, help && React__default["default"].createElement(Popover, {
|
|
14226
14267
|
content: help,
|
|
14227
14268
|
mode: "dark",
|
|
14228
14269
|
trigger: "click"
|
|
14229
14270
|
}, React__default["default"].createElement("span", {
|
|
14230
|
-
className: `${classPrefix$
|
|
14271
|
+
className: `${classPrefix$J}-label-help`,
|
|
14231
14272
|
onClick: (e2) => {
|
|
14232
14273
|
e2.preventDefault();
|
|
14233
14274
|
}
|
|
14234
14275
|
}, React__default["default"].createElement(antdMobileIcons.QuestionCircleOutline, null)))) : null;
|
|
14235
14276
|
const description = React__default["default"].createElement(React__default["default"].Fragment, null, props.description, hasFeedback && React__default["default"].createElement(React__default["default"].Fragment, null, props.errors.map((error, index2) => React__default["default"].createElement("div", {
|
|
14236
14277
|
key: `error-${index2}`,
|
|
14237
|
-
className: `${classPrefix$
|
|
14278
|
+
className: `${classPrefix$J}-feedback-error`
|
|
14238
14279
|
}, error)), props.warnings.map((warning2, index2) => React__default["default"].createElement("div", {
|
|
14239
14280
|
key: `warning-${index2}`,
|
|
14240
|
-
className: `${classPrefix$
|
|
14281
|
+
className: `${classPrefix$J}-feedback-warning`
|
|
14241
14282
|
}, warning2))));
|
|
14242
14283
|
return React__default["default"].createElement(List.Item, {
|
|
14243
14284
|
style,
|
|
@@ -14245,18 +14286,18 @@ const FormItemLayout = (props) => {
|
|
|
14245
14286
|
prefix: layout === "horizontal" && labelElement,
|
|
14246
14287
|
extra,
|
|
14247
14288
|
description,
|
|
14248
|
-
className: classNames__default["default"](classPrefix$
|
|
14249
|
-
[`${classPrefix$
|
|
14250
|
-
[`${classPrefix$
|
|
14289
|
+
className: classNames__default["default"](classPrefix$J, className, `${classPrefix$J}-${layout}`, {
|
|
14290
|
+
[`${classPrefix$J}-hidden`]: hidden,
|
|
14291
|
+
[`${classPrefix$J}-has-error`]: props.errors.length
|
|
14251
14292
|
}),
|
|
14252
14293
|
disabled,
|
|
14253
14294
|
onClick: props.onClick,
|
|
14254
14295
|
clickable: props.clickable,
|
|
14255
14296
|
arrow
|
|
14256
14297
|
}, React__default["default"].createElement("div", {
|
|
14257
|
-
className: classNames__default["default"](`${classPrefix$
|
|
14298
|
+
className: classNames__default["default"](`${classPrefix$J}-child`, `${classPrefix$J}-child-position-${childElementPosition}`)
|
|
14258
14299
|
}, React__default["default"].createElement("div", {
|
|
14259
|
-
className: classNames__default["default"](`${classPrefix$
|
|
14300
|
+
className: classNames__default["default"](`${classPrefix$J}-child-inner`)
|
|
14260
14301
|
}, children)));
|
|
14261
14302
|
};
|
|
14262
14303
|
const FormItem = (props) => {
|
|
@@ -14451,7 +14492,7 @@ var Form = attachPropertiesToComponent(Form$1, {
|
|
|
14451
14492
|
useWatch: RcForm.useWatch
|
|
14452
14493
|
});
|
|
14453
14494
|
var grid = "";
|
|
14454
|
-
const classPrefix$
|
|
14495
|
+
const classPrefix$I = `adm-grid`;
|
|
14455
14496
|
const Grid$1 = (props) => {
|
|
14456
14497
|
const style = {
|
|
14457
14498
|
"--columns": props.columns.toString()
|
|
@@ -14468,7 +14509,7 @@ const Grid$1 = (props) => {
|
|
|
14468
14509
|
}
|
|
14469
14510
|
}
|
|
14470
14511
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
14471
|
-
className: classPrefix$
|
|
14512
|
+
className: classPrefix$I,
|
|
14472
14513
|
style
|
|
14473
14514
|
}, props.children));
|
|
14474
14515
|
};
|
|
@@ -14480,7 +14521,7 @@ const GridItem = (p2) => {
|
|
|
14480
14521
|
"--item-span": props.span
|
|
14481
14522
|
};
|
|
14482
14523
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
14483
|
-
className: `${classPrefix$
|
|
14524
|
+
className: `${classPrefix$I}-item`,
|
|
14484
14525
|
style: itemStyle,
|
|
14485
14526
|
onClick: props.onClick
|
|
14486
14527
|
}, props.children));
|
|
@@ -14490,7 +14531,7 @@ var Grid = attachPropertiesToComponent(Grid$1, {
|
|
|
14490
14531
|
});
|
|
14491
14532
|
var imageViewer = "";
|
|
14492
14533
|
const useDragAndPinch = react.createUseGesture([react.dragAction, react.pinchAction]);
|
|
14493
|
-
const classPrefix$
|
|
14534
|
+
const classPrefix$H = `adm-image-viewer`;
|
|
14494
14535
|
const Slide = (props) => {
|
|
14495
14536
|
const {
|
|
14496
14537
|
dragLockRef
|
|
@@ -14605,17 +14646,17 @@ const Slide = (props) => {
|
|
|
14605
14646
|
}
|
|
14606
14647
|
});
|
|
14607
14648
|
return React__default["default"].createElement("div", {
|
|
14608
|
-
className: `${classPrefix$
|
|
14649
|
+
className: `${classPrefix$H}-slide`,
|
|
14609
14650
|
onPointerMove: (e2) => {
|
|
14610
14651
|
if (zoom.get() !== 1) {
|
|
14611
14652
|
e2.stopPropagation();
|
|
14612
14653
|
}
|
|
14613
14654
|
}
|
|
14614
14655
|
}, React__default["default"].createElement("div", {
|
|
14615
|
-
className: `${classPrefix$
|
|
14656
|
+
className: `${classPrefix$H}-control`,
|
|
14616
14657
|
ref: controlRef
|
|
14617
14658
|
}, React__default["default"].createElement(web.animated.div, {
|
|
14618
|
-
className: `${classPrefix$
|
|
14659
|
+
className: `${classPrefix$H}-image-wrapper`,
|
|
14619
14660
|
style: {
|
|
14620
14661
|
translateX: x,
|
|
14621
14662
|
translateY: y,
|
|
@@ -14628,7 +14669,7 @@ const Slide = (props) => {
|
|
|
14628
14669
|
alt: props.image
|
|
14629
14670
|
}))));
|
|
14630
14671
|
};
|
|
14631
|
-
const classPrefix$
|
|
14672
|
+
const classPrefix$G = `adm-image-viewer`;
|
|
14632
14673
|
const Slides = React$1.forwardRef((props, ref) => {
|
|
14633
14674
|
const slideWidth = window.innerWidth + convertPx(16);
|
|
14634
14675
|
const [{
|
|
@@ -14685,14 +14726,14 @@ const Slides = React$1.forwardRef((props, ref) => {
|
|
|
14685
14726
|
}
|
|
14686
14727
|
});
|
|
14687
14728
|
return React__default["default"].createElement("div", Object.assign({
|
|
14688
|
-
className: `${classPrefix$
|
|
14729
|
+
className: `${classPrefix$G}-slides`
|
|
14689
14730
|
}, bind()), React__default["default"].createElement(web.animated.div, {
|
|
14690
|
-
className: `${classPrefix$
|
|
14731
|
+
className: `${classPrefix$G}-indicator`
|
|
14691
14732
|
}, x.to((v) => {
|
|
14692
14733
|
const index2 = bound(Math.round(v / slideWidth), 0, count - 1);
|
|
14693
14734
|
return `${index2 + 1} / ${count}`;
|
|
14694
14735
|
})), React__default["default"].createElement(web.animated.div, {
|
|
14695
|
-
className: `${classPrefix$
|
|
14736
|
+
className: `${classPrefix$G}-slides-inner`,
|
|
14696
14737
|
style: {
|
|
14697
14738
|
x: x.to((x2) => -x2)
|
|
14698
14739
|
}
|
|
@@ -14712,22 +14753,22 @@ const Slides = React$1.forwardRef((props, ref) => {
|
|
|
14712
14753
|
dragLockRef
|
|
14713
14754
|
}))));
|
|
14714
14755
|
});
|
|
14715
|
-
const classPrefix$
|
|
14716
|
-
const defaultProps$
|
|
14756
|
+
const classPrefix$F = `adm-image-viewer`;
|
|
14757
|
+
const defaultProps$x = {
|
|
14717
14758
|
maxZoom: 3,
|
|
14718
14759
|
getContainer: null,
|
|
14719
14760
|
visible: false
|
|
14720
14761
|
};
|
|
14721
14762
|
const ImageViewer$1 = (p2) => {
|
|
14722
14763
|
var _a;
|
|
14723
|
-
const props = mergeProps(defaultProps$
|
|
14764
|
+
const props = mergeProps(defaultProps$x, p2);
|
|
14724
14765
|
const node = React__default["default"].createElement(Mask, {
|
|
14725
14766
|
visible: props.visible,
|
|
14726
14767
|
disableBodyScroll: false,
|
|
14727
14768
|
opacity: "thick",
|
|
14728
14769
|
afterClose: props.afterClose
|
|
14729
14770
|
}, React__default["default"].createElement("div", {
|
|
14730
|
-
className: `${classPrefix$
|
|
14771
|
+
className: `${classPrefix$F}-content`
|
|
14731
14772
|
}, props.image && React__default["default"].createElement(Slide, {
|
|
14732
14773
|
image: props.image,
|
|
14733
14774
|
onTap: () => {
|
|
@@ -14736,13 +14777,13 @@ const ImageViewer$1 = (p2) => {
|
|
|
14736
14777
|
},
|
|
14737
14778
|
maxZoom: props.maxZoom
|
|
14738
14779
|
})), props.image && React__default["default"].createElement("div", {
|
|
14739
|
-
className: `${classPrefix$
|
|
14780
|
+
className: `${classPrefix$F}-footer`
|
|
14740
14781
|
}, (_a = props.renderFooter) === null || _a === void 0 ? void 0 : _a.call(props, props.image), React__default["default"].createElement(SafeArea, {
|
|
14741
14782
|
position: "bottom"
|
|
14742
14783
|
})));
|
|
14743
14784
|
return renderToContainer(props.getContainer, node);
|
|
14744
14785
|
};
|
|
14745
|
-
const multiDefaultProps = Object.assign(Object.assign({}, defaultProps$
|
|
14786
|
+
const multiDefaultProps = Object.assign(Object.assign({}, defaultProps$x), {
|
|
14746
14787
|
defaultIndex: 0
|
|
14747
14788
|
});
|
|
14748
14789
|
const MultiImageViewer = React$1.forwardRef((p2, ref) => {
|
|
@@ -14768,7 +14809,7 @@ const MultiImageViewer = React$1.forwardRef((p2, ref) => {
|
|
|
14768
14809
|
opacity: "thick",
|
|
14769
14810
|
afterClose: props.afterClose
|
|
14770
14811
|
}, React__default["default"].createElement("div", {
|
|
14771
|
-
className: `${classPrefix$
|
|
14812
|
+
className: `${classPrefix$F}-content`
|
|
14772
14813
|
}, props.images && React__default["default"].createElement(Slides, {
|
|
14773
14814
|
ref: slidesRef,
|
|
14774
14815
|
defaultIndex: index2,
|
|
@@ -14780,7 +14821,7 @@ const MultiImageViewer = React$1.forwardRef((p2, ref) => {
|
|
|
14780
14821
|
},
|
|
14781
14822
|
maxZoom: props.maxZoom
|
|
14782
14823
|
})), props.images && React__default["default"].createElement("div", {
|
|
14783
|
-
className: `${classPrefix$
|
|
14824
|
+
className: `${classPrefix$F}-footer`
|
|
14784
14825
|
}, (_a = props.renderFooter) === null || _a === void 0 ? void 0 : _a.call(props, props.images[index2], index2), React__default["default"].createElement(SafeArea, {
|
|
14785
14826
|
position: "bottom"
|
|
14786
14827
|
})));
|
|
@@ -14908,19 +14949,19 @@ function useMotionReduced() {
|
|
|
14908
14949
|
};
|
|
14909
14950
|
}, isMotionReduced);
|
|
14910
14951
|
}
|
|
14911
|
-
const classPrefix$
|
|
14952
|
+
const classPrefix$E = "adm-spin-loading";
|
|
14912
14953
|
const colorRecord$2 = {
|
|
14913
14954
|
default: "var(--adm-color-weak)",
|
|
14914
14955
|
primary: "var(--adm-color-primary)",
|
|
14915
14956
|
white: "var(--adm-color-white)"
|
|
14916
14957
|
};
|
|
14917
|
-
const defaultProps$
|
|
14958
|
+
const defaultProps$w = {
|
|
14918
14959
|
color: "default"
|
|
14919
14960
|
};
|
|
14920
14961
|
const circumference = 15 * 3.14159265358979 * 2;
|
|
14921
14962
|
const SpinLoading = React$1.memo((p2) => {
|
|
14922
14963
|
var _a;
|
|
14923
|
-
const props = mergeProps(defaultProps$
|
|
14964
|
+
const props = mergeProps(defaultProps$w, p2);
|
|
14924
14965
|
const motionReduced = useMotionReduced();
|
|
14925
14966
|
const {
|
|
14926
14967
|
percent
|
|
@@ -14940,16 +14981,16 @@ const SpinLoading = React$1.memo((p2) => {
|
|
|
14940
14981
|
}
|
|
14941
14982
|
});
|
|
14942
14983
|
return withNativeProps(props, React__default["default"].createElement(web.animated.div, {
|
|
14943
|
-
className: classPrefix$
|
|
14984
|
+
className: classPrefix$E,
|
|
14944
14985
|
style: {
|
|
14945
14986
|
"--color": (_a = colorRecord$2[props.color]) !== null && _a !== void 0 ? _a : props.color,
|
|
14946
14987
|
"--percent": percent
|
|
14947
14988
|
}
|
|
14948
14989
|
}, React__default["default"].createElement("svg", {
|
|
14949
|
-
className: `${classPrefix$
|
|
14990
|
+
className: `${classPrefix$E}-svg`,
|
|
14950
14991
|
viewBox: "0 0 32 32"
|
|
14951
14992
|
}, React__default["default"].createElement(web.animated.circle, {
|
|
14952
|
-
className: `${classPrefix$
|
|
14993
|
+
className: `${classPrefix$E}-fill`,
|
|
14953
14994
|
fill: "transparent",
|
|
14954
14995
|
strokeWidth: "2",
|
|
14955
14996
|
strokeDasharray: circumference,
|
|
@@ -14960,7 +15001,7 @@ const SpinLoading = React$1.memo((p2) => {
|
|
|
14960
15001
|
cy: 16
|
|
14961
15002
|
}))));
|
|
14962
15003
|
});
|
|
14963
|
-
const classPrefix$
|
|
15004
|
+
const classPrefix$D = `adm-image-uploader`;
|
|
14964
15005
|
const PreviewItem = (props) => {
|
|
14965
15006
|
const {
|
|
14966
15007
|
locale
|
|
@@ -14983,60 +15024,60 @@ const PreviewItem = (props) => {
|
|
|
14983
15024
|
}, [url, file]);
|
|
14984
15025
|
function renderLoading() {
|
|
14985
15026
|
return props.status === "pending" && React__default["default"].createElement("div", {
|
|
14986
|
-
className: `${classPrefix$
|
|
15027
|
+
className: `${classPrefix$D}-cell-mask`
|
|
14987
15028
|
}, React__default["default"].createElement("span", {
|
|
14988
|
-
className: `${classPrefix$
|
|
15029
|
+
className: `${classPrefix$D}-cell-loading`
|
|
14989
15030
|
}, React__default["default"].createElement(SpinLoading, {
|
|
14990
15031
|
color: "white"
|
|
14991
15032
|
}), React__default["default"].createElement("span", {
|
|
14992
|
-
className: `${classPrefix$
|
|
15033
|
+
className: `${classPrefix$D}-cell-mask-message`
|
|
14993
15034
|
}, locale.ImageUploader.uploading)));
|
|
14994
15035
|
}
|
|
14995
15036
|
function renderDelete() {
|
|
14996
15037
|
return deletable && React__default["default"].createElement("span", {
|
|
14997
|
-
className: `${classPrefix$
|
|
15038
|
+
className: `${classPrefix$D}-cell-delete`,
|
|
14998
15039
|
onClick: onDelete
|
|
14999
15040
|
}, React__default["default"].createElement(antdMobileIcons.CloseOutline, {
|
|
15000
|
-
className: `${classPrefix$
|
|
15041
|
+
className: `${classPrefix$D}-cell-delete-icon`
|
|
15001
15042
|
}));
|
|
15002
15043
|
}
|
|
15003
15044
|
return React__default["default"].createElement("div", {
|
|
15004
|
-
className: classNames__default["default"](`${classPrefix$
|
|
15045
|
+
className: classNames__default["default"](`${classPrefix$D}-cell`, props.status === "fail" && `${classPrefix$D}-cell-fail`)
|
|
15005
15046
|
}, React__default["default"].createElement(Image$1, {
|
|
15006
|
-
className: `${classPrefix$
|
|
15047
|
+
className: `${classPrefix$D}-cell-image`,
|
|
15007
15048
|
src,
|
|
15008
15049
|
fit: imageFit,
|
|
15009
15050
|
onClick: props.onClick
|
|
15010
15051
|
}), renderLoading(), renderDelete());
|
|
15011
15052
|
};
|
|
15012
15053
|
var space = "";
|
|
15013
|
-
const classPrefix$
|
|
15014
|
-
const defaultProps$
|
|
15054
|
+
const classPrefix$C = `adm-space`;
|
|
15055
|
+
const defaultProps$v = {
|
|
15015
15056
|
direction: "horizontal"
|
|
15016
15057
|
};
|
|
15017
15058
|
const Space = (p2) => {
|
|
15018
|
-
const props = mergeProps(defaultProps$
|
|
15059
|
+
const props = mergeProps(defaultProps$v, p2);
|
|
15019
15060
|
const {
|
|
15020
15061
|
direction,
|
|
15021
15062
|
onClick
|
|
15022
15063
|
} = props;
|
|
15023
15064
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
15024
|
-
className: classNames__default["default"](classPrefix$
|
|
15025
|
-
[`${classPrefix$
|
|
15026
|
-
[`${classPrefix$
|
|
15027
|
-
[`${classPrefix$
|
|
15028
|
-
[`${classPrefix$
|
|
15029
|
-
[`${classPrefix$
|
|
15065
|
+
className: classNames__default["default"](classPrefix$C, {
|
|
15066
|
+
[`${classPrefix$C}-wrap`]: props.wrap,
|
|
15067
|
+
[`${classPrefix$C}-block`]: props.block,
|
|
15068
|
+
[`${classPrefix$C}-${direction}`]: true,
|
|
15069
|
+
[`${classPrefix$C}-align-${props.align}`]: !!props.align,
|
|
15070
|
+
[`${classPrefix$C}-justify-${props.justify}`]: !!props.justify
|
|
15030
15071
|
}),
|
|
15031
15072
|
onClick
|
|
15032
15073
|
}, React__default["default"].Children.map(props.children, (child) => {
|
|
15033
15074
|
return child !== null && child !== void 0 && React__default["default"].createElement("div", {
|
|
15034
|
-
className: `${classPrefix$
|
|
15075
|
+
className: `${classPrefix$C}-item`
|
|
15035
15076
|
}, child);
|
|
15036
15077
|
})));
|
|
15037
15078
|
};
|
|
15038
|
-
const classPrefix$
|
|
15039
|
-
const defaultProps$
|
|
15079
|
+
const classPrefix$B = `adm-image-uploader`;
|
|
15080
|
+
const defaultProps$u = {
|
|
15040
15081
|
disableUpload: false,
|
|
15041
15082
|
deletable: true,
|
|
15042
15083
|
showUpload: true,
|
|
@@ -15052,7 +15093,7 @@ const ImageUploader = (p2) => {
|
|
|
15052
15093
|
const {
|
|
15053
15094
|
locale
|
|
15054
15095
|
} = useConfig();
|
|
15055
|
-
const props = mergeProps(defaultProps$
|
|
15096
|
+
const props = mergeProps(defaultProps$u, p2);
|
|
15056
15097
|
const [value, setValue] = usePropsValue(props);
|
|
15057
15098
|
const [tasks, setTasks] = React$1.useState([]);
|
|
15058
15099
|
ahooks.useIsomorphicLayoutEffect(() => {
|
|
@@ -15161,9 +15202,9 @@ const ImageUploader = (p2) => {
|
|
|
15161
15202
|
});
|
|
15162
15203
|
const showUpload = props.showUpload && (maxCount === 0 || value.length + tasks.length < maxCount);
|
|
15163
15204
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
15164
|
-
className: classPrefix$
|
|
15205
|
+
className: classPrefix$B
|
|
15165
15206
|
}, React__default["default"].createElement(Space, {
|
|
15166
|
-
className: `${classPrefix$
|
|
15207
|
+
className: `${classPrefix$B}-space`,
|
|
15167
15208
|
wrap: true,
|
|
15168
15209
|
block: true
|
|
15169
15210
|
}, value.map((fileItem, index2) => {
|
|
@@ -15202,19 +15243,19 @@ const ImageUploader = (p2) => {
|
|
|
15202
15243
|
}
|
|
15203
15244
|
});
|
|
15204
15245
|
}), showUpload && React__default["default"].createElement("div", {
|
|
15205
|
-
className: `${classPrefix$
|
|
15246
|
+
className: `${classPrefix$B}-upload-button-wrap`
|
|
15206
15247
|
}, props.children ? props.children : React__default["default"].createElement("span", {
|
|
15207
|
-
className: `${classPrefix$
|
|
15248
|
+
className: `${classPrefix$B}-cell ${classPrefix$B}-upload-button`,
|
|
15208
15249
|
role: "button",
|
|
15209
15250
|
"aria-label": locale.ImageUploader.upload
|
|
15210
15251
|
}, React__default["default"].createElement("span", {
|
|
15211
|
-
className: `${classPrefix$
|
|
15252
|
+
className: `${classPrefix$B}-upload-button-icon`
|
|
15212
15253
|
}, React__default["default"].createElement(antdMobileIcons.AddOutline, null))), !props.disableUpload && React__default["default"].createElement("input", {
|
|
15213
15254
|
capture: props.capture,
|
|
15214
15255
|
accept: props.accept,
|
|
15215
15256
|
multiple: props.multiple,
|
|
15216
15257
|
type: "file",
|
|
15217
|
-
className: `${classPrefix$
|
|
15258
|
+
className: `${classPrefix$B}-input`,
|
|
15218
15259
|
onChange,
|
|
15219
15260
|
"aria-hidden": true
|
|
15220
15261
|
})))));
|
|
@@ -15222,12 +15263,12 @@ const ImageUploader = (p2) => {
|
|
|
15222
15263
|
var imageUploader = "";
|
|
15223
15264
|
var indexBar = "";
|
|
15224
15265
|
const Panel = () => null;
|
|
15225
|
-
const classPrefix$
|
|
15266
|
+
const classPrefix$A = `adm-index-bar`;
|
|
15226
15267
|
const Sidebar = (props) => {
|
|
15227
15268
|
const [interacting, setInteracting] = React$1.useState(false);
|
|
15228
15269
|
return React__default["default"].createElement("div", {
|
|
15229
|
-
className: classNames__default["default"](`${classPrefix$
|
|
15230
|
-
[`${classPrefix$
|
|
15270
|
+
className: classNames__default["default"](`${classPrefix$A}-sidebar`, {
|
|
15271
|
+
[`${classPrefix$A}-sidebar-interacting`]: interacting
|
|
15231
15272
|
}),
|
|
15232
15273
|
onMouseDown: () => {
|
|
15233
15274
|
setInteracting(true);
|
|
@@ -15262,7 +15303,7 @@ const Sidebar = (props) => {
|
|
|
15262
15303
|
}) => {
|
|
15263
15304
|
const active = index2 === props.activeIndex;
|
|
15264
15305
|
return React__default["default"].createElement("div", {
|
|
15265
|
-
className: `${classPrefix$
|
|
15306
|
+
className: `${classPrefix$A}-sidebar-row`,
|
|
15266
15307
|
onMouseDown: () => {
|
|
15267
15308
|
props.onActive(index2);
|
|
15268
15309
|
},
|
|
@@ -15277,21 +15318,21 @@ const Sidebar = (props) => {
|
|
|
15277
15318
|
"data-index": index2,
|
|
15278
15319
|
key: index2
|
|
15279
15320
|
}, interacting && active && React__default["default"].createElement("div", {
|
|
15280
|
-
className: `${classPrefix$
|
|
15321
|
+
className: `${classPrefix$A}-sidebar-bubble`
|
|
15281
15322
|
}, brief), React__default["default"].createElement("div", {
|
|
15282
|
-
className: classNames__default["default"](`${classPrefix$
|
|
15283
|
-
[`${classPrefix$
|
|
15323
|
+
className: classNames__default["default"](`${classPrefix$A}-sidebar-item`, {
|
|
15324
|
+
[`${classPrefix$A}-sidebar-item-active`]: active
|
|
15284
15325
|
}),
|
|
15285
15326
|
"data-index": index2
|
|
15286
15327
|
}, React__default["default"].createElement("div", null, brief)));
|
|
15287
15328
|
}));
|
|
15288
15329
|
};
|
|
15289
|
-
const classPrefix$
|
|
15290
|
-
const defaultProps$
|
|
15330
|
+
const classPrefix$z = `adm-index-bar`;
|
|
15331
|
+
const defaultProps$t = {
|
|
15291
15332
|
sticky: true
|
|
15292
15333
|
};
|
|
15293
15334
|
const IndexBar = React$1.forwardRef((p2, ref) => {
|
|
15294
|
-
const props = mergeProps(defaultProps$
|
|
15335
|
+
const props = mergeProps(defaultProps$t, p2);
|
|
15295
15336
|
const titleHeight = convertPx(35);
|
|
15296
15337
|
const bodyRef = React$1.useRef(null);
|
|
15297
15338
|
const indexItems = [];
|
|
@@ -15310,9 +15351,9 @@ const IndexBar = React$1.forwardRef((p2, ref) => {
|
|
|
15310
15351
|
panels.push(withNativeProps(child.props, React__default["default"].createElement("div", {
|
|
15311
15352
|
key: child.props.index,
|
|
15312
15353
|
"data-index": child.props.index,
|
|
15313
|
-
className: `${classPrefix$
|
|
15354
|
+
className: `${classPrefix$z}-anchor`
|
|
15314
15355
|
}, React__default["default"].createElement("div", {
|
|
15315
|
-
className: `${classPrefix$
|
|
15356
|
+
className: `${classPrefix$z}-anchor-title`
|
|
15316
15357
|
}, child.props.title || child.props.index), child.props.children)));
|
|
15317
15358
|
});
|
|
15318
15359
|
const [activeIndex, setActiveIndex] = React$1.useState(() => {
|
|
@@ -15349,7 +15390,7 @@ const IndexBar = React$1.forwardRef((p2, ref) => {
|
|
|
15349
15390
|
if (!body)
|
|
15350
15391
|
return;
|
|
15351
15392
|
const scrollTop = body.scrollTop;
|
|
15352
|
-
const elements = body.getElementsByClassName(`${classPrefix$
|
|
15393
|
+
const elements = body.getElementsByClassName(`${classPrefix$z}-anchor`);
|
|
15353
15394
|
for (let i = 0; i < elements.length; i++) {
|
|
15354
15395
|
const panel = elements.item(i);
|
|
15355
15396
|
if (!panel)
|
|
@@ -15369,8 +15410,8 @@ const IndexBar = React$1.forwardRef((p2, ref) => {
|
|
|
15369
15410
|
leading: true
|
|
15370
15411
|
});
|
|
15371
15412
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
15372
|
-
className: classNames__default["default"](`${classPrefix$
|
|
15373
|
-
[`${classPrefix$
|
|
15413
|
+
className: classNames__default["default"](`${classPrefix$z}`, {
|
|
15414
|
+
[`${classPrefix$z}-sticky`]: props.sticky
|
|
15374
15415
|
})
|
|
15375
15416
|
}, React__default["default"].createElement(Sidebar, {
|
|
15376
15417
|
indexItems,
|
|
@@ -15379,7 +15420,7 @@ const IndexBar = React$1.forwardRef((p2, ref) => {
|
|
|
15379
15420
|
scrollTo(index2);
|
|
15380
15421
|
}
|
|
15381
15422
|
}), React__default["default"].createElement("div", {
|
|
15382
|
-
className: `${classPrefix$
|
|
15423
|
+
className: `${classPrefix$z}-body`,
|
|
15383
15424
|
ref: bodyRef,
|
|
15384
15425
|
onScroll: checkActiveIndex
|
|
15385
15426
|
}, panels)));
|
|
@@ -15391,20 +15432,26 @@ var infiniteScroll = "";
|
|
|
15391
15432
|
function isWindow(element) {
|
|
15392
15433
|
return element === window;
|
|
15393
15434
|
}
|
|
15394
|
-
const classPrefix$
|
|
15395
|
-
const
|
|
15396
|
-
|
|
15397
|
-
|
|
15398
|
-
|
|
15399
|
-
|
|
15400
|
-
|
|
15401
|
-
|
|
15435
|
+
const classPrefix$y = `adm-infinite-scroll`;
|
|
15436
|
+
const defaultProps$s = {
|
|
15437
|
+
threshold: 250,
|
|
15438
|
+
children: (hasMore, failed, retry) => React__default["default"].createElement(InfiniteScrollContent, {
|
|
15439
|
+
hasMore,
|
|
15440
|
+
failed,
|
|
15441
|
+
retry
|
|
15442
|
+
})
|
|
15402
15443
|
};
|
|
15403
15444
|
const InfiniteScroll = (p2) => {
|
|
15404
|
-
const props = mergeProps(
|
|
15405
|
-
|
|
15406
|
-
|
|
15407
|
-
|
|
15445
|
+
const props = mergeProps(defaultProps$s, p2);
|
|
15446
|
+
const [failed, setFailed] = React$1.useState(false);
|
|
15447
|
+
const doLoadMore = ahooks.useLockFn((isRetry) => tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
15448
|
+
try {
|
|
15449
|
+
yield props.loadMore(isRetry);
|
|
15450
|
+
} catch (e2) {
|
|
15451
|
+
setFailed(true);
|
|
15452
|
+
throw e2;
|
|
15453
|
+
}
|
|
15454
|
+
}));
|
|
15408
15455
|
const elementRef = React$1.useRef(null);
|
|
15409
15456
|
const [flag, setFlag] = React$1.useState({});
|
|
15410
15457
|
const nextFlagRef = React$1.useRef(flag);
|
|
@@ -15429,7 +15476,7 @@ const InfiniteScroll = (p2) => {
|
|
|
15429
15476
|
if (current >= elementTop - props.threshold) {
|
|
15430
15477
|
const nextFlag = {};
|
|
15431
15478
|
nextFlagRef.current = nextFlag;
|
|
15432
|
-
yield doLoadMore();
|
|
15479
|
+
yield doLoadMore(false);
|
|
15433
15480
|
setFlag(nextFlag);
|
|
15434
15481
|
}
|
|
15435
15482
|
}));
|
|
@@ -15450,15 +15497,35 @@ const InfiniteScroll = (p2) => {
|
|
|
15450
15497
|
scrollParent.removeEventListener("scroll", onScroll);
|
|
15451
15498
|
};
|
|
15452
15499
|
}, [scrollParent]);
|
|
15500
|
+
function retry() {
|
|
15501
|
+
setFailed(false);
|
|
15502
|
+
doLoadMore(true);
|
|
15503
|
+
}
|
|
15453
15504
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
15454
|
-
className: classPrefix$
|
|
15505
|
+
className: classPrefix$y,
|
|
15455
15506
|
ref: elementRef
|
|
15456
|
-
}, props.children
|
|
15457
|
-
|
|
15458
|
-
|
|
15507
|
+
}, typeof props.children === "function" ? props.children(props.hasMore, failed, retry) : props.children));
|
|
15508
|
+
};
|
|
15509
|
+
const InfiniteScrollContent = (props) => {
|
|
15510
|
+
const {
|
|
15511
|
+
locale
|
|
15512
|
+
} = useConfig();
|
|
15513
|
+
if (!props.hasMore) {
|
|
15514
|
+
return React__default["default"].createElement("span", null, locale.InfiniteScroll.noMore);
|
|
15515
|
+
}
|
|
15516
|
+
if (props.failed) {
|
|
15517
|
+
return React__default["default"].createElement("span", null, React__default["default"].createElement("span", {
|
|
15518
|
+
className: `${classPrefix$y}-failed-text`
|
|
15519
|
+
}, locale.InfiniteScroll.failedToLoad), React__default["default"].createElement("a", {
|
|
15520
|
+
onClick: () => {
|
|
15521
|
+
props.retry();
|
|
15522
|
+
}
|
|
15523
|
+
}, locale.InfiniteScroll.retry));
|
|
15524
|
+
}
|
|
15525
|
+
return React__default["default"].createElement(React__default["default"].Fragment, null, React__default["default"].createElement("span", null, locale.common.loading), React__default["default"].createElement(DotLoading, null));
|
|
15459
15526
|
};
|
|
15460
15527
|
var input = "";
|
|
15461
|
-
const classPrefix$
|
|
15528
|
+
const classPrefix$x = `adm-input`;
|
|
15462
15529
|
const defaultProps$r = {
|
|
15463
15530
|
defaultValue: "",
|
|
15464
15531
|
onlyShowClearWhenFocus: true
|
|
@@ -15521,10 +15588,10 @@ const Input = React$1.forwardRef((p2, ref) => {
|
|
|
15521
15588
|
}
|
|
15522
15589
|
})();
|
|
15523
15590
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
15524
|
-
className: classNames__default["default"](`${classPrefix$
|
|
15591
|
+
className: classNames__default["default"](`${classPrefix$x}`, props.disabled && `${classPrefix$x}-disabled`)
|
|
15525
15592
|
}, React__default["default"].createElement("input", {
|
|
15526
15593
|
ref: nativeInputRef,
|
|
15527
|
-
className: `${classPrefix$
|
|
15594
|
+
className: `${classPrefix$x}-element`,
|
|
15528
15595
|
value,
|
|
15529
15596
|
onChange: (e2) => {
|
|
15530
15597
|
setValue(e2.target.value);
|
|
@@ -15570,7 +15637,7 @@ const Input = React$1.forwardRef((p2, ref) => {
|
|
|
15570
15637
|
},
|
|
15571
15638
|
onClick: props.onClick
|
|
15572
15639
|
}), shouldShowClear && React__default["default"].createElement("div", {
|
|
15573
|
-
className: `${classPrefix$
|
|
15640
|
+
className: `${classPrefix$x}-clear`,
|
|
15574
15641
|
onMouseDown: (e2) => {
|
|
15575
15642
|
e2.preventDefault();
|
|
15576
15643
|
},
|
|
@@ -15586,7 +15653,7 @@ const Input = React$1.forwardRef((p2, ref) => {
|
|
|
15586
15653
|
}, React__default["default"].createElement(antdMobileIcons.CloseCircleFill, null))));
|
|
15587
15654
|
});
|
|
15588
15655
|
var jumboTabs = "";
|
|
15589
|
-
const classPrefix$
|
|
15656
|
+
const classPrefix$w = `adm-jumbo-tabs`;
|
|
15590
15657
|
const JumboTab = () => {
|
|
15591
15658
|
return null;
|
|
15592
15659
|
};
|
|
@@ -15627,19 +15694,19 @@ const JumboTabs = (props) => {
|
|
|
15627
15694
|
animate(true);
|
|
15628
15695
|
}, rootRef);
|
|
15629
15696
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
15630
|
-
className: classPrefix$
|
|
15697
|
+
className: classPrefix$w,
|
|
15631
15698
|
ref: rootRef
|
|
15632
15699
|
}, React__default["default"].createElement("div", {
|
|
15633
|
-
className: `${classPrefix$
|
|
15700
|
+
className: `${classPrefix$w}-header`
|
|
15634
15701
|
}, React__default["default"].createElement(ScrollMask, {
|
|
15635
15702
|
scrollTrackRef: tabListContainerRef
|
|
15636
15703
|
}), React__default["default"].createElement(web.animated.div, {
|
|
15637
|
-
className: `${classPrefix$
|
|
15704
|
+
className: `${classPrefix$w}-tab-list`,
|
|
15638
15705
|
ref: tabListContainerRef,
|
|
15639
15706
|
scrollLeft
|
|
15640
15707
|
}, panes.map((pane) => withNativeProps(pane.props, React__default["default"].createElement("div", {
|
|
15641
15708
|
key: pane.key,
|
|
15642
|
-
className: `${classPrefix$
|
|
15709
|
+
className: `${classPrefix$w}-tab-wrapper`
|
|
15643
15710
|
}, React__default["default"].createElement("div", {
|
|
15644
15711
|
onClick: () => {
|
|
15645
15712
|
const {
|
|
@@ -15652,14 +15719,14 @@ const JumboTabs = (props) => {
|
|
|
15652
15719
|
}
|
|
15653
15720
|
setActiveKey(key.toString());
|
|
15654
15721
|
},
|
|
15655
|
-
className: classNames__default["default"](`${classPrefix$
|
|
15656
|
-
[`${classPrefix$
|
|
15657
|
-
[`${classPrefix$
|
|
15722
|
+
className: classNames__default["default"](`${classPrefix$w}-tab`, {
|
|
15723
|
+
[`${classPrefix$w}-tab-active`]: pane.key === activeKey,
|
|
15724
|
+
[`${classPrefix$w}-tab-disabled`]: pane.props.disabled
|
|
15658
15725
|
})
|
|
15659
15726
|
}, React__default["default"].createElement("div", {
|
|
15660
|
-
className: `${classPrefix$
|
|
15727
|
+
className: `${classPrefix$w}-tab-title`
|
|
15661
15728
|
}, pane.props.title), React__default["default"].createElement("div", {
|
|
15662
|
-
className: `${classPrefix$
|
|
15729
|
+
className: `${classPrefix$w}-tab-description`
|
|
15663
15730
|
}, pane.props.description))))))), panes.map((pane) => {
|
|
15664
15731
|
if (pane.props.children === void 0) {
|
|
15665
15732
|
return null;
|
|
@@ -15671,7 +15738,7 @@ const JumboTabs = (props) => {
|
|
|
15671
15738
|
forceRender: pane.props.forceRender,
|
|
15672
15739
|
destroyOnClose: pane.props.destroyOnClose
|
|
15673
15740
|
}, React__default["default"].createElement("div", {
|
|
15674
|
-
className: `${classPrefix$
|
|
15741
|
+
className: `${classPrefix$w}-content`,
|
|
15675
15742
|
style: {
|
|
15676
15743
|
display: active ? "block" : "none"
|
|
15677
15744
|
}
|
|
@@ -15701,52 +15768,13 @@ const ModalActionButton = (props) => {
|
|
|
15701
15768
|
}, action.text));
|
|
15702
15769
|
};
|
|
15703
15770
|
const defaultProps$q = {
|
|
15704
|
-
visible: false,
|
|
15705
15771
|
actions: [],
|
|
15706
15772
|
closeOnAction: false,
|
|
15707
|
-
closeOnMaskClick: false
|
|
15708
|
-
stopPropagation: ["click"],
|
|
15709
|
-
showCloseButton: false,
|
|
15710
|
-
getContainer: null,
|
|
15711
|
-
disableBodyScroll: true,
|
|
15712
|
-
destroyOnClose: false,
|
|
15713
|
-
forceRender: false
|
|
15773
|
+
closeOnMaskClick: false
|
|
15714
15774
|
};
|
|
15715
15775
|
const Modal = (p2) => {
|
|
15716
15776
|
const props = mergeProps(defaultProps$q, p2);
|
|
15717
|
-
const
|
|
15718
|
-
const style = web.useSpring({
|
|
15719
|
-
scale: props.visible ? 1 : 0.8,
|
|
15720
|
-
opacity: props.visible ? 1 : 0,
|
|
15721
|
-
config: {
|
|
15722
|
-
mass: 1.2,
|
|
15723
|
-
tension: 200,
|
|
15724
|
-
friction: 25,
|
|
15725
|
-
clamp: true
|
|
15726
|
-
},
|
|
15727
|
-
onRest: () => {
|
|
15728
|
-
var _a, _b;
|
|
15729
|
-
if (unmountedRef.current)
|
|
15730
|
-
return;
|
|
15731
|
-
setActive(props.visible);
|
|
15732
|
-
if (props.visible) {
|
|
15733
|
-
(_a = props.afterShow) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
15734
|
-
} else {
|
|
15735
|
-
(_b = props.afterClose) === null || _b === void 0 ? void 0 : _b.call(props);
|
|
15736
|
-
}
|
|
15737
|
-
}
|
|
15738
|
-
});
|
|
15739
|
-
const [active, setActive] = React$1.useState(props.visible);
|
|
15740
|
-
ahooks.useIsomorphicLayoutEffect(() => {
|
|
15741
|
-
if (props.visible) {
|
|
15742
|
-
setActive(true);
|
|
15743
|
-
}
|
|
15744
|
-
}, [props.visible]);
|
|
15745
|
-
const maskVisible = useInnerVisible(active && props.visible);
|
|
15746
|
-
const body = React__default["default"].createElement("div", {
|
|
15747
|
-
className: classNames__default["default"](cls("body"), props.image && cls("with-image"), props.bodyClassName),
|
|
15748
|
-
style: props.bodyStyle
|
|
15749
|
-
}, props.showCloseButton && React__default["default"].createElement("a", {
|
|
15777
|
+
const element = React__default["default"].createElement(React__default["default"].Fragment, null, props.showCloseButton && React__default["default"].createElement("a", {
|
|
15750
15778
|
className: classNames__default["default"](cls("close"), "adm-plain-anchor"),
|
|
15751
15779
|
onClick: props.onClose
|
|
15752
15780
|
}, React__default["default"].createElement(antdMobileIcons.CloseOutline, null)), !!props.image && React__default["default"].createElement("div", {
|
|
@@ -15778,30 +15806,26 @@ const Modal = (p2) => {
|
|
|
15778
15806
|
})
|
|
15779
15807
|
});
|
|
15780
15808
|
})));
|
|
15781
|
-
|
|
15782
|
-
className: cls(),
|
|
15783
|
-
style:
|
|
15784
|
-
|
|
15785
|
-
|
|
15786
|
-
|
|
15787
|
-
|
|
15788
|
-
|
|
15789
|
-
|
|
15809
|
+
return React__default["default"].createElement(CenterPopup, {
|
|
15810
|
+
className: classNames__default["default"](cls(), props.className),
|
|
15811
|
+
style: props.style,
|
|
15812
|
+
afterClose: props.afterClose,
|
|
15813
|
+
afterShow: props.afterShow,
|
|
15814
|
+
onMaskClick: props.closeOnMaskClick ? () => {
|
|
15815
|
+
var _a;
|
|
15816
|
+
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
15817
|
+
} : void 0,
|
|
15818
|
+
visible: props.visible,
|
|
15819
|
+
getContainer: props.getContainer,
|
|
15820
|
+
bodyStyle: props.bodyStyle,
|
|
15821
|
+
bodyClassName: classNames__default["default"](cls("body"), props.image && cls("with-image"), props.bodyClassName),
|
|
15822
|
+
maskStyle: props.maskStyle,
|
|
15823
|
+
maskClassName: props.maskClassName,
|
|
15824
|
+
stopPropagation: props.stopPropagation,
|
|
15825
|
+
disableBodyScroll: props.disableBodyScroll,
|
|
15790
15826
|
destroyOnClose: props.destroyOnClose,
|
|
15791
|
-
|
|
15792
|
-
|
|
15793
|
-
className: classNames__default["default"](cls("mask"), props.maskClassName),
|
|
15794
|
-
disableBodyScroll: props.disableBodyScroll
|
|
15795
|
-
}), React__default["default"].createElement("div", {
|
|
15796
|
-
className: cls("wrap")
|
|
15797
|
-
}, React__default["default"].createElement(web.animated.div, {
|
|
15798
|
-
style
|
|
15799
|
-
}, body)))));
|
|
15800
|
-
return React__default["default"].createElement(ShouldRender, {
|
|
15801
|
-
active,
|
|
15802
|
-
forceRender: props.forceRender,
|
|
15803
|
-
destroyOnClose: props.destroyOnClose
|
|
15804
|
-
}, renderToContainer(props.getContainer, node));
|
|
15827
|
+
forceRender: props.forceRender
|
|
15828
|
+
}, element);
|
|
15805
15829
|
};
|
|
15806
15830
|
function cls(name = "") {
|
|
15807
15831
|
return "adm-modal" + (name && "-") + name;
|
|
@@ -15893,7 +15917,7 @@ var index$6 = attachPropertiesToComponent(Modal, {
|
|
|
15893
15917
|
clear: clear$1
|
|
15894
15918
|
});
|
|
15895
15919
|
var navBar = "";
|
|
15896
|
-
const classPrefix$
|
|
15920
|
+
const classPrefix$v = `adm-nav-bar`;
|
|
15897
15921
|
const defaultProps$o = {
|
|
15898
15922
|
back: "",
|
|
15899
15923
|
backArrow: true
|
|
@@ -15905,25 +15929,25 @@ const NavBar = (p2) => {
|
|
|
15905
15929
|
backArrow
|
|
15906
15930
|
} = props;
|
|
15907
15931
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
15908
|
-
className: classNames__default["default"](classPrefix$
|
|
15932
|
+
className: classNames__default["default"](classPrefix$v)
|
|
15909
15933
|
}, React__default["default"].createElement("div", {
|
|
15910
|
-
className: `${classPrefix$
|
|
15934
|
+
className: `${classPrefix$v}-left`,
|
|
15911
15935
|
role: "button"
|
|
15912
15936
|
}, back !== null && React__default["default"].createElement("div", {
|
|
15913
|
-
className: `${classPrefix$
|
|
15937
|
+
className: `${classPrefix$v}-back`,
|
|
15914
15938
|
onClick: props.onBack
|
|
15915
15939
|
}, backArrow && React__default["default"].createElement("span", {
|
|
15916
|
-
className: `${classPrefix$
|
|
15940
|
+
className: `${classPrefix$v}-back-arrow`
|
|
15917
15941
|
}, backArrow === true ? React__default["default"].createElement(antdMobileIcons.LeftOutline, null) : backArrow), React__default["default"].createElement("span", {
|
|
15918
15942
|
"aria-hidden": "true"
|
|
15919
15943
|
}, back)), props.left), React__default["default"].createElement("div", {
|
|
15920
|
-
className: `${classPrefix$
|
|
15944
|
+
className: `${classPrefix$v}-title`
|
|
15921
15945
|
}, props.children), React__default["default"].createElement("div", {
|
|
15922
|
-
className: `${classPrefix$
|
|
15946
|
+
className: `${classPrefix$v}-right`
|
|
15923
15947
|
}, props.right)));
|
|
15924
15948
|
};
|
|
15925
15949
|
var noticeBar = "";
|
|
15926
|
-
const classPrefix$
|
|
15950
|
+
const classPrefix$u = `adm-notice-bar`;
|
|
15927
15951
|
const defaultProps$n = {
|
|
15928
15952
|
color: "default",
|
|
15929
15953
|
delay: 2e3,
|
|
@@ -15982,23 +16006,23 @@ const NoticeBar = React$1.memo((p2) => {
|
|
|
15982
16006
|
if (!visible)
|
|
15983
16007
|
return null;
|
|
15984
16008
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
15985
|
-
className: classNames__default["default"](classPrefix$
|
|
16009
|
+
className: classNames__default["default"](classPrefix$u, `${classPrefix$u}-${props.color}`)
|
|
15986
16010
|
}, props.icon && React__default["default"].createElement("span", {
|
|
15987
|
-
className: `${classPrefix$
|
|
16011
|
+
className: `${classPrefix$u}-left`
|
|
15988
16012
|
}, props.icon), React__default["default"].createElement("span", {
|
|
15989
16013
|
ref: containerRef,
|
|
15990
|
-
className: `${classPrefix$
|
|
16014
|
+
className: `${classPrefix$u}-content`
|
|
15991
16015
|
}, React__default["default"].createElement("span", {
|
|
15992
16016
|
onTransitionEnd: () => {
|
|
15993
16017
|
animatingRef.current = false;
|
|
15994
16018
|
start();
|
|
15995
16019
|
},
|
|
15996
16020
|
ref: textRef,
|
|
15997
|
-
className: `${classPrefix$
|
|
16021
|
+
className: `${classPrefix$u}-content-inner`
|
|
15998
16022
|
}, props.content)), (props.closeable || props.extra) && React__default["default"].createElement("span", {
|
|
15999
|
-
className: `${classPrefix$
|
|
16023
|
+
className: `${classPrefix$u}-right`
|
|
16000
16024
|
}, props.extra, props.closeable && React__default["default"].createElement(antdMobileIcons.CloseOutline, {
|
|
16001
|
-
className: `${classPrefix$
|
|
16025
|
+
className: `${classPrefix$u}-close-icon`,
|
|
16002
16026
|
onClick: () => {
|
|
16003
16027
|
var _a;
|
|
16004
16028
|
setVisible(false);
|
|
@@ -16015,7 +16039,7 @@ function shuffle(array) {
|
|
|
16015
16039
|
}
|
|
16016
16040
|
return result2;
|
|
16017
16041
|
}
|
|
16018
|
-
const classPrefix$
|
|
16042
|
+
const classPrefix$t = "adm-number-keyboard";
|
|
16019
16043
|
const defaultProps$m = {
|
|
16020
16044
|
defaultVisible: false,
|
|
16021
16045
|
randomOrder: false,
|
|
@@ -16088,13 +16112,13 @@ const NumberKeyboard = (p2) => {
|
|
|
16088
16112
|
if (!showCloseButton && !title)
|
|
16089
16113
|
return null;
|
|
16090
16114
|
return React__default["default"].createElement("div", {
|
|
16091
|
-
className: classNames__default["default"](`${classPrefix$
|
|
16115
|
+
className: classNames__default["default"](`${classPrefix$t}-header`, {
|
|
16092
16116
|
"with-title": !!title
|
|
16093
16117
|
})
|
|
16094
16118
|
}, title && React__default["default"].createElement("div", {
|
|
16095
|
-
className: `${classPrefix$
|
|
16119
|
+
className: `${classPrefix$t}-title`
|
|
16096
16120
|
}, title), showCloseButton && React__default["default"].createElement("span", {
|
|
16097
|
-
className: `${classPrefix$
|
|
16121
|
+
className: `${classPrefix$t}-header-close-button`,
|
|
16098
16122
|
onClick: () => {
|
|
16099
16123
|
var _a;
|
|
16100
16124
|
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
@@ -16105,7 +16129,7 @@ const NumberKeyboard = (p2) => {
|
|
|
16105
16129
|
};
|
|
16106
16130
|
const renderKey = (key, index2) => {
|
|
16107
16131
|
const isNumberKey = /^\d$/.test(key);
|
|
16108
|
-
const className = classNames__default["default"](`${classPrefix$
|
|
16132
|
+
const className = classNames__default["default"](`${classPrefix$t}-key`, {
|
|
16109
16133
|
"number-key": isNumberKey,
|
|
16110
16134
|
"sign-key": !isNumberKey && key,
|
|
16111
16135
|
"mid-key": index2 === 9 && !!confirmText
|
|
@@ -16134,24 +16158,24 @@ const NumberKeyboard = (p2) => {
|
|
|
16134
16158
|
mask: false,
|
|
16135
16159
|
afterClose: props.afterClose,
|
|
16136
16160
|
afterShow: props.afterShow,
|
|
16137
|
-
className: `${classPrefix$
|
|
16161
|
+
className: `${classPrefix$t}-popup`,
|
|
16138
16162
|
stopPropagation: props.stopPropagation
|
|
16139
16163
|
}, withNativeProps(props, React__default["default"].createElement("div", {
|
|
16140
16164
|
ref: keyboardRef,
|
|
16141
|
-
className: classPrefix$
|
|
16165
|
+
className: classPrefix$t,
|
|
16142
16166
|
onMouseDown: (e2) => {
|
|
16143
16167
|
e2.preventDefault();
|
|
16144
16168
|
}
|
|
16145
16169
|
}, renderHeader(), React__default["default"].createElement("div", {
|
|
16146
|
-
className: `${classPrefix$
|
|
16170
|
+
className: `${classPrefix$t}-wrapper`
|
|
16147
16171
|
}, React__default["default"].createElement("div", {
|
|
16148
|
-
className: classNames__default["default"](`${classPrefix$
|
|
16172
|
+
className: classNames__default["default"](`${classPrefix$t}-main`, {
|
|
16149
16173
|
"confirmed-style": !!confirmText
|
|
16150
16174
|
})
|
|
16151
16175
|
}, keys2.map(renderKey)), !!confirmText && React__default["default"].createElement("div", {
|
|
16152
|
-
className: `${classPrefix$
|
|
16176
|
+
className: `${classPrefix$t}-confirm`
|
|
16153
16177
|
}, React__default["default"].createElement("div", {
|
|
16154
|
-
className: `${classPrefix$
|
|
16178
|
+
className: `${classPrefix$t}-key extra-key bs-key`,
|
|
16155
16179
|
onTouchStart: () => {
|
|
16156
16180
|
onBackspacePressStart();
|
|
16157
16181
|
},
|
|
@@ -16162,17 +16186,17 @@ const NumberKeyboard = (p2) => {
|
|
|
16162
16186
|
title: "BACKSPACE",
|
|
16163
16187
|
role: "button"
|
|
16164
16188
|
}, React__default["default"].createElement(antdMobileIcons.TextDeletionOutline, null)), React__default["default"].createElement("div", {
|
|
16165
|
-
className: `${classPrefix$
|
|
16189
|
+
className: `${classPrefix$t}-key extra-key ok-key`,
|
|
16166
16190
|
onTouchEnd: (e2) => onKeyPress(e2, "OK"),
|
|
16167
16191
|
role: "button"
|
|
16168
16192
|
}, confirmText))), props.safeArea && React__default["default"].createElement("div", {
|
|
16169
|
-
className: `${classPrefix$
|
|
16193
|
+
className: `${classPrefix$t}-footer`
|
|
16170
16194
|
}, React__default["default"].createElement(SafeArea, {
|
|
16171
16195
|
position: "bottom"
|
|
16172
16196
|
})))));
|
|
16173
16197
|
};
|
|
16174
16198
|
var pageIndicator = "";
|
|
16175
|
-
const classPrefix$
|
|
16199
|
+
const classPrefix$s = `adm-page-indicator`;
|
|
16176
16200
|
const defaultProps$l = {
|
|
16177
16201
|
color: "primary",
|
|
16178
16202
|
direction: "horizontal"
|
|
@@ -16183,17 +16207,17 @@ const PageIndicator = React$1.memo((p2) => {
|
|
|
16183
16207
|
for (let i = 0; i < props.total; i++) {
|
|
16184
16208
|
dots.push(React__default["default"].createElement("div", {
|
|
16185
16209
|
key: i,
|
|
16186
|
-
className: classNames__default["default"](`${classPrefix$
|
|
16187
|
-
[`${classPrefix$
|
|
16210
|
+
className: classNames__default["default"](`${classPrefix$s}-dot`, {
|
|
16211
|
+
[`${classPrefix$s}-dot-active`]: props.current === i
|
|
16188
16212
|
})
|
|
16189
16213
|
}));
|
|
16190
16214
|
}
|
|
16191
16215
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
16192
|
-
className: classNames__default["default"](classPrefix$
|
|
16216
|
+
className: classNames__default["default"](classPrefix$s, `${classPrefix$s}-${props.direction}`, `${classPrefix$s}-color-${props.color}`)
|
|
16193
16217
|
}, dots));
|
|
16194
16218
|
});
|
|
16195
16219
|
var passcodeInput = "";
|
|
16196
|
-
const classPrefix$
|
|
16220
|
+
const classPrefix$r = "adm-passcode-input";
|
|
16197
16221
|
const defaultProps$k = {
|
|
16198
16222
|
defaultValue: "",
|
|
16199
16223
|
length: 6,
|
|
@@ -16261,7 +16285,7 @@ const PasscodeInput = React$1.forwardRef((p2, ref) => {
|
|
|
16261
16285
|
const focusedIndex = bound(chars.length, 0, cellLength - 1);
|
|
16262
16286
|
for (let i = 0; i < cellLength; i++) {
|
|
16263
16287
|
cells.push(React__default["default"].createElement("div", {
|
|
16264
|
-
className: classNames__default["default"](`${classPrefix$
|
|
16288
|
+
className: classNames__default["default"](`${classPrefix$r}-cell`, {
|
|
16265
16289
|
caret: props.caret && caretIndex === i && focused,
|
|
16266
16290
|
focused: focusedIndex === i && focused,
|
|
16267
16291
|
dot: !props.plain && chars[i]
|
|
@@ -16271,7 +16295,7 @@ const PasscodeInput = React$1.forwardRef((p2, ref) => {
|
|
|
16271
16295
|
}
|
|
16272
16296
|
return cells;
|
|
16273
16297
|
};
|
|
16274
|
-
const cls2 = classNames__default["default"](classPrefix$
|
|
16298
|
+
const cls2 = classNames__default["default"](classPrefix$r, {
|
|
16275
16299
|
focused,
|
|
16276
16300
|
error: props.error,
|
|
16277
16301
|
seperated: props.seperated
|
|
@@ -16283,10 +16307,10 @@ const PasscodeInput = React$1.forwardRef((p2, ref) => {
|
|
|
16283
16307
|
onFocus,
|
|
16284
16308
|
onBlur
|
|
16285
16309
|
}, React__default["default"].createElement("div", {
|
|
16286
|
-
className: `${classPrefix$
|
|
16310
|
+
className: `${classPrefix$r}-cell-container`
|
|
16287
16311
|
}, renderCells()), React__default["default"].createElement("input", {
|
|
16288
16312
|
ref: nativeInputRef,
|
|
16289
|
-
className: `${classPrefix$
|
|
16313
|
+
className: `${classPrefix$r}-native-input`,
|
|
16290
16314
|
value,
|
|
16291
16315
|
type: "text",
|
|
16292
16316
|
pattern: "[0-9]*",
|
|
@@ -16311,7 +16335,7 @@ const PasscodeInput = React$1.forwardRef((p2, ref) => {
|
|
|
16311
16335
|
}));
|
|
16312
16336
|
});
|
|
16313
16337
|
var progressBar = "";
|
|
16314
|
-
const classPrefix$
|
|
16338
|
+
const classPrefix$q = `adm-progress-bar`;
|
|
16315
16339
|
const ProgressBar = (p2) => {
|
|
16316
16340
|
const props = mergeProps({
|
|
16317
16341
|
percent: 0
|
|
@@ -16320,16 +16344,16 @@ const ProgressBar = (p2) => {
|
|
|
16320
16344
|
width: `${props.percent}%`
|
|
16321
16345
|
};
|
|
16322
16346
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
16323
|
-
className: classPrefix$
|
|
16347
|
+
className: classPrefix$q
|
|
16324
16348
|
}, React__default["default"].createElement("div", {
|
|
16325
|
-
className: `${classPrefix$
|
|
16349
|
+
className: `${classPrefix$q}-trail`
|
|
16326
16350
|
}, React__default["default"].createElement("div", {
|
|
16327
|
-
className: `${classPrefix$
|
|
16351
|
+
className: `${classPrefix$q}-fill`,
|
|
16328
16352
|
style: fillStyle
|
|
16329
16353
|
}))));
|
|
16330
16354
|
};
|
|
16331
16355
|
var progressCircle = "";
|
|
16332
|
-
const classPrefix$
|
|
16356
|
+
const classPrefix$p = `adm-progress-circle`;
|
|
16333
16357
|
const ProgressCircle = (p2) => {
|
|
16334
16358
|
const props = mergeProps({
|
|
16335
16359
|
percent: 0
|
|
@@ -16338,25 +16362,25 @@ const ProgressCircle = (p2) => {
|
|
|
16338
16362
|
"--percent": props.percent.toString()
|
|
16339
16363
|
};
|
|
16340
16364
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
16341
|
-
className: `${classPrefix$
|
|
16365
|
+
className: `${classPrefix$p}`,
|
|
16342
16366
|
style
|
|
16343
16367
|
}, React__default["default"].createElement("div", {
|
|
16344
|
-
className: `${classPrefix$
|
|
16368
|
+
className: `${classPrefix$p}-content`
|
|
16345
16369
|
}, React__default["default"].createElement("svg", {
|
|
16346
|
-
className: `${classPrefix$
|
|
16370
|
+
className: `${classPrefix$p}-svg`
|
|
16347
16371
|
}, React__default["default"].createElement("circle", {
|
|
16348
|
-
className: `${classPrefix$
|
|
16372
|
+
className: `${classPrefix$p}-track`,
|
|
16349
16373
|
fill: "transparent"
|
|
16350
16374
|
}), React__default["default"].createElement("circle", {
|
|
16351
|
-
className: `${classPrefix$
|
|
16375
|
+
className: `${classPrefix$p}-fill`,
|
|
16352
16376
|
fill: "transparent"
|
|
16353
16377
|
})), React__default["default"].createElement("div", {
|
|
16354
|
-
className: `${classPrefix$
|
|
16378
|
+
className: `${classPrefix$p}-info`
|
|
16355
16379
|
}, props.children))));
|
|
16356
16380
|
};
|
|
16357
16381
|
var pullToRefresh = "";
|
|
16358
16382
|
const sleep = (time) => new Promise((resolve) => setTimeout(resolve, time));
|
|
16359
|
-
const classPrefix$
|
|
16383
|
+
const classPrefix$o = `adm-pull-to-refresh`;
|
|
16360
16384
|
const defaultProps$j = {
|
|
16361
16385
|
pullingText: "\u4E0B\u62C9\u5237\u65B0",
|
|
16362
16386
|
canReleaseText: "\u91CA\u653E\u7ACB\u5373\u5237\u65B0",
|
|
@@ -16509,17 +16533,17 @@ const PullToRefresh = (p2) => {
|
|
|
16509
16533
|
};
|
|
16510
16534
|
return React__default["default"].createElement(web.animated.div, {
|
|
16511
16535
|
ref: elementRef,
|
|
16512
|
-
className: classPrefix$
|
|
16536
|
+
className: classPrefix$o
|
|
16513
16537
|
}, React__default["default"].createElement(web.animated.div, {
|
|
16514
16538
|
style: springStyles,
|
|
16515
|
-
className: `${classPrefix$
|
|
16539
|
+
className: `${classPrefix$o}-head`
|
|
16516
16540
|
}, React__default["default"].createElement("div", {
|
|
16517
|
-
className: `${classPrefix$
|
|
16541
|
+
className: `${classPrefix$o}-head-content`,
|
|
16518
16542
|
style: {
|
|
16519
16543
|
height: headHeight
|
|
16520
16544
|
}
|
|
16521
16545
|
}, renderStatusText())), React__default["default"].createElement("div", {
|
|
16522
|
-
className: `${classPrefix$
|
|
16546
|
+
className: `${classPrefix$o}-content`
|
|
16523
16547
|
}, props.children));
|
|
16524
16548
|
};
|
|
16525
16549
|
var radio = "";
|
|
@@ -16552,7 +16576,7 @@ const Group = (p2) => {
|
|
|
16552
16576
|
}
|
|
16553
16577
|
}, props.children);
|
|
16554
16578
|
};
|
|
16555
|
-
const classPrefix$
|
|
16579
|
+
const classPrefix$n = `adm-radio`;
|
|
16556
16580
|
const defaultProps$h = {
|
|
16557
16581
|
defaultChecked: false
|
|
16558
16582
|
};
|
|
@@ -16584,18 +16608,18 @@ const Radio = (p2) => {
|
|
|
16584
16608
|
const renderIcon = () => {
|
|
16585
16609
|
if (props.icon) {
|
|
16586
16610
|
return React__default["default"].createElement("div", {
|
|
16587
|
-
className: `${classPrefix$
|
|
16611
|
+
className: `${classPrefix$n}-custom-icon`
|
|
16588
16612
|
}, props.icon(checked));
|
|
16589
16613
|
}
|
|
16590
16614
|
return React__default["default"].createElement("div", {
|
|
16591
|
-
className: `${classPrefix$
|
|
16615
|
+
className: `${classPrefix$n}-icon`
|
|
16592
16616
|
}, checked && React__default["default"].createElement(CheckIcon, null));
|
|
16593
16617
|
};
|
|
16594
16618
|
return withNativeProps(props, React__default["default"].createElement("label", {
|
|
16595
|
-
className: classNames__default["default"](classPrefix$
|
|
16596
|
-
[`${classPrefix$
|
|
16597
|
-
[`${classPrefix$
|
|
16598
|
-
[`${classPrefix$
|
|
16619
|
+
className: classNames__default["default"](classPrefix$n, {
|
|
16620
|
+
[`${classPrefix$n}-checked`]: checked,
|
|
16621
|
+
[`${classPrefix$n}-disabled`]: disabled,
|
|
16622
|
+
[`${classPrefix$n}-block`]: props.block
|
|
16599
16623
|
})
|
|
16600
16624
|
}, React__default["default"].createElement(NativeInput, {
|
|
16601
16625
|
type: "radio",
|
|
@@ -16604,14 +16628,14 @@ const Radio = (p2) => {
|
|
|
16604
16628
|
disabled,
|
|
16605
16629
|
id: props.id
|
|
16606
16630
|
}), renderIcon(), props.children && React__default["default"].createElement("div", {
|
|
16607
|
-
className: `${classPrefix$
|
|
16631
|
+
className: `${classPrefix$n}-content`
|
|
16608
16632
|
}, props.children)));
|
|
16609
16633
|
};
|
|
16610
16634
|
var index$5 = attachPropertiesToComponent(Radio, {
|
|
16611
16635
|
Group
|
|
16612
16636
|
});
|
|
16613
16637
|
var rate = "";
|
|
16614
|
-
const classPrefix$
|
|
16638
|
+
const classPrefix$m = `adm-rate`;
|
|
16615
16639
|
const defaultProps$g = {
|
|
16616
16640
|
count: 5,
|
|
16617
16641
|
allowHalf: false,
|
|
@@ -16626,10 +16650,10 @@ const Rate = (p2) => {
|
|
|
16626
16650
|
const starList = Array(props.count).fill(null);
|
|
16627
16651
|
function renderStar(v, half) {
|
|
16628
16652
|
return React__default["default"].createElement("div", {
|
|
16629
|
-
className: classNames__default["default"](`${classPrefix$
|
|
16630
|
-
[`${classPrefix$
|
|
16631
|
-
[`${classPrefix$
|
|
16632
|
-
[`${classPrefix$
|
|
16653
|
+
className: classNames__default["default"](`${classPrefix$m}-star`, {
|
|
16654
|
+
[`${classPrefix$m}-star-active`]: value >= v,
|
|
16655
|
+
[`${classPrefix$m}-star-half`]: half,
|
|
16656
|
+
[`${classPrefix$m}-star-readonly`]: props.readOnly
|
|
16633
16657
|
}),
|
|
16634
16658
|
onClick: () => {
|
|
16635
16659
|
if (props.readOnly)
|
|
@@ -16643,14 +16667,14 @@ const Rate = (p2) => {
|
|
|
16643
16667
|
}, props.character);
|
|
16644
16668
|
}
|
|
16645
16669
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
16646
|
-
className: classPrefix$
|
|
16670
|
+
className: classPrefix$m
|
|
16647
16671
|
}, starList.map((_, i) => React__default["default"].createElement("div", {
|
|
16648
16672
|
key: i,
|
|
16649
|
-
className: classNames__default["default"](`${classPrefix$
|
|
16673
|
+
className: classNames__default["default"](`${classPrefix$m}-box`)
|
|
16650
16674
|
}, props.allowHalf && renderStar(i + 0.5, true), renderStar(i + 1, false)))));
|
|
16651
16675
|
};
|
|
16652
16676
|
var result = "";
|
|
16653
|
-
const classPrefix$
|
|
16677
|
+
const classPrefix$l = `adm-result`;
|
|
16654
16678
|
const iconRecord = {
|
|
16655
16679
|
success: antdMobileIcons.CheckCircleFill,
|
|
16656
16680
|
error: antdMobileIcons.CloseCircleFill,
|
|
@@ -16669,17 +16693,17 @@ const Result = (props) => {
|
|
|
16669
16693
|
return null;
|
|
16670
16694
|
const resultIcon = icon || React__default["default"].createElement(iconRecord[status]);
|
|
16671
16695
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
16672
|
-
className: classNames__default["default"](classPrefix$
|
|
16696
|
+
className: classNames__default["default"](classPrefix$l, `${classPrefix$l}-${status}`)
|
|
16673
16697
|
}, React__default["default"].createElement("div", {
|
|
16674
|
-
className: `${classPrefix$
|
|
16698
|
+
className: `${classPrefix$l}-icon`
|
|
16675
16699
|
}, resultIcon), React__default["default"].createElement("div", {
|
|
16676
|
-
className: `${classPrefix$
|
|
16700
|
+
className: `${classPrefix$l}-title`
|
|
16677
16701
|
}, title), description ? React__default["default"].createElement("div", {
|
|
16678
|
-
className: `${classPrefix$
|
|
16702
|
+
className: `${classPrefix$l}-description`
|
|
16679
16703
|
}, description) : null));
|
|
16680
16704
|
};
|
|
16681
16705
|
var searchBar = "";
|
|
16682
|
-
const classPrefix$
|
|
16706
|
+
const classPrefix$k = `adm-search-bar`;
|
|
16683
16707
|
const defaultProps$f = {
|
|
16684
16708
|
clearable: true,
|
|
16685
16709
|
onlyShowClearWhenFocus: false,
|
|
@@ -16724,10 +16748,10 @@ const SearchBar = React$1.forwardRef((p2, ref) => {
|
|
|
16724
16748
|
isShowCancel = props.showCancelButton && hasFocus;
|
|
16725
16749
|
}
|
|
16726
16750
|
return isShowCancel && React__default["default"].createElement("div", {
|
|
16727
|
-
className: `${classPrefix$
|
|
16751
|
+
className: `${classPrefix$k}-suffix`
|
|
16728
16752
|
}, React__default["default"].createElement(Button, {
|
|
16729
16753
|
fill: "none",
|
|
16730
|
-
className: `${classPrefix$
|
|
16754
|
+
className: `${classPrefix$k}-cancel-button`,
|
|
16731
16755
|
onClick: () => {
|
|
16732
16756
|
var _a, _b, _c;
|
|
16733
16757
|
if (props.clearOnCancel) {
|
|
@@ -16742,17 +16766,17 @@ const SearchBar = React$1.forwardRef((p2, ref) => {
|
|
|
16742
16766
|
}, props.cancelText));
|
|
16743
16767
|
};
|
|
16744
16768
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
16745
|
-
className: classNames__default["default"](classPrefix$
|
|
16746
|
-
[`${classPrefix$
|
|
16769
|
+
className: classNames__default["default"](classPrefix$k, {
|
|
16770
|
+
[`${classPrefix$k}-active`]: hasFocus
|
|
16747
16771
|
})
|
|
16748
16772
|
}, React__default["default"].createElement("div", {
|
|
16749
|
-
className: `${classPrefix$
|
|
16773
|
+
className: `${classPrefix$k}-input-box`
|
|
16750
16774
|
}, props.icon && React__default["default"].createElement("div", {
|
|
16751
|
-
className: `${classPrefix$
|
|
16775
|
+
className: `${classPrefix$k}-input-box-icon`
|
|
16752
16776
|
}, props.icon), React__default["default"].createElement(Input, {
|
|
16753
16777
|
ref: inputRef,
|
|
16754
|
-
className: classNames__default["default"](`${classPrefix$
|
|
16755
|
-
[`${classPrefix$
|
|
16778
|
+
className: classNames__default["default"](`${classPrefix$k}-input`, {
|
|
16779
|
+
[`${classPrefix$k}-input-without-icon`]: !props.icon
|
|
16756
16780
|
}),
|
|
16757
16781
|
value,
|
|
16758
16782
|
onChange: setValue,
|
|
@@ -16809,7 +16833,7 @@ const CheckMark = React$1.memo(() => {
|
|
|
16809
16833
|
points: "34.2767388 22 24.797043 31.4796958 21 27.6826527"
|
|
16810
16834
|
})))))));
|
|
16811
16835
|
});
|
|
16812
|
-
const classPrefix$
|
|
16836
|
+
const classPrefix$j = `adm-selector`;
|
|
16813
16837
|
const defaultProps$e = {
|
|
16814
16838
|
multiple: false,
|
|
16815
16839
|
defaultValue: [],
|
|
@@ -16833,10 +16857,10 @@ const Selector = (p2) => {
|
|
|
16833
16857
|
const items = props.options.map((option) => {
|
|
16834
16858
|
const active = (value || []).includes(option.value);
|
|
16835
16859
|
const disabled = option.disabled || props.disabled;
|
|
16836
|
-
const itemCls = classNames__default["default"](`${classPrefix$
|
|
16837
|
-
[`${classPrefix$
|
|
16838
|
-
[`${classPrefix$
|
|
16839
|
-
[`${classPrefix$
|
|
16860
|
+
const itemCls = classNames__default["default"](`${classPrefix$j}-item`, {
|
|
16861
|
+
[`${classPrefix$j}-item-active`]: active && !props.multiple,
|
|
16862
|
+
[`${classPrefix$j}-item-multiple-active`]: active && props.multiple,
|
|
16863
|
+
[`${classPrefix$j}-item-disabled`]: disabled
|
|
16840
16864
|
});
|
|
16841
16865
|
return React__default["default"].createElement("div", {
|
|
16842
16866
|
key: option.value,
|
|
@@ -16854,13 +16878,13 @@ const Selector = (p2) => {
|
|
|
16854
16878
|
}
|
|
16855
16879
|
}
|
|
16856
16880
|
}, option.label, option.description && React__default["default"].createElement("div", {
|
|
16857
|
-
className: `${classPrefix$
|
|
16881
|
+
className: `${classPrefix$j}-item-description`
|
|
16858
16882
|
}, option.description), active && props.showCheckMark && React__default["default"].createElement("div", {
|
|
16859
|
-
className: `${classPrefix$
|
|
16883
|
+
className: `${classPrefix$j}-check-mark-wrapper`
|
|
16860
16884
|
}, React__default["default"].createElement(CheckMark, null)));
|
|
16861
16885
|
});
|
|
16862
16886
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
16863
|
-
className: classPrefix$
|
|
16887
|
+
className: classPrefix$j
|
|
16864
16888
|
}, !props.columns && React__default["default"].createElement(Space, {
|
|
16865
16889
|
wrap: true
|
|
16866
16890
|
}, items), props.columns && React__default["default"].createElement(Grid, {
|
|
@@ -16878,10 +16902,10 @@ const Corner = React$1.memo((props) => withNativeProps(props, React__default["de
|
|
|
16878
16902
|
fillRule: "evenodd"
|
|
16879
16903
|
}, React__default["default"].createElement("path", {
|
|
16880
16904
|
d: "M30,0 C13.4314575,3.04359188e-15 -2.02906125e-15,13.4314575 0,30 L0,30 L0,0 Z",
|
|
16881
|
-
fill: "var(--adm-color-
|
|
16905
|
+
fill: "var(--adm-color-background)",
|
|
16882
16906
|
transform: "translate(15.000000, 15.000000) scale(-1, -1) translate(-15.000000, -15.000000) "
|
|
16883
16907
|
})))));
|
|
16884
|
-
const classPrefix$
|
|
16908
|
+
const classPrefix$i = `adm-side-bar`;
|
|
16885
16909
|
const SideBarItem = () => {
|
|
16886
16910
|
return null;
|
|
16887
16911
|
};
|
|
@@ -16913,9 +16937,9 @@ const SideBar = (props) => {
|
|
|
16913
16937
|
const lastItem = items[items.length - 1];
|
|
16914
16938
|
const isLastItemActive = lastItem && lastItem.key === activeKey;
|
|
16915
16939
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
16916
|
-
className: classPrefix$
|
|
16940
|
+
className: classPrefix$i
|
|
16917
16941
|
}, React__default["default"].createElement("div", {
|
|
16918
|
-
className: `${classPrefix$
|
|
16942
|
+
className: `${classPrefix$i}-items`
|
|
16919
16943
|
}, items.map((item, index2) => {
|
|
16920
16944
|
const active = item.key === activeKey;
|
|
16921
16945
|
const isActiveNextSibling = items[index2 - 1] && items[index2 - 1].key === activeKey;
|
|
@@ -16930,33 +16954,33 @@ const SideBar = (props) => {
|
|
|
16930
16954
|
return;
|
|
16931
16955
|
setActiveKey(key.toString());
|
|
16932
16956
|
},
|
|
16933
|
-
className: classNames__default["default"](`${classPrefix$
|
|
16934
|
-
[`${classPrefix$
|
|
16935
|
-
[`${classPrefix$
|
|
16957
|
+
className: classNames__default["default"](`${classPrefix$i}-item`, {
|
|
16958
|
+
[`${classPrefix$i}-item-active`]: active,
|
|
16959
|
+
[`${classPrefix$i}-item-disabled`]: item.props.disabled
|
|
16936
16960
|
})
|
|
16937
16961
|
}, React__default["default"].createElement(React__default["default"].Fragment, null, isActiveNextSibling && React__default["default"].createElement(Corner, {
|
|
16938
|
-
className: `${classPrefix$
|
|
16962
|
+
className: `${classPrefix$i}-item-corner ${classPrefix$i}-item-corner-top`
|
|
16939
16963
|
}), isActivePreviousSibling && React__default["default"].createElement(Corner, {
|
|
16940
|
-
className: `${classPrefix$
|
|
16964
|
+
className: `${classPrefix$i}-item-corner ${classPrefix$i}-item-corner-bottom`
|
|
16941
16965
|
})), React__default["default"].createElement(Badge, {
|
|
16942
16966
|
content: item.props.badge,
|
|
16943
|
-
className: `${classPrefix$
|
|
16967
|
+
className: `${classPrefix$i}-badge`
|
|
16944
16968
|
}, React__default["default"].createElement("div", {
|
|
16945
|
-
className: `${classPrefix$
|
|
16969
|
+
className: `${classPrefix$i}-item-title`
|
|
16946
16970
|
}, active && React__default["default"].createElement("div", {
|
|
16947
|
-
className: `${classPrefix$
|
|
16971
|
+
className: `${classPrefix$i}-item-highlight`
|
|
16948
16972
|
}), item.props.title))));
|
|
16949
16973
|
})), React__default["default"].createElement("div", {
|
|
16950
|
-
className: classNames__default["default"](`${classPrefix$
|
|
16974
|
+
className: classNames__default["default"](`${classPrefix$i}-extra-space`, isLastItemActive && `${classPrefix$i}-item-active-next-sibling`)
|
|
16951
16975
|
}, isLastItemActive && React__default["default"].createElement(Corner, {
|
|
16952
|
-
className: `${classPrefix$
|
|
16976
|
+
className: `${classPrefix$i}-item-corner ${classPrefix$i}-item-corner-top`
|
|
16953
16977
|
}))));
|
|
16954
16978
|
};
|
|
16955
16979
|
var index$4 = attachPropertiesToComponent(SideBar, {
|
|
16956
16980
|
Item: SideBarItem
|
|
16957
16981
|
});
|
|
16958
16982
|
var slider = "";
|
|
16959
|
-
const classPrefix$
|
|
16983
|
+
const classPrefix$h = `adm-slider`;
|
|
16960
16984
|
const Ticks = ({
|
|
16961
16985
|
points,
|
|
16962
16986
|
max,
|
|
@@ -16972,8 +16996,8 @@ const Ticks = ({
|
|
|
16972
16996
|
left: offset
|
|
16973
16997
|
};
|
|
16974
16998
|
const pointClassName = classNames__default["default"]({
|
|
16975
|
-
[`${classPrefix$
|
|
16976
|
-
[`${classPrefix$
|
|
16999
|
+
[`${classPrefix$h}-tick`]: true,
|
|
17000
|
+
[`${classPrefix$h}-tick-active`]: isActived
|
|
16977
17001
|
});
|
|
16978
17002
|
return React__default["default"].createElement("span", {
|
|
16979
17003
|
className: pointClassName,
|
|
@@ -16982,10 +17006,10 @@ const Ticks = ({
|
|
|
16982
17006
|
});
|
|
16983
17007
|
});
|
|
16984
17008
|
return React__default["default"].createElement("div", {
|
|
16985
|
-
className: `${classPrefix$
|
|
17009
|
+
className: `${classPrefix$h}-ticks`
|
|
16986
17010
|
}, elements);
|
|
16987
17011
|
};
|
|
16988
|
-
const classPrefix$
|
|
17012
|
+
const classPrefix$g = `adm-slider-mark`;
|
|
16989
17013
|
const Marks = ({
|
|
16990
17014
|
marks,
|
|
16991
17015
|
upperBound,
|
|
@@ -17002,8 +17026,8 @@ const Marks = ({
|
|
|
17002
17026
|
}
|
|
17003
17027
|
const isActive = point <= upperBound && point >= lowerBound;
|
|
17004
17028
|
const markClassName = classNames__default["default"]({
|
|
17005
|
-
[`${classPrefix$
|
|
17006
|
-
[`${classPrefix$
|
|
17029
|
+
[`${classPrefix$g}-text`]: true,
|
|
17030
|
+
[`${classPrefix$g}-text-active`]: isActive
|
|
17007
17031
|
});
|
|
17008
17032
|
const style = {
|
|
17009
17033
|
left: `${(point - min) / range * 100}%`
|
|
@@ -17015,33 +17039,35 @@ const Marks = ({
|
|
|
17015
17039
|
}, markPoint);
|
|
17016
17040
|
});
|
|
17017
17041
|
return React__default["default"].createElement("div", {
|
|
17018
|
-
className: classPrefix$
|
|
17042
|
+
className: classPrefix$g
|
|
17019
17043
|
}, elements);
|
|
17020
17044
|
};
|
|
17021
17045
|
const ThumbIcon = (props) => {
|
|
17022
17046
|
return withNativeProps(props, React__default["default"].createElement("svg", {
|
|
17023
|
-
viewBox: "0 0
|
|
17047
|
+
viewBox: "0 0 24 24",
|
|
17048
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
17024
17049
|
}, React__default["default"].createElement("g", {
|
|
17025
|
-
|
|
17026
|
-
strokeWidth: "1",
|
|
17027
|
-
fill: "none",
|
|
17050
|
+
fill: "currentColor",
|
|
17028
17051
|
fillRule: "evenodd"
|
|
17029
|
-
}, React__default["default"].createElement("
|
|
17030
|
-
|
|
17031
|
-
|
|
17032
|
-
|
|
17033
|
-
|
|
17034
|
-
}, React__default["default"].createElement("
|
|
17035
|
-
|
|
17036
|
-
|
|
17037
|
-
|
|
17038
|
-
|
|
17039
|
-
|
|
17040
|
-
|
|
17041
|
-
|
|
17042
|
-
|
|
17052
|
+
}, React__default["default"].createElement("rect", {
|
|
17053
|
+
x: 10,
|
|
17054
|
+
width: 4,
|
|
17055
|
+
height: 24,
|
|
17056
|
+
rx: 2
|
|
17057
|
+
}), React__default["default"].createElement("rect", {
|
|
17058
|
+
y: 4,
|
|
17059
|
+
width: 4,
|
|
17060
|
+
height: 16,
|
|
17061
|
+
rx: 2
|
|
17062
|
+
}), React__default["default"].createElement("rect", {
|
|
17063
|
+
x: 20,
|
|
17064
|
+
y: 4,
|
|
17065
|
+
width: 4,
|
|
17066
|
+
height: 16,
|
|
17067
|
+
rx: 2
|
|
17068
|
+
}))));
|
|
17043
17069
|
};
|
|
17044
|
-
const classPrefix$
|
|
17070
|
+
const classPrefix$f = `adm-slider`;
|
|
17045
17071
|
const Thumb = (props) => {
|
|
17046
17072
|
const {
|
|
17047
17073
|
value,
|
|
@@ -17058,6 +17084,7 @@ const Thumb = (props) => {
|
|
|
17058
17084
|
right: "auto"
|
|
17059
17085
|
};
|
|
17060
17086
|
};
|
|
17087
|
+
const [dragging, setDragging] = React$1.useState(false);
|
|
17061
17088
|
const bind = react.useDrag((state) => {
|
|
17062
17089
|
var _a;
|
|
17063
17090
|
if (disabled)
|
|
@@ -17071,29 +17098,39 @@ const Thumb = (props) => {
|
|
|
17071
17098
|
return;
|
|
17072
17099
|
const diff = x / Math.ceil(sliderOffsetWith) * (max - min);
|
|
17073
17100
|
onDrag(prevValue.current + diff, state.first, state.last);
|
|
17101
|
+
setDragging(!state.last);
|
|
17074
17102
|
}, {
|
|
17075
17103
|
axis: "x",
|
|
17076
17104
|
pointer: {
|
|
17077
17105
|
touch: true
|
|
17078
17106
|
}
|
|
17079
17107
|
});
|
|
17108
|
+
const renderPopoverContent = typeof props.popover === "function" ? props.popover : props.popover ? (value2) => value2.toString() : null;
|
|
17109
|
+
const thumbElement = React__default["default"].createElement("div", {
|
|
17110
|
+
className: `${classPrefix$f}-thumb`
|
|
17111
|
+
}, icon ? icon : React__default["default"].createElement(ThumbIcon, {
|
|
17112
|
+
className: `${classPrefix$f}-thumb-icon`
|
|
17113
|
+
}));
|
|
17080
17114
|
return React__default["default"].createElement("div", Object.assign({
|
|
17081
|
-
className: `${classPrefix$
|
|
17115
|
+
className: `${classPrefix$f}-thumb-container`,
|
|
17082
17116
|
style: currentPosition()
|
|
17083
|
-
}, bind()), React__default["default"].createElement(
|
|
17084
|
-
|
|
17085
|
-
|
|
17086
|
-
|
|
17087
|
-
|
|
17117
|
+
}, bind()), renderPopoverContent ? React__default["default"].createElement(Popover$1, {
|
|
17118
|
+
content: renderPopoverContent(value),
|
|
17119
|
+
placement: "top",
|
|
17120
|
+
visible: dragging,
|
|
17121
|
+
getContainer: null,
|
|
17122
|
+
mode: "dark"
|
|
17123
|
+
}, thumbElement) : thumbElement);
|
|
17088
17124
|
};
|
|
17089
|
-
const classPrefix$
|
|
17125
|
+
const classPrefix$e = `adm-slider`;
|
|
17090
17126
|
const defaultProps$d = {
|
|
17091
17127
|
min: 0,
|
|
17092
17128
|
max: 100,
|
|
17093
17129
|
step: 1,
|
|
17094
17130
|
ticks: false,
|
|
17095
17131
|
range: false,
|
|
17096
|
-
disabled: false
|
|
17132
|
+
disabled: false,
|
|
17133
|
+
popover: false
|
|
17097
17134
|
};
|
|
17098
17135
|
const Slider = (p2) => {
|
|
17099
17136
|
var _a;
|
|
@@ -17188,13 +17225,14 @@ const Slider = (p2) => {
|
|
|
17188
17225
|
const valueBeforeDragRef = React$1.useRef();
|
|
17189
17226
|
const renderThumb = (index2) => {
|
|
17190
17227
|
return React__default["default"].createElement(Thumb, {
|
|
17191
|
-
icon,
|
|
17192
17228
|
key: index2,
|
|
17193
17229
|
value: sliderValue[index2],
|
|
17194
17230
|
min,
|
|
17195
17231
|
max,
|
|
17196
17232
|
disabled,
|
|
17197
17233
|
trackRef,
|
|
17234
|
+
icon,
|
|
17235
|
+
popover: props.popover,
|
|
17198
17236
|
onDrag: (position, first, last) => {
|
|
17199
17237
|
if (first) {
|
|
17200
17238
|
dragLockRef.current += 1;
|
|
@@ -17217,18 +17255,18 @@ const Slider = (p2) => {
|
|
|
17217
17255
|
});
|
|
17218
17256
|
};
|
|
17219
17257
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
17220
|
-
className: classNames__default["default"](classPrefix$
|
|
17221
|
-
[`${classPrefix$
|
|
17258
|
+
className: classNames__default["default"](classPrefix$e, {
|
|
17259
|
+
[`${classPrefix$e}-disabled`]: disabled
|
|
17222
17260
|
})
|
|
17223
17261
|
}, React__default["default"].createElement("div", {
|
|
17224
|
-
className: `${classPrefix$
|
|
17262
|
+
className: `${classPrefix$e}-track-container`,
|
|
17225
17263
|
onClick: onTrackClick
|
|
17226
17264
|
}, React__default["default"].createElement("div", {
|
|
17227
|
-
className: `${classPrefix$
|
|
17265
|
+
className: `${classPrefix$e}-track`,
|
|
17228
17266
|
onClick: onTrackClick,
|
|
17229
17267
|
ref: trackRef
|
|
17230
17268
|
}, React__default["default"].createElement("div", {
|
|
17231
|
-
className: `${classPrefix$
|
|
17269
|
+
className: `${classPrefix$e}-fill`,
|
|
17232
17270
|
style: {
|
|
17233
17271
|
width: fillSize,
|
|
17234
17272
|
left: fillStart
|
|
@@ -17248,7 +17286,7 @@ const Slider = (p2) => {
|
|
|
17248
17286
|
})));
|
|
17249
17287
|
};
|
|
17250
17288
|
var stepper = "";
|
|
17251
|
-
const classPrefix$
|
|
17289
|
+
const classPrefix$d = `adm-stepper`;
|
|
17252
17290
|
const defaultProps$c = {
|
|
17253
17291
|
defaultValue: 0,
|
|
17254
17292
|
step: 1,
|
|
@@ -17326,20 +17364,20 @@ const Stepper = (p2) => {
|
|
|
17326
17364
|
return false;
|
|
17327
17365
|
};
|
|
17328
17366
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
17329
|
-
className: classNames__default["default"](classPrefix$
|
|
17330
|
-
[`${classPrefix$
|
|
17367
|
+
className: classNames__default["default"](classPrefix$d, {
|
|
17368
|
+
[`${classPrefix$d}-active`]: hasFocus
|
|
17331
17369
|
})
|
|
17332
17370
|
}, React__default["default"].createElement(Button, {
|
|
17333
|
-
className: `${classPrefix$
|
|
17371
|
+
className: `${classPrefix$d}-minus`,
|
|
17334
17372
|
onClick: handleMinus,
|
|
17335
17373
|
disabled: minusDisabled(),
|
|
17336
17374
|
fill: "none",
|
|
17337
17375
|
shape: "rectangular",
|
|
17338
17376
|
color: "primary"
|
|
17339
17377
|
}, React__default["default"].createElement(antdMobileIcons.MinusOutline, null)), React__default["default"].createElement("div", {
|
|
17340
|
-
className: `${classPrefix$
|
|
17378
|
+
className: `${classPrefix$d}-middle`
|
|
17341
17379
|
}, React__default["default"].createElement(Input, {
|
|
17342
|
-
className: `${classPrefix$
|
|
17380
|
+
className: `${classPrefix$d}-input`,
|
|
17343
17381
|
onFocus: (e2) => {
|
|
17344
17382
|
var _a;
|
|
17345
17383
|
setHasFocus(true);
|
|
@@ -17357,7 +17395,7 @@ const Stepper = (p2) => {
|
|
|
17357
17395
|
},
|
|
17358
17396
|
readOnly: inputReadOnly
|
|
17359
17397
|
})), React__default["default"].createElement(Button, {
|
|
17360
|
-
className: `${classPrefix$
|
|
17398
|
+
className: `${classPrefix$d}-plus`,
|
|
17361
17399
|
onClick: handlePlus,
|
|
17362
17400
|
disabled: plusDisabled(),
|
|
17363
17401
|
fill: "none",
|
|
@@ -17380,7 +17418,7 @@ function convertTextToValue(text) {
|
|
|
17380
17418
|
return parseFloat(text);
|
|
17381
17419
|
}
|
|
17382
17420
|
var steps = "";
|
|
17383
|
-
const classPrefix$
|
|
17421
|
+
const classPrefix$c = `adm-step`;
|
|
17384
17422
|
const Step = (props) => {
|
|
17385
17423
|
const {
|
|
17386
17424
|
title,
|
|
@@ -17389,20 +17427,20 @@ const Step = (props) => {
|
|
|
17389
17427
|
status = "wait"
|
|
17390
17428
|
} = props;
|
|
17391
17429
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
17392
|
-
className: classNames__default["default"](`${classPrefix$
|
|
17430
|
+
className: classNames__default["default"](`${classPrefix$c}`, `${classPrefix$c}-status-${status}`)
|
|
17393
17431
|
}, React__default["default"].createElement("div", {
|
|
17394
|
-
className: `${classPrefix$
|
|
17432
|
+
className: `${classPrefix$c}-indicator`
|
|
17395
17433
|
}, React__default["default"].createElement("div", {
|
|
17396
|
-
className: `${classPrefix$
|
|
17434
|
+
className: `${classPrefix$c}-icon-container`
|
|
17397
17435
|
}, icon)), React__default["default"].createElement("div", {
|
|
17398
|
-
className: `${classPrefix$
|
|
17436
|
+
className: `${classPrefix$c}-content`
|
|
17399
17437
|
}, React__default["default"].createElement("div", {
|
|
17400
|
-
className: `${classPrefix$
|
|
17438
|
+
className: `${classPrefix$c}-title`
|
|
17401
17439
|
}, title), !!description && React__default["default"].createElement("div", {
|
|
17402
|
-
className: `${classPrefix$
|
|
17440
|
+
className: `${classPrefix$c}-description`
|
|
17403
17441
|
}, description))));
|
|
17404
17442
|
};
|
|
17405
|
-
const classPrefix$
|
|
17443
|
+
const classPrefix$b = `adm-steps`;
|
|
17406
17444
|
const stepClassPrefix = `adm-step`;
|
|
17407
17445
|
const defaultIcon = React__default["default"].createElement("span", {
|
|
17408
17446
|
className: `${stepClassPrefix}-icon-dot`
|
|
@@ -17417,7 +17455,7 @@ const Steps = (p2) => {
|
|
|
17417
17455
|
direction,
|
|
17418
17456
|
current
|
|
17419
17457
|
} = props;
|
|
17420
|
-
const classString = classNames__default["default"](classPrefix$
|
|
17458
|
+
const classString = classNames__default["default"](classPrefix$b, `${classPrefix$b}-${direction}`);
|
|
17421
17459
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
17422
17460
|
className: classString
|
|
17423
17461
|
}, React__default["default"].Children.map(props.children, (child, index2) => {
|
|
@@ -17443,6 +17481,7 @@ var index$3 = attachPropertiesToComponent(Steps, {
|
|
|
17443
17481
|
Step
|
|
17444
17482
|
});
|
|
17445
17483
|
var swipeAction = "";
|
|
17484
|
+
const classPrefix$a = `adm-swipe-action`;
|
|
17446
17485
|
const defaultProps$a = {
|
|
17447
17486
|
rightActions: [],
|
|
17448
17487
|
leftActions: [],
|
|
@@ -17560,7 +17599,7 @@ const SwipeAction = React$1.forwardRef((p2, ref) => {
|
|
|
17560
17599
|
const color = (_a = action.color) !== null && _a !== void 0 ? _a : "light";
|
|
17561
17600
|
return React__default["default"].createElement(Button, {
|
|
17562
17601
|
key: action.key,
|
|
17563
|
-
className:
|
|
17602
|
+
className: `${classPrefix$a}-action-button`,
|
|
17564
17603
|
style: {
|
|
17565
17604
|
"--background-color": (_b = colorRecord$1[color]) !== null && _b !== void 0 ? _b : color
|
|
17566
17605
|
},
|
|
@@ -17575,7 +17614,7 @@ const SwipeAction = React$1.forwardRef((p2, ref) => {
|
|
|
17575
17614
|
}, action.text);
|
|
17576
17615
|
}
|
|
17577
17616
|
return withNativeProps(props, React__default["default"].createElement("div", Object.assign({
|
|
17578
|
-
className:
|
|
17617
|
+
className: classPrefix$a
|
|
17579
17618
|
}, bind(), {
|
|
17580
17619
|
ref: rootRef,
|
|
17581
17620
|
onClickCapture: (e2) => {
|
|
@@ -17585,15 +17624,15 @@ const SwipeAction = React$1.forwardRef((p2, ref) => {
|
|
|
17585
17624
|
}
|
|
17586
17625
|
}
|
|
17587
17626
|
}), React__default["default"].createElement(web.animated.div, {
|
|
17588
|
-
className:
|
|
17627
|
+
className: `${classPrefix$a}-track`,
|
|
17589
17628
|
style: {
|
|
17590
17629
|
x
|
|
17591
17630
|
}
|
|
17592
17631
|
}, withStopPropagation(props.stopPropagation, React__default["default"].createElement("div", {
|
|
17593
|
-
className:
|
|
17632
|
+
className: `${classPrefix$a}-actions ${classPrefix$a}-actions-left`,
|
|
17594
17633
|
ref: leftRef
|
|
17595
17634
|
}, props.leftActions.map(renderAction))), React__default["default"].createElement("div", {
|
|
17596
|
-
className:
|
|
17635
|
+
className: `${classPrefix$a}-content`,
|
|
17597
17636
|
onClickCapture: (e2) => {
|
|
17598
17637
|
if (x.goal !== 0) {
|
|
17599
17638
|
e2.preventDefault();
|
|
@@ -17608,7 +17647,7 @@ const SwipeAction = React$1.forwardRef((p2, ref) => {
|
|
|
17608
17647
|
pointerEvents: x.to((v) => v !== 0 && x.goal !== 0 ? "none" : "auto")
|
|
17609
17648
|
}
|
|
17610
17649
|
}, props.children)), withStopPropagation(props.stopPropagation, React__default["default"].createElement("div", {
|
|
17611
|
-
className:
|
|
17650
|
+
className: `${classPrefix$a}-actions ${classPrefix$a}-actions-right`,
|
|
17612
17651
|
ref: rightRef
|
|
17613
17652
|
}, props.rightActions.map(renderAction))))));
|
|
17614
17653
|
});
|
|
@@ -17635,6 +17674,7 @@ function useRefState(initialState) {
|
|
|
17635
17674
|
}, [state]);
|
|
17636
17675
|
return [state, setState, ref];
|
|
17637
17676
|
}
|
|
17677
|
+
const classPrefix$9 = `adm-swiper`;
|
|
17638
17678
|
const defaultProps$9 = {
|
|
17639
17679
|
defaultIndex: 0,
|
|
17640
17680
|
allowTouchMove: true,
|
|
@@ -17819,10 +17859,10 @@ const Swiper = React$1.forwardRef(stagedComponents.staged((p2, ref) => {
|
|
|
17819
17859
|
function renderTrackInner() {
|
|
17820
17860
|
if (loop) {
|
|
17821
17861
|
return React__default["default"].createElement("div", {
|
|
17822
|
-
className:
|
|
17862
|
+
className: `${classPrefix$9}-track-inner`
|
|
17823
17863
|
}, React__default["default"].Children.map(validChildren, (child, index2) => {
|
|
17824
17864
|
return React__default["default"].createElement(web.animated.div, {
|
|
17825
|
-
className:
|
|
17865
|
+
className: `${classPrefix$9}-slide`,
|
|
17826
17866
|
style: {
|
|
17827
17867
|
[isVertical ? "y" : "x"]: position.to((position2) => {
|
|
17828
17868
|
let finalPosition = -position2 + index2 * 100;
|
|
@@ -17837,13 +17877,13 @@ const Swiper = React$1.forwardRef(stagedComponents.staged((p2, ref) => {
|
|
|
17837
17877
|
}));
|
|
17838
17878
|
} else {
|
|
17839
17879
|
return React__default["default"].createElement(web.animated.div, {
|
|
17840
|
-
className:
|
|
17880
|
+
className: `${classPrefix$9}-track-inner`,
|
|
17841
17881
|
style: {
|
|
17842
17882
|
[isVertical ? "y" : "x"]: position.to((position2) => `${-position2}%`)
|
|
17843
17883
|
}
|
|
17844
17884
|
}, React__default["default"].Children.map(validChildren, (child) => {
|
|
17845
17885
|
return React__default["default"].createElement("div", {
|
|
17846
|
-
className:
|
|
17886
|
+
className: `${classPrefix$9}-slide`
|
|
17847
17887
|
}, child);
|
|
17848
17888
|
}));
|
|
17849
17889
|
}
|
|
@@ -17853,12 +17893,12 @@ const Swiper = React$1.forwardRef(stagedComponents.staged((p2, ref) => {
|
|
|
17853
17893
|
"--track-offset": `${props.trackOffset}%`
|
|
17854
17894
|
};
|
|
17855
17895
|
return withNativeProps(props, React__default["default"].createElement("div", {
|
|
17856
|
-
className: classNames__default["default"](
|
|
17896
|
+
className: classNames__default["default"](classPrefix$9, `${classPrefix$9}-${props.direction}`),
|
|
17857
17897
|
style
|
|
17858
17898
|
}, React__default["default"].createElement("div", Object.assign({
|
|
17859
17899
|
ref: trackRef,
|
|
17860
|
-
className: classNames__default["default"](
|
|
17861
|
-
|
|
17900
|
+
className: classNames__default["default"](`${classPrefix$9}-track`, {
|
|
17901
|
+
[`${classPrefix$9}-track-allow-touch-move`]: props.allowTouchMove
|
|
17862
17902
|
}),
|
|
17863
17903
|
onClickCapture: (e2) => {
|
|
17864
17904
|
if (draggingRef.current) {
|
|
@@ -17866,7 +17906,7 @@ const Swiper = React$1.forwardRef(stagedComponents.staged((p2, ref) => {
|
|
|
17866
17906
|
}
|
|
17867
17907
|
}
|
|
17868
17908
|
}, props.allowTouchMove ? bind() : {}), renderTrackInner()), props.indicator === void 0 ? React__default["default"].createElement("div", {
|
|
17869
|
-
className:
|
|
17909
|
+
className: `${classPrefix$9}-indicator`
|
|
17870
17910
|
}, React__default["default"].createElement(PageIndicator, Object.assign({}, props.indicatorProps, {
|
|
17871
17911
|
total: count,
|
|
17872
17912
|
current,
|
|
@@ -17998,7 +18038,7 @@ const TabBar = (p2) => {
|
|
|
17998
18038
|
className: `${classPrefix$7}-item-icon`
|
|
17999
18039
|
}, typeof item.props.icon === "function" ? item.props.icon(active) : item.props.icon);
|
|
18000
18040
|
const titleElement = item.props.title && React__default["default"].createElement("div", {
|
|
18001
|
-
className: `${classPrefix$7}-item-title`
|
|
18041
|
+
className: classNames__default["default"](`${classPrefix$7}-item-title`, Boolean(iconElement) && `${classPrefix$7}-item-title-with-icon`)
|
|
18002
18042
|
}, typeof item.props.title === "function" ? item.props.title(active) : item.props.title);
|
|
18003
18043
|
if (iconElement) {
|
|
18004
18044
|
return React__default["default"].createElement(React__default["default"].Fragment, null, React__default["default"].createElement(Badge, {
|
|
@@ -18855,6 +18895,7 @@ exports.CascadePicker = index$f;
|
|
|
18855
18895
|
exports.CascadePickerView = CascadePickerView;
|
|
18856
18896
|
exports.Cascader = index$e;
|
|
18857
18897
|
exports.CascaderView = CascaderView;
|
|
18898
|
+
exports.CenterPopup = CenterPopup;
|
|
18858
18899
|
exports.CheckList = CheckList;
|
|
18859
18900
|
exports.Checkbox = Checkbox;
|
|
18860
18901
|
exports.Collapse = index$d;
|