antd-mobile 5.24.0 → 5.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2x/bundle/antd-mobile.cjs.development.js +415 -362
- package/2x/bundle/antd-mobile.cjs.js +11 -11
- package/2x/bundle/antd-mobile.es.development.js +416 -363
- package/2x/bundle/antd-mobile.es.js +5270 -5205
- package/2x/bundle/antd-mobile.umd.development.js +415 -362
- package/2x/bundle/antd-mobile.umd.js +11 -11
- package/2x/bundle/style.css +13 -12
- package/2x/cjs/components/action-sheet/action-sheet.js +0 -17
- package/2x/cjs/components/action-sheet/index.js +0 -5
- package/2x/cjs/components/auto-center/auto-center.js +0 -6
- package/2x/cjs/components/auto-center/index.js +0 -3
- package/2x/cjs/components/avatar/avatar.js +0 -9
- package/2x/cjs/components/avatar/fallback.js +0 -4
- package/2x/cjs/components/avatar/index.js +0 -3
- package/2x/cjs/components/badge/badge.js +0 -9
- package/2x/cjs/components/badge/index.js +0 -5
- package/2x/cjs/components/button/button.js +0 -15
- package/2x/cjs/components/button/index.js +0 -3
- package/2x/cjs/components/calendar/arrow-left-double.js +0 -4
- package/2x/cjs/components/calendar/arrow-left.js +0 -4
- package/2x/cjs/components/calendar/calendar.js +0 -47
- package/2x/cjs/components/calendar/convert.js +0 -7
- package/2x/cjs/components/calendar/index.js +0 -3
- package/2x/cjs/components/capsule-tabs/capsule-tabs.js +0 -25
- package/2x/cjs/components/capsule-tabs/index.js +0 -5
- package/2x/cjs/components/card/card.js +0 -11
- package/2x/cjs/components/card/index.js +0 -3
- package/2x/cjs/components/cascade-picker/cascade-picker-utils.js +0 -7
- package/2x/cjs/components/cascade-picker/cascade-picker.js +3 -11
- package/2x/cjs/components/cascade-picker/index.js +0 -5
- package/2x/cjs/components/cascade-picker/prompt.js +0 -10
- package/2x/cjs/components/cascade-picker-view/cascade-picker-view.js +3 -10
- package/2x/cjs/components/cascade-picker-view/index.js +0 -2
- package/2x/cjs/components/cascader/cascader.js +0 -21
- package/2x/cjs/components/cascader/index.js +0 -7
- package/2x/cjs/components/cascader/prompt.js +0 -10
- package/2x/cjs/components/cascader-view/cascader-view.js +0 -30
- package/2x/cjs/components/cascader-view/index.js +0 -6
- package/2x/cjs/components/cascader-view/use-cascader-value-extend.js +0 -13
- package/2x/cjs/components/center-popup/center-popup.js +0 -27
- package/2x/cjs/components/center-popup/index.js +0 -3
- package/2x/cjs/components/check-list/check-list-item.js +0 -19
- package/2x/cjs/components/check-list/check-list.js +0 -14
- package/2x/cjs/components/check-list/context.js +0 -2
- package/2x/cjs/components/check-list/index.js +0 -6
- package/2x/cjs/components/checkbox/check-icon.js +0 -5
- package/2x/cjs/components/checkbox/checkbox.js +0 -26
- package/2x/cjs/components/checkbox/group-context.js +0 -2
- package/2x/cjs/components/checkbox/group.js +2 -9
- package/2x/cjs/components/checkbox/indeterminate-icon.js +0 -5
- package/2x/cjs/components/checkbox/index.js +0 -6
- package/2x/cjs/components/checkbox/native-input.js +0 -6
- package/2x/cjs/components/collapse/collapse.js +0 -31
- package/2x/cjs/components/collapse/index.js +0 -5
- package/2x/cjs/components/config-provider/config-provider.js +3 -17
- package/2x/cjs/components/config-provider/index.js +0 -2
- package/2x/cjs/components/date-picker/date-picker-date-utils.js +0 -28
- package/2x/cjs/components/date-picker/date-picker-utils.js +0 -13
- package/2x/cjs/components/date-picker/date-picker-week-utils.js +0 -24
- package/2x/cjs/components/date-picker/date-picker.js +0 -15
- package/2x/cjs/components/date-picker/index.js +0 -6
- package/2x/cjs/components/date-picker/prompt.js +0 -10
- package/2x/cjs/components/date-picker-view/date-picker-view.js +0 -15
- package/2x/cjs/components/date-picker-view/index.js +0 -2
- package/2x/cjs/components/dialog/alert.js +0 -5
- package/2x/cjs/components/dialog/clear.js +0 -2
- package/2x/cjs/components/dialog/confirm.js +0 -9
- package/2x/cjs/components/dialog/dialog-action-button.js +0 -7
- package/2x/cjs/components/dialog/dialog.js +0 -18
- package/2x/cjs/components/dialog/index.js +0 -9
- package/2x/cjs/components/dialog/show.js +0 -7
- package/2x/cjs/components/divider/divider.js +0 -8
- package/2x/cjs/components/divider/index.js +0 -3
- package/2x/cjs/components/dot-loading/dot-loading.js +0 -9
- package/2x/cjs/components/dot-loading/index.js +0 -3
- package/2x/cjs/components/dropdown/dropdown.js +4 -21
- package/2x/cjs/components/dropdown/index.js +0 -7
- package/2x/cjs/components/dropdown/item.js +0 -12
- package/2x/cjs/components/ellipsis/ellipsis.js +1 -30
- package/2x/cjs/components/ellipsis/index.js +0 -3
- package/2x/cjs/components/empty/empty-icon.js +0 -5
- package/2x/cjs/components/empty/empty.js +0 -12
- package/2x/cjs/components/empty/index.js +0 -3
- package/2x/cjs/components/error-block/create-error-block.js +0 -10
- package/2x/cjs/components/error-block/error-block.js +0 -3
- package/2x/cjs/components/error-block/images/busy.js +0 -4
- package/2x/cjs/components/error-block/images/default.js +0 -4
- package/2x/cjs/components/error-block/images/disconnected.js +0 -4
- package/2x/cjs/components/error-block/images/empty.js +0 -4
- package/2x/cjs/components/error-block/images/index.js +0 -4
- package/2x/cjs/components/error-block/index.js +0 -4
- package/2x/cjs/components/floating-bubble/floating-bubble.js +2 -18
- package/2x/cjs/components/floating-bubble/index.js +0 -3
- package/2x/cjs/components/floating-panel/floating-panel.js +0 -21
- package/2x/cjs/components/floating-panel/index.js +0 -3
- package/2x/cjs/components/footer/footer.js +0 -12
- package/2x/cjs/components/footer/index.js +0 -3
- package/2x/cjs/components/form/context.js +0 -7
- package/2x/cjs/components/form/form-array.js +0 -9
- package/2x/cjs/components/form/form-item.js +33 -94
- package/2x/cjs/components/form/form-subscribe.js +0 -8
- package/2x/cjs/components/form/form.js +11 -31
- package/2x/cjs/components/form/header.js +0 -2
- package/2x/cjs/components/form/index.js +0 -10
- package/2x/cjs/components/form/utils.js +4 -9
- package/2x/cjs/components/grid/grid.js +0 -12
- package/2x/cjs/components/grid/index.js +0 -5
- package/2x/cjs/components/image/broken-image-icon.js +0 -4
- package/2x/cjs/components/image/image-icon.js +0 -4
- package/2x/cjs/components/image/image.js +0 -21
- package/2x/cjs/components/image/index.js +0 -3
- package/2x/cjs/components/image/lazy-detector.js +0 -6
- package/2x/cjs/components/image/test/image.test.js +0 -10
- package/2x/cjs/components/image-uploader/image-uploader.js +0 -39
- package/2x/cjs/components/image-uploader/index.js +0 -3
- package/2x/cjs/components/image-uploader/preview-item.js +0 -17
- package/2x/cjs/components/image-viewer/image-viewer.js +0 -23
- package/2x/cjs/components/image-viewer/index.js +0 -7
- package/2x/cjs/components/image-viewer/methods.js +0 -10
- package/2x/cjs/components/image-viewer/slide.js +0 -28
- package/2x/cjs/components/image-viewer/slides.js +0 -13
- package/2x/cjs/components/index-bar/index-bar.js +0 -25
- package/2x/cjs/components/index-bar/index.js +0 -6
- package/2x/cjs/components/index-bar/panel.js +0 -2
- package/2x/cjs/components/index-bar/sidebar.js +0 -9
- package/2x/cjs/components/infinite-scroll/index.js +0 -3
- package/2x/cjs/components/infinite-scroll/infinite-scroll.js +4 -28
- package/2x/cjs/components/input/index.js +0 -3
- package/2x/cjs/components/input/input.js +2 -37
- package/2x/cjs/components/jumbo-tabs/index.js +0 -5
- package/2x/cjs/components/jumbo-tabs/jumbo-tabs.js +0 -25
- package/2x/cjs/components/list/index.js +0 -6
- package/2x/cjs/components/list/list-item.js +0 -12
- package/2x/cjs/components/list/list.js +0 -9
- package/2x/cjs/components/loading/index.js +0 -3
- package/2x/cjs/components/mask/index.js +0 -3
- package/2x/cjs/components/mask/mask.js +0 -19
- package/2x/cjs/components/modal/alert.js +0 -5
- package/2x/cjs/components/modal/clear.js +0 -2
- package/2x/cjs/components/modal/confirm.js +0 -9
- package/2x/cjs/components/modal/index.js +0 -9
- package/2x/cjs/components/modal/modal-action-button.js +0 -7
- package/2x/cjs/components/modal/modal.js +0 -18
- package/2x/cjs/components/modal/show.js +0 -7
- package/2x/cjs/components/nav-bar/index.js +0 -3
- package/2x/cjs/components/nav-bar/nav-bar.d.ts +1 -1
- package/2x/cjs/components/nav-bar/nav-bar.js +0 -10
- package/2x/cjs/components/notice-bar/index.js +0 -3
- package/2x/cjs/components/notice-bar/notice-bar.js +0 -19
- package/2x/cjs/components/number-keyboard/index.js +0 -3
- package/2x/cjs/components/number-keyboard/number-keyboard.css +1 -1
- package/2x/cjs/components/number-keyboard/number-keyboard.js +0 -33
- package/2x/cjs/components/page-indicator/index.js +0 -3
- package/2x/cjs/components/page-indicator/page-indicator.js +0 -10
- package/2x/cjs/components/passcode-input/index.js +0 -3
- package/2x/cjs/components/passcode-input/passcode-input.css +1 -1
- package/2x/cjs/components/passcode-input/passcode-input.js +2 -30
- package/2x/cjs/components/picker/index.js +0 -6
- package/2x/cjs/components/picker/picker-utils.js +0 -2
- package/2x/cjs/components/picker/picker.css +1 -0
- package/2x/cjs/components/picker/picker.js +0 -25
- package/2x/cjs/components/picker/prompt.js +0 -10
- package/2x/cjs/components/picker-view/columns-extend.js +0 -7
- package/2x/cjs/components/picker-view/index.js +0 -3
- package/2x/cjs/components/picker-view/picker-view.js +2 -16
- package/2x/cjs/components/picker-view/wheel.js +0 -27
- package/2x/cjs/components/popover/arrow.js +0 -5
- package/2x/cjs/components/popover/index.js +0 -7
- package/2x/cjs/components/popover/normalize-placement.js +0 -2
- package/2x/cjs/components/popover/popover-menu.js +2 -14
- package/2x/cjs/components/popover/popover.js +0 -25
- package/2x/cjs/components/popover/wrapper.js +0 -10
- package/2x/cjs/components/popup/index.js +0 -3
- package/2x/cjs/components/popup/popup.js +1 -30
- package/2x/cjs/components/progress-bar/index.js +0 -3
- package/2x/cjs/components/progress-bar/progress-bar.js +0 -13
- package/2x/cjs/components/progress-circle/index.js +0 -3
- package/2x/cjs/components/progress-circle/progress-circle.js +0 -7
- package/2x/cjs/components/pull-to-refresh/index.js +0 -3
- package/2x/cjs/components/pull-to-refresh/pull-to-refresh.js +2 -43
- package/2x/cjs/components/radio/group-context.js +0 -2
- package/2x/cjs/components/radio/group.js +2 -10
- package/2x/cjs/components/radio/index.js +0 -6
- package/2x/cjs/components/radio/radio.js +0 -26
- package/2x/cjs/components/rate/index.js +0 -3
- package/2x/cjs/components/rate/rate.js +0 -18
- package/2x/cjs/components/rate/star.js +0 -4
- package/2x/cjs/components/result/index.js +0 -3
- package/2x/cjs/components/result/result.js +0 -11
- package/2x/cjs/components/result-page/index.js +0 -6
- package/2x/cjs/components/result-page/result-page-card.js +0 -7
- package/2x/cjs/components/result-page/result-page.js +0 -15
- package/2x/cjs/components/safe-area/index.js +0 -3
- package/2x/cjs/components/safe-area/safe-area.js +0 -7
- package/2x/cjs/components/scroll-mask/index.js +0 -3
- package/2x/cjs/components/scroll-mask/scroll-mask.js +0 -10
- package/2x/cjs/components/search-bar/index.js +0 -3
- package/2x/cjs/components/search-bar/search-bar.js +0 -28
- package/2x/cjs/components/selector/check-mark.js +0 -4
- package/2x/cjs/components/selector/index.js +0 -3
- package/2x/cjs/components/selector/selector.js +0 -15
- package/2x/cjs/components/side-bar/corner.js +0 -5
- package/2x/cjs/components/side-bar/index.js +0 -5
- package/2x/cjs/components/side-bar/side-bar.js +0 -17
- package/2x/cjs/components/skeleton/index.js +0 -5
- package/2x/cjs/components/skeleton/skeleton.js +0 -15
- package/2x/cjs/components/slider/index.js +0 -3
- package/2x/cjs/components/slider/marks.js +0 -8
- package/2x/cjs/components/slider/slider.js +12 -47
- package/2x/cjs/components/slider/thumb-icon.js +0 -5
- package/2x/cjs/components/slider/thumb.js +0 -17
- package/2x/cjs/components/slider/ticks.js +0 -6
- package/2x/cjs/components/space/index.js +0 -3
- package/2x/cjs/components/space/space.js +0 -8
- package/2x/cjs/components/spin-loading/index.js +0 -3
- package/2x/cjs/components/spin-loading/spin-loading.js +0 -9
- package/2x/cjs/components/stepper/index.js +0 -3
- package/2x/cjs/components/stepper/stepper.js +0 -37
- package/2x/cjs/components/steps/index.js +0 -6
- package/2x/cjs/components/steps/step.js +0 -7
- package/2x/cjs/components/steps/steps.js +0 -14
- package/2x/cjs/components/swipe-action/index.js +0 -3
- package/2x/cjs/components/swipe-action/swipe-action.js +0 -40
- package/2x/cjs/components/swiper/index.js +0 -6
- package/2x/cjs/components/swiper/swiper-item.js +0 -5
- package/2x/cjs/components/swiper/swiper.js +0 -47
- package/2x/cjs/components/switch/index.js +0 -3
- package/2x/cjs/components/switch/spin-icon.js +0 -5
- package/2x/cjs/components/switch/switch.js +0 -23
- package/2x/cjs/components/tab-bar/index.js +0 -5
- package/2x/cjs/components/tab-bar/tab-bar.js +0 -22
- package/2x/cjs/components/tabs/index.js +0 -5
- package/2x/cjs/components/tabs/tabs.js +0 -34
- package/2x/cjs/components/tag/index.js +0 -3
- package/2x/cjs/components/tag/tag.js +0 -9
- package/2x/cjs/components/text-area/index.js +0 -3
- package/2x/cjs/components/text-area/text-area.js +0 -27
- package/2x/cjs/components/toast/index.js +0 -3
- package/2x/cjs/components/toast/methods.js +0 -17
- package/2x/cjs/components/toast/toast.js +0 -19
- package/2x/cjs/components/tree-select/index.js +0 -6
- package/2x/cjs/components/tree-select/multiple.js +26 -87
- package/2x/cjs/components/tree-select/tree-select.js +4 -32
- package/2x/cjs/components/virtual-input/index.js +0 -3
- package/2x/cjs/components/virtual-input/virtual-input.js +0 -28
- package/2x/cjs/components/water-mark/index.js +0 -3
- package/2x/cjs/components/water-mark/water-mark.js +2 -15
- package/2x/cjs/global/index.js +2 -3
- package/2x/cjs/index.js +0 -85
- package/2x/cjs/locales/en-US.js +0 -3
- package/2x/cjs/locales/es-ES.js +0 -3
- package/2x/cjs/locales/fa-IR.js +0 -3
- package/2x/cjs/locales/fr-FR.js +0 -3
- package/2x/cjs/locales/id-ID.js +0 -3
- package/2x/cjs/locales/ja-JP.d.ts +127 -0
- package/2x/cjs/locales/ja-JP.js +137 -0
- package/2x/cjs/locales/kk-KZ.js +0 -3
- package/2x/cjs/locales/ko-KR.js +0 -3
- package/2x/cjs/locales/zh-CN.js +0 -3
- package/2x/cjs/locales/zh-HK.js +0 -3
- package/2x/cjs/locales/zh-TW.js +0 -3
- package/2x/cjs/utils/attach-properties-to-component.js +0 -3
- package/2x/cjs/utils/bound.js +0 -4
- package/2x/cjs/utils/convert-px.js +0 -9
- package/2x/cjs/utils/create-icon-component.js +0 -2
- package/2x/cjs/utils/dev-log.d.ts +1 -0
- package/2x/cjs/utils/dev-log.js +23 -3
- package/2x/cjs/utils/generate-int-array.js +0 -3
- package/2x/cjs/utils/get-container.d.ts +2 -1
- package/2x/cjs/utils/get-container.js +0 -1
- package/2x/cjs/utils/get-scroll-parent.js +0 -9
- package/2x/cjs/utils/is-node-with-content.js +0 -1
- package/2x/cjs/utils/matrix.js +0 -18
- package/2x/cjs/utils/measure-css-length.js +0 -7
- package/2x/cjs/utils/merge-locale.js +0 -5
- package/2x/cjs/utils/native-props.js +0 -10
- package/2x/cjs/utils/nearest.js +0 -1
- package/2x/cjs/utils/noop.js +0 -2
- package/2x/cjs/utils/reduce-and-restore-motion.js +0 -10
- package/2x/cjs/utils/render-imperatively.js +0 -15
- package/2x/cjs/utils/render-to-body.js +0 -5
- package/2x/cjs/utils/render-to-container.js +0 -5
- package/2x/cjs/utils/render.js +4 -22
- package/2x/cjs/utils/rubberband.js +0 -3
- package/2x/cjs/utils/should-render.js +0 -4
- package/2x/cjs/utils/shuffle.js +0 -3
- package/2x/cjs/utils/sleep.js +0 -2
- package/2x/cjs/utils/supports-passive.js +0 -4
- package/2x/cjs/utils/to-css-length.js +0 -1
- package/2x/cjs/utils/traverse-react-node.js +0 -6
- package/2x/cjs/utils/tree.js +0 -2
- package/2x/cjs/utils/undefined-fallback.js +0 -3
- package/2x/cjs/utils/use-drag-and-pinch.js +0 -2
- package/2x/cjs/utils/use-initialized.js +0 -4
- package/2x/cjs/utils/use-inner-visible.js +0 -3
- package/2x/cjs/utils/use-isomorphic-update-layout-effect.js +0 -2
- package/2x/cjs/utils/use-lock-scroll.d.ts +1 -1
- package/2x/cjs/utils/use-lock-scroll.js +20 -16
- package/2x/cjs/utils/use-mutation-effect.js +0 -3
- package/2x/cjs/utils/use-props-value.js +0 -5
- package/2x/cjs/utils/use-ref-state.js +0 -2
- package/2x/cjs/utils/use-resize-effect.js +0 -3
- package/2x/cjs/utils/use-tab-list-scroll.js +0 -9
- package/2x/cjs/utils/use-touch.js +2 -15
- package/2x/cjs/utils/validate.js +0 -9
- package/2x/cjs/utils/with-cache.js +0 -2
- package/2x/cjs/utils/with-default-props.js +0 -6
- package/2x/cjs/utils/with-stop-propagation.js +0 -8
- package/2x/es/components/action-sheet/action-sheet.js +0 -5
- package/2x/es/components/button/button.js +0 -4
- package/2x/es/components/calendar/calendar.js +0 -27
- package/2x/es/components/calendar/convert.js +0 -3
- package/2x/es/components/capsule-tabs/capsule-tabs.js +0 -7
- package/2x/es/components/card/card.js +0 -4
- package/2x/es/components/cascade-picker/cascade-picker-utils.js +0 -5
- package/2x/es/components/cascade-picker/cascade-picker.js +3 -4
- package/2x/es/components/cascade-picker/prompt.js +0 -4
- package/2x/es/components/cascade-picker-view/cascade-picker-view.js +3 -4
- package/2x/es/components/cascader/cascader.js +0 -7
- package/2x/es/components/cascader/prompt.js +0 -4
- package/2x/es/components/cascader-view/cascader-view.js +0 -12
- package/2x/es/components/cascader-view/use-cascader-value-extend.js +0 -9
- package/2x/es/components/center-popup/center-popup.js +0 -5
- package/2x/es/components/check-list/check-list-item.js +0 -5
- package/2x/es/components/check-list/check-list.js +0 -3
- package/2x/es/components/checkbox/checkbox.js +0 -11
- package/2x/es/components/checkbox/group.js +2 -1
- package/2x/es/components/collapse/collapse.js +0 -13
- package/2x/es/components/config-provider/config-provider.js +3 -5
- package/2x/es/components/date-picker/date-picker-date-utils.js +0 -15
- package/2x/es/components/date-picker/date-picker-week-utils.js +0 -11
- package/2x/es/components/date-picker/date-picker.js +0 -3
- package/2x/es/components/date-picker/prompt.js +0 -4
- package/2x/es/components/date-picker-view/date-picker-view.js +0 -3
- package/2x/es/components/dialog/alert.js +0 -1
- package/2x/es/components/dialog/confirm.js +0 -3
- package/2x/es/components/dialog/dialog.js +0 -4
- package/2x/es/components/dialog/show.js +0 -1
- package/2x/es/components/dot-loading/dot-loading.js +0 -1
- package/2x/es/components/dropdown/dropdown.js +4 -7
- package/2x/es/components/dropdown/item.js +0 -3
- package/2x/es/components/ellipsis/ellipsis.js +1 -17
- package/2x/es/components/empty/empty.js +0 -5
- package/2x/es/components/error-block/create-error-block.js +0 -2
- package/2x/es/components/floating-bubble/floating-bubble.js +2 -8
- package/2x/es/components/floating-panel/floating-panel.js +0 -9
- package/2x/es/components/footer/footer.js +0 -3
- package/2x/es/components/form/form-array.js +0 -3
- package/2x/es/components/form/form-item.js +33 -75
- package/2x/es/components/form/form.js +11 -17
- package/2x/es/components/form/utils.js +4 -6
- package/2x/es/components/grid/grid.js +0 -2
- package/2x/es/components/image/image.js +0 -8
- package/2x/es/components/image-uploader/image-uploader.js +0 -21
- package/2x/es/components/image-uploader/preview-item.js +0 -7
- package/2x/es/components/image-viewer/image-viewer.js +0 -6
- package/2x/es/components/image-viewer/methods.js +0 -2
- package/2x/es/components/image-viewer/slide.js +0 -16
- package/2x/es/components/image-viewer/slides.js +0 -4
- package/2x/es/components/index-bar/index-bar.js +0 -11
- package/2x/es/components/index-bar/sidebar.js +0 -1
- package/2x/es/components/infinite-scroll/infinite-scroll.js +4 -15
- package/2x/es/components/input/input.js +2 -23
- package/2x/es/components/jumbo-tabs/jumbo-tabs.js +0 -7
- package/2x/es/components/list/list-item.js +0 -1
- package/2x/es/components/list/list.js +0 -1
- package/2x/es/components/mask/mask.js +0 -4
- package/2x/es/components/modal/alert.js +0 -1
- package/2x/es/components/modal/confirm.js +0 -3
- package/2x/es/components/modal/modal.js +0 -3
- package/2x/es/components/modal/show.js +0 -1
- package/2x/es/components/nav-bar/nav-bar.d.ts +1 -1
- package/2x/es/components/nav-bar/nav-bar.js +0 -1
- package/2x/es/components/notice-bar/notice-bar.js +0 -7
- package/2x/es/components/number-keyboard/number-keyboard.css +1 -1
- package/2x/es/components/number-keyboard/number-keyboard.js +0 -18
- package/2x/es/components/page-indicator/page-indicator.js +0 -2
- package/2x/es/components/passcode-input/passcode-input.css +1 -1
- package/2x/es/components/passcode-input/passcode-input.js +2 -19
- package/2x/es/components/picker/picker.css +1 -0
- package/2x/es/components/picker/picker.js +0 -7
- package/2x/es/components/picker/prompt.js +0 -4
- package/2x/es/components/picker-view/columns-extend.js +0 -3
- package/2x/es/components/picker-view/picker-view.js +2 -4
- package/2x/es/components/picker-view/wheel.js +0 -14
- package/2x/es/components/popover/normalize-placement.js +0 -1
- package/2x/es/components/popover/popover-menu.js +2 -7
- package/2x/es/components/popover/popover.js +0 -6
- package/2x/es/components/popover/wrapper.js +0 -5
- package/2x/es/components/popup/popup.js +1 -10
- package/2x/es/components/progress-bar/progress-bar.js +0 -4
- package/2x/es/components/pull-to-refresh/pull-to-refresh.js +2 -27
- package/2x/es/components/radio/group.js +2 -2
- package/2x/es/components/radio/radio.js +0 -10
- package/2x/es/components/rate/rate.js +0 -4
- package/2x/es/components/search-bar/search-bar.js +0 -15
- package/2x/es/components/selector/selector.js +0 -3
- package/2x/es/components/side-bar/side-bar.js +0 -5
- package/2x/es/components/slider/marks.js +0 -4
- package/2x/es/components/slider/slider.js +12 -31
- package/2x/es/components/slider/thumb.js +0 -7
- package/2x/es/components/slider/ticks.js +0 -2
- package/2x/es/components/spin-loading/spin-loading.js +0 -1
- package/2x/es/components/stepper/stepper.js +0 -20
- package/2x/es/components/steps/steps.js +0 -4
- package/2x/es/components/swipe-action/swipe-action.js +0 -28
- package/2x/es/components/swiper/swiper.js +0 -28
- package/2x/es/components/switch/switch.js +0 -8
- package/2x/es/components/tab-bar/tab-bar.js +0 -9
- package/2x/es/components/tabs/tabs.js +0 -13
- package/2x/es/components/tag/tag.js +0 -1
- package/2x/es/components/text-area/text-area.js +0 -18
- package/2x/es/components/toast/methods.js +0 -8
- package/2x/es/components/toast/toast.js +0 -6
- package/2x/es/components/tree-select/multiple.js +26 -72
- package/2x/es/components/tree-select/tree-select.js +4 -19
- package/2x/es/components/virtual-input/virtual-input.js +0 -15
- package/2x/es/components/water-mark/water-mark.js +2 -5
- package/2x/es/global/index.js +2 -2
- package/2x/es/locales/ja-JP.d.ts +127 -0
- package/2x/es/locales/ja-JP.js +130 -0
- package/2x/es/utils/attach-properties-to-component.js +0 -2
- package/2x/es/utils/bound.js +0 -3
- package/2x/es/utils/convert-px.js +0 -5
- package/2x/es/utils/create-icon-component.js +0 -1
- package/2x/es/utils/dev-log.d.ts +1 -0
- package/2x/es/utils/dev-log.js +22 -0
- package/2x/es/utils/generate-int-array.js +0 -2
- package/2x/es/utils/get-container.d.ts +2 -1
- package/2x/es/utils/get-scroll-parent.js +0 -7
- package/2x/es/utils/measure-css-length.js +0 -4
- package/2x/es/utils/merge-locale.js +0 -4
- package/2x/es/utils/native-props.js +0 -6
- package/2x/es/utils/reduce-and-restore-motion.js +0 -2
- package/2x/es/utils/render-imperatively.js +0 -8
- package/2x/es/utils/render-to-body.js +0 -3
- package/2x/es/utils/render-to-container.js +0 -1
- package/2x/es/utils/render.js +6 -18
- package/2x/es/utils/shuffle.js +0 -2
- package/2x/es/utils/supports-passive.js +0 -2
- package/2x/es/utils/traverse-react-node.js +0 -2
- package/2x/es/utils/tree.js +0 -1
- package/2x/es/utils/undefined-fallback.js +0 -2
- package/2x/es/utils/use-initialized.js +0 -2
- package/2x/es/utils/use-lock-scroll.d.ts +1 -1
- package/2x/es/utils/use-lock-scroll.js +20 -11
- package/2x/es/utils/use-props-value.js +0 -2
- package/2x/es/utils/use-resize-effect.js +0 -1
- package/2x/es/utils/use-tab-list-scroll.js +0 -2
- package/2x/es/utils/use-touch.js +2 -13
- package/2x/es/utils/with-cache.js +0 -1
- package/2x/es/utils/with-default-props.js +0 -3
- package/2x/es/utils/with-stop-propagation.js +0 -4
- package/2x/package.json +2 -2
- package/bundle/antd-mobile.cjs.development.js +415 -362
- package/bundle/antd-mobile.cjs.js +11 -11
- package/bundle/antd-mobile.compatible.umd.js +2 -25558
- package/bundle/antd-mobile.es.development.js +416 -363
- package/bundle/antd-mobile.es.js +5270 -5205
- package/bundle/antd-mobile.umd.development.js +415 -362
- package/bundle/antd-mobile.umd.js +11 -11
- package/bundle/style.css +1 -1
- package/cjs/components/action-sheet/action-sheet.js +0 -17
- package/cjs/components/action-sheet/index.js +0 -5
- package/cjs/components/auto-center/auto-center.js +0 -6
- package/cjs/components/auto-center/index.js +0 -3
- package/cjs/components/avatar/avatar.js +0 -9
- package/cjs/components/avatar/fallback.js +0 -4
- package/cjs/components/avatar/index.js +0 -3
- package/cjs/components/badge/badge.js +0 -9
- package/cjs/components/badge/index.js +0 -5
- package/cjs/components/button/button.js +0 -15
- package/cjs/components/button/index.js +0 -3
- package/cjs/components/calendar/arrow-left-double.js +0 -4
- package/cjs/components/calendar/arrow-left.js +0 -4
- package/cjs/components/calendar/calendar.js +0 -47
- package/cjs/components/calendar/convert.js +0 -7
- package/cjs/components/calendar/index.js +0 -3
- package/cjs/components/capsule-tabs/capsule-tabs.js +0 -25
- package/cjs/components/capsule-tabs/index.js +0 -5
- package/cjs/components/card/card.js +0 -11
- package/cjs/components/card/index.js +0 -3
- package/cjs/components/cascade-picker/cascade-picker-utils.js +0 -7
- package/cjs/components/cascade-picker/cascade-picker.js +3 -11
- package/cjs/components/cascade-picker/index.js +0 -5
- package/cjs/components/cascade-picker/prompt.js +0 -10
- package/cjs/components/cascade-picker-view/cascade-picker-view.js +3 -10
- package/cjs/components/cascade-picker-view/index.js +0 -2
- package/cjs/components/cascader/cascader.js +0 -21
- package/cjs/components/cascader/index.js +0 -7
- package/cjs/components/cascader/prompt.js +0 -10
- package/cjs/components/cascader-view/cascader-view.js +0 -30
- package/cjs/components/cascader-view/index.js +0 -6
- package/cjs/components/cascader-view/use-cascader-value-extend.js +0 -13
- package/cjs/components/center-popup/center-popup.js +0 -27
- package/cjs/components/center-popup/index.js +0 -3
- package/cjs/components/check-list/check-list-item.js +0 -19
- package/cjs/components/check-list/check-list.js +0 -14
- package/cjs/components/check-list/context.js +0 -2
- package/cjs/components/check-list/index.js +0 -6
- package/cjs/components/checkbox/check-icon.js +0 -5
- package/cjs/components/checkbox/checkbox.js +0 -26
- package/cjs/components/checkbox/group-context.js +0 -2
- package/cjs/components/checkbox/group.js +2 -9
- package/cjs/components/checkbox/indeterminate-icon.js +0 -5
- package/cjs/components/checkbox/index.js +0 -6
- package/cjs/components/checkbox/native-input.js +0 -6
- package/cjs/components/collapse/collapse.js +0 -31
- package/cjs/components/collapse/index.js +0 -5
- package/cjs/components/config-provider/config-provider.js +3 -17
- package/cjs/components/config-provider/index.js +0 -2
- package/cjs/components/date-picker/date-picker-date-utils.js +0 -28
- package/cjs/components/date-picker/date-picker-utils.js +0 -13
- package/cjs/components/date-picker/date-picker-week-utils.js +0 -24
- package/cjs/components/date-picker/date-picker.js +0 -15
- package/cjs/components/date-picker/index.js +0 -6
- package/cjs/components/date-picker/prompt.js +0 -10
- package/cjs/components/date-picker-view/date-picker-view.js +0 -15
- package/cjs/components/date-picker-view/index.js +0 -2
- package/cjs/components/dialog/alert.js +0 -5
- package/cjs/components/dialog/clear.js +0 -2
- package/cjs/components/dialog/confirm.js +0 -9
- package/cjs/components/dialog/dialog-action-button.js +0 -7
- package/cjs/components/dialog/dialog.js +0 -18
- package/cjs/components/dialog/index.js +0 -9
- package/cjs/components/dialog/show.js +0 -7
- package/cjs/components/divider/divider.js +0 -8
- package/cjs/components/divider/index.js +0 -3
- package/cjs/components/dot-loading/dot-loading.js +0 -9
- package/cjs/components/dot-loading/index.js +0 -3
- package/cjs/components/dropdown/dropdown.js +4 -21
- package/cjs/components/dropdown/index.js +0 -7
- package/cjs/components/dropdown/item.js +0 -12
- package/cjs/components/ellipsis/ellipsis.js +1 -30
- package/cjs/components/ellipsis/index.js +0 -3
- package/cjs/components/empty/empty-icon.js +0 -5
- package/cjs/components/empty/empty.js +0 -12
- package/cjs/components/empty/index.js +0 -3
- package/cjs/components/error-block/create-error-block.js +0 -10
- package/cjs/components/error-block/error-block.js +0 -3
- package/cjs/components/error-block/images/busy.js +0 -4
- package/cjs/components/error-block/images/default.js +0 -4
- package/cjs/components/error-block/images/disconnected.js +0 -4
- package/cjs/components/error-block/images/empty.js +0 -4
- package/cjs/components/error-block/images/index.js +0 -4
- package/cjs/components/error-block/index.js +0 -4
- package/cjs/components/floating-bubble/floating-bubble.js +2 -18
- package/cjs/components/floating-bubble/index.js +0 -3
- package/cjs/components/floating-panel/floating-panel.js +0 -21
- package/cjs/components/floating-panel/index.js +0 -3
- package/cjs/components/footer/footer.js +0 -12
- package/cjs/components/footer/index.js +0 -3
- package/cjs/components/form/context.js +0 -7
- package/cjs/components/form/form-array.js +0 -9
- package/cjs/components/form/form-item.js +33 -94
- package/cjs/components/form/form-subscribe.js +0 -8
- package/cjs/components/form/form.js +11 -31
- package/cjs/components/form/header.js +0 -2
- package/cjs/components/form/index.js +0 -10
- package/cjs/components/form/utils.js +4 -9
- package/cjs/components/grid/grid.js +0 -12
- package/cjs/components/grid/index.js +0 -5
- package/cjs/components/image/broken-image-icon.js +0 -4
- package/cjs/components/image/image-icon.js +0 -4
- package/cjs/components/image/image.js +0 -21
- package/cjs/components/image/index.js +0 -3
- package/cjs/components/image/lazy-detector.js +0 -6
- package/cjs/components/image/test/image.test.js +0 -10
- package/cjs/components/image-uploader/image-uploader.js +0 -39
- package/cjs/components/image-uploader/index.js +0 -3
- package/cjs/components/image-uploader/preview-item.js +0 -17
- package/cjs/components/image-viewer/image-viewer.js +0 -23
- package/cjs/components/image-viewer/index.js +0 -7
- package/cjs/components/image-viewer/methods.js +0 -10
- package/cjs/components/image-viewer/slide.js +0 -28
- package/cjs/components/image-viewer/slides.js +0 -13
- package/cjs/components/index-bar/index-bar.js +0 -25
- package/cjs/components/index-bar/index.js +0 -6
- package/cjs/components/index-bar/panel.js +0 -2
- package/cjs/components/index-bar/sidebar.js +0 -9
- package/cjs/components/infinite-scroll/index.js +0 -3
- package/cjs/components/infinite-scroll/infinite-scroll.js +4 -28
- package/cjs/components/input/index.js +0 -3
- package/cjs/components/input/input.js +2 -37
- package/cjs/components/jumbo-tabs/index.js +0 -5
- package/cjs/components/jumbo-tabs/jumbo-tabs.js +0 -25
- package/cjs/components/list/index.js +0 -6
- package/cjs/components/list/list-item.js +0 -12
- package/cjs/components/list/list.js +0 -9
- package/cjs/components/loading/index.js +0 -3
- package/cjs/components/mask/index.js +0 -3
- package/cjs/components/mask/mask.js +0 -19
- package/cjs/components/modal/alert.js +0 -5
- package/cjs/components/modal/clear.js +0 -2
- package/cjs/components/modal/confirm.js +0 -9
- package/cjs/components/modal/index.js +0 -9
- package/cjs/components/modal/modal-action-button.js +0 -7
- package/cjs/components/modal/modal.js +0 -18
- package/cjs/components/modal/show.js +0 -7
- package/cjs/components/nav-bar/index.js +0 -3
- package/cjs/components/nav-bar/nav-bar.d.ts +1 -1
- package/cjs/components/nav-bar/nav-bar.js +0 -10
- package/cjs/components/notice-bar/index.js +0 -3
- package/cjs/components/notice-bar/notice-bar.js +0 -19
- package/cjs/components/number-keyboard/index.js +0 -3
- package/cjs/components/number-keyboard/number-keyboard.css +1 -1
- package/cjs/components/number-keyboard/number-keyboard.js +0 -33
- package/cjs/components/page-indicator/index.js +0 -3
- package/cjs/components/page-indicator/page-indicator.js +0 -10
- package/cjs/components/passcode-input/index.js +0 -3
- package/cjs/components/passcode-input/passcode-input.css +1 -1
- package/cjs/components/passcode-input/passcode-input.js +2 -30
- package/cjs/components/picker/index.js +0 -6
- package/cjs/components/picker/picker-utils.js +0 -2
- package/cjs/components/picker/picker.css +1 -0
- package/cjs/components/picker/picker.js +0 -25
- package/cjs/components/picker/prompt.js +0 -10
- package/cjs/components/picker-view/columns-extend.js +0 -7
- package/cjs/components/picker-view/index.js +0 -3
- package/cjs/components/picker-view/picker-view.js +2 -16
- package/cjs/components/picker-view/wheel.js +0 -27
- package/cjs/components/popover/arrow.js +0 -5
- package/cjs/components/popover/index.js +0 -7
- package/cjs/components/popover/normalize-placement.js +0 -2
- package/cjs/components/popover/popover-menu.js +2 -14
- package/cjs/components/popover/popover.js +0 -25
- package/cjs/components/popover/wrapper.js +0 -10
- package/cjs/components/popup/index.js +0 -3
- package/cjs/components/popup/popup.js +1 -30
- package/cjs/components/progress-bar/index.js +0 -3
- package/cjs/components/progress-bar/progress-bar.js +0 -13
- package/cjs/components/progress-circle/index.js +0 -3
- package/cjs/components/progress-circle/progress-circle.js +0 -7
- package/cjs/components/pull-to-refresh/index.js +0 -3
- package/cjs/components/pull-to-refresh/pull-to-refresh.js +2 -43
- package/cjs/components/radio/group-context.js +0 -2
- package/cjs/components/radio/group.js +2 -10
- package/cjs/components/radio/index.js +0 -6
- package/cjs/components/radio/radio.js +0 -26
- package/cjs/components/rate/index.js +0 -3
- package/cjs/components/rate/rate.js +0 -18
- package/cjs/components/rate/star.js +0 -4
- package/cjs/components/result/index.js +0 -3
- package/cjs/components/result/result.js +0 -11
- package/cjs/components/result-page/index.js +0 -6
- package/cjs/components/result-page/result-page-card.js +0 -7
- package/cjs/components/result-page/result-page.js +0 -15
- package/cjs/components/safe-area/index.js +0 -3
- package/cjs/components/safe-area/safe-area.js +0 -7
- package/cjs/components/scroll-mask/index.js +0 -3
- package/cjs/components/scroll-mask/scroll-mask.js +0 -10
- package/cjs/components/search-bar/index.js +0 -3
- package/cjs/components/search-bar/search-bar.js +0 -28
- package/cjs/components/selector/check-mark.js +0 -4
- package/cjs/components/selector/index.js +0 -3
- package/cjs/components/selector/selector.js +0 -15
- package/cjs/components/side-bar/corner.js +0 -5
- package/cjs/components/side-bar/index.js +0 -5
- package/cjs/components/side-bar/side-bar.js +0 -17
- package/cjs/components/skeleton/index.js +0 -5
- package/cjs/components/skeleton/skeleton.js +0 -15
- package/cjs/components/slider/index.js +0 -3
- package/cjs/components/slider/marks.js +0 -8
- package/cjs/components/slider/slider.js +12 -47
- package/cjs/components/slider/thumb-icon.js +0 -5
- package/cjs/components/slider/thumb.js +0 -17
- package/cjs/components/slider/ticks.js +0 -6
- package/cjs/components/space/index.js +0 -3
- package/cjs/components/space/space.js +0 -8
- package/cjs/components/spin-loading/index.js +0 -3
- package/cjs/components/spin-loading/spin-loading.js +0 -9
- package/cjs/components/stepper/index.js +0 -3
- package/cjs/components/stepper/stepper.js +0 -37
- package/cjs/components/steps/index.js +0 -6
- package/cjs/components/steps/step.js +0 -7
- package/cjs/components/steps/steps.js +0 -14
- package/cjs/components/swipe-action/index.js +0 -3
- package/cjs/components/swipe-action/swipe-action.js +0 -40
- package/cjs/components/swiper/index.js +0 -6
- package/cjs/components/swiper/swiper-item.js +0 -5
- package/cjs/components/swiper/swiper.js +0 -47
- package/cjs/components/switch/index.js +0 -3
- package/cjs/components/switch/spin-icon.js +0 -5
- package/cjs/components/switch/switch.js +0 -23
- package/cjs/components/tab-bar/index.js +0 -5
- package/cjs/components/tab-bar/tab-bar.js +0 -22
- package/cjs/components/tabs/index.js +0 -5
- package/cjs/components/tabs/tabs.js +0 -34
- package/cjs/components/tag/index.js +0 -3
- package/cjs/components/tag/tag.js +0 -9
- package/cjs/components/text-area/index.js +0 -3
- package/cjs/components/text-area/text-area.js +0 -27
- package/cjs/components/toast/index.js +0 -3
- package/cjs/components/toast/methods.js +0 -17
- package/cjs/components/toast/toast.js +0 -19
- package/cjs/components/tree-select/index.js +0 -6
- package/cjs/components/tree-select/multiple.js +26 -87
- package/cjs/components/tree-select/tree-select.js +4 -32
- package/cjs/components/virtual-input/index.js +0 -3
- package/cjs/components/virtual-input/virtual-input.js +0 -28
- package/cjs/components/water-mark/index.js +0 -3
- package/cjs/components/water-mark/water-mark.js +2 -15
- package/cjs/global/index.js +2 -3
- package/cjs/index.js +0 -85
- package/cjs/locales/en-US.js +0 -3
- package/cjs/locales/es-ES.js +0 -3
- package/cjs/locales/fa-IR.js +0 -3
- package/cjs/locales/fr-FR.js +0 -3
- package/cjs/locales/id-ID.js +0 -3
- package/cjs/locales/ja-JP.d.ts +127 -0
- package/cjs/locales/ja-JP.js +137 -0
- package/cjs/locales/kk-KZ.js +0 -3
- package/cjs/locales/ko-KR.js +0 -3
- package/cjs/locales/zh-CN.js +0 -3
- package/cjs/locales/zh-HK.js +0 -3
- package/cjs/locales/zh-TW.js +0 -3
- package/cjs/utils/attach-properties-to-component.js +0 -3
- package/cjs/utils/bound.js +0 -4
- package/cjs/utils/convert-px.js +0 -9
- package/cjs/utils/create-icon-component.js +0 -2
- package/cjs/utils/dev-log.d.ts +1 -0
- package/cjs/utils/dev-log.js +23 -3
- package/cjs/utils/generate-int-array.js +0 -3
- package/cjs/utils/get-container.d.ts +2 -1
- package/cjs/utils/get-container.js +0 -1
- package/cjs/utils/get-scroll-parent.js +0 -9
- package/cjs/utils/is-node-with-content.js +0 -1
- package/cjs/utils/matrix.js +0 -18
- package/cjs/utils/measure-css-length.js +0 -7
- package/cjs/utils/merge-locale.js +0 -5
- package/cjs/utils/native-props.js +0 -10
- package/cjs/utils/nearest.js +0 -1
- package/cjs/utils/noop.js +0 -2
- package/cjs/utils/reduce-and-restore-motion.js +0 -10
- package/cjs/utils/render-imperatively.js +0 -15
- package/cjs/utils/render-to-body.js +0 -5
- package/cjs/utils/render-to-container.js +0 -5
- package/cjs/utils/render.js +4 -22
- package/cjs/utils/rubberband.js +0 -3
- package/cjs/utils/should-render.js +0 -4
- package/cjs/utils/shuffle.js +0 -3
- package/cjs/utils/sleep.js +0 -2
- package/cjs/utils/supports-passive.js +0 -4
- package/cjs/utils/to-css-length.js +0 -1
- package/cjs/utils/traverse-react-node.js +0 -6
- package/cjs/utils/tree.js +0 -2
- package/cjs/utils/undefined-fallback.js +0 -3
- package/cjs/utils/use-drag-and-pinch.js +0 -2
- package/cjs/utils/use-initialized.js +0 -4
- package/cjs/utils/use-inner-visible.js +0 -3
- package/cjs/utils/use-isomorphic-update-layout-effect.js +0 -2
- package/cjs/utils/use-lock-scroll.d.ts +1 -1
- package/cjs/utils/use-lock-scroll.js +20 -16
- package/cjs/utils/use-mutation-effect.js +0 -3
- package/cjs/utils/use-props-value.js +0 -5
- package/cjs/utils/use-ref-state.js +0 -2
- package/cjs/utils/use-resize-effect.js +0 -3
- package/cjs/utils/use-tab-list-scroll.js +0 -9
- package/cjs/utils/use-touch.js +2 -15
- package/cjs/utils/validate.js +0 -9
- package/cjs/utils/with-cache.js +0 -2
- package/cjs/utils/with-default-props.js +0 -6
- package/cjs/utils/with-stop-propagation.js +0 -8
- package/es/components/action-sheet/action-sheet.js +0 -5
- package/es/components/button/button.js +0 -4
- package/es/components/calendar/calendar.js +0 -27
- package/es/components/calendar/convert.js +0 -3
- package/es/components/capsule-tabs/capsule-tabs.js +0 -7
- package/es/components/card/card.js +0 -4
- package/es/components/cascade-picker/cascade-picker-utils.js +0 -5
- package/es/components/cascade-picker/cascade-picker.js +3 -4
- package/es/components/cascade-picker/prompt.js +0 -4
- package/es/components/cascade-picker-view/cascade-picker-view.js +3 -4
- package/es/components/cascader/cascader.js +0 -7
- package/es/components/cascader/prompt.js +0 -4
- package/es/components/cascader-view/cascader-view.js +0 -12
- package/es/components/cascader-view/use-cascader-value-extend.js +0 -9
- package/es/components/center-popup/center-popup.js +0 -5
- package/es/components/check-list/check-list-item.js +0 -5
- package/es/components/check-list/check-list.js +0 -3
- package/es/components/checkbox/checkbox.js +0 -11
- package/es/components/checkbox/group.js +2 -1
- package/es/components/collapse/collapse.js +0 -13
- package/es/components/config-provider/config-provider.js +3 -5
- package/es/components/date-picker/date-picker-date-utils.js +0 -15
- package/es/components/date-picker/date-picker-week-utils.js +0 -11
- package/es/components/date-picker/date-picker.js +0 -3
- package/es/components/date-picker/prompt.js +0 -4
- package/es/components/date-picker-view/date-picker-view.js +0 -3
- package/es/components/dialog/alert.js +0 -1
- package/es/components/dialog/confirm.js +0 -3
- package/es/components/dialog/dialog.js +0 -4
- package/es/components/dialog/show.js +0 -1
- package/es/components/dot-loading/dot-loading.js +0 -1
- package/es/components/dropdown/dropdown.js +4 -7
- package/es/components/dropdown/item.js +0 -3
- package/es/components/ellipsis/ellipsis.js +1 -17
- package/es/components/empty/empty.js +0 -5
- package/es/components/error-block/create-error-block.js +0 -2
- package/es/components/floating-bubble/floating-bubble.js +2 -8
- package/es/components/floating-panel/floating-panel.js +0 -9
- package/es/components/footer/footer.js +0 -3
- package/es/components/form/form-array.js +0 -3
- package/es/components/form/form-item.js +33 -75
- package/es/components/form/form.js +11 -17
- package/es/components/form/utils.js +4 -6
- package/es/components/grid/grid.js +0 -2
- package/es/components/image/image.js +0 -8
- package/es/components/image-uploader/image-uploader.js +0 -21
- package/es/components/image-uploader/preview-item.js +0 -7
- package/es/components/image-viewer/image-viewer.js +0 -6
- package/es/components/image-viewer/methods.js +0 -2
- package/es/components/image-viewer/slide.js +0 -16
- package/es/components/image-viewer/slides.js +0 -4
- package/es/components/index-bar/index-bar.js +0 -11
- package/es/components/index-bar/sidebar.js +0 -1
- package/es/components/infinite-scroll/infinite-scroll.js +4 -15
- package/es/components/input/input.js +2 -23
- package/es/components/jumbo-tabs/jumbo-tabs.js +0 -7
- package/es/components/list/list-item.js +0 -1
- package/es/components/list/list.js +0 -1
- package/es/components/mask/mask.js +0 -4
- package/es/components/modal/alert.js +0 -1
- package/es/components/modal/confirm.js +0 -3
- package/es/components/modal/modal.js +0 -3
- package/es/components/modal/show.js +0 -1
- package/es/components/nav-bar/nav-bar.d.ts +1 -1
- package/es/components/nav-bar/nav-bar.js +0 -1
- package/es/components/notice-bar/notice-bar.js +0 -7
- package/es/components/number-keyboard/number-keyboard.css +1 -1
- package/es/components/number-keyboard/number-keyboard.js +0 -18
- package/es/components/page-indicator/page-indicator.js +0 -2
- package/es/components/passcode-input/passcode-input.css +1 -1
- package/es/components/passcode-input/passcode-input.js +2 -19
- package/es/components/picker/picker.css +1 -0
- package/es/components/picker/picker.js +0 -7
- package/es/components/picker/prompt.js +0 -4
- package/es/components/picker-view/columns-extend.js +0 -3
- package/es/components/picker-view/picker-view.js +2 -4
- package/es/components/picker-view/wheel.js +0 -14
- package/es/components/popover/normalize-placement.js +0 -1
- package/es/components/popover/popover-menu.js +2 -7
- package/es/components/popover/popover.js +0 -6
- package/es/components/popover/wrapper.js +0 -5
- package/es/components/popup/popup.js +1 -10
- package/es/components/progress-bar/progress-bar.js +0 -4
- package/es/components/pull-to-refresh/pull-to-refresh.js +2 -27
- package/es/components/radio/group.js +2 -2
- package/es/components/radio/radio.js +0 -10
- package/es/components/rate/rate.js +0 -4
- package/es/components/search-bar/search-bar.js +0 -15
- package/es/components/selector/selector.js +0 -3
- package/es/components/side-bar/side-bar.js +0 -5
- package/es/components/slider/marks.js +0 -4
- package/es/components/slider/slider.js +12 -31
- package/es/components/slider/thumb.js +0 -7
- package/es/components/slider/ticks.js +0 -2
- package/es/components/spin-loading/spin-loading.js +0 -1
- package/es/components/stepper/stepper.js +0 -20
- package/es/components/steps/steps.js +0 -4
- package/es/components/swipe-action/swipe-action.js +0 -28
- package/es/components/swiper/swiper.js +0 -28
- package/es/components/switch/switch.js +0 -8
- package/es/components/tab-bar/tab-bar.js +0 -9
- package/es/components/tabs/tabs.js +0 -13
- package/es/components/tag/tag.js +0 -1
- package/es/components/text-area/text-area.js +0 -18
- package/es/components/toast/methods.js +0 -8
- package/es/components/toast/toast.js +0 -6
- package/es/components/tree-select/multiple.js +26 -72
- package/es/components/tree-select/tree-select.js +4 -19
- package/es/components/virtual-input/virtual-input.js +0 -15
- package/es/components/water-mark/water-mark.js +2 -5
- package/es/global/index.js +2 -2
- package/es/locales/ja-JP.d.ts +127 -0
- package/es/locales/ja-JP.js +130 -0
- package/es/utils/attach-properties-to-component.js +0 -2
- package/es/utils/bound.js +0 -3
- package/es/utils/convert-px.js +0 -5
- package/es/utils/create-icon-component.js +0 -1
- package/es/utils/dev-log.d.ts +1 -0
- package/es/utils/dev-log.js +22 -0
- package/es/utils/generate-int-array.js +0 -2
- package/es/utils/get-container.d.ts +2 -1
- package/es/utils/get-scroll-parent.js +0 -7
- package/es/utils/measure-css-length.js +0 -4
- package/es/utils/merge-locale.js +0 -4
- package/es/utils/native-props.js +0 -6
- package/es/utils/reduce-and-restore-motion.js +0 -2
- package/es/utils/render-imperatively.js +0 -8
- package/es/utils/render-to-body.js +0 -3
- package/es/utils/render-to-container.js +0 -1
- package/es/utils/render.js +6 -18
- package/es/utils/shuffle.js +0 -2
- package/es/utils/supports-passive.js +0 -2
- package/es/utils/traverse-react-node.js +0 -2
- package/es/utils/tree.js +0 -1
- package/es/utils/undefined-fallback.js +0 -2
- package/es/utils/use-initialized.js +0 -2
- package/es/utils/use-lock-scroll.d.ts +1 -1
- package/es/utils/use-lock-scroll.js +20 -11
- package/es/utils/use-props-value.js +0 -2
- package/es/utils/use-resize-effect.js +0 -1
- package/es/utils/use-tab-list-scroll.js +0 -2
- package/es/utils/use-touch.js +2 -13
- package/es/utils/with-cache.js +0 -1
- package/es/utils/with-default-props.js +0 -3
- package/es/utils/with-stop-propagation.js +0 -4
- package/package.json +2 -2
- package/umd/antd-mobile.js +1 -1
- package/umd/antd-mobile.js.LICENSE.txt +3 -3
- package/2x/bundle/antd-mobile.compatible.umd.js +0 -25558
- package/2x/umd/antd-mobile.js +0 -25558
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import React__default, { useContext, useRef, useMemo, useEffect, useState, useCallback, useLayoutEffect
|
|
2
|
+
import React__default, { useContext, useRef, useMemo, useEffect, useState, useCallback, useLayoutEffect, 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 = "";
|
|
@@ -352,11 +352,11 @@ function attachPropertiesToComponent(component, properties) {
|
|
|
352
352
|
return ret;
|
|
353
353
|
}
|
|
354
354
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
355
|
-
var
|
|
355
|
+
var _classnames_2_3_2_classnames = { exports: {} };
|
|
356
356
|
/*!
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
357
|
+
Copyright (c) 2018 Jed Watson.
|
|
358
|
+
Licensed under the MIT License (MIT), see
|
|
359
|
+
http://jedwatson.github.io/classnames
|
|
360
360
|
*/
|
|
361
361
|
(function(module) {
|
|
362
362
|
(function() {
|
|
@@ -378,14 +378,14 @@ var classnames = { exports: {} };
|
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
} else if (argType === "object") {
|
|
381
|
-
if (arg.toString
|
|
382
|
-
for (var key in arg) {
|
|
383
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
384
|
-
classes.push(key);
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
} else {
|
|
381
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
388
382
|
classes.push(arg.toString());
|
|
383
|
+
continue;
|
|
384
|
+
}
|
|
385
|
+
for (var key in arg) {
|
|
386
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
387
|
+
classes.push(key);
|
|
388
|
+
}
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
391
|
}
|
|
@@ -398,8 +398,8 @@ var classnames = { exports: {} };
|
|
|
398
398
|
window.classNames = classNames2;
|
|
399
399
|
}
|
|
400
400
|
})();
|
|
401
|
-
})(
|
|
402
|
-
const classNames =
|
|
401
|
+
})(_classnames_2_3_2_classnames);
|
|
402
|
+
const classNames = _classnames_2_3_2_classnames.exports;
|
|
403
403
|
function withNativeProps(props, element) {
|
|
404
404
|
const p = Object.assign({}, element.props);
|
|
405
405
|
if (props.className) {
|
|
@@ -517,7 +517,9 @@ var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
|
517
517
|
var funcProto$1 = Function.prototype, objectProto$c = Object.prototype;
|
|
518
518
|
var funcToString$1 = funcProto$1.toString;
|
|
519
519
|
var hasOwnProperty$a = objectProto$c.hasOwnProperty;
|
|
520
|
-
var reIsNative = RegExp(
|
|
520
|
+
var reIsNative = RegExp(
|
|
521
|
+
"^" + funcToString$1.call(hasOwnProperty$a).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
522
|
+
);
|
|
521
523
|
function baseIsNative$1(value) {
|
|
522
524
|
if (!isObject$9(value) || isMasked(value)) {
|
|
523
525
|
return false;
|
|
@@ -895,8 +897,10 @@ var isFunction$1 = function isFunction(value) {
|
|
|
895
897
|
var isNumber = function isNumber2(value) {
|
|
896
898
|
return typeof value === "number";
|
|
897
899
|
};
|
|
900
|
+
var isDev = true;
|
|
901
|
+
const isDev$1 = isDev;
|
|
898
902
|
function useMemoizedFn(fn) {
|
|
899
|
-
{
|
|
903
|
+
if (isDev$1) {
|
|
900
904
|
if (!isFunction$1(fn)) {
|
|
901
905
|
console.error("useMemoizedFn expected parameter is a function, got " + typeof fn);
|
|
902
906
|
}
|
|
@@ -933,7 +937,7 @@ function useLatest(value) {
|
|
|
933
937
|
return ref;
|
|
934
938
|
}
|
|
935
939
|
var useUnmount = function useUnmount2(fn) {
|
|
936
|
-
{
|
|
940
|
+
if (isDev$1) {
|
|
937
941
|
if (!isFunction$1(fn)) {
|
|
938
942
|
console.error("useUnmount expected parameter is a function, got " + typeof fn);
|
|
939
943
|
}
|
|
@@ -1102,7 +1106,7 @@ function throttle$1(func, wait, options) {
|
|
|
1102
1106
|
}
|
|
1103
1107
|
var throttle_1 = throttle$1;
|
|
1104
1108
|
var useMount = function useMount2(fn) {
|
|
1105
|
-
{
|
|
1109
|
+
if (isDev$1) {
|
|
1106
1110
|
if (!isFunction$1(fn)) {
|
|
1107
1111
|
console.error('useMount: parameter `fn` expected to be a function, but got "' + typeof fn + '".');
|
|
1108
1112
|
}
|
|
@@ -1272,7 +1276,7 @@ var dayjs_min = { exports: {} };
|
|
|
1272
1276
|
}, p: function(t2) {
|
|
1273
1277
|
return { M: f, y: c, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: h }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
|
|
1274
1278
|
}, u: function(t2) {
|
|
1275
|
-
return
|
|
1279
|
+
return void 0 === t2;
|
|
1276
1280
|
} }, v = "en", D = {};
|
|
1277
1281
|
D[v] = M;
|
|
1278
1282
|
var p = function(t2) {
|
|
@@ -1281,7 +1285,7 @@ var dayjs_min = { exports: {} };
|
|
|
1281
1285
|
var i2;
|
|
1282
1286
|
if (!e2)
|
|
1283
1287
|
return v;
|
|
1284
|
-
if (typeof e2
|
|
1288
|
+
if ("string" == typeof e2) {
|
|
1285
1289
|
var s2 = e2.toLowerCase();
|
|
1286
1290
|
D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
|
|
1287
1291
|
var u2 = e2.split("-");
|
|
@@ -1295,7 +1299,7 @@ var dayjs_min = { exports: {} };
|
|
|
1295
1299
|
}, w = function(t2, e2) {
|
|
1296
1300
|
if (p(t2))
|
|
1297
1301
|
return t2.clone();
|
|
1298
|
-
var n2 = typeof e2
|
|
1302
|
+
var n2 = "object" == typeof e2 ? e2 : {};
|
|
1299
1303
|
return n2.date = t2, n2.args = arguments, new _(n2);
|
|
1300
1304
|
}, O = g;
|
|
1301
1305
|
O.l = S, O.i = p, O.w = function(t2, e2) {
|
|
@@ -1309,13 +1313,13 @@ var dayjs_min = { exports: {} };
|
|
|
1309
1313
|
return m2.parse = function(t2) {
|
|
1310
1314
|
this.$d = function(t3) {
|
|
1311
1315
|
var e2 = t3.date, n2 = t3.utc;
|
|
1312
|
-
if (
|
|
1316
|
+
if (null === e2)
|
|
1313
1317
|
return new Date(NaN);
|
|
1314
1318
|
if (O.u(e2))
|
|
1315
1319
|
return new Date();
|
|
1316
1320
|
if (e2 instanceof Date)
|
|
1317
1321
|
return new Date(e2);
|
|
1318
|
-
if (typeof e2
|
|
1322
|
+
if ("string" == typeof e2 && !/Z$/i.test(e2)) {
|
|
1319
1323
|
var r2 = e2.match(l);
|
|
1320
1324
|
if (r2) {
|
|
1321
1325
|
var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
|
|
@@ -1489,7 +1493,7 @@ var __spread$2 = globalThis && globalThis.__spread || function() {
|
|
|
1489
1493
|
};
|
|
1490
1494
|
function useDebounceFn(fn, options) {
|
|
1491
1495
|
var _a;
|
|
1492
|
-
{
|
|
1496
|
+
if (isDev$1) {
|
|
1493
1497
|
if (!isFunction$1(fn)) {
|
|
1494
1498
|
console.error("useDebounceFn expected parameter is a function, got " + typeof fn);
|
|
1495
1499
|
}
|
|
@@ -2137,11 +2141,15 @@ var isEqual_1 = isEqual$1;
|
|
|
2137
2141
|
}
|
|
2138
2142
|
if ("IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype) {
|
|
2139
2143
|
if (!("isIntersecting" in window.IntersectionObserverEntry.prototype)) {
|
|
2140
|
-
Object.defineProperty(
|
|
2141
|
-
|
|
2142
|
-
|
|
2144
|
+
Object.defineProperty(
|
|
2145
|
+
window.IntersectionObserverEntry.prototype,
|
|
2146
|
+
"isIntersecting",
|
|
2147
|
+
{
|
|
2148
|
+
get: function() {
|
|
2149
|
+
return this.intersectionRatio > 0;
|
|
2150
|
+
}
|
|
2143
2151
|
}
|
|
2144
|
-
|
|
2152
|
+
);
|
|
2145
2153
|
}
|
|
2146
2154
|
return;
|
|
2147
2155
|
}
|
|
@@ -2189,7 +2197,10 @@ var isEqual_1 = isEqual$1;
|
|
|
2189
2197
|
if (options.root && options.root.nodeType != 1 && options.root.nodeType != 9) {
|
|
2190
2198
|
throw new Error("root must be a Document or Element");
|
|
2191
2199
|
}
|
|
2192
|
-
this._checkForIntersections = throttle2(
|
|
2200
|
+
this._checkForIntersections = throttle2(
|
|
2201
|
+
this._checkForIntersections.bind(this),
|
|
2202
|
+
this.THROTTLE_TIMEOUT
|
|
2203
|
+
);
|
|
2193
2204
|
this._callback = callback;
|
|
2194
2205
|
this._observationTargets = [];
|
|
2195
2206
|
this._queuedEntries = [];
|
|
@@ -2750,8 +2761,8 @@ function useInViewport(target, options) {
|
|
|
2750
2761
|
}, [], target);
|
|
2751
2762
|
return [state, ratio];
|
|
2752
2763
|
}
|
|
2753
|
-
var useIsomorphicLayoutEffect = isBrowser$3 ? useLayoutEffect
|
|
2754
|
-
const useIsomorphicLayoutEffect$
|
|
2764
|
+
var useIsomorphicLayoutEffect$1 = isBrowser$3 ? useLayoutEffect : useEffect;
|
|
2765
|
+
const useIsomorphicLayoutEffect$2 = useIsomorphicLayoutEffect$1;
|
|
2755
2766
|
var __awaiter = globalThis && globalThis.__awaiter || function(thisArg, _arguments, P2, generator) {
|
|
2756
2767
|
function adopt(value) {
|
|
2757
2768
|
return value instanceof P2 ? value : new P2(function(resolve) {
|
|
@@ -3466,7 +3477,7 @@ var index$k = function() {
|
|
|
3466
3477
|
}
|
|
3467
3478
|
return ResizeObserver$1;
|
|
3468
3479
|
}();
|
|
3469
|
-
var useEffectWithTarget = createEffectWithTarget$1(useLayoutEffect
|
|
3480
|
+
var useEffectWithTarget = createEffectWithTarget$1(useLayoutEffect);
|
|
3470
3481
|
const useLayoutEffectWithTarget = useEffectWithTarget;
|
|
3471
3482
|
var useIsomorphicLayoutEffectWithTarget = isBrowser$3 ? useLayoutEffectWithTarget : useEffectWithTarget$2;
|
|
3472
3483
|
const useIsomorphicLayoutEffectWithTarget$1 = useIsomorphicLayoutEffectWithTarget;
|
|
@@ -3549,7 +3560,7 @@ var __spread = globalThis && globalThis.__spread || function() {
|
|
|
3549
3560
|
};
|
|
3550
3561
|
function useThrottleFn(fn, options) {
|
|
3551
3562
|
var _a;
|
|
3552
|
-
{
|
|
3563
|
+
if (isDev$1) {
|
|
3553
3564
|
if (!isFunction$1(fn)) {
|
|
3554
3565
|
console.error("useThrottleFn expected parameter is a function, got " + typeof fn);
|
|
3555
3566
|
}
|
|
@@ -3691,6 +3702,16 @@ if (canUseDom) {
|
|
|
3691
3702
|
}
|
|
3692
3703
|
let totalLockCount = 0;
|
|
3693
3704
|
const BODY_LOCK_CLASS = "adm-overflow-hidden";
|
|
3705
|
+
function getScrollableElement(el) {
|
|
3706
|
+
let current = el === null || el === void 0 ? void 0 : el.parentElement;
|
|
3707
|
+
while (current) {
|
|
3708
|
+
if (current.clientHeight < current.scrollHeight) {
|
|
3709
|
+
return current;
|
|
3710
|
+
}
|
|
3711
|
+
current = current.parentElement;
|
|
3712
|
+
}
|
|
3713
|
+
return null;
|
|
3714
|
+
}
|
|
3694
3715
|
function useLockScroll(rootRef, shouldLock) {
|
|
3695
3716
|
const touch = useTouch();
|
|
3696
3717
|
const onTouchMove = (event) => {
|
|
@@ -3699,6 +3720,13 @@ function useLockScroll(rootRef, shouldLock) {
|
|
|
3699
3720
|
const el = getScrollParent(event.target, rootRef.current);
|
|
3700
3721
|
if (!el)
|
|
3701
3722
|
return;
|
|
3723
|
+
if (shouldLock === "strict") {
|
|
3724
|
+
const scrollableParent = getScrollableElement(event.target);
|
|
3725
|
+
if (scrollableParent === document.body || scrollableParent === document.documentElement) {
|
|
3726
|
+
event.preventDefault();
|
|
3727
|
+
return;
|
|
3728
|
+
}
|
|
3729
|
+
}
|
|
3702
3730
|
const {
|
|
3703
3731
|
scrollHeight,
|
|
3704
3732
|
offsetHeight,
|
|
@@ -3778,9 +3806,9 @@ let findTimeout = (time) => ~(~timeouts.findIndex((t) => t.time > time) || ~time
|
|
|
3778
3806
|
raf.cancel = (fn) => {
|
|
3779
3807
|
onStartQueue.delete(fn);
|
|
3780
3808
|
onFrameQueue.delete(fn);
|
|
3809
|
+
onFinishQueue.delete(fn);
|
|
3781
3810
|
updateQueue.delete(fn);
|
|
3782
3811
|
writeQueue.delete(fn);
|
|
3783
|
-
onFinishQueue.delete(fn);
|
|
3784
3812
|
};
|
|
3785
3813
|
raf.sync = (fn) => {
|
|
3786
3814
|
sync = true;
|
|
@@ -3858,14 +3886,15 @@ function update() {
|
|
|
3858
3886
|
eachSafely(timeouts.splice(0, count), (t) => t.handler());
|
|
3859
3887
|
pendingCount -= count;
|
|
3860
3888
|
}
|
|
3889
|
+
if (!pendingCount) {
|
|
3890
|
+
stop();
|
|
3891
|
+
return;
|
|
3892
|
+
}
|
|
3861
3893
|
onStartQueue.flush();
|
|
3862
3894
|
updateQueue.flush(prevTs ? Math.min(64, ts - prevTs) : 16.667);
|
|
3863
3895
|
onFrameQueue.flush();
|
|
3864
3896
|
writeQueue.flush();
|
|
3865
3897
|
onFinishQueue.flush();
|
|
3866
|
-
if (!pendingCount) {
|
|
3867
|
-
stop();
|
|
3868
|
-
}
|
|
3869
3898
|
}
|
|
3870
3899
|
function makeQueue() {
|
|
3871
3900
|
let next = /* @__PURE__ */ new Set();
|
|
@@ -4385,7 +4414,7 @@ function findRange(input2, inputRange) {
|
|
|
4385
4414
|
return i - 1;
|
|
4386
4415
|
}
|
|
4387
4416
|
function _extends$4() {
|
|
4388
|
-
_extends$4 = Object.assign
|
|
4417
|
+
_extends$4 = Object.assign ? Object.assign.bind() : function(target) {
|
|
4389
4418
|
for (var i = 1; i < arguments.length; i++) {
|
|
4390
4419
|
var source = arguments[i];
|
|
4391
4420
|
for (var key in source) {
|
|
@@ -4547,10 +4576,10 @@ function deprecateDirectCall() {
|
|
|
4547
4576
|
function isAnimatedString(value) {
|
|
4548
4577
|
return is.str(value) && (value[0] == "#" || /\d/.test(value) || !isSSR() && cssVariableRegex.test(value) || value in (colors$1 || {}));
|
|
4549
4578
|
}
|
|
4550
|
-
const
|
|
4579
|
+
const useIsomorphicLayoutEffect = isSSR() ? useEffect : useLayoutEffect;
|
|
4551
4580
|
const useIsMounted = () => {
|
|
4552
4581
|
const isMounted = useRef(false);
|
|
4553
|
-
|
|
4582
|
+
useIsomorphicLayoutEffect(() => {
|
|
4554
4583
|
isMounted.current = true;
|
|
4555
4584
|
return () => {
|
|
4556
4585
|
isMounted.current = false;
|
|
@@ -4798,7 +4827,7 @@ function getAnimatedType(value) {
|
|
|
4798
4827
|
return parentNode ? parentNode.constructor : is.arr(value) ? AnimatedArray : isAnimatedString(value) ? AnimatedString : AnimatedValue;
|
|
4799
4828
|
}
|
|
4800
4829
|
function _extends$3() {
|
|
4801
|
-
_extends$3 = Object.assign
|
|
4830
|
+
_extends$3 = Object.assign ? Object.assign.bind() : function(target) {
|
|
4802
4831
|
for (var i = 1; i < arguments.length; i++) {
|
|
4803
4832
|
var source = arguments[i];
|
|
4804
4833
|
for (var key in source) {
|
|
@@ -4832,7 +4861,7 @@ const withAnimated = (Component, host2) => {
|
|
|
4832
4861
|
};
|
|
4833
4862
|
const observer = new PropsObserver(callback, deps);
|
|
4834
4863
|
const observerRef = useRef();
|
|
4835
|
-
|
|
4864
|
+
useIsomorphicLayoutEffect(() => {
|
|
4836
4865
|
observerRef.current = observer;
|
|
4837
4866
|
each(deps, (dep) => addFluidObserver(dep, observer));
|
|
4838
4867
|
return () => {
|
|
@@ -4917,7 +4946,7 @@ const createHost = (components, {
|
|
|
4917
4946
|
};
|
|
4918
4947
|
const getDisplayName = (arg) => is.str(arg) ? arg : arg && is.str(arg.displayName) ? arg.displayName : is.fun(arg) && arg.name || null;
|
|
4919
4948
|
function _extends$2() {
|
|
4920
|
-
_extends$2 = Object.assign
|
|
4949
|
+
_extends$2 = Object.assign ? Object.assign.bind() : function(target) {
|
|
4921
4950
|
for (var i = 1; i < arguments.length; i++) {
|
|
4922
4951
|
var source = arguments[i];
|
|
4923
4952
|
for (var key in source) {
|
|
@@ -5550,6 +5579,7 @@ class SpringValue extends FrameValue {
|
|
|
5550
5579
|
const from = anim.fromValues[i];
|
|
5551
5580
|
const v0 = node2.v0 != null ? node2.v0 : node2.v0 = is.arr(config2.velocity) ? config2.velocity[i] : config2.velocity;
|
|
5552
5581
|
let velocity;
|
|
5582
|
+
const precision = config2.precision || (from == to2 ? 5e-3 : Math.min(1, Math.abs(to2 - from) * 1e-3));
|
|
5553
5583
|
if (!is.und(config2.duration)) {
|
|
5554
5584
|
let p = 1;
|
|
5555
5585
|
if (config2.duration > 0) {
|
|
@@ -5571,11 +5601,10 @@ class SpringValue extends FrameValue {
|
|
|
5571
5601
|
const decay = config2.decay === true ? 0.998 : config2.decay;
|
|
5572
5602
|
const e = Math.exp(-(1 - decay) * elapsed);
|
|
5573
5603
|
position = from + v0 / (1 - decay) * (1 - e);
|
|
5574
|
-
finished = Math.abs(node2.lastPosition - position)
|
|
5604
|
+
finished = Math.abs(node2.lastPosition - position) <= precision;
|
|
5575
5605
|
velocity = v0 * e;
|
|
5576
5606
|
} else {
|
|
5577
5607
|
velocity = node2.lastVelocity == null ? v0 : node2.lastVelocity;
|
|
5578
|
-
const precision = config2.precision || (from == to2 ? 5e-3 : Math.min(1, Math.abs(to2 - from) * 1e-3));
|
|
5579
5608
|
const restVelocity = config2.restVelocity || precision / 10;
|
|
5580
5609
|
const bounceFactor = config2.clamp ? 0 : config2.bounce;
|
|
5581
5610
|
const canBounce = !is.und(bounceFactor);
|
|
@@ -6568,7 +6597,7 @@ function useSprings(length, props, deps) {
|
|
|
6568
6597
|
const context = useContext(SpringContext);
|
|
6569
6598
|
const prevContext = usePrev(context);
|
|
6570
6599
|
const hasContext = context !== prevContext && hasProps(context);
|
|
6571
|
-
|
|
6600
|
+
useIsomorphicLayoutEffect(() => {
|
|
6572
6601
|
layoutId.current++;
|
|
6573
6602
|
state.ctrls = ctrls.current;
|
|
6574
6603
|
const {
|
|
@@ -7654,7 +7683,7 @@ const defaultPopupBaseProps = {
|
|
|
7654
7683
|
};
|
|
7655
7684
|
function useInnerVisible(outerVisible) {
|
|
7656
7685
|
const [innerVisible, setInnerVisible] = useState(outerVisible);
|
|
7657
|
-
useIsomorphicLayoutEffect$
|
|
7686
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
7658
7687
|
setInnerVisible(outerVisible);
|
|
7659
7688
|
}, [outerVisible]);
|
|
7660
7689
|
return innerVisible;
|
|
@@ -7667,13 +7696,13 @@ const Popup = (p) => {
|
|
|
7667
7696
|
const props = mergeProps(defaultProps$12, p);
|
|
7668
7697
|
const bodyCls = classNames(`${classPrefix$1k}-body`, props.bodyClassName, `${classPrefix$1k}-body-position-${props.position}`);
|
|
7669
7698
|
const [active, setActive] = useState(props.visible);
|
|
7670
|
-
useIsomorphicLayoutEffect$
|
|
7699
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
7671
7700
|
if (props.visible) {
|
|
7672
7701
|
setActive(true);
|
|
7673
7702
|
}
|
|
7674
7703
|
}, [props.visible]);
|
|
7675
7704
|
const ref = useRef(null);
|
|
7676
|
-
useLockScroll(ref, props.disableBodyScroll && active);
|
|
7705
|
+
useLockScroll(ref, props.disableBodyScroll && active ? "strict" : false);
|
|
7677
7706
|
const unmountedRef = useUnmountedRef$1();
|
|
7678
7707
|
const {
|
|
7679
7708
|
percent
|
|
@@ -7972,12 +8001,12 @@ const AutoCenter = (props) => {
|
|
|
7972
8001
|
};
|
|
7973
8002
|
const avatar = "";
|
|
7974
8003
|
const image = "";
|
|
7975
|
-
var
|
|
8004
|
+
var _stagedComponents_1_1_3_stagedComponents = {};
|
|
7976
8005
|
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
7977
8006
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
7978
8007
|
};
|
|
7979
|
-
Object.defineProperty(
|
|
7980
|
-
var staged_1 =
|
|
8008
|
+
Object.defineProperty(_stagedComponents_1_1_3_stagedComponents, "__esModule", { value: true });
|
|
8009
|
+
var staged_1 = _stagedComponents_1_1_3_stagedComponents.staged = void 0;
|
|
7981
8010
|
const react_1 = __importDefault(React__default);
|
|
7982
8011
|
function processNext(next) {
|
|
7983
8012
|
if (typeof next === "function") {
|
|
@@ -7996,7 +8025,7 @@ function staged(stage) {
|
|
|
7996
8025
|
return processNext(next);
|
|
7997
8026
|
};
|
|
7998
8027
|
}
|
|
7999
|
-
staged_1 =
|
|
8028
|
+
staged_1 = _stagedComponents_1_1_3_stagedComponents.staged = staged;
|
|
8000
8029
|
function toCSSLength(val) {
|
|
8001
8030
|
return typeof val === "number" ? `${val}px` : val;
|
|
8002
8031
|
}
|
|
@@ -8012,7 +8041,7 @@ const LazyDetector = (props) => {
|
|
|
8012
8041
|
ref
|
|
8013
8042
|
});
|
|
8014
8043
|
};
|
|
8015
|
-
const useIsomorphicUpdateLayoutEffect = createUpdateEffect(useIsomorphicLayoutEffect$
|
|
8044
|
+
const useIsomorphicUpdateLayoutEffect = createUpdateEffect(useIsomorphicLayoutEffect$2);
|
|
8016
8045
|
const ImageIcon = () => React__default.createElement("svg", {
|
|
8017
8046
|
viewBox: "0 0 48 48",
|
|
8018
8047
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -8394,7 +8423,7 @@ var isoWeek$1 = { exports: {} };
|
|
|
8394
8423
|
var n = d.startOf;
|
|
8395
8424
|
d.startOf = function(e2, t2) {
|
|
8396
8425
|
var i2 = this.$utils(), s2 = !!i2.u(t2) || t2;
|
|
8397
|
-
return i2.p(e2)
|
|
8426
|
+
return "isoweek" === i2.p(e2) ? s2 ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : n.bind(this)(e2, t2);
|
|
8398
8427
|
};
|
|
8399
8428
|
};
|
|
8400
8429
|
});
|
|
@@ -8634,7 +8663,7 @@ const Calendar = forwardRef((p, ref) => {
|
|
|
8634
8663
|
const capsuleTabs = "";
|
|
8635
8664
|
function useResizeEffect(effect, targetRef) {
|
|
8636
8665
|
const fn = useMemoizedFn(effect);
|
|
8637
|
-
useIsomorphicLayoutEffect$
|
|
8666
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
8638
8667
|
const target = targetRef.current;
|
|
8639
8668
|
if (!target)
|
|
8640
8669
|
return;
|
|
@@ -8712,7 +8741,7 @@ const useTabListScroll = (targetRef, activeIndex) => {
|
|
|
8712
8741
|
immediate: immediate && !scrollLeft.isAnimating
|
|
8713
8742
|
});
|
|
8714
8743
|
}
|
|
8715
|
-
useIsomorphicLayoutEffect$
|
|
8744
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
8716
8745
|
animate(true);
|
|
8717
8746
|
}, []);
|
|
8718
8747
|
useIsomorphicUpdateLayoutEffect(() => {
|
|
@@ -8789,7 +8818,7 @@ const ScrollMask = (props) => {
|
|
|
8789
8818
|
}
|
|
8790
8819
|
}));
|
|
8791
8820
|
};
|
|
8792
|
-
var
|
|
8821
|
+
var _reactIs_17_0_2_reactIs = { exports: {} };
|
|
8793
8822
|
var reactIs_development$1 = {};
|
|
8794
8823
|
/** @license React v17.0.2
|
|
8795
8824
|
* react-is.development.js
|
|
@@ -8984,12 +9013,12 @@ var reactIs_development$1 = {};
|
|
|
8984
9013
|
{
|
|
8985
9014
|
module.exports = reactIs_development$1;
|
|
8986
9015
|
}
|
|
8987
|
-
})(
|
|
9016
|
+
})(_reactIs_17_0_2_reactIs);
|
|
8988
9017
|
function traverseReactNode(children, fn) {
|
|
8989
9018
|
let i = 0;
|
|
8990
9019
|
function handle(target) {
|
|
8991
9020
|
React__default.Children.forEach(target, (child) => {
|
|
8992
|
-
if (!
|
|
9021
|
+
if (!_reactIs_17_0_2_reactIs.exports.isFragment(child)) {
|
|
8993
9022
|
fn(child, i);
|
|
8994
9023
|
i += 1;
|
|
8995
9024
|
} else {
|
|
@@ -9188,7 +9217,7 @@ function ownKeys$1(object4, enumerableOnly) {
|
|
|
9188
9217
|
}
|
|
9189
9218
|
function _objectSpread2$1(target) {
|
|
9190
9219
|
for (var i = 1; i < arguments.length; i++) {
|
|
9191
|
-
var source = arguments[i]
|
|
9220
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
9192
9221
|
i % 2 ? ownKeys$1(Object(source), true).forEach(function(key) {
|
|
9193
9222
|
_defineProperty$1(target, key, source[key]);
|
|
9194
9223
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function(key) {
|
|
@@ -9910,7 +9939,7 @@ Please upgrade to the latest version.`);
|
|
|
9910
9939
|
this.emit();
|
|
9911
9940
|
}
|
|
9912
9941
|
pointerClick(event) {
|
|
9913
|
-
if (!this.state.tap) {
|
|
9942
|
+
if (!this.state.tap && event.detail > 0) {
|
|
9914
9943
|
event.preventDefault();
|
|
9915
9944
|
event.stopPropagation();
|
|
9916
9945
|
}
|
|
@@ -10618,23 +10647,21 @@ function resolveWith(config2 = {}, resolvers) {
|
|
|
10618
10647
|
}
|
|
10619
10648
|
return result2;
|
|
10620
10649
|
}
|
|
10621
|
-
function parse$1(
|
|
10622
|
-
const _ref =
|
|
10650
|
+
function parse$1(newConfig, gestureKey, _config = {}) {
|
|
10651
|
+
const _ref = newConfig, {
|
|
10623
10652
|
target,
|
|
10624
10653
|
eventOptions,
|
|
10625
10654
|
window: window2,
|
|
10626
10655
|
enabled,
|
|
10627
10656
|
transform
|
|
10628
10657
|
} = _ref, rest = _objectWithoutProperties$1(_ref, _excluded$3);
|
|
10629
|
-
|
|
10630
|
-
|
|
10631
|
-
|
|
10632
|
-
|
|
10633
|
-
|
|
10634
|
-
|
|
10635
|
-
|
|
10636
|
-
}, sharedConfigResolver)
|
|
10637
|
-
};
|
|
10658
|
+
_config.shared = resolveWith({
|
|
10659
|
+
target,
|
|
10660
|
+
eventOptions,
|
|
10661
|
+
window: window2,
|
|
10662
|
+
enabled,
|
|
10663
|
+
transform
|
|
10664
|
+
}, sharedConfigResolver);
|
|
10638
10665
|
if (gestureKey) {
|
|
10639
10666
|
const resolver = ConfigResolverMap.get(gestureKey);
|
|
10640
10667
|
_config[gestureKey] = resolveWith(_objectSpread2$1({
|
|
@@ -10738,7 +10765,7 @@ class Controller {
|
|
|
10738
10765
|
this.nativeHandlers = nativeHandlers;
|
|
10739
10766
|
}
|
|
10740
10767
|
applyConfig(config2, gestureKey) {
|
|
10741
|
-
this.config = parse$1(config2, gestureKey);
|
|
10768
|
+
this.config = parse$1(config2, gestureKey, this.config);
|
|
10742
10769
|
}
|
|
10743
10770
|
clean() {
|
|
10744
10771
|
this._targetEventStore.clean();
|
|
@@ -10985,13 +11012,13 @@ const Wheel = memo((props) => {
|
|
|
10985
11012
|
const rootRef = useRef(null);
|
|
10986
11013
|
const itemHeightMeasureRef = useRef(null);
|
|
10987
11014
|
const itemHeight = useRef(34);
|
|
10988
|
-
useIsomorphicLayoutEffect$
|
|
11015
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
10989
11016
|
const itemHeightMeasure = itemHeightMeasureRef.current;
|
|
10990
11017
|
if (!itemHeightMeasure)
|
|
10991
11018
|
return;
|
|
10992
11019
|
itemHeight.current = measureCSSLength(window.getComputedStyle(itemHeightMeasure).getPropertyValue("height"));
|
|
10993
11020
|
});
|
|
10994
|
-
useIsomorphicLayoutEffect$
|
|
11021
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
10995
11022
|
if (draggingRef.current)
|
|
10996
11023
|
return;
|
|
10997
11024
|
if (value === null)
|
|
@@ -11005,7 +11032,7 @@ const Wheel = memo((props) => {
|
|
|
11005
11032
|
immediate: y.goal !== finalPosition
|
|
11006
11033
|
});
|
|
11007
11034
|
}, [value, column]);
|
|
11008
|
-
useIsomorphicLayoutEffect$
|
|
11035
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
11009
11036
|
if (column.length === 0) {
|
|
11010
11037
|
if (value !== null) {
|
|
11011
11038
|
onSelect(null);
|
|
@@ -11852,7 +11879,7 @@ const Tabs$1 = (p) => {
|
|
|
11852
11879
|
immediate
|
|
11853
11880
|
});
|
|
11854
11881
|
}
|
|
11855
|
-
useIsomorphicLayoutEffect$
|
|
11882
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
11856
11883
|
animate(!x.isAnimating);
|
|
11857
11884
|
}, []);
|
|
11858
11885
|
useIsomorphicUpdateLayoutEffect(() => {
|
|
@@ -11887,7 +11914,7 @@ const Tabs$1 = (p) => {
|
|
|
11887
11914
|
trailing: true,
|
|
11888
11915
|
leading: true
|
|
11889
11916
|
});
|
|
11890
|
-
useIsomorphicLayoutEffect$
|
|
11917
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
11891
11918
|
updateMask(true);
|
|
11892
11919
|
}, []);
|
|
11893
11920
|
return withNativeProps(props, React__default.createElement("div", {
|
|
@@ -12477,7 +12504,7 @@ const CenterPopup = (p) => {
|
|
|
12477
12504
|
}
|
|
12478
12505
|
});
|
|
12479
12506
|
const [active, setActive] = useState(props.visible);
|
|
12480
|
-
useIsomorphicLayoutEffect$
|
|
12507
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
12481
12508
|
if (props.visible) {
|
|
12482
12509
|
setActive(true);
|
|
12483
12510
|
}
|
|
@@ -12539,18 +12566,22 @@ const defaultProps$O = {
|
|
|
12539
12566
|
const Group$1 = (p) => {
|
|
12540
12567
|
const props = mergeProps(defaultProps$O, p);
|
|
12541
12568
|
const [value, setValue2] = usePropsValue(props);
|
|
12542
|
-
return React__default.createElement(
|
|
12543
|
-
|
|
12544
|
-
|
|
12545
|
-
|
|
12546
|
-
|
|
12547
|
-
|
|
12548
|
-
|
|
12549
|
-
|
|
12550
|
-
|
|
12569
|
+
return React__default.createElement(
|
|
12570
|
+
CheckboxGroupContext.Provider,
|
|
12571
|
+
{
|
|
12572
|
+
value: {
|
|
12573
|
+
value,
|
|
12574
|
+
disabled: props.disabled,
|
|
12575
|
+
check: (v) => {
|
|
12576
|
+
setValue2([...value, v]);
|
|
12577
|
+
},
|
|
12578
|
+
uncheck: (v) => {
|
|
12579
|
+
setValue2(value.filter((item) => item !== v));
|
|
12580
|
+
}
|
|
12551
12581
|
}
|
|
12552
|
-
}
|
|
12553
|
-
|
|
12582
|
+
},
|
|
12583
|
+
props.children
|
|
12584
|
+
);
|
|
12554
12585
|
};
|
|
12555
12586
|
const CheckIcon = memo((props) => {
|
|
12556
12587
|
return withNativeProps(props, React__default.createElement("svg", {
|
|
@@ -12834,7 +12865,7 @@ var isoWeeksInYear$1 = { exports: {} };
|
|
|
12834
12865
|
return function(e, n) {
|
|
12835
12866
|
n.prototype.isoWeeksInYear = function() {
|
|
12836
12867
|
var e2 = this.isLeapYear(), n2 = this.endOf("y").day();
|
|
12837
|
-
return
|
|
12868
|
+
return 4 === n2 || e2 && 5 === n2 ? 53 : 52;
|
|
12838
12869
|
};
|
|
12839
12870
|
};
|
|
12840
12871
|
});
|
|
@@ -13582,7 +13613,7 @@ const index$c = attachPropertiesToComponent(Dropdown, {
|
|
|
13582
13613
|
Item
|
|
13583
13614
|
});
|
|
13584
13615
|
const ellipsis = "";
|
|
13585
|
-
var
|
|
13616
|
+
var _runes_0_4_3_runes = { exports: {} };
|
|
13586
13617
|
const HIGH_SURROGATE_START = 55296;
|
|
13587
13618
|
const HIGH_SURROGATE_END = 56319;
|
|
13588
13619
|
const LOW_SURROGATE_START = 56320;
|
|
@@ -13700,13 +13731,14 @@ function substring(string3, start2, width) {
|
|
|
13700
13731
|
}
|
|
13701
13732
|
return chars.slice(start2, endIndex).join("");
|
|
13702
13733
|
}
|
|
13703
|
-
|
|
13704
|
-
|
|
13734
|
+
_runes_0_4_3_runes.exports = runes;
|
|
13735
|
+
_runes_0_4_3_runes.exports.substr = substring;
|
|
13705
13736
|
const classPrefix$S = `adm-ellipsis`;
|
|
13706
13737
|
const defaultProps$G = {
|
|
13707
13738
|
direction: "end",
|
|
13708
13739
|
rows: 1,
|
|
13709
13740
|
expandText: "",
|
|
13741
|
+
content: "",
|
|
13710
13742
|
collapseText: "",
|
|
13711
13743
|
stopPropagationForActionButtons: [],
|
|
13712
13744
|
onContentClick: () => {
|
|
@@ -13718,7 +13750,7 @@ const Ellipsis = (p) => {
|
|
|
13718
13750
|
const [ellipsised, setEllipsised] = useState({});
|
|
13719
13751
|
const [expanded, setExpanded] = useState(false);
|
|
13720
13752
|
const [exceeded, setExceeded] = useState(false);
|
|
13721
|
-
const chars = useMemo(() =>
|
|
13753
|
+
const chars = useMemo(() => _runes_0_4_3_runes.exports(props.content), [props.content]);
|
|
13722
13754
|
function getSubString(start2, end) {
|
|
13723
13755
|
return chars.slice(start2, end).join("");
|
|
13724
13756
|
}
|
|
@@ -13809,7 +13841,7 @@ const Ellipsis = (p) => {
|
|
|
13809
13841
|
document.body.removeChild(container);
|
|
13810
13842
|
}
|
|
13811
13843
|
useResizeEffect(calcEllipsised, rootRef);
|
|
13812
|
-
useIsomorphicLayoutEffect$
|
|
13844
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
13813
13845
|
calcEllipsised();
|
|
13814
13846
|
}, [props.content, props.direction, props.rows, props.expandText, props.collapseText]);
|
|
13815
13847
|
const expandActionElement = exceeded && props.expandText ? withStopPropagation(props.stopPropagationForActionButtons, React__default.createElement("a", {
|
|
@@ -14718,7 +14750,7 @@ function ownKeys(object4, enumerableOnly) {
|
|
|
14718
14750
|
}
|
|
14719
14751
|
function _objectSpread2(target) {
|
|
14720
14752
|
for (var i = 1; i < arguments.length; i++) {
|
|
14721
|
-
var source = arguments[i]
|
|
14753
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
14722
14754
|
i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
|
|
14723
14755
|
_defineProperty(target, key, source[key]);
|
|
14724
14756
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
@@ -14840,10 +14872,10 @@ function _isNativeReflectConstruct$1() {
|
|
|
14840
14872
|
}
|
|
14841
14873
|
function _typeof$1(obj) {
|
|
14842
14874
|
"@babel/helpers - typeof";
|
|
14843
|
-
return _typeof$1 = typeof Symbol
|
|
14875
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
14844
14876
|
return typeof obj2;
|
|
14845
14877
|
} : function(obj2) {
|
|
14846
|
-
return obj2 && typeof Symbol
|
|
14878
|
+
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
14847
14879
|
}, _typeof$1(obj);
|
|
14848
14880
|
}
|
|
14849
14881
|
function _possibleConstructorReturn(self2, call2) {
|
|
@@ -14867,7 +14899,7 @@ function _createSuper(Derived) {
|
|
|
14867
14899
|
return _possibleConstructorReturn(this, result2);
|
|
14868
14900
|
};
|
|
14869
14901
|
}
|
|
14870
|
-
var
|
|
14902
|
+
var _reactIs_16_13_1_reactIs = { exports: {} };
|
|
14871
14903
|
var reactIs_development = {};
|
|
14872
14904
|
/** @license React v16.13.1
|
|
14873
14905
|
* react-is.development.js
|
|
@@ -15027,7 +15059,7 @@ var reactIs_development = {};
|
|
|
15027
15059
|
{
|
|
15028
15060
|
module.exports = reactIs_development;
|
|
15029
15061
|
}
|
|
15030
|
-
})(
|
|
15062
|
+
})(_reactIs_16_13_1_reactIs);
|
|
15031
15063
|
function toArray$2(children) {
|
|
15032
15064
|
var option = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
15033
15065
|
var ret = [];
|
|
@@ -15037,7 +15069,7 @@ function toArray$2(children) {
|
|
|
15037
15069
|
}
|
|
15038
15070
|
if (Array.isArray(child)) {
|
|
15039
15071
|
ret = ret.concat(toArray$2(child));
|
|
15040
|
-
} else if (
|
|
15072
|
+
} else if (_reactIs_16_13_1_reactIs.exports.isFragment(child) && child.props) {
|
|
15041
15073
|
ret = ret.concat(toArray$2(child.props.children, option));
|
|
15042
15074
|
} else {
|
|
15043
15075
|
ret.push(child);
|
|
@@ -15105,11 +15137,10 @@ function toArray$1(value) {
|
|
|
15105
15137
|
return Array.isArray(value) ? value : [value];
|
|
15106
15138
|
}
|
|
15107
15139
|
function _regeneratorRuntime() {
|
|
15108
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
15109
15140
|
_regeneratorRuntime = function _regeneratorRuntime2() {
|
|
15110
15141
|
return exports;
|
|
15111
15142
|
};
|
|
15112
|
-
var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = typeof Symbol
|
|
15143
|
+
var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
15113
15144
|
function define(obj, key, value) {
|
|
15114
15145
|
return Object.defineProperty(obj, key, {
|
|
15115
15146
|
value,
|
|
@@ -15130,10 +15161,10 @@ function _regeneratorRuntime() {
|
|
|
15130
15161
|
return generator._invoke = function(innerFn2, self3, context2) {
|
|
15131
15162
|
var state = "suspendedStart";
|
|
15132
15163
|
return function(method4, arg) {
|
|
15133
|
-
if (
|
|
15164
|
+
if ("executing" === state)
|
|
15134
15165
|
throw new Error("Generator is already running");
|
|
15135
|
-
if (
|
|
15136
|
-
if (
|
|
15166
|
+
if ("completed" === state) {
|
|
15167
|
+
if ("throw" === method4)
|
|
15137
15168
|
throw arg;
|
|
15138
15169
|
return doneResult();
|
|
15139
15170
|
}
|
|
@@ -15147,17 +15178,17 @@ function _regeneratorRuntime() {
|
|
|
15147
15178
|
return delegateResult;
|
|
15148
15179
|
}
|
|
15149
15180
|
}
|
|
15150
|
-
if (context2.method
|
|
15181
|
+
if ("next" === context2.method)
|
|
15151
15182
|
context2.sent = context2._sent = context2.arg;
|
|
15152
|
-
else if (context2.method
|
|
15153
|
-
if (
|
|
15183
|
+
else if ("throw" === context2.method) {
|
|
15184
|
+
if ("suspendedStart" === state)
|
|
15154
15185
|
throw state = "completed", context2.arg;
|
|
15155
15186
|
context2.dispatchException(context2.arg);
|
|
15156
15187
|
} else
|
|
15157
|
-
context2.method
|
|
15188
|
+
"return" === context2.method && context2.abrupt("return", context2.arg);
|
|
15158
15189
|
state = "executing";
|
|
15159
15190
|
var record2 = tryCatch(innerFn2, self3, context2);
|
|
15160
|
-
if (record2.type
|
|
15191
|
+
if ("normal" === record2.type) {
|
|
15161
15192
|
if (state = context2.done ? "completed" : "suspendedYield", record2.arg === ContinueSentinel)
|
|
15162
15193
|
continue;
|
|
15163
15194
|
return {
|
|
@@ -15165,7 +15196,7 @@ function _regeneratorRuntime() {
|
|
|
15165
15196
|
done: context2.done
|
|
15166
15197
|
};
|
|
15167
15198
|
}
|
|
15168
|
-
record2.type
|
|
15199
|
+
"throw" === record2.type && (state = "completed", context2.method = "throw", context2.arg = record2.arg);
|
|
15169
15200
|
}
|
|
15170
15201
|
};
|
|
15171
15202
|
}(innerFn, self2, context), generator;
|
|
@@ -15208,9 +15239,9 @@ function _regeneratorRuntime() {
|
|
|
15208
15239
|
function AsyncIterator(generator, PromiseImpl) {
|
|
15209
15240
|
function invoke(method4, arg, resolve, reject) {
|
|
15210
15241
|
var record2 = tryCatch(generator[method4], generator, arg);
|
|
15211
|
-
if (record2.type
|
|
15242
|
+
if ("throw" !== record2.type) {
|
|
15212
15243
|
var result2 = record2.arg, value = result2.value;
|
|
15213
|
-
return value && _typeof$1(value)
|
|
15244
|
+
return value && "object" == _typeof$1(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function(value2) {
|
|
15214
15245
|
invoke("next", value2, resolve, reject);
|
|
15215
15246
|
}, function(err) {
|
|
15216
15247
|
invoke("throw", err, resolve, reject);
|
|
@@ -15234,19 +15265,19 @@ function _regeneratorRuntime() {
|
|
|
15234
15265
|
}
|
|
15235
15266
|
function maybeInvokeDelegate(delegate, context) {
|
|
15236
15267
|
var method4 = delegate.iterator[context.method];
|
|
15237
|
-
if (
|
|
15238
|
-
if (context.delegate = null, context.method
|
|
15239
|
-
if (delegate.iterator["return"] && (context.method = "return", context.arg = void 0, maybeInvokeDelegate(delegate, context), context.method
|
|
15268
|
+
if (void 0 === method4) {
|
|
15269
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
15270
|
+
if (delegate.iterator["return"] && (context.method = "return", context.arg = void 0, maybeInvokeDelegate(delegate, context), "throw" === context.method))
|
|
15240
15271
|
return ContinueSentinel;
|
|
15241
15272
|
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
15242
15273
|
}
|
|
15243
15274
|
return ContinueSentinel;
|
|
15244
15275
|
}
|
|
15245
15276
|
var record2 = tryCatch(method4, delegate.iterator, context.arg);
|
|
15246
|
-
if (record2.type
|
|
15277
|
+
if ("throw" === record2.type)
|
|
15247
15278
|
return context.method = "throw", context.arg = record2.arg, context.delegate = null, ContinueSentinel;
|
|
15248
15279
|
var info = record2.arg;
|
|
15249
|
-
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, context.method
|
|
15280
|
+
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = void 0), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
15250
15281
|
}
|
|
15251
15282
|
function pushTryEntry(locs) {
|
|
15252
15283
|
var entry = {
|
|
@@ -15268,7 +15299,7 @@ function _regeneratorRuntime() {
|
|
|
15268
15299
|
var iteratorMethod = iterable[iteratorSymbol];
|
|
15269
15300
|
if (iteratorMethod)
|
|
15270
15301
|
return iteratorMethod.call(iterable);
|
|
15271
|
-
if (typeof iterable.next
|
|
15302
|
+
if ("function" == typeof iterable.next)
|
|
15272
15303
|
return iterable;
|
|
15273
15304
|
if (!isNaN(iterable.length)) {
|
|
15274
15305
|
var i = -1, next = function next2() {
|
|
@@ -15292,8 +15323,8 @@ function _regeneratorRuntime() {
|
|
|
15292
15323
|
};
|
|
15293
15324
|
}
|
|
15294
15325
|
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function(genFun) {
|
|
15295
|
-
var ctor = typeof genFun
|
|
15296
|
-
return !!ctor && (ctor === GeneratorFunction || (ctor.displayName || ctor.name)
|
|
15326
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
15327
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
15297
15328
|
}, exports.mark = function(genFun) {
|
|
15298
15329
|
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
15299
15330
|
}, exports.awrap = function(arg) {
|
|
@@ -15303,7 +15334,7 @@ function _regeneratorRuntime() {
|
|
|
15303
15334
|
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function() {
|
|
15304
15335
|
return this;
|
|
15305
15336
|
}), exports.AsyncIterator = AsyncIterator, exports.async = function(innerFn, outerFn, self2, tryLocsList, PromiseImpl) {
|
|
15306
|
-
|
|
15337
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
15307
15338
|
var iter = new AsyncIterator(wrap(innerFn, outerFn, self2, tryLocsList), PromiseImpl);
|
|
15308
15339
|
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function(result2) {
|
|
15309
15340
|
return result2.done ? result2.value : iter.next();
|
|
@@ -15330,13 +15361,13 @@ function _regeneratorRuntime() {
|
|
|
15330
15361
|
reset: function reset(skipTempReset) {
|
|
15331
15362
|
if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = false, this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEach(resetTryEntry), !skipTempReset)
|
|
15332
15363
|
for (var name in this) {
|
|
15333
|
-
name.charAt(0)
|
|
15364
|
+
"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = void 0);
|
|
15334
15365
|
}
|
|
15335
15366
|
},
|
|
15336
15367
|
stop: function stop2() {
|
|
15337
15368
|
this.done = true;
|
|
15338
15369
|
var rootRecord = this.tryEntries[0].completion;
|
|
15339
|
-
if (rootRecord.type
|
|
15370
|
+
if ("throw" === rootRecord.type)
|
|
15340
15371
|
throw rootRecord.arg;
|
|
15341
15372
|
return this.rval;
|
|
15342
15373
|
},
|
|
@@ -15349,7 +15380,7 @@ function _regeneratorRuntime() {
|
|
|
15349
15380
|
}
|
|
15350
15381
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
15351
15382
|
var entry = this.tryEntries[i], record2 = entry.completion;
|
|
15352
|
-
if (entry.tryLoc
|
|
15383
|
+
if ("root" === entry.tryLoc)
|
|
15353
15384
|
return handle("end");
|
|
15354
15385
|
if (entry.tryLoc <= this.prev) {
|
|
15355
15386
|
var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
@@ -15378,14 +15409,14 @@ function _regeneratorRuntime() {
|
|
|
15378
15409
|
break;
|
|
15379
15410
|
}
|
|
15380
15411
|
}
|
|
15381
|
-
finallyEntry && (
|
|
15412
|
+
finallyEntry && ("break" === type4 || "continue" === type4) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
15382
15413
|
var record2 = finallyEntry ? finallyEntry.completion : {};
|
|
15383
15414
|
return record2.type = type4, record2.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record2);
|
|
15384
15415
|
},
|
|
15385
15416
|
complete: function complete(record2, afterLoc) {
|
|
15386
|
-
if (record2.type
|
|
15417
|
+
if ("throw" === record2.type)
|
|
15387
15418
|
throw record2.arg;
|
|
15388
|
-
return
|
|
15419
|
+
return "break" === record2.type || "continue" === record2.type ? this.next = record2.arg : "return" === record2.type ? (this.rval = this.arg = record2.arg, this.method = "return", this.next = "end") : "normal" === record2.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
15389
15420
|
},
|
|
15390
15421
|
finish: function finish(finallyLoc) {
|
|
15391
15422
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
@@ -15399,7 +15430,7 @@ function _regeneratorRuntime() {
|
|
|
15399
15430
|
var entry = this.tryEntries[i];
|
|
15400
15431
|
if (entry.tryLoc === tryLoc) {
|
|
15401
15432
|
var record2 = entry.completion;
|
|
15402
|
-
if (record2.type
|
|
15433
|
+
if ("throw" === record2.type) {
|
|
15403
15434
|
var thrown = record2.arg;
|
|
15404
15435
|
resetTryEntry(entry);
|
|
15405
15436
|
}
|
|
@@ -15413,7 +15444,7 @@ function _regeneratorRuntime() {
|
|
|
15413
15444
|
iterator: values(iterable),
|
|
15414
15445
|
resultName,
|
|
15415
15446
|
nextLoc
|
|
15416
|
-
}, this.method
|
|
15447
|
+
}, "next" === this.method && (this.arg = void 0), ContinueSentinel;
|
|
15417
15448
|
}
|
|
15418
15449
|
}, exports;
|
|
15419
15450
|
}
|
|
@@ -16681,7 +16712,7 @@ function isSimilar(source, target) {
|
|
|
16681
16712
|
}
|
|
16682
16713
|
var sourceKeys = Object.keys(source);
|
|
16683
16714
|
var targetKeys = Object.keys(target);
|
|
16684
|
-
var keys2 = new Set([].concat(
|
|
16715
|
+
var keys2 = new Set([].concat(sourceKeys, targetKeys));
|
|
16685
16716
|
return _toConsumableArray(keys2).every(function(key) {
|
|
16686
16717
|
var sourceValue = source[key];
|
|
16687
16718
|
var targetValue = target[key];
|
|
@@ -17145,10 +17176,11 @@ var Field = /* @__PURE__ */ function(_React$Component) {
|
|
|
17145
17176
|
}).then(function() {
|
|
17146
17177
|
var ruleErrors = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : EMPTY_ERRORS;
|
|
17147
17178
|
if (_this.validatePromise === rootPromise) {
|
|
17179
|
+
var _ruleErrors$forEach;
|
|
17148
17180
|
_this.validatePromise = null;
|
|
17149
17181
|
var nextErrors = [];
|
|
17150
17182
|
var nextWarnings = [];
|
|
17151
|
-
ruleErrors.forEach(function(_ref3) {
|
|
17183
|
+
(_ruleErrors$forEach = ruleErrors.forEach) === null || _ruleErrors$forEach === void 0 ? void 0 : _ruleErrors$forEach.call(ruleErrors, function(_ref3) {
|
|
17152
17184
|
var warningOnly = _ref3.rule.warningOnly, _ref3$errors = _ref3.errors, errors = _ref3$errors === void 0 ? EMPTY_ERRORS : _ref3$errors;
|
|
17153
17185
|
if (warningOnly) {
|
|
17154
17186
|
nextWarnings.push.apply(nextWarnings, _toConsumableArray(errors));
|
|
@@ -18237,9 +18269,10 @@ var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate
|
|
|
18237
18269
|
warnings: []
|
|
18238
18270
|
};
|
|
18239
18271
|
}).catch(function(ruleErrors) {
|
|
18272
|
+
var _ruleErrors$forEach;
|
|
18240
18273
|
var mergedErrors = [];
|
|
18241
18274
|
var mergedWarnings = [];
|
|
18242
|
-
ruleErrors.forEach(function(_ref6) {
|
|
18275
|
+
(_ruleErrors$forEach = ruleErrors.forEach) === null || _ruleErrors$forEach === void 0 ? void 0 : _ruleErrors$forEach.call(ruleErrors, function(_ref6) {
|
|
18243
18276
|
var warningOnly = _ref6.rule.warningOnly, errors = _ref6.errors;
|
|
18244
18277
|
if (warningOnly) {
|
|
18245
18278
|
mergedWarnings.push.apply(mergedWarnings, _toConsumableArray(errors));
|
|
@@ -18423,9 +18456,12 @@ var Form$1 = function Form(_ref, ref) {
|
|
|
18423
18456
|
if (!mountRef.current) {
|
|
18424
18457
|
mountRef.current = true;
|
|
18425
18458
|
}
|
|
18426
|
-
React$1.useEffect(
|
|
18427
|
-
|
|
18428
|
-
|
|
18459
|
+
React$1.useEffect(
|
|
18460
|
+
function() {
|
|
18461
|
+
return destroyForm;
|
|
18462
|
+
},
|
|
18463
|
+
[]
|
|
18464
|
+
);
|
|
18429
18465
|
var childrenNode;
|
|
18430
18466
|
var childrenRenderProps = typeof children === "function";
|
|
18431
18467
|
if (childrenRenderProps) {
|
|
@@ -18475,8 +18511,10 @@ function stringify$1(value) {
|
|
|
18475
18511
|
}
|
|
18476
18512
|
}
|
|
18477
18513
|
function useWatch() {
|
|
18478
|
-
var
|
|
18479
|
-
|
|
18514
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
18515
|
+
args[_key] = arguments[_key];
|
|
18516
|
+
}
|
|
18517
|
+
var _args$ = args[0], dependencies = _args$ === void 0 ? [] : _args$, form = args[1];
|
|
18480
18518
|
var _useState = useState(), _useState2 = _slicedToArray(_useState, 2), value = _useState2[0], setValue2 = _useState2[1];
|
|
18481
18519
|
var valueStr = useMemo(function() {
|
|
18482
18520
|
return stringify$1(value);
|
|
@@ -18487,29 +18525,32 @@ function useWatch() {
|
|
|
18487
18525
|
var formInstance = form || fieldContext;
|
|
18488
18526
|
var isValidForm = formInstance && formInstance._init;
|
|
18489
18527
|
{
|
|
18490
|
-
warningOnce$1(isValidForm, "useWatch requires a form instance since it can not auto detect from context.");
|
|
18528
|
+
warningOnce$1(args.length === 2 ? form ? isValidForm : true : isValidForm, "useWatch requires a form instance since it can not auto detect from context.");
|
|
18491
18529
|
}
|
|
18492
18530
|
var namePath = getNamePath(dependencies);
|
|
18493
18531
|
var namePathRef = useRef(namePath);
|
|
18494
18532
|
namePathRef.current = namePath;
|
|
18495
|
-
useEffect(
|
|
18496
|
-
|
|
18497
|
-
|
|
18498
|
-
|
|
18499
|
-
var getFieldsValue = formInstance.getFieldsValue, getInternalHooks3 = formInstance.getInternalHooks;
|
|
18500
|
-
var _getInternalHooks = getInternalHooks3(HOOK_MARK$1), registerWatch = _getInternalHooks.registerWatch;
|
|
18501
|
-
var cancelRegister = registerWatch(function(store) {
|
|
18502
|
-
var newValue = getValue(store, namePathRef.current);
|
|
18503
|
-
var nextValueStr = stringify$1(newValue);
|
|
18504
|
-
if (valueStrRef.current !== nextValueStr) {
|
|
18505
|
-
valueStrRef.current = nextValueStr;
|
|
18506
|
-
setValue2(newValue);
|
|
18533
|
+
useEffect(
|
|
18534
|
+
function() {
|
|
18535
|
+
if (!isValidForm) {
|
|
18536
|
+
return;
|
|
18507
18537
|
}
|
|
18508
|
-
|
|
18509
|
-
|
|
18510
|
-
|
|
18511
|
-
|
|
18512
|
-
|
|
18538
|
+
var getFieldsValue = formInstance.getFieldsValue, getInternalHooks3 = formInstance.getInternalHooks;
|
|
18539
|
+
var _getInternalHooks = getInternalHooks3(HOOK_MARK$1), registerWatch = _getInternalHooks.registerWatch;
|
|
18540
|
+
var cancelRegister = registerWatch(function(store) {
|
|
18541
|
+
var newValue = getValue(store, namePathRef.current);
|
|
18542
|
+
var nextValueStr = stringify$1(newValue);
|
|
18543
|
+
if (valueStrRef.current !== nextValueStr) {
|
|
18544
|
+
valueStrRef.current = nextValueStr;
|
|
18545
|
+
setValue2(newValue);
|
|
18546
|
+
}
|
|
18547
|
+
});
|
|
18548
|
+
var initialValue = getValue(getFieldsValue(), namePathRef.current);
|
|
18549
|
+
setValue2(initialValue);
|
|
18550
|
+
return cancelRegister;
|
|
18551
|
+
},
|
|
18552
|
+
[isValidForm]
|
|
18553
|
+
);
|
|
18513
18554
|
return value;
|
|
18514
18555
|
}
|
|
18515
18556
|
var InternalForm = /* @__PURE__ */ React$1.forwardRef(Form$1);
|
|
@@ -18862,10 +18903,10 @@ var _typeof = { exports: {} };
|
|
|
18862
18903
|
(function(module) {
|
|
18863
18904
|
function _typeof2(obj) {
|
|
18864
18905
|
"@babel/helpers - typeof";
|
|
18865
|
-
return module.exports = _typeof2 = typeof Symbol
|
|
18906
|
+
return module.exports = _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
18866
18907
|
return typeof obj2;
|
|
18867
18908
|
} : function(obj2) {
|
|
18868
|
-
return obj2 && typeof Symbol
|
|
18909
|
+
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
18869
18910
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof2(obj);
|
|
18870
18911
|
}
|
|
18871
18912
|
module.exports = _typeof2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
@@ -19024,9 +19065,9 @@ function isSimpleFunctionComponent(type4) {
|
|
|
19024
19065
|
return typeof type4 === "function" && !shouldConstruct(type4) && type4.defaultProps === void 0;
|
|
19025
19066
|
}
|
|
19026
19067
|
function isSafeSetRefComponent(component) {
|
|
19027
|
-
if (
|
|
19068
|
+
if (_reactIs_17_0_2_reactIs.exports.isFragment(component))
|
|
19028
19069
|
return false;
|
|
19029
|
-
if (
|
|
19070
|
+
if (_reactIs_17_0_2_reactIs.exports.isMemo(component))
|
|
19030
19071
|
return isSafeSetRefComponent(component.type);
|
|
19031
19072
|
return !isSimpleFunctionComponent(component.type);
|
|
19032
19073
|
}
|
|
@@ -19728,7 +19769,7 @@ function getWindow(node) {
|
|
|
19728
19769
|
}
|
|
19729
19770
|
return node;
|
|
19730
19771
|
}
|
|
19731
|
-
function getComputedStyle
|
|
19772
|
+
function getComputedStyle(element) {
|
|
19732
19773
|
return getWindow(element).getComputedStyle(element);
|
|
19733
19774
|
}
|
|
19734
19775
|
function getNodeName(node) {
|
|
@@ -19762,7 +19803,7 @@ function isOverflowElement(element) {
|
|
|
19762
19803
|
overflow,
|
|
19763
19804
|
overflowX,
|
|
19764
19805
|
overflowY
|
|
19765
|
-
} = getComputedStyle
|
|
19806
|
+
} = getComputedStyle(element);
|
|
19766
19807
|
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
|
|
19767
19808
|
}
|
|
19768
19809
|
function isTableElement(element) {
|
|
@@ -19770,7 +19811,7 @@ function isTableElement(element) {
|
|
|
19770
19811
|
}
|
|
19771
19812
|
function isContainingBlock(element) {
|
|
19772
19813
|
const isFirefox = /firefox/i.test(getUAString());
|
|
19773
|
-
const css = getComputedStyle
|
|
19814
|
+
const css = getComputedStyle(element);
|
|
19774
19815
|
return css.transform !== "none" || css.perspective !== "none" || css.contain === "paint" || ["transform", "perspective"].includes(css.willChange) || isFirefox && css.willChange === "filter" || isFirefox && (css.filter ? css.filter !== "none" : false);
|
|
19775
19816
|
}
|
|
19776
19817
|
function isLayoutViewport() {
|
|
@@ -19836,7 +19877,11 @@ function isScaled(element) {
|
|
|
19836
19877
|
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
19837
19878
|
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
19838
19879
|
const documentElement = getDocumentElement(offsetParent);
|
|
19839
|
-
const rect = getBoundingClientRect(
|
|
19880
|
+
const rect = getBoundingClientRect(
|
|
19881
|
+
element,
|
|
19882
|
+
isOffsetParentAnElement && isScaled(offsetParent),
|
|
19883
|
+
strategy === "fixed"
|
|
19884
|
+
);
|
|
19840
19885
|
let scroll = {
|
|
19841
19886
|
scrollLeft: 0,
|
|
19842
19887
|
scrollTop: 0
|
|
@@ -19885,7 +19930,8 @@ function getContainingBlock(element) {
|
|
|
19885
19930
|
if (isContainingBlock(currentNode)) {
|
|
19886
19931
|
return currentNode;
|
|
19887
19932
|
} else {
|
|
19888
|
-
|
|
19933
|
+
const parent = currentNode.parentNode;
|
|
19934
|
+
currentNode = isShadowRoot(parent) ? parent.host : parent;
|
|
19889
19935
|
}
|
|
19890
19936
|
}
|
|
19891
19937
|
return null;
|
|
@@ -19982,7 +20028,7 @@ function getDocumentRect(element) {
|
|
|
19982
20028
|
const height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
19983
20029
|
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
19984
20030
|
const y = -scroll.scrollTop;
|
|
19985
|
-
if (getComputedStyle
|
|
20031
|
+
if (getComputedStyle(body || html).direction === "rtl") {
|
|
19986
20032
|
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
19987
20033
|
}
|
|
19988
20034
|
return {
|
|
@@ -20055,7 +20101,7 @@ function getClientRectFromClippingAncestor(element, clippingParent, strategy) {
|
|
|
20055
20101
|
}
|
|
20056
20102
|
function getClippingAncestors(element) {
|
|
20057
20103
|
const clippingAncestors = getOverflowAncestors(element);
|
|
20058
|
-
const canEscapeClipping = ["absolute", "fixed"].includes(getComputedStyle
|
|
20104
|
+
const canEscapeClipping = ["absolute", "fixed"].includes(getComputedStyle(element).position);
|
|
20059
20105
|
const clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
20060
20106
|
if (!isElement(clipperElement)) {
|
|
20061
20107
|
return [];
|
|
@@ -20110,7 +20156,7 @@ const platform = {
|
|
|
20110
20156
|
};
|
|
20111
20157
|
},
|
|
20112
20158
|
getClientRects: (element) => Array.from(element.getClientRects()),
|
|
20113
|
-
isRTL: (element) => getComputedStyle
|
|
20159
|
+
isRTL: (element) => getComputedStyle(element).direction === "rtl"
|
|
20114
20160
|
};
|
|
20115
20161
|
function autoUpdate(reference, floating, update2, options) {
|
|
20116
20162
|
if (options === void 0) {
|
|
@@ -20331,7 +20377,7 @@ const Popover$1 = forwardRef((p, ref) => {
|
|
|
20331
20377
|
arrowElement.style.setProperty("--arrow-icon-rotate", arrowRotate);
|
|
20332
20378
|
});
|
|
20333
20379
|
}
|
|
20334
|
-
useIsomorphicLayoutEffect$
|
|
20380
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
20335
20381
|
update2();
|
|
20336
20382
|
});
|
|
20337
20383
|
useEffect(() => {
|
|
@@ -21161,7 +21207,7 @@ const PreviewItem = (props) => {
|
|
|
21161
21207
|
}
|
|
21162
21208
|
return "";
|
|
21163
21209
|
}, [url2, file]);
|
|
21164
|
-
useLayoutEffect
|
|
21210
|
+
useLayoutEffect(() => {
|
|
21165
21211
|
return () => {
|
|
21166
21212
|
URL.revokeObjectURL(src);
|
|
21167
21213
|
};
|
|
@@ -21240,14 +21286,14 @@ const ImageUploader = (p) => {
|
|
|
21240
21286
|
const props = mergeProps(defaultProps$y, p);
|
|
21241
21287
|
const [value, setValue2] = usePropsValue(props);
|
|
21242
21288
|
const [tasks, setTasks] = useState([]);
|
|
21243
|
-
useIsomorphicLayoutEffect$
|
|
21289
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
21244
21290
|
setTasks((prev) => prev.filter((task) => {
|
|
21245
21291
|
if (task.url === void 0)
|
|
21246
21292
|
return true;
|
|
21247
21293
|
return !value.some((fileItem) => fileItem.url === task.url);
|
|
21248
21294
|
}));
|
|
21249
21295
|
}, [value]);
|
|
21250
|
-
useIsomorphicLayoutEffect$
|
|
21296
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
21251
21297
|
var _a;
|
|
21252
21298
|
(_a = props.onUploadQueueChange) === null || _a === void 0 ? void 0 : _a.call(props, tasks.map((item) => ({
|
|
21253
21299
|
id: item.id,
|
|
@@ -21729,7 +21775,7 @@ const Input = forwardRef((p, ref) => {
|
|
|
21729
21775
|
}
|
|
21730
21776
|
(_a = props.onKeyDown) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
21731
21777
|
};
|
|
21732
|
-
useIsomorphicLayoutEffect$
|
|
21778
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
21733
21779
|
var _a;
|
|
21734
21780
|
if (!props.enterKeyHint)
|
|
21735
21781
|
return;
|
|
@@ -22092,7 +22138,6 @@ const index$7 = attachPropertiesToComponent(Modal, {
|
|
|
22092
22138
|
const navBar = "";
|
|
22093
22139
|
const classPrefix$y = `adm-nav-bar`;
|
|
22094
22140
|
const defaultProps$s = {
|
|
22095
|
-
back: "",
|
|
22096
22141
|
backArrow: true
|
|
22097
22142
|
};
|
|
22098
22143
|
const NavBar = (p) => {
|
|
@@ -22769,17 +22814,21 @@ const Group = (p) => {
|
|
|
22769
22814
|
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, v);
|
|
22770
22815
|
}
|
|
22771
22816
|
});
|
|
22772
|
-
return React__default.createElement(
|
|
22773
|
-
|
|
22774
|
-
|
|
22775
|
-
|
|
22776
|
-
|
|
22777
|
-
|
|
22778
|
-
|
|
22779
|
-
|
|
22780
|
-
|
|
22781
|
-
|
|
22782
|
-
|
|
22817
|
+
return React__default.createElement(
|
|
22818
|
+
RadioGroupContext.Provider,
|
|
22819
|
+
{
|
|
22820
|
+
value: {
|
|
22821
|
+
value: value === null ? [] : [value],
|
|
22822
|
+
check: (v) => {
|
|
22823
|
+
setValue2(v);
|
|
22824
|
+
},
|
|
22825
|
+
uncheck: () => {
|
|
22826
|
+
},
|
|
22827
|
+
disabled: props.disabled
|
|
22828
|
+
}
|
|
22829
|
+
},
|
|
22830
|
+
props.children
|
|
22831
|
+
);
|
|
22783
22832
|
};
|
|
22784
22833
|
const classPrefix$q = `adm-radio`;
|
|
22785
22834
|
const defaultProps$k = {
|
|
@@ -23487,178 +23536,6 @@ const Thumb = (props) => {
|
|
|
23487
23536
|
mode: "dark"
|
|
23488
23537
|
}, thumbElement) : thumbElement);
|
|
23489
23538
|
};
|
|
23490
|
-
const classPrefix$f = `adm-slider`;
|
|
23491
|
-
const defaultProps$e = {
|
|
23492
|
-
min: 0,
|
|
23493
|
-
max: 100,
|
|
23494
|
-
step: 1,
|
|
23495
|
-
ticks: false,
|
|
23496
|
-
range: false,
|
|
23497
|
-
disabled: false,
|
|
23498
|
-
popover: false,
|
|
23499
|
-
residentPopover: false
|
|
23500
|
-
};
|
|
23501
|
-
const Slider = (p) => {
|
|
23502
|
-
var _a;
|
|
23503
|
-
const props = mergeProps(defaultProps$e, p);
|
|
23504
|
-
const {
|
|
23505
|
-
min: min2,
|
|
23506
|
-
max: max2,
|
|
23507
|
-
disabled,
|
|
23508
|
-
marks,
|
|
23509
|
-
ticks,
|
|
23510
|
-
step,
|
|
23511
|
-
icon
|
|
23512
|
-
} = props;
|
|
23513
|
-
function sortValue(val) {
|
|
23514
|
-
return val.sort((a, b) => a - b);
|
|
23515
|
-
}
|
|
23516
|
-
function convertValue(value) {
|
|
23517
|
-
return props.range ? value : [props.min, value];
|
|
23518
|
-
}
|
|
23519
|
-
function reverseValue(value) {
|
|
23520
|
-
return props.range ? value : value[1];
|
|
23521
|
-
}
|
|
23522
|
-
function onAfterChange(value) {
|
|
23523
|
-
var _a2;
|
|
23524
|
-
(_a2 = props.onAfterChange) === null || _a2 === void 0 ? void 0 : _a2.call(props, reverseValue(value));
|
|
23525
|
-
}
|
|
23526
|
-
let propsValue = props.value;
|
|
23527
|
-
if (props.range && typeof props.value === "number") {
|
|
23528
|
-
devWarning("Slider", "When `range` prop is enabled, the `value` prop should be an array, like: [0, 0]");
|
|
23529
|
-
propsValue = [0, props.value];
|
|
23530
|
-
}
|
|
23531
|
-
const [rawValue, setRawValue] = usePropsValue({
|
|
23532
|
-
value: propsValue,
|
|
23533
|
-
defaultValue: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : props.range ? [min2, min2] : min2,
|
|
23534
|
-
onChange: props.onChange
|
|
23535
|
-
});
|
|
23536
|
-
const sliderValue = sortValue(convertValue(rawValue));
|
|
23537
|
-
function setSliderValue(value) {
|
|
23538
|
-
const next = sortValue(value);
|
|
23539
|
-
const current = sliderValue;
|
|
23540
|
-
if (next[0] === current[0] && next[1] === current[1])
|
|
23541
|
-
return;
|
|
23542
|
-
setRawValue(reverseValue(next));
|
|
23543
|
-
}
|
|
23544
|
-
const trackRef = useRef(null);
|
|
23545
|
-
const fillSize = `${100 * (sliderValue[1] - sliderValue[0]) / (max2 - min2)}%`;
|
|
23546
|
-
const fillStart = `${100 * (sliderValue[0] - min2) / (max2 - min2)}%`;
|
|
23547
|
-
const pointList = useMemo(() => {
|
|
23548
|
-
if (marks) {
|
|
23549
|
-
return Object.keys(marks).map(parseFloat).sort((a, b) => a - b);
|
|
23550
|
-
} else {
|
|
23551
|
-
const points = [];
|
|
23552
|
-
for (let i = min2; i <= max2; i += step) {
|
|
23553
|
-
points.push(i);
|
|
23554
|
-
}
|
|
23555
|
-
return points;
|
|
23556
|
-
}
|
|
23557
|
-
}, [marks, ticks, step, min2, max2]);
|
|
23558
|
-
function getValueByPosition(position) {
|
|
23559
|
-
const newPosition = position < min2 ? min2 : position > max2 ? max2 : position;
|
|
23560
|
-
let value = min2;
|
|
23561
|
-
if (pointList.length) {
|
|
23562
|
-
value = nearest(pointList, newPosition);
|
|
23563
|
-
} else {
|
|
23564
|
-
const lengthPerStep = 100 / ((max2 - min2) / step);
|
|
23565
|
-
const steps2 = Math.round(newPosition / lengthPerStep);
|
|
23566
|
-
value = steps2 * lengthPerStep * (max2 - min2) * 0.01 + min2;
|
|
23567
|
-
}
|
|
23568
|
-
return value;
|
|
23569
|
-
}
|
|
23570
|
-
const dragLockRef = useRef(0);
|
|
23571
|
-
const onTrackClick = (event) => {
|
|
23572
|
-
if (dragLockRef.current > 0)
|
|
23573
|
-
return;
|
|
23574
|
-
event.stopPropagation();
|
|
23575
|
-
if (disabled)
|
|
23576
|
-
return;
|
|
23577
|
-
const track = trackRef.current;
|
|
23578
|
-
if (!track)
|
|
23579
|
-
return;
|
|
23580
|
-
const sliderOffsetLeft = track.getBoundingClientRect().left;
|
|
23581
|
-
const position = (event.clientX - sliderOffsetLeft) / Math.ceil(track.offsetWidth) * (max2 - min2) + min2;
|
|
23582
|
-
const targetValue = getValueByPosition(position);
|
|
23583
|
-
let nextSliderValue;
|
|
23584
|
-
if (props.range) {
|
|
23585
|
-
if (Math.abs(targetValue - sliderValue[0]) > Math.abs(targetValue - sliderValue[1])) {
|
|
23586
|
-
nextSliderValue = [sliderValue[0], targetValue];
|
|
23587
|
-
} else {
|
|
23588
|
-
nextSliderValue = [targetValue, sliderValue[1]];
|
|
23589
|
-
}
|
|
23590
|
-
} else {
|
|
23591
|
-
nextSliderValue = [props.min, targetValue];
|
|
23592
|
-
}
|
|
23593
|
-
setSliderValue(nextSliderValue);
|
|
23594
|
-
onAfterChange(nextSliderValue);
|
|
23595
|
-
};
|
|
23596
|
-
const valueBeforeDragRef = useRef();
|
|
23597
|
-
const renderThumb = (index2) => {
|
|
23598
|
-
return React__default.createElement(Thumb, {
|
|
23599
|
-
key: index2,
|
|
23600
|
-
value: sliderValue[index2],
|
|
23601
|
-
min: min2,
|
|
23602
|
-
max: max2,
|
|
23603
|
-
disabled,
|
|
23604
|
-
trackRef,
|
|
23605
|
-
icon,
|
|
23606
|
-
popover: props.popover,
|
|
23607
|
-
residentPopover: props.residentPopover,
|
|
23608
|
-
onDrag: (position, first, last) => {
|
|
23609
|
-
if (first) {
|
|
23610
|
-
dragLockRef.current += 1;
|
|
23611
|
-
valueBeforeDragRef.current = sliderValue;
|
|
23612
|
-
}
|
|
23613
|
-
const val = getValueByPosition(position);
|
|
23614
|
-
const valueBeforeDrag = valueBeforeDragRef.current;
|
|
23615
|
-
if (!valueBeforeDrag)
|
|
23616
|
-
return;
|
|
23617
|
-
const next = [...valueBeforeDrag];
|
|
23618
|
-
next[index2] = val;
|
|
23619
|
-
setSliderValue(next);
|
|
23620
|
-
if (last) {
|
|
23621
|
-
onAfterChange(next);
|
|
23622
|
-
window.setTimeout(() => {
|
|
23623
|
-
dragLockRef.current -= 1;
|
|
23624
|
-
}, 100);
|
|
23625
|
-
}
|
|
23626
|
-
},
|
|
23627
|
-
"aria-label": props["aria-label"]
|
|
23628
|
-
});
|
|
23629
|
-
};
|
|
23630
|
-
return withNativeProps(props, React__default.createElement("div", {
|
|
23631
|
-
className: classNames(classPrefix$f, {
|
|
23632
|
-
[`${classPrefix$f}-disabled`]: disabled
|
|
23633
|
-
})
|
|
23634
|
-
}, React__default.createElement("div", {
|
|
23635
|
-
className: `${classPrefix$f}-track-container`,
|
|
23636
|
-
onClick: onTrackClick
|
|
23637
|
-
}, React__default.createElement("div", {
|
|
23638
|
-
className: `${classPrefix$f}-track`,
|
|
23639
|
-
onClick: onTrackClick,
|
|
23640
|
-
ref: trackRef
|
|
23641
|
-
}, React__default.createElement("div", {
|
|
23642
|
-
className: `${classPrefix$f}-fill`,
|
|
23643
|
-
style: {
|
|
23644
|
-
width: fillSize,
|
|
23645
|
-
left: fillStart
|
|
23646
|
-
}
|
|
23647
|
-
}), props.ticks && React__default.createElement(Ticks, {
|
|
23648
|
-
points: pointList,
|
|
23649
|
-
min: min2,
|
|
23650
|
-
max: max2,
|
|
23651
|
-
lowerBound: sliderValue[0],
|
|
23652
|
-
upperBound: sliderValue[1]
|
|
23653
|
-
}), props.range && renderThumb(0), renderThumb(1))), marks && React__default.createElement(Marks, {
|
|
23654
|
-
min: min2,
|
|
23655
|
-
max: max2,
|
|
23656
|
-
marks,
|
|
23657
|
-
lowerBound: sliderValue[0],
|
|
23658
|
-
upperBound: sliderValue[1]
|
|
23659
|
-
})));
|
|
23660
|
-
};
|
|
23661
|
-
const stepper = "";
|
|
23662
23539
|
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;
|
|
23663
23540
|
function _Big_() {
|
|
23664
23541
|
function Big2(n) {
|
|
@@ -24167,6 +24044,182 @@ P.valueOf = function() {
|
|
|
24167
24044
|
return stringify(x, x.e <= Big2.NE || x.e >= Big2.PE, true);
|
|
24168
24045
|
};
|
|
24169
24046
|
var Big = _Big_();
|
|
24047
|
+
const classPrefix$f = `adm-slider`;
|
|
24048
|
+
const defaultProps$e = {
|
|
24049
|
+
min: 0,
|
|
24050
|
+
max: 100,
|
|
24051
|
+
step: 1,
|
|
24052
|
+
ticks: false,
|
|
24053
|
+
range: false,
|
|
24054
|
+
disabled: false,
|
|
24055
|
+
popover: false,
|
|
24056
|
+
residentPopover: false
|
|
24057
|
+
};
|
|
24058
|
+
const Slider = (p) => {
|
|
24059
|
+
var _a;
|
|
24060
|
+
const props = mergeProps(defaultProps$e, p);
|
|
24061
|
+
const {
|
|
24062
|
+
min: min2,
|
|
24063
|
+
max: max2,
|
|
24064
|
+
disabled,
|
|
24065
|
+
marks,
|
|
24066
|
+
ticks,
|
|
24067
|
+
step,
|
|
24068
|
+
icon
|
|
24069
|
+
} = props;
|
|
24070
|
+
function sortValue(val) {
|
|
24071
|
+
return val.sort((a, b) => a - b);
|
|
24072
|
+
}
|
|
24073
|
+
function convertValue(value) {
|
|
24074
|
+
return props.range ? value : [props.min, value];
|
|
24075
|
+
}
|
|
24076
|
+
function reverseValue(value) {
|
|
24077
|
+
const mergedDecimalLen = Math.max(getDecimalLen(step), getDecimalLen(value[0]), getDecimalLen(value[1]));
|
|
24078
|
+
return props.range ? value.map((v) => Big(Big(v).toFixed(mergedDecimalLen)).toNumber()) : Big(Big(value[1]).toFixed(mergedDecimalLen)).toNumber();
|
|
24079
|
+
}
|
|
24080
|
+
function getDecimalLen(n) {
|
|
24081
|
+
return (`${n}`.split(".")[1] || "").length;
|
|
24082
|
+
}
|
|
24083
|
+
function onAfterChange(value) {
|
|
24084
|
+
var _a2;
|
|
24085
|
+
(_a2 = props.onAfterChange) === null || _a2 === void 0 ? void 0 : _a2.call(props, reverseValue(value));
|
|
24086
|
+
}
|
|
24087
|
+
let propsValue = props.value;
|
|
24088
|
+
if (props.range && typeof props.value === "number") {
|
|
24089
|
+
devWarning("Slider", "When `range` prop is enabled, the `value` prop should be an array, like: [0, 0]");
|
|
24090
|
+
propsValue = [0, props.value];
|
|
24091
|
+
}
|
|
24092
|
+
const [rawValue, setRawValue] = usePropsValue({
|
|
24093
|
+
value: propsValue,
|
|
24094
|
+
defaultValue: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : props.range ? [min2, min2] : min2,
|
|
24095
|
+
onChange: props.onChange
|
|
24096
|
+
});
|
|
24097
|
+
const sliderValue = sortValue(convertValue(rawValue));
|
|
24098
|
+
function setSliderValue(value) {
|
|
24099
|
+
const next = sortValue(value);
|
|
24100
|
+
const current = sliderValue;
|
|
24101
|
+
if (next[0] === current[0] && next[1] === current[1])
|
|
24102
|
+
return;
|
|
24103
|
+
setRawValue(reverseValue(next));
|
|
24104
|
+
}
|
|
24105
|
+
const trackRef = useRef(null);
|
|
24106
|
+
const fillSize = `${100 * (sliderValue[1] - sliderValue[0]) / (max2 - min2)}%`;
|
|
24107
|
+
const fillStart = `${100 * (sliderValue[0] - min2) / (max2 - min2)}%`;
|
|
24108
|
+
const pointList = useMemo(() => {
|
|
24109
|
+
if (marks) {
|
|
24110
|
+
return Object.keys(marks).map(parseFloat).sort((a, b) => a - b);
|
|
24111
|
+
} else {
|
|
24112
|
+
const points = [];
|
|
24113
|
+
for (let i = Big(min2); i.lt(max2); i = i.plus(step)) {
|
|
24114
|
+
points.push(i.toNumber());
|
|
24115
|
+
}
|
|
24116
|
+
return points;
|
|
24117
|
+
}
|
|
24118
|
+
}, [marks, ticks, step, min2, max2]);
|
|
24119
|
+
function getValueByPosition(position) {
|
|
24120
|
+
const newPosition = position < min2 ? min2 : position > max2 ? max2 : position;
|
|
24121
|
+
let value = min2;
|
|
24122
|
+
if (pointList.length) {
|
|
24123
|
+
value = nearest(pointList, newPosition);
|
|
24124
|
+
} else {
|
|
24125
|
+
const lengthPerStep = 100 / ((max2 - min2) / step);
|
|
24126
|
+
const steps2 = Math.round(newPosition / lengthPerStep);
|
|
24127
|
+
value = steps2 * lengthPerStep * (max2 - min2) * 0.01 + min2;
|
|
24128
|
+
}
|
|
24129
|
+
return value;
|
|
24130
|
+
}
|
|
24131
|
+
const dragLockRef = useRef(0);
|
|
24132
|
+
const onTrackClick = (event) => {
|
|
24133
|
+
if (dragLockRef.current > 0)
|
|
24134
|
+
return;
|
|
24135
|
+
event.stopPropagation();
|
|
24136
|
+
if (disabled)
|
|
24137
|
+
return;
|
|
24138
|
+
const track = trackRef.current;
|
|
24139
|
+
if (!track)
|
|
24140
|
+
return;
|
|
24141
|
+
const sliderOffsetLeft = track.getBoundingClientRect().left;
|
|
24142
|
+
const position = (event.clientX - sliderOffsetLeft) / Math.ceil(track.offsetWidth) * (max2 - min2) + min2;
|
|
24143
|
+
const targetValue = getValueByPosition(position);
|
|
24144
|
+
let nextSliderValue;
|
|
24145
|
+
if (props.range) {
|
|
24146
|
+
if (Math.abs(targetValue - sliderValue[0]) > Math.abs(targetValue - sliderValue[1])) {
|
|
24147
|
+
nextSliderValue = [sliderValue[0], targetValue];
|
|
24148
|
+
} else {
|
|
24149
|
+
nextSliderValue = [targetValue, sliderValue[1]];
|
|
24150
|
+
}
|
|
24151
|
+
} else {
|
|
24152
|
+
nextSliderValue = [props.min, targetValue];
|
|
24153
|
+
}
|
|
24154
|
+
setSliderValue(nextSliderValue);
|
|
24155
|
+
onAfterChange(nextSliderValue);
|
|
24156
|
+
};
|
|
24157
|
+
const valueBeforeDragRef = useRef();
|
|
24158
|
+
const renderThumb = (index2) => {
|
|
24159
|
+
return React__default.createElement(Thumb, {
|
|
24160
|
+
key: index2,
|
|
24161
|
+
value: sliderValue[index2],
|
|
24162
|
+
min: min2,
|
|
24163
|
+
max: max2,
|
|
24164
|
+
disabled,
|
|
24165
|
+
trackRef,
|
|
24166
|
+
icon,
|
|
24167
|
+
popover: props.popover,
|
|
24168
|
+
residentPopover: props.residentPopover,
|
|
24169
|
+
onDrag: (position, first, last) => {
|
|
24170
|
+
if (first) {
|
|
24171
|
+
dragLockRef.current += 1;
|
|
24172
|
+
valueBeforeDragRef.current = sliderValue;
|
|
24173
|
+
}
|
|
24174
|
+
const val = getValueByPosition(position);
|
|
24175
|
+
const valueBeforeDrag = valueBeforeDragRef.current;
|
|
24176
|
+
if (!valueBeforeDrag)
|
|
24177
|
+
return;
|
|
24178
|
+
const next = [...valueBeforeDrag];
|
|
24179
|
+
next[index2] = val;
|
|
24180
|
+
setSliderValue(next);
|
|
24181
|
+
if (last) {
|
|
24182
|
+
onAfterChange(next);
|
|
24183
|
+
window.setTimeout(() => {
|
|
24184
|
+
dragLockRef.current -= 1;
|
|
24185
|
+
}, 100);
|
|
24186
|
+
}
|
|
24187
|
+
},
|
|
24188
|
+
"aria-label": props["aria-label"]
|
|
24189
|
+
});
|
|
24190
|
+
};
|
|
24191
|
+
return withNativeProps(props, React__default.createElement("div", {
|
|
24192
|
+
className: classNames(classPrefix$f, {
|
|
24193
|
+
[`${classPrefix$f}-disabled`]: disabled
|
|
24194
|
+
})
|
|
24195
|
+
}, React__default.createElement("div", {
|
|
24196
|
+
className: `${classPrefix$f}-track-container`,
|
|
24197
|
+
onClick: onTrackClick
|
|
24198
|
+
}, React__default.createElement("div", {
|
|
24199
|
+
className: `${classPrefix$f}-track`,
|
|
24200
|
+
onClick: onTrackClick,
|
|
24201
|
+
ref: trackRef
|
|
24202
|
+
}, React__default.createElement("div", {
|
|
24203
|
+
className: `${classPrefix$f}-fill`,
|
|
24204
|
+
style: {
|
|
24205
|
+
width: fillSize,
|
|
24206
|
+
left: fillStart
|
|
24207
|
+
}
|
|
24208
|
+
}), props.ticks && React__default.createElement(Ticks, {
|
|
24209
|
+
points: pointList,
|
|
24210
|
+
min: min2,
|
|
24211
|
+
max: max2,
|
|
24212
|
+
lowerBound: sliderValue[0],
|
|
24213
|
+
upperBound: sliderValue[1]
|
|
24214
|
+
}), props.range && renderThumb(0), renderThumb(1))), marks && React__default.createElement(Marks, {
|
|
24215
|
+
min: min2,
|
|
24216
|
+
max: max2,
|
|
24217
|
+
marks,
|
|
24218
|
+
lowerBound: sliderValue[0],
|
|
24219
|
+
upperBound: sliderValue[1]
|
|
24220
|
+
})));
|
|
24221
|
+
};
|
|
24222
|
+
const stepper = "";
|
|
24170
24223
|
const classPrefix$e = `adm-stepper`;
|
|
24171
24224
|
const defaultProps$d = {
|
|
24172
24225
|
defaultValue: 0,
|
|
@@ -24767,7 +24820,7 @@ const Swiper = forwardRef(staged_1((p, ref) => {
|
|
|
24767
24820
|
swipeNext,
|
|
24768
24821
|
swipePrev
|
|
24769
24822
|
}));
|
|
24770
|
-
useIsomorphicLayoutEffect$
|
|
24823
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
24771
24824
|
const maxIndex = validChildren.length - 1;
|
|
24772
24825
|
if (current > maxIndex) {
|
|
24773
24826
|
swipeTo(maxIndex, true);
|
|
@@ -25090,7 +25143,7 @@ const TextArea = forwardRef((p, ref) => {
|
|
|
25090
25143
|
return nativeTextAreaRef.current;
|
|
25091
25144
|
}
|
|
25092
25145
|
}));
|
|
25093
|
-
useIsomorphicLayoutEffect$
|
|
25146
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
25094
25147
|
if (!autoSize)
|
|
25095
25148
|
return;
|
|
25096
25149
|
const textArea2 = nativeTextAreaRef.current;
|
|
@@ -25650,7 +25703,7 @@ const VirtualInput = forwardRef((p, ref) => {
|
|
|
25650
25703
|
return;
|
|
25651
25704
|
content.scrollLeft = content.clientWidth;
|
|
25652
25705
|
}
|
|
25653
|
-
useIsomorphicLayoutEffect$
|
|
25706
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
25654
25707
|
scrollToEnd();
|
|
25655
25708
|
}, [value]);
|
|
25656
25709
|
useEffect(() => {
|