Commit Graph

92 Commits

Author SHA1 Message Date
Liz Mitchell
3aaa921e4e Prepare release v0.11.1 2019-11-26 15:33:34 -08:00
Liz Mitchell
71ae3f6ec2 preparing release v0.11.0 2019-11-26 13:45:16 -08:00
Liz Mitchell
73d7191c92 Merge branch 'master' into fix/icon-button-slot 2019-11-18 11:29:55 -08:00
Alexander Marks
4fbcc717e8 Fix mwc-dialog behavior on disconnect
- We no longer trigger an exception in the blocking elements polyfill in some scenarios. This happened when a dialog was opened and then quickly disconnected before the opening animation finished, because we were trying to add a disconnected element to the blocking elements stack. We now close the foundation (or don't open in the first place if we're _really_ early) on disconnect, which cancels the opening timer. This is a scenario that can easily crop up in tests, since tests don't necessarily wait for the opening event before tearing down the test fixture DOM.

- If a dialog is opened, disconnected, and re-connected, we now re-show the opening animation, and correctly put the dialog back onto the blocking elements stack.

PiperOrigin-RevId: 281077807
2019-11-18 08:59:11 -08:00
Copybara-Service
e783c7d8ac Merge pull request #609 from material-components:slider-scroll-fix
PiperOrigin-RevId: 280540014
2019-11-15 00:43:03 -08:00
Copybara-Service
48afbc613f Merge pull request #613 from material-components:slider-readme
PiperOrigin-RevId: 280538658
2019-11-14 17:22:56 -08:00
Copybara-Service
7b54397225 Merge pull request #621 from material-components:linear-progress-docs
PiperOrigin-RevId: 280525050
2019-11-14 16:19:40 -08:00
Copybara-Service
711f77d006 Merge pull request #448 from abraham:fab-label
PiperOrigin-RevId: 280439903
2019-11-14 15:43:44 -08:00
Elliott Marquez
7466da8aa8 'from' -> 'instead of' 2019-11-13 17:26:33 -08:00
Liz Mitchell
ae2ff721d0 Use default slot for mwc-icon-button #557 2019-11-13 15:25:52 -08:00
Elliott Marquez
94c29a04ce add extra changelog item 2019-11-08 19:41:22 -08:00
Elliott Marquez
474088ce6e theme-secondary -> linear-progress-buffer-color 2019-11-08 19:14:22 -08:00
Elliott Marquez
c86a527b53 update changelog 2019-11-08 17:58:10 -08:00
Alexander Marks
1ecc674991 Add README for form field, and examples to checkbox/radio/switch
Fixes https://github.com/material-components/material-components-web-components/issues/587

PiperOrigin-RevId: 279426189
2019-11-08 17:44:39 -08:00
Elliott Marquez
1bfff2f17d update changelog 2019-11-08 16:48:45 -08:00
Elliott Marquez
1d17398490 Merge branch 'master' into slider-readme 2019-11-07 20:59:32 -08:00
Elliott Marquez
ee1eb74ddf update changelog for icon-button 2019-11-07 20:27:13 -08:00
Elliott Marquez
8536b78299 add missing ripple changelog 2019-11-07 20:27:13 -08:00
Elliott Marquez
e02bfcbce1 update slider changelog 2019-11-07 20:27:13 -08:00
Elliott Marquez
0bfdf2dc0e update changelog 2019-11-06 19:27:04 -08:00
Elliott Marquez
74172477a7 changelog 2019-11-05 20:07:39 -08:00
Polymer Bot
fb42a5ca99 Expand app content inside drawer
Fixes https://github.com/material-components/material-components-web-components/issues/535

PiperOrigin-RevId: 276521443
2019-10-24 10:51:32 -07:00
Daniel Freedman
4a5768ab67 Add README for drawer 2019-10-22 11:02:56 -04:00
Alexander Marks
677cabae11 Add missing CHANGELOG entry for https://github.com/material-components/material-components-web-components/pull/564
PiperOrigin-RevId: 275529513
2019-10-18 12:59:26 -07:00
Elliott Marquez
7367069cce fix changelog
PiperOrigin-RevId: 275159895
2019-10-16 18:54:54 -07:00
Copybara-Service
dcc6f94f13 Merge pull request #560 from material-components:canary-birb
PiperOrigin-RevId: 275108953
2019-10-16 14:17:17 -07:00
Alexander Marks
48601af45b Restore CHANGELOG entry for 0.9.1
Somehow this commit got dropped at some point: 854f90c291

