@chobantonov/jsonforms-extended-spec 0.4.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.
@@ -666,26 +666,35 @@
666
666
  "id": "group-header-accessible-name",
667
667
  "section": "8.1",
668
668
  "input": {
669
- "groupLabel": "Contact",
670
- "header": [
671
- {
672
- "type": "Button",
673
- "label": "Help"
674
- },
675
- {
676
- "type": "Label",
677
- "text": "Verified",
678
- "i18n": "contact.heading"
679
- },
680
- {
681
- "type": "Label",
682
- "text": "Supporting text"
683
- }
684
- ],
685
669
  "catalog": {
686
670
  "contact.heading.text": "Потвърдено"
687
671
  },
688
- "locale": "bg"
672
+ "locale": "bg",
673
+ "uischema": {
674
+ "type": "Group",
675
+ "label": "Contact",
676
+ "elements": [
677
+ {
678
+ "type": "VerticalLayout",
679
+ "slot": "header",
680
+ "elements": [
681
+ {
682
+ "type": "Button",
683
+ "label": "Help"
684
+ },
685
+ {
686
+ "type": "Label",
687
+ "text": "Verified",
688
+ "i18n": "contact.heading"
689
+ },
690
+ {
691
+ "type": "Label",
692
+ "text": "Supporting text"
693
+ }
694
+ ]
695
+ }
696
+ ]
697
+ }
689
698
  },
690
699
  "expected": {
691
700
  "groupAccessibleName": "Потвърдено",
@@ -1915,21 +1924,34 @@
1915
1924
  "options": {
1916
1925
  "conditionalFields": true
1917
1926
  },
1918
- "header": [
1927
+ "elements": [
1919
1928
  {
1920
- "type": "Label",
1921
- "text": "Customer"
1929
+ "type": "Control",
1930
+ "scope": "#/properties/vat",
1931
+ "slot": "cover"
1922
1932
  },
1923
1933
  {
1924
- "type": "Control",
1925
- "scope": "#/properties/vat"
1934
+ "type": "VerticalLayout",
1935
+ "elements": [
1936
+ {
1937
+ "type": "Label",
1938
+ "text": "Customer"
1939
+ },
1940
+ {
1941
+ "type": "Control",
1942
+ "scope": "#/properties/vat"
1943
+ },
1944
+ {
1945
+ "type": "Control",
1946
+ "scope": "#/properties/nickname"
1947
+ }
1948
+ ],
1949
+ "slot": "header"
1926
1950
  },
1927
1951
  {
1928
1952
  "type": "Control",
1929
1953
  "scope": "#/properties/nickname"
1930
- }
1931
- ],
1932
- "footer": [
1954
+ },
1933
1955
  {
1934
1956
  "type": "VerticalLayout",
1935
1957
  "options": {
@@ -1944,17 +1966,8 @@
1944
1966
  "type": "Control",
1945
1967
  "scope": "#/properties/nickname"
1946
1968
  }
1947
- ]
1948
- }
1949
- ],
1950
- "cover": {
1951
- "type": "Control",
1952
- "scope": "#/properties/vat"
1953
- },
1954
- "elements": [
1955
- {
1956
- "type": "Control",
1957
- "scope": "#/properties/nickname"
1969
+ ],
1970
+ "slot": "footer"
1958
1971
  }
1959
1972
  ]
1960
1973
  }
@@ -3096,5 +3109,440 @@
3096
3109
  "schemaKeywordRemainsReadOnly": true,
3097
3110
  "otherIntegrationsDeclareAliasCapability": true
3098
3111
  }
