@nutui/nutui-react-taro 2.3.11 → 2.4.0
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/CHANGELOG.md +48 -0
- package/dist/esm/ActionSheet.js +1 -13
- package/dist/esm/Address.js +1 -21
- package/dist/esm/Animate.js +1 -4
- package/dist/esm/AnimatingNumbers/style/style.css +1 -1
- package/dist/esm/AnimatingNumbers.js +8 -22
- package/dist/esm/Audio.js +1 -15
- package/dist/esm/Avatar.js +1 -10
- package/dist/esm/AvatarCropper.js +1 -10
- package/dist/esm/AvatarGroup.js +1 -4
- package/dist/esm/BackTop.js +1 -6
- package/dist/esm/Badge/style/style.css +1 -1
- package/dist/esm/Badge.js +1 -4
- package/dist/esm/Barrage.js +1 -7
- package/dist/esm/Button.js +1 -6
- package/dist/esm/Calendar.js +1 -20
- package/dist/esm/CalendarCard.js +1 -8
- package/dist/esm/CalendarItem.js +1 -12
- package/dist/esm/Card.js +1 -7
- package/dist/esm/Cascader.js +1 -18
- package/dist/esm/Cell.js +1 -5
- package/dist/esm/CellGroup.js +1 -4
- package/dist/esm/Checkbox/style/style.css +1 -1
- package/dist/esm/Checkbox.js +1 -7
- package/dist/esm/CheckboxGroup/style/style.css +1 -1
- package/dist/esm/CheckboxGroup.js +1 -7
- package/dist/esm/CircleProgress.js +1 -6
- package/dist/esm/Col.js +1 -5
- package/dist/esm/Collapse/style/style.css +1 -1
- package/dist/esm/Collapse.js +1 -8
- package/dist/esm/CollapseItem/style/style.css +1 -1
- package/dist/esm/CollapseItem.js +1 -5
- package/dist/esm/ConfigProvider.js +4 -6
- package/dist/esm/CountDown.js +1 -7
- package/dist/esm/DatePicker.js +1 -21
- package/dist/esm/Dialog/style/style.css +1 -1
- package/dist/esm/Dialog.js +1 -16
- package/dist/esm/Divider.js +1 -4
- package/dist/esm/Drag.js +1 -4
- package/dist/esm/Elevator.js +1 -6
- package/dist/esm/Ellipsis.js +1 -7
- package/dist/esm/Empty.js +1 -9
- package/dist/esm/FixedNav.js +1 -13
- package/dist/esm/Form.js +7 -18
- package/dist/esm/FormItem.js +1 -6
- package/dist/esm/Grid.js +1 -7
- package/dist/esm/GridItem.js +1 -6
- package/dist/esm/Image.js +1 -7
- package/dist/esm/ImagePreview.js +1 -20
- package/dist/esm/Indicator.js +1 -3
- package/dist/esm/InfiniteLoading.js +1 -8
- package/dist/esm/Input.js +1 -11
- package/dist/esm/InputNumber/style/style.css +1 -1
- package/dist/esm/InputNumber.js +1 -7
- package/dist/esm/Layout.js +1 -2
- package/dist/esm/Loading.js +1 -5
- package/dist/esm/Menu.js +1 -15
- package/dist/esm/MenuItem.js +1 -14
- package/dist/esm/NavBar.js +1 -7
- package/dist/esm/NoticeBar/style/style.css +1 -1
- package/dist/esm/NoticeBar.js +1 -7
- package/dist/esm/Notify.js +1 -9
- package/dist/esm/NumberKeyboard.js +1 -15
- package/dist/esm/Overlay.js +1 -9
- package/dist/esm/Pagination.js +1 -8
- package/dist/esm/Picker.js +1 -19
- package/dist/esm/Popover/style/style.css +1 -1
- package/dist/esm/Popover.js +1 -14
- package/dist/esm/Popup.js +1 -12
- package/dist/esm/Price.js +1 -3
- package/dist/esm/Progress.js +1 -4
- package/dist/esm/PullToRefresh.js +1 -10
- package/dist/esm/Radio.js +1 -7
- package/dist/esm/RadioGroup.js +1 -7
- package/dist/esm/Range.js +1 -10
- package/dist/esm/Rate.js +1 -11
- package/dist/esm/Row.js +1 -5
- package/dist/esm/SafeArea.js +1 -3
- package/dist/esm/SearchBar.js +1 -7
- package/dist/esm/ShortPassword.js +1 -17
- package/dist/esm/SideNavBar.js +1 -14
- package/dist/esm/SideNavBarItem.js +1 -2
- package/dist/esm/Signature.js +1 -4
- package/dist/esm/Skeleton.js +1 -11
- package/dist/esm/Space.js +1 -3
- package/dist/esm/Step.js +1 -6
- package/dist/esm/Steps.js +1 -5
- package/dist/esm/Sticky.js +1 -7
- package/dist/esm/SubSideNavBar.js +1 -3
- package/dist/esm/Swipe/style/style.css +1 -1
- package/dist/esm/Swipe.js +1 -8
- package/dist/esm/Swiper.js +9 -11
- package/dist/esm/SwiperItem.js +1 -2
- package/dist/esm/Switch.js +1 -5
- package/dist/esm/TabPane.js +1 -3
- package/dist/esm/Tabbar/style/style.css +1 -1
- package/dist/esm/Tabbar.js +1 -8
- package/dist/esm/TabbarItem/style/style.css +1 -1
- package/dist/esm/TabbarItem.js +1 -5
- package/dist/esm/Table.js +1 -9
- package/dist/esm/Tabs.js +1 -11
- package/dist/esm/Tag.js +1 -5
- package/dist/esm/TextArea.js +1 -10
- package/dist/esm/TimeDetail.js +1 -4
- package/dist/esm/TimeSelect.js +1 -16
- package/dist/esm/Toast.js +1 -15
- package/dist/esm/Tour/style/style.css +1 -1
- package/dist/esm/Tour.js +1 -16
- package/dist/esm/TrendArrow.js +1 -4
- package/dist/esm/Uploader.js +1 -14
- package/dist/esm/Video.js +1 -4
- package/dist/esm/VirtualList.js +1 -6
- package/dist/esm/WaterMark.js +1 -7
- package/dist/esm/{actionsheet.taro-kKhb0Vwt.js → actionsheet.taro-C5BqWoML.js} +9 -17
- package/dist/esm/{address.taro-zQuxQEce.js → address.taro-CgkCHDYZ.js} +19 -44
- package/dist/esm/{animate.taro-m67VyUHP.js → animate.taro-Dg9jxZEu.js} +6 -14
- package/dist/esm/{audio.taro-dJgj5qIu.js → audio.taro-DXxWGngO.js} +14 -30
- package/dist/esm/avatar.taro-a6CX3kxV.js +86 -0
- package/dist/esm/{avatarcropper.taro-GIZxzMJ_.js → avatarcropper.taro-BFvFmK4t.js} +47 -90
- package/dist/esm/{avatargroup.taro-h6dpv6UX.js → avatargroup.taro-bpT5kPbf.js} +3 -11
- package/dist/esm/{backtop.taro-Cfld7ina.js → backtop.taro-B-zl6AEC.js} +4 -15
- package/dist/esm/{badge.taro-993L861f.js → badge.taro-D7Yn5zJi.js} +8 -16
- package/dist/esm/{barrage.taro-6nbq7wtt.js → barrage.taro-BNOcZsJ1.js} +18 -28
- package/dist/esm/{button.taro-3IIFy1M2.js → button.taro-OKGsDVW7.js} +8 -23
- package/dist/esm/{calendar.taro-iNNHje7V.js → calendar.taro-DbHJEx4G.js} +12 -39
- package/dist/esm/{calendarcard.taro-9s7naGmU.js → calendarcard.taro-BHGCq5zX.js} +10 -14
- package/dist/esm/{calendaritem.taro-o6Z8OOGY.js → calendaritem.taro-B8tN2DYa.js} +11 -36
- package/dist/esm/{card.taro-p4PTy-IU.js → card.taro-uLorQW97.js} +7 -22
- package/dist/esm/{cascader.taro-M2nZWxiB.js → cascader.taro-BMp2mI0W.js} +47 -83
- package/dist/esm/{cell.taro-jD6MoFTj.js → cell.taro-CCnLF6RC.js} +9 -23
- package/dist/esm/{cellgroup.taro-08A3XAze.js → cellgroup.taro-Dz69kT6e.js} +5 -12
- package/dist/esm/{checkbox.taro-xMxWdpyI.js → checkbox.taro-CUpF7Afr.js} +40 -32
- package/dist/esm/{circleprogress.taro-myZgamBw.js → circleprogress.taro-CKSrzt8Q.js} +8 -22
- package/dist/esm/{col.taro-5FMpttLE.js → col.taro-C8DUuJYh.js} +5 -13
- package/dist/esm/{collapse.taro-sZibDygv.js → collapse.taro-BM0BsN30.js} +5 -14
- package/dist/esm/{collapseitem.taro-AaQ_msgd.js → collapseitem.taro-D_m4VEdG.js} +7 -16
- package/dist/esm/configprovider.taro-CyU_tvNJ.js +202 -0
- package/dist/esm/{countdown.taro-XZlfWBrA.js → countdown.taro-D-H9erkV.js} +9 -19
- package/dist/esm/{datepicker.taro-DrXkqJkN.js → datepicker.taro-DqR52Ivo.js} +14 -26
- package/dist/esm/{dialog.taro-dmQGDu3o.js → dialog.taro-Dk0QQMn_.js} +31 -23
- package/dist/esm/{divider.taro-H5fKry4P.js → divider.taro-DRcO_m9e.js} +5 -11
- package/dist/esm/{drag.taro-BwcleRuB.js → drag.taro-CcHIO07Y.js} +10 -18
- package/dist/esm/{elevator.taro-2nbUM3vH.js → elevator.taro-uhrF7ChY.js} +5 -17
- package/dist/esm/{ellipsis.taro-VApVqS_j.js → ellipsis.taro-B_mTyNyk.js} +25 -34
- package/dist/esm/{empty.taro-gwvOr1xf.js → empty.taro-Brkv6B2Z.js} +8 -18
- package/dist/esm/{fixednav.taro-QVBXysDj.js → fixednav.taro-WTBxWxOo.js} +10 -21
- package/dist/esm/formitem.taro-Brz5dj_8.js +330 -0
- package/dist/esm/{get-rect-by-taro-piSHvCGp.js → get-rect-by-taro-CSN0TGnD.js} +3 -2
- package/dist/esm/{grid.taro-3X-_AhXw.js → grid.taro-BA76RrgT.js} +5 -4
- package/dist/esm/{griditem.taro-TJDJVeQy.js → griditem.taro-JLddv9zD.js} +6 -11
- package/dist/esm/{image.taro-FfeikBlO.js → image.taro-BLz2WCva.js} +5 -6
- package/dist/esm/{imagepreview.taro--fVrJUOE.js → imagepreview.taro-Bb1TkBCV.js} +13 -31
- package/dist/esm/{indicator.taro-ZH6MICsS.js → indicator.taro-CpHZtD9p.js} +3 -5
- package/dist/esm/{infiniteloading.taro-BO0_y46K.js → infiniteloading.taro-Ccq4bEzk.js} +14 -21
- package/dist/esm/{input.taro-xCoGdppk.js → input.taro-BVC8gEuk.js} +14 -31
- package/dist/esm/{inputnumber.taro-WPpS0Xl9.js → inputnumber.taro-CQiAPZgS.js} +17 -28
- package/dist/esm/{layout.taro-lnN-wB0Y.js → layout.taro-BE2868d6.js} +1 -1
- package/dist/esm/{loading.taro-aHN6xLIT.js → loading.taro-CRF1z5wQ.js} +5 -8
- package/dist/esm/{menu.taro-ODwHYGFM.js → menu.taro-BAiJPGR7.js} +12 -25
- package/dist/esm/{menuitem.taro-9nyTDLpt.js → menuitem.taro-oLv6ZYC5.js} +15 -36
- package/dist/esm/{navbar.taro-AuKPDCaW.js → navbar.taro-B8u3DOE4.js} +14 -29
- package/dist/esm/{noticebar.taro-bHnEzTvL.js → noticebar.taro-CRPbZenq.js} +40 -51
- package/dist/esm/{notify.taro-mA9KS8qh.js → notify.taro-jP7y9zMU.js} +6 -15
- package/dist/esm/{numberkeyboard.taro-bF6VCXry.js → numberkeyboard.taro-B9rMgy7D.js} +9 -16
- package/dist/esm/nutui-react.es.js +93 -118
- package/dist/esm/{overlay.taro-HsGeVyPh.js → overlay.taro-BaBu-3-F.js} +10 -22
- package/dist/esm/{pagination.taro-C4_Ey5KC.js → pagination.taro-DAK6ddag.js} +7 -19
- package/dist/esm/{picker.taro-csU3SZPF.js → picker.taro-Cmng9GW9.js} +34 -43
- package/dist/esm/{popover.taro-qldQwLPC.js → popover.taro-BsOaXoWp.js} +29 -45
- package/dist/esm/{popup.taro-ObEUml4r.js → popup.taro-Iy_WQZ-m.js} +8 -32
- package/dist/esm/{price.taro-Z1zR8YWV.js → price.taro-UVRHPHRD.js} +5 -16
- package/dist/esm/{progress.taro-pStvlrbA.js → progress.taro-BOHykt7X.js} +8 -14
- package/dist/esm/{pulltorefresh.taro-2jER8Mat.js → pulltorefresh.taro-BJdQj5sL.js} +31 -47
- package/dist/esm/{radio.taro-EKJXMjnX.js → radio.taro-CjJgX9o2.js} +20 -33
- package/dist/esm/{range.taro-mDYY3SXA.js → range.taro-BxMDs5Cy.js} +20 -22
- package/dist/esm/{rate.taro-_5Mjd_EO.js → rate.taro-BABLqt4h.js} +7 -20
- package/dist/esm/{row.taro-IxNlKKQM.js → row.taro-D8chDydP.js} +4 -14
- package/dist/esm/{searchbar.taro-hVzdT6nI.js → searchbar.taro-PfVx6o-6.js} +9 -26
- package/dist/esm/{shortpassword.taro-JBWXzk6I.js → shortpassword.taro-BXsxku33.js} +9 -19
- package/dist/esm/{sidenavbar.taro-8qoGZg5n.js → sidenavbar.taro-eK5vaZPR.js} +7 -13
- package/dist/esm/sidenavbaritem.taro-L7HbsCLn.js +14 -0
- package/dist/esm/{signature.taro-y3qxnKMv.js → signature.taro-KPm_xs66.js} +11 -19
- package/dist/esm/{skeleton.taro--AtiA7MK.js → skeleton.taro-BwIDIf2p.js} +6 -17
- package/dist/esm/{space.taro-q3R_yq79.js → space.taro-CZ999etm.js} +1 -4
- package/dist/esm/{step.taro-_DEZqFGb.js → step.taro-DLr2GzYk.js} +8 -16
- package/dist/esm/steps.taro-C8Yg1Sns.js +28 -0
- package/dist/esm/{sticky.taro-p-evMNR-.js → sticky.taro-DRBk3gkQ.js} +12 -15
- package/dist/esm/{subsidenavbar.taro-Zy52MDDG.js → subsidenavbar.taro-ByxYpgfP.js} +7 -9
- package/dist/esm/{swipe.taro-p2ONOq1o.js → swipe.taro-wm7YWwaj.js} +29 -31
- package/dist/esm/{swiperitem.taro-BC1CE0T-.js → swiperitem.taro-8JXI24f0.js} +3 -1
- package/dist/esm/{switch.taro-L0BAbMeu.js → switch.taro-D1HgJoJz.js} +6 -13
- package/dist/esm/{tabbar.taro-QE0rjSKE.js → tabbar.taro-LAPQoOva.js} +7 -18
- package/dist/esm/tabbaritem.taro-C4AZbQMG.js +58 -0
- package/dist/esm/{table.taro-0zRh2hq6.js → table.taro-ClLmfqz3.js} +14 -24
- package/dist/esm/{tabpane.taro-5k7wWimS.js → tabpane.taro-BAe86j3t.js} +1 -4
- package/dist/esm/{tabs.taro-Yj7vgtSg.js → tabs.taro-DRmZR3Xu.js} +19 -35
- package/dist/esm/{tag.taro-5KC_wObY.js → tag.taro-BsmY5QfN.js} +7 -22
- package/dist/esm/{textarea.taro-9zQLTCwU.js → textarea.taro-BJIFCpKb.js} +11 -20
- package/dist/esm/{timedetail.taro-TF9Wcblh.js → timedetail.taro-x6Zey1xi.js} +11 -21
- package/dist/esm/{timeselect.taro-j8LgSCe5.js → timeselect.taro-BXq4APSJ.js} +20 -33
- package/dist/esm/{toast.taro-xnEQSCDJ.js → toast.taro-BVXqvjNJ.js} +9 -27
- package/dist/esm/{tour.taro-CGEjzzN_.js → tour.taro-wfXuUebD.js} +7 -24
- package/dist/esm/{trendarrow.taro-hsM6-XsQ.js → trendarrow.taro-BHUetKSS.js} +6 -18
- package/dist/esm/tslib.es6-BZ8i9Q6l.js +47 -0
- package/dist/esm/types/src/packages/button/demos/h5/demo1.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/h5/demo2.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/h5/demo3.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/h5/demo4.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/h5/demo5.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/h5/demo6.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/h5/demo7.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/h5/demo8.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/h5/demo9.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/taro/demo1.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/taro/demo10.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/taro/demo2.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/taro/demo3.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/taro/demo4.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/taro/demo5.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/taro/demo6.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/taro/demo7.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/taro/demo8.d.ts +3 -0
- package/dist/esm/types/src/packages/button/demos/taro/demo9.d.ts +3 -0
- package/dist/esm/types/src/packages/cell/demo.d.ts +0 -1
- package/dist/esm/types/src/packages/cell/demo.taro.d.ts +0 -1
- package/dist/esm/types/src/packages/cell/demos/h5/demo1.d.ts +3 -0
- package/dist/esm/types/src/packages/cell/demos/h5/demo2.d.ts +3 -0
- package/dist/esm/types/src/packages/cell/demos/h5/demo3.d.ts +3 -0
- package/dist/esm/types/src/packages/cell/demos/h5/demo4.d.ts +3 -0
- package/dist/esm/types/src/packages/cell/demos/h5/demo5.d.ts +3 -0
- package/dist/esm/types/src/packages/cell/demos/h5/demo6.d.ts +3 -0
- package/dist/esm/types/src/packages/cell/demos/h5/demo7.d.ts +3 -0
- package/dist/esm/types/src/packages/cell/demos/taro/demo1.d.ts +3 -0
- package/dist/esm/types/src/packages/cell/demos/taro/demo2.d.ts +3 -0
- package/dist/esm/types/src/packages/cell/demos/taro/demo3.d.ts +3 -0
- package/dist/esm/types/src/packages/cell/demos/taro/demo4.d.ts +3 -0
- package/dist/esm/types/src/packages/cell/demos/taro/demo5.d.ts +3 -0
- package/dist/esm/types/src/packages/cell/demos/taro/demo6.d.ts +3 -0
- package/dist/esm/types/src/packages/cell/demos/taro/demo7.d.ts +3 -0
- package/dist/esm/types/src/packages/checkboxgroup/checkboxgroup.d.ts +1 -0
- package/dist/esm/types/src/packages/checkboxgroup/checkboxgroup.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/checkboxgroup/context.d.ts +1 -0
- package/dist/esm/types/src/packages/configprovider/configprovider.d.ts +1 -0
- package/dist/esm/types/src/packages/configprovider/configprovider.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/configprovider/index.d.ts +2 -2
- package/dist/esm/types/src/packages/configprovider/index.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
- package/dist/esm/types/src/packages/dialog/config.d.ts +3 -3
- package/dist/esm/types/src/packages/dialog/index.d.ts +1 -1
- package/dist/esm/types/src/packages/inputnumber/inputnumber.taro.d.ts +2 -0
- package/dist/esm/types/src/packages/noticebar/index.d.ts +1 -0
- package/dist/esm/types/src/packages/noticebar/noticebar.d.ts +2 -0
- package/dist/esm/types/src/packages/noticebar/noticebar.taro.d.ts +2 -0
- package/dist/esm/types/src/packages/noticebar/types.d.ts +1 -0
- package/dist/esm/types/src/packages/popover/index.d.ts +2 -1
- package/dist/esm/types/src/packages/popover/index.taro.d.ts +2 -1
- package/dist/esm/types/src/packages/popover/popover.d.ts +2 -12
- package/dist/esm/types/src/packages/popover/popover.taro.d.ts +2 -12
- package/dist/esm/types/src/packages/popover/types.d.ts +14 -0
- package/dist/esm/types/src/packages/table/useTableSticky.d.ts +1 -1
- package/dist/esm/types/src/packages/toast/toast.taro.d.ts +7 -3
- package/dist/esm/types/src/packages/tour/tour.d.ts +1 -1
- package/dist/esm/types/src/packages/tour/tour.taro.d.ts +1 -1
- package/dist/esm/{uploader.taro-bRF02TR9.js → uploader.taro-DdJ-sOK4.js} +49 -101
- package/dist/esm/{use-custom-event-XvsODK8c.js → use-custom-event-DuP4onEm.js} +5 -5
- package/dist/esm/{use-props-value-vKr0R0AX.js → use-props-value-SH9krhkx.js} +2 -2
- package/dist/esm/{video.taro-csvHwS2v.js → video.taro-CEMVfhCS.js} +3 -5
- package/dist/esm/{virtuallist.taro-AeTVtFFa.js → virtuallist.taro-Cl08vfdg.js} +10 -19
- package/dist/esm/{watermark.taro-nvSmcwu-.js → watermark.taro-BxM8VfXb.js} +5 -30
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/tr-TR.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +403 -382
- package/dist/nutui.react.umd.js +404 -383
- package/dist/packages/animatingnumbers/countup.scss +1 -0
- package/dist/packages/badge/badge.scss +2 -0
- package/dist/packages/checkbox/checkbox.scss +19 -0
- package/dist/packages/checkboxgroup/checkboxgroup.scss +25 -0
- package/dist/packages/collapseitem/collapseitem.scss +1 -6
- package/dist/packages/dialog/dialog.scss +8 -1
- package/dist/packages/noticebar/noticebar.scss +19 -1
- package/dist/packages/popover/popover.scss +21 -0
- package/dist/packages/swipe/swipe.scss +2 -0
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/variables-jmapp.scss +17 -0
- package/dist/styles/variables.scss +19 -12
- package/dist/types/packages/badge/badge.taro.d.ts +1 -1
- package/dist/types/packages/button/demos/h5/demo1.d.ts +3 -0
- package/dist/types/packages/button/demos/h5/demo2.d.ts +3 -0
- package/dist/types/packages/button/demos/h5/demo3.d.ts +3 -0
- package/dist/types/packages/button/demos/h5/demo4.d.ts +3 -0
- package/dist/types/packages/button/demos/h5/demo5.d.ts +3 -0
- package/dist/types/packages/button/demos/h5/demo6.d.ts +3 -0
- package/dist/types/packages/button/demos/h5/demo7.d.ts +3 -0
- package/dist/types/packages/button/demos/h5/demo8.d.ts +3 -0
- package/dist/types/packages/button/demos/h5/demo9.d.ts +3 -0
- package/dist/types/packages/button/demos/taro/demo1.d.ts +3 -0
- package/dist/types/packages/button/demos/taro/demo10.d.ts +3 -0
- package/dist/types/packages/button/demos/taro/demo2.d.ts +3 -0
- package/dist/types/packages/button/demos/taro/demo3.d.ts +3 -0
- package/dist/types/packages/button/demos/taro/demo4.d.ts +3 -0
- package/dist/types/packages/button/demos/taro/demo5.d.ts +3 -0
- package/dist/types/packages/button/demos/taro/demo6.d.ts +3 -0
- package/dist/types/packages/button/demos/taro/demo7.d.ts +3 -0
- package/dist/types/packages/button/demos/taro/demo8.d.ts +3 -0
- package/dist/types/packages/button/demos/taro/demo9.d.ts +3 -0
- package/dist/types/packages/cell/demos/h5/demo1.d.ts +3 -0
- package/dist/types/packages/cell/demos/h5/demo2.d.ts +3 -0
- package/dist/types/packages/cell/demos/h5/demo3.d.ts +3 -0
- package/dist/types/packages/cell/demos/h5/demo4.d.ts +3 -0
- package/dist/types/packages/cell/demos/h5/demo5.d.ts +3 -0
- package/dist/types/packages/cell/demos/h5/demo6.d.ts +3 -0
- package/dist/types/packages/cell/demos/h5/demo7.d.ts +3 -0
- package/dist/types/packages/cell/demos/taro/demo1.d.ts +3 -0
- package/dist/types/packages/cell/demos/taro/demo2.d.ts +3 -0
- package/dist/types/packages/cell/demos/taro/demo3.d.ts +3 -0
- package/dist/types/packages/cell/demos/taro/demo4.d.ts +3 -0
- package/dist/types/packages/cell/demos/taro/demo5.d.ts +3 -0
- package/dist/types/packages/cell/demos/taro/demo6.d.ts +3 -0
- package/dist/types/packages/cell/demos/taro/demo7.d.ts +3 -0
- package/dist/types/packages/checkboxgroup/checkboxgroup.d.ts +1 -0
- package/dist/types/packages/checkboxgroup/checkboxgroup.taro.d.ts +1 -0
- package/dist/types/packages/checkboxgroup/context.d.ts +1 -0
- package/dist/types/packages/configprovider/configprovider.d.ts +1 -0
- package/dist/types/packages/configprovider/configprovider.taro.d.ts +1 -0
- package/dist/types/packages/configprovider/index.d.ts +2 -2
- package/dist/types/packages/configprovider/index.taro.d.ts +2 -2
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/dist/types/packages/dialog/config.d.ts +3 -3
- package/dist/types/packages/dialog/index.d.ts +1 -1
- package/dist/types/packages/empty/empty.taro.d.ts +15 -3
- package/dist/types/packages/inputnumber/inputnumber.taro.d.ts +6 -0
- package/dist/types/packages/noticebar/index.d.ts +1 -0
- package/dist/types/packages/noticebar/noticebar.d.ts +2 -0
- package/dist/types/packages/noticebar/noticebar.taro.d.ts +6 -0
- package/dist/types/packages/noticebar/types.d.ts +1 -0
- package/dist/types/packages/popover/index.d.ts +2 -1
- package/dist/types/packages/popover/index.taro.d.ts +2 -1
- package/dist/types/packages/popover/popover.d.ts +2 -12
- package/dist/types/packages/popover/popover.taro.d.ts +2 -12
- package/dist/types/packages/popover/types.d.ts +14 -0
- package/dist/types/packages/table/useTableSticky.d.ts +1 -1
- package/dist/types/packages/toast/toast.taro.d.ts +8 -4
- package/dist/types/packages/tour/tour.d.ts +1 -1
- package/dist/types/packages/tour/tour.taro.d.ts +1 -1
- package/package.json +5 -1
- package/dist/esm/avatar.taro-7ltbzIdY.js +0 -109
- package/dist/esm/configprovider.taro-q5J2gQbi.js +0 -486
- package/dist/esm/formitem.taro-viaUkMmm.js +0 -1435
- package/dist/esm/index-oitVOJp9.js +0 -661
- package/dist/esm/sidenavbaritem.taro-AxJNRAdi.js +0 -13
- package/dist/esm/steps.taro-PH0qWPla.js +0 -32
- package/dist/esm/tabbaritem.taro-t9C07OYX.js +0 -73
- /package/dist/esm/{UserContext-9BL0cq8w.js → UserContext-BlM0373q.js} +0 -0
- /package/dist/esm/{context-6mGEMLsx.js → context-4T-L2x0_.js} +0 -0
- /package/dist/esm/{context-9BL0cq8w.js → context-BlM0373q.js} +0 -0
- /package/dist/esm/{date-nxKOxj5-.js → date-D0pth0qC.js} +0 -0
- /package/dist/esm/{get-scroll-parent-uywvoQMl.js → get-scroll-parent-DB1VRg11.js} +0 -0
- /package/dist/esm/{index-YvHA__3D.js → index-DeNfBlua.js} +0 -0
- /package/dist/esm/{pad-zero-iY-0-oys.js → pad-zero-B2OUQfh7.js} +0 -0
- /package/dist/esm/{px-check-JiWLYN2v.js → px-check-D1Xbd9pj.js} +0 -0
- /package/dist/esm/{raf-UzmDvMUW.js → raf-zwv-SBjP.js} +0 -0
- /package/dist/esm/{safearea.taro-afu_mY7g.js → safearea.taro-BMQHr7tu.js} +0 -0
- /package/dist/esm/{typings-buMpDfSR.js → typings-DV9RBfhj.js} +0 -0
- /package/dist/esm/{use-force-update-0oEVD8Nr.js → use-force-update-CudFjCsy.js} +0 -0
- /package/dist/esm/{use-refs-IdrY0ww3.js → use-refs-BeEmziIR.js} +0 -0
- /package/dist/esm/{use-touch-BUFdkOSA.js → use-touch-OfEaR5qi.js} +0 -0
package/dist/nutui.react.es.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) => {
|
|
4
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
7
1
|
/*!
|
|
8
|
-
* @nutui/nutui-react-taro v2.
|
|
2
|
+
* @nutui/nutui-react-taro v2.4.0 Fri Mar 08 2024 14:36:52 GMT+0800 (China Standard Time)
|
|
9
3
|
* (c) 2023 @jdf2e.
|
|
10
4
|
* Released under the MIT License.
|
|
11
5
|
*/
|
|
@@ -28,34 +22,44 @@ var classnames = { exports: {} };
|
|
|
28
22
|
(function() {
|
|
29
23
|
var hasOwn = {}.hasOwnProperty;
|
|
30
24
|
function classNames2() {
|
|
31
|
-
var classes =
|
|
25
|
+
var classes = "";
|
|
32
26
|
for (var i2 = 0; i2 < arguments.length; i2++) {
|
|
33
27
|
var arg = arguments[i2];
|
|
34
|
-
if (
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
28
|
+
if (arg) {
|
|
29
|
+
classes = appendClass(classes, parseValue(arg));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return classes;
|
|
33
|
+
}
|
|
34
|
+
function parseValue(arg) {
|
|
35
|
+
if (typeof arg === "string" || typeof arg === "number") {
|
|
36
|
+
return arg;
|
|
37
|
+
}
|
|
38
|
+
if (typeof arg !== "object") {
|
|
39
|
+
return "";
|
|
40
|
+
}
|
|
41
|
+
if (Array.isArray(arg)) {
|
|
42
|
+
return classNames2.apply(null, arg);
|
|
43
|
+
}
|
|
44
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
45
|
+
return arg.toString();
|
|
46
|
+
}
|
|
47
|
+
var classes = "";
|
|
48
|
+
for (var key in arg) {
|
|
49
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
50
|
+
classes = appendClass(classes, key);
|
|
56
51
|
}
|
|
57
52
|
}
|
|
58
|
-
return classes
|
|
53
|
+
return classes;
|
|
54
|
+
}
|
|
55
|
+
function appendClass(value, newClass) {
|
|
56
|
+
if (!newClass) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
if (value) {
|
|
60
|
+
return value + " " + newClass;
|
|
61
|
+
}
|
|
62
|
+
return value + newClass;
|
|
59
63
|
}
|
|
60
64
|
if (module.exports) {
|
|
61
65
|
classNames2.default = classNames2;
|
|
@@ -747,8 +751,8 @@ lodash_isequal.exports;
|
|
|
747
751
|
var reIsNative = RegExp(
|
|
748
752
|
"^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
749
753
|
);
|
|
750
|
-
var
|
|
751
|
-
var nativeGetSymbols = Object.getOwnPropertySymbols, nativeIsBuffer =
|
|
754
|
+
var Buffer = moduleExports ? root2.Buffer : void 0, Symbol2 = root2.Symbol, Uint8Array = root2.Uint8Array, propertyIsEnumerable = objectProto2.propertyIsEnumerable, splice = arrayProto.splice, symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
|
|
755
|
+
var nativeGetSymbols = Object.getOwnPropertySymbols, nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0, nativeKeys = overArg(Object.keys, Object);
|
|
752
756
|
var DataView = getNative(root2, "DataView"), Map2 = getNative(root2, "Map"), Promise2 = getNative(root2, "Promise"), Set = getNative(root2, "Set"), WeakMap = getNative(root2, "WeakMap"), nativeCreate = getNative(Object, "create");
|
|
753
757
|
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
|
|
754
758
|
var symbolProto2 = Symbol2 ? Symbol2.prototype : void 0, symbolValueOf = symbolProto2 ? symbolProto2.valueOf : void 0;
|
|
@@ -1080,7 +1084,7 @@ lodash_isequal.exports;
|
|
|
1080
1084
|
object4 = object4.buffer;
|
|
1081
1085
|
other = other.buffer;
|
|
1082
1086
|
case arrayBufferTag:
|
|
1083
|
-
if (object4.byteLength != other.byteLength || !equalFunc(new
|
|
1087
|
+
if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array(object4), new Uint8Array(other))) {
|
|
1084
1088
|
return false;
|
|
1085
1089
|
}
|
|
1086
1090
|
return true;
|
|
@@ -1458,16 +1462,21 @@ function convertThemeVarsToCSSVars(themeVars) {
|
|
|
1458
1462
|
});
|
|
1459
1463
|
return cssVars;
|
|
1460
1464
|
}
|
|
1465
|
+
const useRtl = () => {
|
|
1466
|
+
const { direction } = useConfig$1();
|
|
1467
|
+
return direction === "rtl";
|
|
1468
|
+
};
|
|
1461
1469
|
const ConfigProvider = (props) => {
|
|
1462
1470
|
const { style, className, children, direction, ...config2 } = props;
|
|
1463
1471
|
const mergedConfig = useMemo(
|
|
1464
1472
|
() => {
|
|
1465
1473
|
return {
|
|
1466
1474
|
...getDefaultConfig$1(),
|
|
1467
|
-
...config2
|
|
1475
|
+
...config2,
|
|
1476
|
+
direction
|
|
1468
1477
|
};
|
|
1469
1478
|
},
|
|
1470
|
-
[config2],
|
|
1479
|
+
[config2, direction],
|
|
1471
1480
|
(prev, next) => prev.some((prevTheme, index) => {
|
|
1472
1481
|
const nextTheme = next[index];
|
|
1473
1482
|
return !isequal(prevTheme, nextTheme);
|
|
@@ -1615,72 +1624,111 @@ function _inheritsLoose$1(subClass, superClass) {
|
|
|
1615
1624
|
_setPrototypeOf$1(subClass, superClass);
|
|
1616
1625
|
}
|
|
1617
1626
|
var propTypes = { exports: {} };
|
|
1618
|
-
var
|
|
1619
|
-
var
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
var
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1627
|
+
var reactIs = { exports: {} };
|
|
1628
|
+
var reactIs_production_min = {};
|
|
1629
|
+
/** @license React v16.13.1
|
|
1630
|
+
* react-is.production.min.js
|
|
1631
|
+
*
|
|
1632
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1633
|
+
*
|
|
1634
|
+
* This source code is licensed under the MIT license found in the
|
|
1635
|
+
* LICENSE file in the root directory of this source tree.
|
|
1636
|
+
*/
|
|
1637
|
+
var hasRequiredReactIs_production_min;
|
|
1638
|
+
function requireReactIs_production_min() {
|
|
1639
|
+
if (hasRequiredReactIs_production_min)
|
|
1640
|
+
return reactIs_production_min;
|
|
1641
|
+
hasRequiredReactIs_production_min = 1;
|
|
1642
|
+
var b = "function" === typeof Symbol && Symbol.for, c2 = b ? Symbol.for("react.element") : 60103, d2 = b ? Symbol.for("react.portal") : 60106, e2 = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g2 = b ? Symbol.for("react.profiler") : 60114, h2 = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t2 = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w2 = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
|
|
1643
|
+
function z2(a2) {
|
|
1644
|
+
if ("object" === typeof a2 && null !== a2) {
|
|
1645
|
+
var u = a2.$$typeof;
|
|
1646
|
+
switch (u) {
|
|
1647
|
+
case c2:
|
|
1648
|
+
switch (a2 = a2.type, a2) {
|
|
1649
|
+
case l:
|
|
1650
|
+
case m:
|
|
1651
|
+
case e2:
|
|
1652
|
+
case g2:
|
|
1653
|
+
case f:
|
|
1654
|
+
case p:
|
|
1655
|
+
return a2;
|
|
1656
|
+
default:
|
|
1657
|
+
switch (a2 = a2 && a2.$$typeof, a2) {
|
|
1658
|
+
case k:
|
|
1659
|
+
case n:
|
|
1660
|
+
case t2:
|
|
1661
|
+
case r:
|
|
1662
|
+
case h2:
|
|
1663
|
+
return a2;
|
|
1664
|
+
default:
|
|
1665
|
+
return u;
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
case d2:
|
|
1669
|
+
return u;
|
|
1644
1670
|
}
|
|
1645
|
-
var err = new Error(
|
|
1646
|
-
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1647
|
-
);
|
|
1648
|
-
err.name = "Invariant Violation";
|
|
1649
|
-
throw err;
|
|
1650
1671
|
}
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
objectOf: getShim,
|
|
1671
|
-
oneOf: getShim,
|
|
1672
|
-
oneOfType: getShim,
|
|
1673
|
-
shape: getShim,
|
|
1674
|
-
exact: getShim,
|
|
1675
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
1676
|
-
resetWarningCache: emptyFunction
|
|
1677
|
-
};
|
|
1678
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
1679
|
-
return ReactPropTypes;
|
|
1672
|
+
}
|
|
1673
|
+
function A2(a2) {
|
|
1674
|
+
return z2(a2) === m;
|
|
1675
|
+
}
|
|
1676
|
+
reactIs_production_min.AsyncMode = l;
|
|
1677
|
+
reactIs_production_min.ConcurrentMode = m;
|
|
1678
|
+
reactIs_production_min.ContextConsumer = k;
|
|
1679
|
+
reactIs_production_min.ContextProvider = h2;
|
|
1680
|
+
reactIs_production_min.Element = c2;
|
|
1681
|
+
reactIs_production_min.ForwardRef = n;
|
|
1682
|
+
reactIs_production_min.Fragment = e2;
|
|
1683
|
+
reactIs_production_min.Lazy = t2;
|
|
1684
|
+
reactIs_production_min.Memo = r;
|
|
1685
|
+
reactIs_production_min.Portal = d2;
|
|
1686
|
+
reactIs_production_min.Profiler = g2;
|
|
1687
|
+
reactIs_production_min.StrictMode = f;
|
|
1688
|
+
reactIs_production_min.Suspense = p;
|
|
1689
|
+
reactIs_production_min.isAsyncMode = function(a2) {
|
|
1690
|
+
return A2(a2) || z2(a2) === l;
|
|
1680
1691
|
};
|
|
1681
|
-
|
|
1692
|
+
reactIs_production_min.isConcurrentMode = A2;
|
|
1693
|
+
reactIs_production_min.isContextConsumer = function(a2) {
|
|
1694
|
+
return z2(a2) === k;
|
|
1695
|
+
};
|
|
1696
|
+
reactIs_production_min.isContextProvider = function(a2) {
|
|
1697
|
+
return z2(a2) === h2;
|
|
1698
|
+
};
|
|
1699
|
+
reactIs_production_min.isElement = function(a2) {
|
|
1700
|
+
return "object" === typeof a2 && null !== a2 && a2.$$typeof === c2;
|
|
1701
|
+
};
|
|
1702
|
+
reactIs_production_min.isForwardRef = function(a2) {
|
|
1703
|
+
return z2(a2) === n;
|
|
1704
|
+
};
|
|
1705
|
+
reactIs_production_min.isFragment = function(a2) {
|
|
1706
|
+
return z2(a2) === e2;
|
|
1707
|
+
};
|
|
1708
|
+
reactIs_production_min.isLazy = function(a2) {
|
|
1709
|
+
return z2(a2) === t2;
|
|
1710
|
+
};
|
|
1711
|
+
reactIs_production_min.isMemo = function(a2) {
|
|
1712
|
+
return z2(a2) === r;
|
|
1713
|
+
};
|
|
1714
|
+
reactIs_production_min.isPortal = function(a2) {
|
|
1715
|
+
return z2(a2) === d2;
|
|
1716
|
+
};
|
|
1717
|
+
reactIs_production_min.isProfiler = function(a2) {
|
|
1718
|
+
return z2(a2) === g2;
|
|
1719
|
+
};
|
|
1720
|
+
reactIs_production_min.isStrictMode = function(a2) {
|
|
1721
|
+
return z2(a2) === f;
|
|
1722
|
+
};
|
|
1723
|
+
reactIs_production_min.isSuspense = function(a2) {
|
|
1724
|
+
return z2(a2) === p;
|
|
1725
|
+
};
|
|
1726
|
+
reactIs_production_min.isValidElementType = function(a2) {
|
|
1727
|
+
return "string" === typeof a2 || "function" === typeof a2 || a2 === e2 || a2 === m || a2 === g2 || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t2 || a2.$$typeof === r || a2.$$typeof === h2 || a2.$$typeof === k || a2.$$typeof === n || a2.$$typeof === w2 || a2.$$typeof === x || a2.$$typeof === y || a2.$$typeof === v);
|
|
1728
|
+
};
|
|
1729
|
+
reactIs_production_min.typeOf = z2;
|
|
1730
|
+
return reactIs_production_min;
|
|
1682
1731
|
}
|
|
1683
|
-
var reactIs = { exports: {} };
|
|
1684
1732
|
var reactIs_development = {};
|
|
1685
1733
|
/** @license React v16.13.1
|
|
1686
1734
|
* react-is.development.js
|
|
@@ -1844,110 +1892,6 @@ function requireReactIs_development() {
|
|
|
1844
1892
|
}
|
|
1845
1893
|
return reactIs_development;
|
|
1846
1894
|
}
|
|
1847
|
-
var reactIs_production_min = {};
|
|
1848
|
-
/** @license React v16.13.1
|
|
1849
|
-
* react-is.production.min.js
|
|
1850
|
-
*
|
|
1851
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1852
|
-
*
|
|
1853
|
-
* This source code is licensed under the MIT license found in the
|
|
1854
|
-
* LICENSE file in the root directory of this source tree.
|
|
1855
|
-
*/
|
|
1856
|
-
var hasRequiredReactIs_production_min;
|
|
1857
|
-
function requireReactIs_production_min() {
|
|
1858
|
-
if (hasRequiredReactIs_production_min)
|
|
1859
|
-
return reactIs_production_min;
|
|
1860
|
-
hasRequiredReactIs_production_min = 1;
|
|
1861
|
-
var b = "function" === typeof Symbol && Symbol.for, c2 = b ? Symbol.for("react.element") : 60103, d2 = b ? Symbol.for("react.portal") : 60106, e2 = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g2 = b ? Symbol.for("react.profiler") : 60114, h2 = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t2 = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w2 = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
|
|
1862
|
-
function z2(a2) {
|
|
1863
|
-
if ("object" === typeof a2 && null !== a2) {
|
|
1864
|
-
var u = a2.$$typeof;
|
|
1865
|
-
switch (u) {
|
|
1866
|
-
case c2:
|
|
1867
|
-
switch (a2 = a2.type, a2) {
|
|
1868
|
-
case l:
|
|
1869
|
-
case m:
|
|
1870
|
-
case e2:
|
|
1871
|
-
case g2:
|
|
1872
|
-
case f:
|
|
1873
|
-
case p:
|
|
1874
|
-
return a2;
|
|
1875
|
-
default:
|
|
1876
|
-
switch (a2 = a2 && a2.$$typeof, a2) {
|
|
1877
|
-
case k:
|
|
1878
|
-
case n:
|
|
1879
|
-
case t2:
|
|
1880
|
-
case r:
|
|
1881
|
-
case h2:
|
|
1882
|
-
return a2;
|
|
1883
|
-
default:
|
|
1884
|
-
return u;
|
|
1885
|
-
}
|
|
1886
|
-
}
|
|
1887
|
-
case d2:
|
|
1888
|
-
return u;
|
|
1889
|
-
}
|
|
1890
|
-
}
|
|
1891
|
-
}
|
|
1892
|
-
function A2(a2) {
|
|
1893
|
-
return z2(a2) === m;
|
|
1894
|
-
}
|
|
1895
|
-
reactIs_production_min.AsyncMode = l;
|
|
1896
|
-
reactIs_production_min.ConcurrentMode = m;
|
|
1897
|
-
reactIs_production_min.ContextConsumer = k;
|
|
1898
|
-
reactIs_production_min.ContextProvider = h2;
|
|
1899
|
-
reactIs_production_min.Element = c2;
|
|
1900
|
-
reactIs_production_min.ForwardRef = n;
|
|
1901
|
-
reactIs_production_min.Fragment = e2;
|
|
1902
|
-
reactIs_production_min.Lazy = t2;
|
|
1903
|
-
reactIs_production_min.Memo = r;
|
|
1904
|
-
reactIs_production_min.Portal = d2;
|
|
1905
|
-
reactIs_production_min.Profiler = g2;
|
|
1906
|
-
reactIs_production_min.StrictMode = f;
|
|
1907
|
-
reactIs_production_min.Suspense = p;
|
|
1908
|
-
reactIs_production_min.isAsyncMode = function(a2) {
|
|
1909
|
-
return A2(a2) || z2(a2) === l;
|
|
1910
|
-
};
|
|
1911
|
-
reactIs_production_min.isConcurrentMode = A2;
|
|
1912
|
-
reactIs_production_min.isContextConsumer = function(a2) {
|
|
1913
|
-
return z2(a2) === k;
|
|
1914
|
-
};
|
|
1915
|
-
reactIs_production_min.isContextProvider = function(a2) {
|
|
1916
|
-
return z2(a2) === h2;
|
|
1917
|
-
};
|
|
1918
|
-
reactIs_production_min.isElement = function(a2) {
|
|
1919
|
-
return "object" === typeof a2 && null !== a2 && a2.$$typeof === c2;
|
|
1920
|
-
};
|
|
1921
|
-
reactIs_production_min.isForwardRef = function(a2) {
|
|
1922
|
-
return z2(a2) === n;
|
|
1923
|
-
};
|
|
1924
|
-
reactIs_production_min.isFragment = function(a2) {
|
|
1925
|
-
return z2(a2) === e2;
|
|
1926
|
-
};
|
|
1927
|
-
reactIs_production_min.isLazy = function(a2) {
|
|
1928
|
-
return z2(a2) === t2;
|
|
1929
|
-
};
|
|
1930
|
-
reactIs_production_min.isMemo = function(a2) {
|
|
1931
|
-
return z2(a2) === r;
|
|
1932
|
-
};
|
|
1933
|
-
reactIs_production_min.isPortal = function(a2) {
|
|
1934
|
-
return z2(a2) === d2;
|
|
1935
|
-
};
|
|
1936
|
-
reactIs_production_min.isProfiler = function(a2) {
|
|
1937
|
-
return z2(a2) === g2;
|
|
1938
|
-
};
|
|
1939
|
-
reactIs_production_min.isStrictMode = function(a2) {
|
|
1940
|
-
return z2(a2) === f;
|
|
1941
|
-
};
|
|
1942
|
-
reactIs_production_min.isSuspense = function(a2) {
|
|
1943
|
-
return z2(a2) === p;
|
|
1944
|
-
};
|
|
1945
|
-
reactIs_production_min.isValidElementType = function(a2) {
|
|
1946
|
-
return "string" === typeof a2 || "function" === typeof a2 || a2 === e2 || a2 === m || a2 === g2 || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t2 || a2.$$typeof === r || a2.$$typeof === h2 || a2.$$typeof === k || a2.$$typeof === n || a2.$$typeof === w2 || a2.$$typeof === x || a2.$$typeof === y || a2.$$typeof === v);
|
|
1947
|
-
};
|
|
1948
|
-
reactIs_production_min.typeOf = z2;
|
|
1949
|
-
return reactIs_production_min;
|
|
1950
|
-
}
|
|
1951
1895
|
var hasRequiredReactIs;
|
|
1952
1896
|
function requireReactIs() {
|
|
1953
1897
|
if (hasRequiredReactIs)
|
|
@@ -2036,6 +1980,16 @@ function requireObjectAssign() {
|
|
|
2036
1980
|
};
|
|
2037
1981
|
return objectAssign;
|
|
2038
1982
|
}
|
|
1983
|
+
var ReactPropTypesSecret_1;
|
|
1984
|
+
var hasRequiredReactPropTypesSecret;
|
|
1985
|
+
function requireReactPropTypesSecret() {
|
|
1986
|
+
if (hasRequiredReactPropTypesSecret)
|
|
1987
|
+
return ReactPropTypesSecret_1;
|
|
1988
|
+
hasRequiredReactPropTypesSecret = 1;
|
|
1989
|
+
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
1990
|
+
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
1991
|
+
return ReactPropTypesSecret_1;
|
|
1992
|
+
}
|
|
2039
1993
|
var has;
|
|
2040
1994
|
var hasRequiredHas;
|
|
2041
1995
|
function requireHas() {
|
|
@@ -2553,6 +2507,61 @@ function requireFactoryWithTypeCheckers() {
|
|
|
2553
2507
|
};
|
|
2554
2508
|
return factoryWithTypeCheckers;
|
|
2555
2509
|
}
|
|
2510
|
+
var factoryWithThrowingShims;
|
|
2511
|
+
var hasRequiredFactoryWithThrowingShims;
|
|
2512
|
+
function requireFactoryWithThrowingShims() {
|
|
2513
|
+
if (hasRequiredFactoryWithThrowingShims)
|
|
2514
|
+
return factoryWithThrowingShims;
|
|
2515
|
+
hasRequiredFactoryWithThrowingShims = 1;
|
|
2516
|
+
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
2517
|
+
function emptyFunction() {
|
|
2518
|
+
}
|
|
2519
|
+
function emptyFunctionWithReset() {
|
|
2520
|
+
}
|
|
2521
|
+
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
2522
|
+
factoryWithThrowingShims = function() {
|
|
2523
|
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
2524
|
+
if (secret === ReactPropTypesSecret) {
|
|
2525
|
+
return;
|
|
2526
|
+
}
|
|
2527
|
+
var err = new Error(
|
|
2528
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
2529
|
+
);
|
|
2530
|
+
err.name = "Invariant Violation";
|
|
2531
|
+
throw err;
|
|
2532
|
+
}
|
|
2533
|
+
shim.isRequired = shim;
|
|
2534
|
+
function getShim() {
|
|
2535
|
+
return shim;
|
|
2536
|
+
}
|
|
2537
|
+
var ReactPropTypes = {
|
|
2538
|
+
array: shim,
|
|
2539
|
+
bigint: shim,
|
|
2540
|
+
bool: shim,
|
|
2541
|
+
func: shim,
|
|
2542
|
+
number: shim,
|
|
2543
|
+
object: shim,
|
|
2544
|
+
string: shim,
|
|
2545
|
+
symbol: shim,
|
|
2546
|
+
any: shim,
|
|
2547
|
+
arrayOf: getShim,
|
|
2548
|
+
element: shim,
|
|
2549
|
+
elementType: shim,
|
|
2550
|
+
instanceOf: getShim,
|
|
2551
|
+
node: shim,
|
|
2552
|
+
objectOf: getShim,
|
|
2553
|
+
oneOf: getShim,
|
|
2554
|
+
oneOfType: getShim,
|
|
2555
|
+
shape: getShim,
|
|
2556
|
+
exact: getShim,
|
|
2557
|
+
checkPropTypes: emptyFunctionWithReset,
|
|
2558
|
+
resetWarningCache: emptyFunction
|
|
2559
|
+
};
|
|
2560
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
2561
|
+
return ReactPropTypes;
|
|
2562
|
+
};
|
|
2563
|
+
return factoryWithThrowingShims;
|
|
2564
|
+
}
|
|
2556
2565
|
if (process.env.NODE_ENV !== "production") {
|
|
2557
2566
|
var ReactIs = requireReactIs();
|
|
2558
2567
|
var throwOnDirectAccess = true;
|
|
@@ -4925,6 +4934,7 @@ const defaultProps$1d = {
|
|
|
4925
4934
|
};
|
|
4926
4935
|
const Badge = (props) => {
|
|
4927
4936
|
var _a;
|
|
4937
|
+
const rtl = useRtl();
|
|
4928
4938
|
const { className, style, value, max, children, dot, top, right: right2, color } = {
|
|
4929
4939
|
...defaultProps$1d,
|
|
4930
4940
|
...props
|
|
@@ -4962,7 +4972,8 @@ const Badge = (props) => {
|
|
|
4962
4972
|
const getStyle = () => {
|
|
4963
4973
|
const style2 = {};
|
|
4964
4974
|
style2.top = `${Number(top) || parseFloat(String(top)) || 0}px`;
|
|
4965
|
-
|
|
4975
|
+
const dir = rtl ? "left" : "right";
|
|
4976
|
+
style2[dir] = `${Number(right2) || parseFloat(String(right2)) || 0}px`;
|
|
4966
4977
|
style2.background = color;
|
|
4967
4978
|
return style2;
|
|
4968
4979
|
};
|
|
@@ -5270,7 +5281,7 @@ const Tabs = (props) => {
|
|
|
5270
5281
|
}
|
|
5271
5282
|
animate();
|
|
5272
5283
|
};
|
|
5273
|
-
const scrollIntoView = () => {
|
|
5284
|
+
const scrollIntoView = (index) => {
|
|
5274
5285
|
requestAniFrame$1(() => {
|
|
5275
5286
|
Promise.all([
|
|
5276
5287
|
getRect2(`#nut-tabs-titles-${name || uuid} .nut-tabs-list`),
|
|
@@ -5278,20 +5289,20 @@ const Tabs = (props) => {
|
|
|
5278
5289
|
]).then(([navRect, titleRects]) => {
|
|
5279
5290
|
navRectRef.current = navRect;
|
|
5280
5291
|
titleRectRef.current = titleRects;
|
|
5281
|
-
const titleRect = titleRectRef.current[
|
|
5292
|
+
const titleRect = titleRectRef.current[index];
|
|
5282
5293
|
if (!titleRect)
|
|
5283
5294
|
return;
|
|
5284
5295
|
let to = 0;
|
|
5285
5296
|
if (props.direction === "vertical") {
|
|
5286
5297
|
const DEFAULT_PADDING = 11;
|
|
5287
|
-
const top = titleRects.slice(0,
|
|
5298
|
+
const top = titleRects.slice(0, index).reduce(
|
|
5288
5299
|
(prev, curr) => prev + curr.height,
|
|
5289
5300
|
DEFAULT_PADDING
|
|
5290
5301
|
);
|
|
5291
5302
|
to = top - (navRectRef.current.height - titleRect.height) / 2;
|
|
5292
5303
|
} else {
|
|
5293
5304
|
const DEFAULT_PADDING = 20;
|
|
5294
|
-
const left2 = titleRects.slice(0,
|
|
5305
|
+
const left2 = titleRects.slice(0, index).reduce(
|
|
5295
5306
|
(prev, curr) => prev + curr.width,
|
|
5296
5307
|
DEFAULT_PADDING
|
|
5297
5308
|
);
|
|
@@ -5310,7 +5321,7 @@ const Tabs = (props) => {
|
|
|
5310
5321
|
transform: direction === "horizontal" ? `translate3d(-${index * 100}%, 0, 0)` : `translate3d( 0,-${index * 100}%, 0)`,
|
|
5311
5322
|
transitionDuration: `${duration}ms`
|
|
5312
5323
|
});
|
|
5313
|
-
scrollIntoView();
|
|
5324
|
+
scrollIntoView(index);
|
|
5314
5325
|
}, [value]);
|
|
5315
5326
|
const tabChange = (item, index) => {
|
|
5316
5327
|
onClick && onClick(item.value);
|
|
@@ -5523,22 +5534,19 @@ const convertListToOptions = (list, options) => {
|
|
|
5523
5534
|
};
|
|
5524
5535
|
class Tree {
|
|
5525
5536
|
constructor(nodes, config2) {
|
|
5526
|
-
|
|
5527
|
-
__publicField(this, "config");
|
|
5528
|
-
// eslint-disable-next-line class-methods-use-this
|
|
5529
|
-
__publicField(this, "isLeaf", (node, lazy) => {
|
|
5537
|
+
this.isLeaf = (node, lazy) => {
|
|
5530
5538
|
const { leaf, children } = node;
|
|
5531
5539
|
const hasChildren = Array.isArray(children) && Boolean(children.length);
|
|
5532
5540
|
return leaf || !hasChildren && !lazy;
|
|
5533
|
-
}
|
|
5534
|
-
|
|
5541
|
+
};
|
|
5542
|
+
this.hasChildren = (node, lazy) => {
|
|
5535
5543
|
const isLeaf = this.isLeaf(node, lazy);
|
|
5536
5544
|
if (isLeaf) {
|
|
5537
5545
|
return false;
|
|
5538
5546
|
}
|
|
5539
5547
|
const { children } = node;
|
|
5540
5548
|
return Array.isArray(children) && Boolean(children.length);
|
|
5541
|
-
}
|
|
5549
|
+
};
|
|
5542
5550
|
this.config = {
|
|
5543
5551
|
value: "value",
|
|
5544
5552
|
text: "text",
|
|
@@ -5585,7 +5593,6 @@ class Tree {
|
|
|
5585
5593
|
return pathNodes;
|
|
5586
5594
|
}
|
|
5587
5595
|
}
|
|
5588
|
-
const Tree$1 = Tree;
|
|
5589
5596
|
const defaultProps$17 = {
|
|
5590
5597
|
...ComponentDefaults,
|
|
5591
5598
|
activeColor: "",
|
|
@@ -5661,7 +5668,7 @@ const InternalCascader = (props, ref) => {
|
|
|
5661
5668
|
paneKey: ""
|
|
5662
5669
|
}
|
|
5663
5670
|
],
|
|
5664
|
-
tree: new Tree
|
|
5671
|
+
tree: new Tree([], {}),
|
|
5665
5672
|
tabsCursor: 0,
|
|
5666
5673
|
// 选中的tab项
|
|
5667
5674
|
initLoading: false,
|
|
@@ -5691,7 +5698,7 @@ const InternalCascader = (props, ref) => {
|
|
|
5691
5698
|
} else {
|
|
5692
5699
|
state.optionsData = options;
|
|
5693
5700
|
}
|
|
5694
|
-
state.tree = new Tree
|
|
5701
|
+
state.tree = new Tree(state.optionsData, {
|
|
5695
5702
|
value: state.configs.optionKey.valueKey,
|
|
5696
5703
|
text: state.configs.optionKey.textKey,
|
|
5697
5704
|
children: state.configs.optionKey.childrenKey
|
|
@@ -7538,6 +7545,7 @@ const Context$1 = CheckboxGroupContext;
|
|
|
7538
7545
|
const defaultProps$11 = {
|
|
7539
7546
|
max: void 0,
|
|
7540
7547
|
min: void 0,
|
|
7548
|
+
list: false,
|
|
7541
7549
|
labelPosition: "right",
|
|
7542
7550
|
direction: "vertical",
|
|
7543
7551
|
onChange: (value) => {
|
|
@@ -7553,6 +7561,7 @@ const CheckboxGroup = React__default.forwardRef(
|
|
|
7553
7561
|
children,
|
|
7554
7562
|
className,
|
|
7555
7563
|
disabled,
|
|
7564
|
+
list,
|
|
7556
7565
|
onChange,
|
|
7557
7566
|
value,
|
|
7558
7567
|
defaultValue,
|
|
@@ -7616,6 +7625,7 @@ const CheckboxGroup = React__default.forwardRef(
|
|
|
7616
7625
|
labelPosition: labelPosition || "right",
|
|
7617
7626
|
disabled,
|
|
7618
7627
|
max,
|
|
7628
|
+
list,
|
|
7619
7629
|
onLimit,
|
|
7620
7630
|
value: _value,
|
|
7621
7631
|
check: (value2) => {
|
|
@@ -7642,7 +7652,8 @@ const CheckboxGroup = React__default.forwardRef(
|
|
|
7642
7652
|
className: classNames(
|
|
7643
7653
|
classPrefix$j,
|
|
7644
7654
|
{
|
|
7645
|
-
[`nut-checkboxgroup-${props.direction}`]: props.direction
|
|
7655
|
+
[`nut-checkboxgroup-${props.direction}`]: props.direction,
|
|
7656
|
+
[`nut-checkboxgroup-list`]: list
|
|
7646
7657
|
},
|
|
7647
7658
|
className
|
|
7648
7659
|
),
|
|
@@ -7742,6 +7753,9 @@ const Checkbox = (props) => {
|
|
|
7742
7753
|
if (innerChecked && !innerIndeterminate) {
|
|
7743
7754
|
return `${cls}${classPrefix$i}-icon-checked ${classPrefix$i}-icon-disabled`;
|
|
7744
7755
|
}
|
|
7756
|
+
if (innerChecked && innerIndeterminate) {
|
|
7757
|
+
return `${cls}${classPrefix$i}-icon-indeterminate ${classPrefix$i}-icon-disabled`;
|
|
7758
|
+
}
|
|
7745
7759
|
return `${cls}${classPrefix$i}-icon-disabled`;
|
|
7746
7760
|
}
|
|
7747
7761
|
if (innerChecked) {
|
|
@@ -7771,7 +7785,7 @@ const Checkbox = (props) => {
|
|
|
7771
7785
|
};
|
|
7772
7786
|
const renderButton = () => {
|
|
7773
7787
|
return /* @__PURE__ */ React__default.createElement(
|
|
7774
|
-
|
|
7788
|
+
View,
|
|
7775
7789
|
{
|
|
7776
7790
|
className: classNames(`${classPrefix$i}-button`, {
|
|
7777
7791
|
[`${classPrefix$i}-button-active`]: innerChecked,
|
|
@@ -7779,17 +7793,23 @@ const Checkbox = (props) => {
|
|
|
7779
7793
|
})
|
|
7780
7794
|
},
|
|
7781
7795
|
children || label,
|
|
7782
|
-
innerChecked && activeIcon ? /* @__PURE__ */ React__default.createElement(
|
|
7796
|
+
innerChecked && activeIcon ? /* @__PURE__ */ React__default.createElement(View, { className: classNames(`${classPrefix$i}-button-icon`) }, activeIcon) : null
|
|
7783
7797
|
);
|
|
7784
7798
|
};
|
|
7799
|
+
const renderListItem = () => {
|
|
7800
|
+
return /* @__PURE__ */ React__default.createElement(View, { className: "nut-checkbox-list-item" }, renderLabel(), renderIcon());
|
|
7801
|
+
};
|
|
7785
7802
|
const renderCheckboxItem = () => {
|
|
7803
|
+
if (ctx == null ? void 0 : ctx.list) {
|
|
7804
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, renderListItem());
|
|
7805
|
+
}
|
|
7786
7806
|
if (shape === "button") {
|
|
7787
7807
|
return renderButton();
|
|
7788
7808
|
}
|
|
7789
7809
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, renderIcon(), renderLabel());
|
|
7790
7810
|
};
|
|
7791
7811
|
return /* @__PURE__ */ React__default.createElement(
|
|
7792
|
-
|
|
7812
|
+
View,
|
|
7793
7813
|
{
|
|
7794
7814
|
className: classNames(
|
|
7795
7815
|
classPrefix$i,
|
|
@@ -8616,7 +8636,7 @@ const DatePicker = (props) => {
|
|
|
8616
8636
|
} else {
|
|
8617
8637
|
cmin++;
|
|
8618
8638
|
}
|
|
8619
|
-
if (cmin <= val) {
|
|
8639
|
+
if (cmin <= Number(val)) {
|
|
8620
8640
|
index++;
|
|
8621
8641
|
}
|
|
8622
8642
|
}
|
|
@@ -9750,21 +9770,13 @@ Schema.validators = validators;
|
|
|
9750
9770
|
const SECRET = "NUT_FORM_INTERNAL";
|
|
9751
9771
|
class FormStore {
|
|
9752
9772
|
constructor() {
|
|
9753
|
-
|
|
9754
|
-
|
|
9755
|
-
|
|
9756
|
-
|
|
9757
|
-
|
|
9758
|
-
|
|
9759
|
-
|
|
9760
|
-
// 校验成功或失败的回调,onFinish、onFinishFailed
|
|
9761
|
-
__publicField(this, "callbacks", {});
|
|
9762
|
-
__publicField(this, "errors", {});
|
|
9763
|
-
/**
|
|
9764
|
-
* 注册组件实例
|
|
9765
|
-
* @param field
|
|
9766
|
-
*/
|
|
9767
|
-
__publicField(this, "registerField", (field) => {
|
|
9773
|
+
this.initialValues = {};
|
|
9774
|
+
this.updateList = [];
|
|
9775
|
+
this.store = {};
|
|
9776
|
+
this.fieldEntities = [];
|
|
9777
|
+
this.callbacks = {};
|
|
9778
|
+
this.errors = {};
|
|
9779
|
+
this.registerField = (field) => {
|
|
9768
9780
|
this.fieldEntities.push(field);
|
|
9769
9781
|
return () => {
|
|
9770
9782
|
this.fieldEntities = this.fieldEntities.filter((item) => item !== field);
|
|
@@ -9772,19 +9784,12 @@ class FormStore {
|
|
|
9772
9784
|
delete this.store[field.props.name];
|
|
9773
9785
|
}
|
|
9774
9786
|
};
|
|
9775
|
-
}
|
|
9776
|
-
|
|
9777
|
-
* 获取 formItem 的值
|
|
9778
|
-
* @param name
|
|
9779
|
-
*/
|
|
9780
|
-
__publicField(this, "getFieldValue", (name) => {
|
|
9787
|
+
};
|
|
9788
|
+
this.getFieldValue = (name) => {
|
|
9781
9789
|
var _a;
|
|
9782
9790
|
return (_a = this.store) == null ? void 0 : _a[name];
|
|
9783
|
-
}
|
|
9784
|
-
|
|
9785
|
-
* 获取全部字段
|
|
9786
|
-
*/
|
|
9787
|
-
__publicField(this, "getFieldsValue", (nameList) => {
|
|
9791
|
+
};
|
|
9792
|
+
this.getFieldsValue = (nameList) => {
|
|
9788
9793
|
if (typeof nameList === "boolean") {
|
|
9789
9794
|
return JSON.parse(JSON.stringify(this.store));
|
|
9790
9795
|
}
|
|
@@ -9793,23 +9798,14 @@ class FormStore {
|
|
|
9793
9798
|
fieldsValue[field] = this.getFieldValue(field);
|
|
9794
9799
|
});
|
|
9795
9800
|
return fieldsValue;
|
|
9796
|
-
}
|
|
9797
|
-
|
|
9798
|
-
* 设置 form 的初始值,之后在 reset 的时候使用
|
|
9799
|
-
* @param values
|
|
9800
|
-
* @param init
|
|
9801
|
-
*/
|
|
9802
|
-
__publicField(this, "setInitialValues", (values, init) => {
|
|
9801
|
+
};
|
|
9802
|
+
this.setInitialValues = (values, init) => {
|
|
9803
9803
|
if (init) {
|
|
9804
9804
|
this.initialValues = values;
|
|
9805
9805
|
this.store = values;
|
|
9806
9806
|
}
|
|
9807
|
-
}
|
|
9808
|
-
|
|
9809
|
-
* 存储组件数据
|
|
9810
|
-
* @param newStore { [name]: newValue }
|
|
9811
|
-
*/
|
|
9812
|
-
__publicField(this, "setFieldsValue", (newStore) => {
|
|
9807
|
+
};
|
|
9808
|
+
this.setFieldsValue = (newStore) => {
|
|
9813
9809
|
this.store = {
|
|
9814
9810
|
...this.store,
|
|
9815
9811
|
...newStore
|
|
@@ -9831,14 +9827,14 @@ class FormStore {
|
|
|
9831
9827
|
item.entity.onStoreChange("update");
|
|
9832
9828
|
}
|
|
9833
9829
|
});
|
|
9834
|
-
}
|
|
9835
|
-
|
|
9830
|
+
};
|
|
9831
|
+
this.setCallback = (callback) => {
|
|
9836
9832
|
this.callbacks = {
|
|
9837
9833
|
...this.callbacks,
|
|
9838
9834
|
...callback
|
|
9839
9835
|
};
|
|
9840
|
-
}
|
|
9841
|
-
|
|
9836
|
+
};
|
|
9837
|
+
this.validateEntities = async (entity, errs) => {
|
|
9842
9838
|
var _a;
|
|
9843
9839
|
const { name, rules: rules2 = [] } = entity.props;
|
|
9844
9840
|
const descriptor = {};
|
|
@@ -9866,8 +9862,8 @@ class FormStore {
|
|
|
9866
9862
|
}
|
|
9867
9863
|
}
|
|
9868
9864
|
entity.onStoreChange("validate");
|
|
9869
|
-
}
|
|
9870
|
-
|
|
9865
|
+
};
|
|
9866
|
+
this.validateFields = async (nameList) => {
|
|
9871
9867
|
let filterEntities = [];
|
|
9872
9868
|
this.errors.length = 0;
|
|
9873
9869
|
if (!nameList || nameList.length === 0) {
|
|
@@ -9884,8 +9880,8 @@ class FormStore {
|
|
|
9884
9880
|
})
|
|
9885
9881
|
);
|
|
9886
9882
|
return errs;
|
|
9887
|
-
}
|
|
9888
|
-
|
|
9883
|
+
};
|
|
9884
|
+
this.submit = async () => {
|
|
9889
9885
|
var _a, _b, _c, _d;
|
|
9890
9886
|
const errors = await this.validateFields();
|
|
9891
9887
|
if (errors.length === 0) {
|
|
@@ -9893,16 +9889,15 @@ class FormStore {
|
|
|
9893
9889
|
} else if (errors.length > 0) {
|
|
9894
9890
|
(_d = (_c = this.callbacks).onFinishFailed) == null ? void 0 : _d.call(_c, this.store, errors);
|
|
9895
9891
|
}
|
|
9896
|
-
}
|
|
9897
|
-
|
|
9892
|
+
};
|
|
9893
|
+
this.resetFields = () => {
|
|
9898
9894
|
this.errors.length = 0;
|
|
9899
9895
|
this.store = this.initialValues;
|
|
9900
9896
|
this.fieldEntities.forEach((entity) => {
|
|
9901
9897
|
entity.onStoreChange("reset");
|
|
9902
9898
|
});
|
|
9903
|
-
}
|
|
9904
|
-
|
|
9905
|
-
__publicField(this, "registerUpdate", (field, shouldUpdate) => {
|
|
9899
|
+
};
|
|
9900
|
+
this.registerUpdate = (field, shouldUpdate) => {
|
|
9906
9901
|
this.updateList.push({
|
|
9907
9902
|
entity: field,
|
|
9908
9903
|
condition: shouldUpdate
|
|
@@ -9910,11 +9905,11 @@ class FormStore {
|
|
|
9910
9905
|
return () => {
|
|
9911
9906
|
this.updateList = this.updateList.filter((i2) => i2.entity !== field);
|
|
9912
9907
|
};
|
|
9913
|
-
}
|
|
9914
|
-
|
|
9908
|
+
};
|
|
9909
|
+
this.dispatch = ({ name }) => {
|
|
9915
9910
|
this.validateFields([name]);
|
|
9916
|
-
}
|
|
9917
|
-
|
|
9911
|
+
};
|
|
9912
|
+
this.getInternal = (key) => {
|
|
9918
9913
|
if (key === SECRET) {
|
|
9919
9914
|
return {
|
|
9920
9915
|
registerField: this.registerField,
|
|
@@ -9926,8 +9921,8 @@ class FormStore {
|
|
|
9926
9921
|
registerUpdate: this.registerUpdate
|
|
9927
9922
|
};
|
|
9928
9923
|
}
|
|
9929
|
-
}
|
|
9930
|
-
|
|
9924
|
+
};
|
|
9925
|
+
this.getForm = () => {
|
|
9931
9926
|
return {
|
|
9932
9927
|
getFieldValue: this.getFieldValue,
|
|
9933
9928
|
getFieldsValue: this.getFieldsValue,
|
|
@@ -9938,7 +9933,7 @@ class FormStore {
|
|
|
9938
9933
|
errors: this.errors,
|
|
9939
9934
|
getInternal: this.getInternal
|
|
9940
9935
|
};
|
|
9941
|
-
}
|
|
9936
|
+
};
|
|
9942
9937
|
this.callbacks = {
|
|
9943
9938
|
onFinish: () => {
|
|
9944
9939
|
},
|
|
@@ -10058,14 +10053,10 @@ const defaultProps$Y = {
|
|
|
10058
10053
|
shouldUpdate: false,
|
|
10059
10054
|
noStyle: false
|
|
10060
10055
|
};
|
|
10061
|
-
class
|
|
10056
|
+
const _FormItem = class _FormItem extends React__default.Component {
|
|
10062
10057
|
constructor(props) {
|
|
10063
10058
|
super(props);
|
|
10064
|
-
|
|
10065
|
-
__publicField(this, "componentRef");
|
|
10066
|
-
__publicField(this, "eventOff");
|
|
10067
|
-
// children添加value属性和onChange事件
|
|
10068
|
-
__publicField(this, "getControlled", (children) => {
|
|
10059
|
+
this.getControlled = (children) => {
|
|
10069
10060
|
var _a;
|
|
10070
10061
|
const { setFieldsValue, getFieldValue } = this.context;
|
|
10071
10062
|
const { dispatch } = this.context.getInternal(SECRET);
|
|
@@ -10092,7 +10083,7 @@ class FormItem extends React__default.Component {
|
|
|
10092
10083
|
const { validateTrigger } = this.props;
|
|
10093
10084
|
let validateTriggers = [this.props.trigger || "onChange"];
|
|
10094
10085
|
if (validateTrigger) {
|
|
10095
|
-
validateTriggers = typeof validateTrigger === "string" ? [
|
|
10086
|
+
validateTriggers = typeof validateTrigger === "string" ? [validateTrigger] : [...validateTrigger];
|
|
10096
10087
|
validateTriggers.forEach((trigger) => {
|
|
10097
10088
|
const originTrigger = controlled[trigger];
|
|
10098
10089
|
controlled[trigger] = (...args) => {
|
|
@@ -10122,21 +10113,22 @@ class FormItem extends React__default.Component {
|
|
|
10122
10113
|
};
|
|
10123
10114
|
}
|
|
10124
10115
|
return controlled;
|
|
10125
|
-
}
|
|
10126
|
-
|
|
10116
|
+
};
|
|
10117
|
+
this.refresh = () => {
|
|
10127
10118
|
this.setState(({ resetCount }) => ({
|
|
10128
10119
|
resetCount: resetCount + 1
|
|
10129
10120
|
}));
|
|
10130
|
-
}
|
|
10131
|
-
|
|
10121
|
+
};
|
|
10122
|
+
this.onStoreChange = (type4) => {
|
|
10132
10123
|
if (type4 === "reset") {
|
|
10133
10124
|
this.context.errors[this.props.name] = [];
|
|
10134
10125
|
this.refresh();
|
|
10135
10126
|
} else {
|
|
10136
10127
|
this.forceUpdate();
|
|
10137
10128
|
}
|
|
10138
|
-
}
|
|
10139
|
-
|
|
10129
|
+
};
|
|
10130
|
+
this.renderLayout = (childNode) => {
|
|
10131
|
+
var _a;
|
|
10140
10132
|
const {
|
|
10141
10133
|
label,
|
|
10142
10134
|
name,
|
|
@@ -10162,16 +10154,19 @@ class FormItem extends React__default.Component {
|
|
|
10162
10154
|
onClick: (e2) => this.props.onClick && this.props.onClick(e2, this.componentRef)
|
|
10163
10155
|
},
|
|
10164
10156
|
label ? /* @__PURE__ */ React__default.createElement("div", { className: "nut-cell-title nut-form-item-label" }, renderLabel) : null,
|
|
10165
|
-
/* @__PURE__ */ React__default.createElement("div", { className: "nut-cell-value nut-form-item-body" }, /* @__PURE__ */ React__default.createElement("div", { className: "nut-form-item-body-slots" }, childNode),
|
|
10157
|
+
/* @__PURE__ */ React__default.createElement("div", { className: "nut-cell-value nut-form-item-body" }, /* @__PURE__ */ React__default.createElement("div", { className: "nut-form-item-body-slots" }, childNode), /* @__PURE__ */ React__default.createElement(
|
|
10166
10158
|
"div",
|
|
10167
10159
|
{
|
|
10168
10160
|
className: "nut-form-item-body-tips",
|
|
10169
|
-
style: {
|
|
10161
|
+
style: {
|
|
10162
|
+
textAlign: errorMessageAlign,
|
|
10163
|
+
display: (item == null ? void 0 : item.length) ? "initial" : "none"
|
|
10164
|
+
}
|
|
10170
10165
|
},
|
|
10171
|
-
item[0].message
|
|
10166
|
+
(_a = item == null ? void 0 : item[0]) == null ? void 0 : _a.message
|
|
10172
10167
|
))
|
|
10173
10168
|
);
|
|
10174
|
-
}
|
|
10169
|
+
};
|
|
10175
10170
|
this.componentRef = React__default.createRef();
|
|
10176
10171
|
this.state = {
|
|
10177
10172
|
resetCount: 1
|
|
@@ -10204,9 +10199,10 @@ class FormItem extends React__default.Component {
|
|
|
10204
10199
|
}
|
|
10205
10200
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, { key: this.state.resetCount }, this.props.noStyle ? returnChildNode : this.renderLayout(returnChildNode));
|
|
10206
10201
|
}
|
|
10207
|
-
}
|
|
10208
|
-
|
|
10209
|
-
|
|
10202
|
+
};
|
|
10203
|
+
_FormItem.defaultProps = defaultProps$Y;
|
|
10204
|
+
_FormItem.contextType = Context;
|
|
10205
|
+
let FormItem = _FormItem;
|
|
10210
10206
|
const InnerForm = Form;
|
|
10211
10207
|
InnerForm.Item = FormItem;
|
|
10212
10208
|
InnerForm.useForm = useForm;
|
|
@@ -10434,6 +10430,7 @@ const defaultProps$W = {
|
|
|
10434
10430
|
allowEmpty: false,
|
|
10435
10431
|
min: 1,
|
|
10436
10432
|
max: 9999,
|
|
10433
|
+
type: "digit",
|
|
10437
10434
|
step: 1,
|
|
10438
10435
|
digits: 0,
|
|
10439
10436
|
async: false
|
|
@@ -10445,6 +10442,7 @@ const InputNumber = (props) => {
|
|
|
10445
10442
|
disabled,
|
|
10446
10443
|
min,
|
|
10447
10444
|
max,
|
|
10445
|
+
type: type4,
|
|
10448
10446
|
readOnly,
|
|
10449
10447
|
value,
|
|
10450
10448
|
defaultValue,
|
|
@@ -10480,6 +10478,7 @@ const InputNumber = (props) => {
|
|
|
10480
10478
|
const [shadowValue, setShadowValue] = usePropsValue({
|
|
10481
10479
|
value: typeof value === "string" ? parseFloat(value) : value,
|
|
10482
10480
|
defaultValue: typeof defaultValue === "string" ? parseFloat(defaultValue) : defaultValue,
|
|
10481
|
+
finalValue: 0,
|
|
10483
10482
|
onChange: (value2) => {
|
|
10484
10483
|
}
|
|
10485
10484
|
});
|
|
@@ -10533,7 +10532,7 @@ const InputNumber = (props) => {
|
|
|
10533
10532
|
);
|
|
10534
10533
|
const nextValue = bound2(shouldOverBoundary, Number(min), Number(max));
|
|
10535
10534
|
setShadowValue(nextValue);
|
|
10536
|
-
if (negative ? shouldOverBoundary < min : shouldOverBoundary > max) {
|
|
10535
|
+
if (negative ? shouldOverBoundary < Number(min) : shouldOverBoundary > Number(max)) {
|
|
10537
10536
|
onOverlimit == null ? void 0 : onOverlimit(e2);
|
|
10538
10537
|
} else {
|
|
10539
10538
|
onChange == null ? void 0 : onChange(nextValue, e2);
|
|
@@ -10602,9 +10601,9 @@ const InputNumber = (props) => {
|
|
|
10602
10601
|
"input",
|
|
10603
10602
|
{
|
|
10604
10603
|
className: "nut-number-input",
|
|
10605
|
-
type:
|
|
10604
|
+
type: type4,
|
|
10606
10605
|
ref: inputRef,
|
|
10607
|
-
inputMode: "decimal",
|
|
10606
|
+
inputMode: type4 === "digit" ? "decimal" : "numeric",
|
|
10608
10607
|
disabled,
|
|
10609
10608
|
readOnly,
|
|
10610
10609
|
value: inputValue,
|
|
@@ -11364,6 +11363,7 @@ const defaultProps$Q = {
|
|
|
11364
11363
|
marks: {}
|
|
11365
11364
|
};
|
|
11366
11365
|
const Range = (props) => {
|
|
11366
|
+
const rtl = useRtl();
|
|
11367
11367
|
const {
|
|
11368
11368
|
className,
|
|
11369
11369
|
range: range3,
|
|
@@ -11476,15 +11476,17 @@ const Range = (props) => {
|
|
|
11476
11476
|
transition: dragStatus ? "none" : void 0
|
|
11477
11477
|
};
|
|
11478
11478
|
}
|
|
11479
|
+
const dir = rtl ? "right" : "left";
|
|
11479
11480
|
return {
|
|
11480
11481
|
width: calcMainAxis(),
|
|
11481
|
-
|
|
11482
|
+
[dir]: calcOffset(),
|
|
11482
11483
|
transition: dragStatus ? "none" : void 0
|
|
11483
11484
|
};
|
|
11484
11485
|
};
|
|
11485
11486
|
const marksStyle = (mark) => {
|
|
11487
|
+
const dir = rtl ? "right" : "left";
|
|
11486
11488
|
let style = {
|
|
11487
|
-
|
|
11489
|
+
[dir]: `${(mark - min) / scope() * 100}%`
|
|
11488
11490
|
};
|
|
11489
11491
|
if (vertical) {
|
|
11490
11492
|
style = {
|
|
@@ -11575,6 +11577,7 @@ const Range = (props) => {
|
|
|
11575
11577
|
let delta = touch.deltaX.current;
|
|
11576
11578
|
let total = rect.width;
|
|
11577
11579
|
let diff = delta / total * scope();
|
|
11580
|
+
diff = rtl ? -diff : diff;
|
|
11578
11581
|
if (vertical) {
|
|
11579
11582
|
delta = touch.deltaY.current;
|
|
11580
11583
|
total = rect.height;
|
|
@@ -12438,22 +12441,14 @@ TextArea.defaultProps = defaultProps$K;
|
|
|
12438
12441
|
TextArea.displayName = "NutTextArea";
|
|
12439
12442
|
class UploadOptions {
|
|
12440
12443
|
constructor() {
|
|
12441
|
-
|
|
12442
|
-
|
|
12443
|
-
|
|
12444
|
-
|
|
12445
|
-
|
|
12446
|
-
|
|
12447
|
-
|
|
12448
|
-
|
|
12449
|
-
__publicField(this, "headers", {});
|
|
12450
|
-
__publicField(this, "withCredentials", false);
|
|
12451
|
-
__publicField(this, "onStart");
|
|
12452
|
-
__publicField(this, "taroFilePath");
|
|
12453
|
-
__publicField(this, "onProgress");
|
|
12454
|
-
__publicField(this, "onSuccess");
|
|
12455
|
-
__publicField(this, "onFailure");
|
|
12456
|
-
__publicField(this, "beforeXhrUpload");
|
|
12444
|
+
this.url = "";
|
|
12445
|
+
this.name = "file";
|
|
12446
|
+
this.fileType = "image";
|
|
12447
|
+
this.method = "post";
|
|
12448
|
+
this.xhrState = 200;
|
|
12449
|
+
this.timeout = 30 * 1e3;
|
|
12450
|
+
this.headers = {};
|
|
12451
|
+
this.withCredentials = false;
|
|
12457
12452
|
}
|
|
12458
12453
|
}
|
|
12459
12454
|
const UPLOADING = "uploading";
|
|
@@ -12461,7 +12456,6 @@ const SUCCESS = "success";
|
|
|
12461
12456
|
const ERROR = "error";
|
|
12462
12457
|
class Upload {
|
|
12463
12458
|
constructor(options) {
|
|
12464
|
-
__publicField(this, "options");
|
|
12465
12459
|
this.options = options;
|
|
12466
12460
|
}
|
|
12467
12461
|
upload() {
|
|
@@ -12591,18 +12585,11 @@ const funcInterceptor = (interceptor, {
|
|
|
12591
12585
|
};
|
|
12592
12586
|
class FileItem {
|
|
12593
12587
|
constructor() {
|
|
12594
|
-
|
|
12595
|
-
|
|
12596
|
-
|
|
12597
|
-
|
|
12598
|
-
|
|
12599
|
-
__publicField(this, "type");
|
|
12600
|
-
__publicField(this, "path");
|
|
12601
|
-
__publicField(this, "percentage", 0);
|
|
12602
|
-
__publicField(this, "formData", {});
|
|
12603
|
-
__publicField(this, "responseText");
|
|
12604
|
-
__publicField(this, "loadingIcon");
|
|
12605
|
-
__publicField(this, "failIcon");
|
|
12588
|
+
this.status = "ready";
|
|
12589
|
+
this.message = "准备中..";
|
|
12590
|
+
this.uid = (/* @__PURE__ */ new Date()).getTime().toString();
|
|
12591
|
+
this.percentage = 0;
|
|
12592
|
+
this.formData = {};
|
|
12606
12593
|
}
|
|
12607
12594
|
}
|
|
12608
12595
|
const defaultProps$J = {
|
|
@@ -12613,6 +12600,7 @@ const defaultProps$J = {
|
|
|
12613
12600
|
delay: 0
|
|
12614
12601
|
};
|
|
12615
12602
|
const Progress = (props) => {
|
|
12603
|
+
const rtl = useRtl();
|
|
12616
12604
|
const {
|
|
12617
12605
|
className,
|
|
12618
12606
|
style,
|
|
@@ -12662,7 +12650,7 @@ const Progress = (props) => {
|
|
|
12662
12650
|
"div",
|
|
12663
12651
|
{
|
|
12664
12652
|
className: `${classPrefix2}-text`,
|
|
12665
|
-
style: { left: `${displayPercent}%` }
|
|
12653
|
+
style: rtl ? { right: `${displayPercent}%` } : { left: `${displayPercent}%` }
|
|
12666
12654
|
},
|
|
12667
12655
|
children || /* @__PURE__ */ React__default.createElement(
|
|
12668
12656
|
"div",
|
|
@@ -13090,7 +13078,7 @@ const InternalUploader = (props, ref) => {
|
|
|
13090
13078
|
const handleItemClick = (file, index) => {
|
|
13091
13079
|
onFileItemClick == null ? void 0 : onFileItemClick(file, index);
|
|
13092
13080
|
};
|
|
13093
|
-
return /* @__PURE__ */ React__default.createElement("div", { className: classes, ...restProps }, (children || previewType === "list") && /* @__PURE__ */ React__default.createElement("div", { className: "nut-uploader-slot" }, /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, children || /* @__PURE__ */ React__default.createElement(Button, { size: "small", type: "primary" }, "上传文件"), maxCount > fileList.length && /* @__PURE__ */ React__default.createElement(Button, { className: "nut-uploader-input", onClick: _chooseImage }))), /* @__PURE__ */ React__default.createElement(
|
|
13081
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: classes, ...restProps }, (children || previewType === "list") && /* @__PURE__ */ React__default.createElement("div", { className: "nut-uploader-slot" }, /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, children || /* @__PURE__ */ React__default.createElement(Button, { size: "small", type: "primary" }, "上传文件"), Number(maxCount) > fileList.length && /* @__PURE__ */ React__default.createElement(Button, { className: "nut-uploader-input", onClick: _chooseImage }))), /* @__PURE__ */ React__default.createElement(
|
|
13094
13082
|
Preview,
|
|
13095
13083
|
{
|
|
13096
13084
|
...{
|
|
@@ -13103,7 +13091,7 @@ const InternalUploader = (props, ref) => {
|
|
|
13103
13091
|
children
|
|
13104
13092
|
}
|
|
13105
13093
|
}
|
|
13106
|
-
), maxCount > fileList.length && previewType === "picture" && !children && /* @__PURE__ */ React__default.createElement(
|
|
13094
|
+
), Number(maxCount) > fileList.length && previewType === "picture" && !children && /* @__PURE__ */ React__default.createElement(
|
|
13107
13095
|
"div",
|
|
13108
13096
|
{
|
|
13109
13097
|
className: `nut-uploader-upload ${previewType} ${disabled ? "nut-uploader-upload-disabled" : ""}`
|
|
@@ -13302,6 +13290,7 @@ const defaultProps$G = {
|
|
|
13302
13290
|
const BaseDialog = (props) => {
|
|
13303
13291
|
const classPrefix2 = "nut-dialog";
|
|
13304
13292
|
const { locale } = useConfig$1();
|
|
13293
|
+
const [loading, setLoading] = useState(false);
|
|
13305
13294
|
const {
|
|
13306
13295
|
params: {
|
|
13307
13296
|
id,
|
|
@@ -13356,10 +13345,16 @@ const BaseDialog = (props) => {
|
|
|
13356
13345
|
onClose == null ? void 0 : onClose();
|
|
13357
13346
|
onCancel == null ? void 0 : onCancel();
|
|
13358
13347
|
};
|
|
13359
|
-
const handleOk = (e2) => {
|
|
13348
|
+
const handleOk = async (e2) => {
|
|
13360
13349
|
e2.stopPropagation();
|
|
13361
|
-
|
|
13362
|
-
|
|
13350
|
+
setLoading(true);
|
|
13351
|
+
try {
|
|
13352
|
+
await (onConfirm == null ? void 0 : onConfirm(e2));
|
|
13353
|
+
setLoading(false);
|
|
13354
|
+
onClose == null ? void 0 : onClose();
|
|
13355
|
+
} catch {
|
|
13356
|
+
setLoading(false);
|
|
13357
|
+
}
|
|
13363
13358
|
};
|
|
13364
13359
|
return footer || /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, !hideCancelButton && /* @__PURE__ */ React__default.createElement(
|
|
13365
13360
|
Button,
|
|
@@ -13377,7 +13372,8 @@ const BaseDialog = (props) => {
|
|
|
13377
13372
|
disabled: disableConfirmButton
|
|
13378
13373
|
}),
|
|
13379
13374
|
disabled: disableConfirmButton,
|
|
13380
|
-
onClick: (e2) => handleOk(e2)
|
|
13375
|
+
onClick: (e2) => handleOk(e2),
|
|
13376
|
+
loading
|
|
13381
13377
|
},
|
|
13382
13378
|
confirmText || locale.confirm
|
|
13383
13379
|
));
|
|
@@ -13817,6 +13813,7 @@ Loading.defaultProps = defaultProps$C;
|
|
|
13817
13813
|
Loading.displayName = "NutLoading";
|
|
13818
13814
|
const defaultProps$B = {
|
|
13819
13815
|
...ComponentDefaults,
|
|
13816
|
+
align: "left",
|
|
13820
13817
|
direction: "horizontal",
|
|
13821
13818
|
list: [],
|
|
13822
13819
|
duration: 1e3,
|
|
@@ -13831,10 +13828,12 @@ const defaultProps$B = {
|
|
|
13831
13828
|
speed: 50
|
|
13832
13829
|
};
|
|
13833
13830
|
const NoticeBar = (props) => {
|
|
13831
|
+
const rtl = useRtl();
|
|
13834
13832
|
const {
|
|
13835
13833
|
children,
|
|
13836
13834
|
className,
|
|
13837
13835
|
style,
|
|
13836
|
+
align,
|
|
13838
13837
|
direction,
|
|
13839
13838
|
list,
|
|
13840
13839
|
duration,
|
|
@@ -13941,7 +13940,7 @@ const NoticeBar = (props) => {
|
|
|
13941
13940
|
const contentRes = await getRectByTaro(contentRef.current);
|
|
13942
13941
|
const wrapW = warpRes.width;
|
|
13943
13942
|
const offsetW = contentRes.width;
|
|
13944
|
-
const canScroll = scrollable == null ? offsetW > wrapW : scrollable;
|
|
13943
|
+
const canScroll = align === "left" && scrollable == null ? offsetW > wrapW : scrollable;
|
|
13945
13944
|
SetIsCanScroll(canScroll);
|
|
13946
13945
|
if (canScroll) {
|
|
13947
13946
|
SetWrapWidth(wrapW);
|
|
@@ -13992,7 +13991,7 @@ const NoticeBar = (props) => {
|
|
|
13992
13991
|
onClose && onClose(event);
|
|
13993
13992
|
};
|
|
13994
13993
|
const isEllipsis = () => {
|
|
13995
|
-
if (isCanScroll == null) {
|
|
13994
|
+
if (isCanScroll == null && align === "left") {
|
|
13996
13995
|
return wrap;
|
|
13997
13996
|
}
|
|
13998
13997
|
return !isCanScroll && !wrap;
|
|
@@ -14000,7 +13999,7 @@ const NoticeBar = (props) => {
|
|
|
14000
13999
|
const contentStyle = {
|
|
14001
14000
|
animationDelay: `${firstRound ? delay : 0}s`,
|
|
14002
14001
|
animationDuration: `${animationDuration}s`,
|
|
14003
|
-
transform: `translateX(${firstRound ? 0 : `${wrapWidth}px`})`
|
|
14002
|
+
transform: `translateX(${firstRound ? 0 : `${rtl ? -wrapWidth : wrapWidth}px`})`
|
|
14004
14003
|
};
|
|
14005
14004
|
const barStyle = {
|
|
14006
14005
|
height: isVertical ? `${height}px` : ""
|
|
@@ -14146,16 +14145,18 @@ const NoticeBar = (props) => {
|
|
|
14146
14145
|
}
|
|
14147
14146
|
};
|
|
14148
14147
|
const noticebarClass = classNames({
|
|
14149
|
-
|
|
14150
|
-
[
|
|
14148
|
+
[`${classPrefix2}-box`]: true,
|
|
14149
|
+
[`${classPrefix2}-box-wrapable`]: wrap,
|
|
14150
|
+
[`${classPrefix2}-box-${align}`]: true
|
|
14151
14151
|
});
|
|
14152
|
+
const cls = classNames(classPrefix2, className);
|
|
14152
14153
|
useEffect(() => {
|
|
14153
14154
|
return () => {
|
|
14154
14155
|
stopAutoPlay();
|
|
14155
14156
|
};
|
|
14156
14157
|
}, []);
|
|
14157
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
14158
|
-
|
|
14158
|
+
return /* @__PURE__ */ React__default.createElement(View, { className: cls, style }, showNoticeBar && direction === "horizontal" ? /* @__PURE__ */ React__default.createElement(View, { className: noticebarClass, style: barStyle, onClick: handleClick }, leftIcon ? /* @__PURE__ */ React__default.createElement(View, { className: "nut-noticebar-box-left-icon" }, leftIcon) : null, /* @__PURE__ */ React__default.createElement(View, { ref: wrapRef, className: "nut-noticebar-box-wrap" }, /* @__PURE__ */ React__default.createElement(
|
|
14159
|
+
View,
|
|
14159
14160
|
{
|
|
14160
14161
|
ref: contentRef,
|
|
14161
14162
|
className: `nut-noticebar-box-wrap-content ${animationClass} ${isEllipsis() ? "nut-ellipsis" : ""}`,
|
|
@@ -14164,18 +14165,25 @@ const NoticeBar = (props) => {
|
|
|
14164
14165
|
},
|
|
14165
14166
|
children,
|
|
14166
14167
|
content
|
|
14167
|
-
)), closeable || rightIcon ? /* @__PURE__ */ React__default.createElement(
|
|
14168
|
-
|
|
14168
|
+
)), closeable || rightIcon ? /* @__PURE__ */ React__default.createElement(
|
|
14169
|
+
View,
|
|
14170
|
+
{
|
|
14171
|
+
className: "nut-noticebar-box-right-icon",
|
|
14172
|
+
onClick: onClickIcon
|
|
14173
|
+
},
|
|
14174
|
+
rightIcon || /* @__PURE__ */ React__default.createElement(A$1, { size: 12 })
|
|
14175
|
+
) : null) : null, showNoticeBar && scrollList.current.length > 0 && isVertical ? /* @__PURE__ */ React__default.createElement(
|
|
14176
|
+
View,
|
|
14169
14177
|
{
|
|
14170
14178
|
className: "nut-noticebar-vertical",
|
|
14171
14179
|
style: barStyle,
|
|
14172
14180
|
ref: container,
|
|
14173
14181
|
onClick: handleClick
|
|
14174
14182
|
},
|
|
14175
|
-
leftIcon ? /* @__PURE__ */ React__default.createElement(
|
|
14176
|
-
children ? /* @__PURE__ */ React__default.createElement(
|
|
14183
|
+
leftIcon ? /* @__PURE__ */ React__default.createElement(View, { className: "nut-noticebar-box-left-icon" }, leftIcon) : null,
|
|
14184
|
+
children ? /* @__PURE__ */ React__default.createElement(View, { className: "nut-noticebar-box-wrap", ref: innerRef }, scrollList.current.map((item, index) => {
|
|
14177
14185
|
return /* @__PURE__ */ React__default.createElement(
|
|
14178
|
-
|
|
14186
|
+
View,
|
|
14179
14187
|
{
|
|
14180
14188
|
style: itemStyle(index),
|
|
14181
14189
|
key: index,
|
|
@@ -14186,7 +14194,7 @@ const NoticeBar = (props) => {
|
|
|
14186
14194
|
item
|
|
14187
14195
|
);
|
|
14188
14196
|
})) : /* @__PURE__ */ React__default.createElement(
|
|
14189
|
-
|
|
14197
|
+
View,
|
|
14190
14198
|
{
|
|
14191
14199
|
className: "nut-noticebar-box-horseLamp-list",
|
|
14192
14200
|
style: horseLampStyle
|
|
@@ -14195,7 +14203,7 @@ const NoticeBar = (props) => {
|
|
|
14195
14203
|
return (
|
|
14196
14204
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
14197
14205
|
/* @__PURE__ */ React__default.createElement(
|
|
14198
|
-
|
|
14206
|
+
View,
|
|
14199
14207
|
{
|
|
14200
14208
|
className: "nut-noticebar-box-horseLamp-list-item",
|
|
14201
14209
|
style: { height },
|
|
@@ -14210,7 +14218,7 @@ const NoticeBar = (props) => {
|
|
|
14210
14218
|
})
|
|
14211
14219
|
),
|
|
14212
14220
|
/* @__PURE__ */ React__default.createElement(
|
|
14213
|
-
|
|
14221
|
+
View,
|
|
14214
14222
|
{
|
|
14215
14223
|
className: "nut-noticebar-box-right-icon",
|
|
14216
14224
|
onClick: (e2) => {
|
|
@@ -14327,6 +14335,7 @@ Notify.close = close;
|
|
|
14327
14335
|
const defaultProps$z = {
|
|
14328
14336
|
...ComponentDefaults,
|
|
14329
14337
|
list: [],
|
|
14338
|
+
theme: "light",
|
|
14330
14339
|
location: "bottom",
|
|
14331
14340
|
visible: false,
|
|
14332
14341
|
offset: [0, 12],
|
|
@@ -14334,9 +14343,9 @@ const defaultProps$z = {
|
|
|
14334
14343
|
targetId: "",
|
|
14335
14344
|
className: "",
|
|
14336
14345
|
showArrow: true,
|
|
14337
|
-
overlay: false,
|
|
14338
14346
|
closeOnOutsideClick: true,
|
|
14339
14347
|
closeOnActionClick: true,
|
|
14348
|
+
overlay: false,
|
|
14340
14349
|
onClick: () => {
|
|
14341
14350
|
},
|
|
14342
14351
|
onOpen: () => {
|
|
@@ -14349,16 +14358,17 @@ const Popover = (props) => {
|
|
|
14349
14358
|
const {
|
|
14350
14359
|
children,
|
|
14351
14360
|
list,
|
|
14361
|
+
theme,
|
|
14352
14362
|
location,
|
|
14353
14363
|
visible,
|
|
14354
14364
|
offset,
|
|
14365
|
+
arrowOffset,
|
|
14355
14366
|
targetId,
|
|
14356
14367
|
overlay,
|
|
14357
14368
|
closeOnOutsideClick,
|
|
14358
14369
|
closeOnActionClick,
|
|
14359
14370
|
className,
|
|
14360
14371
|
showArrow,
|
|
14361
|
-
arrowOffset,
|
|
14362
14372
|
style,
|
|
14363
14373
|
onClick,
|
|
14364
14374
|
onOpen,
|
|
@@ -14430,7 +14440,8 @@ const Popover = (props) => {
|
|
|
14430
14440
|
};
|
|
14431
14441
|
const classes = classNames(
|
|
14432
14442
|
{
|
|
14433
|
-
[`${classPrefix$c}`]: true
|
|
14443
|
+
[`${classPrefix$c}`]: true,
|
|
14444
|
+
[`${classPrefix$c}-${theme}`]: theme === "dark"
|
|
14434
14445
|
},
|
|
14435
14446
|
className
|
|
14436
14447
|
);
|
|
@@ -14538,11 +14549,12 @@ const Popover = (props) => {
|
|
|
14538
14549
|
className: "nut-popover-wrapper",
|
|
14539
14550
|
ref: popoverRef,
|
|
14540
14551
|
onClick: () => {
|
|
14541
|
-
|
|
14552
|
+
var _a;
|
|
14553
|
+
(_a = props == null ? void 0 : props.onClick) == null ? void 0 : _a.call(props);
|
|
14542
14554
|
if (!visible) {
|
|
14543
|
-
onOpen
|
|
14555
|
+
onOpen == null ? void 0 : onOpen();
|
|
14544
14556
|
} else {
|
|
14545
|
-
onClose
|
|
14557
|
+
onClose == null ? void 0 : onClose();
|
|
14546
14558
|
}
|
|
14547
14559
|
},
|
|
14548
14560
|
style
|
|
@@ -15161,6 +15173,7 @@ const defaultProps$t = {
|
|
|
15161
15173
|
id: "",
|
|
15162
15174
|
icon: null,
|
|
15163
15175
|
iconSize: "20",
|
|
15176
|
+
content: "",
|
|
15164
15177
|
msg: "",
|
|
15165
15178
|
duration: 2,
|
|
15166
15179
|
// 时长,duration为0则一直展示
|
|
@@ -15188,6 +15201,7 @@ const Toast = (props) => {
|
|
|
15188
15201
|
contentStyle,
|
|
15189
15202
|
icon,
|
|
15190
15203
|
iconSize,
|
|
15204
|
+
content,
|
|
15191
15205
|
msg,
|
|
15192
15206
|
duration,
|
|
15193
15207
|
type: type4,
|
|
@@ -15299,7 +15313,7 @@ const Toast = (props) => {
|
|
|
15299
15313
|
},
|
|
15300
15314
|
hasIcon() ? /* @__PURE__ */ React__default.createElement("p", { className: `${classPrefix$9}-icon-wrapper` }, iconName()) : null,
|
|
15301
15315
|
title ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix$9}-title` }, title) : null,
|
|
15302
|
-
/* @__PURE__ */ React__default.createElement("span", { className: `${classPrefix$9}-text` }, msg)
|
|
15316
|
+
/* @__PURE__ */ React__default.createElement("span", { className: `${classPrefix$9}-text` }, content || msg)
|
|
15303
15317
|
))
|
|
15304
15318
|
) : null);
|
|
15305
15319
|
};
|
|
@@ -15445,7 +15459,7 @@ const CountUp = (props) => {
|
|
|
15445
15459
|
CountUp.defaultProps = defaultProps$r;
|
|
15446
15460
|
CountUp.displayName = "NutCountUp";
|
|
15447
15461
|
const defaultProps$q = {};
|
|
15448
|
-
class
|
|
15462
|
+
const _AnimatingNumbers = class _AnimatingNumbers extends Component {
|
|
15449
15463
|
constructor(props) {
|
|
15450
15464
|
super(props);
|
|
15451
15465
|
this.state = {};
|
|
@@ -15453,10 +15467,11 @@ class AnimatingNumbers extends Component {
|
|
|
15453
15467
|
render() {
|
|
15454
15468
|
return /* @__PURE__ */ React__default.createElement("div", { className: "nut-animatingnumbers" });
|
|
15455
15469
|
}
|
|
15456
|
-
}
|
|
15457
|
-
|
|
15458
|
-
|
|
15459
|
-
|
|
15470
|
+
};
|
|
15471
|
+
_AnimatingNumbers.defaultProps = defaultProps$q;
|
|
15472
|
+
_AnimatingNumbers.displayName = "NutAnimatingNumbers";
|
|
15473
|
+
_AnimatingNumbers.CountUp = CountUp;
|
|
15474
|
+
let AnimatingNumbers = _AnimatingNumbers;
|
|
15460
15475
|
AnimatingNumbers.CountUp = CountUp;
|
|
15461
15476
|
const defaultProps$p = {
|
|
15462
15477
|
...ComponentDefaults,
|
|
@@ -16062,7 +16077,7 @@ const InternalCountDown = (props, ref) => {
|
|
|
16062
16077
|
if (!timeStr)
|
|
16063
16078
|
return Date.now();
|
|
16064
16079
|
let t2 = timeStr;
|
|
16065
|
-
t2 = t2 > 0 ? +t2 : t2.toString().replace(/-/g, "/");
|
|
16080
|
+
t2 = Number(t2) > 0 ? +t2 : t2.toString().replace(/-/g, "/");
|
|
16066
16081
|
return new Date(t2).getTime();
|
|
16067
16082
|
};
|
|
16068
16083
|
const initTime = () => {
|
|
@@ -17284,7 +17299,7 @@ const Steps = (props) => {
|
|
|
17284
17299
|
};
|
|
17285
17300
|
Steps.defaultProps = defaultProps$c;
|
|
17286
17301
|
Steps.displayName = "NutSteps";
|
|
17287
|
-
function useTableSticky(columns) {
|
|
17302
|
+
function useTableSticky(columns, rtl = false) {
|
|
17288
17303
|
const [isSticky, setIsSticky] = useState(false);
|
|
17289
17304
|
const [stickyColumnStyleMap, setStickyColumnStyleMap] = useState({});
|
|
17290
17305
|
const [stickyColumnClassMap, setStickyColumnClassMap] = useState({});
|
|
@@ -17299,9 +17314,9 @@ function useTableSticky(columns) {
|
|
|
17299
17314
|
let _stickyLeftWidth = 0;
|
|
17300
17315
|
let _stickyRightWidth = 0;
|
|
17301
17316
|
leftColumns.forEach((curr, index) => {
|
|
17302
|
-
|
|
17317
|
+
const dir = rtl ? "right" : "left";
|
|
17303
17318
|
_columnStyleMap[curr.key] = {
|
|
17304
|
-
|
|
17319
|
+
[dir]: _stickyLeftWidth || 0,
|
|
17305
17320
|
width: curr.width || "auto"
|
|
17306
17321
|
};
|
|
17307
17322
|
_columnClassMap[curr.key] = {
|
|
@@ -17317,9 +17332,9 @@ function useTableSticky(columns) {
|
|
|
17317
17332
|
});
|
|
17318
17333
|
for (let i2 = rightColumns.length - 1; i2 >= 0; i2--) {
|
|
17319
17334
|
const curr = rightColumns[i2];
|
|
17320
|
-
|
|
17335
|
+
const dir = rtl ? "left" : "right";
|
|
17321
17336
|
_columnStyleMap[curr.key] = {
|
|
17322
|
-
|
|
17337
|
+
[dir]: _stickyRightWidth || 0,
|
|
17323
17338
|
width: curr.width || "auto"
|
|
17324
17339
|
};
|
|
17325
17340
|
_columnClassMap[curr.key] = {
|
|
@@ -17366,6 +17381,7 @@ const defaultProps$b = {
|
|
|
17366
17381
|
};
|
|
17367
17382
|
const Table = (props) => {
|
|
17368
17383
|
const { locale } = useConfig$1();
|
|
17384
|
+
const rtl = useRtl();
|
|
17369
17385
|
defaultProps$b.noData = locale.noData;
|
|
17370
17386
|
const {
|
|
17371
17387
|
children,
|
|
@@ -17396,7 +17412,7 @@ const Table = (props) => {
|
|
|
17396
17412
|
stickyRightWidth,
|
|
17397
17413
|
getStickyClass,
|
|
17398
17414
|
getStickyStyle
|
|
17399
|
-
} = useTableSticky(columns);
|
|
17415
|
+
} = useTableSticky(columns, rtl);
|
|
17400
17416
|
useEffect(() => {
|
|
17401
17417
|
setValue(data);
|
|
17402
17418
|
}, [data]);
|
|
@@ -17634,8 +17650,7 @@ const getTaroRectById = (id) => {
|
|
|
17634
17650
|
};
|
|
17635
17651
|
const defaultConfigRef = {
|
|
17636
17652
|
current: {
|
|
17637
|
-
locale: zhCN
|
|
17638
|
-
direction: "ltr"
|
|
17653
|
+
locale: zhCN
|
|
17639
17654
|
}
|
|
17640
17655
|
};
|
|
17641
17656
|
const getDefaultConfig = () => {
|
|
@@ -17910,11 +17925,9 @@ const updateItemSize = (positions, items, sizeKey, margin) => {
|
|
|
17910
17925
|
}
|
|
17911
17926
|
});
|
|
17912
17927
|
};
|
|
17913
|
-
const clientHeight = getSystemInfoSync().windowHeight - 5 || 667;
|
|
17914
17928
|
const defaultProps$7 = {
|
|
17915
17929
|
...ComponentDefaults,
|
|
17916
17930
|
list: [],
|
|
17917
|
-
containerHeight: clientHeight,
|
|
17918
17931
|
itemHeight: 66,
|
|
17919
17932
|
margin: 10,
|
|
17920
17933
|
itemEqual: true,
|
|
@@ -17931,12 +17944,20 @@ const VirtualList = (props) => {
|
|
|
17931
17944
|
key,
|
|
17932
17945
|
onScroll,
|
|
17933
17946
|
className,
|
|
17934
|
-
containerHeight,
|
|
17947
|
+
containerHeight: origContainerHeight,
|
|
17935
17948
|
...rest
|
|
17936
17949
|
} = {
|
|
17937
17950
|
...defaultProps$7,
|
|
17938
17951
|
...props
|
|
17939
17952
|
};
|
|
17953
|
+
const clientHeight = useMemo$1(
|
|
17954
|
+
() => getSystemInfoSync().windowHeight - 5 || 667,
|
|
17955
|
+
[]
|
|
17956
|
+
);
|
|
17957
|
+
const containerHeight = useMemo$1(
|
|
17958
|
+
() => origContainerHeight ?? clientHeight,
|
|
17959
|
+
[origContainerHeight, clientHeight]
|
|
17960
|
+
);
|
|
17940
17961
|
const [startOffset, setStartOffset] = useState(0);
|
|
17941
17962
|
const start = useRef(0);
|
|
17942
17963
|
const scrollRef = useRef(null);
|