react-form-with-constraints-tools
Advanced tools
Comparing version 0.9.3 to 0.10.0-beta.1
@@ -65,3 +65,3 @@ (function (global, factory) { | ||
form.addFieldDidValidateEventListener(this.reRender); | ||
form.addResetEventListener(this.reRender); | ||
form.addFieldDidResetEventListener(this.reRender); | ||
}; | ||
@@ -73,3 +73,3 @@ DisplayFields.prototype.componentWillUnmount = function () { | ||
form.removeFieldDidValidateEventListener(this.reRender); | ||
form.removeResetEventListener(this.reRender); | ||
form.removeFieldDidResetEventListener(this.reRender); | ||
}; | ||
@@ -76,0 +76,0 @@ DisplayFields.prototype.render = function () { |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom"),require("prop-types"),require("react-form-with-constraints")):"function"==typeof define&&define.amd?define(["exports","react","react-dom","prop-types","react-form-with-constraints"],t):t(e.ReactFormWithConstraintsTools={},e.React,e.ReactDOM,e.PropTypes,e.ReactFormWithConstraints)}(this,function(e,o,c,r,d){"use strict";o=o&&o.hasOwnProperty("default")?o.default:o,c=c&&c.hasOwnProperty("default")?c.default:c,r=r&&r.hasOwnProperty("default")?r.default:r;var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var t=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.reRender=function(){e.forceUpdate()},e}return i(e,t),e.prototype.componentWillMount=function(){var e=this.context.form;e.fieldsStore.addListener(d.FieldEvent.Added,this.reRender),e.fieldsStore.addListener(d.FieldEvent.Removed,this.reRender),e.addFieldDidValidateEventListener(this.reRender),e.addResetEventListener(this.reRender)},e.prototype.componentWillUnmount=function(){var e=this.context.form;e.fieldsStore.removeListener(d.FieldEvent.Added,this.reRender),e.fieldsStore.removeListener(d.FieldEvent.Removed,this.reRender),e.removeFieldDidValidateEventListener(this.reRender),e.removeResetEventListener(this.reRender)},e.prototype.render=function(){var e=s(this.context.form.fieldsStore.fields,2);return e=e.replace(/{\s+key: (.*),\s+type: (.*),\s+show: (.*)\s+}/g,"{ key: $1, type: $2, show: $3 }"),o.createElement("pre",{style:{fontSize:"small"}},"Fields = ",e)},e.contextTypes={form:r.instanceOf(d.FormWithConstraints).isRequired},e}(o.Component),s=function(e,t){var r=JSON.stringify(e,function(e,t){return void 0===t?"__undefined__":t},t);return r=(r=r.replace(/"__undefined__"/g,"undefined")).replace(/"([^"]+)":/g,"$1:")},l=function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return i(e,n),e.prototype.render=function(){var e=this.props,t=e.for,r="";return t&&(r+='for="'+t+'" '),r+='stop="'+e.stop+'"',o.createElement(o.Fragment,null,o.createElement("li",null,'key="',this.key,'" ',r),o.createElement("ul",null,n.prototype.render.call(this)))},e}(d.FieldFeedbacks),a=function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return i(e,n),e.prototype.getTextDecoration=function(){var e="";switch(this.state.validation.show){case!1:e="line-through";break;case void 0:e="line-through dotted"}return e},e.prototype.render=function(){var e=this.state.validation,t=e.key,r=e.type;return o.createElement("li",null,o.createElement("span",{style:{textDecoration:this.getTextDecoration()}},'key="',t,'" type="',r,'"')," ",n.prototype.render.call(this))},e.prototype.componentDidUpdate=function(){var t,e,r=c.findDOMNode(this),n=r.querySelectorAll("[data-feedback]");try{for(var o=function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],r=0;return t?t.call(e):{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}(n),i=o.next();!i.done;i=o.next()){i.value.style.display="inline"}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}var s=r.closest("li.async");null!==s&&(s.querySelector("span[style]").style.textDecoration=this.getTextDecoration());if(this.state.validation.type===d.FieldFeedbackType.WhenValid){var l=r.querySelector("span[style]"),a=r.querySelector("span."+this.props.classes.valid);l.style.textDecoration=null!==a?"":"line-through"}},e}(d.FieldFeedback),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getTextDecoration=function(){return"line-through dotted"},t.prototype.componentWillUpdate=function(){c.findDOMNode(this).querySelector("span[style]").style.textDecoration=this.getTextDecoration()},t.prototype.render=function(){return o.createElement("li",{className:"async"},o.createElement("span",{style:{textDecoration:this.getTextDecoration()}},"Async"),o.createElement("ul",null,e.prototype.render.call(this)))},t}(d.Async);e.FormWithConstraints=d.FormWithConstraints,e.DisplayFields=t,e.FieldFeedbacks=l,e.FieldFeedback=a,e.Async=u,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom"),require("prop-types"),require("react-form-with-constraints")):"function"==typeof define&&define.amd?define(["exports","react","react-dom","prop-types","react-form-with-constraints"],t):t(e.ReactFormWithConstraintsTools={},e.React,e.ReactDOM,e.PropTypes,e.ReactFormWithConstraints)}(this,function(e,o,c,r,d){"use strict";o=o&&o.hasOwnProperty("default")?o.default:o,c=c&&c.hasOwnProperty("default")?c.default:c,r=r&&r.hasOwnProperty("default")?r.default:r;var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var t=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.reRender=function(){e.forceUpdate()},e}return i(e,t),e.prototype.componentWillMount=function(){var e=this.context.form;e.fieldsStore.addListener(d.FieldEvent.Added,this.reRender),e.fieldsStore.addListener(d.FieldEvent.Removed,this.reRender),e.addFieldDidValidateEventListener(this.reRender),e.addFieldDidResetEventListener(this.reRender)},e.prototype.componentWillUnmount=function(){var e=this.context.form;e.fieldsStore.removeListener(d.FieldEvent.Added,this.reRender),e.fieldsStore.removeListener(d.FieldEvent.Removed,this.reRender),e.removeFieldDidValidateEventListener(this.reRender),e.removeFieldDidResetEventListener(this.reRender)},e.prototype.render=function(){var e=s(this.context.form.fieldsStore.fields,2);return e=e.replace(/{\s+key: (.*),\s+type: (.*),\s+show: (.*)\s+}/g,"{ key: $1, type: $2, show: $3 }"),o.createElement("pre",{style:{fontSize:"small"}},"Fields = ",e)},e.contextTypes={form:r.instanceOf(d.FormWithConstraints).isRequired},e}(o.Component),s=function(e,t){var r=JSON.stringify(e,function(e,t){return void 0===t?"__undefined__":t},t);return r=(r=r.replace(/"__undefined__"/g,"undefined")).replace(/"([^"]+)":/g,"$1:")},l=function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return i(e,n),e.prototype.render=function(){var e=this.props,t=e.for,r="";return t&&(r+='for="'+t+'" '),r+='stop="'+e.stop+'"',o.createElement(o.Fragment,null,o.createElement("li",null,'key="',this.key,'" ',r),o.createElement("ul",null,n.prototype.render.call(this)))},e}(d.FieldFeedbacks),a=function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return i(e,n),e.prototype.getTextDecoration=function(){var e="";switch(this.state.validation.show){case!1:e="line-through";break;case void 0:e="line-through dotted"}return e},e.prototype.render=function(){var e=this.state.validation,t=e.key,r=e.type;return o.createElement("li",null,o.createElement("span",{style:{textDecoration:this.getTextDecoration()}},'key="',t,'" type="',r,'"')," ",n.prototype.render.call(this))},e.prototype.componentDidUpdate=function(){var t,e,r=c.findDOMNode(this),n=r.querySelectorAll("[data-feedback]");try{for(var o=function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],r=0;return t?t.call(e):{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}(n),i=o.next();!i.done;i=o.next()){i.value.style.display="inline"}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}var s=r.closest("li.async");null!==s&&(s.querySelector("span[style]").style.textDecoration=this.getTextDecoration());if(this.state.validation.type===d.FieldFeedbackType.WhenValid){var l=r.querySelector("span[style]"),a=r.querySelector("span."+this.props.classes.valid);l.style.textDecoration=null!==a?"":"line-through"}},e}(d.FieldFeedback),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getTextDecoration=function(){return"line-through dotted"},t.prototype.componentWillUpdate=function(){c.findDOMNode(this).querySelector("span[style]").style.textDecoration=this.getTextDecoration()},t.prototype.render=function(){return o.createElement("li",{className:"async"},o.createElement("span",{style:{textDecoration:this.getTextDecoration()}},"Async"),o.createElement("ul",null,e.prototype.render.call(this)))},t}(d.Async);e.FormWithConstraints=d.FormWithConstraints,e.DisplayFields=t,e.FieldFeedbacks=l,e.FieldFeedback=a,e.Async=u,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=react-form-with-constraints-tools.production.min.js.map |
@@ -45,3 +45,3 @@ "use strict"; | ||
form.addFieldDidValidateEventListener(this.reRender); | ||
form.addResetEventListener(this.reRender); | ||
form.addFieldDidResetEventListener(this.reRender); | ||
}; | ||
@@ -53,3 +53,3 @@ DisplayFields.prototype.componentWillUnmount = function () { | ||
form.removeFieldDidValidateEventListener(this.reRender); | ||
form.removeResetEventListener(this.reRender); | ||
form.removeFieldDidResetEventListener(this.reRender); | ||
}; | ||
@@ -180,2 +180,2 @@ DisplayFields.prototype.render = function () { | ||
exports.Async = Async; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRGlzcGxheUZpZWxkcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9EaXNwbGF5RmllbGRzLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsZ0RBQTBCO0FBQzFCLHdEQUFpQztBQUNqQyw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ICA8dWw+XG4gICAgICAgICAge3N1cGVyLnJlbmRlcigpfVxuICAgICAgICA8L3VsPlxuICAgICAgPC9saT5cbiAgICApO1xuICB9XG59XG4iXX0= |
{ | ||
"name": "react-form-with-constraints-tools", | ||
"version": "0.9.3", | ||
"version": "0.10.0-beta.1", | ||
"repository": { | ||
@@ -33,3 +33,3 @@ "type": "git", | ||
"peerDependencies": { | ||
"react-form-with-constraints": "^0.9.3" | ||
"react-form-with-constraints": "^0.10.0" | ||
}, | ||
@@ -51,6 +51,6 @@ "devDependencies": { | ||
"react-dom": "latest", | ||
"react-form-with-constraints": "^0.9.3", | ||
"react-form-with-constraints": "^0.10.0-beta.1", | ||
"rollup": "latest", | ||
"rollup-plugin-filesize": "latest", | ||
"rollup-plugin-gzip": "latest", | ||
"rollup-plugin-gzip": "^1.4.0", | ||
"rollup-plugin-strip": "latest", | ||
@@ -63,3 +63,3 @@ "rollup-plugin-typescript2": "latest", | ||
}, | ||
"gitHead": "1e9a57390ea5fb75472d7b0c208870abf2d97a93" | ||
"gitHead": "04800789b7d84c9acb6f1bf2c0da7a6620ec14be" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44363