field-change-effects-calculator
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "field-change-effects-calculator", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Describe field-change-effects-calculator here", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -53,3 +53,3 @@ # field-change-effects-calculator | ||
name: 'B', | ||
reduxPath: ['fields', 'B'], | ||
path: ['fields', 'B'], | ||
value: (ANewValue, state) => state.fields.B.value, | ||
@@ -73,3 +73,3 @@ editable: (ANewValue, state) => ANewValue === 'Hello' ? 'true' : 'false', | ||
name: 'B', | ||
reduxPath: ['fields', 'B'], | ||
path: ['fields', 'B'], | ||
value: (ANewValue, state) => state.fields.B.value, | ||
@@ -86,3 +86,3 @@ editable: (ANewValue, state) => ANewValue === 'Hello' ? 'true' : 'false', | ||
name: 'C', | ||
reduxPath: ['fields', 'C'], | ||
path: ['fields', 'C'], | ||
value: (ANewValue, state) => ANewValue.toLowerCase(), | ||
@@ -97,3 +97,3 @@ editable: (ANewValue, state) => true, | ||
name: 'D', | ||
reduxPath: ['fields', 'D'], | ||
path: ['fields', 'D'], | ||
value: (BNewValue, state) => BNewValue.toLowerCase() + '*', | ||
@@ -114,5 +114,5 @@ editable: (BNewValue, state) => true, | ||
| value | true | `(newValue, state) => any` | Function that will be used to calculate new value for the field. | | ||
| editable | true | `(newValue, state) => any` | Function that will be used to calculate new editable value for the field. | | ||
| readable | true | `(newValue, state) => any` | Function that will be used to calculate new readable value for the field. | | ||
| required | true | `(newValue, state) => any` | Function that will be used to calculate new required value for the field. | | ||
| editable | true | `(newValue, state) => boolean` | Function that will be used to calculate new editable value for the field. | | ||
| readable | true | `(newValue, state) => boolean` | Function that will be used to calculate new readable value for the field. | | ||
| required | true | `(newValue, state) => boolean` | Function that will be used to calculate new required value for the field. | | ||
| otherProps | false | `(newValue, state) => {}` | Function that will be used to calculate other props that do not change often like value, editable, readable etc, like label, placeholder, styles etc. | | ||
@@ -119,0 +119,0 @@ |
14179