Commit Graph

51 Commits

Author SHA1 Message Date
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
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
92e1f75321
Prepare to release 0.8.0 (#453) 2019-09-03 16:41:30 -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
b33f4e4f57 remove excess deps 2019-08-23 17:23:17 -07:00
Elliott Marquez
14e5d6ae94 add koa-esm-transform and koa-static packages 2019-08-23 17:22:59 -07:00
Elliott Marquez
90cf8d3860 use karma proxy 2019-08-23 17:22:59 -07:00
Elliott Marquez
28e048f388 ts-ify tests 2019-08-23 17:22:58 -07:00
Alexander Marks
352079f11e
Bump inert polyfill to fix drawer IE bug (#378) 2019-08-16 16:10:22 -07:00
Daniel Freedman
c580ebe19a Split icon button toggling into its own component
- This makes the non-togging case more lightweight
- `<mwc-icon-button>` for non-toggling use cases remains the same
- For toggling, use `<mwc-icon-button-toggle>`
  - `icon` is now `onIcon`

Related to #348
2019-08-15 11:35:22 -07:00
Daniel Freedman
45e11481c9 Add lit-analyzer to linting
- Set up linting in Travis as well
2019-08-12 15:56:11 -07:00
Daniel Freedman
a91de22571 Print CSS Custom Properties of a Sass file
Prints selector, property, and fallback value for the CSS Custom
Properties in a Sass file

Example usage:
```
./scripts/print-css-custom-properties.js packages/snackbar/src/mwc-snackbar.scss
```

Example output:
```css
slot[name=action]::slotted(mwc-button) { --mdc-theme-primary: var(--mdc-snackbar-action-color, #bb86fc) }
```
2019-08-09 14:46:14 -07:00
Alexander Marks
8d2c13e0fa Add font import to demo.
We no longer auto-import fonts.
2019-08-07 14:30:00 -07:00
Alexander Marks
0cdab7ef66
Merge pull request #338 from 43081j/lint-base
update eslint plugin
2019-07-31 15:07:00 -07:00
43081j
4682f2aa14 update eslint plugins 2019-07-31 22:34:45 +01:00
Alexander Marks
58abb6bdc6 Run clang-format 2019-07-31 13:09:45 -07:00
43081j
dfed25a6fa introduce clang-format 2019-07-31 20:15:16 +01:00
43081j
79c7fd3902 update dependencies 2019-07-31 12:12:40 -07:00
43081j
e4af5ad063 introduce web component lint rules 2019-07-31 12:12:40 -07:00
43081j
15e4edca01 introduce eslint deps 2019-07-31 12:12:40 -07:00
Elliott Marquez
3575a3777e update package lock 2019-07-24 17:10:50 -07:00
Elliott Marquez
eb34ec15cc create a benchmark cli 2019-07-24 17:08:53 -07:00
Alexander Marks
4d02314e26 Bump lit-element version for Polymer/lit-element#745 2019-07-24 12:05:36 -07:00
Daniel Freedman
952097e948 Clean up project
- Remove draft versions of components that were not written in
typescript
- Remove draft base classes from mwc-base
- Fix typing in adapter event listeners for typescript update
2019-06-03 15:28:32 -07:00
Frankie Fu
a80761a485 update webcomponentsjs to v2.2.8 2019-04-10 12:06:55 -07:00
Daniel Freedman
a1cc4bf4c5 Update dependencies
- Fix typescript building with 3.4
- Upgrade lerna to 3.x
2019-04-04 15:36:55 -07:00
straversi
40b26270e7 refresh package-lock 2019-04-01 10:24:24 -07:00
Daniel Freedman
e5cd75dd59 Use MDC's types for foundations and adapters
Lots of removal for temporary Foundation lookalikes
2019-03-13 16:03:06 -07:00
Frankie Fu
9d51cc2224 update to mdc 0.44 2019-02-12 11:15:18 -08:00
Daniel Freedman
5cc6d19c11 Add more tests
- Use mocha reporter with "minimal" option, because the output is nice
- Add sourcemap loader back
- Add more components
- Fix mwc-switch tests for `_input` -> `formElement` property name
change
2019-02-01 16:25:28 -08:00
Daniel Freedman
0bb1502e18 Update and change out dependencies
- Replace webpack with rollup for karma
- Remove most of the unused npm scripts
- Fix karma node resolver usage
- Remove webpack test/unit/index.js file
- Sauce runner configs from Polymer
2019-01-30 17:53:53 -08:00
Peter Blazejewicz
e93efc27d1 Update npm-run-all version to fix flatmap-stream dependency
The flatmap-stream has been removed from NPM.
With this change the project installs locally.

Thanks!
2018-12-16 23:02:44 +01:00
Daniel Freedman
fbae6bedd5 fix class-map rename in latest lit-html 2018-12-12 13:00:00 -08:00
Daniel Freedman
16ddf987a8 Remove uglify plugin from demo build
It was doing _weird_ things with Ripple directive
Also lock in version of lit-html, lit-element, and webcomponents
2018-10-08 11:15:38 -07:00
Daniel Freedman
b8b6069538 Update dependencies
- Typescript 3.1
  - Fix radio, drawer, icon-font, and ripple for new DOM typings
- node-sass -> sass
2018-10-02 17:44:04 -07:00
Steven Orvell
a792782e11 add node-watch 2018-09-25 18:28:42 -07:00
Steven Orvell
ded3ad4b5a Merge branch 'typescript' into typescript-new-elements 2018-09-25 18:26:05 -07:00
Daniel Freedman
80bda90d66 Implement watcher
Uses `node-watch` to watch for changes and run `npm run build`
It does too much, but I'm not sure how to do any incremental builds

Fixes #115
2018-09-25 17:44:38 -07:00
Steven Orvell
12da11a737 Update references to use new tabs 2018-09-25 12:26:48 -07:00
Steven Orvell
05754a4d3e Ripple in TypeScript
Updated to render using a Ripple directive.
2018-09-20 17:53:32 -07:00
Daniel Freedman
80f901b4d7 First crazy attempt at typescript conversion
Look at switch and base packages

Move sass building into scripts
2018-09-19 17:35:42 -07:00
Daniel Freedman
213f6773af use released 0.6.0 2018-09-13 17:36:07 -07:00
Frankie Fu
4020a97369 use classMap 2018-09-12 10:15:55 -07:00
Frankie Fu
4d763e2fb6 update to lit-element-0.6.0-dev.6 2018-08-30 16:42:15 -07:00
Frankie Fu
1fb01a0628 update to lit-element#dev (currently 0.6.0-dev.5); make tests passing and demos/index.html working 2018-08-30 15:07:18 -07:00
Russell Bicknell
13a2a76263 Update @webcomponents/webcomponentsjs to v2.0.1 (...)
- The elements in these packages depend on @polymer/lit-element@^0.5.2, which
  depend on lit-html@^0.10.0:

  https://github.com/Polymer/lit-element/blob/v0.5.2/package.json#L39
  (7f01cbb07645248b035fd824e5db62dd96bafaf8)

  lit-html@0.10.1 includes changes which make it incompatible with shadycss
  <1.3.0:

  4dea332e7b

  webcomponentsjs@2.0.1 is the first to build with shadycss >=1.3.0:

  https://github.com/webcomponents/webcomponentsjs/blob/v2.0.0/package-lock.json#L1293
  (df225f93b54f1944318931b770bc5c6b2d5de98d)

  https://github.com/webcomponents/webcomponentsjs/blob/v2.0.1/package-lock.json#L1287
  (c6a97da5621b2f40fe8046c8dd66febb5b0c8120)
2018-06-25 15:00:05 -07:00
Daniel Freedman
2fecbfb463 Make packages use lit-element 0.5.2+ 2018-06-14 15:46:08 -07:00
Daniel Freedman
82e15bf72e Prepare mwc-formfield for release
- Mark non-releasable packages with `private: true`
- Make sure all packages have a proper `publishConfig` for when they can
be released
2018-05-10 11:12:41 -07:00
Daniel Freedman
2182d6478a Make demos easy to publish
- Minor changes to demo pages for rollup compat
2018-05-08 11:23:01 -07:00
Steven Orvell
8310a76180 Update dependencies
* Update to webcomponents-bundle.js
* Update to LitElement 0.4.0
2018-04-30 18:10:36 -07:00