pict-section-form 1.0.99 → 1.0.100

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 (22) hide show
  1. package/package.json +1 -1
  2. package/source/templates/Pict-Template-ControlFromDynamicManifest.js +6 -2
  3. package/source/templates/Pict-Template-ControlFromDynamicManifestForHash.js +6 -2
  4. package/source/templates/Pict-Template-DyanmicView-Value.js +6 -2
  5. package/source/templates/Pict-Template-DyanmicView-ValueByHash.js +6 -2
  6. package/source/templates/Pict-Template-Metacontroller-ValueSetWithGroup.js +6 -2
  7. package/source/templates/Pict-Template-Metatemplate-Input.js +15 -3
  8. package/source/templates/Pict-Template-Metatemplate-InputWithHashAddress.js +30 -12
  9. package/types/source/templates/Pict-Template-ControlFromDynamicManifest.d.ts +3 -3
  10. package/types/source/templates/Pict-Template-ControlFromDynamicManifest.d.ts.map +1 -1
  11. package/types/source/templates/Pict-Template-ControlFromDynamicManifestForHash.d.ts +3 -3
  12. package/types/source/templates/Pict-Template-ControlFromDynamicManifestForHash.d.ts.map +1 -1
  13. package/types/source/templates/Pict-Template-DyanmicView-Value.d.ts +3 -3
  14. package/types/source/templates/Pict-Template-DyanmicView-Value.d.ts.map +1 -1
  15. package/types/source/templates/Pict-Template-DyanmicView-ValueByHash.d.ts +3 -3
  16. package/types/source/templates/Pict-Template-DyanmicView-ValueByHash.d.ts.map +1 -1
  17. package/types/source/templates/Pict-Template-Metacontroller-ValueSetWithGroup.d.ts +3 -1
  18. package/types/source/templates/Pict-Template-Metacontroller-ValueSetWithGroup.d.ts.map +1 -1
  19. package/types/source/templates/Pict-Template-Metatemplate-Input.d.ts +11 -1
  20. package/types/source/templates/Pict-Template-Metatemplate-Input.d.ts.map +1 -1
  21. package/types/source/templates/Pict-Template-Metatemplate-InputWithHashAddress.d.ts +11 -1
  22. package/types/source/templates/Pict-Template-Metatemplate-InputWithHashAddress.d.ts.map +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pict-section-form",
3
- "version": "1.0.99",
3
+ "version": "1.0.100",
4
4
  "description": "Pict dynamic form sections",
5
5
  "main": "source/Pict-Section-Form.js",
