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
|
@@ -374,11 +374,11 @@ function attachPropertiesToComponent(component, properties) {
|
|
|
374
374
|
return ret;
|
|
375
375
|
}
|
|
376
376
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
377
|
-
var
|
|
377
|
+
var _classnames_2_3_2_classnames = { exports: {} };
|
|
378
378
|
/*!
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
379
|
+
Copyright (c) 2018 Jed Watson.
|
|
380
|
+
Licensed under the MIT License (MIT), see
|
|
381
|
+
http://jedwatson.github.io/classnames
|
|
382
382
|
*/
|
|
383
383
|
(function(module2) {
|
|
384
384
|
(function() {
|
|
@@ -400,14 +400,14 @@ var classnames = { exports: {} };
|
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
} else if (argType === "object") {
|
|
403
|
-
if (arg.toString
|
|
404
|
-
for (var key in arg) {
|
|
405
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
406
|
-
classes.push(key);
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
} else {
|
|
403
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
410
404
|
classes.push(arg.toString());
|
|
405
|
+
continue;
|
|
406
|
+
}
|
|
407
|
+
for (var key in arg) {
|
|
408
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
409
|
+
classes.push(key);
|
|
410
|
+
}
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
413
|
}
|
|
@@ -420,8 +420,8 @@ var classnames = { exports: {} };
|
|
|
420
420
|
window.classNames = classNames2;
|
|
421
421
|
}
|
|
422
422
|
})();
|
|
423
|
-
})(
|
|
424
|
-
const classNames =
|
|
423
|
+
})(_classnames_2_3_2_classnames);
|
|
424
|
+
const classNames = _classnames_2_3_2_classnames.exports;
|
|
425
425
|
function withNativeProps(props, element) {
|
|
426
426
|
const p = Object.assign({}, element.props);
|
|
427
427
|
if (props.className) {
|
|
@@ -539,7 +539,9 @@ var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
|
539
539
|
var funcProto$1 = Function.prototype, objectProto$c = Object.prototype;
|
|
540
540
|
var funcToString$1 = funcProto$1.toString;
|
|
541
541
|
var hasOwnProperty$a = objectProto$c.hasOwnProperty;
|
|
542
|
-
var reIsNative = RegExp(
|
|
542
|
+
var reIsNative = RegExp(
|
|
543
|
+
"^" + funcToString$1.call(hasOwnProperty$a).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
544
|
+
);
|
|
543
545
|
function baseIsNative$1(value) {
|
|
544
546
|
if (!isObject$9(value) || isMasked(value)) {
|
|
545
547
|
return false;
|
|
@@ -917,8 +919,10 @@ var isFunction$1 = function isFunction(value) {
|
|
|
917
919
|
var isNumber = function isNumber2(value) {
|
|
918
920
|
return typeof value === "number";
|
|
919
921
|
};
|
|
922
|
+
var isDev = true;
|
|
923
|
+
const isDev$1 = isDev;
|
|
920
924
|
function useMemoizedFn(fn) {
|
|
921
|
-
{
|
|
925
|
+
if (isDev$1) {
|
|
922
926
|
if (!isFunction$1(fn)) {
|
|
923
927
|
console.error("useMemoizedFn expected parameter is a function, got " + typeof fn);
|
|
924
928
|
}
|
|
@@ -955,7 +959,7 @@ function useLatest(value) {
|
|
|
955
959
|
return ref;
|
|
956
960
|
}
|
|
957
961
|
var useUnmount = function useUnmount2(fn) {
|
|
958
|
-
{
|
|
962
|
+
if (isDev$1) {
|
|
959
963
|
if (!isFunction$1(fn)) {
|
|
960
964
|
console.error("useUnmount expected parameter is a function, got " + typeof fn);
|
|
961
965
|
}
|
|
@@ -1124,7 +1128,7 @@ function throttle$1(func, wait, options) {
|
|
|
1124
1128
|
}
|
|
1125
1129
|
var throttle_1 = throttle$1;
|
|
1126
1130
|
var useMount = function useMount2(fn) {
|
|
1127
|
-
{
|
|
1131
|
+
if (isDev$1) {
|
|
1128
1132
|
if (!isFunction$1(fn)) {
|
|
1129
1133
|
console.error('useMount: parameter `fn` expected to be a function, but got "' + typeof fn + '".');
|
|
1130
1134
|
}
|
|
@@ -1294,7 +1298,7 @@ var dayjs_min = { exports: {} };
|
|
|
1294
1298
|
}, p: function(t2) {
|
|
1295
1299
|
return { M: f, y: c, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: h }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
|
|
1296
1300
|
}, u: function(t2) {
|
|
1297
|
-
return
|
|
1301
|
+
return void 0 === t2;
|
|
1298
1302
|
} }, v = "en", D = {};
|
|
1299
1303
|
D[v] = M;
|
|
1300
1304
|
var p = function(t2) {
|
|
@@ -1303,7 +1307,7 @@ var dayjs_min = { exports: {} };
|
|
|
1303
1307
|
var i2;
|
|
1304
1308
|
if (!e2)
|
|
1305
1309
|
return v;
|
|
1306
|
-
if (typeof e2
|
|
1310
|
+
if ("string" == typeof e2) {
|
|
1307
1311
|
var s2 = e2.toLowerCase();
|
|
1308
1312
|
D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
|
|
1309
1313
|
var u2 = e2.split("-");
|
|
@@ -1317,7 +1321,7 @@ var dayjs_min = { exports: {} };
|
|
|
1317
1321
|
}, w = function(t2, e2) {
|
|
1318
1322
|
if (p(t2))
|
|
1319
1323
|
return t2.clone();
|
|
1320
|
-
var n2 = typeof e2
|
|
1324
|
+
var n2 = "object" == typeof e2 ? e2 : {};
|
|
1321
1325
|
return n2.date = t2, n2.args = arguments, new _(n2);
|
|
1322
1326
|
}, O = g;
|
|
1323
1327
|
O.l = S, O.i = p, O.w = function(t2, e2) {
|
|
@@ -1331,13 +1335,13 @@ var dayjs_min = { exports: {} };
|
|
|
1331
1335
|
return m2.parse = function(t2) {
|
|
1332
1336
|
this.$d = function(t3) {
|
|
1333
1337
|
var e2 = t3.date, n2 = t3.utc;
|
|
1334
|
-
if (
|
|
1338
|
+
if (null === e2)
|
|
1335
1339
|
return new Date(NaN);
|
|
1336
1340
|
if (O.u(e2))
|
|
1337
1341
|
return new Date();
|
|
1338
1342
|
if (e2 instanceof Date)
|
|
1339
1343
|
return new Date(e2);
|
|
1340
|
-
if (typeof e2
|
|
1344
|
+
if ("string" == typeof e2 && !/Z$/i.test(e2)) {
|
|
1341
1345
|
var r2 = e2.match(l);
|
|
1342
1346
|
if (r2) {
|
|
1343
1347
|
var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
|
|
@@ -1511,7 +1515,7 @@ var __spread$2 = globalThis && globalThis.__spread || function() {
|
|
|
1511
1515
|
};
|
|
1512
1516
|
function useDebounceFn(fn, options) {
|
|
1513
1517
|
var _a;
|
|
1514
|
-
{
|
|
1518
|
+
if (isDev$1) {
|
|
1515
1519
|
if (!isFunction$1(fn)) {
|
|
1516
1520
|
console.error("useDebounceFn expected parameter is a function, got " + typeof fn);
|
|
1517
1521
|
}
|
|
@@ -2159,11 +2163,15 @@ var isEqual_1 = isEqual$1;
|
|
|
2159
2163
|
}
|
|
2160
2164
|
if ("IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype) {
|
|
2161
2165
|
if (!("isIntersecting" in window.IntersectionObserverEntry.prototype)) {
|
|
2162
|
-
Object.defineProperty(
|
|
2163
|
-
|
|
2164
|
-
|
|
2166
|
+
Object.defineProperty(
|
|
2167
|
+
window.IntersectionObserverEntry.prototype,
|
|
2168
|
+
"isIntersecting",
|
|
2169
|
+
{
|
|
2170
|
+
get: function() {
|
|
2171
|
+
return this.intersectionRatio > 0;
|
|
2172
|
+
}
|
|
2165
2173
|
}
|
|
2166
|
-
|
|
2174
|
+
);
|
|
2167
2175
|
}
|
|
2168
2176
|
return;
|
|
2169
2177
|
}
|
|
@@ -2211,7 +2219,10 @@ var isEqual_1 = isEqual$1;
|
|
|
2211
2219
|
if (options.root && options.root.nodeType != 1 && options.root.nodeType != 9) {
|
|
2212
2220
|
throw new Error("root must be a Document or Element");
|
|
2213
2221
|
}
|
|
2214
|
-
this._checkForIntersections = throttle2(
|
|
2222
|
+
this._checkForIntersections = throttle2(
|
|
2223
|
+
this._checkForIntersections.bind(this),
|
|
2224
|
+
this.THROTTLE_TIMEOUT
|
|
2225
|
+
);
|
|
2215
2226
|
this._callback = callback;
|
|
2216
2227
|
this._observationTargets = [];
|
|
2217
2228
|
this._queuedEntries = [];
|
|
@@ -2772,8 +2783,8 @@ function useInViewport(target, options) {
|
|
|
2772
2783
|
}, [], target);
|
|
2773
2784
|
return [state, ratio];
|
|
2774
2785
|
}
|
|
2775
|
-
var useIsomorphicLayoutEffect = isBrowser$3 ? React$1.useLayoutEffect : React$1.useEffect;
|
|
2776
|
-
const useIsomorphicLayoutEffect$
|
|
2786
|
+
var useIsomorphicLayoutEffect$1 = isBrowser$3 ? React$1.useLayoutEffect : React$1.useEffect;
|
|
2787
|
+
const useIsomorphicLayoutEffect$2 = useIsomorphicLayoutEffect$1;
|
|
2777
2788
|
var __awaiter = globalThis && globalThis.__awaiter || function(thisArg, _arguments, P2, generator) {
|
|
2778
2789
|
function adopt(value) {
|
|
2779
2790
|
return value instanceof P2 ? value : new P2(function(resolve) {
|
|
@@ -3571,7 +3582,7 @@ var __spread = globalThis && globalThis.__spread || function() {
|
|
|
3571
3582
|
};
|
|
3572
3583
|
function useThrottleFn(fn, options) {
|
|
3573
3584
|
var _a;
|
|
3574
|
-
{
|
|
3585
|
+
if (isDev$1) {
|
|
3575
3586
|
if (!isFunction$1(fn)) {
|
|
3576
3587
|
console.error("useThrottleFn expected parameter is a function, got " + typeof fn);
|
|
3577
3588
|
}
|
|
@@ -3713,6 +3724,16 @@ if (canUseDom) {
|
|
|
3713
3724
|
}
|
|
3714
3725
|
let totalLockCount = 0;
|
|
3715
3726
|
const BODY_LOCK_CLASS = "adm-overflow-hidden";
|
|
3727
|
+
function getScrollableElement(el) {
|
|
3728
|
+
let current = el === null || el === void 0 ? void 0 : el.parentElement;
|
|
3729
|
+
while (current) {
|
|
3730
|
+
if (current.clientHeight < current.scrollHeight) {
|
|
3731
|
+
return current;
|
|
3732
|
+
}
|
|
3733
|
+
current = current.parentElement;
|
|
3734
|
+
}
|
|
3735
|
+
return null;
|
|
3736
|
+
}
|
|
3716
3737
|
function useLockScroll(rootRef, shouldLock) {
|
|
3717
3738
|
const touch = useTouch();
|
|
3718
3739
|
const onTouchMove = (event) => {
|
|
@@ -3721,6 +3742,13 @@ function useLockScroll(rootRef, shouldLock) {
|
|
|
3721
3742
|
const el = getScrollParent(event.target, rootRef.current);
|
|
3722
3743
|
if (!el)
|
|
3723
3744
|
return;
|
|
3745
|
+
if (shouldLock === "strict") {
|
|
3746
|
+
const scrollableParent = getScrollableElement(event.target);
|
|
3747
|
+
if (scrollableParent === document.body || scrollableParent === document.documentElement) {
|
|
3748
|
+
event.preventDefault();
|
|
3749
|
+
return;
|
|
3750
|
+
}
|
|
3751
|
+
}
|
|
3724
3752
|
const {
|
|
3725
3753
|
scrollHeight,
|
|
3726
3754
|
offsetHeight,
|
|
@@ -3800,9 +3828,9 @@ let findTimeout = (time) => ~(~timeouts.findIndex((t) => t.time > time) || ~time
|
|
|
3800
3828
|
raf.cancel = (fn) => {
|
|
3801
3829
|
onStartQueue.delete(fn);
|
|
3802
3830
|
onFrameQueue.delete(fn);
|
|
3831
|
+
onFinishQueue.delete(fn);
|
|
3803
3832
|
updateQueue.delete(fn);
|
|
3804
3833
|
writeQueue.delete(fn);
|
|
3805
|
-
onFinishQueue.delete(fn);
|
|
3806
3834
|
};
|
|
3807
3835
|
raf.sync = (fn) => {
|
|
3808
3836
|
sync = true;
|
|
@@ -3880,14 +3908,15 @@ function update() {
|
|
|
3880
3908
|
eachSafely(timeouts.splice(0, count), (t) => t.handler());
|
|
3881
3909
|
pendingCount -= count;
|
|
3882
3910
|
}
|
|
3911
|
+
if (!pendingCount) {
|
|
3912
|
+
stop();
|
|
3913
|
+
return;
|
|
3914
|
+
}
|
|
3883
3915
|
onStartQueue.flush();
|
|
3884
3916
|
updateQueue.flush(prevTs ? Math.min(64, ts - prevTs) : 16.667);
|
|
3885
3917
|
onFrameQueue.flush();
|
|
3886
3918
|
writeQueue.flush();
|
|
3887
3919
|
onFinishQueue.flush();
|
|
3888
|
-
if (!pendingCount) {
|
|
3889
|
-
stop();
|
|
3890
|
-
}
|
|
3891
3920
|
}
|
|
3892
3921
|
function makeQueue() {
|
|
3893
3922
|
let next = /* @__PURE__ */ new Set();
|
|
@@ -4407,7 +4436,7 @@ function findRange(input2, inputRange) {
|
|
|
4407
4436
|
return i - 1;
|
|
4408
4437
|
}
|
|
4409
4438
|
function _extends$4() {
|
|
4410
|
-
_extends$4 = Object.assign
|
|
4439
|
+
_extends$4 = Object.assign ? Object.assign.bind() : function(target) {
|
|
4411
4440
|
for (var i = 1; i < arguments.length; i++) {
|
|
4412
4441
|
var source = arguments[i];
|
|
4413
4442
|
for (var key in source) {
|
|
@@ -4569,10 +4598,10 @@ function deprecateDirectCall() {
|
|
|
4569
4598
|
function isAnimatedString(value) {
|
|
4570
4599
|
return is.str(value) && (value[0] == "#" || /\d/.test(value) || !isSSR() && cssVariableRegex.test(value) || value in (colors$1 || {}));
|
|
4571
4600
|
}
|
|
4572
|
-
const
|
|
4601
|
+
const useIsomorphicLayoutEffect = isSSR() ? React$1.useEffect : React$1.useLayoutEffect;
|
|
4573
4602
|
const useIsMounted = () => {
|
|
4574
4603
|
const isMounted = React$1.useRef(false);
|
|
4575
|
-
|
|
4604
|
+
useIsomorphicLayoutEffect(() => {
|
|
4576
4605
|
isMounted.current = true;
|
|
4577
4606
|
return () => {
|
|
4578
4607
|
isMounted.current = false;
|
|
@@ -4820,7 +4849,7 @@ function getAnimatedType(value) {
|
|
|
4820
4849
|
return parentNode ? parentNode.constructor : is.arr(value) ? AnimatedArray : isAnimatedString(value) ? AnimatedString : AnimatedValue;
|
|
4821
4850
|
}
|
|
4822
4851
|
function _extends$3() {
|
|
4823
|
-
_extends$3 = Object.assign
|
|
4852
|
+
_extends$3 = Object.assign ? Object.assign.bind() : function(target) {
|
|
4824
4853
|
for (var i = 1; i < arguments.length; i++) {
|
|
4825
4854
|
var source = arguments[i];
|
|
4826
4855
|
for (var key in source) {
|
|
@@ -4854,7 +4883,7 @@ const withAnimated = (Component, host2) => {
|
|
|
4854
4883
|
};
|
|
4855
4884
|
const observer = new PropsObserver(callback, deps);
|
|
4856
4885
|
const observerRef = React$1.useRef();
|
|
4857
|
-
|
|
4886
|
+
useIsomorphicLayoutEffect(() => {
|
|
4858
4887
|
observerRef.current = observer;
|
|
4859
4888
|
each(deps, (dep) => addFluidObserver(dep, observer));
|
|
4860
4889
|
return () => {
|
|
@@ -4939,7 +4968,7 @@ const createHost = (components, {
|
|
|
4939
4968
|
};
|
|
4940
4969
|
const getDisplayName = (arg) => is.str(arg) ? arg : arg && is.str(arg.displayName) ? arg.displayName : is.fun(arg) && arg.name || null;
|
|
4941
4970
|
function _extends$2() {
|
|
4942
|
-
_extends$2 = Object.assign
|
|
4971
|
+
_extends$2 = Object.assign ? Object.assign.bind() : function(target) {
|
|
4943
4972
|
for (var i = 1; i < arguments.length; i++) {
|
|
4944
4973
|
var source = arguments[i];
|
|
4945
4974
|
for (var key in source) {
|
|
@@ -5572,6 +5601,7 @@ class SpringValue extends FrameValue {
|
|
|
5572
5601
|
const from = anim.fromValues[i];
|
|
5573
5602
|
const v0 = node2.v0 != null ? node2.v0 : node2.v0 = is.arr(config2.velocity) ? config2.velocity[i] : config2.velocity;
|
|
5574
5603
|
let velocity;
|
|
5604
|
+
const precision = config2.precision || (from == to2 ? 5e-3 : Math.min(1, Math.abs(to2 - from) * 1e-3));
|
|
5575
5605
|
if (!is.und(config2.duration)) {
|
|
5576
5606
|
let p = 1;
|
|
5577
5607
|
if (config2.duration > 0) {
|
|
@@ -5593,11 +5623,10 @@ class SpringValue extends FrameValue {
|
|
|
5593
5623
|
const decay = config2.decay === true ? 0.998 : config2.decay;
|
|
5594
5624
|
const e = Math.exp(-(1 - decay) * elapsed);
|
|
5595
5625
|
position = from + v0 / (1 - decay) * (1 - e);
|
|
5596
|
-
finished = Math.abs(node2.lastPosition - position)
|
|
5626
|
+
finished = Math.abs(node2.lastPosition - position) <= precision;
|
|
5597
5627
|
velocity = v0 * e;
|
|
5598
5628
|
} else {
|
|
5599
5629
|
velocity = node2.lastVelocity == null ? v0 : node2.lastVelocity;
|
|
5600
|
-
const precision = config2.precision || (from == to2 ? 5e-3 : Math.min(1, Math.abs(to2 - from) * 1e-3));
|
|
5601
5630
|
const restVelocity = config2.restVelocity || precision / 10;
|
|
5602
5631
|
const bounceFactor = config2.clamp ? 0 : config2.bounce;
|
|
5603
5632
|
const canBounce = !is.und(bounceFactor);
|
|
@@ -6590,7 +6619,7 @@ function useSprings(length, props, deps) {
|
|
|
6590
6619
|
const context = React$1.useContext(SpringContext);
|
|
6591
6620
|
const prevContext = usePrev(context);
|
|
6592
6621
|
const hasContext = context !== prevContext && hasProps(context);
|
|
6593
|
-
|
|
6622
|
+
useIsomorphicLayoutEffect(() => {
|
|
6594
6623
|
layoutId.current++;
|
|
6595
6624
|
state.ctrls = ctrls.current;
|
|
6596
6625
|
const {
|
|
@@ -7676,7 +7705,7 @@ const defaultPopupBaseProps = {
|
|
|
7676
7705
|
};
|
|
7677
7706
|
function useInnerVisible(outerVisible) {
|
|
7678
7707
|
const [innerVisible, setInnerVisible] = React$1.useState(outerVisible);
|
|
7679
|
-
useIsomorphicLayoutEffect$
|
|
7708
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
7680
7709
|
setInnerVisible(outerVisible);
|
|
7681
7710
|
}, [outerVisible]);
|
|
7682
7711
|
return innerVisible;
|
|
@@ -7689,13 +7718,13 @@ const Popup = (p) => {
|
|
|
7689
7718
|
const props = mergeProps(defaultProps$12, p);
|
|
7690
7719
|
const bodyCls = classNames(`${classPrefix$1k}-body`, props.bodyClassName, `${classPrefix$1k}-body-position-${props.position}`);
|
|
7691
7720
|
const [active, setActive] = React$1.useState(props.visible);
|
|
7692
|
-
useIsomorphicLayoutEffect$
|
|
7721
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
7693
7722
|
if (props.visible) {
|
|
7694
7723
|
setActive(true);
|
|
7695
7724
|
}
|
|
7696
7725
|
}, [props.visible]);
|
|
7697
7726
|
const ref = React$1.useRef(null);
|
|
7698
|
-
useLockScroll(ref, props.disableBodyScroll && active);
|
|
7727
|
+
useLockScroll(ref, props.disableBodyScroll && active ? "strict" : false);
|
|
7699
7728
|
const unmountedRef = useUnmountedRef$1();
|
|
7700
7729
|
const {
|
|
7701
7730
|
percent
|
|
@@ -7994,12 +8023,12 @@ const AutoCenter = (props) => {
|
|
|
7994
8023
|
};
|
|
7995
8024
|
const avatar = "";
|
|
7996
8025
|
const image = "";
|
|
7997
|
-
var
|
|
8026
|
+
var _stagedComponents_1_1_3_stagedComponents = {};
|
|
7998
8027
|
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
7999
8028
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
8000
8029
|
};
|
|
8001
|
-
Object.defineProperty(
|
|
8002
|
-
var staged_1 =
|
|
8030
|
+
Object.defineProperty(_stagedComponents_1_1_3_stagedComponents, "__esModule", { value: true });
|
|
8031
|
+
var staged_1 = _stagedComponents_1_1_3_stagedComponents.staged = void 0;
|
|
8003
8032
|
const react_1 = __importDefault(React__default.default);
|
|
8004
8033
|
function processNext(next) {
|
|
8005
8034
|
if (typeof next === "function") {
|
|
@@ -8018,7 +8047,7 @@ function staged(stage) {
|
|
|
8018
8047
|
return processNext(next);
|
|
8019
8048
|
};
|
|
8020
8049
|
}
|
|
8021
|
-
staged_1 =
|
|
8050
|
+
staged_1 = _stagedComponents_1_1_3_stagedComponents.staged = staged;
|
|
8022
8051
|
function toCSSLength(val) {
|
|
8023
8052
|
return typeof val === "number" ? `${val}px` : val;
|
|
8024
8053
|
}
|
|
@@ -8034,7 +8063,7 @@ const LazyDetector = (props) => {
|
|
|
8034
8063
|
ref
|
|
8035
8064
|
});
|
|
8036
8065
|
};
|
|
8037
|
-
const useIsomorphicUpdateLayoutEffect = createUpdateEffect(useIsomorphicLayoutEffect$
|
|
8066
|
+
const useIsomorphicUpdateLayoutEffect = createUpdateEffect(useIsomorphicLayoutEffect$2);
|
|
8038
8067
|
const ImageIcon = () => React__default.default.createElement("svg", {
|
|
8039
8068
|
viewBox: "0 0 48 48",
|
|
8040
8069
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -8416,7 +8445,7 @@ var isoWeek$1 = { exports: {} };
|
|
|
8416
8445
|
var n = d.startOf;
|
|
8417
8446
|
d.startOf = function(e2, t2) {
|
|
8418
8447
|
var i2 = this.$utils(), s2 = !!i2.u(t2) || t2;
|
|
8419
|
-
return i2.p(e2)
|
|
8448
|
+
return "isoweek" === i2.p(e2) ? s2 ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : n.bind(this)(e2, t2);
|
|
8420
8449
|
};
|
|
8421
8450
|
};
|
|
8422
8451
|
});
|
|
@@ -8455,6 +8484,9 @@ function convertValueToRange(selectionMode, value) {
|
|
|
8455
8484
|
}
|
|
8456
8485
|
return [value, value];
|
|
8457
8486
|
}
|
|
8487
|
+
function convertPageToDayjs(page) {
|
|
8488
|
+
return dayjs().year(page.year).month(page.month - 1).date(1);
|
|
8489
|
+
}
|
|
8458
8490
|
dayjs.extend(isoWeek);
|
|
8459
8491
|
const classPrefix$1b = "adm-calendar";
|
|
8460
8492
|
const defaultProps$Y = {
|
|
@@ -8507,35 +8539,51 @@ const Calendar = React$1.forwardRef((p, ref) => {
|
|
|
8507
8539
|
} else {
|
|
8508
8540
|
page = pageOrPageGenerator;
|
|
8509
8541
|
}
|
|
8510
|
-
setCurrent(
|
|
8542
|
+
setCurrent(convertPageToDayjs(page));
|
|
8511
8543
|
},
|
|
8512
8544
|
jumpToToday: () => {
|
|
8513
8545
|
setCurrent(dayjs().date(1));
|
|
8514
8546
|
}
|
|
8515
8547
|
}));
|
|
8548
|
+
const handlePageChange = (action, num, type4) => {
|
|
8549
|
+
const nxtCurrent = current[action](num, type4);
|
|
8550
|
+
if (action === "subtract" && props.minPage) {
|
|
8551
|
+
const minPage = convertPageToDayjs(props.minPage);
|
|
8552
|
+
if (nxtCurrent.isBefore(minPage, type4)) {
|
|
8553
|
+
return;
|
|
8554
|
+
}
|
|
8555
|
+
}
|
|
8556
|
+
if (action === "add" && props.maxPage) {
|
|
8557
|
+
const maxPage = convertPageToDayjs(props.maxPage);
|
|
8558
|
+
if (nxtCurrent.isAfter(maxPage, type4)) {
|
|
8559
|
+
return;
|
|
8560
|
+
}
|
|
8561
|
+
}
|
|
8562
|
+
setCurrent(current[action](num, type4));
|
|
8563
|
+
};
|
|
8516
8564
|
const header = React__default.default.createElement("div", {
|
|
8517
8565
|
className: `${classPrefix$1b}-header`
|
|
8518
8566
|
}, React__default.default.createElement("a", {
|
|
8519
8567
|
className: `${classPrefix$1b}-arrow-button ${classPrefix$1b}-arrow-button-year`,
|
|
8520
8568
|
onClick: () => {
|
|
8521
|
-
|
|
8569
|
+
handlePageChange("subtract", 1, "year");
|
|
8522
8570
|
}
|
|
8523
8571
|
}, props.prevYearButton), React__default.default.createElement("a", {
|
|
8524
8572
|
className: `${classPrefix$1b}-arrow-button ${classPrefix$1b}-arrow-button-month`,
|
|
8525
8573
|
onClick: () => {
|
|
8526
|
-
|
|
8574
|
+
handlePageChange("subtract", 1, "month");
|
|
8527
8575
|
}
|
|
8528
8576
|
}, props.prevMonthButton), React__default.default.createElement("div", {
|
|
8529
8577
|
className: `${classPrefix$1b}-title`
|
|
8530
8578
|
}, locale.Calendar.renderYearAndMonth(current.year(), current.month() + 1)), React__default.default.createElement("a", {
|
|
8531
8579
|
className: classNames(`${classPrefix$1b}-arrow-button`, `${classPrefix$1b}-arrow-button-right`, `${classPrefix$1b}-arrow-button-right-month`),
|
|
8532
8580
|
onClick: () => {
|
|
8533
|
-
|
|
8581
|
+
handlePageChange("add", 1, "month");
|
|
8534
8582
|
}
|
|
8535
8583
|
}, props.nextMonthButton), React__default.default.createElement("a", {
|
|
8536
8584
|
className: classNames(`${classPrefix$1b}-arrow-button`, `${classPrefix$1b}-arrow-button-right`, `${classPrefix$1b}-arrow-button-right-year`),
|
|
8537
8585
|
onClick: () => {
|
|
8538
|
-
|
|
8586
|
+
handlePageChange("add", 1, "year");
|
|
8539
8587
|
}
|
|
8540
8588
|
}, props.nextYearButton));
|
|
8541
8589
|
const maxDay = React$1.useMemo(() => props.max && dayjs(props.max), [props.max]);
|
|
@@ -8637,7 +8685,7 @@ const Calendar = React$1.forwardRef((p, ref) => {
|
|
|
8637
8685
|
const capsuleTabs = "";
|
|
8638
8686
|
function useResizeEffect(effect, targetRef) {
|
|
8639
8687
|
const fn = useMemoizedFn(effect);
|
|
8640
|
-
useIsomorphicLayoutEffect$
|
|
8688
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
8641
8689
|
const target = targetRef.current;
|
|
8642
8690
|
if (!target)
|
|
8643
8691
|
return;
|
|
@@ -8715,7 +8763,7 @@ const useTabListScroll = (targetRef, activeIndex) => {
|
|
|
8715
8763
|
immediate: immediate && !scrollLeft.isAnimating
|
|
8716
8764
|
});
|
|
8717
8765
|
}
|
|
8718
|
-
useIsomorphicLayoutEffect$
|
|
8766
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
8719
8767
|
animate(true);
|
|
8720
8768
|
}, []);
|
|
8721
8769
|
useIsomorphicUpdateLayoutEffect(() => {
|
|
@@ -8792,7 +8840,7 @@ const ScrollMask = (props) => {
|
|
|
8792
8840
|
}
|
|
8793
8841
|
}));
|
|
8794
8842
|
};
|
|
8795
|
-
var
|
|
8843
|
+
var _reactIs_17_0_2_reactIs = { exports: {} };
|
|
8796
8844
|
var reactIs_development$1 = {};
|
|
8797
8845
|
/** @license React v17.0.2
|
|
8798
8846
|
* react-is.development.js
|
|
@@ -8987,12 +9035,12 @@ var reactIs_development$1 = {};
|
|
|
8987
9035
|
{
|
|
8988
9036
|
module2.exports = reactIs_development$1;
|
|
8989
9037
|
}
|
|
8990
|
-
})(
|
|
9038
|
+
})(_reactIs_17_0_2_reactIs);
|
|
8991
9039
|
function traverseReactNode(children, fn) {
|
|
8992
9040
|
let i = 0;
|
|
8993
9041
|
function handle(target) {
|
|
8994
9042
|
React__default.default.Children.forEach(target, (child) => {
|
|
8995
|
-
if (!
|
|
9043
|
+
if (!_reactIs_17_0_2_reactIs.exports.isFragment(child)) {
|
|
8996
9044
|
fn(child, i);
|
|
8997
9045
|
i += 1;
|
|
8998
9046
|
} else {
|
|
@@ -9191,7 +9239,7 @@ function ownKeys$1(object4, enumerableOnly) {
|
|
|
9191
9239
|
}
|
|
9192
9240
|
function _objectSpread2$1(target) {
|
|
9193
9241
|
for (var i = 1; i < arguments.length; i++) {
|
|
9194
|
-
var source = arguments[i]
|
|
9242
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
9195
9243
|
i % 2 ? ownKeys$1(Object(source), true).forEach(function(key) {
|
|
9196
9244
|
_defineProperty$1(target, key, source[key]);
|
|
9197
9245
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function(key) {
|
|
@@ -9913,7 +9961,7 @@ Please upgrade to the latest version.`);
|
|
|
9913
9961
|
this.emit();
|
|
9914
9962
|
}
|
|
9915
9963
|
pointerClick(event) {
|
|
9916
|
-
if (!this.state.tap) {
|
|
9964
|
+
if (!this.state.tap && event.detail > 0) {
|
|
9917
9965
|
event.preventDefault();
|
|
9918
9966
|
event.stopPropagation();
|
|
9919
9967
|
}
|
|
@@ -10621,23 +10669,21 @@ function resolveWith(config2 = {}, resolvers) {
|
|
|
10621
10669
|
}
|
|
10622
10670
|
return result2;
|
|
10623
10671
|
}
|
|
10624
|
-
function parse$1(
|
|
10625
|
-
const _ref =
|
|
10672
|
+
function parse$1(newConfig, gestureKey, _config = {}) {
|
|
10673
|
+
const _ref = newConfig, {
|
|
10626
10674
|
target,
|
|
10627
10675
|
eventOptions,
|
|
10628
10676
|
window: window2,
|
|
10629
10677
|
enabled,
|
|
10630
10678
|
transform
|
|
10631
10679
|
} = _ref, rest = _objectWithoutProperties$1(_ref, _excluded$3);
|
|
10632
|
-
|
|
10633
|
-
|
|
10634
|
-
|
|
10635
|
-
|
|
10636
|
-
|
|
10637
|
-
|
|
10638
|
-
|
|
10639
|
-
}, sharedConfigResolver)
|
|
10640
|
-
};
|
|
10680
|
+
_config.shared = resolveWith({
|
|
10681
|
+
target,
|
|
10682
|
+
eventOptions,
|
|
10683
|
+
window: window2,
|
|
10684
|
+
enabled,
|
|
10685
|
+
transform
|
|
10686
|
+
}, sharedConfigResolver);
|
|
10641
10687
|
if (gestureKey) {
|
|
10642
10688
|
const resolver = ConfigResolverMap.get(gestureKey);
|
|
10643
10689
|
_config[gestureKey] = resolveWith(_objectSpread2$1({
|
|
@@ -10741,7 +10787,7 @@ class Controller {
|
|
|
10741
10787
|
this.nativeHandlers = nativeHandlers;
|
|
10742
10788
|
}
|
|
10743
10789
|
applyConfig(config2, gestureKey) {
|
|
10744
|
-
this.config = parse$1(config2, gestureKey);
|
|
10790
|
+
this.config = parse$1(config2, gestureKey, this.config);
|
|
10745
10791
|
}
|
|
10746
10792
|
clean() {
|
|
10747
10793
|
this._targetEventStore.clean();
|
|
@@ -10988,13 +11034,13 @@ const Wheel = React$1.memo((props) => {
|
|
|
10988
11034
|
const rootRef = React$1.useRef(null);
|
|
10989
11035
|
const itemHeightMeasureRef = React$1.useRef(null);
|
|
10990
11036
|
const itemHeight = React$1.useRef(34);
|
|
10991
|
-
useIsomorphicLayoutEffect$
|
|
11037
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
10992
11038
|
const itemHeightMeasure = itemHeightMeasureRef.current;
|
|
10993
11039
|
if (!itemHeightMeasure)
|
|
10994
11040
|
return;
|
|
10995
11041
|
itemHeight.current = measureCSSLength(window.getComputedStyle(itemHeightMeasure).getPropertyValue("height"));
|
|
10996
11042
|
});
|
|
10997
|
-
useIsomorphicLayoutEffect$
|
|
11043
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
10998
11044
|
if (draggingRef.current)
|
|
10999
11045
|
return;
|
|
11000
11046
|
if (value === null)
|
|
@@ -11008,7 +11054,7 @@ const Wheel = React$1.memo((props) => {
|
|
|
11008
11054
|
immediate: y.goal !== finalPosition
|
|
11009
11055
|
});
|
|
11010
11056
|
}, [value, column]);
|
|
11011
|
-
useIsomorphicLayoutEffect$
|
|
11057
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
11012
11058
|
if (column.length === 0) {
|
|
11013
11059
|
if (value !== null) {
|
|
11014
11060
|
onSelect(null);
|
|
@@ -11243,7 +11289,7 @@ var useSyncExternalStoreShim_development = {};
|
|
|
11243
11289
|
return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
|
|
11244
11290
|
}
|
|
11245
11291
|
var objectIs = typeof Object.is === "function" ? Object.is : is2;
|
|
11246
|
-
var useState = React2.useState, useEffect = React2.useEffect,
|
|
11292
|
+
var useState = React2.useState, useEffect = React2.useEffect, useLayoutEffect = React2.useLayoutEffect, useDebugValue = React2.useDebugValue;
|
|
11247
11293
|
var didWarnOld18Alpha = false;
|
|
11248
11294
|
var didWarnUncachedGetSnapshot = false;
|
|
11249
11295
|
function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
|
|
@@ -11271,7 +11317,7 @@ var useSyncExternalStoreShim_development = {};
|
|
|
11271
11317
|
getSnapshot
|
|
11272
11318
|
}
|
|
11273
11319
|
}), inst = _useState[0].inst, forceUpdate = _useState[1];
|
|
11274
|
-
|
|
11320
|
+
useLayoutEffect(function() {
|
|
11275
11321
|
inst.value = value;
|
|
11276
11322
|
inst.getSnapshot = getSnapshot;
|
|
11277
11323
|
if (checkIfSnapshotChanged(inst)) {
|
|
@@ -11855,7 +11901,7 @@ const Tabs$1 = (p) => {
|
|
|
11855
11901
|
immediate
|
|
11856
11902
|
});
|
|
11857
11903
|
}
|
|
11858
|
-
useIsomorphicLayoutEffect$
|
|
11904
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
11859
11905
|
animate(!x.isAnimating);
|
|
11860
11906
|
}, []);
|
|
11861
11907
|
useIsomorphicUpdateLayoutEffect(() => {
|
|
@@ -11890,7 +11936,7 @@ const Tabs$1 = (p) => {
|
|
|
11890
11936
|
trailing: true,
|
|
11891
11937
|
leading: true
|
|
11892
11938
|
});
|
|
11893
|
-
useIsomorphicLayoutEffect$
|
|
11939
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
11894
11940
|
updateMask(true);
|
|
11895
11941
|
}, []);
|
|
11896
11942
|
return withNativeProps(props, React__default.default.createElement("div", {
|
|
@@ -12480,7 +12526,7 @@ const CenterPopup = (p) => {
|
|
|
12480
12526
|
}
|
|
12481
12527
|
});
|
|
12482
12528
|
const [active, setActive] = React$1.useState(props.visible);
|
|
12483
|
-
useIsomorphicLayoutEffect$
|
|
12529
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
12484
12530
|
if (props.visible) {
|
|
12485
12531
|
setActive(true);
|
|
12486
12532
|
}
|
|
@@ -12542,18 +12588,22 @@ const defaultProps$O = {
|
|
|
12542
12588
|
const Group$1 = (p) => {
|
|
12543
12589
|
const props = mergeProps(defaultProps$O, p);
|
|
12544
12590
|
const [value, setValue2] = usePropsValue(props);
|
|
12545
|
-
return React__default.default.createElement(
|
|
12546
|
-
|
|
12547
|
-
|
|
12548
|
-
|
|
12549
|
-
|
|
12550
|
-
|
|
12551
|
-
|
|
12552
|
-
|
|
12553
|
-
|
|
12591
|
+
return React__default.default.createElement(
|
|
12592
|
+
CheckboxGroupContext.Provider,
|
|
12593
|
+
{
|
|
12594
|
+
value: {
|
|
12595
|
+
value,
|
|
12596
|
+
disabled: props.disabled,
|
|
12597
|
+
check: (v) => {
|
|
12598
|
+
setValue2([...value, v]);
|
|
12599
|
+
},
|
|
12600
|
+
uncheck: (v) => {
|
|
12601
|
+
setValue2(value.filter((item) => item !== v));
|
|
12602
|
+
}
|
|
12554
12603
|
}
|
|
12555
|
-
}
|
|
12556
|
-
|
|
12604
|
+
},
|
|
12605
|
+
props.children
|
|
12606
|
+
);
|
|
12557
12607
|
};
|
|
12558
12608
|
const CheckIcon = React$1.memo((props) => {
|
|
12559
12609
|
return withNativeProps(props, React__default.default.createElement("svg", {
|
|
@@ -12837,7 +12887,7 @@ var isoWeeksInYear$1 = { exports: {} };
|
|
|
12837
12887
|
return function(e, n) {
|
|
12838
12888
|
n.prototype.isoWeeksInYear = function() {
|
|
12839
12889
|
var e2 = this.isLeapYear(), n2 = this.endOf("y").day();
|
|
12840
|
-
return
|
|
12890
|
+
return 4 === n2 || e2 && 5 === n2 ? 53 : 52;
|
|
12841
12891
|
};
|
|
12842
12892
|
};
|
|
12843
12893
|
});
|
|
@@ -13585,11 +13635,132 @@ const index$c = attachPropertiesToComponent(Dropdown, {
|
|
|
13585
13635
|
Item
|
|
13586
13636
|
});
|
|
13587
13637
|
const ellipsis = "";
|
|
13638
|
+
var _runes_0_4_3_runes = { exports: {} };
|
|
13639
|
+
const HIGH_SURROGATE_START = 55296;
|
|
13640
|
+
const HIGH_SURROGATE_END = 56319;
|
|
13641
|
+
const LOW_SURROGATE_START = 56320;
|
|
13642
|
+
const REGIONAL_INDICATOR_START = 127462;
|
|
13643
|
+
const REGIONAL_INDICATOR_END = 127487;
|
|
13644
|
+
const FITZPATRICK_MODIFIER_START = 127995;
|
|
13645
|
+
const FITZPATRICK_MODIFIER_END = 127999;
|
|
13646
|
+
const VARIATION_MODIFIER_START = 65024;
|
|
13647
|
+
const VARIATION_MODIFIER_END = 65039;
|
|
13648
|
+
const DIACRITICAL_MARKS_START = 8400;
|
|
13649
|
+
const DIACRITICAL_MARKS_END = 8447;
|
|
13650
|
+
const ZWJ = 8205;
|
|
13651
|
+
const GRAPHEMS = [
|
|
13652
|
+
776,
|
|
13653
|
+
2359,
|
|
13654
|
+
2359,
|
|
13655
|
+
2367,
|
|
13656
|
+
2367,
|
|
13657
|
+
2984,
|
|
13658
|
+
3007,
|
|
13659
|
+
3021,
|
|
13660
|
+
3633,
|
|
13661
|
+
3635,
|
|
13662
|
+
3648,
|
|
13663
|
+
3657,
|
|
13664
|
+
4352,
|
|
13665
|
+
4449,
|
|
13666
|
+
4520
|
|
13667
|
+
];
|
|
13668
|
+
function runes(string3) {
|
|
13669
|
+
if (typeof string3 !== "string") {
|
|
13670
|
+
throw new Error("string cannot be undefined or null");
|
|
13671
|
+
}
|
|
13672
|
+
const result2 = [];
|
|
13673
|
+
let i = 0;
|
|
13674
|
+
let increment = 0;
|
|
13675
|
+
while (i < string3.length) {
|
|
13676
|
+
increment += nextUnits(i + increment, string3);
|
|
13677
|
+
if (isGraphem(string3[i + increment])) {
|
|
13678
|
+
increment++;
|
|
13679
|
+
}
|
|
13680
|
+
if (isVariationSelector(string3[i + increment])) {
|
|
13681
|
+
increment++;
|
|
13682
|
+
}
|
|
13683
|
+
if (isDiacriticalMark(string3[i + increment])) {
|
|
13684
|
+
increment++;
|
|
13685
|
+
}
|
|
13686
|
+
if (isZeroWidthJoiner(string3[i + increment])) {
|
|
13687
|
+
increment++;
|
|
13688
|
+
continue;
|
|
13689
|
+
}
|
|
13690
|
+
result2.push(string3.substring(i, i + increment));
|
|
13691
|
+
i += increment;
|
|
13692
|
+
increment = 0;
|
|
13693
|
+
}
|
|
13694
|
+
return result2;
|
|
13695
|
+
}
|
|
13696
|
+
function nextUnits(i, string3) {
|
|
13697
|
+
const current = string3[i];
|
|
13698
|
+
if (!isFirstOfSurrogatePair(current) || i === string3.length - 1) {
|
|
13699
|
+
return 1;
|
|
13700
|
+
}
|
|
13701
|
+
const currentPair = current + string3[i + 1];
|
|
13702
|
+
let nextPair = string3.substring(i + 2, i + 5);
|
|
13703
|
+
if (isRegionalIndicator(currentPair) && isRegionalIndicator(nextPair)) {
|
|
13704
|
+
return 4;
|
|
13705
|
+
}
|
|
13706
|
+
if (isFitzpatrickModifier(nextPair)) {
|
|
13707
|
+
return 4;
|
|
13708
|
+
}
|
|
13709
|
+
return 2;
|
|
13710
|
+
}
|
|
13711
|
+
function isFirstOfSurrogatePair(string3) {
|
|
13712
|
+
return string3 && betweenInclusive(string3[0].charCodeAt(0), HIGH_SURROGATE_START, HIGH_SURROGATE_END);
|
|
13713
|
+
}
|
|
13714
|
+
function isRegionalIndicator(string3) {
|
|
13715
|
+
return betweenInclusive(codePointFromSurrogatePair(string3), REGIONAL_INDICATOR_START, REGIONAL_INDICATOR_END);
|
|
13716
|
+
}
|
|
13717
|
+
function isFitzpatrickModifier(string3) {
|
|
13718
|
+
return betweenInclusive(codePointFromSurrogatePair(string3), FITZPATRICK_MODIFIER_START, FITZPATRICK_MODIFIER_END);
|
|
13719
|
+
}
|
|
13720
|
+
function isVariationSelector(string3) {
|
|
13721
|
+
return typeof string3 === "string" && betweenInclusive(string3.charCodeAt(0), VARIATION_MODIFIER_START, VARIATION_MODIFIER_END);
|
|
13722
|
+
}
|
|
13723
|
+
function isDiacriticalMark(string3) {
|
|
13724
|
+
return typeof string3 === "string" && betweenInclusive(string3.charCodeAt(0), DIACRITICAL_MARKS_START, DIACRITICAL_MARKS_END);
|
|
13725
|
+
}
|
|
13726
|
+
function isGraphem(string3) {
|
|
13727
|
+
return typeof string3 === "string" && GRAPHEMS.indexOf(string3.charCodeAt(0)) !== -1;
|
|
13728
|
+
}
|
|
13729
|
+
function isZeroWidthJoiner(string3) {
|
|
13730
|
+
return typeof string3 === "string" && string3.charCodeAt(0) === ZWJ;
|
|
13731
|
+
}
|
|
13732
|
+
function codePointFromSurrogatePair(pair) {
|
|
13733
|
+
const highOffset = pair.charCodeAt(0) - HIGH_SURROGATE_START;
|
|
13734
|
+
const lowOffset = pair.charCodeAt(1) - LOW_SURROGATE_START;
|
|
13735
|
+
return (highOffset << 10) + lowOffset + 65536;
|
|
13736
|
+
}
|
|
13737
|
+
function betweenInclusive(value, lower, upper) {
|
|
13738
|
+
return value >= lower && value <= upper;
|
|
13739
|
+
}
|
|
13740
|
+
function substring(string3, start2, width) {
|
|
13741
|
+
const chars = runes(string3);
|
|
13742
|
+
if (start2 === void 0) {
|
|
13743
|
+
return string3;
|
|
13744
|
+
}
|
|
13745
|
+
if (start2 >= chars.length) {
|
|
13746
|
+
return "";
|
|
13747
|
+
}
|
|
13748
|
+
const rest = chars.length - start2;
|
|
13749
|
+
const stringWidth = width === void 0 ? rest : width;
|
|
13750
|
+
let endIndex = start2 + stringWidth;
|
|
13751
|
+
if (endIndex > start2 + rest) {
|
|
13752
|
+
endIndex = void 0;
|
|
13753
|
+
}
|
|
13754
|
+
return chars.slice(start2, endIndex).join("");
|
|
13755
|
+
}
|
|
13756
|
+
_runes_0_4_3_runes.exports = runes;
|
|
13757
|
+
_runes_0_4_3_runes.exports.substr = substring;
|
|
13588
13758
|
const classPrefix$S = `adm-ellipsis`;
|
|
13589
13759
|
const defaultProps$G = {
|
|
13590
13760
|
direction: "end",
|
|
13591
13761
|
rows: 1,
|
|
13592
13762
|
expandText: "",
|
|
13763
|
+
content: "",
|
|
13593
13764
|
collapseText: "",
|
|
13594
13765
|
stopPropagationForActionButtons: [],
|
|
13595
13766
|
onContentClick: () => {
|
|
@@ -13601,6 +13772,10 @@ const Ellipsis = (p) => {
|
|
|
13601
13772
|
const [ellipsised, setEllipsised] = React$1.useState({});
|
|
13602
13773
|
const [expanded, setExpanded] = React$1.useState(false);
|
|
13603
13774
|
const [exceeded, setExceeded] = React$1.useState(false);
|
|
13775
|
+
const chars = React$1.useMemo(() => _runes_0_4_3_runes.exports(props.content), [props.content]);
|
|
13776
|
+
function getSubString(start2, end) {
|
|
13777
|
+
return chars.slice(start2, end).join("");
|
|
13778
|
+
}
|
|
13604
13779
|
function calcEllipsised() {
|
|
13605
13780
|
const root2 = rootRef.current;
|
|
13606
13781
|
if (!root2)
|
|
@@ -13635,19 +13810,19 @@ const Ellipsis = (p) => {
|
|
|
13635
13810
|
if (right - left <= 1) {
|
|
13636
13811
|
if (props.direction === "end") {
|
|
13637
13812
|
return {
|
|
13638
|
-
leading:
|
|
13813
|
+
leading: getSubString(0, left) + "..."
|
|
13639
13814
|
};
|
|
13640
13815
|
} else {
|
|
13641
13816
|
return {
|
|
13642
|
-
tailing: "..." +
|
|
13817
|
+
tailing: "..." + getSubString(right, end)
|
|
13643
13818
|
};
|
|
13644
13819
|
}
|
|
13645
13820
|
}
|
|
13646
13821
|
const middle2 = Math.round((left + right) / 2);
|
|
13647
13822
|
if (props.direction === "end") {
|
|
13648
|
-
container.innerText =
|
|
13823
|
+
container.innerText = getSubString(0, middle2) + "..." + actionText;
|
|
13649
13824
|
} else {
|
|
13650
|
-
container.innerText = actionText + "..." +
|
|
13825
|
+
container.innerText = actionText + "..." + getSubString(middle2, end);
|
|
13651
13826
|
}
|
|
13652
13827
|
if (container.offsetHeight <= maxHeight) {
|
|
13653
13828
|
if (props.direction === "end") {
|
|
@@ -13665,13 +13840,13 @@ const Ellipsis = (p) => {
|
|
|
13665
13840
|
}, checkMiddle = function(leftPart, rightPart) {
|
|
13666
13841
|
if (leftPart[1] - leftPart[0] <= 1 && rightPart[1] - rightPart[0] <= 1) {
|
|
13667
13842
|
return {
|
|
13668
|
-
leading:
|
|
13669
|
-
tailing: "..." +
|
|
13843
|
+
leading: getSubString(0, leftPart[0]) + "...",
|
|
13844
|
+
tailing: "..." + getSubString(rightPart[1], end)
|
|
13670
13845
|
};
|
|
13671
13846
|
}
|
|
13672
13847
|
const leftPartMiddle = Math.floor((leftPart[0] + leftPart[1]) / 2);
|
|
13673
13848
|
const rightPartMiddle = Math.ceil((rightPart[0] + rightPart[1]) / 2);
|
|
13674
|
-
container.innerText =
|
|
13849
|
+
container.innerText = getSubString(0, leftPartMiddle) + "..." + actionText + "..." + getSubString(rightPartMiddle, end);
|
|
13675
13850
|
if (container.offsetHeight <= maxHeight) {
|
|
13676
13851
|
return checkMiddle([leftPartMiddle, leftPart[1]], [rightPart[0], rightPartMiddle]);
|
|
13677
13852
|
} else {
|
|
@@ -13688,7 +13863,7 @@ const Ellipsis = (p) => {
|
|
|
13688
13863
|
document.body.removeChild(container);
|
|
13689
13864
|
}
|
|
13690
13865
|
useResizeEffect(calcEllipsised, rootRef);
|
|
13691
|
-
useIsomorphicLayoutEffect$
|
|
13866
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
13692
13867
|
calcEllipsised();
|
|
13693
13868
|
}, [props.content, props.direction, props.rows, props.expandText, props.collapseText]);
|
|
13694
13869
|
const expandActionElement = exceeded && props.expandText ? withStopPropagation(props.stopPropagationForActionButtons, React__default.default.createElement("a", {
|
|
@@ -14597,7 +14772,7 @@ function ownKeys(object4, enumerableOnly) {
|
|
|
14597
14772
|
}
|
|
14598
14773
|
function _objectSpread2(target) {
|
|
14599
14774
|
for (var i = 1; i < arguments.length; i++) {
|
|
14600
|
-
var source = arguments[i]
|
|
14775
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
14601
14776
|
i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
|
|
14602
14777
|
_defineProperty(target, key, source[key]);
|
|
14603
14778
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
@@ -14719,10 +14894,10 @@ function _isNativeReflectConstruct$1() {
|
|
|
14719
14894
|
}
|
|
14720
14895
|
function _typeof$1(obj) {
|
|
14721
14896
|
"@babel/helpers - typeof";
|
|
14722
|
-
return _typeof$1 = typeof Symbol
|
|
14897
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
14723
14898
|
return typeof obj2;
|
|
14724
14899
|
} : function(obj2) {
|
|
14725
|
-
return obj2 && typeof Symbol
|
|
14900
|
+
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
14726
14901
|
}, _typeof$1(obj);
|
|
14727
14902
|
}
|
|
14728
14903
|
function _possibleConstructorReturn(self2, call2) {
|
|
@@ -14746,7 +14921,7 @@ function _createSuper(Derived) {
|
|
|
14746
14921
|
return _possibleConstructorReturn(this, result2);
|
|
14747
14922
|
};
|
|
14748
14923
|
}
|
|
14749
|
-
var
|
|
14924
|
+
var _reactIs_16_13_1_reactIs = { exports: {} };
|
|
14750
14925
|
var reactIs_development = {};
|
|
14751
14926
|
/** @license React v16.13.1
|
|
14752
14927
|
* react-is.development.js
|
|
@@ -14906,7 +15081,7 @@ var reactIs_development = {};
|
|
|
14906
15081
|
{
|
|
14907
15082
|
module2.exports = reactIs_development;
|
|
14908
15083
|
}
|
|
14909
|
-
})(
|
|
15084
|
+
})(_reactIs_16_13_1_reactIs);
|
|
14910
15085
|
function toArray$2(children) {
|
|
14911
15086
|
var option = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
14912
15087
|
var ret = [];
|
|
@@ -14916,7 +15091,7 @@ function toArray$2(children) {
|
|
|
14916
15091
|
}
|
|
14917
15092
|
if (Array.isArray(child)) {
|
|
14918
15093
|
ret = ret.concat(toArray$2(child));
|
|
14919
|
-
} else if (
|
|
15094
|
+
} else if (_reactIs_16_13_1_reactIs.exports.isFragment(child) && child.props) {
|
|
14920
15095
|
ret = ret.concat(toArray$2(child.props.children, option));
|
|
14921
15096
|
} else {
|
|
14922
15097
|
ret.push(child);
|
|
@@ -14984,11 +15159,10 @@ function toArray$1(value) {
|
|
|
14984
15159
|
return Array.isArray(value) ? value : [value];
|
|
14985
15160
|
}
|
|
14986
15161
|
function _regeneratorRuntime() {
|
|
14987
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
14988
15162
|
_regeneratorRuntime = function _regeneratorRuntime2() {
|
|
14989
15163
|
return exports2;
|
|
14990
15164
|
};
|
|
14991
|
-
var exports2 = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = typeof Symbol
|
|
15165
|
+
var exports2 = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
14992
15166
|
function define(obj, key, value) {
|
|
14993
15167
|
return Object.defineProperty(obj, key, {
|
|
14994
15168
|
value,
|
|
@@ -15009,10 +15183,10 @@ function _regeneratorRuntime() {
|
|
|
15009
15183
|
return generator._invoke = function(innerFn2, self3, context2) {
|
|
15010
15184
|
var state = "suspendedStart";
|
|
15011
15185
|
return function(method4, arg) {
|
|
15012
|
-
if (
|
|
15186
|
+
if ("executing" === state)
|
|
15013
15187
|
throw new Error("Generator is already running");
|
|
15014
|
-
if (
|
|
15015
|
-
if (
|
|
15188
|
+
if ("completed" === state) {
|
|
15189
|
+
if ("throw" === method4)
|
|
15016
15190
|
throw arg;
|
|
15017
15191
|
return doneResult();
|
|
15018
15192
|
}
|
|
@@ -15026,17 +15200,17 @@ function _regeneratorRuntime() {
|
|
|
15026
15200
|
return delegateResult;
|
|
15027
15201
|
}
|
|
15028
15202
|
}
|
|
15029
|
-
if (context2.method
|
|
15203
|
+
if ("next" === context2.method)
|
|
15030
15204
|
context2.sent = context2._sent = context2.arg;
|
|
15031
|
-
else if (context2.method
|
|
15032
|
-
if (
|
|
15205
|
+
else if ("throw" === context2.method) {
|
|
15206
|
+
if ("suspendedStart" === state)
|
|
15033
15207
|
throw state = "completed", context2.arg;
|
|
15034
15208
|
context2.dispatchException(context2.arg);
|
|
15035
15209
|
} else
|
|
15036
|
-
context2.method
|
|
15210
|
+
"return" === context2.method && context2.abrupt("return", context2.arg);
|
|
15037
15211
|
state = "executing";
|
|
15038
15212
|
var record2 = tryCatch(innerFn2, self3, context2);
|
|
15039
|
-
if (record2.type
|
|
15213
|
+
if ("normal" === record2.type) {
|
|
15040
15214
|
if (state = context2.done ? "completed" : "suspendedYield", record2.arg === ContinueSentinel)
|
|
15041
15215
|
continue;
|
|
15042
15216
|
return {
|
|
@@ -15044,7 +15218,7 @@ function _regeneratorRuntime() {
|
|
|
15044
15218
|
done: context2.done
|
|
15045
15219
|
};
|
|
15046
15220
|
}
|
|
15047
|
-
record2.type
|
|
15221
|
+
"throw" === record2.type && (state = "completed", context2.method = "throw", context2.arg = record2.arg);
|
|
15048
15222
|
}
|
|
15049
15223
|
};
|
|
15050
15224
|
}(innerFn, self2, context), generator;
|
|
@@ -15087,9 +15261,9 @@ function _regeneratorRuntime() {
|
|
|
15087
15261
|
function AsyncIterator(generator, PromiseImpl) {
|
|
15088
15262
|
function invoke(method4, arg, resolve, reject) {
|
|
15089
15263
|
var record2 = tryCatch(generator[method4], generator, arg);
|
|
15090
|
-
if (record2.type
|
|
15264
|
+
if ("throw" !== record2.type) {
|
|
15091
15265
|
var result2 = record2.arg, value = result2.value;
|
|
15092
|
-
return value && _typeof$1(value)
|
|
15266
|
+
return value && "object" == _typeof$1(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function(value2) {
|
|
15093
15267
|
invoke("next", value2, resolve, reject);
|
|
15094
15268
|
}, function(err) {
|
|
15095
15269
|
invoke("throw", err, resolve, reject);
|
|
@@ -15113,19 +15287,19 @@ function _regeneratorRuntime() {
|
|
|
15113
15287
|
}
|
|
15114
15288
|
function maybeInvokeDelegate(delegate, context) {
|
|
15115
15289
|
var method4 = delegate.iterator[context.method];
|
|
15116
|
-
if (
|
|
15117
|
-
if (context.delegate = null, context.method
|
|
15118
|
-
if (delegate.iterator["return"] && (context.method = "return", context.arg = void 0, maybeInvokeDelegate(delegate, context), context.method
|
|
15290
|
+
if (void 0 === method4) {
|
|
15291
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
15292
|
+
if (delegate.iterator["return"] && (context.method = "return", context.arg = void 0, maybeInvokeDelegate(delegate, context), "throw" === context.method))
|
|
15119
15293
|
return ContinueSentinel;
|
|
15120
15294
|
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
15121
15295
|
}
|
|
15122
15296
|
return ContinueSentinel;
|
|
15123
15297
|
}
|
|
15124
15298
|
var record2 = tryCatch(method4, delegate.iterator, context.arg);
|
|
15125
|
-
if (record2.type
|
|
15299
|
+
if ("throw" === record2.type)
|
|
15126
15300
|
return context.method = "throw", context.arg = record2.arg, context.delegate = null, ContinueSentinel;
|
|
15127
15301
|
var info = record2.arg;
|
|
15128
|
-
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, context.method
|
|
15302
|
+
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = void 0), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
15129
15303
|
}
|
|
15130
15304
|
function pushTryEntry(locs) {
|
|
15131
15305
|
var entry = {
|
|
@@ -15147,7 +15321,7 @@ function _regeneratorRuntime() {
|
|
|
15147
15321
|
var iteratorMethod = iterable[iteratorSymbol];
|
|
15148
15322
|
if (iteratorMethod)
|
|
15149
15323
|
return iteratorMethod.call(iterable);
|
|
15150
|
-
if (typeof iterable.next
|
|
15324
|
+
if ("function" == typeof iterable.next)
|
|
15151
15325
|
return iterable;
|
|
15152
15326
|
if (!isNaN(iterable.length)) {
|
|
15153
15327
|
var i = -1, next = function next2() {
|
|
@@ -15171,8 +15345,8 @@ function _regeneratorRuntime() {
|
|
|
15171
15345
|
};
|
|
15172
15346
|
}
|
|
15173
15347
|
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports2.isGeneratorFunction = function(genFun) {
|
|
15174
|
-
var ctor = typeof genFun
|
|
15175
|
-
return !!ctor && (ctor === GeneratorFunction || (ctor.displayName || ctor.name)
|
|
15348
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
15349
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
15176
15350
|
}, exports2.mark = function(genFun) {
|
|
15177
15351
|
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
15178
15352
|
}, exports2.awrap = function(arg) {
|
|
@@ -15182,7 +15356,7 @@ function _regeneratorRuntime() {
|
|
|
15182
15356
|
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function() {
|
|
15183
15357
|
return this;
|
|
15184
15358
|
}), exports2.AsyncIterator = AsyncIterator, exports2.async = function(innerFn, outerFn, self2, tryLocsList, PromiseImpl) {
|
|
15185
|
-
|
|
15359
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
15186
15360
|
var iter = new AsyncIterator(wrap(innerFn, outerFn, self2, tryLocsList), PromiseImpl);
|
|
15187
15361
|
return exports2.isGeneratorFunction(outerFn) ? iter : iter.next().then(function(result2) {
|
|
15188
15362
|
return result2.done ? result2.value : iter.next();
|
|
@@ -15209,13 +15383,13 @@ function _regeneratorRuntime() {
|
|
|
15209
15383
|
reset: function reset(skipTempReset) {
|
|
15210
15384
|
if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = false, this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEach(resetTryEntry), !skipTempReset)
|
|
15211
15385
|
for (var name in this) {
|
|
15212
|
-
name.charAt(0)
|
|
15386
|
+
"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = void 0);
|
|
15213
15387
|
}
|
|
15214
15388
|
},
|
|
15215
15389
|
stop: function stop2() {
|
|
15216
15390
|
this.done = true;
|
|
15217
15391
|
var rootRecord = this.tryEntries[0].completion;
|
|
15218
|
-
if (rootRecord.type
|
|
15392
|
+
if ("throw" === rootRecord.type)
|
|
15219
15393
|
throw rootRecord.arg;
|
|
15220
15394
|
return this.rval;
|
|
15221
15395
|
},
|
|
@@ -15228,7 +15402,7 @@ function _regeneratorRuntime() {
|
|
|
15228
15402
|
}
|
|
15229
15403
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
15230
15404
|
var entry = this.tryEntries[i], record2 = entry.completion;
|
|
15231
|
-
if (entry.tryLoc
|
|
15405
|
+
if ("root" === entry.tryLoc)
|
|
15232
15406
|
return handle("end");
|
|
15233
15407
|
if (entry.tryLoc <= this.prev) {
|
|
15234
15408
|
var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
@@ -15257,14 +15431,14 @@ function _regeneratorRuntime() {
|
|
|
15257
15431
|
break;
|
|
15258
15432
|
}
|
|
15259
15433
|
}
|
|
15260
|
-
finallyEntry && (
|
|
15434
|
+
finallyEntry && ("break" === type4 || "continue" === type4) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
15261
15435
|
var record2 = finallyEntry ? finallyEntry.completion : {};
|
|
15262
15436
|
return record2.type = type4, record2.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record2);
|
|
15263
15437
|
},
|
|
15264
15438
|
complete: function complete(record2, afterLoc) {
|
|
15265
|
-
if (record2.type
|
|
15439
|
+
if ("throw" === record2.type)
|
|
15266
15440
|
throw record2.arg;
|
|
15267
|
-
return
|
|
15441
|
+
return "break" === record2.type || "continue" === record2.type ? this.next = record2.arg : "return" === record2.type ? (this.rval = this.arg = record2.arg, this.method = "return", this.next = "end") : "normal" === record2.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
15268
15442
|
},
|
|
15269
15443
|
finish: function finish(finallyLoc) {
|
|
15270
15444
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
@@ -15278,7 +15452,7 @@ function _regeneratorRuntime() {
|
|
|
15278
15452
|
var entry = this.tryEntries[i];
|
|
15279
15453
|
if (entry.tryLoc === tryLoc) {
|
|
15280
15454
|
var record2 = entry.completion;
|
|
15281
|
-
if (record2.type
|
|
15455
|
+
if ("throw" === record2.type) {
|
|
15282
15456
|
var thrown = record2.arg;
|
|
15283
15457
|
resetTryEntry(entry);
|
|
15284
15458
|
}
|
|
@@ -15292,7 +15466,7 @@ function _regeneratorRuntime() {
|
|
|
15292
15466
|
iterator: values(iterable),
|
|
15293
15467
|
resultName,
|
|
15294
15468
|
nextLoc
|
|
15295
|
-
}, this.method
|
|
15469
|
+
}, "next" === this.method && (this.arg = void 0), ContinueSentinel;
|
|
15296
15470
|
}
|
|
15297
15471
|
}, exports2;
|
|
15298
15472
|
}
|
|
@@ -16560,7 +16734,7 @@ function isSimilar(source, target) {
|
|
|
16560
16734
|
}
|
|
16561
16735
|
var sourceKeys = Object.keys(source);
|
|
16562
16736
|
var targetKeys = Object.keys(target);
|
|
16563
|
-
var keys2 = new Set([].concat(
|
|
16737
|
+
var keys2 = new Set([].concat(sourceKeys, targetKeys));
|
|
16564
16738
|
return _toConsumableArray(keys2).every(function(key) {
|
|
16565
16739
|
var sourceValue = source[key];
|
|
16566
16740
|
var targetValue = target[key];
|
|
@@ -17024,10 +17198,11 @@ var Field = /* @__PURE__ */ function(_React$Component) {
|
|
|
17024
17198
|
}).then(function() {
|
|
17025
17199
|
var ruleErrors = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : EMPTY_ERRORS;
|
|
17026
17200
|
if (_this.validatePromise === rootPromise) {
|
|
17201
|
+
var _ruleErrors$forEach;
|
|
17027
17202
|
_this.validatePromise = null;
|
|
17028
17203
|
var nextErrors = [];
|
|
17029
17204
|
var nextWarnings = [];
|
|
17030
|
-
ruleErrors.forEach(function(_ref3) {
|
|
17205
|
+
(_ruleErrors$forEach = ruleErrors.forEach) === null || _ruleErrors$forEach === void 0 ? void 0 : _ruleErrors$forEach.call(ruleErrors, function(_ref3) {
|
|
17031
17206
|
var warningOnly = _ref3.rule.warningOnly, _ref3$errors = _ref3.errors, errors = _ref3$errors === void 0 ? EMPTY_ERRORS : _ref3$errors;
|
|
17032
17207
|
if (warningOnly) {
|
|
17033
17208
|
nextWarnings.push.apply(nextWarnings, _toConsumableArray(errors));
|
|
@@ -18116,9 +18291,10 @@ var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate
|
|
|
18116
18291
|
warnings: []
|
|
18117
18292
|
};
|
|
18118
18293
|
}).catch(function(ruleErrors) {
|
|
18294
|
+
var _ruleErrors$forEach;
|
|
18119
18295
|
var mergedErrors = [];
|
|
18120
18296
|
var mergedWarnings = [];
|
|
18121
|
-
ruleErrors.forEach(function(_ref6) {
|
|
18297
|
+
(_ruleErrors$forEach = ruleErrors.forEach) === null || _ruleErrors$forEach === void 0 ? void 0 : _ruleErrors$forEach.call(ruleErrors, function(_ref6) {
|
|
18122
18298
|
var warningOnly = _ref6.rule.warningOnly, errors = _ref6.errors;
|
|
18123
18299
|
if (warningOnly) {
|
|
18124
18300
|
mergedWarnings.push.apply(mergedWarnings, _toConsumableArray(errors));
|
|
@@ -18302,9 +18478,12 @@ var Form$1 = function Form(_ref, ref) {
|
|
|
18302
18478
|
if (!mountRef.current) {
|
|
18303
18479
|
mountRef.current = true;
|
|
18304
18480
|
}
|
|
18305
|
-
React__namespace.useEffect(
|
|
18306
|
-
|
|
18307
|
-
|
|
18481
|
+
React__namespace.useEffect(
|
|
18482
|
+
function() {
|
|
18483
|
+
return destroyForm;
|
|
18484
|
+
},
|
|
18485
|
+
[]
|
|
18486
|
+
);
|
|
18308
18487
|
var childrenNode;
|
|
18309
18488
|
var childrenRenderProps = typeof children === "function";
|
|
18310
18489
|
if (childrenRenderProps) {
|
|
@@ -18354,8 +18533,10 @@ function stringify$1(value) {
|
|
|
18354
18533
|
}
|
|
18355
18534
|
}
|
|
18356
18535
|
function useWatch() {
|
|
18357
|
-
var
|
|
18358
|
-
|
|
18536
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
18537
|
+
args[_key] = arguments[_key];
|
|
18538
|
+
}
|
|
18539
|
+
var _args$ = args[0], dependencies = _args$ === void 0 ? [] : _args$, form = args[1];
|
|
18359
18540
|
var _useState = React$1.useState(), _useState2 = _slicedToArray(_useState, 2), value = _useState2[0], setValue2 = _useState2[1];
|
|
18360
18541
|
var valueStr = React$1.useMemo(function() {
|
|
18361
18542
|
return stringify$1(value);
|
|
@@ -18366,29 +18547,32 @@ function useWatch() {
|
|
|
18366
18547
|
var formInstance = form || fieldContext;
|
|
18367
18548
|
var isValidForm = formInstance && formInstance._init;
|
|
18368
18549
|
{
|
|
18369
|
-
warningOnce$1(isValidForm, "useWatch requires a form instance since it can not auto detect from context.");
|
|
18550
|
+
warningOnce$1(args.length === 2 ? form ? isValidForm : true : isValidForm, "useWatch requires a form instance since it can not auto detect from context.");
|
|
18370
18551
|
}
|
|
18371
18552
|
var namePath = getNamePath(dependencies);
|
|
18372
18553
|
var namePathRef = React$1.useRef(namePath);
|
|
18373
18554
|
namePathRef.current = namePath;
|
|
18374
|
-
React$1.useEffect(
|
|
18375
|
-
|
|
18376
|
-
|
|
18377
|
-
|
|
18378
|
-
var getFieldsValue = formInstance.getFieldsValue, getInternalHooks3 = formInstance.getInternalHooks;
|
|
18379
|
-
var _getInternalHooks = getInternalHooks3(HOOK_MARK$1), registerWatch = _getInternalHooks.registerWatch;
|
|
18380
|
-
var cancelRegister = registerWatch(function(store) {
|
|
18381
|
-
var newValue = getValue(store, namePathRef.current);
|
|
18382
|
-
var nextValueStr = stringify$1(newValue);
|
|
18383
|
-
if (valueStrRef.current !== nextValueStr) {
|
|
18384
|
-
valueStrRef.current = nextValueStr;
|
|
18385
|
-
setValue2(newValue);
|
|
18555
|
+
React$1.useEffect(
|
|
18556
|
+
function() {
|
|
18557
|
+
if (!isValidForm) {
|
|
18558
|
+
return;
|
|
18386
18559
|
}
|
|
18387
|
-
|
|
18388
|
-
|
|
18389
|
-
|
|
18390
|
-
|
|
18391
|
-
|
|
18560
|
+
var getFieldsValue = formInstance.getFieldsValue, getInternalHooks3 = formInstance.getInternalHooks;
|
|
18561
|
+
var _getInternalHooks = getInternalHooks3(HOOK_MARK$1), registerWatch = _getInternalHooks.registerWatch;
|
|
18562
|
+
var cancelRegister = registerWatch(function(store) {
|
|
18563
|
+
var newValue = getValue(store, namePathRef.current);
|
|
18564
|
+
var nextValueStr = stringify$1(newValue);
|
|
18565
|
+
if (valueStrRef.current !== nextValueStr) {
|
|
18566
|
+
valueStrRef.current = nextValueStr;
|
|
18567
|
+
setValue2(newValue);
|
|
18568
|
+
}
|
|
18569
|
+
});
|
|
18570
|
+
var initialValue = getValue(getFieldsValue(), namePathRef.current);
|
|
18571
|
+
setValue2(initialValue);
|
|
18572
|
+
return cancelRegister;
|
|
18573
|
+
},
|
|
18574
|
+
[isValidForm]
|
|
18575
|
+
);
|
|
18392
18576
|
return value;
|
|
18393
18577
|
}
|
|
18394
18578
|
var InternalForm = /* @__PURE__ */ React__namespace.forwardRef(Form$1);
|
|
@@ -18741,10 +18925,10 @@ var _typeof = { exports: {} };
|
|
|
18741
18925
|
(function(module2) {
|
|
18742
18926
|
function _typeof2(obj) {
|
|
18743
18927
|
"@babel/helpers - typeof";
|
|
18744
|
-
return module2.exports = _typeof2 = typeof Symbol
|
|
18928
|
+
return module2.exports = _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
18745
18929
|
return typeof obj2;
|
|
18746
18930
|
} : function(obj2) {
|
|
18747
|
-
return obj2 && typeof Symbol
|
|
18931
|
+
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
18748
18932
|
}, module2.exports.__esModule = true, module2.exports["default"] = module2.exports, _typeof2(obj);
|
|
18749
18933
|
}
|
|
18750
18934
|
module2.exports = _typeof2, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
|
|
@@ -18903,9 +19087,9 @@ function isSimpleFunctionComponent(type4) {
|
|
|
18903
19087
|
return typeof type4 === "function" && !shouldConstruct(type4) && type4.defaultProps === void 0;
|
|
18904
19088
|
}
|
|
18905
19089
|
function isSafeSetRefComponent(component) {
|
|
18906
|
-
if (
|
|
19090
|
+
if (_reactIs_17_0_2_reactIs.exports.isFragment(component))
|
|
18907
19091
|
return false;
|
|
18908
|
-
if (
|
|
19092
|
+
if (_reactIs_17_0_2_reactIs.exports.isMemo(component))
|
|
18909
19093
|
return isSafeSetRefComponent(component.type);
|
|
18910
19094
|
return !isSimpleFunctionComponent(component.type);
|
|
18911
19095
|
}
|
|
@@ -19607,7 +19791,7 @@ function getWindow(node) {
|
|
|
19607
19791
|
}
|
|
19608
19792
|
return node;
|
|
19609
19793
|
}
|
|
19610
|
-
function getComputedStyle
|
|
19794
|
+
function getComputedStyle(element) {
|
|
19611
19795
|
return getWindow(element).getComputedStyle(element);
|
|
19612
19796
|
}
|
|
19613
19797
|
function getNodeName(node) {
|
|
@@ -19641,7 +19825,7 @@ function isOverflowElement(element) {
|
|
|
19641
19825
|
overflow,
|
|
19642
19826
|
overflowX,
|
|
19643
19827
|
overflowY
|
|
19644
|
-
} = getComputedStyle
|
|
19828
|
+
} = getComputedStyle(element);
|
|
19645
19829
|
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
|
|
19646
19830
|
}
|
|
19647
19831
|
function isTableElement(element) {
|
|
@@ -19649,7 +19833,7 @@ function isTableElement(element) {
|
|
|
19649
19833
|
}
|
|
19650
19834
|
function isContainingBlock(element) {
|
|
19651
19835
|
const isFirefox = /firefox/i.test(getUAString());
|
|
19652
|
-
const css = getComputedStyle
|
|
19836
|
+
const css = getComputedStyle(element);
|
|
19653
19837
|
return css.transform !== "none" || css.perspective !== "none" || css.contain === "paint" || ["transform", "perspective"].includes(css.willChange) || isFirefox && css.willChange === "filter" || isFirefox && (css.filter ? css.filter !== "none" : false);
|
|
19654
19838
|
}
|
|
19655
19839
|
function isLayoutViewport() {
|
|
@@ -19715,7 +19899,11 @@ function isScaled(element) {
|
|
|
19715
19899
|
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
19716
19900
|
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
19717
19901
|
const documentElement = getDocumentElement(offsetParent);
|
|
19718
|
-
const rect = getBoundingClientRect(
|
|
19902
|
+
const rect = getBoundingClientRect(
|
|
19903
|
+
element,
|
|
19904
|
+
isOffsetParentAnElement && isScaled(offsetParent),
|
|
19905
|
+
strategy === "fixed"
|
|
19906
|
+
);
|
|
19719
19907
|
let scroll = {
|
|
19720
19908
|
scrollLeft: 0,
|
|
19721
19909
|
scrollTop: 0
|
|
@@ -19764,7 +19952,8 @@ function getContainingBlock(element) {
|
|
|
19764
19952
|
if (isContainingBlock(currentNode)) {
|
|
19765
19953
|
return currentNode;
|
|
19766
19954
|
} else {
|
|
19767
|
-
|
|
19955
|
+
const parent = currentNode.parentNode;
|
|
19956
|
+
currentNode = isShadowRoot(parent) ? parent.host : parent;
|
|
19768
19957
|
}
|
|
19769
19958
|
}
|
|
19770
19959
|
return null;
|
|
@@ -19861,7 +20050,7 @@ function getDocumentRect(element) {
|
|
|
19861
20050
|
const height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
19862
20051
|
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
19863
20052
|
const y = -scroll.scrollTop;
|
|
19864
|
-
if (getComputedStyle
|
|
20053
|
+
if (getComputedStyle(body || html).direction === "rtl") {
|
|
19865
20054
|
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
19866
20055
|
}
|
|
19867
20056
|
return {
|
|
@@ -19934,7 +20123,7 @@ function getClientRectFromClippingAncestor(element, clippingParent, strategy) {
|
|
|
19934
20123
|
}
|
|
19935
20124
|
function getClippingAncestors(element) {
|
|
19936
20125
|
const clippingAncestors = getOverflowAncestors(element);
|
|
19937
|
-
const canEscapeClipping = ["absolute", "fixed"].includes(getComputedStyle
|
|
20126
|
+
const canEscapeClipping = ["absolute", "fixed"].includes(getComputedStyle(element).position);
|
|
19938
20127
|
const clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
19939
20128
|
if (!isElement(clipperElement)) {
|
|
19940
20129
|
return [];
|
|
@@ -19989,7 +20178,7 @@ const platform = {
|
|
|
19989
20178
|
};
|
|
19990
20179
|
},
|
|
19991
20180
|
getClientRects: (element) => Array.from(element.getClientRects()),
|
|
19992
|
-
isRTL: (element) => getComputedStyle
|
|
20181
|
+
isRTL: (element) => getComputedStyle(element).direction === "rtl"
|
|
19993
20182
|
};
|
|
19994
20183
|
function autoUpdate(reference, floating, update2, options) {
|
|
19995
20184
|
if (options === void 0) {
|
|
@@ -20210,7 +20399,7 @@ const Popover$1 = React$1.forwardRef((p, ref) => {
|
|
|
20210
20399
|
arrowElement.style.setProperty("--arrow-icon-rotate", arrowRotate);
|
|
20211
20400
|
});
|
|
20212
20401
|
}
|
|
20213
|
-
useIsomorphicLayoutEffect$
|
|
20402
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
20214
20403
|
update2();
|
|
20215
20404
|
});
|
|
20216
20405
|
React$1.useEffect(() => {
|
|
@@ -20238,10 +20427,10 @@ const Popover$1 = React$1.forwardRef((p, ref) => {
|
|
|
20238
20427
|
if (!props.trigger)
|
|
20239
20428
|
return;
|
|
20240
20429
|
setVisible(false);
|
|
20241
|
-
}, () => {
|
|
20430
|
+
}, [() => {
|
|
20242
20431
|
var _a;
|
|
20243
20432
|
return (_a = targetRef.current) === null || _a === void 0 ? void 0 : _a.element;
|
|
20244
|
-
});
|
|
20433
|
+
}, floatingRef], ["click", "touchmove"]);
|
|
20245
20434
|
const shouldRender = useShouldRender(visible, false, props.destroyOnHide);
|
|
20246
20435
|
return React__default.default.createElement(React__default.default.Fragment, null, React__default.default.createElement(Wrapper, {
|
|
20247
20436
|
ref: targetRef
|
|
@@ -21119,14 +21308,14 @@ const ImageUploader = (p) => {
|
|
|
21119
21308
|
const props = mergeProps(defaultProps$y, p);
|
|
21120
21309
|
const [value, setValue2] = usePropsValue(props);
|
|
21121
21310
|
const [tasks, setTasks] = React$1.useState([]);
|
|
21122
|
-
useIsomorphicLayoutEffect$
|
|
21311
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
21123
21312
|
setTasks((prev) => prev.filter((task) => {
|
|
21124
21313
|
if (task.url === void 0)
|
|
21125
21314
|
return true;
|
|
21126
21315
|
return !value.some((fileItem) => fileItem.url === task.url);
|
|
21127
21316
|
}));
|
|
21128
21317
|
}, [value]);
|
|
21129
|
-
useIsomorphicLayoutEffect$
|
|
21318
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
21130
21319
|
var _a;
|
|
21131
21320
|
(_a = props.onUploadQueueChange) === null || _a === void 0 ? void 0 : _a.call(props, tasks.map((item) => ({
|
|
21132
21321
|
id: item.id,
|
|
@@ -21608,7 +21797,7 @@ const Input = React$1.forwardRef((p, ref) => {
|
|
|
21608
21797
|
}
|
|
21609
21798
|
(_a = props.onKeyDown) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
21610
21799
|
};
|
|
21611
|
-
useIsomorphicLayoutEffect$
|
|
21800
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
21612
21801
|
var _a;
|
|
21613
21802
|
if (!props.enterKeyHint)
|
|
21614
21803
|
return;
|
|
@@ -21971,7 +22160,6 @@ const index$7 = attachPropertiesToComponent(Modal, {
|
|
|
21971
22160
|
const navBar = "";
|
|
21972
22161
|
const classPrefix$y = `adm-nav-bar`;
|
|
21973
22162
|
const defaultProps$s = {
|
|
21974
|
-
back: "",
|
|
21975
22163
|
backArrow: true
|
|
21976
22164
|
};
|
|
21977
22165
|
const NavBar = (p) => {
|
|
@@ -22648,17 +22836,21 @@ const Group = (p) => {
|
|
|
22648
22836
|
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, v);
|
|
22649
22837
|
}
|
|
22650
22838
|
});
|
|
22651
|
-
return React__default.default.createElement(
|
|
22652
|
-
|
|
22653
|
-
|
|
22654
|
-
|
|
22655
|
-
|
|
22656
|
-
|
|
22657
|
-
|
|
22658
|
-
|
|
22659
|
-
|
|
22660
|
-
|
|
22661
|
-
|
|
22839
|
+
return React__default.default.createElement(
|
|
22840
|
+
RadioGroupContext.Provider,
|
|
22841
|
+
{
|
|
22842
|
+
value: {
|
|
22843
|
+
value: value === null ? [] : [value],
|
|
22844
|
+
check: (v) => {
|
|
22845
|
+
setValue2(v);
|
|
22846
|
+
},
|
|
22847
|
+
uncheck: () => {
|
|
22848
|
+
},
|
|
22849
|
+
disabled: props.disabled
|
|
22850
|
+
}
|
|
22851
|
+
},
|
|
22852
|
+
props.children
|
|
22853
|
+
);
|
|
22662
22854
|
};
|
|
22663
22855
|
const classPrefix$q = `adm-radio`;
|
|
22664
22856
|
const defaultProps$k = {
|
|
@@ -23366,178 +23558,6 @@ const Thumb = (props) => {
|
|
|
23366
23558
|
mode: "dark"
|
|
23367
23559
|
}, thumbElement) : thumbElement);
|
|
23368
23560
|
};
|
|
23369
|
-
const classPrefix$f = `adm-slider`;
|
|
23370
|
-
const defaultProps$e = {
|
|
23371
|
-
min: 0,
|
|
23372
|
-
max: 100,
|
|
23373
|
-
step: 1,
|
|
23374
|
-
ticks: false,
|
|
23375
|
-
range: false,
|
|
23376
|
-
disabled: false,
|
|
23377
|
-
popover: false,
|
|
23378
|
-
residentPopover: false
|
|
23379
|
-
};
|
|
23380
|
-
const Slider = (p) => {
|
|
23381
|
-
var _a;
|
|
23382
|
-
const props = mergeProps(defaultProps$e, p);
|
|
23383
|
-
const {
|
|
23384
|
-
min: min2,
|
|
23385
|
-
max: max2,
|
|
23386
|
-
disabled,
|
|
23387
|
-
marks,
|
|
23388
|
-
ticks,
|
|
23389
|
-
step,
|
|
23390
|
-
icon
|
|
23391
|
-
} = props;
|
|
23392
|
-
function sortValue(val) {
|
|
23393
|
-
return val.sort((a, b) => a - b);
|
|
23394
|
-
}
|
|
23395
|
-
function convertValue(value) {
|
|
23396
|
-
return props.range ? value : [props.min, value];
|
|
23397
|
-
}
|
|
23398
|
-
function reverseValue(value) {
|
|
23399
|
-
return props.range ? value : value[1];
|
|
23400
|
-
}
|
|
23401
|
-
function onAfterChange(value) {
|
|
23402
|
-
var _a2;
|
|
23403
|
-
(_a2 = props.onAfterChange) === null || _a2 === void 0 ? void 0 : _a2.call(props, reverseValue(value));
|
|
23404
|
-
}
|
|
23405
|
-
let propsValue = props.value;
|
|
23406
|
-
if (props.range && typeof props.value === "number") {
|
|
23407
|
-
devWarning("Slider", "When `range` prop is enabled, the `value` prop should be an array, like: [0, 0]");
|
|
23408
|
-
propsValue = [0, props.value];
|
|
23409
|
-
}
|
|
23410
|
-
const [rawValue, setRawValue] = usePropsValue({
|
|
23411
|
-
value: propsValue,
|
|
23412
|
-
defaultValue: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : props.range ? [min2, min2] : min2,
|
|
23413
|
-
onChange: props.onChange
|
|
23414
|
-
});
|
|
23415
|
-
const sliderValue = sortValue(convertValue(rawValue));
|
|
23416
|
-
function setSliderValue(value) {
|
|
23417
|
-
const next = sortValue(value);
|
|
23418
|
-
const current = sliderValue;
|
|
23419
|
-
if (next[0] === current[0] && next[1] === current[1])
|
|
23420
|
-
return;
|
|
23421
|
-
setRawValue(reverseValue(next));
|
|
23422
|
-
}
|
|
23423
|
-
const trackRef = React$1.useRef(null);
|
|
23424
|
-
const fillSize = `${100 * (sliderValue[1] - sliderValue[0]) / (max2 - min2)}%`;
|
|
23425
|
-
const fillStart = `${100 * (sliderValue[0] - min2) / (max2 - min2)}%`;
|
|
23426
|
-
const pointList = React$1.useMemo(() => {
|
|
23427
|
-
if (marks) {
|
|
23428
|
-
return Object.keys(marks).map(parseFloat).sort((a, b) => a - b);
|
|
23429
|
-
} else {
|
|
23430
|
-
const points = [];
|
|
23431
|
-
for (let i = min2; i <= max2; i += step) {
|
|
23432
|
-
points.push(i);
|
|
23433
|
-
}
|
|
23434
|
-
return points;
|
|
23435
|
-
}
|
|
23436
|
-
}, [marks, ticks, step, min2, max2]);
|
|
23437
|
-
function getValueByPosition(position) {
|
|
23438
|
-
const newPosition = position < min2 ? min2 : position > max2 ? max2 : position;
|
|
23439
|
-
let value = min2;
|
|
23440
|
-
if (pointList.length) {
|
|
23441
|
-
value = nearest(pointList, newPosition);
|
|
23442
|
-
} else {
|
|
23443
|
-
const lengthPerStep = 100 / ((max2 - min2) / step);
|
|
23444
|
-
const steps2 = Math.round(newPosition / lengthPerStep);
|
|
23445
|
-
value = steps2 * lengthPerStep * (max2 - min2) * 0.01 + min2;
|
|
23446
|
-
}
|
|
23447
|
-
return value;
|
|
23448
|
-
}
|
|
23449
|
-
const dragLockRef = React$1.useRef(0);
|
|
23450
|
-
const onTrackClick = (event) => {
|
|
23451
|
-
if (dragLockRef.current > 0)
|
|
23452
|
-
return;
|
|
23453
|
-
event.stopPropagation();
|
|
23454
|
-
if (disabled)
|
|
23455
|
-
return;
|
|
23456
|
-
const track = trackRef.current;
|
|
23457
|
-
if (!track)
|
|
23458
|
-
return;
|
|
23459
|
-
const sliderOffsetLeft = track.getBoundingClientRect().left;
|
|
23460
|
-
const position = (event.clientX - sliderOffsetLeft) / Math.ceil(track.offsetWidth) * (max2 - min2) + min2;
|
|
23461
|
-
const targetValue = getValueByPosition(position);
|
|
23462
|
-
let nextSliderValue;
|
|
23463
|
-
if (props.range) {
|
|
23464
|
-
if (Math.abs(targetValue - sliderValue[0]) > Math.abs(targetValue - sliderValue[1])) {
|
|
23465
|
-
nextSliderValue = [sliderValue[0], targetValue];
|
|
23466
|
-
} else {
|
|
23467
|
-
nextSliderValue = [targetValue, sliderValue[1]];
|
|
23468
|
-
}
|
|
23469
|
-
} else {
|
|
23470
|
-
nextSliderValue = [props.min, targetValue];
|
|
23471
|
-
}
|
|
23472
|
-
setSliderValue(nextSliderValue);
|
|
23473
|
-
onAfterChange(nextSliderValue);
|
|
23474
|
-
};
|
|
23475
|
-
const valueBeforeDragRef = React$1.useRef();
|
|
23476
|
-
const renderThumb = (index2) => {
|
|
23477
|
-
return React__default.default.createElement(Thumb, {
|
|
23478
|
-
key: index2,
|
|
23479
|
-
value: sliderValue[index2],
|
|
23480
|
-
min: min2,
|
|
23481
|
-
max: max2,
|
|
23482
|
-
disabled,
|
|
23483
|
-
trackRef,
|
|
23484
|
-
icon,
|
|
23485
|
-
popover: props.popover,
|
|
23486
|
-
residentPopover: props.residentPopover,
|
|
23487
|
-
onDrag: (position, first, last) => {
|
|
23488
|
-
if (first) {
|
|
23489
|
-
dragLockRef.current += 1;
|
|
23490
|
-
valueBeforeDragRef.current = sliderValue;
|
|
23491
|
-
}
|
|
23492
|
-
const val = getValueByPosition(position);
|
|
23493
|
-
const valueBeforeDrag = valueBeforeDragRef.current;
|
|
23494
|
-
if (!valueBeforeDrag)
|
|
23495
|
-
return;
|
|
23496
|
-
const next = [...valueBeforeDrag];
|
|
23497
|
-
next[index2] = val;
|
|
23498
|
-
setSliderValue(next);
|
|
23499
|
-
if (last) {
|
|
23500
|
-
onAfterChange(next);
|
|
23501
|
-
window.setTimeout(() => {
|
|
23502
|
-
dragLockRef.current -= 1;
|
|
23503
|
-
}, 100);
|
|
23504
|
-
}
|
|
23505
|
-
},
|
|
23506
|
-
"aria-label": props["aria-label"]
|
|
23507
|
-
});
|
|
23508
|
-
};
|
|
23509
|
-
return withNativeProps(props, React__default.default.createElement("div", {
|
|
23510
|
-
className: classNames(classPrefix$f, {
|
|
23511
|
-
[`${classPrefix$f}-disabled`]: disabled
|
|
23512
|
-
})
|
|
23513
|
-
}, React__default.default.createElement("div", {
|
|
23514
|
-
className: `${classPrefix$f}-track-container`,
|
|
23515
|
-
onClick: onTrackClick
|
|
23516
|
-
}, React__default.default.createElement("div", {
|
|
23517
|
-
className: `${classPrefix$f}-track`,
|
|
23518
|
-
onClick: onTrackClick,
|
|
23519
|
-
ref: trackRef
|
|
23520
|
-
}, React__default.default.createElement("div", {
|
|
23521
|
-
className: `${classPrefix$f}-fill`,
|
|
23522
|
-
style: {
|
|
23523
|
-
width: fillSize,
|
|
23524
|
-
left: fillStart
|
|
23525
|
-
}
|
|
23526
|
-
}), props.ticks && React__default.default.createElement(Ticks, {
|
|
23527
|
-
points: pointList,
|
|
23528
|
-
min: min2,
|
|
23529
|
-
max: max2,
|
|
23530
|
-
lowerBound: sliderValue[0],
|
|
23531
|
-
upperBound: sliderValue[1]
|
|
23532
|
-
}), props.range && renderThumb(0), renderThumb(1))), marks && React__default.default.createElement(Marks, {
|
|
23533
|
-
min: min2,
|
|
23534
|
-
max: max2,
|
|
23535
|
-
marks,
|
|
23536
|
-
lowerBound: sliderValue[0],
|
|
23537
|
-
upperBound: sliderValue[1]
|
|
23538
|
-
})));
|
|
23539
|
-
};
|
|
23540
|
-
const stepper = "";
|
|
23541
23561
|
var DP = 20, RM = 1, MAX_DP = 1e6, MAX_POWER = 1e6, NE = -7, PE = 21, STRICT = false, NAME = "[big.js] ", INVALID = NAME + "Invalid ", INVALID_DP = INVALID + "decimal places", INVALID_RM = INVALID + "rounding mode", DIV_BY_ZERO = NAME + "Division by zero", P = {}, UNDEFINED = void 0, NUMERIC = /^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;
|
|
23542
23562
|
function _Big_() {
|
|
23543
23563
|
function Big2(n) {
|
|
@@ -24046,6 +24066,182 @@ P.valueOf = function() {
|
|
|
24046
24066
|
return stringify(x, x.e <= Big2.NE || x.e >= Big2.PE, true);
|
|
24047
24067
|
};
|
|
24048
24068
|
var Big = _Big_();
|
|
24069
|
+
const classPrefix$f = `adm-slider`;
|
|
24070
|
+
const defaultProps$e = {
|
|
24071
|
+
min: 0,
|
|
24072
|
+
max: 100,
|
|
24073
|
+
step: 1,
|
|
24074
|
+
ticks: false,
|
|
24075
|
+
range: false,
|
|
24076
|
+
disabled: false,
|
|
24077
|
+
popover: false,
|
|
24078
|
+
residentPopover: false
|
|
24079
|
+
};
|
|
24080
|
+
const Slider = (p) => {
|
|
24081
|
+
var _a;
|
|
24082
|
+
const props = mergeProps(defaultProps$e, p);
|
|
24083
|
+
const {
|
|
24084
|
+
min: min2,
|
|
24085
|
+
max: max2,
|
|
24086
|
+
disabled,
|
|
24087
|
+
marks,
|
|
24088
|
+
ticks,
|
|
24089
|
+
step,
|
|
24090
|
+
icon
|
|
24091
|
+
} = props;
|
|
24092
|
+
function sortValue(val) {
|
|
24093
|
+
return val.sort((a, b) => a - b);
|
|
24094
|
+
}
|
|
24095
|
+
function convertValue(value) {
|
|
24096
|
+
return props.range ? value : [props.min, value];
|
|
24097
|
+
}
|
|
24098
|
+
function reverseValue(value) {
|
|
24099
|
+
const mergedDecimalLen = Math.max(getDecimalLen(step), getDecimalLen(value[0]), getDecimalLen(value[1]));
|
|
24100
|
+
return props.range ? value.map((v) => Big(Big(v).toFixed(mergedDecimalLen)).toNumber()) : Big(Big(value[1]).toFixed(mergedDecimalLen)).toNumber();
|
|
24101
|
+
}
|
|
24102
|
+
function getDecimalLen(n) {
|
|
24103
|
+
return (`${n}`.split(".")[1] || "").length;
|
|
24104
|
+
}
|
|
24105
|
+
function onAfterChange(value) {
|
|
24106
|
+
var _a2;
|
|
24107
|
+
(_a2 = props.onAfterChange) === null || _a2 === void 0 ? void 0 : _a2.call(props, reverseValue(value));
|
|
24108
|
+
}
|
|
24109
|
+
let propsValue = props.value;
|
|
24110
|
+
if (props.range && typeof props.value === "number") {
|
|
24111
|
+
devWarning("Slider", "When `range` prop is enabled, the `value` prop should be an array, like: [0, 0]");
|
|
24112
|
+
propsValue = [0, props.value];
|
|
24113
|
+
}
|
|
24114
|
+
const [rawValue, setRawValue] = usePropsValue({
|
|
24115
|
+
value: propsValue,
|
|
24116
|
+
defaultValue: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : props.range ? [min2, min2] : min2,
|
|
24117
|
+
onChange: props.onChange
|
|
24118
|
+
});
|
|
24119
|
+
const sliderValue = sortValue(convertValue(rawValue));
|
|
24120
|
+
function setSliderValue(value) {
|
|
24121
|
+
const next = sortValue(value);
|
|
24122
|
+
const current = sliderValue;
|
|
24123
|
+
if (next[0] === current[0] && next[1] === current[1])
|
|
24124
|
+
return;
|
|
24125
|
+
setRawValue(reverseValue(next));
|
|
24126
|
+
}
|
|
24127
|
+
const trackRef = React$1.useRef(null);
|
|
24128
|
+
const fillSize = `${100 * (sliderValue[1] - sliderValue[0]) / (max2 - min2)}%`;
|
|
24129
|
+
const fillStart = `${100 * (sliderValue[0] - min2) / (max2 - min2)}%`;
|
|
24130
|
+
const pointList = React$1.useMemo(() => {
|
|
24131
|
+
if (marks) {
|
|
24132
|
+
return Object.keys(marks).map(parseFloat).sort((a, b) => a - b);
|
|
24133
|
+
} else {
|
|
24134
|
+
const points = [];
|
|
24135
|
+
for (let i = Big(min2); i.lt(max2); i = i.plus(step)) {
|
|
24136
|
+
points.push(i.toNumber());
|
|
24137
|
+
}
|
|
24138
|
+
return points;
|
|
24139
|
+
}
|
|
24140
|
+
}, [marks, ticks, step, min2, max2]);
|
|
24141
|
+
function getValueByPosition(position) {
|
|
24142
|
+
const newPosition = position < min2 ? min2 : position > max2 ? max2 : position;
|
|
24143
|
+
let value = min2;
|
|
24144
|
+
if (pointList.length) {
|
|
24145
|
+
value = nearest(pointList, newPosition);
|
|
24146
|
+
} else {
|
|
24147
|
+
const lengthPerStep = 100 / ((max2 - min2) / step);
|
|
24148
|
+
const steps2 = Math.round(newPosition / lengthPerStep);
|
|
24149
|
+
value = steps2 * lengthPerStep * (max2 - min2) * 0.01 + min2;
|
|
24150
|
+
}
|
|
24151
|
+
return value;
|
|
24152
|
+
}
|
|
24153
|
+
const dragLockRef = React$1.useRef(0);
|
|
24154
|
+
const onTrackClick = (event) => {
|
|
24155
|
+
if (dragLockRef.current > 0)
|
|
24156
|
+
return;
|
|
24157
|
+
event.stopPropagation();
|
|
24158
|
+
if (disabled)
|
|
24159
|
+
return;
|
|
24160
|
+
const track = trackRef.current;
|
|
24161
|
+
if (!track)
|
|
24162
|
+
return;
|
|
24163
|
+
const sliderOffsetLeft = track.getBoundingClientRect().left;
|
|
24164
|
+
const position = (event.clientX - sliderOffsetLeft) / Math.ceil(track.offsetWidth) * (max2 - min2) + min2;
|
|
24165
|
+
const targetValue = getValueByPosition(position);
|
|
24166
|
+
let nextSliderValue;
|
|
24167
|
+
if (props.range) {
|
|
24168
|
+
if (Math.abs(targetValue - sliderValue[0]) > Math.abs(targetValue - sliderValue[1])) {
|
|
24169
|
+
nextSliderValue = [sliderValue[0], targetValue];
|
|
24170
|
+
} else {
|
|
24171
|
+
nextSliderValue = [targetValue, sliderValue[1]];
|
|
24172
|
+
}
|
|
24173
|
+
} else {
|
|
24174
|
+
nextSliderValue = [props.min, targetValue];
|
|
24175
|
+
}
|
|
24176
|
+
setSliderValue(nextSliderValue);
|
|
24177
|
+
onAfterChange(nextSliderValue);
|
|
24178
|
+
};
|
|
24179
|
+
const valueBeforeDragRef = React$1.useRef();
|
|
24180
|
+
const renderThumb = (index2) => {
|
|
24181
|
+
return React__default.default.createElement(Thumb, {
|
|
24182
|
+
key: index2,
|
|
24183
|
+
value: sliderValue[index2],
|
|
24184
|
+
min: min2,
|
|
24185
|
+
max: max2,
|
|
24186
|
+
disabled,
|
|
24187
|
+
trackRef,
|
|
24188
|
+
icon,
|
|
24189
|
+
popover: props.popover,
|
|
24190
|
+
residentPopover: props.residentPopover,
|
|
24191
|
+
onDrag: (position, first, last) => {
|
|
24192
|
+
if (first) {
|
|
24193
|
+
dragLockRef.current += 1;
|
|
24194
|
+
valueBeforeDragRef.current = sliderValue;
|
|
24195
|
+
}
|
|
24196
|
+
const val = getValueByPosition(position);
|
|
24197
|
+
const valueBeforeDrag = valueBeforeDragRef.current;
|
|
24198
|
+
if (!valueBeforeDrag)
|
|
24199
|
+
return;
|
|
24200
|
+
const next = [...valueBeforeDrag];
|
|
24201
|
+
next[index2] = val;
|
|
24202
|
+
setSliderValue(next);
|
|
24203
|
+
if (last) {
|
|
24204
|
+
onAfterChange(next);
|
|
24205
|
+
window.setTimeout(() => {
|
|
24206
|
+
dragLockRef.current -= 1;
|
|
24207
|
+
}, 100);
|
|
24208
|
+
}
|
|
24209
|
+
},
|
|
24210
|
+
"aria-label": props["aria-label"]
|
|
24211
|
+
});
|
|
24212
|
+
};
|
|
24213
|
+
return withNativeProps(props, React__default.default.createElement("div", {
|
|
24214
|
+
className: classNames(classPrefix$f, {
|
|
24215
|
+
[`${classPrefix$f}-disabled`]: disabled
|
|
24216
|
+
})
|
|
24217
|
+
}, React__default.default.createElement("div", {
|
|
24218
|
+
className: `${classPrefix$f}-track-container`,
|
|
24219
|
+
onClick: onTrackClick
|
|
24220
|
+
}, React__default.default.createElement("div", {
|
|
24221
|
+
className: `${classPrefix$f}-track`,
|
|
24222
|
+
onClick: onTrackClick,
|
|
24223
|
+
ref: trackRef
|
|
24224
|
+
}, React__default.default.createElement("div", {
|
|
24225
|
+
className: `${classPrefix$f}-fill`,
|
|
24226
|
+
style: {
|
|
24227
|
+
width: fillSize,
|
|
24228
|
+
left: fillStart
|
|
24229
|
+
}
|
|
24230
|
+
}), props.ticks && React__default.default.createElement(Ticks, {
|
|
24231
|
+
points: pointList,
|
|
24232
|
+
min: min2,
|
|
24233
|
+
max: max2,
|
|
24234
|
+
lowerBound: sliderValue[0],
|
|
24235
|
+
upperBound: sliderValue[1]
|
|
24236
|
+
}), props.range && renderThumb(0), renderThumb(1))), marks && React__default.default.createElement(Marks, {
|
|
24237
|
+
min: min2,
|
|
24238
|
+
max: max2,
|
|
24239
|
+
marks,
|
|
24240
|
+
lowerBound: sliderValue[0],
|
|
24241
|
+
upperBound: sliderValue[1]
|
|
24242
|
+
})));
|
|
24243
|
+
};
|
|
24244
|
+
const stepper = "";
|
|
24049
24245
|
const classPrefix$e = `adm-stepper`;
|
|
24050
24246
|
const defaultProps$d = {
|
|
24051
24247
|
defaultValue: 0,
|
|
@@ -24161,7 +24357,8 @@ const Stepper = (p) => {
|
|
|
24161
24357
|
role: "spinbutton",
|
|
24162
24358
|
"aria-valuenow": Number(inputValue),
|
|
24163
24359
|
"aria-valuemax": max2,
|
|
24164
|
-
"aria-valuemin": min2
|
|
24360
|
+
"aria-valuemin": min2,
|
|
24361
|
+
inputMode: "decimal"
|
|
24165
24362
|
})), React__default.default.createElement(Button, {
|
|
24166
24363
|
className: `${classPrefix$e}-plus`,
|
|
24167
24364
|
onClick: handlePlus,
|
|
@@ -24476,8 +24673,10 @@ const defaultProps$a = {
|
|
|
24476
24673
|
stuckAtBoundary: true,
|
|
24477
24674
|
rubberband: true
|
|
24478
24675
|
};
|
|
24676
|
+
let currentUid;
|
|
24479
24677
|
const Swiper = React$1.forwardRef(staged_1((p, ref) => {
|
|
24480
24678
|
const props = mergeProps(defaultProps$a, p);
|
|
24679
|
+
const [uid] = React$1.useState({});
|
|
24481
24680
|
const isVertical = props.direction === "vertical";
|
|
24482
24681
|
const slideRatio = props.slideSize / 100;
|
|
24483
24682
|
const offsetRatio = props.trackOffset / 100;
|
|
@@ -24567,6 +24766,12 @@ const Swiper = React$1.forwardRef(staged_1((p, ref) => {
|
|
|
24567
24766
|
dragCancelRef.current = state.cancel;
|
|
24568
24767
|
if (!state.intentional)
|
|
24569
24768
|
return;
|
|
24769
|
+
if (state.first && !currentUid) {
|
|
24770
|
+
currentUid = uid;
|
|
24771
|
+
}
|
|
24772
|
+
if (currentUid !== uid)
|
|
24773
|
+
return;
|
|
24774
|
+
currentUid = state.last ? void 0 : uid;
|
|
24570
24775
|
const slidePixels = getSlidePixels();
|
|
24571
24776
|
if (!slidePixels)
|
|
24572
24777
|
return;
|
|
@@ -24637,7 +24842,7 @@ const Swiper = React$1.forwardRef(staged_1((p, ref) => {
|
|
|
24637
24842
|
swipeNext,
|
|
24638
24843
|
swipePrev
|
|
24639
24844
|
}));
|
|
24640
|
-
useIsomorphicLayoutEffect$
|
|
24845
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
24641
24846
|
const maxIndex = validChildren.length - 1;
|
|
24642
24847
|
if (current > maxIndex) {
|
|
24643
24848
|
swipeTo(maxIndex, true);
|
|
@@ -24960,7 +25165,7 @@ const TextArea = React$1.forwardRef((p, ref) => {
|
|
|
24960
25165
|
return nativeTextAreaRef.current;
|
|
24961
25166
|
}
|
|
24962
25167
|
}));
|
|
24963
|
-
useIsomorphicLayoutEffect$
|
|
25168
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
24964
25169
|
if (!autoSize)
|
|
24965
25170
|
return;
|
|
24966
25171
|
const textArea2 = nativeTextAreaRef.current;
|
|
@@ -25520,7 +25725,7 @@ const VirtualInput = React$1.forwardRef((p, ref) => {
|
|
|
25520
25725
|
return;
|
|
25521
25726
|
content.scrollLeft = content.clientWidth;
|
|
25522
25727
|
}
|
|
25523
|
-
useIsomorphicLayoutEffect$
|
|
25728
|
+
useIsomorphicLayoutEffect$2(() => {
|
|
25524
25729
|
scrollToEnd();
|
|
25525
25730
|
}, [value]);
|
|
25526
25731
|
React$1.useEffect(() => {
|