@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,159 @@
|
|
|
1
|
+
# Example: string controls
|
|
2
|
+
|
|
3
|
+
**Example ID:** `string-controls`\
|
|
4
|
+
**Demo entry:** **Spec: String controls** (`#spec-string-controls`)\
|
|
5
|
+
**Domain:** customer intake\
|
|
6
|
+
**Specs covered:**
|
|
7
|
+
|
|
8
|
+
- [Masked string control](../../docs/spec.md#18186-masked-string-control)
|
|
9
|
+
- [Input composition and Unicode string length](../../docs/spec.md#18186-masked-string-control)
|
|
10
|
+
- [Shared placeholder hints](../../docs/spec.md#18186-masked-string-control)
|
|
11
|
+
- [Established presentation options](../../docs/spec.md#18186-masked-string-control) (`multi`, `mask`)
|
|
12
|
+
- [Honest rendering of invalid data](../../docs/spec.md#18186-masked-string-control)
|
|
13
|
+
- [The masked string control](../../docs/spec.md#18186-masked-string-control)
|
|
14
|
+
|
|
15
|
+
One intake form, seen through every string presentation the model defines. The
|
|
16
|
+
point of the example is that **a mask describes how a value is typed, and the
|
|
17
|
+
schema describes what is stored** — two decisions that a single field makes
|
|
18
|
+
separately, and that disagree more often than they look like they should.
|
|
19
|
+
|
|
20
|
+
## Files
|
|
21
|
+
|
|
22
|
+
| File | Role |
|
|
23
|
+
| --- | --- |
|
|
24
|
+
| `schema.json` | Eleven string properties: three plain, seven masked in different ways, one with a temporal `format`. |
|
|
25
|
+
| `uischema.json` | `multi`, `suggestion`, `placeholder`, and six masks — unmasked and masked storage, alternative patterns, custom tokens, eager literals, and a boolean `mask` that must not select a mask. |
|
|
26
|
+
| `data.json` | A valid value in every representation, one incomplete, and one the mask cannot carry at all. |
|
|
27
|
+
| `config.json` | `showUnfocusedDescription`, `restrict` and `clearable`, all top level the specification and §11.9. |
|
|
28
|
+
| `translations.json` | English and Bulgarian, including two per-property error messages. |
|
|
29
|
+
|
|
30
|
+
No `uischemas.json`: nothing here nests.
|
|
31
|
+
|
|
32
|
+
## What the form contains
|
|
33
|
+
|
|
34
|
+
```text
|
|
35
|
+
Customer intake
|
|
36
|
+
Coordinator name plain text + placeholder -> "Marta Oliveira"
|
|
37
|
+
Office city suggestion (free text + hints) -> "Portland"
|
|
38
|
+
Appointment notes multi -> two lines
|
|
39
|
+
---
|
|
40
|
+
Booking reference mask ###-###, restrict, maxLength 6 -> stores "482913", shows 482-913
|
|
41
|
+
Contact phone returnMaskedValue: true -> stores "+1 (503) 555-0142"
|
|
42
|
+
Account number mask ["#### ####", "#### #### ####"] -> stores "123456789012", shows 1234 5678 9012
|
|
43
|
+
---
|
|
44
|
+
Deck position mask D-##, tokens { D: [A-C] } -> stores "B07", shows B-07
|
|
45
|
+
Bay label mask AAAA, tokens { A: \p{L} } -> stores "Süd", shows Süd
|
|
46
|
+
Gate code mask ##-##, eager -> stores "814", shows 81-4 (invalid)
|
|
47
|
+
---
|
|
48
|
+
Legacy reference mask ###-### -> "PENDING-REVIEW" (invalid, verbatim)
|
|
49
|
+
Scheduled meeting format: date, "mask": false -> "2026-10-14"
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Validation state
|
|
53
|
+
|
|
54
|
+
Validated with Ajv (`allErrors`, `strict: false`, `ajv-formats`), the supplied
|
|
55
|
+
data produces exactly two errors:
|
|
56
|
+
|
|
57
|
+
| Instance path | Keyword | Message |
|
|
58
|
+
| --- | --- | --- |
|
|
59
|
+
| `/gateCode` | `pattern` | must match pattern `^[0-9]{4}$` |
|
|
60
|
+
| `/legacyReference` | `pattern` | must match pattern `^[0-9]{6}$` |
|
|
61
|
+
|
|
62
|
+
The two are there for different reasons, and the difference is the point.
|
|
63
|
+
|
|
64
|
+
**Gate code fits its mask perfectly and is still invalid.** `814` masks to
|
|
65
|
+
`81-4` with nothing rejected — a mask guides structure, and the spec says
|
|
66
|
+
plainly that "a generic mask does not imply that partial input is withheld
|
|
67
|
+
until the mask is complete". Completeness is the validator's job, and the field
|
|
68
|
+
shows a normal error for it. A renderer that withheld partial input here would
|
|
69
|
+
have nothing to report and an empty field.
|
|
70
|
+
|
|
71
|
+
**Legacy reference cannot be masked at all**, and is invalid for that reason.
|
|
72
|
+
|
|
73
|
+
## Expected behaviour
|
|
74
|
+
|
|
75
|
+
**Type into Booking reference and read the Data tab.** The field shows
|
|
76
|
+
`482-913`; the data holds `482913`. `returnMaskedValue` is off, so the
|
|
77
|
+
separator is presentation and never reaches storage.
|
|
78
|
+
|
|
79
|
+
**Contact phone is the opposite choice.** `returnMaskedValue: true` stores the
|
|
80
|
+
literals, so its `pattern` describes the punctuation too. That is a
|
|
81
|
+
consequence the author accepts, not something the renderer arranges: the renderer contract
|
|
82
|
+
requires that "the schema must instead describe the stored representation
|
|
83
|
+
containing the separator", and that the renderer "must not rewrite the schema
|
|
84
|
+
when this option changes".
|
|
85
|
+
|
|
86
|
+
**Clear Booking reference and type all six digits back.** All six go in. This is
|
|
87
|
+
worth trying deliberately: the field is `maxLength: 6` with `restrict: true`,
|
|
88
|
+
and the displayed text is *seven* characters. Forwarding the schema limit to the
|
|
89
|
+
input's own `maxlength` stops the field at six displayed characters and makes the sixth digit
|
|
90
|
+
impossible to type. The limit here is checked against what would be stored, in
|
|
91
|
+
Unicode code points, after masking.
|
|
92
|
+
|
|
93
|
+
**Account number picks its mask by length.** Delete digits down to eight and the
|
|
94
|
+
grouping becomes `1234 5678`; type twelve and it becomes `1234 5678 9012`. One
|
|
95
|
+
control, two shapes, one stored string.
|
|
96
|
+
|
|
97
|
+
**Deck position rejects a `D`.** Its token map narrows the first position to
|
|
98
|
+
`[A-C]`; `#` and the other defaults are still there, because custom tokens are
|
|
99
|
+
applied *over* the default table rather than replacing it.
|
|
100
|
+
|
|
101
|
+
**Bay label accepts any alphabet.** Its token is `\p{L}`, a Unicode property
|
|
102
|
+
escape, which only works because token patterns are compiled with the `u` flag
|
|
103
|
+
first. Type Cyrillic or Greek into it. This is the regex-compatibility
|
|
104
|
+
statement the renderer contract asks every implementation to make.
|
|
105
|
+
|
|
106
|
+
**Gate code inserts its separator before you reach it.** `eager: true`, so the
|
|
107
|
+
`-` appears as soon as the second digit is typed rather than when the third is.
|
|
108
|
+
Now delete back to empty: the stranded `-` goes with it.
|
|
109
|
+
|
|
110
|
+
**Legacy reference is shown exactly as imported.** `PENDING-REVIEW` is not
|
|
111
|
+
something `###-###` can carry, so it is displayed verbatim, and **nothing is
|
|
112
|
+
written on mount** — the renderer contract: existing data must not be normalized "solely by
|
|
113
|
+
mounting the control". Showing the masked remnant would have put `123-456` on
|
|
114
|
+
screen while the data still held fourteen characters. Type into it and the mask
|
|
115
|
+
takes over from that edit onward.
|
|
116
|
+
|
|
117
|
+
**Scheduled meeting carries `"mask": false` and is still a date picker.** That
|
|
118
|
+
boolean is the temporal control's own opt-out, and the spec says a "boolean
|
|
119
|
+
temporal option must not by itself request a generic masked field". Selecting on
|
|
120
|
+
the option's *presence*, as the neighbouring families do, turns "mask this less"
|
|
121
|
+
into "mask this generically"; selection here requires an actual pattern.
|
|
122
|
+
|
|
123
|
+
**Put the caret in the middle of Account number and type.** It stays after the
|
|
124
|
+
character you typed rather than jumping to the end or falling behind the group
|
|
125
|
+
separator.
|
|
126
|
+
|
|
127
|
+
**Switch the demo to Bulgarian.** Both error messages, the clear-value tooltip
|
|
128
|
+
and the descriptions translate. The stored values do not change.
|
|
129
|
+
|
|
130
|
+
## Fallback behaviour
|
|
131
|
+
|
|
132
|
+
| Situation | Result |
|
|
133
|
+
| --- | --- |
|
|
134
|
+
| No `placeholder` on a masked field | The mask is the hint — `###-###`. Booking reference shows this; Contact phone overrides it. |
|
|
135
|
+
| `placeholder: ""` | No hint at all; the fallback is suppressed, per the renderer contract. |
|
|
136
|
+
| A set of alternative masks and no placeholder | No hint — several masks have no single shape. |
|
|
137
|
+
| No `returnMaskedValue` | The value is stored without the mask literals. |
|
|
138
|
+
| No `eager` / `reversed` | Off. An explicit `true` turns them on, which is worth stating because the neighbouring families invert both. |
|
|
139
|
+
| A token whose regex does not compile | Dropped with a console warning; the rest of the mask still works. |
|
|
140
|
+
| A token with a `transform` function | Dropped — function-valued options are not part of the portable model. |
|
|
141
|
+
| `mask` on a string with `format: date`/`time`/`color`/`password`/`duration` | Ignored; the format's own editor wins. |
|
|
142
|
+
| A stored value the mask cannot carry | Shown verbatim, left unwritten until edited. |
|
|
143
|
+
| `restrict: false` | The limit is not enforced while typing; an over-long value is reported by the validator instead. |
|
|
144
|
+
|
|
145
|
+
## Conformance scope
|
|
146
|
+
|
|
147
|
+
This walkthrough describes the portable contract. Renderer support must be checked
|
|
148
|
+
by a host adapter; the package validates the authored assets, not live UI behavior.
|
|
149
|
+
|
|
150
|
+
## Standalone host setup
|
|
151
|
+
|
|
152
|
+
Load the JSON assets listed in [the catalog](../catalog.json) into a host
|
|
153
|
+
with the relevant renderer capabilities. No framework registration module is
|
|
154
|
+
required by this package.
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
## Feature navigation
|
|
158
|
+
|
|
159
|
+
Explore one feature at a time using the tabs: **Plain text**, **Input masks**, **Custom mask tokens**, **Fallback behavior**. Tab titles are localized in English and Bulgarian. The tabs share the existing form data.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contactName": "Marta Oliveira",
|
|
3
|
+
"officeCity": "Portland",
|
|
4
|
+
"meetingNotes": "Office closes at 18:00.\nCall the reception on arrival.",
|
|
5
|
+
"bookingReference": "482913",
|
|
6
|
+
"contactPhone": "+1 (503) 555-0142",
|
|
7
|
+
"accountNumber": "123456789012",
|
|
8
|
+
"deckPosition": "B07",
|
|
9
|
+
"gateCode": "814",
|
|
10
|
+
"bayLabel": "Süd",
|
|
11
|
+
"legacyReference": "PENDING-REVIEW",
|
|
12
|
+
"scheduledMeeting": "2026-10-14"
|
|
13
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"properties": {
|
|
4
|
+
"contactName": {
|
|
5
|
+
"type": "string",
|
|
6
|
+
"title": "Coordinator name",
|
|
7
|
+
"description": "Name as it appears on the supplier's registration.",
|
|
8
|
+
"minLength": 2
|
|
9
|
+
},
|
|
10
|
+
"officeCity": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"title": "Office city",
|
|
13
|
+
"description": "Start typing; the suggestions are hints, not a fixed list."
|
|
14
|
+
},
|
|
15
|
+
"meetingNotes": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"title": "Appointment notes",
|
|
18
|
+
"description": "Anything the receiving yard needs to know."
|
|
19
|
+
},
|
|
20
|
+
"bookingReference": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"title": "Booking reference",
|
|
23
|
+
"description": "Six digits. Stored without the separator.",
|
|
24
|
+
"pattern": "^[0-9]{6}$",
|
|
25
|
+
"maxLength": 6
|
|
26
|
+
},
|
|
27
|
+
"contactPhone": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"title": "Contact phone",
|
|
30
|
+
"description": "Stored exactly as displayed, separators included.",
|
|
31
|
+
"pattern": "^\\+1 \\([0-9]{3}\\) [0-9]{3}-[0-9]{4}$"
|
|
32
|
+
},
|
|
33
|
+
"accountNumber": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"title": "Account number",
|
|
36
|
+
"description": "Eight digits for a office account, twelve for a supplier account.",
|
|
37
|
+
"pattern": "^([0-9]{8}|[0-9]{12})$"
|
|
38
|
+
},
|
|
39
|
+
"deckPosition": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"title": "Deck position",
|
|
42
|
+
"description": "Deck A to C, then the bay number.",
|
|
43
|
+
"pattern": "^[A-C][0-9]{2}$"
|
|
44
|
+
},
|
|
45
|
+
"gateCode": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"title": "Gate code",
|
|
48
|
+
"description": "Four digits.",
|
|
49
|
+
"pattern": "^[0-9]{4}$"
|
|
50
|
+
},
|
|
51
|
+
"bayLabel": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"title": "Bay label",
|
|
54
|
+
"description": "Up to four letters, in any alphabet.",
|
|
55
|
+
"maxLength": 4
|
|
56
|
+
},
|
|
57
|
+
"legacyReference": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"title": "Legacy reference",
|
|
60
|
+
"description": "Imported from the previous project system.",
|
|
61
|
+
"pattern": "^[0-9]{6}$"
|
|
62
|
+
},
|
|
63
|
+
"scheduledMeeting": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"format": "date",
|
|
66
|
+
"title": "Scheduled meeting"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"required": ["contactName", "bookingReference"]
|
|
70
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"en": {
|
|
3
|
+
"control.clearValue": "Clear value",
|
|
4
|
+
"error.pattern": "Check the format of this value.",
|
|
5
|
+
"error.minLength": "Enter at least {limit} characters.",
|
|
6
|
+
"error.required": "This field is required.",
|
|
7
|
+
"gateCode.error.pattern": "The gate code is four digits; this one is incomplete.",
|
|
8
|
+
"legacyReference.error.pattern": "Imported without a booking reference. Enter the six-digit reference from the paperwork.",
|
|
9
|
+
"featureNavigation.section1.label": "Plain text",
|
|
10
|
+
"featureNavigation.section2.label": "Input masks",
|
|
11
|
+
"featureNavigation.section3.label": "Custom mask tokens",
|
|
12
|
+
"featureNavigation.section4.label": "Fallback behavior",
|
|
13
|
+
"stringIntro0.text": "Strings the plain text control already handles.",
|
|
14
|
+
"stringIntro1.text": "Masked strings. How a value is typed and how it is stored are separate decisions.",
|
|
15
|
+
"stringIntro2.text": "Custom tokens, and eager separators.",
|
|
16
|
+
"stringIntro3.text": "A value the mask cannot carry, and a mask option that is not a mask.",
|
|
17
|
+
"contactName.label": "Coordinator name",
|
|
18
|
+
"contactName.description": "Name as it appears on the supplier's registration.",
|
|
19
|
+
"officeCity.label": "Office city",
|
|
20
|
+
"officeCity.description": "Start typing; the suggestions are hints, not a fixed list.",
|
|
21
|
+
"meetingNotes.label": "Appointment notes",
|
|
22
|
+
"meetingNotes.description": "Anything the receiving yard needs to know.",
|
|
23
|
+
"bookingReference.label": "Booking reference",
|
|
24
|
+
"bookingReference.description": "Six digits. Stored without the separator.",
|
|
25
|
+
"contactPhone.label": "Contact phone",
|
|
26
|
+
"contactPhone.description": "Stored exactly as displayed, separators included.",
|
|
27
|
+
"accountNumber.label": "Account number",
|
|
28
|
+
"accountNumber.description": "Eight digits for a office account, twelve for a supplier account.",
|
|
29
|
+
"deckPosition.label": "Deck position",
|
|
30
|
+
"deckPosition.description": "Deck A to C, then the bay number.",
|
|
31
|
+
"gateCode.label": "Gate code",
|
|
32
|
+
"gateCode.description": "Four digits.",
|
|
33
|
+
"bayLabel.label": "Bay label",
|
|
34
|
+
"bayLabel.description": "Up to four letters, in any alphabet.",
|
|
35
|
+
"legacyReference.label": "Legacy reference",
|
|
36
|
+
"legacyReference.description": "Imported from the previous project system.",
|
|
37
|
+
"scheduledMeeting.label": "Scheduled meeting"
|
|
38
|
+
},
|
|
39
|
+
"bg": {
|
|
40
|
+
"control.clearValue": "Изчистване на стойността",
|
|
41
|
+
"error.pattern": "Проверете формата на тази стойност.",
|
|
42
|
+
"error.minLength": "Въведете поне {limit} знака.",
|
|
43
|
+
"error.required": "Полето е задължително.",
|
|
44
|
+
"gateCode.error.pattern": "Кодът за портала е от четири цифри; този е непълен.",
|
|
45
|
+
"legacyReference.error.pattern": "Импортирано без номер на заявка. Въведете шестцифрения номер от документите.",
|
|
46
|
+
"featureNavigation.section1.label": "Обикновен текст",
|
|
47
|
+
"featureNavigation.section2.label": "Маски за въвеждане",
|
|
48
|
+
"featureNavigation.section3.label": "Потребителски символи за маска",
|
|
49
|
+
"featureNavigation.section4.label": "Резервно поведение",
|
|
50
|
+
"stringIntro0.text": "Низове, обработвани от обикновеното текстово поле.",
|
|
51
|
+
"stringIntro1.text": "Маскирани низове: начинът на въвеждане и начинът на съхранение са отделни решения.",
|
|
52
|
+
"stringIntro2.text": "Потребителски символи и автоматично добавяне на разделители.",
|
|
53
|
+
"stringIntro3.text": "Стойност, която маската не може да представи, и настройка, която не е маска.",
|
|
54
|
+
"contactName.label": "Име на координатора",
|
|
55
|
+
"contactName.description": "Името, както е изписано в регистрацията на доставчика.",
|
|
56
|
+
"officeCity.label": "Град на офиса",
|
|
57
|
+
"officeCity.description": "Започнете да пишете; предложенията не ограничават допустимите стойности.",
|
|
58
|
+
"meetingNotes.label": "Бележки за срещата",
|
|
59
|
+
"meetingNotes.description": "Всичко, което приемащият екип трябва да знае.",
|
|
60
|
+
"bookingReference.label": "Номер на заявката",
|
|
61
|
+
"bookingReference.description": "Шест цифри. Съхраняват се без разделителя.",
|
|
62
|
+
"contactPhone.label": "Телефон за връзка",
|
|
63
|
+
"contactPhone.description": "Съхранява се точно както е показан, включително разделителите.",
|
|
64
|
+
"accountNumber.label": "Номер на сметката",
|
|
65
|
+
"accountNumber.description": "Осем цифри за офисна сметка, дванадесет за сметка на доставчик.",
|
|
66
|
+
"deckPosition.label": "Позиция на палубата",
|
|
67
|
+
"deckPosition.description": "Палуба от A до C, следвана от номера на отсека.",
|
|
68
|
+
"gateCode.label": "Код на портала",
|
|
69
|
+
"gateCode.description": "Четири цифри.",
|
|
70
|
+
"bayLabel.label": "Етикет на отсека",
|
|
71
|
+
"bayLabel.description": "До четири букви от всяка азбука.",
|
|
72
|
+
"legacyReference.label": "Стар номер на заявка",
|
|
73
|
+
"legacyReference.description": "Импортиран от предишната система.",
|
|
74
|
+
"scheduledMeeting.label": "Насрочена среща"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "VerticalLayout",
|
|
3
|
+
"elements": [
|
|
4
|
+
{
|
|
5
|
+
"type": "Categorization",
|
|
6
|
+
"elements": [
|
|
7
|
+
{
|
|
8
|
+
"type": "Category",
|
|
9
|
+
"label": "Plain text",
|
|
10
|
+
"i18n": "featureNavigation.section1",
|
|
11
|
+
"elements": [
|
|
12
|
+
{
|
|
13
|
+
"type": "Label",
|
|
14
|
+
"text": "Strings the plain text control already handles."
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"type": "Control",
|
|
18
|
+
"scope": "#/properties/contactName",
|
|
19
|
+
"options": {
|
|
20
|
+
"placeholder": "Family name first"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "Control",
|
|
25
|
+
"scope": "#/properties/officeCity",
|
|
26
|
+
"options": {
|
|
27
|
+
"suggestion": [
|
|
28
|
+
"Portland",
|
|
29
|
+
"Seattle",
|
|
30
|
+
"Sacramento",
|
|
31
|
+
"Salt Lake City"
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "Control",
|
|
37
|
+
"scope": "#/properties/meetingNotes",
|
|
38
|
+
"options": {
|
|
39
|
+
"multi": true
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"type": "Category",
|
|
46
|
+
"label": "Input masks",
|
|
47
|
+
"i18n": "featureNavigation.section2",
|
|
48
|
+
"elements": [
|
|
49
|
+
{
|
|
50
|
+
"type": "Label",
|
|
51
|
+
"text": "Masked strings. How a value is typed and how it is stored are separate decisions."
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"type": "Control",
|
|
55
|
+
"scope": "#/properties/bookingReference",
|
|
56
|
+
"options": {
|
|
57
|
+
"mask": "###-###"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"type": "Control",
|
|
62
|
+
"scope": "#/properties/contactPhone",
|
|
63
|
+
"options": {
|
|
64
|
+
"mask": "+1 (###) ###-####",
|
|
65
|
+
"returnMaskedValue": true,
|
|
66
|
+
"placeholder": "+1 (503) 555-0142"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"type": "Control",
|
|
71
|
+
"scope": "#/properties/accountNumber",
|
|
72
|
+
"options": {
|
|
73
|
+
"mask": [
|
|
74
|
+
"#### ####",
|
|
75
|
+
"#### #### ####"
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"type": "Category",
|
|
83
|
+
"label": "Custom mask tokens",
|
|
84
|
+
"i18n": "featureNavigation.section3",
|
|
85
|
+
"elements": [
|
|
86
|
+
{
|
|
87
|
+
"type": "Label",
|
|
88
|
+
"text": "Custom tokens, and eager separators."
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"type": "Control",
|
|
92
|
+
"scope": "#/properties/deckPosition",
|
|
93
|
+
"options": {
|
|
94
|
+
"mask": "D-##",
|
|
95
|
+
"tokens": {
|
|
96
|
+
"D": "[A-C]"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"type": "Control",
|
|
102
|
+
"scope": "#/properties/bayLabel",
|
|
103
|
+
"options": {
|
|
104
|
+
"mask": "AAAA",
|
|
105
|
+
"tokens": {
|
|
106
|
+
"A": "\\p{L}"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"type": "Control",
|
|
112
|
+
"scope": "#/properties/gateCode",
|
|
113
|
+
"options": {
|
|
114
|
+
"mask": "##-##",
|
|
115
|
+
"eager": true
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"type": "Category",
|
|
122
|
+
"label": "Fallback behavior",
|
|
123
|
+
"i18n": "featureNavigation.section4",
|
|
124
|
+
"elements": [
|
|
125
|
+
{
|
|
126
|
+
"type": "Label",
|
|
127
|
+
"text": "A value the mask cannot carry, and a mask option that is not a mask."
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"type": "Control",
|
|
131
|
+
"scope": "#/properties/legacyReference",
|
|
132
|
+
"options": {
|
|
133
|
+
"mask": "###-###"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"type": "Control",
|
|
138
|
+
"scope": "#/properties/scheduledMeeting",
|
|
139
|
+
"options": {
|
|
140
|
+
"mask": false
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# Table row details: recruitment
|
|
2
|
+
|
|
3
|
+
One applicant collection with dialog, side panel, and bottom panel details, each shown with a normal table and AG Grid. Both use `options.rowDetail.detail`, an item-relative UI schema for the whole row.
|
|
4
|
+
|
|
5
|
+
The table shows Name, Email, Contact (an object), and Experience (an array of objects). Notes is available only in the row editor. Portable `columnDefs` selects and sizes these columns.
|
|
6
|
+
|
|
7
|
+
Every row editor has three tabs:
|
|
8
|
+
- **Applicant** edits name, email, and notes.
|
|
9
|
+
- **Contact** renders the contact object with a horizontal City/Phone layout.
|
|
10
|
+
- **Experience** uses `ListWithDetail`: select a company on the left and edit its company, role, and years on the right.
|
|
11
|
+
|
|
12
|
+
The Experience cell editor deliberately uses a plain `Control` at scope `#`, so it selects the default array renderer. It does not inherit the row editor's `ListWithDetail`. The Contact cell summarizes the city and uses its default object editor. This demonstrates that `cells[field].detail` and `rowDetail.detail` can present the same data differently.
|
|
13
|
+
|
|
14
|
+
Dialog edits are staged until Apply; panels edit immediately. Row detail selection is separate from deletion checkboxes and follows the original data row when the grid is sorted or filtered.
|
|
15
|
+
|
|
16
|
+
All presentations share pagination defaults. Explicit `agGridOptions.columnDefs` or native pagination settings override their portable equivalents. Name requests 170px and Email demonstrates minimum and maximum widths.
|
|
17
|
+
|
|
18
|
+
See docs/spec.md §18.21.1.
|
|
19
|
+
|
|
20
|
+
Cell dialogs request 720px width; row dialogs request 900px by 75vh. Both enable dragging and resizing, with maximize/restore available in the header.
|
|
21
|
+
|
|
22
|
+
## Label summaries and row context
|
|
23
|
+
|
|
24
|
+
All normal-table and AG Grid presentations include an Applicant summary column
|
|
25
|
+
bound to the whole row with `columnDefs[].scope: "#"`. Its `field` is a stable
|
|
26
|
+
column key, not a new schema property. Its Label summary interpolates
|
|
27
|
+
`{name} — {email}` through declared textParams and has no edit action because no detail is supplied.
|
|
28
|
+
The Contact column uses a Label summary with `{city} · {phone}` through declared textParams against
|
|
29
|
+
`item.contact.city` and `item.contact.phone`, and retains its explicit detail editor and validation marker.
|
|
30
|
+
Applicant parameters use `item.name` and `item.email`; `data` still denotes the whole form.
|
|
31
|
+
The dynamicValues gate must be enabled to access either namespace. Label summaries do not display object/array type icons.
|
|
32
|
+
These examples require the existing Label interpolation renderer capability.
|
|
33
|
+
|
|
34
|
+
## Checks to try
|
|
35
|
+
|
|
36
|
+
- In an AG Grid presentation, filter Contact with Contains `Boston`, then
|
|
37
|
+
`555-0100`: both search the resolved summary text.
|
|
38
|
+
- Sort Applicant summary or Contact in either direction. Editing still opens
|
|
39
|
+
the original row even after sorting, filtering or changing pages.
|
|
40
|
+
- Resize a long summary column smaller: its text should truncate without forcing
|
|
41
|
+
unrelated columns wider. Scroll the table when its combined widths overflow.
|
|
42
|
+
- Change a row value and verify its Label updates. `item` always means the current
|
|
43
|
+
source row; `data` continues to provide the whole form.
|
|
44
|
+
- Turn off dynamic values: row/root expressions must not expose their values
|
|
45
|
+
through rendering, sorting or filtering.
|
|
46
|
+
|
|
47
|
+
## Collection error navigation
|
|
48
|
+
|
|
49
|
+
Applicant 07 intentionally has empty Notes, which violates minLength. Notes is
|
|
50
|
+
not a table column and the row starts on page two. The collection footer shows
|
|
51
|
+
the error count; “Go to first error” reveals the page and opens the row details.
|
|
52
|
+
The row action area also shows its error count. Correct Notes and the indicators
|
|
53
|
+
disappear. AG Grid keeps active filters; the detail editor can still open when
|
|
54
|
+
the affected row is filtered out.
|
|
55
|
+
|
|
56
|
+
### Label summary editing
|
|
57
|
+
|
|
58
|
+
All six table variants include a Full name virtual column. Its selectable Label
|
|
59
|
+
combines firstName and lastName; the pencil opens a dialog editing those two
|
|
60
|
+
fields. Applicant summary has no detail and therefore no edit button. Neither
|
|
61
|
+
virtual column offers a clear-row action. The original Name remains a separate
|
|
62
|
+
field in this example.
|
|
63
|
+
|
|
64
|
+
### Tab validation indicators
|
|
65
|
+
|
|
66
|
+
Categories explicitly enable `showValidationIndicator`, including Applicant,
|
|
67
|
+
Contact, and Experience in row details. Applicant 07 has an invalid Notes value,
|
|
68
|
+
so its Applicant tab shows the error marker even while another tab is selected.
|
|
69
|
+
The marker clears when the draft value becomes valid.
|