diff --git a/CHANGELOG.md b/CHANGELOG.md index 65ec1e4..500b89e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,17 +1,34 @@ +# 0.3.0 +### Features + + - Now `focus` event/hook has a fourth parameter `byPointer: boolean`. If user is focused to an item by pointer this parameter will be `true` otherwise `false`. + + - Now `DOMFocus` event has four arguments. Frst argument of `DomFocus` event is `Focus Event`, rest is `Meta, Item, HTMLElement`. + +### Breaking Changes + - Removed `itemHover` event and `Context['onHover']` hook, use focus with fourth parameter instead. + +
+ # 0.2.3 + +### Project Refactors + - Removed unused variables from setup return.
# 0.2.2 +### Doc Updates + - Updated readme
# 0.2.1 - - **[Bug ix]:** If current focused item key doesn't exist anymore, focus will be resetted. - - **[Feature]:** Now `ItemOptions` have `disabled` option. Disabled items have `vue-selectable-items-item-disabled` class. +### Features + - Now `ItemOptions` have `disabled` option. Disabled items have `vue-selectable-items-item-disabled` class. ```ts item({ key: 'myKey', @@ -19,32 +36,37 @@ }) ``` +### Bug Fixes + - If current focused item key doesn't exist anymore, focus will be resetted.
# 0.2.0 - - **[Component]:** `itemFocus`, `itemUnfocus`, `itemDOMFocus`, `itemHover` emits are added. +### Features + + - `itemFocus`, `itemUnfocus`, `itemDOMFocus`, `itemHover` emits are added. - - **[Component]:** `SelectableItems` component now exposes `Context` as template ref. + - `SelectableItems` component now exposes `Context` as template ref. - - **[Lib]:** Now all events has 3 arguments; Meta, Item and HTMLElement. + - Now all events has 3 arguments; Meta, Item and HTMLElement. - - **[Lib]:** New exported functions `filterSelectableAndCustomItems` and `filterSelectableItems`. + - New exported functions `filterSelectableAndCustomItems` and `filterSelectableItems`. - - **[Types]:** Now `onSelect` property of an item has correct type support. + - Now `onSelect` property of an item has correct type support. - ### Breaking Changes - - **[Context]:** `getItemMetaDataByKey` renamed as `getItemMetaByKey` with generic support. `getItemMetabyKey` + - `getItemMetaDataByKey` renamed as `getItemMetaByKey` with generic support. `getItemMetabyKey` - - **[Context]:** `getSelectableItems` now supports generic. `getSelectableItems` + - `getSelectableItems` now supports generic. `getSelectableItems` - - **[Context]:** `getFocusedElement` renamed as `getFocusedItemElement` + - `getFocusedElement` renamed as `getFocusedItemElement` - - **[Context]:** `onMouseEnter` renamed as `onHover` + - `onMouseEnter` renamed as `onHover`
# 0.1.1 +### Doc Updates - Updated readme. diff --git a/src/LICENSE b/LICENSE similarity index 100% rename from src/LICENSE rename to LICENSE diff --git a/package.json b/package.json index fc4fb25..37a3bda 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-selectable-items", - "version": "0.2.3", + "version": "0.3.0", "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/types/index.d.ts",