decap-cms-widget-list 3.3.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 +4 -0
- 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 +443 -447
- package/dist/esm/index.js +4 -8
- package/package.json +3 -3
- package/src/ListControl.js +8 -1
- package/src/__tests__/ListControl.spec.js +58 -58
- package/src/__tests__/__snapshots__/ListControl.spec.js.snap +92 -78
|
@@ -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;
|
|
@@ -726,8 +732,8 @@ exports[`ListControl should remove from list when remove button is clicked 2`] =
|
|
|
726
732
|
class="emotion-15 emotion-16"
|
|
727
733
|
>
|
|
728
734
|
<mock-list-item-top-bar
|
|
729
|
-
|
|
730
|
-
collapsed="
|
|
735
|
+
class="emotion-17 emotion-18"
|
|
736
|
+
collapsed=""
|
|
731
737
|
data-testid="styled-list-item-top-bar-1"
|
|
732
738
|
id="1"
|
|
733
739
|
>
|
|
@@ -736,17 +742,17 @@ exports[`ListControl should remove from list when remove button is clicked 2`] =
|
|
|
736
742
|
</button>
|
|
737
743
|
</mock-list-item-top-bar>
|
|
738
744
|
<div
|
|
739
|
-
class="emotion-
|
|
745
|
+
class="emotion-19 emotion-20"
|
|
740
746
|
>
|
|
741
747
|
item 2
|
|
742
748
|
</div>
|
|
743
749
|
<mock-object-control
|
|
744
750
|
classnamewrapper="classNameWrapper css-1pznrxi"
|
|
745
|
-
collapsed="
|
|
751
|
+
collapsed=""
|
|
746
752
|
data-testid="object-control-1"
|
|
747
753
|
field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"minimize_collapsed\\": true, \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
|
|
748
754
|
fieldserrors="Map {}"
|
|
749
|
-
forlist="
|
|
755
|
+
forlist=""
|
|
750
756
|
parentids="forID,1"
|
|
751
757
|
validationkey="1"
|
|
752
758
|
value="Map { \\"string\\": \\"item 2\\" }"
|
|
@@ -767,7 +773,7 @@ exports[`ListControl should remove from list when remove button is clicked 2`] =
|
|
|
767
773
|
aria-live="assertive"
|
|
768
774
|
id="DndLiveRegion-20"
|
|
769
775
|
role="status"
|
|
770
|
-
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;"
|
|
771
777
|
/>
|
|
772
778
|
</div>
|
|
773
779
|
</div>
|
|
@@ -924,6 +930,10 @@ exports[`ListControl should render list with fields with collapse = "false" and
|
|
|
924
930
|
}
|
|
925
931
|
|
|
926
932
|
.emotion-17 {
|
|
933
|
+
background-color: #dfdfe3;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
.emotion-19 {
|
|
927
937
|
display: none;
|
|
928
938
|
border-top: 0;
|
|
929
939
|
color: inherit;
|
|
@@ -985,8 +995,7 @@ exports[`ListControl should render list with fields with collapse = "false" and
|
|
|
985
995
|
class="emotion-15 emotion-16"
|
|
986
996
|
>
|
|
987
997
|
<mock-list-item-top-bar
|
|
988
|
-
|
|
989
|
-
collapsed="false"
|
|
998
|
+
class="emotion-17 emotion-18"
|
|
990
999
|
data-testid="styled-list-item-top-bar-0"
|
|
991
1000
|
id="0"
|
|
992
1001
|
>
|
|
@@ -995,17 +1004,16 @@ exports[`ListControl should render list with fields with collapse = "false" and
|
|
|
995
1004
|
</button>
|
|
996
1005
|
</mock-list-item-top-bar>
|
|
997
1006
|
<div
|
|
998
|
-
class="emotion-
|
|
1007
|
+
class="emotion-19 emotion-20"
|
|
999
1008
|
>
|
|
1000
1009
|
item 1
|
|
1001
1010
|
</div>
|
|
1002
1011
|
<mock-object-control
|
|
1003
1012
|
classnamewrapper="classNameWrapper"
|
|
1004
|
-
collapsed="false"
|
|
1005
1013
|
data-testid="object-control-0"
|
|
1006
1014
|
field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
|
|
1007
1015
|
fieldserrors="Map {}"
|
|
1008
|
-
forlist="
|
|
1016
|
+
forlist=""
|
|
1009
1017
|
parentids="forID,0"
|
|
1010
1018
|
validationkey="0"
|
|
1011
1019
|
value="Map { \\"string\\": \\"item 1\\" }"
|
|
@@ -1015,8 +1023,7 @@ exports[`ListControl should render list with fields with collapse = "false" and
|
|
|
1015
1023
|
class="emotion-15 emotion-16"
|
|
1016
1024
|
>
|
|
1017
1025
|
<mock-list-item-top-bar
|
|
1018
|
-
|
|
1019
|
-
collapsed="false"
|
|
1026
|
+
class="emotion-17 emotion-18"
|
|
1020
1027
|
data-testid="styled-list-item-top-bar-1"
|
|
1021
1028
|
id="1"
|
|
1022
1029
|
>
|
|
@@ -1025,17 +1032,16 @@ exports[`ListControl should render list with fields with collapse = "false" and
|
|
|
1025
1032
|
</button>
|
|
1026
1033
|
</mock-list-item-top-bar>
|
|
1027
1034
|
<div
|
|
1028
|
-
class="emotion-
|
|
1035
|
+
class="emotion-19 emotion-20"
|
|
1029
1036
|
>
|
|
1030
1037
|
item 2
|
|
1031
1038
|
</div>
|
|
1032
1039
|
<mock-object-control
|
|
1033
1040
|
classnamewrapper="classNameWrapper"
|
|
1034
|
-
collapsed="false"
|
|
1035
1041
|
data-testid="object-control-1"
|
|
1036
1042
|
field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
|
|
1037
1043
|
fieldserrors="Map {}"
|
|
1038
|
-
forlist="
|
|
1044
|
+
forlist=""
|
|
1039
1045
|
parentids="forID,1"
|
|
1040
1046
|
validationkey="1"
|
|
1041
1047
|
value="Map { \\"string\\": \\"item 2\\" }"
|
|
@@ -1056,7 +1062,7 @@ exports[`ListControl should render list with fields with collapse = "false" and
|
|
|
1056
1062
|
aria-live="assertive"
|
|
1057
1063
|
id="DndLiveRegion-16"
|
|
1058
1064
|
role="status"
|
|
1059
|
-
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;"
|
|
1060
1066
|
/>
|
|
1061
1067
|
</div>
|
|
1062
1068
|
</div>
|
|
@@ -1202,6 +1208,10 @@ exports[`ListControl should render list with fields with collapse = "false" and
|
|
|
1202
1208
|
}
|
|
1203
1209
|
|
|
1204
1210
|
.emotion-17 {
|
|
1211
|
+
background-color: #dfdfe3;
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
.emotion-19 {
|
|
1205
1215
|
display: none;
|
|
1206
1216
|
border-top: 0;
|
|
1207
1217
|
color: inherit;
|
|
@@ -1263,8 +1273,7 @@ exports[`ListControl should render list with fields with collapse = "false" and
|
|
|
1263
1273
|
class="emotion-15 emotion-16"
|
|
1264
1274
|
>
|
|
1265
1275
|
<mock-list-item-top-bar
|
|
1266
|
-
|
|
1267
|
-
collapsed="false"
|
|
1276
|
+
class="emotion-17 emotion-18"
|
|
1268
1277
|
data-testid="styled-list-item-top-bar-0"
|
|
1269
1278
|
id="0"
|
|
1270
1279
|
>
|
|
@@ -1273,17 +1282,16 @@ exports[`ListControl should render list with fields with collapse = "false" and
|
|
|
1273
1282
|
</button>
|
|
1274
1283
|
</mock-list-item-top-bar>
|
|
1275
1284
|
<div
|
|
1276
|
-
class="emotion-
|
|
1285
|
+
class="emotion-19 emotion-20"
|
|
1277
1286
|
>
|
|
1278
1287
|
item 1
|
|
1279
1288
|
</div>
|
|
1280
1289
|
<mock-object-control
|
|
1281
1290
|
classnamewrapper="classNameWrapper"
|
|
1282
|
-
collapsed="false"
|
|
1283
1291
|
data-testid="object-control-0"
|
|
1284
1292
|
field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"minimize_collapsed\\": true, \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
|
|
1285
1293
|
fieldserrors="Map {}"
|
|
1286
|
-
forlist="
|
|
1294
|
+
forlist=""
|
|
1287
1295
|
parentids="forID,0"
|
|
1288
1296
|
validationkey="0"
|
|
1289
1297
|
value="Map { \\"string\\": \\"item 1\\" }"
|
|
@@ -1293,8 +1301,7 @@ exports[`ListControl should render list with fields with collapse = "false" and
|
|
|
1293
1301
|
class="emotion-15 emotion-16"
|
|
1294
1302
|
>
|
|
1295
1303
|
<mock-list-item-top-bar
|
|
1296
|
-
|
|
1297
|
-
collapsed="false"
|
|
1304
|
+
class="emotion-17 emotion-18"
|
|
1298
1305
|
data-testid="styled-list-item-top-bar-1"
|
|
1299
1306
|
id="1"
|
|
1300
1307
|
>
|
|
@@ -1303,17 +1310,16 @@ exports[`ListControl should render list with fields with collapse = "false" and
|
|
|
1303
1310
|
</button>
|
|
1304
1311
|
</mock-list-item-top-bar>
|
|
1305
1312
|
<div
|
|
1306
|
-
class="emotion-
|
|
1313
|
+
class="emotion-19 emotion-20"
|
|
1307
1314
|
>
|
|
1308
1315
|
item 2
|
|
1309
1316
|
</div>
|
|
1310
1317
|
<mock-object-control
|
|
1311
1318
|
classnamewrapper="classNameWrapper"
|
|
1312
|
-
collapsed="false"
|
|
1313
1319
|
data-testid="object-control-1"
|
|
1314
1320
|
field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"minimize_collapsed\\": true, \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
|
|
1315
1321
|
fieldserrors="Map {}"
|
|
1316
|
-
forlist="
|
|
1322
|
+
forlist=""
|
|
1317
1323
|
parentids="forID,1"
|
|
1318
1324
|
validationkey="1"
|
|
1319
1325
|
value="Map { \\"string\\": \\"item 2\\" }"
|
|
@@ -1334,7 +1340,7 @@ exports[`ListControl should render list with fields with collapse = "false" and
|
|
|
1334
1340
|
aria-live="assertive"
|
|
1335
1341
|
id="DndLiveRegion-18"
|
|
1336
1342
|
role="status"
|
|
1337
|
-
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;"
|
|
1338
1344
|
/>
|
|
1339
1345
|
</div>
|
|
1340
1346
|
</div>
|
|
@@ -1480,6 +1486,10 @@ exports[`ListControl should render list with fields with default collapse ("true
|
|
|
1480
1486
|
}
|
|
1481
1487
|
|
|
1482
1488
|
.emotion-17 {
|
|
1489
|
+
background-color: #dfdfe3;
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
.emotion-19 {
|
|
1483
1493
|
display: block;
|
|
1484
1494
|
border-top: 0;
|
|
1485
1495
|
color: inherit;
|
|
@@ -1541,8 +1551,8 @@ exports[`ListControl should render list with fields with default collapse ("true
|
|
|
1541
1551
|
class="emotion-15 emotion-16"
|
|
1542
1552
|
>
|
|
1543
1553
|
<mock-list-item-top-bar
|
|
1544
|
-
|
|
1545
|
-
collapsed="
|
|
1554
|
+
class="emotion-17 emotion-18"
|
|
1555
|
+
collapsed=""
|
|
1546
1556
|
data-testid="styled-list-item-top-bar-0"
|
|
1547
1557
|
id="0"
|
|
1548
1558
|
>
|
|
@@ -1551,17 +1561,17 @@ exports[`ListControl should render list with fields with default collapse ("true
|
|
|
1551
1561
|
</button>
|
|
1552
1562
|
</mock-list-item-top-bar>
|
|
1553
1563
|
<div
|
|
1554
|
-
class="emotion-
|
|
1564
|
+
class="emotion-19 emotion-20"
|
|
1555
1565
|
>
|
|
1556
1566
|
item 1
|
|
1557
1567
|
</div>
|
|
1558
1568
|
<mock-object-control
|
|
1559
1569
|
classnamewrapper="classNameWrapper css-1pznrxi"
|
|
1560
|
-
collapsed="
|
|
1570
|
+
collapsed=""
|
|
1561
1571
|
data-testid="object-control-0"
|
|
1562
1572
|
field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
|
|
1563
1573
|
fieldserrors="Map {}"
|
|
1564
|
-
forlist="
|
|
1574
|
+
forlist=""
|
|
1565
1575
|
parentids="forID,0"
|
|
1566
1576
|
validationkey="0"
|
|
1567
1577
|
value="Map { \\"string\\": \\"item 1\\" }"
|
|
@@ -1571,8 +1581,8 @@ exports[`ListControl should render list with fields with default collapse ("true
|
|
|
1571
1581
|
class="emotion-15 emotion-16"
|
|
1572
1582
|
>
|
|
1573
1583
|
<mock-list-item-top-bar
|
|
1574
|
-
|
|
1575
|
-
collapsed="
|
|
1584
|
+
class="emotion-17 emotion-18"
|
|
1585
|
+
collapsed=""
|
|
1576
1586
|
data-testid="styled-list-item-top-bar-1"
|
|
1577
1587
|
id="1"
|
|
1578
1588
|
>
|
|
@@ -1581,17 +1591,17 @@ exports[`ListControl should render list with fields with default collapse ("true
|
|
|
1581
1591
|
</button>
|
|
1582
1592
|
</mock-list-item-top-bar>
|
|
1583
1593
|
<div
|
|
1584
|
-
class="emotion-
|
|
1594
|
+
class="emotion-19 emotion-20"
|
|
1585
1595
|
>
|
|
1586
1596
|
item 2
|
|
1587
1597
|
</div>
|
|
1588
1598
|
<mock-object-control
|
|
1589
1599
|
classnamewrapper="classNameWrapper css-1pznrxi"
|
|
1590
|
-
collapsed="
|
|
1600
|
+
collapsed=""
|
|
1591
1601
|
data-testid="object-control-1"
|
|
1592
1602
|
field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
|
|
1593
1603
|
fieldserrors="Map {}"
|
|
1594
|
-
forlist="
|
|
1604
|
+
forlist=""
|
|
1595
1605
|
parentids="forID,1"
|
|
1596
1606
|
validationkey="1"
|
|
1597
1607
|
value="Map { \\"string\\": \\"item 2\\" }"
|
|
@@ -1612,7 +1622,7 @@ exports[`ListControl should render list with fields with default collapse ("true
|
|
|
1612
1622
|
aria-live="assertive"
|
|
1613
1623
|
id="DndLiveRegion-15"
|
|
1614
1624
|
role="status"
|
|
1615
|
-
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;"
|
|
1616
1626
|
/>
|
|
1617
1627
|
</div>
|
|
1618
1628
|
</div>
|
|
@@ -1940,6 +1950,10 @@ exports[`ListControl should render list with nested object 1`] = `
|
|
|
1940
1950
|
}
|
|
1941
1951
|
|
|
1942
1952
|
.emotion-17 {
|
|
1953
|
+
background-color: #dfdfe3;
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1956
|
+
.emotion-19 {
|
|
1943
1957
|
display: block;
|
|
1944
1958
|
border-top: 0;
|
|
1945
1959
|
color: inherit;
|
|
@@ -2001,8 +2015,8 @@ exports[`ListControl should render list with nested object 1`] = `
|
|
|
2001
2015
|
class="emotion-15 emotion-16"
|
|
2002
2016
|
>
|
|
2003
2017
|
<mock-list-item-top-bar
|
|
2004
|
-
|
|
2005
|
-
collapsed="
|
|
2018
|
+
class="emotion-17 emotion-18"
|
|
2019
|
+
collapsed=""
|
|
2006
2020
|
data-testid="styled-list-item-top-bar-0"
|
|
2007
2021
|
id="0"
|
|
2008
2022
|
>
|
|
@@ -2011,17 +2025,17 @@ exports[`ListControl should render list with nested object 1`] = `
|
|
|
2011
2025
|
</button>
|
|
2012
2026
|
</mock-list-item-top-bar>
|
|
2013
2027
|
<div
|
|
2014
|
-
class="emotion-
|
|
2028
|
+
class="emotion-19 emotion-20"
|
|
2015
2029
|
>
|
|
2016
2030
|
Object
|
|
2017
2031
|
</div>
|
|
2018
2032
|
<mock-object-control
|
|
2019
2033
|
classnamewrapper="classNameWrapper css-1pznrxi"
|
|
2020
|
-
collapsed="
|
|
2034
|
+
collapsed=""
|
|
2021
2035
|
data-testid="object-control-0"
|
|
2022
2036
|
field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"field\\": Map { \\"name\\": \\"object\\", \\"widget\\": \\"object\\", \\"label\\": \\"Object\\", \\"fields\\": List [ Map { \\"name\\": \\"title\\", \\"widget\\": \\"string\\", \\"label\\": \\"Title\\" } ] } }"
|
|
2023
2037
|
fieldserrors="Map {}"
|
|
2024
|
-
forlist="
|
|
2038
|
+
forlist=""
|
|
2025
2039
|
parentids="forID,0"
|
|
2026
2040
|
validationkey="0"
|
|
2027
2041
|
value="Map { \\"object\\": Map { \\"title\\": \\"item 1\\" } }"
|
|
@@ -2031,8 +2045,8 @@ exports[`ListControl should render list with nested object 1`] = `
|
|
|
2031
2045
|
class="emotion-15 emotion-16"
|
|
2032
2046
|
>
|
|
2033
2047
|
<mock-list-item-top-bar
|
|
2034
|
-
|
|
2035
|
-
collapsed="
|
|
2048
|
+
class="emotion-17 emotion-18"
|
|
2049
|
+
collapsed=""
|
|
2036
2050
|
data-testid="styled-list-item-top-bar-1"
|
|
2037
2051
|
id="1"
|
|
2038
2052
|
>
|
|
@@ -2041,17 +2055,17 @@ exports[`ListControl should render list with nested object 1`] = `
|
|
|
2041
2055
|
</button>
|
|
2042
2056
|
</mock-list-item-top-bar>
|
|
2043
2057
|
<div
|
|
2044
|
-
class="emotion-
|
|
2058
|
+
class="emotion-19 emotion-20"
|
|
2045
2059
|
>
|
|
2046
2060
|
Object
|
|
2047
2061
|
</div>
|
|
2048
2062
|
<mock-object-control
|
|
2049
2063
|
classnamewrapper="classNameWrapper css-1pznrxi"
|
|
2050
|
-
collapsed="
|
|
2064
|
+
collapsed=""
|
|
2051
2065
|
data-testid="object-control-1"
|
|
2052
2066
|
field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"field\\": Map { \\"name\\": \\"object\\", \\"widget\\": \\"object\\", \\"label\\": \\"Object\\", \\"fields\\": List [ Map { \\"name\\": \\"title\\", \\"widget\\": \\"string\\", \\"label\\": \\"Title\\" } ] } }"
|
|
2053
2067
|
fieldserrors="Map {}"
|
|
2054
|
-
forlist="
|
|
2068
|
+
forlist=""
|
|
2055
2069
|
parentids="forID,1"
|
|
2056
2070
|
validationkey="1"
|
|
2057
2071
|
value="Map { \\"object\\": Map { \\"title\\": \\"item 2\\" } }"
|
|
@@ -2072,7 +2086,7 @@ exports[`ListControl should render list with nested object 1`] = `
|
|
|
2072
2086
|
aria-live="assertive"
|
|
2073
2087
|
id="DndLiveRegion-0"
|
|
2074
2088
|
role="status"
|
|
2075
|
-
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;"
|
|
2076
2090
|
/>
|
|
2077
2091
|
</div>
|
|
2078
2092
|
</div>
|
|
@@ -2218,6 +2232,10 @@ exports[`ListControl should render list with nested object with collapse = false
|
|
|
2218
2232
|
}
|
|
2219
2233
|
|
|
2220
2234
|
.emotion-17 {
|
|
2235
|
+
background-color: #dfdfe3;
|
|
2236
|
+
}
|
|
2237
|
+
|
|
2238
|
+
.emotion-19 {
|
|
2221
2239
|
display: none;
|
|
2222
2240
|
border-top: 0;
|
|
2223
2241
|
color: inherit;
|
|
@@ -2279,8 +2297,7 @@ exports[`ListControl should render list with nested object with collapse = false
|
|
|
2279
2297
|
class="emotion-15 emotion-16"
|
|
2280
2298
|
>
|
|
2281
2299
|
<mock-list-item-top-bar
|
|
2282
|
-
|
|
2283
|
-
collapsed="false"
|
|
2300
|
+
class="emotion-17 emotion-18"
|
|
2284
2301
|
data-testid="styled-list-item-top-bar-0"
|
|
2285
2302
|
id="0"
|
|
2286
2303
|
>
|
|
@@ -2289,17 +2306,16 @@ exports[`ListControl should render list with nested object with collapse = false
|
|
|
2289
2306
|
</button>
|
|
2290
2307
|
</mock-list-item-top-bar>
|
|
2291
2308
|
<div
|
|
2292
|
-
class="emotion-
|
|
2309
|
+
class="emotion-19 emotion-20"
|
|
2293
2310
|
>
|
|
2294
2311
|
Object
|
|
2295
2312
|
</div>
|
|
2296
2313
|
<mock-object-control
|
|
2297
2314
|
classnamewrapper="classNameWrapper"
|
|
2298
|
-
collapsed="false"
|
|
2299
2315
|
data-testid="object-control-0"
|
|
2300
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\\" } ] } }"
|
|
2301
2317
|
fieldserrors="Map {}"
|
|
2302
|
-
forlist="
|
|
2318
|
+
forlist=""
|
|
2303
2319
|
parentids="forID,0"
|
|
2304
2320
|
validationkey="0"
|
|
2305
2321
|
value="Map { \\"object\\": Map { \\"title\\": \\"item 1\\" } }"
|
|
@@ -2309,8 +2325,7 @@ exports[`ListControl should render list with nested object with collapse = false
|
|
|
2309
2325
|
class="emotion-15 emotion-16"
|
|
2310
2326
|
>
|
|
2311
2327
|
<mock-list-item-top-bar
|
|
2312
|
-
|
|
2313
|
-
collapsed="false"
|
|
2328
|
+
class="emotion-17 emotion-18"
|
|
2314
2329
|
data-testid="styled-list-item-top-bar-1"
|
|
2315
2330
|
id="1"
|
|
2316
2331
|
>
|
|
@@ -2319,17 +2334,16 @@ exports[`ListControl should render list with nested object with collapse = false
|
|
|
2319
2334
|
</button>
|
|
2320
2335
|
</mock-list-item-top-bar>
|
|
2321
2336
|
<div
|
|
2322
|
-
class="emotion-
|
|
2337
|
+
class="emotion-19 emotion-20"
|
|
2323
2338
|
>
|
|
2324
2339
|
Object
|
|
2325
2340
|
</div>
|
|
2326
2341
|
<mock-object-control
|
|
2327
2342
|
classnamewrapper="classNameWrapper"
|
|
2328
|
-
collapsed="false"
|
|
2329
2343
|
data-testid="object-control-1"
|
|
2330
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\\" } ] } }"
|
|
2331
2345
|
fieldserrors="Map {}"
|
|
2332
|
-
forlist="
|
|
2346
|
+
forlist=""
|
|
2333
2347
|
parentids="forID,1"
|
|
2334
2348
|
validationkey="1"
|
|
2335
2349
|
value="Map { \\"object\\": Map { \\"title\\": \\"item 2\\" } }"
|
|
@@ -2350,7 +2364,7 @@ exports[`ListControl should render list with nested object with collapse = false
|
|
|
2350
2364
|
aria-live="assertive"
|
|
2351
2365
|
id="DndLiveRegion-1"
|
|
2352
2366
|
role="status"
|
|
2353
|
-
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;"
|
|
2354
2368
|
/>
|
|
2355
2369
|
</div>
|
|
2356
2370
|
</div>
|