mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-09 09:06:37 +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) {
|
||||
if(typeof exports === 'object' && typeof module === 'object')
|
||||
module.exports = factory();
|
||||
|
@ -171,6 +171,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||
flippedState: 'is-flipped',
|
||||
loadingState: 'is-loading'
|
||||
},
|
||||
fuseOptions: {
|
||||
include: 'score'
|
||||
},
|
||||
callbackOnInit: null,
|
||||
callbackOnCreateTemplates: null
|
||||
};
|
||||
|
@ -1365,12 +1368,10 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||
var haystack = this.store.getChoicesFilteredBySelectable();
|
||||
var needle = newValue;
|
||||
var keys = (0, _utils.isType)('Array', this.config.sortFields) ? this.config.sortFields : [this.config.sortFields];
|
||||
var fuse = new _fuse2.default(haystack, {
|
||||
keys: keys,
|
||||
shouldSort: true,
|
||||
include: 'score'
|
||||
});
|
||||
var options = Object.assign(this.config.fuseOptions, { keys: keys });
|
||||
var fuse = new _fuse2.default(haystack, options);
|
||||
var results = fuse.search(needle);
|
||||
|
||||
this.currentValue = newValue;
|
||||
this.highlightPosition = 0;
|
||||
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