pict-section-form 1.3.13 → 1.3.15
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/docs/Injection_Conformance.md +137 -0
- package/docs/_sidebar.md +1 -0
- package/docs/input_providers/012-tab-group-selector.md +3 -1
- package/docs/input_providers/013-tab-section-selector.md +3 -1
- package/package.json +6 -5
- package/source/providers/Pict-Provider-DynamicFormSolverBehaviors.js +73 -5
- package/source/providers/Pict-Provider-DynamicSolver.js +20 -2
- package/source/providers/inputs/Pict-Provider-Input-TabGroupSelector.js +42 -3
- package/source/providers/inputs/Pict-Provider-Input-TabSectionSelector.js +42 -3
- package/source/views/Pict-View-Form-Metacontroller.js +685 -90
- package/test/Pict-Provider-DynamicFormSolverBehaviors-OrdinalScope_tests.js +105 -0
- package/test/Pict-Provider-Input-TabGroupSelector-TabHashValidation_tests.js +178 -0
- package/test/Pict-Provider-Input-TabSectionSelector-TabHashValidation_tests.js +193 -0
- package/test/Pict-View-Form-Metacontroller-DistinctManifest_tests.js +410 -0
- package/test/PictSectionForm-Injection-Conformance_tests.js +751 -0
- package/test/browser/Injection-Conformance-Differential-Scenario.js +346 -0
- package/test/browser/Injection-Conformance-EdgeCase-Scenario.js +168 -0
- package/test/browser/Injection-Conformance-Harness-Driver.js +538 -0
- package/test/browser/Injection-Conformance-Harness-Runner.js +487 -0
- package/test/browser/Injection-Conformance-Reconstitution-Scenario.js +191 -0
- package/test/browser/Injection-Conformance-Standalone-Scenario.js +114 -0
- package/test/fixtures/injection/Injection-Fixture-Cases.js +203 -0
- package/test/fixtures/injection/Injection-Fixture-Manifest.json +366 -0
- package/types/source/providers/Pict-Provider-DynamicFormSolverBehaviors.d.ts +110 -1
- package/types/source/providers/Pict-Provider-DynamicFormSolverBehaviors.d.ts.map +1 -1
- package/types/source/providers/Pict-Provider-DynamicSolver.d.ts.map +1 -1
- package/types/source/providers/Pict-Provider-DynamicTabularData.d.ts +17 -1
- package/types/source/providers/Pict-Provider-DynamicTabularData.d.ts.map +1 -1
- package/types/source/providers/Pict-Provider-InputExtension.d.ts +31 -0
- package/types/source/providers/Pict-Provider-InputExtension.d.ts.map +1 -1
- package/types/source/providers/inputs/Pict-Provider-Input-Chart-CSS.d.ts +16 -0
- package/types/source/providers/inputs/Pict-Provider-Input-Chart-CSS.d.ts.map +1 -0
- package/types/source/providers/inputs/Pict-Provider-Input-Chart.d.ts +47 -0
- package/types/source/providers/inputs/Pict-Provider-Input-Chart.d.ts.map +1 -1
- package/types/source/providers/inputs/Pict-Provider-Input-Diagram.d.ts +86 -0
- package/types/source/providers/inputs/Pict-Provider-Input-Diagram.d.ts.map +1 -1
- package/types/source/providers/inputs/Pict-Provider-Input-ObjectEditor.d.ts +128 -0
- package/types/source/providers/inputs/Pict-Provider-Input-ObjectEditor.d.ts.map +1 -0
- package/types/source/providers/inputs/Pict-Provider-Input-PreciseNumber.d.ts.map +1 -1
- package/types/source/providers/inputs/Pict-Provider-Input-TabGroupSelector.d.ts +10 -1
- package/types/source/providers/inputs/Pict-Provider-Input-TabGroupSelector.d.ts.map +1 -1
- package/types/source/providers/inputs/Pict-Provider-Input-TabSectionSelector.d.ts +10 -1
- package/types/source/providers/inputs/Pict-Provider-Input-TabSectionSelector.d.ts.map +1 -1
- package/types/source/providers/layouts/Pict-Layout-Tabular.d.ts +76 -4
- package/types/source/providers/layouts/Pict-Layout-Tabular.d.ts.map +1 -1
- package/types/source/views/Pict-View-DynamicForm.d.ts.map +1 -1
- package/types/source/views/Pict-View-Form-Metacontroller.d.ts +63 -2
- package/types/source/views/Pict-View-Form-Metacontroller.d.ts.map +1 -1
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
{
|
|
2
|
+
"HostManifest":
|
|
3
|
+
{
|
|
4
|
+
"Scope": "OrchardHost",
|
|
5
|
+
"Sections":
|
|
6
|
+
[
|
|
7
|
+
{
|
|
8
|
+
"Hash": "Overview",
|
|
9
|
+
"Name": "Overview",
|
|
10
|
+
"Groups": [ { "Hash": "OverviewGroup", "Name": "Overview" } ]
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"Descriptors":
|
|
14
|
+
{
|
|
15
|
+
"HostRate":
|
|
16
|
+
{
|
|
17
|
+
"Name": "Host Rate",
|
|
18
|
+
"Hash": "HostRate",
|
|
19
|
+
"DataType": "Number",
|
|
20
|
+
"PictForm": { "Section": "Overview", "Group": "OverviewGroup", "Row": 1 }
|
|
21
|
+
},
|
|
22
|
+
"Width":
|
|
23
|
+
{
|
|
24
|
+
"Name": "Host Width",
|
|
25
|
+
"Hash": "Width",
|
|
26
|
+
"DataType": "Number",
|
|
27
|
+
"PictForm": { "Section": "Overview", "Group": "OverviewGroup", "Row": 1 }
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"ReferenceManifests": {}
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
"InjectableManifest":
|
|
34
|
+
{
|
|
35
|
+
"Scope": "Crate",
|
|
36
|
+
"ValidationSolvers": [ "CheckedTotal = Area + Count" ],
|
|
37
|
+
"Sections":
|
|
38
|
+
[
|
|
39
|
+
{
|
|
40
|
+
"Hash": "Measure",
|
|
41
|
+
"Name": "Measure",
|
|
42
|
+
"Groups":
|
|
43
|
+
[
|
|
44
|
+
{ "Hash": "MeasureGroup", "Name": "Measurements" },
|
|
45
|
+
{
|
|
46
|
+
"Hash": "RowsGroup",
|
|
47
|
+
"Name": "Rows",
|
|
48
|
+
"Layout": "Tabular",
|
|
49
|
+
"RecordSetAddress": "Rows",
|
|
50
|
+
"RecordManifest": "CrateRow",
|
|
51
|
+
"RecordSetSolvers": [ "Line = Qty * Price" ]
|
|
52
|
+
},
|
|
53
|
+
{ "Hash": "ChartGroup", "Name": "Chart" }
|
|
54
|
+
],
|
|
55
|
+
"Solvers":
|
|
56
|
+
[
|
|
57
|
+
"Area = Width * Height",
|
|
58
|
+
{ "Expression": "AreaScaled = Area * HostRate", "Ordinal": 3 },
|
|
59
|
+
"RowCount = Rows.length",
|
|
60
|
+
{ "Expression": "FirstLine = Rows[0].Line", "Ordinal": 2 },
|
|
61
|
+
{ "Expression": "LineTotal = SUM(Rows[].Line)", "Ordinal": 2 },
|
|
62
|
+
{ "Expression": "SecondLine = {Rows[1].Line}", "Ordinal": 2 },
|
|
63
|
+
"SecondQty = GETVALUE(\"AppData.Orchard.Rows[1].Qty\")",
|
|
64
|
+
"WidthCopy = GETVALUE(\"AppData.Orchard.Width\")",
|
|
65
|
+
"ReadingCount = Readings.length",
|
|
66
|
+
"FirstReading = Readings[0]",
|
|
67
|
+
"ItemCount = Crate.Items.length",
|
|
68
|
+
"Volume = Area * Depth",
|
|
69
|
+
"QtyList = flatten(Rows[].Qty)",
|
|
70
|
+
{ "Expression": "Doubled = MAP VAR Qty FROM QtyList : Qty * 2", "Ordinal": 2 },
|
|
71
|
+
"Scaled = MAP VAR r FROM Rows : r.Qty * Width",
|
|
72
|
+
"Steps = SERIES FROM 1 TO RowCount : n * Width",
|
|
73
|
+
{ "Expression": "RowCarry = MULTIROWMAP ROWS FROM Rows VAR Qty FROM Qty OFFSET -1 DEFAULT 0 : Qty * 2", "Ordinal": 2 },
|
|
74
|
+
"WideLabel = IF(Width, \">\", 3.5, \"Width\", \"Narrow\")",
|
|
75
|
+
"HeightMaxPlus = HeightMax + Height",
|
|
76
|
+
"SetSectionVisibility(\"Extras\", ShowExtras)",
|
|
77
|
+
"Scratch = Width + 1",
|
|
78
|
+
{ "Expression": "FromScratch = Scratch * 2", "Ordinal": 2 }
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"Hash": "Inputs",
|
|
83
|
+
"Name": "Inputs",
|
|
84
|
+
"Groups": [ { "Hash": "InputsGroup", "Name": "Every Input" } ]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"Hash": "Composed",
|
|
88
|
+
"Name": "Composed",
|
|
89
|
+
"Groups": [ { "Hash": "ComposedGroup", "Name": "Composed Inputs" } ]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"Hash": "TabOne",
|
|
93
|
+
"Name": "Tab One",
|
|
94
|
+
"Groups": [ { "Hash": "TabOneGroup", "Name": "Tab One" } ]
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"Hash": "TabTwo",
|
|
98
|
+
"Name": "Tab Two",
|
|
99
|
+
"Groups": [ { "Hash": "TabTwoGroup", "Name": "Tab Two" } ]
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"Hash": "Grouped",
|
|
103
|
+
"Name": "Grouped",
|
|
104
|
+
"Groups":
|
|
105
|
+
[
|
|
106
|
+
{ "Hash": "GroupPickerGroup", "Name": "Group Picker" },
|
|
107
|
+
{ "Hash": "GroupA", "Name": "Group A" },
|
|
108
|
+
{ "Hash": "GroupB", "Name": "Group B" }
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"Hash": "Extras",
|
|
113
|
+
"Name": "Extras",
|
|
114
|
+
"Groups": [ { "Hash": "ExtrasGroup", "Name": "Extras" } ]
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"Descriptors":
|
|
118
|
+
{
|
|
119
|
+
"Width": { "Name": "Width", "Hash": "Width", "DataType": "Number", "PictForm": { "Section": "Measure", "Group": "MeasureGroup", "Row": 1 } },
|
|
120
|
+
"Height": { "Name": "Height", "Hash": "Height", "DataType": "Number", "PictForm": { "Section": "Measure", "Group": "MeasureGroup", "Row": 1 } },
|
|
121
|
+
"HeightMax": { "Name": "Height Max", "Hash": "HeightMax", "DataType": "Number", "PictForm": { "Section": "Measure", "Group": "MeasureGroup", "Row": 1 } },
|
|
122
|
+
"Qty": { "Name": "Crate Quantity", "Hash": "Qty", "DataType": "Number", "PictForm": { "Section": "Measure", "Group": "MeasureGroup", "Row": 2 } },
|
|
123
|
+
"Dims.Depth": { "Name": "Depth", "Hash": "Depth", "DataType": "Number", "PictForm": { "Section": "Measure", "Group": "MeasureGroup", "Row": 2 } },
|
|
124
|
+
"ShowExtras": { "Name": "Show Extras", "Hash": "ShowExtras", "DataType": "Number", "PictForm": { "Section": "Measure", "Group": "MeasureGroup", "Row": 2 } },
|
|
125
|
+
"Readings": { "Name": "Readings", "Hash": "Readings", "DataType": "Array" },
|
|
126
|
+
"Crate": { "Name": "Crate", "Hash": "Crate", "DataType": "Object" },
|
|
127
|
+
|
|
128
|
+
"Area": { "Name": "Area", "Hash": "Area", "DataType": "Number" },
|
|
129
|
+
"AreaScaled": { "Name": "Area Scaled", "Hash": "AreaScaled", "DataType": "Number" },
|
|
130
|
+
"RowCount": { "Name": "Row Count", "Hash": "RowCount", "DataType": "Number" },
|
|
131
|
+
"FirstLine": { "Name": "First Line", "Hash": "FirstLine", "DataType": "Number" },
|
|
132
|
+
"LineTotal": { "Name": "Line Total", "Hash": "LineTotal", "DataType": "Number" },
|
|
133
|
+
"SecondLine": { "Name": "Second Line", "Hash": "SecondLine", "DataType": "Number" },
|
|
134
|
+
"SecondQty": { "Name": "Second Quantity", "Hash": "SecondQty", "DataType": "Number" },
|
|
135
|
+
"WidthCopy": { "Name": "Width Copy", "Hash": "WidthCopy", "DataType": "Number" },
|
|
136
|
+
"ReadingCount": { "Name": "Reading Count", "Hash": "ReadingCount", "DataType": "Number" },
|
|
137
|
+
"FirstReading": { "Name": "First Reading", "Hash": "FirstReading", "DataType": "Number" },
|
|
138
|
+
"ItemCount": { "Name": "Item Count", "Hash": "ItemCount", "DataType": "Number" },
|
|
139
|
+
"Volume": { "Name": "Volume", "Hash": "Volume", "DataType": "Number" },
|
|
140
|
+
"QtyList": { "Name": "Quantity List", "Hash": "QtyList", "DataType": "Array" },
|
|
141
|
+
"Doubled": { "Name": "Doubled", "Hash": "Doubled", "DataType": "Array" },
|
|
142
|
+
"Scaled": { "Name": "Scaled", "Hash": "Scaled", "DataType": "Array" },
|
|
143
|
+
"Steps": { "Name": "Steps", "Hash": "Steps", "DataType": "Array" },
|
|
144
|
+
"RowCarry": { "Name": "Row Carry", "Hash": "RowCarry", "DataType": "Array" },
|
|
145
|
+
"WideLabel": { "Name": "Wide Label", "Hash": "WideLabel", "DataType": "String" },
|
|
146
|
+
"HeightMaxPlus": { "Name": "Height Max Plus", "Hash": "HeightMaxPlus", "DataType": "Number" },
|
|
147
|
+
"FromScratch": { "Name": "From Scratch", "Hash": "FromScratch", "DataType": "Number" },
|
|
148
|
+
"CheckedTotal": { "Name": "Checked Total", "Hash": "CheckedTotal", "DataType": "Number" },
|
|
149
|
+
|
|
150
|
+
"Label": { "Name": "Label", "Hash": "Label", "DataType": "String", "PictForm": { "Section": "Inputs", "Group": "InputsGroup", "Row": 1 } },
|
|
151
|
+
"Count": { "Name": "Count", "Hash": "Count", "DataType": "Number", "PictForm": { "Section": "Inputs", "Group": "InputsGroup", "Row": 1 } },
|
|
152
|
+
"Precise": { "Name": "Precise", "Hash": "Precise", "DataType": "PreciseNumber", "PictForm": { "Section": "Inputs", "Group": "InputsGroup", "Row": 1 } },
|
|
153
|
+
"PreciseDisplay": { "Name": "Precise Display", "Hash": "PreciseDisplay", "DataType": "PreciseNumber", "PictForm": { "Section": "Inputs", "Group": "InputsGroup", "Row": 1, "InputType": "PreciseNumberReadOnly" } },
|
|
154
|
+
"NoteText": { "Name": "Note Text", "Hash": "NoteText", "DataType": "String", "PictForm": { "Section": "Inputs", "Group": "InputsGroup", "Row": 2, "InputType": "TextArea" } },
|
|
155
|
+
"Ready": { "Name": "Ready", "Hash": "Ready", "DataType": "Boolean", "PictForm": { "Section": "Inputs", "Group": "InputsGroup", "Row": 2, "InputType": "Boolean" } },
|
|
156
|
+
"Shade": { "Name": "Shade", "Hash": "Shade", "DataType": "String", "PictForm": { "Section": "Inputs", "Group": "InputsGroup", "Row": 2, "InputType": "Color" } },
|
|
157
|
+
"Reference": { "Name": "Reference", "Hash": "Reference", "DataType": "String", "PictForm": { "Section": "Inputs", "Group": "InputsGroup", "Row": 3, "InputType": "ReadOnly" } },
|
|
158
|
+
"Shown": { "Name": "Shown", "Hash": "Shown", "DataType": "String", "PictForm": { "Section": "Inputs", "Group": "InputsGroup", "Row": 3, "InputType": "DisplayOnly" } },
|
|
159
|
+
"Concealed": { "Name": "Concealed", "Hash": "Concealed", "DataType": "String", "PictForm": { "Section": "Inputs", "Group": "InputsGroup", "Row": 3, "InputType": "Hidden" } },
|
|
160
|
+
"Notes": { "Name": "Notes", "Hash": "Notes", "DataType": "String", "PictForm": { "Section": "Inputs", "Group": "InputsGroup", "Row": 4, "InputType": "Markdown" } },
|
|
161
|
+
"Blurb": { "Name": "Blurb", "Hash": "Blurb", "DataType": "String", "PictForm": { "Section": "Inputs", "Group": "InputsGroup", "Row": 4, "InputType": "HTML" } },
|
|
162
|
+
"Site": { "Name": "Site", "Hash": "Site", "DataType": "String", "PictForm": { "Section": "Inputs", "Group": "InputsGroup", "Row": 4, "InputType": "Link" } },
|
|
163
|
+
"Grade":
|
|
164
|
+
{
|
|
165
|
+
"Name": "Grade",
|
|
166
|
+
"Hash": "Grade",
|
|
167
|
+
"DataType": "String",
|
|
168
|
+
"PictForm":
|
|
169
|
+
{
|
|
170
|
+
"Section": "Inputs",
|
|
171
|
+
"Group": "InputsGroup",
|
|
172
|
+
"Row": 5,
|
|
173
|
+
"InputType": "Option",
|
|
174
|
+
"SelectOptions": [ { "id": "first", "text": "First" }, { "id": "second", "text": "Second" } ]
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"Picked": { "Name": "Picked", "Hash": "Picked", "DataType": "DateTime", "PictForm": { "Section": "Inputs", "Group": "InputsGroup", "Row": 5 } },
|
|
178
|
+
"Story": { "Name": "Story", "Hash": "Story", "DataType": "String", "PictForm": { "Section": "Inputs", "Group": "InputsGroup", "Row": 6, "InputType": "RichText" } },
|
|
179
|
+
"Sketch": { "Name": "Sketch", "Hash": "Sketch", "DataType": "Object", "PictForm": { "Section": "Inputs", "Group": "InputsGroup", "Row": 6, "InputType": "Diagram" } },
|
|
180
|
+
"Payload": { "Name": "Payload", "Hash": "Payload", "DataType": "Object", "PictForm": { "Section": "Inputs", "Group": "InputsGroup", "Row": 6, "InputType": "ObjectEditor" } },
|
|
181
|
+
|
|
182
|
+
"Source":
|
|
183
|
+
{
|
|
184
|
+
"Name": "Source",
|
|
185
|
+
"Hash": "Source",
|
|
186
|
+
"DataType": "Number",
|
|
187
|
+
"PictForm":
|
|
188
|
+
{
|
|
189
|
+
"Section": "Composed",
|
|
190
|
+
"Group": "ComposedGroup",
|
|
191
|
+
"Row": 1,
|
|
192
|
+
"Providers": [ "Pict-Input-AutofillTriggerGroup" ],
|
|
193
|
+
"AutofillTriggerGroup":
|
|
194
|
+
[
|
|
195
|
+
{
|
|
196
|
+
"TriggerGroupHash": "CrateEcho",
|
|
197
|
+
"TriggerAllInputs": true,
|
|
198
|
+
"PreSolvers": [ "EchoStamp = Source + 0" ],
|
|
199
|
+
"PostSolvers": [ "Echo = Source * 10" ],
|
|
200
|
+
"MarshalOnComplete": { "Section": "Composed", "Input": "Echo" }
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"Echo": { "Name": "Echo", "Hash": "Echo", "DataType": "Number", "PictForm": { "Section": "Composed", "Group": "ComposedGroup", "Row": 1 } },
|
|
206
|
+
"Mirror":
|
|
207
|
+
{
|
|
208
|
+
"Name": "Mirror",
|
|
209
|
+
"Hash": "Mirror",
|
|
210
|
+
"DataType": "Number",
|
|
211
|
+
"PictForm":
|
|
212
|
+
{
|
|
213
|
+
"Section": "Composed",
|
|
214
|
+
"Group": "ComposedGroup",
|
|
215
|
+
"Row": 1,
|
|
216
|
+
"Providers": [ "Pict-Input-AutofillTriggerGroup" ],
|
|
217
|
+
"AutofillTriggerGroup": [ { "TriggerGroupHash": "CrateEcho", "TriggerAddress": "AppData.Orchard.Source" } ]
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"Summary":
|
|
221
|
+
{
|
|
222
|
+
"Name": "Summary",
|
|
223
|
+
"Hash": "Summary",
|
|
224
|
+
"DataType": "String",
|
|
225
|
+
"PictForm":
|
|
226
|
+
{
|
|
227
|
+
"Section": "Composed",
|
|
228
|
+
"Group": "ComposedGroup",
|
|
229
|
+
"Row": 2,
|
|
230
|
+
"InputType": "Templated",
|
|
231
|
+
"Template": "<span class=\"crate-summary\">{~D:Record.Data.Width~}x{~D:AppData.Orchard.Height~}</span>"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"Lookup":
|
|
235
|
+
{
|
|
236
|
+
"Name": "Lookup",
|
|
237
|
+
"Hash": "Lookup",
|
|
238
|
+
"DataType": "String",
|
|
239
|
+
"PictForm":
|
|
240
|
+
{
|
|
241
|
+
"Section": "Composed",
|
|
242
|
+
"Group": "ComposedGroup",
|
|
243
|
+
"Row": 2,
|
|
244
|
+
"InputType": "TemplatedEntityLookup",
|
|
245
|
+
"Providers": [ "Pict-Input-TemplatedEntityLookup" ],
|
|
246
|
+
"TemplatedEntityLookup":
|
|
247
|
+
{
|
|
248
|
+
"TriggerGroupHash": "CrateEcho",
|
|
249
|
+
"Template": "<span class=\"crate-lookup\">{~D:Record.Data.Label~}</span>",
|
|
250
|
+
"EntitiesBundle": [ { "Entity": "Crate", "Filter": "FBV~IDCrate~EQ~{~D:Record.Data.Count~}", "Destination": "AppData.Orchard.LookupTarget", "SingleRecord": true } ]
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"LookupTarget": { "Name": "Lookup Target", "Hash": "LookupTarget", "DataType": "Object" },
|
|
255
|
+
"EchoStamp": { "Name": "Echo Stamp", "Hash": "EchoStamp", "DataType": "Number" },
|
|
256
|
+
"ChartOptions": { "Name": "Chart Options", "Hash": "ChartOptions", "DataType": "Object" },
|
|
257
|
+
"ChartLabelSource": { "Name": "Chart Label Source", "Hash": "ChartLabelSource", "DataType": "Array" },
|
|
258
|
+
"ChartDatasetSource": { "Name": "Chart Dataset Source", "Hash": "ChartDatasetSource", "DataType": "Array" },
|
|
259
|
+
"Bundled":
|
|
260
|
+
{
|
|
261
|
+
"Name": "Bundled",
|
|
262
|
+
"Hash": "Bundled",
|
|
263
|
+
"DataType": "String",
|
|
264
|
+
"PictForm":
|
|
265
|
+
{
|
|
266
|
+
"Section": "Composed",
|
|
267
|
+
"Group": "ComposedGroup",
|
|
268
|
+
"Row": 3,
|
|
269
|
+
"InputType": "Option",
|
|
270
|
+
"Providers": [ "Pict-Input-Select", "Pict-Input-EntityBundleRequest" ],
|
|
271
|
+
"SelectOptions": [ { "id": "one", "text": "One" } ],
|
|
272
|
+
"EntitiesBundle": [ { "Entity": "Crate", "Filter": "FBV~IDCrate~EQ~{~D:Record.Data.Count~}", "EntityFilterTemplate": "FBV~IDCrate~EQ~{~D:Record.Data.Qty~}", "Destination": "AppData.Orchard.BundleTarget", "SingleRecord": true } ],
|
|
273
|
+
"EntityBundleTriggerGroup": "CrateEcho"
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
"BundleTarget": { "Name": "Bundle Target", "Hash": "BundleTarget", "DataType": "Object" },
|
|
277
|
+
"TabPicker":
|
|
278
|
+
{
|
|
279
|
+
"Name": "Tab Picker",
|
|
280
|
+
"Hash": "TabPicker",
|
|
281
|
+
"DataType": "String",
|
|
282
|
+
"PictForm":
|
|
283
|
+
{
|
|
284
|
+
"Section": "Measure",
|
|
285
|
+
"Group": "MeasureGroup",
|
|
286
|
+
"Row": 5,
|
|
287
|
+
"InputType": "TabSectionSelector",
|
|
288
|
+
"TabSectionSet": [ "TabOne", "TabTwo" ],
|
|
289
|
+
"TabSectionNames": [ "One", "Two" ],
|
|
290
|
+
"DefaultTabSectionHash": "TabTwo"
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
"TabOneNote": { "Name": "Tab One Note", "Hash": "TabOneNote", "DataType": "String", "PictForm": { "Section": "TabOne", "Group": "TabOneGroup", "Row": 1 } },
|
|
294
|
+
"TabTwoNote": { "Name": "Tab Two Note", "Hash": "TabTwoNote", "DataType": "String", "PictForm": { "Section": "TabTwo", "Group": "TabTwoGroup", "Row": 1 } },
|
|
295
|
+
"GroupPicker":
|
|
296
|
+
{
|
|
297
|
+
"Name": "Group Picker",
|
|
298
|
+
"Hash": "GroupPicker",
|
|
299
|
+
"DataType": "String",
|
|
300
|
+
"PictForm":
|
|
301
|
+
{
|
|
302
|
+
"Section": "Grouped",
|
|
303
|
+
"Group": "GroupPickerGroup",
|
|
304
|
+
"Row": 1,
|
|
305
|
+
"InputType": "TabGroupSelector",
|
|
306
|
+
"TabGroupSet": [ "GroupA", "GroupB" ],
|
|
307
|
+
"TabGroupNames": [ "A", "B" ],
|
|
308
|
+
"DefaultTabGroupHash": "GroupB"
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"GroupANote": { "Name": "Group A Note", "Hash": "GroupANote", "DataType": "String", "PictForm": { "Section": "Grouped", "Group": "GroupA", "Row": 1 } },
|
|
312
|
+
"GroupBNote": { "Name": "Group B Note", "Hash": "GroupBNote", "DataType": "String", "PictForm": { "Section": "Grouped", "Group": "GroupB", "Row": 1 } },
|
|
313
|
+
"ExtrasNote": { "Name": "Extras Note", "Hash": "ExtrasNote", "DataType": "String", "PictForm": { "Section": "Extras", "Group": "ExtrasGroup", "Row": 1 } },
|
|
314
|
+
"LineChart":
|
|
315
|
+
{
|
|
316
|
+
"Name": "Line Chart",
|
|
317
|
+
"Hash": "LineChart",
|
|
318
|
+
"DataType": "Object",
|
|
319
|
+
"PictForm":
|
|
320
|
+
{
|
|
321
|
+
"Section": "Measure",
|
|
322
|
+
"Group": "ChartGroup",
|
|
323
|
+
"Row": 1,
|
|
324
|
+
"InputType": "Chart",
|
|
325
|
+
"ChartType": "bar",
|
|
326
|
+
"ChartLabelsAddress": "AppData.Orchard.ChartLabelSource",
|
|
327
|
+
"ChartDatasetsAddress": "AppData.Orchard.ChartDatasetSource",
|
|
328
|
+
"ChartConfigCorePrototypeAddress": "AppData.Orchard.ChartOptions",
|
|
329
|
+
"ChartConfigCorePrototype": "GETVALUE(\"AppData.Orchard.ChartOptions\")",
|
|
330
|
+
"ChartLabelsSolver": "flatten(Rows[].Qty)",
|
|
331
|
+
"ChartDatasetsSolvers":
|
|
332
|
+
[
|
|
333
|
+
{ "Label": "Line", "DataSolver": "flatten(Rows[].Line)" },
|
|
334
|
+
{ "Label": "Scaled", "DataSolver": "flatten(Scaled)" }
|
|
335
|
+
]
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"ReferenceManifests":
|
|
340
|
+
{
|
|
341
|
+
"CrateRow":
|
|
342
|
+
{
|
|
343
|
+
"Scope": "CrateRow",
|
|
344
|
+
"Descriptors":
|
|
345
|
+
{
|
|
346
|
+
"Qty": { "Name": "Quantity", "Hash": "Qty", "DataType": "Number", "PictForm": { "Section": "Measure", "Group": "RowsGroup" } },
|
|
347
|
+
"Price": { "Name": "Price", "Hash": "Price", "DataType": "Number", "PictForm": { "Section": "Measure", "Group": "RowsGroup" } },
|
|
348
|
+
"Line": { "Name": "Line", "Hash": "Line", "DataType": "Number", "PictForm": { "Section": "Measure", "Group": "RowsGroup" } },
|
|
349
|
+
"Tally":
|
|
350
|
+
{
|
|
351
|
+
"Name": "Tally",
|
|
352
|
+
"Hash": "Tally",
|
|
353
|
+
"DataType": "Number",
|
|
354
|
+
"PictForm":
|
|
355
|
+
{
|
|
356
|
+
"Section": "Measure",
|
|
357
|
+
"Group": "RowsGroup",
|
|
358
|
+
"Providers": [ "Pict-Input-TabularTriggerGroup" ],
|
|
359
|
+
"TabularTriggerGroup": [ { "TriggerGroupHash": "CrateRowTally", "TriggerAllInputs": true, "PostSolvers": [ "TallyTotal = SUM(Rows[].Tally)" ] } ]
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
@@ -15,12 +15,28 @@ declare class PictDynamicFormsSolverBehaviors extends libPictProvider {
|
|
|
15
15
|
/** @type {string} */
|
|
16
16
|
cssHideSectionClass: string;
|
|
17
17
|
cssHideGroupClass: string;
|
|
18
|
+
/** @type {Record<string, boolean>} */
|
|
19
|
+
sectionVisibilityState: Record<string, boolean>;
|
|
20
|
+
/** @type {Record<string, boolean>} */
|
|
21
|
+
groupVisibilityState: Record<string, boolean>;
|
|
22
|
+
/** @type {Record<string, {Section: string, Method: string, Arguments: Array<any>}>} */
|
|
23
|
+
decorationState: Record<string, {
|
|
24
|
+
Section: string;
|
|
25
|
+
Method: string;
|
|
26
|
+
Arguments: Array<any>;
|
|
27
|
+
}>;
|
|
28
|
+
/** @type {boolean} */
|
|
29
|
+
decorationReplayInProgress: boolean;
|
|
18
30
|
/** @type {string} */
|
|
19
31
|
cssTabularRowHighlightClass: string;
|
|
20
32
|
/** @type {string} */
|
|
21
33
|
cssTabularColumnHighlightClass: string;
|
|
22
34
|
cssSnippet: string;
|
|
23
35
|
solverOrdinalMap: {};
|
|
36
|
+
/** @type {Record<string, Record<string, boolean>>} */
|
|
37
|
+
scopedSolverOrdinalMap: Record<string, Record<string, boolean>>;
|
|
38
|
+
/** @type {string} */
|
|
39
|
+
activeSolverScope: string;
|
|
24
40
|
setCSSSnippets(pCSSHideClass: any, pCSSSnippet: any): void;
|
|
25
41
|
cssHideClass: any;
|
|
26
42
|
addSolverFunction(pExpressionParser: any, pFunctionName: any, pFunctionAddress: any, pFunctionComment: any, pAddressParameterIndices: any): void;
|
|
@@ -57,6 +73,28 @@ declare class PictDynamicFormsSolverBehaviors extends libPictProvider {
|
|
|
57
73
|
* @returns {Array} The sorted array, or an empty array if input is not an array.
|
|
58
74
|
*/
|
|
59
75
|
sortArray(pArray: any[]): any[];
|
|
76
|
+
/**
|
|
77
|
+
* The copy a view belongs to: the salt createDistinctManifest appended to its section hash, or an empty
|
|
78
|
+
* string for a section the form declares itself.
|
|
79
|
+
*
|
|
80
|
+
* @param {any} pView - A dynamic form view.
|
|
81
|
+
*
|
|
82
|
+
* @return {string} The scope gates set while solving that view are recorded against.
|
|
83
|
+
*/
|
|
84
|
+
getViewSolverScope(pView: any): string;
|
|
85
|
+
/**
|
|
86
|
+
* Records which copy's solvers are running, so a gate one of them sets lands on that copy.
|
|
87
|
+
*
|
|
88
|
+
* @param {string} pScope - A scope from getViewSolverScope.
|
|
89
|
+
*
|
|
90
|
+
* @return {string} The scope that was active before, to restore afterwards.
|
|
91
|
+
*/
|
|
92
|
+
setActiveSolverScope(pScope: string): string;
|
|
93
|
+
/**
|
|
94
|
+
* @param {number|string} pSolverOrdinal
|
|
95
|
+
* @param {boolean} pEnabled
|
|
96
|
+
*/
|
|
97
|
+
writeSolverOrdinalGate(pSolverOrdinal: number | string, pEnabled: boolean): void;
|
|
60
98
|
/**
|
|
61
99
|
* @param {number|string} pSolverOrdinal
|
|
62
100
|
* @param {boolean|string|number} pEnabled
|
|
@@ -72,10 +110,11 @@ declare class PictDynamicFormsSolverBehaviors extends libPictProvider {
|
|
|
72
110
|
disableSolverOrdinal(pSolverOrdinal: number | string): void;
|
|
73
111
|
/**
|
|
74
112
|
* @param {number|string} pSolveOrdinal
|
|
113
|
+
* @param {string} [pScope] - The copy being solved; without one only the form's own gates apply.
|
|
75
114
|
*
|
|
76
115
|
* @return {boolean}
|
|
77
116
|
*/
|
|
78
|
-
checkSolverOrdinalEnabled(pSolveOrdinal: number | string): boolean;
|
|
117
|
+
checkSolverOrdinalEnabled(pSolveOrdinal: number | string, pScope?: string): boolean;
|
|
79
118
|
getSectionSelector(pSectionFormID: any): string;
|
|
80
119
|
setSectionVisibility(pSectionHash: any, pVisible: any): boolean;
|
|
81
120
|
/**
|
|
@@ -102,6 +141,76 @@ declare class PictDynamicFormsSolverBehaviors extends libPictProvider {
|
|
|
102
141
|
setGroupVisibility(pSectionHash: any, pGroupHash: any, pVisible: any): boolean;
|
|
103
142
|
hideGroup(pSectionHash: any, pGroupHash: any): boolean;
|
|
104
143
|
showGroup(pSectionHash: any, pGroupHash: any): boolean;
|
|
144
|
+
/**
|
|
145
|
+
* @param {string} pSectionHash
|
|
146
|
+
* @param {string} pGroupHash
|
|
147
|
+
*
|
|
148
|
+
* @return {string} - The groupVisibilityState key for a section/group pair.
|
|
149
|
+
*/
|
|
150
|
+
getGroupVisibilityStateKey(pSectionHash: string, pGroupHash: string): string;
|
|
151
|
+
/**
|
|
152
|
+
* Re-apply a section's recorded visibility (and that of its groups) after a render regenerated its DOM.
|
|
153
|
+
*
|
|
154
|
+
* Every render path -- DynamicColumns rebuild, dependent-view rebuild, row add/delete/move, the
|
|
155
|
+
* group-scoped swap in renderGroupInPlace -- repaints those elements with only their manifest
|
|
156
|
+
* CSSClass, and solvers run BEFORE the marshal that triggers them, so nothing else puts the hide
|
|
157
|
+
* back. Called from the view's onAfterRender so one restore covers them all. A section with no
|
|
158
|
+
* recorded state is left as the template rendered it.
|
|
159
|
+
*
|
|
160
|
+
* @param {string} pSectionHash - The section that was just rendered.
|
|
161
|
+
*
|
|
162
|
+
* @return {void}
|
|
163
|
+
*/
|
|
164
|
+
reapplySectionVisibility(pSectionHash: string): void;
|
|
165
|
+
/**
|
|
166
|
+
* Remember a DOM decoration a solver just applied so it can be replayed after a render.
|
|
167
|
+
*
|
|
168
|
+
* @param {string} pSectionHash - The section the decoration targets.
|
|
169
|
+
* @param {string} pKey - Stable identity for what is decorated; a repeat overwrites it.
|
|
170
|
+
* @param {string} pMethod - The method on this provider that applies it.
|
|
171
|
+
* @param {Array<any>} pArguments - The arguments to replay it with.
|
|
172
|
+
*
|
|
173
|
+
* @return {void}
|
|
174
|
+
*/
|
|
175
|
+
recordDecoration(pSectionHash: string, pKey: string, pMethod: string, pArguments: Array<any>): void;
|
|
176
|
+
/**
|
|
177
|
+
* Replay every decoration recorded against a section after a render repainted its markup.
|
|
178
|
+
*
|
|
179
|
+
* Highlight classes and inline colors live on rows, cells and containers that the section
|
|
180
|
+
* template regenerates, exactly like the hide classes. Replay is idempotent: each entry is
|
|
181
|
+
* keyed by its target, and a recorded "remove" simply re-runs a removal against fresh markup.
|
|
182
|
+
*
|
|
183
|
+
* @param {string} pSectionHash - The section that was just rendered.
|
|
184
|
+
*
|
|
185
|
+
* @return {void}
|
|
186
|
+
*/
|
|
187
|
+
reapplySectionDecorations(pSectionHash: string): void;
|
|
188
|
+
/**
|
|
189
|
+
* Restore everything a solver put on this section's DOM that a render just wiped -- visibility
|
|
190
|
+
* first, then decorations. This is what the section view calls from its own onAfterRender.
|
|
191
|
+
*
|
|
192
|
+
* @param {string} pSectionHash - The section that was just rendered.
|
|
193
|
+
*
|
|
194
|
+
* @return {void}
|
|
195
|
+
*/
|
|
196
|
+
reapplySectionDOMState(pSectionHash: string): void;
|
|
197
|
+
/**
|
|
198
|
+
* Re-render a single group in place, leaving the rest of the section's DOM untouched.
|
|
199
|
+
*
|
|
200
|
+
* The section template is one string (wrap/section prefixes + every group's
|
|
201
|
+
* generateGroupLayoutTemplate + postfixes), so a normal render rebuilds all of it.
|
|
202
|
+
* This regenerates just the requested group's slice and swaps that one element.
|
|
203
|
+
*
|
|
204
|
+
* Init is then run the normal way (the view's own post-render pass) rather than being
|
|
205
|
+
* hand-scoped: input providers guard their own re-initialization (a select2 picker
|
|
206
|
+
* checks for an existing instance before creating one), so untouched groups no-op and
|
|
207
|
+
* only the freshly-rendered group actually initializes.
|
|
208
|
+
*
|
|
209
|
+
* @param {import('../views/Pict-View-DynamicForm.js')} pView - The section view.
|
|
210
|
+
* @param {string} pGroupHash - The group to re-render.
|
|
211
|
+
* @return {boolean} - True if the group was rendered in place; false to fall back to a full render.
|
|
212
|
+
*/
|
|
213
|
+
renderGroupInPlace(pView: import("../views/Pict-View-DynamicForm.js"), pGroupHash: string): boolean;
|
|
105
214
|
/**
|
|
106
215
|
* Causes a tabular section to refresh its display
|
|
107
216
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Provider-DynamicFormSolverBehaviors.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicFormSolverBehaviors.js"],"names":[],"mappings":";AAaA;;;;;GAKG;AACH;IAeE,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;
|
|
1
|
+
{"version":3,"file":"Pict-Provider-DynamicFormSolverBehaviors.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicFormSolverBehaviors.js"],"names":[],"mappings":";AAaA;;;;;GAKG;AACH;IAeE,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;IAKzD,sCAAsC;IACtC,wBADW,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CACF;IAChC,sCAAsC;IACtC,sBADW,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CACJ;IAK9B,uFAAuF;IACvF,iBADW,MAAM,CAAC,MAAM,EAAE;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;KAAC,CAAC,CAC1D;IACzB,sBAAsB;IACtB,4BADW,OAAO,CACqB;IACvC,qBAAqB;IACrB,6BADW,MAAM,CAC8C;IAC/D,qBAAqB;IACrB,gCADW,MAAM,CACoD;IACrE,mBAKuJ;IAEvJ,qBAA0B;IAI1B,sDAAsD;IACtD,wBADW,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAClB;IAChC,qBAAqB;IACrB,mBADW,MAAM,CACU;IAK5B,2DAM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AM,GAAC,MAAM,UACb,MAAM,cACN,MAAM,GAAC,MAAM,GAAC,OAAO,GACnB,OAAO,CAyBnB;IAED;;;;;;OAMG;IACH,yBAHW,MAAM,GACJ,GAAG,CAoBf;IAED;;;;;;OAMG;IACH,gCAHW,MAAM,GACJ,GAAG,CAoBf;IAED;;;;;;;;;OASG;IACH,iCAJW,MAAM,kBACN,MAAM,GACJ,GAAG,CAkBf;IAED;;;;;;;;;;;OAWG;IACH,wCANW,MAAM,cACN,MAAM,aACN,MAAM,GAAC,MAAM,kBACb,MAAM,GACJ,GAAG,CAwEf;IAED,+BAWC;IAED;;;;;;;;OAQG;IACH,mCAHa,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAC,IAAI,CA2BpC;IAED;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,iCARW,MAAM,WACN,MAAM,SACN,MAAM,aACN,MAAM,UACN,GAAG,GAED,GAAG,CA8Df;CACD;;;;;AAhjDD,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":";AAkCA;;GAEG;AACH;IAEC;;;;;;OAMG;IACH,oBAJW,OAAO,MAAM,CAAC,aACd,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,iBACnB,MAAM,EA0ChB;IAnCA,yDAAyD;IACzD,MADW,OAAO,MAAM,CAAC,GAAG;QAAE,gBAAgB,EAAE,GAAG,CAAA;KAAE,CAC5C;IACT,uHAAuH;IACvH,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,qCAAqC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,GAAG,CAAC;QAAC,gBAAgB,EAAE,GAAG,CAAA;KAAE,CACzG;IAQV,yBAA0C;IA0B3C,0CAsBC;IAED;;;;;MAKE;IACF,qDAgBC;IAED;;;;;OAKG;IACH,oDA8CC;IAED;;;;;;OAMG;IACH,6BAJW,MAAM,YACN,OAAO,GACL,GAAG,CAyBf;IAED;;;;;;;;;OASG;IACH,qBALW,MAAM,GAAC,MAAM,cACb,OAAO,aACP,MAAM,GACJ,MAAM,GAAC,SAAS,CA8B5B;IAED,yEAAyE;IAEzE;;;;;;OAMG;IACH,sBAJW,OAAO,mCAAmC,CAAC,YAC3C,KAAK;iBANS,MAAM;oBAAc,MAAM;MAM3B,WACb,MAAM,QAsDhB;IADA;;;;;MAA4C;IAG7C;;;;;;;;;;;OAWG;IACH,2BAPW,OAAO,mCAAmC,CAAC,qBAC3C,KAAK,CAAC,MAAM,CAAC,WACb,MAAM,YACN,MAAM,iDAEN,OAAO,QAyCjB;IAED;;;;;;;;;OASG;IACH,wDAJW,MAAM,iDAEN,OAAO,QA2EjB;IAED;;;;;;;OAOG;IACH,gEAJW,MAAM,iDAEN,OAAO,QAkDjB;IAED;;;;;;OAMG;IACH,sDAHW,MAAM,gCA2BhB;IAED;;;;;OAKG;IACH,wEAFW,OAAO,QAiCjB;IAED;;;;;;;;OAQG;IACH,gCAJW,MAAM,yBAWhB;IAED;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,yBANW,QAAM,MAAM,EAAE,yBACd,OAAO,GAGN,KAAK,CAAC,MAAM,CAAC,CAiGxB;IAFA;;;;;;MAAuC;CAGxC;;;;;AAtsBD,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAS3B"}
|
|
@@ -97,6 +97,22 @@ declare class DynamicTabularData extends libPictProvider {
|
|
|
97
97
|
* @returns {boolean} - Returns true if the row was successfully deleted, false otherwise.
|
|
98
98
|
*/
|
|
99
99
|
deleteDynamicTableRow(pView: any, pGroupIndex: number, pRowIndex: number | string): boolean;
|
|
100
|
+
/**
|
|
101
|
+
* Render every view in pViewsToRender while preserving pRecordSetAddress's data in
|
|
102
|
+
* the model. Re-rendering a table that contains entity-selector cells (Material /
|
|
103
|
+
* Organization / Product / etc.) destroys and recreates their select2 widgets; the
|
|
104
|
+
* transient empty widget gets read back into the model and wipes the selected value
|
|
105
|
+
* AND its resolved __Record for EVERY row -- the "selected Source / Name disappears
|
|
106
|
+
* after adding or deleting a row" data-loss bug. Because it clobbers the saved
|
|
107
|
+
* FormData, the value is then also missing from the exported PDF. A render() must be
|
|
108
|
+
* model-non-destructive, so snapshot the record set before rendering and restore any
|
|
109
|
+
* cleared fields afterward. No-op for plain (non-entity) tables, where render never
|
|
110
|
+
* changes the model (snapshot == post-render state, restore is a no-op).
|
|
111
|
+
*
|
|
112
|
+
* @param {string} pRecordSetAddress - RecordSetAddress of the table being re-rendered.
|
|
113
|
+
* @param {Array<Object>} pViewsToRender - Views bound to that record set to render.
|
|
114
|
+
*/
|
|
115
|
+
_renderViewsPreservingRecordSet(pRecordSetAddress: string, pViewsToRender: Array<any>): void;
|
|
100
116
|
/**
|
|
101
117
|
* Rebuild every OTHER section-form view whose DynamicColumns are sourced from
|
|
102
118
|
* pSourceRecordSetAddress: re-resolve their generated columns and rebuild their
|
|
@@ -153,7 +169,7 @@ declare class DynamicTabularData extends libPictProvider {
|
|
|
153
169
|
*
|
|
154
170
|
* @param {Object} pGroup - The reordered group (its RecordSetAddress drives dependents).
|
|
155
171
|
*/
|
|
156
|
-
_repaintAfterRowReorder(pGroup: any): void;
|
|
172
|
+
_repaintAfterRowReorder(pView: any, pGroup: any): void;
|
|
157
173
|
}
|
|
158
174
|
declare namespace DynamicTabularData {
|
|
159
175
|
export { _DefaultProviderConfiguration as default_configuration, ElementDescriptor };
|
|
@@ -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;IAcE,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,
|
|
1
|
+
{"version":3,"file":"Pict-Provider-DynamicTabularData.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicTabularData.js"],"names":[],"mappings":";AAaA;;;GAGG;AAEH;;GAEG;AACH;IAcE,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,QAmEhB;IAGD;;;;;OAKG;IACH,4DAFW,MAAM,QAyBhB;IAED;;;;;;;;OAQG;IACH,iDALW,MAAM,aACN,MAAM,GAAC,MAAM,gBACb,MAAM,GACJ,OAAO,CAoCnB;IAED;;;;;;;OAOG;IACH,iDAJW,MAAM,aACN,MAAM,GAAC,MAAM,GACX,OAAO,CAqCnB;IAED;;;;;;;OAOG;IACH,+CAJW,MAAM,aACN,MAAM,GAAC,MAAM,GACX,OAAO,CA0CnB;IAGD;;;;;;;OAOG;IACH,+CAJW,MAAM,aACN,MAAM,GAAC,MAAM,GACX,OAAO,CA2EnB;IAED;;;;;;;;;;;;;;OAcG;IACH,mDAHW,MAAM,kBACN,KAAK,KAAQ,QAoCvB;IAED;;;;;;;;;OASG;IACH,6DAFW,MAAM,QAqDhB;IAED;;;;;;;;;;;OAWG;IACH,2DAJW,MAAM,iBACN,MAAM,mBACN,MAAM,QAoFhB;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,yDALW,MAAM,aACN,MAAM,aACN,MAAM,WACN,MAAM,QAwFhB;IAED;;;;;;;;;;OAUG;IACH,uDA4BC;CACD;;;;;AAx2BD,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAS3B;;;;;UAIW,MAAM"}
|
|
@@ -97,6 +97,37 @@ declare class PictInputExtensionProvider extends libPictProvider {
|
|
|
97
97
|
* @returns {boolean} - Returns true if the data was successfully marshaled to the form.
|
|
98
98
|
*/
|
|
99
99
|
onDataMarshalToFormTabular(pView: any, pGroup: any, pInput: any, pValue: any, pHTMLSelector: string, pRowIndex: number, pTransactionGUID: string): boolean;
|
|
100
|
+
/**
|
|
101
|
+
* Repaint this input's rendered display from the model after a tabular row REORDER
|
|
102
|
+
* (move up/down/set-index), which preserves the row count but changes which row holds
|
|
103
|
+
* which value. A plain marshal updates simple inputs in place, but stateful widgets
|
|
104
|
+
* (e.g. an entity-selector's select2) will not switch to a value whose option isn't the
|
|
105
|
+
* one currently shown; those providers override this to force their display to the row's
|
|
106
|
+
* current value. Default is a no-op.
|
|
107
|
+
*
|
|
108
|
+
* @param {Object} pView - The view object.
|
|
109
|
+
* @param {Object} pGroup - The group definition object.
|
|
110
|
+
* @param {number} pRow - The row index.
|
|
111
|
+
* @param {Object} pInput - The input object.
|
|
112
|
+
* @param {any} pValue - The value to display.
|
|
113
|
+
* @param {string} pHTMLSelector - The HTML selector.
|
|
114
|
+
* @param {string} pTransactionGUID - The transaction GUID for the event dispatch.
|
|
115
|
+
* @returns {boolean} - Returns true.
|
|
116
|
+
*/
|
|
117
|
+
onTabularRowReorderRepaint(pView: any, pGroup: any, pRow: number, pInput: any, pValue: any, pHTMLSelector: string, pTransactionGUID: string): boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Tabular sibling of onTabularRowReorderRepaint. Default is a no-op.
|
|
120
|
+
*
|
|
121
|
+
* @param {Object} pView - The view object.
|
|
122
|
+
* @param {Object} pGroup - The group definition object.
|
|
123
|
+
* @param {Object} pInput - The input object.
|
|
124
|
+
* @param {any} pValue - The value to display.
|
|
125
|
+
* @param {string} pHTMLSelector - The HTML selector.
|
|
126
|
+
* @param {number} pRowIndex - The row index of the tabular data.
|
|
127
|
+
* @param {string} pTransactionGUID - The transaction GUID for the event dispatch.
|
|
128
|
+
* @returns {boolean} - Returns true.
|
|
129
|
+
*/
|
|
130
|
+
onTabularRowReorderRepaintTabular(pView: any, pGroup: any, pInput: any, pValue: any, pHTMLSelector: string, pRowIndex: number, pTransactionGUID: string): boolean;
|
|
100
131
|
/**
|
|
101
132
|
* Handles data requests for the Pict-Provider-InputExtension.
|
|
102
133
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Provider-InputExtension.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-InputExtension.js"],"names":[],"mappings":";AAaA;;;;GAIG;AACH;IAgBC;;;;;OAKG;IACH,6BAHW,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;OAMG;IACH,oCAJW,MAAM,aACN,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;;;;;;;OAYG;IACH,2EAJW,GAAG,iBAEH,MAAM,oBADN,MAAM,WAMhB;IAED;;;;;;;;;;;;OAYG;IACH,uEALW,GAAG,iBACH,MAAM,aAEN,MAAM,oBADN,MAAM,WAMhB;IAED;;;;;;;;;;OAUG;IACH,8CAJW,GAAG,iBACH,MAAM,oBACN,MAAM,WAKhB;IAED;;;;;;;;;OASG;IACH,qDALW,GAAG,iBACH,MAAM,aACN,MAAM,oBACN,MAAM,WAKhB;IAED;;;;;;;;;;;OAWG;IACH,mDAPW,MAAM,uBAEN,GAAG,iBACH,MAAM,oBACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;;;;OAWG;IACH,yEANW,GAAG,iBACH,MAAM,aACN,MAAM,oBACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;OAQG;IACH,+CAJW,GAAG,iBACH,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;;OASG;IACH,sDALW,GAAG,iBACH,MAAM,aACN,MAAM,GACJ,OAAO,CAKnB;IAGD;;;;;;;;;;OAUG;IACH,yCANW,GAAG,iBACH,MAAM,UACN,MAAM,oBACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;;;OAUG;IACH,wDANW,GAAG,iBACH,MAAM,UACN,MAAM,oBACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;;;;OAWG;IACH,gDAPW,GAAG,iBACH,MAAM,aACN,MAAM,UACN,MAAM,oBACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;;;;OAWG;IACH,+DAPW,GAAG,iBACH,MAAM,aACN,MAAM,UACN,MAAM,oBACN,MAAM,GACJ,OAAO,CAKnB;CACD;;;;;
|
|
1
|
+
{"version":3,"file":"Pict-Provider-InputExtension.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-InputExtension.js"],"names":[],"mappings":";AAaA;;;;GAIG;AACH;IAgBC;;;;;OAKG;IACH,6BAHW,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;OAMG;IACH,oCAJW,MAAM,aACN,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;;;;;;;OAYG;IACH,2EAJW,GAAG,iBAEH,MAAM,oBADN,MAAM,WAMhB;IAED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