mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-02 22:12:21 +02:00
Build
This commit is contained in:
parent
70123e5b7f
commit
677e1aa58f
13
assets/scripts/dist/choices.js
vendored
13
assets/scripts/dist/choices.js
vendored
|
@ -1,4 +1,4 @@
|
||||||
/*! choices.js v2.6.0 | (c) 2017 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
|
/*! choices.js v2.6.1 | (c) 2017 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
|
||||||
(function webpackUniversalModuleDefinition(root, factory) {
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
if(typeof exports === 'object' && typeof module === 'object')
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
module.exports = factory();
|
module.exports = factory();
|
||||||
|
@ -171,6 +171,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||||
flippedState: 'is-flipped',
|
flippedState: 'is-flipped',
|
||||||
loadingState: 'is-loading'
|
loadingState: 'is-loading'
|
||||||
},
|
},
|
||||||
|
fuseOptions: {
|
||||||
|
include: 'score'
|
||||||
|
},
|
||||||
callbackOnInit: null,
|
callbackOnInit: null,
|
||||||
callbackOnCreateTemplates: null
|
callbackOnCreateTemplates: null
|
||||||
};
|
};
|
||||||
|
@ -1365,12 +1368,10 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||||
var haystack = this.store.getChoicesFilteredBySelectable();
|
var haystack = this.store.getChoicesFilteredBySelectable();
|
||||||
var needle = newValue;
|
var needle = newValue;
|
||||||
var keys = (0, _utils.isType)('Array', this.config.sortFields) ? this.config.sortFields : [this.config.sortFields];
|
var keys = (0, _utils.isType)('Array', this.config.sortFields) ? this.config.sortFields : [this.config.sortFields];
|
||||||
var fuse = new _fuse2.default(haystack, {
|
var options = Object.assign(this.config.fuseOptions, { keys: keys });
|
||||||
keys: keys,
|
var fuse = new _fuse2.default(haystack, options);
|
||||||
shouldSort: true,
|
|
||||||
include: 'score'
|
|
||||||
});
|
|
||||||
var results = fuse.search(needle);
|
var results = fuse.search(needle);
|
||||||
|
|
||||||
this.currentValue = newValue;
|
this.currentValue = newValue;
|
||||||
this.highlightPosition = 0;
|
this.highlightPosition = 0;
|
||||||
this.isSearching = true;
|
this.isSearching = true;
|
||||||
|
|
2
assets/scripts/dist/choices.js.map
vendored
2
assets/scripts/dist/choices.js.map
vendored
File diff suppressed because one or more lines are too long
4
assets/scripts/dist/choices.min.js
vendored
4
assets/scripts/dist/choices.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue