pict-section-form 1.0.121 → 1.0.123

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 (59) hide show
  1. package/debug/PICTSection-TabularManifests.json +3 -3
  2. package/debug/data/DefaultFormManifest.json +7 -7
  3. package/debug/data/MathExampleForm.json +351 -4
  4. package/example_applications/Build-Examples.sh +5 -0
  5. package/example_applications/Clean-Examples.sh +2 -1
  6. package/example_applications/Open-Examples.sh +2 -1
  7. package/example_applications/complex_table/Complex-Tabular-Application.js +3 -3
  8. package/example_applications/postcard_example/providers/PictProvider-PostKardInputExtension.js +38 -7
  9. package/example_applications/simple_distill/Simple-Form-Application.js +2 -2
  10. package/example_applications/simple_table/.quackage.json +9 -0
  11. package/package.json +2 -2
  12. package/source/providers/Pict-Provider-DynamicFormSolverBehaviors.js +33 -6
  13. package/source/providers/Pict-Provider-DynamicInputEvents.js +26 -4
  14. package/source/providers/Pict-Provider-InputExtension.js +49 -8
  15. package/source/providers/inputs/Pict-Provider-Input-AutofillTriggerGroup.js +72 -25
  16. package/source/providers/inputs/Pict-Provider-Input-DateTime.js +6 -4
  17. package/source/providers/inputs/Pict-Provider-Input-EntityBundleRequest.js +19 -13
  18. package/source/providers/inputs/Pict-Provider-Input-HTML.js +12 -8
  19. package/source/providers/inputs/Pict-Provider-Input-Link.js +6 -4
  20. package/source/providers/inputs/Pict-Provider-Input-Markdown.js +12 -8
  21. package/source/providers/inputs/Pict-Provider-Input-PreciseNumber.js +6 -4
  22. package/source/providers/inputs/Pict-Provider-Input-Select.js +25 -20
  23. package/source/providers/inputs/Pict-Provider-Input-TabGroupSelector.js +3 -2
  24. package/source/providers/inputs/Pict-Provider-Input-TabSectionSelector.js +3 -2
  25. package/source/providers/inputs/Pict-Provider-Input-TemplatedEntityLookup.js +12 -8
  26. package/source/services/ManifestFactory.js +1 -1
  27. package/source/views/Pict-View-DynamicForm.js +188 -17
  28. package/source/views/Pict-View-Form-Metacontroller.js +12 -2
  29. package/types/source/providers/Pict-Provider-DynamicFormSolverBehaviors.d.ts +10 -1
  30. package/types/source/providers/Pict-Provider-DynamicFormSolverBehaviors.d.ts.map +1 -1
  31. package/types/source/providers/Pict-Provider-DynamicInputEvents.d.ts +4 -2
  32. package/types/source/providers/Pict-Provider-DynamicInputEvents.d.ts.map +1 -1
  33. package/types/source/providers/Pict-Provider-InputExtension.d.ts +41 -8
  34. package/types/source/providers/Pict-Provider-InputExtension.d.ts.map +1 -1
  35. package/types/source/providers/inputs/Pict-Provider-Input-AutofillTriggerGroup.d.ts +5 -5
  36. package/types/source/providers/inputs/Pict-Provider-Input-AutofillTriggerGroup.d.ts.map +1 -1
  37. package/types/source/providers/inputs/Pict-Provider-Input-DateTime.d.ts +4 -2
  38. package/types/source/providers/inputs/Pict-Provider-Input-DateTime.d.ts.map +1 -1
  39. package/types/source/providers/inputs/Pict-Provider-Input-EntityBundleRequest.d.ts +10 -5
  40. package/types/source/providers/inputs/Pict-Provider-Input-EntityBundleRequest.d.ts.map +1 -1
  41. package/types/source/providers/inputs/Pict-Provider-Input-HTML.d.ts +6 -3
  42. package/types/source/providers/inputs/Pict-Provider-Input-HTML.d.ts.map +1 -1
  43. package/types/source/providers/inputs/Pict-Provider-Input-Link.d.ts +4 -2
  44. package/types/source/providers/inputs/Pict-Provider-Input-Link.d.ts.map +1 -1
  45. package/types/source/providers/inputs/Pict-Provider-Input-Markdown.d.ts +6 -3
  46. package/types/source/providers/inputs/Pict-Provider-Input-Markdown.d.ts.map +1 -1
  47. package/types/source/providers/inputs/Pict-Provider-Input-PreciseNumber.d.ts +4 -2
  48. package/types/source/providers/inputs/Pict-Provider-Input-PreciseNumber.d.ts.map +1 -1
  49. package/types/source/providers/inputs/Pict-Provider-Input-Select.d.ts +11 -6
  50. package/types/source/providers/inputs/Pict-Provider-Input-Select.d.ts.map +1 -1
  51. package/types/source/providers/inputs/Pict-Provider-Input-TabGroupSelector.d.ts.map +1 -1
  52. package/types/source/providers/inputs/Pict-Provider-Input-TabSectionSelector.d.ts.map +1 -1
  53. package/types/source/providers/inputs/Pict-Provider-Input-TemplatedEntityLookup.d.ts +6 -3
  54. package/types/source/providers/inputs/Pict-Provider-Input-TemplatedEntityLookup.d.ts.map +1 -1
  55. package/types/source/views/Pict-View-DynamicForm.d.ts +39 -6
  56. package/types/source/views/Pict-View-DynamicForm.d.ts.map +1 -1
  57. package/types/source/views/Pict-View-Form-Metacontroller.d.ts +2 -1
  58. package/types/source/views/Pict-View-Form-Metacontroller.d.ts.map +1 -1
  59. package/utility/csvparser/ParseCSV-Command-BuildDistilling.js +4 -4
@@ -6,6 +6,10 @@ const libPackage = require('../../package.json');
6
6
  /** @type {Record<string, any>} */
7
7
  const _DefaultConfiguration = require('./Pict-View-DynamicForm-DefaultConfiguration.json');
8
8
 
