pict-section-form 1.0.160 → 1.0.161
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/source/providers/Pict-Provider-DynamicFormSolverBehaviors.js +50 -8
- package/source/providers/Pict-Provider-DynamicInput.js +10 -0
- package/source/providers/Pict-Provider-DynamicInputEvents.js +9 -3
- package/source/providers/Pict-Provider-DynamicSolver.js +8 -3
- package/source/views/Pict-View-DynamicForm.js +6 -4
- package/source/views/support/Pict-View-PSF-AppData-Visualization.js +1 -1
- package/source/views/support/Pict-View-PSF-DebugViewer.js +1 -1
- package/source/views/support/Pict-View-PSF-LifeCycle-Visualization.js +1 -1
- package/source/views/support/Pict-View-PSF-Solver-Visualization.js +1 -1
- package/source/views/support/Pict-View-PSF-SpecificSolve-Visualization.js +3 -3
- package/test/PictSectionForm-Basic_tests.js +66 -2
- package/types/source/providers/Pict-Provider-DynamicFormSolverBehaviors.d.ts +41 -0
- package/types/source/providers/Pict-Provider-DynamicFormSolverBehaviors.d.ts.map +1 -1
- package/types/source/providers/Pict-Provider-DynamicInput.d.ts +6 -0
- package/types/source/providers/Pict-Provider-DynamicInput.d.ts.map +1 -1
- package/types/source/providers/Pict-Provider-DynamicInputEvents.d.ts +4 -2
- package/types/source/providers/Pict-Provider-DynamicInputEvents.d.ts.map +1 -1
- package/types/source/providers/Pict-Provider-DynamicSolver.d.ts +30 -4
- package/types/source/providers/Pict-Provider-DynamicSolver.d.ts.map +1 -1
- package/types/source/providers/Pict-Provider-DynamicTabularData.d.ts +9 -0
- package/types/source/providers/Pict-Provider-DynamicTabularData.d.ts.map +1 -1
- package/types/source/views/Pict-View-DynamicForm.d.ts +15 -2
- package/types/source/views/Pict-View-DynamicForm.d.ts.map +1 -1
- package/types/source/views/Pict-View-Form-Metacontroller.d.ts +1 -1
- package/types/source/views/Pict-View-Form-Metacontroller.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -43,6 +43,8 @@ class PictDynamicFormsSolverBehaviors extends libPictProvider
|
|
|
43
43
|
this.cssHideGroupClass = 'pict-section-form-hidden-group';
|
|
44
44
|
this.cssSnippet = '.pict-section-form-hidden-section { display: none; } .pict-section-form-hidden-group { display: none; }';
|
|
45
45
|
|
|
46
|
+
this.solverOrdinalMap = {};
|
|
47
|
+
|
|
46
48
|
this.setCSSSnippets();
|
|
47
49
|
}
|
|
48
50
|
|
|
@@ -72,21 +74,61 @@ class PictDynamicFormsSolverBehaviors extends libPictProvider
|
|
|
72
74
|
injectBehaviors(pExpressionParser)
|
|
73
75
|
{
|
|
74
76
|
// Wire up the solver functions.
|
|
75
|
-
this.addSolverFunction(pExpressionParser, '
|
|
77
|
+
this.addSolverFunction(pExpressionParser, 'logvalues', 'fable.providers.DynamicFormSolverBehaviors.logValues', 'Logs a set of values to the console and returns the last one.');
|
|
78
|
+
|
|
79
|
+
this.addSolverFunction(pExpressionParser, 'setsectionvisibility', 'fable.providers.DynamicFormSolverBehaviors.setSectionVisibility', 'Sets a sections visiblity to true or fales based on the second parameter.');
|
|
80
|
+
this.addSolverFunction(pExpressionParser, 'setgroupvisibility', 'fable.providers.DynamicFormSolverBehaviors.setGroupVisibility', 'Sets a group visiblity to true or fales based on the third parameter.');
|
|
76
81
|
|
|
77
|
-
this.addSolverFunction(pExpressionParser, '
|
|
78
|
-
this.addSolverFunction(pExpressionParser, 'setGroupVisibility', 'fable.providers.DynamicFormSolverBehaviors.setGroupVisibility', 'Sets a group visiblity to true or fales based on the third parameter.');
|
|
82
|
+
this.addSolverFunction(pExpressionParser, 'generatehtmlhexcolor', 'fable.providers.DynamicFormSolverBehaviors.generateHTMLHexColor', 'Generates a HTML hex color from three integer parameters (red, green, blue).');
|
|
79
83
|
|
|
80
|
-
this.addSolverFunction(pExpressionParser, '
|
|
84
|
+
this.addSolverFunction(pExpressionParser, 'colorsectionbackground', 'fable.providers.DynamicFormSolverBehaviors.colorSectionBackground', 'Colors a section background with a HTML hex color (e.g. #FF0000 for red).');
|
|
85
|
+
this.addSolverFunction(pExpressionParser, 'colorgroupbackground', 'fable.providers.DynamicFormSolverBehaviors.colorGroupBackground', 'Colors a group background with a HTML hex color (e.g. #FF0000 for red).');
|
|
86
|
+
this.addSolverFunction(pExpressionParser, 'colorinputbackground', 'fable.providers.DynamicFormSolverBehaviors.colorInputBackground', 'Colors an input background with a HTML hex color (e.g. #FF0000 for red).');
|
|
87
|
+
this.addSolverFunction(pExpressionParser, 'colorinputbackgroundtabular', 'fable.providers.DynamicFormSolverBehaviors.colorInputBackgroundTabular', 'Colors a tabular input background with a HTML hex color (e.g. #FF0000 for red).');
|
|
81
88
|
|
|
82
|
-
this.addSolverFunction(pExpressionParser, '
|
|
83
|
-
this.addSolverFunction(pExpressionParser, '
|
|
84
|
-
this.addSolverFunction(pExpressionParser, '
|
|
85
|
-
this.addSolverFunction(pExpressionParser, 'colorInputBackgroundTabular', 'fable.providers.DynamicFormSolverBehaviors.colorInputBackgroundTabular', 'Colors a tabular input background with a HTML hex color (e.g. #FF0000 for red).');
|
|
89
|
+
this.addSolverFunction(pExpressionParser, 'setsolverordinalenabled', 'fable.providers.DynamicFormSolverBehaviors.setSolverOrdinalEnabled', 'Enables or disabled a solver ordinal to determine if it should run.');
|
|
90
|
+
this.addSolverFunction(pExpressionParser, 'enablesolverordinal', 'fable.providers.DynamicFormSolverBehaviors.enableSolverOrdinal', 'Enables a solver ordinal so that it can run.');
|
|
91
|
+
this.addSolverFunction(pExpressionParser, 'disablesolverordinall', 'fable.providers.DynamicFormSolverBehaviors.disableSolverOrdinal', 'Disables a solver ordinal so that it will not run.');
|
|
86
92
|
|
|
87
93
|
return false;
|
|
88
94
|
}
|
|
89
95
|
|
|
96
|
+
/**
|
|
97
|
+
* @param {number|string} pSolverOrdinal
|
|
98
|
+
* @param {boolean|string|number} pEnabled
|
|
99
|
+
*/
|
|
100
|
+
setSolverOrdinalEnabled(pSolverOrdinal, pEnabled)
|
|
101
|
+
{
|
|
102
|
+
this.solverOrdinalMap[`ORD-${pSolverOrdinal}`] = pEnabled == true || pEnabled == '1';
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @param {number|string} pSolverOrdinal
|
|
107
|
+
*/
|
|
108
|
+
enableSolverOrdinal(pSolverOrdinal)
|
|
109
|
+
{
|
|
110
|
+
this.solverOrdinalMap[`ORD-${pSolverOrdinal}`] = true;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @param {number|string} pSolverOrdinal
|
|
115
|
+
*/
|
|
116
|
+
disableSolverOrdinal(pSolverOrdinal)
|
|
117
|
+
{
|
|
118
|
+
this.solverOrdinalMap[`ORD-${pSolverOrdinal}`] = false;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @param {number|string} pSolveOrdinal
|
|
123
|
+
*
|
|
124
|
+
* @return {boolean}
|
|
125
|
+
*/
|
|
126
|
+
checkSolverOrdinalEnabled(pSolveOrdinal)
|
|
127
|
+
{
|
|
128
|
+
let tmpOrdinalKey = `ORD-${pSolveOrdinal}`;
|
|
129
|
+
return (!(tmpOrdinalKey in this.solverOrdinalMap)) || (this.solverOrdinalMap[tmpOrdinalKey] === true);
|
|
130
|
+
}
|
|
131
|
+
|
|
90
132
|
getSectionSelector(pSectionFormID)
|
|
91
133
|
{
|
|
92
134
|
return `#SECTION-${pSectionFormID}`;
|
|
@@ -29,6 +29,16 @@ class PictDynamicInput extends libPictProvider
|
|
|
29
29
|
super(pFable, tmpOptions, pServiceHash);
|
|
30
30
|
// A map of strings for each input template, mapping it to arrays of default providers.
|
|
31
31
|
this.templateProviderMap = {};
|
|
32
|
+
/** @type {Record<string, boolean>} */
|
|
33
|
+
this.ignoredEventHashes = {};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @param {string} pEventHash
|
|
38
|
+
*/
|
|
39
|
+
registerIgnoredEventHash(pEventHash)
|
|
40
|
+
{
|
|
41
|
+
this.ignoredEventHashes[pEventHash] = true;
|
|
32
42
|
}
|
|
33
43
|
|
|
34
44
|
/**
|
|
@@ -34,12 +34,17 @@ class PictDynamicInputEvents extends libPictProvider
|
|
|
34
34
|
*
|
|
35
35
|
* @param {Object} pView - The view object.
|
|
36
36
|
* @param {string} pInputHash - The input hash.
|
|
37
|
+
* @param {any} [pEvent] - The input event.
|
|
37
38
|
*/
|
|
38
|
-
inputDataRequest(pView, pInputHash)
|
|
39
|
+
inputDataRequest(pView, pInputHash, pEvent)
|
|
39
40
|
{
|
|
40
|
-
let tmpInput = pView.getInputFromHash(pInputHash);
|
|
41
41
|
if (pInputHash)
|
|
42
42
|
{
|
|
43
|
+
let tmpInput = pView.getInputFromHash(pInputHash);
|
|
44
|
+
if (pEvent && this.pict.providers.DynamicInput.ignoredEventHashes[pEvent])
|
|
45
|
+
{
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
43
48
|
let tmpHashAddress = pView.sectionManifest.resolveHashAddress(pInputHash);
|
|
44
49
|
try
|
|
45
50
|
{
|
|
@@ -132,8 +137,9 @@ class PictDynamicInputEvents extends libPictProvider
|
|
|
132
137
|
* @param {number} pGroupIndex - The index of the group.
|
|
133
138
|
* @param {number} pInputIndex - The index of the input.
|
|
134
139
|
* @param {number} pRowIndex - The index of the row.
|
|
140
|
+
* @param {any} [pEvent] - The input event.
|
|
135
141
|
*/
|
|
136
|
-
inputDataRequestTabular(pView, pGroupIndex, pInputIndex, pRowIndex)
|
|
142
|
+
inputDataRequestTabular(pView, pGroupIndex, pInputIndex, pRowIndex, pEvent)
|
|
137
143
|
{
|
|
138
144
|
let tmpInput = pView.getTabularRecordInput(pGroupIndex, pInputIndex);
|
|
139
145
|
if (pGroupIndex && pInputIndex && pRowIndex && tmpInput)
|
|
@@ -60,6 +60,7 @@ class PictDynamicSolver extends libPictProvider
|
|
|
60
60
|
// Initialize the solver service if it isn't up
|
|
61
61
|
this.fable.instantiateServiceProviderIfNotExists('ExpressionParser');
|
|
62
62
|
|
|
63
|
+
|
|
63
64
|
this.pict.addProviderSingleton('DynamicFormSolverBehaviors', libDynamicFormSolverBehaviors.default_configuration, libDynamicFormSolverBehaviors);
|
|
64
65
|
this.pict.providers.DynamicFormSolverBehaviors.injectBehaviors(this.fable.ExpressionParser);
|
|
65
66
|
this.pict.addProviderSingleton('DynamicMetaLists', libDynamicMetaLists.default_configuration, libDynamicMetaLists);
|
|
@@ -509,9 +510,13 @@ class PictDynamicSolver extends libPictProvider
|
|
|
509
510
|
this.log.trace(`DynamicSolver [${this.UUID}]::[${this.Hash}] Solving ordinal ${tmpOrdinalKeys[i]}`);
|
|
510
511
|
}
|
|
511
512
|
let tmpOrdinalContainer = tmpOrdinalsToSolve[tmpOrdinalKeys[i]];
|
|
512
|
-
this.
|
|
513
|
-
|
|
514
|
-
|
|
513
|
+
let tmpExecuteOrdinal = this.pict.providers.DynamicFormSolverBehaviors.checkSolverOrdinalEnabled(tmpOrdinalKeys[i]);
|
|
514
|
+
if (tmpExecuteOrdinal)
|
|
515
|
+
{
|
|
516
|
+
this.executeGroupSolvers(tmpOrdinalContainer.GroupSolvers, Number(tmpOrdinalKeys[i]), tmpSolveOutcome.SolverResultsMap);
|
|
517
|
+
this.executeSectionSolvers(tmpOrdinalContainer.SectionSolvers, Number(tmpOrdinalKeys[i]), tmpSolveOutcome.SolverResultsMap);
|
|
518
|
+
this.executeViewSolvers(tmpOrdinalContainer.ViewSolvers, Number(tmpOrdinalKeys[i]), tmpSolveOutcome.SolverResultsMap);
|
|
519
|
+
}
|
|
515
520
|
}
|
|
516
521
|
|
|
517
522
|
// Now regenerate the metalists .. after the solve has happened.
|
|
@@ -1056,11 +1056,12 @@ class PictViewDynamicForm extends libPictViewClass
|
|
|
1056
1056
|
* Triggers a DataRequest event for an Input Provider
|
|
1057
1057
|
*
|
|
1058
1058
|
* @param {String} pInputHash - The input hash.
|
|
1059
|
+
* @param {any} [pEvent] - The input event.
|
|
1059
1060
|
* @returns {boolean} Whether or not the data request was successful.
|
|
1060
1061
|
*/
|
|
1061
|
-
inputDataRequest(pInputHash)
|
|
1062
|
+
inputDataRequest(pInputHash, pEvent)
|
|
1062
1063
|
{
|
|
1063
|
-
return this.pict.providers.DynamicInputEvents.inputDataRequest(this, pInputHash);
|
|
1064
|
+
return this.pict.providers.DynamicInputEvents.inputDataRequest(this, pInputHash, pEvent);
|
|
1064
1065
|
}
|
|
1065
1066
|
|
|
1066
1067
|
/**
|
|
@@ -1119,11 +1120,12 @@ class PictViewDynamicForm extends libPictViewClass
|
|
|
1119
1120
|
* @param {number} pGroupIndex - The index of the group.
|
|
1120
1121
|
* @param {number} pInputIndex - The index of the input.
|
|
1121
1122
|
* @param {number} pRowIndex - The index of the row.
|
|
1123
|
+
* @param {any} [pEvent] - The input event.
|
|
1122
1124
|
* @returns {Promise<any>} A promise that resolves with the input data.
|
|
1123
1125
|
*/
|
|
1124
|
-
inputDataRequestTabular(pGroupIndex, pInputIndex, pRowIndex)
|
|
1126
|
+
inputDataRequestTabular(pGroupIndex, pInputIndex, pRowIndex, pEvent)
|
|
1125
1127
|
{
|
|
1126
|
-
return this.pict.providers.DynamicInputEvents.inputDataRequestTabular(this, pGroupIndex, pInputIndex, pRowIndex);
|
|
1128
|
+
return this.pict.providers.DynamicInputEvents.inputDataRequestTabular(this, pGroupIndex, pInputIndex, pRowIndex, pEvent);
|
|
1127
1129
|
}
|
|
1128
1130
|
|
|
1129
1131
|
/**
|
|
@@ -16,7 +16,7 @@ const defaultViewConfiguration = (
|
|
|
16
16
|
Hash: "Pict-Form-SpecificSolve-Content",
|
|
17
17
|
Template: /*html*/`
|
|
18
18
|
<div id="Pict-Form-SpecificSolve-Content">
|
|
19
|
-
<h2 class="PSFSS-Global-Header">Pict Specific Solve Visualization</h2>
|
|
19
|
+
<h2 class="PSFSS-Global-Header">Pict Specific Solve Timing Visualization</h2>
|
|
20
20
|
</div>
|
|
21
21
|
`
|
|
22
22
|
}
|
|
@@ -35,8 +35,8 @@ class PictFormsSpecificSolve extends libPictViewFormSupportBase
|
|
|
35
35
|
{
|
|
36
36
|
super(pFable, pOptions, pServiceHash);
|
|
37
37
|
|
|
38
|
-
this.DisplayShortName = '
|
|
39
|
-
this.DisplayLongName = '
|
|
38
|
+
this.DisplayShortName = 'STV';
|
|
39
|
+
this.DisplayLongName = 'SpecificSolveTimingVisualization';
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
Unit tests for PictSectionForm Basic
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
// This is temporary, but enables unit tests
|
|
@@ -938,7 +938,71 @@ suite
|
|
|
938
938
|
}
|
|
939
939
|
_Pict.log.info('Loading the Application and associated views.');
|
|
940
940
|
});
|
|
941
|
-
|
|
941
|
+
|
|
942
|
+
// This needs to be explicitly called now that we turned off auto solve
|
|
943
|
+
_Pict.PictApplication.solve();
|
|
944
|
+
}
|
|
945
|
+
);
|
|
946
|
+
test(
|
|
947
|
+
'Disable Solve Ordinals',
|
|
948
|
+
(fDone) =>
|
|
949
|
+
{
|
|
950
|
+
//NOTE: code is a clone of Pict.safeLoadPictApplication
|
|
951
|
+
let _Pict;
|
|
952
|
+
const tmpApplicationClass = OrderedSolverApplication;
|
|
953
|
+
OrderedSolverApplication.default_configuration.pict_configuration.DefaultFormManifest.Sections[0].Solvers.splice(1, 0, { Ordinal: 15, Expression: 'setSolverOrdinalEnabled(40, 0)' });
|
|
954
|
+
if (tmpApplicationClass && ('default_configuration' in tmpApplicationClass) && ('pict_configuration' in tmpApplicationClass.default_configuration))
|
|
955
|
+
{
|
|
956
|
+
_Pict = new libPict(tmpApplicationClass.default_configuration.pict_configuration);
|
|
957
|
+
}
|
|
958
|
+
else
|
|
959
|
+
{
|
|
960
|
+
_Pict = new libPict();
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
//_Pict.LogNoisiness = 0;
|
|
964
|
+
|
|
965
|
+
let tmpApplicationHash = 'DefaultApplication';
|
|
966
|
+
let tmpDefaultConfiguration = {};
|
|
967
|
+
|
|
968
|
+
if ('default_configuration' in tmpApplicationClass)
|
|
969
|
+
{
|
|
970
|
+
tmpDefaultConfiguration = tmpApplicationClass.default_configuration;
|
|
971
|
+
|
|
972
|
+
if ('Hash' in tmpApplicationClass.default_configuration)
|
|
973
|
+
{
|
|
974
|
+
tmpDefaultConfiguration = tmpApplicationClass.default_configuration;
|
|
975
|
+
tmpApplicationHash = tmpApplicationClass.default_configuration.Hash;
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
_Pict.log.info(`Loading the pict application [${tmpApplicationHash}] and associated views.`);
|
|
979
|
+
|
|
980
|
+
_Pict.addApplication(tmpApplicationHash, tmpDefaultConfiguration, tmpApplicationClass);
|
|
981
|
+
|
|
982
|
+
_Pict.PictApplication.testDone = () =>
|
|
983
|
+
{
|
|
984
|
+
try
|
|
985
|
+
{
|
|
986
|
+
Expect(_Pict.AppData.C).to.equal('8', 'C should equal 8 (A + B)');
|
|
987
|
+
Expect(_Pict.AppData.D).to.not.exist;
|
|
988
|
+
}
|
|
989
|
+
catch (pError)
|
|
990
|
+
{
|
|
991
|
+
return fDone(pError);
|
|
992
|
+
}
|
|
993
|
+
fDone();
|
|
994
|
+
};
|
|
995
|
+
|
|
996
|
+
_Pict.PictApplication.initializeAsync(
|
|
997
|
+
function (pError)
|
|
998
|
+
{
|
|
999
|
+
if (pError)
|
|
1000
|
+
{
|
|
1001
|
+
_Pict.log.info('Error initializing the pict application: '+pError)
|
|
1002
|
+
}
|
|
1003
|
+
_Pict.log.info('Loading the Application and associated views.');
|
|
1004
|
+
});
|
|
1005
|
+
|
|
942
1006
|
// This needs to be explicitly called now that we turned off auto solve
|
|
943
1007
|
_Pict.PictApplication.solve();
|
|
944
1008
|
}
|
|
@@ -23,10 +23,30 @@ declare class PictDynamicFormsSolverBehaviors extends libPictProvider {
|
|
|
23
23
|
cssHideSectionClass: string;
|
|
24
24
|
cssHideGroupClass: string;
|
|
25
25
|
cssSnippet: string;
|
|
26
|
+
solverOrdinalMap: {};
|
|
26
27
|
setCSSSnippets(pCSSHideClass: any, pCSSSnippet: any): void;
|
|
27
28
|
cssHideClass: any;
|
|
28
29
|
addSolverFunction(pExpressionParser: any, pFunctionName: any, pFunctionAddress: any, pFunctionComment: any): void;
|
|
29
30
|
injectBehaviors(pExpressionParser: any): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* @param {number|string} pSolverOrdinal
|
|
33
|
+
* @param {boolean|string|number} pEnabled
|
|
34
|
+
*/
|
|
35
|
+
setSolverOrdinalEnabled(pSolverOrdinal: number | string, pEnabled: boolean | string | number): void;
|
|
36
|
+
/**
|
|
37
|
+
* @param {number|string} pSolverOrdinal
|
|
38
|
+
*/
|
|
39
|
+
enableSolverOrdinal(pSolverOrdinal: number | string): void;
|
|
40
|
+
/**
|
|
41
|
+
* @param {number|string} pSolverOrdinal
|
|
42
|
+
*/
|
|
43
|
+
disableSolverOrdinal(pSolverOrdinal: number | string): void;
|
|
44
|
+
/**
|
|
45
|
+
* @param {number|string} pSolveOrdinal
|
|
46
|
+
*
|
|
47
|
+
* @return {boolean}
|
|
48
|
+
*/
|
|
49
|
+
checkSolverOrdinalEnabled(pSolveOrdinal: number | string): boolean;
|
|
30
50
|
getSectionSelector(pSectionFormID: any): string;
|
|
31
51
|
setSectionVisibility(pSectionHash: any, pVisible: any): boolean;
|
|
32
52
|
hideSection(pSectionHash: any): boolean;
|
|
@@ -48,6 +68,27 @@ declare class PictDynamicFormsSolverBehaviors extends libPictProvider {
|
|
|
48
68
|
* @returns {boolean} - Returns true if the color was applied successfully or if the change was skipped for pApplyChange equal to "0", false otherwise.
|
|
49
69
|
*/
|
|
50
70
|
colorInputBackground(pSectionHash: string, pInputHash: string, pColor: string, pApplyChange: string, pCSSSelector?: string): boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Colors an input background or its container with a HTML hex color (e.g. #FF0000 for red).
|
|
73
|
+
* @param {string} pSectionHash - The hash of the section containing the input.
|
|
74
|
+
* @param {string} pGroupHash - The hash of the group containing the input.
|
|
75
|
+
* @param {number} pRowIndex - The index of the row.
|
|
76
|
+
* @param {string} pInputHash - The hash of the input to color.
|
|
77
|
+
* @param {string} pColor - The HTML hex color to apply (e.g. #FF0000 for red).
|
|
78
|
+
* @param {string} pApplyChange - If "0", the change will not be applied.
|
|
79
|
+
* @param {string} [pCSSSelector] - Optional. If provided, the color will be applied to the closest element matching this selector instead of the input itself.
|
|
80
|
+
* @param {string} [pElementIDPrefix] - Optional. The prefix for the tabular element ID. Default is 'TABULAR-DATA-'.
|
|
81
|
+
* @returns {boolean} - Returns true if the color was applied successfully or if the change was skipped for pApplyChange equal to "0", false otherwise.
|
|
82
|
+
*/
|
|
83
|
+
colorInputBackgroundTabular(pSectionHash: string, pGroupHash: string, pInputHash: string, pRowIndex: number, pColor: string, pApplyChange: string, pCSSSelector?: string, pElementIDPrefix?: string): boolean;
|
|
84
|
+
/**
|
|
85
|
+
* @param {Array<HTMLElement>} pElementSet - The element to color.
|
|
86
|
+
* @param {string} pColor - The HTML hex color to apply (e.g. #FF0000 for red).
|
|
87
|
+
* @param {string} [pCSSSelector] - Optional. If provided, the color will be applied to the closest element matching this selector instead of the input itself.
|
|
88
|
+
*
|
|
89
|
+
* @returns {boolean}
|
|
90
|
+
*/
|
|
91
|
+
colorElementBackground(pElementSet: Array<HTMLElement>, pColor: string, pCSSSelector?: string): boolean;
|
|
51
92
|
logValues(...args: any[]): any;
|
|
52
93
|
}
|
|
53
94
|
declare namespace PictDynamicFormsSolverBehaviors {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Provider-DynamicFormSolverBehaviors.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicFormSolverBehaviors.js"],"names":[],"mappings":";AAaA;;;;;GAKG;AACH;IAEC;;;;;OAKG;IACH,oBAJW,MAAM,YACN,MAAM,gBACN,MAAM,
|
|
1
|
+
{"version":3,"file":"Pict-Provider-DynamicFormSolverBehaviors.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicFormSolverBehaviors.js"],"names":[],"mappings":";AAaA;;;;;GAKG;AACH;IAEC;;;;;OAKG;IACH,oBAJW,MAAM,YACN,MAAM,gBACN,MAAM,EAuBhB;IAfA,kBAAkB;IAClB,SADW,GAAG,CACF;IACZ,qFAAqF;IACrF,MADW,OAAO,MAAM,CAAC,GAAG;QAAE,WAAW,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,UAAU,CAAC,CAAA;KAAE,CACxE;IAIT,qBAAqB;IACrB,qBADW,MAAM,CAC4C;IAC7D,0BAAyD;IACzD,mBAA2H;IAE3H,qBAA0B;IAK3B,2DAMC;IAJA,kBAAsD;IAMvD,kHAaC;IAED,iDAoBC;IAED;;;OAGG;IACH,wCAHW,MAAM,GAAC,MAAM,YACb,OAAO,GAAC,MAAM,GAAC,MAAM,QAK/B;IAED;;OAEG;IACH,oCAFW,MAAM,GAAC,MAAM,QAKvB;IAED;;OAEG;IACH,qCAFW,MAAM,GAAC,MAAM,QAKvB;IAED;;;;OAIG;IACH,yCAJW,MAAM,GAAC,MAAM,GAEZ,OAAO,CAMlB;IAED,gDAGC;IAED,gEAUC;IAGD,wCAiBC;IAED,wCAiBC;IAED,+DAGC;IAED,+EAUC;IAED,uDAiBC;IAED,uDAiBC;IAED,iEAqBC;IAED,mFA2BC;IAED,kGA0BC;IAED;;;;;;;;OAQG;IACH,mCAPW,MAAM,cACN,MAAM,UACN,MAAM,gBACN,MAAM,iBACN,MAAM,GACJ,OAAO,CAmCnB;IAED;;;;;;;;;;;OAWG;IACH,0CAVW,MAAM,cACN,MAAM,cAEN,MAAM,aADN,MAAM,UAEN,MAAM,gBACN,MAAM,iBACN,MAAM,qBACN,MAAM,GACJ,OAAO,CA0CnB;IAED;;;;;;OAMG;IACH,oCANW,KAAK,CAAC,WAAW,CAAC,UAClB,MAAM,iBACN,MAAM,GAEJ,OAAO,CA2BnB;IAED,+BAWC;CACD;;;;;AA/cD,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAQ3B"}
|
|
@@ -12,6 +12,12 @@ declare class PictDynamicInput extends libPictProvider {
|
|
|
12
12
|
*/
|
|
13
13
|
constructor(pFable: import("pict"), pOptions?: any, pServiceHash?: string);
|
|
14
14
|
templateProviderMap: {};
|
|
15
|
+
/** @type {Record<string, boolean>} */
|
|
16
|
+
ignoredEventHashes: Record<string, boolean>;
|
|
17
|
+
/**
|
|
18
|
+
* @param {string} pEventHash
|
|
19
|
+
*/
|
|
20
|
+
registerIgnoredEventHash(pEventHash: string): void;
|
|
15
21
|
/**
|
|
16
22
|
* Retrieves the template hash for the input based on the provided view and input.
|
|
17
23
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Provider-DynamicInput.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicInput.js"],"names":[],"mappings":";AAaA;;GAEG;AACH;IAEC;;;;;;OAMG;IACH,oBAJW,OAAO,MAAM,CAAC,aACd,GAAG,iBACH,MAAM,
|
|
1
|
+
{"version":3,"file":"Pict-Provider-DynamicInput.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicInput.js"],"names":[],"mappings":";AAaA;;GAEG;AACH;IAEC;;;;;;OAMG;IACH,oBAJW,OAAO,MAAM,CAAC,aACd,GAAG,iBACH,MAAM,EAUhB;IAHA,wBAA6B;IAC7B,sCAAsC;IACtC,oBADW,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CACN;IAG7B;;OAEG;IACH,qCAFW,MAAM,QAKhB;IAED;;;;;;OAMG;IACH,4BAJW,OAAO,gCAAgC,CAAC,UACxC,GAAG,GACD,MAAM,GAAC,OAAO,CAkD1B;IAED;;;;;OAKG;IACH,2CAHW,MAAM,aACN,GAAG,QAYb;IAED;;;;;;OAMG;IACH,gCAJW,OAAO,gCAAgC,CAAC,UACxC,MAAM,SAWhB;CACD;;;;;AApID,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAS3B"}
|
|
@@ -16,8 +16,9 @@ declare class PictDynamicInputEvents extends libPictProvider {
|
|
|
16
16
|
*
|
|
17
17
|
* @param {Object} pView - The view object.
|
|
18
18
|
* @param {string} pInputHash - The input hash.
|
|
19
|
+
* @param {any} [pEvent] - The input event.
|
|
19
20
|
*/
|
|
20
|
-
inputDataRequest(pView: any, pInputHash: string): void;
|
|
21
|
+
inputDataRequest(pView: any, pInputHash: string, pEvent?: any): void;
|
|
21
22
|
/**
|
|
22
23
|
* Handles the input event for a dynamic form.
|
|
23
24
|
*
|
|
@@ -34,8 +35,9 @@ declare class PictDynamicInputEvents extends libPictProvider {
|
|
|
34
35
|
* @param {number} pGroupIndex - The index of the group.
|
|
35
36
|
* @param {number} pInputIndex - The index of the input.
|
|
36
37
|
* @param {number} pRowIndex - The index of the row.
|
|
38
|
+
* @param {any} [pEvent] - The input event.
|
|
37
39
|
*/
|
|
38
|
-
inputDataRequestTabular(pView: import("../views/Pict-View-DynamicForm"), pGroupIndex: number, pInputIndex: number, pRowIndex: number): void;
|
|
40
|
+
inputDataRequestTabular(pView: import("../views/Pict-View-DynamicForm"), pGroupIndex: number, pInputIndex: number, pRowIndex: number, pEvent?: any): void;
|
|
39
41
|
/**
|
|
40
42
|
* Handles the tabular input event.
|
|
41
43
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Provider-DynamicInputEvents.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicInputEvents.js"],"names":[],"mappings":";AAaA;;GAEG;AACH;IAEC;;;;;;OAMG;IACH,oBAJW,MAAM,YACN,MAAM,gBACN,MAAM,EAMhB;IAED
|
|
1
|
+
{"version":3,"file":"Pict-Provider-DynamicInputEvents.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicInputEvents.js"],"names":[],"mappings":";AAaA;;GAEG;AACH;IAEC;;;;;;OAMG;IACH,oBAJW,MAAM,YACN,MAAM,gBACN,MAAM,EAMhB;IAED;;;;;;OAMG;IACH,yCAHW,MAAM,WACN,GAAG,QAsCb;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,QAyCb;IAED;;;;;;;;;OASG;IACH,2CANW,MAAM,eACN,MAAM,aACN,MAAM,UACN,MAAM,qBACN,MAAM,QA4ChB;CACD;;;;;AAzOD,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAS3B"}
|
|
@@ -18,7 +18,29 @@ declare class PictDynamicSolver extends libPictProvider {
|
|
|
18
18
|
instantiateServiceProviderIfNotExists: (hash: string) => any;
|
|
19
19
|
ExpressionParser: any;
|
|
20
20
|
};
|
|
21
|
-
|
|
21
|
+
logSolveOutcome(pSolveOutcome: any): void;
|
|
22
|
+
/**
|
|
23
|
+
* Prepares the solver results map by ensuring it has the necessary structure.
|
|
24
|
+
*
|
|
25
|
+
* @param {Object} pSolverResultsMap - The solver results map to prepare.
|
|
26
|
+
* @returns {Object} - The prepared solver results map.
|
|
27
|
+
*/
|
|
28
|
+
prepareSolverResultsMap(pSolverResultsMap: any): any;
|
|
29
|
+
/**
|
|
30
|
+
* Backfills solver dependencies into the solve outcome.
|
|
31
|
+
*
|
|
32
|
+
* @param {Object} pSolveOutcome - The solve outcome object.
|
|
33
|
+
* @returns {Object} - The updated solve outcome with backfilled dependencies.
|
|
34
|
+
*/
|
|
35
|
+
backfillSolverDependencies(pSolveOutcome: any): any;
|
|
36
|
+
/**
|
|
37
|
+
* Runs a manual solver expression against the dynamic view marshal destination or the application data.
|
|
38
|
+
*
|
|
39
|
+
* @param {string} pSolverExpression - The solver expression to run.
|
|
40
|
+
* @param {boolean} [pSilent=false] - Whether to suppress debug logging output.
|
|
41
|
+
* @returns {any} - The result of the solver expression.
|
|
42
|
+
*/
|
|
43
|
+
runSolver(pSolverExpression: string, pSilent?: boolean): any;
|
|
22
44
|
/**
|
|
23
45
|
* Checks the solver and returns the solver object if it passes the checks.
|
|
24
46
|
*
|
|
@@ -37,22 +59,25 @@ declare class PictDynamicSolver extends libPictProvider {
|
|
|
37
59
|
*
|
|
38
60
|
* @param {array} pGroupSolverArray - An array of Solvers from the groups to solve.
|
|
39
61
|
* @param {number} pOrdinal - The ordinal value to filter to. Optional.
|
|
62
|
+
* @param {Object} pSolverResultsMap - The solver results map.
|
|
40
63
|
*/
|
|
41
|
-
executeGroupSolvers(pGroupSolverArray: any[], pOrdinal: number): void;
|
|
64
|
+
executeGroupSolvers(pGroupSolverArray: any[], pOrdinal: number, pSolverResultsMap: any): void;
|
|
42
65
|
/**
|
|
43
66
|
* Executes the section solvers at a given ordinal (or all if no ordinal is passed).
|
|
44
67
|
*
|
|
45
68
|
* @param {Array} pViewSectionSolverArray - The array of view section solvers.
|
|
46
69
|
* @param {number} pOrdinal - The ordinal value.
|
|
70
|
+
* @param {Object} pSolverResultsMap - The solver results map.
|
|
47
71
|
*/
|
|
48
|
-
executeSectionSolvers(pViewSectionSolverArray: any[], pOrdinal: number): void;
|
|
72
|
+
executeSectionSolvers(pViewSectionSolverArray: any[], pOrdinal: number, pSolverResultsMap: any): void;
|
|
49
73
|
/**
|
|
50
74
|
* Executes the view solvers for the given array of view hashes.
|
|
51
75
|
*
|
|
52
76
|
* @param {Array} pViewSolverArray - The array of view solvers to execute.
|
|
53
77
|
* @param {number} pOrdinal - The ordinal value.
|
|
78
|
+
* @param {Object} pSolverResultsMap - The solver results map.
|
|
54
79
|
*/
|
|
55
|
-
executeViewSolvers(pViewSolverArray: any[], pOrdinal: number): void;
|
|
80
|
+
executeViewSolvers(pViewSolverArray: any[], pOrdinal: number, pSolverResultsMap: any): void;
|
|
56
81
|
/**
|
|
57
82
|
* Checks if the given ordinal exists in the provided ordinal set.
|
|
58
83
|
*
|
|
@@ -87,6 +112,7 @@ declare class PictDynamicSolver extends libPictProvider {
|
|
|
87
112
|
*/
|
|
88
113
|
solveViews(pViewHashes?: any[] | string[]): void;
|
|
89
114
|
lastSolveOutcome: {
|
|
115
|
+
SolverResultsMap: {};
|
|
90
116
|
StartTimeStamp: number;
|
|
91
117
|
ViewHashes: any[];
|
|
92
118
|
SolveOrdinals: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Provider-DynamicSolver.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicSolver.js"],"names":[],"mappings":";AA+BA;;GAEG;AACH;IAEC;;;;;;OAMG;IACH,oBAJW,MAAM,YACN,MAAM,gBACN,MAAM,
|
|
1
|
+
{"version":3,"file":"Pict-Provider-DynamicSolver.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicSolver.js"],"names":[],"mappings":";AA+BA;;GAEG;AACH;IAEC;;;;;;OAMG;IACH,oBAJW,MAAM,YACN,MAAM,gBACN,MAAM,EAsChB;IA/BA,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;IA8BX,0CAsBC;IAED;;;;;MAKE;IACF,qDAgBC;IAED;;;;;OAKG;IACH,oDA+CC;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;;;;;;;;OAQG;IACH,wDAHW,MAAM,gCA4DhB;IAED;;;;;;OAMG;IACH,gEAHW,MAAM,gCAkChB;IAED;;;;;;OAMG;IACH,sDAHW,MAAM,gCA2BhB;IAED;;;;;;;;OAQG;IACH,gCAJW,MAAM,yBAWhB;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,yBAFW,QAAM,MAAM,EAAE,QA6FxB;IADA;;;;;;MAAuC;CAExC;;;;;AA7fD,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAS3B"}
|
|
@@ -36,6 +36,15 @@ declare class DynamicTabularData extends libPictProvider {
|
|
|
36
36
|
* @returns {ElementDescriptor|boolean} The tabular record input or false if the group is invalid.
|
|
37
37
|
*/
|
|
38
38
|
getTabularRecordInput(pView: any, pGroupIndex: number, pInputIndex: number): ElementDescriptor | boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Retrieves the tabular record input from the specified view, group, and input indexes.
|
|
41
|
+
*
|
|
42
|
+
* @param {Object} pView - The view object.
|
|
43
|
+
* @param {number} pGroupHash - The index of the group.
|
|
44
|
+
* @param {number} pInputHash - The index of the input.
|
|
45
|
+
* @returns {ElementDescriptor|boolean} The tabular record input or false if the group is invalid.
|
|
46
|
+
*/
|
|
47
|
+
getTabularRecordInputByHash(pView: any, pGroupHash: number, pInputHash: number): ElementDescriptor | boolean;
|
|
39
48
|
/**
|
|
40
49
|
* Retrieves tabular record data based on the provided parameters.
|
|
41
50
|
*
|
|
@@ -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,QA0DhB;IAGD;;;;;OAKG;IACH,4DAFW,MAAM,QA2BhB;IAED;;;;;;;;OAQG;IACH,iDALW,MAAM,aACN,MAAM,GAAC,MAAM,gBACb,MAAM,GACJ,OAAO,CA4BnB;IAED;;;;;;;OAOG;IACH,iDAJW,MAAM,aACN,MAAM,GAAC,MAAM,GACX,OAAO,CA2BnB;IAED;;;;;;;OAOG;IACH,+CAJW,MAAM,aACN,MAAM,GAAC,MAAM,GACX,OAAO,CAgCnB;IAGD;;;;;;;OAOG;IACH,+CAJW,MAAM,aACN,MAAM,GAAC,MAAM,GACX,OAAO,CA6DnB;CACD;;;;;
|
|
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,oDAJW,MAAM,cACN,MAAM,GACJ,iBAAiB,GAAC,OAAO,CA+BrC;IAED;;;;;;;OAOG;IACH,8CAJW,MAAM,kBACN,MAAM,GACJ,OAAO,MAAO,CAkD1B;IAED;;;;;OAKG;IACH,+CAFW,MAAM,QA0DhB;IAGD;;;;;OAKG;IACH,4DAFW,MAAM,QA2BhB;IAED;;;;;;;;OAQG;IACH,iDALW,MAAM,aACN,MAAM,GAAC,MAAM,gBACb,MAAM,GACJ,OAAO,CA4BnB;IAED;;;;;;;OAOG;IACH,iDAJW,MAAM,aACN,MAAM,GAAC,MAAM,GACX,OAAO,CA2BnB;IAED;;;;;;;OAOG;IACH,+CAJW,MAAM,aACN,MAAM,GAAC,MAAM,GACX,OAAO,CAgCnB;IAGD;;;;;;;OAOG;IACH,+CAJW,MAAM,aACN,MAAM,GAAC,MAAM,GACX,OAAO,CA6DnB;CACD;;;;;AAhdD,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAS3B;;;;;UAIW,MAAM"}
|
|
@@ -227,9 +227,10 @@ declare class PictViewDynamicForm extends libPictViewClass {
|
|
|
227
227
|
* Triggers a DataRequest event for an Input Provider
|
|
228
228
|
*
|
|
229
229
|
* @param {String} pInputHash - The input hash.
|
|
230
|
+
* @param {any} [pEvent] - The input event.
|
|
230
231
|
* @returns {boolean} Whether or not the data request was successful.
|
|
231
232
|
*/
|
|
232
|
-
inputDataRequest(pInputHash: string): boolean;
|
|
233
|
+
inputDataRequest(pInputHash: string, pEvent?: any): boolean;
|
|
233
234
|
/**
|
|
234
235
|
* Handles the generic Input Event for an Input Provider
|
|
235
236
|
*
|
|
@@ -259,9 +260,10 @@ declare class PictViewDynamicForm extends libPictViewClass {
|
|
|
259
260
|
* @param {number} pGroupIndex - The index of the group.
|
|
260
261
|
* @param {number} pInputIndex - The index of the input.
|
|
261
262
|
* @param {number} pRowIndex - The index of the row.
|
|
263
|
+
* @param {any} [pEvent] - The input event.
|
|
262
264
|
* @returns {Promise<any>} A promise that resolves with the input data.
|
|
263
265
|
*/
|
|
264
|
-
inputDataRequestTabular(pGroupIndex: number, pInputIndex: number, pRowIndex: number): Promise<any>;
|
|
266
|
+
inputDataRequestTabular(pGroupIndex: number, pInputIndex: number, pRowIndex: number, pEvent?: any): Promise<any>;
|
|
265
267
|
/**
|
|
266
268
|
* Handles the generic Tabular Input Event for an Input Provider
|
|
267
269
|
*
|
|
@@ -321,6 +323,17 @@ declare class PictViewDynamicForm extends libPictViewClass {
|
|
|
321
323
|
* @returns
|
|
322
324
|
*/
|
|
323
325
|
getTabularRecordInput(pGroupIndex: number, pInputIndex: number): any;
|
|
326
|
+
/**
|
|
327
|
+
* Get the input object for a specific tabular record group and index.
|
|
328
|
+
*
|
|
329
|
+
* Input objects are not distinct among rows.
|
|
330
|
+
*
|
|
331
|
+
* @param {string} pGroupHash - The hash of the group.
|
|
332
|
+
* @param {string} pInputHash - The hash of the input.
|
|
333
|
+
*
|
|
334
|
+
* @return {Object} The input object.
|
|
335
|
+
*/
|
|
336
|
+
getTabularRecordInputByHash(pGroupHash: string, pInputHash: string): any;
|
|
324
337
|
/**
|
|
325
338
|
* Get the tabular record object for a particular row in a group.
|
|
326
339
|
*
|
|
@@ -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,CAef;IA4ED;;;;;;;;;;;;;;;OAeG;IACH,0CAHW,MAAM,qBACN,MAAM,QA+ChB;IAED;;;;;;;OAOG;IACH,yCALW,MAAM,eACN,MAAM,cACN,MAAM,qBACN,MAAM,QAqHhB;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;;;OAGG;IACH,mBAOC;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,yCAoBC;IAED;;;;;OAKG;IACH,6BAHW,MAAM,OAMhB;IAED
|
|
1
|
+
{"version":3,"file":"Pict-View-DynamicForm.d.ts","sourceRoot":"","sources":["../../../source/views/Pict-View-DynamicForm.js"],"names":[],"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,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;;;;;AAp8CD,kCAAkC;AAClC,qCADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAC6D"}
|
|
@@ -51,7 +51,7 @@ declare class PictFormMetacontroller extends libPictViewClass {
|
|
|
51
51
|
* @returns {any} The result of the solve operation.
|
|
52
52
|
*/
|
|
53
53
|
onSolve(): any;
|
|
54
|
-
runSolver(pExpression: any): void;
|
|
54
|
+
runSolver(pExpression: any, pSilent: any): void;
|
|
55
55
|
onBeforeFilterViews(pViewFilterState: any): any;
|
|
56
56
|
onAfterFilterViews(pViewFilterState: any): any;
|
|
57
57
|
/**
|
|
@@ -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,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,
|
|
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,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,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,CAwBtD;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,CAqO9B;IAED;;;;OAIG;IACH,uCAJW,KAAK,CAAC,MAAM,CAAC,sBACb,MAAM,UACN,MAAM,QAuBhB;IAED;;;OAGG;IACH,6CAHW,MAAM,C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