6
6
  "directories": {
@@ -78,9 +78,9 @@ class PictTemplateControlFromDynamicManifest extends libPictTemplate
78
78
  *
79
79
  * @param {string} pTemplateHash - The schema hash of the control.
80
80
  * @param {object} pRecord - The record object.
81
- * @param {function} fCallback - The callback function.
81
+ * @param {function | null} fCallback - The callback function.
82
82
  * @param {array} pContextArray - The context array.
83
- * @returns {string} - The rendered template.
83
+ * @returns {string | undefined} - The rendered template or undefined if callback is provided.
84
84
  */
85
85
  renderAsync(pTemplateHash, pRecord, fCallback, pContextArray)
86
86
  {
@@ -94,6 +94,10 @@ class PictTemplateControlFromDynamicManifest extends libPictTemplate
94
94
  if (!descriptor)
95
95
  {
96
96
  this.log.error(`PictTemplateControlFromDynamicManifest: Cannot find descriptor for address [${tmpHash}]`);
97
+ if (typeof fCallback === 'function')
98
+ {
99
+ return fCallback(null, '');
100
+ }
97
101
  return '';
98
102
  }
99
103
  const tmpView = this.pict.views[descriptor.PictForm.ViewHash];
@@ -43,9 +43,9 @@ class PictTemplateControlFromDynamicManifest extends libPictTemplate
43
43
  *
44
44
  * @param {string} pTemplateHash - The schema hash of the control.
45
45
  * @param {object} pRecord - The record object.
46
- * @param {function} fCallback - The callback function.
46
+ * @param {function | null} fCallback - The callback function.
47
47
  * @param {array} pContextArray - The context array.
48
- * @returns {string} - The rendered template.
48
+ * @returns {string | undefined} - The rendered template or undefined if callback is provided.
49
49
  */
50
50
  renderAsync(pTemplateHash, pRecord, fCallback, pContextArray)
51
51
  {
@@ -59,6 +59,10 @@ class PictTemplateControlFromDynamicManifest extends libPictTemplate
59
59
  if (!descriptor)
60
60
  {
61
61
  this.log.error(`PictTemplateControlFromDynamicManifest: Cannot find descriptor for hash [${tmpHash}]`);
62
+ if (typeof fCallback === 'function')
63
+ {
64
+ return fCallback(null, '');
65
+ }
62
66
  return '';
63
67
  }
64
68
  const tmpView = this.pict.views[descriptor.PictForm.ViewHash];
@@ -43,9 +43,9 @@ class PictTemplateGetViewSchemaValue extends libPictTemplate
43
43
  *
44
44
  * @param {string} pTemplateHash - The schema hash of the control.
45
45
  * @param {object} pRecord - The record object.
46
- * @param {function} fCallback - The callback function.
46
+ * @param {function | null} fCallback - The callback function.
47
47
  * @param {array} pContextArray - The context array.
48
- * @returns {string?} - The rendered template.
48
+ * @returns {string | undefined} - The rendered template or undefined if callback is provided.
49
49
  */
50
50
  renderAsync(pTemplateHash, pRecord, fCallback, pContextArray)
51
51
  {
@@ -58,6 +58,10 @@ class PictTemplateGetViewSchemaValue extends libPictTemplate
58
58
  if (!descriptor)
59
59
  {
60
60
  this.log.error(`PictTemplateGetViewSchemaValue: Cannot find descriptor for address [${tmpSchemaAddress}]`);
61
+ if (typeof fCallback === 'function')
62
+ {
63
+ return fCallback(null, '');
64
+ }
61
65
  return '';
62
66
  }
63
67
  /** @type {import('../views/Pict-View-DynamicForm.js')} */
@@ -43,9 +43,9 @@ class PictTemplateGetViewSchemaValueByHash extends libPictTemplate
43
43
  *
44
44
  * @param {string} pTemplateHash - The schema hash of the control.
45
45
  * @param {object} pRecord - The record object.
46
- * @param {function} fCallback - The callback function.
46
+ * @param {function | null} fCallback - The callback function.
47
47
  * @param {array} pContextArray - The context array.
48
- * @returns {string} - The rendered template.
48
+ * @returns {string | undefined} - The rendered template or undefined if callback is provided.
49
49
  */
50
50
  renderAsync(pTemplateHash, pRecord, fCallback, pContextArray)
51
51
  {
@@ -58,6 +58,10 @@ class PictTemplateGetViewSchemaValueByHash extends libPictTemplate
58
58
  if (!descriptor)
59
59
  {
60
60
  this.log.error(`PictTemplateGetViewSchemaValueByHash: Cannot find descriptor for address [${tmpSchemaHash}]`);
61
+ if (typeof fCallback === 'function')
62
+ {
63
+ return fCallback(null, '');
64
+ }
61
65
  return '';
62
66
  }
63
67
  /** @type {import('../views/Pict-View-DynamicForm.js')} */
@@ -106,6 +106,8 @@ class PictTemplateMetacontrollerValueSet extends libPictTemplate
106
106
  * @param {object} pRecord - The record object to use for rendering the template.
107
107
  * @param {function} fCallback - The callback function to invoke after rendering the template.
108
108
  * @param {array} pContextArray - The context array to use for resolving the data.
109
+ *
110
+ * @return {void}
109
111
  */
110
112
  renderAsync(pTemplateHash, pRecord, fCallback, pContextArray)
111
113
  {
@@ -173,7 +175,7 @@ class PictTemplateMetacontrollerValueSet extends libPictTemplate
173
175
  {
174
176
  // No address was provided, just render the template with what this template has.
175
177
  // The async portion of this is a mind bender because of how entry can happen dynamically from templates
176
- return this.pict.parseTemplateSetByHash(tmpTemplateFromMapHash, pRecord,
178
+ this.pict.parseTemplateSetByHash(tmpTemplateFromMapHash, pRecord,
177
179
  (pError, pValue) =>
178
180
  {
179
181
  if (pError)
@@ -182,10 +184,11 @@ class PictTemplateMetacontrollerValueSet extends libPictTemplate
182
184
  }
183
185
  return tmpCallback(null, pValue);
184
186
  }, pContextArray);
187
+ return;
185
188
  }
186
189
  else
187
190
  {
188
- return this.pict.parseTemplateSetByHash(tmpTemplateFromMapHash, tmpData,
191
+ this.pict.parseTemplateSetByHash(tmpTemplateFromMapHash, tmpData,
189
192
  (pError, pValue) =>
190
193
  {
191
194
  if (pError)
@@ -194,6 +197,7 @@ class PictTemplateMetacontrollerValueSet extends libPictTemplate
194
197
  }
195
198
  return tmpCallback(null, pValue);
196
199
  }, pContextArray);
200
+ return;
197
201
  }
198
202
  }
199
203
  }
@@ -111,6 +111,16 @@ class PictTemplateMetatemplateInputTemplate extends libPictTemplate
111
111
  return this.pict.parseTemplate(tmpTemplate, tmpInput, null, [tmpMetatemplateGenerator.dynamicInputView]);
112
112
  }
113
113
 
114
+ /**
115
+ * Renders the PICT Metacontroller Template. The Record reference is ignored in this template.
116
+ *
117
+ * @param {string} pTemplateHash - The schema hash of the control.
118
+ * @param {object} pRecord - The record object.
119
+ * @param {function | null} fCallback - The callback function.
120
+ * @param {array} pContextArray - The context array.
121
+ *
122
+ * @return {void}
123
+ */
114
124
  renderAsync(pTemplateHash, pRecord, fCallback, pContextArray)
115
125
  {
116
126
  let tmpHash = pTemplateHash.trim();
@@ -131,7 +141,7 @@ class PictTemplateMetatemplateInputTemplate extends libPictTemplate
131
141
  if (tmpHashTemplateSeparator.length < 2)
132
142
  {
133
143
  this.log.warn(`MetaTemplateInput template requires at least parameters (Address and DataType) [${tmpHash}]`);
134
- return '';
144
+ return fCallback(null, '');
135
145
  }
136
146
  tmpInputName = tmpHashTemplateSeparator[0];
137
147
  tmpInputAddress = tmpHashTemplateSeparator[1];
@@ -170,7 +180,8 @@ class PictTemplateMetatemplateInputTemplate extends libPictTemplate
170
180
  {
171
181
  let tmpInput = tmpRow.Inputs[i];
172
182
  let tmpTemplate = tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpMetatemplateGenerator.dynamicInputView, tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`);
173
- return this.pict.parseTemplate(tmpTemplate, tmpInput, fCallback, [tmpMetatemplateGenerator.dynamicInputView]);
183
+ this.pict.parseTemplate(tmpTemplate, tmpInput, fCallback, [tmpMetatemplateGenerator.dynamicInputView]);
184
+ return;
174
185
  }
175
186
  }
176
187
 
@@ -184,7 +195,8 @@ class PictTemplateMetatemplateInputTemplate extends libPictTemplate
184
195
  // Now generate the metatemplate
185
196
  let tmpTemplate = tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpMetatemplateGenerator.dynamicInputView, tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`);
186
197
 
187
- return this.pict.parseTemplate(tmpTemplate, tmpInput, fCallback, [tmpMetatemplateGenerator.dynamicInputView]);
198
+ this.pict.parseTemplate(tmpTemplate, tmpInput, fCallback, [tmpMetatemplateGenerator.dynamicInputView]);
199
+ return;
188
200
  }
189
201
  }
190
202
 
@@ -71,17 +71,19 @@ class PictTemplateMetatemplateInputTemplate extends libPictTemplate
71
71
  tmpInputType = tmpHashTemplateSeparator[3];
72
72
  }
73
73
  // Construct a fake input object
74
- let tmpInput = {
74
+ const tmpInput =
75
+ {
75
76
  Address: tmpInputAddress,
76
77
  DataAddress: tmpInputAddress,
77
78
  Name: tmpInputName,
78
79
  Hash: this.fable.ManifestFactory.sanitizeObjectKey(tmpInputAddress),
79
80
  DataType: tmpDataType,
80
- PictForm: {
81
+ PictForm:
82
+ {
81
83
  InformaryDataAddress: tmpInputAddress,
82
84
  GroupIndex: 0,
83
85
  Row: 0
84
- }
86
+ },
85
87
  };
86
88
 
87
89
  this.currentInputIndex++;
@@ -98,8 +100,9 @@ class PictTemplateMetatemplateInputTemplate extends libPictTemplate
98
100
  {
99
101
  if (tmpRow.Inputs[i].Hash === tmpInput.Hash)
100
102
  {
101
- let tmpInput = tmpRow.Inputs[i];
102
- return this.pict.parseTemplate(tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpMetatemplateGenerator.dynamicInputView, tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`), tmpInput, null, [tmpMetatemplateGenerator.dynamicInputView]);
103
+ const tmpInput = tmpRow.Inputs[i];
104
+ return this.pict.parseTemplate(tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpMetatemplateGenerator.dynamicInputView,
105
+ tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`), tmpInput, null, [tmpMetatemplateGenerator.dynamicInputView]);
103
106
  }
104
107
  }
105
108
 
@@ -111,12 +114,23 @@ class PictTemplateMetatemplateInputTemplate extends libPictTemplate
111
114
  this.pict.providers.MetatemplateMacros.buildInputMacros(tmpMetatemplateGenerator.dynamicInputView, tmpInput);
112
115
 
113
116
  // Now generate the metatemplate
114
- let tmpTemplate = tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpMetatemplateGenerator.dynamicInputView, tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`);
117
+ const tmpTemplate = tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpMetatemplateGenerator.dynamicInputView,
118
+ tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`);
115
119
 