9
+ const PENDING_ASYNC_OPERATION_TYPE = 'PendingAsyncOperation';
10
+ const TRANSACTION_COMPLETE_CALLBACK_TYPE = 'onTransactionComplete';
11
+ const READY_TO_FINALIZE_TYPE = 'ReadyToFinalize';
12
+
9
13
  /**
10
14
  * Represents a dynamic form view for the Pict application.
11
15
  *
@@ -172,11 +176,12 @@ class PictViewDynamicForm extends libPictViewClass
172
176
  let tmpValue = this.sectionManifest.getValueByHash(tmpMarshalDestinationObject, tmpHashAddress);
173
177
 
174
178
  let tmpInputProviderList = this.getInputProviderList(tmpInput);
179
+ const tmpTransactionGUID = this.fable.getUUID();
175
180
  for (let i = 0; i < tmpInputProviderList.length; i++)
176
181
  {
177
182
  if (this.pict.providers[tmpInputProviderList[i]])
178
183
  {
179
- this.pict.providers[tmpInputProviderList[i]].onDataChange(this, tmpInput, tmpValue, tmpInput.Macro.HTMLSelector);
184
+ this.pict.providers[tmpInputProviderList[i]].onDataChange(this, tmpInput, tmpValue, tmpInput.Macro.HTMLSelector, tmpTransactionGUID);
180
185
  }
181
186
  else
182
187
  {
@@ -233,11 +238,12 @@ class PictViewDynamicForm extends libPictViewClass
233
238
  // Each row has a distinct address!
234
239
  let tmpVirtualInformaryHTMLSelector = tmpInput.Macro.HTMLSelectorTabular + `[data-i-index="${pRowIndex}"]`;
235
240
  let tmpInputProviderList = this.getInputProviderList(tmpInput);
241
+ const tmpTransactionGUID = this.fable.getUUID();
236
242
  for (let i = 0; i < tmpInputProviderList.length; i++)
237
243
  {
238
244
  if (this.pict.providers[tmpInputProviderList[i]])
239
245
  {
240
- this.pict.providers[tmpInputProviderList[i]].onDataChangeTabular(this, tmpInput, tmpValue, tmpVirtualInformaryHTMLSelector, pRowIndex);
246
+ this.pict.providers[tmpInputProviderList[i]].onDataChangeTabular(this, tmpInput, tmpValue, tmpVirtualInformaryHTMLSelector, pRowIndex, tmpTransactionGUID);
241
247
  }
242
248
  else
243
249
  {
@@ -263,6 +269,8 @@ class PictViewDynamicForm extends libPictViewClass
263
269
  /**
264
270
  * Sets the data in a specific form input based on the provided input object
265
271
  *
272
+ * FIXME: does this need to have a transaction GUID passed in?
273
+ *
266
274
  * @param {object} pInput - The input object.
267
275
  * @param {any} pValue - The value to set.
268
276
  * @returns {boolean} Returns true if the data was set successfully, false otherwise.
@@ -278,17 +286,19 @@ class PictViewDynamicForm extends libPictViewClass
278
286
  // Each row has a distinct address!
279
287
  let tmpVirtualInformaryHTMLSelector = pInput.Macro.HTMLSelector;
280
288
  let tmpInputProviderList = this.getInputProviderList(pInput);
289
+ const tmpTransactionGUID = this.fable.getUUID();
281
290
  for (let i = 0; i < tmpInputProviderList.length; i++)
282
291
  {
283
292
  if (this.pict.providers[tmpInputProviderList[i]])
284
293
  {
285
- this.pict.providers[tmpInputProviderList[i]].onDataChange(this, pInput, tmpValue, tmpVirtualInformaryHTMLSelector);
294
+ this.pict.providers[tmpInputProviderList[i]].onDataChange(this, pInput, tmpValue, tmpVirtualInformaryHTMLSelector, tmpTransactionGUID);
286
295
  }
287
296
  else
288
297
  {
289
298
  this.log.error(`Dynamic form setDataByInput [${this.Hash}]::[${this.UUID}] cannot find provider [${tmpInputProviderList[i]}] for input [${pInput.Hash}].`);
290
299
  }
291
300
  }
301
+ this.finalizeTransaction(tmpTransactionGUID);
292
302
  }
293
303
  catch (pError)
294
304
  {
@@ -301,6 +311,8 @@ class PictViewDynamicForm extends libPictViewClass
301
311
  /**
302
312
  * Sets the data in a specific tabular form input based on the provided hash, group and row.
303
313
  *
314
+ * FIXME: does this need to have a transaction GUID passed in?
315
+ *
304
316
  * @param {number} pGroupIndex - The index of the group.
305
317
  * @param {string} pInputHash - The hash of the input.
306
318
  * @param {number} pRowIndex - The index of the row.
@@ -353,17 +365,19 @@ class PictViewDynamicForm extends libPictViewClass
353
365
  // Each row has a distinct address!
354
366
  let tmpVirtualInformaryHTMLSelector = tmpInput.Macro.HTMLSelectorTabular + `[data-i-index="${pRowIndex}"]`;
355
367
  let tmpInputProviderList = this.getInputProviderList(tmpInput);
368
+ const tmpTransactionGUID = this.fable.getUUID();
356
369
  for (let i = 0; i < tmpInputProviderList.length; i++)
357
370
  {
358
371
  if (this.pict.providers[tmpInputProviderList[i]])
359
372
  {
360
- this.pict.providers[tmpInputProviderList[i]].onDataChangeTabular(this, tmpInput, tmpValue, tmpVirtualInformaryHTMLSelector, pRowIndex);
373
+ this.pict.providers[tmpInputProviderList[i]].onDataChangeTabular(this, tmpInput, tmpValue, tmpVirtualInformaryHTMLSelector, pRowIndex, tmpTransactionGUID);
361
374
  }
362
375
  else
363
376
  {
364
377
  this.log.error(`Dynamic form setDataTabularByHash [${this.Hash}]::[${this.UUID}] cannot find provider [${tmpInputProviderList[i]}] for input [${tmpInput.Hash}] row ${pRowIndex}.`);
365
378
  }
366
379
  }
380
+ this.finalizeTransaction(tmpTransactionGUID);
367
381
  }
368
382
  catch (pError)
369
383
  {
@@ -773,6 +787,7 @@ class PictViewDynamicForm extends libPictViewClass
773
787
  }
774
788
  }
775
789
  }
790
+ this.finalizeTransaction(tmpTransactionGUID);
776
791
  }
777
792
 
778
793
  /**
@@ -982,30 +997,34 @@ class PictViewDynamicForm extends libPictViewClass
982
997
  *
983
998
  * @param {String} pInputHash - The input hash object.
984
999
  * @param {string} pEvent - The input event string.
1000
+ * @param {string} [pTransactionGUID] - The transaction GUID.
985
1001
  * @returns {any} - The result of the input event handling.
986
1002
  */
987
- inputEvent(pInputHash, pEvent)
1003
+ inputEvent(pInputHash, pEvent, pTransactionGUID)
988
1004
  {
989
- return this.pict.providers.DynamicInputEvents.inputEvent(this, pInputHash, pEvent);
1005
+ return this.pict.providers.DynamicInputEvents.inputEvent(this, pInputHash, pEvent, pTransactionGUID);
990
1006
  }
991
1007
 
992
1008
  /**
993
1009
  * @deprecated
994
1010
  * @param {string} pEvent - The input event string.
995
1011
  * @param {Object} pCompletedHashes - the hashes that have already signaled the event
1012
+ * @param {string} [pTransactionGUID] - The transaction GUID.
996
1013
  */
997
- globalInputEvent(pEvent, pCompletedHashes)
1014
+ globalInputEvent(pEvent, pCompletedHashes, pTransactionGUID)
998
1015
  {
999
- this.manifestInputEvent(pEvent, pCompletedHashes);
1016
+ this.manifestInputEvent(pEvent, pCompletedHashes, pTransactionGUID);
1000
1017
  }
