pict-section-form 1.0.98 → 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 (27) hide show
  1. package/package.json +2 -2
  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/source/views/Pict-View-DynamicForm.js +50 -0
  10. package/source/views/Pict-View-Form-Metacontroller.js +15 -7
  11. package/types/source/templates/Pict-Template-ControlFromDynamicManifest.d.ts +3 -3
  12. package/types/source/templates/Pict-Template-ControlFromDynamicManifest.d.ts.map +1 -1
  13. package/types/source/templates/Pict-Template-ControlFromDynamicManifestForHash.d.ts +3 -3
  14. package/types/source/templates/Pict-Template-ControlFromDynamicManifestForHash.d.ts.map +1 -1
  15. package/types/source/templates/Pict-Template-DyanmicView-Value.d.ts +3 -3
  16. package/types/source/templates/Pict-Template-DyanmicView-Value.d.ts.map +1 -1
  17. package/types/source/templates/Pict-Template-DyanmicView-ValueByHash.d.ts +3 -3
  18. package/types/source/templates/Pict-Template-DyanmicView-ValueByHash.d.ts.map +1 -1
  19. package/types/source/templates/Pict-Template-Metacontroller-ValueSetWithGroup.d.ts +3 -1
  20. package/types/source/templates/Pict-Template-Metacontroller-ValueSetWithGroup.d.ts.map +1 -1
  21. package/types/source/templates/Pict-Template-Metatemplate-Input.d.ts +11 -1
  22. package/types/source/templates/Pict-Template-Metatemplate-Input.d.ts.map +1 -1
  23. package/types/source/templates/Pict-Template-Metatemplate-InputWithHashAddress.d.ts +11 -1
  24. package/types/source/templates/Pict-Template-Metatemplate-InputWithHashAddress.d.ts.map +1 -1
  25. package/types/source/views/Pict-View-DynamicForm.d.ts +1 -0
  26. package/types/source/views/Pict-View-DynamicForm.d.ts.map +1 -1
  27. package/types/source/views/Pict-View-Form-Metacontroller.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.98",
3
+ "version": "1.0.100",
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.272",
34
+ "pict": "^1.0.273",
35
35
  "pict-application": "^1.0.27",
36
36
  "pict-service-commandlineutility": "^1.0.15",
37
37
  "quackage": "^1.0.41",
@@ -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
 
@@ -123,6 +123,7 @@ class PictViewDynamicForm extends libPictViewClass
123
123
  this.formID = `Pict-Form-${this.Hash}-${this.UUID}`;
124
124
 
125
125
  this.viewMarshalDestination = null;
126
+ this.initialBundleLoaded = false;
126
127
 
127
128
  this.fable.ManifestFactory.initializeFormGroups(this);
128
129
 
@@ -562,6 +563,55 @@ class PictViewDynamicForm extends libPictViewClass
562
563
  return super.onSolve();
563
564
  }
564
565
 
566
+ /**
567
+ * Lifecycle hook that triggers before the view is rendered.
568
+ *
569
+ * @param {import('pict-view').Renderable} pRenderable - The renderable that will be rendered.
570
+ * @param {string} pRenderDestinationAddress - The address where the renderable will be rendered.
571
+ * @param {any} pRecord - The record (data) that will be used to render the renderable.
572
+ */
573
+ onBeforeRender(pRenderable, pRenderDestinationAddress, pRecord)
574
+ {
575
+ if (!this.initialBundleLoaded)
576
+ {
577
+ if (Array.isArray(this.sectionDefinition.InitialBundle))
578
+ {
579
+ this.pict.EntityProvider.processBundle(this.sectionDefinition.InitialBundle);
580
+ }
581
+ this.initialBundleLoaded = true;
582
+ }
583
+ return super.onBeforeRender(pRenderable, pRenderDestinationAddress, pRecord);
584
+ }
585
+
586
+ /**
587
+ * Lifecycle hook that triggers before the view is rendered (async flow).
588
+ *
589
+ * @param {(error?: Error) => void} fCallback - The callback to call when the async operation is complete.
590
+ */
591
+ onBeforeRenderAsync(fCallback)
592
+ {
593
+ super.onBeforeRenderAsync((pError) =>
594
+ {
595
+ if (!this.initialBundleLoaded)
596
+ {
597
+ if (Array.isArray(this.sectionDefinition.InitialBundle))
598
+ {
599
+ this.pict.EntityProvider.gatherDataFromServer(this.sectionDefinition.InitialBundle, (pInnerError) =>
600
+ {
601
+ if (pInnerError)
602
+ {
603
+ this.log.error(`Dynamic form [${this.Hash}]::[${this.UUID}] failed to load initial bundle: ${pInnerError}`);
604
+ }
605
+ fCallback(pError);
606
+ });
607
+ return;
608
+ }
609
+ this.initialBundleLoaded = true;
610
+ }
611
+ return fCallback(pError);
612
+ });
613
+ }
614
+
565
615
  /**
566
616
  * Lifecycle hook that triggers after the view is rendered.
567
617
  *
@@ -85,7 +85,7 @@ class PictFormMetacontroller extends libPictViewClass
85
85
 
86
86
  /**
87
87
  * Gets a value by hash address.
88
- * @param {string} pHashAddress
88
+ * @param {string} pHashAddress
89
89
  */
