pict-section-form 1.0.106 → 1.0.108
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 +4 -4
- package/source/templates/Pict-Template-ControlFromDynamicManifest.js +5 -3
- package/source/templates/Pict-Template-ControlFromDynamicManifestForHash.js +6 -4
- package/source/templates/Pict-Template-DyanmicView-Value.js +7 -5
- package/source/templates/Pict-Template-DyanmicView-ValueByHash.js +7 -5
- package/source/templates/Pict-Template-Metacontroller-ValueSetWithGroup.js +8 -6
- package/source/templates/Pict-Template-Metatemplate-Input.js +8 -6
- package/source/templates/Pict-Template-Metatemplate-InputWithHashAddress.js +10 -8
- package/source/templates/Pict-Template-Metatemplate-InputWithView.js +8 -6
- package/source/templates/Pict-Template-Metatemplate-InputWithViewAndDescriptorAddress.js +10 -8
- package/source/templates/Pict-Template-Metatemplate-InputWithViewAndHashAddress.js +8 -6
- package/source/templates/Pict-Template-Proxy-PluckJoinUnique.js +2 -1
- package/source/views/Pict-View-DynamicForm.js +10 -22
- package/source/views/Pict-View-Form-Metacontroller.js +3 -6
- package/types/source/templates/Pict-Template-ControlFromDynamicManifest.d.ts +2 -1
- package/types/source/templates/Pict-Template-ControlFromDynamicManifest.d.ts.map +1 -1
- package/types/source/templates/Pict-Template-ControlFromDynamicManifestForHash.d.ts +2 -1
- package/types/source/templates/Pict-Template-ControlFromDynamicManifestForHash.d.ts.map +1 -1
- package/types/source/templates/Pict-Template-DyanmicView-Value.d.ts +2 -1
- package/types/source/templates/Pict-Template-DyanmicView-Value.d.ts.map +1 -1
- package/types/source/templates/Pict-Template-DyanmicView-ValueByHash.d.ts +2 -1
- package/types/source/templates/Pict-Template-DyanmicView-ValueByHash.d.ts.map +1 -1
- package/types/source/templates/Pict-Template-Metacontroller-ValueSetWithGroup.d.ts +2 -1
- package/types/source/templates/Pict-Template-Metacontroller-ValueSetWithGroup.d.ts.map +1 -1
- package/types/source/templates/Pict-Template-Metatemplate-Input.d.ts +2 -1
- package/types/source/templates/Pict-Template-Metatemplate-Input.d.ts.map +1 -1
- package/types/source/templates/Pict-Template-Metatemplate-InputWithHashAddress.d.ts +2 -1
- package/types/source/templates/Pict-Template-Metatemplate-InputWithHashAddress.d.ts.map +1 -1
- package/types/source/templates/Pict-Template-Metatemplate-InputWithView.d.ts +2 -1
- package/types/source/templates/Pict-Template-Metatemplate-InputWithView.d.ts.map +1 -1
- package/types/source/templates/Pict-Template-Metatemplate-InputWithViewAndDescriptorAddress.d.ts +2 -1
- package/types/source/templates/Pict-Template-Metatemplate-InputWithViewAndDescriptorAddress.d.ts.map +1 -1
- package/types/source/templates/Pict-Template-Metatemplate-InputWithViewAndHashAddress.d.ts +2 -1
- package/types/source/templates/Pict-Template-Metatemplate-InputWithViewAndHashAddress.d.ts.map +1 -1
- package/types/source/templates/Pict-Template-Proxy-PluckJoinUnique.d.ts.map +1 -1
- package/types/source/views/Pict-View-DynamicForm.d.ts +1 -17
- package/types/source/views/Pict-View-DynamicForm.d.ts.map +1 -1
- package/types/source/views/Pict-View-Form-Metacontroller.d.ts.map +1 -1
- package/source/services/Fable-Service-TransactionTracking.js +0 -97
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pict-section-form",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.108",
|
|
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.
|
|
34
|
+
"pict": "^1.0.293",
|
|
35
35
|
"pict-application": "^1.0.27",
|
|
36
36
|
"pict-service-commandlineutility": "^1.0.15",
|
|
37
37
|
"quackage": "^1.0.42",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"marked": "^15.0.11",
|
|
44
44
|
"pict-provider": "^1.0.6",
|
|
45
45
|
"pict-section-tuigrid": "^1.0.27",
|
|
46
|
-
"pict-template": "^1.0.
|
|
47
|
-
"pict-view": "^1.0.
|
|
46
|
+
"pict-template": "^1.0.13",
|
|
47
|
+
"pict-view": "^1.0.63"
|
|
48
48
|
},
|
|
49
49
|
"mocha": {
|
|
50
50
|
"diff": true,
|
|
@@ -67,9 +67,10 @@ class PictTemplateControlFromDynamicManifest extends libPictTemplate
|
|
|
67
67
|
* @param {object} pRecord - The record object.
|
|
68
68
|
* @param {array} pContextArray - The context array.
|
|
69
69
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
70
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
70
71
|
* @returns {string} - The rendered template.
|
|
71
72
|
*/
|
|
72
|
-
render(pTemplateHash, pRecord, pContextArray, pScope)
|
|
73
|
+
render(pTemplateHash, pRecord, pContextArray, pScope, pState)
|
|
73
74
|
{
|
|
74
75
|
return this.renderAsync(pTemplateHash, pRecord, null, pContextArray, pScope);
|
|
75
76
|
}
|
|
@@ -82,9 +83,10 @@ class PictTemplateControlFromDynamicManifest extends libPictTemplate
|
|
|
82
83
|
* @param {function | null} fCallback - The callback function.
|
|
83
84
|
* @param {array} pContextArray - The context array.
|
|
84
85
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
86
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
85
87
|
* @returns {string | undefined} - The rendered template or undefined if callback is provided.
|
|
86
88
|
*/
|
|
87
|
-
renderAsync(pTemplateHash, pRecord, fCallback, pContextArray, pScope)
|
|
89
|
+
renderAsync(pTemplateHash, pRecord, fCallback, pContextArray, pScope, pState)
|
|
88
90
|
{
|
|
89
91
|
const tmpMetatemplateGenerator = this.pict.providers.MetatemplateGenerator;
|
|
90
92
|
const tmpHash = pTemplateHash.trim();
|
|
@@ -113,7 +115,7 @@ class PictTemplateControlFromDynamicManifest extends libPictTemplate
|
|
|
113
115
|
`getInput("${descriptor.PictForm.GroupIndex}","${descriptor.PictForm.RowIndex}","${descriptor.PictForm.InputIndex}")`);
|
|
114
116
|
|
|
115
117
|
// Now parse it and return it.
|
|
116
|
-
return this.pict.parseTemplate(tmpTemplate, descriptor, fCallback, tmpContextArray, tmpScope);
|
|
118
|
+
return this.pict.parseTemplate(tmpTemplate, descriptor, fCallback, tmpContextArray, tmpScope, pState);
|
|
117
119
|
}
|
|
118
120
|
}
|
|
119
121
|
|
|
@@ -32,11 +32,12 @@ class PictTemplateControlFromDynamicManifest extends libPictTemplate
|
|
|
32
32
|
* @param {object} pRecord - The record object.
|
|
33
33
|
* @param {array} pContextArray - The context array.
|
|
34
34
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
35
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
35
36
|
* @returns {string} - The rendered template.
|
|
36
37
|
*/
|
|
37
|
-
render(pTemplateHash, pRecord, pContextArray, pScope)
|
|
38
|
+
render(pTemplateHash, pRecord, pContextArray, pScope, pState)
|
|
38
39
|
{
|
|
39
|
-
return this.renderAsync(pTemplateHash, pRecord, null, pContextArray, pScope);
|
|
40
|
+
return this.renderAsync(pTemplateHash, pRecord, null, pContextArray, pScope, pState);
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
/**
|
|
@@ -47,9 +48,10 @@ class PictTemplateControlFromDynamicManifest extends libPictTemplate
|
|
|
47
48
|
* @param {function | null} fCallback - The callback function.
|
|
48
49
|
* @param {array} pContextArray - The context array.
|
|
49
50
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
51
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
50
52
|
* @returns {string | undefined} - The rendered template or undefined if callback is provided.
|
|
51
53
|
*/
|
|
52
|
-
renderAsync(pTemplateHash, pRecord, fCallback, pContextArray, pScope)
|
|
54
|
+
renderAsync(pTemplateHash, pRecord, fCallback, pContextArray, pScope, pState)
|
|
53
55
|
{
|
|
54
56
|
const tmpMetatemplateGenerator = this.pict.providers.MetatemplateGenerator;
|
|
55
57
|
const tmpHash = pTemplateHash.trim();
|
|
@@ -78,7 +80,7 @@ class PictTemplateControlFromDynamicManifest extends libPictTemplate
|
|
|
78
80
|
`getInput("${descriptor.PictForm.GroupIndex}","${descriptor.PictForm.RowIndex}","${descriptor.PictForm.InputIndex}")`);
|
|
79
81
|
|
|
80
82
|
// Now parse it and return it.
|
|
81
|
-
return this.pict.parseTemplate(tmpTemplate, descriptor, fCallback, tmpContextArray, tmpScope);
|
|
83
|
+
return this.pict.parseTemplate(tmpTemplate, descriptor, fCallback, tmpContextArray, tmpScope, pState);
|
|
82
84
|
}
|
|
83
85
|
}
|
|
84
86
|
|
|
@@ -32,11 +32,12 @@ class PictTemplateGetViewSchemaValue extends libPictTemplate
|
|
|
32
32
|
* @param {object} pRecord - The record object.
|
|
33
33
|
* @param {array} pContextArray - The context array.
|
|
34
34
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
35
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
35
36
|
* @returns {string} - The rendered template.
|
|
36
37
|
*/
|
|
37
|
-
render(pTemplateHash, pRecord, pContextArray, pScope)
|
|
38
|
+
render(pTemplateHash, pRecord, pContextArray, pScope, pState)
|
|
38
39
|
{
|
|
39
|
-
return this.renderAsync(pTemplateHash, pRecord, null, pContextArray, pScope);
|
|
40
|
+
return this.renderAsync(pTemplateHash, pRecord, null, pContextArray, pScope, pState);
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
/**
|
|
@@ -47,9 +48,10 @@ class PictTemplateGetViewSchemaValue extends libPictTemplate
|
|
|
47
48
|
* @param {function | null} fCallback - The callback function.
|
|
48
49
|
* @param {array} pContextArray - The context array.
|
|
49
50
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
51
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
50
52
|
* @returns {string | undefined} - The rendered template or undefined if callback is provided.
|
|
51
53
|
*/
|
|
52
|
-
renderAsync(pTemplateHash, pRecord, fCallback, pContextArray, pScope)
|
|
54
|
+
renderAsync(pTemplateHash, pRecord, fCallback, pContextArray, pScope, pState)
|
|
53
55
|
{
|
|
54
56
|
const [ tmpSchemaAddress, tmpTemplateHash ] = pTemplateHash.trim().split('^');
|
|
55
57
|
/** @type{import('../views/Pict-View-Form-Metacontroller.js')} */
|
|
@@ -76,7 +78,7 @@ class PictTemplateGetViewSchemaValue extends libPictTemplate
|
|
|
76
78
|
const tmpRecord = { Value: value, ParentRecord: pRecord, View: tmpView, Descriptor: descriptor };
|
|
77
79
|
if (typeof fCallback !== 'function')
|
|
78
80
|
{
|
|
79
|
-
return this.pict.parseTemplateByHash(tmpTemplateHash, tmpRecord, null, pContextArray, pScope);
|
|
81
|
+
return this.pict.parseTemplateByHash(tmpTemplateHash, tmpRecord, null, pContextArray, pScope, pState);
|
|
80
82
|
}
|
|
81
83
|
return this.pict.parseTemplateByHash(tmpTemplateHash, tmpRecord,
|
|
82
84
|
(pError, pValue) =>
|
|
@@ -86,7 +88,7 @@ class PictTemplateGetViewSchemaValue extends libPictTemplate
|
|
|
86
88
|
return fCallback(pError, '');
|
|
87
89
|
}
|
|
88
90
|
return fCallback(null, pValue);
|
|
89
|
-
}, pContextArray, pScope);
|
|
91
|
+
}, pContextArray, pScope, pState);
|
|
90
92
|
}
|
|
91
93
|
|
|
92
94
|
if (typeof(fCallback) === 'function')
|
|
@@ -32,11 +32,12 @@ class PictTemplateGetViewSchemaValueByHash extends libPictTemplate
|
|
|
32
32
|
* @param {object} pRecord - The record object.
|
|
33
33
|
* @param {array} pContextArray - The context array.
|
|
34
34
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
35
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
35
36
|
* @returns {string} - The rendered template.
|
|
36
37
|
*/
|
|
37
|
-
render(pTemplateHash, pRecord, pContextArray, pScope)
|
|
38
|
+
render(pTemplateHash, pRecord, pContextArray, pScope, pState)
|
|
38
39
|
{
|
|
39
|
-
return this.renderAsync(pTemplateHash, pRecord, null, pContextArray, pScope);
|
|
40
|
+
return this.renderAsync(pTemplateHash, pRecord, null, pContextArray, pScope, pState);
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
/**
|
|
@@ -47,9 +48,10 @@ class PictTemplateGetViewSchemaValueByHash extends libPictTemplate
|
|
|
47
48
|
* @param {function | null} fCallback - The callback function.
|
|
48
49
|
* @param {array} pContextArray - The context array.
|
|
49
50
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
51
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
50
52
|
* @returns {string | undefined} - The rendered template or undefined if callback is provided.
|
|
51
53
|
*/
|
|
52
|
-
renderAsync(pTemplateHash, pRecord, fCallback, pContextArray, pScope)
|
|
54
|
+
renderAsync(pTemplateHash, pRecord, fCallback, pContextArray, pScope, pState)
|
|
53
55
|
{
|
|
54
56
|
const [ tmpSchemaHash, tmpTemplateHash ] = pTemplateHash.trim().split('^');
|
|
55
57
|
/** @type{import('../views/Pict-View-Form-Metacontroller.js')} */
|
|
@@ -76,7 +78,7 @@ class PictTemplateGetViewSchemaValueByHash extends libPictTemplate
|
|
|
76
78
|
const tmpRecord = { Value: value, ParentRecord: pRecord, View: tmpView, Descriptor: descriptor };
|
|
77
79
|
if (typeof fCallback !== 'function')
|
|
78
80
|
{
|
|
79
|
-
return this.pict.parseTemplateByHash(tmpTemplateHash, tmpRecord, null, pContextArray, pScope);
|
|
81
|
+
return this.pict.parseTemplateByHash(tmpTemplateHash, tmpRecord, null, pContextArray, pScope, pState);
|
|
80
82
|
}
|
|
81
83
|
return this.pict.parseTemplateByHash(tmpTemplateHash, tmpRecord,
|
|
82
84
|
(pError, pValue) =>
|
|
@@ -86,7 +88,7 @@ class PictTemplateGetViewSchemaValueByHash extends libPictTemplate
|
|
|
86
88
|
return fCallback(pError, '');
|
|
87
89
|
}
|
|
88
90
|
return fCallback(null, pValue);
|
|
89
|
-
}, pContextArray, pScope);
|
|
91
|
+
}, pContextArray, pScope, pState);
|
|
90
92
|
}
|
|
91
93
|
|
|
92
94
|
if (typeof(fCallback) === 'function')
|
|
@@ -34,9 +34,10 @@ class PictTemplateMetacontrollerValueSet extends libPictTemplate
|
|
|
34
34
|
* @param {object} pRecord - The record object.
|
|
35
35
|
* @param {array} pContextArray - The context array.
|
|
36
36
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
37
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
37
38
|
* @returns {string} - The rendered template.
|
|
38
39
|
*/
|
|
39
|
-
render(pTemplateHash, pRecord, pContextArray, pScope)
|
|
40
|
+
render(pTemplateHash, pRecord, pContextArray, pScope, pState)
|
|
40
41
|
{
|
|
41
42
|
let tmpHash = pTemplateHash.trim();
|
|
42
43
|
let tmpData = (typeof (pRecord) === 'object') ? pRecord : {};
|
|
@@ -92,11 +93,11 @@ class PictTemplateMetacontrollerValueSet extends libPictTemplate
|
|
|
92
93
|
if (!tmpData)
|
|
93
94
|
{
|
|
94
95
|
// No address was provided, just render the template with what this template has.
|
|
95
|
-
return this.pict.parseTemplateSetByHash(tmpTemplateHash, pRecord, null, pContextArray, pScope);
|
|
96
|
+
return this.pict.parseTemplateSetByHash(tmpTemplateHash, pRecord, null, pContextArray, pScope, pState);
|
|
96
97
|
}
|
|
97
98
|
else
|
|
98
99
|
{
|
|
99
|
-
return this.pict.parseTemplateSetByHash(tmpTemplateHash, tmpData, null, pContextArray, pScope);
|
|
100
|
+
return this.pict.parseTemplateSetByHash(tmpTemplateHash, tmpData, null, pContextArray, pScope, pState);
|
|
100
101
|
}
|
|
101
102
|
}
|
|
102
103
|
|
|
@@ -108,10 +109,11 @@ class PictTemplateMetacontrollerValueSet extends libPictTemplate
|
|
|
108
109
|
* @param {function} fCallback - The callback function to invoke after rendering the template.
|
|
109
110
|
* @param {array} pContextArray - The context array to use for resolving the data.
|
|
110
111
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
112
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
111
113
|
*
|
|
112
114
|
* @return {void}
|
|
113
115
|
*/
|
|
114
|
-
renderAsync(pTemplateHash, pRecord, fCallback, pContextArray, pScope)
|
|
116
|
+
renderAsync(pTemplateHash, pRecord, fCallback, pContextArray, pScope, pState)
|
|
115
117
|
{
|
|
116
118
|
let tmpHash = pTemplateHash.trim();
|
|
117
119
|
let tmpData = (typeof (pRecord) === 'object') ? pRecord : {};
|
|
@@ -185,7 +187,7 @@ class PictTemplateMetacontrollerValueSet extends libPictTemplate
|
|
|
185
187
|
return tmpCallback(pError, '');
|
|
186
188
|
}
|
|
187
189
|
return tmpCallback(null, pValue);
|
|
188
|
-
}, pContextArray, pScope);
|
|
190
|
+
}, pContextArray, pScope, pState);
|
|
189
191
|
return;
|
|
190
192
|
}
|
|
191
193
|
else
|
|
@@ -198,7 +200,7 @@ class PictTemplateMetacontrollerValueSet extends libPictTemplate
|
|
|
198
200
|
return tmpCallback(pError, '');
|
|
199
201
|
}
|
|
200
202
|
return tmpCallback(null, pValue);
|
|
201
|
-
}, pContextArray, pScope);
|
|
203
|
+
}, pContextArray, pScope, pState);
|
|
202
204
|
return;
|
|
203
205
|
}
|
|
204
206
|
}
|
|
@@ -34,9 +34,10 @@ class PictTemplateMetatemplateInputTemplate extends libPictTemplate
|
|
|
34
34
|
* @param {object} pRecord - The record object.
|
|
35
35
|
* @param {array} pContextArray - The context array.
|
|
36
36
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
37
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
37
38
|
* @returns {string} - The rendered template.
|
|
38
39
|
*/
|
|
39
|
-
render(pTemplateHash, pRecord, pContextArray, pScope)
|
|
40
|
+
render(pTemplateHash, pRecord, pContextArray, pScope, pState)
|
|
40
41
|
{
|
|
41
42
|
let tmpHash = pTemplateHash.trim();
|
|
42
43
|
let tmpMetatemplateGenerator = this.pict.providers.MetatemplateGenerator;
|
|
@@ -94,7 +95,7 @@ class PictTemplateMetatemplateInputTemplate extends libPictTemplate
|
|
|
94
95
|
if (tmpRow.Inputs[i].Hash === tmpInput.Hash)
|
|
95
96
|
{
|
|
96
97
|
let tmpInput = tmpRow.Inputs[i];
|
|
97
|
-
return this.pict.parseTemplate(tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpMetatemplateGenerator.dynamicInputView, tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`), tmpInput, null, [tmpMetatemplateGenerator.dynamicInputView], tmpMetatemplateGenerator.dynamicInputView);
|
|
98
|
+
return this.pict.parseTemplate(tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpMetatemplateGenerator.dynamicInputView, tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`), tmpInput, null, [tmpMetatemplateGenerator.dynamicInputView], tmpMetatemplateGenerator.dynamicInputView, pState);
|
|
98
99
|
}
|
|
99
100
|
}
|
|
100
101
|
|
|
@@ -109,7 +110,7 @@ class PictTemplateMetatemplateInputTemplate extends libPictTemplate
|
|
|
109
110
|
let tmpTemplate = tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpMetatemplateGenerator.dynamicInputView, tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`);
|
|
110
111
|
|
|
111
112
|
// Now parse it and return it.
|
|
112
|
-
return this.pict.parseTemplate(tmpTemplate, tmpInput, null, [tmpMetatemplateGenerator.dynamicInputView], tmpMetatemplateGenerator.dynamicInputView);
|
|
113
|
+
return this.pict.parseTemplate(tmpTemplate, tmpInput, null, [tmpMetatemplateGenerator.dynamicInputView], tmpMetatemplateGenerator.dynamicInputView, pState);
|
|
113
114
|
}
|
|
114
115
|
|
|
115
116
|
/**
|
|
@@ -120,10 +121,11 @@ class PictTemplateMetatemplateInputTemplate extends libPictTemplate
|
|
|
120
121
|
* @param {function | null} fCallback - The callback function.
|
|
121
122
|
* @param {array} pContextArray - The context array.
|
|
122
123
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
124
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
123
125
|
*
|
|
124
126
|
* @return {void}
|
|
125
127
|
*/
|
|
126
|
-
renderAsync(pTemplateHash, pRecord, fCallback, pContextArray, pScope)
|
|
128
|
+
renderAsync(pTemplateHash, pRecord, fCallback, pContextArray, pScope, pState)
|
|
127
129
|
{
|
|
128
130
|
let tmpHash = pTemplateHash.trim();
|
|
129
131
|
let tmpMetatemplateGenerator = this.pict.providers.MetatemplateGenerator;
|
|
@@ -182,7 +184,7 @@ class PictTemplateMetatemplateInputTemplate extends libPictTemplate
|
|
|
182
184
|
{
|
|
183
185
|
let tmpInput = tmpRow.Inputs[i];
|
|
184
186
|
let tmpTemplate = tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpMetatemplateGenerator.dynamicInputView, tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`);
|
|
185
|
-
this.pict.parseTemplate(tmpTemplate, tmpInput, fCallback, [tmpMetatemplateGenerator.dynamicInputView], tmpMetatemplateGenerator.dynamicInputView);
|
|
187
|
+
this.pict.parseTemplate(tmpTemplate, tmpInput, fCallback, [tmpMetatemplateGenerator.dynamicInputView], tmpMetatemplateGenerator.dynamicInputView, pState);
|
|
186
188
|
return;
|
|
187
189
|
}
|
|
188
190
|
}
|
|
@@ -197,7 +199,7 @@ class PictTemplateMetatemplateInputTemplate extends libPictTemplate
|
|
|
197
199
|
// Now generate the metatemplate
|
|
198
200
|
let tmpTemplate = tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpMetatemplateGenerator.dynamicInputView, tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`);
|
|
199
201
|
|
|
200
|
-
this.pict.parseTemplate(tmpTemplate, tmpInput, fCallback, [tmpMetatemplateGenerator.dynamicInputView], tmpMetatemplateGenerator.dynamicInputView);
|
|
202
|
+
this.pict.parseTemplate(tmpTemplate, tmpInput, fCallback, [tmpMetatemplateGenerator.dynamicInputView], tmpMetatemplateGenerator.dynamicInputView, pState);
|
|
201
203
|
return;
|
|
202
204
|
}
|
|
203
205
|
}
|
|
@@ -34,9 +34,10 @@ class PictTemplateMetatemplateInputTemplate extends libPictTemplate
|
|
|
34
34
|
* @param {object} pRecord - The record object.
|
|
35
35
|
* @param {array} pContextArray - The context array.
|
|
36
36
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
37
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
37
38
|
* @returns {string} - The rendered template.
|
|
38
39
|
*/
|
|
39
|
-
render(pTemplateHash, pRecord, pContextArray, pScope)
|
|
40
|
+
render(pTemplateHash, pRecord, pContextArray, pScope, pState)
|
|
40
41
|
{
|
|
41
42
|
let tmpHash = pTemplateHash.trim();
|
|
42
43
|
let tmpMetatemplateGenerator = this.pict.providers.MetatemplateGenerator;
|
|
@@ -61,7 +62,7 @@ class PictTemplateMetatemplateInputTemplate extends libPictTemplate
|
|
|
61
62
|
tmpInputName = tmpHashTemplateSeparator[0];
|
|
62
63
|
// This template expects this address to be a location to get the hash from...
|
|
63
64
|
//FIXME: should pScope here be the eventual view so the scope is consistent?
|
|
64
|
-
tmpInputAddress = this.resolveStateFromAddress(tmpHashTemplateSeparator[1], pRecord, pContextArray, null, pScope);
|
|
65
|
+
tmpInputAddress = this.resolveStateFromAddress(tmpHashTemplateSeparator[1], pRecord, pContextArray, null, pScope, pState);
|
|
65
66
|
if ((typeof(tmpInputAddress) !== 'string') || tmpInputAddress.length < 1)
|
|
66
67
|
{
|
|
67
68
|
this.log.warn(`MetaTemplateInput template requires a valid Address for an Address in the second parameter [${tmpHash}]`);
|
|
@@ -104,7 +105,7 @@ class PictTemplateMetatemplateInputTemplate extends libPictTemplate
|
|
|
104
105
|
{
|
|
105
106
|
const tmpInput = tmpRow.Inputs[i];
|
|
106
107
|
return this.pict.parseTemplate(tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpMetatemplateGenerator.dynamicInputView,
|
|
107
|
-
tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`), tmpInput, null, [tmpMetatemplateGenerator.dynamicInputView], tmpMetatemplateGenerator.dynamicInputView);
|
|
108
|
+
tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`), tmpInput, null, [tmpMetatemplateGenerator.dynamicInputView], tmpMetatemplateGenerator.dynamicInputView, pState);
|
|
108
109
|
}
|
|
109
110
|
}
|
|
110
111
|
|
|
@@ -120,7 +121,7 @@ class PictTemplateMetatemplateInputTemplate extends libPictTemplate
|
|
|
120
121
|
tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`);
|
|
121
122
|
|
|
122
123
|
// Now parse it and return it.
|
|
123
|
-
return this.pict.parseTemplate(tmpTemplate, tmpInput, null, [tmpMetatemplateGenerator.dynamicInputView], tmpMetatemplateGenerator.dynamicInputView);
|
|
124
|
+
return this.pict.parseTemplate(tmpTemplate, tmpInput, null, [tmpMetatemplateGenerator.dynamicInputView], tmpMetatemplateGenerator.dynamicInputView, pState);
|
|
124
125
|
}
|
|
125
126
|
|
|
126
127
|
/**
|
|
@@ -131,10 +132,11 @@ class PictTemplateMetatemplateInputTemplate extends libPictTemplate
|
|
|
131
132
|
* @param {function | null} fCallback - The callback function.
|
|
132
133
|
* @param {array} pContextArray - The context array.
|
|
133
134
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
135
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
134
136
|
*
|
|
135
137
|
* @return {void}
|
|
136
138
|
*/
|
|
137
|
-
renderAsync(pTemplateHash, pRecord, fCallback, pContextArray, pScope)
|
|
139
|
+
renderAsync(pTemplateHash, pRecord, fCallback, pContextArray, pScope, pState)
|
|
138
140
|
{
|
|
139
141
|
let tmpHash = pTemplateHash.trim();
|
|
140
142
|
let tmpMetatemplateGenerator = this.pict.providers.MetatemplateGenerator;
|
|
@@ -159,7 +161,7 @@ class PictTemplateMetatemplateInputTemplate extends libPictTemplate
|
|
|
159
161
|
tmpInputName = tmpHashTemplateSeparator[0];
|
|
160
162
|
// This template expects this address to be a location to get the hash from...
|
|
161
163
|
//FIXME: should pScope here be the eventual view so the scope is consistent?
|
|
162
|
-
tmpInputAddress = this.resolveStateFromAddress(tmpHashTemplateSeparator[1], pRecord, pContextArray, null, pScope);
|
|
164
|
+
tmpInputAddress = this.resolveStateFromAddress(tmpHashTemplateSeparator[1], pRecord, pContextArray, null, pScope, pState);
|
|
163
165
|
if ((typeof(tmpInputAddress) !== 'string') || tmpInputAddress.length < 1)
|
|
164
166
|
{
|
|
165
167
|
this.log.warn(`MetaTemplateInput template requires a valid Address for an Address in the second parameter [${tmpHash}]`);
|
|
@@ -201,7 +203,7 @@ class PictTemplateMetatemplateInputTemplate extends libPictTemplate
|
|
|
201
203
|
let tmpInput = tmpRow.Inputs[i];
|
|
202
204
|
let tmpTemplate = tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpMetatemplateGenerator.dynamicInputView,
|
|
203
205
|
tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`);
|
|
204
|
-
this.pict.parseTemplate(tmpTemplate, tmpInput, fCallback, [tmpMetatemplateGenerator.dynamicInputView], tmpMetatemplateGenerator.dynamicInputView);
|
|
206
|
+
this.pict.parseTemplate(tmpTemplate, tmpInput, fCallback, [tmpMetatemplateGenerator.dynamicInputView], tmpMetatemplateGenerator.dynamicInputView, pState);
|
|
205
207
|
return;
|
|
206
208
|
}
|
|
207
209
|
}
|
|
@@ -217,7 +219,7 @@ class PictTemplateMetatemplateInputTemplate extends libPictTemplate
|
|
|
217
219
|
const tmpTemplate = tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpMetatemplateGenerator.dynamicInputView,
|
|
218
220
|
tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`);
|
|
219
221
|
|
|
220
|
-
this.pict.parseTemplate(tmpTemplate, tmpInput, fCallback, [tmpMetatemplateGenerator.dynamicInputView], tmpMetatemplateGenerator.dynamicInputView);
|
|
222
|
+
this.pict.parseTemplate(tmpTemplate, tmpInput, fCallback, [tmpMetatemplateGenerator.dynamicInputView], tmpMetatemplateGenerator.dynamicInputView, pState);
|
|
221
223
|
return;
|
|
222
224
|
}
|
|
223
225
|
}
|
|
@@ -34,9 +34,10 @@ class PictTemplateInputWithViewTemplate extends libPictTemplate
|
|
|
34
34
|
* @param {object} pRecord - The record object.
|
|
35
35
|
* @param {array} pContextArray - The context array.
|
|
36
36
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
37
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
37
38
|
* @returns {string} - The rendered template.
|
|
38
39
|
*/
|
|
39
|
-
render(pTemplateHash, pRecord, pContextArray, pScope)
|
|
40
|
+
render(pTemplateHash, pRecord, pContextArray, pScope, pState)
|
|
40
41
|
{
|
|
41
42
|
let tmpHash = pTemplateHash.trim();
|
|
42
43
|
let tmpMetatemplateGenerator = this.pict.providers.MetatemplateGenerator;
|
|
@@ -103,7 +104,7 @@ class PictTemplateInputWithViewTemplate extends libPictTemplate
|
|
|
103
104
|
if (tmpRow.Inputs[i].Hash === tmpInput.Hash)
|
|
104
105
|
{
|
|
105
106
|
let tmpInput = tmpRow.Inputs[i];
|
|
106
|
-
return this.pict.parseTemplate(tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpInputView, tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`), tmpInput, null, [tmpInputView], tmpInputView);
|
|
107
|
+
return this.pict.parseTemplate(tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpInputView, tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`), tmpInput, null, [tmpInputView], tmpInputView, pState);
|
|
107
108
|
}
|
|
108
109
|
}
|
|
109
110
|
|
|
@@ -118,7 +119,7 @@ class PictTemplateInputWithViewTemplate extends libPictTemplate
|
|
|
118
119
|
let tmpTemplate = tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpInputView, tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`);
|
|
119
120
|
|
|
120
121
|
// Now parse it and return it.
|
|
121
|
-
return this.pict.parseTemplate(tmpTemplate, tmpInput, null, [tmpInputView], tmpInputView);
|
|
122
|
+
return this.pict.parseTemplate(tmpTemplate, tmpInput, null, [tmpInputView], tmpInputView, pState);
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
/**
|
|
@@ -129,10 +130,11 @@ class PictTemplateInputWithViewTemplate extends libPictTemplate
|
|
|
129
130
|
* @param {function | null} fCallback - The callback function.
|
|
130
131
|
* @param {array} pContextArray - The context array.
|
|
131
132
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
133
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
132
134
|
*
|
|
133
135
|
* @return {void}
|
|
134
136
|
*/
|
|
135
|
-
renderAsync(pTemplateHash, pRecord, fCallback, pContextArray, pScope)
|
|
137
|
+
renderAsync(pTemplateHash, pRecord, fCallback, pContextArray, pScope, pState)
|
|
136
138
|
{
|
|
137
139
|
let tmpHash = pTemplateHash.trim();
|
|
138
140
|
let tmpMetatemplateGenerator = this.pict.providers.MetatemplateGenerator;
|
|
@@ -201,7 +203,7 @@ class PictTemplateInputWithViewTemplate extends libPictTemplate
|
|
|
201
203
|
{
|
|
202
204
|
let tmpInput = tmpRow.Inputs[i];
|
|
203
205
|
let tmpTemplate = tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpInputView, tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`);
|
|
204
|
-
this.pict.parseTemplate(tmpTemplate, tmpInput, fCallback, [tmpInputView], tmpInputView);
|
|
206
|
+
this.pict.parseTemplate(tmpTemplate, tmpInput, fCallback, [tmpInputView], tmpInputView, pState);
|
|
205
207
|
return;
|
|
206
208
|
}
|
|
207
209
|
}
|
|
@@ -216,7 +218,7 @@ class PictTemplateInputWithViewTemplate extends libPictTemplate
|
|
|
216
218
|
// Now generate the metatemplate
|
|
217
219
|
let tmpTemplate = tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpInputView, tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`);
|
|
218
220
|
|
|
219
|
-
this.pict.parseTemplate(tmpTemplate, tmpInput, fCallback, [tmpInputView], tmpInputView);
|
|
221
|
+
this.pict.parseTemplate(tmpTemplate, tmpInput, fCallback, [tmpInputView], tmpInputView, pState);
|
|
220
222
|
return;
|
|
221
223
|
}
|
|
222
224
|
}
|
|
@@ -34,9 +34,10 @@ class PictTemplateInputWithViewAndDescriptorAddressTemplate extends libPictTempl
|
|
|
34
34
|
* @param {object} pRecord - The record object.
|
|
35
35
|
* @param {array} pContextArray - The context array.
|
|
36
36
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
37
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
37
38
|
* @returns {string} - The rendered template.
|
|
38
39
|
*/
|
|
39
|
-
render(pTemplateHash, pRecord, pContextArray, pScope)
|
|
40
|
+
render(pTemplateHash, pRecord, pContextArray, pScope, pState)
|
|
40
41
|
{
|
|
41
42
|
let tmpHash = pTemplateHash.trim();
|
|
42
43
|
let tmpMetatemplateGenerator = this.pict.providers.MetatemplateGenerator;
|
|
@@ -59,7 +60,7 @@ class PictTemplateInputWithViewAndDescriptorAddressTemplate extends libPictTempl
|
|
|
59
60
|
tmpViewHash = tmpHashTemplateSeparator[0];
|
|
60
61
|
tmpDescriptorAddress = tmpHashTemplateSeparator[1];
|
|
61
62
|
|
|
62
|
-
const tmpInput = this.resolveStateFromAddress(tmpDescriptorAddress, pRecord, pContextArray, null, pScope);
|
|
63
|
+
const tmpInput = this.resolveStateFromAddress(tmpDescriptorAddress, pRecord, pContextArray, null, pScope, pState);
|
|
63
64
|
|
|
64
65
|
if (!tmpInput || typeof tmpInput !== 'object' || Array.isArray(tmpInput) || !tmpInput.Address)
|
|
65
66
|
{
|
|
@@ -87,7 +88,7 @@ class PictTemplateInputWithViewAndDescriptorAddressTemplate extends libPictTempl
|
|
|
87
88
|
if (tmpRow.Inputs[i].Hash === tmpInput.Hash)
|
|
88
89
|
{
|
|
89
90
|
let tmpInput = tmpRow.Inputs[i];
|
|
90
|
-
return this.pict.parseTemplate(tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpInputView, tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`), tmpInput, null, [tmpInputView], tmpInputView);
|
|
91
|
+
return this.pict.parseTemplate(tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpInputView, tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`), tmpInput, null, [tmpInputView], tmpInputView, pState);
|
|
91
92
|
}
|
|
92
93
|
}
|
|
93
94
|
|
|
@@ -102,7 +103,7 @@ class PictTemplateInputWithViewAndDescriptorAddressTemplate extends libPictTempl
|
|
|
102
103
|
let tmpTemplate = tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpInputView, tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`);
|
|
103
104
|
|
|
104
105
|
// Now parse it and return it.
|
|
105
|
-
return this.pict.parseTemplate(tmpTemplate, tmpInput, null, [tmpInputView], tmpInputView);
|
|
106
|
+
return this.pict.parseTemplate(tmpTemplate, tmpInput, null, [tmpInputView], tmpInputView, pState);
|
|
106
107
|
}
|
|
107
108
|
|
|
108
109
|
/**
|
|
@@ -113,10 +114,11 @@ class PictTemplateInputWithViewAndDescriptorAddressTemplate extends libPictTempl
|
|
|
113
114
|
* @param {function | null} fCallback - The callback function.
|
|
114
115
|
* @param {array} pContextArray - The context array.
|
|
115
116
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
117
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
116
118
|
*
|
|
117
119
|
* @return {void}
|
|
118
120
|
*/
|
|
119
|
-
renderAsync(pTemplateHash, pRecord, fCallback, pContextArray, pScope)
|
|
121
|
+
renderAsync(pTemplateHash, pRecord, fCallback, pContextArray, pScope, pState)
|
|
120
122
|
{
|
|
121
123
|
let tmpHash = pTemplateHash.trim();
|
|
122
124
|
let tmpMetatemplateGenerator = this.pict.providers.MetatemplateGenerator;
|
|
@@ -139,7 +141,7 @@ class PictTemplateInputWithViewAndDescriptorAddressTemplate extends libPictTempl
|
|
|
139
141
|
tmpViewHash = tmpHashTemplateSeparator[0];
|
|
140
142
|
tmpDescriptorAddress = tmpHashTemplateSeparator[1];
|
|
141
143
|
|
|
142
|
-
const tmpInput = this.resolveStateFromAddress(tmpDescriptorAddress, pRecord, pContextArray, null, pScope);
|
|
144
|
+
const tmpInput = this.resolveStateFromAddress(tmpDescriptorAddress, pRecord, pContextArray, null, pScope, pState);
|
|
143
145
|
|
|
144
146
|
this._shoreUpDescriptor(tmpInput);
|
|
145
147
|
|
|
@@ -162,7 +164,7 @@ class PictTemplateInputWithViewAndDescriptorAddressTemplate extends libPictTempl
|
|
|
162
164
|
{
|
|
163
165
|
let tmpInput = tmpRow.Inputs[i];
|
|
164
166
|
let tmpTemplate = tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpInputView, tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`);
|
|
165
|
-
this.pict.parseTemplate(tmpTemplate, tmpInput, fCallback, [tmpInputView], tmpInputView);
|
|
167
|
+
this.pict.parseTemplate(tmpTemplate, tmpInput, fCallback, [tmpInputView], tmpInputView, pState);
|
|
166
168
|
return;
|
|
167
169
|
}
|
|
168
170
|
}
|
|
@@ -177,7 +179,7 @@ class PictTemplateInputWithViewAndDescriptorAddressTemplate extends libPictTempl
|
|
|
177
179
|
// Now generate the metatemplate
|
|
178
180
|
let tmpTemplate = tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpInputView, tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`);
|
|
179
181
|
|
|
180
|
-
this.pict.parseTemplate(tmpTemplate, tmpInput, fCallback, [tmpInputView], tmpInputView);
|
|
182
|
+
this.pict.parseTemplate(tmpTemplate, tmpInput, fCallback, [tmpInputView], tmpInputView, pState);
|
|
181
183
|
return;
|
|
182
184
|
}
|
|
183
185
|
|
|
@@ -34,9 +34,10 @@ class PictTemplateInputWithViewAndHashAddressTemplate extends libPictTemplate
|
|
|
34
34
|
* @param {object} pRecord - The record object.
|
|
35
35
|
* @param {array} pContextArray - The context array.
|
|
36
36
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
37
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
37
38
|
* @returns {string} - The rendered template.
|
|
38
39
|
*/
|
|
39
|
-
render(pTemplateHash, pRecord, pContextArray, pScope)
|
|
40
|
+
render(pTemplateHash, pRecord, pContextArray, pScope, pState)
|
|
40
41
|
{
|
|
41
42
|
let tmpHash = pTemplateHash.trim();
|
|
42
43
|
let tmpMetatemplateGenerator = this.pict.providers.MetatemplateGenerator;
|
|
@@ -113,7 +114,7 @@ class PictTemplateInputWithViewAndHashAddressTemplate extends libPictTemplate
|
|
|
113
114
|
{
|
|
114
115
|
const tmpInput = tmpRow.Inputs[i];
|
|
115
116
|
return this.pict.parseTemplate(tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpInputView,
|
|
116
|
-
tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`), tmpInput, null, [tmpInputView], tmpInputView);
|
|
117
|
+
tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`), tmpInput, null, [tmpInputView], tmpInputView, pState);
|
|
117
118
|
}
|
|
118
119
|
}
|
|
119
120
|
|
|
@@ -129,7 +130,7 @@ class PictTemplateInputWithViewAndHashAddressTemplate extends libPictTemplate
|
|
|
129
130
|
tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`);
|
|
130
131
|
|
|
131
132
|
// Now parse it and return it.
|
|
132
|
-
return this.pict.parseTemplate(tmpTemplate, tmpInput, null, [tmpInputView], tmpInputView);
|
|
133
|
+
return this.pict.parseTemplate(tmpTemplate, tmpInput, null, [tmpInputView], tmpInputView, pState);
|
|
133
134
|
}
|
|
134
135
|
|
|
135
136
|
/**
|
|
@@ -140,10 +141,11 @@ class PictTemplateInputWithViewAndHashAddressTemplate extends libPictTemplate
|
|
|
140
141
|
* @param {function | null} fCallback - The callback function.
|
|
141
142
|
* @param {array} pContextArray - The context array.
|
|
142
143
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
144
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
143
145
|
*
|
|
144
146
|
* @return {void}
|
|
145
147
|
*/
|
|
146
|
-
renderAsync(pTemplateHash, pRecord, fCallback, pContextArray, pScope)
|
|
148
|
+
renderAsync(pTemplateHash, pRecord, fCallback, pContextArray, pScope, pState)
|
|
147
149
|
{
|
|
148
150
|
let tmpHash = pTemplateHash.trim();
|
|
149
151
|
let tmpMetatemplateGenerator = this.pict.providers.MetatemplateGenerator;
|
|
@@ -220,7 +222,7 @@ class PictTemplateInputWithViewAndHashAddressTemplate extends libPictTemplate
|
|
|
220
222
|
let tmpInput = tmpRow.Inputs[i];
|
|
221
223
|
let tmpTemplate = tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpInputView,
|
|
222
224
|
tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`);
|
|
223
|
-
this.pict.parseTemplate(tmpTemplate, tmpInput, fCallback, [tmpInputView], tmpInputView);
|
|
225
|
+
this.pict.parseTemplate(tmpTemplate, tmpInput, fCallback, [tmpInputView], tmpInputView, pState);
|
|
224
226
|
return;
|
|
225
227
|
}
|
|
226
228
|
}
|
|
@@ -236,7 +238,7 @@ class PictTemplateInputWithViewAndHashAddressTemplate extends libPictTemplate
|
|
|
236
238
|
const tmpTemplate = tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpInputView,
|
|
237
239
|
tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`);
|
|
238
240
|
|
|
239
|
-
this.pict.parseTemplate(tmpTemplate, tmpInput, fCallback, [tmpInputView], tmpInputView);
|
|
241
|
+
this.pict.parseTemplate(tmpTemplate, tmpInput, fCallback, [tmpInputView], tmpInputView, pState);
|
|
240
242
|
return;
|
|
241
243
|
}
|
|
242
244
|
}
|
|
@@ -29,9 +29,10 @@ class PictTemplateProviderPluckJoinUnique extends libPictTemplate
|
|
|
29
29
|
* @param {object} pRecord - The record object.
|
|
30
30
|
* @param {array} pContextArray - The context array.
|
|
31
31
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
32
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
32
33
|
* @returns {string} - The rendered template.
|
|
33
34
|
*/
|
|
34
|
-
render(pTemplateHash, pRecord, pContextArray, pScope)
|
|
35
|
+
render(pTemplateHash, pRecord, pContextArray, pScope, pState)
|
|
35
36
|
{
|
|
36
37
|
let tmpHash = pTemplateHash;
|
|
37
38
|
let tmpData = (typeof (pRecord) === 'object') ? pRecord : {};
|
|
@@ -3,8 +3,6 @@ const libPictViewClass = require('pict-view');
|
|
|
3
3
|
/** @type {Record<string, any>} */
|
|
4
4
|
const libPackage = require('../../package.json');
|
|
5
5
|
|
|
6
|
-
const libFableServiceTransactionTracking = require(`../services/Fable-Service-TransactionTracking.js`);
|
|
7
|
-
|
|
8
6
|
/** @type {Record<string, any>} */
|
|
9
7
|
const _DefaultConfiguration = require('./Pict-View-DynamicForm-DefaultConfiguration.json');
|
|
10
8
|
|
|
@@ -60,19 +58,13 @@ class PictViewDynamicForm extends libPictViewClass
|
|
|
60
58
|
// Now construct the view.
|
|
61
59
|
super(pFable, tmpOptions, pServiceHash);
|
|
62
60
|
|
|
63
|
-
/** @type {import('pict') & { PictApplication: import('pict-application'), log: any; instantiateServiceProviderWithoutRegistration: (hash: string) => any; }} */
|
|
64
|
-
this.pict;
|
|
65
|
-
|
|
66
61
|
if (!this.fable.PictDynamicFormDependencyManager)
|
|
67
62
|
{
|
|
68
|
-
throw new Error('PictSectionForm instantiation attempt without a
|
|
63
|
+
throw new Error('PictSectionForm instantiation attempt without a PictDynamicFormDependencyManager service in fable -- cannot instantiate.');
|
|
69
64
|
}
|
|
70
65
|
|
|
71
|
-
this.fable.addServiceTypeIfNotExists('TransactionTracking', libFableServiceTransactionTracking);
|
|
72
|
-
|
|
73
66
|
// Use this to manage transactions
|
|
74
|
-
|
|
75
|
-
this.transactionTracking = this.fable.instantiateServiceProviderWithoutRegistration('TransactionTracking');
|
|
67
|
+
this.transactionTracking = this.pict.newTransactionTracker();
|
|
76
68
|
|
|
77
69
|
/** @type {Record<string, any>} */
|
|
78
70
|
this._PackagePictView = this._Package;
|
|
@@ -530,10 +522,8 @@ class PictViewDynamicForm extends libPictViewClass
|
|
|
530
522
|
* Lifecycle hook that triggers before the view is rendered.
|
|
531
523
|
*
|
|
532
524
|
* @param {import('pict-view').Renderable} pRenderable - The renderable that will be rendered.
|
|
533
|
-
* @param {string} pRenderDestinationAddress - The address where the renderable will be rendered.
|
|
534
|
-
* @param {any} pRecord - The record (data) that will be used to render the renderable.
|
|
535
525
|
*/
|
|
536
|
-
onBeforeRender(pRenderable
|
|
526
|
+
onBeforeRender(pRenderable)
|
|
537
527
|
{
|
|
538
528
|
if (!this.initialBundleLoaded)
|
|
539
529
|
{
|
|
@@ -543,15 +533,16 @@ class PictViewDynamicForm extends libPictViewClass
|
|
|
543
533
|
}
|
|
544
534
|
this.initialBundleLoaded = true;
|
|
545
535
|
}
|
|
546
|
-
return super.onBeforeRender(pRenderable
|
|
536
|
+
return super.onBeforeRender(pRenderable);
|
|
547
537
|
}
|
|
548
538
|
|
|
549
539
|
/**
|
|
550
540
|
* Lifecycle hook that triggers before the view is rendered (async flow).
|
|
551
541
|
*
|
|
552
542
|
* @param {(error?: Error) => void} fCallback - The callback to call when the async operation is complete.
|
|
543
|
+
* @param {import('pict-view').Renderable} pRenderable - The renderable that will be rendered.
|
|
553
544
|
*/
|
|
554
|
-
onBeforeRenderAsync(fCallback)
|
|
545
|
+
onBeforeRenderAsync(fCallback, pRenderable)
|
|
555
546
|
{
|
|
556
547
|
super.onBeforeRenderAsync((pError) =>
|
|
557
548
|
{
|
|
@@ -572,25 +563,22 @@ class PictViewDynamicForm extends libPictViewClass
|
|
|
572
563
|
this.initialBundleLoaded = true;
|
|
573
564
|
}
|
|
574
565
|
return fCallback(pError);
|
|
575
|
-
});
|
|
566
|
+
}, pRenderable);
|
|
576
567
|
}
|
|
577
568
|
|
|
578
569
|
/**
|
|
579
570
|
* Lifecycle hook that triggers after the view is rendered.
|
|
580
571
|
*
|
|
581
|
-
* @param {
|
|
582
|
-
* @param {string} [pRenderDestinationAddress] - The address where the renderable was rendered.
|
|
583
|
-
* @param {any} [pRecord] - The record (data) that was used by the renderable.
|
|
584
|
-
* @param {string} [pContent] - The content that was rendered.
|
|
572
|
+
* @param {import('pict-view').Renderable} pRenderable - The renderable that was rendered.
|
|
585
573
|
*/
|
|
586
|
-
onAfterRender(pRenderable
|
|
574
|
+
onAfterRender(pRenderable)
|
|
587
575
|
{
|
|
588
576
|
let tmpTransactionGUID = this.fable.getUUID();
|
|
589
577
|
this.transactionTracking.registerTransaction(tmpTransactionGUID);
|
|
590
578
|
|
|
591
579
|
this.runLayoutProviderFunctions('onGroupLayoutInitialize', tmpTransactionGUID);
|
|
592
580
|
this.runInputProviderFunctions('onInputInitialize', null, null, tmpTransactionGUID);
|
|
593
|
-
return super.onAfterRender(pRenderable
|
|
581
|
+
return super.onAfterRender(pRenderable);
|
|
594
582
|
}
|
|
595
583
|
|
|
596
584
|
/**
|
|
@@ -129,14 +129,12 @@ class PictFormMetacontroller extends libPictViewClass
|
|
|
129
129
|
* and optionally populates the form with data.
|
|
130
130
|
*
|
|
131
131
|
* @param {import('pict-view').Renderable} pRenderable - The renderable that was rendered.
|
|
132
|
-
* @param {string} pRenderDestinationAddress - The address where the renderable was rendered.
|
|
133
|
-
* @param {any} pRecord - The record (data) that was used by the renderable.
|
|
134
|
-
* @param {string} pContent - The content that was rendered.
|
|
135
132
|
*
|
|
136
133
|
* @return {boolean} The result of the superclass's onAfterRender method.
|
|
137
134
|
*/
|
|
138
|
-
onAfterRender(pRenderable
|
|
135
|
+
onAfterRender(pRenderable)
|
|
139
136
|
{
|
|
137
|
+
const res = super.onAfterRender(pRenderable);
|
|
140
138
|
this.regenerateFormSectionTemplates();
|
|
141
139
|
this.renderFormSections();
|
|
142
140
|
|
|
@@ -144,8 +142,7 @@ class PictFormMetacontroller extends libPictViewClass
|
|
|
144
142
|
{
|
|
145
143
|
this.marshalToView();
|
|
146
144
|
}
|
|
147
|
-
|
|
148
|
-
return super.onAfterRender(pRenderable, pRenderDestinationAddress, pRecord, pContent);
|
|
145
|
+
return res;
|
|
149
146
|
}
|
|
150
147
|
|
|
151
148
|
/**
|
|
@@ -58,9 +58,10 @@ declare class PictTemplateControlFromDynamicManifest extends libPictTemplate {
|
|
|
58
58
|
* @param {function | null} fCallback - The callback function.
|
|
59
59
|
* @param {array} pContextArray - The context array.
|
|
60
60
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
61
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
61
62
|
* @returns {string | undefined} - The rendered template or undefined if callback is provided.
|
|
62
63
|
*/
|
|
63
|
-
renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function | null, pContextArray: any[], pScope?: any): string | undefined;
|
|
64
|
+
renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function | null, pContextArray: any[], pScope?: any, pState?: any): string | undefined;
|
|
64
65
|
}
|
|
65
66
|
declare namespace PictTemplateControlFromDynamicManifest {
|
|
66
67
|
export { Manyfest };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Template-ControlFromDynamicManifest.d.ts","sourceRoot":"","sources":["../../../source/templates/Pict-Template-ControlFromDynamicManifest.js"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAGH;;GAEG;AACH;IAEC;;;;OAIG;IACH,8DAaC;IATA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6FAA6F;IAC7F,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,eAAe,EAAE,OAAO,gCAAgC,CAAC,CAAA;KAAE,CAC/E;IACV,kBAAkB;IAClB,KADW,GAAG,CACN;
|
|
1
|
+
{"version":3,"file":"Pict-Template-ControlFromDynamicManifest.d.ts","sourceRoot":"","sources":["../../../source/templates/Pict-Template-ControlFromDynamicManifest.js"],"names":[],"mappings":"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"}
|
|
@@ -25,9 +25,10 @@ declare class PictTemplateControlFromDynamicManifest extends libPictTemplate {
|
|
|
25
25
|
* @param {function | null} fCallback - The callback function.
|
|
26
26
|
* @param {array} pContextArray - The context array.
|
|
27
27
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
28
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
28
29
|
* @returns {string | undefined} - The rendered template or undefined if callback is provided.
|
|
29
30
|
*/
|
|
30
|
-
renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function | null, pContextArray: any[], pScope?: any): string | undefined;
|
|
31
|
+
renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function | null, pContextArray: any[], pScope?: any, pState?: any): string | undefined;
|
|
31
32
|
}
|
|
32
33
|
import libPictTemplate = require("pict-template");
|
|
33
34
|
//# sourceMappingURL=Pict-Template-ControlFromDynamicManifestForHash.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Template-ControlFromDynamicManifestForHash.d.ts","sourceRoot":"","sources":["../../../source/templates/Pict-Template-ControlFromDynamicManifestForHash.js"],"names":[],"mappings":";AAEA;;GAEG;AACH;IAEC;;;;OAIG;IACH,8DAaC;IATA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6FAA6F;IAC7F,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,eAAe,EAAE,OAAO,gCAAgC,CAAC,CAAA;KAAE,CAC/E;IACV,kBAAkB;IAClB,KADW,GAAG,CACN;
|
|
1
|
+
{"version":3,"file":"Pict-Template-ControlFromDynamicManifestForHash.d.ts","sourceRoot":"","sources":["../../../source/templates/Pict-Template-ControlFromDynamicManifestForHash.js"],"names":[],"mappings":";AAEA;;GAEG;AACH;IAEC;;;;OAIG;IACH,8DAaC;IATA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6FAA6F;IAC7F,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,eAAe,EAAE,OAAO,gCAAgC,CAAC,CAAA;KAAE,CAC/E;IACV,kBAAkB;IAClB,KADW,GAAG,CACN;IAqBT;;;;;;;;;;OAUG;IACH,2BARW,MAAM,WACN,MAAM,aACN,WAAW,IAAI,iCAEf,GAAG,WACH,GAAG,GACD,MAAM,GAAG,SAAS,CAgC9B;CACD"}
|
|
@@ -25,9 +25,10 @@ declare class PictTemplateGetViewSchemaValue extends libPictTemplate {
|
|
|
25
25
|
* @param {function | null} fCallback - The callback function.
|
|
26
26
|
* @param {array} pContextArray - The context array.
|
|
27
27
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
28
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
28
29
|
* @returns {string | undefined} - The rendered template or undefined if callback is provided.
|
|
29
30
|
*/
|
|
30
|
-
renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function | null, pContextArray: any[], pScope?: any): string | undefined;
|
|
31
|
+
renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function | null, pContextArray: any[], pScope?: any, pState?: any): string | undefined;
|
|
31
32
|
}
|
|
32
33
|
import libPictTemplate = require("pict-template");
|
|
33
34
|
//# sourceMappingURL=Pict-Template-DyanmicView-Value.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Template-DyanmicView-Value.d.ts","sourceRoot":"","sources":["../../../source/templates/Pict-Template-DyanmicView-Value.js"],"names":[],"mappings":";AAEA;;GAEG;AACH;IAEC;;;;OAIG;IACH,8DAaC;IATA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6FAA6F;IAC7F,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,eAAe,EAAE,OAAO,gCAAgC,CAAC,CAAA;KAAE,CAC/E;IACV,kBAAkB;IAClB,KADW,GAAG,CACN;
|
|
1
|
+
{"version":3,"file":"Pict-Template-DyanmicView-Value.d.ts","sourceRoot":"","sources":["../../../source/templates/Pict-Template-DyanmicView-Value.js"],"names":[],"mappings":";AAEA;;GAEG;AACH;IAEC;;;;OAIG;IACH,8DAaC;IATA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6FAA6F;IAC7F,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,eAAe,EAAE,OAAO,gCAAgC,CAAC,CAAA;KAAE,CAC/E;IACV,kBAAkB;IAClB,KADW,GAAG,CACN;IAqBT;;;;;;;;;;OAUG;IACH,2BARW,MAAM,WACN,MAAM,aACN,WAAW,IAAI,iCAEf,GAAG,WACH,GAAG,GACD,MAAM,GAAG,SAAS,CAkD9B;CACD"}
|
|
@@ -25,9 +25,10 @@ declare class PictTemplateGetViewSchemaValueByHash extends libPictTemplate {
|
|
|
25
25
|
* @param {function | null} fCallback - The callback function.
|
|
26
26
|
* @param {array} pContextArray - The context array.
|
|
27
27
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
28
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
28
29
|
* @returns {string | undefined} - The rendered template or undefined if callback is provided.
|
|
29
30
|
*/
|
|
30
|
-
renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function | null, pContextArray: any[], pScope?: any): string | undefined;
|
|
31
|
+
renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function | null, pContextArray: any[], pScope?: any, pState?: any): string | undefined;
|
|
31
32
|
}
|
|
32
33
|
import libPictTemplate = require("pict-template");
|
|
33
34
|
//# sourceMappingURL=Pict-Template-DyanmicView-ValueByHash.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Template-DyanmicView-ValueByHash.d.ts","sourceRoot":"","sources":["../../../source/templates/Pict-Template-DyanmicView-ValueByHash.js"],"names":[],"mappings":";AAEA;;GAEG;AACH;IAEC;;;;OAIG;IACH,8DAaC;IATA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6FAA6F;IAC7F,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,eAAe,EAAE,OAAO,gCAAgC,CAAC,CAAA;KAAE,CAC/E;IACV,kBAAkB;IAClB,KADW,GAAG,CACN;
|
|
1
|
+
{"version":3,"file":"Pict-Template-DyanmicView-ValueByHash.d.ts","sourceRoot":"","sources":["../../../source/templates/Pict-Template-DyanmicView-ValueByHash.js"],"names":[],"mappings":";AAEA;;GAEG;AACH;IAEC;;;;OAIG;IACH,8DAaC;IATA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6FAA6F;IAC7F,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,eAAe,EAAE,OAAO,gCAAgC,CAAC,CAAA;KAAE,CAC/E;IACV,kBAAkB;IAClB,KADW,GAAG,CACN;IAqBT;;;;;;;;;;OAUG;IACH,2BARW,MAAM,WACN,MAAM,aACN,WAAW,IAAI,iCAEf,GAAG,WACH,GAAG,GACD,MAAM,GAAG,SAAS,CAkD9B;CACD"}
|
|
@@ -25,10 +25,11 @@ declare class PictTemplateMetacontrollerValueSet extends libPictTemplate {
|
|
|
25
25
|
* @param {function} fCallback - The callback function to invoke after rendering the template.
|
|
26
26
|
* @param {array} pContextArray - The context array to use for resolving the data.
|
|
27
27
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
28
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
28
29
|
*
|
|
29
30
|
* @return {void}
|
|
30
31
|
*/
|
|
31
|
-
renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function, pContextArray: any[], pScope?: any): void;
|
|
32
|
+
renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function, pContextArray: any[], pScope?: any, pState?: any): void;
|
|
32
33
|
}
|
|
33
34
|
import libPictTemplate = require("pict-template");
|
|
34
35
|
//# sourceMappingURL=Pict-Template-Metacontroller-ValueSetWithGroup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Template-Metacontroller-ValueSetWithGroup.d.ts","sourceRoot":"","sources":["../../../source/templates/Pict-Template-Metacontroller-ValueSetWithGroup.js"],"names":[],"mappings":";AAEA;;;;GAIG;AACH;IAEC;;;;OAIG;IACH,8DAaC;IATA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6BAA6B;IAC7B,OADW,OAAO,MAAM,CAAC,CACf;IACV,kBAAkB;IAClB,KADW,GAAG,CACN;
|
|
1
|
+
{"version":3,"file":"Pict-Template-Metacontroller-ValueSetWithGroup.d.ts","sourceRoot":"","sources":["../../../source/templates/Pict-Template-Metacontroller-ValueSetWithGroup.js"],"names":[],"mappings":";AAEA;;;;GAIG;AACH;IAEC;;;;OAIG;IACH,8DAaC;IATA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6BAA6B;IAC7B,OADW,OAAO,MAAM,CAAC,CACf;IACV,kBAAkB;IAClB,KADW,GAAG,CACN;IAgFT;;;;;;;;;;;OAWG;IACH,2BATW,MAAM,WACN,MAAM,sDAGN,GAAG,WACH,GAAG,GAEF,IAAI,CA4Ff;CACD"}
|
|
@@ -26,10 +26,11 @@ declare class PictTemplateMetatemplateInputTemplate extends libPictTemplate {
|
|
|
26
26
|
* @param {function | null} fCallback - The callback function.
|
|
27
27
|
* @param {array} pContextArray - The context array.
|
|
28
28
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
29
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
29
30
|
*
|
|
30
31
|
* @return {void}
|
|
31
32
|
*/
|
|
32
|
-
renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function | null, pContextArray: any[], pScope?: any): void;
|
|
33
|
+
renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function | null, pContextArray: any[], pScope?: any, pState?: any): void;
|
|
33
34
|
}
|
|
34
35
|
import libPictTemplate = require("pict-template");
|
|
35
36
|
//# sourceMappingURL=Pict-Template-Metatemplate-Input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Template-Metatemplate-Input.d.ts","sourceRoot":"","sources":["../../../source/templates/Pict-Template-Metatemplate-Input.js"],"names":[],"mappings":";AAEA;;GAEG;AACH;IAEC;;;;OAIG;IACH,8DAeC;IAXA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6FAA6F;IAC7F,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,eAAe,EAAE,OAAO,gCAAgC,CAAC,CAAA;KAAE,CAC/E;IACV,kBAAkB;IAClB,KADW,GAAG,CACN;IAKR,0BAA0B;
|
|
1
|
+
{"version":3,"file":"Pict-Template-Metatemplate-Input.d.ts","sourceRoot":"","sources":["../../../source/templates/Pict-Template-Metatemplate-Input.js"],"names":[],"mappings":";AAEA;;GAEG;AACH;IAEC;;;;OAIG;IACH,8DAeC;IAXA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6FAA6F;IAC7F,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,eAAe,EAAE,OAAO,gCAAgC,CAAC,CAAA;KAAE,CAC/E;IACV,kBAAkB;IAClB,KADW,GAAG,CACN;IAKR,0BAA0B;IAyF3B;;;;;;;;;;;OAWG;IACH,2BATW,MAAM,WACN,MAAM,aACN,WAAW,IAAI,iCAEf,GAAG,WACH,GAAG,GAEF,IAAI,CA8Ef;CACD"}
|
|
@@ -26,10 +26,11 @@ declare class PictTemplateMetatemplateInputTemplate extends libPictTemplate {
|
|
|
26
26
|
* @param {function | null} fCallback - The callback function.
|
|
27
27
|
* @param {array} pContextArray - The context array.
|
|
28
28
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
29
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
29
30
|
*
|
|
30
31
|
* @return {void}
|
|
31
32
|
*/
|
|
32
|
-
renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function | null, pContextArray: any[], pScope?: any): void;
|
|
33
|
+
renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function | null, pContextArray: any[], pScope?: any, pState?: any): void;
|
|
33
34
|
}
|
|
34
35
|
import libPictTemplate = require("pict-template");
|
|
35
36
|
//# sourceMappingURL=Pict-Template-Metatemplate-InputWithHashAddress.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Template-Metatemplate-InputWithHashAddress.d.ts","sourceRoot":"","sources":["../../../source/templates/Pict-Template-Metatemplate-InputWithHashAddress.js"],"names":[],"mappings":";AAEA;;GAEG;AACH;IAEC;;;;OAIG;IACH,8DAeC;IAXA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6FAA6F;IAC7F,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,eAAe,EAAE,OAAO,gCAAgC,CAAC,CAAA;KAAE,CAC/E;IACV,kBAAkB;IAClB,KADW,GAAG,CACN;IAKR,0BAA0B;
|
|
1
|
+
{"version":3,"file":"Pict-Template-Metatemplate-InputWithHashAddress.d.ts","sourceRoot":"","sources":["../../../source/templates/Pict-Template-Metatemplate-InputWithHashAddress.js"],"names":[],"mappings":";AAEA;;GAEG;AACH;IAEC;;;;OAIG;IACH,8DAeC;IAXA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6FAA6F;IAC7F,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,eAAe,EAAE,OAAO,gCAAgC,CAAC,CAAA;KAAE,CAC/E;IACV,kBAAkB;IAClB,KADW,GAAG,CACN;IAKR,0BAA0B;IAoG3B;;;;;;;;;;;OAWG;IACH,2BATW,MAAM,WACN,MAAM,aACN,WAAW,IAAI,iCAEf,GAAG,WACH,GAAG,GAEF,IAAI,CAuFf;CACD"}
|
|
@@ -26,10 +26,11 @@ declare class PictTemplateInputWithViewTemplate extends libPictTemplate {
|
|
|
26
26
|
* @param {function | null} fCallback - The callback function.
|
|
27
27
|
* @param {array} pContextArray - The context array.
|
|
28
28
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
29
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
29
30
|
*
|
|
30
31
|
* @return {void}
|
|
31
32
|
*/
|
|
32
|
-
renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function | null, pContextArray: any[], pScope?: any): void;
|
|
33
|
+
renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function | null, pContextArray: any[], pScope?: any, pState?: any): void;
|
|
33
34
|
}
|
|
34
35
|
import libPictTemplate = require("pict-template");
|
|
35
36
|
//# sourceMappingURL=Pict-Template-Metatemplate-InputWithView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Template-Metatemplate-InputWithView.d.ts","sourceRoot":"","sources":["../../../source/templates/Pict-Template-Metatemplate-InputWithView.js"],"names":[],"mappings":";AAEA;;GAEG;AACH;IAEC;;;;OAIG;IACH,8DAeC;IAXA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6FAA6F;IAC7F,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,eAAe,EAAE,OAAO,gCAAgC,CAAC,CAAA;KAAE,CAC/E;IACV,kBAAkB;IAClB,KADW,GAAG,CACN;IAKR,0BAA0B;
|
|
1
|
+
{"version":3,"file":"Pict-Template-Metatemplate-InputWithView.d.ts","sourceRoot":"","sources":["../../../source/templates/Pict-Template-Metatemplate-InputWithView.js"],"names":[],"mappings":";AAEA;;GAEG;AACH;IAEC;;;;OAIG;IACH,8DAeC;IAXA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6FAA6F;IAC7F,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,eAAe,EAAE,OAAO,gCAAgC,CAAC,CAAA;KAAE,CAC/E;IACV,kBAAkB;IAClB,KADW,GAAG,CACN;IAKR,0BAA0B;IAkG3B;;;;;;;;;;;OAWG;IACH,2BATW,MAAM,WACN,MAAM,aACN,WAAW,IAAI,iCAEf,GAAG,WACH,GAAG,GAEF,IAAI,CAwFf;CACD"}
|
package/types/source/templates/Pict-Template-Metatemplate-InputWithViewAndDescriptorAddress.d.ts
CHANGED
|
@@ -27,10 +27,11 @@ declare class PictTemplateInputWithViewAndDescriptorAddressTemplate extends libP
|
|
|
27
27
|
* @param {function | null} fCallback - The callback function.
|
|
28
28
|
* @param {array} pContextArray - The context array.
|
|
29
29
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
30
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
30
31
|
*
|
|
31
32
|
* @return {void}
|
|
32
33
|
*/
|
|
33
|
-
renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function | null, pContextArray: any[], pScope?: any): void;
|
|
34
|
+
renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function | null, pContextArray: any[], pScope?: any, pState?: any): void;
|
|
34
35
|
_shoreUpDescriptor(pDescriptor: any): void;
|
|
35
36
|
}
|
|
36
37
|
import libPictTemplate = require("pict-template");
|
package/types/source/templates/Pict-Template-Metatemplate-InputWithViewAndDescriptorAddress.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Template-Metatemplate-InputWithViewAndDescriptorAddress.d.ts","sourceRoot":"","sources":["../../../source/templates/Pict-Template-Metatemplate-InputWithViewAndDescriptorAddress.js"],"names":[],"mappings":";AAEA;;GAEG;AACH;IAEC;;;;OAIG;IACH,8DAeC;IAXA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,8GAA8G;IAC9G,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,eAAe,EAAE,OAAO,gCAAgC,CAAC,CAAC;QAAC,UAAU,EAAE,GAAG,CAAA;KAAE,CAChG;IACV,kBAAkB;IAClB,KADW,GAAG,CACN;IAKR,0BAA0B;
|
|
1
|
+
{"version":3,"file":"Pict-Template-Metatemplate-InputWithViewAndDescriptorAddress.d.ts","sourceRoot":"","sources":["../../../source/templates/Pict-Template-Metatemplate-InputWithViewAndDescriptorAddress.js"],"names":[],"mappings":";AAEA;;GAEG;AACH;IAEC;;;;OAIG;IACH,8DAeC;IAXA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,8GAA8G;IAC9G,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,eAAe,EAAE,OAAO,gCAAgC,CAAC,CAAC;QAAC,UAAU,EAAE,GAAG,CAAA;KAAE,CAChG;IACV,kBAAkB;IAClB,KADW,GAAG,CACN;IAKR,0BAA0B;IAkF3B;;;;;;;;;;;OAWG;IACH,2BATW,MAAM,WACN,MAAM,aACN,WAAW,IAAI,iCAEf,GAAG,WACH,GAAG,GAEF,IAAI,CAiEf;IAED,2CAsCC;CACD"}
|
|
@@ -26,10 +26,11 @@ declare class PictTemplateInputWithViewAndHashAddressTemplate extends libPictTem
|
|
|
26
26
|
* @param {function | null} fCallback - The callback function.
|
|
27
27
|
* @param {array} pContextArray - The context array.
|
|
28
28
|
* @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
|
|
29
|
+
* @param {any} [pState] - A catchall state object for plumbing data through template processing.
|
|
29
30
|
*
|
|
30
31
|
* @return {void}
|
|
31
32
|
*/
|
|
32
|
-
renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function | null, pContextArray: any[], pScope?: any): void;
|
|
33
|
+
renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function | null, pContextArray: any[], pScope?: any, pState?: any): void;
|
|
33
34
|
}
|
|
34
35
|
import libPictTemplate = require("pict-template");
|
|
35
36
|
//# sourceMappingURL=Pict-Template-Metatemplate-InputWithViewAndHashAddress.d.ts.map
|
package/types/source/templates/Pict-Template-Metatemplate-InputWithViewAndHashAddress.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Template-Metatemplate-InputWithViewAndHashAddress.d.ts","sourceRoot":"","sources":["../../../source/templates/Pict-Template-Metatemplate-InputWithViewAndHashAddress.js"],"names":[],"mappings":";AAEA;;GAEG;AACH;IAEC;;;;OAIG;IACH,8DAeC;IAXA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6FAA6F;IAC7F,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,eAAe,EAAE,OAAO,gCAAgC,CAAC,CAAA;KAAE,CAC/E;IACV,kBAAkB;IAClB,KADW,GAAG,CACN;IAKR,0BAA0B;
|
|
1
|
+
{"version":3,"file":"Pict-Template-Metatemplate-InputWithViewAndHashAddress.d.ts","sourceRoot":"","sources":["../../../source/templates/Pict-Template-Metatemplate-InputWithViewAndHashAddress.js"],"names":[],"mappings":";AAEA;;GAEG;AACH;IAEC;;;;OAIG;IACH,8DAeC;IAXA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6FAA6F;IAC7F,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,eAAe,EAAE,OAAO,gCAAgC,CAAC,CAAA;KAAE,CAC/E;IACV,kBAAkB;IAClB,KADW,GAAG,CACN;IAKR,0BAA0B;IA6G3B;;;;;;;;;;;OAWG;IACH,2BATW,MAAM,WACN,MAAM,aACN,WAAW,IAAI,iCAEf,GAAG,WACH,GAAG,GAEF,IAAI,CAiGf;CACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Template-Proxy-PluckJoinUnique.d.ts","sourceRoot":"","sources":["../../../source/templates/Pict-Template-Proxy-PluckJoinUnique.js"],"names":[],"mappings":";AAEA;IAEC;;;;OAIG;IACH,8DAaC;IATA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6BAA6B;IAC7B,OADW,OAAO,MAAM,CAAC,CACf;IACV,kBAAkB;IAClB,KADW,GAAG,CACN;
|
|
1
|
+
{"version":3,"file":"Pict-Template-Proxy-PluckJoinUnique.d.ts","sourceRoot":"","sources":["../../../source/templates/Pict-Template-Proxy-PluckJoinUnique.js"],"names":[],"mappings":";AAEA;IAEC;;;;OAIG;IACH,8DAaC;IATA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6BAA6B;IAC7B,OADW,OAAO,MAAM,CAAC,CACf;IACV,kBAAkB;IAClB,KADW,GAAG,CACN;CA2ET"}
|
|
@@ -9,14 +9,7 @@ export = PictViewDynamicForm;
|
|
|
9
9
|
*/
|
|
10
10
|
declare class PictViewDynamicForm extends libPictViewClass {
|
|
11
11
|
constructor(pFable: any, pOptions: any, pServiceHash: any);
|
|
12
|
-
|
|
13
|
-
pict: import("pict") & {
|
|
14
|
-
PictApplication: import("pict-application");
|
|
15
|
-
log: any;
|
|
16
|
-
instantiateServiceProviderWithoutRegistration: (hash: string) => any;
|
|
17
|
-
};
|
|
18
|
-
/** @type {import('../services/Fable-Service-TransactionTracking.js')} */
|
|
19
|
-
transactionTracking: import("../services/Fable-Service-TransactionTracking.js");
|
|
12
|
+
transactionTracking: import("pict/types/source/services/Fable-Service-TransactionTracking");
|
|
20
13
|
/** @type {Record<string, any>} */
|
|
21
14
|
_PackagePictView: Record<string, any>;
|
|
22
15
|
sectionDefinition: any;
|
|
@@ -110,15 +103,6 @@ declare class PictViewDynamicForm extends libPictViewClass {
|
|
|
110
103
|
* @returns {any} The result of the solve operation.
|
|
111
104
|
*/
|
|
112
105
|
onSolve(): any;
|
|
113
|
-
/**
|
|
114
|
-
* Lifecycle hook that triggers after the view is rendered.
|
|
115
|
-
*
|
|
116
|
-
* @param {any} [pRenderable] - The renderable that was rendered.
|
|
117
|
-
* @param {string} [pRenderDestinationAddress] - The address where the renderable was rendered.
|
|
118
|
-
* @param {any} [pRecord] - The record (data) that was used by the renderable.
|
|
119
|
-
* @param {string} [pContent] - The content that was rendered.
|
|
120
|
-
*/
|
|
121
|
-
onAfterRender(pRenderable?: any, pRenderDestinationAddress?: string, pRecord?: any, pContent?: string): boolean;
|
|
122
106
|
/**
|
|
123
107
|
* Executes layout provider functions based on the given function name.
|
|
124
108
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-View-DynamicForm.d.ts","sourceRoot":"","sources":["../../../source/views/Pict-View-DynamicForm.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Pict-View-DynamicForm.d.ts","sourceRoot":"","sources":["../../../source/views/Pict-View-DynamicForm.js"],"names":[],"mappings":"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"}
|
|
@@ -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,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;
|
|
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;IAwBD;;;;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,qEAkIC;IA9GA,yBAAiD;IAgHlD;;;OAGG;IACH,gCAFW,MAAM,QAgBhB;IAED;;;;OAIG;IACH,4BAFa,OAAO,CAKnB;CACD;;;;;qCAGU,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;oBAznBjB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,KAAK,MAAM"}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
const libFableServiceProviderBase = require('fable-serviceproviderbase');
|
|
2
|
-
|
|
3
|
-
/*
|
|
4
|
-
* Provides transaction tracking with keys and events, allowing us to block repeat attempts.
|
|
5
|
-
* Once the shape is solidified, will move it back to the fable codebase
|
|
6
|
-
*/
|
|
7
|
-
class TransactionTracking extends libFableServiceProviderBase
|
|
8
|
-
{
|
|
9
|
-
constructor(pFable, pOptions, pServiceHash)
|
|
10
|
-
{
|
|
11
|
-
// Intersect default options, parent constructor, service information
|
|
12
|
-
super(pFable, pOptions, pServiceHash);
|
|
13
|
-
|
|
14
|
-
/** @type {import('pict') & { addAndInstantiateSingletonService: (hash: string, options: any, prototype: any) => any }} */
|
|
15
|
-
this.fable;
|
|
16
|
-
/** @type {any} */
|
|
17
|
-
this.log;
|
|
18
|
-
/** @type {string} */
|
|
19
|
-
this.UUID;
|
|
20
|
-
|
|
21
|
-
this.transactionMap = {};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
get transactions()
|
|
25
|
-
{
|
|
26
|
-
return this.transactionMap;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
logToTransaction(pKey, pMessage, pCategory)
|
|
30
|
-
{
|
|
31
|
-
let tmpTransaction = this.transactionMap[pKey];
|
|
32
|
-
if (tmpTransaction == null)
|
|
33
|
-
{
|
|
34
|
-
this.log.warn(`TransactionTracking logToTransaction key [${pKey}] does not exist; auto creating...`);
|
|
35
|
-
tmpTransaction = this.registerTransaction(pKey);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
let tmpCategory = typeof(pCategory) === 'string' ? pCategory : 'General';
|
|
39
|
-
|
|
40
|
-
this.transactionMap[pKey].Log.push({TimeStamp: new Date(), Category:tmpCategory, Message:pMessage});
|
|
41
|
-
|
|
42
|
-
//this.log.trace(`TransactionTracking logToTransaction [${pKey}]: (${tmpCategory}) ${pMessage}`);
|
|
43
|
-
|
|
44
|
-
return true;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
registerTransaction(pKey)
|
|
48
|
-
{
|
|
49
|
-
if (this.transactionMap[pKey] != null)
|
|
50
|
-
{
|
|
51
|
-
//this.log.warn(`TransactionTracking registerTransaction key [${pKey}] already exists... returning existing transaction.`);
|
|
52
|
-
return this.transactionMap[pKey];
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
this.transactionMap[pKey] = (
|
|
56
|
-
{
|
|
57
|
-
TransactionKey: pKey,
|
|
58
|
-
Events: {},
|
|
59
|
-
Log: []
|
|
60
|
-
});
|
|
61
|
-
return this.transactionMap[pKey];
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
checkEvent(pKey, pEvent, pHash)
|
|
65
|
-
{
|
|
66
|
-
let tmpHash = (typeof(pHash) === 'string') ? pHash : '';
|
|
67
|
-
let tmpTransaction = this.transactionMap[pKey];
|
|
68
|
-
if (tmpTransaction == null)
|
|
69
|
-
{
|
|
70
|
-
this.log.warn(`TransactionTracking checkTransactionEvent event [${pEvent}]->[${tmpHash}] key [${pKey}] does not exist; auto creating...`);
|
|
71
|
-
tmpTransaction = this.registerTransaction(pKey);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
if (tmpTransaction.Events[pEvent] == null)
|
|
75
|
-
{
|
|
76
|
-
tmpTransaction.Events[pEvent] = {};
|
|
77
|
-
}
|
|
78
|
-
if (tmpHash in tmpTransaction.Events[pEvent])
|
|
79
|
-
{
|
|
80
|
-
//this.log.warn(`TransactionTracking checkTransactionEvent event [${pEvent}]->[${tmpHash}] key [${pKey}] firing a second time...`);
|
|
81
|
-
this.logToTransaction(pKey, `Event [${pEvent}]->[${tmpHash}] already exists in transaction [${pKey}]`, 'Event');
|
|
82
|
-
return false;
|
|
83
|
-
}
|
|
84
|
-
else
|
|
85
|
-
{
|
|
86
|
-
//this.log.warn(`TransactionTracking checkTransactionEvent event [${pEvent}]->[${tmpHash}] key [${pKey}] firing a first time...`);
|
|
87
|
-
this.logToTransaction(pKey, `Event [${pEvent}]->[${tmpHash}] registered in transaction [${pKey}]`, 'Event');
|
|
88
|
-
tmpTransaction.Events[pEvent][tmpHash] = true;
|
|
89
|
-
return true;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
module.exports = TransactionTracking;
|
|
95
|
-
|
|
96
|
-
/** @type {Record<string, any>} */
|
|
97
|
-
TransactionTracking.default_configuration = { };
|