@chobantonov/jsonforms-extended-spec 1.0.0 → 1.1.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/conformance/behavior.json +222 -9
- package/conformance/cel-helpers.json +231 -0
- package/docs/implementation-guide.md +79 -1
- package/docs/implementation-pitfalls.md +52 -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,152 @@
|
|
|
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
|
+
}
|
|
3334
3547
|
}
|
|
3335
3548
|
]
|
|
@@ -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,80 @@ 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.
|
|
@@ -290,8 +290,11 @@ that name when locale or effective dynamic header text changes. Resolving a
|
|
|
290
290
|
dynamic Label only at child dispatch leaves the parent's name stale. Keep
|
|
291
291
|
authored interactive content outside the disclosure trigger: nesting a Button
|
|
292
292
|
inside it makes keyboard and pointer behavior
|
|
293
|
-
ambiguous. Data and validation indicators aggregate
|
|
294
|
-
|
|
293
|
+
ambiguous. Data and validation indicators aggregate bindings across every
|
|
294
|
+
resolved child in `elements`, including header, cover and footer fields. Labels
|
|
295
|
+
and images do not count merely because they display content. Do not reuse the
|
|
296
|
+
body-placement partition to collect indicator bindings. Ordinary rule-hidden
|
|
297
|
+
Controls still participate; conditionally omitted bindings do not. Acceptance:
|
|
295
298
|
mount the Card regions tab in `examples/group-layout/uischema.json` closed,
|
|
296
299
|
open it, activate a footer button without changing expansion, close it, then hide
|
|
297
300
|
the Group. Verify region visibility, action dispatch and unchanged data at each step.
|
|
@@ -1154,6 +1157,21 @@ commands must resolve committable edits before reading current data, and retain
|
|
|
1154
1157
|
unresolved/staged drafts for explicit Apply/Cancel. Clear, cancellation, rebinding,
|
|
1155
1158
|
external replacement and disposal invalidate superseded work.
|
|
1156
1159
|
|
|
1160
|
+
A no-op commit can finish without any new data prop or change event. Do not
|
|
1161
|
+
clear pending edits exclusively in a model-feedback effect: typing `xy` and
|
|
1162
|
+
reverting to stored `x` before delivery must settle that edit when the timer or
|
|
1163
|
+
an explicit flush runs. Compare with the current model, not the last attempted
|
|
1164
|
+
write. Preserve newer drafts while an earlier write is being acknowledged and
|
|
1165
|
+
keep independent validation or unresolved drafts pending. This does not require
|
|
1166
|
+
all adapters to publish identical intermediate queue states.
|
|
1167
|
+
|
|
1168
|
+
**Acceptance:** Start with valid stored `x`, type `xy` then `x` in one debounce
|
|
1169
|
+
window, and deliver by both timer and explicit flush. If the edit contributes to
|
|
1170
|
+
pending validity, it must stop doing so without a data event. Repeat after a
|
|
1171
|
+
model change and with a newer draft awaiting feedback. The proposed behavior
|
|
1172
|
+
vector requires renderer execution; fixture validation alone does not prove it.
|
|
1173
|
+
|
|
1174
|
+
|
|
1157
1175
|
Avoid rescanning every mounted editor on each field render. Maintain per-editor
|
|
1158
1176
|
pending state and update aggregates only when a contributor changes. Verify both
|
|
1159
1177
|
correctness and notification cost; a form-wide subscription alone does not prove
|
|
@@ -1214,3 +1232,35 @@ resolution instead of stripping options at the integration boundary; lowercase
|
|
|
1214
1232
|
`readonly` wins when both boolean spellings are present at the same source.
|
|
1215
1233
|
Keep JSON Schema `readOnly`, canonical UI/config `readonly`, and inherited
|
|
1216
1234
|
compatibility support distinct in documentation and tests.
|
|
1235
|
+
|
|
1236
|
+
## Manual registration must stay separate from automatic registration
|
|
1237
|
+
|
|
1238
|
+
An exported registration function is insufficient if importing its module still
|
|
1239
|
+
registers the default tag through a component import or a shared chunk. Exercise
|
|
1240
|
+
the actual emitted manual entry in a fresh browser registry. Each alias also
|
|
1241
|
+
needs its own custom element constructor; browsers reject registering the same
|
|
1242
|
+
constructor twice. Registration defaults must not overwrite pre-upgrade instance
|
|
1243
|
+
properties or leak mutable data/configuration between instances. Clone plain
|
|
1244
|
+
records and arrays while retaining callbacks, capability symbols, and service
|
|
1245
|
+
instances. Verify removing an override restores its fallback, and that custom
|
|
1246
|
+
tags still deliver the same events, slots, and styles as the automatic entry.
|
|
1247
|
+
|
|
1248
|
+
## URL component encoding does not replace markup escaping
|
|
1249
|
+
|
|
1250
|
+
An identifier containing `/`, `?`, `&` or `#` changes a URL's structure when
|
|
1251
|
+
interpolated raw. Encode the identifier as one component, then retain the existing
|
|
1252
|
+
markup escaping and URL-policy stages. `encodeURIComponent` intentionally leaves
|
|
1253
|
+
parentheses and apostrophes unchanged, and re-encodes an existing percent escape.
|
|
1254
|
+
Encoding a whole URL would also encode its structural delimiters. Date-time
|
|
1255
|
+
formatting has a separate environment dependency: the viewer's time zone as well
|
|
1256
|
+
as the form locale must be fixed for reproducible comparisons between hosts.
|
|
1257
|
+
|
|
1258
|
+
## CEL overloads follow value types, not how numbers look
|
|
1259
|
+
|
|
1260
|
+
A literal `1`, `size(items)`, and JSON data containing `1` can reach different
|
|
1261
|
+
CEL overloads. Implement both integer and double variants of numeric formatters,
|
|
1262
|
+
including fixed-fraction `number` and `percent`. Converting an integer to a
|
|
1263
|
+
JavaScript number first can lose digits. Similarly, a JavaScript `Date` reaches
|
|
1264
|
+
a timestamp overload, not a string overload; an `instanceof Date` branch alone
|
|
1265
|
+
does not make it callable. Preserve cache isolation and evaluation limits when
|
|
1266
|
+
factoring function registration into a reusable environment builder.
|