pict-section-form 1.0.131 → 1.0.133
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/complex_table/Complex-Tabular-Application.js +1 -1
- package/example_applications/complex_table/html/index.html +2 -2
- package/example_applications/simple_form/Simple-Form_Default_Manifest.json +1 -1
- package/package.json +3 -3
- package/source/views/Pict-View-Form-Metacontroller.js +57 -18
- package/source/views/support/Pict-Provider-PSF-Support.js +314 -0
- package/source/views/support/Pict-View-PSF-AppData-Visualization.js +137 -0
- package/source/views/support/Pict-View-PSF-DebugViewer.js +68 -187
- package/source/views/support/Pict-View-PSF-LifeCycle-Visualization.js +19 -10
- package/source/views/support/Pict-View-PSF-Solver-Visualization.js +164 -0
- package/source/views/support/Pict-View-PSF-SpecificSolve-Visualization.js +45 -0
- package/source/views/support/Pict-View-PSF-SupportBase.js +220 -36
- package/types/source/providers/Pict-Provider-DynamicTabularData.d.ts.map +1 -1
- package/types/source/views/Pict-View-Form-Metacontroller.d.ts +23 -1
- package/types/source/views/Pict-View-Form-Metacontroller.d.ts.map +1 -1
- package/types/source/views/support/Pict-Provider-PSF-Support.d.ts +30 -0
- package/types/source/views/support/Pict-Provider-PSF-Support.d.ts.map +1 -0
- package/types/source/views/support/Pict-View-PSF-AppData-Visualization.d.ts +26 -0
- package/types/source/views/support/Pict-View-PSF-AppData-Visualization.d.ts.map +1 -0
- package/types/source/views/support/Pict-View-PSF-DebugViewer.d.ts +2 -11
- package/types/source/views/support/Pict-View-PSF-DebugViewer.d.ts.map +1 -1
- package/types/source/views/support/Pict-View-PSF-LifeCycle-Visualization.d.ts +5 -5
- package/types/source/views/support/Pict-View-PSF-LifeCycle-Visualization.d.ts.map +1 -1
- package/types/source/views/support/Pict-View-PSF-Solver-Visualization.d.ts +22 -0
- package/types/source/views/support/Pict-View-PSF-Solver-Visualization.d.ts.map +1 -1
- package/types/source/views/support/Pict-View-PSF-SpecificSolve-Visualization.d.ts +23 -0
- package/types/source/views/support/Pict-View-PSF-SpecificSolve-Visualization.d.ts.map +1 -0
- package/types/source/views/support/Pict-View-PSF-SupportBase.d.ts +4 -1
- package/types/source/views/support/Pict-View-PSF-SupportBase.d.ts.map +1 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
const libPictView = require(`pict-view`);
|
|
2
2
|
|
|
3
|
+
const libPictSupportProvider = require('./Pict-Provider-PSF-Support.js');
|
|
4
|
+
|
|
3
5
|
const defaultViewConfiguration = (
|
|
4
6
|
{
|
|
5
7
|
ViewIdentifier: "Pict-Form-SupportBase",
|
|
@@ -23,39 +25,14 @@ class PictFormsSupportBase extends libPictView
|
|
|
23
25
|
{
|
|
24
26
|
super(pFable, pOptions, pServiceHash);
|
|
25
27
|
|
|
26
|
-
//
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
top: 0px;
|
|
35
|
-
width: 50vw;
|
|
36
|
-
max-height: 75vh;
|
|
37
|
-
overflow: auto;
|
|
38
|
-
}
|
|
39
|
-
#Pict-Form-Extension-DragControl {
|
|
40
|
-
background-color: #eae;
|
|
41
|
-
cursor: move;
|
|
42
|
-
padding: 2px 4px;
|
|
43
|
-
border-radius: 3px;
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
`, 1000, 'Pict-Form-SupportBase');
|
|
47
|
-
}
|
|
48
|
-
// Only add this template if it doesn't exist
|
|
49
|
-
if (this.pict.TemplateProvider.getTemplate('Pict-Form-Support-Container') == null)
|
|
50
|
-
{
|
|
51
|
-
this.pict.TemplateProvider.addTemplate('Pict-Form-Support-Container',
|
|
52
|
-
/*html*/`
|
|
53
|
-
<div id="Pict-Form-Extensions-Wrap">
|
|
54
|
-
<p class="PSFDV-Extension-Header"><span id="Pict-Form-Extension-DragControl" class="PSDV-Extension-Header-Controlbar">Pict.Extensions <a href="javascript:void(0);" onclick="{~P~}.views.PictFormMetacontroller.showSupportViewInlineEditor()">reload</a> <a href="javascript:void(0);" onclick="{~P~}.ContentAssignment.toggleClass('#Pict-Form-Extensions-Container', 'PSFDV-Hidden')">toggle</a></span></p>
|
|
55
|
-
<div id="Pict-Form-Extensions-Container"></div>
|
|
56
|
-
</div>
|
|
57
|
-
`);
|
|
58
|
-
}
|
|
28
|
+
// Add the support provider if it doesn't exist
|
|
29
|
+
this.pict.addProviderSingleton("Pict-Form-SupportExtensions", {}, libPictSupportProvider);
|
|
30
|
+
|
|
31
|
+
this.DisplayShortName = 'U';
|
|
32
|
+
this.DisplayLongName = 'UNDEFINED';
|
|
33
|
+
|
|
34
|
+
// Register this with the support provider
|
|
35
|
+
this.pict.providers["Pict-Form-SupportExtensions"].registerSupportView(this);
|
|
59
36
|
}
|
|
60
37
|
|
|
61
38
|
getDynamicState()
|
|
@@ -175,17 +152,29 @@ class PictFormsSupportBase extends libPictView
|
|
|
175
152
|
}
|
|
176
153
|
}
|
|
177
154
|
|
|
178
|
-
// Now sort the solvers by Ordinal and then Index
|
|
155
|
+
// Now sort the solvers by Ordinal, then Group/Section and then Index
|
|
179
156
|
tmpSectionViewSolvers.sort((pLeftValue, pRightValue) =>
|
|
180
157
|
{
|
|
181
158
|
if (pLeftValue.Ordinal < pRightValue.Ordinal) return -1;
|
|
182
159
|
if (pLeftValue.Ordinal > pRightValue.Ordinal) return 1;
|
|
160
|
+
if (pLeftValue.ExpressionScope == 'Group' && pRightValue.ExpressionScope == 'Section') return -1;
|
|
161
|
+
if (pLeftValue.ExpressionScope == 'Section' && pRightValue.ExpressionScope == 'Group') return 1;
|
|
183
162
|
if (pLeftValue.Index < pRightValue.Index) return -1;
|
|
184
163
|
if (pLeftValue.Index > pRightValue.Index) return 1;
|
|
185
164
|
return 0;
|
|
186
165
|
});
|
|
187
166
|
}
|
|
188
167
|
|
|
168
|
+
tmpDynamicState.Solvers.sort((pLeftValue, pRightValue) =>
|
|
169
|
+
{
|
|
170
|
+
if (pLeftValue.Ordinal < pRightValue.Ordinal) return -1;
|
|
171
|
+
if (pLeftValue.Ordinal > pRightValue.Ordinal) return 1;
|
|
172
|
+
if (pLeftValue.ExpressionScope == 'Group' && pRightValue.ExpressionScope == 'Section') return -1;
|
|
173
|
+
if (pLeftValue.ExpressionScope == 'Section' && pRightValue.ExpressionScope == 'Group') return 1;
|
|
174
|
+
if (pLeftValue.Index < pRightValue.Index) return -1;
|
|
175
|
+
if (pLeftValue.Index > pRightValue.Index) return 1;
|
|
176
|
+
return 0;
|
|
177
|
+
});
|
|
189
178
|
// Get the *full* last solve outcome object
|
|
190
179
|
tmpDynamicState.LastSolveOutcome = this.pict.providers.DynamicSolver.lastSolveOutcome;
|
|
191
180
|
|
|
@@ -210,7 +199,8 @@ class PictFormsSupportBase extends libPictView
|
|
|
210
199
|
{
|
|
211
200
|
// We have a match -- assign the result to the solver entry
|
|
212
201
|
tmpSolverEntry.LastResult = tmpPotentialResultEntry.Solver.ResultsObject.RawResult;
|
|
213
|
-
tmpSolverEntry.
|
|
202
|
+
tmpSolverEntry.Value = tmpPotentialResultEntry.Solver.ResultsObject.RawResult;
|
|
203
|
+
tmpSolverEntry.LastResultsObject = tmpPotentialResultEntry.Solver.ResultsObject;
|
|
214
204
|
}
|
|
215
205
|
}
|
|
216
206
|
}
|
|
@@ -246,9 +236,148 @@ class PictFormsSupportBase extends libPictView
|
|
|
246
236
|
return tmpSectionSolvers;
|
|
247
237
|
}
|
|
248
238
|
|
|
249
|
-
|
|
239
|
+
|
|
240
|
+
downloadJSONObjectAsFile(pAddress)
|
|
241
|
+
{
|
|
242
|
+
try
|
|
243
|
+
{
|
|
244
|
+
const tmpJSONData = this.pict.resolveStateFromAddress(pAddress);
|
|
245
|
+
const tmpJSONFileName = `PICT_JSON_${pAddress.replace('.','_')}.json`;
|
|
246
|
+
const tmpJSONString = JSON.stringify(tmpJSONData, null, 4);
|
|
247
|
+
|
|
248
|
+
if (!URL || !Blob)
|
|
249
|
+
{
|
|
250
|
+
this.pict.log.error(`Browser does not support required features for downloading JSON object from address ${pAddress}.`);
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
// Synthesize a file, URL and link to facilitate a file download
|
|
255
|
+
const tmpAbstractFileBlob = new Blob([tmpJSONString], { type: "application/json" });
|
|
256
|
+
const tmpAbstractFileURL = URL.createObjectURL(tmpAbstractFileBlob);
|
|
257
|
+
const tmpAbstractAnchorElement = document.createElement("a");
|
|
258
|
+
tmpAbstractAnchorElement.href = tmpAbstractFileURL;
|
|
259
|
+
tmpAbstractAnchorElement.download = tmpJSONFileName;
|
|
260
|
+
// Trigger the download
|
|
261
|
+
tmpAbstractAnchorElement.click();
|
|
262
|
+
// Clean up the URL from memory
|
|
263
|
+
URL.revokeObjectURL(tmpAbstractFileURL);
|
|
264
|
+
}
|
|
265
|
+
catch (pError)
|
|
266
|
+
{
|
|
267
|
+
this.pict.log.error(`Error downloading JSON object from address ${pAddress}: ${pError.message}`);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
updateExpressionFromElement(pExpressionElementAddress, pExpressionScope, pSectionViewHash, pSectionOrdinal, pSolverIndex, pExpressionElementRepresentationAddress)
|
|
250
272
|
{
|
|
273
|
+
// 1. Get the expression from the element
|
|
274
|
+
let tmpExpressionElementValue = this.pict.ContentAssignment.readContent(pExpressionElementAddress);
|
|
275
|
+
|
|
276
|
+
if (!tmpExpressionElementValue)
|
|
277
|
+
{
|
|
278
|
+
this.pict.log.warn(`No expression found in element at address ${pExpressionElementAddress}; cannot update ${pExpressionScope} solver Ordinal ${pSectionOrdinal} Index ${pSolverIndex}.`);
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
281
|
+
// 2. Go through the enumeration of solvers to find if this expression exists
|
|
282
|
+
let tmpMetacontroller = this.pict.views.PictFormMetacontroller;
|
|
283
|
+
let tmpDynamicState = (
|
|
284
|
+
{
|
|
285
|
+
// TODO: The way the metacontroller pulls in the manifest and bootstraps the description is putting "DEFAULT" into the actual manifest; fix this.
|
|
286
|
+
"Scope": tmpMetacontroller.manifestDescription.Scope,
|
|
287
|
+
"Description": ``,
|
|
288
|
+
"Manifest": tmpMetacontroller.manifest,
|
|
289
|
+
"ManifestDescription": tmpMetacontroller.manifestDescription,
|
|
290
|
+
"AllViews": tmpMetacontroller.filterViews(),
|
|
291
|
+
"SectionViews": [],
|
|
292
|
+
"DynamicInputView": false,
|
|
293
|
+
"Solvers": []
|
|
294
|
+
});
|
|
295
|
+
|
|
296
|
+
for (let i = 0; i < tmpDynamicState.AllViews.length; i++)
|
|
297
|
+
{
|
|
298
|
+
let tmpSectionView = tmpDynamicState.AllViews[i];
|
|
299
|
+
if (tmpSectionView.isPictSectionForm && (tmpSectionView.Hash == 'PictFormMetacontroller-DynamicInputs'))
|
|
300
|
+
{
|
|
301
|
+
// This is the special Dynamic Input section -- it goes in its own place.
|
|
302
|
+
tmpDynamicState.DynamicInputView = tmpSectionView;
|
|
303
|
+
}
|
|
304
|
+
else if (tmpSectionView.isPictSectionForm)
|
|
305
|
+
{
|
|
306
|
+
tmpDynamicState.SectionViews.push(
|
|
307
|
+
{
|
|
308
|
+
View: tmpSectionView,
|
|
309
|
+
sectionDefinition: tmpSectionView.sectionDefinition,
|
|
310
|
+
Solvers: []
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
// Now get the solvers for each section view
|
|
316
|
+
for (let i = 0; i < tmpDynamicState.SectionViews.length; i++)
|
|
317
|
+
{
|
|
318
|
+
let tmpSectionView = tmpDynamicState.SectionViews[i].View;
|
|
319
|
+
let tmpSectionViewSolvers = tmpDynamicState.SectionViews[i].Solvers;
|
|
320
|
+
// Find the view representation in the
|
|
321
|
+
if (tmpSectionView.isPictSectionForm && Array.isArray(tmpSectionView.sectionDefinition.Solvers))
|
|
322
|
+
{
|
|
323
|
+
for (let j = 0; j < tmpSectionView.sectionDefinition.Solvers.length; j++)
|
|
324
|
+
{
|
|
325
|
+
let tmpSolver = tmpSectionView.sectionDefinition.Solvers[j];
|
|
326
|
+
|
|
327
|
+
// 3a. Update the expression in the solver definition
|
|
328
|
+
if (pExpressionScope == 'Section' && i == pSectionOrdinal && j == pSolverIndex && tmpSectionView.Hash == pSectionViewHash)
|
|
329
|
+
{
|
|
330
|
+
// This is the solver we are updating
|
|
331
|
+
if (typeof(tmpSolver) === 'string')
|
|
332
|
+
{
|
|
333
|
+
// Simple solver -- just a string
|
|
334
|
+
tmpSectionView.sectionDefinition.Solvers[j] = tmpExpressionElementValue;
|
|
335
|
+
}
|
|
336
|
+
else if (typeof(tmpSolver) === 'object')
|
|
337
|
+
{
|
|
338
|
+
// Complex solver -- update the expression property
|
|
339
|
+
tmpSectionView.sectionDefinition.Solvers[j].Expression = tmpExpressionElementValue;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
// Now get all the Group solvers
|
|
346
|
+
// These guards are here because the metacontroller view masquerades as a section form view but isn't one.
|
|
347
|
+
for (let j = 0; j < tmpSectionView.sectionDefinition.Groups.length; j++)
|
|
348
|
+
{
|
|
349
|
+
let tmpGroup = tmpSectionView.getGroup(j);
|
|
350
|
+
if (`RecordSetSolvers` in tmpGroup)
|
|
351
|
+
{
|
|
352
|
+
for (let k = 0; k < tmpGroup.RecordSetSolvers.length; k++)
|
|
353
|
+
{
|
|
354
|
+
let tmpSolver = tmpGroup.RecordSetSolvers[k];
|
|
355
|
+
|
|
356
|
+
// 3b. Update the expression in the solver definition
|
|
357
|
+
if (pExpressionScope == 'Group' && i == pSectionOrdinal && j == pSolverIndex && tmpSectionView.Hash == pSectionViewHash)
|
|
358
|
+
{
|
|
359
|
+
// This is the solver we are updating
|
|
360
|
+
if (typeof(tmpSolver) === 'string')
|
|
361
|
+
{
|
|
362
|
+
// Simple solver -- just a string
|
|
363
|
+
tmpSectionView.sectionDefinition.Solvers[j] = tmpExpressionElementValue;
|
|
364
|
+
}
|
|
365
|
+
else if (typeof(tmpSolver) === 'object')
|
|
366
|
+
{
|
|
367
|
+
// Complex solver -- update the expression property
|
|
368
|
+
tmpSectionView.sectionDefinition.Solvers[j].Expression = tmpExpressionElementValue;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}
|
|
251
375
|
|
|
376
|
+
// 4. Write the updated expression to it's representation element, if provided
|
|
377
|
+
if (pExpressionElementRepresentationAddress)
|
|
378
|
+
{
|
|
379
|
+
this.pict.ContentAssignment.assignContent(pExpressionElementRepresentationAddress, tmpExpressionElementValue);
|
|
380
|
+
}
|
|
252
381
|
}
|
|
253
382
|
|
|
254
383
|
bootstrapContainer()
|
|
@@ -325,6 +454,61 @@ class PictFormsSupportBase extends libPictView
|
|
|
325
454
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
326
455
|
}
|
|
327
456
|
|
|
457
|
+
// 6. Make the container resizable
|
|
458
|
+
// Setup the draggable behavior for the window
|
|
459
|
+
let tmpResizableElement = document.getElementById('Pict-Form-Extensions-Wrap'); // What we are resizing
|
|
460
|
+
let tmpResizableControl = document.getElementById('Pict-Form-Extension-ResizeControl'); // The control you click on to drag
|
|
461
|
+
if (tmpResizableElement && tmpResizableControl)
|
|
462
|
+
{
|
|
463
|
+
tmpResizableControl.addEventListener('mousedown',
|
|
464
|
+
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
465
|
+
* BEGIN of browser event code block
|
|
466
|
+
*
|
|
467
|
+
* The below code is meant to run in response to a browser event.
|
|
468
|
+
* --> Therefore the "this" context is the element that fired the event.
|
|
469
|
+
* --> Happy trails.
|
|
470
|
+
*/
|
|
471
|
+
function (pEvent)
|
|
472
|
+
{
|
|
473
|
+
function dragResizeHandler(pEvent)
|
|
474
|
+
{
|
|
475
|
+
pEvent.stopPropagation();
|
|
476
|
+
|
|
477
|
+
let tmpNewWidth = pEvent.clientX - tmpResizableElement.getBoundingClientRect().left;
|
|
478
|
+
let tmpNewHeight = pEvent.clientY - tmpResizableElement.getBoundingClientRect().top;
|
|
479
|
+
|
|
480
|
+
// Check the CSS for minimum width and height, and set these to those if we go under
|
|
481
|
+
let tmpComputedStyle = getComputedStyle(tmpResizableElement);
|
|
482
|
+
let tmpMinWidth = parseInt(tmpComputedStyle.minWidth, 10);
|
|
483
|
+
let tmpMinHeight = parseInt(tmpComputedStyle.minHeight, 10);
|
|
484
|
+
|
|
485
|
+
if (tmpNewWidth < tmpMinWidth)
|
|
486
|
+
{
|
|
487
|
+
tmpNewWidth = tmpMinWidth;
|
|
488
|
+
}
|
|
489
|
+
if (tmpNewHeight < tmpMinHeight)
|
|
490
|
+
{
|
|
491
|
+
tmpNewHeight = tmpMinHeight;
|
|
492
|
+
}
|
|
493
|
+
tmpResizableElement.style.width = tmpNewWidth + 'px';
|
|
494
|
+
tmpResizableElement.style.height = tmpNewHeight + 'px';
|
|
495
|
+
}
|
|
496
|
+
function dragResizeStop(pEvent)
|
|
497
|
+
{
|
|
498
|
+
window.removeEventListener('pointermove', dragResizeHandler);
|
|
499
|
+
window.removeEventListener('pointerup', dragResizeStop);
|
|
500
|
+
}
|
|
501
|
+
window.addEventListener('pointermove', dragResizeHandler);
|
|
502
|
+
window.addEventListener('pointerup', dragResizeStop);
|
|
503
|
+
|
|
504
|
+
// Prevent janky selection behaviors in the browser
|
|
505
|
+
pEvent.preventDefault();
|
|
506
|
+
});
|
|
507
|
+
/*
|
|
508
|
+
* END of browser event code block
|
|
509
|
+
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
510
|
+
}
|
|
511
|
+
|
|
328
512
|
}
|
|
329
513
|
}
|
|
330
514
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Provider-DynamicTabularData.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicTabularData.js"],"names":[],"mappings":";AAaA;;;GAGG;AAEH;;GAEG;AACH;IAEC;;;;;;OAMG;IACH,oBAJW,MAAM,YACN,MAAM,gBACN,MAAM,EAahB;IANA,kBAAkB;IAClB,SADW,GAAG,CACF;IACZ,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IAKV;;;;;;OAMG;IACH,6CAHW,MAAM,GACJ,cAAa,OAAO,CAehC;IAED;;;;;;;OAOG;IACH,+CAJW,MAAM,eACN,MAAM,GACJ,iBAAiB,GAAC,OAAO,CAiBrC;IAED;;;;;;;OAOG;IACH,8CAJW,MAAM,kBACN,MAAM,GACJ,OAAO,MAAO,CAkD1B;IAED;;;;;OAKG;IACH,+CAFW,MAAM,
|
|
1
|
+
{"version":3,"file":"Pict-Provider-DynamicTabularData.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicTabularData.js"],"names":[],"mappings":";AAaA;;;GAGG;AAEH;;GAEG;AACH;IAEC;;;;;;OAMG;IACH,oBAJW,MAAM,YACN,MAAM,gBACN,MAAM,EAahB;IANA,kBAAkB;IAClB,SADW,GAAG,CACF;IACZ,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IAKV;;;;;;OAMG;IACH,6CAHW,MAAM,GACJ,cAAa,OAAO,CAehC;IAED;;;;;;;OAOG;IACH,+CAJW,MAAM,eACN,MAAM,GACJ,iBAAiB,GAAC,OAAO,CAiBrC;IAED;;;;;;;OAOG;IACH,8CAJW,MAAM,kBACN,MAAM,GACJ,OAAO,MAAO,CAkD1B;IAED;;;;;OAKG;IACH,+CAFW,MAAM,QAoChB;IAGD;;;;;OAKG;IACH,4DAFW,MAAM,QAgChB;IAED;;;;;;;;OAQG;IACH,iDALW,MAAM,aACN,MAAM,GAAC,MAAM,gBACb,MAAM,GACJ,OAAO,CAgCnB;IAED;;;;;;;OAOG;IACH,iDAJW,MAAM,aACN,MAAM,GAAC,MAAM,GACX,OAAO,CA+BnB;IAED;;;;;;;OAOG;IACH,+CAJW,MAAM,aACN,MAAM,GAAC,MAAM,GACX,OAAO,CAoCnB;IAGD;;;;;;;OAOG;IACH,+CAJW,MAAM,aACN,MAAM,GAAC,MAAM,GACX,OAAO,CA+CnB;CACD;;;;;AAtZD,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAS3B;;;;;UAIW,MAAM"}
|
|
@@ -17,6 +17,9 @@ declare class PictFormMetacontroller extends libPictViewClass {
|
|
|
17
17
|
SupportViewPrototypes: {
|
|
18
18
|
LifecycleVisualization: typeof import("./support/Pict-View-PSF-LifeCycle-Visualization.js");
|
|
19
19
|
DebugViewer: typeof import("./support/Pict-View-PSF-DebugViewer.js");
|
|
20
|
+
AppDataViewer: typeof import("./support/Pict-View-PSF-AppData-Visualization.js");
|
|
21
|
+
SolverVisualization: typeof import("./support/Pict-View-PSF-Solver-Visualization.js");
|
|
22
|
+
SpecificSolveVisualization: typeof import("./support/Pict-View-PSF-SpecificSolve-Visualization.js");
|
|
20
23
|
};
|
|
21
24
|
set viewMarshalDestination(pValue: any);
|
|
22
25
|
get viewMarshalDestination(): any;
|
|
@@ -57,8 +60,18 @@ declare class PictFormMetacontroller extends libPictViewClass {
|
|
|
57
60
|
/**
|
|
58
61
|
* @param {Record<string, any>} pManifest - The manifest to add
|
|
59
62
|
* @param {string} [pAfterSectionHash] - The hash of the section to add after. Omit to add to the start.
|
|
63
|
+
* @param {string} [pUUID] - (optional) The UUID to use for uniqueness. If not provided, a new one will be generated.
|
|
64
|
+
*
|
|
65
|
+
* @return {Array<import('./Pict-View-DynamicForm.js')>} the views that correspond to the newly added sections
|
|
66
|
+
*/
|
|
67
|
+
injectManifestAndRender(pManifest: Record<string, any>, pAfterSectionHash?: string, pUUID?: string): Array<import("./Pict-View-DynamicForm.js")>;
|
|
68
|
+
/**
|
|
69
|
+
* @param {Record<string, any>} pManifest - The manifest to add
|
|
70
|
+
* @param {string} [pAfterSectionHash] - The hash of the section to add after. Omit to add to the start.
|
|
71
|
+
*
|
|
72
|
+
* @return {Array<import('./Pict-View-DynamicForm.js')>} the views that correspond to the newly added sections; note that these views are NOT rendered yet
|
|
60
73
|
*/
|
|
61
|
-
injectManifest(pManifest: Record<string, any>, pAfterSectionHash?: string):
|
|
74
|
+
injectManifest(pManifest: Record<string, any>, pAfterSectionHash?: string): Array<import("./Pict-View-DynamicForm.js")>;
|
|
62
75
|
/**
|
|
63
76
|
* Changes:
|
|
64
77
|
* * The hashes of each section+group to be globally unique.
|
|
@@ -115,6 +128,15 @@ declare class PictFormMetacontroller extends libPictViewClass {
|
|
|
115
128
|
* @param {SortFunction} [fSortFunction] - The sort function used to sort the views.
|
|
116
129
|
*/
|
|
117
130
|
renderFormSections(fFilterFunction?: Function, fSortFunction?: SortFunction): void;
|
|
131
|
+
/**
|
|
132
|
+
* Marshals data to the form sections based on the provided filter and sort functions
|
|
133
|
+
*
|
|
134
|
+
* If no filter and sort functions are provided, render all form sections.
|
|
135
|
+
*
|
|
136
|
+
* @param {Function} [fFilterFunction] - The filter function used to filter the views.
|
|
137
|
+
* @param {SortFunction} [fSortFunction] - The sort function used to sort the views.
|
|
138
|
+
*/
|
|
139
|
+
marshalFormSections(fFilterFunction?: Function, fSortFunction?: SortFunction): void;
|
|
118
140
|
/**
|
|
119
141
|
* Regenerates the DyunamicForm section templates based on the provided filter and sort function.
|
|
120
142
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-View-Form-Metacontroller.d.ts","sourceRoot":"","sources":["../../../source/views/Pict-View-Form-Metacontroller.js"],"names":[],"mappings":";AAaA;;GAEG;AAEH;;;;;;GAMG;AACH;IAEC,
|
|
1
|
+
{"version":3,"file":"Pict-View-Form-Metacontroller.d.ts","sourceRoot":"","sources":["../../../source/views/Pict-View-Form-Metacontroller.js"],"names":[],"mappings":";AAaA;;GAEG;AAEH;;;;;;GAMG;AACH;IAEC,2DAsBC;IAdA,yBAA2B;IAE3B,wBAAsF;IAEtF,cAAkC;IAElC;;;;;;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;IAwBD;;;;OAIG;IACH,WAFa,GAAG,CAMf;IAED,gDAGC;IAED,+CAGC;IAED;;;;OAIG;IACH,2DAJW,MAAM,GAEL,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAW9B;IAED;;;;;;OAMG;IACH,mCANW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,sBACnB,MAAM,UACN,MAAM,GAEL,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC,CAiBtD;IAED;;;;;OAKG;IACH,0BALW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,sBACnB,MAAM,GAEL,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC,CAgCtD;IAED;;;;;;;;;OASG;IACH,kCALW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,UACnB,MAAM,GAEL,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAsC9B;IAED;;;;OAIG;IACH,uCAJW,KAAK,CAAC,MAAM,CAAC,sBACb,MAAM,UACN,MAAM,QAuBhB;IAED;;;OAGG;IACH,6CAHW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,sBACnB,MAAM,SAehB;IAED;;;;;;;;OAQG;IACH,wDAHW,YAAY,SAoHtB;IAED;;;;;;;OAOG;IACH,4CAHW,MAAM,GACJ,IAAI,CAShB;IAED;;;;OAIG;IACH,6BAFa,IAAI,CAQhB;IAED;;;;;;;OAOG;IACH,+DAFW,YAAY,QAatB;IAED;;;;;;;OAOG;IACH,gEAFW,YAAY,QAatB;IAED;;;;;OAKG;IACH,8EAFW,YAAY,QAmBtB;IAED;;;;;;OAMG;IACH,oEAHW,YAAY,GACV,IAAI,CAkDhB;IAED;;;;;;;OAOG;IACH,uEAJW,YAAY,GAEX,IAAI,CAsFf;IAED;;;;;OAKG;IACH,qCAHW,MAAM,GACJ,MAAM,GAAC,OAAO,CA2C1B;IAED,+CAeC;IAED;;;;;;;OAOG;IACH,kFAJW,MAAM,GAEJ,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAoLtC;IA5JC,gCAA0D;IAC1D,yBAAiD;IA6JnD;;;;OAIG;IACH,gCAHW,MAAM,qBACN,MAAM,QA0BhB;IAED;;;OAGG;IACH,yDAHW,MAAM,uBACN,MAAM,QAKhB;IAED;;;;;OAKG;IACH,yDALW,MAAM,uBACN,MAAM,GAEL,OAAO,CAoDlB;IAED;;;;OAIG;IACH,sCAJW,MAAM,GAEL,OAAO,CA0ClB;IAED;;;OAGG;IACH,wDAHW,MAAM,6BAuBhB;IAED,oCAgBC;IAED;;;;OAIG;IACH,4BAFa,OAAO,CAKnB;CACD;;;;;qCAGU,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;oBA/oCjB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,KAAK,MAAM"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export = PictSupportExtension;
|
|
2
|
+
/**
|
|
3
|
+
* Represents a class that provides dynamic templates for the Pict form section provider.
|
|
4
|
+
* @extends libPictProvider
|
|
5
|
+
*/
|
|
6
|
+
declare class PictSupportExtension extends libPictProvider {
|
|
7
|
+
/**
|
|
8
|
+
* Constructs a new instance of the PictProviderDynamicTemplates class.
|
|
9
|
+
* @param {Object} pFable - The pFable object.
|
|
10
|
+
* @param {Object} pOptions - The options object.
|
|
11
|
+
* @param {Object} pServiceHash - The service hash object.
|
|
12
|
+
*/
|
|
13
|
+
constructor(pFable: any, pOptions: any, pServiceHash: any);
|
|
14
|
+
SupportViews: {};
|
|
15
|
+
registerSupportView(pView: any): void;
|
|
16
|
+
getSupportViewLinks(): {
|
|
17
|
+
Hash: any;
|
|
18
|
+
Link: string;
|
|
19
|
+
ShortName: any;
|
|
20
|
+
LongName: any;
|
|
21
|
+
OnClick: string;
|
|
22
|
+
}[];
|
|
23
|
+
}
|
|
24
|
+
declare namespace PictSupportExtension {
|
|
25
|
+
export { _DefaultProviderConfiguration as default_configuration };
|
|
26
|
+
}
|
|
27
|
+
import libPictProvider = require("pict-provider");
|
|
28
|
+
/** @type {Record<string, any>} */
|
|
29
|
+
declare const _DefaultProviderConfiguration: Record<string, any>;
|
|
30
|
+
//# sourceMappingURL=Pict-Provider-PSF-Support.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pict-Provider-PSF-Support.d.ts","sourceRoot":"","sources":["../../../../source/views/support/Pict-Provider-PSF-Support.js"],"names":[],"mappings":";AAaA;;;GAGG;AACH;IAEC;;;;;OAKG;IACH,2DAiQC;IADA,iBAAsB;IAGvB,sCAIC;IAED;;;;;;QAmBC;CACD;;;;;AApTD,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAS3B"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export = PictFormsAppData;
|
|
2
|
+
declare class PictFormsAppData extends libPictViewFormSupportBase {
|
|
3
|
+
flattenMarshalDestination(): any;
|
|
4
|
+
flattenAppData(): any;
|
|
5
|
+
flattenAddress(pAddress: any): any;
|
|
6
|
+
}
|
|
7
|
+
declare namespace PictFormsAppData {
|
|
8
|
+
export { defaultViewConfiguration as default_configuration };
|
|
9
|
+
}
|
|
10
|
+
import libPictViewFormSupportBase = require("./Pict-View-PSF-SupportBase.js");
|
|
11
|
+
declare namespace defaultViewConfiguration {
|
|
12
|
+
let ViewIdentifier: string;
|
|
13
|
+
let DefaultRenderable: string;
|
|
14
|
+
let DefaultDestinationAddress: string;
|
|
15
|
+
let RenderOnLoad: boolean;
|
|
16
|
+
let CSS: string;
|
|
17
|
+
let Templates: {
|
|
18
|
+
Hash: string;
|
|
19
|
+
Template: string;
|
|
20
|
+
}[];
|
|
21
|
+
let Renderables: {
|
|
22
|
+
RenderableHash: string;
|
|
23
|
+
TemplateHash: string;
|
|
24
|
+
}[];
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=Pict-View-PSF-AppData-Visualization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pict-View-PSF-AppData-Visualization.d.ts","sourceRoot":"","sources":["../../../../source/views/support/Pict-View-PSF-AppData-Visualization.js"],"names":[],"mappings":";AA0GA;IAUC,iCAGC;IAED,sBAGC;IAED,mCAKC;CACD"}
|
|
@@ -15,18 +15,9 @@ declare namespace defaultViewConfiguration {
|
|
|
15
15
|
Hash: string;
|
|
16
16
|
Template: string;
|
|
17
17
|
}[];
|
|
18
|
-
let Renderables:
|
|
18
|
+
let Renderables: {
|
|
19
19
|
RenderableHash: string;
|
|
20
20
|
TemplateHash: string;
|
|
21
|
-
|
|
22
|
-
RenderMethod?: undefined;
|
|
23
|
-
TestAddress?: undefined;
|
|
24
|
-
} | {
|
|
25
|
-
RenderableHash: string;
|
|
26
|
-
TemplateHash: string;
|
|
27
|
-
ContentDestinationAddress: string;
|
|
28
|
-
RenderMethod: string;
|
|
29
|
-
TestAddress: string;
|
|
30
|
-
})[];
|
|
21
|
+
}[];
|
|
31
22
|
}
|
|
32
23
|
//# sourceMappingURL=Pict-View-PSF-DebugViewer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-View-PSF-DebugViewer.d.ts","sourceRoot":"","sources":["../../../../source/views/support/Pict-View-PSF-DebugViewer.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Pict-View-PSF-DebugViewer.d.ts","sourceRoot":"","sources":["../../../../source/views/support/Pict-View-PSF-DebugViewer.js"],"names":[],"mappings":";AA0JA;CASC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export =
|
|
2
|
-
declare class
|
|
3
|
-
constructor(pFable: any, pOptions: any, pServiceHash: any);
|
|
1
|
+
export = PictFormsLifeCycle;
|
|
2
|
+
declare class PictFormsLifeCycle extends libPictViewFormSupportBase {
|
|
4
3
|
}
|
|
5
|
-
declare namespace
|
|
4
|
+
declare namespace PictFormsLifeCycle {
|
|
6
5
|
export { defaultViewConfiguration as default_configuration };
|
|
7
6
|
}
|
|
8
|
-
import
|
|
7
|
+
import libPictViewFormSupportBase = require("./Pict-View-PSF-SupportBase.js");
|
|
9
8
|
declare namespace defaultViewConfiguration {
|
|
10
9
|
let ViewIdentifier: string;
|
|
11
10
|
let DefaultRenderable: string;
|
|
12
11
|
let DefaultDestinationAddress: string;
|
|
13
12
|
let RenderOnLoad: boolean;
|
|
13
|
+
let CSS: string;
|
|
14
14
|
let Templates: {
|
|
15
15
|
Hash: string;
|
|
16
16
|
Template: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-View-PSF-LifeCycle-Visualization.d.ts","sourceRoot":"","sources":["../../../../source/views/support/Pict-View-PSF-LifeCycle-Visualization.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Pict-View-PSF-LifeCycle-Visualization.d.ts","sourceRoot":"","sources":["../../../../source/views/support/Pict-View-PSF-LifeCycle-Visualization.js"],"names":[],"mappings":";AA+BA;CASC"}
|
|
@@ -1 +1,23 @@
|
|
|
1
|
+
export = PictFormsSolver;
|
|
2
|
+
declare class PictFormsSolver extends libPictViewFormSupportBase {
|
|
3
|
+
}
|
|
4
|
+
declare namespace PictFormsSolver {
|
|
5
|
+
export { defaultViewConfiguration as default_configuration };
|
|
6
|
+
}
|
|
7
|
+
import libPictViewFormSupportBase = require("./Pict-View-PSF-SupportBase.js");
|
|
8
|
+
declare namespace defaultViewConfiguration {
|
|
9
|
+
let ViewIdentifier: string;
|
|
10
|
+
let DefaultRenderable: string;
|
|
11
|
+
let DefaultDestinationAddress: string;
|
|
12
|
+
let RenderOnLoad: boolean;
|
|
13
|
+
let CSS: string;
|
|
14
|
+
let Templates: {
|
|
15
|
+
Hash: string;
|
|
16
|
+
Template: string;
|
|
17
|
+
}[];
|
|
18
|
+
let Renderables: {
|
|
19
|
+
RenderableHash: string;
|
|
20
|
+
TemplateHash: string;
|
|
21
|
+
}[];
|
|
22
|
+
}
|
|
1
23
|
//# sourceMappingURL=Pict-View-PSF-Solver-Visualization.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-View-PSF-Solver-Visualization.d.ts","sourceRoot":"","sources":["../../../../source/views/support/Pict-View-PSF-Solver-Visualization.js"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Pict-View-PSF-Solver-Visualization.d.ts","sourceRoot":"","sources":["../../../../source/views/support/Pict-View-PSF-Solver-Visualization.js"],"names":[],"mappings":";AAsJA;CASC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export = PictFormsSpecificSolve;
|
|
2
|
+
declare class PictFormsSpecificSolve extends libPictViewFormSupportBase {
|
|
3
|
+
}
|
|
4
|
+
declare namespace PictFormsSpecificSolve {
|
|
5
|
+
export { defaultViewConfiguration as default_configuration };
|
|
6
|
+
}
|
|
7
|
+
import libPictViewFormSupportBase = require("./Pict-View-PSF-SupportBase.js");
|
|
8
|
+
declare namespace defaultViewConfiguration {
|
|
9
|
+
let ViewIdentifier: string;
|
|
10
|
+
let DefaultRenderable: string;
|
|
11
|
+
let DefaultDestinationAddress: string;
|
|
12
|
+
let RenderOnLoad: boolean;
|
|
13
|
+
let CSS: string;
|
|
14
|
+
let Templates: {
|
|
15
|
+
Hash: string;
|
|
16
|
+
Template: string;
|
|
17
|
+
}[];
|
|
18
|
+
let Renderables: {
|
|
19
|
+
RenderableHash: string;
|
|
20
|
+
TemplateHash: string;
|
|
21
|
+
}[];
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=Pict-View-PSF-SpecificSolve-Visualization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pict-View-PSF-SpecificSolve-Visualization.d.ts","sourceRoot":"","sources":["../../../../source/views/support/Pict-View-PSF-SpecificSolve-Visualization.js"],"names":[],"mappings":";AA+BA;CASC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export = PictFormsSupportBase;
|
|
2
2
|
declare class PictFormsSupportBase extends libPictView {
|
|
3
3
|
constructor(pFable: any, pOptions: any, pServiceHash: any);
|
|
4
|
+
DisplayShortName: string;
|
|
5
|
+
DisplayLongName: string;
|
|
4
6
|
getDynamicState(): {
|
|
5
7
|
Scope: any;
|
|
6
8
|
Description: string;
|
|
@@ -17,7 +19,8 @@ declare class PictFormsSupportBase extends libPictView {
|
|
|
17
19
|
Sections: any[];
|
|
18
20
|
};
|
|
19
21
|
getSectionSolvers(pSectionViewHash: any): any;
|
|
20
|
-
|
|
22
|
+
downloadJSONObjectAsFile(pAddress: any): void;
|
|
23
|
+
updateExpressionFromElement(pExpressionElementAddress: any, pExpressionScope: any, pSectionViewHash: any, pSectionOrdinal: any, pSolverIndex: any, pExpressionElementRepresentationAddress: any): void;
|
|
21
24
|
bootstrapContainer(): boolean;
|
|
22
25
|
}
|
|
23
26
|
declare namespace PictFormsSupportBase {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-View-PSF-SupportBase.d.ts","sourceRoot":"","sources":["../../../../source/views/support/Pict-View-PSF-SupportBase.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Pict-View-PSF-SupportBase.d.ts","sourceRoot":"","sources":["../../../../source/views/support/Pict-View-PSF-SupportBase.js"],"names":[],"mappings":";AAqBA;IAEC,2DAYC;IALA,yBAA2B;IAC3B,wBAAkC;IAMnC;;;;;;;;;;;;;;MAgMC;IAED,8CAKC;IAGD,8CA6BC;IAED,uMA8GC;IAED,8BAiIC;CACD"}
|