Skip to content

mwc-select #763

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 161 commits into from
Feb 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
161 commits
Select commit Hold shift + click to select a range
56dc6dd
first attempt at ponyfill
Dec 9, 2019
0338dc3
fix floatLabel
Dec 9, 2019
2955d4c
run formatter
Dec 9, 2019
fbdce5b
menu surface listeners
Dec 9, 2019
789d050
menu listeners
Dec 9, 2019
03aeed8
formatter
Dec 10, 2019
31f7316
fix event listenres
Dec 10, 2019
38957fc
update deps
Dec 13, 2019
369d628
remove debugger
Dec 13, 2019
92a4937
rename file
Dec 13, 2019
da40c51
update packages
Dec 18, 2019
5120eb8
fix anchor
Dec 18, 2019
27fe3b8
fix value / floating issues
Dec 18, 2019
ce988a4
fix notched-outline styles
Dec 18, 2019
98b5319
run lint and format
Dec 18, 2019
b2624f0
fix lint
Dec 18, 2019
8947e6d
fix lint format loop
Dec 18, 2019
278ae43
fix resize and alignment issue
Jan 7, 2020
81889ee
fixed sizing overflow
Jan 7, 2020
8ff4f78
fix tabbing
Jan 7, 2020
c505147
fix slotted menu item styles and focus
Jan 8, 2020
70da6b2
fix lit linting
Jan 8, 2020
4b12226
fix cursor on list
Jan 8, 2020
190ecdd
mwc-list and mwc-list-item
Jan 9, 2020
51e177d
initial pull out of mwc-list and item
Jan 9, 2020
c53d0ab
slim down list styles
Jan 10, 2020
56981f6
fix list controls
Jan 10, 2020
d54bcbc
format
Jan 10, 2020
6310fde
setup package for menu
Jan 10, 2020
38ae407
menu-surface implementation
Jan 11, 2020
69a23ad
format + corner
Jan 11, 2020
29392ae
add missing fns to menu-surface
Jan 11, 2020
5508bd9
reexport types from element declaration
Jan 11, 2020
3f7d8c6
implement menu as element
Jan 11, 2020
86ac2af
pull menu and menu-surface out of select
Jan 11, 2020
6b0cfc6
update deps
Jan 11, 2020
5e7564d
update packages
Jan 15, 2020
e528c49
fix select sass module build
Jan 15, 2020
d6827d4
add comopsite flags to textfield
Jan 16, 2020
d6fa581
add theme dep
Jan 16, 2020
39fcce9
powerwash commands
Jan 16, 2020
6ceabec
check-list-item and radio-list-item
Jan 16, 2020
7f2085d
clean up expensive functions
Jan 16, 2020
528e3df
fix init case
Jan 16, 2020
bbc45c9
pull many stylings from list into list-base
Jan 16, 2020
d0b2419
fix typescript compilation
dfreedm Jan 16, 2020
eaff317
add list-dividers
Jan 17, 2020
7c9971b
radio a11y
Jan 17, 2020
0d5e170
activation of list items
Jan 21, 2020
8542170
fix disabled interactions
Jan 22, 2020
23f24a6
format
Jan 22, 2020
ff3d7be
variants of list-item
Jan 23, 2020
3bd7192
make margin on graphic configuratble
Jan 23, 2020
ab84944
run formatter
Jan 23, 2020
762bd0f
remove unnecessary tsignore
Jan 23, 2020
a5cc091
undo last commit
Jan 23, 2020
97a7d4c
style cleanup
Jan 23, 2020
c9db299
menu style height
Jan 23, 2020
e60cf08
select css cps
Jan 23, 2020
5184861
fix control heights
Jan 23, 2020
f839464
run formatter
Jan 23, 2020
ca1ed34
create non-selectable items
Jan 23, 2020
c5eb4f4
fix non-selectable init
Jan 23, 2020
65ea911
width -> max-width
Jan 23, 2020
baa01d4
implement multi list
Jan 23, 2020
e4dd139
run formatter
Jan 23, 2020
b0a13f0
run linlt fix
Jan 23, 2020
0645f28
fork adapter and foundation with multi
Jan 24, 2020
4c7ae25
fix menu and list for new adapter and foundation
Jan 24, 2020
bbfab9e
fix select's style
Jan 24, 2020
83d2118
rename handleclick
Jan 24, 2020
5b13a39
format
Jan 24, 2020
745aa97
fix ripple
Jan 25, 2020
22be493
validation
Jan 25, 2020
1a48bfd
format
Jan 25, 2020
087b3b3
fix styling
Jan 29, 2020
404ad28
fix notched outline colors
Jan 29, 2020
0865fe6
remove capture true
Jan 30, 2020
f1edd94
remove cssclasses from constants import
Jan 30, 2020
ae3fc6e
remove concept of selectable
Jan 30, 2020
c36ad17
fix selected event
Jan 30, 2020
e625c3f
fix --mdc-list-side-padding
Jan 30, 2020
86e82c4
list demo
Jan 30, 2020
2bceeec
delete jory
Jan 30, 2020
6e2ba03
add list to demos
Jan 30, 2020
c009fb4
add transition to list
Jan 30, 2020
ceb8f66
add meta to list
Jan 30, 2020
ba9b445
make radio change non-breaking
Jan 30, 2020
a614d74
fix radio global in checklist item
Jan 30, 2020
7f2637e
remove vestigial code
Jan 30, 2020
4ef597b
fix list demo role
Jan 30, 2020
cc6c8c0
remove extraneous separator
Jan 30, 2020
e2e3bb8
fix --mdc-list-side-padding
Jan 30, 2020
26910a1
variant screenshots in readme
Jan 30, 2020
1544321
remove anchor directive
Jan 30, 2020
f5b0726
add lit-analyzer events
Jan 31, 2020
05d8583
fix formatting
Jan 31, 2020
9aaebdf
clean up extraneous property declarations
Jan 31, 2020
a62414e
clean up public api of list
Jan 31, 2020
51aea9c
fix layout tabindex
Jan 31, 2020
ddcac4a
clean up list item api
Jan 31, 2020
7d516af
select -> list
Jan 31, 2020
298741e
emits to fires
Jan 31, 2020
92e339a
stop propagating request-selected
Jan 31, 2020
8b51d52
Finish mwc-list readme
Jan 31, 2020
e739819
clean up styles
Jan 31, 2020
d21ed64
update graphic-size docs
Jan 31, 2020
59b5c0d
configure corner
Jan 31, 2020
7ebf4e2
delete anchor
Jan 31, 2020
310d044
fix powerwash
Jan 31, 2020
ecbf4e1
show and close mathods in menu
Jan 31, 2020
8a857b2
fix quick foundation race condition
Jan 31, 2020
b18449e
fix menu groupable
Jan 31, 2020
88a597e
fix keyboard selection on list
Jan 31, 2020
4ff2db4
update list readme for action event
Jan 31, 2020
093c577
make list root tabbable
Jan 31, 2020
f0d77f0
fix some aria interactions
Jan 31, 2020
7403558
Menu demos
Jan 31, 2020
8d086f5
update demos page
Jan 31, 2020
e7d58ca
force group selection
Jan 31, 2020
acfed29
add menu min-width
Jan 31, 2020
1d6d6b4
examples of menu readme
Jan 31, 2020
6eb190d
fix wrap focus
Jan 31, 2020
b217b6b
increase demo body size for click
Jan 31, 2020
2089825
indicate how list items are marked
Jan 31, 2020
17244e7
delete extraneous sections
Jan 31, 2020
abc44be
menu role -> innerRole
Jan 31, 2020
f51ff32
wrap focus on select
Jan 31, 2020
2222aa6
sets corner default value
Jan 31, 2020
29b1a66
remove extraneous position relative in demo
Jan 31, 2020
8261aea
remove menu surface default anchors
Jan 31, 2020
8555571
reactivate absolute
Jan 31, 2020
f586348
fix list readme render issue
Jan 31, 2020
26ffa2f
x and y work for anchor
Jan 31, 2020
e205c8a
remove extraneous functions
Jan 31, 2020
44cfd7b
finish menu readme
Jan 31, 2020
720f1af
fix validity change event
Jan 31, 2020
379da96
add menu fullwidth option
Jan 31, 2020
85d2596
make naturalWidth configurable
Jan 31, 2020
619f444
select demos
Jan 31, 2020
0510851
add mwc icon to demo
Feb 1, 2020
fcbe910
move select demo to alphabetical
Feb 1, 2020
e92fdbf
add textfield bottom line colors
Feb 1, 2020
afc735e
readme variants
Feb 1, 2020
6e51778
fix select icons
Feb 1, 2020
6c855a1
add icon demo
Feb 1, 2020
72900c8
icon example readme
Feb 1, 2020
ce6adfb
expose selected, items, and index on select
Feb 1, 2020
f728cb9
expose layout on menu and select
Feb 1, 2020
a15dc00
fix select's select method
Feb 1, 2020
39c01ee
fix select's underline invalid
Feb 1, 2020
876da0f
fix textfield's underline invalid color
Feb 1, 2020
e060be6
add missing description to menu readme
Feb 1, 2020
0a1b9e0
add missing fires annotation to select
Feb 1, 2020
d02edb5
update missing description
Feb 1, 2020
f7d9ace
finish readme for select
Feb 1, 2020
d12deaa
formatter
Feb 1, 2020
080717e
bump package versions
Feb 1, 2020
cb716b4
update changelog
Feb 1, 2020
f4ceea7
update wrong copyrights
Feb 1, 2020
50636cb
update wrong copyrights
Feb 1, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,20 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Added

