@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,178 @@
|
|
|
1
|
+
{
|
|
2
|
+
"en": {
|
|
3
|
+
"confirm.branchChange.title": "Change the contact method?",
|
|
4
|
+
"confirm.branchChange.message": "The email address will be discarded. The contact name is kept.",
|
|
5
|
+
"confirm.accept": "Yes",
|
|
6
|
+
"confirm.decline": "No",
|
|
7
|
+
"error.required": "Required for an urgent request.",
|
|
8
|
+
"error.anyOf": "Enter up to 12 attendees, or 50 and over.",
|
|
9
|
+
"error.oneOf": "Enter a multiple of three or of five, but not of both.",
|
|
10
|
+
"neededByUnruled.label": "Needed by (no rule)",
|
|
11
|
+
"specCombinators.schema/properties/reference.label": "Request number",
|
|
12
|
+
"specCombinators.schema/properties/contact.label": "Who to contact",
|
|
13
|
+
"specCombinators.schema/properties/contact/properties/name.label": "Contact name",
|
|
14
|
+
"specCombinators.schema/properties/contact/oneOf/0.label": "Email contact",
|
|
15
|
+
"specCombinators.schema/properties/contact/oneOf/0/properties/email.label": "Email address",
|
|
16
|
+
"specCombinators.schema/properties/contact/oneOf/1.label": "Phone contact",
|
|
17
|
+
"specCombinators.schema/properties/contact/oneOf/1/properties/phone.label": "Phone number",
|
|
18
|
+
"specCombinators.schema/properties/location.label": "Where to meet",
|
|
19
|
+
"specCombinators.schema/properties/location/anyOf/0.label": "On site",
|
|
20
|
+
"specCombinators.schema/properties/location/anyOf/0/properties/room.label": "Room",
|
|
21
|
+
"specCombinators.schema/properties/location/anyOf/1.label": "Online",
|
|
22
|
+
"specCombinators.schema/properties/location/anyOf/1/properties/platform.label": "Platform",
|
|
23
|
+
"specCombinators.schema/properties/location/anyOf/1/properties/joinUrl.label": "Joining link",
|
|
24
|
+
"specCombinators.schema/properties/equipment.label": "Equipment",
|
|
25
|
+
"specCombinators.schema/properties/equipment/properties/name.label": "Item",
|
|
26
|
+
"specCombinators.schema/properties/equipment/allOf/0.label": "Identification",
|
|
27
|
+
"specCombinators.schema/properties/equipment/allOf/0/properties/assetTag.label": "Asset tag",
|
|
28
|
+
"specCombinators.schema/properties/equipment/allOf/1.label": "Condition",
|
|
29
|
+
"specCombinators.schema/properties/equipment/allOf/1/properties/working.label": "In working order",
|
|
30
|
+
"specCombinators.schema/properties/attendees.label": "Number of attendees",
|
|
31
|
+
"specCombinators.schema/properties/seatsPerTable.label": "Seats per table",
|
|
32
|
+
"specCombinators.schema/properties/urgent.label": "Urgent request",
|
|
33
|
+
"specCombinators.schema/properties/neededBy.label": "Needed by",
|
|
34
|
+
"specCombinators.schema/properties/appointment.label": "How to send the summary",
|
|
35
|
+
"specCombinators.schema/properties/appointment/properties/method.label": "Method",
|
|
36
|
+
"specCombinators.schema/properties/appointment/oneOf/0.label": "Collect in person",
|
|
37
|
+
"specCombinators.schema/properties/appointment/oneOf/0/properties/collectionPoint.label": "Collection point",
|
|
38
|
+
"specCombinators.schema/properties/appointment/oneOf/1.label": "By post",
|
|
39
|
+
"specCombinators.schema/properties/appointment/oneOf/1/properties/postcode.label": "Postcode",
|
|
40
|
+
"specCombinators.schema/properties/appointment/oneOf/1/properties/addressLine.label": "Address",
|
|
41
|
+
"specCombinators.schema/properties/appointment/oneOf/2.label": "Do not send",
|
|
42
|
+
"specCombinators.ui/elements/1/elements/0.label": "oneOf",
|
|
43
|
+
"specCombinators.ui/elements/1/elements/0/elements/0.text": "A dropdown of branch labels. Switching branch asks first, then keeps the contact name.",
|
|
44
|
+
"specCombinators.ui/elements/1/elements/1.label": "anyOf",
|
|
45
|
+
"specCombinators.ui/elements/1/elements/1/elements/0.text": "Tabs over one value. Moving between them changes nothing and asks nothing.",
|
|
46
|
+
"specCombinators.ui/elements/1/elements/2.label": "allOf",
|
|
47
|
+
"specCombinators.ui/elements/1/elements/2/elements/0.text": "No selector: the enclosing property first, then every branch in schema order.",
|
|
48
|
+
"specCombinators.ui/elements/1/elements/3.label": "One input, several alternatives",
|
|
49
|
+
"specCombinators.ui/elements/1/elements/3/elements/0.text": "Composition that describes one scalar editor gets one input, not a branch selector.",
|
|
50
|
+
"specCombinators.ui/elements/1/elements/3/elements/2.text": "Up to 12 people, or 50 and over. Enter 30 to see the alternative-match failure.",
|
|
51
|
+
"specCombinators.ui/elements/1/elements/3/elements/4.text": "Multiples of three or of five, but not both: 6 and 10 pass, 15 does not.",
|
|
52
|
+
"specCombinators.ui/elements/1/elements/4.label": "Schema condition vs UI rule",
|
|
53
|
+
"specCombinators.ui/elements/1/elements/4/elements/0.text": "The schema's if/then makes the date required. Only the UI rule hides it.",
|
|
54
|
+
"specCombinators.ui/elements/1/elements/4/elements/3/elements/0.text": "The same property, no rule. It stays on screen whatever the schema condition says.",
|
|
55
|
+
"specCombinators.ui/elements/1/elements/5.label": "Fields that appear from the schema",
|
|
56
|
+
"specCombinators.ui/elements/1/elements/5/elements/0.text": "Change the method. Different fields appear - decided by the schema alone, with no UI rule anywhere.",
|
|
57
|
+
"specCombinators.ui/elements/1/elements/5/elements/2.text": "Collect asks for a collection point, Post asks for an address, Do not send asks for nothing.",
|
|
58
|
+
"Request number": "Request number",
|
|
59
|
+
"Who to contact": "Who to contact",
|
|
60
|
+
"Contact name": "Contact name",
|
|
61
|
+
"Email contact": "Email contact",
|
|
62
|
+
"Email address": "Email address",
|
|
63
|
+
"Phone contact": "Phone contact",
|
|
64
|
+
"Phone number": "Phone number",
|
|
65
|
+
"Where to meet": "Where to meet",
|
|
66
|
+
"On site": "On site",
|
|
67
|
+
"Room": "Room",
|
|
68
|
+
"Online": "Online",
|
|
69
|
+
"Platform": "Platform",
|
|
70
|
+
"Joining link": "Joining link",
|
|
71
|
+
"Equipment": "Equipment",
|
|
72
|
+
"Item": "Item",
|
|
73
|
+
"Identification": "Identification",
|
|
74
|
+
"Asset tag": "Asset tag",
|
|
75
|
+
"Condition": "Condition",
|
|
76
|
+
"In working order": "In working order",
|
|
77
|
+
"Number of attendees": "Number of attendees",
|
|
78
|
+
"Seats per table": "Seats per table",
|
|
79
|
+
"Urgent request": "Urgent request",
|
|
80
|
+
"Needed by": "Needed by",
|
|
81
|
+
"How to send the summary": "How to send the summary",
|
|
82
|
+
"Method": "Method",
|
|
83
|
+
"Collect in person": "Collect in person",
|
|
84
|
+
"Collection point": "Collection point",
|
|
85
|
+
"By post": "By post",
|
|
86
|
+
"Postcode": "Postcode",
|
|
87
|
+
"Address": "Address",
|
|
88
|
+
"Do not send": "Do not send"
|
|
89
|
+
},
|
|
90
|
+
"bg": {
|
|
91
|
+
"confirm.branchChange.title": "Смяна на начина за връзка?",
|
|
92
|
+
"confirm.branchChange.message": "Имейл адресът ще бъде премахнат. Името за контакт се запазва.",
|
|
93
|
+
"confirm.accept": "Да",
|
|
94
|
+
"confirm.decline": "Не",
|
|
95
|
+
"error.required": "Задължително при спешна заявка.",
|
|
96
|
+
"error.anyOf": "Въведете до 12 участници или 50 и повече.",
|
|
97
|
+
"error.oneOf": "Въведете число, кратно на три или на пет, но не и на двете.",
|
|
98
|
+
"neededByUnruled.label": "Необходимо до (без правило)",
|
|
99
|
+
"specCombinators.schema/properties/reference.label": "Номер на заявката",
|
|
100
|
+
"specCombinators.schema/properties/contact.label": "Лице за контакт",
|
|
101
|
+
"specCombinators.schema/properties/contact/properties/name.label": "Име за контакт",
|
|
102
|
+
"specCombinators.schema/properties/contact/oneOf/0.label": "Връзка по имейл",
|
|
103
|
+
"specCombinators.schema/properties/contact/oneOf/0/properties/email.label": "Имейл адрес",
|
|
104
|
+
"specCombinators.schema/properties/contact/oneOf/1.label": "Връзка по телефон",
|
|
105
|
+
"specCombinators.schema/properties/contact/oneOf/1/properties/phone.label": "Телефонен номер",
|
|
106
|
+
"specCombinators.schema/properties/location.label": "Място на срещата",
|
|
107
|
+
"specCombinators.schema/properties/location/anyOf/0.label": "На място",
|
|
108
|
+
"specCombinators.schema/properties/location/anyOf/0/properties/room.label": "Стая",
|
|
109
|
+
"specCombinators.schema/properties/location/anyOf/1.label": "Онлайн",
|
|
110
|
+
"specCombinators.schema/properties/location/anyOf/1/properties/platform.label": "Платформа",
|
|
111
|
+
"specCombinators.schema/properties/location/anyOf/1/properties/joinUrl.label": "Връзка за присъединяване",
|
|
112
|
+
"specCombinators.schema/properties/equipment.label": "Оборудване",
|
|
113
|
+
"specCombinators.schema/properties/equipment/properties/name.label": "Предмет",
|
|
114
|
+
"specCombinators.schema/properties/equipment/allOf/0.label": "Идентификация",
|
|
115
|
+
"specCombinators.schema/properties/equipment/allOf/0/properties/assetTag.label": "Инвентарен номер",
|
|
116
|
+
"specCombinators.schema/properties/equipment/allOf/1.label": "Състояние",
|
|
117
|
+
"specCombinators.schema/properties/equipment/allOf/1/properties/working.label": "В изправност",
|
|
118
|
+
"specCombinators.schema/properties/attendees.label": "Брой участници",
|
|
119
|
+
"specCombinators.schema/properties/seatsPerTable.label": "Места на маса",
|
|
120
|
+
"specCombinators.schema/properties/urgent.label": "Спешна заявка",
|
|
121
|
+
"specCombinators.schema/properties/neededBy.label": "Необходимо до",
|
|
122
|
+
"specCombinators.schema/properties/appointment.label": "Изпращане на резюмето",
|
|
123
|
+
"specCombinators.schema/properties/appointment/properties/method.label": "Метод",
|
|
124
|
+
"specCombinators.schema/properties/appointment/oneOf/0.label": "Получаване лично",
|
|
125
|
+
"specCombinators.schema/properties/appointment/oneOf/0/properties/collectionPoint.label": "Място за получаване",
|
|
126
|
+
"specCombinators.schema/properties/appointment/oneOf/1.label": "По пощата",
|
|
127
|
+
"specCombinators.schema/properties/appointment/oneOf/1/properties/postcode.label": "Пощенски код",
|
|
128
|
+
"specCombinators.schema/properties/appointment/oneOf/1/properties/addressLine.label": "Адрес",
|
|
129
|
+
"specCombinators.schema/properties/appointment/oneOf/2.label": "Без изпращане",
|
|
130
|
+
"specCombinators.ui/elements/1/elements/0.label": "oneOf",
|
|
131
|
+
"specCombinators.ui/elements/1/elements/0/elements/0.text": "Падащ списък с варианти. Смяната изисква потвърждение и запазва името за контакт.",
|
|
132
|
+
"specCombinators.ui/elements/1/elements/1.label": "anyOf",
|
|
133
|
+
"specCombinators.ui/elements/1/elements/1/elements/0.text": "Раздели за една стойност. Превключването не променя данните и не изисква потвърждение.",
|
|
134
|
+
"specCombinators.ui/elements/1/elements/2.label": "allOf",
|
|
135
|
+
"specCombinators.ui/elements/1/elements/2/elements/0.text": "Без избор на вариант: първо общите свойства, след това всеки клон в реда на схемата.",
|
|
136
|
+
"specCombinators.ui/elements/1/elements/3.label": "Едно поле, няколко алтернативи",
|
|
137
|
+
"specCombinators.ui/elements/1/elements/3/elements/0.text": "Композиция за една скаларна стойност се показва като едно поле, без избор на клон.",
|
|
138
|
+
"specCombinators.ui/elements/1/elements/3/elements/2.text": "До 12 участници или поне 50. Въведете 30, за да видите грешка за несъвпадение с алтернативите.",
|
|
139
|
+
"specCombinators.ui/elements/1/elements/3/elements/4.text": "Кратно на три или на пет, но не и на двете: 6 и 10 са валидни, 15 не е.",
|
|
140
|
+
"specCombinators.ui/elements/1/elements/4.label": "Условие в схемата и правило в интерфейса",
|
|
141
|
+
"specCombinators.ui/elements/1/elements/4/elements/0.text": "Условието if/then прави датата задължителна. Само правилото в интерфейса я скрива.",
|
|
142
|
+
"specCombinators.ui/elements/1/elements/4/elements/3/elements/0.text": "Същото свойство без правило. Остава видимо независимо от условието в схемата.",
|
|
143
|
+
"specCombinators.ui/elements/1/elements/5.label": "Полета, определени от схемата",
|
|
144
|
+
"specCombinators.ui/elements/1/elements/5/elements/0.text": "Променете метода. Различни полета се показват само според схемата, без правило в интерфейса.",
|
|
145
|
+
"specCombinators.ui/elements/1/elements/5/elements/2.text": "Получаването лично изисква място, пощата изисква адрес, а без изпращане не изисква допълнителни данни.",
|
|
146
|
+
"Request number": "Номер на заявката",
|
|
147
|
+
"Who to contact": "Лице за контакт",
|
|
148
|
+
"Contact name": "Име за контакт",
|
|
149
|
+
"Email contact": "Връзка по имейл",
|
|
150
|
+
"Email address": "Имейл адрес",
|
|
151
|
+
"Phone contact": "Връзка по телефон",
|
|
152
|
+
"Phone number": "Телефонен номер",
|
|
153
|
+
"Where to meet": "Място на срещата",
|
|
154
|
+
"On site": "На място",
|
|
155
|
+
"Room": "Стая",
|
|
156
|
+
"Online": "Онлайн",
|
|
157
|
+
"Platform": "Платформа",
|
|
158
|
+
"Joining link": "Връзка за присъединяване",
|
|
159
|
+
"Equipment": "Оборудване",
|
|
160
|
+
"Item": "Предмет",
|
|
161
|
+
"Identification": "Идентификация",
|
|
162
|
+
"Asset tag": "Инвентарен номер",
|
|
163
|
+
"Condition": "Състояние",
|
|
164
|
+
"In working order": "В изправност",
|
|
165
|
+
"Number of attendees": "Брой участници",
|
|
166
|
+
"Seats per table": "Места на маса",
|
|
167
|
+
"Urgent request": "Спешна заявка",
|
|
168
|
+
"Needed by": "Необходимо до",
|
|
169
|
+
"How to send the summary": "Изпращане на резюмето",
|
|
170
|
+
"Method": "Метод",
|
|
171
|
+
"Collect in person": "Получаване лично",
|
|
172
|
+
"Collection point": "Място за получаване",
|
|
173
|
+
"By post": "По пощата",
|
|
174
|
+
"Postcode": "Пощенски код",
|
|
175
|
+
"Address": "Адрес",
|
|
176
|
+
"Do not send": "Без изпращане"
|
|
177
|
+
}
|
|
178
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "VerticalLayout",
|
|
3
|
+
"options": {
|
|
4
|
+
"gap": "1.5rem"
|
|
5
|
+
},
|
|
6
|
+
"elements": [
|
|
7
|
+
{
|
|
8
|
+
"type": "Control",
|
|
9
|
+
"scope": "#/properties/reference"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "Categorization",
|
|
13
|
+
"elements": [
|
|
14
|
+
{
|
|
15
|
+
"type": "Category",
|
|
16
|
+
"name": "oneOf",
|
|
17
|
+
"label": "oneOf",
|
|
18
|
+
"elements": [
|
|
19
|
+
{
|
|
20
|
+
"type": "Label",
|
|
21
|
+
"text": "A dropdown of branch labels. Switching branch asks first, then keeps the contact name."
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "Control",
|
|
25
|
+
"scope": "#/properties/contact"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "Category",
|
|
31
|
+
"name": "anyOf",
|
|
32
|
+
"label": "anyOf",
|
|
33
|
+
"elements": [
|
|
34
|
+
{
|
|
35
|
+
"type": "Label",
|
|
36
|
+
"text": "Tabs over one value. Moving between them changes nothing and asks nothing."
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"type": "Control",
|
|
40
|
+
"scope": "#/properties/location"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"type": "Category",
|
|
46
|
+
"name": "allOf",
|
|
47
|
+
"label": "allOf",
|
|
48
|
+
"elements": [
|
|
49
|
+
{
|
|
50
|
+
"type": "Label",
|
|
51
|
+
"text": "No selector: the enclosing property first, then every branch in schema order."
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"type": "Control",
|
|
55
|
+
"scope": "#/properties/equipment"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"type": "Category",
|
|
61
|
+
"name": "scalar",
|
|
62
|
+
"label": "One input, several alternatives",
|
|
63
|
+
"elements": [
|
|
64
|
+
{
|
|
65
|
+
"type": "Label",
|
|
66
|
+
"text": "Composition that describes one scalar editor gets one input, not a branch selector."
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"type": "Control",
|
|
70
|
+
"scope": "#/properties/attendees"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"type": "Label",
|
|
74
|
+
"text": "Up to 12 people, or 50 and over. Enter 30 to see the alternative-match failure."
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"type": "Control",
|
|
78
|
+
"scope": "#/properties/seatsPerTable"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"type": "Label",
|
|
82
|
+
"text": "Multiples of three or of five, but not both: 6 and 10 pass, 15 does not."
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"type": "Category",
|
|
88
|
+
"name": "conditional",
|
|
89
|
+
"label": "Schema condition vs UI rule",
|
|
90
|
+
"elements": [
|
|
91
|
+
{
|
|
92
|
+
"type": "Label",
|
|
93
|
+
"text": "The schema's if/then makes the date required. Only the UI rule hides it."
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"type": "Control",
|
|
97
|
+
"scope": "#/properties/urgent"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"type": "Group",
|
|
101
|
+
"label": "With a UI rule",
|
|
102
|
+
"elements": [
|
|
103
|
+
{
|
|
104
|
+
"type": "Control",
|
|
105
|
+
"scope": "#/properties/neededBy",
|
|
106
|
+
"rule": {
|
|
107
|
+
"effect": "SHOW",
|
|
108
|
+
"condition": {
|
|
109
|
+
"scope": "#/properties/urgent",
|
|
110
|
+
"schema": {
|
|
111
|
+
"const": true
|
|
112
|
+
},
|
|
113
|
+
"failWhenUndefined": true
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"type": "Group",
|
|
121
|
+
"label": "Without a UI rule",
|
|
122
|
+
"elements": [
|
|
123
|
+
{
|
|
124
|
+
"type": "Label",
|
|
125
|
+
"text": "The same property, no rule. It stays on screen whatever the schema condition says."
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"type": "Control",
|
|
129
|
+
"scope": "#/properties/neededBy",
|
|
130
|
+
"i18n": "neededByUnruled"
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"type": "Category",
|
|
138
|
+
"name": "schemaVisibility",
|
|
139
|
+
"label": "Fields that appear from the schema",
|
|
140
|
+
"elements": [
|
|
141
|
+
{
|
|
142
|
+
"type": "Label",
|
|
143
|
+
"text": "Change the method. Different fields appear - decided by the schema alone, with no UI rule anywhere."
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"type": "Control",
|
|
147
|
+
"scope": "#/properties/appointment"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"type": "Label",
|
|
151
|
+
"text": "Collect asks for a collection point, Post asks for an address, Do not send asks for nothing."
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Conditional object fields
|
|
2
|
+
|
|
3
|
+
Config opts in; local options.conditionalFields:false overrides it. All tabs
|
|
4
|
+
edit the same data. Switch customerType to personal: nickname replaces VAT, and
|
|
5
|
+
Name remains visible but is no longer required. Switch back: VAT is preserved.
|
|
6
|
+
Remove purchaseOrder in the Data editor to deactivate its schema dependency;
|
|
7
|
+
an empty string still counts as present. Billing address is retained in data.
|
|
8
|
+
The second tab demonstrates freely placed branch-only fields in ordinary groups.
|
|
9
|
+
|
|
10
|
+
The third tab uses ordinary VerticalLayout, HorizontalLayout and Group elements
|
|
11
|
+
without an object Control. The root Categorization enables conditional projection
|
|
12
|
+
for its layout subtree. Name stays visible and its required star follows the
|
|
13
|
+
business condition, while inactive branch-only controls disappear. All tabs edit
|
|
14
|
+
the same data. Object Controls remain available for generated/registered details.
|
|
15
|
+
|
|
16
|
+
Enable options.conditionalFields on the first layout at the current object
|
|
17
|
+
boundary, or use the global config default. Descendant layout settings do not
|
|
18
|
+
reverse that owner's projection. A local false on the entry overrides global true.
|
|
19
|
+
Nested objects and array items use their own schema/data context.
|
|
20
|
+
Validation always uses the original schema. Hiding a field does not erase it or
|
|
21
|
+
relax additionalProperties. In Draft-07, additionalProperties:false in the base
|
|
22
|
+
schema does not recognize properties declared only in then/else: declare allowed
|
|
23
|
+
names in the base schema when closing the object, and use explicit UI rules for
|
|
24
|
+
visibility of those base fields.
|
|
25
|
+
|
|
26
|
+
This example supports graphical authoring through serializable control scopes,
|
|
27
|
+
detail layouts and config. It does not include a drag-and-drop editor.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"properties": {
|
|
4
|
+
"customerType": {
|
|
5
|
+
"type": "string",
|
|
6
|
+
"enum": [
|
|
7
|
+
"personal",
|
|
8
|
+
"business"
|
|
9
|
+
]
|
|
10
|
+
},
|
|
11
|
+
"name": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"purchaseOrder": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"if": {
|
|
19
|
+
"properties": {
|
|
20
|
+
"customerType": {
|
|
21
|
+
"const": "business"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"required": [
|
|
25
|
+
"customerType"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"then": {
|
|
29
|
+
"properties": {
|
|
30
|
+
"vatNumber": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"minLength": 3
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": [
|
|
36
|
+
"vatNumber",
|
|
37
|
+
"name"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"else": {
|
|
41
|
+
"properties": {
|
|
42
|
+
"nickname": {
|
|
43
|
+
"type": "string"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"purchaseOrder": {
|
|
49
|
+
"properties": {
|
|
50
|
+
"billingAddress": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"required": [
|
|
55
|
+
"billingAddress"
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"en": {
|
|
3
|
+
"customerType.label": "Customer type",
|
|
4
|
+
"customerType.personal": "Personal",
|
|
5
|
+
"customerType.business": "Business",
|
|
6
|
+
"name.label": "Name",
|
|
7
|
+
"purchaseOrder.label": "Purchase order",
|
|
8
|
+
"vatNumber.label": "VAT number",
|
|
9
|
+
"nickname.label": "Nickname",
|
|
10
|
+
"billingAddress.label": "Billing address",
|
|
11
|
+
"Generated fields.label": "Generated fields",
|
|
12
|
+
"Authored placement.label": "Authored placement",
|
|
13
|
+
"Identity.label": "Identity",
|
|
14
|
+
"Billing.label": "Billing",
|
|
15
|
+
"Direct layout.label": "Direct layout"
|
|
16
|
+
},
|
|
17
|
+
"bg": {
|
|
18
|
+
"customerType.label": "Вид клиент",
|
|
19
|
+
"customerType.personal": "Физическо лице",
|
|
20
|
+
"customerType.business": "Фирма",
|
|
21
|
+
"name.label": "Име",
|
|
22
|
+
"purchaseOrder.label": "Поръчка за покупка",
|
|
23
|
+
"vatNumber.label": "ДДС номер",
|
|
24
|
+
"nickname.label": "Прякор",
|
|
25
|
+
"billingAddress.label": "Адрес за фактуриране",
|
|
26
|
+
"Generated fields.label": "Генерирани полета",
|
|
27
|
+
"Authored placement.label": "Зададено разположение",
|
|
28
|
+
"Identity.label": "Самоличност",
|
|
29
|
+
"Billing.label": "Фактуриране",
|
|
30
|
+
"Direct layout.label": "Директно оформление"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "Categorization",
|
|
3
|
+
"elements": [
|
|
4
|
+
{
|
|
5
|
+
"type": "Category",
|
|
6
|
+
"label": "Generated fields",
|
|
7
|
+
"elements": [
|
|
8
|
+
{
|
|
9
|
+
"type": "Control",
|
|
10
|
+
"scope": "#",
|
|
11
|
+
"options": {
|
|
12
|
+
"detail": "GENERATE"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"type": "Category",
|
|
19
|
+
"label": "Authored placement",
|
|
20
|
+
"elements": [
|
|
21
|
+
{
|
|
22
|
+
"type": "Control",
|
|
23
|
+
"scope": "#",
|
|
24
|
+
"options": {
|
|
25
|
+
"detail": {
|
|
26
|
+
"type": "VerticalLayout",
|
|
27
|
+
"elements": [
|
|
28
|
+
{
|
|
29
|
+
"type": "Control",
|
|
30
|
+
"scope": "#/properties/customerType"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"type": "Group",
|
|
34
|
+
"label": "Identity",
|
|
35
|
+
"elements": [
|
|
36
|
+
{
|
|
37
|
+
"type": "HorizontalLayout",
|
|
38
|
+
"elements": [
|
|
39
|
+
{
|
|
40
|
+
"type": "Control",
|
|
41
|
+
"scope": "#/properties/name"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"type": "Control",
|
|
45
|
+
"scope": "#/properties/nickname"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "Group",
|
|
53
|
+
"label": "Billing",
|
|
54
|
+
"elements": [
|
|
55
|
+
{
|
|
56
|
+
"type": "Control",
|
|
57
|
+
"scope": "#/properties/vatNumber"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"type": "Control",
|
|
61
|
+
"scope": "#/properties/purchaseOrder"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"type": "Control",
|
|
65
|
+
"scope": "#/properties/billingAddress"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"type": "Category",
|
|
77
|
+
"label": "Direct layout",
|
|
78
|
+
"elements": [
|
|
79
|
+
{
|
|
80
|
+
"type": "VerticalLayout",
|
|
81
|
+
"elements": [
|
|
82
|
+
{
|
|
83
|
+
"type": "Control",
|
|
84
|
+
"scope": "#/properties/customerType"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"type": "Group",
|
|
88
|
+
"label": "Identity",
|
|
89
|
+
"elements": [
|
|
90
|
+
{
|
|
91
|
+
"type": "HorizontalLayout",
|
|
92
|
+
"elements": [
|
|
93
|
+
{
|
|
94
|
+
"type": "Control",
|
|
95
|
+
"scope": "#/properties/name"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"type": "Control",
|
|
99
|
+
"scope": "#/properties/nickname"
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"type": "Group",
|
|
107
|
+
"label": "Billing",
|
|
108
|
+
"elements": [
|
|
109
|
+
{
|
|
110
|
+
"type": "Control",
|
|
111
|
+
"scope": "#/properties/vatNumber"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"type": "Control",
|
|
115
|
+
"scope": "#/properties/purchaseOrder"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"type": "Control",
|
|
119
|
+
"scope": "#/properties/billingAddress"
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
"options": {
|
|
129
|
+
"conditionalFields": true
|
|
130
|
+
}
|
|
131
|
+
}
|