@truedat/df 5.4.3 → 5.5.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.
Files changed (30) hide show
  1. package/package.json +8 -8
  2. package/src/components/FieldGroupSubSegment/__tests__/__snapshots__/FieldGroupSubSegment.spec.js.snap +38 -38
  3. package/src/components/__tests__/__snapshots__/DynamicFieldValue.spec.js.snap +2 -2
  4. package/src/components/__tests__/__snapshots__/DynamicForm.spec.js.snap +17 -17
  5. package/src/components/__tests__/__snapshots__/EditableDynamicFieldValue.spec.js.snap +1 -1
  6. package/src/components/__tests__/__snapshots__/FieldGroupDetail.spec.js.snap +3 -3
  7. package/src/components/hierarchies/__tests__/__snapshots__/HierarchyCrumbs.spec.js.snap +1 -1
  8. package/src/components/widgets/CopyField/__tests__/__snapshots__/CopyField.spec.js.snap +33 -33
  9. package/src/components/widgets/CopyField/__tests__/__snapshots__/CopyFieldCell.spec.js.snap +4 -4
  10. package/src/components/widgets/CopyField/__tests__/__snapshots__/CopyFieldColumn.spec.js.snap +1 -1
  11. package/src/components/widgets/CopyField/__tests__/__snapshots__/CopyFieldSelectableCell.spec.js.snap +8 -8
  12. package/src/components/widgets/__tests__/__snapshots__/CheckboxField.spec.js.snap +1 -1
  13. package/src/components/widgets/__tests__/__snapshots__/ColorPickerField.spec.js.snap +3 -3
  14. package/src/components/widgets/__tests__/__snapshots__/DomainPreview.spec.js.snap +1 -1
  15. package/src/components/widgets/__tests__/__snapshots__/ImageField.spec.js.snap +2 -2
  16. package/src/components/widgets/__tests__/__snapshots__/PairListField.spec.js.snap +1 -1
  17. package/src/components/widgets/__tests__/__snapshots__/RadioField.spec.js.snap +1 -1
  18. package/src/components/widgets/__tests__/__snapshots__/StandardDropdown.spec.js.snap +4 -4
  19. package/src/components/widgets/__tests__/__snapshots__/StringField.spec.js.snap +4 -4
  20. package/src/components/widgets/__tests__/__snapshots__/TableField.spec.js.snap +3 -3
  21. package/src/templates/components/__tests__/__snapshots__/NewTemplate.spec.js.snap +1 -1
  22. package/src/templates/components/__tests__/__snapshots__/TemplateCards.spec.js.snap +3 -3
  23. package/src/templates/components/templateForm/__tests__/__snapshots__/ActiveGroupForm.spec.js.snap +13 -13
  24. package/src/templates/components/templateForm/__tests__/__snapshots__/DefaultValue.spec.js.snap +3 -3
  25. package/src/templates/components/templateForm/__tests__/__snapshots__/FieldForm.spec.js.snap +181 -181
  26. package/src/templates/components/templateForm/__tests__/__snapshots__/SwitchListForm.spec.js.snap +2 -2
  27. package/src/templates/components/templateForm/__tests__/__snapshots__/TemplateFormActions.spec.js.snap +3 -3
  28. package/src/templates/components/templateForm/__tests__/__snapshots__/ValuesField.spec.js.snap +27 -27
  29. package/src/templates/components/templateForm/__tests__/__snapshots__/ValuesSelector.spec.js.snap +1 -1
  30. package/CHANGELOG.md +0 -668
@@ -5,20 +5,20 @@ exports[`<FieldForm /> manages handleCardinalityChange 1`] = `
5
5
  <ButtonGroup
6
6
  basic={true}
7
7
  buttons={
8
- Array [
9
- Object {
8
+ [
9
+ {
10
10
  "disabled": true,
11
11
  "icon": "arrow up",
12
12
  "key": "up",
13
13
  "onClick": [Function],
14
14
  },
15
- Object {
15
+ {
16
16
  "disabled": true,
17
17
  "icon": "arrow down",
18
18
  "key": "down",
19
19
  "onClick": [Function],
20
20
  },
21
- Object {
21
+ {
22
22
  "disabled": false,
23
23
  "icon": "trash alternate outline",
24
24
  "key": "delete",
@@ -83,98 +83,98 @@ exports[`<FieldForm /> manages handleCardinalityChange 1`] = `
83
83
  name="Group.fields[0].widget"
84
84
  onChange={[Function]}
