2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-05-17 02:29:37 +03:00
Commit Graph

451 Commits

Author SHA1 Message Date
Jeff 48782a7664 Fix slot warning, update to slot-scope 2018-08-12 19:29:27 -07:00
Jeff 80eefd414e disable linting on data files 2018-08-12 19:26:18 -07:00
Jeff b8696bcee9 Update gitignore, add build:dev command 2018-08-12 19:22:12 -07:00
Jeff 046d4ced34 Update yarn dev command and environment 2018-08-12 18:16:10 -07:00
Jeff 1c15fa0abd Fix console output in Jest runs 2018-08-12 13:51:09 -07:00
Jeff c03b634a24 Complete labels spec 2018-08-12 13:42:07 -07:00
Jeff 0946165e9c Complete dropdown spec 2018-08-12 13:25:13 -07:00
Jeff 4b5601b572 Complete deselecting spec 2018-08-12 13:05:26 -07:00
Jeff 8e22400ce4 refactor ajax tests to use helpers 2018-08-12 12:33:30 -07:00
Jeff eed25d7a5a - migrate tagging spec
- add helpers
2018-08-12 12:33:13 -07:00
Jeff 3c2e8c1f03 Complete 'index' prop tests 2018-08-12 11:47:56 -07:00
Jeff 294d16913f Complete pointer specs 2018-08-12 11:23:59 -07:00
Jeff 1554080852 Complete Layout specs 2018-08-12 09:56:38 -07:00
Jeff 3078fa62d9 Complete AJAX specs 2018-08-12 09:51:36 -07:00
Jeff 143874a58c Further progress on test suite migration, all tests moved out of old files 2018-08-11 22:44:06 -07:00
Jeff d4954de84d Complete 'selecting' test suite 2018-08-11 14:45:33 -07:00
Jeff 459fcb9c89 start converting unit tests 2018-08-09 20:09:56 -07:00
Jeff de734846c7 pull config to package.json 2018-08-09 20:08:48 -07:00
Jeff 5c251f52e0 Remove build and config folders 2018-08-07 23:03:45 -07:00
Jeff c0ff41403b vue cli scaffolding in place 2018-08-07 23:00:31 -07:00
Jeff e8e5eff553 Merge branch 'kball-add-select-on-tab-option'
# Conflicts:
#	src/components/Select.vue
2018-08-07 21:16:44 -07:00
Jeff 237e946c19 Pull onTab up to prop, add test 2018-08-07 21:13:34 -07:00
Jeff 6866dee6b4 Merge branch 'click-tag-to-toggle-dropdown' of https://github.com/stevenharman/vue-select into stevenharman-click-tag-to-toggle-dropdown
# Conflicts:
#	src/components/Select.vue
2018-08-07 20:58:13 -07:00
Jeff 3d819e55f7 Merge branch 'stevenharman-flexbox-based-layout'
# Conflicts:
#	src/components/Select.vue
#	test/unit/specs/Select.spec.js
2018-08-07 20:50:57 -07:00
Jeff adb1c88220 - Update v-select__ prefix to vs__ for brevity
- Adjust right padding on dropdown indicator
- remove dead clearfix code / class
2018-08-07 20:36:19 -07:00
Jeff b0f58d7793 Merge commit 'b92428101f1c6d4aa1fe864a88eb7079c245e009'
# Conflicts:
#	test/unit/specs/Select.spec.js
2018-08-07 19:47:13 -07:00
Jeff Sagal af4e55cc93 Merge pull request #607 from beattyml1/master
Added combobox, listbox, and option roles, Closes #606
2018-08-02 21:20:47 -07:00
Matthew Beatty 7e3f455154 Also indicate whether or not dropdown is expanded 2018-08-01 13:26:47 -04:00
Matthew Beatty d00b567428 Added the combobox, listbox, and option roles to the input, ul, and li items respectively per W3C spec, Closes #606 2018-08-01 13:04:08 -04:00
Steven Harman 9a5d666bd1 Maintain stable height when selected
We need the selected-tag and input to have the same line height, and
same border widths so the height of the content (either a selected-tag
or the input) is stable. Otherwise the v-select will change height by a
few pixels when a value is selected vs empty.
2018-07-20 11:44:04 -04:00
Steven Harman faa548106f Remove unnecessary positioning rule.
This is left over from the days of absolutely-positioning the select
elements.
2018-07-19 16:44:56 -04:00
Steven Harman 34a3a34a99 Use relatively-sized close trigger
So that it respects changes in the font-size of the select itself.
2018-07-19 16:44:46 -04:00
Steven Harman 76cfd7cad9 Clicking a selected tag toggles dropdown 2018-07-19 16:31:27 -04:00
Steven Harman 3ef668e078 Rely on flexbox adjusting input size
Except when "hidden", when we want it to to make it invisible, but still
focusable.
2018-07-19 15:25:52 -04:00
Steven Harman 22449bc3f2 Give actions full height, but center them visually
Meaning the are larger click targets, but still centered in the box.
2018-07-19 12:51:07 -04:00
Steven Harman 746ea25ac9 Consistent padding for selected-tags and input
Flexbox means we can rely on each child of the selected-options
container pushing itself way from neighbors, while also wrapping to
multiple lines when the width gets short! So we're removing the
hard-coded heights and letting things flow as they might, with inner
padding and outer margins doing the work of keeping sufficient space
between things.
2018-07-19 12:51:07 -04:00
Steven Harman 34df80314e Ensure input take available space, but not more.
`flex-grow` will stretch the input to take all remaining space, but We
need to ensure a small amount of space so there's room to type input.
We'll set the input to "hidden" (via width: 0) when the dropdown is
closed, to prevent adding a "blank" line (see:
https://github.com/sagalbot/vue-select/pull/512). In that case, the
flex-grow will still stretch the input to take any available space, on
the same "line."

This really needs https://github.com/sagalbot/vue-select/pull/512 to
work best.
2018-07-19 12:51:07 -04:00
Steven Harman a5555a6c6a Toggle dropdown when mousedown in "empty space"
We might have "empty" space w/in the select box, but outside of the
input. In that case, we still want to toggle the dropdown when clicking
on that "empty" space.
2018-07-19 12:51:07 -04:00
Steven Harman e926b6e007 Use a flexbox-based layout
This change move away from floats and absolute positioning in favor of
flexbox. Flexbox allows us to solve some of the more quirky issues we're
having with elements (e.g, the input) being too big, causing "extra line
breaks", vertical alignment of close buttons, etc... and simplified RTL
support!

I did need to introduce two new child elements to the `dropdown-toggle`
element. These are used to group all of the selected tags and the input
in one group. And the "actions" (clear button, dropdown indicator, and
spinner) in another. Doing so has the added benefit of no longer
allowing selected options from running "under" those other elements.

NOTE: The large blocks of change are due to white space differences from
indenting inside those new wrapper elements. View the diff ignoring
white space to see a more accurate representation of the change here.
2018-07-19 12:51:07 -04:00
Jeff Sagal a0c8efe0e5 Merge pull request #512 from eriknygren/fix-unexpected-wrapping-on-single-select
Fixing unexpected linebreak on single selects
2018-07-19 08:57:28 -07:00
Jeff Sagal fd32f50379 Update README.md 2018-07-04 09:15:32 -07:00
Erik Nygren 16b6bd7d09 Fix hidden input when reselecting in single mode
What
---
- Removing hidden class from single inputs when the dropdown is hidden.
- Changing from `display:none` to zero width when hiding the input.

Why
---
Because the user will be typing for another element if reopening the
dropdown, which we need to allow.
2018-06-15 19:02:20 +01:00
Jeff Sagal dd490488d0 Merge pull request #556 from NowServingUs/master
Inherit font-family instead of using 'sans-serif'
2018-06-08 09:55:50 -07:00
Todd Baur 3e7866f100 Merge pull request #1 from NowServingUs/nowserving-patch-1
allow component to inherit font family choices
2018-06-07 21:03:33 +09:00
Todd Baur 62adbb47b6 allow component to inherit font family choices
I ran into this issue where the component was using the browser's default san-serif font, which of course we don't use. This will allow it to just take the font from the application its used in and continue on without much friction.
2018-06-07 21:01:59 +09:00
Kevin Ball d2efc965f9 Add select on tab option and example 2018-06-05 15:47:52 -07:00
Jeff 867a74cddb Merge pull request #457 from golubkovden/patch-1
Update README.md
2018-05-09 14:52:59 -07:00
Jeff 058e1fd088 Merge pull request #532 from luisDanielRoviraContreras/patch-1
Add license in README.md
2018-05-09 14:52:32 -07:00
ldrovira 68a14d4d6c Add license in README.md 2018-05-06 12:46:17 -04:00
Erik Nygren 970d1da3c2 Fixing unexpected linebreak on single selects
What
---
- Hiding the search input field if the component is in the single value
option.
- Making the search input field full width if no options are selected in
	either single or multi select mode.
- Shrinking it to width auto if there are selected entries in multi
	mode.
Why
---
The component broke into two lines when selecting a a value in single
mode, because an empty, non-interactable input field was pushed down to
the next row if the selected entry had a long label.
2018-04-18 13:22:11 +01:00