tdesign-react 0.30.2 → 0.31.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/CHANGELOG.md +55 -8
- package/README.md +3 -0
- package/dist/tdesign.css +20 -21
- package/dist/tdesign.css.map +1 -1
- package/dist/tdesign.js +746 -287
- package/dist/tdesign.js.map +1 -1
- package/dist/tdesign.min.css +1 -1
- package/dist/tdesign.min.css.map +1 -1
- package/dist/tdesign.min.js +4 -4
- package/dist/tdesign.min.js.map +1 -1
- package/{esm/_chunks/dep-3f575560.js → es/_chunks/dep-020d9062.js} +7 -7
- package/es/_chunks/{dep-3f575560.js.map → dep-020d9062.js.map} +1 -1
- package/es/_chunks/{dep-2e05f5ac.js → dep-04f71886.js} +4 -4
- package/{esm/_chunks/dep-2e05f5ac.js.map → es/_chunks/dep-04f71886.js.map} +1 -1
- package/es/_chunks/{dep-05d8d35f.js → dep-0d23bb2c.js} +4 -4
- package/es/_chunks/{dep-05d8d35f.js.map → dep-0d23bb2c.js.map} +1 -1
- package/{esm/_chunks/dep-bd3ee9d1.js → es/_chunks/dep-1628aaec.js} +2 -2
- package/es/_chunks/{dep-bd3ee9d1.js.map → dep-1628aaec.js.map} +1 -1
- package/{esm/_chunks/dep-8b2f32fa.js → es/_chunks/dep-1983b4fb.js} +7 -7
- package/{esm/_chunks/dep-8b2f32fa.js.map → es/_chunks/dep-1983b4fb.js.map} +1 -1
- package/{esm/_chunks/dep-9b31e9ae.js → es/_chunks/dep-1afd7695.js} +8 -8
- package/es/_chunks/{dep-9b31e9ae.js.map → dep-1afd7695.js.map} +1 -1
- package/es/_chunks/{dep-426b7562.js → dep-1ff453c7.js} +4 -4
- package/es/_chunks/{dep-426b7562.js.map → dep-1ff453c7.js.map} +1 -1
- package/es/_chunks/{dep-354ea021.js → dep-21405614.js} +5 -5
- package/es/_chunks/{dep-354ea021.js.map → dep-21405614.js.map} +1 -1
- package/es/_chunks/{dep-82106277.js → dep-33d8a0b4.js} +7 -7
- package/es/_chunks/{dep-82106277.js.map → dep-33d8a0b4.js.map} +1 -1
- package/es/_chunks/{dep-10ae3f83.js → dep-3ac0dcc3.js} +16 -16
- package/{esm/_chunks/dep-10ae3f83.js.map → es/_chunks/dep-3ac0dcc3.js.map} +1 -1
- package/{esm/_chunks/dep-796b0236.js → es/_chunks/dep-3cf23cb4.js} +3 -3
- package/es/_chunks/{dep-796b0236.js.map → dep-3cf23cb4.js.map} +1 -1
- package/es/_chunks/{dep-673f08f9.js → dep-4abdf74c.js} +13 -13
- package/{esm/_chunks/dep-673f08f9.js.map → es/_chunks/dep-4abdf74c.js.map} +1 -1
- package/{esm/_chunks/dep-371be827.js → es/_chunks/dep-4b59c7d8.js} +9 -9
- package/es/_chunks/{dep-371be827.js.map → dep-4b59c7d8.js.map} +1 -1
- package/es/_chunks/{dep-4a9203a3.js → dep-51bc4b09.js} +3 -3
- package/es/_chunks/{dep-4a9203a3.js.map → dep-51bc4b09.js.map} +1 -1
- package/{esm/_chunks/dep-211f9530.js → es/_chunks/dep-52fa543d.js} +5 -5
- package/es/_chunks/{dep-211f9530.js.map → dep-52fa543d.js.map} +1 -1
- package/es/_chunks/{dep-39b8442f.js → dep-58105e8f.js} +8 -8
- package/{esm/_chunks/dep-39b8442f.js.map → es/_chunks/dep-58105e8f.js.map} +1 -1
- package/es/_chunks/{dep-568bb4f4.js → dep-5e457cfd.js} +5 -5
- package/{esm/_chunks/dep-568bb4f4.js.map → es/_chunks/dep-5e457cfd.js.map} +1 -1
- package/es/_chunks/dep-63ed508e.js +8 -0
- package/es/_chunks/dep-63ed508e.js.map +1 -0
- package/es/_chunks/{dep-47239be8.js → dep-65e835d0.js} +4 -4
- package/es/_chunks/{dep-47239be8.js.map → dep-65e835d0.js.map} +1 -1
- package/{esm/_chunks/dep-e224ea99.js → es/_chunks/dep-6bf856c2.js} +3 -3
- package/es/_chunks/{dep-e224ea99.js.map → dep-6bf856c2.js.map} +1 -1
- package/{esm/_chunks/dep-d9edda2f.js → es/_chunks/dep-6e3f1697.js} +7 -7
- package/es/_chunks/{dep-d9edda2f.js.map → dep-6e3f1697.js.map} +1 -1
- package/{esm/_chunks/dep-28fdda42.js → es/_chunks/dep-6eb85770.js} +5 -5
- package/es/_chunks/{dep-28fdda42.js.map → dep-6eb85770.js.map} +1 -1
- package/es/_chunks/{dep-1c3bd64c.js → dep-77be4a53.js} +9 -9
- package/es/_chunks/{dep-1c3bd64c.js.map → dep-77be4a53.js.map} +1 -1
- package/{esm/_chunks/dep-8b1f8aca.js → es/_chunks/dep-84f5ab8c.js} +8 -8
- package/es/_chunks/{dep-8b1f8aca.js.map → dep-84f5ab8c.js.map} +1 -1
- package/{esm/_chunks/dep-cd0c410d.js → es/_chunks/dep-85a9595a.js} +2 -2
- package/es/_chunks/{dep-cd0c410d.js.map → dep-85a9595a.js.map} +1 -1
- package/{esm/_chunks/dep-9b782fb7.js → es/_chunks/dep-8702aba9.js} +2 -2
- package/es/_chunks/dep-8702aba9.js.map +1 -0
- package/{esm/_chunks/dep-398804ba.js → es/_chunks/dep-8efaaac0.js} +2 -2
- package/es/_chunks/{dep-398804ba.js.map → dep-8efaaac0.js.map} +1 -1
- package/es/_chunks/{dep-b656a4b4.js → dep-926c2765.js} +2 -2
- package/es/_chunks/{dep-b656a4b4.js.map → dep-926c2765.js.map} +1 -1
- package/{esm/_chunks/dep-58a07693.js → es/_chunks/dep-9421c3f3.js} +6 -6
- package/{esm/_chunks/dep-58a07693.js.map → es/_chunks/dep-9421c3f3.js.map} +1 -1
- package/es/_chunks/{dep-1e9e8faf.js → dep-9b67144e.js} +4 -4
- package/es/_chunks/{dep-1e9e8faf.js.map → dep-9b67144e.js.map} +1 -1
- package/{esm/_chunks/dep-c93767bb.js → es/_chunks/dep-9b86e5e7.js} +4 -4
- package/es/_chunks/{dep-c93767bb.js.map → dep-9b86e5e7.js.map} +1 -1
- package/es/_chunks/{dep-d79a44fc.js → dep-aca05d9d.js} +3 -3
- package/es/_chunks/{dep-d79a44fc.js.map → dep-aca05d9d.js.map} +1 -1
- package/es/_chunks/dep-ad00102c.js +1173 -0
- package/es/_chunks/dep-ad00102c.js.map +1 -0
- package/{esm/_chunks/dep-ee616e77.js → es/_chunks/dep-ae52f85e.js} +3 -3
- package/{lib/_chunks/dep-e6241dd7.js.map → es/_chunks/dep-ae52f85e.js.map} +1 -1
- package/es/_chunks/{dep-7abfc588.js → dep-b2dbb167.js} +16 -16
- package/{esm/_chunks/dep-7abfc588.js.map → es/_chunks/dep-b2dbb167.js.map} +1 -1
- package/{esm/_chunks/dep-ef563605.js → es/_chunks/dep-be94af1f.js} +6 -6
- package/{esm/_chunks/dep-ef563605.js.map → es/_chunks/dep-be94af1f.js.map} +1 -1
- package/es/_chunks/{dep-e70b3b8f.js → dep-c2678a9e.js} +4 -4
- package/es/_chunks/{dep-e70b3b8f.js.map → dep-c2678a9e.js.map} +1 -1
- package/es/_chunks/{dep-616db5ce.js → dep-c7d0e14d.js} +8 -8
- package/es/_chunks/{dep-616db5ce.js.map → dep-c7d0e14d.js.map} +1 -1
- package/es/_chunks/{dep-78ad0681.js → dep-c9e242b1.js} +7 -7
- package/es/_chunks/{dep-78ad0681.js.map → dep-c9e242b1.js.map} +1 -1
- package/es/_chunks/{dep-af7047b3.js → dep-cf0a5e4d.js} +5 -5
- package/{esm/_chunks/dep-af7047b3.js.map → es/_chunks/dep-cf0a5e4d.js.map} +1 -1
- package/es/_chunks/{dep-5377fc0d.js → dep-d038aaf3.js} +3 -3
- package/es/_chunks/{dep-5377fc0d.js.map → dep-d038aaf3.js.map} +1 -1
- package/{esm/_chunks/dep-e7b4c475.js → es/_chunks/dep-d51fd958.js} +5 -5
- package/es/_chunks/{dep-e7b4c475.js.map → dep-d51fd958.js.map} +1 -1
- package/es/_chunks/{dep-2425508a.js → dep-d539b435.js} +4 -4
- package/es/_chunks/{dep-2425508a.js.map → dep-d539b435.js.map} +1 -1
- package/{esm/_chunks/dep-b5a24b70.js → es/_chunks/dep-db65b23a.js} +3 -3
- package/es/_chunks/{dep-b5a24b70.js.map → dep-db65b23a.js.map} +1 -1
- package/es/_chunks/{dep-d3cfe7b4.js → dep-db8880c0.js} +4 -4
- package/es/_chunks/{dep-d3cfe7b4.js.map → dep-db8880c0.js.map} +1 -1
- package/es/_chunks/{dep-4354c99f.js → dep-de277644.js} +5 -5
- package/{esm/_chunks/dep-4354c99f.js.map → es/_chunks/dep-de277644.js.map} +1 -1
- package/es/_chunks/{dep-f12445cb.js → dep-e0790d2e.js} +5 -5
- package/{esm/_chunks/dep-f12445cb.js.map → es/_chunks/dep-e0790d2e.js.map} +1 -1
- package/es/_chunks/{dep-c4aaac6e.js → dep-e0bd8416.js} +9 -9
- package/{esm/_chunks/dep-c4aaac6e.js.map → es/_chunks/dep-e0bd8416.js.map} +1 -1
- package/es/_chunks/{dep-2d2ae6d5.js → dep-e2d47979.js} +7 -7
- package/{esm/_chunks/dep-2d2ae6d5.js.map → es/_chunks/dep-e2d47979.js.map} +1 -1
- package/{esm/_chunks/dep-2df90fdd.js → es/_chunks/dep-ea842483.js} +2 -2
- package/es/_chunks/{dep-2df90fdd.js.map → dep-ea842483.js.map} +1 -1
- package/{esm/_chunks/dep-2c0d0d7c.js → es/_chunks/dep-eda9548e.js} +11 -11
- package/{esm/_chunks/dep-2c0d0d7c.js.map → es/_chunks/dep-eda9548e.js.map} +1 -1
- package/es/_chunks/{dep-a7b4fee7.js → dep-ef21605a.js} +4 -4
- package/es/_chunks/{dep-a7b4fee7.js.map → dep-ef21605a.js.map} +1 -1
- package/es/_chunks/{dep-4481f97c.js → dep-f5215b0d.js} +6 -6
- package/{esm/_chunks/dep-4481f97c.js.map → es/_chunks/dep-f5215b0d.js.map} +1 -1
- package/es/_chunks/{dep-f9c897fd.js → dep-f8ba4931.js} +4 -4
- package/es/_chunks/{dep-f9c897fd.js.map → dep-f8ba4931.js.map} +1 -1
- package/es/_chunks/{dep-92dd3e9f.js → dep-fb1b2241.js} +6 -6
- package/es/_chunks/{dep-92dd3e9f.js.map → dep-fb1b2241.js.map} +1 -1
- package/{esm/_chunks/dep-94e9d25d.js → es/_chunks/dep-fd1b4e24.js} +6 -6
- package/es/_chunks/{dep-94e9d25d.js.map → dep-fd1b4e24.js.map} +1 -1
- package/es/_common/js/color-picker/cmyk.js +1 -1
- package/es/_common/js/color-picker/color.js +5 -5
- package/es/_common/js/color-picker/draggable.js +3 -3
- package/es/_common/js/color-picker/gradient.js +1 -1
- package/es/_common/js/color-picker/index.js +5 -5
- package/es/_common/js/common.js +1 -1
- package/es/_common/js/date-picker/utils.d.ts +2 -2
- package/es/_common/js/date-picker/utils.js +26 -16
- package/es/_common/js/date-picker/utils.js.map +1 -1
- package/es/_common/js/global-config/default-config.js +1 -1
- package/es/_common/js/global-config/locale/en_US.js +1 -1
- package/es/_common/js/global-config/locale/zh_CN.js +1 -1
- package/es/_common/js/loading/circle-adapter.js +5 -5
- package/es/_common/js/log/index.js +1 -1
- package/es/_common/js/log/log.js +1 -1
- package/es/_common/js/log/types.js +1 -1
- package/es/_common/js/tabs/base.js +1 -1
- package/es/_common/js/tree/tree-node-model.js +22 -22
- package/es/_common/js/tree/tree-node.js +27 -27
- package/es/_common/js/tree/tree-store.js +35 -35
- package/es/_common/js/tree/types.js +1 -1
- package/es/_common/js/upload/types.js +1 -1
- package/es/_common/js/upload/utils.js +2 -2
- package/es/_common/js/upload/xhr.js +1 -1
- package/es/_common/js/utils/calcTextareaHeight.js +5 -5
- package/es/_common/js/utils/getScrollbarWidth.js +1 -1
- package/es/_common/js/utils/helper.js +5 -5
- package/es/_common/js/utils/observe.js +1 -1
- package/es/_common/js/utils/set-style.js +1 -1
- package/es/_util/callBoth.js +1 -1
- package/es/_util/composeRefs.js +1 -1
- package/es/_util/dom.js +8 -8
- package/es/_util/easing.js +1 -1
- package/es/_util/forwardRefWithStatics.js +1 -1
- package/es/_util/getScrollbarWidth.js +1 -1
- package/es/_util/hasScrollBar.js +1 -1
- package/es/_util/helper.js +16 -16
- package/es/_util/injectValue.js +1 -1
- package/es/_util/insertCSS.js +1 -1
- package/es/_util/isCallable.js +1 -1
- package/es/_util/linearGradient.js +2 -2
- package/es/_util/noop.js +1 -1
- package/es/_util/number.d.ts +3 -3
- package/es/_util/number.js +27 -36
- package/es/_util/number.js.map +1 -1
- package/es/_util/renderTNode.js +1 -1
- package/es/_util/setStyle.js +1 -1
- package/es/_util/useAnimation.js +21 -21
- package/es/_util/useClickOutside.js +1 -1
- package/es/_util/useCommonClassName.js +21 -21
- package/es/_util/useConfig.d.ts +2 -2
- package/es/_util/useConfig.js +21 -21
- package/es/_util/useConfig.js.map +1 -1
- package/es/_util/useDefault.js +3 -3
- package/es/_util/useDefaultValue.js +5 -5
- package/es/_util/useDialogEsc.js +3 -3
- package/es/_util/useDragSorter.js +3 -3
- package/es/_util/useLayoutEffect.js +8 -8
- package/es/_util/useMutationObserver.js +9 -9
- package/es/_util/usePersistFn.js +1 -1
- package/es/_util/usePrevious.js +1 -1
- package/es/_util/useRefAndForward.js +1 -1
- package/es/_util/useRipple.js +22 -22
- package/es/_util/useSetState.js +4 -4
- package/es/_util/useSwitch.js +3 -3
- package/es/_util/useUpdateEffect.js +8 -8
- package/es/_util/useWindowSize.js +11 -11
- package/es/addon/Addon.js +22 -22
- package/es/addon/index.js +22 -22
- package/es/affix/Affix.js +24 -24
- package/es/affix/index.js +24 -24
- package/es/affix/style/index.js +1 -1
- package/es/affix/type.js +1 -1
- package/es/alert/Alert.js +24 -24
- package/es/alert/index.js +24 -24
- package/es/alert/style/index.js +1 -1
- package/es/alert/type.js +1 -1
- package/es/anchor/Anchor.js +30 -30
- package/es/anchor/AnchorContext.js +1 -1
- package/es/anchor/AnchorItem.js +22 -22
- package/es/anchor/AnchorTarget.js +28 -28
- package/es/anchor/_util/clipboard.js +1 -1
- package/es/anchor/_util/dom.js +1 -1
- package/es/anchor/index.js +30 -30
- package/es/anchor/style/index.js +1 -1
- package/es/anchor/type.js +1 -1
- package/es/avatar/AvararGroup.js +29 -29
- package/es/avatar/Avatar.js +29 -29
- package/es/avatar/AvatarContext.js +1 -1
- package/es/avatar/index.js +29 -29
- package/es/avatar/style/index.js +1 -1
- package/es/avatar/type.js +1 -1
- package/es/badge/Badge.js +22 -22
- package/es/badge/index.js +22 -22
- package/es/badge/style/index.js +1 -1
- package/es/badge/type.js +1 -1
- package/es/breadcrumb/Breadcrumb.js +26 -25
- package/es/breadcrumb/Breadcrumb.js.map +1 -1
- package/es/breadcrumb/BreadcrumbContext.js +1 -1
- package/es/breadcrumb/BreadcrumbItem.js +25 -24
- package/es/breadcrumb/BreadcrumbItem.js.map +1 -1
- package/es/breadcrumb/BreadcrumbProps.js +1 -1
- package/es/breadcrumb/index.js +23 -23
- package/es/breadcrumb/style/index.js +1 -1
- package/es/breadcrumb/type.js +1 -1
- package/es/button/Button.js +25 -25
- package/es/button/index.js +25 -25
- package/es/button/style/index.js +1 -1
- package/es/button/type.js +1 -1
- package/es/calendar/Calendar.js +42 -42
- package/es/calendar/_util.js +1 -1
- package/es/calendar/index.js +42 -42
- package/es/calendar/style/index.js +1 -1
- package/es/calendar/type.js +1 -1
- package/es/card/type.d.ts +45 -2
- package/es/card/type.js +1 -1
- package/es/cascader/Cascader.js +48 -48
- package/es/cascader/components/InputContent.js +32 -31
- package/es/cascader/components/InputContent.js.map +1 -1
- package/es/cascader/components/Item.js +46 -52
- package/es/cascader/components/Item.js.map +1 -1
- package/es/cascader/components/Panel.js +35 -35
- package/es/cascader/components/style/index.js +1 -1
- package/es/cascader/index.js +48 -48
- package/es/cascader/interface.js +27 -27
- package/es/cascader/style/index.js +1 -1
- package/es/cascader/type.js +1 -1
- package/es/cascader/utils/cascader.js +4 -4
- package/es/cascader/utils/helper.d.ts +5 -0
- package/es/cascader/utils/helper.js +6 -3
- package/es/cascader/utils/helper.js.map +1 -1
- package/es/cascader/utils/inputContent.js +21 -25
- package/es/cascader/utils/inputContent.js.map +1 -1
- package/es/cascader/utils/item.d.ts +2 -2
- package/es/cascader/utils/item.js +6 -6
- package/es/cascader/utils/item.js.map +1 -1
- package/es/cascader/utils/panel.js +8 -8
- package/es/checkbox/Checkbox.js +31 -31
- package/es/checkbox/CheckboxGroup.js +31 -31
- package/es/checkbox/index.js +31 -31
- package/es/checkbox/style/index.js +1 -1
- package/es/checkbox/type.js +1 -1
- package/es/comment/Comment.js +21 -21
- package/es/comment/index.js +21 -21
- package/es/comment/style/index.css +1 -1
- package/es/comment/style/index.js +1 -1
- package/es/comment/type.js +1 -1
- package/es/common/Check.js +29 -29
- package/es/common/FakeArrow.js +21 -21
- package/es/common/Portal.d.ts +4 -0
- package/es/common/Portal.js +26 -25
- package/es/common/Portal.js.map +1 -1
- package/es/common.js +1 -1
- package/es/config-provider/ConfigContext.d.ts +5 -370
- package/es/config-provider/ConfigContext.js +21 -21
- package/es/config-provider/ConfigProvider.d.ts +3 -185
- package/es/config-provider/ConfigProvider.js +21 -21
- package/es/config-provider/ConfigProvider.js.map +1 -1
- package/es/config-provider/en_US_config.js +1 -1
- package/es/config-provider/index.js +21 -21
- package/es/config-provider/type.d.ts +1 -1
- package/es/config-provider/type.js +1 -1
- package/es/config-provider/zh_CN_config.js +1 -1
- package/es/date-picker/DatePicker.js +37 -37
- package/es/date-picker/DatePicker.js.map +1 -1
- package/es/date-picker/base/CalendarPresets.js +25 -25
- package/es/date-picker/base/Cell.js +21 -21
- package/es/date-picker/base/Header.js +25 -25
- package/es/date-picker/base/Table.js +23 -23
- package/es/date-picker/base/style/index.js +1 -1
- package/es/date-picker/index.js +35 -35
- package/es/date-picker/panel/Date.js +29 -29
- package/es/date-picker/panel/DateRange.js +29 -29
- package/es/date-picker/panel/style/index.js +1 -1
- package/es/date-picker/style/index.js +1 -1
- package/es/date-picker/type.js +1 -1
- package/es/dialog/Dialog.js +37 -29
- package/es/dialog/Dialog.js.map +1 -1
- package/es/dialog/RenderDialog.d.ts +1 -1
- package/es/dialog/RenderDialog.js +44 -30
- package/es/dialog/RenderDialog.js.map +1 -1
- package/es/dialog/index.js +26 -26
- package/es/dialog/plugin.js +33 -28
- package/es/dialog/plugin.js.map +1 -1
- package/es/dialog/style/index.js +1 -1
- package/es/dialog/type.js +1 -1
- package/es/divider/Divider.js +22 -22
- package/es/divider/index.js +22 -22
- package/es/divider/style/index.js +1 -1
- package/es/divider/type.js +1 -1
- package/es/drawer/Drawer.js +25 -25
- package/es/drawer/DrawerWrapper.js +22 -22
- package/es/drawer/index.js +25 -25
- package/es/drawer/style/index.js +1 -1
- package/es/drawer/type.js +1 -1
- package/es/dropdown/Dropdown.js +40 -40
- package/es/dropdown/DropdownItem.js +30 -30
- package/es/dropdown/DropdownMenu.js +31 -31
- package/es/dropdown/index.js +40 -40
- package/es/dropdown/style/index.js +1 -1
- package/es/dropdown/type.js +1 -1
- package/es/form/Form.d.ts +5 -1
- package/es/form/Form.js +56 -57
- package/es/form/Form.js.map +1 -1
- package/es/form/FormContext.d.ts +14 -5
- package/es/form/FormContext.js +12 -5
- package/es/form/FormContext.js.map +1 -1
- package/es/form/FormItem.d.ts +16 -1
- package/es/form/FormItem.js +56 -1089
- package/es/form/FormItem.js.map +1 -1
- package/es/form/FormList.d.ts +7 -0
- package/es/form/FormList.js +280 -0
- package/es/form/FormList.js.map +1 -0
- package/es/form/formModel.js +27 -27
- package/es/form/hooks/useFormItemStyle.d.ts +7 -0
- package/es/form/hooks/useFormItemStyle.js +123 -0
- package/es/form/hooks/useFormItemStyle.js.map +1 -0
- package/es/form/hooks/useInstance.d.ts +2 -1
- package/es/form/hooks/useInstance.js +89 -89
- package/es/form/hooks/useInstance.js.map +1 -1
- package/es/form/index.d.ts +5 -1
- package/es/form/index.js +48 -47
- package/es/form/index.js.map +1 -1
- package/es/form/style/index.css +6 -16
- package/es/form/style/index.js +1 -1
- package/es/form/type.d.ts +33 -7
- package/es/form/type.js +1 -1
- package/es/grid/Col.js +22 -22
- package/es/grid/Row.js +25 -25
- package/es/grid/index.js +25 -25
- package/es/grid/style/index.js +1 -1
- package/es/grid/type.js +1 -1
- package/es/index.js +59 -59
- package/es/input/Input.js +29 -29
- package/es/input/InputGroup.js +22 -22
- package/es/input/index.js +29 -29
- package/es/input/style/index.css +1 -1
- package/es/input/style/index.js +1 -1
- package/es/input/type.js +1 -1
- package/es/input-number/InputNumber.js +30 -30
- package/es/input-number/StepHandler.js +25 -25
- package/es/input-number/index.js +30 -30
- package/es/input-number/style/index.js +1 -1
- package/es/input-number/type.js +1 -1
- package/es/input-number/utils/numberUtils.js +1 -1
- package/es/layout/Aside.js +22 -22
- package/es/layout/Layout.js +24 -24
- package/es/layout/index.js +24 -24
- package/es/layout/style/index.js +1 -1
- package/es/layout/type.js +1 -1
- package/es/list/List.js +25 -25
- package/es/list/ListItem.js +21 -21
- package/es/list/ListItemMeta.js +21 -21
- package/es/list/index.js +25 -25
- package/es/list/style/index.js +1 -1
- package/es/list/type.js +1 -1
- package/es/loading/Loading.js +25 -25
- package/es/loading/gradient.js +24 -24
- package/es/loading/index.js +25 -25
- package/es/loading/plugin.js +25 -25
- package/es/loading/style/index.js +1 -1
- package/es/loading/type.js +1 -1
- package/es/locale/LocalReceiver.js +25 -25
- package/es/locale/LocalReceiver.js.map +1 -1
- package/es/locale/en_US.js +1 -1
- package/es/locale/zh_CN.js +1 -1
- package/es/menu/HeadMenu.js +28 -28
- package/es/menu/Menu.d.ts +4 -1
- package/es/menu/Menu.js +28 -28
- package/es/menu/MenuContext.js +1 -1
- package/es/menu/MenuGroup.d.ts +5 -1
- package/es/menu/MenuGroup.js +33 -23
- package/es/menu/MenuGroup.js.map +1 -1
- package/es/menu/MenuItem.js +22 -22
- package/es/menu/SubMenu.js +51 -31
- package/es/menu/SubMenu.js.map +1 -1
- package/es/menu/_util/cacularPaddingLeft.js +1 -1
- package/es/menu/_util/checkMenuType.d.ts +1 -0
- package/es/menu/_util/checkMenuType.js +6 -2
- package/es/menu/_util/checkMenuType.js.map +1 -1
- package/es/menu/_util/checkSubMenuActive.js +1 -1
- package/es/menu/_util/checkSubMenuChildExpanded.js +3 -3
- package/es/menu/_util/checkSubMenuChildrenActive.js +1 -1
- package/es/menu/_util/constant.js +1 -1
- package/es/menu/_util/getSubMenuChildStyle.js +4 -3
- package/es/menu/_util/getSubMenuChildStyle.js.map +1 -1
- package/es/menu/_util/type.d.ts +2 -1
- package/es/menu/_util/type.js +2 -1
- package/es/menu/_util/type.js.map +1 -1
- package/es/menu/hooks/useMenuContext.js +6 -6
- package/es/menu/index.d.ts +4 -1
- package/es/menu/index.js +28 -28
- package/es/menu/style/index.css +6 -3
- package/es/menu/style/index.js +1 -1
- package/es/menu/type.js +1 -1
- package/es/message/Message.js +25 -25
- package/es/message/MessageClose.js +21 -21
- package/es/message/MessageComponent.js +25 -25
- package/es/message/MessageIcon.js +25 -25
- package/es/message/const.js +1 -1
- package/es/message/index.js +25 -25
- package/es/message/style/index.js +1 -1
- package/es/message/type.js +1 -1
- package/es/message/useMessageClass.js +21 -21
- package/es/notification/Notification.js +25 -25
- package/es/notification/NotificationList.js +25 -25
- package/es/notification/NotificationPlugin.js +25 -25
- package/es/notification/index.js +25 -25
- package/es/notification/style/index.js +1 -1
- package/es/notification/type.js +1 -1
- package/es/pagination/Pagination.js +41 -41
- package/es/pagination/index.js +41 -41
- package/es/pagination/style/index.js +1 -1
- package/es/pagination/type.js +1 -1
- package/es/pagination/validators.js +1 -1
- package/es/popconfirm/Popconfirm.js +28 -28
- package/es/popconfirm/Popcontent.js +25 -25
- package/es/popconfirm/index.d.ts +0 -1
- package/es/popconfirm/index.js +29 -31
- package/es/popconfirm/index.js.map +1 -1
- package/es/popconfirm/style/index.js +1 -1
- package/es/popconfirm/type.js +1 -1
- package/es/popup/Popup.js +32 -31
- package/es/popup/Popup.js.map +1 -1
- package/es/popup/hooks/useTriggerProps.d.ts +2 -2
- package/es/popup/hooks/useTriggerProps.js +15 -3
- package/es/popup/hooks/useTriggerProps.js.map +1 -1
- package/es/popup/index.js +27 -27
- package/es/popup/style/index.js +1 -1
- package/es/popup/type.js +1 -1
- package/es/popup/utils/getTransitionParams.js +1 -1
- package/es/progress/Progress.js +22 -22
- package/es/progress/index.js +22 -22
- package/es/progress/style/index.js +1 -1
- package/es/progress/type.js +1 -1
- package/es/radio/Radio.js +32 -32
- package/es/radio/RadioGroup.js +32 -32
- package/es/radio/index.js +32 -32
- package/es/radio/style/index.css +3 -0
- package/es/radio/style/index.js +1 -1
- package/es/radio/type.js +1 -1
- package/es/rate/type.js +1 -1
- package/es/select/base/Option.js +27 -27
- package/es/select/base/OptionGroup.js +21 -21
- package/es/select/base/PopupContent.js +31 -31
- package/es/select/base/Select.js +42 -42
- package/es/select/base/Select.js.map +1 -1
- package/es/select/base/style/index.js +1 -1
- package/es/select/index.js +41 -41
- package/es/select/style/index.css +3 -0
- package/es/select/style/index.js +1 -1
- package/es/select/type.js +1 -1
- package/es/select/util/helper.js +29 -29
- package/es/select-input/SelectInput.js +39 -39
- package/es/select-input/index.js +39 -39
- package/es/select-input/style/index.js +1 -1
- package/es/select-input/type.js +1 -1
- package/es/select-input/useMultiple.js +30 -30
- package/es/select-input/useOverlayStyle.js +9 -9
- package/es/select-input/useSingle.js +36 -36
- package/es/skeleton/Skeleton.js +31 -31
- package/es/skeleton/index.js +31 -31
- package/es/skeleton/style/index.js +1 -1
- package/es/skeleton/type.js +1 -1
- package/es/slider/Slider.js +32 -32
- package/es/slider/SliderHandleButton.js +28 -28
- package/es/slider/index.js +32 -32
- package/es/slider/style/index.js +1 -1
- package/es/slider/type.js +1 -1
- package/es/slider/utils/handleNumber.js +1 -1
- package/es/steps/StepItem.js +21 -21
- package/es/steps/Steps.js +21 -21
- package/es/steps/StepsContext.js +1 -1
- package/es/steps/index.js +21 -21
- package/es/steps/style/index.js +1 -1
- package/es/steps/type.js +1 -1
- package/es/sticky-tool/type.js +1 -1
- package/es/style/index.js +1 -1
- package/es/swiper/Swiper.js +23 -23
- package/es/swiper/SwiperItem.js +21 -21
- package/es/swiper/index.js +23 -23
- package/es/swiper/style/index.js +1 -1
- package/es/swiper/type.js +1 -1
- package/es/switch/Switch.js +25 -25
- package/es/switch/index.js +25 -25
- package/es/switch/style/index.js +1 -1
- package/es/switch/type.js +1 -1
- package/es/table/base/Table.js +45 -45
- package/es/table/base/Table.js.map +1 -1
- package/es/table/base/TableAsyncLoadingBody.js +25 -25
- package/es/table/base/TableBody.js +31 -31
- package/es/table/base/TableCell.js +27 -27
- package/es/table/base/TableColGroup.js +1 -1
- package/es/table/base/TableContext.js +1 -1
- package/es/table/base/TableEmptyBody.js +23 -23
- package/es/table/base/TableFooter.js +1 -1
- package/es/table/base/TableHeader.js +29 -29
- package/es/table/base/TableLoadingBody.js +6 -6
- package/es/table/base/TableRow.js +31 -31
- package/es/table/base/style/index.js +1 -1
- package/es/table/enhanced/Table.js +43 -43
- package/es/table/enhanced/TableContext.js +1 -1
- package/es/table/enhanced/style/index.js +1 -1
- package/es/table/enhanced/useTree.js +28 -28
- package/es/table/hooks/useColumns.js +4 -4
- package/es/table/index.js +43 -43
- package/es/table/primary/SorterButton.js +28 -28
- package/es/table/primary/Table.js +43 -43
- package/es/table/primary/expand-box.js +21 -21
- package/es/table/primary/style/index.js +1 -1
- package/es/table/primary/useChange.js +2 -2
- package/es/table/primary/useExpand.js +28 -28
- package/es/table/primary/useFilter.js +35 -35
- package/es/table/primary/useFilterButton.js +35 -35
- package/es/table/primary/useSelect.js +35 -35
- package/es/table/primary/useSorter.js +32 -32
- package/es/table/style/index.js +1 -1
- package/es/table/type.js +1 -1
- package/es/table/util/getRowKeyFromRowKey.js +1 -1
- package/es/table/util/index.d.ts +2 -0
- package/es/table/util/index.js +15 -2
- package/es/table/util/index.js.map +1 -1
- package/es/tabs/TabBar.js +23 -23
- package/es/tabs/TabNav.js +27 -27
- package/es/tabs/TabNavItem.js +22 -22
- package/es/tabs/TabPanel.js +21 -21
- package/es/tabs/Tabs.js +27 -27
- package/es/tabs/index.js +27 -27
- package/es/tabs/style/index.js +1 -1
- package/es/tabs/type.js +1 -1
- package/es/tabs/useTabClass.js +21 -21
- package/es/tag/CheckTag.js +24 -24
- package/es/tag/Tag.js +24 -24
- package/es/tag/index.js +24 -24
- package/es/tag/style/index.js +1 -1
- package/es/tag/type.js +1 -1
- package/es/tag-input/TagInput.js +30 -30
- package/es/tag-input/index.js +30 -30
- package/es/tag-input/style/index.js +1 -1
- package/es/tag-input/type.js +1 -1
- package/es/tag-input/useHover.js +3 -3
- package/es/tag-input/useTagList.js +25 -25
- package/es/tag-input/useTagScroll.js +3 -3
- package/es/textarea/Textarea.js +29 -29
- package/es/textarea/index.js +29 -29
- package/es/textarea/style/index.js +1 -1
- package/es/textarea/type.js +1 -1
- package/es/time-picker/InputItems.js +32 -32
- package/es/time-picker/TimePicker.js +36 -36
- package/es/time-picker/TimeRangePicker.js +36 -36
- package/es/time-picker/consts.js +23 -23
- package/es/time-picker/index.js +36 -36
- package/es/time-picker/interfaces.js +1 -1
- package/es/time-picker/panel/SinglePanel.js +32 -32
- package/es/time-picker/panel/TimePickerPanel.js +34 -34
- package/es/time-picker/panel/TimePickerRangePanel.js +34 -34
- package/es/time-picker/panel/style/index.js +1 -1
- package/es/time-picker/style/index.js +1 -1
- package/es/time-picker/type.js +1 -1
- package/es/tooltip/Tooltip.js +28 -28
- package/es/tooltip/index.js +28 -28
- package/es/tooltip/style/index.js +1 -1
- package/es/tooltip/type.js +1 -1
- package/es/transfer/Transfer.js +46 -46
- package/es/transfer/TransferList.js +44 -44
- package/es/transfer/index.js +46 -46
- package/es/transfer/style/index.js +1 -1
- package/es/transfer/type.js +1 -1
- package/es/transfer/utils.js +18 -18
- package/es/tree/Tree.js +47 -47
- package/es/tree/TreeItem.js +32 -32
- package/es/tree/index.js +47 -47
- package/es/tree/interface.js +1 -1
- package/es/tree/style/index.js +1 -1
- package/es/tree/type.js +1 -1
- package/es/tree/useControllable.js +3 -3
- package/es/tree/useStore.js +41 -41
- package/es/tree/useTreeConfig.js +23 -23
- package/es/tree-select/SelectArrow.js +21 -21
- package/es/tree-select/TreeSelect.js +49 -49
- package/es/tree-select/index.js +49 -49
- package/es/tree-select/style/index.js +1 -1
- package/es/tree-select/type.js +1 -1
- package/es/tree-select/useTreeSelectLocale.js +23 -23
- package/es/tree-select/useTreeSelectPassthoughProps.js +21 -21
- package/es/tree-select/useTreeSelectUtils.js +35 -35
- package/es/upload/boolean-render.js +1 -1
- package/es/upload/dragger.js +25 -25
- package/es/upload/hooks/useDefaultValue.js +7 -7
- package/es/upload/hooks/useSizeLimit.js +23 -23
- package/es/upload/index.js +40 -40
- package/es/upload/style/index.js +1 -1
- package/es/upload/themes/dragger-progress.js +25 -25
- package/es/upload/themes/flow-list/file-list.js +25 -25
- package/es/upload/themes/flow-list/img-list.js +25 -25
- package/es/upload/themes/flow-list/index.js +25 -25
- package/es/upload/themes/flow-list/style/index.js +1 -1
- package/es/upload/themes/image-card.js +26 -26
- package/es/upload/themes/single-file.js +25 -25
- package/es/upload/themes/style/index.js +1 -1
- package/es/upload/tips.js +21 -21
- package/es/upload/type.d.ts +1 -0
- package/es/upload/type.js +1 -1
- package/es/upload/types.js +1 -1
- package/es/upload/upload-trigger.js +25 -25
- package/es/upload/upload.js +42 -41
- package/es/upload/upload.js.map +1 -1
- package/es/upload/util.js +1 -1
- package/{es/_chunks/dep-3f575560.js → esm/_chunks/dep-020d9062.js} +7 -7
- package/esm/_chunks/{dep-3f575560.js.map → dep-020d9062.js.map} +1 -1
- package/esm/_chunks/{dep-2e05f5ac.js → dep-04f71886.js} +4 -4
- package/{es/_chunks/dep-2e05f5ac.js.map → esm/_chunks/dep-04f71886.js.map} +1 -1
- package/esm/_chunks/{dep-05d8d35f.js → dep-0d23bb2c.js} +4 -4
- package/esm/_chunks/{dep-05d8d35f.js.map → dep-0d23bb2c.js.map} +1 -1
- package/{es/_chunks/dep-bd3ee9d1.js → esm/_chunks/dep-1628aaec.js} +2 -2
- package/esm/_chunks/{dep-bd3ee9d1.js.map → dep-1628aaec.js.map} +1 -1
- package/{es/_chunks/dep-8b2f32fa.js → esm/_chunks/dep-1983b4fb.js} +7 -7
- package/{es/_chunks/dep-8b2f32fa.js.map → esm/_chunks/dep-1983b4fb.js.map} +1 -1
- package/{es/_chunks/dep-9b31e9ae.js → esm/_chunks/dep-1afd7695.js} +8 -8
- package/esm/_chunks/{dep-9b31e9ae.js.map → dep-1afd7695.js.map} +1 -1
- package/esm/_chunks/{dep-426b7562.js → dep-1ff453c7.js} +4 -4
- package/esm/_chunks/{dep-426b7562.js.map → dep-1ff453c7.js.map} +1 -1
- package/esm/_chunks/{dep-354ea021.js → dep-21405614.js} +5 -5
- package/esm/_chunks/{dep-354ea021.js.map → dep-21405614.js.map} +1 -1
- package/esm/_chunks/{dep-82106277.js → dep-33d8a0b4.js} +7 -7
- package/esm/_chunks/{dep-82106277.js.map → dep-33d8a0b4.js.map} +1 -1
- package/esm/_chunks/{dep-10ae3f83.js → dep-3ac0dcc3.js} +16 -16
- package/{es/_chunks/dep-10ae3f83.js.map → esm/_chunks/dep-3ac0dcc3.js.map} +1 -1
- package/{es/_chunks/dep-796b0236.js → esm/_chunks/dep-3cf23cb4.js} +3 -3
- package/esm/_chunks/{dep-796b0236.js.map → dep-3cf23cb4.js.map} +1 -1
- package/esm/_chunks/{dep-673f08f9.js → dep-4abdf74c.js} +13 -13
- package/{es/_chunks/dep-673f08f9.js.map → esm/_chunks/dep-4abdf74c.js.map} +1 -1
- package/{es/_chunks/dep-371be827.js → esm/_chunks/dep-4b59c7d8.js} +9 -9
- package/esm/_chunks/{dep-371be827.js.map → dep-4b59c7d8.js.map} +1 -1
- package/esm/_chunks/{dep-4a9203a3.js → dep-51bc4b09.js} +3 -3
- package/esm/_chunks/{dep-4a9203a3.js.map → dep-51bc4b09.js.map} +1 -1
- package/{es/_chunks/dep-211f9530.js → esm/_chunks/dep-52fa543d.js} +5 -5
- package/esm/_chunks/{dep-211f9530.js.map → dep-52fa543d.js.map} +1 -1
- package/esm/_chunks/{dep-39b8442f.js → dep-58105e8f.js} +8 -8
- package/{es/_chunks/dep-39b8442f.js.map → esm/_chunks/dep-58105e8f.js.map} +1 -1
- package/esm/_chunks/{dep-568bb4f4.js → dep-5e457cfd.js} +5 -5
- package/{es/_chunks/dep-568bb4f4.js.map → esm/_chunks/dep-5e457cfd.js.map} +1 -1
- package/esm/_chunks/dep-63ed508e.js +8 -0
- package/esm/_chunks/dep-63ed508e.js.map +1 -0
- package/esm/_chunks/{dep-47239be8.js → dep-65e835d0.js} +4 -4
- package/esm/_chunks/{dep-47239be8.js.map → dep-65e835d0.js.map} +1 -1
- package/{es/_chunks/dep-e224ea99.js → esm/_chunks/dep-6bf856c2.js} +3 -3
- package/esm/_chunks/{dep-e224ea99.js.map → dep-6bf856c2.js.map} +1 -1
- package/{es/_chunks/dep-d9edda2f.js → esm/_chunks/dep-6e3f1697.js} +7 -7
- package/esm/_chunks/{dep-d9edda2f.js.map → dep-6e3f1697.js.map} +1 -1
- package/{es/_chunks/dep-28fdda42.js → esm/_chunks/dep-6eb85770.js} +5 -5
- package/esm/_chunks/{dep-28fdda42.js.map → dep-6eb85770.js.map} +1 -1
- package/esm/_chunks/dep-76405800.js +1173 -0
- package/esm/_chunks/dep-76405800.js.map +1 -0
- package/esm/_chunks/{dep-1c3bd64c.js → dep-77be4a53.js} +9 -9
- package/esm/_chunks/{dep-1c3bd64c.js.map → dep-77be4a53.js.map} +1 -1
- package/{es/_chunks/dep-8b1f8aca.js → esm/_chunks/dep-84f5ab8c.js} +8 -8
- package/esm/_chunks/{dep-8b1f8aca.js.map → dep-84f5ab8c.js.map} +1 -1
- package/{es/_chunks/dep-cd0c410d.js → esm/_chunks/dep-85a9595a.js} +2 -2
- package/esm/_chunks/{dep-cd0c410d.js.map → dep-85a9595a.js.map} +1 -1
- package/{es/_chunks/dep-9b782fb7.js → esm/_chunks/dep-8702aba9.js} +2 -2
- package/esm/_chunks/dep-8702aba9.js.map +1 -0
- package/{es/_chunks/dep-398804ba.js → esm/_chunks/dep-8efaaac0.js} +2 -2
- package/esm/_chunks/{dep-398804ba.js.map → dep-8efaaac0.js.map} +1 -1
- package/esm/_chunks/{dep-b656a4b4.js → dep-926c2765.js} +2 -2
- package/esm/_chunks/{dep-b656a4b4.js.map → dep-926c2765.js.map} +1 -1
- package/{es/_chunks/dep-58a07693.js → esm/_chunks/dep-9421c3f3.js} +6 -6
- package/{es/_chunks/dep-58a07693.js.map → esm/_chunks/dep-9421c3f3.js.map} +1 -1
- package/esm/_chunks/{dep-1e9e8faf.js → dep-9b67144e.js} +4 -4
- package/esm/_chunks/{dep-1e9e8faf.js.map → dep-9b67144e.js.map} +1 -1
- package/{es/_chunks/dep-c93767bb.js → esm/_chunks/dep-9b86e5e7.js} +4 -4
- package/esm/_chunks/{dep-c93767bb.js.map → dep-9b86e5e7.js.map} +1 -1
- package/esm/_chunks/{dep-d79a44fc.js → dep-aca05d9d.js} +3 -3
- package/esm/_chunks/{dep-d79a44fc.js.map → dep-aca05d9d.js.map} +1 -1
- package/{es/_chunks/dep-ee616e77.js → esm/_chunks/dep-ae52f85e.js} +3 -3
- package/{es/_chunks/dep-ee616e77.js.map → esm/_chunks/dep-ae52f85e.js.map} +1 -1
- package/esm/_chunks/{dep-7abfc588.js → dep-b2dbb167.js} +16 -16
- package/{es/_chunks/dep-7abfc588.js.map → esm/_chunks/dep-b2dbb167.js.map} +1 -1
- package/{es/_chunks/dep-ef563605.js → esm/_chunks/dep-be94af1f.js} +6 -6
- package/{es/_chunks/dep-ef563605.js.map → esm/_chunks/dep-be94af1f.js.map} +1 -1
- package/esm/_chunks/{dep-e70b3b8f.js → dep-c2678a9e.js} +4 -4
- package/esm/_chunks/{dep-e70b3b8f.js.map → dep-c2678a9e.js.map} +1 -1
- package/esm/_chunks/{dep-616db5ce.js → dep-c7d0e14d.js} +8 -8
- package/esm/_chunks/{dep-616db5ce.js.map → dep-c7d0e14d.js.map} +1 -1
- package/esm/_chunks/{dep-78ad0681.js → dep-c9e242b1.js} +7 -7
- package/esm/_chunks/{dep-78ad0681.js.map → dep-c9e242b1.js.map} +1 -1
- package/esm/_chunks/{dep-af7047b3.js → dep-cf0a5e4d.js} +5 -5
- package/{es/_chunks/dep-af7047b3.js.map → esm/_chunks/dep-cf0a5e4d.js.map} +1 -1
- package/esm/_chunks/{dep-5377fc0d.js → dep-d038aaf3.js} +3 -3
- package/esm/_chunks/{dep-5377fc0d.js.map → dep-d038aaf3.js.map} +1 -1
- package/{es/_chunks/dep-e7b4c475.js → esm/_chunks/dep-d51fd958.js} +5 -5
- package/esm/_chunks/{dep-e7b4c475.js.map → dep-d51fd958.js.map} +1 -1
- package/esm/_chunks/{dep-2425508a.js → dep-d539b435.js} +4 -4
- package/esm/_chunks/{dep-2425508a.js.map → dep-d539b435.js.map} +1 -1
- package/{es/_chunks/dep-b5a24b70.js → esm/_chunks/dep-db65b23a.js} +3 -3
- package/esm/_chunks/{dep-b5a24b70.js.map → dep-db65b23a.js.map} +1 -1
- package/esm/_chunks/{dep-d3cfe7b4.js → dep-db8880c0.js} +4 -4
- package/esm/_chunks/{dep-d3cfe7b4.js.map → dep-db8880c0.js.map} +1 -1
- package/esm/_chunks/{dep-4354c99f.js → dep-de277644.js} +5 -5
- package/{es/_chunks/dep-4354c99f.js.map → esm/_chunks/dep-de277644.js.map} +1 -1
- package/esm/_chunks/{dep-f12445cb.js → dep-e0790d2e.js} +5 -5
- package/{es/_chunks/dep-f12445cb.js.map → esm/_chunks/dep-e0790d2e.js.map} +1 -1
- package/esm/_chunks/{dep-c4aaac6e.js → dep-e0bd8416.js} +9 -9
- package/{es/_chunks/dep-c4aaac6e.js.map → esm/_chunks/dep-e0bd8416.js.map} +1 -1
- package/esm/_chunks/{dep-2d2ae6d5.js → dep-e2d47979.js} +7 -7
- package/{es/_chunks/dep-2d2ae6d5.js.map → esm/_chunks/dep-e2d47979.js.map} +1 -1
- package/{es/_chunks/dep-2df90fdd.js → esm/_chunks/dep-ea842483.js} +2 -2
- package/esm/_chunks/{dep-2df90fdd.js.map → dep-ea842483.js.map} +1 -1
- package/{es/_chunks/dep-2c0d0d7c.js → esm/_chunks/dep-eda9548e.js} +11 -11
- package/{es/_chunks/dep-2c0d0d7c.js.map → esm/_chunks/dep-eda9548e.js.map} +1 -1
- package/esm/_chunks/{dep-a7b4fee7.js → dep-ef21605a.js} +4 -4
- package/esm/_chunks/{dep-a7b4fee7.js.map → dep-ef21605a.js.map} +1 -1
- package/esm/_chunks/{dep-4481f97c.js → dep-f5215b0d.js} +6 -6
- package/{es/_chunks/dep-4481f97c.js.map → esm/_chunks/dep-f5215b0d.js.map} +1 -1
- package/esm/_chunks/{dep-f9c897fd.js → dep-f8ba4931.js} +4 -4
- package/esm/_chunks/{dep-f9c897fd.js.map → dep-f8ba4931.js.map} +1 -1
- package/esm/_chunks/{dep-92dd3e9f.js → dep-fb1b2241.js} +6 -6
- package/esm/_chunks/{dep-92dd3e9f.js.map → dep-fb1b2241.js.map} +1 -1
- package/{es/_chunks/dep-94e9d25d.js → esm/_chunks/dep-fd1b4e24.js} +6 -6
- package/esm/_chunks/{dep-94e9d25d.js.map → dep-fd1b4e24.js.map} +1 -1
- package/esm/_common/js/color-picker/cmyk.js +1 -1
- package/esm/_common/js/color-picker/color.js +5 -5
- package/esm/_common/js/color-picker/draggable.js +3 -3
- package/esm/_common/js/color-picker/gradient.js +1 -1
- package/esm/_common/js/color-picker/index.js +5 -5
- package/esm/_common/js/common.js +1 -1
- package/esm/_common/js/date-picker/utils.d.ts +2 -2
- package/esm/_common/js/date-picker/utils.js +26 -16
- package/esm/_common/js/date-picker/utils.js.map +1 -1
- package/esm/_common/js/global-config/default-config.js +1 -1
- package/esm/_common/js/global-config/locale/en_US.js +1 -1
- package/esm/_common/js/global-config/locale/zh_CN.js +1 -1
- package/esm/_common/js/loading/circle-adapter.js +5 -5
- package/esm/_common/js/log/index.js +1 -1
- package/esm/_common/js/log/log.js +1 -1
- package/esm/_common/js/log/types.js +1 -1
- package/esm/_common/js/tabs/base.js +1 -1
- package/esm/_common/js/tree/tree-node-model.js +22 -22
- package/esm/_common/js/tree/tree-node.js +27 -27
- package/esm/_common/js/tree/tree-store.js +35 -35
- package/esm/_common/js/tree/types.js +1 -1
- package/esm/_common/js/upload/types.js +1 -1
- package/esm/_common/js/upload/utils.js +2 -2
- package/esm/_common/js/upload/xhr.js +1 -1
- package/esm/_common/js/utils/calcTextareaHeight.js +5 -5
- package/esm/_common/js/utils/getScrollbarWidth.js +1 -1
- package/esm/_common/js/utils/helper.js +5 -5
- package/esm/_common/js/utils/observe.js +1 -1
- package/esm/_common/js/utils/set-style.js +1 -1
- package/esm/_common/style/web/components/_docs.less +1 -1
- package/esm/_common/style/web/components/_index.less +1 -1
- package/esm/_common/style/web/components/card/_index.less +50 -19
- package/esm/_common/style/web/components/card/_var.less +8 -13
- package/esm/_common/style/web/components/comment/_var.less +1 -1
- package/esm/_common/style/web/components/form/_index.less +10 -23
- package/esm/_common/style/web/components/form/_var.less +4 -3
- package/esm/_common/style/web/components/input/_var.less +1 -1
- package/esm/_common/style/web/components/menu/_index.less +3 -1
- package/esm/_common/style/web/components/menu/_var.less +1 -1
- package/esm/_common/style/web/components/radio/_index.less +1 -0
- package/esm/_common/style/web/components/select/_index.less +3 -0
- package/esm/_util/callBoth.js +1 -1
- package/esm/_util/composeRefs.js +1 -1
- package/esm/_util/dom.js +8 -8
- package/esm/_util/easing.js +1 -1
- package/esm/_util/forwardRefWithStatics.js +1 -1
- package/esm/_util/getScrollbarWidth.js +1 -1
- package/esm/_util/hasScrollBar.js +1 -1
- package/esm/_util/helper.js +16 -16
- package/esm/_util/injectValue.js +1 -1
- package/esm/_util/insertCSS.js +1 -1
- package/esm/_util/isCallable.js +1 -1
- package/esm/_util/linearGradient.js +2 -2
- package/esm/_util/noop.js +1 -1
- package/esm/_util/number.d.ts +3 -3
- package/esm/_util/number.js +27 -36
- package/esm/_util/number.js.map +1 -1
- package/esm/_util/renderTNode.js +1 -1
- package/esm/_util/setStyle.js +1 -1
- package/esm/_util/useAnimation.js +21 -21
- package/esm/_util/useClickOutside.js +1 -1
- package/esm/_util/useCommonClassName.js +21 -21
- package/esm/_util/useConfig.d.ts +2 -2
- package/esm/_util/useConfig.js +21 -21
- package/esm/_util/useConfig.js.map +1 -1
- package/esm/_util/useDefault.js +3 -3
- package/esm/_util/useDefaultValue.js +5 -5
- package/esm/_util/useDialogEsc.js +3 -3
- package/esm/_util/useDragSorter.js +3 -3
- package/esm/_util/useLayoutEffect.js +8 -8
- package/esm/_util/useMutationObserver.js +9 -9
- package/esm/_util/usePersistFn.js +1 -1
- package/esm/_util/usePrevious.js +1 -1
- package/esm/_util/useRefAndForward.js +1 -1
- package/esm/_util/useRipple.js +22 -22
- package/esm/_util/useSetState.js +4 -4
- package/esm/_util/useSwitch.js +3 -3
- package/esm/_util/useUpdateEffect.js +8 -8
- package/esm/_util/useWindowSize.js +11 -11
- package/esm/addon/Addon.js +22 -22
- package/esm/addon/index.js +22 -22
- package/esm/affix/Affix.js +24 -24
- package/esm/affix/index.js +24 -24
- package/esm/affix/type.js +1 -1
- package/esm/alert/Alert.js +24 -24
- package/esm/alert/index.js +24 -24
- package/esm/alert/type.js +1 -1
- package/esm/anchor/Anchor.js +30 -30
- package/esm/anchor/AnchorContext.js +1 -1
- package/esm/anchor/AnchorItem.js +22 -22
- package/esm/anchor/AnchorTarget.js +28 -28
- package/esm/anchor/_util/clipboard.js +1 -1
- package/esm/anchor/_util/dom.js +1 -1
- package/esm/anchor/index.js +30 -30
- package/esm/anchor/type.js +1 -1
- package/esm/avatar/AvararGroup.js +29 -29
- package/esm/avatar/Avatar.js +29 -29
- package/esm/avatar/AvatarContext.js +1 -1
- package/esm/avatar/index.js +29 -29
- package/esm/avatar/type.js +1 -1
- package/esm/badge/Badge.js +22 -22
- package/esm/badge/index.js +22 -22
- package/esm/badge/type.js +1 -1
- package/esm/breadcrumb/Breadcrumb.js +26 -25
- package/esm/breadcrumb/Breadcrumb.js.map +1 -1
- package/esm/breadcrumb/BreadcrumbContext.js +1 -1
- package/esm/breadcrumb/BreadcrumbItem.js +25 -24
- package/esm/breadcrumb/BreadcrumbItem.js.map +1 -1
- package/esm/breadcrumb/BreadcrumbProps.js +1 -1
- package/esm/breadcrumb/index.js +23 -23
- package/esm/breadcrumb/type.js +1 -1
- package/esm/button/Button.js +25 -25
- package/esm/button/index.js +25 -25
- package/esm/button/type.js +1 -1
- package/esm/calendar/Calendar.js +42 -42
- package/esm/calendar/_util.js +1 -1
- package/esm/calendar/index.js +42 -42
- package/esm/calendar/type.js +1 -1
- package/esm/card/type.d.ts +45 -2
- package/esm/card/type.js +1 -1
- package/esm/cascader/Cascader.js +48 -48
- package/esm/cascader/components/InputContent.js +32 -31
- package/esm/cascader/components/InputContent.js.map +1 -1
- package/esm/cascader/components/Item.js +46 -52
- package/esm/cascader/components/Item.js.map +1 -1
- package/esm/cascader/components/Panel.js +35 -35
- package/esm/cascader/index.js +48 -48
- package/esm/cascader/interface.js +27 -27
- package/esm/cascader/type.js +1 -1
- package/esm/cascader/utils/cascader.js +4 -4
- package/esm/cascader/utils/helper.d.ts +5 -0
- package/esm/cascader/utils/helper.js +6 -3
- package/esm/cascader/utils/helper.js.map +1 -1
- package/esm/cascader/utils/inputContent.js +21 -25
- package/esm/cascader/utils/inputContent.js.map +1 -1
- package/esm/cascader/utils/item.d.ts +2 -2
- package/esm/cascader/utils/item.js +6 -6
- package/esm/cascader/utils/item.js.map +1 -1
- package/esm/cascader/utils/panel.js +8 -8
- package/esm/checkbox/Checkbox.js +31 -31
- package/esm/checkbox/CheckboxGroup.js +31 -31
- package/esm/checkbox/index.js +31 -31
- package/esm/checkbox/type.js +1 -1
- package/esm/comment/Comment.js +21 -21
- package/esm/comment/index.js +21 -21
- package/esm/comment/type.js +1 -1
- package/esm/common/Check.js +29 -29
- package/esm/common/FakeArrow.js +21 -21
- package/esm/common/Portal.d.ts +4 -0
- package/esm/common/Portal.js +26 -25
- package/esm/common/Portal.js.map +1 -1
- package/esm/common.js +1 -1
- package/esm/config-provider/ConfigContext.d.ts +5 -370
- package/esm/config-provider/ConfigContext.js +21 -21
- package/esm/config-provider/ConfigProvider.d.ts +3 -185
- package/esm/config-provider/ConfigProvider.js +21 -21
- package/esm/config-provider/ConfigProvider.js.map +1 -1
- package/esm/config-provider/en_US_config.js +1 -1
- package/esm/config-provider/index.js +21 -21
- package/esm/config-provider/type.d.ts +1 -1
- package/esm/config-provider/type.js +1 -1
- package/esm/config-provider/zh_CN_config.js +1 -1
- package/esm/date-picker/DatePicker.js +37 -37
- package/esm/date-picker/DatePicker.js.map +1 -1
- package/esm/date-picker/base/CalendarPresets.js +25 -25
- package/esm/date-picker/base/Cell.js +21 -21
- package/esm/date-picker/base/Header.js +25 -25
- package/esm/date-picker/base/Table.js +23 -23
- package/esm/date-picker/index.js +35 -35
- package/esm/date-picker/panel/Date.js +29 -29
- package/esm/date-picker/panel/DateRange.js +29 -29
- package/esm/date-picker/type.js +1 -1
- package/esm/dialog/Dialog.js +37 -29
- package/esm/dialog/Dialog.js.map +1 -1
- package/esm/dialog/RenderDialog.d.ts +1 -1
- package/esm/dialog/RenderDialog.js +44 -30
- package/esm/dialog/RenderDialog.js.map +1 -1
- package/esm/dialog/index.js +26 -26
- package/esm/dialog/plugin.js +33 -28
- package/esm/dialog/plugin.js.map +1 -1
- package/esm/dialog/type.js +1 -1
- package/esm/divider/Divider.js +22 -22
- package/esm/divider/index.js +22 -22
- package/esm/divider/type.js +1 -1
- package/esm/drawer/Drawer.js +25 -25
- package/esm/drawer/DrawerWrapper.js +22 -22
- package/esm/drawer/index.js +25 -25
- package/esm/drawer/type.js +1 -1
- package/esm/dropdown/Dropdown.js +40 -40
- package/esm/dropdown/DropdownItem.js +30 -30
- package/esm/dropdown/DropdownMenu.js +31 -31
- package/esm/dropdown/index.js +40 -40
- package/esm/dropdown/type.js +1 -1
- package/esm/form/Form.d.ts +5 -1
- package/esm/form/Form.js +56 -57
- package/esm/form/Form.js.map +1 -1
- package/esm/form/FormContext.d.ts +14 -5
- package/esm/form/FormContext.js +12 -5
- package/esm/form/FormContext.js.map +1 -1
- package/esm/form/FormItem.d.ts +16 -1
- package/esm/form/FormItem.js +56 -1089
- package/esm/form/FormItem.js.map +1 -1
- package/esm/form/FormList.d.ts +7 -0
- package/esm/form/FormList.js +280 -0
- package/esm/form/FormList.js.map +1 -0
- package/esm/form/formModel.js +27 -27
- package/esm/form/hooks/useFormItemStyle.d.ts +7 -0
- package/esm/form/hooks/useFormItemStyle.js +128 -0
- package/esm/form/hooks/useFormItemStyle.js.map +1 -0
- package/esm/form/hooks/useInstance.d.ts +2 -1
- package/esm/form/hooks/useInstance.js +89 -89
- package/esm/form/hooks/useInstance.js.map +1 -1
- package/esm/form/index.d.ts +5 -1
- package/esm/form/index.js +48 -47
- package/esm/form/index.js.map +1 -1
- package/esm/form/type.d.ts +33 -7
- package/esm/form/type.js +1 -1
- package/esm/grid/Col.js +22 -22
- package/esm/grid/Row.js +25 -25
- package/esm/grid/index.js +25 -25
- package/esm/grid/type.js +1 -1
- package/esm/index.js +59 -59
- package/esm/input/Input.js +29 -29
- package/esm/input/InputGroup.js +22 -22
- package/esm/input/index.js +29 -29
- package/esm/input/type.js +1 -1
- package/esm/input-number/InputNumber.js +30 -30
- package/esm/input-number/StepHandler.js +25 -25
- package/esm/input-number/index.js +30 -30
- package/esm/input-number/type.js +1 -1
- package/esm/input-number/utils/numberUtils.js +1 -1
- package/esm/layout/Aside.js +22 -22
- package/esm/layout/Layout.js +24 -24
- package/esm/layout/index.js +24 -24
- package/esm/layout/type.js +1 -1
- package/esm/list/List.js +25 -25
- package/esm/list/ListItem.js +21 -21
- package/esm/list/ListItemMeta.js +21 -21
- package/esm/list/index.js +25 -25
- package/esm/list/type.js +1 -1
- package/esm/loading/Loading.js +25 -25
- package/esm/loading/gradient.js +24 -24
- package/esm/loading/index.js +25 -25
- package/esm/loading/plugin.js +25 -25
- package/esm/loading/type.js +1 -1
- package/esm/locale/LocalReceiver.js +25 -25
- package/esm/locale/LocalReceiver.js.map +1 -1
- package/esm/locale/en_US.js +1 -1
- package/esm/locale/zh_CN.js +1 -1
- package/esm/menu/HeadMenu.js +28 -28
- package/esm/menu/Menu.d.ts +4 -1
- package/esm/menu/Menu.js +28 -28
- package/esm/menu/MenuContext.js +1 -1
- package/esm/menu/MenuGroup.d.ts +5 -1
- package/esm/menu/MenuGroup.js +33 -23
- package/esm/menu/MenuGroup.js.map +1 -1
- package/esm/menu/MenuItem.js +22 -22
- package/esm/menu/SubMenu.js +51 -31
- package/esm/menu/SubMenu.js.map +1 -1
- package/esm/menu/_util/cacularPaddingLeft.js +1 -1
- package/esm/menu/_util/checkMenuType.d.ts +1 -0
- package/esm/menu/_util/checkMenuType.js +6 -2
- package/esm/menu/_util/checkMenuType.js.map +1 -1
- package/esm/menu/_util/checkSubMenuActive.js +1 -1
- package/esm/menu/_util/checkSubMenuChildExpanded.js +3 -3
- package/esm/menu/_util/checkSubMenuChildrenActive.js +1 -1
- package/esm/menu/_util/constant.js +1 -1
- package/esm/menu/_util/getSubMenuChildStyle.js +4 -3
- package/esm/menu/_util/getSubMenuChildStyle.js.map +1 -1
- package/esm/menu/_util/type.d.ts +2 -1
- package/esm/menu/_util/type.js +2 -1
- package/esm/menu/_util/type.js.map +1 -1
- package/esm/menu/hooks/useMenuContext.js +6 -6
- package/esm/menu/index.d.ts +4 -1
- package/esm/menu/index.js +28 -28
- package/esm/menu/type.js +1 -1
- package/esm/message/Message.js +25 -25
- package/esm/message/MessageClose.js +21 -21
- package/esm/message/MessageComponent.js +25 -25
- package/esm/message/MessageIcon.js +25 -25
- package/esm/message/const.js +1 -1
- package/esm/message/index.js +25 -25
- package/esm/message/type.js +1 -1
- package/esm/message/useMessageClass.js +21 -21
- package/esm/notification/Notification.js +25 -25
- package/esm/notification/NotificationList.js +25 -25
- package/esm/notification/NotificationPlugin.js +25 -25
- package/esm/notification/index.js +25 -25
- package/esm/notification/type.js +1 -1
- package/esm/pagination/Pagination.js +41 -41
- package/esm/pagination/index.js +41 -41
- package/esm/pagination/type.js +1 -1
- package/esm/pagination/validators.js +1 -1
- package/esm/popconfirm/Popconfirm.js +28 -28
- package/esm/popconfirm/Popcontent.js +25 -25
- package/esm/popconfirm/index.d.ts +0 -1
- package/esm/popconfirm/index.js +29 -31
- package/esm/popconfirm/index.js.map +1 -1
- package/esm/popconfirm/type.js +1 -1
- package/esm/popup/Popup.js +32 -31
- package/esm/popup/Popup.js.map +1 -1
- package/esm/popup/hooks/useTriggerProps.d.ts +2 -2
- package/esm/popup/hooks/useTriggerProps.js +15 -3
- package/esm/popup/hooks/useTriggerProps.js.map +1 -1
- package/esm/popup/index.js +27 -27
- package/esm/popup/type.js +1 -1
- package/esm/popup/utils/getTransitionParams.js +1 -1
- package/esm/progress/Progress.js +22 -22
- package/esm/progress/index.js +22 -22
- package/esm/progress/type.js +1 -1
- package/esm/radio/Radio.js +32 -32
- package/esm/radio/RadioGroup.js +32 -32
- package/esm/radio/index.js +32 -32
- package/esm/radio/type.js +1 -1
- package/esm/rate/type.js +1 -1
- package/esm/select/base/Option.js +27 -27
- package/esm/select/base/OptionGroup.js +21 -21
- package/esm/select/base/PopupContent.js +31 -31
- package/esm/select/base/Select.js +42 -42
- package/esm/select/base/Select.js.map +1 -1
- package/esm/select/index.js +41 -41
- package/esm/select/type.js +1 -1
- package/esm/select/util/helper.js +29 -29
- package/esm/select-input/SelectInput.js +39 -39
- package/esm/select-input/index.js +39 -39
- package/esm/select-input/type.js +1 -1
- package/esm/select-input/useMultiple.js +30 -30
- package/esm/select-input/useOverlayStyle.js +9 -9
- package/esm/select-input/useSingle.js +36 -36
- package/esm/skeleton/Skeleton.js +31 -31
- package/esm/skeleton/index.js +31 -31
- package/esm/skeleton/type.js +1 -1
- package/esm/slider/Slider.js +32 -32
- package/esm/slider/SliderHandleButton.js +28 -28
- package/esm/slider/index.js +32 -32
- package/esm/slider/type.js +1 -1
- package/esm/slider/utils/handleNumber.js +1 -1
- package/esm/steps/StepItem.js +21 -21
- package/esm/steps/Steps.js +21 -21
- package/esm/steps/StepsContext.js +1 -1
- package/esm/steps/index.js +21 -21
- package/esm/steps/type.js +1 -1
- package/esm/sticky-tool/type.js +1 -1
- package/esm/swiper/Swiper.js +23 -23
- package/esm/swiper/SwiperItem.js +21 -21
- package/esm/swiper/index.js +23 -23
- package/esm/swiper/type.js +1 -1
- package/esm/switch/Switch.js +25 -25
- package/esm/switch/index.js +25 -25
- package/esm/switch/type.js +1 -1
- package/esm/table/base/Table.js +45 -45
- package/esm/table/base/Table.js.map +1 -1
- package/esm/table/base/TableAsyncLoadingBody.js +25 -25
- package/esm/table/base/TableBody.js +31 -31
- package/esm/table/base/TableCell.js +27 -27
- package/esm/table/base/TableColGroup.js +1 -1
- package/esm/table/base/TableContext.js +1 -1
- package/esm/table/base/TableEmptyBody.js +23 -23
- package/esm/table/base/TableFooter.js +1 -1
- package/esm/table/base/TableHeader.js +29 -29
- package/esm/table/base/TableLoadingBody.js +6 -6
- package/esm/table/base/TableRow.js +31 -31
- package/esm/table/enhanced/Table.js +43 -43
- package/esm/table/enhanced/TableContext.js +1 -1
- package/esm/table/enhanced/useTree.js +28 -28
- package/esm/table/hooks/useColumns.js +4 -4
- package/esm/table/index.js +43 -43
- package/esm/table/primary/SorterButton.js +28 -28
- package/esm/table/primary/Table.js +43 -43
- package/esm/table/primary/expand-box.js +21 -21
- package/esm/table/primary/useChange.js +2 -2
- package/esm/table/primary/useExpand.js +28 -28
- package/esm/table/primary/useFilter.js +35 -35
- package/esm/table/primary/useFilterButton.js +35 -35
- package/esm/table/primary/useSelect.js +35 -35
- package/esm/table/primary/useSorter.js +32 -32
- package/esm/table/type.js +1 -1
- package/esm/table/util/getRowKeyFromRowKey.js +1 -1
- package/esm/table/util/index.d.ts +2 -0
- package/esm/table/util/index.js +15 -2
- package/esm/table/util/index.js.map +1 -1
- package/esm/tabs/TabBar.js +23 -23
- package/esm/tabs/TabNav.js +27 -27
- package/esm/tabs/TabNavItem.js +22 -22
- package/esm/tabs/TabPanel.js +21 -21
- package/esm/tabs/Tabs.js +27 -27
- package/esm/tabs/index.js +27 -27
- package/esm/tabs/type.js +1 -1
- package/esm/tabs/useTabClass.js +21 -21
- package/esm/tag/CheckTag.js +24 -24
- package/esm/tag/Tag.js +24 -24
- package/esm/tag/index.js +24 -24
- package/esm/tag/type.js +1 -1
- package/esm/tag-input/TagInput.js +30 -30
- package/esm/tag-input/index.js +30 -30
- package/esm/tag-input/type.js +1 -1
- package/esm/tag-input/useHover.js +3 -3
- package/esm/tag-input/useTagList.js +25 -25
- package/esm/tag-input/useTagScroll.js +3 -3
- package/esm/textarea/Textarea.js +29 -29
- package/esm/textarea/index.js +29 -29
- package/esm/textarea/type.js +1 -1
- package/esm/time-picker/InputItems.js +32 -32
- package/esm/time-picker/TimePicker.js +36 -36
- package/esm/time-picker/TimeRangePicker.js +36 -36
- package/esm/time-picker/consts.js +23 -23
- package/esm/time-picker/index.js +36 -36
- package/esm/time-picker/interfaces.js +1 -1
- package/esm/time-picker/panel/SinglePanel.js +32 -32
- package/esm/time-picker/panel/TimePickerPanel.js +34 -34
- package/esm/time-picker/panel/TimePickerRangePanel.js +34 -34
- package/esm/time-picker/type.js +1 -1
- package/esm/tooltip/Tooltip.js +28 -28
- package/esm/tooltip/index.js +28 -28
- package/esm/tooltip/type.js +1 -1
- package/esm/transfer/Transfer.js +46 -46
- package/esm/transfer/TransferList.js +44 -44
- package/esm/transfer/index.js +46 -46
- package/esm/transfer/type.js +1 -1
- package/esm/transfer/utils.js +18 -18
- package/esm/tree/Tree.js +47 -47
- package/esm/tree/TreeItem.js +32 -32
- package/esm/tree/index.js +47 -47
- package/esm/tree/interface.js +1 -1
- package/esm/tree/type.js +1 -1
- package/esm/tree/useControllable.js +3 -3
- package/esm/tree/useStore.js +41 -41
- package/esm/tree/useTreeConfig.js +23 -23
- package/esm/tree-select/SelectArrow.js +21 -21
- package/esm/tree-select/TreeSelect.js +49 -49
- package/esm/tree-select/index.js +49 -49
- package/esm/tree-select/type.js +1 -1
- package/esm/tree-select/useTreeSelectLocale.js +23 -23
- package/esm/tree-select/useTreeSelectPassthoughProps.js +21 -21
- package/esm/tree-select/useTreeSelectUtils.js +35 -35
- package/esm/upload/boolean-render.js +1 -1
- package/esm/upload/dragger.js +25 -25
- package/esm/upload/hooks/useDefaultValue.js +7 -7
- package/esm/upload/hooks/useSizeLimit.js +23 -23
- package/esm/upload/index.js +40 -40
- package/esm/upload/themes/dragger-progress.js +25 -25
- package/esm/upload/themes/flow-list/file-list.js +25 -25
- package/esm/upload/themes/flow-list/img-list.js +25 -25
- package/esm/upload/themes/flow-list/index.js +25 -25
- package/esm/upload/themes/image-card.js +26 -26
- package/esm/upload/themes/single-file.js +25 -25
- package/esm/upload/tips.js +21 -21
- package/esm/upload/type.d.ts +1 -0
- package/esm/upload/type.js +1 -1
- package/esm/upload/types.js +1 -1
- package/esm/upload/upload-trigger.js +25 -25
- package/esm/upload/upload.js +42 -41
- package/esm/upload/upload.js.map +1 -1
- package/esm/upload/util.js +1 -1
- package/lib/_chunks/{dep-4d49e825.js → dep-0cd38120.js} +4 -4
- package/lib/_chunks/{dep-4d49e825.js.map → dep-0cd38120.js.map} +1 -1
- package/lib/_chunks/dep-0d589123.js +1181 -0
- package/lib/_chunks/dep-0d589123.js.map +1 -0
- package/lib/_chunks/{dep-bc2f7f97.js → dep-129ff8e6.js} +7 -7
- package/lib/_chunks/{dep-bc2f7f97.js.map → dep-129ff8e6.js.map} +1 -1
- package/lib/_chunks/{dep-34c382d3.js → dep-1d9e349d.js} +6 -6
- package/lib/_chunks/{dep-34c382d3.js.map → dep-1d9e349d.js.map} +1 -1
- package/lib/_chunks/{dep-3bd0d635.js → dep-28247ec2.js} +3 -3
- package/lib/_chunks/{dep-3bd0d635.js.map → dep-28247ec2.js.map} +1 -1
- package/lib/_chunks/{dep-23aa2ff1.js → dep-2b79d34a.js} +7 -7
- package/lib/_chunks/{dep-23aa2ff1.js.map → dep-2b79d34a.js.map} +1 -1
- package/lib/_chunks/{dep-11052fbb.js → dep-2f5bd56c.js} +5 -5
- package/lib/_chunks/{dep-11052fbb.js.map → dep-2f5bd56c.js.map} +1 -1
- package/lib/_chunks/{dep-4e59ea3f.js → dep-30bc8f66.js} +3 -3
- package/lib/_chunks/{dep-4e59ea3f.js.map → dep-30bc8f66.js.map} +1 -1
- package/lib/_chunks/{dep-493d30a6.js → dep-3698c913.js} +2 -2
- package/lib/_chunks/{dep-493d30a6.js.map → dep-3698c913.js.map} +1 -1
- package/lib/_chunks/{dep-3fc96be0.js → dep-36f8d4c3.js} +13 -13
- package/lib/_chunks/{dep-3fc96be0.js.map → dep-36f8d4c3.js.map} +1 -1
- package/lib/_chunks/{dep-c2cc6c92.js → dep-3cd6195f.js} +6 -6
- package/lib/_chunks/{dep-c2cc6c92.js.map → dep-3cd6195f.js.map} +1 -1
- package/lib/_chunks/{dep-7f669ad6.js → dep-3dc60caf.js} +4 -4
- package/lib/_chunks/{dep-7f669ad6.js.map → dep-3dc60caf.js.map} +1 -1
- package/lib/_chunks/{dep-7e0ca83e.js → dep-3e2f311d.js} +3 -3
- package/lib/_chunks/{dep-7e0ca83e.js.map → dep-3e2f311d.js.map} +1 -1
- package/lib/_chunks/{dep-0a33f91e.js → dep-4276f3af.js} +7 -7
- package/lib/_chunks/{dep-0a33f91e.js.map → dep-4276f3af.js.map} +1 -1
- package/lib/_chunks/{dep-e01323f8.js → dep-49701a36.js} +3 -3
- package/lib/_chunks/{dep-e01323f8.js.map → dep-49701a36.js.map} +1 -1
- package/lib/_chunks/{dep-1500d93e.js → dep-57e604ff.js} +4 -4
- package/lib/_chunks/{dep-1500d93e.js.map → dep-57e604ff.js.map} +1 -1
- package/lib/_chunks/{dep-64a397b9.js → dep-58293904.js} +3 -3
- package/lib/_chunks/{dep-64a397b9.js.map → dep-58293904.js.map} +1 -1
- package/lib/_chunks/{dep-c0ebbd42.js → dep-58c8f5ef.js} +5 -5
- package/lib/_chunks/{dep-c0ebbd42.js.map → dep-58c8f5ef.js.map} +1 -1
- package/lib/_chunks/{dep-ddac11fb.js → dep-5a3989fb.js} +6 -6
- package/lib/_chunks/{dep-ddac11fb.js.map → dep-5a3989fb.js.map} +1 -1
- package/lib/_chunks/{dep-c9c2231a.js → dep-5c7065a8.js} +2 -2
- package/lib/_chunks/{dep-c9c2231a.js.map → dep-5c7065a8.js.map} +1 -1
- package/lib/_chunks/{dep-1d5bde8b.js → dep-5d0f89c3.js} +2 -2
- package/lib/_chunks/{dep-1d5bde8b.js.map → dep-5d0f89c3.js.map} +1 -1
- package/lib/_chunks/{dep-d557f263.js → dep-642f44e4.js} +14 -14
- package/lib/_chunks/{dep-d557f263.js.map → dep-642f44e4.js.map} +1 -1
- package/lib/_chunks/{dep-f40779db.js → dep-670e8110.js} +3 -3
- package/lib/_chunks/{dep-f40779db.js.map → dep-670e8110.js.map} +1 -1
- package/lib/_chunks/{dep-b27a0cde.js → dep-68571f71.js} +7 -7
- package/lib/_chunks/{dep-b27a0cde.js.map → dep-68571f71.js.map} +1 -1
- package/lib/_chunks/{dep-e79b75f5.js → dep-6ab1b435.js} +5 -5
- package/lib/_chunks/{dep-e79b75f5.js.map → dep-6ab1b435.js.map} +1 -1
- package/lib/_chunks/{dep-b0f50656.js → dep-6f6eec70.js} +4 -4
- package/lib/_chunks/{dep-b0f50656.js.map → dep-6f6eec70.js.map} +1 -1
- package/lib/_chunks/{dep-c18ce2dc.js → dep-73a22d34.js} +6 -6
- package/lib/_chunks/{dep-c18ce2dc.js.map → dep-73a22d34.js.map} +1 -1
- package/lib/_chunks/{dep-13fede68.js → dep-7c428050.js} +9 -9
- package/lib/_chunks/{dep-13fede68.js.map → dep-7c428050.js.map} +1 -1
- package/lib/_chunks/{dep-df1c6e6e.js → dep-803a5044.js} +3 -3
- package/lib/_chunks/{dep-df1c6e6e.js.map → dep-803a5044.js.map} +1 -1
- package/lib/_chunks/{dep-3bf6533c.js → dep-836be870.js} +6 -6
- package/lib/_chunks/{dep-3bf6533c.js.map → dep-836be870.js.map} +1 -1
- package/lib/_chunks/{dep-6260bc88.js → dep-84b682d4.js} +5 -5
- package/lib/_chunks/{dep-6260bc88.js.map → dep-84b682d4.js.map} +1 -1
- package/lib/_chunks/{dep-02e6c0e3.js → dep-8c8337be.js} +2 -2
- package/lib/_chunks/{dep-02e6c0e3.js.map → dep-8c8337be.js.map} +1 -1
- package/lib/_chunks/{dep-a4975d2c.js → dep-8f0cfc74.js} +6 -6
- package/lib/_chunks/{dep-a4975d2c.js.map → dep-8f0cfc74.js.map} +1 -1
- package/lib/_chunks/{dep-28392ec8.js → dep-927824d3.js} +2 -2
- package/lib/_chunks/{dep-28392ec8.js.map → dep-927824d3.js.map} +1 -1
- package/lib/_chunks/{dep-76aae21f.js → dep-95793ccd.js} +2 -2
- package/lib/_chunks/{dep-76aae21f.js.map → dep-95793ccd.js.map} +1 -1
- package/lib/_chunks/{dep-909d96e9.js → dep-97e5708c.js} +4 -4
- package/lib/_chunks/{dep-909d96e9.js.map → dep-97e5708c.js.map} +1 -1
- package/lib/_chunks/{dep-8f5c9204.js → dep-98a02d25.js} +4 -4
- package/lib/_chunks/{dep-8f5c9204.js.map → dep-98a02d25.js.map} +1 -1
- package/lib/_chunks/{dep-e6241dd7.js → dep-98e0931c.js} +2 -2
- package/{esm/_chunks/dep-ee616e77.js.map → lib/_chunks/dep-98e0931c.js.map} +1 -1
- package/lib/_chunks/{dep-88602211.js → dep-ac4813bc.js} +2 -2
- package/lib/_chunks/{dep-88602211.js.map → dep-ac4813bc.js.map} +1 -1
- package/lib/_chunks/{dep-896355d9.js → dep-b2e56ab4.js} +2 -2
- package/lib/_chunks/{dep-896355d9.js.map → dep-b2e56ab4.js.map} +1 -1
- package/lib/_chunks/{dep-8a010557.js → dep-b5416abb.js} +3 -3
- package/lib/_chunks/{dep-8a010557.js.map → dep-b5416abb.js.map} +1 -1
- package/lib/_chunks/{dep-ca59be15.js → dep-b60bba5d.js} +2 -2
- package/lib/_chunks/{dep-ca59be15.js.map → dep-b60bba5d.js.map} +1 -1
- package/lib/_chunks/{dep-7f87e4d3.js → dep-b6264172.js} +3 -3
- package/lib/_chunks/{dep-7f87e4d3.js.map → dep-b6264172.js.map} +1 -1
- package/lib/_chunks/{dep-7e11189f.js → dep-b8443572.js} +11 -11
- package/lib/_chunks/{dep-7e11189f.js.map → dep-b8443572.js.map} +1 -1
- package/lib/_chunks/{dep-cff0b6e2.js → dep-b8b77504.js} +5 -5
- package/lib/_chunks/{dep-cff0b6e2.js.map → dep-b8b77504.js.map} +1 -1
- package/lib/_chunks/{dep-ac35dc4e.js → dep-bb367457.js} +5 -5
- package/lib/_chunks/{dep-ac35dc4e.js.map → dep-bb367457.js.map} +1 -1
- package/lib/_chunks/{dep-830e4061.js → dep-be91132e.js} +6 -6
- package/lib/_chunks/{dep-830e4061.js.map → dep-be91132e.js.map} +1 -1
- package/lib/_chunks/{dep-1c945611.js → dep-c16d1840.js} +2 -2
- package/lib/_chunks/{dep-1c945611.js.map → dep-c16d1840.js.map} +1 -1
- package/lib/_chunks/{dep-10d63a5f.js → dep-c31b1b66.js} +3 -3
- package/lib/_chunks/{dep-10d63a5f.js.map → dep-c31b1b66.js.map} +1 -1
- package/lib/_chunks/{dep-db365a1f.js → dep-cfccf5fd.js} +3 -3
- package/lib/_chunks/{dep-db365a1f.js.map → dep-cfccf5fd.js.map} +1 -1
- package/lib/_chunks/{dep-e22fe104.js → dep-e03ace63.js} +5 -5
- package/lib/_chunks/{dep-e22fe104.js.map → dep-e03ace63.js.map} +1 -1
- package/lib/_chunks/{dep-7b52183b.js → dep-e056a03c.js} +5 -5
- package/lib/_chunks/{dep-7b52183b.js.map → dep-e056a03c.js.map} +1 -1
- package/lib/_chunks/{dep-765e4e1f.js → dep-e071a750.js} +7 -7
- package/lib/_chunks/{dep-765e4e1f.js.map → dep-e071a750.js.map} +1 -1
- package/lib/_chunks/{dep-17434f12.js → dep-f19c35e4.js} +4 -4
- package/lib/_chunks/{dep-17434f12.js.map → dep-f19c35e4.js.map} +1 -1
- package/lib/_common/js/color-picker/cmyk.js +1 -1
- package/lib/_common/js/color-picker/color.js +5 -5
- package/lib/_common/js/color-picker/draggable.js +3 -3
- package/lib/_common/js/color-picker/gradient.js +1 -1
- package/lib/_common/js/color-picker/index.js +5 -5
- package/lib/_common/js/common.js +1 -1
- package/lib/_common/js/date-picker/utils.d.ts +2 -2
- package/lib/_common/js/date-picker/utils.js +25 -15
- package/lib/_common/js/date-picker/utils.js.map +1 -1
- package/lib/_common/js/global-config/default-config.js +1 -1
- package/lib/_common/js/global-config/locale/en_US.js +1 -1
- package/lib/_common/js/global-config/locale/zh_CN.js +1 -1
- package/lib/_common/js/loading/circle-adapter.js +5 -5
- package/lib/_common/js/log/index.js +1 -1
- package/lib/_common/js/log/log.js +1 -1
- package/lib/_common/js/log/types.js +1 -1
- package/lib/_common/js/tabs/base.js +1 -1
- package/lib/_common/js/tree/tree-node-model.js +20 -20
- package/lib/_common/js/tree/tree-node.js +25 -25
- package/lib/_common/js/tree/tree-store.js +33 -33
- package/lib/_common/js/tree/types.js +1 -1
- package/lib/_common/js/upload/types.js +1 -1
- package/lib/_common/js/upload/utils.js +2 -2
- package/lib/_common/js/upload/xhr.js +1 -1
- package/lib/_common/js/utils/calcTextareaHeight.js +5 -5
- package/lib/_common/js/utils/getScrollbarWidth.js +1 -1
- package/lib/_common/js/utils/helper.js +5 -5
- package/lib/_common/js/utils/observe.js +1 -1
- package/lib/_common/js/utils/set-style.js +1 -1
- package/lib/_util/callBoth.js +1 -1
- package/lib/_util/composeRefs.js +1 -1
- package/lib/_util/dom.js +6 -6
- package/lib/_util/easing.js +1 -1
- package/lib/_util/forwardRefWithStatics.js +1 -1
- package/lib/_util/getScrollbarWidth.js +1 -1
- package/lib/_util/hasScrollBar.js +1 -1
- package/lib/_util/helper.js +14 -14
- package/lib/_util/injectValue.js +1 -1
- package/lib/_util/insertCSS.js +1 -1
- package/lib/_util/isCallable.js +1 -1
- package/lib/_util/linearGradient.js +2 -2
- package/lib/_util/noop.js +1 -1
- package/lib/_util/number.d.ts +3 -3
- package/lib/_util/number.js +27 -36
- package/lib/_util/number.js.map +1 -1
- package/lib/_util/renderTNode.js +1 -1
- package/lib/_util/setStyle.js +1 -1
- package/lib/_util/useAnimation.js +19 -19
- package/lib/_util/useClickOutside.js +1 -1
- package/lib/_util/useCommonClassName.js +19 -19
- package/lib/_util/useConfig.d.ts +2 -2
- package/lib/_util/useConfig.js +19 -19
- package/lib/_util/useConfig.js.map +1 -1
- package/lib/_util/useDefault.js +3 -3
- package/lib/_util/useDefaultValue.js +5 -5
- package/lib/_util/useDialogEsc.js +3 -3
- package/lib/_util/useDragSorter.js +3 -3
- package/lib/_util/useLayoutEffect.js +6 -6
- package/lib/_util/useMutationObserver.js +8 -8
- package/lib/_util/usePersistFn.js +1 -1
- package/lib/_util/usePrevious.js +1 -1
- package/lib/_util/useRefAndForward.js +1 -1
- package/lib/_util/useRipple.js +20 -20
- package/lib/_util/useSetState.js +4 -4
- package/lib/_util/useSwitch.js +3 -3
- package/lib/_util/useUpdateEffect.js +6 -6
- package/lib/_util/useWindowSize.js +10 -10
- package/lib/addon/Addon.js +20 -20
- package/lib/addon/index.js +20 -20
- package/lib/affix/Affix.js +22 -22
- package/lib/affix/index.js +22 -22
- package/lib/affix/type.js +1 -1
- package/lib/alert/Alert.js +22 -22
- package/lib/alert/index.js +22 -22
- package/lib/alert/type.js +1 -1
- package/lib/anchor/Anchor.js +28 -28
- package/lib/anchor/AnchorContext.js +1 -1
- package/lib/anchor/AnchorItem.js +20 -20
- package/lib/anchor/AnchorTarget.js +26 -26
- package/lib/anchor/_util/clipboard.js +1 -1
- package/lib/anchor/_util/dom.js +1 -1
- package/lib/anchor/index.js +28 -28
- package/lib/anchor/type.js +1 -1
- package/lib/avatar/AvararGroup.js +27 -27
- package/lib/avatar/Avatar.js +27 -27
- package/lib/avatar/AvatarContext.js +1 -1
- package/lib/avatar/index.js +27 -27
- package/lib/avatar/type.js +1 -1
- package/lib/badge/Badge.js +20 -20
- package/lib/badge/index.js +20 -20
- package/lib/badge/type.js +1 -1
- package/lib/breadcrumb/Breadcrumb.js +25 -23
- package/lib/breadcrumb/Breadcrumb.js.map +1 -1
- package/lib/breadcrumb/BreadcrumbContext.js +1 -1
- package/lib/breadcrumb/BreadcrumbItem.js +23 -22
- package/lib/breadcrumb/BreadcrumbItem.js.map +1 -1
- package/lib/breadcrumb/BreadcrumbProps.js +1 -1
- package/lib/breadcrumb/index.js +21 -21
- package/lib/breadcrumb/type.js +1 -1
- package/lib/button/Button.js +23 -23
- package/lib/button/index.js +23 -23
- package/lib/button/type.js +1 -1
- package/lib/calendar/Calendar.js +40 -40
- package/lib/calendar/_util.js +1 -1
- package/lib/calendar/index.js +40 -40
- package/lib/calendar/type.js +1 -1
- package/lib/card/type.d.ts +45 -2
- package/lib/card/type.js +1 -1
- package/lib/cascader/Cascader.js +46 -46
- package/lib/cascader/components/InputContent.js +30 -29
- package/lib/cascader/components/InputContent.js.map +1 -1
- package/lib/cascader/components/Item.js +44 -50
- package/lib/cascader/components/Item.js.map +1 -1
- package/lib/cascader/components/Panel.js +33 -33
- package/lib/cascader/index.js +46 -46
- package/lib/cascader/interface.js +25 -25
- package/lib/cascader/type.js +1 -1
- package/lib/cascader/utils/cascader.js +4 -4
- package/lib/cascader/utils/helper.d.ts +5 -0
- package/lib/cascader/utils/helper.js +6 -2
- package/lib/cascader/utils/helper.js.map +1 -1
- package/lib/cascader/utils/inputContent.js +19 -23
- package/lib/cascader/utils/inputContent.js.map +1 -1
- package/lib/cascader/utils/item.d.ts +2 -2
- package/lib/cascader/utils/item.js +6 -6
- package/lib/cascader/utils/item.js.map +1 -1
- package/lib/cascader/utils/panel.js +7 -7
- package/lib/checkbox/Checkbox.js +29 -29
- package/lib/checkbox/CheckboxGroup.js +29 -29
- package/lib/checkbox/index.js +29 -29
- package/lib/checkbox/type.js +1 -1
- package/lib/comment/Comment.js +19 -19
- package/lib/comment/index.js +19 -19
- package/lib/comment/type.js +1 -1
- package/lib/common/Check.js +27 -27
- package/lib/common/FakeArrow.js +19 -19
- package/lib/common/Portal.d.ts +4 -0
- package/lib/common/Portal.js +24 -23
- package/lib/common/Portal.js.map +1 -1
- package/lib/common.js +1 -1
- package/lib/config-provider/ConfigContext.d.ts +5 -370
- package/lib/config-provider/ConfigContext.js +19 -19
- package/lib/config-provider/ConfigProvider.d.ts +3 -185
- package/lib/config-provider/ConfigProvider.js +19 -19
- package/lib/config-provider/ConfigProvider.js.map +1 -1
- package/lib/config-provider/en_US_config.js +1 -1
- package/lib/config-provider/index.js +19 -19
- package/lib/config-provider/type.d.ts +1 -1
- package/lib/config-provider/type.js +1 -1
- package/lib/config-provider/zh_CN_config.js +1 -1
- package/lib/date-picker/DatePicker.js +35 -35
- package/lib/date-picker/DatePicker.js.map +1 -1
- package/lib/date-picker/base/CalendarPresets.js +23 -23
- package/lib/date-picker/base/Cell.js +19 -19
- package/lib/date-picker/base/Header.js +23 -23
- package/lib/date-picker/base/Table.js +21 -21
- package/lib/date-picker/index.js +33 -33
- package/lib/date-picker/panel/Date.js +27 -27
- package/lib/date-picker/panel/DateRange.js +27 -27
- package/lib/date-picker/type.js +1 -1
- package/lib/dialog/Dialog.js +34 -26
- package/lib/dialog/Dialog.js.map +1 -1
- package/lib/dialog/RenderDialog.d.ts +1 -1
- package/lib/dialog/RenderDialog.js +41 -27
- package/lib/dialog/RenderDialog.js.map +1 -1
- package/lib/dialog/index.js +24 -24
- package/lib/dialog/plugin.js +31 -26
- package/lib/dialog/plugin.js.map +1 -1
- package/lib/dialog/type.js +1 -1
- package/lib/divider/Divider.js +20 -20
- package/lib/divider/index.js +20 -20
- package/lib/divider/type.js +1 -1
- package/lib/drawer/Drawer.js +23 -23
- package/lib/drawer/DrawerWrapper.js +20 -20
- package/lib/drawer/index.js +23 -23
- package/lib/drawer/type.js +1 -1
- package/lib/dropdown/Dropdown.js +38 -38
- package/lib/dropdown/DropdownItem.js +28 -28
- package/lib/dropdown/DropdownMenu.js +29 -29
- package/lib/dropdown/index.js +38 -38
- package/lib/dropdown/type.js +1 -1
- package/lib/form/Form.d.ts +5 -1
- package/lib/form/Form.js +54 -55
- package/lib/form/Form.js.map +1 -1
- package/lib/form/FormContext.d.ts +14 -5
- package/lib/form/FormContext.js +13 -4
- package/lib/form/FormContext.js.map +1 -1
- package/lib/form/FormItem.d.ts +16 -1
- package/lib/form/FormItem.js +56 -1082
- package/lib/form/FormItem.js.map +1 -1
- package/lib/form/FormList.d.ts +7 -0
- package/lib/form/FormList.js +288 -0
- package/lib/form/FormList.js.map +1 -0
- package/lib/form/formModel.js +25 -25
- package/lib/form/hooks/useFormItemStyle.d.ts +7 -0
- package/lib/form/hooks/useFormItemStyle.js +119 -0
- package/lib/form/hooks/useFormItemStyle.js.map +1 -0
- package/lib/form/hooks/useInstance.d.ts +2 -1
- package/lib/form/hooks/useInstance.js +87 -87
- package/lib/form/hooks/useInstance.js.map +1 -1
- package/lib/form/index.d.ts +5 -1
- package/lib/form/index.js +46 -45
- package/lib/form/index.js.map +1 -1
- package/lib/form/type.d.ts +33 -7
- package/lib/form/type.js +1 -1
- package/lib/grid/Col.js +20 -20
- package/lib/grid/Row.js +23 -23
- package/lib/grid/index.js +23 -23
- package/lib/grid/type.js +1 -1
- package/lib/index-lib.js +56 -57
- package/lib/index-lib.js.map +1 -1
- package/lib/index.js +56 -57
- package/lib/index.js.map +1 -1
- package/lib/input/Input.js +27 -27
- package/lib/input/InputGroup.js +20 -20
- package/lib/input/index.js +27 -27
- package/lib/input/type.js +1 -1
- package/lib/input-number/InputNumber.js +28 -28
- package/lib/input-number/StepHandler.js +23 -23
- package/lib/input-number/index.js +28 -28
- package/lib/input-number/type.js +1 -1
- package/lib/input-number/utils/numberUtils.js +1 -1
- package/lib/layout/Aside.js +20 -20
- package/lib/layout/Layout.js +22 -22
- package/lib/layout/index.js +22 -22
- package/lib/layout/type.js +1 -1
- package/lib/list/List.js +23 -23
- package/lib/list/ListItem.js +19 -19
- package/lib/list/ListItemMeta.js +19 -19
- package/lib/list/index.js +23 -23
- package/lib/list/type.js +1 -1
- package/lib/loading/Loading.js +23 -23
- package/lib/loading/gradient.js +22 -22
- package/lib/loading/index.js +23 -23
- package/lib/loading/plugin.js +23 -23
- package/lib/loading/type.js +1 -1
- package/lib/locale/LocalReceiver.js +23 -23
- package/lib/locale/LocalReceiver.js.map +1 -1
- package/lib/locale/en_US.js +1 -1
- package/lib/locale/zh_CN.js +1 -1
- package/lib/menu/HeadMenu.js +26 -26
- package/lib/menu/Menu.d.ts +4 -1
- package/lib/menu/Menu.js +26 -26
- package/lib/menu/MenuContext.js +1 -1
- package/lib/menu/MenuGroup.d.ts +5 -1
- package/lib/menu/MenuGroup.js +31 -21
- package/lib/menu/MenuGroup.js.map +1 -1
- package/lib/menu/MenuItem.js +20 -20
- package/lib/menu/SubMenu.js +48 -28
- package/lib/menu/SubMenu.js.map +1 -1
- package/lib/menu/_util/cacularPaddingLeft.js +1 -1
- package/lib/menu/_util/checkMenuType.d.ts +1 -0
- package/lib/menu/_util/checkMenuType.js +6 -1
- package/lib/menu/_util/checkMenuType.js.map +1 -1
- package/lib/menu/_util/checkSubMenuActive.js +1 -1
- package/lib/menu/_util/checkSubMenuChildExpanded.js +3 -3
- package/lib/menu/_util/checkSubMenuChildrenActive.js +1 -1
- package/lib/menu/_util/constant.js +1 -1
- package/lib/menu/_util/getSubMenuChildStyle.js +4 -3
- package/lib/menu/_util/getSubMenuChildStyle.js.map +1 -1
- package/lib/menu/_util/type.d.ts +2 -1
- package/lib/menu/_util/type.js +2 -1
- package/lib/menu/_util/type.js.map +1 -1
- package/lib/menu/hooks/useMenuContext.js +5 -5
- package/lib/menu/index.d.ts +4 -1
- package/lib/menu/index.js +26 -26
- package/lib/menu/type.js +1 -1
- package/lib/message/Message.js +23 -23
- package/lib/message/MessageClose.js +19 -19
- package/lib/message/MessageComponent.js +23 -23
- package/lib/message/MessageIcon.js +23 -23
- package/lib/message/const.js +1 -1
- package/lib/message/index.js +23 -23
- package/lib/message/type.js +1 -1
- package/lib/message/useMessageClass.js +19 -19
- package/lib/notification/Notification.js +23 -23
- package/lib/notification/NotificationList.js +23 -23
- package/lib/notification/NotificationPlugin.js +23 -23
- package/lib/notification/index.js +23 -23
- package/lib/notification/type.js +1 -1
- package/lib/pagination/Pagination.js +39 -39
- package/lib/pagination/index.js +39 -39
- package/lib/pagination/type.js +1 -1
- package/lib/pagination/validators.js +1 -1
- package/lib/popconfirm/Popconfirm.js +26 -26
- package/lib/popconfirm/Popcontent.js +23 -23
- package/lib/popconfirm/index.d.ts +0 -1
- package/lib/popconfirm/index.js +26 -29
- package/lib/popconfirm/index.js.map +1 -1
- package/lib/popconfirm/type.js +1 -1
- package/lib/popup/Popup.js +30 -29
- package/lib/popup/Popup.js.map +1 -1
- package/lib/popup/hooks/useTriggerProps.d.ts +2 -2
- package/lib/popup/hooks/useTriggerProps.js +15 -3
- package/lib/popup/hooks/useTriggerProps.js.map +1 -1
- package/lib/popup/index.js +25 -25
- package/lib/popup/type.js +1 -1
- package/lib/popup/utils/getTransitionParams.js +1 -1
- package/lib/progress/Progress.js +20 -20
- package/lib/progress/index.js +20 -20
- package/lib/progress/type.js +1 -1
- package/lib/radio/Radio.js +30 -30
- package/lib/radio/RadioGroup.js +30 -30
- package/lib/radio/index.js +30 -30
- package/lib/radio/type.js +1 -1
- package/lib/rate/type.js +1 -1
- package/lib/select/base/Option.js +25 -25
- package/lib/select/base/OptionGroup.js +19 -19
- package/lib/select/base/PopupContent.js +29 -29
- package/lib/select/base/Select.js +40 -40
- package/lib/select/base/Select.js.map +1 -1
- package/lib/select/index.js +39 -39
- package/lib/select/type.js +1 -1
- package/lib/select/util/helper.js +27 -27
- package/lib/select-input/SelectInput.js +37 -37
- package/lib/select-input/index.js +37 -37
- package/lib/select-input/type.js +1 -1
- package/lib/select-input/useMultiple.js +28 -28
- package/lib/select-input/useOverlayStyle.js +8 -8
- package/lib/select-input/useSingle.js +34 -34
- package/lib/skeleton/Skeleton.js +29 -29
- package/lib/skeleton/index.js +29 -29
- package/lib/skeleton/type.js +1 -1
- package/lib/slider/Slider.js +30 -30
- package/lib/slider/SliderHandleButton.js +26 -26
- package/lib/slider/index.js +30 -30
- package/lib/slider/type.js +1 -1
- package/lib/slider/utils/handleNumber.js +1 -1
- package/lib/steps/StepItem.js +19 -19
- package/lib/steps/Steps.js +19 -19
- package/lib/steps/StepsContext.js +1 -1
- package/lib/steps/index.js +19 -19
- package/lib/steps/type.js +1 -1
- package/lib/sticky-tool/type.js +1 -1
- package/lib/swiper/Swiper.js +21 -21
- package/lib/swiper/SwiperItem.js +19 -19
- package/lib/swiper/index.js +21 -21
- package/lib/swiper/type.js +1 -1
- package/lib/switch/Switch.js +23 -23
- package/lib/switch/index.js +23 -23
- package/lib/switch/type.js +1 -1
- package/lib/table/base/Table.js +42 -42
- package/lib/table/base/Table.js.map +1 -1
- package/lib/table/base/TableAsyncLoadingBody.js +23 -23
- package/lib/table/base/TableBody.js +29 -29
- package/lib/table/base/TableCell.js +25 -25
- package/lib/table/base/TableColGroup.js +1 -1
- package/lib/table/base/TableContext.js +1 -1
- package/lib/table/base/TableEmptyBody.js +21 -21
- package/lib/table/base/TableFooter.js +1 -1
- package/lib/table/base/TableHeader.js +27 -27
- package/lib/table/base/TableLoadingBody.js +5 -5
- package/lib/table/base/TableRow.js +29 -29
- package/lib/table/enhanced/Table.js +41 -41
- package/lib/table/enhanced/TableContext.js +1 -1
- package/lib/table/enhanced/useTree.js +26 -26
- package/lib/table/hooks/useColumns.js +4 -4
- package/lib/table/index.js +41 -41
- package/lib/table/primary/SorterButton.js +26 -26
- package/lib/table/primary/Table.js +41 -41
- package/lib/table/primary/expand-box.js +19 -19
- package/lib/table/primary/useChange.js +2 -2
- package/lib/table/primary/useExpand.js +26 -26
- package/lib/table/primary/useFilter.js +33 -33
- package/lib/table/primary/useFilterButton.js +33 -33
- package/lib/table/primary/useSelect.js +33 -33
- package/lib/table/primary/useSorter.js +30 -30
- package/lib/table/type.js +1 -1
- package/lib/table/util/getRowKeyFromRowKey.js +1 -1
- package/lib/table/util/index.d.ts +2 -0
- package/lib/table/util/index.js +16 -1
- package/lib/table/util/index.js.map +1 -1
- package/lib/tabs/TabBar.js +21 -21
- package/lib/tabs/TabNav.js +25 -25
- package/lib/tabs/TabNavItem.js +20 -20
- package/lib/tabs/TabPanel.js +19 -19
- package/lib/tabs/Tabs.js +25 -25
- package/lib/tabs/index.js +25 -25
- package/lib/tabs/type.js +1 -1
- package/lib/tabs/useTabClass.js +19 -19
- package/lib/tag/CheckTag.js +22 -22
- package/lib/tag/Tag.js +22 -22
- package/lib/tag/index.js +22 -22
- package/lib/tag/type.js +1 -1
- package/lib/tag-input/TagInput.js +28 -28
- package/lib/tag-input/index.js +28 -28
- package/lib/tag-input/type.js +1 -1
- package/lib/tag-input/useHover.js +3 -3
- package/lib/tag-input/useTagList.js +23 -23
- package/lib/tag-input/useTagScroll.js +3 -3
- package/lib/textarea/Textarea.js +27 -27
- package/lib/textarea/index.js +27 -27
- package/lib/textarea/type.js +1 -1
- package/lib/time-picker/InputItems.js +30 -30
- package/lib/time-picker/TimePicker.js +34 -34
- package/lib/time-picker/TimeRangePicker.js +34 -34
- package/lib/time-picker/consts.js +21 -21
- package/lib/time-picker/index.js +34 -34
- package/lib/time-picker/interfaces.js +1 -1
- package/lib/time-picker/panel/SinglePanel.js +30 -30
- package/lib/time-picker/panel/TimePickerPanel.js +32 -32
- package/lib/time-picker/panel/TimePickerRangePanel.js +32 -32
- package/lib/time-picker/type.js +1 -1
- package/lib/tooltip/Tooltip.js +26 -26
- package/lib/tooltip/index.js +26 -26
- package/lib/tooltip/type.js +1 -1
- package/lib/transfer/Transfer.js +44 -44
- package/lib/transfer/TransferList.js +42 -42
- package/lib/transfer/index.js +44 -44
- package/lib/transfer/type.js +1 -1
- package/lib/transfer/utils.js +16 -16
- package/lib/tree/Tree.js +45 -45
- package/lib/tree/TreeItem.js +30 -30
- package/lib/tree/index.js +45 -45
- package/lib/tree/interface.js +1 -1
- package/lib/tree/type.js +1 -1
- package/lib/tree/useControllable.js +3 -3
- package/lib/tree/useStore.js +39 -39
- package/lib/tree/useTreeConfig.js +21 -21
- package/lib/tree-select/SelectArrow.js +19 -19
- package/lib/tree-select/TreeSelect.js +47 -47
- package/lib/tree-select/index.js +47 -47
- package/lib/tree-select/type.js +1 -1
- package/lib/tree-select/useTreeSelectLocale.js +21 -21
- package/lib/tree-select/useTreeSelectPassthoughProps.js +19 -19
- package/lib/tree-select/useTreeSelectUtils.js +33 -33
- package/lib/upload/boolean-render.js +1 -1
- package/lib/upload/dragger.js +23 -23
- package/lib/upload/hooks/useDefaultValue.js +6 -6
- package/lib/upload/hooks/useSizeLimit.js +21 -21
- package/lib/upload/index.js +38 -38
- package/lib/upload/themes/dragger-progress.js +23 -23
- package/lib/upload/themes/flow-list/file-list.js +23 -23
- package/lib/upload/themes/flow-list/img-list.js +23 -23
- package/lib/upload/themes/flow-list/index.js +23 -23
- package/lib/upload/themes/image-card.js +24 -24
- package/lib/upload/themes/single-file.js +23 -23
- package/lib/upload/tips.js +19 -19
- package/lib/upload/type.d.ts +1 -0
- package/lib/upload/type.js +1 -1
- package/lib/upload/types.js +1 -1
- package/lib/upload/upload-trigger.js +23 -23
- package/lib/upload/upload.js +40 -39
- package/lib/upload/upload.js.map +1 -1
- package/lib/upload/util.js +1 -1
- package/package.json +3 -3
- package/es/_chunks/dep-9b782fb7.js.map +0 -1
- package/es/_chunks/dep-beff7329.js +0 -8
- package/es/_chunks/dep-beff7329.js.map +0 -1
- package/es/popconfirm/PopConfirm-old.d.ts +0 -2
- package/es/popconfirm/PopConfirm-old.js +0 -82
- package/es/popconfirm/PopConfirm-old.js.map +0 -1
- package/esm/_chunks/dep-9b782fb7.js.map +0 -1
- package/esm/_chunks/dep-beff7329.js +0 -8
- package/esm/_chunks/dep-beff7329.js.map +0 -1
- package/esm/popconfirm/PopConfirm-old.d.ts +0 -2
- package/esm/popconfirm/PopConfirm-old.js +0 -84
- package/esm/popconfirm/PopConfirm-old.js.map +0 -1
- package/lib/popconfirm/PopConfirm-old.d.ts +0 -2
- package/lib/popconfirm/PopConfirm-old.js +0 -78
- package/lib/popconfirm/PopConfirm-old.js.map +0 -1
package/dist/tdesign.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* tdesign v0.
|
|
2
|
+
* tdesign v0.31.1
|
|
3
3
|
* (c) 2022 tdesign
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
return _arr;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
function _arrayLikeToArray$
|
|
81
|
+
function _arrayLikeToArray$5(arr, len) {
|
|
82
82
|
if (len == null || len > arr.length) len = arr.length;
|
|
83
83
|
|
|
84
84
|
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
@@ -88,13 +88,13 @@
|
|
|
88
88
|
return arr2;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
function _unsupportedIterableToArray$
|
|
91
|
+
function _unsupportedIterableToArray$5(o, minLen) {
|
|
92
92
|
if (!o) return;
|
|
93
|
-
if (typeof o === "string") return _arrayLikeToArray$
|
|
93
|
+
if (typeof o === "string") return _arrayLikeToArray$5(o, minLen);
|
|
94
94
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
95
95
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
96
96
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
97
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$
|
|
97
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$5(o, minLen);
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
function _nonIterableRest() {
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
function _slicedToArray(arr, i) {
|
|
105
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$
|
|
105
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$5(arr, i) || _nonIterableRest();
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
function _defineProperty$2(obj, key, value) {
|
|
@@ -3712,7 +3712,8 @@
|
|
|
3712
3712
|
}
|
|
3713
3713
|
var Portal = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
3714
3714
|
var attach = props.attach,
|
|
3715
|
-
children = props.children
|
|
3715
|
+
children = props.children,
|
|
3716
|
+
triggerNode = props.triggerNode;
|
|
3716
3717
|
|
|
3717
3718
|
var _useConfig = useConfig$1(),
|
|
3718
3719
|
classPrefix = _useConfig.classPrefix;
|
|
@@ -3728,7 +3729,7 @@
|
|
|
3728
3729
|
var el = null;
|
|
3729
3730
|
|
|
3730
3731
|
if (typeof attach === "function") {
|
|
3731
|
-
el = attach();
|
|
3732
|
+
el = attach(triggerNode);
|
|
3732
3733
|
} else if (typeof attach === "string") {
|
|
3733
3734
|
el = document.querySelector(attach);
|
|
3734
3735
|
}
|
|
@@ -3743,7 +3744,7 @@
|
|
|
3743
3744
|
|
|
3744
3745
|
(_parentElement = parentElement) === null || _parentElement === void 0 ? void 0 : _parentElement.removeChild(container);
|
|
3745
3746
|
};
|
|
3746
|
-
}, [container, attach]);
|
|
3747
|
+
}, [container, attach, triggerNode]);
|
|
3747
3748
|
React.useImperativeHandle(ref, function () {
|
|
3748
3749
|
return container;
|
|
3749
3750
|
});
|
|
@@ -8803,11 +8804,11 @@
|
|
|
8803
8804
|
};
|
|
8804
8805
|
}
|
|
8805
8806
|
|
|
8806
|
-
function _createForOfIteratorHelper$
|
|
8807
|
+
function _createForOfIteratorHelper$4(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$4(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
8807
8808
|
|
|
8808
|
-
function _unsupportedIterableToArray$
|
|
8809
|
+
function _unsupportedIterableToArray$4(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$4(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$4(o, minLen); }
|
|
8809
8810
|
|
|
8810
|
-
function _arrayLikeToArray$
|
|
8811
|
+
function _arrayLikeToArray$4(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
8811
8812
|
|
|
8812
8813
|
function composeRefs() {
|
|
8813
8814
|
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -8815,7 +8816,7 @@
|
|
|
8815
8816
|
}
|
|
8816
8817
|
|
|
8817
8818
|
return function (instance) {
|
|
8818
|
-
var _iterator = _createForOfIteratorHelper$
|
|
8819
|
+
var _iterator = _createForOfIteratorHelper$4(refs),
|
|
8819
8820
|
_step;
|
|
8820
8821
|
|
|
8821
8822
|
try {
|
|
@@ -8861,17 +8862,19 @@
|
|
|
8861
8862
|
}, [refs, handler]);
|
|
8862
8863
|
}
|
|
8863
8864
|
|
|
8864
|
-
function _createForOfIteratorHelper$
|
|
8865
|
+
function _createForOfIteratorHelper$3(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$3(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
8865
8866
|
|
|
8866
|
-
function _unsupportedIterableToArray$
|
|
8867
|
+
function _unsupportedIterableToArray$3(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$3(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen); }
|
|
8867
8868
|
|
|
8868
|
-
function _arrayLikeToArray$
|
|
8869
|
+
function _arrayLikeToArray$3(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
8869
8870
|
var ESC_KEY = "Escape";
|
|
8870
8871
|
function useTriggerProps(ref, triggerNode, triggers, visible, setVisible) {
|
|
8871
8872
|
var disabled = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;
|
|
8872
8873
|
var originTrigger = arguments.length > 6 ? arguments[6] : undefined;
|
|
8873
8874
|
var triggerProps = {};
|
|
8874
8875
|
var popupProps = {};
|
|
8876
|
+
var hasPopupMouseDown = React.useRef(false);
|
|
8877
|
+
var mouseDownTimer = React.useRef();
|
|
8875
8878
|
|
|
8876
8879
|
var toggle = function toggle(e, trigger) {
|
|
8877
8880
|
return setVisible(!visible, {
|
|
@@ -8895,13 +8898,13 @@
|
|
|
8895
8898
|
};
|
|
8896
8899
|
|
|
8897
8900
|
useClickOutside([ref, triggerNode], function (e) {
|
|
8898
|
-
if (visible && (triggers.includes("click") || triggers.includes("context-menu"))) {
|
|
8901
|
+
if (visible && (triggers.includes("click") || triggers.includes("context-menu")) && !hasPopupMouseDown.current) {
|
|
8899
8902
|
hide(e, "trigger-element-blur");
|
|
8900
8903
|
}
|
|
8901
8904
|
});
|
|
8902
8905
|
if (disabled) return [triggerProps, popupProps];
|
|
8903
8906
|
|
|
8904
|
-
var _iterator = _createForOfIteratorHelper$
|
|
8907
|
+
var _iterator = _createForOfIteratorHelper$3(triggers),
|
|
8905
8908
|
_step;
|
|
8906
8909
|
|
|
8907
8910
|
try {
|
|
@@ -8911,6 +8914,7 @@
|
|
|
8911
8914
|
onClick = _originTrigger$props.onClick,
|
|
8912
8915
|
onMouseEnter = _originTrigger$props.onMouseEnter,
|
|
8913
8916
|
onMouseLeave = _originTrigger$props.onMouseLeave,
|
|
8917
|
+
onMouseDown = _originTrigger$props.onMouseDown,
|
|
8914
8918
|
onFocus = _originTrigger$props.onFocus,
|
|
8915
8919
|
onBlur = _originTrigger$props.onBlur,
|
|
8916
8920
|
onContextMenu = _originTrigger$props.onContextMenu,
|
|
@@ -8962,6 +8966,15 @@
|
|
|
8962
8966
|
};
|
|
8963
8967
|
}
|
|
8964
8968
|
|
|
8969
|
+
popupProps.onMouseDown = function (e) {
|
|
8970
|
+
clearTimeout(mouseDownTimer.current);
|
|
8971
|
+
hasPopupMouseDown.current = true;
|
|
8972
|
+
mouseDownTimer.current = window.setTimeout(function () {
|
|
8973
|
+
hasPopupMouseDown.current = false;
|
|
8974
|
+
});
|
|
8975
|
+
onMouseDown === null || onMouseDown === void 0 ? void 0 : onMouseDown(e);
|
|
8976
|
+
};
|
|
8977
|
+
|
|
8965
8978
|
triggerProps.onKeyDown = function (e) {
|
|
8966
8979
|
if (e.key === ESC_KEY) hide(e, "keydown-esc");
|
|
8967
8980
|
onKeyDown && onKeyDown(e);
|
|
@@ -9498,15 +9511,15 @@
|
|
|
9498
9511
|
var referenceElmBottom = window.innerHeight - bottom;
|
|
9499
9512
|
var referenceElmRight = window.innerWidth - right;
|
|
9500
9513
|
var _contentRef$current = contentRef.current,
|
|
9501
|
-
|
|
9514
|
+
contentOffsetHeight = _contentRef$current.offsetHeight,
|
|
9502
9515
|
contentOffsetWidth = _contentRef$current.offsetWidth;
|
|
9503
9516
|
var newPlacement = state.options.placement;
|
|
9504
9517
|
|
|
9505
|
-
if (referenceElmBottom <
|
|
9518
|
+
if (referenceElmBottom < contentOffsetHeight && referenceElmTop >= contentOffsetHeight) {
|
|
9506
9519
|
newPlacement = state.options.placement.replace("bottom", "top");
|
|
9507
9520
|
}
|
|
9508
9521
|
|
|
9509
|
-
if (referenceElmTop <
|
|
9522
|
+
if (referenceElmTop < contentOffsetHeight && referenceElmBottom >= contentOffsetHeight) {
|
|
9510
9523
|
newPlacement = state.options.placement.replace("top", "bottom");
|
|
9511
9524
|
}
|
|
9512
9525
|
|
|
@@ -9533,7 +9546,7 @@
|
|
|
9533
9546
|
var defaultStyles = React.useMemo(function () {
|
|
9534
9547
|
if (triggerRef && typeof overlayStyle === "function") return _objectSpread$24({}, overlayStyle(triggerRef, overlayRef));
|
|
9535
9548
|
return _objectSpread$24({}, overlayStyle);
|
|
9536
|
-
}, [overlayStyle, triggerRef, overlayRef]);
|
|
9549
|
+
}, [overlayStyle, triggerRef, overlayRef, visible]);
|
|
9537
9550
|
var overlayVisibleStyle = defaultStyles;
|
|
9538
9551
|
var triggerNodeTemp = React.useMemo(function () {
|
|
9539
9552
|
var _React$Children$toArr = React__default["default"].Children.toArray(children),
|
|
@@ -9593,6 +9606,7 @@
|
|
|
9593
9606
|
onEnter: handleEnter,
|
|
9594
9607
|
onExited: handleExited
|
|
9595
9608
|
}, /* @__PURE__ */React__default["default"].createElement(Portal, {
|
|
9609
|
+
triggerNode: triggerRef,
|
|
9596
9610
|
attach: attach,
|
|
9597
9611
|
ref: portalRef
|
|
9598
9612
|
}, /* @__PURE__ */React__default["default"].createElement(CSSTransition$1, _objectSpread$24({
|
|
@@ -13016,11 +13030,11 @@
|
|
|
13016
13030
|
globalConfig = _React$useContext.globalConfig;
|
|
13017
13031
|
|
|
13018
13032
|
function transformLocale(pattern, placement) {
|
|
13019
|
-
var
|
|
13033
|
+
var REGEXP = /\{\s*([\w-]+)\s*\}/g;
|
|
13020
13034
|
|
|
13021
13035
|
if (typeof pattern === "string") {
|
|
13022
|
-
if (!placement || !
|
|
13023
|
-
var translated = pattern.replace(
|
|
13036
|
+
if (!placement || !REGEXP.test(pattern)) return pattern;
|
|
13037
|
+
var translated = pattern.replace(REGEXP, function (_, key) {
|
|
13024
13038
|
if (placement) return String(placement[key]);
|
|
13025
13039
|
return "";
|
|
13026
13040
|
});
|
|
@@ -13029,7 +13043,7 @@
|
|
|
13029
13043
|
|
|
13030
13044
|
if (Array.isArray(pattern)) {
|
|
13031
13045
|
return pattern.map(function (p, index) {
|
|
13032
|
-
var translated = p.replace(
|
|
13046
|
+
var translated = p.replace(REGEXP, function (_, key) {
|
|
13033
13047
|
if (placement) return String(placement[index][key]);
|
|
13034
13048
|
return "";
|
|
13035
13049
|
});
|
|
@@ -15392,7 +15406,7 @@
|
|
|
15392
15406
|
var get_1 = get$1;
|
|
15393
15407
|
|
|
15394
15408
|
function _arrayWithoutHoles(arr) {
|
|
15395
|
-
if (Array.isArray(arr)) return _arrayLikeToArray$
|
|
15409
|
+
if (Array.isArray(arr)) return _arrayLikeToArray$5(arr);
|
|
15396
15410
|
}
|
|
15397
15411
|
|
|
15398
15412
|
function _iterableToArray(iter) {
|
|
@@ -15404,7 +15418,7 @@
|
|
|
15404
15418
|
}
|
|
15405
15419
|
|
|
15406
15420
|
function _toConsumableArray(arr) {
|
|
15407
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray$
|
|
15421
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray$5(arr) || _nonIterableSpread();
|
|
15408
15422
|
}
|
|
15409
15423
|
|
|
15410
15424
|
function ownKeys$1e(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -26902,8 +26916,8 @@
|
|
|
26902
26916
|
};
|
|
26903
26917
|
|
|
26904
26918
|
var handleInputChange = function handleInputChange(value2) {
|
|
26905
|
-
if (selectedLabel === value2) return;
|
|
26906
26919
|
onInputChange(value2);
|
|
26920
|
+
if (selectedLabel === value2) return;
|
|
26907
26921
|
|
|
26908
26922
|
if (isFunction_1(onSearch)) {
|
|
26909
26923
|
onSearch(value2);
|
|
@@ -27443,6 +27457,19 @@
|
|
|
27443
27457
|
return direction;
|
|
27444
27458
|
};
|
|
27445
27459
|
|
|
27460
|
+
function percentPxToNumber(a) {
|
|
27461
|
+
if (typeof a === "undefined") return 0;
|
|
27462
|
+
if (/%/.test(a)) return Number(a.replace("%", "")) * 0.01;
|
|
27463
|
+
return Number(a.replace("px", ""));
|
|
27464
|
+
}
|
|
27465
|
+
|
|
27466
|
+
var getStyleHeight = function getStyleHeight(height) {
|
|
27467
|
+
return isNaN(Number(height)) ? height : "".concat(Number(height), "px");
|
|
27468
|
+
};
|
|
27469
|
+
var calHeight = function calHeight(height) {
|
|
27470
|
+
return isNaN(Number(height)) ? percentPxToNumber(height) : Number(height);
|
|
27471
|
+
};
|
|
27472
|
+
|
|
27446
27473
|
function TableEmptyBody$1(props) {
|
|
27447
27474
|
var _useConfig = useConfig$1(),
|
|
27448
27475
|
classPrefix = _useConfig.classPrefix;
|
|
@@ -28398,7 +28425,7 @@
|
|
|
28398
28425
|
scrollBarWidth = _useState6[0],
|
|
28399
28426
|
setScrollBarWidth = _useState6[1];
|
|
28400
28427
|
|
|
28401
|
-
var fixedHeader = height > 0 || maxHeight > 0;
|
|
28428
|
+
var fixedHeader = calHeight(height) > 0 || calHeight(maxHeight) > 0;
|
|
28402
28429
|
var hasFixedColumns = columns.some(function (_ref) {
|
|
28403
28430
|
var fixed = _ref.fixed;
|
|
28404
28431
|
return ["left", "right"].includes(fixed);
|
|
@@ -28563,8 +28590,8 @@
|
|
|
28563
28590
|
ref: scrollBodyRef,
|
|
28564
28591
|
className: "".concat(classPrefix, "-table__body"),
|
|
28565
28592
|
style: {
|
|
28566
|
-
height:
|
|
28567
|
-
maxHeight:
|
|
28593
|
+
height: getStyleHeight(height),
|
|
28594
|
+
maxHeight: getStyleHeight(maxHeight),
|
|
28568
28595
|
width: hasFixedColumns ? "100%" : void 0
|
|
28569
28596
|
}
|
|
28570
28597
|
}, hasFixedColumns ? {
|
|
@@ -28843,11 +28870,11 @@
|
|
|
28843
28870
|
}, renderSortIcons()));
|
|
28844
28871
|
};
|
|
28845
28872
|
|
|
28846
|
-
function _createForOfIteratorHelper$
|
|
28873
|
+
function _createForOfIteratorHelper$2(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
28847
28874
|
|
|
28848
|
-
function _unsupportedIterableToArray$
|
|
28875
|
+
function _unsupportedIterableToArray$2(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$2(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen); }
|
|
28849
28876
|
|
|
28850
|
-
function _arrayLikeToArray$
|
|
28877
|
+
function _arrayLikeToArray$2(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
28851
28878
|
|
|
28852
28879
|
function ownKeys$W(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
28853
28880
|
|
|
@@ -29056,7 +29083,7 @@
|
|
|
29056
29083
|
|
|
29057
29084
|
function comparer(sorts) {
|
|
29058
29085
|
return function (a, b) {
|
|
29059
|
-
var _iterator = _createForOfIteratorHelper$
|
|
29086
|
+
var _iterator = _createForOfIteratorHelper$2(sorts),
|
|
29060
29087
|
_step;
|
|
29061
29088
|
|
|
29062
29089
|
try {
|
|
@@ -31499,6 +31526,7 @@
|
|
|
31499
31526
|
MenuBlockType2["MenuItem"] = "MenuItem";
|
|
31500
31527
|
MenuBlockType2["SubMenu"] = "SubMenu";
|
|
31501
31528
|
MenuBlockType2["MenuItemGroup"] = "MenuItemGroup";
|
|
31529
|
+
MenuBlockType2["MenuGroup"] = "MenuGroup";
|
|
31502
31530
|
return MenuBlockType2;
|
|
31503
31531
|
}(MenuBlockType || {});
|
|
31504
31532
|
|
|
@@ -31604,6 +31632,10 @@
|
|
|
31604
31632
|
var displayName = child.type.displayName;
|
|
31605
31633
|
return displayName === MenuBlockType.MenuItem;
|
|
31606
31634
|
};
|
|
31635
|
+
var checkIsMenuGroup = function checkIsMenuGroup(child) {
|
|
31636
|
+
var displayName = child.type.displayName;
|
|
31637
|
+
return displayName === MenuBlockType.MenuGroup;
|
|
31638
|
+
};
|
|
31607
31639
|
|
|
31608
31640
|
var checkSubMenuChildrenActive = function checkSubMenuChildrenActive(children, active) {
|
|
31609
31641
|
var activeFlag = false;
|
|
@@ -31691,7 +31723,7 @@
|
|
|
31691
31723
|
var getSubMenuChildCount = function getSubMenuChildCount(children) {
|
|
31692
31724
|
var count = 0;
|
|
31693
31725
|
React__default["default"].Children.forEach(children, function (child) {
|
|
31694
|
-
if (child
|
|
31726
|
+
if (checkIsSubMenu(child) || checkIsMenuGroup(child)) {
|
|
31695
31727
|
count += getSubMenuChildCount(child.props.children) + 1;
|
|
31696
31728
|
} else {
|
|
31697
31729
|
count += 1;
|
|
@@ -31849,7 +31881,9 @@
|
|
|
31849
31881
|
var fakeArrowStyle = level > 1 ? {
|
|
31850
31882
|
transform: "rotate(-90deg)"
|
|
31851
31883
|
} : {};
|
|
31852
|
-
var
|
|
31884
|
+
var submenuMaxHeight = getSubMenuMaxHeight(children);
|
|
31885
|
+
var popupMaxHeight = ((_popRef$current = popRef.current) === null || _popRef$current === void 0 ? void 0 : _popRef$current.getBoundingClientRect().height) || submenuMaxHeight;
|
|
31886
|
+
var showPopup = isPopUp && submenuMaxHeight > 0;
|
|
31853
31887
|
return /* @__PURE__ */React__default["default"].createElement("li", {
|
|
31854
31888
|
className: classNames$1(className, "".concat(classPrefix, "-submenu"), _defineProperty$2({}, "".concat(classPrefix, "-is-opened"), open)),
|
|
31855
31889
|
onMouseEnter: function onMouseEnter() {
|
|
@@ -31863,10 +31897,10 @@
|
|
|
31863
31897
|
className: classNames$1("".concat(classPrefix, "-menu__item"), (_classNames6 = {}, _defineProperty$2(_classNames6, "".concat(classPrefix, "-is-active"), isActive), _defineProperty$2(_classNames6, "".concat(classPrefix, "-is-opened"), open), _classNames6)),
|
|
31864
31898
|
onClick: handleClick,
|
|
31865
31899
|
style: style
|
|
31866
|
-
}, /* @__PURE__ */React__default["default"].createElement("span", null, title),
|
|
31900
|
+
}, /* @__PURE__ */React__default["default"].createElement("span", null, title), showPopup && /* @__PURE__ */React__default["default"].createElement(FakeArrow, {
|
|
31867
31901
|
style: fakeArrowStyle,
|
|
31868
31902
|
isActive: open
|
|
31869
|
-
})),
|
|
31903
|
+
})), showPopup && /* @__PURE__ */React__default["default"].createElement("div", {
|
|
31870
31904
|
className: classNames$1("".concat(classPrefix, "-menu__popup"), _defineProperty$2({}, "".concat(classPrefix, "-is-opened"), open)),
|
|
31871
31905
|
style: {
|
|
31872
31906
|
"--popup-max-height": "".concat(popupMaxHeight, "px")
|
|
@@ -31884,10 +31918,28 @@
|
|
|
31884
31918
|
var children = props.children,
|
|
31885
31919
|
_props$level2 = props.level,
|
|
31886
31920
|
level = _props$level2 === void 0 ? 1 : _props$level2;
|
|
31921
|
+
|
|
31922
|
+
var changeItemLevel = function changeItemLevel(item) {
|
|
31923
|
+
if (checkIsSubMenu(item)) {
|
|
31924
|
+
return /*#__PURE__*/React__default["default"].cloneElement(item, {
|
|
31925
|
+
level: level + 1
|
|
31926
|
+
});
|
|
31927
|
+
}
|
|
31928
|
+
|
|
31929
|
+
if (checkIsMenuGroup(item)) {
|
|
31930
|
+
var groupChidren = React__default["default"].Children.map(item.props.children, function (item2) {
|
|
31931
|
+
return changeItemLevel(item2);
|
|
31932
|
+
});
|
|
31933
|
+
return /*#__PURE__*/React__default["default"].cloneElement(item, {
|
|
31934
|
+
level: level + 1
|
|
31935
|
+
}, groupChidren);
|
|
31936
|
+
}
|
|
31937
|
+
|
|
31938
|
+
return item;
|
|
31939
|
+
};
|
|
31940
|
+
|
|
31887
31941
|
var childElement = React__default["default"].Children.map(children, function (item) {
|
|
31888
|
-
return
|
|
31889
|
-
level: level + 1
|
|
31890
|
-
}) : item;
|
|
31942
|
+
return changeItemLevel(item);
|
|
31891
31943
|
});
|
|
31892
31944
|
if (mode === "accordion") return /* @__PURE__ */React__default["default"].createElement(SubAccordion, _objectSpread$I({}, props), childElement);
|
|
31893
31945
|
if (mode === "title") return /* @__PURE__ */React__default["default"].createElement(SubTitleMenu, _objectSpread$I({}, props), childElement);
|
|
@@ -31959,18 +32011,27 @@
|
|
|
31959
32011
|
|
|
31960
32012
|
var MenuGroup = function MenuGroup(_ref) {
|
|
31961
32013
|
var title = _ref.title,
|
|
31962
|
-
children = _ref.children
|
|
32014
|
+
children = _ref.children,
|
|
32015
|
+
_ref$level = _ref.level,
|
|
32016
|
+
level = _ref$level === void 0 ? 1 : _ref$level;
|
|
31963
32017
|
|
|
31964
32018
|
var _useConfig = useConfig$1(),
|
|
31965
32019
|
classPrefix = _useConfig.classPrefix;
|
|
31966
32020
|
|
|
32021
|
+
var itemAndGroupPaddingBias = 28;
|
|
32022
|
+
var menuPaddingLeft = cacularPaddingLeft(level - 1) - itemAndGroupPaddingBias;
|
|
31967
32023
|
return /* @__PURE__ */React__default["default"].createElement("div", {
|
|
31968
32024
|
className: classNames$1("".concat(classPrefix, "-menu-group"))
|
|
31969
32025
|
}, /* @__PURE__ */React__default["default"].createElement("div", {
|
|
31970
|
-
className: classNames$1("".concat(classPrefix, "-menu-group__title"))
|
|
32026
|
+
className: classNames$1("".concat(classPrefix, "-menu-group__title")),
|
|
32027
|
+
style: {
|
|
32028
|
+
paddingLeft: "".concat(menuPaddingLeft, "px")
|
|
32029
|
+
}
|
|
31971
32030
|
}, title), children);
|
|
31972
32031
|
};
|
|
31973
32032
|
|
|
32033
|
+
MenuGroup.displayName = "MenuGroup";
|
|
32034
|
+
|
|
31974
32035
|
function ownKeys$G(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
31975
32036
|
|
|
31976
32037
|
function _objectSpread$G(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$G(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$G(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -32076,7 +32137,7 @@
|
|
|
32076
32137
|
document.documentElement.addEventListener("click", getClickPosition, true);
|
|
32077
32138
|
}
|
|
32078
32139
|
|
|
32079
|
-
var RenderDialog = function
|
|
32140
|
+
var RenderDialog = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
32080
32141
|
var prefixCls = props.prefixCls,
|
|
32081
32142
|
attach = props.attach,
|
|
32082
32143
|
visible = props.visible,
|
|
@@ -32098,16 +32159,22 @@
|
|
|
32098
32159
|
_props$closeOnEscKeyd = props.closeOnEscKeydown,
|
|
32099
32160
|
closeOnEscKeydown = _props$closeOnEscKeyd === void 0 ? true : _props$closeOnEscKeyd,
|
|
32100
32161
|
_props$closeOnOverlay = props.closeOnOverlayClick,
|
|
32101
|
-
closeOnOverlayClick = _props$closeOnOverlay === void 0 ? true : _props$closeOnOverlay
|
|
32162
|
+
closeOnOverlayClick = _props$closeOnOverlay === void 0 ? true : _props$closeOnOverlay,
|
|
32163
|
+
_props$destroyOnClose = props.destroyOnClose,
|
|
32164
|
+
destroyOnClose = _props$destroyOnClose === void 0 ? false : _props$destroyOnClose;
|
|
32102
32165
|
var wrap = React.useRef();
|
|
32103
32166
|
var dialog = React.useRef();
|
|
32104
32167
|
var maskRef = React.useRef();
|
|
32168
|
+
var domRef = React.useRef();
|
|
32105
32169
|
var bodyOverflow = React.useRef();
|
|
32106
32170
|
var bodyCssTextRef = React.useRef();
|
|
32107
32171
|
var isModal = mode === "modal";
|
|
32108
32172
|
var canDraggable = props.draggable && mode === "modeless";
|
|
32109
32173
|
var dialogOpenClass = "".concat(prefixCls, "__open");
|
|
32110
32174
|
useDialogEsc(visible, wrap);
|
|
32175
|
+
React.useImperativeHandle(ref, function () {
|
|
32176
|
+
return domRef.current;
|
|
32177
|
+
});
|
|
32111
32178
|
useIsomorphicLayoutEffect(function () {
|
|
32112
32179
|
bodyOverflow.current = document.body.style.overflow;
|
|
32113
32180
|
bodyCssTextRef.current = document.body.style.cssText;
|
|
@@ -32173,6 +32240,12 @@
|
|
|
32173
32240
|
style.top = "50%";
|
|
32174
32241
|
}
|
|
32175
32242
|
|
|
32243
|
+
if (destroyOnClose) {
|
|
32244
|
+
var _domRef$current, _domRef$current$paren;
|
|
32245
|
+
|
|
32246
|
+
(_domRef$current = domRef.current) === null || _domRef$current === void 0 ? void 0 : (_domRef$current$paren = _domRef$current.parentNode) === null || _domRef$current$paren === void 0 ? void 0 : _domRef$current$paren.removeChild(domRef.current);
|
|
32247
|
+
}
|
|
32248
|
+
|
|
32176
32249
|
onClosed && onClosed();
|
|
32177
32250
|
};
|
|
32178
32251
|
|
|
@@ -32309,7 +32382,7 @@
|
|
|
32309
32382
|
"in": props.visible,
|
|
32310
32383
|
appear: true,
|
|
32311
32384
|
mountOnEnter: true,
|
|
32312
|
-
unmountOnExit:
|
|
32385
|
+
unmountOnExit: destroyOnClose,
|
|
32313
32386
|
timeout: transitionTime,
|
|
32314
32387
|
classNames: "".concat(prefixCls, "-zoom"),
|
|
32315
32388
|
onEntered: props.onOpened,
|
|
@@ -32365,9 +32438,11 @@
|
|
|
32365
32438
|
if (visible || wrap.current) {
|
|
32366
32439
|
if (!attach) {
|
|
32367
32440
|
dom = dialog2;
|
|
32441
|
+
domRef.current = dom;
|
|
32368
32442
|
} else {
|
|
32369
32443
|
dom = /* @__PURE__ */React__default["default"].createElement(Portal, {
|
|
32370
|
-
attach: attach
|
|
32444
|
+
attach: attach,
|
|
32445
|
+
ref: domRef
|
|
32371
32446
|
}, dialog2);
|
|
32372
32447
|
}
|
|
32373
32448
|
}
|
|
@@ -32376,7 +32451,7 @@
|
|
|
32376
32451
|
};
|
|
32377
32452
|
|
|
32378
32453
|
return render();
|
|
32379
|
-
};
|
|
32454
|
+
});
|
|
32380
32455
|
|
|
32381
32456
|
function ownKeys$E(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
32382
32457
|
|
|
@@ -32411,6 +32486,8 @@
|
|
|
32411
32486
|
var _useConfig = useConfig$1(),
|
|
32412
32487
|
classPrefix = _useConfig.classPrefix;
|
|
32413
32488
|
|
|
32489
|
+
var dialogDom = React.useRef();
|
|
32490
|
+
|
|
32414
32491
|
var _useSetState = useSetState(_objectSpread$D({
|
|
32415
32492
|
width: 520,
|
|
32416
32493
|
visible: false,
|
|
@@ -32489,7 +32566,12 @@
|
|
|
32489
32566
|
visible: false
|
|
32490
32567
|
});
|
|
32491
32568
|
},
|
|
32492
|
-
destroy:
|
|
32569
|
+
destroy: function destroy() {
|
|
32570
|
+
setState({
|
|
32571
|
+
visible: false,
|
|
32572
|
+
destroyOnClose: true
|
|
32573
|
+
});
|
|
32574
|
+
},
|
|
32493
32575
|
update: function update(newOptions) {
|
|
32494
32576
|
setState(function (prevState) {
|
|
32495
32577
|
return _objectSpread$D(_objectSpread$D({}, prevState), newOptions);
|
|
@@ -32573,7 +32655,8 @@
|
|
|
32573
32655
|
closeBtn: renderCloseIcon(),
|
|
32574
32656
|
classPrefix: classPrefix,
|
|
32575
32657
|
onClose: onClose,
|
|
32576
|
-
footer: footer === void 0 ? defaultFooter() : footer
|
|
32658
|
+
footer: footer === void 0 ? defaultFooter() : footer,
|
|
32659
|
+
ref: dialogDom
|
|
32577
32660
|
}));
|
|
32578
32661
|
});
|
|
32579
32662
|
Dialog$1.displayName = "Dialog";
|
|
@@ -32607,11 +32690,13 @@
|
|
|
32607
32690
|
show: function show() {
|
|
32608
32691
|
var _dialogRef$current;
|
|
32609
32692
|
|
|
32693
|
+
container.appendChild(div);
|
|
32610
32694
|
(_dialogRef$current = dialogRef.current) === null || _dialogRef$current === void 0 ? void 0 : _dialogRef$current.show();
|
|
32611
32695
|
},
|
|
32612
32696
|
hide: function hide() {
|
|
32613
|
-
var _dialogRef$current2;
|
|
32697
|
+
var _div$parentNode, _dialogRef$current2;
|
|
32614
32698
|
|
|
32699
|
+
div === null || div === void 0 ? void 0 : (_div$parentNode = div.parentNode) === null || _div$parentNode === void 0 ? void 0 : _div$parentNode.removeChild(div);
|
|
32615
32700
|
(_dialogRef$current2 = dialogRef.current) === null || _dialogRef$current2 === void 0 ? void 0 : _dialogRef$current2.hide();
|
|
32616
32701
|
},
|
|
32617
32702
|
update: function update(updateOptions) {
|
|
@@ -32620,7 +32705,10 @@
|
|
|
32620
32705
|
(_dialogRef$current3 = dialogRef.current) === null || _dialogRef$current3 === void 0 ? void 0 : _dialogRef$current3.update(updateOptions);
|
|
32621
32706
|
},
|
|
32622
32707
|
destroy: function destroy() {
|
|
32623
|
-
|
|
32708
|
+
var _dialogRef$current4, _div$parentNode2;
|
|
32709
|
+
|
|
32710
|
+
(_dialogRef$current4 = dialogRef.current) === null || _dialogRef$current4 === void 0 ? void 0 : _dialogRef$current4.destroy();
|
|
32711
|
+
div === null || div === void 0 ? void 0 : (_div$parentNode2 = div.parentNode) === null || _div$parentNode2 === void 0 ? void 0 : _div$parentNode2.removeChild(div);
|
|
32624
32712
|
}
|
|
32625
32713
|
};
|
|
32626
32714
|
return dialogNode;
|
|
@@ -40328,10 +40416,12 @@
|
|
|
40328
40416
|
|
|
40329
40417
|
var Calendar = Calendar$1;
|
|
40330
40418
|
|
|
40331
|
-
function
|
|
40419
|
+
function _createForOfIteratorHelper$1(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
40332
40420
|
|
|
40333
|
-
function
|
|
40334
|
-
|
|
40421
|
+
function _unsupportedIterableToArray$1(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$1(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen); }
|
|
40422
|
+
|
|
40423
|
+
function _arrayLikeToArray$1(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
40424
|
+
function useInstance(props, formRef, formMapRef) {
|
|
40335
40425
|
var _useConfig = useConfig$1(),
|
|
40336
40426
|
classPrefix = _useConfig.classPrefix;
|
|
40337
40427
|
|
|
@@ -40341,20 +40431,6 @@
|
|
|
40341
40431
|
preventSubmitDefault = _props$preventSubmitD === void 0 ? true : _props$preventSubmitD,
|
|
40342
40432
|
onSubmit = props.onSubmit;
|
|
40343
40433
|
|
|
40344
|
-
function getFormItemsMap() {
|
|
40345
|
-
var formItemsMap = formItemsRef.current.reduce(function (acc, _ref) {
|
|
40346
|
-
var currItem = _ref.current;
|
|
40347
|
-
|
|
40348
|
-
if (currItem !== null && currItem !== void 0 && currItem.name) {
|
|
40349
|
-
var name = currItem.name;
|
|
40350
|
-
return _objectSpread$o(_objectSpread$o({}, acc), {}, _defineProperty$2({}, name, currItem));
|
|
40351
|
-
}
|
|
40352
|
-
|
|
40353
|
-
return acc;
|
|
40354
|
-
}, {});
|
|
40355
|
-
return formItemsMap;
|
|
40356
|
-
}
|
|
40357
|
-
|
|
40358
40434
|
function getFirstError(r) {
|
|
40359
40435
|
var _r$firstKey$;
|
|
40360
40436
|
|
|
@@ -40403,18 +40479,21 @@
|
|
|
40403
40479
|
return fields2.indexOf(name) !== -1;
|
|
40404
40480
|
}
|
|
40405
40481
|
|
|
40406
|
-
var
|
|
40407
|
-
fields =
|
|
40408
|
-
|
|
40409
|
-
trigger =
|
|
40482
|
+
var _ref = param || {},
|
|
40483
|
+
fields = _ref.fields,
|
|
40484
|
+
_ref$trigger = _ref.trigger,
|
|
40485
|
+
trigger = _ref$trigger === void 0 ? "all" : _ref$trigger;
|
|
40486
|
+
|
|
40487
|
+
var list = _toConsumableArray(formMapRef.current.values()).filter(function (formItemRef) {
|
|
40488
|
+
var _formItemRef$current, _formItemRef$current2;
|
|
40410
40489
|
|
|
40411
|
-
|
|
40412
|
-
|
|
40413
|
-
|
|
40414
|
-
|
|
40415
|
-
|
|
40416
|
-
return formItemRef.validate(trigger);
|
|
40490
|
+
return isFunction_1((_formItemRef$current = formItemRef.current) === null || _formItemRef$current === void 0 ? void 0 : _formItemRef$current.validate) && needValidate((_formItemRef$current2 = formItemRef.current) === null || _formItemRef$current2 === void 0 ? void 0 : _formItemRef$current2.name, fields);
|
|
40491
|
+
}).map(function (formItemRef) {
|
|
40492
|
+
var _formItemRef$current3;
|
|
40493
|
+
|
|
40494
|
+
return (_formItemRef$current3 = formItemRef.current) === null || _formItemRef$current3 === void 0 ? void 0 : _formItemRef$current3.validate(trigger);
|
|
40417
40495
|
});
|
|
40496
|
+
|
|
40418
40497
|
return new Promise(function (resolve) {
|
|
40419
40498
|
Promise.all(flatten_1(list)).then(function (arr) {
|
|
40420
40499
|
var r = arr.reduce(function (r2, err) {
|
|
@@ -40435,32 +40514,36 @@
|
|
|
40435
40514
|
}
|
|
40436
40515
|
|
|
40437
40516
|
function getFieldValue(name) {
|
|
40438
|
-
var _target$current;
|
|
40439
|
-
|
|
40440
40517
|
if (!name) return null;
|
|
40441
|
-
var
|
|
40442
|
-
|
|
40443
|
-
return (formItemRef === null || formItemRef === void 0 ? void 0 : formItemRef.name) === name;
|
|
40444
|
-
});
|
|
40445
|
-
return (_target$current = target.current) === null || _target$current === void 0 ? void 0 : _target$current.value;
|
|
40518
|
+
var formItemRef = formMapRef.current.get(name);
|
|
40519
|
+
return formItemRef.current.value;
|
|
40446
40520
|
}
|
|
40447
40521
|
|
|
40448
40522
|
function getFieldsValue(nameList) {
|
|
40449
40523
|
var fieldsValue = {};
|
|
40450
|
-
var formItemsMap = getFormItemsMap();
|
|
40451
40524
|
|
|
40452
40525
|
if (nameList === true) {
|
|
40453
|
-
|
|
40454
|
-
|
|
40526
|
+
var _iterator = _createForOfIteratorHelper$1(formMapRef.current.entries()),
|
|
40527
|
+
_step;
|
|
40455
40528
|
|
|
40456
|
-
|
|
40457
|
-
|
|
40529
|
+
try {
|
|
40530
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
40531
|
+
var _step$value = _slicedToArray(_step.value, 2),
|
|
40532
|
+
name = _step$value[0],
|
|
40533
|
+
formItemRef = _step$value[1];
|
|
40534
|
+
|
|
40535
|
+
fieldsValue[name] = formItemRef.current.value;
|
|
40458
40536
|
}
|
|
40459
|
-
})
|
|
40537
|
+
} catch (err) {
|
|
40538
|
+
_iterator.e(err);
|
|
40539
|
+
} finally {
|
|
40540
|
+
_iterator.f();
|
|
40541
|
+
}
|
|
40460
40542
|
} else {
|
|
40461
40543
|
if (!Array.isArray(nameList)) throw new Error("getFieldsValue \u53C2\u6570\u9700\u8981 Array \u7C7B\u578B");
|
|
40462
40544
|
nameList.forEach(function (name) {
|
|
40463
|
-
|
|
40545
|
+
var formItemRef = formMapRef.current.get(name);
|
|
40546
|
+
if (formItemRef) fieldsValue[name] = formItemRef.current.value;
|
|
40464
40547
|
});
|
|
40465
40548
|
}
|
|
40466
40549
|
|
|
@@ -40469,25 +40552,25 @@
|
|
|
40469
40552
|
|
|
40470
40553
|
function setFieldsValue() {
|
|
40471
40554
|
var fields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
40472
|
-
var formItemsMap = getFormItemsMap();
|
|
40473
40555
|
Object.keys(fields).forEach(function (key) {
|
|
40474
|
-
var
|
|
40556
|
+
var _formItemRef$current4, _formItemRef$current5;
|
|
40475
40557
|
|
|
40476
|
-
|
|
40558
|
+
var formItemRef = formMapRef.current.get(key);
|
|
40559
|
+
formItemRef === null || formItemRef === void 0 ? void 0 : (_formItemRef$current4 = formItemRef.current) === null || _formItemRef$current4 === void 0 ? void 0 : (_formItemRef$current5 = _formItemRef$current4.setValue) === null || _formItemRef$current5 === void 0 ? void 0 : _formItemRef$current5.call(_formItemRef$current4, fields[key]);
|
|
40477
40560
|
});
|
|
40478
40561
|
}
|
|
40479
40562
|
|
|
40480
40563
|
function setFields() {
|
|
40481
40564
|
var fields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
40482
40565
|
if (!Array.isArray(fields)) throw new Error("setFields \u53C2\u6570\u9700\u8981 Array \u7C7B\u578B");
|
|
40483
|
-
var formItemsMap = getFormItemsMap();
|
|
40484
40566
|
fields.forEach(function (field) {
|
|
40485
|
-
var
|
|
40567
|
+
var _formItemRef$current6;
|
|
40486
40568
|
|
|
40487
40569
|
var name = field.name,
|
|
40488
40570
|
value = field.value,
|
|
40489
40571
|
status = field.status;
|
|
40490
|
-
|
|
40572
|
+
var formItemRef = formMapRef.current.get(name);
|
|
40573
|
+
formItemRef === null || formItemRef === void 0 ? void 0 : (_formItemRef$current6 = formItemRef.current) === null || _formItemRef$current6 === void 0 ? void 0 : _formItemRef$current6.setField({
|
|
40491
40574
|
value: value,
|
|
40492
40575
|
status: status
|
|
40493
40576
|
});
|
|
@@ -40496,45 +40579,49 @@
|
|
|
40496
40579
|
|
|
40497
40580
|
function reset(params) {
|
|
40498
40581
|
if (typeof params === "undefined") {
|
|
40499
|
-
|
|
40500
|
-
var
|
|
40501
|
-
|
|
40582
|
+
_toConsumableArray(formMapRef.current.values()).forEach(function (formItemRef) {
|
|
40583
|
+
var _formItemRef$current7;
|
|
40584
|
+
|
|
40585
|
+
formItemRef === null || formItemRef === void 0 ? void 0 : (_formItemRef$current7 = formItemRef.current) === null || _formItemRef$current7 === void 0 ? void 0 : _formItemRef$current7.resetField();
|
|
40502
40586
|
});
|
|
40503
40587
|
} else {
|
|
40504
40588
|
var _params$type = params.type,
|
|
40505
40589
|
type = _params$type === void 0 ? "initial" : _params$type,
|
|
40506
40590
|
_params$fields = params.fields,
|
|
40507
40591
|
fields = _params$fields === void 0 ? [] : _params$fields;
|
|
40508
|
-
var formItemsMap = getFormItemsMap();
|
|
40509
40592
|
fields.forEach(function (name) {
|
|
40510
|
-
var
|
|
40593
|
+
var _formItemRef$current8;
|
|
40511
40594
|
|
|
40512
|
-
|
|
40595
|
+
var formItemRef = formMapRef.current.get(name);
|
|
40596
|
+
formItemRef === null || formItemRef === void 0 ? void 0 : (_formItemRef$current8 = formItemRef.current) === null || _formItemRef$current8 === void 0 ? void 0 : _formItemRef$current8.resetField(type);
|
|
40513
40597
|
});
|
|
40514
40598
|
}
|
|
40515
40599
|
}
|
|
40516
40600
|
|
|
40517
40601
|
function clearValidate(fields) {
|
|
40518
40602
|
if (typeof fields === "undefined") {
|
|
40519
|
-
|
|
40520
|
-
var
|
|
40521
|
-
|
|
40603
|
+
_toConsumableArray(formMapRef.current.values()).forEach(function (formItemRef) {
|
|
40604
|
+
var _formItemRef$current9;
|
|
40605
|
+
|
|
40606
|
+
formItemRef === null || formItemRef === void 0 ? void 0 : (_formItemRef$current9 = formItemRef.current) === null || _formItemRef$current9 === void 0 ? void 0 : _formItemRef$current9.resetValidate();
|
|
40522
40607
|
});
|
|
40523
40608
|
} else {
|
|
40524
40609
|
if (!Array.isArray(fields)) throw new Error("clearValidate \u53C2\u6570\u9700\u8981 Array \u7C7B\u578B");
|
|
40525
|
-
var formItemsMap = getFormItemsMap();
|
|
40526
40610
|
fields.forEach(function (name) {
|
|
40527
|
-
var
|
|
40611
|
+
var _formItemRef$current10;
|
|
40528
40612
|
|
|
40529
|
-
|
|
40613
|
+
var formItemRef = formMapRef.current.get(name);
|
|
40614
|
+
(_formItemRef$current10 = formItemRef.current) === null || _formItemRef$current10 === void 0 ? void 0 : _formItemRef$current10.resetValidate();
|
|
40530
40615
|
});
|
|
40531
40616
|
}
|
|
40532
40617
|
}
|
|
40533
40618
|
|
|
40534
40619
|
function setValidateMessage(message) {
|
|
40535
|
-
var formItemsMap = getFormItemsMap();
|
|
40536
40620
|
Object.keys(message).forEach(function (name) {
|
|
40537
|
-
|
|
40621
|
+
var _formItemRef$current11;
|
|
40622
|
+
|
|
40623
|
+
var formItemRef = formMapRef.current.get(name);
|
|
40624
|
+
formItemRef === null || formItemRef === void 0 ? void 0 : (_formItemRef$current11 = formItemRef.current) === null || _formItemRef$current11 === void 0 ? void 0 : _formItemRef$current11.setValidateMessage(message[name]);
|
|
40538
40625
|
});
|
|
40539
40626
|
}
|
|
40540
40627
|
|
|
@@ -40552,10 +40639,9 @@
|
|
|
40552
40639
|
}
|
|
40553
40640
|
|
|
40554
40641
|
var FormContext = /*#__PURE__*/React__default["default"].createContext({
|
|
40555
|
-
labelWidth: "
|
|
40642
|
+
labelWidth: "100px",
|
|
40556
40643
|
labelAlign: "right",
|
|
40557
40644
|
layout: "vertical",
|
|
40558
|
-
size: "medium",
|
|
40559
40645
|
colon: false,
|
|
40560
40646
|
requiredMark: true,
|
|
40561
40647
|
scrollToFirstError: void 0,
|
|
@@ -40566,11 +40652,19 @@
|
|
|
40566
40652
|
errorMessage: void 0,
|
|
40567
40653
|
statusIcon: false,
|
|
40568
40654
|
onFormItemValueChange: void 0,
|
|
40569
|
-
|
|
40655
|
+
formMapRef: void 0
|
|
40570
40656
|
});
|
|
40571
40657
|
var useFormContext = function useFormContext() {
|
|
40572
40658
|
return React__default["default"].useContext(FormContext);
|
|
40573
40659
|
};
|
|
40660
|
+
var FormListContext = /*#__PURE__*/React__default["default"].createContext({
|
|
40661
|
+
name: void 0,
|
|
40662
|
+
rules: void 0,
|
|
40663
|
+
formListMapRef: void 0
|
|
40664
|
+
});
|
|
40665
|
+
var useFormListContext = function useFormListContext() {
|
|
40666
|
+
return React__default["default"].useContext(FormListContext);
|
|
40667
|
+
};
|
|
40574
40668
|
|
|
40575
40669
|
var copyObject$1 = _copyObject,
|
|
40576
40670
|
createAssigner = _createAssigner,
|
|
@@ -42914,9 +43008,9 @@
|
|
|
42914
43008
|
|
|
42915
43009
|
var _excluded$6 = ["value", "defaultFiles", "files", "onChange"];
|
|
42916
43010
|
|
|
42917
|
-
function ownKeys$
|
|
43011
|
+
function ownKeys$o(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
42918
43012
|
|
|
42919
|
-
function _objectSpread$
|
|
43013
|
+
function _objectSpread$o(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$o(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$o(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
42920
43014
|
function useDefaultValue(props, defaultDefaultValue) {
|
|
42921
43015
|
var value = props.value,
|
|
42922
43016
|
defaultFiles = props.defaultFiles,
|
|
@@ -42935,7 +43029,7 @@
|
|
|
42935
43029
|
finalValue = _useDefault2[0],
|
|
42936
43030
|
finalOnChange = _useDefault2[1];
|
|
42937
43031
|
|
|
42938
|
-
return _objectSpread$
|
|
43032
|
+
return _objectSpread$o({
|
|
42939
43033
|
files: finalValue,
|
|
42940
43034
|
onChange: finalOnChange
|
|
42941
43035
|
}, restProps);
|
|
@@ -42994,9 +43088,9 @@
|
|
|
42994
43088
|
|
|
42995
43089
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
42996
43090
|
|
|
42997
|
-
function ownKeys$
|
|
43091
|
+
function ownKeys$n(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
42998
43092
|
|
|
42999
|
-
function _objectSpread$
|
|
43093
|
+
function _objectSpread$n(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$n(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$n(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
43000
43094
|
|
|
43001
43095
|
var Upload$1 = function Upload(props, ref) {
|
|
43002
43096
|
var _useDefaultValue = useDefaultValue(props, []),
|
|
@@ -43170,7 +43264,7 @@
|
|
|
43170
43264
|
onFail === null || onFail === void 0 ? void 0 : onFail(context);
|
|
43171
43265
|
}, [formatResponse, errorText, onChange, onFail]);
|
|
43172
43266
|
var singleDraggable = React.useMemo(function () {
|
|
43173
|
-
return !multiple
|
|
43267
|
+
return (!multiple || ["file", "file-input", "image", "custom"].includes(theme)) && draggable;
|
|
43174
43268
|
}, [draggable, multiple, theme]);
|
|
43175
43269
|
|
|
43176
43270
|
var handleSingleRemove = function handleSingleRemove(e) {
|
|
@@ -43218,7 +43312,7 @@
|
|
|
43218
43312
|
_ref3$type = _ref3.type,
|
|
43219
43313
|
type = _ref3$type === void 0 ? "mock" : _ref3$type;
|
|
43220
43314
|
|
|
43221
|
-
var tmpFile = _objectSpread$
|
|
43315
|
+
var tmpFile = _objectSpread$n({}, file);
|
|
43222
43316
|
|
|
43223
43317
|
tmpFile.percent = percent;
|
|
43224
43318
|
var progressCtx = {
|
|
@@ -43253,7 +43347,7 @@
|
|
|
43253
43347
|
var r = res.response || {};
|
|
43254
43348
|
onError({
|
|
43255
43349
|
file: file,
|
|
43256
|
-
response: _objectSpread$
|
|
43350
|
+
response: _objectSpread$n(_objectSpread$n({}, r), {}, {
|
|
43257
43351
|
error: res.error
|
|
43258
43352
|
})
|
|
43259
43353
|
});
|
|
@@ -43267,7 +43361,7 @@
|
|
|
43267
43361
|
while (1) {
|
|
43268
43362
|
switch (_context.prev = _context.next) {
|
|
43269
43363
|
case 0:
|
|
43270
|
-
file = _objectSpread$
|
|
43364
|
+
file = _objectSpread$n({}, uploadFile);
|
|
43271
43365
|
|
|
43272
43366
|
if (!(file.status !== "waiting")) {
|
|
43273
43367
|
_context.next = 3;
|
|
@@ -43302,6 +43396,7 @@
|
|
|
43302
43396
|
action: action,
|
|
43303
43397
|
data: data,
|
|
43304
43398
|
file: file,
|
|
43399
|
+
files: [file],
|
|
43305
43400
|
name: name,
|
|
43306
43401
|
onError: onError,
|
|
43307
43402
|
headers: headers,
|
|
@@ -43353,7 +43448,7 @@
|
|
|
43353
43448
|
|
|
43354
43449
|
var file = typeof format === "function" ? format(fileRaw) : fileRaw;
|
|
43355
43450
|
|
|
43356
|
-
var uploadFile = _objectSpread$
|
|
43451
|
+
var uploadFile = _objectSpread$n({
|
|
43357
43452
|
raw: fileRaw,
|
|
43358
43453
|
lastModified: fileRaw.lastModified,
|
|
43359
43454
|
name: fileRaw.name,
|
|
@@ -44646,9 +44741,9 @@
|
|
|
44646
44741
|
|
|
44647
44742
|
var isURL = /*@__PURE__*/getDefaultExportFromCjs(isURL$1.exports);
|
|
44648
44743
|
|
|
44649
|
-
function ownKeys$
|
|
44744
|
+
function ownKeys$m(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
44650
44745
|
|
|
44651
|
-
function _objectSpread$
|
|
44746
|
+
function _objectSpread$m(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$m(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$m(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
44652
44747
|
function isValueEmpty(val) {
|
|
44653
44748
|
var type = Object.prototype.toString.call(val);
|
|
44654
44749
|
var typeMap = {
|
|
@@ -44777,7 +44872,7 @@
|
|
|
44777
44872
|
break;
|
|
44778
44873
|
}
|
|
44779
44874
|
|
|
44780
|
-
return _context.abrupt("return", _objectSpread$
|
|
44875
|
+
return _context.abrupt("return", _objectSpread$m(_objectSpread$m({}, rule), {}, {
|
|
44781
44876
|
result: validateResult
|
|
44782
44877
|
}));
|
|
44783
44878
|
|
|
@@ -44833,10 +44928,87 @@
|
|
|
44833
44928
|
return _validate.apply(this, arguments);
|
|
44834
44929
|
}
|
|
44835
44930
|
|
|
44836
|
-
function
|
|
44931
|
+
function useFormItemStyle(props) {
|
|
44932
|
+
var _classNames, _classNames2;
|
|
44837
44933
|
|
|
44838
|
-
|
|
44934
|
+
var _useConfig = useConfig$1(),
|
|
44935
|
+
classPrefix = _useConfig.classPrefix;
|
|
44839
44936
|
|
|
44937
|
+
var className = props.className,
|
|
44938
|
+
help = props.help,
|
|
44939
|
+
name = props.name,
|
|
44940
|
+
successBorder = props.successBorder,
|
|
44941
|
+
errorList = props.errorList,
|
|
44942
|
+
layout = props.layout,
|
|
44943
|
+
verifyStatus = props.verifyStatus,
|
|
44944
|
+
colon = props.colon,
|
|
44945
|
+
label = props.label,
|
|
44946
|
+
labelWidth = props.labelWidth,
|
|
44947
|
+
labelAlign = props.labelAlign,
|
|
44948
|
+
requiredMark = props.requiredMark,
|
|
44949
|
+
showErrorMessage = props.showErrorMessage,
|
|
44950
|
+
innerRules = props.innerRules,
|
|
44951
|
+
renderTipsInfo = props.renderTipsInfo;
|
|
44952
|
+
var renderName = Array.isArray(name) ? name.join("-") : name;
|
|
44953
|
+
var formItemClass = classNames$1(className, "".concat(classPrefix, "-form__item"), (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-form-item__").concat(renderName), renderName), _defineProperty$2(_classNames, "".concat(classPrefix, "-form__item-with-help"), help), _defineProperty$2(_classNames, "".concat(classPrefix, "-form__item-with-extra"), renderTipsInfo()), _classNames));
|
|
44954
|
+
var formItemLabelClass = classNames$1("".concat(classPrefix, "-form__label"), (_classNames2 = {}, _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--required"), requiredMark && innerRules.filter(function (rule) {
|
|
44955
|
+
return rule.required;
|
|
44956
|
+
}).length > 0), _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--colon"), colon && label), _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--top"), labelAlign === "top" || !labelWidth), _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--left"), labelAlign === "left" && labelWidth), _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--right"), labelAlign === "right" && labelWidth), _classNames2));
|
|
44957
|
+
|
|
44958
|
+
var contentClass = function contentClass() {
|
|
44959
|
+
var _classNames4;
|
|
44960
|
+
|
|
44961
|
+
var controlCls = "".concat(classPrefix, "-form__controls");
|
|
44962
|
+
if (!showErrorMessage) return controlCls;
|
|
44963
|
+
var isSuccess = verifyStatus === VALIDATE_STATUS.SUCCESS;
|
|
44964
|
+
|
|
44965
|
+
if (isSuccess) {
|
|
44966
|
+
return classNames$1(controlCls, "".concat(classPrefix, "-is-success"), _defineProperty$2({}, "".concat(classPrefix, "-form--success-border"), successBorder));
|
|
44967
|
+
}
|
|
44968
|
+
|
|
44969
|
+
var firstErrorType = errorList.length && (errorList[0].type || "error");
|
|
44970
|
+
return classNames$1(controlCls, (_classNames4 = {}, _defineProperty$2(_classNames4, "".concat(classPrefix, "-is-warning"), firstErrorType === "warning"), _defineProperty$2(_classNames4, "".concat(classPrefix, "-is-error"), firstErrorType === "error"), _classNames4));
|
|
44971
|
+
};
|
|
44972
|
+
|
|
44973
|
+
var labelStyle = {};
|
|
44974
|
+
var contentStyle = {};
|
|
44975
|
+
|
|
44976
|
+
if (label && labelWidth && labelAlign !== "top") {
|
|
44977
|
+
if (typeof labelWidth === "number") {
|
|
44978
|
+
labelStyle = {
|
|
44979
|
+
width: "".concat(labelWidth, "px")
|
|
44980
|
+
};
|
|
44981
|
+
contentStyle = {
|
|
44982
|
+
marginLeft: layout !== "inline" ? "".concat(labelWidth, "px") : ""
|
|
44983
|
+
};
|
|
44984
|
+
} else {
|
|
44985
|
+
labelStyle = {
|
|
44986
|
+
width: labelWidth
|
|
44987
|
+
};
|
|
44988
|
+
contentStyle = {
|
|
44989
|
+
marginLeft: layout !== "inline" ? labelWidth : ""
|
|
44990
|
+
};
|
|
44991
|
+
}
|
|
44992
|
+
}
|
|
44993
|
+
|
|
44994
|
+
return {
|
|
44995
|
+
formItemClass: formItemClass,
|
|
44996
|
+
formItemLabelClass: formItemLabelClass,
|
|
44997
|
+
contentClass: contentClass,
|
|
44998
|
+
labelStyle: labelStyle,
|
|
44999
|
+
contentStyle: contentStyle
|
|
45000
|
+
};
|
|
45001
|
+
}
|
|
45002
|
+
|
|
45003
|
+
function ownKeys$l(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
45004
|
+
|
|
45005
|
+
function _objectSpread$l(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$l(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$l(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
45006
|
+
var VALIDATE_STATUS = /* @__PURE__ */function (VALIDATE_STATUS2) {
|
|
45007
|
+
VALIDATE_STATUS2["TO_BE_VALIDATED"] = "not";
|
|
45008
|
+
VALIDATE_STATUS2["SUCCESS"] = "success";
|
|
45009
|
+
VALIDATE_STATUS2["FAIL"] = "fail";
|
|
45010
|
+
return VALIDATE_STATUS2;
|
|
45011
|
+
}(VALIDATE_STATUS || {});
|
|
44840
45012
|
var ctrlKeyMap = /* @__PURE__ */new Map();
|
|
44841
45013
|
ctrlKeyMap.set(Checkbox, "checked");
|
|
44842
45014
|
ctrlKeyMap.set(Tag.CheckTag, "checked");
|
|
@@ -44858,8 +45030,6 @@
|
|
|
44858
45030
|
}
|
|
44859
45031
|
|
|
44860
45032
|
var FormItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
44861
|
-
var _classNames, _classNames2;
|
|
44862
|
-
|
|
44863
45033
|
var _useConfig = useConfig$1(),
|
|
44864
45034
|
classPrefix = _useConfig.classPrefix;
|
|
44865
45035
|
|
|
@@ -44875,9 +45045,14 @@
|
|
|
44875
45045
|
rulesFromContext = _useFormContext.rules,
|
|
44876
45046
|
statusIconFromContext = _useFormContext.statusIcon,
|
|
44877
45047
|
errorMessage = _useFormContext.errorMessage,
|
|
44878
|
-
|
|
45048
|
+
formMapRef = _useFormContext.formMapRef,
|
|
44879
45049
|
onFormItemValueChange = _useFormContext.onFormItemValueChange;
|
|
44880
45050
|
|
|
45051
|
+
var _useFormListContext = useFormListContext(),
|
|
45052
|
+
formListName = _useFormListContext.name,
|
|
45053
|
+
formListRules = _useFormListContext.rules,
|
|
45054
|
+
formListMapRef = _useFormListContext.formListMapRef;
|
|
45055
|
+
|
|
44881
45056
|
var children = props.children,
|
|
44882
45057
|
style = props.style,
|
|
44883
45058
|
label = props.label,
|
|
@@ -44889,7 +45064,7 @@
|
|
|
44889
45064
|
_props$statusIcon = props.statusIcon,
|
|
44890
45065
|
statusIcon = _props$statusIcon === void 0 ? statusIconFromContext : _props$statusIcon,
|
|
44891
45066
|
_props$rules = props.rules,
|
|
44892
|
-
innerRules = _props$rules === void 0 ? (
|
|
45067
|
+
innerRules = _props$rules === void 0 ? getInnerRules(name, rulesFromContext, formListName, formListRules) : _props$rules,
|
|
44893
45068
|
_props$labelWidth = props.labelWidth,
|
|
44894
45069
|
labelWidth = _props$labelWidth === void 0 ? labelWidthFromContext : _props$labelWidth,
|
|
44895
45070
|
_props$labelAlign = props.labelAlign,
|
|
@@ -44935,64 +45110,60 @@
|
|
|
44935
45110
|
var innerFormItemsRef = React.useRef([]);
|
|
44936
45111
|
var shouldValidate = React.useRef(null);
|
|
44937
45112
|
var isMounted = React.useRef(false);
|
|
44938
|
-
var formItemClass = classNames$1(className, "".concat(classPrefix, "-form__item"), (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-form-item__").concat(name), name), _defineProperty$2(_classNames, "".concat(classPrefix, "-form__item-with-help"), help), _defineProperty$2(_classNames, "".concat(classPrefix, "-form__item-with-extra"), renderTipsInfo()), _classNames));
|
|
44939
|
-
var formItemLabelClass = classNames$1("".concat(classPrefix, "-form__label"), (_classNames2 = {}, _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--required"), requiredMark && innerRules.filter(function (rule) {
|
|
44940
|
-
return rule.required;
|
|
44941
|
-
}).length > 0), _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--colon"), colon && label), _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--top"), labelAlign === "top" || !labelWidth), _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--left"), labelAlign === "left" && labelWidth), _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--right"), labelAlign === "right" && labelWidth), _classNames2));
|
|
44942
|
-
|
|
44943
|
-
var contentClass = function contentClass() {
|
|
44944
|
-
var _classNames4;
|
|
44945
|
-
|
|
44946
|
-
var controlCls = "".concat(classPrefix, "-form__controls");
|
|
44947
|
-
if (!showErrorMessage) return controlCls;
|
|
44948
|
-
var isSuccess = verifyStatus === "success"
|
|
44949
|
-
/* SUCCESS */
|
|
44950
|
-
;
|
|
44951
45113
|
|
|
44952
|
-
|
|
44953
|
-
|
|
44954
|
-
|
|
45114
|
+
var _useFormItemStyle = useFormItemStyle({
|
|
45115
|
+
className: className,
|
|
45116
|
+
help: help,
|
|
45117
|
+
name: name,
|
|
45118
|
+
successBorder: successBorder,
|
|
45119
|
+
errorList: errorList,
|
|
45120
|
+
layout: layout,
|
|
45121
|
+
verifyStatus: verifyStatus,
|
|
45122
|
+
colon: colon,
|
|
45123
|
+
label: label,
|
|
45124
|
+
labelWidth: labelWidth,
|
|
45125
|
+
labelAlign: labelAlign,
|
|
45126
|
+
requiredMark: requiredMark,
|
|
45127
|
+
showErrorMessage: showErrorMessage,
|
|
45128
|
+
innerRules: innerRules,
|
|
45129
|
+
renderTipsInfo: renderTipsInfo
|
|
45130
|
+
}),
|
|
45131
|
+
formItemClass = _useFormItemStyle.formItemClass,
|
|
45132
|
+
formItemLabelClass = _useFormItemStyle.formItemLabelClass,
|
|
45133
|
+
contentClass = _useFormItemStyle.contentClass,
|
|
45134
|
+
labelStyle = _useFormItemStyle.labelStyle,
|
|
45135
|
+
contentStyle = _useFormItemStyle.contentStyle;
|
|
44955
45136
|
|
|
44956
|
-
|
|
44957
|
-
|
|
44958
|
-
|
|
45137
|
+
function getInnerRules(name2, formRules, formListName2, formListRules2) {
|
|
45138
|
+
if (Array.isArray(name2)) {
|
|
45139
|
+
var _formRules$formListNa;
|
|
44959
45140
|
|
|
44960
|
-
|
|
44961
|
-
|
|
45141
|
+
var _name = _slicedToArray(name2, 2),
|
|
45142
|
+
itemKey = _name[1];
|
|
44962
45143
|
|
|
44963
|
-
|
|
44964
|
-
if (typeof labelWidth === "number") {
|
|
44965
|
-
labelStyle = {
|
|
44966
|
-
width: "".concat(labelWidth, "px")
|
|
44967
|
-
};
|
|
44968
|
-
contentStyle = {
|
|
44969
|
-
marginLeft: layout !== "inline" ? "".concat(labelWidth, "px") : ""
|
|
44970
|
-
};
|
|
44971
|
-
} else {
|
|
44972
|
-
labelStyle = {
|
|
44973
|
-
width: labelWidth
|
|
44974
|
-
};
|
|
44975
|
-
contentStyle = {
|
|
44976
|
-
marginLeft: layout !== "inline" ? labelWidth : ""
|
|
44977
|
-
};
|
|
45144
|
+
return (formRules === null || formRules === void 0 ? void 0 : (_formRules$formListNa = formRules[formListName2]) === null || _formRules$formListNa === void 0 ? void 0 : _formRules$formListNa[itemKey]) || (formListRules2 === null || formListRules2 === void 0 ? void 0 : formListRules2[itemKey]) || [];
|
|
44978
45145
|
}
|
|
45146
|
+
|
|
45147
|
+
return (formRules === null || formRules === void 0 ? void 0 : formRules[name2]) || formListRules2 || [];
|
|
44979
45148
|
}
|
|
44980
45149
|
|
|
44981
45150
|
function renderTipsInfo() {
|
|
44982
|
-
var helpNode =
|
|
45151
|
+
var helpNode = name ? /* @__PURE__ */React__default["default"].createElement("div", {
|
|
45152
|
+
className: "".concat(classPrefix, "-input__extra")
|
|
45153
|
+
}) : "";
|
|
44983
45154
|
if (help) helpNode = /* @__PURE__ */React__default["default"].createElement("div", {
|
|
44984
|
-
className: "".concat(classPrefix, "-
|
|
45155
|
+
className: "".concat(classPrefix, "-input__extra")
|
|
44985
45156
|
}, renderTNode(help));
|
|
44986
45157
|
var list = errorList;
|
|
44987
45158
|
|
|
44988
45159
|
if (showErrorMessage && list && list[0] && list[0].message) {
|
|
44989
|
-
return /* @__PURE__ */React__default["default"].createElement("
|
|
45160
|
+
return /* @__PURE__ */React__default["default"].createElement("div", {
|
|
44990
45161
|
className: "".concat(classPrefix, "-input__extra")
|
|
44991
45162
|
}, list[0].message);
|
|
44992
45163
|
}
|
|
44993
45164
|
|
|
44994
45165
|
if (successList.length) {
|
|
44995
|
-
return /* @__PURE__ */React__default["default"].createElement("
|
|
45166
|
+
return /* @__PURE__ */React__default["default"].createElement("div", {
|
|
44996
45167
|
className: "".concat(classPrefix, "-input__extra")
|
|
44997
45168
|
}, successList[0].message);
|
|
44998
45169
|
}
|
|
@@ -45037,7 +45208,7 @@
|
|
|
45037
45208
|
};
|
|
45038
45209
|
|
|
45039
45210
|
if ( /*#__PURE__*/React__default["default"].isValidElement(statusIcon)) {
|
|
45040
|
-
return resultIcon( /*#__PURE__*/React__default["default"].cloneElement(statusIcon, _objectSpread$
|
|
45211
|
+
return resultIcon( /*#__PURE__*/React__default["default"].cloneElement(statusIcon, _objectSpread$l({
|
|
45041
45212
|
style: {
|
|
45042
45213
|
color: "unset"
|
|
45043
45214
|
}
|
|
@@ -45128,7 +45299,7 @@
|
|
|
45128
45299
|
}
|
|
45129
45300
|
|
|
45130
45301
|
function resetField(type) {
|
|
45131
|
-
if (
|
|
45302
|
+
if (typeof name === "undefined") return;
|
|
45132
45303
|
var resetType = type || resetTypeFromContext;
|
|
45133
45304
|
var resetValue = getResetValue(resetType);
|
|
45134
45305
|
|
|
@@ -45189,50 +45360,72 @@
|
|
|
45189
45360
|
}
|
|
45190
45361
|
|
|
45191
45362
|
React.useEffect(function () {
|
|
45192
|
-
if (isMounted.current) {
|
|
45193
|
-
name && onFormItemValueChange(_defineProperty$2({}, name, formValue));
|
|
45194
|
-
}
|
|
45195
|
-
|
|
45196
45363
|
if (!shouldValidate.current || !isMounted.current) {
|
|
45197
45364
|
isMounted.current = true;
|
|
45198
45365
|
shouldValidate.current = true;
|
|
45199
45366
|
return;
|
|
45200
45367
|
}
|
|
45201
45368
|
|
|
45369
|
+
if (typeof name !== "undefined") {
|
|
45370
|
+
if (formListName) {
|
|
45371
|
+
var formListValue = [];
|
|
45372
|
+
|
|
45373
|
+
if (Array.isArray(name)) {
|
|
45374
|
+
var _name2 = _slicedToArray(name, 2),
|
|
45375
|
+
index = _name2[0],
|
|
45376
|
+
itemKey = _name2[1];
|
|
45377
|
+
|
|
45378
|
+
formListValue[index] = _defineProperty$2({}, itemKey, formValue);
|
|
45379
|
+
} else {
|
|
45380
|
+
formListValue[name] = formValue;
|
|
45381
|
+
}
|
|
45382
|
+
|
|
45383
|
+
onFormItemValueChange === null || onFormItemValueChange === void 0 ? void 0 : onFormItemValueChange(_defineProperty$2({}, formListName, formListValue));
|
|
45384
|
+
} else {
|
|
45385
|
+
onFormItemValueChange === null || onFormItemValueChange === void 0 ? void 0 : onFormItemValueChange(_defineProperty$2({}, name, formValue));
|
|
45386
|
+
}
|
|
45387
|
+
}
|
|
45388
|
+
|
|
45202
45389
|
var filterRules = innerRules.filter(function (item) {
|
|
45203
45390
|
return (item.trigger || "change") === "change";
|
|
45204
45391
|
});
|
|
45205
45392
|
filterRules.length && validate$1("change");
|
|
45206
45393
|
}, [formValue]);
|
|
45207
45394
|
React.useEffect(function () {
|
|
45208
|
-
if (
|
|
45209
|
-
formItemsRef.current.push(currentFormItemRef);
|
|
45210
|
-
return function () {
|
|
45211
|
-
var index = formItemsRef.current.indexOf(currentFormItemRef);
|
|
45395
|
+
if (typeof name === "undefined") return;
|
|
45212
45396
|
|
|
45213
|
-
|
|
45214
|
-
|
|
45397
|
+
if (formListName) {
|
|
45398
|
+
formListMapRef.current.set(name, currentFormItemRef);
|
|
45399
|
+
return function () {
|
|
45400
|
+
formListMapRef.current["delete"](name);
|
|
45401
|
+
};
|
|
45402
|
+
}
|
|
45215
45403
|
|
|
45216
|
-
|
|
45217
|
-
|
|
45404
|
+
if (!formMapRef) return;
|
|
45405
|
+
formMapRef.current.set(name, currentFormItemRef);
|
|
45406
|
+
return function () {
|
|
45407
|
+
formMapRef.current["delete"](name);
|
|
45218
45408
|
};
|
|
45219
|
-
}, [name]);
|
|
45409
|
+
}, [name, formListName]);
|
|
45410
|
+
var instance = {
|
|
45411
|
+
name: name,
|
|
45412
|
+
value: formValue,
|
|
45413
|
+
setValue: setFormValue,
|
|
45414
|
+
setField: setField,
|
|
45415
|
+
validate: validate$1,
|
|
45416
|
+
resetField: resetField,
|
|
45417
|
+
setValidateMessage: setValidateMessage,
|
|
45418
|
+
resetValidate: resetHandler
|
|
45419
|
+
};
|
|
45420
|
+
React.useImperativeHandle(ref, function () {
|
|
45421
|
+
return instance;
|
|
45422
|
+
});
|
|
45220
45423
|
React.useImperativeHandle(currentFormItemRef, function () {
|
|
45221
|
-
return
|
|
45222
|
-
name: name,
|
|
45223
|
-
value: formValue,
|
|
45224
|
-
setValue: setFormValue,
|
|
45225
|
-
setField: setField,
|
|
45226
|
-
validate: validate$1,
|
|
45227
|
-
resetField: resetField,
|
|
45228
|
-
setValidateMessage: setValidateMessage,
|
|
45229
|
-
resetValidate: resetHandler
|
|
45230
|
-
};
|
|
45424
|
+
return instance;
|
|
45231
45425
|
});
|
|
45232
45426
|
return /* @__PURE__ */React__default["default"].createElement("div", {
|
|
45233
45427
|
className: formItemClass,
|
|
45234
|
-
style: style
|
|
45235
|
-
ref: ref
|
|
45428
|
+
style: style
|
|
45236
45429
|
}, label && /* @__PURE__ */React__default["default"].createElement("div", {
|
|
45237
45430
|
className: formItemLabelClass,
|
|
45238
45431
|
style: labelStyle
|
|
@@ -45280,13 +45473,27 @@
|
|
|
45280
45473
|
ctrlKey = ctrlKeyMap.get(child.type) || "value";
|
|
45281
45474
|
}
|
|
45282
45475
|
|
|
45283
|
-
return /*#__PURE__*/React__default["default"].cloneElement(child, _objectSpread$
|
|
45476
|
+
return /*#__PURE__*/React__default["default"].cloneElement(child, _objectSpread$l(_objectSpread$l({
|
|
45284
45477
|
disabled: disabledFromContext
|
|
45285
45478
|
}, child.props), {}, (_objectSpread2 = {}, _defineProperty$2(_objectSpread2, ctrlKey, formValue), _defineProperty$2(_objectSpread2, "onChange", function onChange(value) {
|
|
45286
|
-
|
|
45479
|
+
var _onChangeFromProps;
|
|
45480
|
+
|
|
45481
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
45482
|
+
args[_key - 1] = arguments[_key];
|
|
45483
|
+
}
|
|
45484
|
+
|
|
45485
|
+
(_onChangeFromProps = onChangeFromProps).call.apply(_onChangeFromProps, [null, value].concat(args));
|
|
45486
|
+
|
|
45287
45487
|
setFormValue(value);
|
|
45288
45488
|
}), _defineProperty$2(_objectSpread2, "onBlur", function onBlur(value) {
|
|
45289
|
-
|
|
45489
|
+
var _onBlurFromProps;
|
|
45490
|
+
|
|
45491
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
45492
|
+
args[_key2 - 1] = arguments[_key2];
|
|
45493
|
+
}
|
|
45494
|
+
|
|
45495
|
+
(_onBlurFromProps = onBlurFromProps).call.apply(_onBlurFromProps, [null, value].concat(args));
|
|
45496
|
+
|
|
45290
45497
|
handleItemBlur();
|
|
45291
45498
|
}), _objectSpread2)));
|
|
45292
45499
|
}
|
|
@@ -45294,6 +45501,272 @@
|
|
|
45294
45501
|
return child;
|
|
45295
45502
|
}), renderSuffixIcon()), renderTipsInfo()));
|
|
45296
45503
|
});
|
|
45504
|
+
FormItem.displayName = "FormItem";
|
|
45505
|
+
|
|
45506
|
+
function ownKeys$k(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
45507
|
+
|
|
45508
|
+
function _objectSpread$k(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$k(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$k(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
45509
|
+
var key = 0;
|
|
45510
|
+
|
|
45511
|
+
var FormList = function FormList(props) {
|
|
45512
|
+
var _useFormContext = useFormContext(),
|
|
45513
|
+
formMapRef = _useFormContext.formMapRef;
|
|
45514
|
+
|
|
45515
|
+
var name = props.name,
|
|
45516
|
+
_props$initialData = props.initialData,
|
|
45517
|
+
initialData = _props$initialData === void 0 ? [] : _props$initialData,
|
|
45518
|
+
rules = props.rules,
|
|
45519
|
+
children = props.children;
|
|
45520
|
+
|
|
45521
|
+
var _useState = React.useState(initialData),
|
|
45522
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
45523
|
+
initialValue = _useState2[0],
|
|
45524
|
+
setInitialValue = _useState2[1];
|
|
45525
|
+
|
|
45526
|
+
var _useState3 = React.useState([]),
|
|
45527
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
45528
|
+
fields = _useState4[0],
|
|
45529
|
+
setFields = _useState4[1];
|
|
45530
|
+
|
|
45531
|
+
var formListMapRef = React.useRef( /* @__PURE__ */new Map());
|
|
45532
|
+
var formListRef = React.useRef();
|
|
45533
|
+
var operation = {
|
|
45534
|
+
add: function add(defaultValue, insertIndex) {
|
|
45535
|
+
var cloneFields = _toConsumableArray(fields);
|
|
45536
|
+
|
|
45537
|
+
var index = insertIndex !== null && insertIndex !== void 0 ? insertIndex : cloneFields.length;
|
|
45538
|
+
cloneFields.splice(index, 0, {
|
|
45539
|
+
key: key += 1,
|
|
45540
|
+
name: index,
|
|
45541
|
+
isListField: true
|
|
45542
|
+
});
|
|
45543
|
+
cloneFields.forEach(function (field, index2) {
|
|
45544
|
+
return Object.assign(field, {
|
|
45545
|
+
name: index2
|
|
45546
|
+
});
|
|
45547
|
+
});
|
|
45548
|
+
setFields(cloneFields);
|
|
45549
|
+
|
|
45550
|
+
if (typeof defaultValue !== "undefined") {
|
|
45551
|
+
var nextInitialValue = _toConsumableArray(initialValue);
|
|
45552
|
+
|
|
45553
|
+
nextInitialValue[index] = defaultValue;
|
|
45554
|
+
setInitialValue(nextInitialValue);
|
|
45555
|
+
}
|
|
45556
|
+
},
|
|
45557
|
+
remove: function remove(index) {
|
|
45558
|
+
var nextFields = fields.filter(function (_, i) {
|
|
45559
|
+
if (Array.isArray(index)) return !index.includes(i);
|
|
45560
|
+
return i !== index;
|
|
45561
|
+
}).map(function (field, index2) {
|
|
45562
|
+
return Object.assign(field, {
|
|
45563
|
+
name: index2
|
|
45564
|
+
});
|
|
45565
|
+
});
|
|
45566
|
+
setFields(nextFields);
|
|
45567
|
+
},
|
|
45568
|
+
move: function move(from, to) {
|
|
45569
|
+
var cloneFields = _toConsumableArray(fields);
|
|
45570
|
+
|
|
45571
|
+
var fromItem = _objectSpread$k({}, cloneFields[from]);
|
|
45572
|
+
|
|
45573
|
+
var toItem = _objectSpread$k({}, cloneFields[to]);
|
|
45574
|
+
|
|
45575
|
+
cloneFields[to] = fromItem;
|
|
45576
|
+
cloneFields[from] = toItem;
|
|
45577
|
+
setFields(cloneFields);
|
|
45578
|
+
}
|
|
45579
|
+
};
|
|
45580
|
+
React.useEffect(function () {
|
|
45581
|
+
_toConsumableArray(formListMapRef.current.values()).forEach(function (formItemRef) {
|
|
45582
|
+
var _formItemRef$current = formItemRef.current,
|
|
45583
|
+
name2 = _formItemRef$current.name,
|
|
45584
|
+
value = _formItemRef$current.value;
|
|
45585
|
+
if (value) return;
|
|
45586
|
+
var data;
|
|
45587
|
+
|
|
45588
|
+
if (Array.isArray(name2)) {
|
|
45589
|
+
var _initialValue$index;
|
|
45590
|
+
|
|
45591
|
+
var _name = _slicedToArray(name2, 2),
|
|
45592
|
+
index = _name[0],
|
|
45593
|
+
itemKey = _name[1];
|
|
45594
|
+
|
|
45595
|
+
data = initialValue === null || initialValue === void 0 ? void 0 : (_initialValue$index = initialValue[index]) === null || _initialValue$index === void 0 ? void 0 : _initialValue$index[itemKey];
|
|
45596
|
+
} else {
|
|
45597
|
+
data = initialValue === null || initialValue === void 0 ? void 0 : initialValue[name2];
|
|
45598
|
+
}
|
|
45599
|
+
|
|
45600
|
+
formItemRef.current.setField({
|
|
45601
|
+
value: data,
|
|
45602
|
+
status: "not"
|
|
45603
|
+
});
|
|
45604
|
+
});
|
|
45605
|
+
}, [fields, initialValue]);
|
|
45606
|
+
React.useEffect(function () {
|
|
45607
|
+
if (!name || !formMapRef) return;
|
|
45608
|
+
formMapRef.current.set(name, formListRef);
|
|
45609
|
+
return function () {
|
|
45610
|
+
formMapRef.current["delete"](name);
|
|
45611
|
+
};
|
|
45612
|
+
}, [name]);
|
|
45613
|
+
React.useImperativeHandle(formListRef, function () {
|
|
45614
|
+
return {
|
|
45615
|
+
name: name,
|
|
45616
|
+
|
|
45617
|
+
get value() {
|
|
45618
|
+
var formListValue = [];
|
|
45619
|
+
|
|
45620
|
+
_toConsumableArray(formListMapRef.current.values()).forEach(function (formItemRef) {
|
|
45621
|
+
var _formItemRef$current2 = formItemRef.current,
|
|
45622
|
+
name2 = _formItemRef$current2.name,
|
|
45623
|
+
value = _formItemRef$current2.value;
|
|
45624
|
+
|
|
45625
|
+
if (Array.isArray(name2)) {
|
|
45626
|
+
var _name2 = _slicedToArray(name2, 2),
|
|
45627
|
+
index = _name2[0],
|
|
45628
|
+
itemKey = _name2[1];
|
|
45629
|
+
|
|
45630
|
+
if (!formListValue[index]) {
|
|
45631
|
+
formListValue[index] = _defineProperty$2({}, itemKey, value);
|
|
45632
|
+
} else {
|
|
45633
|
+
formListValue[index][itemKey] = value;
|
|
45634
|
+
}
|
|
45635
|
+
} else {
|
|
45636
|
+
formListValue[name2] = value;
|
|
45637
|
+
}
|
|
45638
|
+
});
|
|
45639
|
+
|
|
45640
|
+
return formListValue;
|
|
45641
|
+
},
|
|
45642
|
+
|
|
45643
|
+
validate: function validate() {
|
|
45644
|
+
var trigger = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "all";
|
|
45645
|
+
var resultList = [];
|
|
45646
|
+
|
|
45647
|
+
var validates = _toConsumableArray(formListMapRef.current.values()).map(function (formItemRef) {
|
|
45648
|
+
return formItemRef.current.validate(trigger);
|
|
45649
|
+
});
|
|
45650
|
+
|
|
45651
|
+
return new Promise(function (resolve) {
|
|
45652
|
+
Promise.all(validates).then(function (validateResult) {
|
|
45653
|
+
validateResult.forEach(function (result) {
|
|
45654
|
+
var errorKey = Object.keys(result)[0];
|
|
45655
|
+
var errorValue = Object.values(result)[0];
|
|
45656
|
+
|
|
45657
|
+
var _errorKey$split = errorKey.split(","),
|
|
45658
|
+
_errorKey$split2 = _slicedToArray(_errorKey$split, 2),
|
|
45659
|
+
index = _errorKey$split2[0],
|
|
45660
|
+
itemKey = _errorKey$split2[1];
|
|
45661
|
+
|
|
45662
|
+
if (itemKey) {
|
|
45663
|
+
resultList[index] = _defineProperty$2({}, itemKey, errorValue);
|
|
45664
|
+
} else {
|
|
45665
|
+
resultList[index] = errorValue;
|
|
45666
|
+
}
|
|
45667
|
+
});
|
|
45668
|
+
var errorItems = validateResult.filter(function (item) {
|
|
45669
|
+
return Object.values(item)[0] !== true;
|
|
45670
|
+
});
|
|
45671
|
+
|
|
45672
|
+
if (errorItems.length) {
|
|
45673
|
+
resolve(_defineProperty$2({}, name, resultList));
|
|
45674
|
+
} else {
|
|
45675
|
+
resolve(_defineProperty$2({}, name, true));
|
|
45676
|
+
}
|
|
45677
|
+
});
|
|
45678
|
+
});
|
|
45679
|
+
},
|
|
45680
|
+
setValue: function setValue(fieldData) {
|
|
45681
|
+
_toConsumableArray(formListMapRef.current.values()).forEach(function (formItemRef) {
|
|
45682
|
+
var name2 = formItemRef.current.name;
|
|
45683
|
+
var data;
|
|
45684
|
+
|
|
45685
|
+
if (Array.isArray(name2)) {
|
|
45686
|
+
var _fieldData$index;
|
|
45687
|
+
|
|
45688
|
+
var _name3 = _slicedToArray(name2, 2),
|
|
45689
|
+
index = _name3[0],
|
|
45690
|
+
itemKey = _name3[1];
|
|
45691
|
+
|
|
45692
|
+
data = fieldData === null || fieldData === void 0 ? void 0 : (_fieldData$index = fieldData[index]) === null || _fieldData$index === void 0 ? void 0 : _fieldData$index[itemKey];
|
|
45693
|
+
} else {
|
|
45694
|
+
data = fieldData === null || fieldData === void 0 ? void 0 : fieldData[name2];
|
|
45695
|
+
}
|
|
45696
|
+
|
|
45697
|
+
formItemRef.current.setValue(data);
|
|
45698
|
+
});
|
|
45699
|
+
},
|
|
45700
|
+
setField: function setField(fieldData) {
|
|
45701
|
+
_toConsumableArray(formListMapRef.current.values()).forEach(function (formItemRef) {
|
|
45702
|
+
var name2 = formItemRef.current.name;
|
|
45703
|
+
var data;
|
|
45704
|
+
|
|
45705
|
+
if (Array.isArray(name2)) {
|
|
45706
|
+
var _fieldData$index2;
|
|
45707
|
+
|
|
45708
|
+
var _name4 = _slicedToArray(name2, 2),
|
|
45709
|
+
index = _name4[0],
|
|
45710
|
+
itemKey = _name4[1];
|
|
45711
|
+
|
|
45712
|
+
data = fieldData === null || fieldData === void 0 ? void 0 : (_fieldData$index2 = fieldData[index]) === null || _fieldData$index2 === void 0 ? void 0 : _fieldData$index2[itemKey];
|
|
45713
|
+
} else {
|
|
45714
|
+
data = fieldData === null || fieldData === void 0 ? void 0 : fieldData[name2];
|
|
45715
|
+
}
|
|
45716
|
+
|
|
45717
|
+
formItemRef.current.setField(data);
|
|
45718
|
+
});
|
|
45719
|
+
},
|
|
45720
|
+
resetField: function resetField() {
|
|
45721
|
+
_toConsumableArray(formListMapRef.current.values()).forEach(function (formItemRef) {
|
|
45722
|
+
formItemRef.current.resetField();
|
|
45723
|
+
});
|
|
45724
|
+
|
|
45725
|
+
setInitialValue([]);
|
|
45726
|
+
},
|
|
45727
|
+
setValidateMessage: function setValidateMessage(fieldData) {
|
|
45728
|
+
_toConsumableArray(formListMapRef.current.values()).forEach(function (formItemRef) {
|
|
45729
|
+
var name2 = formItemRef.current.name;
|
|
45730
|
+
var data;
|
|
45731
|
+
|
|
45732
|
+
if (Array.isArray(name2)) {
|
|
45733
|
+
var _fieldData$index3;
|
|
45734
|
+
|
|
45735
|
+
var _name5 = _slicedToArray(name2, 2),
|
|
45736
|
+
index = _name5[0],
|
|
45737
|
+
itemKey = _name5[1];
|
|
45738
|
+
|
|
45739
|
+
data = fieldData === null || fieldData === void 0 ? void 0 : (_fieldData$index3 = fieldData[index]) === null || _fieldData$index3 === void 0 ? void 0 : _fieldData$index3[itemKey];
|
|
45740
|
+
} else {
|
|
45741
|
+
data = fieldData === null || fieldData === void 0 ? void 0 : fieldData[name2];
|
|
45742
|
+
}
|
|
45743
|
+
|
|
45744
|
+
formItemRef.current.setValidateMessage(data);
|
|
45745
|
+
});
|
|
45746
|
+
},
|
|
45747
|
+
resetValidate: function resetValidate() {
|
|
45748
|
+
_toConsumableArray(formListMapRef.current.values()).forEach(function (formItemRef) {
|
|
45749
|
+
formItemRef.current.resetValidate();
|
|
45750
|
+
});
|
|
45751
|
+
}
|
|
45752
|
+
};
|
|
45753
|
+
});
|
|
45754
|
+
|
|
45755
|
+
if (typeof children !== "function") {
|
|
45756
|
+
console.error("FormList's children must be a function!");
|
|
45757
|
+
return null;
|
|
45758
|
+
}
|
|
45759
|
+
|
|
45760
|
+
return /* @__PURE__ */React__default["default"].createElement(FormListContext.Provider, {
|
|
45761
|
+
value: {
|
|
45762
|
+
name: name,
|
|
45763
|
+
rules: rules,
|
|
45764
|
+
formListMapRef: formListMapRef
|
|
45765
|
+
}
|
|
45766
|
+
}, children(fields, operation));
|
|
45767
|
+
};
|
|
45768
|
+
|
|
45769
|
+
FormList.displayName = "FormList";
|
|
45297
45770
|
|
|
45298
45771
|
var Form$1 = forwardRefWithStatics(function (props, ref) {
|
|
45299
45772
|
var _useConfig = useConfig$1(),
|
|
@@ -45309,8 +45782,6 @@
|
|
|
45309
45782
|
labelAlign = _props$labelAlign === void 0 ? "right" : _props$labelAlign,
|
|
45310
45783
|
_props$layout = props.layout,
|
|
45311
45784
|
layout = _props$layout === void 0 ? "vertical" : _props$layout,
|
|
45312
|
-
_props$size = props.size,
|
|
45313
|
-
size = _props$size === void 0 ? "medium" : _props$size,
|
|
45314
45785
|
_props$colon = props.colon,
|
|
45315
45786
|
colon = _props$colon === void 0 ? false : _props$colon,
|
|
45316
45787
|
_props$requiredMark = props.requiredMark,
|
|
@@ -45332,9 +45803,9 @@
|
|
|
45332
45803
|
onValuesChange = _props$onValuesChange === void 0 ? noop$1 : _props$onValuesChange;
|
|
45333
45804
|
var formClass = classNames$1(className, "".concat(classPrefix, "-form"), _defineProperty$2({}, "".concat(classPrefix, "-form-inline"), layout === "inline"));
|
|
45334
45805
|
var formRef = React.useRef();
|
|
45335
|
-
var
|
|
45806
|
+
var formMapRef = React.useRef( /* @__PURE__ */new Map());
|
|
45336
45807
|
|
|
45337
|
-
var _useInstance = useInstance(props, formRef,
|
|
45808
|
+
var _useInstance = useInstance(props, formRef, formMapRef),
|
|
45338
45809
|
submit = _useInstance.submit,
|
|
45339
45810
|
reset = _useInstance.reset,
|
|
45340
45811
|
getFieldValue = _useInstance.getFieldValue,
|
|
@@ -45368,10 +45839,10 @@
|
|
|
45368
45839
|
(_e$stopPropagation = e.stopPropagation) === null || _e$stopPropagation === void 0 ? void 0 : _e$stopPropagation.call(e);
|
|
45369
45840
|
}
|
|
45370
45841
|
|
|
45371
|
-
|
|
45372
|
-
|
|
45373
|
-
formItemRef && (formItemRef === null || formItemRef === void 0 ? void 0 : formItemRef.resetField());
|
|
45842
|
+
_toConsumableArray(formMapRef.current.values()).forEach(function (formItemRef) {
|
|
45843
|
+
formItemRef === null || formItemRef === void 0 ? void 0 : formItemRef.current.resetField();
|
|
45374
45844
|
});
|
|
45845
|
+
|
|
45375
45846
|
onReset === null || onReset === void 0 ? void 0 : onReset({
|
|
45376
45847
|
e: e
|
|
45377
45848
|
});
|
|
@@ -45397,7 +45868,6 @@
|
|
|
45397
45868
|
statusIcon: statusIcon,
|
|
45398
45869
|
labelAlign: labelAlign,
|
|
45399
45870
|
layout: layout,
|
|
45400
|
-
size: size,
|
|
45401
45871
|
colon: colon,
|
|
45402
45872
|
requiredMark: requiredMark,
|
|
45403
45873
|
errorMessage: errorMessage,
|
|
@@ -45406,7 +45876,7 @@
|
|
|
45406
45876
|
resetType: resetType,
|
|
45407
45877
|
rules: rules,
|
|
45408
45878
|
disabled: disabled,
|
|
45409
|
-
|
|
45879
|
+
formMapRef: formMapRef,
|
|
45410
45880
|
onFormItemValueChange: onFormItemValueChange
|
|
45411
45881
|
}
|
|
45412
45882
|
}, /* @__PURE__ */React__default["default"].createElement("form", {
|
|
@@ -45418,7 +45888,8 @@
|
|
|
45418
45888
|
onKeyDown: onKeyDownHandler
|
|
45419
45889
|
}, children));
|
|
45420
45890
|
}, {
|
|
45421
|
-
FormItem: FormItem
|
|
45891
|
+
FormItem: FormItem,
|
|
45892
|
+
FormList: FormList
|
|
45422
45893
|
});
|
|
45423
45894
|
Form$1.displayName = "Form";
|
|
45424
45895
|
|
|
@@ -46185,10 +46656,7 @@
|
|
|
46185
46656
|
theme: "default"
|
|
46186
46657
|
};
|
|
46187
46658
|
|
|
46188
|
-
console.error("PopConfirm \u5DF2\u6539\u540D\u4E3A Popconfirm\uFF0C\u5C3D\u5FEB\u8C03\u6574\u4E3A Popconfirm!");
|
|
46189
|
-
|
|
46190
46659
|
var Popconfirm = Popconfirm$1;
|
|
46191
|
-
var PopConfirm = Popconfirm$1;
|
|
46192
46660
|
|
|
46193
46661
|
var TEXTAREA_STYLE = "\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n";
|
|
46194
46662
|
var hiddenTextarea;
|
|
@@ -46418,7 +46886,7 @@
|
|
|
46418
46886
|
separator: null
|
|
46419
46887
|
});
|
|
46420
46888
|
|
|
46421
|
-
var _excluded$3 = ["children", "separator", "disabled", "maxItemWidth", "maxWidth", "href", "to", "target", "router", "replace"];
|
|
46889
|
+
var _excluded$3 = ["children", "separator", "disabled", "maxItemWidth", "maxWidth", "href", "to", "target", "router", "replace", "className"];
|
|
46422
46890
|
|
|
46423
46891
|
function ownKeys$f(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
46424
46892
|
|
|
@@ -46434,6 +46902,7 @@
|
|
|
46434
46902
|
target = props.target,
|
|
46435
46903
|
router = props.router,
|
|
46436
46904
|
replace = props.replace,
|
|
46905
|
+
className = props.className,
|
|
46437
46906
|
restProps = _objectWithoutProperties$1(props, _excluded$3);
|
|
46438
46907
|
|
|
46439
46908
|
var _useContext = React.useContext(BreadcrumbContext),
|
|
@@ -46484,7 +46953,7 @@
|
|
|
46484
46953
|
}
|
|
46485
46954
|
});
|
|
46486
46955
|
return /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$f({
|
|
46487
|
-
className: classNames$1(breadcrumbItemClassNames, theme),
|
|
46956
|
+
className: classNames$1(breadcrumbItemClassNames, theme, className),
|
|
46488
46957
|
ref: ref
|
|
46489
46958
|
}, restProps), itemContent, /* @__PURE__ */React__default["default"].createElement("span", {
|
|
46490
46959
|
className: separatorClassName
|
|
@@ -46492,7 +46961,7 @@
|
|
|
46492
46961
|
});
|
|
46493
46962
|
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
46494
46963
|
|
|
46495
|
-
var _excluded$2 = ["children", "options", "separator", "maxItemWidth", "theme"];
|
|
46964
|
+
var _excluded$2 = ["children", "options", "separator", "maxItemWidth", "theme", "className"];
|
|
46496
46965
|
|
|
46497
46966
|
function ownKeys$e(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
46498
46967
|
|
|
@@ -46503,6 +46972,7 @@
|
|
|
46503
46972
|
separator = props.separator,
|
|
46504
46973
|
maxItemWidth = props.maxItemWidth,
|
|
46505
46974
|
theme = props.theme,
|
|
46975
|
+
className = props.className,
|
|
46506
46976
|
restProps = _objectWithoutProperties$1(props, _excluded$2);
|
|
46507
46977
|
|
|
46508
46978
|
var _useConfig = useConfig$1(),
|
|
@@ -46535,7 +47005,7 @@
|
|
|
46535
47005
|
}
|
|
46536
47006
|
}, /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$e({
|
|
46537
47007
|
ref: ref,
|
|
46538
|
-
className: "".concat(classPrefix, "-breadcrumb")
|
|
47008
|
+
className: classNames$1("".concat(classPrefix, "-breadcrumb"), className)
|
|
46539
47009
|
}, restProps), content));
|
|
46540
47010
|
}, {
|
|
46541
47011
|
BreadcrumbItem: BreadcrumbItem
|
|
@@ -47080,43 +47550,31 @@
|
|
|
47080
47550
|
}, toolTipProps), handleNode);
|
|
47081
47551
|
};
|
|
47082
47552
|
|
|
47083
|
-
function accAdd(
|
|
47084
|
-
var
|
|
47085
|
-
|
|
47086
|
-
|
|
47087
|
-
var newArg2 = arg2;
|
|
47088
|
-
|
|
47089
|
-
try {
|
|
47090
|
-
r1 = arg1.toString().split(".")[1].length;
|
|
47091
|
-
} catch (e) {
|
|
47092
|
-
r1 = 0;
|
|
47093
|
-
}
|
|
47094
|
-
|
|
47095
|
-
try {
|
|
47096
|
-
r2 = arg2.toString().split(".")[1].length;
|
|
47097
|
-
} catch (e) {
|
|
47098
|
-
r2 = 0;
|
|
47099
|
-
}
|
|
47553
|
+
function accAdd(num1, num2) {
|
|
47554
|
+
var isFloat = function isFloat(n) {
|
|
47555
|
+
return typeof n === "number" && !Number.isInteger(n);
|
|
47556
|
+
};
|
|
47100
47557
|
|
|
47101
|
-
|
|
47102
|
-
|
|
47558
|
+
if (isFloat(num1) && isFloat(num2)) {
|
|
47559
|
+
var _String$split = String(num1).split("."),
|
|
47560
|
+
_String$split2 = _slicedToArray(_String$split, 2),
|
|
47561
|
+
integer1 = _String$split2[0],
|
|
47562
|
+
precision1 = _String$split2[1];
|
|
47103
47563
|
|
|
47104
|
-
|
|
47105
|
-
|
|
47564
|
+
var _String$split3 = String(num2).split("."),
|
|
47565
|
+
_String$split4 = _slicedToArray(_String$split3, 2),
|
|
47566
|
+
integer2 = _String$split4[0],
|
|
47567
|
+
precision2 = _String$split4[1];
|
|
47106
47568
|
|
|
47107
|
-
|
|
47108
|
-
|
|
47109
|
-
|
|
47110
|
-
|
|
47111
|
-
|
|
47112
|
-
|
|
47113
|
-
}
|
|
47114
|
-
} else {
|
|
47115
|
-
newArg1 = Number(arg1.toString().replace(".", ""));
|
|
47116
|
-
newArg2 = Number(arg2.toString().replace(".", ""));
|
|
47569
|
+
var maxPrecisionLen = Math.max(precision1.length, precision2.length);
|
|
47570
|
+
var wholePrecision1 = Number(precision1.padEnd(maxPrecisionLen, "0"));
|
|
47571
|
+
var wholePrecision2 = Number(precision2.padEnd(maxPrecisionLen, "0"));
|
|
47572
|
+
var precisionVal = (wholePrecision1 + wholePrecision2) / Math.pow(10, maxPrecisionLen);
|
|
47573
|
+
var integerVal = Number(integer1) + Number(integer2);
|
|
47574
|
+
return integerVal + precisionVal;
|
|
47117
47575
|
}
|
|
47118
47576
|
|
|
47119
|
-
return
|
|
47577
|
+
return num1 + num2;
|
|
47120
47578
|
}
|
|
47121
47579
|
|
|
47122
47580
|
function ownKeys$b(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -47473,13 +47931,13 @@
|
|
|
47473
47931
|
setValue(checked, "check", node.getModel());
|
|
47474
47932
|
}
|
|
47475
47933
|
|
|
47476
|
-
function getLabelIsEllipsis(
|
|
47934
|
+
function getLabelIsEllipsis(label, size) {
|
|
47477
47935
|
var sizeMap = {
|
|
47478
47936
|
small: 11,
|
|
47479
47937
|
medium: 9,
|
|
47480
47938
|
large: 8
|
|
47481
47939
|
};
|
|
47482
|
-
return sizeMap[size] <
|
|
47940
|
+
return sizeMap[size] < label.length;
|
|
47483
47941
|
}
|
|
47484
47942
|
function getNodeStatusClass(node, CLASSNAMES, cascaderContext) {
|
|
47485
47943
|
var _ref;
|
|
@@ -47530,6 +47988,9 @@
|
|
|
47530
47988
|
|
|
47531
47989
|
return treeValue;
|
|
47532
47990
|
};
|
|
47991
|
+
function isInPage(node) {
|
|
47992
|
+
return node === document.body ? false : document.body.contains(node);
|
|
47993
|
+
}
|
|
47533
47994
|
|
|
47534
47995
|
function ownKeys$a(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
47535
47996
|
|
|
@@ -47539,6 +48000,13 @@
|
|
|
47539
48000
|
var filterActive = cascaderContext.filterActive,
|
|
47540
48001
|
inputVal = cascaderContext.inputVal;
|
|
47541
48002
|
var labelText = filterActive ? getFullPathLabel(node) : node.label;
|
|
48003
|
+
var isEllipsis = getLabelIsEllipsis(labelText, cascaderContext.size);
|
|
48004
|
+
var EllipsisNode = isEllipsis ? /* @__PURE__ */React__default["default"].createElement("div", {
|
|
48005
|
+
className: "".concat(name, "-label--ellipsis")
|
|
48006
|
+
}, /* @__PURE__ */React__default["default"].createElement(Tooltip$1, {
|
|
48007
|
+
content: labelText,
|
|
48008
|
+
placement: "top-left"
|
|
48009
|
+
})) : null;
|
|
47542
48010
|
|
|
47543
48011
|
if (filterActive) {
|
|
47544
48012
|
var texts = labelText.split(inputVal);
|
|
@@ -47555,10 +48023,10 @@
|
|
|
47555
48023
|
}, inputVal));
|
|
47556
48024
|
}
|
|
47557
48025
|
|
|
47558
|
-
return doms;
|
|
48026
|
+
return /* @__PURE__ */React__default["default"].createElement(React__default["default"].Fragment, null, doms, EllipsisNode);
|
|
47559
48027
|
}
|
|
47560
48028
|
|
|
47561
|
-
return labelText;
|
|
48029
|
+
return /* @__PURE__ */React__default["default"].createElement(React__default["default"].Fragment, null, labelText, EllipsisNode);
|
|
47562
48030
|
};
|
|
47563
48031
|
|
|
47564
48032
|
var RenderLabelContent = function RenderLabelContent(node, cascaderContext) {
|
|
@@ -47567,22 +48035,9 @@
|
|
|
47567
48035
|
|
|
47568
48036
|
var name = "".concat(prefix, "-cascader__item");
|
|
47569
48037
|
var label = RenderLabelInner(name, node, cascaderContext);
|
|
47570
|
-
var isEllipsis = getLabelIsEllipsis(node, cascaderContext.size);
|
|
47571
|
-
|
|
47572
|
-
if (isEllipsis) {
|
|
47573
|
-
return /* @__PURE__ */React__default["default"].createElement("span", {
|
|
47574
|
-
className: "".concat(name, "-label"),
|
|
47575
|
-
role: "label"
|
|
47576
|
-
}, label, /* @__PURE__ */React__default["default"].createElement("div", {
|
|
47577
|
-
className: "".concat(name, "-label--ellipsis")
|
|
47578
|
-
}, /* @__PURE__ */React__default["default"].createElement(Tooltip$1, {
|
|
47579
|
-
content: node.label,
|
|
47580
|
-
placement: "top-left"
|
|
47581
|
-
})));
|
|
47582
|
-
}
|
|
47583
|
-
|
|
47584
48038
|
return /* @__PURE__ */React__default["default"].createElement("span", {
|
|
47585
|
-
className: "".concat(name, "-label")
|
|
48039
|
+
className: "".concat(name, "-label"),
|
|
48040
|
+
role: "label"
|
|
47586
48041
|
}, label);
|
|
47587
48042
|
};
|
|
47588
48043
|
|
|
@@ -47823,14 +48278,9 @@
|
|
|
47823
48278
|
function outerClickListenerEffect(ref, cascaderContext, event) {
|
|
47824
48279
|
var visible = cascaderContext.visible,
|
|
47825
48280
|
setVisible = cascaderContext.setVisible;
|
|
47826
|
-
|
|
47827
|
-
if (!ref || ref.contains(
|
|
47828
|
-
|
|
47829
|
-
}
|
|
47830
|
-
|
|
47831
|
-
if (visible) {
|
|
47832
|
-
setVisible(false);
|
|
47833
|
-
}
|
|
48281
|
+
var target = event.target;
|
|
48282
|
+
if (!visible || !ref || ref.contains(target) || !isInPage(target)) return;
|
|
48283
|
+
setVisible(false);
|
|
47834
48284
|
}
|
|
47835
48285
|
function closeIconClickEffect(cascaderContext) {
|
|
47836
48286
|
var setVisible = cascaderContext.setVisible,
|
|
@@ -50215,7 +50665,17 @@
|
|
|
50215
50665
|
var _num = num;
|
|
50216
50666
|
if (num < 0) _num = 0;
|
|
50217
50667
|
var newDate = new Date(date);
|
|
50218
|
-
|
|
50668
|
+
var year = date.getFullYear();
|
|
50669
|
+
|
|
50670
|
+
var month = date.getMonth() + _num;
|
|
50671
|
+
|
|
50672
|
+
var day = newDate.getDate();
|
|
50673
|
+
newDate.setDate(1);
|
|
50674
|
+
newDate.setMonth(month);
|
|
50675
|
+
newDate.setDate(Math.min(day, getDaysInMonth({
|
|
50676
|
+
year: year,
|
|
50677
|
+
month: month
|
|
50678
|
+
})));
|
|
50219
50679
|
return newDate;
|
|
50220
50680
|
}
|
|
50221
50681
|
function getWeeks(_ref5, _ref6) {
|
|
@@ -51013,8 +51473,8 @@
|
|
|
51013
51473
|
var val = value || defaultValue;
|
|
51014
51474
|
|
|
51015
51475
|
if (val && isValidDate(val)) {
|
|
51016
|
-
var startVal = range ? new Date(val[0]) : new Date(val);
|
|
51017
|
-
var endVal = range ? new Date(val[1]) : new Date(val);
|
|
51476
|
+
var startVal = range ? new Date(val[0] || new Date()) : new Date(val || new Date());
|
|
51477
|
+
var endVal = range ? new Date(val[1] || new Date()) : new Date(val || new Date());
|
|
51018
51478
|
setStart(startVal);
|
|
51019
51479
|
setEnd(endVal);
|
|
51020
51480
|
setTimeValue(dayjs(startVal).format(TIME_FORMAT));
|
|
@@ -53090,7 +53550,6 @@
|
|
|
53090
53550
|
exports.Notification = Notification;
|
|
53091
53551
|
exports.NotificationPlugin = NotificationPlugin;
|
|
53092
53552
|
exports.Pagination = Pagination;
|
|
53093
|
-
exports.PopConfirm = PopConfirm;
|
|
53094
53553
|
exports.Popconfirm = Popconfirm;
|
|
53095
53554
|
exports.Popup = Popup;
|
|
53096
53555
|
exports.Progress = Progress;
|