1001
1018
 
1002
1019
  /**
1003
1020
  *
1004
1021
  * @param {string} pEvent - The input event string.
1005
1022
  * @param {Object} pCompletedHashes - the hashes that have already signaled the event
1023
+ * @param {string} [pTransactionGUID] - The transaction GUID.
1006
1024
  */
1007
- manifestInputEvent(pEvent, pCompletedHashes)
1025
+ manifestInputEvent(pEvent, pCompletedHashes, pTransactionGUID)
1008
1026
  {
1027
+ const tmpTransactionGUID = (pTransactionGUID && typeof(pTransactionGUID) === 'string') ? pTransactionGUID : this.fable.getUUID();
1009
1028
  const tmpInputHashes = Object.keys(this.sectionManifest.elementHashes);
1010
1029
 
1011
1030
  for (let i = 0; i < tmpInputHashes.length; i++)
@@ -1013,9 +1032,14 @@ class PictViewDynamicForm extends libPictViewClass
1013
1032
  if (!(tmpInputHashes[i] in pCompletedHashes))
1014
1033
  {
1015
1034
  pCompletedHashes[tmpInputHashes[i]] = true;
1016
- this.inputEvent(tmpInputHashes[i], pEvent);
1035
+ this.inputEvent(tmpInputHashes[i], pEvent, pTransactionGUID);
1017
1036
  }
1018
1037
  }
1038
+ if (pTransactionGUID !== tmpTransactionGUID)
1039
+ {
1040
+ // We created a transaction, so finalize it.
1041
+ this.finalizeTransaction(tmpTransactionGUID);
1042
+ }
1019
1043
  }
1020
1044
 
1021
1045
  /**
@@ -1038,11 +1062,150 @@ class PictViewDynamicForm extends libPictViewClass
1038
1062
  * @param {number} pInputIndex - The index of the input.
1039
1063
  * @param {number} pRowIndex - The index of the row.
1040
1064
  * @param {string} pEvent - The input event object.
1065
+ * @param {string} [pTransactionGUID] - The transaction GUID.
1041
1066
  * @returns {any} - The result of the input event handling.
1042
1067
  */
1043
- inputEventTabular(pGroupIndex, pInputIndex, pRowIndex, pEvent)
1068
+ inputEventTabular(pGroupIndex, pInputIndex, pRowIndex, pEvent, pTransactionGUID)
1069
+ {
1070
+ return this.pict.providers.DynamicInputEvents.inputEventTabular(this, pGroupIndex, pInputIndex, pRowIndex, pEvent, pTransactionGUID);
1071
+ }
1072
+
1073
+ /**
1074
+ * @param {string} pTransactionGUID - The transaction GUID.
1075
+ * @param {string} pAsyncOperationHash - The hash of the async operation.
1076
+ */
1077
+ registerEventTransactionAsyncOperation(pTransactionGUID, pAsyncOperationHash)
1078
+ {
1079
+ this.pict.TransactionTracking.pushToTransactionQueue(pTransactionGUID, pAsyncOperationHash, PENDING_ASYNC_OPERATION_TYPE);
1080
+ }
1081
+
1082
+ /**
1083
+ * @param {string} pTransactionGUID - The transaction GUID.
1084
+ * @param {string} pAsyncOperationHash - The hash of the async operation.
1085
+ *
1086
+ * @return {boolean} - Returns true if the async operation was found and marked as complete, otherwise false.
1087
+ */
1088
+ eventTransactionAsyncOperationComplete(pTransactionGUID, pAsyncOperationHash)
1089
+ {
1090
+ const tmpQueue = this.pict.TransactionTracking.checkTransactionQueue(pTransactionGUID);
1091
+ let tmpPendingAsyncOperationCount = 0;
1092
+ let tmpMarkedOperationCount = 0;
1093
+ let tmpFinalized = false;
1094
+ for (let i = 0; i < tmpQueue.length; i++)
1095
+ {
1096
+ const tmpQueueItem = tmpQueue[i];
1097
+ if (tmpQueueItem.Type === PENDING_ASYNC_OPERATION_TYPE)
1098
+ {
1099
+ if (tmpQueueItem.Data === pAsyncOperationHash)
1100
+ {
1101
+ tmpQueue.splice(i, 1);
1102
+ ++tmpMarkedOperationCount;
1103
+ --i;
1104
+ }
1105
+ else
1106
+ {
1107
+ ++tmpPendingAsyncOperationCount;
1108
+ }
1109
+ }
1110
+ if (tmpQueueItem.Type === READY_TO_FINALIZE_TYPE)
1111
+ {
1112
+ tmpFinalized = true;
1113
+ }
1114
+ }
1115
+ if (tmpPendingAsyncOperationCount === 0)
1116
+ {
1117
+ for (const tmpQueueItem of tmpQueue)
1118
+ {
1119
+ if (tmpQueueItem.Type === TRANSACTION_COMPLETE_CALLBACK_TYPE)
1120
+ {
1121
+ if (typeof tmpQueueItem.Data !== 'function')
1122
+ {
1123
+ this.log.error(`PICT View Metatemplate Helper eventTransactionAsyncOperationComplete transaction callback was not a function.`);
1124
+ continue;
1125
+ }
1126
+ try
1127
+ {
1128
+ tmpQueueItem.Data();
1129
+ }
1130
+ catch (pError)
1131
+ {
1132
+ this.log.error(`PICT View Metatemplate Helper eventTransactionAsyncOperationComplete transaction callback error: ${pError}`, { Stack: pError.stack });
1133
+ }
1134
+ }
1135
+ }
1136
+ }
1137
+ return tmpMarkedOperationCount > 0;
1138
+ }
1139
+
1140
+ /**
1141
+ * @param {string} pTransactionGUID - The transaction GUID.
1142
+ *
1143
+ * @return {boolean} - Returns true if the transaction was found and able to be finalized, otherwise false.
1144
+ */
1145
+ finalizeTransaction(pTransactionGUID)
1044
1146
  {
1045
- return this.pict.providers.DynamicInputEvents.inputEventTabular(this, pGroupIndex, pInputIndex, pRowIndex, pEvent);
1147
+ this.pict.TransactionTracking.pushToTransactionQueue(pTransactionGUID, null, READY_TO_FINALIZE_TYPE);
1148
+
1149
+ const tmpQueue = this.pict.TransactionTracking.checkTransactionQueue(pTransactionGUID);
1150
+ let tmpPendingAsyncOperationCount = 0;
1151
+ for (const tmpQueueItem of tmpQueue)
1152
+ {
1153
+ if (tmpQueueItem.Type === PENDING_ASYNC_OPERATION_TYPE)
1154
+ {
1155
+ ++tmpPendingAsyncOperationCount;
1156
+ }
1157
+ }
1158
+ if (tmpPendingAsyncOperationCount > 0)
1159
+ {
1160
+ this.pict.log.info(`PICT View Metatemplate Helper finalizeTransaction ${pTransactionGUID} is waiting on ${tmpPendingAsyncOperationCount} pending async operations.`);
1161
+ return false;
1162
+ }
1163
+ for (const tmpQueueItem of tmpQueue)
1164
+ {
1165
+ if (tmpQueueItem.Type === TRANSACTION_COMPLETE_CALLBACK_TYPE)
1166
+ {
1167
+ if (typeof tmpQueueItem.Data !== 'function')
1168
+ {
1169
+ this.log.error(`PICT View Metatemplate Helper eventTransactionAsyncOperationComplete transaction callback was not a function.`);
1170
+ continue;
1171
+ }
1172
+ try
1173
+ {
1174
+ tmpQueueItem.Data();
1175
+ }
1176
+ catch (pError)
1177
+ {
1178
+ this.log.error(`PICT View Metatemplate Helper eventTransactionAsyncOperationComplete transaction callback error: ${pError}`, { Stack: pError.stack });
1179
+ }
1180
+ }
1181
+ }
1182
+ return true;
1183
+ }
1184
+
1185
+ /**
1186
+ * @param {string} pTransactionGUID - The transaction GUID.
1187
+ * @param {Function} fCallback - The callback to call when the transaction is complete.
1188
+ */
1189
+ registerOnTransactionCompleteCallback(pTransactionGUID, fCallback)
1190
+ {
1191
+ const tmpQueue = this.pict.TransactionTracking.checkTransactionQueue(pTransactionGUID);
1192
+ let tmpFinalized = false;
1193
+ for (const tmpQueueItem of tmpQueue)
1194
+ {
1195
+ if (tmpQueueItem.Type === READY_TO_FINALIZE_TYPE)
1196
+ {
1197
+ tmpFinalized = true;
1198
+ break;
1199
+ }
1200
+ }
1201
+ if (tmpFinalized)
1202
+ {
1203
+ fCallback();
1204
+ }
1205
+ else
1206
+ {
1207
+ this.pict.TransactionTracking.pushToTransactionQueue(pTransactionGUID, fCallback, TRANSACTION_COMPLETE_CALLBACK_TYPE);
1208
+ }
1046
1209
  }
