pict-section-form 1.0.10 → 1.0.13

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 (37) hide show
  1. package/.vscode/settings.json +3 -0
  2. package/example_applications/Build-Examples.sh +41 -0
  3. package/example_applications/Clean-Examples.sh +10 -0
  4. package/example_applications/Open-Examples.sh +8 -0
  5. package/example_applications/README.md +57 -0
  6. package/example_applications/complex_table/Complex-Tabular-Application.js +219 -0
  7. package/example_applications/complex_table/FruitData.json +695 -0
  8. package/example_applications/complex_table/README-ComplexTable.md +31 -0
  9. package/example_applications/complex_table/html/index.html +13 -0
  10. package/example_applications/complex_table/package.json +26 -0
  11. package/example_applications/gradebook/source/Gradebook-Application.js +2 -1
  12. package/example_applications/gradebook/source/manifests/Assignment-Manifest.json +36 -1
  13. package/example_applications/gradebook/source/manifests/Gradebook-Manifest.js +20 -3
  14. package/example_applications/gradebook/source/manifests/Student-Manifest.json +34 -23
  15. package/example_applications/gradebook/source/views/BasicContent-View-Templates.json +42 -0
  16. package/example_applications/postcard_example/Pict-Application-Postcard.js +15 -0
  17. package/example_applications/postcard_example/providers/PictProvider-BestPostcardTheme.js +19 -46
  18. package/example_applications/postcard_example/providers/PictProvider-Dynamic-Sections-MockServerResponse.json +8 -4
  19. package/example_applications/simple_form/html/index.html +1 -1
  20. package/example_applications/simple_table/FruitData.json +693 -692
  21. package/example_applications/simple_table/Simple-Tabular-Application.js +6 -18
  22. package/example_applications/simple_table_from_object/FruitDataInAnObject.json +692 -2
  23. package/example_applications/simple_table_from_object/MigrateThatFruit.js +2 -2
  24. package/example_applications/simple_table_from_object/Simple-Tabular-Application-FromObject.js +5 -18
  25. package/package.json +3 -2
  26. package/source/Pict-Section-Form.js +6 -10
  27. package/source/{Pict-Section-Form-Application.js → application/Pict-Application-Form.js} +1 -1
  28. package/source/providers/Pict-Provider-DynamicSolver.js +264 -0
  29. package/source/{Pict-Section-Form-Provider-Templates-DefaultFormTemplates.js → providers/Pict-Provider-DynamicTemplates-DefaultFormTemplates.js} +88 -77
  30. package/source/{Pict-Section-Form-Provider-Templates.js → providers/Pict-Provider-DynamicTemplates.js} +4 -1
  31. package/source/{Pict-Service-Informary.js → providers/Pict-Provider-Informary.js} +13 -4
  32. package/source/templates/Pict-Template-Base.js +87 -0
  33. package/source/{Pict-Template-MetacontrollerValueSetWithGroup.js → templates/Pict-Template-Metacontroller-ValueSetWithGroup.js} +1 -1
  34. package/source/{Pict-Section-Form-View-DefaultConfiguration.json → views/Pict-View-DynamicForm-DefaultConfiguration.json} +1 -0
  35. package/source/{Pict-Section-Form-View.js → views/Pict-View-DynamicForm.js} +149 -38
  36. package/source/{Pict-Form-Metacontroller.js → views/Pict-View-Form-Metacontroller.js} +45 -15
  37. /package/source/{Pict-Section-Form-MetatemplateGenerator.js → providers/Pict-Provider-MetatemplateGenerator.js} +0 -0