PiperOrigin-RevId: 275100971
2019-10-16 13:29:40 -07:00
Elliott Marquez
deb66686ca update changelog 2019-10-16 12:32:37 -07:00
Elliott Marquez
03c5e0a2a6 update changelog 2019-10-14 16:24:27 -07:00
Alexander Marks
719756edfb Prepare to release 0.10.0 2019-10-11 14:30:31 -07:00
Alexander Marks
221e54f938 Fix mwc-radio group synchronization when not created/connected simultaneously
Selection groups are keyed by root (document or shadow root). Before, we created our selection group controller at construction. This is fine when creating and connecting at the same time (e.g. in HTML, or in a simple lit template), but fails otherwise, because we get the wrong root. Now we defer creating our controller until connectedCallback, so that we always get the correct root.

Fixes https://github.com/material-components/material-components-web-components/issues/282

Supersedes https://github.com/material-components/material-components-web-components/pull/279

(Also small fix to mwc-textarea.test.ts to avoid use of any)

PiperOrigin-RevId: 274241115
2019-10-11 14:25:52 -07:00
Copybara-Service
8f2dc362e1 Merge pull request #549 from material-components:textfield-styling
PiperOrigin-RevId: 274226975
2019-10-11 12:48:21 -07:00
Elliott Marquez
971d926e0e update changelog 2019-10-09 16:37:14 -07:00
Alexander Marks
3dd956f7d5 Move character-counter-directive out of its own directory.
In Google, every directory containing TypeScript files must be a
directory with a BUILD file (a package), and packages cannot contain
dashes. We could handle this case with a transformation, but it seems
simpler to just keep a flatter layout upstream.
2019-10-08 17:10:03 -07:00
Alexander Marks
af4ea8e0c2 Remove mwc-icon-font.js
Let's just have the one way to load fonts, as documented in our README.
Updated all the demos to use the same recommendation.
2019-10-08 13:54:28 -07:00
Elliott Marquez
4f09458c91 Internal change
PiperOrigin-RevId: 272562049
2019-10-02 18:15:37 -07:00
Alexander Marks
bbe04b314f Internal change
PiperOrigin-RevId: 272555953
2019-10-02 18:04:37 -07:00
Elliott Marquez
dc9fef71a9
fix changelog (#531) 2019-10-02 17:59:34 -07:00
Elliott Marquez
b06979a7b7
update changelog from internal (#529) 2019-10-02 17:54:25 -07:00
Elliott Marquez
32c99e7920 Older browser support for mwc-dialog.
Fixes Polymer/internal#335.

PiperOrigin-RevId: 272550369
2019-10-02 17:28:06 -07:00
Alexander Marks
b48c7597f2 Add period to CHANGELOG.
This is a contrived CL to force Copybara's CL sync point ahead.

PiperOrigin-RevId: 272317303
2019-10-02 16:53:23 -07:00
Elliott Marquez
ae4eb57f71
ready changelog for release (#502) 2019-09-26 18:34:02 -07:00
Elliott Marquez
ce807c35c5
Fix outlined textfield notch when initially rendered hidden (#488)
fixes #444 by providing the mwc-textfied.layout() method.

In this PR:

added layout function
notch performs layout when label is changed
fixed hidden bug where foundation was being recreated too often
caused bug where changing maxLength caused foundation to unset invalid
had to pull logic out of foundation and into registerValidationAttributeHandler
The issue: when the label is floating and the element is outlined, but the label has no width, e.g.
mwc-textfield[outlined][label="something"][value="something"][hidden]

the mdc dataflow will calculate the size of the notch as zero. When hidden is removed, the notch will not update in size. Here we give them the layout method.

It is not possible to know when the textfield is changed from display: none to visible without setting a resize observer on the label. I wanted to avoid that because of possible render trashing and the overall heaviness of resizeObserver and a polyfill. Instead, it is up to the user to call layout when they change the visibility of the element.
2019-09-26 18:20:07 -07:00
Elliott Marquez
31d1d1a406
fix disabled styles on textarea (#492)
* fix disabled on textarea

* include disabled background fix on fullwidth

* update changelog
2019-09-20 15:43:44 -07:00
Elliott Marquez
100be45fb4
fix extra spacing – older browsers (#493)
* fix extra spacing – older browsers

* fix css colors on 'required' asterisk

* update changelog
2019-09-20 15:40:26 -07:00
Elliott Marquez
29015e2db7
update textfield value on input instead of change (#490)
* update textfield value on input instead of change

* update changelog

* deleted testing code
2019-09-20 15:33:37 -07:00
Elliott Marquez
2d43e4626d
Textfield fix ie (#491)
* IE fixes for textfield

* run formatter

* update changelog
2019-09-20 13:51:01 -07:00
Elliott Marquez
2da5724c2b
mwc-dialog (#462)
* initial scaffolding for dialog

* add focus and blur functions to mwc-button

* flesh out dialog implementation

* do not display action footer if no actions slotted

* only layout on listeners if open

* run formatter

* scrollable actually is handled by adapter / found

* fix reversing of actions

* - slotchange + `hideActions`, buttons->actions

* fix slotted styles

* remove style tag mutation

* change style dependencies

* don't leak mdc in dialog actions and initial-focus atributes

* make action and focus attributes configurable

* add css custom properties to dialog

* forgot to change checkbox to dialog

* dialog was made in 2019

* button -> action and remove isVisible

* removed leaky events from dialog lifecycle

* clean up tsconfig

* add unit tests

* textfield -> dialog

* run formatter

* fix multiple dialogs

* fix scrolling

* try to make max-width better

* initial pass at making older tests pass

* escape key on document instead

* run formatter

* fix lint issues

* try more arcane keyboardevent for older browsers

* fix styling associated with multiple in sec action

* fix focus on textfield

* also fix blur on textfield

* mwc-dialog demo

* add dialog to the main demo page

* fix typo in demo

* fix style edge case max-width too small cause jump

* redo change to max-width jumping

* first half of readme

* include video tag in static urlify script

* finish readme

* regenerate package-lock

* fix readme typo

* change confirmation gif size

* cleanup extraneous readme code

* do not override mdcfoundation.open

* make stacked a css change rather than DOM

* make stacked a css change rather than DOM impl

* add color swatches to readme

* fix all test file copyright dates

* add in the styles for the list in the readme

* use formfield in confirmation example

* scrollable degification

* make styled example the same as spec page

* dedupe initial focused example readme

* small dialog readme fixes

* update initial focus readme example

* moved alert example to top and commented out Simple example

* update standard gif to be static

* move event listeners to open an close

* readme change suggestions

* HTMLSlotElement removed from public props

* make public props lit element props

* primary-action => primaryAction; d-i-f => dIF;

* implement suggestions

* run formatter

* resolve merge issues
2019-09-12 18:14:47 -07:00
Alexander Marks
01c58e7baf Import symbols from lit-element and lit-html directly. (#472)
Previously, mwc-base re-exported lit-element and lit-html. While that
approach does make it a little easier to manage dependencies, it's
better to include the dependency directly. Lerna can easily be used
install/upgrade a dependency across all or a subset of packages.

- Users are likely to copy this style. We would prefer that if they use
  lit, they directly depend on it, instead of depending on our base class
  even when they may not need it.

- It locks us into using lit in our implementation without a breaking
  change. No plans to change that, but it's just one less thing in our
  API surface.

- It works better for internal Google tooling because the lit dependency
  can be analyzed statically.
2019-09-12 17:12:49 -07:00
Elliott Marquez
85da4fa18a
Fix focus button textfield (#463)
* add focus and blur functions to mwc-button

* fix focus on textfield

* also fix blur on textfield

* run formatter

* update changelog

* lintfix

* update changelog to match older style

* make ripple a dep vs dev dep

* focus and blur buttons with or without ripple
2019-09-10 11:41:14 -07:00