1047
1210
 
1048
1211
  /**
@@ -1050,9 +1213,11 @@ class PictViewDynamicForm extends libPictViewClass
1050
1213
  * @param {number} pGroupIndex - The index of the group.
1051
1214
  * @param {string} pEvent - The input event string.
1052
1215
  * @param {Object} pCompletedHashes - the hashes that have already signaled the event
1216
+ * @param {string} [pTransactionGUID] - The transaction GUID.
1053
1217
  */
1054
- groupInputEvent(pGroupIndex, pEvent, pCompletedHashes)
1218
+ groupInputEvent(pGroupIndex, pEvent, pCompletedHashes, pTransactionGUID)
1055
1219
  {
1220
+ const tmpTransactionGUID = (pTransactionGUID && typeof(pTransactionGUID) === 'string') ? pTransactionGUID : this.fable.getUUID();
1056
1221
  const tmpGroup = this.getGroup(pGroupIndex);
1057
1222
 
1058
1223
  if (!tmpGroup)
@@ -1077,7 +1242,7 @@ class PictViewDynamicForm extends libPictViewClass
1077
1242
  if (!(tmpInputSignature in pCompletedHashes))
1078
1243
  {
1079
1244
  pCompletedHashes[tmpInputSignature] = true;
1080
- this.inputEventTabular(pGroupIndex, tmpInput.PictForm.InputIndex, i, pEvent);
1245
+ this.inputEventTabular(pGroupIndex, tmpInput.PictForm.InputIndex, i, pEvent, tmpTransactionGUID);
1081
1246
  }
1082
1247
  }
1083
1248
  }
@@ -1090,24 +1255,30 @@ class PictViewDynamicForm extends libPictViewClass
1090
1255
  if (!(tmpInputSignature in pCompletedHashes))
1091
1256
  {
1092
1257
  pCompletedHashes[tmpInputSignature] = true;
1093
- this.inputEvent(tmpInput.Hash, pEvent);
1258
+ this.inputEvent(tmpInput.Hash, pEvent, tmpTransactionGUID);
1094
1259
  }
1095
1260
  }
1096
1261
  }
1262
+ if (pTransactionGUID !== tmpTransactionGUID)
1263
+ {
1264
+ // We created a transaction, so finalize it.
1265
+ this.finalizeTransaction(tmpTransactionGUID);
1266
+ }
1097
1267
  }
1098
1268
 
1099
1269
  /**
1100
1270
  *
1101
1271
  * @param {string} pEvent - The input event string.
1102
1272
  * @param {Object} pCompletedHashes - the hashes that have already signaled the event
1273
+ * @param {string} [pTransactionGUID] - The transaction GUID.
1103
1274
  */
1104
- sectionInputEvent(pEvent, pCompletedHashes)
1275
+ sectionInputEvent(pEvent, pCompletedHashes, pTransactionGUID)
1105
1276
  {
1106
1277
  const tmpGroupCount = this.sectionDefinition.Groups.length;
1107
1278
 
1108
1279
  for (let i = 0; i < tmpGroupCount; i++)
1109
1280
  {
1110
- this.groupInputEvent(i, pEvent, pCompletedHashes);
1281
+ this.groupInputEvent(i, pEvent, pCompletedHashes, pTransactionGUID);
1111
1282
  }
1112
1283
  }
1113
1284
 
@@ -912,12 +912,16 @@ class PictFormMetacontroller extends libPictViewClass
912
912
  /**
913
913
  * Trigger an event on all inputs on all views.
914
914
  * @param {string} pEvent - The event to trigger
915
+ * @param {string} [pTransactionGUID] - (optional) The transaction GUID to use for the event.
915
916
  */
916
- triggerGlobalInputEvent(pEvent)
917
+ triggerGlobalInputEvent(pEvent, pTransactionGUID)
917
918
  {
919
+ const tmpTransactionGUID = (pTransactionGUID && typeof(pTransactionGUID) === 'string') ? pTransactionGUID : this.fable.getUUID();
918
920
  let tmpEvent = (typeof(pEvent) === 'string') ? pEvent : this.fable.getUUID();
919
921
  let tmpViewHashes = Object.keys(this.pict.views);
920
922
  let tmpCompletedHashes = {};
923
+ /** @type {import('./Pict-View-DynamicForm.js')} */
924
+ let tmpFinalizeView = null;
921
925
  // Filter the views based on the filter function and type
922
926
  for (let i = 0; i < tmpViewHashes.length; i++)
923
927
  {
@@ -925,9 +929,15 @@ class PictFormMetacontroller extends libPictViewClass
925
929
  let tmpView = this.pict.views[tmpViewHashes[i]];
926
930
  if (tmpView.isPictSectionForm)
927
931
  {
928
- tmpView.sectionInputEvent(tmpEvent, tmpCompletedHashes);
932
+ tmpFinalizeView = tmpView;
933
+ tmpView.sectionInputEvent(tmpEvent, tmpCompletedHashes, tmpTransactionGUID);
929
934
  }
930
935
  }
936
+ if (pTransactionGUID !== tmpTransactionGUID && tmpFinalizeView)
937
+ {
938
+ // If we created the transaction GUID, we need to finalize it
939
+ tmpFinalizeView.finalizeTransaction(tmpTransactionGUID);
940
+ }
931
941
  }
