@adaptavant/eds-core@1.48.0
Minor Changes
ad3af47:
Combobox&TimePickernow share the list navigation and dismissal behaviour of the other dropdowns. No prop or type changes.Combobox:onClosenow also fires after an option is selected, and no longer fires for Escape or Tab when the menu was already closed.Combobox: filtering the highlighted option out of the list clears the highlight.aria-activedescendantmoves from the listbox to the input.HomeandEndmove the caret in the input rather than the highlight.- VoiceOver announces an already-selected option as "Selected" again.
e2c3c70:
RichTextEditor: New component for authoring rich text, with a toolbar, file attachments and action bar composed as children.useRichTextEditorowns the editor state;RichTextEditorrenders it and must sit insideField- Formatting, links, attachments and emoji are opt-in
richTextEditor*()features, so unused ones stay out of the bundle value/onChangesupport HTML (default) or JSON, and the initial value can be seeded from markdown- New
@adaptavant/eds-core/tiptapentry point for building custom extensions - Content styles are registered by
createPreset; opt out withshouldExcludeRichTextEditorStyles
b401c53:
Calendar: AddedisDualMonthModeformode="range"- renders two months side by side, pages both together, moves previous/next onto the outer captions and hides the month picker. AddedshowOutsideDays(defaulttrue); when off, leading/trailing days are hidden and the grid drops its fixed six-week height, so no blank week renders.b401c53:
DateRangePicker: Added a dual-month range picker with an optional presets rail and an optional footer, both consumer-supplied slots.value/onValueChangeare the single source of truth, bridged into the calendar slot'scalendarPropsso the calendar's range can never diverge from the picker's. Without a footer, the picker closes itself once the range is complete.e2c3c70:
AttachmentCard: New component that displays a file with its type icon, name and size, with an optional loading spinner and a removable close badge.662cd11:
VirtualTable:- Added
editModewithonCellValueUpdatefor inline cell editing,columnVisibilityfor toggling columns, androwSelection(acceptsmode: 'multiple'only) withgetRowId. isLoadingnow renders a centred spinner in the table body.- An in-progress edit is committed when its row scrolls out of the virtual window. An invalid edit can't be committed, so it is kept instead and shown with its error when the row scrolls back into view.
Table:- Fixed the
aria-rowindexandaria-rowcountfor theTableto show the proper count. - Fixed the loading and empty rows to span only the visible columns.
- An in-progress edit is now committed if its cell unmounts before it loses focus, instead of being dropped.
- Added
b401c53:
Calendar: Added range selection mode (mode="range") alongside the existing single-date mode.CalendarPropsis deprecated and is now an alias ofCalendarSingleProps, so existing usages keep working. UseCalendarSinglePropsfor single mode andCalendarRangePropsfor range mode.Calendar: PassingonUnavailableDateClicknow makesisDateUnavailabledates selectable - clicking one firesonValueChangeas well asonUnavailableDateClick. Without the handler, unavailable dates stay disabled. Dates outsideminValue/maxValueare always disabled.Calendar: RemovedonOutOfRangeDateClick. Out-of-range dates are no longer clickable.DatePicker: thecalendarprop is now typedCalendarSingleProps. DatePicker holds a singleDateand does not support amode="range"Calendar.
Patch Changes
- Updated dependencies [e2c3c70]
- @adaptavant/eds-icons@1.17.0