Repository navigation
Release v4.21.0
Toolbars can offer a single Tab stop, chat hosts can add their own content to messages and the sidebar header, and DataTableCore can have its sort, filter and search state controlled by the host.
Added
ToolbarFocusMode.SingleTabStopforToolbarandActionMenubarimplements the WAI-ARIA toolbar pattern. The toolbar's own tools share one Tab stop, which starts at the first available tool, moves with the arrow keys and returns to the last focused tool. When that tool is disabled, hidden or removed, the Tab stop moves to the next available tool. Controls you add yourself, widgets such as inputs, tools rendered outside the toolbar's markup (for example through a portal), and tools with an explicit tab index keep their own Tab stop.Arrowsremains the default until the next major release. (#353)ChatConversation.renderMessageExtrarenders your content under a message body, for example reactions or a notice that a reply failed.ChatSidebarforwards it. (#194)ChatSidebar.renderHeaderActionsrenders your content between the sidebar title and its close button, and receives the open topic. Neither slot adds markup when you leave it unset. (#194)DataTableCoreacceptssortwithonSortChange,filters(reported through the existingonFilter), andglobalFilterwithonGlobalFilterChange, so the host can own that state. When a value is left undefined, the table keeps managing it as before. SetrowProcessing={DataTableRowProcessing.None}to render rows exactly as given when the source has already filtered and sorted them.DataTableSort,DataTableSortDirectionandDataTableRowProcessingare exported from@cratis/components/DataTables. (#178)