antd-mobile 5.24.0 → 5.24.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2x/bundle/antd-mobile.cjs.development.js +459 -400
- package/2x/bundle/antd-mobile.cjs.js +11 -11
- package/2x/bundle/antd-mobile.es.development.js +460 -401
- package/2x/bundle/antd-mobile.es.js +5282 -5224
- package/2x/bundle/antd-mobile.umd.development.js +459 -400
- package/2x/bundle/antd-mobile.umd.js +11 -11
- package/2x/bundle/style.css +14 -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.css +1 -0
- 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.css +1 -0
- 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 +459 -400
- package/bundle/antd-mobile.cjs.js +11 -11
- package/bundle/antd-mobile.compatible.umd.js +2 -25558
- package/bundle/antd-mobile.es.development.js +460 -401
- package/bundle/antd-mobile.es.js +5282 -5224
- package/bundle/antd-mobile.umd.development.js +459 -400
- 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.css +1 -0
- 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.css +1 -0
- 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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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,10 +919,12 @@
|
|
|
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
|
-
console.error("useMemoizedFn expected parameter is a function, got "
|
|
927
|
+
console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof fn));
|
|
924
928
|
}
|
|
925
929
|
}
|
|
926
930
|
var fnRef = React$1.useRef(fn);
|
|
@@ -955,9 +959,9 @@
|
|
|
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
|
-
console.error("useUnmount expected parameter is a function, got "
|
|
964
|
+
console.error("useUnmount expected parameter is a function, got ".concat(typeof fn));
|
|
961
965
|
}
|
|
962
966
|
}
|
|
963
967
|
var fnRef = useLatest(fn);
|
|
@@ -1124,9 +1128,9 @@
|
|
|
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
|
-
console.error('useMount: parameter `fn` expected to be a function, but got "'
|
|
1133
|
+
console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof fn, '".'));
|
|
1130
1134
|
}
|
|
1131
1135
|
}
|
|
1132
1136
|
React$1.useEffect(function() {
|
|
@@ -1294,7 +1298,7 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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);
|
|
@@ -1503,17 +1507,22 @@
|
|
|
1503
1507
|
}
|
|
1504
1508
|
return ar;
|
|
1505
1509
|
};
|
|
1506
|
-
var
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1510
|
+
var __spreadArray$2 = globalThis && globalThis.__spreadArray || function(to2, from, pack) {
|
|
1511
|
+
if (pack || arguments.length === 2)
|
|
1512
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
1513
|
+
if (ar || !(i in from)) {
|
|
1514
|
+
if (!ar)
|
|
1515
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
1516
|
+
ar[i] = from[i];
|
|
1517
|
+
}
|
|
1518
|
+
}
|
|
1519
|
+
return to2.concat(ar || Array.prototype.slice.call(from));
|
|
1511
1520
|
};
|
|
1512
1521
|
function useDebounceFn(fn, options) {
|
|
1513
1522
|
var _a;
|
|
1514
|
-
{
|
|
1523
|
+
if (isDev$1) {
|
|
1515
1524
|
if (!isFunction$1(fn)) {
|
|
1516
|
-
console.error("useDebounceFn expected parameter is a function, got "
|
|
1525
|
+
console.error("useDebounceFn expected parameter is a function, got ".concat(typeof fn));
|
|
1517
1526
|
}
|
|
1518
1527
|
}
|
|
1519
1528
|
var fnRef = useLatest(fn);
|
|
@@ -1524,7 +1533,7 @@
|
|
|
1524
1533
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1525
1534
|
args[_i] = arguments[_i];
|
|
1526
1535
|
}
|
|
1527
|
-
return fnRef.current.apply(fnRef,
|
|
1536
|
+
return fnRef.current.apply(fnRef, __spreadArray$2([], __read$6(args), false));
|
|
1528
1537
|
}, wait, options);
|
|
1529
1538
|
}, []);
|
|
1530
1539
|
useUnmount$1(function() {
|
|
@@ -2159,11 +2168,15 @@
|
|
|
2159
2168
|
}
|
|
2160
2169
|
if ("IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype) {
|
|
2161
2170
|
if (!("isIntersecting" in window.IntersectionObserverEntry.prototype)) {
|
|
2162
|
-
Object.defineProperty(
|
|
2163
|
-
|
|
2164
|
-
|
|
2171
|
+
Object.defineProperty(
|
|
2172
|
+
window.IntersectionObserverEntry.prototype,
|
|
2173
|
+
"isIntersecting",
|
|
2174
|
+
{
|
|
2175
|
+
get: function() {
|
|
2176
|
+
return this.intersectionRatio > 0;
|
|
2177
|
+
}
|
|
2165
2178
|
}
|
|
2166
|
-
|
|
2179
|
+
);
|
|
2167
2180
|
}
|
|
2168
2181
|
return;
|
|
2169
2182
|
}
|
|
@@ -2211,7 +2224,10 @@
|
|
|
2211
2224
|
if (options.root && options.root.nodeType != 1 && options.root.nodeType != 9) {
|
|
2212
2225
|
throw new Error("root must be a Document or Element");
|
|
2213
2226
|
}
|
|
2214
|
-
this._checkForIntersections = throttle2(
|
|
2227
|
+
this._checkForIntersections = throttle2(
|
|
2228
|
+
this._checkForIntersections.bind(this),
|
|
2229
|
+
this.THROTTLE_TIMEOUT
|
|
2230
|
+
);
|
|
2215
2231
|
this._callback = callback;
|
|
2216
2232
|
this._observationTargets = [];
|
|
2217
2233
|
this._queuedEntries = [];
|
|
@@ -2772,8 +2788,8 @@
|
|
|
2772
2788
|
}, [], target);
|
|
2773
2789
|
return [state, ratio];
|
|
2774
2790
|
}
|
|
2775
|
-
var useIsomorphicLayoutEffect = isBrowser$3 ? React$1.useLayoutEffect : React$1.useEffect;
|
|
2776
|
-
const useIsomorphicLayoutEffect$
|
|
2791
|
+
var useIsomorphicLayoutEffect$1 = isBrowser$3 ? React$1.useLayoutEffect : React$1.useEffect;
|
|
2792
|
+
const useIsomorphicLayoutEffect$2 = useIsomorphicLayoutEffect$1;
|
|
2777
2793
|
var __awaiter = globalThis && globalThis.__awaiter || function(thisArg, _arguments, P2, generator) {
|
|
2778
2794
|
function adopt(value) {
|
|
2779
2795
|
return value instanceof P2 ? value : new P2(function(resolve) {
|
|
@@ -2917,11 +2933,16 @@
|
|
|
2917
2933
|
}
|
|
2918
2934
|
return ar;
|
|
2919
2935
|
};
|
|
2920
|
-
var
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2936
|
+
var __spreadArray$1 = globalThis && globalThis.__spreadArray || function(to2, from, pack) {
|
|
2937
|
+
if (pack || arguments.length === 2)
|
|
2938
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
2939
|
+
if (ar || !(i in from)) {
|
|
2940
|
+
if (!ar)
|
|
2941
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
2942
|
+
ar[i] = from[i];
|
|
2943
|
+
}
|
|
2944
|
+
}
|
|
2945
|
+
return to2.concat(ar || Array.prototype.slice.call(from));
|
|
2925
2946
|
};
|
|
2926
2947
|
function useLockFn(fn) {
|
|
2927
2948
|
var _this = this;
|
|
@@ -2937,32 +2958,22 @@
|
|
|
2937
2958
|
switch (_a.label) {
|
|
2938
2959
|
case 0:
|
|
2939
2960
|
if (lockRef.current)
|
|
2940
|
-
return [
|
|
2941
|
-
2
|
|
2942
|
-
];
|
|
2961
|
+
return [2];
|
|
2943
2962
|
lockRef.current = true;
|
|
2944
2963
|
_a.label = 1;
|
|
2945
2964
|
case 1:
|
|
2946
2965
|
_a.trys.push([1, 3, , 4]);
|
|
2947
|
-
return [
|
|
2948
|
-
4,
|
|
2949
|
-
fn.apply(void 0, __spread$1(args))
|
|
2950
|
-
];
|
|
2966
|
+
return [4, fn.apply(void 0, __spreadArray$1([], __read$3(args), false))];
|
|
2951
2967
|
case 2:
|
|
2952
2968
|
ret = _a.sent();
|
|
2953
2969
|
lockRef.current = false;
|
|
2954
|
-
return [
|
|
2955
|
-
2,
|
|
2956
|
-
ret
|
|
2957
|
-
];
|
|
2970
|
+
return [2, ret];
|
|
2958
2971
|
case 3:
|
|
2959
2972
|
e_1 = _a.sent();
|
|
2960
2973
|
lockRef.current = false;
|
|
2961
2974
|
throw e_1;
|
|
2962
2975
|
case 4:
|
|
2963
|
-
return [
|
|
2964
|
-
2
|
|
2965
|
-
];
|
|
2976
|
+
return [2];
|
|
2966
2977
|
}
|
|
2967
2978
|
});
|
|
2968
2979
|
});
|
|
@@ -3563,17 +3574,22 @@
|
|
|
3563
3574
|
}
|
|
3564
3575
|
return ar;
|
|
3565
3576
|
};
|
|
3566
|
-
var
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3577
|
+
var __spreadArray = globalThis && globalThis.__spreadArray || function(to2, from, pack) {
|
|
3578
|
+
if (pack || arguments.length === 2)
|
|
3579
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3580
|
+
if (ar || !(i in from)) {
|
|
3581
|
+
if (!ar)
|
|
3582
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
3583
|
+
ar[i] = from[i];
|
|
3584
|
+
}
|
|
3585
|
+
}
|
|
3586
|
+
return to2.concat(ar || Array.prototype.slice.call(from));
|
|
3571
3587
|
};
|
|
3572
3588
|
function useThrottleFn(fn, options) {
|
|
3573
3589
|
var _a;
|
|
3574
|
-
{
|
|
3590
|
+
if (isDev$1) {
|
|
3575
3591
|
if (!isFunction$1(fn)) {
|
|
3576
|
-
console.error("useThrottleFn expected parameter is a function, got "
|
|
3592
|
+
console.error("useThrottleFn expected parameter is a function, got ".concat(typeof fn));
|
|
3577
3593
|
}
|
|
3578
3594
|
}
|
|
3579
3595
|
var fnRef = useLatest(fn);
|
|
@@ -3584,7 +3600,7 @@
|
|
|
3584
3600
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
3585
3601
|
args[_i] = arguments[_i];
|
|
3586
3602
|
}
|
|
3587
|
-
return fnRef.current.apply(fnRef,
|
|
3603
|
+
return fnRef.current.apply(fnRef, __spreadArray([], __read(args), false));
|
|
3588
3604
|
}, wait, options);
|
|
3589
3605
|
}, []);
|
|
3590
3606
|
useUnmount$1(function() {
|
|
@@ -3598,10 +3614,11 @@
|
|
|
3598
3614
|
}
|
|
3599
3615
|
function useTimeout(fn, delay) {
|
|
3600
3616
|
var fnRef = useLatest(fn);
|
|
3601
|
-
var timerRef = React$1.useRef();
|
|
3617
|
+
var timerRef = React$1.useRef(null);
|
|
3602
3618
|
React$1.useEffect(function() {
|
|
3603
|
-
if (!isNumber(delay) || delay < 0)
|
|
3619
|
+
if (!isNumber(delay) || delay < 0) {
|
|
3604
3620
|
return;
|
|
3621
|
+
}
|
|
3605
3622
|
timerRef.current = setTimeout(function() {
|
|
3606
3623
|
fnRef.current();
|
|
3607
3624
|
}, delay);
|
|
@@ -3713,6 +3730,16 @@
|
|
|
3713
3730
|
}
|
|
3714
3731
|
let totalLockCount = 0;
|
|
3715
3732
|
const BODY_LOCK_CLASS = "adm-overflow-hidden";
|
|
3733
|
+
function getScrollableElement(el) {
|
|
3734
|
+
let current = el === null || el === void 0 ? void 0 : el.parentElement;
|
|
3735
|
+
while (current) {
|
|
3736
|
+
if (current.clientHeight < current.scrollHeight) {
|
|
3737
|
+
return current;
|
|
3738
|
+
}
|
|
3739
|
+
current = current.parentElement;
|
|
3740
|
+
}
|
|
3741
|
+
return null;
|
|
3742
|
+
}
|
|
3716
3743
|
function useLockScroll(rootRef, shouldLock) {
|
|
3717
3744
|
const touch = useTouch();
|
|
3718
3745
|
const onTouchMove = (event) => {
|
|
@@ -3721,6 +3748,13 @@
|
|
|
3721
3748
|
const el = getScrollParent(event.target, rootRef.current);
|
|
3722
3749
|
if (!el)
|
|
3723
3750
|
return;
|
|
3751
|
+
if (shouldLock === "strict") {
|
|
3752
|
+
const scrollableParent = getScrollableElement(event.target);
|
|
3753
|
+
if (scrollableParent === document.body || scrollableParent === document.documentElement) {
|
|
3754
|
+
event.preventDefault();
|
|
3755
|
+
return;
|
|
3756
|
+
}
|
|
3757
|
+
}
|
|
3724
3758
|
const {
|
|
3725
3759
|
scrollHeight,
|
|
3726
3760
|
offsetHeight,
|
|
@@ -3800,9 +3834,9 @@
|
|
|
3800
3834
|
raf.cancel = (fn) => {
|
|
3801
3835
|
onStartQueue.delete(fn);
|
|
3802
3836
|
onFrameQueue.delete(fn);
|
|
3837
|
+
onFinishQueue.delete(fn);
|
|
3803
3838
|
updateQueue.delete(fn);
|
|
3804
3839
|
writeQueue.delete(fn);
|
|
3805
|
-
onFinishQueue.delete(fn);
|
|
3806
3840
|
};
|
|
3807
3841
|
raf.sync = (fn) => {
|
|
3808
3842
|
sync = true;
|
|
@@ -3880,14 +3914,15 @@
|
|
|
3880
3914
|
eachSafely(timeouts.splice(0, count), (t) => t.handler());
|
|
3881
3915
|
pendingCount -= count;
|
|
3882
3916
|
}
|
|
3917
|
+
if (!pendingCount) {
|
|
3918
|
+
stop();
|
|
3919
|
+
return;
|
|
3920
|
+
}
|
|
3883
3921
|
onStartQueue.flush();
|
|
3884
3922
|
updateQueue.flush(prevTs ? Math.min(64, ts - prevTs) : 16.667);
|
|
3885
3923
|
onFrameQueue.flush();
|
|
3886
3924
|
writeQueue.flush();
|
|
3887
3925
|
onFinishQueue.flush();
|
|
3888
|
-
if (!pendingCount) {
|
|
3889
|
-
stop();
|
|
3890
|
-
}
|
|
3891
3926
|
}
|
|
3892
3927
|
function makeQueue() {
|
|
3893
3928
|
let next = /* @__PURE__ */ new Set();
|
|
@@ -4407,7 +4442,7 @@
|
|
|
4407
4442
|
return i - 1;
|
|
4408
4443
|
}
|
|
4409
4444
|
function _extends$4() {
|
|
4410
|
-
_extends$4 = Object.assign
|
|
4445
|
+
_extends$4 = Object.assign ? Object.assign.bind() : function(target) {
|
|
4411
4446
|
for (var i = 1; i < arguments.length; i++) {
|
|
4412
4447
|
var source = arguments[i];
|
|
4413
4448
|
for (var key in source) {
|
|
@@ -4569,10 +4604,10 @@
|
|
|
4569
4604
|
function isAnimatedString(value) {
|
|
4570
4605
|
return is.str(value) && (value[0] == "#" || /\d/.test(value) || !isSSR() && cssVariableRegex.test(value) || value in (colors$1 || {}));
|
|
4571
4606
|
}
|
|
4572
|
-
const
|
|
4607
|
+
const useIsomorphicLayoutEffect = isSSR() ? React$1.useEffect : React$1.useLayoutEffect;
|
|
4573
4608
|
const useIsMounted = () => {
|
|
4574
4609
|
const isMounted = React$1.useRef(false);
|
|
4575
|
-
|
|
4610
|
+
useIsomorphicLayoutEffect(() => {
|
|
4576
4611
|
isMounted.current = true;
|
|
4577
4612
|
return () => {
|
|
4578
4613
|
isMounted.current = false;
|
|
@@ -4820,7 +4855,7 @@
|
|
|
4820
4855
|
return parentNode ? parentNode.constructor : is.arr(value) ? AnimatedArray : isAnimatedString(value) ? AnimatedString : AnimatedValue;
|
|
4821
4856
|
}
|
|
4822
4857
|
function _extends$3() {
|
|
4823
|
-
_extends$3 = Object.assign
|
|
4858
|
+
_extends$3 = Object.assign ? Object.assign.bind() : function(target) {
|
|
4824
4859
|
for (var i = 1; i < arguments.length; i++) {
|
|
4825
4860
|
var source = arguments[i];
|
|
4826
4861
|
for (var key in source) {
|
|
@@ -4854,7 +4889,7 @@
|
|
|
4854
4889
|
};
|
|
4855
4890
|
const observer = new PropsObserver(callback, deps);
|
|
4856
4891
|
const observerRef = React$1.useRef();
|
|
4857
|
-
|
|
4892
|
+
useIsomorphicLayoutEffect(() => {
|
|
4858
4893
|
observerRef.current = observer;
|
|
4859
4894
|
each(deps, (dep) => addFluidObserver(dep, observer));
|
|
4860
4895
|
return () => {
|
|
@@ -4939,7 +4974,7 @@
|
|
|
4939
4974
|
};
|
|
4940
4975
|
const getDisplayName = (arg) => is.str(arg) ? arg : arg && is.str(arg.displayName) ? arg.displayName : is.fun(arg) && arg.name || null;
|
|
4941
4976
|
function _extends$2() {
|
|
4942
|
-
_extends$2 = Object.assign
|
|
4977
|
+
_extends$2 = Object.assign ? Object.assign.bind() : function(target) {
|
|
4943
4978
|
for (var i = 1; i < arguments.length; i++) {
|
|
4944
4979
|
var source = arguments[i];
|
|
4945
4980
|
for (var key in source) {
|
|
@@ -5572,6 +5607,7 @@
|
|
|
5572
5607
|
const from = anim.fromValues[i];
|
|
5573
5608
|
const v0 = node2.v0 != null ? node2.v0 : node2.v0 = is.arr(config2.velocity) ? config2.velocity[i] : config2.velocity;
|
|
5574
5609
|
let velocity;
|
|
5610
|
+
const precision = config2.precision || (from == to2 ? 5e-3 : Math.min(1, Math.abs(to2 - from) * 1e-3));
|
|
5575
5611
|
if (!is.und(config2.duration)) {
|
|
5576
5612
|
let p = 1;
|
|
5577
5613
|
if (config2.duration > 0) {
|
|
@@ -5593,11 +5629,10 @@
|
|
|
5593
5629
|
const decay = config2.decay === true ? 0.998 : config2.decay;
|
|
5594
5630
|
const e = Math.exp(-(1 - decay) * elapsed);
|
|
5595
5631
|
position = from + v0 / (1 - decay) * (1 - e);
|
|
5596
|
-
finished = Math.abs(node2.lastPosition - position)
|
|
5632
|
+
finished = Math.abs(node2.lastPosition - position) <= precision;
|
|
5597
5633
|
velocity = v0 * e;
|
|
5598
5634
|
} else {
|
|
5599
5635
|
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
5636
|
const restVelocity = config2.restVelocity || precision / 10;
|
|
5602
5637
|
const bounceFactor = config2.clamp ? 0 : config2.bounce;
|
|
5603
5638
|
const canBounce = !is.und(bounceFactor);
|
|
@@ -6590,7 +6625,7 @@
|
|
|
6590
6625
|
const context = React$1.useContext(SpringContext);
|
|
6591
6626
|
const prevContext = usePrev(context);
|
|
6592
6627
|
const hasContext = context !== prevContext && hasProps(context);
|
|
6593
|
-
|
|
6628
|
+
useIsomorphicLayoutEffect(() => {
|
|
6594
6629
|
layoutId.current++;
|
|
6595
6630
|
state.ctrls = ctrls.current;
|
|
6596
6631
|
const {
|
|
@@ -7676,7 +7711,7 @@
|
|
|
7676
7711
|
};
|
|
7677
7712
|
function useInnerVisible(outerVisible) {
|
|
7678
7713
|
const [innerVisible, setInnerVisible] = React$1.useState(outerVisible);
|
|
7679
|
-
useIsomorphicLayoutEffect$
|
|
7714
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
7680
7715
|
setInnerVisible(outerVisible);
|
|
7681
7716
|
}, [outerVisible]);
|
|
7682
7717
|
return innerVisible;
|
|
@@ -7689,13 +7724,13 @@
|
|
|
7689
7724
|
const props = mergeProps(defaultProps$12, p);
|
|
7690
7725
|
const bodyCls = classNames(`${classPrefix$1k}-body`, props.bodyClassName, `${classPrefix$1k}-body-position-${props.position}`);
|
|
7691
7726
|
const [active, setActive] = React$1.useState(props.visible);
|
|
7692
|
-
useIsomorphicLayoutEffect$
|
|
7727
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
7693
7728
|
if (props.visible) {
|
|
7694
7729
|
setActive(true);
|
|
7695
7730
|
}
|
|
7696
7731
|
}, [props.visible]);
|
|
7697
7732
|
const ref = React$1.useRef(null);
|
|
7698
|
-
useLockScroll(ref, props.disableBodyScroll && active);
|
|
7733
|
+
useLockScroll(ref, props.disableBodyScroll && active ? "strict" : false);
|
|
7699
7734
|
const unmountedRef = useUnmountedRef$1();
|
|
7700
7735
|
const {
|
|
7701
7736
|
percent
|
|
@@ -7994,12 +8029,12 @@
|
|
|
7994
8029
|
};
|
|
7995
8030
|
const avatar = "";
|
|
7996
8031
|
const image = "";
|
|
7997
|
-
var
|
|
8032
|
+
var _stagedComponents_1_1_3_stagedComponents = {};
|
|
7998
8033
|
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
7999
8034
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
8000
8035
|
};
|
|
8001
|
-
Object.defineProperty(
|
|
8002
|
-
var staged_1 =
|
|
8036
|
+
Object.defineProperty(_stagedComponents_1_1_3_stagedComponents, "__esModule", { value: true });
|
|
8037
|
+
var staged_1 = _stagedComponents_1_1_3_stagedComponents.staged = void 0;
|
|
8003
8038
|
const react_1 = __importDefault(React__default.default);
|
|
8004
8039
|
function processNext(next) {
|
|
8005
8040
|
if (typeof next === "function") {
|
|
@@ -8018,7 +8053,7 @@
|
|
|
8018
8053
|
return processNext(next);
|
|
8019
8054
|
};
|
|
8020
8055
|
}
|
|
8021
|
-
staged_1 =
|
|
8056
|
+
staged_1 = _stagedComponents_1_1_3_stagedComponents.staged = staged;
|
|
8022
8057
|
function toCSSLength(val) {
|
|
8023
8058
|
return typeof val === "number" ? `${val}px` : val;
|
|
8024
8059
|
}
|
|
@@ -8034,7 +8069,7 @@
|
|
|
8034
8069
|
ref
|
|
8035
8070
|
});
|
|
8036
8071
|
};
|
|
8037
|
-
const useIsomorphicUpdateLayoutEffect = createUpdateEffect(useIsomorphicLayoutEffect$
|
|
8072
|
+
const useIsomorphicUpdateLayoutEffect = createUpdateEffect(useIsomorphicLayoutEffect$2);
|
|
8038
8073
|
const ImageIcon = () => React__default.default.createElement("svg", {
|
|
8039
8074
|
viewBox: "0 0 48 48",
|
|
8040
8075
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -8416,7 +8451,7 @@
|
|
|
8416
8451
|
var n = d.startOf;
|
|
8417
8452
|
d.startOf = function(e2, t2) {
|
|
8418
8453
|
var i2 = this.$utils(), s2 = !!i2.u(t2) || t2;
|
|
8419
|
-
return i2.p(e2)
|
|
8454
|
+
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
8455
|
};
|
|
8421
8456
|
};
|
|
8422
8457
|
});
|
|
@@ -8656,7 +8691,7 @@
|
|
|
8656
8691
|
const capsuleTabs = "";
|
|
8657
8692
|
function useResizeEffect(effect, targetRef) {
|
|
8658
8693
|
const fn = useMemoizedFn(effect);
|
|
8659
|
-
useIsomorphicLayoutEffect$
|
|
8694
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
8660
8695
|
const target = targetRef.current;
|
|
8661
8696
|
if (!target)
|
|
8662
8697
|
return;
|
|
@@ -8734,7 +8769,7 @@
|
|
|
8734
8769
|
immediate: immediate && !scrollLeft.isAnimating
|
|
8735
8770
|
});
|
|
8736
8771
|
}
|
|
8737
|
-
useIsomorphicLayoutEffect$
|
|
8772
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
8738
8773
|
animate(true);
|
|
8739
8774
|
}, []);
|
|
8740
8775
|
useIsomorphicUpdateLayoutEffect(() => {
|
|
@@ -8811,7 +8846,7 @@
|
|
|
8811
8846
|
}
|
|
8812
8847
|
}));
|
|
8813
8848
|
};
|
|
8814
|
-
var
|
|
8849
|
+
var _reactIs_17_0_2_reactIs = { exports: {} };
|
|
8815
8850
|
var reactIs_development$1 = {};
|
|
8816
8851
|
/** @license React v17.0.2
|
|
8817
8852
|
* react-is.development.js
|
|
@@ -9006,12 +9041,12 @@
|
|
|
9006
9041
|
{
|
|
9007
9042
|
module2.exports = reactIs_development$1;
|
|
9008
9043
|
}
|
|
9009
|
-
})(
|
|
9044
|
+
})(_reactIs_17_0_2_reactIs);
|
|
9010
9045
|
function traverseReactNode(children, fn) {
|
|
9011
9046
|
let i = 0;
|
|
9012
9047
|
function handle(target) {
|
|
9013
9048
|
React__default.default.Children.forEach(target, (child) => {
|
|
9014
|
-
if (!
|
|
9049
|
+
if (!_reactIs_17_0_2_reactIs.exports.isFragment(child)) {
|
|
9015
9050
|
fn(child, i);
|
|
9016
9051
|
i += 1;
|
|
9017
9052
|
} else {
|
|
@@ -9210,7 +9245,7 @@
|
|
|
9210
9245
|
}
|
|
9211
9246
|
function _objectSpread2$1(target) {
|
|
9212
9247
|
for (var i = 1; i < arguments.length; i++) {
|
|
9213
|
-
var source = arguments[i]
|
|
9248
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
9214
9249
|
i % 2 ? ownKeys$1(Object(source), true).forEach(function(key) {
|
|
9215
9250
|
_defineProperty$1(target, key, source[key]);
|
|
9216
9251
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function(key) {
|
|
@@ -9932,7 +9967,7 @@ Please upgrade to the latest version.`);
|
|
|
9932
9967
|
this.emit();
|
|
9933
9968
|
}
|
|
9934
9969
|
pointerClick(event) {
|
|
9935
|
-
if (!this.state.tap) {
|
|
9970
|
+
if (!this.state.tap && event.detail > 0) {
|
|
9936
9971
|
event.preventDefault();
|
|
9937
9972
|
event.stopPropagation();
|
|
9938
9973
|
}
|
|
@@ -10640,23 +10675,21 @@ This message will only appear in development mode.`);
|
|
|
10640
10675
|
}
|
|
10641
10676
|
return result2;
|
|
10642
10677
|
}
|
|
10643
|
-
function parse$1(
|
|
10644
|
-
const _ref =
|
|
10678
|
+
function parse$1(newConfig, gestureKey, _config = {}) {
|
|
10679
|
+
const _ref = newConfig, {
|
|
10645
10680
|
target,
|
|
10646
10681
|
eventOptions,
|
|
10647
10682
|
window: window2,
|
|
10648
10683
|
enabled,
|
|
10649
10684
|
transform
|
|
10650
10685
|
} = _ref, rest = _objectWithoutProperties$1(_ref, _excluded$3);
|
|
10651
|
-
|
|
10652
|
-
|
|
10653
|
-
|
|
10654
|
-
|
|
10655
|
-
|
|
10656
|
-
|
|
10657
|
-
|
|
10658
|
-
}, sharedConfigResolver)
|
|
10659
|
-
};
|
|
10686
|
+
_config.shared = resolveWith({
|
|
10687
|
+
target,
|
|
10688
|
+
eventOptions,
|
|
10689
|
+
window: window2,
|
|
10690
|
+
enabled,
|
|
10691
|
+
transform
|
|
10692
|
+
}, sharedConfigResolver);
|
|
10660
10693
|
if (gestureKey) {
|
|
10661
10694
|
const resolver = ConfigResolverMap.get(gestureKey);
|
|
10662
10695
|
_config[gestureKey] = resolveWith(_objectSpread2$1({
|
|
@@ -10760,7 +10793,7 @@ This message will only appear in development mode.`);
|
|
|
10760
10793
|
this.nativeHandlers = nativeHandlers;
|
|
10761
10794
|
}
|
|
10762
10795
|
applyConfig(config2, gestureKey) {
|
|
10763
|
-
this.config = parse$1(config2, gestureKey);
|
|
10796
|
+
this.config = parse$1(config2, gestureKey, this.config);
|
|
10764
10797
|
}
|
|
10765
10798
|
clean() {
|
|
10766
10799
|
this._targetEventStore.clean();
|
|
@@ -11007,13 +11040,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11007
11040
|
const rootRef = React$1.useRef(null);
|
|
11008
11041
|
const itemHeightMeasureRef = React$1.useRef(null);
|
|
11009
11042
|
const itemHeight = React$1.useRef(34);
|
|
11010
|
-
useIsomorphicLayoutEffect$
|
|
11043
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
11011
11044
|
const itemHeightMeasure = itemHeightMeasureRef.current;
|
|
11012
11045
|
if (!itemHeightMeasure)
|
|
11013
11046
|
return;
|
|
11014
11047
|
itemHeight.current = measureCSSLength(window.getComputedStyle(itemHeightMeasure).getPropertyValue("height"));
|
|
11015
11048
|
});
|
|
11016
|
-
useIsomorphicLayoutEffect$
|
|
11049
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
11017
11050
|
if (draggingRef.current)
|
|
11018
11051
|
return;
|
|
11019
11052
|
if (value === null)
|
|
@@ -11027,7 +11060,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11027
11060
|
immediate: y.goal !== finalPosition
|
|
11028
11061
|
});
|
|
11029
11062
|
}, [value, column]);
|
|
11030
|
-
useIsomorphicLayoutEffect$
|
|
11063
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
11031
11064
|
if (column.length === 0) {
|
|
11032
11065
|
if (value !== null) {
|
|
11033
11066
|
onSelect(null);
|
|
@@ -11262,7 +11295,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11262
11295
|
return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
|
|
11263
11296
|
}
|
|
11264
11297
|
var objectIs = typeof Object.is === "function" ? Object.is : is2;
|
|
11265
|
-
var useState = React2.useState, useEffect = React2.useEffect,
|
|
11298
|
+
var useState = React2.useState, useEffect = React2.useEffect, useLayoutEffect = React2.useLayoutEffect, useDebugValue = React2.useDebugValue;
|
|
11266
11299
|
var didWarnOld18Alpha = false;
|
|
11267
11300
|
var didWarnUncachedGetSnapshot = false;
|
|
11268
11301
|
function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
|
|
@@ -11290,7 +11323,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11290
11323
|
getSnapshot
|
|
11291
11324
|
}
|
|
11292
11325
|
}), inst = _useState[0].inst, forceUpdate = _useState[1];
|
|
11293
|
-
|
|
11326
|
+
useLayoutEffect(function() {
|
|
11294
11327
|
inst.value = value;
|
|
11295
11328
|
inst.getSnapshot = getSnapshot;
|
|
11296
11329
|
if (checkIfSnapshotChanged(inst)) {
|
|
@@ -11874,7 +11907,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11874
11907
|
immediate
|
|
11875
11908
|
});
|
|
11876
11909
|
}
|
|
11877
|
-
useIsomorphicLayoutEffect$
|
|
11910
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
11878
11911
|
animate(!x.isAnimating);
|
|
11879
11912
|
}, []);
|
|
11880
11913
|
useIsomorphicUpdateLayoutEffect(() => {
|
|
@@ -11909,7 +11942,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11909
11942
|
trailing: true,
|
|
11910
11943
|
leading: true
|
|
11911
11944
|
});
|
|
11912
|
-
useIsomorphicLayoutEffect$
|
|
11945
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
11913
11946
|
updateMask(true);
|
|
11914
11947
|
}, []);
|
|
11915
11948
|
return withNativeProps(props, React__default.default.createElement("div", {
|
|
@@ -12499,7 +12532,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12499
12532
|
}
|
|
12500
12533
|
});
|
|
12501
12534
|
const [active, setActive] = React$1.useState(props.visible);
|
|
12502
|
-
useIsomorphicLayoutEffect$
|
|
12535
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
12503
12536
|
if (props.visible) {
|
|
12504
12537
|
setActive(true);
|
|
12505
12538
|
}
|
|
@@ -12561,18 +12594,22 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12561
12594
|
const Group$1 = (p) => {
|
|
12562
12595
|
const props = mergeProps(defaultProps$O, p);
|
|
12563
12596
|
const [value, setValue2] = usePropsValue(props);
|
|
12564
|
-
return React__default.default.createElement(
|
|
12565
|
-
|
|
12566
|
-
|
|
12567
|
-
|
|
12568
|
-
|
|
12569
|
-
|
|
12570
|
-
|
|
12571
|
-
|
|
12572
|
-
|
|
12597
|
+
return React__default.default.createElement(
|
|
12598
|
+
CheckboxGroupContext.Provider,
|
|
12599
|
+
{
|
|
12600
|
+
value: {
|
|
12601
|
+
value,
|
|
12602
|
+
disabled: props.disabled,
|
|
12603
|
+
check: (v) => {
|
|
12604
|
+
setValue2([...value, v]);
|
|
12605
|
+
},
|
|
12606
|
+
uncheck: (v) => {
|
|
12607
|
+
setValue2(value.filter((item) => item !== v));
|
|
12608
|
+
}
|
|
12573
12609
|
}
|
|
12574
|
-
}
|
|
12575
|
-
|
|
12610
|
+
},
|
|
12611
|
+
props.children
|
|
12612
|
+
);
|
|
12576
12613
|
};
|
|
12577
12614
|
const CheckIcon = React$1.memo((props) => {
|
|
12578
12615
|
return withNativeProps(props, React__default.default.createElement("svg", {
|
|
@@ -12856,7 +12893,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12856
12893
|
return function(e, n) {
|
|
12857
12894
|
n.prototype.isoWeeksInYear = function() {
|
|
12858
12895
|
var e2 = this.isLeapYear(), n2 = this.endOf("y").day();
|
|
12859
|
-
return
|
|
12896
|
+
return 4 === n2 || e2 && 5 === n2 ? 53 : 52;
|
|
12860
12897
|
};
|
|
12861
12898
|
};
|
|
12862
12899
|
});
|
|
@@ -13604,7 +13641,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13604
13641
|
Item
|
|
13605
13642
|
});
|
|
13606
13643
|
const ellipsis = "";
|
|
13607
|
-
var
|
|
13644
|
+
var _runes_0_4_3_runes = { exports: {} };
|
|
13608
13645
|
const HIGH_SURROGATE_START = 55296;
|
|
13609
13646
|
const HIGH_SURROGATE_END = 56319;
|
|
13610
13647
|
const LOW_SURROGATE_START = 56320;
|
|
@@ -13722,13 +13759,14 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13722
13759
|
}
|
|
13723
13760
|
return chars.slice(start2, endIndex).join("");
|
|
13724
13761
|
}
|
|
13725
|
-
|
|
13726
|
-
|
|
13762
|
+
_runes_0_4_3_runes.exports = runes;
|
|
13763
|
+
_runes_0_4_3_runes.exports.substr = substring;
|
|
13727
13764
|
const classPrefix$S = `adm-ellipsis`;
|
|
13728
13765
|
const defaultProps$G = {
|
|
13729
13766
|
direction: "end",
|
|
13730
13767
|
rows: 1,
|
|
13731
13768
|
expandText: "",
|
|
13769
|
+
content: "",
|
|
13732
13770
|
collapseText: "",
|
|
13733
13771
|
stopPropagationForActionButtons: [],
|
|
13734
13772
|
onContentClick: () => {
|
|
@@ -13740,7 +13778,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13740
13778
|
const [ellipsised, setEllipsised] = React$1.useState({});
|
|
13741
13779
|
const [expanded, setExpanded] = React$1.useState(false);
|
|
13742
13780
|
const [exceeded, setExceeded] = React$1.useState(false);
|
|
13743
|
-
const chars = React$1.useMemo(() =>
|
|
13781
|
+
const chars = React$1.useMemo(() => _runes_0_4_3_runes.exports(props.content), [props.content]);
|
|
13744
13782
|
function getSubString(start2, end) {
|
|
13745
13783
|
return chars.slice(start2, end).join("");
|
|
13746
13784
|
}
|
|
@@ -13831,7 +13869,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13831
13869
|
document.body.removeChild(container);
|
|
13832
13870
|
}
|
|
13833
13871
|
useResizeEffect(calcEllipsised, rootRef);
|
|
13834
|
-
useIsomorphicLayoutEffect$
|
|
13872
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
13835
13873
|
calcEllipsised();
|
|
13836
13874
|
}, [props.content, props.direction, props.rows, props.expandText, props.collapseText]);
|
|
13837
13875
|
const expandActionElement = exceeded && props.expandText ? withStopPropagation(props.stopPropagationForActionButtons, React__default.default.createElement("a", {
|
|
@@ -14740,7 +14778,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14740
14778
|
}
|
|
14741
14779
|
function _objectSpread2(target) {
|
|
14742
14780
|
for (var i = 1; i < arguments.length; i++) {
|
|
14743
|
-
var source = arguments[i]
|
|
14781
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
14744
14782
|
i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
|
|
14745
14783
|
_defineProperty(target, key, source[key]);
|
|
14746
14784
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
@@ -14862,10 +14900,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14862
14900
|
}
|
|
14863
14901
|
function _typeof$1(obj) {
|
|
14864
14902
|
"@babel/helpers - typeof";
|
|
14865
|
-
return _typeof$1 = typeof Symbol
|
|
14903
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
14866
14904
|
return typeof obj2;
|
|
14867
14905
|
} : function(obj2) {
|
|
14868
|
-
return obj2 && typeof Symbol
|
|
14906
|
+
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
14869
14907
|
}, _typeof$1(obj);
|
|
14870
14908
|
}
|
|
14871
14909
|
function _possibleConstructorReturn(self2, call2) {
|
|
@@ -14889,7 +14927,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14889
14927
|
return _possibleConstructorReturn(this, result2);
|
|
14890
14928
|
};
|
|
14891
14929
|
}
|
|
14892
|
-
var
|
|
14930
|
+
var _reactIs_16_13_1_reactIs = { exports: {} };
|
|
14893
14931
|
var reactIs_development = {};
|
|
14894
14932
|
/** @license React v16.13.1
|
|
14895
14933
|
* react-is.development.js
|
|
@@ -15049,7 +15087,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
15049
15087
|
{
|
|
15050
15088
|
module2.exports = reactIs_development;
|
|
15051
15089
|
}
|
|
15052
|
-
})(
|
|
15090
|
+
})(_reactIs_16_13_1_reactIs);
|
|
15053
15091
|
function toArray$2(children) {
|
|
15054
15092
|
var option = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
15055
15093
|
var ret = [];
|
|
@@ -15059,7 +15097,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
15059
15097
|
}
|
|
15060
15098
|
if (Array.isArray(child)) {
|
|
15061
15099
|
ret = ret.concat(toArray$2(child));
|
|
15062
|
-
} else if (
|
|
15100
|
+
} else if (_reactIs_16_13_1_reactIs.exports.isFragment(child) && child.props) {
|
|
15063
15101
|
ret = ret.concat(toArray$2(child.props.children, option));
|
|
15064
15102
|
} else {
|
|
15065
15103
|
ret.push(child);
|
|
@@ -15127,11 +15165,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
15127
15165
|
return Array.isArray(value) ? value : [value];
|
|
15128
15166
|
}
|
|
15129
15167
|
function _regeneratorRuntime() {
|
|
15130
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
15131
15168
|
_regeneratorRuntime = function _regeneratorRuntime2() {
|
|
15132
15169
|
return exports3;
|
|
15133
15170
|
};
|
|
15134
|
-
var exports3 = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = typeof Symbol
|
|
15171
|
+
var exports3 = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
15135
15172
|
function define2(obj, key, value) {
|
|
15136
15173
|
return Object.defineProperty(obj, key, {
|
|
15137
15174
|
value,
|
|
@@ -15152,10 +15189,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
15152
15189
|
return generator._invoke = function(innerFn2, self3, context2) {
|
|
15153
15190
|
var state = "suspendedStart";
|
|
15154
15191
|
return function(method2, arg) {
|
|
15155
|
-
if (
|
|
15192
|
+
if ("executing" === state)
|
|
15156
15193
|
throw new Error("Generator is already running");
|
|
15157
|
-
if (
|
|
15158
|
-
if (
|
|
15194
|
+
if ("completed" === state) {
|
|
15195
|
+
if ("throw" === method2)
|
|
15159
15196
|
throw arg;
|
|
15160
15197
|
return doneResult();
|
|
15161
15198
|
}
|
|
@@ -15169,17 +15206,17 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
15169
15206
|
return delegateResult;
|
|
15170
15207
|
}
|
|
15171
15208
|
}
|
|
15172
|
-
if (context2.method
|
|
15209
|
+
if ("next" === context2.method)
|
|
15173
15210
|
context2.sent = context2._sent = context2.arg;
|
|
15174
|
-
else if (context2.method
|
|
15175
|
-
if (
|
|
15211
|
+
else if ("throw" === context2.method) {
|
|
15212
|
+
if ("suspendedStart" === state)
|
|
15176
15213
|
throw state = "completed", context2.arg;
|
|
15177
15214
|
context2.dispatchException(context2.arg);
|
|
15178
15215
|
} else
|
|
15179
|
-
context2.method
|
|
15216
|
+
"return" === context2.method && context2.abrupt("return", context2.arg);
|
|
15180
15217
|
state = "executing";
|
|
15181
15218
|
var record2 = tryCatch(innerFn2, self3, context2);
|
|
15182
|
-
if (record2.type
|
|
15219
|
+
if ("normal" === record2.type) {
|
|
15183
15220
|
if (state = context2.done ? "completed" : "suspendedYield", record2.arg === ContinueSentinel)
|
|
15184
15221
|
continue;
|
|
15185
15222
|
return {
|
|
@@ -15187,7 +15224,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
15187
15224
|
done: context2.done
|
|
15188
15225
|
};
|
|
15189
15226
|
}
|
|
15190
|
-
record2.type
|
|
15227
|
+
"throw" === record2.type && (state = "completed", context2.method = "throw", context2.arg = record2.arg);
|
|
15191
15228
|
}
|
|
15192
15229
|
};
|
|
15193
15230
|
}(innerFn, self2, context), generator;
|
|
@@ -15230,9 +15267,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
15230
15267
|
function AsyncIterator(generator, PromiseImpl) {
|
|
15231
15268
|
function invoke(method2, arg, resolve, reject) {
|
|
15232
15269
|
var record2 = tryCatch(generator[method2], generator, arg);
|
|
15233
|
-
if (record2.type
|
|
15270
|
+
if ("throw" !== record2.type) {
|
|
15234
15271
|
var result2 = record2.arg, value = result2.value;
|
|
15235
|
-
return value && _typeof$1(value)
|
|
15272
|
+
return value && "object" == _typeof$1(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function(value2) {
|
|
15236
15273
|
invoke("next", value2, resolve, reject);
|
|
15237
15274
|
}, function(err) {
|
|
15238
15275
|
invoke("throw", err, resolve, reject);
|
|
@@ -15256,19 +15293,19 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
15256
15293
|
}
|
|
15257
15294
|
function maybeInvokeDelegate(delegate, context) {
|
|
15258
15295
|
var method2 = 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
|
|
15296
|
+
if (void 0 === method2) {
|
|
15297
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
15298
|
+
if (delegate.iterator["return"] && (context.method = "return", context.arg = void 0, maybeInvokeDelegate(delegate, context), "throw" === context.method))
|
|
15262
15299
|
return ContinueSentinel;
|
|
15263
15300
|
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
15264
15301
|
}
|
|
15265
15302
|
return ContinueSentinel;
|
|
15266
15303
|
}
|
|
15267
15304
|
var record2 = tryCatch(method2, delegate.iterator, context.arg);
|
|
15268
|
-
if (record2.type
|
|
15305
|
+
if ("throw" === record2.type)
|
|
15269
15306
|
return context.method = "throw", context.arg = record2.arg, context.delegate = null, ContinueSentinel;
|
|
15270
15307
|
var info = record2.arg;
|
|
15271
|
-
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, context.method
|
|
15308
|
+
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
15309
|
}
|
|
15273
15310
|
function pushTryEntry(locs) {
|
|
15274
15311
|
var entry = {
|
|
@@ -15290,7 +15327,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
15290
15327
|
var iteratorMethod = iterable[iteratorSymbol];
|
|
15291
15328
|
if (iteratorMethod)
|
|
15292
15329
|
return iteratorMethod.call(iterable);
|
|
15293
|
-
if (typeof iterable.next
|
|
15330
|
+
if ("function" == typeof iterable.next)
|
|
15294
15331
|
return iterable;
|
|
15295
15332
|
if (!isNaN(iterable.length)) {
|
|
15296
15333
|
var i = -1, next = function next2() {
|
|
@@ -15314,8 +15351,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
15314
15351
|
};
|
|
15315
15352
|
}
|
|
15316
15353
|
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define2(Gp, "constructor", GeneratorFunctionPrototype), define2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define2(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports3.isGeneratorFunction = function(genFun) {
|
|
15317
|
-
var ctor = typeof genFun
|
|
15318
|
-
return !!ctor && (ctor === GeneratorFunction || (ctor.displayName || ctor.name)
|
|
15354
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
15355
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
15319
15356
|
}, exports3.mark = function(genFun) {
|
|
15320
15357
|
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define2(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
15321
15358
|
}, exports3.awrap = function(arg) {
|
|
@@ -15325,7 +15362,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
15325
15362
|
}, defineIteratorMethods(AsyncIterator.prototype), define2(AsyncIterator.prototype, asyncIteratorSymbol, function() {
|
|
15326
15363
|
return this;
|
|
15327
15364
|
}), exports3.AsyncIterator = AsyncIterator, exports3.async = function(innerFn, outerFn, self2, tryLocsList, PromiseImpl) {
|
|
15328
|
-
|
|
15365
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
15329
15366
|
var iter = new AsyncIterator(wrap(innerFn, outerFn, self2, tryLocsList), PromiseImpl);
|
|
15330
15367
|
return exports3.isGeneratorFunction(outerFn) ? iter : iter.next().then(function(result2) {
|
|
15331
15368
|
return result2.done ? result2.value : iter.next();
|
|
@@ -15352,13 +15389,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
15352
15389
|
reset: function reset(skipTempReset) {
|
|
15353
15390
|
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
15391
|
for (var name in this) {
|
|
15355
|
-
name.charAt(0)
|
|
15392
|
+
"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = void 0);
|
|
15356
15393
|
}
|
|
15357
15394
|
},
|
|
15358
15395
|
stop: function stop2() {
|
|
15359
15396
|
this.done = true;
|
|
15360
15397
|
var rootRecord = this.tryEntries[0].completion;
|
|
15361
|
-
if (rootRecord.type
|
|
15398
|
+
if ("throw" === rootRecord.type)
|
|
15362
15399
|
throw rootRecord.arg;
|
|
15363
15400
|
return this.rval;
|
|
15364
15401
|
},
|
|
@@ -15371,7 +15408,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
15371
15408
|
}
|
|
15372
15409
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
15373
15410
|
var entry = this.tryEntries[i], record2 = entry.completion;
|
|
15374
|
-
if (entry.tryLoc
|
|
15411
|
+
if ("root" === entry.tryLoc)
|
|
15375
15412
|
return handle("end");
|
|
15376
15413
|
if (entry.tryLoc <= this.prev) {
|
|
15377
15414
|
var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
@@ -15400,14 +15437,14 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
15400
15437
|
break;
|
|
15401
15438
|
}
|
|
15402
15439
|
}
|
|
15403
|
-
finallyEntry && (
|
|
15440
|
+
finallyEntry && ("break" === type2 || "continue" === type2) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
15404
15441
|
var record2 = finallyEntry ? finallyEntry.completion : {};
|
|
15405
15442
|
return record2.type = type2, record2.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record2);
|
|
15406
15443
|
},
|
|
15407
15444
|
complete: function complete(record2, afterLoc) {
|
|
15408
|
-
if (record2.type
|
|
15445
|
+
if ("throw" === record2.type)
|
|
15409
15446
|
throw record2.arg;
|
|
15410
|
-
return
|
|
15447
|
+
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
15448
|
},
|
|
15412
15449
|
finish: function finish(finallyLoc) {
|
|
15413
15450
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
@@ -15421,7 +15458,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
15421
15458
|
var entry = this.tryEntries[i];
|
|
15422
15459
|
if (entry.tryLoc === tryLoc) {
|
|
15423
15460
|
var record2 = entry.completion;
|
|
15424
|
-
if (record2.type
|
|
15461
|
+
if ("throw" === record2.type) {
|
|
15425
15462
|
var thrown = record2.arg;
|
|
15426
15463
|
resetTryEntry(entry);
|
|
15427
15464
|
}
|
|
@@ -15435,7 +15472,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
15435
15472
|
iterator: values(iterable),
|
|
15436
15473
|
resultName,
|
|
15437
15474
|
nextLoc
|
|
15438
|
-
}, this.method
|
|
15475
|
+
}, "next" === this.method && (this.arg = void 0), ContinueSentinel;
|
|
15439
15476
|
}
|
|
15440
15477
|
}, exports3;
|
|
15441
15478
|
}
|
|
@@ -16703,7 +16740,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16703
16740
|
}
|
|
16704
16741
|
var sourceKeys = Object.keys(source);
|
|
16705
16742
|
var targetKeys = Object.keys(target);
|
|
16706
|
-
var keys2 = new Set([].concat(
|
|
16743
|
+
var keys2 = new Set([].concat(sourceKeys, targetKeys));
|
|
16707
16744
|
return _toConsumableArray(keys2).every(function(key) {
|
|
16708
16745
|
var sourceValue = source[key];
|
|
16709
16746
|
var targetValue = target[key];
|
|
@@ -17167,10 +17204,11 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17167
17204
|
}).then(function() {
|
|
17168
17205
|
var ruleErrors = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : EMPTY_ERRORS;
|
|
17169
17206
|
if (_this.validatePromise === rootPromise) {
|
|
17207
|
+
var _ruleErrors$forEach;
|
|
17170
17208
|
_this.validatePromise = null;
|
|
17171
17209
|
var nextErrors = [];
|
|
17172
17210
|
var nextWarnings = [];
|
|
17173
|
-
ruleErrors.forEach(function(_ref3) {
|
|
17211
|
+
(_ruleErrors$forEach = ruleErrors.forEach) === null || _ruleErrors$forEach === void 0 ? void 0 : _ruleErrors$forEach.call(ruleErrors, function(_ref3) {
|
|
17174
17212
|
var warningOnly = _ref3.rule.warningOnly, _ref3$errors = _ref3.errors, errors = _ref3$errors === void 0 ? EMPTY_ERRORS : _ref3$errors;
|
|
17175
17213
|
if (warningOnly) {
|
|
17176
17214
|
nextWarnings.push.apply(nextWarnings, _toConsumableArray(errors));
|
|
@@ -18259,9 +18297,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18259
18297
|
warnings: []
|
|
18260
18298
|
};
|
|
18261
18299
|
}).catch(function(ruleErrors) {
|
|
18300
|
+
var _ruleErrors$forEach;
|
|
18262
18301
|
var mergedErrors = [];
|
|
18263
18302
|
var mergedWarnings = [];
|
|
18264
|
-
ruleErrors.forEach(function(_ref6) {
|
|
18303
|
+
(_ruleErrors$forEach = ruleErrors.forEach) === null || _ruleErrors$forEach === void 0 ? void 0 : _ruleErrors$forEach.call(ruleErrors, function(_ref6) {
|
|
18265
18304
|
var warningOnly = _ref6.rule.warningOnly, errors = _ref6.errors;
|
|
18266
18305
|
if (warningOnly) {
|
|
18267
18306
|
mergedWarnings.push.apply(mergedWarnings, _toConsumableArray(errors));
|
|
@@ -18445,9 +18484,12 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18445
18484
|
if (!mountRef.current) {
|
|
18446
18485
|
mountRef.current = true;
|
|
18447
18486
|
}
|
|
18448
|
-
React__namespace.useEffect(
|
|
18449
|
-
|
|
18450
|
-
|
|
18487
|
+
React__namespace.useEffect(
|
|
18488
|
+
function() {
|
|
18489
|
+
return destroyForm;
|
|
18490
|
+
},
|
|
18491
|
+
[]
|
|
18492
|
+
);
|
|
18451
18493
|
var childrenNode;
|
|
18452
18494
|
var childrenRenderProps = typeof children === "function";
|
|
18453
18495
|
if (childrenRenderProps) {
|
|
@@ -18497,8 +18539,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18497
18539
|
}
|
|
18498
18540
|
}
|
|
18499
18541
|
function useWatch() {
|
|
18500
|
-
var
|
|
18501
|
-
|
|
18542
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
18543
|
+
args[_key] = arguments[_key];
|
|
18544
|
+
}
|
|
18545
|
+
var _args$ = args[0], dependencies = _args$ === void 0 ? [] : _args$, form = args[1];
|
|
18502
18546
|
var _useState = React$1.useState(), _useState2 = _slicedToArray(_useState, 2), value = _useState2[0], setValue2 = _useState2[1];
|
|
18503
18547
|
var valueStr = React$1.useMemo(function() {
|
|
18504
18548
|
return stringify$1(value);
|
|
@@ -18509,29 +18553,32 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18509
18553
|
var formInstance = form || fieldContext;
|
|
18510
18554
|
var isValidForm = formInstance && formInstance._init;
|
|
18511
18555
|
{
|
|
18512
|
-
warningOnce$1(isValidForm, "useWatch requires a form instance since it can not auto detect from context.");
|
|
18556
|
+
warningOnce$1(args.length === 2 ? form ? isValidForm : true : isValidForm, "useWatch requires a form instance since it can not auto detect from context.");
|
|
18513
18557
|
}
|
|
18514
18558
|
var namePath = getNamePath(dependencies);
|
|
18515
18559
|
var namePathRef = React$1.useRef(namePath);
|
|
18516
18560
|
namePathRef.current = namePath;
|
|
18517
|
-
React$1.useEffect(
|
|
18518
|
-
|
|
18519
|
-
|
|
18520
|
-
|
|
18521
|
-
var getFieldsValue = formInstance.getFieldsValue, getInternalHooks = formInstance.getInternalHooks;
|
|
18522
|
-
var _getInternalHooks = getInternalHooks(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);
|
|
18561
|
+
React$1.useEffect(
|
|
18562
|
+
function() {
|
|
18563
|
+
if (!isValidForm) {
|
|
18564
|
+
return;
|
|
18529
18565
|
}
|
|
18530
|
-
|
|
18531
|
-
|
|
18532
|
-
|
|
18533
|
-
|
|
18534
|
-
|
|
18566
|
+
var getFieldsValue = formInstance.getFieldsValue, getInternalHooks = formInstance.getInternalHooks;
|
|
18567
|
+
var _getInternalHooks = getInternalHooks(HOOK_MARK$1), registerWatch = _getInternalHooks.registerWatch;
|
|
18568
|
+
var cancelRegister = registerWatch(function(store) {
|
|
18569
|
+
var newValue = getValue(store, namePathRef.current);
|
|
18570
|
+
var nextValueStr = stringify$1(newValue);
|
|
18571
|
+
if (valueStrRef.current !== nextValueStr) {
|
|
18572
|
+
valueStrRef.current = nextValueStr;
|
|
18573
|
+
setValue2(newValue);
|
|
18574
|
+
}
|
|
18575
|
+
});
|
|
18576
|
+
var initialValue = getValue(getFieldsValue(), namePathRef.current);
|
|
18577
|
+
setValue2(initialValue);
|
|
18578
|
+
return cancelRegister;
|
|
18579
|
+
},
|
|
18580
|
+
[isValidForm]
|
|
18581
|
+
);
|
|
18535
18582
|
return value;
|
|
18536
18583
|
}
|
|
18537
18584
|
var InternalForm = /* @__PURE__ */ React__namespace.forwardRef(Form$1);
|
|
@@ -18884,10 +18931,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18884
18931
|
(function(module2) {
|
|
18885
18932
|
function _typeof2(obj) {
|
|
18886
18933
|
"@babel/helpers - typeof";
|
|
18887
|
-
return module2.exports = _typeof2 = typeof Symbol
|
|
18934
|
+
return module2.exports = _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
18888
18935
|
return typeof obj2;
|
|
18889
18936
|
} : function(obj2) {
|
|
18890
|
-
return obj2 && typeof Symbol
|
|
18937
|
+
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
18891
18938
|
}, module2.exports.__esModule = true, module2.exports["default"] = module2.exports, _typeof2(obj);
|
|
18892
18939
|
}
|
|
18893
18940
|
module2.exports = _typeof2, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
|
|
@@ -19046,9 +19093,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19046
19093
|
return typeof type2 === "function" && !shouldConstruct(type2) && type2.defaultProps === void 0;
|
|
19047
19094
|
}
|
|
19048
19095
|
function isSafeSetRefComponent(component) {
|
|
19049
|
-
if (
|
|
19096
|
+
if (_reactIs_17_0_2_reactIs.exports.isFragment(component))
|
|
19050
19097
|
return false;
|
|
19051
|
-
if (
|
|
19098
|
+
if (_reactIs_17_0_2_reactIs.exports.isMemo(component))
|
|
19052
19099
|
return isSafeSetRefComponent(component.type);
|
|
19053
19100
|
return !isSimpleFunctionComponent(component.type);
|
|
19054
19101
|
}
|
|
@@ -19750,7 +19797,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19750
19797
|
}
|
|
19751
19798
|
return node;
|
|
19752
19799
|
}
|
|
19753
|
-
function getComputedStyle
|
|
19800
|
+
function getComputedStyle(element) {
|
|
19754
19801
|
return getWindow(element).getComputedStyle(element);
|
|
19755
19802
|
}
|
|
19756
19803
|
function getNodeName(node) {
|
|
@@ -19784,7 +19831,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19784
19831
|
overflow,
|
|
19785
19832
|
overflowX,
|
|
19786
19833
|
overflowY
|
|
19787
|
-
} = getComputedStyle
|
|
19834
|
+
} = getComputedStyle(element);
|
|
19788
19835
|
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
|
|
19789
19836
|
}
|
|
19790
19837
|
function isTableElement(element) {
|
|
@@ -19792,7 +19839,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19792
19839
|
}
|
|
19793
19840
|
function isContainingBlock(element) {
|
|
19794
19841
|
const isFirefox = /firefox/i.test(getUAString());
|
|
19795
|
-
const css = getComputedStyle
|
|
19842
|
+
const css = getComputedStyle(element);
|
|
19796
19843
|
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
19844
|
}
|
|
19798
19845
|
function isLayoutViewport() {
|
|
@@ -19858,7 +19905,11 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19858
19905
|
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
19859
19906
|
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
19860
19907
|
const documentElement = getDocumentElement(offsetParent);
|
|
19861
|
-
const rect = getBoundingClientRect(
|
|
19908
|
+
const rect = getBoundingClientRect(
|
|
19909
|
+
element,
|
|
19910
|
+
isOffsetParentAnElement && isScaled(offsetParent),
|
|
19911
|
+
strategy === "fixed"
|
|
19912
|
+
);
|
|
19862
19913
|
let scroll = {
|
|
19863
19914
|
scrollLeft: 0,
|
|
19864
19915
|
scrollTop: 0
|
|
@@ -19907,7 +19958,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19907
19958
|
if (isContainingBlock(currentNode)) {
|
|
19908
19959
|
return currentNode;
|
|
19909
19960
|
} else {
|
|
19910
|
-
|
|
19961
|
+
const parent = currentNode.parentNode;
|
|
19962
|
+
currentNode = isShadowRoot(parent) ? parent.host : parent;
|
|
19911
19963
|
}
|
|
19912
19964
|
}
|
|
19913
19965
|
return null;
|
|
@@ -20004,7 +20056,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20004
20056
|
const height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
20005
20057
|
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
20006
20058
|
const y = -scroll.scrollTop;
|
|
20007
|
-
if (getComputedStyle
|
|
20059
|
+
if (getComputedStyle(body || html).direction === "rtl") {
|
|
20008
20060
|
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
20009
20061
|
}
|
|
20010
20062
|
return {
|
|
@@ -20077,7 +20129,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20077
20129
|
}
|
|
20078
20130
|
function getClippingAncestors(element) {
|
|
20079
20131
|
const clippingAncestors = getOverflowAncestors(element);
|
|
20080
|
-
const canEscapeClipping = ["absolute", "fixed"].includes(getComputedStyle
|
|
20132
|
+
const canEscapeClipping = ["absolute", "fixed"].includes(getComputedStyle(element).position);
|
|
20081
20133
|
const clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
20082
20134
|
if (!isElement(clipperElement)) {
|
|
20083
20135
|
return [];
|
|
@@ -20132,7 +20184,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20132
20184
|
};
|
|
20133
20185
|
},
|
|
20134
20186
|
getClientRects: (element) => Array.from(element.getClientRects()),
|
|
20135
|
-
isRTL: (element) => getComputedStyle
|
|
20187
|
+
isRTL: (element) => getComputedStyle(element).direction === "rtl"
|
|
20136
20188
|
};
|
|
20137
20189
|
function autoUpdate(reference, floating, update2, options) {
|
|
20138
20190
|
if (options === void 0) {
|
|
@@ -20353,7 +20405,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20353
20405
|
arrowElement.style.setProperty("--arrow-icon-rotate", arrowRotate);
|
|
20354
20406
|
});
|
|
20355
20407
|
}
|
|
20356
|
-
useIsomorphicLayoutEffect$
|
|
20408
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
20357
20409
|
update2();
|
|
20358
20410
|
});
|
|
20359
20411
|
React$1.useEffect(() => {
|
|
@@ -21262,14 +21314,14 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21262
21314
|
const props = mergeProps(defaultProps$y, p);
|
|
21263
21315
|
const [value, setValue2] = usePropsValue(props);
|
|
21264
21316
|
const [tasks, setTasks] = React$1.useState([]);
|
|
21265
|
-
useIsomorphicLayoutEffect$
|
|
21317
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
21266
21318
|
setTasks((prev) => prev.filter((task) => {
|
|
21267
21319
|
if (task.url === void 0)
|
|
21268
21320
|
return true;
|
|
21269
21321
|
return !value.some((fileItem) => fileItem.url === task.url);
|
|
21270
21322
|
}));
|
|
21271
21323
|
}, [value]);
|
|
21272
|
-
useIsomorphicLayoutEffect$
|
|
21324
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
21273
21325
|
var _a;
|
|
21274
21326
|
(_a = props.onUploadQueueChange) === null || _a === void 0 ? void 0 : _a.call(props, tasks.map((item) => ({
|
|
21275
21327
|
id: item.id,
|
|
@@ -21751,7 +21803,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21751
21803
|
}
|
|
21752
21804
|
(_a = props.onKeyDown) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
21753
21805
|
};
|
|
21754
|
-
useIsomorphicLayoutEffect$
|
|
21806
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
21755
21807
|
var _a;
|
|
21756
21808
|
if (!props.enterKeyHint)
|
|
21757
21809
|
return;
|
|
@@ -22114,7 +22166,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22114
22166
|
const navBar = "";
|
|
22115
22167
|
const classPrefix$y = `adm-nav-bar`;
|
|
22116
22168
|
const defaultProps$s = {
|
|
22117
|
-
back: "",
|
|
22118
22169
|
backArrow: true
|
|
22119
22170
|
};
|
|
22120
22171
|
const NavBar = (p) => {
|
|
@@ -22791,17 +22842,21 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22791
22842
|
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, v);
|
|
22792
22843
|
}
|
|
22793
22844
|
});
|
|
22794
|
-
return React__default.default.createElement(
|
|
22795
|
-
|
|
22796
|
-
|
|
22797
|
-
|
|
22798
|
-
|
|
22799
|
-
|
|
22800
|
-
|
|
22801
|
-
|
|
22802
|
-
|
|
22803
|
-
|
|
22804
|
-
|
|
22845
|
+
return React__default.default.createElement(
|
|
22846
|
+
RadioGroupContext.Provider,
|
|
22847
|
+
{
|
|
22848
|
+
value: {
|
|
22849
|
+
value: value === null ? [] : [value],
|
|
22850
|
+
check: (v) => {
|
|
22851
|
+
setValue2(v);
|
|
22852
|
+
},
|
|
22853
|
+
uncheck: () => {
|
|
22854
|
+
},
|
|
22855
|
+
disabled: props.disabled
|
|
22856
|
+
}
|
|
22857
|
+
},
|
|
22858
|
+
props.children
|
|
22859
|
+
);
|
|
22805
22860
|
};
|
|
22806
22861
|
const classPrefix$q = `adm-radio`;
|
|
22807
22862
|
const defaultProps$k = {
|
|
@@ -23509,178 +23564,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23509
23564
|
mode: "dark"
|
|
23510
23565
|
}, thumbElement) : thumbElement);
|
|
23511
23566
|
};
|
|
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
23567
|
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
23568
|
function _Big_() {
|
|
23686
23569
|
function Big2(n) {
|
|
@@ -24189,6 +24072,182 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24189
24072
|
return stringify(x, x.e <= Big2.NE || x.e >= Big2.PE, true);
|
|
24190
24073
|
};
|
|
24191
24074
|
var Big = _Big_();
|
|
24075
|
+
const classPrefix$f = `adm-slider`;
|
|
24076
|
+
const defaultProps$e = {
|
|
24077
|
+
min: 0,
|
|
24078
|
+
max: 100,
|
|
24079
|
+
step: 1,
|
|
24080
|
+
ticks: false,
|
|
24081
|
+
range: false,
|
|
24082
|
+
disabled: false,
|
|
24083
|
+
popover: false,
|
|
24084
|
+
residentPopover: false
|
|
24085
|
+
};
|
|
24086
|
+
const Slider = (p) => {
|
|
24087
|
+
var _a;
|
|
24088
|
+
const props = mergeProps(defaultProps$e, p);
|
|
24089
|
+
const {
|
|
24090
|
+
min: min2,
|
|
24091
|
+
max: max2,
|
|
24092
|
+
disabled,
|
|
24093
|
+
marks,
|
|
24094
|
+
ticks,
|
|
24095
|
+
step,
|
|
24096
|
+
icon
|
|
24097
|
+
} = props;
|
|
24098
|
+
function sortValue(val) {
|
|
24099
|
+
return val.sort((a, b) => a - b);
|
|
24100
|
+
}
|
|
24101
|
+
function convertValue(value) {
|
|
24102
|
+
return props.range ? value : [props.min, value];
|
|
24103
|
+
}
|
|
24104
|
+
function reverseValue(value) {
|
|
24105
|
+
const mergedDecimalLen = Math.max(getDecimalLen(step), getDecimalLen(value[0]), getDecimalLen(value[1]));
|
|
24106
|
+
return props.range ? value.map((v) => Big(Big(v).toFixed(mergedDecimalLen)).toNumber()) : Big(Big(value[1]).toFixed(mergedDecimalLen)).toNumber();
|
|
24107
|
+
}
|
|
24108
|
+
function getDecimalLen(n) {
|
|
24109
|
+
return (`${n}`.split(".")[1] || "").length;
|
|
24110
|
+
}
|
|
24111
|
+
function onAfterChange(value) {
|
|
24112
|
+
var _a2;
|
|
24113
|
+
(_a2 = props.onAfterChange) === null || _a2 === void 0 ? void 0 : _a2.call(props, reverseValue(value));
|
|
24114
|
+
}
|
|
24115
|
+
let propsValue = props.value;
|
|
24116
|
+
if (props.range && typeof props.value === "number") {
|
|
24117
|
+
devWarning("Slider", "When `range` prop is enabled, the `value` prop should be an array, like: [0, 0]");
|
|
24118
|
+
propsValue = [0, props.value];
|
|
24119
|
+
}
|
|
24120
|
+
const [rawValue, setRawValue] = usePropsValue({
|
|
24121
|
+
value: propsValue,
|
|
24122
|
+
defaultValue: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : props.range ? [min2, min2] : min2,
|
|
24123
|
+
onChange: props.onChange
|
|
24124
|
+
});
|
|
24125
|
+
const sliderValue = sortValue(convertValue(rawValue));
|
|
24126
|
+
function setSliderValue(value) {
|
|
24127
|
+
const next = sortValue(value);
|
|
24128
|
+
const current = sliderValue;
|
|
24129
|
+
if (next[0] === current[0] && next[1] === current[1])
|
|
24130
|
+
return;
|
|
24131
|
+
setRawValue(reverseValue(next));
|
|
24132
|
+
}
|
|
24133
|
+
const trackRef = React$1.useRef(null);
|
|
24134
|
+
const fillSize = `${100 * (sliderValue[1] - sliderValue[0]) / (max2 - min2)}%`;
|
|
24135
|
+
const fillStart = `${100 * (sliderValue[0] - min2) / (max2 - min2)}%`;
|
|
24136
|
+
const pointList = React$1.useMemo(() => {
|
|
24137
|
+
if (marks) {
|
|
24138
|
+
return Object.keys(marks).map(parseFloat).sort((a, b) => a - b);
|
|
24139
|
+
} else {
|
|
24140
|
+
const points = [];
|
|
24141
|
+
for (let i = Big(min2); i.lte(max2); i = i.plus(step)) {
|
|
24142
|
+
points.push(i.toNumber());
|
|
24143
|
+
}
|
|
24144
|
+
return points;
|
|
24145
|
+
}
|
|
24146
|
+
}, [marks, ticks, step, min2, max2]);
|
|
24147
|
+
function getValueByPosition(position) {
|
|
24148
|
+
const newPosition = position < min2 ? min2 : position > max2 ? max2 : position;
|
|
24149
|
+
let value = min2;
|
|
24150
|
+
if (pointList.length) {
|
|
24151
|
+
value = nearest(pointList, newPosition);
|
|
24152
|
+
} else {
|
|
24153
|
+
const lengthPerStep = 100 / ((max2 - min2) / step);
|
|
24154
|
+
const steps2 = Math.round(newPosition / lengthPerStep);
|
|
24155
|
+
value = steps2 * lengthPerStep * (max2 - min2) * 0.01 + min2;
|
|
24156
|
+
}
|
|
24157
|
+
return value;
|
|
24158
|
+
}
|
|
24159
|
+
const dragLockRef = React$1.useRef(0);
|
|
24160
|
+
const onTrackClick = (event) => {
|
|
24161
|
+
if (dragLockRef.current > 0)
|
|
24162
|
+
return;
|
|
24163
|
+
event.stopPropagation();
|
|
24164
|
+
if (disabled)
|
|
24165
|
+
return;
|
|
24166
|
+
const track = trackRef.current;
|
|
24167
|
+
if (!track)
|
|
24168
|
+
return;
|
|
24169
|
+
const sliderOffsetLeft = track.getBoundingClientRect().left;
|
|
24170
|
+
const position = (event.clientX - sliderOffsetLeft) / Math.ceil(track.offsetWidth) * (max2 - min2) + min2;
|
|
24171
|
+
const targetValue = getValueByPosition(position);
|
|
24172
|
+
let nextSliderValue;
|
|
24173
|
+
if (props.range) {
|
|
24174
|
+
if (Math.abs(targetValue - sliderValue[0]) > Math.abs(targetValue - sliderValue[1])) {
|
|
24175
|
+
nextSliderValue = [sliderValue[0], targetValue];
|
|
24176
|
+
} else {
|
|
24177
|
+
nextSliderValue = [targetValue, sliderValue[1]];
|
|
24178
|
+
}
|
|
24179
|
+
} else {
|
|
24180
|
+
nextSliderValue = [props.min, targetValue];
|
|
24181
|
+
}
|
|
24182
|
+
setSliderValue(nextSliderValue);
|
|
24183
|
+
onAfterChange(nextSliderValue);
|
|
24184
|
+
};
|
|
24185
|
+
const valueBeforeDragRef = React$1.useRef();
|
|
24186
|
+
const renderThumb = (index2) => {
|
|
24187
|
+
return React__default.default.createElement(Thumb, {
|
|
24188
|
+
key: index2,
|
|
24189
|
+
value: sliderValue[index2],
|
|
24190
|
+
min: min2,
|
|
24191
|
+
max: max2,
|
|
24192
|
+
disabled,
|
|
24193
|
+
trackRef,
|
|
24194
|
+
icon,
|
|
24195
|
+
popover: props.popover,
|
|
24196
|
+
residentPopover: props.residentPopover,
|
|
24197
|
+
onDrag: (position, first, last) => {
|
|
24198
|
+
if (first) {
|
|
24199
|
+
dragLockRef.current += 1;
|
|
24200
|
+
valueBeforeDragRef.current = sliderValue;
|
|
24201
|
+
}
|
|
24202
|
+
const val = getValueByPosition(position);
|
|
24203
|
+
const valueBeforeDrag = valueBeforeDragRef.current;
|
|
24204
|
+
if (!valueBeforeDrag)
|
|
24205
|
+
return;
|
|
24206
|
+
const next = [...valueBeforeDrag];
|
|
24207
|
+
next[index2] = val;
|
|
24208
|
+
setSliderValue(next);
|
|
24209
|
+
if (last) {
|
|
24210
|
+
onAfterChange(next);
|
|
24211
|
+
window.setTimeout(() => {
|
|
24212
|
+
dragLockRef.current -= 1;
|
|
24213
|
+
}, 100);
|
|
24214
|
+
}
|
|
24215
|
+
},
|
|
24216
|
+
"aria-label": props["aria-label"]
|
|
24217
|
+
});
|
|
24218
|
+
};
|
|
24219
|
+
return withNativeProps(props, React__default.default.createElement("div", {
|
|
24220
|
+
className: classNames(classPrefix$f, {
|
|
24221
|
+
[`${classPrefix$f}-disabled`]: disabled
|
|
24222
|
+
})
|
|
24223
|
+
}, React__default.default.createElement("div", {
|
|
24224
|
+
className: `${classPrefix$f}-track-container`,
|
|
24225
|
+
onClick: onTrackClick
|
|
24226
|
+
}, React__default.default.createElement("div", {
|
|
24227
|
+
className: `${classPrefix$f}-track`,
|
|
24228
|
+
onClick: onTrackClick,
|
|
24229
|
+
ref: trackRef
|
|
24230
|
+
}, React__default.default.createElement("div", {
|
|
24231
|
+
className: `${classPrefix$f}-fill`,
|
|
24232
|
+
style: {
|
|
24233
|
+
width: fillSize,
|
|
24234
|
+
left: fillStart
|
|
24235
|
+
}
|
|
24236
|
+
}), props.ticks && React__default.default.createElement(Ticks, {
|
|
24237
|
+
points: pointList,
|
|
24238
|
+
min: min2,
|
|
24239
|
+
max: max2,
|
|
24240
|
+
lowerBound: sliderValue[0],
|
|
24241
|
+
upperBound: sliderValue[1]
|
|
24242
|
+
}), props.range && renderThumb(0), renderThumb(1))), marks && React__default.default.createElement(Marks, {
|
|
24243
|
+
min: min2,
|
|
24244
|
+
max: max2,
|
|
24245
|
+
marks,
|
|
24246
|
+
lowerBound: sliderValue[0],
|
|
24247
|
+
upperBound: sliderValue[1]
|
|
24248
|
+
})));
|
|
24249
|
+
};
|
|
24250
|
+
const stepper = "";
|
|
24192
24251
|
const classPrefix$e = `adm-stepper`;
|
|
24193
24252
|
const defaultProps$d = {
|
|
24194
24253
|
defaultValue: 0,
|
|
@@ -24789,7 +24848,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24789
24848
|
swipeNext,
|
|
24790
24849
|
swipePrev
|
|
24791
24850
|
}));
|
|
24792
|
-
useIsomorphicLayoutEffect$
|
|
24851
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
24793
24852
|
const maxIndex = validChildren.length - 1;
|
|
24794
24853
|
if (current > maxIndex) {
|
|
24795
24854
|
swipeTo(maxIndex, true);
|
|
@@ -25112,7 +25171,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
25112
25171
|
return nativeTextAreaRef.current;
|
|
25113
25172
|
}
|
|
25114
25173
|
}));
|
|
25115
|
-
useIsomorphicLayoutEffect$
|
|
25174
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
25116
25175
|
if (!autoSize)
|
|
25117
25176
|
return;
|
|
25118
25177
|
const textArea2 = nativeTextAreaRef.current;
|
|
@@ -25672,7 +25731,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
25672
25731
|
return;
|
|
25673
25732
|
content.scrollLeft = content.clientWidth;
|
|
25674
25733
|
}
|
|
25675
|
-
useIsomorphicLayoutEffect$
|
|
25734
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
25676
25735
|
scrollToEnd();
|
|
25677
25736
|
}, [value]);
|
|
25678
25737
|
React$1.useEffect(() => {
|