116
120
  // Now parse it and return it.
117
121
  return this.pict.parseTemplate(tmpTemplate, tmpInput, null, [tmpMetatemplateGenerator.dynamicInputView]);
118
122
  }
119
123
 
124
+ /**
125
+ * Renders the PICT Metacontroller Template. The Record reference is ignored in this template.
126
+ *
127
+ * @param {string} pTemplateHash - The schema hash of the control.
128
+ * @param {object} pRecord - The record object.
129
+ * @param {function | null} fCallback - The callback function.
130
+ * @param {array} pContextArray - The context array.
131
+ *
132
+ * @return {void}
133
+ */
120
134
  renderAsync(pTemplateHash, pRecord, fCallback, pContextArray)
121
135
  {
122
136
  let tmpHash = pTemplateHash.trim();
@@ -137,7 +151,7 @@ class PictTemplateMetatemplateInputTemplate extends libPictTemplate
137
151
  if (tmpHashTemplateSeparator.length < 2)
138
152
  {
139
153
  this.log.warn(`MetaTemplateInput template requires at least parameters (Address and DataType) [${tmpHash}]`);
140
- return '';
154
+ return fCallback(null, '');
141
155
  }
142
156
  tmpInputName = tmpHashTemplateSeparator[0];
143
157
  // This template expects this address to be a location to get the hash from...
@@ -145,7 +159,7 @@ class PictTemplateMetatemplateInputTemplate extends libPictTemplate
145
159
  if ((typeof(tmpInputAddress) !== 'string') || tmpInputAddress.length < 1)
146
160
  {
147
161
  this.log.warn(`MetaTemplateInput template requires a valid Address for an Address in the second parameter [${tmpHash}]`);
148
- return '';
162
+ return fCallback(null, '');
149
163
  }
150
164
  tmpDataType = tmpHashTemplateSeparator[2];
151
165
  if (tmpHashTemplateSeparator.length > 3)
@@ -181,8 +195,10 @@ class PictTemplateMetatemplateInputTemplate extends libPictTemplate
181
195
  if (tmpRow.Inputs[i].Hash === tmpInput.Hash)
182
196
  {
183
197
  let tmpInput = tmpRow.Inputs[i];
184
- let tmpTemplate = tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpMetatemplateGenerator.dynamicInputView, tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`);
185
- return this.pict.parseTemplate(tmpTemplate, tmpInput, fCallback, [tmpMetatemplateGenerator.dynamicInputView]);
198
+ let tmpTemplate = tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpMetatemplateGenerator.dynamicInputView,
199
+ tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`);
200
+ this.pict.parseTemplate(tmpTemplate, tmpInput, fCallback, [tmpMetatemplateGenerator.dynamicInputView]);
201
+ return;
186
202
  }
