Repository navigation
Release v6.43.0
A screen element bound to a command or a query is now offered only when the caller may use it and the part it binds is available, and an author can gate an element directly.
Added
available for,available whenandavailable withon a screenactionand a screendataelement, one form per line. An element gate can only narrow what the bound command or query allows, andPLAY1172warns when a gate could be on while the bound part is not available. (#1379)- Element availability is derived from the bound part:
SemanticScreenAvailability.Evaluatetakes the audiences of the caller and the parts an operator suspended, checks suspension and then the gates down module, feature, slice and construct beforeauthorize, and reports why an element is unavailable (Cause: not authorized, not available, suspended). Without that state it reports everything available, as specifications run. - ESM v59 carries the gate of a screen element as
"available"on a screendataentry and a screenaction, written only when the element has a gate; the v59 golden vector and JSON schema are published. - The TypeScript compiler, the event model board, Monaco and the VS Code grammar understand element gates; the shared conformance vectors hold both compilers to them.
Changed
- A model with no gate on a screen element keeps its earlier ESM version and its syntax JSON bytes.
- The availability, screens and policies documentation describe element gates, and the Invoicing sample shows one.