pict-section-form 1.0.112 → 1.0.113
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/simple_form/Simple-Form_Default_Manifest.json +13 -1
- package/package.json +1 -1
- package/source/providers/Pict-Provider-DynamicFormSolverBehaviors.js +206 -0
- package/source/providers/Pict-Provider-DynamicSolver.js +18 -52
- package/source/providers/inputs/Pict-Provider-Input-TabGroupSelector.js +1 -0
- package/source/services/ManifestFactory.js +1 -1
- package/source/views/Pict-View-Form-Metacontroller.js +17 -0
- package/types/source/providers/Pict-Provider-DynamicFormSolverBehaviors.d.ts +46 -0
- package/types/source/providers/Pict-Provider-DynamicFormSolverBehaviors.d.ts.map +1 -0
- package/types/source/providers/Pict-Provider-DynamicSolver.d.ts.map +1 -1
- package/types/source/providers/inputs/Pict-Provider-Input-TabGroupSelector.d.ts.map +1 -1
- package/types/source/views/Pict-View-Form-Metacontroller.d.ts +1 -0
- package/types/source/views/Pict-View-Form-Metacontroller.d.ts.map +1 -1
|
@@ -18,7 +18,9 @@
|
|
|
18
18
|
"DTPN = Height * Width",
|
|
19
19
|
"ITPNRO = Height * Width",
|
|
20
20
|
"ITDRO = Height * Width",
|
|
21
|
-
"ITPRO = Height * Width"
|
|
21
|
+
"ITPRO = Height * Width",
|
|
22
|
+
"LoggedValues = logvalues(\"ITPRO\", ITPRO)",
|
|
23
|
+
"VisibleMarshalingSection = SetSectionVisibility(\"Marshaling\", if(ITPRO,\"LT\", 10000, \"\", 1))"
|
|
22
24
|
],
|
|
23
25
|
"MetaTemplates":
|
|
24
26
|
[
|
|
@@ -88,6 +90,16 @@
|
|
|
88
90
|
,"PictForm": {"Section":"Area", "Row":4, "Width":2 }
|
|
89
91
|
},
|
|
90
92
|
|
|
93
|
+
"Help.Content":
|
|
94
|
+
{
|
|
95
|
+
"Name":"Area of a Rectangle",
|
|
96
|
+
"Hash":"HelpContent",
|
|
97
|
+
"DataType":"String",
|
|
98
|
+
"Default": "<p>To calculate the area of a rectangle, you multiply its length by its width. The length is one side of the rectangle, and the width is the adjacent side at a right angle. Since a rectangle has opposite sides that are equal and all angles are right angles, this simple multiplication gives the total space inside the rectangle, expressed in square units.</p>"
|
|
99
|
+
,"PictForm": { "InputType": "HTML", "Section":"Area", "Group":"Help" }
|
|
100
|
+
},
|
|
101
|
+
|
|
102
|
+
|
|
91
103
|
"DTPN":
|
|
92
104
|
{
|
|
93
105
|
"Name":"DataType PreciseNumber",
|
package/package.json
CHANGED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
const libPictProvider = require('pict-provider');
|
|
2
|
+
|
|
3
|
+
// TODO: Pull this back to pict as a core service once we are happy with the shape.
|
|
4
|
+
/** @type {Record<string, any>} */
|
|
5
|
+
const _DefaultProviderConfiguration = (
|
|
6
|
+
{
|
|
7
|
+
"ProviderIdentifier": "Pict-DynamicForms-SolverBehaviors",
|
|
8
|
+
|
|
9
|
+
"AutoInitialize": false,
|
|
10
|
+
"AutoInitializeOrdinal": 0,
|
|
11
|
+
"AutoSolveWithApp": false
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Provides functions available in the solver for manipulating the form.
|
|
16
|
+
* Such as showing/hiding sections, inputs, groups. Coloring inputs,
|
|
17
|
+
* sections, groups. Applying styles to inputs, sections, groups.
|
|
18
|
+
* Extends the `libPictProvider` class.
|
|
19
|
+
*/
|
|
20
|
+
class PictDynamicFormsSolverBehaviors extends libPictProvider
|
|
21
|
+
{
|
|
22
|
+
/**
|
|
23
|
+
* Creates an instance of the `PictDynamicFormsInformary` class.
|
|
24
|
+
* @param {object} pFable - The fable object.
|
|
25
|
+
* @param {object} pOptions - The options object.
|
|
26
|
+
* @param {object} pServiceHash - The service hash object.
|
|
27
|
+
*/
|
|
28
|
+
constructor(pFable, pOptions, pServiceHash)
|
|
29
|
+
{
|
|
30
|
+
let tmpOptions = Object.assign({}, JSON.parse(JSON.stringify(_DefaultProviderConfiguration)), pOptions);
|
|
31
|
+
|
|
32
|
+
super(pFable, tmpOptions, pServiceHash);
|
|
33
|
+
|
|
34
|
+
/** @type {any} */
|
|
35
|
+
this.options;
|
|
36
|
+
/** @type {import('pict') & { newManyfest: (options: any) => import('manyfest') }} */
|
|
37
|
+
this.pict;
|
|
38
|
+
/** @type {any} */
|
|
39
|
+
this.log;
|
|
40
|
+
|
|
41
|
+
/** @type {string} */
|
|
42
|
+
this.cssHideSectionClass = 'pict-section-form-hidden-section';
|
|
43
|
+
this.cssHideGroupClass = 'pict-section-form-hidden-group';
|
|
44
|
+
this.cssSnippet = '.pict-section-form-hidden-section { display: none; } .pict-section-form-hidden-group { display: none; }';
|
|
45
|
+
|
|
46
|
+
this.setCSSSnippets();
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
setCSSSnippets(pCSSHideClass, pCSSSnippet)
|
|
50
|
+
{
|
|
51
|
+
this.cssHideClass = pCSSHideClass || this.cssHideClass;
|
|
52
|
+
this.cssSnippet = pCSSSnippet || this.cssSnippet;
|
|
53
|
+
this.pict.CSSMap.addCSS('Pict-Section-Form-SolverBehaviors', this.cssSnippet, 1001, 'Pict-DynamicForm-SolverBehaviors');
|
|
54
|
+
this.pict.CSSMap.injectCSS();
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
addSolverFunction(pExpressionParser, pFunctionName, pFunctionAddress, pFunctionComment)
|
|
58
|
+
{
|
|
59
|
+
let tmpFunctionName = (pFunctionName || '').trim().toLowerCase();
|
|
60
|
+
if (pExpressionParser.functionMap.hasOwnProperty(tmpFunctionName))
|
|
61
|
+
{
|
|
62
|
+
this.log.warn(`PictDynamicFormsInformary: Function ${tmpFunctionName} already exists in the solver, overwriting with address [${pFunctionAddress}].`);
|
|
63
|
+
//return false;
|
|
64
|
+
}
|
|
65
|
+
pExpressionParser.functionMap[tmpFunctionName] = (
|
|
66
|
+
{
|
|
67
|
+
Name: pFunctionComment || `Autogenerated function ${tmpFunctionName}`,
|
|
68
|
+
Address: pFunctionAddress,
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
injectBehaviors(pExpressionParser)
|
|
73
|
+
{
|
|
74
|
+
// Wire up the solver functions.
|
|
75
|
+
this.addSolverFunction(pExpressionParser, 'logValues', 'fable.providers.DynamicFormSolverBehaviors.logValues', 'Logs a set of values to the console and returns the last one.');
|
|
76
|
+
this.addSolverFunction(pExpressionParser, 'setSectionVisibility', 'fable.providers.DynamicFormSolverBehaviors.setSectionVisibility', 'Sets a sections visiblity to true or fales based on the second parameter.');
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
getSectionSelector(pSectionFormID)
|
|
81
|
+
{
|
|
82
|
+
return `#SECTION-${pSectionFormID}`;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
setSectionVisibility(pSectionHash, pVisible)
|
|
86
|
+
{
|
|
87
|
+
if (pVisible)
|
|
88
|
+
{
|
|
89
|
+
return this.showSection(pSectionHash);
|
|
90
|
+
}
|
|
91
|
+
else
|
|
92
|
+
{
|
|
93
|
+
return this.hideSection(pSectionHash);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* THESE DO NOT BELONG HERE BUT THIS WORKS FOR NOW */
|
|
98
|
+
hideSection(pSectionHash)
|
|
99
|
+
{
|
|
100
|
+
let tmpSectionView = this.pict.views.PictFormMetacontroller.getSectionViewFromHash(pSectionHash)
|
|
101
|
+
if (!tmpSectionView)
|
|
102
|
+
{
|
|
103
|
+
this.log.warn(`PictDynamicFormsInformary: hideSection could not find section with hash [${pSectionHash}].`);
|
|
104
|
+
return false;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
if (this.pict.ContentAssignment.hasClass(this.getSectionSelector(tmpSectionView.formID), this.cssHideSectionClass))
|
|
108
|
+
{
|
|
109
|
+
// Already hidden.
|
|
110
|
+
return true;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
this.pict.ContentAssignment.addClass(this.getSectionSelector(tmpSectionView.formID), this.cssHideSectionClass);
|
|
114
|
+
return true;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
showSection(pSectionHash)
|
|
118
|
+
{
|
|
119
|
+
let tmpSectionView = this.pict.views.PictFormMetacontroller.getSectionViewFromHash(pSectionHash)
|
|
120
|
+
if (!tmpSectionView)
|
|
121
|
+
{
|
|
122
|
+
this.log.warn(`PictDynamicFormsInformary: showSection could not find section with hash [${pSectionHash}].`);
|
|
123
|
+
return false;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
if (!this.pict.ContentAssignment.hasClass(this.getSectionSelector(tmpSectionView.formID), this.cssHideSectionClass))
|
|
127
|
+
{
|
|
128
|
+
// Already visible.
|
|
129
|
+
return true;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
this.pict.ContentAssignment.removeClass(this.getSectionSelector(tmpSectionView.formID), this.cssHideSectionClass);
|
|
133
|
+
return true;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
getGroupSelector(pSectionFormID, pGroupHash)
|
|
137
|
+
{
|
|
138
|
+
return `#GROUP-${pSectionFormID}-${pGroupHash}`;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
setGroupVisibility(pSectionHash, pGroupHash, pVisible)
|
|
142
|
+
{
|
|
143
|
+
if (pVisible)
|
|
144
|
+
{
|
|
145
|
+
return this.showGroup(pSectionHash, pGroupHash);
|
|
146
|
+
}
|
|
147
|
+
else
|
|
148
|
+
{
|
|
149
|
+
return this.hideGroup(pSectionHash, pGroupHash);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
hideGroup(pSectionHash, pGroupHash)
|
|
154
|
+
{
|
|
155
|
+
let tmpGroupView = this.pict.views.PictFormMetacontroller.getSectionViewFromHash(pSectionHash)
|
|
156
|
+
if (!tmpGroupView)
|
|
157
|
+
{
|
|
158
|
+
this.log.warn(`PictDynamicFormsInformary: hideGroup could not find group with section hash [${pSectionHash}] group [${pGroupHash}].`);
|
|
159
|
+
return false;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
if (this.pict.ContentAssignment.hasClass(this.getGroupSelector(tmpGroupView.formID, pGroupHash), this.cssHideGroupClass))
|
|
163
|
+
{
|
|
164
|
+
// Already hidden.
|
|
165
|
+
return true;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
this.pict.ContentAssignment.addClass(this.getGroupSelector(tmpGroupView.formID, pGroupHash), this.cssHideGroupClass);
|
|
169
|
+
return true;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
showGroup(pSectionHash, pGroupHash)
|
|
173
|
+
{
|
|
174
|
+
let tmpGroupView = this.pict.views.PictFormMetacontroller.getSectionViewFromHash(pSectionHash)
|
|
175
|
+
if (!tmpGroupView)
|
|
176
|
+
{
|
|
177
|
+
this.log.warn(`PictDynamicFormsInformary: showGroup could not find group with section hash [${pSectionHash}] group [${pGroupHash}].`);
|
|
178
|
+
return false;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
if (!this.pict.ContentAssignment.hasClass(this.getGroupSelector(tmpGroupView.formID, pGroupHash), this.cssHideGroupClass))
|
|
182
|
+
{
|
|
183
|
+
// Already visible.
|
|
184
|
+
return true;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
this.pict.ContentAssignment.removeClass(this.getGroupSelector(tmpGroupView.formID, pGroupHash), this.cssHideGroupClass);
|
|
188
|
+
return true;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
logValues()
|
|
192
|
+
{
|
|
193
|
+
let tmpLastValue = null;
|
|
194
|
+
let tmpLogLine = 'Solver logvalues call: ';
|
|
195
|
+
for (let i = 0; i < arguments.length; i++)
|
|
196
|
+
{
|
|
197
|
+
tmpLastValue = arguments[i];
|
|
198
|
+
tmpLogLine += ` [${i}]=[${tmpLastValue}]`;
|
|
199
|
+
}
|
|
200
|
+
this.log.info(tmpLogLine);
|
|
201
|
+
return tmpLastValue;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
module.exports = PictDynamicFormsSolverBehaviors;
|
|
206
|
+
module.exports.default_configuration = _DefaultProviderConfiguration;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
const libPictProvider = require('pict-provider');
|
|
2
2
|
|
|
3
|
+
const libDynamicFormSolverBehaviors = require('./Pict-Provider-DynamicFormSolverBehaviors.js');
|
|
4
|
+
|
|
3
5
|
const libListDistilling = require('./Pict-Provider-ListDistilling.js');
|
|
4
6
|
const libDynamicMetaLists = require('./Pict-Provider-MetaLists.js');
|
|
5
7
|
|
|
@@ -57,58 +59,22 @@ class PictDynamicSolver extends libPictProvider
|
|
|
57
59
|
// Initialize the solver service if it isn't up
|
|
58
60
|
this.fable.instantiateServiceProviderIfNotExists('ExpressionParser');
|
|
59
61
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
if (!this.pict.providers['Pict-Input-TabGroupSelector'])
|
|
77
|
-
{
|
|
78
|
-
this.pict.addProvider('Pict-Input-TabGroupSelector', libInputTabGroupSelector.default_configuration, libInputTabGroupSelector);
|
|
79
|
-
}
|
|
80
|
-
if (!this.pict.providers['Pict-Input-TabSectionSelector'])
|
|
81
|
-
{
|
|
82
|
-
this.pict.addProvider('Pict-Input-TabSectionSelector', libInputTabSectionSelector.default_configuration, libInputTabSectionSelector);
|
|
83
|
-
}
|
|
84
|
-
if (!this.pict.providers['Pict-Input-EntityBundleRequest'])
|
|
85
|
-
{
|
|
86
|
-
this.pict.addProvider('Pict-Input-EntityBundleRequest', libInputEntityBundleRequest.default_configuration, libInputEntityBundleRequest);
|
|
87
|
-
}
|
|
88
|
-
if (!this.pict.providers['Pict-Input-AutofillTriggerGroup'])
|
|
89
|
-
{
|
|
90
|
-
this.pict.addProvider('Pict-Input-AutofillTriggerGroup', libInputAutofillTriggerGroup.default_configuration, libInputAutofillTriggerGroup);
|
|
91
|
-
}
|
|
92
|
-
if (!this.pict.providers['Pict-Input-Markdown'])
|
|
93
|
-
{
|
|
94
|
-
this.pict.addProvider('Pict-Input-Markdown', libInputMarkdown.default_configuration, libInputMarkdown);
|
|
95
|
-
}
|
|
96
|
-
if (!this.pict.providers['Pict-Input-HTML'])
|
|
97
|
-
{
|
|
98
|
-
this.pict.addProvider('Pict-Input-HTML', libInputHTML.default_configuration, libInputHTML);
|
|
99
|
-
}
|
|
100
|
-
if (!this.pict.providers['Pict-Input-PreciseNumber'])
|
|
101
|
-
{
|
|
102
|
-
this.pict.addProvider('Pict-Input-PreciseNumber', libInputPreciseNumber.default_configuration, libInputPreciseNumber);
|
|
103
|
-
}
|
|
104
|
-
if (!this.pict.providers['Pict-Input-TemplatedEntityLookup'])
|
|
105
|
-
{
|
|
106
|
-
this.pict.addProvider('Pict-Input-TemplatedEntityLookup', libInputTemplatedEntityLookup.default_configuration, libInputTemplatedEntityLookup);
|
|
107
|
-
}
|
|
108
|
-
if (!this.pict.providers['Pict-Input-Link'])
|
|
109
|
-
{
|
|
110
|
-
this.pict.addProvider('Pict-Input-Link', libInputLink.default_configuration, libInputLink);
|
|
111
|
-
}
|
|
62
|
+
this.pict.addProviderSingleton('DynamicFormSolverBehaviors', libDynamicFormSolverBehaviors.default_configuration, libDynamicFormSolverBehaviors);
|
|
63
|
+
this.pict.providers.DynamicFormSolverBehaviors.injectBehaviors(this.fable.ExpressionParser);
|
|
64
|
+
this.pict.addProviderSingleton('DynamicMetaLists', libDynamicMetaLists.default_configuration, libDynamicMetaLists);
|
|
65
|
+
this.pict.addProviderSingleton('ListDistilling', libListDistilling.default_configuration, libListDistilling);
|
|
66
|
+
this.pict.addProviderSingleton('Pict-Input-Select', libInputSelect.default_configuration, libInputSelect);
|
|
67
|
+
this.pict.addProviderSingleton('Pict-Input-DateTime', libInputDateTime.default_configuration, libInputDateTime);
|
|
68
|
+
this.pict.addProviderSingleton('Pict-Input-TabGroupSelector', libInputTabGroupSelector.default_configuration, libInputTabGroupSelector);
|
|
69
|
+
this.pict.addProviderSingleton('Pict-Input-TabSectionSelector', libInputTabSectionSelector.default_configuration, libInputTabSectionSelector);
|
|
70
|
+
this.pict.addProviderSingleton('Pict-Input-EntityBundleRequest', libInputEntityBundleRequest.default_configuration, libInputEntityBundleRequest);
|
|
71
|
+
this.pict.addProviderSingleton('Pict-Input-AutofillTriggerGroup', libInputAutofillTriggerGroup.default_configuration, libInputAutofillTriggerGroup);
|
|
72
|
+
this.pict.addProviderSingleton('Pict-Input-Markdown', libInputMarkdown.default_configuration, libInputMarkdown);
|
|
73
|
+
this.pict.addProviderSingleton('Pict-Input-HTML', libInputHTML.default_configuration, libInputHTML);
|
|
74
|
+
this.pict.addProviderSingleton('Pict-Input-PreciseNumber', libInputPreciseNumber.default_configuration, libInputPreciseNumber);
|
|
75
|
+
this.pict.addProviderSingleton('Pict-Input-TemplatedEntityLookup', libInputTemplatedEntityLookup.default_configuration, libInputTemplatedEntityLookup);
|
|
76
|
+
this.pict.addProviderSingleton('Pict-Input-Link', libInputLink.default_configuration, libInputLink);
|
|
77
|
+
this.pict.addProviderSingleton('Pict-Input-Link', libInputLink.default_configuration, libInputLink);
|
|
112
78
|
}
|
|
113
79
|
|
|
114
80
|
/**
|
|
@@ -33,6 +33,7 @@ class CustomInputHandler extends libPictSectionInputExtension
|
|
|
33
33
|
this.cssHideClass = pCSSHideClass || this.cssHideClass;
|
|
34
34
|
this.cssSnippet = pCSSSnippet || this.cssSnippet;
|
|
35
35
|
this.pict.CSSMap.addCSS('Pict-Section-Form-Input-Group-TabSelector', this.cssSnippet, 1001, 'Pict-Input-TabSelector');
|
|
36
|
+
this.pict.CSSMap.injectCSS();
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
getTabSelector(pView, pInput, pGroupHash)
|
|
@@ -623,7 +623,7 @@ class ManifestFactory extends libFableServiceProviderBase
|
|
|
623
623
|
if (tmpRecord['Equation'])
|
|
624
624
|
{
|
|
625
625
|
this.log.trace(`Adding solver to ${tmpRecord.Form} --> ${tmpGroup.Name} for ${tmpRecord['Input Hash']}: ${tmpRecord['Equation']}`);
|
|
626
|
-
if (tmpGroup.Layout == 'Tabular')
|
|
626
|
+
if ((tmpGroup.Layout == 'Tabular') || (tmpGroup.Layout == 'RecordSet'))
|
|
627
627
|
{
|
|
628
628
|
tmpGroup.RecordSetSolvers.push(tmpRecord['Equation']);
|
|
629
629
|
}
|
|
@@ -704,6 +704,23 @@ class PictFormMetacontroller extends libPictViewClass
|
|
|
704
704
|
}
|
|
705
705
|
}
|
|
706
706
|
|
|
707
|
+
getSectionViewFromHash(pSectionHash)
|
|
708
|
+
{
|
|
709
|
+
let tmpSectionHash = (typeof(pSectionHash) === 'string') ? pSectionHash : false;
|
|
710
|
+
if (!tmpSectionHash)
|
|
711
|
+
{
|
|
712
|
+
this.log.error('getSectionViewFromHash() called without a valid section hash.');
|
|
713
|
+
return false;
|
|
714
|
+
}
|
|
715
|
+
let tmpViewHash = `PictSectionForm-${tmpSectionHash}`;
|
|
716
|
+
if (tmpViewHash in this.fable.views)
|
|
717
|
+
{
|
|
718
|
+
return this.fable.views[tmpViewHash];
|
|
719
|
+
}
|
|
720
|
+
this.log.error(`getSectionViewFromHash() could not find a view for section hash [${tmpSectionHash}].`);
|
|
721
|
+
return false;
|
|
722
|
+
}
|
|
723
|
+
|
|
707
724
|
/**
|
|
708
725
|
* Bootstraps Pict DynamicForm views from a Manyfest description JSON object.
|
|
709
726
|
*
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export = PictDynamicFormsSolverBehaviors;
|
|
2
|
+
/**
|
|
3
|
+
* Provides functions available in the solver for manipulating the form.
|
|
4
|
+
* Such as showing/hiding sections, inputs, groups. Coloring inputs,
|
|
5
|
+
* sections, groups. Applying styles to inputs, sections, groups.
|
|
6
|
+
* Extends the `libPictProvider` class.
|
|
7
|
+
*/
|
|
8
|
+
declare class PictDynamicFormsSolverBehaviors extends libPictProvider {
|
|
9
|
+
/**
|
|
10
|
+
* Creates an instance of the `PictDynamicFormsInformary` class.
|
|
11
|
+
* @param {object} pFable - The fable object.
|
|
12
|
+
* @param {object} pOptions - The options object.
|
|
13
|
+
* @param {object} pServiceHash - The service hash object.
|
|
14
|
+
*/
|
|
15
|
+
constructor(pFable: object, pOptions: object, pServiceHash: object);
|
|
16
|
+
/** @type {any} */
|
|
17
|
+
options: any;
|
|
18
|
+
/** @type {import('pict') & { newManyfest: (options: any) => import('manyfest') }} */
|
|
19
|
+
pict: import("pict") & {
|
|
20
|
+
newManyfest: (options: any) => import("manyfest");
|
|
21
|
+
};
|
|
22
|
+
/** @type {string} */
|
|
23
|
+
cssHideSectionClass: string;
|
|
24
|
+
cssHideGroupClass: string;
|
|
25
|
+
cssSnippet: string;
|
|
26
|
+
setCSSSnippets(pCSSHideClass: any, pCSSSnippet: any): void;
|
|
27
|
+
cssHideClass: any;
|
|
28
|
+
addSolverFunction(pExpressionParser: any, pFunctionName: any, pFunctionAddress: any, pFunctionComment: any): void;
|
|
29
|
+
injectBehaviors(pExpressionParser: any): boolean;
|
|
30
|
+
getSectionSelector(pSectionFormID: any): string;
|
|
31
|
+
setSectionVisibility(pSectionHash: any, pVisible: any): boolean;
|
|
32
|
+
hideSection(pSectionHash: any): boolean;
|
|
33
|
+
showSection(pSectionHash: any): boolean;
|
|
34
|
+
getGroupSelector(pSectionFormID: any, pGroupHash: any): string;
|
|
35
|
+
setGroupVisibility(pSectionHash: any, pGroupHash: any, pVisible: any): boolean;
|
|
36
|
+
hideGroup(pSectionHash: any, pGroupHash: any): boolean;
|
|
37
|
+
showGroup(pSectionHash: any, pGroupHash: any): boolean;
|
|
38
|
+
logValues(...args: any[]): any;
|
|
39
|
+
}
|
|
40
|
+
declare namespace PictDynamicFormsSolverBehaviors {
|
|
41
|
+
export { _DefaultProviderConfiguration as default_configuration };
|
|
42
|
+
}
|
|
43
|
+
import libPictProvider = require("pict-provider");
|
|
44
|
+
/** @type {Record<string, any>} */
|
|
45
|
+
declare const _DefaultProviderConfiguration: Record<string, any>;
|
|
46
|
+
//# sourceMappingURL=Pict-Provider-DynamicFormSolverBehaviors.d.ts.map
|
|
@@ -0,0 +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,EAqBhB;IAbA,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;IAK5H,2DAMC;IAJA,kBAAsD;IAMvD,kHAaC;IAED,iDAMC;IAED,gDAGC;IAED,gEAUC;IAGD,wCAiBC;IAED,wCAiBC;IAED,+DAGC;IAED,+EAUC;IAED,uDAiBC;IAED,uDAiBC;IAED,+BAWC;CACD;;;;;AAvMD,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAQ3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Provider-DynamicSolver.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicSolver.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Pict-Provider-DynamicSolver.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicSolver.js"],"names":[],"mappings":";AA8BA;;GAEG;AACH;IAEC;;;;;;OAMG;IACH,oBAJW,MAAM,YACN,MAAM,gBACN,MAAM,EAqChB;IA9BA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,gGAAgG;IAChG,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,qCAAqC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,GAAG,CAAA;KAAE,CAClF;IA6BX;;;;;;;;;OASG;IACH,qBALW,MAAM,GAAC,MAAM,cACb,OAAO,aACP,MAAM,GACJ,MAAM,GAAC,SAAS,CA8B5B;IAED;;;;;;;OAOG;IACH,wDAFW,MAAM,QAyDhB;IAED;;;;;OAKG;IACH,gEAFW,MAAM,QA+BhB;IAED;;;;;OAKG;IACH,sDAFW,MAAM,QAwBhB;IAED;;;;;;;;OAQG;IACH,gCAJW,MAAM,yBAWhB;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,yBAFW,QAAM,MAAM,EAAE,QAiFxB;IADA;;;;;MAAuC;CAExC;;;;;AAhWD,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAS3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Provider-Input-TabGroupSelector.d.ts","sourceRoot":"","sources":["../../../../source/providers/inputs/Pict-Provider-Input-TabGroupSelector.js"],"names":[],"mappings":";AAEA;;;;;;GAMG;AACH;IAEC,2DAiBC;IAbA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6BAA6B;IAC7B,OADW,OAAO,MAAM,CAAC,CACf;IAIV,qBAAqB;IACrB,cADW,MAAM,CAC0B;IAC3C,4BAAuD;IACvD,mBAAgH;IAKjH,
|
|
1
|
+
{"version":3,"file":"Pict-Provider-Input-TabGroupSelector.d.ts","sourceRoot":"","sources":["../../../../source/providers/inputs/Pict-Provider-Input-TabGroupSelector.js"],"names":[],"mappings":";AAEA;;;;;;GAMG;AACH;IAEC,2DAiBC;IAbA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6BAA6B;IAC7B,OADW,OAAO,MAAM,CAAC,CACf;IAIV,qBAAqB;IACrB,cADW,MAAM,CAC0B;IAC3C,4BAAuD;IACvD,mBAAgH;IAKjH,2DAMC;IAED,iEAGC;IAED,sDAGC;IAED,6EAyCC;IAED;;;;OAIG;IACH,wCAHW,MAAM,GACJ,MAAM,CAKlB;CA0CD"}
|
|
@@ -142,6 +142,7 @@ declare class PictFormMetacontroller extends libPictViewClass {
|
|
|
142
142
|
* @returns {object|boolean} - The section definition if successful, otherwise false.
|
|
143
143
|
*/
|
|
144
144
|
getSectionDefinition(pSectionObject: object): object | boolean;
|
|
145
|
+
getSectionViewFromHash(pSectionHash: any): any;
|
|
145
146
|
/**
|
|
146
147
|
* Bootstraps Pict DynamicForm views from a Manyfest description JSON object.
|
|
147
148
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-View-Form-Metacontroller.d.ts","sourceRoot":"","sources":["../../../source/views/Pict-View-Form-Metacontroller.js"],"names":[],"mappings":";AASA;;GAEG;AAEH;;;;;;GAMG;AACH;IAEC,2DAaC;IALA,yBAA2B;IAE3B,wBAAsF;IAEtF,cAAkC;IAQnC,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;;;OAGG;IACH,0BAHW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,sBACnB,MAAM,QAiChB;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,QAahB;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;;;;;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;;;;;;;OAOG;IACH,kFAJW,MAAM,GAEJ,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAoLtC;IA5JC,gCAA0D;IAC1D,yBAAiD;IA6JnD;;;OAGG;IACH,gCAFW,MAAM,QAgBhB;IAED;;;;OAIG;IACH,4BAFa,OAAO,CAKnB;CACD;;;;;qCAGU,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"Pict-View-Form-Metacontroller.d.ts","sourceRoot":"","sources":["../../../source/views/Pict-View-Form-Metacontroller.js"],"names":[],"mappings":";AASA;;GAEG;AAEH;;;;;;GAMG;AACH;IAEC,2DAaC;IALA,yBAA2B;IAE3B,wBAAsF;IAEtF,cAAkC;IAQnC,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;;;OAGG;IACH,0BAHW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,sBACnB,MAAM,QAiChB;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,QAahB;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;;;;;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;;;OAGG;IACH,gCAFW,MAAM,QAgBhB;IAED;;;;OAIG;IACH,4BAFa,OAAO,CAKnB;CACD;;;;;qCAGU,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;oBAr6BjB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,KAAK,MAAM"}
|