Граф коммитов

201 Коммитов

Автор SHA1 Сообщение Дата
Mu-An 慕安 c6527659a7
use CustomEvent$Init 2019-04-15 16:49:24 -04:00
David Graham 158baa4d10
Update relatedTarget example 2019-04-15 11:34:28 -06:00
David Graham e7cdf26da2
Merge pull request #20 from github/auto-complete-event
Add AutocompleteEvent subclass
2019-04-12 16:52:46 -06:00
David Graham d6381ad378
Add AutocompleteEvent subclass
Allows relatedTarget to be used without null checks and type assertions
on the HTMLInputElement. It's guaranteed to be included in the event.

Co-authored-by: Mu-An Chiou <muan@github.com>
2019-04-12 13:42:41 -06:00
David Graham 5dc978fdf8
Fix node resolve deprecation warning
Co-authored-by: Mu-An Chiou <muan@github.com>
2019-04-12 13:40:34 -06:00
David Graham 2c5bfffb9f
Suppress default export warning
Co-authored-by: Mu-An Chiou <muan@github.com>
2019-04-12 13:39:29 -06:00
David Graham 7be14ad6f6
Merge pull request #19 from github/event-names
Prefix auto-complete-change event name
2019-04-11 16:33:37 -06:00
David Graham ea3cf21c9b
Include input as relatedTarget in change event 2019-04-10 16:45:05 -06:00
David Graham 35d3261a24
Remove unused toggle event 2019-04-10 15:27:02 -06:00
David Graham b95c57dae8
Prefix auto-complete-toggle event name and bubble 2019-04-10 11:25:28 -06:00
David Graham dbf43c0e05
Prefix auto-complete-change event name
This avoids conflicts with the child input's change event, requiring
listeners to test `event.target` to determine which element dispatched
the change event.
2019-04-10 10:28:43 -06:00
David Graham d61062b4c4
Update development dependencies 2019-04-10 10:22:26 -06:00
Mu-An Chiou 466c1f6847
0.8.1 2019-03-01 16:47:00 -05:00
慕安 6a02aee418
Merge pull request #17 from github/clickyclick
Upgrade combobox-nav for anchor click fix
2019-03-01 16:46:41 -05:00
Mu-An Chiou 78a0b96c70
Upgrade combobox-nav for anchor click fix 2019-03-01 13:45:35 -05:00
Mu-An Chiou c7ef68e1a3
Ensure default behavior goes through 2019-03-01 13:45:35 -05:00
Mislav Marohnić 4d08908c34 0.8.0 2019-02-22 11:28:27 +01:00
Mislav Marohnić 00cf07d36c
Merge pull request #16 from github/modern-js
Update for modern browsers
2019-02-22 11:27:12 +01:00
Mislav Marohnić c2e8e699cd Use `github-lint` 2019-02-22 11:24:56 +01:00
Mislav Marohnić e20aa838ff Update for modern browsers
- adopt babel-preset-github (drop IE 11)
- stop transforming custom element classes
- flow strict
2019-02-22 11:23:14 +01:00
David Graham 657b61dcab
Update development dependencies 2019-02-19 10:30:20 -07:00
慕安 f7210793e3
Merge pull request #15 from github/use-combobox-nav
Replace keyboard binding code with combobox-nav
2019-01-15 16:03:14 -05:00
Mu-An Chiou 7b05950423
Undo comment 2019-01-15 13:49:13 -05:00
Mu-An Chiou 521668d7eb
Upgrade comobobox-nav to ensure click on disabled item is cancelled 2019-01-14 17:39:01 -05:00
Mu-An Chiou 989e829b12
Merge remote-tracking branch 'origin/master' into use-combobox-nav 2019-01-11 16:18:56 -05:00
David Graham 2b580964d2
Update rollup and babel plugins 2019-01-07 14:03:03 -07:00
Mu-An Chiou 91488ce3bf
Upgrade combobox-nav and fix build 2019-01-07 11:35:33 -05:00
Mu-An Chiou 1634d65daa
Ensure build breaks 2019-01-07 11:31:21 -05:00
Mu-An Chiou a08610f756
Add test to ensure disabled items don't get committed 2019-01-07 11:29:44 -05:00
Mu-An Chiou 2c9f896c24
Patch aria-owns attribute for backwards compatibility 2019-01-04 17:28:48 -05:00
Mu-An Chiou c27d30d6d7
Replace keyboard binding code with combobox-nav 2019-01-04 17:22:39 -05:00
Mu-An Chiou 1751e45ba6
Merge pull request #13 from staabm/patch-1
Include unpkg script to be served for gh-pages
2018-11-09 09:26:33 -05:00
Mu-An Chiou 82de843a06
Update examples/index.html
Co-Authored-By: staabm <maggus.staab@googlemail.com>
2018-11-09 15:24:38 +01:00
Markus Staab 45b6c77817
Include unpkg script to be served for gh-pages 2018-11-09 09:48:35 +01:00
Mu-An ✌️ Chiou 27fb42d73e
0.7.0 2018-08-27 16:28:50 -04:00
Mu-An Chiou 7477d9948c
Merge pull request #11 from github/no-style
Remove style setting on results container
2018-08-27 16:28:02 -04:00
Mu-An ✌️ Chiou ee321a34d9
Add back hidden attr toggle 2018-08-27 13:55:59 -04:00
Mu-An ✌️ Chiou 2b26184ab7
Add test for results hidden state 2018-08-27 13:55:28 -04:00
Mu-An ✌️ Chiou 7f2ed26b11
Remove CSS styling in JS
This can be control by users using CSS styles more flexibly
2018-08-27 13:51:59 -04:00
David Graham a23823b438
Fix typo 2018-08-20 11:54:00 -06:00
David Graham 7ed8429347
Link to web component support 2018-08-20 11:52:58 -06:00
David Graham ec49cc086d
Document events and attributes 2018-08-20 11:52:46 -06:00
David Graham bc895b5865 0.6.0 2018-08-10 15:29:16 -06:00
David Graham 1edf23ed60
Merge pull request #10 from github/navigate-link-option
Support links as result menu items
2018-08-10 15:26:14 -06:00
David Graham 0512dde4a8
Support links as result menu items
Navigate to the link destination rather than committing the link text as
the auto-completed value. This is useful for including actions at the
end of the result list, like "learn more" or "create new item".
2018-08-10 13:29:14 -06:00
David Graham a457fcd02d
Update development dependencies 2018-08-10 13:14:59 -06:00
David Graham 65b2940173 0.5.0 2018-08-01 12:29:11 -06:00
muan e79901e2bd
Merge pull request #8 from github/enter-submit
Allow submit on enter
2018-08-01 14:24:20 -04:00
David Graham 3ecfe37f34
Merge pull request #9 from github/escape
Create escape key event boundary
2018-08-01 12:14:58 -06:00
David Graham bc7b161f55
Create escape key event boundary
When an <auto-complete> element is a child of another element that
provides Escape key behavior, like <details-dialog>, it should stop
event propagation to prevent closing both the completion list and the
dialog.

Pressing Escape while the completion list is closed should bubble up to
the dialog and allow it to close.
2018-08-01 12:07:30 -06:00