decap-cms-widget-list 2.11.0-beta.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.
@@ -0,0 +1,2213 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`ListControl should add to list when add button is clicked 1`] = `
4
+ <DocumentFragment>
5
+ .emotion-18 {
6
+ padding: 0 14px 14px;
7
+ }
8
+
9
+ .emotion-12 {
10
+ -webkit-align-items: center;
11
+ -webkit-box-align: center;
12
+ -ms-flex-align: center;
13
+ align-items: center;
14
+ background-color: #dfdfe3;
15
+ display: -webkit-box;
16
+ display: -webkit-flex;
17
+ display: -ms-flexbox;
18
+ display: flex;
19
+ -webkit-box-pack: justify;
20
+ -webkit-justify-content: space-between;
21
+ -ms-flex-pack: justify;
22
+ justify-content: space-between;
23
+ margin: 0 -14px;
24
+ padding: 13px;
25
+ }
26
+
27
+ .emotion-5 {
28
+ display: -webkit-box;
29
+ display: -webkit-flex;
30
+ display: -ms-flexbox;
31
+ display: flex;
32
+ -webkit-align-items: center;
33
+ -webkit-box-align: center;
34
+ -ms-flex-align: center;
35
+ align-items: center;
36
+ font-size: 14px;
37
+ font-weight: 500;
38
+ line-height: 1;
39
+ }
40
+
41
+ .emotion-3 {
42
+ border: 0;
43
+ border-radius: 5px;
44
+ cursor: pointer;
45
+ padding: 4px;
46
+ background-color: transparent;
47
+ color: inherit;
48
+ }
49
+
50
+ .emotion-3:last-of-type {
51
+ margin-right: 4px;
52
+ }
53
+
54
+ .emotion-10 {
55
+ border: 0;
56
+ border-radius: 5px;
57
+ cursor: pointer;
58
+ display: -webkit-box;
59
+ display: -webkit-flex;
60
+ display: -ms-flexbox;
61
+ display: flex;
62
+ -webkit-box-pack: center;
63
+ -webkit-justify-content: center;
64
+ -ms-flex-pack: center;
65
+ justify-content: center;
66
+ -webkit-align-items: center;
67
+ -webkit-box-align: center;
68
+ -ms-flex-align: center;
69
+ align-items: center;
70
+ padding: 2px 12px;
71
+ font-size: 12px;
72
+ font-weight: bold;
73
+ border-radius: 3px;
74
+ }
75
+
76
+ .emotion-10 .emotion-0 {
77
+ margin-left: 6px;
78
+ }
79
+
80
+ .emotion-8 {
81
+ display: inline-block;
82
+ line-height: 0;
83
+ width: 12px;
84
+ height: 12px;
85
+ -webkit-transform: rotate(0deg);
86
+ -ms-transform: rotate(0deg);
87
+ transform: rotate(0deg);
88
+ }
89
+
90
+ .emotion-8 path:not(.no-fill),
91
+ .emotion-8 circle:not(.no-fill),
92
+ .emotion-8 polygon:not(.no-fill),
93
+ .emotion-8 rect:not(.no-fill) {
94
+ fill: currentColor;
95
+ }
96
+
97
+ .emotion-8 path.clipped {
98
+ fill: transparent;
99
+ }
100
+
101
+ .emotion-8 svg {
102
+ width: 100%;
103
+ height: 100%;
104
+ }
105
+
106
+ .emotion-1 {
107
+ display: inline-block;
108
+ line-height: 0;
109
+ width: 18px;
110
+ height: 18px;
111
+ -webkit-transform: rotate(0deg);
112
+ -ms-transform: rotate(0deg);
113
+ transform: rotate(0deg);
114
+ }
115
+
116
+ .emotion-1 path:not(.no-fill),
117
+ .emotion-1 circle:not(.no-fill),
118
+ .emotion-1 polygon:not(.no-fill),
119
+ .emotion-1 rect:not(.no-fill) {
120
+ fill: currentColor;
121
+ }
122
+
123
+ .emotion-1 path.clipped {
124
+ fill: transparent;
125
+ }
126
+
127
+ .emotion-1 svg {
128
+ width: 100%;
129
+ height: 100%;
130
+ }
131
+
132
+ .emotion-16 {
133
+ margin-top: 18px;
134
+ }
135
+
136
+ .emotion-16:first-of-type {
137
+ margin-top: 26px;
138
+ }
139
+
140
+ .emotion-14 {
141
+ display: none;
142
+ border-top: 0;
143
+ color: inherit;
144
+ background-color: #dfdfe3;
145
+ padding: 13px;
146
+ border-radius: 0 0 5px 5px;
147
+ }
148
+
149
+ <div
150
+ class="classNameWrapper emotion-18"
151
+ id="forID"
152
+ >
153
+ <div
154
+ class="emotion-12 emotion-13"
155
+ >
156
+ <div
157
+ class="emotion-5 emotion-6"
158
+ >
159
+ <button
160
+ class="emotion-3 emotion-4"
161
+ data-testid="expand-button"
162
+ >
163
+ <span
164
+ class="emotion-0 emotion-1 emotion-2"
165
+ >
166
+ <svg
167
+ viewBox="0 0 24 24"
168
+ >
169
+ <path
170
+ d="m5.123 6.33-2.26 2.137 8.656 9.15 9.344-9.105-2.17-2.228-7.084 6.902z"
171
+ />
172
+ </svg>
173
+ </span>
174
+ </button>
175
+ 1 list
176
+ </div>
177
+ <button
178
+ class="emotion-10 emotion-11"
179
+ >
180
+ editor.editorWidgets.list.add
181
+ <span
182
+ class="emotion-0 emotion-8 emotion-2"
183
+ >
184
+ <svg
185
+ height="24"
186
+ viewBox="0 0 24 24"
187
+ width="24"
188
+ xmlns="http://www.w3.org/2000/svg"
189
+ >
190
+ <path
191
+ d="M19 14h-4a1 1 0 0 0-1 1v4a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-4a1 1 0 0 0-1-1H5a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h4a1 1 0 0 0 1-1V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1Z"
192
+ />
193
+ </svg>
194
+ </span>
195
+ </button>
196
+ </div>
197
+ <div>
198
+ <div
199
+ class="emotion-16 emotion-17"
200
+ >
201
+ <mock-list-item-top-bar
202
+ classname="css-1e1b0lr-StyledListItemTopBar e11zrb3c1"
203
+ collapsed="false"
204
+ data-testid="styled-list-item-top-bar-0"
205
+ >
206
+ <button>
207
+ Remove
208
+ </button>
209
+ </mock-list-item-top-bar>
210
+ <div
211
+ class="emotion-14 emotion-15"
212
+ >
213
+ No string
214
+ </div>
215
+ <mock-object-control
216
+ classnamewrapper="classNameWrapper"
217
+ collapsed="false"
218
+ data-testid="object-control-0"
219
+ field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
220
+ fieldserrors="Map {}"
221
+ forlist="true"
222
+ parentids="forID,0"
223
+ validationkey="0"
224
+ value="Map {}"
225
+ />
226
+ </div>
227
+ </div>
228
+ </div>
229
+ </DocumentFragment>
230
+ `;
231
+
232
+ exports[`ListControl should remove from list when remove button is clicked 1`] = `
233
+ <DocumentFragment>
234
+ .emotion-22 {
235
+ padding: 0 14px 14px;
236
+ }
237
+
238
+ .emotion-12 {
239
+ -webkit-align-items: center;
240
+ -webkit-box-align: center;
241
+ -ms-flex-align: center;
242
+ align-items: center;
243
+ background-color: #dfdfe3;
244
+ display: -webkit-box;
245
+ display: -webkit-flex;
246
+ display: -ms-flexbox;
247
+ display: flex;
248
+ -webkit-box-pack: justify;
249
+ -webkit-justify-content: space-between;
250
+ -ms-flex-pack: justify;
251
+ justify-content: space-between;
252
+ margin: 0 -14px;
253
+ padding: 13px;
254
+ }
255
+
256
+ .emotion-5 {
257
+ display: -webkit-box;
258
+ display: -webkit-flex;
259
+ display: -ms-flexbox;
260
+ display: flex;
261
+ -webkit-align-items: center;
262
+ -webkit-box-align: center;
263
+ -ms-flex-align: center;
264
+ align-items: center;
265
+ font-size: 14px;
266
+ font-weight: 500;
267
+ line-height: 1;
268
+ }
269
+
270
+ .emotion-3 {
271
+ border: 0;
272
+ border-radius: 5px;
273
+ cursor: pointer;
274
+ padding: 4px;
275
+ background-color: transparent;
276
+ color: inherit;
277
+ }
278
+
279
+ .emotion-3:last-of-type {
280
+ margin-right: 4px;
281
+ }
282
+
283
+ .emotion-10 {
284
+ border: 0;
285
+ border-radius: 5px;
286
+ cursor: pointer;
287
+ display: -webkit-box;
288
+ display: -webkit-flex;
289
+ display: -ms-flexbox;
290
+ display: flex;
291
+ -webkit-box-pack: center;
292
+ -webkit-justify-content: center;
293
+ -ms-flex-pack: center;
294
+ justify-content: center;
295
+ -webkit-align-items: center;
296
+ -webkit-box-align: center;
297
+ -ms-flex-align: center;
298
+ align-items: center;
299
+ padding: 2px 12px;
300
+ font-size: 12px;
301
+ font-weight: bold;
302
+ border-radius: 3px;
303
+ }
304
+
305
+ .emotion-10 .emotion-0 {
306
+ margin-left: 6px;
307
+ }
308
+
309
+ .emotion-8 {
310
+ display: inline-block;
311
+ line-height: 0;
312
+ width: 12px;
313
+ height: 12px;
314
+ -webkit-transform: rotate(0deg);
315
+ -ms-transform: rotate(0deg);
316
+ transform: rotate(0deg);
317
+ }
318
+
319
+ .emotion-8 path:not(.no-fill),
320
+ .emotion-8 circle:not(.no-fill),
321
+ .emotion-8 polygon:not(.no-fill),
322
+ .emotion-8 rect:not(.no-fill) {
323
+ fill: currentColor;
324
+ }
325
+
326
+ .emotion-8 path.clipped {
327
+ fill: transparent;
328
+ }
329
+
330
+ .emotion-8 svg {
331
+ width: 100%;
332
+ height: 100%;
333
+ }
334
+
335
+ .emotion-1 {
336
+ display: inline-block;
337
+ line-height: 0;
338
+ width: 18px;
339
+ height: 18px;
340
+ -webkit-transform: rotate(0deg);
341
+ -ms-transform: rotate(0deg);
342
+ transform: rotate(0deg);
343
+ }
344
+
345
+ .emotion-1 path:not(.no-fill),
346
+ .emotion-1 circle:not(.no-fill),
347
+ .emotion-1 polygon:not(.no-fill),
348
+ .emotion-1 rect:not(.no-fill) {
349
+ fill: currentColor;
350
+ }
351
+
352
+ .emotion-1 path.clipped {
353
+ fill: transparent;
354
+ }
355
+
356
+ .emotion-1 svg {
357
+ width: 100%;
358
+ height: 100%;
359
+ }
360
+
361
+ .emotion-16 {
362
+ margin-top: 18px;
363
+ }
364
+
365
+ .emotion-16:first-of-type {
366
+ margin-top: 26px;
367
+ }
368
+
369
+ .emotion-14 {
370
+ display: none;
371
+ border-top: 0;
372
+ color: inherit;
373
+ background-color: #dfdfe3;
374
+ padding: 13px;
375
+ border-radius: 0 0 5px 5px;
376
+ }
377
+
378
+ <div
379
+ class="classNameWrapper emotion-22"
380
+ id="forID"
381
+ >
382
+ <div
383
+ class="emotion-12 emotion-13"
384
+ >
385
+ <div
386
+ class="emotion-5 emotion-6"
387
+ >
388
+ <button
389
+ class="emotion-3 emotion-4"
390
+ data-testid="expand-button"
391
+ >
392
+ <span
393
+ class="emotion-0 emotion-1 emotion-2"
394
+ >
395
+ <svg
396
+ viewBox="0 0 24 24"
397
+ >
398
+ <path
399
+ d="m5.123 6.33-2.26 2.137 8.656 9.15 9.344-9.105-2.17-2.228-7.084 6.902z"
400
+ />
401
+ </svg>
402
+ </span>
403
+ </button>
404
+ 2 list
405
+ </div>
406
+ <button
407
+ class="emotion-10 emotion-11"
408
+ >
409
+ editor.editorWidgets.list.add
410
+ <span
411
+ class="emotion-0 emotion-8 emotion-2"
412
+ >
413
+ <svg
414
+ height="24"
415
+ viewBox="0 0 24 24"
416
+ width="24"
417
+ xmlns="http://www.w3.org/2000/svg"
418
+ >
419
+ <path
420
+ d="M19 14h-4a1 1 0 0 0-1 1v4a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-4a1 1 0 0 0-1-1H5a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h4a1 1 0 0 0 1-1V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1Z"
421
+ />
422
+ </svg>
423
+ </span>
424
+ </button>
425
+ </div>
426
+ <div>
427
+ <div
428
+ class="emotion-16 emotion-17"
429
+ >
430
+ <mock-list-item-top-bar
431
+ classname="css-1e1b0lr-StyledListItemTopBar e11zrb3c1"
432
+ collapsed="false"
433
+ data-testid="styled-list-item-top-bar-0"
434
+ >
435
+ <button>
436
+ Remove
437
+ </button>
438
+ </mock-list-item-top-bar>
439
+ <div
440
+ class="emotion-14 emotion-15"
441
+ >
442
+ item 1
443
+ </div>
444
+ <mock-object-control
445
+ classnamewrapper="classNameWrapper"
446
+ collapsed="false"
447
+ data-testid="object-control-0"
448
+ field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"minimize_collapsed\\": true, \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
449
+ fieldserrors="Map {}"
450
+ forlist="true"
451
+ parentids="forID,0"
452
+ validationkey="0"
453
+ value="Map { \\"string\\": \\"item 1\\" }"
454
+ />
455
+ </div>
456
+ <div
457
+ class="emotion-16 emotion-17"
458
+ >
459
+ <mock-list-item-top-bar
460
+ classname="css-1e1b0lr-StyledListItemTopBar e11zrb3c1"
461
+ collapsed="false"
462
+ data-testid="styled-list-item-top-bar-1"
463
+ >
464
+ <button>
465
+ Remove
466
+ </button>
467
+ </mock-list-item-top-bar>
468
+ <div
469
+ class="emotion-14 emotion-15"
470
+ >
471
+ item 2
472
+ </div>
473
+ <mock-object-control
474
+ classnamewrapper="classNameWrapper"
475
+ collapsed="false"
476
+ data-testid="object-control-1"
477
+ field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"minimize_collapsed\\": true, \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
478
+ fieldserrors="Map {}"
479
+ forlist="true"
480
+ parentids="forID,1"
481
+ validationkey="1"
482
+ value="Map { \\"string\\": \\"item 2\\" }"
483
+ />
484
+ </div>
485
+ </div>
486
+ </div>
487
+ </DocumentFragment>
488
+ `;
489
+
490
+ exports[`ListControl should remove from list when remove button is clicked 2`] = `
491
+ <DocumentFragment>
492
+ .emotion-18 {
493
+ padding: 0 14px 14px;
494
+ }
495
+
496
+ .emotion-12 {
497
+ -webkit-align-items: center;
498
+ -webkit-box-align: center;
499
+ -ms-flex-align: center;
500
+ align-items: center;
501
+ background-color: #dfdfe3;
502
+ display: -webkit-box;
503
+ display: -webkit-flex;
504
+ display: -ms-flexbox;
505
+ display: flex;
506
+ -webkit-box-pack: justify;
507
+ -webkit-justify-content: space-between;
508
+ -ms-flex-pack: justify;
509
+ justify-content: space-between;
510
+ margin: 0 -14px;
511
+ padding: 13px;
512
+ }
513
+
514
+ .emotion-5 {
515
+ display: -webkit-box;
516
+ display: -webkit-flex;
517
+ display: -ms-flexbox;
518
+ display: flex;
519
+ -webkit-align-items: center;
520
+ -webkit-box-align: center;
521
+ -ms-flex-align: center;
522
+ align-items: center;
523
+ font-size: 14px;
524
+ font-weight: 500;
525
+ line-height: 1;
526
+ }
527
+
528
+ .emotion-3 {
529
+ border: 0;
530
+ border-radius: 5px;
531
+ cursor: pointer;
532
+ padding: 4px;
533
+ background-color: transparent;
534
+ color: inherit;
535
+ }
536
+
537
+ .emotion-3:last-of-type {
538
+ margin-right: 4px;
539
+ }
540
+
541
+ .emotion-10 {
542
+ border: 0;
543
+ border-radius: 5px;
544
+ cursor: pointer;
545
+ display: -webkit-box;
546
+ display: -webkit-flex;
547
+ display: -ms-flexbox;
548
+ display: flex;
549
+ -webkit-box-pack: center;
550
+ -webkit-justify-content: center;
551
+ -ms-flex-pack: center;
552
+ justify-content: center;
553
+ -webkit-align-items: center;
554
+ -webkit-box-align: center;
555
+ -ms-flex-align: center;
556
+ align-items: center;
557
+ padding: 2px 12px;
558
+ font-size: 12px;
559
+ font-weight: bold;
560
+ border-radius: 3px;
561
+ }
562
+
563
+ .emotion-10 .emotion-0 {
564
+ margin-left: 6px;
565
+ }
566
+
567
+ .emotion-8 {
568
+ display: inline-block;
569
+ line-height: 0;
570
+ width: 12px;
571
+ height: 12px;
572
+ -webkit-transform: rotate(0deg);
573
+ -ms-transform: rotate(0deg);
574
+ transform: rotate(0deg);
575
+ }
576
+
577
+ .emotion-8 path:not(.no-fill),
578
+ .emotion-8 circle:not(.no-fill),
579
+ .emotion-8 polygon:not(.no-fill),
580
+ .emotion-8 rect:not(.no-fill) {
581
+ fill: currentColor;
582
+ }
583
+
584
+ .emotion-8 path.clipped {
585
+ fill: transparent;
586
+ }
587
+
588
+ .emotion-8 svg {
589
+ width: 100%;
590
+ height: 100%;
591
+ }
592
+
593
+ .emotion-16 {
594
+ margin-top: 18px;
595
+ padding-bottom: 0;
596
+ }
597
+
598
+ .emotion-16:first-of-type {
599
+ margin-top: 26px;
600
+ }
601
+
602
+ .emotion-14 {
603
+ display: block;
604
+ border-top: 0;
605
+ color: inherit;
606
+ background-color: #dfdfe3;
607
+ padding: 13px;
608
+ border-radius: 0 0 5px 5px;
609
+ }
610
+
611
+ .emotion-1 {
612
+ display: inline-block;
613
+ line-height: 0;
614
+ width: 18px;
615
+ height: 18px;
616
+ -webkit-transform: rotate(0deg);
617
+ -ms-transform: rotate(0deg);
618
+ transform: rotate(0deg);
619
+ }
620
+
621
+ .emotion-1 path:not(.no-fill),
622
+ .emotion-1 circle:not(.no-fill),
623
+ .emotion-1 polygon:not(.no-fill),
624
+ .emotion-1 rect:not(.no-fill) {
625
+ fill: currentColor;
626
+ }
627
+
628
+ .emotion-1 path.clipped {
629
+ fill: transparent;
630
+ }
631
+
632
+ .emotion-1 svg {
633
+ width: 100%;
634
+ height: 100%;
635
+ }
636
+
637
+ <div
638
+ class="classNameWrapper emotion-18"
639
+ id="forID"
640
+ >
641
+ <div
642
+ class="emotion-12 emotion-13"
643
+ >
644
+ <div
645
+ class="emotion-5 emotion-6"
646
+ >
647
+ <button
648
+ class="emotion-3 emotion-4"
649
+ data-testid="expand-button"
650
+ >
651
+ <span
652
+ class="emotion-0 emotion-1 emotion-2"
653
+ >
654
+ <svg
655
+ viewBox="0 0 24 24"
656
+ >
657
+ <path
658
+ d="m5.123 6.33-2.26 2.137 8.656 9.15 9.344-9.105-2.17-2.228-7.084 6.902z"
659
+ />
660
+ </svg>
661
+ </span>
662
+ </button>
663
+ 1 list
664
+ </div>
665
+ <button
666
+ class="emotion-10 emotion-11"
667
+ >
668
+ editor.editorWidgets.list.add
669
+ <span
670
+ class="emotion-0 emotion-8 emotion-2"
671
+ >
672
+ <svg
673
+ height="24"
674
+ viewBox="0 0 24 24"
675
+ width="24"
676
+ xmlns="http://www.w3.org/2000/svg"
677
+ >
678
+ <path
679
+ d="M19 14h-4a1 1 0 0 0-1 1v4a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-4a1 1 0 0 0-1-1H5a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h4a1 1 0 0 0 1-1V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1Z"
680
+ />
681
+ </svg>
682
+ </span>
683
+ </button>
684
+ </div>
685
+ <div>
686
+ <div
687
+ class="emotion-16 emotion-17"
688
+ >
689
+ <mock-list-item-top-bar
690
+ classname="css-1e1b0lr-StyledListItemTopBar e11zrb3c1"
691
+ collapsed="true"
692
+ data-testid="styled-list-item-top-bar-2"
693
+ >
694
+ <button>
695
+ Remove
696
+ </button>
697
+ </mock-list-item-top-bar>
698
+ <div
699
+ class="emotion-14 emotion-15"
700
+ >
701
+ item 2
702
+ </div>
703
+ <mock-object-control
704
+ classnamewrapper="classNameWrapper css-1pznrxi"
705
+ collapsed="true"
706
+ data-testid="object-control-2"
707
+ field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"minimize_collapsed\\": true, \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
708
+ fieldserrors="Map {}"
709
+ forlist="true"
710
+ parentids="forID,2"
711
+ validationkey="2"
712
+ value="Map { \\"string\\": \\"item 2\\" }"
713
+ />
714
+ </div>
715
+ </div>
716
+ </div>
717
+ </DocumentFragment>
718
+ `;
719
+
720
+ exports[`ListControl should render empty list 1`] = `
721
+ <DocumentFragment>
722
+ <input
723
+ class="classNameWrapper"
724
+ id="forID"
725
+ type="text"
726
+ value=""
727
+ />
728
+ </DocumentFragment>
729
+ `;
730
+
731
+ exports[`ListControl should render list with fields with collapse = "false" and default minimize_collapsed ("false") 1`] = `
732
+ <DocumentFragment>
733
+ .emotion-22 {
734
+ padding: 0 14px 14px;
735
+ }
736
+
737
+ .emotion-12 {
738
+ -webkit-align-items: center;
739
+ -webkit-box-align: center;
740
+ -ms-flex-align: center;
741
+ align-items: center;
742
+ background-color: #dfdfe3;
743
+ display: -webkit-box;
744
+ display: -webkit-flex;
745
+ display: -ms-flexbox;
746
+ display: flex;
747
+ -webkit-box-pack: justify;
748
+ -webkit-justify-content: space-between;
749
+ -ms-flex-pack: justify;
750
+ justify-content: space-between;
751
+ margin: 0 -14px;
752
+ padding: 13px;
753
+ }
754
+
755
+ .emotion-5 {
756
+ display: -webkit-box;
757
+ display: -webkit-flex;
758
+ display: -ms-flexbox;
759
+ display: flex;
760
+ -webkit-align-items: center;
761
+ -webkit-box-align: center;
762
+ -ms-flex-align: center;
763
+ align-items: center;
764
+ font-size: 14px;
765
+ font-weight: 500;
766
+ line-height: 1;
767
+ }
768
+
769
+ .emotion-3 {
770
+ border: 0;
771
+ border-radius: 5px;
772
+ cursor: pointer;
773
+ padding: 4px;
774
+ background-color: transparent;
775
+ color: inherit;
776
+ }
777
+
778
+ .emotion-3:last-of-type {
779
+ margin-right: 4px;
780
+ }
781
+
782
+ .emotion-10 {
783
+ border: 0;
784
+ border-radius: 5px;
785
+ cursor: pointer;
786
+ display: -webkit-box;
787
+ display: -webkit-flex;
788
+ display: -ms-flexbox;
789
+ display: flex;
790
+ -webkit-box-pack: center;
791
+ -webkit-justify-content: center;
792
+ -ms-flex-pack: center;
793
+ justify-content: center;
794
+ -webkit-align-items: center;
795
+ -webkit-box-align: center;
796
+ -ms-flex-align: center;
797
+ align-items: center;
798
+ padding: 2px 12px;
799
+ font-size: 12px;
800
+ font-weight: bold;
801
+ border-radius: 3px;
802
+ }
803
+
804
+ .emotion-10 .emotion-0 {
805
+ margin-left: 6px;
806
+ }
807
+
808
+ .emotion-8 {
809
+ display: inline-block;
810
+ line-height: 0;
811
+ width: 12px;
812
+ height: 12px;
813
+ -webkit-transform: rotate(0deg);
814
+ -ms-transform: rotate(0deg);
815
+ transform: rotate(0deg);
816
+ }
817
+
818
+ .emotion-8 path:not(.no-fill),
819
+ .emotion-8 circle:not(.no-fill),
820
+ .emotion-8 polygon:not(.no-fill),
821
+ .emotion-8 rect:not(.no-fill) {
822
+ fill: currentColor;
823
+ }
824
+
825
+ .emotion-8 path.clipped {
826
+ fill: transparent;
827
+ }
828
+
829
+ .emotion-8 svg {
830
+ width: 100%;
831
+ height: 100%;
832
+ }
833
+
834
+ .emotion-1 {
835
+ display: inline-block;
836
+ line-height: 0;
837
+ width: 18px;
838
+ height: 18px;
839
+ -webkit-transform: rotate(0deg);
840
+ -ms-transform: rotate(0deg);
841
+ transform: rotate(0deg);
842
+ }
843
+
844
+ .emotion-1 path:not(.no-fill),
845
+ .emotion-1 circle:not(.no-fill),
846
+ .emotion-1 polygon:not(.no-fill),
847
+ .emotion-1 rect:not(.no-fill) {
848
+ fill: currentColor;
849
+ }
850
+
851
+ .emotion-1 path.clipped {
852
+ fill: transparent;
853
+ }
854
+
855
+ .emotion-1 svg {
856
+ width: 100%;
857
+ height: 100%;
858
+ }
859
+
860
+ .emotion-16 {
861
+ margin-top: 18px;
862
+ }
863
+
864
+ .emotion-16:first-of-type {
865
+ margin-top: 26px;
866
+ }
867
+
868
+ .emotion-14 {
869
+ display: none;
870
+ border-top: 0;
871
+ color: inherit;
872
+ background-color: #dfdfe3;
873
+ padding: 13px;
874
+ border-radius: 0 0 5px 5px;
875
+ }
876
+
877
+ <div
878
+ class="classNameWrapper emotion-22"
879
+ id="forID"
880
+ >
881
+ <div
882
+ class="emotion-12 emotion-13"
883
+ >
884
+ <div
885
+ class="emotion-5 emotion-6"
886
+ >
887
+ <button
888
+ class="emotion-3 emotion-4"
889
+ data-testid="expand-button"
890
+ >
891
+ <span
892
+ class="emotion-0 emotion-1 emotion-2"
893
+ >
894
+ <svg
895
+ viewBox="0 0 24 24"
896
+ >
897
+ <path
898
+ d="m5.123 6.33-2.26 2.137 8.656 9.15 9.344-9.105-2.17-2.228-7.084 6.902z"
899
+ />
900
+ </svg>
901
+ </span>
902
+ </button>
903
+ 2 list
904
+ </div>
905
+ <button
906
+ class="emotion-10 emotion-11"
907
+ >
908
+ editor.editorWidgets.list.add
909
+ <span
910
+ class="emotion-0 emotion-8 emotion-2"
911
+ >
912
+ <svg
913
+ height="24"
914
+ viewBox="0 0 24 24"
915
+ width="24"
916
+ xmlns="http://www.w3.org/2000/svg"
917
+ >
918
+ <path
919
+ d="M19 14h-4a1 1 0 0 0-1 1v4a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-4a1 1 0 0 0-1-1H5a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h4a1 1 0 0 0 1-1V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1Z"
920
+ />
921
+ </svg>
922
+ </span>
923
+ </button>
924
+ </div>
925
+ <div>
926
+ <div
927
+ class="emotion-16 emotion-17"
928
+ >
929
+ <mock-list-item-top-bar
930
+ classname="css-1e1b0lr-StyledListItemTopBar e11zrb3c1"
931
+ collapsed="false"
932
+ data-testid="styled-list-item-top-bar-0"
933
+ >
934
+ <button>
935
+ Remove
936
+ </button>
937
+ </mock-list-item-top-bar>
938
+ <div
939
+ class="emotion-14 emotion-15"
940
+ >
941
+ item 1
942
+ </div>
943
+ <mock-object-control
944
+ classnamewrapper="classNameWrapper"
945
+ collapsed="false"
946
+ data-testid="object-control-0"
947
+ field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
948
+ fieldserrors="Map {}"
949
+ forlist="true"
950
+ parentids="forID,0"
951
+ validationkey="0"
952
+ value="Map { \\"string\\": \\"item 1\\" }"
953
+ />
954
+ </div>
955
+ <div
956
+ class="emotion-16 emotion-17"
957
+ >
958
+ <mock-list-item-top-bar
959
+ classname="css-1e1b0lr-StyledListItemTopBar e11zrb3c1"
960
+ collapsed="false"
961
+ data-testid="styled-list-item-top-bar-1"
962
+ >
963
+ <button>
964
+ Remove
965
+ </button>
966
+ </mock-list-item-top-bar>
967
+ <div
968
+ class="emotion-14 emotion-15"
969
+ >
970
+ item 2
971
+ </div>
972
+ <mock-object-control
973
+ classnamewrapper="classNameWrapper"
974
+ collapsed="false"
975
+ data-testid="object-control-1"
976
+ field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
977
+ fieldserrors="Map {}"
978
+ forlist="true"
979
+ parentids="forID,1"
980
+ validationkey="1"
981
+ value="Map { \\"string\\": \\"item 2\\" }"
982
+ />
983
+ </div>
984
+ </div>
985
+ </div>
986
+ </DocumentFragment>
987
+ `;
988
+
989
+ exports[`ListControl should render list with fields with collapse = "false" and default minimize_collapsed = "true" 1`] = `
990
+ <DocumentFragment>
991
+ .emotion-22 {
992
+ padding: 0 14px 14px;
993
+ }
994
+
995
+ .emotion-12 {
996
+ -webkit-align-items: center;
997
+ -webkit-box-align: center;
998
+ -ms-flex-align: center;
999
+ align-items: center;
1000
+ background-color: #dfdfe3;
1001
+ display: -webkit-box;
1002
+ display: -webkit-flex;
1003
+ display: -ms-flexbox;
1004
+ display: flex;
1005
+ -webkit-box-pack: justify;
1006
+ -webkit-justify-content: space-between;
1007
+ -ms-flex-pack: justify;
1008
+ justify-content: space-between;
1009
+ margin: 0 -14px;
1010
+ padding: 13px;
1011
+ }
1012
+
1013
+ .emotion-5 {
1014
+ display: -webkit-box;
1015
+ display: -webkit-flex;
1016
+ display: -ms-flexbox;
1017
+ display: flex;
1018
+ -webkit-align-items: center;
1019
+ -webkit-box-align: center;
1020
+ -ms-flex-align: center;
1021
+ align-items: center;
1022
+ font-size: 14px;
1023
+ font-weight: 500;
1024
+ line-height: 1;
1025
+ }
1026
+
1027
+ .emotion-3 {
1028
+ border: 0;
1029
+ border-radius: 5px;
1030
+ cursor: pointer;
1031
+ padding: 4px;
1032
+ background-color: transparent;
1033
+ color: inherit;
1034
+ }
1035
+
1036
+ .emotion-3:last-of-type {
1037
+ margin-right: 4px;
1038
+ }
1039
+
1040
+ .emotion-10 {
1041
+ border: 0;
1042
+ border-radius: 5px;
1043
+ cursor: pointer;
1044
+ display: -webkit-box;
1045
+ display: -webkit-flex;
1046
+ display: -ms-flexbox;
1047
+ display: flex;
1048
+ -webkit-box-pack: center;
1049
+ -webkit-justify-content: center;
1050
+ -ms-flex-pack: center;
1051
+ justify-content: center;
1052
+ -webkit-align-items: center;
1053
+ -webkit-box-align: center;
1054
+ -ms-flex-align: center;
1055
+ align-items: center;
1056
+ padding: 2px 12px;
1057
+ font-size: 12px;
1058
+ font-weight: bold;
1059
+ border-radius: 3px;
1060
+ }
1061
+
1062
+ .emotion-10 .emotion-0 {
1063
+ margin-left: 6px;
1064
+ }
1065
+
1066
+ .emotion-8 {
1067
+ display: inline-block;
1068
+ line-height: 0;
1069
+ width: 12px;
1070
+ height: 12px;
1071
+ -webkit-transform: rotate(0deg);
1072
+ -ms-transform: rotate(0deg);
1073
+ transform: rotate(0deg);
1074
+ }
1075
+
1076
+ .emotion-8 path:not(.no-fill),
1077
+ .emotion-8 circle:not(.no-fill),
1078
+ .emotion-8 polygon:not(.no-fill),
1079
+ .emotion-8 rect:not(.no-fill) {
1080
+ fill: currentColor;
1081
+ }
1082
+
1083
+ .emotion-8 path.clipped {
1084
+ fill: transparent;
1085
+ }
1086
+
1087
+ .emotion-8 svg {
1088
+ width: 100%;
1089
+ height: 100%;
1090
+ }
1091
+
1092
+ .emotion-1 {
1093
+ display: inline-block;
1094
+ line-height: 0;
1095
+ width: 18px;
1096
+ height: 18px;
1097
+ -webkit-transform: rotate(0deg);
1098
+ -ms-transform: rotate(0deg);
1099
+ transform: rotate(0deg);
1100
+ }
1101
+
1102
+ .emotion-1 path:not(.no-fill),
1103
+ .emotion-1 circle:not(.no-fill),
1104
+ .emotion-1 polygon:not(.no-fill),
1105
+ .emotion-1 rect:not(.no-fill) {
1106
+ fill: currentColor;
1107
+ }
1108
+
1109
+ .emotion-1 path.clipped {
1110
+ fill: transparent;
1111
+ }
1112
+
1113
+ .emotion-1 svg {
1114
+ width: 100%;
1115
+ height: 100%;
1116
+ }
1117
+
1118
+ .emotion-16 {
1119
+ margin-top: 18px;
1120
+ }
1121
+
1122
+ .emotion-16:first-of-type {
1123
+ margin-top: 26px;
1124
+ }
1125
+
1126
+ .emotion-14 {
1127
+ display: none;
1128
+ border-top: 0;
1129
+ color: inherit;
1130
+ background-color: #dfdfe3;
1131
+ padding: 13px;
1132
+ border-radius: 0 0 5px 5px;
1133
+ }
1134
+
1135
+ <div
1136
+ class="classNameWrapper emotion-22"
1137
+ id="forID"
1138
+ >
1139
+ <div
1140
+ class="emotion-12 emotion-13"
1141
+ >
1142
+ <div
1143
+ class="emotion-5 emotion-6"
1144
+ >
1145
+ <button
1146
+ class="emotion-3 emotion-4"
1147
+ data-testid="expand-button"
1148
+ >
1149
+ <span
1150
+ class="emotion-0 emotion-1 emotion-2"
1151
+ >
1152
+ <svg
1153
+ viewBox="0 0 24 24"
1154
+ >
1155
+ <path
1156
+ d="m5.123 6.33-2.26 2.137 8.656 9.15 9.344-9.105-2.17-2.228-7.084 6.902z"
1157
+ />
1158
+ </svg>
1159
+ </span>
1160
+ </button>
1161
+ 2 list
1162
+ </div>
1163
+ <button
1164
+ class="emotion-10 emotion-11"
1165
+ >
1166
+ editor.editorWidgets.list.add
1167
+ <span
1168
+ class="emotion-0 emotion-8 emotion-2"
1169
+ >
1170
+ <svg
1171
+ height="24"
1172
+ viewBox="0 0 24 24"
1173
+ width="24"
1174
+ xmlns="http://www.w3.org/2000/svg"
1175
+ >
1176
+ <path
1177
+ d="M19 14h-4a1 1 0 0 0-1 1v4a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-4a1 1 0 0 0-1-1H5a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h4a1 1 0 0 0 1-1V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1Z"
1178
+ />
1179
+ </svg>
1180
+ </span>
1181
+ </button>
1182
+ </div>
1183
+ <div>
1184
+ <div
1185
+ class="emotion-16 emotion-17"
1186
+ >
1187
+ <mock-list-item-top-bar
1188
+ classname="css-1e1b0lr-StyledListItemTopBar e11zrb3c1"
1189
+ collapsed="false"
1190
+ data-testid="styled-list-item-top-bar-0"
1191
+ >
1192
+ <button>
1193
+ Remove
1194
+ </button>
1195
+ </mock-list-item-top-bar>
1196
+ <div
1197
+ class="emotion-14 emotion-15"
1198
+ >
1199
+ item 1
1200
+ </div>
1201
+ <mock-object-control
1202
+ classnamewrapper="classNameWrapper"
1203
+ collapsed="false"
1204
+ data-testid="object-control-0"
1205
+ field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"minimize_collapsed\\": true, \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
1206
+ fieldserrors="Map {}"
1207
+ forlist="true"
1208
+ parentids="forID,0"
1209
+ validationkey="0"
1210
+ value="Map { \\"string\\": \\"item 1\\" }"
1211
+ />
1212
+ </div>
1213
+ <div
1214
+ class="emotion-16 emotion-17"
1215
+ >
1216
+ <mock-list-item-top-bar
1217
+ classname="css-1e1b0lr-StyledListItemTopBar e11zrb3c1"
1218
+ collapsed="false"
1219
+ data-testid="styled-list-item-top-bar-1"
1220
+ >
1221
+ <button>
1222
+ Remove
1223
+ </button>
1224
+ </mock-list-item-top-bar>
1225
+ <div
1226
+ class="emotion-14 emotion-15"
1227
+ >
1228
+ item 2
1229
+ </div>
1230
+ <mock-object-control
1231
+ classnamewrapper="classNameWrapper"
1232
+ collapsed="false"
1233
+ data-testid="object-control-1"
1234
+ field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"collapsed\\": false, \\"minimize_collapsed\\": true, \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
1235
+ fieldserrors="Map {}"
1236
+ forlist="true"
1237
+ parentids="forID,1"
1238
+ validationkey="1"
1239
+ value="Map { \\"string\\": \\"item 2\\" }"
1240
+ />
1241
+ </div>
1242
+ </div>
1243
+ </div>
1244
+ </DocumentFragment>
1245
+ `;
1246
+
1247
+ exports[`ListControl should render list with fields with default collapse ("true") and minimize_collapsed ("false") 1`] = `
1248
+ <DocumentFragment>
1249
+ .emotion-22 {
1250
+ padding: 0 14px 14px;
1251
+ }
1252
+
1253
+ .emotion-12 {
1254
+ -webkit-align-items: center;
1255
+ -webkit-box-align: center;
1256
+ -ms-flex-align: center;
1257
+ align-items: center;
1258
+ background-color: #dfdfe3;
1259
+ display: -webkit-box;
1260
+ display: -webkit-flex;
1261
+ display: -ms-flexbox;
1262
+ display: flex;
1263
+ -webkit-box-pack: justify;
1264
+ -webkit-justify-content: space-between;
1265
+ -ms-flex-pack: justify;
1266
+ justify-content: space-between;
1267
+ margin: 0 -14px;
1268
+ padding: 13px;
1269
+ }
1270
+
1271
+ .emotion-5 {
1272
+ display: -webkit-box;
1273
+ display: -webkit-flex;
1274
+ display: -ms-flexbox;
1275
+ display: flex;
1276
+ -webkit-align-items: center;
1277
+ -webkit-box-align: center;
1278
+ -ms-flex-align: center;
1279
+ align-items: center;
1280
+ font-size: 14px;
1281
+ font-weight: 500;
1282
+ line-height: 1;
1283
+ }
1284
+
1285
+ .emotion-3 {
1286
+ border: 0;
1287
+ border-radius: 5px;
1288
+ cursor: pointer;
1289
+ padding: 4px;
1290
+ background-color: transparent;
1291
+ color: inherit;
1292
+ }
1293
+
1294
+ .emotion-3:last-of-type {
1295
+ margin-right: 4px;
1296
+ }
1297
+
1298
+ .emotion-1 {
1299
+ display: inline-block;
1300
+ line-height: 0;
1301
+ width: 18px;
1302
+ height: 18px;
1303
+ -webkit-transform: rotate(-90deg);
1304
+ -ms-transform: rotate(-90deg);
1305
+ transform: rotate(-90deg);
1306
+ }
1307
+
1308
+ .emotion-1 path:not(.no-fill),
1309
+ .emotion-1 circle:not(.no-fill),
1310
+ .emotion-1 polygon:not(.no-fill),
1311
+ .emotion-1 rect:not(.no-fill) {
1312
+ fill: currentColor;
1313
+ }
1314
+
1315
+ .emotion-1 path.clipped {
1316
+ fill: transparent;
1317
+ }
1318
+
1319
+ .emotion-1 svg {
1320
+ width: 100%;
1321
+ height: 100%;
1322
+ }
1323
+
1324
+ .emotion-10 {
1325
+ border: 0;
1326
+ border-radius: 5px;
1327
+ cursor: pointer;
1328
+ display: -webkit-box;
1329
+ display: -webkit-flex;
1330
+ display: -ms-flexbox;
1331
+ display: flex;
1332
+ -webkit-box-pack: center;
1333
+ -webkit-justify-content: center;
1334
+ -ms-flex-pack: center;
1335
+ justify-content: center;
1336
+ -webkit-align-items: center;
1337
+ -webkit-box-align: center;
1338
+ -ms-flex-align: center;
1339
+ align-items: center;
1340
+ padding: 2px 12px;
1341
+ font-size: 12px;
1342
+ font-weight: bold;
1343
+ border-radius: 3px;
1344
+ }
1345
+
1346
+ .emotion-10 .emotion-0 {
1347
+ margin-left: 6px;
1348
+ }
1349
+
1350
+ .emotion-8 {
1351
+ display: inline-block;
1352
+ line-height: 0;
1353
+ width: 12px;
1354
+ height: 12px;
1355
+ -webkit-transform: rotate(0deg);
1356
+ -ms-transform: rotate(0deg);
1357
+ transform: rotate(0deg);
1358
+ }
1359
+
1360
+ .emotion-8 path:not(.no-fill),
1361
+ .emotion-8 circle:not(.no-fill),
1362
+ .emotion-8 polygon:not(.no-fill),
1363
+ .emotion-8 rect:not(.no-fill) {
1364
+ fill: currentColor;
1365
+ }
1366
+
1367
+ .emotion-8 path.clipped {
1368
+ fill: transparent;
1369
+ }
1370
+
1371
+ .emotion-8 svg {
1372
+ width: 100%;
1373
+ height: 100%;
1374
+ }
1375
+
1376
+ .emotion-16 {
1377
+ margin-top: 18px;
1378
+ padding-bottom: 0;
1379
+ }
1380
+
1381
+ .emotion-16:first-of-type {
1382
+ margin-top: 26px;
1383
+ }
1384
+
1385
+ .emotion-14 {
1386
+ display: block;
1387
+ border-top: 0;
1388
+ color: inherit;
1389
+ background-color: #dfdfe3;
1390
+ padding: 13px;
1391
+ border-radius: 0 0 5px 5px;
1392
+ }
1393
+
1394
+ <div
1395
+ class="classNameWrapper emotion-22"
1396
+ id="forID"
1397
+ >
1398
+ <div
1399
+ class="emotion-12 emotion-13"
1400
+ >
1401
+ <div
1402
+ class="emotion-5 emotion-6"
1403
+ >
1404
+ <button
1405
+ class="emotion-3 emotion-4"
1406
+ data-testid="expand-button"
1407
+ >
1408
+ <span
1409
+ class="emotion-0 emotion-1 emotion-2"
1410
+ >
1411
+ <svg
1412
+ viewBox="0 0 24 24"
1413
+ >
1414
+ <path
1415
+ d="m5.123 6.33-2.26 2.137 8.656 9.15 9.344-9.105-2.17-2.228-7.084 6.902z"
1416
+ />
1417
+ </svg>
1418
+ </span>
1419
+ </button>
1420
+ 2 list
1421
+ </div>
1422
+ <button
1423
+ class="emotion-10 emotion-11"
1424
+ >
1425
+ editor.editorWidgets.list.add
1426
+ <span
1427
+ class="emotion-0 emotion-8 emotion-2"
1428
+ >
1429
+ <svg
1430
+ height="24"
1431
+ viewBox="0 0 24 24"
1432
+ width="24"
1433
+ xmlns="http://www.w3.org/2000/svg"
1434
+ >
1435
+ <path
1436
+ d="M19 14h-4a1 1 0 0 0-1 1v4a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-4a1 1 0 0 0-1-1H5a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h4a1 1 0 0 0 1-1V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1Z"
1437
+ />
1438
+ </svg>
1439
+ </span>
1440
+ </button>
1441
+ </div>
1442
+ <div>
1443
+ <div
1444
+ class="emotion-16 emotion-17"
1445
+ >
1446
+ <mock-list-item-top-bar
1447
+ classname="css-1e1b0lr-StyledListItemTopBar e11zrb3c1"
1448
+ collapsed="true"
1449
+ data-testid="styled-list-item-top-bar-0"
1450
+ >
1451
+ <button>
1452
+ Remove
1453
+ </button>
1454
+ </mock-list-item-top-bar>
1455
+ <div
1456
+ class="emotion-14 emotion-15"
1457
+ >
1458
+ item 1
1459
+ </div>
1460
+ <mock-object-control
1461
+ classnamewrapper="classNameWrapper css-1pznrxi"
1462
+ collapsed="true"
1463
+ data-testid="object-control-0"
1464
+ field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
1465
+ fieldserrors="Map {}"
1466
+ forlist="true"
1467
+ parentids="forID,0"
1468
+ validationkey="0"
1469
+ value="Map { \\"string\\": \\"item 1\\" }"
1470
+ />
1471
+ </div>
1472
+ <div
1473
+ class="emotion-16 emotion-17"
1474
+ >
1475
+ <mock-list-item-top-bar
1476
+ classname="css-1e1b0lr-StyledListItemTopBar e11zrb3c1"
1477
+ collapsed="true"
1478
+ data-testid="styled-list-item-top-bar-1"
1479
+ >
1480
+ <button>
1481
+ Remove
1482
+ </button>
1483
+ </mock-list-item-top-bar>
1484
+ <div
1485
+ class="emotion-14 emotion-15"
1486
+ >
1487
+ item 2
1488
+ </div>
1489
+ <mock-object-control
1490
+ classnamewrapper="classNameWrapper css-1pznrxi"
1491
+ collapsed="true"
1492
+ data-testid="object-control-1"
1493
+ field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"fields\\": List [ Map { \\"label\\": \\"String\\", \\"name\\": \\"string\\", \\"widget\\": \\"string\\" } ] }"
1494
+ fieldserrors="Map {}"
1495
+ forlist="true"
1496
+ parentids="forID,1"
1497
+ validationkey="1"
1498
+ value="Map { \\"string\\": \\"item 2\\" }"
1499
+ />
1500
+ </div>
1501
+ </div>
1502
+ </div>
1503
+ </DocumentFragment>
1504
+ `;
1505
+
1506
+ exports[`ListControl should render list with fields with default collapse ("true") and minimize_collapsed = "true" 1`] = `
1507
+ <DocumentFragment>
1508
+ .emotion-14 {
1509
+ padding: 0 14px 14px;
1510
+ }
1511
+
1512
+ .emotion-12 {
1513
+ -webkit-align-items: center;
1514
+ -webkit-box-align: center;
1515
+ -ms-flex-align: center;
1516
+ align-items: center;
1517
+ background-color: #dfdfe3;
1518
+ display: -webkit-box;
1519
+ display: -webkit-flex;
1520
+ display: -ms-flexbox;
1521
+ display: flex;
1522
+ -webkit-box-pack: justify;
1523
+ -webkit-justify-content: space-between;
1524
+ -ms-flex-pack: justify;
1525
+ justify-content: space-between;
1526
+ margin: 0 -14px;
1527
+ padding: 13px;
1528
+ }
1529
+
1530
+ .emotion-5 {
1531
+ display: -webkit-box;
1532
+ display: -webkit-flex;
1533
+ display: -ms-flexbox;
1534
+ display: flex;
1535
+ -webkit-align-items: center;
1536
+ -webkit-box-align: center;
1537
+ -ms-flex-align: center;
1538
+ align-items: center;
1539
+ font-size: 14px;
1540
+ font-weight: 500;
1541
+ line-height: 1;
1542
+ }
1543
+
1544
+ .emotion-3 {
1545
+ border: 0;
1546
+ border-radius: 5px;
1547
+ cursor: pointer;
1548
+ padding: 4px;
1549
+ background-color: transparent;
1550
+ color: inherit;
1551
+ }
1552
+
1553
+ .emotion-3:last-of-type {
1554
+ margin-right: 4px;
1555
+ }
1556
+
1557
+ .emotion-1 {
1558
+ display: inline-block;
1559
+ line-height: 0;
1560
+ width: 18px;
1561
+ height: 18px;
1562
+ -webkit-transform: rotate(-90deg);
1563
+ -ms-transform: rotate(-90deg);
1564
+ transform: rotate(-90deg);
1565
+ }
1566
+
1567
+ .emotion-1 path:not(.no-fill),
1568
+ .emotion-1 circle:not(.no-fill),
1569
+ .emotion-1 polygon:not(.no-fill),
1570
+ .emotion-1 rect:not(.no-fill) {
1571
+ fill: currentColor;
1572
+ }
1573
+
1574
+ .emotion-1 path.clipped {
1575
+ fill: transparent;
1576
+ }
1577
+
1578
+ .emotion-1 svg {
1579
+ width: 100%;
1580
+ height: 100%;
1581
+ }
1582
+
1583
+ .emotion-10 {
1584
+ border: 0;
1585
+ border-radius: 5px;
1586
+ cursor: pointer;
1587
+ display: -webkit-box;
1588
+ display: -webkit-flex;
1589
+ display: -ms-flexbox;
1590
+ display: flex;
1591
+ -webkit-box-pack: center;
1592
+ -webkit-justify-content: center;
1593
+ -ms-flex-pack: center;
1594
+ justify-content: center;
1595
+ -webkit-align-items: center;
1596
+ -webkit-box-align: center;
1597
+ -ms-flex-align: center;
1598
+ align-items: center;
1599
+ padding: 2px 12px;
1600
+ font-size: 12px;
1601
+ font-weight: bold;
1602
+ border-radius: 3px;
1603
+ }
1604
+
1605
+ .emotion-10 .emotion-0 {
1606
+ margin-left: 6px;
1607
+ }
1608
+
1609
+ .emotion-8 {
1610
+ display: inline-block;
1611
+ line-height: 0;
1612
+ width: 12px;
1613
+ height: 12px;
1614
+ -webkit-transform: rotate(0deg);
1615
+ -ms-transform: rotate(0deg);
1616
+ transform: rotate(0deg);
1617
+ }
1618
+
1619
+ .emotion-8 path:not(.no-fill),
1620
+ .emotion-8 circle:not(.no-fill),
1621
+ .emotion-8 polygon:not(.no-fill),
1622
+ .emotion-8 rect:not(.no-fill) {
1623
+ fill: currentColor;
1624
+ }
1625
+
1626
+ .emotion-8 path.clipped {
1627
+ fill: transparent;
1628
+ }
1629
+
1630
+ .emotion-8 svg {
1631
+ width: 100%;
1632
+ height: 100%;
1633
+ }
1634
+
1635
+ <div
1636
+ class="classNameWrapper emotion-14"
1637
+ id="forID"
1638
+ >
1639
+ <div
1640
+ class="emotion-12 emotion-13"
1641
+ >
1642
+ <div
1643
+ class="emotion-5 emotion-6"
1644
+ >
1645
+ <button
1646
+ class="emotion-3 emotion-4"
1647
+ data-testid="expand-button"
1648
+ >
1649
+ <span
1650
+ class="emotion-0 emotion-1 emotion-2"
1651
+ >
1652
+ <svg
1653
+ viewBox="0 0 24 24"
1654
+ >
1655
+ <path
1656
+ d="m5.123 6.33-2.26 2.137 8.656 9.15 9.344-9.105-2.17-2.228-7.084 6.902z"
1657
+ />
1658
+ </svg>
1659
+ </span>
1660
+ </button>
1661
+ 2 list
1662
+ </div>
1663
+ <button
1664
+ class="emotion-10 emotion-11"
1665
+ >
1666
+ editor.editorWidgets.list.add
1667
+ <span
1668
+ class="emotion-0 emotion-8 emotion-2"
1669
+ >
1670
+ <svg
1671
+ height="24"
1672
+ viewBox="0 0 24 24"
1673
+ width="24"
1674
+ xmlns="http://www.w3.org/2000/svg"
1675
+ >
1676
+ <path
1677
+ d="M19 14h-4a1 1 0 0 0-1 1v4a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-4a1 1 0 0 0-1-1H5a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h4a1 1 0 0 0 1-1V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1Z"
1678
+ />
1679
+ </svg>
1680
+ </span>
1681
+ </button>
1682
+ </div>
1683
+ </div>
1684
+ </DocumentFragment>
1685
+ `;
1686
+
1687
+ exports[`ListControl should render list with nested object 1`] = `
1688
+ <DocumentFragment>
1689
+ .emotion-22 {
1690
+ padding: 0 14px 14px;
1691
+ }
1692
+
1693
+ .emotion-12 {
1694
+ -webkit-align-items: center;
1695
+ -webkit-box-align: center;
1696
+ -ms-flex-align: center;
1697
+ align-items: center;
1698
+ background-color: #dfdfe3;
1699
+ display: -webkit-box;
1700
+ display: -webkit-flex;
1701
+ display: -ms-flexbox;
1702
+ display: flex;
1703
+ -webkit-box-pack: justify;
1704
+ -webkit-justify-content: space-between;
1705
+ -ms-flex-pack: justify;
1706
+ justify-content: space-between;
1707
+ margin: 0 -14px;
1708
+ padding: 13px;
1709
+ }
1710
+
1711
+ .emotion-5 {
1712
+ display: -webkit-box;
1713
+ display: -webkit-flex;
1714
+ display: -ms-flexbox;
1715
+ display: flex;
1716
+ -webkit-align-items: center;
1717
+ -webkit-box-align: center;
1718
+ -ms-flex-align: center;
1719
+ align-items: center;
1720
+ font-size: 14px;
1721
+ font-weight: 500;
1722
+ line-height: 1;
1723
+ }
1724
+
1725
+ .emotion-3 {
1726
+ border: 0;
1727
+ border-radius: 5px;
1728
+ cursor: pointer;
1729
+ padding: 4px;
1730
+ background-color: transparent;
1731
+ color: inherit;
1732
+ }
1733
+
1734
+ .emotion-3:last-of-type {
1735
+ margin-right: 4px;
1736
+ }
1737
+
1738
+ .emotion-1 {
1739
+ display: inline-block;
1740
+ line-height: 0;
1741
+ width: 18px;
1742
+ height: 18px;
1743
+ -webkit-transform: rotate(-90deg);
1744
+ -ms-transform: rotate(-90deg);
1745
+ transform: rotate(-90deg);
1746
+ }
1747
+
1748
+ .emotion-1 path:not(.no-fill),
1749
+ .emotion-1 circle:not(.no-fill),
1750
+ .emotion-1 polygon:not(.no-fill),
1751
+ .emotion-1 rect:not(.no-fill) {
1752
+ fill: currentColor;
1753
+ }
1754
+
1755
+ .emotion-1 path.clipped {
1756
+ fill: transparent;
1757
+ }
1758
+
1759
+ .emotion-1 svg {
1760
+ width: 100%;
1761
+ height: 100%;
1762
+ }
1763
+
1764
+ .emotion-10 {
1765
+ border: 0;
1766
+ border-radius: 5px;
1767
+ cursor: pointer;
1768
+ display: -webkit-box;
1769
+ display: -webkit-flex;
1770
+ display: -ms-flexbox;
1771
+ display: flex;
1772
+ -webkit-box-pack: center;
1773
+ -webkit-justify-content: center;
1774
+ -ms-flex-pack: center;
1775
+ justify-content: center;
1776
+ -webkit-align-items: center;
1777
+ -webkit-box-align: center;
1778
+ -ms-flex-align: center;
1779
+ align-items: center;
1780
+ padding: 2px 12px;
1781
+ font-size: 12px;
1782
+ font-weight: bold;
1783
+ border-radius: 3px;
1784
+ }
1785
+
1786
+ .emotion-10 .emotion-0 {
1787
+ margin-left: 6px;
1788
+ }
1789
+
1790
+ .emotion-8 {
1791
+ display: inline-block;
1792
+ line-height: 0;
1793
+ width: 12px;
1794
+ height: 12px;
1795
+ -webkit-transform: rotate(0deg);
1796
+ -ms-transform: rotate(0deg);
1797
+ transform: rotate(0deg);
1798
+ }
1799
+
1800
+ .emotion-8 path:not(.no-fill),
1801
+ .emotion-8 circle:not(.no-fill),
1802
+ .emotion-8 polygon:not(.no-fill),
1803
+ .emotion-8 rect:not(.no-fill) {
1804
+ fill: currentColor;
1805
+ }
1806
+
1807
+ .emotion-8 path.clipped {
1808
+ fill: transparent;
1809
+ }
1810
+
1811
+ .emotion-8 svg {
1812
+ width: 100%;
1813
+ height: 100%;
1814
+ }
1815
+
1816
+ .emotion-16 {
1817
+ margin-top: 18px;
1818
+ padding-bottom: 0;
1819
+ }
1820
+
1821
+ .emotion-16:first-of-type {
1822
+ margin-top: 26px;
1823
+ }
1824
+
1825
+ .emotion-14 {
1826
+ display: block;
1827
+ border-top: 0;
1828
+ color: inherit;
1829
+ background-color: #dfdfe3;
1830
+ padding: 13px;
1831
+ border-radius: 0 0 5px 5px;
1832
+ }
1833
+
1834
+ <div
1835
+ class="classNameWrapper emotion-22"
1836
+ id="forID"
1837
+ >
1838
+ <div
1839
+ class="emotion-12 emotion-13"
1840
+ >
1841
+ <div
1842
+ class="emotion-5 emotion-6"
1843
+ >
1844
+ <button
1845
+ class="emotion-3 emotion-4"
1846
+ data-testid="expand-button"
1847
+ >
1848
+ <span
1849
+ class="emotion-0 emotion-1 emotion-2"
1850
+ >
1851
+ <svg
1852
+ viewBox="0 0 24 24"
1853
+ >
1854
+ <path
1855
+ d="m5.123 6.33-2.26 2.137 8.656 9.15 9.344-9.105-2.17-2.228-7.084 6.902z"
1856
+ />
1857
+ </svg>
1858
+ </span>
1859
+ </button>
1860
+ 2 list
1861
+ </div>
1862
+ <button
1863
+ class="emotion-10 emotion-11"
1864
+ >
1865
+ editor.editorWidgets.list.add
1866
+ <span
1867
+ class="emotion-0 emotion-8 emotion-2"
1868
+ >
1869
+ <svg
1870
+ height="24"
1871
+ viewBox="0 0 24 24"
1872
+ width="24"
1873
+ xmlns="http://www.w3.org/2000/svg"
1874
+ >
1875
+ <path
1876
+ d="M19 14h-4a1 1 0 0 0-1 1v4a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-4a1 1 0 0 0-1-1H5a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h4a1 1 0 0 0 1-1V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1Z"
1877
+ />
1878
+ </svg>
1879
+ </span>
1880
+ </button>
1881
+ </div>
1882
+ <div>
1883
+ <div
1884
+ class="emotion-16 emotion-17"
1885
+ >
1886
+ <mock-list-item-top-bar
1887
+ classname="css-1e1b0lr-StyledListItemTopBar e11zrb3c1"
1888
+ collapsed="true"
1889
+ data-testid="styled-list-item-top-bar-0"
1890
+ >
1891
+ <button>
1892
+ Remove
1893
+ </button>
1894
+ </mock-list-item-top-bar>
1895
+ <div
1896
+ class="emotion-14 emotion-15"
1897
+ >
1898
+ Object
1899
+ </div>
1900
+ <mock-object-control
1901
+ classnamewrapper="classNameWrapper css-1pznrxi"
1902
+ collapsed="true"
1903
+ data-testid="object-control-0"
1904
+ field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"field\\": Map { \\"name\\": \\"object\\", \\"widget\\": \\"object\\", \\"label\\": \\"Object\\", \\"fields\\": List [ Map { \\"name\\": \\"title\\", \\"widget\\": \\"string\\", \\"label\\": \\"Title\\" } ] } }"
1905
+ fieldserrors="Map {}"
1906
+ forlist="true"
1907
+ parentids="forID,0"
1908
+ validationkey="0"
1909
+ value="Map { \\"object\\": Map { \\"title\\": \\"item 1\\" } }"
1910
+ />
1911
+ </div>
1912
+ <div
1913
+ class="emotion-16 emotion-17"
1914
+ >
1915
+ <mock-list-item-top-bar
1916
+ classname="css-1e1b0lr-StyledListItemTopBar e11zrb3c1"
1917
+ collapsed="true"
1918
+ data-testid="styled-list-item-top-bar-1"
1919
+ >
1920
+ <button>
1921
+ Remove
1922
+ </button>
1923
+ </mock-list-item-top-bar>
1924
+ <div
1925
+ class="emotion-14 emotion-15"
1926
+ >
1927
+ Object
1928
+ </div>
1929
+ <mock-object-control
1930
+ classnamewrapper="classNameWrapper css-1pznrxi"
1931
+ collapsed="true"
1932
+ data-testid="object-control-1"
1933
+ field="Map { \\"name\\": \\"list\\", \\"label\\": \\"List\\", \\"field\\": Map { \\"name\\": \\"object\\", \\"widget\\": \\"object\\", \\"label\\": \\"Object\\", \\"fields\\": List [ Map { \\"name\\": \\"title\\", \\"widget\\": \\"string\\", \\"label\\": \\"Title\\" } ] } }"
1934
+ fieldserrors="Map {}"
1935
+ forlist="true"
1936
+ parentids="forID,1"
1937
+ validationkey="1"
1938
+ value="Map { \\"object\\": Map { \\"title\\": \\"item 2\\" } }"
1939
+ />
1940
+ </div>
1941
+ </div>
1942
+ </div>
1943
+ </DocumentFragment>
1944
+ `;
1945
+
1946
+ exports[`ListControl should render list with nested object with collapse = false 1`] = `
1947
+ <DocumentFragment>
1948
+ .emotion-22 {
1949
+ padding: 0 14px 14px;
1950
+ }
1951
+
1952
+ .emotion-12 {
1953
+ -webkit-align-items: center;
1954
+ -webkit-box-align: center;
1955
+ -ms-flex-align: center;
1956
+ align-items: center;
1957
+ background-color: #dfdfe3;
1958
+ display: -webkit-box;
1959
+ display: -webkit-flex;
1960
+ display: -ms-flexbox;
1961
+ display: flex;
1962
+ -webkit-box-pack: justify;
1963
+ -webkit-justify-content: space-between;
1964
+ -ms-flex-pack: justify;
1965
+ justify-content: space-between;
1966
+ margin: 0 -14px;
1967
+ padding: 13px;
1968
+ }
1969
+
1970
+ .emotion-5 {
1971
+ display: -webkit-box;
1972
+ display: -webkit-flex;
1973
+ display: -ms-flexbox;
1974
+ display: flex;
1975
+ -webkit-align-items: center;
1976
+ -webkit-box-align: center;
1977
+ -ms-flex-align: center;
1978
+ align-items: center;
1979
+ font-size: 14px;
1980
+ font-weight: 500;
1981
+ line-height: 1;
1982
+ }
1983
+
1984
+ .emotion-3 {
1985
+ border: 0;
1986
+ border-radius: 5px;
1987
+ cursor: pointer;
1988
+ padding: 4px;
1989
+ background-color: transparent;
1990
+ color: inherit;
1991
+ }
1992
+
1993
+ .emotion-3:last-of-type {
1994
+ margin-right: 4px;
1995
+ }
1996
+
1997
+ .emotion-10 {
1998
+ border: 0;
1999
+ border-radius: 5px;
2000
+ cursor: pointer;
2001
+ display: -webkit-box;
2002
+ display: -webkit-flex;
2003
+ display: -ms-flexbox;
2004
+ display: flex;
2005
+ -webkit-box-pack: center;
2006
+ -webkit-justify-content: center;
2007
+ -ms-flex-pack: center;
2008
+ justify-content: center;
2009
+ -webkit-align-items: center;
2010
+ -webkit-box-align: center;
2011
+ -ms-flex-align: center;
2012
+ align-items: center;
2013
+ padding: 2px 12px;
2014
+ font-size: 12px;
2015
+ font-weight: bold;
2016
+ border-radius: 3px;
2017
+ }
2018
+
2019
+ .emotion-10 .emotion-0 {
2020
+ margin-left: 6px;
2021
+ }
2022
+
2023
+ .emotion-8 {
2024
+ display: inline-block;
2025
+ line-height: 0;
2026
+ width: 12px;
2027
+ height: 12px;
2028
+ -webkit-transform: rotate(0deg);
2029
+ -ms-transform: rotate(0deg);
2030
+ transform: rotate(0deg);
2031
+ }
2032
+
2033
+ .emotion-8 path:not(.no-fill),
2034
+ .emotion-8 circle:not(.no-fill),
2035
+ .emotion-8 polygon:not(.no-fill),
2036
+ .emotion-8 rect:not(.no-fill) {
2037
+ fill: currentColor;
2038
+ }
2039
+
2040
+ .emotion-8 path.clipped {
2041
+ fill: transparent;
2042
+ }
2043
+
2044
+ .emotion-8 svg {
2045
+ width: 100%;
2046
+ height: 100%;
2047
+ }
2048
+
2049
+ .emotion-1 {
2050
+ display: inline-block;
2051
+ line-height: 0;
2052
+ width: 18px;
2053
+ height: 18px;
2054
+ -webkit-transform: rotate(0deg);
2055
+ -ms-transform: rotate(0deg);
2056
+ transform: rotate(0deg);
2057
+ }
2058
+
2059
+ .emotion-1 path:not(.no-fill),
2060
+ .emotion-1 circle:not(.no-fill),
2061
+ .emotion-1 polygon:not(.no-fill),
2062
+ .emotion-1 rect:not(.no-fill) {
2063
+ fill: currentColor;
2064
+ }
2065
+
2066
+ .emotion-1 path.clipped {
2067
+ fill: transparent;
2068
+ }
2069
+
2070
+ .emotion-1 svg {
2071
+ width: 100%;
2072
+ height: 100%;
2073
+ }
2074
+
2075
+ .emotion-16 {
2076
+ margin-top: 18px;
2077
+ }
2078
+
2079
+ .emotion-16:first-of-type {
2080
+ margin-top: 26px;
2081
+ }
2082
+
2083
+ .emotion-14 {
2084
+ display: none;
2085
+ border-top: 0;
2086
+ color: inherit;
2087
+ background-color: #dfdfe3;
2088
+ padding: 13px;
2089
+ border-radius: 0 0 5px 5px;
2090
+ }
2091
+
2092
+ <div
2093
+ class="classNameWrapper emotion-22"
2094
+ id="forID"
2095
+ >
2096
+ <div
2097
+ class="emotion-12 emotion-13"
2098
+ >
2099
+ <div
2100
+ class="emotion-5 emotion-6"
2101
+ >
2102
+ <button
2103
+ class="emotion-3 emotion-4"
2104
+ data-testid="expand-button"
2105
+ >
2106
+ <span
2107
+ class="emotion-0 emotion-1 emotion-2"
2108
+ >
2109
+ <svg
2110
+ viewBox="0 0 24 24"
2111
+ >
2112
+ <path
2113
+ d="m5.123 6.33-2.26 2.137 8.656 9.15 9.344-9.105-2.17-2.228-7.084 6.902z"
2114
+ />
2115
+ </svg>
2116
+ </span>
2117
+ </button>
2118
+ 2 list
2119
+ </div>
2120
+ <button
2121
+ class="emotion-10 emotion-11"
2122
+ >
2123
+ editor.editorWidgets.list.add
2124
+ <span
2125
+ class="emotion-0 emotion-8 emotion-2"
2126
+ >
2127
+ <svg
2128
+ height="24"
2129
+ viewBox="0 0 24 24"
2130
+ width="24"
2131
+ xmlns="http://www.w3.org/2000/svg"
2132
+ >
2133
+ <path
2134
+ d="M19 14h-4a1 1 0 0 0-1 1v4a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-4a1 1 0 0 0-1-1H5a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h4a1 1 0 0 0 1-1V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1Z"
2135
+ />
2136
+ </svg>
2137
+ </span>
2138
+ </button>
2139
+ </div>
2140
+ <div>
2141
+ <div
2142
+ class="emotion-16 emotion-17"
2143
+ >
2144
+ <mock-list-item-top-bar
2145
+ classname="css-1e1b0lr-StyledListItemTopBar e11zrb3c1"
2146
+ collapsed="false"
2147
+ data-testid="styled-list-item-top-bar-0"
2148
+ >
2149
+ <button>
2150
+ Remove
2151
+ </button>
2152
+ </mock-list-item-top-bar>
2153
+ <div
2154
+ class="emotion-14 emotion-15"
2155
+ >
2156
+ Object
2157
+ </div>
2158
+ <mock-object-control
2159
+ classnamewrapper="classNameWrapper"
2160
+ collapsed="false"
2161
+ data-testid="object-control-0"
2162
+ 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\\" } ] } }"
2163
+ fieldserrors="Map {}"
2164
+ forlist="true"
2165
+ parentids="forID,0"
2166
+ validationkey="0"
2167
+ value="Map { \\"object\\": Map { \\"title\\": \\"item 1\\" } }"
2168
+ />
2169
+ </div>
2170
+ <div
2171
+ class="emotion-16 emotion-17"
2172
+ >
2173
+ <mock-list-item-top-bar
2174
+ classname="css-1e1b0lr-StyledListItemTopBar e11zrb3c1"
2175
+ collapsed="false"
2176
+ data-testid="styled-list-item-top-bar-1"
2177
+ >
2178
+ <button>
2179
+ Remove
2180
+ </button>
2181
+ </mock-list-item-top-bar>
2182
+ <div
2183
+ class="emotion-14 emotion-15"
2184
+ >
2185
+ Object
2186
+ </div>
2187
+ <mock-object-control
2188
+ classnamewrapper="classNameWrapper"
2189
+ collapsed="false"
2190
+ data-testid="object-control-1"
2191
+ 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\\" } ] } }"
2192
+ fieldserrors="Map {}"
2193
+ forlist="true"
2194
+ parentids="forID,1"
2195
+ validationkey="1"
2196
+ value="Map { \\"object\\": Map { \\"title\\": \\"item 2\\" } }"
2197
+ />
2198
+ </div>
2199
+ </div>
2200
+ </div>
2201
+ </DocumentFragment>
2202
+ `;
2203
+
2204
+ exports[`ListControl should render list with string array 1`] = `
2205
+ <DocumentFragment>
2206
+ <input
2207
+ class="classNameWrapper"
2208
+ id="forID"
2209
+ type="text"
2210
+ value="item 1, item 2"
2211
+ />
2212
+ </DocumentFragment>
2213
+ `;