3112
+ },
3113
+ {
3114
+ "id": "group-child-slot-placement",
3115
+ "section": "8.1",
3116
+ "input": {
3117
+ "uischema": {
3118
+ "type": "Group",
3119
+ "elements": [
3120
+ {
3121
+ "type": "Label",
3122
+ "slot": "footer",
3123
+ "text": "Actions"
3124
+ },
3125
+ {
3126
+ "type": "Label",
3127
+ "name": "header",
3128
+ "text": "Body first"
3129
+ },
3130
+ {
3131
+ "type": "Template",
3132
+ "name": "partner-summary",
3133
+ "slot": "header",
3134
+ "elements": []
3135
+ },
3136
+ {
3137
+ "type": "Group",
3138
+ "elements": [
3139
+ {
3140
+ "type": "Label",
3141
+ "slot": "header",
3142
+ "text": "Nested title"
3143
+ },
3144
+ {
3145
+ "type": "Label",
3146
+ "text": "Nested body"
3147
+ }
3148
+ ]
3149
+ }
3150
+ ],
3151
+ "label": "Partner"
3152
+ },
3153
+ "registeredTemplateName": "partner-summary"
3154
+ },
3155
+ "expected": {
3156
+ "visualRegionOrder": [
3157
+ "header",
3158
+ "body",
3159
+ "footer"
3160
+ ],
3161
+ "headerTemplateLookup": "partner-summary",
3162
+ "bodyAuthoredIndices": [
3163
+ 1,
3164
+ 3
3165
+ ],
3166
+ "unslottedNameHeaderRemainsBody": true,
3167
+ "nestedSlotDoesNotFillOuterHeader": true,
3168
+ "childrenTraversableOnlyThroughElements": true,
3169
+ "noSlotsMappingRequired": true,
3170
+ "groupAccessibleName": "Partner",
3171
+ "registeredTemplateExpansionNotSearchedForTitle": true
3172
+ }
3173
+ },
3174
+ {
3175
+ "id": "group-child-slot-fallback",
3176
+ "section": "8.1",
3177
+ "input": {
3178
+ "cases": [
3179
+ {
3180
+ "type": "Group",
3181
+ "elements": [
3182
+ {
3183
+ "type": "Label",
3184
+ "slot": "header",
3185
+ "text": "First"
3186
+ },
3187
+ {
3188
+ "type": "Label",
3189
+ "slot": "header",
3190
+ "text": "Second"
3191
+ },
3192
+ {
3193
+ "type": "Label",
3194
+ "text": "Body"
3195
+ }
3196
+ ]
3197
+ },
3198
+ {
3199
+ "type": "Group",
3200
+ "elements": [
3201
+ {
3202
+ "type": "Label",
3203
+ "slot": "bottom",
3204
+ "text": "Unknown"
3205
+ },
3206
+ {
3207
+ "type": "Label",
3208
+ "text": "Body"
3209
+ }
3210
+ ]
3211
+ }
3212
+ ],
3213
+ "actions": [
3214
+ "render each case",
3215
+ "hide the first header child in the duplicate case",
3216
+ "collapse and reopen the Group"
3217
+ ]
3218
+ },
3219
+ "expected": {
3220
+ "cases": [
3221
+ {
3222
+ "headerAuthoredIndex": 0,
3223
+ "bodyAuthoredIndices": [
3224
+ 1,
3225
+ 2
3226
+ ]
3227
+ },
3228
+ {
3229
+ "bodyAuthoredIndices": [
3230
+ 0,
3231
+ 1
3232
+ ]
3233
+ }
3234
+ ],
3235
+ "everyChildDispatchedOnce": true,
3236
+ "duplicatesAndUnknownNamesAreValid": true,
3237
+ "bodyFallbackIncludesCollapseAndIndicators": true,
3238
+ "hiddenFirstMatchDoesNotPromoteLaterMatch": true,
3239
+ "bodyOrderPreserved": true
3240
+ }
3241
+ },
3242
+ {
3243
+ "id": "group-child-slot-all-region-indicators",
3244
+ "section": "8.1",
3245
+ "input": {
3246
+ "uischema": {
3247
+ "type": "Group",
3248
+ "options": {
3249
+ "showDataIndicator": true,
3250
+ "showValidationIndicator": true,
3251
+ "showValidationIndicatorCount": true
3252
+ },
3253
+ "elements": [
3254
+ {
3255
+ "type": "Control",
3256
+ "scope": "#/properties/regionOnly",
3257
+ "slot": "header"
3258
+ },
3259
+ {
3260
+ "type": "Control",
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"
3272
+ }
3273
+ ]
3274
+ },
3275
+ "data": {
3276
+ "regionOnly": "x"
3277
+ },
3278
+ "errors": [
3279
+ {
3280
+ "instancePath": "/regionOnly",
3281
+ "keyword": "minLength",
3282
+ "params": {
3283
+ "limit": 2
3284
+ },
3285
+ "message": "too short"
3286
+ }
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
+ }
3336
+ },
3337
+ "expected": {
3338
+ "groupDataIndicator": true,
3339
+ "groupDescendantValidationIndicator": true,
3340
+ "regionControlRetainsLocalError": true,
3341
+ "originalDocumentErrorsUnchanged": true,
3342
+ "bodyValueOrErrorIncludedWhenAdded": true,
3343
+ "allRegionBindingsIncluded": true,
3344
+ "presentationOnlyChildrenContribute": false,
3345
+ "groupDescendantValidationCount": 1,
3346
+ "collapsedAndRuleHiddenBindingsIncluded": true
3347
+ }
3348
+ },
3349
+ {
3350
+ "id": "group-child-slot-visibility",
3351
+ "section": "8.1",
3352
+ "input": {
3353
+ "uischema": {
3354
+ "type": "Group",
3355
+ "label": "Fallback",
3356
+ "options": {
3357
+ "collapsible": true
3358
+ },
3359
+ "elements": [
3360
+ {
3361
+ "type": "VerticalLayout",
3362
+ "slot": "header",
3363
+ "rule": {
3364
+ "effect": "SHOW",
3365
+ "condition": {
3366
+ "scope": "#/properties/showHeader",
3367
+ "schema": {
3368
+ "const": true
3369
+ }
3370
+ }
3371
+ },
3372
+ "elements": [
3373
+ {
3374
+ "type": "Label",
3375
+ "text": "Custom heading"
3376
+ }
3377
+ ]
3378
+ },
3379
+ {
3380
+ "type": "Control",
3381
+ "scope": "#/properties/notes"
3382
+ }
3383
+ ]
3384
+ },
3385
+ "actions": [
3386
+ "focus notes and select text",
3387
+ "hide header through external data update",
3388
+ "show header again",
3389
+ "collapse Group"
3390
+ ]
3391
+ },
3392
+ "expected": {
3393
+ "hiddenHeaderNeverBecomesBody": true,
3394
+ "hiddenHeaderUsesGroupLabel": true,
3395
+ "visibleHeaderUsesResolvedLabel": true,
3396
+ "bodyFocusSelectionDraftAndPendingWriteRetained": true,
3397
+ "collapseKeepsHeaderVisibleAndHidesBodyAndFooter": true,
3398
+ "dataUnchangedByPlacementOrCollapse": true
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
+ }
3099
3547
  }
3100
3548
  ]