85
85
  options={
86
- Array [
87
- Object {
86
+ [
87
+ {
88
88
  "icon": "hashtag",
89
89
  "key": undefined,
90
90
  "text": "Identifier",
91
91
  "value": "identifier",
92
92
  },
93
- Object {
93
+ {
94
94
  "icon": "minus",
95
95
  "key": undefined,
96
96
  "text": "Text Input",
97
97
  "value": "string",
98
98
  },
99
- Object {
99
+ {
100
100
  "icon": "align justify",
101
101
  "key": undefined,
102
102
  "text": "Textarea",
103
103
  "value": "textarea",
104
104
  },
105
- Object {
105
+ {
106
106
  "icon": "arrow down",
107
107
  "key": undefined,
108
108
  "text": "Dropdown",
109
109
  "value": "dropdown",
110
110
  },
111
- Object {
111
+ {
112
112
  "icon": "radio",
113
113
  "key": undefined,
114
114
  "text": "Radio",
115
115
  "value": "radio",
116
116
  },
117
- Object {
117
+ {
118
118
  "icon": "check square outline",
119
119
  "key": undefined,
120
120
  "text": "Checkbox",
121
121
  "value": "checkbox",
122
122
  },
123
- Object {
123
+ {
124
124
  "icon": "linkify",
125
125
  "key": undefined,
126
126
  "text": "Links",
127
127
  "value": "pair_list",
128
128
  },
129
- Object {
129
+ {
130
130
  "icon": "tint",
131
131
  "key": undefined,
132
132
  "text": "Colorpicker",
133
133
  "value": "color_picker",
134
134
  },
135
- Object {
135
+ {
136
136
  "icon": "text cursor",
137
137
  "key": undefined,
138
138
  "text": "Enrichedtext",
139
139
  "value": "enriched_text",
140
140
  },
141
- Object {
141
+ {
142
142
  "icon": "table",
143
143
  "key": undefined,
144
144
  "text": "Table",
145
145
  "value": "table",
146
146
  },
147
- Object {
147
+ {
148
148
  "icon": "asterisk",
149
149
  "key": undefined,
150
150
  "text": "Password",
151
151
  "value": "password",
152
152
  },
153
- Object {
153
+ {
154
154
  "icon": "image",
155
155
  "key": undefined,
156
156
  "text": "Image",
157
157
  "value": "image",
158
158
  },
159
- Object {
159
+ {
160
160
  "icon": "hashtag",
161
161
  "key": undefined,
162
162
  "text": "Number",
163
163
  "value": "number",
164
164
  },
165
- Object {
165
+ {
166
166
  "icon": "calendar",
167
167
  "key": undefined,
168
168
  "text": "Date",
169
169
  "value": "date",
170
170
  },
171
- Object {
171
+ {
172
172
  "icon": "calendar",
173
173
  "key": undefined,
174
174
  "text": "Date Time",
175
175
  "value": "datetime",
176
176
  },
177
- Object {
177
+ {
178
178
  "icon": "file alternate outline",
179
179
  "key": undefined,
180
180
  "text": "File Structure",
@@ -192,7 +192,7 @@ exports[`<FieldForm /> manages handleCardinalityChange 1`] = `
192
192
  label="template.field.type"
193
193
  name="Group.fields[0].type"
194
194
  onChange={[Function]}
195
- options={Array []}
195
+ options={[]}
196
196
  required={true}
197
197
  selection={true}
198
198
  />
@@ -203,7 +203,7 @@ exports[`<FieldForm /> manages handleCardinalityChange 1`] = `
203
203
  label="template.field.cardinality"
204
204
  name="Group.fields[0].cardinality"
205
205
  onChange={[Function]}
206
- options={Array []}
206
+ options={[]}
207
207
  required={true}
208
208
  selection={true}
209
209
  value="?"
@@ -220,12 +220,12 @@ exports[`<FieldForm /> manages handleCardinalityChange 1`] = `
220
220
  <ValuesField
221
221
  defaultField="Group.fields[0].default"
222
222
  field={
223
- Object {
223
+ {
224
224
  "cardinality": "?",
225
225
  "label": "Name",
226
- "mandatory": Object {
226
+ "mandatory": {
227
227
  "on": "bar",
228
- "to_be": Array [
228
+ "to_be": [
229
229
  "3",
230
230
  ],
231
231
  },
@@ -236,42 +236,42 @@ exports[`<FieldForm /> manages handleCardinalityChange 1`] = `
236
236
  onChange={[MockFunction]}
237
237
  onSelectionChange={[Function]}
238
238
  subscribableField="Group.fields[0].subscribable"
239
- values={Array []}
239
+ values={[]}
240
240
  />
241
241
  <ConditionalFieldForm
242
242
  allFields={
243
- Array [
244
- Object {
243
+ [
244
+ {
245
245
  "cardinality": "+",
246
246
  "label": "Foo",
247
247
  "name": "foo",
248
248
  "type": "string",
249
- "values": Object {
250
- "fixed": Array [
249
+ "values": {
250
+ "fixed": [
251
251
  "1",
252
252
  "2",
253
253
  ],
254
254
  },
255
255
  },
256
- Object {
256
+ {
257
257
  "cardinality": "?",
258
258
  "label": "Bar",
259
259
  "name": "bar",
260
260
  "type": "string",
261
- "values": Object {
262
- "fixed": Array [
261
+ "values": {
262
+ "fixed": [
263
263
  "3",
264
264
  "4",
265
265
  ],
266
266
  },
267
267
  },
268
- Object {
268
+ {
269
269
  "cardinality": "?",
270
270
  "label": "Xyz",
271
271
  "name": "xyz",
272
272
  "type": "string",
273
273
  },
274
- Object {
274
+ {
275
275
  "cardinality": "?",
276
276
  "label": "Name",
277
277
  "name": "name",
@@ -280,12 +280,12 @@ exports[`<FieldForm /> manages handleCardinalityChange 1`] = `
280
280
  ]
281
281
  }
282
282
  field={
283
- Object {
283
+ {
284
284
  "cardinality": "?",
285
285
  "label": "Name",
286
- "mandatory": Object {
286
+ "mandatory": {
287
287
  "on": "bar",
288
- "to_be": Array [
288
+ "to_be": [
289
289
  "3",
290
290
  ],
291
291
  },
@@ -297,38 +297,38 @@ exports[`<FieldForm /> manages handleCardinalityChange 1`] = `
297
297
  />
298
298
  <MandatoryConditional
299
299
  allFields={
300
- Array [
301
- Object {
300
+ [
301
+ {
302
302
  "cardinality": "+",
303
303
  "label": "Foo",
304
304
  "name": "foo",
305
305
  "type": "string",
306
- "values": Object {
307
- "fixed": Array [
306
+ "values": {
307
+ "fixed": [
308
308
  "1",
309
309
  "2",
310
310
  ],
311
311
  },
312
312
  },
313
- Object {
313
+ {
314
314
  "cardinality": "?",
315
315
  "label": "Bar",
316
316
  "name": "bar",
317
317
  "type": "string",
318
- "values": Object {
319
- "fixed": Array [
318
+ "values": {
319
+ "fixed": [
320
320
  "3",
321
321
  "4",
322
322
  ],
323
323
  },
324
324
  },
325
- Object {
325
+ {
326
326
  "cardinality": "?",
327
327
  "label": "Xyz",
328
328
  "name": "xyz",
329
329
  "type": "string",
330
330
  },
331
- Object {
331
+ {
332
332
  "cardinality": "?",
333
333
  "label": "Name",
334
334
  "name": "name",
@@ -337,12 +337,12 @@ exports[`<FieldForm /> manages handleCardinalityChange 1`] = `
337
337
  ]
338
338
  }
339
339
  field={
340
- Object {
340
+ {
341
341
  "cardinality": "?",
342
342
  "label": "Name",
343
- "mandatory": Object {
343
+ "mandatory": {
344
344
  "on": "bar",
345
- "to_be": Array [
345
+ "to_be": [
346
346
  "3",
347
347
  ],
348
348
  },
@@ -360,20 +360,20 @@ exports[`<FieldForm /> matches the latest snapshot 1`] = `
360
360
  <ButtonGroup
361
361
  basic={true}
362
362
  buttons={
363
- Array [
364
- Object {
363
+ [
364
+ {
365
365
  "disabled": true,
366
366
  "icon": "arrow up",
367
367
  "key": "up",
368
368
  "onClick": [Function],
369
369
  },
370
- Object {
370
+ {
371
371
  "disabled": true,
372
372
  "icon": "arrow down",
373
373
  "key": "down",
374
374
  "onClick": [Function],
375
375
  },
376
- Object {
376
+ {
377
377
  "disabled": false,
378
378
  "icon": "trash alternate outline",
379
379
  "key": "delete",
@@ -438,98 +438,98 @@ exports[`<FieldForm /> matches the latest snapshot 1`] = `
438
438
  name="undefined.fields[0].widget"
439
439
  onChange={[Function]}
440
440
  options={
441
- Array [
442
- Object {
441
+ [
442
+ {
443
443
  "icon": "hashtag",
444
444
  "key": undefined,
445
445
  "text": "Identifier",
446
446
  "value": "identifier",
447
447
  },
448
- Object {
448
+ {
449
449
  "icon": "minus",
450
450
  "key": undefined,
451
451
  "text": "Text Input",
452
452
  "value": "string",
453
453
  },
454
- Object {
454
+ {
455
455
  "icon": "align justify",
456
456
  "key": undefined,
457
457
  "text": "Textarea",
458
458
  "value": "textarea",
459
459
  },
460
- Object {
460
+ {
461
461
  "icon": "arrow down",
462
462
  "key": undefined,
463
463
  "text": "Dropdown",
464
464
  "value": "dropdown",
465
465
  },
466
- Object {
466
+ {
467
467
  "icon": "radio",
468
468
  "key": undefined,
469
469
  "text": "Radio",
470
470
  "value": "radio",
471
471
  },
472
- Object {
472
+ {
473
473
  "icon": "check square outline",
474
474
  "key": undefined,
475
475
  "text": "Checkbox",
476
476
  "value": "checkbox",
477
477
  },
478
- Object {
478
+ {
479
479
  "icon": "linkify",
480
480
  "key": undefined,
481
481
  "text": "Links",
482
482
  "value": "pair_list",
483
483
  },
484
- Object {
484
+ {
485
485
  "icon": "tint",
486
486
  "key": undefined,
487
487
  "text": "Colorpicker",
488
488
  "value": "color_picker",
489
489
  },
490
- Object {
490
+ {
491
491
  "icon": "text cursor",
492
492
  "key": undefined,
493
493
  "text": "Enrichedtext",
494
494
  "value": "enriched_text",
495
495
  },
496
- Object {
496
+ {
497
497
  "icon": "table",
498
498
  "key": undefined,
499
499
  "text": "Table",
500
500
  "value": "table",
501
501
  },
502
- Object {
502
+ {
503
503
  "icon": "asterisk",
504
504
  "key": undefined,
505
505
  "text": "Password",
506
506
  "value": "password",
507
507
  },
508
- Object {
508
+ {
509
509
  "icon": "image",
510
510
  "key": undefined,
511
511
  "text": "Image",
512
512
  "value": "image",
513
513
  },
514
- Object {
514
+ {
515
515
  "icon": "hashtag",
516
516
  "key": undefined,
517
517
  "text": "Number",
518
518
  "value": "number",
519
519
  },
520
- Object {
520
+ {
521
521
  "icon": "calendar",
522
522
  "key": undefined,
523
523
  "text": "Date",
524
524
  "value": "date",
525
525
  },
526
- Object {
526
+ {
527
527
  "icon": "calendar",
528
528
  "key": undefined,
529
529
  "text": "Date Time",
530
530
  "value": "datetime",
531
531
  },
532
- Object {
532
+ {
533
533
  "icon": "file alternate outline",
534
534
  "key": undefined,
535
535
  "text": "File Structure",
@@ -549,8 +549,8 @@ exports[`<FieldForm /> matches the latest snapshot 1`] = `
549
549
  name="undefined.fields[0].type"
550
550
  onChange={[Function]}
551
551
  options={
552
- Array [
553
- Object {
552
+ [
553
+ {
554
554
  "key": "string",
555
555
  "text": "template.field.type.string",
556
556
  "value": "string",
@@ -569,23 +569,23 @@ exports[`<FieldForm /> matches the latest snapshot 1`] = `
569
569
  name="undefined.fields[0].cardinality"
570
570
  onChange={[Function]}
571
571
  options={
572
- Array [
573
- Object {
572
+ [
573
+ {
574
574
  "key": "?",
575
575
  "text": "template.field.cardinality.?",
576
576
  "value": "?",
577
577
  },
578
- Object {
578
+ {
579
579
  "key": "1",
580
580
  "text": "template.field.cardinality.1",
581
581
  "value": "1",
582
582
  },
583
- Object {
583
+ {
584
584
  "key": "*",
585
585
  "text": "template.field.cardinality.*",
586
586
  "value": "*",
587
587
  },
588
- Object {
588
+ {
589
589
  "key": "+",
590
590
  "text": "template.field.cardinality.+",
591
591
  "value": "+",
@@ -607,16 +607,16 @@ exports[`<FieldForm /> matches the latest snapshot 1`] = `
607
607
  <ValuesField
608
608
  defaultField="undefined.fields[0].default"
609
609
  field={
610
- Object {
610
+ {
611
611
  "description": "A field for testing",
612
612
  "label": "Field 1",
613
- "meta": Object {
613
+ "meta": {
614
614
  "role": "Data Owner",
615
615
  },
616
616
  "name": "field1",
617
617
  "required": true,
618
618
  "type": "list",
619
- "values": Array [
619
+ "values": [
620
620
  "V1",
621
621
  "V2",
622
622
  ],
@@ -629,20 +629,20 @@ exports[`<FieldForm /> matches the latest snapshot 1`] = `
629
629
  onChange={[MockFunction]}
630
630
  onSelectionChange={[Function]}
631
631
  subscribableField="undefined.fields[0].subscribable"
632
- values={Array []}
632
+ values={[]}
633
633
  />
634
634
  <ConditionalFieldForm
635
635
  field={
636
- Object {
636
+ {
637
637
  "description": "A field for testing",
638
638
  "label": "Field 1",
639
- "meta": Object {
639
+ "meta": {
640
640
  "role": "Data Owner",
641
641
  },
642
642
  "name": "field1",
643
643
  "required": true,
644
644
  "type": "list",
645
- "values": Array [
645
+ "values": [
646
646
  "V1",
647
647
  "V2",
648
648
  ],
@@ -660,20 +660,20 @@ exports[`<FieldForm /> renders MandatoryConditional 1`] = `
660
660
  <ButtonGroup
661
661
  basic={true}
662
662
  buttons={
663
- Array [
664
- Object {
663
+ [
664
+ {
665
665
  "disabled": true,
666
666
  "icon": "arrow up",
667
667
  "key": "up",
668
668
  "onClick": [Function],
669
669
  },
670
- Object {
670
+ {
671
671
  "disabled": true,
672
672
  "icon": "arrow down",
673
673
  "key": "down",
674
674
  "onClick": [Function],
675
675
  },
676
- Object {
676
+ {
677
677
  "disabled": false,
678
678
  "icon": "trash alternate outline",
679
679
  "key": "delete",
@@ -738,98 +738,98 @@ exports[`<FieldForm /> renders MandatoryConditional 1`] = `
738
738
  name="Group.fields[0].widget"
739
739
  onChange={[Function]}
740
740
  options={
741
- Array [
742
- Object {
741
+ [
742
+ {
743
743
  "icon": "hashtag",
744
744
  "key": undefined,
745
745
  "text": "Identifier",
746
746
  "value": "identifier",
747
747
  },
748
- Object {
748
+ {
749
749
  "icon": "minus",
750
750
  "key": undefined,
751
751
  "text": "Text Input",
752
752
  "value": "string",
753
753
  },
754
- Object {
754
+ {
755
755
  "icon": "align justify",
756
756
  "key": undefined,
757
757
  "text": "Textarea",
758
758
  "value": "textarea",
759
759
  },
760
- Object {
760
+ {
761
761
  "icon": "arrow down",
762
762
  "key": undefined,
763
763
  "text": "Dropdown",
764
764
  "value": "dropdown",
765
765
  },
766
- Object {
766
+ {
767
767
  "icon": "radio",
768
768
  "key": undefined,
769
769
  "text": "Radio",
770
770
  "value": "radio",
771
771
  },
772
- Object {
772
+ {
773
773
  "icon": "check square outline",
774
774
  "key": undefined,
775
775
  "text": "Checkbox",
776
776
  "value": "checkbox",
777
777
  },
778
- Object {
778
+ {
779
779
  "icon": "linkify",
780
780
  "key": undefined,
781
781
  "text": "Links",
782
782
  "value": "pair_list",
783
783
  },
784
- Object {
784
+ {
785
785
  "icon": "tint",
786
786
  "key": undefined,
787
787
  "text": "Colorpicker",
788
788
  "value": "color_picker",
789
789
  },
790
- Object {
790
+ {
791
791
  "icon": "text cursor",
792
792
  "key": undefined,
793
793
  "text": "Enrichedtext",
794
794
  "value": "enriched_text",
795
795
  },
796
- Object {
796
+ {
797
797
  "icon": "table",
798
798
  "key": undefined,
799
799
  "text": "Table",
800
800
  "value": "table",
801
801
  },
802
- Object {
802
+ {
803
803
  "icon": "asterisk",
804
804
  "key": undefined,
805
805
  "text": "Password",
806
806
  "value": "password",
807
807
  },
808
- Object {
808
+ {
809
809
  "icon": "image",
810
810
  "key": undefined,
811
811
  "text": "Image",
812
812
  "value": "image",
813
813
  },
814
- Object {
814
+ {
815
815
  "icon": "hashtag",
816
816
  "key": undefined,
817
817
  "text": "Number",
818
818
  "value": "number",
819
819
  },
820
- Object {
820
+ {
821
821
  "icon": "calendar",
822
822
  "key": undefined,
823
823
  "text": "Date",
824
824
  "value": "date",
825
825
  },
826
- Object {
826
+ {
827
827
  "icon": "calendar",
828
828
  "key": undefined,
829
829
  "text": "Date Time",
830
830
  "value": "datetime",
831
831
  },
832
- Object {
832
+ {
833
833
  "icon": "file alternate outline",
834
834
  "key": undefined,
835
835
  "text": "File Structure",
@@ -847,7 +847,7 @@ exports[`<FieldForm /> renders MandatoryConditional 1`] = `
847
847
  label="template.field.type"
848
848
  name="Group.fields[0].type"
849
849
  onChange={[Function]}
850
- options={Array []}
850
+ options={[]}
851
851
  required={true}
852
852
  selection={true}
853
853
  />
@@ -858,7 +858,7 @@ exports[`<FieldForm /> renders MandatoryConditional 1`] = `
858
858
  label="template.field.cardinality"
859
859
  name="Group.fields[0].cardinality"
860
860
  onChange={[Function]}
861
- options={Array []}
861
+ options={[]}
862
862
  required={true}
863
863
  selection={true}
864
864
  value="?"
@@ -875,12 +875,12 @@ exports[`<FieldForm /> renders MandatoryConditional 1`] = `
875
875
  <ValuesField
876
876
  defaultField="Group.fields[0].default"
877
877
  field={
878
- Object {
878
+ {
879
879
  "cardinality": "?",
880
880
  "label": "Name",
881
- "mandatory": Object {
881
+ "mandatory": {
882
882
  "on": "bar",
883
- "to_be": Array [
883
+ "to_be": [
884
884
  "3",
885
885
  ],
886
886
  },
@@ -891,42 +891,42 @@ exports[`<FieldForm /> renders MandatoryConditional 1`] = `
891
891
  onChange={[MockFunction]}
892
892
  onSelectionChange={[Function]}
893
893
  subscribableField="Group.fields[0].subscribable"
894
- values={Array []}
894
+ values={[]}
895
895
  />
896
896
  <ConditionalFieldForm
897
897
  allFields={
898
- Array [
899
- Object {
898
+ [
899
+ {
900
900
  "cardinality": "+",
901
901
  "label": "Foo",
902
902
  "name": "foo",
903
903
  "type": "string",
904
- "values": Object {
905
- "fixed": Array [
904
+ "values": {
905
+ "fixed": [
906
906
  "1",
907
907
  "2",
908
908
  ],
909
909
  },
910
910
  },
911
- Object {
911
+ {
912
912
  "cardinality": "?",
913
913
  "label": "Bar",
914
914
  "name": "bar",
915
915
  "type": "string",
916
- "values": Object {
917
- "fixed": Array [
916
+ "values": {
917
+ "fixed": [
918
918
  "3",
919
919
  "4",
920
920
  ],
921
921
  },
922
922
  },
923
- Object {
923
+ {
924
924
  "cardinality": "?",
925
925
  "label": "Xyz",
926
926
  "name": "xyz",
927
927
  "type": "string",
928
928
  },
929
- Object {
929
+ {
930
930
  "cardinality": "?",
931
931
  "label": "Name",
932
932
  "name": "name",
@@ -935,12 +935,12 @@ exports[`<FieldForm /> renders MandatoryConditional 1`] = `
935
935
  ]
936
936
  }
937
937
  field={
938
- Object {
938
+ {
939
939
  "cardinality": "?",
940
940
  "label": "Name",
941
- "mandatory": Object {
941
+ "mandatory": {
942
942
  "on": "bar",
943
- "to_be": Array [
943
+ "to_be": [
944
944
  "3",
945
945
  ],
946
946
  },
@@ -952,38 +952,38 @@ exports[`<FieldForm /> renders MandatoryConditional 1`] = `
952
952
  />
953
953
  <MandatoryConditional
954
954
  allFields={
955
- Array [
956
- Object {
955
+ [
956
+ {
957
957
  "cardinality": "+",
958
958
  "label": "Foo",
959
959
  "name": "foo",
960
960
  "type": "string",
961
- "values": Object {
962
- "fixed": Array [
961
+ "values": {
962
+ "fixed": [
963
963
  "1",
964
964
  "2",
965
965
  ],
966
966
  },
967
967
  },
968
- Object {
968
+ {
969
969
  "cardinality": "?",
970
970
  "label": "Bar",
971
971
  "name": "bar",
972
972
  "type": "string",
973
- "values": Object {
974
- "fixed": Array [
973
+ "values": {
974
+ "fixed": [
975
975
  "3",
976
976
  "4",
977
977
  ],
978
978
  },
979
979
  },
980
- Object {
980
+ {
981
981
  "cardinality": "?",
982
982
  "label": "Xyz",
983
983
  "name": "xyz",
984
984
  "type": "string",
985
985
  },
986
- Object {
986
+ {
987
987
  "cardinality": "?",
988
988
  "label": "Name",
989
989
  "name": "name",
@@ -992,12 +992,12 @@ exports[`<FieldForm /> renders MandatoryConditional 1`] = `
992
992
  ]
993
993
  }
994
994
  field={
995
- Object {
995
+ {
996
996
  "cardinality": "?",
997
997
  "label": "Name",
998
- "mandatory": Object {
998
+ "mandatory": {
999
999
  "on": "bar",
1000
- "to_be": Array [
1000
+ "to_be": [
1001
1001
  "3",
1002
1002
  ],
1003
1003
  },
@@ -1015,20 +1015,20 @@ exports[`<FieldForm /> renders ValuesField and manages onChange 1`] = `
1015
1015
  <ButtonGroup
1016
1016
  basic={true}
1017
1017
  buttons={
1018
- Array [
1019
- Object {
1018
+ [
1019
+ {
1020
1020
  "disabled": true,
1021
1021
  "icon": "arrow up",
1022
1022
  "key": "up",
1023
1023
  "onClick": [Function],
1024
1024
  },
1025
- Object {
1025
+ {
1026
1026
  "disabled": true,
1027
1027
  "icon": "arrow down",
1028
1028
  "key": "down",
1029
1029
  "onClick": [Function],
1030
1030
  },
1031
- Object {
1031
+ {
1032
1032
  "disabled": false,
1033
1033
  "icon": "trash alternate outline",
1034
1034
  "key": "delete",
@@ -1093,98 +1093,98 @@ exports[`<FieldForm /> renders ValuesField and manages onChange 1`] = `
1093
1093
  name="Group.fields[0].widget"
1094
1094
  onChange={[Function]}
1095
1095
  options={
1096
- Array [
1097
- Object {
1096
+ [
1097
+ {
1098
1098
  "icon": "hashtag",
1099
1099
  "key": undefined,
1100
1100
  "text": "Identifier",
1101
1101
  "value": "identifier",
1102
1102
  },
1103
- Object {
1103
+ {
1104
1104
  "icon": "minus",
1105
1105
  "key": undefined,
1106
1106
  "text": "Text Input",
1107
1107
  "value": "string",
1108
1108
  },
1109
- Object {
1109
+ {
1110
1110
  "icon": "align justify",
1111
1111
  "key": undefined,
1112
1112
  "text": "Textarea",
1113
1113
  "value": "textarea",
1114
1114
  },
1115
- Object {
1115
+ {
1116
1116
  "icon": "arrow down",
1117
1117
  "key": undefined,
1118
1118
  "text": "Dropdown",
1119
1119
  "value": "dropdown",
1120
1120
  },
1121
- Object {
1121
+ {
1122
1122
  "icon": "radio",
1123
1123
  "key": undefined,
1124
1124
  "text": "Radio",
1125
1125
  "value": "radio",
1126
1126
  },
1127
- Object {
1127
+ {
1128
1128
  "icon": "check square outline",
1129
1129
  "key": undefined,
1130
1130
  "text": "Checkbox",
1131
1131
  "value": "checkbox",
1132
1132
  },
1133
- Object {
1133
+ {
1134
1134
  "icon": "linkify",
1135
1135
  "key": undefined,
1136
1136
  "text": "Links",
1137
1137
  "value": "pair_list",
1138
1138
  },
1139
- Object {
1139
+ {
1140
1140
  "icon": "tint",
1141
1141
  "key": undefined,
1142
1142
  "text": "Colorpicker",
1143
1143
  "value": "color_picker",
1144
1144
  },
1145
- Object {
1145
+ {
1146
1146
  "icon": "text cursor",
1147
1147
  "key": undefined,
1148
1148
  "text": "Enrichedtext",
1149
1149
  "value": "enriched_text",
1150
1150
  },
1151
- Object {
1151
+ {
1152
1152
  "icon": "table",
1153
1153
  "key": undefined,
1154
1154
  "text": "Table",
1155
1155
  "value": "table",
1156
1156
  },
1157
- Object {
1157
+ {
1158
1158
  "icon": "asterisk",
1159
1159
  "key": undefined,
1160
1160
  "text": "Password",
1161
1161
  "value": "password",
1162
1162
  },
1163
- Object {
1163
+ {
1164
1164
  "icon": "image",
1165
1165
  "key": undefined,
1166
1166
  "text": "Image",
1167
1167
  "value": "image",
1168
1168
  },
1169
- Object {
1169
+ {
1170
1170
  "icon": "hashtag",
1171
1171
  "key": undefined,
1172
1172
  "text": "Number",
1173
1173
  "value": "number",
1174
1174
  },
1175
- Object {
1175
+ {
1176
1176
  "icon": "calendar",
1177
1177
  "key": undefined,
1178
1178
  "text": "Date",
1179
1179
  "value": "date",
1180
1180
  },
1181
- Object {
1181
+ {
1182
1182
  "icon": "calendar",
1183
1183
  "key": undefined,
1184
1184
  "text": "Date Time",
1185
1185
  "value": "datetime",
1186
1186
  },
1187
- Object {
1187
+ {
1188
1188
  "icon": "file alternate outline",
1189
1189
  "key": undefined,
1190
1190
  "text": "File Structure",
@@ -1204,33 +1204,33 @@ exports[`<FieldForm /> renders ValuesField and manages onChange 1`] = `
1204
1204
  name="Group.fields[0].type"
1205
1205
  onChange={[Function]}
1206
1206
  options={
1207
- Array [
1208
- Object {
1207
+ [
1208
+ {
1209
1209
  "key": "string",
1210
1210
  "text": "template.field.type.string",
1211
1211
  "value": "string",
1212
1212
  },
1213
- Object {
1213
+ {
1214
1214
  "key": "system",
1215
1215
  "text": "template.field.type.system",
1216
1216
  "value": "system",
1217
1217
  },
1218
- Object {
1218
+ {
1219
1219
  "key": "domain",
1220
1220
  "text": "template.field.type.domain",
1221
1221
  "value": "domain",
1222
1222
  },
1223
- Object {
1223
+ {
1224
1224
  "key": "user",
1225
1225
  "text": "template.field.type.user",
1226
1226
  "value": "user",
1227
1227
  },
1228
- Object {
1228
+ {
1229
1229
  "key": "user_group",
1230
1230
  "text": "template.field.type.user_group",
1231
1231
  "value": "user_group",
1232
1232
  },
1233
- Object {
1233
+ {
1234
1234
  "key": "hierarchy",
1235
1235
  "text": "template.field.type.hierarchy",
1236
1236
  "value": "hierarchy",
@@ -1249,23 +1249,23 @@ exports[`<FieldForm /> renders ValuesField and manages onChange 1`] = `
1249
1249
  name="Group.fields[0].cardinality"
1250
1250
  onChange={[Function]}
1251
1251
  options={
1252
- Array [
1253
- Object {
1252
+ [
1253
+ {
1254
1254
  "key": "?",
1255
1255
  "text": "template.field.cardinality.?",
1256
1256
  "value": "?",
1257
1257
  },
1258
- Object {
1258
+ {
1259
1259
  "key": "1",
1260
1260
  "text": "template.field.cardinality.1",
1261
1261
  "value": "1",
1262
1262
  },
1263
- Object {
1263
+ {
1264
1264
  "key": "*",
1265
1265
  "text": "template.field.cardinality.*",
1266
1266
  "value": "*",
1267
1267
  },
1268
- Object {
1268
+ {
1269
1269
  "key": "+",
1270
1270
  "text": "template.field.cardinality.+",
1271
1271
  "value": "+",
@@ -1287,14 +1287,14 @@ exports[`<FieldForm /> renders ValuesField and manages onChange 1`] = `
1287
1287
  <ValuesField
1288
1288
  defaultField="Group.fields[0].default"
1289
1289
  field={
1290
- Object {
1290
+ {
1291
1291
  "description": "A field for testing",
1292
1292
  "label": "Field 1",
1293
1293
  "name": "field1",
1294
1294
  "required": true,
1295
1295
  "type": "string",
1296
- "values": Object {
1297
- "fixed": Array [
1296
+ "values": {
1297
+ "fixed": [
1298
1298
  "A",
1299
1299
  "B",
1300
1300
  ],
@@ -1309,20 +1309,20 @@ exports[`<FieldForm /> renders ValuesField and manages onChange 1`] = `
1309
1309
  onSelectionChange={[Function]}
1310
1310
  subscribableField="Group.fields[0].subscribable"
1311
1311
  values={
1312
- Array [
1313
- Object {
1312
+ [
1313
+ {
1314
1314
  "id": "template.field.values.fixed",
1315
1315
  "value": "fixed",
1316
1316
  },
1317
- Object {
1317
+ {
1318
1318
  "id": "template.field.values.fixed_tuple",
1319
1319
  "value": "fixed_tuple",
1320
1320
  },
1321
- Object {
1321
+ {
1322
1322
  "id": "template.field.values.switch",
1323
1323
  "value": "switch",
1324
1324
  },
1325
- Object {
1325
+ {
1326
1326
  "id": "template.field.values.domain",
1327
1327
  "value": "domain",
1328
1328
  },
@@ -1331,14 +1331,14 @@ exports[`<FieldForm /> renders ValuesField and manages onChange 1`] = `
1331
1331
  />
1332
1332
  <ConditionalFieldForm
1333
1333
  field={
1334
- Object {
1334
+ {
1335
1335
  "description": "A field for testing",
1336
1336
  "label": "Field 1",
1337
1337
  "name": "field1",
1338
1338
  "required": true,
1339
1339
  "type": "string",
1340
- "values": Object {
1341
- "fixed": Array [
1340
+ "values": {
1341
+ "fixed": [
1342
1342
  "A",
1343
1343
  "B",
1344
1344
  ],