tdesign-react 0.27.1 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +526 -513
- package/dist/tdesign.css +1102 -125
- package/dist/tdesign.css.map +1 -1
- package/dist/tdesign.js +1058 -630
- 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-37a2534f.js → es/_chunks/dep-038c9246.js} +7 -7
- package/es/_chunks/{dep-37a2534f.js.map → dep-038c9246.js.map} +1 -1
- package/es/_chunks/{dep-966e2c11.js → dep-0728d572.js} +7 -7
- package/es/_chunks/{dep-966e2c11.js.map → dep-0728d572.js.map} +1 -1
- package/{esm/_chunks/dep-ca1925cf.js → es/_chunks/dep-0c155fb8.js} +2 -2
- package/{esm/_chunks/dep-ca1925cf.js.map → es/_chunks/dep-0c155fb8.js.map} +1 -1
- package/{esm/_chunks/dep-1ce426bf.js → es/_chunks/dep-1f39069a.js} +3 -3
- package/es/_chunks/{dep-1ce426bf.js.map → dep-1f39069a.js.map} +1 -1
- package/es/_chunks/{dep-b916d5f3.js → dep-28ef7e25.js} +3 -3
- package/{esm/_chunks/dep-b916d5f3.js.map → es/_chunks/dep-28ef7e25.js.map} +1 -1
- package/es/_chunks/dep-2982e386.js +8 -0
- package/es/_chunks/dep-2982e386.js.map +1 -0
- package/es/_chunks/{dep-4232d2a7.js → dep-301990d4.js} +3 -3
- package/es/_chunks/{dep-4232d2a7.js.map → dep-301990d4.js.map} +1 -1
- package/es/_chunks/{dep-28d93aa5.js → dep-31688470.js} +8 -8
- package/es/_chunks/{dep-28d93aa5.js.map → dep-31688470.js.map} +1 -1
- package/es/_chunks/{dep-de30b3ee.js → dep-35137444.js} +3 -3
- package/{lib/_chunks/dep-a1d8494f.js.map → es/_chunks/dep-35137444.js.map} +1 -1
- package/{esm/_chunks/dep-94f10945.js → es/_chunks/dep-39d90b75.js} +4 -4
- package/es/_chunks/{dep-94f10945.js.map → dep-39d90b75.js.map} +1 -1
- package/es/_chunks/{dep-c1fc6e05.js → dep-39f5cacb.js} +5 -5
- package/es/_chunks/{dep-c1fc6e05.js.map → dep-39f5cacb.js.map} +1 -1
- package/{esm/_chunks/dep-39b10fb0.js → es/_chunks/dep-44699371.js} +8 -8
- package/{esm/_chunks/dep-39b10fb0.js.map → es/_chunks/dep-44699371.js.map} +1 -1
- package/es/_chunks/{dep-bc0a6512.js → dep-45b037f6.js} +6 -6
- package/{esm/_chunks/dep-bc0a6512.js.map → es/_chunks/dep-45b037f6.js.map} +1 -1
- package/{esm/_chunks/dep-1267d825.js → es/_chunks/dep-4c657685.js} +5 -5
- package/es/_chunks/{dep-1267d825.js.map → dep-4c657685.js.map} +1 -1
- package/es/_chunks/{dep-c422ba85.js → dep-57f08aea.js} +8 -8
- package/{esm/_chunks/dep-c422ba85.js.map → es/_chunks/dep-57f08aea.js.map} +1 -1
- package/{esm/_chunks/dep-d4d4f560.js → es/_chunks/dep-65b010db.js} +6 -6
- package/es/_chunks/{dep-d4d4f560.js.map → dep-65b010db.js.map} +1 -1
- package/es/_chunks/{dep-3ff542a8.js → dep-6b2ffd1d.js} +7 -7
- package/es/_chunks/{dep-3ff542a8.js.map → dep-6b2ffd1d.js.map} +1 -1
- package/{esm/_chunks/dep-0f71dbee.js → es/_chunks/dep-6f8cc12c.js} +3 -3
- package/es/_chunks/{dep-0f71dbee.js.map → dep-6f8cc12c.js.map} +1 -1
- package/{esm/_chunks/dep-c086a55c.js → es/_chunks/dep-70311a4c.js} +5 -5
- package/es/_chunks/{dep-c086a55c.js.map → dep-70311a4c.js.map} +1 -1
- package/es/_chunks/{dep-7b266489.js → dep-7103a109.js} +16 -16
- package/es/_chunks/{dep-7b266489.js.map → dep-7103a109.js.map} +1 -1
- package/{esm/_chunks/dep-7bf5d52e.js → es/_chunks/dep-72183a2a.js} +4 -4
- package/es/_chunks/{dep-7bf5d52e.js.map → dep-72183a2a.js.map} +1 -1
- package/{esm/_chunks/dep-c559390e.js → es/_chunks/dep-78f321a0.js} +2 -2
- package/es/_chunks/{dep-c559390e.js.map → dep-78f321a0.js.map} +1 -1
- package/{esm/_chunks/dep-bcb29a45.js → es/_chunks/dep-828497b4.js} +9 -9
- package/es/_chunks/dep-828497b4.js.map +1 -0
- package/es/_chunks/{dep-f643a128.js → dep-84011bbc.js} +4 -4
- package/es/_chunks/{dep-f643a128.js.map → dep-84011bbc.js.map} +1 -1
- package/es/_chunks/{dep-9d5261cc.js → dep-84980c30.js} +9 -9
- package/{esm/_chunks/dep-9d5261cc.js.map → es/_chunks/dep-84980c30.js.map} +1 -1
- package/es/_chunks/{dep-f4a96e20.js → dep-84a2760d.js} +4 -4
- package/es/_chunks/{dep-f4a96e20.js.map → dep-84a2760d.js.map} +1 -1
- package/es/_chunks/{dep-04d8367e.js → dep-87d24f9c.js} +3 -3
- package/{esm/_chunks/dep-04d8367e.js.map → es/_chunks/dep-87d24f9c.js.map} +1 -1
- package/{esm/_chunks/dep-fc523cb5.js → es/_chunks/dep-8a3956e4.js} +8 -8
- package/es/_chunks/{dep-fc523cb5.js.map → dep-8a3956e4.js.map} +1 -1
- package/{esm/_chunks/dep-fcf18d7f.js → es/_chunks/dep-8aa2c906.js} +5 -5
- package/es/_chunks/{dep-fcf18d7f.js.map → dep-8aa2c906.js.map} +1 -1
- package/es/_chunks/{dep-e3f6d1c5.js → dep-8b4d9db6.js} +16 -16
- package/es/_chunks/{dep-e3f6d1c5.js.map → dep-8b4d9db6.js.map} +1 -1
- package/{esm/_chunks/dep-b548e753.js → es/_chunks/dep-8fda4184.js} +4 -4
- package/es/_chunks/{dep-b548e753.js.map → dep-8fda4184.js.map} +1 -1
- package/{esm/_chunks/dep-5099a517.js → es/_chunks/dep-9ab77a39.js} +2 -2
- package/es/_chunks/dep-9ab77a39.js.map +1 -0
- package/es/_chunks/{dep-6ae05208.js → dep-9bbad855.js} +11 -11
- package/es/_chunks/{dep-6ae05208.js.map → dep-9bbad855.js.map} +1 -1
- package/{esm/_chunks/dep-f6f6c737.js → es/_chunks/dep-9dc44d0a.js} +8 -8
- package/{esm/_chunks/dep-f6f6c737.js.map → es/_chunks/dep-9dc44d0a.js.map} +1 -1
- package/{esm/_chunks/dep-6f799e1f.js → es/_chunks/dep-a4eea765.js} +7 -7
- package/es/_chunks/{dep-6f799e1f.js.map → dep-a4eea765.js.map} +1 -1
- package/es/_chunks/{dep-8b85d2d1.js → dep-a6f7ee47.js} +7 -7
- package/{esm/_chunks/dep-8b85d2d1.js.map → es/_chunks/dep-a6f7ee47.js.map} +1 -1
- package/es/_chunks/{dep-0e3df0f4.js → dep-b0608f92.js} +4 -4
- package/es/_chunks/{dep-0e3df0f4.js.map → dep-b0608f92.js.map} +1 -1
- package/{esm/_chunks/dep-84d15b45.js → es/_chunks/dep-b19149c6.js} +9 -9
- package/{esm/_chunks/dep-84d15b45.js.map → es/_chunks/dep-b19149c6.js.map} +1 -1
- package/{esm/_chunks/dep-388a7ab9.js → es/_chunks/dep-b2f93b29.js} +5 -5
- package/{esm/_chunks/dep-388a7ab9.js.map → es/_chunks/dep-b2f93b29.js.map} +1 -1
- package/{esm/_chunks/dep-57dae996.js → es/_chunks/dep-b69008d0.js} +5 -5
- package/es/_chunks/{dep-57dae996.js.map → dep-b69008d0.js.map} +1 -1
- package/es/_chunks/{dep-f47dd9f2.js → dep-b6b2aed8.js} +4 -4
- package/{esm/_chunks/dep-f47dd9f2.js.map → es/_chunks/dep-b6b2aed8.js.map} +1 -1
- package/es/_chunks/{dep-37171ab5.js → dep-c7ea01f9.js} +7 -7
- package/es/_chunks/{dep-37171ab5.js.map → dep-c7ea01f9.js.map} +1 -1
- package/{esm/_chunks/dep-27fdea65.js → es/_chunks/dep-c7ef814a.js} +2 -2
- package/es/_chunks/{dep-27fdea65.js.map → dep-c7ef814a.js.map} +1 -1
- package/es/_chunks/{dep-21a072aa.js → dep-cec87786.js} +2 -2
- package/es/_chunks/{dep-21a072aa.js.map → dep-cec87786.js.map} +1 -1
- package/{esm/_chunks/dep-368e4a27.js → es/_chunks/dep-db764550.js} +6 -6
- package/{esm/_chunks/dep-368e4a27.js.map → es/_chunks/dep-db764550.js.map} +1 -1
- package/es/_chunks/{dep-7dec3dfe.js → dep-e99579d9.js} +4 -4
- package/es/_chunks/{dep-7dec3dfe.js.map → dep-e99579d9.js.map} +1 -1
- package/es/_chunks/{dep-a0129bdd.js → dep-e9dbe655.js} +8 -6
- package/es/_chunks/dep-e9dbe655.js.map +1 -0
- package/{esm/_chunks/dep-05c8b1bd.js → es/_chunks/dep-ea3fc641.js} +5 -5
- package/{esm/_chunks/dep-05c8b1bd.js.map → es/_chunks/dep-ea3fc641.js.map} +1 -1
- package/es/_chunks/{dep-07f207ee.js → dep-ea5f44a6.js} +4 -4
- package/es/_chunks/{dep-07f207ee.js.map → dep-ea5f44a6.js.map} +1 -1
- package/es/_chunks/{dep-4ff5adb0.js → dep-eb0f021a.js} +13 -13
- package/es/_chunks/{dep-4ff5adb0.js.map → dep-eb0f021a.js.map} +1 -1
- package/{esm/_chunks/dep-e8c92aed.js → es/_chunks/dep-ecabbfa7.js} +9 -9
- package/es/_chunks/{dep-e8c92aed.js.map → dep-ecabbfa7.js.map} +1 -1
- package/es/_chunks/{dep-3438b261.js → dep-edee984e.js} +3 -3
- package/es/_chunks/{dep-3438b261.js.map → dep-edee984e.js.map} +1 -1
- package/{esm/_chunks/dep-bdab0056.js → es/_chunks/dep-eec95819.js} +4 -4
- package/{esm/_chunks/dep-bdab0056.js.map → es/_chunks/dep-eec95819.js.map} +1 -1
- package/{esm/_chunks/dep-b4bc5a07.js → es/_chunks/dep-f04b41c5.js} +6 -6
- package/{esm/_chunks/dep-b4bc5a07.js.map → es/_chunks/dep-f04b41c5.js.map} +1 -1
- package/es/_chunks/{dep-4a257327.js → dep-fcc1470c.js} +5 -5
- package/es/_chunks/{dep-4a257327.js.map → dep-fcc1470c.js.map} +1 -1
- package/es/_common/js/common.js +1 -1
- package/es/_common/js/date-picker/utils.js +15 -15
- 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/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 +40 -38
- package/es/_common/js/tree/tree-store.js.map +1 -1
- package/es/_common/js/tree/types.d.ts +1 -0
- package/es/_common/js/tree/types.js +1 -1
- package/es/_common/js/upload/types.d.ts +1 -0
- package/es/_common/js/upload/types.js +1 -1
- package/es/_common/js/upload/xhr.d.ts +1 -1
- package/es/_common/js/upload/xhr.js +5 -3
- package/es/_common/js/upload/xhr.js.map +1 -1
- package/es/_common/js/utils/calcTextareaHeight.js +5 -5
- package/es/_common/js/utils/helper.js +5 -5
- 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.d.ts +1 -0
- package/es/_util/dom.js +14 -9
- package/es/_util/dom.js.map +1 -1
- 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.js +1 -1
- package/es/_util/renderTNode.d.ts +7 -0
- package/es/_util/renderTNode.js +16 -0
- package/es/_util/renderTNode.js.map +1 -0
- 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.js +21 -21
- package/es/_util/useDefault.js +3 -3
- package/es/_util/useDefault.js.map +1 -1
- 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 +27 -24
- package/es/_util/useRipple.js.map +1 -1
- 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 +15 -6
- package/es/_util/useWindowSize.js.map +1 -1
- package/es/addon/Addon.d.ts +1 -0
- package/es/addon/Addon.js +22 -22
- package/es/addon/Addon.js.map +1 -1
- 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.d.ts +1 -1
- package/es/anchor/Anchor.js +37 -34
- package/es/anchor/Anchor.js.map +1 -1
- package/es/anchor/AnchorContext.js +1 -1
- package/es/anchor/AnchorItem.d.ts +3 -1
- package/es/anchor/AnchorItem.js +28 -26
- package/es/anchor/AnchorItem.js.map +1 -1
- package/es/anchor/AnchorTarget.js +29 -28
- package/es/anchor/AnchorTarget.js.map +1 -1
- package/es/anchor/_util/clipboard.js +1 -1
- package/es/anchor/_util/dom.js +1 -1
- package/es/anchor/index.d.ts +1 -1
- package/es/anchor/index.js +31 -30
- package/es/anchor/index.js.map +1 -1
- package/es/anchor/style/index.js +1 -1
- package/es/anchor/type.js +1 -1
- package/es/avatar/AvararGroup.js +30 -29
- package/es/avatar/AvararGroup.js.map +1 -1
- package/es/avatar/Avatar.js +30 -29
- package/es/avatar/Avatar.js.map +1 -1
- package/es/avatar/AvatarContext.js +1 -1
- package/es/avatar/index.js +30 -29
- package/es/avatar/index.js.map +1 -1
- 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 +22 -22
- package/es/breadcrumb/BreadcrumbContext.js +1 -1
- package/es/breadcrumb/BreadcrumbItem.js +22 -22
- package/es/breadcrumb/BreadcrumbProps.js +1 -1
- package/es/breadcrumb/index.js +22 -22
- 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 +43 -42
- package/es/calendar/Calendar.js.map +1 -1
- package/es/calendar/_util.js +1 -1
- package/es/calendar/index.js +43 -42
- package/es/calendar/index.js.map +1 -1
- package/es/calendar/style/index.js +1 -1
- package/es/calendar/type.js +1 -1
- package/es/card/type.js +1 -1
- package/es/cascader/Cascader.js +49 -48
- package/es/cascader/Cascader.js.map +1 -1
- package/es/cascader/components/InputContent.js +31 -31
- package/es/cascader/components/Item.js +36 -35
- package/es/cascader/components/Item.js.map +1 -1
- package/es/cascader/components/Panel.js +36 -35
- package/es/cascader/components/Panel.js.map +1 -1
- package/es/cascader/components/style/index.js +1 -1
- package/es/cascader/index.js +49 -48
- package/es/cascader/index.js.map +1 -1
- package/es/cascader/interface.js +27 -27
- package/es/cascader/style/index.js +1 -1
- package/es/cascader/type.d.ts +25 -8
- package/es/cascader/type.js +1 -1
- package/es/cascader/utils/cascader.js +4 -4
- package/es/cascader/utils/helper.js +2 -2
- package/es/cascader/utils/inputContent.js +18 -18
- package/es/cascader/utils/inputContent.js.map +1 -1
- package/es/cascader/utils/item.js +4 -4
- package/es/cascader/utils/panel.js +10 -10
- package/es/cascader/utils/panel.js.map +1 -1
- 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.css +6 -7
- 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.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.js +32 -9
- package/es/common/Portal.js.map +1 -1
- package/es/common.d.ts +1 -1
- package/es/common.js +1 -1
- package/es/config-provider/ConfigContext.js +21 -21
- package/es/config-provider/ConfigProvider.js +21 -21
- package/es/config-provider/en_US_config.js +1 -1
- package/es/config-provider/index.js +21 -21
- package/es/config-provider/type.js +1 -1
- package/es/config-provider/zh_CN_config.js +1 -1
- package/es/date-picker/DatePicker.d.ts +0 -6
- package/es/date-picker/DatePicker.js +53 -55
- 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.d.ts +0 -6
- package/es/date-picker/index.js +36 -35
- package/es/date-picker/index.js.map +1 -1
- 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.css +1 -1
- package/es/date-picker/style/index.js +1 -1
- package/es/date-picker/type.js +1 -1
- package/es/dialog/Dialog.js +26 -26
- package/es/dialog/RenderDialog.js +34 -17
- package/es/dialog/RenderDialog.js.map +1 -1
- package/es/dialog/index.js +26 -26
- package/es/dialog/plugin.js +26 -26
- 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 +26 -26
- package/es/drawer/Drawer.js.map +1 -1
- package/es/drawer/DrawerWrapper.js +26 -8
- package/es/drawer/DrawerWrapper.js.map +1 -1
- package/es/drawer/index.js +26 -26
- package/es/drawer/style/index.css +1 -0
- package/es/drawer/style/index.js +1 -1
- package/es/drawer/type.js +1 -1
- package/es/dropdown/Dropdown.js +41 -40
- package/es/dropdown/Dropdown.js.map +1 -1
- package/es/dropdown/DropdownItem.js +30 -30
- package/es/dropdown/DropdownMenu.js +31 -31
- package/es/dropdown/index.js +41 -40
- package/es/dropdown/index.js.map +1 -1
- package/es/dropdown/style/index.js +1 -1
- package/es/dropdown/type.js +1 -1
- package/es/form/Form.js +80 -269
- package/es/form/Form.js.map +1 -1
- package/es/form/FormContext.js +1 -1
- package/es/form/FormItem.d.ts +1 -0
- package/es/form/FormItem.js +88 -115
- package/es/form/FormItem.js.map +1 -1
- package/es/form/formModel.js +27 -27
- package/es/form/hooks/useInstance.d.ts +12 -0
- package/es/form/hooks/useInstance.js +263 -0
- package/es/form/hooks/useInstance.js.map +1 -0
- package/es/form/index.js +48 -46
- package/es/form/index.js.map +1 -1
- package/es/form/style/index.css +60 -0
- package/es/form/style/index.js +1 -1
- package/es/form/type.d.ts +9 -6
- package/es/form/type.js +1 -1
- package/es/grid/Col.js +22 -22
- package/es/grid/Row.js +41 -36
- package/es/grid/Row.js.map +1 -1
- 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 +60 -57
- package/es/index.js.map +1 -1
- package/es/input/Input.js +39 -33
- package/es/input/Input.js.map +1 -1
- package/es/input/InputGroup.js +22 -22
- package/es/input/index.js +29 -29
- package/es/input/style/index.js +1 -1
- package/es/input/type.d.ts +11 -6
- 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.css +1 -1
- 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/gradient.js +24 -24
- package/es/loading/index.js +25 -25
- package/es/loading/loading.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 +21 -21
- package/es/locale/en_US.js +1 -1
- package/es/locale/zh_CN.js +1 -1
- package/es/menu/HeadMenu.js +25 -25
- package/es/menu/Menu.js +25 -25
- package/es/menu/MenuContext.js +1 -1
- package/es/menu/MenuGroup.js +21 -21
- package/es/menu/MenuItem.js +22 -22
- package/es/menu/SubMenu.js +24 -24
- package/es/menu/_util/cacularPaddingLeft.js +1 -1
- package/es/menu/_util/checkMenuType.js +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 +1 -1
- package/es/menu/_util/type.js +1 -1
- package/es/menu/hooks/useMenuContext.js +6 -6
- package/es/menu/index.js +25 -25
- package/es/menu/style/index.css +60 -2
- 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.css +78 -0
- package/es/notification/style/index.js +1 -1
- package/es/notification/type.js +1 -1
- package/es/pagination/Pagination.js +42 -41
- package/es/pagination/Pagination.js.map +1 -1
- package/es/pagination/index.js +42 -41
- package/es/pagination/index.js.map +1 -1
- 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 +29 -28
- package/es/popconfirm/PopConfirm.js.map +1 -1
- package/es/popconfirm/PopContent.js +25 -25
- package/es/popconfirm/index.js +29 -28
- 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 +34 -31
- package/es/popup/Popup.js.map +1 -1
- package/es/popup/hooks/useTriggerProps.js +1 -1
- package/es/popup/index.js +28 -27
- package/es/popup/index.js.map +1 -1
- package/es/popup/style/index.css +2 -2
- 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.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 +35 -33
- package/es/select/base/PopupContent.js.map +1 -1
- package/es/select/base/Select.js +90 -87
- package/es/select/base/Select.js.map +1 -1
- package/es/select/base/style/index.js +1 -1
- package/es/select/index.js +42 -41
- package/es/select/index.js.map +1 -1
- package/es/select/style/index.css +27 -19
- 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 +43 -40
- package/es/select-input/SelectInput.js.map +1 -1
- package/es/select-input/index.js +40 -39
- package/es/select-input/index.js.map +1 -1
- package/es/select-input/style/index.js +1 -1
- package/es/select-input/type.d.ts +2 -2
- package/es/select-input/type.js +1 -1
- package/es/select-input/useMultiple.js +34 -35
- package/es/select-input/useMultiple.js.map +1 -1
- package/es/select-input/useOverlayStyle.js +13 -11
- package/es/select-input/useOverlayStyle.js.map +1 -1
- package/es/select-input/useSingle.js +61 -54
- package/es/select-input/useSingle.js.map +1 -1
- 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 +41 -35
- package/es/slider/Slider.js.map +1 -1
- package/es/slider/SliderHandleButton.d.ts +1 -0
- package/es/slider/SliderHandleButton.js +37 -34
- package/es/slider/SliderHandleButton.js.map +1 -1
- package/es/slider/index.js +33 -32
- package/es/slider/index.js.map +1 -1
- package/es/slider/style/index.js +1 -1
- package/es/slider/type.d.ts +5 -3
- 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.css +8 -0
- package/es/style/index.js +1 -1
- package/es/swiper/Swiper.js +314 -81
- package/es/swiper/Swiper.js.map +1 -1
- package/es/swiper/SwiperItem.d.ts +8 -4
- package/es/swiper/SwiperItem.js +118 -3
- package/es/swiper/SwiperItem.js.map +1 -1
- package/es/swiper/index.js +24 -23
- package/es/swiper/index.js.map +1 -1
- package/es/swiper/style/index.css +799 -60
- package/es/swiper/style/index.js +1 -1
- package/es/swiper/type.d.ts +62 -4
- 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 +42 -41
- package/es/table/base/Table.js.map +1 -1
- package/es/table/base/TableAsyncLoadingBody.js +28 -28
- package/es/table/base/TableBody.js +35 -32
- package/es/table/base/TableBody.js.map +1 -1
- package/es/table/base/TableCell.js +28 -27
- package/es/table/base/TableCell.js.map +1 -1
- 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 +30 -29
- package/es/table/base/TableHeader.js.map +1 -1
- package/es/table/base/TableLoadingBody.js +6 -6
- package/es/table/base/TableRow.js +32 -31
- package/es/table/base/TableRow.js.map +1 -1
- package/es/table/base/style/index.js +1 -1
- package/es/table/enhanced/Table.js +44 -43
- package/es/table/enhanced/Table.js.map +1 -1
- 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 +44 -43
- package/es/table/index.js.map +1 -1
- package/es/table/primary/SorterButton.js +29 -28
- package/es/table/primary/SorterButton.js.map +1 -1
- package/es/table/primary/Table.js +44 -43
- package/es/table/primary/Table.js.map +1 -1
- 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 +36 -35
- package/es/table/primary/useFilter.js.map +1 -1
- package/es/table/primary/useFilterButton.js +36 -35
- package/es/table/primary/useFilterButton.js.map +1 -1
- package/es/table/primary/useSelect.js +35 -35
- package/es/table/primary/useSorter.js +33 -32
- package/es/table/primary/useSorter.js.map +1 -1
- 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.js +1 -1
- package/es/tabs/TabBar.js +23 -23
- package/es/tabs/TabNav.js +24 -24
- package/es/tabs/TabNavItem.js +22 -22
- package/es/tabs/TabPanel.js +21 -21
- package/es/tabs/Tabs.js +24 -24
- package/es/tabs/index.js +24 -24
- 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 +34 -31
- package/es/tag-input/TagInput.js.map +1 -1
- package/es/tag-input/index.js +30 -30
- package/es/tag-input/style/index.css +17 -6
- 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 +26 -26
- package/es/tag-input/useTagList.js.map +1 -1
- 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 +39 -41
- package/es/time-picker/TimePicker.js.map +1 -1
- package/es/time-picker/TimeRangePicker.js +37 -36
- package/es/time-picker/TimeRangePicker.js.map +1 -1
- package/es/time-picker/consts.js +23 -23
- package/es/time-picker/index.js +37 -36
- package/es/time-picker/index.js.map +1 -1
- 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.css +10 -0
- package/es/time-picker/style/index.js +1 -1
- package/es/time-picker/type.js +1 -1
- package/es/tooltip/Tooltip.js +29 -28
- package/es/tooltip/Tooltip.js.map +1 -1
- package/es/tooltip/index.js +29 -28
- package/es/tooltip/index.js.map +1 -1
- package/es/tooltip/style/index.js +1 -1
- package/es/tooltip/type.js +1 -1
- package/es/transfer/Transfer.js +47 -46
- package/es/transfer/Transfer.js.map +1 -1
- package/es/transfer/TransferList.js +45 -44
- package/es/transfer/TransferList.js.map +1 -1
- package/es/transfer/index.js +47 -46
- package/es/transfer/index.js.map +1 -1
- package/es/transfer/style/index.css +6 -1
- 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/Tree.js.map +1 -1
- 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.d.ts +5 -1
- package/es/tree/type.js +1 -1
- package/es/tree/useControllable.js +3 -3
- package/es/tree/useStore.js +46 -43
- package/es/tree/useStore.js.map +1 -1
- package/es/tree/useTreeConfig.js +23 -23
- package/es/tree-select/SelectArrow.d.ts +8 -0
- package/es/tree-select/SelectArrow.js +53 -0
- package/es/tree-select/SelectArrow.js.map +1 -0
- package/es/tree-select/TreeSelect.js +134 -114
- package/es/tree-select/TreeSelect.js.map +1 -1
- package/es/tree-select/index.js +51 -50
- package/es/tree-select/index.js.map +1 -1
- package/es/tree-select/style/index.js +1 -1
- package/es/tree-select/type.d.ts +62 -6
- package/es/tree-select/type.js +1 -1
- package/es/tree-select/useTreeSelectLocale.js +23 -23
- package/es/tree-select/useTreeSelectPassthoughProps.js +22 -22
- package/es/tree-select/useTreeSelectPassthoughProps.js.map +1 -1
- package/es/tree-select/useTreeSelectUtils.d.ts +1 -1
- package/es/tree-select/useTreeSelectUtils.js +38 -38
- package/es/tree-select/useTreeSelectUtils.js.map +1 -1
- 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 +29 -29
- package/es/upload/themes/single-file.js +28 -28
- package/es/upload/themes/style/index.js +1 -1
- package/es/upload/tips.js +21 -21
- package/es/upload/type.d.ts +20 -5
- 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 +46 -42
- package/es/upload/upload.js.map +1 -1
- package/es/upload/util.js +1 -1
- package/{es/_chunks/dep-37a2534f.js → esm/_chunks/dep-038c9246.js} +7 -7
- package/esm/_chunks/{dep-37a2534f.js.map → dep-038c9246.js.map} +1 -1
- package/esm/_chunks/{dep-966e2c11.js → dep-0728d572.js} +7 -7
- package/esm/_chunks/{dep-966e2c11.js.map → dep-0728d572.js.map} +1 -1
- package/{es/_chunks/dep-ca1925cf.js → esm/_chunks/dep-0c155fb8.js} +2 -2
- package/{es/_chunks/dep-ca1925cf.js.map → esm/_chunks/dep-0c155fb8.js.map} +1 -1
- package/{es/_chunks/dep-1ce426bf.js → esm/_chunks/dep-1f39069a.js} +3 -3
- package/esm/_chunks/{dep-1ce426bf.js.map → dep-1f39069a.js.map} +1 -1
- package/esm/_chunks/{dep-b916d5f3.js → dep-28ef7e25.js} +3 -3
- package/{es/_chunks/dep-b916d5f3.js.map → esm/_chunks/dep-28ef7e25.js.map} +1 -1
- package/esm/_chunks/dep-2982e386.js +8 -0
- package/esm/_chunks/dep-2982e386.js.map +1 -0
- package/esm/_chunks/{dep-4232d2a7.js → dep-301990d4.js} +3 -3
- package/esm/_chunks/{dep-4232d2a7.js.map → dep-301990d4.js.map} +1 -1
- package/esm/_chunks/{dep-28d93aa5.js → dep-31688470.js} +8 -8
- package/esm/_chunks/{dep-28d93aa5.js.map → dep-31688470.js.map} +1 -1
- package/esm/_chunks/{dep-de30b3ee.js → dep-35137444.js} +3 -3
- package/{es/_chunks/dep-de30b3ee.js.map → esm/_chunks/dep-35137444.js.map} +1 -1
- package/{es/_chunks/dep-94f10945.js → esm/_chunks/dep-39d90b75.js} +4 -4
- package/esm/_chunks/{dep-94f10945.js.map → dep-39d90b75.js.map} +1 -1
- package/esm/_chunks/{dep-c1fc6e05.js → dep-39f5cacb.js} +5 -5
- package/esm/_chunks/{dep-c1fc6e05.js.map → dep-39f5cacb.js.map} +1 -1
- package/{es/_chunks/dep-39b10fb0.js → esm/_chunks/dep-44699371.js} +8 -8
- package/{es/_chunks/dep-39b10fb0.js.map → esm/_chunks/dep-44699371.js.map} +1 -1
- package/esm/_chunks/{dep-bc0a6512.js → dep-45b037f6.js} +6 -6
- package/{es/_chunks/dep-bc0a6512.js.map → esm/_chunks/dep-45b037f6.js.map} +1 -1
- package/{es/_chunks/dep-1267d825.js → esm/_chunks/dep-4c657685.js} +5 -5
- package/esm/_chunks/{dep-1267d825.js.map → dep-4c657685.js.map} +1 -1
- package/esm/_chunks/{dep-c422ba85.js → dep-57f08aea.js} +8 -8
- package/{es/_chunks/dep-c422ba85.js.map → esm/_chunks/dep-57f08aea.js.map} +1 -1
- package/{es/_chunks/dep-d4d4f560.js → esm/_chunks/dep-65b010db.js} +6 -6
- package/esm/_chunks/{dep-d4d4f560.js.map → dep-65b010db.js.map} +1 -1
- package/esm/_chunks/{dep-3ff542a8.js → dep-6b2ffd1d.js} +7 -7
- package/esm/_chunks/{dep-3ff542a8.js.map → dep-6b2ffd1d.js.map} +1 -1
- package/{es/_chunks/dep-0f71dbee.js → esm/_chunks/dep-6f8cc12c.js} +3 -3
- package/esm/_chunks/{dep-0f71dbee.js.map → dep-6f8cc12c.js.map} +1 -1
- package/{es/_chunks/dep-c086a55c.js → esm/_chunks/dep-70311a4c.js} +5 -5
- package/esm/_chunks/{dep-c086a55c.js.map → dep-70311a4c.js.map} +1 -1
- package/esm/_chunks/{dep-7b266489.js → dep-7103a109.js} +16 -16
- package/esm/_chunks/{dep-7b266489.js.map → dep-7103a109.js.map} +1 -1
- package/{es/_chunks/dep-7bf5d52e.js → esm/_chunks/dep-72183a2a.js} +4 -4
- package/esm/_chunks/{dep-7bf5d52e.js.map → dep-72183a2a.js.map} +1 -1
- package/{es/_chunks/dep-c559390e.js → esm/_chunks/dep-78f321a0.js} +2 -2
- package/esm/_chunks/{dep-c559390e.js.map → dep-78f321a0.js.map} +1 -1
- package/{es/_chunks/dep-bcb29a45.js → esm/_chunks/dep-828497b4.js} +9 -9
- package/esm/_chunks/dep-828497b4.js.map +1 -0
- package/esm/_chunks/{dep-f643a128.js → dep-84011bbc.js} +4 -4
- package/esm/_chunks/{dep-f643a128.js.map → dep-84011bbc.js.map} +1 -1
- package/esm/_chunks/{dep-9d5261cc.js → dep-84980c30.js} +9 -9
- package/{es/_chunks/dep-9d5261cc.js.map → esm/_chunks/dep-84980c30.js.map} +1 -1
- package/esm/_chunks/{dep-f4a96e20.js → dep-84a2760d.js} +4 -4
- package/esm/_chunks/{dep-f4a96e20.js.map → dep-84a2760d.js.map} +1 -1
- package/esm/_chunks/{dep-04d8367e.js → dep-87d24f9c.js} +3 -3
- package/{es/_chunks/dep-04d8367e.js.map → esm/_chunks/dep-87d24f9c.js.map} +1 -1
- package/{es/_chunks/dep-fc523cb5.js → esm/_chunks/dep-8a3956e4.js} +8 -8
- package/esm/_chunks/{dep-fc523cb5.js.map → dep-8a3956e4.js.map} +1 -1
- package/{es/_chunks/dep-fcf18d7f.js → esm/_chunks/dep-8aa2c906.js} +5 -5
- package/esm/_chunks/{dep-fcf18d7f.js.map → dep-8aa2c906.js.map} +1 -1
- package/esm/_chunks/{dep-e3f6d1c5.js → dep-8b4d9db6.js} +16 -16
- package/esm/_chunks/{dep-e3f6d1c5.js.map → dep-8b4d9db6.js.map} +1 -1
- package/{es/_chunks/dep-b548e753.js → esm/_chunks/dep-8fda4184.js} +4 -4
- package/esm/_chunks/{dep-b548e753.js.map → dep-8fda4184.js.map} +1 -1
- package/{es/_chunks/dep-5099a517.js → esm/_chunks/dep-9ab77a39.js} +2 -2
- package/esm/_chunks/dep-9ab77a39.js.map +1 -0
- package/esm/_chunks/{dep-6ae05208.js → dep-9bbad855.js} +11 -11
- package/esm/_chunks/{dep-6ae05208.js.map → dep-9bbad855.js.map} +1 -1
- package/{es/_chunks/dep-f6f6c737.js → esm/_chunks/dep-9dc44d0a.js} +8 -8
- package/{es/_chunks/dep-f6f6c737.js.map → esm/_chunks/dep-9dc44d0a.js.map} +1 -1
- package/{es/_chunks/dep-6f799e1f.js → esm/_chunks/dep-a4eea765.js} +7 -7
- package/esm/_chunks/{dep-6f799e1f.js.map → dep-a4eea765.js.map} +1 -1
- package/esm/_chunks/{dep-8b85d2d1.js → dep-a6f7ee47.js} +7 -7
- package/{es/_chunks/dep-8b85d2d1.js.map → esm/_chunks/dep-a6f7ee47.js.map} +1 -1
- package/esm/_chunks/{dep-0e3df0f4.js → dep-b0608f92.js} +4 -4
- package/esm/_chunks/{dep-0e3df0f4.js.map → dep-b0608f92.js.map} +1 -1
- package/{es/_chunks/dep-84d15b45.js → esm/_chunks/dep-b19149c6.js} +9 -9
- package/{es/_chunks/dep-84d15b45.js.map → esm/_chunks/dep-b19149c6.js.map} +1 -1
- package/{es/_chunks/dep-388a7ab9.js → esm/_chunks/dep-b2f93b29.js} +5 -5
- package/{es/_chunks/dep-388a7ab9.js.map → esm/_chunks/dep-b2f93b29.js.map} +1 -1
- package/{es/_chunks/dep-57dae996.js → esm/_chunks/dep-b69008d0.js} +5 -5
- package/esm/_chunks/{dep-57dae996.js.map → dep-b69008d0.js.map} +1 -1
- package/esm/_chunks/{dep-f47dd9f2.js → dep-b6b2aed8.js} +4 -4
- package/{es/_chunks/dep-f47dd9f2.js.map → esm/_chunks/dep-b6b2aed8.js.map} +1 -1
- package/esm/_chunks/{dep-37171ab5.js → dep-c7ea01f9.js} +7 -7
- package/esm/_chunks/{dep-37171ab5.js.map → dep-c7ea01f9.js.map} +1 -1
- package/{es/_chunks/dep-27fdea65.js → esm/_chunks/dep-c7ef814a.js} +2 -2
- package/esm/_chunks/{dep-27fdea65.js.map → dep-c7ef814a.js.map} +1 -1
- package/esm/_chunks/{dep-21a072aa.js → dep-cec87786.js} +2 -2
- package/esm/_chunks/{dep-21a072aa.js.map → dep-cec87786.js.map} +1 -1
- package/{es/_chunks/dep-368e4a27.js → esm/_chunks/dep-db764550.js} +6 -6
- package/{es/_chunks/dep-368e4a27.js.map → esm/_chunks/dep-db764550.js.map} +1 -1
- package/esm/_chunks/{dep-7dec3dfe.js → dep-e99579d9.js} +4 -4
- package/esm/_chunks/{dep-7dec3dfe.js.map → dep-e99579d9.js.map} +1 -1
- package/esm/_chunks/{dep-a0129bdd.js → dep-e9dbe655.js} +8 -6
- package/esm/_chunks/dep-e9dbe655.js.map +1 -0
- package/{es/_chunks/dep-05c8b1bd.js → esm/_chunks/dep-ea3fc641.js} +5 -5
- package/{es/_chunks/dep-05c8b1bd.js.map → esm/_chunks/dep-ea3fc641.js.map} +1 -1
- package/esm/_chunks/{dep-07f207ee.js → dep-ea5f44a6.js} +4 -4
- package/esm/_chunks/{dep-07f207ee.js.map → dep-ea5f44a6.js.map} +1 -1
- package/esm/_chunks/{dep-4ff5adb0.js → dep-eb0f021a.js} +13 -13
- package/esm/_chunks/{dep-4ff5adb0.js.map → dep-eb0f021a.js.map} +1 -1
- package/{es/_chunks/dep-e8c92aed.js → esm/_chunks/dep-ecabbfa7.js} +9 -9
- package/esm/_chunks/{dep-e8c92aed.js.map → dep-ecabbfa7.js.map} +1 -1
- package/esm/_chunks/{dep-3438b261.js → dep-edee984e.js} +3 -3
- package/esm/_chunks/{dep-3438b261.js.map → dep-edee984e.js.map} +1 -1
- package/{es/_chunks/dep-bdab0056.js → esm/_chunks/dep-eec95819.js} +4 -4
- package/{es/_chunks/dep-bdab0056.js.map → esm/_chunks/dep-eec95819.js.map} +1 -1
- package/{es/_chunks/dep-b4bc5a07.js → esm/_chunks/dep-f04b41c5.js} +6 -6
- package/{es/_chunks/dep-b4bc5a07.js.map → esm/_chunks/dep-f04b41c5.js.map} +1 -1
- package/esm/_chunks/{dep-4a257327.js → dep-fcc1470c.js} +5 -5
- package/esm/_chunks/{dep-4a257327.js.map → dep-fcc1470c.js.map} +1 -1
- package/esm/_common/js/common.js +1 -1
- package/esm/_common/js/date-picker/utils.js +15 -15
- 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/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 +40 -38
- package/esm/_common/js/tree/tree-store.js.map +1 -1
- package/esm/_common/js/tree/types.d.ts +1 -0
- package/esm/_common/js/tree/types.js +1 -1
- package/esm/_common/js/upload/types.d.ts +1 -0
- package/esm/_common/js/upload/types.js +1 -1
- package/esm/_common/js/upload/xhr.d.ts +1 -1
- package/esm/_common/js/upload/xhr.js +5 -3
- package/esm/_common/js/upload/xhr.js.map +1 -1
- package/esm/_common/js/utils/calcTextareaHeight.js +5 -5
- package/esm/_common/js/utils/helper.js +5 -5
- package/esm/_common/js/utils/set-style.js +1 -1
- package/esm/_common/style/web/_global.less +10 -0
- package/esm/_common/style/web/_variables.less +0 -5
- package/esm/_common/style/web/components/checkbox/_index.less +3 -9
- package/esm/_common/style/web/components/checkbox/_var.less +1 -1
- package/esm/_common/style/web/components/color-picker/_index.less +42 -10
- package/esm/_common/style/web/components/color-picker/_var.less +2 -2
- package/esm/_common/style/web/components/date-picker/_index.less +1 -1
- package/esm/_common/style/web/components/drawer/_index.less +1 -0
- package/esm/_common/style/web/components/form/_mixin.less +23 -3
- package/esm/_common/style/web/components/input-number/_var.less +1 -1
- package/esm/_common/style/web/components/menu/_index.less +82 -3
- package/esm/_common/style/web/components/notification/_index.less +33 -0
- package/esm/_common/style/web/components/notification/_mixin.less +13 -0
- package/esm/_common/style/web/components/popup/_var.less +2 -2
- package/esm/_common/style/web/components/select/_index.less +20 -3
- package/esm/_common/style/web/components/select/_var.less +11 -9
- package/esm/_common/style/web/components/swiper/_docs.less +36 -0
- package/esm/_common/style/web/components/swiper-new/_docs.less +35 -0
- package/esm/_common/style/web/components/swiper-new/_index.less +259 -0
- package/esm/_common/style/web/components/swiper-new/_mixin.less +208 -0
- package/esm/_common/style/web/components/swiper-new/_var.less +81 -0
- package/esm/_common/style/web/components/tag-input/_index.less +19 -3
- package/esm/_common/style/web/components/time-picker/_index.less +14 -0
- package/esm/_common/style/web/components/transfer/_index.less +2 -0
- package/esm/_common/style/web/components/transfer/_var.less +1 -2
- package/esm/_util/callBoth.js +1 -1
- package/esm/_util/composeRefs.js +1 -1
- package/esm/_util/dom.d.ts +1 -0
- package/esm/_util/dom.js +14 -9
- package/esm/_util/dom.js.map +1 -1
- 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.js +1 -1
- package/esm/_util/renderTNode.d.ts +7 -0
- package/esm/_util/renderTNode.js +16 -0
- package/esm/_util/renderTNode.js.map +1 -0
- 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.js +21 -21
- package/esm/_util/useDefault.js +3 -3
- package/esm/_util/useDefault.js.map +1 -1
- 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 +27 -24
- package/esm/_util/useRipple.js.map +1 -1
- 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 +15 -6
- package/esm/_util/useWindowSize.js.map +1 -1
- package/esm/addon/Addon.d.ts +1 -0
- package/esm/addon/Addon.js +22 -22
- package/esm/addon/Addon.js.map +1 -1
- 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.d.ts +1 -1
- package/esm/anchor/Anchor.js +37 -34
- package/esm/anchor/Anchor.js.map +1 -1
- package/esm/anchor/AnchorContext.js +1 -1
- package/esm/anchor/AnchorItem.d.ts +3 -1
- package/esm/anchor/AnchorItem.js +28 -26
- package/esm/anchor/AnchorItem.js.map +1 -1
- package/esm/anchor/AnchorTarget.js +29 -28
- package/esm/anchor/AnchorTarget.js.map +1 -1
- package/esm/anchor/_util/clipboard.js +1 -1
- package/esm/anchor/_util/dom.js +1 -1
- package/esm/anchor/index.d.ts +1 -1
- package/esm/anchor/index.js +31 -30
- package/esm/anchor/index.js.map +1 -1
- package/esm/anchor/type.js +1 -1
- package/esm/avatar/AvararGroup.js +30 -29
- package/esm/avatar/AvararGroup.js.map +1 -1
- package/esm/avatar/Avatar.js +30 -29
- package/esm/avatar/Avatar.js.map +1 -1
- package/esm/avatar/AvatarContext.js +1 -1
- package/esm/avatar/index.js +30 -29
- package/esm/avatar/index.js.map +1 -1
- 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 +22 -22
- package/esm/breadcrumb/BreadcrumbContext.js +1 -1
- package/esm/breadcrumb/BreadcrumbItem.js +22 -22
- package/esm/breadcrumb/BreadcrumbProps.js +1 -1
- package/esm/breadcrumb/index.js +22 -22
- 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 +43 -42
- package/esm/calendar/Calendar.js.map +1 -1
- package/esm/calendar/_util.js +1 -1
- package/esm/calendar/index.js +43 -42
- package/esm/calendar/index.js.map +1 -1
- package/esm/calendar/type.js +1 -1
- package/esm/card/type.js +1 -1
- package/esm/cascader/Cascader.js +49 -48
- package/esm/cascader/Cascader.js.map +1 -1
- package/esm/cascader/components/InputContent.js +31 -31
- package/esm/cascader/components/Item.js +36 -35
- package/esm/cascader/components/Item.js.map +1 -1
- package/esm/cascader/components/Panel.js +36 -35
- package/esm/cascader/components/Panel.js.map +1 -1
- package/esm/cascader/index.js +49 -48
- package/esm/cascader/index.js.map +1 -1
- package/esm/cascader/interface.js +27 -27
- package/esm/cascader/type.d.ts +25 -8
- package/esm/cascader/type.js +1 -1
- package/esm/cascader/utils/cascader.js +4 -4
- package/esm/cascader/utils/helper.js +2 -2
- package/esm/cascader/utils/inputContent.js +18 -18
- package/esm/cascader/utils/inputContent.js.map +1 -1
- package/esm/cascader/utils/item.js +4 -4
- package/esm/cascader/utils/panel.js +10 -10
- package/esm/cascader/utils/panel.js.map +1 -1
- 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.js +32 -9
- package/esm/common/Portal.js.map +1 -1
- package/esm/common.d.ts +1 -1
- package/esm/common.js +1 -1
- package/esm/config-provider/ConfigContext.js +21 -21
- package/esm/config-provider/ConfigProvider.js +21 -21
- package/esm/config-provider/en_US_config.js +1 -1
- package/esm/config-provider/index.js +21 -21
- package/esm/config-provider/type.js +1 -1
- package/esm/config-provider/zh_CN_config.js +1 -1
- package/esm/date-picker/DatePicker.d.ts +0 -6
- package/esm/date-picker/DatePicker.js +53 -55
- 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.d.ts +0 -6
- package/esm/date-picker/index.js +36 -35
- package/esm/date-picker/index.js.map +1 -1
- 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 +26 -26
- package/esm/dialog/RenderDialog.js +34 -17
- package/esm/dialog/RenderDialog.js.map +1 -1
- package/esm/dialog/index.js +26 -26
- package/esm/dialog/plugin.js +26 -26
- 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 +26 -26
- package/esm/drawer/Drawer.js.map +1 -1
- package/esm/drawer/DrawerWrapper.js +26 -8
- package/esm/drawer/DrawerWrapper.js.map +1 -1
- package/esm/drawer/index.js +26 -26
- package/esm/drawer/type.js +1 -1
- package/esm/dropdown/Dropdown.js +41 -40
- package/esm/dropdown/Dropdown.js.map +1 -1
- package/esm/dropdown/DropdownItem.js +30 -30
- package/esm/dropdown/DropdownMenu.js +31 -31
- package/esm/dropdown/index.js +41 -40
- package/esm/dropdown/index.js.map +1 -1
- package/esm/dropdown/type.js +1 -1
- package/esm/form/Form.js +80 -269
- package/esm/form/Form.js.map +1 -1
- package/esm/form/FormContext.js +1 -1
- package/esm/form/FormItem.d.ts +1 -0
- package/esm/form/FormItem.js +88 -115
- package/esm/form/FormItem.js.map +1 -1
- package/esm/form/formModel.js +27 -27
- package/esm/form/hooks/useInstance.d.ts +12 -0
- package/esm/form/hooks/useInstance.js +263 -0
- package/esm/form/hooks/useInstance.js.map +1 -0
- package/esm/form/index.js +48 -46
- package/esm/form/index.js.map +1 -1
- package/esm/form/type.d.ts +9 -6
- package/esm/form/type.js +1 -1
- package/esm/grid/Col.js +22 -22
- package/esm/grid/Row.js +41 -36
- package/esm/grid/Row.js.map +1 -1
- package/esm/grid/index.js +25 -25
- package/esm/grid/type.js +1 -1
- package/esm/index.js +60 -57
- package/esm/index.js.map +1 -1
- package/esm/input/Input.js +39 -33
- package/esm/input/Input.js.map +1 -1
- package/esm/input/InputGroup.js +22 -22
- package/esm/input/index.js +29 -29
- package/esm/input/type.d.ts +11 -6
- 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/gradient.js +24 -24
- package/esm/loading/index.js +25 -25
- package/esm/loading/loading.js +25 -25
- package/esm/loading/plugin.js +25 -25
- package/esm/loading/type.js +1 -1
- package/esm/locale/LocalReceiver.js +21 -21
- package/esm/locale/en_US.js +1 -1
- package/esm/locale/zh_CN.js +1 -1
- package/esm/menu/HeadMenu.js +25 -25
- package/esm/menu/Menu.js +25 -25
- package/esm/menu/MenuContext.js +1 -1
- package/esm/menu/MenuGroup.js +21 -21
- package/esm/menu/MenuItem.js +22 -22
- package/esm/menu/SubMenu.js +24 -24
- package/esm/menu/_util/cacularPaddingLeft.js +1 -1
- package/esm/menu/_util/checkMenuType.js +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 +1 -1
- package/esm/menu/_util/type.js +1 -1
- package/esm/menu/hooks/useMenuContext.js +6 -6
- package/esm/menu/index.js +25 -25
- 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 +42 -41
- package/esm/pagination/Pagination.js.map +1 -1
- package/esm/pagination/index.js +42 -41
- package/esm/pagination/index.js.map +1 -1
- package/esm/pagination/type.js +1 -1
- package/esm/pagination/validators.js +1 -1
- package/esm/popconfirm/PopConfirm.js +29 -28
- package/esm/popconfirm/PopConfirm.js.map +1 -1
- package/esm/popconfirm/PopContent.js +25 -25
- package/esm/popconfirm/index.js +29 -28
- package/esm/popconfirm/index.js.map +1 -1
- package/esm/popconfirm/type.js +1 -1
- package/esm/popup/Popup.js +34 -31
- package/esm/popup/Popup.js.map +1 -1
- package/esm/popup/hooks/useTriggerProps.js +1 -1
- package/esm/popup/index.js +28 -27
- package/esm/popup/index.js.map +1 -1
- 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 +35 -33
- package/esm/select/base/PopupContent.js.map +1 -1
- package/esm/select/base/Select.js +90 -87
- package/esm/select/base/Select.js.map +1 -1
- package/esm/select/index.js +42 -41
- package/esm/select/index.js.map +1 -1
- package/esm/select/type.js +1 -1
- package/esm/select/util/helper.js +29 -29
- package/esm/select-input/SelectInput.js +43 -40
- package/esm/select-input/SelectInput.js.map +1 -1
- package/esm/select-input/index.js +40 -39
- package/esm/select-input/index.js.map +1 -1
- package/esm/select-input/type.d.ts +2 -2
- package/esm/select-input/type.js +1 -1
- package/esm/select-input/useMultiple.js +34 -35
- package/esm/select-input/useMultiple.js.map +1 -1
- package/esm/select-input/useOverlayStyle.js +13 -11
- package/esm/select-input/useOverlayStyle.js.map +1 -1
- package/esm/select-input/useSingle.js +61 -54
- package/esm/select-input/useSingle.js.map +1 -1
- 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 +41 -35
- package/esm/slider/Slider.js.map +1 -1
- package/esm/slider/SliderHandleButton.d.ts +1 -0
- package/esm/slider/SliderHandleButton.js +37 -34
- package/esm/slider/SliderHandleButton.js.map +1 -1
- package/esm/slider/index.js +33 -32
- package/esm/slider/index.js.map +1 -1
- package/esm/slider/type.d.ts +5 -3
- 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 +314 -81
- package/esm/swiper/Swiper.js.map +1 -1
- package/esm/swiper/SwiperItem.d.ts +8 -4
- package/esm/swiper/SwiperItem.js +118 -3
- package/esm/swiper/SwiperItem.js.map +1 -1
- package/esm/swiper/index.js +24 -23
- package/esm/swiper/index.js.map +1 -1
- package/esm/swiper/style/index.js +1 -1
- package/esm/swiper/type.d.ts +62 -4
- 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 +42 -41
- package/esm/table/base/Table.js.map +1 -1
- package/esm/table/base/TableAsyncLoadingBody.js +28 -28
- package/esm/table/base/TableBody.js +35 -32
- package/esm/table/base/TableBody.js.map +1 -1
- package/esm/table/base/TableCell.js +28 -27
- package/esm/table/base/TableCell.js.map +1 -1
- 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 +30 -29
- package/esm/table/base/TableHeader.js.map +1 -1
- package/esm/table/base/TableLoadingBody.js +6 -6
- package/esm/table/base/TableRow.js +32 -31
- package/esm/table/base/TableRow.js.map +1 -1
- package/esm/table/enhanced/Table.js +44 -43
- package/esm/table/enhanced/Table.js.map +1 -1
- 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 +44 -43
- package/esm/table/index.js.map +1 -1
- package/esm/table/primary/SorterButton.js +29 -28
- package/esm/table/primary/SorterButton.js.map +1 -1
- package/esm/table/primary/Table.js +44 -43
- package/esm/table/primary/Table.js.map +1 -1
- 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 +36 -35
- package/esm/table/primary/useFilter.js.map +1 -1
- package/esm/table/primary/useFilterButton.js +36 -35
- package/esm/table/primary/useFilterButton.js.map +1 -1
- package/esm/table/primary/useSelect.js +35 -35
- package/esm/table/primary/useSorter.js +33 -32
- package/esm/table/primary/useSorter.js.map +1 -1
- package/esm/table/type.js +1 -1
- package/esm/table/util/getRowKeyFromRowKey.js +1 -1
- package/esm/table/util/index.js +1 -1
- package/esm/tabs/TabBar.js +23 -23
- package/esm/tabs/TabNav.js +24 -24
- package/esm/tabs/TabNavItem.js +22 -22
- package/esm/tabs/TabPanel.js +21 -21
- package/esm/tabs/Tabs.js +24 -24
- package/esm/tabs/index.js +24 -24
- 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 +34 -31
- package/esm/tag-input/TagInput.js.map +1 -1
- 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 +26 -26
- package/esm/tag-input/useTagList.js.map +1 -1
- 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 +39 -41
- package/esm/time-picker/TimePicker.js.map +1 -1
- package/esm/time-picker/TimeRangePicker.js +37 -36
- package/esm/time-picker/TimeRangePicker.js.map +1 -1
- package/esm/time-picker/consts.js +23 -23
- package/esm/time-picker/index.js +37 -36
- package/esm/time-picker/index.js.map +1 -1
- 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 +29 -28
- package/esm/tooltip/Tooltip.js.map +1 -1
- package/esm/tooltip/index.js +29 -28
- package/esm/tooltip/index.js.map +1 -1
- package/esm/tooltip/type.js +1 -1
- package/esm/transfer/Transfer.js +47 -46
- package/esm/transfer/Transfer.js.map +1 -1
- package/esm/transfer/TransferList.js +45 -44
- package/esm/transfer/TransferList.js.map +1 -1
- package/esm/transfer/index.js +47 -46
- package/esm/transfer/index.js.map +1 -1
- package/esm/transfer/type.js +1 -1
- package/esm/transfer/utils.js +18 -18
- package/esm/tree/Tree.js +47 -47
- package/esm/tree/Tree.js.map +1 -1
- 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.d.ts +5 -1
- package/esm/tree/type.js +1 -1
- package/esm/tree/useControllable.js +3 -3
- package/esm/tree/useStore.js +46 -43
- package/esm/tree/useStore.js.map +1 -1
- package/esm/tree/useTreeConfig.js +23 -23
- package/esm/tree-select/SelectArrow.d.ts +8 -0
- package/esm/tree-select/SelectArrow.js +53 -0
- package/esm/tree-select/SelectArrow.js.map +1 -0
- package/esm/tree-select/TreeSelect.js +134 -114
- package/esm/tree-select/TreeSelect.js.map +1 -1
- package/esm/tree-select/index.js +51 -50
- package/esm/tree-select/index.js.map +1 -1
- package/esm/tree-select/type.d.ts +62 -6
- package/esm/tree-select/type.js +1 -1
- package/esm/tree-select/useTreeSelectLocale.js +23 -23
- package/esm/tree-select/useTreeSelectPassthoughProps.js +22 -22
- package/esm/tree-select/useTreeSelectPassthoughProps.js.map +1 -1
- package/esm/tree-select/useTreeSelectUtils.d.ts +1 -1
- package/esm/tree-select/useTreeSelectUtils.js +38 -38
- package/esm/tree-select/useTreeSelectUtils.js.map +1 -1
- 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 +29 -29
- package/esm/upload/themes/single-file.js +28 -28
- package/esm/upload/tips.js +21 -21
- package/esm/upload/type.d.ts +20 -5
- 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 +46 -42
- package/esm/upload/upload.js.map +1 -1
- package/esm/upload/util.js +1 -1
- package/lib/_chunks/{dep-ba1611b7.js → dep-00c21a76.js} +14 -14
- package/lib/_chunks/{dep-ba1611b7.js.map → dep-00c21a76.js.map} +1 -1
- package/lib/_chunks/{dep-c03a72a4.js → dep-05ecc328.js} +7 -7
- package/lib/_chunks/{dep-c03a72a4.js.map → dep-05ecc328.js.map} +1 -1
- package/lib/_chunks/{dep-afc7f77c.js → dep-07951a1a.js} +2 -2
- package/lib/_chunks/{dep-afc7f77c.js.map → dep-07951a1a.js.map} +1 -1
- package/lib/_chunks/{dep-9d69f737.js → dep-1243f9b2.js} +6 -6
- package/lib/_chunks/{dep-9d69f737.js.map → dep-1243f9b2.js.map} +1 -1
- package/lib/_chunks/{dep-2adbac80.js → dep-17333d0a.js} +5 -5
- package/lib/_chunks/{dep-2adbac80.js.map → dep-17333d0a.js.map} +1 -1
- package/lib/_chunks/{dep-b61c8e88.js → dep-1cbbc224.js} +4 -4
- package/lib/_chunks/{dep-b61c8e88.js.map → dep-1cbbc224.js.map} +1 -1
- package/lib/_chunks/{dep-326e03c4.js → dep-1e5be1d8.js} +4 -4
- package/lib/_chunks/{dep-326e03c4.js.map → dep-1e5be1d8.js.map} +1 -1
- package/lib/_chunks/{dep-19edf8ea.js → dep-2a190560.js} +3 -3
- package/lib/_chunks/{dep-19edf8ea.js.map → dep-2a190560.js.map} +1 -1
- package/lib/_chunks/{dep-a31cf45f.js → dep-2cdb7059.js} +2 -2
- package/lib/_chunks/{dep-a31cf45f.js.map → dep-2cdb7059.js.map} +1 -1
- package/lib/_chunks/{dep-86e31ddb.js → dep-34327dfc.js} +2 -2
- package/lib/_chunks/{dep-86e31ddb.js.map → dep-34327dfc.js.map} +1 -1
- package/lib/_chunks/{dep-d5a66f9d.js → dep-3da67813.js} +2 -2
- package/lib/_chunks/{dep-d5a66f9d.js.map → dep-3da67813.js.map} +1 -1
- package/lib/_chunks/{dep-ca32016f.js → dep-417567ae.js} +6 -6
- package/lib/_chunks/{dep-ca32016f.js.map → dep-417567ae.js.map} +1 -1
- package/lib/_chunks/{dep-5f150e6d.js → dep-42f69132.js} +5 -5
- package/lib/_chunks/{dep-5f150e6d.js.map → dep-42f69132.js.map} +1 -1
- package/lib/_chunks/{dep-de9b5cb1.js → dep-43033ab4.js} +2 -2
- package/lib/_chunks/{dep-de9b5cb1.js.map → dep-43033ab4.js.map} +1 -1
- package/lib/_chunks/{dep-705cc78e.js → dep-4ee25b1d.js} +3 -3
- package/lib/_chunks/{dep-705cc78e.js.map → dep-4ee25b1d.js.map} +1 -1
- package/lib/_chunks/{dep-ccfe6ff3.js → dep-52ac6f5d.js} +2 -2
- package/lib/_chunks/{dep-ccfe6ff3.js.map → dep-52ac6f5d.js.map} +1 -1
- package/lib/_chunks/{dep-bd950687.js → dep-54aa08a9.js} +4 -4
- package/lib/_chunks/{dep-bd950687.js.map → dep-54aa08a9.js.map} +1 -1
- package/lib/_chunks/{dep-6ecdaffb.js → dep-57ab8b66.js} +6 -6
- package/lib/_chunks/{dep-6ecdaffb.js.map → dep-57ab8b66.js.map} +1 -1
- package/lib/_chunks/{dep-092a06b4.js → dep-5eb35222.js} +5 -5
- package/lib/_chunks/{dep-092a06b4.js.map → dep-5eb35222.js.map} +1 -1
- package/lib/_chunks/{dep-a022c8b3.js → dep-63a34444.js} +4 -4
- package/lib/_chunks/{dep-a022c8b3.js.map → dep-63a34444.js.map} +1 -1
- package/lib/_chunks/{dep-495c5c19.js → dep-689d1b96.js} +6 -6
- package/lib/_chunks/{dep-495c5c19.js.map → dep-689d1b96.js.map} +1 -1
- package/lib/_chunks/{dep-c1710cfc.js → dep-6916a546.js} +2 -2
- package/lib/_chunks/{dep-c1710cfc.js.map → dep-6916a546.js.map} +1 -1
- package/lib/_chunks/{dep-8d3b20c3.js → dep-6c140602.js} +3 -3
- package/lib/_chunks/{dep-8d3b20c3.js.map → dep-6c140602.js.map} +1 -1
- package/lib/_chunks/{dep-d56e4256.js → dep-6fb34353.js} +7 -7
- package/lib/_chunks/{dep-d56e4256.js.map → dep-6fb34353.js.map} +1 -1
- package/lib/_chunks/{dep-f5a56bb6.js → dep-71458a97.js} +3 -3
- package/lib/_chunks/{dep-f5a56bb6.js.map → dep-71458a97.js.map} +1 -1
- package/lib/_chunks/{dep-bc224704.js → dep-756f3f2b.js} +3 -3
- package/lib/_chunks/{dep-bc224704.js.map → dep-756f3f2b.js.map} +1 -1
- package/lib/_chunks/{dep-5e417034.js → dep-7a15609e.js} +5 -5
- package/lib/_chunks/{dep-5e417034.js.map → dep-7a15609e.js.map} +1 -1
- package/lib/_chunks/{dep-975cf21a.js → dep-8b8a4f9b.js} +4 -4
- package/lib/_chunks/{dep-975cf21a.js.map → dep-8b8a4f9b.js.map} +1 -1
- package/lib/_chunks/{dep-77aaf9c7.js → dep-8ffd203f.js} +4 -4
- package/lib/_chunks/{dep-77aaf9c7.js.map → dep-8ffd203f.js.map} +1 -1
- package/lib/_chunks/{dep-a551b5bd.js → dep-90209eca.js} +2 -2
- package/lib/_chunks/{dep-a551b5bd.js.map → dep-90209eca.js.map} +1 -1
- package/lib/_chunks/{dep-a1d8494f.js → dep-95b64cbc.js} +2 -2
- package/{esm/_chunks/dep-de30b3ee.js.map → lib/_chunks/dep-95b64cbc.js.map} +1 -1
- package/lib/_chunks/{dep-bbb685b5.js → dep-95dc6d9b.js} +7 -7
- package/lib/_chunks/{dep-bbb685b5.js.map → dep-95dc6d9b.js.map} +1 -1
- package/lib/_chunks/{dep-9f5ac630.js → dep-9b444881.js} +6 -6
- package/lib/_chunks/{dep-9f5ac630.js.map → dep-9b444881.js.map} +1 -1
- package/lib/_chunks/{dep-a9bf9f62.js → dep-a3247e7d.js} +7 -7
- package/lib/_chunks/{dep-a9bf9f62.js.map → dep-a3247e7d.js.map} +1 -1
- package/lib/_chunks/{dep-b9d184fe.js → dep-ad84d92a.js} +8 -6
- package/lib/_chunks/dep-ad84d92a.js.map +1 -0
- package/lib/_chunks/{dep-b77bc71a.js → dep-b2292bb8.js} +7 -7
- package/lib/_chunks/{dep-b77bc71a.js.map → dep-b2292bb8.js.map} +1 -1
- package/lib/_chunks/{dep-49b5c404.js → dep-c288c861.js} +3 -3
- package/lib/_chunks/{dep-49b5c404.js.map → dep-c288c861.js.map} +1 -1
- package/lib/_chunks/{dep-3b703c33.js → dep-c7d8e32e.js} +5 -5
- package/lib/_chunks/{dep-3b703c33.js.map → dep-c7d8e32e.js.map} +1 -1
- package/lib/_chunks/{dep-9e25de0d.js → dep-cced1c4e.js} +5 -5
- package/lib/_chunks/{dep-9e25de0d.js.map → dep-cced1c4e.js.map} +1 -1
- package/lib/_chunks/{dep-c0c0de92.js → dep-cf62d2fb.js} +3 -3
- package/lib/_chunks/{dep-c0c0de92.js.map → dep-cf62d2fb.js.map} +1 -1
- package/lib/_chunks/{dep-412d4630.js → dep-d0b1978d.js} +3 -3
- package/lib/_chunks/{dep-412d4630.js.map → dep-d0b1978d.js.map} +1 -1
- package/lib/_chunks/{dep-bb68e59d.js → dep-d5c8d101.js} +3 -3
- package/lib/_chunks/{dep-bb68e59d.js.map → dep-d5c8d101.js.map} +1 -1
- package/lib/_chunks/{dep-2e411f04.js → dep-de2087a8.js} +7 -7
- package/lib/_chunks/{dep-2e411f04.js.map → dep-de2087a8.js.map} +1 -1
- package/lib/_chunks/{dep-596f1ed1.js → dep-e16b1a44.js} +3 -3
- package/lib/_chunks/{dep-596f1ed1.js.map → dep-e16b1a44.js.map} +1 -1
- package/lib/_chunks/{dep-62c12082.js → dep-e31a808c.js} +5 -5
- package/lib/_chunks/{dep-62c12082.js.map → dep-e31a808c.js.map} +1 -1
- package/lib/_chunks/{dep-99ad5d4d.js → dep-ecbb2e42.js} +9 -9
- package/lib/_chunks/dep-ecbb2e42.js.map +1 -0
- package/lib/_chunks/{dep-8e266006.js → dep-edf752d2.js} +9 -9
- package/lib/_chunks/{dep-8e266006.js.map → dep-edf752d2.js.map} +1 -1
- package/lib/_chunks/{dep-bd3aa0bc.js → dep-f57b7051.js} +6 -6
- package/lib/_chunks/{dep-bd3aa0bc.js.map → dep-f57b7051.js.map} +1 -1
- package/lib/_chunks/{dep-bc4cf4bc.js → dep-fafac164.js} +13 -13
- package/lib/_chunks/{dep-bc4cf4bc.js.map → dep-fafac164.js.map} +1 -1
- package/lib/_chunks/{dep-8d27c301.js → dep-fb9da661.js} +5 -5
- package/lib/_chunks/{dep-8d27c301.js.map → dep-fb9da661.js.map} +1 -1
- package/lib/_chunks/{dep-85706db5.js → dep-fba5aea7.js} +3 -3
- package/lib/_chunks/{dep-85706db5.js.map → dep-fba5aea7.js.map} +1 -1
- package/lib/_chunks/{dep-b16bea99.js → dep-fcf81179.js} +2 -2
- package/lib/_chunks/{dep-b16bea99.js.map → dep-fcf81179.js.map} +1 -1
- package/lib/_chunks/{dep-6b1d90f5.js → dep-fd2f41af.js} +11 -11
- package/lib/_chunks/{dep-6b1d90f5.js.map → dep-fd2f41af.js.map} +1 -1
- package/lib/_common/js/common.js +1 -1
- package/lib/_common/js/date-picker/utils.js +14 -14
- 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/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 +38 -36
- package/lib/_common/js/tree/tree-store.js.map +1 -1
- package/lib/_common/js/tree/types.d.ts +1 -0
- package/lib/_common/js/tree/types.js +1 -1
- package/lib/_common/js/upload/types.d.ts +1 -0
- package/lib/_common/js/upload/types.js +1 -1
- package/lib/_common/js/upload/xhr.d.ts +1 -1
- package/lib/_common/js/upload/xhr.js +5 -3
- package/lib/_common/js/upload/xhr.js.map +1 -1
- package/lib/_common/js/utils/calcTextareaHeight.js +5 -5
- package/lib/_common/js/utils/helper.js +5 -5
- 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.d.ts +1 -0
- package/lib/_util/dom.js +12 -6
- package/lib/_util/dom.js.map +1 -1
- 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.js +1 -1
- package/lib/_util/renderTNode.d.ts +7 -0
- package/lib/_util/renderTNode.js +20 -0
- package/lib/_util/renderTNode.js.map +1 -0
- 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.js +19 -19
- package/lib/_util/useDefault.js +3 -3
- package/lib/_util/useDefault.js.map +1 -1
- 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 +25 -22
- package/lib/_util/useRipple.js.map +1 -1
- 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 +14 -6
- package/lib/_util/useWindowSize.js.map +1 -1
- package/lib/addon/Addon.d.ts +1 -0
- package/lib/addon/Addon.js +20 -20
- package/lib/addon/Addon.js.map +1 -1
- 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.d.ts +1 -1
- package/lib/anchor/Anchor.js +35 -32
- package/lib/anchor/Anchor.js.map +1 -1
- package/lib/anchor/AnchorContext.js +1 -1
- package/lib/anchor/AnchorItem.d.ts +3 -1
- package/lib/anchor/AnchorItem.js +26 -24
- package/lib/anchor/AnchorItem.js.map +1 -1
- package/lib/anchor/AnchorTarget.js +27 -26
- package/lib/anchor/AnchorTarget.js.map +1 -1
- package/lib/anchor/_util/clipboard.js +1 -1
- package/lib/anchor/_util/dom.js +1 -1
- package/lib/anchor/index.d.ts +1 -1
- package/lib/anchor/index.js +29 -28
- package/lib/anchor/index.js.map +1 -1
- package/lib/anchor/type.js +1 -1
- package/lib/avatar/AvararGroup.js +28 -27
- package/lib/avatar/AvararGroup.js.map +1 -1
- package/lib/avatar/Avatar.js +28 -27
- package/lib/avatar/Avatar.js.map +1 -1
- package/lib/avatar/AvatarContext.js +1 -1
- package/lib/avatar/index.js +28 -27
- package/lib/avatar/index.js.map +1 -1
- 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 +20 -20
- package/lib/breadcrumb/BreadcrumbContext.js +1 -1
- package/lib/breadcrumb/BreadcrumbItem.js +20 -20
- package/lib/breadcrumb/BreadcrumbProps.js +1 -1
- package/lib/breadcrumb/index.js +20 -20
- 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 +41 -40
- package/lib/calendar/Calendar.js.map +1 -1
- package/lib/calendar/_util.js +1 -1
- package/lib/calendar/index.js +41 -40
- package/lib/calendar/index.js.map +1 -1
- package/lib/calendar/type.js +1 -1
- package/lib/card/type.js +1 -1
- package/lib/cascader/Cascader.js +47 -46
- package/lib/cascader/Cascader.js.map +1 -1
- package/lib/cascader/components/InputContent.js +29 -29
- package/lib/cascader/components/Item.js +34 -33
- package/lib/cascader/components/Item.js.map +1 -1
- package/lib/cascader/components/Panel.js +34 -33
- package/lib/cascader/components/Panel.js.map +1 -1
- package/lib/cascader/index.js +47 -46
- package/lib/cascader/index.js.map +1 -1
- package/lib/cascader/interface.js +25 -25
- package/lib/cascader/type.d.ts +25 -8
- package/lib/cascader/type.js +1 -1
- package/lib/cascader/utils/cascader.js +4 -4
- package/lib/cascader/utils/helper.js +2 -2
- package/lib/cascader/utils/inputContent.js +16 -16
- package/lib/cascader/utils/inputContent.js.map +1 -1
- package/lib/cascader/utils/item.js +4 -4
- package/lib/cascader/utils/panel.js +9 -9
- package/lib/cascader/utils/panel.js.map +1 -1
- 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.js +29 -7
- package/lib/common/Portal.js.map +1 -1
- package/lib/common.d.ts +1 -1
- package/lib/common.js +1 -1
- package/lib/config-provider/ConfigContext.js +19 -19
- package/lib/config-provider/ConfigProvider.js +19 -19
- package/lib/config-provider/en_US_config.js +1 -1
- package/lib/config-provider/index.js +19 -19
- package/lib/config-provider/type.js +1 -1
- package/lib/config-provider/zh_CN_config.js +1 -1
- package/lib/date-picker/DatePicker.d.ts +0 -6
- package/lib/date-picker/DatePicker.js +51 -53
- 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.d.ts +0 -6
- package/lib/date-picker/index.js +34 -33
- package/lib/date-picker/index.js.map +1 -1
- 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 +24 -24
- package/lib/dialog/RenderDialog.js +31 -15
- package/lib/dialog/RenderDialog.js.map +1 -1
- package/lib/dialog/index.js +24 -24
- package/lib/dialog/plugin.js +24 -24
- 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 +24 -24
- package/lib/drawer/Drawer.js.map +1 -1
- package/lib/drawer/DrawerWrapper.js +23 -6
- package/lib/drawer/DrawerWrapper.js.map +1 -1
- package/lib/drawer/index.js +24 -24
- package/lib/drawer/type.js +1 -1
- package/lib/dropdown/Dropdown.js +39 -38
- package/lib/dropdown/Dropdown.js.map +1 -1
- package/lib/dropdown/DropdownItem.js +28 -28
- package/lib/dropdown/DropdownMenu.js +29 -29
- package/lib/dropdown/index.js +39 -38
- package/lib/dropdown/index.js.map +1 -1
- package/lib/dropdown/type.js +1 -1
- package/lib/form/Form.js +78 -267
- package/lib/form/Form.js.map +1 -1
- package/lib/form/FormContext.js +1 -1
- package/lib/form/FormItem.d.ts +1 -0
- package/lib/form/FormItem.js +86 -113
- package/lib/form/FormItem.js.map +1 -1
- package/lib/form/formModel.js +25 -25
- package/lib/form/hooks/useInstance.d.ts +12 -0
- package/lib/form/hooks/useInstance.js +264 -0
- package/lib/form/hooks/useInstance.js.map +1 -0
- package/lib/form/index.js +46 -44
- package/lib/form/index.js.map +1 -1
- package/lib/form/type.d.ts +9 -6
- package/lib/form/type.js +1 -1
- package/lib/grid/Col.js +20 -20
- package/lib/grid/Row.js +38 -33
- package/lib/grid/Row.js.map +1 -1
- package/lib/grid/index.js +23 -23
- package/lib/grid/type.js +1 -1
- package/lib/index-lib.js +58 -55
- package/lib/index-lib.js.map +1 -1
- package/lib/index.js +58 -55
- package/lib/index.js.map +1 -1
- package/lib/input/Input.js +37 -31
- package/lib/input/Input.js.map +1 -1
- package/lib/input/InputGroup.js +20 -20
- package/lib/input/index.js +27 -27
- package/lib/input/type.d.ts +11 -6
- 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/gradient.js +22 -22
- package/lib/loading/index.js +23 -23
- package/lib/loading/loading.js +23 -23
- package/lib/loading/plugin.js +23 -23
- package/lib/loading/type.js +1 -1
- package/lib/locale/LocalReceiver.js +19 -19
- package/lib/locale/en_US.js +1 -1
- package/lib/locale/zh_CN.js +1 -1
- package/lib/menu/HeadMenu.js +23 -23
- package/lib/menu/Menu.js +23 -23
- package/lib/menu/MenuContext.js +1 -1
- package/lib/menu/MenuGroup.js +19 -19
- package/lib/menu/MenuItem.js +20 -20
- package/lib/menu/SubMenu.js +22 -22
- package/lib/menu/_util/cacularPaddingLeft.js +1 -1
- package/lib/menu/_util/checkMenuType.js +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 +1 -1
- package/lib/menu/_util/type.js +1 -1
- package/lib/menu/hooks/useMenuContext.js +5 -5
- package/lib/menu/index.js +23 -23
- 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 +40 -39
- package/lib/pagination/Pagination.js.map +1 -1
- package/lib/pagination/index.js +40 -39
- package/lib/pagination/index.js.map +1 -1
- package/lib/pagination/type.js +1 -1
- package/lib/pagination/validators.js +1 -1
- package/lib/popconfirm/PopConfirm.js +27 -26
- package/lib/popconfirm/PopConfirm.js.map +1 -1
- package/lib/popconfirm/PopContent.js +23 -23
- package/lib/popconfirm/index.js +27 -26
- package/lib/popconfirm/index.js.map +1 -1
- package/lib/popconfirm/type.js +1 -1
- package/lib/popup/Popup.js +32 -29
- package/lib/popup/Popup.js.map +1 -1
- package/lib/popup/hooks/useTriggerProps.js +1 -1
- package/lib/popup/index.js +26 -25
- package/lib/popup/index.js.map +1 -1
- 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 +34 -31
- package/lib/select/base/PopupContent.js.map +1 -1
- package/lib/select/base/Select.js +88 -85
- package/lib/select/base/Select.js.map +1 -1
- package/lib/select/index.js +40 -39
- package/lib/select/index.js.map +1 -1
- package/lib/select/type.js +1 -1
- package/lib/select/util/helper.js +27 -27
- package/lib/select-input/SelectInput.js +41 -38
- package/lib/select-input/SelectInput.js.map +1 -1
- package/lib/select-input/index.js +38 -37
- package/lib/select-input/index.js.map +1 -1
- package/lib/select-input/type.d.ts +2 -2
- package/lib/select-input/type.js +1 -1
- package/lib/select-input/useMultiple.js +32 -33
- package/lib/select-input/useMultiple.js.map +1 -1
- package/lib/select-input/useOverlayStyle.js +12 -10
- package/lib/select-input/useOverlayStyle.js.map +1 -1
- package/lib/select-input/useSingle.js +58 -51
- package/lib/select-input/useSingle.js.map +1 -1
- 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 +39 -33
- package/lib/slider/Slider.js.map +1 -1
- package/lib/slider/SliderHandleButton.d.ts +1 -0
- package/lib/slider/SliderHandleButton.js +35 -32
- package/lib/slider/SliderHandleButton.js.map +1 -1
- package/lib/slider/index.js +31 -30
- package/lib/slider/index.js.map +1 -1
- package/lib/slider/type.d.ts +5 -3
- 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 +292 -78
- package/lib/swiper/Swiper.js.map +1 -1
- package/lib/swiper/SwiperItem.d.ts +8 -4
- package/lib/swiper/SwiperItem.js +116 -3
- package/lib/swiper/SwiperItem.js.map +1 -1
- package/lib/swiper/index.js +22 -21
- package/lib/swiper/index.js.map +1 -1
- package/lib/swiper/type.d.ts +62 -4
- 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 +40 -39
- package/lib/table/base/Table.js.map +1 -1
- package/lib/table/base/TableAsyncLoadingBody.js +25 -25
- package/lib/table/base/TableBody.js +33 -30
- package/lib/table/base/TableBody.js.map +1 -1
- package/lib/table/base/TableCell.js +26 -25
- package/lib/table/base/TableCell.js.map +1 -1
- 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 +28 -27
- package/lib/table/base/TableHeader.js.map +1 -1
- package/lib/table/base/TableLoadingBody.js +5 -5
- package/lib/table/base/TableRow.js +30 -29
- package/lib/table/base/TableRow.js.map +1 -1
- package/lib/table/enhanced/Table.js +42 -41
- package/lib/table/enhanced/Table.js.map +1 -1
- 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 +42 -41
- package/lib/table/index.js.map +1 -1
- package/lib/table/primary/SorterButton.js +27 -26
- package/lib/table/primary/SorterButton.js.map +1 -1
- package/lib/table/primary/Table.js +42 -41
- package/lib/table/primary/Table.js.map +1 -1
- 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 +34 -33
- package/lib/table/primary/useFilter.js.map +1 -1
- package/lib/table/primary/useFilterButton.js +34 -33
- package/lib/table/primary/useFilterButton.js.map +1 -1
- package/lib/table/primary/useSelect.js +33 -33
- package/lib/table/primary/useSorter.js +31 -30
- package/lib/table/primary/useSorter.js.map +1 -1
- package/lib/table/type.js +1 -1
- package/lib/table/util/getRowKeyFromRowKey.js +1 -1
- package/lib/table/util/index.js +1 -1
- package/lib/tabs/TabBar.js +21 -21
- package/lib/tabs/TabNav.js +22 -22
- package/lib/tabs/TabNavItem.js +20 -20
- package/lib/tabs/TabPanel.js +19 -19
- package/lib/tabs/Tabs.js +22 -22
- package/lib/tabs/index.js +22 -22
- 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 +32 -29
- package/lib/tag-input/TagInput.js.map +1 -1
- 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 +24 -24
- package/lib/tag-input/useTagList.js.map +1 -1
- 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 +37 -39
- package/lib/time-picker/TimePicker.js.map +1 -1
- package/lib/time-picker/TimeRangePicker.js +35 -34
- package/lib/time-picker/TimeRangePicker.js.map +1 -1
- package/lib/time-picker/consts.js +21 -21
- package/lib/time-picker/index.js +35 -34
- package/lib/time-picker/index.js.map +1 -1
- 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 +27 -26
- package/lib/tooltip/Tooltip.js.map +1 -1
- package/lib/tooltip/index.js +27 -26
- package/lib/tooltip/index.js.map +1 -1
- package/lib/tooltip/type.js +1 -1
- package/lib/transfer/Transfer.js +45 -44
- package/lib/transfer/Transfer.js.map +1 -1
- package/lib/transfer/TransferList.js +43 -42
- package/lib/transfer/TransferList.js.map +1 -1
- package/lib/transfer/index.js +45 -44
- package/lib/transfer/index.js.map +1 -1
- package/lib/transfer/type.js +1 -1
- package/lib/transfer/utils.js +16 -16
- package/lib/tree/Tree.js +45 -45
- package/lib/tree/Tree.js.map +1 -1
- 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.d.ts +5 -1
- package/lib/tree/type.js +1 -1
- package/lib/tree/useControllable.js +3 -3
- package/lib/tree/useStore.js +44 -41
- package/lib/tree/useStore.js.map +1 -1
- package/lib/tree/useTreeConfig.js +21 -21
- package/lib/tree-select/SelectArrow.d.ts +8 -0
- package/lib/tree-select/{TreeSelectArrow.js → SelectArrow.js} +22 -22
- package/lib/tree-select/SelectArrow.js.map +1 -0
- package/lib/tree-select/TreeSelect.js +131 -111
- package/lib/tree-select/TreeSelect.js.map +1 -1
- package/lib/tree-select/index.js +49 -48
- package/lib/tree-select/index.js.map +1 -1
- package/lib/tree-select/type.d.ts +62 -6
- package/lib/tree-select/type.js +1 -1
- package/lib/tree-select/useTreeSelectLocale.js +21 -21
- package/lib/tree-select/useTreeSelectPassthoughProps.js +20 -20
- package/lib/tree-select/useTreeSelectPassthoughProps.js.map +1 -1
- package/lib/tree-select/useTreeSelectUtils.d.ts +1 -1
- package/lib/tree-select/useTreeSelectUtils.js +36 -36
- package/lib/tree-select/useTreeSelectUtils.js.map +1 -1
- 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 +26 -26
- package/lib/upload/themes/single-file.js +25 -25
- package/lib/upload/tips.js +19 -19
- package/lib/upload/type.d.ts +20 -5
- 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 +44 -40
- package/lib/upload/upload.js.map +1 -1
- package/lib/upload/util.js +1 -1
- package/package.json +3 -3
- package/es/_chunks/dep-5099a517.js.map +0 -1
- package/es/_chunks/dep-8f09dacb.js +0 -8
- package/es/_chunks/dep-8f09dacb.js.map +0 -1
- package/es/_chunks/dep-a0129bdd.js.map +0 -1
- package/es/_chunks/dep-bcb29a45.js.map +0 -1
- package/es/tree-select/TreeSelectArrow.d.ts +0 -8
- package/es/tree-select/TreeSelectArrow.js +0 -53
- package/es/tree-select/TreeSelectArrow.js.map +0 -1
- package/esm/_chunks/dep-5099a517.js.map +0 -1
- package/esm/_chunks/dep-8f09dacb.js +0 -8
- package/esm/_chunks/dep-8f09dacb.js.map +0 -1
- package/esm/_chunks/dep-a0129bdd.js.map +0 -1
- package/esm/_chunks/dep-bcb29a45.js.map +0 -1
- package/esm/tree-select/TreeSelectArrow.d.ts +0 -8
- package/esm/tree-select/TreeSelectArrow.js +0 -53
- package/esm/tree-select/TreeSelectArrow.js.map +0 -1
- package/lib/_chunks/dep-99ad5d4d.js.map +0 -1
- package/lib/_chunks/dep-b9d184fe.js.map +0 -1
- package/lib/tree-select/TreeSelectArrow.d.ts +0 -8
- package/lib/tree-select/TreeSelectArrow.js.map +0 -1
package/dist/tdesign.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* tdesign v0.
|
|
2
|
+
* tdesign v0.29.0
|
|
3
3
|
* (c) 2022 tdesign
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
@@ -3020,7 +3020,7 @@
|
|
|
3020
3020
|
return React.useContext(ConfigContext$1).globalConfig;
|
|
3021
3021
|
});
|
|
3022
3022
|
|
|
3023
|
-
var _excluded$
|
|
3023
|
+
var _excluded$w = ["width", "className", "style", "children"];
|
|
3024
3024
|
|
|
3025
3025
|
function ownKeys$2b(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; }
|
|
3026
3026
|
|
|
@@ -3031,7 +3031,7 @@
|
|
|
3031
3031
|
className = props.className,
|
|
3032
3032
|
style = props.style,
|
|
3033
3033
|
children = props.children,
|
|
3034
|
-
otherAsideProps = _objectWithoutProperties$1(props, _excluded$
|
|
3034
|
+
otherAsideProps = _objectWithoutProperties$1(props, _excluded$w);
|
|
3035
3035
|
|
|
3036
3036
|
var _useConfig = useConfig$1(),
|
|
3037
3037
|
classPrefix = _useConfig.classPrefix;
|
|
@@ -3057,7 +3057,7 @@
|
|
|
3057
3057
|
};
|
|
3058
3058
|
Aside.displayName = "Aside";
|
|
3059
3059
|
|
|
3060
|
-
var _excluded$
|
|
3060
|
+
var _excluded$v = ["className", "style", "children"],
|
|
3061
3061
|
_excluded2$2 = ["className", "style", "children"],
|
|
3062
3062
|
_excluded3 = ["className", "style", "children"],
|
|
3063
3063
|
_excluded4 = ["direction", "className", "style", "children"];
|
|
@@ -3073,7 +3073,7 @@
|
|
|
3073
3073
|
var className = props.className,
|
|
3074
3074
|
style = props.style,
|
|
3075
3075
|
children = props.children,
|
|
3076
|
-
others = _objectWithoutProperties$1(props, _excluded$
|
|
3076
|
+
others = _objectWithoutProperties$1(props, _excluded$v);
|
|
3077
3077
|
|
|
3078
3078
|
var headerClassNames = classNames$1("".concat(classPrefix, "-layout__header"), className);
|
|
3079
3079
|
return /* @__PURE__ */React__default["default"].createElement("header", _objectSpread$2a({
|
|
@@ -3156,7 +3156,7 @@
|
|
|
3156
3156
|
|
|
3157
3157
|
var Layout = Layout$1;
|
|
3158
3158
|
|
|
3159
|
-
var _excluded$
|
|
3159
|
+
var _excluded$u = ["flex", "offset", "order", "pull", "push", "span", "tag", "className", "children", "style"];
|
|
3160
3160
|
|
|
3161
3161
|
function ownKeys$29(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; }
|
|
3162
3162
|
|
|
@@ -3220,7 +3220,7 @@
|
|
|
3220
3220
|
className = props.className,
|
|
3221
3221
|
children = props.children,
|
|
3222
3222
|
propStyle = props.style,
|
|
3223
|
-
otherColProps = _objectWithoutProperties$1(props, _excluded$
|
|
3223
|
+
otherColProps = _objectWithoutProperties$1(props, _excluded$u);
|
|
3224
3224
|
|
|
3225
3225
|
var rowGutter = otherColProps.gutter,
|
|
3226
3226
|
rowSize = otherColProps.size;
|
|
@@ -3524,28 +3524,38 @@
|
|
|
3524
3524
|
|
|
3525
3525
|
return document.body;
|
|
3526
3526
|
};
|
|
3527
|
+
var getCssVarsValue = function getCssVarsValue(name, element) {
|
|
3528
|
+
if (!canUseDocument) return;
|
|
3529
|
+
var el = element || document.documentElement;
|
|
3530
|
+
return getComputedStyle(el).getPropertyValue(name);
|
|
3531
|
+
};
|
|
3527
3532
|
|
|
3528
|
-
var _excluded$
|
|
3533
|
+
var _excluded$t = ["align", "gutter", "justify", "tag", "style", "className", "children"];
|
|
3529
3534
|
|
|
3530
3535
|
function ownKeys$28(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; }
|
|
3531
3536
|
|
|
3532
3537
|
function _objectSpread$28(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$28(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$28(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3533
3538
|
|
|
3534
3539
|
var calcSize = function calcSize(width) {
|
|
3540
|
+
var smWidth = getCssVarsValue("--td-screen-sm") || 768;
|
|
3541
|
+
var mdWidth = getCssVarsValue("--td-screen-md") || 992;
|
|
3542
|
+
var lgWidth = getCssVarsValue("--td-screen-lg") || 1200;
|
|
3543
|
+
var xlWidth = getCssVarsValue("--td-screen-xl") || 1400;
|
|
3544
|
+
var xxlWidth = getCssVarsValue("--td-screen-xxl") || 1880;
|
|
3535
3545
|
var size = "xs";
|
|
3536
3546
|
|
|
3537
|
-
if (width
|
|
3538
|
-
size = "
|
|
3539
|
-
} else if (width >=
|
|
3540
|
-
size = "sm";
|
|
3541
|
-
} else if (width >= 992 && width < 1200) {
|
|
3542
|
-
size = "md";
|
|
3543
|
-
} else if (width >= 1200 && width < 1400) {
|
|
3544
|
-
size = "lg";
|
|
3545
|
-
} else if (width >= 1400 && width < 1880) {
|
|
3547
|
+
if (width >= xxlWidth) {
|
|
3548
|
+
size = "xxl";
|
|
3549
|
+
} else if (width >= xlWidth) {
|
|
3546
3550
|
size = "xl";
|
|
3551
|
+
} else if (width >= lgWidth) {
|
|
3552
|
+
size = "lg";
|
|
3553
|
+
} else if (width >= mdWidth) {
|
|
3554
|
+
size = "md";
|
|
3555
|
+
} else if (width >= smWidth) {
|
|
3556
|
+
size = "sm";
|
|
3547
3557
|
} else {
|
|
3548
|
-
size = "
|
|
3558
|
+
size = "xs";
|
|
3549
3559
|
}
|
|
3550
3560
|
|
|
3551
3561
|
return size;
|
|
@@ -3619,7 +3629,7 @@
|
|
|
3619
3629
|
propStyle = props.style,
|
|
3620
3630
|
className = props.className,
|
|
3621
3631
|
children = props.children,
|
|
3622
|
-
otherRowProps = _objectWithoutProperties$1(props, _excluded$
|
|
3632
|
+
otherRowProps = _objectWithoutProperties$1(props, _excluded$t);
|
|
3623
3633
|
|
|
3624
3634
|
var _useState = React.useState(canUseDocument ? calcSize(window.innerWidth) : "md"),
|
|
3625
3635
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -3688,11 +3698,16 @@
|
|
|
3688
3698
|
var Portal = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
3689
3699
|
var attach = props.attach,
|
|
3690
3700
|
children = props.children;
|
|
3701
|
+
|
|
3702
|
+
var _useConfig = useConfig$1(),
|
|
3703
|
+
classPrefix = _useConfig.classPrefix;
|
|
3704
|
+
|
|
3691
3705
|
var container = React.useMemo(function () {
|
|
3692
3706
|
if (!canUseDocument) return null;
|
|
3693
3707
|
var el = document.createElement("div");
|
|
3708
|
+
el.className = "".concat(classPrefix, "-portal-wrapper");
|
|
3694
3709
|
return el;
|
|
3695
|
-
}, []);
|
|
3710
|
+
}, [classPrefix]);
|
|
3696
3711
|
React.useEffect(function () {
|
|
3697
3712
|
var parentElement = document.body;
|
|
3698
3713
|
var el = null;
|
|
@@ -9359,6 +9374,37 @@
|
|
|
9359
9374
|
}, [targetEl, options]);
|
|
9360
9375
|
}
|
|
9361
9376
|
|
|
9377
|
+
function useWindowSize() {
|
|
9378
|
+
var validWindow = (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object";
|
|
9379
|
+
var getSize = React.useCallback(function () {
|
|
9380
|
+
return {
|
|
9381
|
+
width: validWindow ? window.innerWidth : void 0,
|
|
9382
|
+
height: validWindow ? window.innerHeight : void 0
|
|
9383
|
+
};
|
|
9384
|
+
}, [validWindow]);
|
|
9385
|
+
|
|
9386
|
+
var _useState = React.useState(getSize()),
|
|
9387
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
9388
|
+
size = _useState2[0],
|
|
9389
|
+
setSize = _useState2[1];
|
|
9390
|
+
|
|
9391
|
+
React.useEffect(function () {
|
|
9392
|
+
function handleResize() {
|
|
9393
|
+
setSize(getSize());
|
|
9394
|
+
}
|
|
9395
|
+
|
|
9396
|
+
var debounceResize = debounce_1(handleResize, 400);
|
|
9397
|
+
|
|
9398
|
+
if (validWindow) {
|
|
9399
|
+
window.addEventListener("resize", debounceResize);
|
|
9400
|
+
return function () {
|
|
9401
|
+
window.removeEventListener("resize", debounceResize);
|
|
9402
|
+
};
|
|
9403
|
+
}
|
|
9404
|
+
}, [getSize, validWindow]);
|
|
9405
|
+
return size;
|
|
9406
|
+
}
|
|
9407
|
+
|
|
9362
9408
|
function ownKeys$24(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; }
|
|
9363
9409
|
|
|
9364
9410
|
function _objectSpread$24(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$24(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$24(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -9407,6 +9453,10 @@
|
|
|
9407
9453
|
visible = _useDefault2[0],
|
|
9408
9454
|
setVisible = _useDefault2[1];
|
|
9409
9455
|
|
|
9456
|
+
var _useWindowSize = useWindowSize(),
|
|
9457
|
+
windowHeight = _useWindowSize.height,
|
|
9458
|
+
windowWidth = _useWindowSize.width;
|
|
9459
|
+
|
|
9410
9460
|
var _useState = React.useState(null),
|
|
9411
9461
|
_useState2 = _slicedToArray(_useState, 2),
|
|
9412
9462
|
triggerRef = _useState2[0],
|
|
@@ -9491,10 +9541,8 @@
|
|
|
9491
9541
|
triggerProps = _useTriggerProps2[0],
|
|
9492
9542
|
popupProps = _useTriggerProps2[1];
|
|
9493
9543
|
|
|
9494
|
-
var disabledClassName = classNames$1(_defineProperty$2({}, "".concat(classPrefix, "-is-disabled"), disabled));
|
|
9495
9544
|
var triggerNode = /*#__PURE__*/React.cloneElement(triggerNodeTemp, _objectSpread$24({
|
|
9496
|
-
ref: composeRefs(triggerNodeTemp.ref, setTriggerRef)
|
|
9497
|
-
className: classNames$1(disabledClassName, triggerNodeTemp.props.className)
|
|
9545
|
+
ref: composeRefs(triggerNodeTemp.ref, setTriggerRef)
|
|
9498
9546
|
}, triggerProps));
|
|
9499
9547
|
|
|
9500
9548
|
var handleExited = function handleExited() {
|
|
@@ -9518,7 +9566,7 @@
|
|
|
9518
9566
|
var _popperRef$current$up2, _popperRef$current3;
|
|
9519
9567
|
|
|
9520
9568
|
(_popperRef$current$up2 = (_popperRef$current3 = popperRef.current).update) === null || _popperRef$current$up2 === void 0 ? void 0 : _popperRef$current$up2.call(_popperRef$current3);
|
|
9521
|
-
}, [content]);
|
|
9569
|
+
}, [content, visible, windowHeight, windowWidth]);
|
|
9522
9570
|
var portal = visible || overlayRef ? /* @__PURE__ */React__default["default"].createElement(CSSTransition$1, {
|
|
9523
9571
|
appear: true,
|
|
9524
9572
|
"in": visible,
|
|
@@ -9609,8 +9657,10 @@
|
|
|
9609
9657
|
|
|
9610
9658
|
var rippleContainer = React.useMemo(function () {
|
|
9611
9659
|
if (!canUseDocument) return null;
|
|
9612
|
-
|
|
9613
|
-
|
|
9660
|
+
var container = document.createElement("div");
|
|
9661
|
+
container.className = "".concat(classPrefix, "-ripple");
|
|
9662
|
+
return container;
|
|
9663
|
+
}, [classPrefix]);
|
|
9614
9664
|
var handleAddRipple = React.useCallback(function (e) {
|
|
9615
9665
|
var el = ref === null || ref === void 0 ? void 0 : ref.current;
|
|
9616
9666
|
var rippleColor = getRippleColor(el, fixedRippleColor);
|
|
@@ -9637,6 +9687,7 @@
|
|
|
9637
9687
|
}
|
|
9638
9688
|
|
|
9639
9689
|
var ripple = document.createElement("div");
|
|
9690
|
+
ripple.className = "".concat(classPrefix, "-ripple__inner");
|
|
9640
9691
|
setStyle(ripple, {
|
|
9641
9692
|
marginTop: "0",
|
|
9642
9693
|
marginLeft: "0",
|
|
@@ -9698,7 +9749,7 @@
|
|
|
9698
9749
|
}, [handleAddRipple, fixedRippleColor, ref]);
|
|
9699
9750
|
}
|
|
9700
9751
|
|
|
9701
|
-
var _excluded$
|
|
9752
|
+
var _excluded$s = ["type", "theme", "variant", "icon", "disabled", "loading", "size", "block", "ghost", "shape", "children", "content", "className", "onClick"];
|
|
9702
9753
|
|
|
9703
9754
|
function ownKeys$23(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; }
|
|
9704
9755
|
|
|
@@ -9724,7 +9775,7 @@
|
|
|
9724
9775
|
className = _ref.className,
|
|
9725
9776
|
_ref$onClick = _ref.onClick,
|
|
9726
9777
|
onClick = _ref$onClick === void 0 ? noop$1 : _ref$onClick,
|
|
9727
|
-
buttonProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
9778
|
+
buttonProps = _objectWithoutProperties$1(_ref, _excluded$s);
|
|
9728
9779
|
|
|
9729
9780
|
var _useConfig = useConfig$1(),
|
|
9730
9781
|
classPrefix = _useConfig.classPrefix;
|
|
@@ -9950,7 +10001,7 @@
|
|
|
9950
10001
|
};
|
|
9951
10002
|
}
|
|
9952
10003
|
|
|
9953
|
-
var _excluded$
|
|
10004
|
+
var _excluded$r = ["icon", "id", "className", "size", "style"];
|
|
9954
10005
|
|
|
9955
10006
|
function ownKeys$22(object, enumerableOnly) {
|
|
9956
10007
|
var keys = Object.keys(object);
|
|
@@ -9992,7 +10043,7 @@
|
|
|
9992
10043
|
className = props.className,
|
|
9993
10044
|
size = props.size,
|
|
9994
10045
|
style = props.style,
|
|
9995
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
10046
|
+
restProps = _objectWithoutProperties(props, _excluded$r);
|
|
9996
10047
|
|
|
9997
10048
|
var _useSizeProps = useSizeProps(size),
|
|
9998
10049
|
sizeClassName = _useSizeProps.className,
|
|
@@ -12838,7 +12889,7 @@
|
|
|
12838
12889
|
return typeof param === "number" ? "".concat(param, "px") : param;
|
|
12839
12890
|
}
|
|
12840
12891
|
|
|
12841
|
-
var _excluded$
|
|
12892
|
+
var _excluded$q = ["separate", "children", "className"];
|
|
12842
12893
|
|
|
12843
12894
|
function ownKeys$1u(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; }
|
|
12844
12895
|
|
|
@@ -12850,7 +12901,7 @@
|
|
|
12850
12901
|
var separate = props.separate,
|
|
12851
12902
|
children = props.children,
|
|
12852
12903
|
className = props.className,
|
|
12853
|
-
wrapperProps = _objectWithoutProperties$1(props, _excluded$
|
|
12904
|
+
wrapperProps = _objectWithoutProperties$1(props, _excluded$q);
|
|
12854
12905
|
|
|
12855
12906
|
return /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$1u({
|
|
12856
12907
|
ref: ref,
|
|
@@ -12859,7 +12910,7 @@
|
|
|
12859
12910
|
});
|
|
12860
12911
|
InputGroup.displayName = "InputGroup";
|
|
12861
12912
|
|
|
12862
|
-
var _excluded$
|
|
12913
|
+
var _excluded$p = ["defaultValue", "value", "onChange"];
|
|
12863
12914
|
|
|
12864
12915
|
function ownKeys$1t(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; }
|
|
12865
12916
|
|
|
@@ -12869,7 +12920,7 @@
|
|
|
12869
12920
|
value = props.value,
|
|
12870
12921
|
_props$onChange = props.onChange,
|
|
12871
12922
|
onChange = _props$onChange === void 0 ? noop$1 : _props$onChange,
|
|
12872
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
12923
|
+
restProps = _objectWithoutProperties$1(props, _excluded$p);
|
|
12873
12924
|
|
|
12874
12925
|
var _useDefault = useDefault(value, typeof defaultValue === "undefined" ? defaultDefaultValue : defaultValue, onChange),
|
|
12875
12926
|
_useDefault2 = _slicedToArray(_useDefault, 2),
|
|
@@ -12882,7 +12933,7 @@
|
|
|
12882
12933
|
}, restProps);
|
|
12883
12934
|
}
|
|
12884
12935
|
|
|
12885
|
-
var _excluded$
|
|
12936
|
+
var _excluded$o = ["type", "autoWidth", "placeholder", "disabled", "status", "size", "className", "inputClass", "style", "prefixIcon", "suffixIcon", "clearable", "value", "tips", "align", "maxlength", "maxcharacter", "format", "onClick", "onChange", "onClear", "onEnter", "onKeydown", "onKeyup", "onKeypress", "onFocus", "onBlur", "onPaste", "onMouseenter", "onMouseleave", "onWheel", "onCompositionstart", "onCompositionend", "showClearIconOnEmpty", "autofocus", "autocomplete", "readonly", "label", "suffix"];
|
|
12886
12937
|
|
|
12887
12938
|
function ownKeys$1s(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; }
|
|
12888
12939
|
|
|
@@ -12914,6 +12965,7 @@
|
|
|
12914
12965
|
status = _useDefaultValue.status,
|
|
12915
12966
|
size = _useDefaultValue.size,
|
|
12916
12967
|
className = _useDefaultValue.className,
|
|
12968
|
+
inputClass = _useDefaultValue.inputClass,
|
|
12917
12969
|
style = _useDefaultValue.style,
|
|
12918
12970
|
prefixIcon = _useDefaultValue.prefixIcon,
|
|
12919
12971
|
suffixIcon = _useDefaultValue.suffixIcon,
|
|
@@ -12945,7 +12997,7 @@
|
|
|
12945
12997
|
readonly = _useDefaultValue.readonly,
|
|
12946
12998
|
label = _useDefaultValue.label,
|
|
12947
12999
|
suffix = _useDefaultValue.suffix,
|
|
12948
|
-
restProps = _objectWithoutProperties$1(_useDefaultValue, _excluded$
|
|
13000
|
+
restProps = _objectWithoutProperties$1(_useDefaultValue, _excluded$o);
|
|
12949
13001
|
|
|
12950
13002
|
var _useConfig = useConfig$1(),
|
|
12951
13003
|
classPrefix = _useConfig.classPrefix;
|
|
@@ -12983,7 +13035,7 @@
|
|
|
12983
13035
|
onClick: handleClear
|
|
12984
13036
|
});
|
|
12985
13037
|
|
|
12986
|
-
if (type === "password") {
|
|
13038
|
+
if (type === "password" && typeof suffixIcon === "undefined") {
|
|
12987
13039
|
if (renderType === "password") {
|
|
12988
13040
|
suffixIconNew = /* @__PURE__ */React__default["default"].createElement(BrowseOffIcon, {
|
|
12989
13041
|
className: "".concat(classPrefix, "-input__suffix-clear"),
|
|
@@ -13004,6 +13056,9 @@
|
|
|
13004
13056
|
if (!autoWidth) return;
|
|
13005
13057
|
inputRef.current.style.width = "".concat(inputPreRef.current.offsetWidth, "px");
|
|
13006
13058
|
}, [autoWidth, value, placeholder]);
|
|
13059
|
+
React.useEffect(function () {
|
|
13060
|
+
setRenderType(type);
|
|
13061
|
+
}, [type]);
|
|
13007
13062
|
var renderInput = /* @__PURE__ */React__default["default"].createElement("input", {
|
|
13008
13063
|
ref: inputRef,
|
|
13009
13064
|
placeholder: placeholder,
|
|
@@ -13026,7 +13081,7 @@
|
|
|
13026
13081
|
onPaste: handlePaste
|
|
13027
13082
|
});
|
|
13028
13083
|
var renderInputNode = /* @__PURE__ */React__default["default"].createElement("div", {
|
|
13029
|
-
className: classNames$1(
|
|
13084
|
+
className: classNames$1(inputClass, "".concat(classPrefix, "-input"), (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-is-readonly"), readonly), _defineProperty$2(_classNames, "".concat(classPrefix, "-is-disabled"), disabled), _defineProperty$2(_classNames, "".concat(classPrefix, "-is-focused"), isFocused), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-s"), size === "small"), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-l"), size === "large"), _defineProperty$2(_classNames, "".concat(classPrefix, "-align-").concat(align), align), _defineProperty$2(_classNames, "".concat(classPrefix, "-is-").concat(status), status), _defineProperty$2(_classNames, "".concat(classPrefix, "-input--prefix"), prefixIcon || labelContent), _defineProperty$2(_classNames, "".concat(classPrefix, "-input--suffix"), suffixIconContent || suffixContent), _defineProperty$2(_classNames, "".concat(classPrefix, "-input--focused"), isFocused), _classNames)),
|
|
13030
13085
|
onMouseEnter: handleMouseEnter,
|
|
13031
13086
|
onMouseLeave: handleMouseLeave,
|
|
13032
13087
|
onWheel: handleWheel,
|
|
@@ -13123,6 +13178,7 @@
|
|
|
13123
13178
|
}
|
|
13124
13179
|
|
|
13125
13180
|
function handleFocus(e) {
|
|
13181
|
+
if (readonly) return;
|
|
13126
13182
|
var value2 = e.currentTarget.value;
|
|
13127
13183
|
onFocus === null || onFocus === void 0 ? void 0 : onFocus(value2, {
|
|
13128
13184
|
e: e
|
|
@@ -13131,6 +13187,7 @@
|
|
|
13131
13187
|
}
|
|
13132
13188
|
|
|
13133
13189
|
function handleBlur(e) {
|
|
13190
|
+
if (readonly) return;
|
|
13134
13191
|
var value2 = e.currentTarget.value;
|
|
13135
13192
|
format && onChange(format(value2), {
|
|
13136
13193
|
e: e
|
|
@@ -13194,7 +13251,7 @@
|
|
|
13194
13251
|
return /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$1s({
|
|
13195
13252
|
ref: wrapperRef,
|
|
13196
13253
|
style: style,
|
|
13197
|
-
className: classNames$1("".concat(classPrefix, "-input__wrap"), _defineProperty$2({}, "".concat(classPrefix, "-input--auto-width"), autoWidth))
|
|
13254
|
+
className: classNames$1(className, "".concat(classPrefix, "-input__wrap"), _defineProperty$2({}, "".concat(classPrefix, "-input--auto-width"), autoWidth))
|
|
13198
13255
|
}, restProps), renderInputNode, tips && /* @__PURE__ */React__default["default"].createElement("div", {
|
|
13199
13256
|
className: classNames$1("".concat(classPrefix, "-input__tips"), "".concat(classPrefix, "-input__tips--").concat(status || "normal"))
|
|
13200
13257
|
}, tips));
|
|
@@ -13205,7 +13262,7 @@
|
|
|
13205
13262
|
|
|
13206
13263
|
var Input = Input$1;
|
|
13207
13264
|
|
|
13208
|
-
var _excluded$
|
|
13265
|
+
var _excluded$n = ["prepend", "append", "children", "className"];
|
|
13209
13266
|
|
|
13210
13267
|
function ownKeys$1r(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; }
|
|
13211
13268
|
|
|
@@ -13239,7 +13296,7 @@
|
|
|
13239
13296
|
append = props.append,
|
|
13240
13297
|
children = props.children,
|
|
13241
13298
|
className = props.className,
|
|
13242
|
-
wrapperProps = _objectWithoutProperties$1(props, _excluded$
|
|
13299
|
+
wrapperProps = _objectWithoutProperties$1(props, _excluded$n);
|
|
13243
13300
|
|
|
13244
13301
|
return /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$1r({
|
|
13245
13302
|
ref: ref,
|
|
@@ -13353,7 +13410,7 @@
|
|
|
13353
13410
|
return [componentLocale, transformLocale];
|
|
13354
13411
|
}
|
|
13355
13412
|
|
|
13356
|
-
var _excluded$
|
|
13413
|
+
var _excluded$m = ["message", "title", "operation", "theme", "icon", "close", "maxLine", "onClose", "className"];
|
|
13357
13414
|
|
|
13358
13415
|
function ownKeys$1p(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; }
|
|
13359
13416
|
|
|
@@ -13370,7 +13427,7 @@
|
|
|
13370
13427
|
_props$onClose = props.onClose,
|
|
13371
13428
|
onClose = _props$onClose === void 0 ? noop$1 : _props$onClose,
|
|
13372
13429
|
className = props.className,
|
|
13373
|
-
alertProps = _objectWithoutProperties$1(props, _excluded$
|
|
13430
|
+
alertProps = _objectWithoutProperties$1(props, _excluded$m);
|
|
13374
13431
|
|
|
13375
13432
|
var _React$useState = React__default["default"].useState(false),
|
|
13376
13433
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -13473,7 +13530,7 @@
|
|
|
13473
13530
|
|
|
13474
13531
|
var Alert = Alert$1;
|
|
13475
13532
|
|
|
13476
|
-
var _excluded$
|
|
13533
|
+
var _excluded$l = ["color", "dot", "maxCount", "count", "size", "shape", "showZero", "offset", "className", "content", "children", "style"];
|
|
13477
13534
|
|
|
13478
13535
|
function ownKeys$1o(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; }
|
|
13479
13536
|
|
|
@@ -13502,7 +13559,7 @@
|
|
|
13502
13559
|
children = _ref$children === void 0 ? null : _ref$children,
|
|
13503
13560
|
_ref$style = _ref.style,
|
|
13504
13561
|
style = _ref$style === void 0 ? {} : _ref$style,
|
|
13505
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
13562
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$l);
|
|
13506
13563
|
|
|
13507
13564
|
var _useConfig = useConfig$1(),
|
|
13508
13565
|
classPrefix = _useConfig.classPrefix;
|
|
@@ -13556,7 +13613,7 @@
|
|
|
13556
13613
|
|
|
13557
13614
|
var Badge = Badge$1;
|
|
13558
13615
|
|
|
13559
|
-
var _excluded$
|
|
13616
|
+
var _excluded$k = ["allowUncheck", "type", "checked", "defaultChecked", "disabled", "name", "value", "onChange", "indeterminate", "children", "label", "className", "style"];
|
|
13560
13617
|
|
|
13561
13618
|
function ownKeys$1n(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; }
|
|
13562
13619
|
|
|
@@ -13583,7 +13640,7 @@
|
|
|
13583
13640
|
label = props.label,
|
|
13584
13641
|
className = props.className,
|
|
13585
13642
|
style = props.style,
|
|
13586
|
-
htmlProps = _objectWithoutProperties$1(props, _excluded$
|
|
13643
|
+
htmlProps = _objectWithoutProperties$1(props, _excluded$k);
|
|
13587
13644
|
|
|
13588
13645
|
var _useConfig = useConfig$1(),
|
|
13589
13646
|
classPrefix = _useConfig.classPrefix;
|
|
@@ -13735,7 +13792,9 @@
|
|
|
13735
13792
|
var calcBarStyle = function calcBarStyle() {
|
|
13736
13793
|
if (!variant.includes("filled")) return;
|
|
13737
13794
|
var checkedRadio = groupRef.current.querySelector(checkedRadioCls);
|
|
13738
|
-
if (!checkedRadio) return
|
|
13795
|
+
if (!checkedRadio) return setBarStyle({
|
|
13796
|
+
width: 0
|
|
13797
|
+
});
|
|
13739
13798
|
var offsetWidth = checkedRadio.offsetWidth,
|
|
13740
13799
|
offsetLeft = checkedRadio.offsetLeft;
|
|
13741
13800
|
setBarStyle({
|
|
@@ -13746,7 +13805,7 @@
|
|
|
13746
13805
|
|
|
13747
13806
|
React.useEffect(function () {
|
|
13748
13807
|
calcBarStyle();
|
|
13749
|
-
}, [groupRef.current]);
|
|
13808
|
+
}, [groupRef.current, internalValue]);
|
|
13750
13809
|
useMutationObservable(groupRef.current, calcBarStyle);
|
|
13751
13810
|
|
|
13752
13811
|
var renderBlock = function renderBlock() {
|
|
@@ -13981,7 +14040,7 @@
|
|
|
13981
14040
|
{
|
|
13982
14041
|
var vs = v;
|
|
13983
14042
|
return /* @__PURE__ */React__default["default"].createElement(Checkbox$1, {
|
|
13984
|
-
key:
|
|
14043
|
+
key: index,
|
|
13985
14044
|
label: vs,
|
|
13986
14045
|
value: vs
|
|
13987
14046
|
}, v);
|
|
@@ -13991,7 +14050,7 @@
|
|
|
13991
14050
|
{
|
|
13992
14051
|
var _vs = v;
|
|
13993
14052
|
return /* @__PURE__ */React__default["default"].createElement(Checkbox$1, {
|
|
13994
|
-
key:
|
|
14053
|
+
key: index,
|
|
13995
14054
|
label: _vs,
|
|
13996
14055
|
value: _vs
|
|
13997
14056
|
}, v);
|
|
@@ -14004,7 +14063,7 @@
|
|
|
14004
14063
|
key: "checkAll_".concat(index),
|
|
14005
14064
|
indeterminate: indeterminate
|
|
14006
14065
|
})) : /* @__PURE__ */React__default["default"].createElement(Checkbox$1, _objectSpread$1k(_objectSpread$1k({}, v), {}, {
|
|
14007
|
-
key:
|
|
14066
|
+
key: index,
|
|
14008
14067
|
disabled: _vs2.disabled || disabled
|
|
14009
14068
|
}));
|
|
14010
14069
|
}
|
|
@@ -14167,7 +14226,7 @@
|
|
|
14167
14226
|
return Number(filterVal);
|
|
14168
14227
|
};
|
|
14169
14228
|
|
|
14170
|
-
var _excluded$
|
|
14229
|
+
var _excluded$j = ["align", "className", "style", "defaultValue", "value", "disabled", "size", "theme", "step", "max", "min", "decimalPlaces", "format", "onChange", "onBlur", "onFocus", "onEnter", "onKeydown", "onKeyup", "onKeypress"],
|
|
14171
14230
|
_excluded2$1 = ["value"];
|
|
14172
14231
|
|
|
14173
14232
|
function ownKeys$1i(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; }
|
|
@@ -14202,7 +14261,7 @@
|
|
|
14202
14261
|
onKeydown = props.onKeydown,
|
|
14203
14262
|
onKeyup = props.onKeyup,
|
|
14204
14263
|
onKeypress = props.onKeypress,
|
|
14205
|
-
restInputProps = _objectWithoutProperties$1(props, _excluded$
|
|
14264
|
+
restInputProps = _objectWithoutProperties$1(props, _excluded$j);
|
|
14206
14265
|
|
|
14207
14266
|
var _useConfig = useConfig$1(),
|
|
14208
14267
|
classPrefix = _useConfig.classPrefix;
|
|
@@ -15904,6 +15963,8 @@
|
|
|
15904
15963
|
}
|
|
15905
15964
|
|
|
15906
15965
|
function useSingle(props) {
|
|
15966
|
+
var _props$defaultInputVa;
|
|
15967
|
+
|
|
15907
15968
|
var value = props.value,
|
|
15908
15969
|
keys = props.keys,
|
|
15909
15970
|
loading = props.loading,
|
|
@@ -15914,10 +15975,10 @@
|
|
|
15914
15975
|
|
|
15915
15976
|
var inputRef = React.useRef();
|
|
15916
15977
|
|
|
15917
|
-
var
|
|
15918
|
-
|
|
15919
|
-
inputValue =
|
|
15920
|
-
setInputValue =
|
|
15978
|
+
var _useDefault = useDefault(props.inputValue, (_props$defaultInputVa = props.defaultInputValue) !== null && _props$defaultInputVa !== void 0 ? _props$defaultInputVa : "", props.onInputChange),
|
|
15979
|
+
_useDefault2 = _slicedToArray(_useDefault, 2),
|
|
15980
|
+
inputValue = _useDefault2[0],
|
|
15981
|
+
setInputValue = _useDefault2[1];
|
|
15921
15982
|
|
|
15922
15983
|
var showLoading = React.useMemo(function () {
|
|
15923
15984
|
return !disabled && loading;
|
|
@@ -15935,34 +15996,30 @@
|
|
|
15935
15996
|
|
|
15936
15997
|
context === null || context === void 0 ? void 0 : (_context$e = context.e) === null || _context$e === void 0 ? void 0 : _context$e.stopPropagation();
|
|
15937
15998
|
(_props$onClear = props.onClear) === null || _props$onClear === void 0 ? void 0 : _props$onClear.call(props, context);
|
|
15938
|
-
setInputValue(""
|
|
15999
|
+
setInputValue("", {
|
|
16000
|
+
trigger: "clear"
|
|
16001
|
+
});
|
|
15939
16002
|
};
|
|
15940
16003
|
|
|
15941
16004
|
var onInnerInputChange = function onInnerInputChange(value2, context) {
|
|
15942
16005
|
if (props.allowInput) {
|
|
15943
|
-
|
|
15944
|
-
|
|
15945
|
-
setInputValue(value2);
|
|
15946
|
-
(_props$onInputChange = props.onInputChange) === null || _props$onInputChange === void 0 ? void 0 : _props$onInputChange.call(props, value2, _objectSpread$1d(_objectSpread$1d({}, context), {}, {
|
|
16006
|
+
setInputValue(value2, _objectSpread$1d(_objectSpread$1d({}, context), {}, {
|
|
15947
16007
|
trigger: "input"
|
|
15948
16008
|
}));
|
|
15949
16009
|
}
|
|
15950
16010
|
};
|
|
15951
16011
|
|
|
15952
|
-
React.useEffect(function () {
|
|
15953
|
-
setInputValue(getInputValue(value, keys));
|
|
15954
|
-
}, [keys, value]);
|
|
15955
|
-
|
|
15956
16012
|
var renderSelectSingle = function renderSelectSingle(popupVisible) {
|
|
15957
16013
|
var _props$inputProps;
|
|
15958
16014
|
|
|
15959
16015
|
var singleValueDisplay = !props.multiple ? props.valueDisplay : null;
|
|
16016
|
+
var displayedValue = popupVisible && props.allowInput ? inputValue : getInputValue(value, keys);
|
|
15960
16017
|
return /* @__PURE__ */React__default["default"].createElement(Input, _objectSpread$1d(_objectSpread$1d(_objectSpread$1d({
|
|
15961
16018
|
ref: inputRef
|
|
15962
16019
|
}, commonInputProps), {}, {
|
|
15963
16020
|
autoWidth: props.borderless || props.autoWidth,
|
|
15964
16021
|
placeholder: singleValueDisplay ? "" : props.placeholder,
|
|
15965
|
-
value: singleValueDisplay ? void 0 :
|
|
16022
|
+
value: singleValueDisplay ? void 0 : displayedValue,
|
|
15966
16023
|
label: /* @__PURE__ */React__default["default"].createElement(React__default["default"].Fragment, null, props.label, singleValueDisplay),
|
|
15967
16024
|
onChange: onInnerInputChange,
|
|
15968
16025
|
readonly: !props.allowInput,
|
|
@@ -15973,7 +16030,6 @@
|
|
|
15973
16030
|
(_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 ? void 0 : _props$onBlur.call(props, value, _objectSpread$1d(_objectSpread$1d({}, context), {}, {
|
|
15974
16031
|
inputValue: val
|
|
15975
16032
|
}));
|
|
15976
|
-
setInputValue(getInputValue(value, keys));
|
|
15977
16033
|
},
|
|
15978
16034
|
onFocus: function onFocus(val, context) {
|
|
15979
16035
|
var _props$onFocus;
|
|
@@ -15981,9 +16037,19 @@
|
|
|
15981
16037
|
(_props$onFocus = props.onFocus) === null || _props$onFocus === void 0 ? void 0 : _props$onFocus.call(props, value, _objectSpread$1d(_objectSpread$1d({}, context), {}, {
|
|
15982
16038
|
inputValue: val
|
|
15983
16039
|
}));
|
|
16040
|
+
!popupVisible && setInputValue(getInputValue(value, keys), _objectSpread$1d(_objectSpread$1d({}, context), {}, {
|
|
16041
|
+
trigger: "input"
|
|
16042
|
+
}));
|
|
16043
|
+
},
|
|
16044
|
+
onEnter: function onEnter(val, context) {
|
|
16045
|
+
var _props$onEnter;
|
|
16046
|
+
|
|
16047
|
+
(_props$onEnter = props.onEnter) === null || _props$onEnter === void 0 ? void 0 : _props$onEnter.call(props, value, _objectSpread$1d(_objectSpread$1d({}, context), {}, {
|
|
16048
|
+
inputValue: val
|
|
16049
|
+
}));
|
|
15984
16050
|
}
|
|
15985
16051
|
}, props.inputProps), {}, {
|
|
15986
|
-
|
|
16052
|
+
inputClass: classNames$1((_props$inputProps = props.inputProps) === null || _props$inputProps === void 0 ? void 0 : _props$inputProps.className, _defineProperty$2({}, "".concat(classPrefix, "-input--focused"), popupVisible))
|
|
15987
16053
|
}));
|
|
15988
16054
|
};
|
|
15989
16055
|
|
|
@@ -25698,7 +25764,7 @@
|
|
|
25698
25764
|
freeExports._=_;}else {// Export to the global object.
|
|
25699
25765
|
root._=_;}}).call(commonjsGlobal);})(lodash,lodash.exports);
|
|
25700
25766
|
|
|
25701
|
-
var _excluded$
|
|
25767
|
+
var _excluded$i = ["checked", "content", "defaultChecked", "onChange", "onClick", "disabled", "children", "className", "size"];
|
|
25702
25768
|
|
|
25703
25769
|
function ownKeys$1c(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; }
|
|
25704
25770
|
|
|
@@ -25717,7 +25783,7 @@
|
|
|
25717
25783
|
className = props.className,
|
|
25718
25784
|
_props$size = props.size,
|
|
25719
25785
|
size = _props$size === void 0 ? "medium" : _props$size,
|
|
25720
|
-
tagOtherProps = _objectWithoutProperties$1(props, _excluded$
|
|
25786
|
+
tagOtherProps = _objectWithoutProperties$1(props, _excluded$i);
|
|
25721
25787
|
|
|
25722
25788
|
var _useDefault = useDefault(checked, defaultChecked, onChange),
|
|
25723
25789
|
_useDefault2 = _slicedToArray(_useDefault, 2),
|
|
@@ -25752,7 +25818,7 @@
|
|
|
25752
25818
|
});
|
|
25753
25819
|
CheckTag.displayName = "CheckTag";
|
|
25754
25820
|
|
|
25755
|
-
var _excluded$
|
|
25821
|
+
var _excluded$h = ["theme", "size", "shape", "variant", "closable", "maxWidth", "icon", "content", "onClick", "onClose", "className", "style", "disabled", "children"];
|
|
25756
25822
|
|
|
25757
25823
|
function ownKeys$1b(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; }
|
|
25758
25824
|
|
|
@@ -25781,7 +25847,7 @@
|
|
|
25781
25847
|
style = _props$style === void 0 ? {} : _props$style,
|
|
25782
25848
|
disabled = props.disabled,
|
|
25783
25849
|
children = props.children,
|
|
25784
|
-
otherTagProps = _objectWithoutProperties$1(props, _excluded$
|
|
25850
|
+
otherTagProps = _objectWithoutProperties$1(props, _excluded$h);
|
|
25785
25851
|
|
|
25786
25852
|
var _useConfig = useConfig$1(),
|
|
25787
25853
|
classPrefix = _useConfig.classPrefix;
|
|
@@ -25931,7 +25997,7 @@
|
|
|
25931
25997
|
value: item
|
|
25932
25998
|
}) : tag;
|
|
25933
25999
|
return /* @__PURE__ */React__default["default"].createElement(Tag, _objectSpread$1a(_objectSpread$1a({
|
|
25934
|
-
key:
|
|
26000
|
+
key: index,
|
|
25935
26001
|
size: size,
|
|
25936
26002
|
disabled: disabled,
|
|
25937
26003
|
onClose: function onClose(context) {
|
|
@@ -26012,6 +26078,8 @@
|
|
|
26012
26078
|
|
|
26013
26079
|
function _objectSpread$19(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$19(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$19(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
26014
26080
|
var TagInput$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
26081
|
+
var _ref;
|
|
26082
|
+
|
|
26015
26083
|
var _useConfig = useConfig$1(),
|
|
26016
26084
|
prefix = _useConfig.classPrefix;
|
|
26017
26085
|
|
|
@@ -26072,9 +26140,9 @@
|
|
|
26072
26140
|
renderLabel = _useTagList.renderLabel;
|
|
26073
26141
|
|
|
26074
26142
|
var NAME_CLASS = "".concat(prefix, "-tag-input");
|
|
26143
|
+
var WITH_SUFFIX_ICON_CLASS = "".concat(prefix, "-tag-input__with-suffix-icon");
|
|
26075
26144
|
var CLEAR_CLASS = "".concat(prefix, "-tag-input__suffix-clear");
|
|
26076
26145
|
var BREAK_LINE_CLASS = "".concat(prefix, "-tag-input--break-line");
|
|
26077
|
-
var classes = [NAME_CLASS, _defineProperty$2({}, BREAK_LINE_CLASS, excessTagsDisplayType === "break-line"), props.className];
|
|
26078
26146
|
var tagInputPlaceholder = !(tagValue !== null && tagValue !== void 0 && tagValue.length) ? placeholder : "";
|
|
26079
26147
|
var showClearIcon = Boolean(!readonly && !disabled && clearable && isHover && (tagValue === null || tagValue === void 0 ? void 0 : tagValue.length));
|
|
26080
26148
|
React.useImperativeHandle(ref, function () {
|
|
@@ -26118,6 +26186,7 @@
|
|
|
26118
26186
|
});
|
|
26119
26187
|
}
|
|
26120
26188
|
}) : valueDisplay;
|
|
26189
|
+
var classes = [NAME_CLASS, (_ref = {}, _defineProperty$2(_ref, BREAK_LINE_CLASS, excessTagsDisplayType === "break-line"), _defineProperty$2(_ref, WITH_SUFFIX_ICON_CLASS, !!suffixIconNode), _ref), props.className];
|
|
26121
26190
|
return /* @__PURE__ */React__default["default"].createElement(Input, _objectSpread$19(_objectSpread$19({
|
|
26122
26191
|
ref: tagInputRef
|
|
26123
26192
|
}, inputProps), {}, {
|
|
@@ -26229,7 +26298,7 @@
|
|
|
26229
26298
|
return /* @__PURE__ */React__default["default"].createElement(TagInput, _objectSpread$18(_objectSpread$18(_objectSpread$18({
|
|
26230
26299
|
ref: tagInputRef
|
|
26231
26300
|
}, p.commonInputProps), {}, {
|
|
26232
|
-
readonly: !props.allowInput,
|
|
26301
|
+
readonly: !props.allowInput || props.readonly,
|
|
26233
26302
|
autoWidth: props.borderless || props.autoWidth,
|
|
26234
26303
|
minCollapsedNum: props.minCollapsedNum,
|
|
26235
26304
|
collapsedItems: props.collapsedItems,
|
|
@@ -26254,9 +26323,6 @@
|
|
|
26254
26323
|
(_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 ? void 0 : _props$onBlur.call(props, props.value, _objectSpread$18(_objectSpread$18({}, context), {}, {
|
|
26255
26324
|
tagInputValue: val
|
|
26256
26325
|
}));
|
|
26257
|
-
setTInputValue("", _objectSpread$18(_objectSpread$18({}, context), {}, {
|
|
26258
|
-
trigger: "blur"
|
|
26259
|
-
}));
|
|
26260
26326
|
},
|
|
26261
26327
|
onFocus: function onFocus(val, context) {
|
|
26262
26328
|
var _props$onFocus;
|
|
@@ -26266,7 +26332,9 @@
|
|
|
26266
26332
|
}));
|
|
26267
26333
|
}
|
|
26268
26334
|
}, props.tagInputProps), {}, {
|
|
26269
|
-
|
|
26335
|
+
inputProps: {
|
|
26336
|
+
inputClass: classNames$1((_props$tagInputProps = props.tagInputProps) === null || _props$tagInputProps === void 0 ? void 0 : _props$tagInputProps.className, _defineProperty$2({}, "".concat(classPrefix, "-input--focused"), p.popupVisible))
|
|
26337
|
+
}
|
|
26270
26338
|
}));
|
|
26271
26339
|
};
|
|
26272
26340
|
|
|
@@ -26284,7 +26352,8 @@
|
|
|
26284
26352
|
var MAX_POPUP_WIDTH = 1e3;
|
|
26285
26353
|
function useOverlayStyle(props) {
|
|
26286
26354
|
var popupProps = props.popupProps,
|
|
26287
|
-
borderless = props.borderless
|
|
26355
|
+
borderless = props.borderless,
|
|
26356
|
+
autoWidth = props.autoWidth;
|
|
26288
26357
|
|
|
26289
26358
|
var _useState = React.useState(false),
|
|
26290
26359
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -26309,6 +26378,7 @@
|
|
|
26309
26378
|
var onInnerPopupVisibleChange = function onInnerPopupVisibleChange(visible, context) {
|
|
26310
26379
|
var _props$onPopupVisible;
|
|
26311
26380
|
|
|
26381
|
+
if (props.readonly) return;
|
|
26312
26382
|
var newVisible = context.trigger === "trigger-element-click" ? true : visible;
|
|
26313
26383
|
setInnerPopupVisible(newVisible);
|
|
26314
26384
|
(_props$onPopupVisible = props.onPopupVisibleChange) === null || _props$onPopupVisible === void 0 ? void 0 : _props$onPopupVisible.call(props, newVisible, context);
|
|
@@ -26320,7 +26390,7 @@
|
|
|
26320
26390
|
|
|
26321
26391
|
if (isFunction_1(overlayStyle) || isObject_1(overlayStyle) && overlayStyle.width) {
|
|
26322
26392
|
result = overlayStyle;
|
|
26323
|
-
} else if (!borderless) {
|
|
26393
|
+
} else if (!borderless && !autoWidth) {
|
|
26324
26394
|
result = macthWidthFunc;
|
|
26325
26395
|
}
|
|
26326
26396
|
|
|
@@ -26349,7 +26419,8 @@
|
|
|
26349
26419
|
value = props.value,
|
|
26350
26420
|
popupVisible = props.popupVisible,
|
|
26351
26421
|
popupProps = props.popupProps,
|
|
26352
|
-
borderless = props.borderless
|
|
26422
|
+
borderless = props.borderless,
|
|
26423
|
+
disabled = props.disabled;
|
|
26353
26424
|
|
|
26354
26425
|
var _useOverlayStyle = useOverlayStyle(props),
|
|
26355
26426
|
tOverlayStyle = _useOverlayStyle.tOverlayStyle,
|
|
@@ -26383,6 +26454,7 @@
|
|
|
26383
26454
|
hideEmptyPopup: true,
|
|
26384
26455
|
onVisibleChange: onInnerPopupVisibleChange
|
|
26385
26456
|
}, visibleProps), popupProps), {}, {
|
|
26457
|
+
disabled: disabled,
|
|
26386
26458
|
overlayStyle: tOverlayStyle
|
|
26387
26459
|
}), multiple ? renderSelectMultiple({
|
|
26388
26460
|
commonInputProps: commonInputProps,
|
|
@@ -26401,13 +26473,15 @@
|
|
|
26401
26473
|
|
|
26402
26474
|
var SelectInput = SelectInput$1;
|
|
26403
26475
|
|
|
26404
|
-
var _excluded$
|
|
26476
|
+
var _excluded$g = ["value", "label", "disabled"];
|
|
26405
26477
|
|
|
26406
26478
|
function ownKeys$15(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; }
|
|
26407
26479
|
|
|
26408
26480
|
function _objectSpread$15(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$15(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$15(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
26409
26481
|
|
|
26410
26482
|
var PopupContent = function PopupContent(props) {
|
|
26483
|
+
var _classNames;
|
|
26484
|
+
|
|
26411
26485
|
var onChange = props.onChange,
|
|
26412
26486
|
value = props.value,
|
|
26413
26487
|
size = props.size,
|
|
@@ -26503,7 +26577,7 @@
|
|
|
26503
26577
|
var optionValue = _ref2.value,
|
|
26504
26578
|
label = _ref2.label,
|
|
26505
26579
|
disabled = _ref2.disabled,
|
|
26506
|
-
restData = _objectWithoutProperties$1(_ref2, _excluded$
|
|
26580
|
+
restData = _objectWithoutProperties$1(_ref2, _excluded$g);
|
|
26507
26581
|
|
|
26508
26582
|
return /* @__PURE__ */React__default["default"].createElement(Option$1, {
|
|
26509
26583
|
key: index,
|
|
@@ -26528,7 +26602,7 @@
|
|
|
26528
26602
|
|
|
26529
26603
|
var isEmpty = Array.isArray(childrenWithProps) && !childrenWithProps.length || options && options.length === 0;
|
|
26530
26604
|
return /* @__PURE__ */React__default["default"].createElement("div", {
|
|
26531
|
-
className: "".concat(classPrefix, "-select__dropdown-inner")
|
|
26605
|
+
className: classNames$1("".concat(classPrefix, "-select__dropdown-inner"), (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-select__dropdown-inner--size-s"), size === "small"), _defineProperty$2(_classNames, "".concat(classPrefix, "-select__dropdown-inner--size-l"), size === "large"), _defineProperty$2(_classNames, "".concat(classPrefix, "-select__dropdown-inner--size-m"), size === "medium"), _classNames))
|
|
26532
26606
|
}, panelTopContent, isEmpty && /* @__PURE__ */React__default["default"].createElement("div", {
|
|
26533
26607
|
className: "".concat(classPrefix, "-select__empty")
|
|
26534
26608
|
}, empty ? empty : /* @__PURE__ */React__default["default"].createElement("p", null, emptyText)), !isEmpty && loading && /* @__PURE__ */React__default["default"].createElement("div", {
|
|
@@ -26536,6 +26610,8 @@
|
|
|
26536
26610
|
}, loadingText), !isEmpty && !loading && renderOptions(), panelBottomContent);
|
|
26537
26611
|
};
|
|
26538
26612
|
|
|
26613
|
+
var _excluded$f = ["overlayClassName"];
|
|
26614
|
+
|
|
26539
26615
|
function ownKeys$14(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; }
|
|
26540
26616
|
|
|
26541
26617
|
function _objectSpread$14(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$14(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$14(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -26593,8 +26669,6 @@
|
|
|
26593
26669
|
onVisibleChange = props.onVisibleChange,
|
|
26594
26670
|
_props$showArrow = props.showArrow,
|
|
26595
26671
|
showArrow = _props$showArrow === void 0 ? true : _props$showArrow,
|
|
26596
|
-
inputValue = props.inputValue,
|
|
26597
|
-
defaultInputValue = props.defaultInputValue,
|
|
26598
26672
|
inputProps = props.inputProps,
|
|
26599
26673
|
panelBottomContent = props.panelBottomContent,
|
|
26600
26674
|
panelTopContent = props.panelTopContent,
|
|
@@ -26610,6 +26684,10 @@
|
|
|
26610
26684
|
var _useConfig = useConfig$1(),
|
|
26611
26685
|
classPrefix = _useConfig.classPrefix;
|
|
26612
26686
|
|
|
26687
|
+
var _ref = popupProps || {},
|
|
26688
|
+
overlayClassName = _ref.overlayClassName,
|
|
26689
|
+
restPopupProps = _objectWithoutProperties$1(_ref, _excluded$f);
|
|
26690
|
+
|
|
26613
26691
|
var name = "".concat(classPrefix, "-select");
|
|
26614
26692
|
|
|
26615
26693
|
var _useState = React.useState(popupVisible || false),
|
|
@@ -26617,30 +26695,30 @@
|
|
|
26617
26695
|
showPopup = _useState2[0],
|
|
26618
26696
|
setShowPopup = _useState2[1];
|
|
26619
26697
|
|
|
26620
|
-
var
|
|
26698
|
+
var _useDefault3 = useDefault(props.inputValue, props.defaultInputValue, props.onInputChange),
|
|
26699
|
+
_useDefault4 = _slicedToArray(_useDefault3, 2),
|
|
26700
|
+
inputValue = _useDefault4[0],
|
|
26701
|
+
onInputChange = _useDefault4[1];
|
|
26702
|
+
|
|
26703
|
+
var _useState3 = React.useState([]),
|
|
26621
26704
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
26622
|
-
|
|
26623
|
-
|
|
26705
|
+
currentOptions = _useState4[0],
|
|
26706
|
+
setCurrentOptions = _useState4[1];
|
|
26624
26707
|
|
|
26625
26708
|
var _useState5 = React.useState([]),
|
|
26626
26709
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
26627
|
-
|
|
26628
|
-
|
|
26710
|
+
tmpPropOptions = _useState6[0],
|
|
26711
|
+
setTmpPropOptions = _useState6[1];
|
|
26629
26712
|
|
|
26630
|
-
var _useState7 = React.useState(
|
|
26713
|
+
var _useState7 = React.useState({}),
|
|
26631
26714
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
26632
|
-
|
|
26633
|
-
|
|
26715
|
+
valueToOption = _useState8[0],
|
|
26716
|
+
setValueToOption = _useState8[1];
|
|
26634
26717
|
|
|
26635
|
-
var _useState9 = React.useState(
|
|
26718
|
+
var _useState9 = React.useState([]),
|
|
26636
26719
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
26637
|
-
|
|
26638
|
-
|
|
26639
|
-
|
|
26640
|
-
var _useState11 = React.useState([]),
|
|
26641
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
26642
|
-
selectedOptions = _useState12[0],
|
|
26643
|
-
setSelectedOptions = _useState12[1];
|
|
26720
|
+
selectedOptions = _useState10[0],
|
|
26721
|
+
setSelectedOptions = _useState10[1];
|
|
26644
26722
|
|
|
26645
26723
|
var selectedLabel = React.useMemo(function () {
|
|
26646
26724
|
if (multiple) {
|
|
@@ -26653,7 +26731,7 @@
|
|
|
26653
26731
|
}, [selectedOptions, keys, multiple]);
|
|
26654
26732
|
React.useEffect(function () {
|
|
26655
26733
|
if (keys) {
|
|
26656
|
-
var transformedOptions = options.map(function (option) {
|
|
26734
|
+
var transformedOptions = options === null || options === void 0 ? void 0 : options.map(function (option) {
|
|
26657
26735
|
return _objectSpread$14(_objectSpread$14({}, option), {}, {
|
|
26658
26736
|
value: get_1(option, (keys === null || keys === void 0 ? void 0 : keys.value) || "value"),
|
|
26659
26737
|
label: get_1(option, (keys === null || keys === void 0 ? void 0 : keys.label) || "label")
|
|
@@ -26676,11 +26754,11 @@
|
|
|
26676
26754
|
if (Array.isArray(value)) {
|
|
26677
26755
|
return value.map(function (item) {
|
|
26678
26756
|
if (valueType === "value") {
|
|
26679
|
-
var
|
|
26757
|
+
var _ref2;
|
|
26680
26758
|
|
|
26681
26759
|
return valueToOption[item] || oldSelectedOptions.find(function (option) {
|
|
26682
26760
|
return get_1(option, valueKey) === item;
|
|
26683
|
-
}) || (
|
|
26761
|
+
}) || (_ref2 = {}, _defineProperty$2(_ref2, valueKey, item), _defineProperty$2(_ref2, labelKey, item), _ref2);
|
|
26684
26762
|
}
|
|
26685
26763
|
|
|
26686
26764
|
return item;
|
|
@@ -26689,11 +26767,11 @@
|
|
|
26689
26767
|
|
|
26690
26768
|
if (value !== void 0 && value !== null) {
|
|
26691
26769
|
if (valueType === "value") {
|
|
26692
|
-
var
|
|
26770
|
+
var _ref3;
|
|
26693
26771
|
|
|
26694
26772
|
return [valueToOption[value] || oldSelectedOptions.find(function (option) {
|
|
26695
26773
|
return get_1(option, valueKey) === value;
|
|
26696
|
-
}) || (
|
|
26774
|
+
}) || (_ref3 = {}, _defineProperty$2(_ref3, valueKey, value), _defineProperty$2(_ref3, labelKey, value), _ref3)].filter(Boolean);
|
|
26697
26775
|
}
|
|
26698
26776
|
|
|
26699
26777
|
return [value];
|
|
@@ -26707,10 +26785,7 @@
|
|
|
26707
26785
|
if (disabled) return;
|
|
26708
26786
|
setShowPopup(visible);
|
|
26709
26787
|
onVisibleChange === null || onVisibleChange === void 0 ? void 0 : onVisibleChange(visible);
|
|
26710
|
-
|
|
26711
|
-
if (!visible && !multiple && filterable) {
|
|
26712
|
-
setInputVal(selectedLabel);
|
|
26713
|
-
}
|
|
26788
|
+
visible && onInputChange("");
|
|
26714
26789
|
};
|
|
26715
26790
|
|
|
26716
26791
|
var onTagChange = function onTagChange(currentTags, context) {
|
|
@@ -26750,11 +26825,11 @@
|
|
|
26750
26825
|
}
|
|
26751
26826
|
};
|
|
26752
26827
|
|
|
26753
|
-
var handleChange = function handleChange(value2
|
|
26754
|
-
|
|
26755
|
-
|
|
26756
|
-
|
|
26757
|
-
|
|
26828
|
+
var handleChange = function handleChange(value2) {
|
|
26829
|
+
if (multiple) {
|
|
26830
|
+
!reserveKeyword && onInputChange("", {
|
|
26831
|
+
trigger: "clear"
|
|
26832
|
+
});
|
|
26758
26833
|
}
|
|
26759
26834
|
|
|
26760
26835
|
if (creatable && isFunction_1(onCreate)) {
|
|
@@ -26765,7 +26840,7 @@
|
|
|
26765
26840
|
}
|
|
26766
26841
|
}
|
|
26767
26842
|
|
|
26768
|
-
onChange ? onChange(value2, null)
|
|
26843
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(value2, null);
|
|
26769
26844
|
};
|
|
26770
26845
|
|
|
26771
26846
|
var handleFilter = function handleFilter(value2) {
|
|
@@ -26800,14 +26875,12 @@
|
|
|
26800
26875
|
};
|
|
26801
26876
|
|
|
26802
26877
|
var handleInputChange = function handleInputChange(value2) {
|
|
26803
|
-
|
|
26878
|
+
onInputChange(value2);
|
|
26804
26879
|
|
|
26805
26880
|
if (isFunction_1(onSearch)) {
|
|
26806
26881
|
onSearch(value2);
|
|
26807
26882
|
return;
|
|
26808
26883
|
}
|
|
26809
|
-
|
|
26810
|
-
handleFilter(value2);
|
|
26811
26884
|
};
|
|
26812
26885
|
|
|
26813
26886
|
var onClearValue = function onClearValue(context) {
|
|
@@ -26819,14 +26892,18 @@
|
|
|
26819
26892
|
onChange(null, context);
|
|
26820
26893
|
}
|
|
26821
26894
|
|
|
26822
|
-
|
|
26895
|
+
onInputChange(void 0);
|
|
26823
26896
|
onClear(context);
|
|
26824
26897
|
};
|
|
26825
26898
|
|
|
26899
|
+
React.useEffect(function () {
|
|
26900
|
+
handleFilter(String(inputValue));
|
|
26901
|
+
}, [inputValue]);
|
|
26902
|
+
|
|
26826
26903
|
var renderSuffixIcon = function renderSuffixIcon() {
|
|
26827
26904
|
if (loading) {
|
|
26828
26905
|
return /* @__PURE__ */React__default["default"].createElement(Loading, {
|
|
26829
|
-
className: classNames$1(
|
|
26906
|
+
className: classNames$1("".concat(name, "__right-icon"), "".concat(name, "__active-icon")),
|
|
26830
26907
|
loading: true,
|
|
26831
26908
|
size: "small"
|
|
26832
26909
|
});
|
|
@@ -26894,8 +26971,8 @@
|
|
|
26894
26971
|
} : null;
|
|
26895
26972
|
}, [selectedLabel, collapsedItems, minCollapsedNum]);
|
|
26896
26973
|
return /* @__PURE__ */React__default["default"].createElement("div", {
|
|
26897
|
-
className: "".concat(name, "__wrap"),
|
|
26898
|
-
style:
|
|
26974
|
+
className: classNames$1("".concat(name, "__wrap"), className),
|
|
26975
|
+
style: style
|
|
26899
26976
|
}, /* @__PURE__ */React__default["default"].createElement(SelectInput, _objectSpread$14({
|
|
26900
26977
|
autoWidth: !(style !== null && style !== void 0 && style.width) && autoWidth,
|
|
26901
26978
|
className: name,
|
|
@@ -26903,7 +26980,7 @@
|
|
|
26903
26980
|
readonly: readonly,
|
|
26904
26981
|
allowInput: multiple || filterable,
|
|
26905
26982
|
multiple: multiple,
|
|
26906
|
-
value:
|
|
26983
|
+
value: selectedLabel,
|
|
26907
26984
|
valueDisplay: renderValueDisplay(),
|
|
26908
26985
|
clearable: clearable,
|
|
26909
26986
|
disabled: disabled,
|
|
@@ -26911,9 +26988,8 @@
|
|
|
26911
26988
|
label: prefixIcon,
|
|
26912
26989
|
suffixIcon: renderSuffixIcon(),
|
|
26913
26990
|
panel: renderContent(),
|
|
26914
|
-
placeholder: placeholder || t(local.placeholder),
|
|
26915
|
-
inputValue: inputValue,
|
|
26916
|
-
defaultInputValue: defaultInputValue,
|
|
26991
|
+
placeholder: !multiple && showPopup && selectedLabel ? selectedLabel : placeholder || t(local.placeholder),
|
|
26992
|
+
inputValue: showPopup ? inputValue : "",
|
|
26917
26993
|
tagInputProps: _objectSpread$14({}, tagInputProps),
|
|
26918
26994
|
tagProps: tagProps,
|
|
26919
26995
|
inputProps: _objectSpread$14({
|
|
@@ -26922,8 +26998,8 @@
|
|
|
26922
26998
|
minCollapsedNum: minCollapsedNum,
|
|
26923
26999
|
collapsedItems: renderCollapsedItems,
|
|
26924
27000
|
popupProps: _objectSpread$14({
|
|
26925
|
-
overlayClassName: ["".concat(name, "__dropdown"), ["narrow-scrollbar"]]
|
|
26926
|
-
},
|
|
27001
|
+
overlayClassName: ["".concat(name, "__dropdown"), ["narrow-scrollbar"], overlayClassName]
|
|
27002
|
+
}, restPopupProps),
|
|
26927
27003
|
popupVisible: showPopup,
|
|
26928
27004
|
onPopupVisibleChange: onPopupVisibleChange || handleShowPopup,
|
|
26929
27005
|
onTagChange: onTagChange,
|
|
@@ -28039,7 +28115,9 @@
|
|
|
28039
28115
|
getRowEventsRef.current = getRowEvents;
|
|
28040
28116
|
var rows = React.useMemo(function () {
|
|
28041
28117
|
return flattenVisibleData.map(function (row, index) {
|
|
28042
|
-
var
|
|
28118
|
+
var _get;
|
|
28119
|
+
|
|
28120
|
+
var rowKeyValue = (_get = get_1(row, rowKey)) !== null && _get !== void 0 ? _get : index;
|
|
28043
28121
|
var rowEvents = getRowEventsRef.current(row, index);
|
|
28044
28122
|
return /* @__PURE__ */React__default["default"].createElement(React__default["default"].Fragment, {
|
|
28045
28123
|
key: rowKeyValue
|
|
@@ -31817,7 +31895,9 @@
|
|
|
31817
31895
|
preventScrollThrough = props.preventScrollThrough,
|
|
31818
31896
|
closeBtn = props.closeBtn,
|
|
31819
31897
|
_props$closeOnEscKeyd = props.closeOnEscKeydown,
|
|
31820
|
-
closeOnEscKeydown = _props$closeOnEscKeyd === void 0 ? true : _props$closeOnEscKeyd
|
|
31898
|
+
closeOnEscKeydown = _props$closeOnEscKeyd === void 0 ? true : _props$closeOnEscKeyd,
|
|
31899
|
+
_props$closeOnOverlay = props.closeOnOverlayClick,
|
|
31900
|
+
closeOnOverlayClick = _props$closeOnOverlay === void 0 ? true : _props$closeOnOverlay;
|
|
31821
31901
|
var wrap = React.useRef();
|
|
31822
31902
|
var dialog = React.useRef();
|
|
31823
31903
|
var maskRef = React.useRef();
|
|
@@ -31827,7 +31907,7 @@
|
|
|
31827
31907
|
var canDraggable = props.draggable && mode === "modeless";
|
|
31828
31908
|
var dialogOpenClass = "".concat(prefixCls, "__open");
|
|
31829
31909
|
useDialogEsc(visible, wrap);
|
|
31830
|
-
|
|
31910
|
+
useIsomorphicLayoutEffect(function () {
|
|
31831
31911
|
bodyOverflow.current = document.body.style.overflow;
|
|
31832
31912
|
bodyCssTextRef.current = document.body.style.cssText;
|
|
31833
31913
|
}, []);
|
|
@@ -31896,7 +31976,7 @@
|
|
|
31896
31976
|
};
|
|
31897
31977
|
|
|
31898
31978
|
var onMaskClick = function onMaskClick(e) {
|
|
31899
|
-
if (e.target === e.currentTarget) {
|
|
31979
|
+
if (e.target === e.currentTarget && closeOnOverlayClick) {
|
|
31900
31980
|
onOverlayClick({
|
|
31901
31981
|
e: e
|
|
31902
31982
|
});
|
|
@@ -31947,9 +32027,7 @@
|
|
|
31947
32027
|
var footer = props.footer ? /* @__PURE__ */React__default["default"].createElement("div", {
|
|
31948
32028
|
className: "".concat(prefixCls, "__footer")
|
|
31949
32029
|
}, props.footer) : null;
|
|
31950
|
-
var header =
|
|
31951
|
-
className: "".concat(prefixCls, "__header")
|
|
31952
|
-
}, props.header);
|
|
32030
|
+
var header = props.header;
|
|
31953
32031
|
var body = /* @__PURE__ */React__default["default"].createElement("div", {
|
|
31954
32032
|
className: "".concat(prefixCls, "__body")
|
|
31955
32033
|
}, props.body || props.children);
|
|
@@ -35768,7 +35846,8 @@
|
|
|
35768
35846
|
filter: null,
|
|
35769
35847
|
onLoad: null,
|
|
35770
35848
|
onReflow: null,
|
|
35771
|
-
onUpdate: null
|
|
35849
|
+
onUpdate: null,
|
|
35850
|
+
allowFoldNodeOnFilter: false
|
|
35772
35851
|
}, options);
|
|
35773
35852
|
|
|
35774
35853
|
this.config = config;
|
|
@@ -36045,6 +36124,8 @@
|
|
|
36045
36124
|
|
|
36046
36125
|
if (this.updateTimer) return;
|
|
36047
36126
|
this.updateTimer = +setTimeout(function () {
|
|
36127
|
+
var _this3$config;
|
|
36128
|
+
|
|
36048
36129
|
clearTimeout(_this3.updateTimer);
|
|
36049
36130
|
_this3.updateTimer = null;
|
|
36050
36131
|
|
|
@@ -36054,8 +36135,7 @@
|
|
|
36054
36135
|
_this3.emit("reflow");
|
|
36055
36136
|
}
|
|
36056
36137
|
|
|
36057
|
-
_this3.lockFilterPathNodes();
|
|
36058
|
-
|
|
36138
|
+
if (!((_this3$config = _this3.config) !== null && _this3$config !== void 0 && _this3$config.allowFoldNodeOnFilter)) _this3.lockFilterPathNodes();
|
|
36059
36139
|
var updatedList = Array.from(_this3.updatedMap.keys());
|
|
36060
36140
|
|
|
36061
36141
|
if (updatedList.length > 0) {
|
|
@@ -36419,7 +36499,9 @@
|
|
|
36419
36499
|
lazy = props.lazy,
|
|
36420
36500
|
valueMode = props.valueMode,
|
|
36421
36501
|
filter = props.filter,
|
|
36422
|
-
_onLoad = props.onLoad
|
|
36502
|
+
_onLoad = props.onLoad,
|
|
36503
|
+
_props$allowFoldNodeO = props.allowFoldNodeOnFilter,
|
|
36504
|
+
allowFoldNodeOnFilter = _props$allowFoldNodeO === void 0 ? false : _props$allowFoldNodeO;
|
|
36423
36505
|
var handleUpdate = usePersistFn(function () {
|
|
36424
36506
|
refresh();
|
|
36425
36507
|
});
|
|
@@ -36461,7 +36543,8 @@
|
|
|
36461
36543
|
node: node.getModel()
|
|
36462
36544
|
});
|
|
36463
36545
|
},
|
|
36464
|
-
onUpdate: handleUpdate
|
|
36546
|
+
onUpdate: handleUpdate,
|
|
36547
|
+
allowFoldNodeOnFilter: allowFoldNodeOnFilter
|
|
36465
36548
|
});
|
|
36466
36549
|
var list = cloneDeep_1(data);
|
|
36467
36550
|
|
|
@@ -36831,7 +36914,7 @@
|
|
|
36831
36914
|
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; }
|
|
36832
36915
|
|
|
36833
36916
|
function _objectSpread$w(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$w(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$w(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
36834
|
-
var useTreeSelectUtils = function useTreeSelectUtils(_ref,
|
|
36917
|
+
var useTreeSelectUtils = function useTreeSelectUtils(_ref, treeRef) {
|
|
36835
36918
|
var data = _ref.data,
|
|
36836
36919
|
treeProps = _ref.treeProps,
|
|
36837
36920
|
valueType = _ref.valueType;
|
|
@@ -36843,8 +36926,8 @@
|
|
|
36843
36926
|
var getNodeItem = usePersistFn(function (value) {
|
|
36844
36927
|
var _defaultStore$getNode;
|
|
36845
36928
|
|
|
36846
|
-
if (
|
|
36847
|
-
return
|
|
36929
|
+
if (treeRef.current) {
|
|
36930
|
+
return treeRef.current.getItem(value);
|
|
36848
36931
|
}
|
|
36849
36932
|
|
|
36850
36933
|
return (_defaultStore$getNode = defaultStore.getNode(value)) === null || _defaultStore$getNode === void 0 ? void 0 : _defaultStore$getNode.getModel();
|
|
@@ -36875,7 +36958,7 @@
|
|
|
36875
36958
|
};
|
|
36876
36959
|
};
|
|
36877
36960
|
|
|
36878
|
-
var
|
|
36961
|
+
var SelectArrow = function SelectArrow(_ref) {
|
|
36879
36962
|
var _classNames;
|
|
36880
36963
|
|
|
36881
36964
|
var isActive = _ref.isActive,
|
|
@@ -36892,7 +36975,7 @@
|
|
|
36892
36975
|
});
|
|
36893
36976
|
};
|
|
36894
36977
|
|
|
36895
|
-
var SelectInputPassthroughPropsKey = ["multiple", "style", "disabled", "minCollapsedNum", "popupProps", "clearable", "loading"];
|
|
36978
|
+
var SelectInputPassthroughPropsKey = ["multiple", "style", "disabled", "minCollapsedNum", "popupProps", "clearable", "loading", "autoWidth", "borderless", "readonly"];
|
|
36896
36979
|
var useTreeSelectPassThroughProps = function useTreeSelectPassThroughProps(props) {
|
|
36897
36980
|
return pick_1(props, SelectInputPassthroughPropsKey);
|
|
36898
36981
|
};
|
|
@@ -36956,6 +37039,10 @@
|
|
|
36956
37039
|
classPrefix = _useConfig.classPrefix;
|
|
36957
37040
|
|
|
36958
37041
|
var className = props.className,
|
|
37042
|
+
inputValue = props.inputValue,
|
|
37043
|
+
defaultInputValue = props.defaultInputValue,
|
|
37044
|
+
onInputChange = props.onInputChange,
|
|
37045
|
+
readonly = props.readonly,
|
|
36959
37046
|
disabled = props.disabled,
|
|
36960
37047
|
multiple = props.multiple,
|
|
36961
37048
|
prefixIcon = props.prefixIcon,
|
|
@@ -36971,6 +37058,7 @@
|
|
|
36971
37058
|
onClear = props.onClear,
|
|
36972
37059
|
valueDisplay = props.valueDisplay,
|
|
36973
37060
|
treeProps = props.treeProps,
|
|
37061
|
+
inputProps = props.inputProps,
|
|
36974
37062
|
onBlur = props.onBlur,
|
|
36975
37063
|
onFocus = props.onFocus,
|
|
36976
37064
|
onSearch = props.onSearch,
|
|
@@ -36982,90 +37070,95 @@
|
|
|
36982
37070
|
value = _useDefault2[0],
|
|
36983
37071
|
onChange = _useDefault2[1];
|
|
36984
37072
|
|
|
37073
|
+
var _useDefault3 = useDefault(props.popupVisible, false, props.onPopupVisibleChange),
|
|
37074
|
+
_useDefault4 = _slicedToArray(_useDefault3, 2),
|
|
37075
|
+
popupVisible = _useDefault4[0],
|
|
37076
|
+
setPopupVisble = _useDefault4[1];
|
|
37077
|
+
|
|
36985
37078
|
var _useSwitch = useSwitch(),
|
|
36986
37079
|
_useSwitch2 = _slicedToArray(_useSwitch, 2),
|
|
36987
|
-
|
|
36988
|
-
|
|
37080
|
+
hover = _useSwitch2[0],
|
|
37081
|
+
hoverAction = _useSwitch2[1];
|
|
36989
37082
|
|
|
36990
|
-
var
|
|
36991
|
-
|
|
36992
|
-
|
|
36993
|
-
|
|
36994
|
-
|
|
36995
|
-
var _useState = React.useState(""),
|
|
36996
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
36997
|
-
filterInput = _useState2[0],
|
|
36998
|
-
setFilterInput = _useState2[1];
|
|
37083
|
+
var _useDefault5 = useDefault(inputValue, defaultInputValue, onInputChange),
|
|
37084
|
+
_useDefault6 = _slicedToArray(_useDefault5, 2),
|
|
37085
|
+
filterInput = _useDefault6[0],
|
|
37086
|
+
setFilterInput = _useDefault6[1];
|
|
36999
37087
|
|
|
37000
|
-
var
|
|
37088
|
+
var treeRef = React.useRef();
|
|
37001
37089
|
|
|
37002
|
-
var _useTreeSelectUtils = useTreeSelectUtils(props,
|
|
37090
|
+
var _useTreeSelectUtils = useTreeSelectUtils(props, treeRef),
|
|
37003
37091
|
normalizeValue = _useTreeSelectUtils.normalizeValue,
|
|
37004
37092
|
formatValue = _useTreeSelectUtils.formatValue,
|
|
37005
37093
|
getNodeItem = _useTreeSelectUtils.getNodeItem;
|
|
37006
37094
|
|
|
37007
|
-
var filterable =
|
|
37008
|
-
return rawFilterable || !!props.filter;
|
|
37009
|
-
}, [props.filter, rawFilterable]);
|
|
37095
|
+
var filterable = rawFilterable || !!props.filter;
|
|
37010
37096
|
var normalizedValue = React.useMemo(function () {
|
|
37011
|
-
return (multiple ? value : [value]).
|
|
37012
|
-
var
|
|
37013
|
-
|
|
37014
|
-
|
|
37097
|
+
return (multiple ? value : [value]).reduce(function (result, value2) {
|
|
37098
|
+
var normalized = normalizeValue(value2);
|
|
37099
|
+
normalized.value && result.push(normalized);
|
|
37100
|
+
return result;
|
|
37101
|
+
}, []);
|
|
37015
37102
|
}, [multiple, normalizeValue, value]);
|
|
37016
|
-
var filterText =
|
|
37017
|
-
|
|
37018
|
-
}, [filterInput]);
|
|
37019
|
-
var inputValue = React.useMemo(function () {
|
|
37103
|
+
var filterText = String(filterInput);
|
|
37104
|
+
var internalInputValue = React.useMemo(function () {
|
|
37020
37105
|
if (multiple) return normalizedValue;
|
|
37021
37106
|
return filterable && popupVisible ? filterText : normalizedValue[0];
|
|
37022
37107
|
}, [multiple, normalizedValue, filterable, popupVisible, filterText]);
|
|
37023
37108
|
var inputPlaceholader = React.useMemo(function () {
|
|
37024
37109
|
if (filterable && !multiple && popupVisible && normalizedValue.length) {
|
|
37025
|
-
return typeof normalizedValue[0].label === "string" ? normalizedValue[0].label : normalizedValue[0].value;
|
|
37110
|
+
return typeof normalizedValue[0].label === "string" ? normalizedValue[0].label : String(normalizedValue[0].value);
|
|
37026
37111
|
}
|
|
37027
37112
|
|
|
37028
37113
|
return placeholder;
|
|
37029
37114
|
}, [filterable, multiple, popupVisible, normalizedValue, placeholder]);
|
|
37030
|
-
var showLoading =
|
|
37031
|
-
|
|
37032
|
-
}, [loading, disabled]);
|
|
37033
|
-
var showFakePlaceholder = React.useMemo(function () {
|
|
37034
|
-
return multiple && !filterable && !normalizedValue.length;
|
|
37035
|
-
}, [filterable, multiple, normalizedValue]);
|
|
37115
|
+
var showLoading = !disabled && loading;
|
|
37116
|
+
var showFakePlaceholder = multiple && !filterable && !normalizedValue.length;
|
|
37036
37117
|
var handleFilter = React.useCallback(function (node) {
|
|
37037
37118
|
return filterable ? filter(filterText, node) : true;
|
|
37038
37119
|
}, [filter, filterText, filterable]);
|
|
37039
37120
|
var handleSingleChange = usePersistFn(function (value2, context) {
|
|
37040
37121
|
var $value = value2.length ? value2[0] : null;
|
|
37041
|
-
onChange(formatValue($value, context.node.label), context)
|
|
37042
|
-
|
|
37122
|
+
onChange(formatValue($value, context.node.label), _objectSpread$v(_objectSpread$v({}, context), {}, {
|
|
37123
|
+
trigger: $value === null ? "uncheck" : "check"
|
|
37124
|
+
}));
|
|
37125
|
+
setPopupVisble(false, {
|
|
37126
|
+
trigger: "trigger-element-click"
|
|
37127
|
+
});
|
|
37043
37128
|
});
|
|
37044
37129
|
var handleMultiChange = usePersistFn(function (value2, context) {
|
|
37045
37130
|
(max === 0 || value2.length <= max) && onChange(value2.map(function (value3) {
|
|
37046
37131
|
var _getNodeItem;
|
|
37047
37132
|
|
|
37048
37133
|
return formatValue(value3, (_getNodeItem = getNodeItem(value3)) === null || _getNodeItem === void 0 ? void 0 : _getNodeItem.label);
|
|
37049
|
-
}), context)
|
|
37134
|
+
}), _objectSpread$v(_objectSpread$v({}, context), {}, {
|
|
37135
|
+
trigger: value2.length > normalizedValue.length ? "check" : "uncheck"
|
|
37136
|
+
}));
|
|
37050
37137
|
});
|
|
37051
37138
|
var handleClear = usePersistFn(function (ctx) {
|
|
37052
37139
|
ctx.e.stopPropagation();
|
|
37053
37140
|
onChange(multiple ? [] : formatValue(null), {
|
|
37054
|
-
node: null
|
|
37141
|
+
node: null,
|
|
37142
|
+
trigger: "clear",
|
|
37143
|
+
e: ctx.e
|
|
37055
37144
|
});
|
|
37056
37145
|
onClear === null || onClear === void 0 ? void 0 : onClear(ctx);
|
|
37057
|
-
|
|
37146
|
+
setPopupVisble(false, {
|
|
37147
|
+
trigger: "trigger-element-click"
|
|
37148
|
+
});
|
|
37058
37149
|
});
|
|
37059
37150
|
var handleRemove = usePersistFn(function (index, e) {
|
|
37060
37151
|
var node = getNodeItem(normalizedValue[index].value);
|
|
37061
37152
|
onChange(normalizedValue.filter(function (value2, i) {
|
|
37062
37153
|
return i !== index;
|
|
37063
|
-
}).map(function (
|
|
37064
|
-
var value2 =
|
|
37065
|
-
label =
|
|
37154
|
+
}).map(function (_ref) {
|
|
37155
|
+
var value2 = _ref.value,
|
|
37156
|
+
label = _ref.label;
|
|
37066
37157
|
return formatValue(value2, label);
|
|
37067
37158
|
}), {
|
|
37068
|
-
node: node
|
|
37159
|
+
node: node,
|
|
37160
|
+
trigger: "tag-remove",
|
|
37161
|
+
e: e
|
|
37069
37162
|
});
|
|
37070
37163
|
onRemove === null || onRemove === void 0 ? void 0 : onRemove({
|
|
37071
37164
|
value: node.value,
|
|
@@ -37107,38 +37200,40 @@
|
|
|
37107
37200
|
var handleEnter = usePersistFn(function (text) {
|
|
37108
37201
|
onSearch === null || onSearch === void 0 ? void 0 : onSearch(text);
|
|
37109
37202
|
});
|
|
37110
|
-
var handleFilterChange = usePersistFn(function (value2
|
|
37111
|
-
|
|
37112
|
-
|
|
37113
|
-
if (trigger !== "blur") {
|
|
37114
|
-
setFilterInput(value2);
|
|
37115
|
-
}
|
|
37203
|
+
var handleFilterChange = usePersistFn(function (value2) {
|
|
37204
|
+
return setFilterInput(value2);
|
|
37116
37205
|
});
|
|
37117
37206
|
React.useEffect(function () {
|
|
37118
37207
|
popupVisible && setFilterInput("");
|
|
37119
37208
|
}, [popupVisible]);
|
|
37209
|
+
React.useEffect(function () {
|
|
37210
|
+
setFilterInput("");
|
|
37211
|
+
}, [value]);
|
|
37120
37212
|
|
|
37121
37213
|
var renderTree = function renderTree() {
|
|
37122
|
-
|
|
37123
|
-
|
|
37214
|
+
if (readonly) return empty;
|
|
37215
|
+
if (showLoading) return loadingItem;
|
|
37216
|
+
return /* @__PURE__ */React__default["default"].createElement(Tree, _objectSpread$v(_objectSpread$v({
|
|
37217
|
+
ref: treeRef,
|
|
37124
37218
|
hover: true,
|
|
37125
37219
|
transition: true,
|
|
37126
37220
|
expandAll: true,
|
|
37127
37221
|
filter: handleFilter,
|
|
37128
37222
|
data: data,
|
|
37129
37223
|
disabled: disabled,
|
|
37130
|
-
empty: empty
|
|
37224
|
+
empty: empty,
|
|
37225
|
+
allowFoldNodeOnFilter: true
|
|
37131
37226
|
}, multiple ? {
|
|
37132
37227
|
checkable: true,
|
|
37133
37228
|
onChange: handleMultiChange,
|
|
37134
|
-
value: normalizedValue.map(function (
|
|
37135
|
-
var value2 =
|
|
37229
|
+
value: normalizedValue.map(function (_ref2) {
|
|
37230
|
+
var value2 = _ref2.value;
|
|
37136
37231
|
return value2;
|
|
37137
37232
|
})
|
|
37138
37233
|
} : {
|
|
37139
37234
|
activable: true,
|
|
37140
|
-
actived: normalizedValue.map(function (
|
|
37141
|
-
var value2 =
|
|
37235
|
+
actived: normalizedValue.map(function (_ref3) {
|
|
37236
|
+
var value2 = _ref3.value;
|
|
37142
37237
|
return value2;
|
|
37143
37238
|
}),
|
|
37144
37239
|
onActive: handleSingleChange
|
|
@@ -37162,8 +37257,9 @@
|
|
|
37162
37257
|
};
|
|
37163
37258
|
|
|
37164
37259
|
var normalizedValueDisplay = function normalizedValueDisplay() {
|
|
37165
|
-
if (
|
|
37166
|
-
|
|
37260
|
+
if (typeof valueDisplay === "string") return valueDisplay;
|
|
37261
|
+
if (multiple) return function (_ref4) {
|
|
37262
|
+
var onClose = _ref4.onClose;
|
|
37167
37263
|
return valueDisplay({
|
|
37168
37264
|
value: normalizedValue,
|
|
37169
37265
|
onClose: onClose
|
|
@@ -37175,32 +37271,38 @@
|
|
|
37175
37271
|
}) : "";
|
|
37176
37272
|
};
|
|
37177
37273
|
|
|
37178
|
-
return /* @__PURE__ */React__default["default"].createElement(SelectInput$1, _objectSpread$v(_objectSpread$v({}, selectInputProps), {}, {
|
|
37274
|
+
return /* @__PURE__ */React__default["default"].createElement(SelectInput$1, _objectSpread$v(_objectSpread$v(_objectSpread$v({}, props.selectInputProps), selectInputProps), {}, {
|
|
37179
37275
|
ref: ref,
|
|
37180
37276
|
className: classNames$1("".concat(classPrefix, "-tree-select"), _defineProperty$2({}, "".concat(classPrefix, "-tree-select--without-input"), multiple && !filterable), className),
|
|
37181
|
-
value:
|
|
37277
|
+
value: internalInputValue,
|
|
37182
37278
|
inputValue: popupVisible ? filterText : "",
|
|
37183
37279
|
panel: renderTree(),
|
|
37184
37280
|
allowInput: multiple || filterable,
|
|
37185
|
-
inputProps: {
|
|
37281
|
+
inputProps: _objectSpread$v(_objectSpread$v({}, inputProps), {}, {
|
|
37186
37282
|
size: size
|
|
37187
|
-
},
|
|
37283
|
+
}),
|
|
37188
37284
|
tagInputProps: {
|
|
37189
37285
|
size: size,
|
|
37190
|
-
excessTagsDisplayType: "break-line"
|
|
37286
|
+
excessTagsDisplayType: "break-line",
|
|
37287
|
+
inputProps: inputProps,
|
|
37288
|
+
tagProps: props.tagProps
|
|
37191
37289
|
},
|
|
37192
37290
|
placeholder: inputPlaceholader,
|
|
37193
37291
|
popupVisible: popupVisible && !disabled,
|
|
37194
37292
|
onInputChange: handleFilterChange,
|
|
37195
|
-
onPopupVisibleChange: useMergeFn(
|
|
37196
|
-
onFocus: useMergeFn(handleFocus,
|
|
37293
|
+
onPopupVisibleChange: useMergeFn(setPopupVisble),
|
|
37294
|
+
onFocus: useMergeFn(handleFocus, function () {
|
|
37295
|
+
return setPopupVisble(true, {
|
|
37296
|
+
trigger: "trigger-element-click"
|
|
37297
|
+
});
|
|
37298
|
+
}),
|
|
37197
37299
|
onBlur: useMergeFn(handleBlur),
|
|
37198
37300
|
onClear: handleClear,
|
|
37199
37301
|
onTagChange: handleTagChange,
|
|
37200
37302
|
onEnter: handleEnter,
|
|
37201
37303
|
onMouseenter: hoverAction.on,
|
|
37202
37304
|
onMouseleave: hoverAction.off,
|
|
37203
|
-
suffixIcon: /* @__PURE__ */React__default["default"].createElement(
|
|
37305
|
+
suffixIcon: readonly ? null : /* @__PURE__ */React__default["default"].createElement(SelectArrow, {
|
|
37204
37306
|
isActive: popupVisible,
|
|
37205
37307
|
isHighlight: hover || popupVisible,
|
|
37206
37308
|
disabled: disabled
|
|
@@ -37675,7 +37777,7 @@
|
|
|
37675
37777
|
});
|
|
37676
37778
|
}
|
|
37677
37779
|
|
|
37678
|
-
var _excluded$8 = ["href", "title", "target", "children"];
|
|
37780
|
+
var _excluded$8 = ["href", "title", "target", "children", "className"];
|
|
37679
37781
|
|
|
37680
37782
|
function ownKeys$r(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; }
|
|
37681
37783
|
|
|
@@ -37693,6 +37795,8 @@
|
|
|
37693
37795
|
target = props.target,
|
|
37694
37796
|
_props$children = props.children,
|
|
37695
37797
|
children = _props$children === void 0 ? [] : _props$children,
|
|
37798
|
+
_props$className = props.className,
|
|
37799
|
+
className = _props$className === void 0 ? "" : _props$className,
|
|
37696
37800
|
rest = _objectWithoutProperties$1(props, _excluded$8);
|
|
37697
37801
|
|
|
37698
37802
|
var _useConfig = useConfig$1(),
|
|
@@ -37713,9 +37817,9 @@
|
|
|
37713
37817
|
return unregisterItem(href);
|
|
37714
37818
|
};
|
|
37715
37819
|
}, [href, registerItem, unregisterItem]);
|
|
37716
|
-
return /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$r({
|
|
37717
|
-
className: classNames$1("".concat(classPrefix, "-anchor__item"), _defineProperty$2({}, "".concat(classPrefix, "-is-active"), activeItem === href))
|
|
37718
|
-
}
|
|
37820
|
+
return /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$r(_objectSpread$r({}, rest), {}, {
|
|
37821
|
+
className: classNames$1("".concat(classPrefix, "-anchor__item"), _defineProperty$2({}, "".concat(classPrefix, "-is-active"), activeItem === href), className)
|
|
37822
|
+
}), /* @__PURE__ */React__default["default"].createElement("a", {
|
|
37719
37823
|
href: href,
|
|
37720
37824
|
className: classNames$1("".concat(classPrefix, "-anchor__item-link")),
|
|
37721
37825
|
title: titleAttr,
|
|
@@ -38863,7 +38967,7 @@
|
|
|
38863
38967
|
}, /*#__PURE__*/React__default["default"].createElement(Content));
|
|
38864
38968
|
};
|
|
38865
38969
|
|
|
38866
|
-
var _excluded$7 = ["affixProps", "bounds", "targetOffset", "container", "size", "children", "cursor", "onClick", "onChange"];
|
|
38970
|
+
var _excluded$7 = ["affixProps", "bounds", "targetOffset", "container", "size", "children", "cursor", "onClick", "onChange", "className"];
|
|
38867
38971
|
|
|
38868
38972
|
function ownKeys$q(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; }
|
|
38869
38973
|
|
|
@@ -38888,6 +38992,8 @@
|
|
|
38888
38992
|
onClick = _props$onClick === void 0 ? noop$1 : _props$onClick,
|
|
38889
38993
|
_props$onChange = props.onChange,
|
|
38890
38994
|
onChange = _props$onChange === void 0 ? noop$1 : _props$onChange,
|
|
38995
|
+
_props$className = props.className,
|
|
38996
|
+
className = _props$className === void 0 ? "" : _props$className,
|
|
38891
38997
|
rest = _objectWithoutProperties$1(props, _excluded$7);
|
|
38892
38998
|
|
|
38893
38999
|
var _useConfig = useConfig$1(),
|
|
@@ -39011,7 +39117,7 @@
|
|
|
39011
39117
|
scrollContainer.removeEventListener("scroll", handleScroll);
|
|
39012
39118
|
};
|
|
39013
39119
|
}, [container, handleScroll]);
|
|
39014
|
-
var anchorClass = classNames$1("".concat(classPrefix, "-anchor"), (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-size-s"), size === "small"), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-m"), size === "medium"), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-l"), size === "large"), _classNames));
|
|
39120
|
+
var anchorClass = classNames$1("".concat(classPrefix, "-anchor"), (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-size-s"), size === "small"), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-m"), size === "medium"), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-l"), size === "large"), _classNames), className);
|
|
39015
39121
|
|
|
39016
39122
|
var CursorCmp = function CursorCmp() {
|
|
39017
39123
|
if (isFunction_1(cursor)) return cursor();
|
|
@@ -39028,10 +39134,10 @@
|
|
|
39028
39134
|
registerItem: registerItem,
|
|
39029
39135
|
unregisterItem: unregisterItem
|
|
39030
39136
|
}
|
|
39031
|
-
}, /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$q({
|
|
39137
|
+
}, /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$q(_objectSpread$q({}, rest), {}, {
|
|
39032
39138
|
className: anchorClass,
|
|
39033
39139
|
ref: anchorEl
|
|
39034
|
-
}
|
|
39140
|
+
}), /* @__PURE__ */React__default["default"].createElement("div", {
|
|
39035
39141
|
className: "".concat(classPrefix, "-anchor__line")
|
|
39036
39142
|
}, /* @__PURE__ */React__default["default"].createElement("div", {
|
|
39037
39143
|
className: "".concat(classPrefix, "-anchor__line-cursor-wrapper"),
|
|
@@ -40023,6 +40129,229 @@
|
|
|
40023
40129
|
|
|
40024
40130
|
var Calendar = Calendar$1;
|
|
40025
40131
|
|
|
40132
|
+
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; }
|
|
40133
|
+
|
|
40134
|
+
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; }
|
|
40135
|
+
function useInstance(props, formRef, formItemsRef) {
|
|
40136
|
+
var _useConfig = useConfig$1(),
|
|
40137
|
+
classPrefix = _useConfig.classPrefix;
|
|
40138
|
+
|
|
40139
|
+
var FORM_ITEM_CLASS_PREFIX = "".concat(classPrefix, "-form-item__");
|
|
40140
|
+
var scrollToFirstError = props.scrollToFirstError,
|
|
40141
|
+
_props$preventSubmitD = props.preventSubmitDefault,
|
|
40142
|
+
preventSubmitDefault = _props$preventSubmitD === void 0 ? true : _props$preventSubmitD,
|
|
40143
|
+
onSubmit = props.onSubmit;
|
|
40144
|
+
|
|
40145
|
+
function getFormItemsMap() {
|
|
40146
|
+
var formItemsMap = formItemsRef.current.reduce(function (acc, _ref) {
|
|
40147
|
+
var currItem = _ref.current;
|
|
40148
|
+
|
|
40149
|
+
if (currItem !== null && currItem !== void 0 && currItem.name) {
|
|
40150
|
+
var name = currItem.name;
|
|
40151
|
+
return _objectSpread$o(_objectSpread$o({}, acc), {}, _defineProperty$2({}, name, currItem));
|
|
40152
|
+
}
|
|
40153
|
+
|
|
40154
|
+
return acc;
|
|
40155
|
+
}, {});
|
|
40156
|
+
return formItemsMap;
|
|
40157
|
+
}
|
|
40158
|
+
|
|
40159
|
+
function getFirstError(r) {
|
|
40160
|
+
var _r$firstKey$;
|
|
40161
|
+
|
|
40162
|
+
if (r === true) return;
|
|
40163
|
+
|
|
40164
|
+
var _Object$keys = Object.keys(r),
|
|
40165
|
+
_Object$keys2 = _slicedToArray(_Object$keys, 1),
|
|
40166
|
+
firstKey = _Object$keys2[0];
|
|
40167
|
+
|
|
40168
|
+
if (scrollToFirstError) {
|
|
40169
|
+
scrollTo(".".concat(FORM_ITEM_CLASS_PREFIX + firstKey));
|
|
40170
|
+
}
|
|
40171
|
+
|
|
40172
|
+
return (_r$firstKey$ = r[firstKey][0]) === null || _r$firstKey$ === void 0 ? void 0 : _r$firstKey$.message;
|
|
40173
|
+
}
|
|
40174
|
+
|
|
40175
|
+
function scrollTo(selector) {
|
|
40176
|
+
var dom = formRef.current.querySelector(selector);
|
|
40177
|
+
var behavior = scrollToFirstError;
|
|
40178
|
+
dom && dom.scrollIntoView({
|
|
40179
|
+
behavior: behavior
|
|
40180
|
+
});
|
|
40181
|
+
}
|
|
40182
|
+
|
|
40183
|
+
function submit(e) {
|
|
40184
|
+
if (preventSubmitDefault) {
|
|
40185
|
+
var _e$preventDefault, _e$stopPropagation;
|
|
40186
|
+
|
|
40187
|
+
e === null || e === void 0 ? void 0 : (_e$preventDefault = e.preventDefault) === null || _e$preventDefault === void 0 ? void 0 : _e$preventDefault.call(e);
|
|
40188
|
+
e === null || e === void 0 ? void 0 : (_e$stopPropagation = e.stopPropagation) === null || _e$stopPropagation === void 0 ? void 0 : _e$stopPropagation.call(e);
|
|
40189
|
+
}
|
|
40190
|
+
|
|
40191
|
+
validate().then(function (r) {
|
|
40192
|
+
var firstError = getFirstError(r);
|
|
40193
|
+
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit({
|
|
40194
|
+
validateResult: r,
|
|
40195
|
+
firstError: firstError,
|
|
40196
|
+
e: e
|
|
40197
|
+
});
|
|
40198
|
+
});
|
|
40199
|
+
}
|
|
40200
|
+
|
|
40201
|
+
function validate(param) {
|
|
40202
|
+
function needValidate(name, fields2) {
|
|
40203
|
+
if (!fields2 || !Array.isArray(fields2)) return true;
|
|
40204
|
+
return fields2.indexOf(name) !== -1;
|
|
40205
|
+
}
|
|
40206
|
+
|
|
40207
|
+
var _ref2 = param || {},
|
|
40208
|
+
fields = _ref2.fields,
|
|
40209
|
+
_ref2$trigger = _ref2.trigger,
|
|
40210
|
+
trigger = _ref2$trigger === void 0 ? "all" : _ref2$trigger;
|
|
40211
|
+
|
|
40212
|
+
var list = formItemsRef.current.filter(function (_ref3) {
|
|
40213
|
+
var formItemRef = _ref3.current;
|
|
40214
|
+
return formItemRef && isFunction_1(formItemRef.validate) && needValidate(formItemRef.name, fields);
|
|
40215
|
+
}).map(function (_ref4) {
|
|
40216
|
+
var formItemRef = _ref4.current;
|
|
40217
|
+
return formItemRef.validate(trigger);
|
|
40218
|
+
});
|
|
40219
|
+
return new Promise(function (resolve) {
|
|
40220
|
+
Promise.all(flatten_1(list)).then(function (arr) {
|
|
40221
|
+
var r = arr.reduce(function (r2, err) {
|
|
40222
|
+
return Object.assign(r2 || {}, err);
|
|
40223
|
+
}, {});
|
|
40224
|
+
Object.keys(r).forEach(function (key) {
|
|
40225
|
+
if (r[key] === true) {
|
|
40226
|
+
delete r[key];
|
|
40227
|
+
} else {
|
|
40228
|
+
r[key] = r[key].filter(function (fr) {
|
|
40229
|
+
return fr.result === false;
|
|
40230
|
+
});
|
|
40231
|
+
}
|
|
40232
|
+
});
|
|
40233
|
+
resolve(isEmpty_1(r) ? true : r);
|
|
40234
|
+
})["catch"](console.error);
|
|
40235
|
+
});
|
|
40236
|
+
}
|
|
40237
|
+
|
|
40238
|
+
function getFieldValue(name) {
|
|
40239
|
+
var _target$current;
|
|
40240
|
+
|
|
40241
|
+
if (!name) return null;
|
|
40242
|
+
var target = formItemsRef.current.find(function (_ref5) {
|
|
40243
|
+
var formItemRef = _ref5.current;
|
|
40244
|
+
return (formItemRef === null || formItemRef === void 0 ? void 0 : formItemRef.name) === name;
|
|
40245
|
+
});
|
|
40246
|
+
return (_target$current = target.current) === null || _target$current === void 0 ? void 0 : _target$current.value;
|
|
40247
|
+
}
|
|
40248
|
+
|
|
40249
|
+
function getFieldsValue(nameList) {
|
|
40250
|
+
var fieldsValue = {};
|
|
40251
|
+
var formItemsMap = getFormItemsMap();
|
|
40252
|
+
|
|
40253
|
+
if (nameList === true) {
|
|
40254
|
+
formItemsRef.current.forEach(function (_ref6) {
|
|
40255
|
+
var formItemRef = _ref6.current;
|
|
40256
|
+
|
|
40257
|
+
if (formItemRef !== null && formItemRef !== void 0 && formItemRef.name) {
|
|
40258
|
+
fieldsValue[formItemRef.name] = formItemRef.value;
|
|
40259
|
+
}
|
|
40260
|
+
});
|
|
40261
|
+
} else {
|
|
40262
|
+
if (!Array.isArray(nameList)) throw new Error("getFieldsValue \u53C2\u6570\u9700\u8981 Array \u7C7B\u578B");
|
|
40263
|
+
nameList.forEach(function (name) {
|
|
40264
|
+
if (formItemsMap[name]) fieldsValue[name] = formItemsMap[name].value;
|
|
40265
|
+
});
|
|
40266
|
+
}
|
|
40267
|
+
|
|
40268
|
+
return fieldsValue;
|
|
40269
|
+
}
|
|
40270
|
+
|
|
40271
|
+
function setFieldsValue() {
|
|
40272
|
+
var fields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
40273
|
+
var formItemsMap = getFormItemsMap();
|
|
40274
|
+
Object.keys(fields).forEach(function (key) {
|
|
40275
|
+
var _formItemsMap$key;
|
|
40276
|
+
|
|
40277
|
+
(_formItemsMap$key = formItemsMap[key]) === null || _formItemsMap$key === void 0 ? void 0 : _formItemsMap$key.setValue(fields[key]);
|
|
40278
|
+
});
|
|
40279
|
+
}
|
|
40280
|
+
|
|
40281
|
+
function setFields() {
|
|
40282
|
+
var fields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
40283
|
+
if (!Array.isArray(fields)) throw new Error("setFields \u53C2\u6570\u9700\u8981 Array \u7C7B\u578B");
|
|
40284
|
+
var formItemsMap = getFormItemsMap();
|
|
40285
|
+
fields.forEach(function (field) {
|
|
40286
|
+
var _formItemsMap$name;
|
|
40287
|
+
|
|
40288
|
+
var name = field.name,
|
|
40289
|
+
value = field.value,
|
|
40290
|
+
status = field.status;
|
|
40291
|
+
(_formItemsMap$name = formItemsMap[name]) === null || _formItemsMap$name === void 0 ? void 0 : _formItemsMap$name.setField({
|
|
40292
|
+
value: value,
|
|
40293
|
+
status: status
|
|
40294
|
+
});
|
|
40295
|
+
});
|
|
40296
|
+
}
|
|
40297
|
+
|
|
40298
|
+
function reset(params) {
|
|
40299
|
+
if (typeof params === "undefined") {
|
|
40300
|
+
formItemsRef.current.forEach(function (_ref7) {
|
|
40301
|
+
var formItemRef = _ref7.current;
|
|
40302
|
+
formItemRef && (formItemRef === null || formItemRef === void 0 ? void 0 : formItemRef.resetField());
|
|
40303
|
+
});
|
|
40304
|
+
} else {
|
|
40305
|
+
var _params$type = params.type,
|
|
40306
|
+
type = _params$type === void 0 ? "initial" : _params$type,
|
|
40307
|
+
_params$fields = params.fields,
|
|
40308
|
+
fields = _params$fields === void 0 ? [] : _params$fields;
|
|
40309
|
+
var formItemsMap = getFormItemsMap();
|
|
40310
|
+
fields.forEach(function (name) {
|
|
40311
|
+
var _formItemsMap$name2;
|
|
40312
|
+
|
|
40313
|
+
(_formItemsMap$name2 = formItemsMap[name]) === null || _formItemsMap$name2 === void 0 ? void 0 : _formItemsMap$name2.resetField(type);
|
|
40314
|
+
});
|
|
40315
|
+
}
|
|
40316
|
+
}
|
|
40317
|
+
|
|
40318
|
+
function clearValidate(fields) {
|
|
40319
|
+
if (typeof fields === "undefined") {
|
|
40320
|
+
formItemsRef.current.forEach(function (_ref8) {
|
|
40321
|
+
var formItemRef = _ref8.current;
|
|
40322
|
+
formItemRef && (formItemRef === null || formItemRef === void 0 ? void 0 : formItemRef.resetValidate());
|
|
40323
|
+
});
|
|
40324
|
+
} else {
|
|
40325
|
+
if (!Array.isArray(fields)) throw new Error("clearValidate \u53C2\u6570\u9700\u8981 Array \u7C7B\u578B");
|
|
40326
|
+
var formItemsMap = getFormItemsMap();
|
|
40327
|
+
fields.forEach(function (name) {
|
|
40328
|
+
var _formItemsMap$name3;
|
|
40329
|
+
|
|
40330
|
+
(_formItemsMap$name3 = formItemsMap[name]) === null || _formItemsMap$name3 === void 0 ? void 0 : _formItemsMap$name3.resetValidate();
|
|
40331
|
+
});
|
|
40332
|
+
}
|
|
40333
|
+
}
|
|
40334
|
+
|
|
40335
|
+
function setValidateMessage(message) {
|
|
40336
|
+
var formItemsMap = getFormItemsMap();
|
|
40337
|
+
Object.keys(message).forEach(function (name) {
|
|
40338
|
+
formItemsMap[name].setValidateMessage(message[name]);
|
|
40339
|
+
});
|
|
40340
|
+
}
|
|
40341
|
+
|
|
40342
|
+
return {
|
|
40343
|
+
submit: submit,
|
|
40344
|
+
reset: reset,
|
|
40345
|
+
validate: validate,
|
|
40346
|
+
clearValidate: clearValidate,
|
|
40347
|
+
setFields: setFields,
|
|
40348
|
+
setFieldsValue: setFieldsValue,
|
|
40349
|
+
setValidateMessage: setValidateMessage,
|
|
40350
|
+
getFieldValue: getFieldValue,
|
|
40351
|
+
getFieldsValue: getFieldsValue
|
|
40352
|
+
};
|
|
40353
|
+
}
|
|
40354
|
+
|
|
40026
40355
|
var FormContext = /*#__PURE__*/React__default["default"].createContext({
|
|
40027
40356
|
labelWidth: "calc(1 / 12 * 100%)",
|
|
40028
40357
|
labelAlign: "right",
|
|
@@ -40044,33 +40373,6 @@
|
|
|
40044
40373
|
return React__default["default"].useContext(FormContext);
|
|
40045
40374
|
};
|
|
40046
40375
|
|
|
40047
|
-
/**
|
|
40048
|
-
* Checks if `value` is `null` or `undefined`.
|
|
40049
|
-
*
|
|
40050
|
-
* @static
|
|
40051
|
-
* @memberOf _
|
|
40052
|
-
* @since 4.0.0
|
|
40053
|
-
* @category Lang
|
|
40054
|
-
* @param {*} value The value to check.
|
|
40055
|
-
* @returns {boolean} Returns `true` if `value` is nullish, else `false`.
|
|
40056
|
-
* @example
|
|
40057
|
-
*
|
|
40058
|
-
* _.isNil(null);
|
|
40059
|
-
* // => true
|
|
40060
|
-
*
|
|
40061
|
-
* _.isNil(void 0);
|
|
40062
|
-
* // => true
|
|
40063
|
-
*
|
|
40064
|
-
* _.isNil(NaN);
|
|
40065
|
-
* // => false
|
|
40066
|
-
*/
|
|
40067
|
-
|
|
40068
|
-
function isNil(value) {
|
|
40069
|
-
return value == null;
|
|
40070
|
-
}
|
|
40071
|
-
|
|
40072
|
-
var isNil_1 = isNil;
|
|
40073
|
-
|
|
40074
40376
|
var copyObject$1 = _copyObject,
|
|
40075
40377
|
createAssigner = _createAssigner,
|
|
40076
40378
|
keysIn = keysIn_1;
|
|
@@ -41885,7 +42187,9 @@
|
|
|
41885
42187
|
};
|
|
41886
42188
|
|
|
41887
42189
|
function xhr(_ref) {
|
|
41888
|
-
var
|
|
42190
|
+
var _ref$method = _ref.method,
|
|
42191
|
+
method = _ref$method === void 0 ? "POST" : _ref$method,
|
|
42192
|
+
action = _ref.action,
|
|
41889
42193
|
_ref$withCredentials = _ref.withCredentials,
|
|
41890
42194
|
withCredentials = _ref$withCredentials === void 0 ? false : _ref$withCredentials,
|
|
41891
42195
|
_ref$headers = _ref.headers,
|
|
@@ -41914,7 +42218,7 @@
|
|
|
41914
42218
|
innerFiles.forEach(function (f) {
|
|
41915
42219
|
formData.append(name, f.raw);
|
|
41916
42220
|
});
|
|
41917
|
-
xhr2.open(
|
|
42221
|
+
xhr2.open(method, action, true);
|
|
41918
42222
|
Object.keys(headers).forEach(function (key) {
|
|
41919
42223
|
xhr2.setRequestHeader(key, headers[key]);
|
|
41920
42224
|
});
|
|
@@ -42411,9 +42715,9 @@
|
|
|
42411
42715
|
|
|
42412
42716
|
var _excluded$6 = ["value", "defaultFiles", "files", "onChange"];
|
|
42413
42717
|
|
|
42414
|
-
function ownKeys$
|
|
42718
|
+
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; }
|
|
42415
42719
|
|
|
42416
|
-
function _objectSpread$
|
|
42720
|
+
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; }
|
|
42417
42721
|
function useDefaultValue(props, defaultDefaultValue) {
|
|
42418
42722
|
var value = props.value,
|
|
42419
42723
|
defaultFiles = props.defaultFiles,
|
|
@@ -42432,7 +42736,7 @@
|
|
|
42432
42736
|
finalValue = _useDefault2[0],
|
|
42433
42737
|
finalOnChange = _useDefault2[1];
|
|
42434
42738
|
|
|
42435
|
-
return _objectSpread$
|
|
42739
|
+
return _objectSpread$n({
|
|
42436
42740
|
files: finalValue,
|
|
42437
42741
|
onChange: finalOnChange
|
|
42438
42742
|
}, restProps);
|
|
@@ -42491,12 +42795,14 @@
|
|
|
42491
42795
|
|
|
42492
42796
|
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; }
|
|
42493
42797
|
|
|
42494
|
-
function ownKeys$
|
|
42798
|
+
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; }
|
|
42495
42799
|
|
|
42496
|
-
function _objectSpread$
|
|
42800
|
+
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; }
|
|
42497
42801
|
|
|
42498
42802
|
var Upload$1 = function Upload(props, ref) {
|
|
42499
42803
|
var _useDefaultValue = useDefaultValue(props, []),
|
|
42804
|
+
_useDefaultValue$meth = _useDefaultValue.method,
|
|
42805
|
+
method = _useDefaultValue$meth === void 0 ? "post" : _useDefaultValue$meth,
|
|
42500
42806
|
disabled = _useDefaultValue.disabled,
|
|
42501
42807
|
multiple = _useDefaultValue.multiple,
|
|
42502
42808
|
accept = _useDefaultValue.accept,
|
|
@@ -42514,7 +42820,6 @@
|
|
|
42514
42820
|
tips = _useDefaultValue.tips,
|
|
42515
42821
|
format = _useDefaultValue.format,
|
|
42516
42822
|
data = _useDefaultValue.data,
|
|
42517
|
-
headers = _useDefaultValue.headers,
|
|
42518
42823
|
withCredentials = _useDefaultValue.withCredentials,
|
|
42519
42824
|
_useDefaultValue$auto = _useDefaultValue.autoUpload,
|
|
42520
42825
|
autoUpload = _useDefaultValue$auto === void 0 ? true : _useDefaultValue$auto,
|
|
@@ -42537,6 +42842,8 @@
|
|
|
42537
42842
|
customDraggerRender = _useDefaultValue.customDraggerRender,
|
|
42538
42843
|
children = _useDefaultValue.children;
|
|
42539
42844
|
|
|
42845
|
+
var headers = props.headers;
|
|
42846
|
+
|
|
42540
42847
|
var _useConfig = useConfig$1(),
|
|
42541
42848
|
classPrefix = _useConfig.classPrefix;
|
|
42542
42849
|
|
|
@@ -42712,7 +43019,7 @@
|
|
|
42712
43019
|
_ref3$type = _ref3.type,
|
|
42713
43020
|
type = _ref3$type === void 0 ? "mock" : _ref3$type;
|
|
42714
43021
|
|
|
42715
|
-
var tmpFile = _objectSpread$
|
|
43022
|
+
var tmpFile = _objectSpread$m({}, file);
|
|
42716
43023
|
|
|
42717
43024
|
tmpFile.percent = percent;
|
|
42718
43025
|
var progressCtx = {
|
|
@@ -42747,7 +43054,7 @@
|
|
|
42747
43054
|
var r = res.response || {};
|
|
42748
43055
|
onError({
|
|
42749
43056
|
file: file,
|
|
42750
|
-
response: _objectSpread$
|
|
43057
|
+
response: _objectSpread$m(_objectSpread$m({}, r), {}, {
|
|
42751
43058
|
error: res.error
|
|
42752
43059
|
})
|
|
42753
43060
|
});
|
|
@@ -42761,7 +43068,7 @@
|
|
|
42761
43068
|
while (1) {
|
|
42762
43069
|
switch (_context.prev = _context.next) {
|
|
42763
43070
|
case 0:
|
|
42764
|
-
file = _objectSpread$
|
|
43071
|
+
file = _objectSpread$m({}, uploadFile);
|
|
42765
43072
|
|
|
42766
43073
|
if (!(file.status !== "waiting")) {
|
|
42767
43074
|
_context.next = 3;
|
|
@@ -42792,6 +43099,7 @@
|
|
|
42792
43099
|
|
|
42793
43100
|
case 10:
|
|
42794
43101
|
file.xhr = xhr({
|
|
43102
|
+
method: method,
|
|
42795
43103
|
action: action,
|
|
42796
43104
|
data: data,
|
|
42797
43105
|
file: file,
|
|
@@ -42814,7 +43122,7 @@
|
|
|
42814
43122
|
return function (_x) {
|
|
42815
43123
|
return _ref4.apply(this, arguments);
|
|
42816
43124
|
};
|
|
42817
|
-
}(), [action, data, handleProgress, handleRequestMethod, handleSuccess, headers, name, onError, requestMethod, withCredentials]);
|
|
43125
|
+
}(), [method, action, data, handleProgress, handleRequestMethod, handleSuccess, headers, name, onError, requestMethod, withCredentials]);
|
|
42818
43126
|
|
|
42819
43127
|
function handleRequestMethodResponse(res) {
|
|
42820
43128
|
if (!res) {
|
|
@@ -42846,7 +43154,7 @@
|
|
|
42846
43154
|
|
|
42847
43155
|
var file = typeof format === "function" ? format(fileRaw) : fileRaw;
|
|
42848
43156
|
|
|
42849
|
-
var uploadFile = _objectSpread$
|
|
43157
|
+
var uploadFile = _objectSpread$m({
|
|
42850
43158
|
raw: fileRaw,
|
|
42851
43159
|
lastModified: fileRaw.lastModified,
|
|
42852
43160
|
name: fileRaw.name,
|
|
@@ -43145,6 +43453,14 @@
|
|
|
43145
43453
|
|
|
43146
43454
|
var Upload = _Upload;
|
|
43147
43455
|
|
|
43456
|
+
function renderTNode(tnode, defaultNode) {
|
|
43457
|
+
if (typeof tnode === "function") {
|
|
43458
|
+
return tnode();
|
|
43459
|
+
}
|
|
43460
|
+
|
|
43461
|
+
return tnode || defaultNode;
|
|
43462
|
+
}
|
|
43463
|
+
|
|
43148
43464
|
var isDate$2 = {exports: {}};
|
|
43149
43465
|
|
|
43150
43466
|
var merge = {exports: {}};
|
|
@@ -44131,9 +44447,9 @@
|
|
|
44131
44447
|
|
|
44132
44448
|
var isURL = /*@__PURE__*/getDefaultExportFromCjs(isURL$1.exports);
|
|
44133
44449
|
|
|
44134
|
-
function ownKeys$
|
|
44450
|
+
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; }
|
|
44135
44451
|
|
|
44136
|
-
function _objectSpread$
|
|
44452
|
+
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; }
|
|
44137
44453
|
function isValueEmpty(val) {
|
|
44138
44454
|
var type = Object.prototype.toString.call(val);
|
|
44139
44455
|
var typeMap = {
|
|
@@ -44262,7 +44578,7 @@
|
|
|
44262
44578
|
break;
|
|
44263
44579
|
}
|
|
44264
44580
|
|
|
44265
|
-
return _context.abrupt("return", _objectSpread$
|
|
44581
|
+
return _context.abrupt("return", _objectSpread$l(_objectSpread$l({}, rule), {}, {
|
|
44266
44582
|
result: validateResult
|
|
44267
44583
|
}));
|
|
44268
44584
|
|
|
@@ -44318,9 +44634,9 @@
|
|
|
44318
44634
|
return _validate.apply(this, arguments);
|
|
44319
44635
|
}
|
|
44320
44636
|
|
|
44321
|
-
function ownKeys$
|
|
44637
|
+
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; }
|
|
44322
44638
|
|
|
44323
|
-
function _objectSpread$
|
|
44639
|
+
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; }
|
|
44324
44640
|
|
|
44325
44641
|
var ctrlKeyMap = /* @__PURE__ */new Map();
|
|
44326
44642
|
ctrlKeyMap.set(Checkbox, "checked");
|
|
@@ -44335,8 +44651,8 @@
|
|
|
44335
44651
|
React__default["default"].Children.forEach(children, function (child) {
|
|
44336
44652
|
if (!child) return;
|
|
44337
44653
|
|
|
44338
|
-
if (
|
|
44339
|
-
defaultInitialData = initialDataMap.get(child.type)
|
|
44654
|
+
if ( /*#__PURE__*/React__default["default"].isValidElement(child) && typeof initialData === "undefined") {
|
|
44655
|
+
defaultInitialData = initialDataMap.get(child.type);
|
|
44340
44656
|
}
|
|
44341
44657
|
});
|
|
44342
44658
|
return defaultInitialData;
|
|
@@ -44348,27 +44664,13 @@
|
|
|
44348
44664
|
var _useConfig = useConfig$1(),
|
|
44349
44665
|
classPrefix = _useConfig.classPrefix;
|
|
44350
44666
|
|
|
44351
|
-
var children = props.children,
|
|
44352
|
-
label = props.label,
|
|
44353
|
-
name = props.name,
|
|
44354
|
-
help = props.help,
|
|
44355
|
-
statusIconFromProp = props.statusIcon,
|
|
44356
|
-
rulesFromProp = props.rules,
|
|
44357
|
-
labelWidth = props.labelWidth,
|
|
44358
|
-
labelAlign = props.labelAlign,
|
|
44359
|
-
initialData = props.initialData,
|
|
44360
|
-
requiredMark = props.requiredMark,
|
|
44361
|
-
successBorder = props.successBorder,
|
|
44362
|
-
className = props.className,
|
|
44363
|
-
formItemStyle = props.style;
|
|
44364
|
-
|
|
44365
44667
|
var _useFormContext = useFormContext(),
|
|
44366
44668
|
colon = _useFormContext.colon,
|
|
44367
|
-
requiredMarkFromContext = _useFormContext.requiredMark,
|
|
44368
44669
|
layout = _useFormContext.layout,
|
|
44670
|
+
requiredMarkFromContext = _useFormContext.requiredMark,
|
|
44369
44671
|
labelAlignFromContext = _useFormContext.labelAlign,
|
|
44370
44672
|
labelWidthFromContext = _useFormContext.labelWidth,
|
|
44371
|
-
|
|
44673
|
+
showErrorMessageFromContext = _useFormContext.showErrorMessage,
|
|
44372
44674
|
disabledFromContext = _useFormContext.disabled,
|
|
44373
44675
|
resetTypeFromContext = _useFormContext.resetType,
|
|
44374
44676
|
rulesFromContext = _useFormContext.rules,
|
|
@@ -44377,6 +44679,27 @@
|
|
|
44377
44679
|
formItemsRef = _useFormContext.formItemsRef,
|
|
44378
44680
|
onFormItemValueChange = _useFormContext.onFormItemValueChange;
|
|
44379
44681
|
|
|
44682
|
+
var children = props.children,
|
|
44683
|
+
style = props.style,
|
|
44684
|
+
label = props.label,
|
|
44685
|
+
name = props.name,
|
|
44686
|
+
help = props.help,
|
|
44687
|
+
initialData = props.initialData,
|
|
44688
|
+
className = props.className,
|
|
44689
|
+
successBorder = props.successBorder,
|
|
44690
|
+
_props$statusIcon = props.statusIcon,
|
|
44691
|
+
statusIcon = _props$statusIcon === void 0 ? statusIconFromContext : _props$statusIcon,
|
|
44692
|
+
_props$rules = props.rules,
|
|
44693
|
+
innerRules = _props$rules === void 0 ? (rulesFromContext === null || rulesFromContext === void 0 ? void 0 : rulesFromContext[name]) || [] : _props$rules,
|
|
44694
|
+
_props$labelWidth = props.labelWidth,
|
|
44695
|
+
labelWidth = _props$labelWidth === void 0 ? labelWidthFromContext : _props$labelWidth,
|
|
44696
|
+
_props$labelAlign = props.labelAlign,
|
|
44697
|
+
labelAlign = _props$labelAlign === void 0 ? labelAlignFromContext : _props$labelAlign,
|
|
44698
|
+
_props$requiredMark = props.requiredMark,
|
|
44699
|
+
requiredMark = _props$requiredMark === void 0 ? requiredMarkFromContext : _props$requiredMark,
|
|
44700
|
+
_props$showErrorMessa = props.showErrorMessage,
|
|
44701
|
+
showErrorMessage = _props$showErrorMessa === void 0 ? showErrorMessageFromContext : _props$showErrorMessa;
|
|
44702
|
+
|
|
44380
44703
|
var _useState = React.useState([]),
|
|
44381
44704
|
_useState2 = _slicedToArray(_useState, 2),
|
|
44382
44705
|
errorList = _useState2[0],
|
|
@@ -44413,14 +44736,10 @@
|
|
|
44413
44736
|
var innerFormItemsRef = React.useRef([]);
|
|
44414
44737
|
var shouldValidate = React.useRef(null);
|
|
44415
44738
|
var isMounted = React.useRef(false);
|
|
44416
|
-
var innerRules = rulesFromContext && rulesFromContext[name] || rulesFromProp || [];
|
|
44417
|
-
var innerLabelWidth = isNil_1(labelWidth) ? labelWidthFromContext : labelWidth;
|
|
44418
|
-
var innerLabelAlign = isNil_1(labelAlign) ? labelAlignFromContext : labelAlign;
|
|
44419
|
-
var innerRequiredMark = isNil_1(requiredMark) ? requiredMarkFromContext : requiredMark;
|
|
44420
44739
|
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));
|
|
44421
|
-
var formItemLabelClass = classNames$1("".concat(classPrefix, "-form__label"), (_classNames2 = {}, _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--required"),
|
|
44740
|
+
var formItemLabelClass = classNames$1("".concat(classPrefix, "-form__label"), (_classNames2 = {}, _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--required"), requiredMark && innerRules.filter(function (rule) {
|
|
44422
44741
|
return rule.required;
|
|
44423
|
-
}).length > 0), _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--colon"), colon && label), _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--top"),
|
|
44742
|
+
}).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));
|
|
44424
44743
|
|
|
44425
44744
|
var contentClass = function contentClass() {
|
|
44426
44745
|
var _classNames4;
|
|
@@ -44442,20 +44761,20 @@
|
|
|
44442
44761
|
var labelStyle = {};
|
|
44443
44762
|
var contentStyle = {};
|
|
44444
44763
|
|
|
44445
|
-
if (
|
|
44446
|
-
if (typeof
|
|
44764
|
+
if (labelWidth && labelAlign !== "top") {
|
|
44765
|
+
if (typeof labelWidth === "number") {
|
|
44447
44766
|
labelStyle = {
|
|
44448
|
-
width: "".concat(
|
|
44767
|
+
width: "".concat(labelWidth, "px")
|
|
44449
44768
|
};
|
|
44450
44769
|
contentStyle = {
|
|
44451
|
-
marginLeft: layout !== "inline" ? "".concat(
|
|
44770
|
+
marginLeft: layout !== "inline" ? "".concat(labelWidth, "px") : ""
|
|
44452
44771
|
};
|
|
44453
44772
|
} else {
|
|
44454
44773
|
labelStyle = {
|
|
44455
|
-
width:
|
|
44774
|
+
width: labelWidth
|
|
44456
44775
|
};
|
|
44457
44776
|
contentStyle = {
|
|
44458
|
-
marginLeft: layout !== "inline" ?
|
|
44777
|
+
marginLeft: layout !== "inline" ? labelWidth : ""
|
|
44459
44778
|
};
|
|
44460
44779
|
}
|
|
44461
44780
|
}
|
|
@@ -44464,7 +44783,7 @@
|
|
|
44464
44783
|
var helpNode = null;
|
|
44465
44784
|
if (help) helpNode = /* @__PURE__ */React__default["default"].createElement("div", {
|
|
44466
44785
|
className: "".concat(classPrefix, "-form__help")
|
|
44467
|
-
}, help);
|
|
44786
|
+
}, renderTNode(help));
|
|
44468
44787
|
var list = errorList;
|
|
44469
44788
|
|
|
44470
44789
|
if (showErrorMessage && list && list[0] && list[0].message) {
|
|
@@ -44483,7 +44802,7 @@
|
|
|
44483
44802
|
}
|
|
44484
44803
|
|
|
44485
44804
|
var renderSuffixIcon = function renderSuffixIcon() {
|
|
44486
|
-
if (
|
|
44805
|
+
if (statusIcon === false) return null;
|
|
44487
44806
|
|
|
44488
44807
|
var resultIcon = function resultIcon(iconSlot) {
|
|
44489
44808
|
return /* @__PURE__ */React__default["default"].createElement("span", {
|
|
@@ -44518,22 +44837,18 @@
|
|
|
44518
44837
|
return null;
|
|
44519
44838
|
};
|
|
44520
44839
|
|
|
44521
|
-
if ( /*#__PURE__*/React__default["default"].isValidElement(
|
|
44522
|
-
return resultIcon( /*#__PURE__*/React__default["default"].cloneElement(
|
|
44840
|
+
if ( /*#__PURE__*/React__default["default"].isValidElement(statusIcon)) {
|
|
44841
|
+
return resultIcon( /*#__PURE__*/React__default["default"].cloneElement(statusIcon, _objectSpread$k({
|
|
44523
44842
|
style: {
|
|
44524
44843
|
color: "unset"
|
|
44525
44844
|
}
|
|
44526
|
-
},
|
|
44845
|
+
}, statusIcon.props)));
|
|
44527
44846
|
}
|
|
44528
44847
|
|
|
44529
|
-
if (
|
|
44848
|
+
if (statusIcon === true) {
|
|
44530
44849
|
return getDefaultIcon();
|
|
44531
44850
|
}
|
|
44532
44851
|
|
|
44533
|
-
if ( /*#__PURE__*/React__default["default"].isValidElement(statusIconFromContext)) {
|
|
44534
|
-
return resultIcon(statusIconFromProp);
|
|
44535
|
-
}
|
|
44536
|
-
|
|
44537
44852
|
return null;
|
|
44538
44853
|
};
|
|
44539
44854
|
|
|
@@ -44598,8 +44913,8 @@
|
|
|
44598
44913
|
}
|
|
44599
44914
|
|
|
44600
44915
|
function getResetValue(resetType) {
|
|
44601
|
-
if (resetType === "initial"
|
|
44602
|
-
return initialData;
|
|
44916
|
+
if (resetType === "initial") {
|
|
44917
|
+
return getDefaultInitialData(children, initialData);
|
|
44603
44918
|
}
|
|
44604
44919
|
|
|
44605
44920
|
var emptyValue = "";
|
|
@@ -44716,7 +45031,7 @@
|
|
|
44716
45031
|
});
|
|
44717
45032
|
return /* @__PURE__ */React__default["default"].createElement("div", {
|
|
44718
45033
|
className: formItemClass,
|
|
44719
|
-
style:
|
|
45034
|
+
style: style,
|
|
44720
45035
|
ref: ref
|
|
44721
45036
|
}, label && /* @__PURE__ */React__default["default"].createElement("div", {
|
|
44722
45037
|
className: formItemLabelClass,
|
|
@@ -44765,7 +45080,7 @@
|
|
|
44765
45080
|
ctrlKey = ctrlKeyMap.get(child.type) || "value";
|
|
44766
45081
|
}
|
|
44767
45082
|
|
|
44768
|
-
return /*#__PURE__*/React__default["default"].cloneElement(child, _objectSpread$
|
|
45083
|
+
return /*#__PURE__*/React__default["default"].cloneElement(child, _objectSpread$k(_objectSpread$k({
|
|
44769
45084
|
disabled: disabledFromContext
|
|
44770
45085
|
}, child.props), {}, (_objectSpread2 = {}, _defineProperty$2(_objectSpread2, ctrlKey, formValue), _defineProperty$2(_objectSpread2, "onChange", function onChange(value) {
|
|
44771
45086
|
onChangeFromProps.call(null, value);
|
|
@@ -44780,9 +45095,6 @@
|
|
|
44780
45095
|
}), renderSuffixIcon()), renderTipsInfo()));
|
|
44781
45096
|
});
|
|
44782
45097
|
|
|
44783
|
-
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; }
|
|
44784
|
-
|
|
44785
|
-
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; }
|
|
44786
45098
|
var Form$1 = forwardRefWithStatics(function (props, ref) {
|
|
44787
45099
|
var _useConfig = useConfig$1(),
|
|
44788
45100
|
classPrefix = _useConfig.classPrefix,
|
|
@@ -44815,54 +45127,40 @@
|
|
|
44815
45127
|
preventSubmitDefault = _props$preventSubmitD === void 0 ? true : _props$preventSubmitD,
|
|
44816
45128
|
disabled = props.disabled,
|
|
44817
45129
|
children = props.children,
|
|
44818
|
-
onSubmit = props.onSubmit,
|
|
44819
45130
|
onReset = props.onReset,
|
|
44820
45131
|
_props$onValuesChange = props.onValuesChange,
|
|
44821
45132
|
onValuesChange = _props$onValuesChange === void 0 ? noop$1 : _props$onValuesChange;
|
|
44822
45133
|
var formClass = classNames$1(className, "".concat(classPrefix, "-form"), _defineProperty$2({}, "".concat(classPrefix, "-form-inline"), layout === "inline"));
|
|
44823
45134
|
var formRef = React.useRef();
|
|
44824
45135
|
var formItemsRef = React.useRef([]);
|
|
44825
|
-
var FORM_ITEM_CLASS_PREFIX = "".concat(classPrefix, "-form-item__");
|
|
44826
|
-
|
|
44827
|
-
function getFormItemsMap() {
|
|
44828
|
-
var formItemsMap = formItemsRef.current.reduce(function (acc, _ref) {
|
|
44829
|
-
var currItem = _ref.current;
|
|
44830
|
-
|
|
44831
|
-
if (currItem !== null && currItem !== void 0 && currItem.name) {
|
|
44832
|
-
var name = currItem.name;
|
|
44833
|
-
return _objectSpread$k(_objectSpread$k({}, acc), {}, _defineProperty$2({}, name, currItem));
|
|
44834
|
-
}
|
|
44835
|
-
|
|
44836
|
-
return acc;
|
|
44837
|
-
}, {});
|
|
44838
|
-
return formItemsMap;
|
|
44839
|
-
}
|
|
44840
|
-
|
|
44841
|
-
function getFirstError(r) {
|
|
44842
|
-
var _r$firstKey$;
|
|
44843
|
-
|
|
44844
|
-
if (r === true) return;
|
|
44845
|
-
|
|
44846
|
-
var _Object$keys = Object.keys(r),
|
|
44847
|
-
_Object$keys2 = _slicedToArray(_Object$keys, 1),
|
|
44848
|
-
firstKey = _Object$keys2[0];
|
|
44849
|
-
|
|
44850
|
-
if (scrollToFirstError) {
|
|
44851
|
-
scrollTo(".".concat(FORM_ITEM_CLASS_PREFIX + firstKey));
|
|
44852
|
-
}
|
|
44853
45136
|
|
|
44854
|
-
|
|
44855
|
-
|
|
45137
|
+
var _useInstance = useInstance(props, formRef, formItemsRef),
|
|
45138
|
+
submit = _useInstance.submit,
|
|
45139
|
+
reset = _useInstance.reset,
|
|
45140
|
+
getFieldValue = _useInstance.getFieldValue,
|
|
45141
|
+
getFieldsValue = _useInstance.getFieldsValue,
|
|
45142
|
+
setFieldsValue = _useInstance.setFieldsValue,
|
|
45143
|
+
setFields = _useInstance.setFields,
|
|
45144
|
+
validate = _useInstance.validate,
|
|
45145
|
+
clearValidate = _useInstance.clearValidate,
|
|
45146
|
+
setValidateMessage = _useInstance.setValidateMessage;
|
|
44856
45147
|
|
|
44857
|
-
function
|
|
44858
|
-
|
|
44859
|
-
|
|
44860
|
-
|
|
44861
|
-
|
|
44862
|
-
|
|
44863
|
-
|
|
45148
|
+
React.useImperativeHandle(ref, function () {
|
|
45149
|
+
return {
|
|
45150
|
+
currentElement: formRef.current,
|
|
45151
|
+
submit: submit,
|
|
45152
|
+
reset: reset,
|
|
45153
|
+
getFieldValue: getFieldValue,
|
|
45154
|
+
getFieldsValue: getFieldsValue,
|
|
45155
|
+
setFieldsValue: setFieldsValue,
|
|
45156
|
+
setFields: setFields,
|
|
45157
|
+
validate: validate,
|
|
45158
|
+
clearValidate: clearValidate,
|
|
45159
|
+
setValidateMessage: setValidateMessage
|
|
45160
|
+
};
|
|
45161
|
+
});
|
|
44864
45162
|
|
|
44865
|
-
function
|
|
45163
|
+
function onResetHandler(e) {
|
|
44866
45164
|
if (preventSubmitDefault) {
|
|
44867
45165
|
var _e$preventDefault, _e$stopPropagation;
|
|
44868
45166
|
|
|
@@ -44870,26 +45168,8 @@
|
|
|
44870
45168
|
(_e$stopPropagation = e.stopPropagation) === null || _e$stopPropagation === void 0 ? void 0 : _e$stopPropagation.call(e);
|
|
44871
45169
|
}
|
|
44872
45170
|
|
|
44873
|
-
|
|
44874
|
-
var
|
|
44875
|
-
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit({
|
|
44876
|
-
validateResult: r,
|
|
44877
|
-
firstError: firstError,
|
|
44878
|
-
e: e
|
|
44879
|
-
});
|
|
44880
|
-
});
|
|
44881
|
-
}
|
|
44882
|
-
|
|
44883
|
-
function resetHandler(e) {
|
|
44884
|
-
if (preventSubmitDefault) {
|
|
44885
|
-
var _e$preventDefault2, _e$stopPropagation2;
|
|
44886
|
-
|
|
44887
|
-
(_e$preventDefault2 = e.preventDefault) === null || _e$preventDefault2 === void 0 ? void 0 : _e$preventDefault2.call(e);
|
|
44888
|
-
(_e$stopPropagation2 = e.stopPropagation) === null || _e$stopPropagation2 === void 0 ? void 0 : _e$stopPropagation2.call(e);
|
|
44889
|
-
}
|
|
44890
|
-
|
|
44891
|
-
formItemsRef.current.forEach(function (_ref2) {
|
|
44892
|
-
var formItemRef = _ref2.current;
|
|
45171
|
+
formItemsRef.current.forEach(function (_ref) {
|
|
45172
|
+
var formItemRef = _ref.current;
|
|
44893
45173
|
formItemRef && (formItemRef === null || formItemRef === void 0 ? void 0 : formItemRef.resetField());
|
|
44894
45174
|
});
|
|
44895
45175
|
onReset === null || onReset === void 0 ? void 0 : onReset({
|
|
@@ -44897,162 +45177,6 @@
|
|
|
44897
45177
|
});
|
|
44898
45178
|
}
|
|
44899
45179
|
|
|
44900
|
-
function validate(param) {
|
|
44901
|
-
function needValidate(name, fields2) {
|
|
44902
|
-
if (!fields2 || !Array.isArray(fields2)) return true;
|
|
44903
|
-
return fields2.indexOf(name) !== -1;
|
|
44904
|
-
}
|
|
44905
|
-
|
|
44906
|
-
var _ref3 = param || {},
|
|
44907
|
-
fields = _ref3.fields,
|
|
44908
|
-
_ref3$trigger = _ref3.trigger,
|
|
44909
|
-
trigger = _ref3$trigger === void 0 ? "all" : _ref3$trigger;
|
|
44910
|
-
|
|
44911
|
-
var list = formItemsRef.current.filter(function (_ref4) {
|
|
44912
|
-
var formItemRef = _ref4.current;
|
|
44913
|
-
return formItemRef && isFunction_1(formItemRef.validate) && needValidate(formItemRef.name, fields);
|
|
44914
|
-
}).map(function (_ref5) {
|
|
44915
|
-
var formItemRef = _ref5.current;
|
|
44916
|
-
return formItemRef.validate(trigger);
|
|
44917
|
-
});
|
|
44918
|
-
return new Promise(function (resolve) {
|
|
44919
|
-
Promise.all(flatten_1(list)).then(function (arr) {
|
|
44920
|
-
var r = arr.reduce(function (r2, err) {
|
|
44921
|
-
return Object.assign(r2 || {}, err);
|
|
44922
|
-
}, {});
|
|
44923
|
-
Object.keys(r).forEach(function (key) {
|
|
44924
|
-
if (r[key] === true) {
|
|
44925
|
-
delete r[key];
|
|
44926
|
-
} else {
|
|
44927
|
-
r[key] = r[key].filter(function (fr) {
|
|
44928
|
-
return fr.result === false;
|
|
44929
|
-
});
|
|
44930
|
-
}
|
|
44931
|
-
});
|
|
44932
|
-
resolve(isEmpty_1(r) ? true : r);
|
|
44933
|
-
})["catch"](console.error);
|
|
44934
|
-
});
|
|
44935
|
-
}
|
|
44936
|
-
|
|
44937
|
-
function getFieldValue(name) {
|
|
44938
|
-
var _target$current;
|
|
44939
|
-
|
|
44940
|
-
if (!name) return null;
|
|
44941
|
-
var target = formItemsRef.current.find(function (_ref6) {
|
|
44942
|
-
var formItemRef = _ref6.current;
|
|
44943
|
-
return (formItemRef === null || formItemRef === void 0 ? void 0 : formItemRef.name) === name;
|
|
44944
|
-
});
|
|
44945
|
-
return (_target$current = target.current) === null || _target$current === void 0 ? void 0 : _target$current.value;
|
|
44946
|
-
}
|
|
44947
|
-
|
|
44948
|
-
function getFieldsValue(nameList) {
|
|
44949
|
-
var fieldsValue = {};
|
|
44950
|
-
var formItemsMap = getFormItemsMap();
|
|
44951
|
-
|
|
44952
|
-
if (nameList === true) {
|
|
44953
|
-
formItemsRef.current.forEach(function (_ref7) {
|
|
44954
|
-
var formItemRef = _ref7.current;
|
|
44955
|
-
|
|
44956
|
-
if (formItemRef !== null && formItemRef !== void 0 && formItemRef.name) {
|
|
44957
|
-
fieldsValue[formItemRef.name] = formItemRef.value;
|
|
44958
|
-
}
|
|
44959
|
-
});
|
|
44960
|
-
} else {
|
|
44961
|
-
if (!Array.isArray(nameList)) throw new Error("getFieldsValue \u53C2\u6570\u9700\u8981 Array \u7C7B\u578B");
|
|
44962
|
-
nameList.forEach(function (name) {
|
|
44963
|
-
if (formItemsMap[name]) fieldsValue[name] = formItemsMap[name].value;
|
|
44964
|
-
});
|
|
44965
|
-
}
|
|
44966
|
-
|
|
44967
|
-
return fieldsValue;
|
|
44968
|
-
}
|
|
44969
|
-
|
|
44970
|
-
function setFieldsValue() {
|
|
44971
|
-
var fields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
44972
|
-
var formItemsMap = getFormItemsMap();
|
|
44973
|
-
Object.keys(fields).forEach(function (key) {
|
|
44974
|
-
var _formItemsMap$key;
|
|
44975
|
-
|
|
44976
|
-
(_formItemsMap$key = formItemsMap[key]) === null || _formItemsMap$key === void 0 ? void 0 : _formItemsMap$key.setValue(fields[key]);
|
|
44977
|
-
});
|
|
44978
|
-
}
|
|
44979
|
-
|
|
44980
|
-
function setFields() {
|
|
44981
|
-
var fields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
44982
|
-
if (!Array.isArray(fields)) throw new Error("setFields \u53C2\u6570\u9700\u8981 Array \u7C7B\u578B");
|
|
44983
|
-
var formItemsMap = getFormItemsMap();
|
|
44984
|
-
fields.forEach(function (field) {
|
|
44985
|
-
var _formItemsMap$name;
|
|
44986
|
-
|
|
44987
|
-
var name = field.name,
|
|
44988
|
-
value = field.value,
|
|
44989
|
-
status = field.status;
|
|
44990
|
-
(_formItemsMap$name = formItemsMap[name]) === null || _formItemsMap$name === void 0 ? void 0 : _formItemsMap$name.setField({
|
|
44991
|
-
value: value,
|
|
44992
|
-
status: status
|
|
44993
|
-
});
|
|
44994
|
-
});
|
|
44995
|
-
}
|
|
44996
|
-
|
|
44997
|
-
function reset(params) {
|
|
44998
|
-
if (typeof params === "undefined") {
|
|
44999
|
-
formItemsRef.current.forEach(function (_ref8) {
|
|
45000
|
-
var formItemRef = _ref8.current;
|
|
45001
|
-
formItemRef && (formItemRef === null || formItemRef === void 0 ? void 0 : formItemRef.resetField());
|
|
45002
|
-
});
|
|
45003
|
-
} else {
|
|
45004
|
-
var _params$type = params.type,
|
|
45005
|
-
type = _params$type === void 0 ? "initial" : _params$type,
|
|
45006
|
-
_params$fields = params.fields,
|
|
45007
|
-
fields = _params$fields === void 0 ? [] : _params$fields;
|
|
45008
|
-
var formItemsMap = getFormItemsMap();
|
|
45009
|
-
fields.forEach(function (name) {
|
|
45010
|
-
var _formItemsMap$name2;
|
|
45011
|
-
|
|
45012
|
-
(_formItemsMap$name2 = formItemsMap[name]) === null || _formItemsMap$name2 === void 0 ? void 0 : _formItemsMap$name2.resetField(type);
|
|
45013
|
-
});
|
|
45014
|
-
}
|
|
45015
|
-
}
|
|
45016
|
-
|
|
45017
|
-
function clearValidate(fields) {
|
|
45018
|
-
if (typeof fields === "undefined") {
|
|
45019
|
-
formItemsRef.current.forEach(function (_ref9) {
|
|
45020
|
-
var formItemRef = _ref9.current;
|
|
45021
|
-
formItemRef && (formItemRef === null || formItemRef === void 0 ? void 0 : formItemRef.resetValidate());
|
|
45022
|
-
});
|
|
45023
|
-
} else {
|
|
45024
|
-
if (!Array.isArray(fields)) throw new Error("clearValidate \u53C2\u6570\u9700\u8981 Array \u7C7B\u578B");
|
|
45025
|
-
var formItemsMap = getFormItemsMap();
|
|
45026
|
-
fields.forEach(function (name) {
|
|
45027
|
-
var _formItemsMap$name3;
|
|
45028
|
-
|
|
45029
|
-
(_formItemsMap$name3 = formItemsMap[name]) === null || _formItemsMap$name3 === void 0 ? void 0 : _formItemsMap$name3.resetValidate();
|
|
45030
|
-
});
|
|
45031
|
-
}
|
|
45032
|
-
}
|
|
45033
|
-
|
|
45034
|
-
function setValidateMessage(message) {
|
|
45035
|
-
var formItemsMap = getFormItemsMap();
|
|
45036
|
-
Object.keys(message).forEach(function (name) {
|
|
45037
|
-
formItemsMap[name].setValidateMessage(message[name]);
|
|
45038
|
-
});
|
|
45039
|
-
}
|
|
45040
|
-
|
|
45041
|
-
React.useImperativeHandle(ref, function () {
|
|
45042
|
-
return {
|
|
45043
|
-
currentElement: formRef.current,
|
|
45044
|
-
submit: submitHandler,
|
|
45045
|
-
reset: reset,
|
|
45046
|
-
getFieldValue: getFieldValue,
|
|
45047
|
-
getFieldsValue: getFieldsValue,
|
|
45048
|
-
setFieldsValue: setFieldsValue,
|
|
45049
|
-
setFields: setFields,
|
|
45050
|
-
validate: validate,
|
|
45051
|
-
clearValidate: clearValidate,
|
|
45052
|
-
setValidateMessage: setValidateMessage
|
|
45053
|
-
};
|
|
45054
|
-
});
|
|
45055
|
-
|
|
45056
45180
|
function onFormItemValueChange(changedValue) {
|
|
45057
45181
|
var allFields = getFieldsValue(true);
|
|
45058
45182
|
onValuesChange(changedValue, allFields);
|
|
@@ -45060,10 +45184,10 @@
|
|
|
45060
45184
|
|
|
45061
45185
|
function onKeyDownHandler(e) {
|
|
45062
45186
|
if (preventSubmitDefault && e.key === "Enter") {
|
|
45063
|
-
var _e$
|
|
45187
|
+
var _e$preventDefault2, _e$stopPropagation2;
|
|
45064
45188
|
|
|
45065
|
-
(_e$
|
|
45066
|
-
(_e$
|
|
45189
|
+
(_e$preventDefault2 = e.preventDefault) === null || _e$preventDefault2 === void 0 ? void 0 : _e$preventDefault2.call(e);
|
|
45190
|
+
(_e$stopPropagation2 = e.stopPropagation) === null || _e$stopPropagation2 === void 0 ? void 0 : _e$stopPropagation2.call(e);
|
|
45067
45191
|
}
|
|
45068
45192
|
}
|
|
45069
45193
|
|
|
@@ -45089,8 +45213,8 @@
|
|
|
45089
45213
|
ref: formRef,
|
|
45090
45214
|
style: style,
|
|
45091
45215
|
className: formClass,
|
|
45092
|
-
onSubmit:
|
|
45093
|
-
onReset:
|
|
45216
|
+
onSubmit: submit,
|
|
45217
|
+
onReset: onResetHandler,
|
|
45094
45218
|
onKeyDown: onKeyDownHandler
|
|
45095
45219
|
}, children));
|
|
45096
45220
|
}, {
|
|
@@ -45385,7 +45509,7 @@
|
|
|
45385
45509
|
style: _objectSpread$j({
|
|
45386
45510
|
zIndex: zIndex
|
|
45387
45511
|
}, style),
|
|
45388
|
-
tabIndex:
|
|
45512
|
+
tabIndex: -1,
|
|
45389
45513
|
onKeyDown: onKeyDownEsc,
|
|
45390
45514
|
onTransitionEnd: onTransitionEnd
|
|
45391
45515
|
}, renderOverlay, /* @__PURE__ */React__default["default"].createElement("div", {
|
|
@@ -46682,7 +46806,8 @@
|
|
|
46682
46806
|
var onChange = _ref.onChange,
|
|
46683
46807
|
style = _ref.style,
|
|
46684
46808
|
classPrefix = _ref.classPrefix,
|
|
46685
|
-
toolTipProps = _ref.toolTipProps
|
|
46809
|
+
toolTipProps = _ref.toolTipProps,
|
|
46810
|
+
hideTips = _ref.hideTips;
|
|
46686
46811
|
|
|
46687
46812
|
var _useState = React.useState(false),
|
|
46688
46813
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -46726,10 +46851,7 @@
|
|
|
46726
46851
|
setPopupVisible(false);
|
|
46727
46852
|
};
|
|
46728
46853
|
|
|
46729
|
-
|
|
46730
|
-
visible: popupVisible,
|
|
46731
|
-
placement: "top"
|
|
46732
|
-
}, toolTipProps), /* @__PURE__ */React__default["default"].createElement("div", {
|
|
46854
|
+
var handleNode = /* @__PURE__ */React__default["default"].createElement("div", {
|
|
46733
46855
|
style: style,
|
|
46734
46856
|
className: "".concat(classPrefix, "-slider__button-wrapper"),
|
|
46735
46857
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -46743,7 +46865,11 @@
|
|
|
46743
46865
|
}
|
|
46744
46866
|
}, /* @__PURE__ */React__default["default"].createElement("div", {
|
|
46745
46867
|
className: classNames$1("".concat(classPrefix, "-slider__button"), _defineProperty$2({}, "".concat(classPrefix, "-slider__button--dragging"), isDragging))
|
|
46746
|
-
}))
|
|
46868
|
+
}));
|
|
46869
|
+
return hideTips ? handleNode : /* @__PURE__ */React__default["default"].createElement(Tooltip$1, _objectSpread$c({
|
|
46870
|
+
visible: popupVisible,
|
|
46871
|
+
placement: "top"
|
|
46872
|
+
}, toolTipProps), handleNode);
|
|
46747
46873
|
};
|
|
46748
46874
|
|
|
46749
46875
|
function accAdd(arg1, arg2) {
|
|
@@ -46948,6 +47074,7 @@
|
|
|
46948
47074
|
};
|
|
46949
47075
|
|
|
46950
47076
|
var onSliderChange = function onSliderChange(event, nodeIndex) {
|
|
47077
|
+
if (disabled) return;
|
|
46951
47078
|
var clientKey = isVertical ? "clientY" : "clientX";
|
|
46952
47079
|
var sliderPositionInfo = sliderRef.current.getBoundingClientRect();
|
|
46953
47080
|
var sliderOffset = sliderPositionInfo[startDirection];
|
|
@@ -46962,13 +47089,17 @@
|
|
|
46962
47089
|
|
|
46963
47090
|
var createHandleButton = function createHandleButton(nodeIndex, style2) {
|
|
46964
47091
|
var currentValue = renderValue[nodeIndex];
|
|
46965
|
-
var tipLabel =
|
|
46966
|
-
if (
|
|
47092
|
+
var tipLabel = currentValue;
|
|
47093
|
+
if (isFunction_1(label)) tipLabel = label({
|
|
47094
|
+
value: currentValue,
|
|
47095
|
+
position: nodeIndex === LEFT_NODE ? "start" : "end"
|
|
47096
|
+
});
|
|
47097
|
+
if (isString_1(label)) tipLabel = label.replace(/\$\{value\}/g, currentValue.toString());
|
|
46967
47098
|
return /* @__PURE__ */React__default["default"].createElement(SliderHandleButton, {
|
|
46968
47099
|
toolTipProps: _objectSpread$b({
|
|
46969
|
-
disabled: label === false,
|
|
46970
47100
|
content: tipLabel
|
|
46971
47101
|
}, tooltipProps),
|
|
47102
|
+
hideTips: label === false,
|
|
46972
47103
|
classPrefix: classPrefix,
|
|
46973
47104
|
style: style2,
|
|
46974
47105
|
onChange: function onChange(e) {
|
|
@@ -47081,7 +47212,7 @@
|
|
|
47081
47212
|
setVisible(false);
|
|
47082
47213
|
}
|
|
47083
47214
|
|
|
47084
|
-
setValue(value2, "
|
|
47215
|
+
setValue(value2, "check", node.getModel());
|
|
47085
47216
|
}
|
|
47086
47217
|
}
|
|
47087
47218
|
function valueChangeEffect(node, cascaderContext) {
|
|
@@ -47130,7 +47261,7 @@
|
|
|
47130
47261
|
setFilterActive(false);
|
|
47131
47262
|
}
|
|
47132
47263
|
|
|
47133
|
-
setValue(checked, "
|
|
47264
|
+
setValue(checked, "check", node.getModel());
|
|
47134
47265
|
}
|
|
47135
47266
|
|
|
47136
47267
|
function getLabelIsEllipsis(node, size) {
|
|
@@ -47510,7 +47641,7 @@
|
|
|
47510
47641
|
setValue = cascaderContext.setValue;
|
|
47511
47642
|
if (disabled) return;
|
|
47512
47643
|
var checked = node.setChecked(!node.isChecked());
|
|
47513
|
-
setValue(checked, "
|
|
47644
|
+
setValue(checked, "uncheck", node.getModel());
|
|
47514
47645
|
|
|
47515
47646
|
if (isFunction_1(onRemove)) {
|
|
47516
47647
|
onRemove({
|
|
@@ -49303,8 +49434,6 @@
|
|
|
49303
49434
|
|
|
49304
49435
|
dayjs.extend(customParseFormat);
|
|
49305
49436
|
var TimePicker$1 = forwardRefWithStatics(function (props, ref) {
|
|
49306
|
-
var _classNames;
|
|
49307
|
-
|
|
49308
49437
|
var TEXT_CONFIG = useTimePickerTextConfig();
|
|
49309
49438
|
|
|
49310
49439
|
var _useDefaultValue = useDefaultValue$1(props),
|
|
@@ -49346,7 +49475,7 @@
|
|
|
49346
49475
|
classPrefix = _useConfig.classPrefix;
|
|
49347
49476
|
|
|
49348
49477
|
var name = "".concat(classPrefix, "-time-picker");
|
|
49349
|
-
var inputClasses = classNames$1("".concat(name, "__group"),
|
|
49478
|
+
var inputClasses = classNames$1("".concat(name, "__group"), _defineProperty$2({}, "".concat(classPrefix, "-is-focused"), isPanelShowed));
|
|
49350
49479
|
|
|
49351
49480
|
var handleShowPopup = function handleShowPopup(visible, context) {
|
|
49352
49481
|
setPanelShow(visible);
|
|
@@ -49381,7 +49510,7 @@
|
|
|
49381
49510
|
trigger: "click",
|
|
49382
49511
|
expandAnimation: true
|
|
49383
49512
|
}, /* @__PURE__ */React__default["default"].createElement("div", {
|
|
49384
|
-
className: classNames$1(name, className),
|
|
49513
|
+
className: classNames$1(name, className, inputClasses),
|
|
49385
49514
|
ref: ref,
|
|
49386
49515
|
style: style
|
|
49387
49516
|
}, /* @__PURE__ */React__default["default"].createElement(Input, {
|
|
@@ -49392,7 +49521,6 @@
|
|
|
49392
49521
|
value: value ? " " : void 0,
|
|
49393
49522
|
onClear: handleClear,
|
|
49394
49523
|
placeholder: !value ? placeholder : void 0,
|
|
49395
|
-
className: inputClasses,
|
|
49396
49524
|
suffixIcon: /* @__PURE__ */React__default["default"].createElement(TimeIcon, null)
|
|
49397
49525
|
}), value ? /* @__PURE__ */React__default["default"].createElement(TimePickerInputItems, {
|
|
49398
49526
|
disabled: disabled,
|
|
@@ -50574,6 +50702,15 @@
|
|
|
50574
50702
|
var TIME_FORMAT = "HH:mm:ss";
|
|
50575
50703
|
|
|
50576
50704
|
var DatePicker$1 = function DatePicker(props) {
|
|
50705
|
+
var _useLocaleReceiver = useLocaleReceiver("datePicker"),
|
|
50706
|
+
_useLocaleReceiver2 = _slicedToArray(_useLocaleReceiver, 2),
|
|
50707
|
+
local = _useLocaleReceiver2[0],
|
|
50708
|
+
t = _useLocaleReceiver2[1];
|
|
50709
|
+
|
|
50710
|
+
var selectTimeText = t(local.selectTime);
|
|
50711
|
+
var selectDateText = t(local.selectDate);
|
|
50712
|
+
var confirmText = t(local.confirm);
|
|
50713
|
+
var rangeSeparatorText = t(local.rangeSeparator);
|
|
50577
50714
|
var className = props.className,
|
|
50578
50715
|
style = props.style,
|
|
50579
50716
|
allowInput = props.allowInput,
|
|
@@ -50581,32 +50718,26 @@
|
|
|
50581
50718
|
disabled = props.disabled,
|
|
50582
50719
|
disableDate = props.disableDate,
|
|
50583
50720
|
enableTimePicker = props.enableTimePicker,
|
|
50584
|
-
format = props.format,
|
|
50721
|
+
_props$format = props.format,
|
|
50722
|
+
format = _props$format === void 0 ? "YYYY-MM-DD" : _props$format,
|
|
50585
50723
|
inputProps = props.inputProps,
|
|
50586
|
-
mode = props.mode,
|
|
50724
|
+
_props$mode = props.mode,
|
|
50725
|
+
mode = _props$mode === void 0 ? "month" : _props$mode,
|
|
50587
50726
|
popupProps = props.popupProps,
|
|
50588
50727
|
prefixIcon = props.prefixIcon,
|
|
50589
50728
|
presets = props.presets,
|
|
50590
50729
|
range = props.range,
|
|
50591
|
-
size = props.size,
|
|
50730
|
+
_props$size = props.size,
|
|
50731
|
+
size = _props$size === void 0 ? "medium" : _props$size,
|
|
50592
50732
|
suffixIcon = props.suffixIcon,
|
|
50593
50733
|
value = props.value,
|
|
50594
50734
|
defaultValue = props.defaultValue,
|
|
50595
50735
|
firstDayOfWeek = props.firstDayOfWeek,
|
|
50736
|
+
_props$placeholder = props.placeholder,
|
|
50737
|
+
placeholder = _props$placeholder === void 0 ? t(local.placeholder[mode]) : _props$placeholder,
|
|
50596
50738
|
onChange = props.onChange,
|
|
50597
50739
|
onPick = props.onPick;
|
|
50598
50740
|
|
|
50599
|
-
var _useLocaleReceiver = useLocaleReceiver("datePicker"),
|
|
50600
|
-
_useLocaleReceiver2 = _slicedToArray(_useLocaleReceiver, 2),
|
|
50601
|
-
local = _useLocaleReceiver2[0],
|
|
50602
|
-
t = _useLocaleReceiver2[1];
|
|
50603
|
-
|
|
50604
|
-
var selectTimeText = t(local.selectTime);
|
|
50605
|
-
var selectDateText = t(local.selectDate);
|
|
50606
|
-
var confirmText = t(local.confirm);
|
|
50607
|
-
var rangeSeparatorText = t(local.rangeSeparator);
|
|
50608
|
-
var placeholder = t(local.placeholder[mode]);
|
|
50609
|
-
|
|
50610
50741
|
var _useConfig = useConfig$1(),
|
|
50611
50742
|
classPrefix = _useConfig.classPrefix;
|
|
50612
50743
|
|
|
@@ -51050,20 +51181,104 @@
|
|
|
51050
51181
|
};
|
|
51051
51182
|
|
|
51052
51183
|
DatePicker$1.displayName = "DatePicker";
|
|
51053
|
-
DatePicker$1.defaultProps = {
|
|
51054
|
-
format: "YYYY-MM-DD",
|
|
51055
|
-
mode: "month",
|
|
51056
|
-
placeholder: "\u8BF7\u9009\u62E9",
|
|
51057
|
-
size: "medium"
|
|
51058
|
-
};
|
|
51059
51184
|
|
|
51060
51185
|
var DatePicker = DatePicker$1;
|
|
51061
51186
|
|
|
51187
|
+
var CARD_SCALE = 210 / 332;
|
|
51188
|
+
var itemWidth = 0.415;
|
|
51189
|
+
|
|
51190
|
+
var disposeIndex = function disposeIndex(index, currentIndex, childrenLength) {
|
|
51191
|
+
if (currentIndex === 0 && index === childrenLength - 1) {
|
|
51192
|
+
return -1;
|
|
51193
|
+
}
|
|
51194
|
+
|
|
51195
|
+
if (currentIndex === childrenLength - 1 && index === 0) {
|
|
51196
|
+
return childrenLength;
|
|
51197
|
+
}
|
|
51198
|
+
|
|
51199
|
+
if (index < currentIndex - 1 && currentIndex - index >= childrenLength / 2) {
|
|
51200
|
+
return childrenLength + 1;
|
|
51201
|
+
}
|
|
51202
|
+
|
|
51203
|
+
if (index > currentIndex + 1 && index - currentIndex >= childrenLength / 2) {
|
|
51204
|
+
return -2;
|
|
51205
|
+
}
|
|
51206
|
+
|
|
51207
|
+
return index;
|
|
51208
|
+
};
|
|
51209
|
+
|
|
51210
|
+
var calculateTranslate = function calculateTranslate(index, currentIndex, parentWidth, inStage) {
|
|
51211
|
+
if (inStage) {
|
|
51212
|
+
return parentWidth * ((index - currentIndex) * (1 - itemWidth * CARD_SCALE) - itemWidth + 1) / 2;
|
|
51213
|
+
}
|
|
51214
|
+
|
|
51215
|
+
if (index < currentIndex) {
|
|
51216
|
+
return -itemWidth * (1 + CARD_SCALE) * parentWidth / 2;
|
|
51217
|
+
}
|
|
51218
|
+
|
|
51219
|
+
return (2 + itemWidth * (CARD_SCALE - 1)) * parentWidth / 2;
|
|
51220
|
+
};
|
|
51221
|
+
|
|
51222
|
+
var getZindex = function getZindex(isActivity, inStage) {
|
|
51223
|
+
if (isActivity) {
|
|
51224
|
+
return 2;
|
|
51225
|
+
}
|
|
51226
|
+
|
|
51227
|
+
if (inStage) {
|
|
51228
|
+
return 1;
|
|
51229
|
+
}
|
|
51230
|
+
|
|
51231
|
+
return 0;
|
|
51232
|
+
};
|
|
51233
|
+
|
|
51062
51234
|
var SwiperItem = function SwiperItem(props) {
|
|
51235
|
+
var _classnames;
|
|
51236
|
+
|
|
51063
51237
|
var children = props.children,
|
|
51064
|
-
|
|
51238
|
+
currentIndex = props.currentIndex,
|
|
51239
|
+
index = props.index,
|
|
51240
|
+
animation = props.animation,
|
|
51241
|
+
_props$duration = props.duration,
|
|
51242
|
+
duration = _props$duration === void 0 ? 300 : _props$duration,
|
|
51243
|
+
needAnimation = props.needAnimation,
|
|
51244
|
+
_props$type = props.type,
|
|
51245
|
+
type = _props$type === void 0 ? "default" : _props$type,
|
|
51246
|
+
childrenLength = props.childrenLength,
|
|
51247
|
+
getWrapAttribute = props.getWrapAttribute;
|
|
51248
|
+
|
|
51249
|
+
var _useConfig = useConfig$1(),
|
|
51250
|
+
classPrefix = _useConfig.classPrefix;
|
|
51251
|
+
|
|
51252
|
+
var getSwiperItemStyle = function getSwiperItemStyle() {
|
|
51253
|
+
if (animation === "fade") {
|
|
51254
|
+
return {
|
|
51255
|
+
opacity: currentIndex === index ? 1 : 0,
|
|
51256
|
+
transition: needAnimation ? "opacity ".concat(duration / 1e3, "s") : ""
|
|
51257
|
+
};
|
|
51258
|
+
}
|
|
51259
|
+
|
|
51260
|
+
if (type === "card") {
|
|
51261
|
+
var wrapWidth = getWrapAttribute("offsetWidth");
|
|
51262
|
+
var translateIndex = index !== currentIndex && childrenLength > 2 ? disposeIndex(index, currentIndex, childrenLength) : index;
|
|
51263
|
+
var inStage = Math.round(Math.abs(translateIndex - currentIndex)) <= 1;
|
|
51264
|
+
var translate = calculateTranslate(translateIndex, currentIndex, wrapWidth, inStage).toFixed(2);
|
|
51265
|
+
var isActivity = translateIndex === currentIndex;
|
|
51266
|
+
var zIndex = getZindex(isActivity, inStage);
|
|
51267
|
+
return {
|
|
51268
|
+
msTransform: "translateX(".concat(translate, "px) scale(").concat(isActivity ? 1 : CARD_SCALE, ")"),
|
|
51269
|
+
WebkitTransform: "translateX(".concat(translate, "px) scale(").concat(isActivity ? 1 : CARD_SCALE, ")"),
|
|
51270
|
+
transform: "translateX(".concat(translate, "px) scale(").concat(isActivity ? 1 : CARD_SCALE, ")"),
|
|
51271
|
+
transition: "transform ".concat(duration / 1e3, "s ease"),
|
|
51272
|
+
zIndex: zIndex
|
|
51273
|
+
};
|
|
51274
|
+
}
|
|
51275
|
+
|
|
51276
|
+
return {};
|
|
51277
|
+
};
|
|
51278
|
+
|
|
51065
51279
|
return /* @__PURE__ */React__default["default"].createElement("div", {
|
|
51066
|
-
className:
|
|
51280
|
+
className: classNames$1("".concat(classPrefix, "-swiper__container__item"), (_classnames = {}, _defineProperty$2(_classnames, "".concat(classPrefix, "-swiper__card"), type === "card"), _defineProperty$2(_classnames, "".concat(classPrefix, "-is-active"), type === "card" && index === currentIndex), _defineProperty$2(_classnames, "".concat(classPrefix, "-swiper__fade"), animation === "fade"), _classnames)),
|
|
51281
|
+
style: getSwiperItemStyle()
|
|
51067
51282
|
}, children);
|
|
51068
51283
|
};
|
|
51069
51284
|
|
|
@@ -51073,10 +51288,22 @@
|
|
|
51073
51288
|
|
|
51074
51289
|
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
51075
51290
|
|
|
51291
|
+
var defaultNavigation = {
|
|
51292
|
+
placement: "inside",
|
|
51293
|
+
showSlideBtn: "always",
|
|
51294
|
+
size: "medium",
|
|
51295
|
+
type: "bars"
|
|
51296
|
+
};
|
|
51297
|
+
|
|
51076
51298
|
var Swiper$1 = function Swiper(props) {
|
|
51077
|
-
var
|
|
51299
|
+
var _classnames4, _classnames5;
|
|
51300
|
+
|
|
51301
|
+
var _props$animation = props.animation,
|
|
51302
|
+
animation = _props$animation === void 0 ? "slide" : _props$animation,
|
|
51303
|
+
_props$autoplay = props.autoplay,
|
|
51078
51304
|
autoplay = _props$autoplay === void 0 ? true : _props$autoplay,
|
|
51079
|
-
current = props.current,
|
|
51305
|
+
_props$current = props.current,
|
|
51306
|
+
current = _props$current === void 0 ? 0 : _props$current,
|
|
51080
51307
|
_props$defaultCurrent = props.defaultCurrent,
|
|
51081
51308
|
defaultCurrent = _props$defaultCurrent === void 0 ? 0 : _props$defaultCurrent,
|
|
51082
51309
|
_props$direction = props.direction,
|
|
@@ -51085,27 +51312,59 @@
|
|
|
51085
51312
|
duration = _props$duration === void 0 ? 300 : _props$duration,
|
|
51086
51313
|
_props$interval = props.interval,
|
|
51087
51314
|
interval = _props$interval === void 0 ? 5e3 : _props$interval,
|
|
51315
|
+
_props$trigger = props.trigger,
|
|
51316
|
+
trigger = _props$trigger === void 0 ? "hover" : _props$trigger,
|
|
51317
|
+
height = props.height,
|
|
51318
|
+
_props$loop = props.loop,
|
|
51319
|
+
loop = _props$loop === void 0 ? true : _props$loop,
|
|
51320
|
+
_props$stopOnHover = props.stopOnHover,
|
|
51321
|
+
stopOnHover = _props$stopOnHover === void 0 ? true : _props$stopOnHover,
|
|
51088
51322
|
_props$onChange = props.onChange,
|
|
51089
51323
|
onChange = _props$onChange === void 0 ? noop$1 : _props$onChange,
|
|
51090
51324
|
className = props.className,
|
|
51091
|
-
children = props.children
|
|
51325
|
+
children = props.children,
|
|
51326
|
+
navigation = props.navigation,
|
|
51327
|
+
_props$type = props.type,
|
|
51328
|
+
type = _props$type === void 0 ? "default" : _props$type;
|
|
51092
51329
|
|
|
51093
51330
|
var _useConfig = useConfig$1(),
|
|
51094
51331
|
classPrefix = _useConfig.classPrefix;
|
|
51095
51332
|
|
|
51333
|
+
var navigationConfig = defaultNavigation;
|
|
51334
|
+
var navigationNode = null;
|
|
51335
|
+
|
|
51336
|
+
if ( /*#__PURE__*/React.isValidElement(navigation)) {
|
|
51337
|
+
navigationNode = navigation;
|
|
51338
|
+
} else {
|
|
51339
|
+
navigationConfig = _objectSpread$4(_objectSpread$4({}, defaultNavigation), navigation);
|
|
51340
|
+
}
|
|
51341
|
+
|
|
51096
51342
|
var _useState = React.useState(defaultCurrent),
|
|
51097
51343
|
_useState2 = _slicedToArray(_useState, 2),
|
|
51098
51344
|
currentIndex = _useState2[0],
|
|
51099
51345
|
setCurrentIndex = _useState2[1];
|
|
51100
51346
|
|
|
51101
|
-
var _useState3 = React.useState(
|
|
51347
|
+
var _useState3 = React.useState(false),
|
|
51102
51348
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
51103
|
-
|
|
51104
|
-
|
|
51349
|
+
needAnimation = _useState4[0],
|
|
51350
|
+
setNeedAnimation = _useState4[1];
|
|
51351
|
+
|
|
51352
|
+
var _useState5 = React.useState(navigationConfig.showSlideBtn === "always"),
|
|
51353
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
51354
|
+
arrowShow = _useState6[0],
|
|
51355
|
+
setArrowShow = _useState6[1];
|
|
51105
51356
|
|
|
51106
51357
|
var swiperTimer = React.useRef(null);
|
|
51358
|
+
var swiperAnimationTimer = React.useRef(null);
|
|
51107
51359
|
var isHovering = React.useRef(false);
|
|
51108
|
-
var
|
|
51360
|
+
var swiperWrap = React.useRef(null);
|
|
51361
|
+
|
|
51362
|
+
var getWrapAttribute = function getWrapAttribute(attr) {
|
|
51363
|
+
var _swiperWrap$current, _swiperWrap$current$p;
|
|
51364
|
+
|
|
51365
|
+
return (_swiperWrap$current = swiperWrap.current) === null || _swiperWrap$current === void 0 ? void 0 : (_swiperWrap$current$p = _swiperWrap$current.parentNode) === null || _swiperWrap$current$p === void 0 ? void 0 : _swiperWrap$current$p[attr];
|
|
51366
|
+
};
|
|
51367
|
+
|
|
51109
51368
|
var childrenList = React.useMemo(function () {
|
|
51110
51369
|
return React__default["default"].Children.toArray(children).filter(function (child) {
|
|
51111
51370
|
return child.type.displayName === SwiperItem.displayName;
|
|
@@ -51113,22 +51372,28 @@
|
|
|
51113
51372
|
}, [children]);
|
|
51114
51373
|
var childrenLength = childrenList.length;
|
|
51115
51374
|
var swiperItemList = childrenList.map(function (child, index) {
|
|
51116
|
-
return /*#__PURE__*/React__default["default"].cloneElement(child, _objectSpread$4({
|
|
51117
|
-
|
|
51118
|
-
|
|
51375
|
+
return /*#__PURE__*/React__default["default"].cloneElement(child, _objectSpread$4(_objectSpread$4({
|
|
51376
|
+
key: index,
|
|
51377
|
+
index: index,
|
|
51378
|
+
currentIndex: currentIndex,
|
|
51379
|
+
needAnimation: needAnimation,
|
|
51380
|
+
childrenLength: childrenLength,
|
|
51381
|
+
getWrapAttribute: getWrapAttribute
|
|
51382
|
+
}, props), child.props));
|
|
51119
51383
|
});
|
|
51120
51384
|
|
|
51121
|
-
if (childrenLength > 0) {
|
|
51385
|
+
if (childrenLength > 0 && type === "default") {
|
|
51122
51386
|
var firstEle = swiperItemList[0];
|
|
51123
51387
|
swiperItemList.push( /*#__PURE__*/React__default["default"].cloneElement(firstEle, _objectSpread$4(_objectSpread$4({}, firstEle.props), {}, {
|
|
51124
|
-
key:
|
|
51388
|
+
key: childrenLength,
|
|
51389
|
+
index: childrenLength
|
|
51125
51390
|
})));
|
|
51126
51391
|
}
|
|
51127
51392
|
|
|
51128
51393
|
var swiperItemLength = swiperItemList.length;
|
|
51129
51394
|
var swiperTo = React.useCallback(function (index, context) {
|
|
51130
51395
|
onChange(index % childrenLength, context);
|
|
51131
|
-
|
|
51396
|
+
setNeedAnimation(true);
|
|
51132
51397
|
setCurrentIndex(index);
|
|
51133
51398
|
}, [childrenLength, onChange]);
|
|
51134
51399
|
var setTimer = React.useCallback(function () {
|
|
@@ -51146,78 +51411,241 @@
|
|
|
51146
51411
|
swiperTimer.current = null;
|
|
51147
51412
|
}
|
|
51148
51413
|
}, []);
|
|
51414
|
+
var isEnd = React.useCallback(function () {
|
|
51415
|
+
if (type === "card") {
|
|
51416
|
+
return !loop && currentIndex + 1 >= swiperItemLength;
|
|
51417
|
+
}
|
|
51418
|
+
|
|
51419
|
+
return !loop && currentIndex + 2 >= swiperItemLength;
|
|
51420
|
+
}, [loop, currentIndex, swiperItemLength, type]);
|
|
51149
51421
|
React.useEffect(function () {
|
|
51150
51422
|
if (current !== void 0) {
|
|
51151
51423
|
swiperTo(current % childrenLength, {
|
|
51152
|
-
source: ""
|
|
51424
|
+
source: "autoplay"
|
|
51153
51425
|
});
|
|
51154
51426
|
}
|
|
51155
51427
|
}, [current, childrenLength, swiperTo]);
|
|
51156
51428
|
React.useEffect(function () {
|
|
51157
|
-
if (
|
|
51158
|
-
|
|
51159
|
-
|
|
51429
|
+
if (currentIndex + 1 > swiperItemLength && type === "card") {
|
|
51430
|
+
return setCurrentIndex(0);
|
|
51431
|
+
}
|
|
51432
|
+
|
|
51433
|
+
if (swiperAnimationTimer.current) {
|
|
51434
|
+
clearTimeout(swiperAnimationTimer.current);
|
|
51435
|
+
swiperAnimationTimer.current = null;
|
|
51160
51436
|
}
|
|
51161
|
-
}, [clearTimer, setTimer]);
|
|
51162
|
-
React.useEffect(function () {
|
|
51163
|
-
setTimeout(function () {
|
|
51164
|
-
setAnimation(false);
|
|
51165
51437
|
|
|
51166
|
-
|
|
51438
|
+
swiperAnimationTimer.current = setTimeout(function () {
|
|
51439
|
+
setNeedAnimation(false);
|
|
51440
|
+
|
|
51441
|
+
if (isEnd()) {
|
|
51442
|
+
clearTimer();
|
|
51443
|
+
}
|
|
51444
|
+
|
|
51445
|
+
if (currentIndex + 1 >= swiperItemLength && type !== "card") {
|
|
51167
51446
|
setCurrentIndex(0);
|
|
51168
51447
|
}
|
|
51169
51448
|
}, duration + 50);
|
|
51170
|
-
}, [currentIndex, swiperItemLength, duration,
|
|
51449
|
+
}, [currentIndex, swiperItemLength, duration, type, clearTimer, isEnd]);
|
|
51450
|
+
React.useEffect(function () {
|
|
51451
|
+
if (!isHovering.current || !stopOnHover) {
|
|
51452
|
+
clearTimer();
|
|
51453
|
+
setTimer();
|
|
51454
|
+
}
|
|
51455
|
+
}, [setTimer, clearTimer, stopOnHover]);
|
|
51171
51456
|
|
|
51172
51457
|
var onMouseEnter = function onMouseEnter() {
|
|
51173
51458
|
isHovering.current = true;
|
|
51174
|
-
|
|
51459
|
+
|
|
51460
|
+
if (stopOnHover) {
|
|
51461
|
+
clearTimer();
|
|
51462
|
+
}
|
|
51463
|
+
|
|
51464
|
+
if (navigationConfig.showSlideBtn === "hover") {
|
|
51465
|
+
setArrowShow(true);
|
|
51466
|
+
}
|
|
51175
51467
|
};
|
|
51176
51468
|
|
|
51177
51469
|
var onMouseLeave = function onMouseLeave() {
|
|
51178
51470
|
isHovering.current = false;
|
|
51179
|
-
|
|
51471
|
+
|
|
51472
|
+
if (!isEnd()) {
|
|
51473
|
+
setTimer();
|
|
51474
|
+
}
|
|
51475
|
+
|
|
51476
|
+
if (navigationConfig.showSlideBtn === "hover") {
|
|
51477
|
+
setArrowShow(false);
|
|
51478
|
+
}
|
|
51180
51479
|
};
|
|
51181
51480
|
|
|
51182
|
-
var
|
|
51481
|
+
var navMouseAction = function navMouseAction(action, index) {
|
|
51482
|
+
if (action === "enter"
|
|
51483
|
+
/* Enter */
|
|
51484
|
+
&& trigger === "hover") {
|
|
51485
|
+
swiperTo(index, {
|
|
51486
|
+
source: "hover"
|
|
51487
|
+
});
|
|
51488
|
+
}
|
|
51183
51489
|
|
|
51184
|
-
|
|
51185
|
-
|
|
51186
|
-
|
|
51187
|
-
|
|
51188
|
-
|
|
51189
|
-
|
|
51190
|
-
|
|
51191
|
-
|
|
51192
|
-
|
|
51193
|
-
|
|
51194
|
-
|
|
51195
|
-
|
|
51196
|
-
|
|
51490
|
+
if (action === "click"
|
|
51491
|
+
/* Click */
|
|
51492
|
+
&& trigger === "click") {
|
|
51493
|
+
swiperTo(index, {
|
|
51494
|
+
source: "click"
|
|
51495
|
+
});
|
|
51496
|
+
}
|
|
51497
|
+
};
|
|
51498
|
+
|
|
51499
|
+
var arrowClick = function arrowClick(direction2) {
|
|
51500
|
+
if (needAnimation) {
|
|
51501
|
+
return false;
|
|
51502
|
+
}
|
|
51503
|
+
|
|
51504
|
+
if (direction2 === "right"
|
|
51505
|
+
/* Right */
|
|
51506
|
+
) {
|
|
51507
|
+
if (type === "card") {
|
|
51508
|
+
return swiperTo(currentIndex + 1 >= swiperItemLength ? 0 : currentIndex + 1, {
|
|
51509
|
+
source: "click"
|
|
51510
|
+
});
|
|
51511
|
+
}
|
|
51512
|
+
|
|
51513
|
+
return swiperTo(currentIndex + 1, {
|
|
51514
|
+
source: "click"
|
|
51515
|
+
});
|
|
51516
|
+
}
|
|
51517
|
+
|
|
51518
|
+
if (direction2 === "left"
|
|
51519
|
+
/* Left */
|
|
51520
|
+
) {
|
|
51521
|
+
if (currentIndex - 1 < 0) {
|
|
51522
|
+
return swiperTo(childrenLength - 1, {
|
|
51523
|
+
source: "click"
|
|
51524
|
+
});
|
|
51525
|
+
}
|
|
51526
|
+
|
|
51527
|
+
return swiperTo(currentIndex - 1, {
|
|
51528
|
+
source: "click"
|
|
51529
|
+
});
|
|
51530
|
+
}
|
|
51531
|
+
};
|
|
51532
|
+
|
|
51533
|
+
var createArrow = function createArrow(type2) {
|
|
51534
|
+
if (!arrowShow) {
|
|
51535
|
+
return "";
|
|
51536
|
+
}
|
|
51537
|
+
|
|
51538
|
+
if (navigationConfig.type === "fraction" && type2 === "default"
|
|
51539
|
+
/* Default */
|
|
51540
|
+
) {
|
|
51541
|
+
return "";
|
|
51542
|
+
}
|
|
51543
|
+
|
|
51544
|
+
var fractionIndex = currentIndex + 1 > childrenLength ? 1 : currentIndex + 1;
|
|
51545
|
+
return /* @__PURE__ */React__default["default"].createElement("div", {
|
|
51546
|
+
className: classNames$1("".concat(classPrefix, "-swiper__arrow"), _defineProperty$2({}, "".concat(classPrefix, "-swiper__arrow--default"), type2 === "default"))
|
|
51547
|
+
}, /* @__PURE__ */React__default["default"].createElement("div", {
|
|
51548
|
+
className: "".concat(classPrefix, "-swiper__arrow-left"),
|
|
51549
|
+
onClick: function onClick() {
|
|
51550
|
+
return arrowClick("left"
|
|
51551
|
+
/* Left */
|
|
51552
|
+
);
|
|
51553
|
+
}
|
|
51554
|
+
}, /* @__PURE__ */React__default["default"].createElement(ChevronLeftIcon, null)), type2 === "fraction"
|
|
51555
|
+
/* Fraction */
|
|
51556
|
+
? /* @__PURE__ */React__default["default"].createElement("div", {
|
|
51557
|
+
className: "".concat(classPrefix, "-swiper__navigation-text-fraction")
|
|
51558
|
+
}, fractionIndex, "/", childrenLength) : "", /* @__PURE__ */React__default["default"].createElement("div", {
|
|
51559
|
+
className: "".concat(classPrefix, "-swiper__arrow-right"),
|
|
51560
|
+
onClick: function onClick() {
|
|
51561
|
+
return arrowClick("right"
|
|
51562
|
+
/* Right */
|
|
51563
|
+
);
|
|
51564
|
+
}
|
|
51565
|
+
}, /* @__PURE__ */React__default["default"].createElement(ChevronRightIcon, null)));
|
|
51566
|
+
};
|
|
51567
|
+
|
|
51568
|
+
var createNavigation = function createNavigation() {
|
|
51569
|
+
if (navigationConfig.type === "fraction") {
|
|
51570
|
+
return /* @__PURE__ */React__default["default"].createElement("div", {
|
|
51571
|
+
className: classNames$1("".concat(classPrefix, "-swiper__navigation"), "".concat(classPrefix, "-swiper__navigation--fraction"))
|
|
51572
|
+
}, createArrow("fraction"
|
|
51573
|
+
/* Fraction */
|
|
51574
|
+
));
|
|
51575
|
+
}
|
|
51576
|
+
|
|
51577
|
+
return navigationNode ? /* @__PURE__ */React__default["default"].createElement(React__default["default"].Fragment, null, navigationNode) : /* @__PURE__ */React__default["default"].createElement("ul", {
|
|
51578
|
+
className: classNames$1("".concat(classPrefix, "-swiper__navigation"), _defineProperty$2({}, "".concat(classPrefix, "-swiper__navigation-bars"), navigationConfig.type === "bars"))
|
|
51579
|
+
}, childrenList.map(function (_, i) {
|
|
51580
|
+
return /* @__PURE__ */React__default["default"].createElement("li", {
|
|
51581
|
+
key: i,
|
|
51582
|
+
className: classNames$1("".concat(classPrefix, "-swiper__navigation-item"), _defineProperty$2({}, "".concat(classPrefix, "-is-active"), i === currentIndex % childrenLength)),
|
|
51583
|
+
onClick: function onClick() {
|
|
51584
|
+
return navMouseAction("click"
|
|
51585
|
+
/* Click */
|
|
51586
|
+
, i);
|
|
51587
|
+
},
|
|
51588
|
+
onMouseEnter: function onMouseEnter() {
|
|
51589
|
+
return navMouseAction("enter"
|
|
51590
|
+
/* Enter */
|
|
51591
|
+
, i);
|
|
51592
|
+
},
|
|
51593
|
+
onMouseLeave: function onMouseLeave() {
|
|
51594
|
+
return navMouseAction("leave"
|
|
51595
|
+
/* Leave */
|
|
51596
|
+
, i);
|
|
51597
|
+
}
|
|
51598
|
+
}, /* @__PURE__ */React__default["default"].createElement("span", null));
|
|
51599
|
+
}));
|
|
51600
|
+
};
|
|
51601
|
+
|
|
51602
|
+
var getWrapperStyle = function getWrapperStyle() {
|
|
51603
|
+
var offsetHeight = height ? "".concat(height, "px") : "".concat(getWrapAttribute("offsetHeight"), "px");
|
|
51604
|
+
|
|
51605
|
+
if (type === "card" || animation === "fade") {
|
|
51606
|
+
return {
|
|
51607
|
+
height: offsetHeight
|
|
51608
|
+
};
|
|
51609
|
+
}
|
|
51610
|
+
|
|
51611
|
+
if (animation === "slide") {
|
|
51612
|
+
if (direction === "vertical") {
|
|
51613
|
+
return {
|
|
51614
|
+
height: offsetHeight,
|
|
51615
|
+
msTransform: "translate3d(0, -".concat(currentIndex * 100, "%, 0px)"),
|
|
51616
|
+
WebkitTransform: "translate3d(0, -".concat(currentIndex * 100, "%, 0px)"),
|
|
51617
|
+
transform: "translate3d(0, -".concat(currentIndex * 100, "%, 0px)"),
|
|
51618
|
+
transition: needAnimation ? "transform ".concat(duration / 1e3, "s ease") : ""
|
|
51619
|
+
};
|
|
51620
|
+
}
|
|
51621
|
+
|
|
51622
|
+
return {
|
|
51623
|
+
msTransform: "translate3d(-".concat(currentIndex * 100, "%, 0px, 0px)"),
|
|
51624
|
+
WebkitTransform: "translate3d(-".concat(currentIndex * 100, "%, 0px, 0px)"),
|
|
51625
|
+
transform: "translate3d(-".concat(currentIndex * 100, "%, 0px, 0px)"),
|
|
51626
|
+
transition: needAnimation ? "transform ".concat(duration / 1e3, "s ease") : ""
|
|
51627
|
+
};
|
|
51628
|
+
}
|
|
51629
|
+
};
|
|
51197
51630
|
|
|
51198
51631
|
return /* @__PURE__ */React__default["default"].createElement("div", {
|
|
51199
51632
|
className: classNames$1("".concat(classPrefix, "-swiper"), className),
|
|
51200
51633
|
onMouseEnter: onMouseEnter,
|
|
51201
|
-
onMouseLeave: onMouseLeave
|
|
51634
|
+
onMouseLeave: onMouseLeave,
|
|
51635
|
+
ref: swiperWrap
|
|
51202
51636
|
}, /* @__PURE__ */React__default["default"].createElement("div", {
|
|
51203
|
-
className: "".concat(classPrefix, "-
|
|
51637
|
+
className: classNames$1("".concat(classPrefix, "-swiper__wrap"), (_classnames4 = {}, _defineProperty$2(_classnames4, "".concat(classPrefix, "-swiper--inside"), navigationConfig.placement === "inside"), _defineProperty$2(_classnames4, "".concat(classPrefix, "-swiper--outside"), navigationConfig.placement === "outside"), _defineProperty$2(_classnames4, "".concat(classPrefix, "-swiper--vertical"), direction === "vertical"), _defineProperty$2(_classnames4, "".concat(classPrefix, "-swiper--large"), navigationConfig.size === "large"), _defineProperty$2(_classnames4, "".concat(classPrefix, "-swiper--small"), navigationConfig.size === "small"), _classnames4))
|
|
51204
51638
|
}, /* @__PURE__ */React__default["default"].createElement("div", {
|
|
51205
|
-
|
|
51206
|
-
|
|
51207
|
-
|
|
51208
|
-
|
|
51209
|
-
|
|
51210
|
-
|
|
51211
|
-
|
|
51212
|
-
|
|
51213
|
-
|
|
51214
|
-
|
|
51215
|
-
return swiperTo(i, {
|
|
51216
|
-
source: "touch"
|
|
51217
|
-
});
|
|
51218
|
-
}
|
|
51219
|
-
});
|
|
51220
|
-
})));
|
|
51639
|
+
className: classNames$1("".concat(classPrefix, "-swiper__content"), (_classnames5 = {}, _defineProperty$2(_classnames5, "".concat(classPrefix, "-swiper-fade"), animation === "fade"), _defineProperty$2(_classnames5, "".concat(classPrefix, "-swiper-card"), type === "card"), _classnames5)),
|
|
51640
|
+
style: {
|
|
51641
|
+
height: ""
|
|
51642
|
+
}
|
|
51643
|
+
}, /* @__PURE__ */React__default["default"].createElement("div", {
|
|
51644
|
+
className: "".concat(classPrefix, "-swiper__container"),
|
|
51645
|
+
style: getWrapperStyle()
|
|
51646
|
+
}, swiperItemList)), createNavigation(), createArrow("default"
|
|
51647
|
+
/* Default */
|
|
51648
|
+
)));
|
|
51221
51649
|
};
|
|
51222
51650
|
|
|
51223
51651
|
Swiper$1.SwiperItem = SwiperItem;
|