Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Releases: Jinjiang/vue-a11y-utils

v0.8.0

21 Oct 07:04
Compare
Choose a tag to compare
  • Upgrade the toolchain to Vite and Vitest.
  • Support both UMD and ESM exports.

v0.7.0

26 Jun 20:29
Compare
Choose a tag to compare
  • improved build process
  • add typescript definition files
  • upgraded all deps (v0.6.2)
  • fixed live region bug in Chrome (v0.6.1)
  • fixed some TypeScript errors (v0.6.1)

v0.6.0

16 Nov 16:59
Compare
Choose a tag to compare
  • removed old MixinKeyTravel and MixinKeyShortcuts
  • updated the docs and examples to match the latest API design

v0.5.0

15 Nov 06:23
Compare
Choose a tag to compare

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

14 Nov 10:59
Compare
Choose a tag to compare
  • fixed component declaration bug in MixinTravel

v0.4.0

14 Nov 09:43
Compare
Choose a tag to compare
  • 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 into MixinShortcuts

  • deprecated old MixinKeyTravel & MixinKeyShortcuts

v0.3.3

14 Nov 09:33
Compare
Choose a tag to compare
  • supported endable keyboard event in MixinKeyShortcuts
  • supported accessing keyboard event in fireAction in MixinKeyTravel

v0.3.2

14 Nov 09:32
Compare
Choose a tag to compare
  • fixed the 'this' context of handlers in MixinKeyShortcuts
  • updated docs

v0.3.1

07 Nov 19:01
Compare
Choose a tag to compare
  • supported preventing default keyboard event by return truthy value in the fireAction() method of MixinKeyTravel
  • improved the docs and website

v0.3.0

01 Nov 15:19
Compare
Choose a tag to compare
  • Supported both traditional CommonJS and TypeScript imports in this published npm package.
  • Added disabled prop for <VueFocusTrap> component.
  • Fixed a bug of id generator in MixinId mixin.