decap-cms-widget-list 3.2.3-beta.0 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -1
- package/dist/decap-cms-widget-list.js +4 -4
- package/dist/decap-cms-widget-list.js.LICENSE.txt +2 -12
- package/dist/decap-cms-widget-list.js.map +1 -1
- package/dist/esm/ListControl.js +516 -481
- package/dist/esm/index.js +12 -23
- package/dist/esm/schema.js +1 -7
- package/dist/esm/typedListHelpers.js +7 -17
- package/package.json +3 -3
- package/src/ListControl.js +91 -25
- package/src/__tests__/ListControl.spec.js +58 -58
- package/src/__tests__/__snapshots__/ListControl.spec.js.snap +97 -84
|
@@ -139,6 +139,10 @@ exports[`ListControl should add to list when add button is clicked 1`] = `
|
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
.emotion-17 {
|
|
142
|
+
background-color: #dfdfe3;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.emotion-19 {
|
|
142
146
|
display: none;
|
|
143
147
|
border-top: 0;
|
|
144
148
|
color: inherit;
|
|
@@ -200,8 +204,7 @@ exports[`ListControl should add to list when add button is clicked 1`] = `
|
|
|
200
204
|
class="emotion-15 emotion-16"
|
|
201
205
|
>
|
|
202
206
|
<mock-list-item-top-bar
|
|
203
|
-
|
|
204
|
-
collapsed="false"
|
|
207
|
+
class="emotion-17 emotion-18"
|
|
205
208
|
data-testid="styled-list-item-top-bar-0"
|
|
206
209
|
id="0"
|
|
207
210
|
>
|
|
@@ -210,17 +213,16 @@ exports[`ListControl should add to list when add button is clicked 1`] = `
|
|
|
210
213
|
</button>
|
|
211
214
|
</mock-list-item-top-bar>
|
|
212
215
|
<div
|
|
213
|
-
class="emotion-
|
|
216
|
+
class="emotion-19 emotion-20"
|
|
214
217
|
>
|
|
215
218
|
No string
|
|
216
219
|
</div>
|
|
217
220
|
<mock-object-control
|
|
218
221
|
classnamewrapper="classNameWrapper"
|
|
219
|
-
collapsed="false"
|
|
220
222
|
data-testid="object-control-0"
|
|
221
223
|
field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
|
|
222
224
|
fieldserrors="Map {}"
|
|
223
|
-
forlist="
|
|
225
|
+
forlist=""
|
|
224
226
|
parentids="forID,0"
|
|
225
227
|
validationkey="0"
|
|
226
228
|
value="Map {}"
|
|
@@ -241,7 +243,7 @@ exports[`ListControl should add to list when add button is clicked 1`] = `
|
|
|
241
243
|
aria-live="assertive"
|
|
242
244
|
id="DndLiveRegion-19"
|
|
243
245
|
role="status"
|
|
244
|
-
style="position: fixed; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
|
|
246
|
+
style="position: fixed; top: 0px; left: 0px; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
|
|
245
247
|
/>
|
|
246
248
|
</div>
|
|
247
249
|
</div>
|
|
@@ -387,6 +389,10 @@ exports[`ListControl should remove from list when remove button is clicked 1`] =
|
|
|
387
389
|
}
|
|
388
390
|
|
|
389
391
|
.emotion-17 {
|
|
392
|
+
background-color: #dfdfe3;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.emotion-19 {
|
|
390
396
|
display: none;
|
|
391
397
|
border-top: 0;
|
|
392
398
|
color: inherit;
|
|
@@ -448,8 +454,7 @@ exports[`ListControl should remove from list when remove button is clicked 1`] =
|
|
|
448
454
|
class="emotion-15 emotion-16"
|
|
449
455
|
>
|
|
450
456
|
<mock-list-item-top-bar
|
|
451
|
-
|
|
452
|
-
collapsed="false"
|
|
457
|
+
class="emotion-17 emotion-18"
|
|
453
458
|
data-testid="styled-list-item-top-bar-0"
|
|
454
459
|
id="0"
|
|
455
460
|
>
|
|
@@ -458,17 +463,16 @@ exports[`ListControl should remove from list when remove button is clicked 1`] =
|
|
|
458
463
|
</button>
|
|
459
464
|
</mock-list-item-top-bar>
|
|
460
465
|
<div
|
|
461
|
-
class="emotion-
|
|
466
|
+
class="emotion-19 emotion-20"
|
|
462
467
|
>
|
|
463
468
|
item 1
|
|
464
469
|
</div>
|
|
465
470
|
<mock-object-control
|
|
466
471
|
classnamewrapper="classNameWrapper"
|
|
467
|
-
collapsed="false"
|
|
468
472
|
data-testid="object-control-0"
|
|
469
473
|
field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"minimize_collapsed\\": true, \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
|
|
470
474
|
fieldserrors="Map {}"
|
|
471
|
-
forlist="
|
|
475
|
+
forlist=""
|
|
472
476
|
parentids="forID,0"
|
|
473
477
|
validationkey="0"
|
|
474
478
|
value="Map { \\"string\\": \\"item 1\\" }"
|
|
@@ -478,8 +482,7 @@ exports[`ListControl should remove from list when remove button is clicked 1`] =
|
|
|
478
482
|
class="emotion-15 emotion-16"
|
|
479
483
|
>
|
|
480
484
|
<mock-list-item-top-bar
|
|
481
|
-
|
|
482
|
-
collapsed="false"
|
|
485
|
+
class="emotion-17 emotion-18"
|
|
483
486
|
data-testid="styled-list-item-top-bar-1"
|
|
484
487
|
id="1"
|
|
485
488
|
>
|
|
@@ -488,17 +491,16 @@ exports[`ListControl should remove from list when remove button is clicked 1`] =
|
|
|
488
491
|
</button>
|
|
489
492
|
</mock-list-item-top-bar>
|
|
490
493
|
<div
|
|
491
|
-
class="emotion-
|
|
494
|
+
class="emotion-19 emotion-20"
|
|
492
495
|
>
|
|
493
496
|
item 2
|
|
494
497
|
</div>
|
|
495
498
|
<mock-object-control
|
|
496
499
|
classnamewrapper="classNameWrapper"
|
|
497
|
-
collapsed="false"
|
|
498
500
|
data-testid="object-control-1"
|
|
499
501
|
field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"minimize_collapsed\\": true, \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
|
|
500
502
|
fieldserrors="Map {}"
|
|
501
|
-
forlist="
|
|
503
|
+
forlist=""
|
|
502
504
|
parentids="forID,1"
|
|
503
505
|
validationkey="1"
|
|
504
506
|
value="Map { \\"string\\": \\"item 2\\" }"
|
|
@@ -519,7 +521,7 @@ exports[`ListControl should remove from list when remove button is clicked 1`] =
|
|
|
519
521
|
aria-live="assertive"
|
|
520
522
|
id="DndLiveRegion-20"
|
|
521
523
|
role="status"
|
|
522
|
-
style="position: fixed; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
|
|
524
|
+
style="position: fixed; top: 0px; left: 0px; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
|
|
523
525
|
/>
|
|
524
526
|
</div>
|
|
525
527
|
</div>
|
|
@@ -665,6 +667,10 @@ exports[`ListControl should remove from list when remove button is clicked 2`] =
|
|
|
665
667
|
}
|
|
666
668
|
|
|
667
669
|
.emotion-17 {
|
|
670
|
+
background-color: #dfdfe3;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
.emotion-19 {
|
|
668
674
|
display: block;
|
|
669
675
|
border-top: 0;
|
|
670
676
|
color: inherit;
|
|
@@ -724,32 +730,31 @@ exports[`ListControl should remove from list when remove button is clicked 2`] =
|
|
|
724
730
|
<div>
|
|
725
731
|
<div
|
|
726
732
|
class="emotion-15 emotion-16"
|
|
727
|
-
style="transition: transform 0ms linear;"
|
|
728
733
|
>
|
|
729
734
|
<mock-list-item-top-bar
|
|
730
|
-
|
|
731
|
-
collapsed="
|
|
732
|
-
data-testid="styled-list-item-top-bar-
|
|
733
|
-
id="
|
|
735
|
+
class="emotion-17 emotion-18"
|
|
736
|
+
collapsed=""
|
|
737
|
+
data-testid="styled-list-item-top-bar-1"
|
|
738
|
+
id="1"
|
|
734
739
|
>
|
|
735
740
|
<button>
|
|
736
741
|
Remove
|
|
737
742
|
</button>
|
|
738
743
|
</mock-list-item-top-bar>
|
|
739
744
|
<div
|
|
740
|
-
class="emotion-
|
|
745
|
+
class="emotion-19 emotion-20"
|
|
741
746
|
>
|
|
742
747
|
item 2
|
|
743
748
|
</div>
|
|
744
749
|
<mock-object-control
|
|
745
750
|
classnamewrapper="classNameWrapper css-1pznrxi"
|
|
746
|
-
collapsed="
|
|
747
|
-
data-testid="object-control-
|
|
751
|
+
collapsed=""
|
|
752
|
+
data-testid="object-control-1"
|
|
748
753
|
field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"minimize_collapsed\\": true, \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
|
|
749
754
|
fieldserrors="Map {}"
|
|
750
|
-
forlist="
|
|
751
|
-
parentids="forID,
|
|
752
|
-
validationkey="
|
|
755
|
+
forlist=""
|
|
756
|
+
parentids="forID,1"
|
|
757
|
+
validationkey="1"
|
|
753
758
|
value="Map { \\"string\\": \\"item 2\\" }"
|
|
754
759
|
/>
|
|
755
760
|
</div>
|
|
@@ -768,7 +773,7 @@ exports[`ListControl should remove from list when remove button is clicked 2`] =
|
|
|
768
773
|
aria-live="assertive"
|
|
769
774
|
id="DndLiveRegion-20"
|
|
770
775
|
role="status"
|
|
771
|
-
style="position: fixed; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
|
|
776
|
+
style="position: fixed; top: 0px; left: 0px; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
|
|
772
777
|
/>
|
|
773
778
|
</div>
|
|
774
779
|
</div>
|
|
@@ -925,6 +930,10 @@ exports[`ListControl should render list with fields with collapse = "false" and
|
|
|
925
930
|
}
|
|
926
931
|
|
|
927
932
|
.emotion-17 {
|
|
933
|
+
background-color: #dfdfe3;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
.emotion-19 {
|
|
928
937
|
display: none;
|
|
929
938
|
border-top: 0;
|
|
930
939
|
color: inherit;
|
|
@@ -986,8 +995,7 @@ exports[`ListControl should render list with fields with collapse = "false" and
|
|
|
986
995
|
class="emotion-15 emotion-16"
|
|
987
996
|
>
|
|
988
997
|
<mock-list-item-top-bar
|
|
989
|
-
|
|
990
|
-
collapsed="false"
|
|
998
|
+
class="emotion-17 emotion-18"
|
|
991
999
|
data-testid="styled-list-item-top-bar-0"
|
|
992
1000
|
id="0"
|
|
993
1001
|
>
|
|
@@ -996,17 +1004,16 @@ exports[`ListControl should render list with fields with collapse = "false" and
|
|
|
996
1004
|
</button>
|
|
997
1005
|
</mock-list-item-top-bar>
|
|
998
1006
|
<div
|
|
999
|
-
class="emotion-
|
|
1007
|
+
class="emotion-19 emotion-20"
|
|
1000
1008
|
>
|
|
1001
1009
|
item 1
|
|
1002
1010
|
</div>
|
|
1003
1011
|
<mock-object-control
|
|
1004
1012
|
classnamewrapper="classNameWrapper"
|
|
1005
|
-
collapsed="false"
|
|
1006
1013
|
data-testid="object-control-0"
|
|
1007
1014
|
field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
|
|
1008
1015
|
fieldserrors="Map {}"
|
|
1009
|
-
forlist="
|
|
1016
|
+
forlist=""
|
|
1010
1017
|
parentids="forID,0"
|
|
1011
1018
|
validationkey="0"
|
|
1012
1019
|
value="Map { \\"string\\": \\"item 1\\" }"
|
|
@@ -1016,8 +1023,7 @@ exports[`ListControl should render list with fields with collapse = "false" and
|
|
|
1016
1023
|
class="emotion-15 emotion-16"
|
|
1017
1024
|
>
|
|
1018
1025
|
<mock-list-item-top-bar
|
|
1019
|
-
|
|
1020
|
-
collapsed="false"
|
|
1026
|
+
class="emotion-17 emotion-18"
|
|
1021
1027
|
data-testid="styled-list-item-top-bar-1"
|
|
1022
1028
|
id="1"
|
|
1023
1029
|
>
|
|
@@ -1026,17 +1032,16 @@ exports[`ListControl should render list with fields with collapse = "false" and
|
|
|
1026
1032
|
</button>
|
|
1027
1033
|
</mock-list-item-top-bar>
|
|
1028
1034
|
<div
|
|
1029
|
-
class="emotion-
|
|
1035
|
+
class="emotion-19 emotion-20"
|
|
1030
1036
|
>
|
|
1031
1037
|
item 2
|
|
1032
1038
|
</div>
|
|
1033
1039
|
<mock-object-control
|
|
1034
1040
|
classnamewrapper="classNameWrapper"
|
|
1035
|
-
collapsed="false"
|
|
1036
1041
|
data-testid="object-control-1"
|
|
1037
1042
|
field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
|
|
1038
1043
|
fieldserrors="Map {}"
|
|
1039
|
-
forlist="
|
|
1044
|
+
forlist=""
|
|
1040
1045
|
parentids="forID,1"
|
|
1041
1046
|
validationkey="1"
|
|
1042
1047
|
value="Map { \\"string\\": \\"item 2\\" }"
|
|
@@ -1057,7 +1062,7 @@ exports[`ListControl should render list with fields with collapse = "false" and
|
|
|
1057
1062
|
aria-live="assertive"
|
|
1058
1063
|
id="DndLiveRegion-16"
|
|
1059
1064
|
role="status"
|
|
1060
|
-
style="position: fixed; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
|
|
1065
|
+
style="position: fixed; top: 0px; left: 0px; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
|
|
1061
1066
|
/>
|
|
1062
1067
|
</div>
|
|
1063
1068
|
</div>
|
|
@@ -1203,6 +1208,10 @@ exports[`ListControl should render list with fields with collapse = "false" and
|
|
|
1203
1208
|
}
|
|
1204
1209
|
|
|
1205
1210
|
.emotion-17 {
|
|
1211
|
+
background-color: #dfdfe3;
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
.emotion-19 {
|
|
1206
1215
|
display: none;
|
|
1207
1216
|
border-top: 0;
|
|
1208
1217
|
color: inherit;
|
|
@@ -1264,8 +1273,7 @@ exports[`ListControl should render list with fields with collapse = "false" and
|
|
|
1264
1273
|
class="emotion-15 emotion-16"
|
|
1265
1274
|
>
|
|
1266
1275
|
<mock-list-item-top-bar
|
|
1267
|
-
|
|
1268
|
-
collapsed="false"
|
|
1276
|
+
class="emotion-17 emotion-18"
|
|
1269
1277
|
data-testid="styled-list-item-top-bar-0"
|
|
1270
1278
|
id="0"
|
|
1271
1279
|
>
|
|
@@ -1274,17 +1282,16 @@ exports[`ListControl should render list with fields with collapse = "false" and
|
|
|
1274
1282
|
</button>
|
|
1275
1283
|
</mock-list-item-top-bar>
|
|
1276
1284
|
<div
|
|
1277
|
-
class="emotion-
|
|
1285
|
+
class="emotion-19 emotion-20"
|
|
1278
1286
|
>
|
|
1279
1287
|
item 1
|
|
1280
1288
|
</div>
|
|
1281
1289
|
<mock-object-control
|
|
1282
1290
|
classnamewrapper="classNameWrapper"
|
|
1283
|
-
collapsed="false"
|
|
1284
1291
|
data-testid="object-control-0"
|
|
1285
1292
|
field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"minimize_collapsed\\": true, \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
|
|
1286
1293
|
fieldserrors="Map {}"
|
|
1287
|
-
forlist="
|
|
1294
|
+
forlist=""
|
|
1288
1295
|
parentids="forID,0"
|
|
1289
1296
|
validationkey="0"
|
|
1290
1297
|
value="Map { \\"string\\": \\"item 1\\" }"
|
|
@@ -1294,8 +1301,7 @@ exports[`ListControl should render list with fields with collapse = "false" and
|
|
|
1294
1301
|
class="emotion-15 emotion-16"
|
|
1295
1302
|
>
|
|
1296
1303
|
<mock-list-item-top-bar
|
|
1297
|
-
|
|
1298
|
-
collapsed="false"
|
|
1304
|
+
class="emotion-17 emotion-18"
|
|
1299
1305
|
data-testid="styled-list-item-top-bar-1"
|
|
1300
1306
|
id="1"
|
|
1301
1307
|
>
|
|
@@ -1304,17 +1310,16 @@ exports[`ListControl should render list with fields with collapse = "false" and
|
|
|
1304
1310
|
</button>
|
|
1305
1311
|
</mock-list-item-top-bar>
|
|
1306
1312
|
<div
|
|
1307
|
-
class="emotion-
|
|
1313
|
+
class="emotion-19 emotion-20"
|
|
1308
1314
|
>
|
|
1309
1315
|
item 2
|
|
1310
1316
|
</div>
|
|
1311
1317
|
<mock-object-control
|
|
1312
1318
|
classnamewrapper="classNameWrapper"
|
|
1313
|
-
collapsed="false"
|
|
1314
1319
|
data-testid="object-control-1"
|
|
1315
1320
|
field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"minimize_collapsed\\": true, \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
|
|
1316
1321
|
fieldserrors="Map {}"
|
|
1317
|
-
forlist="
|
|
1322
|
+
forlist=""
|
|
1318
1323
|
parentids="forID,1"
|
|
1319
1324
|
validationkey="1"
|
|
1320
1325
|
value="Map { \\"string\\": \\"item 2\\" }"
|
|
@@ -1335,7 +1340,7 @@ exports[`ListControl should render list with fields with collapse = "false" and
|
|
|
1335
1340
|
aria-live="assertive"
|
|
1336
1341
|
id="DndLiveRegion-18"
|
|
1337
1342
|
role="status"
|
|
1338
|
-
style="position: fixed; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
|
|
1343
|
+
style="position: fixed; top: 0px; left: 0px; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
|
|
1339
1344
|
/>
|
|
1340
1345
|
</div>
|
|
1341
1346
|
</div>
|
|
@@ -1481,6 +1486,10 @@ exports[`ListControl should render list with fields with default collapse ("true
|
|
|
1481
1486
|
}
|
|
1482
1487
|
|
|
1483
1488
|
.emotion-17 {
|
|
1489
|
+
background-color: #dfdfe3;
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
.emotion-19 {
|
|
1484
1493
|
display: block;
|
|
1485
1494
|
border-top: 0;
|
|
1486
1495
|
color: inherit;
|
|
@@ -1542,8 +1551,8 @@ exports[`ListControl should render list with fields with default collapse ("true
|
|
|
1542
1551
|
class="emotion-15 emotion-16"
|
|
1543
1552
|
>
|
|
1544
1553
|
<mock-list-item-top-bar
|
|
1545
|
-
|
|
1546
|
-
collapsed="
|
|
1554
|
+
class="emotion-17 emotion-18"
|
|
1555
|
+
collapsed=""
|
|
1547
1556
|
data-testid="styled-list-item-top-bar-0"
|
|
1548
1557
|
id="0"
|
|
1549
1558
|
>
|
|
@@ -1552,17 +1561,17 @@ exports[`ListControl should render list with fields with default collapse ("true
|
|
|
1552
1561
|
</button>
|
|
1553
1562
|
</mock-list-item-top-bar>
|
|
1554
1563
|
<div
|
|
1555
|
-
class="emotion-
|
|
1564
|
+
class="emotion-19 emotion-20"
|
|
1556
1565
|
>
|
|
1557
1566
|
item 1
|
|
1558
1567
|
</div>
|
|
1559
1568
|
<mock-object-control
|
|
1560
1569
|
classnamewrapper="classNameWrapper css-1pznrxi"
|
|
1561
|
-
collapsed="
|
|
1570
|
+
collapsed=""
|
|
1562
1571
|
data-testid="object-control-0"
|
|
1563
1572
|
field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
|
|
1564
1573
|
fieldserrors="Map {}"
|
|
1565
|
-
forlist="
|
|
1574
|
+
forlist=""
|
|
1566
1575
|
parentids="forID,0"
|
|
1567
1576
|
validationkey="0"
|
|
1568
1577
|
value="Map { \\"string\\": \\"item 1\\" }"
|
|
@@ -1572,8 +1581,8 @@ exports[`ListControl should render list with fields with default collapse ("true
|
|
|
1572
1581
|
class="emotion-15 emotion-16"
|
|
1573
1582
|
>
|
|
1574
1583
|
<mock-list-item-top-bar
|
|
1575
|
-
|
|
1576
|
-
collapsed="
|
|
1584
|
+
class="emotion-17 emotion-18"
|
|
1585
|
+
collapsed=""
|
|
1577
1586
|
data-testid="styled-list-item-top-bar-1"
|
|
1578
1587
|
id="1"
|
|
1579
1588
|
>
|
|
@@ -1582,17 +1591,17 @@ exports[`ListControl should render list with fields with default collapse ("true
|
|
|
1582
1591
|
</button>
|
|
1583
1592
|
</mock-list-item-top-bar>
|
|
1584
1593
|
<div
|
|
1585
|
-
class="emotion-
|
|
1594
|
+
class="emotion-19 emotion-20"
|
|
1586
1595
|
>
|
|
1587
1596
|
item 2
|
|
1588
1597
|
</div>
|
|
1589
1598
|
<mock-object-control
|
|
1590
1599
|
classnamewrapper="classNameWrapper css-1pznrxi"
|
|
1591
|
-
collapsed="
|
|
1600
|
+
collapsed=""
|
|
1592
1601
|
data-testid="object-control-1"
|
|
1593
1602
|
field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
|
|
1594
1603
|
fieldserrors="Map {}"
|
|
1595
|
-
forlist="
|
|
1604
|
+
forlist=""
|
|
1596
1605
|
parentids="forID,1"
|
|
1597
1606
|
validationkey="1"
|
|
1598
1607
|
value="Map { \\"string\\": \\"item 2\\" }"
|
|
@@ -1613,7 +1622,7 @@ exports[`ListControl should render list with fields with default collapse ("true
|
|
|
1613
1622
|
aria-live="assertive"
|
|
1614
1623
|
id="DndLiveRegion-15"
|
|
1615
1624
|
role="status"
|
|
1616
|
-
style="position: fixed; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
|
|
1625
|
+
style="position: fixed; top: 0px; left: 0px; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
|
|
1617
1626
|
/>
|
|
1618
1627
|
</div>
|
|
1619
1628
|
</div>
|
|
@@ -1941,6 +1950,10 @@ exports[`ListControl should render list with nested object 1`] = `
|
|
|
1941
1950
|
}
|
|
1942
1951
|
|
|
1943
1952
|
.emotion-17 {
|
|
1953
|
+
background-color: #dfdfe3;
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1956
|
+
.emotion-19 {
|
|
1944
1957
|
display: block;
|
|
1945
1958
|
border-top: 0;
|
|
1946
1959
|
color: inherit;
|
|
@@ -2002,8 +2015,8 @@ exports[`ListControl should render list with nested object 1`] = `
|
|
|
2002
2015
|
class="emotion-15 emotion-16"
|
|
2003
2016
|
>
|
|
2004
2017
|
<mock-list-item-top-bar
|
|
2005
|
-
|
|
2006
|
-
collapsed="
|
|
2018
|
+
class="emotion-17 emotion-18"
|
|
2019
|
+
collapsed=""
|
|
2007
2020
|
data-testid="styled-list-item-top-bar-0"
|
|
2008
2021
|
id="0"
|
|
2009
2022
|
>
|
|
@@ -2012,17 +2025,17 @@ exports[`ListControl should render list with nested object 1`] = `
|
|
|
2012
2025
|
</button>
|
|
2013
2026
|
</mock-list-item-top-bar>
|
|
2014
2027
|
<div
|
|
2015
|
-
class="emotion-
|
|
2028
|
+
class="emotion-19 emotion-20"
|
|
2016
2029
|
>
|
|
2017
2030
|
Object
|
|
2018
2031
|
</div>
|
|
2019
2032
|
<mock-object-control
|
|
2020
2033
|
classnamewrapper="classNameWrapper css-1pznrxi"
|
|
2021
|
-
collapsed="
|
|
2034
|
+
collapsed=""
|
|
2022
2035
|
data-testid="object-control-0"
|
|
2023
2036
|
field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"field\\": Map { \\"name\\": \\"object\\", \\"widget\\": \\"object\\", \\"label\\": \\"Object\\", \\"fields\\": List [ Map { \\"name\\": \\"title\\", \\"widget\\": \\"string\\", \\"label\\": \\"Title\\" } ] } }"
|
|
2024
2037
|
fieldserrors="Map {}"
|
|
2025
|
-
forlist="
|
|
2038
|
+
forlist=""
|
|
2026
2039
|
parentids="forID,0"
|
|
2027
2040
|
validationkey="0"
|
|
2028
2041
|
value="Map { \\"object\\": Map { \\"title\\": \\"item 1\\" } }"
|
|
@@ -2032,8 +2045,8 @@ exports[`ListControl should render list with nested object 1`] = `
|
|
|
2032
2045
|
class="emotion-15 emotion-16"
|
|
2033
2046
|
>
|
|
2034
2047
|
<mock-list-item-top-bar
|
|
2035
|
-
|
|
2036
|
-
collapsed="
|
|
2048
|
+
class="emotion-17 emotion-18"
|
|
2049
|
+
collapsed=""
|
|
2037
2050
|
data-testid="styled-list-item-top-bar-1"
|
|
2038
2051
|
id="1"
|
|
2039
2052
|
>
|
|
@@ -2042,17 +2055,17 @@ exports[`ListControl should render list with nested object 1`] = `
|
|
|
2042
2055
|
</button>
|
|
2043
2056
|
</mock-list-item-top-bar>
|
|
2044
2057
|
<div
|
|
2045
|
-
class="emotion-
|
|
2058
|
+
class="emotion-19 emotion-20"
|
|
2046
2059
|
>
|
|
2047
2060
|
Object
|
|
2048
2061
|
</div>
|
|
2049
2062
|
<mock-object-control
|
|
2050
2063
|
classnamewrapper="classNameWrapper css-1pznrxi"
|
|
2051
|
-
collapsed="
|
|
2064
|
+
collapsed=""
|
|
2052
2065
|
data-testid="object-control-1"
|
|
2053
2066
|
field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"field\\": Map { \\"name\\": \\"object\\", \\"widget\\": \\"object\\", \\"label\\": \\"Object\\", \\"fields\\": List [ Map { \\"name\\": \\"title\\", \\"widget\\": \\"string\\", \\"label\\": \\"Title\\" } ] } }"
|
|
2054
2067
|
fieldserrors="Map {}"
|
|
2055
|
-
forlist="
|
|
2068
|
+
forlist=""
|
|
2056
2069
|
parentids="forID,1"
|
|
2057
2070
|
validationkey="1"
|
|
2058
2071
|
value="Map { \\"object\\": Map { \\"title\\": \\"item 2\\" } }"
|
|
@@ -2073,7 +2086,7 @@ exports[`ListControl should render list with nested object 1`] = `
|
|
|
2073
2086
|
aria-live="assertive"
|
|
2074
2087
|
id="DndLiveRegion-0"
|
|
2075
2088
|
role="status"
|
|
2076
|
-
style="position: fixed; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
|
|
2089
|
+
style="position: fixed; top: 0px; left: 0px; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
|
|
2077
2090
|
/>
|
|
2078
2091
|
</div>
|
|
2079
2092
|
</div>
|
|
@@ -2219,6 +2232,10 @@ exports[`ListControl should render list with nested object with collapse = false
|
|
|
2219
2232
|
}
|
|
2220
2233
|
|
|
2221
2234
|
.emotion-17 {
|
|
2235
|
+
background-color: #dfdfe3;
|
|
2236
|
+
}
|
|
2237
|
+
|
|
2238
|
+
.emotion-19 {
|
|
2222
2239
|
display: none;
|
|
2223
2240
|
border-top: 0;
|
|
2224
2241
|
color: inherit;
|
|
@@ -2280,8 +2297,7 @@ exports[`ListControl should render list with nested object with collapse = false
|
|
|
2280
2297
|
class="emotion-15 emotion-16"
|
|
2281
2298
|
>
|
|
2282
2299
|
<mock-list-item-top-bar
|
|
2283
|
-
|
|
2284
|
-
collapsed="false"
|
|
2300
|
+
class="emotion-17 emotion-18"
|
|
2285
2301
|
data-testid="styled-list-item-top-bar-0"
|
|
2286
2302
|
id="0"
|
|
2287
2303
|
>
|
|
@@ -2290,17 +2306,16 @@ exports[`ListControl should render list with nested object with collapse = false
|
|
|
2290
2306
|
</button>
|
|
2291
2307
|
</mock-list-item-top-bar>
|
|
2292
2308
|
<div
|
|
2293
|
-
class="emotion-
|
|
2309
|
+
class="emotion-19 emotion-20"
|
|
2294
2310
|
>
|
|
2295
2311
|
Object
|
|
2296
2312
|
</div>
|
|
2297
2313
|
<mock-object-control
|
|
2298
2314
|
classnamewrapper="classNameWrapper"
|
|
2299
|
-
collapsed="false"
|
|
2300
2315
|
data-testid="object-control-0"
|
|
2301
2316
|
field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"field\\": Map { \\"name\\": \\"object\\", \\"widget\\": \\"object\\", \\"label\\": \\"Object\\", \\"fields\\": List [ Map { \\"name\\": \\"title\\", \\"widget\\": \\"string\\", \\"label\\": \\"Title\\" } ] } }"
|
|
2302
2317
|
fieldserrors="Map {}"
|
|
2303
|
-
forlist="
|
|
2318
|
+
forlist=""
|
|
2304
2319
|
parentids="forID,0"
|
|
2305
2320
|
validationkey="0"
|
|
2306
2321
|
value="Map { \\"object\\": Map { \\"title\\": \\"item 1\\" } }"
|
|
@@ -2310,8 +2325,7 @@ exports[`ListControl should render list with nested object with collapse = false
|
|
|
2310
2325
|
class="emotion-15 emotion-16"
|
|
2311
2326
|
>
|
|
2312
2327
|
<mock-list-item-top-bar
|
|
2313
|
-
|
|
2314
|
-
collapsed="false"
|
|
2328
|
+
class="emotion-17 emotion-18"
|
|
2315
2329
|
data-testid="styled-list-item-top-bar-1"
|
|
2316
2330
|
id="1"
|
|
2317
2331
|
>
|
|
@@ -2320,17 +2334,16 @@ exports[`ListControl should render list with nested object with collapse = false
|
|
|
2320
2334
|
</button>
|
|
2321
2335
|
</mock-list-item-top-bar>
|
|
2322
2336
|
<div
|
|
2323
|
-
class="emotion-
|
|
2337
|
+
class="emotion-19 emotion-20"
|
|
2324
2338
|
>
|
|
2325
2339
|
Object
|
|
2326
2340
|
</div>
|
|
2327
2341
|
<mock-object-control
|
|
2328
2342
|
classnamewrapper="classNameWrapper"
|
|
2329
|
-
collapsed="false"
|
|
2330
2343
|
data-testid="object-control-1"
|
|
2331
2344
|
field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"field\\": Map { \\"name\\": \\"object\\", \\"widget\\": \\"object\\", \\"label\\": \\"Object\\", \\"fields\\": List [ Map { \\"name\\": \\"title\\", \\"widget\\": \\"string\\", \\"label\\": \\"Title\\" } ] } }"
|
|
2332
2345
|
fieldserrors="Map {}"
|
|
2333
|
-
forlist="
|
|
2346
|
+
forlist=""
|
|
2334
2347
|
parentids="forID,1"
|
|
2335
2348
|
validationkey="1"
|
|
2336
2349
|
value="Map { \\"object\\": Map { \\"title\\": \\"item 2\\" } }"
|
|
@@ -2351,7 +2364,7 @@ exports[`ListControl should render list with nested object with collapse = false
|
|
|
2351
2364
|
aria-live="assertive"
|
|
2352
2365
|
id="DndLiveRegion-1"
|
|
2353
2366
|
role="status"
|
|
2354
|
-
style="position: fixed; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
|
|
2367
|
+
style="position: fixed; top: 0px; left: 0px; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%); white-space: nowrap;"
|
|
2355
2368
|
/>
|
|
2356
2369
|
</div>
|
|
2357
2370
|
</div>
|