@genesislcap/foundation-forms 14.482.0 → 14.482.1-FUI-2575.1
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 +286 -249
- package/dist/dts/jsonforms/renderers/NumberControlRenderer.d.ts +4 -0
- package/dist/dts/jsonforms/renderers/NumberControlRenderer.d.ts.map +1 -1
- package/dist/dts/jsonforms/testers/isOneOfNumber.d.ts +2 -1
- package/dist/dts/jsonforms/testers/isOneOfNumber.d.ts.map +1 -1
- package/dist/dts/types.d.ts +14 -1
- package/dist/dts/types.d.ts.map +1 -1
- package/dist/dts/utils/types.d.ts +6 -0
- package/dist/dts/utils/types.d.ts.map +1 -1
- package/dist/esm/jsonforms/renderers/NumberControlRenderer.js +32 -10
- package/dist/esm/jsonforms/testers/isOneOfNumber.js +2 -1
- package/dist/foundation-forms.api.json +179 -13
- package/dist/foundation-forms.d.ts +21 -1
- package/package.json +15 -15
|
@@ -2219,6 +2219,257 @@
|
|
|
2219
2219
|
}
|
|
2220
2220
|
]
|
|
2221
2221
|
},
|
|
2222
|
+
{
|
|
2223
|
+
"kind": "javascript-module",
|
|
2224
|
+
"path": "src/jsonforms/testers/isArray.ts",
|
|
2225
|
+
"declarations": [
|
|
2226
|
+
{
|
|
2227
|
+
"kind": "function",
|
|
2228
|
+
"name": "isArray",
|
|
2229
|
+
"parameters": [
|
|
2230
|
+
{
|
|
2231
|
+
"name": "itemsType",
|
|
2232
|
+
"type": {
|
|
2233
|
+
"text": "ArrayItemsType"
|
|
2234
|
+
}
|
|
2235
|
+
}
|
|
2236
|
+
]
|
|
2237
|
+
}
|
|
2238
|
+
],
|
|
2239
|
+
"exports": [
|
|
2240
|
+
{
|
|
2241
|
+
"kind": "js",
|
|
2242
|
+
"name": "isArray",
|
|
2243
|
+
"declaration": {
|
|
2244
|
+
"name": "isArray",
|
|
2245
|
+
"module": "src/jsonforms/testers/isArray.ts"
|
|
2246
|
+
}
|
|
2247
|
+
}
|
|
2248
|
+
]
|
|
2249
|
+
},
|
|
2250
|
+
{
|
|
2251
|
+
"kind": "javascript-module",
|
|
2252
|
+
"path": "src/jsonforms/testers/isDate.ts",
|
|
2253
|
+
"declarations": [
|
|
2254
|
+
{
|
|
2255
|
+
"kind": "variable",
|
|
2256
|
+
"name": "isOneOfDate"
|
|
2257
|
+
}
|
|
2258
|
+
],
|
|
2259
|
+
"exports": [
|
|
2260
|
+
{
|
|
2261
|
+
"kind": "js",
|
|
2262
|
+
"name": "isOneOfDate",
|
|
2263
|
+
"declaration": {
|
|
2264
|
+
"name": "isOneOfDate",
|
|
2265
|
+
"module": "src/jsonforms/testers/isDate.ts"
|
|
2266
|
+
}
|
|
2267
|
+
}
|
|
2268
|
+
]
|
|
2269
|
+
},
|
|
2270
|
+
{
|
|
2271
|
+
"kind": "javascript-module",
|
|
2272
|
+
"path": "src/jsonforms/testers/isInvisible.ts",
|
|
2273
|
+
"declarations": [
|
|
2274
|
+
{
|
|
2275
|
+
"kind": "function",
|
|
2276
|
+
"name": "isInvisible",
|
|
2277
|
+
"return": {
|
|
2278
|
+
"type": {
|
|
2279
|
+
"text": "boolean"
|
|
2280
|
+
}
|
|
2281
|
+
},
|
|
2282
|
+
"parameters": [
|
|
2283
|
+
{
|
|
2284
|
+
"name": "uischema",
|
|
2285
|
+
"type": {
|
|
2286
|
+
"text": "UISchemaElement"
|
|
2287
|
+
}
|
|
2288
|
+
},
|
|
2289
|
+
{
|
|
2290
|
+
"name": "schema",
|
|
2291
|
+
"type": {
|
|
2292
|
+
"text": "JsonSchema"
|
|
2293
|
+
}
|
|
2294
|
+
},
|
|
2295
|
+
{
|
|
2296
|
+
"name": "context",
|
|
2297
|
+
"type": {
|
|
2298
|
+
"text": "TesterContext"
|
|
2299
|
+
}
|
|
2300
|
+
}
|
|
2301
|
+
]
|
|
2302
|
+
}
|
|
2303
|
+
],
|
|
2304
|
+
"exports": [
|
|
2305
|
+
{
|
|
2306
|
+
"kind": "js",
|
|
2307
|
+
"name": "isInvisible",
|
|
2308
|
+
"declaration": {
|
|
2309
|
+
"name": "isInvisible",
|
|
2310
|
+
"module": "src/jsonforms/testers/isInvisible.ts"
|
|
2311
|
+
}
|
|
2312
|
+
}
|
|
2313
|
+
]
|
|
2314
|
+
},
|
|
2315
|
+
{
|
|
2316
|
+
"kind": "javascript-module",
|
|
2317
|
+
"path": "src/jsonforms/testers/isOneOfBoolean.ts",
|
|
2318
|
+
"declarations": [
|
|
2319
|
+
{
|
|
2320
|
+
"kind": "variable",
|
|
2321
|
+
"name": "isOneOfBoolean"
|
|
2322
|
+
}
|
|
2323
|
+
],
|
|
2324
|
+
"exports": [
|
|
2325
|
+
{
|
|
2326
|
+
"kind": "js",
|
|
2327
|
+
"name": "isOneOfBoolean",
|
|
2328
|
+
"declaration": {
|
|
2329
|
+
"name": "isOneOfBoolean",
|
|
2330
|
+
"module": "src/jsonforms/testers/isOneOfBoolean.ts"
|
|
2331
|
+
}
|
|
2332
|
+
}
|
|
2333
|
+
]
|
|
2334
|
+
},
|
|
2335
|
+
{
|
|
2336
|
+
"kind": "javascript-module",
|
|
2337
|
+
"path": "src/jsonforms/testers/isOneOfEnum.ts",
|
|
2338
|
+
"declarations": [
|
|
2339
|
+
{
|
|
2340
|
+
"kind": "variable",
|
|
2341
|
+
"name": "isOneOfEnum"
|
|
2342
|
+
}
|
|
2343
|
+
],
|
|
2344
|
+
"exports": [
|
|
2345
|
+
{
|
|
2346
|
+
"kind": "js",
|
|
2347
|
+
"name": "isOneOfEnum",
|
|
2348
|
+
"declaration": {
|
|
2349
|
+
"name": "isOneOfEnum",
|
|
2350
|
+
"module": "src/jsonforms/testers/isOneOfEnum.ts"
|
|
2351
|
+
}
|
|
2352
|
+
}
|
|
2353
|
+
]
|
|
2354
|
+
},
|
|
2355
|
+
{
|
|
2356
|
+
"kind": "javascript-module",
|
|
2357
|
+
"path": "src/jsonforms/testers/isOneOfNumber.ts",
|
|
2358
|
+
"declarations": [
|
|
2359
|
+
{
|
|
2360
|
+
"kind": "function",
|
|
2361
|
+
"name": "isBigDecimal",
|
|
2362
|
+
"return": {
|
|
2363
|
+
"type": {
|
|
2364
|
+
"text": "boolean"
|
|
2365
|
+
}
|
|
2366
|
+
},
|
|
2367
|
+
"parameters": [
|
|
2368
|
+
{
|
|
2369
|
+
"name": "fieldSchema",
|
|
2370
|
+
"type": {
|
|
2371
|
+
"text": "GenesisJsonSchema"
|
|
2372
|
+
}
|
|
2373
|
+
}
|
|
2374
|
+
]
|
|
2375
|
+
},
|
|
2376
|
+
{
|
|
2377
|
+
"kind": "variable",
|
|
2378
|
+
"name": "isOneOfNumber"
|
|
2379
|
+
}
|
|
2380
|
+
],
|
|
2381
|
+
"exports": [
|
|
2382
|
+
{
|
|
2383
|
+
"kind": "js",
|
|
2384
|
+
"name": "isBigDecimal",
|
|
2385
|
+
"declaration": {
|
|
2386
|
+
"name": "isBigDecimal",
|
|
2387
|
+
"module": "src/jsonforms/testers/isOneOfNumber.ts"
|
|
2388
|
+
}
|
|
2389
|
+
},
|
|
2390
|
+
{
|
|
2391
|
+
"kind": "js",
|
|
2392
|
+
"name": "isOneOfNumber",
|
|
2393
|
+
"declaration": {
|
|
2394
|
+
"name": "isOneOfNumber",
|
|
2395
|
+
"module": "src/jsonforms/testers/isOneOfNumber.ts"
|
|
2396
|
+
}
|
|
2397
|
+
}
|
|
2398
|
+
]
|
|
2399
|
+
},
|
|
2400
|
+
{
|
|
2401
|
+
"kind": "javascript-module",
|
|
2402
|
+
"path": "src/jsonforms/testers/isOneOfOptionMultiselect.ts",
|
|
2403
|
+
"declarations": [
|
|
2404
|
+
{
|
|
2405
|
+
"kind": "variable",
|
|
2406
|
+
"name": "isOneOfOptionMultiselect"
|
|
2407
|
+
}
|
|
2408
|
+
],
|
|
2409
|
+
"exports": [
|
|
2410
|
+
{
|
|
2411
|
+
"kind": "js",
|
|
2412
|
+
"name": "isOneOfOptionMultiselect",
|
|
2413
|
+
"declaration": {
|
|
2414
|
+
"name": "isOneOfOptionMultiselect",
|
|
2415
|
+
"module": "src/jsonforms/testers/isOneOfOptionMultiselect.ts"
|
|
2416
|
+
}
|
|
2417
|
+
}
|
|
2418
|
+
]
|
|
2419
|
+
},
|
|
2420
|
+
{
|
|
2421
|
+
"kind": "javascript-module",
|
|
2422
|
+
"path": "src/jsonforms/testers/isTime.ts",
|
|
2423
|
+
"declarations": [
|
|
2424
|
+
{
|
|
2425
|
+
"kind": "variable",
|
|
2426
|
+
"name": "isOneOfTime"
|
|
2427
|
+
}
|
|
2428
|
+
],
|
|
2429
|
+
"exports": [
|
|
2430
|
+
{
|
|
2431
|
+
"kind": "js",
|
|
2432
|
+
"name": "isOneOfTime",
|
|
2433
|
+
"declaration": {
|
|
2434
|
+
"name": "isOneOfTime",
|
|
2435
|
+
"module": "src/jsonforms/testers/isTime.ts"
|
|
2436
|
+
}
|
|
2437
|
+
}
|
|
2438
|
+
]
|
|
2439
|
+
},
|
|
2440
|
+
{
|
|
2441
|
+
"kind": "javascript-module",
|
|
2442
|
+
"path": "src/jsonforms/testers/optionIs.ts",
|
|
2443
|
+
"declarations": [
|
|
2444
|
+
{
|
|
2445
|
+
"kind": "function",
|
|
2446
|
+
"name": "optionIs",
|
|
2447
|
+
"return": {
|
|
2448
|
+
"type": {
|
|
2449
|
+
"text": "Tester"
|
|
2450
|
+
}
|
|
2451
|
+
},
|
|
2452
|
+
"parameters": [
|
|
2453
|
+
{
|
|
2454
|
+
"name": "optionName",
|
|
2455
|
+
"type": {
|
|
2456
|
+
"text": "string"
|
|
2457
|
+
}
|
|
2458
|
+
}
|
|
2459
|
+
]
|
|
2460
|
+
}
|
|
2461
|
+
],
|
|
2462
|
+
"exports": [
|
|
2463
|
+
{
|
|
2464
|
+
"kind": "js",
|
|
2465
|
+
"name": "optionIs",
|
|
2466
|
+
"declaration": {
|
|
2467
|
+
"name": "optionIs",
|
|
2468
|
+
"module": "src/jsonforms/testers/optionIs.ts"
|
|
2469
|
+
}
|
|
2470
|
+
}
|
|
2471
|
+
]
|
|
2472
|
+
},
|
|
2222
2473
|
{
|
|
2223
2474
|
"kind": "javascript-module",
|
|
2224
2475
|
"path": "src/jsonforms/renderers/ArrayListWrapperRenderer.ts",
|
|
@@ -3705,11 +3956,35 @@
|
|
|
3705
3956
|
"declarations": [
|
|
3706
3957
|
{
|
|
3707
3958
|
"kind": "function",
|
|
3708
|
-
"name": "
|
|
3959
|
+
"name": "resolveMaximumInputPrecision",
|
|
3960
|
+
"return": {
|
|
3961
|
+
"type": {
|
|
3962
|
+
"text": "number"
|
|
3963
|
+
}
|
|
3964
|
+
},
|
|
3709
3965
|
"parameters": [
|
|
3710
3966
|
{
|
|
3711
|
-
"name": "
|
|
3712
|
-
"
|
|
3967
|
+
"name": "fieldSchema",
|
|
3968
|
+
"type": {
|
|
3969
|
+
"text": "GenesisJsonSchema"
|
|
3970
|
+
}
|
|
3971
|
+
},
|
|
3972
|
+
{
|
|
3973
|
+
"name": "options",
|
|
3974
|
+
"optional": true,
|
|
3975
|
+
"type": {
|
|
3976
|
+
"text": "{ maximumInputPrecision?: number }"
|
|
3977
|
+
}
|
|
3978
|
+
}
|
|
3979
|
+
]
|
|
3980
|
+
},
|
|
3981
|
+
{
|
|
3982
|
+
"kind": "function",
|
|
3983
|
+
"name": "NumberControlRendererTemplate",
|
|
3984
|
+
"parameters": [
|
|
3985
|
+
{
|
|
3986
|
+
"name": "prefix",
|
|
3987
|
+
"default": "'zero'",
|
|
3713
3988
|
"type": {
|
|
3714
3989
|
"text": "string"
|
|
3715
3990
|
}
|
|
@@ -3726,6 +4001,14 @@
|
|
|
3726
4001
|
}
|
|
3727
4002
|
],
|
|
3728
4003
|
"exports": [
|
|
4004
|
+
{
|
|
4005
|
+
"kind": "js",
|
|
4006
|
+
"name": "resolveMaximumInputPrecision",
|
|
4007
|
+
"declaration": {
|
|
4008
|
+
"name": "resolveMaximumInputPrecision",
|
|
4009
|
+
"module": "src/jsonforms/renderers/NumberControlRenderer.ts"
|
|
4010
|
+
}
|
|
4011
|
+
},
|
|
3729
4012
|
{
|
|
3730
4013
|
"kind": "js",
|
|
3731
4014
|
"name": "NumberControlRendererTemplate",
|
|
@@ -4875,252 +5158,6 @@
|
|
|
4875
5158
|
}
|
|
4876
5159
|
}
|
|
4877
5160
|
]
|
|
4878
|
-
},
|
|
4879
|
-
{
|
|
4880
|
-
"kind": "javascript-module",
|
|
4881
|
-
"path": "src/jsonforms/testers/isArray.ts",
|
|
4882
|
-
"declarations": [
|
|
4883
|
-
{
|
|
4884
|
-
"kind": "function",
|
|
4885
|
-
"name": "isArray",
|
|
4886
|
-
"parameters": [
|
|
4887
|
-
{
|
|
4888
|
-
"name": "itemsType",
|
|
4889
|
-
"type": {
|
|
4890
|
-
"text": "ArrayItemsType"
|
|
4891
|
-
}
|
|
4892
|
-
}
|
|
4893
|
-
]
|
|
4894
|
-
}
|
|
4895
|
-
],
|
|
4896
|
-
"exports": [
|
|
4897
|
-
{
|
|
4898
|
-
"kind": "js",
|
|
4899
|
-
"name": "isArray",
|
|
4900
|
-
"declaration": {
|
|
4901
|
-
"name": "isArray",
|
|
4902
|
-
"module": "src/jsonforms/testers/isArray.ts"
|
|
4903
|
-
}
|
|
4904
|
-
}
|
|
4905
|
-
]
|
|
4906
|
-
},
|
|
4907
|
-
{
|
|
4908
|
-
"kind": "javascript-module",
|
|
4909
|
-
"path": "src/jsonforms/testers/isDate.ts",
|
|
4910
|
-
"declarations": [
|
|
4911
|
-
{
|
|
4912
|
-
"kind": "variable",
|
|
4913
|
-
"name": "isOneOfDate"
|
|
4914
|
-
}
|
|
4915
|
-
],
|
|
4916
|
-
"exports": [
|
|
4917
|
-
{
|
|
4918
|
-
"kind": "js",
|
|
4919
|
-
"name": "isOneOfDate",
|
|
4920
|
-
"declaration": {
|
|
4921
|
-
"name": "isOneOfDate",
|
|
4922
|
-
"module": "src/jsonforms/testers/isDate.ts"
|
|
4923
|
-
}
|
|
4924
|
-
}
|
|
4925
|
-
]
|
|
4926
|
-
},
|
|
4927
|
-
{
|
|
4928
|
-
"kind": "javascript-module",
|
|
4929
|
-
"path": "src/jsonforms/testers/isInvisible.ts",
|
|
4930
|
-
"declarations": [
|
|
4931
|
-
{
|
|
4932
|
-
"kind": "function",
|
|
4933
|
-
"name": "isInvisible",
|
|
4934
|
-
"return": {
|
|
4935
|
-
"type": {
|
|
4936
|
-
"text": "boolean"
|
|
4937
|
-
}
|
|
4938
|
-
},
|
|
4939
|
-
"parameters": [
|
|
4940
|
-
{
|
|
4941
|
-
"name": "uischema",
|
|
4942
|
-
"type": {
|
|
4943
|
-
"text": "UISchemaElement"
|
|
4944
|
-
}
|
|
4945
|
-
},
|
|
4946
|
-
{
|
|
4947
|
-
"name": "schema",
|
|
4948
|
-
"type": {
|
|
4949
|
-
"text": "JsonSchema"
|
|
4950
|
-
}
|
|
4951
|
-
},
|
|
4952
|
-
{
|
|
4953
|
-
"name": "context",
|
|
4954
|
-
"type": {
|
|
4955
|
-
"text": "TesterContext"
|
|
4956
|
-
}
|
|
4957
|
-
}
|
|
4958
|
-
]
|
|
4959
|
-
}
|
|
4960
|
-
],
|
|
4961
|
-
"exports": [
|
|
4962
|
-
{
|
|
4963
|
-
"kind": "js",
|
|
4964
|
-
"name": "isInvisible",
|
|
4965
|
-
"declaration": {
|
|
4966
|
-
"name": "isInvisible",
|
|
4967
|
-
"module": "src/jsonforms/testers/isInvisible.ts"
|
|
4968
|
-
}
|
|
4969
|
-
}
|
|
4970
|
-
]
|
|
4971
|
-
},
|
|
4972
|
-
{
|
|
4973
|
-
"kind": "javascript-module",
|
|
4974
|
-
"path": "src/jsonforms/testers/isOneOfBoolean.ts",
|
|
4975
|
-
"declarations": [
|
|
4976
|
-
{
|
|
4977
|
-
"kind": "variable",
|
|
4978
|
-
"name": "isOneOfBoolean"
|
|
4979
|
-
}
|
|
4980
|
-
],
|
|
4981
|
-
"exports": [
|
|
4982
|
-
{
|
|
4983
|
-
"kind": "js",
|
|
4984
|
-
"name": "isOneOfBoolean",
|
|
4985
|
-
"declaration": {
|
|
4986
|
-
"name": "isOneOfBoolean",
|
|
4987
|
-
"module": "src/jsonforms/testers/isOneOfBoolean.ts"
|
|
4988
|
-
}
|
|
4989
|
-
}
|
|
4990
|
-
]
|
|
4991
|
-
},
|
|
4992
|
-
{
|
|
4993
|
-
"kind": "javascript-module",
|
|
4994
|
-
"path": "src/jsonforms/testers/isOneOfEnum.ts",
|
|
4995
|
-
"declarations": [
|
|
4996
|
-
{
|
|
4997
|
-
"kind": "variable",
|
|
4998
|
-
"name": "isOneOfEnum"
|
|
4999
|
-
}
|
|
5000
|
-
],
|
|
5001
|
-
"exports": [
|
|
5002
|
-
{
|
|
5003
|
-
"kind": "js",
|
|
5004
|
-
"name": "isOneOfEnum",
|
|
5005
|
-
"declaration": {
|
|
5006
|
-
"name": "isOneOfEnum",
|
|
5007
|
-
"module": "src/jsonforms/testers/isOneOfEnum.ts"
|
|
5008
|
-
}
|
|
5009
|
-
}
|
|
5010
|
-
]
|
|
5011
|
-
},
|
|
5012
|
-
{
|
|
5013
|
-
"kind": "javascript-module",
|
|
5014
|
-
"path": "src/jsonforms/testers/isOneOfNumber.ts",
|
|
5015
|
-
"declarations": [
|
|
5016
|
-
{
|
|
5017
|
-
"kind": "function",
|
|
5018
|
-
"name": "isBigDecimal",
|
|
5019
|
-
"parameters": [
|
|
5020
|
-
{
|
|
5021
|
-
"name": "s",
|
|
5022
|
-
"type": {
|
|
5023
|
-
"text": "any"
|
|
5024
|
-
}
|
|
5025
|
-
}
|
|
5026
|
-
]
|
|
5027
|
-
},
|
|
5028
|
-
{
|
|
5029
|
-
"kind": "variable",
|
|
5030
|
-
"name": "isOneOfNumber"
|
|
5031
|
-
}
|
|
5032
|
-
],
|
|
5033
|
-
"exports": [
|
|
5034
|
-
{
|
|
5035
|
-
"kind": "js",
|
|
5036
|
-
"name": "isBigDecimal",
|
|
5037
|
-
"declaration": {
|
|
5038
|
-
"name": "isBigDecimal",
|
|
5039
|
-
"module": "src/jsonforms/testers/isOneOfNumber.ts"
|
|
5040
|
-
}
|
|
5041
|
-
},
|
|
5042
|
-
{
|
|
5043
|
-
"kind": "js",
|
|
5044
|
-
"name": "isOneOfNumber",
|
|
5045
|
-
"declaration": {
|
|
5046
|
-
"name": "isOneOfNumber",
|
|
5047
|
-
"module": "src/jsonforms/testers/isOneOfNumber.ts"
|
|
5048
|
-
}
|
|
5049
|
-
}
|
|
5050
|
-
]
|
|
5051
|
-
},
|
|
5052
|
-
{
|
|
5053
|
-
"kind": "javascript-module",
|
|
5054
|
-
"path": "src/jsonforms/testers/isOneOfOptionMultiselect.ts",
|
|
5055
|
-
"declarations": [
|
|
5056
|
-
{
|
|
5057
|
-
"kind": "variable",
|
|
5058
|
-
"name": "isOneOfOptionMultiselect"
|
|
5059
|
-
}
|
|
5060
|
-
],
|
|
5061
|
-
"exports": [
|
|
5062
|
-
{
|
|
5063
|
-
"kind": "js",
|
|
5064
|
-
"name": "isOneOfOptionMultiselect",
|
|
5065
|
-
"declaration": {
|
|
5066
|
-
"name": "isOneOfOptionMultiselect",
|
|
5067
|
-
"module": "src/jsonforms/testers/isOneOfOptionMultiselect.ts"
|
|
5068
|
-
}
|
|
5069
|
-
}
|
|
5070
|
-
]
|
|
5071
|
-
},
|
|
5072
|
-
{
|
|
5073
|
-
"kind": "javascript-module",
|
|
5074
|
-
"path": "src/jsonforms/testers/isTime.ts",
|
|
5075
|
-
"declarations": [
|
|
5076
|
-
{
|
|
5077
|
-
"kind": "variable",
|
|
5078
|
-
"name": "isOneOfTime"
|
|
5079
|
-
}
|
|
5080
|
-
],
|
|
5081
|
-
"exports": [
|
|
5082
|
-
{
|
|
5083
|
-
"kind": "js",
|
|
5084
|
-
"name": "isOneOfTime",
|
|
5085
|
-
"declaration": {
|
|
5086
|
-
"name": "isOneOfTime",
|
|
5087
|
-
"module": "src/jsonforms/testers/isTime.ts"
|
|
5088
|
-
}
|
|
5089
|
-
}
|
|
5090
|
-
]
|
|
5091
|
-
},
|
|
5092
|
-
{
|
|
5093
|
-
"kind": "javascript-module",
|
|
5094
|
-
"path": "src/jsonforms/testers/optionIs.ts",
|
|
5095
|
-
"declarations": [
|
|
5096
|
-
{
|
|
5097
|
-
"kind": "function",
|
|
5098
|
-
"name": "optionIs",
|
|
5099
|
-
"return": {
|
|
5100
|
-
"type": {
|
|
5101
|
-
"text": "Tester"
|
|
5102
|
-
}
|
|
5103
|
-
},
|
|
5104
|
-
"parameters": [
|
|
5105
|
-
{
|
|
5106
|
-
"name": "optionName",
|
|
5107
|
-
"type": {
|
|
5108
|
-
"text": "string"
|
|
5109
|
-
}
|
|
5110
|
-
}
|
|
5111
|
-
]
|
|
5112
|
-
}
|
|
5113
|
-
],
|
|
5114
|
-
"exports": [
|
|
5115
|
-
{
|
|
5116
|
-
"kind": "js",
|
|
5117
|
-
"name": "optionIs",
|
|
5118
|
-
"declaration": {
|
|
5119
|
-
"name": "optionIs",
|
|
5120
|
-
"module": "src/jsonforms/testers/optionIs.ts"
|
|
5121
|
-
}
|
|
5122
|
-
}
|
|
5123
|
-
]
|
|
5124
5161
|
}
|
|
5125
5162
|
]
|
|
5126
5163
|
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { RendererEntry } from '../../types';
|
|
2
|
+
import type { GenesisJsonSchema } from '../../utils/types';
|
|
2
3
|
import { DispatchRenderer } from './dispatch-renderer';
|
|
4
|
+
export declare const resolveMaximumInputPrecision: (fieldSchema: GenesisJsonSchema, options?: {
|
|
5
|
+
maximumInputPrecision?: number;
|
|
6
|
+
}) => number;
|
|
3
7
|
export declare const NumberControlRendererTemplate: (prefix?: string) => import("@microsoft/fast-element").ViewTemplate<DispatchRenderer, any>;
|
|
4
8
|
export declare const NumberControlRendererEntry: RendererEntry;
|
|
5
9
|
//# sourceMappingURL=NumberControlRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberControlRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/NumberControlRenderer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"NumberControlRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/NumberControlRenderer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAG3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAsBvD,eAAO,MAAM,4BAA4B,GACvC,aAAa,iBAAiB,EAC9B,UAAU;IAAE,qBAAqB,CAAC,EAAE,MAAM,CAAA;CAAE,KAC3C,MAQF,CAAC;AAqBF,eAAO,MAAM,6BAA6B,GAAI,SAAQ,MAAe,0EAkCpE,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,aAMxC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type GenesisJsonSchema } from '../../utils/types';
|
|
2
|
+
export declare const isBigDecimal: (fieldSchema: GenesisJsonSchema) => boolean;
|
|
2
3
|
export declare const isOneOfNumber: import("@jsonforms/core").Tester;
|
|
3
4
|
//# sourceMappingURL=isOneOfNumber.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isOneOfNumber.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/testers/isOneOfNumber.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isOneOfNumber.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/testers/isOneOfNumber.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAYxE,eAAO,MAAM,YAAY,GAAI,aAAa,iBAAiB,KAAG,OAEV,CAAC;AAErD,eAAO,MAAM,aAAa,kCAiBzB,CAAC"}
|
package/dist/dts/types.d.ts
CHANGED
|
@@ -502,6 +502,12 @@ export type NumberRendererOptions = {
|
|
|
502
502
|
* @public
|
|
503
503
|
*/
|
|
504
504
|
changeOnInput?: boolean;
|
|
505
|
+
/**
|
|
506
|
+
* Maximum significant digits accepted while typing (maps to `maximum-input-precision` on the
|
|
507
|
+
* number field). When omitted, BigDecimal schemas default to 18; other number fields default to 12.
|
|
508
|
+
* @public
|
|
509
|
+
*/
|
|
510
|
+
maximumInputPrecision?: number;
|
|
505
511
|
};
|
|
506
512
|
/**
|
|
507
513
|
* Standard configuration options available for all renderers.
|
|
@@ -582,7 +588,14 @@ export type SegmentedRendererOptions = StandardRendererOptions & {
|
|
|
582
588
|
* All configuration options that are available.
|
|
583
589
|
* @public
|
|
584
590
|
*/
|
|
585
|
-
export type UiSchemaElementOptions = StandardRendererOptions &
|
|
591
|
+
export type UiSchemaElementOptions = StandardRendererOptions & {
|
|
592
|
+
/**
|
|
593
|
+
* Static option rows for connected selects, radio groups, segmented controls, etc.
|
|
594
|
+
* Item shape depends on the renderer (see valueField / labelField for mapped keys).
|
|
595
|
+
* @public
|
|
596
|
+
*/
|
|
597
|
+
data?: any[];
|
|
598
|
+
} & Partial<Omit<ConnectedRenderersOptions, 'data'>> & Partial<NumberRendererOptions> & Partial<ArrayRendererOptions> & Partial<CategorizationRendererOptions> & Partial<CategorizationLayoutOptions> & Partial<GroupRendererOptions> & Partial<StepperRendererOptions> & Partial<StringRendererOptions> & Partial<Omit<RadioGroupRendererOptions, 'data'>> & Partial<Omit<SegmentedRendererOptions, 'data'>>;
|
|
586
599
|
/**
|
|
587
600
|
* A UiSchemaElement that displays property values in a user interface element.
|
|
588
601
|
* @public
|
package/dist/dts/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,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,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,IAAI,EAAE,GAAG,CAAC;IACV;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,GAAG,CAAC;CACf,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,IAAI,EAAE,GAAG,CAAC;IACV;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC/C,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,UAAU,EAAE,qBAAqB,EAAE,CAAC;IACpC;;OAEG;IACH,MAAM,EAAE,oBAAoB,EAAE,CAAC;CAChC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { JsonSchema } from '@jsonforms/core';
|
|
1
2
|
/**
|
|
2
3
|
* @internal
|
|
3
4
|
* Needed to explicitly set as string as we don't want to let typescript set them as ascending numbers
|
|
@@ -16,4 +17,9 @@ export declare enum GenesisType {
|
|
|
16
17
|
DATETIME = "DATETIME",
|
|
17
18
|
RAW = "RAW"
|
|
18
19
|
}
|
|
20
|
+
/** JSON Schema for a Genesis field, including platform metadata on the schema or `oneOf` branches. */
|
|
21
|
+
export type GenesisJsonSchema = JsonSchema & {
|
|
22
|
+
genesisType?: GenesisType;
|
|
23
|
+
oneOf?: GenesisJsonSchema[];
|
|
24
|
+
};
|
|
19
25
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/utils/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,oBAAY,WAAW;IACrB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,GAAG,QAAQ;CACZ"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD;;;;GAIG;AACH,oBAAY,WAAW;IACrB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,GAAG,QAAQ;CACZ;AAED,sGAAsG;AACtG,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG;IAC3C,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,KAAK,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAC7B,CAAC"}
|
|
@@ -1,27 +1,48 @@
|
|
|
1
1
|
import { hasType, mapStateToControlProps, rankWith } from '@jsonforms/core';
|
|
2
2
|
import { html } from '@microsoft/fast-element';
|
|
3
|
-
import { isOneOfNumber } from '../testers/isOneOfNumber';
|
|
3
|
+
import { isBigDecimal, isOneOfNumber } from '../testers/isOneOfNumber';
|
|
4
4
|
import { controlWrapperTemplate } from './ControlWrapperRenderer';
|
|
5
5
|
import { NUMBER_CONTROL_RANK } from './RenderersRanks';
|
|
6
6
|
const DEFAULT_MAXIMUM_FRACTION_DIGITS = 3;
|
|
7
|
+
/** Default significant-digit cap on {@link @genesislcap/foundation-ui#NumberField}. */
|
|
8
|
+
const DEFAULT_NUMBER_FIELD_INPUT_PRECISION = 12;
|
|
9
|
+
/** Higher cap for Genesis / Java BigDecimal fields (string payload, arbitrary precision). */
|
|
10
|
+
const DEFAULT_BIGDECIMAL_MAXIMUM_INPUT_PRECISION = 18;
|
|
7
11
|
const defaultOptions = {
|
|
8
12
|
maximumFractionDigits: DEFAULT_MAXIMUM_FRACTION_DIGITS,
|
|
9
13
|
minimumFractionDigits: 0,
|
|
10
14
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
/** Json Forms control schema, typed as a Genesis field schema (single cast at control boundary). */
|
|
16
|
+
const fieldSchemaFromControl = (control) => control.schema;
|
|
17
|
+
/** True when the control’s field schema (or a `oneOf` branch) is BigDecimal. */
|
|
18
|
+
const fieldSchemaIsBigDecimal = (fieldSchema) => { var _a, _b; return isBigDecimal(fieldSchema) || ((_b = (_a = fieldSchema.oneOf) === null || _a === void 0 ? void 0 : _a.some((branch) => isBigDecimal(branch))) !== null && _b !== void 0 ? _b : false); };
|
|
19
|
+
export const resolveMaximumInputPrecision = (fieldSchema, options) => {
|
|
20
|
+
if ((options === null || options === void 0 ? void 0 : options.maximumInputPrecision) != null) {
|
|
21
|
+
return options.maximumInputPrecision;
|
|
22
|
+
}
|
|
23
|
+
if (fieldSchemaIsBigDecimal(fieldSchema)) {
|
|
24
|
+
return DEFAULT_BIGDECIMAL_MAXIMUM_INPUT_PRECISION;
|
|
25
|
+
}
|
|
26
|
+
return DEFAULT_NUMBER_FIELD_INPUT_PRECISION;
|
|
27
|
+
};
|
|
28
|
+
const shouldSubmitAsString = (fieldSchema) => {
|
|
29
|
+
var _a, _b;
|
|
30
|
+
return hasType(fieldSchema, 'string') ||
|
|
31
|
+
((_b = (_a = fieldSchema.oneOf) === null || _a === void 0 ? void 0 : _a.some((branch) => hasType(branch, 'string'))) !== null && _b !== void 0 ? _b : false);
|
|
17
32
|
};
|
|
18
33
|
function handleNumberChange(x, c) {
|
|
19
|
-
|
|
34
|
+
var _a;
|
|
35
|
+
const host = c.event.currentTarget;
|
|
36
|
+
const raw = String((_a = host === null || host === void 0 ? void 0 : host.value) !== null && _a !== void 0 ? _a : '');
|
|
37
|
+
if (raw === '') {
|
|
38
|
+
return x.control.handleChange(x.control.path, undefined);
|
|
39
|
+
}
|
|
20
40
|
const value = parseFloat(raw);
|
|
21
41
|
if (isNaN(value)) {
|
|
22
|
-
return
|
|
42
|
+
return;
|
|
23
43
|
}
|
|
24
|
-
const
|
|
44
|
+
const fieldSchema = fieldSchemaFromControl(x.control);
|
|
45
|
+
const submitted = shouldSubmitAsString(fieldSchema) ? raw : value;
|
|
25
46
|
return x.control.handleChange(x.control.path, submitted);
|
|
26
47
|
}
|
|
27
48
|
export const NumberControlRendererTemplate = (prefix = 'zero') => html `
|
|
@@ -37,6 +58,7 @@ export const NumberControlRendererTemplate = (prefix = 'zero') => html `
|
|
|
37
58
|
suffix=${(x) => { var _a, _b; return (_b = (_a = x.control.uischema) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.suffix; }}
|
|
38
59
|
?hide-affix-from-screen-reader=${(x) => { var _a, _b; return (_b = (_a = x.control.uischema) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.hideAffixFromScreenReader; }}
|
|
39
60
|
:value=${(x) => (x.control.data === undefined ? '' : String(x.control.data))}
|
|
61
|
+
:maximumInputPrecision=${(x) => resolveMaximumInputPrecision(fieldSchemaFromControl(x.control), x.control.uischema.options)}
|
|
40
62
|
tabindex="${(x) => { var _a, _b; return (_b = (_a = x.control.uischema) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.tabIndex; }}"
|
|
41
63
|
@change=${handleNumberChange}
|
|
42
64
|
@input=${(x, c) => { var _a; return (((_a = x.control.uischema.options) === null || _a === void 0 ? void 0 : _a.changeOnInput) ? handleNumberChange(x, c) : undefined); }}
|
|
@@ -7,7 +7,8 @@ const isNumberGenesisType = (s) => s.genesisType === GenesisType.DOUBLE ||
|
|
|
7
7
|
s.genesisType === GenesisType.LONG ||
|
|
8
8
|
s.genesisType === GenesisType.BIGDECIMAL;
|
|
9
9
|
const isNumberByGenesisType = schemaMatches(isNumberGenesisType);
|
|
10
|
-
export const isBigDecimal = (
|
|
10
|
+
export const isBigDecimal = (fieldSchema) => fieldSchema.description === 'java.math.BigDecimal' ||
|
|
11
|
+
fieldSchema.genesisType === GenesisType.BIGDECIMAL;
|
|
11
12
|
export const isOneOfNumber = or(schemaMatches((schema) => hasTypeNumberOrInteger(schema) ||
|
|
12
13
|
(schema.hasOwnProperty('oneOf') &&
|
|
13
14
|
schema.oneOf.some((s) => hasTypeNumberOrInteger(s)))), isNumberByGenesisType, schemaMatches((schema) => schema.hasOwnProperty('oneOf') && schema.oneOf.some((s) => isNumberGenesisType(s))), schemaMatches((schema) => isBigDecimal(schema) ||
|
|
@@ -2793,6 +2793,55 @@
|
|
|
2793
2793
|
"endIndex": 2
|
|
2794
2794
|
}
|
|
2795
2795
|
},
|
|
2796
|
+
{
|
|
2797
|
+
"kind": "TypeAlias",
|
|
2798
|
+
"canonicalReference": "@genesislcap/foundation-forms!GenesisJsonSchema:type",
|
|
2799
|
+
"docComment": "/**\n * JSON Schema for a Genesis field, including platform metadata on the schema or `oneOf` branches.\n */\n",
|
|
2800
|
+
"excerptTokens": [
|
|
2801
|
+
{
|
|
2802
|
+
"kind": "Content",
|
|
2803
|
+
"text": "export type GenesisJsonSchema = "
|
|
2804
|
+
},
|
|
2805
|
+
{
|
|
2806
|
+
"kind": "Reference",
|
|
2807
|
+
"text": "JsonSchema",
|
|
2808
|
+
"canonicalReference": "@jsonforms/core!JsonSchema:type"
|
|
2809
|
+
},
|
|
2810
|
+
{
|
|
2811
|
+
"kind": "Content",
|
|
2812
|
+
"text": " & {\n genesisType?: "
|
|
2813
|
+
},
|
|
2814
|
+
{
|
|
2815
|
+
"kind": "Reference",
|
|
2816
|
+
"text": "GenesisType",
|
|
2817
|
+
"canonicalReference": "@genesislcap/foundation-forms!GenesisType:enum"
|
|
2818
|
+
},
|
|
2819
|
+
{
|
|
2820
|
+
"kind": "Content",
|
|
2821
|
+
"text": ";\n oneOf?: "
|
|
2822
|
+
},
|
|
2823
|
+
{
|
|
2824
|
+
"kind": "Reference",
|
|
2825
|
+
"text": "GenesisJsonSchema",
|
|
2826
|
+
"canonicalReference": "@genesislcap/foundation-forms!GenesisJsonSchema:type"
|
|
2827
|
+
},
|
|
2828
|
+
{
|
|
2829
|
+
"kind": "Content",
|
|
2830
|
+
"text": "[];\n}"
|
|
2831
|
+
},
|
|
2832
|
+
{
|
|
2833
|
+
"kind": "Content",
|
|
2834
|
+
"text": ";"
|
|
2835
|
+
}
|
|
2836
|
+
],
|
|
2837
|
+
"fileUrlPath": "src/utils/types.ts",
|
|
2838
|
+
"releaseTag": "Public",
|
|
2839
|
+
"name": "GenesisJsonSchema",
|
|
2840
|
+
"typeTokenRange": {
|
|
2841
|
+
"startIndex": 1,
|
|
2842
|
+
"endIndex": 7
|
|
2843
|
+
}
|
|
2844
|
+
},
|
|
2796
2845
|
{
|
|
2797
2846
|
"kind": "Function",
|
|
2798
2847
|
"canonicalReference": "@genesislcap/foundation-forms!getAnyOfErrorMessage:function(1)",
|
|
@@ -3655,7 +3704,7 @@
|
|
|
3655
3704
|
},
|
|
3656
3705
|
{
|
|
3657
3706
|
"kind": "Content",
|
|
3658
|
-
"text": ";\n autocomplete?: string;\n prefix?: string;\n suffix?: string;\n hideAffixFromScreenReader?: boolean;\n changeOnInput?: boolean;\n}"
|
|
3707
|
+
"text": ";\n autocomplete?: string;\n prefix?: string;\n suffix?: string;\n hideAffixFromScreenReader?: boolean;\n changeOnInput?: boolean;\n maximumInputPrecision?: number;\n}"
|
|
3659
3708
|
},
|
|
3660
3709
|
{
|
|
3661
3710
|
"kind": "Content",
|
|
@@ -4607,7 +4656,25 @@
|
|
|
4607
4656
|
},
|
|
4608
4657
|
{
|
|
4609
4658
|
"kind": "Content",
|
|
4610
|
-
"text": " &
|
|
4659
|
+
"text": " & {\n data?: any[];\n} & "
|
|
4660
|
+
},
|
|
4661
|
+
{
|
|
4662
|
+
"kind": "Reference",
|
|
4663
|
+
"text": "Partial",
|
|
4664
|
+
"canonicalReference": "!Partial:type"
|
|
4665
|
+
},
|
|
4666
|
+
{
|
|
4667
|
+
"kind": "Content",
|
|
4668
|
+
"text": "<"
|
|
4669
|
+
},
|
|
4670
|
+
{
|
|
4671
|
+
"kind": "Reference",
|
|
4672
|
+
"text": "Omit",
|
|
4673
|
+
"canonicalReference": "!Omit:type"
|
|
4674
|
+
},
|
|
4675
|
+
{
|
|
4676
|
+
"kind": "Content",
|
|
4677
|
+
"text": "<"
|
|
4611
4678
|
},
|
|
4612
4679
|
{
|
|
4613
4680
|
"kind": "Reference",
|
|
@@ -4616,7 +4683,16 @@
|
|
|
4616
4683
|
},
|
|
4617
4684
|
{
|
|
4618
4685
|
"kind": "Content",
|
|
4619
|
-
"text": "
|
|
4686
|
+
"text": ", 'data'>> & "
|
|
4687
|
+
},
|
|
4688
|
+
{
|
|
4689
|
+
"kind": "Reference",
|
|
4690
|
+
"text": "Partial",
|
|
4691
|
+
"canonicalReference": "!Partial:type"
|
|
4692
|
+
},
|
|
4693
|
+
{
|
|
4694
|
+
"kind": "Content",
|
|
4695
|
+
"text": "<"
|
|
4620
4696
|
},
|
|
4621
4697
|
{
|
|
4622
4698
|
"kind": "Reference",
|
|
@@ -4625,7 +4701,16 @@
|
|
|
4625
4701
|
},
|
|
4626
4702
|
{
|
|
4627
4703
|
"kind": "Content",
|
|
4628
|
-
"text": "
|
|
4704
|
+
"text": "> & "
|
|
4705
|
+
},
|
|
4706
|
+
{
|
|
4707
|
+
"kind": "Reference",
|
|
4708
|
+
"text": "Partial",
|
|
4709
|
+
"canonicalReference": "!Partial:type"
|
|
4710
|
+
},
|
|
4711
|
+
{
|
|
4712
|
+
"kind": "Content",
|
|
4713
|
+
"text": "<"
|
|
4629
4714
|
},
|
|
4630
4715
|
{
|
|
4631
4716
|
"kind": "Reference",
|
|
@@ -4634,7 +4719,16 @@
|
|
|
4634
4719
|
},
|
|
4635
4720
|
{
|
|
4636
4721
|
"kind": "Content",
|
|
4637
|
-
"text": "
|
|
4722
|
+
"text": "> & "
|
|
4723
|
+
},
|
|
4724
|
+
{
|
|
4725
|
+
"kind": "Reference",
|
|
4726
|
+
"text": "Partial",
|
|
4727
|
+
"canonicalReference": "!Partial:type"
|
|
4728
|
+
},
|
|
4729
|
+
{
|
|
4730
|
+
"kind": "Content",
|
|
4731
|
+
"text": "<"
|
|
4638
4732
|
},
|
|
4639
4733
|
{
|
|
4640
4734
|
"kind": "Reference",
|
|
@@ -4643,7 +4737,16 @@
|
|
|
4643
4737
|
},
|
|
4644
4738
|
{
|
|
4645
4739
|
"kind": "Content",
|
|
4646
|
-
"text": "
|
|
4740
|
+
"text": "> & "
|
|
4741
|
+
},
|
|
4742
|
+
{
|
|
4743
|
+
"kind": "Reference",
|
|
4744
|
+
"text": "Partial",
|
|
4745
|
+
"canonicalReference": "!Partial:type"
|
|
4746
|
+
},
|
|
4747
|
+
{
|
|
4748
|
+
"kind": "Content",
|
|
4749
|
+
"text": "<"
|
|
4647
4750
|
},
|
|
4648
4751
|
{
|
|
4649
4752
|
"kind": "Reference",
|
|
@@ -4652,7 +4755,16 @@
|
|
|
4652
4755
|
},
|
|
4653
4756
|
{
|
|
4654
4757
|
"kind": "Content",
|
|
4655
|
-
"text": "
|
|
4758
|
+
"text": "> & "
|
|
4759
|
+
},
|
|
4760
|
+
{
|
|
4761
|
+
"kind": "Reference",
|
|
4762
|
+
"text": "Partial",
|
|
4763
|
+
"canonicalReference": "!Partial:type"
|
|
4764
|
+
},
|
|
4765
|
+
{
|
|
4766
|
+
"kind": "Content",
|
|
4767
|
+
"text": "<"
|
|
4656
4768
|
},
|
|
4657
4769
|
{
|
|
4658
4770
|
"kind": "Reference",
|
|
@@ -4661,7 +4773,16 @@
|
|
|
4661
4773
|
},
|
|
4662
4774
|
{
|
|
4663
4775
|
"kind": "Content",
|
|
4664
|
-
"text": "
|
|
4776
|
+
"text": "> & "
|
|
4777
|
+
},
|
|
4778
|
+
{
|
|
4779
|
+
"kind": "Reference",
|
|
4780
|
+
"text": "Partial",
|
|
4781
|
+
"canonicalReference": "!Partial:type"
|
|
4782
|
+
},
|
|
4783
|
+
{
|
|
4784
|
+
"kind": "Content",
|
|
4785
|
+
"text": "<"
|
|
4665
4786
|
},
|
|
4666
4787
|
{
|
|
4667
4788
|
"kind": "Reference",
|
|
@@ -4670,7 +4791,16 @@
|
|
|
4670
4791
|
},
|
|
4671
4792
|
{
|
|
4672
4793
|
"kind": "Content",
|
|
4673
|
-
"text": "
|
|
4794
|
+
"text": "> & "
|
|
4795
|
+
},
|
|
4796
|
+
{
|
|
4797
|
+
"kind": "Reference",
|
|
4798
|
+
"text": "Partial",
|
|
4799
|
+
"canonicalReference": "!Partial:type"
|
|
4800
|
+
},
|
|
4801
|
+
{
|
|
4802
|
+
"kind": "Content",
|
|
4803
|
+
"text": "<"
|
|
4674
4804
|
},
|
|
4675
4805
|
{
|
|
4676
4806
|
"kind": "Reference",
|
|
@@ -4679,7 +4809,25 @@
|
|
|
4679
4809
|
},
|
|
4680
4810
|
{
|
|
4681
4811
|
"kind": "Content",
|
|
4682
|
-
"text": "
|
|
4812
|
+
"text": "> & "
|
|
4813
|
+
},
|
|
4814
|
+
{
|
|
4815
|
+
"kind": "Reference",
|
|
4816
|
+
"text": "Partial",
|
|
4817
|
+
"canonicalReference": "!Partial:type"
|
|
4818
|
+
},
|
|
4819
|
+
{
|
|
4820
|
+
"kind": "Content",
|
|
4821
|
+
"text": "<"
|
|
4822
|
+
},
|
|
4823
|
+
{
|
|
4824
|
+
"kind": "Reference",
|
|
4825
|
+
"text": "Omit",
|
|
4826
|
+
"canonicalReference": "!Omit:type"
|
|
4827
|
+
},
|
|
4828
|
+
{
|
|
4829
|
+
"kind": "Content",
|
|
4830
|
+
"text": "<"
|
|
4683
4831
|
},
|
|
4684
4832
|
{
|
|
4685
4833
|
"kind": "Reference",
|
|
@@ -4688,7 +4836,25 @@
|
|
|
4688
4836
|
},
|
|
4689
4837
|
{
|
|
4690
4838
|
"kind": "Content",
|
|
4691
|
-
"text": "
|
|
4839
|
+
"text": ", 'data'>> & "
|
|
4840
|
+
},
|
|
4841
|
+
{
|
|
4842
|
+
"kind": "Reference",
|
|
4843
|
+
"text": "Partial",
|
|
4844
|
+
"canonicalReference": "!Partial:type"
|
|
4845
|
+
},
|
|
4846
|
+
{
|
|
4847
|
+
"kind": "Content",
|
|
4848
|
+
"text": "<"
|
|
4849
|
+
},
|
|
4850
|
+
{
|
|
4851
|
+
"kind": "Reference",
|
|
4852
|
+
"text": "Omit",
|
|
4853
|
+
"canonicalReference": "!Omit:type"
|
|
4854
|
+
},
|
|
4855
|
+
{
|
|
4856
|
+
"kind": "Content",
|
|
4857
|
+
"text": "<"
|
|
4692
4858
|
},
|
|
4693
4859
|
{
|
|
4694
4860
|
"kind": "Reference",
|
|
@@ -4697,7 +4863,7 @@
|
|
|
4697
4863
|
},
|
|
4698
4864
|
{
|
|
4699
4865
|
"kind": "Content",
|
|
4700
|
-
"text": "
|
|
4866
|
+
"text": ", 'data'>>"
|
|
4701
4867
|
},
|
|
4702
4868
|
{
|
|
4703
4869
|
"kind": "Content",
|
|
@@ -4709,7 +4875,7 @@
|
|
|
4709
4875
|
"name": "UiSchemaElementOptions",
|
|
4710
4876
|
"typeTokenRange": {
|
|
4711
4877
|
"startIndex": 1,
|
|
4712
|
-
"endIndex":
|
|
4878
|
+
"endIndex": 49
|
|
4713
4879
|
}
|
|
4714
4880
|
},
|
|
4715
4881
|
{
|
|
@@ -10,6 +10,7 @@ import { FilterMode } from '@genesislcap/foundation-ui';
|
|
|
10
10
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
11
11
|
import { FoundationLayoutContainer } from '@genesislcap/foundation-utils';
|
|
12
12
|
import { JsonFormsState } from '@jsonforms/core';
|
|
13
|
+
import type { JsonSchema } from '@jsonforms/core';
|
|
13
14
|
import { JSONSchema7 } from 'json-schema';
|
|
14
15
|
import { KVStorage } from '@genesislcap/foundation-comms';
|
|
15
16
|
import { Layout } from '@jsonforms/core';
|
|
@@ -1802,6 +1803,12 @@ export declare type GenesisFieldError = {
|
|
|
1802
1803
|
*/
|
|
1803
1804
|
export declare function genesisFieldToInstancePath(field?: string, path?: string | null, instancePathPrefix?: string): string | null;
|
|
1804
1805
|
|
|
1806
|
+
/** JSON Schema for a Genesis field, including platform metadata on the schema or `oneOf` branches. */
|
|
1807
|
+
export declare type GenesisJsonSchema = JsonSchema & {
|
|
1808
|
+
genesisType?: GenesisType;
|
|
1809
|
+
oneOf?: GenesisJsonSchema[];
|
|
1810
|
+
};
|
|
1811
|
+
|
|
1805
1812
|
/**
|
|
1806
1813
|
* @internal
|
|
1807
1814
|
* Needed to explicitly set as string as we don't want to let typescript set them as ascending numbers
|
|
@@ -2084,6 +2091,12 @@ export declare type NumberRendererOptions = {
|
|
|
2084
2091
|
* @public
|
|
2085
2092
|
*/
|
|
2086
2093
|
changeOnInput?: boolean;
|
|
2094
|
+
/**
|
|
2095
|
+
* Maximum significant digits accepted while typing (maps to `maximum-input-precision` on the
|
|
2096
|
+
* number field). When omitted, BigDecimal schemas default to 18; other number fields default to 12.
|
|
2097
|
+
* @public
|
|
2098
|
+
*/
|
|
2099
|
+
maximumInputPrecision?: number;
|
|
2087
2100
|
};
|
|
2088
2101
|
|
|
2089
2102
|
/**
|
|
@@ -2410,7 +2423,14 @@ export declare type UiSchemaElement = {
|
|
|
2410
2423
|
* All configuration options that are available.
|
|
2411
2424
|
* @public
|
|
2412
2425
|
*/
|
|
2413
|
-
export declare type UiSchemaElementOptions = StandardRendererOptions &
|
|
2426
|
+
export declare type UiSchemaElementOptions = StandardRendererOptions & {
|
|
2427
|
+
/**
|
|
2428
|
+
* Static option rows for connected selects, radio groups, segmented controls, etc.
|
|
2429
|
+
* Item shape depends on the renderer (see valueField / labelField for mapped keys).
|
|
2430
|
+
* @public
|
|
2431
|
+
*/
|
|
2432
|
+
data?: any[];
|
|
2433
|
+
} & Partial<Omit<ConnectedRenderersOptions, 'data'>> & Partial<NumberRendererOptions> & Partial<ArrayRendererOptions> & Partial<CategorizationRendererOptions> & Partial<CategorizationLayoutOptions> & Partial<GroupRendererOptions> & Partial<StepperRendererOptions> & Partial<StringRendererOptions> & Partial<Omit<RadioGroupRendererOptions, 'data'>> & Partial<Omit<SegmentedRendererOptions, 'data'>>;
|
|
2414
2434
|
|
|
2415
2435
|
/**
|
|
2416
2436
|
* The layouts and control types, which allow you to customize the arrangement of forms.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-forms",
|
|
3
3
|
"description": "Genesis Foundation Forms",
|
|
4
|
-
"version": "14.482.
|
|
4
|
+
"version": "14.482.1-FUI-2575.1",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -59,13 +59,13 @@
|
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@genesislcap/foundation-testing": "14.482.
|
|
63
|
-
"@genesislcap/genx": "14.482.
|
|
64
|
-
"@genesislcap/rollup-builder": "14.482.
|
|
65
|
-
"@genesislcap/ts-builder": "14.482.
|
|
66
|
-
"@genesislcap/uvu-playwright-builder": "14.482.
|
|
67
|
-
"@genesislcap/vite-builder": "14.482.
|
|
68
|
-
"@genesislcap/webpack-builder": "14.482.
|
|
62
|
+
"@genesislcap/foundation-testing": "14.482.1-FUI-2575.1",
|
|
63
|
+
"@genesislcap/genx": "14.482.1-FUI-2575.1",
|
|
64
|
+
"@genesislcap/rollup-builder": "14.482.1-FUI-2575.1",
|
|
65
|
+
"@genesislcap/ts-builder": "14.482.1-FUI-2575.1",
|
|
66
|
+
"@genesislcap/uvu-playwright-builder": "14.482.1-FUI-2575.1",
|
|
67
|
+
"@genesislcap/vite-builder": "14.482.1-FUI-2575.1",
|
|
68
|
+
"@genesislcap/webpack-builder": "14.482.1-FUI-2575.1",
|
|
69
69
|
"@types/json-schema": "^7.0.11",
|
|
70
70
|
"@types/papaparse": "^5.3.14"
|
|
71
71
|
},
|
|
@@ -82,12 +82,12 @@
|
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
|
-
"@genesislcap/foundation-comms": "14.482.
|
|
86
|
-
"@genesislcap/foundation-criteria": "14.482.
|
|
87
|
-
"@genesislcap/foundation-logger": "14.482.
|
|
88
|
-
"@genesislcap/foundation-notifications": "14.482.
|
|
89
|
-
"@genesislcap/foundation-ui": "14.482.
|
|
90
|
-
"@genesislcap/foundation-utils": "14.482.
|
|
85
|
+
"@genesislcap/foundation-comms": "14.482.1-FUI-2575.1",
|
|
86
|
+
"@genesislcap/foundation-criteria": "14.482.1-FUI-2575.1",
|
|
87
|
+
"@genesislcap/foundation-logger": "14.482.1-FUI-2575.1",
|
|
88
|
+
"@genesislcap/foundation-notifications": "14.482.1-FUI-2575.1",
|
|
89
|
+
"@genesislcap/foundation-ui": "14.482.1-FUI-2575.1",
|
|
90
|
+
"@genesislcap/foundation-utils": "14.482.1-FUI-2575.1",
|
|
91
91
|
"@json-schema-tools/dereferencer": "^1.6.1",
|
|
92
92
|
"@jsonforms/core": "^3.2.1",
|
|
93
93
|
"@microsoft/fast-components": "2.30.6",
|
|
@@ -109,5 +109,5 @@
|
|
|
109
109
|
"access": "public"
|
|
110
110
|
},
|
|
111
111
|
"customElements": "dist/custom-elements.json",
|
|
112
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "3a470fbe70930fe2434270fb5ec9b4042005bbb9"
|
|
113
113
|
}
|