pict-section-form 1.0.103 → 1.0.104

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pict-section-form",
3
- "version": "1.0.103",
3
+ "version": "1.0.104",
4
4
  "description": "Pict dynamic form sections",
5
5
  "main": "source/Pict-Section-Form.js",
6
6
  "directories": {
@@ -31,7 +31,7 @@
31
31
  "browser-env": "^3.3.0",
32
32
  "eslint": "^9.26.0",
33
33
  "jquery": "^3.7.1",
34
- "pict": "^1.0.277",
34
+ "pict": "^1.0.278",
35
35
  "pict-application": "^1.0.27",
36
36
  "pict-service-commandlineutility": "^1.0.15",
37
37
  "quackage": "^1.0.42",
@@ -176,7 +176,7 @@ class PictMetalist extends libPictProvider
176
176
  }
177
177
 
178
178
  // Now try to fetch the list data
179
- let tmpListData = this.pict.views.PictFormMetacontroller.getValueByHash(pListObject.ListSourceAddress);
179
+ let tmpListData = this.pict.providers.DataBroker.getValueByHash(pListObject.ListSourceAddress);
180
180
  if (!tmpListData)
181
181
  {
182
182
  //this.log.warn(`Dynamic MetaList Provider [${this.UUID}]::[${this.Hash}] failed to fetch the list data for PickList [${pListObject.Hash}]. Skipping.`);
@@ -28,8 +28,6 @@ class PictFormMetacontroller extends libPictViewClass
28
28
  // Load the dynamic application dependencies if they don't exist
29
29
  this.fable.addAndInstantiateSingletonService('PictDynamicApplication', libPictDynamicApplication.default_configuration, libPictDynamicApplication);
30
30
 
31
- this.viewMarshalDestination = 'AppData';
32
-
33
31
  this.lastRenderedViews = [];
34
32
 
35
33
  this.formTemplatePrefix = this.pict.providers.MetatemplateGenerator.baseTemplatePrefix;
@@ -37,6 +35,16 @@ class PictFormMetacontroller extends libPictViewClass
37
35
  this.manifest = this.pict.manifest;
38
36
  }
39
37
 
38
+ get viewMarshalDestination()
39
+ {
40
+ return this.pict.providers.DataBroker.marshalDestination;
41
+ }
42
+
43
+ set viewMarshalDestination(pValue)
44
+ {
45
+ this.pict.providers.DataBroker.marshalDestination = pValue;
46
+ }
47
+
40
48
  /**
41
49
  * Marshals data from the view to the model, usually AppData (or configured data store).
42
50
  *
@@ -73,25 +81,6 @@ class PictFormMetacontroller extends libPictViewClass
73
81
  return super.onMarshalToView();
74
82
  }
75
83
 
76
- /**
77
- * Retrieves the marshal destination object. This is where the model data is stored.
78
- *
79
- * @returns {Object} The marshal destination object.
80
- */
81
- getMarshalDestinationObject()
82
- {
83
- return this.manifest.getValueByHash(this, this.viewMarshalDestination);
84
- }
85
-
86
- /**
87
- * Gets a value by hash address.
88
- * @param {string} pHashAddress
89
- */
90
- getValueByHash(pHashAddress)
91
- {
92
- return this.manifest.getValueByHash(this.getMarshalDestinationObject(), pHashAddress);
93
- }
94
-
95
84
  gatherInitialBundle(fCallback)
