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,27 +1,14 @@
1
1
  const libPictSectionForm = require('../../source/Pict-Section-Form.js');
2
2
 
3
- class FruityGrid extends libPictSectionForm.PictFormApplication
4
- {
5
- constructor(pFable, pOptions, pServiceHash)
6
- {
7
- super(pFable, pOptions, pServiceHash);
8
- }
9
-
10
- onBeforeInitialize()
11
- {
12
- this.log.trace(`Loading the fruitiest data ever!`);
13
- this.AppData.FruitData = require('./FruitData.json');
14
- this.log.trace(`... LOADED THE FRUIT!`);
15
- return super.onBeforeInitialize();
16
- }
17
- }
18
-
19
- module.exports = FruityGrid;
3
+ module.exports = libPictSectionForm.PictFormApplication;
20
4
 
21
5
  module.exports.default_configuration = libPictSectionForm.PictFormApplication.default_configuration;
22
6
  module.exports.default_configuration.pict_configuration = (
23
7
  {
24
8
  "Product": "SimpleTable",
9
+
10
+ "DefaultAppData": require('./FruitData.json'),
11
+
25
12
  "DefaultFormManifest":
26
13
  {
27
14
  "Scope": "SuperSimpleTabularForm",
@@ -36,6 +23,7 @@ module.exports.default_configuration.pict_configuration = (
36
23
  "Name": "FruitGrid",
37
24
 
38
25
  "Layout": "Tabular",
26
+
39
27
  "RecordSetAddress": "FruitData.FruityVice",
40
28
  "RecordManifest": "FruitEditor"
41
29
  }
@@ -45,7 +33,7 @@ module.exports.default_configuration.pict_configuration = (
45
33
 
46
34
  "Descriptors":
47
35
  {
48
- "FruityVice":
36
+ "FruitData.FruityVice":
49
37
  {
50
38
  "Name": "Fruits of the Earth",
51
39
  "Hash": "FruitGrid",