@genesislcap/foundation-forms 14.396.4 → 14.397.1-alpha-87a7828.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/dist/custom-elements.json +565 -241
- package/dist/dts/form.d.ts +100 -1
- package/dist/dts/form.d.ts.map +1 -1
- package/dist/dts/form.styles.d.ts.map +1 -1
- package/dist/dts/form.template.d.ts.map +1 -1
- package/dist/dts/jsonforms/json-forms.d.ts +13 -0
- package/dist/dts/jsonforms/json-forms.d.ts.map +1 -1
- package/dist/dts/jsonforms/renderers/ArrayListWrapperRenderer.d.ts +5 -0
- package/dist/dts/jsonforms/renderers/ArrayListWrapperRenderer.d.ts.map +1 -1
- package/dist/dts/types.d.ts +88 -1
- package/dist/dts/types.d.ts.map +1 -1
- package/dist/dts/utils/csv-parser.d.ts +82 -0
- package/dist/dts/utils/csv-parser.d.ts.map +1 -0
- package/dist/dts/utils/index.d.ts +1 -0
- package/dist/dts/utils/index.d.ts.map +1 -1
- package/dist/dts/utils/schema-utils.d.ts +46 -0
- package/dist/dts/utils/schema-utils.d.ts.map +1 -0
- package/dist/dts/utils/validation.d.ts +2 -0
- package/dist/dts/utils/validation.d.ts.map +1 -1
- package/dist/esm/form.js +421 -5
- package/dist/esm/form.styles.js +38 -1
- package/dist/esm/form.template.js +33 -1
- package/dist/esm/jsonforms/json-forms.js +30 -0
- package/dist/esm/jsonforms/renderers/ArrayListWrapperRenderer.js +207 -13
- package/dist/esm/utils/csv-parser.js +458 -0
- package/dist/esm/utils/index.js +1 -0
- package/dist/esm/utils/schema-utils.js +120 -0
- package/dist/esm/utils/validation.js +2 -0
- package/dist/foundation-forms.api.json +1006 -29
- package/dist/foundation-forms.d.ts +281 -1
- package/docs/api/foundation-forms.arrayrendereroptions.md +2 -2
- package/docs/api/foundation-forms.bulkrowstatus.md +22 -0
- package/docs/api/foundation-forms.bulkrowsubmitstatus.md +13 -0
- package/docs/api/foundation-forms.bulksubmitfaileditem.md +20 -0
- package/docs/api/foundation-forms.bulksubmitresult.md +18 -0
- package/docs/api/foundation-forms.bulksubmitsuccessitem.md +17 -0
- package/docs/api/foundation-forms.childuischemaresolver.md +15 -0
- package/docs/api/foundation-forms.csvmappingresult.mappedrows.md +13 -0
- package/docs/api/foundation-forms.csvmappingresult.md +77 -0
- package/docs/api/foundation-forms.csvmappingresult.unmappedcolumns.md +13 -0
- package/docs/api/foundation-forms.csvparseresult.errors.md +13 -0
- package/docs/api/foundation-forms.csvparseresult.headers.md +13 -0
- package/docs/api/foundation-forms.csvparseresult.md +96 -0
- package/docs/api/foundation-forms.csvparseresult.rows.md +13 -0
- package/docs/api/foundation-forms.downloadcsvtemplate.md +74 -0
- package/docs/api/foundation-forms.form.bulkinsert.md +13 -0
- package/docs/api/foundation-forms.form.bulkinsertmaxitems.md +13 -0
- package/docs/api/foundation-forms.form.bulkinsertminitems.md +13 -0
- package/docs/api/foundation-forms.form.clearrowsubmitstatuses.md +17 -0
- package/docs/api/foundation-forms.form.downloadcsvtemplate.md +17 -0
- package/docs/api/foundation-forms.form.handlecsvfileselected.md +54 -0
- package/docs/api/foundation-forms.form.md +132 -0
- package/docs/api/foundation-forms.form.rowsubmitstatuses.md +13 -0
- package/docs/api/foundation-forms.form.submitsinglerow.md +56 -0
- package/docs/api/foundation-forms.generatecsvtemplate.md +104 -0
- package/docs/api/foundation-forms.mapcsvtoschema.md +72 -0
- package/docs/api/foundation-forms.md +147 -0
- package/docs/api/foundation-forms.parsecsv.md +56 -0
- package/docs/api-report.md.api.md +85 -3
- package/package.json +19 -17
|
@@ -190,6 +190,15 @@
|
|
|
190
190
|
"text": "UiSchema",
|
|
191
191
|
"canonicalReference": "@genesislcap/foundation-forms!UiSchema:type"
|
|
192
192
|
},
|
|
193
|
+
{
|
|
194
|
+
"kind": "Content",
|
|
195
|
+
"text": " | "
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"kind": "Reference",
|
|
199
|
+
"text": "ChildUiSchemaResolver",
|
|
200
|
+
"canonicalReference": "@genesislcap/foundation-forms!ChildUiSchemaResolver:type"
|
|
201
|
+
},
|
|
193
202
|
{
|
|
194
203
|
"kind": "Content",
|
|
195
204
|
"text": ";\n addLabel?: string;\n deleteLabel?: string;\n border?: boolean;\n canDelete?: (item: any) => boolean;\n}"
|
|
@@ -202,11 +211,186 @@
|
|
|
202
211
|
"fileUrlPath": "src/types.ts",
|
|
203
212
|
"releaseTag": "Public",
|
|
204
213
|
"name": "ArrayRendererOptions",
|
|
214
|
+
"typeTokenRange": {
|
|
215
|
+
"startIndex": 1,
|
|
216
|
+
"endIndex": 6
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"kind": "TypeAlias",
|
|
221
|
+
"canonicalReference": "@genesislcap/foundation-forms!BulkRowStatus:type",
|
|
222
|
+
"docComment": "/**\n * Tracks the submission status and result for a single row in bulk insert mode.\n *\n * @public\n */\n",
|
|
223
|
+
"excerptTokens": [
|
|
224
|
+
{
|
|
225
|
+
"kind": "Content",
|
|
226
|
+
"text": "export type BulkRowStatus = "
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"kind": "Content",
|
|
230
|
+
"text": "{\n status: "
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"kind": "Reference",
|
|
234
|
+
"text": "BulkRowSubmitStatus",
|
|
235
|
+
"canonicalReference": "@genesislcap/foundation-forms!BulkRowSubmitStatus:type"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"kind": "Content",
|
|
239
|
+
"text": ";\n errors?: "
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"kind": "Reference",
|
|
243
|
+
"text": "Array",
|
|
244
|
+
"canonicalReference": "!Array:interface"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"kind": "Content",
|
|
248
|
+
"text": "<{\n CODE: string;\n TEXT: string;\n }>;\n response?: any;\n}"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"kind": "Content",
|
|
252
|
+
"text": ";"
|
|
253
|
+
}
|
|
254
|
+
],
|
|
255
|
+
"fileUrlPath": "src/types.ts",
|
|
256
|
+
"releaseTag": "Public",
|
|
257
|
+
"name": "BulkRowStatus",
|
|
258
|
+
"typeTokenRange": {
|
|
259
|
+
"startIndex": 1,
|
|
260
|
+
"endIndex": 6
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"kind": "TypeAlias",
|
|
265
|
+
"canonicalReference": "@genesislcap/foundation-forms!BulkRowSubmitStatus:type",
|
|
266
|
+
"docComment": "/**\n * Possible submission status values for a row in bulk insert mode.\n *\n * @public\n */\n",
|
|
267
|
+
"excerptTokens": [
|
|
268
|
+
{
|
|
269
|
+
"kind": "Content",
|
|
270
|
+
"text": "export type BulkRowSubmitStatus = "
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"kind": "Content",
|
|
274
|
+
"text": "'pending' | 'submitting' | 'success' | 'failed'"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"kind": "Content",
|
|
278
|
+
"text": ";"
|
|
279
|
+
}
|
|
280
|
+
],
|
|
281
|
+
"fileUrlPath": "src/types.ts",
|
|
282
|
+
"releaseTag": "Public",
|
|
283
|
+
"name": "BulkRowSubmitStatus",
|
|
284
|
+
"typeTokenRange": {
|
|
285
|
+
"startIndex": 1,
|
|
286
|
+
"endIndex": 2
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"kind": "TypeAlias",
|
|
291
|
+
"canonicalReference": "@genesislcap/foundation-forms!BulkSubmitFailedItem:type",
|
|
292
|
+
"docComment": "/**\n * Represents a failed bulk insert item result.\n *\n * @public\n */\n",
|
|
293
|
+
"excerptTokens": [
|
|
294
|
+
{
|
|
295
|
+
"kind": "Content",
|
|
296
|
+
"text": "export type BulkSubmitFailedItem = "
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"kind": "Content",
|
|
300
|
+
"text": "{\n item: any;\n index: number;\n errors: "
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"kind": "Reference",
|
|
304
|
+
"text": "Array",
|
|
305
|
+
"canonicalReference": "!Array:interface"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"kind": "Content",
|
|
309
|
+
"text": "<{\n CODE: string;\n TEXT: string;\n }>;\n}"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"kind": "Content",
|
|
313
|
+
"text": ";"
|
|
314
|
+
}
|
|
315
|
+
],
|
|
316
|
+
"fileUrlPath": "src/types.ts",
|
|
317
|
+
"releaseTag": "Public",
|
|
318
|
+
"name": "BulkSubmitFailedItem",
|
|
205
319
|
"typeTokenRange": {
|
|
206
320
|
"startIndex": 1,
|
|
207
321
|
"endIndex": 4
|
|
208
322
|
}
|
|
209
323
|
},
|
|
324
|
+
{
|
|
325
|
+
"kind": "TypeAlias",
|
|
326
|
+
"canonicalReference": "@genesislcap/foundation-forms!BulkSubmitResult:type",
|
|
327
|
+
"docComment": "/**\n * Result of a bulk insert submission containing successful and failed items.\n *\n * @public\n */\n",
|
|
328
|
+
"excerptTokens": [
|
|
329
|
+
{
|
|
330
|
+
"kind": "Content",
|
|
331
|
+
"text": "export type BulkSubmitResult = "
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"kind": "Content",
|
|
335
|
+
"text": "{\n successful: "
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"kind": "Reference",
|
|
339
|
+
"text": "BulkSubmitSuccessItem",
|
|
340
|
+
"canonicalReference": "@genesislcap/foundation-forms!BulkSubmitSuccessItem:type"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"kind": "Content",
|
|
344
|
+
"text": "[];\n failed: "
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"kind": "Reference",
|
|
348
|
+
"text": "BulkSubmitFailedItem",
|
|
349
|
+
"canonicalReference": "@genesislcap/foundation-forms!BulkSubmitFailedItem:type"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"kind": "Content",
|
|
353
|
+
"text": "[];\n}"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"kind": "Content",
|
|
357
|
+
"text": ";"
|
|
358
|
+
}
|
|
359
|
+
],
|
|
360
|
+
"fileUrlPath": "src/types.ts",
|
|
361
|
+
"releaseTag": "Public",
|
|
362
|
+
"name": "BulkSubmitResult",
|
|
363
|
+
"typeTokenRange": {
|
|
364
|
+
"startIndex": 1,
|
|
365
|
+
"endIndex": 6
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"kind": "TypeAlias",
|
|
370
|
+
"canonicalReference": "@genesislcap/foundation-forms!BulkSubmitSuccessItem:type",
|
|
371
|
+
"docComment": "/**\n * Represents a successful bulk insert item result.\n *\n * @public\n */\n",
|
|
372
|
+
"excerptTokens": [
|
|
373
|
+
{
|
|
374
|
+
"kind": "Content",
|
|
375
|
+
"text": "export type BulkSubmitSuccessItem = "
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"kind": "Content",
|
|
379
|
+
"text": "{\n item: any;\n index: number;\n response: any;\n}"
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"kind": "Content",
|
|
383
|
+
"text": ";"
|
|
384
|
+
}
|
|
385
|
+
],
|
|
386
|
+
"fileUrlPath": "src/types.ts",
|
|
387
|
+
"releaseTag": "Public",
|
|
388
|
+
"name": "BulkSubmitSuccessItem",
|
|
389
|
+
"typeTokenRange": {
|
|
390
|
+
"startIndex": 1,
|
|
391
|
+
"endIndex": 2
|
|
392
|
+
}
|
|
393
|
+
},
|
|
210
394
|
{
|
|
211
395
|
"kind": "TypeAlias",
|
|
212
396
|
"canonicalReference": "@genesislcap/foundation-forms!CategorizationRendererOptions:type",
|
|
@@ -230,61 +414,334 @@
|
|
|
230
414
|
"text": "[];\n}"
|
|
231
415
|
},
|
|
232
416
|
{
|
|
233
|
-
"kind": "Content",
|
|
234
|
-
"text": ";"
|
|
417
|
+
"kind": "Content",
|
|
418
|
+
"text": ";"
|
|
419
|
+
}
|
|
420
|
+
],
|
|
421
|
+
"fileUrlPath": "src/types.ts",
|
|
422
|
+
"releaseTag": "Public",
|
|
423
|
+
"name": "CategorizationRendererOptions",
|
|
424
|
+
"typeTokenRange": {
|
|
425
|
+
"startIndex": 1,
|
|
426
|
+
"endIndex": 4
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"kind": "TypeAlias",
|
|
431
|
+
"canonicalReference": "@genesislcap/foundation-forms!ChildUiSchemaResolver:type",
|
|
432
|
+
"docComment": "/**\n * Resolver for dynamic per-row UI schema in array/bulk-insert mode. Receives the row index, that row's data, and the full form data.\n *\n * @public\n */\n",
|
|
433
|
+
"excerptTokens": [
|
|
434
|
+
{
|
|
435
|
+
"kind": "Content",
|
|
436
|
+
"text": "export type ChildUiSchemaResolver = "
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"kind": "Content",
|
|
440
|
+
"text": "(index: number, rowData: any, formData: any) => "
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"kind": "Reference",
|
|
444
|
+
"text": "UiSchema",
|
|
445
|
+
"canonicalReference": "@genesislcap/foundation-forms!UiSchema:type"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"kind": "Content",
|
|
449
|
+
"text": ";"
|
|
450
|
+
}
|
|
451
|
+
],
|
|
452
|
+
"fileUrlPath": "src/types.ts",
|
|
453
|
+
"releaseTag": "Public",
|
|
454
|
+
"name": "ChildUiSchemaResolver",
|
|
455
|
+
"typeTokenRange": {
|
|
456
|
+
"startIndex": 1,
|
|
457
|
+
"endIndex": 3
|
|
458
|
+
}
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"kind": "TypeAlias",
|
|
462
|
+
"canonicalReference": "@genesislcap/foundation-forms!ConnectedRenderersOptions:type",
|
|
463
|
+
"docComment": "/**\n * Available configuration options for connected combobox/multiselect.\n *\n * @public\n */\n",
|
|
464
|
+
"excerptTokens": [
|
|
465
|
+
{
|
|
466
|
+
"kind": "Content",
|
|
467
|
+
"text": "export type ConnectedRenderersOptions = "
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"kind": "Content",
|
|
471
|
+
"text": "{\n async?: boolean;\n allOptionsResourceName?: string;\n datasourceConfig?: "
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"kind": "Reference",
|
|
475
|
+
"text": "DatasourceOptions",
|
|
476
|
+
"canonicalReference": "@genesislcap/foundation-comms!DatasourceOptions:interface"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"kind": "Content",
|
|
480
|
+
"text": ";\n valueField?: string;\n labelField?: string;\n data?: any[];\n allowCustomOptions?: boolean;\n filterMode?: "
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
"kind": "Reference",
|
|
484
|
+
"text": "FilterMode",
|
|
485
|
+
"canonicalReference": "@genesislcap/foundation-ui!FilterMode:type"
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"kind": "Content",
|
|
489
|
+
"text": ";\n labelRowFormatter?: (any: any) => string;\n}"
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"kind": "Content",
|
|
493
|
+
"text": ";"
|
|
494
|
+
}
|
|
495
|
+
],
|
|
496
|
+
"fileUrlPath": "src/types.ts",
|
|
497
|
+
"releaseTag": "Public",
|
|
498
|
+
"name": "ConnectedRenderersOptions",
|
|
499
|
+
"typeTokenRange": {
|
|
500
|
+
"startIndex": 1,
|
|
501
|
+
"endIndex": 6
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"kind": "Interface",
|
|
506
|
+
"canonicalReference": "@genesislcap/foundation-forms!CsvMappingResult:interface",
|
|
507
|
+
"docComment": "/**\n * Result of mapping CSV data to schema fields.\n *\n * @public\n */\n",
|
|
508
|
+
"excerptTokens": [
|
|
509
|
+
{
|
|
510
|
+
"kind": "Content",
|
|
511
|
+
"text": "export interface CsvMappingResult "
|
|
512
|
+
}
|
|
513
|
+
],
|
|
514
|
+
"fileUrlPath": "src/utils/csv-parser.ts",
|
|
515
|
+
"releaseTag": "Public",
|
|
516
|
+
"name": "CsvMappingResult",
|
|
517
|
+
"preserveMemberOrder": false,
|
|
518
|
+
"members": [
|
|
519
|
+
{
|
|
520
|
+
"kind": "PropertySignature",
|
|
521
|
+
"canonicalReference": "@genesislcap/foundation-forms!CsvMappingResult#mappedRows:member",
|
|
522
|
+
"docComment": "/**\n * The mapped rows with values converted to appropriate types.\n */\n",
|
|
523
|
+
"excerptTokens": [
|
|
524
|
+
{
|
|
525
|
+
"kind": "Content",
|
|
526
|
+
"text": "mappedRows: "
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"kind": "Reference",
|
|
530
|
+
"text": "Record",
|
|
531
|
+
"canonicalReference": "!Record:type"
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"kind": "Content",
|
|
535
|
+
"text": "<string, any>[]"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"kind": "Content",
|
|
539
|
+
"text": ";"
|
|
540
|
+
}
|
|
541
|
+
],
|
|
542
|
+
"isReadonly": false,
|
|
543
|
+
"isOptional": false,
|
|
544
|
+
"releaseTag": "Public",
|
|
545
|
+
"name": "mappedRows",
|
|
546
|
+
"propertyTypeTokenRange": {
|
|
547
|
+
"startIndex": 1,
|
|
548
|
+
"endIndex": 3
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"kind": "PropertySignature",
|
|
553
|
+
"canonicalReference": "@genesislcap/foundation-forms!CsvMappingResult#unmappedColumns:member",
|
|
554
|
+
"docComment": "/**\n * CSV columns that could not be matched to schema fields.\n */\n",
|
|
555
|
+
"excerptTokens": [
|
|
556
|
+
{
|
|
557
|
+
"kind": "Content",
|
|
558
|
+
"text": "unmappedColumns: "
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"kind": "Content",
|
|
562
|
+
"text": "string[]"
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
"kind": "Content",
|
|
566
|
+
"text": ";"
|
|
567
|
+
}
|
|
568
|
+
],
|
|
569
|
+
"isReadonly": false,
|
|
570
|
+
"isOptional": false,
|
|
571
|
+
"releaseTag": "Public",
|
|
572
|
+
"name": "unmappedColumns",
|
|
573
|
+
"propertyTypeTokenRange": {
|
|
574
|
+
"startIndex": 1,
|
|
575
|
+
"endIndex": 2
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
],
|
|
579
|
+
"extendsTokenRanges": []
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"kind": "Interface",
|
|
583
|
+
"canonicalReference": "@genesislcap/foundation-forms!CsvParseResult:interface",
|
|
584
|
+
"docComment": "/**\n * Result of parsing a CSV file.\n *\n * @public\n */\n",
|
|
585
|
+
"excerptTokens": [
|
|
586
|
+
{
|
|
587
|
+
"kind": "Content",
|
|
588
|
+
"text": "export interface CsvParseResult "
|
|
589
|
+
}
|
|
590
|
+
],
|
|
591
|
+
"fileUrlPath": "src/utils/csv-parser.ts",
|
|
592
|
+
"releaseTag": "Public",
|
|
593
|
+
"name": "CsvParseResult",
|
|
594
|
+
"preserveMemberOrder": false,
|
|
595
|
+
"members": [
|
|
596
|
+
{
|
|
597
|
+
"kind": "PropertySignature",
|
|
598
|
+
"canonicalReference": "@genesislcap/foundation-forms!CsvParseResult#errors:member",
|
|
599
|
+
"docComment": "/**\n * Any errors encountered during parsing.\n */\n",
|
|
600
|
+
"excerptTokens": [
|
|
601
|
+
{
|
|
602
|
+
"kind": "Content",
|
|
603
|
+
"text": "errors: "
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
"kind": "Content",
|
|
607
|
+
"text": "string[]"
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"kind": "Content",
|
|
611
|
+
"text": ";"
|
|
612
|
+
}
|
|
613
|
+
],
|
|
614
|
+
"isReadonly": false,
|
|
615
|
+
"isOptional": false,
|
|
616
|
+
"releaseTag": "Public",
|
|
617
|
+
"name": "errors",
|
|
618
|
+
"propertyTypeTokenRange": {
|
|
619
|
+
"startIndex": 1,
|
|
620
|
+
"endIndex": 2
|
|
621
|
+
}
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
"kind": "PropertySignature",
|
|
625
|
+
"canonicalReference": "@genesislcap/foundation-forms!CsvParseResult#headers:member",
|
|
626
|
+
"docComment": "/**\n * The header names from the first row of the CSV.\n */\n",
|
|
627
|
+
"excerptTokens": [
|
|
628
|
+
{
|
|
629
|
+
"kind": "Content",
|
|
630
|
+
"text": "headers: "
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"kind": "Content",
|
|
634
|
+
"text": "string[]"
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"kind": "Content",
|
|
638
|
+
"text": ";"
|
|
639
|
+
}
|
|
640
|
+
],
|
|
641
|
+
"isReadonly": false,
|
|
642
|
+
"isOptional": false,
|
|
643
|
+
"releaseTag": "Public",
|
|
644
|
+
"name": "headers",
|
|
645
|
+
"propertyTypeTokenRange": {
|
|
646
|
+
"startIndex": 1,
|
|
647
|
+
"endIndex": 2
|
|
648
|
+
}
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
"kind": "PropertySignature",
|
|
652
|
+
"canonicalReference": "@genesislcap/foundation-forms!CsvParseResult#rows:member",
|
|
653
|
+
"docComment": "/**\n * The parsed data rows as key-value objects.\n */\n",
|
|
654
|
+
"excerptTokens": [
|
|
655
|
+
{
|
|
656
|
+
"kind": "Content",
|
|
657
|
+
"text": "rows: "
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"kind": "Reference",
|
|
661
|
+
"text": "Record",
|
|
662
|
+
"canonicalReference": "!Record:type"
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
"kind": "Content",
|
|
666
|
+
"text": "<string, string>[]"
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
"kind": "Content",
|
|
670
|
+
"text": ";"
|
|
671
|
+
}
|
|
672
|
+
],
|
|
673
|
+
"isReadonly": false,
|
|
674
|
+
"isOptional": false,
|
|
675
|
+
"releaseTag": "Public",
|
|
676
|
+
"name": "rows",
|
|
677
|
+
"propertyTypeTokenRange": {
|
|
678
|
+
"startIndex": 1,
|
|
679
|
+
"endIndex": 3
|
|
680
|
+
}
|
|
235
681
|
}
|
|
236
682
|
],
|
|
237
|
-
"
|
|
238
|
-
"releaseTag": "Public",
|
|
239
|
-
"name": "CategorizationRendererOptions",
|
|
240
|
-
"typeTokenRange": {
|
|
241
|
-
"startIndex": 1,
|
|
242
|
-
"endIndex": 4
|
|
243
|
-
}
|
|
683
|
+
"extendsTokenRanges": []
|
|
244
684
|
},
|
|
245
685
|
{
|
|
246
|
-
"kind": "
|
|
247
|
-
"canonicalReference": "@genesislcap/foundation-forms!
|
|
248
|
-
"docComment": "/**\n *
|
|
686
|
+
"kind": "Function",
|
|
687
|
+
"canonicalReference": "@genesislcap/foundation-forms!downloadCsvTemplate:function(1)",
|
|
688
|
+
"docComment": "/**\n * Triggers a download of the CSV template file in the browser.\n *\n * @remarks\n *\n * Browser-only; uses document and URL.createObjectURL. Will throw in Node.js.\n *\n * @param csvContent - The CSV content to download\n *\n * @param fileName - The name for the downloaded file (default: 'template.csv')\n *\n * @public\n */\n",
|
|
249
689
|
"excerptTokens": [
|
|
250
690
|
{
|
|
251
691
|
"kind": "Content",
|
|
252
|
-
"text": "export
|
|
692
|
+
"text": "export declare function downloadCsvTemplate(csvContent: "
|
|
253
693
|
},
|
|
254
694
|
{
|
|
255
695
|
"kind": "Content",
|
|
256
|
-
"text": "
|
|
696
|
+
"text": "string"
|
|
257
697
|
},
|
|
258
698
|
{
|
|
259
|
-
"kind": "
|
|
260
|
-
"text": "
|
|
261
|
-
"canonicalReference": "@genesislcap/foundation-comms!DatasourceOptions:interface"
|
|
699
|
+
"kind": "Content",
|
|
700
|
+
"text": ", fileName?: "
|
|
262
701
|
},
|
|
263
702
|
{
|
|
264
703
|
"kind": "Content",
|
|
265
|
-
"text": "
|
|
704
|
+
"text": "string"
|
|
266
705
|
},
|
|
267
706
|
{
|
|
268
|
-
"kind": "
|
|
269
|
-
"text": "
|
|
270
|
-
"canonicalReference": "@genesislcap/foundation-ui!FilterMode:type"
|
|
707
|
+
"kind": "Content",
|
|
708
|
+
"text": "): "
|
|
271
709
|
},
|
|
272
710
|
{
|
|
273
711
|
"kind": "Content",
|
|
274
|
-
"text": "
|
|
712
|
+
"text": "void"
|
|
275
713
|
},
|
|
276
714
|
{
|
|
277
715
|
"kind": "Content",
|
|
278
716
|
"text": ";"
|
|
279
717
|
}
|
|
280
718
|
],
|
|
281
|
-
"fileUrlPath": "src/
|
|
282
|
-
"
|
|
283
|
-
|
|
284
|
-
"typeTokenRange": {
|
|
285
|
-
"startIndex": 1,
|
|
719
|
+
"fileUrlPath": "src/utils/csv-parser.ts",
|
|
720
|
+
"returnTypeTokenRange": {
|
|
721
|
+
"startIndex": 5,
|
|
286
722
|
"endIndex": 6
|
|
287
|
-
}
|
|
723
|
+
},
|
|
724
|
+
"releaseTag": "Public",
|
|
725
|
+
"overloadIndex": 1,
|
|
726
|
+
"parameters": [
|
|
727
|
+
{
|
|
728
|
+
"parameterName": "csvContent",
|
|
729
|
+
"parameterTypeTokenRange": {
|
|
730
|
+
"startIndex": 1,
|
|
731
|
+
"endIndex": 2
|
|
732
|
+
},
|
|
733
|
+
"isOptional": false
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
"parameterName": "fileName",
|
|
737
|
+
"parameterTypeTokenRange": {
|
|
738
|
+
"startIndex": 3,
|
|
739
|
+
"endIndex": 4
|
|
740
|
+
},
|
|
741
|
+
"isOptional": true
|
|
742
|
+
}
|
|
743
|
+
],
|
|
744
|
+
"name": "downloadCsvTemplate"
|
|
288
745
|
},
|
|
289
746
|
{
|
|
290
747
|
"kind": "Class",
|
|
@@ -1030,6 +1487,127 @@
|
|
|
1030
1487
|
"isProtected": false,
|
|
1031
1488
|
"isAbstract": false
|
|
1032
1489
|
},
|
|
1490
|
+
{
|
|
1491
|
+
"kind": "Property",
|
|
1492
|
+
"canonicalReference": "@genesislcap/foundation-forms!Form#bulkInsert:member",
|
|
1493
|
+
"docComment": "/**\n * 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.\n *\n * @public\n */\n",
|
|
1494
|
+
"excerptTokens": [
|
|
1495
|
+
{
|
|
1496
|
+
"kind": "Content",
|
|
1497
|
+
"text": "bulkInsert: "
|
|
1498
|
+
},
|
|
1499
|
+
{
|
|
1500
|
+
"kind": "Content",
|
|
1501
|
+
"text": "boolean"
|
|
1502
|
+
},
|
|
1503
|
+
{
|
|
1504
|
+
"kind": "Content",
|
|
1505
|
+
"text": ";"
|
|
1506
|
+
}
|
|
1507
|
+
],
|
|
1508
|
+
"isReadonly": false,
|
|
1509
|
+
"isOptional": false,
|
|
1510
|
+
"releaseTag": "Public",
|
|
1511
|
+
"name": "bulkInsert",
|
|
1512
|
+
"propertyTypeTokenRange": {
|
|
1513
|
+
"startIndex": 1,
|
|
1514
|
+
"endIndex": 2
|
|
1515
|
+
},
|
|
1516
|
+
"isStatic": false,
|
|
1517
|
+
"isProtected": false,
|
|
1518
|
+
"isAbstract": false
|
|
1519
|
+
},
|
|
1520
|
+
{
|
|
1521
|
+
"kind": "Property",
|
|
1522
|
+
"canonicalReference": "@genesislcap/foundation-forms!Form#bulkInsertMaxItems:member",
|
|
1523
|
+
"docComment": "/**\n * Maximum number of items allowed in bulk insert mode. If not set, no maximum is enforced.\n *\n * @public\n */\n",
|
|
1524
|
+
"excerptTokens": [
|
|
1525
|
+
{
|
|
1526
|
+
"kind": "Content",
|
|
1527
|
+
"text": "bulkInsertMaxItems: "
|
|
1528
|
+
},
|
|
1529
|
+
{
|
|
1530
|
+
"kind": "Content",
|
|
1531
|
+
"text": "number | undefined"
|
|
1532
|
+
},
|
|
1533
|
+
{
|
|
1534
|
+
"kind": "Content",
|
|
1535
|
+
"text": ";"
|
|
1536
|
+
}
|
|
1537
|
+
],
|
|
1538
|
+
"isReadonly": false,
|
|
1539
|
+
"isOptional": false,
|
|
1540
|
+
"releaseTag": "Public",
|
|
1541
|
+
"name": "bulkInsertMaxItems",
|
|
1542
|
+
"propertyTypeTokenRange": {
|
|
1543
|
+
"startIndex": 1,
|
|
1544
|
+
"endIndex": 2
|
|
1545
|
+
},
|
|
1546
|
+
"isStatic": false,
|
|
1547
|
+
"isProtected": false,
|
|
1548
|
+
"isAbstract": false
|
|
1549
|
+
},
|
|
1550
|
+
{
|
|
1551
|
+
"kind": "Property",
|
|
1552
|
+
"canonicalReference": "@genesislcap/foundation-forms!Form#bulkInsertMinItems:member",
|
|
1553
|
+
"docComment": "/**\n * Minimum number of items required in bulk insert mode.\n *\n * @public\n */\n",
|
|
1554
|
+
"excerptTokens": [
|
|
1555
|
+
{
|
|
1556
|
+
"kind": "Content",
|
|
1557
|
+
"text": "bulkInsertMinItems: "
|
|
1558
|
+
},
|
|
1559
|
+
{
|
|
1560
|
+
"kind": "Content",
|
|
1561
|
+
"text": "number"
|
|
1562
|
+
},
|
|
1563
|
+
{
|
|
1564
|
+
"kind": "Content",
|
|
1565
|
+
"text": ";"
|
|
1566
|
+
}
|
|
1567
|
+
],
|
|
1568
|
+
"isReadonly": false,
|
|
1569
|
+
"isOptional": false,
|
|
1570
|
+
"releaseTag": "Public",
|
|
1571
|
+
"name": "bulkInsertMinItems",
|
|
1572
|
+
"propertyTypeTokenRange": {
|
|
1573
|
+
"startIndex": 1,
|
|
1574
|
+
"endIndex": 2
|
|
1575
|
+
},
|
|
1576
|
+
"isStatic": false,
|
|
1577
|
+
"isProtected": false,
|
|
1578
|
+
"isAbstract": false
|
|
1579
|
+
},
|
|
1580
|
+
{
|
|
1581
|
+
"kind": "Method",
|
|
1582
|
+
"canonicalReference": "@genesislcap/foundation-forms!Form#clearRowSubmitStatuses:member(1)",
|
|
1583
|
+
"docComment": "/**\n * Clears all row submit statuses, typically called when resetting the form.\n *\n * @public\n */\n",
|
|
1584
|
+
"excerptTokens": [
|
|
1585
|
+
{
|
|
1586
|
+
"kind": "Content",
|
|
1587
|
+
"text": "clearRowSubmitStatuses(): "
|
|
1588
|
+
},
|
|
1589
|
+
{
|
|
1590
|
+
"kind": "Content",
|
|
1591
|
+
"text": "void"
|
|
1592
|
+
},
|
|
1593
|
+
{
|
|
1594
|
+
"kind": "Content",
|
|
1595
|
+
"text": ";"
|
|
1596
|
+
}
|
|
1597
|
+
],
|
|
1598
|
+
"isStatic": false,
|
|
1599
|
+
"returnTypeTokenRange": {
|
|
1600
|
+
"startIndex": 1,
|
|
1601
|
+
"endIndex": 2
|
|
1602
|
+
},
|
|
1603
|
+
"releaseTag": "Public",
|
|
1604
|
+
"isProtected": false,
|
|
1605
|
+
"overloadIndex": 1,
|
|
1606
|
+
"parameters": [],
|
|
1607
|
+
"isOptional": false,
|
|
1608
|
+
"isAbstract": false,
|
|
1609
|
+
"name": "clearRowSubmitStatuses"
|
|
1610
|
+
},
|
|
1033
1611
|
{
|
|
1034
1612
|
"kind": "Property",
|
|
1035
1613
|
"canonicalReference": "@genesislcap/foundation-forms!Form#confirmationMessage:member",
|
|
@@ -1090,6 +1668,91 @@
|
|
|
1090
1668
|
"isProtected": false,
|
|
1091
1669
|
"isAbstract": false
|
|
1092
1670
|
},
|
|
1671
|
+
{
|
|
1672
|
+
"kind": "Method",
|
|
1673
|
+
"canonicalReference": "@genesislcap/foundation-forms!Form#downloadCsvTemplate:member(1)",
|
|
1674
|
+
"docComment": "/**\n * 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.\n *\n * @public\n */\n",
|
|
1675
|
+
"excerptTokens": [
|
|
1676
|
+
{
|
|
1677
|
+
"kind": "Content",
|
|
1678
|
+
"text": "downloadCsvTemplate(): "
|
|
1679
|
+
},
|
|
1680
|
+
{
|
|
1681
|
+
"kind": "Content",
|
|
1682
|
+
"text": "void"
|
|
1683
|
+
},
|
|
1684
|
+
{
|
|
1685
|
+
"kind": "Content",
|
|
1686
|
+
"text": ";"
|
|
1687
|
+
}
|
|
1688
|
+
],
|
|
1689
|
+
"isStatic": false,
|
|
1690
|
+
"returnTypeTokenRange": {
|
|
1691
|
+
"startIndex": 1,
|
|
1692
|
+
"endIndex": 2
|
|
1693
|
+
},
|
|
1694
|
+
"releaseTag": "Public",
|
|
1695
|
+
"isProtected": false,
|
|
1696
|
+
"overloadIndex": 1,
|
|
1697
|
+
"parameters": [],
|
|
1698
|
+
"isOptional": false,
|
|
1699
|
+
"isAbstract": false,
|
|
1700
|
+
"name": "downloadCsvTemplate"
|
|
1701
|
+
},
|
|
1702
|
+
{
|
|
1703
|
+
"kind": "Method",
|
|
1704
|
+
"canonicalReference": "@genesislcap/foundation-forms!Form#handleCsvFileSelected:member(1)",
|
|
1705
|
+
"docComment": "/**\n * Handles CSV file selection for bulk import. Parses the CSV content and appends it to existing form items.\n *\n * @param event - The file input change event\n *\n * @public\n */\n",
|
|
1706
|
+
"excerptTokens": [
|
|
1707
|
+
{
|
|
1708
|
+
"kind": "Content",
|
|
1709
|
+
"text": "handleCsvFileSelected(event: "
|
|
1710
|
+
},
|
|
1711
|
+
{
|
|
1712
|
+
"kind": "Reference",
|
|
1713
|
+
"text": "Event",
|
|
1714
|
+
"canonicalReference": "!Event:interface"
|
|
1715
|
+
},
|
|
1716
|
+
{
|
|
1717
|
+
"kind": "Content",
|
|
1718
|
+
"text": "): "
|
|
1719
|
+
},
|
|
1720
|
+
{
|
|
1721
|
+
"kind": "Reference",
|
|
1722
|
+
"text": "Promise",
|
|
1723
|
+
"canonicalReference": "!Promise:interface"
|
|
1724
|
+
},
|
|
1725
|
+
{
|
|
1726
|
+
"kind": "Content",
|
|
1727
|
+
"text": "<void>"
|
|
1728
|
+
},
|
|
1729
|
+
{
|
|
1730
|
+
"kind": "Content",
|
|
1731
|
+
"text": ";"
|
|
1732
|
+
}
|
|
1733
|
+
],
|
|
1734
|
+
"isStatic": false,
|
|
1735
|
+
"returnTypeTokenRange": {
|
|
1736
|
+
"startIndex": 3,
|
|
1737
|
+
"endIndex": 5
|
|
1738
|
+
},
|
|
1739
|
+
"releaseTag": "Public",
|
|
1740
|
+
"isProtected": false,
|
|
1741
|
+
"overloadIndex": 1,
|
|
1742
|
+
"parameters": [
|
|
1743
|
+
{
|
|
1744
|
+
"parameterName": "event",
|
|
1745
|
+
"parameterTypeTokenRange": {
|
|
1746
|
+
"startIndex": 1,
|
|
1747
|
+
"endIndex": 2
|
|
1748
|
+
},
|
|
1749
|
+
"isOptional": false
|
|
1750
|
+
}
|
|
1751
|
+
],
|
|
1752
|
+
"isOptional": false,
|
|
1753
|
+
"isAbstract": false,
|
|
1754
|
+
"name": "handleCsvFileSelected"
|
|
1755
|
+
},
|
|
1093
1756
|
{
|
|
1094
1757
|
"kind": "Property",
|
|
1095
1758
|
"canonicalReference": "@genesislcap/foundation-forms!Form#hideSubmit:member",
|
|
@@ -1324,6 +1987,50 @@
|
|
|
1324
1987
|
"isProtected": false,
|
|
1325
1988
|
"isAbstract": false
|
|
1326
1989
|
},
|
|
1990
|
+
{
|
|
1991
|
+
"kind": "Property",
|
|
1992
|
+
"canonicalReference": "@genesislcap/foundation-forms!Form#rowSubmitStatuses:member",
|
|
1993
|
+
"docComment": "/**\n * Tracks the submission status for each row in bulk insert mode. Key is the row index, value is the status object.\n *\n * @public\n */\n",
|
|
1994
|
+
"excerptTokens": [
|
|
1995
|
+
{
|
|
1996
|
+
"kind": "Content",
|
|
1997
|
+
"text": "rowSubmitStatuses: "
|
|
1998
|
+
},
|
|
1999
|
+
{
|
|
2000
|
+
"kind": "Reference",
|
|
2001
|
+
"text": "Map",
|
|
2002
|
+
"canonicalReference": "!Map:interface"
|
|
2003
|
+
},
|
|
2004
|
+
{
|
|
2005
|
+
"kind": "Content",
|
|
2006
|
+
"text": "<number, "
|
|
2007
|
+
},
|
|
2008
|
+
{
|
|
2009
|
+
"kind": "Reference",
|
|
2010
|
+
"text": "BulkRowStatus",
|
|
2011
|
+
"canonicalReference": "@genesislcap/foundation-forms!BulkRowStatus:type"
|
|
2012
|
+
},
|
|
2013
|
+
{
|
|
2014
|
+
"kind": "Content",
|
|
2015
|
+
"text": ">"
|
|
2016
|
+
},
|
|
2017
|
+
{
|
|
2018
|
+
"kind": "Content",
|
|
2019
|
+
"text": ";"
|
|
2020
|
+
}
|
|
2021
|
+
],
|
|
2022
|
+
"isReadonly": false,
|
|
2023
|
+
"isOptional": false,
|
|
2024
|
+
"releaseTag": "Public",
|
|
2025
|
+
"name": "rowSubmitStatuses",
|
|
2026
|
+
"propertyTypeTokenRange": {
|
|
2027
|
+
"startIndex": 1,
|
|
2028
|
+
"endIndex": 5
|
|
2029
|
+
},
|
|
2030
|
+
"isStatic": false,
|
|
2031
|
+
"isProtected": false,
|
|
2032
|
+
"isAbstract": false
|
|
2033
|
+
},
|
|
1327
2034
|
{
|
|
1328
2035
|
"kind": "Property",
|
|
1329
2036
|
"canonicalReference": "@genesislcap/foundation-forms!Form#setApprovalMessage:member",
|
|
@@ -1354,6 +2061,59 @@
|
|
|
1354
2061
|
"isProtected": false,
|
|
1355
2062
|
"isAbstract": false
|
|
1356
2063
|
},
|
|
2064
|
+
{
|
|
2065
|
+
"kind": "Method",
|
|
2066
|
+
"canonicalReference": "@genesislcap/foundation-forms!Form#submitSingleRow:member(1)",
|
|
2067
|
+
"docComment": "/**\n * Submits a single row in bulk insert mode.\n *\n * @param index - The index of the row to submit\n *\n * @returns Promise that resolves when submission is complete\n *\n * @public\n */\n",
|
|
2068
|
+
"excerptTokens": [
|
|
2069
|
+
{
|
|
2070
|
+
"kind": "Content",
|
|
2071
|
+
"text": "submitSingleRow(index: "
|
|
2072
|
+
},
|
|
2073
|
+
{
|
|
2074
|
+
"kind": "Content",
|
|
2075
|
+
"text": "number"
|
|
2076
|
+
},
|
|
2077
|
+
{
|
|
2078
|
+
"kind": "Content",
|
|
2079
|
+
"text": "): "
|
|
2080
|
+
},
|
|
2081
|
+
{
|
|
2082
|
+
"kind": "Reference",
|
|
2083
|
+
"text": "Promise",
|
|
2084
|
+
"canonicalReference": "!Promise:interface"
|
|
2085
|
+
},
|
|
2086
|
+
{
|
|
2087
|
+
"kind": "Content",
|
|
2088
|
+
"text": "<void>"
|
|
2089
|
+
},
|
|
2090
|
+
{
|
|
2091
|
+
"kind": "Content",
|
|
2092
|
+
"text": ";"
|
|
2093
|
+
}
|
|
2094
|
+
],
|
|
2095
|
+
"isStatic": false,
|
|
2096
|
+
"returnTypeTokenRange": {
|
|
2097
|
+
"startIndex": 3,
|
|
2098
|
+
"endIndex": 5
|
|
2099
|
+
},
|
|
2100
|
+
"releaseTag": "Public",
|
|
2101
|
+
"isProtected": false,
|
|
2102
|
+
"overloadIndex": 1,
|
|
2103
|
+
"parameters": [
|
|
2104
|
+
{
|
|
2105
|
+
"parameterName": "index",
|
|
2106
|
+
"parameterTypeTokenRange": {
|
|
2107
|
+
"startIndex": 1,
|
|
2108
|
+
"endIndex": 2
|
|
2109
|
+
},
|
|
2110
|
+
"isOptional": false
|
|
2111
|
+
}
|
|
2112
|
+
],
|
|
2113
|
+
"isOptional": false,
|
|
2114
|
+
"isAbstract": false,
|
|
2115
|
+
"name": "submitSingleRow"
|
|
2116
|
+
},
|
|
1357
2117
|
{
|
|
1358
2118
|
"kind": "Property",
|
|
1359
2119
|
"canonicalReference": "@genesislcap/foundation-forms!Form#uischema:member",
|
|
@@ -1392,10 +2152,109 @@
|
|
|
1392
2152
|
},
|
|
1393
2153
|
"implementsTokenRanges": []
|
|
1394
2154
|
},
|
|
2155
|
+
{
|
|
2156
|
+
"kind": "Function",
|
|
2157
|
+
"canonicalReference": "@genesislcap/foundation-forms!generateCsvTemplate:function(1)",
|
|
2158
|
+
"docComment": "/**\n * Generates a CSV template string with headers and sample data based on JSON schema. If a UI schema is provided, it will be used to determine which fields to include and in what order. Hidden fields in the UI schema will be excluded.\n *\n * @param schema - The JSON schema defining the fields\n *\n * @param uiSchema - Optional UI schema to determine field order and visibility\n *\n * @param includeOptionalFields - Whether to include optional fields when no UI schema (default: true)\n *\n * @param includeBom - Whether to prepend UTF-8 BOM for Excel compatibility (default: true)\n *\n * @returns The CSV template string with headers and one sample row\n *\n * @public\n */\n",
|
|
2159
|
+
"excerptTokens": [
|
|
2160
|
+
{
|
|
2161
|
+
"kind": "Content",
|
|
2162
|
+
"text": "export declare function generateCsvTemplate(schema: "
|
|
2163
|
+
},
|
|
2164
|
+
{
|
|
2165
|
+
"kind": "Reference",
|
|
2166
|
+
"text": "JSONSchema7",
|
|
2167
|
+
"canonicalReference": "@types/json-schema!JSONSchema7:interface"
|
|
2168
|
+
},
|
|
2169
|
+
{
|
|
2170
|
+
"kind": "Content",
|
|
2171
|
+
"text": " | undefined"
|
|
2172
|
+
},
|
|
2173
|
+
{
|
|
2174
|
+
"kind": "Content",
|
|
2175
|
+
"text": ", uiSchema?: "
|
|
2176
|
+
},
|
|
2177
|
+
{
|
|
2178
|
+
"kind": "Reference",
|
|
2179
|
+
"text": "UiSchema",
|
|
2180
|
+
"canonicalReference": "@genesislcap/foundation-forms!UiSchema:type"
|
|
2181
|
+
},
|
|
2182
|
+
{
|
|
2183
|
+
"kind": "Content",
|
|
2184
|
+
"text": ", includeOptionalFields?: "
|
|
2185
|
+
},
|
|
2186
|
+
{
|
|
2187
|
+
"kind": "Content",
|
|
2188
|
+
"text": "boolean"
|
|
2189
|
+
},
|
|
2190
|
+
{
|
|
2191
|
+
"kind": "Content",
|
|
2192
|
+
"text": ", includeBom?: "
|
|
2193
|
+
},
|
|
2194
|
+
{
|
|
2195
|
+
"kind": "Content",
|
|
2196
|
+
"text": "boolean"
|
|
2197
|
+
},
|
|
2198
|
+
{
|
|
2199
|
+
"kind": "Content",
|
|
2200
|
+
"text": "): "
|
|
2201
|
+
},
|
|
2202
|
+
{
|
|
2203
|
+
"kind": "Content",
|
|
2204
|
+
"text": "string"
|
|
2205
|
+
},
|
|
2206
|
+
{
|
|
2207
|
+
"kind": "Content",
|
|
2208
|
+
"text": ";"
|
|
2209
|
+
}
|
|
2210
|
+
],
|
|
2211
|
+
"fileUrlPath": "src/utils/csv-parser.ts",
|
|
2212
|
+
"returnTypeTokenRange": {
|
|
2213
|
+
"startIndex": 10,
|
|
2214
|
+
"endIndex": 11
|
|
2215
|
+
},
|
|
2216
|
+
"releaseTag": "Public",
|
|
2217
|
+
"overloadIndex": 1,
|
|
2218
|
+
"parameters": [
|
|
2219
|
+
{
|
|
2220
|
+
"parameterName": "schema",
|
|
2221
|
+
"parameterTypeTokenRange": {
|
|
2222
|
+
"startIndex": 1,
|
|
2223
|
+
"endIndex": 3
|
|
2224
|
+
},
|
|
2225
|
+
"isOptional": false
|
|
2226
|
+
},
|
|
2227
|
+
{
|
|
2228
|
+
"parameterName": "uiSchema",
|
|
2229
|
+
"parameterTypeTokenRange": {
|
|
2230
|
+
"startIndex": 4,
|
|
2231
|
+
"endIndex": 5
|
|
2232
|
+
},
|
|
2233
|
+
"isOptional": true
|
|
2234
|
+
},
|
|
2235
|
+
{
|
|
2236
|
+
"parameterName": "includeOptionalFields",
|
|
2237
|
+
"parameterTypeTokenRange": {
|
|
2238
|
+
"startIndex": 6,
|
|
2239
|
+
"endIndex": 7
|
|
2240
|
+
},
|
|
2241
|
+
"isOptional": true
|
|
2242
|
+
},
|
|
2243
|
+
{
|
|
2244
|
+
"parameterName": "includeBom",
|
|
2245
|
+
"parameterTypeTokenRange": {
|
|
2246
|
+
"startIndex": 8,
|
|
2247
|
+
"endIndex": 9
|
|
2248
|
+
},
|
|
2249
|
+
"isOptional": true
|
|
2250
|
+
}
|
|
2251
|
+
],
|
|
2252
|
+
"name": "generateCsvTemplate"
|
|
2253
|
+
},
|
|
1395
2254
|
{
|
|
1396
2255
|
"kind": "Function",
|
|
1397
2256
|
"canonicalReference": "@genesislcap/foundation-forms!getAnyOfErrorMessage:function(1)",
|
|
1398
|
-
"docComment": "/**\n * Computes a human-friendly anyOf error message for a given control path. Prefers UI schema custom message, then JSON schema errorMessage.anyOf, then a constructed fallback.\n */\n",
|
|
2257
|
+
"docComment": "/**\n * Computes a human-friendly anyOf error message for a given control path. Prefers UI schema custom message, then JSON schema errorMessage.anyOf, then a constructed fallback.\n *\n * @public\n */\n",
|
|
1399
2258
|
"excerptTokens": [
|
|
1400
2259
|
{
|
|
1401
2260
|
"kind": "Content",
|
|
@@ -1574,6 +2433,78 @@
|
|
|
1574
2433
|
"endIndex": 2
|
|
1575
2434
|
}
|
|
1576
2435
|
},
|
|
2436
|
+
{
|
|
2437
|
+
"kind": "Function",
|
|
2438
|
+
"canonicalReference": "@genesislcap/foundation-forms!mapCsvToSchema:function(1)",
|
|
2439
|
+
"docComment": "/**\n * Maps CSV rows to schema fields with case-insensitive matching. Converts values to appropriate types based on schema definition.\n *\n * @param csvRows - The parsed CSV rows\n *\n * @param schema - The JSON schema defining the fields\n *\n * @returns Mapped rows and list of unmapped columns\n *\n * @public\n */\n",
|
|
2440
|
+
"excerptTokens": [
|
|
2441
|
+
{
|
|
2442
|
+
"kind": "Content",
|
|
2443
|
+
"text": "export declare function mapCsvToSchema(csvRows: "
|
|
2444
|
+
},
|
|
2445
|
+
{
|
|
2446
|
+
"kind": "Reference",
|
|
2447
|
+
"text": "Record",
|
|
2448
|
+
"canonicalReference": "!Record:type"
|
|
2449
|
+
},
|
|
2450
|
+
{
|
|
2451
|
+
"kind": "Content",
|
|
2452
|
+
"text": "<string, string>[]"
|
|
2453
|
+
},
|
|
2454
|
+
{
|
|
2455
|
+
"kind": "Content",
|
|
2456
|
+
"text": ", schema: "
|
|
2457
|
+
},
|
|
2458
|
+
{
|
|
2459
|
+
"kind": "Reference",
|
|
2460
|
+
"text": "JSONSchema7",
|
|
2461
|
+
"canonicalReference": "@types/json-schema!JSONSchema7:interface"
|
|
2462
|
+
},
|
|
2463
|
+
{
|
|
2464
|
+
"kind": "Content",
|
|
2465
|
+
"text": " | undefined"
|
|
2466
|
+
},
|
|
2467
|
+
{
|
|
2468
|
+
"kind": "Content",
|
|
2469
|
+
"text": "): "
|
|
2470
|
+
},
|
|
2471
|
+
{
|
|
2472
|
+
"kind": "Reference",
|
|
2473
|
+
"text": "CsvMappingResult",
|
|
2474
|
+
"canonicalReference": "@genesislcap/foundation-forms!CsvMappingResult:interface"
|
|
2475
|
+
},
|
|
2476
|
+
{
|
|
2477
|
+
"kind": "Content",
|
|
2478
|
+
"text": ";"
|
|
2479
|
+
}
|
|
2480
|
+
],
|
|
2481
|
+
"fileUrlPath": "src/utils/csv-parser.ts",
|
|
2482
|
+
"returnTypeTokenRange": {
|
|
2483
|
+
"startIndex": 7,
|
|
2484
|
+
"endIndex": 8
|
|
2485
|
+
},
|
|
2486
|
+
"releaseTag": "Public",
|
|
2487
|
+
"overloadIndex": 1,
|
|
2488
|
+
"parameters": [
|
|
2489
|
+
{
|
|
2490
|
+
"parameterName": "csvRows",
|
|
2491
|
+
"parameterTypeTokenRange": {
|
|
2492
|
+
"startIndex": 1,
|
|
2493
|
+
"endIndex": 3
|
|
2494
|
+
},
|
|
2495
|
+
"isOptional": false
|
|
2496
|
+
},
|
|
2497
|
+
{
|
|
2498
|
+
"parameterName": "schema",
|
|
2499
|
+
"parameterTypeTokenRange": {
|
|
2500
|
+
"startIndex": 4,
|
|
2501
|
+
"endIndex": 6
|
|
2502
|
+
},
|
|
2503
|
+
"isOptional": false
|
|
2504
|
+
}
|
|
2505
|
+
],
|
|
2506
|
+
"name": "mapCsvToSchema"
|
|
2507
|
+
},
|
|
1577
2508
|
{
|
|
1578
2509
|
"kind": "Function",
|
|
1579
2510
|
"canonicalReference": "@genesislcap/foundation-forms!mustMatch:function(1)",
|
|
@@ -1650,6 +2581,52 @@
|
|
|
1650
2581
|
"endIndex": 4
|
|
1651
2582
|
}
|
|
1652
2583
|
},
|
|
2584
|
+
{
|
|
2585
|
+
"kind": "Function",
|
|
2586
|
+
"canonicalReference": "@genesislcap/foundation-forms!parseCsv:function(1)",
|
|
2587
|
+
"docComment": "/**\n * Parses a CSV string into headers and rows using PapaParse. Handles quoted fields, escaped quotes, empty values, and mixed line endings.\n *\n * @param content - The CSV content as a string\n *\n * @returns The parsed result with headers, rows, and any errors\n *\n * @public\n */\n",
|
|
2588
|
+
"excerptTokens": [
|
|
2589
|
+
{
|
|
2590
|
+
"kind": "Content",
|
|
2591
|
+
"text": "export declare function parseCsv(content: "
|
|
2592
|
+
},
|
|
2593
|
+
{
|
|
2594
|
+
"kind": "Content",
|
|
2595
|
+
"text": "string"
|
|
2596
|
+
},
|
|
2597
|
+
{
|
|
2598
|
+
"kind": "Content",
|
|
2599
|
+
"text": "): "
|
|
2600
|
+
},
|
|
2601
|
+
{
|
|
2602
|
+
"kind": "Reference",
|
|
2603
|
+
"text": "CsvParseResult",
|
|
2604
|
+
"canonicalReference": "@genesislcap/foundation-forms!CsvParseResult:interface"
|
|
2605
|
+
},
|
|
2606
|
+
{
|
|
2607
|
+
"kind": "Content",
|
|
2608
|
+
"text": ";"
|
|
2609
|
+
}
|
|
2610
|
+
],
|
|
2611
|
+
"fileUrlPath": "src/utils/csv-parser.ts",
|
|
2612
|
+
"returnTypeTokenRange": {
|
|
2613
|
+
"startIndex": 3,
|
|
2614
|
+
"endIndex": 4
|
|
2615
|
+
},
|
|
2616
|
+
"releaseTag": "Public",
|
|
2617
|
+
"overloadIndex": 1,
|
|
2618
|
+
"parameters": [
|
|
2619
|
+
{
|
|
2620
|
+
"parameterName": "content",
|
|
2621
|
+
"parameterTypeTokenRange": {
|
|
2622
|
+
"startIndex": 1,
|
|
2623
|
+
"endIndex": 2
|
|
2624
|
+
},
|
|
2625
|
+
"isOptional": false
|
|
2626
|
+
}
|
|
2627
|
+
],
|
|
2628
|
+
"name": "parseCsv"
|
|
2629
|
+
},
|
|
1653
2630
|
{
|
|
1654
2631
|
"kind": "TypeAlias",
|
|
1655
2632
|
"canonicalReference": "@genesislcap/foundation-forms!RendererEntry:type",
|