Commit Graph

678 Commits

Author SHA1 Message Date
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
James Garbutt
e93e16d73b add select() to text fields (#479)
* add select() to text fields

* add setSelectionRange
2019-09-19 16:13:46 -07:00
Elliott Marquez
a1db4aeaa2
Fix internal build (#489)
upstreaming fixes from cl/267202399
2019-09-18 14:03:39 -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
Alexander Marks
621cc4edef Import generated by Copybara.
PiperOrigin-RevId: 268514588
2019-09-11 12:25:15 -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
Alexander Marks
296e38be9e
Bump wicg-inert version to ensure module field exists for bundling. (#464) 2019-09-10 11:39:30 -07:00
Elliott Marquez
6f841a09e8
Changes to Textfield, line-ripple, and floating-label to build (#458)
* make it build internally!

* specify foundations and expand interface

* add explainers and fix typo

* update changelog

* fix changelog typo

* make dev deps deps

* update changelog to only public

* clear up things from clog (internal not external)

* undo all changelog notes
2019-09-05 20:17:51 -07:00
Alexander Marks
a87438e7f9
Standardize format (HTTPS and trailing slash) of MWC links. (#456)
This simplifies some automated internal documentation transformations.
2019-09-05 12:18:32 -07:00
Alexander Marks
e47de0d9d6 v0.8.0 2019-09-03 17:03:26 -07:00
Alexander Marks
92e1f75321
Prepare to release 0.8.0 (#453) 2019-09-03 16:41:30 -07:00
Alexander Marks
5b2ab08d0a
Rename 3 component "base" modules for consistency. (#440) 2019-08-29 18:00:08 -07:00
Alexander Marks
761dc62083
Import TypeScript helpers from tslib, instead of inlining. (#439)
Published JavaScript files no longer include inlined TypeScript helpers such as `__decorate`. Instead, helpers are now imported from the `tslib` module dependency. This reduces code size by allowing multiple components to share the same helpers, and eliminates "this has been rewritten to undefined" errors from Rollup.
2019-08-28 11:47:31 -07:00
Elliott Marquez
05f7ab99fc remove console log and fix format 2019-08-28 02:09:41 -07:00
Elliott Marquez
cdb93f77ed add some readme documentation 2019-08-28 02:09:41 -07:00
Elliott Marquez
a04f214c25 file file references in cli 2019-08-28 02:09:41 -07:00
Elliott Marquez
3b90ee46b1 move the benchmark runner 2019-08-28 02:09:41 -07:00
Elliott Marquez
2f490554f6 make sure to build tests before testing 2019-08-28 02:09:41 -07:00
Elliott Marquez
f8389e38b6 v0.7.1 2019-08-27 19:52:41 -07:00
Elliott Marquez
4818641d09 added PR to changelog 2019-08-27 19:43:48 -07:00
Elliott Marquez
bda16062c4 update changelog for release 2019-08-27 19:43:48 -07:00
Fred K. Schott
e7ef089181 add support for module entrypoint (#434) 2019-08-27 19:32:00 -07:00
Alexander Marks
c8c5d01ad2 v0.7.0 2019-08-27 14:22:34 -07:00
Alexander Marks
d6b4da7274 Update CHANGELOG for 0.7.0 2019-08-27 14:19:20 -07:00
Alexander Marks
65bccda9ed
Some small items before release (#431)
* Make textarea and textfield not NPM private
* Fix typo in button image filename: outlind_with_icon.png
* Support <img> tags in static-urlify-readme-images script
2019-08-27 14:15:27 -07:00
Alexander Marks
34345430a8
Fix "initial" README typo for textarea (#430) 2019-08-27 13:13:07 -07:00
Peter Burns
965b419b2e Make supportsPassiveEventListener a const (#427)
* Make supportsPassiveEventListener a const

This way both humans and machines can verify that it is initialized once and then never changes

* Remove `let` declaration
2019-08-27 10:26:27 -07:00
Peter Burns
fbcf486ec7 Nit: fix typo (#428) 2019-08-27 10:26:04 -07:00
Alexander Marks
45e107fbc3
Organize CHANGELOG for upcoming release. (#425)
- Organized items into Added/Changed/Fixed sections.
- Added **BREAKING** labels.
- Removed items that are only relevant for internal development. I think we should only include things directly relevant to users.
- Mentioned the new READMEs.
- Re-phrased some items for clarity.
- Added PR numbers so users can get more info.
2019-08-26 21:02:01 -07:00
Daniel Freedman
e1ec538f1b
Fix top-app-bar title centering for multiple action icons (#424)
This should be the original behavior before removal
2019-08-26 18:02:53 -07:00
Daniel Freedman
30e4a35b0a
Remove short Top App Bar variant (#422)
* Remove short Top App Bar variant

Design guidance from Material is that the short top app bar is not an
officially supported component.

In the case that this is reconsidered, the removal can be reverted.

* remove demos as well

* remove short from other top app bar readmes
2019-08-26 17:00:41 -07:00
Alexander Marks
aa060417c0
Fix bug where mwc-snackbar labelText could not be set (#412)
This adds a lit directive implementation of @material/mdc-snackbar/util.ts#announce, which does some tricks to ensure that snackbar labels will be handled correctly by screen readers.

The existing MDC announce util function is difficult to use directly here, because Lit can crash when DOM that it is managing changes outside of its purvue. In this case, we would render our labelText as the text content of the label div, but the MDC announce function then clears that
text content, and resets it after a timeout. We do the same thing here, but in a way that fits into Lit's lifecycle.
2019-08-26 15:48:56 -07:00
Alexander Marks
82f58e7c42
Replace top-app-bar internal CSS class getters with methods (#421)
We can never call superclass getters, becuase TypeScript doesn't allow that when transpiled to ES5. See https://github.com/Microsoft/TypeScript/issues/338. In this case, we can just define methods instead of getters.
2019-08-26 14:28:37 -07:00
Elliott Marquez
885abda738 fix readme typos 2019-08-26 14:26:39 -07:00
Elliott Marquez
289898cafc run format 2019-08-26 14:26:39 -07:00
Elliott Marquez
9d3042ce8b validity tests 2019-08-26 14:26:39 -07:00
Elliott Marquez
3cdcf1acd5 fixed lint issues in new code 2019-08-26 14:26:39 -07:00
Elliott Marquez
0aa5f250d3 run formatter 2019-08-26 14:26:39 -07:00
Elliott Marquez
14cd92b472 readme for textarea 2019-08-26 14:26:39 -07:00
Elliott Marquez
080f1df21e more readme changes 2019-08-26 14:26:39 -07:00
Elliott Marquez
bdc09d189c simple readme changes 2019-08-26 14:26:39 -07:00
Elliott Marquez
71f21f9ddd validity docs and validator -> validityTransform 2019-08-26 14:26:39 -07:00
Elliott Marquez
594bfd21ac validate on first render 2019-08-26 14:26:39 -07:00
Elliott Marquez
14675dc02d fix notched outline color on invalid hover 2019-08-26 14:26:39 -07:00
Elliott Marquez
9ec9cab98b first pass at textfield readme 2019-08-26 14:26:39 -07:00
Elliott Marquez
d40ef9062d initial validation implementation 2019-08-26 14:26:39 -07:00
Daniel Freedman
f2a3e34574 actually enable sauce launcher 2019-08-23 17:58:11 -07:00