2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-05-23 03:54:04 +03:00
Commit Graph

65 Commits

Author SHA1 Message Date
Jeff 8063da9a21 Merge pull request #378 from SKalt/patch-3
Custom filter function, now with tests
2018-01-12 18:55:24 -08:00
Jeff e5498bb748 Merge pull request #368 from andywarren86/clear-button
Add clear button to single select
2018-01-09 09:20:27 -08:00
Jeff cb324e0240 Revert "Fix linter" 2018-01-04 16:53:29 -08:00
Lexxus 4bf6c0ce44 Fix code style issues 2017-12-29 12:07:15 +02:00
Jeff 73e67a673b - add dev example
- rename `filterOptions` prop to `filterable`
- update tests
2017-12-09 09:50:30 -08:00
Jeff 283cb4f49b Merge pull request #386 from alfatraining/add-prop-to-disable-option-filtering
Add prop to disable option filtering
2017-12-09 09:43:49 -08:00
Eleftherios Pegiadis 602bffb90b Add test cases for the filterOptions prop 2017-12-06 14:07:56 +02:00
Andrew fcf9a8e8b7 Add tests 2017-11-30 19:35:18 +11:00
Andrew 5465b77436 Add tests 2017-11-30 19:06:30 +11:00
Steven Kalt 47750233ba added test of custom filter function 2017-10-26 12:45:12 -04:00
Unknown 10e8516639 Killed production tip in spec 2017-10-26 12:20:04 -04:00
Unknown a7562402c7 Modified spec to include warning of defective options objects 2017-10-26 12:19:23 -04:00
Andrew d6b822771b Prevent removal of items when disabled 2017-10-20 21:18:57 +11:00
Jeff 199701507c fixes tests from #249 2017-10-01 17:09:56 -07:00
Jeff b8b5e59e54 Merge pull request #118 from evanslify/master
Add option to disable the entire component
2017-10-01 13:46:51 -07:00
Jeff 072bf4160d Merge pull request #171 from fidgetwidget/non-multiple-improvements
Added features to non multiple selects
2017-04-24 11:23:34 -07:00
Brandon Bey 1f8b30164e Added code coverage for the additional logic. 2017-04-03 12:32:31 -07:00
Kori Roys ecd76ce4dd improving name for should-dropdown-close option. adding test 2017-04-01 12:07:19 +02:00
Kori Roys 897b0d8fb2 Add option to allow closing a multi-select when a value is selected 2017-03-31 15:10:24 +02:00
Evans Y 76fe00f956 Merge branch 'master' into master 2017-03-24 16:10:25 +08:00
Jeff Sagal bae486a8e3 - move mutableLoading data property to ajax mixin
- open dropdown only when not loading
- add watcher to keep loading synced with mutableLoading
2017-03-22 18:33:32 -07:00
es e6c5967cf8 Merge remote-tracking branch 'upstream/disable-component' 2017-03-22 10:36:18 +08:00
es cb2883fcd6 Merge remote-tracking branch 'upstream/master' 2017-03-21 15:23:05 +08:00
Jeff Sagal 546418da1f - fix variable reference (showLoading should have been mutableLoading) in ajax mixin and specs
- add `search` event fired at same time as callback
2017-03-16 15:38:40 -07:00
Jeff Sagal f67a352481 throw console warning if option[label] does not exist, prevents TypeError from breaking page
closes #155
2017-03-09 12:55:44 -08:00
Jeff Sagal 156fcb1130 - fix Vue 2 peer dependency
- fix typo in readme
- add test coverage for focus/blur events
2017-02-03 16:39:07 -08:00
Jeff Sagal cbeffafb17 - better background color for 'active' dropdown option
- simplify conditional logic in select()
	- less nested conditionals
	- tagging logic moved to createOption method
	- add option:created event
	- pull up push tags logic to it's own method
- improve isOptionSelected so that functionality is exactly the same as v1
	- hitting enter on an already added tag will remove it from the value instead of doing nothing
2017-02-02 16:40:11 -08:00
Jeff Sagal b096555b68 component
- switch to `v-if` (#98)
- update array string filter to be case-insensitve

testing
- update karma to hide output from skipped tests
- skip scroll down test until http://github.com/vuejs/vue-loader/issues/434 is resolved

build
- add dev.html to be used as entry point for development
2017-01-24 22:23:15 -08:00
es 669984718d Add option to disable the entire component 2016-12-26 17:12:56 +08:00
Jeff Sagal f5e3e25dc0 fixes:
- change currentSelection to mutableValue
- change currentOptions to mutableOptions
- change showLoading to mutableLoading
- add default onChange function that emits an input event
	- allows the use of v-model syntax on the component
- since spies on props throw warnings because they are now immutable, refactor tests so spies aren't required

todo:
- update docs
- 1 failing test from inject-loader issue
2016-12-20 10:53:49 -08:00
Rajesh Akkineni 23355ea246 Some more changes.
changed from actualValue to currentSelection
2016-10-22 17:55:17 +05:30
Rajesh Akkineni 52e555e02f Fixed more issues for vue2.0 & updated tests 2016-10-20 11:48:56 +05:30
akkinenirajesh b2c201dde9 Changed test to call select instead of set
But no idea why value is readonly property.
2016-10-20 08:05:14 +05:30
Jeff Sagal afdc4da785 manually track down options when deselecting instead of relying on array.$remove, fixes #74 2016-07-11 22:13:43 -07:00
Jeff Sagal 6eead7a702 resetOnOptionsChange true by default, remove redundant test 2016-07-11 16:29:18 -07:00
Jeff Sagal 7c96fb5813 remove stray coverage file 2016-07-11 16:21:35 -07:00
Jeff Sagal 650c2f432a remove ignored coverage 2016-06-22 16:23:26 -07:00
Blaine Ehrhart 361aba64d9 Added resetOnOptionsChange parameter to allow changing the options of the select without resetting the value. This is extra useful for ajax request, especially slow ajax requests 2016-06-20 16:17:00 -07:00
Jeff Sagal 0a15c00b0c fix #54 and add regression test, use 2 space indents 2016-06-16 15:00:08 -07:00
Jeff Sagal 480bfc1c5f ajax mixin 100% coverage, ready for production 2016-06-15 20:34:24 -07:00
Jeff Sagal f8e549306a use keydown for moving pointer, resolves #45 2016-05-31 18:35:01 -07:00
Jeff Sagal 737ab8d1fc separate logic into mixin, complete test coverage with mocks and spies 2016-05-31 13:54:36 -07:00
Jeff Sagal cf87f838fd remove wrapper, start add tests 2016-05-31 10:18:55 -07:00
Jeff Sagal f682f03946 complete dropdown toggle tests 2016-05-29 20:44:42 -07:00
Jeff Sagal b743425aca Merge branch 'master' into webpack
# Conflicts:
#	.gitignore
2016-05-29 14:01:24 -07:00
Jeff Sagal 458445f6e6 update test verbiage 2016-05-29 12:38:38 -07:00
Jeff Sagal 0b4d41f53d minor ignore/package updates 2016-05-29 12:36:20 -07:00
Jeff Sagal b4cbf25f26 adjust srcContext, add coveralls hook 2016-05-28 17:06:41 -07:00
Jeff Sagal 802daaa117 switch to web pack build 2016-05-28 15:50:02 -07:00
Jeff Sagal 03ba6376e3 bump test coverage up to 95%, deprecate getOptionValue, small optimizations 2016-05-28 11:58:18 -07:00