Skip to content

Commit

Permalink
V0 3 0 (#22)
Browse files Browse the repository at this point in the history
* v0.3.0

* Fix title

* Update changelog and license
  • Loading branch information
kadiryazici authored Oct 18, 2022
1 parent 677c730 commit 9c040d7
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 12 deletions.
44 changes: 33 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,50 +1,72 @@
# 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<Meta>, HTMLElement`.

### Breaking Changes
- Removed `itemHover` event and `Context['onHover']` hook, use focus with fourth parameter instead.

<br>

# 0.2.3

### Project Refactors

- Removed unused variables from setup return.

<br>

# 0.2.2
### Doc Updates

- Updated readme

<br>

# 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',
disabled: true
})
```

### Bug Fixes
- If current focused item key doesn't exist anymore, focus will be resetted.
<br>

# 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<Meta = unknown>`
- `getItemMetaDataByKey` renamed as `getItemMetaByKey` with generic support. `getItemMetabyKey<Meta = unknown>`

- **[Context]:** `getSelectableItems` now supports generic. `getSelectableItems<Meta = unknown>`
- `getSelectableItems` now supports generic. `getSelectableItems<Meta = unknown>`

- **[Context]:** `getFocusedElement` renamed as `getFocusedItemElement`
- `getFocusedElement` renamed as `getFocusedItemElement`

- **[Context]:** `onMouseEnter` renamed as `onHover`
- `onMouseEnter` renamed as `onHover`

<br>

# 0.1.1
### Doc Updates

- Updated readme.

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 9c040d7

Please sign in to comment.