pict-section-form 1.0.170 → 1.0.172
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/example_applications/postcard_example/providers/PictProvider-BestPostcardTheme.js +1 -1
- package/example_applications/postcard_example/providers/PictProvider-Dynamic-Sections.js +0 -1
- package/example_applications/simple_distill/Simple-Form-Application.js +33 -2
- package/package.json +2 -2
- package/source/providers/Pict-Provider-DynamicInputEvents.js +0 -3
- package/source/providers/Pict-Provider-DynamicSolver.js +2 -2
- package/source/providers/Pict-Provider-MetatemplateGenerator.js +0 -1
- package/source/providers/dynamictemplates/Pict-DynamicTemplates-DefaultFormTemplates.js +20 -0
- package/source/providers/inputs/Pict-Provider-Input-EntityBundleRequest.js +78 -62
- package/source/providers/inputs/Pict-Provider-Input-Templated.js +255 -0
- package/source/providers/inputs/Pict-Provider-Input-TemplatedEntityLookup.js +62 -21
- package/source/views/Pict-View-DynamicForm.js +1 -6
- package/source/views/Pict-View-Form-Metacontroller.js +0 -2
- package/types/source/providers/Pict-Provider-DynamicInputEvents.d.ts.map +1 -1
- package/types/source/providers/Pict-Provider-DynamicSolver.d.ts.map +1 -1
- package/types/source/providers/Pict-Provider-MetatemplateGenerator.d.ts.map +1 -1
- package/types/source/providers/inputs/Pict-Provider-Input-EntityBundleRequest.d.ts +0 -38
- package/types/source/providers/inputs/Pict-Provider-Input-EntityBundleRequest.d.ts.map +1 -1
- package/types/source/providers/inputs/Pict-Provider-Input-Templated.d.ts +131 -0
- package/types/source/providers/inputs/Pict-Provider-Input-Templated.d.ts.map +1 -0
- package/types/source/providers/inputs/Pict-Provider-Input-TemplatedEntityLookup.d.ts +0 -26
- package/types/source/providers/inputs/Pict-Provider-Input-TemplatedEntityLookup.d.ts.map +1 -1
- package/types/source/views/Pict-View-DynamicForm.d.ts +1 -1
- package/types/source/views/Pict-View-DynamicForm.d.ts.map +1 -1
- package/types/source/views/Pict-View-Form-Metacontroller.d.ts.map +1 -1
|
@@ -94,7 +94,7 @@ Glug glug CUSTOMIZED glug Oo... -->
|
|
|
94
94
|
"Template": /*HTML*/`
|
|
95
95
|
<div class="pure-u-1 pure-u-md-1-3">
|
|
96
96
|
<label {~D:Record.Macro.HTMLForID~}>{~D:Record.Name~}:</label>
|
|
97
|
-
<input type="number" {~D:Record.Macro.HTMLID~} {~D:Record.Macro.InputFullProperties~} class="pure-u-23-24" />
|
|
97
|
+
<input type="number" {~D:Record.Macro.HTMLID~} {~D:Record.Macro.InputFullProperties~} {~D:Record.Macro.InputChangeHandler~} class="pure-u-23-24" />
|
|
98
98
|
</div>
|
|
99
99
|
`
|
|
100
100
|
},
|
|
@@ -96,6 +96,17 @@ module.exports.default_configuration.pict_configuration = (
|
|
|
96
96
|
"Filter": "FBL~IDBook~INN~{~PJU:,^IDBook^AppData.BookAuthorJoins~}",
|
|
97
97
|
"Destination": "AppData.Books"
|
|
98
98
|
},
|
|
99
|
+
{
|
|
100
|
+
"Type": "MapJoin",
|
|
101
|
+
"DestinationRecordSetAddress": "AppData.Books",
|
|
102
|
+
"DestinationJoinValue": "IDBook",
|
|
103
|
+
"JoinJoinValueLHS": "IDBook",
|
|
104
|
+
"Joins": "AppData.BookAuthorJoins",
|
|
105
|
+
"JoinJoinValueRHS": "IDBookAuthorJoin",
|
|
106
|
+
"JoinRecordSetAddress": "AppData.BookAuthorJoins",
|
|
107
|
+
"JoinValue": "IDBookAuthorJoin",
|
|
108
|
+
"RecordDestinationAddress": "BookAuthorJoins"
|
|
109
|
+
},
|
|
99
110
|
{
|
|
100
111
|
"Type": "Custom",
|
|
101
112
|
"Protocol": "HTTP",
|
|
@@ -110,7 +121,25 @@ module.exports.default_configuration.pict_configuration = (
|
|
|
110
121
|
"Destination": "AppData.AuthorSchema"
|
|
111
122
|
}
|
|
112
123
|
],
|
|
113
|
-
EntityBundleTriggerGroup: "BookTriggerGroup"
|
|
124
|
+
EntityBundleTriggerGroup: "BookTriggerGroup",
|
|
125
|
+
EntityBundleTriggerOnInitialize: true
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"TemplatedInput": {
|
|
129
|
+
Name: "Templated Input",
|
|
130
|
+
Hash: "TemplatedInput",
|
|
131
|
+
DataType: "String",
|
|
132
|
+
PictForm:
|
|
133
|
+
{
|
|
134
|
+
InputType: 'Templated',
|
|
135
|
+
Section: "Book", Group: "Author", Row: 2,
|
|
136
|
+
TriggerGroupHash: "BookTriggerGroup",
|
|
137
|
+
Template: "<div>{~T:AuthorInfo~}</div><div>{~TS:BookInfo:AppData.Books~}</div>",
|
|
138
|
+
Templates:
|
|
139
|
+
{
|
|
140
|
+
"AuthorInfo": "{~D:AppData.CurrentAuthor.IDAuthor~} :: {~D:AppData.CurrentAuthor.Name~}",
|
|
141
|
+
"BookInfo": "<div><img src=\"{~D:Record.ImageURL~}\" />{~D:Record.IDBook~} :: {~D:Record.Title~}</div>"
|
|
142
|
+
}
|
|
114
143
|
}
|
|
115
144
|
},
|
|
116
145
|
"Author.Name": {
|
|
@@ -171,6 +200,8 @@ module.exports.default_configuration.pict_configuration = (
|
|
|
171
200
|
{
|
|
172
201
|
Template: "Record GUIDBookAuthorJoin {~D:AppData.CurrentBookAuthorJoinForDisplayTemplate.GUIDBookAuthorJoin~} IDBook {~D:AppData.CurrentBookAuthorJoinForDisplayTemplate.IDBook~} is the first book for IDAuthor {~D:AppData.CurrentAuthor.IDAuthor~} AuthorName [{~D:AppData.CurrentAuthor.Name~}]",
|
|
173
202
|
|
|
203
|
+
TriggerGroupHash: "BookTriggerGroup",
|
|
204
|
+
|
|
174
205
|
EmptyValueTestList: ["AppData.CurrentBookAuthorJoinForDisplayTemplate"],
|
|
175
206
|
EmptyValueTemplate: "No BookAuthorJoin Found",
|
|
176
207
|
|
|
@@ -184,7 +215,7 @@ module.exports.default_configuration.pict_configuration = (
|
|
|
184
215
|
}]
|
|
185
216
|
}
|
|
186
217
|
}
|
|
187
|
-
}
|
|
218
|
+
},
|
|
188
219
|
}
|
|
189
220
|
}
|
|
190
221
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pict-section-form",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.172",
|
|
4
4
|
"description": "Pict dynamic form sections",
|
|
5
5
|
"main": "source/Pict-Section-Form.js",
|
|
6
6
|
"directories": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"eslint": "^9.39.1",
|
|
36
36
|
"jquery": "^3.7.1",
|
|
37
37
|
"pict": "^1.0.343",
|
|
38
|
-
"pict-application": "^1.0.
|
|
38
|
+
"pict-application": "^1.0.30",
|
|
39
39
|
"pict-service-commandlineutility": "^1.0.16",
|
|
40
40
|
"quackage": "^1.0.45",
|
|
41
41
|
"tui-grid": "^4.21.22",
|
|
@@ -217,9 +217,6 @@ class PictDynamicInputEvents extends libPictProvider
|
|
|
217
217
|
// pView is what is called whenever a hash is changed. We could marshal from view, solve and remarshal to view.
|
|
218
218
|
pView.marshalFromView();
|
|
219
219
|
}
|
|
220
|
-
// Run any dynamic input providers for the input hash.
|
|
221
|
-
pView.pict.PictApplication.solve();
|
|
222
|
-
pView.marshalToView();
|
|
223
220
|
}
|
|
224
221
|
|
|
225
222
|
/**
|
|
@@ -13,6 +13,7 @@ const libInputEntityBundleRequest = require('./inputs/Pict-Provider-Input-Entity
|
|
|
13
13
|
const libInputAutofillTriggerGroup = require('./inputs/Pict-Provider-Input-AutofillTriggerGroup.js');
|
|
14
14
|
const libInputMarkdown = require('./inputs/Pict-Provider-Input-Markdown.js');
|
|
15
15
|
const libInputHTML = require('./inputs/Pict-Provider-Input-HTML.js');
|
|
16
|
+
const libInputTemplated = require('./inputs/Pict-Provider-Input-Templated.js');
|
|
16
17
|
const libInputPreciseNumber = require('./inputs/Pict-Provider-Input-PreciseNumber.js');
|
|
17
18
|
const libInputLink = require('./inputs/Pict-Provider-Input-Link.js');
|
|
18
19
|
const libInputTemplatedEntityLookup = require('./inputs/Pict-Provider-Input-TemplatedEntityLookup.js');
|
|
@@ -62,7 +63,6 @@ class PictDynamicSolver extends libPictProvider
|
|
|
62
63
|
// Initialize the solver service if it isn't up
|
|
63
64
|
this.fable.instantiateServiceProviderIfNotExists('ExpressionParser');
|
|
64
65
|
|
|
65
|
-
|
|
66
66
|
this.pict.addProviderSingleton('DynamicFormSolverBehaviors', libDynamicFormSolverBehaviors.default_configuration, libDynamicFormSolverBehaviors);
|
|
67
67
|
this.pict.providers.DynamicFormSolverBehaviors.injectBehaviors(this.fable.ExpressionParser);
|
|
68
68
|
this.pict.addProviderSingleton('DynamicMetaLists', libDynamicMetaLists.default_configuration, libDynamicMetaLists);
|
|
@@ -75,6 +75,7 @@ class PictDynamicSolver extends libPictProvider
|
|
|
75
75
|
this.pict.addProviderSingleton('Pict-Input-AutofillTriggerGroup', libInputAutofillTriggerGroup.default_configuration, libInputAutofillTriggerGroup);
|
|
76
76
|
this.pict.addProviderSingleton('Pict-Input-Markdown', libInputMarkdown.default_configuration, libInputMarkdown);
|
|
77
77
|
this.pict.addProviderSingleton('Pict-Input-HTML', libInputHTML.default_configuration, libInputHTML);
|
|
78
|
+
this.pict.addProviderSingleton('Pict-Input-Templated', libInputTemplated.default_configuration, libInputTemplated);
|
|
78
79
|
this.pict.addProviderSingleton('Pict-Input-PreciseNumber', libInputPreciseNumber.default_configuration, libInputPreciseNumber);
|
|
79
80
|
this.pict.addProviderSingleton('Pict-Input-TemplatedEntityLookup', libInputTemplatedEntityLookup.default_configuration, libInputTemplatedEntityLookup);
|
|
80
81
|
this.pict.addProviderSingleton('Pict-Input-Link', libInputLink.default_configuration, libInputLink);
|
|
@@ -177,7 +178,6 @@ class PictDynamicSolver extends libPictProvider
|
|
|
177
178
|
}
|
|
178
179
|
}
|
|
179
180
|
}
|
|
180
|
-
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
|
|
@@ -280,6 +280,15 @@ Glug glug glug Oo... -->
|
|
|
280
280
|
<input type="hidden" {~D:Record.Macro.InputFullProperties~} {~D:Record.Macro.InputChangeHandler~} value="">
|
|
281
281
|
<span>{~D:Record.Name~}:</span>
|
|
282
282
|
<div id="DISPLAY-FOR-{~D:Record.Macro.RawHTMLID~}" class="pict-section-form-html"></div>
|
|
283
|
+
`
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"HashPostfix": "-Template-Input-InputType-Templated",
|
|
287
|
+
"DefaultInputExtensions": ["Pict-Input-Templated"],
|
|
288
|
+
"Template": /*HTML*/`
|
|
289
|
+
<!-- InputType Templated {~D:Record.Hash~} {~D:Record.DataType~} -->
|
|
290
|
+
<input type="hidden" {~D:Record.Macro.InputFullProperties~} {~D:Record.Macro.InputChangeHandler~} value="">
|
|
291
|
+
<div id="DISPLAY-FOR-{~D:Record.Macro.RawHTMLID~}" class="pict-section-form-templated"></div>
|
|
283
292
|
`
|
|
284
293
|
},
|
|
285
294
|
{
|
|
@@ -471,6 +480,17 @@ Glug glug glug Oo... -->
|
|
|
471
480
|
<span>{~D:Record.PictForm.ExtraDescription~}</span>
|
|
472
481
|
<div id="DISPLAY-FOR-{~D:Record.Macro.RawHTMLID~}" class="pict-section-form-html"></div>
|
|
473
482
|
</div>
|
|
483
|
+
`
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"HashPostfix": "-VerticalTemplate-Input-InputType-Templated",
|
|
487
|
+
"DefaultInputExtensions": ["Pict-Input-Templated"],
|
|
488
|
+
"Template": /*HTML*/`
|
|
489
|
+
<!-- InputType Templated {~D:Record.Hash~} {~D:Record.DataType~} -->
|
|
490
|
+
<div class="pict-form-vertical-input">
|
|
491
|
+
<input type="hidden" {~D:Record.Macro.InputFullProperties~} {~D:Record.Macro.InputChangeHandler~} value="">
|
|
492
|
+
<div id="DISPLAY-FOR-{~D:Record.Macro.RawHTMLID~}" class="pict-section-form-templated"></div>
|
|
493
|
+
</div>
|
|
474
494
|
`
|
|
475
495
|
},
|
|
476
496
|
{
|
|
@@ -227,30 +227,68 @@ class CustomInputHandler extends libPictSectionInputExtension
|
|
|
227
227
|
let tmpValue = pValue;
|
|
228
228
|
let tmpAnticipate = this.fable.newAnticipate();
|
|
229
229
|
|
|
230
|
-
|
|
230
|
+
if (tmpInput.PictForm.EntitiesBundle.length > 0 && tmpInput.PictForm.EntitiesBundle[0].PictMode)
|
|
231
231
|
{
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
(fNext)
|
|
235
|
-
|
|
236
|
-
|
|
232
|
+
tmpAnticipate.anticipate((fNext) =>
|
|
233
|
+
{
|
|
234
|
+
this.pict.EntityProvider.gatherDataFromServer(tmpInput.PictForm.EntitiesBundle, fNext);
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
else
|
|
238
|
+
{
|
|
239
|
+
const tmpStateStack = [];
|
|
240
|
+
/** @type {Record<string, any>} */
|
|
241
|
+
let tmpState = { Value: tmpValue, Input: tmpInput, View: pView };
|
|
242
|
+
for (let i = 0; i < tmpInput.PictForm.EntitiesBundle.length; i++)
|
|
243
|
+
{
|
|
244
|
+
let tmpEntityBundleEntry = tmpInput.PictForm.EntitiesBundle[i];
|
|
245
|
+
tmpAnticipate.anticipate(
|
|
246
|
+
(fNext) =>
|
|
237
247
|
{
|
|
238
|
-
|
|
248
|
+
try
|
|
239
249
|
{
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
250
|
+
switch (tmpEntityBundleEntry.Type)
|
|
251
|
+
{
|
|
252
|
+
case 'Custom':
|
|
253
|
+
return this.gatherCustomDataSet(fNext, tmpEntityBundleEntry, pView, tmpInput, tmpValue);
|
|
254
|
+
case 'SetStateAddress':
|
|
255
|
+
tmpStateStack.push(tmpState);
|
|
256
|
+
tmpState = this.fable.manifest.getValueByHash(this.fable, tmpEntityBundleEntry.StateAddress);
|
|
257
|
+
if (typeof tmpState === 'undefined')
|
|
258
|
+
{
|
|
259
|
+
tmpState = {};
|
|
260
|
+
this.fable.manifest.setValueByHash(this.fable, tmpEntityBundleEntry.StateAddress, tmpState);
|
|
261
|
+
}
|
|
262
|
+
break;
|
|
263
|
+
case 'PopState':
|
|
264
|
+
if (tmpStateStack.length > 0)
|
|
265
|
+
{
|
|
266
|
+
tmpState = tmpStateStack.pop();
|
|
267
|
+
}
|
|
268
|
+
else
|
|
269
|
+
{
|
|
270
|
+
this.log.warn(`EntityBundleRequest encountered a PopState without a matching SetStateAddress.`);
|
|
271
|
+
}
|
|
272
|
+
break;
|
|
273
|
+
case 'MapJoin':
|
|
274
|
+
this.pict.EntityProvider.mapJoin(tmpEntityBundleEntry, this.pict.EntityProvider.prepareState(tmpState, tmpEntityBundleEntry));
|
|
275
|
+
break;
|
|
276
|
+
case 'ProjectDataset':
|
|
277
|
+
this.pict.EntityProvider.projectDataset(tmpEntityBundleEntry, this.pict.EntityProvider.prepareState(tmpState, tmpEntityBundleEntry));
|
|
278
|
+
break;
|
|
279
|
+
// This is the default case, for a meadow entity set or single entity
|
|
280
|
+
case 'MeadowEntity':
|
|
281
|
+
default:
|
|
282
|
+
return this.gatherEntitySet(fNext, tmpEntityBundleEntry, pView, tmpInput, tmpValue);
|
|
283
|
+
}
|
|
246
284
|
}
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
285
|
+
catch (pError)
|
|
286
|
+
{
|
|
287
|
+
this.log.error(`EntityBundleRequest error gathering entity set: ${pError}`, pError);
|
|
288
|
+
}
|
|
289
|
+
return fNext();
|
|
290
|
+
});
|
|
291
|
+
}
|
|
254
292
|
}
|
|
255
293
|
|
|
256
294
|
tmpAnticipate.anticipate(
|
|
@@ -311,7 +349,7 @@ class CustomInputHandler extends libPictSectionInputExtension
|
|
|
311
349
|
onInputInitialize(pView, pGroup, pRow, pInput, pValue, pHTMLSelector, pTransactionGUID)
|
|
312
350
|
{
|
|
313
351
|
// Try to get the input element
|
|
314
|
-
if (
|
|
352
|
+
if (pInput.PictForm && (pValue || pInput.PictForm.EntityBundleTriggerWithoutValue) && pInput.PictForm.EntityBundleTriggerOnInitialize)
|
|
315
353
|
{
|
|
316
354
|
// This is a request on initial load
|
|
317
355
|
this.gatherDataFromServer(pView, pInput, pValue, pHTMLSelector, pTransactionGUID);
|
|
@@ -334,6 +372,7 @@ class CustomInputHandler extends libPictSectionInputExtension
|
|
|
334
372
|
*/
|
|
335
373
|
onInputInitializeTabular(pView, pGroup, pInput, pValue, pHTMLSelector, pRowIndex, pTransactionGUID)
|
|
336
374
|
{
|
|
375
|
+
this.log.error(`EntityBundleRequest for input [${pInput.Hash}] Tabular support is intentionally not supported.`);
|
|
337
376
|
return super.onInputInitializeTabular(pView, pGroup, pInput, pValue, pHTMLSelector, pRowIndex, pTransactionGUID);
|
|
338
377
|
}
|
|
339
378
|
|
|
@@ -349,59 +388,36 @@ class CustomInputHandler extends libPictSectionInputExtension
|
|
|
349
388
|
*/
|
|
350
389
|
onDataChange(pView, pInput, pValue, pHTMLSelector, pTransactionGUID)
|
|
351
390
|
{
|
|
352
|
-
|
|
391
|
+
if (pInput.PictForm && (pValue || pInput.PictForm.EntityBundleTriggerWithoutValue) && pInput.PictForm.EntityBundleTriggerOnDataChange !== false)
|
|
392
|
+
{
|
|
393
|
+
this.gatherDataFromServer(pView, pInput, pValue, pHTMLSelector, pTransactionGUID);
|
|
394
|
+
}
|
|
353
395
|
return super.onDataChange(pView, pInput, pValue, pHTMLSelector, pTransactionGUID);
|
|
354
396
|
}
|
|
355
397
|
|
|
356
398
|
/**
|
|
357
|
-
*
|
|
399
|
+
* This input extension only responds to events
|
|
358
400
|
*
|
|
359
401
|
* @param {Object} pView - The view object.
|
|
360
402
|
* @param {Object} pInput - The input object.
|
|
361
|
-
* @param {any} pValue - The
|
|
403
|
+
* @param {any} pValue - The value from AppData.
|
|
362
404
|
* @param {string} pHTMLSelector - The HTML selector.
|
|
363
|
-
* @param {
|
|
364
|
-
* @param {string} pTransactionGUID - The transaction GUID
|
|
365
|
-
* @returns {
|
|
405
|
+
* @param {string} pEvent - The event hash that is expected to be triggered.
|
|
406
|
+
* @param {string} pTransactionGUID - The transaction GUID, if any.
|
|
407
|
+
* @returns {boolean} - Returns true.
|
|
366
408
|
*/
|
|
367
|
-
|
|
409
|
+
onAfterEventCompletion(pView, pInput, pValue, pHTMLSelector, pEvent, pTransactionGUID)
|
|
368
410
|
{
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
}
|
|
411
|
+
const tmpPayload = typeof pEvent === 'string' ? pEvent : '';
|
|
412
|
+
let [ tmpType, tmpGroupHash ] = tmpPayload.split(':');
|
|
372
413
|
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
* @param {Object} pRow - The row object.
|
|
379
|
-
* @param {Object} pInput - The input object.
|
|
380
|
-
* @param {any} pValue - The value to be marshaled.
|
|
381
|
-
* @param {string} pHTMLSelector - The HTML selector.
|
|
382
|
-
* @param {string} pTransactionGUID - The transaction GUID for the event dispatch.
|
|
383
|
-
* @returns {boolean} - Returns true if the value is successfully marshaled to the form, otherwise false.
|
|
384
|
-
*/
|
|
385
|
-
onDataMarshalToForm(pView, pGroup, pRow, pInput, pValue, pHTMLSelector, pTransactionGUID)
|
|
386
|
-
{
|
|
387
|
-
return super.onDataMarshalToForm(pView, pGroup, pRow, pInput, pValue, pHTMLSelector, pTransactionGUID);
|
|
388
|
-
}
|
|
414
|
+
if (pInput.PictForm.TriggerGroupHash !== tmpGroupHash)
|
|
415
|
+
{
|
|
416
|
+
return super.onAfterEventCompletion(pView, pInput, pValue, pHTMLSelector, pEvent, pTransactionGUID);
|
|
417
|
+
}
|
|
418
|
+
this.gatherDataFromServer(pView, pInput, pValue, pHTMLSelector, pTransactionGUID);
|
|
389
419
|
|
|
390
|
-
|
|
391
|
-
* Marshals data to a form in tabular format.
|
|
392
|
-
*
|
|
393
|
-
* @param {Object} pView - The view object.
|
|
394
|
-
* @param {Object} pGroup - The group object.
|
|
395
|
-
* @param {Object} pInput - The input object.
|
|
396
|
-
* @param {any} pValue - The value parameter.
|
|
397
|
-
* @param {string} pHTMLSelector - The HTML selector parameter.
|
|
398
|
-
* @param {number} pRowIndex - The row index parameter.
|
|
399
|
-
* @param {string} pTransactionGUID - The transaction GUID for the event dispatch.
|
|
400
|
-
* @returns {any} - The result of the data marshaling.
|
|
401
|
-
*/
|
|
402
|
-
onDataMarshalToFormTabular(pView, pGroup, pInput, pValue, pHTMLSelector, pRowIndex, pTransactionGUID)
|
|
403
|
-
{
|
|
404
|
-
return super.onDataMarshalToFormTabular(pView, pGroup, pInput, pValue, pHTMLSelector, pRowIndex, pTransactionGUID);
|
|
420
|
+
return super.onAfterEventCompletion(pView, pInput, pValue, pHTMLSelector, pEvent, pTransactionGUID);
|
|
405
421
|
}
|
|
406
422
|
}
|
|
407
423
|
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
const libPictSectionInputExtension = require('../Pict-Provider-InputExtension.js');
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Input provider for simple templated content display.
|
|
5
|
+
*
|
|
6
|
+
* @class
|
|
7
|
+
* @extends libPictSectionInputExtension
|
|
8
|
+
* @memberof providers.inputs
|
|
9
|
+
*/
|
|
10
|
+
class TemplatedInputProvider extends libPictSectionInputExtension
|
|
11
|
+
{
|
|
12
|
+
/**
|
|
13
|
+
* @param {import('fable')} pFable - The Fable instance.
|
|
14
|
+
* @param {Record<string, any>} [pOptions] - The options for the provider.
|
|
15
|
+
* @param {string} [pServiceHash] - The service hash for the provider.
|
|
16
|
+
*/
|
|
17
|
+
constructor(pFable, pOptions, pServiceHash)
|
|
18
|
+
{
|
|
19
|
+
super(pFable, pOptions, pServiceHash);
|
|
20
|
+
|
|
21
|
+
/** @type {import('pict')} */
|
|
22
|
+
this.pict;
|
|
23
|
+
/** @type {import('pict')} */
|
|
24
|
+
this.fable;
|
|
25
|
+
/** @type {any} */
|
|
26
|
+
this.log;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Generates the HTML ID for a content display input element.
|
|
31
|
+
*
|
|
32
|
+
* @param {string} pInputHTMLID - The HTML ID of the input element.
|
|
33
|
+
* @returns {string} - The generated HTML ID for the content display input element.
|
|
34
|
+
*/
|
|
35
|
+
getContentDisplayHTMLID(pInputHTMLID)
|
|
36
|
+
{
|
|
37
|
+
return `#DISPLAY-FOR-${pInputHTMLID}`;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Generates a tabular content display input ID based on the provided input HTML ID and row index.
|
|
42
|
+
*
|
|
43
|
+
* @param {string} pInputHTMLID - The input HTML ID.
|
|
44
|
+
* @param {number} pRowIndex - The row index.
|
|
45
|
+
* @returns {string} - The generated tabular content display input ID.
|
|
46
|
+
*/
|
|
47
|
+
getTabularContentDisplayInputID(pInputHTMLID, pRowIndex)
|
|
48
|
+
{
|
|
49
|
+
return `#DISPLAY-FOR-TABULAR-${pInputHTMLID}-${pRowIndex}`;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @param {import('../../views/Pict-View-DynamicForm.js')} pView - The view object.
|
|
54
|
+
* @param {Object} pInput - The input object.
|
|
55
|
+
* @param {any} pValue - The input value.
|
|
56
|
+
* @param {number} [pRowIndex] - (optional) The row index for tabular data.
|
|
57
|
+
*
|
|
58
|
+
* @return {void}
|
|
59
|
+
*/
|
|
60
|
+
handleContentUpdate(pView, pInput, pValue, pRowIndex)
|
|
61
|
+
{
|
|
62
|
+
let tmpContent = '';
|
|
63
|
+
if (pValue && (typeof(pValue) === 'string'))
|
|
64
|
+
{
|
|
65
|
+
tmpContent = pValue;
|
|
66
|
+
}
|
|
67
|
+
let tmpIsLocked = false;
|
|
68
|
+
//TODO: support more templates
|
|
69
|
+
//TODO: support "locked" content?
|
|
70
|
+
if (!tmpIsLocked && pInput.PictForm && pInput.PictForm.Template && (typeof(pInput.PictForm.Template) === 'string'))
|
|
71
|
+
{
|
|
72
|
+
tmpContent = this.pict.parseTemplate(pInput.PictForm.Template, Object.assign({}, this.pict, { Data: pView.getMarshalDestinationObject() }), null, [this], this);
|
|
73
|
+
}
|
|
74
|
+
if (!tmpContent && !tmpIsLocked && pInput.Default && (typeof(pInput.Default) === 'string'))
|
|
75
|
+
{
|
|
76
|
+
tmpContent = pInput.Default;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
if (pRowIndex != null)
|
|
80
|
+
{
|
|
81
|
+
pView.setDataTabularByHash(pInput.PictForm.GroupIndex, pInput.Hash, pRowIndex, tmpContent);
|
|
82
|
+
}
|
|
83
|
+
else
|
|
84
|
+
{
|
|
85
|
+
pView.setDataByInput(pInput, tmpContent);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Initializes the input element for the Pict provider select input.
|
|
91
|
+
*
|
|
92
|
+
* @param {import('../../views/Pict-View-DynamicForm.js')} pView - The view object.
|
|
93
|
+
* @param {Object} pGroup - The group object.
|
|
94
|
+
* @param {Object} pRow - The row object.
|
|
95
|
+
* @param {Object} pInput - The input object.
|
|
96
|
+
* @param {any} pValue - The input value.
|
|
97
|
+
* @param {string} pHTMLSelector - The HTML selector.
|
|
98
|
+
* @param {string} pTransactionGUID - The transaction GUID for the event dispatch.
|
|
99
|
+
* @returns {boolean} - Returns true if the input element is successfully initialized, false otherwise.
|
|
100
|
+
*/
|
|
101
|
+
onInputInitialize(pView, pGroup, pRow, pInput, pValue, pHTMLSelector, pTransactionGUID)
|
|
102
|
+
{
|
|
103
|
+
this._handleInitialize(pView, pGroup, pRow, pInput, pValue, pHTMLSelector, null, pTransactionGUID);
|
|
104
|
+
return super.onInputInitialize(pView, pGroup, pRow, pInput, pValue, pHTMLSelector, pTransactionGUID);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Initializes a tabular input element.
|
|
109
|
+
*
|
|
110
|
+
* @param {import('../../views/Pict-View-DynamicForm.js')} pView - The view object.
|
|
111
|
+
* @param {Object} pGroup - The group object.
|
|
112
|
+
* @param {Object} pInput - The input object.
|
|
113
|
+
* @param {any} pValue - The input value.
|
|
114
|
+
* @param {string} pHTMLSelector - The HTML selector.
|
|
115
|
+
* @param {number} pRowIndex - The index of the row.
|
|
116
|
+
* @param {string} pTransactionGUID - The transaction GUID for the event dispatch.
|
|
117
|
+
* @returns {any} - The result of the initialization.
|
|
118
|
+
*/
|
|
119
|
+
onInputInitializeTabular(pView, pGroup, pInput, pValue, pHTMLSelector, pRowIndex, pTransactionGUID)
|
|
120
|
+
{
|
|
121
|
+
this._handleInitialize(pView, pGroup, null, pInput, pValue, pHTMLSelector, pRowIndex, pTransactionGUID);
|
|
122
|
+
return super.onInputInitializeTabular(pView, pGroup, pInput, pValue, pHTMLSelector, pRowIndex, pTransactionGUID);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Initializes a tabular input element.
|
|
127
|
+
*
|
|
128
|
+
* @param {import('../../views/Pict-View-DynamicForm.js')} pView - The view object.
|
|
129
|
+
* @param {Object} pGroup - The group object.
|
|
130
|
+
* @param {Object|null} pRow - The row object.
|
|
131
|
+
* @param {Object} pInput - The input object.
|
|
132
|
+
* @param {any} pValue - The input value.
|
|
133
|
+
* @param {string} pHTMLSelector - The HTML selector.
|
|
134
|
+
* @param {number|null} pRowIndex - The index of the row.
|
|
135
|
+
* @param {string} pTransactionGUID - The transaction GUID for the event dispatch.
|
|
136
|
+
* @returns {any} - The result of the initialization.
|
|
137
|
+
*/
|
|
138
|
+
_handleInitialize(pView, pGroup, pRow, pInput, pValue, pHTMLSelector, pRowIndex, pTransactionGUID)
|
|
139
|
+
{
|
|
140
|
+
if (pInput.PictForm && pInput.PictForm.Templates && typeof pInput.PictForm.Templates === 'object' && !Array.isArray(pInput.PictForm.Templates))
|
|
141
|
+
{
|
|
142
|
+
for (const [ tmpTemplateHash, tmpTemplate ] of Object.entries(pInput.PictForm.Templates))
|
|
143
|
+
{
|
|
144
|
+
if (this.pict.TemplateProvider.templates[tmpTemplateHash])
|
|
145
|
+
{
|
|
146
|
+
this.pict.log.error(`[Pict-Input-Templated] Attempt to override template with hash: ${tmpTemplateHash}; skipping.`);
|
|
147
|
+
continue;
|
|
148
|
+
}
|
|
149
|
+
this.pict.TemplateProvider.addTemplate(tmpTemplateHash, tmpTemplate, `Templated Input hash: ${pInput.Hash}`);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
this.handleContentUpdate(pView, pInput, pValue);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Marshals data to the form for the given input.
|
|
157
|
+
*
|
|
158
|
+
* @param {import('../../views/Pict-View-DynamicForm.js')} pView - The view object.
|
|
159
|
+
* @param {Object} pGroup - The group object.
|
|
160
|
+
* @param {Object} pRow - The row object.
|
|
161
|
+
* @param {Object} pInput - The input object.
|
|
162
|
+
* @param {any} pValue - The value to be marshaled.
|
|
163
|
+
* @param {string} pHTMLSelector - The HTML selector.
|
|
164
|
+
* @param {string} pTransactionGUID - The transaction GUID for the event dispatch.
|
|
165
|
+
* @returns {boolean} - Returns true if the value is successfully marshaled to the form, otherwise false.
|
|
166
|
+
*/
|
|
167
|
+
onDataMarshalToForm(pView, pGroup, pRow, pInput, pValue, pHTMLSelector, pTransactionGUID)
|
|
168
|
+
{
|
|
169
|
+
this.pict.ContentAssignment.assignContent(this.getContentDisplayHTMLID(pInput.Macro.RawHTMLID), pValue);
|
|
170
|
+
return super.onDataMarshalToForm(pView, pGroup, pRow, pInput, pValue, pHTMLSelector, pTransactionGUID);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Marshals data to a form in tabular format.
|
|
175
|
+
*
|
|
176
|
+
* @param {import('../../views/Pict-View-DynamicForm.js')} pView - The view object.
|
|
177
|
+
* @param {Object} pGroup - The group object.
|
|
178
|
+
* @param {Object} pInput - The input object.
|
|
179
|
+
* @param {any} pValue - The value parameter.
|
|
180
|
+
* @param {string} pHTMLSelector - The HTML selector parameter.
|
|
181
|
+
* @param {number} pRowIndex - The row index parameter.
|
|
182
|
+
* @param {string} pTransactionGUID - The transaction GUID for the event dispatch.
|
|
183
|
+
* @returns {any} - The result of the data marshaling.
|
|
184
|
+
*/
|
|
185
|
+
onDataMarshalToFormTabular(pView, pGroup, pInput, pValue, pHTMLSelector, pRowIndex, pTransactionGUID)
|
|
186
|
+
{
|
|
187
|
+
this.pict.ContentAssignment.assignContent(this.getTabularContentDisplayInputID(pInput.Macro.RawHTMLID, pRowIndex), pValue);
|
|
188
|
+
return super.onDataMarshalToFormTabular(pView, pGroup, pInput, pValue, pHTMLSelector, pRowIndex, pTransactionGUID);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* This input extension only responds to events
|
|
193
|
+
*
|
|
194
|
+
* @param {import('../../views/Pict-View-DynamicForm.js')} pView - The view object.
|
|
195
|
+
* @param {Object} pInput - The input object.
|
|
196
|
+
* @param {any} pValue - The value from AppData.
|
|
197
|
+
* @param {string} pHTMLSelector - The HTML selector.
|
|
198
|
+
* @param {string} pEvent - The event hash that is expected to be triggered.
|
|
199
|
+
* @param {string} pTransactionGUID - The transaction GUID, if any.
|
|
200
|
+
* @returns {boolean} - Returns true.
|
|
201
|
+
*/
|
|
202
|
+
onAfterEventCompletion(pView, pInput, pValue, pHTMLSelector, pEvent, pTransactionGUID)
|
|
203
|
+
{
|
|
204
|
+
const tmpPayload = typeof pEvent === 'string' ? pEvent : '';
|
|
205
|
+
let [ tmpType, tmpGroupHash ] = tmpPayload.split(':');
|
|
206
|
+
|
|
207
|
+
if (tmpType !== 'TriggerGroup')
|
|
208
|
+
{
|
|
209
|
+
return super.onAfterEventCompletion(pView, pInput, pValue, pHTMLSelector, pEvent, pTransactionGUID);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
const tmpTriggerGroupHashes = Array.isArray(pInput.PictForm?.TriggerGroupHash) ? pInput.PictForm.TriggerGroupHash : [pInput.PictForm?.TriggerGroupHash];
|
|
213
|
+
if (!pInput.PictForm || !pInput.PictForm.TriggerGroupHash || !tmpTriggerGroupHashes.includes(tmpGroupHash))
|
|
214
|
+
{
|
|
215
|
+
return super.onAfterEventCompletion(pView, pInput, pValue, pHTMLSelector, pEvent, pTransactionGUID);
|
|
216
|
+
}
|
|
217
|
+
this.handleContentUpdate(pView, pInput, pValue);
|
|
218
|
+
pView.manualMarshalDataToViewByInput(pInput, pTransactionGUID);
|
|
219
|
+
return super.onAfterEventCompletion(pView, pInput, pValue, pHTMLSelector, pEvent, pTransactionGUID);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Handles events for the Pict-Provider-InputExtension.
|
|
224
|
+
*
|
|
225
|
+
* @param {import('../../views/Pict-View-DynamicForm.js')} pView - The view object.
|
|
226
|
+
* @param {Object} pInput - The input object.
|
|
227
|
+
* @param {any} pValue - The value from AppData.
|
|
228
|
+
* @param {string} pHTMLSelector - The HTML selector.
|
|
229
|
+
* @param {number} pRowIndex - The row index of the tabular data.
|
|
230
|
+
* @param {string} pEvent - The event hash that is expected to be triggered.
|
|
231
|
+
* @param {string} pTransactionGUID - The transaction GUID, if any.
|
|
232
|
+
* @returns {boolean} - Returns true.
|
|
233
|
+
*/
|
|
234
|
+
onAfterEventTabularCompletion(pView, pInput, pValue, pHTMLSelector, pRowIndex, pEvent, pTransactionGUID)
|
|
235
|
+
{
|
|
236
|
+
const tmpPayload = typeof pEvent === 'string' ? pEvent : '';
|
|
237
|
+
let [ tmpType, tmpGroupHash ] = tmpPayload.split(':');
|
|
238
|
+
|
|
239
|
+
if (tmpType !== 'TriggerGroup')
|
|
240
|
+
{
|
|
241
|
+
return super.onAfterEventTabularCompletion(pView, pInput, pValue, pHTMLSelector, pRowIndex, pEvent, pTransactionGUID);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
const tmpTriggerGroupHashes = Array.isArray(pInput.PictForm?.TriggerGroupHash) ? pInput.PictForm.TriggerGroupHash : [pInput.PictForm?.TriggerGroupHash];
|
|
245
|
+
if (!pInput.PictForm || !pInput.PictForm.TriggerGroupHash || !tmpTriggerGroupHashes.includes(tmpGroupHash))
|
|
246
|
+
{
|
|
247
|
+
return super.onAfterEventTabularCompletion(pView, pInput, pValue, pHTMLSelector, pRowIndex, pEvent, pTransactionGUID);
|
|
248
|
+
}
|
|
249
|
+
this.handleContentUpdate(pView, pInput, pValue, pRowIndex);
|
|
250
|
+
pView.manualMarshalTabularDataToViewByInput(pInput, pRowIndex, pTransactionGUID);
|
|
251
|
+
return super.onAfterEventTabularCompletion(pView, pInput, pValue, pHTMLSelector, pRowIndex, pEvent, pTransactionGUID);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
module.exports = TemplatedInputProvider;
|
|
@@ -162,41 +162,82 @@ class CustomInputHandler extends libPictSectionInputExtension
|
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
|
-
*
|
|
165
|
+
* This input extension only responds to events
|
|
166
166
|
*
|
|
167
167
|
* @param {Object} pView - The view object.
|
|
168
|
-
* @param {Object} pGroup - The group object.
|
|
169
|
-
* @param {Object} pRow - The row object.
|
|
170
168
|
* @param {Object} pInput - The input object.
|
|
171
|
-
* @param {any} pValue - The value
|
|
169
|
+
* @param {any} pValue - The value from AppData.
|
|
172
170
|
* @param {string} pHTMLSelector - The HTML selector.
|
|
173
|
-
* @param {string}
|
|
174
|
-
* @
|
|
171
|
+
* @param {string} pEvent - The event hash that is expected to be triggered.
|
|
172
|
+
* @param {string} pTransactionGUID - The transaction GUID, if any.
|
|
173
|
+
* @returns {boolean} - Returns true.
|
|
175
174
|
*/
|
|
176
|
-
|
|
175
|
+
onAfterEventCompletion(pView, pInput, pValue, pHTMLSelector, pEvent, pTransactionGUID)
|
|
177
176
|
{
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
177
|
+
const tmpPayload = typeof pEvent === 'string' ? pEvent : '';
|
|
178
|
+
let [ tmpType, tmpGroupHash, tmpEvent, tmpInputHash, tmpEventGUID ] = tmpPayload.split(':');
|
|
179
|
+
if (!tmpEventGUID)
|
|
180
|
+
{
|
|
181
|
+
tmpEventGUID = this.pict.getUUID();
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
if (!pInput.PictForm.TemplatedEntityLookup || !('TriggerGroupHash' in pInput.PictForm.TemplatedEntityLookup))
|
|
185
|
+
{
|
|
186
|
+
return super.onAfterEventCompletion(pView, pInput, pValue, pHTMLSelector, pEvent, pTransactionGUID);
|
|
187
|
+
}
|
|
188
|
+
let tmpAutoFillTriggerGroups = [pInput.PictForm.TemplatedEntityLookup];
|
|
189
|
+
|
|
190
|
+
for (let i = 0; i < tmpAutoFillTriggerGroups.length; i++)
|
|
191
|
+
{
|
|
192
|
+
let tmpAutoFillTriggerGroup = tmpAutoFillTriggerGroups[i];
|
|
193
|
+
if (tmpAutoFillTriggerGroup.TriggerGroupHash !== tmpGroupHash)
|
|
194
|
+
{
|
|
195
|
+
continue;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
this.assignDisplayEntityData(this.getContentDisplayHTMLID(pInput.Macro.RawHTMLID), pInput, pValue);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
return super.onAfterEventCompletion(pView, pInput, pValue, pHTMLSelector, pEvent, pTransactionGUID);
|
|
181
202
|
}
|
|
182
203
|
|
|
183
204
|
/**
|
|
184
|
-
*
|
|
205
|
+
* Handles events for the Pict-Provider-InputExtension.
|
|
185
206
|
*
|
|
186
207
|
* @param {Object} pView - The view object.
|
|
187
|
-
* @param {Object} pGroup - The group object.
|
|
188
208
|
* @param {Object} pInput - The input object.
|
|
189
|
-
* @param {any} pValue - The value
|
|
190
|
-
* @param {string} pHTMLSelector - The HTML selector
|
|
191
|
-
* @param {number} pRowIndex - The row index
|
|
192
|
-
* @param {string}
|
|
193
|
-
* @
|
|
209
|
+
* @param {any} pValue - The value from AppData.
|
|
210
|
+
* @param {string} pHTMLSelector - The HTML selector.
|
|
211
|
+
* @param {number} pRowIndex - The row index of the tabular data.
|
|
212
|
+
* @param {string} pEvent - The event hash that is expected to be triggered.
|
|
213
|
+
* @param {string} pTransactionGUID - The transaction GUID, if any.
|
|
214
|
+
* @returns {boolean} - Returns true.
|
|
194
215
|
*/
|
|
195
|
-
|
|
216
|
+
onAfterEventTabularCompletion(pView, pInput, pValue, pHTMLSelector, pRowIndex, pEvent, pTransactionGUID)
|
|
196
217
|
{
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
218
|
+
const tmpPayload = typeof pEvent === 'string' ? pEvent : '';
|
|
219
|
+
let [ tmpType, tmpGroupHash, tmpEvent, tmpInputHash, tmpEventGUID ] = tmpPayload.split(':');
|
|
220
|
+
if (!tmpEventGUID)
|
|
221
|
+
{
|
|
222
|
+
tmpEventGUID = this.pict.getUUID();
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
if (!pInput.PictForm.TemplatedEntityLookup || !('TriggerGroupHash' in pInput.PictForm.TemplatedEntityLookup))
|
|
226
|
+
{
|
|
227
|
+
return super.onAfterEventTabularCompletion(pView, pInput, pValue, pHTMLSelector, pRowIndex, pEvent, pTransactionGUID);
|
|
228
|
+
}
|
|
229
|
+
let tmpAutoFillTriggerGroups = [pInput.PictForm.TemplatedEntityLookup];
|
|
230
|
+
for (const tmpAutoFillTriggerGroup of tmpAutoFillTriggerGroups)
|
|
231
|
+
{
|
|
232
|
+
if (tmpAutoFillTriggerGroup.TriggerGroupHash !== tmpGroupHash)
|
|
233
|
+
{
|
|
234
|
+
continue;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
this.assignDisplayEntityData(this.getTabularContentDisplayInputID(pInput.Macro.RawHTMLID, pRowIndex), pInput, pValue);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
return super.onAfterEventTabularCompletion(pView, pInput, pValue, pHTMLSelector, pRowIndex, pEvent, pTransactionGUID);
|
|
200
241
|
}
|
|
201
242
|
}
|
|
202
243
|
|
|
@@ -567,7 +567,7 @@ class PictViewDynamicForm extends libPictViewClass
|
|
|
567
567
|
}
|
|
568
568
|
|
|
569
569
|
/**
|
|
570
|
-
* Executes the solve operation for the dynamic views
|
|
570
|
+
* Executes the solve operation for the dynamic views.
|
|
571
571
|
*
|
|
572
572
|
* @returns {any} The result of the solve operation.
|
|
573
573
|
*/
|
|
@@ -578,11 +578,6 @@ class PictViewDynamicForm extends libPictViewClass
|
|
|
578
578
|
{
|
|
579
579
|
this.pict.providers.DynamicSolver.solveViews([this.Hash]);
|
|
580
580
|
}
|
|
581
|
-
|
|
582
|
-
if (this.options.AutoMarshalDataOnSolve)
|
|
583
|
-
{
|
|
584
|
-
this.marshalToView();
|
|
585
|
-
}
|
|
586
581
|
return super.onSolve();
|
|
587
582
|
}
|
|
588
583
|
|
|
@@ -1151,7 +1151,6 @@ class PictFormMetacontroller extends libPictViewClass
|
|
|
1151
1151
|
tmpViewConfiguration.Manifests = {};
|
|
1152
1152
|
}
|
|
1153
1153
|
tmpViewConfiguration.Manifests.Section = this.manifestDescription;
|
|
1154
|
-
tmpViewConfiguration.AutoMarshalDataOnSolve = this.options.AutoMarshalDataOnSolve;
|
|
1155
1154
|
this.pict.addView(tmpViewHash, tmpViewConfiguration, libPictViewDynamicForm);
|
|
1156
1155
|
}
|
|
1157
1156
|
|
|
@@ -1396,7 +1395,6 @@ module.exports.default_configuration = (
|
|
|
1396
1395
|
"DefaultRenderable": "Pict-Forms-Metacontainer",
|
|
1397
1396
|
"DefaultDestinationAddress": "#Pict-Form-Container",
|
|
1398
1397
|
|
|
1399
|
-
"AutoMarshalDataOnSolve": true,
|
|
1400
1398
|
"OnlyRenderDynamicSections": true,
|
|
1401
1399
|
|
|
1402
1400
|
"MetaTemplateHash": "Pict-Forms-Metatemplate",
|
|
@@ -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,yCAHW,MAAM,WACN,GAAG,QAyDb;IAED;;;;;;;OAOG;IACH,mCAJW,MAAM,UACN,MAAM,qBACN,MAAM,QAgDhB;IAED;;;;;;;;OAQG;IACH,+BANW,OAAO,gCAAgC,CAAC,eACxC,MAAM,eACN,MAAM,aACN,MAAM,WACN,GAAG,
|
|
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,yCAHW,MAAM,WACN,GAAG,QAyDb;IAED;;;;;;;OAOG;IACH,mCAJW,MAAM,UACN,MAAM,qBACN,MAAM,QAgDhB;IAED;;;;;;;;OAQG;IACH,+BANW,OAAO,gCAAgC,CAAC,eACxC,MAAM,eACN,MAAM,aACN,MAAM,WACN,GAAG,QA6Db;IAED;;;;;;;;;OASG;IACH,2CANW,MAAM,eACN,MAAM,aACN,MAAM,UACN,MAAM,qBACN,MAAM,QA4ChB;CACD;;;;;AAhRD,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAS3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Provider-DynamicSolver.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicSolver.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Pict-Provider-DynamicSolver.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicSolver.js"],"names":[],"mappings":";AAgCA;;GAEG;AACH;IAcE,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;IAQV,yBAA0C;IAwB3C,0CAsBC;IAED;;;;;MAKE;IACF,qDAgBC;IAED;;;;;OAKG;IACH,oDA8CC;IAED;;;;;;OAMG;IACH,6BAJW,MAAM,YACN,OAAO,GACL,GAAG,CAyBf;IAED;;;;;;;;;OASG;IACH,qBALW,MAAM,GAAC,MAAM,cACb,OAAO,aACP,MAAM,GACJ,MAAM,GAAC,SAAS,CA8B5B;IAED,yEAAyE;IAEzE;;;;;;OAMG;IACH,sBAJW,OAAO,mCAAmC,CAAC,YAC3C,KAAK;iBANS,MAAM;oBAAc,MAAM;MAM3B,WACb,MAAM,QAmDhB;IADA;;;;;MAA4C;IAG7C;;;;;;;;;;;OAWG;IACH,2BAPW,OAAO,mCAAmC,CAAC,qBAC3C,KAAK,CAAC,MAAM,CAAC,WACb,MAAM,YACN,MAAM,iDAEN,OAAO,QAyCjB;IAED;;;;;;;;;OASG;IACH,wDAJW,MAAM,iDAEN,OAAO,QAoEjB;IAED;;;;;;;OAOG;IACH,gEAJW,MAAM,iDAEN,OAAO,QA0CjB;IAED;;;;;;OAMG;IACH,sDAHW,MAAM,gCA2BhB;IAED;;;;;;;;OAQG;IACH,gCAJW,MAAM,yBAWhB;IAED;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,yBAJW,QAAM,MAAM,EAAE,yBACd,OAAO,QA+FjB;IADA;;;;;;MAAuC;CAExC;;;;;AAtoBD,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAS3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Provider-MetatemplateGenerator.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-MetatemplateGenerator.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Pict-Provider-MetatemplateGenerator.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-MetatemplateGenerator.js"],"names":[],"mappings":";AAiDA;;;GAGG;AACH;IAcE,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IAIT,qCAAqC;IACrC,kBADW,sBAAsB,CACZ;IAErB,2BAAwC;IAGzC,wCAIC;IAED,uCAYC;IAED;;;;;;;OAOG;IACH,kEAJW,MAAM,2BACN,MAAM,GACJ,MAAM,CAmBlB;IAED;;;;;;;OAOG;IACH,+DAJW,MAAM,oBACN,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;;;OAQG;IACH,6DALW,MAAM,cACN,MAAM,oBACN,MAAM,GACJ,MAAM,CA4BlB;IAED;;;;;;;;;;OAUG;IACH,oEAPW,MAAM,cACN,MAAM,oBACN,MAAM,eACN,MAAM,aACN,MAAM,GACJ,MAAM,CAqDlB;IAED;;;;;;;;OAQG;IACH,qEALW,MAAM,cACN,MAAM,oBACN,MAAM,GACJ,MAAM,CA4BlB;IAED;;;;;;OAMG;IACH,qDA2BC;IAED;;;;;;OAMG;IACH,wCA8BC;CACD;;;;;;AA1VD,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAS3B"}
|
|
@@ -80,44 +80,6 @@ declare class CustomInputHandler extends libPictSectionInputExtension {
|
|
|
80
80
|
* @returns {any} - The result of the super.onDataChange method.
|
|
81
81
|
*/
|
|
82
82
|
onDataChange(pView: any, pInput: any, pValue: any, pHTMLSelector: string, pTransactionGUID: string): any;
|
|
83
|
-
/**
|
|
84
|
-
* Handles the change event for tabular data.
|
|
85
|
-
*
|
|
86
|
-
* @param {Object} pView - The view object.
|
|
87
|
-
* @param {Object} pInput - The input object.
|
|
88
|
-
* @param {any} pValue - The new value.
|
|
89
|
-
* @param {string} pHTMLSelector - The HTML selector.
|
|
90
|
-
* @param {number} pRowIndex - The index of the row.
|
|
91
|
-
* @param {string} pTransactionGUID - The transaction GUID for the event dispatch.
|
|
92
|
-
* @returns {any} - The result of the super method.
|
|
93
|
-
*/
|
|
94
|
-
onDataChangeTabular(pView: any, pInput: any, pValue: any, pHTMLSelector: string, pRowIndex: number, pTransactionGUID: string): any;
|
|
95
|
-
/**
|
|
96
|
-
* Marshals data to the form for the given input.
|
|
97
|
-
*
|
|
98
|
-
* @param {Object} pView - The view object.
|
|
99
|
-
* @param {Object} pGroup - The group object.
|
|
100
|
-
* @param {Object} pRow - The row object.
|
|
101
|
-
* @param {Object} pInput - The input object.
|
|
102
|
-
* @param {any} pValue - The value to be marshaled.
|
|
103
|
-
* @param {string} pHTMLSelector - The HTML selector.
|
|
104
|
-
* @param {string} pTransactionGUID - The transaction GUID for the event dispatch.
|
|
105
|
-
* @returns {boolean} - Returns true if the value is successfully marshaled to the form, otherwise false.
|
|
106
|
-
*/
|
|
107
|
-
onDataMarshalToForm(pView: any, pGroup: any, pRow: any, pInput: any, pValue: any, pHTMLSelector: string, pTransactionGUID: string): boolean;
|
|
108
|
-
/**
|
|
109
|
-
* Marshals data to a form in tabular format.
|
|
110
|
-
*
|
|
111
|
-
* @param {Object} pView - The view object.
|
|
112
|
-
* @param {Object} pGroup - The group object.
|
|
113
|
-
* @param {Object} pInput - The input object.
|
|
114
|
-
* @param {any} pValue - The value parameter.
|
|
115
|
-
* @param {string} pHTMLSelector - The HTML selector parameter.
|
|
116
|
-
* @param {number} pRowIndex - The row index parameter.
|
|
117
|
-
* @param {string} pTransactionGUID - The transaction GUID for the event dispatch.
|
|
118
|
-
* @returns {any} - The result of the data marshaling.
|
|
119
|
-
*/
|
|
120
|
-
onDataMarshalToFormTabular(pView: any, pGroup: any, pInput: any, pValue: any, pHTMLSelector: string, pRowIndex: number, pTransactionGUID: string): any;
|
|
121
83
|
}
|
|
122
84
|
import libPictSectionInputExtension = require("../Pict-Provider-InputExtension.js");
|
|
123
85
|
//# sourceMappingURL=Pict-Provider-Input-EntityBundleRequest.d.ts.map
|
|
@@ -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;IAWE,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,
|
|
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;IAWE,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,CA8H1B;IA0BD;;;;;;;;;;;OAWG;IACH,uEANW,GAAG,iBACH,MAAM,aACN,MAAM,oBACN,MAAM,GACJ,GAAG,CAMf;IAED;;;;;;;;;OASG;IACH,8CALW,GAAG,iBACH,MAAM,oBACN,MAAM,GACJ,GAAG,CASf;CA0BD"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
export = TemplatedInputProvider;
|
|
2
|
+
/**
|
|
3
|
+
* Input provider for simple templated content display.
|
|
4
|
+
*
|
|
5
|
+
* @class
|
|
6
|
+
* @extends libPictSectionInputExtension
|
|
7
|
+
* @memberof providers.inputs
|
|
8
|
+
*/
|
|
9
|
+
declare class TemplatedInputProvider extends libPictSectionInputExtension {
|
|
10
|
+
/** @type {import('pict')} */
|
|
11
|
+
pict: import("pict");
|
|
12
|
+
/** @type {import('pict')} */
|
|
13
|
+
fable: import("pict");
|
|
14
|
+
/**
|
|
15
|
+
* Generates the HTML ID for a content display input element.
|
|
16
|
+
*
|
|
17
|
+
* @param {string} pInputHTMLID - The HTML ID of the input element.
|
|
18
|
+
* @returns {string} - The generated HTML ID for the content display input element.
|
|
19
|
+
*/
|
|
20
|
+
getContentDisplayHTMLID(pInputHTMLID: string): string;
|
|
21
|
+
/**
|
|
22
|
+
* Generates a tabular content display input ID based on the provided input HTML ID and row index.
|
|
23
|
+
*
|
|
24
|
+
* @param {string} pInputHTMLID - The input HTML ID.
|
|
25
|
+
* @param {number} pRowIndex - The row index.
|
|
26
|
+
* @returns {string} - The generated tabular content display input ID.
|
|
27
|
+
*/
|
|
28
|
+
getTabularContentDisplayInputID(pInputHTMLID: string, pRowIndex: number): string;
|
|
29
|
+
/**
|
|
30
|
+
* @param {import('../../views/Pict-View-DynamicForm.js')} pView - The view object.
|
|
31
|
+
* @param {Object} pInput - The input object.
|
|
32
|
+
* @param {any} pValue - The input value.
|
|
33
|
+
* @param {number} [pRowIndex] - (optional) The row index for tabular data.
|
|
34
|
+
*
|
|
35
|
+
* @return {void}
|
|
36
|
+
*/
|
|
37
|
+
handleContentUpdate(pView: import("../../views/Pict-View-DynamicForm.js"), pInput: any, pValue: any, pRowIndex?: number): void;
|
|
38
|
+
/**
|
|
39
|
+
* Initializes the input element for the Pict provider select input.
|
|
40
|
+
*
|
|
41
|
+
* @param {import('../../views/Pict-View-DynamicForm.js')} pView - The view object.
|
|
42
|
+
* @param {Object} pGroup - The group object.
|
|
43
|
+
* @param {Object} pRow - The row object.
|
|
44
|
+
* @param {Object} pInput - The input object.
|
|
45
|
+
* @param {any} pValue - The input value.
|
|
46
|
+
* @param {string} pHTMLSelector - The HTML selector.
|
|
47
|
+
* @param {string} pTransactionGUID - The transaction GUID for the event dispatch.
|
|
48
|
+
* @returns {boolean} - Returns true if the input element is successfully initialized, false otherwise.
|
|
49
|
+
*/
|
|
50
|
+
onInputInitialize(pView: import("../../views/Pict-View-DynamicForm.js"), pGroup: any, pRow: any, pInput: any, pValue: any, pHTMLSelector: string, pTransactionGUID: string): boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Initializes a tabular input element.
|
|
53
|
+
*
|
|
54
|
+
* @param {import('../../views/Pict-View-DynamicForm.js')} pView - The view object.
|
|
55
|
+
* @param {Object} pGroup - The group object.
|
|
56
|
+
* @param {Object} pInput - The input object.
|
|
57
|
+
* @param {any} pValue - The input value.
|
|
58
|
+
* @param {string} pHTMLSelector - The HTML selector.
|
|
59
|
+
* @param {number} pRowIndex - The index of the row.
|
|
60
|
+
* @param {string} pTransactionGUID - The transaction GUID for the event dispatch.
|
|
61
|
+
* @returns {any} - The result of the initialization.
|
|
62
|
+
*/
|
|
63
|
+
onInputInitializeTabular(pView: import("../../views/Pict-View-DynamicForm.js"), pGroup: any, pInput: any, pValue: any, pHTMLSelector: string, pRowIndex: number, pTransactionGUID: string): any;
|
|
64
|
+
/**
|
|
65
|
+
* Initializes a tabular input element.
|
|
66
|
+
*
|
|
67
|
+
* @param {import('../../views/Pict-View-DynamicForm.js')} pView - The view object.
|
|
68
|
+
* @param {Object} pGroup - The group object.
|
|
69
|
+
* @param {Object|null} pRow - The row object.
|
|
70
|
+
* @param {Object} pInput - The input object.
|
|
71
|
+
* @param {any} pValue - The input value.
|
|
72
|
+
* @param {string} pHTMLSelector - The HTML selector.
|
|
73
|
+
* @param {number|null} pRowIndex - The index of the row.
|
|
74
|
+
* @param {string} pTransactionGUID - The transaction GUID for the event dispatch.
|
|
75
|
+
* @returns {any} - The result of the initialization.
|
|
76
|
+
*/
|
|
77
|
+
_handleInitialize(pView: import("../../views/Pict-View-DynamicForm.js"), pGroup: any, pRow: any | null, pInput: any, pValue: any, pHTMLSelector: string, pRowIndex: number | null, pTransactionGUID: string): any;
|
|
78
|
+
/**
|
|
79
|
+
* Marshals data to the form for the given input.
|
|
80
|
+
*
|
|
81
|
+
* @param {import('../../views/Pict-View-DynamicForm.js')} pView - The view object.
|
|
82
|
+
* @param {Object} pGroup - The group object.
|
|
83
|
+
* @param {Object} pRow - The row object.
|
|
84
|
+
* @param {Object} pInput - The input object.
|
|
85
|
+
* @param {any} pValue - The value to be marshaled.
|
|
86
|
+
* @param {string} pHTMLSelector - The HTML selector.
|
|
87
|
+
* @param {string} pTransactionGUID - The transaction GUID for the event dispatch.
|
|
88
|
+
* @returns {boolean} - Returns true if the value is successfully marshaled to the form, otherwise false.
|
|
89
|
+
*/
|
|
90
|
+
onDataMarshalToForm(pView: import("../../views/Pict-View-DynamicForm.js"), pGroup: any, pRow: any, pInput: any, pValue: any, pHTMLSelector: string, pTransactionGUID: string): boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Marshals data to a form in tabular format.
|
|
93
|
+
*
|
|
94
|
+
* @param {import('../../views/Pict-View-DynamicForm.js')} pView - The view object.
|
|
95
|
+
* @param {Object} pGroup - The group object.
|
|
96
|
+
* @param {Object} pInput - The input object.
|
|
97
|
+
* @param {any} pValue - The value parameter.
|
|
98
|
+
* @param {string} pHTMLSelector - The HTML selector parameter.
|
|
99
|
+
* @param {number} pRowIndex - The row index parameter.
|
|
100
|
+
* @param {string} pTransactionGUID - The transaction GUID for the event dispatch.
|
|
101
|
+
* @returns {any} - The result of the data marshaling.
|
|
102
|
+
*/
|
|
103
|
+
onDataMarshalToFormTabular(pView: import("../../views/Pict-View-DynamicForm.js"), pGroup: any, pInput: any, pValue: any, pHTMLSelector: string, pRowIndex: number, pTransactionGUID: string): any;
|
|
104
|
+
/**
|
|
105
|
+
* This input extension only responds to events
|
|
106
|
+
*
|
|
107
|
+
* @param {import('../../views/Pict-View-DynamicForm.js')} pView - The view object.
|
|
108
|
+
* @param {Object} pInput - The input object.
|
|
109
|
+
* @param {any} pValue - The value from AppData.
|
|
110
|
+
* @param {string} pHTMLSelector - The HTML selector.
|
|
111
|
+
* @param {string} pEvent - The event hash that is expected to be triggered.
|
|
112
|
+
* @param {string} pTransactionGUID - The transaction GUID, if any.
|
|
113
|
+
* @returns {boolean} - Returns true.
|
|
114
|
+
*/
|
|
115
|
+
onAfterEventCompletion(pView: import("../../views/Pict-View-DynamicForm.js"), pInput: any, pValue: any, pHTMLSelector: string, pEvent: string, pTransactionGUID: string): boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Handles events for the Pict-Provider-InputExtension.
|
|
118
|
+
*
|
|
119
|
+
* @param {import('../../views/Pict-View-DynamicForm.js')} pView - The view object.
|
|
120
|
+
* @param {Object} pInput - The input object.
|
|
121
|
+
* @param {any} pValue - The value from AppData.
|
|
122
|
+
* @param {string} pHTMLSelector - The HTML selector.
|
|
123
|
+
* @param {number} pRowIndex - The row index of the tabular data.
|
|
124
|
+
* @param {string} pEvent - The event hash that is expected to be triggered.
|
|
125
|
+
* @param {string} pTransactionGUID - The transaction GUID, if any.
|
|
126
|
+
* @returns {boolean} - Returns true.
|
|
127
|
+
*/
|
|
128
|
+
onAfterEventTabularCompletion(pView: import("../../views/Pict-View-DynamicForm.js"), pInput: any, pValue: any, pHTMLSelector: string, pRowIndex: number, pEvent: string, pTransactionGUID: string): boolean;
|
|
129
|
+
}
|
|
130
|
+
import libPictSectionInputExtension = require("../Pict-Provider-InputExtension.js");
|
|
131
|
+
//# sourceMappingURL=Pict-Provider-Input-Templated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pict-Provider-Input-Templated.d.ts","sourceRoot":"","sources":["../../../../source/providers/inputs/Pict-Provider-Input-Templated.js"],"names":[],"mappings":";AAEA;;;;;;GAMG;AACH;IAWE,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6BAA6B;IAC7B,OADW,OAAO,MAAM,CAAC,CACf;IAKX;;;;;OAKG;IACH,sCAHW,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;OAMG;IACH,8CAJW,MAAM,aACN,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;;OAOG;IACH,2BAPW,OAAO,sCAAsC,CAAC,uBAE9C,GAAG,cACH,MAAM,GAEL,IAAI,CA6Bf;IAED;;;;;;;;;;;OAWG;IACH,yBATW,OAAO,sCAAsC,CAAC,+CAI9C,GAAG,iBACH,MAAM,oBACN,MAAM,GACJ,OAAO,CAMnB;IAED;;;;;;;;;;;OAWG;IACH,gCATW,OAAO,sCAAsC,CAAC,oCAG9C,GAAG,iBACH,MAAM,aACN,MAAM,oBACN,MAAM,GACJ,GAAG,CAMf;IAED;;;;;;;;;;;;OAYG;IACH,yBAVW,OAAO,sCAAsC,CAAC,qBAE9C,MAAO,IAAI,uBAEX,GAAG,iBACH,MAAM,aACN,MAAM,GAAC,IAAI,oBACX,MAAM,GACJ,GAAG,CAiBf;IAED;;;;;;;;;;;OAWG;IACH,2BATW,OAAO,sCAAsC,CAAC,+CAI9C,GAAG,iBACH,MAAM,oBACN,MAAM,GACJ,OAAO,CAMnB;IAED;;;;;;;;;;;OAWG;IACH,kCATW,OAAO,sCAAsC,CAAC,oCAG9C,GAAG,iBACH,MAAM,aACN,MAAM,oBACN,MAAM,GACJ,GAAG,CAMf;IAED;;;;;;;;;;OAUG;IACH,8BARW,OAAO,sCAAsC,CAAC,uBAE9C,GAAG,iBACH,MAAM,UACN,MAAM,oBACN,MAAM,GACJ,OAAO,CAoBnB;IAED;;;;;;;;;;;OAWG;IACH,qCATW,OAAO,sCAAsC,CAAC,uBAE9C,GAAG,iBACH,MAAM,aACN,MAAM,UACN,MAAM,oBACN,MAAM,GACJ,OAAO,CAoBnB;CACD"}
|
|
@@ -48,32 +48,6 @@ declare class CustomInputHandler extends libPictSectionInputExtension {
|
|
|
48
48
|
* @returns {any} - The result of the initialization.
|
|
49
49
|
*/
|
|
50
50
|
onInputInitializeTabular(pView: any, pGroup: any, pInput: any, pValue: any, pHTMLSelector: string, pRowIndex: number, pTransactionGUID: string): any;
|
|
51
|
-
/**
|
|
52
|
-
* Marshals data to the form for the given input.
|
|
53
|
-
*
|
|
54
|
-
* @param {Object} pView - The view object.
|
|
55
|
-
* @param {Object} pGroup - The group object.
|
|
56
|
-
* @param {Object} pRow - The row object.
|
|
57
|
-
* @param {Object} pInput - The input object.
|
|
58
|
-
* @param {any} pValue - The value to be marshaled.
|
|
59
|
-
* @param {string} pHTMLSelector - The HTML selector.
|
|
60
|
-
* @param {string} pTransactionGUID - The transaction GUID for the event dispatch.
|
|
61
|
-
* @returns {boolean} - Returns true if the value is successfully marshaled to the form, otherwise false.
|
|
62
|
-
*/
|
|
63
|
-
onDataMarshalToForm(pView: any, pGroup: any, pRow: any, pInput: any, pValue: any, pHTMLSelector: string, pTransactionGUID: string): boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Marshals data to a form in tabular format.
|
|
66
|
-
*
|
|
67
|
-
* @param {Object} pView - The view object.
|
|
68
|
-
* @param {Object} pGroup - The group object.
|
|
69
|
-
* @param {Object} pInput - The input object.
|
|
70
|
-
* @param {any} pValue - The value parameter.
|
|
71
|
-
* @param {string} pHTMLSelector - The HTML selector parameter.
|
|
72
|
-
* @param {number} pRowIndex - The row index parameter.
|
|
73
|
-
* @param {string} pTransactionGUID - The transaction GUID for the event dispatch.
|
|
74
|
-
* @returns {any} - The result of the data marshaling.
|
|
75
|
-
*/
|
|
76
|
-
onDataMarshalToFormTabular(pView: any, pGroup: any, pInput: any, pValue: any, pHTMLSelector: string, pRowIndex: number, pTransactionGUID: string): any;
|
|
77
51
|
}
|
|
78
52
|
import libPictSectionInputExtension = require("../Pict-Provider-InputExtension.js");
|
|
79
53
|
//# sourceMappingURL=Pict-Provider-Input-TemplatedEntityLookup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Provider-Input-TemplatedEntityLookup.d.ts","sourceRoot":"","sources":["../../../../source/providers/inputs/Pict-Provider-Input-TemplatedEntityLookup.js"],"names":[],"mappings":";AAIA;;;;;;GAMG;AACH;IAWE,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,4DAA4D;IAC5D,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,aAAa,EAAE,MAAM,GAAG,CAAA;KAAE,CAC9C;IAKX;;;;;OAKG;IACH,sCAHW,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;OAMG;IACH,8CAJW,MAAM,aACN,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;OAKG;IACH,iEAFW,GAAG,QAoEb;IAoBD;;;;;;;;;;;OAWG;IACH,uEANW,GAAG,iBACH,MAAM,aACN,MAAM,oBACN,MAAM,GACJ,GAAG,CAMf;
|
|
1
|
+
{"version":3,"file":"Pict-Provider-Input-TemplatedEntityLookup.d.ts","sourceRoot":"","sources":["../../../../source/providers/inputs/Pict-Provider-Input-TemplatedEntityLookup.js"],"names":[],"mappings":";AAIA;;;;;;GAMG;AACH;IAWE,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,4DAA4D;IAC5D,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,aAAa,EAAE,MAAM,GAAG,CAAA;KAAE,CAC9C;IAKX;;;;;OAKG;IACH,sCAHW,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;OAMG;IACH,8CAJW,MAAM,aACN,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;OAKG;IACH,iEAFW,GAAG,QAoEb;IAoBD;;;;;;;;;;;OAWG;IACH,uEANW,GAAG,iBACH,MAAM,aACN,MAAM,oBACN,MAAM,GACJ,GAAG,CAMf;CAgFD"}
|
|
@@ -109,7 +109,7 @@ declare class PictViewDynamicForm extends libPictViewClass {
|
|
|
109
109
|
*/
|
|
110
110
|
onAfterMarshalToForm(): void;
|
|
111
111
|
/**
|
|
112
|
-
* Executes the solve operation for the dynamic views
|
|
112
|
+
* Executes the solve operation for the dynamic views.
|
|
113
113
|
*
|
|
114
114
|
* @returns {any} The result of the solve operation.
|
|
115
115
|
*/
|
|
@@ -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,2DAuGC;IApDA,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;IAKjC;;;;OAIG;IACH,6BAFa,MAAM,CAgBlB;IAED;;;;;;;;OAQG;IACH,wBAFW,MAAM,QAqDhB;IAGD;;;;;;OAMG;IACH,gCAJW,MAAM,eACN,MAAM,aACN,MAAM,QA4DhB;IAED;;;;;;;;OAQG;IACH,uBAJW,MAAM,UACN,GAAG,GACD,OAAO,CAqCnB;IAED;;;;;;;;;;OAUG;IACH,kCANW,MAAM,cACN,MAAM,aACN,MAAM,UACN,GAAG,GACD,OAAO,CAyEnB;IAED;;;;OAIG;IACH,gCAFa,MAAM,CAKlB;IAED;;;;OAIG;IACH,+BAFY,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAK9B;IAED;;;OAGG;IACH,6BAFW,MAAM,uBAKhB;IAED;;;;;;OAMG;IACH,mCAJW,MAAM,eACN,MAAM,aACN,MAAM,OAOhB;IAED;;;;OAIG;IACH,mBAFa,GAAG,CAwBf;IAED,yEAqBC;IAED,gGAqBC;IAED;;;OAGG;IACH,qBAFa,GAAG,CAcf;IAED;;;OAGG;IACH,6BAkBC;IAED;;;;OAIG;IACH,WAFa,GAAG,
|
|
1
|
+
{"version":3,"file":"Pict-View-DynamicForm.d.ts","sourceRoot":"","sources":["../../../source/views/Pict-View-DynamicForm.js"],"names":[],"mappings":";AAYA;;;;;;;GAOG;AACH;IA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AKG;IACH,0BAJW,MAAM,4CAEN,MAAM,QAUhB;IAED;;;;;;;;OAQG;IACH,mCAJW,MAAM,eACN,MAAM,OAMhB;IAED;;;;;;;;;OASG;IACH,wCALW,MAAM,cACN,MAAM,OAOhB;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;;;;;AAp+CD,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":";AAaA;;;GAGG;AAEH;;;;;;GAMG;AACH;IAEC,2DAyBC;IAjBA,yBAA2B;IAE3B,wBAAsF;IAEtF,cAAkC;IAElC,gCAAkC;IAClC,8BAAiC;IAEjC;;;;;;MAOE;IAQH,wCAGC;IARD,kCAGC;IAOD;;;;OAIG;IACH,qBAFa,GAAG,CAaf;IAED;;;;OAIG;IACH,mBAFa,GAAG,CAaf;IAED,yCAYC;IAED;;;;;OAKG;IACH,kCAHW,aAAa,GACX,IAAI,CAsBhB;IA8BD;;;;OAIG;IACH,WAFa,GAAG,CAMf;IAED,gDAGC;IAED,gDAGC;IAED,+CAGC;IAED;;;;OAIG;IACH,2DAJW,MAAM,GAE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