This repository was archived by the owner on Aug 29, 2023. It is now read-only.
Releases: Jinjiang/vue-a11y-utils
Releases · Jinjiang/vue-a11y-utils
Release list
v0.8.0
v0.7.0
v0.6.0
v0.5.0
new experimental <VueFocusTrap>
Changes:
- removed
disabledprop 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
MixinTravelExtended 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): numbersetIndex(vm: Vue, index: number): voidgetItems(vm: Vue): Array<any>
optional properties:
orientation?: stringhasPagination?: booleanhasSearch?: 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
MixinKeyShortcutsintoMixinShortcuts -
deprecated old
MixinKeyTravel&MixinKeyShortcuts