File tree Expand file tree Collapse file tree 13 files changed +66
-79
lines changed
react-renderer-demo/src/app
src/components/navigation Expand file tree Collapse file tree 13 files changed +66
-79
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const output = {
14
14
fields : [
15
15
{
16
16
title : 'Text boxes' ,
17
- key : '637' ,
17
+ name : '637' ,
18
18
fields : [
19
19
{
20
20
name : 'text_box_1' ,
@@ -121,7 +121,7 @@ const output = {
121
121
} ,
122
122
{
123
123
title : 'Text areas' ,
124
- key : '638' ,
124
+ name : '638' ,
125
125
fields : [
126
126
{
127
127
name : 'textarea_box_1' ,
@@ -138,11 +138,11 @@ const output = {
138
138
{
139
139
title : 'Tab 2' ,
140
140
description : 'Checks' ,
141
- key : '554' ,
141
+ name : '554' ,
142
142
fields : [
143
143
{
144
144
title : 'Check boxes' ,
145
- key : '639' ,
145
+ name : '639' ,
146
146
fields : [
147
147
{
148
148
name : 'check_box_1' ,
@@ -165,7 +165,7 @@ const output = {
165
165
} ,
166
166
{
167
167
title : 'Radios' ,
168
- key : '640' ,
168
+ name : '640' ,
169
169
fields : [
170
170
{
171
171
name : 'radio_button_1' ,
@@ -239,11 +239,11 @@ const output = {
239
239
{
240
240
title : 'Tab 3' ,
241
241
description : '' ,
242
- key : '555' ,
242
+ name : '555' ,
243
243
fields : [
244
244
{
245
245
title : 'Dropdowns' ,
246
- key : '641' ,
246
+ name : '641' ,
247
247
fields : [
248
248
{
249
249
name : 'dropdown_list_1' ,
@@ -382,11 +382,11 @@ const output = {
382
382
{
383
383
title : 'Tab 4' ,
384
384
description : '' ,
385
- key : '556' ,
385
+ name : '556' ,
386
386
fields : [
387
387
{
388
388
title : 'Datepickers' ,
389
- key : '642' ,
389
+ name : '642' ,
390
390
fields : [
391
391
{
392
392
name : 'date_control_1' ,
@@ -405,7 +405,7 @@ const output = {
405
405
} ,
406
406
{
407
407
title : 'Timepickers' ,
408
- key : '643' ,
408
+ name : '643' ,
409
409
fields : [
410
410
{
411
411
name : 'date_time_control_1' ,
@@ -428,11 +428,11 @@ const output = {
428
428
{
429
429
title : 'Mixed' ,
430
430
description : '' ,
431
- key : '558' ,
431
+ name : '558' ,
432
432
fields : [
433
433
{
434
434
title : 'New Section' ,
435
- key : '645' ,
435
+ name : '645' ,
436
436
fields : [
437
437
{
438
438
name : 'text_box_10' ,
@@ -518,7 +518,7 @@ const output = {
518
518
} ,
519
519
] ,
520
520
component : components . TABS ,
521
- key : '57' ,
521
+ name : '57' ,
522
522
} ,
523
523
] ,
524
524
} ;
Original file line number Diff line number Diff line change @@ -9,13 +9,11 @@ describe('subform', () => {
9
9
const props = {
10
10
fields : [
11
11
{
12
- key : 'cosiKey' ,
13
12
title : 'cosiTitle' ,
14
13
name : 'cosiName' ,
15
14
fields : [ ] ,
16
15
} ,
17
16
{
18
- key : 'cosiKey2' ,
19
17
title : 'cosiTitle2' ,
20
18
name : 'cosiName2' ,
21
19
fields : [ ] ,
Original file line number Diff line number Diff line change @@ -10,13 +10,11 @@ describe('tabs', () => {
10
10
const props = {
11
11
fields : [
12
12
{
13
- key : 'cosiKey' ,
14
13
title : 'cosiTitle' ,
15
14
name : 'cosiName' ,
16
15
fields : [ ] ,
17
16
} ,
18
17
{
19
- key : 'cosiKey2' ,
20
18
title : 'cosiTitle2' ,
21
19
name : 'cosiName2' ,
22
20
fields : [ ] ,
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ const output = {
54
54
} ,
55
55
{
56
56
title : 'Text boxes' ,
57
- key : '637' ,
57
+ name : '637' ,
58
58
fields : [
59
59
{
60
60
name : 'text_box_1' ,
@@ -162,7 +162,7 @@ const output = {
162
162
} ,
163
163
{
164
164
title : 'Text areas' ,
165
- key : '638' ,
165
+ name : '638' ,
166
166
fields : [
167
167
{
168
168
name : 'textarea_box_1' ,
@@ -179,11 +179,11 @@ const output = {
179
179
{
180
180
title : 'Tab 2' ,
181
181
description : 'Checks' ,
182
- key : '554' ,
182
+ name : '554' ,
183
183
fields : [
184
184
{
185
185
title : 'Check boxes' ,
186
- key : '639' ,
186
+ name : '639' ,
187
187
fields : [
188
188
{
189
189
name : 'check_box_1' ,
@@ -216,7 +216,7 @@ const output = {
216
216
} ,
217
217
{
218
218
title : 'Radios' ,
219
- key : '640' ,
219
+ name : '640' ,
220
220
fields : [
221
221
{
222
222
name : 'radio_button_1' ,
@@ -290,11 +290,11 @@ const output = {
290
290
{
291
291
title : 'Tab 3' ,
292
292
description : '' ,
293
- key : '555' ,
293
+ name : '555' ,
294
294
fields : [
295
295
{
296
296
title : 'Dropdowns' ,
297
- key : '641' ,
297
+ name : '641' ,
298
298
fields : [
299
299
{
300
300
name : 'dropdown_list_1' ,
@@ -434,11 +434,11 @@ const output = {
434
434
{
435
435
title : 'Tab 4' ,
436
436
description : '' ,
437
- key : '556' ,
437
+ name : '556' ,
438
438
fields : [
439
439
{
440
440
title : 'Datepickers' ,
441
- key : '642' ,
441
+ name : '642' ,
442
442
fields : [
443
443
{
444
444
component : components . SELECT ,
@@ -479,7 +479,7 @@ const output = {
479
479
} ,
480
480
{
481
481
title : 'Timepickers' ,
482
- key : '643' ,
482
+ name : '643' ,
483
483
fields : [
484
484
{
485
485
name : 'date_time_control_1' ,
@@ -502,11 +502,11 @@ const output = {
502
502
{
503
503
title : 'Mixed' ,
504
504
description : '' ,
505
- key : '558' ,
505
+ name : '558' ,
506
506
fields : [
507
507
{
508
508
title : 'New Section' ,
509
- key : '645' ,
509
+ name : '645' ,
510
510
fields : [
511
511
{
512
512
name : 'text_box_10' ,
@@ -592,7 +592,7 @@ const output = {
592
592
} ,
593
593
] ,
594
594
component : components . TABS ,
595
- key : '57' ,
595
+ name : '57' ,
596
596
} ,
597
597
] ,
598
598
} ;
Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ exports[`<FormTabs /> should render form tabs 1`] = `
12
12
" name" : " foo" ,
13
13
},
14
14
],
15
- " key " : " tab1" ,
15
+ " name " : " tab1" ,
16
16
" title" : " Tab 1" ,
17
17
},
18
18
Object {
19
19
" component" : " tabs" ,
20
20
" fields" : Array [],
21
- " key " : " tab2" ,
21
+ " name " : " tab2" ,
22
22
" title" : " Tab 2" ,
23
23
},
24
24
]
@@ -260,7 +260,7 @@ exports[`<FormTabs /> should render form tabs with error state 1`] = `
260
260
" name" : " nested.field" ,
261
261
},
262
262
],
263
- " key " : " tab1" ,
263
+ " name " : " tab1" ,
264
264
" title" : " Tab 1" ,
265
265
" validateFields" : Array [
266
266
" foo" ,
Original file line number Diff line number Diff line change @@ -12,15 +12,15 @@ describe('<FormTabs />', () => {
12
12
fields : [ {
13
13
component : componentTypes . TABS ,
14
14
title : 'Tab 1' ,
15
- key : 'tab1' ,
15
+ name : 'tab1' ,
16
16
fields : [ {
17
17
name : 'foo' ,
18
18
component : 'foo' ,
19
19
} ] ,
20
20
} , {
21
21
component : componentTypes . TABS ,
22
22
title : 'Tab 2' ,
23
- key : 'tab2' ,
23
+ name : 'tab2' ,
24
24
fields : [ ] ,
25
25
} ] ,
26
26
formOptions : {
@@ -43,7 +43,7 @@ describe('<FormTabs />', () => {
43
43
fields : [ {
44
44
component : componentTypes . TABS ,
45
45
title : 'Tab 1' ,
46
- key : 'tab1' ,
46
+ name : 'tab1' ,
47
47
validateFields : [ 'foo' , 'nested.field' ] ,
48
48
fields : [ {
49
49
name : 'foo' ,
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ const output = {
33
33
fields : [
34
34
{
35
35
title : 'Text boxes' ,
36
- key : '637' ,
36
+ name : '637' ,
37
37
fields : [
38
38
{
39
39
name : 'switch_1' ,
@@ -123,7 +123,7 @@ const output = {
123
123
} ,
124
124
{
125
125
title : 'Text areas' ,
126
- key : '638' ,
126
+ name : '638' ,
127
127
fields : [
128
128
{
129
129
name : 'textarea_box_1' ,
@@ -140,11 +140,11 @@ const output = {
140
140
{
141
141
title : 'Tab 2' ,
142
142
description : 'Checks' ,
143
- key : '554' ,
143
+ name : '554' ,
144
144
fields : [
145
145
{
146
146
title : 'Check boxes' ,
147
- key : '639' ,
147
+ name : '639' ,
148
148
fields : [
149
149
{
150
150
name : 'check_box_1' ,
@@ -163,7 +163,7 @@ const output = {
163
163
} ,
164
164
{
165
165
title : 'Radios' ,
166
- key : '640' ,
166
+ name : '640' ,
167
167
fields : [
168
168
{
169
169
name : 'radio_button_1' ,
@@ -237,11 +237,11 @@ const output = {
237
237
{
238
238
title : 'Tab 3' ,
239
239
description : '' ,
240
- key : '555' ,
240
+ name : '555' ,
241
241
fields : [
242
242
{
243
243
title : 'Dropdowns' ,
244
- key : '641' ,
244
+ name : '641' ,
245
245
fields : [
246
246
{
247
247
name : 'async-drop-down' ,
@@ -412,11 +412,11 @@ const output = {
412
412
{
413
413
title : 'Tab 4' ,
414
414
description : '' ,
415
- key : '556' ,
415
+ name : '556' ,
416
416
fields : [
417
417
{
418
418
title : 'Datepickers' ,
419
- key : '642' ,
419
+ name : '642' ,
420
420
fields : [
421
421
{
422
422
name : 'date_control_1' ,
@@ -435,7 +435,7 @@ const output = {
435
435
} ,
436
436
{
437
437
title : 'Timepickers' ,
438
- key : '643' ,
438
+ name : '643' ,
439
439
fields : [
440
440
{
441
441
name : 'date_time_control_1' ,
@@ -458,11 +458,11 @@ const output = {
458
458
{
459
459
title : 'Mixed' ,
460
460
description : '' ,
461
- key : '558' ,
461
+ name : '558' ,
462
462
fields : [
463
463
{
464
464
title : 'New Section' ,
465
- key : '645' ,
465
+ name : '645' ,
466
466
fields : [
467
467
{
468
468
name : 'text_box_10' ,
@@ -548,7 +548,7 @@ const output = {
548
548
} ,
549
549
] ,
550
550
component : components . TABS ,
551
- key : '57' ,
551
+ name : '57' ,
552
552
} ,
553
553
] ,
554
554
} ;
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import { shallow } from 'enzyme';
5
5
6
6
describe ( 'SubForm component' , ( ) => {
7
7
const props = {
8
- key : 'cosiKey' ,
9
8
title : 'cosiTitle' ,
10
9
name : 'cosiName' ,
11
10
fields : [ ] ,
You can’t perform that action at this time.
0 commit comments