932
942
 
933
943
  /**
@@ -38,7 +38,16 @@ declare class PictDynamicFormsSolverBehaviors extends libPictProvider {
38
38
  generateHTMLHexColor(pRed: any, pGreen: any, pBlue: any): string;
39
39
  colorSectionBackground(pSectionHash: any, pColor: any, pApplyChange: any): boolean;
40
40
  colorGroupBackground(pSectionHash: any, pGroupHash: any, pColor: any, pApplyChange: any): boolean;
41
- colorInputBackground(pSectionHash: any, pInputHash: any, pColor: any, pApplyChange: any): boolean;
41
+ /**
42
+ * Colors an input background or its container with a HTML hex color (e.g. #FF0000 for red).
43
+ * @param {string} pSectionHash - The hash of the section containing the input.
44
+ * @param {string} pInputHash - The hash of the input to color.
45
+ * @param {string} pColor - The HTML hex color to apply (e.g. #FF0000 for red).
46
+ * @param {string} pApplyChange - If "0", the change will not be applied.
47
+ * @param {string} [pClassTarget] - Optional. If provided, the color will be applied to the closest element with this class instead of the input itself.
48
+ * @returns {boolean} - Returns true if the color was applied successfully or if the change was skipped for pApplyChange equal to "0", false otherwise.
49
+ */
50
+ colorInputBackground(pSectionHash: string, pInputHash: string, pColor: string, pApplyChange: string, pClassTarget?: string): boolean;
42
51
  logValues(...args: any[]): any;
43
52
  }
44
53
  declare namespace PictDynamicFormsSolverBehaviors {
@@ -1 +1 @@
1
- {"version":3,"file":"Pict-Provider-DynamicFormSolverBehaviors.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicFormSolverBehaviors.js"],"names":[],"mappings":";AAaA;;;;;GAKG;AACH;IAEC;;;;;OAKG;IACH,oBAJW,MAAM,YACN,MAAM,gBACN,MAAM,EAqBhB;IAbA,kBAAkB;IAClB,SADW,GAAG,CACF;IACZ,qFAAqF;IACrF,MADW,OAAO,MAAM,CAAC,GAAG;QAAE,WAAW,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,UAAU,CAAC,CAAA;KAAE,CACxE;IAIT,qBAAqB;IACrB,qBADW,MAAM,CAC4C;IAC7D,0BAAyD;IACzD,mBAA2H;IAK5H,2DAMC;IAJA,kBAAsD;IAMvD,kHAaC;IAED,iDAeC;IAED,gDAGC;IAED,gEAUC;IAGD,wCAiBC;IAED,wCAiBC;IAED,+DAGC;IAED,+EAUC;IAED,uDAiBC;IAED,uDAiBC;IAED,iEAqBC;IAED,mFA2BC;IAED,kGA0BC;IAED,kGAmCC;IAED,+BAWC;CACD;;;;;AArUD,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAQ3B"}
1
+ {"version":3,"file":"Pict-Provider-DynamicFormSolverBehaviors.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicFormSolverBehaviors.js"],"names":[],"mappings":";AAaA;;;;;GAKG;AACH;IAEC;;;;;OAKG;IACH,oBAJW,MAAM,YACN,MAAM,gBACN,MAAM,EAqBhB;IAbA,kBAAkB;IAClB,SADW,GAAG,CACF;IACZ,qFAAqF;IACrF,MADW,OAAO,MAAM,CAAC,GAAG;QAAE,WAAW,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,UAAU,CAAC,CAAA;KAAE,CACxE;IAIT,qBAAqB;IACrB,qBADW,MAAM,CAC4C;IAC7D,0BAAyD;IACzD,mBAA2H;IAK5H,2DAMC;IAJA,kBAAsD;IAMvD,kHAaC;IAED,iDAeC;IAED,gDAGC;IAED,gEAUC;IAGD,wCAiBC;IAED,wCAiBC;IAED,+DAGC;IAED,+EAUC;IAED,uDAiBC;IAED,uDAiBC;IAED,iEAqBC;IAED,mFA2BC;IAED,kGA0BC;IAED;;;;;;;;OAQG;IACH,mCAPW,MAAM,cACN,MAAM,UACN,MAAM,gBACN,MAAM,iBACN,MAAM,GACJ,OAAO,CAuDnB;IAED,+BAWC;CACD;;;;;AAhWD,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAQ3B"}
@@ -24,8 +24,9 @@ declare class PictDynamicInputEvents extends libPictProvider {
24
24
  * @param {Object} pView - The view object.
25
25
  * @param {string} pInputHash - The input hash.
26
26
  * @param {string} pEvent - The input event.
27
+ * @param {string} [pTransactionGUID] - (optional) The active transaction GUID.
27
28
  */
28
- inputEvent(pView: any, pInputHash: string, pEvent: string): void;
29
+ inputEvent(pView: any, pInputHash: string, pEvent: string, pTransactionGUID?: string): void;
29
30
  /**
30
31
  * Requests input data for a tabular record.
31
32
  *
@@ -43,8 +44,9 @@ declare class PictDynamicInputEvents extends libPictProvider {
43
44
  * @param {number} pInputIndex - The index of the input.
44
45
  * @param {number} pRowIndex - The index of the row.
45
46
  * @param {string} pEvent - The input event.
47
+ * @param {string} [pTransactionGUID] - (optional) The active transaction GUID.
46
48
  */
47
- inputEventTabular(pView: any, pGroupIndex: number, pInputIndex: number, pRowIndex: number, pEvent: string): void;
49
+ inputEventTabular(pView: any, pGroupIndex: number, pInputIndex: number, pRowIndex: number, pEvent: string, pTransactionGUID?: string): void;
48
50
  }