96
85
  {
97
86
  if (this.manifestDescription && this.manifestDescription.InitialBundle)
@@ -517,7 +506,7 @@ class PictFormMetacontroller extends libPictViewClass
517
506
  if (this.options.AutoPopulateDefaultObject)
518
507
  {
519
508
  // Fill out the defaults at the marshal location if it doesn't exist
520
- let tmpMarshalDestinationObject = tmpManifest.getValueAtAddress(this, this.viewMarshalDestination);
509
+ const tmpMarshalDestinationObject = this.pict.providers.DataBroker.marshalDestinationObject;
521
510
  if (typeof(tmpMarshalDestinationObject) === 'object')
522
511
  {
523
512
  tmpManifest.populateDefaults(tmpMarshalDestinationObject);
@@ -605,8 +594,6 @@ class PictFormMetacontroller extends libPictViewClass
605
594
  }
606
595
  }
607
596
 
608
- this.manifest = tmpManifest;
609
-
610
597
  // Now see if there is custom CSS
611
598
  for (let i = 0; i < tmpSectionList.length; i++)
612
599
  {
@@ -11,10 +11,11 @@ export = PictFormMetacontroller;
11
11
  */
12
12
  declare class PictFormMetacontroller extends libPictViewClass {
13
13
  constructor(pFable: any, pOptions: any, pServiceHash: any);
14
- viewMarshalDestination: string;
15
14
  lastRenderedViews: any[];
16
15
  formTemplatePrefix: any;
17
16
  manifest: any;
17
+ set viewMarshalDestination(pValue: any);
18
+ get viewMarshalDestination(): any;
18
19
  /**
19
20
  * Marshals data from the view to the model, usually AppData (or configured data store).
20
21
  *
@@ -27,17 +28,6 @@ declare class PictFormMetacontroller extends libPictViewClass {
27
28
  * @returns {any} The result of the super.onMarshalToView() method.
28
29
  */
29
30
  onMarshalToView(): any;
30
- /**
31
- * Retrieves the marshal destination object. This is where the model data is stored.
32
- *
33
- * @returns {Object} The marshal destination object.
34
- */
35
- getMarshalDestinationObject(): any;
36
- /**
37
- * Gets a value by hash address.
38
- * @param {string} pHashAddress
39
- */
40
- getValueByHash(pHashAddress: string): any;
41
31
  gatherInitialBundle(fCallback: any): any;
42
32
  /**
43
33
  * Executes after the initialization of the object.
@@ -1 +1 @@
1
- {"version":3,"file":"Pict-View-Form-Metacontroller.d.ts","sourceRoot":"","sources":["../../../source/views/Pict-View-Form-Metacontroller.js"],"names":[],"mappings":";AASA;;GAEG;AAEH;;;;;;GAMG;AACH;IAEC,2DAeC;IAPA,+BAAuC;IAEvC,yBAA2B;IAE3B,wBAAsF;IAEtF,cAAkC;IAGnC;;;;OAIG;IACH,qBAFa,GAAG,CAaf;IAED;;;;OAIG;IACH,mBAFa,GAAG,CAaf;IAED;;;;OAIG;IACH,mCAGC;IAED;;;OAGG;IACH,6BAFW,MAAM,OAKhB;IAED,yCAYC;IAED;;;;;OAKG;IACH,kCAHW,aAAa,GACX,IAAI,CAsBhB;IA2BD;;;;OAIG;IACH,WAFa,GAAG,CAMf;IAED,gDAGC;IAED,+CAGC;IAED;;;;;;;;OAQG;IACH,wDAHW,YAAY,SAmHtB;IAED;;;;;;;OAOG;IACH,4CAHW,MAAM,GACJ,IAAI,CAShB;IAED;;;;OAIG;IACH,6BAFa,IAAI,CAQhB;IAED;;;;;;;OAOG;IACH,+DAFW,YAAY,QAatB;IAED;;;;;OAKG;IACH,8EAFW,YAAY,QAmBtB;IAED;;;;;;OAMG;IACH,oEAHW,YAAY,GACV,IAAI,CAkDhB;IAED;;;;;OAKG;IACH,qCAHW,MAAM,GACJ,MAAM,GAAC,OAAO,CA2C1B;IAED;;;;;OAKG;IACH,qEA+HC;IA3GA,yBAAiD;IA6GlD;;;OAGG;IACH,gCAFW,MAAM,QAgBhB;IAED;;;;OAIG;IACH,4BAFa,OAAO,CAKnB;CACD;;;;;qCAGU,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;oBApoBjB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,KAAK,MAAM"}
1
+ {"version":3,"file":"Pict-View-Form-Metacontroller.d.ts","sourceRoot":"","sources":["../../../source/views/Pict-View-Form-Metacontroller.js"],"names":[],"mappings":";AASA;;GAEG;AAEH;;;;;;GAMG;AACH;IAEC,2DAaC;IALA,yBAA2B;IAE3B,wBAAsF;IAEtF,cAAkC;IAQnC,wCAGC;IARD,kCAGC;IAOD;;;;OAIG;IACH,qBAFa,GAAG,CAaf;IAED;;;;OAIG;IACH,mBAFa,GAAG,CAaf;IAED,yCAYC;IAED;;;;;OAKG;IACH,kCAHW,aAAa,GACX,IAAI,CAsBhB;IA2BD;;;;OAIG;IACH,WAFa,GAAG,CAMf;IAED,gDAGC;IAED,+CAGC;IAED;;;;;;;;OAQG;IACH,wDAHW,YAAY,SAmHtB;IAED;;;;;;;OAOG;IACH,4CAHW,MAAM,GACJ,IAAI,CAShB;IAED;;;;OAIG;IACH,6BAFa,IAAI,CAQhB;IAED;;;;;;;OAOG;IACH,+DAFW,YAAY,QAatB;IAED;;;;;OAKG;IACH,8EAFW,YAAY,QAmBtB;IAED;;;;;;OAMG;IACH,oEAHW,YAAY,GACV,IAAI,CAkDhB;IAED;;;;;OAKG;IACH,qCAHW,MAAM,GACJ,MAAM,GAAC,OAAO,CA2C1B;IAED;;;;;OAKG;IACH,qEA6HC;IAzGA,yBAAiD;IA2GlD;;;OAGG;IACH,gCAFW,MAAM,QAgBhB;IAED;;;;OAIG;IACH,4BAFa,OAAO,CAKnB;CACD;;;;;qCAGU,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;oBAvnBjB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,KAAK,MAAM"}