pict-section-form 1.0.46 → 1.0.47
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/dynamictemplates/Pict-DynamicTemplates-DefaultFormTemplates.js +7 -0
- package/source/views/Pict-View-Form-Metacontroller.js +89 -4
- package/types/source/Pict-Section-Form.d.ts +2 -0
- package/types/source/providers/Pict-Provider-DynamicTemplates.d.ts.map +1 -1
- package/types/source/providers/Pict-Provider-MetatemplateGenerator.d.ts +4 -0
- package/types/source/providers/Pict-Provider-MetatemplateGenerator.d.ts.map +1 -1
- package/types/source/services/ManifestFactory.d.ts.map +1 -1
- package/types/source/services/Pict-Service-DynamicApplication.d.ts +5 -0
- package/types/source/services/Pict-Service-DynamicApplication.d.ts.map +1 -0
- package/types/source/templates/Pict-Template-Metatemplate-Input.d.ts +24 -0
- package/types/source/templates/Pict-Template-Metatemplate-Input.d.ts.map +1 -0
- package/types/source/templates/Pict-Template-Metatemplate-InputWithHashAddress.d.ts +24 -0
- package/types/source/templates/Pict-Template-Metatemplate-InputWithHashAddress.d.ts.map +1 -0
- package/types/source/views/Pict-View-DynamicForm.d.ts +39 -0
- package/types/source/views/Pict-View-DynamicForm.d.ts.map +1 -1
- package/types/source/views/Pict-View-Form-Metacontroller.d.ts +10 -1
- package/types/source/views/Pict-View-Form-Metacontroller.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -38,6 +38,13 @@ Glug glug glug Oo... -->
|
|
|
38
38
|
<!-- Pict Form View Container [{~D:Record.UUID~}]::[{~D:Record.Hash~}] -->
|
|
39
39
|
<div id="Pict-Form-Container-{~D:Record.options.Hash~}" class="pict-form-view"></div>`
|
|
40
40
|
},
|
|
41
|
+
{
|
|
42
|
+
"HashPostfix": "-Template-Form-Container-Custom",
|
|
43
|
+
"Template": /*HTML*/`
|
|
44
|
+
|
|
45
|
+
<!-- Pict Form View Container [{~D:Record.UUID~}]::[{~D:Record.Hash~}] -->
|
|
46
|
+
<div id="{~D:Record.options.CustomTargetID~}" class="pict-form-view"></div>`
|
|
47
|
+
},
|
|
41
48
|
|
|
42
49
|
// -Form-Container-Wrap-Postfix
|
|
43
50
|
{
|
|
@@ -157,7 +157,7 @@ class PictFormMetacontroller extends libPictViewClass
|
|
|
157
157
|
{
|
|
158
158
|
let tmpView = this.fable.views[tmpViewFilterState.ViewHashList[i]];
|
|
159
159
|
// If the filter function returns false, skip this view.
|
|
160
|
-
if (tmpViewFilterState.FilterFunction && !
|
|
160
|
+
if (tmpViewFilterState.FilterFunction && !tmpViewFilterState.FilterFunction(tmpView))
|
|
161
161
|
{
|
|
162
162
|
continue;
|
|
163
163
|
}
|
|
@@ -172,7 +172,7 @@ class PictFormMetacontroller extends libPictViewClass
|
|
|
172
172
|
}
|
|
173
173
|
tmpViewFilterState.FilteredViewList.push(tmpView);
|
|
174
174
|
}
|
|
175
|
-
else if (!this.options.OnlyRenderDynamicSections)
|
|
175
|
+
else if (!this.options.OnlyRenderDynamicSections || tmpView.options.IncludeInMetacontrollerOperations)
|
|
176
176
|
{
|
|
177
177
|
// If the OnlyRenderDynamicSections option is false, we will render all views in the array..
|
|
178
178
|
// This is great when the app is small and simple. And DANGEROUS if it isn't. Take care!
|
|
@@ -180,6 +180,58 @@ class PictFormMetacontroller extends libPictViewClass
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
+
// Auto-position any views marked with DynamicPlacementMode or DynamicAnchor - this is to assist with mixing configuration driven forms with
|
|
184
|
+
// custom views.
|
|
185
|
+
const tmpViewsToAutoPosition = tmpViewFilterState.FilteredViewList.filter((v) => v.options.DynamicPlacementMode || v.options.DynamicAnchor);
|
|
186
|
+
for (const tmpView of tmpViewsToAutoPosition)
|
|
187
|
+
{
|
|
188
|
+
const tmpMode = tmpView.options.DynamicPlacementMode || 'After';
|
|
189
|
+
const tmpAnchor = tmpView.options.DynamicAnchor;
|
|
190
|
+
let tmpMovingViewIndex = tmpViewFilterState.FilteredViewList.findIndex((v) => v === tmpView);
|
|
191
|
+
let tmpAnchorViewIndex;
|
|
192
|
+
|
|
193
|
+
switch (tmpMode)
|
|
194
|
+
{
|
|
195
|
+
case 'First':
|
|
196
|
+
tmpViewFilterState.FilteredViewList.splice(tmpMovingViewIndex, 1);
|
|
197
|
+
tmpViewFilterState.FilteredViewList.unshift(tmpView);
|
|
198
|
+
break;
|
|
199
|
+
case 'Last':
|
|
200
|
+
tmpViewFilterState.FilteredViewList.splice(tmpMovingViewIndex, 1);
|
|
201
|
+
tmpViewFilterState.FilteredViewList.push(tmpView);
|
|
202
|
+
break;
|
|
203
|
+
case 'Before':
|
|
204
|
+
case 'After':
|
|
205
|
+
tmpAnchorViewIndex = tmpViewFilterState.FilteredViewList.findIndex((v) => v.Hash == tmpAnchor);
|
|
206
|
+
if (tmpAnchorViewIndex < 0)
|
|
207
|
+
{
|
|
208
|
+
// for convenience, also check for dynamic prefixed views if an exact match is not found
|
|
209
|
+
const tmpDynamicAnchor = `PictSectionForm-${tmpAnchor}`;
|
|
210
|
+
tmpAnchorViewIndex = tmpViewFilterState.FilteredViewList.findIndex((v) => v.Hash == tmpDynamicAnchor);
|
|
211
|
+
}
|
|
212
|
+
if (tmpAnchorViewIndex < 0)
|
|
213
|
+
{
|
|
214
|
+
this.log.error(`No anchor view [${tmpAnchor}] found to position view [${tmpView.Hash}] [${tmpMode}].`);
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
tmpViewFilterState.FilteredViewList.splice(tmpMovingViewIndex, 1);
|
|
218
|
+
if (tmpMovingViewIndex < tmpAnchorViewIndex)
|
|
219
|
+
{
|
|
220
|
+
// we just removed the element before the target, so we need to adjust
|
|
221
|
+
--tmpAnchorViewIndex;
|
|
222
|
+
}
|
|
223
|
+
if (tmpMode === 'After')
|
|
224
|
+
{
|
|
225
|
+
// this lets us share most of the code for Before and After
|
|
226
|
+
++tmpAnchorViewIndex;
|
|
227
|
+
}
|
|
228
|
+
tmpViewFilterState.FilteredViewList.splice(tmpAnchorViewIndex, 0, tmpView);
|
|
229
|
+
break;
|
|
230
|
+
default:
|
|
231
|
+
this.log.error(`Not auto-positioning view with unknown DynamicPlacementMode: ${tmpMode}`);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
183
235
|
// Sort the views based on the sort function
|
|
184
236
|
// This is to allow dynamic forms sections to have their own sorting criteria before rendering.
|
|
185
237
|
if (typeof(tmpViewFilterState.SortFunction) == 'function')
|
|
@@ -236,6 +288,10 @@ class PictFormMetacontroller extends libPictViewClass
|
|
|
236
288
|
let tmpViewList = this.filterViews(fFilterFunction, fSortFunction);
|
|
237
289
|
for (let i = 0; i < tmpViewList.length; i++)
|
|
238
290
|
{
|
|
291
|
+
if (tmpViewList[i] === this)
|
|
292
|
+
{
|
|
293
|
+
continue;
|
|
294
|
+
}
|
|
239
295
|
tmpViewList[i].render();
|
|
240
296
|
}
|
|
241
297
|
}
|
|
@@ -251,7 +307,15 @@ class PictFormMetacontroller extends libPictViewClass
|
|
|
251
307
|
let tmpViewList = this.filterViews(fFormSectionFilter, fSortFunction);
|
|
252
308
|
for (let i = 0; i < tmpViewList.length; i++)
|
|
253
309
|
{
|
|
254
|
-
tmpViewList[i]
|
|
310
|
+
const tmpView = tmpViewList[i];
|
|
311
|
+
if (tmpView === this)
|
|
312
|
+
{
|
|
313
|
+
continue;
|
|
314
|
+
}
|
|
315
|
+
if (tmpView.isPictSectionForm)
|
|
316
|
+
{
|
|
317
|
+
tmpView.rebuildCustomTemplate();
|
|
318
|
+
}
|
|
255
319
|
}
|
|
256
320
|
// Make sure any form-specific CSS is injected properly.
|
|
257
321
|
this.pict.CSSMap.injectCSS();
|
|
@@ -281,10 +345,31 @@ class PictFormMetacontroller extends libPictViewClass
|
|
|
281
345
|
for (let i = 0; i < tmpViewList.length; i++)
|
|
282
346
|
{
|
|
283
347
|
let tmpFormView = tmpViewList[i];
|
|
348
|
+
if (tmpFormView === this)
|
|
349
|
+
{
|
|
350
|
+
continue;
|
|
351
|
+
}
|
|
284
352
|
if (tmpFormView.options.IncludeInMetatemplateSectionGeneration)
|
|
285
353
|
{
|
|
286
354
|
tmpTemplate += `\n{~T:${this.formTemplatePrefix}-Template-Form-Container-Wrap-Prefix:Pict.views["${tmpFormView.Hash}"]~}`;
|
|
287
|
-
|
|
355
|
+
if (tmpFormView.isPictSectionForm)
|
|
356
|
+
{
|
|
357
|
+
tmpTemplate += `\n{~T:${this.formTemplatePrefix}-Template-Form-Container:Pict.views["${tmpFormView.Hash}"]~}`;
|
|
358
|
+
}
|
|
359
|
+
else
|
|
360
|
+
{
|
|
361
|
+
//NOTE: For now, requiring the destination address to be an ID for this case
|
|
362
|
+
tmpFormView.options.CustomTargetID = tmpFormView.options.DefaultDestinationAddress.replace(/#/, '');
|
|
363
|
+
tmpTemplate += `\n{~T:${this.formTemplatePrefix}-Template-Form-Container-Custom:Pict.views["${tmpFormView.Hash}"]~}`;
|
|
364
|
+
}
|
|
365
|
+
tmpTemplate += `\n{~T:${this.formTemplatePrefix}-Template-Form-Container-Wrap-Postfix:Pict.views["${tmpFormView.Hash}"]~}`;
|
|
366
|
+
}
|
|
367
|
+
else if (!tmpFormView.isPictSectionForm)
|
|
368
|
+
{
|
|
369
|
+
//NOTE: For now, requiring the destination address to be an ID for this case
|
|
370
|
+
tmpFormView.options.CustomTargetID = tmpFormView.options.DefaultDestinationAddress.replace(/#/, '');
|
|
371
|
+
tmpTemplate += `\n{~T:${this.formTemplatePrefix}-Template-Form-Container-Wrap-Prefix:Pict.views["${tmpFormView.Hash}"]~}`;
|
|
372
|
+
tmpTemplate += `\n{~T:${this.formTemplatePrefix}-Template-Form-Container-Custom:Pict.views["${tmpFormView.Hash}"]~}`;
|
|
288
373
|
tmpTemplate += `\n{~T:${this.formTemplatePrefix}-Template-Form-Container-Wrap-Postfix:Pict.views["${tmpFormView.Hash}"]~}`;
|
|
289
374
|
}
|
|
290
375
|
}
|
|
@@ -4,6 +4,7 @@ declare const _exports: {
|
|
|
4
4
|
AutoRender: boolean;
|
|
5
5
|
AutoSolveWithApp: boolean;
|
|
6
6
|
ExecuteSolversWithoutMetacontroller: boolean;
|
|
7
|
+
IncludeInMetatemplateSectionGeneration: boolean;
|
|
7
8
|
IncludeInDefaultDynamicRender: boolean;
|
|
8
9
|
DefaultRenderable: string;
|
|
9
10
|
DefaultDestinationAddress: string;
|
|
@@ -35,6 +36,7 @@ declare const _exports: {
|
|
|
35
36
|
};
|
|
36
37
|
TargetElementAddress: string;
|
|
37
38
|
};
|
|
39
|
+
PictDynamicApplicationService: typeof import("./services/Pict-Service-DynamicApplication.js");
|
|
38
40
|
PictFormTemplateProvider: typeof import("./providers/Pict-Provider-DynamicTemplates.js");
|
|
39
41
|
PictInputExtensionProvider: typeof import("./providers/Pict-Provider-InputExtension.js");
|
|
40
42
|
PictFormMetacontroller: typeof import("./views/Pict-View-Form-Metacontroller.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Provider-DynamicTemplates.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicTemplates.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Pict-Provider-DynamicTemplates.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicTemplates.js"],"names":[],"mappings":";AAqBA;;;GAGG;AACH;IAEC;;;;;OAKG;IACH,2DAqBC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,2CA4DC;CACD"}
|
|
@@ -5,6 +5,10 @@ export = PictMetatemplateGenerator;
|
|
|
5
5
|
*/
|
|
6
6
|
declare class PictMetatemplateGenerator {
|
|
7
7
|
constructor(pFable: any, pOptions: any, pServiceHash: any);
|
|
8
|
+
dynamicInputView: boolean;
|
|
9
|
+
baseTemplatePrefix: string;
|
|
10
|
+
onInitializeAsync(fCallback: any): any;
|
|
11
|
+
createOnDemandMetatemplateView(): void;
|
|
8
12
|
/**
|
|
9
13
|
* Retrieves the metatemplate template reference in raw format.
|
|
10
14
|
*
|
|
@@ -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;IAEC,2DASC;IAHA,0BAA6B;IAE7B,2BAAwC;IAGzC,uCAIC;IAED,uCAQC;IAED;;;;;;;OAOG;IACH,kEAJW,MAAM,2BACN,MAAM,GACJ,MAAM,GAAC,OAAO,CAmB1B;IAED;;;;;;;OAOG;IACH,+DAJW,MAAM,oBACN,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;;OAOG;IACH,kDAJW,MAAM,cACN,MAAM,GACJ,MAAM,GAAC,OAAO,CAwB1B;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,CAuDlB;IAED;;;;;;OAMG;IACH,qDAyBC;IAED;;;;;;OAMG;IACH,wCA8BC;CACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManifestFactory.d.ts","sourceRoot":"","sources":["../../../source/services/ManifestFactory.js"],"names":[],"mappings":";AAOA;IAEC,2DA8BC;IAxBA,cAAmC;IAcnC,+BAAoC;IASpC,2BAA2B;IAG5B;;;;;;;;;OASG;IACH,
|
|
1
|
+
{"version":3,"file":"ManifestFactory.d.ts","sourceRoot":"","sources":["../../../source/services/ManifestFactory.js"],"names":[],"mappings":";AAOA;IAEC,2DA8BC;IAxBA,cAAmC;IAcnC,+BAAoC;IASpC,2BAA2B;IAG5B;;;;;;;;;OASG;IACH,uCAiIC;IAED;;;;OAIG;IACH,8CAOC;IAED;;;;;;OAMG;IACH,iCAJW,MAAM,OAiBhB;IAED;;;;;;;OAOG;IACH,mCALW,MAAM,MAAO,cACb,MAAM,OAkBhB;IAED;;;;OAIG;IACH,8BAFa,OAAO,CAenB;IAED;;;;;;OAMG;IACH,kEAiKC;IAED;;;;;;;;;OASG;IACH,2GAGC;IAED;;;;;;OAMG;IACH,0CAJW,GAAG,GAEF,GAAG,CAwDd;CACD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pict-Service-DynamicApplication.d.ts","sourceRoot":"","sources":["../../../source/services/Pict-Service-DynamicApplication.js"],"names":[],"mappings":";AAuBA;IAEC,2DA0BC;CACD"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export = PictTemplateMetatemplateInputTemplate;
|
|
2
|
+
/**
|
|
3
|
+
* This is a template that will generate a Metatemplate input, for manual use of metatemplates.
|
|
4
|
+
*/
|
|
5
|
+
declare class PictTemplateMetatemplateInputTemplate {
|
|
6
|
+
/**
|
|
7
|
+
* @param {Object} pFable - The Fable Framework instance
|
|
8
|
+
* @param {Object} pOptions - The options for the service
|
|
9
|
+
* @param {String} pServiceHash - The hash of the service
|
|
10
|
+
*/
|
|
11
|
+
constructor(pFable: any, pOptions: any, pServiceHash: string);
|
|
12
|
+
currentInputIndex: number;
|
|
13
|
+
/**
|
|
14
|
+
* Renders the PICT Metacontroller Template. The Record reference is ignored in this template.
|
|
15
|
+
*
|
|
16
|
+
* @param {string} pTemplateHash - The template hash.
|
|
17
|
+
* @param {object} pRecord - The record object.
|
|
18
|
+
* @param {array} pContextArray - The context array.
|
|
19
|
+
* @returns {string} - The rendered template.
|
|
20
|
+
*/
|
|
21
|
+
render(pTemplateHash: string, pRecord: object, pContextArray: any[]): string;
|
|
22
|
+
renderAsync(pTemplateHash: any, pRecord: any, fCallback: any, pContextArray: any): any;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=Pict-Template-Metatemplate-Input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pict-Template-Metatemplate-Input.d.ts","sourceRoot":"","sources":["../../../source/templates/Pict-Template-Metatemplate-Input.js"],"names":[],"mappings":";AAEA;;GAEG;AACH;IAEC;;;;OAIG;IACH,8DAQC;IADA,0BAA0B;IAG3B;;;;;;;OAOG;IACH,sBALW,MAAM,WACN,MAAM,yBAEJ,MAAM,CA4ElB;IAED,uFA0EC;CACD"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export = PictTemplateMetatemplateInputTemplate;
|
|
2
|
+
/**
|
|
3
|
+
* This is a template that will generate a Metatemplate input, for manual use of metatemplates.
|
|
4
|
+
*/
|
|
5
|
+
declare class PictTemplateMetatemplateInputTemplate {
|
|
6
|
+
/**
|
|
7
|
+
* @param {Object} pFable - The Fable Framework instance
|
|
8
|
+
* @param {Object} pOptions - The options for the service
|
|
9
|
+
* @param {String} pServiceHash - The hash of the service
|
|
10
|
+
*/
|
|
11
|
+
constructor(pFable: any, pOptions: any, pServiceHash: string);
|
|
12
|
+
currentInputIndex: number;
|
|
13
|
+
/**
|
|
14
|
+
* Renders the PICT Metacontroller Template. The Record reference is ignored in this template.
|
|
15
|
+
*
|
|
16
|
+
* @param {string} pTemplateHash - The template hash.
|
|
17
|
+
* @param {object} pRecord - The record object.
|
|
18
|
+
* @param {array} pContextArray - The context array.
|
|
19
|
+
* @returns {string} - The rendered template.
|
|
20
|
+
*/
|
|
21
|
+
render(pTemplateHash: string, pRecord: object, pContextArray: any[]): string;
|
|
22
|
+
renderAsync(pTemplateHash: any, pRecord: any, fCallback: any, pContextArray: any): any;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=Pict-Template-Metatemplate-InputWithHashAddress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pict-Template-Metatemplate-InputWithHashAddress.d.ts","sourceRoot":"","sources":["../../../source/templates/Pict-Template-Metatemplate-InputWithHashAddress.js"],"names":[],"mappings":";AAEA;;GAEG;AACH;IAEC;;;;OAIG;IACH,8DAQC;IADA,0BAA0B;IAG3B;;;;;;;OAOG;IACH,sBALW,MAAM,WACN,MAAM,yBAEJ,MAAM,CAkFlB;IAED,uFAgFC;CACD"}
|
|
@@ -352,5 +352,44 @@ declare class PictViewDynamicForm extends libPictViewClass {
|
|
|
352
352
|
*/
|
|
353
353
|
get isPictSectionForm(): boolean;
|
|
354
354
|
}
|
|
355
|
+
declare namespace PictViewDynamicForm {
|
|
356
|
+
export { _DefaultConfiguration as default_configuration };
|
|
357
|
+
}
|
|
355
358
|
import libPictViewClass = require("pict-view");
|
|
359
|
+
declare const _DefaultConfiguration: {
|
|
360
|
+
AutoRender: boolean;
|
|
361
|
+
AutoSolveWithApp: boolean;
|
|
362
|
+
ExecuteSolversWithoutMetacontroller: boolean;
|
|
363
|
+
IncludeInMetatemplateSectionGeneration: boolean;
|
|
364
|
+
IncludeInDefaultDynamicRender: boolean;
|
|
365
|
+
DefaultRenderable: string;
|
|
366
|
+
DefaultDestinationAddress: string;
|
|
367
|
+
Renderables: any[];
|
|
368
|
+
Templates: any[];
|
|
369
|
+
MacroTemplates: {
|
|
370
|
+
Section: {
|
|
371
|
+
HTMLID: string;
|
|
372
|
+
};
|
|
373
|
+
Group: {
|
|
374
|
+
HTMLID: string;
|
|
375
|
+
PictFormLayout: string;
|
|
376
|
+
TabularCreateRowFunctionCall: string;
|
|
377
|
+
};
|
|
378
|
+
Input: {
|
|
379
|
+
Informary: string;
|
|
380
|
+
InformaryTabular: string;
|
|
381
|
+
HTMLSelector: string;
|
|
382
|
+
HTMLSelectorTabular: string;
|
|
383
|
+
RawHTMLID: string;
|
|
384
|
+
HTMLName: string;
|
|
385
|
+
HTMLIDAddress: string;
|
|
386
|
+
HTMLID: string;
|
|
387
|
+
HTMLForID: string;
|
|
388
|
+
InputFullProperties: string;
|
|
389
|
+
InputChangeHandler: string;
|
|
390
|
+
DataRequestFunction: string;
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
TargetElementAddress: string;
|
|
394
|
+
};
|
|
356
395
|
//# sourceMappingURL=Pict-View-DynamicForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-View-DynamicForm.d.ts","sourceRoot":"","sources":["../../../source/views/Pict-View-DynamicForm.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Pict-View-DynamicForm.d.ts","sourceRoot":"","sources":["../../../source/views/Pict-View-DynamicForm.js"],"names":[],"mappings":";AAQA;;;;;;;GAOG;AACH;IAEC,2DAgGC;IAnDA,qBAAqB;IACrB,sBAAqC;IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAA0B;IAG1B,uBAAqC;IAGrC,qBAA2H;IAG3H,sBAAwB;IAcxB,+BAA6D;IAmB7D,qCAAwC;IAExC,eAAmD;IAEnD,gCAAmC;IAKpC;;;;OAIG;IACH,oCAcC;IAED;;;;;;;;OAQG;IACH,wBAFW,MAAM,QA2ChB;IAGD;;;;;;OAMG;IACH,gCAJW,MAAM,eACN,MAAM,aACN,MAAM,QAkDhB;IAED;;;;;;;;OAQG;IACH,kCANW,MAAM,cACN,MAAM,aACN,MAAM,UACN,GAAG,GACD,OAAO,CAoEnB;IAED;;;;OAIG;IACH,gCAFa,MAAM,CAgBlB;IAED;;;;OAIG;IACH,mCA6BC;IAED;;;;OAIG;IACH,mBAFa,GAAG,CAiBf;IAED;;;OAGG;IACH,qBAFa,GAAG,CAcf;IAED;;;OAGG;IACH,6BAIC;IAED;;;;OAIG;IACH,WAFa,GAAG,CAef;IAED;;OAEG;IACH,sBAIC;IAED;;;;;;;;;;;;;;OAcG;IACH,0CAFW,MAAM,QAqChB;IAED;;;;OAIG;IACH,yCAFW,MAAM,QA0GhB;IAED;;;;OAIG;IACH,4CAHW,MAAM,GACJ,OAAO,CAMnB;IAED;;;;;OAKG;IACH,8CAHW,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;OAKG;IACH,6CAHW,MAAM,GACJ,OAAO,CAMnB;IAED;;;;;OAKG;IACH,+CAHW,MAAM,GACJ,MAAM,CAMlB;IAED;;OAEG;IACH,8BAGC;IAED;;;;;OAKG;IACH,sBAHW,MAAM,GACJ,MAAM,GAAC,OAAO,CAgB1B;IAED;;;;;;;;OAQG;IACH,oBAJW,MAAM,aACN,MAAM,OAyBhB;IAED;;;;;;OAMG;IACH,gCAJW,MAAM,aACN,MAAM,OAMhB;IAED;;;;;;OAMG;IACH,sBALW,MAAM,aACN,MAAM,eACN,MAAM,GACJ,MAAO,OAAO,CAwB1B;IAED;;;;;OAKG;IACH,yCAUC;IAED;;;;;OAKG;IACH,6BAHW,MAAM,OAMhB;IAED;;;;;OAKG;IACH,sCAFa,OAAO,CAKnB;IAED;;;;;;OAMG;IACH,uCAHW,KAAK,GACH,GAAG,CAKf;IAED;;;;OAIG;IACH,0FAGC;IAED;;;;;;;;OAQG;IACH,+BANW,MAAM,eACN,MAAM,aACN,MAAM,UACN,KAAK,GACH,GAAG,CAKf;IAED;;;;;;;;OAQG;IACH,mCAJW,MAAM,eACN,MAAM,OAMhB;IAED;;;;;;OAMG;IACH,kCAJW,MAAM,kBACN,MAAM,OAMhB;IAED;;;;;OAKG;IACH,iCAHW,MAAM,SAMhB;IAED;;;;;;;OAOG;IACH,mCAHW,MAAM,OAMhB;IAED;;;;;;;OAOG;IACH,qCALW,MAAM,aACN,MAAM,gBACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;OAMG;IACH,qCAJW,MAAM,aACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;OAMG;IACH,mCAJW,MAAM,aACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;OAMG;IACH,mCAJW,MAAM,aACN,MAAM,gBAMhB;IAED;;;OAGG;IACH,iCAGC;CACD"}
|
|
@@ -10,7 +10,7 @@ declare class PictFormMetacontroller extends libPictViewClass {
|
|
|
10
10
|
constructor(pFable: any, pOptions: any, pServiceHash: any);
|
|
11
11
|
viewMarshalDestination: string;
|
|
12
12
|
lastRenderedViews: any[];
|
|
13
|
-
formTemplatePrefix:
|
|
13
|
+
formTemplatePrefix: any;
|
|
14
14
|
/**
|
|
15
15
|
* Marshals data from the view to the model, usually AppData (or configured data store).
|
|
16
16
|
*
|
|
@@ -43,6 +43,8 @@ declare class PictFormMetacontroller extends libPictViewClass {
|
|
|
43
43
|
* @returns {any} The result of the solve operation.
|
|
44
44
|
*/
|
|
45
45
|
onSolve(): any;
|
|
46
|
+
onBeforeFilterViews(pViewFilterState: any): any;
|
|
47
|
+
onAfterFilterViews(pViewFilterState: any): any;
|
|
46
48
|
/**
|
|
47
49
|
* Filters the views based on the provided filter and sort functions.
|
|
48
50
|
*
|
|
@@ -106,6 +108,13 @@ declare class PictFormMetacontroller extends libPictViewClass {
|
|
|
106
108
|
* @returns {Array} - An array of section definitions.
|
|
107
109
|
*/
|
|
108
110
|
bootstrapPictFormViewsFromManifest(pManifestDescription: any): any[];
|
|
111
|
+
/**
|
|
112
|
+
* Add a dynamic view to the metacontroller.
|
|
113
|
+
* @param {string} pViewHash
|
|
114
|
+
* @param {Object} pViewConfiguration
|
|
115
|
+
* @returns
|
|
116
|
+
*/
|
|
117
|
+
addDynamicView(pViewHash: string, pViewConfiguration: any): any;
|
|
109
118
|
/**
|
|
110
119
|
* Returns whether the object is a Pict Metacontroller.
|
|
111
120
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-View-Form-Metacontroller.d.ts","sourceRoot":"","sources":["../../../source/views/Pict-View-Form-Metacontroller.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Pict-View-Form-Metacontroller.d.ts","sourceRoot":"","sources":["../../../source/views/Pict-View-Form-Metacontroller.js"],"names":[],"mappings":";AASA;;;;;;GAMG;AACH;IAEC,2DAaC;IALA,+BAAuC;IAEvC,yBAA2B;IAE3B,wBAAsF;IAGvF;;;;OAIG;IACH,qBAFa,GAAG,CAaf;IAED;;;;OAIG;IACH,mBAFa,GAAG,CAaf;IAED;;;;;OAKG;IACH,0DAOC;IAED;;;;;OAKG;IACH,iBAFa,GAAG,CAaf;IAED;;;;OAIG;IACH,WAFa,GAAG,CAMf;IAED,gDAGC;IAED,+CAGC;IAED;;;;;;;;OAQG;IACH,uEAgHC;IAED;;;;;;;OAOG;IACH,4CAHW,MAAM,GACJ,IAAI,CAShB;IAED;;;;OAIG;IACH,6BAFa,IAAI,CAQhB;IAED;;;;;;;OAOG;IACH,6EAWC;IAED;;;;;OAKG;IACH,4FAiBC;IAED;;;;;;OAMG;IACH,6EAFa,IAAI,CAkDhB;IAED;;;;;OAKG;IACH,qCAHW,MAAM,GACJ,MAAM,GAAC,OAAO,CA2C1B;IAED;;;;;OAKG;IACH,qEAyGC;IAED;;;;;OAKG;IACH,0BAJW,MAAM,gCAahB;IAED;;;;OAIG;IACH,oCAGC;CACD"}
|