bitz-react-admin-ui 2.7.4 → 2.7.5
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/dist/node_modules/@ant-design/colors/es/generate.mjs +93 -0
- package/dist/node_modules/@ant-design/colors/es/presets.mjs +72 -0
- package/dist/node_modules/@ant-design/cssinjs/es/Cache.mjs +40 -0
- package/dist/node_modules/@ant-design/cssinjs/es/Keyframes.mjs +18 -0
- package/dist/node_modules/@ant-design/cssinjs/es/StyleContext.mjs +38 -0
- package/dist/node_modules/@ant-design/cssinjs/es/extractStyle.mjs +9 -0
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCSSVarRegister.mjs +51 -0
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.mjs +92 -0
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.mjs +15 -0
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.mjs +27 -0
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useGlobalCache.mjs +47 -0
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useHMR.mjs +22 -0
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.mjs +210 -0
- package/dist/node_modules/@ant-design/cssinjs/es/linters/contentQuotesLinter.mjs +10 -0
- package/dist/node_modules/@ant-design/cssinjs/es/linters/hashedAnimationLinter.mjs +7 -0
- package/dist/node_modules/@ant-design/cssinjs/es/linters/utils.mjs +8 -0
- package/dist/node_modules/@ant-design/cssinjs/es/theme/Theme.mjs +20 -0
- package/dist/node_modules/@ant-design/cssinjs/es/theme/ThemeCache.mjs +104 -0
- package/dist/node_modules/@ant-design/cssinjs/es/theme/createTheme.mjs +10 -0
- package/dist/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs +4 -0
- package/dist/node_modules/@ant-design/cssinjs/es/util/cacheMapUtil.mjs +42 -0
- package/dist/node_modules/@ant-design/cssinjs/es/util/css-variables.mjs +28 -0
- package/dist/node_modules/@ant-design/cssinjs/es/util/index.mjs +52 -0
- package/dist/node_modules/@ant-design/cssinjs/node_modules/@emotion/hash/dist/hash.browser.esm.mjs +22 -0
- package/dist/node_modules/@ant-design/cssinjs/node_modules/stylis/src/Enum.mjs +9 -0
- package/dist/node_modules/@ant-design/cssinjs/node_modules/stylis/src/Parser.mjs +114 -0
- package/dist/node_modules/@ant-design/cssinjs/node_modules/stylis/src/Serializer.mjs +29 -0
- package/dist/node_modules/@ant-design/cssinjs/node_modules/stylis/src/Tokenizer.mjs +127 -0
- package/dist/node_modules/@ant-design/cssinjs/node_modules/stylis/src/Utility.mjs +37 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/_util/hooks/useUniqueMemo.mjs +63 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/hooks/useCSP.mjs +6 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/CSSCalculator.mjs +59 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/NumCalculator.mjs +44 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/calculator.mjs +8 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/index.mjs +11 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/genStyleUtils.mjs +156 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/getCompVarPrefix.mjs +6 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/getComponentToken.mjs +26 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/getDefaultComponentToken.mjs +11 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/maxmin.mjs +36 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/statistic.mjs +55 -0
- package/dist/node_modules/@ant-design/fast-color/es/FastColor.mjs +327 -0
- package/dist/node_modules/@ant-design/icons/es/components/AntdIcon.mjs +42 -0
- package/dist/node_modules/@ant-design/icons/es/components/Context.mjs +6 -0
- package/dist/node_modules/@ant-design/icons/es/components/IconBase.mjs +46 -0
- package/dist/node_modules/@ant-design/icons/es/components/twoTonePrimaryColor.mjs +18 -0
- package/dist/node_modules/@ant-design/icons/es/icons/AlignCenterOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/AppstoreOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/ArrowLeftOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/ArrowRightOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CaretDownFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CaretDownOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CheckCircleFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CheckCircleOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CheckOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/ClockCircleOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CloseCircleFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CopyOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/DeleteOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/DownOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/DownloadOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/EditOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/ExclamationCircleFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/ExclamationCircleOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/EyeOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/FileTwoTone.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/FullscreenExitOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/FullscreenOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/InfoCircleFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/LeftOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/LoadingOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/MenuFoldOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/MenuOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/MenuUnfoldOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/MinusCircleOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/PaperClipOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/PauseCircleFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/PictureTwoTone.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/PlayCircleFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/PlusCircleFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/PlusOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/RedoOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/ReloadOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/RightOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/SearchOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/SettingFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/SettingOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/SwapRightOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/UploadOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/utils.mjs +127 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/AlignCenterOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/AppstoreOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ArrowLeftOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ArrowRightOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CaretDownFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CaretDownOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckCircleFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckCircleOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ClockCircleOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CloseCircleFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CloseOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CopyOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/DeleteOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/DownOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/DownloadOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/EditOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ExclamationCircleFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ExclamationCircleOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/EyeOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/FileTwoTone.mjs +7 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/FullscreenExitOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/FullscreenOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/InfoCircleFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/InfoCircleOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/LeftOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/LoadingOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/MenuFoldOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/MenuOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/MenuUnfoldOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/MinusCircleOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PaperClipOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PauseCircleFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PictureTwoTone.mjs +7 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PlayCircleFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PlusCircleFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PlusOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/RedoOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ReloadOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/RightOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/SettingFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/SettingOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/SwapRightOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/UploadOutlined.mjs +5 -0
- package/dist/node_modules/@babel/runtime/helpers/defineProperty.mjs +18 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.mjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.mjs +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.mjs +26 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.mjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/construct.mjs +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createClass.mjs +15 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createSuper.mjs +18 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.mjs +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/inherits.mjs +17 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/isNativeFunction.mjs +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.mjs +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.mjs +29 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.mjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.mjs +25 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +15 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +15 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.mjs +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.mjs +315 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.mjs +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.mjs +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toArray.mjs +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +16 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.mjs +11 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.mjs +32 -0
- package/dist/node_modules/@babel/runtime/helpers/interopRequireDefault.mjs +13 -0
- package/dist/node_modules/@babel/runtime/helpers/objectSpread2.mjs +31 -0
- package/dist/node_modules/@babel/runtime/helpers/toPrimitive.mjs +22 -0
- package/dist/node_modules/@babel/runtime/helpers/toPropertyKey.mjs +15 -0
- package/dist/node_modules/@babel/runtime/helpers/typeof.mjs +16 -0
- package/dist/node_modules/@better-scroll/core/dist/core.esm.mjs +1377 -0
- package/dist/node_modules/@better-scroll/wheel/dist/wheel.esm.mjs +253 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/conversion.mjs +115 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/css-color-names.mjs +153 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/format-input.mjs +68 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/index.mjs +183 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/util.mjs +32 -0
- package/dist/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.mjs +54 -0
- package/dist/node_modules/@dnd-kit/core/dist/core.esm.mjs +2524 -0
- package/dist/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.mjs +27 -0
- package/dist/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs +367 -0
- package/dist/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs +235 -0
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.mjs +251 -0
- package/dist/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.mjs +86 -0
- package/dist/node_modules/@emotion/css/dist/emotion-css.esm.mjs +7 -0
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.mjs +22 -0
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.mjs +9 -0
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.mjs +134 -0
- package/dist/node_modules/@emotion/serialize/node_modules/@emotion/unitless/dist/emotion-unitless.esm.mjs +53 -0
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.mjs +45 -0
- package/dist/node_modules/@emotion/unitless/dist/unitless.browser.esm.mjs +51 -0
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.mjs +34 -0
- package/dist/node_modules/@fullcalendar/core/index.mjs +1365 -0
- package/dist/node_modules/@fullcalendar/core/internal-common.mjs +4823 -0
- package/dist/node_modules/@fullcalendar/core/locales/zh-cn.mjs +28 -0
- package/dist/node_modules/@fullcalendar/daygrid/index.mjs +32 -0
- package/dist/node_modules/@fullcalendar/daygrid/internal.mjs +746 -0
- package/dist/node_modules/@fullcalendar/interaction/index.mjs +842 -0
- package/dist/node_modules/@fullcalendar/list/index.mjs +54 -0
- package/dist/node_modules/@fullcalendar/list/internal.mjs +207 -0
- package/dist/node_modules/@fullcalendar/react/dist/index.mjs +71 -0
- package/dist/node_modules/@fullcalendar/timegrid/index.mjs +31 -0
- package/dist/node_modules/@fullcalendar/timegrid/internal.mjs +900 -0
- package/dist/node_modules/@rc-component/async-validator/es/index.mjs +159 -0
- package/dist/node_modules/@rc-component/async-validator/es/messages.mjs +58 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/enum.mjs +7 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/index.mjs +17 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/pattern.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/range.mjs +10 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/required.mjs +7 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/type.mjs +63 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/url.mjs +37 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/whitespace.mjs +7 -0
- package/dist/node_modules/@rc-component/async-validator/es/util.mjs +167 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/any.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/array.mjs +13 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/boolean.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/date.mjs +17 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/enum.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/float.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/index.mjs +37 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/integer.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/method.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/number.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/object.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/pattern.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/regexp.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/required.mjs +9 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/string.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/type.mjs +14 -0
- package/dist/node_modules/@rc-component/color-picker/es/ColorPicker.mjs +103 -0
- package/dist/node_modules/@rc-component/color-picker/es/color.mjs +47 -0
- package/dist/node_modules/@rc-component/color-picker/es/components/ColorBlock.mjs +18 -0
- package/dist/node_modules/@rc-component/color-picker/es/components/Gradient.mjs +22 -0
- package/dist/node_modules/@rc-component/color-picker/es/components/Handler.mjs +15 -0
- package/dist/node_modules/@rc-component/color-picker/es/components/Palette.mjs +14 -0
- package/dist/node_modules/@rc-component/color-picker/es/components/Picker.mjs +58 -0
- package/dist/node_modules/@rc-component/color-picker/es/components/Slider.mjs +76 -0
- package/dist/node_modules/@rc-component/color-picker/es/components/Transform.mjs +17 -0
- package/dist/node_modules/@rc-component/color-picker/es/hooks/useColorDrag.mjs +41 -0
- package/dist/node_modules/@rc-component/color-picker/es/hooks/useColorState.mjs +17 -0
- package/dist/node_modules/@rc-component/color-picker/es/hooks/useComponent.mjs +11 -0
- package/dist/node_modules/@rc-component/color-picker/es/util.mjs +50 -0
- package/dist/node_modules/@rc-component/portal/es/Context.mjs +5 -0
- package/dist/node_modules/@rc-component/portal/es/Portal.mjs +45 -0
- package/dist/node_modules/@rc-component/portal/es/index.mjs +4 -0
- package/dist/node_modules/@rc-component/portal/es/mock.mjs +8 -0
- package/dist/node_modules/@rc-component/portal/es/useDom.mjs +37 -0
- package/dist/node_modules/@rc-component/portal/es/useScrollLocker.mjs +29 -0
- package/dist/node_modules/@rc-component/portal/es/util.mjs +6 -0
- package/dist/node_modules/@rc-component/trigger/es/Popup/Arrow.mjs +22 -0
- package/dist/node_modules/@rc-component/trigger/es/Popup/Mask.mjs +24 -0
- package/dist/node_modules/@rc-component/trigger/es/Popup/PopupContent.mjs +11 -0
- package/dist/node_modules/@rc-component/trigger/es/Popup/index.mjs +92 -0
- package/dist/node_modules/@rc-component/trigger/es/TriggerWrapper.mjs +14 -0
- package/dist/node_modules/@rc-component/trigger/es/context.mjs +5 -0
- package/dist/node_modules/@rc-component/trigger/es/hooks/useAction.mjs +13 -0
- package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.mjs +187 -0
- package/dist/node_modules/@rc-component/trigger/es/hooks/useWatch.mjs +27 -0
- package/dist/node_modules/@rc-component/trigger/es/hooks/useWinClick.mjs +27 -0
- package/dist/node_modules/@rc-component/trigger/es/index.mjs +213 -0
- package/dist/node_modules/@rc-component/trigger/es/util.mjs +61 -0
- package/dist/node_modules/ahooks/es/createUpdateEffect/index.mjs +20 -0
- package/dist/node_modules/ahooks/es/useClickAway/index.mjs +27 -0
- package/dist/node_modules/ahooks/es/useControllableValue/index.mjs +23 -0
- package/dist/node_modules/ahooks/es/useInterval/index.mjs +17 -0
- package/dist/node_modules/ahooks/es/useLatest/index.mjs +8 -0
- package/dist/node_modules/ahooks/es/useMemoizedFn/index.mjs +19 -0
- package/dist/node_modules/ahooks/es/useRafState/index.mjs +16 -0
- package/dist/node_modules/ahooks/es/useSetState/index.mjs +16 -0
- package/dist/node_modules/ahooks/es/useSize/index.mjs +34 -0
- package/dist/node_modules/ahooks/es/useThrottleFn/index.mjs +28 -0
- package/dist/node_modules/ahooks/es/useUnmount/index.mjs +17 -0
- package/dist/node_modules/ahooks/es/useUpdate/index.mjs +12 -0
- package/dist/node_modules/ahooks/es/useUpdateEffect/index.mjs +6 -0
- package/dist/node_modules/ahooks/es/useUpdateLayoutEffect/index.mjs +6 -0
- package/dist/node_modules/ahooks/es/utils/createEffectWithTarget.mjs +27 -0
- package/dist/node_modules/ahooks/es/utils/depsAreSame.mjs +11 -0
- package/dist/node_modules/ahooks/es/utils/domTarget.mjs +13 -0
- package/dist/node_modules/ahooks/es/utils/getDocumentOrShadow.mjs +18 -0
- package/dist/node_modules/ahooks/es/utils/index.mjs +9 -0
- package/dist/node_modules/ahooks/es/utils/isBrowser.mjs +5 -0
- package/dist/node_modules/ahooks/es/utils/isDev.mjs +5 -0
- package/dist/node_modules/ahooks/es/utils/useEffectWithTarget.mjs +7 -0
- package/dist/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.mjs +8 -0
- package/dist/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.mjs +7 -0
- package/dist/node_modules/antd/es/_util/ActionButton.mjs +70 -0
- package/dist/node_modules/antd/es/_util/ContextIsolator.mjs +20 -0
- package/dist/node_modules/antd/es/_util/PurePanel.mjs +16 -0
- package/dist/node_modules/antd/es/_util/colors.mjs +9 -0
- package/dist/node_modules/antd/es/_util/hooks/useClosable.mjs +66 -0
- package/dist/node_modules/antd/es/_util/hooks/useForceUpdate.mjs +8 -0
- package/dist/node_modules/antd/es/_util/hooks/usePatchElement.mjs +11 -0
- package/dist/node_modules/antd/es/_util/hooks/useZIndex.mjs +45 -0
- package/dist/node_modules/antd/es/_util/motion.mjs +34 -0
- package/dist/node_modules/antd/es/_util/placements.mjs +150 -0
- package/dist/node_modules/antd/es/_util/reactNode.mjs +13 -0
- package/dist/node_modules/antd/es/_util/styleChecker.mjs +5 -0
- package/dist/node_modules/antd/es/_util/toList.mjs +6 -0
- package/dist/node_modules/antd/es/_util/warning.mjs +38 -0
- package/dist/node_modules/antd/es/_util/wave/WaveEffect.mjs +96 -0
- package/dist/node_modules/antd/es/_util/wave/index.mjs +40 -0
- package/dist/node_modules/antd/es/_util/wave/interface.mjs +6 -0
- package/dist/node_modules/antd/es/_util/wave/style.mjs +47 -0
- package/dist/node_modules/antd/es/_util/wave/useWave.mjs +38 -0
- package/dist/node_modules/antd/es/_util/wave/util.mjs +16 -0
- package/dist/node_modules/antd/es/_util/zindexContext.mjs +7 -0
- package/dist/node_modules/antd/es/button/IconWrapper.mjs +18 -0
- package/dist/node_modules/antd/es/button/LoadingIcon.mjs +70 -0
- package/dist/node_modules/antd/es/button/button-group.mjs +65 -0
- package/dist/node_modules/antd/es/button/button.mjs +177 -0
- package/dist/node_modules/antd/es/button/buttonHelpers.mjs +44 -0
- package/dist/node_modules/antd/es/button/index.mjs +4 -0
- package/dist/node_modules/antd/es/button/style/compactCmp.mjs +75 -0
- package/dist/node_modules/antd/es/button/style/group.mjs +70 -0
- package/dist/node_modules/antd/es/button/style/index.mjs +373 -0
- package/dist/node_modules/antd/es/button/style/token.mjs +81 -0
- package/dist/node_modules/antd/es/calendar/locale/en_US.mjs +4 -0
- package/dist/node_modules/antd/es/color-picker/color.mjs +96 -0
- package/dist/node_modules/antd/es/color-picker/components/ColorPresets.mjs +17 -0
- package/dist/node_modules/antd/es/config-provider/DisabledContext.mjs +15 -0
- package/dist/node_modules/antd/es/config-provider/MotionWrapper.mjs +32 -0
- package/dist/node_modules/antd/es/config-provider/PropWarning.mjs +13 -0
- package/dist/node_modules/antd/es/config-provider/SizeContext.mjs +15 -0
- package/dist/node_modules/antd/es/config-provider/context.mjs +11 -0
- package/dist/node_modules/antd/es/config-provider/cssVariables.mjs +39 -0
- package/dist/node_modules/antd/es/config-provider/hooks/useCSSVarCls.mjs +23 -0
- package/dist/node_modules/antd/es/config-provider/hooks/useConfig.mjs +13 -0
- package/dist/node_modules/antd/es/config-provider/hooks/useSize.mjs +9 -0
- package/dist/node_modules/antd/es/config-provider/hooks/useTheme.mjs +41 -0
- package/dist/node_modules/antd/es/config-provider/hooks/useThemeKey.mjs +7 -0
- package/dist/node_modules/antd/es/config-provider/index.mjs +327 -0
- package/dist/node_modules/antd/es/date-picker/locale/en_US.mjs +20 -0
- package/dist/node_modules/antd/es/form/context.mjs +23 -0
- package/dist/node_modules/antd/es/form/validateMessagesContext.mjs +5 -0
- package/dist/node_modules/antd/es/locale/context.mjs +5 -0
- package/dist/node_modules/antd/es/locale/en_US.mjs +146 -0
- package/dist/node_modules/antd/es/locale/index.mjs +28 -0
- package/dist/node_modules/antd/es/locale/useLocale.mjs +17 -0
- package/dist/node_modules/antd/es/modal/ConfirmDialog.mjs +175 -0
- package/dist/node_modules/antd/es/modal/Modal.mjs +137 -0
- package/dist/node_modules/antd/es/modal/PurePanel.mjs +60 -0
- package/dist/node_modules/antd/es/modal/components/ConfirmCancelBtn.mjs +29 -0
- package/dist/node_modules/antd/es/modal/components/ConfirmOkBtn.mjs +30 -0
- package/dist/node_modules/antd/es/modal/components/NormalCancelBtn.mjs +16 -0
- package/dist/node_modules/antd/es/modal/components/NormalOkBtn.mjs +20 -0
- package/dist/node_modules/antd/es/modal/confirm.mjs +122 -0
- package/dist/node_modules/antd/es/modal/context.mjs +8 -0
- package/dist/node_modules/antd/es/modal/destroyFns.mjs +4 -0
- package/dist/node_modules/antd/es/modal/index.mjs +37 -0
- package/dist/node_modules/antd/es/modal/locale.mjs +19 -0
- package/dist/node_modules/antd/es/modal/shared.mjs +51 -0
- package/dist/node_modules/antd/es/modal/style/confirm.mjs +113 -0
- package/dist/node_modules/antd/es/modal/style/index.mjs +292 -0
- package/dist/node_modules/antd/es/modal/useModal/HookModal.mjs +60 -0
- package/dist/node_modules/antd/es/modal/useModal/index.mjs +73 -0
- package/dist/node_modules/antd/es/progress/Circle.mjs +60 -0
- package/dist/node_modules/antd/es/progress/Line.mjs +109 -0
- package/dist/node_modules/antd/es/progress/Steps.mjs +38 -0
- package/dist/node_modules/antd/es/progress/index.mjs +4 -0
- package/dist/node_modules/antd/es/progress/progress.mjs +120 -0
- package/dist/node_modules/antd/es/progress/style/index.mjs +313 -0
- package/dist/node_modules/antd/es/progress/utils.mjs +51 -0
- package/dist/node_modules/antd/es/skeleton/Avatar.mjs +31 -0
- package/dist/node_modules/antd/es/skeleton/Button.mjs +31 -0
- package/dist/node_modules/antd/es/skeleton/Element.mjs +29 -0
- package/dist/node_modules/antd/es/skeleton/Image.mjs +34 -0
- package/dist/node_modules/antd/es/skeleton/Input.mjs +31 -0
- package/dist/node_modules/antd/es/skeleton/Node.mjs +28 -0
- package/dist/node_modules/antd/es/skeleton/Paragraph.mjs +35 -0
- package/dist/node_modules/antd/es/skeleton/Skeleton.mjs +108 -0
- package/dist/node_modules/antd/es/skeleton/Title.mjs +22 -0
- package/dist/node_modules/antd/es/skeleton/index.mjs +4 -0
- package/dist/node_modules/antd/es/skeleton/style/index.mjs +311 -0
- package/dist/node_modules/antd/es/slider/Context.mjs +5 -0
- package/dist/node_modules/antd/es/slider/SliderTooltip.mjs +30 -0
- package/dist/node_modules/antd/es/slider/index.mjs +153 -0
- package/dist/node_modules/antd/es/slider/style/index.mjs +325 -0
- package/dist/node_modules/antd/es/slider/useRafLock.mjs +15 -0
- package/dist/node_modules/antd/es/space/Compact.mjs +37 -0
- package/dist/node_modules/antd/es/style/compact-item-vertical.mjs +44 -0
- package/dist/node_modules/antd/es/style/compact-item.mjs +61 -0
- package/dist/node_modules/antd/es/style/index.mjs +125 -0
- package/dist/node_modules/antd/es/style/motion/collapse.mjs +20 -0
- package/dist/node_modules/antd/es/style/motion/fade.mjs +50 -0
- package/dist/node_modules/antd/es/style/motion/motion.mjs +35 -0
- package/dist/node_modules/antd/es/style/motion/zoom.mjs +195 -0
- package/dist/node_modules/antd/es/style/placementArrow.mjs +164 -0
- package/dist/node_modules/antd/es/style/roundedArrow.mjs +74 -0
- package/dist/node_modules/antd/es/table/ExpandIcon.mjs +29 -0
- package/dist/node_modules/antd/es/theme/context.mjs +25 -0
- package/dist/node_modules/antd/es/theme/getDesignToken.mjs +23 -0
- package/dist/node_modules/antd/es/theme/interface/presetColors.mjs +4 -0
- package/dist/node_modules/antd/es/theme/themes/compact/genCompactSizeMapToken.mjs +20 -0
- package/dist/node_modules/antd/es/theme/themes/compact/index.mjs +16 -0
- package/dist/node_modules/antd/es/theme/themes/dark/colorAlgorithm.mjs +6 -0
- package/dist/node_modules/antd/es/theme/themes/dark/colors.mjs +51 -0
- package/dist/node_modules/antd/es/theme/themes/dark/index.mjs +21 -0
- package/dist/node_modules/antd/es/theme/themes/default/colorAlgorithm.mjs +6 -0
- package/dist/node_modules/antd/es/theme/themes/default/colors.mjs +49 -0
- package/dist/node_modules/antd/es/theme/themes/default/index.mjs +23 -0
- package/dist/node_modules/antd/es/theme/themes/seed.mjs +69 -0
- package/dist/node_modules/antd/es/theme/themes/shared/genColorMapToken.mjs +78 -0
- package/dist/node_modules/antd/es/theme/themes/shared/genCommonMapToken.mjs +20 -0
- package/dist/node_modules/antd/es/theme/themes/shared/genControlHeight.mjs +13 -0
- package/dist/node_modules/antd/es/theme/themes/shared/genFontMapToken.mjs +29 -0
- package/dist/node_modules/antd/es/theme/themes/shared/genFontSizes.mjs +17 -0
- package/dist/node_modules/antd/es/theme/themes/shared/genRadius.mjs +13 -0
- package/dist/node_modules/antd/es/theme/themes/shared/genSizeMapToken.mjs +29 -0
- package/dist/node_modules/antd/es/theme/useToken.mjs +118 -0
- package/dist/node_modules/antd/es/theme/util/alias.mjs +162 -0
- package/dist/node_modules/antd/es/theme/util/genPresetColor.mjs +15 -0
- package/dist/node_modules/antd/es/theme/util/genStyleUtils.mjs +50 -0
- package/dist/node_modules/antd/es/theme/util/getAlphaColor.mjs +38 -0
- package/dist/node_modules/antd/es/theme/util/useResetIconStyle.mjs +36 -0
- package/dist/node_modules/antd/es/time-picker/locale/en_US.mjs +7 -0
- package/dist/node_modules/antd/es/tooltip/PurePanel.mjs +33 -0
- package/dist/node_modules/antd/es/tooltip/index.mjs +148 -0
- package/dist/node_modules/antd/es/tooltip/style/index.mjs +139 -0
- package/dist/node_modules/antd/es/tooltip/util.mjs +15 -0
- package/dist/node_modules/antd/es/typography/hooks/useCopyClick.mjs +64 -0
- package/dist/node_modules/antd/es/upload/Dragger.mjs +32 -0
- package/dist/node_modules/antd/es/upload/Upload.mjs +304 -0
- package/dist/node_modules/antd/es/upload/UploadList/ListItem.mjs +156 -0
- package/dist/node_modules/antd/es/upload/UploadList/index.mjs +167 -0
- package/dist/node_modules/antd/es/upload/index.mjs +9 -0
- package/dist/node_modules/antd/es/upload/style/dragger.mjs +84 -0
- package/dist/node_modules/antd/es/upload/style/index.mjs +65 -0
- package/dist/node_modules/antd/es/upload/style/list.mjs +115 -0
- package/dist/node_modules/antd/es/upload/style/motion.mjs +54 -0
- package/dist/node_modules/antd/es/upload/style/picture.mjs +240 -0
- package/dist/node_modules/antd/es/upload/style/rtl.mjs +13 -0
- package/dist/node_modules/antd/es/upload/utils.mjs +79 -0
- package/dist/node_modules/antd/es/version/index.mjs +4 -0
- package/dist/node_modules/antd/es/version/version.mjs +4 -0
- package/dist/node_modules/antd/es/watermark/context.mjs +25 -0
- package/dist/node_modules/antd/lib/calendar/locale/en_US.mjs +11 -0
- package/dist/node_modules/antd/lib/date-picker/locale/en_US.mjs +28 -0
- package/dist/node_modules/antd/lib/locale/en_US.mjs +157 -0
- package/dist/node_modules/antd/lib/time-picker/locale/en_US.mjs +10 -0
- package/dist/node_modules/antd/locale/en_US.mjs +8 -0
- package/dist/node_modules/antd-img-crop/dist/antd-img-crop.esm.mjs +137 -0
- package/dist/node_modules/better-scroll/dist/better-scroll.esm.mjs +3670 -0
- package/dist/node_modules/classnames/index.mjs +42 -0
- package/dist/node_modules/clsx/dist/clsx.mjs +23 -0
- package/dist/node_modules/copy-to-clipboard/index.mjs +46 -0
- package/dist/node_modules/dayjs/dayjs.min.mjs +297 -0
- package/dist/node_modules/dayjs/locale/zh-cn.mjs +19 -0
- package/dist/node_modules/dayjs/plugin/isBetween.mjs +19 -0
- package/dist/node_modules/dayjs/plugin/isSameOrAfter.mjs +18 -0
- package/dist/node_modules/dayjs/plugin/isSameOrBefore.mjs +18 -0
- package/dist/node_modules/dayjs/plugin/isToday.mjs +19 -0
- package/dist/node_modules/dayjs/plugin/isoWeek.mjs +34 -0
- package/dist/node_modules/dayjs/plugin/objectSupport.mjs +49 -0
- package/dist/node_modules/dayjs/plugin/relativeTime.mjs +49 -0
- package/dist/node_modules/dayjs/plugin/utc.mjs +87 -0
- package/dist/node_modules/dayjs/plugin/weekOfYear.mjs +31 -0
- package/dist/node_modules/immer/dist/immer.mjs +473 -0
- package/dist/node_modules/lodash/_Symbol.mjs +5 -0
- package/dist/node_modules/lodash/_baseGetTag.mjs +11 -0
- package/dist/node_modules/lodash/_baseTrim.mjs +9 -0
- package/dist/node_modules/lodash/_freeGlobal.mjs +5 -0
- package/dist/node_modules/lodash/_getRawTag.mjs +16 -0
- package/dist/node_modules/lodash/_objectToString.mjs +8 -0
- package/dist/node_modules/lodash/_root.mjs +5 -0
- package/dist/node_modules/lodash/_trimmedEndIndex.mjs +10 -0
- package/dist/node_modules/lodash/debounce.mjs +55 -0
- package/dist/node_modules/lodash/isObject.mjs +8 -0
- package/dist/node_modules/lodash/isObjectLike.mjs +7 -0
- package/dist/node_modules/lodash/isSymbol.mjs +10 -0
- package/dist/node_modules/lodash/now.mjs +7 -0
- package/dist/node_modules/lodash/throttle.mjs +19 -0
- package/dist/node_modules/lodash/toNumber.mjs +23 -0
- package/dist/node_modules/lodash-es/_DataView.mjs +7 -0
- package/dist/node_modules/lodash-es/_Hash.mjs +20 -0
- package/dist/node_modules/lodash-es/_ListCache.mjs +20 -0
- package/dist/node_modules/lodash-es/_Map.mjs +7 -0
- package/dist/node_modules/lodash-es/_MapCache.mjs +20 -0
- package/dist/node_modules/lodash-es/_Promise.mjs +7 -0
- package/dist/node_modules/lodash-es/_Set.mjs +7 -0
- package/dist/node_modules/lodash-es/_Stack.mjs +18 -0
- package/dist/node_modules/lodash-es/_Symbol.mjs +6 -0
- package/dist/node_modules/lodash-es/_Uint8Array.mjs +6 -0
- package/dist/node_modules/lodash-es/_WeakMap.mjs +7 -0
- package/dist/node_modules/lodash-es/_apply.mjs +16 -0
- package/dist/node_modules/lodash-es/_arrayEach.mjs +8 -0
- package/dist/node_modules/lodash-es/_arrayFilter.mjs +10 -0
- package/dist/node_modules/lodash-es/_arrayLikeKeys.mjs +20 -0
- package/dist/node_modules/lodash-es/_arrayMap.mjs +8 -0
- package/dist/node_modules/lodash-es/_arrayPush.mjs +8 -0
- package/dist/node_modules/lodash-es/_assignMergeValue.mjs +8 -0
- package/dist/node_modules/lodash-es/_assignValue.mjs +10 -0
- package/dist/node_modules/lodash-es/_assocIndexOf.mjs +10 -0
- package/dist/node_modules/lodash-es/_baseAssign.mjs +8 -0
- package/dist/node_modules/lodash-es/_baseAssignIn.mjs +8 -0
- package/dist/node_modules/lodash-es/_baseAssignValue.mjs +12 -0
- package/dist/node_modules/lodash-es/_baseAt.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseClone.mjs +65 -0
- package/dist/node_modules/lodash-es/_baseCreate.mjs +18 -0
- package/dist/node_modules/lodash-es/_baseFlatten.mjs +13 -0
- package/dist/node_modules/lodash-es/_baseFor.mjs +6 -0
- package/dist/node_modules/lodash-es/_baseGet.mjs +11 -0
- package/dist/node_modules/lodash-es/_baseGetAllKeys.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseGetTag.mjs +10 -0
- package/dist/node_modules/lodash-es/_baseIsArguments.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseIsMap.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseIsNative.mjs +16 -0
- package/dist/node_modules/lodash-es/_baseIsSet.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseIsTypedArray.mjs +12 -0
- package/dist/node_modules/lodash-es/_baseKeys.mjs +14 -0
- package/dist/node_modules/lodash-es/_baseKeysIn.mjs +15 -0
- package/dist/node_modules/lodash-es/_baseMerge.mjs +20 -0
- package/dist/node_modules/lodash-es/_baseMergeDeep.mjs +31 -0
- package/dist/node_modules/lodash-es/_baseRest.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseSetToString.mjs +15 -0
- package/dist/node_modules/lodash-es/_baseSlice.mjs +10 -0
- package/dist/node_modules/lodash-es/_baseTimes.mjs +8 -0
- package/dist/node_modules/lodash-es/_baseToString.mjs +18 -0
- package/dist/node_modules/lodash-es/_baseUnary.mjs +8 -0
- package/dist/node_modules/lodash-es/_baseUnset.mjs +10 -0
- package/dist/node_modules/lodash-es/_castPath.mjs +10 -0
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.mjs +8 -0
- package/dist/node_modules/lodash-es/_cloneBuffer.mjs +11 -0
- package/dist/node_modules/lodash-es/_cloneDataView.mjs +8 -0
- package/dist/node_modules/lodash-es/_cloneRegExp.mjs +8 -0
- package/dist/node_modules/lodash-es/_cloneSymbol.mjs +8 -0
- package/dist/node_modules/lodash-es/_cloneTypedArray.mjs +8 -0
- package/dist/node_modules/lodash-es/_copyArray.mjs +9 -0
- package/dist/node_modules/lodash-es/_copyObject.mjs +14 -0
- package/dist/node_modules/lodash-es/_copySymbols.mjs +8 -0
- package/dist/node_modules/lodash-es/_copySymbolsIn.mjs +8 -0
- package/dist/node_modules/lodash-es/_coreJsData.mjs +6 -0
- package/dist/node_modules/lodash-es/_createAssigner.mjs +15 -0
- package/dist/node_modules/lodash-es/_createBaseFor.mjs +13 -0
- package/dist/node_modules/lodash-es/_customOmitClone.mjs +7 -0
- package/dist/node_modules/lodash-es/_defineProperty.mjs +12 -0
- package/dist/node_modules/lodash-es/_flatRest.mjs +9 -0
- package/dist/node_modules/lodash-es/_freeGlobal.mjs +5 -0
- package/dist/node_modules/lodash-es/_getAllKeys.mjs +9 -0
- package/dist/node_modules/lodash-es/_getAllKeysIn.mjs +9 -0
- package/dist/node_modules/lodash-es/_getMapData.mjs +8 -0
- package/dist/node_modules/lodash-es/_getNative.mjs +9 -0
- package/dist/node_modules/lodash-es/_getPrototype.mjs +6 -0
- package/dist/node_modules/lodash-es/_getRawTag.mjs +15 -0
- package/dist/node_modules/lodash-es/_getSymbols.mjs +11 -0
- package/dist/node_modules/lodash-es/_getSymbolsIn.mjs +13 -0
- package/dist/node_modules/lodash-es/_getTag.mjs +29 -0
- package/dist/node_modules/lodash-es/_getValue.mjs +6 -0
- package/dist/node_modules/lodash-es/_hashClear.mjs +7 -0
- package/dist/node_modules/lodash-es/_hashDelete.mjs +7 -0
- package/dist/node_modules/lodash-es/_hashGet.mjs +13 -0
- package/dist/node_modules/lodash-es/_hashHas.mjs +9 -0
- package/dist/node_modules/lodash-es/_hashSet.mjs +9 -0
- package/dist/node_modules/lodash-es/_initCloneArray.mjs +8 -0
- package/dist/node_modules/lodash-es/_initCloneByTag.mjs +42 -0
- package/dist/node_modules/lodash-es/_initCloneObject.mjs +9 -0
- package/dist/node_modules/lodash-es/_isFlattenable.mjs +10 -0
- package/dist/node_modules/lodash-es/_isIndex.mjs +8 -0
- package/dist/node_modules/lodash-es/_isIterateeCall.mjs +13 -0
- package/dist/node_modules/lodash-es/_isKey.mjs +12 -0
- package/dist/node_modules/lodash-es/_isKeyable.mjs +7 -0
- package/dist/node_modules/lodash-es/_isMasked.mjs +11 -0
- package/dist/node_modules/lodash-es/_isPrototype.mjs +8 -0
- package/dist/node_modules/lodash-es/_listCacheClear.mjs +6 -0
- package/dist/node_modules/lodash-es/_listCacheDelete.mjs +12 -0
- package/dist/node_modules/lodash-es/_listCacheGet.mjs +8 -0
- package/dist/node_modules/lodash-es/_listCacheHas.mjs +7 -0
- package/dist/node_modules/lodash-es/_listCacheSet.mjs +8 -0
- package/dist/node_modules/lodash-es/_mapCacheClear.mjs +13 -0
- package/dist/node_modules/lodash-es/_mapCacheDelete.mjs +8 -0
- package/dist/node_modules/lodash-es/_mapCacheGet.mjs +7 -0
- package/dist/node_modules/lodash-es/_mapCacheHas.mjs +7 -0
- package/dist/node_modules/lodash-es/_mapCacheSet.mjs +8 -0
- package/dist/node_modules/lodash-es/_memoizeCapped.mjs +11 -0
- package/dist/node_modules/lodash-es/_nativeCreate.mjs +6 -0
- package/dist/node_modules/lodash-es/_nativeKeys.mjs +6 -0
- package/dist/node_modules/lodash-es/_nativeKeysIn.mjs +10 -0
- package/dist/node_modules/lodash-es/_nodeUtil.mjs +12 -0
- package/dist/node_modules/lodash-es/_objectToString.mjs +7 -0
- package/dist/node_modules/lodash-es/_overArg.mjs +8 -0
- package/dist/node_modules/lodash-es/_overRest.mjs +15 -0
- package/dist/node_modules/lodash-es/_parent.mjs +8 -0
- package/dist/node_modules/lodash-es/_root.mjs +6 -0
- package/dist/node_modules/lodash-es/_safeGet.mjs +7 -0
- package/dist/node_modules/lodash-es/_setToString.mjs +7 -0
- package/dist/node_modules/lodash-es/_shortOut.mjs +16 -0
- package/dist/node_modules/lodash-es/_stackClear.mjs +7 -0
- package/dist/node_modules/lodash-es/_stackDelete.mjs +7 -0
- package/dist/node_modules/lodash-es/_stackGet.mjs +6 -0
- package/dist/node_modules/lodash-es/_stackHas.mjs +6 -0
- package/dist/node_modules/lodash-es/_stackSet.mjs +17 -0
- package/dist/node_modules/lodash-es/_stringToPath.mjs +11 -0
- package/dist/node_modules/lodash-es/_toKey.mjs +11 -0
- package/dist/node_modules/lodash-es/_toSource.mjs +17 -0
- package/dist/node_modules/lodash-es/at.mjs +7 -0
- package/dist/node_modules/lodash-es/constant.mjs +8 -0
- package/dist/node_modules/lodash-es/eq.mjs +6 -0
- package/dist/node_modules/lodash-es/flatten.mjs +8 -0
- package/dist/node_modules/lodash-es/get.mjs +8 -0
- package/dist/node_modules/lodash-es/identity.mjs +6 -0
- package/dist/node_modules/lodash-es/isArguments.mjs +11 -0
- package/dist/node_modules/lodash-es/isArray.mjs +5 -0
- package/dist/node_modules/lodash-es/isArrayLike.mjs +8 -0
- package/dist/node_modules/lodash-es/isArrayLikeObject.mjs +8 -0
- package/dist/node_modules/lodash-es/isBoolean.mjs +9 -0
- package/dist/node_modules/lodash-es/isBuffer.mjs +7 -0
- package/dist/node_modules/lodash-es/isFunction.mjs +12 -0
- package/dist/node_modules/lodash-es/isLength.mjs +7 -0
- package/dist/node_modules/lodash-es/isMap.mjs +8 -0
- package/dist/node_modules/lodash-es/isObject.mjs +7 -0
- package/dist/node_modules/lodash-es/isObjectLike.mjs +6 -0
- package/dist/node_modules/lodash-es/isPlainObject.mjs +16 -0
- package/dist/node_modules/lodash-es/isSet.mjs +8 -0
- package/dist/node_modules/lodash-es/isSymbol.mjs +9 -0
- package/dist/node_modules/lodash-es/isTypedArray.mjs +8 -0
- package/dist/node_modules/lodash-es/keys.mjs +9 -0
- package/dist/node_modules/lodash-es/keysIn.mjs +9 -0
- package/dist/node_modules/lodash-es/last.mjs +7 -0
- package/dist/node_modules/lodash-es/memoize.mjs +18 -0
- package/dist/node_modules/lodash-es/merge.mjs +9 -0
- package/dist/node_modules/lodash-es/omit.mjs +24 -0
- package/dist/node_modules/lodash-es/stubArray.mjs +6 -0
- package/dist/node_modules/lodash-es/stubFalse.mjs +6 -0
- package/dist/node_modules/lodash-es/toPlainObject.mjs +8 -0
- package/dist/node_modules/lodash-es/toString.mjs +7 -0
- package/dist/node_modules/normalize-wheel/index.mjs +7 -0
- package/dist/node_modules/normalize-wheel/src/ExecutionEnvironment.mjs +11 -0
- package/dist/node_modules/normalize-wheel/src/UserAgent_DEPRECATED.mjs +142 -0
- package/dist/node_modules/normalize-wheel/src/isEventSupported.mjs +33 -0
- package/dist/node_modules/normalize-wheel/src/normalizeWheel.mjs +19 -0
- package/dist/node_modules/object-assign/index.mjs +55 -0
- package/dist/node_modules/preact/compat/dist/compat.module.mjs +202 -0
- package/dist/node_modules/preact/dist/preact.module.mjs +343 -0
- package/dist/node_modules/preact/hooks/dist/hooks.module.mjs +63 -0
- package/dist/node_modules/prop-types/checkPropTypes.mjs +55 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.mjs +53 -0
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.mjs +330 -0
- package/dist/node_modules/prop-types/index.mjs +16 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.mjs +11 -0
- package/dist/node_modules/prop-types/lib/has.mjs +7 -0
- package/dist/node_modules/rc-dialog/es/Dialog/Content/MemoChildren.mjs +11 -0
- package/dist/node_modules/rc-dialog/es/Dialog/Content/Panel.mjs +93 -0
- package/dist/node_modules/rc-dialog/es/Dialog/Content/index.mjs +43 -0
- package/dist/node_modules/rc-dialog/es/Dialog/Mask.mjs +25 -0
- package/dist/node_modules/rc-dialog/es/Dialog/index.mjs +114 -0
- package/dist/node_modules/rc-dialog/es/DialogWrap.mjs +32 -0
- package/dist/node_modules/rc-dialog/es/context.mjs +5 -0
- package/dist/node_modules/rc-dialog/es/index.mjs +6 -0
- package/dist/node_modules/rc-dialog/es/util.mjs +23 -0
- package/dist/node_modules/rc-field-form/es/Field.mjs +300 -0
- package/dist/node_modules/rc-field-form/es/FieldContext.mjs +41 -0
- package/dist/node_modules/rc-field-form/es/Form.mjs +78 -0
- package/dist/node_modules/rc-field-form/es/FormContext.mjs +46 -0
- package/dist/node_modules/rc-field-form/es/List.mjs +82 -0
- package/dist/node_modules/rc-field-form/es/ListContext.mjs +5 -0
- package/dist/node_modules/rc-field-form/es/index.mjs +22 -0
- package/dist/node_modules/rc-field-form/es/useForm.mjs +541 -0
- package/dist/node_modules/rc-field-form/es/useWatch.mjs +53 -0
- package/dist/node_modules/rc-field-form/es/utils/NameMap.mjs +66 -0
- package/dist/node_modules/rc-field-form/es/utils/asyncUtil.mjs +15 -0
- package/dist/node_modules/rc-field-form/es/utils/messages.mjs +50 -0
- package/dist/node_modules/rc-field-form/es/utils/typeUtil.mjs +10 -0
- package/dist/node_modules/rc-field-form/es/utils/validateUtil.mjs +203 -0
- package/dist/node_modules/rc-field-form/es/utils/valueUtil.mjs +60 -0
- package/dist/node_modules/rc-motion/es/CSSMotion.mjs +73 -0
- package/dist/node_modules/rc-motion/es/CSSMotionList.mjs +95 -0
- package/dist/node_modules/rc-motion/es/DomWrapper.mjs +21 -0
- package/dist/node_modules/rc-motion/es/context.mjs +13 -0
- package/dist/node_modules/rc-motion/es/hooks/useDomMotionEvents.mjs +20 -0
- package/dist/node_modules/rc-motion/es/hooks/useIsomorphicLayoutEffect.mjs +6 -0
- package/dist/node_modules/rc-motion/es/hooks/useNextFrame.mjs +28 -0
- package/dist/node_modules/rc-motion/es/hooks/useStatus.mjs +91 -0
- package/dist/node_modules/rc-motion/es/hooks/useStepQueue.mjs +38 -0
- package/dist/node_modules/rc-motion/es/index.mjs +7 -0
- package/dist/node_modules/rc-motion/es/interface.mjs +13 -0
- package/dist/node_modules/rc-motion/es/util/diff.mjs +65 -0
- package/dist/node_modules/rc-motion/es/util/motion.mjs +51 -0
- package/dist/node_modules/rc-pagination/es/locale/en_US.mjs +18 -0
- package/dist/node_modules/rc-pagination/lib/locale/en_US.mjs +21 -0
- package/dist/node_modules/rc-picker/es/locale/common.mjs +9 -0
- package/dist/node_modules/rc-picker/es/locale/en_US.mjs +31 -0
- package/dist/node_modules/rc-picker/lib/locale/common.mjs +14 -0
- package/dist/node_modules/rc-picker/lib/locale/en_US.mjs +37 -0
- package/dist/node_modules/rc-progress/es/Circle/PtgCircle.mjs +52 -0
- package/dist/node_modules/rc-progress/es/Circle/index.mjs +83 -0
- package/dist/node_modules/rc-progress/es/Circle/util.mjs +23 -0
- package/dist/node_modules/rc-progress/es/Line.mjs +3 -0
- package/dist/node_modules/rc-progress/es/common.mjs +27 -0
- package/dist/node_modules/rc-progress/es/hooks/useId.mjs +18 -0
- package/dist/node_modules/rc-resize-observer/es/Collection.mjs +22 -0
- package/dist/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.mjs +21 -0
- package/dist/node_modules/rc-resize-observer/es/SingleObserver/index.mjs +59 -0
- package/dist/node_modules/rc-resize-observer/es/index.mjs +24 -0
- package/dist/node_modules/rc-resize-observer/es/utils/observerUtil.mjs +23 -0
- package/dist/node_modules/rc-slider/es/Handles/Handle.mjs +103 -0
- package/dist/node_modules/rc-slider/es/Handles/index.mjs +69 -0
- package/dist/node_modules/rc-slider/es/Marks/Mark.mjs +22 -0
- package/dist/node_modules/rc-slider/es/Marks/index.mjs +20 -0
- package/dist/node_modules/rc-slider/es/Slider.mjs +225 -0
- package/dist/node_modules/rc-slider/es/Steps/Dot.mjs +16 -0
- package/dist/node_modules/rc-slider/es/Steps/index.mjs +28 -0
- package/dist/node_modules/rc-slider/es/Tracks/Track.mjs +34 -0
- package/dist/node_modules/rc-slider/es/Tracks/index.mjs +50 -0
- package/dist/node_modules/rc-slider/es/context.mjs +17 -0
- package/dist/node_modules/rc-slider/es/hooks/useDrag.mjs +104 -0
- package/dist/node_modules/rc-slider/es/hooks/useOffset.mjs +104 -0
- package/dist/node_modules/rc-slider/es/hooks/useRange.mjs +13 -0
- package/dist/node_modules/rc-slider/es/index.mjs +5 -0
- package/dist/node_modules/rc-slider/es/util.mjs +29 -0
- package/dist/node_modules/rc-tooltip/es/Popup.mjs +17 -0
- package/dist/node_modules/rc-tooltip/es/Tooltip.mjs +52 -0
- package/dist/node_modules/rc-tooltip/es/index.mjs +6 -0
- package/dist/node_modules/rc-tooltip/es/placements.mjs +84 -0
- package/dist/node_modules/rc-upload/es/AjaxUploader.mjs +284 -0
- package/dist/node_modules/rc-upload/es/Upload.mjs +57 -0
- package/dist/node_modules/rc-upload/es/attr-accept.mjs +22 -0
- package/dist/node_modules/rc-upload/es/index.mjs +4 -0
- package/dist/node_modules/rc-upload/es/request.mjs +46 -0
- package/dist/node_modules/rc-upload/es/traverseFileTree.mjs +137 -0
- package/dist/node_modules/rc-upload/es/uid.mjs +7 -0
- package/dist/node_modules/rc-util/es/Children/toArray.mjs +11 -0
- package/dist/node_modules/rc-util/es/Dom/canUseDom.mjs +6 -0
- package/dist/node_modules/rc-util/es/Dom/contains.mjs +15 -0
- package/dist/node_modules/rc-util/es/Dom/dynamicCSS.mjs +87 -0
- package/dist/node_modules/rc-util/es/Dom/findDOMNode.mjs +24 -0
- package/dist/node_modules/rc-util/es/Dom/isVisible.mjs +22 -0
- package/dist/node_modules/rc-util/es/Dom/shadow.mjs +14 -0
- package/dist/node_modules/rc-util/es/KeyCode.mjs +517 -0
- package/dist/node_modules/rc-util/es/React/render.mjs +81 -0
- package/dist/node_modules/rc-util/es/getScrollBarSize.mjs +38 -0
- package/dist/node_modules/rc-util/es/hooks/useEvent.mjs +14 -0
- package/dist/node_modules/rc-util/es/hooks/useId.mjs +27 -0
- package/dist/node_modules/rc-util/es/hooks/useLayoutEffect.mjs +21 -0
- package/dist/node_modules/rc-util/es/hooks/useMemo.mjs +8 -0
- package/dist/node_modules/rc-util/es/hooks/useMergedState.mjs +25 -0
- package/dist/node_modules/rc-util/es/hooks/useState.mjs +17 -0
- package/dist/node_modules/rc-util/es/hooks/useSyncState.mjs +16 -0
- package/dist/node_modules/rc-util/es/isEqual.mjs +35 -0
- package/dist/node_modules/rc-util/es/isMobile.mjs +9 -0
- package/dist/node_modules/rc-util/es/omit.mjs +9 -0
- package/dist/node_modules/rc-util/es/pickAttrs.mjs +42 -0
- package/dist/node_modules/rc-util/es/raf.mjs +40 -0
- package/dist/node_modules/rc-util/es/ref.mjs +39 -0
- package/dist/node_modules/rc-util/es/utils/get.mjs +11 -0
- package/dist/node_modules/rc-util/es/utils/set.mjs +47 -0
- package/dist/node_modules/rc-util/es/warning.mjs +44 -0
- package/dist/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.mjs +103 -0
- package/dist/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.mjs +82 -0
- package/dist/node_modules/rc-util/node_modules/react-is/index.mjs +8 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.mjs +616 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +32 -0
- package/dist/node_modules/react/jsx-runtime.mjs +8 -0
- package/dist/node_modules/react-device-detect/dist/lib.mjs +721 -0
- package/dist/node_modules/react-dom/client.mjs +26 -0
- package/dist/node_modules/react-draggable/build/cjs/Draggable.mjs +343 -0
- package/dist/node_modules/react-draggable/build/cjs/DraggableCore.mjs +324 -0
- package/dist/node_modules/react-draggable/build/cjs/cjs.mjs +14 -0
- package/dist/node_modules/react-draggable/build/cjs/utils/domFns.mjs +174 -0
- package/dist/node_modules/react-draggable/build/cjs/utils/getPrefix.mjs +35 -0
- package/dist/node_modules/react-draggable/build/cjs/utils/log.mjs +7 -0
- package/dist/node_modules/react-draggable/build/cjs/utils/positionFns.mjs +107 -0
- package/dist/node_modules/react-draggable/build/cjs/utils/shims.mjs +30 -0
- package/dist/node_modules/react-draggable/node_modules/clsx/dist/clsx.m.mjs +22 -0
- package/dist/node_modules/react-easy-crop/index.module.mjs +543 -0
- package/dist/node_modules/react-i18next/dist/es/context.mjs +19 -0
- package/dist/node_modules/react-i18next/dist/es/defaults.mjs +17 -0
- package/dist/node_modules/react-i18next/dist/es/i18nInstance.mjs +7 -0
- package/dist/node_modules/react-i18next/dist/es/unescape.mjs +25 -0
- package/dist/node_modules/react-i18next/dist/es/useTranslation.mjs +74 -0
- package/dist/node_modules/react-i18next/dist/es/utils.mjs +61 -0
- package/dist/node_modules/react-is/cjs/react-is.development.mjs +95 -0
- package/dist/node_modules/react-is/cjs/react-is.production.min.mjs +79 -0
- package/dist/node_modules/react-is/index.mjs +10 -0
- package/dist/node_modules/react-resizable/build/Resizable.mjs +201 -0
- package/dist/node_modules/react-resizable/build/ResizableBox.mjs +162 -0
- package/dist/node_modules/react-resizable/build/propTypes.mjs +118 -0
- package/dist/node_modules/react-resizable/build/utils.mjs +54 -0
- package/dist/node_modules/react-resizable/index.mjs +13 -0
- package/dist/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.mjs +290 -0
- package/dist/node_modules/screenfull/index.mjs +122 -0
- package/dist/node_modules/stylis/src/Enum.mjs +12 -0
- package/dist/node_modules/stylis/src/Middleware.mjs +18 -0
- package/dist/node_modules/stylis/src/Parser.mjs +114 -0
- package/dist/node_modules/stylis/src/Serializer.mjs +28 -0
- package/dist/node_modules/stylis/src/Tokenizer.mjs +131 -0
- package/dist/node_modules/stylis/src/Utility.mjs +50 -0
- package/dist/node_modules/throttle-debounce/esm/index.mjs +35 -0
- package/dist/node_modules/toggle-selection/index.mjs +25 -0
- package/dist/node_modules/tslib/tslib.es6.mjs +97 -0
- package/dist/node_modules/ua-parser-js/dist/ua-parser.min.mjs +86 -0
- package/dist/node_modules/use-immer/dist/use-immer.module.mjs +13 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +61 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs +60 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +85 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs +50 -0
- package/dist/node_modules/use-sync-external-store/shim/index.mjs +10 -0
- package/dist/node_modules/use-sync-external-store/shim/with-selector.mjs +10 -0
- package/dist/node_modules/zustand/esm/index.mjs +24 -0
- package/dist/node_modules/zustand/esm/vanilla.mjs +16 -0
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +13 -13
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import C from "../../@babel/runtime/helpers/esm/extends.mjs";
|
|
2
|
+
import v from "../../@babel/runtime/helpers/esm/slicedToArray.mjs";
|
|
3
|
+
import R from "../../@rc-component/portal/es/Portal.mjs";
|
|
4
|
+
import * as t from "react";
|
|
5
|
+
import { RefContext as g } from "./context.mjs";
|
|
6
|
+
import y from "./Dialog/index.mjs";
|
|
7
|
+
var _ = function(e) {
|
|
8
|
+
var o = e.visible, u = e.getContainer, n = e.forceRender, i = e.destroyOnClose, l = i === void 0 ? !1 : i, r = e.afterClose, f = e.panelRef, c = t.useState(o), s = v(c, 2), a = s[0], m = s[1], d = t.useMemo(function() {
|
|
9
|
+
return {
|
|
10
|
+
panel: f
|
|
11
|
+
};
|
|
12
|
+
}, [f]);
|
|
13
|
+
return t.useEffect(function() {
|
|
14
|
+
o && m(!0);
|
|
15
|
+
}, [o]), !n && l && !a ? null : /* @__PURE__ */ t.createElement(g.Provider, {
|
|
16
|
+
value: d
|
|
17
|
+
}, /* @__PURE__ */ t.createElement(R, {
|
|
18
|
+
open: o || n || a,
|
|
19
|
+
autoDestroy: !1,
|
|
20
|
+
getContainer: u,
|
|
21
|
+
autoLock: o || a
|
|
22
|
+
}, /* @__PURE__ */ t.createElement(y, C({}, e, {
|
|
23
|
+
destroyOnClose: l,
|
|
24
|
+
afterClose: function() {
|
|
25
|
+
r == null || r(), m(!1);
|
|
26
|
+
}
|
|
27
|
+
}))));
|
|
28
|
+
};
|
|
29
|
+
_.displayName = "Dialog";
|
|
30
|
+
export {
|
|
31
|
+
_ as default
|
|
32
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
function f(o, n, t) {
|
|
2
|
+
var e = n;
|
|
3
|
+
return !e && t && (e = "".concat(o, "-").concat(t)), e;
|
|
4
|
+
}
|
|
5
|
+
function c(o, n) {
|
|
6
|
+
var t = o["page".concat(n ? "Y" : "X", "Offset")], e = "scroll".concat(n ? "Top" : "Left");
|
|
7
|
+
if (typeof t != "number") {
|
|
8
|
+
var r = o.document;
|
|
9
|
+
t = r.documentElement[e], typeof t != "number" && (t = r.body[e]);
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
}
|
|
13
|
+
function a(o) {
|
|
14
|
+
var n = o.getBoundingClientRect(), t = {
|
|
15
|
+
left: n.left,
|
|
16
|
+
top: n.top
|
|
17
|
+
}, e = o.ownerDocument, r = e.defaultView || e.parentWindow;
|
|
18
|
+
return t.left += c(r), t.top += c(r, !0), t;
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
f as getMotionName,
|
|
22
|
+
a as offset
|
|
23
|
+
};
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
import J from "../../@babel/runtime/helpers/esm/extends.mjs";
|
|
2
|
+
import Q from "../../@babel/runtime/helpers/esm/objectWithoutProperties.mjs";
|
|
3
|
+
import K from "../../@babel/runtime/helpers/esm/regeneratorRuntime.mjs";
|
|
4
|
+
import X from "../../@babel/runtime/helpers/esm/asyncToGenerator.mjs";
|
|
5
|
+
import L from "../../@babel/runtime/helpers/esm/objectSpread2.mjs";
|
|
6
|
+
import D from "../../@babel/runtime/helpers/esm/toConsumableArray.mjs";
|
|
7
|
+
import Z from "../../@babel/runtime/helpers/esm/classCallCheck.mjs";
|
|
8
|
+
import ee from "../../@babel/runtime/helpers/esm/createClass.mjs";
|
|
9
|
+
import a from "../../@babel/runtime/helpers/esm/assertThisInitialized.mjs";
|
|
10
|
+
import re from "../../@babel/runtime/helpers/esm/inherits.mjs";
|
|
11
|
+
import te from "../../@babel/runtime/helpers/esm/createSuper.mjs";
|
|
12
|
+
import i from "../../@babel/runtime/helpers/esm/defineProperty.mjs";
|
|
13
|
+
import ne from "../../rc-util/es/Children/toArray.mjs";
|
|
14
|
+
import S from "../../rc-util/es/isEqual.mjs";
|
|
15
|
+
import { warningOnce as G } from "../../rc-util/es/warning.mjs";
|
|
16
|
+
import * as x from "react";
|
|
17
|
+
import B, { HOOK_MARK as H } from "./FieldContext.mjs";
|
|
18
|
+
import ie from "./ListContext.mjs";
|
|
19
|
+
import { toArray as Y } from "./utils/typeUtil.mjs";
|
|
20
|
+
import { validateRules as ae } from "./utils/validateUtil.mjs";
|
|
21
|
+
import { getNamePath as W, containsNamePath as j, defaultGetValueFromEvent as oe } from "./utils/valueUtil.mjs";
|
|
22
|
+
import se from "../../rc-util/es/utils/get.mjs";
|
|
23
|
+
var le = ["name"], m = [];
|
|
24
|
+
function z(M, I, p, h, e, c) {
|
|
25
|
+
return typeof M == "function" ? M(I, p, "source" in c ? {
|
|
26
|
+
source: c.source
|
|
27
|
+
} : {}) : h !== e;
|
|
28
|
+
}
|
|
29
|
+
var q = /* @__PURE__ */ function(M) {
|
|
30
|
+
re(p, M);
|
|
31
|
+
var I = te(p);
|
|
32
|
+
function p(h) {
|
|
33
|
+
var e;
|
|
34
|
+
if (Z(this, p), e = I.call(this, h), i(a(e), "state", {
|
|
35
|
+
resetCount: 0
|
|
36
|
+
}), i(a(e), "cancelRegisterFunc", null), i(a(e), "mounted", !1), i(a(e), "touched", !1), i(a(e), "dirty", !1), i(a(e), "validatePromise", void 0), i(a(e), "prevValidating", void 0), i(a(e), "errors", m), i(a(e), "warnings", m), i(a(e), "cancelRegister", function() {
|
|
37
|
+
var t = e.props, r = t.preserve, n = t.isListField, l = t.name;
|
|
38
|
+
e.cancelRegisterFunc && e.cancelRegisterFunc(n, r, W(l)), e.cancelRegisterFunc = null;
|
|
39
|
+
}), i(a(e), "getNamePath", function() {
|
|
40
|
+
var t = e.props, r = t.name, n = t.fieldContext, l = n.prefixName, o = l === void 0 ? [] : l;
|
|
41
|
+
return r !== void 0 ? [].concat(D(o), D(r)) : [];
|
|
42
|
+
}), i(a(e), "getRules", function() {
|
|
43
|
+
var t = e.props, r = t.rules, n = r === void 0 ? [] : r, l = t.fieldContext;
|
|
44
|
+
return n.map(function(o) {
|
|
45
|
+
return typeof o == "function" ? o(l) : o;
|
|
46
|
+
});
|
|
47
|
+
}), i(a(e), "refresh", function() {
|
|
48
|
+
e.mounted && e.setState(function(t) {
|
|
49
|
+
var r = t.resetCount;
|
|
50
|
+
return {
|
|
51
|
+
resetCount: r + 1
|
|
52
|
+
};
|
|
53
|
+
});
|
|
54
|
+
}), i(a(e), "metaCache", null), i(a(e), "triggerMetaEvent", function(t) {
|
|
55
|
+
var r = e.props.onMetaChange;
|
|
56
|
+
if (r) {
|
|
57
|
+
var n = L(L({}, e.getMeta()), {}, {
|
|
58
|
+
destroy: t
|
|
59
|
+
});
|
|
60
|
+
S(e.metaCache, n) || r(n), e.metaCache = n;
|
|
61
|
+
} else
|
|
62
|
+
e.metaCache = null;
|
|
63
|
+
}), i(a(e), "onStoreChange", function(t, r, n) {
|
|
64
|
+
var l = e.props, o = l.shouldUpdate, k = l.dependencies, $ = k === void 0 ? [] : k, v = l.onReset, w = n.store, d = e.getNamePath(), F = e.getValue(t), V = e.getValue(w), N = r && j(r, d);
|
|
65
|
+
switch (n.type === "valueUpdate" && n.source === "external" && !S(F, V) && (e.touched = !0, e.dirty = !0, e.validatePromise = null, e.errors = m, e.warnings = m, e.triggerMetaEvent()), n.type) {
|
|
66
|
+
case "reset":
|
|
67
|
+
if (!r || N) {
|
|
68
|
+
e.touched = !1, e.dirty = !1, e.validatePromise = void 0, e.errors = m, e.warnings = m, e.triggerMetaEvent(), v == null || v(), e.refresh();
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
break;
|
|
72
|
+
case "remove": {
|
|
73
|
+
if (o && z(o, t, w, F, V, n)) {
|
|
74
|
+
e.reRender();
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
case "setField": {
|
|
80
|
+
var u = n.data;
|
|
81
|
+
if (N) {
|
|
82
|
+
"touched" in u && (e.touched = u.touched), "validating" in u && !("originRCField" in u) && (e.validatePromise = u.validating ? Promise.resolve([]) : null), "errors" in u && (e.errors = u.errors || m), "warnings" in u && (e.warnings = u.warnings || m), e.dirty = !0, e.triggerMetaEvent(), e.reRender();
|
|
83
|
+
return;
|
|
84
|
+
} else if ("value" in u && j(r, d, !0)) {
|
|
85
|
+
e.reRender();
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
if (o && !d.length && z(o, t, w, F, V, n)) {
|
|
89
|
+
e.reRender();
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
case "dependenciesUpdate": {
|
|
95
|
+
var _ = $.map(W);
|
|
96
|
+
if (_.some(function(b) {
|
|
97
|
+
return j(n.relatedFields, b);
|
|
98
|
+
})) {
|
|
99
|
+
e.reRender();
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
default:
|
|
105
|
+
if (N || (!$.length || d.length || o) && z(o, t, w, F, V, n)) {
|
|
106
|
+
e.reRender();
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
o === !0 && e.reRender();
|
|
112
|
+
}), i(a(e), "validateRules", function(t) {
|
|
113
|
+
var r = e.getNamePath(), n = e.getValue(), l = t || {}, o = l.triggerName, k = l.validateOnly, $ = k === void 0 ? !1 : k, v = Promise.resolve().then(/* @__PURE__ */ X(/* @__PURE__ */ K().mark(function w() {
|
|
114
|
+
var d, F, V, N, u, _, b;
|
|
115
|
+
return K().wrap(function(g) {
|
|
116
|
+
for (; ; )
|
|
117
|
+
switch (g.prev = g.next) {
|
|
118
|
+
case 0:
|
|
119
|
+
if (e.mounted) {
|
|
120
|
+
g.next = 2;
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
return g.abrupt("return", []);
|
|
124
|
+
case 2:
|
|
125
|
+
if (d = e.props, F = d.validateFirst, V = F === void 0 ? !1 : F, N = d.messageVariables, u = d.validateDebounce, _ = e.getRules(), o && (_ = _.filter(function(f) {
|
|
126
|
+
return f;
|
|
127
|
+
}).filter(function(f) {
|
|
128
|
+
var C = f.validateTrigger;
|
|
129
|
+
if (!C)
|
|
130
|
+
return !0;
|
|
131
|
+
var R = Y(C);
|
|
132
|
+
return R.includes(o);
|
|
133
|
+
})), !(u && o)) {
|
|
134
|
+
g.next = 10;
|
|
135
|
+
break;
|
|
136
|
+
}
|
|
137
|
+
return g.next = 8, new Promise(function(f) {
|
|
138
|
+
setTimeout(f, u);
|
|
139
|
+
});
|
|
140
|
+
case 8:
|
|
141
|
+
if (e.validatePromise === v) {
|
|
142
|
+
g.next = 10;
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
145
|
+
return g.abrupt("return", []);
|
|
146
|
+
case 10:
|
|
147
|
+
return b = ae(r, n, _, t, V, N), b.catch(function(f) {
|
|
148
|
+
return f;
|
|
149
|
+
}).then(function() {
|
|
150
|
+
var f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : m;
|
|
151
|
+
if (e.validatePromise === v) {
|
|
152
|
+
var C;
|
|
153
|
+
e.validatePromise = null;
|
|
154
|
+
var R = [], U = [];
|
|
155
|
+
(C = f.forEach) === null || C === void 0 || C.call(f, function(s) {
|
|
156
|
+
var O = s.rule.warningOnly, E = s.errors, T = E === void 0 ? m : E;
|
|
157
|
+
O ? U.push.apply(U, D(T)) : R.push.apply(R, D(T));
|
|
158
|
+
}), e.errors = R, e.warnings = U, e.triggerMetaEvent(), e.reRender();
|
|
159
|
+
}
|
|
160
|
+
}), g.abrupt("return", b);
|
|
161
|
+
case 13:
|
|
162
|
+
case "end":
|
|
163
|
+
return g.stop();
|
|
164
|
+
}
|
|
165
|
+
}, w);
|
|
166
|
+
})));
|
|
167
|
+
return $ || (e.validatePromise = v, e.dirty = !0, e.errors = m, e.warnings = m, e.triggerMetaEvent(), e.reRender()), v;
|
|
168
|
+
}), i(a(e), "isFieldValidating", function() {
|
|
169
|
+
return !!e.validatePromise;
|
|
170
|
+
}), i(a(e), "isFieldTouched", function() {
|
|
171
|
+
return e.touched;
|
|
172
|
+
}), i(a(e), "isFieldDirty", function() {
|
|
173
|
+
if (e.dirty || e.props.initialValue !== void 0)
|
|
174
|
+
return !0;
|
|
175
|
+
var t = e.props.fieldContext, r = t.getInternalHooks(H), n = r.getInitialValue;
|
|
176
|
+
return n(e.getNamePath()) !== void 0;
|
|
177
|
+
}), i(a(e), "getErrors", function() {
|
|
178
|
+
return e.errors;
|
|
179
|
+
}), i(a(e), "getWarnings", function() {
|
|
180
|
+
return e.warnings;
|
|
181
|
+
}), i(a(e), "isListField", function() {
|
|
182
|
+
return e.props.isListField;
|
|
183
|
+
}), i(a(e), "isList", function() {
|
|
184
|
+
return e.props.isList;
|
|
185
|
+
}), i(a(e), "isPreserve", function() {
|
|
186
|
+
return e.props.preserve;
|
|
187
|
+
}), i(a(e), "getMeta", function() {
|
|
188
|
+
e.prevValidating = e.isFieldValidating();
|
|
189
|
+
var t = {
|
|
190
|
+
touched: e.isFieldTouched(),
|
|
191
|
+
validating: e.prevValidating,
|
|
192
|
+
errors: e.errors,
|
|
193
|
+
warnings: e.warnings,
|
|
194
|
+
name: e.getNamePath(),
|
|
195
|
+
validated: e.validatePromise === null
|
|
196
|
+
};
|
|
197
|
+
return t;
|
|
198
|
+
}), i(a(e), "getOnlyChild", function(t) {
|
|
199
|
+
if (typeof t == "function") {
|
|
200
|
+
var r = e.getMeta();
|
|
201
|
+
return L(L({}, e.getOnlyChild(t(e.getControlled(), r, e.props.fieldContext))), {}, {
|
|
202
|
+
isFunction: !0
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
var n = ne(t);
|
|
206
|
+
return n.length !== 1 || !/* @__PURE__ */ x.isValidElement(n[0]) ? {
|
|
207
|
+
child: n,
|
|
208
|
+
isFunction: !1
|
|
209
|
+
} : {
|
|
210
|
+
child: n[0],
|
|
211
|
+
isFunction: !1
|
|
212
|
+
};
|
|
213
|
+
}), i(a(e), "getValue", function(t) {
|
|
214
|
+
var r = e.props.fieldContext.getFieldsValue, n = e.getNamePath();
|
|
215
|
+
return se(t || r(!0), n);
|
|
216
|
+
}), i(a(e), "getControlled", function() {
|
|
217
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = e.props, n = r.name, l = r.trigger, o = r.validateTrigger, k = r.getValueFromEvent, $ = r.normalize, v = r.valuePropName, w = r.getValueProps, d = r.fieldContext, F = o !== void 0 ? o : d.validateTrigger, V = e.getNamePath(), N = d.getInternalHooks, u = d.getFieldsValue, _ = N(H), b = _.dispatch, A = e.getValue(), g = w || function(s) {
|
|
218
|
+
return i({}, v, s);
|
|
219
|
+
}, f = t[l], C = n !== void 0 ? g(A) : {};
|
|
220
|
+
process.env.NODE_ENV !== "production" && C && Object.keys(C).forEach(function(s) {
|
|
221
|
+
G(typeof C[s] != "function", "It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(s, ")"));
|
|
222
|
+
});
|
|
223
|
+
var R = L(L({}, t), C);
|
|
224
|
+
R[l] = function() {
|
|
225
|
+
e.touched = !0, e.dirty = !0, e.triggerMetaEvent();
|
|
226
|
+
for (var s, O = arguments.length, E = new Array(O), T = 0; T < O; T++)
|
|
227
|
+
E[T] = arguments[T];
|
|
228
|
+
k ? s = k.apply(void 0, E) : s = oe.apply(void 0, [v].concat(E)), $ && (s = $(s, A, u(!0))), b({
|
|
229
|
+
type: "updateValue",
|
|
230
|
+
namePath: V,
|
|
231
|
+
value: s
|
|
232
|
+
}), f && f.apply(void 0, E);
|
|
233
|
+
};
|
|
234
|
+
var U = Y(F || []);
|
|
235
|
+
return U.forEach(function(s) {
|
|
236
|
+
var O = R[s];
|
|
237
|
+
R[s] = function() {
|
|
238
|
+
O && O.apply(void 0, arguments);
|
|
239
|
+
var E = e.props.rules;
|
|
240
|
+
E && E.length && b({
|
|
241
|
+
type: "validateField",
|
|
242
|
+
namePath: V,
|
|
243
|
+
triggerName: s
|
|
244
|
+
});
|
|
245
|
+
};
|
|
246
|
+
}), R;
|
|
247
|
+
}), h.fieldContext) {
|
|
248
|
+
var c = h.fieldContext.getInternalHooks, y = c(H), P = y.initEntityValue;
|
|
249
|
+
P(a(e));
|
|
250
|
+
}
|
|
251
|
+
return e;
|
|
252
|
+
}
|
|
253
|
+
return ee(p, [{
|
|
254
|
+
key: "componentDidMount",
|
|
255
|
+
value: function() {
|
|
256
|
+
var e = this.props, c = e.shouldUpdate, y = e.fieldContext;
|
|
257
|
+
if (this.mounted = !0, y) {
|
|
258
|
+
var P = y.getInternalHooks, t = P(H), r = t.registerField;
|
|
259
|
+
this.cancelRegisterFunc = r(this);
|
|
260
|
+
}
|
|
261
|
+
c === !0 && this.reRender();
|
|
262
|
+
}
|
|
263
|
+
}, {
|
|
264
|
+
key: "componentWillUnmount",
|
|
265
|
+
value: function() {
|
|
266
|
+
this.cancelRegister(), this.triggerMetaEvent(!0), this.mounted = !1;
|
|
267
|
+
}
|
|
268
|
+
}, {
|
|
269
|
+
key: "reRender",
|
|
270
|
+
value: function() {
|
|
271
|
+
this.mounted && this.forceUpdate();
|
|
272
|
+
}
|
|
273
|
+
}, {
|
|
274
|
+
key: "render",
|
|
275
|
+
value: function() {
|
|
276
|
+
var e = this.state.resetCount, c = this.props.children, y = this.getOnlyChild(c), P = y.child, t = y.isFunction, r;
|
|
277
|
+
return t ? r = P : /* @__PURE__ */ x.isValidElement(P) ? r = /* @__PURE__ */ x.cloneElement(P, this.getControlled(P.props)) : (G(!P, "`children` of Field is not validate ReactElement."), r = P), /* @__PURE__ */ x.createElement(x.Fragment, {
|
|
278
|
+
key: e
|
|
279
|
+
}, r);
|
|
280
|
+
}
|
|
281
|
+
}]), p;
|
|
282
|
+
}(x.Component);
|
|
283
|
+
i(q, "contextType", B);
|
|
284
|
+
i(q, "defaultProps", {
|
|
285
|
+
trigger: "onChange",
|
|
286
|
+
valuePropName: "value"
|
|
287
|
+
});
|
|
288
|
+
function be(M) {
|
|
289
|
+
var I = M.name, p = Q(M, le), h = x.useContext(B), e = x.useContext(ie), c = I !== void 0 ? W(I) : void 0, y = "keep";
|
|
290
|
+
return p.isListField || (y = "_".concat((c || []).join("_"))), process.env.NODE_ENV !== "production" && p.preserve === !1 && p.isListField && c.length <= 1 && G(!1, "`preserve` should not apply on Form.List fields."), /* @__PURE__ */ x.createElement(q, J({
|
|
291
|
+
key: y,
|
|
292
|
+
name: c,
|
|
293
|
+
isListField: !!e
|
|
294
|
+
}, p, {
|
|
295
|
+
fieldContext: h
|
|
296
|
+
}));
|
|
297
|
+
}
|
|
298
|
+
export {
|
|
299
|
+
be as default
|
|
300
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { warningOnce as i } from "../../rc-util/es/warning.mjs";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
var r = "RC_FORM_INTERNAL_HOOKS", e = function() {
|
|
4
|
+
i(!1, "Can not find FormContext. Please make sure you wrap Field under Form.");
|
|
5
|
+
}, l = /* @__PURE__ */ a.createContext({
|
|
6
|
+
getFieldValue: e,
|
|
7
|
+
getFieldsValue: e,
|
|
8
|
+
getFieldError: e,
|
|
9
|
+
getFieldWarning: e,
|
|
10
|
+
getFieldsError: e,
|
|
11
|
+
isFieldsTouched: e,
|
|
12
|
+
isFieldTouched: e,
|
|
13
|
+
isFieldValidating: e,
|
|
14
|
+
isFieldsValidating: e,
|
|
15
|
+
resetFields: e,
|
|
16
|
+
setFields: e,
|
|
17
|
+
setFieldValue: e,
|
|
18
|
+
setFieldsValue: e,
|
|
19
|
+
validateFields: e,
|
|
20
|
+
submit: e,
|
|
21
|
+
getInternalHooks: function() {
|
|
22
|
+
return e(), {
|
|
23
|
+
dispatch: e,
|
|
24
|
+
initEntityValue: e,
|
|
25
|
+
registerField: e,
|
|
26
|
+
useSubscribe: e,
|
|
27
|
+
setInitialValues: e,
|
|
28
|
+
destroyForm: e,
|
|
29
|
+
setCallbacks: e,
|
|
30
|
+
registerWatch: e,
|
|
31
|
+
getFields: e,
|
|
32
|
+
setValidateMessages: e,
|
|
33
|
+
setPreserve: e,
|
|
34
|
+
getInitialValue: e
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
export {
|
|
39
|
+
r as HOOK_MARK,
|
|
40
|
+
l as default
|
|
41
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import B from "../../@babel/runtime/helpers/esm/extends.mjs";
|
|
2
|
+
import s from "../../@babel/runtime/helpers/esm/objectSpread2.mjs";
|
|
3
|
+
import G from "../../@babel/runtime/helpers/esm/slicedToArray.mjs";
|
|
4
|
+
import J from "../../@babel/runtime/helpers/esm/objectWithoutProperties.mjs";
|
|
5
|
+
import * as n from "react";
|
|
6
|
+
import Q from "./useForm.mjs";
|
|
7
|
+
import U, { HOOK_MARK as X } from "./FieldContext.mjs";
|
|
8
|
+
import Y from "./FormContext.mjs";
|
|
9
|
+
import { isSimilar as Z } from "./utils/valueUtil.mjs";
|
|
10
|
+
import _ from "./ListContext.mjs";
|
|
11
|
+
var ee = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed", "clearOnDestroy"], ce = function(e, y) {
|
|
12
|
+
var l = e.name, I = e.initialValues, u = e.fields, S = e.form, T = e.preserve, c = e.children, p = e.component, F = p === void 0 ? "form" : p, D = e.validateMessages, h = e.validateTrigger, C = h === void 0 ? "onChange" : h, O = e.onValuesChange, R = e.onFieldsChange, V = e.onFinish, H = e.onFinishFailed, A = e.clearOnDestroy, d = J(e, ee), b = n.useRef(null), i = n.useContext(Y), $ = Q(S), j = G($, 1), r = j[0], a = r.getInternalHooks(X), w = a.useSubscribe, K = a.setInitialValues, N = a.setCallbacks, k = a.setValidateMessages, L = a.setPreserve, W = a.destroyForm;
|
|
13
|
+
n.useImperativeHandle(y, function() {
|
|
14
|
+
return s(s({}, r), {}, {
|
|
15
|
+
nativeElement: b.current
|
|
16
|
+
});
|
|
17
|
+
}), n.useEffect(function() {
|
|
18
|
+
return i.registerForm(l, r), function() {
|
|
19
|
+
i.unregisterForm(l);
|
|
20
|
+
};
|
|
21
|
+
}, [i, r, l]), k(s(s({}, i.validateMessages), D)), N({
|
|
22
|
+
onValuesChange: O,
|
|
23
|
+
onFieldsChange: function(t) {
|
|
24
|
+
if (i.triggerFormChange(l, t), R) {
|
|
25
|
+
for (var o = arguments.length, M = new Array(o > 1 ? o - 1 : 0), m = 1; m < o; m++)
|
|
26
|
+
M[m - 1] = arguments[m];
|
|
27
|
+
R.apply(void 0, [t].concat(M));
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
onFinish: function(t) {
|
|
31
|
+
i.triggerFormFinish(l, t), V && V(t);
|
|
32
|
+
},
|
|
33
|
+
onFinishFailed: H
|
|
34
|
+
}), L(T);
|
|
35
|
+
var f = n.useRef(null);
|
|
36
|
+
K(I, !f.current), f.current || (f.current = !0), n.useEffect(
|
|
37
|
+
function() {
|
|
38
|
+
return function() {
|
|
39
|
+
return W(A);
|
|
40
|
+
};
|
|
41
|
+
},
|
|
42
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
43
|
+
[]
|
|
44
|
+
);
|
|
45
|
+
var v, x = typeof c == "function";
|
|
46
|
+
if (x) {
|
|
47
|
+
var q = r.getFieldsValue(!0);
|
|
48
|
+
v = c(q, r);
|
|
49
|
+
} else
|
|
50
|
+
v = c;
|
|
51
|
+
w(!x);
|
|
52
|
+
var P = n.useRef();
|
|
53
|
+
n.useEffect(function() {
|
|
54
|
+
Z(P.current || [], u || []) || r.setFields(u || []), P.current = u;
|
|
55
|
+
}, [u, r]);
|
|
56
|
+
var z = n.useMemo(function() {
|
|
57
|
+
return s(s({}, r), {}, {
|
|
58
|
+
validateTrigger: C
|
|
59
|
+
});
|
|
60
|
+
}, [r, C]), E = /* @__PURE__ */ n.createElement(_.Provider, {
|
|
61
|
+
value: null
|
|
62
|
+
}, /* @__PURE__ */ n.createElement(U.Provider, {
|
|
63
|
+
value: z
|
|
64
|
+
}, v));
|
|
65
|
+
return F === !1 ? E : /* @__PURE__ */ n.createElement(F, B({}, d, {
|
|
66
|
+
ref: b,
|
|
67
|
+
onSubmit: function(t) {
|
|
68
|
+
t.preventDefault(), t.stopPropagation(), r.submit();
|
|
69
|
+
},
|
|
70
|
+
onReset: function(t) {
|
|
71
|
+
var o;
|
|
72
|
+
t.preventDefault(), r.resetFields(), (o = d.onReset) === null || o === void 0 || o.call(d, t);
|
|
73
|
+
}
|
|
74
|
+
}), E);
|
|
75
|
+
};
|
|
76
|
+
export {
|
|
77
|
+
ce as default
|
|
78
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import h from "../../@babel/runtime/helpers/esm/defineProperty.mjs";
|
|
2
|
+
import o from "../../@babel/runtime/helpers/esm/objectSpread2.mjs";
|
|
3
|
+
import * as s from "react";
|
|
4
|
+
var u = /* @__PURE__ */ s.createContext({
|
|
5
|
+
triggerFormChange: function() {
|
|
6
|
+
},
|
|
7
|
+
triggerFormFinish: function() {
|
|
8
|
+
},
|
|
9
|
+
registerForm: function() {
|
|
10
|
+
},
|
|
11
|
+
unregisterForm: function() {
|
|
12
|
+
}
|
|
13
|
+
}), C = function(g) {
|
|
14
|
+
var c = g.validateMessages, m = g.onFormChange, a = g.onFormFinish, f = g.children, t = s.useContext(u), i = s.useRef({});
|
|
15
|
+
return /* @__PURE__ */ s.createElement(u.Provider, {
|
|
16
|
+
value: o(o({}, t), {}, {
|
|
17
|
+
validateMessages: o(o({}, t.validateMessages), c),
|
|
18
|
+
// =========================================================
|
|
19
|
+
// = Global Form Control =
|
|
20
|
+
// =========================================================
|
|
21
|
+
triggerFormChange: function(r, e) {
|
|
22
|
+
m && m(r, {
|
|
23
|
+
changedFields: e,
|
|
24
|
+
forms: i.current
|
|
25
|
+
}), t.triggerFormChange(r, e);
|
|
26
|
+
},
|
|
27
|
+
triggerFormFinish: function(r, e) {
|
|
28
|
+
a && a(r, {
|
|
29
|
+
values: e,
|
|
30
|
+
forms: i.current
|
|
31
|
+
}), t.triggerFormFinish(r, e);
|
|
32
|
+
},
|
|
33
|
+
registerForm: function(r, e) {
|
|
34
|
+
r && (i.current = o(o({}, i.current), {}, h({}, r, e))), t.registerForm(r, e);
|
|
35
|
+
},
|
|
36
|
+
unregisterForm: function(r) {
|
|
37
|
+
var e = o({}, i.current);
|
|
38
|
+
delete e[r], i.current = e, t.unregisterForm(r);
|
|
39
|
+
}
|
|
40
|
+
})
|
|
41
|
+
}, f);
|
|
42
|
+
};
|
|
43
|
+
export {
|
|
44
|
+
C as FormProvider,
|
|
45
|
+
u as default
|
|
46
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import C from "../../@babel/runtime/helpers/esm/objectSpread2.mjs";
|
|
2
|
+
import i from "../../@babel/runtime/helpers/esm/toConsumableArray.mjs";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
import { warningOnce as k } from "../../rc-util/es/warning.mjs";
|
|
5
|
+
import L from "./FieldContext.mjs";
|
|
6
|
+
import j from "./Field.mjs";
|
|
7
|
+
import { getNamePath as w, move as F } from "./utils/valueUtil.mjs";
|
|
8
|
+
import E from "./ListContext.mjs";
|
|
9
|
+
function G(u) {
|
|
10
|
+
var N = u.name, A = u.initialValue, V = u.children, b = u.rules, M = u.validateTrigger, d = u.isListField, f = n.useContext(L), T = n.useContext(E), x = n.useRef({
|
|
11
|
+
keys: [],
|
|
12
|
+
id: 0
|
|
13
|
+
}), t = x.current, s = n.useMemo(function() {
|
|
14
|
+
var l = w(f.prefixName) || [];
|
|
15
|
+
return [].concat(i(l), i(w(N)));
|
|
16
|
+
}, [f.prefixName, N]), O = n.useMemo(function() {
|
|
17
|
+
return C(C({}, f), {}, {
|
|
18
|
+
prefixName: s
|
|
19
|
+
});
|
|
20
|
+
}, [f, s]), P = n.useMemo(function() {
|
|
21
|
+
return {
|
|
22
|
+
getKey: function(c) {
|
|
23
|
+
var o = s.length, m = c[o];
|
|
24
|
+
return [t.keys[m], c.slice(o + 1)];
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
}, [s]);
|
|
28
|
+
if (typeof V != "function")
|
|
29
|
+
return k(!1, "Form.List only accepts function as children."), null;
|
|
30
|
+
var R = function(c, o, m) {
|
|
31
|
+
var v = m.source;
|
|
32
|
+
return v === "internal" ? !1 : c !== o;
|
|
33
|
+
};
|
|
34
|
+
return /* @__PURE__ */ n.createElement(E.Provider, {
|
|
35
|
+
value: P
|
|
36
|
+
}, /* @__PURE__ */ n.createElement(L.Provider, {
|
|
37
|
+
value: O
|
|
38
|
+
}, /* @__PURE__ */ n.createElement(j, {
|
|
39
|
+
name: [],
|
|
40
|
+
shouldUpdate: R,
|
|
41
|
+
rules: b,
|
|
42
|
+
validateTrigger: M,
|
|
43
|
+
initialValue: A,
|
|
44
|
+
isList: !0,
|
|
45
|
+
isListField: d ?? !!T
|
|
46
|
+
}, function(l, c) {
|
|
47
|
+
var o = l.value, m = o === void 0 ? [] : o, v = l.onChange, S = f.getFieldValue, y = function() {
|
|
48
|
+
var r = S(s || []);
|
|
49
|
+
return r || [];
|
|
50
|
+
}, U = {
|
|
51
|
+
add: function(r, e) {
|
|
52
|
+
var a = y();
|
|
53
|
+
e >= 0 && e <= a.length ? (t.keys = [].concat(i(t.keys.slice(0, e)), [t.id], i(t.keys.slice(e))), v([].concat(i(a.slice(0, e)), [r], i(a.slice(e))))) : (process.env.NODE_ENV !== "production" && (e < 0 || e > a.length) && k(!1, "The second parameter of the add function should be a valid positive number."), t.keys = [].concat(i(t.keys), [t.id]), v([].concat(i(a), [r]))), t.id += 1;
|
|
54
|
+
},
|
|
55
|
+
remove: function(r) {
|
|
56
|
+
var e = y(), a = new Set(Array.isArray(r) ? r : [r]);
|
|
57
|
+
a.size <= 0 || (t.keys = t.keys.filter(function(_, h) {
|
|
58
|
+
return !a.has(h);
|
|
59
|
+
}), v(e.filter(function(_, h) {
|
|
60
|
+
return !a.has(h);
|
|
61
|
+
})));
|
|
62
|
+
},
|
|
63
|
+
move: function(r, e) {
|
|
64
|
+
if (r !== e) {
|
|
65
|
+
var a = y();
|
|
66
|
+
r < 0 || r >= a.length || e < 0 || e >= a.length || (t.keys = F(t.keys, r, e), v(F(a, r, e)));
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}, g = m || [];
|
|
70
|
+
return Array.isArray(g) || (g = [], process.env.NODE_ENV !== "production" && k(!1, "Current value of '".concat(s.join(" > "), "' is not an array type."))), V(g.map(function(p, r) {
|
|
71
|
+
var e = t.keys[r];
|
|
72
|
+
return e === void 0 && (t.keys[r] = t.id, e = t.keys[r], t.id += 1), {
|
|
73
|
+
name: r,
|
|
74
|
+
key: e,
|
|
75
|
+
isListField: !0
|
|
76
|
+
};
|
|
77
|
+
}), U, c);
|
|
78
|
+
})));
|
|
79
|
+
}
|
|
80
|
+
export {
|
|
81
|
+
G as default
|
|
82
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import m from "./Field.mjs";
|
|
3
|
+
import e from "./List.mjs";
|
|
4
|
+
import t from "./useForm.mjs";
|
|
5
|
+
import i from "./Form.mjs";
|
|
6
|
+
import { FormProvider as a } from "./FormContext.mjs";
|
|
7
|
+
import "../../rc-util/es/warning.mjs";
|
|
8
|
+
import f from "./useWatch.mjs";
|
|
9
|
+
var p = /* @__PURE__ */ o.forwardRef(i), r = p;
|
|
10
|
+
r.FormProvider = a;
|
|
11
|
+
r.Field = m;
|
|
12
|
+
r.List = e;
|
|
13
|
+
r.useForm = t;
|
|
14
|
+
r.useWatch = f;
|
|
15
|
+
export {
|
|
16
|
+
m as Field,
|
|
17
|
+
a as FormProvider,
|
|
18
|
+
e as List,
|
|
19
|
+
r as default,
|
|
20
|
+
t as useForm,
|
|
21
|
+
f as useWatch
|
|
22
|
+
};
|