pict-section-form 1.0.123 → 1.0.124
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/source/providers/Pict-Provider-DynamicSolver.js +1 -1
- package/source/providers/inputs/Pict-Provider-Input-AutofillTriggerGroup.js +8 -8
- package/source/providers/inputs/Pict-Provider-Input-EntityBundleRequest.js +17 -6
- package/source/views/Pict-View-DynamicForm.js +17 -12
- package/types/source/providers/Pict-Provider-DynamicSolver.d.ts +2 -1
- package/types/source/providers/Pict-Provider-DynamicSolver.d.ts.map +1 -1
- package/types/source/providers/inputs/Pict-Provider-Input-EntityBundleRequest.d.ts +3 -2
- package/types/source/providers/inputs/Pict-Provider-Input-EntityBundleRequest.d.ts.map +1 -1
- package/types/source/views/Pict-View-DynamicForm.d.ts +0 -1
- package/types/source/views/Pict-View-DynamicForm.d.ts.map +1 -1
- package/utility/csvparser/ParseCSV-Command-Inject.js +3 -1
package/package.json
CHANGED
|
@@ -47,7 +47,7 @@ class PictDynamicSolver extends libPictProvider
|
|
|
47
47
|
|
|
48
48
|
/** @type {import('pict')} */
|
|
49
49
|
this.pict;
|
|
50
|
-
/** @type {import('pict') & { instantiateServiceProviderIfNotExists: (hash: string) => any }} */
|
|
50
|
+
/** @type {import('pict') & { instantiateServiceProviderIfNotExists: (hash: string) => any, ExpressionParser: any }} */
|
|
51
51
|
this.fable;
|
|
52
52
|
/** @type {any} */
|
|
53
53
|
this.log;
|
|
@@ -176,9 +176,9 @@ class CustomInputHandler extends libPictSectionInputExtension
|
|
|
176
176
|
* @param {string} pTransactionGUID - The transaction GUID, if any.
|
|
177
177
|
* @returns {boolean} - Returns true.
|
|
178
178
|
*/
|
|
179
|
-
|
|
179
|
+
onAfterEventCompletion(pView, pInput, pValue, pHTMLSelector, pEvent, pTransactionGUID)
|
|
180
180
|
{
|
|
181
|
-
const tmpPayload = typeof
|
|
181
|
+
const tmpPayload = typeof pEvent === 'string' ? pEvent : '';
|
|
182
182
|
let [ tmpType, tmpGroupHash, tmpEvent, tmpInputHash, tmpEventGUID ] = tmpPayload.split(':');
|
|
183
183
|
if (!tmpEventGUID)
|
|
184
184
|
{
|
|
@@ -188,7 +188,7 @@ class CustomInputHandler extends libPictSectionInputExtension
|
|
|
188
188
|
let tmpAutoFillTriggerGroups = pInput.PictForm.AutofillTriggerGroup;
|
|
189
189
|
if (!tmpAutoFillTriggerGroups || tmpType !== 'TriggerGroup' || (pInput.Hash || pInput.DataAddress) == tmpInputHash)
|
|
190
190
|
{
|
|
191
|
-
return super.
|
|
191
|
+
return super.onAfterEventCompletion(pView, pInput, pValue, pHTMLSelector, pEvent, pTransactionGUID);
|
|
192
192
|
}
|
|
193
193
|
if (!Array.isArray(tmpAutoFillTriggerGroups))
|
|
194
194
|
{
|
|
@@ -220,7 +220,7 @@ class CustomInputHandler extends libPictSectionInputExtension
|
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
return super.
|
|
223
|
+
return super.onAfterEventCompletion(pView, pInput, pValue, pHTMLSelector, pEvent, pTransactionGUID);
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
/**
|
|
@@ -235,9 +235,9 @@ class CustomInputHandler extends libPictSectionInputExtension
|
|
|
235
235
|
* @param {string} pTransactionGUID - The transaction GUID, if any.
|
|
236
236
|
* @returns {boolean} - Returns true.
|
|
237
237
|
*/
|
|
238
|
-
|
|
238
|
+
onAfterEventTabularCompletion(pView, pInput, pValue, pHTMLSelector, pRowIndex, pEvent, pTransactionGUID)
|
|
239
239
|
{
|
|
240
|
-
const tmpPayload = typeof
|
|
240
|
+
const tmpPayload = typeof pEvent === 'string' ? pEvent : '';
|
|
241
241
|
let [ tmpType, tmpGroupHash, tmpEvent, tmpInputHash, tmpEventGUID ] = tmpPayload.split(':');
|
|
242
242
|
if (!tmpEventGUID)
|
|
243
243
|
{
|
|
@@ -247,7 +247,7 @@ class CustomInputHandler extends libPictSectionInputExtension
|
|
|
247
247
|
if (!pInput.PictForm.AutofillTriggerGroup || tmpType !== 'TriggerGroup' || (pInput.Hash || pInput.DataAddress) == tmpInputHash)
|
|
248
248
|
{
|
|
249
249
|
// Do nothing for now -- this is the triggering element
|
|
250
|
-
return super.
|
|
250
|
+
return super.onAfterEventTabularCompletion(pView, pInput, pValue, pHTMLSelector, pRowIndex, pEvent, pTransactionGUID);
|
|
251
251
|
}
|
|
252
252
|
let tmpAutoFillTriggerGroups = pInput.PictForm.AutofillTriggerGroup;
|
|
253
253
|
if (!Array.isArray(tmpAutoFillTriggerGroups))
|
|
@@ -282,7 +282,7 @@ class CustomInputHandler extends libPictSectionInputExtension
|
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
return super.
|
|
285
|
+
return super.onAfterEventTabularCompletion(pView, pInput, pValue, pHTMLSelector, pRowIndex, pEvent, pTransactionGUID);
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
|
|
@@ -199,10 +199,11 @@ class CustomInputHandler extends libPictSectionInputExtension
|
|
|
199
199
|
* @param {Object} pInput - The input object.
|
|
200
200
|
* @param {any} pValue - The value of the input.
|
|
201
201
|
* @param {string} pHTMLSelector - The HTML selector.
|
|
202
|
+
* @param {string} [pTransactionGUID] - (optional) The transaction GUID for the event dispatch.
|
|
202
203
|
*
|
|
203
|
-
* @return {Promise<
|
|
204
|
+
* @return {Promise<Error?>} - Returns a promise that resolves when the data has been gathered.
|
|
204
205
|
*/
|
|
205
|
-
async gatherDataFromServer(pView, pInput, pValue, pHTMLSelector)
|
|
206
|
+
async gatherDataFromServer(pView, pInput, pValue, pHTMLSelector, pTransactionGUID)
|
|
206
207
|
{
|
|
207
208
|
// Gather data from the server
|
|
208
209
|
// These have to date not been asyncronous. Now they will be...
|
|
@@ -212,6 +213,11 @@ class CustomInputHandler extends libPictSectionInputExtension
|
|
|
212
213
|
return null;
|
|
213
214
|
}
|
|
214
215
|
|
|
216
|
+
const tmpLoadGUID = `BundleLoad-${this.pict.getUUID()}`;
|
|
217
|
+
if (pTransactionGUID)
|
|
218
|
+
{
|
|
219
|
+
pView.registerEventTransactionAsyncOperation(pTransactionGUID, tmpLoadGUID);
|
|
220
|
+
}
|
|
215
221
|
let tmpInput = pInput;
|
|
216
222
|
let tmpValue = pValue;
|
|
217
223
|
let tmpAnticipate = this.fable.newAnticipate();
|
|
@@ -248,7 +254,7 @@ class CustomInputHandler extends libPictSectionInputExtension
|
|
|
248
254
|
if (tmpInput.PictForm.EntityBundleTriggerGroup && this.pict.views.PictFormMetacontroller)
|
|
249
255
|
{
|
|
250
256
|
// Trigger the autofill global event
|
|
251
|
-
this.pict.views.PictFormMetacontroller.triggerGlobalInputEvent(`TriggerGroup:${tmpInput.PictForm.EntityBundleTriggerGroup}:BundleLoad:${pInput.Hash || pInput.DataAddress}:${this.pict.getUUID()}
|
|
257
|
+
this.pict.views.PictFormMetacontroller.triggerGlobalInputEvent(`TriggerGroup:${tmpInput.PictForm.EntityBundleTriggerGroup}:BundleLoad:${pInput.Hash || pInput.DataAddress}:${this.pict.getUUID()}`, pTransactionGUID);
|
|
252
258
|
}
|
|
253
259
|
if (tmpInput.PictForm.EntityBundleTriggerMetacontrollerSolve && this.pict.views.PictFormMetacontroller)
|
|
254
260
|
{
|
|
@@ -274,6 +280,11 @@ class CustomInputHandler extends libPictSectionInputExtension
|
|
|
274
280
|
{
|
|
275
281
|
this.log.error(`EntityBundleRequest error gathering entity set: ${pError}`, pError);
|
|
276
282
|
}
|
|
283
|
+
//TODO: close the async operation if we have a transaction GUID
|
|
284
|
+
if (pTransactionGUID)
|
|
285
|
+
{
|
|
286
|
+
pView.eventTransactionAsyncOperationComplete(pTransactionGUID, tmpLoadGUID);
|
|
287
|
+
}
|
|
277
288
|
|
|
278
289
|
return pResolve(pError);
|
|
279
290
|
});
|
|
@@ -298,7 +309,7 @@ class CustomInputHandler extends libPictSectionInputExtension
|
|
|
298
309
|
if (pValue && pInput.PictForm && pInput.PictForm.EntityBundleTriggerOnInitialize)
|
|
299
310
|
{
|
|
300
311
|
// This is a request on initial load
|
|
301
|
-
this.gatherDataFromServer(pView, pInput, pValue, pHTMLSelector);
|
|
312
|
+
this.gatherDataFromServer(pView, pInput, pValue, pHTMLSelector, pTransactionGUID);
|
|
302
313
|
}
|
|
303
314
|
// This is in case we need to do a request on initial load!
|
|
304
315
|
return super.onInputInitialize(pView, pGroup, pRow, pInput, pValue, pHTMLSelector, pTransactionGUID);
|
|
@@ -333,7 +344,7 @@ class CustomInputHandler extends libPictSectionInputExtension
|
|
|
333
344
|
*/
|
|
334
345
|
onDataChange(pView, pInput, pValue, pHTMLSelector, pTransactionGUID)
|
|
335
346
|
{
|
|
336
|
-
this.gatherDataFromServer(pView, pInput, pValue, pHTMLSelector);
|
|
347
|
+
this.gatherDataFromServer(pView, pInput, pValue, pHTMLSelector, pTransactionGUID);
|
|
337
348
|
return super.onDataChange(pView, pInput, pValue, pHTMLSelector, pTransactionGUID);
|
|
338
349
|
}
|
|
339
350
|
|
|
@@ -350,7 +361,7 @@ class CustomInputHandler extends libPictSectionInputExtension
|
|
|
350
361
|
*/
|
|
351
362
|
onDataChangeTabular(pView, pInput, pValue, pHTMLSelector, pRowIndex, pTransactionGUID)
|
|
352
363
|
{
|
|
353
|
-
this.gatherDataFromServer(pView, pInput, pValue, pHTMLSelector);
|
|
364
|
+
this.gatherDataFromServer(pView, pInput, pValue, pHTMLSelector, pTransactionGUID);
|
|
354
365
|
return super.onDataChangeTabular(pView, pInput, pValue, pHTMLSelector, pRowIndex, pTransactionGUID);
|
|
355
366
|
}
|
|
356
367
|
|
|
@@ -68,7 +68,8 @@ class PictViewDynamicForm extends libPictViewClass
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
// Use this to manage transactions
|
|
71
|
-
|
|
71
|
+
//FIXME: should we have these sioled??
|
|
72
|
+
//this.transactionTracking = this.pict.newTransactionTracker();
|
|
72
73
|
|
|
73
74
|
/** @type {Record<string, any>} */
|
|
74
75
|
this._PackagePictView = this._Package;
|
|
@@ -177,6 +178,7 @@ class PictViewDynamicForm extends libPictViewClass
|
|
|
177
178
|
|
|
178
179
|
let tmpInputProviderList = this.getInputProviderList(tmpInput);
|
|
179
180
|
const tmpTransactionGUID = this.fable.getUUID();
|
|
181
|
+
this.pict.TransactionTracking.registerTransaction(tmpTransactionGUID);
|
|
180
182
|
for (let i = 0; i < tmpInputProviderList.length; i++)
|
|
181
183
|
{
|
|
182
184
|
if (this.pict.providers[tmpInputProviderList[i]])
|
|
@@ -239,6 +241,7 @@ class PictViewDynamicForm extends libPictViewClass
|
|
|
239
241
|
let tmpVirtualInformaryHTMLSelector = tmpInput.Macro.HTMLSelectorTabular + `[data-i-index="${pRowIndex}"]`;
|
|
240
242
|
let tmpInputProviderList = this.getInputProviderList(tmpInput);
|
|
241
243
|
const tmpTransactionGUID = this.fable.getUUID();
|
|
244
|
+
this.pict.TransactionTracking.registerTransaction(tmpTransactionGUID);
|
|
242
245
|
for (let i = 0; i < tmpInputProviderList.length; i++)
|
|
243
246
|
{
|
|
244
247
|
if (this.pict.providers[tmpInputProviderList[i]])
|
|
@@ -287,6 +290,7 @@ class PictViewDynamicForm extends libPictViewClass
|
|
|
287
290
|
let tmpVirtualInformaryHTMLSelector = pInput.Macro.HTMLSelector;
|
|
288
291
|
let tmpInputProviderList = this.getInputProviderList(pInput);
|
|
289
292
|
const tmpTransactionGUID = this.fable.getUUID();
|
|
293
|
+
this.pict.TransactionTracking.registerTransaction(tmpTransactionGUID);
|
|
290
294
|
for (let i = 0; i < tmpInputProviderList.length; i++)
|
|
291
295
|
{
|
|
292
296
|
if (this.pict.providers[tmpInputProviderList[i]])
|
|
@@ -366,6 +370,7 @@ class PictViewDynamicForm extends libPictViewClass
|
|
|
366
370
|
let tmpVirtualInformaryHTMLSelector = tmpInput.Macro.HTMLSelectorTabular + `[data-i-index="${pRowIndex}"]`;
|
|
367
371
|
let tmpInputProviderList = this.getInputProviderList(tmpInput);
|
|
368
372
|
const tmpTransactionGUID = this.fable.getUUID();
|
|
373
|
+
this.pict.TransactionTracking.registerTransaction(tmpTransactionGUID);
|
|
369
374
|
for (let i = 0; i < tmpInputProviderList.length; i++)
|
|
370
375
|
{
|
|
371
376
|
if (this.pict.providers[tmpInputProviderList[i]])
|
|
@@ -442,7 +447,7 @@ class PictViewDynamicForm extends libPictViewClass
|
|
|
442
447
|
try
|
|
443
448
|
{
|
|
444
449
|
let tmpTransactionGUID = this.fable.getUUID();
|
|
445
|
-
this.
|
|
450
|
+
this.pict.TransactionTracking.registerTransaction(tmpTransactionGUID);
|
|
446
451
|
let tmpMarshalDestinationObject = this.getMarshalDestinationObject();
|
|
447
452
|
// TODO: Add optional transaction awareness to informary
|
|
448
453
|
this.pict.providers.Informary.marshalDataToForm(tmpMarshalDestinationObject, this.formID, this.sectionManifest);
|
|
@@ -461,7 +466,7 @@ class PictViewDynamicForm extends libPictViewClass
|
|
|
461
466
|
try
|
|
462
467
|
{
|
|
463
468
|
let tmpTransactionGUID = (typeof(pTransactionGUID) == 'string') ? pTransactionGUID : this.fable.getUUID();
|
|
464
|
-
this.
|
|
469
|
+
this.pict.TransactionTracking.registerTransaction(tmpTransactionGUID);
|
|
465
470
|
this.pict.providers.Informary.manualMarshalDataToFormByInput(pInput);
|
|
466
471
|
this.runLayoutProviderFunctions('onDataMarshalToForm', tmpTransactionGUID);
|
|
467
472
|
this.runInputProviderFunctions('onDataMarshalToForm', pInput.Hash, null, tmpTransactionGUID);
|
|
@@ -477,7 +482,7 @@ class PictViewDynamicForm extends libPictViewClass
|
|
|
477
482
|
try
|
|
478
483
|
{
|
|
479
484
|
let tmpTransactionGUID = (typeof(pTransactionGUID) == 'string') ? pTransactionGUID : this.fable.getUUID();
|
|
480
|
-
this.
|
|
485
|
+
this.pict.TransactionTracking.registerTransaction(tmpTransactionGUID);
|
|
481
486
|
this.pict.providers.Informary.manualMarshalTabularDataToFormByInput(pInput, pRowIndex);
|
|
482
487
|
this.runLayoutProviderFunctions('onDataMarshalToForm', tmpTransactionGUID);
|
|
483
488
|
this.runInputProviderFunctions('onDataMarshalToForm', pInput.Hash, pRowIndex, tmpTransactionGUID);
|
|
@@ -516,7 +521,7 @@ class PictViewDynamicForm extends libPictViewClass
|
|
|
516
521
|
try
|
|
517
522
|
{
|
|
518
523
|
let tmpTransactionGUID = this.fable.getUUID();
|
|
519
|
-
this.
|
|
524
|
+
this.pict.TransactionTracking.registerTransaction(tmpTransactionGUID);
|
|
520
525
|
this.runInputProviderFunctions('onAfterMarshalToForm', null, null, tmpTransactionGUID);
|
|
521
526
|
|
|
522
527
|
}
|
|
@@ -602,7 +607,7 @@ class PictViewDynamicForm extends libPictViewClass
|
|
|
602
607
|
onAfterRender(pRenderable)
|
|
603
608
|
{
|
|
604
609
|
let tmpTransactionGUID = this.fable.getUUID();
|
|
605
|
-
this.
|
|
610
|
+
this.pict.TransactionTracking.registerTransaction(tmpTransactionGUID);
|
|
606
611
|
|
|
607
612
|
this.runLayoutProviderFunctions('onGroupLayoutInitialize', tmpTransactionGUID);
|
|
608
613
|
this.runInputProviderFunctions('onInputInitialize', null, null, tmpTransactionGUID);
|
|
@@ -628,7 +633,7 @@ class PictViewDynamicForm extends libPictViewClass
|
|
|
628
633
|
runLayoutProviderFunctions(pFunctionName, pTransactionGUID)
|
|
629
634
|
{
|
|
630
635
|
const tmpTransactionGUID = (typeof(pTransactionGUID) === 'string') ? pTransactionGUID : this.fable.getUUID();
|
|
631
|
-
const tmpTransaction = this.
|
|
636
|
+
const tmpTransaction = this.pict.TransactionTracking.registerTransaction(tmpTransactionGUID);
|
|
632
637
|
|
|
633
638
|
// Check to see if there are any hooks set from the input templates
|
|
634
639
|
let tmpLayoutProviders = this.pict.ContentAssignment.getElement(`${this.sectionDefinition.DefaultDestinationAddress} [data-i-pictdynamiclayout="true"]`);
|
|
@@ -660,7 +665,7 @@ class PictViewDynamicForm extends libPictViewClass
|
|
|
660
665
|
if (tmpLayoutProvider && (pFunctionName in tmpLayoutProvider))
|
|
661
666
|
{
|
|
662
667
|
let tmpFunction = tmpLayoutProvider[pFunctionName];
|
|
663
|
-
if (this.
|
|
668
|
+
if (this.pict.TransactionTracking.checkEvent(tmpTransaction.TransactionKey, `G${tmpGroupIndex}-L${tmpLayout}`, pFunctionName))
|
|
664
669
|
{
|
|
665
670
|
tmpFunction.call(tmpLayoutProvider, this, tmpGroup);
|
|
666
671
|
}
|
|
@@ -679,7 +684,7 @@ class PictViewDynamicForm extends libPictViewClass
|
|
|
679
684
|
runInputProviderFunctions(pFunctionName, pInputHash, pRowIndex, pTransactionGUID)
|
|
680
685
|
{
|
|
681
686
|
const tmpTransactionGUID = (typeof(pTransactionGUID) === 'string') ? pTransactionGUID : this.fable.getUUID();
|
|
682
|
-
const tmpTransaction = this.
|
|
687
|
+
const tmpTransaction = this.pict.TransactionTracking.registerTransaction(tmpTransactionGUID);
|
|
683
688
|
|
|
684
689
|
// Check to see if there are any hooks set from the input templates
|
|
685
690
|
for (let i = 0; i < this.sectionDefinition.Groups.length; i++)
|
|
@@ -713,8 +718,8 @@ class PictViewDynamicForm extends libPictViewClass
|
|
|
713
718
|
this.log.trace(`Dynamic form [${this.Hash}]::[${this.UUID}] running provider [${tmpInputProviderList[l]}] function [${pFunctionName}] for input [${tmpInput.Hash}].`);
|
|
714
719
|
}
|
|
715
720
|
// TODO: Right now the Option input requires this bug to work
|
|
716
|
-
//if (this.
|
|
717
|
-
if ((tmpInput.PictForm.InputType == 'Option') || this.
|
|
721
|
+
//if (this.pict.TransactionTracking.checkEvent(tmpTransaction.TransactionKey, `I${tmpInput.Hash}-P${tmpInputProviderList[l]}`, pFunctionName))
|
|
722
|
+
if ((tmpInput.PictForm.InputType == 'Option') || this.pict.TransactionTracking.checkEvent(tmpTransaction.TransactionKey, `I${tmpInput.Hash}-P${tmpInputProviderList[l]}`, pFunctionName))
|
|
718
723
|
{
|
|
719
724
|
this.pict.providers[tmpInputProviderList[l]][pFunctionName](this, tmpGroup, j, tmpInput, tmpValue, tmpInput.Macro.HTMLSelector);
|
|
720
725
|
}
|
|
@@ -766,7 +771,7 @@ class PictViewDynamicForm extends libPictViewClass
|
|
|
766
771
|
let tmpValue = this.sectionManifest.getValueByHash(this.getMarshalDestinationObject(), tmpValueAddress);
|
|
767
772
|
try
|
|
768
773
|
{
|
|
769
|
-
if (this.
|
|
774
|
+
if (this.pict.TransactionTracking.checkEvent(tmpTransaction.TransactionKey, `TI${tmpInput.Hash}-P${tmpInputProviderList[l]}-R${r}`, pFunctionName))
|
|
770
775
|
{
|
|
771
776
|
this.pict.providers[tmpInputProviderList[l]][pFunctionName + 'Tabular'](this, tmpGroup, tmpInput, tmpValue, tmpInput.Macro.HTMLSelectorTabular, r);
|
|
772
777
|
}
|
|
@@ -13,9 +13,10 @@ declare class PictDynamicSolver extends libPictProvider {
|
|
|
13
13
|
constructor(pFable: object, pOptions: object, pServiceHash: object);
|
|
14
14
|
/** @type {import('pict')} */
|
|
15
15
|
pict: import("pict");
|
|
16
|
-
/** @type {import('pict') & { instantiateServiceProviderIfNotExists: (hash: string) => any }} */
|
|
16
|
+
/** @type {import('pict') & { instantiateServiceProviderIfNotExists: (hash: string) => any, ExpressionParser: any }} */
|
|
17
17
|
fable: import("pict") & {
|
|
18
18
|
instantiateServiceProviderIfNotExists: (hash: string) => any;
|
|
19
|
+
ExpressionParser: any;
|
|
19
20
|
};
|
|
20
21
|
/**
|
|
21
22
|
* Checks the solver and returns the solver object if it passes the checks.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Provider-DynamicSolver.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicSolver.js"],"names":[],"mappings":";AA8BA;;GAEG;AACH;IAEC;;;;;;OAMG;IACH,oBAJW,MAAM,YACN,MAAM,gBACN,MAAM,EAqChB;IA9BA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,
|
|
1
|
+
{"version":3,"file":"Pict-Provider-DynamicSolver.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicSolver.js"],"names":[],"mappings":";AA8BA;;GAEG;AACH;IAEC;;;;;;OAMG;IACH,oBAJW,MAAM,YACN,MAAM,gBACN,MAAM,EAqChB;IA9BA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,uHAAuH;IACvH,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,qCAAqC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,GAAG,CAAC;QAAC,gBAAgB,EAAE,GAAG,CAAA;KAAE,CACzG;IA6BX;;;;;;;;;OASG;IACH,qBALW,MAAM,GAAC,MAAM,cACb,OAAO,aACP,MAAM,GACJ,MAAM,GAAC,SAAS,CA8B5B;IAED;;;;;;;OAOG;IACH,wDAFW,MAAM,QAyDhB;IAED;;;;;OAKG;IACH,gEAFW,MAAM,QA+BhB;IAED;;;;;OAKG;IACH,sDAFW,MAAM,QAwBhB;IAED;;;;;;;;OAQG;IACH,gCAJW,MAAM,yBAWhB;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,yBAFW,QAAM,MAAM,EAAE,QAiFxB;IADA;;;;;MAAuC;CAExC;;;;;AAhWD,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAS3B"}
|
|
@@ -52,10 +52,11 @@ declare class CustomInputHandler extends libPictSectionInputExtension {
|
|
|
52
52
|
* @param {Object} pInput - The input object.
|
|
53
53
|
* @param {any} pValue - The value of the input.
|
|
54
54
|
* @param {string} pHTMLSelector - The HTML selector.
|
|
55
|
+
* @param {string} [pTransactionGUID] - (optional) The transaction GUID for the event dispatch.
|
|
55
56
|
*
|
|
56
|
-
* @return {Promise<
|
|
57
|
+
* @return {Promise<Error?>} - Returns a promise that resolves when the data has been gathered.
|
|
57
58
|
*/
|
|
58
|
-
gatherDataFromServer(pView: any, pInput: any, pValue: any, pHTMLSelector: string): Promise<
|
|
59
|
+
gatherDataFromServer(pView: any, pInput: any, pValue: any, pHTMLSelector: string, pTransactionGUID?: string): Promise<Error | null>;
|
|
59
60
|
/**
|
|
60
61
|
* Initializes a tabular input element.
|
|
61
62
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Provider-Input-EntityBundleRequest.d.ts","sourceRoot":"","sources":["../../../../source/providers/inputs/Pict-Provider-Input-EntityBundleRequest.js"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH;IAEC,2DAUC;IANA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,4DAA4D;IAC5D,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,aAAa,EAAE,MAAM,GAAG,CAAA;KAAE,CAC9C;IAKX,oGA0EC;IAED,+GAgEC;IAED
|
|
1
|
+
{"version":3,"file":"Pict-Provider-Input-EntityBundleRequest.d.ts","sourceRoot":"","sources":["../../../../source/providers/inputs/Pict-Provider-Input-EntityBundleRequest.js"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH;IAEC,2DAUC;IANA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,4DAA4D;IAC5D,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,aAAa,EAAE,MAAM,GAAG,CAAA;KAAE,CAC9C;IAKX,oGA0EC;IAED,+GAgEC;IAED;;;;;;;;;;OAUG;IACH,sDANW,GAAG,iBACH,MAAM,qBACN,MAAM,GAEL,OAAO,CAAC,KAAK,OAAC,CAAC,CAwF1B;IA0BD;;;;;;;;;;;OAWG;IACH,uEANW,GAAG,iBACH,MAAM,aACN,MAAM,oBACN,MAAM,GACJ,GAAG,CAKf;IAED;;;;;;;;;OASG;IACH,8CALW,GAAG,iBACH,MAAM,oBACN,MAAM,GACJ,GAAG,CAMf;IAED;;;;;;;;;;OAUG;IACH,qDANW,GAAG,iBACH,MAAM,aACN,MAAM,oBACN,MAAM,GACJ,GAAG,CAMf;IAED;;;;;;;;;;;OAWG;IACH,6EALW,GAAG,iBACH,MAAM,oBACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;;;;OAWG;IACH,yEANW,GAAG,iBACH,MAAM,aACN,MAAM,oBACN,MAAM,GACJ,GAAG,CAKf;CACD"}
|
|
@@ -9,7 +9,6 @@ export = PictViewDynamicForm;
|
|
|
9
9
|
*/
|
|
10
10
|
declare class PictViewDynamicForm extends libPictViewClass {
|
|
11
11
|
constructor(pFable: any, pOptions: any, pServiceHash: any);
|
|
12
|
-
transactionTracking: import("pict/types/source/services/Fable-Service-TransactionTracking");
|
|
13
12
|
/** @type {Record<string, any>} */
|
|
14
13
|
_PackagePictView: Record<string, any>;
|
|
15
14
|
sectionDefinition: any;
|
|
@@ -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,
|
|
1
|
+
{"version":3,"file":"Pict-View-DynamicForm.d.ts","sourceRoot":"","sources":["../../../source/views/Pict-View-DynamicForm.js"],"names":[],"mappings":";AAYA;;;;;;;GAOG;AACH;IAEC,2DAwGC;IArDA,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,wBAFW,MAAM,QAiDhB;IAGD;;;;;;OAMG;IACH,gCAJW,MAAM,eACN,MAAM,aACN,MAAM,QAwDhB;IAED;;;;;;;;OAQG;IACH,uBAJW,MAAM,UACN,GAAG,GACD,OAAO,CAkCnB;IAED;;;;;;;;;;OAUG;IACH,kCANW,M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320,10 +320,12 @@ class ImportExtraDataCSVCommand extends libPictCommandLineUtility.ServiceCommand
|
|
|
320
320
|
|
|
321
321
|
if (tmpOptionsRow['Option Value'] || tmpOptionsRow['Option Text'])
|
|
322
322
|
{
|
|
323
|
+
// strip leading and trailing whitespace, and convert HTML entities for quotes and apostrophes
|
|
324
|
+
const tmpCleanText = (tmpOptionsRow['Option Text'] || tmpOptionsRow['Option Value']).trim().replace(/"/g, '"').replace(/'/g, "'");
|
|
323
325
|
tmpPickListConfig.DefaultListData.push(
|
|
324
326
|
{
|
|
325
327
|
id: tmpOptionsRow['Option Value'],
|
|
326
|
-
text:
|
|
328
|
+
text: tmpCleanText,
|
|
327
329
|
});
|
|
328
330
|
}
|
|
329
331
|
}
|