@easyv/biz-components 1.0.20 → 1.0.22
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/_virtual/index.es6.js +2 -2
- package/dist/_virtual/index.es7.js +5 -0
- package/dist/_virtual/index.es7.js.map +1 -0
- package/dist/_virtual/react-is.development.es2.js +5 -0
- package/dist/_virtual/react-is.development.es2.js.map +1 -0
- package/dist/_virtual/react-is.production.min.es2.js +5 -0
- package/dist/_virtual/react-is.production.min.es2.js.map +1 -0
- package/dist/ant-components/index.d.ts +1 -0
- package/dist/ant-components/input/index.d.ts +1 -0
- package/dist/ant-components/input/input.d.ts +9 -0
- package/dist/ant-components/input/input.es.js +13 -0
- package/dist/ant-components/input/input.es.js.map +1 -0
- package/dist/ant-components/input/input.module.less.es.js +7 -0
- package/dist/ant-components/input/input.module.less.es.js.map +1 -0
- package/dist/components/ai-message-render/ai-message-render.es.js +2 -2
- package/dist/components/ai-message-render/ai-message-render.es.js.map +1 -1
- package/dist/components/ai-model-select/ai-model-select-panel.d.ts +3 -1
- package/dist/components/ai-model-select/ai-model-select-panel.es.js +152 -0
- package/dist/components/ai-model-select/ai-model-select-panel.es.js.map +1 -0
- package/dist/components/ai-model-select/iconBtn.d.ts +6 -0
- package/dist/components/ai-model-select/iconBtn.es.js +21 -0
- package/dist/components/ai-model-select/iconBtn.es.js.map +1 -0
- package/dist/components/ai-model-select/types.d.ts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +4 -0
- package/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@ant-design_colors@6.0.0/node_modules/@ant-design/colors/dist/index.esm.es.js +176 -0
- package/dist/node_modules/.pnpm/@ant-design_colors@6.0.0/node_modules/@ant-design/colors/dist/index.esm.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/CloseCircleFilled.es.js +5 -0
- package/dist/node_modules/.pnpm/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/CloseCircleFilled.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/EyeInvisibleOutlined.es.js +5 -0
- package/dist/node_modules/.pnpm/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/EyeInvisibleOutlined.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/EyeOutlined.es.js +5 -0
- package/dist/node_modules/.pnpm/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/EyeOutlined.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/LoadingOutlined.es.js +5 -0
- package/dist/node_modules/.pnpm/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/LoadingOutlined.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.es.js +5 -0
- package/dist/node_modules/.pnpm/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@ant-design_icons@4.8.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@ant-design/icons/es/components/AntdIcon.es.js +47 -0
- package/dist/node_modules/.pnpm/@ant-design_icons@4.8.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@ant-design/icons/es/components/AntdIcon.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@ant-design_icons@4.8.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@ant-design/icons/es/components/Context.es.js +6 -0
- package/dist/node_modules/.pnpm/@ant-design_icons@4.8.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@ant-design/icons/es/components/Context.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@ant-design_icons@4.8.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@ant-design/icons/es/components/IconBase.es.js +56 -0
- package/dist/node_modules/.pnpm/@ant-design_icons@4.8.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@ant-design/icons/es/components/IconBase.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@ant-design_icons@4.8.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@ant-design/icons/es/components/twoTonePrimaryColor.es.js +22 -0
- package/dist/node_modules/.pnpm/@ant-design_icons@4.8.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@ant-design/icons/es/components/twoTonePrimaryColor.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@ant-design_icons@4.8.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@ant-design/icons/es/icons/CloseCircleFilled.es.js +18 -0
- package/dist/node_modules/.pnpm/@ant-design_icons@4.8.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@ant-design/icons/es/icons/CloseCircleFilled.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@ant-design_icons@4.8.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@ant-design/icons/es/icons/EyeInvisibleOutlined.es.js +18 -0
- package/dist/node_modules/.pnpm/@ant-design_icons@4.8.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@ant-design/icons/es/icons/EyeInvisibleOutlined.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@ant-design_icons@4.8.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@ant-design/icons/es/icons/EyeOutlined.es.js +18 -0
- package/dist/node_modules/.pnpm/@ant-design_icons@4.8.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@ant-design/icons/es/icons/EyeOutlined.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@ant-design_icons@4.8.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@ant-design/icons/es/icons/LoadingOutlined.es.js +18 -0
- package/dist/node_modules/.pnpm/@ant-design_icons@4.8.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@ant-design/icons/es/icons/LoadingOutlined.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@ant-design_icons@4.8.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@ant-design/icons/es/icons/SearchOutlined.es.js +18 -0
- package/dist/node_modules/.pnpm/@ant-design_icons@4.8.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@ant-design/icons/es/icons/SearchOutlined.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@ant-design_icons@4.8.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@ant-design/icons/es/utils.es.js +75 -0
- package/dist/node_modules/.pnpm/@ant-design_icons@4.8.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@ant-design/icons/es/utils.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.es.js +9 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.es.js +7 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.es.js +8 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.es.js +8 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.es.js +27 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/classCallCheck.es.js +7 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/classCallCheck.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/createClass.es.js +16 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/createClass.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/createSuper.es.js +18 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/createSuper.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/defineProperty.es.js +13 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/defineProperty.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.es.js +9 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/inherits.es.js +17 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/inherits.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.es.js +14 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/iterableToArray.es.js +7 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/iterableToArray.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.es.js +25 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/nonIterableRest.es.js +7 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/nonIterableRest.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.es.js +7 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/objectSpread2.es.js +26 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/objectSpread2.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.es.js +14 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.es.js +11 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.es.js +289 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.es.js +9 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/slicedToArray.es.js +11 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/slicedToArray.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/toArray.es.js +11 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/toArray.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/toConsumableArray.es.js +11 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/toConsumableArray.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/toPrimitive.es.js +15 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/toPrimitive.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/toPropertyKey.es.js +10 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/toPropertyKey.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/typeof.es.js +12 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/typeof.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.es.js +12 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@ctrl_tinycolor@3.6.1/node_modules/@ctrl/tinycolor/dist/module/conversion.es.js +113 -0
- package/dist/node_modules/.pnpm/@ctrl_tinycolor@3.6.1/node_modules/@ctrl/tinycolor/dist/module/conversion.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@ctrl_tinycolor@3.6.1/node_modules/@ctrl/tinycolor/dist/module/css-color-names.es.js +154 -0
- package/dist/node_modules/.pnpm/@ctrl_tinycolor@3.6.1/node_modules/@ctrl/tinycolor/dist/module/css-color-names.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@ctrl_tinycolor@3.6.1/node_modules/@ctrl/tinycolor/dist/module/format-input.es.js +149 -0
- package/dist/node_modules/.pnpm/@ctrl_tinycolor@3.6.1/node_modules/@ctrl/tinycolor/dist/module/format-input.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@ctrl_tinycolor@3.6.1/node_modules/@ctrl/tinycolor/dist/module/util.es.js +50 -0
- package/dist/node_modules/.pnpm/@ctrl_tinycolor@3.6.1/node_modules/@ctrl/tinycolor/dist/module/util.es.js.map +1 -0
- package/dist/node_modules/.pnpm/@easyv_react-icons@6.3.0/node_modules/@easyv/react-icons/dist/index.esm.es.js +58 -8
- package/dist/node_modules/.pnpm/@easyv_react-icons@6.3.0/node_modules/@easyv/react-icons/dist/index.esm.es.js.map +1 -1
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/_util/raf.es.js +29 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/_util/raf.es.js.map +1 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/_util/reactNode.es.js +21 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/_util/reactNode.es.js.map +1 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/_util/statusUtils.es.js +16 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/_util/statusUtils.es.js.map +1 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/_util/type.es.js +10 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/_util/type.es.js.map +1 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/_util/warning.es.js +18 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/_util/warning.es.js.map +1 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/_util/wave.es.js +194 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/_util/wave.es.js.map +1 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/button/LoadingIcon.es.js +52 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/button/LoadingIcon.es.js.map +1 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/button/button-group.es.js +49 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/button/button-group.es.js.map +1 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/button/button.es.js +182 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/button/button.es.js.map +1 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/button/index.es.js +5 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/button/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/config-provider/DisabledContext.es.js +6 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/config-provider/DisabledContext.es.js.map +1 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/config-provider/SizeContext.es.js +6 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/config-provider/SizeContext.es.js.map +1 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/config-provider/context.es.js +15 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/config-provider/context.es.js.map +1 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/form/context.es.js +29 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/form/context.es.js.map +1 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/input/ClearableLabeledInput.es.js +80 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/input/ClearableLabeledInput.es.js.map +1 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/input/Group.es.js +35 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/input/Group.es.js.map +1 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/input/Input.es.js +166 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/input/Input.es.js.map +1 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/input/Password.es.js +103 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/input/Password.es.js.map +1 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/input/Search.es.js +127 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/input/Search.es.js.map +1 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/input/TextArea.es.js +172 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/input/TextArea.es.js.map +1 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/input/hooks/useRemovePasswordTimeout.es.js +27 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/input/hooks/useRemovePasswordTimeout.es.js.map +1 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/input/index.es.js +14 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/input/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/input/utils.es.js +7 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/input/utils.es.js.map +1 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/space/Compact.es.js +41 -0
- package/dist/node_modules/.pnpm/antd@4.24.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/antd/es/space/Compact.es.js.map +1 -0
- package/dist/node_modules/.pnpm/async-validator@4.2.5/node_modules/async-validator/dist-web/index.es.js +1050 -0
- package/dist/node_modules/.pnpm/async-validator@4.2.5/node_modules/async-validator/dist-web/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/immer@10.1.1/node_modules/immer/dist/immer.es.js +680 -0
- package/dist/node_modules/.pnpm/immer@10.1.1/node_modules/immer/dist/immer.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.es.js +8 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.es.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayReduce.es.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayReduce.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_asciiToArray.es.js +8 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_asciiToArray.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_asciiWords.es.js +9 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_asciiWords.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.es.js +17 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePropertyOf.es.js +10 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePropertyOf.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSlice.es.js +22 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSlice.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.es.js +24 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castSlice.es.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castSlice.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createCaseFirst.es.js +19 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createCaseFirst.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createCompounder.es.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createCompounder.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_deburrLetter.es.js +202 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_deburrLetter.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.es.js +7 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.es.js +28 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasUnicode.es.js +11 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasUnicode.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasUnicodeWord.es.js +9 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasUnicodeWord.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.es.js +10 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.es.js +9 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToArray.es.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToArray.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_unicodeToArray.es.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_unicodeToArray.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_unicodeWords.es.js +21 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_unicodeWords.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/camelCase.es.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/camelCase.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/capitalize.es.js +11 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/capitalize.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/deburr.es.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/deburr.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.es.js +6 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.es.js +8 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.es.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.es.js +10 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/upperFirst.es.js +8 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/upperFirst.es.js.map +1 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/words.es.js +18 -0
- package/dist/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/words.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/Field.es.js +427 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/Field.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/FieldContext.es.js +45 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/FieldContext.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/Form.es.js +102 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/Form.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/FormContext.es.js +61 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/FormContext.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/List.es.js +129 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/List.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/ListContext.es.js +6 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/ListContext.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/index.es.js +24 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/useForm.es.js +742 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/useForm.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/useWatch.es.js +70 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/useWatch.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/utils/NameMap.es.js +76 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/utils/NameMap.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/utils/asyncUtil.es.js +30 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/utils/asyncUtil.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/utils/cloneDeep.es.js +28 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/utils/cloneDeep.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/utils/messages.es.js +52 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/utils/messages.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/utils/typeUtil.es.js +10 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/utils/typeUtil.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/utils/validateUtil.es.js +267 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/utils/validateUtil.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/utils/valueUtil.es.js +121 -0
- package/dist/node_modules/.pnpm/rc-field-form@1.27.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-field-form/es/utils/valueUtil.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-input@0.1.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-input/es/BaseInput.es.js +83 -0
- package/dist/node_modules/.pnpm/rc-input@0.1.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-input/es/BaseInput.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-input@0.1.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-input/es/Input.es.js +141 -0
- package/dist/node_modules/.pnpm/rc-input@0.1.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-input/es/Input.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-input@0.1.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-input/es/index.es.js +7 -0
- package/dist/node_modules/.pnpm/rc-input@0.1.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-input/es/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-input@0.1.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-input/es/utils/commonUtils.es.js +59 -0
- package/dist/node_modules/.pnpm/rc-input@0.1.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-input/es/utils/commonUtils.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-motion@2.9.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-motion/es/CSSMotion.es.js +103 -0
- package/dist/node_modules/.pnpm/rc-motion@2.9.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-motion/es/CSSMotion.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-motion@2.9.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-motion/es/CSSMotionList.es.js +124 -0
- package/dist/node_modules/.pnpm/rc-motion@2.9.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-motion/es/CSSMotionList.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-motion@2.9.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-motion/es/DomWrapper.es.js +24 -0
- package/dist/node_modules/.pnpm/rc-motion@2.9.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-motion/es/DomWrapper.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-motion@2.9.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-motion/es/context.es.js +6 -0
- package/dist/node_modules/.pnpm/rc-motion@2.9.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-motion/es/context.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-motion@2.9.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-motion/es/hooks/useDomMotionEvents.es.js +32 -0
- package/dist/node_modules/.pnpm/rc-motion@2.9.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-motion/es/hooks/useDomMotionEvents.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-motion@2.9.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-motion/es/hooks/useIsomorphicLayoutEffect.es.js +7 -0
- package/dist/node_modules/.pnpm/rc-motion@2.9.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-motion/es/hooks/useIsomorphicLayoutEffect.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-motion@2.9.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-motion/es/hooks/useNextFrame.es.js +34 -0
- package/dist/node_modules/.pnpm/rc-motion@2.9.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-motion/es/hooks/useNextFrame.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-motion@2.9.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-motion/es/hooks/useStatus.es.js +166 -0
- package/dist/node_modules/.pnpm/rc-motion@2.9.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-motion/es/hooks/useStatus.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-motion@2.9.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-motion/es/hooks/useStepQueue.es.js +56 -0
- package/dist/node_modules/.pnpm/rc-motion@2.9.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-motion/es/hooks/useStepQueue.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-motion@2.9.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-motion/es/index.es.js +7 -0
- package/dist/node_modules/.pnpm/rc-motion@2.9.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-motion/es/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-motion@2.9.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-motion/es/interface.es.js +23 -0
- package/dist/node_modules/.pnpm/rc-motion@2.9.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-motion/es/interface.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-motion@2.9.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-motion/es/util/diff.es.js +96 -0
- package/dist/node_modules/.pnpm/rc-motion@2.9.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-motion/es/util/diff.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-motion@2.9.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-motion/es/util/motion.es.js +75 -0
- package/dist/node_modules/.pnpm/rc-motion@2.9.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-motion/es/util/motion.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-resize-observer@1.4.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-resize-observer/es/Collection.es.js +32 -0
- package/dist/node_modules/.pnpm/rc-resize-observer@1.4.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-resize-observer/es/Collection.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-resize-observer@1.4.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.es.js +24 -0
- package/dist/node_modules/.pnpm/rc-resize-observer@1.4.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-resize-observer@1.4.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-resize-observer/es/SingleObserver/index.es.js +85 -0
- package/dist/node_modules/.pnpm/rc-resize-observer@1.4.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-resize-observer/es/SingleObserver/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-resize-observer@1.4.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-resize-observer/es/index.es.js +35 -0
- package/dist/node_modules/.pnpm/rc-resize-observer@1.4.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-resize-observer/es/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-resize-observer@1.4.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-resize-observer/es/utils/observerUtil.es.js +35 -0
- package/dist/node_modules/.pnpm/rc-resize-observer@1.4.3_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-resize-observer/es/utils/observerUtil.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-textarea@0.4.7_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-textarea/es/ResizableTextArea.es.js +118 -0
- package/dist/node_modules/.pnpm/rc-textarea@0.4.7_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-textarea/es/ResizableTextArea.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-textarea@0.4.7_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-textarea/es/calculateNodeHeight.es.js +92 -0
- package/dist/node_modules/.pnpm/rc-textarea@0.4.7_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-textarea/es/calculateNodeHeight.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-textarea@0.4.7_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-textarea/es/index.es.js +85 -0
- package/dist/node_modules/.pnpm/rc-textarea@0.4.7_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-textarea/es/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/Children/toArray.es.js +23 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/Children/toArray.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/Dom/canUseDom.es.js +7 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/Dom/canUseDom.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/Dom/contains.es.js +20 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/Dom/contains.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/Dom/dynamicCSS.es.js +116 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/Dom/dynamicCSS.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/Dom/findDOMNode.es.js +32 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/Dom/findDOMNode.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/React/isFragment.es.js +16 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/React/isFragment.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/hooks/useEvent.es.js +17 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/hooks/useEvent.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/hooks/useLayoutEffect.es.js +27 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/hooks/useLayoutEffect.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/hooks/useMemo.es.js +13 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/hooks/useMemo.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/hooks/useMergedState.es.js +43 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/hooks/useMergedState.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/hooks/useState.es.js +23 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/hooks/useState.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/hooks/useSyncState.es.js +21 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/hooks/useSyncState.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/omit.es.js +13 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/omit.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/raf.es.js +51 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/raf.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/ref.es.js +74 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/ref.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/utils/get.es.js +14 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/utils/get.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/utils/set.es.js +35 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/utils/set.es.js.map +1 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/warning.es.js +54 -0
- package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/warning.es.js.map +1 -0
- package/dist/node_modules/.pnpm/react-is@18.3.1/node_modules/react-is/cjs/react-is.development.es.js +194 -0
- package/dist/node_modules/.pnpm/react-is@18.3.1/node_modules/react-is/cjs/react-is.development.es.js.map +1 -0
- package/dist/node_modules/.pnpm/react-is@18.3.1/node_modules/react-is/cjs/react-is.production.min.es.js +110 -0
- package/dist/node_modules/.pnpm/react-is@18.3.1/node_modules/react-is/cjs/react-is.production.min.es.js.map +1 -0
- package/dist/node_modules/.pnpm/react-is@18.3.1/node_modules/react-is/index.es.js +13 -0
- package/dist/node_modules/.pnpm/react-is@18.3.1/node_modules/react-is/index.es.js.map +1 -0
- package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.development.es.js +3 -3
- package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.development.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.production.min.es.js +2 -2
- package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.production.min.es.js.map +1 -1
- package/dist/node_modules/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.es.js +496 -0
- package/dist/node_modules/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.es.js.map +1 -0
- package/dist/node_modules/.pnpm/style-to-js@1.1.16/node_modules/style-to-js/cjs/index.es.js +1 -1
- package/dist/node_modules/.pnpm/style-to-object@1.0.8/node_modules/style-to-object/cjs/index.es.js +1 -1
- package/dist/stats.html +1 -1
- package/dist/style.pkg.css +1 -1
- package/dist/tailwindcss.pkg.css +1 -1
- package/package.json +3 -1
|
@@ -0,0 +1,742 @@
|
|
|
1
|
+
import _slicedToArray from "../../../../@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/slicedToArray.es.js";
|
|
2
|
+
import _objectSpread2 from "../../../../@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/objectSpread2.es.js";
|
|
3
|
+
import _objectWithoutProperties from "../../../../@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.es.js";
|
|
4
|
+
import _toConsumableArray from "../../../../@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/toConsumableArray.es.js";
|
|
5
|
+
import _createClass from "../../../../@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/createClass.es.js";
|
|
6
|
+
import _classCallCheck from "../../../../@babel_runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/classCallCheck.es.js";
|
|
7
|
+
import { warningOnce } from "../../../../rc-util@5.44.4_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/rc-util/es/warning.es.js";
|
|
8
|
+
import * as React from "react";
|
|
9
|
+
import { HOOK_MARK } from "./FieldContext.es.js";
|
|
10
|
+
import { allPromiseFinish } from "./utils/asyncUtil.es.js";
|
|
11
|
+
import cloneDeep from "./utils/cloneDeep.es.js";
|
|
12
|
+
import { defaultValidateMessages } from "./utils/messages.es.js";
|
|
13
|
+
import NameMap from "./utils/NameMap.es.js";
|
|
14
|
+
import { setValues, setValue, getValue, getNamePath, cloneByNamePathList, containsNamePath, matchNamePath } from "./utils/valueUtil.es.js";
|
|
15
|
+
var _excluded = ["name", "errors"];
|
|
16
|
+
var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate) {
|
|
17
|
+
var _this = this;
|
|
18
|
+
_classCallCheck(this, FormStore2);
|
|
19
|
+
this.formHooked = false;
|
|
20
|
+
this.forceRootUpdate = void 0;
|
|
21
|
+
this.subscribable = true;
|
|
22
|
+
this.store = {};
|
|
23
|
+
this.fieldEntities = [];
|
|
24
|
+
this.initialValues = {};
|
|
25
|
+
this.callbacks = {};
|
|
26
|
+
this.validateMessages = null;
|
|
27
|
+
this.preserve = null;
|
|
28
|
+
this.lastValidatePromise = null;
|
|
29
|
+
this.getForm = function() {
|
|
30
|
+
return {
|
|
31
|
+
getFieldValue: _this.getFieldValue,
|
|
32
|
+
getFieldsValue: _this.getFieldsValue,
|
|
33
|
+
getFieldError: _this.getFieldError,
|
|
34
|
+
getFieldWarning: _this.getFieldWarning,
|
|
35
|
+
getFieldsError: _this.getFieldsError,
|
|
36
|
+
isFieldsTouched: _this.isFieldsTouched,
|
|
37
|
+
isFieldTouched: _this.isFieldTouched,
|
|
38
|
+
isFieldValidating: _this.isFieldValidating,
|
|
39
|
+
isFieldsValidating: _this.isFieldsValidating,
|
|
40
|
+
resetFields: _this.resetFields,
|
|
41
|
+
setFields: _this.setFields,
|
|
42
|
+
setFieldValue: _this.setFieldValue,
|
|
43
|
+
setFieldsValue: _this.setFieldsValue,
|
|
44
|
+
validateFields: _this.validateFields,
|
|
45
|
+
submit: _this.submit,
|
|
46
|
+
_init: true,
|
|
47
|
+
getInternalHooks: _this.getInternalHooks
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
this.getInternalHooks = function(key) {
|
|
51
|
+
if (key === HOOK_MARK) {
|
|
52
|
+
_this.formHooked = true;
|
|
53
|
+
return {
|
|
54
|
+
dispatch: _this.dispatch,
|
|
55
|
+
initEntityValue: _this.initEntityValue,
|
|
56
|
+
registerField: _this.registerField,
|
|
57
|
+
useSubscribe: _this.useSubscribe,
|
|
58
|
+
setInitialValues: _this.setInitialValues,
|
|
59
|
+
destroyForm: _this.destroyForm,
|
|
60
|
+
setCallbacks: _this.setCallbacks,
|
|
61
|
+
setValidateMessages: _this.setValidateMessages,
|
|
62
|
+
getFields: _this.getFields,
|
|
63
|
+
setPreserve: _this.setPreserve,
|
|
64
|
+
getInitialValue: _this.getInitialValue,
|
|
65
|
+
registerWatch: _this.registerWatch
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
warningOnce(false, "`getInternalHooks` is internal usage. Should not call directly.");
|
|
69
|
+
return null;
|
|
70
|
+
};
|
|
71
|
+
this.useSubscribe = function(subscribable) {
|
|
72
|
+
_this.subscribable = subscribable;
|
|
73
|
+
};
|
|
74
|
+
this.prevWithoutPreserves = null;
|
|
75
|
+
this.setInitialValues = function(initialValues, init) {
|
|
76
|
+
_this.initialValues = initialValues || {};
|
|
77
|
+
if (init) {
|
|
78
|
+
var _this$prevWithoutPres;
|
|
79
|
+
var nextStore = setValues({}, initialValues, _this.store);
|
|
80
|
+
(_this$prevWithoutPres = _this.prevWithoutPreserves) === null || _this$prevWithoutPres === void 0 ? void 0 : _this$prevWithoutPres.map(function(_ref) {
|
|
81
|
+
var namePath = _ref.key;
|
|
82
|
+
nextStore = setValue(nextStore, namePath, getValue(initialValues, namePath));
|
|
83
|
+
});
|
|
84
|
+
_this.prevWithoutPreserves = null;
|
|
85
|
+
_this.updateStore(nextStore);
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
this.destroyForm = function() {
|
|
89
|
+
var prevWithoutPreserves = new NameMap();
|
|
90
|
+
_this.getFieldEntities(true).forEach(function(entity) {
|
|
91
|
+
if (!_this.isMergedPreserve(entity.isPreserve())) {
|
|
92
|
+
prevWithoutPreserves.set(entity.getNamePath(), true);
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
_this.prevWithoutPreserves = prevWithoutPreserves;
|
|
96
|
+
};
|
|
97
|
+
this.getInitialValue = function(namePath) {
|
|
98
|
+
var initValue = getValue(_this.initialValues, namePath);
|
|
99
|
+
return namePath.length ? cloneDeep(initValue) : initValue;
|
|
100
|
+
};
|
|
101
|
+
this.setCallbacks = function(callbacks) {
|
|
102
|
+
_this.callbacks = callbacks;
|
|
103
|
+
};
|
|
104
|
+
this.setValidateMessages = function(validateMessages) {
|
|
105
|
+
_this.validateMessages = validateMessages;
|
|
106
|
+
};
|
|
107
|
+
this.setPreserve = function(preserve) {
|
|
108
|
+
_this.preserve = preserve;
|
|
109
|
+
};
|
|
110
|
+
this.watchList = [];
|
|
111
|
+
this.registerWatch = function(callback) {
|
|
112
|
+
_this.watchList.push(callback);
|
|
113
|
+
return function() {
|
|
114
|
+
_this.watchList = _this.watchList.filter(function(fn) {
|
|
115
|
+
return fn !== callback;
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
this.notifyWatch = function() {
|
|
120
|
+
var namePath = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
121
|
+
if (_this.watchList.length) {
|
|
122
|
+
var values = _this.getFieldsValue();
|
|
123
|
+
_this.watchList.forEach(function(callback) {
|
|
124
|
+
callback(values, namePath);
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
this.timeoutId = null;
|
|
129
|
+
this.warningUnhooked = function() {
|
|
130
|
+
if (process.env.NODE_ENV !== "production" && !_this.timeoutId && typeof window !== "undefined") {
|
|
131
|
+
_this.timeoutId = setTimeout(function() {
|
|
132
|
+
_this.timeoutId = null;
|
|
133
|
+
if (!_this.formHooked) {
|
|
134
|
+
warningOnce(false, "Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?");
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
this.updateStore = function(nextStore) {
|
|
140
|
+
_this.store = nextStore;
|
|
141
|
+
};
|
|
142
|
+
this.getFieldEntities = function() {
|
|
143
|
+
var pure = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
|
|
144
|
+
if (!pure) {
|
|
145
|
+
return _this.fieldEntities;
|
|
146
|
+
}
|
|
147
|
+
return _this.fieldEntities.filter(function(field) {
|
|
148
|
+
return field.getNamePath().length;
|
|
149
|
+
});
|
|
150
|
+
};
|
|
151
|
+
this.getFieldsMap = function() {
|
|
152
|
+
var pure = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
|
|
153
|
+
var cache = new NameMap();
|
|
154
|
+
_this.getFieldEntities(pure).forEach(function(field) {
|
|
155
|
+
var namePath = field.getNamePath();
|
|
156
|
+
cache.set(namePath, field);
|
|
157
|
+
});
|
|
158
|
+
return cache;
|
|
159
|
+
};
|
|
160
|
+
this.getFieldEntitiesForNamePathList = function(nameList) {
|
|
161
|
+
if (!nameList) {
|
|
162
|
+
return _this.getFieldEntities(true);
|
|
163
|
+
}
|
|
164
|
+
var cache = _this.getFieldsMap(true);
|
|
165
|
+
return nameList.map(function(name) {
|
|
166
|
+
var namePath = getNamePath(name);
|
|
167
|
+
return cache.get(namePath) || {
|
|
168
|
+
INVALIDATE_NAME_PATH: getNamePath(name)
|
|
169
|
+
};
|
|
170
|
+
});
|
|
171
|
+
};
|
|
172
|
+
this.getFieldsValue = function(nameList, filterFunc) {
|
|
173
|
+
_this.warningUnhooked();
|
|
174
|
+
if (nameList === true && !filterFunc) {
|
|
175
|
+
return _this.store;
|
|
176
|
+
}
|
|
177
|
+
var fieldEntities = _this.getFieldEntitiesForNamePathList(Array.isArray(nameList) ? nameList : null);
|
|
178
|
+
var filteredNameList = [];
|
|
179
|
+
fieldEntities.forEach(function(entity) {
|
|
180
|
+
var _entity$isListField;
|
|
181
|
+
var namePath = "INVALIDATE_NAME_PATH" in entity ? entity.INVALIDATE_NAME_PATH : entity.getNamePath();
|
|
182
|
+
if (!nameList && ((_entity$isListField = entity.isListField) === null || _entity$isListField === void 0 ? void 0 : _entity$isListField.call(entity))) {
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
if (!filterFunc) {
|
|
186
|
+
filteredNameList.push(namePath);
|
|
187
|
+
} else {
|
|
188
|
+
var meta = "getMeta" in entity ? entity.getMeta() : null;
|
|
189
|
+
if (filterFunc(meta)) {
|
|
190
|
+
filteredNameList.push(namePath);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
return cloneByNamePathList(_this.store, filteredNameList.map(getNamePath));
|
|
195
|
+
};
|
|
196
|
+
this.getFieldValue = function(name) {
|
|
197
|
+
_this.warningUnhooked();
|
|
198
|
+
var namePath = getNamePath(name);
|
|
199
|
+
return getValue(_this.store, namePath);
|
|
200
|
+
};
|
|
201
|
+
this.getFieldsError = function(nameList) {
|
|
202
|
+
_this.warningUnhooked();
|
|
203
|
+
var fieldEntities = _this.getFieldEntitiesForNamePathList(nameList);
|
|
204
|
+
return fieldEntities.map(function(entity, index) {
|
|
205
|
+
if (entity && !("INVALIDATE_NAME_PATH" in entity)) {
|
|
206
|
+
return {
|
|
207
|
+
name: entity.getNamePath(),
|
|
208
|
+
errors: entity.getErrors(),
|
|
209
|
+
warnings: entity.getWarnings()
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
return {
|
|
213
|
+
name: getNamePath(nameList[index]),
|
|
214
|
+
errors: [],
|
|
215
|
+
warnings: []
|
|
216
|
+
};
|
|
217
|
+
});
|
|
218
|
+
};
|
|
219
|
+
this.getFieldError = function(name) {
|
|
220
|
+
_this.warningUnhooked();
|
|
221
|
+
var namePath = getNamePath(name);
|
|
222
|
+
var fieldError = _this.getFieldsError([namePath])[0];
|
|
223
|
+
return fieldError.errors;
|
|
224
|
+
};
|
|
225
|
+
this.getFieldWarning = function(name) {
|
|
226
|
+
_this.warningUnhooked();
|
|
227
|
+
var namePath = getNamePath(name);
|
|
228
|
+
var fieldError = _this.getFieldsError([namePath])[0];
|
|
229
|
+
return fieldError.warnings;
|
|
230
|
+
};
|
|
231
|
+
this.isFieldsTouched = function() {
|
|
232
|
+
_this.warningUnhooked();
|
|
233
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
234
|
+
args[_key] = arguments[_key];
|
|
235
|
+
}
|
|
236
|
+
var arg0 = args[0], arg1 = args[1];
|
|
237
|
+
var namePathList;
|
|
238
|
+
var isAllFieldsTouched = false;
|
|
239
|
+
if (args.length === 0) {
|
|
240
|
+
namePathList = null;
|
|
241
|
+
} else if (args.length === 1) {
|
|
242
|
+
if (Array.isArray(arg0)) {
|
|
243
|
+
namePathList = arg0.map(getNamePath);
|
|
244
|
+
isAllFieldsTouched = false;
|
|
245
|
+
} else {
|
|
246
|
+
namePathList = null;
|
|
247
|
+
isAllFieldsTouched = arg0;
|
|
248
|
+
}
|
|
249
|
+
} else {
|
|
250
|
+
namePathList = arg0.map(getNamePath);
|
|
251
|
+
isAllFieldsTouched = arg1;
|
|
252
|
+
}
|
|
253
|
+
var fieldEntities = _this.getFieldEntities(true);
|
|
254
|
+
var isFieldTouched = function isFieldTouched2(field) {
|
|
255
|
+
return field.isFieldTouched();
|
|
256
|
+
};
|
|
257
|
+
if (!namePathList) {
|
|
258
|
+
return isAllFieldsTouched ? fieldEntities.every(isFieldTouched) : fieldEntities.some(isFieldTouched);
|
|
259
|
+
}
|
|
260
|
+
var map = new NameMap();
|
|
261
|
+
namePathList.forEach(function(shortNamePath) {
|
|
262
|
+
map.set(shortNamePath, []);
|
|
263
|
+
});
|
|
264
|
+
fieldEntities.forEach(function(field) {
|
|
265
|
+
var fieldNamePath = field.getNamePath();
|
|
266
|
+
namePathList.forEach(function(shortNamePath) {
|
|
267
|
+
if (shortNamePath.every(function(nameUnit, i) {
|
|
268
|
+
return fieldNamePath[i] === nameUnit;
|
|
269
|
+
})) {
|
|
270
|
+
map.update(shortNamePath, function(list) {
|
|
271
|
+
return [].concat(_toConsumableArray(list), [field]);
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
});
|
|
276
|
+
var isNamePathListTouched = function isNamePathListTouched2(entities) {
|
|
277
|
+
return entities.some(isFieldTouched);
|
|
278
|
+
};
|
|
279
|
+
var namePathListEntities = map.map(function(_ref2) {
|
|
280
|
+
var value = _ref2.value;
|
|
281
|
+
return value;
|
|
282
|
+
});
|
|
283
|
+
return isAllFieldsTouched ? namePathListEntities.every(isNamePathListTouched) : namePathListEntities.some(isNamePathListTouched);
|
|
284
|
+
};
|
|
285
|
+
this.isFieldTouched = function(name) {
|
|
286
|
+
_this.warningUnhooked();
|
|
287
|
+
return _this.isFieldsTouched([name]);
|
|
288
|
+
};
|
|
289
|
+
this.isFieldsValidating = function(nameList) {
|
|
290
|
+
_this.warningUnhooked();
|
|
291
|
+
var fieldEntities = _this.getFieldEntities();
|
|
292
|
+
if (!nameList) {
|
|
293
|
+
return fieldEntities.some(function(testField) {
|
|
294
|
+
return testField.isFieldValidating();
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
var namePathList = nameList.map(getNamePath);
|
|
298
|
+
return fieldEntities.some(function(testField) {
|
|
299
|
+
var fieldNamePath = testField.getNamePath();
|
|
300
|
+
return containsNamePath(namePathList, fieldNamePath) && testField.isFieldValidating();
|
|
301
|
+
});
|
|
302
|
+
};
|
|
303
|
+
this.isFieldValidating = function(name) {
|
|
304
|
+
_this.warningUnhooked();
|
|
305
|
+
return _this.isFieldsValidating([name]);
|
|
306
|
+
};
|
|
307
|
+
this.resetWithFieldInitialValue = function() {
|
|
308
|
+
var info = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
309
|
+
var cache = new NameMap();
|
|
310
|
+
var fieldEntities = _this.getFieldEntities(true);
|
|
311
|
+
fieldEntities.forEach(function(field) {
|
|
312
|
+
var initialValue = field.props.initialValue;
|
|
313
|
+
var namePath = field.getNamePath();
|
|
314
|
+
if (initialValue !== void 0) {
|
|
315
|
+
var records = cache.get(namePath) || /* @__PURE__ */ new Set();
|
|
316
|
+
records.add({
|
|
317
|
+
entity: field,
|
|
318
|
+
value: initialValue
|
|
319
|
+
});
|
|
320
|
+
cache.set(namePath, records);
|
|
321
|
+
}
|
|
322
|
+
});
|
|
323
|
+
var resetWithFields = function resetWithFields2(entities) {
|
|
324
|
+
entities.forEach(function(field) {
|
|
325
|
+
var initialValue = field.props.initialValue;
|
|
326
|
+
if (initialValue !== void 0) {
|
|
327
|
+
var namePath = field.getNamePath();
|
|
328
|
+
var formInitialValue = _this.getInitialValue(namePath);
|
|
329
|
+
if (formInitialValue !== void 0) {
|
|
330
|
+
warningOnce(false, "Form already set 'initialValues' with path '".concat(namePath.join("."), "'. Field can not overwrite it."));
|
|
331
|
+
} else {
|
|
332
|
+
var records = cache.get(namePath);
|
|
333
|
+
if (records && records.size > 1) {
|
|
334
|
+
warningOnce(false, "Multiple Field with path '".concat(namePath.join("."), "' set 'initialValue'. Can not decide which one to pick."));
|
|
335
|
+
} else if (records) {
|
|
336
|
+
var originValue = _this.getFieldValue(namePath);
|
|
337
|
+
if (!info.skipExist || originValue === void 0) {
|
|
338
|
+
_this.updateStore(setValue(_this.store, namePath, _toConsumableArray(records)[0].value));
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
});
|
|
344
|
+
};
|
|
345
|
+
var requiredFieldEntities;
|
|
346
|
+
if (info.entities) {
|
|
347
|
+
requiredFieldEntities = info.entities;
|
|
348
|
+
} else if (info.namePathList) {
|
|
349
|
+
requiredFieldEntities = [];
|
|
350
|
+
info.namePathList.forEach(function(namePath) {
|
|
351
|
+
var records = cache.get(namePath);
|
|
352
|
+
if (records) {
|
|
353
|
+
var _requiredFieldEntitie;
|
|
354
|
+
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie, _toConsumableArray(_toConsumableArray(records).map(function(r) {
|
|
355
|
+
return r.entity;
|
|
356
|
+
})));
|
|
357
|
+
}
|
|
358
|
+
});
|
|
359
|
+
} else {
|
|
360
|
+
requiredFieldEntities = fieldEntities;
|
|
361
|
+
}
|
|
362
|
+
resetWithFields(requiredFieldEntities);
|
|
363
|
+
};
|
|
364
|
+
this.resetFields = function(nameList) {
|
|
365
|
+
_this.warningUnhooked();
|
|
366
|
+
var prevStore = _this.store;
|
|
367
|
+
if (!nameList) {
|
|
368
|
+
_this.updateStore(setValues({}, _this.initialValues));
|
|
369
|
+
_this.resetWithFieldInitialValue();
|
|
370
|
+
_this.notifyObservers(prevStore, null, {
|
|
371
|
+
type: "reset"
|
|
372
|
+
});
|
|
373
|
+
_this.notifyWatch();
|
|
374
|
+
return;
|
|
375
|
+
}
|
|
376
|
+
var namePathList = nameList.map(getNamePath);
|
|
377
|
+
namePathList.forEach(function(namePath) {
|
|
378
|
+
var initialValue = _this.getInitialValue(namePath);
|
|
379
|
+
_this.updateStore(setValue(_this.store, namePath, initialValue));
|
|
380
|
+
});
|
|
381
|
+
_this.resetWithFieldInitialValue({
|
|
382
|
+
namePathList
|
|
383
|
+
});
|
|
384
|
+
_this.notifyObservers(prevStore, namePathList, {
|
|
385
|
+
type: "reset"
|
|
386
|
+
});
|
|
387
|
+
_this.notifyWatch(namePathList);
|
|
388
|
+
};
|
|
389
|
+
this.setFields = function(fields) {
|
|
390
|
+
_this.warningUnhooked();
|
|
391
|
+
var prevStore = _this.store;
|
|
392
|
+
var namePathList = [];
|
|
393
|
+
fields.forEach(function(fieldData) {
|
|
394
|
+
var name = fieldData.name;
|
|
395
|
+
fieldData.errors;
|
|
396
|
+
var data = _objectWithoutProperties(fieldData, _excluded);
|
|
397
|
+
var namePath = getNamePath(name);
|
|
398
|
+
namePathList.push(namePath);
|
|
399
|
+
if ("value" in data) {
|
|
400
|
+
_this.updateStore(setValue(_this.store, namePath, data.value));
|
|
401
|
+
}
|
|
402
|
+
_this.notifyObservers(prevStore, [namePath], {
|
|
403
|
+
type: "setField",
|
|
404
|
+
data: fieldData
|
|
405
|
+
});
|
|
406
|
+
});
|
|
407
|
+
_this.notifyWatch(namePathList);
|
|
408
|
+
};
|
|
409
|
+
this.getFields = function() {
|
|
410
|
+
var entities = _this.getFieldEntities(true);
|
|
411
|
+
var fields = entities.map(function(field) {
|
|
412
|
+
var namePath = field.getNamePath();
|
|
413
|
+
var meta = field.getMeta();
|
|
414
|
+
var fieldData = _objectSpread2(_objectSpread2({}, meta), {}, {
|
|
415
|
+
name: namePath,
|
|
416
|
+
value: _this.getFieldValue(namePath)
|
|
417
|
+
});
|
|
418
|
+
Object.defineProperty(fieldData, "originRCField", {
|
|
419
|
+
value: true
|
|
420
|
+
});
|
|
421
|
+
return fieldData;
|
|
422
|
+
});
|
|
423
|
+
return fields;
|
|
424
|
+
};
|
|
425
|
+
this.initEntityValue = function(entity) {
|
|
426
|
+
var initialValue = entity.props.initialValue;
|
|
427
|
+
if (initialValue !== void 0) {
|
|
428
|
+
var namePath = entity.getNamePath();
|
|
429
|
+
var prevValue = getValue(_this.store, namePath);
|
|
430
|
+
if (prevValue === void 0) {
|
|
431
|
+
_this.updateStore(setValue(_this.store, namePath, initialValue));
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
};
|
|
435
|
+
this.isMergedPreserve = function(fieldPreserve) {
|
|
436
|
+
var mergedPreserve = fieldPreserve !== void 0 ? fieldPreserve : _this.preserve;
|
|
437
|
+
return mergedPreserve !== null && mergedPreserve !== void 0 ? mergedPreserve : true;
|
|
438
|
+
};
|
|
439
|
+
this.registerField = function(entity) {
|
|
440
|
+
_this.fieldEntities.push(entity);
|
|
441
|
+
var namePath = entity.getNamePath();
|
|
442
|
+
_this.notifyWatch([namePath]);
|
|
443
|
+
if (entity.props.initialValue !== void 0) {
|
|
444
|
+
var prevStore = _this.store;
|
|
445
|
+
_this.resetWithFieldInitialValue({
|
|
446
|
+
entities: [entity],
|
|
447
|
+
skipExist: true
|
|
448
|
+
});
|
|
449
|
+
_this.notifyObservers(prevStore, [entity.getNamePath()], {
|
|
450
|
+
type: "valueUpdate",
|
|
451
|
+
source: "internal"
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
return function(isListField, preserve) {
|
|
455
|
+
var subNamePath = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
456
|
+
_this.fieldEntities = _this.fieldEntities.filter(function(item) {
|
|
457
|
+
return item !== entity;
|
|
458
|
+
});
|
|
459
|
+
if (!_this.isMergedPreserve(preserve) && (!isListField || subNamePath.length > 1)) {
|
|
460
|
+
var defaultValue = isListField ? void 0 : _this.getInitialValue(namePath);
|
|
461
|
+
if (namePath.length && _this.getFieldValue(namePath) !== defaultValue && _this.fieldEntities.every(function(field) {
|
|
462
|
+
return (
|
|
463
|
+
// Only reset when no namePath exist
|
|
464
|
+
!matchNamePath(field.getNamePath(), namePath)
|
|
465
|
+
);
|
|
466
|
+
})) {
|
|
467
|
+
var _prevStore = _this.store;
|
|
468
|
+
_this.updateStore(setValue(_prevStore, namePath, defaultValue, true));
|
|
469
|
+
_this.notifyObservers(_prevStore, [namePath], {
|
|
470
|
+
type: "remove"
|
|
471
|
+
});
|
|
472
|
+
_this.triggerDependenciesUpdate(_prevStore, namePath);
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
_this.notifyWatch([namePath]);
|
|
476
|
+
};
|
|
477
|
+
};
|
|
478
|
+
this.dispatch = function(action) {
|
|
479
|
+
switch (action.type) {
|
|
480
|
+
case "updateValue": {
|
|
481
|
+
var namePath = action.namePath, value = action.value;
|
|
482
|
+
_this.updateValue(namePath, value);
|
|
483
|
+
break;
|
|
484
|
+
}
|
|
485
|
+
case "validateField": {
|
|
486
|
+
var _namePath = action.namePath, triggerName = action.triggerName;
|
|
487
|
+
_this.validateFields([_namePath], {
|
|
488
|
+
triggerName
|
|
489
|
+
});
|
|
490
|
+
break;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
};
|
|
494
|
+
this.notifyObservers = function(prevStore, namePathList, info) {
|
|
495
|
+
if (_this.subscribable) {
|
|
496
|
+
var mergedInfo = _objectSpread2(_objectSpread2({}, info), {}, {
|
|
497
|
+
store: _this.getFieldsValue(true)
|
|
498
|
+
});
|
|
499
|
+
_this.getFieldEntities().forEach(function(_ref3) {
|
|
500
|
+
var onStoreChange = _ref3.onStoreChange;
|
|
501
|
+
onStoreChange(prevStore, namePathList, mergedInfo);
|
|
502
|
+
});
|
|
503
|
+
} else {
|
|
504
|
+
_this.forceRootUpdate();
|
|
505
|
+
}
|
|
506
|
+
};
|
|
507
|
+
this.triggerDependenciesUpdate = function(prevStore, namePath) {
|
|
508
|
+
var childrenFields = _this.getDependencyChildrenFields(namePath);
|
|
509
|
+
if (childrenFields.length) {
|
|
510
|
+
_this.validateFields(childrenFields);
|
|
511
|
+
}
|
|
512
|
+
_this.notifyObservers(prevStore, childrenFields, {
|
|
513
|
+
type: "dependenciesUpdate",
|
|
514
|
+
relatedFields: [namePath].concat(_toConsumableArray(childrenFields))
|
|
515
|
+
});
|
|
516
|
+
return childrenFields;
|
|
517
|
+
};
|
|
518
|
+
this.updateValue = function(name, value) {
|
|
519
|
+
var namePath = getNamePath(name);
|
|
520
|
+
var prevStore = _this.store;
|
|
521
|
+
_this.updateStore(setValue(_this.store, namePath, value));
|
|
522
|
+
_this.notifyObservers(prevStore, [namePath], {
|
|
523
|
+
type: "valueUpdate",
|
|
524
|
+
source: "internal"
|
|
525
|
+
});
|
|
526
|
+
_this.notifyWatch([namePath]);
|
|
527
|
+
var childrenFields = _this.triggerDependenciesUpdate(prevStore, namePath);
|
|
528
|
+
var onValuesChange = _this.callbacks.onValuesChange;
|
|
529
|
+
if (onValuesChange) {
|
|
530
|
+
var changedValues = cloneByNamePathList(_this.store, [namePath]);
|
|
531
|
+
onValuesChange(changedValues, _this.getFieldsValue());
|
|
532
|
+
}
|
|
533
|
+
_this.triggerOnFieldsChange([namePath].concat(_toConsumableArray(childrenFields)));
|
|
534
|
+
};
|
|
535
|
+
this.setFieldsValue = function(store) {
|
|
536
|
+
_this.warningUnhooked();
|
|
537
|
+
var prevStore = _this.store;
|
|
538
|
+
if (store) {
|
|
539
|
+
var nextStore = setValues(_this.store, store);
|
|
540
|
+
_this.updateStore(nextStore);
|
|
541
|
+
}
|
|
542
|
+
_this.notifyObservers(prevStore, null, {
|
|
543
|
+
type: "valueUpdate",
|
|
544
|
+
source: "external"
|
|
545
|
+
});
|
|
546
|
+
_this.notifyWatch();
|
|
547
|
+
};
|
|
548
|
+
this.setFieldValue = function(name, value) {
|
|
549
|
+
_this.setFields([{
|
|
550
|
+
name,
|
|
551
|
+
value
|
|
552
|
+
}]);
|
|
553
|
+
};
|
|
554
|
+
this.getDependencyChildrenFields = function(rootNamePath) {
|
|
555
|
+
var children = /* @__PURE__ */ new Set();
|
|
556
|
+
var childrenFields = [];
|
|
557
|
+
var dependencies2fields = new NameMap();
|
|
558
|
+
_this.getFieldEntities().forEach(function(field) {
|
|
559
|
+
var dependencies = field.props.dependencies;
|
|
560
|
+
(dependencies || []).forEach(function(dependency) {
|
|
561
|
+
var dependencyNamePath = getNamePath(dependency);
|
|
562
|
+
dependencies2fields.update(dependencyNamePath, function() {
|
|
563
|
+
var fields = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : /* @__PURE__ */ new Set();
|
|
564
|
+
fields.add(field);
|
|
565
|
+
return fields;
|
|
566
|
+
});
|
|
567
|
+
});
|
|
568
|
+
});
|
|
569
|
+
var fillChildren = function fillChildren2(namePath) {
|
|
570
|
+
var fields = dependencies2fields.get(namePath) || /* @__PURE__ */ new Set();
|
|
571
|
+
fields.forEach(function(field) {
|
|
572
|
+
if (!children.has(field)) {
|
|
573
|
+
children.add(field);
|
|
574
|
+
var fieldNamePath = field.getNamePath();
|
|
575
|
+
if (field.isFieldDirty() && fieldNamePath.length) {
|
|
576
|
+
childrenFields.push(fieldNamePath);
|
|
577
|
+
fillChildren2(fieldNamePath);
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
});
|
|
581
|
+
};
|
|
582
|
+
fillChildren(rootNamePath);
|
|
583
|
+
return childrenFields;
|
|
584
|
+
};
|
|
585
|
+
this.triggerOnFieldsChange = function(namePathList, filedErrors) {
|
|
586
|
+
var onFieldsChange = _this.callbacks.onFieldsChange;
|
|
587
|
+
if (onFieldsChange) {
|
|
588
|
+
var fields = _this.getFields();
|
|
589
|
+
if (filedErrors) {
|
|
590
|
+
var cache = new NameMap();
|
|
591
|
+
filedErrors.forEach(function(_ref4) {
|
|
592
|
+
var name = _ref4.name, errors = _ref4.errors;
|
|
593
|
+
cache.set(name, errors);
|
|
594
|
+
});
|
|
595
|
+
fields.forEach(function(field) {
|
|
596
|
+
field.errors = cache.get(field.name) || field.errors;
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
var changedFields = fields.filter(function(_ref5) {
|
|
600
|
+
var fieldName = _ref5.name;
|
|
601
|
+
return containsNamePath(namePathList, fieldName);
|
|
602
|
+
});
|
|
603
|
+
onFieldsChange(changedFields, fields);
|
|
604
|
+
}
|
|
605
|
+
};
|
|
606
|
+
this.validateFields = function(nameList, options) {
|
|
607
|
+
_this.warningUnhooked();
|
|
608
|
+
var provideNameList = !!nameList;
|
|
609
|
+
var namePathList = provideNameList ? nameList.map(getNamePath) : [];
|
|
610
|
+
var promiseList = [];
|
|
611
|
+
_this.getFieldEntities(true).forEach(function(field) {
|
|
612
|
+
if (!provideNameList) {
|
|
613
|
+
namePathList.push(field.getNamePath());
|
|
614
|
+
}
|
|
615
|
+
if ((options === null || options === void 0 ? void 0 : options.recursive) && provideNameList) {
|
|
616
|
+
var namePath = field.getNamePath();
|
|
617
|
+
if (
|
|
618
|
+
// nameList[i] === undefined 说明是以 nameList 开头的
|
|
619
|
+
// ['name'] -> ['name','list']
|
|
620
|
+
namePath.every(function(nameUnit, i) {
|
|
621
|
+
return nameList[i] === nameUnit || nameList[i] === void 0;
|
|
622
|
+
})
|
|
623
|
+
) {
|
|
624
|
+
namePathList.push(namePath);
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
if (!field.props.rules || !field.props.rules.length) {
|
|
628
|
+
return;
|
|
629
|
+
}
|
|
630
|
+
var fieldNamePath = field.getNamePath();
|
|
631
|
+
if (!provideNameList || containsNamePath(namePathList, fieldNamePath)) {
|
|
632
|
+
var promise = field.validateRules(_objectSpread2({
|
|
633
|
+
validateMessages: _objectSpread2(_objectSpread2({}, defaultValidateMessages), _this.validateMessages)
|
|
634
|
+
}, options));
|
|
635
|
+
promiseList.push(promise.then(function() {
|
|
636
|
+
return {
|
|
637
|
+
name: fieldNamePath,
|
|
638
|
+
errors: [],
|
|
639
|
+
warnings: []
|
|
640
|
+
};
|
|
641
|
+
}).catch(function(ruleErrors) {
|
|
642
|
+
var _ruleErrors$forEach;
|
|
643
|
+
var mergedErrors = [];
|
|
644
|
+
var mergedWarnings = [];
|
|
645
|
+
(_ruleErrors$forEach = ruleErrors.forEach) === null || _ruleErrors$forEach === void 0 ? void 0 : _ruleErrors$forEach.call(ruleErrors, function(_ref6) {
|
|
646
|
+
var warningOnly = _ref6.rule.warningOnly, errors = _ref6.errors;
|
|
647
|
+
if (warningOnly) {
|
|
648
|
+
mergedWarnings.push.apply(mergedWarnings, _toConsumableArray(errors));
|
|
649
|
+
} else {
|
|
650
|
+
mergedErrors.push.apply(mergedErrors, _toConsumableArray(errors));
|
|
651
|
+
}
|
|
652
|
+
});
|
|
653
|
+
if (mergedErrors.length) {
|
|
654
|
+
return Promise.reject({
|
|
655
|
+
name: fieldNamePath,
|
|
656
|
+
errors: mergedErrors,
|
|
657
|
+
warnings: mergedWarnings
|
|
658
|
+
});
|
|
659
|
+
}
|
|
660
|
+
return {
|
|
661
|
+
name: fieldNamePath,
|
|
662
|
+
errors: mergedErrors,
|
|
663
|
+
warnings: mergedWarnings
|
|
664
|
+
};
|
|
665
|
+
}));
|
|
666
|
+
}
|
|
667
|
+
});
|
|
668
|
+
var summaryPromise = allPromiseFinish(promiseList);
|
|
669
|
+
_this.lastValidatePromise = summaryPromise;
|
|
670
|
+
summaryPromise.catch(function(results) {
|
|
671
|
+
return results;
|
|
672
|
+
}).then(function(results) {
|
|
673
|
+
var resultNamePathList = results.map(function(_ref7) {
|
|
674
|
+
var name = _ref7.name;
|
|
675
|
+
return name;
|
|
676
|
+
});
|
|
677
|
+
_this.notifyObservers(_this.store, resultNamePathList, {
|
|
678
|
+
type: "validateFinish"
|
|
679
|
+
});
|
|
680
|
+
_this.triggerOnFieldsChange(resultNamePathList, results);
|
|
681
|
+
});
|
|
682
|
+
var returnPromise = summaryPromise.then(function() {
|
|
683
|
+
if (_this.lastValidatePromise === summaryPromise) {
|
|
684
|
+
return Promise.resolve(_this.getFieldsValue(namePathList));
|
|
685
|
+
}
|
|
686
|
+
return Promise.reject([]);
|
|
687
|
+
}).catch(function(results) {
|
|
688
|
+
var errorList = results.filter(function(result) {
|
|
689
|
+
return result && result.errors.length;
|
|
690
|
+
});
|
|
691
|
+
return Promise.reject({
|
|
692
|
+
values: _this.getFieldsValue(namePathList),
|
|
693
|
+
errorFields: errorList,
|
|
694
|
+
outOfDate: _this.lastValidatePromise !== summaryPromise
|
|
695
|
+
});
|
|
696
|
+
});
|
|
697
|
+
returnPromise.catch(function(e) {
|
|
698
|
+
return e;
|
|
699
|
+
});
|
|
700
|
+
return returnPromise;
|
|
701
|
+
};
|
|
702
|
+
this.submit = function() {
|
|
703
|
+
_this.warningUnhooked();
|
|
704
|
+
_this.validateFields().then(function(values) {
|
|
705
|
+
var onFinish = _this.callbacks.onFinish;
|
|
706
|
+
if (onFinish) {
|
|
707
|
+
try {
|
|
708
|
+
onFinish(values);
|
|
709
|
+
} catch (err) {
|
|
710
|
+
console.error(err);
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
}).catch(function(e) {
|
|
714
|
+
var onFinishFailed = _this.callbacks.onFinishFailed;
|
|
715
|
+
if (onFinishFailed) {
|
|
716
|
+
onFinishFailed(e);
|
|
717
|
+
}
|
|
718
|
+
});
|
|
719
|
+
};
|
|
720
|
+
this.forceRootUpdate = forceRootUpdate;
|
|
721
|
+
});
|
|
722
|
+
function useForm(form) {
|
|
723
|
+
var formRef = React.useRef();
|
|
724
|
+
var _React$useState = React.useState({}), _React$useState2 = _slicedToArray(_React$useState, 2), forceUpdate = _React$useState2[1];
|
|
725
|
+
if (!formRef.current) {
|
|
726
|
+
if (form) {
|
|
727
|
+
formRef.current = form;
|
|
728
|
+
} else {
|
|
729
|
+
var forceReRender = function forceReRender2() {
|
|
730
|
+
forceUpdate({});
|
|
731
|
+
};
|
|
732
|
+
var formStore = new FormStore(forceReRender);
|
|
733
|
+
formRef.current = formStore.getForm();
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
return [formRef.current];
|
|
737
|
+
}
|
|
738
|
+
export {
|
|
739
|
+
FormStore,
|
|
740
|
+
useForm as default
|
|
741
|
+
};
|
|
742
|
+
//# sourceMappingURL=useForm.es.js.map
|