antd-mobile 5.23.0 → 5.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2x/bundle/antd-mobile.cjs.development.js +578 -373
- package/2x/bundle/antd-mobile.cjs.js +11 -11
- package/2x/bundle/antd-mobile.es.development.js +579 -374
- package/2x/bundle/antd-mobile.es.js +5188 -5020
- package/2x/bundle/antd-mobile.umd.development.js +578 -373
- package/2x/bundle/antd-mobile.umd.js +11 -11
- package/2x/bundle/style.css +22 -16
- 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.d.ts +3 -5
- package/2x/cjs/components/calendar/calendar.js +21 -46
- package/2x/cjs/components/calendar/convert.d.ts +6 -0
- package/2x/cjs/components/calendar/convert.js +6 -4
- 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 +14 -34
- 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.css +0 -1
- 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.css +9 -3
- package/2x/cjs/components/form/form.d.ts +2 -2
- package/2x/cjs/components/form/form.js +11 -31
- package/2x/cjs/components/form/header.js +0 -2
- package/2x/cjs/components/form/index.css +9 -4
- package/2x/cjs/components/form/index.d.ts +1 -1
- package/2x/cjs/components/form/index.js +0 -10
- package/2x/cjs/components/form/utils.js +4 -9
- package/2x/cjs/components/grid/grid.js +0 -12
- package/2x/cjs/components/grid/index.js +0 -5
- package/2x/cjs/components/image/broken-image-icon.js +0 -4
- package/2x/cjs/components/image/image-icon.js +0 -4
- package/2x/cjs/components/image/image.js +0 -21
- package/2x/cjs/components/image/index.js +0 -3
- package/2x/cjs/components/image/lazy-detector.js +0 -6
- package/2x/cjs/components/image/test/image.test.js +0 -10
- package/2x/cjs/components/image-uploader/image-uploader.js +0 -39
- package/2x/cjs/components/image-uploader/index.js +0 -3
- package/2x/cjs/components/image-uploader/preview-item.js +0 -17
- package/2x/cjs/components/image-viewer/image-viewer.js +0 -23
- package/2x/cjs/components/image-viewer/index.js +0 -7
- package/2x/cjs/components/image-viewer/methods.js +0 -10
- package/2x/cjs/components/image-viewer/slide.js +0 -28
- package/2x/cjs/components/image-viewer/slides.js +0 -13
- package/2x/cjs/components/index-bar/index-bar.js +0 -25
- package/2x/cjs/components/index-bar/index.js +0 -6
- package/2x/cjs/components/index-bar/panel.js +0 -2
- package/2x/cjs/components/index-bar/sidebar.js +0 -9
- package/2x/cjs/components/infinite-scroll/index.js +0 -3
- package/2x/cjs/components/infinite-scroll/infinite-scroll.js +4 -28
- package/2x/cjs/components/input/index.js +0 -3
- package/2x/cjs/components/input/input.js +2 -37
- package/2x/cjs/components/jumbo-tabs/index.js +0 -5
- package/2x/cjs/components/jumbo-tabs/jumbo-tabs.js +0 -25
- package/2x/cjs/components/list/index.js +0 -6
- package/2x/cjs/components/list/list-item.js +0 -12
- package/2x/cjs/components/list/list.js +0 -9
- package/2x/cjs/components/loading/index.js +0 -3
- package/2x/cjs/components/mask/index.js +0 -3
- package/2x/cjs/components/mask/mask.js +0 -19
- package/2x/cjs/components/modal/alert.js +0 -5
- package/2x/cjs/components/modal/clear.js +0 -2
- package/2x/cjs/components/modal/confirm.js +0 -9
- package/2x/cjs/components/modal/index.js +0 -9
- package/2x/cjs/components/modal/modal-action-button.js +0 -7
- package/2x/cjs/components/modal/modal.js +0 -18
- package/2x/cjs/components/modal/show.js +0 -7
- package/2x/cjs/components/nav-bar/index.js +0 -3
- package/2x/cjs/components/nav-bar/nav-bar.d.ts +1 -1
- package/2x/cjs/components/nav-bar/nav-bar.js +0 -10
- package/2x/cjs/components/notice-bar/index.js +0 -3
- package/2x/cjs/components/notice-bar/notice-bar.js +0 -19
- package/2x/cjs/components/number-keyboard/index.js +0 -3
- package/2x/cjs/components/number-keyboard/number-keyboard.css +1 -1
- package/2x/cjs/components/number-keyboard/number-keyboard.js +0 -33
- package/2x/cjs/components/page-indicator/index.js +0 -3
- package/2x/cjs/components/page-indicator/page-indicator.js +0 -10
- package/2x/cjs/components/passcode-input/index.js +0 -3
- package/2x/cjs/components/passcode-input/passcode-input.css +1 -1
- package/2x/cjs/components/passcode-input/passcode-input.js +2 -30
- package/2x/cjs/components/picker/index.js +0 -6
- package/2x/cjs/components/picker/picker-utils.js +0 -2
- package/2x/cjs/components/picker/picker.css +1 -0
- package/2x/cjs/components/picker/picker.js +0 -25
- package/2x/cjs/components/picker/prompt.js +0 -10
- package/2x/cjs/components/picker-view/columns-extend.js +0 -7
- package/2x/cjs/components/picker-view/index.js +0 -3
- package/2x/cjs/components/picker-view/picker-view.js +2 -16
- package/2x/cjs/components/picker-view/wheel.js +0 -27
- package/2x/cjs/components/popover/arrow.js +0 -5
- package/2x/cjs/components/popover/index.js +0 -7
- package/2x/cjs/components/popover/normalize-placement.js +0 -2
- package/2x/cjs/components/popover/popover-menu.js +2 -14
- package/2x/cjs/components/popover/popover.js +2 -27
- 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 +2 -38
- 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 +7 -45
- 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.d.ts +3 -5
- package/2x/es/components/calendar/calendar.js +22 -26
- package/2x/es/components/calendar/convert.d.ts +6 -0
- package/2x/es/components/calendar/convert.js +4 -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 +14 -24
- 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.css +0 -1
- package/2x/es/components/form/form-item.js +33 -75
- package/2x/es/components/form/form.css +9 -3
- package/2x/es/components/form/form.d.ts +2 -2
- package/2x/es/components/form/form.js +11 -17
- package/2x/es/components/form/index.css +9 -4
- package/2x/es/components/form/index.d.ts +1 -1
- package/2x/es/components/form/utils.js +4 -6
- package/2x/es/components/grid/grid.js +0 -2
- package/2x/es/components/image/image.js +0 -8
- package/2x/es/components/image-uploader/image-uploader.js +0 -21
- package/2x/es/components/image-uploader/preview-item.js +0 -7
- package/2x/es/components/image-viewer/image-viewer.js +0 -6
- package/2x/es/components/image-viewer/methods.js +0 -2
- package/2x/es/components/image-viewer/slide.js +0 -16
- package/2x/es/components/image-viewer/slides.js +0 -4
- package/2x/es/components/index-bar/index-bar.js +0 -11
- package/2x/es/components/index-bar/sidebar.js +0 -1
- package/2x/es/components/infinite-scroll/infinite-scroll.js +4 -15
- package/2x/es/components/input/input.js +2 -23
- package/2x/es/components/jumbo-tabs/jumbo-tabs.js +0 -7
- package/2x/es/components/list/list-item.js +0 -1
- package/2x/es/components/list/list.js +0 -1
- package/2x/es/components/mask/mask.js +0 -4
- package/2x/es/components/modal/alert.js +0 -1
- package/2x/es/components/modal/confirm.js +0 -3
- package/2x/es/components/modal/modal.js +0 -3
- package/2x/es/components/modal/show.js +0 -1
- package/2x/es/components/nav-bar/nav-bar.d.ts +1 -1
- package/2x/es/components/nav-bar/nav-bar.js +0 -1
- package/2x/es/components/notice-bar/notice-bar.js +0 -7
- package/2x/es/components/number-keyboard/number-keyboard.css +1 -1
- package/2x/es/components/number-keyboard/number-keyboard.js +0 -18
- package/2x/es/components/page-indicator/page-indicator.js +0 -2
- package/2x/es/components/passcode-input/passcode-input.css +1 -1
- package/2x/es/components/passcode-input/passcode-input.js +2 -19
- package/2x/es/components/picker/picker.css +1 -0
- package/2x/es/components/picker/picker.js +0 -7
- package/2x/es/components/picker/prompt.js +0 -4
- package/2x/es/components/picker-view/columns-extend.js +0 -3
- package/2x/es/components/picker-view/picker-view.js +2 -4
- package/2x/es/components/picker-view/wheel.js +0 -14
- package/2x/es/components/popover/normalize-placement.js +0 -1
- package/2x/es/components/popover/popover-menu.js +2 -7
- package/2x/es/components/popover/popover.js +2 -8
- 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 +2 -21
- 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 +7 -26
- 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 +3 -2
- package/bundle/antd-mobile.cjs.development.js +578 -373
- package/bundle/antd-mobile.cjs.js +11 -11
- package/bundle/antd-mobile.compatible.umd.js +2 -25435
- package/bundle/antd-mobile.es.development.js +579 -374
- package/bundle/antd-mobile.es.js +5188 -5020
- package/bundle/antd-mobile.umd.development.js +578 -373
- 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.d.ts +3 -5
- package/cjs/components/calendar/calendar.js +21 -46
- package/cjs/components/calendar/convert.d.ts +6 -0
- package/cjs/components/calendar/convert.js +6 -4
- 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 +14 -34
- 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.css +0 -1
- package/cjs/components/form/form-item.js +33 -94
- package/cjs/components/form/form-subscribe.js +0 -8
- package/cjs/components/form/form.css +8 -3
- package/cjs/components/form/form.d.ts +2 -2
- package/cjs/components/form/form.js +11 -31
- package/cjs/components/form/header.js +0 -2
- package/cjs/components/form/index.css +8 -4
- package/cjs/components/form/index.d.ts +1 -1
- package/cjs/components/form/index.js +0 -10
- package/cjs/components/form/utils.js +4 -9
- package/cjs/components/grid/grid.js +0 -12
- package/cjs/components/grid/index.js +0 -5
- package/cjs/components/image/broken-image-icon.js +0 -4
- package/cjs/components/image/image-icon.js +0 -4
- package/cjs/components/image/image.js +0 -21
- package/cjs/components/image/index.js +0 -3
- package/cjs/components/image/lazy-detector.js +0 -6
- package/cjs/components/image/test/image.test.js +0 -10
- package/cjs/components/image-uploader/image-uploader.js +0 -39
- package/cjs/components/image-uploader/index.js +0 -3
- package/cjs/components/image-uploader/preview-item.js +0 -17
- package/cjs/components/image-viewer/image-viewer.js +0 -23
- package/cjs/components/image-viewer/index.js +0 -7
- package/cjs/components/image-viewer/methods.js +0 -10
- package/cjs/components/image-viewer/slide.js +0 -28
- package/cjs/components/image-viewer/slides.js +0 -13
- package/cjs/components/index-bar/index-bar.js +0 -25
- package/cjs/components/index-bar/index.js +0 -6
- package/cjs/components/index-bar/panel.js +0 -2
- package/cjs/components/index-bar/sidebar.js +0 -9
- package/cjs/components/infinite-scroll/index.js +0 -3
- package/cjs/components/infinite-scroll/infinite-scroll.js +4 -28
- package/cjs/components/input/index.js +0 -3
- package/cjs/components/input/input.js +2 -37
- package/cjs/components/jumbo-tabs/index.js +0 -5
- package/cjs/components/jumbo-tabs/jumbo-tabs.js +0 -25
- package/cjs/components/list/index.js +0 -6
- package/cjs/components/list/list-item.js +0 -12
- package/cjs/components/list/list.js +0 -9
- package/cjs/components/loading/index.js +0 -3
- package/cjs/components/mask/index.js +0 -3
- package/cjs/components/mask/mask.js +0 -19
- package/cjs/components/modal/alert.js +0 -5
- package/cjs/components/modal/clear.js +0 -2
- package/cjs/components/modal/confirm.js +0 -9
- package/cjs/components/modal/index.js +0 -9
- package/cjs/components/modal/modal-action-button.js +0 -7
- package/cjs/components/modal/modal.js +0 -18
- package/cjs/components/modal/show.js +0 -7
- package/cjs/components/nav-bar/index.js +0 -3
- package/cjs/components/nav-bar/nav-bar.d.ts +1 -1
- package/cjs/components/nav-bar/nav-bar.js +0 -10
- package/cjs/components/notice-bar/index.js +0 -3
- package/cjs/components/notice-bar/notice-bar.js +0 -19
- package/cjs/components/number-keyboard/index.js +0 -3
- package/cjs/components/number-keyboard/number-keyboard.css +1 -1
- package/cjs/components/number-keyboard/number-keyboard.js +0 -33
- package/cjs/components/page-indicator/index.js +0 -3
- package/cjs/components/page-indicator/page-indicator.js +0 -10
- package/cjs/components/passcode-input/index.js +0 -3
- package/cjs/components/passcode-input/passcode-input.css +1 -1
- package/cjs/components/passcode-input/passcode-input.js +2 -30
- package/cjs/components/picker/index.js +0 -6
- package/cjs/components/picker/picker-utils.js +0 -2
- package/cjs/components/picker/picker.css +1 -0
- package/cjs/components/picker/picker.js +0 -25
- package/cjs/components/picker/prompt.js +0 -10
- package/cjs/components/picker-view/columns-extend.js +0 -7
- package/cjs/components/picker-view/index.js +0 -3
- package/cjs/components/picker-view/picker-view.js +2 -16
- package/cjs/components/picker-view/wheel.js +0 -27
- package/cjs/components/popover/arrow.js +0 -5
- package/cjs/components/popover/index.js +0 -7
- package/cjs/components/popover/normalize-placement.js +0 -2
- package/cjs/components/popover/popover-menu.js +2 -14
- package/cjs/components/popover/popover.js +2 -27
- 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 +2 -38
- 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 +7 -45
- 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.d.ts +3 -5
- package/es/components/calendar/calendar.js +22 -26
- package/es/components/calendar/convert.d.ts +6 -0
- package/es/components/calendar/convert.js +4 -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 +14 -24
- 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.css +0 -1
- package/es/components/form/form-item.js +33 -75
- package/es/components/form/form.css +8 -3
- package/es/components/form/form.d.ts +2 -2
- package/es/components/form/form.js +11 -17
- package/es/components/form/index.css +8 -4
- package/es/components/form/index.d.ts +1 -1
- package/es/components/form/utils.js +4 -6
- package/es/components/grid/grid.js +0 -2
- package/es/components/image/image.js +0 -8
- package/es/components/image-uploader/image-uploader.js +0 -21
- package/es/components/image-uploader/preview-item.js +0 -7
- package/es/components/image-viewer/image-viewer.js +0 -6
- package/es/components/image-viewer/methods.js +0 -2
- package/es/components/image-viewer/slide.js +0 -16
- package/es/components/image-viewer/slides.js +0 -4
- package/es/components/index-bar/index-bar.js +0 -11
- package/es/components/index-bar/sidebar.js +0 -1
- package/es/components/infinite-scroll/infinite-scroll.js +4 -15
- package/es/components/input/input.js +2 -23
- package/es/components/jumbo-tabs/jumbo-tabs.js +0 -7
- package/es/components/list/list-item.js +0 -1
- package/es/components/list/list.js +0 -1
- package/es/components/mask/mask.js +0 -4
- package/es/components/modal/alert.js +0 -1
- package/es/components/modal/confirm.js +0 -3
- package/es/components/modal/modal.js +0 -3
- package/es/components/modal/show.js +0 -1
- package/es/components/nav-bar/nav-bar.d.ts +1 -1
- package/es/components/nav-bar/nav-bar.js +0 -1
- package/es/components/notice-bar/notice-bar.js +0 -7
- package/es/components/number-keyboard/number-keyboard.css +1 -1
- package/es/components/number-keyboard/number-keyboard.js +0 -18
- package/es/components/page-indicator/page-indicator.js +0 -2
- package/es/components/passcode-input/passcode-input.css +1 -1
- package/es/components/passcode-input/passcode-input.js +2 -19
- package/es/components/picker/picker.css +1 -0
- package/es/components/picker/picker.js +0 -7
- package/es/components/picker/prompt.js +0 -4
- package/es/components/picker-view/columns-extend.js +0 -3
- package/es/components/picker-view/picker-view.js +2 -4
- package/es/components/picker-view/wheel.js +0 -14
- package/es/components/popover/normalize-placement.js +0 -1
- package/es/components/popover/popover-menu.js +2 -7
- package/es/components/popover/popover.js +2 -8
- 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 +2 -21
- package/es/components/steps/steps.js +0 -4
- package/es/components/swipe-action/swipe-action.js +0 -28
- package/es/components/swiper/swiper.js +7 -26
- 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 +3 -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 -25435
- package/2x/umd/antd-mobile.js +0 -25435
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import React__default, { useContext, useRef, useMemo, useEffect, useState, useCallback, useLayoutEffect
|
|
2
|
+
import React__default, { useContext, useRef, useMemo, useEffect, useState, useCallback, useLayoutEffect, forwardRef, useImperativeHandle, memo, createContext, cloneElement } from "react";
|
|
3
3
|
import * as ReactDOM from "react-dom";
|
|
4
4
|
import { unstable_batchedUpdates, createPortal, findDOMNode } from "react-dom";
|
|
5
5
|
const global$2 = "";
|
|
@@ -352,11 +352,11 @@ function attachPropertiesToComponent(component, properties) {
|
|
|
352
352
|
return ret;
|
|
353
353
|
}
|
|
354
354
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
355
|
-
var
|
|
355
|
+
var _classnames_2_3_2_classnames = { exports: {} };
|
|
356
356
|
/*!
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
357
|
+
Copyright (c) 2018 Jed Watson.
|
|
358
|
+
Licensed under the MIT License (MIT), see
|
|
359
|
+
http://jedwatson.github.io/classnames
|
|
360
360
|
*/
|
|
361
361
|
(function(module) {
|
|
362
362
|
(function() {
|
|
@@ -378,14 +378,14 @@ var classnames = { exports: {} };
|
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
} else if (argType === "object") {
|
|
381
|
-
if (arg.toString
|
|
382
|
-
for (var key in arg) {
|
|
383
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
384
|
-
classes.push(key);
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
} else {
|
|
381
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
388
382
|
classes.push(arg.toString());
|
|
383
|
+
continue;
|
|
384
|
+
}
|
|
385
|
+
for (var key in arg) {
|
|
386
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
387
|
+
classes.push(key);
|
|
388
|
+
}
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
391
|
}
|
|
@@ -398,8 +398,8 @@ var classnames = { exports: {} };
|
|
|
398
398
|
window.classNames = classNames2;
|
|
399
399
|
}
|
|
400
400
|
})();
|
|
401
|
-
})(
|
|
402
|
-
const classNames =
|
|
401
|
+
})(_classnames_2_3_2_classnames);
|
|
402
|
+
const classNames = _classnames_2_3_2_classnames.exports;
|
|
403
403
|
function withNativeProps(props, element) {
|
|
404
404
|
const p = Object.assign({}, element.props);
|
|
405
405
|
if (props.className) {
|
|
@@ -517,7 +517,9 @@ var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
|
517
517
|
var funcProto$1 = Function.prototype, objectProto$c = Object.prototype;
|
|
518
518
|
var funcToString$1 = funcProto$1.toString;
|
|
519
519
|
var hasOwnProperty$a = objectProto$c.hasOwnProperty;
|
|
520
|
-
var reIsNative = RegExp(
|
|
520
|
+
var reIsNative = RegExp(
|
|
521
|
+
"^" + funcToString$1.call(hasOwnProperty$a).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
522
|
+
);
|
|
521
523
|
function baseIsNative$1(value) {
|
|
522
524
|
if (!isObject$9(value) || isMasked(value)) {
|
|
523
525
|
return false;
|
|
@@ -895,8 +897,10 @@ var isFunction$1 = function isFunction(value) {
|
|
|
895
897
|
var isNumber = function isNumber2(value) {
|
|
896
898
|
return typeof value === "number";
|
|
897
899
|
};
|
|
900
|
+
var isDev = true;
|
|
901
|
+
const isDev$1 = isDev;
|
|
898
902
|
function useMemoizedFn(fn) {
|
|
899
|
-
{
|
|
903
|
+
if (isDev$1) {
|
|
900
904
|
if (!isFunction$1(fn)) {
|
|
901
905
|
console.error("useMemoizedFn expected parameter is a function, got " + typeof fn);
|
|
902
906
|
}
|
|
@@ -933,7 +937,7 @@ function useLatest(value) {
|
|
|
933
937
|
return ref;
|
|
934
938
|
}
|
|
935
939
|
var useUnmount = function useUnmount2(fn) {
|
|
936
|
-
{
|
|
940
|
+
if (isDev$1) {
|
|
937
941
|
if (!isFunction$1(fn)) {
|
|
938
942
|
console.error("useUnmount expected parameter is a function, got " + typeof fn);
|
|
939
943
|
}
|
|
@@ -1102,7 +1106,7 @@ function throttle$1(func, wait, options) {
|
|
|
1102
1106
|
}
|
|
1103
1107
|
var throttle_1 = throttle$1;
|
|
1104
1108
|
var useMount = function useMount2(fn) {
|
|
1105
|
-
{
|
|
1109
|
+
if (isDev$1) {
|
|
1106
1110
|
if (!isFunction$1(fn)) {
|
|
1107
1111
|
console.error('useMount: parameter `fn` expected to be a function, but got "' + typeof fn + '".');
|
|
1108
1112
|
}
|
|
@@ -1272,7 +1276,7 @@ var dayjs_min = { exports: {} };
|
|
|
1272
1276
|
}, p: function(t2) {
|
|
1273
1277
|
return { M: f, y: c, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: h }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
|
|
1274
1278
|
}, u: function(t2) {
|
|
1275
|
-
return
|
|
1279
|
+
return void 0 === t2;
|
|
1276
1280
|
} }, v = "en", D = {};
|
|
1277
1281
|
D[v] = M;
|
|
1278
1282
|
var p = function(t2) {
|
|
@@ -1281,7 +1285,7 @@ var dayjs_min = { exports: {} };
|
|
|
1281
1285
|
var i2;
|
|
1282
1286
|
if (!e2)
|
|
1283
1287
|
return v;
|
|
1284
|
-
if (typeof e2
|
|
1288
|
+
if ("string" == typeof e2) {
|
|
1285
1289
|
var s2 = e2.toLowerCase();
|
|
1286
1290
|
D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
|
|
1287
1291
|
var u2 = e2.split("-");
|
|
@@ -1295,7 +1299,7 @@ var dayjs_min = { exports: {} };
|
|
|
1295
1299
|
}, w = function(t2, e2) {
|
|
1296
1300
|
if (p(t2))
|
|
1297
1301
|
return t2.clone();
|
|
1298
|
-
var n2 = typeof e2
|
|
1302
|
+
var n2 = "object" == typeof e2 ? e2 : {};
|
|
1299
1303
|
return n2.date = t2, n2.args = arguments, new _(n2);
|
|
1300
1304
|
}, O = g;
|
|
1301
1305
|
O.l = S, O.i = p, O.w = function(t2, e2) {
|
|
@@ -1309,13 +1313,13 @@ var dayjs_min = { exports: {} };
|
|
|
1309
1313
|
return m2.parse = function(t2) {
|
|
1310
1314
|
this.$d = function(t3) {
|
|
1311
1315
|
var e2 = t3.date, n2 = t3.utc;
|
|
1312
|
-
if (
|
|
1316
|
+
if (null === e2)
|
|
1313
1317
|
return new Date(NaN);
|
|
1314
1318
|
if (O.u(e2))
|
|
1315
1319
|
return new Date();
|
|
1316
1320
|
if (e2 instanceof Date)
|
|
1317
1321
|
return new Date(e2);
|
|
1318
|
-
if (typeof e2
|
|
1322
|
+
if ("string" == typeof e2 && !/Z$/i.test(e2)) {
|
|
1319
1323
|
var r2 = e2.match(l);
|
|
1320
1324
|
if (r2) {
|
|
1321
1325
|
var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
|
|
@@ -1489,7 +1493,7 @@ var __spread$2 = globalThis && globalThis.__spread || function() {
|
|
|
1489
1493
|
};
|
|
1490
1494
|
function useDebounceFn(fn, options) {
|
|
1491
1495
|
var _a;
|
|
1492
|
-
{
|
|
1496
|
+
if (isDev$1) {
|
|
1493
1497
|
if (!isFunction$1(fn)) {
|
|
1494
1498
|
console.error("useDebounceFn expected parameter is a function, got " + typeof fn);
|
|
1495
1499
|
}
|
|
@@ -2137,11 +2141,15 @@ var isEqual_1 = isEqual$1;
|
|
|
2137
2141
|
}
|
|
2138
2142
|
if ("IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype) {
|
|
2139
2143
|
if (!("isIntersecting" in window.IntersectionObserverEntry.prototype)) {
|
|
2140
|
-
Object.defineProperty(
|
|
2141
|
-
|
|
2142
|
-
|
|
2144
|
+
Object.defineProperty(
|
|
2145
|
+
window.IntersectionObserverEntry.prototype,
|
|
2146
|
+
"isIntersecting",
|
|
2147
|
+
{
|
|
2148
|
+
get: function() {
|
|
2149
|
+
return this.intersectionRatio > 0;
|
|
2150
|
+
}
|
|
2143
2151
|
}
|
|
2144
|
-
|
|
2152
|
+
);
|
|
2145
2153
|
}
|
|
2146
2154
|
return;
|
|
2147
2155
|
}
|
|
@@ -2189,7 +2197,10 @@ var isEqual_1 = isEqual$1;
|
|
|
2189
2197
|
if (options.root && options.root.nodeType != 1 && options.root.nodeType != 9) {
|
|
2190
2198
|
throw new Error("root must be a Document or Element");
|
|
2191
2199
|
}
|
|
2192
|
-
this._checkForIntersections = throttle2(
|
|
2200
|
+
this._checkForIntersections = throttle2(
|
|
2201
|
+
this._checkForIntersections.bind(this),
|
|
2202
|
+
this.THROTTLE_TIMEOUT
|
|
2203
|
+
);
|
|
2193
2204
|
this._callback = callback;
|
|
2194
2205
|
this._observationTargets = [];
|
|
2195
2206
|
this._queuedEntries = [];
|
|
@@ -2750,8 +2761,8 @@ function useInViewport(target, options) {
|
|
|
2750
2761
|
}, [], target);
|
|
2751
2762
|
return [state, ratio];
|
|
2752
2763
|
}
|
|
2753
|
-
var useIsomorphicLayoutEffect = isBrowser$3 ? useLayoutEffect
|
|
2754
|
-
const useIsomorphicLayoutEffect$
|
|
2764
|
+
var useIsomorphicLayoutEffect$1 = isBrowser$3 ? useLayoutEffect : useEffect;
|
|
2765
|
+
const useIsomorphicLayoutEffect$2 = useIsomorphicLayoutEffect$1;
|
|
2755
2766
|
var __awaiter = globalThis && globalThis.__awaiter || function(thisArg, _arguments, P2, generator) {
|
|
2756
2767
|
function adopt(value) {
|
|
2757
2768
|
return value instanceof P2 ? value : new P2(function(resolve) {
|
|
@@ -3466,7 +3477,7 @@ var index$k = function() {
|
|
|
3466
3477
|
}
|
|
3467
3478
|
return ResizeObserver$1;
|
|
3468
3479
|
}();
|
|
3469
|
-
var useEffectWithTarget = createEffectWithTarget$1(useLayoutEffect
|
|
3480
|
+
var useEffectWithTarget = createEffectWithTarget$1(useLayoutEffect);
|
|
3470
3481
|
const useLayoutEffectWithTarget = useEffectWithTarget;
|
|
3471
3482
|
var useIsomorphicLayoutEffectWithTarget = isBrowser$3 ? useLayoutEffectWithTarget : useEffectWithTarget$2;
|
|
3472
3483
|
const useIsomorphicLayoutEffectWithTarget$1 = useIsomorphicLayoutEffectWithTarget;
|
|
@@ -3549,7 +3560,7 @@ var __spread = globalThis && globalThis.__spread || function() {
|
|
|
3549
3560
|
};
|
|
3550
3561
|
function useThrottleFn(fn, options) {
|
|
3551
3562
|
var _a;
|
|
3552
|
-
{
|
|
3563
|
+
if (isDev$1) {
|
|
3553
3564
|
if (!isFunction$1(fn)) {
|
|
3554
3565
|
console.error("useThrottleFn expected parameter is a function, got " + typeof fn);
|
|
3555
3566
|
}
|
|
@@ -3691,6 +3702,16 @@ if (canUseDom) {
|
|
|
3691
3702
|
}
|
|
3692
3703
|
let totalLockCount = 0;
|
|
3693
3704
|
const BODY_LOCK_CLASS = "adm-overflow-hidden";
|
|
3705
|
+
function getScrollableElement(el) {
|
|
3706
|
+
let current = el === null || el === void 0 ? void 0 : el.parentElement;
|
|
3707
|
+
while (current) {
|
|
3708
|
+
if (current.clientHeight < current.scrollHeight) {
|
|
3709
|
+
return current;
|
|
3710
|
+
}
|
|
3711
|
+
current = current.parentElement;
|
|
3712
|
+
}
|
|
3713
|
+
return null;
|
|
3714
|
+
}
|
|
3694
3715
|
function useLockScroll(rootRef, shouldLock) {
|
|
3695
3716
|
const touch = useTouch();
|
|
3696
3717
|
const onTouchMove = (event) => {
|
|
@@ -3699,6 +3720,13 @@ function useLockScroll(rootRef, shouldLock) {
|
|
|
3699
3720
|
const el = getScrollParent(event.target, rootRef.current);
|
|
3700
3721
|
if (!el)
|
|
3701
3722
|
return;
|
|
3723
|
+
if (shouldLock === "strict") {
|
|
3724
|
+
const scrollableParent = getScrollableElement(event.target);
|
|
3725
|
+
if (scrollableParent === document.body || scrollableParent === document.documentElement) {
|
|
3726
|
+
event.preventDefault();
|
|
3727
|
+
return;
|
|
3728
|
+
}
|
|
3729
|
+
}
|
|
3702
3730
|
const {
|
|
3703
3731
|
scrollHeight,
|
|
3704
3732
|
offsetHeight,
|
|
@@ -3778,9 +3806,9 @@ let findTimeout = (time) => ~(~timeouts.findIndex((t) => t.time > time) || ~time
|
|
|
3778
3806
|
raf.cancel = (fn) => {
|
|
3779
3807
|
onStartQueue.delete(fn);
|
|
3780
3808
|
onFrameQueue.delete(fn);
|
|
3809
|
+
onFinishQueue.delete(fn);
|
|
3781
3810
|
updateQueue.delete(fn);
|
|
3782
3811
|
writeQueue.delete(fn);
|
|
3783
|
-
onFinishQueue.delete(fn);
|
|
3784
3812
|
};
|
|
3785
3813
|
raf.sync = (fn) => {
|
|
3786
3814
|
sync = true;
|
|
@@ -3858,14 +3886,15 @@ function update() {
|
|
|
3858
3886
|
eachSafely(timeouts.splice(0, count), (t) => t.handler());
|
|
3859
3887
|
pendingCount -= count;
|
|
3860
3888
|
}
|
|
3889
|
+
if (!pendingCount) {
|
|
3890
|
+
stop();
|
|
3891
|
+
return;
|
|
3892
|
+
}
|
|
3861
3893
|
onStartQueue.flush();
|
|
3862
3894
|
updateQueue.flush(prevTs ? Math.min(64, ts - prevTs) : 16.667);
|
|
3863
3895
|
onFrameQueue.flush();
|
|
3864
3896
|
writeQueue.flush();
|
|
3865
3897
|
onFinishQueue.flush();
|
|
3866
|
-
if (!pendingCount) {
|
|
3867
|
-
stop();
|
|
3868
|
-
}
|
|
3869
3898
|
}
|
|
3870
3899
|
function makeQueue() {
|
|
3871
3900
|
let next = /* @__PURE__ */ new Set();
|
|
@@ -4385,7 +4414,7 @@ function findRange(input2, inputRange) {
|
|
|
4385
4414
|
return i - 1;
|
|
4386
4415
|
}
|
|
4387
4416
|
function _extends$4() {
|
|
4388
|
-
_extends$4 = Object.assign
|
|
4417
|
+
_extends$4 = Object.assign ? Object.assign.bind() : function(target) {
|
|
4389
4418
|
for (var i = 1; i < arguments.length; i++) {
|
|
4390
4419
|
var source = arguments[i];
|
|
4391
4420
|
for (var key in source) {
|
|
@@ -4547,10 +4576,10 @@ function deprecateDirectCall() {
|
|
|
4547
4576
|
function isAnimatedString(value) {
|
|
4548
4577
|
return is.str(value) && (value[0] == "#" || /\d/.test(value) || !isSSR() && cssVariableRegex.test(value) || value in (colors$1 || {}));
|
|
4549
4578
|
}
|
|
4550
|
-
const
|
|
4579
|
+
const useIsomorphicLayoutEffect = isSSR() ? useEffect : useLayoutEffect;
|
|
4551
4580
|
const useIsMounted = () => {
|
|
4552
4581
|
const isMounted = useRef(false);
|
|
4553
|
-
|
|
4582
|
+
useIsomorphicLayoutEffect(() => {
|
|
4554
4583
|
isMounted.current = true;
|
|
4555
4584
|
return () => {
|
|
4556
4585
|
isMounted.current = false;
|
|
@@ -4798,7 +4827,7 @@ function getAnimatedType(value) {
|
|
|
4798
4827
|
return parentNode ? parentNode.constructor : is.arr(value) ? AnimatedArray : isAnimatedString(value) ? AnimatedString : AnimatedValue;
|
|
4799
4828
|
}
|
|
4800
4829
|
function _extends$3() {
|
|
4801
|
-
_extends$3 = Object.assign
|
|
4830
|
+
_extends$3 = Object.assign ? Object.assign.bind() : function(target) {
|
|
4802
4831
|
for (var i = 1; i < arguments.length; i++) {
|
|
4803
4832
|
var source = arguments[i];
|
|
4804
4833
|
for (var key in source) {
|
|
@@ -4832,7 +4861,7 @@ const withAnimated = (Component, host2) => {
|
|
|
4832
4861
|
};
|
|
4833
4862
|
const observer = new PropsObserver(callback, deps);
|
|
4834
4863
|
const observerRef = useRef();
|
|
4835
|
-
|
|
4864
|
+
useIsomorphicLayoutEffect(() => {
|
|
4836
4865
|
observerRef.current = observer;
|
|
4837
4866
|
each(deps, (dep) => addFluidObserver(dep, observer));
|
|
4838
4867
|
return () => {
|
|
@@ -4917,7 +4946,7 @@ const createHost = (components, {
|
|
|
4917
4946
|
};
|
|
4918
4947
|
const getDisplayName = (arg) => is.str(arg) ? arg : arg && is.str(arg.displayName) ? arg.displayName : is.fun(arg) && arg.name || null;
|
|
4919
4948
|
function _extends$2() {
|
|
4920
|
-
_extends$2 = Object.assign
|
|
4949
|
+
_extends$2 = Object.assign ? Object.assign.bind() : function(target) {
|
|
4921
4950
|
for (var i = 1; i < arguments.length; i++) {
|
|
4922
4951
|
var source = arguments[i];
|
|
4923
4952
|
for (var key in source) {
|
|
@@ -5550,6 +5579,7 @@ class SpringValue extends FrameValue {
|
|
|
5550
5579
|
const from = anim.fromValues[i];
|
|
5551
5580
|
const v0 = node2.v0 != null ? node2.v0 : node2.v0 = is.arr(config2.velocity) ? config2.velocity[i] : config2.velocity;
|
|
5552
5581
|
let velocity;
|
|
5582
|
+
const precision = config2.precision || (from == to2 ? 5e-3 : Math.min(1, Math.abs(to2 - from) * 1e-3));
|
|
5553
5583
|
if (!is.und(config2.duration)) {
|
|
5554
5584
|
let p = 1;
|
|
5555
5585
|
if (config2.duration > 0) {
|
|
@@ -5571,11 +5601,10 @@ class SpringValue extends FrameValue {
|
|
|
5571
5601
|
const decay = config2.decay === true ? 0.998 : config2.decay;
|
|
5572
5602
|
const e = Math.exp(-(1 - decay) * elapsed);
|
|
5573
5603
|
position = from + v0 / (1 - decay) * (1 - e);
|
|
5574
|
-
finished = Math.abs(node2.lastPosition - position)
|
|
5604
|
+
finished = Math.abs(node2.lastPosition - position) <= precision;
|
|
5575
5605
|
velocity = v0 * e;
|
|
5576
5606
|
} else {
|
|
5577
5607
|
velocity = node2.lastVelocity == null ? v0 : node2.lastVelocity;
|
|
5578
|
-
const precision = config2.precision || (from == to2 ? 5e-3 : Math.min(1, Math.abs(to2 - from) * 1e-3));
|
|
5579
5608
|
const restVelocity = config2.restVelocity || precision / 10;
|
|
5580
5609
|
const bounceFactor = config2.clamp ? 0 : config2.bounce;
|
|
5581
5610
|
const canBounce = !is.und(bounceFactor);
|
|
@@ -6568,7 +6597,7 @@ function useSprings(length, props, deps) {
|
|
|
6568
6597
|
const context = useContext(SpringContext);
|
|
6569
6598
|
const prevContext = usePrev(context);
|
|
6570
6599
|
const hasContext = context !== prevContext && hasProps(context);
|
|
6571
|
-
|
|
6600
|
+
useIsomorphicLayoutEffect(() => {
|
|
6572
6601
|
layoutId.current++;
|
|
6573
6602
|
state.ctrls = ctrls.current;
|
|
6574
6603
|
const {
|
|
@@ -7654,7 +7683,7 @@ const defaultPopupBaseProps = {
|
|
|
7654
7683
|
};
|
|
7655
7684
|
function useInnerVisible(outerVisible) {
|
|
7656
7685
|
const [innerVisible, setInnerVisible] = useState(outerVisible);
|
|
7657
|
-
useIsomorphicLayoutEffect$
|
|
7686
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
7658
7687
|
setInnerVisible(outerVisible);
|
|
7659
7688
|
}, [outerVisible]);
|
|
7660
7689
|
return innerVisible;
|
|
@@ -7667,13 +7696,13 @@ const Popup = (p) => {
|
|
|
7667
7696
|
const props = mergeProps(defaultProps$12, p);
|
|
7668
7697
|
const bodyCls = classNames(`${classPrefix$1k}-body`, props.bodyClassName, `${classPrefix$1k}-body-position-${props.position}`);
|
|
7669
7698
|
const [active, setActive] = useState(props.visible);
|
|
7670
|
-
useIsomorphicLayoutEffect$
|
|
7699
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
7671
7700
|
if (props.visible) {
|
|
7672
7701
|
setActive(true);
|
|
7673
7702
|
}
|
|
7674
7703
|
}, [props.visible]);
|
|
7675
7704
|
const ref = useRef(null);
|
|
7676
|
-
useLockScroll(ref, props.disableBodyScroll && active);
|
|
7705
|
+
useLockScroll(ref, props.disableBodyScroll && active ? "strict" : false);
|
|
7677
7706
|
const unmountedRef = useUnmountedRef$1();
|
|
7678
7707
|
const {
|
|
7679
7708
|
percent
|
|
@@ -7972,12 +8001,12 @@ const AutoCenter = (props) => {
|
|
|
7972
8001
|
};
|
|
7973
8002
|
const avatar = "";
|
|
7974
8003
|
const image = "";
|
|
7975
|
-
var
|
|
8004
|
+
var _stagedComponents_1_1_3_stagedComponents = {};
|
|
7976
8005
|
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
7977
8006
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
7978
8007
|
};
|
|
7979
|
-
Object.defineProperty(
|
|
7980
|
-
var staged_1 =
|
|
8008
|
+
Object.defineProperty(_stagedComponents_1_1_3_stagedComponents, "__esModule", { value: true });
|
|
8009
|
+
var staged_1 = _stagedComponents_1_1_3_stagedComponents.staged = void 0;
|
|
7981
8010
|
const react_1 = __importDefault(React__default);
|
|
7982
8011
|
function processNext(next) {
|
|
7983
8012
|
if (typeof next === "function") {
|
|
@@ -7996,7 +8025,7 @@ function staged(stage) {
|
|
|
7996
8025
|
return processNext(next);
|
|
7997
8026
|
};
|
|
7998
8027
|
}
|
|
7999
|
-
staged_1 =
|
|
8028
|
+
staged_1 = _stagedComponents_1_1_3_stagedComponents.staged = staged;
|
|
8000
8029
|
function toCSSLength(val) {
|
|
8001
8030
|
return typeof val === "number" ? `${val}px` : val;
|
|
8002
8031
|
}
|
|
@@ -8012,7 +8041,7 @@ const LazyDetector = (props) => {
|
|
|
8012
8041
|
ref
|
|
8013
8042
|
});
|
|
8014
8043
|
};
|
|
8015
|
-
const useIsomorphicUpdateLayoutEffect = createUpdateEffect(useIsomorphicLayoutEffect$
|
|
8044
|
+
const useIsomorphicUpdateLayoutEffect = createUpdateEffect(useIsomorphicLayoutEffect$2);
|
|
8016
8045
|
const ImageIcon = () => React__default.createElement("svg", {
|
|
8017
8046
|
viewBox: "0 0 48 48",
|
|
8018
8047
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -8394,7 +8423,7 @@ var isoWeek$1 = { exports: {} };
|
|
|
8394
8423
|
var n = d.startOf;
|
|
8395
8424
|
d.startOf = function(e2, t2) {
|
|
8396
8425
|
var i2 = this.$utils(), s2 = !!i2.u(t2) || t2;
|
|
8397
|
-
return i2.p(e2)
|
|
8426
|
+
return "isoweek" === i2.p(e2) ? s2 ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : n.bind(this)(e2, t2);
|
|
8398
8427
|
};
|
|
8399
8428
|
};
|
|
8400
8429
|
});
|
|
@@ -8433,6 +8462,9 @@ function convertValueToRange(selectionMode, value) {
|
|
|
8433
8462
|
}
|
|
8434
8463
|
return [value, value];
|
|
8435
8464
|
}
|
|
8465
|
+
function convertPageToDayjs(page) {
|
|
8466
|
+
return dayjs().year(page.year).month(page.month - 1).date(1);
|
|
8467
|
+
}
|
|
8436
8468
|
dayjs.extend(isoWeek);
|
|
8437
8469
|
const classPrefix$1b = "adm-calendar";
|
|
8438
8470
|
const defaultProps$Y = {
|
|
@@ -8485,35 +8517,51 @@ const Calendar = forwardRef((p, ref) => {
|
|
|
8485
8517
|
} else {
|
|
8486
8518
|
page = pageOrPageGenerator;
|
|
8487
8519
|
}
|
|
8488
|
-
setCurrent(
|
|
8520
|
+
setCurrent(convertPageToDayjs(page));
|
|
8489
8521
|
},
|
|
8490
8522
|
jumpToToday: () => {
|
|
8491
8523
|
setCurrent(dayjs().date(1));
|
|
8492
8524
|
}
|
|
8493
8525
|
}));
|
|
8526
|
+
const handlePageChange = (action, num, type4) => {
|
|
8527
|
+
const nxtCurrent = current[action](num, type4);
|
|
8528
|
+
if (action === "subtract" && props.minPage) {
|
|
8529
|
+
const minPage = convertPageToDayjs(props.minPage);
|
|
8530
|
+
if (nxtCurrent.isBefore(minPage, type4)) {
|
|
8531
|
+
return;
|
|
8532
|
+
}
|
|
8533
|
+
}
|
|
8534
|
+
if (action === "add" && props.maxPage) {
|
|
8535
|
+
const maxPage = convertPageToDayjs(props.maxPage);
|
|
8536
|
+
if (nxtCurrent.isAfter(maxPage, type4)) {
|
|
8537
|
+
return;
|
|
8538
|
+
}
|
|
8539
|
+
}
|
|
8540
|
+
setCurrent(current[action](num, type4));
|
|
8541
|
+
};
|
|
8494
8542
|
const header = React__default.createElement("div", {
|
|
8495
8543
|
className: `${classPrefix$1b}-header`
|
|
8496
8544
|
}, React__default.createElement("a", {
|
|
8497
8545
|
className: `${classPrefix$1b}-arrow-button ${classPrefix$1b}-arrow-button-year`,
|
|
8498
8546
|
onClick: () => {
|
|
8499
|
-
|
|
8547
|
+
handlePageChange("subtract", 1, "year");
|
|
8500
8548
|
}
|
|
8501
8549
|
}, props.prevYearButton), React__default.createElement("a", {
|
|
8502
8550
|
className: `${classPrefix$1b}-arrow-button ${classPrefix$1b}-arrow-button-month`,
|
|
8503
8551
|
onClick: () => {
|
|
8504
|
-
|
|
8552
|
+
handlePageChange("subtract", 1, "month");
|
|
8505
8553
|
}
|
|
8506
8554
|
}, props.prevMonthButton), React__default.createElement("div", {
|
|
8507
8555
|
className: `${classPrefix$1b}-title`
|
|
8508
8556
|
}, locale.Calendar.renderYearAndMonth(current.year(), current.month() + 1)), React__default.createElement("a", {
|
|
8509
8557
|
className: classNames(`${classPrefix$1b}-arrow-button`, `${classPrefix$1b}-arrow-button-right`, `${classPrefix$1b}-arrow-button-right-month`),
|
|
8510
8558
|
onClick: () => {
|
|
8511
|
-
|
|
8559
|
+
handlePageChange("add", 1, "month");
|
|
8512
8560
|
}
|
|
8513
8561
|
}, props.nextMonthButton), React__default.createElement("a", {
|
|
8514
8562
|
className: classNames(`${classPrefix$1b}-arrow-button`, `${classPrefix$1b}-arrow-button-right`, `${classPrefix$1b}-arrow-button-right-year`),
|
|
8515
8563
|
onClick: () => {
|
|
8516
|
-
|
|
8564
|
+
handlePageChange("add", 1, "year");
|
|
8517
8565
|
}
|
|
8518
8566
|
}, props.nextYearButton));
|
|
8519
8567
|
const maxDay = useMemo(() => props.max && dayjs(props.max), [props.max]);
|
|
@@ -8615,7 +8663,7 @@ const Calendar = forwardRef((p, ref) => {
|
|
|
8615
8663
|
const capsuleTabs = "";
|
|
8616
8664
|
function useResizeEffect(effect, targetRef) {
|
|
8617
8665
|
const fn = useMemoizedFn(effect);
|
|
8618
|
-
useIsomorphicLayoutEffect$
|
|
8666
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
8619
8667
|
const target = targetRef.current;
|
|
8620
8668
|
if (!target)
|
|
8621
8669
|
return;
|
|
@@ -8693,7 +8741,7 @@ const useTabListScroll = (targetRef, activeIndex) => {
|
|
|
8693
8741
|
immediate: immediate && !scrollLeft.isAnimating
|
|
8694
8742
|
});
|
|
8695
8743
|
}
|
|
8696
|
-
useIsomorphicLayoutEffect$
|
|
8744
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
8697
8745
|
animate(true);
|
|
8698
8746
|
}, []);
|
|
8699
8747
|
useIsomorphicUpdateLayoutEffect(() => {
|
|
@@ -8770,7 +8818,7 @@ const ScrollMask = (props) => {
|
|
|
8770
8818
|
}
|
|
8771
8819
|
}));
|
|
8772
8820
|
};
|
|
8773
|
-
var
|
|
8821
|
+
var _reactIs_17_0_2_reactIs = { exports: {} };
|
|
8774
8822
|
var reactIs_development$1 = {};
|
|
8775
8823
|
/** @license React v17.0.2
|
|
8776
8824
|
* react-is.development.js
|
|
@@ -8965,12 +9013,12 @@ var reactIs_development$1 = {};
|
|
|
8965
9013
|
{
|
|
8966
9014
|
module.exports = reactIs_development$1;
|
|
8967
9015
|
}
|
|
8968
|
-
})(
|
|
9016
|
+
})(_reactIs_17_0_2_reactIs);
|
|
8969
9017
|
function traverseReactNode(children, fn) {
|
|
8970
9018
|
let i = 0;
|
|
8971
9019
|
function handle(target) {
|
|
8972
9020
|
React__default.Children.forEach(target, (child) => {
|
|
8973
|
-
if (!
|
|
9021
|
+
if (!_reactIs_17_0_2_reactIs.exports.isFragment(child)) {
|
|
8974
9022
|
fn(child, i);
|
|
8975
9023
|
i += 1;
|
|
8976
9024
|
} else {
|
|
@@ -9169,7 +9217,7 @@ function ownKeys$1(object4, enumerableOnly) {
|
|
|
9169
9217
|
}
|
|
9170
9218
|
function _objectSpread2$1(target) {
|
|
9171
9219
|
for (var i = 1; i < arguments.length; i++) {
|
|
9172
|
-
var source = arguments[i]
|
|
9220
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
9173
9221
|
i % 2 ? ownKeys$1(Object(source), true).forEach(function(key) {
|
|
9174
9222
|
_defineProperty$1(target, key, source[key]);
|
|
9175
9223
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function(key) {
|
|
@@ -9891,7 +9939,7 @@ Please upgrade to the latest version.`);
|
|
|
9891
9939
|
this.emit();
|
|
9892
9940
|
}
|
|
9893
9941
|
pointerClick(event) {
|
|
9894
|
-
if (!this.state.tap) {
|
|
9942
|
+
if (!this.state.tap && event.detail > 0) {
|
|
9895
9943
|
event.preventDefault();
|
|
9896
9944
|
event.stopPropagation();
|
|
9897
9945
|
}
|
|
@@ -10599,23 +10647,21 @@ function resolveWith(config2 = {}, resolvers) {
|
|
|
10599
10647
|
}
|
|
10600
10648
|
return result2;
|
|
10601
10649
|
}
|
|
10602
|
-
function parse$1(
|
|
10603
|
-
const _ref =
|
|
10650
|
+
function parse$1(newConfig, gestureKey, _config = {}) {
|
|
10651
|
+
const _ref = newConfig, {
|
|
10604
10652
|
target,
|
|
10605
10653
|
eventOptions,
|
|
10606
10654
|
window: window2,
|
|
10607
10655
|
enabled,
|
|
10608
10656
|
transform
|
|
10609
10657
|
} = _ref, rest = _objectWithoutProperties$1(_ref, _excluded$3);
|
|
10610
|
-
|
|
10611
|
-
|
|
10612
|
-
|
|
10613
|
-
|
|
10614
|
-
|
|
10615
|
-
|
|
10616
|
-
|
|
10617
|
-
}, sharedConfigResolver)
|
|
10618
|
-
};
|
|
10658
|
+
_config.shared = resolveWith({
|
|
10659
|
+
target,
|
|
10660
|
+
eventOptions,
|
|
10661
|
+
window: window2,
|
|
10662
|
+
enabled,
|
|
10663
|
+
transform
|
|
10664
|
+
}, sharedConfigResolver);
|
|
10619
10665
|
if (gestureKey) {
|
|
10620
10666
|
const resolver = ConfigResolverMap.get(gestureKey);
|
|
10621
10667
|
_config[gestureKey] = resolveWith(_objectSpread2$1({
|
|
@@ -10719,7 +10765,7 @@ class Controller {
|
|
|
10719
10765
|
this.nativeHandlers = nativeHandlers;
|
|
10720
10766
|
}
|
|
10721
10767
|
applyConfig(config2, gestureKey) {
|
|
10722
|
-
this.config = parse$1(config2, gestureKey);
|
|
10768
|
+
this.config = parse$1(config2, gestureKey, this.config);
|
|
10723
10769
|
}
|
|
10724
10770
|
clean() {
|
|
10725
10771
|
this._targetEventStore.clean();
|
|
@@ -10966,13 +11012,13 @@ const Wheel = memo((props) => {
|
|
|
10966
11012
|
const rootRef = useRef(null);
|
|
10967
11013
|
const itemHeightMeasureRef = useRef(null);
|
|
10968
11014
|
const itemHeight = useRef(34);
|
|
10969
|
-
useIsomorphicLayoutEffect$
|
|
11015
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
10970
11016
|
const itemHeightMeasure = itemHeightMeasureRef.current;
|
|
10971
11017
|
if (!itemHeightMeasure)
|
|
10972
11018
|
return;
|
|
10973
11019
|
itemHeight.current = measureCSSLength(window.getComputedStyle(itemHeightMeasure).getPropertyValue("height"));
|
|
10974
11020
|
});
|
|
10975
|
-
useIsomorphicLayoutEffect$
|
|
11021
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
10976
11022
|
if (draggingRef.current)
|
|
10977
11023
|
return;
|
|
10978
11024
|
if (value === null)
|
|
@@ -10986,7 +11032,7 @@ const Wheel = memo((props) => {
|
|
|
10986
11032
|
immediate: y.goal !== finalPosition
|
|
10987
11033
|
});
|
|
10988
11034
|
}, [value, column]);
|
|
10989
|
-
useIsomorphicLayoutEffect$
|
|
11035
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
10990
11036
|
if (column.length === 0) {
|
|
10991
11037
|
if (value !== null) {
|
|
10992
11038
|
onSelect(null);
|
|
@@ -11833,7 +11879,7 @@ const Tabs$1 = (p) => {
|
|
|
11833
11879
|
immediate
|
|
11834
11880
|
});
|
|
11835
11881
|
}
|
|
11836
|
-
useIsomorphicLayoutEffect$
|
|
11882
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
11837
11883
|
animate(!x.isAnimating);
|
|
11838
11884
|
}, []);
|
|
11839
11885
|
useIsomorphicUpdateLayoutEffect(() => {
|
|
@@ -11868,7 +11914,7 @@ const Tabs$1 = (p) => {
|
|
|
11868
11914
|
trailing: true,
|
|
11869
11915
|
leading: true
|
|
11870
11916
|
});
|
|
11871
|
-
useIsomorphicLayoutEffect$
|
|
11917
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
11872
11918
|
updateMask(true);
|
|
11873
11919
|
}, []);
|
|
11874
11920
|
return withNativeProps(props, React__default.createElement("div", {
|
|
@@ -12458,7 +12504,7 @@ const CenterPopup = (p) => {
|
|
|
12458
12504
|
}
|
|
12459
12505
|
});
|
|
12460
12506
|
const [active, setActive] = useState(props.visible);
|
|
12461
|
-
useIsomorphicLayoutEffect$
|
|
12507
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
12462
12508
|
if (props.visible) {
|
|
12463
12509
|
setActive(true);
|
|
12464
12510
|
}
|
|
@@ -12520,18 +12566,22 @@ const defaultProps$O = {
|
|
|
12520
12566
|
const Group$1 = (p) => {
|
|
12521
12567
|
const props = mergeProps(defaultProps$O, p);
|
|
12522
12568
|
const [value, setValue2] = usePropsValue(props);
|
|
12523
|
-
return React__default.createElement(
|
|
12524
|
-
|
|
12525
|
-
|
|
12526
|
-
|
|
12527
|
-
|
|
12528
|
-
|
|
12529
|
-
|
|
12530
|
-
|
|
12531
|
-
|
|
12569
|
+
return React__default.createElement(
|
|
12570
|
+
CheckboxGroupContext.Provider,
|
|
12571
|
+
{
|
|
12572
|
+
value: {
|
|
12573
|
+
value,
|
|
12574
|
+
disabled: props.disabled,
|
|
12575
|
+
check: (v) => {
|
|
12576
|
+
setValue2([...value, v]);
|
|
12577
|
+
},
|
|
12578
|
+
uncheck: (v) => {
|
|
12579
|
+
setValue2(value.filter((item) => item !== v));
|
|
12580
|
+
}
|
|
12532
12581
|
}
|
|
12533
|
-
}
|
|
12534
|
-
|
|
12582
|
+
},
|
|
12583
|
+
props.children
|
|
12584
|
+
);
|
|
12535
12585
|
};
|
|
12536
12586
|
const CheckIcon = memo((props) => {
|
|
12537
12587
|
return withNativeProps(props, React__default.createElement("svg", {
|
|
@@ -12815,7 +12865,7 @@ var isoWeeksInYear$1 = { exports: {} };
|
|
|
12815
12865
|
return function(e, n) {
|
|
12816
12866
|
n.prototype.isoWeeksInYear = function() {
|
|
12817
12867
|
var e2 = this.isLeapYear(), n2 = this.endOf("y").day();
|
|
12818
|
-
return
|
|
12868
|
+
return 4 === n2 || e2 && 5 === n2 ? 53 : 52;
|
|
12819
12869
|
};
|
|
12820
12870
|
};
|
|
12821
12871
|
});
|
|
@@ -13563,11 +13613,132 @@ const index$c = attachPropertiesToComponent(Dropdown, {
|
|
|
13563
13613
|
Item
|
|
13564
13614
|
});
|
|
13565
13615
|
const ellipsis = "";
|
|
13616
|
+
var _runes_0_4_3_runes = { exports: {} };
|
|
13617
|
+
const HIGH_SURROGATE_START = 55296;
|
|
13618
|
+
const HIGH_SURROGATE_END = 56319;
|
|
13619
|
+
const LOW_SURROGATE_START = 56320;
|
|
13620
|
+
const REGIONAL_INDICATOR_START = 127462;
|
|
13621
|
+
const REGIONAL_INDICATOR_END = 127487;
|
|
13622
|
+
const FITZPATRICK_MODIFIER_START = 127995;
|
|
13623
|
+
const FITZPATRICK_MODIFIER_END = 127999;
|
|
13624
|
+
const VARIATION_MODIFIER_START = 65024;
|
|
13625
|
+
const VARIATION_MODIFIER_END = 65039;
|
|
13626
|
+
const DIACRITICAL_MARKS_START = 8400;
|
|
13627
|
+
const DIACRITICAL_MARKS_END = 8447;
|
|
13628
|
+
const ZWJ = 8205;
|
|
13629
|
+
const GRAPHEMS = [
|
|
13630
|
+
776,
|
|
13631
|
+
2359,
|
|
13632
|
+
2359,
|
|
13633
|
+
2367,
|
|
13634
|
+
2367,
|
|
13635
|
+
2984,
|
|
13636
|
+
3007,
|
|
13637
|
+
3021,
|
|
13638
|
+
3633,
|
|
13639
|
+
3635,
|
|
13640
|
+
3648,
|
|
13641
|
+
3657,
|
|
13642
|
+
4352,
|
|
13643
|
+
4449,
|
|
13644
|
+
4520
|
|
13645
|
+
];
|
|
13646
|
+
function runes(string3) {
|
|
13647
|
+
if (typeof string3 !== "string") {
|
|
13648
|
+
throw new Error("string cannot be undefined or null");
|
|
13649
|
+
}
|
|
13650
|
+
const result2 = [];
|
|
13651
|
+
let i = 0;
|
|
13652
|
+
let increment = 0;
|
|
13653
|
+
while (i < string3.length) {
|
|
13654
|
+
increment += nextUnits(i + increment, string3);
|
|
13655
|
+
if (isGraphem(string3[i + increment])) {
|
|
13656
|
+
increment++;
|
|
13657
|
+
}
|
|
13658
|
+
if (isVariationSelector(string3[i + increment])) {
|
|
13659
|
+
increment++;
|
|
13660
|
+
}
|
|
13661
|
+
if (isDiacriticalMark(string3[i + increment])) {
|
|
13662
|
+
increment++;
|
|
13663
|
+
}
|
|
13664
|
+
if (isZeroWidthJoiner(string3[i + increment])) {
|
|
13665
|
+
increment++;
|
|
13666
|
+
continue;
|
|
13667
|
+
}
|
|
13668
|
+
result2.push(string3.substring(i, i + increment));
|
|
13669
|
+
i += increment;
|
|
13670
|
+
increment = 0;
|
|
13671
|
+
}
|
|
13672
|
+
return result2;
|
|
13673
|
+
}
|
|
13674
|
+
function nextUnits(i, string3) {
|
|
13675
|
+
const current = string3[i];
|
|
13676
|
+
if (!isFirstOfSurrogatePair(current) || i === string3.length - 1) {
|
|
13677
|
+
return 1;
|
|
13678
|
+
}
|
|
13679
|
+
const currentPair = current + string3[i + 1];
|
|
13680
|
+
let nextPair = string3.substring(i + 2, i + 5);
|
|
13681
|
+
if (isRegionalIndicator(currentPair) && isRegionalIndicator(nextPair)) {
|
|
13682
|
+
return 4;
|
|
13683
|
+
}
|
|
13684
|
+
if (isFitzpatrickModifier(nextPair)) {
|
|
13685
|
+
return 4;
|
|
13686
|
+
}
|
|
13687
|
+
return 2;
|
|
13688
|
+
}
|
|
13689
|
+
function isFirstOfSurrogatePair(string3) {
|
|
13690
|
+
return string3 && betweenInclusive(string3[0].charCodeAt(0), HIGH_SURROGATE_START, HIGH_SURROGATE_END);
|
|
13691
|
+
}
|
|
13692
|
+
function isRegionalIndicator(string3) {
|
|
13693
|
+
return betweenInclusive(codePointFromSurrogatePair(string3), REGIONAL_INDICATOR_START, REGIONAL_INDICATOR_END);
|
|
13694
|
+
}
|
|
13695
|
+
function isFitzpatrickModifier(string3) {
|
|
13696
|
+
return betweenInclusive(codePointFromSurrogatePair(string3), FITZPATRICK_MODIFIER_START, FITZPATRICK_MODIFIER_END);
|
|
13697
|
+
}
|
|
13698
|
+
function isVariationSelector(string3) {
|
|
13699
|
+
return typeof string3 === "string" && betweenInclusive(string3.charCodeAt(0), VARIATION_MODIFIER_START, VARIATION_MODIFIER_END);
|
|
13700
|
+
}
|
|
13701
|
+
function isDiacriticalMark(string3) {
|
|
13702
|
+
return typeof string3 === "string" && betweenInclusive(string3.charCodeAt(0), DIACRITICAL_MARKS_START, DIACRITICAL_MARKS_END);
|
|
13703
|
+
}
|
|
13704
|
+
function isGraphem(string3) {
|
|
13705
|
+
return typeof string3 === "string" && GRAPHEMS.indexOf(string3.charCodeAt(0)) !== -1;
|
|
13706
|
+
}
|
|
13707
|
+
function isZeroWidthJoiner(string3) {
|
|
13708
|
+
return typeof string3 === "string" && string3.charCodeAt(0) === ZWJ;
|
|
13709
|
+
}
|
|
13710
|
+
function codePointFromSurrogatePair(pair) {
|
|
13711
|
+
const highOffset = pair.charCodeAt(0) - HIGH_SURROGATE_START;
|
|
13712
|
+
const lowOffset = pair.charCodeAt(1) - LOW_SURROGATE_START;
|
|
13713
|
+
return (highOffset << 10) + lowOffset + 65536;
|
|
13714
|
+
}
|
|
13715
|
+
function betweenInclusive(value, lower, upper) {
|
|
13716
|
+
return value >= lower && value <= upper;
|
|
13717
|
+
}
|
|
13718
|
+
function substring(string3, start2, width) {
|
|
13719
|
+
const chars = runes(string3);
|
|
13720
|
+
if (start2 === void 0) {
|
|
13721
|
+
return string3;
|
|
13722
|
+
}
|
|
13723
|
+
if (start2 >= chars.length) {
|
|
13724
|
+
return "";
|
|
13725
|
+
}
|
|
13726
|
+
const rest = chars.length - start2;
|
|
13727
|
+
const stringWidth = width === void 0 ? rest : width;
|
|
13728
|
+
let endIndex = start2 + stringWidth;
|
|
13729
|
+
if (endIndex > start2 + rest) {
|
|
13730
|
+
endIndex = void 0;
|
|
13731
|
+
}
|
|
13732
|
+
return chars.slice(start2, endIndex).join("");
|
|
13733
|
+
}
|
|
13734
|
+
_runes_0_4_3_runes.exports = runes;
|
|
13735
|
+
_runes_0_4_3_runes.exports.substr = substring;
|
|
13566
13736
|
const classPrefix$S = `adm-ellipsis`;
|
|
13567
13737
|
const defaultProps$G = {
|
|
13568
13738
|
direction: "end",
|
|
13569
13739
|
rows: 1,
|
|
13570
13740
|
expandText: "",
|
|
13741
|
+
content: "",
|
|
13571
13742
|
collapseText: "",
|
|
13572
13743
|
stopPropagationForActionButtons: [],
|
|
13573
13744
|
onContentClick: () => {
|
|
@@ -13579,6 +13750,10 @@ const Ellipsis = (p) => {
|
|
|
13579
13750
|
const [ellipsised, setEllipsised] = useState({});
|
|
13580
13751
|
const [expanded, setExpanded] = useState(false);
|
|
13581
13752
|
const [exceeded, setExceeded] = useState(false);
|
|
13753
|
+
const chars = useMemo(() => _runes_0_4_3_runes.exports(props.content), [props.content]);
|
|
13754
|
+
function getSubString(start2, end) {
|
|
13755
|
+
return chars.slice(start2, end).join("");
|
|
13756
|
+
}
|
|
13582
13757
|
function calcEllipsised() {
|
|
13583
13758
|
const root2 = rootRef.current;
|
|
13584
13759
|
if (!root2)
|
|
@@ -13613,19 +13788,19 @@ const Ellipsis = (p) => {
|
|
|
13613
13788
|
if (right - left <= 1) {
|
|
13614
13789
|
if (props.direction === "end") {
|
|
13615
13790
|
return {
|
|
13616
|
-
leading:
|
|
13791
|
+
leading: getSubString(0, left) + "..."
|
|
13617
13792
|
};
|
|
13618
13793
|
} else {
|
|
13619
13794
|
return {
|
|
13620
|
-
tailing: "..." +
|
|
13795
|
+
tailing: "..." + getSubString(right, end)
|
|
13621
13796
|
};
|
|
13622
13797
|
}
|
|
13623
13798
|
}
|
|
13624
13799
|
const middle2 = Math.round((left + right) / 2);
|
|
13625
13800
|
if (props.direction === "end") {
|
|
13626
|
-
container.innerText =
|
|
13801
|
+
container.innerText = getSubString(0, middle2) + "..." + actionText;
|
|
13627
13802
|
} else {
|
|
13628
|
-
container.innerText = actionText + "..." +
|
|
13803
|
+
container.innerText = actionText + "..." + getSubString(middle2, end);
|
|
13629
13804
|
}
|
|
13630
13805
|
if (container.offsetHeight <= maxHeight) {
|
|
13631
13806
|
if (props.direction === "end") {
|
|
@@ -13643,13 +13818,13 @@ const Ellipsis = (p) => {
|
|
|
13643
13818
|
}, checkMiddle = function(leftPart, rightPart) {
|
|
13644
13819
|
if (leftPart[1] - leftPart[0] <= 1 && rightPart[1] - rightPart[0] <= 1) {
|
|
13645
13820
|
return {
|
|
13646
|
-
leading:
|
|
13647
|
-
tailing: "..." +
|
|
13821
|
+
leading: getSubString(0, leftPart[0]) + "...",
|
|
13822
|
+
tailing: "..." + getSubString(rightPart[1], end)
|
|
13648
13823
|
};
|
|
13649
13824
|
}
|
|
13650
13825
|
const leftPartMiddle = Math.floor((leftPart[0] + leftPart[1]) / 2);
|
|
13651
13826
|
const rightPartMiddle = Math.ceil((rightPart[0] + rightPart[1]) / 2);
|
|
13652
|
-
container.innerText =
|
|
13827
|
+
container.innerText = getSubString(0, leftPartMiddle) + "..." + actionText + "..." + getSubString(rightPartMiddle, end);
|
|
13653
13828
|
if (container.offsetHeight <= maxHeight) {
|
|
13654
13829
|
return checkMiddle([leftPartMiddle, leftPart[1]], [rightPart[0], rightPartMiddle]);
|
|
13655
13830
|
} else {
|
|
@@ -13666,7 +13841,7 @@ const Ellipsis = (p) => {
|
|
|
13666
13841
|
document.body.removeChild(container);
|
|
13667
13842
|
}
|
|
13668
13843
|
useResizeEffect(calcEllipsised, rootRef);
|
|
13669
|
-
useIsomorphicLayoutEffect$
|
|
13844
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
13670
13845
|
calcEllipsised();
|
|
13671
13846
|
}, [props.content, props.direction, props.rows, props.expandText, props.collapseText]);
|
|
13672
13847
|
const expandActionElement = exceeded && props.expandText ? withStopPropagation(props.stopPropagationForActionButtons, React__default.createElement("a", {
|
|
@@ -14575,7 +14750,7 @@ function ownKeys(object4, enumerableOnly) {
|
|
|
14575
14750
|
}
|
|
14576
14751
|
function _objectSpread2(target) {
|
|
14577
14752
|
for (var i = 1; i < arguments.length; i++) {
|
|
14578
|
-
var source = arguments[i]
|
|
14753
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
14579
14754
|
i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
|
|
14580
14755
|
_defineProperty(target, key, source[key]);
|
|
14581
14756
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
@@ -14697,10 +14872,10 @@ function _isNativeReflectConstruct$1() {
|
|
|
14697
14872
|
}
|
|
14698
14873
|
function _typeof$1(obj) {
|
|
14699
14874
|
"@babel/helpers - typeof";
|
|
14700
|
-
return _typeof$1 = typeof Symbol
|
|
14875
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
14701
14876
|
return typeof obj2;
|
|
14702
14877
|
} : function(obj2) {
|
|
14703
|
-
return obj2 && typeof Symbol
|
|
14878
|
+
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
14704
14879
|
}, _typeof$1(obj);
|
|
14705
14880
|
}
|
|
14706
14881
|
function _possibleConstructorReturn(self2, call2) {
|
|
@@ -14724,7 +14899,7 @@ function _createSuper(Derived) {
|
|
|
14724
14899
|
return _possibleConstructorReturn(this, result2);
|
|
14725
14900
|
};
|
|
14726
14901
|
}
|
|
14727
|
-
var
|
|
14902
|
+
var _reactIs_16_13_1_reactIs = { exports: {} };
|
|
14728
14903
|
var reactIs_development = {};
|
|
14729
14904
|
/** @license React v16.13.1
|
|
14730
14905
|
* react-is.development.js
|
|
@@ -14884,7 +15059,7 @@ var reactIs_development = {};
|
|
|
14884
15059
|
{
|
|
14885
15060
|
module.exports = reactIs_development;
|
|
14886
15061
|
}
|
|
14887
|
-
})(
|
|
15062
|
+
})(_reactIs_16_13_1_reactIs);
|
|
14888
15063
|
function toArray$2(children) {
|
|
14889
15064
|
var option = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
14890
15065
|
var ret = [];
|
|
@@ -14894,7 +15069,7 @@ function toArray$2(children) {
|
|
|
14894
15069
|
}
|
|
14895
15070
|
if (Array.isArray(child)) {
|
|
14896
15071
|
ret = ret.concat(toArray$2(child));
|
|
14897
|
-
} else if (
|
|
15072
|
+
} else if (_reactIs_16_13_1_reactIs.exports.isFragment(child) && child.props) {
|
|
14898
15073
|
ret = ret.concat(toArray$2(child.props.children, option));
|
|
14899
15074
|
} else {
|
|
14900
15075
|
ret.push(child);
|
|
@@ -14962,11 +15137,10 @@ function toArray$1(value) {
|
|
|
14962
15137
|
return Array.isArray(value) ? value : [value];
|
|
14963
15138
|
}
|
|
14964
15139
|
function _regeneratorRuntime() {
|
|
14965
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
14966
15140
|
_regeneratorRuntime = function _regeneratorRuntime2() {
|
|
14967
15141
|
return exports;
|
|
14968
15142
|
};
|
|
14969
|
-
var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = typeof Symbol
|
|
15143
|
+
var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
14970
15144
|
function define(obj, key, value) {
|
|
14971
15145
|
return Object.defineProperty(obj, key, {
|
|
14972
15146
|
value,
|
|
@@ -14987,10 +15161,10 @@ function _regeneratorRuntime() {
|
|
|
14987
15161
|
return generator._invoke = function(innerFn2, self3, context2) {
|
|
14988
15162
|
var state = "suspendedStart";
|
|
14989
15163
|
return function(method4, arg) {
|
|
14990
|
-
if (
|
|
15164
|
+
if ("executing" === state)
|
|
14991
15165
|
throw new Error("Generator is already running");
|
|
14992
|
-
if (
|
|
14993
|
-
if (
|
|
15166
|
+
if ("completed" === state) {
|
|
15167
|
+
if ("throw" === method4)
|
|
14994
15168
|
throw arg;
|
|
14995
15169
|
return doneResult();
|
|
14996
15170
|
}
|
|
@@ -15004,17 +15178,17 @@ function _regeneratorRuntime() {
|
|
|
15004
15178
|
return delegateResult;
|
|
15005
15179
|
}
|
|
15006
15180
|
}
|
|
15007
|
-
if (context2.method
|
|
15181
|
+
if ("next" === context2.method)
|
|
15008
15182
|
context2.sent = context2._sent = context2.arg;
|
|
15009
|
-
else if (context2.method
|
|
15010
|
-
if (
|
|
15183
|
+
else if ("throw" === context2.method) {
|
|
15184
|
+
if ("suspendedStart" === state)
|
|
15011
15185
|
throw state = "completed", context2.arg;
|
|
15012
15186
|
context2.dispatchException(context2.arg);
|
|
15013
15187
|
} else
|
|
15014
|
-
context2.method
|
|
15188
|
+
"return" === context2.method && context2.abrupt("return", context2.arg);
|
|
15015
15189
|
state = "executing";
|
|
15016
15190
|
var record2 = tryCatch(innerFn2, self3, context2);
|
|
15017
|
-
if (record2.type
|
|
15191
|
+
if ("normal" === record2.type) {
|
|
15018
15192
|
if (state = context2.done ? "completed" : "suspendedYield", record2.arg === ContinueSentinel)
|
|
15019
15193
|
continue;
|
|
15020
15194
|
return {
|
|
@@ -15022,7 +15196,7 @@ function _regeneratorRuntime() {
|
|
|
15022
15196
|
done: context2.done
|
|
15023
15197
|
};
|
|
15024
15198
|
}
|
|
15025
|
-
record2.type
|
|
15199
|
+
"throw" === record2.type && (state = "completed", context2.method = "throw", context2.arg = record2.arg);
|
|
15026
15200
|
}
|
|
15027
15201
|
};
|
|
15028
15202
|
}(innerFn, self2, context), generator;
|
|
@@ -15065,9 +15239,9 @@ function _regeneratorRuntime() {
|
|
|
15065
15239
|
function AsyncIterator(generator, PromiseImpl) {
|
|
15066
15240
|
function invoke(method4, arg, resolve, reject) {
|
|
15067
15241
|
var record2 = tryCatch(generator[method4], generator, arg);
|
|
15068
|
-
if (record2.type
|
|
15242
|
+
if ("throw" !== record2.type) {
|
|
15069
15243
|
var result2 = record2.arg, value = result2.value;
|
|
15070
|
-
return value && _typeof$1(value)
|
|
15244
|
+
return value && "object" == _typeof$1(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function(value2) {
|
|
15071
15245
|
invoke("next", value2, resolve, reject);
|
|
15072
15246
|
}, function(err) {
|
|
15073
15247
|
invoke("throw", err, resolve, reject);
|
|
@@ -15091,19 +15265,19 @@ function _regeneratorRuntime() {
|
|
|
15091
15265
|
}
|
|
15092
15266
|
function maybeInvokeDelegate(delegate, context) {
|
|
15093
15267
|
var method4 = delegate.iterator[context.method];
|
|
15094
|
-
if (
|
|
15095
|
-
if (context.delegate = null, context.method
|
|
15096
|
-
if (delegate.iterator["return"] && (context.method = "return", context.arg = void 0, maybeInvokeDelegate(delegate, context), context.method
|
|
15268
|
+
if (void 0 === method4) {
|
|
15269
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
15270
|
+
if (delegate.iterator["return"] && (context.method = "return", context.arg = void 0, maybeInvokeDelegate(delegate, context), "throw" === context.method))
|
|
15097
15271
|
return ContinueSentinel;
|
|
15098
15272
|
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
15099
15273
|
}
|
|
15100
15274
|
return ContinueSentinel;
|
|
15101
15275
|
}
|
|
15102
15276
|
var record2 = tryCatch(method4, delegate.iterator, context.arg);
|
|
15103
|
-
if (record2.type
|
|
15277
|
+
if ("throw" === record2.type)
|
|
15104
15278
|
return context.method = "throw", context.arg = record2.arg, context.delegate = null, ContinueSentinel;
|
|
15105
15279
|
var info = record2.arg;
|
|
15106
|
-
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, context.method
|
|
15280
|
+
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = void 0), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
15107
15281
|
}
|
|
15108
15282
|
function pushTryEntry(locs) {
|
|
15109
15283
|
var entry = {
|
|
@@ -15125,7 +15299,7 @@ function _regeneratorRuntime() {
|
|
|
15125
15299
|
var iteratorMethod = iterable[iteratorSymbol];
|
|
15126
15300
|
if (iteratorMethod)
|
|
15127
15301
|
return iteratorMethod.call(iterable);
|
|
15128
|
-
if (typeof iterable.next
|
|
15302
|
+
if ("function" == typeof iterable.next)
|
|
15129
15303
|
return iterable;
|
|
15130
15304
|
if (!isNaN(iterable.length)) {
|
|
15131
15305
|
var i = -1, next = function next2() {
|
|
@@ -15149,8 +15323,8 @@ function _regeneratorRuntime() {
|
|
|
15149
15323
|
};
|
|
15150
15324
|
}
|
|
15151
15325
|
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function(genFun) {
|
|
15152
|
-
var ctor = typeof genFun
|
|
15153
|
-
return !!ctor && (ctor === GeneratorFunction || (ctor.displayName || ctor.name)
|
|
15326
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
15327
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
15154
15328
|
}, exports.mark = function(genFun) {
|
|
15155
15329
|
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
15156
15330
|
}, exports.awrap = function(arg) {
|
|
@@ -15160,7 +15334,7 @@ function _regeneratorRuntime() {
|
|
|
15160
15334
|
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function() {
|
|
15161
15335
|
return this;
|
|
15162
15336
|
}), exports.AsyncIterator = AsyncIterator, exports.async = function(innerFn, outerFn, self2, tryLocsList, PromiseImpl) {
|
|
15163
|
-
|
|
15337
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
15164
15338
|
var iter = new AsyncIterator(wrap(innerFn, outerFn, self2, tryLocsList), PromiseImpl);
|
|
15165
15339
|
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function(result2) {
|
|
15166
15340
|
return result2.done ? result2.value : iter.next();
|
|
@@ -15187,13 +15361,13 @@ function _regeneratorRuntime() {
|
|
|
15187
15361
|
reset: function reset(skipTempReset) {
|
|
15188
15362
|
if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = false, this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEach(resetTryEntry), !skipTempReset)
|
|
15189
15363
|
for (var name in this) {
|
|
15190
|
-
name.charAt(0)
|
|
15364
|
+
"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = void 0);
|
|
15191
15365
|
}
|
|
15192
15366
|
},
|
|
15193
15367
|
stop: function stop2() {
|
|
15194
15368
|
this.done = true;
|
|
15195
15369
|
var rootRecord = this.tryEntries[0].completion;
|
|
15196
|
-
if (rootRecord.type
|
|
15370
|
+
if ("throw" === rootRecord.type)
|
|
15197
15371
|
throw rootRecord.arg;
|
|
15198
15372
|
return this.rval;
|
|
15199
15373
|
},
|
|
@@ -15206,7 +15380,7 @@ function _regeneratorRuntime() {
|
|
|
15206
15380
|
}
|
|
15207
15381
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
15208
15382
|
var entry = this.tryEntries[i], record2 = entry.completion;
|
|
15209
|
-
if (entry.tryLoc
|
|
15383
|
+
if ("root" === entry.tryLoc)
|
|
15210
15384
|
return handle("end");
|
|
15211
15385
|
if (entry.tryLoc <= this.prev) {
|
|
15212
15386
|
var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
@@ -15235,14 +15409,14 @@ function _regeneratorRuntime() {
|
|
|
15235
15409
|
break;
|
|
15236
15410
|
}
|
|
15237
15411
|
}
|
|
15238
|
-
finallyEntry && (
|
|
15412
|
+
finallyEntry && ("break" === type4 || "continue" === type4) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
15239
15413
|
var record2 = finallyEntry ? finallyEntry.completion : {};
|
|
15240
15414
|
return record2.type = type4, record2.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record2);
|
|
15241
15415
|
},
|
|
15242
15416
|
complete: function complete(record2, afterLoc) {
|
|
15243
|
-
if (record2.type
|
|
15417
|
+
if ("throw" === record2.type)
|
|
15244
15418
|
throw record2.arg;
|
|
15245
|
-
return
|
|
15419
|
+
return "break" === record2.type || "continue" === record2.type ? this.next = record2.arg : "return" === record2.type ? (this.rval = this.arg = record2.arg, this.method = "return", this.next = "end") : "normal" === record2.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
15246
15420
|
},
|
|
15247
15421
|
finish: function finish(finallyLoc) {
|
|
15248
15422
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
@@ -15256,7 +15430,7 @@ function _regeneratorRuntime() {
|
|
|
15256
15430
|
var entry = this.tryEntries[i];
|
|
15257
15431
|
if (entry.tryLoc === tryLoc) {
|
|
15258
15432
|
var record2 = entry.completion;
|
|
15259
|
-
if (record2.type
|
|
15433
|
+
if ("throw" === record2.type) {
|
|
15260
15434
|
var thrown = record2.arg;
|
|
15261
15435
|
resetTryEntry(entry);
|
|
15262
15436
|
}
|
|
@@ -15270,7 +15444,7 @@ function _regeneratorRuntime() {
|
|
|
15270
15444
|
iterator: values(iterable),
|
|
15271
15445
|
resultName,
|
|
15272
15446
|
nextLoc
|
|
15273
|
-
}, this.method
|
|
15447
|
+
}, "next" === this.method && (this.arg = void 0), ContinueSentinel;
|
|
15274
15448
|
}
|
|
15275
15449
|
}, exports;
|
|
15276
15450
|
}
|
|
@@ -16538,7 +16712,7 @@ function isSimilar(source, target) {
|
|
|
16538
16712
|
}
|
|
16539
16713
|
var sourceKeys = Object.keys(source);
|
|
16540
16714
|
var targetKeys = Object.keys(target);
|
|
16541
|
-
var keys2 = new Set([].concat(
|
|
16715
|
+
var keys2 = new Set([].concat(sourceKeys, targetKeys));
|
|
16542
16716
|
return _toConsumableArray(keys2).every(function(key) {
|
|
16543
16717
|
var sourceValue = source[key];
|
|
16544
16718
|
var targetValue = target[key];
|
|
@@ -17002,10 +17176,11 @@ var Field = /* @__PURE__ */ function(_React$Component) {
|
|
|
17002
17176
|
}).then(function() {
|
|
17003
17177
|
var ruleErrors = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : EMPTY_ERRORS;
|
|
17004
17178
|
if (_this.validatePromise === rootPromise) {
|
|
17179
|
+
var _ruleErrors$forEach;
|
|
17005
17180
|
_this.validatePromise = null;
|
|
17006
17181
|
var nextErrors = [];
|
|
17007
17182
|
var nextWarnings = [];
|
|
17008
|
-
ruleErrors.forEach(function(_ref3) {
|
|
17183
|
+
(_ruleErrors$forEach = ruleErrors.forEach) === null || _ruleErrors$forEach === void 0 ? void 0 : _ruleErrors$forEach.call(ruleErrors, function(_ref3) {
|
|
17009
17184
|
var warningOnly = _ref3.rule.warningOnly, _ref3$errors = _ref3.errors, errors = _ref3$errors === void 0 ? EMPTY_ERRORS : _ref3$errors;
|
|
17010
17185
|
if (warningOnly) {
|
|
17011
17186
|
nextWarnings.push.apply(nextWarnings, _toConsumableArray(errors));
|
|
@@ -18094,9 +18269,10 @@ var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate
|
|
|
18094
18269
|
warnings: []
|
|
18095
18270
|
};
|
|
18096
18271
|
}).catch(function(ruleErrors) {
|
|
18272
|
+
var _ruleErrors$forEach;
|
|
18097
18273
|
var mergedErrors = [];
|
|
18098
18274
|
var mergedWarnings = [];
|
|
18099
|
-
ruleErrors.forEach(function(_ref6) {
|
|
18275
|
+
(_ruleErrors$forEach = ruleErrors.forEach) === null || _ruleErrors$forEach === void 0 ? void 0 : _ruleErrors$forEach.call(ruleErrors, function(_ref6) {
|
|
18100
18276
|
var warningOnly = _ref6.rule.warningOnly, errors = _ref6.errors;
|
|
18101
18277
|
if (warningOnly) {
|
|
18102
18278
|
mergedWarnings.push.apply(mergedWarnings, _toConsumableArray(errors));
|
|
@@ -18280,9 +18456,12 @@ var Form$1 = function Form(_ref, ref) {
|
|
|
18280
18456
|
if (!mountRef.current) {
|
|
18281
18457
|
mountRef.current = true;
|
|
18282
18458
|
}
|
|
18283
|
-
React$1.useEffect(
|
|
18284
|
-
|
|
18285
|
-
|
|
18459
|
+
React$1.useEffect(
|
|
18460
|
+
function() {
|
|
18461
|
+
return destroyForm;
|
|
18462
|
+
},
|
|
18463
|
+
[]
|
|
18464
|
+
);
|
|
18286
18465
|
var childrenNode;
|
|
18287
18466
|
var childrenRenderProps = typeof children === "function";
|
|
18288
18467
|
if (childrenRenderProps) {
|
|
@@ -18332,8 +18511,10 @@ function stringify$1(value) {
|
|
|
18332
18511
|
}
|
|
18333
18512
|
}
|
|
18334
18513
|
function useWatch() {
|
|
18335
|
-
var
|
|
18336
|
-
|
|
18514
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
18515
|
+
args[_key] = arguments[_key];
|
|
18516
|
+
}
|
|
18517
|
+
var _args$ = args[0], dependencies = _args$ === void 0 ? [] : _args$, form = args[1];
|
|
18337
18518
|
var _useState = useState(), _useState2 = _slicedToArray(_useState, 2), value = _useState2[0], setValue2 = _useState2[1];
|
|
18338
18519
|
var valueStr = useMemo(function() {
|
|
18339
18520
|
return stringify$1(value);
|
|
@@ -18344,29 +18525,32 @@ function useWatch() {
|
|
|
18344
18525
|
var formInstance = form || fieldContext;
|
|
18345
18526
|
var isValidForm = formInstance && formInstance._init;
|
|
18346
18527
|
{
|
|
18347
|
-
warningOnce$1(isValidForm, "useWatch requires a form instance since it can not auto detect from context.");
|
|
18528
|
+
warningOnce$1(args.length === 2 ? form ? isValidForm : true : isValidForm, "useWatch requires a form instance since it can not auto detect from context.");
|
|
18348
18529
|
}
|
|
18349
18530
|
var namePath = getNamePath(dependencies);
|
|
18350
18531
|
var namePathRef = useRef(namePath);
|
|
18351
18532
|
namePathRef.current = namePath;
|
|
18352
|
-
useEffect(
|
|
18353
|
-
|
|
18354
|
-
|
|
18355
|
-
|
|
18356
|
-
var getFieldsValue = formInstance.getFieldsValue, getInternalHooks3 = formInstance.getInternalHooks;
|
|
18357
|
-
var _getInternalHooks = getInternalHooks3(HOOK_MARK$1), registerWatch = _getInternalHooks.registerWatch;
|
|
18358
|
-
var cancelRegister = registerWatch(function(store) {
|
|
18359
|
-
var newValue = getValue(store, namePathRef.current);
|
|
18360
|
-
var nextValueStr = stringify$1(newValue);
|
|
18361
|
-
if (valueStrRef.current !== nextValueStr) {
|
|
18362
|
-
valueStrRef.current = nextValueStr;
|
|
18363
|
-
setValue2(newValue);
|
|
18533
|
+
useEffect(
|
|
18534
|
+
function() {
|
|
18535
|
+
if (!isValidForm) {
|
|
18536
|
+
return;
|
|
18364
18537
|
}
|
|
18365
|
-
|
|
18366
|
-
|
|
18367
|
-
|
|
18368
|
-
|
|
18369
|
-
|
|
18538
|
+
var getFieldsValue = formInstance.getFieldsValue, getInternalHooks3 = formInstance.getInternalHooks;
|
|
18539
|
+
var _getInternalHooks = getInternalHooks3(HOOK_MARK$1), registerWatch = _getInternalHooks.registerWatch;
|
|
18540
|
+
var cancelRegister = registerWatch(function(store) {
|
|
18541
|
+
var newValue = getValue(store, namePathRef.current);
|
|
18542
|
+
var nextValueStr = stringify$1(newValue);
|
|
18543
|
+
if (valueStrRef.current !== nextValueStr) {
|
|
18544
|
+
valueStrRef.current = nextValueStr;
|
|
18545
|
+
setValue2(newValue);
|
|
18546
|
+
}
|
|
18547
|
+
});
|
|
18548
|
+
var initialValue = getValue(getFieldsValue(), namePathRef.current);
|
|
18549
|
+
setValue2(initialValue);
|
|
18550
|
+
return cancelRegister;
|
|
18551
|
+
},
|
|
18552
|
+
[isValidForm]
|
|
18553
|
+
);
|
|
18370
18554
|
return value;
|
|
18371
18555
|
}
|
|
18372
18556
|
var InternalForm = /* @__PURE__ */ React$1.forwardRef(Form$1);
|
|
@@ -18719,10 +18903,10 @@ var _typeof = { exports: {} };
|
|
|
18719
18903
|
(function(module) {
|
|
18720
18904
|
function _typeof2(obj) {
|
|
18721
18905
|
"@babel/helpers - typeof";
|
|
18722
|
-
return module.exports = _typeof2 = typeof Symbol
|
|
18906
|
+
return module.exports = _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
18723
18907
|
return typeof obj2;
|
|
18724
18908
|
} : function(obj2) {
|
|
18725
|
-
return obj2 && typeof Symbol
|
|
18909
|
+
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
18726
18910
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof2(obj);
|
|
18727
18911
|
}
|
|
18728
18912
|
module.exports = _typeof2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
@@ -18881,9 +19065,9 @@ function isSimpleFunctionComponent(type4) {
|
|
|
18881
19065
|
return typeof type4 === "function" && !shouldConstruct(type4) && type4.defaultProps === void 0;
|
|
18882
19066
|
}
|
|
18883
19067
|
function isSafeSetRefComponent(component) {
|
|
18884
|
-
if (
|
|
19068
|
+
if (_reactIs_17_0_2_reactIs.exports.isFragment(component))
|
|
18885
19069
|
return false;
|
|
18886
|
-
if (
|
|
19070
|
+
if (_reactIs_17_0_2_reactIs.exports.isMemo(component))
|
|
18887
19071
|
return isSafeSetRefComponent(component.type);
|
|
18888
19072
|
return !isSimpleFunctionComponent(component.type);
|
|
18889
19073
|
}
|
|
@@ -19585,7 +19769,7 @@ function getWindow(node) {
|
|
|
19585
19769
|
}
|
|
19586
19770
|
return node;
|
|
19587
19771
|
}
|
|
19588
|
-
function getComputedStyle
|
|
19772
|
+
function getComputedStyle(element) {
|
|
19589
19773
|
return getWindow(element).getComputedStyle(element);
|
|
19590
19774
|
}
|
|
19591
19775
|
function getNodeName(node) {
|
|
@@ -19619,7 +19803,7 @@ function isOverflowElement(element) {
|
|
|
19619
19803
|
overflow,
|
|
19620
19804
|
overflowX,
|
|
19621
19805
|
overflowY
|
|
19622
|
-
} = getComputedStyle
|
|
19806
|
+
} = getComputedStyle(element);
|
|
19623
19807
|
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
|
|
19624
19808
|
}
|
|
19625
19809
|
function isTableElement(element) {
|
|
@@ -19627,7 +19811,7 @@ function isTableElement(element) {
|
|
|
19627
19811
|
}
|
|
19628
19812
|
function isContainingBlock(element) {
|
|
19629
19813
|
const isFirefox = /firefox/i.test(getUAString());
|
|
19630
|
-
const css = getComputedStyle
|
|
19814
|
+
const css = getComputedStyle(element);
|
|
19631
19815
|
return css.transform !== "none" || css.perspective !== "none" || css.contain === "paint" || ["transform", "perspective"].includes(css.willChange) || isFirefox && css.willChange === "filter" || isFirefox && (css.filter ? css.filter !== "none" : false);
|
|
19632
19816
|
}
|
|
19633
19817
|
function isLayoutViewport() {
|
|
@@ -19693,7 +19877,11 @@ function isScaled(element) {
|
|
|
19693
19877
|
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
19694
19878
|
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
19695
19879
|
const documentElement = getDocumentElement(offsetParent);
|
|
19696
|
-
const rect = getBoundingClientRect(
|
|
19880
|
+
const rect = getBoundingClientRect(
|
|
19881
|
+
element,
|
|
19882
|
+
isOffsetParentAnElement && isScaled(offsetParent),
|
|
19883
|
+
strategy === "fixed"
|
|
19884
|
+
);
|
|
19697
19885
|
let scroll = {
|
|
19698
19886
|
scrollLeft: 0,
|
|
19699
19887
|
scrollTop: 0
|
|
@@ -19742,7 +19930,8 @@ function getContainingBlock(element) {
|
|
|
19742
19930
|
if (isContainingBlock(currentNode)) {
|
|
19743
19931
|
return currentNode;
|
|
19744
19932
|
} else {
|
|
19745
|
-
|
|
19933
|
+
const parent = currentNode.parentNode;
|
|
19934
|
+
currentNode = isShadowRoot(parent) ? parent.host : parent;
|
|
19746
19935
|
}
|
|
19747
19936
|
}
|
|
19748
19937
|
return null;
|
|
@@ -19839,7 +20028,7 @@ function getDocumentRect(element) {
|
|
|
19839
20028
|
const height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
19840
20029
|
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
19841
20030
|
const y = -scroll.scrollTop;
|
|
19842
|
-
if (getComputedStyle
|
|
20031
|
+
if (getComputedStyle(body || html).direction === "rtl") {
|
|
19843
20032
|
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
19844
20033
|
}
|
|
19845
20034
|
return {
|
|
@@ -19912,7 +20101,7 @@ function getClientRectFromClippingAncestor(element, clippingParent, strategy) {
|
|
|
19912
20101
|
}
|
|
19913
20102
|
function getClippingAncestors(element) {
|
|
19914
20103
|
const clippingAncestors = getOverflowAncestors(element);
|
|
19915
|
-
const canEscapeClipping = ["absolute", "fixed"].includes(getComputedStyle
|
|
20104
|
+
const canEscapeClipping = ["absolute", "fixed"].includes(getComputedStyle(element).position);
|
|
19916
20105
|
const clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
19917
20106
|
if (!isElement(clipperElement)) {
|
|
19918
20107
|
return [];
|
|
@@ -19967,7 +20156,7 @@ const platform = {
|
|
|
19967
20156
|
};
|
|
19968
20157
|
},
|
|
19969
20158
|
getClientRects: (element) => Array.from(element.getClientRects()),
|
|
19970
|
-
isRTL: (element) => getComputedStyle
|
|
20159
|
+
isRTL: (element) => getComputedStyle(element).direction === "rtl"
|
|
19971
20160
|
};
|
|
19972
20161
|
function autoUpdate(reference, floating, update2, options) {
|
|
19973
20162
|
if (options === void 0) {
|
|
@@ -20188,7 +20377,7 @@ const Popover$1 = forwardRef((p, ref) => {
|
|
|
20188
20377
|
arrowElement.style.setProperty("--arrow-icon-rotate", arrowRotate);
|
|
20189
20378
|
});
|
|
20190
20379
|
}
|
|
20191
|
-
useIsomorphicLayoutEffect$
|
|
20380
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
20192
20381
|
update2();
|
|
20193
20382
|
});
|
|
20194
20383
|
useEffect(() => {
|
|
@@ -20216,10 +20405,10 @@ const Popover$1 = forwardRef((p, ref) => {
|
|
|
20216
20405
|
if (!props.trigger)
|
|
20217
20406
|
return;
|
|
20218
20407
|
setVisible(false);
|
|
20219
|
-
}, () => {
|
|
20408
|
+
}, [() => {
|
|
20220
20409
|
var _a;
|
|
20221
20410
|
return (_a = targetRef.current) === null || _a === void 0 ? void 0 : _a.element;
|
|
20222
|
-
});
|
|
20411
|
+
}, floatingRef], ["click", "touchmove"]);
|
|
20223
20412
|
const shouldRender = useShouldRender(visible, false, props.destroyOnHide);
|
|
20224
20413
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(Wrapper, {
|
|
20225
20414
|
ref: targetRef
|
|
@@ -21018,7 +21207,7 @@ const PreviewItem = (props) => {
|
|
|
21018
21207
|
}
|
|
21019
21208
|
return "";
|
|
21020
21209
|
}, [url2, file]);
|
|
21021
|
-
useLayoutEffect
|
|
21210
|
+
useLayoutEffect(() => {
|
|
21022
21211
|
return () => {
|
|
21023
21212
|
URL.revokeObjectURL(src);
|
|
21024
21213
|
};
|
|
@@ -21097,14 +21286,14 @@ const ImageUploader = (p) => {
|
|
|
21097
21286
|
const props = mergeProps(defaultProps$y, p);
|
|
21098
21287
|
const [value, setValue2] = usePropsValue(props);
|
|
21099
21288
|
const [tasks, setTasks] = useState([]);
|
|
21100
|
-
useIsomorphicLayoutEffect$
|
|
21289
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
21101
21290
|
setTasks((prev) => prev.filter((task) => {
|
|
21102
21291
|
if (task.url === void 0)
|
|
21103
21292
|
return true;
|
|
21104
21293
|
return !value.some((fileItem) => fileItem.url === task.url);
|
|
21105
21294
|
}));
|
|
21106
21295
|
}, [value]);
|
|
21107
|
-
useIsomorphicLayoutEffect$
|
|
21296
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
21108
21297
|
var _a;
|
|
21109
21298
|
(_a = props.onUploadQueueChange) === null || _a === void 0 ? void 0 : _a.call(props, tasks.map((item) => ({
|
|
21110
21299
|
id: item.id,
|
|
@@ -21586,7 +21775,7 @@ const Input = forwardRef((p, ref) => {
|
|
|
21586
21775
|
}
|
|
21587
21776
|
(_a = props.onKeyDown) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
21588
21777
|
};
|
|
21589
|
-
useIsomorphicLayoutEffect$
|
|
21778
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
21590
21779
|
var _a;
|
|
21591
21780
|
if (!props.enterKeyHint)
|
|
21592
21781
|
return;
|
|
@@ -21949,7 +22138,6 @@ const index$7 = attachPropertiesToComponent(Modal, {
|
|
|
21949
22138
|
const navBar = "";
|
|
21950
22139
|
const classPrefix$y = `adm-nav-bar`;
|
|
21951
22140
|
const defaultProps$s = {
|
|
21952
|
-
back: "",
|
|
21953
22141
|
backArrow: true
|
|
21954
22142
|
};
|
|
21955
22143
|
const NavBar = (p) => {
|
|
@@ -22626,17 +22814,21 @@ const Group = (p) => {
|
|
|
22626
22814
|
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, v);
|
|
22627
22815
|
}
|
|
22628
22816
|
});
|
|
22629
|
-
return React__default.createElement(
|
|
22630
|
-
|
|
22631
|
-
|
|
22632
|
-
|
|
22633
|
-
|
|
22634
|
-
|
|
22635
|
-
|
|
22636
|
-
|
|
22637
|
-
|
|
22638
|
-
|
|
22639
|
-
|
|
22817
|
+
return React__default.createElement(
|
|
22818
|
+
RadioGroupContext.Provider,
|
|
22819
|
+
{
|
|
22820
|
+
value: {
|
|
22821
|
+
value: value === null ? [] : [value],
|
|
22822
|
+
check: (v) => {
|
|
22823
|
+
setValue2(v);
|
|
22824
|
+
},
|
|
22825
|
+
uncheck: () => {
|
|
22826
|
+
},
|
|
22827
|
+
disabled: props.disabled
|
|
22828
|
+
}
|
|
22829
|
+
},
|
|
22830
|
+
props.children
|
|
22831
|
+
);
|
|
22640
22832
|
};
|
|
22641
22833
|
const classPrefix$q = `adm-radio`;
|
|
22642
22834
|
const defaultProps$k = {
|
|
@@ -23344,178 +23536,6 @@ const Thumb = (props) => {
|
|
|
23344
23536
|
mode: "dark"
|
|
23345
23537
|
}, thumbElement) : thumbElement);
|
|
23346
23538
|
};
|
|
23347
|
-
const classPrefix$f = `adm-slider`;
|
|
23348
|
-
const defaultProps$e = {
|
|
23349
|
-
min: 0,
|
|
23350
|
-
max: 100,
|
|
23351
|
-
step: 1,
|
|
23352
|
-
ticks: false,
|
|
23353
|
-
range: false,
|
|
23354
|
-
disabled: false,
|
|
23355
|
-
popover: false,
|
|
23356
|
-
residentPopover: false
|
|
23357
|
-
};
|
|
23358
|
-
const Slider = (p) => {
|
|
23359
|
-
var _a;
|
|
23360
|
-
const props = mergeProps(defaultProps$e, p);
|
|
23361
|
-
const {
|
|
23362
|
-
min: min2,
|
|
23363
|
-
max: max2,
|
|
23364
|
-
disabled,
|
|
23365
|
-
marks,
|
|
23366
|
-
ticks,
|
|
23367
|
-
step,
|
|
23368
|
-
icon
|
|
23369
|
-
} = props;
|
|
23370
|
-
function sortValue(val) {
|
|
23371
|
-
return val.sort((a, b) => a - b);
|
|
23372
|
-
}
|
|
23373
|
-
function convertValue(value) {
|
|
23374
|
-
return props.range ? value : [props.min, value];
|
|
23375
|
-
}
|
|
23376
|
-
function reverseValue(value) {
|
|
23377
|
-
return props.range ? value : value[1];
|
|
23378
|
-
}
|
|
23379
|
-
function onAfterChange(value) {
|
|
23380
|
-
var _a2;
|
|
23381
|
-
(_a2 = props.onAfterChange) === null || _a2 === void 0 ? void 0 : _a2.call(props, reverseValue(value));
|
|
23382
|
-
}
|
|
23383
|
-
let propsValue = props.value;
|
|
23384
|
-
if (props.range && typeof props.value === "number") {
|
|
23385
|
-
devWarning("Slider", "When `range` prop is enabled, the `value` prop should be an array, like: [0, 0]");
|
|
23386
|
-
propsValue = [0, props.value];
|
|
23387
|
-
}
|
|
23388
|
-
const [rawValue, setRawValue] = usePropsValue({
|
|
23389
|
-
value: propsValue,
|
|
23390
|
-
defaultValue: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : props.range ? [min2, min2] : min2,
|
|
23391
|
-
onChange: props.onChange
|
|
23392
|
-
});
|
|
23393
|
-
const sliderValue = sortValue(convertValue(rawValue));
|
|
23394
|
-
function setSliderValue(value) {
|
|
23395
|
-
const next = sortValue(value);
|
|
23396
|
-
const current = sliderValue;
|
|
23397
|
-
if (next[0] === current[0] && next[1] === current[1])
|
|
23398
|
-
return;
|
|
23399
|
-
setRawValue(reverseValue(next));
|
|
23400
|
-
}
|
|
23401
|
-
const trackRef = useRef(null);
|
|
23402
|
-
const fillSize = `${100 * (sliderValue[1] - sliderValue[0]) / (max2 - min2)}%`;
|
|
23403
|
-
const fillStart = `${100 * (sliderValue[0] - min2) / (max2 - min2)}%`;
|
|
23404
|
-
const pointList = useMemo(() => {
|
|
23405
|
-
if (marks) {
|
|
23406
|
-
return Object.keys(marks).map(parseFloat).sort((a, b) => a - b);
|
|
23407
|
-
} else {
|
|
23408
|
-
const points = [];
|
|
23409
|
-
for (let i = min2; i <= max2; i += step) {
|
|
23410
|
-
points.push(i);
|
|
23411
|
-
}
|
|
23412
|
-
return points;
|
|
23413
|
-
}
|
|
23414
|
-
}, [marks, ticks, step, min2, max2]);
|
|
23415
|
-
function getValueByPosition(position) {
|
|
23416
|
-
const newPosition = position < min2 ? min2 : position > max2 ? max2 : position;
|
|
23417
|
-
let value = min2;
|
|
23418
|
-
if (pointList.length) {
|
|
23419
|
-
value = nearest(pointList, newPosition);
|
|
23420
|
-
} else {
|
|
23421
|
-
const lengthPerStep = 100 / ((max2 - min2) / step);
|
|
23422
|
-
const steps2 = Math.round(newPosition / lengthPerStep);
|
|
23423
|
-
value = steps2 * lengthPerStep * (max2 - min2) * 0.01 + min2;
|
|
23424
|
-
}
|
|
23425
|
-
return value;
|
|
23426
|
-
}
|
|
23427
|
-
const dragLockRef = useRef(0);
|
|
23428
|
-
const onTrackClick = (event) => {
|
|
23429
|
-
if (dragLockRef.current > 0)
|
|
23430
|
-
return;
|
|
23431
|
-
event.stopPropagation();
|
|
23432
|
-
if (disabled)
|
|
23433
|
-
return;
|
|
23434
|
-
const track = trackRef.current;
|
|
23435
|
-
if (!track)
|
|
23436
|
-
return;
|
|
23437
|
-
const sliderOffsetLeft = track.getBoundingClientRect().left;
|
|
23438
|
-
const position = (event.clientX - sliderOffsetLeft) / Math.ceil(track.offsetWidth) * (max2 - min2) + min2;
|
|
23439
|
-
const targetValue = getValueByPosition(position);
|
|
23440
|
-
let nextSliderValue;
|
|
23441
|
-
if (props.range) {
|
|
23442
|
-
if (Math.abs(targetValue - sliderValue[0]) > Math.abs(targetValue - sliderValue[1])) {
|
|
23443
|
-
nextSliderValue = [sliderValue[0], targetValue];
|
|
23444
|
-
} else {
|
|
23445
|
-
nextSliderValue = [targetValue, sliderValue[1]];
|
|
23446
|
-
}
|
|
23447
|
-
} else {
|
|
23448
|
-
nextSliderValue = [props.min, targetValue];
|
|
23449
|
-
}
|
|
23450
|
-
setSliderValue(nextSliderValue);
|
|
23451
|
-
onAfterChange(nextSliderValue);
|
|
23452
|
-
};
|
|
23453
|
-
const valueBeforeDragRef = useRef();
|
|
23454
|
-
const renderThumb = (index2) => {
|
|
23455
|
-
return React__default.createElement(Thumb, {
|
|
23456
|
-
key: index2,
|
|
23457
|
-
value: sliderValue[index2],
|
|
23458
|
-
min: min2,
|
|
23459
|
-
max: max2,
|
|
23460
|
-
disabled,
|
|
23461
|
-
trackRef,
|
|
23462
|
-
icon,
|
|
23463
|
-
popover: props.popover,
|
|
23464
|
-
residentPopover: props.residentPopover,
|
|
23465
|
-
onDrag: (position, first, last) => {
|
|
23466
|
-
if (first) {
|
|
23467
|
-
dragLockRef.current += 1;
|
|
23468
|
-
valueBeforeDragRef.current = sliderValue;
|
|
23469
|
-
}
|
|
23470
|
-
const val = getValueByPosition(position);
|
|
23471
|
-
const valueBeforeDrag = valueBeforeDragRef.current;
|
|
23472
|
-
if (!valueBeforeDrag)
|
|
23473
|
-
return;
|
|
23474
|
-
const next = [...valueBeforeDrag];
|
|
23475
|
-
next[index2] = val;
|
|
23476
|
-
setSliderValue(next);
|
|
23477
|
-
if (last) {
|
|
23478
|
-
onAfterChange(next);
|
|
23479
|
-
window.setTimeout(() => {
|
|
23480
|
-
dragLockRef.current -= 1;
|
|
23481
|
-
}, 100);
|
|
23482
|
-
}
|
|
23483
|
-
},
|
|
23484
|
-
"aria-label": props["aria-label"]
|
|
23485
|
-
});
|
|
23486
|
-
};
|
|
23487
|
-
return withNativeProps(props, React__default.createElement("div", {
|
|
23488
|
-
className: classNames(classPrefix$f, {
|
|
23489
|
-
[`${classPrefix$f}-disabled`]: disabled
|
|
23490
|
-
})
|
|
23491
|
-
}, React__default.createElement("div", {
|
|
23492
|
-
className: `${classPrefix$f}-track-container`,
|
|
23493
|
-
onClick: onTrackClick
|
|
23494
|
-
}, React__default.createElement("div", {
|
|
23495
|
-
className: `${classPrefix$f}-track`,
|
|
23496
|
-
onClick: onTrackClick,
|
|
23497
|
-
ref: trackRef
|
|
23498
|
-
}, React__default.createElement("div", {
|
|
23499
|
-
className: `${classPrefix$f}-fill`,
|
|
23500
|
-
style: {
|
|
23501
|
-
width: fillSize,
|
|
23502
|
-
left: fillStart
|
|
23503
|
-
}
|
|
23504
|
-
}), props.ticks && React__default.createElement(Ticks, {
|
|
23505
|
-
points: pointList,
|
|
23506
|
-
min: min2,
|
|
23507
|
-
max: max2,
|
|
23508
|
-
lowerBound: sliderValue[0],
|
|
23509
|
-
upperBound: sliderValue[1]
|
|
23510
|
-
}), props.range && renderThumb(0), renderThumb(1))), marks && React__default.createElement(Marks, {
|
|
23511
|
-
min: min2,
|
|
23512
|
-
max: max2,
|
|
23513
|
-
marks,
|
|
23514
|
-
lowerBound: sliderValue[0],
|
|
23515
|
-
upperBound: sliderValue[1]
|
|
23516
|
-
})));
|
|
23517
|
-
};
|
|
23518
|
-
const stepper = "";
|
|
23519
23539
|
var DP = 20, RM = 1, MAX_DP = 1e6, MAX_POWER = 1e6, NE = -7, PE = 21, STRICT = false, NAME = "[big.js] ", INVALID = NAME + "Invalid ", INVALID_DP = INVALID + "decimal places", INVALID_RM = INVALID + "rounding mode", DIV_BY_ZERO = NAME + "Division by zero", P = {}, UNDEFINED = void 0, NUMERIC = /^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;
|
|
23520
23540
|
function _Big_() {
|
|
23521
23541
|
function Big2(n) {
|
|
@@ -24024,6 +24044,182 @@ P.valueOf = function() {
|
|
|
24024
24044
|
return stringify(x, x.e <= Big2.NE || x.e >= Big2.PE, true);
|
|
24025
24045
|
};
|
|
24026
24046
|
var Big = _Big_();
|
|
24047
|
+
const classPrefix$f = `adm-slider`;
|
|
24048
|
+
const defaultProps$e = {
|
|
24049
|
+
min: 0,
|
|
24050
|
+
max: 100,
|
|
24051
|
+
step: 1,
|
|
24052
|
+
ticks: false,
|
|
24053
|
+
range: false,
|
|
24054
|
+
disabled: false,
|
|
24055
|
+
popover: false,
|
|
24056
|
+
residentPopover: false
|
|
24057
|
+
};
|
|
24058
|
+
const Slider = (p) => {
|
|
24059
|
+
var _a;
|
|
24060
|
+
const props = mergeProps(defaultProps$e, p);
|
|
24061
|
+
const {
|
|
24062
|
+
min: min2,
|
|
24063
|
+
max: max2,
|
|
24064
|
+
disabled,
|
|
24065
|
+
marks,
|
|
24066
|
+
ticks,
|
|
24067
|
+
step,
|
|
24068
|
+
icon
|
|
24069
|
+
} = props;
|
|
24070
|
+
function sortValue(val) {
|
|
24071
|
+
return val.sort((a, b) => a - b);
|
|
24072
|
+
}
|
|
24073
|
+
function convertValue(value) {
|
|
24074
|
+
return props.range ? value : [props.min, value];
|
|
24075
|
+
}
|
|
24076
|
+
function reverseValue(value) {
|
|
24077
|
+
const mergedDecimalLen = Math.max(getDecimalLen(step), getDecimalLen(value[0]), getDecimalLen(value[1]));
|
|
24078
|
+
return props.range ? value.map((v) => Big(Big(v).toFixed(mergedDecimalLen)).toNumber()) : Big(Big(value[1]).toFixed(mergedDecimalLen)).toNumber();
|
|
24079
|
+
}
|
|
24080
|
+
function getDecimalLen(n) {
|
|
24081
|
+
return (`${n}`.split(".")[1] || "").length;
|
|
24082
|
+
}
|
|
24083
|
+
function onAfterChange(value) {
|
|
24084
|
+
var _a2;
|
|
24085
|
+
(_a2 = props.onAfterChange) === null || _a2 === void 0 ? void 0 : _a2.call(props, reverseValue(value));
|
|
24086
|
+
}
|
|
24087
|
+
let propsValue = props.value;
|
|
24088
|
+
if (props.range && typeof props.value === "number") {
|
|
24089
|
+
devWarning("Slider", "When `range` prop is enabled, the `value` prop should be an array, like: [0, 0]");
|
|
24090
|
+
propsValue = [0, props.value];
|
|
24091
|
+
}
|
|
24092
|
+
const [rawValue, setRawValue] = usePropsValue({
|
|
24093
|
+
value: propsValue,
|
|
24094
|
+
defaultValue: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : props.range ? [min2, min2] : min2,
|
|
24095
|
+
onChange: props.onChange
|
|
24096
|
+
});
|
|
24097
|
+
const sliderValue = sortValue(convertValue(rawValue));
|
|
24098
|
+
function setSliderValue(value) {
|
|
24099
|
+
const next = sortValue(value);
|
|
24100
|
+
const current = sliderValue;
|
|
24101
|
+
if (next[0] === current[0] && next[1] === current[1])
|
|
24102
|
+
return;
|
|
24103
|
+
setRawValue(reverseValue(next));
|
|
24104
|
+
}
|
|
24105
|
+
const trackRef = useRef(null);
|
|
24106
|
+
const fillSize = `${100 * (sliderValue[1] - sliderValue[0]) / (max2 - min2)}%`;
|
|
24107
|
+
const fillStart = `${100 * (sliderValue[0] - min2) / (max2 - min2)}%`;
|
|
24108
|
+
const pointList = useMemo(() => {
|
|
24109
|
+
if (marks) {
|
|
24110
|
+
return Object.keys(marks).map(parseFloat).sort((a, b) => a - b);
|
|
24111
|
+
} else {
|
|
24112
|
+
const points = [];
|
|
24113
|
+
for (let i = Big(min2); i.lt(max2); i = i.plus(step)) {
|
|
24114
|
+
points.push(i.toNumber());
|
|
24115
|
+
}
|
|
24116
|
+
return points;
|
|
24117
|
+
}
|
|
24118
|
+
}, [marks, ticks, step, min2, max2]);
|
|
24119
|
+
function getValueByPosition(position) {
|
|
24120
|
+
const newPosition = position < min2 ? min2 : position > max2 ? max2 : position;
|
|
24121
|
+
let value = min2;
|
|
24122
|
+
if (pointList.length) {
|
|
24123
|
+
value = nearest(pointList, newPosition);
|
|
24124
|
+
} else {
|
|
24125
|
+
const lengthPerStep = 100 / ((max2 - min2) / step);
|
|
24126
|
+
const steps2 = Math.round(newPosition / lengthPerStep);
|
|
24127
|
+
value = steps2 * lengthPerStep * (max2 - min2) * 0.01 + min2;
|
|
24128
|
+
}
|
|
24129
|
+
return value;
|
|
24130
|
+
}
|
|
24131
|
+
const dragLockRef = useRef(0);
|
|
24132
|
+
const onTrackClick = (event) => {
|
|
24133
|
+
if (dragLockRef.current > 0)
|
|
24134
|
+
return;
|
|
24135
|
+
event.stopPropagation();
|
|
24136
|
+
if (disabled)
|
|
24137
|
+
return;
|
|
24138
|
+
const track = trackRef.current;
|
|
24139
|
+
if (!track)
|
|
24140
|
+
return;
|
|
24141
|
+
const sliderOffsetLeft = track.getBoundingClientRect().left;
|
|
24142
|
+
const position = (event.clientX - sliderOffsetLeft) / Math.ceil(track.offsetWidth) * (max2 - min2) + min2;
|
|
24143
|
+
const targetValue = getValueByPosition(position);
|
|
24144
|
+
let nextSliderValue;
|
|
24145
|
+
if (props.range) {
|
|
24146
|
+
if (Math.abs(targetValue - sliderValue[0]) > Math.abs(targetValue - sliderValue[1])) {
|
|
24147
|
+
nextSliderValue = [sliderValue[0], targetValue];
|
|
24148
|
+
} else {
|
|
24149
|
+
nextSliderValue = [targetValue, sliderValue[1]];
|
|
24150
|
+
}
|
|
24151
|
+
} else {
|
|
24152
|
+
nextSliderValue = [props.min, targetValue];
|
|
24153
|
+
}
|
|
24154
|
+
setSliderValue(nextSliderValue);
|
|
24155
|
+
onAfterChange(nextSliderValue);
|
|
24156
|
+
};
|
|
24157
|
+
const valueBeforeDragRef = useRef();
|
|
24158
|
+
const renderThumb = (index2) => {
|
|
24159
|
+
return React__default.createElement(Thumb, {
|
|
24160
|
+
key: index2,
|
|
24161
|
+
value: sliderValue[index2],
|
|
24162
|
+
min: min2,
|
|
24163
|
+
max: max2,
|
|
24164
|
+
disabled,
|
|
24165
|
+
trackRef,
|
|
24166
|
+
icon,
|
|
24167
|
+
popover: props.popover,
|
|
24168
|
+
residentPopover: props.residentPopover,
|
|
24169
|
+
onDrag: (position, first, last) => {
|
|
24170
|
+
if (first) {
|
|
24171
|
+
dragLockRef.current += 1;
|
|
24172
|
+
valueBeforeDragRef.current = sliderValue;
|
|
24173
|
+
}
|
|
24174
|
+
const val = getValueByPosition(position);
|
|
24175
|
+
const valueBeforeDrag = valueBeforeDragRef.current;
|
|
24176
|
+
if (!valueBeforeDrag)
|
|
24177
|
+
return;
|
|
24178
|
+
const next = [...valueBeforeDrag];
|
|
24179
|
+
next[index2] = val;
|
|
24180
|
+
setSliderValue(next);
|
|
24181
|
+
if (last) {
|
|
24182
|
+
onAfterChange(next);
|
|
24183
|
+
window.setTimeout(() => {
|
|
24184
|
+
dragLockRef.current -= 1;
|
|
24185
|
+
}, 100);
|
|
24186
|
+
}
|
|
24187
|
+
},
|
|
24188
|
+
"aria-label": props["aria-label"]
|
|
24189
|
+
});
|
|
24190
|
+
};
|
|
24191
|
+
return withNativeProps(props, React__default.createElement("div", {
|
|
24192
|
+
className: classNames(classPrefix$f, {
|
|
24193
|
+
[`${classPrefix$f}-disabled`]: disabled
|
|
24194
|
+
})
|
|
24195
|
+
}, React__default.createElement("div", {
|
|
24196
|
+
className: `${classPrefix$f}-track-container`,
|
|
24197
|
+
onClick: onTrackClick
|
|
24198
|
+
}, React__default.createElement("div", {
|
|
24199
|
+
className: `${classPrefix$f}-track`,
|
|
24200
|
+
onClick: onTrackClick,
|
|
24201
|
+
ref: trackRef
|
|
24202
|
+
}, React__default.createElement("div", {
|
|
24203
|
+
className: `${classPrefix$f}-fill`,
|
|
24204
|
+
style: {
|
|
24205
|
+
width: fillSize,
|
|
24206
|
+
left: fillStart
|
|
24207
|
+
}
|
|
24208
|
+
}), props.ticks && React__default.createElement(Ticks, {
|
|
24209
|
+
points: pointList,
|
|
24210
|
+
min: min2,
|
|
24211
|
+
max: max2,
|
|
24212
|
+
lowerBound: sliderValue[0],
|
|
24213
|
+
upperBound: sliderValue[1]
|
|
24214
|
+
}), props.range && renderThumb(0), renderThumb(1))), marks && React__default.createElement(Marks, {
|
|
24215
|
+
min: min2,
|
|
24216
|
+
max: max2,
|
|
24217
|
+
marks,
|
|
24218
|
+
lowerBound: sliderValue[0],
|
|
24219
|
+
upperBound: sliderValue[1]
|
|
24220
|
+
})));
|
|
24221
|
+
};
|
|
24222
|
+
const stepper = "";
|
|
24027
24223
|
const classPrefix$e = `adm-stepper`;
|
|
24028
24224
|
const defaultProps$d = {
|
|
24029
24225
|
defaultValue: 0,
|
|
@@ -24139,7 +24335,8 @@ const Stepper = (p) => {
|
|
|
24139
24335
|
role: "spinbutton",
|
|
24140
24336
|
"aria-valuenow": Number(inputValue),
|
|
24141
24337
|
"aria-valuemax": max2,
|
|
24142
|
-
"aria-valuemin": min2
|
|
24338
|
+
"aria-valuemin": min2,
|
|
24339
|
+
inputMode: "decimal"
|
|
24143
24340
|
})), React__default.createElement(Button, {
|
|
24144
24341
|
className: `${classPrefix$e}-plus`,
|
|
24145
24342
|
onClick: handlePlus,
|
|
@@ -24454,8 +24651,10 @@ const defaultProps$a = {
|
|
|
24454
24651
|
stuckAtBoundary: true,
|
|
24455
24652
|
rubberband: true
|
|
24456
24653
|
};
|
|
24654
|
+
let currentUid;
|
|
24457
24655
|
const Swiper = forwardRef(staged_1((p, ref) => {
|
|
24458
24656
|
const props = mergeProps(defaultProps$a, p);
|
|
24657
|
+
const [uid] = useState({});
|
|
24459
24658
|
const isVertical = props.direction === "vertical";
|
|
24460
24659
|
const slideRatio = props.slideSize / 100;
|
|
24461
24660
|
const offsetRatio = props.trackOffset / 100;
|
|
@@ -24545,6 +24744,12 @@ const Swiper = forwardRef(staged_1((p, ref) => {
|
|
|
24545
24744
|
dragCancelRef.current = state.cancel;
|
|
24546
24745
|
if (!state.intentional)
|
|
24547
24746
|
return;
|
|
24747
|
+
if (state.first && !currentUid) {
|
|
24748
|
+
currentUid = uid;
|
|
24749
|
+
}
|
|
24750
|
+
if (currentUid !== uid)
|
|
24751
|
+
return;
|
|
24752
|
+
currentUid = state.last ? void 0 : uid;
|
|
24548
24753
|
const slidePixels = getSlidePixels();
|
|
24549
24754
|
if (!slidePixels)
|
|
24550
24755
|
return;
|
|
@@ -24615,7 +24820,7 @@ const Swiper = forwardRef(staged_1((p, ref) => {
|
|
|
24615
24820
|
swipeNext,
|
|
24616
24821
|
swipePrev
|
|
24617
24822
|
}));
|
|
24618
|
-
useIsomorphicLayoutEffect$
|
|
24823
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
24619
24824
|
const maxIndex = validChildren.length - 1;
|
|
24620
24825
|
if (current > maxIndex) {
|
|
24621
24826
|
swipeTo(maxIndex, true);
|
|
@@ -24938,7 +25143,7 @@ const TextArea = forwardRef((p, ref) => {
|
|
|
24938
25143
|
return nativeTextAreaRef.current;
|
|
24939
25144
|
}
|
|
24940
25145
|
}));
|
|
24941
|
-
useIsomorphicLayoutEffect$
|
|
25146
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
24942
25147
|
if (!autoSize)
|
|
24943
25148
|
return;
|
|
24944
25149
|
const textArea2 = nativeTextAreaRef.current;
|
|
@@ -25498,7 +25703,7 @@ const VirtualInput = forwardRef((p, ref) => {
|
|
|
25498
25703
|
return;
|
|
25499
25704
|
content.scrollLeft = content.clientWidth;
|
|
25500
25705
|
}
|
|
25501
|
-
useIsomorphicLayoutEffect$
|
|
25706
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
25502
25707
|
scrollToEnd();
|
|
25503
25708
|
}, [value]);
|
|
25504
25709
|
useEffect(() => {
|