@chobantonov/jsonforms-extended-spec 0.3.0 → 1.0.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.
Files changed (40) hide show
  1. package/conformance/authoring.json +243 -0
  2. package/conformance/behavior.json +1755 -22
  3. package/docs/audit.md +17 -2
  4. package/docs/conditional-fields.md +105 -16
  5. package/docs/external-resources-proposal.md +8 -2
  6. package/docs/implementation-guide.md +76 -89
  7. package/docs/implementation-pitfalls.md +260 -12
  8. package/docs/implementation-web-typescript.md +2 -5
  9. package/docs/renderer-and-demo.md +47 -34
  10. package/docs/spec.md +169 -47
  11. package/docs/todo.md +59 -22
  12. package/examples/catalog.json +16 -1
  13. package/examples/conditional-fields/README.md +10 -0
  14. package/examples/conditional-template-slots/README.md +14 -0
  15. package/examples/conditional-template-slots/config.json +7 -0
  16. package/examples/conditional-template-slots/data.json +5 -0
  17. package/examples/conditional-template-slots/schema.json +37 -0
  18. package/examples/conditional-template-slots/translations.json +16 -0
  19. package/examples/conditional-template-slots/uischema.json +22 -0
  20. package/examples/group-layout/README.md +26 -1
  21. package/examples/group-layout/uischema.json +50 -41
  22. package/examples/index.js +4 -3
  23. package/examples/kitchen-sink/README.md +93 -4
  24. package/examples/kitchen-sink/config.json +7 -0
  25. package/examples/kitchen-sink/data.json +14 -2
  26. package/examples/kitchen-sink/invalid-data.json +13 -1
  27. package/examples/kitchen-sink/schema.json +100 -1
  28. package/examples/kitchen-sink/translations.json +80 -2
  29. package/examples/kitchen-sink/uischema.json +239 -5
  30. package/examples/label-interpolation/README.md +17 -1
  31. package/examples/label-interpolation/translations.json +8 -4
  32. package/examples/label-interpolation/uischema.json +25 -6
  33. package/package.json +1 -1
  34. package/schemas/README.md +10 -0
  35. package/schemas/jsonforms-extended-uischema.schema.json +8 -18
  36. package/schemas/jsonforms-uischema.schema.json +8 -18
  37. package/typescript/README.md +6 -0
  38. package/typescript/lib/authoring/forSchema.d.ts +10 -6
  39. package/typescript/src/authoring/forSchema.ts +10 -6
  40. package/typescript/test/typedAuthoringCoverage.test.ts +15 -7
@@ -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": "Потвърдено",
@@ -921,7 +930,10 @@
921
930
  "false"
922
931
  ],
923
932
  "absentDataDiagnostic": false,
924
- "sameOutputAfterUnwrappingAsDisabled": true
933
+ "sameOutputAfterUnwrappingAsDisabled": true,
934
+ "unknownVariableDiagnostics": [
935
+ "locale"
936
+ ]
925
937
  }
926
938
  },
927
939
  {
@@ -1546,7 +1558,30 @@
1546
1558
  "nestedLayouts": [
1547
1559
  "VerticalLayout",
1548
1560
  "HorizontalLayout"
1549
- ]
1561
+ ],
1562
+ "uischema": {
1563
+ "type": "Group",
1564
+ "options": {
1565
+ "conditionalFields": false
1566
+ },
1567
+ "elements": [
1568
+ {
1569
+ "type": "VerticalLayout",
1570
+ "options": {
1571
+ "conditionalFields": true
1572
+ },
1573
+ "elements": [
1574
+ {
1575
+ "type": "HorizontalLayout",
1576
+ "options": {
1577
+ "conditionalFields": true
1578
+ },
1579
+ "elements": []
1580
+ }
1581
+ ]
1582
+ }
1583
+ ]
1584
+ }
1550
1585
  },
1551
1586
  "expected": {
1552
1587
  "projectionEnabled": false,
@@ -1563,13 +1598,28 @@
1563
1598
  "business",
1564
1599
  "personal"
1565
1600
  ],
1566
- "validationMode": "NoValidation"
1601
+ "validationMode": "NoValidation",
1602
+ "independentForms": {
1603
+ "outer": {
1604
+ "dataPath": "",
1605
+ "local": false,
1606
+ "global": true
1607
+ },
1608
+ "embeddedInner": {
1609
+ "dataPath": "",
1610
+ "local": true,
1611
+ "global": false
1612
+ }
1613
+ }
1567
1614
  },
1568
1615
  "expected": {
1569
1616
  "evaluateEachObjectIndependently": true,
1570
1617
  "requiredMarkersFollowEachObject": true,
1571
1618
  "noDataMutation": true,
1572
- "independentHostFormsAtSameRootPath": true
1619
+ "independentHostFormsAtSameRootPath": true,
1620
+ "outerProjectionEnabled": false,
1621
+ "embeddedInnerProjectionEnabled": true,
1622
+ "resetInheritanceAtHostFormBoundary": true
1573
1623
  }
1574
1624
  },
