@evoke-platform/ui-components 1.8.0-testing.9 → 1.8.1-dev.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 (40) hide show
  1. package/dist/published/components/custom/DataGrid/DataGrid.d.ts +1 -0
  2. package/dist/published/components/custom/DataGrid/DataGrid.js +2 -1
  3. package/dist/published/components/custom/DataGrid/Toolbar.d.ts +1 -0
  4. package/dist/published/components/custom/DataGrid/Toolbar.js +3 -2
  5. package/dist/published/components/custom/DataGrid/index.d.ts +1 -0
  6. package/dist/published/components/custom/Form/FormComponents/ObjectComponent/ObjectPropertyInput.js +47 -40
  7. package/dist/published/components/custom/Form/FormComponents/ObjectComponent/RelatedObjectInstance.js +1 -1
  8. package/dist/published/components/custom/Form/FormComponents/RepeatableFieldComponent/ActionDialog.d.ts +2 -0
  9. package/dist/published/components/custom/Form/FormComponents/RepeatableFieldComponent/ActionDialog.js +2 -2
  10. package/dist/published/components/custom/Form/FormComponents/RepeatableFieldComponent/RepeatableField.d.ts +2 -0
  11. package/dist/published/components/custom/Form/FormComponents/RepeatableFieldComponent/RepeatableField.js +2 -2
  12. package/dist/published/components/custom/Form/FormComponents/UserComponent/UserProperty.d.ts +1 -1
  13. package/dist/published/components/custom/Form/FormComponents/UserComponent/UserProperty.js +18 -6
  14. package/dist/published/components/custom/Form/tests/Form.test.js +192 -2
  15. package/dist/published/components/custom/Form/tests/test-data.d.ts +7 -0
  16. package/dist/published/components/custom/Form/tests/test-data.js +138 -0
  17. package/dist/published/components/custom/FormV2/FormRenderer.d.ts +2 -2
  18. package/dist/published/components/custom/FormV2/FormRendererContainer.d.ts +3 -2
  19. package/dist/published/components/custom/FormV2/FormRendererContainer.js +2 -2
  20. package/dist/published/components/custom/FormV2/components/FormFieldTypes/UserProperty.js +1 -1
  21. package/dist/published/components/custom/FormV2/components/RecursiveEntryRenderer.js +1 -2
  22. package/dist/published/components/custom/FormV2/components/utils.d.ts +1 -1
  23. package/dist/published/components/custom/FormV2/components/utils.js +1 -1
  24. package/dist/published/components/custom/FormV2/tests/FormRenderer.test.d.ts +1 -0
  25. package/dist/published/components/custom/FormV2/tests/FormRenderer.test.js +173 -0
  26. package/dist/published/components/custom/FormV2/tests/FormRendererContainer.test.d.ts +1 -0
  27. package/dist/published/components/custom/FormV2/tests/FormRendererContainer.test.js +96 -0
  28. package/dist/published/components/custom/FormV2/tests/test-data.d.ts +16 -0
  29. package/dist/published/components/custom/FormV2/tests/test-data.js +394 -0
  30. package/dist/published/components/custom/index.d.ts +1 -0
  31. package/dist/published/index.d.ts +1 -1
  32. package/dist/published/stories/FormRenderer.stories.d.ts +7 -0
  33. package/dist/published/stories/FormRenderer.stories.js +65 -0
  34. package/dist/published/stories/FormRendererContainer.stories.d.ts +7 -0
  35. package/dist/published/stories/FormRendererContainer.stories.js +56 -0
  36. package/dist/published/stories/FormRendererData.d.ts +116 -0
  37. package/dist/published/stories/FormRendererData.js +925 -0
  38. package/dist/published/stories/sharedMswHandlers.d.ts +1 -0
  39. package/dist/published/stories/sharedMswHandlers.js +100 -0
  40. package/package.json +10 -4
