antd-mobile 5.25.1 → 5.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2x/README.md +6 -22
- package/2x/bundle/antd-mobile.cjs.development.js +1342 -1142
- package/2x/bundle/antd-mobile.cjs.js +9 -8
- package/2x/bundle/antd-mobile.es.development.js +1186 -986
- package/2x/bundle/antd-mobile.es.js +8576 -8366
- package/2x/bundle/antd-mobile.umd.development.js +1342 -1142
- package/2x/bundle/antd-mobile.umd.js +9 -8
- package/2x/bundle/style.css +29 -5
- package/2x/cjs/components/action-sheet/index.d.ts +0 -1
- package/2x/cjs/components/badge/index.d.ts +0 -1
- package/2x/cjs/components/calendar/calendar.js +9 -1
- package/2x/cjs/components/capsule-tabs/index.d.ts +0 -1
- package/2x/cjs/components/cascade-picker/index.d.ts +0 -1
- package/2x/cjs/components/cascader/index.d.ts +0 -1
- package/2x/cjs/components/cascader-view/index.d.ts +0 -1
- package/2x/cjs/components/check-list/index.d.ts +0 -1
- package/2x/cjs/components/checkbox/group-context.d.ts +0 -1
- package/2x/cjs/components/checkbox/index.d.ts +0 -1
- package/2x/cjs/components/collapse/index.d.ts +0 -1
- package/2x/cjs/components/date-picker/date-picker-date-utils.d.ts +2 -3
- package/2x/cjs/components/date-picker/date-picker-date-utils.js +14 -12
- package/2x/cjs/components/date-picker/date-picker-utils.d.ts +2 -3
- package/2x/cjs/components/date-picker/date-picker-utils.js +11 -12
- package/2x/cjs/components/date-picker/date-picker-week-utils.d.ts +0 -1
- package/2x/cjs/components/date-picker/date-picker-week-utils.js +0 -4
- package/2x/cjs/components/date-picker/date-picker.d.ts +20 -16
- package/2x/cjs/components/date-picker/date-picker.js +12 -3
- package/2x/cjs/components/date-picker/index.d.ts +10 -9
- package/2x/cjs/components/date-picker/index.js +3 -1
- package/2x/cjs/components/date-picker/prompt.d.ts +2 -1
- package/2x/cjs/components/date-picker/util.d.ts +4 -0
- package/2x/cjs/components/date-picker/util.js +8 -0
- package/2x/cjs/components/date-picker-view/date-picker-view.d.ts +2 -1
- package/2x/cjs/components/date-picker-view/date-picker-view.js +7 -3
- package/2x/cjs/components/date-picker-view/useRenderLabel.d.ts +2 -0
- package/2x/cjs/components/date-picker-view/useRenderLabel.js +29 -0
- package/2x/cjs/components/dialog/index.d.ts +0 -1
- package/2x/cjs/components/dropdown/index.d.ts +0 -1
- package/2x/cjs/components/error-block/error-block.d.ts +0 -1
- package/2x/cjs/components/error-block/images/busy.d.ts +0 -1
- package/2x/cjs/components/error-block/images/default.d.ts +0 -1
- package/2x/cjs/components/error-block/images/disconnected.d.ts +0 -1
- package/2x/cjs/components/error-block/images/empty.d.ts +0 -1
- package/2x/cjs/components/floating-bubble/floating-bubble.d.ts +8 -0
- package/2x/cjs/components/floating-bubble/floating-bubble.js +25 -5
- package/2x/cjs/components/form/form.d.ts +1 -1
- package/2x/cjs/components/form/index.d.ts +0 -1
- package/2x/cjs/components/grid/index.d.ts +0 -1
- package/2x/cjs/components/image-uploader/image-uploader.css +16 -1
- package/2x/cjs/components/image-uploader/image-uploader.d.ts +4 -1
- package/2x/cjs/components/image-uploader/image-uploader.js +52 -12
- package/2x/cjs/components/image-uploader/preview-item.d.ts +2 -1
- package/2x/cjs/components/image-uploader/preview-item.js +5 -7
- package/2x/cjs/components/image-viewer/index.d.ts +0 -1
- package/2x/cjs/components/index-bar/index.d.ts +0 -1
- package/2x/cjs/components/jumbo-tabs/index.d.ts +0 -1
- package/2x/cjs/components/list/index.d.ts +0 -1
- package/2x/cjs/components/mask/mask.d.ts +1 -1
- package/2x/cjs/components/mask/mask.js +6 -2
- package/2x/cjs/components/modal/index.d.ts +0 -1
- package/2x/cjs/components/notice-bar/notice-bar.css +13 -4
- package/2x/cjs/components/notice-bar/notice-bar.d.ts +10 -8
- package/2x/cjs/components/notice-bar/notice-bar.js +5 -2
- package/2x/cjs/components/popover/index.d.ts +0 -1
- package/2x/cjs/components/radio/group-context.d.ts +0 -1
- package/2x/cjs/components/radio/index.d.ts +0 -1
- package/2x/cjs/components/result-page/index.d.ts +0 -1
- package/2x/cjs/components/side-bar/index.d.ts +0 -1
- package/2x/cjs/components/skeleton/index.d.ts +0 -1
- package/2x/cjs/components/slider/slider.js +8 -3
- package/2x/cjs/components/stepper/stepper.d.ts +23 -14
- package/2x/cjs/components/stepper/stepper.js +111 -54
- package/2x/cjs/components/steps/index.d.ts +0 -1
- package/2x/cjs/components/swiper/index.d.ts +0 -1
- package/2x/cjs/components/tab-bar/index.d.ts +0 -1
- package/2x/cjs/components/tabs/index.d.ts +0 -1
- package/2x/cjs/components/tree-select/index.d.ts +0 -1
- package/2x/cjs/components/water-mark/water-mark.d.ts +1 -1
- package/2x/cjs/components/water-mark/water-mark.js +5 -1
- package/2x/cjs/locales/base.d.ts +3 -0
- package/2x/cjs/locales/base.js +3 -0
- package/2x/cjs/locales/en-US.d.ts +3 -0
- package/2x/cjs/locales/es-ES.d.ts +3 -0
- package/2x/cjs/locales/fa-IR.d.ts +3 -0
- package/2x/cjs/locales/fr-FR.d.ts +3 -0
- package/2x/cjs/locales/id-ID.d.ts +3 -0
- package/2x/cjs/locales/ja-JP.d.ts +3 -0
- package/2x/cjs/locales/kk-KZ.d.ts +3 -0
- package/2x/cjs/locales/ko-KR.d.ts +3 -0
- package/2x/cjs/locales/zh-CN.d.ts +3 -0
- package/2x/cjs/locales/zh-CN.js +3 -0
- package/2x/cjs/locales/zh-HK.d.ts +3 -0
- package/2x/cjs/locales/zh-TW.d.ts +3 -0
- package/2x/cjs/utils/use-isomorphic-update-layout-effect.d.ts +0 -1
- package/2x/cjs/utils/use-ref-state.d.ts +0 -1
- package/2x/es/components/action-sheet/index.d.ts +0 -1
- package/2x/es/components/badge/index.d.ts +0 -1
- package/2x/es/components/calendar/calendar.js +9 -1
- package/2x/es/components/capsule-tabs/index.d.ts +0 -1
- package/2x/es/components/cascade-picker/index.d.ts +0 -1
- package/2x/es/components/cascader/index.d.ts +0 -1
- package/2x/es/components/cascader-view/index.d.ts +0 -1
- package/2x/es/components/check-list/index.d.ts +0 -1
- package/2x/es/components/checkbox/group-context.d.ts +0 -1
- package/2x/es/components/checkbox/index.d.ts +0 -1
- package/2x/es/components/collapse/index.d.ts +0 -1
- package/2x/es/components/date-picker/date-picker-date-utils.d.ts +2 -3
- package/2x/es/components/date-picker/date-picker-date-utils.js +14 -11
- package/2x/es/components/date-picker/date-picker-utils.d.ts +2 -3
- package/2x/es/components/date-picker/date-picker-utils.js +9 -9
- package/2x/es/components/date-picker/date-picker-week-utils.d.ts +0 -1
- package/2x/es/components/date-picker/date-picker-week-utils.js +0 -3
- package/2x/es/components/date-picker/date-picker.d.ts +20 -16
- package/2x/es/components/date-picker/date-picker.js +13 -4
- package/2x/es/components/date-picker/index.d.ts +10 -9
- package/2x/es/components/date-picker/index.js +3 -1
- package/2x/es/components/date-picker/prompt.d.ts +2 -1
- package/2x/es/components/date-picker/util.d.ts +4 -0
- package/2x/es/components/date-picker/util.js +1 -0
- package/2x/es/components/date-picker-view/date-picker-view.d.ts +2 -1
- package/2x/es/components/date-picker-view/date-picker-view.js +8 -4
- package/2x/es/components/date-picker-view/useRenderLabel.d.ts +2 -0
- package/2x/es/components/date-picker-view/useRenderLabel.js +23 -0
- package/2x/es/components/dialog/index.d.ts +0 -1
- package/2x/es/components/dropdown/index.d.ts +0 -1
- package/2x/es/components/error-block/error-block.d.ts +0 -1
- package/2x/es/components/error-block/images/busy.d.ts +0 -1
- package/2x/es/components/error-block/images/default.d.ts +0 -1
- package/2x/es/components/error-block/images/disconnected.d.ts +0 -1
- package/2x/es/components/error-block/images/empty.d.ts +0 -1
- package/2x/es/components/floating-bubble/floating-bubble.d.ts +8 -0
- package/2x/es/components/floating-bubble/floating-bubble.js +26 -6
- package/2x/es/components/form/form.d.ts +1 -1
- package/2x/es/components/form/index.d.ts +0 -1
- package/2x/es/components/grid/index.d.ts +0 -1
- package/2x/es/components/image-uploader/image-uploader.css +16 -1
- package/2x/es/components/image-uploader/image-uploader.d.ts +4 -1
- package/2x/es/components/image-uploader/image-uploader.js +54 -14
- package/2x/es/components/image-uploader/preview-item.d.ts +2 -1
- package/2x/es/components/image-uploader/preview-item.js +6 -8
- package/2x/es/components/image-viewer/index.d.ts +0 -1
- package/2x/es/components/index-bar/index.d.ts +0 -1
- package/2x/es/components/jumbo-tabs/index.d.ts +0 -1
- package/2x/es/components/list/index.d.ts +0 -1
- package/2x/es/components/mask/mask.d.ts +1 -1
- package/2x/es/components/mask/mask.js +6 -2
- package/2x/es/components/modal/index.d.ts +0 -1
- package/2x/es/components/notice-bar/notice-bar.css +13 -4
- package/2x/es/components/notice-bar/notice-bar.d.ts +10 -8
- package/2x/es/components/notice-bar/notice-bar.js +5 -2
- package/2x/es/components/popover/index.d.ts +0 -1
- package/2x/es/components/radio/group-context.d.ts +0 -1
- package/2x/es/components/radio/index.d.ts +0 -1
- package/2x/es/components/result-page/index.d.ts +0 -1
- package/2x/es/components/side-bar/index.d.ts +0 -1
- package/2x/es/components/skeleton/index.d.ts +0 -1
- package/2x/es/components/slider/slider.js +8 -3
- package/2x/es/components/stepper/stepper.d.ts +23 -14
- package/2x/es/components/stepper/stepper.js +110 -52
- package/2x/es/components/steps/index.d.ts +0 -1
- package/2x/es/components/swiper/index.d.ts +0 -1
- package/2x/es/components/tab-bar/index.d.ts +0 -1
- package/2x/es/components/tabs/index.d.ts +0 -1
- package/2x/es/components/tree-select/index.d.ts +0 -1
- package/2x/es/components/water-mark/water-mark.d.ts +1 -1
- package/2x/es/components/water-mark/water-mark.js +5 -1
- package/2x/es/locales/base.d.ts +3 -0
- package/2x/es/locales/base.js +3 -0
- package/2x/es/locales/en-US.d.ts +3 -0
- package/2x/es/locales/es-ES.d.ts +3 -0
- package/2x/es/locales/fa-IR.d.ts +3 -0
- package/2x/es/locales/fr-FR.d.ts +3 -0
- package/2x/es/locales/id-ID.d.ts +3 -0
- package/2x/es/locales/ja-JP.d.ts +3 -0
- package/2x/es/locales/kk-KZ.d.ts +3 -0
- package/2x/es/locales/ko-KR.d.ts +3 -0
- package/2x/es/locales/zh-CN.d.ts +3 -0
- package/2x/es/locales/zh-CN.js +3 -0
- package/2x/es/locales/zh-HK.d.ts +3 -0
- package/2x/es/locales/zh-TW.d.ts +3 -0
- package/2x/es/utils/use-isomorphic-update-layout-effect.d.ts +0 -1
- package/2x/es/utils/use-ref-state.d.ts +0 -1
- package/2x/package.json +11 -10
- package/README.md +6 -22
- package/bundle/antd-mobile.cjs.development.js +1342 -1142
- package/bundle/antd-mobile.cjs.js +9 -8
- package/bundle/antd-mobile.compatible.umd.js +1 -1
- package/bundle/antd-mobile.es.development.js +1186 -986
- package/bundle/antd-mobile.es.js +8576 -8366
- package/bundle/antd-mobile.umd.development.js +1342 -1142
- package/bundle/antd-mobile.umd.js +9 -8
- package/bundle/style.css +1 -1
- package/cjs/components/action-sheet/index.d.ts +0 -1
- package/cjs/components/badge/index.d.ts +0 -1
- package/cjs/components/calendar/calendar.js +9 -1
- package/cjs/components/capsule-tabs/index.d.ts +0 -1
- package/cjs/components/cascade-picker/index.d.ts +0 -1
- package/cjs/components/cascader/index.d.ts +0 -1
- package/cjs/components/cascader-view/index.d.ts +0 -1
- package/cjs/components/check-list/index.d.ts +0 -1
- package/cjs/components/checkbox/group-context.d.ts +0 -1
- package/cjs/components/checkbox/index.d.ts +0 -1
- package/cjs/components/collapse/index.d.ts +0 -1
- package/cjs/components/date-picker/date-picker-date-utils.d.ts +2 -3
- package/cjs/components/date-picker/date-picker-date-utils.js +14 -12
- package/cjs/components/date-picker/date-picker-utils.d.ts +2 -3
- package/cjs/components/date-picker/date-picker-utils.js +11 -12
- package/cjs/components/date-picker/date-picker-week-utils.d.ts +0 -1
- package/cjs/components/date-picker/date-picker-week-utils.js +0 -4
- package/cjs/components/date-picker/date-picker.d.ts +20 -16
- package/cjs/components/date-picker/date-picker.js +12 -3
- package/cjs/components/date-picker/index.d.ts +10 -9
- package/cjs/components/date-picker/index.js +3 -1
- package/cjs/components/date-picker/prompt.d.ts +2 -1
- package/cjs/components/date-picker/util.d.ts +4 -0
- package/cjs/components/date-picker/util.js +8 -0
- package/cjs/components/date-picker-view/date-picker-view.d.ts +2 -1
- package/cjs/components/date-picker-view/date-picker-view.js +7 -3
- package/cjs/components/date-picker-view/useRenderLabel.d.ts +2 -0
- package/cjs/components/date-picker-view/useRenderLabel.js +29 -0
- package/cjs/components/dialog/index.d.ts +0 -1
- package/cjs/components/dropdown/index.d.ts +0 -1
- package/cjs/components/error-block/error-block.d.ts +0 -1
- package/cjs/components/error-block/images/busy.d.ts +0 -1
- package/cjs/components/error-block/images/default.d.ts +0 -1
- package/cjs/components/error-block/images/disconnected.d.ts +0 -1
- package/cjs/components/error-block/images/empty.d.ts +0 -1
- package/cjs/components/floating-bubble/floating-bubble.d.ts +8 -0
- package/cjs/components/floating-bubble/floating-bubble.js +25 -5
- package/cjs/components/form/form.d.ts +1 -1
- package/cjs/components/form/index.d.ts +0 -1
- package/cjs/components/grid/index.d.ts +0 -1
- package/cjs/components/image-uploader/image-uploader.css +15 -1
- package/cjs/components/image-uploader/image-uploader.d.ts +4 -1
- package/cjs/components/image-uploader/image-uploader.js +52 -12
- package/cjs/components/image-uploader/preview-item.d.ts +2 -1
- package/cjs/components/image-uploader/preview-item.js +5 -7
- package/cjs/components/image-viewer/index.d.ts +0 -1
- package/cjs/components/index-bar/index.d.ts +0 -1
- package/cjs/components/jumbo-tabs/index.d.ts +0 -1
- package/cjs/components/list/index.d.ts +0 -1
- package/cjs/components/mask/mask.d.ts +1 -1
- package/cjs/components/mask/mask.js +6 -2
- package/cjs/components/modal/index.d.ts +0 -1
- package/cjs/components/notice-bar/notice-bar.css +11 -4
- package/cjs/components/notice-bar/notice-bar.d.ts +10 -8
- package/cjs/components/notice-bar/notice-bar.js +5 -2
- package/cjs/components/popover/index.d.ts +0 -1
- package/cjs/components/radio/group-context.d.ts +0 -1
- package/cjs/components/radio/index.d.ts +0 -1
- package/cjs/components/result-page/index.d.ts +0 -1
- package/cjs/components/side-bar/index.d.ts +0 -1
- package/cjs/components/skeleton/index.d.ts +0 -1
- package/cjs/components/slider/slider.js +8 -3
- package/cjs/components/stepper/stepper.d.ts +23 -14
- package/cjs/components/stepper/stepper.js +111 -54
- package/cjs/components/steps/index.d.ts +0 -1
- package/cjs/components/swiper/index.d.ts +0 -1
- package/cjs/components/tab-bar/index.d.ts +0 -1
- package/cjs/components/tabs/index.d.ts +0 -1
- package/cjs/components/tree-select/index.d.ts +0 -1
- package/cjs/components/water-mark/water-mark.d.ts +1 -1
- package/cjs/components/water-mark/water-mark.js +5 -1
- package/cjs/locales/base.d.ts +3 -0
- package/cjs/locales/base.js +3 -0
- package/cjs/locales/en-US.d.ts +3 -0
- package/cjs/locales/es-ES.d.ts +3 -0
- package/cjs/locales/fa-IR.d.ts +3 -0
- package/cjs/locales/fr-FR.d.ts +3 -0
- package/cjs/locales/id-ID.d.ts +3 -0
- package/cjs/locales/ja-JP.d.ts +3 -0
- package/cjs/locales/kk-KZ.d.ts +3 -0
- package/cjs/locales/ko-KR.d.ts +3 -0
- package/cjs/locales/zh-CN.d.ts +3 -0
- package/cjs/locales/zh-CN.js +3 -0
- package/cjs/locales/zh-HK.d.ts +3 -0
- package/cjs/locales/zh-TW.d.ts +3 -0
- package/cjs/utils/use-isomorphic-update-layout-effect.d.ts +0 -1
- package/cjs/utils/use-ref-state.d.ts +0 -1
- package/es/components/action-sheet/index.d.ts +0 -1
- package/es/components/badge/index.d.ts +0 -1
- package/es/components/calendar/calendar.js +9 -1
- package/es/components/capsule-tabs/index.d.ts +0 -1
- package/es/components/cascade-picker/index.d.ts +0 -1
- package/es/components/cascader/index.d.ts +0 -1
- package/es/components/cascader-view/index.d.ts +0 -1
- package/es/components/check-list/index.d.ts +0 -1
- package/es/components/checkbox/group-context.d.ts +0 -1
- package/es/components/checkbox/index.d.ts +0 -1
- package/es/components/collapse/index.d.ts +0 -1
- package/es/components/date-picker/date-picker-date-utils.d.ts +2 -3
- package/es/components/date-picker/date-picker-date-utils.js +14 -11
- package/es/components/date-picker/date-picker-utils.d.ts +2 -3
- package/es/components/date-picker/date-picker-utils.js +9 -9
- package/es/components/date-picker/date-picker-week-utils.d.ts +0 -1
- package/es/components/date-picker/date-picker-week-utils.js +0 -3
- package/es/components/date-picker/date-picker.d.ts +20 -16
- package/es/components/date-picker/date-picker.js +13 -4
- package/es/components/date-picker/index.d.ts +10 -9
- package/es/components/date-picker/index.js +3 -1
- package/es/components/date-picker/prompt.d.ts +2 -1
- package/es/components/date-picker/util.d.ts +4 -0
- package/es/components/date-picker/util.js +1 -0
- package/es/components/date-picker-view/date-picker-view.d.ts +2 -1
- package/es/components/date-picker-view/date-picker-view.js +8 -4
- package/es/components/date-picker-view/useRenderLabel.d.ts +2 -0
- package/es/components/date-picker-view/useRenderLabel.js +23 -0
- package/es/components/dialog/index.d.ts +0 -1
- package/es/components/dropdown/index.d.ts +0 -1
- package/es/components/error-block/error-block.d.ts +0 -1
- package/es/components/error-block/images/busy.d.ts +0 -1
- package/es/components/error-block/images/default.d.ts +0 -1
- package/es/components/error-block/images/disconnected.d.ts +0 -1
- package/es/components/error-block/images/empty.d.ts +0 -1
- package/es/components/floating-bubble/floating-bubble.d.ts +8 -0
- package/es/components/floating-bubble/floating-bubble.js +26 -6
- package/es/components/form/form.d.ts +1 -1
- package/es/components/form/index.d.ts +0 -1
- package/es/components/grid/index.d.ts +0 -1
- package/es/components/image-uploader/image-uploader.css +15 -1
- package/es/components/image-uploader/image-uploader.d.ts +4 -1
- package/es/components/image-uploader/image-uploader.js +54 -14
- package/es/components/image-uploader/preview-item.d.ts +2 -1
- package/es/components/image-uploader/preview-item.js +6 -8
- package/es/components/image-viewer/index.d.ts +0 -1
- package/es/components/index-bar/index.d.ts +0 -1
- package/es/components/jumbo-tabs/index.d.ts +0 -1
- package/es/components/list/index.d.ts +0 -1
- package/es/components/mask/mask.d.ts +1 -1
- package/es/components/mask/mask.js +6 -2
- package/es/components/modal/index.d.ts +0 -1
- package/es/components/notice-bar/notice-bar.css +11 -4
- package/es/components/notice-bar/notice-bar.d.ts +10 -8
- package/es/components/notice-bar/notice-bar.js +5 -2
- package/es/components/popover/index.d.ts +0 -1
- package/es/components/radio/group-context.d.ts +0 -1
- package/es/components/radio/index.d.ts +0 -1
- package/es/components/result-page/index.d.ts +0 -1
- package/es/components/side-bar/index.d.ts +0 -1
- package/es/components/skeleton/index.d.ts +0 -1
- package/es/components/slider/slider.js +8 -3
- package/es/components/stepper/stepper.d.ts +23 -14
- package/es/components/stepper/stepper.js +110 -52
- package/es/components/steps/index.d.ts +0 -1
- package/es/components/swiper/index.d.ts +0 -1
- package/es/components/tab-bar/index.d.ts +0 -1
- package/es/components/tabs/index.d.ts +0 -1
- package/es/components/tree-select/index.d.ts +0 -1
- package/es/components/water-mark/water-mark.d.ts +1 -1
- package/es/components/water-mark/water-mark.js +5 -1
- package/es/locales/base.d.ts +3 -0
- package/es/locales/base.js +3 -0
- package/es/locales/en-US.d.ts +3 -0
- package/es/locales/es-ES.d.ts +3 -0
- package/es/locales/fa-IR.d.ts +3 -0
- package/es/locales/fr-FR.d.ts +3 -0
- package/es/locales/id-ID.d.ts +3 -0
- package/es/locales/ja-JP.d.ts +3 -0
- package/es/locales/kk-KZ.d.ts +3 -0
- package/es/locales/ko-KR.d.ts +3 -0
- package/es/locales/zh-CN.d.ts +3 -0
- package/es/locales/zh-CN.js +3 -0
- package/es/locales/zh-HK.d.ts +3 -0
- package/es/locales/zh-TW.d.ts +3 -0
- package/es/utils/use-isomorphic-update-layout-effect.d.ts +0 -1
- package/es/utils/use-ref-state.d.ts +0 -1
- package/package.json +11 -10
- package/umd/antd-mobile.js +1 -1
- package/2x/cjs/components/image/test/image.test.d.ts +0 -1
- package/2x/cjs/components/image/test/image.test.js +0 -73
- package/2x/es/components/image/test/image.test.d.ts +0 -1
- package/2x/es/components/image/test/image.test.js +0 -70
- package/cjs/components/image/test/image.test.d.ts +0 -1
- package/cjs/components/image/test/image.test.js +0 -73
- package/es/components/image/test/image.test.d.ts +0 -1
- package/es/components/image/test/image.test.js +0 -70
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as React$
|
|
2
|
-
import React__default, { useContext, useRef, useMemo, useEffect, useState, useCallback, useLayoutEffect, forwardRef, useImperativeHandle, memo, createContext, cloneElement } from "react";
|
|
1
|
+
import * as React$4 from "react";
|
|
2
|
+
import React__default, { useContext, useRef, useMemo, useEffect, useState as useState$1, useCallback, useLayoutEffect as useLayoutEffect$2, forwardRef, useImperativeHandle, memo, createContext, cloneElement } from "react";
|
|
3
3
|
import * as ReactDOM from "react-dom";
|
|
4
4
|
import { unstable_batchedUpdates, createPortal, findDOMNode } from "react-dom";
|
|
5
5
|
const global$2 = "";
|
|
6
|
-
const canUseDom = !!(typeof window !== "undefined" && typeof document !== "undefined" && window.document && window.document.createElement);
|
|
7
|
-
if (canUseDom) {
|
|
6
|
+
const canUseDom$2 = !!(typeof window !== "undefined" && typeof document !== "undefined" && window.document && window.document.createElement);
|
|
7
|
+
if (canUseDom$2) {
|
|
8
8
|
document.addEventListener("touchstart", () => {
|
|
9
9
|
}, true);
|
|
10
10
|
}
|
|
@@ -20,13 +20,13 @@ function __rest(s, e) {
|
|
|
20
20
|
}
|
|
21
21
|
return t;
|
|
22
22
|
}
|
|
23
|
-
function __awaiter$1(thisArg, _arguments,
|
|
23
|
+
function __awaiter$1(thisArg, _arguments, P, generator) {
|
|
24
24
|
function adopt(value) {
|
|
25
|
-
return value instanceof
|
|
25
|
+
return value instanceof P ? value : new P(function(resolve) {
|
|
26
26
|
resolve(value);
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
-
return new (
|
|
29
|
+
return new (P || (P = Promise))(function(resolve, reject) {
|
|
30
30
|
function fulfilled(value) {
|
|
31
31
|
try {
|
|
32
32
|
step(generator.next(value));
|
|
@@ -80,6 +80,9 @@ const base = {
|
|
|
80
80
|
Dialog: {
|
|
81
81
|
ok: "OK"
|
|
82
82
|
},
|
|
83
|
+
DatePicker: {
|
|
84
|
+
tillNow: "Till Now"
|
|
85
|
+
},
|
|
83
86
|
ErrorBlock: {
|
|
84
87
|
default: {
|
|
85
88
|
title: "Oops, something went wrong",
|
|
@@ -207,6 +210,9 @@ const zhCN = mergeLocale(base, {
|
|
|
207
210
|
Dialog: {
|
|
208
211
|
ok: "\u6211\u77E5\u9053\u4E86"
|
|
209
212
|
},
|
|
213
|
+
DatePicker: {
|
|
214
|
+
tillNow: "\u81F3\u4ECA"
|
|
215
|
+
},
|
|
210
216
|
ErrorBlock: {
|
|
211
217
|
default: {
|
|
212
218
|
title: "\u9875\u9762\u9047\u5230\u4E00\u4E9B\u5C0F\u95EE\u9898",
|
|
@@ -1143,7 +1149,7 @@ var __read$7 = globalThis && globalThis.__read || function(o, n) {
|
|
|
1143
1149
|
return ar;
|
|
1144
1150
|
};
|
|
1145
1151
|
var useUpdate = function useUpdate2() {
|
|
1146
|
-
var _a = __read$7(useState({}), 2), setState = _a[1];
|
|
1152
|
+
var _a = __read$7(useState$1({}), 2), setState = _a[1];
|
|
1147
1153
|
return useCallback(function() {
|
|
1148
1154
|
return setState({});
|
|
1149
1155
|
}, []);
|
|
@@ -1553,7 +1559,7 @@ var __read$5 = globalThis && globalThis.__read || function(o, n) {
|
|
|
1553
1559
|
return ar;
|
|
1554
1560
|
};
|
|
1555
1561
|
function useDebounceEffect(effect, deps, options) {
|
|
1556
|
-
var _a = __read$5(useState({}), 2), flag = _a[0], setFlag = _a[1];
|
|
1562
|
+
var _a = __read$5(useState$1({}), 2), flag = _a[0], setFlag = _a[1];
|
|
1557
1563
|
var run = useDebounceFn(function() {
|
|
1558
1564
|
setFlag({});
|
|
1559
1565
|
}, options).run;
|
|
@@ -2733,8 +2739,8 @@ var __values = globalThis && globalThis.__values || function(o) {
|
|
|
2733
2739
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
2734
2740
|
};
|
|
2735
2741
|
function useInViewport(target, options) {
|
|
2736
|
-
var _a = __read$4(useState(), 2), state = _a[0], setState = _a[1];
|
|
2737
|
-
var _b = __read$4(useState(), 2), ratio = _b[0], setRatio = _b[1];
|
|
2742
|
+
var _a = __read$4(useState$1(), 2), state = _a[0], setState = _a[1];
|
|
2743
|
+
var _b = __read$4(useState$1(), 2), ratio = _b[0], setRatio = _b[1];
|
|
2738
2744
|
useEffectWithTarget$2(function() {
|
|
2739
2745
|
var el = getTargetElement(target);
|
|
2740
2746
|
if (!el) {
|
|
@@ -2771,15 +2777,15 @@ function useInViewport(target, options) {
|
|
|
2771
2777
|
}, [], target);
|
|
2772
2778
|
return [state, ratio];
|
|
2773
2779
|
}
|
|
2774
|
-
var useIsomorphicLayoutEffect$1 = isBrowser$3 ? useLayoutEffect : useEffect;
|
|
2780
|
+
var useIsomorphicLayoutEffect$1 = isBrowser$3 ? useLayoutEffect$2 : useEffect;
|
|
2775
2781
|
const useIsomorphicLayoutEffect$2 = useIsomorphicLayoutEffect$1;
|
|
2776
|
-
var __awaiter = globalThis && globalThis.__awaiter || function(thisArg, _arguments,
|
|
2782
|
+
var __awaiter = globalThis && globalThis.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
2777
2783
|
function adopt(value) {
|
|
2778
|
-
return value instanceof
|
|
2784
|
+
return value instanceof P ? value : new P(function(resolve) {
|
|
2779
2785
|
resolve(value);
|
|
2780
2786
|
});
|
|
2781
2787
|
}
|
|
2782
|
-
return new (
|
|
2788
|
+
return new (P || (P = Promise))(function(resolve, reject) {
|
|
2783
2789
|
function fulfilled(value) {
|
|
2784
2790
|
try {
|
|
2785
2791
|
step(generator.next(value));
|
|
@@ -2988,7 +2994,7 @@ var __read$2 = globalThis && globalThis.__read || function(o, n) {
|
|
|
2988
2994
|
};
|
|
2989
2995
|
function useRafState(initialState) {
|
|
2990
2996
|
var ref = useRef(0);
|
|
2991
|
-
var _a = __read$2(useState(initialState), 2), state = _a[0], setState = _a[1];
|
|
2997
|
+
var _a = __read$2(useState$1(initialState), 2), state = _a[0], setState = _a[1];
|
|
2992
2998
|
var setRafState = useCallback(function(value) {
|
|
2993
2999
|
cancelAnimationFrame(ref.current);
|
|
2994
3000
|
ref.current = requestAnimationFrame(function() {
|
|
@@ -3482,7 +3488,7 @@ var index$k = function() {
|
|
|
3482
3488
|
}
|
|
3483
3489
|
return ResizeObserver$1;
|
|
3484
3490
|
}();
|
|
3485
|
-
var useEffectWithTarget = createEffectWithTarget$1(useLayoutEffect);
|
|
3491
|
+
var useEffectWithTarget = createEffectWithTarget$1(useLayoutEffect$2);
|
|
3486
3492
|
const useLayoutEffectWithTarget = useEffectWithTarget;
|
|
3487
3493
|
var useIsomorphicLayoutEffectWithTarget = isBrowser$3 ? useLayoutEffectWithTarget : useEffectWithTarget$2;
|
|
3488
3494
|
const useIsomorphicLayoutEffectWithTarget$1 = useIsomorphicLayoutEffectWithTarget;
|
|
@@ -3676,7 +3682,7 @@ function useTouch() {
|
|
|
3676
3682
|
isHorizontal
|
|
3677
3683
|
};
|
|
3678
3684
|
}
|
|
3679
|
-
const defaultRoot = canUseDom ? window : void 0;
|
|
3685
|
+
const defaultRoot = canUseDom$2 ? window : void 0;
|
|
3680
3686
|
const overflowStylePatterns = ["scroll", "auto", "overlay"];
|
|
3681
3687
|
function isElement$1(node) {
|
|
3682
3688
|
const ELEMENT_NODE_TYPE = 1;
|
|
@@ -3699,7 +3705,7 @@ function getScrollParent(el, root2 = defaultRoot) {
|
|
|
3699
3705
|
return root2;
|
|
3700
3706
|
}
|
|
3701
3707
|
let supportsPassive = false;
|
|
3702
|
-
if (canUseDom) {
|
|
3708
|
+
if (canUseDom$2) {
|
|
3703
3709
|
try {
|
|
3704
3710
|
const opts = {};
|
|
3705
3711
|
Object.defineProperty(opts, "passive", {
|
|
@@ -4587,7 +4593,7 @@ function deprecateDirectCall() {
|
|
|
4587
4593
|
function isAnimatedString(value) {
|
|
4588
4594
|
return is.str(value) && (value[0] == "#" || /\d/.test(value) || !isSSR() && cssVariableRegex.test(value) || value in (colors$1 || {}));
|
|
4589
4595
|
}
|
|
4590
|
-
const useIsomorphicLayoutEffect = isSSR() ? useEffect : useLayoutEffect;
|
|
4596
|
+
const useIsomorphicLayoutEffect = isSSR() ? useEffect : useLayoutEffect$2;
|
|
4591
4597
|
const useIsMounted = () => {
|
|
4592
4598
|
const isMounted = useRef(false);
|
|
4593
4599
|
useIsomorphicLayoutEffect(() => {
|
|
@@ -4599,7 +4605,7 @@ const useIsMounted = () => {
|
|
|
4599
4605
|
return isMounted;
|
|
4600
4606
|
};
|
|
4601
4607
|
function useForceUpdate() {
|
|
4602
|
-
const update2 = useState()[1];
|
|
4608
|
+
const update2 = useState$1()[1];
|
|
4603
4609
|
const isMounted = useIsMounted();
|
|
4604
4610
|
return () => {
|
|
4605
4611
|
if (isMounted.current) {
|
|
@@ -4608,7 +4614,7 @@ function useForceUpdate() {
|
|
|
4608
4614
|
};
|
|
4609
4615
|
}
|
|
4610
4616
|
function useMemoOne(getResult, inputs) {
|
|
4611
|
-
const [initial] = useState(() => ({
|
|
4617
|
+
const [initial] = useState$1(() => ({
|
|
4612
4618
|
inputs,
|
|
4613
4619
|
result: getResult()
|
|
4614
4620
|
}));
|
|
@@ -4888,7 +4894,7 @@ const withAnimated = (Component, host2) => {
|
|
|
4888
4894
|
each(observer2.deps, (dep) => removeFluidObserver(dep, observer2));
|
|
4889
4895
|
});
|
|
4890
4896
|
const usedProps = host2.getComponentProps(props.getValue());
|
|
4891
|
-
return React$
|
|
4897
|
+
return React$4.createElement(Component, _extends$3({}, usedProps, {
|
|
4892
4898
|
ref
|
|
4893
4899
|
}));
|
|
4894
4900
|
});
|
|
@@ -6479,7 +6485,7 @@ const SpringContext = (_ref) => {
|
|
|
6479
6485
|
const {
|
|
6480
6486
|
Provider
|
|
6481
6487
|
} = ctx;
|
|
6482
|
-
return React$
|
|
6488
|
+
return React$4.createElement(Provider, {
|
|
6483
6489
|
value: props
|
|
6484
6490
|
}, children);
|
|
6485
6491
|
};
|
|
@@ -6487,7 +6493,7 @@ const ctx = makeContext(SpringContext, {});
|
|
|
6487
6493
|
SpringContext.Provider = ctx.Provider;
|
|
6488
6494
|
SpringContext.Consumer = ctx.Consumer;
|
|
6489
6495
|
function makeContext(target, init) {
|
|
6490
|
-
Object.assign(target, React$
|
|
6496
|
+
Object.assign(target, React$4.createContext(init));
|
|
6491
6497
|
target.Provider._context = target;
|
|
6492
6498
|
target.Consumer._context = target;
|
|
6493
6499
|
return target;
|
|
@@ -6963,7 +6969,7 @@ function resolveContainer(getContainer) {
|
|
|
6963
6969
|
return container || document.body;
|
|
6964
6970
|
}
|
|
6965
6971
|
function renderToContainer(getContainer, node) {
|
|
6966
|
-
if (canUseDom && getContainer) {
|
|
6972
|
+
if (canUseDom$2 && getContainer) {
|
|
6967
6973
|
const container = resolveContainer(getContainer);
|
|
6968
6974
|
return createPortal(node, container);
|
|
6969
6975
|
}
|
|
@@ -7011,6 +7017,10 @@ const opacityRecord = {
|
|
|
7011
7017
|
thin: 0.35,
|
|
7012
7018
|
thick: 0.75
|
|
7013
7019
|
};
|
|
7020
|
+
const colorRecord$4 = {
|
|
7021
|
+
black: "0, 0, 0",
|
|
7022
|
+
white: "255, 255, 255"
|
|
7023
|
+
};
|
|
7014
7024
|
const defaultProps$13 = {
|
|
7015
7025
|
visible: true,
|
|
7016
7026
|
destroyOnClose: false,
|
|
@@ -7031,10 +7041,10 @@ const Mask$1 = (p) => {
|
|
|
7031
7041
|
const background = useMemo(() => {
|
|
7032
7042
|
var _a;
|
|
7033
7043
|
const opacity2 = (_a = opacityRecord[props.opacity]) !== null && _a !== void 0 ? _a : props.opacity;
|
|
7034
|
-
const rgb2 = props.color
|
|
7035
|
-
return `rgba(${rgb2}, ${opacity2})
|
|
7044
|
+
const rgb2 = colorRecord$4[props.color];
|
|
7045
|
+
return rgb2 ? `rgba(${rgb2}, ${opacity2})` : props.color;
|
|
7036
7046
|
}, [props.color, props.opacity]);
|
|
7037
|
-
const [active, setActive] = useState(props.visible);
|
|
7047
|
+
const [active, setActive] = useState$1(props.visible);
|
|
7038
7048
|
const unmountedRef = useUnmountedRef$1();
|
|
7039
7049
|
const {
|
|
7040
7050
|
opacity
|
|
@@ -7092,7 +7102,7 @@ const Mask$1 = (p) => {
|
|
|
7092
7102
|
};
|
|
7093
7103
|
const Mask = Mask$1;
|
|
7094
7104
|
function AddOutline(props) {
|
|
7095
|
-
return /* @__PURE__ */ React$
|
|
7105
|
+
return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
|
|
7096
7106
|
width: "1em",
|
|
7097
7107
|
height: "1em",
|
|
7098
7108
|
viewBox: "0 0 48 48",
|
|
@@ -7103,15 +7113,15 @@ function AddOutline(props) {
|
|
|
7103
7113
|
verticalAlign: "-0.125em"
|
|
7104
7114
|
}, props.style),
|
|
7105
7115
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
7106
|
-
}), /* @__PURE__ */ React$
|
|
7116
|
+
}), /* @__PURE__ */ React$4.createElement("g", {
|
|
7107
7117
|
id: "AddOutline-AddOutline",
|
|
7108
7118
|
stroke: "none",
|
|
7109
7119
|
strokeWidth: 1,
|
|
7110
7120
|
fill: "none",
|
|
7111
7121
|
fillRule: "evenodd"
|
|
7112
|
-
}, /* @__PURE__ */ React$
|
|
7122
|
+
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7113
7123
|
id: "AddOutline-add"
|
|
7114
|
-
}, /* @__PURE__ */ React$
|
|
7124
|
+
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7115
7125
|
id: "AddOutline-\u77E9\u5F62",
|
|
7116
7126
|
fill: "#FFFFFF",
|
|
7117
7127
|
opacity: 0,
|
|
@@ -7119,7 +7129,7 @@ function AddOutline(props) {
|
|
|
7119
7129
|
y: 0,
|
|
7120
7130
|
width: 48,
|
|
7121
7131
|
height: 48
|
|
7122
|
-
}), /* @__PURE__ */ React$
|
|
7132
|
+
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7123
7133
|
d: "M25.1,6.5 C25.3209139,6.5 25.5,6.6790861 25.5,6.9 L25.5,22.5 L41.1,22.5 C41.3209139,22.5 41.5,22.6790861 41.5,22.9 L41.5,25.1 C41.5,25.3209139 41.3209139,25.5 41.1,25.5 L25.5,25.5 L25.5,41.1 C25.5,41.3209139 25.3209139,41.5 25.1,41.5 L22.9,41.5 C22.6790861,41.5 22.5,41.3209139 22.5,41.1 L22.5,25.5 L6.9,25.5 C6.6790861,25.5 6.5,25.3209139 6.5,25.1 L6.5,22.9 C6.5,22.6790861 6.6790861,22.5 6.9,22.5 L22.5,22.5 L22.5,6.9 C22.5,6.6790861 22.6790861,6.5 22.9,6.5 L25.1,6.5 Z",
|
|
7124
7134
|
id: "AddOutline-\u8DEF\u5F84",
|
|
7125
7135
|
fill: "currentColor",
|
|
@@ -7127,7 +7137,7 @@ function AddOutline(props) {
|
|
|
7127
7137
|
}))));
|
|
7128
7138
|
}
|
|
7129
7139
|
function CheckCircleFill(props) {
|
|
7130
|
-
return /* @__PURE__ */ React$
|
|
7140
|
+
return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
|
|
7131
7141
|
width: "1em",
|
|
7132
7142
|
height: "1em",
|
|
7133
7143
|
viewBox: "0 0 48 48",
|
|
@@ -7138,15 +7148,15 @@ function CheckCircleFill(props) {
|
|
|
7138
7148
|
verticalAlign: "-0.125em"
|
|
7139
7149
|
}, props.style),
|
|
7140
7150
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
7141
|
-
}), /* @__PURE__ */ React$
|
|
7151
|
+
}), /* @__PURE__ */ React$4.createElement("g", {
|
|
7142
7152
|
id: "CheckCircleFill-CheckCircleFill",
|
|
7143
7153
|
stroke: "none",
|
|
7144
7154
|
strokeWidth: 1,
|
|
7145
7155
|
fill: "none",
|
|
7146
7156
|
fillRule: "evenodd"
|
|
7147
|
-
}, /* @__PURE__ */ React$
|
|
7157
|
+
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7148
7158
|
id: "CheckCircleFill-\u7F16\u7EC4"
|
|
7149
|
-
}, /* @__PURE__ */ React$
|
|
7159
|
+
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7150
7160
|
id: "CheckCircleFill-\u77E9\u5F62",
|
|
7151
7161
|
fill: "#FFFFFF",
|
|
7152
7162
|
opacity: 0,
|
|
@@ -7154,7 +7164,7 @@ function CheckCircleFill(props) {
|
|
|
7154
7164
|
y: 0,
|
|
7155
7165
|
width: 48,
|
|
7156
7166
|
height: 48
|
|
7157
|
-
}), /* @__PURE__ */ React$
|
|
7167
|
+
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7158
7168
|
d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M35.8202936,17 L32.7086692,17 C32.6025922,17 32.500859,17.0421352 32.4258461,17.1171378 L32.4258461,17.1171378 L21.3922352,28.1492247 L16.3591562,23.1163755 C16.2841422,23.0413649 16.1824034,22.9992247 16.0763199,22.9992247 L16.0763199,22.9992247 L12.9653996,22.9992247 C12.859342,22.9992247 12.7576259,23.0413445 12.6826161,23.1163228 C12.5263737,23.2724998 12.5263207,23.5257658 12.6824977,23.6820082 C12.8583452,23.8579294 13.0341927,24.0338505 13.2100402,24.2097716 C13.2577488,24.2575002 13.3065097,24.3063074 13.3562592,24.3561283 L13.6661084,24.6666997 C14.3074913,25.3100963 15.0728595,26.0807873 15.8520136,26.8666654 L16.4372421,27.4571699 C18.2552812,29.2922548 19.9983838,31.0574343 20.2666114,31.3285298 L20.301004,31.3632341 C20.8867904,31.9490205 21.8365379,31.9490205 22.4223243,31.3632341 L22.4223243,31.3632341 L36.1031319,17.6828471 C36.1781492,17.6078322 36.2202936,17.5060887 36.2202936,17.4 C36.2202936,17.1790861 36.0412075,17 35.8202936,17 L35.8202936,17 Z",
|
|
7159
7169
|
id: "CheckCircleFill-\u5F62\u72B6\u7ED3\u5408",
|
|
7160
7170
|
fill: "currentColor",
|
|
@@ -7162,7 +7172,7 @@ function CheckCircleFill(props) {
|
|
|
7162
7172
|
}))));
|
|
7163
7173
|
}
|
|
7164
7174
|
function CheckOutline(props) {
|
|
7165
|
-
return /* @__PURE__ */ React$
|
|
7175
|
+
return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
|
|
7166
7176
|
width: "1em",
|
|
7167
7177
|
height: "1em",
|
|
7168
7178
|
viewBox: "0 0 48 48",
|
|
@@ -7173,15 +7183,15 @@ function CheckOutline(props) {
|
|
|
7173
7183
|
verticalAlign: "-0.125em"
|
|
7174
7184
|
}, props.style),
|
|
7175
7185
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
7176
|
-
}), /* @__PURE__ */ React$
|
|
7186
|
+
}), /* @__PURE__ */ React$4.createElement("g", {
|
|
7177
7187
|
id: "CheckOutline-CheckOutline",
|
|
7178
7188
|
stroke: "none",
|
|
7179
7189
|
strokeWidth: 1,
|
|
7180
7190
|
fill: "none",
|
|
7181
7191
|
fillRule: "evenodd"
|
|
7182
|
-
}, /* @__PURE__ */ React$
|
|
7192
|
+
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7183
7193
|
id: "CheckOutline-\u7F16\u7EC4"
|
|
7184
|
-
}, /* @__PURE__ */ React$
|
|
7194
|
+
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7185
7195
|
id: "CheckOutline-\u77E9\u5F62",
|
|
7186
7196
|
fill: "#FFFFFF",
|
|
7187
7197
|
opacity: 0,
|
|
@@ -7189,7 +7199,7 @@ function CheckOutline(props) {
|
|
|
7189
7199
|
y: 0,
|
|
7190
7200
|
width: 48,
|
|
7191
7201
|
height: 48
|
|
7192
|
-
}), /* @__PURE__ */ React$
|
|
7202
|
+
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7193
7203
|
d: "M44.309608,12.6841286 L21.2180499,35.5661955 L21.2180499,35.5661955 C20.6343343,36.1446015 19.6879443,36.1446015 19.1042286,35.5661955 C19.0538201,35.5162456 19.0077648,35.4636155 18.9660627,35.4087682 C18.9113105,35.368106 18.8584669,35.3226694 18.808302,35.2729607 L3.6903839,20.2920499 C3.53346476,20.1365529 3.53231192,19.8832895 3.68780898,19.7263704 C3.7629255,19.6505669 3.86521855,19.6079227 3.97193622,19.6079227 L7.06238923,19.6079227 C7.16784214,19.6079227 7.26902895,19.6495648 7.34393561,19.7237896 L20.160443,32.4236157 L20.160443,32.4236157 L40.656066,12.115858 C40.7309719,12.0416387 40.8321549,12 40.9376034,12 L44.0280571,12 C44.248971,12 44.4280571,12.1790861 44.4280571,12.4 C44.4280571,12.5067183 44.3854124,12.609012 44.309608,12.6841286 Z",
|
|
7194
7204
|
id: "CheckOutline-\u8DEF\u5F84",
|
|
7195
7205
|
fill: "currentColor",
|
|
@@ -7197,7 +7207,7 @@ function CheckOutline(props) {
|
|
|
7197
7207
|
}))));
|
|
7198
7208
|
}
|
|
7199
7209
|
function ClockCircleFill(props) {
|
|
7200
|
-
return /* @__PURE__ */ React$
|
|
7210
|
+
return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
|
|
7201
7211
|
width: "1em",
|
|
7202
7212
|
height: "1em",
|
|
7203
7213
|
viewBox: "0 0 48 48",
|
|
@@ -7208,15 +7218,15 @@ function ClockCircleFill(props) {
|
|
|
7208
7218
|
verticalAlign: "-0.125em"
|
|
7209
7219
|
}, props.style),
|
|
7210
7220
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
7211
|
-
}), /* @__PURE__ */ React$
|
|
7221
|
+
}), /* @__PURE__ */ React$4.createElement("g", {
|
|
7212
7222
|
id: "ClockCircleFill-ClockCircleFill",
|
|
7213
7223
|
stroke: "none",
|
|
7214
7224
|
strokeWidth: 1,
|
|
7215
7225
|
fill: "none",
|
|
7216
7226
|
fillRule: "evenodd"
|
|
7217
|
-
}, /* @__PURE__ */ React$
|
|
7227
|
+
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7218
7228
|
id: "ClockCircleFill-\u7F16\u7EC4"
|
|
7219
|
-
}, /* @__PURE__ */ React$
|
|
7229
|
+
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7220
7230
|
id: "ClockCircleFill-\u77E9\u5F62",
|
|
7221
7231
|
fill: "#FFFFFF",
|
|
7222
7232
|
opacity: 0,
|
|
@@ -7224,7 +7234,7 @@ function ClockCircleFill(props) {
|
|
|
7224
7234
|
y: 0,
|
|
7225
7235
|
width: 48,
|
|
7226
7236
|
height: 48
|
|
7227
|
-
}), /* @__PURE__ */ React$
|
|
7237
|
+
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7228
7238
|
d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M24.6,14 L22.4,14 C22.1790861,14 22,14.1790861 22,14.4 L22,14.4 L22,23.1715729 L22.0065089,23.3850222 C22.0584325,24.2354066 22.4192395,25.0405598 23.0251263,25.6464466 L23.0251263,25.6464466 L31.1564971,33.7778175 C31.3127068,33.9340272 31.5659728,33.9340272 31.7221825,33.7778175 L31.7221825,33.7778175 L33.2778175,32.2221825 C33.4340272,32.0659728 33.4340272,31.8127068 33.2778175,31.6564971 L33.2778175,31.6564971 L25.1464466,23.5251263 L25.0952092,23.4650801 C25.0337142,23.38027 25,23.2776595 25,23.1715729 L25,23.1715729 L25,14.4 C25,14.1790861 24.8209139,14 24.6,14 L24.6,14 Z",
|
|
7229
7239
|
id: "ClockCircleFill-\u5F62\u72B6\u7ED3\u5408",
|
|
7230
7240
|
fill: "currentColor",
|
|
@@ -7232,7 +7242,7 @@ function ClockCircleFill(props) {
|
|
|
7232
7242
|
}))));
|
|
7233
7243
|
}
|
|
7234
7244
|
function CloseCircleFill(props) {
|
|
7235
|
-
return /* @__PURE__ */ React$
|
|
7245
|
+
return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
|
|
7236
7246
|
width: "1em",
|
|
7237
7247
|
height: "1em",
|
|
7238
7248
|
viewBox: "0 0 48 48",
|
|
@@ -7243,15 +7253,15 @@ function CloseCircleFill(props) {
|
|
|
7243
7253
|
verticalAlign: "-0.125em"
|
|
7244
7254
|
}, props.style),
|
|
7245
7255
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
7246
|
-
}), /* @__PURE__ */ React$
|
|
7256
|
+
}), /* @__PURE__ */ React$4.createElement("g", {
|
|
7247
7257
|
id: "CloseCircleFill-CloseCircleFill",
|
|
7248
7258
|
stroke: "none",
|
|
7249
7259
|
strokeWidth: 1,
|
|
7250
7260
|
fill: "none",
|
|
7251
7261
|
fillRule: "evenodd"
|
|
7252
|
-
}, /* @__PURE__ */ React$
|
|
7262
|
+
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7253
7263
|
id: "CloseCircleFill-\u7F16\u7EC4"
|
|
7254
|
-
}, /* @__PURE__ */ React$
|
|
7264
|
+
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7255
7265
|
id: "CloseCircleFill-\u77E9\u5F62",
|
|
7256
7266
|
fill: "#FFFFFF",
|
|
7257
7267
|
opacity: 0,
|
|
@@ -7259,7 +7269,7 @@ function CloseCircleFill(props) {
|
|
|
7259
7269
|
y: 0,
|
|
7260
7270
|
width: 48,
|
|
7261
7271
|
height: 48
|
|
7262
|
-
}), /* @__PURE__ */ React$
|
|
7272
|
+
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7263
7273
|
d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M18.6753876,16 L15.5637812,16 C15.4576916,16 15.3559474,16.0421451 15.2809323,16.1171635 C15.124726,16.2733766 15.1247316,16.5266426 15.2809447,16.6828489 L15.2809447,16.6828489 L22.299066,23.7006641 L14.6828159,31.3171619 C14.6078042,31.3921761 14.5656632,31.4939157 14.5656632,31.6 C14.5656632,31.8209139 14.7447493,32 14.9656632,32 L14.9656632,32 L18.0753284,32 C18.1814068,32 18.2831412,31.9578638 18.3581544,31.8828594 L18.3581544,31.8828594 L24.420066,25.8216641 L30.4818451,31.8828564 C30.5568585,31.9578626 30.6585942,32 30.7646741,32 L30.7646741,32 L33.8763476,32 C33.9824309,32 34.0841695,31.9578599 34.1591835,31.8828496 C34.315397,31.7266436 34.3154031,31.4733776 34.1591972,31.3171641 L34.1591972,31.3171641 L26.542066,23.6996641 L33.5591874,16.6828489 C33.6342057,16.6078338 33.6763508,16.5060896 33.6763508,16.4 C33.6763508,16.1790861 33.4972647,16 33.2763508,16 L33.2763508,16 L30.1637654,16 C30.0576705,16 29.9559218,16.0421493 29.8809058,16.1171741 L29.8809058,16.1171741 L24.420066,21.5786641 L18.9582218,16.1171488 C18.883208,16.0421394 18.7814701,16 18.6753876,16 L18.6753876,16 Z",
|
|
7264
7274
|
id: "CloseCircleFill-\u5F62\u72B6\u7ED3\u5408",
|
|
7265
7275
|
fill: "currentColor",
|
|
@@ -7267,7 +7277,7 @@ function CloseCircleFill(props) {
|
|
|
7267
7277
|
}))));
|
|
7268
7278
|
}
|
|
7269
7279
|
function CloseOutline(props) {
|
|
7270
|
-
return /* @__PURE__ */ React$
|
|
7280
|
+
return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
|
|
7271
7281
|
width: "1em",
|
|
7272
7282
|
height: "1em",
|
|
7273
7283
|
viewBox: "0 0 48 48",
|
|
@@ -7278,15 +7288,15 @@ function CloseOutline(props) {
|
|
|
7278
7288
|
verticalAlign: "-0.125em"
|
|
7279
7289
|
}, props.style),
|
|
7280
7290
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
7281
|
-
}), /* @__PURE__ */ React$
|
|
7291
|
+
}), /* @__PURE__ */ React$4.createElement("g", {
|
|
7282
7292
|
id: "CloseOutline-CloseOutline",
|
|
7283
7293
|
stroke: "none",
|
|
7284
7294
|
strokeWidth: 1,
|
|
7285
7295
|
fill: "none",
|
|
7286
7296
|
fillRule: "evenodd"
|
|
7287
|
-
}, /* @__PURE__ */ React$
|
|
7297
|
+
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7288
7298
|
id: "CloseOutline-\u7F16\u7EC4"
|
|
7289
|
-
}, /* @__PURE__ */ React$
|
|
7299
|
+
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7290
7300
|
id: "CloseOutline-\u77E9\u5F62",
|
|
7291
7301
|
fill: "#FFFFFF",
|
|
7292
7302
|
opacity: 0,
|
|
@@ -7294,7 +7304,7 @@ function CloseOutline(props) {
|
|
|
7294
7304
|
y: 0,
|
|
7295
7305
|
width: 48,
|
|
7296
7306
|
height: 48
|
|
7297
|
-
}), /* @__PURE__ */ React$
|
|
7307
|
+
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7298
7308
|
d: "M10.6085104,8.11754663 L24.1768397,21.8195031 L24.1768397,21.8195031 L37.7443031,8.1175556 C37.8194278,8.04168616 37.9217669,7.999 38.0285372,7.999 L41.1040268,7.999 C41.3249407,7.999 41.5040268,8.1780861 41.5040268,8.399 C41.5040268,8.50440471 41.4624226,8.60554929 41.3882578,8.68044752 L26.2773302,23.9408235 L26.2773302,23.9408235 L41.5021975,39.3175645 C41.65763,39.4745475 41.6563731,39.7278104 41.4993901,39.8832429 C41.4244929,39.9574004 41.3233534,39.999 41.2179546,39.999 L38.1434012,39.999 C38.0366291,39.999 37.9342885,39.9563124 37.8591634,39.8804408 L24.1768397,26.0621438 L24.1768397,26.0621438 L10.4936501,39.8804497 C10.4185257,39.9563159 10.3161889,39.999 10.2094212,39.999 L7.13584526,39.999 C6.91493136,39.999 6.73584526,39.8199139 6.73584526,39.599 C6.73584526,39.4936017 6.77744443,39.3924627 6.85160121,39.3175656 L22.0763492,23.9408235 L22.0763492,23.9408235 L6.96554081,8.68044639 C6.81010226,8.52346929 6.81134951,8.27020637 6.9683266,8.11476782 C7.04322474,8.04060377 7.14436883,7.999 7.24977299,7.999 L10.3242852,7.999 C10.4310511,7.999 10.5333863,8.04168267 10.6085104,8.11754663 Z",
|
|
7299
7309
|
id: "CloseOutline-\u8DEF\u5F84",
|
|
7300
7310
|
fill: "currentColor",
|
|
@@ -7302,7 +7312,7 @@ function CloseOutline(props) {
|
|
|
7302
7312
|
}))));
|
|
7303
7313
|
}
|
|
7304
7314
|
function DownFill(props) {
|
|
7305
|
-
return /* @__PURE__ */ React$
|
|
7315
|
+
return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
|
|
7306
7316
|
width: "1em",
|
|
7307
7317
|
height: "1em",
|
|
7308
7318
|
viewBox: "0 0 48 48",
|
|
@@ -7313,15 +7323,15 @@ function DownFill(props) {
|
|
|
7313
7323
|
verticalAlign: "-0.125em"
|
|
7314
7324
|
}, props.style),
|
|
7315
7325
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
7316
|
-
}), /* @__PURE__ */ React$
|
|
7326
|
+
}), /* @__PURE__ */ React$4.createElement("g", {
|
|
7317
7327
|
id: "DownFill-DownFill",
|
|
7318
7328
|
stroke: "none",
|
|
7319
7329
|
strokeWidth: 1,
|
|
7320
7330
|
fill: "none",
|
|
7321
7331
|
fillRule: "evenodd"
|
|
7322
|
-
}, /* @__PURE__ */ React$
|
|
7332
|
+
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7323
7333
|
id: "DownFill-\u7F16\u7EC4"
|
|
7324
|
-
}, /* @__PURE__ */ React$
|
|
7334
|
+
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7325
7335
|
id: "DownFill-\u77E9\u5F62",
|
|
7326
7336
|
fill: "#FFFFFF",
|
|
7327
7337
|
opacity: 0,
|
|
@@ -7329,7 +7339,7 @@ function DownFill(props) {
|
|
|
7329
7339
|
y: 0,
|
|
7330
7340
|
width: 48,
|
|
7331
7341
|
height: 48
|
|
7332
|
-
}), /* @__PURE__ */ React$
|
|
7342
|
+
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7333
7343
|
d: "M40.6640052,13 L7.34128264,13 C6.57572302,13 5.83336217,13.2619065 5.23947349,13.7351762 C3.80578911,14.8838891 3.58308085,16.9699517 4.74301968,18.3897608 L21.404381,38.7725222 C21.5528531,38.9517214 21.7152446,39.1171361 21.9008348,39.2641713 C23.3345192,40.4128842 25.4363283,40.1923313 26.6009069,38.7725222 L43.2576284,18.3897608 C43.740163,17.8016198 44,17.0664436 44,16.3082931 C44.004629,14.4795422 42.505988,13 40.6640052,13 Z",
|
|
7334
7344
|
id: "DownFill-\u8DEF\u5F84",
|
|
7335
7345
|
fill: "currentColor",
|
|
@@ -7337,7 +7347,7 @@ function DownFill(props) {
|
|
|
7337
7347
|
}))));
|
|
7338
7348
|
}
|
|
7339
7349
|
function DownOutline(props) {
|
|
7340
|
-
return /* @__PURE__ */ React$
|
|
7350
|
+
return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
|
|
7341
7351
|
width: "1em",
|
|
7342
7352
|
height: "1em",
|
|
7343
7353
|
viewBox: "0 0 48 48",
|
|
@@ -7348,13 +7358,13 @@ function DownOutline(props) {
|
|
|
7348
7358
|
verticalAlign: "-0.125em"
|
|
7349
7359
|
}, props.style),
|
|
7350
7360
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
7351
|
-
}), /* @__PURE__ */ React$
|
|
7361
|
+
}), /* @__PURE__ */ React$4.createElement("g", {
|
|
7352
7362
|
id: "DownOutline-DownOutline",
|
|
7353
7363
|
stroke: "none",
|
|
7354
7364
|
strokeWidth: 1,
|
|
7355
7365
|
fill: "none",
|
|
7356
7366
|
fillRule: "evenodd"
|
|
7357
|
-
}, /* @__PURE__ */ React$
|
|
7367
|
+
}, /* @__PURE__ */ React$4.createElement("g", null, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7358
7368
|
id: "DownOutline-\u77E9\u5F62",
|
|
7359
7369
|
fill: "#FFFFFF",
|
|
7360
7370
|
opacity: 0,
|
|
@@ -7362,7 +7372,7 @@ function DownOutline(props) {
|
|
|
7362
7372
|
y: 0,
|
|
7363
7373
|
width: 48,
|
|
7364
7374
|
height: 48
|
|
7365
|
-
}), /* @__PURE__ */ React$
|
|
7375
|
+
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7366
7376
|
d: "M5.11219264,16.3947957 L22.6612572,34.5767382 L22.6612572,34.5767382 C23.2125856,35.1304785 24.0863155,35.1630514 24.6755735,34.6744571 L24.7825775,34.5767382 L42.8834676,16.3956061 C42.9580998,16.320643 43,16.2191697 43,16.1133896 L43,12.9866673 C43,12.7657534 42.8209139,12.5866673 42.6,12.5866673 C42.4936115,12.5866673 42.391606,12.6290496 42.316542,12.7044413 L23.7816937,31.3201933 L23.7816937,31.3201933 L5.6866816,12.7237117 C5.53262122,12.5653818 5.27937888,12.5619207 5.121049,12.7159811 C5.04365775,12.7912854 5,12.8946805 5,13.0026627 L5,16.1170064 C5,16.2206403 5.04022164,16.3202292 5.11219264,16.3947957 Z",
|
|
7367
7377
|
id: "DownOutline-down",
|
|
7368
7378
|
fill: "currentColor",
|
|
@@ -7370,7 +7380,7 @@ function DownOutline(props) {
|
|
|
7370
7380
|
}))));
|
|
7371
7381
|
}
|
|
7372
7382
|
function ExclamationCircleFill(props) {
|
|
7373
|
-
return /* @__PURE__ */ React$
|
|
7383
|
+
return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
|
|
7374
7384
|
width: "1em",
|
|
7375
7385
|
height: "1em",
|
|
7376
7386
|
viewBox: "0 0 48 48",
|
|
@@ -7381,13 +7391,13 @@ function ExclamationCircleFill(props) {
|
|
|
7381
7391
|
verticalAlign: "-0.125em"
|
|
7382
7392
|
}, props.style),
|
|
7383
7393
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
7384
|
-
}), /* @__PURE__ */ React$
|
|
7394
|
+
}), /* @__PURE__ */ React$4.createElement("g", {
|
|
7385
7395
|
id: "ExclamationCircleFill-ExclamationCircleFill",
|
|
7386
7396
|
stroke: "none",
|
|
7387
7397
|
strokeWidth: 1,
|
|
7388
7398
|
fill: "none",
|
|
7389
7399
|
fillRule: "evenodd"
|
|
7390
|
-
}, /* @__PURE__ */ React$
|
|
7400
|
+
}, /* @__PURE__ */ React$4.createElement("g", null, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7391
7401
|
id: "ExclamationCircleFill-\u77E9\u5F62",
|
|
7392
7402
|
fill: "#D76060",
|
|
7393
7403
|
opacity: 0,
|
|
@@ -7395,7 +7405,7 @@ function ExclamationCircleFill(props) {
|
|
|
7395
7405
|
y: 0,
|
|
7396
7406
|
width: 48,
|
|
7397
7407
|
height: 48
|
|
7398
|
-
}), /* @__PURE__ */ React$
|
|
7408
|
+
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7399
7409
|
d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M25.1,31 L22.9,31 C22.6790861,31 22.5,31.1790861 22.5,31.4 L22.5,31.4 L22.5,33.6 C22.5,33.8209139 22.6790861,34 22.9,34 L22.9,34 L25.1,34 C25.3209139,34 25.5,33.8209139 25.5,33.6 L25.5,33.6 L25.5,31.4 C25.5,31.1790861 25.3209139,31 25.1,31 L25.1,31 Z M25.1,14 L22.9,14 C22.6790861,14 22.5,14.1790861 22.5,14.4 L22.5,14.4 L22.5,27.6 C22.5,27.8209139 22.6790861,28 22.9,28 L22.9,28 L25.1,28 C25.3209139,28 25.5,27.8209139 25.5,27.6 L25.5,27.6 L25.5,14.4 C25.5,14.1790861 25.3209139,14 25.1,14 L25.1,14 Z",
|
|
7400
7410
|
id: "ExclamationCircleFill-\u5F62\u72B6\u7ED3\u5408",
|
|
7401
7411
|
fill: "currentColor",
|
|
@@ -7403,7 +7413,7 @@ function ExclamationCircleFill(props) {
|
|
|
7403
7413
|
}))));
|
|
7404
7414
|
}
|
|
7405
7415
|
function InformationCircleFill(props) {
|
|
7406
|
-
return /* @__PURE__ */ React$
|
|
7416
|
+
return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
|
|
7407
7417
|
width: "1em",
|
|
7408
7418
|
height: "1em",
|
|
7409
7419
|
viewBox: "0 0 48 48",
|
|
@@ -7414,15 +7424,15 @@ function InformationCircleFill(props) {
|
|
|
7414
7424
|
verticalAlign: "-0.125em"
|
|
7415
7425
|
}, props.style),
|
|
7416
7426
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
7417
|
-
}), /* @__PURE__ */ React$
|
|
7427
|
+
}), /* @__PURE__ */ React$4.createElement("g", {
|
|
7418
7428
|
id: "InformationCircleFill-InformationCircleFill",
|
|
7419
7429
|
stroke: "none",
|
|
7420
7430
|
strokeWidth: 1,
|
|
7421
7431
|
fill: "none",
|
|
7422
7432
|
fillRule: "evenodd"
|
|
7423
|
-
}, /* @__PURE__ */ React$
|
|
7433
|
+
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7424
7434
|
id: "InformationCircleFill-\u7F16\u7EC4"
|
|
7425
|
-
}, /* @__PURE__ */ React$
|
|
7435
|
+
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7426
7436
|
id: "InformationCircleFill-\u77E9\u5F62",
|
|
7427
7437
|
fill: "#FFFFFF",
|
|
7428
7438
|
opacity: 0,
|
|
@@ -7430,7 +7440,7 @@ function InformationCircleFill(props) {
|
|
|
7430
7440
|
y: 0,
|
|
7431
7441
|
width: 48,
|
|
7432
7442
|
height: 48
|
|
7433
|
-
}), /* @__PURE__ */ React$
|
|
7443
|
+
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7434
7444
|
d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M25.6,20 L21.4,20 C21.1790861,20 21,20.1790861 21,20.4 L21,20.4 L21,22.6 C21,22.8209139 21.1790861,23 21.4,23 L21.4,23 L22.6,23 C22.8209139,23 23,23.1790861 23,23.4 L23,23.4 L23,34.6 C23,34.8209139 23.1790861,35 23.4,35 L23.4,35 L25.6,35 C25.8209139,35 26,34.8209139 26,34.6 L26,34.6 L26,20.4 C26,20.1790861 25.8209139,20 25.6,20 L25.6,20 Z M25.6,14 L23.4,14 C23.1790861,14 23,14.1790861 23,14.4 L23,14.4 L23,16.6 C23,16.8209139 23.1790861,17 23.4,17 L23.4,17 L25.6,17 C25.8209139,17 26,16.8209139 26,16.6 L26,16.6 L26,14.4 C26,14.1790861 25.8209139,14 25.6,14 L25.6,14 Z",
|
|
7435
7445
|
id: "InformationCircleFill-\u5F62\u72B6\u7ED3\u5408",
|
|
7436
7446
|
fill: "currentColor",
|
|
@@ -7438,7 +7448,7 @@ function InformationCircleFill(props) {
|
|
|
7438
7448
|
}))));
|
|
7439
7449
|
}
|
|
7440
7450
|
function LeftOutline(props) {
|
|
7441
|
-
return /* @__PURE__ */ React$
|
|
7451
|
+
return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
|
|
7442
7452
|
width: "1em",
|
|
7443
7453
|
height: "1em",
|
|
7444
7454
|
viewBox: "0 0 48 48",
|
|
@@ -7449,15 +7459,15 @@ function LeftOutline(props) {
|
|
|
7449
7459
|
verticalAlign: "-0.125em"
|
|
7450
7460
|
}, props.style),
|
|
7451
7461
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
7452
|
-
}), /* @__PURE__ */ React$
|
|
7462
|
+
}), /* @__PURE__ */ React$4.createElement("g", {
|
|
7453
7463
|
id: "LeftOutline-LeftOutline",
|
|
7454
7464
|
stroke: "none",
|
|
7455
7465
|
strokeWidth: 1,
|
|
7456
7466
|
fill: "none",
|
|
7457
7467
|
fillRule: "evenodd"
|
|
7458
|
-
}, /* @__PURE__ */ React$
|
|
7468
|
+
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7459
7469
|
id: "LeftOutline-\u7F16\u7EC4"
|
|
7460
|
-
}, /* @__PURE__ */ React$
|
|
7470
|
+
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7461
7471
|
id: "LeftOutline-\u77E9\u5F62",
|
|
7462
7472
|
fill: "#FFFFFF",
|
|
7463
7473
|
opacity: 0,
|
|
@@ -7465,7 +7475,7 @@ function LeftOutline(props) {
|
|
|
7465
7475
|
y: 0,
|
|
7466
7476
|
width: 48,
|
|
7467
7477
|
height: 48
|
|
7468
|
-
}), /* @__PURE__ */ React$
|
|
7478
|
+
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7469
7479
|
d: "M31.7053818,5.11219264 L13.5234393,22.6612572 L13.5234393,22.6612572 C12.969699,23.2125856 12.9371261,24.0863155 13.4257204,24.6755735 L13.5234393,24.7825775 L31.7045714,42.8834676 C31.7795345,42.9580998 31.8810078,43 31.9867879,43 L35.1135102,43 C35.3344241,43 35.5135102,42.8209139 35.5135102,42.6 C35.5135102,42.4936115 35.4711279,42.391606 35.3957362,42.316542 L16.7799842,23.7816937 L16.7799842,23.7816937 L35.3764658,5.6866816 C35.5347957,5.53262122 35.5382568,5.27937888 35.3841964,5.121049 C35.3088921,5.04365775 35.205497,5 35.0975148,5 L31.9831711,5 C31.8795372,5 31.7799483,5.04022164 31.7053818,5.11219264 Z",
|
|
7470
7480
|
id: "LeftOutline-\u8DEF\u5F84",
|
|
7471
7481
|
fill: "currentColor",
|
|
@@ -7473,7 +7483,7 @@ function LeftOutline(props) {
|
|
|
7473
7483
|
}))));
|
|
7474
7484
|
}
|
|
7475
7485
|
function MinusOutline(props) {
|
|
7476
|
-
return /* @__PURE__ */ React$
|
|
7486
|
+
return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
|
|
7477
7487
|
width: "1em",
|
|
7478
7488
|
height: "1em",
|
|
7479
7489
|
viewBox: "0 0 48 48",
|
|
@@ -7484,15 +7494,15 @@ function MinusOutline(props) {
|
|
|
7484
7494
|
verticalAlign: "-0.125em"
|
|
7485
7495
|
}, props.style),
|
|
7486
7496
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
7487
|
-
}), /* @__PURE__ */ React$
|
|
7497
|
+
}), /* @__PURE__ */ React$4.createElement("g", {
|
|
7488
7498
|
id: "MinusOutline-MinusOutline",
|
|
7489
7499
|
stroke: "none",
|
|
7490
7500
|
strokeWidth: 1,
|
|
7491
7501
|
fill: "none",
|
|
7492
7502
|
fillRule: "evenodd"
|
|
7493
|
-
}, /* @__PURE__ */ React$
|
|
7503
|
+
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7494
7504
|
id: "MinusOutline-add"
|
|
7495
|
-
}, /* @__PURE__ */ React$
|
|
7505
|
+
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7496
7506
|
id: "MinusOutline-\u77E9\u5F62",
|
|
7497
7507
|
fill: "#FFFFFF",
|
|
7498
7508
|
opacity: 0,
|
|
@@ -7500,7 +7510,7 @@ function MinusOutline(props) {
|
|
|
7500
7510
|
y: 0,
|
|
7501
7511
|
width: 48,
|
|
7502
7512
|
height: 48
|
|
7503
|
-
}), /* @__PURE__ */ React$
|
|
7513
|
+
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7504
7514
|
d: "M41.1,22.5 C41.3209139,22.5 41.5,22.6790861 41.5,22.9 L41.5,25.1 C41.5,25.3209139 41.3209139,25.5 41.1,25.5 L6.9,25.5 C6.6790861,25.5 6.5,25.3209139 6.5,25.1 L6.5,22.9 C6.5,22.6790861 6.6790861,22.5 6.9,22.5 L41.1,22.5 Z",
|
|
7505
7515
|
id: "MinusOutline-\u8DEF\u5F84",
|
|
7506
7516
|
fill: "currentColor",
|
|
@@ -7508,7 +7518,7 @@ function MinusOutline(props) {
|
|
|
7508
7518
|
}))));
|
|
7509
7519
|
}
|
|
7510
7520
|
function QuestionCircleOutline(props) {
|
|
7511
|
-
return /* @__PURE__ */ React$
|
|
7521
|
+
return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
|
|
7512
7522
|
width: "1em",
|
|
7513
7523
|
height: "1em",
|
|
7514
7524
|
viewBox: "0 0 48 48",
|
|
@@ -7519,15 +7529,15 @@ function QuestionCircleOutline(props) {
|
|
|
7519
7529
|
verticalAlign: "-0.125em"
|
|
7520
7530
|
}, props.style),
|
|
7521
7531
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
7522
|
-
}), /* @__PURE__ */ React$
|
|
7532
|
+
}), /* @__PURE__ */ React$4.createElement("g", {
|
|
7523
7533
|
id: "QuestionCircleOutline-QuestionCircleOutline",
|
|
7524
7534
|
stroke: "none",
|
|
7525
7535
|
strokeWidth: 1,
|
|
7526
7536
|
fill: "none",
|
|
7527
7537
|
fillRule: "evenodd"
|
|
7528
|
-
}, /* @__PURE__ */ React$
|
|
7538
|
+
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7529
7539
|
id: "QuestionCircleOutline-\u7F16\u7EC4"
|
|
7530
|
-
}, /* @__PURE__ */ React$
|
|
7540
|
+
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7531
7541
|
id: "QuestionCircleOutline-\u77E9\u5F62",
|
|
7532
7542
|
fill: "#FFFFFF",
|
|
7533
7543
|
opacity: 0,
|
|
@@ -7535,7 +7545,7 @@ function QuestionCircleOutline(props) {
|
|
|
7535
7545
|
y: 0,
|
|
7536
7546
|
width: 48,
|
|
7537
7547
|
height: 48
|
|
7538
|
-
}), /* @__PURE__ */ React$
|
|
7548
|
+
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7539
7549
|
d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M24,5 C13.5065898,5 5,13.5065898 5,24 C5,34.4934102 13.5065898,43 24,43 C34.4934102,43 43,34.4934102 43,24 C43,13.5065898 34.4934102,5 24,5 Z M26,32.4 L26,34.6 C26,34.8209139 25.8209139,35 25.6,35 L23.4,35 C23.1790861,35 23,34.8209139 23,34.6 L23,32.4 C23,32.1790861 23.1790861,32 23.4,32 L25.6,32 C25.8209139,32 26,32.1790861 26,32.4 Z M24,12 C27.8659932,12 31,15.1340068 31,19 C31,22.1706393 28.8919961,24.8489278 26.0010432,25.7098107 L26.0001268,28.6 C25.9999299,28.8208643 25.8208644,28.9998731 25.6,29 L23.4,29 C23.1790861,29 23,28.8209139 23,28.6 L23,23.4 C23,23.1790861 23.1790861,23 23.4,23 L24,23 L24,23 C26.209139,23 28,21.209139 28,19 C28,16.790861 26.209139,15 24,15 C21.790861,15 20,16.790861 20,19 L17,19 C17,15.1340068 20.1340068,12 24,12 Z",
|
|
7540
7550
|
id: "QuestionCircleOutline-\u5F62\u72B6",
|
|
7541
7551
|
fill: "currentColor",
|
|
@@ -7543,7 +7553,7 @@ function QuestionCircleOutline(props) {
|
|
|
7543
7553
|
}))));
|
|
7544
7554
|
}
|
|
7545
7555
|
function RightOutline(props) {
|
|
7546
|
-
return /* @__PURE__ */ React$
|
|
7556
|
+
return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
|
|
7547
7557
|
width: "1em",
|
|
7548
7558
|
height: "1em",
|
|
7549
7559
|
viewBox: "0 0 48 48",
|
|
@@ -7554,15 +7564,15 @@ function RightOutline(props) {
|
|
|
7554
7564
|
verticalAlign: "-0.125em"
|
|
7555
7565
|
}, props.style),
|
|
7556
7566
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
7557
|
-
}), /* @__PURE__ */ React$
|
|
7567
|
+
}), /* @__PURE__ */ React$4.createElement("g", {
|
|
7558
7568
|
id: "RightOutline-RightOutline",
|
|
7559
7569
|
stroke: "none",
|
|
7560
7570
|
strokeWidth: 1,
|
|
7561
7571
|
fill: "none",
|
|
7562
7572
|
fillRule: "evenodd"
|
|
7563
|
-
}, /* @__PURE__ */ React$
|
|
7573
|
+
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7564
7574
|
id: "RightOutline-RightOutlined"
|
|
7565
|
-
}, /* @__PURE__ */ React$
|
|
7575
|
+
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7566
7576
|
id: "RightOutline-\u77E9\u5F62",
|
|
7567
7577
|
fill: "#FFFFFF",
|
|
7568
7578
|
opacity: 0,
|
|
@@ -7570,7 +7580,7 @@ function RightOutline(props) {
|
|
|
7570
7580
|
y: 0,
|
|
7571
7581
|
width: 48,
|
|
7572
7582
|
height: 48
|
|
7573
|
-
}), /* @__PURE__ */ React$
|
|
7583
|
+
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7574
7584
|
d: "M17.3947957,5.11219264 L35.5767382,22.6612572 L35.5767382,22.6612572 C36.1304785,23.2125856 36.1630514,24.0863155 35.6744571,24.6755735 L35.5767382,24.7825775 L17.3956061,42.8834676 C17.320643,42.9580998 17.2191697,43 17.1133896,43 L13.9866673,43 C13.7657534,43 13.5866673,42.8209139 13.5866673,42.6 C13.5866673,42.4936115 13.6290496,42.391606 13.7044413,42.316542 L32.3201933,23.7816937 L32.3201933,23.7816937 L13.7237117,5.6866816 C13.5653818,5.53262122 13.5619207,5.27937888 13.7159811,5.121049 C13.7912854,5.04365775 13.8946805,5 14.0026627,5 L17.1170064,5 C17.2206403,5 17.3202292,5.04022164 17.3947957,5.11219264 Z",
|
|
7575
7585
|
id: "RightOutline-right",
|
|
7576
7586
|
fill: "currentColor",
|
|
@@ -7578,7 +7588,7 @@ function RightOutline(props) {
|
|
|
7578
7588
|
}))));
|
|
7579
7589
|
}
|
|
7580
7590
|
function SearchOutline(props) {
|
|
7581
|
-
return /* @__PURE__ */ React$
|
|
7591
|
+
return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
|
|
7582
7592
|
width: "1em",
|
|
7583
7593
|
height: "1em",
|
|
7584
7594
|
viewBox: "0 0 48 48",
|
|
@@ -7589,15 +7599,15 @@ function SearchOutline(props) {
|
|
|
7589
7599
|
verticalAlign: "-0.125em"
|
|
7590
7600
|
}, props.style),
|
|
7591
7601
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
7592
|
-
}), /* @__PURE__ */ React$
|
|
7602
|
+
}), /* @__PURE__ */ React$4.createElement("g", {
|
|
7593
7603
|
id: "SearchOutline-SearchOutline",
|
|
7594
7604
|
stroke: "none",
|
|
7595
7605
|
strokeWidth: 1,
|
|
7596
7606
|
fill: "none",
|
|
7597
7607
|
fillRule: "evenodd"
|
|
7598
|
-
}, /* @__PURE__ */ React$
|
|
7608
|
+
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7599
7609
|
id: "SearchOutline-\u7F16\u7EC4"
|
|
7600
|
-
}, /* @__PURE__ */ React$
|
|
7610
|
+
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7601
7611
|
id: "SearchOutline-\u77E9\u5F62",
|
|
7602
7612
|
fill: "#FFFFFF",
|
|
7603
7613
|
opacity: 0,
|
|
@@ -7605,7 +7615,7 @@ function SearchOutline(props) {
|
|
|
7605
7615
|
y: 0,
|
|
7606
7616
|
width: 48,
|
|
7607
7617
|
height: 48
|
|
7608
|
-
}), /* @__PURE__ */ React$
|
|
7618
|
+
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7609
7619
|
d: "M10.2434135,10.1505371 C17.2346315,3.28315429 28.5696354,3.28315429 35.5608534,10.1505371 C42.3159331,16.7859644 42.5440954,27.4048667 36.2453405,34.3093889 L43.7095294,41.6422249 C43.8671196,41.7970419 43.8693677,42.0502979 43.7145508,42.2078881 C43.7128864,42.2095822 43.7112069,42.2112616 43.7095126,42.2129259 L42.1705322,43.7246464 C42.014915,43.8775072 41.7655181,43.8775006 41.6099089,43.7246316 L34.0775268,36.3248916 L34.0775268,36.3248916 C27.0485579,41.8551751 16.7593545,41.4200547 10.2434135,35.0195303 C3.25219551,28.1521474 3.25219551,17.0179199 10.2434135,10.1505371 Z M12.3532001,12.2229532 C6.52718516,17.9457722 6.52718516,27.2242951 12.3532001,32.9471142 C18.1792151,38.6699332 27.6250517,38.6699332 33.4510667,32.9471142 C39.2770817,27.2242951 39.2770817,17.9457722 33.4510667,12.2229532 C27.6250517,6.50013419 18.1792151,6.50013419 12.3532001,12.2229532 Z",
|
|
7610
7620
|
id: "SearchOutline-\u5F62\u72B6",
|
|
7611
7621
|
fill: "currentColor",
|
|
@@ -7613,7 +7623,7 @@ function SearchOutline(props) {
|
|
|
7613
7623
|
}))));
|
|
7614
7624
|
}
|
|
7615
7625
|
function SoundOutline(props) {
|
|
7616
|
-
return /* @__PURE__ */ React$
|
|
7626
|
+
return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
|
|
7617
7627
|
width: "1em",
|
|
7618
7628
|
height: "1em",
|
|
7619
7629
|
viewBox: "0 0 48 48",
|
|
@@ -7624,15 +7634,15 @@ function SoundOutline(props) {
|
|
|
7624
7634
|
verticalAlign: "-0.125em"
|
|
7625
7635
|
}, props.style),
|
|
7626
7636
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
7627
|
-
}), /* @__PURE__ */ React$
|
|
7637
|
+
}), /* @__PURE__ */ React$4.createElement("g", {
|
|
7628
7638
|
id: "SoundOutline-SoundOutline",
|
|
7629
7639
|
stroke: "none",
|
|
7630
7640
|
strokeWidth: 1,
|
|
7631
7641
|
fill: "none",
|
|
7632
7642
|
fillRule: "evenodd"
|
|
7633
|
-
}, /* @__PURE__ */ React$
|
|
7643
|
+
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7634
7644
|
id: "SoundOutline-\u7F16\u7EC4"
|
|
7635
|
-
}, /* @__PURE__ */ React$
|
|
7645
|
+
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7636
7646
|
id: "SoundOutline-\u77E9\u5F62",
|
|
7637
7647
|
fill: "#FFFFFF",
|
|
7638
7648
|
opacity: 0,
|
|
@@ -7640,7 +7650,7 @@ function SoundOutline(props) {
|
|
|
7640
7650
|
y: 0,
|
|
7641
7651
|
width: 48,
|
|
7642
7652
|
height: 48
|
|
7643
|
-
}), /* @__PURE__ */ React$
|
|
7653
|
+
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7644
7654
|
d: "M28.267333,7.42364522 C28.6217345,7.94869119 28.8108515,8.56559899 28.8108515,9.19662571 L28.8108515,38.803714 C28.8108515,40.568974 27.3619563,42 25.5746535,42 C24.9357472,42 24.311136,41.8132153 23.7795338,41.4631847 L13.5176584,34.7058449 L8.3149307,34.706256 C5.93186028,34.706256 4,32.7982213 4,30.4445413 L4,17.6593971 C4,15.3057171 5.93186028,13.3976824 8.3149307,13.3976824 L13.3601634,13.3972713 L23.7795338,6.53715498 C25.2666597,5.55796489 27.2759158,5.95486009 28.267333,7.42364522 Z M40.4649231,8.99868666 C40.5511218,9.17742383 40.619996,9.32223121 40.6715457,9.43310881 C42.8085201,14.0295034 44,19.1437027 44,24.532755 C44,29.7837404 42.8687892,34.7737758 40.8339269,39.2781083 C40.7469512,39.4706362 40.6237802,39.7330988 40.4644141,40.0654961 C40.3689469,40.2647533 40.1300031,40.3488277 39.9307715,40.2533072 C39.9306414,40.2532448 39.9305113,40.2531824 39.9303812,40.2531198 C39.6706542,40.1282492 39.4751102,40.0342363 39.3437492,39.9710811 C38.9410401,39.777468 38.6130663,39.619786 38.3598279,39.498035 C38.2070716,39.4245934 38.0007263,39.3253875 37.740792,39.2004172 C37.5419104,39.104853 37.4580092,38.8662856 37.5532468,38.6672473 C37.7034937,38.3532445 37.8197479,38.104744 37.9020095,37.9217457 C39.7416376,33.8293278 40.763802,29.2989389 40.763802,24.532755 C40.763802,19.6931433 39.7099001,15.0966478 37.8164042,10.9549334 C37.7526807,10.8155487 37.6652043,10.6300308 37.5539748,10.3983796 C37.4585265,10.1993116 37.5423279,9.96050973 37.7412949,9.8648511 C37.9298799,9.7741839 38.0818373,9.70112639 38.1971671,9.64567856 C38.5403397,9.48068928 39.0100918,9.2548436 39.6064234,8.9681415 C39.6867211,8.9295363 39.7949893,8.87748349 39.9312282,8.81198307 C40.1301627,8.71623553 40.3690201,8.79982709 40.4649231,8.99868666 Z M24.954689,9.60481048 L14.4401642,16.5275765 C14.3748695,16.5705665 14.2984086,16.5934809 14.2202323,16.5934873 L8.3149307,16.5939685 L8.3149307,16.5939685 C7.76171792,16.5939685 7.30576856,17.0052668 7.24345545,17.5351457 L7.23619803,17.6593971 L7.23619803,30.4445413 C7.23619803,30.9909313 7.65263219,31.4412574 8.18892037,31.502802 L8.31467178,31.50997 L14.3775506,31.5094909 C14.4557573,31.5094847 14.5322502,31.5324045 14.5975676,31.5754153 L24.9546682,38.39546 C25.139173,38.5169545 25.3872345,38.4658746 25.508729,38.2813698 C25.5517339,38.2160614 25.5746535,38.1395804 25.5746535,38.0613845 L25.5746535,9.93889975 C25.5746535,9.71798585 25.3955674,9.53889975 25.1746535,9.53889975 C25.0964661,9.53889975 25.019993,9.56181436 24.954689,9.60481048 Z M34.6436115,11.798648 C34.7547335,12.030794 34.8419854,12.2167889 34.9053671,12.3566328 C36.590502,16.0746763 37.5276039,20.1956294 37.5276039,24.532755 C37.5276039,28.7641394 36.635639,32.7897635 35.0272837,36.4362183 C34.9380427,36.6385449 34.8101552,36.9146706 34.6436211,37.2645952 C34.5486602,37.4640326 34.3100191,37.5487723 34.1105639,37.4538487 C34.1101091,37.4536323 34.1096547,37.453415 34.1092007,37.4531968 C33.9190573,37.3618222 33.7721424,37.2912213 33.6684561,37.2413942 C33.186467,37.0097713 32.80073,36.824403 32.5112451,36.6852892 C32.3647538,36.6148919 32.1675294,36.5201144 31.9195719,36.4009569 C31.7210538,36.3055358 31.6370188,36.067582 31.7316042,35.8686644 C31.8690322,35.5796464 31.9753727,35.3500122 32.0506255,35.1797617 C33.4919206,31.9190071 34.2914059,28.3180945 34.2914059,24.532755 C34.2914059,20.6930477 33.46879,17.0431031 31.9881259,13.7454591 C31.9261905,13.6075203 31.840749,13.424362 31.7318014,13.1959842 C31.636885,12.9969991 31.7208632,12.7587263 31.919573,12.6632348 C32.0929373,12.5799233 32.2332164,12.5125112 32.3404102,12.4609985 C32.6888449,12.2935556 33.1655706,12.0644616 33.7705875,11.7737163 C33.8540198,11.7336223 33.9670458,11.6793068 34.1096655,11.6107699 C34.3087736,11.5152168 34.5476881,11.5990382 34.6433466,11.7980956 C34.643435,11.7982797 34.6435233,11.7984638 34.6436115,11.798648 Z",
|
|
7645
7655
|
id: "SoundOutline-\u5F62\u72B6",
|
|
7646
7656
|
fill: "currentColor",
|
|
@@ -7648,7 +7658,7 @@ function SoundOutline(props) {
|
|
|
7648
7658
|
}))));
|
|
7649
7659
|
}
|
|
7650
7660
|
function TextDeletionOutline(props) {
|
|
7651
|
-
return /* @__PURE__ */ React$
|
|
7661
|
+
return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
|
|
7652
7662
|
width: "1em",
|
|
7653
7663
|
height: "1em",
|
|
7654
7664
|
viewBox: "0 0 48 48",
|
|
@@ -7659,15 +7669,15 @@ function TextDeletionOutline(props) {
|
|
|
7659
7669
|
verticalAlign: "-0.125em"
|
|
7660
7670
|
}, props.style),
|
|
7661
7671
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
7662
|
-
}), /* @__PURE__ */ React$
|
|
7672
|
+
}), /* @__PURE__ */ React$4.createElement("g", {
|
|
7663
7673
|
id: "TextDeletionOutline-TextDeletionOutline",
|
|
7664
7674
|
stroke: "none",
|
|
7665
7675
|
strokeWidth: 1,
|
|
7666
7676
|
fill: "none",
|
|
7667
7677
|
fillRule: "evenodd"
|
|
7668
|
-
}, /* @__PURE__ */ React$
|
|
7678
|
+
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7669
7679
|
id: "TextDeletionOutline-\u7F16\u7EC4"
|
|
7670
|
-
}, /* @__PURE__ */ React$
|
|
7680
|
+
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7671
7681
|
id: "TextDeletionOutline-\u77E9\u5F62",
|
|
7672
7682
|
fill: "#FFFFFF",
|
|
7673
7683
|
opacity: 0,
|
|
@@ -7675,7 +7685,7 @@ function TextDeletionOutline(props) {
|
|
|
7675
7685
|
y: 0,
|
|
7676
7686
|
width: 48,
|
|
7677
7687
|
height: 48
|
|
7678
|
-
}), /* @__PURE__ */ React$
|
|
7688
|
+
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7679
7689
|
d: "M38.5492302,6 C41.5596051,6 44,8.46240906 44,11.499981 L44,35.5 C44,38.5375742 41.5596051,41.000013 38.54923,41.000013 L17.3058462,41.000013 C14.6665152,41.000013 12.2347138,39.555982 10.9529738,37.2279238 L4.91451284,27.0612608 C3.6951623,24.8464932 3.6951623,22.1535354 4.91451335,19.9387516 L10.9529743,9.77208856 C12.234697,7.44403098 14.6665154,6 17.3058464,6 L38.5492302,6 Z M38.5492273,8.74994707 L17.3058465,8.74994707 C15.7329163,8.74994707 14.2719651,9.57120176 13.4439762,10.9206455 L13.3349608,11.1076457 L7.29739408,21.2743087 C6.57566975,22.5850072 6.53495505,24.1690434 7.18837846,25.5157286 L7.29739386,25.7265623 L13.3349605,35.8932253 C14.0992225,37.2803788 15.5202936,38.1698544 17.0914483,38.2444783 L17.3058454,38.2499783 L38.5492292,38.2499783 C39.9923716,38.2499783 41.1854088,37.114979 41.2700704,35.6613101 L41.2746127,35.4999769 L41.2746127,11.4999513 C41.2746127,10.0436198 40.1496291,8.83987037 38.7089651,8.75452144 L38.5492273,8.74994707 Z M22.3492842,17 C22.4547968,17 22.556036,17.0416892 22.6309531,17.1159883 L26.757,21.208 L30.8830469,17.1159883 C30.957964,17.0416892 31.0592032,17 31.1647158,17 L34.2719196,17 C34.4928335,17 34.6719196,17.1790861 34.6719196,17.4 C34.6719196,17.5067321 34.6292639,17.6090378 34.5534423,17.6841566 L28.879,23.306 L34.8245071,29.1968543 C34.9814364,29.3523411 34.9826059,29.6056044 34.8271191,29.7625337 C34.7520011,29.8383486 34.6497001,29.881 34.5429734,29.881 L31.4366959,29.881 C31.331195,29.881 31.2299662,29.8393201 31.1550512,29.7650357 L26.758,25.405 L22.3599432,29.7650669 C22.2850309,29.8393322 22.1838155,29.881 22.07833,29.881 L18.9720266,29.881 C18.7511127,29.881 18.5720266,29.7019139 18.5720266,29.481 C18.5720266,29.3742733 18.614678,29.2719723 18.6904929,29.1968543 L24.636,23.306 L18.9624269,17.6841345 C18.8055037,17.5286415 18.8043444,17.2753782 18.9598374,17.118455 C19.0349545,17.042647 19.1372506,17 19.2439719,17 L22.3492842,17 Z",
|
|
7680
7690
|
id: "TextDeletionOutline-\u5F62\u72B6\u7ED3\u5408",
|
|
7681
7691
|
fill: "currentColor",
|
|
@@ -7694,7 +7704,7 @@ const defaultPopupBaseProps = {
|
|
|
7694
7704
|
visible: false
|
|
7695
7705
|
};
|
|
7696
7706
|
function useInnerVisible(outerVisible) {
|
|
7697
|
-
const [innerVisible, setInnerVisible] = useState(outerVisible);
|
|
7707
|
+
const [innerVisible, setInnerVisible] = useState$1(outerVisible);
|
|
7698
7708
|
useIsomorphicLayoutEffect$2(() => {
|
|
7699
7709
|
setInnerVisible(outerVisible);
|
|
7700
7710
|
}, [outerVisible]);
|
|
@@ -7707,7 +7717,7 @@ const defaultProps$12 = Object.assign(Object.assign({}, defaultPopupBaseProps),
|
|
|
7707
7717
|
const Popup$1 = (p) => {
|
|
7708
7718
|
const props = mergeProps(defaultProps$12, p);
|
|
7709
7719
|
const bodyCls = classNames(`${classPrefix$1k}-body`, props.bodyClassName, `${classPrefix$1k}-body-position-${props.position}`);
|
|
7710
|
-
const [active, setActive] = useState(props.visible);
|
|
7720
|
+
const [active, setActive] = useState$1(props.visible);
|
|
7711
7721
|
useIsomorphicLayoutEffect$2(() => {
|
|
7712
7722
|
if (props.visible) {
|
|
7713
7723
|
setActive(true);
|
|
@@ -7874,9 +7884,9 @@ function renderToBody(element) {
|
|
|
7874
7884
|
}
|
|
7875
7885
|
function renderImperatively(element) {
|
|
7876
7886
|
const Wrapper2 = React__default.forwardRef((_, ref) => {
|
|
7877
|
-
const [visible, setVisible] = useState(false);
|
|
7887
|
+
const [visible, setVisible] = useState$1(false);
|
|
7878
7888
|
const closedRef = useRef(false);
|
|
7879
|
-
const [elementToRender, setElementToRender] = useState(element);
|
|
7889
|
+
const [elementToRender, setElementToRender] = useState$1(element);
|
|
7880
7890
|
const keyRef = useRef(0);
|
|
7881
7891
|
useEffect(() => {
|
|
7882
7892
|
if (!closedRef.current) {
|
|
@@ -8087,12 +8097,12 @@ const defaultProps$10 = {
|
|
|
8087
8097
|
};
|
|
8088
8098
|
const Image$2 = staged_1((p) => {
|
|
8089
8099
|
const props = mergeProps(defaultProps$10, p);
|
|
8090
|
-
const [loaded, setLoaded] = useState(false);
|
|
8091
|
-
const [failed, setFailed] = useState(false);
|
|
8100
|
+
const [loaded, setLoaded] = useState$1(false);
|
|
8101
|
+
const [failed, setFailed] = useState$1(false);
|
|
8092
8102
|
const ref = useRef(null);
|
|
8093
8103
|
let src = props.src;
|
|
8094
8104
|
let srcSet = props.srcSet;
|
|
8095
|
-
const [initialized, setInitialized] = useState(!props.lazy);
|
|
8105
|
+
const [initialized, setInitialized] = useState$1(!props.lazy);
|
|
8096
8106
|
src = initialized ? props.src : void 0;
|
|
8097
8107
|
srcSet = initialized ? props.srcSet : void 0;
|
|
8098
8108
|
useIsomorphicUpdateLayoutEffect(() => {
|
|
@@ -8299,7 +8309,7 @@ function isPromise(obj) {
|
|
|
8299
8309
|
return !!obj && typeof obj === "object" && typeof obj.then === "function";
|
|
8300
8310
|
}
|
|
8301
8311
|
function isIOS() {
|
|
8302
|
-
return canUseDom ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : false;
|
|
8312
|
+
return canUseDom$2 ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : false;
|
|
8303
8313
|
}
|
|
8304
8314
|
const classPrefix$1c = `adm-button`;
|
|
8305
8315
|
const defaultProps$Z = {
|
|
@@ -8316,7 +8326,7 @@ const defaultProps$Z = {
|
|
|
8316
8326
|
};
|
|
8317
8327
|
const Button$1 = forwardRef((p, ref) => {
|
|
8318
8328
|
const props = mergeProps(defaultProps$Z, p);
|
|
8319
|
-
const [innerLoading, setInnerLoading] = useState(false);
|
|
8329
|
+
const [innerLoading, setInnerLoading] = useState$1(false);
|
|
8320
8330
|
const nativeButtonRef = useRef(null);
|
|
8321
8331
|
const loading = props.loading === "auto" ? innerLoading : props.loading;
|
|
8322
8332
|
const disabled = props.disabled || loading;
|
|
@@ -8519,8 +8529,8 @@ const Calendar$1 = forwardRef((p, ref) => {
|
|
|
8519
8529
|
}
|
|
8520
8530
|
}
|
|
8521
8531
|
});
|
|
8522
|
-
const [intermediate, setIntermediate] = useState(false);
|
|
8523
|
-
const [current, setCurrent] = useState(() => dayjs(dateRange ? dateRange[0] : today).date(1));
|
|
8532
|
+
const [intermediate, setIntermediate] = useState$1(false);
|
|
8533
|
+
const [current, setCurrent] = useState$1(() => dayjs(dateRange ? dateRange[0] : today).date(1));
|
|
8524
8534
|
useUpdateEffect(() => {
|
|
8525
8535
|
var _a;
|
|
8526
8536
|
(_a = props.onPageChange) === null || _a === void 0 ? void 0 : _a.call(props, current.year(), current.month() + 1);
|
|
@@ -8597,11 +8607,17 @@ const Calendar$1 = forwardRef((p, ref) => {
|
|
|
8597
8607
|
let isSelect = false;
|
|
8598
8608
|
let isBegin = false;
|
|
8599
8609
|
let isEnd = false;
|
|
8610
|
+
let isSelectRowBegin = false;
|
|
8611
|
+
let isSelectRowEnd = false;
|
|
8600
8612
|
if (dateRange) {
|
|
8601
8613
|
const [begin, end] = dateRange;
|
|
8602
8614
|
isBegin = d.isSame(begin, "day");
|
|
8603
8615
|
isEnd = d.isSame(end, "day");
|
|
8604
8616
|
isSelect = isBegin || isEnd || d.isAfter(begin, "day") && d.isBefore(end, "day");
|
|
8617
|
+
if (isSelect) {
|
|
8618
|
+
isSelectRowBegin = (cells.length % 7 === 0 || d.isSame(d.startOf("month"), "day")) && !isBegin;
|
|
8619
|
+
isSelectRowEnd = (cells.length % 7 === 6 || d.isSame(d.endOf("month"), "day")) && !isEnd;
|
|
8620
|
+
}
|
|
8605
8621
|
}
|
|
8606
8622
|
const inThisMonth = d.month() === current.month();
|
|
8607
8623
|
const disabled = props.shouldDisableDate ? props.shouldDisableDate(d.toDate()) : maxDay && d.isAfter(maxDay, "day") || minDay && d.isBefore(minDay, "day");
|
|
@@ -8611,7 +8627,9 @@ const Calendar$1 = forwardRef((p, ref) => {
|
|
|
8611
8627
|
[`${classPrefix$1b}-cell-today`]: d.isSame(today, "day"),
|
|
8612
8628
|
[`${classPrefix$1b}-cell-selected`]: isSelect,
|
|
8613
8629
|
[`${classPrefix$1b}-cell-selected-begin`]: isBegin,
|
|
8614
|
-
[`${classPrefix$1b}-cell-selected-end`]: isEnd
|
|
8630
|
+
[`${classPrefix$1b}-cell-selected-end`]: isEnd,
|
|
8631
|
+
[`${classPrefix$1b}-cell-selected-row-begin`]: isSelectRowBegin,
|
|
8632
|
+
[`${classPrefix$1b}-cell-selected-row-end`]: isSelectRowEnd
|
|
8615
8633
|
}),
|
|
8616
8634
|
onClick: () => {
|
|
8617
8635
|
if (!props.selectionMode)
|
|
@@ -10669,7 +10687,7 @@ function resolveWith(config2 = {}, resolvers) {
|
|
|
10669
10687
|
}
|
|
10670
10688
|
return result2;
|
|
10671
10689
|
}
|
|
10672
|
-
function parse
|
|
10690
|
+
function parse(newConfig, gestureKey, _config = {}) {
|
|
10673
10691
|
const _ref = newConfig, {
|
|
10674
10692
|
target,
|
|
10675
10693
|
eventOptions,
|
|
@@ -10787,7 +10805,7 @@ class Controller {
|
|
|
10787
10805
|
this.nativeHandlers = nativeHandlers;
|
|
10788
10806
|
}
|
|
10789
10807
|
applyConfig(config2, gestureKey) {
|
|
10790
|
-
this.config = parse
|
|
10808
|
+
this.config = parse(config2, gestureKey, this.config);
|
|
10791
10809
|
}
|
|
10792
10810
|
clean() {
|
|
10793
10811
|
this._targetEventStore.clean();
|
|
@@ -11241,7 +11259,7 @@ function generateColumnsExtend(rawColumns, val) {
|
|
|
11241
11259
|
function useColumnsExtend(rawColumns, value) {
|
|
11242
11260
|
return useMemo(() => generateColumnsExtend(rawColumns, value), [rawColumns, value]);
|
|
11243
11261
|
}
|
|
11244
|
-
const defaultRenderLabel
|
|
11262
|
+
const defaultRenderLabel = (item) => item.label;
|
|
11245
11263
|
const spinLoading = "";
|
|
11246
11264
|
var shim = { exports: {} };
|
|
11247
11265
|
var useSyncExternalStoreShim_development = {};
|
|
@@ -11461,7 +11479,7 @@ const SpinLoading = SpinLoading$1;
|
|
|
11461
11479
|
const classPrefix$15 = `adm-picker-view`;
|
|
11462
11480
|
const defaultProps$W = {
|
|
11463
11481
|
defaultValue: [],
|
|
11464
|
-
renderLabel: defaultRenderLabel
|
|
11482
|
+
renderLabel: defaultRenderLabel,
|
|
11465
11483
|
mouseWheel: false,
|
|
11466
11484
|
loadingContent: React__default.createElement("div", {
|
|
11467
11485
|
className: `${classPrefix$15}-loading-content`
|
|
@@ -11469,7 +11487,7 @@ const defaultProps$W = {
|
|
|
11469
11487
|
};
|
|
11470
11488
|
const PickerView$1 = memo((p) => {
|
|
11471
11489
|
const props = mergeProps(defaultProps$W, p);
|
|
11472
|
-
const [innerValue, setInnerValue] = useState(props.value === void 0 ? props.defaultValue : props.value);
|
|
11490
|
+
const [innerValue, setInnerValue] = useState$1(props.value === void 0 ? props.defaultValue : props.value);
|
|
11473
11491
|
useEffect(() => {
|
|
11474
11492
|
if (props.value === void 0)
|
|
11475
11493
|
return;
|
|
@@ -11535,7 +11553,7 @@ const classPrefix$14 = `adm-picker`;
|
|
|
11535
11553
|
const defaultProps$V = {
|
|
11536
11554
|
defaultValue: [],
|
|
11537
11555
|
closeOnMaskClick: true,
|
|
11538
|
-
renderLabel: defaultRenderLabel
|
|
11556
|
+
renderLabel: defaultRenderLabel,
|
|
11539
11557
|
destroyOnClose: false,
|
|
11540
11558
|
forceRender: false
|
|
11541
11559
|
};
|
|
@@ -11578,7 +11596,7 @@ const Picker$1 = memo(forwardRef((p, ref) => {
|
|
|
11578
11596
|
}
|
|
11579
11597
|
}));
|
|
11580
11598
|
const extend = useColumnsExtend(props.columns, value);
|
|
11581
|
-
const [innerValue, setInnerValue] = useState(value);
|
|
11599
|
+
const [innerValue, setInnerValue] = useState$1(value);
|
|
11582
11600
|
useEffect(() => {
|
|
11583
11601
|
if (innerValue !== value) {
|
|
11584
11602
|
setInnerValue(value);
|
|
@@ -11659,7 +11677,7 @@ Picker$1.displayName = "Picker";
|
|
|
11659
11677
|
function prompt$3(props) {
|
|
11660
11678
|
return new Promise((resolve) => {
|
|
11661
11679
|
const Wrapper2 = () => {
|
|
11662
|
-
const [visible, setVisible] = useState(false);
|
|
11680
|
+
const [visible, setVisible] = useState$1(false);
|
|
11663
11681
|
useEffect(() => {
|
|
11664
11682
|
setVisible(true);
|
|
11665
11683
|
}, []);
|
|
@@ -11741,7 +11759,7 @@ const CascadePicker = forwardRef((props, ref) => {
|
|
|
11741
11759
|
function prompt$2(props) {
|
|
11742
11760
|
return new Promise((resolve) => {
|
|
11743
11761
|
const Wrapper2 = () => {
|
|
11744
|
-
const [visible, setVisible] = useState(false);
|
|
11762
|
+
const [visible, setVisible] = useState$1(false);
|
|
11745
11763
|
useEffect(() => {
|
|
11746
11764
|
setVisible(true);
|
|
11747
11765
|
}, []);
|
|
@@ -12260,7 +12278,7 @@ const CascaderView$1 = (p) => {
|
|
|
12260
12278
|
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, val, generateValueExtend(val));
|
|
12261
12279
|
}
|
|
12262
12280
|
}));
|
|
12263
|
-
const [tabActiveIndex, setTabActiveIndex] = useState(0);
|
|
12281
|
+
const [tabActiveIndex, setTabActiveIndex] = useState$1(0);
|
|
12264
12282
|
useUpdateEffect(() => {
|
|
12265
12283
|
var _a;
|
|
12266
12284
|
(_a = props.onTabsChange) === null || _a === void 0 ? void 0 : _a.call(props, tabActiveIndex);
|
|
@@ -12405,7 +12423,7 @@ const Cascader = forwardRef((p, ref) => {
|
|
|
12405
12423
|
}
|
|
12406
12424
|
}));
|
|
12407
12425
|
const generateValueExtend = useCascaderValueExtend(props.options);
|
|
12408
|
-
const [innerValue, setInnerValue] = useState(value);
|
|
12426
|
+
const [innerValue, setInnerValue] = useState$1(value);
|
|
12409
12427
|
useEffect(() => {
|
|
12410
12428
|
if (!visible) {
|
|
12411
12429
|
setInnerValue(value);
|
|
@@ -12468,7 +12486,7 @@ const Cascader = forwardRef((p, ref) => {
|
|
|
12468
12486
|
function prompt$1(props) {
|
|
12469
12487
|
return new Promise((resolve) => {
|
|
12470
12488
|
const Wrapper2 = () => {
|
|
12471
|
-
const [visible, setVisible] = useState(false);
|
|
12489
|
+
const [visible, setVisible] = useState$1(false);
|
|
12472
12490
|
useEffect(() => {
|
|
12473
12491
|
setVisible(true);
|
|
12474
12492
|
}, []);
|
|
@@ -12528,7 +12546,7 @@ const CenterPopup$1 = (p) => {
|
|
|
12528
12546
|
}
|
|
12529
12547
|
}
|
|
12530
12548
|
});
|
|
12531
|
-
const [active, setActive] = useState(props.visible);
|
|
12549
|
+
const [active, setActive] = useState$1(props.visible);
|
|
12532
12550
|
useIsomorphicLayoutEffect$2(() => {
|
|
12533
12551
|
if (props.visible) {
|
|
12534
12552
|
setActive(true);
|
|
@@ -12910,6 +12928,7 @@ var isLeapYear$1 = { exports: {} };
|
|
|
12910
12928
|
});
|
|
12911
12929
|
})(isLeapYear$1);
|
|
12912
12930
|
const isLeapYear = isLeapYear$1.exports;
|
|
12931
|
+
const TILL_NOW = "TILL_NOW";
|
|
12913
12932
|
dayjs.extend(isoWeek);
|
|
12914
12933
|
dayjs.extend(isoWeeksInYear);
|
|
12915
12934
|
dayjs.extend(isLeapYear);
|
|
@@ -12921,17 +12940,7 @@ const precisionRankRecord$1 = {
|
|
|
12921
12940
|
minute: 4,
|
|
12922
12941
|
second: 5
|
|
12923
12942
|
};
|
|
12924
|
-
function
|
|
12925
|
-
switch (type4) {
|
|
12926
|
-
case "minute":
|
|
12927
|
-
case "second":
|
|
12928
|
-
case "hour":
|
|
12929
|
-
return ("0" + data.toString()).slice(-2);
|
|
12930
|
-
default:
|
|
12931
|
-
return data.toString();
|
|
12932
|
-
}
|
|
12933
|
-
}
|
|
12934
|
-
function generateDatePickerColumns$2(selected, min2, max2, precision, renderLabel, filter) {
|
|
12943
|
+
function generateDatePickerColumns$2(selected, min2, max2, precision, renderLabel, filter, tillNow) {
|
|
12935
12944
|
const ret = [];
|
|
12936
12945
|
const minYear = min2.getFullYear();
|
|
12937
12946
|
const minMonth = min2.getMonth() + 1;
|
|
@@ -13045,6 +13054,17 @@ function generateDatePickerColumns$2(selected, min2, max2, precision, renderLabe
|
|
|
13045
13054
|
};
|
|
13046
13055
|
}));
|
|
13047
13056
|
}
|
|
13057
|
+
if (tillNow) {
|
|
13058
|
+
ret[0].push({
|
|
13059
|
+
label: renderLabel("now", null),
|
|
13060
|
+
value: TILL_NOW
|
|
13061
|
+
});
|
|
13062
|
+
if (TILL_NOW === (selected === null || selected === void 0 ? void 0 : selected[0])) {
|
|
13063
|
+
for (let i = 1; i < ret.length; i += 1) {
|
|
13064
|
+
ret[i] = [];
|
|
13065
|
+
}
|
|
13066
|
+
}
|
|
13067
|
+
}
|
|
13048
13068
|
return ret;
|
|
13049
13069
|
}
|
|
13050
13070
|
function convertDateToStringArray$2(date4) {
|
|
@@ -13070,9 +13090,6 @@ const precisionRankRecord = {
|
|
|
13070
13090
|
week: 1,
|
|
13071
13091
|
"week-day": 2
|
|
13072
13092
|
};
|
|
13073
|
-
function defaultRenderLabel$1(type4, data) {
|
|
13074
|
-
return data.toString();
|
|
13075
|
-
}
|
|
13076
13093
|
function generateDatePickerColumns$1(selected, min2, max2, precision, renderLabel, filter) {
|
|
13077
13094
|
const ret = [];
|
|
13078
13095
|
const minYear = min2.getFullYear();
|
|
@@ -13175,36 +13192,56 @@ const convertDateToStringArray = (date4, precision) => {
|
|
|
13175
13192
|
}
|
|
13176
13193
|
};
|
|
13177
13194
|
const convertStringArrayToDate = (value, precision) => {
|
|
13195
|
+
if ((value === null || value === void 0 ? void 0 : value[0]) === TILL_NOW) {
|
|
13196
|
+
const now2 = new Date();
|
|
13197
|
+
now2.tillNow = true;
|
|
13198
|
+
return now2;
|
|
13199
|
+
}
|
|
13178
13200
|
if (precision.includes("week")) {
|
|
13179
13201
|
return convertStringArrayToDate$1(value);
|
|
13180
13202
|
} else {
|
|
13181
13203
|
return convertStringArrayToDate$2(value);
|
|
13182
13204
|
}
|
|
13183
13205
|
};
|
|
13184
|
-
const generateDatePickerColumns = (selected, min2, max2, precision, renderLabel, filter) => {
|
|
13206
|
+
const generateDatePickerColumns = (selected, min2, max2, precision, renderLabel, filter, tillNow) => {
|
|
13185
13207
|
if (precision.startsWith("week")) {
|
|
13186
13208
|
return generateDatePickerColumns$1(selected, min2, max2, precision, renderLabel, filter);
|
|
13187
13209
|
} else {
|
|
13188
|
-
return generateDatePickerColumns$2(selected, min2, max2, precision, renderLabel, filter);
|
|
13189
|
-
}
|
|
13190
|
-
};
|
|
13191
|
-
const defaultRenderLabel = (precision, data) => {
|
|
13192
|
-
if (precision.includes("week")) {
|
|
13193
|
-
return defaultRenderLabel$1(precision, data);
|
|
13194
|
-
} else {
|
|
13195
|
-
return defaultRenderLabel$2(precision, data);
|
|
13210
|
+
return generateDatePickerColumns$2(selected, min2, max2, precision, renderLabel, filter, tillNow);
|
|
13196
13211
|
}
|
|
13197
13212
|
};
|
|
13213
|
+
function useRenderLabel(renderLabel) {
|
|
13214
|
+
const {
|
|
13215
|
+
locale
|
|
13216
|
+
} = useConfig();
|
|
13217
|
+
return useCallback((type4, data) => {
|
|
13218
|
+
if (renderLabel) {
|
|
13219
|
+
return renderLabel(type4, data);
|
|
13220
|
+
}
|
|
13221
|
+
switch (type4) {
|
|
13222
|
+
case "minute":
|
|
13223
|
+
case "second":
|
|
13224
|
+
case "hour":
|
|
13225
|
+
return ("0" + data.toString()).slice(-2);
|
|
13226
|
+
case "now":
|
|
13227
|
+
return locale.DatePicker.tillNow;
|
|
13228
|
+
default:
|
|
13229
|
+
return data.toString();
|
|
13230
|
+
}
|
|
13231
|
+
}, [renderLabel]);
|
|
13232
|
+
}
|
|
13198
13233
|
const thisYear$1 = new Date().getFullYear();
|
|
13199
13234
|
const defaultProps$M = {
|
|
13200
13235
|
min: new Date(new Date().setFullYear(thisYear$1 - 10)),
|
|
13201
13236
|
max: new Date(new Date().setFullYear(thisYear$1 + 10)),
|
|
13202
13237
|
precision: "day",
|
|
13203
|
-
renderLabel: defaultRenderLabel,
|
|
13204
13238
|
defaultValue: null
|
|
13205
13239
|
};
|
|
13206
13240
|
const DatePicker = forwardRef((p, ref) => {
|
|
13207
13241
|
const props = mergeProps(defaultProps$M, p);
|
|
13242
|
+
const {
|
|
13243
|
+
renderLabel
|
|
13244
|
+
} = props;
|
|
13208
13245
|
const [value, setValue2] = usePropsValue({
|
|
13209
13246
|
value: props.value,
|
|
13210
13247
|
defaultValue: props.defaultValue,
|
|
@@ -13216,20 +13253,25 @@ const DatePicker = forwardRef((p, ref) => {
|
|
|
13216
13253
|
}
|
|
13217
13254
|
});
|
|
13218
13255
|
const now2 = useMemo(() => new Date(), []);
|
|
13256
|
+
const mergedRenderLabel = useRenderLabel(renderLabel);
|
|
13219
13257
|
const pickerValue = useMemo(() => {
|
|
13220
13258
|
let date4 = value !== null && value !== void 0 ? value : now2;
|
|
13259
|
+
if (date4.tillNow) {
|
|
13260
|
+
return [TILL_NOW];
|
|
13261
|
+
}
|
|
13221
13262
|
date4 = new Date(bound(date4.getTime(), props.min.getTime(), props.max.getTime()));
|
|
13222
13263
|
return convertDateToStringArray(date4, props.precision);
|
|
13223
13264
|
}, [value, props.precision, props.min, props.max]);
|
|
13224
13265
|
const onConfirm = useCallback((val) => {
|
|
13225
|
-
|
|
13266
|
+
const date4 = convertStringArrayToDate(val, props.precision);
|
|
13267
|
+
setValue2(date4, true);
|
|
13226
13268
|
}, [setValue2, props.precision]);
|
|
13227
13269
|
const onSelect = useMemoizedFn((val) => {
|
|
13228
13270
|
var _a;
|
|
13229
13271
|
const date4 = convertStringArrayToDate(val, props.precision);
|
|
13230
13272
|
(_a = props.onSelect) === null || _a === void 0 ? void 0 : _a.call(props, date4);
|
|
13231
13273
|
});
|
|
13232
|
-
const columns = useCallback((selected) => generateDatePickerColumns(selected, props.min, props.max, props.precision, props.
|
|
13274
|
+
const columns = useCallback((selected) => generateDatePickerColumns(selected, props.min, props.max, props.precision, mergedRenderLabel, props.filter, props.tillNow), [props.min, props.max, props.precision, mergedRenderLabel, props.tillNow]);
|
|
13233
13275
|
return withNativeProps(props, React__default.createElement(Picker, {
|
|
13234
13276
|
ref,
|
|
13235
13277
|
columns,
|
|
@@ -13261,7 +13303,7 @@ const DatePicker = forwardRef((p, ref) => {
|
|
|
13261
13303
|
function prompt(props) {
|
|
13262
13304
|
return new Promise((resolve) => {
|
|
13263
13305
|
const Wrapper2 = () => {
|
|
13264
|
-
const [visible, setVisible] = useState(false);
|
|
13306
|
+
const [visible, setVisible] = useState$1(false);
|
|
13265
13307
|
useEffect(() => {
|
|
13266
13308
|
setVisible(true);
|
|
13267
13309
|
}, []);
|
|
@@ -13289,22 +13331,26 @@ function prompt(props) {
|
|
|
13289
13331
|
});
|
|
13290
13332
|
}
|
|
13291
13333
|
const index$e = attachPropertiesToComponent(DatePicker, {
|
|
13292
|
-
prompt
|
|
13334
|
+
prompt,
|
|
13335
|
+
DATE_NOW: TILL_NOW
|
|
13293
13336
|
});
|
|
13294
13337
|
const thisYear = new Date().getFullYear();
|
|
13295
13338
|
const defaultProps$L = {
|
|
13296
13339
|
min: new Date(new Date().setFullYear(thisYear - 10)),
|
|
13297
13340
|
max: new Date(new Date().setFullYear(thisYear + 10)),
|
|
13298
|
-
precision: "day"
|
|
13299
|
-
renderLabel: defaultRenderLabel
|
|
13341
|
+
precision: "day"
|
|
13300
13342
|
};
|
|
13301
13343
|
const DatePickerView$1 = (p) => {
|
|
13302
13344
|
var _a;
|
|
13303
13345
|
const props = mergeProps(defaultProps$L, p);
|
|
13346
|
+
const {
|
|
13347
|
+
renderLabel
|
|
13348
|
+
} = props;
|
|
13304
13349
|
const [value, setValue2] = usePropsValue({
|
|
13305
13350
|
value: props.value,
|
|
13306
13351
|
defaultValue: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : null
|
|
13307
13352
|
});
|
|
13353
|
+
const mergedRenderLabel = useRenderLabel(renderLabel);
|
|
13308
13354
|
const pickerValue = useMemo(() => convertDateToStringArray(value, props.precision), [value, props.precision]);
|
|
13309
13355
|
const onChange = useCallback((val) => {
|
|
13310
13356
|
var _a2;
|
|
@@ -13315,7 +13361,7 @@ const DatePickerView$1 = (p) => {
|
|
|
13315
13361
|
}
|
|
13316
13362
|
}, [props.onChange, props.precision]);
|
|
13317
13363
|
return withNativeProps(props, React__default.createElement(PickerView, {
|
|
13318
|
-
columns: (selected) => generateDatePickerColumns(selected, props.min, props.max, props.precision,
|
|
13364
|
+
columns: (selected) => generateDatePickerColumns(selected, props.min, props.max, props.precision, mergedRenderLabel, props.filter),
|
|
13319
13365
|
loading: props.loading,
|
|
13320
13366
|
loadingContent: props.loadingContent,
|
|
13321
13367
|
value: pickerValue,
|
|
@@ -13563,7 +13609,7 @@ const Dropdown = forwardRef((p, ref) => {
|
|
|
13563
13609
|
return;
|
|
13564
13610
|
setValue2(null);
|
|
13565
13611
|
}, [navRef, contentRef]);
|
|
13566
|
-
const [top, setTop] = useState();
|
|
13612
|
+
const [top, setTop] = useState$1();
|
|
13567
13613
|
const containerRef = useRef(null);
|
|
13568
13614
|
useEffect(() => {
|
|
13569
13615
|
const container = containerRef.current;
|
|
@@ -13777,9 +13823,9 @@ const defaultProps$G = {
|
|
|
13777
13823
|
const Ellipsis$1 = (p) => {
|
|
13778
13824
|
const props = mergeProps(defaultProps$G, p);
|
|
13779
13825
|
const rootRef = useRef(null);
|
|
13780
|
-
const [ellipsised, setEllipsised] = useState({});
|
|
13781
|
-
const [expanded, setExpanded] = useState(false);
|
|
13782
|
-
const [exceeded, setExceeded] = useState(false);
|
|
13826
|
+
const [ellipsised, setEllipsised] = useState$1({});
|
|
13827
|
+
const [expanded, setExpanded] = useState$1(false);
|
|
13828
|
+
const [exceeded, setExceeded] = useState$1(false);
|
|
13783
13829
|
const chars = useMemo(() => _runes_0_4_3_runes.exports(props.content), [props.content]);
|
|
13784
13830
|
function getSubString(start2, end) {
|
|
13785
13831
|
return chars.slice(start2, end).join("");
|
|
@@ -14508,22 +14554,36 @@ const ErrorBlock = ErrorBlock$1;
|
|
|
14508
14554
|
const floatingBubble = "";
|
|
14509
14555
|
const classPrefix$P = `adm-floating-bubble`;
|
|
14510
14556
|
const defaultProps$E = {
|
|
14511
|
-
axis: "y"
|
|
14557
|
+
axis: "y",
|
|
14558
|
+
defaultOffset: {
|
|
14559
|
+
x: 0,
|
|
14560
|
+
y: 0
|
|
14561
|
+
}
|
|
14512
14562
|
};
|
|
14513
14563
|
const FloatingBubble$1 = (p) => {
|
|
14514
14564
|
const props = mergeProps(defaultProps$E, p);
|
|
14515
14565
|
const boundaryRef = useRef(null);
|
|
14516
14566
|
const buttonRef = useRef(null);
|
|
14567
|
+
const [innerValue, setInnerValue] = useState$1(props.offset === void 0 ? props.defaultOffset : props.offset);
|
|
14568
|
+
useEffect(() => {
|
|
14569
|
+
if (props.offset === void 0)
|
|
14570
|
+
return;
|
|
14571
|
+
api.start({
|
|
14572
|
+
x: props.offset.x,
|
|
14573
|
+
y: props.offset.y
|
|
14574
|
+
});
|
|
14575
|
+
}, [props.offset]);
|
|
14517
14576
|
const [{
|
|
14518
14577
|
x,
|
|
14519
14578
|
y,
|
|
14520
14579
|
opacity
|
|
14521
14580
|
}, api] = useSpring(() => ({
|
|
14522
|
-
x:
|
|
14523
|
-
y:
|
|
14581
|
+
x: innerValue.x,
|
|
14582
|
+
y: innerValue.y,
|
|
14524
14583
|
opacity: 1
|
|
14525
14584
|
}));
|
|
14526
14585
|
const bind = useDrag((state) => {
|
|
14586
|
+
var _a;
|
|
14527
14587
|
let nextX = state.offset[0];
|
|
14528
14588
|
let nextY = state.offset[1];
|
|
14529
14589
|
if (state.last && props.magnetic) {
|
|
@@ -14553,10 +14613,16 @@ const FloatingBubble$1 = (p) => {
|
|
|
14553
14613
|
}
|
|
14554
14614
|
}
|
|
14555
14615
|
}
|
|
14556
|
-
|
|
14616
|
+
const nextOffest = {
|
|
14557
14617
|
x: nextX,
|
|
14558
14618
|
y: nextY
|
|
14559
|
-
}
|
|
14619
|
+
};
|
|
14620
|
+
if (props.offset === void 0) {
|
|
14621
|
+
api.start(nextOffest);
|
|
14622
|
+
} else {
|
|
14623
|
+
setInnerValue(nextOffest);
|
|
14624
|
+
}
|
|
14625
|
+
(_a = props.onOffsetChange) === null || _a === void 0 ? void 0 : _a.call(props, nextOffest);
|
|
14560
14626
|
api.start({
|
|
14561
14627
|
opacity: state.active ? 0.8 : 1
|
|
14562
14628
|
});
|
|
@@ -14607,7 +14673,7 @@ const FloatingPanel$1 = forwardRef((p, ref) => {
|
|
|
14607
14673
|
const elementRef = useRef(null);
|
|
14608
14674
|
const headerRef = useRef(null);
|
|
14609
14675
|
const contentRef = useRef(null);
|
|
14610
|
-
const [pulling, setPulling] = useState(false);
|
|
14676
|
+
const [pulling, setPulling] = useState$1(false);
|
|
14611
14677
|
const pullingRef = useRef(false);
|
|
14612
14678
|
const bounds = {
|
|
14613
14679
|
top: possibles[possibles.length - 1],
|
|
@@ -14760,7 +14826,32 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
14760
14826
|
}
|
|
14761
14827
|
return target;
|
|
14762
14828
|
}
|
|
14829
|
+
function _typeof$1(obj) {
|
|
14830
|
+
"@babel/helpers - typeof";
|
|
14831
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
14832
|
+
return typeof obj2;
|
|
14833
|
+
} : function(obj2) {
|
|
14834
|
+
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
14835
|
+
}, _typeof$1(obj);
|
|
14836
|
+
}
|
|
14837
|
+
function _toPrimitive(input2, hint) {
|
|
14838
|
+
if (_typeof$1(input2) !== "object" || input2 === null)
|
|
14839
|
+
return input2;
|
|
14840
|
+
var prim = input2[Symbol.toPrimitive];
|
|
14841
|
+
if (prim !== void 0) {
|
|
14842
|
+
var res = prim.call(input2, hint || "default");
|
|
14843
|
+
if (_typeof$1(res) !== "object")
|
|
14844
|
+
return res;
|
|
14845
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
14846
|
+
}
|
|
14847
|
+
return (hint === "string" ? String : Number)(input2);
|
|
14848
|
+
}
|
|
14849
|
+
function _toPropertyKey(arg) {
|
|
14850
|
+
var key = _toPrimitive(arg, "string");
|
|
14851
|
+
return _typeof$1(key) === "symbol" ? key : String(key);
|
|
14852
|
+
}
|
|
14763
14853
|
function _defineProperty(obj, key, value) {
|
|
14854
|
+
key = _toPropertyKey(key);
|
|
14764
14855
|
if (key in obj) {
|
|
14765
14856
|
Object.defineProperty(obj, key, {
|
|
14766
14857
|
value,
|
|
@@ -14841,7 +14932,7 @@ function _defineProperties(target, props) {
|
|
|
14841
14932
|
descriptor.configurable = true;
|
|
14842
14933
|
if ("value" in descriptor)
|
|
14843
14934
|
descriptor.writable = true;
|
|
14844
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
14935
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
14845
14936
|
}
|
|
14846
14937
|
}
|
|
14847
14938
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -14905,14 +14996,6 @@ function _isNativeReflectConstruct$1() {
|
|
|
14905
14996
|
return false;
|
|
14906
14997
|
}
|
|
14907
14998
|
}
|
|
14908
|
-
function _typeof$1(obj) {
|
|
14909
|
-
"@babel/helpers - typeof";
|
|
14910
|
-
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
14911
|
-
return typeof obj2;
|
|
14912
|
-
} : function(obj2) {
|
|
14913
|
-
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
14914
|
-
}, _typeof$1(obj);
|
|
14915
|
-
}
|
|
14916
14999
|
function _possibleConstructorReturn(self2, call2) {
|
|
14917
15000
|
if (call2 && (_typeof$1(call2) === "object" || typeof call2 === "function")) {
|
|
14918
15001
|
return call2;
|
|
@@ -15131,7 +15214,7 @@ var HOOK_MARK$1 = "RC_FORM_INTERNAL_HOOKS";
|
|
|
15131
15214
|
var warningFunc$1 = function warningFunc() {
|
|
15132
15215
|
warningOnce$1(false, "Can not find FormContext. Please make sure you wrap Field under Form.");
|
|
15133
15216
|
};
|
|
15134
|
-
var Context$1 = /* @__PURE__ */ React$
|
|
15217
|
+
var Context$1 = /* @__PURE__ */ React$4.createContext({
|
|
15135
15218
|
getFieldValue: warningFunc$1,
|
|
15136
15219
|
getFieldsValue: warningFunc$1,
|
|
15137
15220
|
getFieldError: warningFunc$1,
|
|
@@ -15306,15 +15389,9 @@ function _regeneratorRuntime() {
|
|
|
15306
15389
|
};
|
|
15307
15390
|
}
|
|
15308
15391
|
function maybeInvokeDelegate(delegate, context) {
|
|
15309
|
-
var method4 = delegate.iterator[
|
|
15310
|
-
if (void 0 === method4)
|
|
15311
|
-
|
|
15312
|
-
if (delegate.iterator["return"] && (context.method = "return", context.arg = void 0, maybeInvokeDelegate(delegate, context), "throw" === context.method))
|
|
15313
|
-
return ContinueSentinel;
|
|
15314
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
15315
|
-
}
|
|
15316
|
-
return ContinueSentinel;
|
|
15317
|
-
}
|
|
15392
|
+
var methodName = context.method, method4 = delegate.iterator[methodName];
|
|
15393
|
+
if (void 0 === method4)
|
|
15394
|
+
return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = void 0, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
|
15318
15395
|
var record2 = tryCatch(method4, delegate.iterator, context.arg);
|
|
15319
15396
|
if ("throw" === record2.type)
|
|
15320
15397
|
return context.method = "throw", context.arg = record2.arg, context.delegate = null, ContinueSentinel;
|
|
@@ -16845,7 +16922,7 @@ function _validateRule() {
|
|
|
16845
16922
|
result2 = _context2.t0.errors.map(function(_ref4, index2) {
|
|
16846
16923
|
var message = _ref4.message;
|
|
16847
16924
|
var mergedMessage = message === CODE_LOGIC_ERROR ? messages2.default : message;
|
|
16848
|
-
return /* @__PURE__ */ React$
|
|
16925
|
+
return /* @__PURE__ */ React$4.isValidElement(mergedMessage) ? /* @__PURE__ */ React$4.cloneElement(mergedMessage, {
|
|
16849
16926
|
key: "error_".concat(index2)
|
|
16850
16927
|
}) : mergedMessage;
|
|
16851
16928
|
});
|
|
@@ -17305,7 +17382,7 @@ var Field = /* @__PURE__ */ function(_React$Component) {
|
|
|
17305
17382
|
});
|
|
17306
17383
|
}
|
|
17307
17384
|
var childList = toArray$2(children);
|
|
17308
|
-
if (childList.length !== 1 || !/* @__PURE__ */ React$
|
|
17385
|
+
if (childList.length !== 1 || !/* @__PURE__ */ React$4.isValidElement(childList[0])) {
|
|
17309
17386
|
return {
|
|
17310
17387
|
child: childList,
|
|
17311
17388
|
isFunction: false
|
|
@@ -17422,19 +17499,19 @@ var Field = /* @__PURE__ */ function(_React$Component) {
|
|
|
17422
17499
|
var returnChildNode;
|
|
17423
17500
|
if (isFunction3) {
|
|
17424
17501
|
returnChildNode = child;
|
|
17425
|
-
} else if (/* @__PURE__ */ React$
|
|
17426
|
-
returnChildNode = /* @__PURE__ */ React$
|
|
17502
|
+
} else if (/* @__PURE__ */ React$4.isValidElement(child)) {
|
|
17503
|
+
returnChildNode = /* @__PURE__ */ React$4.cloneElement(child, this.getControlled(child.props));
|
|
17427
17504
|
} else {
|
|
17428
17505
|
warningOnce$1(!child, "`children` of Field is not validate ReactElement.");
|
|
17429
17506
|
returnChildNode = child;
|
|
17430
17507
|
}
|
|
17431
|
-
return /* @__PURE__ */ React$
|
|
17508
|
+
return /* @__PURE__ */ React$4.createElement(React$4.Fragment, {
|
|
17432
17509
|
key: resetCount
|
|
17433
17510
|
}, returnChildNode);
|
|
17434
17511
|
}
|
|
17435
17512
|
}]);
|
|
17436
17513
|
return Field2;
|
|
17437
|
-
}(React$
|
|
17514
|
+
}(React$4.Component);
|
|
17438
17515
|
Field.contextType = Context$1;
|
|
17439
17516
|
Field.defaultProps = {
|
|
17440
17517
|
trigger: "onChange",
|
|
@@ -17442,7 +17519,7 @@ Field.defaultProps = {
|
|
|
17442
17519
|
};
|
|
17443
17520
|
function WrapperField(_ref5) {
|
|
17444
17521
|
var name = _ref5.name, restProps = _objectWithoutProperties(_ref5, _excluded$2);
|
|
17445
|
-
var fieldContext = React$
|
|
17522
|
+
var fieldContext = React$4.useContext(Context$1);
|
|
17446
17523
|
var namePath = name !== void 0 ? getNamePath(name) : void 0;
|
|
17447
17524
|
var key = "keep";
|
|
17448
17525
|
if (!restProps.isListField) {
|
|
@@ -17451,32 +17528,32 @@ function WrapperField(_ref5) {
|
|
|
17451
17528
|
if (restProps.preserve === false && restProps.isListField && namePath.length <= 1) {
|
|
17452
17529
|
warningOnce$1(false, "`preserve` should not apply on Form.List fields.");
|
|
17453
17530
|
}
|
|
17454
|
-
return /* @__PURE__ */ React$
|
|
17531
|
+
return /* @__PURE__ */ React$4.createElement(Field, _extends$1({
|
|
17455
17532
|
key,
|
|
17456
17533
|
name: namePath
|
|
17457
17534
|
}, restProps, {
|
|
17458
17535
|
fieldContext
|
|
17459
17536
|
}));
|
|
17460
17537
|
}
|
|
17461
|
-
var ListContext = /* @__PURE__ */ React$
|
|
17538
|
+
var ListContext = /* @__PURE__ */ React$4.createContext(null);
|
|
17462
17539
|
var List = function List2(_ref) {
|
|
17463
17540
|
var name = _ref.name, initialValue = _ref.initialValue, children = _ref.children, rules2 = _ref.rules, validateTrigger = _ref.validateTrigger;
|
|
17464
|
-
var context = React$
|
|
17465
|
-
var keyRef = React$
|
|
17541
|
+
var context = React$4.useContext(Context$1);
|
|
17542
|
+
var keyRef = React$4.useRef({
|
|
17466
17543
|
keys: [],
|
|
17467
17544
|
id: 0
|
|
17468
17545
|
});
|
|
17469
17546
|
var keyManager = keyRef.current;
|
|
17470
|
-
var prefixName = React$
|
|
17547
|
+
var prefixName = React$4.useMemo(function() {
|
|
17471
17548
|
var parentPrefixName = getNamePath(context.prefixName) || [];
|
|
17472
17549
|
return [].concat(_toConsumableArray(parentPrefixName), _toConsumableArray(getNamePath(name)));
|
|
17473
17550
|
}, [context.prefixName, name]);
|
|
17474
|
-
var fieldContext = React$
|
|
17551
|
+
var fieldContext = React$4.useMemo(function() {
|
|
17475
17552
|
return _objectSpread2(_objectSpread2({}, context), {}, {
|
|
17476
17553
|
prefixName
|
|
17477
17554
|
});
|
|
17478
17555
|
}, [context, prefixName]);
|
|
17479
|
-
var listContext = React$
|
|
17556
|
+
var listContext = React$4.useMemo(function() {
|
|
17480
17557
|
return {
|
|
17481
17558
|
getKey: function getKey(namePath) {
|
|
17482
17559
|
var len = prefixName.length;
|
|
@@ -17496,11 +17573,11 @@ var List = function List2(_ref) {
|
|
|
17496
17573
|
}
|
|
17497
17574
|
return prevValue !== nextValue;
|
|
17498
17575
|
};
|
|
17499
|
-
return /* @__PURE__ */ React$
|
|
17576
|
+
return /* @__PURE__ */ React$4.createElement(ListContext.Provider, {
|
|
17500
17577
|
value: listContext
|
|
17501
|
-
}, /* @__PURE__ */ React$
|
|
17578
|
+
}, /* @__PURE__ */ React$4.createElement(Context$1.Provider, {
|
|
17502
17579
|
value: fieldContext
|
|
17503
|
-
}, /* @__PURE__ */ React$
|
|
17580
|
+
}, /* @__PURE__ */ React$4.createElement(WrapperField, {
|
|
17504
17581
|
name: [],
|
|
17505
17582
|
shouldUpdate,
|
|
17506
17583
|
rules: rules2,
|
|
@@ -17577,32 +17654,31 @@ var List = function List2(_ref) {
|
|
|
17577
17654
|
})));
|
|
17578
17655
|
};
|
|
17579
17656
|
function _iterableToArrayLimit(arr, i) {
|
|
17580
|
-
var _i =
|
|
17581
|
-
if (
|
|
17582
|
-
|
|
17583
|
-
var _arr = [];
|
|
17584
|
-
var _n = true;
|
|
17585
|
-
var _d = false;
|
|
17586
|
-
var _s, _e;
|
|
17587
|
-
try {
|
|
17588
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
17589
|
-
_arr.push(_s.value);
|
|
17590
|
-
if (i && _arr.length === i)
|
|
17591
|
-
break;
|
|
17592
|
-
}
|
|
17593
|
-
} catch (err) {
|
|
17594
|
-
_d = true;
|
|
17595
|
-
_e = err;
|
|
17596
|
-
} finally {
|
|
17657
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
17658
|
+
if (null != _i) {
|
|
17659
|
+
var _s, _e, _x, _r, _arr = [], _n = true, _d = false;
|
|
17597
17660
|
try {
|
|
17598
|
-
if (
|
|
17599
|
-
_i
|
|
17661
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
17662
|
+
if (Object(_i) !== _i)
|
|
17663
|
+
return;
|
|
17664
|
+
_n = false;
|
|
17665
|
+
} else
|
|
17666
|
+
for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = true) {
|
|
17667
|
+
;
|
|
17668
|
+
}
|
|
17669
|
+
} catch (err) {
|
|
17670
|
+
_d = true, _e = err;
|
|
17600
17671
|
} finally {
|
|
17601
|
-
|
|
17602
|
-
|
|
17672
|
+
try {
|
|
17673
|
+
if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r))
|
|
17674
|
+
return;
|
|
17675
|
+
} finally {
|
|
17676
|
+
if (_d)
|
|
17677
|
+
throw _e;
|
|
17678
|
+
}
|
|
17603
17679
|
}
|
|
17680
|
+
return _arr;
|
|
17604
17681
|
}
|
|
17605
|
-
return _arr;
|
|
17606
17682
|
}
|
|
17607
17683
|
function _slicedToArray(arr, i) {
|
|
17608
17684
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
@@ -18400,8 +18476,8 @@ var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate
|
|
|
18400
18476
|
this.forceRootUpdate = forceRootUpdate;
|
|
18401
18477
|
});
|
|
18402
18478
|
function useForm(form) {
|
|
18403
|
-
var formRef = React$
|
|
18404
|
-
var _React$useState = React$
|
|
18479
|
+
var formRef = React$4.useRef();
|
|
18480
|
+
var _React$useState = React$4.useState({}), _React$useState2 = _slicedToArray(_React$useState, 2), forceUpdate = _React$useState2[1];
|
|
18405
18481
|
if (!formRef.current) {
|
|
18406
18482
|
if (form) {
|
|
18407
18483
|
formRef.current = form;
|
|
@@ -18415,7 +18491,7 @@ function useForm(form) {
|
|
|
18415
18491
|
}
|
|
18416
18492
|
return [formRef.current];
|
|
18417
18493
|
}
|
|
18418
|
-
var FormContext$1 = /* @__PURE__ */ React$
|
|
18494
|
+
var FormContext$1 = /* @__PURE__ */ React$4.createContext({
|
|
18419
18495
|
triggerFormChange: function triggerFormChange() {
|
|
18420
18496
|
},
|
|
18421
18497
|
triggerFormFinish: function triggerFormFinish() {
|
|
@@ -18427,9 +18503,9 @@ var FormContext$1 = /* @__PURE__ */ React$1.createContext({
|
|
|
18427
18503
|
});
|
|
18428
18504
|
var FormProvider = function FormProvider2(_ref) {
|
|
18429
18505
|
var validateMessages = _ref.validateMessages, onFormChange = _ref.onFormChange, onFormFinish = _ref.onFormFinish, children = _ref.children;
|
|
18430
|
-
var formContext = React$
|
|
18431
|
-
var formsRef = React$
|
|
18432
|
-
return /* @__PURE__ */ React$
|
|
18506
|
+
var formContext = React$4.useContext(FormContext$1);
|
|
18507
|
+
var formsRef = React$4.useRef({});
|
|
18508
|
+
return /* @__PURE__ */ React$4.createElement(FormContext$1.Provider, {
|
|
18433
18509
|
value: _objectSpread2(_objectSpread2({}, formContext), {}, {
|
|
18434
18510
|
validateMessages: _objectSpread2(_objectSpread2({}, formContext.validateMessages), validateMessages),
|
|
18435
18511
|
triggerFormChange: function triggerFormChange2(name, changedFields) {
|
|
@@ -18468,13 +18544,13 @@ var FormProvider = function FormProvider2(_ref) {
|
|
|
18468
18544
|
var _excluded = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"];
|
|
18469
18545
|
var Form$1 = function Form(_ref, ref) {
|
|
18470
18546
|
var name = _ref.name, initialValues = _ref.initialValues, fields = _ref.fields, form = _ref.form, preserve = _ref.preserve, children = _ref.children, _ref$component = _ref.component, Component = _ref$component === void 0 ? "form" : _ref$component, validateMessages = _ref.validateMessages, _ref$validateTrigger = _ref.validateTrigger, validateTrigger = _ref$validateTrigger === void 0 ? "onChange" : _ref$validateTrigger, onValuesChange = _ref.onValuesChange, _onFieldsChange = _ref.onFieldsChange, _onFinish = _ref.onFinish, onFinishFailed = _ref.onFinishFailed, restProps = _objectWithoutProperties(_ref, _excluded);
|
|
18471
|
-
var formContext = React$
|
|
18547
|
+
var formContext = React$4.useContext(FormContext$1);
|
|
18472
18548
|
var _useForm = useForm(form), _useForm2 = _slicedToArray(_useForm, 1), formInstance = _useForm2[0];
|
|
18473
18549
|
var _formInstance$getInte = formInstance.getInternalHooks(HOOK_MARK$1), useSubscribe = _formInstance$getInte.useSubscribe, setInitialValues = _formInstance$getInte.setInitialValues, setCallbacks = _formInstance$getInte.setCallbacks, setValidateMessages = _formInstance$getInte.setValidateMessages, setPreserve = _formInstance$getInte.setPreserve, destroyForm = _formInstance$getInte.destroyForm;
|
|
18474
|
-
React$
|
|
18550
|
+
React$4.useImperativeHandle(ref, function() {
|
|
18475
18551
|
return formInstance;
|
|
18476
18552
|
});
|
|
18477
|
-
React$
|
|
18553
|
+
React$4.useEffect(function() {
|
|
18478
18554
|
formContext.registerForm(name, formInstance);
|
|
18479
18555
|
return function() {
|
|
18480
18556
|
formContext.unregisterForm(name);
|
|
@@ -18501,12 +18577,12 @@ var Form$1 = function Form(_ref, ref) {
|
|
|
18501
18577
|
onFinishFailed
|
|
18502
18578
|
});
|
|
18503
18579
|
setPreserve(preserve);
|
|
18504
|
-
var mountRef = React$
|
|
18580
|
+
var mountRef = React$4.useRef(null);
|
|
18505
18581
|
setInitialValues(initialValues, !mountRef.current);
|
|
18506
18582
|
if (!mountRef.current) {
|
|
18507
18583
|
mountRef.current = true;
|
|
18508
18584
|
}
|
|
18509
|
-
React$
|
|
18585
|
+
React$4.useEffect(
|
|
18510
18586
|
function() {
|
|
18511
18587
|
return destroyForm;
|
|
18512
18588
|
},
|
|
@@ -18521,25 +18597,25 @@ var Form$1 = function Form(_ref, ref) {
|
|
|
18521
18597
|
childrenNode = children;
|
|
18522
18598
|
}
|
|
18523
18599
|
useSubscribe(!childrenRenderProps);
|
|
18524
|
-
var prevFieldsRef = React$
|
|
18525
|
-
React$
|
|
18600
|
+
var prevFieldsRef = React$4.useRef();
|
|
18601
|
+
React$4.useEffect(function() {
|
|
18526
18602
|
if (!isSimilar(prevFieldsRef.current || [], fields || [])) {
|
|
18527
18603
|
formInstance.setFields(fields || []);
|
|
18528
18604
|
}
|
|
18529
18605
|
prevFieldsRef.current = fields;
|
|
18530
18606
|
}, [fields, formInstance]);
|
|
18531
|
-
var formContextValue = React$
|
|
18607
|
+
var formContextValue = React$4.useMemo(function() {
|
|
18532
18608
|
return _objectSpread2(_objectSpread2({}, formInstance), {}, {
|
|
18533
18609
|
validateTrigger
|
|
18534
18610
|
});
|
|
18535
18611
|
}, [formInstance, validateTrigger]);
|
|
18536
|
-
var wrapperNode = /* @__PURE__ */ React$
|
|
18612
|
+
var wrapperNode = /* @__PURE__ */ React$4.createElement(Context$1.Provider, {
|
|
18537
18613
|
value: formContextValue
|
|
18538
18614
|
}, childrenNode);
|
|
18539
18615
|
if (Component === false) {
|
|
18540
18616
|
return wrapperNode;
|
|
18541
18617
|
}
|
|
18542
|
-
return /* @__PURE__ */ React$
|
|
18618
|
+
return /* @__PURE__ */ React$4.createElement(Component, _extends$1({}, restProps, {
|
|
18543
18619
|
onSubmit: function onSubmit(event) {
|
|
18544
18620
|
event.preventDefault();
|
|
18545
18621
|
event.stopPropagation();
|
|
@@ -18553,7 +18629,7 @@ var Form$1 = function Form(_ref, ref) {
|
|
|
18553
18629
|
}
|
|
18554
18630
|
}), wrapperNode);
|
|
18555
18631
|
};
|
|
18556
|
-
function stringify
|
|
18632
|
+
function stringify(value) {
|
|
18557
18633
|
try {
|
|
18558
18634
|
return JSON.stringify(value);
|
|
18559
18635
|
} catch (err) {
|
|
@@ -18565,9 +18641,9 @@ function useWatch() {
|
|
|
18565
18641
|
args[_key] = arguments[_key];
|
|
18566
18642
|
}
|
|
18567
18643
|
var _args$ = args[0], dependencies = _args$ === void 0 ? [] : _args$, form = args[1];
|
|
18568
|
-
var _useState = useState(), _useState2 = _slicedToArray(_useState, 2), value = _useState2[0], setValue2 = _useState2[1];
|
|
18644
|
+
var _useState = useState$1(), _useState2 = _slicedToArray(_useState, 2), value = _useState2[0], setValue2 = _useState2[1];
|
|
18569
18645
|
var valueStr = useMemo(function() {
|
|
18570
|
-
return stringify
|
|
18646
|
+
return stringify(value);
|
|
18571
18647
|
}, [value]);
|
|
18572
18648
|
var valueStrRef = useRef(valueStr);
|
|
18573
18649
|
valueStrRef.current = valueStr;
|
|
@@ -18589,7 +18665,7 @@ function useWatch() {
|
|
|
18589
18665
|
var _getInternalHooks = getInternalHooks3(HOOK_MARK$1), registerWatch = _getInternalHooks.registerWatch;
|
|
18590
18666
|
var cancelRegister = registerWatch(function(store) {
|
|
18591
18667
|
var newValue = getValue(store, namePathRef.current);
|
|
18592
|
-
var nextValueStr = stringify
|
|
18668
|
+
var nextValueStr = stringify(newValue);
|
|
18593
18669
|
if (valueStrRef.current !== nextValueStr) {
|
|
18594
18670
|
valueStrRef.current = nextValueStr;
|
|
18595
18671
|
setValue2(newValue);
|
|
@@ -18603,7 +18679,7 @@ function useWatch() {
|
|
|
18603
18679
|
);
|
|
18604
18680
|
return value;
|
|
18605
18681
|
}
|
|
18606
|
-
var InternalForm = /* @__PURE__ */ React$
|
|
18682
|
+
var InternalForm = /* @__PURE__ */ React$4.forwardRef(Form$1);
|
|
18607
18683
|
var RefForm = InternalForm;
|
|
18608
18684
|
RefForm.FormProvider = FormProvider;
|
|
18609
18685
|
RefForm.Field = WrapperField;
|
|
@@ -19051,22 +19127,22 @@ function warningOnce(valid, message) {
|
|
|
19051
19127
|
function noteOnce(valid, message) {
|
|
19052
19128
|
call(note, valid, message);
|
|
19053
19129
|
}
|
|
19054
|
-
var _default$
|
|
19055
|
-
warning$1.default = _default$
|
|
19056
|
-
var _interopRequireWildcard = interopRequireWildcard.exports.default;
|
|
19057
|
-
var _interopRequireDefault = interopRequireDefault.exports.default;
|
|
19130
|
+
var _default$3 = warningOnce;
|
|
19131
|
+
warning$1.default = _default$3;
|
|
19132
|
+
var _interopRequireWildcard$3 = interopRequireWildcard.exports.default;
|
|
19133
|
+
var _interopRequireDefault$3 = interopRequireDefault.exports.default;
|
|
19058
19134
|
Object.defineProperty(FieldContext, "__esModule", {
|
|
19059
19135
|
value: true
|
|
19060
19136
|
});
|
|
19061
19137
|
var default_1 = FieldContext.default = FieldContext.HOOK_MARK = void 0;
|
|
19062
|
-
var _warning = _interopRequireDefault(warning$1);
|
|
19063
|
-
var React = _interopRequireWildcard(React__default);
|
|
19138
|
+
var _warning = _interopRequireDefault$3(warning$1);
|
|
19139
|
+
var React$3 = _interopRequireWildcard$3(React__default);
|
|
19064
19140
|
var HOOK_MARK = "RC_FORM_INTERNAL_HOOKS";
|
|
19065
19141
|
FieldContext.HOOK_MARK = HOOK_MARK;
|
|
19066
19142
|
var warningFunc2 = function warningFunc3() {
|
|
19067
19143
|
(0, _warning.default)(false, "Can not find FormContext. Please make sure you wrap Field under Form.");
|
|
19068
19144
|
};
|
|
19069
|
-
var Context = /* @__PURE__ */ React.createContext({
|
|
19145
|
+
var Context = /* @__PURE__ */ React$3.createContext({
|
|
19070
19146
|
getFieldValue: warningFunc2,
|
|
19071
19147
|
getFieldsValue: warningFunc2,
|
|
19072
19148
|
getFieldError: warningFunc2,
|
|
@@ -19100,8 +19176,8 @@ var Context = /* @__PURE__ */ React.createContext({
|
|
|
19100
19176
|
};
|
|
19101
19177
|
}
|
|
19102
19178
|
});
|
|
19103
|
-
var _default = Context;
|
|
19104
|
-
default_1 = FieldContext.default = _default;
|
|
19179
|
+
var _default$2 = Context;
|
|
19180
|
+
default_1 = FieldContext.default = _default$2;
|
|
19105
19181
|
function toArray(candidate) {
|
|
19106
19182
|
if (candidate === void 0 || candidate === false)
|
|
19107
19183
|
return [];
|
|
@@ -19205,18 +19281,22 @@ const computePosition$1 = async (reference, floating, config2) => {
|
|
|
19205
19281
|
middleware = [],
|
|
19206
19282
|
platform: platform2
|
|
19207
19283
|
} = config2;
|
|
19284
|
+
const validMiddleware = middleware.filter(Boolean);
|
|
19208
19285
|
const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(floating));
|
|
19209
19286
|
{
|
|
19210
19287
|
if (platform2 == null) {
|
|
19211
19288
|
console.error(["Floating UI: `platform` property was not passed to config. If you", "want to use Floating UI on the web, install @floating-ui/dom", "instead of the /core package. Otherwise, you can create your own", "`platform`: https://floating-ui.com/docs/platform"].join(" "));
|
|
19212
19289
|
}
|
|
19213
|
-
if (
|
|
19290
|
+
if (validMiddleware.filter((_ref) => {
|
|
19214
19291
|
let {
|
|
19215
19292
|
name
|
|
19216
19293
|
} = _ref;
|
|
19217
19294
|
return name === "autoPlacement" || name === "flip";
|
|
19218
19295
|
}).length > 1) {
|
|
19219
|
-
throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement`", "
|
|
19296
|
+
throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement` middleware", "detected. This will lead to an infinite loop. Ensure only one of", "either has been passed to the `middleware` array."].join(" "));
|
|
19297
|
+
}
|
|
19298
|
+
if (!reference || !floating) {
|
|
19299
|
+
console.error(["Floating UI: The reference and/or floating element was not defined", "when `computePosition()` was called. Ensure that both elements have", "been created and can be measured."].join(" "));
|
|
19220
19300
|
}
|
|
19221
19301
|
}
|
|
19222
19302
|
let rects = await platform2.getElementRects({
|
|
@@ -19231,11 +19311,11 @@ const computePosition$1 = async (reference, floating, config2) => {
|
|
|
19231
19311
|
let statefulPlacement = placement;
|
|
19232
19312
|
let middlewareData = {};
|
|
19233
19313
|
let resetCount = 0;
|
|
19234
|
-
for (let i = 0; i <
|
|
19314
|
+
for (let i = 0; i < validMiddleware.length; i++) {
|
|
19235
19315
|
const {
|
|
19236
19316
|
name,
|
|
19237
19317
|
fn
|
|
19238
|
-
} =
|
|
19318
|
+
} = validMiddleware[i];
|
|
19239
19319
|
const {
|
|
19240
19320
|
x: nextX,
|
|
19241
19321
|
y: nextY,
|
|
@@ -19354,20 +19434,29 @@ async function detectOverflow(middlewareArguments, options) {
|
|
|
19354
19434
|
rootBoundary,
|
|
19355
19435
|
strategy
|
|
19356
19436
|
}));
|
|
19437
|
+
const rect = elementContext === "floating" ? {
|
|
19438
|
+
...rects.floating,
|
|
19439
|
+
x,
|
|
19440
|
+
y
|
|
19441
|
+
} : rects.reference;
|
|
19442
|
+
const offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating));
|
|
19443
|
+
const offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {
|
|
19444
|
+
x: 1,
|
|
19445
|
+
y: 1
|
|
19446
|
+
} : {
|
|
19447
|
+
x: 1,
|
|
19448
|
+
y: 1
|
|
19449
|
+
};
|
|
19357
19450
|
const elementClientRect = rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform2.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
19358
|
-
rect
|
|
19359
|
-
|
|
19360
|
-
x,
|
|
19361
|
-
y
|
|
19362
|
-
} : rects.reference,
|
|
19363
|
-
offsetParent: await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating)),
|
|
19451
|
+
rect,
|
|
19452
|
+
offsetParent,
|
|
19364
19453
|
strategy
|
|
19365
|
-
}) :
|
|
19454
|
+
}) : rect);
|
|
19366
19455
|
return {
|
|
19367
|
-
top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
|
|
19368
|
-
bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
|
|
19369
|
-
left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
|
|
19370
|
-
right: elementClientRect.right - clippingClientRect.right + paddingObject.right
|
|
19456
|
+
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
19457
|
+
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
19458
|
+
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
19459
|
+
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
19371
19460
|
};
|
|
19372
19461
|
}
|
|
19373
19462
|
const min$1 = Math.min;
|
|
@@ -19806,28 +19895,29 @@ const limitShift = function(options) {
|
|
|
19806
19895
|
}
|
|
19807
19896
|
};
|
|
19808
19897
|
};
|
|
19809
|
-
|
|
19810
|
-
|
|
19898
|
+
const min = Math.min;
|
|
19899
|
+
const max = Math.max;
|
|
19900
|
+
const round = Math.round;
|
|
19901
|
+
function getScale(element, paramRect) {
|
|
19902
|
+
const rect = paramRect || element.getBoundingClientRect();
|
|
19903
|
+
return {
|
|
19904
|
+
x: element.offsetWidth > 0 ? round(rect.width) / element.offsetWidth || 1 : 1,
|
|
19905
|
+
y: element.offsetHeight > 0 ? round(rect.height) / element.offsetHeight || 1 : 1
|
|
19906
|
+
};
|
|
19811
19907
|
}
|
|
19812
19908
|
function getWindow(node) {
|
|
19813
|
-
|
|
19814
|
-
|
|
19815
|
-
}
|
|
19816
|
-
if (!isWindow$1(node)) {
|
|
19817
|
-
const ownerDocument = node.ownerDocument;
|
|
19818
|
-
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
19819
|
-
}
|
|
19820
|
-
return node;
|
|
19909
|
+
var _node$ownerDocument;
|
|
19910
|
+
return ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
19821
19911
|
}
|
|
19822
19912
|
function getComputedStyle(element) {
|
|
19823
19913
|
return getWindow(element).getComputedStyle(element);
|
|
19824
19914
|
}
|
|
19825
19915
|
function getNodeName(node) {
|
|
19826
|
-
return
|
|
19916
|
+
return isNode(node) ? (node.nodeName || "").toLowerCase() : "";
|
|
19827
19917
|
}
|
|
19828
19918
|
function getUAString() {
|
|
19829
19919
|
const uaData = navigator.userAgentData;
|
|
19830
|
-
if (uaData
|
|
19920
|
+
if (uaData && Array.isArray(uaData.brands)) {
|
|
19831
19921
|
return uaData.brands.map((item) => item.brand + "/" + item.version).join(" ");
|
|
19832
19922
|
}
|
|
19833
19923
|
return navigator.userAgent;
|
|
@@ -19863,7 +19953,8 @@ function isTableElement(element) {
|
|
|
19863
19953
|
function isContainingBlock(element) {
|
|
19864
19954
|
const isFirefox = /firefox/i.test(getUAString());
|
|
19865
19955
|
const css = getComputedStyle(element);
|
|
19866
|
-
|
|
19956
|
+
const backdropFilter = css.backdropFilter || css.WebkitBackdropFilter;
|
|
19957
|
+
return css.transform !== "none" || css.perspective !== "none" || (backdropFilter ? backdropFilter !== "none" : false) || isFirefox && css.willChange === "filter" || isFirefox && (css.filter ? css.filter !== "none" : false) || ["transform", "perspective"].some((value) => css.willChange.includes(value)) || ["paint", "layout", "strict", "content"].some(
|
|
19867
19958
|
(value) => {
|
|
19868
19959
|
const contain = css.contain;
|
|
19869
19960
|
return contain != null ? contain.includes(value) : false;
|
|
@@ -19876,9 +19967,6 @@ function isLayoutViewport() {
|
|
|
19876
19967
|
function isLastTraversableNode(node) {
|
|
19877
19968
|
return ["html", "body", "#document"].includes(getNodeName(node));
|
|
19878
19969
|
}
|
|
19879
|
-
const min = Math.min;
|
|
19880
|
-
const max = Math.max;
|
|
19881
|
-
const round$1 = Math.round;
|
|
19882
19970
|
function getBoundingClientRect(element, includeScale, isFixedStrategy) {
|
|
19883
19971
|
var _win$visualViewport$o, _win$visualViewport, _win$visualViewport$o2, _win$visualViewport2;
|
|
19884
19972
|
if (includeScale === void 0) {
|
|
@@ -19888,18 +19976,25 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy) {
|
|
|
19888
19976
|
isFixedStrategy = false;
|
|
19889
19977
|
}
|
|
19890
19978
|
const clientRect = element.getBoundingClientRect();
|
|
19891
|
-
let
|
|
19892
|
-
let
|
|
19893
|
-
|
|
19894
|
-
|
|
19895
|
-
|
|
19979
|
+
let contextRect = clientRect;
|
|
19980
|
+
let elementToCheckForScale = element;
|
|
19981
|
+
let scale2 = {
|
|
19982
|
+
x: 1,
|
|
19983
|
+
y: 1
|
|
19984
|
+
};
|
|
19985
|
+
if (!isElement(element) && element.contextElement) {
|
|
19986
|
+
contextRect = element.contextElement.getBoundingClientRect();
|
|
19987
|
+
elementToCheckForScale = element.contextElement;
|
|
19988
|
+
}
|
|
19989
|
+
if (includeScale && isHTMLElement(elementToCheckForScale)) {
|
|
19990
|
+
scale2 = getScale(elementToCheckForScale, contextRect);
|
|
19896
19991
|
}
|
|
19897
19992
|
const win = isElement(element) ? getWindow(element) : window;
|
|
19898
19993
|
const addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
|
|
19899
|
-
const x = (clientRect.left + (addVisualOffsets ? (_win$visualViewport$o = (_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) != null ? _win$visualViewport$o : 0 : 0)) /
|
|
19900
|
-
const y = (clientRect.top + (addVisualOffsets ? (_win$visualViewport$o2 = (_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) != null ? _win$visualViewport$o2 : 0 : 0)) /
|
|
19901
|
-
const width = clientRect.width /
|
|
19902
|
-
const height = clientRect.height /
|
|
19994
|
+
const x = (clientRect.left + (addVisualOffsets ? (_win$visualViewport$o = (_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) != null ? _win$visualViewport$o : 0 : 0)) / scale2.x;
|
|
19995
|
+
const y = (clientRect.top + (addVisualOffsets ? (_win$visualViewport$o2 = (_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) != null ? _win$visualViewport$o2 : 0 : 0)) / scale2.y;
|
|
19996
|
+
const width = clientRect.width / scale2.x;
|
|
19997
|
+
const height = clientRect.height / scale2.y;
|
|
19903
19998
|
return {
|
|
19904
19999
|
width,
|
|
19905
20000
|
height,
|
|
@@ -19931,7 +20026,7 @@ function getWindowScrollBarX(element) {
|
|
|
19931
20026
|
}
|
|
19932
20027
|
function isScaled(element) {
|
|
19933
20028
|
const rect = getBoundingClientRect(element);
|
|
19934
|
-
return round
|
|
20029
|
+
return round(rect.width) !== element.offsetWidth || round(rect.height) !== element.offsetHeight;
|
|
19935
20030
|
}
|
|
19936
20031
|
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
19937
20032
|
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
@@ -19972,7 +20067,8 @@ function getParentNode(node) {
|
|
|
19972
20067
|
if (getNodeName(node) === "html") {
|
|
19973
20068
|
return node;
|
|
19974
20069
|
}
|
|
19975
|
-
|
|
20070
|
+
const result2 = node.assignedSlot || node.parentNode || (isShadowRoot(node) ? node.host : null) || getDocumentElement(node);
|
|
20071
|
+
return isShadowRoot(result2) ? result2.host : result2;
|
|
19976
20072
|
}
|
|
19977
20073
|
function getTrueOffsetParent(element) {
|
|
19978
20074
|
if (!isHTMLElement(element) || getComputedStyle(element).position === "fixed") {
|
|
@@ -19982,15 +20078,11 @@ function getTrueOffsetParent(element) {
|
|
|
19982
20078
|
}
|
|
19983
20079
|
function getContainingBlock(element) {
|
|
19984
20080
|
let currentNode = getParentNode(element);
|
|
19985
|
-
if (isShadowRoot(currentNode)) {
|
|
19986
|
-
currentNode = currentNode.host;
|
|
19987
|
-
}
|
|
19988
20081
|
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
19989
20082
|
if (isContainingBlock(currentNode)) {
|
|
19990
20083
|
return currentNode;
|
|
19991
20084
|
} else {
|
|
19992
|
-
|
|
19993
|
-
currentNode = isShadowRoot(parent) ? parent.host : parent;
|
|
20085
|
+
currentNode = getParentNode(currentNode);
|
|
19994
20086
|
}
|
|
19995
20087
|
}
|
|
19996
20088
|
return null;
|
|
@@ -20034,6 +20126,10 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
20034
20126
|
scrollLeft: 0,
|
|
20035
20127
|
scrollTop: 0
|
|
20036
20128
|
};
|
|
20129
|
+
let scale2 = {
|
|
20130
|
+
x: 1,
|
|
20131
|
+
y: 1
|
|
20132
|
+
};
|
|
20037
20133
|
const offsets = {
|
|
20038
20134
|
x: 0,
|
|
20039
20135
|
y: 0
|
|
@@ -20043,15 +20139,17 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
20043
20139
|
scroll = getNodeScroll(offsetParent);
|
|
20044
20140
|
}
|
|
20045
20141
|
if (isHTMLElement(offsetParent)) {
|
|
20046
|
-
const offsetRect = getBoundingClientRect(offsetParent
|
|
20142
|
+
const offsetRect = getBoundingClientRect(offsetParent);
|
|
20143
|
+
scale2 = getScale(offsetParent);
|
|
20047
20144
|
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
20048
20145
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
20049
20146
|
}
|
|
20050
20147
|
}
|
|
20051
20148
|
return {
|
|
20052
|
-
|
|
20053
|
-
|
|
20054
|
-
|
|
20149
|
+
width: rect.width * scale2.x,
|
|
20150
|
+
height: rect.height * scale2.y,
|
|
20151
|
+
x: rect.x * scale2.x - scroll.scrollLeft * scale2.x + offsets.x,
|
|
20152
|
+
y: rect.y * scale2.y - scroll.scrollTop * scale2.y + offsets.y
|
|
20055
20153
|
};
|
|
20056
20154
|
}
|
|
20057
20155
|
function getViewportRect(element, strategy) {
|
|
@@ -20115,76 +20213,60 @@ function getOverflowAncestors(node, list2) {
|
|
|
20115
20213
|
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
20116
20214
|
const isBody = scrollableAncestor === ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.body);
|
|
20117
20215
|
const win = getWindow(scrollableAncestor);
|
|
20118
|
-
|
|
20119
|
-
|
|
20120
|
-
return isBody ? updatedList : updatedList.concat(getOverflowAncestors(target));
|
|
20121
|
-
}
|
|
20122
|
-
function contains(parent, child) {
|
|
20123
|
-
const rootNode = child.getRootNode == null ? void 0 : child.getRootNode();
|
|
20124
|
-
if (parent.contains(child)) {
|
|
20125
|
-
return true;
|
|
20126
|
-
} else if (rootNode && isShadowRoot(rootNode)) {
|
|
20127
|
-
let next = child;
|
|
20128
|
-
do {
|
|
20129
|
-
if (next && parent === next) {
|
|
20130
|
-
return true;
|
|
20131
|
-
}
|
|
20132
|
-
next = next.parentNode || next.host;
|
|
20133
|
-
} while (next);
|
|
20216
|
+
if (isBody) {
|
|
20217
|
+
return list2.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []);
|
|
20134
20218
|
}
|
|
20135
|
-
return
|
|
20136
|
-
}
|
|
20137
|
-
function getNearestParentCapableOfEscapingClipping(element, clippingAncestors) {
|
|
20138
|
-
let currentNode = element;
|
|
20139
|
-
while (currentNode && !isLastTraversableNode(currentNode) && !clippingAncestors.includes(currentNode)) {
|
|
20140
|
-
if (isElement(currentNode) && ["absolute", "fixed"].includes(getComputedStyle(currentNode).position)) {
|
|
20141
|
-
break;
|
|
20142
|
-
}
|
|
20143
|
-
const parentNode = getParentNode(currentNode);
|
|
20144
|
-
currentNode = isShadowRoot(parentNode) ? parentNode.host : parentNode;
|
|
20145
|
-
}
|
|
20146
|
-
return currentNode;
|
|
20219
|
+
return list2.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor));
|
|
20147
20220
|
}
|
|
20148
20221
|
function getInnerBoundingClientRect(element, strategy) {
|
|
20149
|
-
const clientRect = getBoundingClientRect(element,
|
|
20222
|
+
const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
|
|
20150
20223
|
const top = clientRect.top + element.clientTop;
|
|
20151
20224
|
const left = clientRect.left + element.clientLeft;
|
|
20225
|
+
const scale2 = isHTMLElement(element) ? getScale(element) : {
|
|
20226
|
+
x: 1,
|
|
20227
|
+
y: 1
|
|
20228
|
+
};
|
|
20229
|
+
const width = element.clientWidth * scale2.x;
|
|
20230
|
+
const height = element.clientHeight * scale2.y;
|
|
20231
|
+
const x = left * scale2.x;
|
|
20232
|
+
const y = top * scale2.y;
|
|
20152
20233
|
return {
|
|
20153
|
-
top,
|
|
20154
|
-
left,
|
|
20155
|
-
|
|
20156
|
-
|
|
20157
|
-
|
|
20158
|
-
|
|
20159
|
-
width
|
|
20160
|
-
height
|
|
20161
|
-
};
|
|
20162
|
-
}
|
|
20163
|
-
function getClientRectFromClippingAncestor(element,
|
|
20164
|
-
if (
|
|
20234
|
+
top: y,
|
|
20235
|
+
left: x,
|
|
20236
|
+
right: x + width,
|
|
20237
|
+
bottom: y + height,
|
|
20238
|
+
x,
|
|
20239
|
+
y,
|
|
20240
|
+
width,
|
|
20241
|
+
height
|
|
20242
|
+
};
|
|
20243
|
+
}
|
|
20244
|
+
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
|
|
20245
|
+
if (clippingAncestor === "viewport") {
|
|
20165
20246
|
return rectToClientRect(getViewportRect(element, strategy));
|
|
20166
20247
|
}
|
|
20167
|
-
if (isElement(
|
|
20168
|
-
return getInnerBoundingClientRect(
|
|
20248
|
+
if (isElement(clippingAncestor)) {
|
|
20249
|
+
return getInnerBoundingClientRect(clippingAncestor, strategy);
|
|
20169
20250
|
}
|
|
20170
20251
|
return rectToClientRect(getDocumentRect(getDocumentElement(element)));
|
|
20171
20252
|
}
|
|
20172
|
-
function
|
|
20173
|
-
|
|
20174
|
-
|
|
20175
|
-
|
|
20176
|
-
|
|
20177
|
-
|
|
20178
|
-
|
|
20179
|
-
|
|
20180
|
-
|
|
20181
|
-
|
|
20253
|
+
function getClippingElementAncestors(element) {
|
|
20254
|
+
let result2 = getOverflowAncestors(element).filter((el) => isElement(el) && getNodeName(el) !== "body");
|
|
20255
|
+
let currentContainingBlockComputedStyle = null;
|
|
20256
|
+
const elementIsFixed = getComputedStyle(element).position === "fixed";
|
|
20257
|
+
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
|
20258
|
+
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
20259
|
+
const computedStyle = getComputedStyle(currentNode);
|
|
20260
|
+
const containingBlock = isContainingBlock(currentNode);
|
|
20261
|
+
const shouldDropCurrentNode = elementIsFixed ? !containingBlock && !currentContainingBlockComputedStyle : !containingBlock && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && ["absolute", "fixed"].includes(currentContainingBlockComputedStyle.position);
|
|
20262
|
+
if (shouldDropCurrentNode) {
|
|
20263
|
+
result2 = result2.filter((ancestor) => ancestor !== currentNode);
|
|
20264
|
+
} else {
|
|
20265
|
+
currentContainingBlockComputedStyle = computedStyle;
|
|
20182
20266
|
}
|
|
20267
|
+
currentNode = getParentNode(currentNode);
|
|
20183
20268
|
}
|
|
20184
|
-
|
|
20185
|
-
return [];
|
|
20186
|
-
}
|
|
20187
|
-
return clippingAncestors.filter((clippingAncestors2) => clipperElement && isElement(clippingAncestors2) && contains(clippingAncestors2, clipperElement) && getNodeName(clippingAncestors2) !== "body");
|
|
20269
|
+
return result2;
|
|
20188
20270
|
}
|
|
20189
20271
|
function getClippingRect(_ref) {
|
|
20190
20272
|
let {
|
|
@@ -20193,8 +20275,8 @@ function getClippingRect(_ref) {
|
|
|
20193
20275
|
rootBoundary,
|
|
20194
20276
|
strategy
|
|
20195
20277
|
} = _ref;
|
|
20196
|
-
const
|
|
20197
|
-
const clippingAncestors = [...
|
|
20278
|
+
const elementClippingAncestors = boundary === "clippingAncestors" ? getClippingElementAncestors(element) : [].concat(boundary);
|
|
20279
|
+
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
|
20198
20280
|
const firstClippingAncestor = clippingAncestors[0];
|
|
20199
20281
|
const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
|
|
20200
20282
|
const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
|
|
@@ -20218,18 +20300,21 @@ const platform = {
|
|
|
20218
20300
|
getDimensions,
|
|
20219
20301
|
getOffsetParent,
|
|
20220
20302
|
getDocumentElement,
|
|
20221
|
-
|
|
20303
|
+
getScale,
|
|
20304
|
+
async getElementRects(_ref) {
|
|
20222
20305
|
let {
|
|
20223
20306
|
reference,
|
|
20224
20307
|
floating,
|
|
20225
20308
|
strategy
|
|
20226
20309
|
} = _ref;
|
|
20310
|
+
const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
|
|
20311
|
+
const getDimensionsFn = this.getDimensions;
|
|
20227
20312
|
return {
|
|
20228
|
-
reference: getRectRelativeToOffsetParent(reference,
|
|
20313
|
+
reference: getRectRelativeToOffsetParent(reference, await getOffsetParentFn(floating), strategy),
|
|
20229
20314
|
floating: {
|
|
20230
|
-
...getDimensions(floating),
|
|
20231
20315
|
x: 0,
|
|
20232
|
-
y: 0
|
|
20316
|
+
y: 0,
|
|
20317
|
+
...await getDimensionsFn(floating)
|
|
20233
20318
|
}
|
|
20234
20319
|
};
|
|
20235
20320
|
},
|
|
@@ -20336,7 +20421,7 @@ function normalizePlacement(placement) {
|
|
|
20336
20421
|
}
|
|
20337
20422
|
let tenPxTester = null;
|
|
20338
20423
|
let tester = null;
|
|
20339
|
-
if (canUseDom) {
|
|
20424
|
+
if (canUseDom$2) {
|
|
20340
20425
|
tenPxTester = document.createElement("div");
|
|
20341
20426
|
tenPxTester.className = "adm-px-tester";
|
|
20342
20427
|
tenPxTester.style.setProperty("--size", "10");
|
|
@@ -20400,7 +20485,7 @@ const Popover$1 = forwardRef((p, ref) => {
|
|
|
20400
20485
|
}, React__default.createElement("div", {
|
|
20401
20486
|
className: `${classPrefix$N}-inner-content`
|
|
20402
20487
|
}, props.content)))));
|
|
20403
|
-
const [targetElement, setTargetElement] = useState(null);
|
|
20488
|
+
const [targetElement, setTargetElement] = useState$1(null);
|
|
20404
20489
|
function update2() {
|
|
20405
20490
|
var _a, _b, _c;
|
|
20406
20491
|
return __awaiter$1(this, void 0, void 0, function* () {
|
|
@@ -20677,7 +20762,7 @@ const FormItem = (props) => {
|
|
|
20677
20762
|
const widgetRef = useRef(null);
|
|
20678
20763
|
const updateRef2 = useRef(0);
|
|
20679
20764
|
updateRef2.current += 1;
|
|
20680
|
-
const [subMetas, setSubMetas] = useState({});
|
|
20765
|
+
const [subMetas, setSubMetas] = useState$1({});
|
|
20681
20766
|
const onSubMetaChange = useCallback((subMeta, namePath) => {
|
|
20682
20767
|
setSubMetas((prevSubMetas) => {
|
|
20683
20768
|
const nextSubMetas = Object.assign({}, prevSubMetas);
|
|
@@ -21195,7 +21280,7 @@ const multiDefaultProps = Object.assign(Object.assign({}, defaultProps$A), {
|
|
|
21195
21280
|
const MultiImageViewer = forwardRef((p, ref) => {
|
|
21196
21281
|
var _a;
|
|
21197
21282
|
const props = mergeProps(multiDefaultProps, p);
|
|
21198
|
-
const [index2, setIndex] = useState(props.defaultIndex);
|
|
21283
|
+
const [index2, setIndex] = useState$1(props.defaultIndex);
|
|
21199
21284
|
const slidesRef = useRef(null);
|
|
21200
21285
|
useImperativeHandle(ref, () => ({
|
|
21201
21286
|
swipeTo: (index3, immediate) => {
|
|
@@ -21282,6 +21367,7 @@ const PreviewItem = (props) => {
|
|
|
21282
21367
|
url: url2,
|
|
21283
21368
|
file,
|
|
21284
21369
|
deletable,
|
|
21370
|
+
deleteIcon,
|
|
21285
21371
|
onDelete,
|
|
21286
21372
|
imageFit
|
|
21287
21373
|
} = props;
|
|
@@ -21294,11 +21380,12 @@ const PreviewItem = (props) => {
|
|
|
21294
21380
|
}
|
|
21295
21381
|
return "";
|
|
21296
21382
|
}, [url2, file]);
|
|
21297
|
-
|
|
21383
|
+
useEffect(() => {
|
|
21298
21384
|
return () => {
|
|
21299
|
-
|
|
21385
|
+
if (file)
|
|
21386
|
+
URL.revokeObjectURL(src);
|
|
21300
21387
|
};
|
|
21301
|
-
}, [src]);
|
|
21388
|
+
}, [src, file]);
|
|
21302
21389
|
function renderLoading() {
|
|
21303
21390
|
return props.status === "pending" && React__default.createElement("div", {
|
|
21304
21391
|
className: `${classPrefix$G}-cell-mask`
|
|
@@ -21314,9 +21401,7 @@ const PreviewItem = (props) => {
|
|
|
21314
21401
|
return deletable && React__default.createElement("span", {
|
|
21315
21402
|
className: `${classPrefix$G}-cell-delete`,
|
|
21316
21403
|
onClick: onDelete
|
|
21317
|
-
},
|
|
21318
|
-
className: `${classPrefix$G}-cell-delete-icon`
|
|
21319
|
-
}));
|
|
21404
|
+
}, deleteIcon);
|
|
21320
21405
|
}
|
|
21321
21406
|
return React__default.createElement("div", {
|
|
21322
21407
|
className: classNames(`${classPrefix$G}-cell`, props.status === "fail" && `${classPrefix$G}-cell-fail`)
|
|
@@ -21359,6 +21444,9 @@ const classPrefix$E = `adm-image-uploader`;
|
|
|
21359
21444
|
const defaultProps$y = {
|
|
21360
21445
|
disableUpload: false,
|
|
21361
21446
|
deletable: true,
|
|
21447
|
+
deleteIcon: React__default.createElement(CloseOutline, {
|
|
21448
|
+
className: `${classPrefix$E}-cell-delete-icon`
|
|
21449
|
+
}),
|
|
21362
21450
|
showUpload: true,
|
|
21363
21451
|
multiple: false,
|
|
21364
21452
|
maxCount: 0,
|
|
@@ -21373,8 +21461,26 @@ const ImageUploader$1 = (p) => {
|
|
|
21373
21461
|
locale
|
|
21374
21462
|
} = useConfig();
|
|
21375
21463
|
const props = mergeProps(defaultProps$y, p);
|
|
21464
|
+
const {
|
|
21465
|
+
columns
|
|
21466
|
+
} = props;
|
|
21376
21467
|
const [value, setValue2] = usePropsValue(props);
|
|
21377
|
-
const [tasks, setTasks] = useState([]);
|
|
21468
|
+
const [tasks, setTasks] = useState$1([]);
|
|
21469
|
+
const containerRef = useRef(null);
|
|
21470
|
+
const containerSize = useSize(containerRef);
|
|
21471
|
+
const gapMeasureRef = useRef(null);
|
|
21472
|
+
const [cellSize, setCellSize] = useState$1(80);
|
|
21473
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
21474
|
+
const gapMeasure = gapMeasureRef.current;
|
|
21475
|
+
if (columns && containerSize && gapMeasure) {
|
|
21476
|
+
const width = containerSize.width;
|
|
21477
|
+
const gap = measureCSSLength(window.getComputedStyle(gapMeasure).getPropertyValue("height"));
|
|
21478
|
+
setCellSize((width - gap * (columns - 1)) / columns);
|
|
21479
|
+
}
|
|
21480
|
+
}, [containerSize === null || containerSize === void 0 ? void 0 : containerSize.width]);
|
|
21481
|
+
const style = {
|
|
21482
|
+
"--cell-size": cellSize + "px"
|
|
21483
|
+
};
|
|
21378
21484
|
useIsomorphicLayoutEffect$2(() => {
|
|
21379
21485
|
setTasks((prev) => prev.filter((task) => {
|
|
21380
21486
|
if (task.url === void 0)
|
|
@@ -21500,6 +21606,7 @@ const ImageUploader$1 = (p) => {
|
|
|
21500
21606
|
key: (_a = fileItem.key) !== null && _a !== void 0 ? _a : index2,
|
|
21501
21607
|
url: (_b = fileItem.thumbnailUrl) !== null && _b !== void 0 ? _b : fileItem.url,
|
|
21502
21608
|
deletable: props.deletable,
|
|
21609
|
+
deleteIcon: props.deleteIcon,
|
|
21503
21610
|
imageFit: props.imageFit,
|
|
21504
21611
|
onClick: () => {
|
|
21505
21612
|
if (props.preview) {
|
|
@@ -21518,26 +21625,27 @@ const ImageUploader$1 = (p) => {
|
|
|
21518
21625
|
return renderItem ? renderItem(originNode, fileItem, value) : originNode;
|
|
21519
21626
|
});
|
|
21520
21627
|
};
|
|
21521
|
-
|
|
21522
|
-
|
|
21523
|
-
|
|
21524
|
-
|
|
21525
|
-
wrap: true,
|
|
21526
|
-
block: true
|
|
21527
|
-
}, renderImages(), finalTasks.map((task) => {
|
|
21628
|
+
const contentNode = React__default.createElement(React__default.Fragment, null, renderImages(), tasks.map((task) => {
|
|
21629
|
+
if (!props.showFailed && task.status === "fail") {
|
|
21630
|
+
return null;
|
|
21631
|
+
}
|
|
21528
21632
|
return React__default.createElement(PreviewItem$1, {
|
|
21529
21633
|
key: task.id,
|
|
21530
21634
|
file: task.file,
|
|
21531
21635
|
deletable: task.status !== "pending",
|
|
21636
|
+
deleteIcon: props.deleteIcon,
|
|
21532
21637
|
status: task.status,
|
|
21533
21638
|
imageFit: props.imageFit,
|
|
21534
21639
|
onDelete: () => {
|
|
21535
|
-
setTasks(
|
|
21640
|
+
setTasks(tasks.filter((x) => x.id !== task.id));
|
|
21536
21641
|
}
|
|
21537
21642
|
});
|
|
21538
|
-
}),
|
|
21539
|
-
className: `${classPrefix$E}-upload-button-wrap
|
|
21540
|
-
|
|
21643
|
+
}), React__default.createElement("div", {
|
|
21644
|
+
className: `${classPrefix$E}-upload-button-wrap`,
|
|
21645
|
+
style: showUpload ? void 0 : {
|
|
21646
|
+
display: "none"
|
|
21647
|
+
}
|
|
21648
|
+
}, props.children || React__default.createElement("span", {
|
|
21541
21649
|
className: `${classPrefix$E}-cell ${classPrefix$E}-upload-button`,
|
|
21542
21650
|
role: "button",
|
|
21543
21651
|
"aria-label": locale.ImageUploader.upload
|
|
@@ -21551,7 +21659,22 @@ const ImageUploader$1 = (p) => {
|
|
|
21551
21659
|
className: `${classPrefix$E}-input`,
|
|
21552
21660
|
onChange,
|
|
21553
21661
|
"aria-hidden": true
|
|
21554
|
-
})))
|
|
21662
|
+
})));
|
|
21663
|
+
return withNativeProps(props, React__default.createElement("div", {
|
|
21664
|
+
className: classPrefix$E,
|
|
21665
|
+
ref: containerRef
|
|
21666
|
+
}, columns ? React__default.createElement(Grid, {
|
|
21667
|
+
className: `${classPrefix$E}-grid`,
|
|
21668
|
+
columns,
|
|
21669
|
+
style
|
|
21670
|
+
}, React__default.createElement("div", {
|
|
21671
|
+
className: `${classPrefix$E}-gap-measure`,
|
|
21672
|
+
ref: gapMeasureRef
|
|
21673
|
+
}), contentNode.props.children) : React__default.createElement(Space, {
|
|
21674
|
+
className: `${classPrefix$E}-space`,
|
|
21675
|
+
wrap: true,
|
|
21676
|
+
block: true
|
|
21677
|
+
}, contentNode.props.children)));
|
|
21555
21678
|
};
|
|
21556
21679
|
const imageUploader = "";
|
|
21557
21680
|
const ImageUploader = ImageUploader$1;
|
|
@@ -21559,7 +21682,7 @@ const indexBar = "";
|
|
|
21559
21682
|
const Panel = () => null;
|
|
21560
21683
|
const classPrefix$D = `adm-index-bar`;
|
|
21561
21684
|
const Sidebar = (props) => {
|
|
21562
|
-
const [interacting, setInteracting] = useState(false);
|
|
21685
|
+
const [interacting, setInteracting] = useState$1(false);
|
|
21563
21686
|
return React__default.createElement("div", {
|
|
21564
21687
|
className: classNames(`${classPrefix$D}-sidebar`, {
|
|
21565
21688
|
[`${classPrefix$D}-sidebar-interacting`]: interacting
|
|
@@ -21651,7 +21774,7 @@ const IndexBar = forwardRef((p, ref) => {
|
|
|
21651
21774
|
className: `${classPrefix$C}-anchor-title`
|
|
21652
21775
|
}, child.props.title || child.props.index), child.props.children)));
|
|
21653
21776
|
});
|
|
21654
|
-
const [activeIndex, setActiveIndex] = useState(() => {
|
|
21777
|
+
const [activeIndex, setActiveIndex] = useState$1(() => {
|
|
21655
21778
|
const firstItem = indexItems[0];
|
|
21656
21779
|
return firstItem ? firstItem.index : null;
|
|
21657
21780
|
});
|
|
@@ -21738,7 +21861,7 @@ const defaultProps$w = {
|
|
|
21738
21861
|
};
|
|
21739
21862
|
const InfiniteScroll$1 = (p) => {
|
|
21740
21863
|
const props = mergeProps(defaultProps$w, p);
|
|
21741
|
-
const [failed, setFailed] = useState(false);
|
|
21864
|
+
const [failed, setFailed] = useState$1(false);
|
|
21742
21865
|
const doLoadMore = useLockFn((isRetry) => __awaiter$1(void 0, void 0, void 0, function* () {
|
|
21743
21866
|
try {
|
|
21744
21867
|
yield props.loadMore(isRetry);
|
|
@@ -21748,9 +21871,9 @@ const InfiniteScroll$1 = (p) => {
|
|
|
21748
21871
|
}
|
|
21749
21872
|
}));
|
|
21750
21873
|
const elementRef = useRef(null);
|
|
21751
|
-
const [flag, setFlag] = useState({});
|
|
21874
|
+
const [flag, setFlag] = useState$1({});
|
|
21752
21875
|
const nextFlagRef = useRef(flag);
|
|
21753
|
-
const [scrollParent, setScrollParent] = useState();
|
|
21876
|
+
const [scrollParent, setScrollParent] = useState$1();
|
|
21754
21877
|
const {
|
|
21755
21878
|
run: check
|
|
21756
21879
|
} = useThrottleFn(() => __awaiter$1(void 0, void 0, void 0, function* () {
|
|
@@ -21838,7 +21961,7 @@ const defaultProps$v = {
|
|
|
21838
21961
|
const Input$1 = forwardRef((p, ref) => {
|
|
21839
21962
|
const props = mergeProps(defaultProps$v, p);
|
|
21840
21963
|
const [value, setValue2] = usePropsValue(props);
|
|
21841
|
-
const [hasFocus, setHasFocus] = useState(false);
|
|
21964
|
+
const [hasFocus, setHasFocus] = useState$1(false);
|
|
21842
21965
|
const compositionStartRef = useRef(false);
|
|
21843
21966
|
const nativeInputRef = useRef(null);
|
|
21844
21967
|
const {
|
|
@@ -22265,18 +22388,19 @@ const defaultProps$r = {
|
|
|
22265
22388
|
color: "default",
|
|
22266
22389
|
delay: 2e3,
|
|
22267
22390
|
speed: 50,
|
|
22391
|
+
wrap: false,
|
|
22268
22392
|
icon: React__default.createElement(SoundOutline, null)
|
|
22269
22393
|
};
|
|
22270
22394
|
const NoticeBar$1 = memo((p) => {
|
|
22271
22395
|
const props = mergeProps(defaultProps$r, p);
|
|
22272
22396
|
const containerRef = useRef(null);
|
|
22273
22397
|
const textRef = useRef(null);
|
|
22274
|
-
const [visible, setVisible] = useState(true);
|
|
22398
|
+
const [visible, setVisible] = useState$1(true);
|
|
22275
22399
|
const speed = props.speed;
|
|
22276
22400
|
const delayLockRef = useRef(true);
|
|
22277
22401
|
const animatingRef = useRef(false);
|
|
22278
22402
|
function start2() {
|
|
22279
|
-
if (delayLockRef.current)
|
|
22403
|
+
if (delayLockRef.current || props.wrap)
|
|
22280
22404
|
return;
|
|
22281
22405
|
const container = containerRef.current;
|
|
22282
22406
|
const text = textRef.current;
|
|
@@ -22319,7 +22443,9 @@ const NoticeBar$1 = memo((p) => {
|
|
|
22319
22443
|
if (!visible)
|
|
22320
22444
|
return null;
|
|
22321
22445
|
return withNativeProps(props, React__default.createElement("div", {
|
|
22322
|
-
className: classNames(classPrefix$x, `${classPrefix$x}-${props.color}
|
|
22446
|
+
className: classNames(classPrefix$x, `${classPrefix$x}-${props.color}`, {
|
|
22447
|
+
[`${classPrefix$x}-wrap`]: props.wrap
|
|
22448
|
+
})
|
|
22323
22449
|
}, props.icon && React__default.createElement("span", {
|
|
22324
22450
|
className: `${classPrefix$x}-left`
|
|
22325
22451
|
}, props.icon), React__default.createElement("span", {
|
|
@@ -22560,7 +22686,7 @@ const PasscodeInput$1 = forwardRef((p, ref) => {
|
|
|
22560
22686
|
const {
|
|
22561
22687
|
locale
|
|
22562
22688
|
} = useConfig();
|
|
22563
|
-
const [focused, setFocused] = useState(false);
|
|
22689
|
+
const [focused, setFocused] = useState$1(false);
|
|
22564
22690
|
const [value, setValue2] = usePropsValue(props);
|
|
22565
22691
|
const rootRef = useRef(null);
|
|
22566
22692
|
const nativeInputRef = useRef(null);
|
|
@@ -22755,7 +22881,7 @@ const PullToRefresh$1 = (p) => {
|
|
|
22755
22881
|
}, p);
|
|
22756
22882
|
const headHeight = (_a = props.headHeight) !== null && _a !== void 0 ? _a : convertPx(40);
|
|
22757
22883
|
const threshold = (_b = props.threshold) !== null && _b !== void 0 ? _b : convertPx(60);
|
|
22758
|
-
const [status, setStatus] = useState("pulling");
|
|
22884
|
+
const [status, setStatus] = useState$1("pulling");
|
|
22759
22885
|
const [springStyles, api] = useSpring(() => ({
|
|
22760
22886
|
from: {
|
|
22761
22887
|
height: 0
|
|
@@ -23141,7 +23267,7 @@ const ResultPage = (p) => {
|
|
|
23141
23267
|
onSecondaryButtonClick
|
|
23142
23268
|
} = props;
|
|
23143
23269
|
const resultIcon = icon || React__default.createElement(iconRecord[status]);
|
|
23144
|
-
const [collapse2, setCollapse] = useState(true);
|
|
23270
|
+
const [collapse2, setCollapse] = useState$1(true);
|
|
23145
23271
|
const showSecondaryButton = isNodeWithContent(secondaryButtonText);
|
|
23146
23272
|
const showPrimaryButton = isNodeWithContent(primaryButtonText);
|
|
23147
23273
|
return withNativeProps(props, React__default.createElement("div", {
|
|
@@ -23218,7 +23344,7 @@ const SearchBar$1 = forwardRef((p, ref) => {
|
|
|
23218
23344
|
cancelText: locale.common.cancel
|
|
23219
23345
|
}, p);
|
|
23220
23346
|
const [value, setValue2] = usePropsValue(props);
|
|
23221
|
-
const [hasFocus, setHasFocus] = useState(false);
|
|
23347
|
+
const [hasFocus, setHasFocus] = useState$1(false);
|
|
23222
23348
|
const inputRef = useRef(null);
|
|
23223
23349
|
const composingRef = useRef(false);
|
|
23224
23350
|
useImperativeHandle(ref, () => ({
|
|
@@ -23553,6 +23679,320 @@ const Marks = ({
|
|
|
23553
23679
|
}, elements);
|
|
23554
23680
|
};
|
|
23555
23681
|
const Marks$1 = Marks;
|
|
23682
|
+
function supportBigInt() {
|
|
23683
|
+
return typeof BigInt === "function";
|
|
23684
|
+
}
|
|
23685
|
+
function trimNumber(numStr) {
|
|
23686
|
+
var str = numStr.trim();
|
|
23687
|
+
var negative = str.startsWith("-");
|
|
23688
|
+
if (negative) {
|
|
23689
|
+
str = str.slice(1);
|
|
23690
|
+
}
|
|
23691
|
+
str = str.replace(/(\.\d*[^0])0*$/, "$1").replace(/\.0*$/, "").replace(/^0+/, "");
|
|
23692
|
+
if (str.startsWith(".")) {
|
|
23693
|
+
str = "0".concat(str);
|
|
23694
|
+
}
|
|
23695
|
+
var trimStr = str || "0";
|
|
23696
|
+
var splitNumber = trimStr.split(".");
|
|
23697
|
+
var integerStr = splitNumber[0] || "0";
|
|
23698
|
+
var decimalStr = splitNumber[1] || "0";
|
|
23699
|
+
if (integerStr === "0" && decimalStr === "0") {
|
|
23700
|
+
negative = false;
|
|
23701
|
+
}
|
|
23702
|
+
var negativeStr = negative ? "-" : "";
|
|
23703
|
+
return {
|
|
23704
|
+
negative,
|
|
23705
|
+
negativeStr,
|
|
23706
|
+
trimStr,
|
|
23707
|
+
integerStr,
|
|
23708
|
+
decimalStr,
|
|
23709
|
+
fullStr: "".concat(negativeStr).concat(trimStr)
|
|
23710
|
+
};
|
|
23711
|
+
}
|
|
23712
|
+
function isE(number4) {
|
|
23713
|
+
var str = String(number4);
|
|
23714
|
+
return !Number.isNaN(Number(str)) && str.includes("e");
|
|
23715
|
+
}
|
|
23716
|
+
function getNumberPrecision(number4) {
|
|
23717
|
+
var numStr = String(number4);
|
|
23718
|
+
if (isE(number4)) {
|
|
23719
|
+
var precision = Number(numStr.slice(numStr.indexOf("e-") + 2));
|
|
23720
|
+
var decimalMatch = numStr.match(/\.(\d+)/);
|
|
23721
|
+
if (decimalMatch !== null && decimalMatch !== void 0 && decimalMatch[1]) {
|
|
23722
|
+
precision += decimalMatch[1].length;
|
|
23723
|
+
}
|
|
23724
|
+
return precision;
|
|
23725
|
+
}
|
|
23726
|
+
return numStr.includes(".") && validateNumber(numStr) ? numStr.length - numStr.indexOf(".") - 1 : 0;
|
|
23727
|
+
}
|
|
23728
|
+
function num2str(number4) {
|
|
23729
|
+
var numStr = String(number4);
|
|
23730
|
+
if (isE(number4)) {
|
|
23731
|
+
if (number4 > Number.MAX_SAFE_INTEGER) {
|
|
23732
|
+
return String(supportBigInt() ? BigInt(number4).toString() : Number.MAX_SAFE_INTEGER);
|
|
23733
|
+
}
|
|
23734
|
+
if (number4 < Number.MIN_SAFE_INTEGER) {
|
|
23735
|
+
return String(supportBigInt() ? BigInt(number4).toString() : Number.MIN_SAFE_INTEGER);
|
|
23736
|
+
}
|
|
23737
|
+
numStr = number4.toFixed(getNumberPrecision(numStr));
|
|
23738
|
+
}
|
|
23739
|
+
return trimNumber(numStr).fullStr;
|
|
23740
|
+
}
|
|
23741
|
+
function validateNumber(num) {
|
|
23742
|
+
if (typeof num === "number") {
|
|
23743
|
+
return !Number.isNaN(num);
|
|
23744
|
+
}
|
|
23745
|
+
if (!num) {
|
|
23746
|
+
return false;
|
|
23747
|
+
}
|
|
23748
|
+
return /^\s*-?\d+(\.\d+)?\s*$/.test(num) || /^\s*-?\d+\.\s*$/.test(num) || /^\s*-?\.\d+\s*$/.test(num);
|
|
23749
|
+
}
|
|
23750
|
+
function isEmpty(value) {
|
|
23751
|
+
return !value && value !== 0 && !Number.isNaN(value) || !String(value).trim();
|
|
23752
|
+
}
|
|
23753
|
+
var NumberDecimal = /* @__PURE__ */ function() {
|
|
23754
|
+
function NumberDecimal2(value) {
|
|
23755
|
+
_classCallCheck(this, NumberDecimal2);
|
|
23756
|
+
_defineProperty(this, "origin", "");
|
|
23757
|
+
_defineProperty(this, "number", void 0);
|
|
23758
|
+
_defineProperty(this, "empty", void 0);
|
|
23759
|
+
if (isEmpty(value)) {
|
|
23760
|
+
this.empty = true;
|
|
23761
|
+
return;
|
|
23762
|
+
}
|
|
23763
|
+
this.origin = String(value);
|
|
23764
|
+
this.number = Number(value);
|
|
23765
|
+
}
|
|
23766
|
+
_createClass(NumberDecimal2, [{
|
|
23767
|
+
key: "negate",
|
|
23768
|
+
value: function negate() {
|
|
23769
|
+
return new NumberDecimal2(-this.toNumber());
|
|
23770
|
+
}
|
|
23771
|
+
}, {
|
|
23772
|
+
key: "add",
|
|
23773
|
+
value: function add(value) {
|
|
23774
|
+
if (this.isInvalidate()) {
|
|
23775
|
+
return new NumberDecimal2(value);
|
|
23776
|
+
}
|
|
23777
|
+
var target = Number(value);
|
|
23778
|
+
if (Number.isNaN(target)) {
|
|
23779
|
+
return this;
|
|
23780
|
+
}
|
|
23781
|
+
var number4 = this.number + target;
|
|
23782
|
+
if (number4 > Number.MAX_SAFE_INTEGER) {
|
|
23783
|
+
return new NumberDecimal2(Number.MAX_SAFE_INTEGER);
|
|
23784
|
+
}
|
|
23785
|
+
if (number4 < Number.MIN_SAFE_INTEGER) {
|
|
23786
|
+
return new NumberDecimal2(Number.MIN_SAFE_INTEGER);
|
|
23787
|
+
}
|
|
23788
|
+
var maxPrecision = Math.max(getNumberPrecision(this.number), getNumberPrecision(target));
|
|
23789
|
+
return new NumberDecimal2(number4.toFixed(maxPrecision));
|
|
23790
|
+
}
|
|
23791
|
+
}, {
|
|
23792
|
+
key: "isEmpty",
|
|
23793
|
+
value: function isEmpty2() {
|
|
23794
|
+
return this.empty;
|
|
23795
|
+
}
|
|
23796
|
+
}, {
|
|
23797
|
+
key: "isNaN",
|
|
23798
|
+
value: function isNaN2() {
|
|
23799
|
+
return Number.isNaN(this.number);
|
|
23800
|
+
}
|
|
23801
|
+
}, {
|
|
23802
|
+
key: "isInvalidate",
|
|
23803
|
+
value: function isInvalidate() {
|
|
23804
|
+
return this.isEmpty() || this.isNaN();
|
|
23805
|
+
}
|
|
23806
|
+
}, {
|
|
23807
|
+
key: "equals",
|
|
23808
|
+
value: function equals(target) {
|
|
23809
|
+
return this.toNumber() === (target === null || target === void 0 ? void 0 : target.toNumber());
|
|
23810
|
+
}
|
|
23811
|
+
}, {
|
|
23812
|
+
key: "lessEquals",
|
|
23813
|
+
value: function lessEquals(target) {
|
|
23814
|
+
return this.add(target.negate().toString()).toNumber() <= 0;
|
|
23815
|
+
}
|
|
23816
|
+
}, {
|
|
23817
|
+
key: "toNumber",
|
|
23818
|
+
value: function toNumber2() {
|
|
23819
|
+
return this.number;
|
|
23820
|
+
}
|
|
23821
|
+
}, {
|
|
23822
|
+
key: "toString",
|
|
23823
|
+
value: function toString() {
|
|
23824
|
+
var safe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true;
|
|
23825
|
+
if (!safe) {
|
|
23826
|
+
return this.origin;
|
|
23827
|
+
}
|
|
23828
|
+
if (this.isInvalidate()) {
|
|
23829
|
+
return "";
|
|
23830
|
+
}
|
|
23831
|
+
return num2str(this.number);
|
|
23832
|
+
}
|
|
23833
|
+
}]);
|
|
23834
|
+
return NumberDecimal2;
|
|
23835
|
+
}();
|
|
23836
|
+
var BigIntDecimal = /* @__PURE__ */ function() {
|
|
23837
|
+
function BigIntDecimal2(value) {
|
|
23838
|
+
_classCallCheck(this, BigIntDecimal2);
|
|
23839
|
+
_defineProperty(this, "origin", "");
|
|
23840
|
+
_defineProperty(this, "negative", void 0);
|
|
23841
|
+
_defineProperty(this, "integer", void 0);
|
|
23842
|
+
_defineProperty(this, "decimal", void 0);
|
|
23843
|
+
_defineProperty(this, "decimalLen", void 0);
|
|
23844
|
+
_defineProperty(this, "empty", void 0);
|
|
23845
|
+
_defineProperty(this, "nan", void 0);
|
|
23846
|
+
if (isEmpty(value)) {
|
|
23847
|
+
this.empty = true;
|
|
23848
|
+
return;
|
|
23849
|
+
}
|
|
23850
|
+
this.origin = String(value);
|
|
23851
|
+
if (value === "-" || Number.isNaN(value)) {
|
|
23852
|
+
this.nan = true;
|
|
23853
|
+
return;
|
|
23854
|
+
}
|
|
23855
|
+
var mergedValue = value;
|
|
23856
|
+
if (isE(mergedValue)) {
|
|
23857
|
+
mergedValue = Number(mergedValue);
|
|
23858
|
+
}
|
|
23859
|
+
mergedValue = typeof mergedValue === "string" ? mergedValue : num2str(mergedValue);
|
|
23860
|
+
if (validateNumber(mergedValue)) {
|
|
23861
|
+
var trimRet = trimNumber(mergedValue);
|
|
23862
|
+
this.negative = trimRet.negative;
|
|
23863
|
+
var numbers = trimRet.trimStr.split(".");
|
|
23864
|
+
this.integer = BigInt(numbers[0]);
|
|
23865
|
+
var decimalStr = numbers[1] || "0";
|
|
23866
|
+
this.decimal = BigInt(decimalStr);
|
|
23867
|
+
this.decimalLen = decimalStr.length;
|
|
23868
|
+
} else {
|
|
23869
|
+
this.nan = true;
|
|
23870
|
+
}
|
|
23871
|
+
}
|
|
23872
|
+
_createClass(BigIntDecimal2, [{
|
|
23873
|
+
key: "getMark",
|
|
23874
|
+
value: function getMark() {
|
|
23875
|
+
return this.negative ? "-" : "";
|
|
23876
|
+
}
|
|
23877
|
+
}, {
|
|
23878
|
+
key: "getIntegerStr",
|
|
23879
|
+
value: function getIntegerStr() {
|
|
23880
|
+
return this.integer.toString();
|
|
23881
|
+
}
|
|
23882
|
+
}, {
|
|
23883
|
+
key: "getDecimalStr",
|
|
23884
|
+
value: function getDecimalStr() {
|
|
23885
|
+
return this.decimal.toString().padStart(this.decimalLen, "0");
|
|
23886
|
+
}
|
|
23887
|
+
}, {
|
|
23888
|
+
key: "alignDecimal",
|
|
23889
|
+
value: function alignDecimal(decimalLength) {
|
|
23890
|
+
var str = "".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(decimalLength, "0"));
|
|
23891
|
+
return BigInt(str);
|
|
23892
|
+
}
|
|
23893
|
+
}, {
|
|
23894
|
+
key: "negate",
|
|
23895
|
+
value: function negate() {
|
|
23896
|
+
var clone = new BigIntDecimal2(this.toString());
|
|
23897
|
+
clone.negative = !clone.negative;
|
|
23898
|
+
return clone;
|
|
23899
|
+
}
|
|
23900
|
+
}, {
|
|
23901
|
+
key: "add",
|
|
23902
|
+
value: function add(value) {
|
|
23903
|
+
if (this.isInvalidate()) {
|
|
23904
|
+
return new BigIntDecimal2(value);
|
|
23905
|
+
}
|
|
23906
|
+
var offset2 = new BigIntDecimal2(value);
|
|
23907
|
+
if (offset2.isInvalidate()) {
|
|
23908
|
+
return this;
|
|
23909
|
+
}
|
|
23910
|
+
var maxDecimalLength = Math.max(this.getDecimalStr().length, offset2.getDecimalStr().length);
|
|
23911
|
+
var myAlignedDecimal = this.alignDecimal(maxDecimalLength);
|
|
23912
|
+
var offsetAlignedDecimal = offset2.alignDecimal(maxDecimalLength);
|
|
23913
|
+
var valueStr = (myAlignedDecimal + offsetAlignedDecimal).toString();
|
|
23914
|
+
var _trimNumber = trimNumber(valueStr), negativeStr = _trimNumber.negativeStr, trimStr = _trimNumber.trimStr;
|
|
23915
|
+
var hydrateValueStr = "".concat(negativeStr).concat(trimStr.padStart(maxDecimalLength + 1, "0"));
|
|
23916
|
+
return new BigIntDecimal2("".concat(hydrateValueStr.slice(0, -maxDecimalLength), ".").concat(hydrateValueStr.slice(-maxDecimalLength)));
|
|
23917
|
+
}
|
|
23918
|
+
}, {
|
|
23919
|
+
key: "isEmpty",
|
|
23920
|
+
value: function isEmpty2() {
|
|
23921
|
+
return this.empty;
|
|
23922
|
+
}
|
|
23923
|
+
}, {
|
|
23924
|
+
key: "isNaN",
|
|
23925
|
+
value: function isNaN2() {
|
|
23926
|
+
return this.nan;
|
|
23927
|
+
}
|
|
23928
|
+
}, {
|
|
23929
|
+
key: "isInvalidate",
|
|
23930
|
+
value: function isInvalidate() {
|
|
23931
|
+
return this.isEmpty() || this.isNaN();
|
|
23932
|
+
}
|
|
23933
|
+
}, {
|
|
23934
|
+
key: "equals",
|
|
23935
|
+
value: function equals(target) {
|
|
23936
|
+
return this.toString() === (target === null || target === void 0 ? void 0 : target.toString());
|
|
23937
|
+
}
|
|
23938
|
+
}, {
|
|
23939
|
+
key: "lessEquals",
|
|
23940
|
+
value: function lessEquals(target) {
|
|
23941
|
+
return this.add(target.negate().toString()).toNumber() <= 0;
|
|
23942
|
+
}
|
|
23943
|
+
}, {
|
|
23944
|
+
key: "toNumber",
|
|
23945
|
+
value: function toNumber2() {
|
|
23946
|
+
if (this.isNaN()) {
|
|
23947
|
+
return NaN;
|
|
23948
|
+
}
|
|
23949
|
+
return Number(this.toString());
|
|
23950
|
+
}
|
|
23951
|
+
}, {
|
|
23952
|
+
key: "toString",
|
|
23953
|
+
value: function toString() {
|
|
23954
|
+
var safe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true;
|
|
23955
|
+
if (!safe) {
|
|
23956
|
+
return this.origin;
|
|
23957
|
+
}
|
|
23958
|
+
if (this.isInvalidate()) {
|
|
23959
|
+
return "";
|
|
23960
|
+
}
|
|
23961
|
+
return trimNumber("".concat(this.getMark()).concat(this.getIntegerStr(), ".").concat(this.getDecimalStr())).fullStr;
|
|
23962
|
+
}
|
|
23963
|
+
}]);
|
|
23964
|
+
return BigIntDecimal2;
|
|
23965
|
+
}();
|
|
23966
|
+
function getMiniDecimal(value) {
|
|
23967
|
+
if (supportBigInt()) {
|
|
23968
|
+
return new BigIntDecimal(value);
|
|
23969
|
+
}
|
|
23970
|
+
return new NumberDecimal(value);
|
|
23971
|
+
}
|
|
23972
|
+
function toFixed(numStr, separatorStr, precision) {
|
|
23973
|
+
var cutOnly = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
|
|
23974
|
+
if (numStr === "") {
|
|
23975
|
+
return "";
|
|
23976
|
+
}
|
|
23977
|
+
var _trimNumber2 = trimNumber(numStr), negativeStr = _trimNumber2.negativeStr, integerStr = _trimNumber2.integerStr, decimalStr = _trimNumber2.decimalStr;
|
|
23978
|
+
var precisionDecimalStr = "".concat(separatorStr).concat(decimalStr);
|
|
23979
|
+
var numberWithoutDecimal = "".concat(negativeStr).concat(integerStr);
|
|
23980
|
+
if (precision >= 0) {
|
|
23981
|
+
var advancedNum = Number(decimalStr[precision]);
|
|
23982
|
+
if (advancedNum >= 5 && !cutOnly) {
|
|
23983
|
+
var advancedDecimal = getMiniDecimal(numStr).add("".concat(negativeStr, "0.").concat("0".repeat(precision)).concat(10 - advancedNum));
|
|
23984
|
+
return toFixed(advancedDecimal.toString(), separatorStr, precision, cutOnly);
|
|
23985
|
+
}
|
|
23986
|
+
if (precision === 0) {
|
|
23987
|
+
return numberWithoutDecimal;
|
|
23988
|
+
}
|
|
23989
|
+
return "".concat(numberWithoutDecimal).concat(separatorStr).concat(decimalStr.padEnd(precision, "0").slice(0, precision));
|
|
23990
|
+
}
|
|
23991
|
+
if (precisionDecimalStr === ".0") {
|
|
23992
|
+
return numberWithoutDecimal;
|
|
23993
|
+
}
|
|
23994
|
+
return "".concat(numberWithoutDecimal).concat(precisionDecimalStr);
|
|
23995
|
+
}
|
|
23556
23996
|
const ThumbIcon = (props) => {
|
|
23557
23997
|
return withNativeProps(props, React__default.createElement("svg", {
|
|
23558
23998
|
viewBox: "0 0 24 24",
|
|
@@ -23599,7 +24039,7 @@ const Thumb = (props) => {
|
|
|
23599
24039
|
right: "auto"
|
|
23600
24040
|
};
|
|
23601
24041
|
};
|
|
23602
|
-
const [dragging, setDragging] = useState(false);
|
|
24042
|
+
const [dragging, setDragging] = useState$1(false);
|
|
23603
24043
|
const bind = useDrag((state) => {
|
|
23604
24044
|
var _a;
|
|
23605
24045
|
if (disabled)
|
|
@@ -23645,514 +24085,6 @@ const Thumb = (props) => {
|
|
|
23645
24085
|
}, thumbElement) : thumbElement);
|
|
23646
24086
|
};
|
|
23647
24087
|
const Thumb$1 = Thumb;
|
|
23648
|
-
var DP = 20, RM = 1, MAX_DP = 1e6, MAX_POWER = 1e6, NE = -7, PE = 21, STRICT = false, NAME = "[big.js] ", INVALID = NAME + "Invalid ", INVALID_DP = INVALID + "decimal places", INVALID_RM = INVALID + "rounding mode", DIV_BY_ZERO = NAME + "Division by zero", P = {}, UNDEFINED = void 0, NUMERIC = /^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;
|
|
23649
|
-
function _Big_() {
|
|
23650
|
-
function Big2(n) {
|
|
23651
|
-
var x = this;
|
|
23652
|
-
if (!(x instanceof Big2))
|
|
23653
|
-
return n === UNDEFINED ? _Big_() : new Big2(n);
|
|
23654
|
-
if (n instanceof Big2) {
|
|
23655
|
-
x.s = n.s;
|
|
23656
|
-
x.e = n.e;
|
|
23657
|
-
x.c = n.c.slice();
|
|
23658
|
-
} else {
|
|
23659
|
-
if (typeof n !== "string") {
|
|
23660
|
-
if (Big2.strict === true && typeof n !== "bigint") {
|
|
23661
|
-
throw TypeError(INVALID + "value");
|
|
23662
|
-
}
|
|
23663
|
-
n = n === 0 && 1 / n < 0 ? "-0" : String(n);
|
|
23664
|
-
}
|
|
23665
|
-
parse(x, n);
|
|
23666
|
-
}
|
|
23667
|
-
x.constructor = Big2;
|
|
23668
|
-
}
|
|
23669
|
-
Big2.prototype = P;
|
|
23670
|
-
Big2.DP = DP;
|
|
23671
|
-
Big2.RM = RM;
|
|
23672
|
-
Big2.NE = NE;
|
|
23673
|
-
Big2.PE = PE;
|
|
23674
|
-
Big2.strict = STRICT;
|
|
23675
|
-
Big2.roundDown = 0;
|
|
23676
|
-
Big2.roundHalfUp = 1;
|
|
23677
|
-
Big2.roundHalfEven = 2;
|
|
23678
|
-
Big2.roundUp = 3;
|
|
23679
|
-
return Big2;
|
|
23680
|
-
}
|
|
23681
|
-
function parse(x, n) {
|
|
23682
|
-
var e, i, nl;
|
|
23683
|
-
if (!NUMERIC.test(n)) {
|
|
23684
|
-
throw Error(INVALID + "number");
|
|
23685
|
-
}
|
|
23686
|
-
x.s = n.charAt(0) == "-" ? (n = n.slice(1), -1) : 1;
|
|
23687
|
-
if ((e = n.indexOf(".")) > -1)
|
|
23688
|
-
n = n.replace(".", "");
|
|
23689
|
-
if ((i = n.search(/e/i)) > 0) {
|
|
23690
|
-
if (e < 0)
|
|
23691
|
-
e = i;
|
|
23692
|
-
e += +n.slice(i + 1);
|
|
23693
|
-
n = n.substring(0, i);
|
|
23694
|
-
} else if (e < 0) {
|
|
23695
|
-
e = n.length;
|
|
23696
|
-
}
|
|
23697
|
-
nl = n.length;
|
|
23698
|
-
for (i = 0; i < nl && n.charAt(i) == "0"; )
|
|
23699
|
-
++i;
|
|
23700
|
-
if (i == nl) {
|
|
23701
|
-
x.c = [x.e = 0];
|
|
23702
|
-
} else {
|
|
23703
|
-
for (; nl > 0 && n.charAt(--nl) == "0"; )
|
|
23704
|
-
;
|
|
23705
|
-
x.e = e - i - 1;
|
|
23706
|
-
x.c = [];
|
|
23707
|
-
for (e = 0; i <= nl; )
|
|
23708
|
-
x.c[e++] = +n.charAt(i++);
|
|
23709
|
-
}
|
|
23710
|
-
return x;
|
|
23711
|
-
}
|
|
23712
|
-
function round(x, sd, rm, more) {
|
|
23713
|
-
var xc = x.c;
|
|
23714
|
-
if (rm === UNDEFINED)
|
|
23715
|
-
rm = x.constructor.RM;
|
|
23716
|
-
if (rm !== 0 && rm !== 1 && rm !== 2 && rm !== 3) {
|
|
23717
|
-
throw Error(INVALID_RM);
|
|
23718
|
-
}
|
|
23719
|
-
if (sd < 1) {
|
|
23720
|
-
more = rm === 3 && (more || !!xc[0]) || sd === 0 && (rm === 1 && xc[0] >= 5 || rm === 2 && (xc[0] > 5 || xc[0] === 5 && (more || xc[1] !== UNDEFINED)));
|
|
23721
|
-
xc.length = 1;
|
|
23722
|
-
if (more) {
|
|
23723
|
-
x.e = x.e - sd + 1;
|
|
23724
|
-
xc[0] = 1;
|
|
23725
|
-
} else {
|
|
23726
|
-
xc[0] = x.e = 0;
|
|
23727
|
-
}
|
|
23728
|
-
} else if (sd < xc.length) {
|
|
23729
|
-
more = rm === 1 && xc[sd] >= 5 || rm === 2 && (xc[sd] > 5 || xc[sd] === 5 && (more || xc[sd + 1] !== UNDEFINED || xc[sd - 1] & 1)) || rm === 3 && (more || !!xc[0]);
|
|
23730
|
-
xc.length = sd;
|
|
23731
|
-
if (more) {
|
|
23732
|
-
for (; ++xc[--sd] > 9; ) {
|
|
23733
|
-
xc[sd] = 0;
|
|
23734
|
-
if (sd === 0) {
|
|
23735
|
-
++x.e;
|
|
23736
|
-
xc.unshift(1);
|
|
23737
|
-
break;
|
|
23738
|
-
}
|
|
23739
|
-
}
|
|
23740
|
-
}
|
|
23741
|
-
for (sd = xc.length; !xc[--sd]; )
|
|
23742
|
-
xc.pop();
|
|
23743
|
-
}
|
|
23744
|
-
return x;
|
|
23745
|
-
}
|
|
23746
|
-
function stringify(x, doExponential, isNonzero) {
|
|
23747
|
-
var e = x.e, s = x.c.join(""), n = s.length;
|
|
23748
|
-
if (doExponential) {
|
|
23749
|
-
s = s.charAt(0) + (n > 1 ? "." + s.slice(1) : "") + (e < 0 ? "e" : "e+") + e;
|
|
23750
|
-
} else if (e < 0) {
|
|
23751
|
-
for (; ++e; )
|
|
23752
|
-
s = "0" + s;
|
|
23753
|
-
s = "0." + s;
|
|
23754
|
-
} else if (e > 0) {
|
|
23755
|
-
if (++e > n) {
|
|
23756
|
-
for (e -= n; e--; )
|
|
23757
|
-
s += "0";
|
|
23758
|
-
} else if (e < n) {
|
|
23759
|
-
s = s.slice(0, e) + "." + s.slice(e);
|
|
23760
|
-
}
|
|
23761
|
-
} else if (n > 1) {
|
|
23762
|
-
s = s.charAt(0) + "." + s.slice(1);
|
|
23763
|
-
}
|
|
23764
|
-
return x.s < 0 && isNonzero ? "-" + s : s;
|
|
23765
|
-
}
|
|
23766
|
-
P.abs = function() {
|
|
23767
|
-
var x = new this.constructor(this);
|
|
23768
|
-
x.s = 1;
|
|
23769
|
-
return x;
|
|
23770
|
-
};
|
|
23771
|
-
P.cmp = function(y) {
|
|
23772
|
-
var isneg, x = this, xc = x.c, yc = (y = new x.constructor(y)).c, i = x.s, j = y.s, k = x.e, l = y.e;
|
|
23773
|
-
if (!xc[0] || !yc[0])
|
|
23774
|
-
return !xc[0] ? !yc[0] ? 0 : -j : i;
|
|
23775
|
-
if (i != j)
|
|
23776
|
-
return i;
|
|
23777
|
-
isneg = i < 0;
|
|
23778
|
-
if (k != l)
|
|
23779
|
-
return k > l ^ isneg ? 1 : -1;
|
|
23780
|
-
j = (k = xc.length) < (l = yc.length) ? k : l;
|
|
23781
|
-
for (i = -1; ++i < j; ) {
|
|
23782
|
-
if (xc[i] != yc[i])
|
|
23783
|
-
return xc[i] > yc[i] ^ isneg ? 1 : -1;
|
|
23784
|
-
}
|
|
23785
|
-
return k == l ? 0 : k > l ^ isneg ? 1 : -1;
|
|
23786
|
-
};
|
|
23787
|
-
P.div = function(y) {
|
|
23788
|
-
var x = this, Big2 = x.constructor, a = x.c, b = (y = new Big2(y)).c, k = x.s == y.s ? 1 : -1, dp = Big2.DP;
|
|
23789
|
-
if (dp !== ~~dp || dp < 0 || dp > MAX_DP) {
|
|
23790
|
-
throw Error(INVALID_DP);
|
|
23791
|
-
}
|
|
23792
|
-
if (!b[0]) {
|
|
23793
|
-
throw Error(DIV_BY_ZERO);
|
|
23794
|
-
}
|
|
23795
|
-
if (!a[0]) {
|
|
23796
|
-
y.s = k;
|
|
23797
|
-
y.c = [y.e = 0];
|
|
23798
|
-
return y;
|
|
23799
|
-
}
|
|
23800
|
-
var bl, bt, n, cmp, ri, bz = b.slice(), ai = bl = b.length, al = a.length, r = a.slice(0, bl), rl = r.length, q = y, qc = q.c = [], qi = 0, p = dp + (q.e = x.e - y.e) + 1;
|
|
23801
|
-
q.s = k;
|
|
23802
|
-
k = p < 0 ? 0 : p;
|
|
23803
|
-
bz.unshift(0);
|
|
23804
|
-
for (; rl++ < bl; )
|
|
23805
|
-
r.push(0);
|
|
23806
|
-
do {
|
|
23807
|
-
for (n = 0; n < 10; n++) {
|
|
23808
|
-
if (bl != (rl = r.length)) {
|
|
23809
|
-
cmp = bl > rl ? 1 : -1;
|
|
23810
|
-
} else {
|
|
23811
|
-
for (ri = -1, cmp = 0; ++ri < bl; ) {
|
|
23812
|
-
if (b[ri] != r[ri]) {
|
|
23813
|
-
cmp = b[ri] > r[ri] ? 1 : -1;
|
|
23814
|
-
break;
|
|
23815
|
-
}
|
|
23816
|
-
}
|
|
23817
|
-
}
|
|
23818
|
-
if (cmp < 0) {
|
|
23819
|
-
for (bt = rl == bl ? b : bz; rl; ) {
|
|
23820
|
-
if (r[--rl] < bt[rl]) {
|
|
23821
|
-
ri = rl;
|
|
23822
|
-
for (; ri && !r[--ri]; )
|
|
23823
|
-
r[ri] = 9;
|
|
23824
|
-
--r[ri];
|
|
23825
|
-
r[rl] += 10;
|
|
23826
|
-
}
|
|
23827
|
-
r[rl] -= bt[rl];
|
|
23828
|
-
}
|
|
23829
|
-
for (; !r[0]; )
|
|
23830
|
-
r.shift();
|
|
23831
|
-
} else {
|
|
23832
|
-
break;
|
|
23833
|
-
}
|
|
23834
|
-
}
|
|
23835
|
-
qc[qi++] = cmp ? n : ++n;
|
|
23836
|
-
if (r[0] && cmp)
|
|
23837
|
-
r[rl] = a[ai] || 0;
|
|
23838
|
-
else
|
|
23839
|
-
r = [a[ai]];
|
|
23840
|
-
} while ((ai++ < al || r[0] !== UNDEFINED) && k--);
|
|
23841
|
-
if (!qc[0] && qi != 1) {
|
|
23842
|
-
qc.shift();
|
|
23843
|
-
q.e--;
|
|
23844
|
-
p--;
|
|
23845
|
-
}
|
|
23846
|
-
if (qi > p)
|
|
23847
|
-
round(q, p, Big2.RM, r[0] !== UNDEFINED);
|
|
23848
|
-
return q;
|
|
23849
|
-
};
|
|
23850
|
-
P.eq = function(y) {
|
|
23851
|
-
return this.cmp(y) === 0;
|
|
23852
|
-
};
|
|
23853
|
-
P.gt = function(y) {
|
|
23854
|
-
return this.cmp(y) > 0;
|
|
23855
|
-
};
|
|
23856
|
-
P.gte = function(y) {
|
|
23857
|
-
return this.cmp(y) > -1;
|
|
23858
|
-
};
|
|
23859
|
-
P.lt = function(y) {
|
|
23860
|
-
return this.cmp(y) < 0;
|
|
23861
|
-
};
|
|
23862
|
-
P.lte = function(y) {
|
|
23863
|
-
return this.cmp(y) < 1;
|
|
23864
|
-
};
|
|
23865
|
-
P.minus = P.sub = function(y) {
|
|
23866
|
-
var i, j, t, xlty, x = this, Big2 = x.constructor, a = x.s, b = (y = new Big2(y)).s;
|
|
23867
|
-
if (a != b) {
|
|
23868
|
-
y.s = -b;
|
|
23869
|
-
return x.plus(y);
|
|
23870
|
-
}
|
|
23871
|
-
var xc = x.c.slice(), xe = x.e, yc = y.c, ye = y.e;
|
|
23872
|
-
if (!xc[0] || !yc[0]) {
|
|
23873
|
-
if (yc[0]) {
|
|
23874
|
-
y.s = -b;
|
|
23875
|
-
} else if (xc[0]) {
|
|
23876
|
-
y = new Big2(x);
|
|
23877
|
-
} else {
|
|
23878
|
-
y.s = 1;
|
|
23879
|
-
}
|
|
23880
|
-
return y;
|
|
23881
|
-
}
|
|
23882
|
-
if (a = xe - ye) {
|
|
23883
|
-
if (xlty = a < 0) {
|
|
23884
|
-
a = -a;
|
|
23885
|
-
t = xc;
|
|
23886
|
-
} else {
|
|
23887
|
-
ye = xe;
|
|
23888
|
-
t = yc;
|
|
23889
|
-
}
|
|
23890
|
-
t.reverse();
|
|
23891
|
-
for (b = a; b--; )
|
|
23892
|
-
t.push(0);
|
|
23893
|
-
t.reverse();
|
|
23894
|
-
} else {
|
|
23895
|
-
j = ((xlty = xc.length < yc.length) ? xc : yc).length;
|
|
23896
|
-
for (a = b = 0; b < j; b++) {
|
|
23897
|
-
if (xc[b] != yc[b]) {
|
|
23898
|
-
xlty = xc[b] < yc[b];
|
|
23899
|
-
break;
|
|
23900
|
-
}
|
|
23901
|
-
}
|
|
23902
|
-
}
|
|
23903
|
-
if (xlty) {
|
|
23904
|
-
t = xc;
|
|
23905
|
-
xc = yc;
|
|
23906
|
-
yc = t;
|
|
23907
|
-
y.s = -y.s;
|
|
23908
|
-
}
|
|
23909
|
-
if ((b = (j = yc.length) - (i = xc.length)) > 0)
|
|
23910
|
-
for (; b--; )
|
|
23911
|
-
xc[i++] = 0;
|
|
23912
|
-
for (b = i; j > a; ) {
|
|
23913
|
-
if (xc[--j] < yc[j]) {
|
|
23914
|
-
for (i = j; i && !xc[--i]; )
|
|
23915
|
-
xc[i] = 9;
|
|
23916
|
-
--xc[i];
|
|
23917
|
-
xc[j] += 10;
|
|
23918
|
-
}
|
|
23919
|
-
xc[j] -= yc[j];
|
|
23920
|
-
}
|
|
23921
|
-
for (; xc[--b] === 0; )
|
|
23922
|
-
xc.pop();
|
|
23923
|
-
for (; xc[0] === 0; ) {
|
|
23924
|
-
xc.shift();
|
|
23925
|
-
--ye;
|
|
23926
|
-
}
|
|
23927
|
-
if (!xc[0]) {
|
|
23928
|
-
y.s = 1;
|
|
23929
|
-
xc = [ye = 0];
|
|
23930
|
-
}
|
|
23931
|
-
y.c = xc;
|
|
23932
|
-
y.e = ye;
|
|
23933
|
-
return y;
|
|
23934
|
-
};
|
|
23935
|
-
P.mod = function(y) {
|
|
23936
|
-
var ygtx, x = this, Big2 = x.constructor, a = x.s, b = (y = new Big2(y)).s;
|
|
23937
|
-
if (!y.c[0]) {
|
|
23938
|
-
throw Error(DIV_BY_ZERO);
|
|
23939
|
-
}
|
|
23940
|
-
x.s = y.s = 1;
|
|
23941
|
-
ygtx = y.cmp(x) == 1;
|
|
23942
|
-
x.s = a;
|
|
23943
|
-
y.s = b;
|
|
23944
|
-
if (ygtx)
|
|
23945
|
-
return new Big2(x);
|
|
23946
|
-
a = Big2.DP;
|
|
23947
|
-
b = Big2.RM;
|
|
23948
|
-
Big2.DP = Big2.RM = 0;
|
|
23949
|
-
x = x.div(y);
|
|
23950
|
-
Big2.DP = a;
|
|
23951
|
-
Big2.RM = b;
|
|
23952
|
-
return this.minus(x.times(y));
|
|
23953
|
-
};
|
|
23954
|
-
P.neg = function() {
|
|
23955
|
-
var x = new this.constructor(this);
|
|
23956
|
-
x.s = -x.s;
|
|
23957
|
-
return x;
|
|
23958
|
-
};
|
|
23959
|
-
P.plus = P.add = function(y) {
|
|
23960
|
-
var e, k, t, x = this, Big2 = x.constructor;
|
|
23961
|
-
y = new Big2(y);
|
|
23962
|
-
if (x.s != y.s) {
|
|
23963
|
-
y.s = -y.s;
|
|
23964
|
-
return x.minus(y);
|
|
23965
|
-
}
|
|
23966
|
-
var xe = x.e, xc = x.c, ye = y.e, yc = y.c;
|
|
23967
|
-
if (!xc[0] || !yc[0]) {
|
|
23968
|
-
if (!yc[0]) {
|
|
23969
|
-
if (xc[0]) {
|
|
23970
|
-
y = new Big2(x);
|
|
23971
|
-
} else {
|
|
23972
|
-
y.s = x.s;
|
|
23973
|
-
}
|
|
23974
|
-
}
|
|
23975
|
-
return y;
|
|
23976
|
-
}
|
|
23977
|
-
xc = xc.slice();
|
|
23978
|
-
if (e = xe - ye) {
|
|
23979
|
-
if (e > 0) {
|
|
23980
|
-
ye = xe;
|
|
23981
|
-
t = yc;
|
|
23982
|
-
} else {
|
|
23983
|
-
e = -e;
|
|
23984
|
-
t = xc;
|
|
23985
|
-
}
|
|
23986
|
-
t.reverse();
|
|
23987
|
-
for (; e--; )
|
|
23988
|
-
t.push(0);
|
|
23989
|
-
t.reverse();
|
|
23990
|
-
}
|
|
23991
|
-
if (xc.length - yc.length < 0) {
|
|
23992
|
-
t = yc;
|
|
23993
|
-
yc = xc;
|
|
23994
|
-
xc = t;
|
|
23995
|
-
}
|
|
23996
|
-
e = yc.length;
|
|
23997
|
-
for (k = 0; e; xc[e] %= 10)
|
|
23998
|
-
k = (xc[--e] = xc[e] + yc[e] + k) / 10 | 0;
|
|
23999
|
-
if (k) {
|
|
24000
|
-
xc.unshift(k);
|
|
24001
|
-
++ye;
|
|
24002
|
-
}
|
|
24003
|
-
for (e = xc.length; xc[--e] === 0; )
|
|
24004
|
-
xc.pop();
|
|
24005
|
-
y.c = xc;
|
|
24006
|
-
y.e = ye;
|
|
24007
|
-
return y;
|
|
24008
|
-
};
|
|
24009
|
-
P.pow = function(n) {
|
|
24010
|
-
var x = this, one = new x.constructor("1"), y = one, isneg = n < 0;
|
|
24011
|
-
if (n !== ~~n || n < -MAX_POWER || n > MAX_POWER) {
|
|
24012
|
-
throw Error(INVALID + "exponent");
|
|
24013
|
-
}
|
|
24014
|
-
if (isneg)
|
|
24015
|
-
n = -n;
|
|
24016
|
-
for (; ; ) {
|
|
24017
|
-
if (n & 1)
|
|
24018
|
-
y = y.times(x);
|
|
24019
|
-
n >>= 1;
|
|
24020
|
-
if (!n)
|
|
24021
|
-
break;
|
|
24022
|
-
x = x.times(x);
|
|
24023
|
-
}
|
|
24024
|
-
return isneg ? one.div(y) : y;
|
|
24025
|
-
};
|
|
24026
|
-
P.prec = function(sd, rm) {
|
|
24027
|
-
if (sd !== ~~sd || sd < 1 || sd > MAX_DP) {
|
|
24028
|
-
throw Error(INVALID + "precision");
|
|
24029
|
-
}
|
|
24030
|
-
return round(new this.constructor(this), sd, rm);
|
|
24031
|
-
};
|
|
24032
|
-
P.round = function(dp, rm) {
|
|
24033
|
-
if (dp === UNDEFINED)
|
|
24034
|
-
dp = 0;
|
|
24035
|
-
else if (dp !== ~~dp || dp < -MAX_DP || dp > MAX_DP) {
|
|
24036
|
-
throw Error(INVALID_DP);
|
|
24037
|
-
}
|
|
24038
|
-
return round(new this.constructor(this), dp + this.e + 1, rm);
|
|
24039
|
-
};
|
|
24040
|
-
P.sqrt = function() {
|
|
24041
|
-
var r, c, t, x = this, Big2 = x.constructor, s = x.s, e = x.e, half = new Big2("0.5");
|
|
24042
|
-
if (!x.c[0])
|
|
24043
|
-
return new Big2(x);
|
|
24044
|
-
if (s < 0) {
|
|
24045
|
-
throw Error(NAME + "No square root");
|
|
24046
|
-
}
|
|
24047
|
-
s = Math.sqrt(x + "");
|
|
24048
|
-
if (s === 0 || s === 1 / 0) {
|
|
24049
|
-
c = x.c.join("");
|
|
24050
|
-
if (!(c.length + e & 1))
|
|
24051
|
-
c += "0";
|
|
24052
|
-
s = Math.sqrt(c);
|
|
24053
|
-
e = ((e + 1) / 2 | 0) - (e < 0 || e & 1);
|
|
24054
|
-
r = new Big2((s == 1 / 0 ? "5e" : (s = s.toExponential()).slice(0, s.indexOf("e") + 1)) + e);
|
|
24055
|
-
} else {
|
|
24056
|
-
r = new Big2(s + "");
|
|
24057
|
-
}
|
|
24058
|
-
e = r.e + (Big2.DP += 4);
|
|
24059
|
-
do {
|
|
24060
|
-
t = r;
|
|
24061
|
-
r = half.times(t.plus(x.div(t)));
|
|
24062
|
-
} while (t.c.slice(0, e).join("") !== r.c.slice(0, e).join(""));
|
|
24063
|
-
return round(r, (Big2.DP -= 4) + r.e + 1, Big2.RM);
|
|
24064
|
-
};
|
|
24065
|
-
P.times = P.mul = function(y) {
|
|
24066
|
-
var c, x = this, Big2 = x.constructor, xc = x.c, yc = (y = new Big2(y)).c, a = xc.length, b = yc.length, i = x.e, j = y.e;
|
|
24067
|
-
y.s = x.s == y.s ? 1 : -1;
|
|
24068
|
-
if (!xc[0] || !yc[0]) {
|
|
24069
|
-
y.c = [y.e = 0];
|
|
24070
|
-
return y;
|
|
24071
|
-
}
|
|
24072
|
-
y.e = i + j;
|
|
24073
|
-
if (a < b) {
|
|
24074
|
-
c = xc;
|
|
24075
|
-
xc = yc;
|
|
24076
|
-
yc = c;
|
|
24077
|
-
j = a;
|
|
24078
|
-
a = b;
|
|
24079
|
-
b = j;
|
|
24080
|
-
}
|
|
24081
|
-
for (c = new Array(j = a + b); j--; )
|
|
24082
|
-
c[j] = 0;
|
|
24083
|
-
for (i = b; i--; ) {
|
|
24084
|
-
b = 0;
|
|
24085
|
-
for (j = a + i; j > i; ) {
|
|
24086
|
-
b = c[j] + yc[i] * xc[j - i - 1] + b;
|
|
24087
|
-
c[j--] = b % 10;
|
|
24088
|
-
b = b / 10 | 0;
|
|
24089
|
-
}
|
|
24090
|
-
c[j] = b;
|
|
24091
|
-
}
|
|
24092
|
-
if (b)
|
|
24093
|
-
++y.e;
|
|
24094
|
-
else
|
|
24095
|
-
c.shift();
|
|
24096
|
-
for (i = c.length; !c[--i]; )
|
|
24097
|
-
c.pop();
|
|
24098
|
-
y.c = c;
|
|
24099
|
-
return y;
|
|
24100
|
-
};
|
|
24101
|
-
P.toExponential = function(dp, rm) {
|
|
24102
|
-
var x = this, n = x.c[0];
|
|
24103
|
-
if (dp !== UNDEFINED) {
|
|
24104
|
-
if (dp !== ~~dp || dp < 0 || dp > MAX_DP) {
|
|
24105
|
-
throw Error(INVALID_DP);
|
|
24106
|
-
}
|
|
24107
|
-
x = round(new x.constructor(x), ++dp, rm);
|
|
24108
|
-
for (; x.c.length < dp; )
|
|
24109
|
-
x.c.push(0);
|
|
24110
|
-
}
|
|
24111
|
-
return stringify(x, true, !!n);
|
|
24112
|
-
};
|
|
24113
|
-
P.toFixed = function(dp, rm) {
|
|
24114
|
-
var x = this, n = x.c[0];
|
|
24115
|
-
if (dp !== UNDEFINED) {
|
|
24116
|
-
if (dp !== ~~dp || dp < 0 || dp > MAX_DP) {
|
|
24117
|
-
throw Error(INVALID_DP);
|
|
24118
|
-
}
|
|
24119
|
-
x = round(new x.constructor(x), dp + x.e + 1, rm);
|
|
24120
|
-
for (dp = dp + x.e + 1; x.c.length < dp; )
|
|
24121
|
-
x.c.push(0);
|
|
24122
|
-
}
|
|
24123
|
-
return stringify(x, false, !!n);
|
|
24124
|
-
};
|
|
24125
|
-
P[Symbol.for("nodejs.util.inspect.custom")] = P.toJSON = P.toString = function() {
|
|
24126
|
-
var x = this, Big2 = x.constructor;
|
|
24127
|
-
return stringify(x, x.e <= Big2.NE || x.e >= Big2.PE, !!x.c[0]);
|
|
24128
|
-
};
|
|
24129
|
-
P.toNumber = function() {
|
|
24130
|
-
var n = Number(stringify(this, true, true));
|
|
24131
|
-
if (this.constructor.strict === true && !this.eq(n.toString())) {
|
|
24132
|
-
throw Error(NAME + "Imprecise conversion");
|
|
24133
|
-
}
|
|
24134
|
-
return n;
|
|
24135
|
-
};
|
|
24136
|
-
P.toPrecision = function(sd, rm) {
|
|
24137
|
-
var x = this, Big2 = x.constructor, n = x.c[0];
|
|
24138
|
-
if (sd !== UNDEFINED) {
|
|
24139
|
-
if (sd !== ~~sd || sd < 1 || sd > MAX_DP) {
|
|
24140
|
-
throw Error(INVALID + "precision");
|
|
24141
|
-
}
|
|
24142
|
-
x = round(new Big2(x), sd, rm);
|
|
24143
|
-
for (; x.c.length < sd; )
|
|
24144
|
-
x.c.push(0);
|
|
24145
|
-
}
|
|
24146
|
-
return stringify(x, sd <= x.e || x.e <= Big2.NE || x.e >= Big2.PE, !!n);
|
|
24147
|
-
};
|
|
24148
|
-
P.valueOf = function() {
|
|
24149
|
-
var x = this, Big2 = x.constructor;
|
|
24150
|
-
if (Big2.strict === true) {
|
|
24151
|
-
throw Error(NAME + "valueOf disallowed");
|
|
24152
|
-
}
|
|
24153
|
-
return stringify(x, x.e <= Big2.NE || x.e >= Big2.PE, true);
|
|
24154
|
-
};
|
|
24155
|
-
var Big = _Big_();
|
|
24156
24088
|
const classPrefix$f = `adm-slider`;
|
|
24157
24089
|
const defaultProps$e = {
|
|
24158
24090
|
min: 0,
|
|
@@ -24182,9 +24114,14 @@ const Slider$1 = (p) => {
|
|
|
24182
24114
|
function convertValue(value) {
|
|
24183
24115
|
return props.range ? value : [props.min, value];
|
|
24184
24116
|
}
|
|
24117
|
+
function alignValue(value, decimalLen) {
|
|
24118
|
+
const decimal = getMiniDecimal(value);
|
|
24119
|
+
const fixedStr = toFixed(decimal.toString(), ".", decimalLen);
|
|
24120
|
+
return getMiniDecimal(fixedStr).toNumber();
|
|
24121
|
+
}
|
|
24185
24122
|
function reverseValue(value) {
|
|
24186
24123
|
const mergedDecimalLen = Math.max(getDecimalLen(step), getDecimalLen(value[0]), getDecimalLen(value[1]));
|
|
24187
|
-
return props.range ? value.map((v) =>
|
|
24124
|
+
return props.range ? value.map((v) => alignValue(v, mergedDecimalLen)) : alignValue(value[1], mergedDecimalLen);
|
|
24188
24125
|
}
|
|
24189
24126
|
function getDecimalLen(n) {
|
|
24190
24127
|
return (`${n}`.split(".")[1] || "").length;
|
|
@@ -24219,7 +24156,7 @@ const Slider$1 = (p) => {
|
|
|
24219
24156
|
return Object.keys(marks).map(parseFloat).sort((a, b) => a - b);
|
|
24220
24157
|
} else {
|
|
24221
24158
|
const points = [];
|
|
24222
|
-
for (let i =
|
|
24159
|
+
for (let i = getMiniDecimal(min2); i.lessEquals(getMiniDecimal(max2)); i = i.add(step)) {
|
|
24223
24160
|
points.push(i.toNumber());
|
|
24224
24161
|
}
|
|
24225
24162
|
return points;
|
|
@@ -24330,89 +24267,362 @@ const Slider$1 = (p) => {
|
|
|
24330
24267
|
};
|
|
24331
24268
|
const Slider = Slider$1;
|
|
24332
24269
|
const stepper = "";
|
|
24270
|
+
var useMergedState$1 = {};
|
|
24271
|
+
var slicedToArray = { exports: {} };
|
|
24272
|
+
var arrayWithHoles = { exports: {} };
|
|
24273
|
+
(function(module) {
|
|
24274
|
+
function _arrayWithHoles2(arr) {
|
|
24275
|
+
if (Array.isArray(arr))
|
|
24276
|
+
return arr;
|
|
24277
|
+
}
|
|
24278
|
+
module.exports = _arrayWithHoles2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
24279
|
+
})(arrayWithHoles);
|
|
24280
|
+
var iterableToArrayLimit = { exports: {} };
|
|
24281
|
+
(function(module) {
|
|
24282
|
+
function _iterableToArrayLimit2(arr, i) {
|
|
24283
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
24284
|
+
if (null != _i) {
|
|
24285
|
+
var _s, _e, _x, _r, _arr = [], _n = true, _d = false;
|
|
24286
|
+
try {
|
|
24287
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
24288
|
+
if (Object(_i) !== _i)
|
|
24289
|
+
return;
|
|
24290
|
+
_n = false;
|
|
24291
|
+
} else
|
|
24292
|
+
for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = true) {
|
|
24293
|
+
;
|
|
24294
|
+
}
|
|
24295
|
+
} catch (err) {
|
|
24296
|
+
_d = true, _e = err;
|
|
24297
|
+
} finally {
|
|
24298
|
+
try {
|
|
24299
|
+
if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r))
|
|
24300
|
+
return;
|
|
24301
|
+
} finally {
|
|
24302
|
+
if (_d)
|
|
24303
|
+
throw _e;
|
|
24304
|
+
}
|
|
24305
|
+
}
|
|
24306
|
+
return _arr;
|
|
24307
|
+
}
|
|
24308
|
+
}
|
|
24309
|
+
module.exports = _iterableToArrayLimit2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
24310
|
+
})(iterableToArrayLimit);
|
|
24311
|
+
var unsupportedIterableToArray = { exports: {} };
|
|
24312
|
+
var arrayLikeToArray = { exports: {} };
|
|
24313
|
+
(function(module) {
|
|
24314
|
+
function _arrayLikeToArray2(arr, len) {
|
|
24315
|
+
if (len == null || len > arr.length)
|
|
24316
|
+
len = arr.length;
|
|
24317
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
24318
|
+
arr2[i] = arr[i];
|
|
24319
|
+
}
|
|
24320
|
+
return arr2;
|
|
24321
|
+
}
|
|
24322
|
+
module.exports = _arrayLikeToArray2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
24323
|
+
})(arrayLikeToArray);
|
|
24324
|
+
(function(module) {
|
|
24325
|
+
var arrayLikeToArray$1 = arrayLikeToArray.exports;
|
|
24326
|
+
function _unsupportedIterableToArray2(o, minLen) {
|
|
24327
|
+
if (!o)
|
|
24328
|
+
return;
|
|
24329
|
+
if (typeof o === "string")
|
|
24330
|
+
return arrayLikeToArray$1(o, minLen);
|
|
24331
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
24332
|
+
if (n === "Object" && o.constructor)
|
|
24333
|
+
n = o.constructor.name;
|
|
24334
|
+
if (n === "Map" || n === "Set")
|
|
24335
|
+
return Array.from(o);
|
|
24336
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
24337
|
+
return arrayLikeToArray$1(o, minLen);
|
|
24338
|
+
}
|
|
24339
|
+
module.exports = _unsupportedIterableToArray2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
24340
|
+
})(unsupportedIterableToArray);
|
|
24341
|
+
var nonIterableRest = { exports: {} };
|
|
24342
|
+
(function(module) {
|
|
24343
|
+
function _nonIterableRest2() {
|
|
24344
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
24345
|
+
}
|
|
24346
|
+
module.exports = _nonIterableRest2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
24347
|
+
})(nonIterableRest);
|
|
24348
|
+
(function(module) {
|
|
24349
|
+
var arrayWithHoles$1 = arrayWithHoles.exports;
|
|
24350
|
+
var iterableToArrayLimit$1 = iterableToArrayLimit.exports;
|
|
24351
|
+
var unsupportedIterableToArray$1 = unsupportedIterableToArray.exports;
|
|
24352
|
+
var nonIterableRest$1 = nonIterableRest.exports;
|
|
24353
|
+
function _slicedToArray3(arr, i) {
|
|
24354
|
+
return arrayWithHoles$1(arr) || iterableToArrayLimit$1(arr, i) || unsupportedIterableToArray$1(arr, i) || nonIterableRest$1();
|
|
24355
|
+
}
|
|
24356
|
+
module.exports = _slicedToArray3, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
24357
|
+
})(slicedToArray);
|
|
24358
|
+
var useEvent$1 = {};
|
|
24359
|
+
var _interopRequireWildcard$2 = interopRequireWildcard.exports.default;
|
|
24360
|
+
Object.defineProperty(useEvent$1, "__esModule", {
|
|
24361
|
+
value: true
|
|
24362
|
+
});
|
|
24363
|
+
useEvent$1.default = useEvent;
|
|
24364
|
+
var React$2 = _interopRequireWildcard$2(React__default);
|
|
24365
|
+
function useEvent(callback) {
|
|
24366
|
+
var fnRef = React$2.useRef();
|
|
24367
|
+
fnRef.current = callback;
|
|
24368
|
+
var memoFn = React$2.useCallback(function() {
|
|
24369
|
+
var _fnRef$current;
|
|
24370
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
24371
|
+
args[_key] = arguments[_key];
|
|
24372
|
+
}
|
|
24373
|
+
return (_fnRef$current = fnRef.current) === null || _fnRef$current === void 0 ? void 0 : _fnRef$current.call.apply(_fnRef$current, [fnRef].concat(args));
|
|
24374
|
+
}, []);
|
|
24375
|
+
return memoFn;
|
|
24376
|
+
}
|
|
24377
|
+
var useLayoutEffect$1 = {};
|
|
24378
|
+
var canUseDom$1 = {};
|
|
24379
|
+
Object.defineProperty(canUseDom$1, "__esModule", {
|
|
24380
|
+
value: true
|
|
24381
|
+
});
|
|
24382
|
+
canUseDom$1.default = canUseDom;
|
|
24383
|
+
function canUseDom() {
|
|
24384
|
+
return !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
24385
|
+
}
|
|
24386
|
+
var _interopRequireDefault$2 = interopRequireDefault.exports.default;
|
|
24387
|
+
var _interopRequireWildcard$1 = interopRequireWildcard.exports.default;
|
|
24388
|
+
Object.defineProperty(useLayoutEffect$1, "__esModule", {
|
|
24389
|
+
value: true
|
|
24390
|
+
});
|
|
24391
|
+
useLayoutEffect$1.useLayoutUpdateEffect = useLayoutEffect$1.default = void 0;
|
|
24392
|
+
var React$1 = _interopRequireWildcard$1(React__default);
|
|
24393
|
+
var _canUseDom = _interopRequireDefault$2(canUseDom$1);
|
|
24394
|
+
var useLayoutEffect = (0, _canUseDom.default)() ? React$1.useLayoutEffect : React$1.useEffect;
|
|
24395
|
+
var _default$1 = useLayoutEffect;
|
|
24396
|
+
useLayoutEffect$1.default = _default$1;
|
|
24397
|
+
var useLayoutUpdateEffect = function useLayoutUpdateEffect2(callback, deps) {
|
|
24398
|
+
var firstMountRef = React$1.useRef(true);
|
|
24399
|
+
useLayoutEffect(function() {
|
|
24400
|
+
if (!firstMountRef.current) {
|
|
24401
|
+
return callback();
|
|
24402
|
+
}
|
|
24403
|
+
}, deps);
|
|
24404
|
+
useLayoutEffect(function() {
|
|
24405
|
+
firstMountRef.current = false;
|
|
24406
|
+
return function() {
|
|
24407
|
+
firstMountRef.current = true;
|
|
24408
|
+
};
|
|
24409
|
+
}, []);
|
|
24410
|
+
};
|
|
24411
|
+
useLayoutEffect$1.useLayoutUpdateEffect = useLayoutUpdateEffect;
|
|
24412
|
+
var useState = {};
|
|
24413
|
+
var _interopRequireWildcard = interopRequireWildcard.exports.default;
|
|
24414
|
+
var _interopRequireDefault$1 = interopRequireDefault.exports.default;
|
|
24415
|
+
Object.defineProperty(useState, "__esModule", {
|
|
24416
|
+
value: true
|
|
24417
|
+
});
|
|
24418
|
+
useState.default = useSafeState;
|
|
24419
|
+
var _slicedToArray2$1 = _interopRequireDefault$1(slicedToArray.exports);
|
|
24420
|
+
var React = _interopRequireWildcard(React__default);
|
|
24421
|
+
function useSafeState(defaultValue) {
|
|
24422
|
+
var destroyRef = React.useRef(false);
|
|
24423
|
+
var _React$useState = React.useState(defaultValue), _React$useState2 = (0, _slicedToArray2$1.default)(_React$useState, 2), value = _React$useState2[0], setValue2 = _React$useState2[1];
|
|
24424
|
+
React.useEffect(function() {
|
|
24425
|
+
destroyRef.current = false;
|
|
24426
|
+
return function() {
|
|
24427
|
+
destroyRef.current = true;
|
|
24428
|
+
};
|
|
24429
|
+
}, []);
|
|
24430
|
+
function safeSetState(updater, ignoreDestroy) {
|
|
24431
|
+
if (ignoreDestroy && destroyRef.current) {
|
|
24432
|
+
return;
|
|
24433
|
+
}
|
|
24434
|
+
setValue2(updater);
|
|
24435
|
+
}
|
|
24436
|
+
return [value, safeSetState];
|
|
24437
|
+
}
|
|
24438
|
+
var _interopRequireDefault = interopRequireDefault.exports.default;
|
|
24439
|
+
Object.defineProperty(useMergedState$1, "__esModule", {
|
|
24440
|
+
value: true
|
|
24441
|
+
});
|
|
24442
|
+
var _default = useMergedState$1.default = useMergedState;
|
|
24443
|
+
var _slicedToArray2 = _interopRequireDefault(slicedToArray.exports);
|
|
24444
|
+
var _useEvent = _interopRequireDefault(useEvent$1);
|
|
24445
|
+
var _useLayoutEffect = useLayoutEffect$1;
|
|
24446
|
+
var _useState5 = _interopRequireDefault(useState);
|
|
24447
|
+
function hasValue(value) {
|
|
24448
|
+
return value !== void 0;
|
|
24449
|
+
}
|
|
24450
|
+
function useMergedState(defaultStateValue, option) {
|
|
24451
|
+
var _ref = option || {}, defaultValue = _ref.defaultValue, value = _ref.value, onChange = _ref.onChange, postState = _ref.postState;
|
|
24452
|
+
var _useState = (0, _useState5.default)(function() {
|
|
24453
|
+
if (hasValue(value)) {
|
|
24454
|
+
return value;
|
|
24455
|
+
} else if (hasValue(defaultValue)) {
|
|
24456
|
+
return typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
|
24457
|
+
} else {
|
|
24458
|
+
return typeof defaultStateValue === "function" ? defaultStateValue() : defaultStateValue;
|
|
24459
|
+
}
|
|
24460
|
+
}), _useState2 = (0, _slicedToArray2.default)(_useState, 2), innerValue = _useState2[0], setInnerValue = _useState2[1];
|
|
24461
|
+
var mergedValue = value !== void 0 ? value : innerValue;
|
|
24462
|
+
var postMergedValue = postState ? postState(mergedValue) : mergedValue;
|
|
24463
|
+
var onChangeFn = (0, _useEvent.default)(onChange);
|
|
24464
|
+
var _useState3 = (0, _useState5.default)([mergedValue]), _useState4 = (0, _slicedToArray2.default)(_useState3, 2), prevValue = _useState4[0], setPrevValue = _useState4[1];
|
|
24465
|
+
(0, _useLayoutEffect.useLayoutUpdateEffect)(function() {
|
|
24466
|
+
var prev = prevValue[0];
|
|
24467
|
+
if (innerValue !== prev) {
|
|
24468
|
+
onChangeFn(innerValue, prev);
|
|
24469
|
+
}
|
|
24470
|
+
}, [prevValue]);
|
|
24471
|
+
(0, _useLayoutEffect.useLayoutUpdateEffect)(function() {
|
|
24472
|
+
if (!hasValue(value)) {
|
|
24473
|
+
setInnerValue(value);
|
|
24474
|
+
}
|
|
24475
|
+
}, [value]);
|
|
24476
|
+
var triggerChange = (0, _useEvent.default)(function(updater, ignoreDestroy) {
|
|
24477
|
+
setInnerValue(updater, ignoreDestroy);
|
|
24478
|
+
setPrevValue([mergedValue], ignoreDestroy);
|
|
24479
|
+
});
|
|
24480
|
+
return [postMergedValue, triggerChange];
|
|
24481
|
+
}
|
|
24333
24482
|
const classPrefix$e = `adm-stepper`;
|
|
24334
24483
|
const defaultProps$d = {
|
|
24335
|
-
defaultValue: 0,
|
|
24336
24484
|
step: 1,
|
|
24337
24485
|
disabled: false,
|
|
24338
24486
|
allowEmpty: false
|
|
24339
24487
|
};
|
|
24340
|
-
|
|
24488
|
+
function Stepper(p) {
|
|
24341
24489
|
const props = mergeProps(defaultProps$d, p);
|
|
24342
24490
|
const {
|
|
24491
|
+
defaultValue = 0,
|
|
24492
|
+
value,
|
|
24493
|
+
onChange,
|
|
24343
24494
|
disabled,
|
|
24344
24495
|
step,
|
|
24345
24496
|
max: max2,
|
|
24346
24497
|
min: min2,
|
|
24347
|
-
inputReadOnly
|
|
24498
|
+
inputReadOnly,
|
|
24499
|
+
digits,
|
|
24500
|
+
stringMode,
|
|
24501
|
+
formatter,
|
|
24502
|
+
parser
|
|
24348
24503
|
} = props;
|
|
24349
24504
|
const {
|
|
24350
24505
|
locale
|
|
24351
24506
|
} = useConfig();
|
|
24352
|
-
const
|
|
24353
|
-
|
|
24354
|
-
|
|
24355
|
-
|
|
24507
|
+
const fixedValue = (value2) => {
|
|
24508
|
+
const fixedValue2 = digits !== void 0 ? toFixed(value2.toString(), ".", digits) : value2;
|
|
24509
|
+
return fixedValue2.toString();
|
|
24510
|
+
};
|
|
24511
|
+
const getValueAsType = (value2) => stringMode ? value2.toString() : value2.toNumber();
|
|
24512
|
+
const parseValue = (text) => {
|
|
24513
|
+
if (text === "")
|
|
24514
|
+
return null;
|
|
24515
|
+
if (parser) {
|
|
24516
|
+
return String(parser(text));
|
|
24517
|
+
}
|
|
24518
|
+
const decimal = getMiniDecimal(text);
|
|
24519
|
+
return decimal.isInvalidate() ? null : decimal.toString();
|
|
24520
|
+
};
|
|
24521
|
+
const formatValue = (value2) => {
|
|
24522
|
+
if (value2 === null)
|
|
24523
|
+
return "";
|
|
24524
|
+
if (formatter) {
|
|
24525
|
+
return formatter(value2);
|
|
24526
|
+
} else {
|
|
24527
|
+
return fixedValue(value2);
|
|
24528
|
+
}
|
|
24529
|
+
};
|
|
24530
|
+
const [mergedValue, setMergedValue] = _default(defaultValue, {
|
|
24531
|
+
value,
|
|
24532
|
+
onChange: (nextValue) => {
|
|
24533
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(nextValue);
|
|
24534
|
+
}
|
|
24535
|
+
});
|
|
24536
|
+
const [inputValue, setInputValue] = useState$1(() => formatValue(mergedValue));
|
|
24537
|
+
function setValueWithCheck(nextValue) {
|
|
24538
|
+
if (nextValue.isNaN())
|
|
24356
24539
|
return;
|
|
24357
|
-
let target =
|
|
24358
|
-
if (
|
|
24359
|
-
|
|
24540
|
+
let target = nextValue;
|
|
24541
|
+
if (min2 !== void 0) {
|
|
24542
|
+
const minDecimal = getMiniDecimal(min2);
|
|
24543
|
+
if (target.lessEquals(minDecimal)) {
|
|
24544
|
+
target = minDecimal;
|
|
24545
|
+
}
|
|
24360
24546
|
}
|
|
24361
|
-
|
|
24362
|
-
|
|
24363
|
-
|
|
24364
|
-
|
|
24365
|
-
|
|
24366
|
-
setInputValue(convertValueToText(value, props.digits));
|
|
24547
|
+
if (max2 !== void 0) {
|
|
24548
|
+
const maxDecimal = getMiniDecimal(max2);
|
|
24549
|
+
if (maxDecimal.lessEquals(target)) {
|
|
24550
|
+
target = maxDecimal;
|
|
24551
|
+
}
|
|
24367
24552
|
}
|
|
24368
|
-
|
|
24369
|
-
|
|
24370
|
-
if (!hasFocus) {
|
|
24371
|
-
setInputValue(convertValueToText(value, props.digits));
|
|
24553
|
+
if (digits !== void 0) {
|
|
24554
|
+
target = getMiniDecimal(fixedValue(getValueAsType(target)));
|
|
24372
24555
|
}
|
|
24373
|
-
|
|
24556
|
+
setMergedValue(getValueAsType(target));
|
|
24557
|
+
}
|
|
24374
24558
|
const handleInputChange = (v) => {
|
|
24375
24559
|
setInputValue(v);
|
|
24376
|
-
const
|
|
24377
|
-
if (
|
|
24560
|
+
const valueStr = parseValue(v);
|
|
24561
|
+
if (valueStr === null) {
|
|
24378
24562
|
if (props.allowEmpty) {
|
|
24379
|
-
|
|
24563
|
+
setMergedValue(null);
|
|
24380
24564
|
} else {
|
|
24381
|
-
|
|
24565
|
+
setMergedValue(defaultValue);
|
|
24382
24566
|
}
|
|
24383
24567
|
} else {
|
|
24384
|
-
setValueWithCheck(
|
|
24568
|
+
setValueWithCheck(getMiniDecimal(valueStr));
|
|
24385
24569
|
}
|
|
24386
24570
|
};
|
|
24571
|
+
const [focused, setFocused] = useState$1(false);
|
|
24572
|
+
const inputRef = React__default.useRef(null);
|
|
24573
|
+
function triggerFocus(nextFocus) {
|
|
24574
|
+
setFocused(nextFocus);
|
|
24575
|
+
if (nextFocus) {
|
|
24576
|
+
setInputValue(mergedValue !== null && mergedValue !== void 0 ? String(mergedValue) : "");
|
|
24577
|
+
}
|
|
24578
|
+
}
|
|
24579
|
+
useEffect(() => {
|
|
24580
|
+
var _a, _b, _c;
|
|
24581
|
+
if (focused) {
|
|
24582
|
+
(_c = (_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.select) === null || _c === void 0 ? void 0 : _c.call(_b);
|
|
24583
|
+
}
|
|
24584
|
+
}, [focused]);
|
|
24585
|
+
useEffect(() => {
|
|
24586
|
+
if (!focused) {
|
|
24587
|
+
setInputValue(formatValue(mergedValue));
|
|
24588
|
+
}
|
|
24589
|
+
}, [focused, mergedValue, digits]);
|
|
24590
|
+
const handleOffset = (positive) => {
|
|
24591
|
+
let stepValue = getMiniDecimal(step);
|
|
24592
|
+
if (!positive) {
|
|
24593
|
+
stepValue = stepValue.negate();
|
|
24594
|
+
}
|
|
24595
|
+
setValueWithCheck(getMiniDecimal(mergedValue !== null && mergedValue !== void 0 ? mergedValue : 0).add(stepValue.toString()));
|
|
24596
|
+
};
|
|
24387
24597
|
const handleMinus = () => {
|
|
24388
|
-
|
|
24598
|
+
handleOffset(false);
|
|
24389
24599
|
};
|
|
24390
24600
|
const handlePlus = () => {
|
|
24391
|
-
|
|
24601
|
+
handleOffset(true);
|
|
24392
24602
|
};
|
|
24393
24603
|
const minusDisabled = () => {
|
|
24394
24604
|
if (disabled)
|
|
24395
24605
|
return true;
|
|
24396
|
-
if (
|
|
24606
|
+
if (mergedValue === null)
|
|
24397
24607
|
return false;
|
|
24398
24608
|
if (min2 !== void 0) {
|
|
24399
|
-
return
|
|
24609
|
+
return mergedValue <= min2;
|
|
24400
24610
|
}
|
|
24401
24611
|
return false;
|
|
24402
24612
|
};
|
|
24403
24613
|
const plusDisabled = () => {
|
|
24404
24614
|
if (disabled)
|
|
24405
24615
|
return true;
|
|
24406
|
-
if (
|
|
24616
|
+
if (mergedValue === null)
|
|
24407
24617
|
return false;
|
|
24408
24618
|
if (max2 !== void 0) {
|
|
24409
|
-
return
|
|
24619
|
+
return mergedValue >= max2;
|
|
24410
24620
|
}
|
|
24411
24621
|
return false;
|
|
24412
24622
|
};
|
|
24413
24623
|
return withNativeProps(props, React__default.createElement("div", {
|
|
24414
24624
|
className: classNames(classPrefix$e, {
|
|
24415
|
-
[`${classPrefix$e}-active`]:
|
|
24625
|
+
[`${classPrefix$e}-active`]: focused
|
|
24416
24626
|
})
|
|
24417
24627
|
}, React__default.createElement(Button, {
|
|
24418
24628
|
className: `${classPrefix$e}-minus`,
|
|
@@ -24425,10 +24635,11 @@ const Stepper$1 = (p) => {
|
|
|
24425
24635
|
}, React__default.createElement(MinusOutline, null)), React__default.createElement("div", {
|
|
24426
24636
|
className: `${classPrefix$e}-middle`
|
|
24427
24637
|
}, React__default.createElement(Input, {
|
|
24638
|
+
ref: inputRef,
|
|
24428
24639
|
className: `${classPrefix$e}-input`,
|
|
24429
24640
|
onFocus: (e) => {
|
|
24430
24641
|
var _a;
|
|
24431
|
-
|
|
24642
|
+
triggerFocus(true);
|
|
24432
24643
|
(_a = props.onFocus) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
24433
24644
|
},
|
|
24434
24645
|
value: inputValue,
|
|
@@ -24438,14 +24649,14 @@ const Stepper$1 = (p) => {
|
|
|
24438
24649
|
disabled,
|
|
24439
24650
|
onBlur: (e) => {
|
|
24440
24651
|
var _a;
|
|
24441
|
-
|
|
24652
|
+
triggerFocus(false);
|
|
24442
24653
|
(_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
24443
24654
|
},
|
|
24444
24655
|
readOnly: inputReadOnly,
|
|
24445
24656
|
role: "spinbutton",
|
|
24446
24657
|
"aria-valuenow": Number(inputValue),
|
|
24447
|
-
"aria-valuemax": max2,
|
|
24448
|
-
"aria-valuemin": min2,
|
|
24658
|
+
"aria-valuemax": Number(max2),
|
|
24659
|
+
"aria-valuemin": Number(min2),
|
|
24449
24660
|
inputMode: "decimal"
|
|
24450
24661
|
})), React__default.createElement(Button, {
|
|
24451
24662
|
className: `${classPrefix$e}-plus`,
|
|
@@ -24456,22 +24667,7 @@ const Stepper$1 = (p) => {
|
|
|
24456
24667
|
color: "primary",
|
|
24457
24668
|
"aria-label": locale.Stepper.increase
|
|
24458
24669
|
}, React__default.createElement(AddOutline, null))));
|
|
24459
|
-
};
|
|
24460
|
-
function convertValueToText(value, digits) {
|
|
24461
|
-
if (value === null)
|
|
24462
|
-
return "";
|
|
24463
|
-
if (digits !== void 0) {
|
|
24464
|
-
return value.toFixed(digits);
|
|
24465
|
-
} else {
|
|
24466
|
-
return value.toString();
|
|
24467
|
-
}
|
|
24468
|
-
}
|
|
24469
|
-
function convertTextToValue(text) {
|
|
24470
|
-
if (text === "")
|
|
24471
|
-
return null;
|
|
24472
|
-
return parseFloat(text);
|
|
24473
24670
|
}
|
|
24474
|
-
const Stepper = Stepper$1;
|
|
24475
24671
|
const steps = "";
|
|
24476
24672
|
const classPrefix$d = `adm-step`;
|
|
24477
24673
|
const Step = (props) => {
|
|
@@ -24743,7 +24939,7 @@ const SwiperItem = (props) => {
|
|
|
24743
24939
|
}, props.children));
|
|
24744
24940
|
};
|
|
24745
24941
|
function useRefState(initialState) {
|
|
24746
|
-
const [state, setState] = useState(initialState);
|
|
24942
|
+
const [state, setState] = useState$1(initialState);
|
|
24747
24943
|
const ref = useRef(state);
|
|
24748
24944
|
useEffect(() => {
|
|
24749
24945
|
ref.current = state;
|
|
@@ -24766,7 +24962,7 @@ const defaultProps$a = {
|
|
|
24766
24962
|
let currentUid;
|
|
24767
24963
|
const Swiper = forwardRef(staged_1((p, ref) => {
|
|
24768
24964
|
const props = mergeProps(defaultProps$a, p);
|
|
24769
|
-
const [uid] = useState({});
|
|
24965
|
+
const [uid] = useState$1({});
|
|
24770
24966
|
const isVertical = props.direction === "vertical";
|
|
24771
24967
|
const slideRatio = props.slideSize / 100;
|
|
24772
24968
|
const offsetRatio = props.trackOffset / 100;
|
|
@@ -24807,7 +25003,7 @@ const Swiper = forwardRef(staged_1((p, ref) => {
|
|
|
24807
25003
|
const trackPixels = isVertical ? track.offsetHeight : track.offsetWidth;
|
|
24808
25004
|
return trackPixels * props.slideSize / 100;
|
|
24809
25005
|
}
|
|
24810
|
-
const [current, setCurrent] = useState(props.defaultIndex);
|
|
25006
|
+
const [current, setCurrent] = useState$1(props.defaultIndex);
|
|
24811
25007
|
useUpdateEffect(() => {
|
|
24812
25008
|
var _a;
|
|
24813
25009
|
(_a = props.onIndexChange) === null || _a === void 0 ? void 0 : _a.call(props, current);
|
|
@@ -25047,7 +25243,7 @@ const defaultProps$9 = {
|
|
|
25047
25243
|
const Switch$1 = (p) => {
|
|
25048
25244
|
const props = mergeProps(defaultProps$9, p);
|
|
25049
25245
|
const disabled = props.disabled || props.loading || false;
|
|
25050
|
-
const [changing, setChanging] = useState(false);
|
|
25246
|
+
const [changing, setChanging] = useState$1(false);
|
|
25051
25247
|
const {
|
|
25052
25248
|
locale
|
|
25053
25249
|
} = useConfig();
|
|
@@ -25806,7 +26002,7 @@ const VirtualInput$1 = forwardRef((p, ref) => {
|
|
|
25806
26002
|
const [value, setValue2] = usePropsValue(props);
|
|
25807
26003
|
const rootRef = useRef(null);
|
|
25808
26004
|
const contentRef = useRef(null);
|
|
25809
|
-
const [hasFocus, setHasFocus] = useState(false);
|
|
26005
|
+
const [hasFocus, setHasFocus] = useState$1(false);
|
|
25810
26006
|
function scrollToEnd() {
|
|
25811
26007
|
const root2 = rootRef.current;
|
|
25812
26008
|
if (!root2)
|
|
@@ -25920,7 +26116,7 @@ const WaterMark$1 = (p) => {
|
|
|
25920
26116
|
fontSize = 14,
|
|
25921
26117
|
fontFamily = "sans-serif"
|
|
25922
26118
|
} = props;
|
|
25923
|
-
const [base64Url, setBase64Url] = useState("");
|
|
26119
|
+
const [base64Url, setBase64Url] = useState$1("");
|
|
25924
26120
|
useEffect(() => {
|
|
25925
26121
|
const canvas = document.createElement("canvas");
|
|
25926
26122
|
const ratio = window.devicePixelRatio;
|
|
@@ -25952,7 +26148,11 @@ const WaterMark$1 = (p) => {
|
|
|
25952
26148
|
const markSize = Number(fontSize) * ratio;
|
|
25953
26149
|
ctx2.font = `${fontStyle} normal ${fontWeight} ${markSize}px/${markHeight}px ${fontFamily}`;
|
|
25954
26150
|
ctx2.fillStyle = fontColor;
|
|
25955
|
-
|
|
26151
|
+
if (Array.isArray(content)) {
|
|
26152
|
+
content.forEach((item, index2) => ctx2.fillText(item, 0, index2 * markSize));
|
|
26153
|
+
} else {
|
|
26154
|
+
ctx2.fillText(content, 0, 0);
|
|
26155
|
+
}
|
|
25956
26156
|
ctx2.restore();
|
|
25957
26157
|
setBase64Url(canvas.toDataURL());
|
|
25958
26158
|
}
|