Appearance
List queries, pickers and sort documents
Generated
Generated by elody-ui reference from the Elody UI vocabulary 0.6.0 (elody-ui.ttl), its meta-shapes (elody-ui.shapes.ttl) and the generator's bindings. Edit the ontology, not this page.
The documents a list element or an entity picker reads: results per type, filters, and the sort options of a page.
Each section is one kind of node: the terms it may carry, the type of each value, how many values it takes and what it means. "unchecked" marks a term the vocabulary defines on this kind of node that the meta-shapes do not constrain yet. "Used by" counts the client declarations that use the term.
List Query
elody:ListQuery: The entities document a list element loads, with its filters document: the result fragment per type (without results the entities document stays hand-written and only the filters document is generated) and the scoping filters (the type, the relation to the entity shown). Named by elody:queryName; the filters document by elody:filtersQuery, else the query name with Filters.
Declared under elody:listQuery of Entity Ui, elody:taggingQuery of Property Shape, elody:listQuery of Element, elody:listQuery of App.
Constraint
a list query names its entities document (elody:queryName) or its filters document (elody:filtersQuery)
| Term | Type | How many | Meaning | Used by |
|---|---|---|---|---|
elody:queryName | xsd:string | at most one | The GraphQL operation name of a form, flow, picker, custom bulk operation set or form source. Optional: the generator derives it from the node's local name when absent (R3). a list query names its entities document, or a filters document alone (an orphan filters document) | 8 of 8 |
elody:queryRoot | an elody:QueryRoot value | at most one | What the list query asks for; unsaid, a page of entities (elody:EntitiesRoot). | 2 of 8 |
elody:rootType | xsd:string | at most one | With elody:queryRoot elody:SingleEntityRoot: the entity type read, fixed in the document (Entity(id: $id, type: "token")) instead of a variable; the document then reads id alone before the per-type selections. | 1 of 8 |
elody:rootCollection | xsd:string | at most one | With elody:rootType: the collection the entity is read from (collection: tokens), an enum value of the API. | 1 of 8 |
elody:filtersQuery | xsd:string | at most one | Operation name of a listing's, a picker's or a list query's filters document, when it is not the query name with Filters. | 8 of 8 |
elody:filtersType | xsd:string | at most one | On a list query or picker: the GraphQL type its filters document narrows to (EntityTypeFilters { ... on QuestionInstance { advancedFilters { ... } } }). Without it the filters are selected on EntityTypeFilters itself. | 1 of 8 |
elody:facets | xsd:boolean | at most one | true reads the facets of the search with the entities document (Entities { facets }). | 1 of 8 |
elody:bareResults | xsd:boolean | at most one | true renders the entities document's results alone: no count, limit or __typename, and the results select nothing of their own (no id, uuid, type or inline type conditions); each result's fragments and listing are rendered directly under results (a map overlay reading id and a few values of every garage). | 1 of 8 |
elody:rootField | xsd:string | at most one | A root field of the client's own schema that reads entities by id (WemOverview(id: $id)), rendered in place of Entities: id, uuid, type, the elody:rootValues, then the per-type selections of elody:result. | 6 of 8 |
elody:rootValues | a list | at most one | The values read on every result of an elody:rootField document, outside the type conditions (intialValues { canUpdate canDelete }), as a list of field names. | 1 of 8 |
elody:filtersSpread | xsd:string | any number | A hand-written fragment on AdvancedFilters spread into the type's filters (...entityAuditFilters). | 3 of 8 |
elody:relationValues | xsd:boolean | at most one | Whether the type's fragments read its relations (relationValues). Default: yes when a property reads a relation, a panel lists related entities or the card has a context menu; no otherwise. true or false overrides the default. relationValues read on every result, outside the per-type selections | 8 of 8 |
elody:readsHost | xsd:boolean | at most one | On a property shape: true reads the value relative to the entity the list is shown on (the keyValue takes uuid: $userUuid). On a list query or picker: the document declares $userUuid: String! (derived too from a result listing that reads the host). Default false. the document declares $userUuid (also derived from a result listing reading the host) | 5 of 8 |
elody:hostOptional | xsd:boolean | at most one | true declares the host's uuid as a nullable variable ($userUuid: String) on a list query that reads the host (elody:readsHost). | 1 of 8 |
elody:result | a Picker Result node | any number | A type the picker may return. | 8 of 8 |
elody:filter | a Filter node | any number | A filter of a listing (EntityUi) or a picker. | 8 of 8 |
Picker
elody:Picker: A pick-from-listing modal: the result fragments per type and the scoping filters. The generator derives both its documents' names from the node.
Declared under elody:picker of Entity Ui, elody:picker of Bulk Operation Modal.
| Term | Type | How many | Meaning | Used by |
|---|---|---|---|---|
elody:result | a Picker Result node | any number | A type the picker may return. no results: the picker's list document is hand-written, only its name (and filters) are declared | 8 of 8 |
elody:facets | xsd:boolean | at most one | true reads the facets of the search with the entities document (Entities { facets }). | 1 of 8 |
elody:filtersSpread | xsd:string | any number | A hand-written fragment on AdvancedFilters spread into the type's filters (...entityAuditFilters). | 3 of 8 |
elody:filtersQuery | xsd:string | at most one | Operation name of a listing's, a picker's or a list query's filters document, when it is not the query name with Filters. | 8 of 8 |
elody:filtersType | xsd:string | at most one | On a list query or picker: the GraphQL type its filters document narrows to (EntityTypeFilters { ... on QuestionInstance { advancedFilters { ... } } }). Without it the filters are selected on EntityTypeFilters itself. | 1 of 8 |
elody:filter | a Filter node | any number | A filter of a listing (EntityUi) or a picker. | 8 of 8 |
elody:filtersQueryName | retired | — | elody:filtersQueryName is retired: the filters document is named after the picker | — |
Picker Result
elody:PickerResult: One GraphQL type a picker may return, with the card fragment that renders it.
Declared under elody:result of List Query, elody:result of Picker.
Constraint
a result spreads at least one fragment or renders an inline listing
| Term | Type | How many | Meaning | Used by |
|---|---|---|---|---|
elody:graphqlType | xsd:string | exactly one | The GraphQL object type this UI (or picker result) is rendered for. Directive: it will be derived from sh:targetClass through the application profile's class-to-type register. | 8 of 8 |
elody:fragment | xsd:string | any number | The name of a GraphQL fragment (a family's card, a picker result). Directive: derivable from the node. | 8 of 8 |
elody:listing | a reference to a Entity Ui node | at most one | On a list query's or picker's result: an EntityUi with elody:emit "inline" whose listing (values, card, view modes) is rendered inside the result (... on Person { intialValues { ... } teaserMetadata { ... } }) instead of, or next to, a fragment spread (elody:fragment). | 5 of 8 |
elody:cardMenuSpread | xsd:string | at most one | A hand-written menu fragment spread on the result's card next to its listing fragment (teaserMetadata { buttons { contextMenu { ...X } } }). | 1 of 8 |
elody:type | retired | — | elody:type is retired: use elody:graphqlType | — |
Sort Document
elody:SortDocument: A sort options document of its own (EntityTypeSortOptions with its options inline), for a page the type's standard sort options do not serve (GetSortOptionsForComments).
Declared under elody:sortDocument of Entity Ui, elody:sortDocument of App.
| Term | Type | How many | Meaning | Used by |
|---|---|---|---|---|
elody:queryName | xsd:string | exactly one | The GraphQL operation name of a form, flow, picker, custom bulk operation set or form source. Optional: the generator derives it from the node's local name when absent (R3). | 8 of 8 |
elody:sortOption | a Sort Option node | one or more | An option of the document, in sh:order. | 7 of 8 |
Sort Option
elody:SortOption: An option of a sort options document: elody:labelKey, elody:value (the sort key), elody:primary, elody:icon.
Declared under elody:sortOption of Sort Document, elody:sortOption of App.
| Term | Type | How many | Meaning | Used by |
|---|---|---|---|---|
sh:order | at most one | The position among its siblings; order never comes from the position in the file. | 8 of 8 | |
elody:labelKey | xsd:string | exactly one | The Elody translation key under which the label is shown. The label text itself is sh:name (property shapes) or rdfs:label (property groups), language-tagged; generate writes those texts into the client's translation bundles under this key. Without elody:labelKey the generator mints ui.<type>.<key>. No standard term: SHACL carries label texts, not an application's translation keys. Left out on a property shape that carries no label text: the label key the key itself carries (em:x elody:labelKey, once per client), else metadata.labels.<key>, the key in kebab-case (elody:defaultRule in the meta-shapes). | 8 of 8 |
elody:value | xsd:string | exactly one | A config entry's value: string, number, boolean, an RDF list of strings, a node holding elody:config entries (an object value), or an elody: enumeration instance (rendered as its enum value, e.g. elody:WktMap). On an elody:FilterOption: the option's value. | 8 of 8 |
elody:primary | xsd:boolean | at most one | Render as the primary button; on a sort option, the option selected by default. | 8 of 8 |
elody:icon | xsd:string | at most one | A DamsIcons name. Open string: the icon set is the platform's and grows. | 8 of 8 |