Kitchen sink: job application
A shared renderer example with English and Bulgarian authoring catalogs. Register base and extended renderers and cells, including AG Grid and Monaco. Load the matching renderer locale for built-in actions, pagination and dialogs. Use the demo language selector to switch locale.
Coverage
- Identity: text, email, URI, international phone pattern, password, OTP and multiline text.
- Contact: object, oneOf branch selection, anyOf alternatives and allOf composition.
- Preferences: employment cards, enum dropdown, radio, checkbox, toggle, integer, decimal, slider and color; conditional office/home-office and relocation questions.
- Scheduling: date, time, date-time, duration and cron.
- Collections: normal table and AG Grid with seven rows, three per page, nested object/array cell dialogs, row details, list/detail, string array, additional properties and a tuple.
- Advanced: mixed data, a text attachment and a bounded JSON editor.
- Skills chips, working-language multi-select and development-interest checkboxes.
- Category validation markers, localized validation messages and translated field labels.
- Interpolated application summaries, named text substitutions and layout styling hooks.
- Salary units, account-security and duration-help input adornments.
Validation walkthrough
data.json starts valid. Replace the demo data with invalid-data.json to show
10 deliberately invalid paths, including errors on page two in each table.
Correct email addresses, international phone syntax, OTP length, numeric bounds,
date syntax, an empty city and an empty company name. Row, cell and category
indicators should clear as their corresponding errors are fixed.
Phone numbers must match ^\+[1-9][0-9]{7,14}$: a leading plus and 8–15 digits.
This checks a deliberately restricted international syntax, not country-specific
numbering plans, number assignment or reachability. Email validation uses the
standard JSON Schema email format; it does not prove mailbox ownership.
Postal codes use a permissive international pattern, not a country-specific validator.
Password rules are demonstration constraints, not a password security policy.
The host must enable standard format validation (for example Ajv plus ajv-formats). Password/color/cron are renderer formats; this fixture does not claim that a standard JSON Schema validator understands those custom formats. JSON editor syntax feedback requires Monaco's language service and is distinct from schema validation.
Limits
This example requests portable capabilities from the registered renderer family. Support must be verified per adapter; the fixture does not certify it. It does not require remote services, submit handlers, $dynamic overlays or timezone conversion. Values and free-form user data are not translated. Native library strings require the host's component-library locale as well as the fixture catalog.
Combinator branches declare their own object type and editable properties. A required-only branch is avoided because it gives the generated branch editor no fields to render. First and last names are strings of 1–80 characters; only the advanced Payload field intentionally uses a mixed-type editor.
Phone input guidance
The main phone field and table row-detail phone editors request masks for
8–15 digits prefixed with +. returnMaskedValue: true preserves that plus in
storage, matching the schema pattern. The example placeholder is
+442079460123; translated descriptions explain the country code and length.
Renderer implementations should provide the mask behavior described above. Inline table cells keep their existing editors.
Domain and source inspiration
This is a job-application example. See the source provenance for inspiration and adaptation details.
The stable catalog ID remains kitchen-sink to preserve existing demo links.
Future domain examples should use their own IDs and domain-qualified titles.
Résumé and documents and Technical work sample now have separate visible tabs. The two reference tables demonstrate alternative editors over separate sample collections. Integration metadata is an optional administrative extension, not an applicant name field. This remains a component demonstration; no submission or real recruitment backend is connected.
Usable detail dialogs
The example config enables dragging, resizing and maximizing for row and complex-cell dialogs through jsonformsExtended.dialog. Phone fields in the applicant and reference-row forms use international phone masks; validation still checks syntax. Open References: table and References: AG Grid row editors: the header and action buttons must remain within the viewport while the form body scrolls.
Navigation
Four steps (Profile, Job, References, Finish) use the existing stepper with localized Next/Previous actions and direct step selection. All eleven original sections remain available; Finish also includes a Demo guide tab naming the features and where to try them. Short business-facing prompts introduce the other sections. Category validation indicators remain at both levels. Navigation does not submit or discard data. Check both English and Bulgarian labels and return to edited fields.
Horizontal sizing in the form
Profile → Applicant and account uses 6/10 spans for first/last name, 2:1 weights for email/phone, and a flexible password beside a fixed 220px verification-code field. Job → Job preferences uses 2:1 weights for position/department and a fixed 140px age field beside a flexible budget. These rows wrap at their minimum widths and inherit the portable gap. Existing masks, labels and translations are preserved. Narrow the form with the demo splitter to inspect wrapping.
Presentation elements
Finish → Résumé and documents includes a decorative ImageView with an embedded SVG data URL and empty alt, a translated Markdown Label, a horizontal Separator (divider), an explicit 24px Spacer before the help section, and a translated mailto Link. The recruitment address is illustrative. These elements preserve form data and use the normal image/link URL policy.
Feature walkthrough
The application keeps applicant-facing labels and short prompts. Finish → Demo guide provides the technical feature names without putting them in field captions. The following are adapter acceptance instructions, not executed renderer tests.
| Where | Feature | What to try |
|---|---|---|
| Job → Job preferences | Conditional layouts and requiredness | Switch Work mode between Remote and Office/Hybrid. Home-office location replaces Preferred office. Toggle Open to relocation to show/hide its required city. Switch back and check that entered answers remain. |
| Job → Job preferences | Choice cards and ordinary radio | Select Permanent, Fixed term or Contract; the stored employment value remains a string. Work mode retains its radio presentation. |
| Job → Job preferences | Group footer and inherited Label spans | Edit the position/work mode; the footer follows both. It inherits the host span default. |
| Profile → Applicant and account; Job → Job preferences / Availability | Input adornments | Inspect the account lock, salary € and / year, and duration help. Units and icons never enter stored values. Help remains accessible in either locale. |
| Job → Experience and skills | Chips, multi-select and checkbox choices | Add a skill chip, choose several working languages, and tick development interests. Choices preserve stored values after locale changes. |
| Finish → Declarations | Interpolation, Markdown and locale formatting | Change the applicant, position, work mode or salary, then return. English/Bulgarian summaries reorder named parameters; salary formatting follows the locale. Enter Markdown punctuation in a name and verify it stays literal. |
| Finish → Declarations | Local span overrides and slot markers | Inspect application-summary and application-contact. The summary enables named substitution spans; the contact line opts out even with the supplied host default enabled. |
| References → table / AG Grid | Pagination, complex cells and row dialogs | Browse past page one. Edit address/skills in a cell detail and the contact in a row detail. Resize/maximize the dialog; these are separate sample collections. |
| Job → Experience and skills | Dynamic properties and tuple editing | Add/rename/delete an additional detail, then change latitude/longitude without changing tuple positions. |
| Finish → Integration metadata / Technical work sample | Mixed tree and code editor | Select and edit a nested integration value. The work sample is JSON text with language feedback, not a parsed object or a connected service. |
| Profile / Job; all steps | Responsive sizing, validation and readonly | Narrow the form to inspect wrapping. Clear a required field and locate its category indicator. Load invalid-data.json for the ten documented invalid paths; readonly preserves navigation while blocking mutations. |
Conditional presentation boundary
The root VerticalLayout sets options.conditionalFields: true; its nested
Categorization and Group layouts inherit that decision. Two root allOf
conditions contribute branch-only location fields. There is no wrapping object
Control or copied HIDE rule. The original schema remains the validator schema.
Both data fixtures retain example office and home-office answers, including the
currently inactive one. Do not delete hidden answers or add defaults when switching.
This fixture exercises the accepted contract. Adapter checks must establish actual filtering, required markers, focus/draft preservation, Group footer updates and permission behavior through the real registry.
Optional styling of the live summary
The config enables jsonformsExtended.markup.textParamSpans and basic Markdown.
The declaration summary locally enables spans for applicant, position, mode
and salary; its contact line locally disables them for email. The job-preference
footer inherits the host default. Toggle that default: only the footer changes
its marker behavior. Remove a local override to restore inheritance.
These names add no built-in appearance. A host can install, for example:
[data-part~="application-summary"] [data-text-param="position"] {
text-decoration: underline;
text-underline-offset: 0.2em;
}
[data-part~="application-summary"] [data-text-param="salary"] {
font-weight: 700;
border-block-end: 2px solid currentColor;
}
Install CSS in the form's styling scope, including its ShadowRoot when applicable. Native/canvas adapters may expose equivalent hooks or document a no-op. Turning hooks on/off must preserve text, Markdown structure, accessible reading order, links and stored data. See the focused Label walkthrough.
Focused companion examples
The kitchen sink is an integration scenario, not exhaustive coverage of every option or validator keyword. These capabilities have separate fixtures:
| Capability | Focused example |
|---|---|
| Conditional Template/Slot placement | Conditional template slots |
| Named templates and caller overrides | Templates and slots |
| Recursive node navigation and finite depth | Recursive tree, five-level tree |
| Generated, registered and inline editor details | Editor details |
| Experimental dynamic overlays and host external state | Dynamic playground |
| Host actions, server errors and pending validity | Button actions, additional errors |
| Detailed styling precedence, translation and Markdown boundaries | Label interpolation |
| Adornment variants and unsupported capability checks | Input adornments |
Package tests validate the authoring assets, localization and conditional data semantics. They do not mount renderer adapters or certify visual interactions.