@@ -1,6 +1,696 @@
1
1
  {
2
- "DataURL": "https://www.fruityvice.com/",
3
- "DataLicense": "Public Domain",
2
+ "FruitData": {
3
+ "DataURL": "https://www.fruityvice.com/",
4
+ "DataLicense": "Public Domain",
5
+ "FruityVice": [
6
+ {
7
+ "name": "Persimmon",
8
+ "id": 52,
9
+ "family": "Ebenaceae",
10
+ "order": "Rosales",
11
+ "genus": "Diospyros",
12
+ "nutritions": {
13
+ "calories": 81,
14
+ "fat": 0,
15
+ "sugar": 18,
16
+ "carbohydrates": 18,
17
+ "protein": 0
18
+ }
19
+ },
20
+ {
21
+ "name": "Strawberry",
22
+ "id": 3,
23
+ "family": "Rosaceae",
24
+ "order": "Rosales",
25
+ "genus": "Fragaria",
26
+ "nutritions": {
27
+ "calories": 29,
28
+ "fat": 0.4,
29
+ "sugar": 5.4,
30
+ "carbohydrates": 5.5,
31
+ "protein": 0.8
32
+ }
33
+ },
34
+ {
35
+ "name": "Banana",
36
+ "id": 1,
37
+ "family": "Musaceae",
38
+ "order": "Zingiberales",
39
+ "genus": "Musa",
40
+ "nutritions": {
41
+ "calories": 96,
42
+ "fat": 0.2,
43
+ "sugar": 17.2,
44
+ "carbohydrates": 22,
45
+ "protein": 1
46
+ }
47
+ },
48
+ {
49
+ "name": "Tomato",
50
+ "id": 5,
51
+ "family": "Solanaceae",
52
+ "order": "Solanales",
53
+ "genus": "Solanum",
54
+ "nutritions": {
55
+ "calories": 74,
56
+ "fat": 0.2,
57
+ "sugar": 2.6,
58
+ "carbohydrates": 3.9,
59
+ "protein": 0.9
60
+ }
61
+ },
62
+ {
63
+ "name": "Pear",
64
+ "id": 4,
65
+ "family": "Rosaceae",
66
+ "order": "Rosales",
67
+ "genus": "Pyrus",
68
+ "nutritions": {
69
+ "calories": 57,
70
+ "fat": 0.1,
71
+ "sugar": 10,
72
+ "carbohydrates": 15,
73
+ "protein": 0.4
74
+ }
75
+ },
76
+ {
77
+ "name": "Durian",
78
+ "id": 60,
79
+ "family": "Malvaceae",
80
+ "order": "Malvales",
81
+ "genus": "Durio",
82
+ "nutritions": {
83
+ "calories": 147,
84
+ "fat": 5.3,
85
+ "sugar": 6.75,
86
+ "carbohydrates": 27.1,
87
+ "protein": 1.5
88
+ }
89
+ },
90
+ {
91
+ "name": "Blackberry",
92
+ "id": 64,
93
+ "family": "Rosaceae",
94
+ "order": "Rosales",
95
+ "genus": "Rubus",
96
+ "nutritions": {
97
+ "calories": 40,
98
+ "fat": 0.4,
99
+ "sugar": 4.5,
100
+ "carbohydrates": 9,
101
+ "protein": 1.3
102
+ }
103
+ },
104
+ {
105
+ "name": "Lingonberry",
106
+ "id": 65,
107
+ "family": "Ericaceae",
108
+ "order": "Ericales",
109
+ "genus": "Vaccinium",
110
+ "nutritions": {
111
+ "calories": 50,
112
+ "fat": 0.34,
113
+ "sugar": 5.74,
114
+ "carbohydrates": 11.3,
115
+ "protein": 0.75
116
+ }
117
+ },
118
+ {
119
+ "name": "Kiwi",
120
+ "id": 66,
121
+ "family": "Actinidiaceae",
122
+ "order": "Struthioniformes",
123
+ "genus": "Apteryx",
124
+ "nutritions": {
125
+ "calories": 61,
126
+ "fat": 0.5,
127
+ "sugar": 9,
128
+ "carbohydrates": 15,
129
+ "protein": 1.1
130
+ }
131
+ },
132
+ {
133
+ "name": "Lychee",
134
+ "id": 67,
135
+ "family": "Sapindaceae",
136
+ "order": "Sapindales",
137
+ "genus": "Litchi",
138
+ "nutritions": {
139
+ "calories": 66,
140
+ "fat": 0.44,
141
+ "sugar": 15,
142
+ "carbohydrates": 17,
143
+ "protein": 0.8
144
+ }
145
+ },
146
+ {
147
+ "name": "Pineapple",
148
+ "id": 10,
149
+ "family": "Bromeliaceae",
150
+ "order": "Poales",
151
+ "genus": "Ananas",
152
+ "nutritions": {
153
+ "calories": 50,
154
+ "fat": 0.12,
155
+ "sugar": 9.85,
156
+ "carbohydrates": 13.12,
157
+ "protein": 0.54
158
+ }
159
+ },
160
+ {
161
+ "name": "Fig",
162
+ "id": 68,
163
+ "family": "Moraceae",
164
+ "order": "Rosales",
165
+ "genus": "Ficus",
166
+ "nutritions": {
167
+ "calories": 74,
168
+ "fat": 0.3,
169
+ "sugar": 16,
170
+ "carbohydrates": 19,
171
+ "protein": 0.8
172
+ }
173
+ },
174
+ {
175
+ "name": "Gooseberry",
176
+ "id": 69,
177
+ "family": "Grossulariaceae",
178
+ "order": "Saxifragales",
179
+ "genus": "Ribes",
180
+ "nutritions": {
181
+ "calories": 44,
182
+ "fat": 0.6,
183
+ "sugar": 0,
184
+ "carbohydrates": 10,
185
+ "protein": 0.9
186
+ }
187
+ },
188
+ {
189
+ "name": "Passionfruit",
190
+ "id": 70,
191
+ "family": "Passifloraceae",
192
+ "order": "Malpighiales",
193
+ "genus": "Passiflora",
194
+ "nutritions": {
195
+ "calories": 97,
196
+ "fat": 0.7,
197
+ "sugar": 11.2,
198
+ "carbohydrates": 22.4,
199
+ "protein": 2.2
200
+ }
201
+ },
202
+ {
203
+ "name": "Plum",
204
+ "id": 71,
205
+ "family": "Rosaceae",
206
+ "order": "Rosales",
207
+ "genus": "Prunus",
208
+ "nutritions": {
209
+ "calories": 46,
210
+ "fat": 0.28,
211
+ "sugar": 9.92,
212
+ "carbohydrates": 11.4,
213
+ "protein": 0.7
214
+ }
215
+ },
216
+ {
217
+ "name": "Orange",
218
+ "id": 2,
219
+ "family": "Rutaceae",
220
+ "order": "Sapindales",
221
+ "genus": "Citrus",
222
+ "nutritions": {
223
+ "calories": 43,
224
+ "fat": 0.2,
225
+ "sugar": 8.2,
226
+ "carbohydrates": 8.3,
227
+ "protein": 1
228
+ }
229
+ },
230
+ {
231
+ "name": "GreenApple",
232
+ "id": 72,
233
+ "family": "Rosaceae",
234
+ "order": "Rosales",
235
+ "genus": "Malus",
236
+ "nutritions": {
237
+ "calories": 21,
238
+ "fat": 0.1,
239
+ "sugar": 6.4,
240
+ "carbohydrates": 3.1,
241
+ "protein": 0.4
242
+ }
243
+ },
244
+ {
245
+ "name": "Raspberry",
246
+ "id": 23,
247
+ "family": "Rosaceae",
248
+ "order": "Rosales",
249
+ "genus": "Rubus",
250
+ "nutritions": {
251
+ "calories": 53,
252
+ "fat": 0.7,
253
+ "sugar": 4.4,
254
+ "carbohydrates": 12,
255
+ "protein": 1.2
256
+ }
257
+ },
258
+ {
259
+ "name": "Watermelon",
260
+ "id": 25,
261
+ "family": "Cucurbitaceae",
262
+ "order": "Cucurbitales",
263
+ "genus": "Citrullus",
264
+ "nutritions": {
265
+ "calories": 30,
266
+ "fat": 0.2,
267
+ "sugar": 6,
268
+ "carbohydrates": 8,
269
+ "protein": 0.6
270
+ }
271
+ },
272
+ {
273
+ "name": "Lemon",
274
+ "id": 26,
275
+ "family": "Rutaceae",
276
+ "order": "Sapindales",
277
+ "genus": "Citrus",
278
+ "nutritions": {
279
+ "calories": 29,
280
+ "fat": 0.3,
281
+ "sugar": 2.5,
282
+ "carbohydrates": 9,
283
+ "protein": 1.1
284
+ }
285
+ },
286
+ {
287
+ "name": "Mango",
288
+ "id": 27,
289
+ "family": "Anacardiaceae",
290
+ "order": "Sapindales",
291
+ "genus": "Mangifera",
292
+ "nutritions": {
293
+ "calories": 60,
294
+ "fat": 0.38,
295
+ "sugar": 13.7,
296
+ "carbohydrates": 15,
297
+ "protein": 0.82
298
+ }
299
+ },
300
+ {
301
+ "name": "Blueberry",
302
+ "id": 33,
303
+ "family": "Rosaceae",
304
+ "order": "Rosales",
305
+ "genus": "Fragaria",
306
+ "nutritions": {
307
+ "calories": 29,
308
+ "fat": 0.4,
309
+ "sugar": 5.4,
310
+ "carbohydrates": 5.5,
311
+ "protein": 0
312
+ }
313
+ },
314
+ {
315
+ "name": "Apple",
316
+ "id": 6,
317
+ "family": "Rosaceae",
318
+ "order": "Rosales",
319
+ "genus": "Malus",
320
+ "nutritions": {
321
+ "calories": 52,
322
+ "fat": 0.4,
323
+ "sugar": 10.3,
324
+ "carbohydrates": 11.4,
325
+ "protein": 0.3
326
+ }
327
+ },
328
+ {
329
+ "name": "Guava",
330
+ "id": 37,
331
+ "family": "Myrtaceae",
332
+ "order": "Myrtales",
333
+ "genus": "Psidium",
334
+ "nutritions": {
335
+ "calories": 68,
336
+ "fat": 1,
337
+ "sugar": 9,
338
+ "carbohydrates": 14,
339
+ "protein": 2.6
340
+ }
341
+ },
342
+ {
343
+ "name": "Apricot",
344
+ "id": 35,
345
+ "family": "Rosaceae",
346
+ "order": "Rosales",
347
+ "genus": "Prunus",
348
+ "nutritions": {
349
+ "calories": 15,
350
+ "fat": 0.1,
351
+ "sugar": 3.2,
352
+ "carbohydrates": 3.9,
353
+ "protein": 0.5
354
+ }
355
+ },
356
+ {
357
+ "name": "Melon",
358
+ "id": 41,
359
+ "family": "Cucurbitaceae",
360
+ "order": "Cucurbitaceae",
361
+ "genus": "Cucumis",
362
+ "nutritions": {
363
+ "calories": 34,
364
+ "fat": 0,
365
+ "sugar": 8,
366
+ "carbohydrates": 8,
367
+ "protein": 0
368
+ }
369
+ },
370
+ {
371
+ "name": "Tangerine",
372
+ "id": 77,
373
+ "family": "Rutaceae",
374
+ "order": "Sapindales",
375
+ "genus": "Citrus",
376
+ "nutritions": {
377
+ "calories": 45,
378
+ "fat": 0.4,
379
+ "sugar": 9.1,
380
+ "carbohydrates": 8.3,
381
+ "protein": 0
382
+ }
383
+ },
384
+ {
385
+ "name": "Pitahaya",
386
+ "id": 78,
387
+ "family": "Cactaceae",
388
+ "order": "Caryophyllales",
389
+ "genus": "Cactaceae",
390
+ "nutritions": {
391
+ "calories": 36,
392
+ "fat": 0.4,
393
+ "sugar": 3,
394
+ "carbohydrates": 7,
395
+ "protein": 1
396
+ }
397
+ },
398
+ {
399
+ "name": "Lime",
400
+ "id": 44,
401
+ "family": "Rutaceae",
402
+ "order": "Sapindales",
403
+ "genus": "Citrus",
404
+ "nutritions": {
405
+ "calories": 25,
406
+ "fat": 0.1,
407
+ "sugar": 1.7,
408
+ "carbohydrates": 8.4,
409
+ "protein": 0.3
410
+ }
411
+ },
412
+ {
413
+ "name": "Pomegranate",
414
+ "id": 79,
415
+ "family": "Lythraceae",
416
+ "order": "Myrtales",
417
+ "genus": "Punica",
418
+ "nutritions": {
419
+ "calories": 83,
420
+ "fat": 1.2,
421
+ "sugar": 13.7,
422
+ "carbohydrates": 18.7,
423
+ "protein": 1.7
424
+ }
425
+ },
426
+ {
427
+ "name": "Dragonfruit",
428
+ "id": 80,
429
+ "family": "Cactaceae",
430
+ "order": "Caryophyllales",
431
+ "genus": "Selenicereus",
432
+ "nutritions": {
433
+ "calories": 60,
434
+ "fat": 1.5,
435
+ "sugar": 8,
436
+ "carbohydrates": 9,
437
+ "protein": 9
438
+ }
439
+ },
440
+ {
441
+ "name": "Grape",
442
+ "id": 81,
443
+ "family": "Vitaceae",
444
+ "order": "Vitales",
445
+ "genus": "Vitis",
446
+ "nutritions": {
447
+ "calories": 69,
448
+ "fat": 0.16,
449
+ "sugar": 16,
450
+ "carbohydrates": 18.1,
451
+ "protein": 0.72
452
+ }
453
+ },
454
+ {
455
+ "name": "Morus",
456
+ "id": 82,
457
+ "family": "Moraceae",
458
+ "order": "Rosales",
459
+ "genus": "Morus",
460
+ "nutritions": {
461
+ "calories": 43,
462
+ "fat": 0.39,
463
+ "sugar": 8.1,
464
+ "carbohydrates": 9.8,
465
+ "protein": 1.44
466
+ }
467
+ },
468
+ {
469
+ "name": "Feijoa",
470
+ "id": 76,
471
+ "family": "Myrtaceae",
472
+ "order": "Myrtoideae",
473
+ "genus": "Sellowiana",
474
+ "nutritions": {
475
+ "calories": 44,
476
+ "fat": 0.4,
477
+ "sugar": 3,
478
+ "carbohydrates": 8,
479
+ "protein": 0.6
480
+ }
481
+ },
482
+ {
483
+ "name": "Avocado",
484
+ "id": 84,
485
+ "family": "Lauraceae",
486
+ "order": "Laurales",
487
+ "genus": "Persea",
488
+ "nutritions": {
489
+ "calories": 160,
490
+ "fat": 14.66,
491
+ "sugar": 0.66,
492
+ "carbohydrates": 8.53,
493
+ "protein": 2
494
+ }
495
+ },
496
+ {
497
+ "name": "Kiwifruit",
498
+ "id": 85,
499
+ "family": "Actinidiaceae",
500
+ "order": "Ericales",
501
+ "genus": "Actinidia",
502
+ "nutritions": {
503
+ "calories": 61,
504
+ "fat": 0.5,
505
+ "sugar": 8.9,
506
+ "carbohydrates": 14.6,
507
+ "protein": 1.14
508
+ }
509
+ },
510
+ {
511
+ "name": "Cranberry",
512
+ "id": 87,
513
+ "family": "Ericaceae",
514
+ "order": "Ericales",
515
+ "genus": "Vaccinium",
516
+ "nutritions": {
517
+ "calories": 46,
518
+ "fat": 0.1,
519
+ "sugar": 4,
520
+ "carbohydrates": 12.2,
521
+ "protein": 0.4
522
+ }
523
+ },
524
+ {
525
+ "name": "Cherry",
526
+ "id": 9,
527
+ "family": "Rosaceae",
528
+ "order": "Rosales",
529
+ "genus": "Prunus",
530
+ "nutritions": {
531
+ "calories": 50,
532
+ "fat": 0.3,
533
+ "sugar": 8,
534
+ "carbohydrates": 12,
535
+ "protein": 1
536
+ }
537
+ },
538
+ {
539
+ "name": "Peach",
540
+ "id": 86,
541
+ "family": "Rosaceae",
542
+ "order": "Rosales",
543
+ "genus": "Prunus",
544
+ "nutritions": {
545
+ "calories": 39,
546
+ "fat": 0.25,
547
+ "sugar": 8.4,
548
+ "carbohydrates": 9.5,
549
+ "protein": 0.9
550
+ }
551
+ },
552
+ {
553
+ "name": "Jackfruit",
554
+ "id": 94,
555
+ "family": "Moraceae",
556
+ "order": "Rosales",
557
+ "genus": "Artocarpus",
558
+ "nutritions": {
559
+ "calories": 95,
560
+ "fat": 0,
561
+ "sugar": 19.1,
562
+ "carbohydrates": 23.2,
563
+ "protein": 1.72
564
+ }
565
+ },
566
+ {
567
+ "name": "Horned Melon",
568
+ "id": 95,
569
+ "family": "Cucurbitaceae",
570
+ "order": "Cucurbitales",
571
+ "genus": "Cucumis",
572
+ "nutritions": {
573
+ "calories": 44,
574
+ "fat": 1.26,
575
+ "sugar": 0.5,
576
+ "carbohydrates": 7.56,
577
+ "protein": 1.78
578
+ }
579
+ },
580
+ {
581
+ "name": "Hazelnut",
582
+ "id": 96,
583
+ "family": "Betulaceae",
584
+ "order": "Fagales",
585
+ "genus": "Corylus",
586
+ "nutritions": {
587
+ "calories": 628,
588
+ "fat": 61,
589
+ "sugar": 4.3,
590
+ "carbohydrates": 17,
591
+ "protein": 15
592
+ }
593
+ },
594
+ {
595
+ "name": "Pomelo",
596
+ "id": 98,
597
+ "family": "Rutaceae",
598
+ "order": "Sapindales",
599
+ "genus": "Citrus",
600
+ "nutritions": {
601
+ "calories": 37,
602
+ "fat": 0,
603
+ "sugar": 8.5,
604
+ "carbohydrates": 9.67,
605
+ "protein": 0.82
606
+ }
607
+ },
608
+ {
609
+ "name": "Mangosteen",
610
+ "id": 99,
611
+ "family": "Clusiaceae",
612
+ "order": "Malpighiales",
613
+ "genus": "Garcinia",
614
+ "nutritions": {
615
+ "calories": 73,
616
+ "fat": 0.58,
617
+ "sugar": 16.11,
618
+ "carbohydrates": 17.91,
619
+ "protein": 0.41
620
+ }
621
+ },
622
+ {
623
+ "name": "Pumpkin",
624
+ "id": 100,
625
+ "family": "Cucurbitaceae",
626
+ "order": "Cucurbitales",
627
+ "genus": "Cucurbita",
628
+ "nutritions": {
629
+ "calories": 25,
630
+ "fat": 0.3,
631
+ "sugar": 3.3,
632
+ "carbohydrates": 4.6,
633
+ "protein": 1.1
634
+ }
635
+ },
636
+ {
637
+ "name": "Japanese Persimmon",
638
+ "id": 101,
639
+ "family": " Ebenaceae",
640
+ "order": " Ericales",
641
+ "genus": "Diospyros",
642
+ "nutritions": {
643
+ "calories": 70,
644
+ "fat": 0.2,
645
+ "sugar": 13,
646
+ "carbohydrates": 19,
647
+ "protein": 0.6
648
+ }
649
+ },
650
+ {
651
+ "name": "Papaya",
652
+ "id": 42,
653
+ "family": "Caricaceae",
654
+ "order": "Brassicales",
655
+ "genus": "Carica",
656
+ "nutritions": {
657
+ "calories": 39,
658
+ "fat": 0.3,
659
+ "sugar": 4.4,
660
+ "carbohydrates": 5.8,
661
+ "protein": 0.5
662
+ }
663
+ },
664
+ {
665
+ "name": "Annona",
666
+ "id": 103,
667
+ "family": "Annonaceae",
668
+ "order": "Rosales",
669
+ "genus": "Annonas",
670
+ "nutritions": {
671
+ "calories": 92,
672
+ "fat": 0.29,
673
+ "sugar": 3.4,
674
+ "carbohydrates": 19.1,
675
+ "protein": 1.5
676
+ }
677
+ },
678
+ {
679
+ "name": "Ceylon Gooseberry",
680
+ "id": 104,
681
+ "family": "Salicaceae",
682
+ "order": "Malpighiales",
683
+ "genus": "Dovyalis",
684
+ "nutritions": {
685
+ "calories": 47,
686
+ "fat": 0.3,
687
+ "sugar": 8.1,
688
+ "carbohydrates": 9.6,
689
+ "protein": 1.2
690
+ }
691
+ }
692
+ ]
693
+ },
4
694
  "FruityViceObject": {
5
695
  "PersimmonEbenaceaeRosalesDiospyros": {
6
696
  "name": "Persimmon",