1575
1625
  {
@@ -1596,7 +1646,1690 @@
1596
1646
  "asteriskFollowsActiveRequiredUnion": true,
1597
1647
  "insertUnplacedBranchFields": false,
1598
1648
  "uiRulesStillApply": true,
1599
- "preserveEmptyContainers": true
1649
+ "preserveEmptyContainers": true,
1650
+ "preserveExistingSlotsForEmptiedPlainLayouts": true
1651
+ }
1652
+ },
1653
+ {
1654
+ "id": "interpolation-explicit-locale",
1655
+ "section": "9.1, 9.4a",
1656
+ "input": {
1657
+ "uischema": {
1658
+ "type": "Label",
1659
+ "text": "{language} / {locale}",
1660
+ "options": {
1661
+ "interpolate": true,
1662
+ "textParamSpans": true,
1663
+ "textParams": {
1664
+ "language": "{locale}",
1665
+ "locale": "{locale}"
1666
+ }
1667
+ }
1668
+ },
1669
+ "config": {
1670
+ "jsonformsExtended": {
1671
+ "dynamicValues": {
1672
+ "enabled": false
1673
+ }
1674
+ }
1675
+ },
1676
+ "hostLocaleSequence": [
1677
+ "en",
1678
+ "bg"
1679
+ ],
1680
+ "platform": "HTML"
1681
+ },
1682
+ "expected": {
1683
+ "textSequence": [
1684
+ "en / en",
1685
+ "bg / bg"
1686
+ ],
1687
+ "parameterSpans": [
1688
+ "language",
1689
+ "locale"
1690
+ ],
1691
+ "unknownVariableDiagnostics": [],
1692
+ "parameterSelfReference": false,
1693
+ "dataNamespacesEnabled": false
1694
+ }
1695
+ },
1696
+ {
1697
+ "id": "interpolation-undeclared-locale",
1698
+ "section": "9.1, 9.5",
1699
+ "input": {
1700
+ "uischema": {
1701
+ "type": "Label",
1702
+ "text": "Language: {locale}",
1703
+ "options": {
1704
+ "interpolate": true
1705
+ }
1706
+ },
1707
+ "hostLocale": "en",
1708
+ "textParamSpans": [
1709
+ false,
1710
+ true
1711
+ ]
1712
+ },
1713
+ "expected": {
1714
+ "text": "Language: ",
1715
+ "unknownVariableDiagnostics": [
1716
+ "locale"
1717
+ ],
1718
+ "parameterSpans": [],
1719
+ "sameDiagnosticsWithMarkersOnAndOff": true
1720
+ }
1721
+ },
1722
+ {
1723
+ "id": "styling-invalid-local-default",
1724
+ "section": "9.4a",
1725
+ "input": {
1726
+ "uncheckedLocalValues": [
1727
+ "yes",
1728
+ 0,
1729
+ null,
1730
+ {},
1731
+ []
1732
+ ],
1733
+ "hostDefaults": [
1734
+ true,
1735
+ false
1736
+ ],
1737
+ "uischema": {
1738
+ "type": "Label",
1739
+ "text": "{member}",
1740
+ "options": {
1741
+ "interpolate": true,
1742
+ "textParams": {
1743
+ "member": "Morgan"
1744
+ }
1745
+ }
1746
+ },
1747
+ "platform": "HTML"
1748
+ },
1749
+ "expected": {
1750
+ "authoringValid": false,
1751
+ "effectiveValueForEachInvalidLocal": "host default",
1752
+ "parameterSpansWhenHostTrue": [
1753
+ "member"
1754
+ ],
1755
+ "parameterSpansWhenHostFalse": [],
1756
+ "truthinessCoercion": false
1757
+ }
1758
+ },
1759
+ {
1760
+ "id": "conditional-layout-nested-opt-out-ignored",
1761
+ "section": "Conditional fields",
1762
+ "input": {
1763
+ "global": false,
1764
+ "uischema": {
1765
+ "type": "Group",
1766
+ "options": {
1767
+ "conditionalFields": true
1768
+ },
1769
+ "elements": [
1770
+ {
1771
+ "type": "VerticalLayout",
1772
+ "options": {
1773
+ "conditionalFields": false
1774
+ },
1775
+ "elements": []
1776
+ }
1777
+ ]
1778
+ }
1779
+ },
1780
+ "expected": {
1781
+ "projectionEnabled": true,
1782
+ "descendantOptionIgnored": true,
1783
+ "projectOnceAtOwner": true
1784
+ }
1785
+ },
1786
+ {
1787
+ "id": "conditional-layout-whole-value-editor",
1788
+ "section": "Conditional fields",
1789
+ "input": {
1790
+ "schema": {
1791
+ "type": "object",
1792
+ "properties": {
1793
+ "kind": {
1794
+ "type": "string"
1795
+ },
1796
+ "name": {
1797
+ "type": "string"
1798
+ }
1799
+ },
1800
+ "if": {
1801
+ "properties": {
1802
+ "kind": {
1803
+ "const": "business"
1804
+ }
1805
+ },
1806
+ "required": [
1807
+ "kind"
1808
+ ]
1809
+ },
1810
+ "then": {
1811
+ "properties": {
1812
+ "vat": {
1813
+ "type": "string"
1814
+ }
1815
+ },
1816
+ "required": [
1817
+ "vat"
1818
+ ]
1819
+ },
1820
+ "else": {
1821
+ "properties": {
1822
+ "nickname": {
1823
+ "type": "string"
1824
+ }
1825
+ }
1826
+ }
1827
+ },
1828
+ "data": {
1829
+ "kind": "personal",
1830
+ "nickname": "M",
1831
+ "vat": "retained"
1832
+ },
1833
+ "uischema": {
1834
+ "type": "VerticalLayout",
1835
+ "options": {
1836
+ "conditionalFields": true
1837
+ },
1838
+ "elements": [
1839
+ {
1840
+ "type": "Control",
1841
+ "scope": "#/properties/nickname"
1842
+ },
1843
+ {
1844
+ "type": "Control",
1845
+ "scope": "#/properties/vat"
1846
+ },
1847
+ {
1848
+ "type": "Control",
1849
+ "scope": "#",
1850
+ "options": {
1851
+ "format": "code"
1852
+ }
1853
+ }
1854
+ ]
1855
+ },
1856
+ "additionalEditorRoles": [
1857
+ "custom whole-value editor",
1858
+ "same-object field editor",
1859
+ "same-object field editor with local false"
1860
+ ]
1861
+ },
1862
+ "expected": {
1863
+ "visibleFieldScopes": [
1864
+ "#/properties/nickname"
1865
+ ],
1866
+ "wholeValueControlRetained": true,
1867
+ "wholeValueEditorSchema": "original authored schema with if/then/else and original reference context",
1868
+ "customWholeValueEditorSchema": "original authored schema",
1869
+ "sameObjectFieldEditorMayReuseProjection": true,
1870
+ "sameObjectFieldEditorLocalFalseSchema": "original authored schema",
1871
+ "originalSchemaValidation": true,
1872
+ "dataUnchanged": true
1873
+ }
1874
+ },
1875
+ {
1876
+ "id": "conditional-layout-regions",
1877
+ "section": "Conditional fields",
1878
+ "input": {
1879
+ "schema": {
1880
+ "type": "object",
1881
+ "properties": {
1882
+ "kind": {
1883
+ "type": "string"
1884
+ },
1885
+ "name": {
1886
+ "type": "string"
1887
+ }
1888
+ },
1889
+ "if": {
1890
+ "properties": {
1891
+ "kind": {
1892
+ "const": "business"
1893
+ }
1894
+ },
1895
+ "required": [
1896
+ "kind"
1897
+ ]
1898
+ },
1899
+ "then": {
1900
+ "properties": {
1901
+ "vat": {
1902
+ "type": "string"
1903
+ }
1904
+ },
1905
+ "required": [
1906
+ "vat"
1907
+ ]
1908
+ },
1909
+ "else": {
1910
+ "properties": {
1911
+ "nickname": {
1912
+ "type": "string"
1913
+ }
1914
+ }
1915
+ }
1916
+ },
1917
+ "data": {
1918
+ "kind": "personal",
1919
+ "nickname": "M",
1920
+ "vat": "retained"
1921
+ },
1922
+ "uischema": {
1923
+ "type": "Group",
1924
+ "options": {
1925
+ "conditionalFields": true
1926
+ },
1927
+ "elements": [
1928
+ {
1929
+ "type": "Control",
1930
+ "scope": "#/properties/vat",
1931
+ "slot": "cover"
1932
+ },
1933
+ {
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"
1950
+ },
1951
+ {
1952
+ "type": "Control",
1953
+ "scope": "#/properties/nickname"
1954
+ },
1955
+ {
1956
+ "type": "VerticalLayout",
1957
+ "options": {
1958
+ "conditionalFields": false
1959
+ },
1960
+ "elements": [
1961
+ {
1962
+ "type": "Control",
1963
+ "scope": "#/properties/vat"
1964
+ },
1965
+ {
1966
+ "type": "Control",
1967
+ "scope": "#/properties/nickname"
1968
+ }
1969
+ ],
1970
+ "slot": "footer"
1971
+ }
1972
+ ]
1973
+ }
1974
+ },
1975
+ "expected": {
1976
+ "headerElements": [
1977
+ {
1978
+ "type": "Label",
1979
+ "text": "Customer"
1980
+ },
1981
+ {
1982
+ "type": "Control",
1983
+ "scope": "#/properties/nickname"
1984
+ }
1985
+ ],
1986
+ "footerFieldScopes": [
1987
+ "#/properties/nickname"
1988
+ ],
1989
+ "coverOmitted": true,
1990
+ "regionLayoutLocalFalseIgnored": true,
1991
+ "groupRetained": true,
1992
+ "originalSchemaValidation": true,
1993
+ "dataUnchanged": true
1994
+ }
1995
+ },
1996
+ {
1997
+ "id": "conditional-layout-ignored-options",
1998
+ "section": "Conditional fields",
1999
+ "input": {
2000
+ "global": false,
2001
+ "uischema": {
2002
+ "type": "Categorization",
2003
+ "options": {
2004
+ "conditionalFields": false
2005
+ },
2006
+ "elements": [
2007
+ {
2008
+ "type": "Category",
2009
+ "label": "Customer",
2010
+ "options": {
2011
+ "conditionalFields": true
2012
+ },
2013
+ "elements": [
2014
+ {
2015
+ "type": "Label",
2016
+ "text": "Customer",
2017
+ "options": {
2018
+ "conditionalFields": true
2019
+ }
2020
+ },
2021
+ {
2022
+ "type": "Button",
2023
+ "label": "Continue",
2024
+ "options": {
2025
+ "conditionalFields": true
2026
+ }
2027
+ }
2028
+ ]
2029
+ }
2030
+ ]
2031
+ }
2032
+ },
2033
+ "expected": {
2034
+ "projectionEnabled": false,
2035
+ "categoryOptionIgnored": true,
2036
+ "labelOptionIgnored": true,
2037
+ "buttonOptionIgnored": true,
2038
+ "noNewProjectionOwner": true
2039
+ }
2040
+ },
2041
+ {
2042
+ "id": "conditional-layout-empty-container-slot",
2043
+ "section": "Conditional fields, 5.7",
2044
+ "input": {
2045
+ "schema": {
2046
+ "type": "object",
2047
+ "properties": {
2048
+ "kind": {
2049
+ "type": "string"
2050
+ },
2051
+ "name": {
2052
+ "type": "string"
2053
+ }
2054
+ },
2055
+ "if": {
2056
+ "properties": {
2057
+ "kind": {
2058
+ "const": "business"
2059
+ }
2060
+ },
2061
+ "required": [
2062
+ "kind"
2063
+ ]
2064
+ },
2065
+ "then": {
2066
+ "properties": {
2067
+ "vat": {
2068
+ "type": "string"
2069
+ }
2070
+ },
2071
+ "required": [
2072
+ "vat"
2073
+ ]
2074
+ },
2075
+ "else": {
2076
+ "properties": {
2077
+ "nickname": {
2078
+ "type": "string"
2079
+ }
2080
+ }
2081
+ }
2082
+ },
2083
+ "data": {
2084
+ "kind": "personal"
2085
+ },
2086
+ "uischema": {
2087
+ "type": "VerticalLayout",
2088
+ "options": {
2089
+ "conditionalFields": true
2090
+ },
2091
+ "elements": [
2092
+ {
2093
+ "type": "HorizontalLayout",
2094
+ "options": {
2095
+ "part": "branch-area"
2096
+ },
2097
+ "elements": [
2098
+ {
2099
+ "type": "Control",
2100
+ "scope": "#/properties/vat"
2101
+ }
2102
+ ]
2103
+ }
2104
+ ]
2105
+ },
2106
+ "platform": "HTML with styling hooks"
2107
+ },
2108
+ "expected": {
2109
+ "nestedLayoutRetained": true,
2110
+ "nestedLayoutChildCount": 0,
2111
+ "existingParentSlotRetained": true,
2112
+ "slotDataPart": "branch-area",
2113
+ "extraWrapperRequired": false,
2114
+ "minimumSizeRequired": false,
2115
+ "fixedGapRequired": false,
2116
+ "ordinaryHideRuleCanStillHideContainer": true
2117
+ }
2118
+ },
2119
+ {
2120
+ "id": "conditional-layout-editor-continuity",
2121
+ "section": "Conditional fields",
2122
+ "input": {
2123
+ "placements": [
2124
+ "VerticalLayout",
2125
+ "HorizontalLayout",
2126
+ "Group header",
2127
+ "Group footer",
2128
+ "splitter panes"
2129
+ ],
2130
+ "authoredBindings": [
2131
+ "branch-only field",
2132
+ "retained field",
2133
+ "second occurrence of retained field"
2134
+ ],
2135
+ "operations": [
2136
+ "focus retained field",
2137
+ "start an uncommitted edit",
2138
+ "deactivate earlier branch-only field",
2139
+ "wait for normal commit",
2140
+ "reactivate earlier field"
2141
+ ],
2142
+ "sameFormInstance": true
2143
+ },
2144
+ "expected": {
2145
+ "retainedFocusPreserved": true,
2146
+ "retainedDraftPreserved": true,
2147
+ "pendingWriteCommittedToOriginalField": true,
2148
+ "duplicateOccurrencesRemainIndependent": true,
2149
+ "splitterSizingDoesNotResetRetainedEditors": true,
2150
+ "inactiveDataRetained": true
2151
+ }
2152
+ },
2153
+ {
2154
+ "id": "conditional-layout-static-work",
2155
+ "section": "Conditional fields",
2156
+ "input": {
2157
+ "schemaLifecycle": "immutable identity until replacement",
2158
+ "operations": [
2159
+ "repeat nonconditional discovery",
2160
+ "edit ordinary value without changing active branches",
2161
+ "switch branches with identical property names but different constraints and requiredness",
2162
+ "disable projection",
2163
+ "replace schema identity"
2164
+ ],
2165
+ "additionalCases": [
2166
+ "cyclic allOf discovery",
2167
+ "independent forms",
2168
+ "different array items",
2169
+ "dynamic scope resolution before filtering"
2170
+ ]
2171
+ },
2172
+ "expected": {
2173
+ "repeatDiscoveryAvoidsAnotherImmutableTraversal": true,
2174
+ "unchangedPresentationAvoidsFullRebuild": true,
2175
+ "currentBranchRequirednessAndConstraintsApplied": true,
2176
+ "disabledPredicateEvaluations": 0,
2177
+ "disabledContentFiltering": false,
2178
+ "ownershipBookkeepingPermitted": true,
2179
+ "schemaReplacementInvalidatesDiscovery": true,
2180
+ "validatorMutationIsolationPreserved": true,
2181
+ "noLatencyBenchmarkClaim": true
2182
+ }
2183
+ },
2184
+ {
2185
+ "id": "conditional-layout-discovery-reference",
2186
+ "section": "Conditional fields",
2187
+ "input": {
2188
+ "schema": {
2189
+ "type": "object",
2190
+ "properties": {
2191
+ "kind": {
2192
+ "type": "string"
2193
+ },
2194
+ "name": {
2195
+ "type": "string"
2196
+ }
2197
+ },
2198
+ "definitions": {
2199
+ "Branch": {
2200
+ "if": {
2201
+ "properties": {
2202
+ "kind": {
2203
+ "const": "business"
2204
+ }
2205
+ },
2206
+ "required": [
2207
+ "kind"
2208
+ ]
2209
+ },
2210
+ "then": {
2211
+ "properties": {
2212
+ "vat": {
2213
+ "type": "string"
2214
+ }
2215
+ },
2216
+ "required": [
2217
+ "name",
2218
+ "vat"
2219
+ ]
2220
+ },
2221
+ "else": {
2222
+ "properties": {
2223
+ "nickname": {
2224
+ "type": "string"
2225
+ }
2226
+ }
2227
+ }
2228
+ }
2229
+ },
2230
+ "allOf": [
2231
+ {
2232
+ "$ref": "#/definitions/Branch"
2233
+ }
2234
+ ]
2235
+ },
2236
+ "uischema": {
2237
+ "type": "VerticalLayout",
2238
+ "options": {
2239
+ "conditionalFields": true
2240
+ },
2241
+ "elements": [
2242
+ {
2243
+ "type": "Control",
2244
+ "scope": "#/properties/name"
2245
+ },
2246
+ {
2247
+ "type": "Control",
2248
+ "scope": "#/properties/vat"
2249
+ },
2250
+ {
2251
+ "type": "Control",
2252
+ "scope": "#/properties/nickname"
2253
+ }
2254
+ ]
2255
+ },
2256
+ "data": {
2257
+ "kind": "business",
2258
+ "name": "Ada",
2259
+ "vat": "BG1",
2260
+ "nickname": "kept"
2261
+ },
2262
+ "operations": [
2263
+ "replace kind with personal",
2264
+ "opt out locally while kind is business"
2265
+ ]
2266
+ },
2267
+ "expected": {
2268
+ "businessVisibleFields": [
2269
+ "name",
2270
+ "vat"
2271
+ ],
2272
+ "businessRequiredFields": [
2273
+ "name",
2274
+ "vat"
2275
+ ],
2276
+ "personalVisibleFields": [
2277
+ "name",
2278
+ "nickname"
2279
+ ],
2280
+ "personalRequiredFields": [],
2281
+ "originalSchemaValidationPreserved": true,
2282
+ "inactiveDataRetained": true
2283
+ }
2284
+ },
2285
+ {
2286
+ "id": "conditional-layout-discovery-allOf",
2287
+ "section": "Conditional fields",
2288
+ "input": {
2289
+ "schema": {
2290
+ "type": "object",
2291
+ "properties": {
2292
+ "kind": {
2293
+ "type": "string"
2294
+ },
2295
+ "name": {
2296
+ "type": "string"
2297
+ }
2298
+ },
2299
+ "allOf": [
2300
+ {
2301
+ "properties": {
2302
+ "vat": {
2303
+ "type": "string"
2304
+ }
2305
+ },
2306
+ "required": [
2307
+ "name",
2308
+ "vat"
2309
+ ]
2310
+ }
2311
+ ]
2312
+ },
2313
+ "uischema": {
2314
+ "type": "VerticalLayout",
2315
+ "options": {
2316
+ "conditionalFields": true
2317
+ },
2318
+ "elements": [
2319
+ {
2320
+ "type": "Control",
2321
+ "scope": "#/properties/name"
2322
+ },
2323
+ {
2324
+ "type": "Control",
2325
+ "scope": "#/properties/vat"
2326
+ },
2327
+ {
2328
+ "type": "Control",
2329
+ "scope": "#/properties/nickname"
2330
+ }
2331
+ ]
2332
+ },
2333
+ "data": {
2334
+ "kind": "business",
2335
+ "name": "Ada",
2336
+ "vat": "BG1",
2337
+ "nickname": "kept"
2338
+ },
2339
+ "operations": [
2340
+ "replace kind with personal",
2341
+ "opt out locally while kind is business"
2342
+ ]
2343
+ },
2344
+ "expected": {
2345
+ "businessVisibleFields": [
2346
+ "name",
2347
+ "vat"
2348
+ ],
2349
+ "businessRequiredFields": [
2350
+ "name",
2351
+ "vat"
2352
+ ],
2353
+ "personalVisibleFields": [
2354
+ "name",
2355
+ "vat"
2356
+ ],
2357
+ "personalRequiredFields": [
2358
+ "name",
2359
+ "vat"
2360
+ ],
2361
+ "originalSchemaValidationPreserved": true,
2362
+ "inactiveDataRetained": true
2363
+ }
2364
+ },
2365
+ {
2366
+ "id": "conditional-layout-discovery-nullable",
2367
+ "section": "Conditional fields",
2368
+ "input": {
2369
+ "schema": {
2370
+ "type": [
2371
+ "object",
2372
+ "null"
2373
+ ],
2374
+ "properties": {
2375
+ "kind": {
2376
+ "type": "string"
2377
+ },
2378
+ "name": {
2379
+ "type": "string"
2380
+ }
2381
+ },
2382
+ "if": {
2383
+ "properties": {
2384
+ "kind": {
2385
+ "const": "business"
2386
+ }
2387
+ },
2388
+ "required": [
2389
+ "kind"
2390
+ ]
2391
+ },
2392
+ "then": {
2393
+ "properties": {
2394
+ "vat": {
2395
+ "type": "string"
2396
+ }
2397
+ },
2398
+ "required": [
2399
+ "name",
2400
+ "vat"
2401
+ ]
2402
+ },
2403
+ "else": {
2404
+ "properties": {
2405
+ "nickname": {
2406
+ "type": "string"
2407
+ }
2408
+ }
2409
+ }
2410
+ },
2411
+ "uischema": {
2412
+ "type": "VerticalLayout",
2413
+ "options": {
2414
+ "conditionalFields": true
2415
+ },
2416
+ "elements": [
2417
+ {
2418
+ "type": "Control",
2419
+ "scope": "#/properties/name"
2420
+ },
2421
+ {
2422
+ "type": "Control",
2423
+ "scope": "#/properties/vat"
2424
+ },
2425
+ {
2426
+ "type": "Control",
2427
+ "scope": "#/properties/nickname"
2428
+ }
2429
+ ]
2430
+ },
2431
+ "data": {
2432
+ "kind": "business",
2433
+ "name": "Ada",
2434
+ "vat": "BG1",
2435
+ "nickname": "kept"
2436
+ },
2437
+ "operations": [
2438
+ "replace kind with personal",
2439
+ "opt out locally while kind is business",
2440
+ "replace data with null, then restore object data"
2441
+ ]
2442
+ },
2443
+ "expected": {
2444
+ "businessVisibleFields": [
2445
+ "name",
2446
+ "vat"
2447
+ ],
2448
+ "businessRequiredFields": [
2449
+ "name",
2450
+ "vat"
2451
+ ],
2452
+ "personalVisibleFields": [
2453
+ "name",
2454
+ "nickname"
2455
+ ],
2456
+ "personalRequiredFields": [],
2457
+ "originalSchemaValidationPreserved": true,
2458
+ "inactiveDataRetained": true,
2459
+ "nullRemainsNull": true,
2460
+ "doesNotInitializeObject": true
2461
+ }
2462
+ },
2463
+ {
2464
+ "id": "conditional-discovery-reference-context",
2465
+ "section": "Conditional fields",
2466
+ "input": {
2467
+ "schema": {
2468
+ "$ref": "#/definitions/Branch"
2469
+ },
2470
+ "roots": [
2471
+ {
2472
+ "definitions": {
2473
+ "Branch": {
2474
+ "if": {
2475
+ "properties": {
2476
+ "kind": {
2477
+ "const": "business"
2478
+ }
2479
+ },
2480
+ "required": [
2481
+ "kind"
2482
+ ]
2483
+ },
2484
+ "then": {
2485
+ "properties": {
2486
+ "vat": {
2487
+ "type": "string"
2488
+ }
2489
+ },
2490
+ "required": [
2491
+ "name",
2492
+ "vat"
2493
+ ]
2494
+ },
2495
+ "else": {
2496
+ "properties": {
2497
+ "nickname": {
2498
+ "type": "string"
2499
+ }
2500
+ }
2501
+ }
2502
+ }
2503
+ }
2504
+ },
2505
+ {
2506
+ "definitions": {
2507
+ "Branch": {
2508
+ "type": "string"
2509
+ }
2510
+ }
2511
+ }
2512
+ ],
2513
+ "additionalCases": [
2514
+ "cyclic allOf without conditions",
2515
+ "missing reference",
2516
+ "allOf containing minProperties only"
2517
+ ]
2518
+ },
2519
+ "expected": {
2520
+ "discoveryByRoot": [
2521
+ true,
2522
+ false
2523
+ ],
2524
+ "completedSearchCachedPerSchemaAndRoot": true,
2525
+ "cycleTerminates": true,
2526
+ "missingReferenceReportedWithoutLosingBaseFields": true,
2527
+ "constraintOnlyAllOfDoesNotActivateFieldProjection": true
2528
+ }
2529
+ },
2530
+ {
2531
+ "id": "conditional-template-positional",
2532
+ "section": "13.5 / Conditional fields",
2533
+ "input": {
2534
+ "schema": {
2535
+ "type": "object",
2536
+ "properties": {
2537
+ "kind": {
2538
+ "type": "string",
2539
+ "enum": [
2540
+ "personal",
2541
+ "business"
2542
+ ]
2543
+ },
2544
+ "notes": {
2545
+ "type": "string"
2546
+ }
2547
+ },
2548
+ "if": {
2549
+ "properties": {
2550
+ "kind": {
2551
+ "const": "business"
2552
+ }
2553
+ },
2554
+ "required": [
2555
+ "kind"
2556
+ ]
2557
+ },
2558
+ "then": {
2559
+ "properties": {
2560
+ "vatNumber": {
2561
+ "type": "string",
2562
+ "minLength": 3
2563
+ }
2564
+ },
2565
+ "required": [
2566
+ "vatNumber",
2567
+ "notes"
2568
+ ]
2569
+ }
2570
+ },
2571
+ "uischema": {
2572
+ "type": "TemplateLayout",
2573
+ "lang": "ractive",
2574
+ "options": {
2575
+ "conditionalFields": true
2576
+ },
2577
+ "template": "<section><div data-kind>{{>0}}</div><div data-vat>{{>1}}</div><div data-notes>{{>2}}</div></section>",
2578
+ "elements": [
2579
+ {
2580
+ "type": "Control",
2581
+ "scope": "#/properties/kind"
2582
+ },
2583
+ {
2584
+ "type": "Control",
2585
+ "scope": "#/properties/vatNumber"
2586
+ },
2587
+ {
2588
+ "type": "Control",
2589
+ "scope": "#/properties/notes"
2590
+ }
2591
+ ]
2592
+ },
2593
+ "data": {
2594
+ "kind": "personal",
2595
+ "vatNumber": "BG123",
2596
+ "notes": "Retained notes"
2597
+ },
2598
+ "operations": [
2599
+ "personal to business to personal",
2600
+ "render at root and object Control detail",
2601
+ "render the ordered children view",
2602
+ "repeat a known slot reference"
2603
+ ]
2604
+ },
2605
+ "expected": {
2606
+ "knownSlotCount": 3,
2607
+ "personalSlotContent": [
2608
+ "kind",
2609
+ null,
2610
+ "notes"
2611
+ ],
2612
+ "businessSlotContent": [
2613
+ "kind",
2614
+ "vatNumber",
2615
+ "notes"
2616
+ ],
2617
+ "noNumericAliases": true,
2618
+ "knownInactiveMountsControl": false,
2619
+ "knownInactiveActivatesFallback": false,
2620
+ "knownInactiveEmitsUnknownSlot": false,
2621
+ "retainedEditorIdentityAndFocus": true,
2622
+ "retainedTextSelection": true,
2623
+ "originalValidationAndInactiveDataPreserved": true,
2624
+ "inactiveSlotContributesSectionBinding": false
2625
+ }
2626
+ },
2627
+ {
2628
+ "id": "conditional-template-named",
2629
+ "section": "13.5 / Conditional fields",
2630
+ "input": {
2631
+ "schema": {
2632
+ "type": "object",
2633
+ "properties": {
2634
+ "kind": {
2635
+ "type": "string",
2636
+ "enum": [
2637
+ "personal",
2638
+ "business"
2639
+ ]
2640
+ },
2641
+ "notes": {
2642
+ "type": "string"
2643
+ }
2644
+ },
2645
+ "if": {
2646
+ "properties": {
2647
+ "kind": {
2648
+ "const": "business"
2649
+ }
2650
+ },
2651
+ "required": [
2652
+ "kind"
2653
+ ]
2654
+ },
2655
+ "then": {
2656
+ "properties": {
2657
+ "vatNumber": {
2658
+ "type": "string",
2659
+ "minLength": 3
2660
+ }
2661
+ },
2662
+ "required": [
2663
+ "vatNumber",
2664
+ "notes"
2665
+ ]
2666
+ }
2667
+ },
2668
+ "uischema": {
2669
+ "type": "TemplateLayout",
2670
+ "lang": "ractive",
2671
+ "options": {
2672
+ "conditionalFields": true
2673
+ },
2674
+ "template": "<section><div data-kind>{{>kind}}</div><div data-vat>{{>vatNumber}}</div><div data-notes>{{>notes}}</div></section>",
2675
+ "elements": [
2676
+ {
2677
+ "type": "Control",
2678
+ "scope": "#/properties/kind",
2679
+ "name": "kind"
2680
+ },
2681
+ {
2682
+ "type": "Control",
2683
+ "scope": "#/properties/vatNumber",
2684
+ "name": "vatNumber"
2685
+ },
2686
+ {
2687
+ "type": "Control",
2688
+ "scope": "#/properties/notes",
2689
+ "name": "notes"
2690
+ }
2691
+ ]
2692
+ },
2693
+ "data": {
2694
+ "kind": "personal",
2695
+ "vatNumber": "BG123",
2696
+ "notes": "Retained notes"
2697
+ },
2698
+ "operations": [
2699
+ "personal to business to personal",
2700
+ "render at root and object Control detail",
2701
+ "render the ordered children view",
2702
+ "repeat a known slot reference"
2703
+ ]
2704
+ },
2705
+ "expected": {
2706
+ "knownSlotCount": 3,
2707
+ "personalSlotContent": [
2708
+ "kind",
2709
+ null,
2710
+ "notes"
2711
+ ],
2712
+ "businessSlotContent": [
2713
+ "kind",
2714
+ "vatNumber",
2715
+ "notes"
2716
+ ],
2717
+ "noNumericAliases": true,
2718
+ "knownInactiveMountsControl": false,
2719
+ "knownInactiveActivatesFallback": false,
2720
+ "knownInactiveEmitsUnknownSlot": false,
2721
+ "retainedEditorIdentityAndFocus": true,
2722
+ "retainedTextSelection": true,
2723
+ "originalValidationAndInactiveDataPreserved": true,
2724
+ "inactiveSlotContributesSectionBinding": false
2725
+ }
2726
+ },
2727
+ {
2728
+ "id": "conditional-template-explicit-numeric",
2729
+ "section": "13.5 / Conditional fields",
2730
+ "input": {
2731
+ "schema": {
2732
+ "type": "object",
2733
+ "properties": {
2734
+ "kind": {
2735
+ "type": "string",
2736
+ "enum": [
2737
+ "personal",
2738
+ "business"
2739
+ ]
2740
+ },
2741
+ "notes": {
2742
+ "type": "string"
2743
+ }
2744
+ },
2745
+ "if": {
2746
+ "properties": {
2747
+ "kind": {
2748
+ "const": "business"
2749
+ }
2750
+ },
2751
+ "required": [
2752
+ "kind"
2753
+ ]
2754
+ },
2755
+ "then": {
2756
+ "properties": {
2757
+ "vatNumber": {
2758
+ "type": "string",
2759
+ "minLength": 3
2760
+ }
2761
+ },
2762
+ "required": [
2763
+ "vatNumber",
2764
+ "notes"
2765
+ ]
2766
+ }
2767
+ },
2768
+ "uischema": {
2769
+ "type": "TemplateLayout",
2770
+ "lang": "ractive",
2771
+ "options": {
2772
+ "conditionalFields": true
2773
+ },
2774
+ "template": "<section><div data-kind>{{>0}}</div><div data-vat>{{>1}}</div><div data-notes>{{>2}}</div></section>",
2775
+ "elements": [
2776
+ {
2777
+ "type": "Control",
2778
+ "scope": "#/properties/kind",
2779
+ "name": "0"
2780
+ },
2781
+ {
2782
+ "type": "Control",
2783
+ "scope": "#/properties/vatNumber",
2784
+ "name": "1"
2785
+ },
2786
+ {
2787
+ "type": "Control",
2788
+ "scope": "#/properties/notes",
2789
+ "name": "2"
2790
+ }
2791
+ ]
2792
+ },
2793
+ "data": {
2794
+ "kind": "personal",
2795
+ "vatNumber": "BG123",
2796
+ "notes": "Retained notes"
2797
+ },
2798
+ "operations": [
2799
+ "personal to business to personal",
2800
+ "render at root and object Control detail",
2801
+ "render the ordered children view",
2802
+ "repeat a known slot reference"
2803
+ ]
2804
+ },
2805
+ "expected": {
2806
+ "knownSlotCount": 3,
2807
+ "personalSlotContent": [
2808
+ "kind",
2809
+ null,
2810
+ "notes"
2811
+ ],
2812
+ "businessSlotContent": [
2813
+ "kind",
2814
+ "vatNumber",
2815
+ "notes"
2816
+ ],
2817
+ "noNumericAliases": true,
2818
+ "knownInactiveMountsControl": false,
2819
+ "knownInactiveActivatesFallback": false,
2820
+ "knownInactiveEmitsUnknownSlot": false,
2821
+ "retainedEditorIdentityAndFocus": true,
2822
+ "retainedTextSelection": true,
2823
+ "originalValidationAndInactiveDataPreserved": true,
2824
+ "inactiveSlotContributesSectionBinding": false
2825
+ }
2826
+ },
2827
+ {
2828
+ "id": "conditional-template-missing-name",
2829
+ "section": "13.5 / Conditional fields",
2830
+ "input": {
2831
+ "knownNames": [
2832
+ "vatNumber",
2833
+ "notes"
2834
+ ],
2835
+ "inactiveNames": [
2836
+ "vatNumber"
2837
+ ],
2838
+ "references": [
2839
+ "vatNumber",
2840
+ "notes",
2841
+ "typo"
2842
+ ],
2843
+ "syntaxVariants": [
2844
+ "partial",
2845
+ "native Slot",
2846
+ "supported JSX expression",
2847
+ "supported JSX component"
2848
+ ]
2849
+ },
2850
+ "expected": {
2851
+ "vatNumber": "empty without fallback or unknown-slot diagnostic",
2852
+ "notes": "delegated field renderer",
2853
+ "typo": "normal profile unknown-name diagnostic/fallback",
2854
+ "undefinedComponentGloballyIgnored": false,
2855
+ "unsupportedSyntaxStillDiagnosed": true
2856
+ }
2857
+ },
2858
+ {
2859
+ "id": "conditional-template-ownership",
2860
+ "section": "Conditional fields",
2861
+ "input": {
2862
+ "entryTypes": [
2863
+ "TemplateLayout",
2864
+ "Template",
2865
+ "Slot"
2866
+ ],
2867
+ "global": true,
2868
+ "cases": [
2869
+ "root local true",
2870
+ "root local false",
2871
+ "descendant true below disabled owner",
2872
+ "registered layout resolved after projection",
2873
+ "nested object reuses a schema at a distinct data path"
2874
+ ]
2875
+ },
2876
+ "expected": {
2877
+ "rootTemplateCanOwnProjection": true,
2878
+ "entryLocalFalseWins": true,
2879
+ "descendantCannotOverrideOwner": true,
2880
+ "registeredLayoutInheritsProjection": true,
2881
+ "registeredInactiveOverrideDoesNotUseSlotFallback": true,
2882
+ "noNewObjectDataBinding": true,
2883
+ "schemaIdentityDoesNotMergeObjectBoundaries": true
2884
+ }
2885
+ },
2886
+ {
2887
+ "id": "native-input-original-text",
2888
+ "section": "Scalar controls and temporal editing",
2889
+ "input": {
2890
+ "cases": [
2891
+ "integer 1.9",
2892
+ "integer 9007199254740993",
2893
+ "integer 1e3",
2894
+ "maxLength:1 supplementary character",
2895
+ "IME intermediate text",
2896
+ "masked February 31",
2897
+ "unpadded months 2–9"
2898
+ ],
2899
+ "boundaries": [
2900
+ "control",
2901
+ "cell",
2902
+ "native picker"
2903
+ ]
2904
+ },
2905
+ "expected": {
2906
+ "fractionNeverTruncated": true,
2907
+ "unsafeDigitsNeverRoundedIntoCommit": true,
2908
+ "exponentNeverParsedAsPrefix": true,
2909
+ "lengthCountsCodePoints": true,
2910
+ "compositionNotPrematurelyCommitted": true,
2911
+ "impossibleDateNotNormalized": true,
2912
+ "validMonthDigitsRetained": true
2913
+ }
2914
+ },
2915
+ {
2916
+ "id": "pending-validity-without-data-change",
2917
+ "section": "Pending edits and validation",
2918
+ "input": {
2919
+ "cases": [
2920
+ "invalid local duration draft",
2921
+ "pending file read",
2922
+ "owner error publication",
2923
+ "command without blur",
2924
+ "clear during read",
2925
+ "nested independent form"
2926
+ ]
2927
+ },
2928
+ "expected": {
2929
+ "hostNotifiedWithoutDataEdit": true,
2930
+ "unresolvedDraftBlocksConsumption": true,
2931
+ "commandReadsFlushedCurrentData": true,
2932
+ "clearInvalidatesRead": true,
2933
+ "hostErrorsPreserved": true,
2934
+ "independentFormDoesNotInheritPending": true
2935
+ }
2936
+ },
2937
+ {
2938
+ "id": "template-lookup-ownership",
2939
+ "section": "Template and Slot",
2940
+ "input": {
2941
+ "cases": [
2942
+ "duplicate registry name",
2943
+ "duplicate caller child name",
2944
+ "literal constructor slot",
2945
+ "unfilled structural slot",
2946
+ "same-form same-path recursive expansion",
2947
+ "independent nested form reuse"
2948
+ ]
2949
+ },
2950
+ "expected": {
2951
+ "firstRegistryWins": true,
2952
+ "laterCallerChildWins": true,
2953
+ "duplicatesDiagnosed": true,
2954
+ "namesUseOwnKeys": true,
2955
+ "unfilledSlotCanUseFallback": true,
2956
+ "sameBoundaryRecursionTerminates": true,
2957
+ "independentFormReuseAllowed": true
2958
+ }
2959
+ },
2960
+ {
2961
+ "id": "literal-tree-selected-editor",
2962
+ "section": "Mixed tree editing",
2963
+ "input": {
2964
+ "keys": [
2965
+ "a.b",
2966
+ "",
2967
+ " renamed.key ",
2968
+ "constructor"
2969
+ ],
2970
+ "neighbor": {
2971
+ "a": {
2972
+ "b": "distinct value"
2973
+ }
2974
+ },
2975
+ "actions": [
2976
+ "select literal member",
2977
+ "edit selected detail",
2978
+ "rename with punctuation and spaces"
2979
+ ]
2980
+ },
2981
+ "expected": {
2982
+ "selectedValueUsesLiteralSegments": true,
2983
+ "nestedNeighborUnchanged": true,
2984
+ "emptySegmentNotDropped": true,
2985
+ "acceptedRenameNotTrimmed": true,
2986
+ "isolatedEditorRetainsConfiguration": true,
2987
+ "localReferenceContextPreserved": true,
2988
+ "schemaLookupUsesOwnProperties": true,
2989
+ "labelDoesNotInventRenamePermission": true
2990
+ }
2991
+ },
2992
+ {
2993
+ "id": "queued-edit-permission-change",
2994
+ "section": "Readonly and pending edits",
2995
+ "input": {
2996
+ "separateReadonlyFromDisabled": true,
2997
+ "actions": [
2998
+ "type without blur",
2999
+ "make readonly before debounce delivery",
3000
+ "wait for delivery or consume data"
3001
+ ]
3002
+ },
3003
+ "expected": {
3004
+ "notYetCommittedEditCancelled": true,
3005
+ "alreadyCommittedEditNotRolledBack": true,
3006
+ "noWriteThroughOldPermissions": true,
3007
+ "pendingStateCleared": true,
3008
+ "readonlyPresentationCapabilityDeclared": true
3009
+ }
3010
+ },
3011
+ {
3012
+ "id": "conditional-group-empty-region-identity",
3013
+ "section": "Conditional fields",
3014
+ "input": {
3015
+ "regions": [
3016
+ "header",
3017
+ "footer",
3018
+ "cover"
3019
+ ],
3020
+ "collapsible": [
3021
+ false,
3022
+ true
3023
+ ],
3024
+ "actions": [
3025
+ "focus a body editor and select text",
3026
+ "deactivate the last region field",
3027
+ "reactivate that field"
3028
+ ]
3029
+ },
3030
+ "expected": {
3031
+ "inactiveRegionControlsOmitted": true,
3032
+ "sameBodyEditorInstance": true,
3033
+ "focusSelectionAndDraftPreserved": true,
3034
+ "authoredSchemaUnchanged": true
3035
+ }
3036
+ },
3037
+ {
3038
+ "id": "conditional-projection-diagnostic-ownership",
3039
+ "section": "Conditional fields",
3040
+ "input": {
3041
+ "entryPoints": [
3042
+ "object Control",
3043
+ "object-context layout"
3044
+ ],
3045
+ "nestedSameObjectControl": true,
3046
+ "conditionCannotCompile": true,
3047
+ "independentObjectPaths": [
3048
+ "left",
3049
+ "right"
3050
+ ]
3051
+ },
3052
+ "expected": {
3053
+ "oneReportPerOwningProjection": true,
3054
+ "reuseDoesNotRepeatVisibleMessagesOrCallbacks": true,
3055
+ "independentPathsRetainSeparateFailures": true
3056
+ }
3057
+ },
3058
+ {
3059
+ "id": "core-readonly-compatibility-alias",
3060
+ "section": "15.1",
3061
+ "input": {
3062
+ "integration": "JSON Forms core",
3063
+ "cases": [
3064
+ {
3065
+ "config": {
3066
+ "readOnly": true
3067
+ },
3068
+ "options": {},
3069
+ "readonly": true
3070
+ },
3071
+ {
3072
+ "config": {},
3073
+ "options": {
3074
+ "readOnly": true
3075
+ },
3076
+ "readonly": true
3077
+ },
3078
+ {
3079
+ "config": {},
3080
+ "options": {
3081
+ "readonly": false,
3082
+ "readOnly": true
3083
+ },
3084
+ "readonly": false
3085
+ },
3086
+ {
3087
+ "config": {
3088
+ "readonly": false,
3089
+ "readOnly": true
3090
+ },
3091
+ "options": {},
3092
+ "readonly": false
3093
+ },
3094
+ {
3095
+ "config": {
3096
+ "readonly": true
3097
+ },
3098
+ "options": {
3099
+ "readOnly": false
3100
+ },
3101
+ "readonly": false
3102
+ }
3103
+ ]
3104
+ },
3105
+ "expected": {
3106
+ "coreAliasNotStripped": true,
3107
+ "canonicalBooleanWinsWithinSource": true,
3108
+ "sourcePrecedenceUnchanged": true,
3109
+ "schemaKeywordRemainsReadOnly": true,
3110
+ "otherIntegrationsDeclareAliasCapability": true
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-body-indicators",
3244
+ "section": "8.1",
3245
+ "input": {
3246
+ "uischema": {
3247
+ "type": "Group",
3248
+ "options": {
3249
+ "showDataIndicator": true,
3250
+ "showValidationIndicator": true
3251
+ },
3252
+ "elements": [
3253
+ {
3254
+ "type": "Control",
3255
+ "scope": "#/properties/regionOnly",
3256
+ "slot": "header"
3257
+ },
3258
+ {
3259
+ "type": "Control",
3260
+ "scope": "#/properties/body"
3261
+ }
3262
+ ]
3263
+ },
3264
+ "data": {
3265
+ "regionOnly": "present"
3266
+ },
3267
+ "errors": [
3268
+ {
3269
+ "instancePath": "/regionOnly",
3270
+ "keyword": "pattern",
3271
+ "message": "invalid region value"
3272
+ }
3273
+ ]
3274
+ },
3275
+ "expected": {
3276
+ "groupDataIndicator": false,
3277
+ "groupDescendantValidationIndicator": false,
3278
+ "regionControlRetainsLocalError": true,
3279
+ "originalDocumentErrorsUnchanged": true,
3280
+ "bodyValueOrErrorIncludedWhenAdded": true
3281
+ }
3282
+ },
3283
+ {
3284
+ "id": "group-child-slot-visibility",
3285
+ "section": "8.1",
3286
+ "input": {
3287
+ "uischema": {
3288
+ "type": "Group",
3289
+ "label": "Fallback",
3290
+ "options": {
3291
+ "collapsible": true
3292
+ },
3293
+ "elements": [
3294
+ {
3295
+ "type": "VerticalLayout",
3296
+ "slot": "header",
3297
+ "rule": {
3298
+ "effect": "SHOW",
3299
+ "condition": {
3300
+ "scope": "#/properties/showHeader",
3301
+ "schema": {
3302
+ "const": true
3303
+ }
3304
+ }
3305
+ },
3306
+ "elements": [
3307
+ {
3308
+ "type": "Label",
3309
+ "text": "Custom heading"
3310
+ }
3311
+ ]
3312
+ },
3313
+ {
3314
+ "type": "Control",
3315
+ "scope": "#/properties/notes"
3316
+ }
3317
+ ]
3318
+ },
3319
+ "actions": [
3320
+ "focus notes and select text",
3321
+ "hide header through external data update",
3322
+ "show header again",
3323
+ "collapse Group"
3324
+ ]
3325
+ },
3326
+ "expected": {
3327
+ "hiddenHeaderNeverBecomesBody": true,
3328
+ "hiddenHeaderUsesGroupLabel": true,
3329
+ "visibleHeaderUsesResolvedLabel": true,
3330
+ "bodyFocusSelectionDraftAndPendingWriteRetained": true,
3331
+ "collapseKeepsHeaderVisibleAndHidesBodyAndFooter": true,
3332
+ "dataUnchangedByPlacementOrCollapse": true
1600
3333
  }
1601
3334
  }
1602
3335
  ]