Commit Graph

1732 Commits

Author SHA1 Message Date
Will Howell 734eccc148 feat(tooltip): add mdTooltipClass for customizing (#4893) 2017-06-14 19:29:23 -07:00
Esteban Marin 40f92c569a fix(tabs): fix tab translation animation in IE 11 (#4982) (#4986) 2017-06-14 19:28:50 -07:00
Kristiyan Kostadinov ea76acf117 refactor: shorter error constructors (#5135) 2017-06-14 19:28:05 -07:00
Jeremy Elbourn 99fc6685aa Revert "fix(portal): detect changes for portal hostview while before attaching. (#4370)" (#5131) 2017-06-14 17:10:49 -07:00
Paul Gschwendtner 7b5b18d5e7 build: get previous payload by querying git (#5122) 2017-06-14 14:50:37 -07:00
Paul Gschwendtner 154f54ec14 build: run chrome headless in travis (#5126) 2017-06-14 14:26:52 -07:00
Paul Gschwendtner d45d37ae20 build: tslint rule to ensure license banners are set (#5133) 2017-06-14 14:16:40 -07:00
Kara a5551081e7 chore(): add license comments to src files (#5130) 2017-06-14 10:15:08 -07:00
Kristiyan Kostadinov d3d6d26c56 fix(radio): label vertical alignment (#5120) 2017-06-13 15:55:54 -07:00
Kristiyan Kostadinov 73aa43e98b fix(select): consider value changes via arrow keys on closed select as user actions (#5112)
Fixes #5084.
2017-06-13 15:50:00 -07:00
Jeremy Elbourn 3eb0681af9 feat: add camelCase selectors where they were missing (#4901) 2017-06-13 14:16:20 -07:00
Paul Gschwendtner 82d752b59e feat(radio): support for color binding (#5068)
Closes #4677
2017-06-13 12:14:46 -07:00
Paul Gschwendtner de68202971 build: enable noUnusedParameters check (#5091) 2017-06-13 11:48:02 -07:00
Paul Gschwendtner 46edae64ba build: separate payload diffs for packages (#5106) 2017-06-13 10:11:23 -07:00
Paul Gschwendtner 90e6d3c08e refactor(chips): replace disabled property with mixin (#5072) 2017-06-12 13:51:41 -07:00
Paul Gschwendtner 88089a7648 build: remove url from payload status (#5092) 2017-06-12 13:48:24 -07:00
Paul Gschwendtner b3c75bb4b0 build: run fewer browsers on saucelabs (#5045) 2017-06-12 13:37:16 -07:00
Kristiyan Kostadinov 97e35dfb95 fix(input,cdk): a couple of server-side rendering errors (#5066) 2017-06-12 13:30:16 -07:00
Paul Gschwendtner f2de538a49 chore: fix focus origin demo (#5062) 2017-06-12 13:28:28 -07:00
Paul Gschwendtner 4bb3c8b909 build: generate docs for expansion (#5054) 2017-06-12 11:00:57 -07:00
Paul Gschwendtner 349c2d6c42 build: fix payload function invalid diff (#5059) 2017-06-12 11:00:01 -07:00
Kristiyan Kostadinov a6456a2352 build: missing import in payload script (#5058) 2017-06-12 10:56:45 -07:00
Paul Gschwendtner 3eb7bdd792 build: duplicate update of jasmine timeout interval (#5085) 2017-06-12 10:52:33 -07:00
Kara b1a9cb549f chore(dialog): rename config to avoid name collisions (#5088) 2017-06-12 10:37:35 -07:00
Paul Gschwendtner c2816efde4 build: payload github status (#4549)
* build: payload github status

* Show payload deta on PRs using the Github Statuses API.

* Update config variables
2017-06-09 16:09:26 -07:00
Paul Gschwendtner fffff6c9f2 build: explicitly add tsc-wrapped to dev dependencies (#5029)
The dependency on `tsc-wrapped` should be added explicitly. Our tooling uses the `@angular/tsc-wrapped` package directly and it currently only works because the `@angular/compiler-cli` has a dependency on it.

If not specified explicitly, the `@angular/tsc-wrapped` dependency might be a local dependency of the compiler-cli and our tooling won't be able to access it anymore.
2017-06-09 16:09:14 -07:00
Kristiyan Kostadinov 8e6bee8116 chore: reorganize e2e test files (#5032)
* Renames the e2e test file to match the pattern of `{{component}}-e2e.spec.ts`.
* Flattens the directory structure in the `e2e` directory. Having a separate dir for each component was overkill since only have one file per component.
* Fixes some inconsistent code styles in the Protractor config.

Fixes #5030.
2017-06-09 16:09:08 -07:00
Paul Gschwendtner 21f764c347 build: report ngOnDestroy exceptions in unti tests (#5036)
Monkey-patches TestBed.resetTestingModule such that any errors that occur during component destruction are thrown instead of silently logged. Also runs TestBed.resetTestingModule after each unit test.

 Without this patch, the combination of two behaviors is problematic for Angular Material:
 - TestBed.resetTestingModule catches errors thrown on fixture destruction and logs them without the errors ever being thrown. This means that any component errors that occur in ngOnDestroy can encounter errors silently and still pass unit tests.
 - TestBed.resetTestingModule is only called *before* a test is run, meaning that even *if* the aforementioned errors were thrown, they would be reported for the wrong test (the test that's about to start, not the test that just finished).
2017-06-09 16:09:02 -07:00
Paul Gschwendtner 3a23d313d0 build: fix missing prebuilt themes (#5042)
* build: fix missing prebuilt themes

* Fixes that the prebuilt themes are not copied over to the release output.
* Introduces two more checks (specifc for material) in the validate-release task
* Fixes that the generation of the theming SCSS bundle happens outside of gulp.

Fixes #5038

* Logic improvements.
2017-06-09 16:08:56 -07:00
Kristiyan Kostadinov 79092bddaa fix(snack-bar): test error in IE (#5048)
Fixes a silent error that was being logged by IE when running the snack bar tests. It seems to be due to the specific test case not triggering change detection and not passing in a `viewContainerRef` so it could be triggered automatically.
2017-06-09 16:08:50 -07:00
Kristiyan Kostadinov 419d9da59b test(datepicker): set locale to en-US (#5049)
Currently, some of the datepicker tests will fail if the browser's locale is different from en-US. These changes set the locale to en-US in order to avoid potential issues in the future.
2017-06-09 16:08:42 -07:00
Andrew Seguin 6b659eeda2 chore(input): remove unused params (#5055) 2017-06-09 15:22:26 -07:00
Jeremy Elbourn f89c6dbe90 build: add most components to kitchen-sink (#4836)
* build: add most components to kitchen-sink

* debug
2017-06-08 16:08:51 -07:00
Kristiyan Kostadinov 549d62251e chore: move sanity checks to common module (#4987)
* chore: move sanity checks to common module

Moves the sanity checks to the `MdCommonModule`.

Fixes #4979.

* chore: re-export sanity checks
2017-06-08 14:56:51 -07:00
Andrew Seguin 8fa7726814 feat(data-table): allow custom roles (#4988)
* feat(data-table): allow custom roles

* change to treegrid
2017-06-08 14:54:34 -07:00
Kristiyan Kostadinov a647c52e98 chore(elevation): remove unnecessary will-change (#5011)
Removes some premature optimization that was being done via `will-change` in the elevation styles. [As per MDN](https://developer.mozilla.org/en/docs/Web/CSS/will-change), we should be careful about how we use `will-change` since it could end up hurting performance.
2017-06-08 14:54:14 -07:00
Kristiyan Kostadinov 9c45865f88 fix(dialog): partial keyframes animation error (#5020)
Fixes an error being thrown by the dialog animations. It looks like it was triggered as a result of the changes from 28d2ddd098.

Fixes #5019.
2017-06-08 14:33:46 -07:00
Kristiyan Kostadinov 63db51f4f7 refactor(typography): adjust breakpoints and add margins (#5009)
* Reworks the typography mappings to avoid excessively large headers. Previously the `display-*` breakpoints were mapped to `h*` elements, which was inaccurate. Now the `display-*` breakpoints aren't mapped to anything and the headers start from the `headline` breakpoint.
* Replaces the `subheader` breakpoint with `subheader-2` and `subheader-1`. `subheader-2` correspond to the old `subheader`.
* Adds margins to the headers and paragraphs.
* Adds aliases that correspond exactly to the terminology from the spec.
2017-06-08 14:33:29 -07:00
Kristiyan Kostadinov 3ad80e45d3 fix(button): remove webkit tap highlight (#4953)
Removes the overlay that gets added when tapping on something on a mobile Webkit browser. It is unnecessary in our case, because we render a ripple and we have an overlay that darkens focused buttons.
2017-06-08 14:33:22 -07:00
Kristiyan Kostadinov 1e92545465 fix(button-toggle): remove redundant blocking touchstart listener (#4947)
Removes an unnecessary `touchstart` listener on the button toggle. It was initially added to prevent it from capturing user events, however it's no longer necessary, because we have `pointer-events: none` on the element. This also fixes a warning that is being logged by Chrome.

Fixes #4221.
2017-06-08 14:33:14 -07:00
Paul Gschwendtner 4b98f21bd2 fix: make material work with noUnusedParameters (#4946)
* Recently Angular core fixed their `noUnusedParameters` warnings in https://github.com/angular/angular/issues/15532
* When using Angular with Material and the users has `noUnusedParameters` enabled the library will be checked and will throw.

Fixes #4443
2017-06-08 14:33:03 -07:00
Kristiyan Kostadinov 93a21c7e0a fix(menu): remove classes from inert element (#4800)
Removes the classes from the inert `md-menu` element, after they're transferred to the menu panel.

Fixes #4484.
2017-06-08 14:32:47 -07:00
Paul Gschwendtner 8d9bbbf008 fix(checkbox): margin for empty checkboxes incorrectly added (#4730)
* fix(checkbox): margin for empty checkboxes incorrectly added

With #2121 the margin will be removed for checkboxes that don't have any label set.

A problem is that the Checkbox uses the OnPush change detection strategy and therefore the checkbox is not able to detect any delayed / async label change.

This means that checkboxes that set their label from an async binding will not have any margin until the users clicks on the checkbox.

Using the `cdkObserveContent` seems to be an elegant approach when using the OnPush strategy.

The `:empty` CSS selector would be more elegant but it's very sensitive about whitespaces and therefore it doesn't work properly.

Fixes #4720

* Updates
2017-06-08 14:32:35 -07:00
Paul Gschwendtner 436858efb2 fix(slide-toggle): switch typography level to body-1 (#5000)
* With the typography the slide-toggle was switched accidentally from a font-weight of 500 to a font-weight of 400.
* The slide-toggle label should not be treated as a button because it's basically a normal body text.
2017-06-08 14:32:15 -07:00
Ģirts Ernstsons aafa6b0d04 fix(autocomplete example): regex metacharacter escape (#4921)
* fix(autocopmplete): regex metacharacter escape

autocomplete material example fails if regex metacharacter (ie *) is provided. Fixed by adding escapeSpecChars function

* Update autocomplete-overview-example.ts

* fix(autocopmplete): regex replaced with includes

* Extra newline removed

* Update autocomplete-overview-example.ts
2017-06-08 11:25:06 -07:00
Paul Gschwendtner bae213d5f7 build: dynamic build config for packaging (#4939)
* build: dynamic build config for packaging

* Make discussed changes
2017-06-08 11:24:58 -07:00
Paul Gschwendtner 22e14490d2 build: fix dashboard error (#5010)
* Fixes a TypeScript error in the dashboard functions.
2017-06-08 11:24:49 -07:00
Paul Gschwendtner a5b014f771 chore(checkbox): remove unused test variable (#5012)
* Removes a unused variable from a checkbox test component.
2017-06-08 11:24:40 -07:00
Paul Gschwendtner facb8ccd1b build: include roboto font in e2e-app (#5028)
* Includes the Roboto font in the e2e-app. This should help comparing font-weights of typography for the screendiffs.
2017-06-08 11:24:31 -07:00
Kristiyan Kostadinov d09aa896b6 feat(select): add md-optgroup component (#4432)
* feat(select): add md-optgroup component

Adds the `md-optgroup` component, which can be used to group options inside of `md-select`, in a similar way to the native `optgroup`.

Fixes #3182.

* fix: address feedback

* fix: address feedback
2017-06-08 11:22:46 -07:00