@chaoswise/ui 3.0.6 → 3.0.8
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/lib/AbreastLayout/CollapsedBtn.js +45 -0
- package/lib/AbreastLayout/CollapsedIcon.js +14 -0
- package/lib/AbreastLayout/NavTreeContainer.js +26 -0
- package/lib/AbreastLayout/assets/icon.png +0 -0
- package/lib/AbreastLayout/assets/icon.svg +11 -0
- package/lib/AbreastLayout/assets/icon1.svg +20 -0
- package/lib/AbreastLayout/index.js +215 -0
- package/lib/AbreastLayout/index.style.js +91 -0
- package/lib/Ace/ace.js +600 -0
- package/lib/Ace/diff.js +291 -0
- package/lib/Ace/editorOptions.js +34 -0
- package/lib/Ace/index.js +6 -0
- package/lib/Ace/split.js +462 -0
- package/lib/AdaptiveLayout/index.js +251 -0
- package/lib/Affix/index.js +2 -0
- package/lib/Alert/index.js +2 -0
- package/lib/Anchor/index.js +2 -0
- package/lib/Antd5/_util/ActionButton.js +117 -0
- package/lib/Antd5/_util/PurePanel.js +103 -0
- package/lib/Antd5/_util/aria-data-attrs.js +1 -0
- package/lib/Antd5/_util/capitalize.js +7 -0
- package/lib/Antd5/_util/colors.js +26 -0
- package/lib/Antd5/_util/easings.js +10 -0
- package/lib/Antd5/_util/extendsObject.js +26 -0
- package/lib/Antd5/_util/gapSize.js +10 -0
- package/lib/Antd5/_util/getAllowClear.js +16 -0
- package/lib/Antd5/_util/getRenderPropValue.js +6 -0
- package/lib/Antd5/_util/getScroll.js +29 -0
- package/lib/Antd5/_util/hooks/useClosable.js +119 -0
- package/lib/Antd5/_util/hooks/useForceUpdate.js +15 -0
- package/lib/Antd5/_util/hooks/useMultipleSelect.js +47 -0
- package/lib/Antd5/_util/hooks/usePatchElement.js +33 -0
- package/lib/Antd5/_util/hooks/useProxyImperativeHandle.js +32 -0
- package/lib/Antd5/_util/hooks/useSyncState.js +13 -0
- package/lib/Antd5/_util/hooks/useZIndex.js +56 -0
- package/lib/Antd5/_util/isNumeric.js +4 -0
- package/lib/Antd5/_util/motion.js +47 -0
- package/lib/Antd5/_util/placements.js +182 -0
- package/lib/Antd5/_util/reactNode.js +13 -0
- package/lib/Antd5/_util/responsiveObserver.js +123 -0
- package/lib/Antd5/_util/scrollTo.js +34 -0
- package/lib/Antd5/_util/statusUtils.js +12 -0
- package/lib/Antd5/_util/styleChecker.js +6 -0
- package/lib/Antd5/_util/throttleByAnimationFrame.js +30 -0
- package/lib/Antd5/_util/transButton.js +63 -0
- package/lib/Antd5/_util/transKeys.js +18 -0
- package/lib/Antd5/_util/type.js +1 -0
- package/lib/Antd5/_util/warning.js +59 -0
- package/lib/Antd5/_util/wave/WaveEffect.js +160 -0
- package/lib/Antd5/_util/wave/index.js +63 -0
- package/lib/Antd5/_util/wave/interface.js +1 -0
- package/lib/Antd5/_util/wave/style.js +32 -0
- package/lib/Antd5/_util/wave/useWave.js +48 -0
- package/lib/Antd5/_util/wave/util.js +29 -0
- package/lib/Antd5/_util/zindexContext.js +6 -0
- package/lib/Antd5/affix/index.js +228 -0
- package/lib/Antd5/affix/style/index.js +20 -0
- package/lib/Antd5/affix/utils.js +19 -0
- package/lib/Antd5/alert/Alert.js +233 -0
- package/lib/Antd5/alert/ErrorBoundary.js +76 -0
- package/lib/Antd5/alert/design/behavior-pattern.js +31 -0
- package/lib/Antd5/alert/index.js +5 -0
- package/lib/Antd5/alert/style/index.js +153 -0
- package/lib/Antd5/anchor/Anchor.js +278 -0
- package/lib/Antd5/anchor/AnchorLink.js +67 -0
- package/lib/Antd5/anchor/context.js +3 -0
- package/lib/Antd5/anchor/index.js +5 -0
- package/lib/Antd5/anchor/style/index.js +124 -0
- package/lib/Antd5/app/context.js +8 -0
- package/lib/Antd5/app/index.js +93 -0
- package/lib/Antd5/app/style/index.js +24 -0
- package/lib/Antd5/auto-complete/index.js +112 -0
- package/lib/Antd5/avatar/AvatarContext.js +3 -0
- package/lib/Antd5/avatar/avatar.js +189 -0
- package/lib/Antd5/avatar/group.js +103 -0
- package/lib/Antd5/avatar/index.js +6 -0
- package/lib/Antd5/avatar/style/index.js +110 -0
- package/lib/Antd5/back-top/index.js +113 -0
- package/lib/Antd5/back-top/style/index.js +82 -0
- package/lib/Antd5/badge/Ribbon.js +65 -0
- package/lib/Antd5/badge/ScrollNumber.js +72 -0
- package/lib/Antd5/badge/SingleNumber.js +122 -0
- package/lib/Antd5/badge/index.js +189 -0
- package/lib/Antd5/badge/style/index.js +291 -0
- package/lib/Antd5/badge/style/ribbon.js +72 -0
- package/lib/Antd5/breadcrumb/Breadcrumb.js +157 -0
- package/lib/Antd5/breadcrumb/BreadcrumbItem.js +103 -0
- package/lib/Antd5/breadcrumb/BreadcrumbSeparator.js +16 -0
- package/lib/Antd5/breadcrumb/design/behavior-pattern.js +36 -0
- package/lib/Antd5/breadcrumb/index.js +2 -0
- package/lib/Antd5/breadcrumb/style/index.js +82 -0
- package/lib/Antd5/breadcrumb/useItemRender.js +57 -0
- package/lib/Antd5/breadcrumb/useItems.js +42 -0
- package/lib/Antd5/button/IconWrapper.js +17 -0
- package/lib/Antd5/button/LoadingIcon.js +87 -0
- package/lib/Antd5/button/button-group.js +59 -0
- package/lib/Antd5/button/button.js +230 -0
- package/lib/Antd5/button/buttonHelpers.js +68 -0
- package/lib/Antd5/button/index.js +3 -0
- package/lib/Antd5/button/style/compactCmp.js +46 -0
- package/lib/Antd5/button/style/group.js +52 -0
- package/lib/Antd5/button/style/index.js +322 -0
- package/lib/Antd5/button/style/token.js +61 -0
- package/lib/Antd5/calendar/Header.js +176 -0
- package/lib/Antd5/calendar/generateCalendar.js +225 -0
- package/lib/Antd5/calendar/index.js +5 -0
- package/lib/Antd5/calendar/locale/ar_EG.js +2 -0
- package/lib/Antd5/calendar/locale/az_AZ.js +2 -0
- package/lib/Antd5/calendar/locale/bg_BG.js +2 -0
- package/lib/Antd5/calendar/locale/bn_BD.js +2 -0
- package/lib/Antd5/calendar/locale/by_BY.js +2 -0
- package/lib/Antd5/calendar/locale/ca_ES.js +2 -0
- package/lib/Antd5/calendar/locale/cs_CZ.js +2 -0
- package/lib/Antd5/calendar/locale/da_DK.js +2 -0
- package/lib/Antd5/calendar/locale/de_DE.js +2 -0
- package/lib/Antd5/calendar/locale/el_GR.js +2 -0
- package/lib/Antd5/calendar/locale/en_GB.js +2 -0
- package/lib/Antd5/calendar/locale/en_US.js +2 -0
- package/lib/Antd5/calendar/locale/es_ES.js +2 -0
- package/lib/Antd5/calendar/locale/et_EE.js +2 -0
- package/lib/Antd5/calendar/locale/eu_ES.js +2 -0
- package/lib/Antd5/calendar/locale/fa_IR.js +2 -0
- package/lib/Antd5/calendar/locale/fi_FI.js +2 -0
- package/lib/Antd5/calendar/locale/fr_BE.js +2 -0
- package/lib/Antd5/calendar/locale/fr_CA.js +2 -0
- package/lib/Antd5/calendar/locale/fr_FR.js +2 -0
- package/lib/Antd5/calendar/locale/ga_IE.js +2 -0
- package/lib/Antd5/calendar/locale/gl_ES.js +2 -0
- package/lib/Antd5/calendar/locale/he_IL.js +2 -0
- package/lib/Antd5/calendar/locale/hi_IN.js +2 -0
- package/lib/Antd5/calendar/locale/hr_HR.js +2 -0
- package/lib/Antd5/calendar/locale/hu_HU.js +2 -0
- package/lib/Antd5/calendar/locale/id_ID.js +2 -0
- package/lib/Antd5/calendar/locale/is_IS.js +2 -0
- package/lib/Antd5/calendar/locale/it_IT.js +2 -0
- package/lib/Antd5/calendar/locale/ja_JP.js +2 -0
- package/lib/Antd5/calendar/locale/ka_GE.js +2 -0
- package/lib/Antd5/calendar/locale/kk_KZ.js +2 -0
- package/lib/Antd5/calendar/locale/km_KH.js +2 -0
- package/lib/Antd5/calendar/locale/kmr_IQ.js +2 -0
- package/lib/Antd5/calendar/locale/kn_IN.js +2 -0
- package/lib/Antd5/calendar/locale/ko_KR.js +2 -0
- package/lib/Antd5/calendar/locale/lt_LT.js +2 -0
- package/lib/Antd5/calendar/locale/lv_LV.js +2 -0
- package/lib/Antd5/calendar/locale/mk_MK.js +2 -0
- package/lib/Antd5/calendar/locale/ml_IN.js +2 -0
- package/lib/Antd5/calendar/locale/mn_MN.js +2 -0
- package/lib/Antd5/calendar/locale/ms_MY.js +2 -0
- package/lib/Antd5/calendar/locale/my_MM.js +2 -0
- package/lib/Antd5/calendar/locale/nb_NO.js +2 -0
- package/lib/Antd5/calendar/locale/nl_BE.js +2 -0
- package/lib/Antd5/calendar/locale/nl_NL.js +2 -0
- package/lib/Antd5/calendar/locale/pl_PL.js +2 -0
- package/lib/Antd5/calendar/locale/pt_BR.js +2 -0
- package/lib/Antd5/calendar/locale/pt_PT.js +2 -0
- package/lib/Antd5/calendar/locale/ro_RO.js +2 -0
- package/lib/Antd5/calendar/locale/ru_RU.js +2 -0
- package/lib/Antd5/calendar/locale/si_LK.js +2 -0
- package/lib/Antd5/calendar/locale/sk_SK.js +2 -0
- package/lib/Antd5/calendar/locale/sl_SI.js +2 -0
- package/lib/Antd5/calendar/locale/sr_RS.js +2 -0
- package/lib/Antd5/calendar/locale/sv_SE.js +2 -0
- package/lib/Antd5/calendar/locale/ta_IN.js +2 -0
- package/lib/Antd5/calendar/locale/th_TH.js +2 -0
- package/lib/Antd5/calendar/locale/tk_TK.js +2 -0
- package/lib/Antd5/calendar/locale/tr_TR.js +2 -0
- package/lib/Antd5/calendar/locale/uk_UA.js +2 -0
- package/lib/Antd5/calendar/locale/ur_PK.js +2 -0
- package/lib/Antd5/calendar/locale/uz_UZ.js +2 -0
- package/lib/Antd5/calendar/locale/vi_VN.js +2 -0
- package/lib/Antd5/calendar/locale/zh_CN.js +2 -0
- package/lib/Antd5/calendar/locale/zh_TW.js +2 -0
- package/lib/Antd5/calendar/style/index.js +153 -0
- package/lib/Antd5/card/Card.js +201 -0
- package/lib/Antd5/card/Grid.js +28 -0
- package/lib/Antd5/card/Meta.js +46 -0
- package/lib/Antd5/card/index.js +10 -0
- package/lib/Antd5/card/style/index.js +287 -0
- package/lib/Antd5/carousel/index.js +120 -0
- package/lib/Antd5/carousel/style/index.js +310 -0
- package/lib/Antd5/cascader/Panel.js +68 -0
- package/lib/Antd5/cascader/hooks/useBase.js +12 -0
- package/lib/Antd5/cascader/hooks/useCheckable.js +9 -0
- package/lib/Antd5/cascader/hooks/useColumnIcons.js +18 -0
- package/lib/Antd5/cascader/index.js +264 -0
- package/lib/Antd5/cascader/style/columns.js +87 -0
- package/lib/Antd5/cascader/style/index.js +48 -0
- package/lib/Antd5/cascader/style/panel.js +29 -0
- package/lib/Antd5/checkbox/Checkbox.js +125 -0
- package/lib/Antd5/checkbox/Group.js +148 -0
- package/lib/Antd5/checkbox/GroupContext.js +3 -0
- package/lib/Antd5/checkbox/index.js +9 -0
- package/lib/Antd5/checkbox/style/index.js +159 -0
- package/lib/Antd5/col/index.js +2 -0
- package/lib/Antd5/col/style/index.js +3 -0
- package/lib/Antd5/collapse/Collapse.js +121 -0
- package/lib/Antd5/collapse/CollapsePanel.js +33 -0
- package/lib/Antd5/collapse/index.js +2 -0
- package/lib/Antd5/collapse/style/index.js +183 -0
- package/lib/Antd5/color-picker/ColorPicker.js +233 -0
- package/lib/Antd5/color-picker/ColorPickerPanel.js +64 -0
- package/lib/Antd5/color-picker/color.js +67 -0
- package/lib/Antd5/color-picker/components/ColorAlphaInput.js +45 -0
- package/lib/Antd5/color-picker/components/ColorClear.js +22 -0
- package/lib/Antd5/color-picker/components/ColorHexInput.js +47 -0
- package/lib/Antd5/color-picker/components/ColorHsbInput.js +76 -0
- package/lib/Antd5/color-picker/components/ColorInput.js +86 -0
- package/lib/Antd5/color-picker/components/ColorPresets.js +109 -0
- package/lib/Antd5/color-picker/components/ColorRgbInput.js +67 -0
- package/lib/Antd5/color-picker/components/ColorSteppers.js +47 -0
- package/lib/Antd5/color-picker/components/ColorTrigger.js +65 -0
- package/lib/Antd5/color-picker/components/PanelPicker.js +53 -0
- package/lib/Antd5/color-picker/components/PanelPresets.js +18 -0
- package/lib/Antd5/color-picker/context.js +7 -0
- package/lib/Antd5/color-picker/hooks/useColorState.js +53 -0
- package/lib/Antd5/color-picker/index.js +2 -0
- package/lib/Antd5/color-picker/interface.js +6 -0
- package/lib/Antd5/color-picker/style/color-block.js +36 -0
- package/lib/Antd5/color-picker/style/index.js +203 -0
- package/lib/Antd5/color-picker/style/input.js +74 -0
- package/lib/Antd5/color-picker/style/picker.js +64 -0
- package/lib/Antd5/color-picker/style/presets.js +94 -0
- package/lib/Antd5/color-picker/util.js +18 -0
- package/lib/Antd5/config-provider/DisabledContext.js +13 -0
- package/lib/Antd5/config-provider/MotionWrapper.js +26 -0
- package/lib/Antd5/config-provider/PropWarning.js +18 -0
- package/lib/Antd5/config-provider/SizeContext.js +13 -0
- package/lib/Antd5/config-provider/context.js +16 -0
- package/lib/Antd5/config-provider/cssVariables.js +88 -0
- package/lib/Antd5/config-provider/defaultRenderEmpty.js +31 -0
- package/lib/Antd5/config-provider/hooks/useCSSVarCls.js +19 -0
- package/lib/Antd5/config-provider/hooks/useConfig.js +12 -0
- package/lib/Antd5/config-provider/hooks/useSize.js +19 -0
- package/lib/Antd5/config-provider/hooks/useTheme.js +55 -0
- package/lib/Antd5/config-provider/hooks/useThemeKey.js +14 -0
- package/lib/Antd5/config-provider/index.js +432 -0
- package/lib/Antd5/config-provider/style/index.js +2 -0
- package/lib/Antd5/date-picker/PickerButton.js +15 -0
- package/lib/Antd5/date-picker/design/behavior-pattern.js +89 -0
- package/lib/Antd5/date-picker/generatePicker/generateRangePicker.js +170 -0
- package/lib/Antd5/date-picker/generatePicker/generateSinglePicker.js +200 -0
- package/lib/Antd5/date-picker/generatePicker/index.js +26 -0
- package/lib/Antd5/date-picker/generatePicker/interface.js +2 -0
- package/lib/Antd5/date-picker/generatePicker/useComponents.js +15 -0
- package/lib/Antd5/date-picker/index.js +27 -0
- package/lib/Antd5/date-picker/locale/ar_EG.js +23 -0
- package/lib/Antd5/date-picker/locale/az_AZ.js +16 -0
- package/lib/Antd5/date-picker/locale/bg_BG.js +19 -0
- package/lib/Antd5/date-picker/locale/bn_BD.js +26 -0
- package/lib/Antd5/date-picker/locale/by_BY.js +24 -0
- package/lib/Antd5/date-picker/locale/ca_ES.js +19 -0
- package/lib/Antd5/date-picker/locale/cs_CZ.js +19 -0
- package/lib/Antd5/date-picker/locale/da_DK.js +19 -0
- package/lib/Antd5/date-picker/locale/de_DE.js +21 -0
- package/lib/Antd5/date-picker/locale/el_GR.js +19 -0
- package/lib/Antd5/date-picker/locale/en_GB.js +27 -0
- package/lib/Antd5/date-picker/locale/en_US.js +27 -0
- package/lib/Antd5/date-picker/locale/es_ES.js +21 -0
- package/lib/Antd5/date-picker/locale/et_EE.js +19 -0
- package/lib/Antd5/date-picker/locale/eu_ES.js +19 -0
- package/lib/Antd5/date-picker/locale/example.json +55 -0
- package/lib/Antd5/date-picker/locale/fa_IR.js +27 -0
- package/lib/Antd5/date-picker/locale/fi_FI.js +19 -0
- package/lib/Antd5/date-picker/locale/fr_BE.js +26 -0
- package/lib/Antd5/date-picker/locale/fr_CA.js +26 -0
- package/lib/Antd5/date-picker/locale/fr_FR.js +26 -0
- package/lib/Antd5/date-picker/locale/ga_IE.js +26 -0
- package/lib/Antd5/date-picker/locale/gl_ES.js +19 -0
- package/lib/Antd5/date-picker/locale/he_IL.js +19 -0
- package/lib/Antd5/date-picker/locale/hi_IN.js +26 -0
- package/lib/Antd5/date-picker/locale/hr_HR.js +26 -0
- package/lib/Antd5/date-picker/locale/hu_HU.js +19 -0
- package/lib/Antd5/date-picker/locale/id_ID.js +27 -0
- package/lib/Antd5/date-picker/locale/is_IS.js +19 -0
- package/lib/Antd5/date-picker/locale/it_IT.js +19 -0
- package/lib/Antd5/date-picker/locale/ja_JP.js +19 -0
- package/lib/Antd5/date-picker/locale/ka_GE.js +23 -0
- package/lib/Antd5/date-picker/locale/kk_KZ.js +26 -0
- package/lib/Antd5/date-picker/locale/km_KH.js +26 -0
- package/lib/Antd5/date-picker/locale/kmr_IQ.js +19 -0
- package/lib/Antd5/date-picker/locale/kn_IN.js +19 -0
- package/lib/Antd5/date-picker/locale/ko_KR.js +19 -0
- package/lib/Antd5/date-picker/locale/lt_LT.js +27 -0
- package/lib/Antd5/date-picker/locale/lv_LV.js +19 -0
- package/lib/Antd5/date-picker/locale/mk_MK.js +19 -0
- package/lib/Antd5/date-picker/locale/ml_IN.js +26 -0
- package/lib/Antd5/date-picker/locale/mn_MN.js +19 -0
- package/lib/Antd5/date-picker/locale/ms_MY.js +19 -0
- package/lib/Antd5/date-picker/locale/my_MM.js +27 -0
- package/lib/Antd5/date-picker/locale/nb_NO.js +26 -0
- package/lib/Antd5/date-picker/locale/nl_BE.js +26 -0
- package/lib/Antd5/date-picker/locale/nl_NL.js +26 -0
- package/lib/Antd5/date-picker/locale/pl_PL.js +19 -0
- package/lib/Antd5/date-picker/locale/pt_BR.js +19 -0
- package/lib/Antd5/date-picker/locale/pt_PT.js +47 -0
- package/lib/Antd5/date-picker/locale/ro_RO.js +19 -0
- package/lib/Antd5/date-picker/locale/ru_RU.js +29 -0
- package/lib/Antd5/date-picker/locale/si_LK.js +27 -0
- package/lib/Antd5/date-picker/locale/sk_SK.js +19 -0
- package/lib/Antd5/date-picker/locale/sl_SI.js +45 -0
- package/lib/Antd5/date-picker/locale/sr_RS.js +26 -0
- package/lib/Antd5/date-picker/locale/sv_SE.js +26 -0
- package/lib/Antd5/date-picker/locale/ta_IN.js +27 -0
- package/lib/Antd5/date-picker/locale/th_TH.js +26 -0
- package/lib/Antd5/date-picker/locale/tk_TK.js +24 -0
- package/lib/Antd5/date-picker/locale/tr_TR.js +26 -0
- package/lib/Antd5/date-picker/locale/uk_UA.js +19 -0
- package/lib/Antd5/date-picker/locale/ur_PK.js +26 -0
- package/lib/Antd5/date-picker/locale/uz_UZ.js +26 -0
- package/lib/Antd5/date-picker/locale/vi_VN.js +27 -0
- package/lib/Antd5/date-picker/locale/zh_CN.js +29 -0
- package/lib/Antd5/date-picker/locale/zh_TW.js +28 -0
- package/lib/Antd5/date-picker/style/index.js +328 -0
- package/lib/Antd5/date-picker/style/multiple.js +81 -0
- package/lib/Antd5/date-picker/style/panel.js +448 -0
- package/lib/Antd5/date-picker/style/token.js +77 -0
- package/lib/Antd5/date-picker/style/variants.js +28 -0
- package/lib/Antd5/date-picker/util.js +118 -0
- package/lib/Antd5/descriptions/Cell.js +57 -0
- package/lib/Antd5/descriptions/DescriptionsContext.js +3 -0
- package/lib/Antd5/descriptions/Item.js +5 -0
- package/lib/Antd5/descriptions/Row.js +107 -0
- package/lib/Antd5/descriptions/constant.js +9 -0
- package/lib/Antd5/descriptions/hooks/useItems.js +38 -0
- package/lib/Antd5/descriptions/hooks/useRow.js +78 -0
- package/lib/Antd5/descriptions/index.js +119 -0
- package/lib/Antd5/descriptions/style/index.js +146 -0
- package/lib/Antd5/divider/index.js +85 -0
- package/lib/Antd5/divider/style/index.js +136 -0
- package/lib/Antd5/drawer/DrawerPanel.js +107 -0
- package/lib/Antd5/drawer/index.js +206 -0
- package/lib/Antd5/drawer/style/index.js +192 -0
- package/lib/Antd5/drawer/style/motion.js +56 -0
- package/lib/Antd5/dropdown/dropdown-button.js +129 -0
- package/lib/Antd5/dropdown/dropdown.js +255 -0
- package/lib/Antd5/dropdown/index.js +5 -0
- package/lib/Antd5/dropdown/style/index.js +220 -0
- package/lib/Antd5/dropdown/style/status.js +19 -0
- package/lib/Antd5/empty/empty.js +73 -0
- package/lib/Antd5/empty/index.js +83 -0
- package/lib/Antd5/empty/simple.js +61 -0
- package/lib/Antd5/empty/style/index.js +61 -0
- package/lib/Antd5/flex/index.js +67 -0
- package/lib/Antd5/flex/interface.js +1 -0
- package/lib/Antd5/flex/style/index.js +83 -0
- package/lib/Antd5/flex/utils.js +33 -0
- package/lib/Antd5/float-button/BackTop.js +109 -0
- package/lib/Antd5/float-button/FloatButton.js +105 -0
- package/lib/Antd5/float-button/FloatButtonContent.js +31 -0
- package/lib/Antd5/float-button/FloatButtonGroup.js +144 -0
- package/lib/Antd5/float-button/PurePanel.js +49 -0
- package/lib/Antd5/float-button/context.js +5 -0
- package/lib/Antd5/float-button/index.js +8 -0
- package/lib/Antd5/float-button/interface.js +1 -0
- package/lib/Antd5/float-button/style/index.js +294 -0
- package/lib/Antd5/float-button/util.js +9 -0
- package/lib/Antd5/form/ErrorList.js +110 -0
- package/lib/Antd5/form/Form.js +166 -0
- package/lib/Antd5/form/FormItem/ItemHolder.js +128 -0
- package/lib/Antd5/form/FormItem/StatusProvider.js +73 -0
- package/lib/Antd5/form/FormItem/index.js +310 -0
- package/lib/Antd5/form/FormItemInput.js +100 -0
- package/lib/Antd5/form/FormItemLabel.js +120 -0
- package/lib/Antd5/form/FormList.js +49 -0
- package/lib/Antd5/form/context.js +51 -0
- package/lib/Antd5/form/hooks/useChildren.js +8 -0
- package/lib/Antd5/form/hooks/useDebounce.js +22 -0
- package/lib/Antd5/form/hooks/useForm.js +69 -0
- package/lib/Antd5/form/hooks/useFormInstance.js +7 -0
- package/lib/Antd5/form/hooks/useFormItemStatus.js +23 -0
- package/lib/Antd5/form/hooks/useFormWarning.js +16 -0
- package/lib/Antd5/form/hooks/useFrameState.js +46 -0
- package/lib/Antd5/form/hooks/useItemRef.js +20 -0
- package/lib/Antd5/form/hooks/useVariants.js +21 -0
- package/lib/Antd5/form/index.js +19 -0
- package/lib/Antd5/form/interface.js +1 -0
- package/lib/Antd5/form/style/explain.js +37 -0
- package/lib/Antd5/form/style/fallbackCmp.js +26 -0
- package/lib/Antd5/form/style/index.js +318 -0
- package/lib/Antd5/form/util.js +39 -0
- package/lib/Antd5/form/validateMessagesContext.js +5 -0
- package/lib/Antd5/grid/RowContext.js +3 -0
- package/lib/Antd5/grid/col.js +103 -0
- package/lib/Antd5/grid/hooks/useBreakpoint.js +23 -0
- package/lib/Antd5/grid/index.js +11 -0
- package/lib/Antd5/grid/row.js +169 -0
- package/lib/Antd5/grid/style/index.js +153 -0
- package/lib/Antd5/icon/index.js +9 -0
- package/lib/Antd5/image/PreviewGroup.js +84 -0
- package/lib/Antd5/image/index.js +94 -0
- package/lib/Antd5/image/style/index.js +264 -0
- package/lib/Antd5/index.js +72 -0
- package/lib/Antd5/input/Group.js +57 -0
- package/lib/Antd5/input/Input.js +188 -0
- package/lib/Antd5/input/OTP/OTPInput.js +69 -0
- package/lib/Antd5/input/OTP/index.js +210 -0
- package/lib/Antd5/input/Password.js +116 -0
- package/lib/Antd5/input/Search.js +143 -0
- package/lib/Antd5/input/TextArea.js +118 -0
- package/lib/Antd5/input/hooks/useRemovePasswordTimeout.js +26 -0
- package/lib/Antd5/input/index.js +13 -0
- package/lib/Antd5/input/style/index.js +532 -0
- package/lib/Antd5/input/style/otp.js +32 -0
- package/lib/Antd5/input/style/token.js +46 -0
- package/lib/Antd5/input/style/variants.js +213 -0
- package/lib/Antd5/input/utils.js +4 -0
- package/lib/Antd5/input-number/index.js +163 -0
- package/lib/Antd5/input-number/style/index.js +299 -0
- package/lib/Antd5/input-number/style/token.js +24 -0
- package/lib/Antd5/layout/Sider.js +198 -0
- package/lib/Antd5/layout/context.js +11 -0
- package/lib/Antd5/layout/hooks/useHasSider.js +14 -0
- package/lib/Antd5/layout/index.js +9 -0
- package/lib/Antd5/layout/layout.js +143 -0
- package/lib/Antd5/layout/style/index.js +187 -0
- package/lib/Antd5/layout/style/light.js +24 -0
- package/lib/Antd5/list/Item.js +113 -0
- package/lib/Antd5/list/context.js +3 -0
- package/lib/Antd5/list/index.js +246 -0
- package/lib/Antd5/list/style/index.js +249 -0
- package/lib/Antd5/locale/ar_EG.js +114 -0
- package/lib/Antd5/locale/az_AZ.js +97 -0
- package/lib/Antd5/locale/bg_BG.js +95 -0
- package/lib/Antd5/locale/bn_BD.js +127 -0
- package/lib/Antd5/locale/by_BY.js +129 -0
- package/lib/Antd5/locale/ca_ES.js +122 -0
- package/lib/Antd5/locale/context.js +3 -0
- package/lib/Antd5/locale/cs_CZ.js +129 -0
- package/lib/Antd5/locale/da_DK.js +105 -0
- package/lib/Antd5/locale/de_DE.js +133 -0
- package/lib/Antd5/locale/el_GR.js +44 -0
- package/lib/Antd5/locale/en_GB.js +129 -0
- package/lib/Antd5/locale/en_US.js +144 -0
- package/lib/Antd5/locale/es_ES.js +129 -0
- package/lib/Antd5/locale/et_EE.js +129 -0
- package/lib/Antd5/locale/eu_ES.js +141 -0
- package/lib/Antd5/locale/fa_IR.js +138 -0
- package/lib/Antd5/locale/fi_FI.js +54 -0
- package/lib/Antd5/locale/fr_BE.js +126 -0
- package/lib/Antd5/locale/fr_CA.js +126 -0
- package/lib/Antd5/locale/fr_FR.js +131 -0
- package/lib/Antd5/locale/ga_IE.js +120 -0
- package/lib/Antd5/locale/gl_ES.js +108 -0
- package/lib/Antd5/locale/he_IL.js +114 -0
- package/lib/Antd5/locale/hi_IN.js +127 -0
- package/lib/Antd5/locale/hr_HR.js +126 -0
- package/lib/Antd5/locale/hu_HU.js +45 -0
- package/lib/Antd5/locale/hy_AM.js +106 -0
- package/lib/Antd5/locale/id_ID.js +144 -0
- package/lib/Antd5/locale/index.js +40 -0
- package/lib/Antd5/locale/is_IS.js +95 -0
- package/lib/Antd5/locale/it_IT.js +134 -0
- package/lib/Antd5/locale/ja_JP.js +144 -0
- package/lib/Antd5/locale/ka_GE.js +127 -0
- package/lib/Antd5/locale/kk_KZ.js +121 -0
- package/lib/Antd5/locale/km_KH.js +105 -0
- package/lib/Antd5/locale/kmr_IQ.js +44 -0
- package/lib/Antd5/locale/kn_IN.js +51 -0
- package/lib/Antd5/locale/ko_KR.js +141 -0
- package/lib/Antd5/locale/ku_IQ.js +47 -0
- package/lib/Antd5/locale/lt_LT.js +141 -0
- package/lib/Antd5/locale/lv_LV.js +44 -0
- package/lib/Antd5/locale/mk_MK.js +56 -0
- package/lib/Antd5/locale/ml_IN.js +127 -0
- package/lib/Antd5/locale/mn_MN.js +44 -0
- package/lib/Antd5/locale/ms_MY.js +61 -0
- package/lib/Antd5/locale/my_MM.js +136 -0
- package/lib/Antd5/locale/nb_NO.js +121 -0
- package/lib/Antd5/locale/ne_NP.js +44 -0
- package/lib/Antd5/locale/nl_BE.js +127 -0
- package/lib/Antd5/locale/nl_NL.js +127 -0
- package/lib/Antd5/locale/pl_PL.js +134 -0
- package/lib/Antd5/locale/pt_BR.js +134 -0
- package/lib/Antd5/locale/pt_PT.js +129 -0
- package/lib/Antd5/locale/ro_RO.js +127 -0
- package/lib/Antd5/locale/ru_RU.js +138 -0
- package/lib/Antd5/locale/si_LK.js +129 -0
- package/lib/Antd5/locale/sk_SK.js +129 -0
- package/lib/Antd5/locale/sl_SI.js +44 -0
- package/lib/Antd5/locale/sr_RS.js +127 -0
- package/lib/Antd5/locale/sv_SE.js +138 -0
- package/lib/Antd5/locale/ta_IN.js +126 -0
- package/lib/Antd5/locale/th_TH.js +138 -0
- package/lib/Antd5/locale/tk_TK.js +125 -0
- package/lib/Antd5/locale/tr_TR.js +125 -0
- package/lib/Antd5/locale/uk_UA.js +138 -0
- package/lib/Antd5/locale/ur_PK.js +127 -0
- package/lib/Antd5/locale/useLocale.js +28 -0
- package/lib/Antd5/locale/uz_UZ.js +143 -0
- package/lib/Antd5/locale/vi_VN.js +137 -0
- package/lib/Antd5/locale/zh_CN.js +145 -0
- package/lib/Antd5/locale/zh_HK.js +138 -0
- package/lib/Antd5/locale/zh_TW.js +139 -0
- package/lib/Antd5/mentions/index.js +198 -0
- package/lib/Antd5/mentions/style/index.js +205 -0
- package/lib/Antd5/menu/MenuContext.js +7 -0
- package/lib/Antd5/menu/MenuDivider.js +28 -0
- package/lib/Antd5/menu/MenuItem.js +82 -0
- package/lib/Antd5/menu/OverrideContext.js +39 -0
- package/lib/Antd5/menu/SubMenu.js +74 -0
- package/lib/Antd5/menu/index.js +39 -0
- package/lib/Antd5/menu/interface.js +1 -0
- package/lib/Antd5/menu/menu.js +174 -0
- package/lib/Antd5/menu/style/horizontal.js +38 -0
- package/lib/Antd5/menu/style/index.js +441 -0
- package/lib/Antd5/menu/style/rtl.js +23 -0
- package/lib/Antd5/menu/style/theme.js +158 -0
- package/lib/Antd5/menu/style/vertical.js +131 -0
- package/lib/Antd5/message/PurePanel.js +77 -0
- package/lib/Antd5/message/index.js +281 -0
- package/lib/Antd5/message/interface.js +1 -0
- package/lib/Antd5/message/style/index.js +128 -0
- package/lib/Antd5/message/useMessage.js +235 -0
- package/lib/Antd5/message/util.js +23 -0
- package/lib/Antd5/modal/ConfirmDialog.js +228 -0
- package/lib/Antd5/modal/Modal.js +162 -0
- package/lib/Antd5/modal/PurePanel.js +78 -0
- package/lib/Antd5/modal/components/ConfirmCancelBtn.js +32 -0
- package/lib/Antd5/modal/components/ConfirmOkBtn.js +33 -0
- package/lib/Antd5/modal/components/NormalCancelBtn.js +22 -0
- package/lib/Antd5/modal/components/NormalOkBtn.js +26 -0
- package/lib/Antd5/modal/confirm.js +169 -0
- package/lib/Antd5/modal/context.js +4 -0
- package/lib/Antd5/modal/destroyFns.js +2 -0
- package/lib/Antd5/modal/index.js +38 -0
- package/lib/Antd5/modal/interface.js +1 -0
- package/lib/Antd5/modal/locale.js +31 -0
- package/lib/Antd5/modal/shared.js +81 -0
- package/lib/Antd5/modal/style/confirm.js +83 -0
- package/lib/Antd5/modal/style/index.js +221 -0
- package/lib/Antd5/modal/useModal/HookModal.js +87 -0
- package/lib/Antd5/modal/useModal/index.js +128 -0
- package/lib/Antd5/notification/PurePanel.js +134 -0
- package/lib/Antd5/notification/index.js +215 -0
- package/lib/Antd5/notification/interface.js +1 -0
- package/lib/Antd5/notification/style/index.js +184 -0
- package/lib/Antd5/notification/style/placement.js +77 -0
- package/lib/Antd5/notification/style/pure-panel.js +18 -0
- package/lib/Antd5/notification/style/stack.js +81 -0
- package/lib/Antd5/notification/useNotification.js +201 -0
- package/lib/Antd5/notification/util.js +57 -0
- package/lib/Antd5/pagination/Pagination.js +135 -0
- package/lib/Antd5/pagination/Select.js +24 -0
- package/lib/Antd5/pagination/design/behavior-pattern.js +32 -0
- package/lib/Antd5/pagination/index.js +2 -0
- package/lib/Antd5/pagination/style/bordered.js +68 -0
- package/lib/Antd5/pagination/style/index.js +411 -0
- package/lib/Antd5/popconfirm/PurePanel.js +114 -0
- package/lib/Antd5/popconfirm/index.js +109 -0
- package/lib/Antd5/popconfirm/style/index.js +61 -0
- package/lib/Antd5/popover/PurePanel.js +77 -0
- package/lib/Antd5/popover/index.js +126 -0
- package/lib/Antd5/popover/style/index.js +137 -0
- package/lib/Antd5/progress/Circle.js +95 -0
- package/lib/Antd5/progress/Line.js +149 -0
- package/lib/Antd5/progress/Steps.js +55 -0
- package/lib/Antd5/progress/design/behavior-pattern.js +31 -0
- package/lib/Antd5/progress/index.js +2 -0
- package/lib/Antd5/progress/progress.js +144 -0
- package/lib/Antd5/progress/style/index.js +201 -0
- package/lib/Antd5/progress/utils.js +97 -0
- package/lib/Antd5/qr-code/index.js +125 -0
- package/lib/Antd5/qr-code/interface.js +1 -0
- package/lib/Antd5/qr-code/style/index.js +66 -0
- package/lib/Antd5/qrcode/index.js +4 -0
- package/lib/Antd5/qrcode/interface.js +3 -0
- package/lib/Antd5/qrcode/style/index.js +3 -0
- package/lib/Antd5/radio/context.js +6 -0
- package/lib/Antd5/radio/group.js +131 -0
- package/lib/Antd5/radio/index.js +9 -0
- package/lib/Antd5/radio/interface.js +1 -0
- package/lib/Antd5/radio/radio.js +137 -0
- package/lib/Antd5/radio/radioButton.js +31 -0
- package/lib/Antd5/radio/style/index.js +533 -0
- package/lib/Antd5/rate/index.js +69 -0
- package/lib/Antd5/rate/style/index.js +88 -0
- package/lib/Antd5/result/index.js +128 -0
- package/lib/Antd5/result/noFound.js +243 -0
- package/lib/Antd5/result/serverError.js +283 -0
- package/lib/Antd5/result/style/index.js +101 -0
- package/lib/Antd5/result/unauthorized.js +230 -0
- package/lib/Antd5/row/index.js +2 -0
- package/lib/Antd5/row/style/index.js +3 -0
- package/lib/Antd5/segmented/index.js +87 -0
- package/lib/Antd5/segmented/style/index.js +162 -0
- package/lib/Antd5/select/index.js +222 -0
- package/lib/Antd5/select/mergedBuiltinPlacements.js +40 -0
- package/lib/Antd5/select/style/dropdown.js +109 -0
- package/lib/Antd5/select/style/index.js +183 -0
- package/lib/Antd5/select/style/multiple.js +217 -0
- package/lib/Antd5/select/style/single.js +101 -0
- package/lib/Antd5/select/style/token.js +53 -0
- package/lib/Antd5/select/style/variants.js +126 -0
- package/lib/Antd5/select/useIcons.js +82 -0
- package/lib/Antd5/select/useShowArrow.js +9 -0
- package/lib/Antd5/skeleton/Avatar.js +48 -0
- package/lib/Antd5/skeleton/Button.js +47 -0
- package/lib/Antd5/skeleton/Element.js +30 -0
- package/lib/Antd5/skeleton/Image.js +49 -0
- package/lib/Antd5/skeleton/Input.js +46 -0
- package/lib/Antd5/skeleton/Node.js +43 -0
- package/lib/Antd5/skeleton/Paragraph.js +44 -0
- package/lib/Antd5/skeleton/Skeleton.js +153 -0
- package/lib/Antd5/skeleton/Title.js +23 -0
- package/lib/Antd5/skeleton/index.js +2 -0
- package/lib/Antd5/skeleton/style/index.js +247 -0
- package/lib/Antd5/slider/SliderTooltip.js +43 -0
- package/lib/Antd5/slider/index.js +236 -0
- package/lib/Antd5/slider/style/index.js +246 -0
- package/lib/Antd5/slider/useRafLock.js +32 -0
- package/lib/Antd5/space/Compact.js +103 -0
- package/lib/Antd5/space/Item.js +26 -0
- package/lib/Antd5/space/context.js +5 -0
- package/lib/Antd5/space/index.js +120 -0
- package/lib/Antd5/space/style/compact.js +18 -0
- package/lib/Antd5/space/style/index.js +79 -0
- package/lib/Antd5/spin/index.js +149 -0
- package/lib/Antd5/spin/style/index.js +206 -0
- package/lib/Antd5/statistic/Countdown.js +73 -0
- package/lib/Antd5/statistic/Number.js +47 -0
- package/lib/Antd5/statistic/Statistic.js +99 -0
- package/lib/Antd5/statistic/index.js +4 -0
- package/lib/Antd5/statistic/interface.js +1 -0
- package/lib/Antd5/statistic/style/index.js +51 -0
- package/lib/Antd5/statistic/utils.js +57 -0
- package/lib/Antd5/steps/index.js +120 -0
- package/lib/Antd5/steps/style/custom-icon.js +26 -0
- package/lib/Antd5/steps/style/horizontal.js +12 -0
- package/lib/Antd5/steps/style/index.js +249 -0
- package/lib/Antd5/steps/style/inline.js +95 -0
- package/lib/Antd5/steps/style/label-placement.js +46 -0
- package/lib/Antd5/steps/style/nav.js +109 -0
- package/lib/Antd5/steps/style/progress-dot.js +100 -0
- package/lib/Antd5/steps/style/progress.js +52 -0
- package/lib/Antd5/steps/style/rtl.js +25 -0
- package/lib/Antd5/steps/style/small.js +53 -0
- package/lib/Antd5/steps/style/vertical.js +55 -0
- package/lib/Antd5/steps/useLegacyItems.js +32 -0
- package/lib/Antd5/style/compact-item-vertical.js +33 -0
- package/lib/Antd5/style/compact-item.js +47 -0
- package/lib/Antd5/style/index.js +126 -0
- package/lib/Antd5/style/motion/collapse.js +16 -0
- package/lib/Antd5/style/motion/fade.js +34 -0
- package/lib/Antd5/style/motion/index.js +6 -0
- package/lib/Antd5/style/motion/motion.js +35 -0
- package/lib/Antd5/style/motion/move.js +133 -0
- package/lib/Antd5/style/motion/slide.js +137 -0
- package/lib/Antd5/style/motion/zoom.js +179 -0
- package/lib/Antd5/style/operationUnit.js +18 -0
- package/lib/Antd5/style/placementArrow.js +120 -0
- package/lib/Antd5/style/reset.css +253 -0
- package/lib/Antd5/style/roundedArrow.js +72 -0
- package/lib/Antd5/switch/index.js +97 -0
- package/lib/Antd5/switch/style/index.js +245 -0
- package/lib/Antd5/table/Column.js +7 -0
- package/lib/Antd5/table/ColumnGroup.js +7 -0
- package/lib/Antd5/table/ExpandIcon.js +28 -0
- package/lib/Antd5/table/InternalTable.js +451 -0
- package/lib/Antd5/table/RcTable/VirtualTable.js +9 -0
- package/lib/Antd5/table/RcTable/index.js +9 -0
- package/lib/Antd5/table/Table.js +34 -0
- package/lib/Antd5/table/hooks/useContainerWidth.js +14 -0
- package/lib/Antd5/table/hooks/useFilter/FilterDropdown.js +497 -0
- package/lib/Antd5/table/hooks/useFilter/FilterSearch.js +27 -0
- package/lib/Antd5/table/hooks/useFilter/FilterWrapper.js +24 -0
- package/lib/Antd5/table/hooks/useFilter/index.js +234 -0
- package/lib/Antd5/table/hooks/useLazyKVMap.js +30 -0
- package/lib/Antd5/table/hooks/usePagination.js +78 -0
- package/lib/Antd5/table/hooks/useSelection.js +578 -0
- package/lib/Antd5/table/hooks/useSorter.js +362 -0
- package/lib/Antd5/table/hooks/useTitleColumns.js +24 -0
- package/lib/Antd5/table/index.js +2 -0
- package/lib/Antd5/table/interface.js +3 -0
- package/lib/Antd5/table/style/bordered.js +68 -0
- package/lib/Antd5/table/style/ellipsis.js +24 -0
- package/lib/Antd5/table/style/empty.js +15 -0
- package/lib/Antd5/table/style/expand.js +106 -0
- package/lib/Antd5/table/style/filter.js +127 -0
- package/lib/Antd5/table/style/fixed.js +82 -0
- package/lib/Antd5/table/style/index.js +273 -0
- package/lib/Antd5/table/style/pagination.js +30 -0
- package/lib/Antd5/table/style/radius.js +35 -0
- package/lib/Antd5/table/style/rtl.js +40 -0
- package/lib/Antd5/table/style/selection.js +67 -0
- package/lib/Antd5/table/style/size.js +30 -0
- package/lib/Antd5/table/style/sorter.js +75 -0
- package/lib/Antd5/table/style/sticky.js +53 -0
- package/lib/Antd5/table/style/summary.js +25 -0
- package/lib/Antd5/table/style/virtual.js +49 -0
- package/lib/Antd5/table/util.js +31 -0
- package/lib/Antd5/tabs/TabPane.js +7 -0
- package/lib/Antd5/tabs/hooks/useAnimateConfig.js +40 -0
- package/lib/Antd5/tabs/hooks/useLegacyItems.js +43 -0
- package/lib/Antd5/tabs/index.js +115 -0
- package/lib/Antd5/tabs/style/index.js +633 -0
- package/lib/Antd5/tabs/style/motion.js +36 -0
- package/lib/Antd5/tag/CheckableTag.js +51 -0
- package/lib/Antd5/tag/index.js +133 -0
- package/lib/Antd5/tag/style/index.js +104 -0
- package/lib/Antd5/tag/style/presetCmp.js +34 -0
- package/lib/Antd5/tag/style/statusCmp.js +22 -0
- package/lib/Antd5/theme/context.js +15 -0
- package/lib/Antd5/theme/getDesignToken.js +18 -0
- package/lib/Antd5/theme/index.js +39 -0
- package/lib/Antd5/theme/interface/alias.js +1 -0
- package/lib/Antd5/theme/interface/components.js +1 -0
- package/lib/Antd5/theme/interface/index.js +1 -0
- package/lib/Antd5/theme/interface/maps/colors.js +1 -0
- package/lib/Antd5/theme/interface/maps/font.js +1 -0
- package/lib/Antd5/theme/interface/maps/index.js +4 -0
- package/lib/Antd5/theme/interface/maps/size.js +1 -0
- package/lib/Antd5/theme/interface/maps/style.js +1 -0
- package/lib/Antd5/theme/interface/presetColors.js +1 -0
- package/lib/Antd5/theme/interface/seeds.js +1 -0
- package/lib/Antd5/theme/internal.js +13 -0
- package/lib/Antd5/theme/themes/ColorMap.js +1 -0
- package/lib/Antd5/theme/themes/compact/genCompactSizeMapToken.js +16 -0
- package/lib/Antd5/theme/themes/compact/index.js +22 -0
- package/lib/Antd5/theme/themes/dark/colorAlgorithm.js +8 -0
- package/lib/Antd5/theme/themes/dark/colors.js +45 -0
- package/lib/Antd5/theme/themes/dark/index.js +32 -0
- package/lib/Antd5/theme/themes/default/colorAlgorithm.js +8 -0
- package/lib/Antd5/theme/themes/default/colors.js +43 -0
- package/lib/Antd5/theme/themes/default/index.js +31 -0
- package/lib/Antd5/theme/themes/seed.js +68 -0
- package/lib/Antd5/theme/themes/shared/genColorMapToken.js +85 -0
- package/lib/Antd5/theme/themes/shared/genCommonMapToken.js +21 -0
- package/lib/Antd5/theme/themes/shared/genControlHeight.js +9 -0
- package/lib/Antd5/theme/themes/shared/genFontMapToken.js +39 -0
- package/lib/Antd5/theme/themes/shared/genFontSizes.js +20 -0
- package/lib/Antd5/theme/themes/shared/genRadius.js +46 -0
- package/lib/Antd5/theme/themes/shared/genSizeMapToken.js +23 -0
- package/lib/Antd5/theme/useToken.js +129 -0
- package/lib/Antd5/theme/util/alias.js +143 -0
- package/lib/Antd5/theme/util/calc/CSSCalculator.js +119 -0
- package/lib/Antd5/theme/util/calc/NumCalculator.js +81 -0
- package/lib/Antd5/theme/util/calc/calculator.js +10 -0
- package/lib/Antd5/theme/util/calc/index.js +9 -0
- package/lib/Antd5/theme/util/genComponentStyleHook.js +243 -0
- package/lib/Antd5/theme/util/genPresetColor.js +21 -0
- package/lib/Antd5/theme/util/getAlphaColor.js +40 -0
- package/lib/Antd5/theme/util/maxmin.js +27 -0
- package/lib/Antd5/theme/util/statistic.js +74 -0
- package/lib/Antd5/theme/util/useResetIconStyle.js +39 -0
- package/lib/Antd5/time-picker/index.js +56 -0
- package/lib/Antd5/time-picker/locale/ar_EG.js +4 -0
- package/lib/Antd5/time-picker/locale/az_AZ.js +4 -0
- package/lib/Antd5/time-picker/locale/bg_BG.js +4 -0
- package/lib/Antd5/time-picker/locale/bn_BD.js +5 -0
- package/lib/Antd5/time-picker/locale/by_BY.js +5 -0
- package/lib/Antd5/time-picker/locale/ca_ES.js +4 -0
- package/lib/Antd5/time-picker/locale/cs_CZ.js +4 -0
- package/lib/Antd5/time-picker/locale/da_DK.js +5 -0
- package/lib/Antd5/time-picker/locale/de_DE.js +5 -0
- package/lib/Antd5/time-picker/locale/el_GR.js +4 -0
- package/lib/Antd5/time-picker/locale/en_GB.js +4 -0
- package/lib/Antd5/time-picker/locale/en_US.js +5 -0
- package/lib/Antd5/time-picker/locale/es_ES.js +4 -0
- package/lib/Antd5/time-picker/locale/et_EE.js +4 -0
- package/lib/Antd5/time-picker/locale/eu_ES.js +4 -0
- package/lib/Antd5/time-picker/locale/fa_IR.js +5 -0
- package/lib/Antd5/time-picker/locale/fi_FI.js +4 -0
- package/lib/Antd5/time-picker/locale/fr_BE.js +5 -0
- package/lib/Antd5/time-picker/locale/fr_CA.js +5 -0
- package/lib/Antd5/time-picker/locale/fr_FR.js +5 -0
- package/lib/Antd5/time-picker/locale/ga_IE.js +5 -0
- package/lib/Antd5/time-picker/locale/gl_ES.js +4 -0
- package/lib/Antd5/time-picker/locale/he_IL.js +4 -0
- package/lib/Antd5/time-picker/locale/hi_IN.js +5 -0
- package/lib/Antd5/time-picker/locale/hr_HR.js +5 -0
- package/lib/Antd5/time-picker/locale/hu_HU.js +4 -0
- package/lib/Antd5/time-picker/locale/id_ID.js +5 -0
- package/lib/Antd5/time-picker/locale/is_IS.js +4 -0
- package/lib/Antd5/time-picker/locale/it_IT.js +4 -0
- package/lib/Antd5/time-picker/locale/ja_JP.js +5 -0
- package/lib/Antd5/time-picker/locale/ka_GE.js +5 -0
- package/lib/Antd5/time-picker/locale/kk_KZ.js +5 -0
- package/lib/Antd5/time-picker/locale/km_KH.js +5 -0
- package/lib/Antd5/time-picker/locale/kmr_IQ.js +4 -0
- package/lib/Antd5/time-picker/locale/kn_IN.js +4 -0
- package/lib/Antd5/time-picker/locale/ko_KR.js +5 -0
- package/lib/Antd5/time-picker/locale/lt_LT.js +5 -0
- package/lib/Antd5/time-picker/locale/lv_LV.js +4 -0
- package/lib/Antd5/time-picker/locale/mk_MK.js +4 -0
- package/lib/Antd5/time-picker/locale/ml_IN.js +5 -0
- package/lib/Antd5/time-picker/locale/mn_MN.js +4 -0
- package/lib/Antd5/time-picker/locale/ms_MY.js +4 -0
- package/lib/Antd5/time-picker/locale/my_MM.js +5 -0
- package/lib/Antd5/time-picker/locale/nb_NO.js +5 -0
- package/lib/Antd5/time-picker/locale/nl_BE.js +5 -0
- package/lib/Antd5/time-picker/locale/nl_NL.js +5 -0
- package/lib/Antd5/time-picker/locale/pl_PL.js +4 -0
- package/lib/Antd5/time-picker/locale/pt_BR.js +4 -0
- package/lib/Antd5/time-picker/locale/pt_PT.js +4 -0
- package/lib/Antd5/time-picker/locale/ro_RO.js +4 -0
- package/lib/Antd5/time-picker/locale/ru_RU.js +5 -0
- package/lib/Antd5/time-picker/locale/si_LK.js +5 -0
- package/lib/Antd5/time-picker/locale/sk_SK.js +4 -0
- package/lib/Antd5/time-picker/locale/sl_SI.js +4 -0
- package/lib/Antd5/time-picker/locale/sr_RS.js +5 -0
- package/lib/Antd5/time-picker/locale/sv_SE.js +4 -0
- package/lib/Antd5/time-picker/locale/ta_IN.js +4 -0
- package/lib/Antd5/time-picker/locale/th_TH.js +4 -0
- package/lib/Antd5/time-picker/locale/tk_TK.js +5 -0
- package/lib/Antd5/time-picker/locale/tr_TR.js +5 -0
- package/lib/Antd5/time-picker/locale/uk_UA.js +4 -0
- package/lib/Antd5/time-picker/locale/ur_PK.js +5 -0
- package/lib/Antd5/time-picker/locale/uz_UZ.js +5 -0
- package/lib/Antd5/time-picker/locale/vi_VN.js +5 -0
- package/lib/Antd5/time-picker/locale/zh_CN.js +5 -0
- package/lib/Antd5/time-picker/locale/zh_TW.js +4 -0
- package/lib/Antd5/timeline/Timeline.js +65 -0
- package/lib/Antd5/timeline/TimelineItem.js +52 -0
- package/lib/Antd5/timeline/TimelineItemList.js +87 -0
- package/lib/Antd5/timeline/index.js +2 -0
- package/lib/Antd5/timeline/style/index.js +157 -0
- package/lib/Antd5/timeline/useItems.js +19 -0
- package/lib/Antd5/tooltip/PurePanel.js +55 -0
- package/lib/Antd5/tooltip/index.js +211 -0
- package/lib/Antd5/tooltip/style/index.js +104 -0
- package/lib/Antd5/tooltip/util.js +23 -0
- package/lib/Antd5/tour/PurePanel.js +78 -0
- package/lib/Antd5/tour/index.js +99 -0
- package/lib/Antd5/tour/interface.js +1 -0
- package/lib/Antd5/tour/panelRender.js +143 -0
- package/lib/Antd5/tour/style/index.js +187 -0
- package/lib/Antd5/transfer/ListBody.js +123 -0
- package/lib/Antd5/transfer/ListItem.js +72 -0
- package/lib/Antd5/transfer/hooks/useData.js +46 -0
- package/lib/Antd5/transfer/hooks/useSelection.js +59 -0
- package/lib/Antd5/transfer/index.js +361 -0
- package/lib/Antd5/transfer/interface.js +1 -0
- package/lib/Antd5/transfer/list.js +316 -0
- package/lib/Antd5/transfer/operation.js +43 -0
- package/lib/Antd5/transfer/search.js +32 -0
- package/lib/Antd5/transfer/style/index.js +264 -0
- package/lib/Antd5/tree/DirectoryTree.js +173 -0
- package/lib/Antd5/tree/Tree.js +123 -0
- package/lib/Antd5/tree/index.js +7 -0
- package/lib/Antd5/tree/style/index.js +348 -0
- package/lib/Antd5/tree/utils/dictUtil.js +74 -0
- package/lib/Antd5/tree/utils/dropIndicator.js +35 -0
- package/lib/Antd5/tree/utils/iconUtil.js +69 -0
- package/lib/Antd5/tree-select/index.js +228 -0
- package/lib/Antd5/tree-select/style/index.js +51 -0
- package/lib/Antd5/typography/Base/CopyBtn.js +43 -0
- package/lib/Antd5/typography/Base/Ellipsis.js +245 -0
- package/lib/Antd5/typography/Base/EllipsisTooltip.js +27 -0
- package/lib/Antd5/typography/Base/index.js +444 -0
- package/lib/Antd5/typography/Base/util.js +12 -0
- package/lib/Antd5/typography/Editable.js +119 -0
- package/lib/Antd5/typography/Link.js +33 -0
- package/lib/Antd5/typography/Paragraph.js +17 -0
- package/lib/Antd5/typography/Text.js +35 -0
- package/lib/Antd5/typography/Title.js +35 -0
- package/lib/Antd5/typography/Typography.js +70 -0
- package/lib/Antd5/typography/hooks/useCopyClick.js +95 -0
- package/lib/Antd5/typography/hooks/useMergedConfig.js +13 -0
- package/lib/Antd5/typography/hooks/usePrevious.js +9 -0
- package/lib/Antd5/typography/hooks/useUpdatedEffect.js +13 -0
- package/lib/Antd5/typography/index.js +11 -0
- package/lib/Antd5/typography/style/index.js +58 -0
- package/lib/Antd5/typography/style/mixins.js +216 -0
- package/lib/Antd5/upload/Dragger.js +32 -0
- package/lib/Antd5/upload/Upload.js +458 -0
- package/lib/Antd5/upload/UploadList/ListItem.js +197 -0
- package/lib/Antd5/upload/UploadList/index.js +250 -0
- package/lib/Antd5/upload/index.js +6 -0
- package/lib/Antd5/upload/interface.js +1 -0
- package/lib/Antd5/upload/style/dragger.js +51 -0
- package/lib/Antd5/upload/style/index.js +48 -0
- package/lib/Antd5/upload/style/list.js +86 -0
- package/lib/Antd5/upload/style/motion.js +39 -0
- package/lib/Antd5/upload/style/picture.js +175 -0
- package/lib/Antd5/upload/style/rtl.js +12 -0
- package/lib/Antd5/upload/utils.js +140 -0
- package/lib/Antd5/version/index.js +4 -0
- package/lib/Antd5/version/token-meta.json +1 -0
- package/lib/Antd5/version/token.json +1 -0
- package/lib/Antd5/version/version.js +1 -0
- package/lib/Antd5/watermark/context.js +22 -0
- package/lib/Antd5/watermark/index.js +253 -0
- package/lib/Antd5/watermark/useClips.js +118 -0
- package/lib/Antd5/watermark/useRafDebounce.js +21 -0
- package/lib/Antd5/watermark/useWatermark.js +61 -0
- package/lib/Antd5/watermark/utils.js +28 -0
- package/lib/App/index.js +2 -0
- package/lib/AutoComplete/index.js +2 -0
- package/lib/Avatar/index.js +2 -0
- package/lib/BackTop/index.js +2 -0
- package/lib/Badge/index.js +48 -0
- package/lib/Badge/index.style.js +65 -0
- package/lib/BasicLayout/Breadcrumb.js +78 -0
- package/lib/BasicLayout/Nav.js +37 -0
- package/lib/BasicLayout/Sider.js +159 -0
- package/lib/BasicLayout/index.js +396 -0
- package/lib/BasicLayout/locale/en_US.js +4 -0
- package/lib/BasicLayout/locale/index.js +11 -0
- package/lib/BasicLayout/locale/zh_CN.js +4 -0
- package/lib/BasicLayout/locale/zh_TW.js +4 -0
- package/lib/BasicLayout/style/index.js +101 -0
- package/lib/BasicLayout/style/sider.js +73 -0
- package/lib/BasicLayout/utils.js +7 -0
- package/lib/Breadcrumb/index.js +2 -0
- package/lib/Button/index.js +53 -0
- package/lib/Button/index.style.js +41 -0
- package/lib/CWCascader/Cascader/index.js +281 -0
- package/lib/CWCascader/Cascader/utils/iconUtil.js +81 -0
- package/lib/CWCascader/Cascader/utils/motion.js +13 -0
- package/lib/CWCascader/index.js +73 -0
- package/lib/CWCascader/index.style.js +42 -0
- package/lib/CWCascader/rc-cascader/Cascader.js +353 -0
- package/lib/CWCascader/rc-cascader/OptionList/Checkbox.js +21 -0
- package/lib/CWCascader/rc-cascader/OptionList/Column.js +274 -0
- package/lib/CWCascader/rc-cascader/OptionList/index.js +220 -0
- package/lib/CWCascader/rc-cascader/OptionList/useActive.js +33 -0
- package/lib/CWCascader/rc-cascader/OptionList/useKeyboard.js +172 -0
- package/lib/CWCascader/rc-cascader/context.js +3 -0
- package/lib/CWCascader/rc-cascader/hooks/useDisplayValues.js +85 -0
- package/lib/CWCascader/rc-cascader/hooks/useEntities.js +40 -0
- package/lib/CWCascader/rc-cascader/hooks/useMissingValues.js +19 -0
- package/lib/CWCascader/rc-cascader/hooks/useRefFunc.js +13 -0
- package/lib/CWCascader/rc-cascader/hooks/useSearchConfig.js +30 -0
- package/lib/CWCascader/rc-cascader/hooks/useSearchOptions.js +73 -0
- package/lib/CWCascader/rc-cascader/index.js +2 -0
- package/lib/CWCascader/rc-cascader/utils/commonUtil.js +54 -0
- package/lib/CWCascader/rc-cascader/utils/treeUtil.js +81 -0
- package/lib/CWCascader/rc-cascader/utils/warningPropsUtil.js +30 -0
- package/lib/CWColorPicker/SketchPicker/components/common/Alpha.js +132 -0
- package/lib/CWColorPicker/SketchPicker/components/common/Checkboard.js +40 -0
- package/lib/CWColorPicker/SketchPicker/components/common/ColorWrap.js +79 -0
- package/lib/CWColorPicker/SketchPicker/components/common/EditableInput.js +171 -0
- package/lib/CWColorPicker/SketchPicker/components/common/Hue.js +117 -0
- package/lib/CWColorPicker/SketchPicker/components/common/Raised.js +91 -0
- package/lib/CWColorPicker/SketchPicker/components/common/Saturation.js +138 -0
- package/lib/CWColorPicker/SketchPicker/components/common/Swatch.js +62 -0
- package/lib/CWColorPicker/SketchPicker/components/common/index.js +8 -0
- package/lib/CWColorPicker/SketchPicker/components/sketch/SketchFields.js +148 -0
- package/lib/CWColorPicker/SketchPicker/components/sketch/SketchPresetColors.js +72 -0
- package/lib/CWColorPicker/SketchPicker/components/sketch/index.js +160 -0
- package/lib/CWColorPicker/SketchPicker/helpers/alpha.js +46 -0
- package/lib/CWColorPicker/SketchPicker/helpers/checkboard.js +29 -0
- package/lib/CWColorPicker/SketchPicker/helpers/color.js +86 -0
- package/lib/CWColorPicker/SketchPicker/helpers/hue.js +48 -0
- package/lib/CWColorPicker/SketchPicker/helpers/index.js +2 -0
- package/lib/CWColorPicker/SketchPicker/helpers/interaction.js +54 -0
- package/lib/CWColorPicker/SketchPicker/helpers/saturation.js +28 -0
- package/lib/CWColorPicker/index.js +296 -0
- package/lib/CWColorPicker/index.style.js +81 -0
- package/lib/CWColorPicker/utils.js +15 -0
- package/lib/CWMessage/CommonIcon.js +16 -0
- package/lib/CWMessage/MessageContent/TabList/index.js +113 -0
- package/lib/CWMessage/MessageContent/index.js +269 -0
- package/lib/CWMessage/index.js +457 -0
- package/lib/CWMessage/index.style.js +153 -0
- package/lib/CWMessage/message.svg +14 -0
- package/lib/CWMessage/messageSvg.js +19 -0
- package/lib/CWMessage/service/index.js +35 -0
- package/lib/CWMessage/utils/index.js +33 -0
- package/lib/CWRadioTabs/index.js +150 -0
- package/lib/CWRadioTabs/index.style.js +33 -0
- package/lib/CWRangePicker/DropdownMenu/MoreHistoryList/index.js +37 -0
- package/lib/CWRangePicker/DropdownMenu/MoreTimeList/index.js +46 -0
- package/lib/CWRangePicker/DropdownMenu/index.js +240 -0
- package/lib/CWRangePicker/DropdownMenu/index.style.js +159 -0
- package/lib/CWRangePicker/Refresh/index.js +161 -0
- package/lib/CWRangePicker/Refresh/index.style.js +37 -0
- package/lib/CWRangePicker/TimeSpan/index.js +96 -0
- package/lib/CWRangePicker/TimeSpan/index.style.js +25 -0
- package/lib/CWRangePicker/assets/Calendar.js +15 -0
- package/lib/CWRangePicker/assets/Calendar2.js +15 -0
- package/lib/CWRangePicker/assets/Recover.js +18 -0
- package/lib/CWRangePicker/assets/Refresh1.js +14 -0
- package/lib/CWRangePicker/assets/Refresh2.js +14 -0
- package/lib/CWRangePicker/assets/Refresh3.js +14 -0
- package/lib/CWRangePicker/assets/live.js +19 -0
- package/lib/CWRangePicker/assets/more.js +23 -0
- package/lib/CWRangePicker/index.js +742 -0
- package/lib/CWRangePicker/index.style.js +78 -0
- package/lib/CWRangePicker/locale/en_US.js +29 -0
- package/lib/CWRangePicker/locale/index.js +11 -0
- package/lib/CWRangePicker/locale/zh_CN.js +29 -0
- package/lib/CWRangePicker/locale/zh_TW.js +29 -0
- package/lib/CWRangePicker/utils/index.js +706 -0
- package/lib/CWSelect/index.js +2 -0
- package/lib/CWTable/CWTable.js +605 -0
- package/lib/CWTable/header.js +55 -0
- package/lib/CWTable/index.js +217 -0
- package/lib/CWTable/index.style.js +96 -0
- package/lib/CWTree/assets/Drag.js +23 -0
- package/lib/CWTree/index.js +399 -0
- package/lib/CWTree/index.style.js +127 -0
- package/lib/CWTree/locale/en_US.js +3 -0
- package/lib/CWTree/locale/index.js +11 -0
- package/lib/CWTree/locale/zh_CN.js +3 -0
- package/lib/CWTree/locale/zh_TW.js +3 -0
- package/lib/CWTree/utils/index.js +99 -0
- package/lib/Calendar/index.js +2 -0
- package/lib/Card/index.js +2 -0
- package/lib/CardSelect/index.js +153 -0
- package/lib/CardSelect/index.style.js +76 -0
- package/lib/Carousel/index.js +2 -0
- package/lib/Cascader/index.js +2 -0
- package/lib/ChangeIcon/index.js +153 -0
- package/lib/ChangeIcon/index.style.js +89 -0
- package/lib/Checkbox/index.js +2 -0
- package/lib/CitySelect/citys.js +1457 -0
- package/lib/CitySelect/index.js +128 -0
- package/lib/Col/index.js +2 -0
- package/lib/Collapse/index.js +85 -0
- package/lib/Collapse/index.style.js +120 -0
- package/lib/ColorPicker/index.js +2 -0
- package/lib/ConfigProvider/ConfigProvider.js +92 -0
- package/lib/ConfigProvider/Switch.js +43 -0
- package/lib/ConfigProvider/customTheme.js +271 -0
- package/lib/ConfigProvider/customTheme.json +163 -0
- package/lib/ConfigProvider/customToken.js +44 -0
- package/lib/ConfigProvider/index.js +6 -0
- package/lib/ConfigProvider/intlContext.js +8 -0
- package/lib/ConfigProvider/useLocale.js +15 -0
- package/lib/CustomScrollBar/index.js +150 -0
- package/lib/DataView/index.js +72 -0
- package/lib/DataView/index.style.js +34 -0
- package/lib/DatePicker/index.js +2 -0
- package/lib/DemoShow/index.js +15 -0
- package/lib/Descriptions/index.js +2 -0
- package/lib/Divider/index.js +2 -0
- package/lib/Documentation/Tocify.js +114 -0
- package/lib/Documentation/index.js +147 -0
- package/lib/Documentation/index.style.js +180 -0
- package/lib/Drawer/index.js +107 -0
- package/lib/Drawer/index.style.js +93 -0
- package/lib/Dropdown/DropdownButton.js +20 -0
- package/lib/Dropdown/index.js +39 -0
- package/lib/Dropdown/index.style.js +22 -0
- package/lib/EchartsArea/index.js +113 -0
- package/lib/EchartsBar/index.js +212 -0
- package/lib/EchartsBarRow/index.js +86 -0
- package/lib/EchartsBase/index.js +217 -0
- package/lib/EchartsLine/index.js +173 -0
- package/lib/EchartsPie/index.js +121 -0
- package/lib/EchartsRing/index.js +102 -0
- package/lib/Empty/index.js +70 -0
- package/lib/Empty/index.style.js +36 -0
- package/lib/ErrorBoundary/ErrorPage.js +35 -0
- package/lib/ErrorBoundary/assets/images/No-data.png +0 -0
- package/lib/ErrorBoundary/history.js +81 -0
- package/lib/ErrorBoundary/index.js +93 -0
- package/lib/ErrorBoundary/index.styles.js +48 -0
- package/lib/Exception/images/error.svg +58 -0
- package/lib/Exception/index.js +99 -0
- package/lib/Exception/index.style.js +37 -0
- package/lib/FilterDropDown/DragList.js +106 -0
- package/lib/FilterDropDown/assets/DragSvg.js +33 -0
- package/lib/FilterDropDown/assets/ShowSvgIcon.js +14 -0
- package/lib/FilterDropDown/index.js +271 -0
- package/lib/FilterDropDown/index.style.js +83 -0
- package/lib/Flex/index.js +2 -0
- package/lib/FloatButton/index.js +2 -0
- package/lib/Flow/BasicLayout/Chain.js +112 -0
- package/lib/Flow/BasicLayout/config.js +21 -0
- package/lib/Flow/BasicLayout/util.js +106 -0
- package/lib/Flow/Flow.js +183 -0
- package/lib/Flow/commons/initCommands.js +150 -0
- package/lib/Flow/components/PluginWrapper.js +25 -0
- package/lib/Flow/index.js +7 -0
- package/lib/Flow/layouts/callChain.js +121 -0
- package/lib/Flow/layouts/index.js +4 -0
- package/lib/Flow/plugins/CommandLifeCycle.js +215 -0
- package/lib/Flow/plugins/InitSideBarPlugin.js +81 -0
- package/lib/Flow/plugins/InitToolBarPlugin.js +99 -0
- package/lib/Flow/shape/index.js +4 -0
- package/lib/Flow/shape/nodes/baseNode.js +99 -0
- package/lib/Flow/shape/nodes/index.js +4 -0
- package/lib/Flow/tools/index.js +22 -0
- package/lib/Flow/types/index.js +1 -0
- package/lib/Form/FormItem.js +79 -0
- package/lib/Form/consts.js +2 -0
- package/lib/Form/context.js +3 -0
- package/lib/Form/hook/useForm3.js +117 -0
- package/lib/Form/index.js +77 -0
- package/lib/Form/index.style.js +56 -0
- package/lib/FormItemWrapper/index.js +52 -0
- package/lib/FormItemWrapper/index.style.js +32 -0
- package/lib/GlobalTabs/index.js +49 -0
- package/lib/GlobalTabs/index.style.js +31 -0
- package/lib/Grid/index.js +2 -0
- package/lib/Header/CommonDropMenu.js +90 -0
- package/lib/Header/CommonIcon.js +26 -0
- package/lib/Header/Document/icon.svg +14 -0
- package/lib/Header/Document/index.js +29 -0
- package/lib/Header/LocaleSwitcher.js +41 -0
- package/lib/Header/Message/index.js +21 -0
- package/lib/Header/TopNavigationMenu/index.js +73 -0
- package/lib/Header/TopNavigationMenu/index.style.js +47 -0
- package/lib/Header/UserSetting/TenantList.js +26 -0
- package/lib/Header/UserSetting/TenantTree.js +33 -0
- package/lib/Header/UserSetting/index.js +202 -0
- package/lib/Header/UserSetting/index.style.js +60 -0
- package/lib/Header/UserSetting/utils.js +30 -0
- package/lib/Header/assets/home.svg +13 -0
- package/lib/Header/assets/logo.svg +20 -0
- package/lib/Header/index.js +320 -0
- package/lib/Header/index.style.js +154 -0
- package/lib/Icon/index.js +23 -0
- package/lib/Icon/utils.js +20 -0
- package/lib/IconSelect/components/CustomImg/index.js +84 -0
- package/lib/IconSelect/components/SearchIcon/index.js +98 -0
- package/lib/IconSelect/constants/icon.js +13291 -0
- package/lib/IconSelect/index.js +144 -0
- package/lib/IconSelect/index.style.js +75 -0
- package/lib/Image/index.js +2 -0
- package/lib/Input/InputComponent.js +71 -0
- package/lib/Input/index.js +93 -0
- package/lib/Input/index.style.js +23 -0
- package/lib/InputNumber/index.js +27 -0
- package/lib/Joyride/List.js +85 -0
- package/lib/Joyride/img/finishImg.png +0 -0
- package/lib/Joyride/img/welcomeImg.png +0 -0
- package/lib/Joyride/index.js +448 -0
- package/lib/Joyride/style/index.style.js +67 -0
- package/lib/Joyride/style/list.style.js +115 -0
- package/lib/Layout/index.js +2 -0
- package/lib/LayoutWrapper/Footer.js +31 -0
- package/lib/LayoutWrapper/Header.js +59 -0
- package/lib/LayoutWrapper/LeftArrow.js +17 -0
- package/lib/LayoutWrapper/assets/left-arrow.svg +21 -0
- package/lib/LayoutWrapper/index.js +196 -0
- package/lib/LayoutWrapper/style/footer.js +25 -0
- package/lib/LayoutWrapper/style/header.js +46 -0
- package/lib/LayoutWrapper/style/index.js +58 -0
- package/lib/LeftNavigation/index.js +80 -0
- package/lib/LeftNavigation/index.style.js +34 -0
- package/lib/List/index.js +2 -0
- package/lib/Mentions/index.js +2 -0
- package/lib/Menu/index.js +2 -0
- package/lib/Modal/Modal.js +176 -0
- package/lib/Modal/assets/Close.js +22 -0
- package/lib/Modal/confirmGlobalStyle.js +37 -0
- package/lib/Modal/custom-backup/entiretyDrag.js +142 -0
- package/lib/Modal/custom-backup/index.less +76 -0
- package/lib/Modal/index.js +274 -0
- package/lib/Modal/index.style.js +53 -0
- package/lib/ModuleFederation/ErrorBoundary/index.js +52 -0
- package/lib/ModuleFederation/index.js +10 -0
- package/lib/ModuleFederation/react-dynamic-remote-component/RemoteComponent.js +185 -0
- package/lib/ModuleFederation/react-dynamic-remote-component/attach-script.js +42 -0
- package/lib/ModuleFederation/react-dynamic-remote-component/index.js +1 -0
- package/lib/ModuleFederation/react-dynamic-remote-component/load-module.js +44 -0
- package/lib/ModuleFederation/react-dynamic-remote-component/loading-script.js +35 -0
- package/lib/ModuleFederation/react-dynamic-remote-component/suspend.js +28 -0
- package/lib/ModuleFederation/react-dynamic-remote-component/utils.js +7 -0
- package/lib/ModuleTitle/index.js +30 -0
- package/lib/ModuleTitle/index.style.js +34 -0
- package/lib/Overview/index.js +2 -0
- package/lib/Pagination/index.js +363 -0
- package/lib/Pagination/index.style.js +137 -0
- package/lib/Popconfirm/index.js +2 -0
- package/lib/Popover/index.js +2 -0
- package/lib/Progress/index.js +2 -0
- package/lib/QrCode/index.js +2 -0
- package/lib/QuickRangePicker/index.js +149 -0
- package/lib/QuickRangePicker/index.style.js +45 -0
- package/lib/QuickTransfer/Drag.js +56 -0
- package/lib/QuickTransfer/DragList.js +114 -0
- package/lib/QuickTransfer/NoDrag.js +33 -0
- package/lib/QuickTransfer/NotDragList.js +41 -0
- package/lib/QuickTransfer/assets/DragSvg.js +14 -0
- package/lib/QuickTransfer/assets/LockSvg.js +15 -0
- package/lib/QuickTransfer/index.js +938 -0
- package/lib/QuickTransfer/index.style.js +185 -0
- package/lib/QuickTransfer/utils.js +291 -0
- package/lib/Radio/index.js +2 -0
- package/lib/RangePicker/index.js +2 -0
- package/lib/Rate/index.js +2 -0
- package/lib/Result/index.js +2 -0
- package/lib/Row/index.js +2 -0
- package/lib/ScrollLoad/index.js +134 -0
- package/lib/SearchBar/OutSearch.js +107 -0
- package/lib/SearchBar/index.js +680 -0
- package/lib/SearchBar/index.style.js +91 -0
- package/lib/SearchBar/locale/en_US.js +6 -0
- package/lib/SearchBar/locale/index.js +11 -0
- package/lib/SearchBar/locale/zh_CN.js +6 -0
- package/lib/SearchBar/locale/zh_TW.js +6 -0
- package/lib/Segmented/index.js +2 -0
- package/lib/Select/index.js +2 -0
- package/lib/SiderMenu/index.js +215 -0
- package/lib/SiderMenu/index.style.js +23 -0
- package/lib/SimpleCard/index.js +121 -0
- package/lib/SimpleCard/index.style.js +76 -0
- package/lib/SimplePagination/index.js +188 -0
- package/lib/SimplePagination/index.style.js +105 -0
- package/lib/SingleSpa/import-html/index.js +51 -0
- package/lib/SingleSpa/import-html/process-tpl.js +189 -0
- package/lib/SingleSpa/import-html/utils.js +147 -0
- package/lib/SingleSpa/index.js +131 -0
- package/lib/SingleSpa/singleSpa/single-spa.dev.js +1505 -0
- package/lib/SingleSpa/system/amd.js +153 -0
- package/lib/SingleSpa/system/index.js +11 -0
- package/lib/SingleSpa/system/system.js +771 -0
- package/lib/SingleSpa/system/systemjs-css.js +96 -0
- package/lib/SingleSpa/utils.js +73 -0
- package/lib/Skeleton/index.js +2 -0
- package/lib/Slider/assets/slider.png +0 -0
- package/lib/Slider/index.js +32 -0
- package/lib/Slider/index.style.js +116 -0
- package/lib/Space/index.js +2 -0
- package/lib/Spin/index.js +2 -0
- package/lib/Statistic/index.js +2 -0
- package/lib/Steps/index.js +2 -0
- package/lib/Switch/index.js +2 -0
- package/lib/Table/index.js +2 -0
- package/lib/Tabs/index.js +52 -0
- package/lib/Tabs/index.style.js +58 -0
- package/lib/Tag/CheckableTag.js +53 -0
- package/lib/Tag/assets/LeftBottomCorner.js +22 -0
- package/lib/Tag/assets/LeftTopCorner.js +22 -0
- package/lib/Tag/assets/RightBottomCorner.js +22 -0
- package/lib/Tag/assets/RightTopCorner.js +14 -0
- package/lib/Tag/index.js +109 -0
- package/lib/Tag/index.style.js +156 -0
- package/lib/Theme/index.js +2 -0
- package/lib/ThemeProvider/Switcher.js +25 -0
- package/lib/ThemeProvider/index.js +5 -0
- package/lib/ThemeProvider/main.js +185 -0
- package/lib/ThemeProvider/utils.js +60 -0
- package/lib/TimePicker/index.js +2 -0
- package/lib/Timeline/index.js +2 -0
- package/lib/Tooltip/index.js +54 -0
- package/lib/Tooltip/index.style.js +23 -0
- package/lib/TooltipText/ResizeObserverManager.js +56 -0
- package/lib/TooltipText/index.js +138 -0
- package/lib/TooltipText/index.style.js +47 -0
- package/lib/Tour/index.js +2 -0
- package/lib/Transfer/index.js +2 -0
- package/lib/Tree/index.js +2 -0
- package/lib/TreeSelect/index.js +2 -0
- package/lib/Typography/index.js +2 -0
- package/lib/Upload/index.js +2 -0
- package/lib/WangEditor/editor4.js +652 -0
- package/lib/WangEditor/index.js +298 -0
- package/lib/WangEditor/index.style.js +203 -0
- package/lib/WangEditor/locale/index.js +62 -0
- package/lib/WangEditor/release/wangEditor.js +5390 -0
- package/lib/WangEditor/resizeable.js +112 -0
- package/lib/WangEditor/usePreview.js +39 -0
- package/lib/WangEditor/wangEditor.js +4627 -0
- package/lib/Watermark/index.js +2 -0
- package/lib/antd-style/context/ThemeModeContext.js +11 -0
- package/lib/antd-style/context/index.js +1 -0
- package/lib/antd-style/core/CacheManager.js +56 -0
- package/lib/antd-style/core/createCSS.js +42 -0
- package/lib/antd-style/core/createEmotion.js +1 -0
- package/lib/antd-style/core/createSerializeStyles.js +11 -0
- package/lib/antd-style/core/index.js +5 -0
- package/lib/antd-style/core/insertStyles.js +35 -0
- package/lib/antd-style/factories/createEmotionContext.js +4 -0
- package/lib/antd-style/factories/createGlobalStyle.js +28 -0
- package/lib/antd-style/factories/createStyish.js +14 -0
- package/lib/antd-style/factories/createStyleProvider/index.js +69 -0
- package/lib/antd-style/factories/createStyledThemeProvider.js +16 -0
- package/lib/antd-style/factories/createStyles/index.js +114 -0
- package/lib/antd-style/factories/createStyles/response.js +43 -0
- package/lib/antd-style/factories/createStyles/types.js +1 -0
- package/lib/antd-style/factories/createThemeProvider/AntdProvider.js +78 -0
- package/lib/antd-style/factories/createThemeProvider/ThemeSwitcher.js +130 -0
- package/lib/antd-style/factories/createThemeProvider/TokenContainer.js +75 -0
- package/lib/antd-style/factories/createThemeProvider/index.js +77 -0
- package/lib/antd-style/factories/createThemeProvider/type.js +1 -0
- package/lib/antd-style/factories/createUseTheme.js +33 -0
- package/lib/antd-style/functions/createInstance.js +95 -0
- package/lib/antd-style/functions/extractStaticStyle.js +63 -0
- package/lib/antd-style/functions/index.js +21 -0
- package/lib/antd-style/functions/setupStyled.js +11 -0
- package/lib/antd-style/hooks/index.js +5 -0
- package/lib/antd-style/hooks/useAntdStylish.js +20 -0
- package/lib/antd-style/hooks/useAntdTheme.js +18 -0
- package/lib/antd-style/hooks/useAntdToken.js +6 -0
- package/lib/antd-style/hooks/useResponsive.js +9 -0
- package/lib/antd-style/hooks/useThemeMode.js +5 -0
- package/lib/antd-style/index.js +5 -0
- package/lib/antd-style/stylish/button.js +19 -0
- package/lib/antd-style/types/appearance.js +1 -0
- package/lib/antd-style/types/css.js +1 -0
- package/lib/antd-style/types/function.js +1 -0
- package/lib/antd-style/types/genericUtils.js +1 -0
- package/lib/antd-style/types/index.js +8 -0
- package/lib/antd-style/types/response.js +1 -0
- package/lib/antd-style/types/styleManager.js +1 -0
- package/lib/antd-style/types/styled.js +1 -0
- package/lib/antd-style/types/theme.js +1 -0
- package/lib/antd-style/utils/convertStylish.js +18 -0
- package/lib/antd-style/utils/css.js +59 -0
- package/lib/antd-style/utils/css.test.js +20 -0
- package/lib/antd-style/utils/index.js +1 -0
- package/lib/antd-style/utils/matchBrowserPrefers.js +9 -0
- package/lib/antd-style/utils/responsive.js +14 -0
- package/lib/antd-style/utils/safeStartTransition.js +8 -0
- package/lib/configHoc/index.js +23 -0
- package/lib/index.js +5 -0
- package/lib/locales/en_US.json +78 -0
- package/lib/locales/index.js +57 -0
- package/lib/locales/intl.js +46 -0
- package/lib/locales/zh_CN.json +78 -0
- package/lib/locales/zh_TW.json +78 -0
- package/lib/message/index.js +2 -0
- package/lib/noticeManager/event.js +52 -0
- package/lib/noticeManager/globalState.js +26 -0
- package/lib/noticeManager/index.js +16 -0
- package/lib/notification/index.js +2 -0
- package/lib/portalNoticeManager/event.js +52 -0
- package/lib/portalNoticeManager/index.js +14 -0
- package/lib/portalNoticeManager/usePortalDispatchNotice.js +37 -0
- package/lib/portalNoticeManager/withPortalDispatchNotice.js +10 -0
- package/lib/treeLoad/index.js +43 -0
- package/lib/useChartTheme/index.js +36 -0
- package/lib/useConfigContext/index.js +6 -0
- package/lib/utils/index.js +90 -0
- package/package.json +1 -1
|
@@ -0,0 +1,742 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
import _Dropdown from "@chaoswise/ui/lib/Dropdown";
|
|
3
|
+
import _Input from "@chaoswise/ui/lib/Input";
|
|
4
|
+
import _message from "@chaoswise/ui/lib/message";
|
|
5
|
+
import _Tooltip from "@chaoswise/ui/lib/Tooltip";
|
|
6
|
+
import _DatePicker from "@chaoswise/ui/lib/DatePicker";
|
|
7
|
+
var _excluded = ["showTipIcon"],
|
|
8
|
+
_excluded2 = ["timeDomain", "number", "unit", "isRecently", "value"],
|
|
9
|
+
_excluded3 = ["value", "timeDomain", "number", "unit", "isRecently"];
|
|
10
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
11
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
12
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
13
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
14
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
15
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
21
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
22
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
23
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
24
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
25
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
26
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
27
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
28
|
+
import React, { forwardRef, useState, useEffect, useMemo, useRef, useImperativeHandle } from "react";
|
|
29
|
+
import { QuestionCircleOutlined } from "@ant-design/icons";
|
|
30
|
+
import PropTypes from "prop-types";
|
|
31
|
+
import classnames from "classnames";
|
|
32
|
+
import DropDownMenu from "./DropdownMenu";
|
|
33
|
+
import TimeSpan from "./TimeSpan";
|
|
34
|
+
import Refresh from "./Refresh";
|
|
35
|
+
import CalendarSvg from "./assets/Calendar";
|
|
36
|
+
import LiveSvg from "./assets/live";
|
|
37
|
+
import RecoverSvg from "./assets/Recover";
|
|
38
|
+
import { regroupDataSourceFn, echoInputValue, getUnit, judgeType, getChangeUnitDate, isInvalidDate, range, funcValueChangeArrayValue, getCorrectValue, getHistoryInfo, getFinalDateOption, getTruthDateCount, isAfterDate, isSameDate, isExceedMaxTimeSpan, getYears, computedRecentlyValue } from "./utils";
|
|
39
|
+
import _ from "lodash";
|
|
40
|
+
import moment from "moment";
|
|
41
|
+
import { useIntl } from "../locales";
|
|
42
|
+
import { formatMessage } from "../utils";
|
|
43
|
+
import useStyle from "./index.style";
|
|
44
|
+
var RangePicker = _DatePicker.RangePicker;
|
|
45
|
+
var CWRangePicker = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
46
|
+
var defaultValue = props.defaultValue,
|
|
47
|
+
value = props.value,
|
|
48
|
+
_props$dataSource = props.dataSource,
|
|
49
|
+
dataSource = _props$dataSource === void 0 ? [] : _props$dataSource,
|
|
50
|
+
classNameWrapper = props.classNameWrapper,
|
|
51
|
+
_props$onChange = props.onChange,
|
|
52
|
+
_onChange = _props$onChange === void 0 ? function () {} : _props$onChange,
|
|
53
|
+
_props$onInitChange = props.onInitChange,
|
|
54
|
+
_onInitChange = _props$onInitChange === void 0 ? function () {} : _props$onInitChange,
|
|
55
|
+
_props$tipTooltipOpti = props.tipTooltipOption,
|
|
56
|
+
tipTooltipOption = _props$tipTooltipOpti === void 0 ? {} : _props$tipTooltipOpti,
|
|
57
|
+
_props$menuOption = props.menuOption,
|
|
58
|
+
menuOption = _props$menuOption === void 0 ? {} : _props$menuOption,
|
|
59
|
+
_props$refreshOption = props.refreshOption,
|
|
60
|
+
refreshOption = _props$refreshOption === void 0 ? {} : _props$refreshOption,
|
|
61
|
+
_props$timeSpanOption = props.timeSpanOption,
|
|
62
|
+
timeSpanOption = _props$timeSpanOption === void 0 ? {} : _props$timeSpanOption,
|
|
63
|
+
_props$moreItemDropdo = props.moreItemDropdownPosition,
|
|
64
|
+
moreItemDropdownPosition = _props$moreItemDropdo === void 0 ? "left" : _props$moreItemDropdo,
|
|
65
|
+
inputPrefixIcon = props.inputPrefixIcon,
|
|
66
|
+
_props$format = props.format,
|
|
67
|
+
format = _props$format === void 0 ? "YYYY/MM/DD HH:mm:ss" : _props$format,
|
|
68
|
+
forceRenderTitle = props.forceRenderTitle,
|
|
69
|
+
open = props.open,
|
|
70
|
+
_props$rangePickerFor = props.rangePickerFormat,
|
|
71
|
+
rangePickerFormat = _props$rangePickerFor === void 0 ? "YYYY/MM/DD" : _props$rangePickerFor;
|
|
72
|
+
var intl = useIntl();
|
|
73
|
+
var _ref = (intl === null || intl === void 0 ? void 0 : intl.options) || {},
|
|
74
|
+
_ref$currentLocale = _ref.currentLocale,
|
|
75
|
+
locale = _ref$currentLocale === void 0 ? "zh_CN" : _ref$currentLocale;
|
|
76
|
+
var _refreshOption$onAuto = refreshOption.onAutoRefresh,
|
|
77
|
+
onAutoRefresh = _refreshOption$onAuto === void 0 ? function () {} : _refreshOption$onAuto,
|
|
78
|
+
_refreshOption$onAuto2 = refreshOption.onAutoRefreshChange,
|
|
79
|
+
onAutoRefreshChange = _refreshOption$onAuto2 === void 0 ? function () {} : _refreshOption$onAuto2,
|
|
80
|
+
_refreshOption$delay = refreshOption.delay,
|
|
81
|
+
delay = _refreshOption$delay === void 0 ? 5000 : _refreshOption$delay,
|
|
82
|
+
openAutoRefresh = refreshOption.openAutoRefresh,
|
|
83
|
+
_refreshOption$showAu = refreshOption.showAutoRefresh,
|
|
84
|
+
showAutoRefresh = _refreshOption$showAu === void 0 ? true : _refreshOption$showAu,
|
|
85
|
+
_refreshOption$isRece = refreshOption.isRecentlyOpenRefresh,
|
|
86
|
+
isRecentlyOpenRefresh = _refreshOption$isRece === void 0 ? true : _refreshOption$isRece;
|
|
87
|
+
var _timeSpanOption$timeS = timeSpanOption.timeSpanBoundary,
|
|
88
|
+
timeSpanBoundary = _timeSpanOption$timeS === void 0 ? 94608000 : _timeSpanOption$timeS;
|
|
89
|
+
var _menuOption$showCalen = menuOption.showCalendar,
|
|
90
|
+
showCalendar = _menuOption$showCalen === void 0 ? true : _menuOption$showCalen,
|
|
91
|
+
_menuOption$exceedSho = menuOption.exceedShowInMore,
|
|
92
|
+
exceedShowInMore = _menuOption$exceedSho === void 0 ? false : _menuOption$exceedSho,
|
|
93
|
+
_menuOption$showDefau = menuOption.showDefaultCount,
|
|
94
|
+
showDefaultCount = _menuOption$showDefau === void 0 ? 8 : _menuOption$showDefau,
|
|
95
|
+
dropdownClassName = menuOption.dropdownClassName,
|
|
96
|
+
_getPopupContainer = menuOption.getPopupContainer,
|
|
97
|
+
getPopupContainerCalendar = menuOption.getPopupContainerCalendar,
|
|
98
|
+
dropdownCalendarClassName = menuOption.dropdownCalendarClassName,
|
|
99
|
+
disabledDate = menuOption.disabledDate,
|
|
100
|
+
disabledTime = menuOption.disabledTime;
|
|
101
|
+
var _useStyle = useStyle("cw-range-picker-wrapper"),
|
|
102
|
+
_useStyle2 = _slicedToArray(_useStyle, 3),
|
|
103
|
+
wrapCSSVar = _useStyle2[0],
|
|
104
|
+
hashId = _useStyle2[1],
|
|
105
|
+
cssVarCls = _useStyle2[2];
|
|
106
|
+
var _tipTooltipOption$sho = tipTooltipOption.showTipIcon,
|
|
107
|
+
showTipIcon = _tipTooltipOption$sho === void 0 ? false : _tipTooltipOption$sho,
|
|
108
|
+
extraTipOption = _objectWithoutProperties(tipTooltipOption, _excluded);
|
|
109
|
+
// 输入框是否获取焦点
|
|
110
|
+
var _useState = useState(false),
|
|
111
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
112
|
+
isFocus = _useState2[0],
|
|
113
|
+
setIsFocus = _useState2[1];
|
|
114
|
+
// 输入框回填内容
|
|
115
|
+
var _useState3 = useState(""),
|
|
116
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
117
|
+
inputValue = _useState4[0],
|
|
118
|
+
setInputValue = _useState4[1];
|
|
119
|
+
// 当前默认时间项
|
|
120
|
+
var _useState5 = useState({}),
|
|
121
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
122
|
+
dateValue = _useState6[0],
|
|
123
|
+
setDateValue = _useState6[1];
|
|
124
|
+
// 记录切换之后的时间项
|
|
125
|
+
var _useState7 = useState(dataSource[0] || {}),
|
|
126
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
127
|
+
recordDateValue = _useState8[0],
|
|
128
|
+
setRecordDateValue = _useState8[1];
|
|
129
|
+
// 自动刷新状态是否开启
|
|
130
|
+
var _useState9 = useState(false),
|
|
131
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
132
|
+
isAutoRefresh = _useState10[0],
|
|
133
|
+
setIsAutoRefresh = _useState10[1];
|
|
134
|
+
// 是否切换到日历选择
|
|
135
|
+
var _useState11 = useState(false),
|
|
136
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
137
|
+
isCalendar = _useState12[0],
|
|
138
|
+
setIsCalendar = _useState12[1];
|
|
139
|
+
// 历史记录列表存储
|
|
140
|
+
var _useState13 = useState([]),
|
|
141
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
142
|
+
historyList = _useState14[0],
|
|
143
|
+
setHistoryList = _useState14[1];
|
|
144
|
+
// 特殊时间选择器外壳容器
|
|
145
|
+
var calendarRef = useRef(null);
|
|
146
|
+
// 定时器计数
|
|
147
|
+
var timeRef = useRef(null);
|
|
148
|
+
var isInputRef = useRef(false); // 标记,输入框非默认值,输入内容
|
|
149
|
+
var isClickAutoRefresh = useRef(false); // 标记 点击自动刷新按钮
|
|
150
|
+
// 输入框处理聚焦失焦
|
|
151
|
+
var inputRef = useRef(null);
|
|
152
|
+
// 含有刷新组件暴露的方法
|
|
153
|
+
var refreshRef = useRef(null);
|
|
154
|
+
// 组件内部方法抛出
|
|
155
|
+
useImperativeHandle(ref, function () {
|
|
156
|
+
var _refreshRef$current;
|
|
157
|
+
return {
|
|
158
|
+
onStop: onStop,
|
|
159
|
+
onRefresh: (_refreshRef$current = refreshRef.current) === null || _refreshRef$current === void 0 ? void 0 : _refreshRef$current.onRefresh,
|
|
160
|
+
onClickAutoRefresh: onClickAutoRefresh
|
|
161
|
+
};
|
|
162
|
+
});
|
|
163
|
+
// 初始时记录当前时间项
|
|
164
|
+
useEffect(function () {
|
|
165
|
+
var dateValue = {};
|
|
166
|
+
if (value) {
|
|
167
|
+
dateValue = value;
|
|
168
|
+
} else if (defaultValue) {
|
|
169
|
+
dateValue = defaultValue;
|
|
170
|
+
} else if (dataSource.length) {
|
|
171
|
+
dateValue = dataSource[0];
|
|
172
|
+
}
|
|
173
|
+
var _dateValue = dateValue,
|
|
174
|
+
values = _dateValue.value;
|
|
175
|
+
var _judgeType = judgeType(dateValue),
|
|
176
|
+
_judgeType2 = _slicedToArray(_judgeType, 2),
|
|
177
|
+
isRule = _judgeType2[0],
|
|
178
|
+
captureUnit = _judgeType2[1];
|
|
179
|
+
if (!isRule && !values) {
|
|
180
|
+
setIsAutoRefresh(true);
|
|
181
|
+
}
|
|
182
|
+
var initValue = dateValue;
|
|
183
|
+
if (isRule) {
|
|
184
|
+
initValue = _objectSpread(_objectSpread({}, initValue), {}, {
|
|
185
|
+
isRecently: true,
|
|
186
|
+
value: getChangeUnitDate(captureUnit[0], captureUnit[1]),
|
|
187
|
+
number: captureUnit[0],
|
|
188
|
+
unit: captureUnit[1] === "mo" ? "M" : captureUnit[1]
|
|
189
|
+
});
|
|
190
|
+
} else if (values) {
|
|
191
|
+
initValue = _objectSpread(_objectSpread({}, initValue), {}, {
|
|
192
|
+
isRecently: false,
|
|
193
|
+
value: funcValueChangeArrayValue(values)
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
_onInitChange(initValue);
|
|
197
|
+
setDateValue(dateValue);
|
|
198
|
+
}, []);
|
|
199
|
+
useEffect(function () {
|
|
200
|
+
if (value) {
|
|
201
|
+
setRecordDateValue(value);
|
|
202
|
+
} else if (defaultValue) {
|
|
203
|
+
setRecordDateValue(defaultValue);
|
|
204
|
+
}
|
|
205
|
+
}, [defaultValue, value]);
|
|
206
|
+
var enableAutoRefresh = useMemo(function () {
|
|
207
|
+
return openAutoRefresh !== undefined ? openAutoRefresh : isAutoRefresh;
|
|
208
|
+
}, [openAutoRefresh, isAutoRefresh]);
|
|
209
|
+
useEffect(function () {
|
|
210
|
+
// antd5.0版本的RangePicker组件的open属性有问题这里做了处理
|
|
211
|
+
if (isCalendar && showCalendar) {
|
|
212
|
+
var calendarWrapperdom = calendarRef.current.querySelector(".cw-range-picker-calendar-wrapper");
|
|
213
|
+
calendarWrapperdom && calendarWrapperdom.click();
|
|
214
|
+
}
|
|
215
|
+
}, [isCalendar, showCalendar]);
|
|
216
|
+
// 输入框回显
|
|
217
|
+
useEffect(function () {
|
|
218
|
+
setInputValue(echoInputValue(recordDateValue, isFocus, locale, format, forceRenderTitle, enableAutoRefresh, timeSpanBoundary));
|
|
219
|
+
}, [recordDateValue, isFocus, locale, format, forceRenderTitle, enableAutoRefresh, timeSpanBoundary]);
|
|
220
|
+
useEffect(function () {
|
|
221
|
+
var _judgeType3 = judgeType(recordDateValue),
|
|
222
|
+
_judgeType4 = _slicedToArray(_judgeType3, 1),
|
|
223
|
+
isRule = _judgeType4[0];
|
|
224
|
+
var isHasDate = !isRule && !recordDateValue.value ? false : true;
|
|
225
|
+
var _isAutoRefresh = enableAutoRefresh;
|
|
226
|
+
if (isHasDate) {
|
|
227
|
+
if (!isRecentlyOpenRefresh) {
|
|
228
|
+
if (!isRule) {
|
|
229
|
+
if (enableAutoRefresh) {
|
|
230
|
+
onAutoRefreshChange(false);
|
|
231
|
+
_isAutoRefresh = false;
|
|
232
|
+
}
|
|
233
|
+
} else {
|
|
234
|
+
if (isRule && isClickAutoRefresh.current) {
|
|
235
|
+
if (!enableAutoRefresh) {
|
|
236
|
+
onAutoRefreshChange(true);
|
|
237
|
+
_isAutoRefresh = true;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
isClickAutoRefresh.current = false;
|
|
242
|
+
} else {
|
|
243
|
+
if (isRule) {
|
|
244
|
+
if (!enableAutoRefresh) {
|
|
245
|
+
onAutoRefreshChange(true);
|
|
246
|
+
_isAutoRefresh = true;
|
|
247
|
+
}
|
|
248
|
+
} else {
|
|
249
|
+
if (enableAutoRefresh) {
|
|
250
|
+
onAutoRefreshChange(false);
|
|
251
|
+
_isAutoRefresh = false;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
setIsAutoRefresh(_isAutoRefresh);
|
|
256
|
+
} else {
|
|
257
|
+
isClickAutoRefresh.current = false;
|
|
258
|
+
}
|
|
259
|
+
}, [recordDateValue, isRecentlyOpenRefresh]);
|
|
260
|
+
useEffect(function () {
|
|
261
|
+
var values = recordDateValue.value;
|
|
262
|
+
var _judgeType5 = judgeType(recordDateValue),
|
|
263
|
+
_judgeType6 = _slicedToArray(_judgeType5, 3),
|
|
264
|
+
isRule = _judgeType6[0],
|
|
265
|
+
captureUnit = _judgeType6[1],
|
|
266
|
+
recordUnit = _judgeType6[2];
|
|
267
|
+
if (enableAutoRefresh && isRule && showAutoRefresh) {
|
|
268
|
+
timeRef.current = setInterval(function () {
|
|
269
|
+
var _values = [];
|
|
270
|
+
if (values) {
|
|
271
|
+
_values = computedRecentlyValue(values);
|
|
272
|
+
} else {
|
|
273
|
+
_values = getChangeUnitDate(captureUnit[0], captureUnit[1]);
|
|
274
|
+
}
|
|
275
|
+
var newValue = _objectSpread(_objectSpread({}, recordDateValue), {}, {
|
|
276
|
+
timeDomain: recordUnit,
|
|
277
|
+
number: captureUnit[0],
|
|
278
|
+
unit: captureUnit[1] === "mo" ? "M" : captureUnit[1],
|
|
279
|
+
value: _values,
|
|
280
|
+
isRecently: true
|
|
281
|
+
});
|
|
282
|
+
onAutoRefresh(newValue);
|
|
283
|
+
}, delay);
|
|
284
|
+
}
|
|
285
|
+
if (enableAutoRefresh && !isRule && !values && showAutoRefresh) {
|
|
286
|
+
timeRef.current = setInterval(function () {
|
|
287
|
+
onAutoRefresh(recordDateValue);
|
|
288
|
+
}, delay);
|
|
289
|
+
}
|
|
290
|
+
return function () {
|
|
291
|
+
clearInterval(timeRef.current);
|
|
292
|
+
};
|
|
293
|
+
}, [enableAutoRefresh, recordDateValue, delay, showAutoRefresh]);
|
|
294
|
+
// 日期是否存在
|
|
295
|
+
var _useMemo = useMemo(function () {
|
|
296
|
+
// 不符合最近时间格式和没有日期数据返回false
|
|
297
|
+
var values = recordDateValue.value;
|
|
298
|
+
var _judgeType7 = judgeType(recordDateValue),
|
|
299
|
+
_judgeType8 = _slicedToArray(_judgeType7, 2),
|
|
300
|
+
isRule = _judgeType8[0],
|
|
301
|
+
captureUnit = _judgeType8[1];
|
|
302
|
+
values = funcValueChangeArrayValue(values);
|
|
303
|
+
var isHasDate = true;
|
|
304
|
+
var isRightDisabled = false;
|
|
305
|
+
var isDisabledEnlargeBtn = false;
|
|
306
|
+
var years = getYears(timeSpanBoundary);
|
|
307
|
+
if (isRule) {
|
|
308
|
+
isRightDisabled = true;
|
|
309
|
+
if (!values) {
|
|
310
|
+
values = getChangeUnitDate(captureUnit[0], captureUnit[1]);
|
|
311
|
+
}
|
|
312
|
+
if (captureUnit[1] === "y" && Number(captureUnit[0]) >= years) {
|
|
313
|
+
isDisabledEnlargeBtn = true;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
if (!isRule && !values) {
|
|
317
|
+
isHasDate = false;
|
|
318
|
+
}
|
|
319
|
+
return [isHasDate, values, isRightDisabled, isDisabledEnlargeBtn];
|
|
320
|
+
}, [recordDateValue, timeSpanBoundary]),
|
|
321
|
+
_useMemo2 = _slicedToArray(_useMemo, 4),
|
|
322
|
+
isHasDate = _useMemo2[0],
|
|
323
|
+
_defaultValue = _useMemo2[1],
|
|
324
|
+
isRightDisabled = _useMemo2[2],
|
|
325
|
+
isDisabledEnlargeBtn = _useMemo2[3];
|
|
326
|
+
// 点击空白处日历切换
|
|
327
|
+
useEffect(function () {
|
|
328
|
+
document.addEventListener("click", clickBody);
|
|
329
|
+
return function () {
|
|
330
|
+
document.removeEventListener("click", clickBody);
|
|
331
|
+
};
|
|
332
|
+
}, []);
|
|
333
|
+
// 重组数据源
|
|
334
|
+
var regroupDataSource = useMemo(function () {
|
|
335
|
+
if (exceedShowInMore) {
|
|
336
|
+
return regroupDataSourceFn(dataSource);
|
|
337
|
+
}
|
|
338
|
+
return regroupDataSourceFn(dataSource.slice(showDefaultCount));
|
|
339
|
+
}, [dataSource, exceedShowInMore, showDefaultCount]);
|
|
340
|
+
// 日历模式下点击body
|
|
341
|
+
var clickBody = function clickBody(e) {
|
|
342
|
+
var targetCalendar = calendarRef.current.querySelector(".cw-range-picker-calendar-wrapper");
|
|
343
|
+
var targetInput = calendarRef.current.querySelector(".cw-range-picker-box-wrapper");
|
|
344
|
+
if (targetCalendar) {
|
|
345
|
+
if (!targetCalendar.contains(e.target)) {
|
|
346
|
+
setIsCalendar(false);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
if (targetInput) {
|
|
350
|
+
if (!targetInput.contains(e.target)) {
|
|
351
|
+
setIsFocus(false);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
};
|
|
355
|
+
// 恢复默认配置
|
|
356
|
+
var onRecover = function onRecover() {
|
|
357
|
+
var values = dateValue.value,
|
|
358
|
+
key = dateValue.key;
|
|
359
|
+
var returnValue = _objectSpread(_objectSpread({}, dateValue), {}, {
|
|
360
|
+
value: funcValueChangeArrayValue(values)
|
|
361
|
+
});
|
|
362
|
+
returnValue = getCorrectValue(returnValue, key);
|
|
363
|
+
_onChange(returnValue);
|
|
364
|
+
if (!value) {
|
|
365
|
+
setRecordDateValue(returnValue);
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
// 输入框前缀图标,
|
|
369
|
+
var inputPrefix = /*#__PURE__*/React.createElement("div", {
|
|
370
|
+
className: classnames("cw-range-picker-prefix-wrapper"),
|
|
371
|
+
onClick: function onClick() {
|
|
372
|
+
setIsFocus(false);
|
|
373
|
+
}
|
|
374
|
+
}, inputPrefixIcon ? inputPrefixIcon : !isHasDate ? /*#__PURE__*/React.createElement(LiveSvg, null) : /*#__PURE__*/React.createElement(CalendarSvg, {
|
|
375
|
+
className: classnames("cw-range-picker-prefix-icon")
|
|
376
|
+
}));
|
|
377
|
+
var timeDomain = recordDateValue.timeDomain,
|
|
378
|
+
number = recordDateValue.number,
|
|
379
|
+
unit = recordDateValue.unit,
|
|
380
|
+
isRecently = recordDateValue.isRecently,
|
|
381
|
+
values = recordDateValue.value,
|
|
382
|
+
rest = _objectWithoutProperties(recordDateValue, _excluded2);
|
|
383
|
+
var _values = dateValue.value,
|
|
384
|
+
_timeDomain = dateValue.timeDomain,
|
|
385
|
+
_number = dateValue.number,
|
|
386
|
+
_unit = dateValue.unit,
|
|
387
|
+
_isRecently = dateValue.isRecently,
|
|
388
|
+
dateValueRest = _objectWithoutProperties(dateValue, _excluded3);
|
|
389
|
+
// 输入框尾缀图标
|
|
390
|
+
var inputSuffix = isHasDate && /*#__PURE__*/React.createElement("div", {
|
|
391
|
+
className: classnames("cw-range-picker-suffix-wrapper"),
|
|
392
|
+
onClick: function onClick(e) {
|
|
393
|
+
e.stopPropagation();
|
|
394
|
+
}
|
|
395
|
+
}, isFocus && showTipIcon ? /*#__PURE__*/React.createElement(_Tooltip, extraTipOption, /*#__PURE__*/React.createElement(QuestionCircleOutlined, {
|
|
396
|
+
className: classnames("cw-range-picker-suffix-tips")
|
|
397
|
+
})) : !isFocus && !_.isEqual(dateValueRest, rest) ? /*#__PURE__*/React.createElement(_Tooltip, {
|
|
398
|
+
title: intl.get("3395a172-cc4a-4c02-93e6-a1efbeb30a2c").d("恢复默认值")
|
|
399
|
+
}, /*#__PURE__*/React.createElement(RecoverSvg, {
|
|
400
|
+
onClick: onRecover,
|
|
401
|
+
className: classnames("cw-range-picker-suffix-recover")
|
|
402
|
+
})) : null);
|
|
403
|
+
|
|
404
|
+
// 输入框获取焦点
|
|
405
|
+
var onInputFocus = function onInputFocus(e) {
|
|
406
|
+
e.persist();
|
|
407
|
+
setIsFocus(true);
|
|
408
|
+
setTimeout(function () {
|
|
409
|
+
// 全选文本
|
|
410
|
+
e.target.select();
|
|
411
|
+
}, 100);
|
|
412
|
+
};
|
|
413
|
+
// 输入框按下Enter
|
|
414
|
+
var onPressEnter = function onPressEnter(e) {
|
|
415
|
+
onInputBlur();
|
|
416
|
+
};
|
|
417
|
+
// 外部获取ref停止自动刷新
|
|
418
|
+
var onStop = function onStop() {
|
|
419
|
+
if (enableAutoRefresh) {
|
|
420
|
+
var _refreshRef$current2, _refreshRef$current3;
|
|
421
|
+
((_refreshRef$current2 = refreshRef.current) === null || _refreshRef$current2 === void 0 ? void 0 : _refreshRef$current2.onAutoRefresh) && ((_refreshRef$current3 = refreshRef.current) === null || _refreshRef$current3 === void 0 ? void 0 : _refreshRef$current3.onAutoRefresh());
|
|
422
|
+
}
|
|
423
|
+
};
|
|
424
|
+
var onClickAutoRefresh = function onClickAutoRefresh() {
|
|
425
|
+
var _refreshRef$current4, _refreshRef$current5;
|
|
426
|
+
((_refreshRef$current4 = refreshRef.current) === null || _refreshRef$current4 === void 0 ? void 0 : _refreshRef$current4.onAutoRefresh) && ((_refreshRef$current5 = refreshRef.current) === null || _refreshRef$current5 === void 0 ? void 0 : _refreshRef$current5.onAutoRefresh());
|
|
427
|
+
};
|
|
428
|
+
// 输入框失去焦点
|
|
429
|
+
var onInputBlur = function onInputBlur(e) {
|
|
430
|
+
if (!isInputRef.current) return;
|
|
431
|
+
var _getUnit = getUnit(inputValue),
|
|
432
|
+
isRule = _getUnit.isRule,
|
|
433
|
+
captureUnit = _getUnit.captureUnit;
|
|
434
|
+
var values = getChangeUnitDate(captureUnit[0], captureUnit[1]);
|
|
435
|
+
if (isRule) {
|
|
436
|
+
var returnValue = getCorrectValue({
|
|
437
|
+
value: values
|
|
438
|
+
}, inputValue);
|
|
439
|
+
var isInvalidDate_ = isInvalidDate(returnValue.value);
|
|
440
|
+
if (!isInvalidDate_) {
|
|
441
|
+
var passValue = returnValue.value;
|
|
442
|
+
if (isExceedMaxTimeSpan(passValue, timeSpanBoundary)) {
|
|
443
|
+
_message.error(intl.get("e8a046c4-4611-47b9-bef0-cb46de7dd733").d("超过了限制的最大时间跨度,请重新输入"));
|
|
444
|
+
return;
|
|
445
|
+
}
|
|
446
|
+
_onChange(returnValue);
|
|
447
|
+
setIsFocus(false);
|
|
448
|
+
var _getHistoryInfo = getHistoryInfo(returnValue, historyList, {
|
|
449
|
+
intl: intl,
|
|
450
|
+
locale: locale
|
|
451
|
+
}, format, timeSpanBoundary),
|
|
452
|
+
_getHistoryInfo2 = _slicedToArray(_getHistoryInfo, 2),
|
|
453
|
+
isRepeat = _getHistoryInfo2[0],
|
|
454
|
+
historyValue = _getHistoryInfo2[1];
|
|
455
|
+
if (!isRepeat) {
|
|
456
|
+
setHistoryList(function (pre) {
|
|
457
|
+
return [historyValue].concat(_toConsumableArray(pre));
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
if (!value) {
|
|
461
|
+
setRecordDateValue(returnValue);
|
|
462
|
+
}
|
|
463
|
+
} else {
|
|
464
|
+
_message.error(intl.get("e2008629-6fc2-4222-b28c-ada43aa79a74").d("不符合输入格式,请重新输入"));
|
|
465
|
+
}
|
|
466
|
+
} else {
|
|
467
|
+
var finalDateOption = getFinalDateOption(inputValue);
|
|
468
|
+
var _dateValue2 = finalDateOption.dateValue;
|
|
469
|
+
var dateCount = getTruthDateCount(_dateValue2);
|
|
470
|
+
if (dateCount === 2) {
|
|
471
|
+
var _returnValue = getCorrectValue({
|
|
472
|
+
value: _dateValue2
|
|
473
|
+
});
|
|
474
|
+
var _passValue = _returnValue.value;
|
|
475
|
+
if (isExceedMaxTimeSpan(_passValue, timeSpanBoundary)) {
|
|
476
|
+
_message.error(intl.get("e8a046c4-4611-47b9-bef0-cb46de7dd733").d("超过了限制的最大时间跨度,请重新输入"));
|
|
477
|
+
return;
|
|
478
|
+
}
|
|
479
|
+
_onChange(_returnValue);
|
|
480
|
+
setIsFocus(false);
|
|
481
|
+
var _getHistoryInfo3 = getHistoryInfo(_returnValue, historyList, {
|
|
482
|
+
intl: intl,
|
|
483
|
+
locale: locale
|
|
484
|
+
}, format, timeSpanBoundary),
|
|
485
|
+
_getHistoryInfo4 = _slicedToArray(_getHistoryInfo3, 2),
|
|
486
|
+
_isRepeat = _getHistoryInfo4[0],
|
|
487
|
+
_historyValue = _getHistoryInfo4[1];
|
|
488
|
+
if (!_isRepeat) {
|
|
489
|
+
setHistoryList(function (pre) {
|
|
490
|
+
return [_historyValue].concat(_toConsumableArray(pre));
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
if (!value) {
|
|
494
|
+
setRecordDateValue(_returnValue);
|
|
495
|
+
}
|
|
496
|
+
} else {
|
|
497
|
+
_message.error(formatMessage(intl.get("e2008629-6fc2-4222-b28c-ada43aa79a74").d("不符合输入格式,请重新输入")));
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
isInputRef.current = false;
|
|
501
|
+
};
|
|
502
|
+
var commonProps = {
|
|
503
|
+
onChange: _onChange,
|
|
504
|
+
recordDateValue: recordDateValue,
|
|
505
|
+
setRecordDateValue: setRecordDateValue,
|
|
506
|
+
value: value,
|
|
507
|
+
isAutoRefresh: isAutoRefresh,
|
|
508
|
+
setIsAutoRefresh: setIsAutoRefresh,
|
|
509
|
+
refreshOption: refreshOption,
|
|
510
|
+
enableAutoRefresh: enableAutoRefresh,
|
|
511
|
+
timeSpanOption: timeSpanOption
|
|
512
|
+
};
|
|
513
|
+
var dropdownMenuProps = _objectSpread(_objectSpread({}, commonProps), {}, {
|
|
514
|
+
dataSource: dataSource,
|
|
515
|
+
regroupDataSource: regroupDataSource,
|
|
516
|
+
setIsCalendar: setIsCalendar,
|
|
517
|
+
moreItemDropdownPosition: moreItemDropdownPosition,
|
|
518
|
+
menuOption: menuOption,
|
|
519
|
+
setIsFocus: setIsFocus,
|
|
520
|
+
historyList: historyList,
|
|
521
|
+
setHistoryList: setHistoryList,
|
|
522
|
+
format: format
|
|
523
|
+
});
|
|
524
|
+
var timeSpanProps = _objectSpread(_objectSpread({}, commonProps), {}, {
|
|
525
|
+
dataSource: dataSource,
|
|
526
|
+
isHasDate: isHasDate,
|
|
527
|
+
onRecover: onRecover,
|
|
528
|
+
isRightDisabled: isRightDisabled,
|
|
529
|
+
isDisabledEnlargeBtn: isDisabledEnlargeBtn
|
|
530
|
+
});
|
|
531
|
+
var refreshProps = _objectSpread(_objectSpread({}, commonProps), {}, {
|
|
532
|
+
isHasDate: isHasDate,
|
|
533
|
+
isClickAutoRefresh: isClickAutoRefresh
|
|
534
|
+
});
|
|
535
|
+
return wrapCSSVar( /*#__PURE__*/React.createElement("div", {
|
|
536
|
+
className: classnames(hashId, cssVarCls, "cw-range-picker-wrapper", classNameWrapper),
|
|
537
|
+
ref: calendarRef
|
|
538
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
539
|
+
className: "cw-range-picker-box-wrapper"
|
|
540
|
+
}, isCalendar && showCalendar ? /*#__PURE__*/React.createElement(RangePicker
|
|
541
|
+
// open={isCalendar}
|
|
542
|
+
, {
|
|
543
|
+
className: classnames("cw-range-picker-calendar-wrapper"),
|
|
544
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
545
|
+
return getPopupContainerCalendar ? getPopupContainerCalendar(triggerNode) : triggerNode;
|
|
546
|
+
},
|
|
547
|
+
dropdownClassName: classnames(dropdownCalendarClassName),
|
|
548
|
+
allowClear: false,
|
|
549
|
+
onChange: function onChange(_value, mode) {
|
|
550
|
+
setIsCalendar(false);
|
|
551
|
+
setIsFocus(false);
|
|
552
|
+
if (_value) {
|
|
553
|
+
var _values2 = getCorrectValue({
|
|
554
|
+
value: _value
|
|
555
|
+
});
|
|
556
|
+
if (isAfterDate(_value[1], moment())) {
|
|
557
|
+
_values2 = _objectSpread(_objectSpread({}, _values2), {}, {
|
|
558
|
+
value: [_value[0], moment()]
|
|
559
|
+
});
|
|
560
|
+
}
|
|
561
|
+
var _values3 = _values2,
|
|
562
|
+
resValue = _values3.value;
|
|
563
|
+
if (isSameDate(resValue[0], resValue[1], "second") || isAfterDate(resValue[0], resValue[1])) {
|
|
564
|
+
_message.error(intl.get("92eb0ee0-1f72-4f49-bfad-ff7f0d1bd21d").d("选择的时间二者相同或者某一时间超过当前时间,请重新选择"));
|
|
565
|
+
return;
|
|
566
|
+
}
|
|
567
|
+
if (isExceedMaxTimeSpan(resValue, timeSpanBoundary)) {
|
|
568
|
+
_message.error(intl.get("e8a046c4-4611-47b9-bef0-cb46de7dd733").d("超过了限制的最大时间跨度,请重新输入"));
|
|
569
|
+
return;
|
|
570
|
+
}
|
|
571
|
+
_onChange(_values2);
|
|
572
|
+
var _getHistoryInfo5 = getHistoryInfo(_values2, historyList, {
|
|
573
|
+
intl: intl,
|
|
574
|
+
locale: locale
|
|
575
|
+
}, format, timeSpanBoundary),
|
|
576
|
+
_getHistoryInfo6 = _slicedToArray(_getHistoryInfo5, 2),
|
|
577
|
+
isRepeat = _getHistoryInfo6[0],
|
|
578
|
+
historyValue = _getHistoryInfo6[1];
|
|
579
|
+
if (!isRepeat) {
|
|
580
|
+
setHistoryList(function (pre) {
|
|
581
|
+
return [historyValue].concat(_toConsumableArray(pre));
|
|
582
|
+
});
|
|
583
|
+
}
|
|
584
|
+
if (!value) {
|
|
585
|
+
setRecordDateValue(_values2);
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
disabledDate: disabledDate ? disabledDate : function (current) {
|
|
590
|
+
return current > moment().endOf("day");
|
|
591
|
+
},
|
|
592
|
+
disabledTime: disabledTime ? disabledTime : function (date, position) {
|
|
593
|
+
if (date) {
|
|
594
|
+
var disabledTimeFunc = function disabledTimeFunc(date) {
|
|
595
|
+
var currentHours = moment().hours();
|
|
596
|
+
var currentMinutes = moment().minutes();
|
|
597
|
+
var currentSeconds = moment().seconds();
|
|
598
|
+
if (moment(date).date() === moment().date()) {
|
|
599
|
+
var isSameHour = moment(date).isSame(moment(), "hour"); // 是否是同一小时
|
|
600
|
+
var isSameMin = moment(date).isSame(moment(), "minute"); // 是否是同一分钟
|
|
601
|
+
// 如果是同一天
|
|
602
|
+
return {
|
|
603
|
+
disabledHours: function disabledHours() {
|
|
604
|
+
return range(currentHours + 1, 23);
|
|
605
|
+
},
|
|
606
|
+
disabledMinutes: isSameHour ? function () {
|
|
607
|
+
return range(currentMinutes + 1, 59);
|
|
608
|
+
} : function () {
|
|
609
|
+
return [];
|
|
610
|
+
},
|
|
611
|
+
disabledSeconds: isSameHour && isSameMin ? function () {
|
|
612
|
+
return range(currentSeconds + 1, 59);
|
|
613
|
+
} : function () {
|
|
614
|
+
return [];
|
|
615
|
+
}
|
|
616
|
+
};
|
|
617
|
+
}
|
|
618
|
+
};
|
|
619
|
+
return disabledTimeFunc(date);
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
showTime: {
|
|
623
|
+
hideDisabledOptions: true
|
|
624
|
+
}
|
|
625
|
+
}) : /*#__PURE__*/React.createElement(_Input, {
|
|
626
|
+
prefix: inputPrefix,
|
|
627
|
+
suffix: inputSuffix,
|
|
628
|
+
className: classnames("cw-range-picker-input-wrapper"),
|
|
629
|
+
onFocus: onInputFocus,
|
|
630
|
+
onBlur: onInputBlur,
|
|
631
|
+
value: inputValue,
|
|
632
|
+
onPressEnter: onPressEnter,
|
|
633
|
+
onChange: function onChange(e) {
|
|
634
|
+
if (!isHasDate) return;
|
|
635
|
+
isInputRef.current = true;
|
|
636
|
+
setInputValue(e.target.value);
|
|
637
|
+
},
|
|
638
|
+
ref: inputRef
|
|
639
|
+
}), /*#__PURE__*/React.createElement(_Dropdown, {
|
|
640
|
+
overlay: /*#__PURE__*/React.createElement(DropDownMenu, dropdownMenuProps),
|
|
641
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
642
|
+
return _getPopupContainer ? _getPopupContainer(triggerNode) : triggerNode;
|
|
643
|
+
},
|
|
644
|
+
open: "open" in props ? open && !isCalendar : isFocus && !isCalendar,
|
|
645
|
+
overlayClassName: classnames("cw-range-picker-dropdown", dropdownClassName)
|
|
646
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
647
|
+
className: "cw-range-picker-position-dom",
|
|
648
|
+
style: {
|
|
649
|
+
position: "relative"
|
|
650
|
+
}
|
|
651
|
+
}))), /*#__PURE__*/React.createElement(TimeSpan, timeSpanProps), /*#__PURE__*/React.createElement(Refresh, _extends({}, refreshProps, {
|
|
652
|
+
ref: refreshRef
|
|
653
|
+
}))));
|
|
654
|
+
});
|
|
655
|
+
CWRangePicker.defaultProps = {
|
|
656
|
+
moreItemDropdownPosition: "left",
|
|
657
|
+
format: "YYYY/MM/DD HH:mm:ss",
|
|
658
|
+
rangePickerFormat: "YYYY/MM/DD"
|
|
659
|
+
};
|
|
660
|
+
CWRangePicker.propTypes = {
|
|
661
|
+
/**
|
|
662
|
+
* 默认value
|
|
663
|
+
*/
|
|
664
|
+
defaultValue: PropTypes.object,
|
|
665
|
+
/**
|
|
666
|
+
* 受控value
|
|
667
|
+
*/
|
|
668
|
+
value: PropTypes.object,
|
|
669
|
+
/**
|
|
670
|
+
* 更多downdownpostion
|
|
671
|
+
*/
|
|
672
|
+
moreItemDropdownPosition: PropTypes.oneOf(["right", "left"]),
|
|
673
|
+
/**
|
|
674
|
+
* 时间数据源
|
|
675
|
+
*/
|
|
676
|
+
dataSource: PropTypes.array,
|
|
677
|
+
/**
|
|
678
|
+
* 时间变化的回调onChange({value,isRecently?timeDomain?number?unit?})
|
|
679
|
+
*/
|
|
680
|
+
onChange: PropTypes.func,
|
|
681
|
+
/**
|
|
682
|
+
* 初始时间数据进入时间返回的回调(*主要针对于最近时间)
|
|
683
|
+
*/
|
|
684
|
+
onInitChange: PropTypes.func,
|
|
685
|
+
/**
|
|
686
|
+
* 提示信息TooltipOption
|
|
687
|
+
*/
|
|
688
|
+
tipTooltipOption: PropTypes.object,
|
|
689
|
+
/**
|
|
690
|
+
* 刷新按钮配置项,详情参考demo中案例注释
|
|
691
|
+
*/
|
|
692
|
+
refreshOption: PropTypes.object,
|
|
693
|
+
/**
|
|
694
|
+
* 时间选择器控件下拉菜单配置项,详情参考demo中案例注释
|
|
695
|
+
*/
|
|
696
|
+
menuOption: PropTypes.object,
|
|
697
|
+
/**
|
|
698
|
+
* 时间跨度按钮配置项,详情参考demo中案例注释
|
|
699
|
+
*/
|
|
700
|
+
timeSpanOption: PropTypes.object,
|
|
701
|
+
/**
|
|
702
|
+
* 时间选择器控件外层容器新增外层容器类名
|
|
703
|
+
*/
|
|
704
|
+
classNameWrapper: PropTypes.string,
|
|
705
|
+
/**
|
|
706
|
+
* 非最近日期format展示格式
|
|
707
|
+
*/
|
|
708
|
+
format: PropTypes.string,
|
|
709
|
+
/**
|
|
710
|
+
* 输入框中前缀显示的icon,若不添加按照默认的规则,key值不符合规则且没有value值时为亮色图标,否则为暗色
|
|
711
|
+
*/
|
|
712
|
+
inputPrefixIcon: PropTypes.node,
|
|
713
|
+
/**
|
|
714
|
+
* 输入框回显内容优先按照title回显
|
|
715
|
+
*/
|
|
716
|
+
forceRenderTitle: PropTypes.bool,
|
|
717
|
+
/**
|
|
718
|
+
* 是否展开下拉菜单
|
|
719
|
+
*/
|
|
720
|
+
open: PropTypes.bool,
|
|
721
|
+
/**
|
|
722
|
+
* 下拉菜单列表项的className属性
|
|
723
|
+
*/
|
|
724
|
+
dropdownClassName: PropTypes.string,
|
|
725
|
+
/**
|
|
726
|
+
* 菜单列表项的挂载点
|
|
727
|
+
*/
|
|
728
|
+
getPopupContainer: PropTypes.func,
|
|
729
|
+
/**
|
|
730
|
+
* 菜单日历模式的挂载点,同getPopupContainer用法一致
|
|
731
|
+
*/
|
|
732
|
+
getPopupContainerCalendar: PropTypes.func,
|
|
733
|
+
/**
|
|
734
|
+
* 下拉菜单日历模式的className属性
|
|
735
|
+
*/
|
|
736
|
+
dropdownCalendarClassName: PropTypes.string,
|
|
737
|
+
/**
|
|
738
|
+
* 日历选择模式format展示
|
|
739
|
+
*/
|
|
740
|
+
rangePickerFormat: PropTypes.string
|
|
741
|
+
};
|
|
742
|
+
export default CWRangePicker;
|