@genesislcap/foundation-forms 14.408.0 → 14.409.0
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/README.md +6 -818
- package/dist/custom-elements.json +226 -226
- package/package.json +15 -15
- package/docs/api/foundation-forms.arrayrendereroptions.md +0 -23
- package/docs/api/foundation-forms.bulkrowstatus.md +0 -22
- package/docs/api/foundation-forms.bulkrowsubmitstatus.md +0 -13
- package/docs/api/foundation-forms.bulksubmitfaileditem.md +0 -20
- package/docs/api/foundation-forms.bulksubmitresult.md +0 -18
- package/docs/api/foundation-forms.bulksubmitsuccessitem.md +0 -17
- package/docs/api/foundation-forms.categorizationrendereroptions.md +0 -17
- package/docs/api/foundation-forms.childuischemaresolver.md +0 -15
- package/docs/api/foundation-forms.connectedrenderersoptions.md +0 -23
- package/docs/api/foundation-forms.csvmappingresult.mappedrows.md +0 -13
- package/docs/api/foundation-forms.csvmappingresult.md +0 -77
- package/docs/api/foundation-forms.csvmappingresult.unmappedcolumns.md +0 -13
- package/docs/api/foundation-forms.csvparseresult.errors.md +0 -13
- package/docs/api/foundation-forms.csvparseresult.headers.md +0 -13
- package/docs/api/foundation-forms.csvparseresult.md +0 -96
- package/docs/api/foundation-forms.csvparseresult.rows.md +0 -13
- package/docs/api/foundation-forms.downloadcsvtemplate.md +0 -74
- package/docs/api/foundation-forms.filters.allsavedfilters.md +0 -11
- package/docs/api/foundation-forms.filters.connectedcallback.md +0 -15
- package/docs/api/foundation-forms.filters.data.md +0 -13
- package/docs/api/foundation-forms.filters.deletefilter.md +0 -15
- package/docs/api/foundation-forms.filters.filtername.md +0 -11
- package/docs/api/foundation-forms.filters.filternamechanged.md +0 -64
- package/docs/api/foundation-forms.filters.jsonschema.md +0 -18
- package/docs/api/foundation-forms.filters.kvstorage.md +0 -11
- package/docs/api/foundation-forms.filters.loadallsavedfilters.md +0 -15
- package/docs/api/foundation-forms.filters.loadfilterdata.md +0 -50
- package/docs/api/foundation-forms.filters.md +0 -335
- package/docs/api/foundation-forms.filters.prefix.md +0 -13
- package/docs/api/foundation-forms.filters.renderers.md +0 -13
- package/docs/api/foundation-forms.filters.resourcename.md +0 -13
- package/docs/api/foundation-forms.filters.savefilter.md +0 -15
- package/docs/api/foundation-forms.filters.showfilterpersistencecontrols.md +0 -13
- package/docs/api/foundation-forms.filters.uischema.md +0 -50
- package/docs/api/foundation-forms.filters.value.md +0 -13
- package/docs/api/foundation-forms.filtersrenderers.md +0 -13
- package/docs/api/foundation-forms.form.additionalrenderers.md +0 -13
- package/docs/api/foundation-forms.form.approvalmessagelabel.md +0 -13
- package/docs/api/foundation-forms.form.bulkinsert.md +0 -13
- package/docs/api/foundation-forms.form.bulkinsertmaxitems.md +0 -13
- package/docs/api/foundation-forms.form.bulkinsertminitems.md +0 -13
- package/docs/api/foundation-forms.form.clearrowsubmitstatuses.md +0 -17
- package/docs/api/foundation-forms.form.confirmationmessage.md +0 -13
- package/docs/api/foundation-forms.form.data.md +0 -13
- package/docs/api/foundation-forms.form.downloadcsvtemplate.md +0 -17
- package/docs/api/foundation-forms.form.handlecsvfileselected.md +0 -54
- package/docs/api/foundation-forms.form.hidesubmit.md +0 -13
- package/docs/api/foundation-forms.form.jsonschema.md +0 -18
- package/docs/api/foundation-forms.form.md +0 -434
- package/docs/api/foundation-forms.form.prefix.md +0 -13
- package/docs/api/foundation-forms.form.readonly.md +0 -13
- package/docs/api/foundation-forms.form.renderers.md +0 -13
- package/docs/api/foundation-forms.form.reset.md +0 -54
- package/docs/api/foundation-forms.form.resourcename.md +0 -13
- package/docs/api/foundation-forms.form.rowsubmitstatuses.md +0 -13
- package/docs/api/foundation-forms.form.setapprovalmessage.md +0 -13
- package/docs/api/foundation-forms.form.submitsinglerow.md +0 -56
- package/docs/api/foundation-forms.form.uischema.md +0 -50
- package/docs/api/foundation-forms.generatecsvtemplate.md +0 -104
- package/docs/api/foundation-forms.getanyoferrormessage.md +0 -96
- package/docs/api/foundation-forms.grouprendereroptions.md +0 -15
- package/docs/api/foundation-forms.labelplacementoptions.md +0 -17
- package/docs/api/foundation-forms.labelplacementtype.md +0 -13
- package/docs/api/foundation-forms.mapcsvtoschema.md +0 -88
- package/docs/api/foundation-forms.md +0 -516
- package/docs/api/foundation-forms.multicolumndropdowncontrolrendererentry.md +0 -15
- package/docs/api/foundation-forms.multicolumndropdowncontrolrenderertemplate.md +0 -82
- package/docs/api/foundation-forms.multicolumndropdownrendereroptions.md +0 -25
- package/docs/api/foundation-forms.mustmatch.md +0 -62
- package/docs/api/foundation-forms.numberrendereroptions.md +0 -17
- package/docs/api/foundation-forms.parsecsv.md +0 -56
- package/docs/api/foundation-forms.rendererentry.md +0 -30
- package/docs/api/foundation-forms.renderers.md +0 -13
- package/docs/api/foundation-forms.standardrendereroptions.md +0 -22
- package/docs/api/foundation-forms.stepperorientationoptions.md +0 -17
- package/docs/api/foundation-forms.stepperorientationtype.md +0 -13
- package/docs/api/foundation-forms.stepperrendereroptions.md +0 -15
- package/docs/api/foundation-forms.stringrendereroptions.md +0 -17
- package/docs/api/foundation-forms.uischema.md +0 -19
- package/docs/api/foundation-forms.uischemaelement.md +0 -22
- package/docs/api/foundation-forms.uischemaelementoptions.md +0 -15
- package/docs/api/foundation-forms.uischemaelementtype.md +0 -13
- package/docs/api/foundation-forms.uischemaoptions.md +0 -15
- package/docs/api/index.md +0 -30
- package/docs/api-report.md.api.md +0 -440
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-forms](./foundation-forms.md) > [Form](./foundation-forms.form.md) > [jsonSchema](./foundation-forms.form.jsonschema.md)
|
|
4
|
-
|
|
5
|
-
## Form.jsonSchema property
|
|
6
|
-
|
|
7
|
-
Alternatively to providing [Form.resourceName](./foundation-forms.form.resourcename.md) you can hardcode the JSON schema on the client.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
jsonSchema: JSONSchema7;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Remarks
|
|
16
|
-
|
|
17
|
-
Use this when you want to avoid fetching metadata from the server but be aware that it could get out of sync if metadata changes on the server.
|
|
18
|
-
|
|
@@ -1,434 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-forms](./foundation-forms.md) > [Form](./foundation-forms.form.md)
|
|
4
|
-
|
|
5
|
-
## Form class
|
|
6
|
-
|
|
7
|
-
Foundation form component for automatically generated forms based on json schema obtained from the api, supplied initial data or supplied JSON schema. Allowing customisable form elements using UI schema and set of custom renderers
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare class Form extends Form_base
|
|
13
|
-
```
|
|
14
|
-
**Extends:** Form\_base
|
|
15
|
-
|
|
16
|
-
## Properties
|
|
17
|
-
|
|
18
|
-
<table><thead><tr><th>
|
|
19
|
-
|
|
20
|
-
Property
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
</th><th>
|
|
24
|
-
|
|
25
|
-
Modifiers
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
</th><th>
|
|
29
|
-
|
|
30
|
-
Type
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
</th><th>
|
|
34
|
-
|
|
35
|
-
Description
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</th></tr></thead>
|
|
39
|
-
<tbody><tr><td>
|
|
40
|
-
|
|
41
|
-
[additionalRenderers](./foundation-forms.form.additionalrenderers.md)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
</td><td>
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
</td><td>
|
|
48
|
-
|
|
49
|
-
[RendererEntry](./foundation-forms.rendererentry.md)<!-- -->\[\]
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
</td><td>
|
|
53
|
-
|
|
54
|
-
Allows to provide set of additional renderers used by the form.
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
</td></tr>
|
|
58
|
-
<tr><td>
|
|
59
|
-
|
|
60
|
-
[approvalMessageLabel](./foundation-forms.form.approvalmessagelabel.md)
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
</td><td>
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
</td><td>
|
|
67
|
-
|
|
68
|
-
string
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
</td><td>
|
|
72
|
-
|
|
73
|
-
Label for the approval message field in the approval dialog.
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
</td></tr>
|
|
77
|
-
<tr><td>
|
|
78
|
-
|
|
79
|
-
[bulkInsert](./foundation-forms.form.bulkinsert.md)
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
</td><td>
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
</td><td>
|
|
86
|
-
|
|
87
|
-
boolean
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
</td><td>
|
|
91
|
-
|
|
92
|
-
When enabled, transforms the form into bulk insert mode where multiple records can be added. The JSON schema will be wrapped as an array, and each item will be submitted separately.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
</td></tr>
|
|
96
|
-
<tr><td>
|
|
97
|
-
|
|
98
|
-
[bulkInsertMaxItems](./foundation-forms.form.bulkinsertmaxitems.md)
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
</td><td>
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
</td><td>
|
|
105
|
-
|
|
106
|
-
number \| undefined
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
</td><td>
|
|
110
|
-
|
|
111
|
-
Maximum number of items allowed in bulk insert mode. If not set, no maximum is enforced.
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
</td></tr>
|
|
115
|
-
<tr><td>
|
|
116
|
-
|
|
117
|
-
[bulkInsertMinItems](./foundation-forms.form.bulkinsertminitems.md)
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
</td><td>
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
</td><td>
|
|
124
|
-
|
|
125
|
-
number
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
</td><td>
|
|
129
|
-
|
|
130
|
-
Minimum number of items required in bulk insert mode.
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
</td></tr>
|
|
134
|
-
<tr><td>
|
|
135
|
-
|
|
136
|
-
[confirmationMessage](./foundation-forms.form.confirmationmessage.md)
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
</td><td>
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
</td><td>
|
|
143
|
-
|
|
144
|
-
string
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
</td><td>
|
|
148
|
-
|
|
149
|
-
Optional confirmation message to display before form submission. If set, a confirmation dialog will be shown when the user clicks submit.
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
</td></tr>
|
|
153
|
-
<tr><td>
|
|
154
|
-
|
|
155
|
-
[data](./foundation-forms.form.data.md)
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
</td><td>
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
</td><td>
|
|
162
|
-
|
|
163
|
-
any
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
</td><td>
|
|
167
|
-
|
|
168
|
-
Initial data for the form.
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
</td></tr>
|
|
172
|
-
<tr><td>
|
|
173
|
-
|
|
174
|
-
[hideSubmit](./foundation-forms.form.hidesubmit.md)
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
</td><td>
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
</td><td>
|
|
181
|
-
|
|
182
|
-
boolean
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
</td><td>
|
|
186
|
-
|
|
187
|
-
Controls the visibility of the submit button.
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
</td></tr>
|
|
191
|
-
<tr><td>
|
|
192
|
-
|
|
193
|
-
[jsonSchema](./foundation-forms.form.jsonschema.md)
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
</td><td>
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
</td><td>
|
|
200
|
-
|
|
201
|
-
JSONSchema7
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
</td><td>
|
|
205
|
-
|
|
206
|
-
Alternatively to providing [Form.resourceName](./foundation-forms.form.resourcename.md) you can hardcode the JSON schema on the client.
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
</td></tr>
|
|
210
|
-
<tr><td>
|
|
211
|
-
|
|
212
|
-
[prefix](./foundation-forms.form.prefix.md)
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
</td><td>
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
</td><td>
|
|
219
|
-
|
|
220
|
-
string
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
</td><td>
|
|
224
|
-
|
|
225
|
-
Name of the design system prefix that will be used in renderers.
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
</td></tr>
|
|
229
|
-
<tr><td>
|
|
230
|
-
|
|
231
|
-
[readonly](./foundation-forms.form.readonly.md)
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
</td><td>
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
</td><td>
|
|
238
|
-
|
|
239
|
-
boolean
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
</td><td>
|
|
243
|
-
|
|
244
|
-
Allows you to enable read-only mode, which disables all input on the form and hides the submit button.
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
</td></tr>
|
|
248
|
-
<tr><td>
|
|
249
|
-
|
|
250
|
-
[renderers](./foundation-forms.form.renderers.md)
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
</td><td>
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
</td><td>
|
|
257
|
-
|
|
258
|
-
[RendererEntry](./foundation-forms.rendererentry.md)<!-- -->\[\]
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
</td><td>
|
|
262
|
-
|
|
263
|
-
Allows to provide the main set of renderers used by the form. If not provided, the built-in renderers will be used by default.
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
</td></tr>
|
|
267
|
-
<tr><td>
|
|
268
|
-
|
|
269
|
-
[resourceName](./foundation-forms.form.resourcename.md)
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
</td><td>
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
</td><td>
|
|
276
|
-
|
|
277
|
-
string
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
</td><td>
|
|
281
|
-
|
|
282
|
-
Name of the backend resource which will provide metadata used to generate form and later used for submitting data
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
</td></tr>
|
|
286
|
-
<tr><td>
|
|
287
|
-
|
|
288
|
-
[rowSubmitStatuses](./foundation-forms.form.rowsubmitstatuses.md)
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
</td><td>
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
</td><td>
|
|
295
|
-
|
|
296
|
-
Map<number, [BulkRowStatus](./foundation-forms.bulkrowstatus.md)<!-- -->>
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
</td><td>
|
|
300
|
-
|
|
301
|
-
Tracks the submission status for each row in bulk insert mode. Key is the row index, value is the status object.
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
</td></tr>
|
|
305
|
-
<tr><td>
|
|
306
|
-
|
|
307
|
-
[setApprovalMessage](./foundation-forms.form.setapprovalmessage.md)
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
</td><td>
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
</td><td>
|
|
314
|
-
|
|
315
|
-
boolean
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
</td><td>
|
|
319
|
-
|
|
320
|
-
When enabled, adds an APPROVAL\_MESSAGE field to the form schema. This field will be sent at root level alongside DETAILS when submitting.
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
</td></tr>
|
|
324
|
-
<tr><td>
|
|
325
|
-
|
|
326
|
-
[uischema](./foundation-forms.form.uischema.md)
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
</td><td>
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
</td><td>
|
|
333
|
-
|
|
334
|
-
[UiSchema](./foundation-forms.uischema.md)
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
</td><td>
|
|
338
|
-
|
|
339
|
-
UI schema used to define configuration of the layout and elements in the form Check [UiSchema](./foundation-forms.uischema.md) for possible options
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
</td></tr>
|
|
343
|
-
</tbody></table>
|
|
344
|
-
|
|
345
|
-
## Methods
|
|
346
|
-
|
|
347
|
-
<table><thead><tr><th>
|
|
348
|
-
|
|
349
|
-
Method
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
</th><th>
|
|
353
|
-
|
|
354
|
-
Modifiers
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
</th><th>
|
|
358
|
-
|
|
359
|
-
Description
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
</th></tr></thead>
|
|
363
|
-
<tbody><tr><td>
|
|
364
|
-
|
|
365
|
-
[clearRowSubmitStatuses()](./foundation-forms.form.clearrowsubmitstatuses.md)
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
</td><td>
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
</td><td>
|
|
372
|
-
|
|
373
|
-
Clears all row submit statuses, typically called when resetting the form.
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
</td></tr>
|
|
377
|
-
<tr><td>
|
|
378
|
-
|
|
379
|
-
[downloadCsvTemplate()](./foundation-forms.form.downloadcsvtemplate.md)
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
</td><td>
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
</td><td>
|
|
386
|
-
|
|
387
|
-
Downloads a CSV template file with headers and sample data based on the schema. If a UI schema is provided, it will be used to determine which fields to include and in what order. Hidden fields will be excluded from the template.
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
</td></tr>
|
|
391
|
-
<tr><td>
|
|
392
|
-
|
|
393
|
-
[handleCsvFileSelected(event)](./foundation-forms.form.handlecsvfileselected.md)
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
</td><td>
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
</td><td>
|
|
400
|
-
|
|
401
|
-
Handles CSV file selection for bulk import. Parses the CSV content and appends it to existing form items.
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
</td></tr>
|
|
405
|
-
<tr><td>
|
|
406
|
-
|
|
407
|
-
[reset(clearData)](./foundation-forms.form.reset.md)
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
</td><td>
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
</td><td>
|
|
414
|
-
|
|
415
|
-
Reset the form state
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
</td></tr>
|
|
419
|
-
<tr><td>
|
|
420
|
-
|
|
421
|
-
[submitSingleRow(index)](./foundation-forms.form.submitsinglerow.md)
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
</td><td>
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
</td><td>
|
|
428
|
-
|
|
429
|
-
Submits a single row in bulk insert mode.
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
</td></tr>
|
|
433
|
-
</tbody></table>
|
|
434
|
-
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-forms](./foundation-forms.md) > [Form](./foundation-forms.form.md) > [prefix](./foundation-forms.form.prefix.md)
|
|
4
|
-
|
|
5
|
-
## Form.prefix property
|
|
6
|
-
|
|
7
|
-
Name of the design system prefix that will be used in renderers.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
prefix: string;
|
|
13
|
-
```
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-forms](./foundation-forms.md) > [Form](./foundation-forms.form.md) > [readonly](./foundation-forms.form.readonly.md)
|
|
4
|
-
|
|
5
|
-
## Form.readonly property
|
|
6
|
-
|
|
7
|
-
Allows you to enable read-only mode, which disables all input on the form and hides the submit button.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
readonly: boolean;
|
|
13
|
-
```
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-forms](./foundation-forms.md) > [Form](./foundation-forms.form.md) > [renderers](./foundation-forms.form.renderers.md)
|
|
4
|
-
|
|
5
|
-
## Form.renderers property
|
|
6
|
-
|
|
7
|
-
Allows to provide the main set of renderers used by the form. If not provided, the built-in renderers will be used by default.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
renderers: RendererEntry[];
|
|
13
|
-
```
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-forms](./foundation-forms.md) > [Form](./foundation-forms.form.md) > [reset](./foundation-forms.form.reset.md)
|
|
4
|
-
|
|
5
|
-
## Form.reset() method
|
|
6
|
-
|
|
7
|
-
Reset the form state
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
reset(clearData?: boolean): void;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
<table><thead><tr><th>
|
|
18
|
-
|
|
19
|
-
Parameter
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</th><th>
|
|
23
|
-
|
|
24
|
-
Type
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</th><th>
|
|
28
|
-
|
|
29
|
-
Description
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</th></tr></thead>
|
|
33
|
-
<tbody><tr><td>
|
|
34
|
-
|
|
35
|
-
clearData
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
boolean
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
_(Optional)_
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
</tbody></table>
|
|
50
|
-
|
|
51
|
-
**Returns:**
|
|
52
|
-
|
|
53
|
-
void
|
|
54
|
-
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-forms](./foundation-forms.md) > [Form](./foundation-forms.form.md) > [resourceName](./foundation-forms.form.resourcename.md)
|
|
4
|
-
|
|
5
|
-
## Form.resourceName property
|
|
6
|
-
|
|
7
|
-
Name of the backend resource which will provide metadata used to generate form and later used for submitting data
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
resourceName: string;
|
|
13
|
-
```
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-forms](./foundation-forms.md) > [Form](./foundation-forms.form.md) > [rowSubmitStatuses](./foundation-forms.form.rowsubmitstatuses.md)
|
|
4
|
-
|
|
5
|
-
## Form.rowSubmitStatuses property
|
|
6
|
-
|
|
7
|
-
Tracks the submission status for each row in bulk insert mode. Key is the row index, value is the status object.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
rowSubmitStatuses: Map<number, BulkRowStatus>;
|
|
13
|
-
```
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-forms](./foundation-forms.md) > [Form](./foundation-forms.form.md) > [setApprovalMessage](./foundation-forms.form.setapprovalmessage.md)
|
|
4
|
-
|
|
5
|
-
## Form.setApprovalMessage property
|
|
6
|
-
|
|
7
|
-
When enabled, adds an APPROVAL\_MESSAGE field to the form schema. This field will be sent at root level alongside DETAILS when submitting.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
setApprovalMessage: boolean;
|
|
13
|
-
```
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-forms](./foundation-forms.md) > [Form](./foundation-forms.form.md) > [submitSingleRow](./foundation-forms.form.submitsinglerow.md)
|
|
4
|
-
|
|
5
|
-
## Form.submitSingleRow() method
|
|
6
|
-
|
|
7
|
-
Submits a single row in bulk insert mode.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
submitSingleRow(index: number): Promise<void>;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
<table><thead><tr><th>
|
|
18
|
-
|
|
19
|
-
Parameter
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</th><th>
|
|
23
|
-
|
|
24
|
-
Type
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</th><th>
|
|
28
|
-
|
|
29
|
-
Description
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</th></tr></thead>
|
|
33
|
-
<tbody><tr><td>
|
|
34
|
-
|
|
35
|
-
index
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
number
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
The index of the row to submit
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
</tbody></table>
|
|
50
|
-
|
|
51
|
-
**Returns:**
|
|
52
|
-
|
|
53
|
-
Promise<void>
|
|
54
|
-
|
|
55
|
-
Promise that resolves when submission is complete
|
|
56
|
-
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-forms](./foundation-forms.md) > [Form](./foundation-forms.form.md) > [uischema](./foundation-forms.form.uischema.md)
|
|
4
|
-
|
|
5
|
-
## Form.uischema property
|
|
6
|
-
|
|
7
|
-
UI schema used to define configuration of the layout and elements in the form Check [UiSchema](./foundation-forms.uischema.md) for possible options
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
uischema: UiSchema;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Remarks
|
|
16
|
-
|
|
17
|
-
If not provided will be autogenerated based on json schema or initial data
|
|
18
|
-
|
|
19
|
-
## Example
|
|
20
|
-
|
|
21
|
-
Here's a simple example:
|
|
22
|
-
|
|
23
|
-
```
|
|
24
|
-
const sampleUISchema = {
|
|
25
|
-
type: 'VerticalLayout',
|
|
26
|
-
elements: [
|
|
27
|
-
{
|
|
28
|
-
type: 'Control',
|
|
29
|
-
scope: '#/properties/QUANTITY',
|
|
30
|
-
label: 'Quantity',
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
type: 'Control',
|
|
34
|
-
scope: '#/properties/INSTRUMENT_ID',
|
|
35
|
-
options: {
|
|
36
|
-
allOptionsResourceName: 'INSTRUMENT',
|
|
37
|
-
valueField: 'INSTRUMENT_ID',
|
|
38
|
-
labelField: 'INSTRUMENT_ID',
|
|
39
|
-
},
|
|
40
|
-
label: 'Instrument',
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
type: 'Control',
|
|
44
|
-
scope: '#/properties/SIDE',
|
|
45
|
-
label: 'Side',
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
|
-
};
|
|
49
|
-
```
|
|
50
|
-
|