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,159 @@
|
|
|
1
|
+
import b from "../../../@babel/runtime/helpers/esm/objectSpread2.mjs";
|
|
2
|
+
import q from "../../../@babel/runtime/helpers/esm/toConsumableArray.mjs";
|
|
3
|
+
import C from "../../../@babel/runtime/helpers/esm/typeof.mjs";
|
|
4
|
+
import J from "../../../@babel/runtime/helpers/esm/classCallCheck.mjs";
|
|
5
|
+
import K from "../../../@babel/runtime/helpers/esm/createClass.mjs";
|
|
6
|
+
import w from "../../../@babel/runtime/helpers/esm/defineProperty.mjs";
|
|
7
|
+
import { messages as T, newMessages as L } from "./messages.mjs";
|
|
8
|
+
import { warning as N, deepMerge as R, asyncMap as Q, format as U, convertFieldsError as S, complementError as W } from "./util.mjs";
|
|
9
|
+
import A from "./validator/index.mjs";
|
|
10
|
+
var M = /* @__PURE__ */ function() {
|
|
11
|
+
function h(g) {
|
|
12
|
+
J(this, h), w(this, "rules", null), w(this, "_messages", T), this.define(g);
|
|
13
|
+
}
|
|
14
|
+
return K(h, [{
|
|
15
|
+
key: "define",
|
|
16
|
+
value: function(t) {
|
|
17
|
+
var u = this;
|
|
18
|
+
if (!t)
|
|
19
|
+
throw new Error("Cannot configure a schema with no rules");
|
|
20
|
+
if (C(t) !== "object" || Array.isArray(t))
|
|
21
|
+
throw new Error("Rules must be an object");
|
|
22
|
+
this.rules = {}, Object.keys(t).forEach(function(v) {
|
|
23
|
+
var k = t[v];
|
|
24
|
+
u.rules[v] = Array.isArray(k) ? k : [k];
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}, {
|
|
28
|
+
key: "messages",
|
|
29
|
+
value: function(t) {
|
|
30
|
+
return t && (this._messages = R(L(), t)), this._messages;
|
|
31
|
+
}
|
|
32
|
+
}, {
|
|
33
|
+
key: "validate",
|
|
34
|
+
value: function(t) {
|
|
35
|
+
var u = this, v = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, k = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function() {
|
|
36
|
+
}, l = t, n = v, E = k;
|
|
37
|
+
if (typeof n == "function" && (E = n, n = {}), !this.rules || Object.keys(this.rules).length === 0)
|
|
38
|
+
return E && E(null, l), Promise.resolve(l);
|
|
39
|
+
function B(r) {
|
|
40
|
+
var a = [], e = {};
|
|
41
|
+
function m(o) {
|
|
42
|
+
if (Array.isArray(o)) {
|
|
43
|
+
var s;
|
|
44
|
+
a = (s = a).concat.apply(s, q(o));
|
|
45
|
+
} else
|
|
46
|
+
a.push(o);
|
|
47
|
+
}
|
|
48
|
+
for (var i = 0; i < r.length; i++)
|
|
49
|
+
m(r[i]);
|
|
50
|
+
a.length ? (e = S(a), E(a, e)) : E(null, l);
|
|
51
|
+
}
|
|
52
|
+
if (n.messages) {
|
|
53
|
+
var j = this.messages();
|
|
54
|
+
j === T && (j = L()), R(j, n.messages), n.messages = j;
|
|
55
|
+
} else
|
|
56
|
+
n.messages = this.messages();
|
|
57
|
+
var O = {}, D = n.keys || Object.keys(this.rules);
|
|
58
|
+
D.forEach(function(r) {
|
|
59
|
+
var a = u.rules[r], e = l[r];
|
|
60
|
+
a.forEach(function(m) {
|
|
61
|
+
var i = m;
|
|
62
|
+
typeof i.transform == "function" && (l === t && (l = b({}, l)), e = l[r] = i.transform(e), e != null && (i.type = i.type || (Array.isArray(e) ? "array" : C(e)))), typeof i == "function" ? i = {
|
|
63
|
+
validator: i
|
|
64
|
+
} : i = b({}, i), i.validator = u.getValidationMethod(i), i.validator && (i.field = r, i.fullField = i.fullField || r, i.type = u.getType(i), O[r] = O[r] || [], O[r].push({
|
|
65
|
+
rule: i,
|
|
66
|
+
value: e,
|
|
67
|
+
source: l,
|
|
68
|
+
field: r
|
|
69
|
+
}));
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
var G = {};
|
|
73
|
+
return Q(O, n, function(r, a) {
|
|
74
|
+
var e = r.rule, m = (e.type === "object" || e.type === "array") && (C(e.fields) === "object" || C(e.defaultField) === "object");
|
|
75
|
+
m = m && (e.required || !e.required && r.value), e.field = r.field;
|
|
76
|
+
function i(f, y) {
|
|
77
|
+
return b(b({}, y), {}, {
|
|
78
|
+
fullField: "".concat(e.fullField, ".").concat(f),
|
|
79
|
+
fullFields: e.fullFields ? [].concat(q(e.fullFields), [f]) : [f]
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
function o() {
|
|
83
|
+
var f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], y = Array.isArray(f) ? f : [f];
|
|
84
|
+
!n.suppressWarning && y.length && h.warning("async-validator:", y), y.length && e.message !== void 0 && (y = [].concat(e.message));
|
|
85
|
+
var d = y.map(W(e, l));
|
|
86
|
+
if (n.first && d.length)
|
|
87
|
+
return G[e.field] = 1, a(d);
|
|
88
|
+
if (!m)
|
|
89
|
+
a(d);
|
|
90
|
+
else {
|
|
91
|
+
if (e.required && !r.value)
|
|
92
|
+
return e.message !== void 0 ? d = [].concat(e.message).map(W(e, l)) : n.error && (d = [n.error(e, U(n.messages.required, e.field))]), a(d);
|
|
93
|
+
var F = {};
|
|
94
|
+
e.defaultField && Object.keys(r.value).map(function(p) {
|
|
95
|
+
F[p] = e.defaultField;
|
|
96
|
+
}), F = b(b({}, F), r.rule.fields);
|
|
97
|
+
var x = {};
|
|
98
|
+
Object.keys(F).forEach(function(p) {
|
|
99
|
+
var c = F[p], H = Array.isArray(c) ? c : [c];
|
|
100
|
+
x[p] = H.map(i.bind(null, p));
|
|
101
|
+
});
|
|
102
|
+
var P = new h(x);
|
|
103
|
+
P.messages(n.messages), r.rule.options && (r.rule.options.messages = n.messages, r.rule.options.error = n.error), P.validate(r.value, r.rule.options || n, function(p) {
|
|
104
|
+
var c = [];
|
|
105
|
+
d && d.length && c.push.apply(c, q(d)), p && p.length && c.push.apply(c, q(p)), a(c.length ? c : null);
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
var s;
|
|
110
|
+
if (e.asyncValidator)
|
|
111
|
+
s = e.asyncValidator(e, r.value, o, r.source, n);
|
|
112
|
+
else if (e.validator) {
|
|
113
|
+
try {
|
|
114
|
+
s = e.validator(e, r.value, o, r.source, n);
|
|
115
|
+
} catch (f) {
|
|
116
|
+
var V, _;
|
|
117
|
+
(V = (_ = console).error) === null || V === void 0 || V.call(_, f), n.suppressValidatorError || setTimeout(function() {
|
|
118
|
+
throw f;
|
|
119
|
+
}, 0), o(f.message);
|
|
120
|
+
}
|
|
121
|
+
s === !0 ? o() : s === !1 ? o(typeof e.message == "function" ? e.message(e.fullField || e.field) : e.message || "".concat(e.fullField || e.field, " fails")) : s instanceof Array ? o(s) : s instanceof Error && o(s.message);
|
|
122
|
+
}
|
|
123
|
+
s && s.then && s.then(function() {
|
|
124
|
+
return o();
|
|
125
|
+
}, function(f) {
|
|
126
|
+
return o(f);
|
|
127
|
+
});
|
|
128
|
+
}, function(r) {
|
|
129
|
+
B(r);
|
|
130
|
+
}, l);
|
|
131
|
+
}
|
|
132
|
+
}, {
|
|
133
|
+
key: "getType",
|
|
134
|
+
value: function(t) {
|
|
135
|
+
if (t.type === void 0 && t.pattern instanceof RegExp && (t.type = "pattern"), typeof t.validator != "function" && t.type && !A.hasOwnProperty(t.type))
|
|
136
|
+
throw new Error(U("Unknown rule type %s", t.type));
|
|
137
|
+
return t.type || "string";
|
|
138
|
+
}
|
|
139
|
+
}, {
|
|
140
|
+
key: "getValidationMethod",
|
|
141
|
+
value: function(t) {
|
|
142
|
+
if (typeof t.validator == "function")
|
|
143
|
+
return t.validator;
|
|
144
|
+
var u = Object.keys(t), v = u.indexOf("message");
|
|
145
|
+
return v !== -1 && u.splice(v, 1), u.length === 1 && u[0] === "required" ? A.required : A[this.getType(t)] || void 0;
|
|
146
|
+
}
|
|
147
|
+
}]), h;
|
|
148
|
+
}();
|
|
149
|
+
w(M, "register", function(g, t) {
|
|
150
|
+
if (typeof t != "function")
|
|
151
|
+
throw new Error("Cannot register a validator by type, validator is not a function");
|
|
152
|
+
A[g] = t;
|
|
153
|
+
});
|
|
154
|
+
w(M, "warning", N);
|
|
155
|
+
w(M, "messages", T);
|
|
156
|
+
w(M, "validators", A);
|
|
157
|
+
export {
|
|
158
|
+
M as default
|
|
159
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
function e() {
|
|
2
|
+
return {
|
|
3
|
+
default: "Validation error on field %s",
|
|
4
|
+
required: "%s is required",
|
|
5
|
+
enum: "%s must be one of %s",
|
|
6
|
+
whitespace: "%s cannot be empty",
|
|
7
|
+
date: {
|
|
8
|
+
format: "%s date %s is invalid for format %s",
|
|
9
|
+
parse: "%s date could not be parsed, %s is invalid ",
|
|
10
|
+
invalid: "%s date %s is invalid"
|
|
11
|
+
},
|
|
12
|
+
types: {
|
|
13
|
+
string: "%s is not a %s",
|
|
14
|
+
method: "%s is not a %s (function)",
|
|
15
|
+
array: "%s is not an %s",
|
|
16
|
+
object: "%s is not an %s",
|
|
17
|
+
number: "%s is not a %s",
|
|
18
|
+
date: "%s is not a %s",
|
|
19
|
+
boolean: "%s is not a %s",
|
|
20
|
+
integer: "%s is not an %s",
|
|
21
|
+
float: "%s is not a %s",
|
|
22
|
+
regexp: "%s is not a valid %s",
|
|
23
|
+
email: "%s is not a valid %s",
|
|
24
|
+
url: "%s is not a valid %s",
|
|
25
|
+
hex: "%s is not a valid %s"
|
|
26
|
+
},
|
|
27
|
+
string: {
|
|
28
|
+
len: "%s must be exactly %s characters",
|
|
29
|
+
min: "%s must be at least %s characters",
|
|
30
|
+
max: "%s cannot be longer than %s characters",
|
|
31
|
+
range: "%s must be between %s and %s characters"
|
|
32
|
+
},
|
|
33
|
+
number: {
|
|
34
|
+
len: "%s must equal %s",
|
|
35
|
+
min: "%s cannot be less than %s",
|
|
36
|
+
max: "%s cannot be greater than %s",
|
|
37
|
+
range: "%s must be between %s and %s"
|
|
38
|
+
},
|
|
39
|
+
array: {
|
|
40
|
+
len: "%s must be exactly %s in length",
|
|
41
|
+
min: "%s cannot be less than %s in length",
|
|
42
|
+
max: "%s cannot be greater than %s in length",
|
|
43
|
+
range: "%s must be between %s and %s in length"
|
|
44
|
+
},
|
|
45
|
+
pattern: {
|
|
46
|
+
mismatch: "%s value %s does not match pattern %s"
|
|
47
|
+
},
|
|
48
|
+
clone: function() {
|
|
49
|
+
var s = JSON.parse(JSON.stringify(this));
|
|
50
|
+
return s.clone = this.clone, s;
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
var a = e();
|
|
55
|
+
export {
|
|
56
|
+
a as messages,
|
|
57
|
+
e as newMessages
|
|
58
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import r from "./enum.mjs";
|
|
2
|
+
import e from "./pattern.mjs";
|
|
3
|
+
import t from "./range.mjs";
|
|
4
|
+
import m from "./required.mjs";
|
|
5
|
+
import o from "./type.mjs";
|
|
6
|
+
import p from "./whitespace.mjs";
|
|
7
|
+
const c = {
|
|
8
|
+
required: m,
|
|
9
|
+
whitespace: p,
|
|
10
|
+
type: o,
|
|
11
|
+
range: t,
|
|
12
|
+
enum: r,
|
|
13
|
+
pattern: e
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
c as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { format as p } from "../util.mjs";
|
|
2
|
+
var r = function(t, a, i, e, n) {
|
|
3
|
+
if (t.pattern) {
|
|
4
|
+
if (t.pattern instanceof RegExp)
|
|
5
|
+
t.pattern.lastIndex = 0, t.pattern.test(a) || e.push(p(n.messages.pattern.mismatch, t.fullField, a, t.pattern));
|
|
6
|
+
else if (typeof t.pattern == "string") {
|
|
7
|
+
var s = new RegExp(t.pattern);
|
|
8
|
+
s.test(a) || e.push(p(n.messages.pattern.mismatch, t.fullField, a, t.pattern));
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
r as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { format as s } from "../util.mjs";
|
|
2
|
+
var b = function(a, n, h, f, i) {
|
|
3
|
+
var l = typeof a.len == "number", g = typeof a.min == "number", t = typeof a.max == "number", x = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, m = n, e = null, y = typeof n == "number", r = typeof n == "string", p = Array.isArray(n);
|
|
4
|
+
if (y ? e = "number" : r ? e = "string" : p && (e = "array"), !e)
|
|
5
|
+
return !1;
|
|
6
|
+
p && (m = n.length), r && (m = n.replace(x, "_").length), l ? m !== a.len && f.push(s(i.messages[e].len, a.fullField, a.len)) : g && !t && m < a.min ? f.push(s(i.messages[e].min, a.fullField, a.min)) : t && !g && m > a.max ? f.push(s(i.messages[e].max, a.fullField, a.max)) : g && t && (m < a.min || m > a.max) && f.push(s(i.messages[e].range, a.fullField, a.min, a.max));
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
b as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import p from "../../../../@babel/runtime/helpers/esm/typeof.mjs";
|
|
2
|
+
import { format as u } from "../util.mjs";
|
|
3
|
+
import y from "./required.mjs";
|
|
4
|
+
import g from "./url.mjs";
|
|
5
|
+
var m = {
|
|
6
|
+
// http://emailregex.com/
|
|
7
|
+
email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,
|
|
8
|
+
// url: new RegExp(
|
|
9
|
+
// '^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$',
|
|
10
|
+
// 'i',
|
|
11
|
+
// ),
|
|
12
|
+
hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
|
|
13
|
+
}, f = {
|
|
14
|
+
integer: function(t) {
|
|
15
|
+
return f.number(t) && parseInt(t, 10) === t;
|
|
16
|
+
},
|
|
17
|
+
float: function(t) {
|
|
18
|
+
return f.number(t) && !f.integer(t);
|
|
19
|
+
},
|
|
20
|
+
array: function(t) {
|
|
21
|
+
return Array.isArray(t);
|
|
22
|
+
},
|
|
23
|
+
regexp: function(t) {
|
|
24
|
+
if (t instanceof RegExp)
|
|
25
|
+
return !0;
|
|
26
|
+
try {
|
|
27
|
+
return !!new RegExp(t);
|
|
28
|
+
} catch {
|
|
29
|
+
return !1;
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
date: function(t) {
|
|
33
|
+
return typeof t.getTime == "function" && typeof t.getMonth == "function" && typeof t.getYear == "function" && !isNaN(t.getTime());
|
|
34
|
+
},
|
|
35
|
+
number: function(t) {
|
|
36
|
+
return isNaN(t) ? !1 : typeof t == "number";
|
|
37
|
+
},
|
|
38
|
+
object: function(t) {
|
|
39
|
+
return p(t) === "object" && !f.array(t);
|
|
40
|
+
},
|
|
41
|
+
method: function(t) {
|
|
42
|
+
return typeof t == "function";
|
|
43
|
+
},
|
|
44
|
+
email: function(t) {
|
|
45
|
+
return typeof t == "string" && t.length <= 320 && !!t.match(m.email);
|
|
46
|
+
},
|
|
47
|
+
url: function(t) {
|
|
48
|
+
return typeof t == "string" && t.length <= 2048 && !!t.match(g());
|
|
49
|
+
},
|
|
50
|
+
hex: function(t) {
|
|
51
|
+
return typeof t == "string" && !!t.match(m.hex);
|
|
52
|
+
}
|
|
53
|
+
}, x = function(t, r, a, i, o) {
|
|
54
|
+
if (t.required && r === void 0) {
|
|
55
|
+
y(t, r, a, i, o);
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
var c = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], n = t.type;
|
|
59
|
+
c.indexOf(n) > -1 ? f[n](r) || i.push(u(o.messages.types[n], t.fullField, t.type)) : n && p(r) !== t.type && i.push(u(o.messages.types[n], t.fullField, t.type));
|
|
60
|
+
};
|
|
61
|
+
export {
|
|
62
|
+
x as default
|
|
63
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var v;
|
|
2
|
+
const F = function() {
|
|
3
|
+
if (v)
|
|
4
|
+
return v;
|
|
5
|
+
var f = "[a-fA-F\\d:]", o = function(n) {
|
|
6
|
+
return n && n.includeBoundaries ? "(?:(?<=\\s|^)(?=".concat(f, ")|(?<=").concat(f, ")(?=\\s|$))") : "";
|
|
7
|
+
}, a = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}", c = "[a-fA-F\\d]{1,4}", u = [
|
|
8
|
+
"(?:".concat(c, ":){7}(?:").concat(c, "|:)"),
|
|
9
|
+
// 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
|
10
|
+
"(?:".concat(c, ":){6}(?:").concat(a, "|:").concat(c, "|:)"),
|
|
11
|
+
// 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::
|
|
12
|
+
"(?:".concat(c, ":){5}(?::").concat(a, "|(?::").concat(c, "){1,2}|:)"),
|
|
13
|
+
// 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::
|
|
14
|
+
"(?:".concat(c, ":){4}(?:(?::").concat(c, "){0,1}:").concat(a, "|(?::").concat(c, "){1,3}|:)"),
|
|
15
|
+
// 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::
|
|
16
|
+
"(?:".concat(c, ":){3}(?:(?::").concat(c, "){0,2}:").concat(a, "|(?::").concat(c, "){1,4}|:)"),
|
|
17
|
+
// 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::
|
|
18
|
+
"(?:".concat(c, ":){2}(?:(?::").concat(c, "){0,3}:").concat(a, "|(?::").concat(c, "){1,5}|:)"),
|
|
19
|
+
// 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::
|
|
20
|
+
"(?:".concat(c, ":){1}(?:(?::").concat(c, "){0,4}:").concat(a, "|(?::").concat(c, "){1,6}|:)"),
|
|
21
|
+
// 1:: 1::3:4:5:6:7:8 1::8 1::
|
|
22
|
+
"(?::(?:(?::".concat(c, "){0,5}:").concat(a, "|(?::").concat(c, "){1,7}|:))")
|
|
23
|
+
// ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::
|
|
24
|
+
], d = "(?:%[0-9a-zA-Z]{1,})?", r = "(?:".concat(u.join("|"), ")").concat(d), x = new RegExp("(?:^".concat(a, "$)|(?:^").concat(r, "$)")), g = new RegExp("^".concat(a, "$")), w = new RegExp("^".concat(r, "$")), e = function(n) {
|
|
25
|
+
return n && n.exact ? x : new RegExp("(?:".concat(o(n)).concat(a).concat(o(n), ")|(?:").concat(o(n)).concat(r).concat(o(n), ")"), "g");
|
|
26
|
+
};
|
|
27
|
+
e.v4 = function(t) {
|
|
28
|
+
return t && t.exact ? g : new RegExp("".concat(o(t)).concat(a).concat(o(t)), "g");
|
|
29
|
+
}, e.v6 = function(t) {
|
|
30
|
+
return t && t.exact ? w : new RegExp("".concat(o(t)).concat(r).concat(o(t)), "g");
|
|
31
|
+
};
|
|
32
|
+
var E = "(?:(?:[a-z]+:)?//)", R = "(?:\\S+(?::\\S*)?@)?", l = e.v4().source, z = e.v6().source, $ = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", h = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", i = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", p = "(?::\\d{2,5})?", A = '(?:[/?#][^\\s"]*)?', b = "(?:".concat(E, "|www\\.)").concat(R, "(?:localhost|").concat(l, "|").concat(z, "|").concat($).concat(h).concat(i, ")").concat(p).concat(A);
|
|
33
|
+
return v = new RegExp("(?:^".concat(b, "$)"), "i"), v;
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
F as default
|
|
37
|
+
};
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import g from "../../../@babel/runtime/helpers/esm/objectSpread2.mjs";
|
|
2
|
+
import w from "../../../@babel/runtime/helpers/esm/typeof.mjs";
|
|
3
|
+
import F from "../../../@babel/runtime/helpers/esm/createClass.mjs";
|
|
4
|
+
import S from "../../../@babel/runtime/helpers/esm/classCallCheck.mjs";
|
|
5
|
+
import E from "../../../@babel/runtime/helpers/esm/assertThisInitialized.mjs";
|
|
6
|
+
import j from "../../../@babel/runtime/helpers/esm/inherits.mjs";
|
|
7
|
+
import x from "../../../@babel/runtime/helpers/esm/createSuper.mjs";
|
|
8
|
+
import C from "../../../@babel/runtime/helpers/esm/wrapNativeSuper.mjs";
|
|
9
|
+
import A from "../../../@babel/runtime/helpers/esm/defineProperty.mjs";
|
|
10
|
+
import V from "../../../@babel/runtime/helpers/esm/toConsumableArray.mjs";
|
|
11
|
+
var b = /%[sdj%]/g, P = function() {
|
|
12
|
+
};
|
|
13
|
+
typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (P = function(t, r) {
|
|
14
|
+
typeof console < "u" && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING > "u" && r.every(function(e) {
|
|
15
|
+
return typeof e == "string";
|
|
16
|
+
}) && console.warn(t, r);
|
|
17
|
+
});
|
|
18
|
+
function O(n) {
|
|
19
|
+
if (!n || !n.length)
|
|
20
|
+
return null;
|
|
21
|
+
var t = {};
|
|
22
|
+
return n.forEach(function(r) {
|
|
23
|
+
var e = r.field;
|
|
24
|
+
t[e] = t[e] || [], t[e].push(r);
|
|
25
|
+
}), t;
|
|
26
|
+
}
|
|
27
|
+
function Q(n) {
|
|
28
|
+
for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), e = 1; e < t; e++)
|
|
29
|
+
r[e - 1] = arguments[e];
|
|
30
|
+
var f = 0, i = r.length;
|
|
31
|
+
if (typeof n == "function")
|
|
32
|
+
return n.apply(null, r);
|
|
33
|
+
if (typeof n == "string") {
|
|
34
|
+
var a = n.replace(b, function(u) {
|
|
35
|
+
if (u === "%%")
|
|
36
|
+
return "%";
|
|
37
|
+
if (f >= i)
|
|
38
|
+
return u;
|
|
39
|
+
switch (u) {
|
|
40
|
+
case "%s":
|
|
41
|
+
return String(r[f++]);
|
|
42
|
+
case "%d":
|
|
43
|
+
return Number(r[f++]);
|
|
44
|
+
case "%j":
|
|
45
|
+
try {
|
|
46
|
+
return JSON.stringify(r[f++]);
|
|
47
|
+
} catch {
|
|
48
|
+
return "[Circular]";
|
|
49
|
+
}
|
|
50
|
+
break;
|
|
51
|
+
default:
|
|
52
|
+
return u;
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
return a;
|
|
56
|
+
}
|
|
57
|
+
return n;
|
|
58
|
+
}
|
|
59
|
+
function L(n) {
|
|
60
|
+
return n === "string" || n === "url" || n === "hex" || n === "email" || n === "date" || n === "pattern";
|
|
61
|
+
}
|
|
62
|
+
function U(n, t) {
|
|
63
|
+
return !!(n == null || t === "array" && Array.isArray(n) && !n.length || L(t) && typeof n == "string" && !n);
|
|
64
|
+
}
|
|
65
|
+
function I(n, t, r) {
|
|
66
|
+
var e = [], f = 0, i = n.length;
|
|
67
|
+
function a(u) {
|
|
68
|
+
e.push.apply(e, V(u || [])), f++, f === i && r(e);
|
|
69
|
+
}
|
|
70
|
+
n.forEach(function(u) {
|
|
71
|
+
t(u, a);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
function _(n, t, r) {
|
|
75
|
+
var e = 0, f = n.length;
|
|
76
|
+
function i(a) {
|
|
77
|
+
if (a && a.length) {
|
|
78
|
+
r(a);
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
var u = e;
|
|
82
|
+
e = e + 1, u < f ? t(n[u], i) : r([]);
|
|
83
|
+
}
|
|
84
|
+
i([]);
|
|
85
|
+
}
|
|
86
|
+
function R(n) {
|
|
87
|
+
var t = [];
|
|
88
|
+
return Object.keys(n).forEach(function(r) {
|
|
89
|
+
t.push.apply(t, V(n[r] || []));
|
|
90
|
+
}), t;
|
|
91
|
+
}
|
|
92
|
+
var N = /* @__PURE__ */ function(n) {
|
|
93
|
+
j(r, n);
|
|
94
|
+
var t = x(r);
|
|
95
|
+
function r(e, f) {
|
|
96
|
+
var i;
|
|
97
|
+
return S(this, r), i = t.call(this, "Async Validation Error"), A(E(i), "errors", void 0), A(E(i), "fields", void 0), i.errors = e, i.fields = f, i;
|
|
98
|
+
}
|
|
99
|
+
return F(r);
|
|
100
|
+
}(/* @__PURE__ */ C(Error));
|
|
101
|
+
function X(n, t, r, e, f) {
|
|
102
|
+
if (t.first) {
|
|
103
|
+
var i = new Promise(function(o, v) {
|
|
104
|
+
var d = function(p) {
|
|
105
|
+
return e(p), p.length ? v(new N(p, O(p))) : o(f);
|
|
106
|
+
}, c = R(n);
|
|
107
|
+
_(c, r, d);
|
|
108
|
+
});
|
|
109
|
+
return i.catch(function(o) {
|
|
110
|
+
return o;
|
|
111
|
+
}), i;
|
|
112
|
+
}
|
|
113
|
+
var a = t.firstFields === !0 ? Object.keys(n) : t.firstFields || [], u = Object.keys(n), h = u.length, m = 0, l = [], y = new Promise(function(o, v) {
|
|
114
|
+
var d = function(s) {
|
|
115
|
+
if (l.push.apply(l, s), m++, m === h)
|
|
116
|
+
return e(l), l.length ? v(new N(l, O(l))) : o(f);
|
|
117
|
+
};
|
|
118
|
+
u.length || (e(l), o(f)), u.forEach(function(c) {
|
|
119
|
+
var s = n[c];
|
|
120
|
+
a.indexOf(c) !== -1 ? _(s, r, d) : I(s, r, d);
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
return y.catch(function(o) {
|
|
124
|
+
return o;
|
|
125
|
+
}), y;
|
|
126
|
+
}
|
|
127
|
+
function T(n) {
|
|
128
|
+
return !!(n && n.message !== void 0);
|
|
129
|
+
}
|
|
130
|
+
function D(n, t) {
|
|
131
|
+
for (var r = n, e = 0; e < t.length; e++) {
|
|
132
|
+
if (r == null)
|
|
133
|
+
return r;
|
|
134
|
+
r = r[t[e]];
|
|
135
|
+
}
|
|
136
|
+
return r;
|
|
137
|
+
}
|
|
138
|
+
function Z(n, t) {
|
|
139
|
+
return function(r) {
|
|
140
|
+
var e;
|
|
141
|
+
return n.fullFields ? e = D(t, n.fullFields) : e = t[r.field || n.fullField], T(r) ? (r.field = r.field || n.fullField, r.fieldValue = e, r) : {
|
|
142
|
+
message: typeof r == "function" ? r() : r,
|
|
143
|
+
fieldValue: e,
|
|
144
|
+
field: r.field || n.fullField
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
function $(n, t) {
|
|
149
|
+
if (t) {
|
|
150
|
+
for (var r in t)
|
|
151
|
+
if (t.hasOwnProperty(r)) {
|
|
152
|
+
var e = t[r];
|
|
153
|
+
w(e) === "object" && w(n[r]) === "object" ? n[r] = g(g({}, n[r]), e) : n[r] = e;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
return n;
|
|
157
|
+
}
|
|
158
|
+
export {
|
|
159
|
+
N as AsyncValidationError,
|
|
160
|
+
X as asyncMap,
|
|
161
|
+
Z as complementError,
|
|
162
|
+
O as convertFieldsError,
|
|
163
|
+
$ as deepMerge,
|
|
164
|
+
Q as format,
|
|
165
|
+
U as isEmptyValue,
|
|
166
|
+
P as warning
|
|
167
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import o from "../rule/index.mjs";
|
|
2
|
+
import { isEmptyValue as n } from "../util.mjs";
|
|
3
|
+
var s = function(r, i, e, t, d) {
|
|
4
|
+
var a = [], f = r.required || !r.required && t.hasOwnProperty(r.field);
|
|
5
|
+
if (f) {
|
|
6
|
+
if (n(i) && !r.required)
|
|
7
|
+
return e();
|
|
8
|
+
o.required(r, i, t, a, d);
|
|
9
|
+
}
|
|
10
|
+
e(a);
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
s as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import a from "../rule/index.mjs";
|
|
2
|
+
var m = function(r, d, e, i, n) {
|
|
3
|
+
var f = [], t = r.required || !r.required && i.hasOwnProperty(r.field);
|
|
4
|
+
if (t) {
|
|
5
|
+
if (d == null && !r.required)
|
|
6
|
+
return e();
|
|
7
|
+
a.required(r, d, i, f, n, "array"), d != null && (a.type(r, d, i, f, n), a.range(r, d, i, f, n));
|
|
8
|
+
}
|
|
9
|
+
e(f);
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
m as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import o from "../rule/index.mjs";
|
|
2
|
+
import { isEmptyValue as a } from "../util.mjs";
|
|
3
|
+
var y = function(r, i, f, e, t) {
|
|
4
|
+
var d = [], n = r.required || !r.required && e.hasOwnProperty(r.field);
|
|
5
|
+
if (n) {
|
|
6
|
+
if (a(i) && !r.required)
|
|
7
|
+
return f();
|
|
8
|
+
o.required(r, i, e, d, t), i !== void 0 && o.type(r, i, e, d, t);
|
|
9
|
+
}
|
|
10
|
+
f(d);
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
y as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import d from "../rule/index.mjs";
|
|
2
|
+
import { isEmptyValue as n } from "../util.mjs";
|
|
3
|
+
var o = function(r, i, m, e, a) {
|
|
4
|
+
var t = [], p = r.required || !r.required && e.hasOwnProperty(r.field);
|
|
5
|
+
if (p) {
|
|
6
|
+
if (n(i, "date") && !r.required)
|
|
7
|
+
return m();
|
|
8
|
+
if (d.required(r, i, e, t, a), !n(i, "date")) {
|
|
9
|
+
var f;
|
|
10
|
+
i instanceof Date ? f = i : f = new Date(i), d.type(r, f, e, t, a), f && d.range(r, f.getTime(), e, t, a);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
m(t);
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
o as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import n from "../rule/index.mjs";
|
|
2
|
+
import { isEmptyValue as a } from "../util.mjs";
|
|
3
|
+
var o = "enum", s = function(r, e, f, i, m) {
|
|
4
|
+
var d = [], t = r.required || !r.required && i.hasOwnProperty(r.field);
|
|
5
|
+
if (t) {
|
|
6
|
+
if (a(e) && !r.required)
|
|
7
|
+
return f();
|
|
8
|
+
n.required(r, e, i, d, m), e !== void 0 && n[o](r, e, i, d, m);
|
|
9
|
+
}
|
|
10
|
+
f(d);
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
s as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import e from "../rule/index.mjs";
|
|
2
|
+
import { isEmptyValue as m } from "../util.mjs";
|
|
3
|
+
var y = function(r, i, n, f, d) {
|
|
4
|
+
var t = [], a = r.required || !r.required && f.hasOwnProperty(r.field);
|
|
5
|
+
if (a) {
|
|
6
|
+
if (m(i) && !r.required)
|
|
7
|
+
return n();
|
|
8
|
+
e.required(r, i, f, t, d), i !== void 0 && (e.type(r, i, f, t, d), e.range(r, i, f, t, d));
|
|
9
|
+
}
|
|
10
|
+
n(t);
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
y as default
|
|
14
|
+
};
|