Skip to content

Commit

Permalink
Release v1.0.0 from branch 1-0-0
Browse files Browse the repository at this point in the history
Release v1.0.0
  • Loading branch information
phoenixwong authored Sep 14, 2019
2 parents 66e5599 + 41ffab5 commit cf121b6
Show file tree
Hide file tree
Showing 18 changed files with 5,209 additions and 664 deletions.
50 changes: 48 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,52 @@

> The Change Log of Vue2 Timepicker `vue2-timepicker`
## v 1.0.0

### Breaking Changes

**⚠️ IMPORTANT:** The default **import** source in `v1.0.0+` is different from the `v0.x` versions.

From `v1.0.0+`, CSS is excluded from the main source. Please import the CSS file separately.

```javascript
// v1.0.0+
//
import VueTimepicker from 'vue2-timepicker'
// -> Imports JS file in UMD form

// CSS
import 'vue2-timepicker/dist/VueTimepicker.css'
```

Comparing to:

```javascript
// While in the v0.x versions
import VueTimepicker from 'vue2-timepicker'
// -> Imports the *.vue Single File Component together with CSS
```

Please check the [Documentation](https://github.com/phoenixwong/vue2-timepicker/blob/master/README.md#get-started) for more available import formats.

### New

- Support using _String_ value in `v-model`.
- New `minute-range` and `second-range` support. Companioned with `hide-disabled-minutes` and `hide-disabled-seconds`.
- New `hide-disabled-items` property for hiding **all** excluded items (hour, minute and seconds) at a time.
- New `close-on-complete` for automatically close the dropdown when the user finishes selecting **all** of the required fields.
- Added `advanced-keyboard` support for Arrow Keys navigation and Space/Enter key selection.
- New `tabindex` property support, which will be assigned to the `<input type="text">` within the component.
- Added `debug-mode` to help developers investigating the input -> output process.

### Fixes

Added ES "module" and other version fields in _package.json_ to resolving more loader issues. (Thanks to @Trainmaster)

### Improvements

When `hour-range` is set in a 12-hour format Timepicker, recheck the selected hour's validity after user switching "AM/PM" from the dropdown.

## v 0.2.2

### Fixes
Expand All @@ -10,7 +56,7 @@ Fixes `v-model` watcher for cases like changing the input value programmatically

### Improvements

Added `displayTime` in the return data of `@change` event.
Added `displayTime` in the return data of `change` event.

## v 0.2.1

Expand Down Expand Up @@ -38,12 +84,12 @@ Fixes possible loader issue in some Webpack configs (Thanks to @RaphaelJ)
- New `hour-range` support. Added capability to show which hours are available and disabled the rest.
- New `hide-disabled-hours`. The best companion of `hour-range`, for you to hide unwanted hours in the hour picker.
- New `disabled` parameter. To disable dropdown picker and clear button in the UI.
- Emit `open` and `close` events to help tracking the dropdown toggle status. (Thanks to @tprashan)

### Improvements

- Put `12` before `1` in the hour select for 12-hour format (`hh` and `h`). It will be more natural, especially when paired with `hour-range`.
- Support `name` parameter as regular form inputs. (Thanks to @dilipgurung)
- Emit `open` and `close` events to help tracking the dropdown toggle status. (Thanks to @tprashan)

## v 0.1.4

Expand Down
Loading

0 comments on commit cf121b6

Please sign in to comment.