@chobantonov/jsonforms-extended-spec 1.0.0 → 1.1.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/conformance/behavior.json +263 -9
- package/conformance/cel-helpers.json +231 -0
- package/docs/implementation-guide.md +91 -1
- package/docs/implementation-pitfalls.md +108 -2
- package/docs/spec.md +77 -8
- package/examples/group-layout/README.md +15 -1
- package/examples/group-layout/data.json +2 -1
- package/examples/group-layout/schema.json +10 -1
- package/examples/group-layout/translations.json +10 -2
- package/examples/group-layout/uischema.json +41 -0
- package/examples/index.js +2 -2
- package/examples/label-interpolation/README.md +29 -2
- package/examples/label-interpolation/data.json +3 -1
- package/examples/label-interpolation/schema.json +9 -0
- package/examples/label-interpolation/translations.json +12 -2
- package/examples/label-interpolation/uischema.json +44 -0
- package/package.json +1 -1
|
@@ -3240,14 +3240,15 @@
|
|
|
3240
3240
|
}
|
|
3241
3241
|
},
|
|
3242
3242
|
{
|
|
3243
|
-
"id": "group-child-slot-
|
|
3243
|
+
"id": "group-child-slot-all-region-indicators",
|
|
3244
3244
|
"section": "8.1",
|
|
3245
3245
|
"input": {
|
|
3246
3246
|
"uischema": {
|
|
3247
3247
|
"type": "Group",
|
|
3248
3248
|
"options": {
|
|
3249
3249
|
"showDataIndicator": true,
|
|
3250
|
-
"showValidationIndicator": true
|
|
3250
|
+
"showValidationIndicator": true,
|
|
3251
|
+
"showValidationIndicatorCount": true
|
|
3251
3252
|
},
|
|
3252
3253
|
"elements": [
|
|
3253
3254
|
{
|
|
@@ -3258,26 +3259,91 @@
|
|
|
3258
3259
|
{
|
|
3259
3260
|
"type": "Control",
|
|
3260
3261
|
"scope": "#/properties/body"
|
|
3262
|
+
},
|
|
3263
|
+
{
|
|
3264
|
+
"type": "Label",
|
|
3265
|
+
"text": "Presentation only",
|
|
3266
|
+
"scope": "#/properties/decoration"
|
|
3267
|
+
},
|
|
3268
|
+
{
|
|
3269
|
+
"type": "ImageView",
|
|
3270
|
+
"src": "/image.png",
|
|
3271
|
+
"scope": "#/properties/decoration"
|
|
3261
3272
|
}
|
|
3262
3273
|
]
|
|
3263
3274
|
},
|
|
3264
3275
|
"data": {
|
|
3265
|
-
"regionOnly": "
|
|
3276
|
+
"regionOnly": "x"
|
|
3266
3277
|
},
|
|
3267
3278
|
"errors": [
|
|
3268
3279
|
{
|
|
3269
3280
|
"instancePath": "/regionOnly",
|
|
3270
|
-
"keyword": "
|
|
3271
|
-
"
|
|
3281
|
+
"keyword": "minLength",
|
|
3282
|
+
"params": {
|
|
3283
|
+
"limit": 2
|
|
3284
|
+
},
|
|
3285
|
+
"message": "too short"
|
|
3272
3286
|
}
|
|
3273
|
-
]
|
|
3287
|
+
],
|
|
3288
|
+
"placements": [
|
|
3289
|
+
"cover",
|
|
3290
|
+
"header",
|
|
3291
|
+
"footer",
|
|
3292
|
+
"body",
|
|
3293
|
+
"unknown",
|
|
3294
|
+
null
|
|
3295
|
+
],
|
|
3296
|
+
"valueCases": [
|
|
3297
|
+
{
|
|
3298
|
+
"data": {},
|
|
3299
|
+
"hasData": false,
|
|
3300
|
+
"hasError": false
|
|
3301
|
+
},
|
|
3302
|
+
{
|
|
3303
|
+
"data": {
|
|
3304
|
+
"regionOnly": "x"
|
|
3305
|
+
},
|
|
3306
|
+
"hasData": true,
|
|
3307
|
+
"hasError": true
|
|
3308
|
+
},
|
|
3309
|
+
{
|
|
3310
|
+
"data": {
|
|
3311
|
+
"regionOnly": "valid"
|
|
3312
|
+
},
|
|
3313
|
+
"hasData": true,
|
|
3314
|
+
"hasError": false
|
|
3315
|
+
},
|
|
3316
|
+
{
|
|
3317
|
+
"data": {
|
|
3318
|
+
"regionOnly": ""
|
|
3319
|
+
},
|
|
3320
|
+
"hasData": false,
|
|
3321
|
+
"hasError": true
|
|
3322
|
+
}
|
|
3323
|
+
],
|
|
3324
|
+
"schema": {
|
|
3325
|
+
"type": "object",
|
|
3326
|
+
"properties": {
|
|
3327
|
+
"regionOnly": {
|
|
3328
|
+
"type": "string",
|
|
3329
|
+
"minLength": 2
|
|
3330
|
+
},
|
|
3331
|
+
"body": {
|
|
3332
|
+
"type": "string"
|
|
3333
|
+
}
|
|
3334
|
+
}
|
|
3335
|
+
}
|
|
3274
3336
|
},
|
|
3275
3337
|
"expected": {
|
|
3276
|
-
"groupDataIndicator":
|
|
3277
|
-
"groupDescendantValidationIndicator":
|
|
3338
|
+
"groupDataIndicator": true,
|
|
3339
|
+
"groupDescendantValidationIndicator": true,
|
|
3278
3340
|
"regionControlRetainsLocalError": true,
|
|
3279
3341
|
"originalDocumentErrorsUnchanged": true,
|
|
3280
|
-
"bodyValueOrErrorIncludedWhenAdded": true
|
|
3342
|
+
"bodyValueOrErrorIncludedWhenAdded": true,
|
|
3343
|
+
"allRegionBindingsIncluded": true,
|
|
3344
|
+
"presentationOnlyChildrenContribute": false,
|
|
3345
|
+
"groupDescendantValidationCount": 1,
|
|
3346
|
+
"collapsedAndRuleHiddenBindingsIncluded": true
|
|
3281
3347
|
}
|
|
3282
3348
|
},
|
|
3283
3349
|
{
|
|
@@ -3331,5 +3397,193 @@
|
|
|
3331
3397
|
"collapseKeepsHeaderVisibleAndHidesBodyAndFooter": true,
|
|
3332
3398
|
"dataUnchangedByPlacementOrCollapse": true
|
|
3333
3399
|
}
|
|
3400
|
+
},
|
|
3401
|
+
{
|
|
3402
|
+
"id": "debounced-noop-pending-settlement",
|
|
3403
|
+
"section": "18.4",
|
|
3404
|
+
"input": {
|
|
3405
|
+
"schema": {
|
|
3406
|
+
"type": "string"
|
|
3407
|
+
},
|
|
3408
|
+
"data": "x",
|
|
3409
|
+
"actions": [
|
|
3410
|
+
"type xy then x before the debounce expires",
|
|
3411
|
+
"deliver by timer without changing the model value",
|
|
3412
|
+
"repeat with explicit flush before the timer expires",
|
|
3413
|
+
"repeat after a committed model update",
|
|
3414
|
+
"acknowledge an earlier write while a newer draft is queued"
|
|
3415
|
+
]
|
|
3416
|
+
},
|
|
3417
|
+
"expected": {
|
|
3418
|
+
"dataAfterNoOp": "x",
|
|
3419
|
+
"completedEditPending": false,
|
|
3420
|
+
"cleanCurrentModelValidAfterSettlement": true,
|
|
3421
|
+
"dataChangeEventRequired": false,
|
|
3422
|
+
"newerDraftRemainsPendingUntilResolved": true,
|
|
3423
|
+
"independentPendingValidationPreserved": true
|
|
3424
|
+
}
|
|
3425
|
+
},
|
|
3426
|
+
{
|
|
3427
|
+
"id": "manual-custom-element-registration",
|
|
3428
|
+
"section": "Host integration (optional manual registration)",
|
|
3429
|
+
"input": {
|
|
3430
|
+
"when": "the host exposes explicit custom element registration",
|
|
3431
|
+
"defaultTag": "jsonforms-framework-family",
|
|
3432
|
+
"customTag": "json-forms",
|
|
3433
|
+
"defaults": {
|
|
3434
|
+
"locale": "bg",
|
|
3435
|
+
"readonly": true,
|
|
3436
|
+
"data": {
|
|
3437
|
+
"name": "Ada"
|
|
3438
|
+
}
|
|
3439
|
+
},
|
|
3440
|
+
"actions": [
|
|
3441
|
+
"import only the manual browser entry",
|
|
3442
|
+
"assign data to an unregistered custom element before upgrade",
|
|
3443
|
+
"register the custom tag with defaults",
|
|
3444
|
+
"register a second tag using the same renderer",
|
|
3445
|
+
"repeat registration of the first tag with different defaults",
|
|
3446
|
+
"supply instance property and attribute overrides, including false and null",
|
|
3447
|
+
"remove an attribute override and assign undefined to a property",
|
|
3448
|
+
"mutate the original defaults and one instance data/config object",
|
|
3449
|
+
"render, edit, use slots, and listen to host events on the custom tag"
|
|
3450
|
+
]
|
|
3451
|
+
},
|
|
3452
|
+
"expected": {
|
|
3453
|
+
"manualImportDefinesNoTags": true,
|
|
3454
|
+
"requestedTagsHaveDistinctConstructors": true,
|
|
3455
|
+
"defaultTagRemainsUndefined": true,
|
|
3456
|
+
"firstDefinitionAndDefaultsWin": true,
|
|
3457
|
+
"preUpgradeInputsRetained": true,
|
|
3458
|
+
"explicitInputsOverrideDefaults": true,
|
|
3459
|
+
"removedOrUndefinedOverridesRestoreDefaults": true,
|
|
3460
|
+
"wholePropertyReplacementWithoutImplicitConfigMerge": true,
|
|
3461
|
+
"mutableDefaultsSnapshottedAndIsolated": true,
|
|
3462
|
+
"callbackCapabilityAndServiceIdentitiesRetained": true,
|
|
3463
|
+
"propertiesAttributesEventsSlotsAndStylesPreserved": true
|
|
3464
|
+
}
|
|
3465
|
+
},
|
|
3466
|
+
{
|
|
3467
|
+
"id": "cel-url-component-encoding",
|
|
3468
|
+
"section": "9.3a",
|
|
3469
|
+
"input": {
|
|
3470
|
+
"fixture": "conformance/cel-helpers.json",
|
|
3471
|
+
"message": "[{name}](#/users/{encodeUriComponent(id)})",
|
|
3472
|
+
"name": "A **literal** name",
|
|
3473
|
+
"ids": [
|
|
3474
|
+
"a/b?x=1&y=#frag",
|
|
3475
|
+
"Име 😀",
|
|
3476
|
+
"a(b)!*'~-_.",
|
|
3477
|
+
"a%2Fb"
|
|
3478
|
+
],
|
|
3479
|
+
"profiles": [
|
|
3480
|
+
"basic",
|
|
3481
|
+
"extended"
|
|
3482
|
+
]
|
|
3483
|
+
},
|
|
3484
|
+
"expected": {
|
|
3485
|
+
"allEncodingVectorsMatch": true,
|
|
3486
|
+
"oneLinkWithLiteralName": true,
|
|
3487
|
+
"componentDoesNotIntroducePathQueryOrFragmentDelimiters": true,
|
|
3488
|
+
"markupEscapingAndUrlPolicyStillApply": true,
|
|
3489
|
+
"expressionFailuresUseExistingPolicy": true
|
|
3490
|
+
}
|
|
3491
|
+
},
|
|
3492
|
+
{
|
|
3493
|
+
"id": "cel-date-time-formatting",
|
|
3494
|
+
"section": "9.3a",
|
|
3495
|
+
"input": {
|
|
3496
|
+
"expressions": [
|
|
3497
|
+
"dateTime(value)"
|
|
3498
|
+
],
|
|
3499
|
+
"values": [
|
|
3500
|
+
"2026-10-01T14:30:00+02:00",
|
|
3501
|
+
"2026-10-01T12:30:00Z",
|
|
3502
|
+
"not-a-date"
|
|
3503
|
+
],
|
|
3504
|
+
"locales": [
|
|
3505
|
+
"en",
|
|
3506
|
+
"bg"
|
|
3507
|
+
],
|
|
3508
|
+
"viewerTimeZones": [
|
|
3509
|
+
"UTC",
|
|
3510
|
+
"America/New_York"
|
|
3511
|
+
]
|
|
3512
|
+
},
|
|
3513
|
+
"expected": {
|
|
3514
|
+
"equivalentInstantsRenderIdentically": true,
|
|
3515
|
+
"activeLocaleAndViewerZoneUsed": true,
|
|
3516
|
+
"mediumDateAndShortTime": true,
|
|
3517
|
+
"unparseableValueContributesExpressionFailure": true
|
|
3518
|
+
}
|
|
3519
|
+
},
|
|
3520
|
+
{
|
|
3521
|
+
"id": "cel-numeric-and-timestamp-overloads",
|
|
3522
|
+
"section": "9.3",
|
|
3523
|
+
"input": {
|
|
3524
|
+
"fixture": "conformance/cel-helpers.json",
|
|
3525
|
+
"numericCasesKey": "numericCases",
|
|
3526
|
+
"timestampCasesKey": "timestampCases",
|
|
3527
|
+
"locales": [
|
|
3528
|
+
"en",
|
|
3529
|
+
"de",
|
|
3530
|
+
"bg"
|
|
3531
|
+
],
|
|
3532
|
+
"viewerTimeZones": [
|
|
3533
|
+
"UTC",
|
|
3534
|
+
"America/New_York"
|
|
3535
|
+
],
|
|
3536
|
+
"timestamp": "2026-10-01T12:30:00Z"
|
|
3537
|
+
},
|
|
3538
|
+
"expected": {
|
|
3539
|
+
"intAndDoubleNumericOverloadsAvailable": true,
|
|
3540
|
+
"fixedFractionDigitsAppliedToIntAndDouble": true,
|
|
3541
|
+
"largeIntegerDigitsRetained": true,
|
|
3542
|
+
"dateTimeAndClockAcceptNativeCelTimestamps": true,
|
|
3543
|
+
"hostDateAndCelTimestampAgreeWithStringInstant": true,
|
|
3544
|
+
"numericEpochValuesAreNotInferred": true,
|
|
3545
|
+
"malformedInputsUseExpressionFailurePolicy": true
|
|
3546
|
+
}
|
|
3547
|
+
},
|
|
3548
|
+
{
|
|
3549
|
+
"id": "template-literal-child-names",
|
|
3550
|
+
"section": "13.5",
|
|
3551
|
+
"input": {
|
|
3552
|
+
"childNames": [
|
|
3553
|
+
"__proto__",
|
|
3554
|
+
"constructor",
|
|
3555
|
+
"toString",
|
|
3556
|
+
"hasOwnProperty",
|
|
3557
|
+
"ordinary",
|
|
3558
|
+
"slot\"{{data.selected}}%",
|
|
3559
|
+
"a[[data.selected]]b",
|
|
3560
|
+
"a[[[data.selected]]]b",
|
|
3561
|
+
"p[0]"
|
|
3562
|
+
],
|
|
3563
|
+
"referenceModes": [
|
|
3564
|
+
"static",
|
|
3565
|
+
"dynamic",
|
|
3566
|
+
"iteration"
|
|
3567
|
+
],
|
|
3568
|
+
"missingNames": [
|
|
3569
|
+
"__proto__",
|
|
3570
|
+
"constructor",
|
|
3571
|
+
"toString",
|
|
3572
|
+
"hasOwnProperty"
|
|
3573
|
+
],
|
|
3574
|
+
"bindingUpdates": [
|
|
3575
|
+
"initial",
|
|
3576
|
+
"replacement"
|
|
3577
|
+
]
|
|
3578
|
+
},
|
|
3579
|
+
"expected": {
|
|
3580
|
+
"allNamesAddressable": true,
|
|
3581
|
+
"namesEnumerateAsOwnKeys": true,
|
|
3582
|
+
"missingNamesUseProfileFallbackAndDiagnostics": true,
|
|
3583
|
+
"inactiveNamesStayEmptyWithoutFallback": true,
|
|
3584
|
+
"placeholderNamesRemainLiteral": true,
|
|
3585
|
+
"retainedEditorNodesFocusAndDraftsPreserved": true,
|
|
3586
|
+
"hostEngineRegistryUnchanged": true
|
|
3587
|
+
}
|
|
3334
3588
|
}
|
|
3335
3589
|
]
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
{
|
|
2
|
+
"section": "9.3a",
|
|
3
|
+
"description": "Portable CEL text-helper vectors. For utf16CodeUnits, construct scope.value from those UTF-16 code units before evaluation. Numeric reference values preserve CEL integer precision. Execute cases in each host.",
|
|
4
|
+
"cases": [
|
|
5
|
+
{
|
|
6
|
+
"id": "reserved-delimiters",
|
|
7
|
+
"expression": "encodeUriComponent(value)",
|
|
8
|
+
"scope": {
|
|
9
|
+
"value": "a/b?x=1&y=#frag"
|
|
10
|
+
},
|
|
11
|
+
"expected": "a%2Fb%3Fx%3D1%26y%3D%23frag"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"id": "unicode-and-space",
|
|
15
|
+
"expression": "encodeUriComponent(value)",
|
|
16
|
+
"scope": {
|
|
17
|
+
"value": "Име 😀"
|
|
18
|
+
},
|
|
19
|
+
"expected": "%D0%98%D0%BC%D0%B5%20%F0%9F%98%80"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"id": "literal-percent",
|
|
23
|
+
"expression": "encodeUriComponent(value)",
|
|
24
|
+
"scope": {
|
|
25
|
+
"value": "a%2Fb"
|
|
26
|
+
},
|
|
27
|
+
"expected": "a%252Fb"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"id": "unescaped-component-characters",
|
|
31
|
+
"expression": "encodeUriComponent(value)",
|
|
32
|
+
"scope": {
|
|
33
|
+
"value": "a(b)!*'~-_."
|
|
34
|
+
},
|
|
35
|
+
"expected": "a(b)!*'~-_."
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"id": "unbalanced-markup-delimiters",
|
|
39
|
+
"expression": "encodeUriComponent(value)",
|
|
40
|
+
"scope": {
|
|
41
|
+
"value": "a)b('"
|
|
42
|
+
},
|
|
43
|
+
"expected": "a)b('"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"id": "empty-string",
|
|
47
|
+
"expression": "encodeUriComponent(value)",
|
|
48
|
+
"scope": {
|
|
49
|
+
"value": ""
|
|
50
|
+
},
|
|
51
|
+
"expected": ""
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"id": "explicit-numeric-conversion",
|
|
55
|
+
"expression": "encodeUriComponent(string(value))",
|
|
56
|
+
"scope": {
|
|
57
|
+
"value": 42
|
|
58
|
+
},
|
|
59
|
+
"expected": "42"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"id": "numeric-input-is-not-coerced",
|
|
63
|
+
"expression": "encodeUriComponent(value)",
|
|
64
|
+
"scope": {
|
|
65
|
+
"value": 42
|
|
66
|
+
},
|
|
67
|
+
"expectError": true
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"id": "null-input-is-not-coerced",
|
|
71
|
+
"expression": "encodeUriComponent(value)",
|
|
72
|
+
"scope": {
|
|
73
|
+
"value": null
|
|
74
|
+
},
|
|
75
|
+
"expectError": true
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"id": "unpaired-surrogate",
|
|
79
|
+
"expression": "encodeUriComponent(value)",
|
|
80
|
+
"scope": {
|
|
81
|
+
"value": ""
|
|
82
|
+
},
|
|
83
|
+
"expectError": true,
|
|
84
|
+
"utf16CodeUnits": [
|
|
85
|
+
55296
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"numericCases": [
|
|
90
|
+
{
|
|
91
|
+
"id": "int-fixed-fraction",
|
|
92
|
+
"expression": "number(1234, 2)",
|
|
93
|
+
"scope": {},
|
|
94
|
+
"format": "number",
|
|
95
|
+
"precision": 2,
|
|
96
|
+
"numericType": "int",
|
|
97
|
+
"referenceValue": "1234"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"id": "double-fixed-fraction",
|
|
101
|
+
"expression": "number(value, 2)",
|
|
102
|
+
"scope": {
|
|
103
|
+
"value": 1234.5
|
|
104
|
+
},
|
|
105
|
+
"format": "number",
|
|
106
|
+
"precision": 2,
|
|
107
|
+
"numericType": "double",
|
|
108
|
+
"referenceValue": "1234.5"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"id": "int-computation-fixed-fraction",
|
|
112
|
+
"expression": "number(size(values), 2)",
|
|
113
|
+
"scope": {
|
|
114
|
+
"values": [
|
|
115
|
+
"a",
|
|
116
|
+
"b"
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
"format": "number",
|
|
120
|
+
"precision": 2,
|
|
121
|
+
"numericType": "int",
|
|
122
|
+
"referenceValue": "2"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"id": "int64-fixed-fraction",
|
|
126
|
+
"expression": "number(9007199254740993, 2)",
|
|
127
|
+
"scope": {},
|
|
128
|
+
"format": "number",
|
|
129
|
+
"precision": 2,
|
|
130
|
+
"numericType": "int",
|
|
131
|
+
"referenceValue": "9007199254740993"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"id": "int-percent",
|
|
135
|
+
"expression": "percent(1)",
|
|
136
|
+
"scope": {},
|
|
137
|
+
"format": "percent",
|
|
138
|
+
"numericType": "int",
|
|
139
|
+
"referenceValue": "1"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"id": "double-percent",
|
|
143
|
+
"expression": "percent(value)",
|
|
144
|
+
"scope": {
|
|
145
|
+
"value": 0.25
|
|
146
|
+
},
|
|
147
|
+
"format": "percent",
|
|
148
|
+
"numericType": "double",
|
|
149
|
+
"referenceValue": "0.25"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"id": "int-computation-percent",
|
|
153
|
+
"expression": "percent(size(values))",
|
|
154
|
+
"scope": {
|
|
155
|
+
"values": [
|
|
156
|
+
"a",
|
|
157
|
+
"b"
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
"format": "percent",
|
|
161
|
+
"numericType": "int",
|
|
162
|
+
"referenceValue": "2"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"id": "int64-currency",
|
|
166
|
+
"expression": "currency(9007199254740993, \"EUR\")",
|
|
167
|
+
"scope": {},
|
|
168
|
+
"format": "currency",
|
|
169
|
+
"currency": "EUR",
|
|
170
|
+
"numericType": "int",
|
|
171
|
+
"referenceValue": "9007199254740993"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"id": "int-number",
|
|
175
|
+
"expression": "number(1234)",
|
|
176
|
+
"scope": {},
|
|
177
|
+
"format": "number",
|
|
178
|
+
"numericType": "int",
|
|
179
|
+
"referenceValue": "1234"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"id": "double-currency",
|
|
183
|
+
"expression": "currency(value, \"EUR\")",
|
|
184
|
+
"scope": {
|
|
185
|
+
"value": 0.25
|
|
186
|
+
},
|
|
187
|
+
"format": "currency",
|
|
188
|
+
"currency": "EUR",
|
|
189
|
+
"numericType": "double",
|
|
190
|
+
"referenceValue": "0.25"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"id": "double-literal-fixed-fraction",
|
|
194
|
+
"expression": "number(1234.0, 2)",
|
|
195
|
+
"scope": {},
|
|
196
|
+
"format": "number",
|
|
197
|
+
"precision": 2,
|
|
198
|
+
"numericType": "double",
|
|
199
|
+
"referenceValue": "1234"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"id": "double-literal-percent",
|
|
203
|
+
"expression": "percent(1.0)",
|
|
204
|
+
"scope": {},
|
|
205
|
+
"format": "percent",
|
|
206
|
+
"numericType": "double",
|
|
207
|
+
"referenceValue": "1"
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
"timestampCases": [
|
|
211
|
+
{
|
|
212
|
+
"function": "date",
|
|
213
|
+
"style": {
|
|
214
|
+
"dateStyle": "medium"
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"function": "time",
|
|
219
|
+
"style": {
|
|
220
|
+
"timeStyle": "short"
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"function": "dateTime",
|
|
225
|
+
"style": {
|
|
226
|
+
"dateStyle": "medium",
|
|
227
|
+
"timeStyle": "short"
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
]
|
|
231
|
+
}
|
|
@@ -118,7 +118,8 @@ layout entry (VerticalLayout, HorizontalLayout, Group, Categorization, TemplateL
|
|
|
118
118
|
`config.jsonformsExtended.conditionalFields` as the default. Local false opts out.
|
|
119
119
|
The entry owns the projection for descendant layouts and Categories at that
|
|
120
120
|
object boundary; their local options are ignored in either direction. Traverse every Group child through `elements`; partition direct-child `slot`
|
|
121
|
-
assignments for placement
|
|
121
|
+
assignments for placement before filtering. Indicator traversal visits bound Controls
|
|
122
|
+
across all `elements`, regardless of slot; presentation-only children do not count. Filter
|
|
122
123
|
Group regions as well as bodies, and retain empty authored containers and
|
|
123
124
|
existing layout slots. Whole-value editors retain the original schema; object
|
|
124
125
|
field editors may reuse the projection. Nested object and array-item boundaries
|
|
@@ -218,3 +219,92 @@ can otherwise reintroduce aliases. Distinguish known inactive slots from unknown
|
|
|
218
219
|
names, retain genuine diagnostics, and forward the projection through registered
|
|
219
220
|
layouts. Execute conditional-template-* acceptance vectors and see the associated
|
|
220
221
|
pitfall for focus/selection and DOM staging requirements.
|
|
222
|
+
|
|
223
|
+
## No-op commits still complete their pending lifetime
|
|
224
|
+
|
|
225
|
+
A delivered edit matching the current model may produce no data change. Settle
|
|
226
|
+
its pending contribution and notify validity consumers without waiting for a
|
|
227
|
+
model echo. Preserve newer queued drafts and independent validation. Verify
|
|
228
|
+
both timer and explicit-flush delivery, including edits after a model update.
|
|
229
|
+
See [pending validity](implementation-pitfalls.md#pending-validity-is-observable-without-a-data-change).
|
|
230
|
+
|
|
231
|
+
## Optional manual custom element registration
|
|
232
|
+
|
|
233
|
+
Hosts may provide an explicit registration entry alongside their automatic
|
|
234
|
+
browser entry. Importing the manual entry must leave the default tag undefined;
|
|
235
|
+
only calling its registration function defines the requested tag. Give every
|
|
236
|
+
alias a distinct constructor, including when multiple tags use the same renderer.
|
|
237
|
+
Keep both entry points in the browser/package acceptance checks: shared chunks
|
|
238
|
+
must not pull automatic registration into the manual import.
|
|
239
|
+
|
|
240
|
+
When registration accepts property defaults, snapshot mutable records and arrays
|
|
241
|
+
at definition and isolate them between instances. Preserve callback, capability
|
|
242
|
+
symbol, and opaque service identities. Instance inputs override defaults;
|
|
243
|
+
attribute removal and an `undefined` property restore the configured fallback.
|
|
244
|
+
Explicit `false`, `null`, and empty strings retain their normal property meaning.
|
|
245
|
+
Defaults apply to whole properties, without silently merging nested configuration.
|
|
246
|
+
Preserve properties assigned before upgrade, attributes, events, slots, and
|
|
247
|
+
renderer styles. Do not write host attributes or children in the custom element
|
|
248
|
+
constructor; apply defaults through internal state or property accessors.
|
|
249
|
+
|
|
250
|
+
Document repeated-definition behavior. An idempotent API can return the existing
|
|
251
|
+
constructor with its original defaults; it must not silently replace the existing
|
|
252
|
+
tag's definition or modify instances registered earlier. The optional
|
|
253
|
+
`manual-custom-element-registration` vector describes these acceptance checks;
|
|
254
|
+
it does not require every host to expose a registration API or standardize its
|
|
255
|
+
JavaScript function name.
|
|
256
|
+
|
|
257
|
+
## CEL helpers in browser and native hosts
|
|
258
|
+
|
|
259
|
+
Register the portable helper signatures in the text-expression environment;
|
|
260
|
+
JavaScript's globals are not automatically CEL functions. Keep component encoding
|
|
261
|
+
locale-independent, preserve UTF-8 and literal percent semantics, and let malformed
|
|
262
|
+
UTF-16 use the existing expression-error path. Continue escaping substituted
|
|
263
|
+
values before Markdown parsing and applying URL policy to resolved link targets.
|
|
264
|
+
Test punctuation that component encoding intentionally leaves unchanged, including
|
|
265
|
+
parentheses and apostrophes. Compare date-time output with a controlled viewer time
|
|
266
|
+
zone and the active form locale; equal offset-bearing instants must agree.
|
|
267
|
+
The `cel-helpers.json` cases and behavior vectors describe adapter acceptance;
|
|
268
|
+
record executable renderer tests separately from these declarative cases.
|
|
269
|
+
|
|
270
|
+
HTML/JavaScript acceptance runners can load the same JSON artifact after release:
|
|
271
|
+
|
|
272
|
+
```js
|
|
273
|
+
const vectors = await fetch('/spec/conformance/cel-helpers.json').then(response => response.json());
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
For a case carrying `utf16CodeUnits`, construct `scope.value` from those code
|
|
277
|
+
units before evaluating its CEL expression. This represents malformed UTF-16
|
|
278
|
+
without requiring a JSON loader to accept an unpaired surrogate escape. The
|
|
279
|
+
spec package exports this artifact at
|
|
280
|
+
`@chobantonov/jsonforms-extended-spec/conformance/cel-helpers.json`.
|
|
281
|
+
|
|
282
|
+
## Reuse CEL registration without merging evaluator policies
|
|
283
|
+
|
|
284
|
+
Register numeric formatters for both `int` and `double`: integer literals and
|
|
285
|
+
`size()` results are not the same CEL type as JSON data numbers. Retain integer
|
|
286
|
+
precision through formatting. A host `Date` is classified as a CEL timestamp;
|
|
287
|
+
accepting it in a parser is insufficient without registering that overload.
|
|
288
|
+
Use one temporal registration table so the string and timestamp variants follow
|
|
289
|
+
the same locale and viewer-zone behavior.
|
|
290
|
+
|
|
291
|
+
A fresh environment factory may accept host-owned evaluator options and limits.
|
|
292
|
+
Keep caller caches and per-form translator bindings isolated. If sharing such a
|
|
293
|
+
factory between common and optional extended evaluators, place the implementation
|
|
294
|
+
below both packages; do not introduce a common-to-extended dependency. Localized
|
|
295
|
+
helpers in a dependency-tracked evaluator also require locale-aware cache and
|
|
296
|
+
invalidation rules. A display serializer is not a replacement for the dynamic
|
|
297
|
+
UI's typed JSON-result policy. Structured JSON joining and epoch-millisecond
|
|
298
|
+
interpretation remain separate capabilities, without implicit adoption here.
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
## Literal template child names
|
|
302
|
+
|
|
303
|
+
Use own-key lookup and preserve arbitrary authored names through registration,
|
|
304
|
+
engine caches and generated placeholder markup. A safe input dictionary alone
|
|
305
|
+
does not establish safe third-party engine behavior. Verify static, dynamic and
|
|
306
|
+
iterated references, missing-name fallback, literal template delimiters in names,
|
|
307
|
+
editor continuity and host-engine isolation. See the
|
|
308
|
+
[registry-boundary pitfall](implementation-pitfalls.md#template-child-names-must-remain-literal-through-engine-registries)
|
|
309
|
+
and proposed `template-literal-child-names` behavior vector; report executed
|
|
310
|
+
adapter tests separately.
|