tdesign-react 0.27.2 → 0.28.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 +27 -0
- package/dist/tdesign.css +1037 -81
- package/dist/tdesign.css.map +1 -1
- package/dist/tdesign.js +900 -545
- 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/es/_chunks/{dep-901feffa.js → dep-00edd605.js} +4 -4
- package/es/_chunks/{dep-901feffa.js.map → dep-00edd605.js.map} +1 -1
- package/es/_chunks/{dep-fc0a066c.js → dep-01ecbe32.js} +7 -7
- package/es/_chunks/{dep-fc0a066c.js.map → dep-01ecbe32.js.map} +1 -1
- package/{esm/_chunks/dep-c6449e5a.js → es/_chunks/dep-104db64f.js} +8 -8
- package/es/_chunks/{dep-c6449e5a.js.map → dep-104db64f.js.map} +1 -1
- package/{esm/_chunks/dep-3a02c1cc.js → es/_chunks/dep-1450ac72.js} +5 -5
- package/es/_chunks/{dep-3a02c1cc.js.map → dep-1450ac72.js.map} +1 -1
- package/es/_chunks/{dep-54ba75b6.js → dep-151f48f7.js} +2 -2
- package/es/_chunks/dep-151f48f7.js.map +1 -0
- package/{esm/_chunks/dep-99f3441a.js → es/_chunks/dep-18190a86.js} +4 -4
- package/es/_chunks/{dep-99f3441a.js.map → dep-18190a86.js.map} +1 -1
- package/es/_chunks/{dep-48e9cf63.js → dep-1baef241.js} +4 -4
- package/es/_chunks/{dep-48e9cf63.js.map → dep-1baef241.js.map} +1 -1
- package/es/_chunks/{dep-e858743b.js → dep-1ec3a297.js} +6 -6
- package/es/_chunks/{dep-e858743b.js.map → dep-1ec3a297.js.map} +1 -1
- package/{esm/_chunks/dep-01e895e5.js → es/_chunks/dep-33d27597.js} +3 -3
- package/{esm/_chunks/dep-01e895e5.js.map → es/_chunks/dep-33d27597.js.map} +1 -1
- package/{esm/_chunks/dep-90151af2.js → es/_chunks/dep-35891477.js} +5 -5
- package/{esm/_chunks/dep-90151af2.js.map → es/_chunks/dep-35891477.js.map} +1 -1
- package/{esm/_chunks/dep-1086af6c.js → es/_chunks/dep-3da8c532.js} +9 -9
- package/{esm/_chunks/dep-1086af6c.js.map → es/_chunks/dep-3da8c532.js.map} +1 -1
- package/es/_chunks/{dep-cdbf6335.js → dep-3e2a0e62.js} +6 -6
- package/{esm/_chunks/dep-cdbf6335.js.map → es/_chunks/dep-3e2a0e62.js.map} +1 -1
- package/{esm/_chunks/dep-6b8768d8.js → es/_chunks/dep-4f913987.js} +4 -4
- package/{esm/_chunks/dep-6b8768d8.js.map → es/_chunks/dep-4f913987.js.map} +1 -1
- package/es/_chunks/{dep-53a3b062.js → dep-5c760193.js} +2 -2
- package/es/_chunks/{dep-53a3b062.js.map → dep-5c760193.js.map} +1 -1
- package/es/_chunks/dep-69e0e6c3.js +8 -0
- package/es/_chunks/dep-69e0e6c3.js.map +1 -0
- package/{esm/_chunks/dep-778d561f.js → es/_chunks/dep-6aea4a72.js} +4 -4
- package/es/_chunks/{dep-778d561f.js.map → dep-6aea4a72.js.map} +1 -1
- package/es/_chunks/{dep-703e4e62.js → dep-6c8424d7.js} +3 -3
- package/{lib/_chunks/dep-fb599a1a.js.map → es/_chunks/dep-6c8424d7.js.map} +1 -1
- package/es/_chunks/{dep-c3e79579.js → dep-6dacf1e7.js} +7 -7
- package/es/_chunks/{dep-c3e79579.js.map → dep-6dacf1e7.js.map} +1 -1
- package/es/_chunks/{dep-5c63b369.js → dep-6e030c19.js} +16 -16
- package/es/_chunks/{dep-5c63b369.js.map → dep-6e030c19.js.map} +1 -1
- package/{esm/_chunks/dep-483ef537.js → es/_chunks/dep-6e074833.js} +16 -16
- package/es/_chunks/{dep-483ef537.js.map → dep-6e074833.js.map} +1 -1
- package/es/_chunks/{dep-ec338634.js → dep-789a9cff.js} +5 -5
- package/{esm/_chunks/dep-ec338634.js.map → es/_chunks/dep-789a9cff.js.map} +1 -1
- package/{esm/_chunks/dep-976487f9.js → es/_chunks/dep-7ac5e481.js} +8 -8
- package/es/_chunks/{dep-976487f9.js.map → dep-7ac5e481.js.map} +1 -1
- package/es/_chunks/{dep-6fae8cf6.js → dep-80125e94.js} +5 -5
- package/es/_chunks/{dep-6fae8cf6.js.map → dep-80125e94.js.map} +1 -1
- package/{esm/_chunks/dep-72a5bdf9.js → es/_chunks/dep-80ab7817.js} +3 -3
- package/es/_chunks/{dep-72a5bdf9.js.map → dep-80ab7817.js.map} +1 -1
- package/es/_chunks/{dep-d95b175f.js → dep-84a7dd49.js} +6 -6
- package/es/_chunks/{dep-d95b175f.js.map → dep-84a7dd49.js.map} +1 -1
- package/es/_chunks/{dep-7aeba7e1.js → dep-880a5ebd.js} +4 -4
- package/{esm/_chunks/dep-7aeba7e1.js.map → es/_chunks/dep-880a5ebd.js.map} +1 -1
- package/{esm/_chunks/dep-8901b13b.js → es/_chunks/dep-89abafca.js} +5 -5
- package/{esm/_chunks/dep-8901b13b.js.map → es/_chunks/dep-89abafca.js.map} +1 -1
- package/{esm/_chunks/dep-a46f5ce1.js → es/_chunks/dep-92ab2a98.js} +11 -11
- package/es/_chunks/{dep-a46f5ce1.js.map → dep-92ab2a98.js.map} +1 -1
- package/{esm/_chunks/dep-b1f46984.js → es/_chunks/dep-990275aa.js} +7 -7
- package/es/_chunks/{dep-b1f46984.js.map → dep-990275aa.js.map} +1 -1
- package/es/_chunks/{dep-08d12fa5.js → dep-9d897185.js} +4 -4
- package/es/_chunks/{dep-08d12fa5.js.map → dep-9d897185.js.map} +1 -1
- package/es/_chunks/{dep-ee339b82.js → dep-9e25e98e.js} +4 -4
- package/es/_chunks/{dep-ee339b82.js.map → dep-9e25e98e.js.map} +1 -1
- package/{esm/_chunks/dep-99bd3c69.js → es/_chunks/dep-a1546474.js} +7 -7
- package/es/_chunks/{dep-99bd3c69.js.map → dep-a1546474.js.map} +1 -1
- package/{esm/_chunks/dep-f2a24fd0.js → es/_chunks/dep-a5b135ae.js} +7 -7
- package/es/_chunks/{dep-f2a24fd0.js.map → dep-a5b135ae.js.map} +1 -1
- package/es/_chunks/{dep-8646f728.js → dep-a716504a.js} +9 -9
- package/{esm/_chunks/dep-8646f728.js.map → es/_chunks/dep-a716504a.js.map} +1 -1
- package/{esm/_chunks/dep-32d6dc59.js → es/_chunks/dep-a9d16482.js} +3 -3
- package/es/_chunks/{dep-32d6dc59.js.map → dep-a9d16482.js.map} +1 -1
- package/es/_chunks/{dep-42df83ef.js → dep-b3f274e6.js} +2 -2
- package/es/_chunks/{dep-42df83ef.js.map → dep-b3f274e6.js.map} +1 -1
- package/es/_chunks/{dep-b7a1cd76.js → dep-bae013d5.js} +6 -6
- package/es/_chunks/{dep-b7a1cd76.js.map → dep-bae013d5.js.map} +1 -1
- package/{esm/_chunks/dep-756250f5.js → es/_chunks/dep-bbc93b3b.js} +5 -5
- package/es/_chunks/{dep-756250f5.js.map → dep-bbc93b3b.js.map} +1 -1
- package/es/_chunks/{dep-e283c6b3.js → dep-bff17e29.js} +7 -7
- package/{esm/_chunks/dep-e283c6b3.js.map → es/_chunks/dep-bff17e29.js.map} +1 -1
- package/es/_chunks/{dep-6ee32959.js → dep-c1b098f3.js} +8 -8
- package/es/_chunks/{dep-6ee32959.js.map → dep-c1b098f3.js.map} +1 -1
- package/{esm/_chunks/dep-a58a853f.js → es/_chunks/dep-c216b563.js} +4 -4
- package/{esm/_chunks/dep-a58a853f.js.map → es/_chunks/dep-c216b563.js.map} +1 -1
- package/{esm/_chunks/dep-f7f5f353.js → es/_chunks/dep-c3351e4f.js} +3 -3
- package/es/_chunks/{dep-f7f5f353.js.map → dep-c3351e4f.js.map} +1 -1
- package/es/_chunks/{dep-a046771b.js → dep-ca0c816a.js} +5 -5
- package/{esm/_chunks/dep-a046771b.js.map → es/_chunks/dep-ca0c816a.js.map} +1 -1
- package/es/_chunks/{dep-cbc08115.js → dep-cae0a320.js} +6 -6
- package/{esm/_chunks/dep-cbc08115.js.map → es/_chunks/dep-cae0a320.js.map} +1 -1
- package/{esm/_chunks/dep-7317a609.js → es/_chunks/dep-d9dba7f7.js} +2 -2
- package/es/_chunks/{dep-7317a609.js.map → dep-d9dba7f7.js.map} +1 -1
- package/{esm/_chunks/dep-a457ec3c.js → es/_chunks/dep-e0619fb9.js} +3 -3
- package/es/_chunks/{dep-a457ec3c.js.map → dep-e0619fb9.js.map} +1 -1
- package/{esm/_chunks/dep-3d94520f.js → es/_chunks/dep-e4b64a7f.js} +3 -3
- package/es/_chunks/{dep-3d94520f.js.map → dep-e4b64a7f.js.map} +1 -1
- package/{esm/_chunks/dep-583810e4.js → es/_chunks/dep-e71391c4.js} +8 -8
- package/es/_chunks/{dep-583810e4.js.map → dep-e71391c4.js.map} +1 -1
- package/{esm/_chunks/dep-500c5336.js → es/_chunks/dep-e75b3a36.js} +13 -13
- package/es/_chunks/{dep-500c5336.js.map → dep-e75b3a36.js.map} +1 -1
- package/es/_chunks/{dep-ace4fe58.js → dep-ecbceda8.js} +2 -2
- package/es/_chunks/{dep-ace4fe58.js.map → dep-ecbceda8.js.map} +1 -1
- package/{esm/_chunks/dep-5a7809fc.js → es/_chunks/dep-ee1680b8.js} +8 -8
- package/es/_chunks/{dep-5a7809fc.js.map → dep-ee1680b8.js.map} +1 -1
- package/es/_chunks/{dep-6abe483c.js → dep-f1a5d7df.js} +4 -4
- package/{esm/_chunks/dep-6abe483c.js.map → es/_chunks/dep-f1a5d7df.js.map} +1 -1
- package/es/_chunks/{dep-009d0f6b.js → dep-f6612745.js} +5 -5
- package/{esm/_chunks/dep-009d0f6b.js.map → es/_chunks/dep-f6612745.js.map} +1 -1
- package/es/_chunks/{dep-f42a5f7d.js → dep-f6ab6501.js} +4 -4
- package/es/_chunks/{dep-f42a5f7d.js.map → dep-f6ab6501.js.map} +1 -1
- package/es/_chunks/{dep-d11cade3.js → dep-fd19ec48.js} +9 -9
- package/{esm/_chunks/dep-d11cade3.js.map → es/_chunks/dep-fd19ec48.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 +35 -35
- package/es/_common/js/tree/types.js +1 -1
- package/es/_common/js/upload/types.js +1 -1
- package/es/_common/js/upload/xhr.js +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/useDefaultValue.js +5 -5
- package/es/_util/useDialogEsc.js +3 -3
- package/es/_util/useDragSorter.js +3 -3
- package/es/_util/useLayoutEffect.js +8 -8
- package/es/_util/useMutationObserver.js +9 -9
- package/es/_util/usePersistFn.js +1 -1
- package/es/_util/usePrevious.js +1 -1
- package/es/_util/useRefAndForward.js +1 -1
- package/es/_util/useRipple.js +22 -22
- package/es/_util/useSetState.js +4 -4
- package/es/_util/useSwitch.js +3 -3
- package/es/_util/useUpdateEffect.js +8 -8
- package/es/_util/useWindowSize.js +4 -4
- package/es/addon/Addon.js +22 -22
- package/es/addon/index.js +22 -22
- package/es/affix/Affix.js +24 -24
- package/es/affix/index.js +24 -24
- package/es/affix/style/index.js +1 -1
- package/es/affix/type.js +1 -1
- package/es/alert/Alert.js +24 -24
- package/es/alert/index.js +24 -24
- package/es/alert/style/index.js +1 -1
- package/es/alert/type.js +1 -1
- package/es/anchor/Anchor.d.ts +1 -1
- package/es/anchor/Anchor.js +36 -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 +28 -28
- 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 +30 -30
- package/es/anchor/style/index.js +1 -1
- package/es/anchor/type.js +1 -1
- package/es/avatar/AvararGroup.js +29 -29
- package/es/avatar/Avatar.js +29 -29
- package/es/avatar/AvatarContext.js +1 -1
- package/es/avatar/index.js +29 -29
- package/es/avatar/style/index.js +1 -1
- package/es/avatar/type.js +1 -1
- package/es/badge/Badge.js +22 -22
- package/es/badge/index.js +22 -22
- package/es/badge/style/index.js +1 -1
- package/es/badge/type.js +1 -1
- package/es/breadcrumb/Breadcrumb.js +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 +42 -42
- package/es/calendar/_util.js +1 -1
- package/es/calendar/index.js +42 -42
- package/es/calendar/style/index.js +1 -1
- package/es/calendar/type.js +1 -1
- package/es/card/type.js +1 -1
- package/es/cascader/Cascader.js +48 -48
- package/es/cascader/components/InputContent.js +31 -31
- package/es/cascader/components/Item.js +35 -35
- package/es/cascader/components/Panel.js +35 -35
- package/es/cascader/components/style/index.js +1 -1
- package/es/cascader/index.js +48 -48
- package/es/cascader/interface.js +27 -27
- package/es/cascader/style/index.js +1 -1
- package/es/cascader/type.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.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 +22 -22
- 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 +52 -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 +35 -35
- package/es/date-picker/panel/Date.js +29 -29
- package/es/date-picker/panel/DateRange.js +29 -29
- package/es/date-picker/panel/style/index.js +1 -1
- package/es/date-picker/style/index.js +1 -1
- package/es/date-picker/type.js +1 -1
- package/es/dialog/Dialog.js +26 -26
- package/es/dialog/RenderDialog.js +24 -24
- 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 +25 -25
- package/es/drawer/DrawerWrapper.js +22 -22
- package/es/drawer/index.js +25 -25
- package/es/drawer/style/index.js +1 -1
- package/es/drawer/type.js +1 -1
- package/es/dropdown/Dropdown.js +40 -40
- package/es/dropdown/DropdownItem.js +30 -30
- package/es/dropdown/DropdownMenu.js +31 -31
- package/es/dropdown/index.js +40 -40
- package/es/dropdown/style/index.js +1 -1
- package/es/dropdown/type.js +1 -1
- package/es/form/Form.js +80 -269
- package/es/form/Form.js.map +1 -1
- package/es/form/FormContext.js +1 -1
- package/es/form/FormItem.js +86 -113
- 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 +59 -57
- package/es/index.js.map +1 -1
- package/es/input/Input.js +31 -29
- 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.js +1 -1
- package/es/input-number/InputNumber.js +30 -30
- package/es/input-number/StepHandler.js +25 -25
- package/es/input-number/index.js +30 -30
- package/es/input-number/style/index.js +1 -1
- package/es/input-number/type.js +1 -1
- package/es/input-number/utils/numberUtils.js +1 -1
- package/es/layout/Aside.js +22 -22
- package/es/layout/Layout.js +24 -24
- package/es/layout/index.js +24 -24
- package/es/layout/style/index.js +1 -1
- package/es/layout/type.js +1 -1
- package/es/list/List.js +25 -25
- package/es/list/ListItem.js +21 -21
- package/es/list/ListItemMeta.js +21 -21
- package/es/list/index.js +25 -25
- package/es/list/style/index.js +1 -1
- package/es/list/type.js +1 -1
- package/es/loading/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 +62 -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 +41 -41
- package/es/pagination/index.js +41 -41
- package/es/pagination/style/index.js +1 -1
- package/es/pagination/type.js +1 -1
- package/es/pagination/validators.js +1 -1
- package/es/popconfirm/PopConfirm.js +28 -28
- package/es/popconfirm/PopContent.js +25 -25
- package/es/popconfirm/index.js +28 -28
- package/es/popconfirm/style/index.js +1 -1
- package/es/popconfirm/type.js +1 -1
- package/es/popup/Popup.js +27 -27
- package/es/popup/hooks/useTriggerProps.js +1 -1
- package/es/popup/index.js +27 -27
- package/es/popup/style/index.js +1 -1
- package/es/popup/type.js +1 -1
- package/es/popup/utils/getTransitionParams.js +1 -1
- package/es/progress/Progress.js +22 -22
- package/es/progress/index.js +22 -22
- package/es/progress/style/index.js +1 -1
- package/es/progress/type.js +1 -1
- package/es/radio/Radio.js +32 -32
- package/es/radio/RadioGroup.js +32 -32
- package/es/radio/index.js +32 -32
- package/es/radio/style/index.js +1 -1
- package/es/radio/type.js +1 -1
- package/es/rate/type.js +1 -1
- package/es/select/base/Option.js +27 -27
- package/es/select/base/OptionGroup.js +21 -21
- package/es/select/base/PopupContent.js +31 -31
- package/es/select/base/Select.js +75 -79
- package/es/select/base/Select.js.map +1 -1
- package/es/select/base/style/index.js +1 -1
- package/es/select/index.js +41 -41
- package/es/select/style/index.css +1 -1
- 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 +42 -40
- package/es/select-input/SelectInput.js.map +1 -1
- package/es/select-input/index.js +39 -39
- 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 +31 -34
- 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 +53 -53
- 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 +40 -35
- package/es/slider/Slider.js.map +1 -1
- package/es/slider/SliderHandleButton.d.ts +1 -0
- package/es/slider/SliderHandleButton.js +36 -34
- package/es/slider/SliderHandleButton.js.map +1 -1
- package/es/slider/index.js +32 -32
- 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 +41 -41
- package/es/table/base/TableAsyncLoadingBody.js +25 -25
- package/es/table/base/TableBody.js +34 -32
- package/es/table/base/TableBody.js.map +1 -1
- package/es/table/base/TableCell.js +27 -27
- package/es/table/base/TableColGroup.js +1 -1
- package/es/table/base/TableContext.js +1 -1
- package/es/table/base/TableEmptyBody.js +23 -23
- package/es/table/base/TableFooter.js +1 -1
- package/es/table/base/TableHeader.js +29 -29
- package/es/table/base/TableLoadingBody.js +6 -6
- package/es/table/base/TableRow.js +31 -31
- package/es/table/base/style/index.js +1 -1
- package/es/table/enhanced/Table.js +43 -43
- package/es/table/enhanced/TableContext.js +1 -1
- package/es/table/enhanced/style/index.js +1 -1
- package/es/table/enhanced/useTree.js +28 -28
- package/es/table/hooks/useColumns.js +4 -4
- package/es/table/index.js +43 -43
- package/es/table/primary/SorterButton.js +28 -28
- package/es/table/primary/Table.js +43 -43
- package/es/table/primary/expand-box.js +21 -21
- package/es/table/primary/style/index.js +1 -1
- package/es/table/primary/useChange.js +2 -2
- package/es/table/primary/useExpand.js +28 -28
- package/es/table/primary/useFilter.js +35 -35
- package/es/table/primary/useFilterButton.js +35 -35
- package/es/table/primary/useSelect.js +35 -35
- package/es/table/primary/useSorter.js +32 -32
- package/es/table/style/index.js +1 -1
- package/es/table/type.js +1 -1
- package/es/table/util/getRowKeyFromRowKey.js +1 -1
- package/es/table/util/index.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 +12 -1
- package/es/tag-input/style/index.js +1 -1
- package/es/tag-input/type.js +1 -1
- package/es/tag-input/useHover.js +3 -3
- package/es/tag-input/useTagList.js +25 -25
- package/es/tag-input/useTagScroll.js +3 -3
- package/es/textarea/Textarea.js +29 -29
- package/es/textarea/index.js +29 -29
- package/es/textarea/style/index.js +1 -1
- package/es/textarea/type.js +1 -1
- package/es/time-picker/InputItems.js +32 -32
- package/es/time-picker/TimePicker.js +36 -36
- package/es/time-picker/TimeRangePicker.js +36 -36
- package/es/time-picker/consts.js +23 -23
- package/es/time-picker/index.js +36 -36
- package/es/time-picker/interfaces.js +1 -1
- package/es/time-picker/panel/SinglePanel.js +32 -32
- package/es/time-picker/panel/TimePickerPanel.js +34 -34
- package/es/time-picker/panel/TimePickerRangePanel.js +34 -34
- package/es/time-picker/panel/style/index.js +1 -1
- package/es/time-picker/style/index.js +1 -1
- package/es/time-picker/type.js +1 -1
- package/es/tooltip/Tooltip.js +28 -28
- package/es/tooltip/index.js +28 -28
- package/es/tooltip/style/index.js +1 -1
- package/es/tooltip/type.js +1 -1
- package/es/transfer/Transfer.js +46 -46
- package/es/transfer/TransferList.js +44 -44
- package/es/transfer/index.js +46 -46
- package/es/transfer/style/index.js +1 -1
- package/es/transfer/type.js +1 -1
- package/es/transfer/utils.js +18 -18
- package/es/tree/Tree.js +47 -47
- package/es/tree/TreeItem.js +32 -32
- package/es/tree/index.js +47 -47
- package/es/tree/interface.js +1 -1
- package/es/tree/style/index.js +1 -1
- package/es/tree/type.js +1 -1
- package/es/tree/useControllable.js +3 -3
- package/es/tree/useStore.js +41 -41
- package/es/tree/useTreeConfig.js +23 -23
- package/es/tree-select/SelectArrow.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 +131 -113
- package/es/tree-select/TreeSelect.js.map +1 -1
- package/es/tree-select/index.js +50 -50
- 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 +26 -26
- package/es/upload/themes/single-file.js +25 -25
- package/es/upload/themes/style/index.js +1 -1
- package/es/upload/tips.js +21 -21
- package/es/upload/type.js +1 -1
- package/es/upload/types.js +1 -1
- package/es/upload/upload-trigger.js +25 -25
- package/es/upload/upload.js +40 -40
- package/es/upload/util.js +1 -1
- package/esm/_chunks/{dep-901feffa.js → dep-00edd605.js} +4 -4
- package/esm/_chunks/{dep-901feffa.js.map → dep-00edd605.js.map} +1 -1
- package/esm/_chunks/{dep-fc0a066c.js → dep-01ecbe32.js} +7 -7
- package/esm/_chunks/{dep-fc0a066c.js.map → dep-01ecbe32.js.map} +1 -1
- package/{es/_chunks/dep-c6449e5a.js → esm/_chunks/dep-104db64f.js} +8 -8
- package/esm/_chunks/{dep-c6449e5a.js.map → dep-104db64f.js.map} +1 -1
- package/{es/_chunks/dep-3a02c1cc.js → esm/_chunks/dep-1450ac72.js} +5 -5
- package/esm/_chunks/{dep-3a02c1cc.js.map → dep-1450ac72.js.map} +1 -1
- package/esm/_chunks/{dep-54ba75b6.js → dep-151f48f7.js} +2 -2
- package/esm/_chunks/dep-151f48f7.js.map +1 -0
- package/{es/_chunks/dep-99f3441a.js → esm/_chunks/dep-18190a86.js} +4 -4
- package/esm/_chunks/{dep-99f3441a.js.map → dep-18190a86.js.map} +1 -1
- package/esm/_chunks/{dep-48e9cf63.js → dep-1baef241.js} +4 -4
- package/esm/_chunks/{dep-48e9cf63.js.map → dep-1baef241.js.map} +1 -1
- package/esm/_chunks/{dep-e858743b.js → dep-1ec3a297.js} +6 -6
- package/esm/_chunks/{dep-e858743b.js.map → dep-1ec3a297.js.map} +1 -1
- package/{es/_chunks/dep-01e895e5.js → esm/_chunks/dep-33d27597.js} +3 -3
- package/{lib/_chunks/dep-3c025b2f.js.map → esm/_chunks/dep-33d27597.js.map} +1 -1
- package/{es/_chunks/dep-90151af2.js → esm/_chunks/dep-35891477.js} +5 -5
- package/{es/_chunks/dep-90151af2.js.map → esm/_chunks/dep-35891477.js.map} +1 -1
- package/{es/_chunks/dep-1086af6c.js → esm/_chunks/dep-3da8c532.js} +9 -9
- package/{es/_chunks/dep-1086af6c.js.map → esm/_chunks/dep-3da8c532.js.map} +1 -1
- package/esm/_chunks/{dep-cdbf6335.js → dep-3e2a0e62.js} +6 -6
- package/{es/_chunks/dep-cdbf6335.js.map → esm/_chunks/dep-3e2a0e62.js.map} +1 -1
- package/{es/_chunks/dep-6b8768d8.js → esm/_chunks/dep-4f913987.js} +4 -4
- package/{es/_chunks/dep-6b8768d8.js.map → esm/_chunks/dep-4f913987.js.map} +1 -1
- package/esm/_chunks/{dep-53a3b062.js → dep-5c760193.js} +2 -2
- package/esm/_chunks/{dep-53a3b062.js.map → dep-5c760193.js.map} +1 -1
- package/esm/_chunks/dep-69e0e6c3.js +8 -0
- package/esm/_chunks/dep-69e0e6c3.js.map +1 -0
- package/{es/_chunks/dep-778d561f.js → esm/_chunks/dep-6aea4a72.js} +4 -4
- package/esm/_chunks/{dep-778d561f.js.map → dep-6aea4a72.js.map} +1 -1
- package/esm/_chunks/{dep-703e4e62.js → dep-6c8424d7.js} +3 -3
- package/{es/_chunks/dep-703e4e62.js.map → esm/_chunks/dep-6c8424d7.js.map} +1 -1
- package/esm/_chunks/{dep-c3e79579.js → dep-6dacf1e7.js} +7 -7
- package/esm/_chunks/{dep-c3e79579.js.map → dep-6dacf1e7.js.map} +1 -1
- package/esm/_chunks/{dep-5c63b369.js → dep-6e030c19.js} +16 -16
- package/esm/_chunks/{dep-5c63b369.js.map → dep-6e030c19.js.map} +1 -1
- package/{es/_chunks/dep-483ef537.js → esm/_chunks/dep-6e074833.js} +16 -16
- package/esm/_chunks/{dep-483ef537.js.map → dep-6e074833.js.map} +1 -1
- package/esm/_chunks/{dep-ec338634.js → dep-789a9cff.js} +5 -5
- package/{es/_chunks/dep-ec338634.js.map → esm/_chunks/dep-789a9cff.js.map} +1 -1
- package/{es/_chunks/dep-976487f9.js → esm/_chunks/dep-7ac5e481.js} +8 -8
- package/esm/_chunks/{dep-976487f9.js.map → dep-7ac5e481.js.map} +1 -1
- package/esm/_chunks/{dep-6fae8cf6.js → dep-80125e94.js} +5 -5
- package/esm/_chunks/{dep-6fae8cf6.js.map → dep-80125e94.js.map} +1 -1
- package/{es/_chunks/dep-72a5bdf9.js → esm/_chunks/dep-80ab7817.js} +3 -3
- package/esm/_chunks/{dep-72a5bdf9.js.map → dep-80ab7817.js.map} +1 -1
- package/esm/_chunks/{dep-d95b175f.js → dep-84a7dd49.js} +6 -6
- package/esm/_chunks/{dep-d95b175f.js.map → dep-84a7dd49.js.map} +1 -1
- package/esm/_chunks/{dep-7aeba7e1.js → dep-880a5ebd.js} +4 -4
- package/{es/_chunks/dep-7aeba7e1.js.map → esm/_chunks/dep-880a5ebd.js.map} +1 -1
- package/{es/_chunks/dep-8901b13b.js → esm/_chunks/dep-89abafca.js} +5 -5
- package/{es/_chunks/dep-8901b13b.js.map → esm/_chunks/dep-89abafca.js.map} +1 -1
- package/{es/_chunks/dep-a46f5ce1.js → esm/_chunks/dep-92ab2a98.js} +11 -11
- package/esm/_chunks/{dep-a46f5ce1.js.map → dep-92ab2a98.js.map} +1 -1
- package/{es/_chunks/dep-b1f46984.js → esm/_chunks/dep-990275aa.js} +7 -7
- package/esm/_chunks/{dep-b1f46984.js.map → dep-990275aa.js.map} +1 -1
- package/esm/_chunks/{dep-08d12fa5.js → dep-9d897185.js} +4 -4
- package/esm/_chunks/{dep-08d12fa5.js.map → dep-9d897185.js.map} +1 -1
- package/esm/_chunks/{dep-ee339b82.js → dep-9e25e98e.js} +4 -4
- package/esm/_chunks/{dep-ee339b82.js.map → dep-9e25e98e.js.map} +1 -1
- package/{es/_chunks/dep-99bd3c69.js → esm/_chunks/dep-a1546474.js} +7 -7
- package/esm/_chunks/{dep-99bd3c69.js.map → dep-a1546474.js.map} +1 -1
- package/{es/_chunks/dep-f2a24fd0.js → esm/_chunks/dep-a5b135ae.js} +7 -7
- package/esm/_chunks/{dep-f2a24fd0.js.map → dep-a5b135ae.js.map} +1 -1
- package/esm/_chunks/{dep-8646f728.js → dep-a716504a.js} +9 -9
- package/{es/_chunks/dep-8646f728.js.map → esm/_chunks/dep-a716504a.js.map} +1 -1
- package/{es/_chunks/dep-32d6dc59.js → esm/_chunks/dep-a9d16482.js} +3 -3
- package/esm/_chunks/{dep-32d6dc59.js.map → dep-a9d16482.js.map} +1 -1
- package/esm/_chunks/{dep-42df83ef.js → dep-b3f274e6.js} +2 -2
- package/esm/_chunks/{dep-42df83ef.js.map → dep-b3f274e6.js.map} +1 -1
- package/esm/_chunks/{dep-b7a1cd76.js → dep-bae013d5.js} +6 -6
- package/esm/_chunks/{dep-b7a1cd76.js.map → dep-bae013d5.js.map} +1 -1
- package/{es/_chunks/dep-756250f5.js → esm/_chunks/dep-bbc93b3b.js} +5 -5
- package/esm/_chunks/{dep-756250f5.js.map → dep-bbc93b3b.js.map} +1 -1
- package/esm/_chunks/{dep-e283c6b3.js → dep-bff17e29.js} +7 -7
- package/{es/_chunks/dep-e283c6b3.js.map → esm/_chunks/dep-bff17e29.js.map} +1 -1
- package/esm/_chunks/{dep-6ee32959.js → dep-c1b098f3.js} +8 -8
- package/esm/_chunks/{dep-6ee32959.js.map → dep-c1b098f3.js.map} +1 -1
- package/{es/_chunks/dep-a58a853f.js → esm/_chunks/dep-c216b563.js} +4 -4
- package/{es/_chunks/dep-a58a853f.js.map → esm/_chunks/dep-c216b563.js.map} +1 -1
- package/{es/_chunks/dep-f7f5f353.js → esm/_chunks/dep-c3351e4f.js} +3 -3
- package/esm/_chunks/{dep-f7f5f353.js.map → dep-c3351e4f.js.map} +1 -1
- package/esm/_chunks/{dep-a046771b.js → dep-ca0c816a.js} +5 -5
- package/{es/_chunks/dep-a046771b.js.map → esm/_chunks/dep-ca0c816a.js.map} +1 -1
- package/esm/_chunks/{dep-cbc08115.js → dep-cae0a320.js} +6 -6
- package/{es/_chunks/dep-cbc08115.js.map → esm/_chunks/dep-cae0a320.js.map} +1 -1
- package/{es/_chunks/dep-7317a609.js → esm/_chunks/dep-d9dba7f7.js} +2 -2
- package/esm/_chunks/{dep-7317a609.js.map → dep-d9dba7f7.js.map} +1 -1
- package/{es/_chunks/dep-a457ec3c.js → esm/_chunks/dep-e0619fb9.js} +3 -3
- package/esm/_chunks/{dep-a457ec3c.js.map → dep-e0619fb9.js.map} +1 -1
- package/{es/_chunks/dep-3d94520f.js → esm/_chunks/dep-e4b64a7f.js} +3 -3
- package/esm/_chunks/{dep-3d94520f.js.map → dep-e4b64a7f.js.map} +1 -1
- package/{es/_chunks/dep-583810e4.js → esm/_chunks/dep-e71391c4.js} +8 -8
- package/esm/_chunks/{dep-583810e4.js.map → dep-e71391c4.js.map} +1 -1
- package/{es/_chunks/dep-500c5336.js → esm/_chunks/dep-e75b3a36.js} +13 -13
- package/esm/_chunks/{dep-500c5336.js.map → dep-e75b3a36.js.map} +1 -1
- package/esm/_chunks/{dep-ace4fe58.js → dep-ecbceda8.js} +2 -2
- package/esm/_chunks/{dep-ace4fe58.js.map → dep-ecbceda8.js.map} +1 -1
- package/{es/_chunks/dep-5a7809fc.js → esm/_chunks/dep-ee1680b8.js} +8 -8
- package/esm/_chunks/{dep-5a7809fc.js.map → dep-ee1680b8.js.map} +1 -1
- package/esm/_chunks/{dep-6abe483c.js → dep-f1a5d7df.js} +4 -4
- package/{es/_chunks/dep-6abe483c.js.map → esm/_chunks/dep-f1a5d7df.js.map} +1 -1
- package/esm/_chunks/{dep-009d0f6b.js → dep-f6612745.js} +5 -5
- package/{es/_chunks/dep-009d0f6b.js.map → esm/_chunks/dep-f6612745.js.map} +1 -1
- package/esm/_chunks/{dep-f42a5f7d.js → dep-f6ab6501.js} +4 -4
- package/esm/_chunks/{dep-f42a5f7d.js.map → dep-f6ab6501.js.map} +1 -1
- package/esm/_chunks/{dep-d11cade3.js → dep-fd19ec48.js} +9 -9
- package/{es/_chunks/dep-d11cade3.js.map → esm/_chunks/dep-fd19ec48.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 +35 -35
- package/esm/_common/js/tree/types.js +1 -1
- package/esm/_common/js/upload/types.js +1 -1
- package/esm/_common/js/upload/xhr.js +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/color-picker/_index.less +8 -6
- package/esm/_common/style/web/components/color-picker/_var.less +1 -1
- package/esm/_common/style/web/components/form/_mixin.less +23 -3
- 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/select/_index.less +6 -1
- 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 +17 -1
- 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/useDefaultValue.js +5 -5
- package/esm/_util/useDialogEsc.js +3 -3
- package/esm/_util/useDragSorter.js +3 -3
- package/esm/_util/useLayoutEffect.js +8 -8
- package/esm/_util/useMutationObserver.js +9 -9
- package/esm/_util/usePersistFn.js +1 -1
- package/esm/_util/usePrevious.js +1 -1
- package/esm/_util/useRefAndForward.js +1 -1
- package/esm/_util/useRipple.js +22 -22
- package/esm/_util/useSetState.js +4 -4
- package/esm/_util/useSwitch.js +3 -3
- package/esm/_util/useUpdateEffect.js +8 -8
- package/esm/_util/useWindowSize.js +4 -4
- package/esm/addon/Addon.js +22 -22
- package/esm/addon/index.js +22 -22
- package/esm/affix/Affix.js +24 -24
- package/esm/affix/index.js +24 -24
- package/esm/affix/type.js +1 -1
- package/esm/alert/Alert.js +24 -24
- package/esm/alert/index.js +24 -24
- package/esm/alert/type.js +1 -1
- package/esm/anchor/Anchor.d.ts +1 -1
- package/esm/anchor/Anchor.js +36 -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 +28 -28
- 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 +30 -30
- package/esm/anchor/type.js +1 -1
- package/esm/avatar/AvararGroup.js +29 -29
- package/esm/avatar/Avatar.js +29 -29
- package/esm/avatar/AvatarContext.js +1 -1
- package/esm/avatar/index.js +29 -29
- package/esm/avatar/type.js +1 -1
- package/esm/badge/Badge.js +22 -22
- package/esm/badge/index.js +22 -22
- package/esm/badge/type.js +1 -1
- package/esm/breadcrumb/Breadcrumb.js +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 +42 -42
- package/esm/calendar/_util.js +1 -1
- package/esm/calendar/index.js +42 -42
- package/esm/calendar/type.js +1 -1
- package/esm/card/type.js +1 -1
- package/esm/cascader/Cascader.js +48 -48
- package/esm/cascader/components/InputContent.js +31 -31
- package/esm/cascader/components/Item.js +35 -35
- package/esm/cascader/components/Panel.js +35 -35
- package/esm/cascader/index.js +48 -48
- package/esm/cascader/interface.js +27 -27
- package/esm/cascader/type.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 +22 -22
- 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 +52 -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 +35 -35
- package/esm/date-picker/panel/Date.js +29 -29
- package/esm/date-picker/panel/DateRange.js +29 -29
- package/esm/date-picker/type.js +1 -1
- package/esm/dialog/Dialog.js +26 -26
- package/esm/dialog/RenderDialog.js +24 -24
- 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 +25 -25
- package/esm/drawer/DrawerWrapper.js +22 -22
- package/esm/drawer/index.js +25 -25
- package/esm/drawer/type.js +1 -1
- package/esm/dropdown/Dropdown.js +40 -40
- package/esm/dropdown/DropdownItem.js +30 -30
- package/esm/dropdown/DropdownMenu.js +31 -31
- package/esm/dropdown/index.js +40 -40
- package/esm/dropdown/type.js +1 -1
- package/esm/form/Form.js +80 -269
- package/esm/form/Form.js.map +1 -1
- package/esm/form/FormContext.js +1 -1
- package/esm/form/FormItem.js +86 -113
- 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 +59 -57
- package/esm/index.js.map +1 -1
- package/esm/input/Input.js +31 -29
- 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.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 +41 -41
- package/esm/pagination/index.js +41 -41
- package/esm/pagination/type.js +1 -1
- package/esm/pagination/validators.js +1 -1
- package/esm/popconfirm/PopConfirm.js +28 -28
- package/esm/popconfirm/PopContent.js +25 -25
- package/esm/popconfirm/index.js +28 -28
- package/esm/popconfirm/type.js +1 -1
- package/esm/popup/Popup.js +27 -27
- package/esm/popup/hooks/useTriggerProps.js +1 -1
- package/esm/popup/index.js +27 -27
- package/esm/popup/type.js +1 -1
- package/esm/popup/utils/getTransitionParams.js +1 -1
- package/esm/progress/Progress.js +22 -22
- package/esm/progress/index.js +22 -22
- package/esm/progress/type.js +1 -1
- package/esm/radio/Radio.js +32 -32
- package/esm/radio/RadioGroup.js +32 -32
- package/esm/radio/index.js +32 -32
- package/esm/radio/type.js +1 -1
- package/esm/rate/type.js +1 -1
- package/esm/select/base/Option.js +27 -27
- package/esm/select/base/OptionGroup.js +21 -21
- package/esm/select/base/PopupContent.js +31 -31
- package/esm/select/base/Select.js +75 -79
- package/esm/select/base/Select.js.map +1 -1
- package/esm/select/index.js +41 -41
- package/esm/select/type.js +1 -1
- package/esm/select/util/helper.js +29 -29
- package/esm/select-input/SelectInput.js +42 -40
- package/esm/select-input/SelectInput.js.map +1 -1
- package/esm/select-input/index.js +39 -39
- package/esm/select-input/type.d.ts +2 -2
- package/esm/select-input/type.js +1 -1
- package/esm/select-input/useMultiple.js +31 -34
- 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 +53 -53
- 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 +40 -35
- package/esm/slider/Slider.js.map +1 -1
- package/esm/slider/SliderHandleButton.d.ts +1 -0
- package/esm/slider/SliderHandleButton.js +36 -34
- package/esm/slider/SliderHandleButton.js.map +1 -1
- package/esm/slider/index.js +32 -32
- 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 +41 -41
- package/esm/table/base/TableAsyncLoadingBody.js +25 -25
- package/esm/table/base/TableBody.js +34 -32
- package/esm/table/base/TableBody.js.map +1 -1
- package/esm/table/base/TableCell.js +27 -27
- package/esm/table/base/TableColGroup.js +1 -1
- package/esm/table/base/TableContext.js +1 -1
- package/esm/table/base/TableEmptyBody.js +23 -23
- package/esm/table/base/TableFooter.js +1 -1
- package/esm/table/base/TableHeader.js +29 -29
- package/esm/table/base/TableLoadingBody.js +6 -6
- package/esm/table/base/TableRow.js +31 -31
- package/esm/table/enhanced/Table.js +43 -43
- package/esm/table/enhanced/TableContext.js +1 -1
- package/esm/table/enhanced/useTree.js +28 -28
- package/esm/table/hooks/useColumns.js +4 -4
- package/esm/table/index.js +43 -43
- package/esm/table/primary/SorterButton.js +28 -28
- package/esm/table/primary/Table.js +43 -43
- package/esm/table/primary/expand-box.js +21 -21
- package/esm/table/primary/useChange.js +2 -2
- package/esm/table/primary/useExpand.js +28 -28
- package/esm/table/primary/useFilter.js +35 -35
- package/esm/table/primary/useFilterButton.js +35 -35
- package/esm/table/primary/useSelect.js +35 -35
- package/esm/table/primary/useSorter.js +32 -32
- package/esm/table/type.js +1 -1
- package/esm/table/util/getRowKeyFromRowKey.js +1 -1
- package/esm/table/util/index.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 +25 -25
- package/esm/tag-input/useTagScroll.js +3 -3
- package/esm/textarea/Textarea.js +29 -29
- package/esm/textarea/index.js +29 -29
- package/esm/textarea/type.js +1 -1
- package/esm/time-picker/InputItems.js +32 -32
- package/esm/time-picker/TimePicker.js +36 -36
- package/esm/time-picker/TimeRangePicker.js +36 -36
- package/esm/time-picker/consts.js +23 -23
- package/esm/time-picker/index.js +36 -36
- package/esm/time-picker/interfaces.js +1 -1
- package/esm/time-picker/panel/SinglePanel.js +32 -32
- package/esm/time-picker/panel/TimePickerPanel.js +34 -34
- package/esm/time-picker/panel/TimePickerRangePanel.js +34 -34
- package/esm/time-picker/type.js +1 -1
- package/esm/tooltip/Tooltip.js +28 -28
- package/esm/tooltip/index.js +28 -28
- package/esm/tooltip/type.js +1 -1
- package/esm/transfer/Transfer.js +46 -46
- package/esm/transfer/TransferList.js +44 -44
- package/esm/transfer/index.js +46 -46
- package/esm/transfer/type.js +1 -1
- package/esm/transfer/utils.js +18 -18
- package/esm/tree/Tree.js +47 -47
- package/esm/tree/TreeItem.js +32 -32
- package/esm/tree/index.js +47 -47
- package/esm/tree/interface.js +1 -1
- package/esm/tree/type.js +1 -1
- package/esm/tree/useControllable.js +3 -3
- package/esm/tree/useStore.js +41 -41
- package/esm/tree/useTreeConfig.js +23 -23
- package/esm/tree-select/SelectArrow.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 +131 -113
- package/esm/tree-select/TreeSelect.js.map +1 -1
- package/esm/tree-select/index.js +50 -50
- 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 +26 -26
- package/esm/upload/themes/single-file.js +25 -25
- package/esm/upload/tips.js +21 -21
- 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 +40 -40
- package/esm/upload/util.js +1 -1
- package/lib/_chunks/{dep-5e04b2b0.js → dep-06ac7d27.js} +14 -14
- package/lib/_chunks/{dep-5e04b2b0.js.map → dep-06ac7d27.js.map} +1 -1
- package/lib/_chunks/{dep-b94c629b.js → dep-071eed34.js} +7 -7
- package/lib/_chunks/{dep-b94c629b.js.map → dep-071eed34.js.map} +1 -1
- package/lib/_chunks/{dep-12da16d1.js → dep-0901df83.js} +2 -2
- package/lib/_chunks/{dep-12da16d1.js.map → dep-0901df83.js.map} +1 -1
- package/lib/_chunks/{dep-7f9724f7.js → dep-0bc46dde.js} +3 -3
- package/lib/_chunks/{dep-7f9724f7.js.map → dep-0bc46dde.js.map} +1 -1
- package/lib/_chunks/{dep-b08bc9c8.js → dep-10264c5e.js} +5 -5
- package/lib/_chunks/{dep-b08bc9c8.js.map → dep-10264c5e.js.map} +1 -1
- package/lib/_chunks/{dep-db0608d9.js → dep-10608f6b.js} +5 -5
- package/lib/_chunks/{dep-db0608d9.js.map → dep-10608f6b.js.map} +1 -1
- package/lib/_chunks/{dep-2b752931.js → dep-11f28bb0.js} +5 -5
- package/lib/_chunks/{dep-2b752931.js.map → dep-11f28bb0.js.map} +1 -1
- package/lib/_chunks/{dep-e808a005.js → dep-16f57fd2.js} +3 -3
- package/lib/_chunks/{dep-e808a005.js.map → dep-16f57fd2.js.map} +1 -1
- package/lib/_chunks/{dep-9dd5189a.js → dep-215b525a.js} +3 -3
- package/lib/_chunks/{dep-9dd5189a.js.map → dep-215b525a.js.map} +1 -1
- package/lib/_chunks/{dep-3fff0864.js → dep-2322df0f.js} +7 -7
- package/lib/_chunks/{dep-3fff0864.js.map → dep-2322df0f.js.map} +1 -1
- package/lib/_chunks/{dep-ee83c39e.js → dep-2666fce8.js} +7 -7
- package/lib/_chunks/{dep-ee83c39e.js.map → dep-2666fce8.js.map} +1 -1
- package/lib/_chunks/{dep-a47a838f.js → dep-2b5f881a.js} +2 -2
- package/lib/_chunks/{dep-a47a838f.js.map → dep-2b5f881a.js.map} +1 -1
- package/lib/_chunks/{dep-970d5d55.js → dep-2f77971b.js} +3 -3
- package/lib/_chunks/{dep-970d5d55.js.map → dep-2f77971b.js.map} +1 -1
- package/lib/_chunks/{dep-6984609c.js → dep-3202f2a6.js} +4 -4
- package/lib/_chunks/{dep-6984609c.js.map → dep-3202f2a6.js.map} +1 -1
- package/lib/_chunks/{dep-69e5c80a.js → dep-33d435f0.js} +3 -3
- package/lib/_chunks/{dep-69e5c80a.js.map → dep-33d435f0.js.map} +1 -1
- package/lib/_chunks/{dep-8f00b98c.js → dep-35de0117.js} +3 -3
- package/lib/_chunks/{dep-8f00b98c.js.map → dep-35de0117.js.map} +1 -1
- package/lib/_chunks/{dep-eb057d83.js → dep-370910f8.js} +6 -6
- package/lib/_chunks/{dep-eb057d83.js.map → dep-370910f8.js.map} +1 -1
- package/lib/_chunks/{dep-a73ce995.js → dep-379b3fe2.js} +7 -7
- package/lib/_chunks/{dep-a73ce995.js.map → dep-379b3fe2.js.map} +1 -1
- package/lib/_chunks/{dep-737aa0f3.js → dep-3e000c29.js} +5 -5
- package/lib/_chunks/{dep-737aa0f3.js.map → dep-3e000c29.js.map} +1 -1
- package/lib/_chunks/{dep-20f6923d.js → dep-44b93460.js} +4 -4
- package/lib/_chunks/{dep-20f6923d.js.map → dep-44b93460.js.map} +1 -1
- package/lib/_chunks/{dep-bb11bb62.js → dep-47dec67d.js} +2 -2
- package/lib/_chunks/{dep-bb11bb62.js.map → dep-47dec67d.js.map} +1 -1
- package/lib/_chunks/{dep-e5f11335.js → dep-4ba13b21.js} +4 -4
- package/lib/_chunks/{dep-e5f11335.js.map → dep-4ba13b21.js.map} +1 -1
- package/lib/_chunks/{dep-18233ff2.js → dep-4e175c8d.js} +6 -6
- package/lib/_chunks/{dep-18233ff2.js.map → dep-4e175c8d.js.map} +1 -1
- package/lib/_chunks/{dep-1ad343a0.js → dep-4f5d9d47.js} +4 -4
- package/lib/_chunks/{dep-1ad343a0.js.map → dep-4f5d9d47.js.map} +1 -1
- package/lib/_chunks/{dep-3e45dc37.js → dep-5d3f16ca.js} +5 -5
- package/lib/_chunks/{dep-3e45dc37.js.map → dep-5d3f16ca.js.map} +1 -1
- package/lib/_chunks/{dep-73856d5c.js → dep-606e8b68.js} +7 -7
- package/lib/_chunks/{dep-73856d5c.js.map → dep-606e8b68.js.map} +1 -1
- package/lib/_chunks/{dep-54c988d8.js → dep-65d64731.js} +2 -2
- package/lib/_chunks/{dep-54c988d8.js.map → dep-65d64731.js.map} +1 -1
- package/lib/_chunks/{dep-87edf3ba.js → dep-6a145cca.js} +5 -5
- package/lib/_chunks/{dep-87edf3ba.js.map → dep-6a145cca.js.map} +1 -1
- package/lib/_chunks/{dep-7089b727.js → dep-71e4d21e.js} +2 -2
- package/lib/_chunks/{dep-7089b727.js.map → dep-71e4d21e.js.map} +1 -1
- package/lib/_chunks/{dep-bc85dc8a.js → dep-7f8549d2.js} +6 -6
- package/lib/_chunks/{dep-bc85dc8a.js.map → dep-7f8549d2.js.map} +1 -1
- package/lib/_chunks/{dep-52d82d14.js → dep-81e00bf6.js} +5 -5
- package/lib/_chunks/{dep-52d82d14.js.map → dep-81e00bf6.js.map} +1 -1
- package/lib/_chunks/{dep-d4780c69.js → dep-8d2f3689.js} +2 -2
- package/lib/_chunks/{dep-d4780c69.js.map → dep-8d2f3689.js.map} +1 -1
- package/lib/_chunks/{dep-58869e22.js → dep-8d7bb976.js} +6 -6
- package/lib/_chunks/{dep-58869e22.js.map → dep-8d7bb976.js.map} +1 -1
- package/lib/_chunks/{dep-eaf27329.js → dep-95a06c78.js} +11 -11
- package/lib/_chunks/{dep-eaf27329.js.map → dep-95a06c78.js.map} +1 -1
- package/lib/_chunks/{dep-77fade41.js → dep-98c40b75.js} +5 -5
- package/lib/_chunks/{dep-77fade41.js.map → dep-98c40b75.js.map} +1 -1
- package/lib/_chunks/{dep-65e40b52.js → dep-a49e4831.js} +2 -2
- package/lib/_chunks/{dep-65e40b52.js.map → dep-a49e4831.js.map} +1 -1
- package/lib/_chunks/{dep-700584bd.js → dep-a5ecb0cc.js} +6 -6
- package/lib/_chunks/{dep-700584bd.js.map → dep-a5ecb0cc.js.map} +1 -1
- package/lib/_chunks/{dep-b960cdf8.js → dep-b4bfb8c5.js} +4 -4
- package/lib/_chunks/{dep-b960cdf8.js.map → dep-b4bfb8c5.js.map} +1 -1
- package/lib/_chunks/{dep-083bef0a.js → dep-b738a380.js} +9 -9
- package/lib/_chunks/{dep-083bef0a.js.map → dep-b738a380.js.map} +1 -1
- package/lib/_chunks/{dep-2ee63f2f.js → dep-bd4553de.js} +4 -4
- package/lib/_chunks/{dep-2ee63f2f.js.map → dep-bd4553de.js.map} +1 -1
- package/lib/_chunks/{dep-883a1165.js → dep-c31c68ba.js} +4 -4
- package/lib/_chunks/{dep-883a1165.js.map → dep-c31c68ba.js.map} +1 -1
- package/lib/_chunks/{dep-966008a5.js → dep-c3b52abc.js} +3 -3
- package/lib/_chunks/{dep-966008a5.js.map → dep-c3b52abc.js.map} +1 -1
- package/lib/_chunks/{dep-fc96926a.js → dep-cb7fd82c.js} +6 -6
- package/lib/_chunks/{dep-fc96926a.js.map → dep-cb7fd82c.js.map} +1 -1
- package/lib/_chunks/{dep-c54cbc49.js → dep-cbb89a09.js} +3 -3
- package/lib/_chunks/{dep-c54cbc49.js.map → dep-cbb89a09.js.map} +1 -1
- package/lib/_chunks/{dep-66a91ad2.js → dep-d1988ef8.js} +13 -13
- package/lib/_chunks/{dep-66a91ad2.js.map → dep-d1988ef8.js.map} +1 -1
- package/lib/_chunks/{dep-3c025b2f.js → dep-d236783a.js} +2 -2
- package/{es/_chunks/dep-01e895e5.js.map → lib/_chunks/dep-d236783a.js.map} +1 -1
- package/lib/_chunks/{dep-fb599a1a.js → dep-d49ca178.js} +2 -2
- package/{esm/_chunks/dep-703e4e62.js.map → lib/_chunks/dep-d49ca178.js.map} +1 -1
- package/lib/_chunks/{dep-afebaf15.js → dep-da451f3b.js} +3 -3
- package/lib/_chunks/{dep-afebaf15.js.map → dep-da451f3b.js.map} +1 -1
- package/lib/_chunks/{dep-11fae696.js → dep-dd4cdb4a.js} +6 -6
- package/lib/_chunks/{dep-11fae696.js.map → dep-dd4cdb4a.js.map} +1 -1
- package/lib/_chunks/{dep-6ac1a948.js → dep-e7da1f6b.js} +3 -3
- package/lib/_chunks/{dep-6ac1a948.js.map → dep-e7da1f6b.js.map} +1 -1
- package/lib/_chunks/{dep-6c32e38a.js → dep-f13e42f8.js} +7 -7
- package/lib/_chunks/{dep-6c32e38a.js.map → dep-f13e42f8.js.map} +1 -1
- package/lib/_chunks/{dep-c4e5ba06.js → dep-fb7fc9f7.js} +2 -2
- package/lib/_chunks/{dep-c4e5ba06.js.map → dep-fb7fc9f7.js.map} +1 -1
- package/lib/_chunks/{dep-294a4324.js → dep-ff62dc6c.js} +3 -3
- package/lib/_chunks/{dep-294a4324.js.map → dep-ff62dc6c.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 +33 -33
- package/lib/_common/js/tree/types.js +1 -1
- package/lib/_common/js/upload/types.js +1 -1
- package/lib/_common/js/upload/xhr.js +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/useDefaultValue.js +5 -5
- package/lib/_util/useDialogEsc.js +3 -3
- package/lib/_util/useDragSorter.js +3 -3
- package/lib/_util/useLayoutEffect.js +6 -6
- package/lib/_util/useMutationObserver.js +8 -8
- package/lib/_util/usePersistFn.js +1 -1
- package/lib/_util/usePrevious.js +1 -1
- package/lib/_util/useRefAndForward.js +1 -1
- package/lib/_util/useRipple.js +20 -20
- package/lib/_util/useSetState.js +4 -4
- package/lib/_util/useSwitch.js +3 -3
- package/lib/_util/useUpdateEffect.js +6 -6
- package/lib/_util/useWindowSize.js +4 -4
- package/lib/addon/Addon.js +20 -20
- package/lib/addon/index.js +20 -20
- package/lib/affix/Affix.js +22 -22
- package/lib/affix/index.js +22 -22
- package/lib/affix/type.js +1 -1
- package/lib/alert/Alert.js +22 -22
- package/lib/alert/index.js +22 -22
- package/lib/alert/type.js +1 -1
- package/lib/anchor/Anchor.d.ts +1 -1
- package/lib/anchor/Anchor.js +34 -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 +26 -26
- 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 +28 -28
- package/lib/anchor/type.js +1 -1
- package/lib/avatar/AvararGroup.js +27 -27
- package/lib/avatar/Avatar.js +27 -27
- package/lib/avatar/AvatarContext.js +1 -1
- package/lib/avatar/index.js +27 -27
- package/lib/avatar/type.js +1 -1
- package/lib/badge/Badge.js +20 -20
- package/lib/badge/index.js +20 -20
- package/lib/badge/type.js +1 -1
- package/lib/breadcrumb/Breadcrumb.js +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 +40 -40
- package/lib/calendar/_util.js +1 -1
- package/lib/calendar/index.js +40 -40
- package/lib/calendar/type.js +1 -1
- package/lib/card/type.js +1 -1
- package/lib/cascader/Cascader.js +46 -46
- package/lib/cascader/components/InputContent.js +29 -29
- package/lib/cascader/components/Item.js +33 -33
- package/lib/cascader/components/Panel.js +33 -33
- package/lib/cascader/index.js +46 -46
- package/lib/cascader/interface.js +25 -25
- package/lib/cascader/type.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 +20 -20
- 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 +50 -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 +33 -33
- package/lib/date-picker/panel/Date.js +27 -27
- package/lib/date-picker/panel/DateRange.js +27 -27
- package/lib/date-picker/type.js +1 -1
- package/lib/dialog/Dialog.js +24 -24
- package/lib/dialog/RenderDialog.js +22 -22
- 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 +23 -23
- package/lib/drawer/DrawerWrapper.js +20 -20
- package/lib/drawer/index.js +23 -23
- package/lib/drawer/type.js +1 -1
- package/lib/dropdown/Dropdown.js +38 -38
- package/lib/dropdown/DropdownItem.js +28 -28
- package/lib/dropdown/DropdownMenu.js +29 -29
- package/lib/dropdown/index.js +38 -38
- package/lib/dropdown/type.js +1 -1
- package/lib/form/Form.js +78 -267
- package/lib/form/Form.js.map +1 -1
- package/lib/form/FormContext.js +1 -1
- package/lib/form/FormItem.js +84 -111
- 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 +57 -55
- package/lib/index-lib.js.map +1 -1
- package/lib/index.js +57 -55
- package/lib/index.js.map +1 -1
- package/lib/input/Input.js +29 -27
- 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.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 +39 -39
- package/lib/pagination/index.js +39 -39
- package/lib/pagination/type.js +1 -1
- package/lib/pagination/validators.js +1 -1
- package/lib/popconfirm/PopConfirm.js +26 -26
- package/lib/popconfirm/PopContent.js +23 -23
- package/lib/popconfirm/index.js +26 -26
- package/lib/popconfirm/type.js +1 -1
- package/lib/popup/Popup.js +25 -25
- package/lib/popup/hooks/useTriggerProps.js +1 -1
- package/lib/popup/index.js +25 -25
- package/lib/popup/type.js +1 -1
- package/lib/popup/utils/getTransitionParams.js +1 -1
- package/lib/progress/Progress.js +20 -20
- package/lib/progress/index.js +20 -20
- package/lib/progress/type.js +1 -1
- package/lib/radio/Radio.js +30 -30
- package/lib/radio/RadioGroup.js +30 -30
- package/lib/radio/index.js +30 -30
- package/lib/radio/type.js +1 -1
- package/lib/rate/type.js +1 -1
- package/lib/select/base/Option.js +25 -25
- package/lib/select/base/OptionGroup.js +19 -19
- package/lib/select/base/PopupContent.js +29 -29
- package/lib/select/base/Select.js +73 -77
- package/lib/select/base/Select.js.map +1 -1
- package/lib/select/index.js +39 -39
- package/lib/select/type.js +1 -1
- package/lib/select/util/helper.js +27 -27
- package/lib/select-input/SelectInput.js +40 -38
- package/lib/select-input/SelectInput.js.map +1 -1
- package/lib/select-input/index.js +37 -37
- package/lib/select-input/type.d.ts +2 -2
- package/lib/select-input/type.js +1 -1
- package/lib/select-input/useMultiple.js +29 -32
- 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 +50 -50
- 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 +38 -33
- package/lib/slider/Slider.js.map +1 -1
- package/lib/slider/SliderHandleButton.d.ts +1 -0
- package/lib/slider/SliderHandleButton.js +34 -32
- package/lib/slider/SliderHandleButton.js.map +1 -1
- package/lib/slider/index.js +30 -30
- 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 +39 -39
- package/lib/table/base/TableAsyncLoadingBody.js +23 -23
- package/lib/table/base/TableBody.js +32 -30
- package/lib/table/base/TableBody.js.map +1 -1
- package/lib/table/base/TableCell.js +25 -25
- package/lib/table/base/TableColGroup.js +1 -1
- package/lib/table/base/TableContext.js +1 -1
- package/lib/table/base/TableEmptyBody.js +21 -21
- package/lib/table/base/TableFooter.js +1 -1
- package/lib/table/base/TableHeader.js +27 -27
- package/lib/table/base/TableLoadingBody.js +5 -5
- package/lib/table/base/TableRow.js +29 -29
- package/lib/table/enhanced/Table.js +41 -41
- package/lib/table/enhanced/TableContext.js +1 -1
- package/lib/table/enhanced/useTree.js +26 -26
- package/lib/table/hooks/useColumns.js +4 -4
- package/lib/table/index.js +41 -41
- package/lib/table/primary/SorterButton.js +26 -26
- package/lib/table/primary/Table.js +41 -41
- package/lib/table/primary/expand-box.js +19 -19
- package/lib/table/primary/useChange.js +2 -2
- package/lib/table/primary/useExpand.js +26 -26
- package/lib/table/primary/useFilter.js +33 -33
- package/lib/table/primary/useFilterButton.js +33 -33
- package/lib/table/primary/useSelect.js +33 -33
- package/lib/table/primary/useSorter.js +30 -30
- package/lib/table/type.js +1 -1
- package/lib/table/util/getRowKeyFromRowKey.js +1 -1
- package/lib/table/util/index.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 +23 -23
- package/lib/tag-input/useTagScroll.js +3 -3
- package/lib/textarea/Textarea.js +27 -27
- package/lib/textarea/index.js +27 -27
- package/lib/textarea/type.js +1 -1
- package/lib/time-picker/InputItems.js +30 -30
- package/lib/time-picker/TimePicker.js +34 -34
- package/lib/time-picker/TimeRangePicker.js +34 -34
- package/lib/time-picker/consts.js +21 -21
- package/lib/time-picker/index.js +34 -34
- package/lib/time-picker/interfaces.js +1 -1
- package/lib/time-picker/panel/SinglePanel.js +30 -30
- package/lib/time-picker/panel/TimePickerPanel.js +32 -32
- package/lib/time-picker/panel/TimePickerRangePanel.js +32 -32
- package/lib/time-picker/type.js +1 -1
- package/lib/tooltip/Tooltip.js +26 -26
- package/lib/tooltip/index.js +26 -26
- package/lib/tooltip/type.js +1 -1
- package/lib/transfer/Transfer.js +44 -44
- package/lib/transfer/TransferList.js +42 -42
- package/lib/transfer/index.js +44 -44
- package/lib/transfer/type.js +1 -1
- package/lib/transfer/utils.js +16 -16
- package/lib/tree/Tree.js +45 -45
- package/lib/tree/TreeItem.js +30 -30
- package/lib/tree/index.js +45 -45
- package/lib/tree/interface.js +1 -1
- package/lib/tree/type.js +1 -1
- package/lib/tree/useControllable.js +3 -3
- package/lib/tree/useStore.js +39 -39
- package/lib/tree/useTreeConfig.js +21 -21
- package/lib/tree-select/SelectArrow.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 +128 -110
- package/lib/tree-select/TreeSelect.js.map +1 -1
- package/lib/tree-select/index.js +48 -48
- 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 +24 -24
- package/lib/upload/themes/single-file.js +23 -23
- package/lib/upload/tips.js +19 -19
- 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 +38 -38
- package/lib/upload/util.js +1 -1
- package/package.json +3 -3
- package/es/_chunks/dep-54ba75b6.js.map +0 -1
- package/es/_chunks/dep-a613ac9b.js +0 -8
- package/es/_chunks/dep-a613ac9b.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-54ba75b6.js.map +0 -1
- package/esm/_chunks/dep-a613ac9b.js +0 -8
- package/esm/_chunks/dep-a613ac9b.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/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.28.0
|
|
3
3
|
* (c) 2022 tdesign
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
@@ -3524,6 +3524,11 @@
|
|
|
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
3533
|
var _excluded$s = ["align", "gutter", "justify", "tag", "style", "className", "children"];
|
|
3529
3534
|
|
|
@@ -3532,20 +3537,25 @@
|
|
|
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;
|
|
@@ -13131,6 +13141,7 @@
|
|
|
13131
13141
|
}
|
|
13132
13142
|
|
|
13133
13143
|
function handleFocus(e) {
|
|
13144
|
+
if (readonly) return;
|
|
13134
13145
|
var value2 = e.currentTarget.value;
|
|
13135
13146
|
onFocus === null || onFocus === void 0 ? void 0 : onFocus(value2, {
|
|
13136
13147
|
e: e
|
|
@@ -13139,6 +13150,7 @@
|
|
|
13139
13150
|
}
|
|
13140
13151
|
|
|
13141
13152
|
function handleBlur(e) {
|
|
13153
|
+
if (readonly) return;
|
|
13142
13154
|
var value2 = e.currentTarget.value;
|
|
13143
13155
|
format && onChange(format(value2), {
|
|
13144
13156
|
e: e
|
|
@@ -15912,6 +15924,8 @@
|
|
|
15912
15924
|
}
|
|
15913
15925
|
|
|
15914
15926
|
function useSingle(props) {
|
|
15927
|
+
var _props$defaultInputVa;
|
|
15928
|
+
|
|
15915
15929
|
var value = props.value,
|
|
15916
15930
|
keys = props.keys,
|
|
15917
15931
|
loading = props.loading,
|
|
@@ -15922,10 +15936,10 @@
|
|
|
15922
15936
|
|
|
15923
15937
|
var inputRef = React.useRef();
|
|
15924
15938
|
|
|
15925
|
-
var
|
|
15926
|
-
|
|
15927
|
-
inputValue =
|
|
15928
|
-
setInputValue =
|
|
15939
|
+
var _useDefault = useDefault(props.inputValue, (_props$defaultInputVa = props.defaultInputValue) !== null && _props$defaultInputVa !== void 0 ? _props$defaultInputVa : "", props.onInputChange),
|
|
15940
|
+
_useDefault2 = _slicedToArray(_useDefault, 2),
|
|
15941
|
+
inputValue = _useDefault2[0],
|
|
15942
|
+
setInputValue = _useDefault2[1];
|
|
15929
15943
|
|
|
15930
15944
|
var showLoading = React.useMemo(function () {
|
|
15931
15945
|
return !disabled && loading;
|
|
@@ -15943,34 +15957,30 @@
|
|
|
15943
15957
|
|
|
15944
15958
|
context === null || context === void 0 ? void 0 : (_context$e = context.e) === null || _context$e === void 0 ? void 0 : _context$e.stopPropagation();
|
|
15945
15959
|
(_props$onClear = props.onClear) === null || _props$onClear === void 0 ? void 0 : _props$onClear.call(props, context);
|
|
15946
|
-
setInputValue(""
|
|
15960
|
+
setInputValue("", {
|
|
15961
|
+
trigger: "clear"
|
|
15962
|
+
});
|
|
15947
15963
|
};
|
|
15948
15964
|
|
|
15949
15965
|
var onInnerInputChange = function onInnerInputChange(value2, context) {
|
|
15950
15966
|
if (props.allowInput) {
|
|
15951
|
-
|
|
15952
|
-
|
|
15953
|
-
setInputValue(value2);
|
|
15954
|
-
(_props$onInputChange = props.onInputChange) === null || _props$onInputChange === void 0 ? void 0 : _props$onInputChange.call(props, value2, _objectSpread$1d(_objectSpread$1d({}, context), {}, {
|
|
15967
|
+
setInputValue(value2, _objectSpread$1d(_objectSpread$1d({}, context), {}, {
|
|
15955
15968
|
trigger: "input"
|
|
15956
15969
|
}));
|
|
15957
15970
|
}
|
|
15958
15971
|
};
|
|
15959
15972
|
|
|
15960
|
-
React.useEffect(function () {
|
|
15961
|
-
setInputValue(getInputValue(value, keys));
|
|
15962
|
-
}, [keys, value]);
|
|
15963
|
-
|
|
15964
15973
|
var renderSelectSingle = function renderSelectSingle(popupVisible) {
|
|
15965
15974
|
var _props$inputProps;
|
|
15966
15975
|
|
|
15967
15976
|
var singleValueDisplay = !props.multiple ? props.valueDisplay : null;
|
|
15977
|
+
var displayedValue = popupVisible && props.allowInput ? inputValue : getInputValue(value, keys);
|
|
15968
15978
|
return /* @__PURE__ */React__default["default"].createElement(Input, _objectSpread$1d(_objectSpread$1d(_objectSpread$1d({
|
|
15969
15979
|
ref: inputRef
|
|
15970
15980
|
}, commonInputProps), {}, {
|
|
15971
15981
|
autoWidth: props.borderless || props.autoWidth,
|
|
15972
15982
|
placeholder: singleValueDisplay ? "" : props.placeholder,
|
|
15973
|
-
value: singleValueDisplay ? void 0 :
|
|
15983
|
+
value: singleValueDisplay ? void 0 : displayedValue,
|
|
15974
15984
|
label: /* @__PURE__ */React__default["default"].createElement(React__default["default"].Fragment, null, props.label, singleValueDisplay),
|
|
15975
15985
|
onChange: onInnerInputChange,
|
|
15976
15986
|
readonly: !props.allowInput,
|
|
@@ -15981,7 +15991,6 @@
|
|
|
15981
15991
|
(_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 ? void 0 : _props$onBlur.call(props, value, _objectSpread$1d(_objectSpread$1d({}, context), {}, {
|
|
15982
15992
|
inputValue: val
|
|
15983
15993
|
}));
|
|
15984
|
-
setInputValue(getInputValue(value, keys));
|
|
15985
15994
|
},
|
|
15986
15995
|
onFocus: function onFocus(val, context) {
|
|
15987
15996
|
var _props$onFocus;
|
|
@@ -15989,6 +15998,9 @@
|
|
|
15989
15998
|
(_props$onFocus = props.onFocus) === null || _props$onFocus === void 0 ? void 0 : _props$onFocus.call(props, value, _objectSpread$1d(_objectSpread$1d({}, context), {}, {
|
|
15990
15999
|
inputValue: val
|
|
15991
16000
|
}));
|
|
16001
|
+
!popupVisible && setInputValue(getInputValue(value, keys), _objectSpread$1d(_objectSpread$1d({}, context), {}, {
|
|
16002
|
+
trigger: "input"
|
|
16003
|
+
}));
|
|
15992
16004
|
}
|
|
15993
16005
|
}, props.inputProps), {}, {
|
|
15994
16006
|
className: classNames$1((_props$inputProps = props.inputProps) === null || _props$inputProps === void 0 ? void 0 : _props$inputProps.className, _defineProperty$2({}, "".concat(classPrefix, "-input--focused"), popupVisible))
|
|
@@ -26020,6 +26032,8 @@
|
|
|
26020
26032
|
|
|
26021
26033
|
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; }
|
|
26022
26034
|
var TagInput$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
26035
|
+
var _ref;
|
|
26036
|
+
|
|
26023
26037
|
var _useConfig = useConfig$1(),
|
|
26024
26038
|
prefix = _useConfig.classPrefix;
|
|
26025
26039
|
|
|
@@ -26080,9 +26094,9 @@
|
|
|
26080
26094
|
renderLabel = _useTagList.renderLabel;
|
|
26081
26095
|
|
|
26082
26096
|
var NAME_CLASS = "".concat(prefix, "-tag-input");
|
|
26097
|
+
var WITH_SUFFIX_ICON_CLASS = "".concat(prefix, "-tag-input__with-suffix-icon");
|
|
26083
26098
|
var CLEAR_CLASS = "".concat(prefix, "-tag-input__suffix-clear");
|
|
26084
26099
|
var BREAK_LINE_CLASS = "".concat(prefix, "-tag-input--break-line");
|
|
26085
|
-
var classes = [NAME_CLASS, _defineProperty$2({}, BREAK_LINE_CLASS, excessTagsDisplayType === "break-line"), props.className];
|
|
26086
26100
|
var tagInputPlaceholder = !(tagValue !== null && tagValue !== void 0 && tagValue.length) ? placeholder : "";
|
|
26087
26101
|
var showClearIcon = Boolean(!readonly && !disabled && clearable && isHover && (tagValue === null || tagValue === void 0 ? void 0 : tagValue.length));
|
|
26088
26102
|
React.useImperativeHandle(ref, function () {
|
|
@@ -26126,6 +26140,7 @@
|
|
|
26126
26140
|
});
|
|
26127
26141
|
}
|
|
26128
26142
|
}) : valueDisplay;
|
|
26143
|
+
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];
|
|
26129
26144
|
return /* @__PURE__ */React__default["default"].createElement(Input, _objectSpread$19(_objectSpread$19({
|
|
26130
26145
|
ref: tagInputRef
|
|
26131
26146
|
}, inputProps), {}, {
|
|
@@ -26237,7 +26252,7 @@
|
|
|
26237
26252
|
return /* @__PURE__ */React__default["default"].createElement(TagInput, _objectSpread$18(_objectSpread$18(_objectSpread$18({
|
|
26238
26253
|
ref: tagInputRef
|
|
26239
26254
|
}, p.commonInputProps), {}, {
|
|
26240
|
-
readonly: !props.allowInput,
|
|
26255
|
+
readonly: !props.allowInput || props.readonly,
|
|
26241
26256
|
autoWidth: props.borderless || props.autoWidth,
|
|
26242
26257
|
minCollapsedNum: props.minCollapsedNum,
|
|
26243
26258
|
collapsedItems: props.collapsedItems,
|
|
@@ -26262,9 +26277,6 @@
|
|
|
26262
26277
|
(_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 ? void 0 : _props$onBlur.call(props, props.value, _objectSpread$18(_objectSpread$18({}, context), {}, {
|
|
26263
26278
|
tagInputValue: val
|
|
26264
26279
|
}));
|
|
26265
|
-
setTInputValue("", _objectSpread$18(_objectSpread$18({}, context), {}, {
|
|
26266
|
-
trigger: "blur"
|
|
26267
|
-
}));
|
|
26268
26280
|
},
|
|
26269
26281
|
onFocus: function onFocus(val, context) {
|
|
26270
26282
|
var _props$onFocus;
|
|
@@ -26292,7 +26304,8 @@
|
|
|
26292
26304
|
var MAX_POPUP_WIDTH = 1e3;
|
|
26293
26305
|
function useOverlayStyle(props) {
|
|
26294
26306
|
var popupProps = props.popupProps,
|
|
26295
|
-
borderless = props.borderless
|
|
26307
|
+
borderless = props.borderless,
|
|
26308
|
+
autoWidth = props.autoWidth;
|
|
26296
26309
|
|
|
26297
26310
|
var _useState = React.useState(false),
|
|
26298
26311
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -26317,6 +26330,7 @@
|
|
|
26317
26330
|
var onInnerPopupVisibleChange = function onInnerPopupVisibleChange(visible, context) {
|
|
26318
26331
|
var _props$onPopupVisible;
|
|
26319
26332
|
|
|
26333
|
+
if (props.readonly) return;
|
|
26320
26334
|
var newVisible = context.trigger === "trigger-element-click" ? true : visible;
|
|
26321
26335
|
setInnerPopupVisible(newVisible);
|
|
26322
26336
|
(_props$onPopupVisible = props.onPopupVisibleChange) === null || _props$onPopupVisible === void 0 ? void 0 : _props$onPopupVisible.call(props, newVisible, context);
|
|
@@ -26328,7 +26342,7 @@
|
|
|
26328
26342
|
|
|
26329
26343
|
if (isFunction_1(overlayStyle) || isObject_1(overlayStyle) && overlayStyle.width) {
|
|
26330
26344
|
result = overlayStyle;
|
|
26331
|
-
} else if (!borderless) {
|
|
26345
|
+
} else if (!borderless && !autoWidth) {
|
|
26332
26346
|
result = macthWidthFunc;
|
|
26333
26347
|
}
|
|
26334
26348
|
|
|
@@ -26357,7 +26371,8 @@
|
|
|
26357
26371
|
value = props.value,
|
|
26358
26372
|
popupVisible = props.popupVisible,
|
|
26359
26373
|
popupProps = props.popupProps,
|
|
26360
|
-
borderless = props.borderless
|
|
26374
|
+
borderless = props.borderless,
|
|
26375
|
+
disabled = props.disabled;
|
|
26361
26376
|
|
|
26362
26377
|
var _useOverlayStyle = useOverlayStyle(props),
|
|
26363
26378
|
tOverlayStyle = _useOverlayStyle.tOverlayStyle,
|
|
@@ -26391,6 +26406,7 @@
|
|
|
26391
26406
|
hideEmptyPopup: true,
|
|
26392
26407
|
onVisibleChange: onInnerPopupVisibleChange
|
|
26393
26408
|
}, visibleProps), popupProps), {}, {
|
|
26409
|
+
disabled: disabled,
|
|
26394
26410
|
overlayStyle: tOverlayStyle
|
|
26395
26411
|
}), multiple ? renderSelectMultiple({
|
|
26396
26412
|
commonInputProps: commonInputProps,
|
|
@@ -26601,8 +26617,6 @@
|
|
|
26601
26617
|
onVisibleChange = props.onVisibleChange,
|
|
26602
26618
|
_props$showArrow = props.showArrow,
|
|
26603
26619
|
showArrow = _props$showArrow === void 0 ? true : _props$showArrow,
|
|
26604
|
-
inputValue = props.inputValue,
|
|
26605
|
-
defaultInputValue = props.defaultInputValue,
|
|
26606
26620
|
inputProps = props.inputProps,
|
|
26607
26621
|
panelBottomContent = props.panelBottomContent,
|
|
26608
26622
|
panelTopContent = props.panelTopContent,
|
|
@@ -26625,30 +26639,30 @@
|
|
|
26625
26639
|
showPopup = _useState2[0],
|
|
26626
26640
|
setShowPopup = _useState2[1];
|
|
26627
26641
|
|
|
26628
|
-
var
|
|
26642
|
+
var _useDefault3 = useDefault(props.inputValue, props.defaultInputValue, props.onInputChange),
|
|
26643
|
+
_useDefault4 = _slicedToArray(_useDefault3, 2),
|
|
26644
|
+
inputValue = _useDefault4[0],
|
|
26645
|
+
onInputChange = _useDefault4[1];
|
|
26646
|
+
|
|
26647
|
+
var _useState3 = React.useState([]),
|
|
26629
26648
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
26630
|
-
|
|
26631
|
-
|
|
26649
|
+
currentOptions = _useState4[0],
|
|
26650
|
+
setCurrentOptions = _useState4[1];
|
|
26632
26651
|
|
|
26633
26652
|
var _useState5 = React.useState([]),
|
|
26634
26653
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
26635
|
-
|
|
26636
|
-
|
|
26654
|
+
tmpPropOptions = _useState6[0],
|
|
26655
|
+
setTmpPropOptions = _useState6[1];
|
|
26637
26656
|
|
|
26638
|
-
var _useState7 = React.useState(
|
|
26657
|
+
var _useState7 = React.useState({}),
|
|
26639
26658
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
26640
|
-
|
|
26641
|
-
|
|
26659
|
+
valueToOption = _useState8[0],
|
|
26660
|
+
setValueToOption = _useState8[1];
|
|
26642
26661
|
|
|
26643
|
-
var _useState9 = React.useState(
|
|
26662
|
+
var _useState9 = React.useState([]),
|
|
26644
26663
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
26645
|
-
|
|
26646
|
-
|
|
26647
|
-
|
|
26648
|
-
var _useState11 = React.useState([]),
|
|
26649
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
26650
|
-
selectedOptions = _useState12[0],
|
|
26651
|
-
setSelectedOptions = _useState12[1];
|
|
26664
|
+
selectedOptions = _useState10[0],
|
|
26665
|
+
setSelectedOptions = _useState10[1];
|
|
26652
26666
|
|
|
26653
26667
|
var selectedLabel = React.useMemo(function () {
|
|
26654
26668
|
if (multiple) {
|
|
@@ -26715,10 +26729,7 @@
|
|
|
26715
26729
|
if (disabled) return;
|
|
26716
26730
|
setShowPopup(visible);
|
|
26717
26731
|
onVisibleChange === null || onVisibleChange === void 0 ? void 0 : onVisibleChange(visible);
|
|
26718
|
-
|
|
26719
|
-
if (!visible && !multiple && filterable) {
|
|
26720
|
-
setInputVal(selectedLabel);
|
|
26721
|
-
}
|
|
26732
|
+
visible && onInputChange("");
|
|
26722
26733
|
};
|
|
26723
26734
|
|
|
26724
26735
|
var onTagChange = function onTagChange(currentTags, context) {
|
|
@@ -26758,11 +26769,11 @@
|
|
|
26758
26769
|
}
|
|
26759
26770
|
};
|
|
26760
26771
|
|
|
26761
|
-
var handleChange = function handleChange(value2
|
|
26762
|
-
|
|
26763
|
-
|
|
26764
|
-
|
|
26765
|
-
|
|
26772
|
+
var handleChange = function handleChange(value2) {
|
|
26773
|
+
if (multiple) {
|
|
26774
|
+
!reserveKeyword && onInputChange("", {
|
|
26775
|
+
trigger: "clear"
|
|
26776
|
+
});
|
|
26766
26777
|
}
|
|
26767
26778
|
|
|
26768
26779
|
if (creatable && isFunction_1(onCreate)) {
|
|
@@ -26773,7 +26784,7 @@
|
|
|
26773
26784
|
}
|
|
26774
26785
|
}
|
|
26775
26786
|
|
|
26776
|
-
onChange ? onChange(value2, null)
|
|
26787
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(value2, null);
|
|
26777
26788
|
};
|
|
26778
26789
|
|
|
26779
26790
|
var handleFilter = function handleFilter(value2) {
|
|
@@ -26808,14 +26819,12 @@
|
|
|
26808
26819
|
};
|
|
26809
26820
|
|
|
26810
26821
|
var handleInputChange = function handleInputChange(value2) {
|
|
26811
|
-
|
|
26822
|
+
onInputChange(value2);
|
|
26812
26823
|
|
|
26813
26824
|
if (isFunction_1(onSearch)) {
|
|
26814
26825
|
onSearch(value2);
|
|
26815
26826
|
return;
|
|
26816
26827
|
}
|
|
26817
|
-
|
|
26818
|
-
handleFilter(value2);
|
|
26819
26828
|
};
|
|
26820
26829
|
|
|
26821
26830
|
var onClearValue = function onClearValue(context) {
|
|
@@ -26827,10 +26836,14 @@
|
|
|
26827
26836
|
onChange(null, context);
|
|
26828
26837
|
}
|
|
26829
26838
|
|
|
26830
|
-
|
|
26839
|
+
onInputChange(void 0);
|
|
26831
26840
|
onClear(context);
|
|
26832
26841
|
};
|
|
26833
26842
|
|
|
26843
|
+
React.useEffect(function () {
|
|
26844
|
+
handleFilter(String(inputValue));
|
|
26845
|
+
}, [inputValue]);
|
|
26846
|
+
|
|
26834
26847
|
var renderSuffixIcon = function renderSuffixIcon() {
|
|
26835
26848
|
if (loading) {
|
|
26836
26849
|
return /* @__PURE__ */React__default["default"].createElement(Loading, {
|
|
@@ -26877,8 +26890,8 @@
|
|
|
26877
26890
|
}
|
|
26878
26891
|
|
|
26879
26892
|
if (multiple) {
|
|
26880
|
-
return function (
|
|
26881
|
-
var onClose =
|
|
26893
|
+
return function (_ref3) {
|
|
26894
|
+
var onClose = _ref3.onClose;
|
|
26882
26895
|
return valueDisplay({
|
|
26883
26896
|
value: selectedLabel,
|
|
26884
26897
|
onClose: onClose
|
|
@@ -26911,7 +26924,7 @@
|
|
|
26911
26924
|
readonly: readonly,
|
|
26912
26925
|
allowInput: multiple || filterable,
|
|
26913
26926
|
multiple: multiple,
|
|
26914
|
-
value:
|
|
26927
|
+
value: selectedLabel,
|
|
26915
26928
|
valueDisplay: renderValueDisplay(),
|
|
26916
26929
|
clearable: clearable,
|
|
26917
26930
|
disabled: disabled,
|
|
@@ -26919,9 +26932,8 @@
|
|
|
26919
26932
|
label: prefixIcon,
|
|
26920
26933
|
suffixIcon: renderSuffixIcon(),
|
|
26921
26934
|
panel: renderContent(),
|
|
26922
|
-
placeholder: placeholder || t(local.placeholder),
|
|
26923
|
-
inputValue: inputValue,
|
|
26924
|
-
defaultInputValue: defaultInputValue,
|
|
26935
|
+
placeholder: !multiple && showPopup && selectedLabel ? selectedLabel : placeholder || t(local.placeholder),
|
|
26936
|
+
inputValue: showPopup ? inputValue : "",
|
|
26925
26937
|
tagInputProps: _objectSpread$14({}, tagInputProps),
|
|
26926
26938
|
tagProps: tagProps,
|
|
26927
26939
|
inputProps: _objectSpread$14({
|
|
@@ -28047,7 +28059,9 @@
|
|
|
28047
28059
|
getRowEventsRef.current = getRowEvents;
|
|
28048
28060
|
var rows = React.useMemo(function () {
|
|
28049
28061
|
return flattenVisibleData.map(function (row, index) {
|
|
28050
|
-
var
|
|
28062
|
+
var _get;
|
|
28063
|
+
|
|
28064
|
+
var rowKeyValue = (_get = get_1(row, rowKey)) !== null && _get !== void 0 ? _get : index;
|
|
28051
28065
|
var rowEvents = getRowEventsRef.current(row, index);
|
|
28052
28066
|
return /* @__PURE__ */React__default["default"].createElement(React__default["default"].Fragment, {
|
|
28053
28067
|
key: rowKeyValue
|
|
@@ -36839,7 +36853,7 @@
|
|
|
36839
36853
|
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; }
|
|
36840
36854
|
|
|
36841
36855
|
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; }
|
|
36842
|
-
var useTreeSelectUtils = function useTreeSelectUtils(_ref,
|
|
36856
|
+
var useTreeSelectUtils = function useTreeSelectUtils(_ref, treeRef) {
|
|
36843
36857
|
var data = _ref.data,
|
|
36844
36858
|
treeProps = _ref.treeProps,
|
|
36845
36859
|
valueType = _ref.valueType;
|
|
@@ -36851,8 +36865,8 @@
|
|
|
36851
36865
|
var getNodeItem = usePersistFn(function (value) {
|
|
36852
36866
|
var _defaultStore$getNode;
|
|
36853
36867
|
|
|
36854
|
-
if (
|
|
36855
|
-
return
|
|
36868
|
+
if (treeRef.current) {
|
|
36869
|
+
return treeRef.current.getItem(value);
|
|
36856
36870
|
}
|
|
36857
36871
|
|
|
36858
36872
|
return (_defaultStore$getNode = defaultStore.getNode(value)) === null || _defaultStore$getNode === void 0 ? void 0 : _defaultStore$getNode.getModel();
|
|
@@ -36883,7 +36897,7 @@
|
|
|
36883
36897
|
};
|
|
36884
36898
|
};
|
|
36885
36899
|
|
|
36886
|
-
var
|
|
36900
|
+
var SelectArrow = function SelectArrow(_ref) {
|
|
36887
36901
|
var _classNames;
|
|
36888
36902
|
|
|
36889
36903
|
var isActive = _ref.isActive,
|
|
@@ -36900,7 +36914,7 @@
|
|
|
36900
36914
|
});
|
|
36901
36915
|
};
|
|
36902
36916
|
|
|
36903
|
-
var SelectInputPassthroughPropsKey = ["multiple", "style", "disabled", "minCollapsedNum", "popupProps", "clearable", "loading"];
|
|
36917
|
+
var SelectInputPassthroughPropsKey = ["multiple", "style", "disabled", "minCollapsedNum", "popupProps", "clearable", "loading", "autoWidth", "borderless", "readonly"];
|
|
36904
36918
|
var useTreeSelectPassThroughProps = function useTreeSelectPassThroughProps(props) {
|
|
36905
36919
|
return pick_1(props, SelectInputPassthroughPropsKey);
|
|
36906
36920
|
};
|
|
@@ -36964,6 +36978,10 @@
|
|
|
36964
36978
|
classPrefix = _useConfig.classPrefix;
|
|
36965
36979
|
|
|
36966
36980
|
var className = props.className,
|
|
36981
|
+
inputValue = props.inputValue,
|
|
36982
|
+
defaultInputValue = props.defaultInputValue,
|
|
36983
|
+
onInputChange = props.onInputChange,
|
|
36984
|
+
readonly = props.readonly,
|
|
36967
36985
|
disabled = props.disabled,
|
|
36968
36986
|
multiple = props.multiple,
|
|
36969
36987
|
prefixIcon = props.prefixIcon,
|
|
@@ -36979,6 +36997,7 @@
|
|
|
36979
36997
|
onClear = props.onClear,
|
|
36980
36998
|
valueDisplay = props.valueDisplay,
|
|
36981
36999
|
treeProps = props.treeProps,
|
|
37000
|
+
inputProps = props.inputProps,
|
|
36982
37001
|
onBlur = props.onBlur,
|
|
36983
37002
|
onFocus = props.onFocus,
|
|
36984
37003
|
onSearch = props.onSearch,
|
|
@@ -36990,90 +37009,95 @@
|
|
|
36990
37009
|
value = _useDefault2[0],
|
|
36991
37010
|
onChange = _useDefault2[1];
|
|
36992
37011
|
|
|
37012
|
+
var _useDefault3 = useDefault(props.popupVisible, false, props.onPopupVisibleChange),
|
|
37013
|
+
_useDefault4 = _slicedToArray(_useDefault3, 2),
|
|
37014
|
+
popupVisible = _useDefault4[0],
|
|
37015
|
+
setPopupVisble = _useDefault4[1];
|
|
37016
|
+
|
|
36993
37017
|
var _useSwitch = useSwitch(),
|
|
36994
37018
|
_useSwitch2 = _slicedToArray(_useSwitch, 2),
|
|
36995
|
-
|
|
36996
|
-
|
|
37019
|
+
hover = _useSwitch2[0],
|
|
37020
|
+
hoverAction = _useSwitch2[1];
|
|
36997
37021
|
|
|
36998
|
-
var
|
|
36999
|
-
|
|
37000
|
-
|
|
37001
|
-
|
|
37002
|
-
|
|
37003
|
-
var _useState = React.useState(""),
|
|
37004
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
37005
|
-
filterInput = _useState2[0],
|
|
37006
|
-
setFilterInput = _useState2[1];
|
|
37022
|
+
var _useDefault5 = useDefault(inputValue, defaultInputValue, onInputChange),
|
|
37023
|
+
_useDefault6 = _slicedToArray(_useDefault5, 2),
|
|
37024
|
+
filterInput = _useDefault6[0],
|
|
37025
|
+
setFilterInput = _useDefault6[1];
|
|
37007
37026
|
|
|
37008
|
-
var
|
|
37027
|
+
var treeRef = React.useRef();
|
|
37009
37028
|
|
|
37010
|
-
var _useTreeSelectUtils = useTreeSelectUtils(props,
|
|
37029
|
+
var _useTreeSelectUtils = useTreeSelectUtils(props, treeRef),
|
|
37011
37030
|
normalizeValue = _useTreeSelectUtils.normalizeValue,
|
|
37012
37031
|
formatValue = _useTreeSelectUtils.formatValue,
|
|
37013
37032
|
getNodeItem = _useTreeSelectUtils.getNodeItem;
|
|
37014
37033
|
|
|
37015
|
-
var filterable =
|
|
37016
|
-
return rawFilterable || !!props.filter;
|
|
37017
|
-
}, [props.filter, rawFilterable]);
|
|
37034
|
+
var filterable = rawFilterable || !!props.filter;
|
|
37018
37035
|
var normalizedValue = React.useMemo(function () {
|
|
37019
|
-
return (multiple ? value : [value]).
|
|
37020
|
-
var
|
|
37021
|
-
|
|
37022
|
-
|
|
37036
|
+
return (multiple ? value : [value]).reduce(function (result, value2) {
|
|
37037
|
+
var normalized = normalizeValue(value2);
|
|
37038
|
+
normalized.value && result.push(normalized);
|
|
37039
|
+
return result;
|
|
37040
|
+
}, []);
|
|
37023
37041
|
}, [multiple, normalizeValue, value]);
|
|
37024
|
-
var filterText =
|
|
37025
|
-
|
|
37026
|
-
}, [filterInput]);
|
|
37027
|
-
var inputValue = React.useMemo(function () {
|
|
37042
|
+
var filterText = String(filterInput);
|
|
37043
|
+
var internalInputValue = React.useMemo(function () {
|
|
37028
37044
|
if (multiple) return normalizedValue;
|
|
37029
37045
|
return filterable && popupVisible ? filterText : normalizedValue[0];
|
|
37030
37046
|
}, [multiple, normalizedValue, filterable, popupVisible, filterText]);
|
|
37031
37047
|
var inputPlaceholader = React.useMemo(function () {
|
|
37032
37048
|
if (filterable && !multiple && popupVisible && normalizedValue.length) {
|
|
37033
|
-
return typeof normalizedValue[0].label === "string" ? normalizedValue[0].label : normalizedValue[0].value;
|
|
37049
|
+
return typeof normalizedValue[0].label === "string" ? normalizedValue[0].label : String(normalizedValue[0].value);
|
|
37034
37050
|
}
|
|
37035
37051
|
|
|
37036
37052
|
return placeholder;
|
|
37037
37053
|
}, [filterable, multiple, popupVisible, normalizedValue, placeholder]);
|
|
37038
|
-
var showLoading =
|
|
37039
|
-
|
|
37040
|
-
}, [loading, disabled]);
|
|
37041
|
-
var showFakePlaceholder = React.useMemo(function () {
|
|
37042
|
-
return multiple && !filterable && !normalizedValue.length;
|
|
37043
|
-
}, [filterable, multiple, normalizedValue]);
|
|
37054
|
+
var showLoading = !disabled && loading;
|
|
37055
|
+
var showFakePlaceholder = multiple && !filterable && !normalizedValue.length;
|
|
37044
37056
|
var handleFilter = React.useCallback(function (node) {
|
|
37045
37057
|
return filterable ? filter(filterText, node) : true;
|
|
37046
37058
|
}, [filter, filterText, filterable]);
|
|
37047
37059
|
var handleSingleChange = usePersistFn(function (value2, context) {
|
|
37048
37060
|
var $value = value2.length ? value2[0] : null;
|
|
37049
|
-
onChange(formatValue($value, context.node.label), context)
|
|
37050
|
-
|
|
37061
|
+
onChange(formatValue($value, context.node.label), _objectSpread$v(_objectSpread$v({}, context), {}, {
|
|
37062
|
+
trigger: $value === null ? "uncheck" : "check"
|
|
37063
|
+
}));
|
|
37064
|
+
setPopupVisble(false, {
|
|
37065
|
+
trigger: "trigger-element-click"
|
|
37066
|
+
});
|
|
37051
37067
|
});
|
|
37052
37068
|
var handleMultiChange = usePersistFn(function (value2, context) {
|
|
37053
37069
|
(max === 0 || value2.length <= max) && onChange(value2.map(function (value3) {
|
|
37054
37070
|
var _getNodeItem;
|
|
37055
37071
|
|
|
37056
37072
|
return formatValue(value3, (_getNodeItem = getNodeItem(value3)) === null || _getNodeItem === void 0 ? void 0 : _getNodeItem.label);
|
|
37057
|
-
}), context)
|
|
37073
|
+
}), _objectSpread$v(_objectSpread$v({}, context), {}, {
|
|
37074
|
+
trigger: value2.length > normalizedValue.length ? "check" : "uncheck"
|
|
37075
|
+
}));
|
|
37058
37076
|
});
|
|
37059
37077
|
var handleClear = usePersistFn(function (ctx) {
|
|
37060
37078
|
ctx.e.stopPropagation();
|
|
37061
37079
|
onChange(multiple ? [] : formatValue(null), {
|
|
37062
|
-
node: null
|
|
37080
|
+
node: null,
|
|
37081
|
+
trigger: "clear",
|
|
37082
|
+
e: ctx.e
|
|
37063
37083
|
});
|
|
37064
37084
|
onClear === null || onClear === void 0 ? void 0 : onClear(ctx);
|
|
37065
|
-
|
|
37085
|
+
setPopupVisble(false, {
|
|
37086
|
+
trigger: "trigger-element-click"
|
|
37087
|
+
});
|
|
37066
37088
|
});
|
|
37067
37089
|
var handleRemove = usePersistFn(function (index, e) {
|
|
37068
37090
|
var node = getNodeItem(normalizedValue[index].value);
|
|
37069
37091
|
onChange(normalizedValue.filter(function (value2, i) {
|
|
37070
37092
|
return i !== index;
|
|
37071
|
-
}).map(function (
|
|
37072
|
-
var value2 =
|
|
37073
|
-
label =
|
|
37093
|
+
}).map(function (_ref) {
|
|
37094
|
+
var value2 = _ref.value,
|
|
37095
|
+
label = _ref.label;
|
|
37074
37096
|
return formatValue(value2, label);
|
|
37075
37097
|
}), {
|
|
37076
|
-
node: node
|
|
37098
|
+
node: node,
|
|
37099
|
+
trigger: "tag-remove",
|
|
37100
|
+
e: e
|
|
37077
37101
|
});
|
|
37078
37102
|
onRemove === null || onRemove === void 0 ? void 0 : onRemove({
|
|
37079
37103
|
value: node.value,
|
|
@@ -37115,20 +37139,21 @@
|
|
|
37115
37139
|
var handleEnter = usePersistFn(function (text) {
|
|
37116
37140
|
onSearch === null || onSearch === void 0 ? void 0 : onSearch(text);
|
|
37117
37141
|
});
|
|
37118
|
-
var handleFilterChange = usePersistFn(function (value2
|
|
37119
|
-
|
|
37120
|
-
|
|
37121
|
-
if (trigger !== "blur") {
|
|
37122
|
-
setFilterInput(value2);
|
|
37123
|
-
}
|
|
37142
|
+
var handleFilterChange = usePersistFn(function (value2) {
|
|
37143
|
+
return setFilterInput(value2);
|
|
37124
37144
|
});
|
|
37125
37145
|
React.useEffect(function () {
|
|
37126
37146
|
popupVisible && setFilterInput("");
|
|
37127
37147
|
}, [popupVisible]);
|
|
37148
|
+
React.useEffect(function () {
|
|
37149
|
+
setFilterInput("");
|
|
37150
|
+
}, [value]);
|
|
37128
37151
|
|
|
37129
37152
|
var renderTree = function renderTree() {
|
|
37130
|
-
|
|
37131
|
-
|
|
37153
|
+
if (readonly) return empty;
|
|
37154
|
+
if (showLoading) return loadingItem;
|
|
37155
|
+
return /* @__PURE__ */React__default["default"].createElement(Tree, _objectSpread$v(_objectSpread$v({
|
|
37156
|
+
ref: treeRef,
|
|
37132
37157
|
hover: true,
|
|
37133
37158
|
transition: true,
|
|
37134
37159
|
expandAll: true,
|
|
@@ -37139,14 +37164,14 @@
|
|
|
37139
37164
|
}, multiple ? {
|
|
37140
37165
|
checkable: true,
|
|
37141
37166
|
onChange: handleMultiChange,
|
|
37142
|
-
value: normalizedValue.map(function (
|
|
37143
|
-
var value2 =
|
|
37167
|
+
value: normalizedValue.map(function (_ref2) {
|
|
37168
|
+
var value2 = _ref2.value;
|
|
37144
37169
|
return value2;
|
|
37145
37170
|
})
|
|
37146
37171
|
} : {
|
|
37147
37172
|
activable: true,
|
|
37148
|
-
actived: normalizedValue.map(function (
|
|
37149
|
-
var value2 =
|
|
37173
|
+
actived: normalizedValue.map(function (_ref3) {
|
|
37174
|
+
var value2 = _ref3.value;
|
|
37150
37175
|
return value2;
|
|
37151
37176
|
}),
|
|
37152
37177
|
onActive: handleSingleChange
|
|
@@ -37170,8 +37195,9 @@
|
|
|
37170
37195
|
};
|
|
37171
37196
|
|
|
37172
37197
|
var normalizedValueDisplay = function normalizedValueDisplay() {
|
|
37173
|
-
if (
|
|
37174
|
-
|
|
37198
|
+
if (typeof valueDisplay === "string") return valueDisplay;
|
|
37199
|
+
if (multiple) return function (_ref4) {
|
|
37200
|
+
var onClose = _ref4.onClose;
|
|
37175
37201
|
return valueDisplay({
|
|
37176
37202
|
value: normalizedValue,
|
|
37177
37203
|
onClose: onClose
|
|
@@ -37183,32 +37209,38 @@
|
|
|
37183
37209
|
}) : "";
|
|
37184
37210
|
};
|
|
37185
37211
|
|
|
37186
|
-
return /* @__PURE__ */React__default["default"].createElement(SelectInput$1, _objectSpread$v(_objectSpread$v({}, selectInputProps), {}, {
|
|
37212
|
+
return /* @__PURE__ */React__default["default"].createElement(SelectInput$1, _objectSpread$v(_objectSpread$v(_objectSpread$v({}, props.selectInputProps), selectInputProps), {}, {
|
|
37187
37213
|
ref: ref,
|
|
37188
37214
|
className: classNames$1("".concat(classPrefix, "-tree-select"), _defineProperty$2({}, "".concat(classPrefix, "-tree-select--without-input"), multiple && !filterable), className),
|
|
37189
|
-
value:
|
|
37215
|
+
value: internalInputValue,
|
|
37190
37216
|
inputValue: popupVisible ? filterText : "",
|
|
37191
37217
|
panel: renderTree(),
|
|
37192
37218
|
allowInput: multiple || filterable,
|
|
37193
|
-
inputProps: {
|
|
37219
|
+
inputProps: _objectSpread$v(_objectSpread$v({}, inputProps), {}, {
|
|
37194
37220
|
size: size
|
|
37195
|
-
},
|
|
37221
|
+
}),
|
|
37196
37222
|
tagInputProps: {
|
|
37197
37223
|
size: size,
|
|
37198
|
-
excessTagsDisplayType: "break-line"
|
|
37224
|
+
excessTagsDisplayType: "break-line",
|
|
37225
|
+
inputProps: inputProps,
|
|
37226
|
+
tagProps: props.tagProps
|
|
37199
37227
|
},
|
|
37200
37228
|
placeholder: inputPlaceholader,
|
|
37201
37229
|
popupVisible: popupVisible && !disabled,
|
|
37202
37230
|
onInputChange: handleFilterChange,
|
|
37203
|
-
onPopupVisibleChange: useMergeFn(
|
|
37204
|
-
onFocus: useMergeFn(handleFocus,
|
|
37231
|
+
onPopupVisibleChange: useMergeFn(setPopupVisble),
|
|
37232
|
+
onFocus: useMergeFn(handleFocus, function () {
|
|
37233
|
+
return setPopupVisble(true, {
|
|
37234
|
+
trigger: "trigger-element-click"
|
|
37235
|
+
});
|
|
37236
|
+
}),
|
|
37205
37237
|
onBlur: useMergeFn(handleBlur),
|
|
37206
37238
|
onClear: handleClear,
|
|
37207
37239
|
onTagChange: handleTagChange,
|
|
37208
37240
|
onEnter: handleEnter,
|
|
37209
37241
|
onMouseenter: hoverAction.on,
|
|
37210
37242
|
onMouseleave: hoverAction.off,
|
|
37211
|
-
suffixIcon: /* @__PURE__ */React__default["default"].createElement(
|
|
37243
|
+
suffixIcon: readonly ? null : /* @__PURE__ */React__default["default"].createElement(SelectArrow, {
|
|
37212
37244
|
isActive: popupVisible,
|
|
37213
37245
|
isHighlight: hover || popupVisible,
|
|
37214
37246
|
disabled: disabled
|
|
@@ -37683,7 +37715,7 @@
|
|
|
37683
37715
|
});
|
|
37684
37716
|
}
|
|
37685
37717
|
|
|
37686
|
-
var _excluded$8 = ["href", "title", "target", "children"];
|
|
37718
|
+
var _excluded$8 = ["href", "title", "target", "children", "className"];
|
|
37687
37719
|
|
|
37688
37720
|
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; }
|
|
37689
37721
|
|
|
@@ -37701,6 +37733,8 @@
|
|
|
37701
37733
|
target = props.target,
|
|
37702
37734
|
_props$children = props.children,
|
|
37703
37735
|
children = _props$children === void 0 ? [] : _props$children,
|
|
37736
|
+
_props$className = props.className,
|
|
37737
|
+
className = _props$className === void 0 ? "" : _props$className,
|
|
37704
37738
|
rest = _objectWithoutProperties$1(props, _excluded$8);
|
|
37705
37739
|
|
|
37706
37740
|
var _useConfig = useConfig$1(),
|
|
@@ -37721,9 +37755,9 @@
|
|
|
37721
37755
|
return unregisterItem(href);
|
|
37722
37756
|
};
|
|
37723
37757
|
}, [href, registerItem, unregisterItem]);
|
|
37724
|
-
return /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$r({
|
|
37725
|
-
className: classNames$1("".concat(classPrefix, "-anchor__item"), _defineProperty$2({}, "".concat(classPrefix, "-is-active"), activeItem === href))
|
|
37726
|
-
}
|
|
37758
|
+
return /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$r(_objectSpread$r({}, rest), {}, {
|
|
37759
|
+
className: classNames$1("".concat(classPrefix, "-anchor__item"), _defineProperty$2({}, "".concat(classPrefix, "-is-active"), activeItem === href), className)
|
|
37760
|
+
}), /* @__PURE__ */React__default["default"].createElement("a", {
|
|
37727
37761
|
href: href,
|
|
37728
37762
|
className: classNames$1("".concat(classPrefix, "-anchor__item-link")),
|
|
37729
37763
|
title: titleAttr,
|
|
@@ -38871,7 +38905,7 @@
|
|
|
38871
38905
|
}, /*#__PURE__*/React__default["default"].createElement(Content));
|
|
38872
38906
|
};
|
|
38873
38907
|
|
|
38874
|
-
var _excluded$7 = ["affixProps", "bounds", "targetOffset", "container", "size", "children", "cursor", "onClick", "onChange"];
|
|
38908
|
+
var _excluded$7 = ["affixProps", "bounds", "targetOffset", "container", "size", "children", "cursor", "onClick", "onChange", "className"];
|
|
38875
38909
|
|
|
38876
38910
|
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; }
|
|
38877
38911
|
|
|
@@ -38896,6 +38930,8 @@
|
|
|
38896
38930
|
onClick = _props$onClick === void 0 ? noop$1 : _props$onClick,
|
|
38897
38931
|
_props$onChange = props.onChange,
|
|
38898
38932
|
onChange = _props$onChange === void 0 ? noop$1 : _props$onChange,
|
|
38933
|
+
_props$className = props.className,
|
|
38934
|
+
className = _props$className === void 0 ? "" : _props$className,
|
|
38899
38935
|
rest = _objectWithoutProperties$1(props, _excluded$7);
|
|
38900
38936
|
|
|
38901
38937
|
var _useConfig = useConfig$1(),
|
|
@@ -39019,7 +39055,7 @@
|
|
|
39019
39055
|
scrollContainer.removeEventListener("scroll", handleScroll);
|
|
39020
39056
|
};
|
|
39021
39057
|
}, [container, handleScroll]);
|
|
39022
|
-
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));
|
|
39058
|
+
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);
|
|
39023
39059
|
|
|
39024
39060
|
var CursorCmp = function CursorCmp() {
|
|
39025
39061
|
if (isFunction_1(cursor)) return cursor();
|
|
@@ -39036,10 +39072,10 @@
|
|
|
39036
39072
|
registerItem: registerItem,
|
|
39037
39073
|
unregisterItem: unregisterItem
|
|
39038
39074
|
}
|
|
39039
|
-
}, /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$q({
|
|
39075
|
+
}, /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$q(_objectSpread$q({}, rest), {}, {
|
|
39040
39076
|
className: anchorClass,
|
|
39041
39077
|
ref: anchorEl
|
|
39042
|
-
}
|
|
39078
|
+
}), /* @__PURE__ */React__default["default"].createElement("div", {
|
|
39043
39079
|
className: "".concat(classPrefix, "-anchor__line")
|
|
39044
39080
|
}, /* @__PURE__ */React__default["default"].createElement("div", {
|
|
39045
39081
|
className: "".concat(classPrefix, "-anchor__line-cursor-wrapper"),
|
|
@@ -40031,6 +40067,229 @@
|
|
|
40031
40067
|
|
|
40032
40068
|
var Calendar = Calendar$1;
|
|
40033
40069
|
|
|
40070
|
+
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; }
|
|
40071
|
+
|
|
40072
|
+
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; }
|
|
40073
|
+
function useInstance(props, formRef, formItemsRef) {
|
|
40074
|
+
var _useConfig = useConfig$1(),
|
|
40075
|
+
classPrefix = _useConfig.classPrefix;
|
|
40076
|
+
|
|
40077
|
+
var FORM_ITEM_CLASS_PREFIX = "".concat(classPrefix, "-form-item__");
|
|
40078
|
+
var scrollToFirstError = props.scrollToFirstError,
|
|
40079
|
+
_props$preventSubmitD = props.preventSubmitDefault,
|
|
40080
|
+
preventSubmitDefault = _props$preventSubmitD === void 0 ? true : _props$preventSubmitD,
|
|
40081
|
+
onSubmit = props.onSubmit;
|
|
40082
|
+
|
|
40083
|
+
function getFormItemsMap() {
|
|
40084
|
+
var formItemsMap = formItemsRef.current.reduce(function (acc, _ref) {
|
|
40085
|
+
var currItem = _ref.current;
|
|
40086
|
+
|
|
40087
|
+
if (currItem !== null && currItem !== void 0 && currItem.name) {
|
|
40088
|
+
var name = currItem.name;
|
|
40089
|
+
return _objectSpread$o(_objectSpread$o({}, acc), {}, _defineProperty$2({}, name, currItem));
|
|
40090
|
+
}
|
|
40091
|
+
|
|
40092
|
+
return acc;
|
|
40093
|
+
}, {});
|
|
40094
|
+
return formItemsMap;
|
|
40095
|
+
}
|
|
40096
|
+
|
|
40097
|
+
function getFirstError(r) {
|
|
40098
|
+
var _r$firstKey$;
|
|
40099
|
+
|
|
40100
|
+
if (r === true) return;
|
|
40101
|
+
|
|
40102
|
+
var _Object$keys = Object.keys(r),
|
|
40103
|
+
_Object$keys2 = _slicedToArray(_Object$keys, 1),
|
|
40104
|
+
firstKey = _Object$keys2[0];
|
|
40105
|
+
|
|
40106
|
+
if (scrollToFirstError) {
|
|
40107
|
+
scrollTo(".".concat(FORM_ITEM_CLASS_PREFIX + firstKey));
|
|
40108
|
+
}
|
|
40109
|
+
|
|
40110
|
+
return (_r$firstKey$ = r[firstKey][0]) === null || _r$firstKey$ === void 0 ? void 0 : _r$firstKey$.message;
|
|
40111
|
+
}
|
|
40112
|
+
|
|
40113
|
+
function scrollTo(selector) {
|
|
40114
|
+
var dom = formRef.current.querySelector(selector);
|
|
40115
|
+
var behavior = scrollToFirstError;
|
|
40116
|
+
dom && dom.scrollIntoView({
|
|
40117
|
+
behavior: behavior
|
|
40118
|
+
});
|
|
40119
|
+
}
|
|
40120
|
+
|
|
40121
|
+
function submit(e) {
|
|
40122
|
+
if (preventSubmitDefault) {
|
|
40123
|
+
var _e$preventDefault, _e$stopPropagation;
|
|
40124
|
+
|
|
40125
|
+
e === null || e === void 0 ? void 0 : (_e$preventDefault = e.preventDefault) === null || _e$preventDefault === void 0 ? void 0 : _e$preventDefault.call(e);
|
|
40126
|
+
e === null || e === void 0 ? void 0 : (_e$stopPropagation = e.stopPropagation) === null || _e$stopPropagation === void 0 ? void 0 : _e$stopPropagation.call(e);
|
|
40127
|
+
}
|
|
40128
|
+
|
|
40129
|
+
validate().then(function (r) {
|
|
40130
|
+
var firstError = getFirstError(r);
|
|
40131
|
+
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit({
|
|
40132
|
+
validateResult: r,
|
|
40133
|
+
firstError: firstError,
|
|
40134
|
+
e: e
|
|
40135
|
+
});
|
|
40136
|
+
});
|
|
40137
|
+
}
|
|
40138
|
+
|
|
40139
|
+
function validate(param) {
|
|
40140
|
+
function needValidate(name, fields2) {
|
|
40141
|
+
if (!fields2 || !Array.isArray(fields2)) return true;
|
|
40142
|
+
return fields2.indexOf(name) !== -1;
|
|
40143
|
+
}
|
|
40144
|
+
|
|
40145
|
+
var _ref2 = param || {},
|
|
40146
|
+
fields = _ref2.fields,
|
|
40147
|
+
_ref2$trigger = _ref2.trigger,
|
|
40148
|
+
trigger = _ref2$trigger === void 0 ? "all" : _ref2$trigger;
|
|
40149
|
+
|
|
40150
|
+
var list = formItemsRef.current.filter(function (_ref3) {
|
|
40151
|
+
var formItemRef = _ref3.current;
|
|
40152
|
+
return formItemRef && isFunction_1(formItemRef.validate) && needValidate(formItemRef.name, fields);
|
|
40153
|
+
}).map(function (_ref4) {
|
|
40154
|
+
var formItemRef = _ref4.current;
|
|
40155
|
+
return formItemRef.validate(trigger);
|
|
40156
|
+
});
|
|
40157
|
+
return new Promise(function (resolve) {
|
|
40158
|
+
Promise.all(flatten_1(list)).then(function (arr) {
|
|
40159
|
+
var r = arr.reduce(function (r2, err) {
|
|
40160
|
+
return Object.assign(r2 || {}, err);
|
|
40161
|
+
}, {});
|
|
40162
|
+
Object.keys(r).forEach(function (key) {
|
|
40163
|
+
if (r[key] === true) {
|
|
40164
|
+
delete r[key];
|
|
40165
|
+
} else {
|
|
40166
|
+
r[key] = r[key].filter(function (fr) {
|
|
40167
|
+
return fr.result === false;
|
|
40168
|
+
});
|
|
40169
|
+
}
|
|
40170
|
+
});
|
|
40171
|
+
resolve(isEmpty_1(r) ? true : r);
|
|
40172
|
+
})["catch"](console.error);
|
|
40173
|
+
});
|
|
40174
|
+
}
|
|
40175
|
+
|
|
40176
|
+
function getFieldValue(name) {
|
|
40177
|
+
var _target$current;
|
|
40178
|
+
|
|
40179
|
+
if (!name) return null;
|
|
40180
|
+
var target = formItemsRef.current.find(function (_ref5) {
|
|
40181
|
+
var formItemRef = _ref5.current;
|
|
40182
|
+
return (formItemRef === null || formItemRef === void 0 ? void 0 : formItemRef.name) === name;
|
|
40183
|
+
});
|
|
40184
|
+
return (_target$current = target.current) === null || _target$current === void 0 ? void 0 : _target$current.value;
|
|
40185
|
+
}
|
|
40186
|
+
|
|
40187
|
+
function getFieldsValue(nameList) {
|
|
40188
|
+
var fieldsValue = {};
|
|
40189
|
+
var formItemsMap = getFormItemsMap();
|
|
40190
|
+
|
|
40191
|
+
if (nameList === true) {
|
|
40192
|
+
formItemsRef.current.forEach(function (_ref6) {
|
|
40193
|
+
var formItemRef = _ref6.current;
|
|
40194
|
+
|
|
40195
|
+
if (formItemRef !== null && formItemRef !== void 0 && formItemRef.name) {
|
|
40196
|
+
fieldsValue[formItemRef.name] = formItemRef.value;
|
|
40197
|
+
}
|
|
40198
|
+
});
|
|
40199
|
+
} else {
|
|
40200
|
+
if (!Array.isArray(nameList)) throw new Error("getFieldsValue \u53C2\u6570\u9700\u8981 Array \u7C7B\u578B");
|
|
40201
|
+
nameList.forEach(function (name) {
|
|
40202
|
+
if (formItemsMap[name]) fieldsValue[name] = formItemsMap[name].value;
|
|
40203
|
+
});
|
|
40204
|
+
}
|
|
40205
|
+
|
|
40206
|
+
return fieldsValue;
|
|
40207
|
+
}
|
|
40208
|
+
|
|
40209
|
+
function setFieldsValue() {
|
|
40210
|
+
var fields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
40211
|
+
var formItemsMap = getFormItemsMap();
|
|
40212
|
+
Object.keys(fields).forEach(function (key) {
|
|
40213
|
+
var _formItemsMap$key;
|
|
40214
|
+
|
|
40215
|
+
(_formItemsMap$key = formItemsMap[key]) === null || _formItemsMap$key === void 0 ? void 0 : _formItemsMap$key.setValue(fields[key]);
|
|
40216
|
+
});
|
|
40217
|
+
}
|
|
40218
|
+
|
|
40219
|
+
function setFields() {
|
|
40220
|
+
var fields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
40221
|
+
if (!Array.isArray(fields)) throw new Error("setFields \u53C2\u6570\u9700\u8981 Array \u7C7B\u578B");
|
|
40222
|
+
var formItemsMap = getFormItemsMap();
|
|
40223
|
+
fields.forEach(function (field) {
|
|
40224
|
+
var _formItemsMap$name;
|
|
40225
|
+
|
|
40226
|
+
var name = field.name,
|
|
40227
|
+
value = field.value,
|
|
40228
|
+
status = field.status;
|
|
40229
|
+
(_formItemsMap$name = formItemsMap[name]) === null || _formItemsMap$name === void 0 ? void 0 : _formItemsMap$name.setField({
|
|
40230
|
+
value: value,
|
|
40231
|
+
status: status
|
|
40232
|
+
});
|
|
40233
|
+
});
|
|
40234
|
+
}
|
|
40235
|
+
|
|
40236
|
+
function reset(params) {
|
|
40237
|
+
if (typeof params === "undefined") {
|
|
40238
|
+
formItemsRef.current.forEach(function (_ref7) {
|
|
40239
|
+
var formItemRef = _ref7.current;
|
|
40240
|
+
formItemRef && (formItemRef === null || formItemRef === void 0 ? void 0 : formItemRef.resetField());
|
|
40241
|
+
});
|
|
40242
|
+
} else {
|
|
40243
|
+
var _params$type = params.type,
|
|
40244
|
+
type = _params$type === void 0 ? "initial" : _params$type,
|
|
40245
|
+
_params$fields = params.fields,
|
|
40246
|
+
fields = _params$fields === void 0 ? [] : _params$fields;
|
|
40247
|
+
var formItemsMap = getFormItemsMap();
|
|
40248
|
+
fields.forEach(function (name) {
|
|
40249
|
+
var _formItemsMap$name2;
|
|
40250
|
+
|
|
40251
|
+
(_formItemsMap$name2 = formItemsMap[name]) === null || _formItemsMap$name2 === void 0 ? void 0 : _formItemsMap$name2.resetField(type);
|
|
40252
|
+
});
|
|
40253
|
+
}
|
|
40254
|
+
}
|
|
40255
|
+
|
|
40256
|
+
function clearValidate(fields) {
|
|
40257
|
+
if (typeof fields === "undefined") {
|
|
40258
|
+
formItemsRef.current.forEach(function (_ref8) {
|
|
40259
|
+
var formItemRef = _ref8.current;
|
|
40260
|
+
formItemRef && (formItemRef === null || formItemRef === void 0 ? void 0 : formItemRef.resetValidate());
|
|
40261
|
+
});
|
|
40262
|
+
} else {
|
|
40263
|
+
if (!Array.isArray(fields)) throw new Error("clearValidate \u53C2\u6570\u9700\u8981 Array \u7C7B\u578B");
|
|
40264
|
+
var formItemsMap = getFormItemsMap();
|
|
40265
|
+
fields.forEach(function (name) {
|
|
40266
|
+
var _formItemsMap$name3;
|
|
40267
|
+
|
|
40268
|
+
(_formItemsMap$name3 = formItemsMap[name]) === null || _formItemsMap$name3 === void 0 ? void 0 : _formItemsMap$name3.resetValidate();
|
|
40269
|
+
});
|
|
40270
|
+
}
|
|
40271
|
+
}
|
|
40272
|
+
|
|
40273
|
+
function setValidateMessage(message) {
|
|
40274
|
+
var formItemsMap = getFormItemsMap();
|
|
40275
|
+
Object.keys(message).forEach(function (name) {
|
|
40276
|
+
formItemsMap[name].setValidateMessage(message[name]);
|
|
40277
|
+
});
|
|
40278
|
+
}
|
|
40279
|
+
|
|
40280
|
+
return {
|
|
40281
|
+
submit: submit,
|
|
40282
|
+
reset: reset,
|
|
40283
|
+
validate: validate,
|
|
40284
|
+
clearValidate: clearValidate,
|
|
40285
|
+
setFields: setFields,
|
|
40286
|
+
setFieldsValue: setFieldsValue,
|
|
40287
|
+
setValidateMessage: setValidateMessage,
|
|
40288
|
+
getFieldValue: getFieldValue,
|
|
40289
|
+
getFieldsValue: getFieldsValue
|
|
40290
|
+
};
|
|
40291
|
+
}
|
|
40292
|
+
|
|
40034
40293
|
var FormContext = /*#__PURE__*/React__default["default"].createContext({
|
|
40035
40294
|
labelWidth: "calc(1 / 12 * 100%)",
|
|
40036
40295
|
labelAlign: "right",
|
|
@@ -40052,33 +40311,6 @@
|
|
|
40052
40311
|
return React__default["default"].useContext(FormContext);
|
|
40053
40312
|
};
|
|
40054
40313
|
|
|
40055
|
-
/**
|
|
40056
|
-
* Checks if `value` is `null` or `undefined`.
|
|
40057
|
-
*
|
|
40058
|
-
* @static
|
|
40059
|
-
* @memberOf _
|
|
40060
|
-
* @since 4.0.0
|
|
40061
|
-
* @category Lang
|
|
40062
|
-
* @param {*} value The value to check.
|
|
40063
|
-
* @returns {boolean} Returns `true` if `value` is nullish, else `false`.
|
|
40064
|
-
* @example
|
|
40065
|
-
*
|
|
40066
|
-
* _.isNil(null);
|
|
40067
|
-
* // => true
|
|
40068
|
-
*
|
|
40069
|
-
* _.isNil(void 0);
|
|
40070
|
-
* // => true
|
|
40071
|
-
*
|
|
40072
|
-
* _.isNil(NaN);
|
|
40073
|
-
* // => false
|
|
40074
|
-
*/
|
|
40075
|
-
|
|
40076
|
-
function isNil(value) {
|
|
40077
|
-
return value == null;
|
|
40078
|
-
}
|
|
40079
|
-
|
|
40080
|
-
var isNil_1 = isNil;
|
|
40081
|
-
|
|
40082
40314
|
var copyObject$1 = _copyObject,
|
|
40083
40315
|
createAssigner = _createAssigner,
|
|
40084
40316
|
keysIn = keysIn_1;
|
|
@@ -42419,9 +42651,9 @@
|
|
|
42419
42651
|
|
|
42420
42652
|
var _excluded$6 = ["value", "defaultFiles", "files", "onChange"];
|
|
42421
42653
|
|
|
42422
|
-
function ownKeys$
|
|
42654
|
+
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; }
|
|
42423
42655
|
|
|
42424
|
-
function _objectSpread$
|
|
42656
|
+
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; }
|
|
42425
42657
|
function useDefaultValue(props, defaultDefaultValue) {
|
|
42426
42658
|
var value = props.value,
|
|
42427
42659
|
defaultFiles = props.defaultFiles,
|
|
@@ -42440,7 +42672,7 @@
|
|
|
42440
42672
|
finalValue = _useDefault2[0],
|
|
42441
42673
|
finalOnChange = _useDefault2[1];
|
|
42442
42674
|
|
|
42443
|
-
return _objectSpread$
|
|
42675
|
+
return _objectSpread$n({
|
|
42444
42676
|
files: finalValue,
|
|
42445
42677
|
onChange: finalOnChange
|
|
42446
42678
|
}, restProps);
|
|
@@ -42499,9 +42731,9 @@
|
|
|
42499
42731
|
|
|
42500
42732
|
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; }
|
|
42501
42733
|
|
|
42502
|
-
function ownKeys$
|
|
42734
|
+
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; }
|
|
42503
42735
|
|
|
42504
|
-
function _objectSpread$
|
|
42736
|
+
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; }
|
|
42505
42737
|
|
|
42506
42738
|
var Upload$1 = function Upload(props, ref) {
|
|
42507
42739
|
var _useDefaultValue = useDefaultValue(props, []),
|
|
@@ -42720,7 +42952,7 @@
|
|
|
42720
42952
|
_ref3$type = _ref3.type,
|
|
42721
42953
|
type = _ref3$type === void 0 ? "mock" : _ref3$type;
|
|
42722
42954
|
|
|
42723
|
-
var tmpFile = _objectSpread$
|
|
42955
|
+
var tmpFile = _objectSpread$m({}, file);
|
|
42724
42956
|
|
|
42725
42957
|
tmpFile.percent = percent;
|
|
42726
42958
|
var progressCtx = {
|
|
@@ -42755,7 +42987,7 @@
|
|
|
42755
42987
|
var r = res.response || {};
|
|
42756
42988
|
onError({
|
|
42757
42989
|
file: file,
|
|
42758
|
-
response: _objectSpread$
|
|
42990
|
+
response: _objectSpread$m(_objectSpread$m({}, r), {}, {
|
|
42759
42991
|
error: res.error
|
|
42760
42992
|
})
|
|
42761
42993
|
});
|
|
@@ -42769,7 +43001,7 @@
|
|
|
42769
43001
|
while (1) {
|
|
42770
43002
|
switch (_context.prev = _context.next) {
|
|
42771
43003
|
case 0:
|
|
42772
|
-
file = _objectSpread$
|
|
43004
|
+
file = _objectSpread$m({}, uploadFile);
|
|
42773
43005
|
|
|
42774
43006
|
if (!(file.status !== "waiting")) {
|
|
42775
43007
|
_context.next = 3;
|
|
@@ -42854,7 +43086,7 @@
|
|
|
42854
43086
|
|
|
42855
43087
|
var file = typeof format === "function" ? format(fileRaw) : fileRaw;
|
|
42856
43088
|
|
|
42857
|
-
var uploadFile = _objectSpread$
|
|
43089
|
+
var uploadFile = _objectSpread$m({
|
|
42858
43090
|
raw: fileRaw,
|
|
42859
43091
|
lastModified: fileRaw.lastModified,
|
|
42860
43092
|
name: fileRaw.name,
|
|
@@ -43153,6 +43385,14 @@
|
|
|
43153
43385
|
|
|
43154
43386
|
var Upload = _Upload;
|
|
43155
43387
|
|
|
43388
|
+
function renderTNode(tnode, defaultNode) {
|
|
43389
|
+
if (typeof tnode === "function") {
|
|
43390
|
+
return tnode();
|
|
43391
|
+
}
|
|
43392
|
+
|
|
43393
|
+
return tnode || defaultNode;
|
|
43394
|
+
}
|
|
43395
|
+
|
|
43156
43396
|
var isDate$2 = {exports: {}};
|
|
43157
43397
|
|
|
43158
43398
|
var merge = {exports: {}};
|
|
@@ -44139,9 +44379,9 @@
|
|
|
44139
44379
|
|
|
44140
44380
|
var isURL = /*@__PURE__*/getDefaultExportFromCjs(isURL$1.exports);
|
|
44141
44381
|
|
|
44142
|
-
function ownKeys$
|
|
44382
|
+
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; }
|
|
44143
44383
|
|
|
44144
|
-
function _objectSpread$
|
|
44384
|
+
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; }
|
|
44145
44385
|
function isValueEmpty(val) {
|
|
44146
44386
|
var type = Object.prototype.toString.call(val);
|
|
44147
44387
|
var typeMap = {
|
|
@@ -44270,7 +44510,7 @@
|
|
|
44270
44510
|
break;
|
|
44271
44511
|
}
|
|
44272
44512
|
|
|
44273
|
-
return _context.abrupt("return", _objectSpread$
|
|
44513
|
+
return _context.abrupt("return", _objectSpread$l(_objectSpread$l({}, rule), {}, {
|
|
44274
44514
|
result: validateResult
|
|
44275
44515
|
}));
|
|
44276
44516
|
|
|
@@ -44326,9 +44566,9 @@
|
|
|
44326
44566
|
return _validate.apply(this, arguments);
|
|
44327
44567
|
}
|
|
44328
44568
|
|
|
44329
|
-
function ownKeys$
|
|
44569
|
+
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; }
|
|
44330
44570
|
|
|
44331
|
-
function _objectSpread$
|
|
44571
|
+
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; }
|
|
44332
44572
|
|
|
44333
44573
|
var ctrlKeyMap = /* @__PURE__ */new Map();
|
|
44334
44574
|
ctrlKeyMap.set(Checkbox, "checked");
|
|
@@ -44343,8 +44583,8 @@
|
|
|
44343
44583
|
React__default["default"].Children.forEach(children, function (child) {
|
|
44344
44584
|
if (!child) return;
|
|
44345
44585
|
|
|
44346
|
-
if (
|
|
44347
|
-
defaultInitialData = initialDataMap.get(child.type)
|
|
44586
|
+
if ( /*#__PURE__*/React__default["default"].isValidElement(child) && typeof initialData === "undefined") {
|
|
44587
|
+
defaultInitialData = initialDataMap.get(child.type);
|
|
44348
44588
|
}
|
|
44349
44589
|
});
|
|
44350
44590
|
return defaultInitialData;
|
|
@@ -44356,27 +44596,13 @@
|
|
|
44356
44596
|
var _useConfig = useConfig$1(),
|
|
44357
44597
|
classPrefix = _useConfig.classPrefix;
|
|
44358
44598
|
|
|
44359
|
-
var children = props.children,
|
|
44360
|
-
label = props.label,
|
|
44361
|
-
name = props.name,
|
|
44362
|
-
help = props.help,
|
|
44363
|
-
statusIconFromProp = props.statusIcon,
|
|
44364
|
-
rulesFromProp = props.rules,
|
|
44365
|
-
labelWidth = props.labelWidth,
|
|
44366
|
-
labelAlign = props.labelAlign,
|
|
44367
|
-
initialData = props.initialData,
|
|
44368
|
-
requiredMark = props.requiredMark,
|
|
44369
|
-
successBorder = props.successBorder,
|
|
44370
|
-
className = props.className,
|
|
44371
|
-
formItemStyle = props.style;
|
|
44372
|
-
|
|
44373
44599
|
var _useFormContext = useFormContext(),
|
|
44374
44600
|
colon = _useFormContext.colon,
|
|
44375
|
-
requiredMarkFromContext = _useFormContext.requiredMark,
|
|
44376
44601
|
layout = _useFormContext.layout,
|
|
44602
|
+
requiredMarkFromContext = _useFormContext.requiredMark,
|
|
44377
44603
|
labelAlignFromContext = _useFormContext.labelAlign,
|
|
44378
44604
|
labelWidthFromContext = _useFormContext.labelWidth,
|
|
44379
|
-
|
|
44605
|
+
showErrorMessageFromContext = _useFormContext.showErrorMessage,
|
|
44380
44606
|
disabledFromContext = _useFormContext.disabled,
|
|
44381
44607
|
resetTypeFromContext = _useFormContext.resetType,
|
|
44382
44608
|
rulesFromContext = _useFormContext.rules,
|
|
@@ -44385,6 +44611,27 @@
|
|
|
44385
44611
|
formItemsRef = _useFormContext.formItemsRef,
|
|
44386
44612
|
onFormItemValueChange = _useFormContext.onFormItemValueChange;
|
|
44387
44613
|
|
|
44614
|
+
var children = props.children,
|
|
44615
|
+
style = props.style,
|
|
44616
|
+
label = props.label,
|
|
44617
|
+
name = props.name,
|
|
44618
|
+
help = props.help,
|
|
44619
|
+
initialData = props.initialData,
|
|
44620
|
+
className = props.className,
|
|
44621
|
+
successBorder = props.successBorder,
|
|
44622
|
+
_props$statusIcon = props.statusIcon,
|
|
44623
|
+
statusIcon = _props$statusIcon === void 0 ? statusIconFromContext : _props$statusIcon,
|
|
44624
|
+
_props$rules = props.rules,
|
|
44625
|
+
innerRules = _props$rules === void 0 ? (rulesFromContext === null || rulesFromContext === void 0 ? void 0 : rulesFromContext[name]) || [] : _props$rules,
|
|
44626
|
+
_props$labelWidth = props.labelWidth,
|
|
44627
|
+
labelWidth = _props$labelWidth === void 0 ? labelWidthFromContext : _props$labelWidth,
|
|
44628
|
+
_props$labelAlign = props.labelAlign,
|
|
44629
|
+
labelAlign = _props$labelAlign === void 0 ? labelAlignFromContext : _props$labelAlign,
|
|
44630
|
+
_props$requiredMark = props.requiredMark,
|
|
44631
|
+
requiredMark = _props$requiredMark === void 0 ? requiredMarkFromContext : _props$requiredMark,
|
|
44632
|
+
_props$showErrorMessa = props.showErrorMessage,
|
|
44633
|
+
showErrorMessage = _props$showErrorMessa === void 0 ? showErrorMessageFromContext : _props$showErrorMessa;
|
|
44634
|
+
|
|
44388
44635
|
var _useState = React.useState([]),
|
|
44389
44636
|
_useState2 = _slicedToArray(_useState, 2),
|
|
44390
44637
|
errorList = _useState2[0],
|
|
@@ -44421,14 +44668,10 @@
|
|
|
44421
44668
|
var innerFormItemsRef = React.useRef([]);
|
|
44422
44669
|
var shouldValidate = React.useRef(null);
|
|
44423
44670
|
var isMounted = React.useRef(false);
|
|
44424
|
-
var innerRules = rulesFromContext && rulesFromContext[name] || rulesFromProp || [];
|
|
44425
|
-
var innerLabelWidth = isNil_1(labelWidth) ? labelWidthFromContext : labelWidth;
|
|
44426
|
-
var innerLabelAlign = isNil_1(labelAlign) ? labelAlignFromContext : labelAlign;
|
|
44427
|
-
var innerRequiredMark = isNil_1(requiredMark) ? requiredMarkFromContext : requiredMark;
|
|
44428
44671
|
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));
|
|
44429
|
-
var formItemLabelClass = classNames$1("".concat(classPrefix, "-form__label"), (_classNames2 = {}, _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--required"),
|
|
44672
|
+
var formItemLabelClass = classNames$1("".concat(classPrefix, "-form__label"), (_classNames2 = {}, _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--required"), requiredMark && innerRules.filter(function (rule) {
|
|
44430
44673
|
return rule.required;
|
|
44431
|
-
}).length > 0), _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--colon"), colon && label), _defineProperty$2(_classNames2, "".concat(classPrefix, "-form__label--top"),
|
|
44674
|
+
}).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));
|
|
44432
44675
|
|
|
44433
44676
|
var contentClass = function contentClass() {
|
|
44434
44677
|
var _classNames4;
|
|
@@ -44450,20 +44693,20 @@
|
|
|
44450
44693
|
var labelStyle = {};
|
|
44451
44694
|
var contentStyle = {};
|
|
44452
44695
|
|
|
44453
|
-
if (
|
|
44454
|
-
if (typeof
|
|
44696
|
+
if (labelWidth && labelAlign !== "top") {
|
|
44697
|
+
if (typeof labelWidth === "number") {
|
|
44455
44698
|
labelStyle = {
|
|
44456
|
-
width: "".concat(
|
|
44699
|
+
width: "".concat(labelWidth, "px")
|
|
44457
44700
|
};
|
|
44458
44701
|
contentStyle = {
|
|
44459
|
-
marginLeft: layout !== "inline" ? "".concat(
|
|
44702
|
+
marginLeft: layout !== "inline" ? "".concat(labelWidth, "px") : ""
|
|
44460
44703
|
};
|
|
44461
44704
|
} else {
|
|
44462
44705
|
labelStyle = {
|
|
44463
|
-
width:
|
|
44706
|
+
width: labelWidth
|
|
44464
44707
|
};
|
|
44465
44708
|
contentStyle = {
|
|
44466
|
-
marginLeft: layout !== "inline" ?
|
|
44709
|
+
marginLeft: layout !== "inline" ? labelWidth : ""
|
|
44467
44710
|
};
|
|
44468
44711
|
}
|
|
44469
44712
|
}
|
|
@@ -44472,7 +44715,7 @@
|
|
|
44472
44715
|
var helpNode = null;
|
|
44473
44716
|
if (help) helpNode = /* @__PURE__ */React__default["default"].createElement("div", {
|
|
44474
44717
|
className: "".concat(classPrefix, "-form__help")
|
|
44475
|
-
}, help);
|
|
44718
|
+
}, renderTNode(help));
|
|
44476
44719
|
var list = errorList;
|
|
44477
44720
|
|
|
44478
44721
|
if (showErrorMessage && list && list[0] && list[0].message) {
|
|
@@ -44491,7 +44734,7 @@
|
|
|
44491
44734
|
}
|
|
44492
44735
|
|
|
44493
44736
|
var renderSuffixIcon = function renderSuffixIcon() {
|
|
44494
|
-
if (
|
|
44737
|
+
if (statusIcon === false) return null;
|
|
44495
44738
|
|
|
44496
44739
|
var resultIcon = function resultIcon(iconSlot) {
|
|
44497
44740
|
return /* @__PURE__ */React__default["default"].createElement("span", {
|
|
@@ -44526,22 +44769,18 @@
|
|
|
44526
44769
|
return null;
|
|
44527
44770
|
};
|
|
44528
44771
|
|
|
44529
|
-
if ( /*#__PURE__*/React__default["default"].isValidElement(
|
|
44530
|
-
return resultIcon( /*#__PURE__*/React__default["default"].cloneElement(
|
|
44772
|
+
if ( /*#__PURE__*/React__default["default"].isValidElement(statusIcon)) {
|
|
44773
|
+
return resultIcon( /*#__PURE__*/React__default["default"].cloneElement(statusIcon, _objectSpread$k({
|
|
44531
44774
|
style: {
|
|
44532
44775
|
color: "unset"
|
|
44533
44776
|
}
|
|
44534
|
-
},
|
|
44777
|
+
}, statusIcon.props)));
|
|
44535
44778
|
}
|
|
44536
44779
|
|
|
44537
|
-
if (
|
|
44780
|
+
if (statusIcon === true) {
|
|
44538
44781
|
return getDefaultIcon();
|
|
44539
44782
|
}
|
|
44540
44783
|
|
|
44541
|
-
if ( /*#__PURE__*/React__default["default"].isValidElement(statusIconFromContext)) {
|
|
44542
|
-
return resultIcon(statusIconFromProp);
|
|
44543
|
-
}
|
|
44544
|
-
|
|
44545
44784
|
return null;
|
|
44546
44785
|
};
|
|
44547
44786
|
|
|
@@ -44724,7 +44963,7 @@
|
|
|
44724
44963
|
});
|
|
44725
44964
|
return /* @__PURE__ */React__default["default"].createElement("div", {
|
|
44726
44965
|
className: formItemClass,
|
|
44727
|
-
style:
|
|
44966
|
+
style: style,
|
|
44728
44967
|
ref: ref
|
|
44729
44968
|
}, label && /* @__PURE__ */React__default["default"].createElement("div", {
|
|
44730
44969
|
className: formItemLabelClass,
|
|
@@ -44773,7 +45012,7 @@
|
|
|
44773
45012
|
ctrlKey = ctrlKeyMap.get(child.type) || "value";
|
|
44774
45013
|
}
|
|
44775
45014
|
|
|
44776
|
-
return /*#__PURE__*/React__default["default"].cloneElement(child, _objectSpread$
|
|
45015
|
+
return /*#__PURE__*/React__default["default"].cloneElement(child, _objectSpread$k(_objectSpread$k({
|
|
44777
45016
|
disabled: disabledFromContext
|
|
44778
45017
|
}, child.props), {}, (_objectSpread2 = {}, _defineProperty$2(_objectSpread2, ctrlKey, formValue), _defineProperty$2(_objectSpread2, "onChange", function onChange(value) {
|
|
44779
45018
|
onChangeFromProps.call(null, value);
|
|
@@ -44788,9 +45027,6 @@
|
|
|
44788
45027
|
}), renderSuffixIcon()), renderTipsInfo()));
|
|
44789
45028
|
});
|
|
44790
45029
|
|
|
44791
|
-
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; }
|
|
44792
|
-
|
|
44793
|
-
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; }
|
|
44794
45030
|
var Form$1 = forwardRefWithStatics(function (props, ref) {
|
|
44795
45031
|
var _useConfig = useConfig$1(),
|
|
44796
45032
|
classPrefix = _useConfig.classPrefix,
|
|
@@ -44823,54 +45059,40 @@
|
|
|
44823
45059
|
preventSubmitDefault = _props$preventSubmitD === void 0 ? true : _props$preventSubmitD,
|
|
44824
45060
|
disabled = props.disabled,
|
|
44825
45061
|
children = props.children,
|
|
44826
|
-
onSubmit = props.onSubmit,
|
|
44827
45062
|
onReset = props.onReset,
|
|
44828
45063
|
_props$onValuesChange = props.onValuesChange,
|
|
44829
45064
|
onValuesChange = _props$onValuesChange === void 0 ? noop$1 : _props$onValuesChange;
|
|
44830
45065
|
var formClass = classNames$1(className, "".concat(classPrefix, "-form"), _defineProperty$2({}, "".concat(classPrefix, "-form-inline"), layout === "inline"));
|
|
44831
45066
|
var formRef = React.useRef();
|
|
44832
45067
|
var formItemsRef = React.useRef([]);
|
|
44833
|
-
var FORM_ITEM_CLASS_PREFIX = "".concat(classPrefix, "-form-item__");
|
|
44834
|
-
|
|
44835
|
-
function getFormItemsMap() {
|
|
44836
|
-
var formItemsMap = formItemsRef.current.reduce(function (acc, _ref) {
|
|
44837
|
-
var currItem = _ref.current;
|
|
44838
45068
|
|
|
44839
|
-
|
|
44840
|
-
|
|
44841
|
-
|
|
44842
|
-
|
|
45069
|
+
var _useInstance = useInstance(props, formRef, formItemsRef),
|
|
45070
|
+
submit = _useInstance.submit,
|
|
45071
|
+
reset = _useInstance.reset,
|
|
45072
|
+
getFieldValue = _useInstance.getFieldValue,
|
|
45073
|
+
getFieldsValue = _useInstance.getFieldsValue,
|
|
45074
|
+
setFieldsValue = _useInstance.setFieldsValue,
|
|
45075
|
+
setFields = _useInstance.setFields,
|
|
45076
|
+
validate = _useInstance.validate,
|
|
45077
|
+
clearValidate = _useInstance.clearValidate,
|
|
45078
|
+
setValidateMessage = _useInstance.setValidateMessage;
|
|
44843
45079
|
|
|
44844
|
-
|
|
44845
|
-
|
|
44846
|
-
|
|
44847
|
-
|
|
44848
|
-
|
|
44849
|
-
|
|
44850
|
-
|
|
44851
|
-
|
|
44852
|
-
|
|
44853
|
-
|
|
44854
|
-
|
|
44855
|
-
|
|
44856
|
-
|
|
44857
|
-
|
|
44858
|
-
if (scrollToFirstError) {
|
|
44859
|
-
scrollTo(".".concat(FORM_ITEM_CLASS_PREFIX + firstKey));
|
|
44860
|
-
}
|
|
44861
|
-
|
|
44862
|
-
return (_r$firstKey$ = r[firstKey][0]) === null || _r$firstKey$ === void 0 ? void 0 : _r$firstKey$.message;
|
|
44863
|
-
}
|
|
44864
|
-
|
|
44865
|
-
function scrollTo(selector) {
|
|
44866
|
-
var dom = formRef.current.querySelector(selector);
|
|
44867
|
-
var behavior = scrollToFirstError;
|
|
44868
|
-
dom && dom.scrollIntoView({
|
|
44869
|
-
behavior: behavior
|
|
44870
|
-
});
|
|
44871
|
-
}
|
|
45080
|
+
React.useImperativeHandle(ref, function () {
|
|
45081
|
+
return {
|
|
45082
|
+
currentElement: formRef.current,
|
|
45083
|
+
submit: submit,
|
|
45084
|
+
reset: reset,
|
|
45085
|
+
getFieldValue: getFieldValue,
|
|
45086
|
+
getFieldsValue: getFieldsValue,
|
|
45087
|
+
setFieldsValue: setFieldsValue,
|
|
45088
|
+
setFields: setFields,
|
|
45089
|
+
validate: validate,
|
|
45090
|
+
clearValidate: clearValidate,
|
|
45091
|
+
setValidateMessage: setValidateMessage
|
|
45092
|
+
};
|
|
45093
|
+
});
|
|
44872
45094
|
|
|
44873
|
-
function
|
|
45095
|
+
function onResetHandler(e) {
|
|
44874
45096
|
if (preventSubmitDefault) {
|
|
44875
45097
|
var _e$preventDefault, _e$stopPropagation;
|
|
44876
45098
|
|
|
@@ -44878,26 +45100,8 @@
|
|
|
44878
45100
|
(_e$stopPropagation = e.stopPropagation) === null || _e$stopPropagation === void 0 ? void 0 : _e$stopPropagation.call(e);
|
|
44879
45101
|
}
|
|
44880
45102
|
|
|
44881
|
-
|
|
44882
|
-
var
|
|
44883
|
-
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit({
|
|
44884
|
-
validateResult: r,
|
|
44885
|
-
firstError: firstError,
|
|
44886
|
-
e: e
|
|
44887
|
-
});
|
|
44888
|
-
});
|
|
44889
|
-
}
|
|
44890
|
-
|
|
44891
|
-
function resetHandler(e) {
|
|
44892
|
-
if (preventSubmitDefault) {
|
|
44893
|
-
var _e$preventDefault2, _e$stopPropagation2;
|
|
44894
|
-
|
|
44895
|
-
(_e$preventDefault2 = e.preventDefault) === null || _e$preventDefault2 === void 0 ? void 0 : _e$preventDefault2.call(e);
|
|
44896
|
-
(_e$stopPropagation2 = e.stopPropagation) === null || _e$stopPropagation2 === void 0 ? void 0 : _e$stopPropagation2.call(e);
|
|
44897
|
-
}
|
|
44898
|
-
|
|
44899
|
-
formItemsRef.current.forEach(function (_ref2) {
|
|
44900
|
-
var formItemRef = _ref2.current;
|
|
45103
|
+
formItemsRef.current.forEach(function (_ref) {
|
|
45104
|
+
var formItemRef = _ref.current;
|
|
44901
45105
|
formItemRef && (formItemRef === null || formItemRef === void 0 ? void 0 : formItemRef.resetField());
|
|
44902
45106
|
});
|
|
44903
45107
|
onReset === null || onReset === void 0 ? void 0 : onReset({
|
|
@@ -44905,162 +45109,6 @@
|
|
|
44905
45109
|
});
|
|
44906
45110
|
}
|
|
44907
45111
|
|
|
44908
|
-
function validate(param) {
|
|
44909
|
-
function needValidate(name, fields2) {
|
|
44910
|
-
if (!fields2 || !Array.isArray(fields2)) return true;
|
|
44911
|
-
return fields2.indexOf(name) !== -1;
|
|
44912
|
-
}
|
|
44913
|
-
|
|
44914
|
-
var _ref3 = param || {},
|
|
44915
|
-
fields = _ref3.fields,
|
|
44916
|
-
_ref3$trigger = _ref3.trigger,
|
|
44917
|
-
trigger = _ref3$trigger === void 0 ? "all" : _ref3$trigger;
|
|
44918
|
-
|
|
44919
|
-
var list = formItemsRef.current.filter(function (_ref4) {
|
|
44920
|
-
var formItemRef = _ref4.current;
|
|
44921
|
-
return formItemRef && isFunction_1(formItemRef.validate) && needValidate(formItemRef.name, fields);
|
|
44922
|
-
}).map(function (_ref5) {
|
|
44923
|
-
var formItemRef = _ref5.current;
|
|
44924
|
-
return formItemRef.validate(trigger);
|
|
44925
|
-
});
|
|
44926
|
-
return new Promise(function (resolve) {
|
|
44927
|
-
Promise.all(flatten_1(list)).then(function (arr) {
|
|
44928
|
-
var r = arr.reduce(function (r2, err) {
|
|
44929
|
-
return Object.assign(r2 || {}, err);
|
|
44930
|
-
}, {});
|
|
44931
|
-
Object.keys(r).forEach(function (key) {
|
|
44932
|
-
if (r[key] === true) {
|
|
44933
|
-
delete r[key];
|
|
44934
|
-
} else {
|
|
44935
|
-
r[key] = r[key].filter(function (fr) {
|
|
44936
|
-
return fr.result === false;
|
|
44937
|
-
});
|
|
44938
|
-
}
|
|
44939
|
-
});
|
|
44940
|
-
resolve(isEmpty_1(r) ? true : r);
|
|
44941
|
-
})["catch"](console.error);
|
|
44942
|
-
});
|
|
44943
|
-
}
|
|
44944
|
-
|
|
44945
|
-
function getFieldValue(name) {
|
|
44946
|
-
var _target$current;
|
|
44947
|
-
|
|
44948
|
-
if (!name) return null;
|
|
44949
|
-
var target = formItemsRef.current.find(function (_ref6) {
|
|
44950
|
-
var formItemRef = _ref6.current;
|
|
44951
|
-
return (formItemRef === null || formItemRef === void 0 ? void 0 : formItemRef.name) === name;
|
|
44952
|
-
});
|
|
44953
|
-
return (_target$current = target.current) === null || _target$current === void 0 ? void 0 : _target$current.value;
|
|
44954
|
-
}
|
|
44955
|
-
|
|
44956
|
-
function getFieldsValue(nameList) {
|
|
44957
|
-
var fieldsValue = {};
|
|
44958
|
-
var formItemsMap = getFormItemsMap();
|
|
44959
|
-
|
|
44960
|
-
if (nameList === true) {
|
|
44961
|
-
formItemsRef.current.forEach(function (_ref7) {
|
|
44962
|
-
var formItemRef = _ref7.current;
|
|
44963
|
-
|
|
44964
|
-
if (formItemRef !== null && formItemRef !== void 0 && formItemRef.name) {
|
|
44965
|
-
fieldsValue[formItemRef.name] = formItemRef.value;
|
|
44966
|
-
}
|
|
44967
|
-
});
|
|
44968
|
-
} else {
|
|
44969
|
-
if (!Array.isArray(nameList)) throw new Error("getFieldsValue \u53C2\u6570\u9700\u8981 Array \u7C7B\u578B");
|
|
44970
|
-
nameList.forEach(function (name) {
|
|
44971
|
-
if (formItemsMap[name]) fieldsValue[name] = formItemsMap[name].value;
|
|
44972
|
-
});
|
|
44973
|
-
}
|
|
44974
|
-
|
|
44975
|
-
return fieldsValue;
|
|
44976
|
-
}
|
|
44977
|
-
|
|
44978
|
-
function setFieldsValue() {
|
|
44979
|
-
var fields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
44980
|
-
var formItemsMap = getFormItemsMap();
|
|
44981
|
-
Object.keys(fields).forEach(function (key) {
|
|
44982
|
-
var _formItemsMap$key;
|
|
44983
|
-
|
|
44984
|
-
(_formItemsMap$key = formItemsMap[key]) === null || _formItemsMap$key === void 0 ? void 0 : _formItemsMap$key.setValue(fields[key]);
|
|
44985
|
-
});
|
|
44986
|
-
}
|
|
44987
|
-
|
|
44988
|
-
function setFields() {
|
|
44989
|
-
var fields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
44990
|
-
if (!Array.isArray(fields)) throw new Error("setFields \u53C2\u6570\u9700\u8981 Array \u7C7B\u578B");
|
|
44991
|
-
var formItemsMap = getFormItemsMap();
|
|
44992
|
-
fields.forEach(function (field) {
|
|
44993
|
-
var _formItemsMap$name;
|
|
44994
|
-
|
|
44995
|
-
var name = field.name,
|
|
44996
|
-
value = field.value,
|
|
44997
|
-
status = field.status;
|
|
44998
|
-
(_formItemsMap$name = formItemsMap[name]) === null || _formItemsMap$name === void 0 ? void 0 : _formItemsMap$name.setField({
|
|
44999
|
-
value: value,
|
|
45000
|
-
status: status
|
|
45001
|
-
});
|
|
45002
|
-
});
|
|
45003
|
-
}
|
|
45004
|
-
|
|
45005
|
-
function reset(params) {
|
|
45006
|
-
if (typeof params === "undefined") {
|
|
45007
|
-
formItemsRef.current.forEach(function (_ref8) {
|
|
45008
|
-
var formItemRef = _ref8.current;
|
|
45009
|
-
formItemRef && (formItemRef === null || formItemRef === void 0 ? void 0 : formItemRef.resetField());
|
|
45010
|
-
});
|
|
45011
|
-
} else {
|
|
45012
|
-
var _params$type = params.type,
|
|
45013
|
-
type = _params$type === void 0 ? "initial" : _params$type,
|
|
45014
|
-
_params$fields = params.fields,
|
|
45015
|
-
fields = _params$fields === void 0 ? [] : _params$fields;
|
|
45016
|
-
var formItemsMap = getFormItemsMap();
|
|
45017
|
-
fields.forEach(function (name) {
|
|
45018
|
-
var _formItemsMap$name2;
|
|
45019
|
-
|
|
45020
|
-
(_formItemsMap$name2 = formItemsMap[name]) === null || _formItemsMap$name2 === void 0 ? void 0 : _formItemsMap$name2.resetField(type);
|
|
45021
|
-
});
|
|
45022
|
-
}
|
|
45023
|
-
}
|
|
45024
|
-
|
|
45025
|
-
function clearValidate(fields) {
|
|
45026
|
-
if (typeof fields === "undefined") {
|
|
45027
|
-
formItemsRef.current.forEach(function (_ref9) {
|
|
45028
|
-
var formItemRef = _ref9.current;
|
|
45029
|
-
formItemRef && (formItemRef === null || formItemRef === void 0 ? void 0 : formItemRef.resetValidate());
|
|
45030
|
-
});
|
|
45031
|
-
} else {
|
|
45032
|
-
if (!Array.isArray(fields)) throw new Error("clearValidate \u53C2\u6570\u9700\u8981 Array \u7C7B\u578B");
|
|
45033
|
-
var formItemsMap = getFormItemsMap();
|
|
45034
|
-
fields.forEach(function (name) {
|
|
45035
|
-
var _formItemsMap$name3;
|
|
45036
|
-
|
|
45037
|
-
(_formItemsMap$name3 = formItemsMap[name]) === null || _formItemsMap$name3 === void 0 ? void 0 : _formItemsMap$name3.resetValidate();
|
|
45038
|
-
});
|
|
45039
|
-
}
|
|
45040
|
-
}
|
|
45041
|
-
|
|
45042
|
-
function setValidateMessage(message) {
|
|
45043
|
-
var formItemsMap = getFormItemsMap();
|
|
45044
|
-
Object.keys(message).forEach(function (name) {
|
|
45045
|
-
formItemsMap[name].setValidateMessage(message[name]);
|
|
45046
|
-
});
|
|
45047
|
-
}
|
|
45048
|
-
|
|
45049
|
-
React.useImperativeHandle(ref, function () {
|
|
45050
|
-
return {
|
|
45051
|
-
currentElement: formRef.current,
|
|
45052
|
-
submit: submitHandler,
|
|
45053
|
-
reset: reset,
|
|
45054
|
-
getFieldValue: getFieldValue,
|
|
45055
|
-
getFieldsValue: getFieldsValue,
|
|
45056
|
-
setFieldsValue: setFieldsValue,
|
|
45057
|
-
setFields: setFields,
|
|
45058
|
-
validate: validate,
|
|
45059
|
-
clearValidate: clearValidate,
|
|
45060
|
-
setValidateMessage: setValidateMessage
|
|
45061
|
-
};
|
|
45062
|
-
});
|
|
45063
|
-
|
|
45064
45112
|
function onFormItemValueChange(changedValue) {
|
|
45065
45113
|
var allFields = getFieldsValue(true);
|
|
45066
45114
|
onValuesChange(changedValue, allFields);
|
|
@@ -45068,10 +45116,10 @@
|
|
|
45068
45116
|
|
|
45069
45117
|
function onKeyDownHandler(e) {
|
|
45070
45118
|
if (preventSubmitDefault && e.key === "Enter") {
|
|
45071
|
-
var _e$
|
|
45119
|
+
var _e$preventDefault2, _e$stopPropagation2;
|
|
45072
45120
|
|
|
45073
|
-
(_e$
|
|
45074
|
-
(_e$
|
|
45121
|
+
(_e$preventDefault2 = e.preventDefault) === null || _e$preventDefault2 === void 0 ? void 0 : _e$preventDefault2.call(e);
|
|
45122
|
+
(_e$stopPropagation2 = e.stopPropagation) === null || _e$stopPropagation2 === void 0 ? void 0 : _e$stopPropagation2.call(e);
|
|
45075
45123
|
}
|
|
45076
45124
|
}
|
|
45077
45125
|
|
|
@@ -45097,8 +45145,8 @@
|
|
|
45097
45145
|
ref: formRef,
|
|
45098
45146
|
style: style,
|
|
45099
45147
|
className: formClass,
|
|
45100
|
-
onSubmit:
|
|
45101
|
-
onReset:
|
|
45148
|
+
onSubmit: submit,
|
|
45149
|
+
onReset: onResetHandler,
|
|
45102
45150
|
onKeyDown: onKeyDownHandler
|
|
45103
45151
|
}, children));
|
|
45104
45152
|
}, {
|
|
@@ -46690,7 +46738,8 @@
|
|
|
46690
46738
|
var onChange = _ref.onChange,
|
|
46691
46739
|
style = _ref.style,
|
|
46692
46740
|
classPrefix = _ref.classPrefix,
|
|
46693
|
-
toolTipProps = _ref.toolTipProps
|
|
46741
|
+
toolTipProps = _ref.toolTipProps,
|
|
46742
|
+
hideTips = _ref.hideTips;
|
|
46694
46743
|
|
|
46695
46744
|
var _useState = React.useState(false),
|
|
46696
46745
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -46734,10 +46783,7 @@
|
|
|
46734
46783
|
setPopupVisible(false);
|
|
46735
46784
|
};
|
|
46736
46785
|
|
|
46737
|
-
|
|
46738
|
-
visible: popupVisible,
|
|
46739
|
-
placement: "top"
|
|
46740
|
-
}, toolTipProps), /* @__PURE__ */React__default["default"].createElement("div", {
|
|
46786
|
+
var handleNode = /* @__PURE__ */React__default["default"].createElement("div", {
|
|
46741
46787
|
style: style,
|
|
46742
46788
|
className: "".concat(classPrefix, "-slider__button-wrapper"),
|
|
46743
46789
|
onMouseDown: function onMouseDown(e) {
|
|
@@ -46751,7 +46797,11 @@
|
|
|
46751
46797
|
}
|
|
46752
46798
|
}, /* @__PURE__ */React__default["default"].createElement("div", {
|
|
46753
46799
|
className: classNames$1("".concat(classPrefix, "-slider__button"), _defineProperty$2({}, "".concat(classPrefix, "-slider__button--dragging"), isDragging))
|
|
46754
|
-
}))
|
|
46800
|
+
}));
|
|
46801
|
+
return hideTips ? handleNode : /* @__PURE__ */React__default["default"].createElement(Tooltip$1, _objectSpread$c({
|
|
46802
|
+
visible: popupVisible,
|
|
46803
|
+
placement: "top"
|
|
46804
|
+
}, toolTipProps), handleNode);
|
|
46755
46805
|
};
|
|
46756
46806
|
|
|
46757
46807
|
function accAdd(arg1, arg2) {
|
|
@@ -46956,6 +47006,7 @@
|
|
|
46956
47006
|
};
|
|
46957
47007
|
|
|
46958
47008
|
var onSliderChange = function onSliderChange(event, nodeIndex) {
|
|
47009
|
+
if (disabled) return;
|
|
46959
47010
|
var clientKey = isVertical ? "clientY" : "clientX";
|
|
46960
47011
|
var sliderPositionInfo = sliderRef.current.getBoundingClientRect();
|
|
46961
47012
|
var sliderOffset = sliderPositionInfo[startDirection];
|
|
@@ -46970,13 +47021,17 @@
|
|
|
46970
47021
|
|
|
46971
47022
|
var createHandleButton = function createHandleButton(nodeIndex, style2) {
|
|
46972
47023
|
var currentValue = renderValue[nodeIndex];
|
|
46973
|
-
var tipLabel =
|
|
46974
|
-
if (
|
|
47024
|
+
var tipLabel = currentValue;
|
|
47025
|
+
if (isFunction_1(label)) tipLabel = label({
|
|
47026
|
+
value: currentValue,
|
|
47027
|
+
position: nodeIndex === LEFT_NODE ? "start" : "end"
|
|
47028
|
+
});
|
|
47029
|
+
if (isString_1(label)) tipLabel = label.replace(/\$\{value\}/g, currentValue.toString());
|
|
46975
47030
|
return /* @__PURE__ */React__default["default"].createElement(SliderHandleButton, {
|
|
46976
47031
|
toolTipProps: _objectSpread$b({
|
|
46977
|
-
disabled: label === false,
|
|
46978
47032
|
content: tipLabel
|
|
46979
47033
|
}, tooltipProps),
|
|
47034
|
+
hideTips: label === false,
|
|
46980
47035
|
classPrefix: classPrefix,
|
|
46981
47036
|
style: style2,
|
|
46982
47037
|
onChange: function onChange(e) {
|
|
@@ -47089,7 +47144,7 @@
|
|
|
47089
47144
|
setVisible(false);
|
|
47090
47145
|
}
|
|
47091
47146
|
|
|
47092
|
-
setValue(value2, "
|
|
47147
|
+
setValue(value2, "check", node.getModel());
|
|
47093
47148
|
}
|
|
47094
47149
|
}
|
|
47095
47150
|
function valueChangeEffect(node, cascaderContext) {
|
|
@@ -47138,7 +47193,7 @@
|
|
|
47138
47193
|
setFilterActive(false);
|
|
47139
47194
|
}
|
|
47140
47195
|
|
|
47141
|
-
setValue(checked, "
|
|
47196
|
+
setValue(checked, "check", node.getModel());
|
|
47142
47197
|
}
|
|
47143
47198
|
|
|
47144
47199
|
function getLabelIsEllipsis(node, size) {
|
|
@@ -47518,7 +47573,7 @@
|
|
|
47518
47573
|
setValue = cascaderContext.setValue;
|
|
47519
47574
|
if (disabled) return;
|
|
47520
47575
|
var checked = node.setChecked(!node.isChecked());
|
|
47521
|
-
setValue(checked, "
|
|
47576
|
+
setValue(checked, "uncheck", node.getModel());
|
|
47522
47577
|
|
|
47523
47578
|
if (isFunction_1(onRemove)) {
|
|
47524
47579
|
onRemove({
|
|
@@ -50582,6 +50637,15 @@
|
|
|
50582
50637
|
var TIME_FORMAT = "HH:mm:ss";
|
|
50583
50638
|
|
|
50584
50639
|
var DatePicker$1 = function DatePicker(props) {
|
|
50640
|
+
var _useLocaleReceiver = useLocaleReceiver("datePicker"),
|
|
50641
|
+
_useLocaleReceiver2 = _slicedToArray(_useLocaleReceiver, 2),
|
|
50642
|
+
local = _useLocaleReceiver2[0],
|
|
50643
|
+
t = _useLocaleReceiver2[1];
|
|
50644
|
+
|
|
50645
|
+
var selectTimeText = t(local.selectTime);
|
|
50646
|
+
var selectDateText = t(local.selectDate);
|
|
50647
|
+
var confirmText = t(local.confirm);
|
|
50648
|
+
var rangeSeparatorText = t(local.rangeSeparator);
|
|
50585
50649
|
var className = props.className,
|
|
50586
50650
|
style = props.style,
|
|
50587
50651
|
allowInput = props.allowInput,
|
|
@@ -50589,32 +50653,26 @@
|
|
|
50589
50653
|
disabled = props.disabled,
|
|
50590
50654
|
disableDate = props.disableDate,
|
|
50591
50655
|
enableTimePicker = props.enableTimePicker,
|
|
50592
|
-
format = props.format,
|
|
50656
|
+
_props$format = props.format,
|
|
50657
|
+
format = _props$format === void 0 ? "YYYY-MM-DD" : _props$format,
|
|
50593
50658
|
inputProps = props.inputProps,
|
|
50594
|
-
mode = props.mode,
|
|
50659
|
+
_props$mode = props.mode,
|
|
50660
|
+
mode = _props$mode === void 0 ? "month" : _props$mode,
|
|
50595
50661
|
popupProps = props.popupProps,
|
|
50596
50662
|
prefixIcon = props.prefixIcon,
|
|
50597
50663
|
presets = props.presets,
|
|
50598
50664
|
range = props.range,
|
|
50599
|
-
size = props.size,
|
|
50665
|
+
_props$size = props.size,
|
|
50666
|
+
size = _props$size === void 0 ? "medium" : _props$size,
|
|
50600
50667
|
suffixIcon = props.suffixIcon,
|
|
50601
50668
|
value = props.value,
|
|
50602
50669
|
defaultValue = props.defaultValue,
|
|
50603
50670
|
firstDayOfWeek = props.firstDayOfWeek,
|
|
50671
|
+
_props$placeholder = props.placeholder,
|
|
50672
|
+
placeholder = _props$placeholder === void 0 ? t(local.placeholder[mode]) : _props$placeholder,
|
|
50604
50673
|
onChange = props.onChange,
|
|
50605
50674
|
onPick = props.onPick;
|
|
50606
50675
|
|
|
50607
|
-
var _useLocaleReceiver = useLocaleReceiver("datePicker"),
|
|
50608
|
-
_useLocaleReceiver2 = _slicedToArray(_useLocaleReceiver, 2),
|
|
50609
|
-
local = _useLocaleReceiver2[0],
|
|
50610
|
-
t = _useLocaleReceiver2[1];
|
|
50611
|
-
|
|
50612
|
-
var selectTimeText = t(local.selectTime);
|
|
50613
|
-
var selectDateText = t(local.selectDate);
|
|
50614
|
-
var confirmText = t(local.confirm);
|
|
50615
|
-
var rangeSeparatorText = t(local.rangeSeparator);
|
|
50616
|
-
var placeholder = t(local.placeholder[mode]);
|
|
50617
|
-
|
|
50618
50676
|
var _useConfig = useConfig$1(),
|
|
50619
50677
|
classPrefix = _useConfig.classPrefix;
|
|
50620
50678
|
|
|
@@ -51058,20 +51116,104 @@
|
|
|
51058
51116
|
};
|
|
51059
51117
|
|
|
51060
51118
|
DatePicker$1.displayName = "DatePicker";
|
|
51061
|
-
DatePicker$1.defaultProps = {
|
|
51062
|
-
format: "YYYY-MM-DD",
|
|
51063
|
-
mode: "month",
|
|
51064
|
-
placeholder: "\u8BF7\u9009\u62E9",
|
|
51065
|
-
size: "medium"
|
|
51066
|
-
};
|
|
51067
51119
|
|
|
51068
51120
|
var DatePicker = DatePicker$1;
|
|
51069
51121
|
|
|
51122
|
+
var CARD_SCALE = 210 / 332;
|
|
51123
|
+
var itemWidth = 0.415;
|
|
51124
|
+
|
|
51125
|
+
var disposeIndex = function disposeIndex(index, currentIndex, childrenLength) {
|
|
51126
|
+
if (currentIndex === 0 && index === childrenLength - 1) {
|
|
51127
|
+
return -1;
|
|
51128
|
+
}
|
|
51129
|
+
|
|
51130
|
+
if (currentIndex === childrenLength - 1 && index === 0) {
|
|
51131
|
+
return childrenLength;
|
|
51132
|
+
}
|
|
51133
|
+
|
|
51134
|
+
if (index < currentIndex - 1 && currentIndex - index >= childrenLength / 2) {
|
|
51135
|
+
return childrenLength + 1;
|
|
51136
|
+
}
|
|
51137
|
+
|
|
51138
|
+
if (index > currentIndex + 1 && index - currentIndex >= childrenLength / 2) {
|
|
51139
|
+
return -2;
|
|
51140
|
+
}
|
|
51141
|
+
|
|
51142
|
+
return index;
|
|
51143
|
+
};
|
|
51144
|
+
|
|
51145
|
+
var calculateTranslate = function calculateTranslate(index, currentIndex, parentWidth, inStage) {
|
|
51146
|
+
if (inStage) {
|
|
51147
|
+
return parentWidth * ((index - currentIndex) * (1 - itemWidth * CARD_SCALE) - itemWidth + 1) / 2;
|
|
51148
|
+
}
|
|
51149
|
+
|
|
51150
|
+
if (index < currentIndex) {
|
|
51151
|
+
return -itemWidth * (1 + CARD_SCALE) * parentWidth / 2;
|
|
51152
|
+
}
|
|
51153
|
+
|
|
51154
|
+
return (2 + itemWidth * (CARD_SCALE - 1)) * parentWidth / 2;
|
|
51155
|
+
};
|
|
51156
|
+
|
|
51157
|
+
var getZindex = function getZindex(isActivity, inStage) {
|
|
51158
|
+
if (isActivity) {
|
|
51159
|
+
return 2;
|
|
51160
|
+
}
|
|
51161
|
+
|
|
51162
|
+
if (inStage) {
|
|
51163
|
+
return 1;
|
|
51164
|
+
}
|
|
51165
|
+
|
|
51166
|
+
return 0;
|
|
51167
|
+
};
|
|
51168
|
+
|
|
51070
51169
|
var SwiperItem = function SwiperItem(props) {
|
|
51170
|
+
var _classnames;
|
|
51171
|
+
|
|
51071
51172
|
var children = props.children,
|
|
51072
|
-
|
|
51173
|
+
currentIndex = props.currentIndex,
|
|
51174
|
+
index = props.index,
|
|
51175
|
+
animation = props.animation,
|
|
51176
|
+
_props$duration = props.duration,
|
|
51177
|
+
duration = _props$duration === void 0 ? 300 : _props$duration,
|
|
51178
|
+
needAnimation = props.needAnimation,
|
|
51179
|
+
_props$type = props.type,
|
|
51180
|
+
type = _props$type === void 0 ? "default" : _props$type,
|
|
51181
|
+
childrenLength = props.childrenLength,
|
|
51182
|
+
getWrapAttribute = props.getWrapAttribute;
|
|
51183
|
+
|
|
51184
|
+
var _useConfig = useConfig$1(),
|
|
51185
|
+
classPrefix = _useConfig.classPrefix;
|
|
51186
|
+
|
|
51187
|
+
var getSwiperItemStyle = function getSwiperItemStyle() {
|
|
51188
|
+
if (animation === "fade") {
|
|
51189
|
+
return {
|
|
51190
|
+
opacity: currentIndex === index ? 1 : 0,
|
|
51191
|
+
transition: needAnimation ? "opacity ".concat(duration / 1e3, "s") : ""
|
|
51192
|
+
};
|
|
51193
|
+
}
|
|
51194
|
+
|
|
51195
|
+
if (type === "card") {
|
|
51196
|
+
var wrapWidth = getWrapAttribute("offsetWidth");
|
|
51197
|
+
var translateIndex = index !== currentIndex && childrenLength > 2 ? disposeIndex(index, currentIndex, childrenLength) : index;
|
|
51198
|
+
var inStage = Math.round(Math.abs(translateIndex - currentIndex)) <= 1;
|
|
51199
|
+
var translate = calculateTranslate(translateIndex, currentIndex, wrapWidth, inStage).toFixed(2);
|
|
51200
|
+
var isActivity = translateIndex === currentIndex;
|
|
51201
|
+
var zIndex = getZindex(isActivity, inStage);
|
|
51202
|
+
return {
|
|
51203
|
+
msTransform: "translateX(".concat(translate, "px) scale(").concat(isActivity ? 1 : CARD_SCALE, ")"),
|
|
51204
|
+
WebkitTransform: "translateX(".concat(translate, "px) scale(").concat(isActivity ? 1 : CARD_SCALE, ")"),
|
|
51205
|
+
transform: "translateX(".concat(translate, "px) scale(").concat(isActivity ? 1 : CARD_SCALE, ")"),
|
|
51206
|
+
transition: "transform ".concat(duration / 1e3, "s ease"),
|
|
51207
|
+
zIndex: zIndex
|
|
51208
|
+
};
|
|
51209
|
+
}
|
|
51210
|
+
|
|
51211
|
+
return {};
|
|
51212
|
+
};
|
|
51213
|
+
|
|
51073
51214
|
return /* @__PURE__ */React__default["default"].createElement("div", {
|
|
51074
|
-
className:
|
|
51215
|
+
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)),
|
|
51216
|
+
style: getSwiperItemStyle()
|
|
51075
51217
|
}, children);
|
|
51076
51218
|
};
|
|
51077
51219
|
|
|
@@ -51081,10 +51223,22 @@
|
|
|
51081
51223
|
|
|
51082
51224
|
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; }
|
|
51083
51225
|
|
|
51226
|
+
var defaultNavigation = {
|
|
51227
|
+
placement: "inside",
|
|
51228
|
+
showSlideBtn: "always",
|
|
51229
|
+
size: "medium",
|
|
51230
|
+
type: "bars"
|
|
51231
|
+
};
|
|
51232
|
+
|
|
51084
51233
|
var Swiper$1 = function Swiper(props) {
|
|
51085
|
-
var
|
|
51234
|
+
var _classnames4, _classnames5;
|
|
51235
|
+
|
|
51236
|
+
var _props$animation = props.animation,
|
|
51237
|
+
animation = _props$animation === void 0 ? "slide" : _props$animation,
|
|
51238
|
+
_props$autoplay = props.autoplay,
|
|
51086
51239
|
autoplay = _props$autoplay === void 0 ? true : _props$autoplay,
|
|
51087
|
-
current = props.current,
|
|
51240
|
+
_props$current = props.current,
|
|
51241
|
+
current = _props$current === void 0 ? 0 : _props$current,
|
|
51088
51242
|
_props$defaultCurrent = props.defaultCurrent,
|
|
51089
51243
|
defaultCurrent = _props$defaultCurrent === void 0 ? 0 : _props$defaultCurrent,
|
|
51090
51244
|
_props$direction = props.direction,
|
|
@@ -51093,27 +51247,59 @@
|
|
|
51093
51247
|
duration = _props$duration === void 0 ? 300 : _props$duration,
|
|
51094
51248
|
_props$interval = props.interval,
|
|
51095
51249
|
interval = _props$interval === void 0 ? 5e3 : _props$interval,
|
|
51250
|
+
_props$trigger = props.trigger,
|
|
51251
|
+
trigger = _props$trigger === void 0 ? "hover" : _props$trigger,
|
|
51252
|
+
height = props.height,
|
|
51253
|
+
_props$loop = props.loop,
|
|
51254
|
+
loop = _props$loop === void 0 ? true : _props$loop,
|
|
51255
|
+
_props$stopOnHover = props.stopOnHover,
|
|
51256
|
+
stopOnHover = _props$stopOnHover === void 0 ? true : _props$stopOnHover,
|
|
51096
51257
|
_props$onChange = props.onChange,
|
|
51097
51258
|
onChange = _props$onChange === void 0 ? noop$1 : _props$onChange,
|
|
51098
51259
|
className = props.className,
|
|
51099
|
-
children = props.children
|
|
51260
|
+
children = props.children,
|
|
51261
|
+
navigation = props.navigation,
|
|
51262
|
+
_props$type = props.type,
|
|
51263
|
+
type = _props$type === void 0 ? "default" : _props$type;
|
|
51100
51264
|
|
|
51101
51265
|
var _useConfig = useConfig$1(),
|
|
51102
51266
|
classPrefix = _useConfig.classPrefix;
|
|
51103
51267
|
|
|
51268
|
+
var navigationConfig = defaultNavigation;
|
|
51269
|
+
var navigationNode = null;
|
|
51270
|
+
|
|
51271
|
+
if ( /*#__PURE__*/React.isValidElement(navigation)) {
|
|
51272
|
+
navigationNode = navigation;
|
|
51273
|
+
} else {
|
|
51274
|
+
navigationConfig = _objectSpread$4(_objectSpread$4({}, defaultNavigation), navigation);
|
|
51275
|
+
}
|
|
51276
|
+
|
|
51104
51277
|
var _useState = React.useState(defaultCurrent),
|
|
51105
51278
|
_useState2 = _slicedToArray(_useState, 2),
|
|
51106
51279
|
currentIndex = _useState2[0],
|
|
51107
51280
|
setCurrentIndex = _useState2[1];
|
|
51108
51281
|
|
|
51109
|
-
var _useState3 = React.useState(
|
|
51282
|
+
var _useState3 = React.useState(false),
|
|
51110
51283
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
51111
|
-
|
|
51112
|
-
|
|
51284
|
+
needAnimation = _useState4[0],
|
|
51285
|
+
setNeedAnimation = _useState4[1];
|
|
51286
|
+
|
|
51287
|
+
var _useState5 = React.useState(navigationConfig.showSlideBtn === "always"),
|
|
51288
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
51289
|
+
arrowShow = _useState6[0],
|
|
51290
|
+
setArrowShow = _useState6[1];
|
|
51113
51291
|
|
|
51114
51292
|
var swiperTimer = React.useRef(null);
|
|
51293
|
+
var swiperAnimationTimer = React.useRef(null);
|
|
51115
51294
|
var isHovering = React.useRef(false);
|
|
51116
|
-
var
|
|
51295
|
+
var swiperWrap = React.useRef(null);
|
|
51296
|
+
|
|
51297
|
+
var getWrapAttribute = function getWrapAttribute(attr) {
|
|
51298
|
+
var _swiperWrap$current, _swiperWrap$current$p;
|
|
51299
|
+
|
|
51300
|
+
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];
|
|
51301
|
+
};
|
|
51302
|
+
|
|
51117
51303
|
var childrenList = React.useMemo(function () {
|
|
51118
51304
|
return React__default["default"].Children.toArray(children).filter(function (child) {
|
|
51119
51305
|
return child.type.displayName === SwiperItem.displayName;
|
|
@@ -51121,22 +51307,28 @@
|
|
|
51121
51307
|
}, [children]);
|
|
51122
51308
|
var childrenLength = childrenList.length;
|
|
51123
51309
|
var swiperItemList = childrenList.map(function (child, index) {
|
|
51124
|
-
return /*#__PURE__*/React__default["default"].cloneElement(child, _objectSpread$4({
|
|
51125
|
-
|
|
51126
|
-
|
|
51310
|
+
return /*#__PURE__*/React__default["default"].cloneElement(child, _objectSpread$4(_objectSpread$4({
|
|
51311
|
+
key: index,
|
|
51312
|
+
index: index,
|
|
51313
|
+
currentIndex: currentIndex,
|
|
51314
|
+
needAnimation: needAnimation,
|
|
51315
|
+
childrenLength: childrenLength,
|
|
51316
|
+
getWrapAttribute: getWrapAttribute
|
|
51317
|
+
}, props), child.props));
|
|
51127
51318
|
});
|
|
51128
51319
|
|
|
51129
|
-
if (childrenLength > 0) {
|
|
51320
|
+
if (childrenLength > 0 && type === "default") {
|
|
51130
51321
|
var firstEle = swiperItemList[0];
|
|
51131
51322
|
swiperItemList.push( /*#__PURE__*/React__default["default"].cloneElement(firstEle, _objectSpread$4(_objectSpread$4({}, firstEle.props), {}, {
|
|
51132
|
-
key:
|
|
51323
|
+
key: childrenLength,
|
|
51324
|
+
index: childrenLength
|
|
51133
51325
|
})));
|
|
51134
51326
|
}
|
|
51135
51327
|
|
|
51136
51328
|
var swiperItemLength = swiperItemList.length;
|
|
51137
51329
|
var swiperTo = React.useCallback(function (index, context) {
|
|
51138
51330
|
onChange(index % childrenLength, context);
|
|
51139
|
-
|
|
51331
|
+
setNeedAnimation(true);
|
|
51140
51332
|
setCurrentIndex(index);
|
|
51141
51333
|
}, [childrenLength, onChange]);
|
|
51142
51334
|
var setTimer = React.useCallback(function () {
|
|
@@ -51154,78 +51346,241 @@
|
|
|
51154
51346
|
swiperTimer.current = null;
|
|
51155
51347
|
}
|
|
51156
51348
|
}, []);
|
|
51349
|
+
var isEnd = React.useCallback(function () {
|
|
51350
|
+
if (type === "card") {
|
|
51351
|
+
return !loop && currentIndex + 1 >= swiperItemLength;
|
|
51352
|
+
}
|
|
51353
|
+
|
|
51354
|
+
return !loop && currentIndex + 2 >= swiperItemLength;
|
|
51355
|
+
}, [loop, currentIndex, swiperItemLength, type]);
|
|
51157
51356
|
React.useEffect(function () {
|
|
51158
51357
|
if (current !== void 0) {
|
|
51159
51358
|
swiperTo(current % childrenLength, {
|
|
51160
|
-
source: ""
|
|
51359
|
+
source: "autoplay"
|
|
51161
51360
|
});
|
|
51162
51361
|
}
|
|
51163
51362
|
}, [current, childrenLength, swiperTo]);
|
|
51164
51363
|
React.useEffect(function () {
|
|
51165
|
-
if (
|
|
51166
|
-
|
|
51167
|
-
setTimer();
|
|
51364
|
+
if (currentIndex + 1 > swiperItemLength && type === "card") {
|
|
51365
|
+
return setCurrentIndex(0);
|
|
51168
51366
|
}
|
|
51169
|
-
}, [clearTimer, setTimer]);
|
|
51170
|
-
React.useEffect(function () {
|
|
51171
|
-
setTimeout(function () {
|
|
51172
|
-
setAnimation(false);
|
|
51173
51367
|
|
|
51174
|
-
|
|
51368
|
+
if (swiperAnimationTimer.current) {
|
|
51369
|
+
clearTimeout(swiperAnimationTimer.current);
|
|
51370
|
+
swiperAnimationTimer.current = null;
|
|
51371
|
+
}
|
|
51372
|
+
|
|
51373
|
+
swiperAnimationTimer.current = setTimeout(function () {
|
|
51374
|
+
setNeedAnimation(false);
|
|
51375
|
+
|
|
51376
|
+
if (isEnd()) {
|
|
51377
|
+
clearTimer();
|
|
51378
|
+
}
|
|
51379
|
+
|
|
51380
|
+
if (currentIndex + 1 >= swiperItemLength && type !== "card") {
|
|
51175
51381
|
setCurrentIndex(0);
|
|
51176
51382
|
}
|
|
51177
51383
|
}, duration + 50);
|
|
51178
|
-
}, [currentIndex, swiperItemLength, duration,
|
|
51384
|
+
}, [currentIndex, swiperItemLength, duration, type, clearTimer, isEnd]);
|
|
51385
|
+
React.useEffect(function () {
|
|
51386
|
+
if (!isHovering.current || !stopOnHover) {
|
|
51387
|
+
clearTimer();
|
|
51388
|
+
setTimer();
|
|
51389
|
+
}
|
|
51390
|
+
}, [setTimer, clearTimer, stopOnHover]);
|
|
51179
51391
|
|
|
51180
51392
|
var onMouseEnter = function onMouseEnter() {
|
|
51181
51393
|
isHovering.current = true;
|
|
51182
|
-
|
|
51394
|
+
|
|
51395
|
+
if (stopOnHover) {
|
|
51396
|
+
clearTimer();
|
|
51397
|
+
}
|
|
51398
|
+
|
|
51399
|
+
if (navigationConfig.showSlideBtn === "hover") {
|
|
51400
|
+
setArrowShow(true);
|
|
51401
|
+
}
|
|
51183
51402
|
};
|
|
51184
51403
|
|
|
51185
51404
|
var onMouseLeave = function onMouseLeave() {
|
|
51186
51405
|
isHovering.current = false;
|
|
51187
|
-
|
|
51406
|
+
|
|
51407
|
+
if (!isEnd()) {
|
|
51408
|
+
setTimer();
|
|
51409
|
+
}
|
|
51410
|
+
|
|
51411
|
+
if (navigationConfig.showSlideBtn === "hover") {
|
|
51412
|
+
setArrowShow(false);
|
|
51413
|
+
}
|
|
51188
51414
|
};
|
|
51189
51415
|
|
|
51190
|
-
var
|
|
51416
|
+
var navMouseAction = function navMouseAction(action, index) {
|
|
51417
|
+
if (action === "enter"
|
|
51418
|
+
/* Enter */
|
|
51419
|
+
&& trigger === "hover") {
|
|
51420
|
+
swiperTo(index, {
|
|
51421
|
+
source: "hover"
|
|
51422
|
+
});
|
|
51423
|
+
}
|
|
51191
51424
|
|
|
51192
|
-
|
|
51193
|
-
|
|
51194
|
-
|
|
51195
|
-
|
|
51196
|
-
|
|
51197
|
-
|
|
51198
|
-
|
|
51199
|
-
|
|
51200
|
-
|
|
51201
|
-
|
|
51202
|
-
|
|
51203
|
-
|
|
51204
|
-
|
|
51425
|
+
if (action === "click"
|
|
51426
|
+
/* Click */
|
|
51427
|
+
&& trigger === "click") {
|
|
51428
|
+
swiperTo(index, {
|
|
51429
|
+
source: "click"
|
|
51430
|
+
});
|
|
51431
|
+
}
|
|
51432
|
+
};
|
|
51433
|
+
|
|
51434
|
+
var arrowClick = function arrowClick(direction2) {
|
|
51435
|
+
if (needAnimation) {
|
|
51436
|
+
return false;
|
|
51437
|
+
}
|
|
51438
|
+
|
|
51439
|
+
if (direction2 === "right"
|
|
51440
|
+
/* Right */
|
|
51441
|
+
) {
|
|
51442
|
+
if (type === "card") {
|
|
51443
|
+
return swiperTo(currentIndex + 1 >= swiperItemLength ? 0 : currentIndex + 1, {
|
|
51444
|
+
source: "click"
|
|
51445
|
+
});
|
|
51446
|
+
}
|
|
51447
|
+
|
|
51448
|
+
return swiperTo(currentIndex + 1, {
|
|
51449
|
+
source: "click"
|
|
51450
|
+
});
|
|
51451
|
+
}
|
|
51452
|
+
|
|
51453
|
+
if (direction2 === "left"
|
|
51454
|
+
/* Left */
|
|
51455
|
+
) {
|
|
51456
|
+
if (currentIndex - 1 < 0) {
|
|
51457
|
+
return swiperTo(childrenLength - 1, {
|
|
51458
|
+
source: "click"
|
|
51459
|
+
});
|
|
51460
|
+
}
|
|
51461
|
+
|
|
51462
|
+
return swiperTo(currentIndex - 1, {
|
|
51463
|
+
source: "click"
|
|
51464
|
+
});
|
|
51465
|
+
}
|
|
51466
|
+
};
|
|
51467
|
+
|
|
51468
|
+
var createArrow = function createArrow(type2) {
|
|
51469
|
+
if (!arrowShow) {
|
|
51470
|
+
return "";
|
|
51471
|
+
}
|
|
51472
|
+
|
|
51473
|
+
if (navigationConfig.type === "fraction" && type2 === "default"
|
|
51474
|
+
/* Default */
|
|
51475
|
+
) {
|
|
51476
|
+
return "";
|
|
51477
|
+
}
|
|
51478
|
+
|
|
51479
|
+
var fractionIndex = currentIndex + 1 > childrenLength ? 1 : currentIndex + 1;
|
|
51480
|
+
return /* @__PURE__ */React__default["default"].createElement("div", {
|
|
51481
|
+
className: classNames$1("".concat(classPrefix, "-swiper__arrow"), _defineProperty$2({}, "".concat(classPrefix, "-swiper__arrow--default"), type2 === "default"))
|
|
51482
|
+
}, /* @__PURE__ */React__default["default"].createElement("div", {
|
|
51483
|
+
className: "".concat(classPrefix, "-swiper__arrow-left"),
|
|
51484
|
+
onClick: function onClick() {
|
|
51485
|
+
return arrowClick("left"
|
|
51486
|
+
/* Left */
|
|
51487
|
+
);
|
|
51488
|
+
}
|
|
51489
|
+
}, /* @__PURE__ */React__default["default"].createElement(ChevronLeftIcon, null)), type2 === "fraction"
|
|
51490
|
+
/* Fraction */
|
|
51491
|
+
? /* @__PURE__ */React__default["default"].createElement("div", {
|
|
51492
|
+
className: "".concat(classPrefix, "-swiper__navigation-text-fraction")
|
|
51493
|
+
}, fractionIndex, "/", childrenLength) : "", /* @__PURE__ */React__default["default"].createElement("div", {
|
|
51494
|
+
className: "".concat(classPrefix, "-swiper__arrow-right"),
|
|
51495
|
+
onClick: function onClick() {
|
|
51496
|
+
return arrowClick("right"
|
|
51497
|
+
/* Right */
|
|
51498
|
+
);
|
|
51499
|
+
}
|
|
51500
|
+
}, /* @__PURE__ */React__default["default"].createElement(ChevronRightIcon, null)));
|
|
51501
|
+
};
|
|
51502
|
+
|
|
51503
|
+
var createNavigation = function createNavigation() {
|
|
51504
|
+
if (navigationConfig.type === "fraction") {
|
|
51505
|
+
return /* @__PURE__ */React__default["default"].createElement("div", {
|
|
51506
|
+
className: classNames$1("".concat(classPrefix, "-swiper__navigation"), "".concat(classPrefix, "-swiper__navigation--fraction"))
|
|
51507
|
+
}, createArrow("fraction"
|
|
51508
|
+
/* Fraction */
|
|
51509
|
+
));
|
|
51510
|
+
}
|
|
51511
|
+
|
|
51512
|
+
return navigationNode ? /* @__PURE__ */React__default["default"].createElement(React__default["default"].Fragment, null, navigationNode) : /* @__PURE__ */React__default["default"].createElement("ul", {
|
|
51513
|
+
className: classNames$1("".concat(classPrefix, "-swiper__navigation"), _defineProperty$2({}, "".concat(classPrefix, "-swiper__navigation-bars"), navigationConfig.type === "bars"))
|
|
51514
|
+
}, childrenList.map(function (_, i) {
|
|
51515
|
+
return /* @__PURE__ */React__default["default"].createElement("li", {
|
|
51516
|
+
key: i,
|
|
51517
|
+
className: classNames$1("".concat(classPrefix, "-swiper__navigation-item"), _defineProperty$2({}, "".concat(classPrefix, "-is-active"), i === currentIndex % childrenLength)),
|
|
51518
|
+
onClick: function onClick() {
|
|
51519
|
+
return navMouseAction("click"
|
|
51520
|
+
/* Click */
|
|
51521
|
+
, i);
|
|
51522
|
+
},
|
|
51523
|
+
onMouseEnter: function onMouseEnter() {
|
|
51524
|
+
return navMouseAction("enter"
|
|
51525
|
+
/* Enter */
|
|
51526
|
+
, i);
|
|
51527
|
+
},
|
|
51528
|
+
onMouseLeave: function onMouseLeave() {
|
|
51529
|
+
return navMouseAction("leave"
|
|
51530
|
+
/* Leave */
|
|
51531
|
+
, i);
|
|
51532
|
+
}
|
|
51533
|
+
}, /* @__PURE__ */React__default["default"].createElement("span", null));
|
|
51534
|
+
}));
|
|
51535
|
+
};
|
|
51536
|
+
|
|
51537
|
+
var getWrapperStyle = function getWrapperStyle() {
|
|
51538
|
+
var offsetHeight = height ? "".concat(height, "px") : "".concat(getWrapAttribute("offsetHeight"), "px");
|
|
51539
|
+
|
|
51540
|
+
if (type === "card" || animation === "fade") {
|
|
51541
|
+
return {
|
|
51542
|
+
height: offsetHeight
|
|
51543
|
+
};
|
|
51544
|
+
}
|
|
51545
|
+
|
|
51546
|
+
if (animation === "slide") {
|
|
51547
|
+
if (direction === "vertical") {
|
|
51548
|
+
return {
|
|
51549
|
+
height: offsetHeight,
|
|
51550
|
+
msTransform: "translate3d(0, -".concat(currentIndex * 100, "%, 0px)"),
|
|
51551
|
+
WebkitTransform: "translate3d(0, -".concat(currentIndex * 100, "%, 0px)"),
|
|
51552
|
+
transform: "translate3d(0, -".concat(currentIndex * 100, "%, 0px)"),
|
|
51553
|
+
transition: needAnimation ? "transform ".concat(duration / 1e3, "s ease") : ""
|
|
51554
|
+
};
|
|
51555
|
+
}
|
|
51556
|
+
|
|
51557
|
+
return {
|
|
51558
|
+
msTransform: "translate3d(-".concat(currentIndex * 100, "%, 0px, 0px)"),
|
|
51559
|
+
WebkitTransform: "translate3d(-".concat(currentIndex * 100, "%, 0px, 0px)"),
|
|
51560
|
+
transform: "translate3d(-".concat(currentIndex * 100, "%, 0px, 0px)"),
|
|
51561
|
+
transition: needAnimation ? "transform ".concat(duration / 1e3, "s ease") : ""
|
|
51562
|
+
};
|
|
51563
|
+
}
|
|
51564
|
+
};
|
|
51205
51565
|
|
|
51206
51566
|
return /* @__PURE__ */React__default["default"].createElement("div", {
|
|
51207
51567
|
className: classNames$1("".concat(classPrefix, "-swiper"), className),
|
|
51208
51568
|
onMouseEnter: onMouseEnter,
|
|
51209
|
-
onMouseLeave: onMouseLeave
|
|
51569
|
+
onMouseLeave: onMouseLeave,
|
|
51570
|
+
ref: swiperWrap
|
|
51210
51571
|
}, /* @__PURE__ */React__default["default"].createElement("div", {
|
|
51211
|
-
className: "".concat(classPrefix, "-
|
|
51572
|
+
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))
|
|
51212
51573
|
}, /* @__PURE__ */React__default["default"].createElement("div", {
|
|
51213
|
-
|
|
51214
|
-
|
|
51215
|
-
|
|
51216
|
-
|
|
51217
|
-
|
|
51218
|
-
|
|
51219
|
-
|
|
51220
|
-
|
|
51221
|
-
|
|
51222
|
-
|
|
51223
|
-
return swiperTo(i, {
|
|
51224
|
-
source: "touch"
|
|
51225
|
-
});
|
|
51226
|
-
}
|
|
51227
|
-
});
|
|
51228
|
-
})));
|
|
51574
|
+
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)),
|
|
51575
|
+
style: {
|
|
51576
|
+
height: ""
|
|
51577
|
+
}
|
|
51578
|
+
}, /* @__PURE__ */React__default["default"].createElement("div", {
|
|
51579
|
+
className: "".concat(classPrefix, "-swiper__container"),
|
|
51580
|
+
style: getWrapperStyle()
|
|
51581
|
+
}, swiperItemList)), createNavigation(), createArrow("default"
|
|
51582
|
+
/* Default */
|
|
51583
|
+
)));
|
|
51229
51584
|
};
|
|
51230
51585
|
|
|
51231
51586
|
Swiper$1.SwiperItem = SwiperItem;
|