Skip to content

Commit

Permalink
Docs-and-build.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaskar2008 committed Jun 1, 2021
1 parent b187143 commit 8cf267b
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 21 deletions.
18 changes: 11 additions & 7 deletions dist/cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ function _await(value, then, direct) {
return result.then(then);
}return then(result);
}function _invokeIgnored(body) {
var result = body();if (result && result.then) {
var result = body();
if (result && result.then) {
return result.then(_empty);
}
}function _catch(body, recover) {
Expand All @@ -74,15 +75,15 @@ function _await(value, then, direct) {
return result.then(void 0, recover);
}return result;
}function _finally(body, finalizer) {

try {
var result = body();
} catch (e) {
return finalizer();
}if (result && result.then) {
return result.then(finalizer, finalizer);
}return finalizer();
}
var VueSimpleSuggest = {
}var VueSimpleSuggest = {
render: function render() {
var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { staticClass: "vue-simple-suggest", class: [_vm.styles.vueSimpleSuggest, { designed: !_vm.destyled, focus: _vm.isInFocus }], on: { "keydown": function keydown($event) {
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "tab", 9, $event.key, "Tab")) {
Expand Down Expand Up @@ -178,6 +179,10 @@ var VueSimpleSuggest = {
validator: function validator(value) {
return !!~Object.keys(modes).indexOf(value.toLowerCase());
}
},
preventHide: {
type: Boolean,
default: false
}
},
// Handle run-time mode changes (now working):
Expand Down Expand Up @@ -525,7 +530,8 @@ var VueSimpleSuggest = {
suggestionClick: function suggestionClick(suggestion, e) {
this.$emit('suggestion-click', suggestion, e);
this.select(suggestion);
this.hideList();

if (!this.preventHide) this.hideList();

/// Ensure, that all needed flags are off before finishing the click.
this.isClicking = false;
Expand Down Expand Up @@ -589,9 +595,7 @@ var VueSimpleSuggest = {
if (this.text.length < this.minLength) {
this.hideList();
return;
}

if (this.debounce) {
}if (this.debounce) {
clearTimeout(this.timeoutInstance);
this.timeoutInstance = setTimeout(this.research, this.debounce);
} else {
Expand Down
18 changes: 11 additions & 7 deletions dist/es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ function _await(value, then, direct) {
return result.then(then);
}return then(result);
}function _invokeIgnored(body) {
var result = body();if (result && result.then) {
var result = body();
if (result && result.then) {
return result.then(_empty);
}
}function _catch(body, recover) {
Expand All @@ -68,15 +69,15 @@ function _await(value, then, direct) {
return result.then(void 0, recover);
}return result;
}function _finally(body, finalizer) {

try {
var result = body();
} catch (e) {
return finalizer();
}if (result && result.then) {
return result.then(finalizer, finalizer);
}return finalizer();
}
var VueSimpleSuggest = {
}var VueSimpleSuggest = {
render: function () {
var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { staticClass: "vue-simple-suggest", class: [_vm.styles.vueSimpleSuggest, { designed: !_vm.destyled, focus: _vm.isInFocus }], on: { "keydown": function ($event) {
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "tab", 9, $event.key, "Tab")) {
Expand Down Expand Up @@ -164,6 +165,10 @@ var VueSimpleSuggest = {
type: String,
default: 'input',
validator: value => !!~Object.keys(modes).indexOf(value.toLowerCase())
},
preventHide: {
type: Boolean,
default: false
}
},
// Handle run-time mode changes (now working):
Expand Down Expand Up @@ -491,7 +496,8 @@ var VueSimpleSuggest = {
suggestionClick(suggestion, e) {
this.$emit('suggestion-click', suggestion, e);
this.select(suggestion);
this.hideList();

if (!this.preventHide) this.hideList();

/// Ensure, that all needed flags are off before finishing the click.
this.isClicking = false;
Expand Down Expand Up @@ -558,9 +564,7 @@ var VueSimpleSuggest = {
if (this.text.length < this.minLength) {
this.hideList();
return;
}

if (this.debounce) {
}if (this.debounce) {
clearTimeout(this.timeoutInstance);
this.timeoutInstance = setTimeout(this.research, this.debounce);
} else {
Expand Down
7 changes: 6 additions & 1 deletion dist/es7.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ var VueSimpleSuggest = {
type: String,
default: 'input',
validator: value => !!~Object.keys(modes).indexOf(value.toLowerCase())
},
preventHide: {
type: Boolean,
default: false
}
},
// Handle run-time mode changes (now working):
Expand Down Expand Up @@ -436,7 +440,8 @@ var VueSimpleSuggest = {
suggestionClick(suggestion, e) {
this.$emit('suggestion-click', suggestion, e);
this.select(suggestion);
this.hideList();

if (!this.preventHide) this.hideList();

/// Ensure, that all needed flags are off before finishing the click.
this.isClicking = false;
Expand Down
2 changes: 1 addition & 1 deletion dist/iife.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/main.js

Large diffs are not rendered by default.

0 comments on commit 8cf267b

Please sign in to comment.