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
|
@@ -374,11 +374,11 @@ function attachPropertiesToComponent(component, properties) {
|
|
|
374
374
|
return ret;
|
|
375
375
|
}
|
|
376
376
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
377
|
-
var
|
|
377
|
+
var _classnames_2_3_2_classnames = { exports: {} };
|
|
378
378
|
/*!
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
379
|
+
Copyright (c) 2018 Jed Watson.
|
|
380
|
+
Licensed under the MIT License (MIT), see
|
|
381
|
+
http://jedwatson.github.io/classnames
|
|
382
382
|
*/
|
|
383
383
|
(function(module2) {
|
|
384
384
|
(function() {
|
|
@@ -400,14 +400,14 @@ var classnames = { exports: {} };
|
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
} else if (argType === "object") {
|
|
403
|
-
if (arg.toString
|
|
404
|
-
for (var key in arg) {
|
|
405
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
406
|
-
classes.push(key);
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
} else {
|
|
403
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
410
404
|
classes.push(arg.toString());
|
|
405
|
+
continue;
|
|
406
|
+
}
|
|
407
|
+
for (var key in arg) {
|
|
408
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
409
|
+
classes.push(key);
|
|
410
|
+
}
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
413
|
}
|
|
@@ -420,8 +420,8 @@ var classnames = { exports: {} };
|
|
|
420
420
|
window.classNames = classNames2;
|
|
421
421
|
}
|
|
422
422
|
})();
|
|
423
|
-
})(
|
|
424
|
-
const classNames =
|
|
423
|
+
})(_classnames_2_3_2_classnames);
|
|
424
|
+
const classNames = _classnames_2_3_2_classnames.exports;
|
|
425
425
|
function withNativeProps(props, element) {
|
|
426
426
|
const p = Object.assign({}, element.props);
|
|
427
427
|
if (props.className) {
|
|
@@ -539,7 +539,9 @@ var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
|
539
539
|
var funcProto$1 = Function.prototype, objectProto$c = Object.prototype;
|
|
540
540
|
var funcToString$1 = funcProto$1.toString;
|
|
541
541
|
var hasOwnProperty$a = objectProto$c.hasOwnProperty;
|
|
542
|
-
var reIsNative = RegExp(
|
|
542
|
+
var reIsNative = RegExp(
|
|
543
|
+
"^" + funcToString$1.call(hasOwnProperty$a).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
544
|
+
);
|
|
543
545
|
function baseIsNative$1(value) {
|
|
544
546
|
if (!isObject$9(value) || isMasked(value)) {
|
|
545
547
|
return false;
|
|
@@ -917,8 +919,10 @@ var isFunction$1 = function isFunction(value) {
|
|
|
917
919
|
var isNumber = function isNumber2(value) {
|
|
918
920
|
return typeof value === "number";
|
|
919
921
|
};
|
|
922
|
+
var isDev = true;
|
|
923
|
+
const isDev$1 = isDev;
|
|
920
924
|
function useMemoizedFn(fn) {
|
|
921
|
-
{
|
|
925
|
+
if (isDev$1) {
|
|
922
926
|
if (!isFunction$1(fn)) {
|
|
923
927
|
console.error("useMemoizedFn expected parameter is a function, got " + typeof fn);
|
|
924
928
|
}
|
|
@@ -955,7 +959,7 @@ function useLatest(value) {
|
|
|
955
959
|
return ref;
|
|
956
960
|
}
|
|
957
961
|
var useUnmount = function useUnmount2(fn) {
|
|
958
|
-
{
|
|
962
|
+
if (isDev$1) {
|
|
959
963
|
if (!isFunction$1(fn)) {
|
|
960
964
|
console.error("useUnmount expected parameter is a function, got " + typeof fn);
|
|
961
965
|
}
|
|
@@ -1124,7 +1128,7 @@ function throttle$1(func, wait, options) {
|
|
|
1124
1128
|
}
|
|
1125
1129
|
var throttle_1 = throttle$1;
|
|
1126
1130
|
var useMount = function useMount2(fn) {
|
|
1127
|
-
{
|
|
1131
|
+
if (isDev$1) {
|
|
1128
1132
|
if (!isFunction$1(fn)) {
|
|
1129
1133
|
console.error('useMount: parameter `fn` expected to be a function, but got "' + typeof fn + '".');
|
|
1130
1134
|
}
|
|
@@ -1294,7 +1298,7 @@ var dayjs_min = { exports: {} };
|
|
|
1294
1298
|
}, p: function(t2) {
|
|
1295
1299
|
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$/, "");
|
|
1296
1300
|
}, u: function(t2) {
|
|
1297
|
-
return
|
|
1301
|
+
return void 0 === t2;
|
|
1298
1302
|
} }, v = "en", D = {};
|
|
1299
1303
|
D[v] = M;
|
|
1300
1304
|
var p = function(t2) {
|
|
@@ -1303,7 +1307,7 @@ var dayjs_min = { exports: {} };
|
|
|
1303
1307
|
var i2;
|
|
1304
1308
|
if (!e2)
|
|
1305
1309
|
return v;
|
|
1306
|
-
if (typeof e2
|
|
1310
|
+
if ("string" == typeof e2) {
|
|
1307
1311
|
var s2 = e2.toLowerCase();
|
|
1308
1312
|
D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
|
|
1309
1313
|
var u2 = e2.split("-");
|
|
@@ -1317,7 +1321,7 @@ var dayjs_min = { exports: {} };
|
|
|
1317
1321
|
}, w = function(t2, e2) {
|
|
1318
1322
|
if (p(t2))
|
|
1319
1323
|
return t2.clone();
|
|
1320
|
-
var n2 = typeof e2
|
|
1324
|
+
var n2 = "object" == typeof e2 ? e2 : {};
|
|
1321
1325
|
return n2.date = t2, n2.args = arguments, new _(n2);
|
|
1322
1326
|
}, O = g;
|
|
1323
1327
|
O.l = S, O.i = p, O.w = function(t2, e2) {
|
|
@@ -1331,13 +1335,13 @@ var dayjs_min = { exports: {} };
|
|
|
1331
1335
|
return m2.parse = function(t2) {
|
|
1332
1336
|
this.$d = function(t3) {
|
|
1333
1337
|
var e2 = t3.date, n2 = t3.utc;
|
|
1334
|
-
if (
|
|
1338
|
+
if (null === e2)
|
|
1335
1339
|
return new Date(NaN);
|
|
1336
1340
|
if (O.u(e2))
|
|
1337
1341
|
return new Date();
|
|
1338
1342
|
if (e2 instanceof Date)
|
|
1339
1343
|
return new Date(e2);
|
|
1340
|
-
if (typeof e2
|
|
1344
|
+
if ("string" == typeof e2 && !/Z$/i.test(e2)) {
|
|
1341
1345
|
var r2 = e2.match(l);
|
|
1342
1346
|
if (r2) {
|
|
1343
1347
|
var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
|
|
@@ -1511,7 +1515,7 @@ var __spread$2 = globalThis && globalThis.__spread || function() {
|
|
|
1511
1515
|
};
|
|
1512
1516
|
function useDebounceFn(fn, options) {
|
|
1513
1517
|
var _a;
|
|
1514
|
-
{
|
|
1518
|
+
if (isDev$1) {
|
|
1515
1519
|
if (!isFunction$1(fn)) {
|
|
1516
1520
|
console.error("useDebounceFn expected parameter is a function, got " + typeof fn);
|
|
1517
1521
|
}
|
|
@@ -2159,11 +2163,15 @@ var isEqual_1 = isEqual$1;
|
|
|
2159
2163
|
}
|
|
2160
2164
|
if ("IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype) {
|
|
2161
2165
|
if (!("isIntersecting" in window.IntersectionObserverEntry.prototype)) {
|
|
2162
|
-
Object.defineProperty(
|
|
2163
|
-
|
|
2164
|
-
|
|
2166
|
+
Object.defineProperty(
|
|
2167
|
+
window.IntersectionObserverEntry.prototype,
|
|
2168
|
+
"isIntersecting",
|
|
2169
|
+
{
|
|
2170
|
+
get: function() {
|
|
2171
|
+
return this.intersectionRatio > 0;
|
|
2172
|
+
}
|
|
2165
2173
|
}
|
|
2166
|
-
|
|
2174
|
+
);
|
|
2167
2175
|
}
|
|
2168
2176
|
return;
|
|
2169
2177
|
}
|
|
@@ -2211,7 +2219,10 @@ var isEqual_1 = isEqual$1;
|
|
|
2211
2219
|
if (options.root && options.root.nodeType != 1 && options.root.nodeType != 9) {
|
|
2212
2220
|
throw new Error("root must be a Document or Element");
|
|
2213
2221
|
}
|
|
2214
|
-
this._checkForIntersections = throttle2(
|
|
2222
|
+
this._checkForIntersections = throttle2(
|
|
2223
|
+
this._checkForIntersections.bind(this),
|
|
2224
|
+
this.THROTTLE_TIMEOUT
|
|
2225
|
+
);
|
|
2215
2226
|
this._callback = callback;
|
|
2216
2227
|
this._observationTargets = [];
|
|
2217
2228
|
this._queuedEntries = [];
|
|
@@ -2772,8 +2783,8 @@ function useInViewport(target, options) {
|
|
|
2772
2783
|
}, [], target);
|
|
2773
2784
|
return [state, ratio];
|
|
2774
2785
|
}
|
|
2775
|
-
var useIsomorphicLayoutEffect = isBrowser$3 ? React$1.useLayoutEffect : React$1.useEffect;
|
|
2776
|
-
const useIsomorphicLayoutEffect$
|
|
2786
|
+
var useIsomorphicLayoutEffect$1 = isBrowser$3 ? React$1.useLayoutEffect : React$1.useEffect;
|
|
2787
|
+
const useIsomorphicLayoutEffect$2 = useIsomorphicLayoutEffect$1;
|
|
2777
2788
|
var __awaiter = globalThis && globalThis.__awaiter || function(thisArg, _arguments, P2, generator) {
|
|
2778
2789
|
function adopt(value) {
|
|
2779
2790
|
return value instanceof P2 ? value : new P2(function(resolve) {
|
|
@@ -3571,7 +3582,7 @@ var __spread = globalThis && globalThis.__spread || function() {
|
|
|
3571
3582
|
};
|
|
3572
3583
|
function useThrottleFn(fn, options) {
|
|
3573
3584
|
var _a;
|
|
3574
|
-
{
|
|
3585
|
+
if (isDev$1) {
|
|
3575
3586
|
if (!isFunction$1(fn)) {
|
|
3576
3587
|
console.error("useThrottleFn expected parameter is a function, got " + typeof fn);
|
|
3577
3588
|
}
|
|
@@ -3713,6 +3724,16 @@ if (canUseDom) {
|
|
|
3713
3724
|
}
|
|
3714
3725
|
let totalLockCount = 0;
|
|
3715
3726
|
const BODY_LOCK_CLASS = "adm-overflow-hidden";
|
|
3727
|
+
function getScrollableElement(el) {
|
|
3728
|
+
let current = el === null || el === void 0 ? void 0 : el.parentElement;
|
|
3729
|
+
while (current) {
|
|
3730
|
+
if (current.clientHeight < current.scrollHeight) {
|
|
3731
|
+
return current;
|
|
3732
|
+
}
|
|
3733
|
+
current = current.parentElement;
|
|
3734
|
+
}
|
|
3735
|
+
return null;
|
|
3736
|
+
}
|
|
3716
3737
|
function useLockScroll(rootRef, shouldLock) {
|
|
3717
3738
|
const touch = useTouch();
|
|
3718
3739
|
const onTouchMove = (event) => {
|
|
@@ -3721,6 +3742,13 @@ function useLockScroll(rootRef, shouldLock) {
|
|
|
3721
3742
|
const el = getScrollParent(event.target, rootRef.current);
|
|
3722
3743
|
if (!el)
|
|
3723
3744
|
return;
|
|
3745
|
+
if (shouldLock === "strict") {
|
|
3746
|
+
const scrollableParent = getScrollableElement(event.target);
|
|
3747
|
+
if (scrollableParent === document.body || scrollableParent === document.documentElement) {
|
|
3748
|
+
event.preventDefault();
|
|
3749
|
+
return;
|
|
3750
|
+
}
|
|
3751
|
+
}
|
|
3724
3752
|
const {
|
|
3725
3753
|
scrollHeight,
|
|
3726
3754
|
offsetHeight,
|
|
@@ -3800,9 +3828,9 @@ let findTimeout = (time) => ~(~timeouts.findIndex((t) => t.time > time) || ~time
|
|
|
3800
3828
|
raf.cancel = (fn) => {
|
|
3801
3829
|
onStartQueue.delete(fn);
|
|
3802
3830
|
onFrameQueue.delete(fn);
|
|
3831
|
+
onFinishQueue.delete(fn);
|
|
3803
3832
|
updateQueue.delete(fn);
|
|
3804
3833
|
writeQueue.delete(fn);
|
|
3805
|
-
onFinishQueue.delete(fn);
|
|
3806
3834
|
};
|
|
3807
3835
|
raf.sync = (fn) => {
|
|
3808
3836
|
sync = true;
|
|
@@ -3880,14 +3908,15 @@ function update() {
|
|
|
3880
3908
|
eachSafely(timeouts.splice(0, count), (t) => t.handler());
|
|
3881
3909
|
pendingCount -= count;
|
|
3882
3910
|
}
|
|
3911
|
+
if (!pendingCount) {
|
|
3912
|
+
stop();
|
|
3913
|
+
return;
|
|
3914
|
+
}
|
|
3883
3915
|
onStartQueue.flush();
|
|
3884
3916
|
updateQueue.flush(prevTs ? Math.min(64, ts - prevTs) : 16.667);
|
|
3885
3917
|
onFrameQueue.flush();
|
|
3886
3918
|
writeQueue.flush();
|
|
3887
3919
|
onFinishQueue.flush();
|
|
3888
|
-
if (!pendingCount) {
|
|
3889
|
-
stop();
|
|
3890
|
-
}
|
|
3891
3920
|
}
|
|
3892
3921
|
function makeQueue() {
|
|
3893
3922
|
let next = /* @__PURE__ */ new Set();
|
|
@@ -4407,7 +4436,7 @@ function findRange(input2, inputRange) {
|
|
|
4407
4436
|
return i - 1;
|
|
4408
4437
|
}
|
|
4409
4438
|
function _extends$4() {
|
|
4410
|
-
_extends$4 = Object.assign
|
|
4439
|
+
_extends$4 = Object.assign ? Object.assign.bind() : function(target) {
|
|
4411
4440
|
for (var i = 1; i < arguments.length; i++) {
|
|
4412
4441
|
var source = arguments[i];
|
|
4413
4442
|
for (var key in source) {
|
|
@@ -4569,10 +4598,10 @@ function deprecateDirectCall() {
|
|
|
4569
4598
|
function isAnimatedString(value) {
|
|
4570
4599
|
return is.str(value) && (value[0] == "#" || /\d/.test(value) || !isSSR() && cssVariableRegex.test(value) || value in (colors$1 || {}));
|
|
4571
4600
|
}
|
|
4572
|
-
const
|
|
4601
|
+
const useIsomorphicLayoutEffect = isSSR() ? React$1.useEffect : React$1.useLayoutEffect;
|
|
4573
4602
|
const useIsMounted = () => {
|
|
4574
4603
|
const isMounted = React$1.useRef(false);
|
|
4575
|
-
|
|
4604
|
+
useIsomorphicLayoutEffect(() => {
|
|
4576
4605
|
isMounted.current = true;
|
|
4577
4606
|
return () => {
|
|
4578
4607
|
isMounted.current = false;
|
|
@@ -4820,7 +4849,7 @@ function getAnimatedType(value) {
|
|
|
4820
4849
|
return parentNode ? parentNode.constructor : is.arr(value) ? AnimatedArray : isAnimatedString(value) ? AnimatedString : AnimatedValue;
|
|
4821
4850
|
}
|
|
4822
4851
|
function _extends$3() {
|
|
4823
|
-
_extends$3 = Object.assign
|
|
4852
|
+
_extends$3 = Object.assign ? Object.assign.bind() : function(target) {
|
|
4824
4853
|
for (var i = 1; i < arguments.length; i++) {
|
|
4825
4854
|
var source = arguments[i];
|
|
4826
4855
|
for (var key in source) {
|
|
@@ -4854,7 +4883,7 @@ const withAnimated = (Component, host2) => {
|
|
|
4854
4883
|
};
|
|
4855
4884
|
const observer = new PropsObserver(callback, deps);
|
|
4856
4885
|
const observerRef = React$1.useRef();
|
|
4857
|
-
|
|
4886
|
+
useIsomorphicLayoutEffect(() => {
|
|
4858
4887
|
observerRef.current = observer;
|
|
4859
4888
|
each(deps, (dep) => addFluidObserver(dep, observer));
|
|
4860
4889
|
return () => {
|
|
@@ -4939,7 +4968,7 @@ const createHost = (components, {
|
|
|
4939
4968
|
};
|
|
4940
4969
|
const getDisplayName = (arg) => is.str(arg) ? arg : arg && is.str(arg.displayName) ? arg.displayName : is.fun(arg) && arg.name || null;
|
|
4941
4970
|
function _extends$2() {
|
|
4942
|
-
_extends$2 = Object.assign
|
|
4971
|
+
_extends$2 = Object.assign ? Object.assign.bind() : function(target) {
|
|
4943
4972
|
for (var i = 1; i < arguments.length; i++) {
|
|
4944
4973
|
var source = arguments[i];
|
|
4945
4974
|
for (var key in source) {
|
|
@@ -5572,6 +5601,7 @@ class SpringValue extends FrameValue {
|
|
|
5572
5601
|
const from = anim.fromValues[i];
|
|
5573
5602
|
const v0 = node2.v0 != null ? node2.v0 : node2.v0 = is.arr(config2.velocity) ? config2.velocity[i] : config2.velocity;
|
|
5574
5603
|
let velocity;
|
|
5604
|
+
const precision = config2.precision || (from == to2 ? 5e-3 : Math.min(1, Math.abs(to2 - from) * 1e-3));
|
|
5575
5605
|
if (!is.und(config2.duration)) {
|
|
5576
5606
|
let p = 1;
|
|
5577
5607
|
if (config2.duration > 0) {
|
|
@@ -5593,11 +5623,10 @@ class SpringValue extends FrameValue {
|
|
|
5593
5623
|
const decay = config2.decay === true ? 0.998 : config2.decay;
|
|
5594
5624
|
const e = Math.exp(-(1 - decay) * elapsed);
|
|
5595
5625
|
position = from + v0 / (1 - decay) * (1 - e);
|
|
5596
|
-
finished = Math.abs(node2.lastPosition - position)
|
|
5626
|
+
finished = Math.abs(node2.lastPosition - position) <= precision;
|
|
5597
5627
|
velocity = v0 * e;
|
|
5598
5628
|
} else {
|
|
5599
5629
|
velocity = node2.lastVelocity == null ? v0 : node2.lastVelocity;
|
|
5600
|
-
const precision = config2.precision || (from == to2 ? 5e-3 : Math.min(1, Math.abs(to2 - from) * 1e-3));
|
|
5601
5630
|
const restVelocity = config2.restVelocity || precision / 10;
|
|
5602
5631
|
const bounceFactor = config2.clamp ? 0 : config2.bounce;
|
|
5603
5632
|
const canBounce = !is.und(bounceFactor);
|
|
@@ -6590,7 +6619,7 @@ function useSprings(length, props, deps) {
|
|
|
6590
6619
|
const context = React$1.useContext(SpringContext);
|
|
6591
6620
|
const prevContext = usePrev(context);
|
|
6592
6621
|
const hasContext = context !== prevContext && hasProps(context);
|
|
6593
|
-
|
|
6622
|
+
useIsomorphicLayoutEffect(() => {
|
|
6594
6623
|
layoutId.current++;
|
|
6595
6624
|
state.ctrls = ctrls.current;
|
|
6596
6625
|
const {
|
|
@@ -7676,7 +7705,7 @@ const defaultPopupBaseProps = {
|
|
|
7676
7705
|
};
|
|
7677
7706
|
function useInnerVisible(outerVisible) {
|
|
7678
7707
|
const [innerVisible, setInnerVisible] = React$1.useState(outerVisible);
|
|
7679
|
-
useIsomorphicLayoutEffect$
|
|
7708
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
7680
7709
|
setInnerVisible(outerVisible);
|
|
7681
7710
|
}, [outerVisible]);
|
|
7682
7711
|
return innerVisible;
|
|
@@ -7689,13 +7718,13 @@ const Popup = (p) => {
|
|
|
7689
7718
|
const props = mergeProps(defaultProps$12, p);
|
|
7690
7719
|
const bodyCls = classNames(`${classPrefix$1k}-body`, props.bodyClassName, `${classPrefix$1k}-body-position-${props.position}`);
|
|
7691
7720
|
const [active, setActive] = React$1.useState(props.visible);
|
|
7692
|
-
useIsomorphicLayoutEffect$
|
|
7721
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
7693
7722
|
if (props.visible) {
|
|
7694
7723
|
setActive(true);
|
|
7695
7724
|
}
|
|
7696
7725
|
}, [props.visible]);
|
|
7697
7726
|
const ref = React$1.useRef(null);
|
|
7698
|
-
useLockScroll(ref, props.disableBodyScroll && active);
|
|
7727
|
+
useLockScroll(ref, props.disableBodyScroll && active ? "strict" : false);
|
|
7699
7728
|
const unmountedRef = useUnmountedRef$1();
|
|
7700
7729
|
const {
|
|
7701
7730
|
percent
|
|
@@ -7994,12 +8023,12 @@ const AutoCenter = (props) => {
|
|
|
7994
8023
|
};
|
|
7995
8024
|
const avatar = "";
|
|
7996
8025
|
const image = "";
|
|
7997
|
-
var
|
|
8026
|
+
var _stagedComponents_1_1_3_stagedComponents = {};
|
|
7998
8027
|
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
7999
8028
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
8000
8029
|
};
|
|
8001
|
-
Object.defineProperty(
|
|
8002
|
-
var staged_1 =
|
|
8030
|
+
Object.defineProperty(_stagedComponents_1_1_3_stagedComponents, "__esModule", { value: true });
|
|
8031
|
+
var staged_1 = _stagedComponents_1_1_3_stagedComponents.staged = void 0;
|
|
8003
8032
|
const react_1 = __importDefault(React__default.default);
|
|
8004
8033
|
function processNext(next) {
|
|
8005
8034
|
if (typeof next === "function") {
|
|
@@ -8018,7 +8047,7 @@ function staged(stage) {
|
|
|
8018
8047
|
return processNext(next);
|
|
8019
8048
|
};
|
|
8020
8049
|
}
|
|
8021
|
-
staged_1 =
|
|
8050
|
+
staged_1 = _stagedComponents_1_1_3_stagedComponents.staged = staged;
|
|
8022
8051
|
function toCSSLength(val) {
|
|
8023
8052
|
return typeof val === "number" ? `${val}px` : val;
|
|
8024
8053
|
}
|
|
@@ -8034,7 +8063,7 @@ const LazyDetector = (props) => {
|
|
|
8034
8063
|
ref
|
|
8035
8064
|
});
|
|
8036
8065
|
};
|
|
8037
|
-
const useIsomorphicUpdateLayoutEffect = createUpdateEffect(useIsomorphicLayoutEffect$
|
|
8066
|
+
const useIsomorphicUpdateLayoutEffect = createUpdateEffect(useIsomorphicLayoutEffect$2);
|
|
8038
8067
|
const ImageIcon = () => React__default.default.createElement("svg", {
|
|
8039
8068
|
viewBox: "0 0 48 48",
|
|
8040
8069
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -8416,7 +8445,7 @@ var isoWeek$1 = { exports: {} };
|
|
|
8416
8445
|
var n = d.startOf;
|
|
8417
8446
|
d.startOf = function(e2, t2) {
|
|
8418
8447
|
var i2 = this.$utils(), s2 = !!i2.u(t2) || t2;
|
|
8419
|
-
return i2.p(e2)
|
|
8448
|
+
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);
|
|
8420
8449
|
};
|
|
8421
8450
|
};
|
|
8422
8451
|
});
|
|
@@ -8656,7 +8685,7 @@ const Calendar = React$1.forwardRef((p, ref) => {
|
|
|
8656
8685
|
const capsuleTabs = "";
|
|
8657
8686
|
function useResizeEffect(effect, targetRef) {
|
|
8658
8687
|
const fn = useMemoizedFn(effect);
|
|
8659
|
-
useIsomorphicLayoutEffect$
|
|
8688
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
8660
8689
|
const target = targetRef.current;
|
|
8661
8690
|
if (!target)
|
|
8662
8691
|
return;
|
|
@@ -8734,7 +8763,7 @@ const useTabListScroll = (targetRef, activeIndex) => {
|
|
|
8734
8763
|
immediate: immediate && !scrollLeft.isAnimating
|
|
8735
8764
|
});
|
|
8736
8765
|
}
|
|
8737
|
-
useIsomorphicLayoutEffect$
|
|
8766
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
8738
8767
|
animate(true);
|
|
8739
8768
|
}, []);
|
|
8740
8769
|
useIsomorphicUpdateLayoutEffect(() => {
|
|
@@ -8811,7 +8840,7 @@ const ScrollMask = (props) => {
|
|
|
8811
8840
|
}
|
|
8812
8841
|
}));
|
|
8813
8842
|
};
|
|
8814
|
-
var
|
|
8843
|
+
var _reactIs_17_0_2_reactIs = { exports: {} };
|
|
8815
8844
|
var reactIs_development$1 = {};
|
|
8816
8845
|
/** @license React v17.0.2
|
|
8817
8846
|
* react-is.development.js
|
|
@@ -9006,12 +9035,12 @@ var reactIs_development$1 = {};
|
|
|
9006
9035
|
{
|
|
9007
9036
|
module2.exports = reactIs_development$1;
|
|
9008
9037
|
}
|
|
9009
|
-
})(
|
|
9038
|
+
})(_reactIs_17_0_2_reactIs);
|
|
9010
9039
|
function traverseReactNode(children, fn) {
|
|
9011
9040
|
let i = 0;
|
|
9012
9041
|
function handle(target) {
|
|
9013
9042
|
React__default.default.Children.forEach(target, (child) => {
|
|
9014
|
-
if (!
|
|
9043
|
+
if (!_reactIs_17_0_2_reactIs.exports.isFragment(child)) {
|
|
9015
9044
|
fn(child, i);
|
|
9016
9045
|
i += 1;
|
|
9017
9046
|
} else {
|
|
@@ -9210,7 +9239,7 @@ function ownKeys$1(object4, enumerableOnly) {
|
|
|
9210
9239
|
}
|
|
9211
9240
|
function _objectSpread2$1(target) {
|
|
9212
9241
|
for (var i = 1; i < arguments.length; i++) {
|
|
9213
|
-
var source = arguments[i]
|
|
9242
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
9214
9243
|
i % 2 ? ownKeys$1(Object(source), true).forEach(function(key) {
|
|
9215
9244
|
_defineProperty$1(target, key, source[key]);
|
|
9216
9245
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function(key) {
|
|
@@ -9932,7 +9961,7 @@ Please upgrade to the latest version.`);
|
|
|
9932
9961
|
this.emit();
|
|
9933
9962
|
}
|
|
9934
9963
|
pointerClick(event) {
|
|
9935
|
-
if (!this.state.tap) {
|
|
9964
|
+
if (!this.state.tap && event.detail > 0) {
|
|
9936
9965
|
event.preventDefault();
|
|
9937
9966
|
event.stopPropagation();
|
|
9938
9967
|
}
|
|
@@ -10640,23 +10669,21 @@ function resolveWith(config2 = {}, resolvers) {
|
|
|
10640
10669
|
}
|
|
10641
10670
|
return result2;
|
|
10642
10671
|
}
|
|
10643
|
-
function parse$1(
|
|
10644
|
-
const _ref =
|
|
10672
|
+
function parse$1(newConfig, gestureKey, _config = {}) {
|
|
10673
|
+
const _ref = newConfig, {
|
|
10645
10674
|
target,
|
|
10646
10675
|
eventOptions,
|
|
10647
10676
|
window: window2,
|
|
10648
10677
|
enabled,
|
|
10649
10678
|
transform
|
|
10650
10679
|
} = _ref, rest = _objectWithoutProperties$1(_ref, _excluded$3);
|
|
10651
|
-
|
|
10652
|
-
|
|
10653
|
-
|
|
10654
|
-
|
|
10655
|
-
|
|
10656
|
-
|
|
10657
|
-
|
|
10658
|
-
}, sharedConfigResolver)
|
|
10659
|
-
};
|
|
10680
|
+
_config.shared = resolveWith({
|
|
10681
|
+
target,
|
|
10682
|
+
eventOptions,
|
|
10683
|
+
window: window2,
|
|
10684
|
+
enabled,
|
|
10685
|
+
transform
|
|
10686
|
+
}, sharedConfigResolver);
|
|
10660
10687
|
if (gestureKey) {
|
|
10661
10688
|
const resolver = ConfigResolverMap.get(gestureKey);
|
|
10662
10689
|
_config[gestureKey] = resolveWith(_objectSpread2$1({
|
|
@@ -10760,7 +10787,7 @@ class Controller {
|
|
|
10760
10787
|
this.nativeHandlers = nativeHandlers;
|
|
10761
10788
|
}
|
|
10762
10789
|
applyConfig(config2, gestureKey) {
|
|
10763
|
-
this.config = parse$1(config2, gestureKey);
|
|
10790
|
+
this.config = parse$1(config2, gestureKey, this.config);
|
|
10764
10791
|
}
|
|
10765
10792
|
clean() {
|
|
10766
10793
|
this._targetEventStore.clean();
|
|
@@ -11007,13 +11034,13 @@ const Wheel = React$1.memo((props) => {
|
|
|
11007
11034
|
const rootRef = React$1.useRef(null);
|
|
11008
11035
|
const itemHeightMeasureRef = React$1.useRef(null);
|
|
11009
11036
|
const itemHeight = React$1.useRef(34);
|
|
11010
|
-
useIsomorphicLayoutEffect$
|
|
11037
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
11011
11038
|
const itemHeightMeasure = itemHeightMeasureRef.current;
|
|
11012
11039
|
if (!itemHeightMeasure)
|
|
11013
11040
|
return;
|
|
11014
11041
|
itemHeight.current = measureCSSLength(window.getComputedStyle(itemHeightMeasure).getPropertyValue("height"));
|
|
11015
11042
|
});
|
|
11016
|
-
useIsomorphicLayoutEffect$
|
|
11043
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
11017
11044
|
if (draggingRef.current)
|
|
11018
11045
|
return;
|
|
11019
11046
|
if (value === null)
|
|
@@ -11027,7 +11054,7 @@ const Wheel = React$1.memo((props) => {
|
|
|
11027
11054
|
immediate: y.goal !== finalPosition
|
|
11028
11055
|
});
|
|
11029
11056
|
}, [value, column]);
|
|
11030
|
-
useIsomorphicLayoutEffect$
|
|
11057
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
11031
11058
|
if (column.length === 0) {
|
|
11032
11059
|
if (value !== null) {
|
|
11033
11060
|
onSelect(null);
|
|
@@ -11262,7 +11289,7 @@ var useSyncExternalStoreShim_development = {};
|
|
|
11262
11289
|
return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
|
|
11263
11290
|
}
|
|
11264
11291
|
var objectIs = typeof Object.is === "function" ? Object.is : is2;
|
|
11265
|
-
var useState = React2.useState, useEffect = React2.useEffect,
|
|
11292
|
+
var useState = React2.useState, useEffect = React2.useEffect, useLayoutEffect = React2.useLayoutEffect, useDebugValue = React2.useDebugValue;
|
|
11266
11293
|
var didWarnOld18Alpha = false;
|
|
11267
11294
|
var didWarnUncachedGetSnapshot = false;
|
|
11268
11295
|
function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
|
|
@@ -11290,7 +11317,7 @@ var useSyncExternalStoreShim_development = {};
|
|
|
11290
11317
|
getSnapshot
|
|
11291
11318
|
}
|
|
11292
11319
|
}), inst = _useState[0].inst, forceUpdate = _useState[1];
|
|
11293
|
-
|
|
11320
|
+
useLayoutEffect(function() {
|
|
11294
11321
|
inst.value = value;
|
|
11295
11322
|
inst.getSnapshot = getSnapshot;
|
|
11296
11323
|
if (checkIfSnapshotChanged(inst)) {
|
|
@@ -11874,7 +11901,7 @@ const Tabs$1 = (p) => {
|
|
|
11874
11901
|
immediate
|
|
11875
11902
|
});
|
|
11876
11903
|
}
|
|
11877
|
-
useIsomorphicLayoutEffect$
|
|
11904
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
11878
11905
|
animate(!x.isAnimating);
|
|
11879
11906
|
}, []);
|
|
11880
11907
|
useIsomorphicUpdateLayoutEffect(() => {
|
|
@@ -11909,7 +11936,7 @@ const Tabs$1 = (p) => {
|
|
|
11909
11936
|
trailing: true,
|
|
11910
11937
|
leading: true
|
|
11911
11938
|
});
|
|
11912
|
-
useIsomorphicLayoutEffect$
|
|
11939
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
11913
11940
|
updateMask(true);
|
|
11914
11941
|
}, []);
|
|
11915
11942
|
return withNativeProps(props, React__default.default.createElement("div", {
|
|
@@ -12499,7 +12526,7 @@ const CenterPopup = (p) => {
|
|
|
12499
12526
|
}
|
|
12500
12527
|
});
|
|
12501
12528
|
const [active, setActive] = React$1.useState(props.visible);
|
|
12502
|
-
useIsomorphicLayoutEffect$
|
|
12529
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
12503
12530
|
if (props.visible) {
|
|
12504
12531
|
setActive(true);
|
|
12505
12532
|
}
|
|
@@ -12561,18 +12588,22 @@ const defaultProps$O = {
|
|
|
12561
12588
|
const Group$1 = (p) => {
|
|
12562
12589
|
const props = mergeProps(defaultProps$O, p);
|
|
12563
12590
|
const [value, setValue2] = usePropsValue(props);
|
|
12564
|
-
return React__default.default.createElement(
|
|
12565
|
-
|
|
12566
|
-
|
|
12567
|
-
|
|
12568
|
-
|
|
12569
|
-
|
|
12570
|
-
|
|
12571
|
-
|
|
12572
|
-
|
|
12591
|
+
return React__default.default.createElement(
|
|
12592
|
+
CheckboxGroupContext.Provider,
|
|
12593
|
+
{
|
|
12594
|
+
value: {
|
|
12595
|
+
value,
|
|
12596
|
+
disabled: props.disabled,
|
|
12597
|
+
check: (v) => {
|
|
12598
|
+
setValue2([...value, v]);
|
|
12599
|
+
},
|
|
12600
|
+
uncheck: (v) => {
|
|
12601
|
+
setValue2(value.filter((item) => item !== v));
|
|
12602
|
+
}
|
|
12573
12603
|
}
|
|
12574
|
-
}
|
|
12575
|
-
|
|
12604
|
+
},
|
|
12605
|
+
props.children
|
|
12606
|
+
);
|
|
12576
12607
|
};
|
|
12577
12608
|
const CheckIcon = React$1.memo((props) => {
|
|
12578
12609
|
return withNativeProps(props, React__default.default.createElement("svg", {
|
|
@@ -12856,7 +12887,7 @@ var isoWeeksInYear$1 = { exports: {} };
|
|
|
12856
12887
|
return function(e, n) {
|
|
12857
12888
|
n.prototype.isoWeeksInYear = function() {
|
|
12858
12889
|
var e2 = this.isLeapYear(), n2 = this.endOf("y").day();
|
|
12859
|
-
return
|
|
12890
|
+
return 4 === n2 || e2 && 5 === n2 ? 53 : 52;
|
|
12860
12891
|
};
|
|
12861
12892
|
};
|
|
12862
12893
|
});
|
|
@@ -13604,7 +13635,7 @@ const index$c = attachPropertiesToComponent(Dropdown, {
|
|
|
13604
13635
|
Item
|
|
13605
13636
|
});
|
|
13606
13637
|
const ellipsis = "";
|
|
13607
|
-
var
|
|
13638
|
+
var _runes_0_4_3_runes = { exports: {} };
|
|
13608
13639
|
const HIGH_SURROGATE_START = 55296;
|
|
13609
13640
|
const HIGH_SURROGATE_END = 56319;
|
|
13610
13641
|
const LOW_SURROGATE_START = 56320;
|
|
@@ -13722,13 +13753,14 @@ function substring(string3, start2, width) {
|
|
|
13722
13753
|
}
|
|
13723
13754
|
return chars.slice(start2, endIndex).join("");
|
|
13724
13755
|
}
|
|
13725
|
-
|
|
13726
|
-
|
|
13756
|
+
_runes_0_4_3_runes.exports = runes;
|
|
13757
|
+
_runes_0_4_3_runes.exports.substr = substring;
|
|
13727
13758
|
const classPrefix$S = `adm-ellipsis`;
|
|
13728
13759
|
const defaultProps$G = {
|
|
13729
13760
|
direction: "end",
|
|
13730
13761
|
rows: 1,
|
|
13731
13762
|
expandText: "",
|
|
13763
|
+
content: "",
|
|
13732
13764
|
collapseText: "",
|
|
13733
13765
|
stopPropagationForActionButtons: [],
|
|
13734
13766
|
onContentClick: () => {
|
|
@@ -13740,7 +13772,7 @@ const Ellipsis = (p) => {
|
|
|
13740
13772
|
const [ellipsised, setEllipsised] = React$1.useState({});
|
|
13741
13773
|
const [expanded, setExpanded] = React$1.useState(false);
|
|
13742
13774
|
const [exceeded, setExceeded] = React$1.useState(false);
|
|
13743
|
-
const chars = React$1.useMemo(() =>
|
|
13775
|
+
const chars = React$1.useMemo(() => _runes_0_4_3_runes.exports(props.content), [props.content]);
|
|
13744
13776
|
function getSubString(start2, end) {
|
|
13745
13777
|
return chars.slice(start2, end).join("");
|
|
13746
13778
|
}
|
|
@@ -13831,7 +13863,7 @@ const Ellipsis = (p) => {
|
|
|
13831
13863
|
document.body.removeChild(container);
|
|
13832
13864
|
}
|
|
13833
13865
|
useResizeEffect(calcEllipsised, rootRef);
|
|
13834
|
-
useIsomorphicLayoutEffect$
|
|
13866
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
13835
13867
|
calcEllipsised();
|
|
13836
13868
|
}, [props.content, props.direction, props.rows, props.expandText, props.collapseText]);
|
|
13837
13869
|
const expandActionElement = exceeded && props.expandText ? withStopPropagation(props.stopPropagationForActionButtons, React__default.default.createElement("a", {
|
|
@@ -14740,7 +14772,7 @@ function ownKeys(object4, enumerableOnly) {
|
|
|
14740
14772
|
}
|
|
14741
14773
|
function _objectSpread2(target) {
|
|
14742
14774
|
for (var i = 1; i < arguments.length; i++) {
|
|
14743
|
-
var source = arguments[i]
|
|
14775
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
14744
14776
|
i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
|
|
14745
14777
|
_defineProperty(target, key, source[key]);
|
|
14746
14778
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
@@ -14862,10 +14894,10 @@ function _isNativeReflectConstruct$1() {
|
|
|
14862
14894
|
}
|
|
14863
14895
|
function _typeof$1(obj) {
|
|
14864
14896
|
"@babel/helpers - typeof";
|
|
14865
|
-
return _typeof$1 = typeof Symbol
|
|
14897
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
14866
14898
|
return typeof obj2;
|
|
14867
14899
|
} : function(obj2) {
|
|
14868
|
-
return obj2 && typeof Symbol
|
|
14900
|
+
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
14869
14901
|
}, _typeof$1(obj);
|
|
14870
14902
|
}
|
|
14871
14903
|
function _possibleConstructorReturn(self2, call2) {
|
|
@@ -14889,7 +14921,7 @@ function _createSuper(Derived) {
|
|
|
14889
14921
|
return _possibleConstructorReturn(this, result2);
|
|
14890
14922
|
};
|
|
14891
14923
|
}
|
|
14892
|
-
var
|
|
14924
|
+
var _reactIs_16_13_1_reactIs = { exports: {} };
|
|
14893
14925
|
var reactIs_development = {};
|
|
14894
14926
|
/** @license React v16.13.1
|
|
14895
14927
|
* react-is.development.js
|
|
@@ -15049,7 +15081,7 @@ var reactIs_development = {};
|
|
|
15049
15081
|
{
|
|
15050
15082
|
module2.exports = reactIs_development;
|
|
15051
15083
|
}
|
|
15052
|
-
})(
|
|
15084
|
+
})(_reactIs_16_13_1_reactIs);
|
|
15053
15085
|
function toArray$2(children) {
|
|
15054
15086
|
var option = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
15055
15087
|
var ret = [];
|
|
@@ -15059,7 +15091,7 @@ function toArray$2(children) {
|
|
|
15059
15091
|
}
|
|
15060
15092
|
if (Array.isArray(child)) {
|
|
15061
15093
|
ret = ret.concat(toArray$2(child));
|
|
15062
|
-
} else if (
|
|
15094
|
+
} else if (_reactIs_16_13_1_reactIs.exports.isFragment(child) && child.props) {
|
|
15063
15095
|
ret = ret.concat(toArray$2(child.props.children, option));
|
|
15064
15096
|
} else {
|
|
15065
15097
|
ret.push(child);
|
|
@@ -15127,11 +15159,10 @@ function toArray$1(value) {
|
|
|
15127
15159
|
return Array.isArray(value) ? value : [value];
|
|
15128
15160
|
}
|
|
15129
15161
|
function _regeneratorRuntime() {
|
|
15130
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
15131
15162
|
_regeneratorRuntime = function _regeneratorRuntime2() {
|
|
15132
15163
|
return exports2;
|
|
15133
15164
|
};
|
|
15134
|
-
var exports2 = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = typeof Symbol
|
|
15165
|
+
var exports2 = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
15135
15166
|
function define(obj, key, value) {
|
|
15136
15167
|
return Object.defineProperty(obj, key, {
|
|
15137
15168
|
value,
|
|
@@ -15152,10 +15183,10 @@ function _regeneratorRuntime() {
|
|
|
15152
15183
|
return generator._invoke = function(innerFn2, self3, context2) {
|
|
15153
15184
|
var state = "suspendedStart";
|
|
15154
15185
|
return function(method4, arg) {
|
|
15155
|
-
if (
|
|
15186
|
+
if ("executing" === state)
|
|
15156
15187
|
throw new Error("Generator is already running");
|
|
15157
|
-
if (
|
|
15158
|
-
if (
|
|
15188
|
+
if ("completed" === state) {
|
|
15189
|
+
if ("throw" === method4)
|
|
15159
15190
|
throw arg;
|
|
15160
15191
|
return doneResult();
|
|
15161
15192
|
}
|
|
@@ -15169,17 +15200,17 @@ function _regeneratorRuntime() {
|
|
|
15169
15200
|
return delegateResult;
|
|
15170
15201
|
}
|
|
15171
15202
|
}
|
|
15172
|
-
if (context2.method
|
|
15203
|
+
if ("next" === context2.method)
|
|
15173
15204
|
context2.sent = context2._sent = context2.arg;
|
|
15174
|
-
else if (context2.method
|
|
15175
|
-
if (
|
|
15205
|
+
else if ("throw" === context2.method) {
|
|
15206
|
+
if ("suspendedStart" === state)
|
|
15176
15207
|
throw state = "completed", context2.arg;
|
|
15177
15208
|
context2.dispatchException(context2.arg);
|
|
15178
15209
|
} else
|
|
15179
|
-
context2.method
|
|
15210
|
+
"return" === context2.method && context2.abrupt("return", context2.arg);
|
|
15180
15211
|
state = "executing";
|
|
15181
15212
|
var record2 = tryCatch(innerFn2, self3, context2);
|
|
15182
|
-
if (record2.type
|
|
15213
|
+
if ("normal" === record2.type) {
|
|
15183
15214
|
if (state = context2.done ? "completed" : "suspendedYield", record2.arg === ContinueSentinel)
|
|
15184
15215
|
continue;
|
|
15185
15216
|
return {
|
|
@@ -15187,7 +15218,7 @@ function _regeneratorRuntime() {
|
|
|
15187
15218
|
done: context2.done
|
|
15188
15219
|
};
|
|
15189
15220
|
}
|
|
15190
|
-
record2.type
|
|
15221
|
+
"throw" === record2.type && (state = "completed", context2.method = "throw", context2.arg = record2.arg);
|
|
15191
15222
|
}
|
|
15192
15223
|
};
|
|
15193
15224
|
}(innerFn, self2, context), generator;
|
|
@@ -15230,9 +15261,9 @@ function _regeneratorRuntime() {
|
|
|
15230
15261
|
function AsyncIterator(generator, PromiseImpl) {
|
|
15231
15262
|
function invoke(method4, arg, resolve, reject) {
|
|
15232
15263
|
var record2 = tryCatch(generator[method4], generator, arg);
|
|
15233
|
-
if (record2.type
|
|
15264
|
+
if ("throw" !== record2.type) {
|
|
15234
15265
|
var result2 = record2.arg, value = result2.value;
|
|
15235
|
-
return value && _typeof$1(value)
|
|
15266
|
+
return value && "object" == _typeof$1(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function(value2) {
|
|
15236
15267
|
invoke("next", value2, resolve, reject);
|
|
15237
15268
|
}, function(err) {
|
|
15238
15269
|
invoke("throw", err, resolve, reject);
|
|
@@ -15256,19 +15287,19 @@ function _regeneratorRuntime() {
|
|
|
15256
15287
|
}
|
|
15257
15288
|
function maybeInvokeDelegate(delegate, context) {
|
|
15258
15289
|
var method4 = delegate.iterator[context.method];
|
|
15259
|
-
if (
|
|
15260
|
-
if (context.delegate = null, context.method
|
|
15261
|
-
if (delegate.iterator["return"] && (context.method = "return", context.arg = void 0, maybeInvokeDelegate(delegate, context), context.method
|
|
15290
|
+
if (void 0 === method4) {
|
|
15291
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
15292
|
+
if (delegate.iterator["return"] && (context.method = "return", context.arg = void 0, maybeInvokeDelegate(delegate, context), "throw" === context.method))
|
|
15262
15293
|
return ContinueSentinel;
|
|
15263
15294
|
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
15264
15295
|
}
|
|
15265
15296
|
return ContinueSentinel;
|
|
15266
15297
|
}
|
|
15267
15298
|
var record2 = tryCatch(method4, delegate.iterator, context.arg);
|
|
15268
|
-
if (record2.type
|
|
15299
|
+
if ("throw" === record2.type)
|
|
15269
15300
|
return context.method = "throw", context.arg = record2.arg, context.delegate = null, ContinueSentinel;
|
|
15270
15301
|
var info = record2.arg;
|
|
15271
|
-
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, context.method
|
|
15302
|
+
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);
|
|
15272
15303
|
}
|
|
15273
15304
|
function pushTryEntry(locs) {
|
|
15274
15305
|
var entry = {
|
|
@@ -15290,7 +15321,7 @@ function _regeneratorRuntime() {
|
|
|
15290
15321
|
var iteratorMethod = iterable[iteratorSymbol];
|
|
15291
15322
|
if (iteratorMethod)
|
|
15292
15323
|
return iteratorMethod.call(iterable);
|
|
15293
|
-
if (typeof iterable.next
|
|
15324
|
+
if ("function" == typeof iterable.next)
|
|
15294
15325
|
return iterable;
|
|
15295
15326
|
if (!isNaN(iterable.length)) {
|
|
15296
15327
|
var i = -1, next = function next2() {
|
|
@@ -15314,8 +15345,8 @@ function _regeneratorRuntime() {
|
|
|
15314
15345
|
};
|
|
15315
15346
|
}
|
|
15316
15347
|
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports2.isGeneratorFunction = function(genFun) {
|
|
15317
|
-
var ctor = typeof genFun
|
|
15318
|
-
return !!ctor && (ctor === GeneratorFunction || (ctor.displayName || ctor.name)
|
|
15348
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
15349
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
15319
15350
|
}, exports2.mark = function(genFun) {
|
|
15320
15351
|
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
15321
15352
|
}, exports2.awrap = function(arg) {
|
|
@@ -15325,7 +15356,7 @@ function _regeneratorRuntime() {
|
|
|
15325
15356
|
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function() {
|
|
15326
15357
|
return this;
|
|
15327
15358
|
}), exports2.AsyncIterator = AsyncIterator, exports2.async = function(innerFn, outerFn, self2, tryLocsList, PromiseImpl) {
|
|
15328
|
-
|
|
15359
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
15329
15360
|
var iter = new AsyncIterator(wrap(innerFn, outerFn, self2, tryLocsList), PromiseImpl);
|
|
15330
15361
|
return exports2.isGeneratorFunction(outerFn) ? iter : iter.next().then(function(result2) {
|
|
15331
15362
|
return result2.done ? result2.value : iter.next();
|
|
@@ -15352,13 +15383,13 @@ function _regeneratorRuntime() {
|
|
|
15352
15383
|
reset: function reset(skipTempReset) {
|
|
15353
15384
|
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)
|
|
15354
15385
|
for (var name in this) {
|
|
15355
|
-
name.charAt(0)
|
|
15386
|
+
"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = void 0);
|
|
15356
15387
|
}
|
|
15357
15388
|
},
|
|
15358
15389
|
stop: function stop2() {
|
|
15359
15390
|
this.done = true;
|
|
15360
15391
|
var rootRecord = this.tryEntries[0].completion;
|
|
15361
|
-
if (rootRecord.type
|
|
15392
|
+
if ("throw" === rootRecord.type)
|
|
15362
15393
|
throw rootRecord.arg;
|
|
15363
15394
|
return this.rval;
|
|
15364
15395
|
},
|
|
@@ -15371,7 +15402,7 @@ function _regeneratorRuntime() {
|
|
|
15371
15402
|
}
|
|
15372
15403
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
15373
15404
|
var entry = this.tryEntries[i], record2 = entry.completion;
|
|
15374
|
-
if (entry.tryLoc
|
|
15405
|
+
if ("root" === entry.tryLoc)
|
|
15375
15406
|
return handle("end");
|
|
15376
15407
|
if (entry.tryLoc <= this.prev) {
|
|
15377
15408
|
var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
@@ -15400,14 +15431,14 @@ function _regeneratorRuntime() {
|
|
|
15400
15431
|
break;
|
|
15401
15432
|
}
|
|
15402
15433
|
}
|
|
15403
|
-
finallyEntry && (
|
|
15434
|
+
finallyEntry && ("break" === type4 || "continue" === type4) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
15404
15435
|
var record2 = finallyEntry ? finallyEntry.completion : {};
|
|
15405
15436
|
return record2.type = type4, record2.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record2);
|
|
15406
15437
|
},
|
|
15407
15438
|
complete: function complete(record2, afterLoc) {
|
|
15408
|
-
if (record2.type
|
|
15439
|
+
if ("throw" === record2.type)
|
|
15409
15440
|
throw record2.arg;
|
|
15410
|
-
return
|
|
15441
|
+
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;
|
|
15411
15442
|
},
|
|
15412
15443
|
finish: function finish(finallyLoc) {
|
|
15413
15444
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
@@ -15421,7 +15452,7 @@ function _regeneratorRuntime() {
|
|
|
15421
15452
|
var entry = this.tryEntries[i];
|
|
15422
15453
|
if (entry.tryLoc === tryLoc) {
|
|
15423
15454
|
var record2 = entry.completion;
|
|
15424
|
-
if (record2.type
|
|
15455
|
+
if ("throw" === record2.type) {
|
|
15425
15456
|
var thrown = record2.arg;
|
|
15426
15457
|
resetTryEntry(entry);
|
|
15427
15458
|
}
|
|
@@ -15435,7 +15466,7 @@ function _regeneratorRuntime() {
|
|
|
15435
15466
|
iterator: values(iterable),
|
|
15436
15467
|
resultName,
|
|
15437
15468
|
nextLoc
|
|
15438
|
-
}, this.method
|
|
15469
|
+
}, "next" === this.method && (this.arg = void 0), ContinueSentinel;
|
|
15439
15470
|
}
|
|
15440
15471
|
}, exports2;
|
|
15441
15472
|
}
|
|
@@ -16703,7 +16734,7 @@ function isSimilar(source, target) {
|
|
|
16703
16734
|
}
|
|
16704
16735
|
var sourceKeys = Object.keys(source);
|
|
16705
16736
|
var targetKeys = Object.keys(target);
|
|
16706
|
-
var keys2 = new Set([].concat(
|
|
16737
|
+
var keys2 = new Set([].concat(sourceKeys, targetKeys));
|
|
16707
16738
|
return _toConsumableArray(keys2).every(function(key) {
|
|
16708
16739
|
var sourceValue = source[key];
|
|
16709
16740
|
var targetValue = target[key];
|
|
@@ -17167,10 +17198,11 @@ var Field = /* @__PURE__ */ function(_React$Component) {
|
|
|
17167
17198
|
}).then(function() {
|
|
17168
17199
|
var ruleErrors = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : EMPTY_ERRORS;
|
|
17169
17200
|
if (_this.validatePromise === rootPromise) {
|
|
17201
|
+
var _ruleErrors$forEach;
|
|
17170
17202
|
_this.validatePromise = null;
|
|
17171
17203
|
var nextErrors = [];
|
|
17172
17204
|
var nextWarnings = [];
|
|
17173
|
-
ruleErrors.forEach(function(_ref3) {
|
|
17205
|
+
(_ruleErrors$forEach = ruleErrors.forEach) === null || _ruleErrors$forEach === void 0 ? void 0 : _ruleErrors$forEach.call(ruleErrors, function(_ref3) {
|
|
17174
17206
|
var warningOnly = _ref3.rule.warningOnly, _ref3$errors = _ref3.errors, errors = _ref3$errors === void 0 ? EMPTY_ERRORS : _ref3$errors;
|
|
17175
17207
|
if (warningOnly) {
|
|
17176
17208
|
nextWarnings.push.apply(nextWarnings, _toConsumableArray(errors));
|
|
@@ -18259,9 +18291,10 @@ var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate
|
|
|
18259
18291
|
warnings: []
|
|
18260
18292
|
};
|
|
18261
18293
|
}).catch(function(ruleErrors) {
|
|
18294
|
+
var _ruleErrors$forEach;
|
|
18262
18295
|
var mergedErrors = [];
|
|
18263
18296
|
var mergedWarnings = [];
|
|
18264
|
-
ruleErrors.forEach(function(_ref6) {
|
|
18297
|
+
(_ruleErrors$forEach = ruleErrors.forEach) === null || _ruleErrors$forEach === void 0 ? void 0 : _ruleErrors$forEach.call(ruleErrors, function(_ref6) {
|
|
18265
18298
|
var warningOnly = _ref6.rule.warningOnly, errors = _ref6.errors;
|
|
18266
18299
|
if (warningOnly) {
|
|
18267
18300
|
mergedWarnings.push.apply(mergedWarnings, _toConsumableArray(errors));
|
|
@@ -18445,9 +18478,12 @@ var Form$1 = function Form(_ref, ref) {
|
|
|
18445
18478
|
if (!mountRef.current) {
|
|
18446
18479
|
mountRef.current = true;
|
|
18447
18480
|
}
|
|
18448
|
-
React__namespace.useEffect(
|
|
18449
|
-
|
|
18450
|
-
|
|
18481
|
+
React__namespace.useEffect(
|
|
18482
|
+
function() {
|
|
18483
|
+
return destroyForm;
|
|
18484
|
+
},
|
|
18485
|
+
[]
|
|
18486
|
+
);
|
|
18451
18487
|
var childrenNode;
|
|
18452
18488
|
var childrenRenderProps = typeof children === "function";
|
|
18453
18489
|
if (childrenRenderProps) {
|
|
@@ -18497,8 +18533,10 @@ function stringify$1(value) {
|
|
|
18497
18533
|
}
|
|
18498
18534
|
}
|
|
18499
18535
|
function useWatch() {
|
|
18500
|
-
var
|
|
18501
|
-
|
|
18536
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
18537
|
+
args[_key] = arguments[_key];
|
|
18538
|
+
}
|
|
18539
|
+
var _args$ = args[0], dependencies = _args$ === void 0 ? [] : _args$, form = args[1];
|
|
18502
18540
|
var _useState = React$1.useState(), _useState2 = _slicedToArray(_useState, 2), value = _useState2[0], setValue2 = _useState2[1];
|
|
18503
18541
|
var valueStr = React$1.useMemo(function() {
|
|
18504
18542
|
return stringify$1(value);
|
|
@@ -18509,29 +18547,32 @@ function useWatch() {
|
|
|
18509
18547
|
var formInstance = form || fieldContext;
|
|
18510
18548
|
var isValidForm = formInstance && formInstance._init;
|
|
18511
18549
|
{
|
|
18512
|
-
warningOnce$1(isValidForm, "useWatch requires a form instance since it can not auto detect from context.");
|
|
18550
|
+
warningOnce$1(args.length === 2 ? form ? isValidForm : true : isValidForm, "useWatch requires a form instance since it can not auto detect from context.");
|
|
18513
18551
|
}
|
|
18514
18552
|
var namePath = getNamePath(dependencies);
|
|
18515
18553
|
var namePathRef = React$1.useRef(namePath);
|
|
18516
18554
|
namePathRef.current = namePath;
|
|
18517
|
-
React$1.useEffect(
|
|
18518
|
-
|
|
18519
|
-
|
|
18520
|
-
|
|
18521
|
-
var getFieldsValue = formInstance.getFieldsValue, getInternalHooks3 = formInstance.getInternalHooks;
|
|
18522
|
-
var _getInternalHooks = getInternalHooks3(HOOK_MARK$1), registerWatch = _getInternalHooks.registerWatch;
|
|
18523
|
-
var cancelRegister = registerWatch(function(store) {
|
|
18524
|
-
var newValue = getValue(store, namePathRef.current);
|
|
18525
|
-
var nextValueStr = stringify$1(newValue);
|
|
18526
|
-
if (valueStrRef.current !== nextValueStr) {
|
|
18527
|
-
valueStrRef.current = nextValueStr;
|
|
18528
|
-
setValue2(newValue);
|
|
18555
|
+
React$1.useEffect(
|
|
18556
|
+
function() {
|
|
18557
|
+
if (!isValidForm) {
|
|
18558
|
+
return;
|
|
18529
18559
|
}
|
|
18530
|
-
|
|
18531
|
-
|
|
18532
|
-
|
|
18533
|
-
|
|
18534
|
-
|
|
18560
|
+
var getFieldsValue = formInstance.getFieldsValue, getInternalHooks3 = formInstance.getInternalHooks;
|
|
18561
|
+
var _getInternalHooks = getInternalHooks3(HOOK_MARK$1), registerWatch = _getInternalHooks.registerWatch;
|
|
18562
|
+
var cancelRegister = registerWatch(function(store) {
|
|
18563
|
+
var newValue = getValue(store, namePathRef.current);
|
|
18564
|
+
var nextValueStr = stringify$1(newValue);
|
|
18565
|
+
if (valueStrRef.current !== nextValueStr) {
|
|
18566
|
+
valueStrRef.current = nextValueStr;
|
|
18567
|
+
setValue2(newValue);
|
|
18568
|
+
}
|
|
18569
|
+
});
|
|
18570
|
+
var initialValue = getValue(getFieldsValue(), namePathRef.current);
|
|
18571
|
+
setValue2(initialValue);
|
|
18572
|
+
return cancelRegister;
|
|
18573
|
+
},
|
|
18574
|
+
[isValidForm]
|
|
18575
|
+
);
|
|
18535
18576
|
return value;
|
|
18536
18577
|
}
|
|
18537
18578
|
var InternalForm = /* @__PURE__ */ React__namespace.forwardRef(Form$1);
|
|
@@ -18884,10 +18925,10 @@ var _typeof = { exports: {} };
|
|
|
18884
18925
|
(function(module2) {
|
|
18885
18926
|
function _typeof2(obj) {
|
|
18886
18927
|
"@babel/helpers - typeof";
|
|
18887
|
-
return module2.exports = _typeof2 = typeof Symbol
|
|
18928
|
+
return module2.exports = _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
18888
18929
|
return typeof obj2;
|
|
18889
18930
|
} : function(obj2) {
|
|
18890
|
-
return obj2 && typeof Symbol
|
|
18931
|
+
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
18891
18932
|
}, module2.exports.__esModule = true, module2.exports["default"] = module2.exports, _typeof2(obj);
|
|
18892
18933
|
}
|
|
18893
18934
|
module2.exports = _typeof2, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
|
|
@@ -19046,9 +19087,9 @@ function isSimpleFunctionComponent(type4) {
|
|
|
19046
19087
|
return typeof type4 === "function" && !shouldConstruct(type4) && type4.defaultProps === void 0;
|
|
19047
19088
|
}
|
|
19048
19089
|
function isSafeSetRefComponent(component) {
|
|
19049
|
-
if (
|
|
19090
|
+
if (_reactIs_17_0_2_reactIs.exports.isFragment(component))
|
|
19050
19091
|
return false;
|
|
19051
|
-
if (
|
|
19092
|
+
if (_reactIs_17_0_2_reactIs.exports.isMemo(component))
|
|
19052
19093
|
return isSafeSetRefComponent(component.type);
|
|
19053
19094
|
return !isSimpleFunctionComponent(component.type);
|
|
19054
19095
|
}
|
|
@@ -19750,7 +19791,7 @@ function getWindow(node) {
|
|
|
19750
19791
|
}
|
|
19751
19792
|
return node;
|
|
19752
19793
|
}
|
|
19753
|
-
function getComputedStyle
|
|
19794
|
+
function getComputedStyle(element) {
|
|
19754
19795
|
return getWindow(element).getComputedStyle(element);
|
|
19755
19796
|
}
|
|
19756
19797
|
function getNodeName(node) {
|
|
@@ -19784,7 +19825,7 @@ function isOverflowElement(element) {
|
|
|
19784
19825
|
overflow,
|
|
19785
19826
|
overflowX,
|
|
19786
19827
|
overflowY
|
|
19787
|
-
} = getComputedStyle
|
|
19828
|
+
} = getComputedStyle(element);
|
|
19788
19829
|
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
|
|
19789
19830
|
}
|
|
19790
19831
|
function isTableElement(element) {
|
|
@@ -19792,7 +19833,7 @@ function isTableElement(element) {
|
|
|
19792
19833
|
}
|
|
19793
19834
|
function isContainingBlock(element) {
|
|
19794
19835
|
const isFirefox = /firefox/i.test(getUAString());
|
|
19795
|
-
const css = getComputedStyle
|
|
19836
|
+
const css = getComputedStyle(element);
|
|
19796
19837
|
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);
|
|
19797
19838
|
}
|
|
19798
19839
|
function isLayoutViewport() {
|
|
@@ -19858,7 +19899,11 @@ function isScaled(element) {
|
|
|
19858
19899
|
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
19859
19900
|
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
19860
19901
|
const documentElement = getDocumentElement(offsetParent);
|
|
19861
|
-
const rect = getBoundingClientRect(
|
|
19902
|
+
const rect = getBoundingClientRect(
|
|
19903
|
+
element,
|
|
19904
|
+
isOffsetParentAnElement && isScaled(offsetParent),
|
|
19905
|
+
strategy === "fixed"
|
|
19906
|
+
);
|
|
19862
19907
|
let scroll = {
|
|
19863
19908
|
scrollLeft: 0,
|
|
19864
19909
|
scrollTop: 0
|
|
@@ -19907,7 +19952,8 @@ function getContainingBlock(element) {
|
|
|
19907
19952
|
if (isContainingBlock(currentNode)) {
|
|
19908
19953
|
return currentNode;
|
|
19909
19954
|
} else {
|
|
19910
|
-
|
|
19955
|
+
const parent = currentNode.parentNode;
|
|
19956
|
+
currentNode = isShadowRoot(parent) ? parent.host : parent;
|
|
19911
19957
|
}
|
|
19912
19958
|
}
|
|
19913
19959
|
return null;
|
|
@@ -20004,7 +20050,7 @@ function getDocumentRect(element) {
|
|
|
20004
20050
|
const height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
20005
20051
|
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
20006
20052
|
const y = -scroll.scrollTop;
|
|
20007
|
-
if (getComputedStyle
|
|
20053
|
+
if (getComputedStyle(body || html).direction === "rtl") {
|
|
20008
20054
|
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
20009
20055
|
}
|
|
20010
20056
|
return {
|
|
@@ -20077,7 +20123,7 @@ function getClientRectFromClippingAncestor(element, clippingParent, strategy) {
|
|
|
20077
20123
|
}
|
|
20078
20124
|
function getClippingAncestors(element) {
|
|
20079
20125
|
const clippingAncestors = getOverflowAncestors(element);
|
|
20080
|
-
const canEscapeClipping = ["absolute", "fixed"].includes(getComputedStyle
|
|
20126
|
+
const canEscapeClipping = ["absolute", "fixed"].includes(getComputedStyle(element).position);
|
|
20081
20127
|
const clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
20082
20128
|
if (!isElement(clipperElement)) {
|
|
20083
20129
|
return [];
|
|
@@ -20132,7 +20178,7 @@ const platform = {
|
|
|
20132
20178
|
};
|
|
20133
20179
|
},
|
|
20134
20180
|
getClientRects: (element) => Array.from(element.getClientRects()),
|
|
20135
|
-
isRTL: (element) => getComputedStyle
|
|
20181
|
+
isRTL: (element) => getComputedStyle(element).direction === "rtl"
|
|
20136
20182
|
};
|
|
20137
20183
|
function autoUpdate(reference, floating, update2, options) {
|
|
20138
20184
|
if (options === void 0) {
|
|
@@ -20353,7 +20399,7 @@ const Popover$1 = React$1.forwardRef((p, ref) => {
|
|
|
20353
20399
|
arrowElement.style.setProperty("--arrow-icon-rotate", arrowRotate);
|
|
20354
20400
|
});
|
|
20355
20401
|
}
|
|
20356
|
-
useIsomorphicLayoutEffect$
|
|
20402
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
20357
20403
|
update2();
|
|
20358
20404
|
});
|
|
20359
20405
|
React$1.useEffect(() => {
|
|
@@ -21262,14 +21308,14 @@ const ImageUploader = (p) => {
|
|
|
21262
21308
|
const props = mergeProps(defaultProps$y, p);
|
|
21263
21309
|
const [value, setValue2] = usePropsValue(props);
|
|
21264
21310
|
const [tasks, setTasks] = React$1.useState([]);
|
|
21265
|
-
useIsomorphicLayoutEffect$
|
|
21311
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
21266
21312
|
setTasks((prev) => prev.filter((task) => {
|
|
21267
21313
|
if (task.url === void 0)
|
|
21268
21314
|
return true;
|
|
21269
21315
|
return !value.some((fileItem) => fileItem.url === task.url);
|
|
21270
21316
|
}));
|
|
21271
21317
|
}, [value]);
|
|
21272
|
-
useIsomorphicLayoutEffect$
|
|
21318
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
21273
21319
|
var _a;
|
|
21274
21320
|
(_a = props.onUploadQueueChange) === null || _a === void 0 ? void 0 : _a.call(props, tasks.map((item) => ({
|
|
21275
21321
|
id: item.id,
|
|
@@ -21751,7 +21797,7 @@ const Input = React$1.forwardRef((p, ref) => {
|
|
|
21751
21797
|
}
|
|
21752
21798
|
(_a = props.onKeyDown) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
21753
21799
|
};
|
|
21754
|
-
useIsomorphicLayoutEffect$
|
|
21800
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
21755
21801
|
var _a;
|
|
21756
21802
|
if (!props.enterKeyHint)
|
|
21757
21803
|
return;
|
|
@@ -22114,7 +22160,6 @@ const index$7 = attachPropertiesToComponent(Modal, {
|
|
|
22114
22160
|
const navBar = "";
|
|
22115
22161
|
const classPrefix$y = `adm-nav-bar`;
|
|
22116
22162
|
const defaultProps$s = {
|
|
22117
|
-
back: "",
|
|
22118
22163
|
backArrow: true
|
|
22119
22164
|
};
|
|
22120
22165
|
const NavBar = (p) => {
|
|
@@ -22791,17 +22836,21 @@ const Group = (p) => {
|
|
|
22791
22836
|
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, v);
|
|
22792
22837
|
}
|
|
22793
22838
|
});
|
|
22794
|
-
return React__default.default.createElement(
|
|
22795
|
-
|
|
22796
|
-
|
|
22797
|
-
|
|
22798
|
-
|
|
22799
|
-
|
|
22800
|
-
|
|
22801
|
-
|
|
22802
|
-
|
|
22803
|
-
|
|
22804
|
-
|
|
22839
|
+
return React__default.default.createElement(
|
|
22840
|
+
RadioGroupContext.Provider,
|
|
22841
|
+
{
|
|
22842
|
+
value: {
|
|
22843
|
+
value: value === null ? [] : [value],
|
|
22844
|
+
check: (v) => {
|
|
22845
|
+
setValue2(v);
|
|
22846
|
+
},
|
|
22847
|
+
uncheck: () => {
|
|
22848
|
+
},
|
|
22849
|
+
disabled: props.disabled
|
|
22850
|
+
}
|
|
22851
|
+
},
|
|
22852
|
+
props.children
|
|
22853
|
+
);
|
|
22805
22854
|
};
|
|
22806
22855
|
const classPrefix$q = `adm-radio`;
|
|
22807
22856
|
const defaultProps$k = {
|
|
@@ -23509,178 +23558,6 @@ const Thumb = (props) => {
|
|
|
23509
23558
|
mode: "dark"
|
|
23510
23559
|
}, thumbElement) : thumbElement);
|
|
23511
23560
|
};
|
|
23512
|
-
const classPrefix$f = `adm-slider`;
|
|
23513
|
-
const defaultProps$e = {
|
|
23514
|
-
min: 0,
|
|
23515
|
-
max: 100,
|
|
23516
|
-
step: 1,
|
|
23517
|
-
ticks: false,
|
|
23518
|
-
range: false,
|
|
23519
|
-
disabled: false,
|
|
23520
|
-
popover: false,
|
|
23521
|
-
residentPopover: false
|
|
23522
|
-
};
|
|
23523
|
-
const Slider = (p) => {
|
|
23524
|
-
var _a;
|
|
23525
|
-
const props = mergeProps(defaultProps$e, p);
|
|
23526
|
-
const {
|
|
23527
|
-
min: min2,
|
|
23528
|
-
max: max2,
|
|
23529
|
-
disabled,
|
|
23530
|
-
marks,
|
|
23531
|
-
ticks,
|
|
23532
|
-
step,
|
|
23533
|
-
icon
|
|
23534
|
-
} = props;
|
|
23535
|
-
function sortValue(val) {
|
|
23536
|
-
return val.sort((a, b) => a - b);
|
|
23537
|
-
}
|
|
23538
|
-
function convertValue(value) {
|
|
23539
|
-
return props.range ? value : [props.min, value];
|
|
23540
|
-
}
|
|
23541
|
-
function reverseValue(value) {
|
|
23542
|
-
return props.range ? value : value[1];
|
|
23543
|
-
}
|
|
23544
|
-
function onAfterChange(value) {
|
|
23545
|
-
var _a2;
|
|
23546
|
-
(_a2 = props.onAfterChange) === null || _a2 === void 0 ? void 0 : _a2.call(props, reverseValue(value));
|
|
23547
|
-
}
|
|
23548
|
-
let propsValue = props.value;
|
|
23549
|
-
if (props.range && typeof props.value === "number") {
|
|
23550
|
-
devWarning("Slider", "When `range` prop is enabled, the `value` prop should be an array, like: [0, 0]");
|
|
23551
|
-
propsValue = [0, props.value];
|
|
23552
|
-
}
|
|
23553
|
-
const [rawValue, setRawValue] = usePropsValue({
|
|
23554
|
-
value: propsValue,
|
|
23555
|
-
defaultValue: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : props.range ? [min2, min2] : min2,
|
|
23556
|
-
onChange: props.onChange
|
|
23557
|
-
});
|
|
23558
|
-
const sliderValue = sortValue(convertValue(rawValue));
|
|
23559
|
-
function setSliderValue(value) {
|
|
23560
|
-
const next = sortValue(value);
|
|
23561
|
-
const current = sliderValue;
|
|
23562
|
-
if (next[0] === current[0] && next[1] === current[1])
|
|
23563
|
-
return;
|
|
23564
|
-
setRawValue(reverseValue(next));
|
|
23565
|
-
}
|
|
23566
|
-
const trackRef = React$1.useRef(null);
|
|
23567
|
-
const fillSize = `${100 * (sliderValue[1] - sliderValue[0]) / (max2 - min2)}%`;
|
|
23568
|
-
const fillStart = `${100 * (sliderValue[0] - min2) / (max2 - min2)}%`;
|
|
23569
|
-
const pointList = React$1.useMemo(() => {
|
|
23570
|
-
if (marks) {
|
|
23571
|
-
return Object.keys(marks).map(parseFloat).sort((a, b) => a - b);
|
|
23572
|
-
} else {
|
|
23573
|
-
const points = [];
|
|
23574
|
-
for (let i = min2; i <= max2; i += step) {
|
|
23575
|
-
points.push(i);
|
|
23576
|
-
}
|
|
23577
|
-
return points;
|
|
23578
|
-
}
|
|
23579
|
-
}, [marks, ticks, step, min2, max2]);
|
|
23580
|
-
function getValueByPosition(position) {
|
|
23581
|
-
const newPosition = position < min2 ? min2 : position > max2 ? max2 : position;
|
|
23582
|
-
let value = min2;
|
|
23583
|
-
if (pointList.length) {
|
|
23584
|
-
value = nearest(pointList, newPosition);
|
|
23585
|
-
} else {
|
|
23586
|
-
const lengthPerStep = 100 / ((max2 - min2) / step);
|
|
23587
|
-
const steps2 = Math.round(newPosition / lengthPerStep);
|
|
23588
|
-
value = steps2 * lengthPerStep * (max2 - min2) * 0.01 + min2;
|
|
23589
|
-
}
|
|
23590
|
-
return value;
|
|
23591
|
-
}
|
|
23592
|
-
const dragLockRef = React$1.useRef(0);
|
|
23593
|
-
const onTrackClick = (event) => {
|
|
23594
|
-
if (dragLockRef.current > 0)
|
|
23595
|
-
return;
|
|
23596
|
-
event.stopPropagation();
|
|
23597
|
-
if (disabled)
|
|
23598
|
-
return;
|
|
23599
|
-
const track = trackRef.current;
|
|
23600
|
-
if (!track)
|
|
23601
|
-
return;
|
|
23602
|
-
const sliderOffsetLeft = track.getBoundingClientRect().left;
|
|
23603
|
-
const position = (event.clientX - sliderOffsetLeft) / Math.ceil(track.offsetWidth) * (max2 - min2) + min2;
|
|
23604
|
-
const targetValue = getValueByPosition(position);
|
|
23605
|
-
let nextSliderValue;
|
|
23606
|
-
if (props.range) {
|
|
23607
|
-
if (Math.abs(targetValue - sliderValue[0]) > Math.abs(targetValue - sliderValue[1])) {
|
|
23608
|
-
nextSliderValue = [sliderValue[0], targetValue];
|
|
23609
|
-
} else {
|
|
23610
|
-
nextSliderValue = [targetValue, sliderValue[1]];
|
|
23611
|
-
}
|
|
23612
|
-
} else {
|
|
23613
|
-
nextSliderValue = [props.min, targetValue];
|
|
23614
|
-
}
|
|
23615
|
-
setSliderValue(nextSliderValue);
|
|
23616
|
-
onAfterChange(nextSliderValue);
|
|
23617
|
-
};
|
|
23618
|
-
const valueBeforeDragRef = React$1.useRef();
|
|
23619
|
-
const renderThumb = (index2) => {
|
|
23620
|
-
return React__default.default.createElement(Thumb, {
|
|
23621
|
-
key: index2,
|
|
23622
|
-
value: sliderValue[index2],
|
|
23623
|
-
min: min2,
|
|
23624
|
-
max: max2,
|
|
23625
|
-
disabled,
|
|
23626
|
-
trackRef,
|
|
23627
|
-
icon,
|
|
23628
|
-
popover: props.popover,
|
|
23629
|
-
residentPopover: props.residentPopover,
|
|
23630
|
-
onDrag: (position, first, last) => {
|
|
23631
|
-
if (first) {
|
|
23632
|
-
dragLockRef.current += 1;
|
|
23633
|
-
valueBeforeDragRef.current = sliderValue;
|
|
23634
|
-
}
|
|
23635
|
-
const val = getValueByPosition(position);
|
|
23636
|
-
const valueBeforeDrag = valueBeforeDragRef.current;
|
|
23637
|
-
if (!valueBeforeDrag)
|
|
23638
|
-
return;
|
|
23639
|
-
const next = [...valueBeforeDrag];
|
|
23640
|
-
next[index2] = val;
|
|
23641
|
-
setSliderValue(next);
|
|
23642
|
-
if (last) {
|
|
23643
|
-
onAfterChange(next);
|
|
23644
|
-
window.setTimeout(() => {
|
|
23645
|
-
dragLockRef.current -= 1;
|
|
23646
|
-
}, 100);
|
|
23647
|
-
}
|
|
23648
|
-
},
|
|
23649
|
-
"aria-label": props["aria-label"]
|
|
23650
|
-
});
|
|
23651
|
-
};
|
|
23652
|
-
return withNativeProps(props, React__default.default.createElement("div", {
|
|
23653
|
-
className: classNames(classPrefix$f, {
|
|
23654
|
-
[`${classPrefix$f}-disabled`]: disabled
|
|
23655
|
-
})
|
|
23656
|
-
}, React__default.default.createElement("div", {
|
|
23657
|
-
className: `${classPrefix$f}-track-container`,
|
|
23658
|
-
onClick: onTrackClick
|
|
23659
|
-
}, React__default.default.createElement("div", {
|
|
23660
|
-
className: `${classPrefix$f}-track`,
|
|
23661
|
-
onClick: onTrackClick,
|
|
23662
|
-
ref: trackRef
|
|
23663
|
-
}, React__default.default.createElement("div", {
|
|
23664
|
-
className: `${classPrefix$f}-fill`,
|
|
23665
|
-
style: {
|
|
23666
|
-
width: fillSize,
|
|
23667
|
-
left: fillStart
|
|
23668
|
-
}
|
|
23669
|
-
}), props.ticks && React__default.default.createElement(Ticks, {
|
|
23670
|
-
points: pointList,
|
|
23671
|
-
min: min2,
|
|
23672
|
-
max: max2,
|
|
23673
|
-
lowerBound: sliderValue[0],
|
|
23674
|
-
upperBound: sliderValue[1]
|
|
23675
|
-
}), props.range && renderThumb(0), renderThumb(1))), marks && React__default.default.createElement(Marks, {
|
|
23676
|
-
min: min2,
|
|
23677
|
-
max: max2,
|
|
23678
|
-
marks,
|
|
23679
|
-
lowerBound: sliderValue[0],
|
|
23680
|
-
upperBound: sliderValue[1]
|
|
23681
|
-
})));
|
|
23682
|
-
};
|
|
23683
|
-
const stepper = "";
|
|
23684
23561
|
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;
|
|
23685
23562
|
function _Big_() {
|
|
23686
23563
|
function Big2(n) {
|
|
@@ -24189,6 +24066,182 @@ P.valueOf = function() {
|
|
|
24189
24066
|
return stringify(x, x.e <= Big2.NE || x.e >= Big2.PE, true);
|
|
24190
24067
|
};
|
|
24191
24068
|
var Big = _Big_();
|
|
24069
|
+
const classPrefix$f = `adm-slider`;
|
|
24070
|
+
const defaultProps$e = {
|
|
24071
|
+
min: 0,
|
|
24072
|
+
max: 100,
|
|
24073
|
+
step: 1,
|
|
24074
|
+
ticks: false,
|
|
24075
|
+
range: false,
|
|
24076
|
+
disabled: false,
|
|
24077
|
+
popover: false,
|
|
24078
|
+
residentPopover: false
|
|
24079
|
+
};
|
|
24080
|
+
const Slider = (p) => {
|
|
24081
|
+
var _a;
|
|
24082
|
+
const props = mergeProps(defaultProps$e, p);
|
|
24083
|
+
const {
|
|
24084
|
+
min: min2,
|
|
24085
|
+
max: max2,
|
|
24086
|
+
disabled,
|
|
24087
|
+
marks,
|
|
24088
|
+
ticks,
|
|
24089
|
+
step,
|
|
24090
|
+
icon
|
|
24091
|
+
} = props;
|
|
24092
|
+
function sortValue(val) {
|
|
24093
|
+
return val.sort((a, b) => a - b);
|
|
24094
|
+
}
|
|
24095
|
+
function convertValue(value) {
|
|
24096
|
+
return props.range ? value : [props.min, value];
|
|
24097
|
+
}
|
|
24098
|
+
function reverseValue(value) {
|
|
24099
|
+
const mergedDecimalLen = Math.max(getDecimalLen(step), getDecimalLen(value[0]), getDecimalLen(value[1]));
|
|
24100
|
+
return props.range ? value.map((v) => Big(Big(v).toFixed(mergedDecimalLen)).toNumber()) : Big(Big(value[1]).toFixed(mergedDecimalLen)).toNumber();
|
|
24101
|
+
}
|
|
24102
|
+
function getDecimalLen(n) {
|
|
24103
|
+
return (`${n}`.split(".")[1] || "").length;
|
|
24104
|
+
}
|
|
24105
|
+
function onAfterChange(value) {
|
|
24106
|
+
var _a2;
|
|
24107
|
+
(_a2 = props.onAfterChange) === null || _a2 === void 0 ? void 0 : _a2.call(props, reverseValue(value));
|
|
24108
|
+
}
|
|
24109
|
+
let propsValue = props.value;
|
|
24110
|
+
if (props.range && typeof props.value === "number") {
|
|
24111
|
+
devWarning("Slider", "When `range` prop is enabled, the `value` prop should be an array, like: [0, 0]");
|
|
24112
|
+
propsValue = [0, props.value];
|
|
24113
|
+
}
|
|
24114
|
+
const [rawValue, setRawValue] = usePropsValue({
|
|
24115
|
+
value: propsValue,
|
|
24116
|
+
defaultValue: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : props.range ? [min2, min2] : min2,
|
|
24117
|
+
onChange: props.onChange
|
|
24118
|
+
});
|
|
24119
|
+
const sliderValue = sortValue(convertValue(rawValue));
|
|
24120
|
+
function setSliderValue(value) {
|
|
24121
|
+
const next = sortValue(value);
|
|
24122
|
+
const current = sliderValue;
|
|
24123
|
+
if (next[0] === current[0] && next[1] === current[1])
|
|
24124
|
+
return;
|
|
24125
|
+
setRawValue(reverseValue(next));
|
|
24126
|
+
}
|
|
24127
|
+
const trackRef = React$1.useRef(null);
|
|
24128
|
+
const fillSize = `${100 * (sliderValue[1] - sliderValue[0]) / (max2 - min2)}%`;
|
|
24129
|
+
const fillStart = `${100 * (sliderValue[0] - min2) / (max2 - min2)}%`;
|
|
24130
|
+
const pointList = React$1.useMemo(() => {
|
|
24131
|
+
if (marks) {
|
|
24132
|
+
return Object.keys(marks).map(parseFloat).sort((a, b) => a - b);
|
|
24133
|
+
} else {
|
|
24134
|
+
const points = [];
|
|
24135
|
+
for (let i = Big(min2); i.lt(max2); i = i.plus(step)) {
|
|
24136
|
+
points.push(i.toNumber());
|
|
24137
|
+
}
|
|
24138
|
+
return points;
|
|
24139
|
+
}
|
|
24140
|
+
}, [marks, ticks, step, min2, max2]);
|
|
24141
|
+
function getValueByPosition(position) {
|
|
24142
|
+
const newPosition = position < min2 ? min2 : position > max2 ? max2 : position;
|
|
24143
|
+
let value = min2;
|
|
24144
|
+
if (pointList.length) {
|
|
24145
|
+
value = nearest(pointList, newPosition);
|
|
24146
|
+
} else {
|
|
24147
|
+
const lengthPerStep = 100 / ((max2 - min2) / step);
|
|
24148
|
+
const steps2 = Math.round(newPosition / lengthPerStep);
|
|
24149
|
+
value = steps2 * lengthPerStep * (max2 - min2) * 0.01 + min2;
|
|
24150
|
+
}
|
|
24151
|
+
return value;
|
|
24152
|
+
}
|
|
24153
|
+
const dragLockRef = React$1.useRef(0);
|
|
24154
|
+
const onTrackClick = (event) => {
|
|
24155
|
+
if (dragLockRef.current > 0)
|
|
24156
|
+
return;
|
|
24157
|
+
event.stopPropagation();
|
|
24158
|
+
if (disabled)
|
|
24159
|
+
return;
|
|
24160
|
+
const track = trackRef.current;
|
|
24161
|
+
if (!track)
|
|
24162
|
+
return;
|
|
24163
|
+
const sliderOffsetLeft = track.getBoundingClientRect().left;
|
|
24164
|
+
const position = (event.clientX - sliderOffsetLeft) / Math.ceil(track.offsetWidth) * (max2 - min2) + min2;
|
|
24165
|
+
const targetValue = getValueByPosition(position);
|
|
24166
|
+
let nextSliderValue;
|
|
24167
|
+
if (props.range) {
|
|
24168
|
+
if (Math.abs(targetValue - sliderValue[0]) > Math.abs(targetValue - sliderValue[1])) {
|
|
24169
|
+
nextSliderValue = [sliderValue[0], targetValue];
|
|
24170
|
+
} else {
|
|
24171
|
+
nextSliderValue = [targetValue, sliderValue[1]];
|
|
24172
|
+
}
|
|
24173
|
+
} else {
|
|
24174
|
+
nextSliderValue = [props.min, targetValue];
|
|
24175
|
+
}
|
|
24176
|
+
setSliderValue(nextSliderValue);
|
|
24177
|
+
onAfterChange(nextSliderValue);
|
|
24178
|
+
};
|
|
24179
|
+
const valueBeforeDragRef = React$1.useRef();
|
|
24180
|
+
const renderThumb = (index2) => {
|
|
24181
|
+
return React__default.default.createElement(Thumb, {
|
|
24182
|
+
key: index2,
|
|
24183
|
+
value: sliderValue[index2],
|
|
24184
|
+
min: min2,
|
|
24185
|
+
max: max2,
|
|
24186
|
+
disabled,
|
|
24187
|
+
trackRef,
|
|
24188
|
+
icon,
|
|
24189
|
+
popover: props.popover,
|
|
24190
|
+
residentPopover: props.residentPopover,
|
|
24191
|
+
onDrag: (position, first, last) => {
|
|
24192
|
+
if (first) {
|
|
24193
|
+
dragLockRef.current += 1;
|
|
24194
|
+
valueBeforeDragRef.current = sliderValue;
|
|
24195
|
+
}
|
|
24196
|
+
const val = getValueByPosition(position);
|
|
24197
|
+
const valueBeforeDrag = valueBeforeDragRef.current;
|
|
24198
|
+
if (!valueBeforeDrag)
|
|
24199
|
+
return;
|
|
24200
|
+
const next = [...valueBeforeDrag];
|
|
24201
|
+
next[index2] = val;
|
|
24202
|
+
setSliderValue(next);
|
|
24203
|
+
if (last) {
|
|
24204
|
+
onAfterChange(next);
|
|
24205
|
+
window.setTimeout(() => {
|
|
24206
|
+
dragLockRef.current -= 1;
|
|
24207
|
+
}, 100);
|
|
24208
|
+
}
|
|
24209
|
+
},
|
|
24210
|
+
"aria-label": props["aria-label"]
|
|
24211
|
+
});
|
|
24212
|
+
};
|
|
24213
|
+
return withNativeProps(props, React__default.default.createElement("div", {
|
|
24214
|
+
className: classNames(classPrefix$f, {
|
|
24215
|
+
[`${classPrefix$f}-disabled`]: disabled
|
|
24216
|
+
})
|
|
24217
|
+
}, React__default.default.createElement("div", {
|
|
24218
|
+
className: `${classPrefix$f}-track-container`,
|
|
24219
|
+
onClick: onTrackClick
|
|
24220
|
+
}, React__default.default.createElement("div", {
|
|
24221
|
+
className: `${classPrefix$f}-track`,
|
|
24222
|
+
onClick: onTrackClick,
|
|
24223
|
+
ref: trackRef
|
|
24224
|
+
}, React__default.default.createElement("div", {
|
|
24225
|
+
className: `${classPrefix$f}-fill`,
|
|
24226
|
+
style: {
|
|
24227
|
+
width: fillSize,
|
|
24228
|
+
left: fillStart
|
|
24229
|
+
}
|
|
24230
|
+
}), props.ticks && React__default.default.createElement(Ticks, {
|
|
24231
|
+
points: pointList,
|
|
24232
|
+
min: min2,
|
|
24233
|
+
max: max2,
|
|
24234
|
+
lowerBound: sliderValue[0],
|
|
24235
|
+
upperBound: sliderValue[1]
|
|
24236
|
+
}), props.range && renderThumb(0), renderThumb(1))), marks && React__default.default.createElement(Marks, {
|
|
24237
|
+
min: min2,
|
|
24238
|
+
max: max2,
|
|
24239
|
+
marks,
|
|
24240
|
+
lowerBound: sliderValue[0],
|
|
24241
|
+
upperBound: sliderValue[1]
|
|
24242
|
+
})));
|
|
24243
|
+
};
|
|
24244
|
+
const stepper = "";
|
|
24192
24245
|
const classPrefix$e = `adm-stepper`;
|
|
24193
24246
|
const defaultProps$d = {
|
|
24194
24247
|
defaultValue: 0,
|
|
@@ -24789,7 +24842,7 @@ const Swiper = React$1.forwardRef(staged_1((p, ref) => {
|
|
|
24789
24842
|
swipeNext,
|
|
24790
24843
|
swipePrev
|
|
24791
24844
|
}));
|
|
24792
|
-
useIsomorphicLayoutEffect$
|
|
24845
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
24793
24846
|
const maxIndex = validChildren.length - 1;
|
|
24794
24847
|
if (current > maxIndex) {
|
|
24795
24848
|
swipeTo(maxIndex, true);
|
|
@@ -25112,7 +25165,7 @@ const TextArea = React$1.forwardRef((p, ref) => {
|
|
|
25112
25165
|
return nativeTextAreaRef.current;
|
|
25113
25166
|
}
|
|
25114
25167
|
}));
|
|
25115
|
-
useIsomorphicLayoutEffect$
|
|
25168
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
25116
25169
|
if (!autoSize)
|
|
25117
25170
|
return;
|
|
25118
25171
|
const textArea2 = nativeTextAreaRef.current;
|
|
@@ -25672,7 +25725,7 @@ const VirtualInput = React$1.forwardRef((p, ref) => {
|
|
|
25672
25725
|
return;
|
|
25673
25726
|
content.scrollLeft = content.clientWidth;
|
|
25674
25727
|
}
|
|
25675
|
-
useIsomorphicLayoutEffect$
|
|
25728
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
25676
25729
|
scrollToEnd();
|
|
25677
25730
|
}, [value]);
|
|
25678
25731
|
React$1.useEffect(() => {
|