File tree Expand file tree Collapse file tree 6 files changed +2506
-2515
lines changed
demo/docroot/sites/default
components/src/Components/FormElements Expand file tree Collapse file tree 6 files changed +2506
-2515
lines changed Original file line number Diff line number Diff line change 754
754
*/
755
755
$ settings ['entity_update_batch_size ' ] = 50 ;
756
756
757
+ /**
758
+ * Entity update backup.
759
+ *
760
+ * This is used to inform the entity storage handler that the backup tables as
761
+ * well as the original entity type and field storage definitions should be
762
+ * retained after a successful entity update process.
763
+ */
764
+ $ settings ['entity_update_backup ' ] = TRUE ;
765
+
757
766
/**
758
767
* Load local development override configuration, if available.
759
768
*
Original file line number Diff line number Diff line change 27
27
"deepmerge" : " ^3.0.0" ,
28
28
"downshift" : " ^3.1.4" ,
29
29
"emotion" : " ^10.0.0" ,
30
- "history" : " ^4.7.2 " ,
30
+ "history" : " ^4.9.0 " ,
31
31
"interweave" : " ^9.2.1" ,
32
32
"jss" : " ^9.8.2" ,
33
33
"keycode" : " ^2.2.0" ,
65
65
"chromedriver" : " ^2.45.0" ,
66
66
"enzyme" : " ^3.3.0" ,
67
67
"enzyme-adapter-react-16" : " ^1.1.1" ,
68
- "eslint" : " 5.6 .0" ,
68
+ "eslint" : " 5.16 .0" ,
69
69
"eslint-config-airbnb" : " 17.1.0" ,
70
70
"eslint-config-prettier" : " ^3.1.0" ,
71
71
"eslint-plugin-import" : " ^2.7.0" ,
76
76
"nightwatch" : " ^1.0.16" ,
77
77
"prettier" : " ^1.11.1" ,
78
78
"react-axe" : " ^3.0.1" ,
79
- "react-scripts" : " 2.1 .1" ,
79
+ "react-scripts" : " 3.0 .1" ,
80
80
"react-test-renderer" : " ^16.6.3" ,
81
81
"redux-saga-test-plan" : " ^3.6.0" ,
82
82
"storybook" : " ^1.0.0" ,
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import PropTypes from 'prop-types' ;
3
3
import { Route , Switch , withRouter } from 'react-router-dom' ;
4
- import createBrowserHistory from 'history/createBrowserHistory' ;
4
+ import { createBrowserHistory } from 'history' ;
5
+
5
6
import deepMerge from 'deepmerge' ;
6
7
import { createStore , applyMiddleware , combineReducers } from 'redux' ;
7
8
import {
Original file line number Diff line number Diff line change @@ -142,25 +142,33 @@ const InputCheckbox = props => {
142
142
} ;
143
143
144
144
InputCheckbox . propTypes = {
145
+ checked : PropTypes . bool ,
146
+
145
147
children : PropTypes . oneOfType ( [
146
148
PropTypes . arrayOf ( PropTypes . node ) ,
147
149
PropTypes . node ,
148
150
] ) . isRequired ,
149
151
150
152
error : PropTypes . bool ,
151
153
154
+ fieldName : PropTypes . string . isRequired ,
155
+
152
156
htmlAttributes : PropTypes . objectOf ( [
153
157
PropTypes . string ,
154
158
PropTypes . number ,
155
159
PropTypes . bool ,
156
160
] ) ,
157
161
162
+ onChange : PropTypes . func ,
163
+
158
164
required : PropTypes . bool ,
159
165
} ;
160
166
161
167
InputCheckbox . defaultProps = {
168
+ checked : false ,
162
169
error : false ,
163
170
htmlAttributes : { } ,
171
+ onChange : ( ) => { } ,
164
172
required : false ,
165
173
} ;
166
174
Original file line number Diff line number Diff line change @@ -156,6 +156,8 @@ const InputRadio = props => {
156
156
} ;
157
157
158
158
InputRadio . propTypes = {
159
+ checked : PropTypes . bool ,
160
+
159
161
/** Content contained within the label element. */
160
162
children : PropTypes . oneOfType ( [
161
163
PropTypes . arrayOf ( PropTypes . node ) ,
@@ -165,6 +167,8 @@ InputRadio.propTypes = {
165
167
/** true if the label relates to an element with an error. */
166
168
error : PropTypes . bool ,
167
169
170
+ fieldName : PropTypes . string . isRequired ,
171
+
168
172
/** Any additional HTML properties to add to the label element. */
169
173
htmlAttributes : PropTypes . objectOf ( [
170
174
PropTypes . string ,
@@ -175,13 +179,17 @@ InputRadio.propTypes = {
175
179
/** Content of the html "for" attribute to use for this label. */
176
180
htmlFor : PropTypes . string . isRequired ,
177
181
182
+ onChange : PropTypes . func ,
183
+
178
184
/** True if this label relates to an element that is required. */
179
185
required : PropTypes . bool ,
180
186
} ;
181
187
182
188
InputRadio . defaultProps = {
189
+ checked : false ,
183
190
error : false ,
184
191
htmlAttributes : { } ,
192
+ onChange : ( ) => { } ,
185
193
required : false ,
186
194
} ;
187
195
You can’t perform that action at this time.
0 commit comments