90
90
  getValueByHash(pHashAddress)
91
91
  {
@@ -114,16 +114,24 @@ class PictFormMetacontroller extends libPictViewClass
114
114
  */
115
115
  onAfterInitializeAsync(fCallback)
116
116
  {
117
- // This is safe -- if there is no settings.DefaultFormManifest configuration, it just doesn't do anything
118
- this.bootstrapPictFormViewsFromManifest();
119
- // Generate the metatemplate (the container for each section)
120
- this.generateMetatemplate();
121
117
 
122
118
  return super.onAfterInitializeAsync(
123
119
  function (pError)
124
120
  {
125
- this.gatherInitialBundle(fCallback);
126
- }.bind(this));
121
+ if (pError)
122
+ {
123
+ return fCallback(pError);
124
+ }
125
+ this.gatherInitialBundle((pError) =>
126
+ {
127
+ // This is safe -- if there is no settings.DefaultFormManifest configuration, it just doesn't do anything
128
+ this.bootstrapPictFormViewsFromManifest();
129
+ // Generate the metatemplate (the container for each section)
130
+ this.generateMetatemplate();
131
+
132
+ return fCallback(pError);
133
+ });
134
+ }.bind(this));
127
135
  }
128
136
 
129
137
  /**
@@ -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,CAAC,QAAQ,EAAE,MAA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G,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,KAAK,EAAE,MAAM,CA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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"}
@@ -26,6 +26,7 @@ declare class PictViewDynamicForm extends libPictViewClass {
26
26
  customDefaultTemplatePrefix: any;
27
27
  formID: string;
28
28
  viewMarshalDestination: any;
29
+ initialBundleLoaded: boolean;
29
30
  /**
30
31
  * Returns the default template prefix.
31
32
  *
@@ -1 +1 @@
1
- {"version":3,"file":"Pict-View-DynamicForm.d.ts","sourceRoot":"","sources":["../../../source/views/Pict-View-DynamicForm.js"],"names":[],"mappings":";AAYA;;;;;;;GAOG;AACH;IAEC,2DA0GC;IAhEA,gKAAgK;IAChK,MADW,OAAO,MAAM,CAAC,GAAG;QAAE,eAAe,EAAE,OAAO,kBAAkB,CAAC,CAAC;QAAC,GAAG,EAAE,GAAG,CAAC;QAAC,6CAA6C,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,GAAG,CAAC;KAAE,CACnJ;IAKT,yEAAyE;IACzE,qBADW,OAAO,kDAAkD,CAAC,CACqC;IAK1G,kCAAkC;IAClC,kBADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CACO;IAIrC,uBAAqC;IAGrC,qBAA2H;IAG3H,sBAAwB;IAcxB,+BAA6D;IAmB7D,iCAAuC;IAEvC,eAAmD;IAEnD,4BAAkC;IAMnC;;;;OAIG;IACH,6BAFa,MAAM,CAgBlB;IAED;;;;;;;;OAQG;IACH,wBAFW,MAAM,QA+ChB;IAGD;;;;;;OAMG;IACH,gCAJW,MAAM,eACN,MAAM,aACN,MAAM,QAsDhB;IAED;;;;;;OAMG;IACH,uBAJW,MAAM,UACN,GAAG,GACD,OAAO,CA+BnB;IAED;;;;;;;;OAQG;IACH,kCANW,MAAM,cACN,MAAM,aACN,MAAM,UACN,GAAG,GACD,OAAO,CAmEnB;IAED;;;;OAIG;IACH,gCAFa,MAAM,CAgBlB;IAED;;;;OAIG;IACH,+BAFY,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CA+B9B;IAED;;;OAGG;IACH,6BAFW,MAAM,OAKhB;IAED;;;;OAIG;IACH,mBA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f;IAED;;;;;;;;OAQG;IACH,mCAJW,MAAM,eACN,MAAM,OAMhB;IAED;;;;;;OAMG;IACH,kCAJW,MAAM,kBACN,MAAM,OAMhB;IAED;;;;;OAKG;IACH,iCAHW,MAAM,SAMhB;IAED;;;;;;;OAOG;IACH,mCAHW,MAAM,OAMhB;IAED;;;;;;;OAOG;IACH,qCALW,MAAM,aACN,MAAM,gBACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;OAMG;IACH,qCAJW,MAAM,aACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;OAMG;IACH,mCAJW,MAAM,aACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;OAMG;IACH,mCAJW,MAAM,aACN,MAAM,gBAMhB;IAED;;;OAGG;IACH,yBAFa,OAAO,CAKnB;CACD;;;;;AAhmCD,kCAAkC;AAClC,qCADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAC6D"}
1
+ {"version":3,"file":"Pict-View-DynamicForm.d.ts","sourceRoot":"","sources":["../../../source/views/Pict-View-DynamicForm.js"],"names":[],"mappings":";AAYA;;;;;;;GAOG;AACH;IAEC,2DA2GC;IAjEA,gKAAgK;IAChK,MADW,OAAO,MAAM,CAAC,GAAG;QAAE,eAAe,EAAE,OAAO,kBAAkB,CAAC,CAAC;QAAC,GAAG,EAAE,GAAG,CAAC;QAAC,6CAA6C,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,GAAG,CAAC;KAAE,CACnJ;IAKT,yEAAyE;IACzE,qBADW,OAAO,kDAAkD,CAAC,CACqC;IAK1G,kCAAkC;IAClC,kBADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CACO;IAIrC,uBAAqC;IAGrC,qBAA2H;IAG3H,sBAAwB;IAcxB,+BAA6D;IAmB7D,iCAAuC;IAEvC,eAAmD;IAEnD,4BAAkC;IAClC,6BAAgC;IAMjC;;;;OAIG;IACH,6BAFa,MAAM,CAgBlB;IAED;;;;;;;;OAQG;IACH,wBAF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AM,GACJ,MAAO,OAAO,CAwB1B;IAED;;;;;OAKG;IACH,yCAoBC;IAED;;;;;OAKG;IACH,6BAHW,MAAM,OAMhB;IAED;;;;;OAKG;IACH,sCAFa,OAAO,CAKnB;IAED;;;;;;OAMG;IACH,uCAHW,MAAM,GACJ,GAAG,CAKf;IAED;;;;OAIG;IACH,yBAHW,MAAM,+BAehB;IAED;;;;;;;OAOG;IACH,qCALW,MAAM,eACN,MAAM,aACN,MAAM,GACJ,OAAO,CAAC,GAAG,CAAC,CAKxB;IAED;;;;;;;;OAQG;IACH,+BANW,MAAM,eACN,MAAM,aACN,MAAM,UACN,MAAM,GACJ,GAAG,CAKf;IAED;;;;;;;;OAQG;IACH,mCAJW,MAAM,eACN,MAAM,OAMhB;IAED;;;;;;OAMG;IACH,kCAJW,MAAM,kBACN,MAAM,OAMhB;IAED;;;;;OAKG;IACH,iCAHW,MAAM,SAMhB;IAED;;;;;;;OAOG;IACH,mCAHW,MAAM,OAMhB;IAED;;;;;;;OAOG;IACH,qCALW,MAAM,aACN,MAAM,gBACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;OAMG;IACH,qCAJW,MAAM,aACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;OAMG;IACH,mCAJW,MAAM,aACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;OAMG;IACH,mCAJW,MAAM,aACN,MAAM,gBAMhB;IAED;;;OAGG;IACH,yBAFa,OAAO,CAKnB;CACD;;;;;AAlpCD,kCAAkC;AAClC,qCADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAC6D"}
@@ -1 +1 @@
1
- {"version":3,"file":"Pict-View-Form-Metacontroller.d.ts","sourceRoot":"","sources":["../../../source/views/Pict-View-Form-Metacontroller.js"],"names":[],"mappings":";AASA;;GAEG;AAEH;;;;;;GAMG;AACH;IAEC,2DAeC;IAPA,+BAAuC;IAEvC,yBAA2B;IAE3B,wBAAsF;IAEtF,cAAkC;IAGnC;;;;OAIG;IACH,qBAFa,GAAG,CAaf;IAED;;;;OAIG;IACH,mBAFa,GAAG,CAaf;IAED;;;;OAIG;IACH,mCAGC;IAED;;;OAGG;IACH,6BAFW,MAAM,OAKhB;IAED,yCAYC;IAED;;;;;OAKG;IACH,kCAHW,aAAa,GACX,IAAI,CAchB;IA2BD;;;;OAIG;IACH,WAFa,GAAG,CAMf;IAED,gDAGC;IAED,+CAGC;IAED;;;;;;;;OAQG;IACH,wDAHW,YAAY,SAmHtB;IAED;;;;;;;OAOG;IACH,4CAHW,MAAM,GACJ,IAAI,CAShB;IAED;;;;OAIG;IACH,6BAFa,IAAI,CAQhB;IAED;;;;;;;OAOG;IACH,+DAFW,YAAY,QAatB;IAED;;;;;OAKG;IACH,8EAFW,YAAY,QAmBtB;IAED;;;;;;OAMG;IACH,oEAHW,YAAY,GACV,IAAI,CAkDhB;IAED;;;;;OAKG;IACH,qCAHW,MAAM,GACJ,MAAM,GAAC,OAAO,CA2C1B;IAED;;;;;OAKG;IACH,qEA+HC;IA3GA,yBAAiD;IA6GlD;;;OAGG;IACH,gCAFW,MAAM,QAgBhB;IAED;;;;;OAKG;IACH,0BAJW,MAAM,4BAEL,sBAAsB,CAWjC;IAED;;;;OAIG;IACH,4BAFa,OAAO,CAKnB;CACD;;;;;;qCAGU,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;oBA7oBjB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,KAAK,MAAM"}
1
+ {"version":3,"file":"Pict-View-Form-Metacontroller.d.ts","sourceRoot":"","sources":["../../../source/views/Pict-View-Form-Metacontroller.js"],"names":[],"mappings":";AASA;;GAEG;AAEH;;;;;;GAMG;AACH;IAEC,2DAeC;IAPA,+BAAuC;IAEvC,yBAA2B;IAE3B,wBAAsF;IAEtF,cAAkC;IAGnC;;;;OAIG;IACH,qBAFa,GAAG,CAaf;IAED;;;;OAIG;IACH,mBAFa,GAAG,CAaf;IAED;;;;OAIG;IACH,mCAGC;IAED;;;OAGG;IACH,6BAFW,MAAM,OAKhB;IAED,yCAYC;IAED;;;;;OAKG;IACH,kCAHW,aAAa,GACX,IAAI,CAsBhB;IA2BD;;;;OAIG;IACH,WAFa,GAAG,CAMf;IAED,gDAGC;IAED,+CAGC;IAED;;;;;;;;OAQG;IACH,wDAHW,YAAY,SAmHtB;IAED;;;;;;;OAOG;IACH,4CAHW,MAAM,GACJ,IAAI,CAShB;IAED;;;;OAIG;IACH,6BAFa,IAAI,CAQhB;IAED;;;;;;;OAOG;IACH,+DAFW,YAAY,QAatB;IAED;;;;;OAKG;IACH,8EAFW,YAAY,QAmBtB;IAED;;;;;;OAMG;IACH,oEAHW,YAAY,GACV,IAAI,CAkDhB;IAED;;;;;OAKG;IACH,qCAHW,MAAM,GACJ,MAAM,GAAC,OAAO,CA2C1B;IAED;;;;;OAKG;IACH,qEA+HC;IA3GA,yBAAiD;IA6GlD;;;OAGG;IACH,gCAFW,MAAM,QAgBhB;IAED;;;;;OAKG;IACH,0BAJW,MAAM,4BAEL,sBAAsB,CAWjC;IAED;;;;OAIG;IACH,4BAFa,OAAO,CAKnB;CACD;;;;;;qCAGU,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;oBArpBjB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,KAAK,MAAM"}