Skip to content

Commit fd47467

Browse files
committed
Docs-and-build.
1 parent 744c52a commit fd47467

File tree

8 files changed

+20
-45
lines changed

8 files changed

+20
-45
lines changed

dist/cjs.js

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ function _empty() {}function _awaitIgnored(value, direct) {
5353
}
5454
}function _invoke(body, then) {
5555
var result = body();if (result && result.then) {
56+
5657
return result.then(then);
5758
}return then(result);
5859
}function _await(value, then, direct) {
@@ -87,11 +88,7 @@ function _empty() {}function _awaitIgnored(value, direct) {
8788
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "tab", 9, $event.key, "Tab")) {
8889
return null;
8990
}_vm.isTabbed = true;
90-
} } }, [_c('div', { ref: "inputSlot", staticClass: "input-wrapper", class: _vm.styles.inputWrapper, attrs: { "role": "combobox", "aria-haspopup": "listbox", "aria-owns": _vm.listId, "aria-expanded": !!_vm.listShown && !_vm.removeList ? 'true' : 'false' } }, [_vm._t("default", [_c('input', _vm._b({ staticClass: "default-input", class: _vm.styles.defaultInput, domProps: { "value": _vm.text || '' } }, 'input', _vm.$attrs, false))])], 2), _vm._v(" "), _c('transition', { attrs: { "name": "vue-simple-suggest" } }, [!!_vm.listShown && !_vm.removeList ? _c('ul', { staticClass: "suggestions", class: _vm.styles.suggestions, attrs: { "id": _vm.listId, "role": "listbox", "aria-labelledby": _vm.listId }, on: { "mouseenter": function mouseenter($event) {
91-
return _vm.hoverList(true);
92-
}, "mouseleave": function mouseleave($event) {
93-
return _vm.hoverList(false);
94-
} } }, [!!this.$scopedSlots['misc-item-above'] ? _c('li', [_vm._t("misc-item-above", null, { "suggestions": _vm.suggestions, "query": _vm.text })], 2) : _vm._e(), _vm._v(" "), _vm._l(_vm.suggestions, function (suggestion, index) {
91+
} } }, [_c('div', { ref: "inputSlot", staticClass: "input-wrapper", class: _vm.styles.inputWrapper, attrs: { "role": "combobox", "aria-haspopup": "listbox", "aria-owns": _vm.listId, "aria-expanded": !!_vm.listShown && !_vm.removeList ? 'true' : 'false' } }, [_vm._t("default", [_c('input', _vm._b({ staticClass: "default-input", class: _vm.styles.defaultInput, domProps: { "value": _vm.text || '' } }, 'input', _vm.$attrs, false))])], 2), _vm._v(" "), _c('transition', { attrs: { "name": "vue-simple-suggest" } }, [!!_vm.listShown && !_vm.removeList ? _c('ul', { staticClass: "suggestions", class: _vm.styles.suggestions, attrs: { "id": _vm.listId, "role": "listbox", "aria-labelledby": _vm.listId } }, [!!this.$scopedSlots['misc-item-above'] ? _c('li', [_vm._t("misc-item-above", null, { "suggestions": _vm.suggestions, "query": _vm.text })], 2) : _vm._e(), _vm._v(" "), _vm._l(_vm.suggestions, function (suggestion, index) {
9592
return _c('li', { key: _vm.getId(suggestion, index), staticClass: "suggest-item", class: [_vm.styles.suggestItem, {
9693
selected: _vm.isSelected(suggestion),
9794
hover: _vm.isHovered(suggestion)
@@ -229,7 +226,6 @@ function _empty() {}function _awaitIgnored(value, direct) {
229226
text: this.value,
230227
isPlainSuggestion: false,
231228
isClicking: false,
232-
isOverList: false,
233229
isInFocus: false,
234230
isFalseFocus: false,
235231
isTabbed: false,
@@ -416,9 +412,6 @@ function _empty() {}function _awaitIgnored(value, direct) {
416412

417413
this.hovered = item;
418414
},
419-
hoverList: function hoverList(isOverList) {
420-
this.isOverList = isOverList;
421-
},
422415
hideList: function hideList() {
423416
if (this.listShown) {
424417
this.listShown = false;
@@ -522,7 +515,7 @@ function _empty() {}function _awaitIgnored(value, direct) {
522515
this.hideList();
523516

524517
/// Ensure, that all needed flags are off before finishing the click.
525-
this.isClicking = this.isOverList = false;
518+
this.isClicking = false;
526519
},
527520
onBlur: function onBlur(e) {
528521
var _this6 = this;
@@ -531,7 +524,7 @@ function _empty() {}function _awaitIgnored(value, direct) {
531524

532525
/// Clicking starts here, because input's blur occurs before the suggestionClick
533526
/// and exactly when the user clicks the mouse button or taps the screen.
534-
this.isClicking = this.isOverList && !this.isTabbed;
527+
this.isClicking = this.hovered && !this.isTabbed;
535528

536529
if (!this.isClicking) {
537530
this.isInFocus = false;
@@ -552,9 +545,7 @@ function _empty() {}function _awaitIgnored(value, direct) {
552545
this.isTabbed = false;
553546
},
554547
onFocus: function onFocus(e) {
555-
this.isInFocus = true;
556-
557-
// Only emit, if it was a native input focus
548+
this.isInFocus = true; // Only emit, if it was a native input focus
558549
if (e && !this.isFalseFocus) {
559550
this.$emit('focus', e);
560551
}

dist/es6.js

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ function _empty() {}function _awaitIgnored(value, direct) {
3737
}
3838
}function _invoke(body, then) {
3939
var result = body();if (result && result.then) {
40+
4041
return result.then(then);
4142
}return then(result);
4243
}function _async(f) {
@@ -81,11 +82,7 @@ function _empty() {}function _awaitIgnored(value, direct) {
8182
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "tab", 9, $event.key, "Tab")) {
8283
return null;
8384
}_vm.isTabbed = true;
84-
} } }, [_c('div', { ref: "inputSlot", staticClass: "input-wrapper", class: _vm.styles.inputWrapper, attrs: { "role": "combobox", "aria-haspopup": "listbox", "aria-owns": _vm.listId, "aria-expanded": !!_vm.listShown && !_vm.removeList ? 'true' : 'false' } }, [_vm._t("default", [_c('input', _vm._b({ staticClass: "default-input", class: _vm.styles.defaultInput, domProps: { "value": _vm.text || '' } }, 'input', _vm.$attrs, false))])], 2), _vm._v(" "), _c('transition', { attrs: { "name": "vue-simple-suggest" } }, [!!_vm.listShown && !_vm.removeList ? _c('ul', { staticClass: "suggestions", class: _vm.styles.suggestions, attrs: { "id": _vm.listId, "role": "listbox", "aria-labelledby": _vm.listId }, on: { "mouseenter": function ($event) {
85-
return _vm.hoverList(true);
86-
}, "mouseleave": function ($event) {
87-
return _vm.hoverList(false);
88-
} } }, [!!this.$scopedSlots['misc-item-above'] ? _c('li', [_vm._t("misc-item-above", null, { "suggestions": _vm.suggestions, "query": _vm.text })], 2) : _vm._e(), _vm._v(" "), _vm._l(_vm.suggestions, function (suggestion, index) {
85+
} } }, [_c('div', { ref: "inputSlot", staticClass: "input-wrapper", class: _vm.styles.inputWrapper, attrs: { "role": "combobox", "aria-haspopup": "listbox", "aria-owns": _vm.listId, "aria-expanded": !!_vm.listShown && !_vm.removeList ? 'true' : 'false' } }, [_vm._t("default", [_c('input', _vm._b({ staticClass: "default-input", class: _vm.styles.defaultInput, domProps: { "value": _vm.text || '' } }, 'input', _vm.$attrs, false))])], 2), _vm._v(" "), _c('transition', { attrs: { "name": "vue-simple-suggest" } }, [!!_vm.listShown && !_vm.removeList ? _c('ul', { staticClass: "suggestions", class: _vm.styles.suggestions, attrs: { "id": _vm.listId, "role": "listbox", "aria-labelledby": _vm.listId } }, [!!this.$scopedSlots['misc-item-above'] ? _c('li', [_vm._t("misc-item-above", null, { "suggestions": _vm.suggestions, "query": _vm.text })], 2) : _vm._e(), _vm._v(" "), _vm._l(_vm.suggestions, function (suggestion, index) {
8986
return _c('li', { key: _vm.getId(suggestion, index), staticClass: "suggest-item", class: [_vm.styles.suggestItem, {
9087
selected: _vm.isSelected(suggestion),
9188
hover: _vm.isHovered(suggestion)
@@ -211,7 +208,6 @@ function _empty() {}function _awaitIgnored(value, direct) {
211208
text: this.value,
212209
isPlainSuggestion: false,
213210
isClicking: false,
214-
isOverList: false,
215211
isInFocus: false,
216212
isFalseFocus: false,
217213
isTabbed: false,
@@ -388,9 +384,6 @@ function _empty() {}function _awaitIgnored(value, direct) {
388384

389385
this.hovered = item;
390386
},
391-
hoverList(isOverList) {
392-
this.isOverList = isOverList;
393-
},
394387
hideList() {
395388
if (this.listShown) {
396389
this.listShown = false;
@@ -491,14 +484,14 @@ function _empty() {}function _awaitIgnored(value, direct) {
491484
this.hideList();
492485

493486
/// Ensure, that all needed flags are off before finishing the click.
494-
this.isClicking = this.isOverList = false;
487+
this.isClicking = false;
495488
},
496489
onBlur(e) {
497490
if (this.isInFocus) {
498491

499492
/// Clicking starts here, because input's blur occurs before the suggestionClick
500493
/// and exactly when the user clicks the mouse button or taps the screen.
501-
this.isClicking = this.isOverList && !this.isTabbed;
494+
this.isClicking = this.hovered && !this.isTabbed;
502495

503496
if (!this.isClicking) {
504497
this.isInFocus = false;
@@ -524,9 +517,7 @@ function _empty() {}function _awaitIgnored(value, direct) {
524517
this.isTabbed = false;
525518
},
526519
onFocus(e) {
527-
this.isInFocus = true;
528-
529-
// Only emit, if it was a native input focus
520+
this.isInFocus = true; // Only emit, if it was a native input focus
530521
if (e && !this.isFalseFocus) {
531522
this.$emit('focus', e);
532523
}

dist/es7.js

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,7 @@ var VueSimpleSuggest = {
3737
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "tab", 9, $event.key, "Tab")) {
3838
return null;
3939
}_vm.isTabbed = true;
40-
} } }, [_c('div', { ref: "inputSlot", staticClass: "input-wrapper", class: _vm.styles.inputWrapper, attrs: { "role": "combobox", "aria-haspopup": "listbox", "aria-owns": _vm.listId, "aria-expanded": !!_vm.listShown && !_vm.removeList ? 'true' : 'false' } }, [_vm._t("default", [_c('input', _vm._b({ staticClass: "default-input", class: _vm.styles.defaultInput, domProps: { "value": _vm.text || '' } }, 'input', _vm.$attrs, false))])], 2), _vm._v(" "), _c('transition', { attrs: { "name": "vue-simple-suggest" } }, [!!_vm.listShown && !_vm.removeList ? _c('ul', { staticClass: "suggestions", class: _vm.styles.suggestions, attrs: { "id": _vm.listId, "role": "listbox", "aria-labelledby": _vm.listId }, on: { "mouseenter": function ($event) {
41-
return _vm.hoverList(true);
42-
}, "mouseleave": function ($event) {
43-
return _vm.hoverList(false);
44-
} } }, [!!this.$scopedSlots['misc-item-above'] ? _c('li', [_vm._t("misc-item-above", null, { "suggestions": _vm.suggestions, "query": _vm.text })], 2) : _vm._e(), _vm._v(" "), _vm._l(_vm.suggestions, function (suggestion, index) {
40+
} } }, [_c('div', { ref: "inputSlot", staticClass: "input-wrapper", class: _vm.styles.inputWrapper, attrs: { "role": "combobox", "aria-haspopup": "listbox", "aria-owns": _vm.listId, "aria-expanded": !!_vm.listShown && !_vm.removeList ? 'true' : 'false' } }, [_vm._t("default", [_c('input', _vm._b({ staticClass: "default-input", class: _vm.styles.defaultInput, domProps: { "value": _vm.text || '' } }, 'input', _vm.$attrs, false))])], 2), _vm._v(" "), _c('transition', { attrs: { "name": "vue-simple-suggest" } }, [!!_vm.listShown && !_vm.removeList ? _c('ul', { staticClass: "suggestions", class: _vm.styles.suggestions, attrs: { "id": _vm.listId, "role": "listbox", "aria-labelledby": _vm.listId } }, [!!this.$scopedSlots['misc-item-above'] ? _c('li', [_vm._t("misc-item-above", null, { "suggestions": _vm.suggestions, "query": _vm.text })], 2) : _vm._e(), _vm._v(" "), _vm._l(_vm.suggestions, function (suggestion, index) {
4541
return _c('li', { key: _vm.getId(suggestion, index), staticClass: "suggest-item", class: [_vm.styles.suggestItem, {
4642
selected: _vm.isSelected(suggestion),
4743
hover: _vm.isHovered(suggestion)
@@ -167,7 +163,6 @@ var VueSimpleSuggest = {
167163
text: this.value,
168164
isPlainSuggestion: false,
169165
isClicking: false,
170-
isOverList: false,
171166
isInFocus: false,
172167
isFalseFocus: false,
173168
isTabbed: false,
@@ -344,9 +339,6 @@ var VueSimpleSuggest = {
344339

345340
this.hovered = item;
346341
},
347-
hoverList(isOverList) {
348-
this.isOverList = isOverList;
349-
},
350342
hideList() {
351343
if (this.listShown) {
352344
this.listShown = false;
@@ -441,14 +433,14 @@ var VueSimpleSuggest = {
441433
this.hideList();
442434

443435
/// Ensure, that all needed flags are off before finishing the click.
444-
this.isClicking = this.isOverList = false;
436+
this.isClicking = false;
445437
},
446438
onBlur(e) {
447439
if (this.isInFocus) {
448440

449441
/// Clicking starts here, because input's blur occurs before the suggestionClick
450442
/// and exactly when the user clicks the mouse button or taps the screen.
451-
this.isClicking = this.isOverList && !this.isTabbed;
443+
this.isClicking = this.hovered && !this.isTabbed;
452444

453445
if (!this.isClicking) {
454446
this.isInFocus = false;

0 commit comments

Comments
 (0)