187
203
  }
188
204
 
@@ -194,9 +210,11 @@ class PictTemplateMetatemplateInputTemplate extends libPictTemplate
194
210
  this.pict.providers.MetatemplateMacros.buildInputMacros(tmpMetatemplateGenerator.dynamicInputView, tmpInput);
195
211
 
196
212
  // Now generate the metatemplate
197
- let tmpTemplate = tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpMetatemplateGenerator.dynamicInputView, tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`);
213
+ const tmpTemplate = tmpMetatemplateGenerator.getInputMetatemplateTemplateReference(tmpMetatemplateGenerator.dynamicInputView,
214
+ tmpInput.DataType, tmpInput.PictForm.InputType, `getInput("0","0","${tmpInput.PictForm.InputIndex}")`);
198
215
 
199
- return this.pict.parseTemplate(tmpTemplate, tmpInput, fCallback, [tmpMetatemplateGenerator.dynamicInputView]);
216
+ this.pict.parseTemplate(tmpTemplate, tmpInput, fCallback, [tmpMetatemplateGenerator.dynamicInputView]);
217
+ return;
200
218
  }
201
219
  }
202
220
 
@@ -55,11 +55,11 @@ declare class PictTemplateControlFromDynamicManifest extends libPictTemplate {
55
55
  *
56
56
  * @param {string} pTemplateHash - The schema hash of the control.
57
57
  * @param {object} pRecord - The record object.
58
- * @param {function} fCallback - The callback function.
58
+ * @param {function | null} fCallback - The callback function.
59
59
  * @param {array} pContextArray - The context array.
60
- * @returns {string} - The rendered template.
60
+ * @returns {string | undefined} - The rendered template or undefined if callback is provided.
61
61
  */
62
- renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function, pContextArray: any[]): string;
62
+ renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function | null, pContextArray: any[]): string | undefined;
63
63
  }
64
64
  declare namespace PictTemplateControlFromDynamicManifest {
65
65
  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;IAmBT;;;;;;;;OAQG;IACH,2BANW,MAAM,WACN,MAAM,8CAGJ,MAAM,CA0BlB;CACD;;;;;gBA1GY;IACN,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,KAAK,EAAE,MAAM,QAAQ,CAAC;IACtB,WAAW,EAAE,CAAC,eAAe,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,YAAY,EAAE,CAAC,SAAS,EAAE,GAAG,KAAK,IAAI,CAAC;IACvC,SAAS,EAAE,MAAM,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,GAAG,CAAC;QAAC,gBAAgB,EAAE,GAAG,CAAC;KAAE,CAAC;IAC/E,aAAa,EAAE,CA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AAE,GAAG,KAAK,GAAG,CAAC;IAC3C,gBAAgB,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,oBAAoB,EAAE,OAAO,KAAK,IAAI,CAAC;IACxE,cAAc,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,oBAAoB,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,WAAW,EAAE,GAAG,KAAK,OAAO,KAAK,IAAI,CAAC;IAC9G,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,GAAG,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC,aAAa,MAAS;IACtB,kBAAkB,MAAS;CAC9B"}
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;IAmBT;;;;;;;;OAQG;IACH,2BANW,MAAM,WACN,MAAM,aACN,WAAW,IAAI,yBAEb,MAAM,GAAG,SAAS,CA8B9B;CACD;;;;;gBA9GY;IACN,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,KAAK,EAAE,MAAM,QAAQ,CAAC;IACtB,WAAW,EAAE,CAAC,eAAe,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,YAAY,EAAE,CAAC,SAAS,EAAE,GAAG,KAAK,IAAI,CAAC;IACvC,SAAS,EAAE,MAAM,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM;QAAE,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E,GAAG,KAAK,IAAI,CAAC;IAC7E,QAAQ,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC;IACpC,eAAe,EAAE,CAAC,WAAW,EAAE,GAAG,KAAK,GAAG,CAAC;IAC3C,gBAAgB,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,oBAAoB,EAAE,OAAO,KAAK,IAAI,CAAC;IACxE,cAAc,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,oBAAoB,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,WAAW,EAAE,GAAG,KAAK,OAAO,KAAK,IAAI,CAAC;IAC9G,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,GAAG,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC,aAAa,MAAS;IACtB,kBAAkB,MAAS;CAC9B"}
@@ -22,11 +22,11 @@ declare class PictTemplateControlFromDynamicManifest extends libPictTemplate {
22
22
  *
23
23
  * @param {string} pTemplateHash - The schema hash of the control.
24
24
  * @param {object} pRecord - The record object.
25
- * @param {function} fCallback - The callback function.
25
+ * @param {function | null} fCallback - The callback function.
26
26
  * @param {array} pContextArray - The context array.
27
- * @returns {string} - The rendered template.
27
+ * @returns {string | undefined} - The rendered template or undefined if callback is provided.
28
28
  */
29
- renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function, pContextArray: any[]): string;
29
+ renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function | null, pContextArray: any[]): string | undefined;
30
30
  }
31
31
  import libPictTemplate = require("pict-template");
32
32
  //# 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;IAmBT;;;;;;;;OAQG;IACH,2BANW,MAAM,WACN,MAAM,8CAGJ,MAAM,CA0BlB;CACD"}
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;IAmBT;;;;;;;;OAQG;IACH,2BANW,MAAM,WACN,MAAM,aACN,WAAW,IAAI,yBAEb,MAAM,GAAG,SAAS,CA8B9B;CACD"}
@@ -22,11 +22,11 @@ declare class PictTemplateGetViewSchemaValue extends libPictTemplate {
22
22
  *
23
23
  * @param {string} pTemplateHash - The schema hash of the control.
24
24
  * @param {object} pRecord - The record object.
25
- * @param {function} fCallback - The callback function.
25
+ * @param {function | null} fCallback - The callback function.
26
26
  * @param {array} pContextArray - The context array.
27
- * @returns {string?} - The rendered template.
27
+ * @returns {string | undefined} - The rendered template or undefined if callback is provided.
28
28
  */
29
- renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function, pContextArray: any[]): string | null;
29
+ renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function | null, pContextArray: any[]): string | undefined;
30
30
  }
31
31
  import libPictTemplate = require("pict-template");
32
32
  //# 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;IAmBT;;;;;;;;OAQG;IACH,2BANW,MAAM,WACN,MAAM,8CAGJ,MAAM,OAAC,CA8CnB;CACD"}
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;IAmBT;;;;;;;;OAQG;IACH,2BANW,MAAM,WACN,MAAM,aACN,WAAW,IAAI,yBAEb,MAAM,GAAG,SAAS,CAkD9B;CACD"}
@@ -22,11 +22,11 @@ declare class PictTemplateGetViewSchemaValueByHash extends libPictTemplate {
22
22
  *
23
23
  * @param {string} pTemplateHash - The schema hash of the control.
24
24
  * @param {object} pRecord - The record object.
25
- * @param {function} fCallback - The callback function.
25
+ * @param {function | null} fCallback - The callback function.
26
26
  * @param {array} pContextArray - The context array.
27
- * @returns {string} - The rendered template.
27
+ * @returns {string | undefined} - The rendered template or undefined if callback is provided.
28
28
  */
29
- renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function, pContextArray: any[]): string;
29
+ renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function | null, pContextArray: any[]): string | undefined;
30
30
  }
31
31
  import libPictTemplate = require("pict-template");
32
32
  //# 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;IAmBT;;;;;;;;OAQG;IACH,2BANW,MAAM,WACN,MAAM,8CAGJ,MAAM,CA8ClB;CACD"}
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;IAmBT;;;;;;;;OAQG;IACH,2BANW,MAAM,WACN,MAAM,aACN,WAAW,IAAI,yBAEb,MAAM,GAAG,SAAS,CAkD9B;CACD"}
@@ -24,8 +24,10 @@ declare class PictTemplateMetacontrollerValueSet extends libPictTemplate {
24
24
  * @param {object} pRecord - The record object to use for rendering the template.
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
+ *
28
+ * @return {void}
27
29
  */
28
- renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function, pContextArray: any[]): any;
30
+ renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function, pContextArray: any[]): void;
29
31
  }
30
32
  import libPictTemplate = require("pict-template");
31
33
  //# 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;IA8ET;;;;;;;OAOG;IACH,2BALW,MAAM,WACN,MAAM,kDA4FhB;CACD"}
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;IA8ET;;;;;;;;;OASG;IACH,2BAPW,MAAM,WACN,MAAM,8CAIL,IAAI,CA4Ff;CACD"}
@@ -18,7 +18,17 @@ declare class PictTemplateMetatemplateInputTemplate extends libPictTemplate {
18
18
  /** @type {any} */
19
19
  log: any;
20
20
  currentInputIndex: number;
21
- renderAsync(pTemplateHash: any, pRecord: any, fCallback: any, pContextArray: any): string;
21
+ /**
22
+ * Renders the PICT Metacontroller Template. The Record reference is ignored in this template.
23
+ *
24
+ * @param {string} pTemplateHash - The schema hash of the control.
25
+ * @param {object} pRecord - The record object.
26
+ * @param {function | null} fCallback - The callback function.
27
+ * @param {array} pContextArray - The context array.
28
+ *
29
+ * @return {void}
30
+ */
31
+ renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function | null, pContextArray: any[]): void;
22
32
  }
23
33
  import libPictTemplate = require("pict-template");
24
34
  //# 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;IAuF3B,0FA0EC;CACD"}
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;IAuF3B;;;;;;;;;OASG;IACH,2BAPW,MAAM,WACN,MAAM,aACN,WAAW,IAAI,yBAGd,IAAI,CA8Ef;CACD"}
@@ -18,7 +18,17 @@ declare class PictTemplateMetatemplateInputTemplate extends libPictTemplate {
18
18
  /** @type {any} */
19
19
  log: any;
20
20
  currentInputIndex: number;
21
- renderAsync(pTemplateHash: any, pRecord: any, fCallback: any, pContextArray: any): string;
21
+ /**
22
+ * Renders the PICT Metacontroller Template. The Record reference is ignored in this template.
23
+ *
24
+ * @param {string} pTemplateHash - The schema hash of the control.
25
+ * @param {object} pRecord - The record object.
26
+ * @param {function | null} fCallback - The callback function.
27
+ * @param {array} pContextArray - The context array.
28
+ *
29
+ * @return {void}
30
+ */
31
+ renderAsync(pTemplateHash: string, pRecord: object, fCallback: Function | null, pContextArray: any[]): void;
22
32
  }
23
33
  import libPictTemplate = require("pict-template");
24
34
  //# 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;IA6F3B,0FAgFC;CACD"}
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;IAiG3B;;;;;;;;;OASG;IACH,2BAPW,MAAM,WACN,MAAM,aACN,WAAW,IAAI,yBAGd,IAAI,CAsFf;CACD"}