Commit Graph

1277 Commits

Author SHA1 Message Date
Paul Gschwendtner b810e11fa4 build: ship esm bundle (#3443)
* build: ship esm bundle

* Now ships a Flat / ESM bundle (similar as for Angular 4+ releases)
* In future PRs we will remove the single ES-files and can just link to the ES bundle (as in angular/angular).

* Use template strings for diagnostic
2017-03-17 13:25:01 -07:00
Paul Gschwendtner f526c9de87 build(tslint): disallow var keyword (#3625)
* Disallows the var-keyboard in the source files. `var` mostly causes issues with variables, and can be safely replaced with `let`.
2017-03-17 11:15:50 -07:00
Jeferson Estevo 6b6b392c90 bug(button): remove dotted border on firefox (#3583)
Fixes #3582
2017-03-17 11:15:24 -07:00
Andrew Seguin 4e38f69220 feat(tooltip): allow tooltip be disabled (#3578)
* feat(tooltip): allow tooltip be disabled

* hide if disabled while shown
2017-03-17 11:14:28 -07:00
Kristiyan Kostadinov 7cfece2540 build: replace gulp-autoprefixer (#3563)
* build: replace gulp-autoprefixer

* Removes `gulp-autoprefixer` in order to avoid issues with Google's internal build system.
* Switches to adding vendor prefixes via SCSS mixins.
* Adds a custom Stylelint plugin that utilizies Autoprefixer to find unprefixed properties, values, @rules etc.

Fixes #3536.

* fix: missing import

* fix: address feedback
2017-03-17 11:13:38 -07:00
Chang Liu 8f76f96b1a fix(interactivity-checker): cast node name to lowercase for isInputElement function (#3281) 2017-03-17 11:10:39 -07:00
Kristiyan Kostadinov e120e8da92 fix(dialog): leaking component instance references (#2875)
Fixes a memory leak in the dialog, which was causing it to keep references to the user's instantiated dialog in memory forever. It was due to:
1. The portal class wasn't invoking the cleanup function if it didn't have attached content.
2. The dialog ref was keeping the reference after the dialog is closed. There is also a leak related to dialog refs which will be addressed separately.

Fixes #2734.
2017-03-17 11:09:41 -07:00
Paul Gschwendtner 5f3abae3b6 build: show inherited members in dgeni (#3599)
* build: show inherited members in dgeni

* Introduced a new Dgeni processor that will take care of the inherited docs for TypeScript classes.
* Cleaned up the categorizer processor and made it compatible with the `inherited-docs` processor.
* Fixes that the `docs-private-filter` processor doesn't filter the referenced members in the class docs.

This basically allows us to extend other classes in our components like in #3036

* Handle private-docs param for all docs.

* Address comments

* Address feedback
2017-03-17 10:42:17 -07:00
Ed Sinek 91aafffcd2 docs: Update README.md - add tree to feature status list (#3564)
add tree to feature status list
2017-03-17 10:41:02 -07:00
Brian Nenninger aa3360a933 feat(list): add ripples to list items that are links (#930)
* feat(list): add ripples to list items that are links

* Add MdRippleModule to imports
2017-03-15 13:48:40 -07:00
Paul Gschwendtner 05c865da15 build: include license in docs-content (#3557)
* Now includes the `LICENSE` file in the `material2-docs-content` repository. Similar as for `material2-builds`.
2017-03-14 13:11:12 -07:00
Dale Lotts bf2b6150df fix(package.json): Fix failing npm run api command (#3462)
api script was running the incorrect gulp command.
2017-03-14 13:10:27 -07:00
Ed Morales 6915e8a142 fix(autocomplete): update overlay ref width on menu trigger (#3573)
* fix(autocomplete): update overlay ref width on menu trigger

when changing the width of the `host` (or using flex box) the `div.cdk-overlay-pane` kept the width of the host when it was first created

* chore(autocomplete): add pane width unit test

* chore(): parse and round width since firefox and edge return a decimal width

* chore(): update comment to make it more understandable
2017-03-14 13:09:42 -07:00
Paul Gschwendtner 5346353b4d fix(slide-toggle): invalid change events with no new value (#3555)
Currently the slide-toggle will always emit a change event on dragend.
This is not always correct, because the `checked` value only changes if 50% of the distance have been dragged.

Fixes #3526
2017-03-14 13:06:00 -07:00
Paul Gschwendtner 0609e295a5 build: create a util directory (#3558)
* Introduces a new directory called `util` in the gulp setup. This should make the gulp setup more clear and maintainable.
* The utility `task_helpers` no longer includes random utilities like for Firebase. Those have been moved to their own util file (similar as in `e2e/`)
* Refactors the Github Status utility because it can be useful for other things as well (e.g upcoming coverage, payload)
2017-03-14 11:31:15 -07:00
mmalerba 529eaf8a8c Revert "bug(md-select): change the arrow position to absolute (#3580)" (#3598)
This reverts commit 19c19c080b.
2017-03-14 10:26:49 -07:00
Jeferson Estevo 19c19c080b bug(md-select): change the arrow position to absolute (#3580)
Fixes #3112
2017-03-14 10:14:06 -07:00
Jeferson Estevo ef3aa65395 bug(md-slide-toggle): slide toggle should fit to it's content width (#3231)
* bug(md-slide-toggle): slide toggle should fit to it's content width

Fixes #3230

* md-slide-toggle: show each slide toggle on it's own row on demo-app

* fix to slide toggle css (demo)
2017-03-13 16:08:39 -07:00
Paul Gschwendtner 06fd08d822 build: replace forbidden-identifiers with tslint (#3579)
* Replaces the big `forbidden-identifiers` script with TSLint rules.

Closes #2175
2017-03-13 14:26:13 -07:00
Heo 7ffaf9e2aa fix(input): overflow-y scrollbar is displayed (IE) (#3571)
y-scrollbar is displayed when placeholder text line-height is bigger than md-input-placeholder height (on IE browser)

fixes #3570
2017-03-13 14:16:19 -07:00
Kristiyan Kostadinov f8cdd9243c fix(input): label animation shifting sibling labels (#3568)
Prevents the focused animation in inputs from causing sibling inputs to shift slightly.

Fixes #3541.
2017-03-13 14:15:38 -07:00
Kara 932b4a0767 fix(autocomplete): aria-expanded should be updated when panel hides (#3494)
* fix(autocomplete): aria-expanded should be updated when panel hides

* address comments
2017-03-13 14:14:55 -07:00
mmalerba bcb16c615f feat(slider): differentiate sliders focused via keyboard vs other means (#3487) 2017-03-13 14:13:53 -07:00
Jeferson Estevo 290f71097b fix(tabs): change color for disabled tab label (#3483)
Fixes #3481
2017-03-13 14:12:08 -07:00
Kristiyan Kostadinov b9b014ae1b fix(slider): unable to reset tickInterval after it has been set (#3488)
Fixes user not being allowed to reset the `tickInterval` after it has been set to a valid value.

Fixes #3452.
2017-03-13 12:36:23 -07:00
Raven Avalon cdb3763be7 chore(tools/gulp): add html minifying task to generated docs (#3476) 2017-03-10 11:44:18 -08:00
tinayuangao ee853b9f6c fix(tab): use MD_RIPPLE_GLOBAL_OPTIONS in tab (#3553)
* use MD_RIIPLE_GLOBAL_OPTIONS in tab

* .
2017-03-10 11:20:34 -08:00
Kara a4e2de710f fix(autocomplete): fix down arrow use with ngIf (#3493) 2017-03-10 11:19:37 -08:00
Paul Gschwendtner 4d4a63e641 fix: coverage issue with saucelabs (#3540)
* Saucelabs seems to have issues with Edge and the `karma-coverage` plugin.

* Running on Browserstack seems to be work without any flakiness and also makes the build faster (runs less browsers than on saucelabs)
2017-03-10 10:41:49 -08:00
Kristiyan Kostadinov 675c9df9c2 fix(autocomplete): "undefined" being displayed on empty control with ngModel (#3535)
* fix(autocomplete): "undefined" being displayed on empty control with ngModel

Fixes "undefined" being displayed as the autocomplete input's value, if the value is undefined and the input uses `ngModel`.

Fixes #3529.

* const
2017-03-10 10:41:34 -08:00
tinayuangao fe315ef876 clean up radio docs (#3524) 2017-03-10 10:41:14 -08:00
Andrew Seguin 22668af8c5 docs(getting-started): revise docs (#3523)
* docs(getting-started): revise docs

* minor changes
2017-03-10 10:41:00 -08:00
Andrew Seguin 0a7e29345e docs: remove mat stylers from docs (#3517)
* docs: remove mat stylers from docs

* add one more
2017-03-10 10:40:41 -08:00
Marshall Cottrell 359c9bb2df fix(input): make all icons in input containers the correct size (#3489)
* fix(input): make all icons in input containers the correct size

* docs(input): add icon prefix/suffix example
2017-03-10 10:40:19 -08:00
Paul Gschwendtner 23ee63393f build: fix karma console log (#3484)
Karma recently introduced a breaking change, that **hasn't** been noted (https://github.com/karma-runner/karma/issues/2582).

Karma doesn't show any `console.log` calls anymore, because the priority order of the `LogLevel`'s has been changed. The default log leve for the `browserConsoleLog` does no longer include the `LOG` log-level.
2017-03-10 10:39:01 -08:00
Kristiyan Kostadinov 11dec367ba fix(select): unable to set a tabindex (#3479)
* fix(select): unable to set a tabindex

Fixes users not being able to override the `tabIndex` on `md-select`.

Fixes #3474.

* fix: allow use of `tabindex`
2017-03-10 10:38:40 -08:00
Paul Gschwendtner fb75a136e7 feat(ripple): support for global ripple options (#3463)
* feat(ripple): add option to change global speedFactor

* Refactors the `MD_DISABLE_RIPPLES` token to a configuration object, that can also include options like a global `baseSpeedFactor`.

* Fix Angular issue
2017-03-10 10:37:17 -08:00
Elad Bezalel 17bf5e5759 fix(card): removed header height (#3450)
- long titles was overlapping content cause of the height that was applied on the header

fixes #3288
2017-03-10 10:37:04 -08:00
Anand Dyavanapalli 75b440aa09 Adding colon for consistency. (#3248) 2017-03-10 10:36:45 -08:00
Brian Nenninger 2d16a249db fix(chips): Fix adding new chips on demo page (#3426) 2017-03-10 10:36:28 -08:00
Elad Bezalel f02af521b9 style(progress): added transition to color change (#3116) 2017-03-10 10:36:09 -08:00
Andrew Seguin f27617a58b fix(tab-nav): add constructor back for ripple (#3537) 2017-03-09 14:25:16 -08:00
tinayuangao 9849c53c70 stop screenshot (#3506) 2017-03-09 14:21:57 -08:00
mmalerba 5960ade305 class alias tags in html generated from markdown (#3525)
* class alias tags in html generated from markdown

* addressed comments

* address comments
2017-03-09 14:00:55 -08:00
Jeremy Elbourn fc31717fcf chore: publish docs content under angular org (#3508) 2017-03-09 14:00:31 -08:00
Kristiyan Kostadinov 0f28daf70d fix(menu): not emitting close event when closing via the backdrop (#3300)
* fix(menu): not emitting close event when closing via the backdrop

* Fixes the menu not emitting the `close` event if it is closed by clicking on the backdrop.
* Adds missing test coverage for the `close` event in general.

Fixes #3295.

* fix: restore method prefix
2017-03-09 13:59:38 -08:00
Thomas Shafer 84b5c3b061 fix(menu,tooltip): Ensure subscription exists before unsubscribing. (#3078) 2017-03-09 13:58:32 -08:00
mmalerba 5d6920dde6 fix(button): use FocusOriginMonitor for focus styles (#3294)
* use FocusOriginMonitor for md-button focus styles

* format imports

* fix tests

* export style module

* remove style module import in test

* don't re-export StylModule

* clean up imports

* add back stopImmediatePropagation
2017-03-09 13:57:53 -08:00
Kristiyan Kostadinov dcc857664c feat(select): add multiple selection mode (#2722)
* * Integrates the `SelectionModel` into `md-select`.
* Adds the `multiple` option which allows users to select multiple options from a `md-select`.
* Fixes a button that wasn't being cleaned up from dialog tests, causing some select tests to fail.

Fixes #2412.

* fix: remove array literal from template

* fix: avoid issues with material in compatibility mode

* fix: test failure in IE

* fix: checkbox always being rendered inside option
2017-03-09 13:57:12 -08:00
tinayuangao ce0e933e0b clean up button toggle docs (#3521) 2017-03-08 18:12:56 -08:00