- End-alignment to `mwc-textfield` and `mwc-textarea`
- Implemented:
- `mwc-select`
- `mwc-menu`
- `mwc-menu-surface`
- `mwc-list`
- `mwc-list-item`
- Base / utils.ts
- `isNodeElement` - performant node -> element checking
- `deepActiveElementPath` - finds the deepest `activeElement` node
- `doesElementContainFocus` - determines is ancestor of `activeElement`
- `mwc-radio.global` - groups radios across document rather than shadow root
- Style underline of filled textfield
- `--mdc-text-field-idle-line-color`
- `--mdc-text-field-hover-line-color`

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion demos/demo-component.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ header > a {
align-items: center;
}

mwc-icon {
header mwc-icon {
margin: 0 16px;
}

Expand Down
31 changes: 26 additions & 5 deletions demos/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@ class DemoView extends LitElement {
<span class="demo-catalog-list-icon mdc-list-item__graphic"><img src="https://material-components-web.appspot.com/images/ic_component_24px.svg"></span>
<span class="mdc-list-item__text">
Drawer
<span class="mdc-list-item__secondary-text">Multi-selection controls</span>
<span class="mdc-list-item__secondary-text">Navigation to provide access to destinations.</span>
</span>
</a>
<a role="listitem" class="mdc-list-item" href="dialog.html">
<span class="demo-catalog-list-icon mdc-list-item__graphic"><img src="https://material-components-web.appspot.com/images/ic_dialog_24px.svg"></span>
<span class="mdc-list-item__text">
Dialog
<span class="mdc-list-item__secondary-text">Multi-selection controls</span>
<span class="mdc-list-item__secondary-text">Popup that gains user attention.</span>
</span>
</a>
<a role="listitem" class="mdc-list-item" href="formfield.html">
Expand Down Expand Up @@ -148,6 +148,20 @@ class DemoView extends LitElement {
<span class="mdc-list-item__secondary-text">Fills from 0% to 100%, represented by bars</span>
</span>
</a>
<a role="listitem" class="mdc-list-item" href="list.html">
<span class="demo-catalog-list-icon mdc-list-item__graphic"><img src="https://material.io/develop/images/component_icons/list.svg"></span>
<span class="mdc-list-item__text">
List
<span class="mdc-list-item__secondary-text">Lists are continuous, vertical indexes of text or images.</span>
</span>
</a>
<a role="listitem" class="mdc-list-item" href="menu.html">
<span class="demo-catalog-list-icon mdc-list-item__graphic"><img src="https://material.io/develop/images/component_icons/menu.svg"></span>
<span class="mdc-list-item__text">
Menu
<span class="mdc-list-item__secondary-text">Displays a list of choices on a temporary surface.</span>
</span>
</a>
<a role="listitem" class="mdc-list-item" href="radio.html">
<span class="demo-catalog-list-icon mdc-list-item__graphic"><img src="https://material-components-web.appspot.com/images/ic_radio_button_24px.svg"></span>
<span class="mdc-list-item__text">
Expand All @@ -162,6 +176,13 @@ class DemoView extends LitElement {
<span class="mdc-list-item__secondary-text">Touch ripple</span>
</span>
</a>
<a role="listitem" class="mdc-list-item" href="select.html">
<span class="demo-catalog-list-icon mdc-list-item__graphic"><img src="https://material.io/develop/images/component_icons/menu.svg"></span>
<span class="mdc-list-item__text">
Select
<span class="mdc-list-item__secondary-text">Single option dropdown select menus</span>
</span>
</a>
<a role="listitem" class="mdc-list-item" href="slider.html">
<span class="demo-catalog-list-icon mdc-list-item__graphic"><img src="https://material-components-web.appspot.com/images/slider.svg"></span>
<span class="mdc-list-item__text">
Expand Down Expand Up @@ -194,14 +215,14 @@ class DemoView extends LitElement {
<span class="demo-catalog-list-icon mdc-list-item__graphic"><img src="https://material-components-web.appspot.com/images/ic_text_field_24px.svg"></span>
<span class="mdc-list-item__text">
Text field
<span class="mdc-list-item__secondary-text">Single and multiline text fields</span>
<span class="mdc-list-item__secondary-text">Single line text fields</span>
</span>
</a>
<a role="listitem" class="mdc-list-item" href="textarea.html">
<span class="demo-catalog-list-icon mdc-list-item__graphic"><img src="https://material-components-web.appspot.com/images/ic_text_field_24px.svg"></span>
<span class="mdc-list-item__text">
Text area
<span class="mdc-list-item__secondary-text">Single and multiline text areas</span>
<span class="mdc-list-item__secondary-text">Multiline text areas</span>
</span>
</a>
<a role="listitem" class="mdc-list-item" href="top-app-bar.html">
Expand All @@ -224,4 +245,4 @@ class DemoView extends LitElement {
}
}

customElements.define('demo-view', DemoView);
customElements.define('demo-view', DemoView);
Loading