This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
Releases: Jinjiang/vue-a11y-utils
Releases · Jinjiang/vue-a11y-utils
v0.8.0
v0.7.0
v0.6.0
v0.5.0
new experimental <VueFocusTrap>
Changes:
- removed
disabled
prop because the trap should be globally unique - added
open()
,replace()
,close(returnFocus: boolean)
methods - added
open(lastFocus: HTMLElement | void)
event
Full API:
- methods:
open()
,replace()
,close(returnFocus: boolean)
- events:
open(lastFocus: HTMLElement | void)
,gofirst()
,golast()
- slots: default slot
The docs will be added later when it's stable enough.
v0.4.1
v0.4.0
-
new experimental
MixinTravel
Extended instance methods:
travel($event[, name])
Extended Vue component option:
travel
:TravelConfig
(for default name)travel
:Record<name, TravelConfig>
The format of `TravelConfig:
required methods:
getIndex(vm: Vue): number
setIndex(vm: Vue, index: number): void
getItems(vm: Vue): Array<any>
optional properties:
orientation?: string
hasPagination?: boolean
hasSearch?: boolean
optional travel methods:
move?( vm: Vue, event: KeyboardEvent, newIndex: number, oldIndex: number, items: Array<any> ): any;
search?( vm: Vue, event: KeyboardEvent, keyword: string, index: number, items: Array<any> ): any;
nextPage?( vm: Vue, event: KeyboardEvent, index: number, items: Array<any> ): any;
prevPage?( vm: Vue, event: KeyboardEvent, index: number, items: Array<any> ): any;
optional action methods:
action?(vm: Vue, event: KeyboardEvent, index: number, items: Array<any>): any;
enter?(vm: Vue, event: KeyboardEvent, index: number, items: Array<any>): any;
space?(vm: Vue, event: KeyboardEvent, index: number, items: Array<any>): any;
esc?(vm: Vue, event: KeyboardEvent, index: number, items: Array<any>): any;
The docs will be added later when it's stable enough.
-
renamed
MixinKeyShortcuts
intoMixinShortcuts
-
deprecated old
MixinKeyTravel
&MixinKeyShortcuts