@genesislcap/foundation-forms 15.50.2 → 15.50.3-holiday-picker.2
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 +416 -0
- package/dist/dts/index.d.ts +2 -0
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/jsonforms/renderers/DatePickerControlRenderer.d.ts +40 -0
- package/dist/dts/jsonforms/renderers/DatePickerControlRenderer.d.ts.map +1 -0
- package/dist/dts/jsonforms/renderers/RenderersRanks.d.ts +2 -0
- package/dist/dts/jsonforms/renderers/RenderersRanks.d.ts.map +1 -1
- package/dist/dts/jsonforms/renderers/ValueDateControlRenderer.d.ts +57 -0
- package/dist/dts/jsonforms/renderers/ValueDateControlRenderer.d.ts.map +1 -0
- package/dist/dts/jsonforms/renderers/date-value-format.d.ts +44 -0
- package/dist/dts/jsonforms/renderers/date-value-format.d.ts.map +1 -0
- package/dist/dts/jsonforms/renderers/renderer-data.d.ts +17 -0
- package/dist/dts/jsonforms/renderers/renderer-data.d.ts.map +1 -0
- package/dist/dts/types.d.ts +211 -1
- package/dist/dts/types.d.ts.map +1 -1
- package/dist/dts/utils/validation.d.ts +32 -0
- package/dist/dts/utils/validation.d.ts.map +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/jsonforms/renderers/DatePickerControlRenderer.js +131 -0
- package/dist/esm/jsonforms/renderers/RenderersRanks.js +2 -0
- package/dist/esm/jsonforms/renderers/ValueDateControlRenderer.js +275 -0
- package/dist/esm/jsonforms/renderers/date-value-format.js +70 -0
- package/dist/esm/jsonforms/renderers/renderer-data.js +36 -0
- package/dist/esm/utils/validation.js +39 -0
- package/dist/foundation-forms.api.json +479 -2
- package/dist/foundation-forms.d.ts +307 -1
- package/package.json +13 -13
|
@@ -1241,6 +1241,192 @@
|
|
|
1241
1241
|
"endIndex": 2
|
|
1242
1242
|
}
|
|
1243
1243
|
},
|
|
1244
|
+
{
|
|
1245
|
+
"kind": "Variable",
|
|
1246
|
+
"canonicalReference": "@genesislcap/foundation-forms!DatePickerControlRendererEntry:var",
|
|
1247
|
+
"docComment": "/**\n * Renderer entry for a date-picker control. Opt in per form via `additionalRenderers`:\n * ```ts\n * import { DatePickerControlRendererEntry } from '@genesislcap/foundation-forms';\n * form.additionalRenderers = [DatePickerControlRendererEntry];\n * ```\n *\n * It then matches every `format: \"date\"` string field, plus fields with `options.datePicker`.\n *\n * @public\n */\n",
|
|
1248
|
+
"excerptTokens": [
|
|
1249
|
+
{
|
|
1250
|
+
"kind": "Content",
|
|
1251
|
+
"text": "DatePickerControlRendererEntry: "
|
|
1252
|
+
},
|
|
1253
|
+
{
|
|
1254
|
+
"kind": "Reference",
|
|
1255
|
+
"text": "RendererEntry",
|
|
1256
|
+
"canonicalReference": "@genesislcap/foundation-forms!RendererEntry:type"
|
|
1257
|
+
}
|
|
1258
|
+
],
|
|
1259
|
+
"fileUrlPath": "src/jsonforms/renderers/DatePickerControlRenderer.ts",
|
|
1260
|
+
"isReadonly": true,
|
|
1261
|
+
"releaseTag": "Public",
|
|
1262
|
+
"name": "DatePickerControlRendererEntry",
|
|
1263
|
+
"variableTypeTokenRange": {
|
|
1264
|
+
"startIndex": 1,
|
|
1265
|
+
"endIndex": 2
|
|
1266
|
+
}
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
"kind": "Function",
|
|
1270
|
+
"canonicalReference": "@genesislcap/foundation-forms!DatePickerControlRendererTemplate:function(1)",
|
|
1271
|
+
"docComment": "/**\n * Renders a `<prefix-date-picker>` for a date control, storing an ISO `YYYY-MM-DD` string by default or UTC-midnight epoch milliseconds with `options.valueFormat: 'epoch'`.\n *\n * `allow-empty` keeps an unset field empty rather than defaulting to today, and `strict-free-text` reverts typed dates the calendar couldn't pick. The picker has no `disabled` state, so a disabled control blocks pointer events on its wrapper.\n *\n * @public\n */\n",
|
|
1272
|
+
"excerptTokens": [
|
|
1273
|
+
{
|
|
1274
|
+
"kind": "Content",
|
|
1275
|
+
"text": "DatePickerControlRendererTemplate: (prefix?: "
|
|
1276
|
+
},
|
|
1277
|
+
{
|
|
1278
|
+
"kind": "Content",
|
|
1279
|
+
"text": "string"
|
|
1280
|
+
},
|
|
1281
|
+
{
|
|
1282
|
+
"kind": "Content",
|
|
1283
|
+
"text": ") => "
|
|
1284
|
+
},
|
|
1285
|
+
{
|
|
1286
|
+
"kind": "Content",
|
|
1287
|
+
"text": "import(\"@microsoft/fast-element\")."
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
"kind": "Reference",
|
|
1291
|
+
"text": "ViewTemplate",
|
|
1292
|
+
"canonicalReference": "@microsoft/fast-element!ViewTemplate:class"
|
|
1293
|
+
},
|
|
1294
|
+
{
|
|
1295
|
+
"kind": "Content",
|
|
1296
|
+
"text": "<"
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
"kind": "Reference",
|
|
1300
|
+
"text": "DispatchRenderer",
|
|
1301
|
+
"canonicalReference": "@genesislcap/foundation-forms!~DispatchRenderer:class"
|
|
1302
|
+
},
|
|
1303
|
+
{
|
|
1304
|
+
"kind": "Content",
|
|
1305
|
+
"text": ", any>"
|
|
1306
|
+
}
|
|
1307
|
+
],
|
|
1308
|
+
"fileUrlPath": "src/jsonforms/renderers/DatePickerControlRenderer.ts",
|
|
1309
|
+
"returnTypeTokenRange": {
|
|
1310
|
+
"startIndex": 3,
|
|
1311
|
+
"endIndex": 8
|
|
1312
|
+
},
|
|
1313
|
+
"releaseTag": "Public",
|
|
1314
|
+
"overloadIndex": 1,
|
|
1315
|
+
"parameters": [
|
|
1316
|
+
{
|
|
1317
|
+
"parameterName": "prefix",
|
|
1318
|
+
"parameterTypeTokenRange": {
|
|
1319
|
+
"startIndex": 1,
|
|
1320
|
+
"endIndex": 2
|
|
1321
|
+
},
|
|
1322
|
+
"isOptional": true
|
|
1323
|
+
}
|
|
1324
|
+
],
|
|
1325
|
+
"name": "DatePickerControlRendererTemplate"
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
"kind": "TypeAlias",
|
|
1329
|
+
"canonicalReference": "@genesislcap/foundation-forms!DatePickerRendererOptions:type",
|
|
1330
|
+
"docComment": "/**\n * Configuration options for the date-picker control renderer (`DatePickerControlRendererEntry`).\n *\n * @public\n */\n",
|
|
1331
|
+
"excerptTokens": [
|
|
1332
|
+
{
|
|
1333
|
+
"kind": "Content",
|
|
1334
|
+
"text": "export type DatePickerRendererOptions = "
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
"kind": "Reference",
|
|
1338
|
+
"text": "StandardRendererOptions",
|
|
1339
|
+
"canonicalReference": "@genesislcap/foundation-forms!StandardRendererOptions:interface"
|
|
1340
|
+
},
|
|
1341
|
+
{
|
|
1342
|
+
"kind": "Content",
|
|
1343
|
+
"text": " & {\n datePicker?: true;\n valueFormat?: "
|
|
1344
|
+
},
|
|
1345
|
+
{
|
|
1346
|
+
"kind": "Reference",
|
|
1347
|
+
"text": "DateValueFormat",
|
|
1348
|
+
"canonicalReference": "@genesislcap/foundation-forms!DateValueFormat:type"
|
|
1349
|
+
},
|
|
1350
|
+
{
|
|
1351
|
+
"kind": "Content",
|
|
1352
|
+
"text": ";\n locale?: string;\n displayFormat?: string;\n hideWeekends?: boolean;\n holidayCalendars?: boolean;\n businessCenters?: string[];\n businessCentersField?: string;\n exchangeCodes?: string[];\n exchangeCodesField?: string;\n currencyCodes?: string[];\n currencyField?: string;\n minDate?: string;\n maxDate?: string;\n minDateField?: string;\n maxDateField?: string;\n rangeEndField?: string;\n allowFreeText?: boolean;\n}"
|
|
1353
|
+
},
|
|
1354
|
+
{
|
|
1355
|
+
"kind": "Content",
|
|
1356
|
+
"text": ";"
|
|
1357
|
+
}
|
|
1358
|
+
],
|
|
1359
|
+
"fileUrlPath": "src/types.ts",
|
|
1360
|
+
"releaseTag": "Public",
|
|
1361
|
+
"name": "DatePickerRendererOptions",
|
|
1362
|
+
"typeTokenRange": {
|
|
1363
|
+
"startIndex": 1,
|
|
1364
|
+
"endIndex": 5
|
|
1365
|
+
}
|
|
1366
|
+
},
|
|
1367
|
+
{
|
|
1368
|
+
"kind": "TypeAlias",
|
|
1369
|
+
"canonicalReference": "@genesislcap/foundation-forms!DateValueFormat:type",
|
|
1370
|
+
"docComment": "/**\n * Storage format for a date written by the date-picker and value-date control renderers: - `'iso'` — an ISO 8601 calendar date string, `YYYY-MM-DD` (e.g. `2026-09-25`). Matches JSON Schema `format: \"date\"` and the FpML/CDM convention, sorts correctly as a string, and parses natively everywhere. - `'epoch'` — UTC-midnight epoch milliseconds, the genesis `DATE` wire format.\n *\n * @public\n */\n",
|
|
1371
|
+
"excerptTokens": [
|
|
1372
|
+
{
|
|
1373
|
+
"kind": "Content",
|
|
1374
|
+
"text": "export type DateValueFormat = "
|
|
1375
|
+
},
|
|
1376
|
+
{
|
|
1377
|
+
"kind": "Content",
|
|
1378
|
+
"text": "'iso' | 'epoch'"
|
|
1379
|
+
},
|
|
1380
|
+
{
|
|
1381
|
+
"kind": "Content",
|
|
1382
|
+
"text": ";"
|
|
1383
|
+
}
|
|
1384
|
+
],
|
|
1385
|
+
"fileUrlPath": "src/types.ts",
|
|
1386
|
+
"releaseTag": "Public",
|
|
1387
|
+
"name": "DateValueFormat",
|
|
1388
|
+
"typeTokenRange": {
|
|
1389
|
+
"startIndex": 1,
|
|
1390
|
+
"endIndex": 2
|
|
1391
|
+
}
|
|
1392
|
+
},
|
|
1393
|
+
{
|
|
1394
|
+
"kind": "Variable",
|
|
1395
|
+
"canonicalReference": "@genesislcap/foundation-forms!DEFAULT_INDEX_CONVENTIONS:var",
|
|
1396
|
+
"docComment": "/**\n * Default settlement convention per overnight benchmark index, applied when the control's `options.indexField` sibling carries one of these codes: a short name (`SOFR`) or its FpML `floatingRateIndexScheme` code (`USD-SOFR`, checked against scheme 3-14).\n *\n * @public\n */\n",
|
|
1397
|
+
"excerptTokens": [
|
|
1398
|
+
{
|
|
1399
|
+
"kind": "Content",
|
|
1400
|
+
"text": "DEFAULT_INDEX_CONVENTIONS: "
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
"kind": "Reference",
|
|
1404
|
+
"text": "Record",
|
|
1405
|
+
"canonicalReference": "!Record:type"
|
|
1406
|
+
},
|
|
1407
|
+
{
|
|
1408
|
+
"kind": "Content",
|
|
1409
|
+
"text": "<string, "
|
|
1410
|
+
},
|
|
1411
|
+
{
|
|
1412
|
+
"kind": "Reference",
|
|
1413
|
+
"text": "IndexConvention",
|
|
1414
|
+
"canonicalReference": "@genesislcap/foundation-forms!~IndexConvention:interface"
|
|
1415
|
+
},
|
|
1416
|
+
{
|
|
1417
|
+
"kind": "Content",
|
|
1418
|
+
"text": ">"
|
|
1419
|
+
}
|
|
1420
|
+
],
|
|
1421
|
+
"fileUrlPath": "src/jsonforms/renderers/ValueDateControlRenderer.ts",
|
|
1422
|
+
"isReadonly": true,
|
|
1423
|
+
"releaseTag": "Public",
|
|
1424
|
+
"name": "DEFAULT_INDEX_CONVENTIONS",
|
|
1425
|
+
"variableTypeTokenRange": {
|
|
1426
|
+
"startIndex": 1,
|
|
1427
|
+
"endIndex": 5
|
|
1428
|
+
}
|
|
1429
|
+
},
|
|
1244
1430
|
{
|
|
1245
1431
|
"kind": "Function",
|
|
1246
1432
|
"canonicalReference": "@genesislcap/foundation-forms!downloadCsvTemplate:function(1)",
|
|
@@ -4045,6 +4231,120 @@
|
|
|
4045
4231
|
"endIndex": 9
|
|
4046
4232
|
}
|
|
4047
4233
|
},
|
|
4234
|
+
{
|
|
4235
|
+
"kind": "Function",
|
|
4236
|
+
"canonicalReference": "@genesislcap/foundation-forms!mustBeOnOrAfter:function(1)",
|
|
4237
|
+
"docComment": "/**\n * Ensures the date in the current field (the one the validator is on) is on or after the date in the target field, e.g. an end date that can't be before its start date. Either field may hold an ISO `YYYY-MM-DD` string or epoch milliseconds; no error while either is empty.\n *\n * @param target - the other date field, e.g. `'START_DATE'`\n *\n * @param message - the error shown on the current field; defaults to `Must not be before <target>`\n *\n * @returns a validator function that will be run by the smart form during the client-side validation stage\n *\n * @public\n */\n",
|
|
4238
|
+
"excerptTokens": [
|
|
4239
|
+
{
|
|
4240
|
+
"kind": "Content",
|
|
4241
|
+
"text": "mustBeOnOrAfter: (target: "
|
|
4242
|
+
},
|
|
4243
|
+
{
|
|
4244
|
+
"kind": "Content",
|
|
4245
|
+
"text": "string"
|
|
4246
|
+
},
|
|
4247
|
+
{
|
|
4248
|
+
"kind": "Content",
|
|
4249
|
+
"text": ", message?: "
|
|
4250
|
+
},
|
|
4251
|
+
{
|
|
4252
|
+
"kind": "Content",
|
|
4253
|
+
"text": "string"
|
|
4254
|
+
},
|
|
4255
|
+
{
|
|
4256
|
+
"kind": "Content",
|
|
4257
|
+
"text": ") => "
|
|
4258
|
+
},
|
|
4259
|
+
{
|
|
4260
|
+
"kind": "Content",
|
|
4261
|
+
"text": "(data: any, path: any) => {\n instancePath: string;\n message: string;\n schemaPath: string;\n keyword: string;\n params: {};\n}[]"
|
|
4262
|
+
}
|
|
4263
|
+
],
|
|
4264
|
+
"fileUrlPath": "src/utils/validation.ts",
|
|
4265
|
+
"returnTypeTokenRange": {
|
|
4266
|
+
"startIndex": 5,
|
|
4267
|
+
"endIndex": 6
|
|
4268
|
+
},
|
|
4269
|
+
"releaseTag": "Public",
|
|
4270
|
+
"overloadIndex": 1,
|
|
4271
|
+
"parameters": [
|
|
4272
|
+
{
|
|
4273
|
+
"parameterName": "target",
|
|
4274
|
+
"parameterTypeTokenRange": {
|
|
4275
|
+
"startIndex": 1,
|
|
4276
|
+
"endIndex": 2
|
|
4277
|
+
},
|
|
4278
|
+
"isOptional": false
|
|
4279
|
+
},
|
|
4280
|
+
{
|
|
4281
|
+
"parameterName": "message",
|
|
4282
|
+
"parameterTypeTokenRange": {
|
|
4283
|
+
"startIndex": 3,
|
|
4284
|
+
"endIndex": 4
|
|
4285
|
+
},
|
|
4286
|
+
"isOptional": true
|
|
4287
|
+
}
|
|
4288
|
+
],
|
|
4289
|
+
"name": "mustBeOnOrAfter"
|
|
4290
|
+
},
|
|
4291
|
+
{
|
|
4292
|
+
"kind": "Function",
|
|
4293
|
+
"canonicalReference": "@genesislcap/foundation-forms!mustBeOnOrBefore:function(1)",
|
|
4294
|
+
"docComment": "/**\n * Ensures the date in the current field (the one the validator is on) is on or before the date in the target field, e.g. a start date that can't be after its end date. Either field may hold an ISO `YYYY-MM-DD` string or epoch milliseconds; no error while either is empty.\n *\n * @param target - the other date field, e.g. `'END_DATE'`\n *\n * @param message - the error shown on the current field; defaults to `Must not be after <target>`\n *\n * @returns a validator function that will be run by the smart form during the client-side validation stage\n *\n * @public\n */\n",
|
|
4295
|
+
"excerptTokens": [
|
|
4296
|
+
{
|
|
4297
|
+
"kind": "Content",
|
|
4298
|
+
"text": "mustBeOnOrBefore: (target: "
|
|
4299
|
+
},
|
|
4300
|
+
{
|
|
4301
|
+
"kind": "Content",
|
|
4302
|
+
"text": "string"
|
|
4303
|
+
},
|
|
4304
|
+
{
|
|
4305
|
+
"kind": "Content",
|
|
4306
|
+
"text": ", message?: "
|
|
4307
|
+
},
|
|
4308
|
+
{
|
|
4309
|
+
"kind": "Content",
|
|
4310
|
+
"text": "string"
|
|
4311
|
+
},
|
|
4312
|
+
{
|
|
4313
|
+
"kind": "Content",
|
|
4314
|
+
"text": ") => "
|
|
4315
|
+
},
|
|
4316
|
+
{
|
|
4317
|
+
"kind": "Content",
|
|
4318
|
+
"text": "(data: any, path: any) => {\n instancePath: string;\n message: string;\n schemaPath: string;\n keyword: string;\n params: {};\n}[]"
|
|
4319
|
+
}
|
|
4320
|
+
],
|
|
4321
|
+
"fileUrlPath": "src/utils/validation.ts",
|
|
4322
|
+
"returnTypeTokenRange": {
|
|
4323
|
+
"startIndex": 5,
|
|
4324
|
+
"endIndex": 6
|
|
4325
|
+
},
|
|
4326
|
+
"releaseTag": "Public",
|
|
4327
|
+
"overloadIndex": 1,
|
|
4328
|
+
"parameters": [
|
|
4329
|
+
{
|
|
4330
|
+
"parameterName": "target",
|
|
4331
|
+
"parameterTypeTokenRange": {
|
|
4332
|
+
"startIndex": 1,
|
|
4333
|
+
"endIndex": 2
|
|
4334
|
+
},
|
|
4335
|
+
"isOptional": false
|
|
4336
|
+
},
|
|
4337
|
+
{
|
|
4338
|
+
"parameterName": "message",
|
|
4339
|
+
"parameterTypeTokenRange": {
|
|
4340
|
+
"startIndex": 3,
|
|
4341
|
+
"endIndex": 4
|
|
4342
|
+
},
|
|
4343
|
+
"isOptional": true
|
|
4344
|
+
}
|
|
4345
|
+
],
|
|
4346
|
+
"name": "mustBeOnOrBefore"
|
|
4347
|
+
},
|
|
4048
4348
|
{
|
|
4049
4349
|
"kind": "Function",
|
|
4050
4350
|
"canonicalReference": "@genesislcap/foundation-forms!mustMatch:function(1)",
|
|
@@ -5756,7 +6056,43 @@
|
|
|
5756
6056
|
},
|
|
5757
6057
|
{
|
|
5758
6058
|
"kind": "Content",
|
|
5759
|
-
"text": ", 'data'>>"
|
|
6059
|
+
"text": ", 'data'>> & "
|
|
6060
|
+
},
|
|
6061
|
+
{
|
|
6062
|
+
"kind": "Reference",
|
|
6063
|
+
"text": "Partial",
|
|
6064
|
+
"canonicalReference": "!Partial:type"
|
|
6065
|
+
},
|
|
6066
|
+
{
|
|
6067
|
+
"kind": "Content",
|
|
6068
|
+
"text": "<"
|
|
6069
|
+
},
|
|
6070
|
+
{
|
|
6071
|
+
"kind": "Reference",
|
|
6072
|
+
"text": "ValueDateRendererOptions",
|
|
6073
|
+
"canonicalReference": "@genesislcap/foundation-forms!ValueDateRendererOptions:type"
|
|
6074
|
+
},
|
|
6075
|
+
{
|
|
6076
|
+
"kind": "Content",
|
|
6077
|
+
"text": "> & "
|
|
6078
|
+
},
|
|
6079
|
+
{
|
|
6080
|
+
"kind": "Reference",
|
|
6081
|
+
"text": "Partial",
|
|
6082
|
+
"canonicalReference": "!Partial:type"
|
|
6083
|
+
},
|
|
6084
|
+
{
|
|
6085
|
+
"kind": "Content",
|
|
6086
|
+
"text": "<"
|
|
6087
|
+
},
|
|
6088
|
+
{
|
|
6089
|
+
"kind": "Reference",
|
|
6090
|
+
"text": "DatePickerRendererOptions",
|
|
6091
|
+
"canonicalReference": "@genesislcap/foundation-forms!DatePickerRendererOptions:type"
|
|
6092
|
+
},
|
|
6093
|
+
{
|
|
6094
|
+
"kind": "Content",
|
|
6095
|
+
"text": ">"
|
|
5760
6096
|
},
|
|
5761
6097
|
{
|
|
5762
6098
|
"kind": "Content",
|
|
@@ -5768,7 +6104,7 @@
|
|
|
5768
6104
|
"name": "UiSchemaElementOptions",
|
|
5769
6105
|
"typeTokenRange": {
|
|
5770
6106
|
"startIndex": 1,
|
|
5771
|
-
"endIndex":
|
|
6107
|
+
"endIndex": 57
|
|
5772
6108
|
}
|
|
5773
6109
|
},
|
|
5774
6110
|
{
|
|
@@ -5841,6 +6177,147 @@
|
|
|
5841
6177
|
"startIndex": 1,
|
|
5842
6178
|
"endIndex": 6
|
|
5843
6179
|
}
|
|
6180
|
+
},
|
|
6181
|
+
{
|
|
6182
|
+
"kind": "Variable",
|
|
6183
|
+
"canonicalReference": "@genesislcap/foundation-forms!ValueDateControlRendererEntry:var",
|
|
6184
|
+
"docComment": "/**\n * Renderer entry for a value-date control. Opt in per form via `additionalRenderers`:\n * ```ts\n * import { ValueDateControlRendererEntry } from '@genesislcap/foundation-forms';\n * form.additionalRenderers = [ValueDateControlRendererEntry];\n * ```\n *\n * and mark the field with `options: { valueDate: true, baseCurrencyField: 'BASE_CCY', ... }`.\n *\n * @public\n */\n",
|
|
6185
|
+
"excerptTokens": [
|
|
6186
|
+
{
|
|
6187
|
+
"kind": "Content",
|
|
6188
|
+
"text": "ValueDateControlRendererEntry: "
|
|
6189
|
+
},
|
|
6190
|
+
{
|
|
6191
|
+
"kind": "Reference",
|
|
6192
|
+
"text": "RendererEntry",
|
|
6193
|
+
"canonicalReference": "@genesislcap/foundation-forms!RendererEntry:type"
|
|
6194
|
+
}
|
|
6195
|
+
],
|
|
6196
|
+
"fileUrlPath": "src/jsonforms/renderers/ValueDateControlRenderer.ts",
|
|
6197
|
+
"isReadonly": true,
|
|
6198
|
+
"releaseTag": "Public",
|
|
6199
|
+
"name": "ValueDateControlRendererEntry",
|
|
6200
|
+
"variableTypeTokenRange": {
|
|
6201
|
+
"startIndex": 1,
|
|
6202
|
+
"endIndex": 2
|
|
6203
|
+
}
|
|
6204
|
+
},
|
|
6205
|
+
{
|
|
6206
|
+
"kind": "Function",
|
|
6207
|
+
"canonicalReference": "@genesislcap/foundation-forms!ValueDateControlRendererTemplate:function(1)",
|
|
6208
|
+
"docComment": "/**\n * Renders a `<foundation-value-date>` bound to sibling fields (currency pair, index, trade date) via `options`, and writes the resolved delivery date back as this control's value - plus, optionally, the unadjusted date (`unadjustedDateScope`) and the spot lag in days (`spotLagDaysScope`). A read-only control shows the date with its conventions locked.\n *\n * Every binding re-pushes on each form-wide re-render, so values the user can change in the widget are cached per renderer and echoed back instead of being reset.\n *\n * @public\n */\n",
|
|
6209
|
+
"excerptTokens": [
|
|
6210
|
+
{
|
|
6211
|
+
"kind": "Content",
|
|
6212
|
+
"text": "ValueDateControlRendererTemplate: (prefix?: "
|
|
6213
|
+
},
|
|
6214
|
+
{
|
|
6215
|
+
"kind": "Content",
|
|
6216
|
+
"text": "string"
|
|
6217
|
+
},
|
|
6218
|
+
{
|
|
6219
|
+
"kind": "Content",
|
|
6220
|
+
"text": ") => "
|
|
6221
|
+
},
|
|
6222
|
+
{
|
|
6223
|
+
"kind": "Content",
|
|
6224
|
+
"text": "import(\"@microsoft/fast-element\")."
|
|
6225
|
+
},
|
|
6226
|
+
{
|
|
6227
|
+
"kind": "Reference",
|
|
6228
|
+
"text": "ViewTemplate",
|
|
6229
|
+
"canonicalReference": "@microsoft/fast-element!ViewTemplate:class"
|
|
6230
|
+
},
|
|
6231
|
+
{
|
|
6232
|
+
"kind": "Content",
|
|
6233
|
+
"text": "<"
|
|
6234
|
+
},
|
|
6235
|
+
{
|
|
6236
|
+
"kind": "Reference",
|
|
6237
|
+
"text": "DispatchRenderer",
|
|
6238
|
+
"canonicalReference": "@genesislcap/foundation-forms!~DispatchRenderer:class"
|
|
6239
|
+
},
|
|
6240
|
+
{
|
|
6241
|
+
"kind": "Content",
|
|
6242
|
+
"text": ", any>"
|
|
6243
|
+
}
|
|
6244
|
+
],
|
|
6245
|
+
"fileUrlPath": "src/jsonforms/renderers/ValueDateControlRenderer.ts",
|
|
6246
|
+
"returnTypeTokenRange": {
|
|
6247
|
+
"startIndex": 3,
|
|
6248
|
+
"endIndex": 8
|
|
6249
|
+
},
|
|
6250
|
+
"releaseTag": "Public",
|
|
6251
|
+
"overloadIndex": 1,
|
|
6252
|
+
"parameters": [
|
|
6253
|
+
{
|
|
6254
|
+
"parameterName": "prefix",
|
|
6255
|
+
"parameterTypeTokenRange": {
|
|
6256
|
+
"startIndex": 1,
|
|
6257
|
+
"endIndex": 2
|
|
6258
|
+
},
|
|
6259
|
+
"isOptional": true
|
|
6260
|
+
}
|
|
6261
|
+
],
|
|
6262
|
+
"name": "ValueDateControlRendererTemplate"
|
|
6263
|
+
},
|
|
6264
|
+
{
|
|
6265
|
+
"kind": "TypeAlias",
|
|
6266
|
+
"canonicalReference": "@genesislcap/foundation-forms!ValueDateRendererOptions:type",
|
|
6267
|
+
"docComment": "/**\n * Configuration options for the value-date control renderer. Activated by `valueDate: true`; reads its currencies, index and trade date from sibling fields.\n *\n * @public\n */\n",
|
|
6268
|
+
"excerptTokens": [
|
|
6269
|
+
{
|
|
6270
|
+
"kind": "Content",
|
|
6271
|
+
"text": "export type ValueDateRendererOptions = "
|
|
6272
|
+
},
|
|
6273
|
+
{
|
|
6274
|
+
"kind": "Reference",
|
|
6275
|
+
"text": "StandardRendererOptions",
|
|
6276
|
+
"canonicalReference": "@genesislcap/foundation-forms!StandardRendererOptions:interface"
|
|
6277
|
+
},
|
|
6278
|
+
{
|
|
6279
|
+
"kind": "Content",
|
|
6280
|
+
"text": " & {\n valueDate: true;\n baseCurrencyField?: string;\n quoteCurrencyField?: string;\n baseCurrency?: string;\n quoteCurrency?: string;\n indexField?: string;\n tradeDateField?: string;\n spotLag?: "
|
|
6281
|
+
},
|
|
6282
|
+
{
|
|
6283
|
+
"kind": "Reference",
|
|
6284
|
+
"text": "SpotLag",
|
|
6285
|
+
"canonicalReference": "@genesislcap/foundation-ui!SpotLag:type"
|
|
6286
|
+
},
|
|
6287
|
+
{
|
|
6288
|
+
"kind": "Content",
|
|
6289
|
+
"text": ";\n dayRollConvention?: "
|
|
6290
|
+
},
|
|
6291
|
+
{
|
|
6292
|
+
"kind": "Reference",
|
|
6293
|
+
"text": "DayRollConvention",
|
|
6294
|
+
"canonicalReference": "@genesislcap/foundation-ui!DayRollConvention:type"
|
|
6295
|
+
},
|
|
6296
|
+
{
|
|
6297
|
+
"kind": "Content",
|
|
6298
|
+
"text": ";\n valueFormat?: "
|
|
6299
|
+
},
|
|
6300
|
+
{
|
|
6301
|
+
"kind": "Reference",
|
|
6302
|
+
"text": "DateValueFormat",
|
|
6303
|
+
"canonicalReference": "@genesislcap/foundation-forms!DateValueFormat:type"
|
|
6304
|
+
},
|
|
6305
|
+
{
|
|
6306
|
+
"kind": "Content",
|
|
6307
|
+
"text": ";\n unadjustedDateScope?: string;\n spotLagDaysScope?: string;\n holidayCalendars?: boolean;\n}"
|
|
6308
|
+
},
|
|
6309
|
+
{
|
|
6310
|
+
"kind": "Content",
|
|
6311
|
+
"text": ";"
|
|
6312
|
+
}
|
|
6313
|
+
],
|
|
6314
|
+
"fileUrlPath": "src/types.ts",
|
|
6315
|
+
"releaseTag": "Public",
|
|
6316
|
+
"name": "ValueDateRendererOptions",
|
|
6317
|
+
"typeTokenRange": {
|
|
6318
|
+
"startIndex": 1,
|
|
6319
|
+
"endIndex": 9
|
|
6320
|
+
}
|
|
5844
6321
|
}
|
|
5845
6322
|
]
|
|
5846
6323
|
}
|