Skip to content

v4.6.0

Choose a tag to compare

@lehni lehni released this 16 Oct 20:18
· 437 commits to main since this release

New

  • server: FromModel derives the instance types of models from their properties and relations declared as const, see Deriving types.
  • admin: account.settings in the options of DitoAdmin takes a form that edits the logged-in user, opened through a Settings item in the account menu at /account/settings, without an item in the main menu. It loads and saves the user through api.users.self, by default users/self, and shows the changes in the account menu right away.

Fixes

  • server: The ModelProperties type accepts nested properties of objects without nullable: true, and tuples as JSON Schema 2020 declares them, with prefixItems and items: false, as the validator expects.
  • server: The ModelProperties type accepts $ref without type, definitions with object schemas, and the types that Dito.js adds, e.g. 'asset' and model names.
  • admin: The labels of lists with collapsible: 'all' expand or collapse all items when clicked, not only their double chevron, and their keyboard focus ring encloses the chevron and the text, like the labels of collapsible sections. The double chevron lines up with the chevrons of the items, at the same distance from the text.
  • admin: Long labels of full-width components, e.g. lists in inlined forms, are clipped with an ellipsis again, instead of widening the form.
  • admin: Inputs with label objects, e.g. { text, suffix } or { html }, use the text of the label as their title, instead of passing the object and causing a Vue warning.
  • admin: The details of the active tree item, e.g. "2 items", are shown in translucent white, readable on its blue background.