49
51
  declare namespace PictDynamicInputEvents {
50
52
  export { _DefaultProviderConfiguration as default_configuration };
@@ -1 +1 @@
1
- {"version":3,"file":"Pict-Provider-DynamicInputEvents.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicInputEvents.js"],"names":[],"mappings":";AAaA;;GAEG;AACH;IAEC;;;;;;OAMG;IACH,oBAJW,MAAM,YACN,MAAM,gBACN,MAAM,EAMhB;IAED;;;;;OAKG;IACH,yCAFW,MAAM,QAkChB;IAED;;;;;;OAMG;IACH,mCAHW,MAAM,UACN,MAAM,QAsChB;IAED;;;;;;;OAOG;IACH,+BALW,OAAO,gCAAgC,CAAC,eACxC,MAAM,eACN,MAAM,aACN,MAAM,QAyChB;IAED;;;;;;;;OAQG;IACH,2CALW,MAAM,eACN,MAAM,aACN,MAAM,UACN,MAAM,QAkChB;CACD;;;;;AA7MD,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAS3B"}
1
+ {"version":3,"file":"Pict-Provider-DynamicInputEvents.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicInputEvents.js"],"names":[],"mappings":";AAaA;;GAEG;AACH;IAEC;;;;;;OAMG;IACH,oBAJW,MAAM,YACN,MAAM,gBACN,MAAM,EAMhB;IAED;;;;;OAKG;IACH,yCAFW,MAAM,QAkChB;IAED;;;;;;;OAOG;IACH,mCAJW,MAAM,UACN,MAAM,qBACN,MAAM,QAgDhB;IAED;;;;;;;OAOG;IACH,+BALW,OAAO,gCAAgC,CAAC,eACxC,MAAM,eACN,MAAM,aACN,MAAM,QAyChB;IAED;;;;;;;;;OASG;IACH,2CANW,MAAM,eACN,MAAM,aACN,MAAM,UACN,MAAM,qBACN,MAAM,QA4ChB;CACD;;;;;AAnOD,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAS3B"}
@@ -38,9 +38,10 @@ declare class PictInputExtensionProvider extends libPictProvider {
38
38
  * @param {Object} pRow - The Row index.
39
39
  * @param {Object} pInput - The input object.
40
40
  * @param {any} pValue - The value of the input object
41
+ * @param {string} pTransactionGUID - The transaction GUID for the event dispatch.
41
42
  * @param {string} pHTMLSelector - The HTML selector for the input object
42
43
  */
43
- onInputInitialize(pView: any, pGroup: any, pRow: any, pInput: any, pValue: any, pHTMLSelector: string): boolean;
44
+ onInputInitialize(pView: any, pGroup: any, pRow: any, pInput: any, pValue: any, pHTMLSelector: string, pTransactionGUID: string): boolean;
44
45
  /**
45
46
  * A tabular input has been initialized (rendered into the DOM)
46
47
  *
@@ -51,9 +52,10 @@ declare class PictInputExtensionProvider extends libPictProvider {
51
52
  * @param {Object} pInput - The input object.
52
53
  * @param {any} pValue - The value of the input object
53
54
  * @param {string} pHTMLSelector - The HTML selector for the input object (it will return an array).
55
+ * @param {string} pTransactionGUID - The transaction GUID for the event dispatch.
54
56
  * @param {number} pRowIndex - The row index of the tabular data
55
57
  */
56
- onInputInitializeTabular(pView: any, pGroup: any, pInput: any, pValue: any, pHTMLSelector: string, pRowIndex: number): boolean;
58
+ onInputInitializeTabular(pView: any, pGroup: any, pInput: any, pValue: any, pHTMLSelector: string, pRowIndex: number, pTransactionGUID: string): boolean;
57
59
  /**
58
60
  * Called when the data change function is called
59
61
  *
@@ -63,8 +65,9 @@ declare class PictInputExtensionProvider extends libPictProvider {
63
65
  * @param {Object} pInput - The input object.
64
66
  * @param {any} pValue - The new value of the input object
65
67
  * @param {string} pHTMLSelector - The HTML selector for the input object
68
+ * @param {string} pTransactionGUID - The transaction GUID for the event dispatch.
66
69
  */
67
- onDataChange(pView: any, pInput: any, pValue: any, pHTMLSelector: string): boolean;
70
+ onDataChange(pView: any, pInput: any, pValue: any, pHTMLSelector: string, pTransactionGUID: string): boolean;
68
71
  /**
69
72
  * Called when an input has this Provider hash in its 'Providers' array.
70
73
  *
@@ -73,8 +76,9 @@ declare class PictInputExtensionProvider extends libPictProvider {
73
76
  * @param {any} pValue - The new value of the input object
74
77
  * @param {string} pHTMLSelector - The HTML selector for the input object
75
78
  * @param {number} pRowIndex - The row index of the tabular data
79
+ * @param {string} pTransactionGUID - The transaction GUID for the event dispatch.
76
80
  */
77
- onDataChangeTabular(pView: any, pInput: any, pValue: any, pHTMLSelector: string, pRowIndex: number): boolean;
81
+ onDataChangeTabular(pView: any, pInput: any, pValue: any, pHTMLSelector: string, pRowIndex: number, pTransactionGUID: string): boolean;
78
82
  /**
79
83
  * Fires when data is marshaled to the form for this input.
80
84
  *
@@ -84,9 +88,10 @@ declare class PictInputExtensionProvider extends libPictProvider {
84
88
  * @param {Object} pInput - The input object.
85
89
  * @param {any} pValue - The value to marshal.
86
90
  * @param {string} pHTMLSelector - The HTML selector.
91
+ * @param {string} pTransactionGUID - The transaction GUID for the event dispatch.
87
92
  * @returns {boolean} - Returns true if the data was successfully marshaled to the form.
88
93
  */
89
- onDataMarshalToForm(pView: any, pGroup: any, pRow: number, pInput: any, pValue: any, pHTMLSelector: string): boolean;
94
+ onDataMarshalToForm(pView: any, pGroup: any, pRow: number, pInput: any, pValue: any, pHTMLSelector: string, pTransactionGUID: string): boolean;
90
95
  /**
91
96
  * Fires when data is marshaled to the form for this input.
92
97
  *
@@ -96,9 +101,10 @@ declare class PictInputExtensionProvider extends libPictProvider {
96
101
  * @param {any} pValue - The value to marshal.
97
102
  * @param {string} pHTMLSelector - The HTML selector.
98
103
  * @param {number} pRowIndex - The index of the input in the row columns.
104
+ * @param {string} pTransactionGUID - The transaction GUID for the event dispatch.
99
105
  * @returns {boolean} - Returns true if the data was successfully marshaled to the form.
100
106
  */
101
- onDataMarshalToFormTabular(pView: any, pGroup: any, pInput: any, pValue: any, pHTMLSelector: string, pRowIndex: number): boolean;
107
+ onDataMarshalToFormTabular(pView: any, pGroup: any, pInput: any, pValue: any, pHTMLSelector: string, pRowIndex: number, pTransactionGUID: string): boolean;
102
108
  /**
103
109
  * Handles data requests for the Pict-Provider-InputExtension.
104
110
  *
@@ -128,9 +134,35 @@ declare class PictInputExtensionProvider extends libPictProvider {
128
134
  * @param {any} pValue - The value from AppData.
129
135
  * @param {string} pHTMLSelector - The HTML selector.
130
136
  * @param {string} pEvent - The event hash that is expected to be triggered.
137
+ * @param {string} pTransactionGUID - The transaction GUID, if any.
131
138
  * @returns {boolean} - Returns true.
132
139
  */
133
- onEvent(pView: any, pInput: any, pValue: any, pHTMLSelector: string, pEvent: string): boolean;
140
+ onEvent(pView: any, pInput: any, pValue: any, pHTMLSelector: string, pEvent: string, pTransactionGUID: string): boolean;
141
+ /**
142
+ * Handles events for the Pict-Provider-InputExtension.
143
+ *
144
+ * @param {Object} pView - The view object.
145
+ * @param {Object} pInput - The input object.
146
+ * @param {any} pValue - The value from AppData.
147
+ * @param {string} pHTMLSelector - The HTML selector.
148
+ * @param {string} pEvent - The event hash that is expected to be triggered.
149
+ * @param {string} pTransactionGUID - The transaction GUID, if any.
150
+ * @returns {boolean} - Returns true.
151
+ */
152
+ onAfterEventCompletion(pView: any, pInput: any, pValue: any, pHTMLSelector: string, pEvent: string, pTransactionGUID: string): boolean;
153
+ /**
154
+ * Handles events for the Pict-Provider-InputExtension.
155
+ *
156
+ * @param {Object} pView - The view object.
157
+ * @param {Object} pInput - The input object.
158
+ * @param {any} pValue - The value from AppData.
159
+ * @param {string} pHTMLSelector - The HTML selector.
160
+ * @param {number} pRowIndex - The row index of the tabular data.
161
+ * @param {string} pEvent - The event hash that is expected to be triggered.
162
+ * @param {string} pTransactionGUID - The transaction GUID, if any.
163
+ * @returns {boolean} - Returns true.
164
+ */
165
+ onEventTabular(pView: any, pInput: any, pValue: any, pHTMLSelector: string, pRowIndex: number, pEvent: string, pTransactionGUID: string): boolean;
134
166
  /**
135
167
  * Handles events for the Pict-Provider-InputExtension.
136
168
  *
@@ -140,9 +172,10 @@ declare class PictInputExtensionProvider extends libPictProvider {
140
172
  * @param {string} pHTMLSelector - The HTML selector.
141
173
  * @param {number} pRowIndex - The row index of the tabular data.
142
174
  * @param {string} pEvent - The event hash that is expected to be triggered.
175
+ * @param {string} pTransactionGUID - The transaction GUID, if any.
143
176
  * @returns {boolean} - Returns true.
144
177
  */
145
- onEventTabular(pView: any, pInput: any, pValue: any, pHTMLSelector: string, pRowIndex: number, pEvent: string): boolean;
178
+ onAfterEventTabularCompletion(pView: any, pInput: any, pValue: any, pHTMLSelector: string, pRowIndex: number, pEvent: string, pTransactionGUID: string): boolean;
146
179
  }