@@ -0,0 +1,925 @@
1
+ // Form values for FormRenderer and FormRendererContainer stories
2
+ export const formData = {
3
+ name: 'Ren Foreman',
4
+ multiSelect: ['2', '1', '3'],
5
+ address: {
6
+ city: 'Baltimore',
7
+ },
8
+ };
9
+ export const instance = {
10
+ id: 'instanceId',
11
+ name: 'Ren Foreman',
12
+ multiSelect: ['2', '1', '3'],
13
+ address: {
14
+ city: 'Baltimore',
15
+ },
16
+ objectId: 'genericEvokeForm',
17
+ };
18
+ export const documentInstance = {
19
+ id: 'documentInstanceId',
20
+ name: 'Document.pdf',
21
+ contentType: 'application/pdf',
22
+ size: 161596,
23
+ metadata: {
24
+ type: 'PNG',
25
+ view_permission: 'Portal',
26
+ },
27
+ uploadedDate: '2025-06-24T17:56:49.000Z',
28
+ versionId: '2025-06-24T17:56:49.0660713Z',
29
+ };
30
+ export const docFormData = {
31
+ id: 'documentInstanceId',
32
+ name: 'Document.pdf',
33
+ contentType: 'application/pdf',
34
+ size: 161596,
35
+ uploadedDate: '2025-06-24T17:56:49.000Z',
36
+ type: 'PNG',
37
+ view_permission: 'Portal',
38
+ versionId: '2025-06-24T17:56:49.0660713Z',
39
+ };
40
+ // Object definitions for FormRenderer and FormRendererContainer stories
41
+ export const mockGenericEvokeFormObject = {
42
+ id: 'genericEvokeForm',
43
+ name: 'Generic Evoke Form',
44
+ properties: [
45
+ {
46
+ id: 'name',
47
+ name: 'Name',
48
+ type: 'string',
49
+ required: true,
50
+ searchable: true,
51
+ },
52
+ {
53
+ id: 'multiSelect',
54
+ name: 'Multi-Select',
55
+ type: 'array',
56
+ enum: ['1', '2', '3'],
57
+ },
58
+ {
59
+ id: 'address',
60
+ name: 'Address',
61
+ type: 'address',
62
+ },
63
+ {
64
+ id: 'relatedObject',
65
+ name: 'Related Object',
66
+ type: 'object',
67
+ objectId: 'movies',
68
+ },
69
+ {
70
+ id: 'collection',
71
+ name: 'Collection',
72
+ type: 'collection',
73
+ objectId: 'customers',
74
+ relatedPropertyId: 'genericEvokeForm',
75
+ },
76
+ {
77
+ id: 'criteria',
78
+ name: 'Criteria',
79
+ type: 'criteria',
80
+ objectId: 'genericEvokeForm',
81
+ },
82
+ {
83
+ id: 'people',
84
+ name: 'People',
85
+ type: 'collection',
86
+ objectId: 'peopleGenericObject',
87
+ relatedPropertyId: 'genericEvokeForm',
88
+ manyToManyPropertyId: 'people',
89
+ required: false,
90
+ },
91
+ ],
92
+ actions: [
93
+ {
94
+ id: '_create',
95
+ name: 'Create Generic Evoke Form',
96
+ type: 'create',
97
+ outputEvent: 'Generic Evoke Form Created',
98
+ },
99
+ {
100
+ id: '_update',
101
+ name: 'Update Generic Evoke Form 2',
102
+ type: 'update',
103
+ parameters: [
104
+ {
105
+ id: 'name',
106
+ name: 'Name',
107
+ type: 'string',
108
+ required: true,
109
+ },
110
+ {
111
+ id: 'multiSelect',
112
+ name: 'Multi-Select',
113
+ type: 'array',
114
+ required: false,
115
+ enum: ['1', '2', '3'],
116
+ },
117
+ {
118
+ id: 'criteria',
119
+ name: 'Criteria',
120
+ type: 'criteria',
121
+ objectId: 'genericEvokeForm',
122
+ required: false,
123
+ },
124
+ {
125
+ id: 'address.city',
126
+ name: 'Address City',
127
+ type: 'string',
128
+ required: false,
129
+ },
130
+ {
131
+ id: 'relatedObject',
132
+ name: 'Related Object',
133
+ type: 'object',
134
+ objectId: 'movies',
135
+ required: false,
136
+ },
137
+ {
138
+ id: 'collection',
139
+ name: 'Collection',
140
+ type: 'collection',
141
+ objectId: 'customers',
142
+ relatedPropertyId: 'genericEvokeForm',
143
+ required: false,
144
+ },
145
+ {
146
+ id: 'manyToMany',
147
+ name: 'Generic Evoke Forms',
148
+ type: 'collection',
149
+ objectId: 'peopleGenericObject',
150
+ relatedPropertyId: 'genericEvokeForm',
151
+ manyToManyPropertyId: 'people',
152
+ },
153
+ ],
154
+ outputEvent: 'Update Generic Evoke Form 2',
155
+ preconditions: {},
156
+ defaultFormId: 'UpdateGenericEvokeForm',
157
+ },
158
+ {
159
+ id: '_delete',
160
+ name: 'Delete Generic Evoke Form',
161
+ type: 'delete',
162
+ inputProperties: [],
163
+ outputEvent: 'Generic Evoke Form Deleted',
164
+ },
165
+ ],
166
+ };
167
+ export const mockMovieObject = {
168
+ id: 'movies',
169
+ name: 'Movies',
170
+ properties: [
171
+ {
172
+ id: 'name',
173
+ name: 'Name',
174
+ type: 'string',
175
+ required: true,
176
+ searchable: true,
177
+ },
178
+ {
179
+ id: 'customers',
180
+ name: 'Customers',
181
+ type: 'collection',
182
+ objectId: 'costomerMovie',
183
+ relatedPropertyId: 'movie',
184
+ manyToManyPropertyId: 'customer',
185
+ },
186
+ {
187
+ id: 'price',
188
+ name: 'Price',
189
+ type: 'number',
190
+ },
191
+ {
192
+ id: 'runTime',
193
+ name: 'Run Time',
194
+ type: 'string',
195
+ },
196
+ {
197
+ id: 'soldSeats',
198
+ name: 'Sold Seats',
199
+ type: 'string',
200
+ },
201
+ {
202
+ id: 'theaterNumber',
203
+ name: 'Theater Number',
204
+ type: 'object',
205
+ objectId: 'theaters',
206
+ },
207
+ {
208
+ id: 'worker',
209
+ name: 'Worker',
210
+ type: 'object',
211
+ objectId: 'staff',
212
+ },
213
+ {
214
+ id: 'integer',
215
+ name: 'integer',
216
+ type: 'integer',
217
+ },
218
+ {
219
+ id: 'multiSelect',
220
+ name: 'Multi-Select',
221
+ type: 'array',
222
+ enum: ['option one', 'Option two', 'Option three', 'Option four'],
223
+ },
224
+ {
225
+ id: 'address',
226
+ name: 'Address',
227
+ type: 'address',
228
+ },
229
+ {
230
+ id: 'image',
231
+ name: 'Image',
232
+ type: 'image',
233
+ },
234
+ ],
235
+ actions: [
236
+ {
237
+ id: '_create',
238
+ name: 'Create movies',
239
+ type: 'create',
240
+ outputEvent: 'movies Created',
241
+ defaultFormId: 'movieCreateForm',
242
+ },
243
+ {
244
+ id: '_update',
245
+ name: 'Update movies',
246
+ type: 'update',
247
+ parameters: [],
248
+ outputEvent: 'movies Updated',
249
+ },
250
+ {
251
+ id: '_delete',
252
+ name: 'Delete movies',
253
+ type: 'delete',
254
+ inputProperties: [],
255
+ outputEvent: 'movies Deleted',
256
+ },
257
+ ],
258
+ };
259
+ export const mockCustomerObject = {
260
+ id: 'customers',
261
+ name: 'Customers',
262
+ properties: [
263
+ {
264
+ id: 'name',
265
+ name: 'Name',
266
+ type: 'string',
267
+ required: true,
268
+ },
269
+ {
270
+ id: 'livingPlace',
271
+ name: 'Living Place',
272
+ type: 'address',
273
+ },
274
+ {
275
+ id: 'genericEvokeForm',
276
+ name: 'Generic Evoke Form',
277
+ type: 'object',
278
+ objectId: 'genericEvokeForm',
279
+ },
280
+ {
281
+ id: 'document',
282
+ name: 'Document',
283
+ type: 'document',
284
+ },
285
+ ],
286
+ actions: [
287
+ {
288
+ id: '_create',
289
+ name: 'Create Customers',
290
+ type: 'create',
291
+ parameters: [
292
+ {
293
+ id: 'name',
294
+ type: 'string',
295
+ name: 'Name',
296
+ required: true,
297
+ },
298
+ {
299
+ id: 'genericEvokeForm',
300
+ type: 'object',
301
+ name: 'Generic Evoke Form',
302
+ objectId: 'genericEvokeForm',
303
+ required: false,
304
+ },
305
+ {
306
+ id: 'livingPlace.state',
307
+ type: 'string',
308
+ name: 'Living Place State',
309
+ required: false,
310
+ },
311
+ {
312
+ id: 'livingPlace.county',
313
+ type: 'string',
314
+ name: 'Living Place County',
315
+ required: false,
316
+ },
317
+ ],
318
+ outputEvent: 'Customers Created',
319
+ defaultFormId: 'customerCreateForm',
320
+ },
321
+ {
322
+ id: '_update',
323
+ name: 'Update Customers',
324
+ type: 'update',
325
+ parameters: [
326
+ {
327
+ id: 'name',
328
+ type: 'string',
329
+ name: 'Name',
330
+ required: true,
331
+ },
332
+ {
333
+ id: 'document',
334
+ type: 'document',
335
+ name: 'Document',
336
+ },
337
+ {
338
+ id: 'genericEvokeForm',
339
+ type: 'object',
340
+ name: 'Generic Evoke Form',
341
+ objectId: 'genericEvokeForm',
342
+ },
343
+ {
344
+ id: 'livingPlace.city',
345
+ type: 'string',
346
+ name: 'Living Place City',
347
+ },
348
+ {
349
+ id: 'livingPlace.county',
350
+ type: 'string',
351
+ name: 'Living Place County',
352
+ },
353
+ {
354
+ id: 'livingPlace.line1',
355
+ type: 'string',
356
+ name: 'Living Place Line 1',
357
+ },
358
+ {
359
+ id: 'livingPlace.line2',
360
+ type: 'string',
361
+ name: 'Living Place Line 2',
362
+ },
363
+ {
364
+ id: 'livingPlace.state',
365
+ type: 'string',
366
+ name: 'Living Place State',
367
+ },
368
+ {
369
+ id: 'livingPlace.zipCode',
370
+ type: 'string',
371
+ name: 'Living Place Zip Code',
372
+ },
373
+ ],
374
+ outputEvent: 'Customers Updated',
375
+ defaultFormId: 'customerUpdateForm',
376
+ },
377
+ {
378
+ id: '_delete',
379
+ name: 'Delete Customers',
380
+ type: 'delete',
381
+ inputProperties: [],
382
+ outputEvent: 'Customers Deleted',
383
+ },
384
+ ],
385
+ };
386
+ export const mockPeopleGenericObject = {
387
+ id: 'peopleGenericObject',
388
+ name: 'Person Generic Form',
389
+ properties: [
390
+ {
391
+ id: 'id',
392
+ name: 'ID',
393
+ type: 'string',
394
+ required: true,
395
+ searchable: true,
396
+ },
397
+ {
398
+ id: 'people',
399
+ name: 'People',
400
+ type: 'object',
401
+ objectId: 'people',
402
+ },
403
+ {
404
+ id: 'genericEvokeForm',
405
+ name: 'Generic Evoke Form',
406
+ type: 'object',
407
+ objectId: 'genericEvokeForm',
408
+ },
409
+ ],
410
+ actions: [
411
+ {
412
+ id: '_create',
413
+ name: 'Create Person Generic Form',
414
+ type: 'create',
415
+ outputEvent: 'Person Generic Form Created',
416
+ },
417
+ {
418
+ id: '_update',
419
+ name: 'Update Person Generic Form',
420
+ type: 'update',
421
+ parameters: [],
422
+ outputEvent: 'Person Generic Form Updated',
423
+ },
424
+ {
425
+ id: '_delete',
426
+ name: 'Delete Person Generic Form',
427
+ type: 'delete',
428
+ inputProperties: [],
429
+ outputEvent: 'Person Generic Form Deleted',
430
+ },
431
+ ],
432
+ };
433
+ export const mockPeopleObject = {
434
+ id: 'people',
435
+ name: 'People',
436
+ properties: [
437
+ {
438
+ id: 'name',
439
+ name: 'Name',
440
+ type: 'string',
441
+ required: true,
442
+ },
443
+ {
444
+ id: 'genericEvokeForm',
445
+ name: 'Generic Evoke Form',
446
+ type: 'object',
447
+ objectId: 'genericEvokeForm',
448
+ },
449
+ ],
450
+ actions: [
451
+ {
452
+ id: '_create',
453
+ name: 'Create Customers',
454
+ type: 'create',
455
+ parameters: [
456
+ {
457
+ id: 'name',
458
+ type: 'string',
459
+ name: 'Name',
460
+ required: true,
461
+ },
462
+ {
463
+ id: 'genericEvokeForm',
464
+ type: 'object',
465
+ name: 'Generic Evoke Form',
466
+ objectId: 'genericEvokeForm',
467
+ required: false,
468
+ },
469
+ ],
470
+ outputEvent: 'Customers Created',
471
+ defaultFormId: 'customerCreateForm',
472
+ },
473
+ {
474
+ id: '_update',
475
+ name: 'Update Customers',
476
+ type: 'update',
477
+ parameters: [],
478
+ outputEvent: 'Customers Updated',
479
+ defaultFormId: 'customerUpdateForm',
480
+ },
481
+ {
482
+ id: '_delete',
483
+ name: 'Delete Customers',
484
+ type: 'delete',
485
+ inputProperties: [],
486
+ outputEvent: 'Customers Deleted',
487
+ },
488
+ ],
489
+ };
490
+ // Form definitions for FormRenderer and FormRendererContainer stories
491
+ export const mockEvokeForm = {
492
+ id: 'UpdateGenericEvokeForm',
493
+ name: 'Update a Generic Evoke Form',
494
+ entries: [
495
+ {
496
+ type: 'input',
497
+ parameterId: 'name',
498
+ display: {
499
+ label: 'Name',
500
+ prefix: 'Dr',
501
+ suffix: 'Jr',
502
+ required: true,
503
+ charCount: true,
504
+ },
505
+ },
506
+ {
507
+ type: 'input',
508
+ parameterId: 'criteria',
509
+ display: {
510
+ label: 'Criteria',
511
+ },
512
+ },
513
+ {
514
+ type: 'input',
515
+ parameterId: 'multiSelect',
516
+ display: {
517
+ label: 'Multi-Select',
518
+ },
519
+ enumWithLabels: [
520
+ {
521
+ label: '1',
522
+ value: '1',
523
+ },
524
+ {
525
+ label: '2',
526
+ value: '2',
527
+ },
528
+ {
529
+ label: '3',
530
+ value: '3',
531
+ },
532
+ ],
533
+ },
534
+ {
535
+ type: 'input',
536
+ parameterId: 'address.city',
537
+ display: {
538
+ label: 'Address City',
539
+ description: 'address city description',
540
+ },
541
+ },
542
+ {
543
+ type: 'input',
544
+ parameterId: 'relatedObject',
545
+ display: {
546
+ label: 'Related Object',
547
+ mode: 'default',
548
+ description: 'related Object description',
549
+ relatedObjectDisplay: 'dropdown',
550
+ },
551
+ },
552
+ {
553
+ type: 'input',
554
+ parameterId: 'collection',
555
+ display: {
556
+ label: 'Collection',
557
+ },
558
+ },
559
+ {
560
+ type: 'input',
561
+ parameterId: 'manyToMany',
562
+ display: {
563
+ label: 'Many to Many',
564
+ },
565
+ },
566
+ ],
567
+ objectId: 'genericEvokeForm',
568
+ actionId: '_update',
569
+ };
570
+ export const mockCustomerUpdateForm = {
571
+ id: 'customerUpdateForm',
572
+ name: 'Customer Update Form',
573
+ entries: [
574
+ {
575
+ type: 'input',
576
+ parameterId: 'name',
577
+ display: {
578
+ label: 'Name',
579
+ required: true,
580
+ },
581
+ },
582
+ {
583
+ type: 'input',
584
+ parameterId: 'document',
585
+ display: {
586
+ label: 'Document',
587
+ },
588
+ },
589
+ {
590
+ type: 'input',
591
+ parameterId: 'genericEvokeForm',
592
+ display: {
593
+ label: 'Generic Evoke Form',
594
+ relatedObjectDisplay: 'dialogBox',
595
+ },
596
+ },
597
+ {
598
+ type: 'input',
599
+ parameterId: 'livingPlace.city',
600
+ display: {
601
+ label: 'Living Place City',
602
+ },
603
+ },
604
+ {
605
+ type: 'input',
606
+ parameterId: 'livingPlace.county',
607
+ display: {
608
+ label: 'Living Place County',
609
+ },
610
+ },
611
+ {
612
+ type: 'input',
613
+ parameterId: 'livingPlace.line1',
614
+ display: {
615
+ label: 'Living Place Line 1',
616
+ },
617
+ },
618
+ {
619
+ type: 'input',
620
+ parameterId: 'livingPlace.line2',
621
+ display: {
622
+ label: 'Living Place Line 2',
623
+ },
624
+ },
625
+ {
626
+ type: 'input',
627
+ parameterId: 'livingPlace.state',
628
+ display: {
629
+ label: 'Living Place State',
630
+ },
631
+ },
632
+ {
633
+ type: 'input',
634
+ parameterId: 'livingPlace.zipCode',
635
+ display: {
636
+ label: 'Living Place Zip Code',
637
+ },
638
+ },
639
+ ],
640
+ objectId: 'customers',
641
+ actionId: '_update',
642
+ display: {},
643
+ };
644
+ export const mockCustomerCreateForm = {
645
+ id: 'customerCreateForm',
646
+ name: 'Create Customers',
647
+ entries: [
648
+ {
649
+ type: 'input',
650
+ parameterId: 'name',
651
+ display: {
652
+ label: 'Name',
653
+ required: true,
654
+ },
655
+ },
656
+ {
657
+ type: 'input',
658
+ parameterId: 'genericEvokeForm',
659
+ display: {
660
+ label: 'Generic Evoke Form',
661
+ relatedObjectDisplay: 'dialogBox',
662
+ },
663
+ },
664
+ {
665
+ type: 'input',
666
+ parameterId: 'livingPlace.state',
667
+ display: {
668
+ label: 'Living Place State',
669
+ },
670
+ },
671
+ {
672
+ type: 'input',
673
+ parameterId: 'livingPlace.county',
674
+ display: {
675
+ label: 'Living Place County',
676
+ },
677
+ },
678
+ ],
679
+ objectId: 'customers',
680
+ actionId: '_create',
681
+ display: {},
682
+ };
683
+ export const mockMovieCreateForm = {
684
+ id: 'movieCreateForm',
685
+ name: 'Movie Create Form',
686
+ entries: [
687
+ {
688
+ type: 'input',
689
+ parameterId: 'name',
690
+ display: {
691
+ label: 'Name',
692
+ required: true,
693
+ },
694
+ },
695
+ {
696
+ type: 'input',
697
+ parameterId: 'image',
698
+ display: {
699
+ label: 'Image',
700
+ },
701
+ },
702
+ {
703
+ type: 'input',
704
+ parameterId: 'address.line1',
705
+ display: {
706
+ label: 'Address Line 1',
707
+ },
708
+ },
709
+ {
710
+ type: 'input',
711
+ parameterId: 'runTime',
712
+ display: {
713
+ label: 'Run Time',
714
+ },
715
+ },
716
+ ],
717
+ objectId: 'movies',
718
+ actionId: '_create',
719
+ display: {},
720
+ };
721
+ export const mockDocEvokeForm = {
722
+ id: 'documentForm',
723
+ name: 'Document Form',
724
+ entries: [
725
+ {
726
+ type: 'readonlyField',
727
+ propertyId: 'id',
728
+ display: {
729
+ label: 'Id',
730
+ readOnly: true,
731
+ },
732
+ },
733
+ {
734
+ type: 'readonlyField',
735
+ propertyId: 'name',
736
+ display: {
737
+ label: 'Name',
738
+ required: true,
739
+ readOnly: true,
740
+ },
741
+ },
742
+ {
743
+ type: 'readonlyField',
744
+ propertyId: 'contentType',
745
+ display: {
746
+ label: 'Content Type',
747
+ readOnly: true,
748
+ },
749
+ },
750
+ {
751
+ type: 'readonlyField',
752
+ propertyId: 'size',
753
+ display: {
754
+ label: 'Size',
755
+ readOnly: true,
756
+ },
757
+ },
758
+ {
759
+ type: 'readonlyField',
760
+ propertyId: 'uploadedDate',
761
+ display: {
762
+ label: 'Uploaded Date',
763
+ readOnly: true,
764
+ },
765
+ },
766
+ {
767
+ type: 'input',
768
+ parameterId: 'type',
769
+ display: {
770
+ label: 'Type',
771
+ },
772
+ },
773
+ {
774
+ type: 'input',
775
+ parameterId: 'view_permission',
776
+ display: {
777
+ label: 'View Permission',
778
+ choicesDisplay: {
779
+ type: 'dropdown',
780
+ sortBy: 'ASC',
781
+ },
782
+ },
783
+ enumWithLabels: [
784
+ {
785
+ label: 'Public',
786
+ value: 'Public',
787
+ },
788
+ {
789
+ label: 'Private',
790
+ value: 'Private',
791
+ },
792
+ {
793
+ label: 'Portal',
794
+ value: 'Portal',
795
+ },
796
+ ],
797
+ },
798
+ {
799
+ type: 'readonlyField',
800
+ propertyId: 'versionId',
801
+ display: {
802
+ label: 'Version Id',
803
+ readOnly: true,
804
+ },
805
+ },
806
+ ],
807
+ objectId: 'genericEvokeForm',
808
+ };
809
+ // Additional data for criteria field and instance fetches
810
+ export const mockPropertiesForCriteria = [
811
+ {
812
+ id: 'name',
813
+ name: 'Name',
814
+ type: 'string',
815
+ required: true,
816
+ searchable: true,
817
+ },
818
+ {
819
+ id: 'multiSelect',
820
+ name: 'Multi-Select',
821
+ type: 'array',
822
+ enum: ['1', '2', '3'],
823
+ },
824
+ {
825
+ id: 'address',
826
+ name: 'Address',
827
+ type: 'address',
828
+ },
829
+ {
830
+ id: 'relatedObject',
831
+ name: 'Related Object',
832
+ type: 'object',
833
+ objectId: 'movies',
834
+ },
835
+ {
836
+ id: 'collection',
837
+ name: 'Collection',
838
+ type: 'collection',
839
+ objectId: 'customers',
840
+ relatedPropertyId: 'genericEvokeForm',
841
+ },
842
+ ];
843
+ export const mockInstancesForRelatedObject = [
844
+ {
845
+ id: 'hkQWsQu5ap30k7SbAnc82',
846
+ objectId: 'movies',
847
+ name: 'A New Hope',
848
+ runTime: '2:01',
849
+ description: "A young farm boy joins forces with rebels to destroy the Empire's planet-destroying weapon.",
850
+ },
851
+ {
852
+ id: 'mbSzyE9gpmRx9uMBEmnbh',
853
+ objectId: 'movies',
854
+ name: 'A Phantom Menace',
855
+ runTime: '2:16',
856
+ description: 'Jedi discover a young slave with extraordinary potential while defending a peaceful planet.',
857
+ },
858
+ {
859
+ id: 'xM6hOYJklTcmCgJL9FlOj',
860
+ objectId: 'movies',
861
+ name: 'Attack of the Clones',
862
+ runTime: '2:22',
863
+ description: 'Jedi investigate assassination attempts and uncover a secret clone army.',
864
+ },
865
+ {
866
+ id: 'SjGtDq5raoZKcqWK7gDuW',
867
+ objectId: 'movies',
868
+ name: 'Revenge of the Sith',
869
+ runTime: '2:20',
870
+ description: 'Jedi fight to save the Republic.',
871
+ },
872
+ ];
873
+ export const mockInstancesForCollection = [
874
+ {
875
+ version: 2,
876
+ id: 'collectionInstance',
877
+ objectId: 'customers',
878
+ genericEvokeForm: {
879
+ id: 'gEV7frl7i1aUEEfkp5dAT',
880
+ name: 'Ren Foreman',
881
+ },
882
+ name: 'Collection Instance 1',
883
+ decimal: 67,
884
+ livingPlace: {
885
+ city: 'Baltimore',
886
+ line1: '123 Main St',
887
+ line2: 'Apt 4B',
888
+ state: 'MD',
889
+ zipCode: '21201',
890
+ county: 'Baltimore',
891
+ },
892
+ },
893
+ ];
894
+ export const mockPeopleGenericObjectInstances = [
895
+ {
896
+ id: 'cgf1',
897
+ name: 'John Doe',
898
+ people: { id: 'person3', name: 'John Doe' },
899
+ genericEvokeForm: {
900
+ id: 'gEV7frl7i1aUEEfkp5dAT',
901
+ name: 'Form Guy',
902
+ },
903
+ objectId: 'peopleGenericObject',
904
+ },
905
+ {
906
+ id: 'cgf2',
907
+ name: 'Jane Doe',
908
+ people: { id: 'person1', name: 'Jane Doe' },
909
+ genericEvokeForm: {
910
+ id: 'gEV7frl7i1aUEEfkp5dAT',
911
+ name: 'Form Guy',
912
+ },
913
+ objectId: 'peopleGenericObject',
914
+ },
915
+ {
916
+ id: 'cgf3',
917
+ name: 'Jane Smith',
918
+ people: { id: 'person2', name: 'Jane Smith' },
919
+ genericEvokeForm: {
920
+ id: 'gEV7frl7i1aUEEfkp5dAT',
921
+ name: 'Form Guy',
922
+ },
923
+ objectId: 'peopleGenericObject',
924
+ },
925
+ ];