@chobantonov/jsonforms-extended-spec 0.0.0-stage → 0.3.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/LICENSE +21 -0
- package/README.md +126 -2
- package/conformance/authoring.json +2680 -0
- package/conformance/behavior.json +1602 -0
- package/conformance/config-consumption.json +1542 -0
- package/conformance/expected-invalid.json +20 -0
- package/docs/audit.md +150 -0
- package/docs/conditional-fields.md +122 -0
- package/docs/draft-07-visual-support.md +43 -0
- package/docs/external-resources-proposal.md +536 -0
- package/docs/implementation-guide.md +233 -0
- package/docs/implementation-pitfalls.md +968 -0
- package/docs/implementation-web-typescript.md +41 -0
- package/docs/renderer-and-demo.md +1347 -0
- package/docs/renderer-selection.md +99 -0
- package/docs/spec.md +8470 -0
- package/docs/todo.md +166 -0
- package/examples/README.md +127 -0
- package/examples/additional-errors/README.md +176 -0
- package/examples/additional-errors/config.json +3 -0
- package/examples/additional-errors/data.json +11 -0
- package/examples/additional-errors/schema.json +56 -0
- package/examples/additional-errors/translations.json +64 -0
- package/examples/additional-errors/uischema.json +158 -0
- package/examples/additional-items-pagination/README.md +8 -0
- package/examples/additional-items-pagination/config.json +10 -0
- package/examples/additional-items-pagination/data.json +22 -0
- package/examples/additional-items-pagination/schema.json +30 -0
- package/examples/additional-items-pagination/translations.json +16 -0
- package/examples/additional-items-pagination/uischema.json +39 -0
- package/examples/additional-properties/README.md +203 -0
- package/examples/additional-properties/config.json +5 -0
- package/examples/additional-properties/data.json +31 -0
- package/examples/additional-properties/schema.json +78 -0
- package/examples/additional-properties/translations.json +80 -0
- package/examples/additional-properties/uischema.json +104 -0
- package/examples/ag-grid/README.md +62 -0
- package/examples/ag-grid/config.json +14 -0
- package/examples/ag-grid/data.json +124 -0
- package/examples/ag-grid/schema.json +48 -0
- package/examples/ag-grid/translations.json +58 -0
- package/examples/ag-grid/uischema.json +671 -0
- package/examples/array-choices/README.md +150 -0
- package/examples/array-choices/config.json +4 -0
- package/examples/array-choices/data.json +10 -0
- package/examples/array-choices/schema.json +68 -0
- package/examples/array-choices/translations.json +64 -0
- package/examples/array-choices/uischema.json +97 -0
- package/examples/array-controls/README.md +237 -0
- package/examples/array-controls/config.json +4 -0
- package/examples/array-controls/data.json +147 -0
- package/examples/array-controls/schema.json +374 -0
- package/examples/array-controls/translations.json +186 -0
- package/examples/array-controls/uischema.json +685 -0
- package/examples/array-detail-modes/README.md +11 -0
- package/examples/array-detail-modes/data.json +38 -0
- package/examples/array-detail-modes/schema.json +89 -0
- package/examples/array-detail-modes/translations.json +36 -0
- package/examples/array-detail-modes/uischema.json +73 -0
- package/examples/array-detail-modes/uischemas.d.mts +2 -0
- package/examples/array-detail-modes/uischemas.json +15 -0
- package/examples/boolean-controls/README.md +109 -0
- package/examples/boolean-controls/config.json +3 -0
- package/examples/boolean-controls/data.json +27 -0
- package/examples/boolean-controls/schema.json +98 -0
- package/examples/boolean-controls/translations.json +94 -0
- package/examples/boolean-controls/uischema.json +126 -0
- package/examples/button-actions/README.md +259 -0
- package/examples/button-actions/config.json +7 -0
- package/examples/button-actions/data.json +5 -0
- package/examples/button-actions/host.mjs +14 -0
- package/examples/button-actions/schema.json +20 -0
- package/examples/button-actions/translations.json +60 -0
- package/examples/button-actions/uischema.json +179 -0
- package/examples/catalog.json +634 -0
- package/examples/categorization/README.md +132 -0
- package/examples/categorization/config.json +7 -0
- package/examples/categorization/data.json +8 -0
- package/examples/categorization/schema.json +29 -0
- package/examples/categorization/translations.json +72 -0
- package/examples/categorization/uischema.json +288 -0
- package/examples/choice-controls/README.md +136 -0
- package/examples/choice-controls/config.json +10 -0
- package/examples/choice-controls/data.json +61 -0
- package/examples/choice-controls/schema.json +406 -0
- package/examples/choice-controls/translations.json +154 -0
- package/examples/choice-controls/uischema.json +575 -0
- package/examples/choice-controls/uischemas.d.mts +2 -0
- package/examples/choice-controls/uischemas.json +16 -0
- package/examples/code-editor/README.md +74 -0
- package/examples/code-editor/data.json +8 -0
- package/examples/code-editor/schema.json +28 -0
- package/examples/code-editor/translations.json +20 -0
- package/examples/code-editor/uischema.json +77 -0
- package/examples/collection-pagination/README.md +5 -0
- package/examples/collection-pagination/config.json +1 -0
- package/examples/collection-pagination/data.json +64 -0
- package/examples/collection-pagination/schema.json +23 -0
- package/examples/collection-pagination/translations.json +14 -0
- package/examples/collection-pagination/uischema.json +14 -0
- package/examples/color-control/README.md +154 -0
- package/examples/color-control/config.json +7 -0
- package/examples/color-control/data.json +11 -0
- package/examples/color-control/schema.json +61 -0
- package/examples/color-control/translations.json +76 -0
- package/examples/color-control/uischema.json +106 -0
- package/examples/combinators/README.md +223 -0
- package/examples/combinators/config.json +9 -0
- package/examples/combinators/data.json +23 -0
- package/examples/combinators/schema.json +232 -0
- package/examples/combinators/translations.json +178 -0
- package/examples/combinators/uischema.json +158 -0
- package/examples/conditional-fields/README.md +27 -0
- package/examples/conditional-fields/config.json +5 -0
- package/examples/conditional-fields/data.json +7 -0
- package/examples/conditional-fields/schema.json +59 -0
- package/examples/conditional-fields/translations.json +32 -0
- package/examples/conditional-fields/uischema.json +131 -0
- package/examples/container-validation-indicator/README.md +187 -0
- package/examples/container-validation-indicator/config.json +9 -0
- package/examples/container-validation-indicator/data.json +68 -0
- package/examples/container-validation-indicator/schema.json +222 -0
- package/examples/container-validation-indicator/translations.json +120 -0
- package/examples/container-validation-indicator/uischema.json +98 -0
- package/examples/cron-control/README.md +155 -0
- package/examples/cron-control/data.json +15 -0
- package/examples/cron-control/schema.json +72 -0
- package/examples/cron-control/translations.json +80 -0
- package/examples/cron-control/uischema.json +91 -0
- package/examples/destructive-confirmation/README.md +210 -0
- package/examples/destructive-confirmation/config.json +17 -0
- package/examples/destructive-confirmation/data.json +86 -0
- package/examples/destructive-confirmation/schema.json +204 -0
- package/examples/destructive-confirmation/translations.json +112 -0
- package/examples/destructive-confirmation/uischema.json +105 -0
- package/examples/draft-07-metaschema/README.md +11 -0
- package/examples/draft-07-metaschema/config.json +3 -0
- package/examples/draft-07-metaschema/data.json +25 -0
- package/examples/draft-07-metaschema/schema.json +172 -0
- package/examples/draft-07-metaschema/translations.json +10 -0
- package/examples/draft-07-metaschema/uischema.json +14 -0
- package/examples/dynamic-playground/README.md +95 -0
- package/examples/dynamic-playground/config.json +8 -0
- package/examples/dynamic-playground/configuration.json +152 -0
- package/examples/dynamic-playground/data.json +15 -0
- package/examples/dynamic-playground/dynamic-uischema.json +379 -0
- package/examples/dynamic-playground/host.mjs +37 -0
- package/examples/dynamic-playground/schema.json +48 -0
- package/examples/dynamic-playground/translations.json +76 -0
- package/examples/dynamic-playground/uischema.json +36 -0
- package/examples/editor-details/README.md +10 -0
- package/examples/editor-details/data.json +18 -0
- package/examples/editor-details/schema.json +49 -0
- package/examples/editor-details/translations.json +28 -0
- package/examples/editor-details/uischema.json +53 -0
- package/examples/editor-details/uischemas.d.mts +2 -0
- package/examples/editor-details/uischemas.json +14 -0
- package/examples/file-control/README.md +108 -0
- package/examples/file-control/data.json +28 -0
- package/examples/file-control/schema.json +89 -0
- package/examples/file-control/translations.json +46 -0
- package/examples/file-control/uischema.json +152 -0
- package/examples/group-layout/README.md +149 -0
- package/examples/group-layout/config.json +10 -0
- package/examples/group-layout/data.json +9 -0
- package/examples/group-layout/schema.json +51 -0
- package/examples/group-layout/translations.json +62 -0
- package/examples/group-layout/uischema.json +249 -0
- package/examples/index.d.ts +17 -0
- package/examples/index.js +69 -0
- package/examples/input-adornments/README.md +68 -0
- package/examples/input-adornments/data.json +41 -0
- package/examples/input-adornments/schema.json +207 -0
- package/examples/input-adornments/translations.json +106 -0
- package/examples/input-adornments/uischema.json +695 -0
- package/examples/job-application/README.md +23 -0
- package/examples/job-application/config.json +10 -0
- package/examples/job-application/data.json +68 -0
- package/examples/job-application/schema.json +196 -0
- package/examples/job-application/translations.json +388 -0
- package/examples/job-application/uischema.json +218 -0
- package/examples/job-application/uischemas.json +153 -0
- package/examples/json-editor/README.md +28 -0
- package/examples/json-editor/schema.json +1 -0
- package/examples/json-editor/translations.json +10 -0
- package/examples/json-editor/uischema.json +16 -0
- package/examples/json-inference/README.md +33 -0
- package/examples/json-inference/translations.json +10 -0
- package/examples/json-inference/uischema.json +16 -0
- package/examples/kitchen-sink/README.md +86 -0
- package/examples/kitchen-sink/config.json +14 -0
- package/examples/kitchen-sink/data.json +263 -0
- package/examples/kitchen-sink/invalid-data.json +263 -0
- package/examples/kitchen-sink/schema.json +515 -0
- package/examples/kitchen-sink/translations.json +270 -0
- package/examples/kitchen-sink/uischema.json +722 -0
- package/examples/label-interpolation/README.md +241 -0
- package/examples/label-interpolation/config.json +14 -0
- package/examples/label-interpolation/data.json +13 -0
- package/examples/label-interpolation/schema.json +64 -0
- package/examples/label-interpolation/translations.json +94 -0
- package/examples/label-interpolation/uischema.json +379 -0
- package/examples/layout-sizing/README.md +162 -0
- package/examples/layout-sizing/config.json +10 -0
- package/examples/layout-sizing/data.json +14 -0
- package/examples/layout-sizing/schema.json +58 -0
- package/examples/layout-sizing/translations.json +42 -0
- package/examples/layout-sizing/uischema.json +558 -0
- package/examples/markup-label/README.md +109 -0
- package/examples/markup-label/config.json +16 -0
- package/examples/markup-label/data.json +5 -0
- package/examples/markup-label/schema.json +24 -0
- package/examples/markup-label/translations.json +40 -0
- package/examples/markup-label/uischema.json +149 -0
- package/examples/mixed-control/README.md +164 -0
- package/examples/mixed-control/config.json +11 -0
- package/examples/mixed-control/data.json +70 -0
- package/examples/mixed-control/schema.json +221 -0
- package/examples/mixed-control/translations.json +158 -0
- package/examples/mixed-control/uischema.json +211 -0
- package/examples/null-control/README.md +111 -0
- package/examples/null-control/config.json +4 -0
- package/examples/null-control/data.json +6 -0
- package/examples/null-control/schema.json +36 -0
- package/examples/null-control/translations.json +42 -0
- package/examples/null-control/uischema.json +56 -0
- package/examples/numeric-controls/README.md +94 -0
- package/examples/numeric-controls/config.json +4 -0
- package/examples/numeric-controls/data.json +8 -0
- package/examples/numeric-controls/schema.json +52 -0
- package/examples/numeric-controls/translations.json +56 -0
- package/examples/numeric-controls/uischema.json +77 -0
- package/examples/object-control/README.md +220 -0
- package/examples/object-control/config.json +4 -0
- package/examples/object-control/data.json +62 -0
- package/examples/object-control/schema.json +252 -0
- package/examples/object-control/translations.json +160 -0
- package/examples/object-control/uischema.json +275 -0
- package/examples/object-control/uischemas.d.mts +2 -0
- package/examples/object-control/uischemas.json +59 -0
- package/examples/password-control/README.md +119 -0
- package/examples/password-control/config.json +3 -0
- package/examples/password-control/data.json +18 -0
- package/examples/password-control/schema.json +65 -0
- package/examples/password-control/translations.json +64 -0
- package/examples/password-control/uischema.json +94 -0
- package/examples/pre-touch-errors/README.md +176 -0
- package/examples/pre-touch-errors/config.json +4 -0
- package/examples/pre-touch-errors/data.json +5 -0
- package/examples/pre-touch-errors/schema.json +56 -0
- package/examples/pre-touch-errors/translations.json +68 -0
- package/examples/pre-touch-errors/uischema.json +85 -0
- package/examples/presentation/README.md +148 -0
- package/examples/presentation/config.json +9 -0
- package/examples/presentation/data.json +6 -0
- package/examples/presentation/schema.json +21 -0
- package/examples/presentation/translations.json +64 -0
- package/examples/presentation/uischema.json +210 -0
- package/examples/property-pagination/README.md +5 -0
- package/examples/property-pagination/config.json +1 -0
- package/examples/property-pagination/data.json +17 -0
- package/examples/property-pagination/schema.json +14 -0
- package/examples/property-pagination/translations.json +10 -0
- package/examples/property-pagination/uischema.json +24 -0
- package/examples/recursive-tree/README.md +49 -0
- package/examples/recursive-tree/config.json +1 -0
- package/examples/recursive-tree/data.json +40 -0
- package/examples/recursive-tree/schema.json +89 -0
- package/examples/recursive-tree/translations.json +42 -0
- package/examples/recursive-tree/uischema.json +84 -0
- package/examples/recursive-tree/uischemas.d.mts +2 -0
- package/examples/recursive-tree/uischemas.json +51 -0
- package/examples/split-layout/README.md +123 -0
- package/examples/split-layout/config.json +3 -0
- package/examples/split-layout/data.json +13 -0
- package/examples/split-layout/schema.json +50 -0
- package/examples/split-layout/translations.json +50 -0
- package/examples/split-layout/uischema.json +204 -0
- package/examples/string-controls/README.md +159 -0
- package/examples/string-controls/config.json +5 -0
- package/examples/string-controls/data.json +13 -0
- package/examples/string-controls/schema.json +70 -0
- package/examples/string-controls/translations.json +76 -0
- package/examples/string-controls/uischema.json +148 -0
- package/examples/table-row-details/README.md +69 -0
- package/examples/table-row-details/config.json +7 -0
- package/examples/table-row-details/data.json +280 -0
- package/examples/table-row-details/schema.json +61 -0
- package/examples/table-row-details/translations.json +56 -0
- package/examples/table-row-details/uischema.json +1303 -0
- package/examples/template-layout/README.md +250 -0
- package/examples/template-layout/config.json +9 -0
- package/examples/template-layout/data.json +20 -0
- package/examples/template-layout/host.mjs +13 -0
- package/examples/template-layout/schema.json +48 -0
- package/examples/template-layout/translations.json +70 -0
- package/examples/template-layout/uischema.json +177 -0
- package/examples/template-slots/README.md +19 -0
- package/examples/template-slots/data.json +4 -0
- package/examples/template-slots/schema.json +11 -0
- package/examples/template-slots/translations.json +26 -0
- package/examples/template-slots/uischema.json +47 -0
- package/examples/template-slots/uischemas.d.mts +2 -0
- package/examples/template-slots/uischemas.json +56 -0
- package/examples/temporal-controls/README.md +325 -0
- package/examples/temporal-controls/data.json +44 -0
- package/examples/temporal-controls/schema.json +208 -0
- package/examples/temporal-controls/translations.json +156 -0
- package/examples/temporal-controls/uischema.json +297 -0
- package/examples/tree-max-depth/README.md +5 -0
- package/examples/tree-max-depth/config.json +3 -0
- package/examples/tree-max-depth/data.json +31 -0
- package/examples/tree-max-depth/schema.json +258 -0
- package/examples/tree-max-depth/translations.json +42 -0
- package/examples/tree-max-depth/uischema.json +16 -0
- package/examples/tree-max-depth/uischemas.d.mts +2 -0
- package/examples/tree-max-depth/uischemas.json +50 -0
- package/examples/tuple-control/README.md +335 -0
- package/examples/tuple-control/config.json +4 -0
- package/examples/tuple-control/data.json +61 -0
- package/examples/tuple-control/schema.json +218 -0
- package/examples/tuple-control/translations.json +142 -0
- package/examples/tuple-control/uischema.json +128 -0
- package/examples/tuple-control/uischemas.d.mts +2 -0
- package/examples/tuple-control/uischemas.json +125 -0
- package/examples/validator-profile/README.md +197 -0
- package/examples/validator-profile/config.json +9 -0
- package/examples/validator-profile/data.json +16 -0
- package/examples/validator-profile/schema.json +139 -0
- package/examples/validator-profile/translations.json +34 -0
- package/examples/validator-profile/uischema.json +59 -0
- package/package.json +83 -3
- package/provenance.json +140 -0
- package/schemas/README.md +82 -0
- package/schemas/example.schema.json +37 -0
- package/schemas/jsonforms-config.schema.json +427 -0
- package/schemas/jsonforms-dynamic-uischema.schema.json +220 -0
- package/schemas/jsonforms-extended-config.schema.json +332 -0
- package/schemas/jsonforms-extended-uischema.schema.json +1932 -0
- package/schemas/jsonforms-rule.schema.json +104 -0
- package/schemas/jsonforms-uischema.schema.json +1434 -0
- package/typescript/README.md +546 -0
- package/typescript/lib/authoring/cssLength.d.ts +33 -0
- package/typescript/lib/authoring/cssLength.js +25 -0
- package/typescript/lib/authoring/dynamic.d.ts +73 -0
- package/typescript/lib/authoring/dynamic.js +8 -0
- package/typescript/lib/authoring/forSchema.d.ts +385 -0
- package/typescript/lib/authoring/forSchema.js +84 -0
- package/typescript/lib/authoring/schemaTypes.d.ts +111 -0
- package/typescript/lib/authoring/schemaTypes.js +15 -0
- package/typescript/lib/index.d.ts +4 -0
- package/typescript/lib/index.js +20 -0
- package/typescript/package.json +1 -0
- package/typescript/src/authoring/cssLength.ts +79 -0
- package/typescript/src/authoring/dynamic.ts +96 -0
- package/typescript/src/authoring/forSchema.ts +428 -0
- package/typescript/src/authoring/schemaTypes.ts +143 -0
- package/typescript/src/index.ts +4 -0
- package/typescript/test/schemaContract.test.ts +638 -0
- package/typescript/test/tsconfig.json +10 -0
- package/typescript/test/typedAuthoring.test.ts +151 -0
- package/typescript/test/typedAuthoringCoverage.test.ts +178 -0
- package/typescript/test/typedAuthoringCssLength.test.ts +81 -0
- package/typescript/test/typedAuthoringNames.test.ts +90 -0
- package/typescript/test/typedDynamic.test.ts +88 -0
- package/typescript/tsconfig.json +15 -0
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
{
|
|
2
|
+
"en": {
|
|
3
|
+
"mixed.typeLabel": "Value type",
|
|
4
|
+
"mixed.typePlaceholder": "Select a type",
|
|
5
|
+
"mixed.required": "Required",
|
|
6
|
+
"mixed.treeLabel": "Value structure",
|
|
7
|
+
"mixed.rename": "Rename",
|
|
8
|
+
"mixed.delete": "Delete",
|
|
9
|
+
"control.clearValue": "Clear value",
|
|
10
|
+
"error.type": "This value does not match any type this field allows.",
|
|
11
|
+
"featureNavigation.section1.label": "Scalar types",
|
|
12
|
+
"featureNavigation.section2.label": "Null and invalid values",
|
|
13
|
+
"featureNavigation.section3.label": "Structured values",
|
|
14
|
+
"featureNavigation.section4.label": "Array items",
|
|
15
|
+
"mixedComposition.navigation.label": "Type and composition",
|
|
16
|
+
"mixedComposition.intro.text": "Choose a type before editing its alternatives. The overlapping text alternatives intentionally start invalid.",
|
|
17
|
+
"mixedComposition.composedScalar.label": "Composed scalar",
|
|
18
|
+
"mixedComposition.composedObject.label": "Composed object",
|
|
19
|
+
"mixedComposition.overlappingChoice.label": "Overlapping alternatives",
|
|
20
|
+
"mixedComposition.textBranch.label": "Text (at least three characters)",
|
|
21
|
+
"mixedComposition.textBranch.title": "Text (at least three characters)",
|
|
22
|
+
"mixedComposition.integerBranch.label": "Integer (at least ten)",
|
|
23
|
+
"mixedComposition.integerBranch.title": "Integer (at least ten)",
|
|
24
|
+
"mixedComposition.name.label": "Name",
|
|
25
|
+
"mixedComposition.name.title": "Name",
|
|
26
|
+
"mixedComposition.shortBranch.label": "Short text",
|
|
27
|
+
"mixedComposition.shortBranch.title": "Short text",
|
|
28
|
+
"mixedComposition.longBranch.label": "Long text",
|
|
29
|
+
"mixedComposition.longBranch.title": "Long text",
|
|
30
|
+
"mixedComposition.numberBranch.label": "Integer",
|
|
31
|
+
"mixedComposition.numberBranch.title": "Integer",
|
|
32
|
+
"mixedCells.navigation.label": "Table cells",
|
|
33
|
+
"mixedCells.rows.label": "Mixed values in cells",
|
|
34
|
+
"mixedCells.name.label": "Entry",
|
|
35
|
+
"mixedCells.value.label": "Value",
|
|
36
|
+
"mixedCells.intro.text": "Edit mixed values through the Value cells. Try switching 2 between Integer and Number, then explore object and array values. The final row deliberately has a missing required value.",
|
|
37
|
+
"branchFeedback.navigation.label": "Branch feedback",
|
|
38
|
+
"branchFeedback.intro.text": "Both editors edit the same value, initially \"Longer text\". In each editor, select the Short text tab (maximum 5 characters). Only the first should show a length error: the second disables active-branch feedback. The value remains valid for the document because Long text accepts it (minimum 3 characters). Switch back to Long text to clear the first error. Other tabs contain unrelated deliberate errors.",
|
|
39
|
+
"branchFeedback.enabled.label": "Global branch validation enabled",
|
|
40
|
+
"branchFeedback.disabled.label": "Local branch validation disabled",
|
|
41
|
+
"mixedExample/properties/label.label": "Label",
|
|
42
|
+
"mixedExample/properties/label.description": "The selector starts on the type the value already has.",
|
|
43
|
+
"mixedExample/properties/quantity.label": "Quantity",
|
|
44
|
+
"mixedExample/properties/quantity.description": "An integer is admissible under number.",
|
|
45
|
+
"mixedExample/properties/surcharge.label": "Surcharge",
|
|
46
|
+
"mixedExample/properties/surcharge.description": "Explicit JSON null, which is not the same as no selection.",
|
|
47
|
+
"mixedExample/properties/reference.label": "Reference",
|
|
48
|
+
"mixedExample/properties/reference.description": "Absent: no type is selected and no value editor is shown.",
|
|
49
|
+
"mixedExample/properties/priority.label": "Priority",
|
|
50
|
+
"mixedExample/properties/priority.description": "Holds a value the schema does not admit.",
|
|
51
|
+
"mixedExample/properties/payload.label": "Payload",
|
|
52
|
+
"mixedExample/properties/payload.description": "Object and array values open the structure workspace.",
|
|
53
|
+
"mixedExample/properties/anything.label": "Anything",
|
|
54
|
+
"mixedExample/properties/anything.description": "An unconstrained schema: every JSON type is offered.",
|
|
55
|
+
"mixedExample/properties/assignment.label": "Project phases",
|
|
56
|
+
"mixedExample/properties/assignment.description": "A tuple with an open tail; trailing values are mixed.",
|
|
57
|
+
"mixedExample/properties/assignment/items/0.label": "Origin",
|
|
58
|
+
"mixedExample/properties/composedScalar.label": "Composed scalar",
|
|
59
|
+
"mixedExample/properties/composedObject.label": "Composed object",
|
|
60
|
+
"mixedExample/properties/overlappingChoice.label": "Overlapping alternatives",
|
|
61
|
+
"mixedExample/properties/branchFeedback.label": "Branch feedback",
|
|
62
|
+
"mixedExample/properties/branchFeedback/anyOf/0.label": "Short text",
|
|
63
|
+
"mixedExample/properties/branchFeedback/anyOf/1.label": "Long text",
|
|
64
|
+
"branchFeedback.value.label": "Branch feedback",
|
|
65
|
+
"branchFeedback.value.title": "Branch feedback",
|
|
66
|
+
"branchFeedback.text.label": "Text",
|
|
67
|
+
"branchFeedback.text.title": "Text",
|
|
68
|
+
"branchFeedback.shortBranch.label": "Short text",
|
|
69
|
+
"branchFeedback.shortBranch.title": "Short text",
|
|
70
|
+
"branchFeedback.longBranch.label": "Long text",
|
|
71
|
+
"branchFeedback.longBranch.title": "Long text",
|
|
72
|
+
"mixedExampleUI/elements/0/elements/0/elements/0.text": "A mixed value carries its own type. The selector says which, the editor beside it says what.",
|
|
73
|
+
"mixedExampleUI/elements/0/elements/1/elements/0.text": "Null, absent, and a value the schema refuses",
|
|
74
|
+
"mixedExampleUI/elements/0/elements/2/elements/0.text": "Compare nested fields and tree navigation below. Both editors update the same payload.",
|
|
75
|
+
"mixedExampleUI/elements/0/elements/2/elements/1.label": "Nested fields",
|
|
76
|
+
"mixedExampleUI/elements/0/elements/2/elements/2.label": "Tree navigation",
|
|
77
|
+
"mixedExampleUI/elements/0/elements/2/elements/4.label": "JSON code",
|
|
78
|
+
"mixedExampleUI/elements/0/elements/3/elements/0.text": "Mixed values inside an array"
|
|
79
|
+
},
|
|
80
|
+
"bg": {
|
|
81
|
+
"mixed.typeLabel": "Тип на стойността",
|
|
82
|
+
"mixed.typePlaceholder": "Изберете тип",
|
|
83
|
+
"mixed.required": "Задължително",
|
|
84
|
+
"mixed.treeLabel": "Структура на стойността",
|
|
85
|
+
"mixed.rename": "Преименуване",
|
|
86
|
+
"mixed.delete": "Изтриване",
|
|
87
|
+
"control.clearValue": "Изчистване на стойността",
|
|
88
|
+
"error.type": "Тази стойност не съответства на нито един позволен тип.",
|
|
89
|
+
"featureNavigation.section1.label": "Скаларни типове",
|
|
90
|
+
"featureNavigation.section2.label": "Null и невалидни стойности",
|
|
91
|
+
"featureNavigation.section3.label": "Структурирани стойности",
|
|
92
|
+
"featureNavigation.section4.label": "Елементи на масив",
|
|
93
|
+
"mixedComposition.navigation.label": "Тип и композиция",
|
|
94
|
+
"mixedComposition.intro.text": "Изберете тип преди редактиране на алтернативите. Припокриващите се текстови алтернативи започват с невалидна стойност.",
|
|
95
|
+
"mixedComposition.composedScalar.label": "Скаларна композиция",
|
|
96
|
+
"mixedComposition.composedObject.label": "Обектна композиция",
|
|
97
|
+
"mixedComposition.overlappingChoice.label": "Припокриващи се алтернативи",
|
|
98
|
+
"mixedComposition.textBranch.label": "Текст (поне три знака)",
|
|
99
|
+
"mixedComposition.textBranch.title": "Текст (поне три знака)",
|
|
100
|
+
"mixedComposition.integerBranch.label": "Цяло число (поне десет)",
|
|
101
|
+
"mixedComposition.integerBranch.title": "Цяло число (поне десет)",
|
|
102
|
+
"mixedComposition.name.label": "Име",
|
|
103
|
+
"mixedComposition.name.title": "Име",
|
|
104
|
+
"mixedComposition.shortBranch.label": "Кратък текст",
|
|
105
|
+
"mixedComposition.shortBranch.title": "Кратък текст",
|
|
106
|
+
"mixedComposition.longBranch.label": "Дълъг текст",
|
|
107
|
+
"mixedComposition.longBranch.title": "Дълъг текст",
|
|
108
|
+
"mixedComposition.numberBranch.label": "Цяло число",
|
|
109
|
+
"mixedComposition.numberBranch.title": "Цяло число",
|
|
110
|
+
"mixedCells.navigation.label": "Клетки в таблица",
|
|
111
|
+
"mixedCells.rows.label": "Смесени стойности в клетки",
|
|
112
|
+
"mixedCells.name.label": "Запис",
|
|
113
|
+
"mixedCells.value.label": "Стойност",
|
|
114
|
+
"mixedCells.intro.text": "Редактирайте смесените стойности чрез клетките Стойност. Превключете 2 между цяло число и число, след което разгледайте обектите и масивите. В последния ред умишлено липсва задължителна стойност.",
|
|
115
|
+
"branchFeedback.navigation.label": "Проверка на клона",
|
|
116
|
+
"branchFeedback.intro.text": "Двата редактора променят една и съща стойност, първоначално \"Longer text\". Във всеки изберете раздела Кратък текст (до 5 знака). Само първият трябва да показва грешка за дължината: вторият изключва проверката на активния клон. Стойността остава валидна за документа, защото Дълъг текст я приема (поне 3 знака). Върнете се към Дълъг текст, за да изчистите първата грешка. Другите раздели съдържат отделни умишлени грешки.",
|
|
117
|
+
"branchFeedback.enabled.label": "Глобалната проверка на клона е включена",
|
|
118
|
+
"branchFeedback.disabled.label": "Локалната проверка на клона е изключена",
|
|
119
|
+
"mixedExample/properties/label.label": "Етикет",
|
|
120
|
+
"mixedExample/properties/label.description": "Първоначално е избран типът на съществуващата стойност.",
|
|
121
|
+
"mixedExample/properties/quantity.label": "Количество",
|
|
122
|
+
"mixedExample/properties/quantity.description": "Цяло число е допустимо и за типа число.",
|
|
123
|
+
"mixedExample/properties/surcharge.label": "Доплащане",
|
|
124
|
+
"mixedExample/properties/surcharge.description": "Изрична JSON стойност null, която се различава от липсата на избор.",
|
|
125
|
+
"mixedExample/properties/reference.label": "Референция",
|
|
126
|
+
"mixedExample/properties/reference.description": "Липсваща стойност: няма избран тип и не се показва редактор.",
|
|
127
|
+
"mixedExample/properties/priority.label": "Приоритет",
|
|
128
|
+
"mixedExample/properties/priority.description": "Съдържа стойност, която схемата не допуска.",
|
|
129
|
+
"mixedExample/properties/payload.label": "Данни",
|
|
130
|
+
"mixedExample/properties/payload.description": "Обектите и масивите отварят редактора на структурата.",
|
|
131
|
+
"mixedExample/properties/anything.label": "Произволна стойност",
|
|
132
|
+
"mixedExample/properties/anything.description": "Схема без ограничения: предлагат се всички JSON типове.",
|
|
133
|
+
"mixedExample/properties/assignment.label": "Етапи на проекта",
|
|
134
|
+
"mixedExample/properties/assignment.description": "Кортеж с разрешени допълнителни елементи със смесени типове.",
|
|
135
|
+
"mixedExample/properties/assignment/items/0.label": "Начална точка",
|
|
136
|
+
"mixedExample/properties/composedScalar.label": "Скаларна композиция",
|
|
137
|
+
"mixedExample/properties/composedObject.label": "Обектна композиция",
|
|
138
|
+
"mixedExample/properties/overlappingChoice.label": "Припокриващи се алтернативи",
|
|
139
|
+
"mixedExample/properties/branchFeedback.label": "Проверка на клона",
|
|
140
|
+
"mixedExample/properties/branchFeedback/anyOf/0.label": "Кратък текст",
|
|
141
|
+
"mixedExample/properties/branchFeedback/anyOf/1.label": "Дълъг текст",
|
|
142
|
+
"branchFeedback.value.label": "Клон",
|
|
143
|
+
"branchFeedback.value.title": "Клон",
|
|
144
|
+
"branchFeedback.text.label": "Текст",
|
|
145
|
+
"branchFeedback.text.title": "Текст",
|
|
146
|
+
"branchFeedback.shortBranch.label": "Кратък текст",
|
|
147
|
+
"branchFeedback.shortBranch.title": "Кратък текст",
|
|
148
|
+
"branchFeedback.longBranch.label": "Дълъг текст",
|
|
149
|
+
"branchFeedback.longBranch.title": "Дълъг текст",
|
|
150
|
+
"mixedExampleUI/elements/0/elements/0/elements/0.text": "Смесената стойност има собствен тип. Селекторът показва типа, а редакторът до него — стойността.",
|
|
151
|
+
"mixedExampleUI/elements/0/elements/1/elements/0.text": "Null, липсваща стойност и стойност, която схемата не допуска",
|
|
152
|
+
"mixedExampleUI/elements/0/elements/2/elements/0.text": "Сравнете вложените полета и дървовидната навигация по-долу. Двата редактора променят една и съща стойност.",
|
|
153
|
+
"mixedExampleUI/elements/0/elements/2/elements/1.label": "Вложени полета",
|
|
154
|
+
"mixedExampleUI/elements/0/elements/2/elements/2.label": "Дървовидна навигация",
|
|
155
|
+
"mixedExampleUI/elements/0/elements/2/elements/4.label": "JSON код",
|
|
156
|
+
"mixedExampleUI/elements/0/elements/3/elements/0.text": "Смесени стойности в масив"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "VerticalLayout",
|
|
3
|
+
"elements": [
|
|
4
|
+
{
|
|
5
|
+
"type": "Categorization",
|
|
6
|
+
"elements": [
|
|
7
|
+
{
|
|
8
|
+
"type": "Category",
|
|
9
|
+
"label": "Scalar types",
|
|
10
|
+
"i18n": "featureNavigation.section1",
|
|
11
|
+
"elements": [
|
|
12
|
+
{
|
|
13
|
+
"type": "Label",
|
|
14
|
+
"text": "A mixed value carries its own type. The selector says which, the editor beside it says what."
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"type": "Control",
|
|
18
|
+
"scope": "#/properties/label"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"type": "Control",
|
|
22
|
+
"scope": "#/properties/quantity"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"type": "Category",
|
|
28
|
+
"label": "Null and invalid values",
|
|
29
|
+
"i18n": "featureNavigation.section2",
|
|
30
|
+
"elements": [
|
|
31
|
+
{
|
|
32
|
+
"type": "Label",
|
|
33
|
+
"text": "Null, absent, and a value the schema refuses"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "Control",
|
|
37
|
+
"scope": "#/properties/surcharge"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "Control",
|
|
41
|
+
"scope": "#/properties/reference"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"type": "Control",
|
|
45
|
+
"scope": "#/properties/priority"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"type": "Category",
|
|
51
|
+
"label": "Structured values",
|
|
52
|
+
"i18n": "featureNavigation.section3",
|
|
53
|
+
"elements": [
|
|
54
|
+
{
|
|
55
|
+
"type": "Label",
|
|
56
|
+
"text": "Compare nested fields and tree navigation below. Both editors update the same payload."
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"type": "Control",
|
|
60
|
+
"scope": "#/properties/payload",
|
|
61
|
+
"label": "Nested fields",
|
|
62
|
+
"options": {
|
|
63
|
+
"structuredLayout": "nested",
|
|
64
|
+
"collapsed": false
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"type": "Control",
|
|
69
|
+
"scope": "#/properties/payload",
|
|
70
|
+
"label": "Tree navigation",
|
|
71
|
+
"options": {
|
|
72
|
+
"structuredLayout": "tree",
|
|
73
|
+
"collapsed": false
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"type": "Control",
|
|
78
|
+
"scope": "#/properties/anything"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"type": "Control",
|
|
82
|
+
"scope": "#/properties/payload",
|
|
83
|
+
"label": "JSON code",
|
|
84
|
+
"options": {
|
|
85
|
+
"structuredLayout": "code",
|
|
86
|
+
"height": 280
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"type": "Category",
|
|
93
|
+
"label": "Array items",
|
|
94
|
+
"i18n": "featureNavigation.section4",
|
|
95
|
+
"elements": [
|
|
96
|
+
{
|
|
97
|
+
"type": "Label",
|
|
98
|
+
"text": "Mixed values inside an array"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"type": "Control",
|
|
102
|
+
"scope": "#/properties/assignment"
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"type": "Category",
|
|
108
|
+
"label": "Type and composition",
|
|
109
|
+
"i18n": "mixedComposition.navigation",
|
|
110
|
+
"elements": [
|
|
111
|
+
{
|
|
112
|
+
"type": "VerticalLayout",
|
|
113
|
+
"elements": [
|
|
114
|
+
{
|
|
115
|
+
"type": "Label",
|
|
116
|
+
"text": "Choose a type before editing its alternatives. The overlapping text alternatives intentionally start invalid.",
|
|
117
|
+
"i18n": "mixedComposition.intro"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"type": "Control",
|
|
121
|
+
"scope": "#/properties/composedScalar",
|
|
122
|
+
"i18n": "mixedComposition.composedScalar"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"type": "Control",
|
|
126
|
+
"scope": "#/properties/composedObject",
|
|
127
|
+
"i18n": "mixedComposition.composedObject"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"type": "Control",
|
|
131
|
+
"scope": "#/properties/overlappingChoice",
|
|
132
|
+
"i18n": "mixedComposition.overlappingChoice"
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"type": "Category",
|
|
140
|
+
"label": "Table cells",
|
|
141
|
+
"i18n": "mixedCells.navigation",
|
|
142
|
+
"elements": [
|
|
143
|
+
{
|
|
144
|
+
"type": "VerticalLayout",
|
|
145
|
+
"elements": [
|
|
146
|
+
{
|
|
147
|
+
"type": "Label",
|
|
148
|
+
"text": "Edit mixed values through the Value cells. Try switching 2 between Integer and Number, then explore object and array values. The final row deliberately has a missing required value.",
|
|
149
|
+
"i18n": "mixedCells.intro"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"type": "Control",
|
|
153
|
+
"scope": "#/properties/mixedRows",
|
|
154
|
+
"i18n": "mixedCells.rows",
|
|
155
|
+
"options": {
|
|
156
|
+
"pagination": {
|
|
157
|
+
"pageSize": 10
|
|
158
|
+
},
|
|
159
|
+
"table": true
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"type": "Category",
|
|
168
|
+
"label": "Branch feedback",
|
|
169
|
+
"i18n": "branchFeedback.navigation",
|
|
170
|
+
"elements": [
|
|
171
|
+
{
|
|
172
|
+
"type": "VerticalLayout",
|
|
173
|
+
"elements": [
|
|
174
|
+
{
|
|
175
|
+
"type": "Label",
|
|
176
|
+
"text": "Both editors edit the same value, initially \"Longer text\". In each editor, select the Short text tab (maximum 5 characters). Only the first should show a length error: the second disables active-branch feedback. The value remains valid for the document because Long text accepts it (minimum 3 characters). Switch back to Long text to clear the first error. Other tabs contain unrelated deliberate errors.",
|
|
177
|
+
"i18n": "branchFeedback.intro"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"type": "Group",
|
|
181
|
+
"label": "Global branch validation enabled",
|
|
182
|
+
"i18n": "branchFeedback.enabled",
|
|
183
|
+
"elements": [
|
|
184
|
+
{
|
|
185
|
+
"type": "Control",
|
|
186
|
+
"scope": "#/properties/branchFeedback"
|
|
187
|
+
}
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"type": "Group",
|
|
192
|
+
"label": "Local branch validation disabled",
|
|
193
|
+
"i18n": "branchFeedback.disabled",
|
|
194
|
+
"elements": [
|
|
195
|
+
{
|
|
196
|
+
"type": "Control",
|
|
197
|
+
"scope": "#/properties/branchFeedback",
|
|
198
|
+
"options": {
|
|
199
|
+
"validateActiveBranch": false
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
}
|
|
204
|
+
]
|
|
205
|
+
}
|
|
206
|
+
]
|
|
207
|
+
}
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# Example: null control
|
|
2
|
+
|
|
3
|
+
**Example ID:** `null-control`\
|
|
4
|
+
**Demo entry:** **Spec: Null control** (`#spec-null-control`)\
|
|
5
|
+
**Domain:** project declarations\
|
|
6
|
+
**Specs covered:**
|
|
7
|
+
|
|
8
|
+
- [Null control](../../docs/spec.md#18-renderer-behaviour-specifications)
|
|
9
|
+
- [Shared clear-control behavior](../../docs/spec.md#18-renderer-behaviour-specifications)
|
|
10
|
+
- [Honest rendering of invalid data](../../docs/spec.md#18-renderer-behaviour-specifications)
|
|
11
|
+
|
|
12
|
+
A `{"type": "null"}` property can hold exactly one value, so the control's only
|
|
13
|
+
job is to say whether that value is **there**. The point of the example is that
|
|
14
|
+
**absent, `null` and `""` are three different things**, and only the middle one
|
|
15
|
+
is what this control writes.
|
|
16
|
+
|
|
17
|
+
## Files
|
|
18
|
+
|
|
19
|
+
| File | Role |
|
|
20
|
+
| --- | --- |
|
|
21
|
+
| `schema.json` | Three `type: "null"` properties, one of them required, plus three contrast properties that are not null controls. |
|
|
22
|
+
| `uischema.json` | Plain controls; the null control needs no options. |
|
|
23
|
+
| `data.json` | One explicit `null`, one absent required value, one value the type does not admit, and an empty string beside them. |
|
|
24
|
+
| `config.json` | `showUnfocusedDescription` and `restrict`, both top level. |
|
|
25
|
+
| `translations.json` | English and Bulgarian for the two keyword messages this data produces. |
|
|
26
|
+
|
|
27
|
+
No `uischemas.json`: nothing here nests.
|
|
28
|
+
|
|
29
|
+
## What the form contains
|
|
30
|
+
|
|
31
|
+
```text
|
|
32
|
+
Project declarations
|
|
33
|
+
No surcharge applies type: null -> null (ticked)
|
|
34
|
+
No exceptions type: null, required -> absent (invalid)
|
|
35
|
+
Additional approval not required type: null -> "n/a" (invalid)
|
|
36
|
+
---
|
|
37
|
+
Review note type: string -> ""
|
|
38
|
+
Reference number type: string -> absent
|
|
39
|
+
Inspection remark type: [string, null] -> null (mixed control)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Validation state
|
|
43
|
+
|
|
44
|
+
Validated with Ajv (`allErrors`, `strict: false`), the supplied data produces
|
|
45
|
+
exactly two errors:
|
|
46
|
+
|
|
47
|
+
| Instance path | Keyword | Message |
|
|
48
|
+
| --- | --- | --- |
|
|
49
|
+
| `` (the object) | `required` | must have required property 'exceptionsChecked' |
|
|
50
|
+
| `/legacyApproval` | `type` | must be null |
|
|
51
|
+
|
|
52
|
+
The first is attached to the **object**, not to the field: an absent property
|
|
53
|
+
has no instance path of its own. The second is the out-of-domain value.
|
|
54
|
+
|
|
55
|
+
## Expected behaviour
|
|
56
|
+
|
|
57
|
+
**No surcharge applies is ticked, and the data holds `null`.** Untick it and the
|
|
58
|
+
property becomes **absent** — not `false`, and not `""`. Tick it again and
|
|
59
|
+
`null` comes back. That is the whole of the control: a two-state switch between
|
|
60
|
+
`null` and not-present.
|
|
61
|
+
|
|
62
|
+
**No exceptions is required and absent**, so it is unticked and
|
|
63
|
+
reports the missing-property error. Ticking it writes `null`, which satisfies
|
|
64
|
+
`required` — because the property then exists. This is the case the control is
|
|
65
|
+
for: a declaration that has to be *recorded*, where leaving the box untouched
|
|
66
|
+
must not read the same as saying no.
|
|
67
|
+
|
|
68
|
+
**Additional approval not required holds `"n/a"`.** The box is drawn
|
|
69
|
+
**indeterminate** — neither ticked nor unticked — because the value is neither
|
|
70
|
+
`null` nor absent, and §19 forbids showing it as either. The value stays in the
|
|
71
|
+
data for the validator to report; the control does not quietly replace it.
|
|
72
|
+
Ticking the box overwrites it with `null`, which is an edit, not a normalization.
|
|
73
|
+
|
|
74
|
+
**Review note is `""`, and that is a value.** An empty string is a note that
|
|
75
|
+
says nothing; it is not the same as Reference number, which nobody has filled in.
|
|
76
|
+
Neither is the same as `null`. Read the Data tab: `reviewNote` is present with
|
|
77
|
+
an empty string, `referenceNumber` is not there at all.
|
|
78
|
+
|
|
79
|
+
**Inspection remark is not a null control.** Its type is `["string", "null"]`,
|
|
80
|
+
a union, which selects the **mixed control** — so it shows a type selector and
|
|
81
|
+
writes `null` only when null is the selected type. The null control is for
|
|
82
|
+
`type: "null"` alone, which is the distinction the two rows make side by side.
|
|
83
|
+
|
|
84
|
+
**Switch the demo to Bulgarian.** Both messages translate. The values do not.
|
|
85
|
+
|
|
86
|
+
## Fallback behaviour
|
|
87
|
+
|
|
88
|
+
| Situation | Result |
|
|
89
|
+
| --- | --- |
|
|
90
|
+
| Value is `null` | Ticked. |
|
|
91
|
+
| Value is absent | Unticked. |
|
|
92
|
+
| Value is anything else | Indeterminate, preserved, and reported by the validator. |
|
|
93
|
+
| The control is disabled or read-only | The box is disabled; the value is untouched either way. |
|
|
94
|
+
| `type: ["string", "null"]` | Not this control — the mixed control, which offers null as one type among several. |
|
|
95
|
+
| A `required` `type: "null"` property | Ticking it satisfies `required`, because the property then exists with the value `null`. |
|
|
96
|
+
|
|
97
|
+
## Conformance scope
|
|
98
|
+
|
|
99
|
+
This walkthrough describes the portable contract. Renderer support must be checked
|
|
100
|
+
by a host adapter; the package validates the authored assets, not live UI behavior.
|
|
101
|
+
|
|
102
|
+
## Standalone host setup
|
|
103
|
+
|
|
104
|
+
Load the JSON assets listed in [the catalog](../catalog.json) into a host
|
|
105
|
+
with the relevant renderer capabilities. No framework registration module is
|
|
106
|
+
required by this package.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
## Feature navigation
|
|
110
|
+
|
|
111
|
+
Explore one feature at a time using the tabs: **Explicit null**, **Other empty values**. Tab titles are localized in English and Bulgarian. The tabs share the existing form data.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"properties": {
|
|
4
|
+
"noSurcharge": {
|
|
5
|
+
"type": "null",
|
|
6
|
+
"title": "No surcharge applies",
|
|
7
|
+
"description": "Tick to record explicitly that no surcharge was assessed."
|
|
8
|
+
},
|
|
9
|
+
"exceptionsChecked": {
|
|
10
|
+
"type": "null",
|
|
11
|
+
"title": "No exceptions declared",
|
|
12
|
+
"description": "Must be recorded before approval."
|
|
13
|
+
},
|
|
14
|
+
"legacyApproval": {
|
|
15
|
+
"type": "null",
|
|
16
|
+
"title": "Additional approval not required",
|
|
17
|
+
"description": "Imported from a system that stored text here."
|
|
18
|
+
},
|
|
19
|
+
"reviewNote": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"title": "Review note",
|
|
22
|
+
"description": "An empty string is a note that says nothing, not an absent note."
|
|
23
|
+
},
|
|
24
|
+
"referenceNumber": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"title": "Reference number",
|
|
27
|
+
"description": "Absent: nobody has recorded one."
|
|
28
|
+
},
|
|
29
|
+
"inspectionRemark": {
|
|
30
|
+
"type": ["string", "null"],
|
|
31
|
+
"title": "Inspection remark",
|
|
32
|
+
"description": "A union, so this is the mixed control rather than the null control."
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": ["exceptionsChecked"]
|
|
36
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"en": {
|
|
3
|
+
"error.required": "Record this before approval.",
|
|
4
|
+
"error.type": "This field records only \"explicitly nothing\"; it cannot hold text.",
|
|
5
|
+
"featureNavigation.section1.label": "Explicit null",
|
|
6
|
+
"featureNavigation.section2.label": "Other empty values",
|
|
7
|
+
"specNullControl.schema.properties.noSurcharge.label": "No surcharge applies",
|
|
8
|
+
"specNullControl.schema.properties.noSurcharge.description": "Tick to record explicitly that no surcharge was assessed.",
|
|
9
|
+
"specNullControl.schema.properties.exceptionsChecked.label": "No exceptions declared",
|
|
10
|
+
"specNullControl.schema.properties.exceptionsChecked.description": "Must be recorded before approval.",
|
|
11
|
+
"specNullControl.schema.properties.legacyApproval.label": "Additional approval not required",
|
|
12
|
+
"specNullControl.schema.properties.legacyApproval.description": "Imported from a system that stored text here.",
|
|
13
|
+
"specNullControl.schema.properties.reviewNote.label": "Review note",
|
|
14
|
+
"specNullControl.schema.properties.reviewNote.description": "An empty string is a note that says nothing, not an absent note.",
|
|
15
|
+
"specNullControl.schema.properties.referenceNumber.label": "Reference number",
|
|
16
|
+
"specNullControl.schema.properties.referenceNumber.description": "Absent: nobody has recorded one.",
|
|
17
|
+
"specNullControl.schema.properties.inspectionRemark.label": "Inspection remark",
|
|
18
|
+
"specNullControl.schema.properties.inspectionRemark.description": "A union, so this is the mixed control rather than the null control.",
|
|
19
|
+
"specNullControl.ui.elements.0.elements.0.elements.0.text": "A null control records \"explicitly nothing\". Absent, null and \"\" are three different values.",
|
|
20
|
+
"specNullControl.ui.elements.0.elements.1.elements.0.text": "What null is not"
|
|
21
|
+
},
|
|
22
|
+
"bg": {
|
|
23
|
+
"error.required": "Отбележете това преди одобрение.",
|
|
24
|
+
"error.type": "Това поле записва само „изрично нищо“; не може да съдържа текст.",
|
|
25
|
+
"featureNavigation.section1.label": "Изричен null",
|
|
26
|
+
"featureNavigation.section2.label": "Други празни стойности",
|
|
27
|
+
"specNullControl.schema.properties.noSurcharge.label": "Не се начислява допълнителна такса",
|
|
28
|
+
"specNullControl.schema.properties.noSurcharge.description": "Отбележете, за да запишете изрично, че не е начислена допълнителна такса.",
|
|
29
|
+
"specNullControl.schema.properties.exceptionsChecked.label": "Няма декларирани изключения",
|
|
30
|
+
"specNullControl.schema.properties.exceptionsChecked.description": "Трябва да се отбележи преди одобрение.",
|
|
31
|
+
"specNullControl.schema.properties.legacyApproval.label": "Не е необходимо допълнително одобрение",
|
|
32
|
+
"specNullControl.schema.properties.legacyApproval.description": "Импортирано от система, която е съхранявала текст в това поле.",
|
|
33
|
+
"specNullControl.schema.properties.reviewNote.label": "Бележка от прегледа",
|
|
34
|
+
"specNullControl.schema.properties.reviewNote.description": "Празният низ е бележка без съдържание, а не липсваща бележка.",
|
|
35
|
+
"specNullControl.schema.properties.referenceNumber.label": "Референтен номер",
|
|
36
|
+
"specNullControl.schema.properties.referenceNumber.description": "Липсва: никой не е записал номер.",
|
|
37
|
+
"specNullControl.schema.properties.inspectionRemark.label": "Забележка от проверката",
|
|
38
|
+
"specNullControl.schema.properties.inspectionRemark.description": "Обединение на типове: използва се контролата за смесен тип вместо контролата за null.",
|
|
39
|
+
"specNullControl.ui.elements.0.elements.0.elements.0.text": "Контролата за null записва „изрично нищо“. Липсваща стойност, null и \"\" са три различни стойности.",
|
|
40
|
+
"specNullControl.ui.elements.0.elements.1.elements.0.text": "Разлика между null и другите празни стойности"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "VerticalLayout",
|
|
3
|
+
"elements": [
|
|
4
|
+
{
|
|
5
|
+
"type": "Categorization",
|
|
6
|
+
"elements": [
|
|
7
|
+
{
|
|
8
|
+
"type": "Category",
|
|
9
|
+
"label": "Explicit null",
|
|
10
|
+
"i18n": "featureNavigation.section1",
|
|
11
|
+
"elements": [
|
|
12
|
+
{
|
|
13
|
+
"type": "Label",
|
|
14
|
+
"text": "A null control records \"explicitly nothing\". Absent, null and \"\" are three different values."
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"type": "Control",
|
|
18
|
+
"scope": "#/properties/noSurcharge"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"type": "Control",
|
|
22
|
+
"scope": "#/properties/exceptionsChecked"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"type": "Control",
|
|
26
|
+
"scope": "#/properties/legacyApproval"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"type": "Category",
|
|
32
|
+
"label": "Other empty values",
|
|
33
|
+
"i18n": "featureNavigation.section2",
|
|
34
|
+
"elements": [
|
|
35
|
+
{
|
|
36
|
+
"type": "Label",
|
|
37
|
+
"text": "What null is not"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "Control",
|
|
41
|
+
"scope": "#/properties/reviewNote"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"type": "Control",
|
|
45
|
+
"scope": "#/properties/referenceNumber"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"type": "Control",
|
|
49
|
+
"scope": "#/properties/inspectionRemark"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|