f26bb2f11f7965d3e162850d6ec3a8ed.json
4.07 KB
{"ast":null,"code":"import * as React from 'react';\nimport warning from \"rc-util/es/warning\";\nexport var HOOK_MARK = 'RC_FORM_INTERNAL_HOOKS'; // eslint-disable-next-line @typescript-eslint/no-explicit-any\n\nvar warningFunc = function warningFunc() {\n warning(false, 'Can not find FormContext. Please make sure you wrap Field under Form.');\n};\n\nvar Context = /*#__PURE__*/React.createContext({\n getFieldValue: warningFunc,\n getFieldsValue: warningFunc,\n getFieldError: warningFunc,\n getFieldsError: warningFunc,\n isFieldsTouched: warningFunc,\n isFieldTouched: warningFunc,\n isFieldValidating: warningFunc,\n isFieldsValidating: warningFunc,\n resetFields: warningFunc,\n setFields: warningFunc,\n setFieldsValue: warningFunc,\n validateFields: warningFunc,\n submit: warningFunc,\n getInternalHooks: function getInternalHooks() {\n warningFunc();\n return {\n dispatch: warningFunc,\n initEntityValue: warningFunc,\n registerField: warningFunc,\n useSubscribe: warningFunc,\n setInitialValues: warningFunc,\n setCallbacks: warningFunc,\n getFields: warningFunc,\n setValidateMessages: warningFunc,\n setPreserve: warningFunc\n };\n }\n});\nexport default Context;","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/rc-field-form/es/FieldContext.js"],"names":["React","warning","HOOK_MARK","warningFunc","Context","createContext","getFieldValue","getFieldsValue","getFieldError","getFieldsError","isFieldsTouched","isFieldTouched","isFieldValidating","isFieldsValidating","resetFields","setFields","setFieldsValue","validateFields","submit","getInternalHooks","dispatch","initEntityValue","registerField","useSubscribe","setInitialValues","setCallbacks","getFields","setValidateMessages","setPreserve"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,OAAOC,OAAP,MAAoB,oBAApB;AACA,OAAO,IAAIC,SAAS,GAAG,wBAAhB,C,CAA0C;;AAEjD,IAAIC,WAAW,GAAG,SAASA,WAAT,GAAuB;AACvCF,EAAAA,OAAO,CAAC,KAAD,EAAQ,uEAAR,CAAP;AACD,CAFD;;AAIA,IAAIG,OAAO,GAAG,aAAaJ,KAAK,CAACK,aAAN,CAAoB;AAC7CC,EAAAA,aAAa,EAAEH,WAD8B;AAE7CI,EAAAA,cAAc,EAAEJ,WAF6B;AAG7CK,EAAAA,aAAa,EAAEL,WAH8B;AAI7CM,EAAAA,cAAc,EAAEN,WAJ6B;AAK7CO,EAAAA,eAAe,EAAEP,WAL4B;AAM7CQ,EAAAA,cAAc,EAAER,WAN6B;AAO7CS,EAAAA,iBAAiB,EAAET,WAP0B;AAQ7CU,EAAAA,kBAAkB,EAAEV,WARyB;AAS7CW,EAAAA,WAAW,EAAEX,WATgC;AAU7CY,EAAAA,SAAS,EAAEZ,WAVkC;AAW7Ca,EAAAA,cAAc,EAAEb,WAX6B;AAY7Cc,EAAAA,cAAc,EAAEd,WAZ6B;AAa7Ce,EAAAA,MAAM,EAAEf,WAbqC;AAc7CgB,EAAAA,gBAAgB,EAAE,SAASA,gBAAT,GAA4B;AAC5ChB,IAAAA,WAAW;AACX,WAAO;AACLiB,MAAAA,QAAQ,EAAEjB,WADL;AAELkB,MAAAA,eAAe,EAAElB,WAFZ;AAGLmB,MAAAA,aAAa,EAAEnB,WAHV;AAILoB,MAAAA,YAAY,EAAEpB,WAJT;AAKLqB,MAAAA,gBAAgB,EAAErB,WALb;AAMLsB,MAAAA,YAAY,EAAEtB,WANT;AAOLuB,MAAAA,SAAS,EAAEvB,WAPN;AAQLwB,MAAAA,mBAAmB,EAAExB,WARhB;AASLyB,MAAAA,WAAW,EAAEzB;AATR,KAAP;AAWD;AA3B4C,CAApB,CAA3B;AA6BA,eAAeC,OAAf","sourcesContent":["import * as React from 'react';\nimport warning from \"rc-util/es/warning\";\nexport var HOOK_MARK = 'RC_FORM_INTERNAL_HOOKS'; // eslint-disable-next-line @typescript-eslint/no-explicit-any\n\nvar warningFunc = function warningFunc() {\n warning(false, 'Can not find FormContext. Please make sure you wrap Field under Form.');\n};\n\nvar Context = /*#__PURE__*/React.createContext({\n getFieldValue: warningFunc,\n getFieldsValue: warningFunc,\n getFieldError: warningFunc,\n getFieldsError: warningFunc,\n isFieldsTouched: warningFunc,\n isFieldTouched: warningFunc,\n isFieldValidating: warningFunc,\n isFieldsValidating: warningFunc,\n resetFields: warningFunc,\n setFields: warningFunc,\n setFieldsValue: warningFunc,\n validateFields: warningFunc,\n submit: warningFunc,\n getInternalHooks: function getInternalHooks() {\n warningFunc();\n return {\n dispatch: warningFunc,\n initEntityValue: warningFunc,\n registerField: warningFunc,\n useSubscribe: warningFunc,\n setInitialValues: warningFunc,\n setCallbacks: warningFunc,\n getFields: warningFunc,\n setValidateMessages: warningFunc,\n setPreserve: warningFunc\n };\n }\n});\nexport default Context;"]},"metadata":{},"sourceType":"module"}