147
180
  declare namespace PictInputExtensionProvider {
148
181
  export { _DefaultProviderConfiguration as default_configuration };
@@ -1 +1 @@
1
- {"version":3,"file":"Pict-Provider-InputExtension.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-InputExtension.js"],"names":[],"mappings":";AAaA;;;;GAIG;AACH;IAEC;;;;;;OAMG;IACH,oBAJW,MAAM,YACN,MAAM,gBACN,MAAM,EAMhB;IAGD;;;;;OAKG;IACH,6BAHW,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;OAMG;IACH,oCAJW,MAAM,aACN,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;;;;;;OAWG;IACH,2EAHW,GAAG,iBACH,MAAM,WAKhB;IAED;;;;;;;;;;;OAWG;IACH,uEAJW,GAAG,iBACH,MAAM,aACN,MAAM,WAKhB;IAED;;;;;;;;;OASG;IACH,8CAHW,GAAG,iBACH,MAAM,WAKhB;IAED;;;;;;;;OAQG;IACH,qDAJW,GAAG,iBACH,MAAM,aACN,MAAM,WAKhB;IAED;;;;;;;;;;OAUG;IACH,mDANW,MAAM,uBAEN,GAAG,iBACH,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;;;OAUG;IACH,yEALW,GAAG,iBACH,MAAM,aACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;OAQG;IACH,+CAJW,GAAG,iBACH,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;;OASG;IACH,sDALW,GAAG,iBACH,MAAM,aACN,MAAM,GACJ,OAAO,CAKnB;IAGD;;;;;;;;;OASG;IACH,yCALW,GAAG,iBACH,MAAM,UACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;;;OAUG;IACH,gDANW,GAAG,iBACH,MAAM,aACN,MAAM,UACN,MAAM,GACJ,OAAO,CAKnB;CACD;;;;;AAlND,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAS3B"}
1
+ {"version":3,"file":"Pict-Provider-InputExtension.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-InputExtension.js"],"names":[],"mappings":";AAaA;;;;GAIG;AACH;IAEC;;;;;;OAMG;IACH,oBAJW,MAAM,YACN,MAAM,gBACN,MAAM,EAMhB;IAGD;;;;;OAKG;IACH,6BAHW,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;OAMG;IACH,oCAJW,MAAM,aACN,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;;;;;;;OAYG;IACH,2EAJW,GAAG,iBAEH,MAAM,oBADN,MAAM,WAMhB;IAED;;;;;;;;;;;;OAYG;IACH,uEALW,GAAG,iBACH,MAAM,aAEN,MAAM,oBADN,MAAM,WAMhB;IAED;;;;;;;;;;OAUG;IACH,8CAJW,GAAG,iBACH,MAAM,oBACN,MAAM,WAKhB;IAED;;;;;;;;;OASG;IACH,qDALW,GAAG,iBACH,MAAM,aACN,MAAM,oBACN,MAAM,WAKhB;IAED;;;;;;;;;;;OAWG;IACH,mDAPW,MAAM,uBAEN,GAAG,iBACH,MAAM,oBACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;;;;OAWG;IACH,yEANW,GAAG,iBACH,MAAM,aACN,MAAM,oBACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;OAQG;IACH,+CAJW,GAAG,iBACH,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;;OASG;IACH,sDALW,GAAG,iBACH,MAAM,aACN,MAAM,GACJ,OAAO,CAKnB;IAGD;;;;;;;;;;OAUG;IACH,yCANW,GAAG,iBACH,MAAM,UACN,MAAM,oBACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;;;OAUG;IACH,wDANW,GAAG,iBACH,MAAM,UACN,MAAM,oBACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;;;;OAWG;IACH,gDAPW,GAAG,iBACH,MAAM,aACN,MAAM,UACN,MAAM,oBACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;;;;OAWG;IACH,+DAPW,GAAG,iBACH,MAAM,aACN,MAAM,UACN,MAAM,oBACN,MAAM,GACJ,OAAO,CAKnB;CACD;;;;;AA3PD,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAS3B"}
@@ -14,7 +14,7 @@ export = CustomInputHandler;
14
14
  Providers: ["Pict-Input-AutofillTriggerGroup"],
15
15
  AutofillTriggerGroup:
16
16
  {
17
- TriggerGroupName: "Author",
17
+ TriggerGroupHash: "Author",
18
18
  TriggerAddress: "AppData.CurrentAuthor.Name",
19
19
  MarshalEmptyValues: true
20
20
  }
