Skip to content

Commit

Permalink
Merge pull request #97 from phoenixwong/alpha
Browse files Browse the repository at this point in the history
Release v1.0.5
  • Loading branch information
phoenixwong authored Dec 8, 2019
2 parents 02ded83 + 5567570 commit b58833f
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 28 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

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

### Fixes

Fixes the Advanced Keyboard tab navigating feature on Firefox

## v 1.0.4

### Improvements
Expand Down
6 changes: 3 additions & 3 deletions dist/VueTimepicker.common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/VueTimepicker.common.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/VueTimepicker.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/VueTimepicker.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/VueTimepicker.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/VueTimepicker.umd.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue2-timepicker",
"version": "1.0.4",
"version": "1.0.5",
"description": "A dropdown time picker (hour|minute|second) for Vue 2.x, with flexible time format support",
"scripts": {
"dev": "cd demo && yarn serve",
Expand Down
34 changes: 17 additions & 17 deletions src/vue-timepicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1310,16 +1310,16 @@ export default {
:name="name"
:value="inputIsEmpty ? null : customDisplayTime"
:placeholder="placeholder || formatString"
:tabindex="disabled ? null : tabindex"
:tabindex="disabled ? -1 : tabindex"
:disabled="disabled"
readonly
@focus="onFocus"
@blur="debounceBlur"
@keydown.esc.exact="escBlur" />
<span class="clear-btn" v-if="!showDropdown && showClearBtn" @click="clearTime">&times;</span>
<div class="time-picker-overlay" v-if="showDropdown" @click="toggleDropdown"></div>
<div class="dropdown" v-show="showDropdown" :style="inputWidthStyle" @mouseup="keepFocusing" @click.stop="">
<div class="select-list" :style="inputWidthStyle">
<span class="clear-btn" v-if="!showDropdown && showClearBtn" @click="clearTime" tabindex="-1">&times;</span>
<div class="time-picker-overlay" v-if="showDropdown" @click="toggleDropdown" tabindex="-1"></div>
<div class="dropdown" v-show="showDropdown" :style="inputWidthStyle" tabindex="-1" @mouseup="keepFocusing" @click.stop="">
<div class="select-list" :style="inputWidthStyle" tabindex="-1">
<!-- Common Keyboard Support: less event listeners -->
<template v-if="!advancedKeyboard">
<ul class="hours">
Expand Down Expand Up @@ -1373,13 +1373,13 @@ export default {
Addeds hundreds of additional event lisenters
-->
<template v-if="advancedKeyboard">
<ul class="hours">
<li class="hint" v-text="hourLabelText"></li>
<ul class="hours" tabindex="-1">
<li class="hint" v-text="hourLabelText" tabindex="-1"></li>
<template v-for="(hr, hIndex) in hours">
<li v-if="!opts.hideDisabledHours || (opts.hideDisabledHours && !isDisabledHour(hr))"
:key="hIndex"
:class="{active: hour === hr}"
:tabindex="isDisabledHour(hr) ? null : tabindex"
:tabindex="isDisabledHour(hr) ? -1 : tabindex"
:data-key="hr"
:disabled="isDisabledHour(hr)"
v-text="hr"
Expand All @@ -1395,13 +1395,13 @@ export default {
@focus="keepFocusing"></li>
</template>
</ul>
<ul class="minutes">
<li class="hint" v-text="minuteLabelText"></li>
<ul class="minutes" tabindex="-1">
<li class="hint" v-text="minuteLabelText" tabindex="-1"></li>
<template v-for="(m, mIndex) in minutes">
<li v-if="!opts.hideDisabledMinutes || (opts.hideDisabledMinutes && !isDisabledMinute(m))"
:key="mIndex"
:class="{active: minute === m}"
:tabindex="isDisabledMinute(m) ? null : tabindex"
:tabindex="isDisabledMinute(m) ? -1 : tabindex"
:data-key="m"
:disabled="isDisabledMinute(m)"
v-text="m"
Expand All @@ -1417,13 +1417,13 @@ export default {
@focus="keepFocusing"></li>
</template>
</ul>
<ul class="seconds" v-if="secondType">
<li class="hint" v-text="secondLabelText"></li>
<ul class="seconds" v-if="secondType" tabindex="-1">
<li class="hint" v-text="secondLabelText" tabindex="-1"></li>
<template v-for="(s, sIndex) in seconds">
<li v-if="!opts.hideDisabledSeconds || (opts.hideDisabledSeconds && !isDisabledSecond(s))"
:key="sIndex"
:class="{active: second === s}"
:tabindex="isDisabledSecond(s) ? null : tabindex"
:tabindex="isDisabledSecond(s) ? -1 : tabindex"
:data-key="s"
:disabled="isDisabledSecond(s)"
v-text="s"
Expand All @@ -1439,13 +1439,13 @@ export default {
@focus="keepFocusing"></li>
</template>
</ul>
<ul class="apms" v-if="apmType">
<li class="hint" v-text="apmLabelText"></li>
<ul class="apms" v-if="apmType" tabindex="-1">
<li class="hint" v-text="apmLabelText" tabindex="-1"></li>
<template v-for="(a, aIndex) in apms">
<li v-if="!opts.hideDisabledHours || (opts.hideDisabledHours && !isDisabledApm(a))"
:key="aIndex"
:class="{active: apm === a}"
:tabindex="isDisabledApm(a) ? null : tabindex"
:tabindex="isDisabledApm(a) ? -1 : tabindex"
:data-key="a"
:disabled="isDisabledApm(a)"
v-text="apmDisplayText(a)"
Expand Down

0 comments on commit b58833f

Please sign in to comment.