@@ -40,9 +40,10 @@ declare class CustomInputHandler extends libPictSectionInputExtension {
40
40
  * @param {Object} pInput - The input object.
41
41
  * @param {any} pValue - The new value of the input.
42
42
  * @param {string} pHTMLSelector - The HTML selector of the input.
43
+ * @param {string} pTransactionGUID - The transaction GUID, if any.
43
44
  * @returns {any} - The result of the super.onDataChange method.
44
45
  */
45
- onDataChange(pView: any, pInput: any, pValue: any, pHTMLSelector: string): any;
46
+ onDataChange(pView: any, pInput: any, pValue: any, pHTMLSelector: string, pTransactionGUID: string): any;
46
47
  /**
47
48
  * Handles the change event for tabular data.
48
49
  *
@@ -51,11 +52,10 @@ declare class CustomInputHandler extends libPictSectionInputExtension {
51
52
  * @param {any} pValue - The new value.
52
53
  * @param {string} pHTMLSelector - The HTML selector.
53
54
  * @param {number} pRowIndex - The index of the row.
55
+ * @param {string} pTransactionGUID - The transaction GUID, if any.
54
56
  * @returns {any} - The result of the super method.
55
57
  */
56
- onDataChangeTabular(pView: any, pInput: any, pValue: any, pHTMLSelector: string, pRowIndex: number): any;
57
- onEvent(pView: any, pInput: any, pValue: any, pHTMLSelector: any, pEvent: any): boolean;
58
- onEventTabular(pView: any, pInput: any, pValue: any, pHTMLSelector: any, pRowIndex: any, pEvent: any): boolean;
58
+ onDataChangeTabular(pView: any, pInput: any, pValue: any, pHTMLSelector: string, pRowIndex: number, pTransactionGUID: string): any;
59
59
  }
60
60
  import libPictSectionInputExtension = require("../Pict-Provider-InputExtension.js");
61
61
  //# sourceMappingURL=Pict-Provider-Input-AutofillTriggerGroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pict-Provider-Input-AutofillTriggerGroup.d.ts","sourceRoot":"","sources":["../../../../source/providers/inputs/Pict-Provider-Input-AutofillTriggerGroup.js"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH;IAEC,2DAQC;IAJA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IAKV,oDAYC;IAED,sGAwBC;IAED,6HAwBC;IAGD;;;;;;;;OAQG;IACH,8CAJW,GAAG,iBACH,MAAM,GACJ,GAAG,CAgBf;IAED;;;;;;;;;OASG;IACH,qDALW,GAAG,iBACH,MAAM,aACN,MAAM,GACJ,GAAG,CAgBf;IAGD,wFAqCC;IAED,+GAuCC;CACD"}
1
+ {"version":3,"file":"Pict-Provider-Input-AutofillTriggerGroup.d.ts","sourceRoot":"","sources":["../../../../source/providers/inputs/Pict-Provider-Input-AutofillTriggerGroup.js"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH;IAEC,2DAQC;IAJA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IAKV,oDAYC;IAED,sGAwBC;IAED,6HAwBC;IAGD;;;;;;;;;OASG;IACH,8CALW,GAAG,iBACH,MAAM,oBACN,MAAM,GACJ,GAAG,CAmBf;IAED;;;;;;;;;;OAUG;IACH,qDANW,GAAG,iBACH,MAAM,aACN,MAAM,oBACN,MAAM,GACJ,GAAG,CAmBf;CAyHD"}
@@ -42,9 +42,10 @@ declare class CustomInputHandler extends libPictSectionInputExtension {
42
42
  * @param {Object} pInput - The input object.
43
43
  * @param {any} pValue - The value to be assigned.
44
44
  * @param {string} pHTMLSelector - The HTML selector.
45
+ * @param {string} pTransactionGUID - The transaction GUID for the event dispatch.
45
46
  * @returns {any} - The result of the super method call.
46
47
  */
47
- onDataMarshalToForm(pView: any, pGroup: any, pRow: any, pInput: any, pValue: any, pHTMLSelector: string): any;
48
+ onDataMarshalToForm(pView: any, pGroup: any, pRow: any, pInput: any, pValue: any, pHTMLSelector: string, pTransactionGUID: string): any;
48
49
  /**
49
50
  * Marshals data to the form in a tabular format.
50
51
  *
@@ -54,9 +55,10 @@ declare class CustomInputHandler extends libPictSectionInputExtension {
54
55
  * @param {any} pValue - The value to be assigned.
55
56
  * @param {string} pHTMLSelector - The HTML selector.
56
57
  * @param {number} pRowIndex - The index of the row.
58
+ * @param {string} pTransactionGUID - The transaction GUID for the event dispatch.
57
59
  * @returns {any} - The result of the data marshaling.
58
60
  */
59
- onDataMarshalToFormTabular(pView: any, pGroup: any, pInput: any, pValue: any, pHTMLSelector: string, pRowIndex: number): any;
61
+ onDataMarshalToFormTabular(pView: any, pGroup: any, pInput: any, pValue: any, pHTMLSelector: string, pRowIndex: number, pTransactionGUID: string): any;
60
62
  }
61
63
  import libPictSectionInputExtension = require("../Pict-Provider-InputExtension.js");
62
64
  //# sourceMappingURL=Pict-Provider-Input-DateTime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pict-Provider-Input-DateTime.d.ts","sourceRoot":"","sources":["../../../../source/providers/inputs/Pict-Provider-Input-DateTime.js"],"names":[],"mappings":";AAEA;;;;GAIG;AACH;IAEC,2DAQC;IAJA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IAKV;;;;;OAKG;IACH,qCAHW,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;OAMG;IACH,kDAJW,MAAM,aACN,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;OAMG;IACH,4CAJW,MAAM,aACN,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;;;;;;;OAYG;IACH,6EAJW,GAAG,iBACH,MAAM,GACJ,GAAG,CAMf;IAED;;;;;;;;;;OAUG;IACH,yEALW,GAAG,iBACH,MAAM,aACN,MAAM,GACJ,GAAG,CAMf;CAmED"}
1
+ {"version":3,"file":"Pict-Provider-Input-DateTime.d.ts","sourceRoot":"","sources":["../../../../source/providers/inputs/Pict-Provider-Input-DateTime.js"],"names":[],"mappings":";AAEA;;;;GAIG;AACH;IAEC,2DAQC;IAJA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IAKV;;;;;OAKG;IACH,qCAHW,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;OAMG;IACH,kDAJW,MAAM,aACN,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;OAMG;IACH,4CAJW,MAAM,aACN,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;;;;;;;;OAaG;IACH,6EALW,GAAG,iBACH,MAAM,oBACN,MAAM,GACJ,GAAG,CAMf;IAED;;;;;;;;;;;OAWG;IACH,yEANW,GAAG,iBACH,MAAM,aACN,MAAM,oBACN,MAAM,GACJ,GAAG,CAMf;CAmED"}