Commit Graph

1917 Commits

Author SHA1 Message Date
Elad Bezalel bb316cb0e4 docs(bidi): add initial guide (#5474) 2017-07-13 10:23:47 -07:00
Austin c479faad6c docs(demos): add a variety of button demos (#5628) 2017-07-13 10:22:56 -07:00
Rafael Santana a40ad26288 core(expansion-panel): fix typos and extra whitespace (#5659) 2017-07-13 10:21:55 -07:00
Rafael Santana 0eedb5f800 fix(tabs): check if the subscription is defined before unsubscribe (#5667) 2017-07-13 10:20:16 -07:00
Óscar Carretero f57d00b563 chore(card): removes extra whitespace in bindings (#5684) 2017-07-13 10:19:13 -07:00
Jeremy Elbourn 0d936e30e6 chore: add separator line in readme (#5691) 2017-07-13 10:18:00 -07:00
Shlomi Assaf 93789cfc1e fix(paginator): expose MdPaginatorIntl (#5716)
Fixes #5715
2017-07-13 10:17:38 -07:00
Jeremy Elbourn ac104c34b6 chore: update package-lock with npm 5.2 (#5683) 2017-07-12 15:22:30 -07:00
mmalerba da1d1ca609 fix(datepicker): use 3 rows to display months of year (consistent with internal mocks) (#5427)
fixes #5202
2017-07-11 10:19:41 -07:00
Kristiyan Kostadinov ed2ece9e4f chore(tabs): switch to OnPush change detection (#5631)
Switches all of the tab-related components to OnPush change detection and sorts out the issues that come from the changes.

Relates to #5035.
2017-07-11 10:18:41 -07:00
Kristiyan Kostadinov 70117ff46d chore(selection): switch option and pseudo checkbox to OnPush change detection (#5585)
* Switches the MdPseudoCheckbox, MdOption and MdOptgroup to OnPush change detection.
* Fixes a few cases in MdOption where the UI state wasn't being updated properly.

Relates to #5035.
2017-07-11 10:16:00 -07:00
Paul Gschwendtner bcf48261f4 fix(checkbox, radio): setting id to null causes invalid id for input (#5398)
* In some situations, developers will change the `id` of a component dynamically. At some point if they set the `[id]` to `null` the input id will look like the following: `null-input`.
* If developers are setting the `id` using a binding then the DOM Id for the host component won't be set at all (because the @Input is triggered instead of the DOM property)

Fixes #5394
2017-07-11 10:09:02 -07:00
Amit Portnoy 738b6be98b fix(tabs): add module dependency on MdCommonModule (#5304)
MdTabsModule **implicitly** depended on MdCommonModule
Specifically, for rtl animations. see http://plnkr.co/edit/fBLGThvy7C0G666p56xn?p=preview.
2017-07-11 10:02:55 -07:00
Paul Gschwendtner f3f9f43afa tests(slide-toggle): separate form tests for slide-toggle (#5629)
* Separates the tests with and without the form modules. This is important to ensure that the slide-toggle works properly without and with forms.
2017-07-11 09:56:51 -07:00
Kristiyan Kostadinov baba6efed4 feat(snack-bar): inject data and MdSnackBarRef into custom snack-bar component (#5383)
* feat(snack-bar): inject data and MdSnackBarRef into custom snack-bar component

* Injects the `MdSnackBarRef` into custom snack bar instances.
* Adds the option to inject arbitrary data into a snack bar.
* Turns the `DialogInjector` into a `PortalInjector` to allow it to be used elsewhere (e.g. the snack-bar).
* Minor tweaks to the `SimpleSnackBar` to get it to use the new DI tokens instead of assigning data directly to the component instance.

Fixes #5371.
2017-07-11 09:30:40 -07:00
Jeremy Elbourn 8c13325ea6 fix(bidi): make dir and changes readonly (#5645) 2017-07-11 09:25:54 -07:00
Kristiyan Kostadinov 72148c0657 feat(typography): allow typography config to be passed via mat-core (#5625)
Allows for the typography config to be specified optionally through the `mat-core` mixin, avoiding some of the extra bloat that comes from overriding the typography after a theme is defined.

Fixes #5589.
2017-07-11 09:24:05 -07:00
Kristiyan Kostadinov 5bc97ec894 fix(list): subheader margin being overwritten by typography (#5652)
Fixes the `.mat-subheader` margin being overwritten by the `.mat-typography` due to lower specificity.

Fixes #5639.
2017-07-11 09:21:55 -07:00
Rafael Santana 9022a7a652 fix(pseudo-checkbox): fix spell check (pallete -> palette) (#5661) 2017-07-11 09:19:34 -07:00
Michael Prentice 22958778c6 chore(examples): missing table module exports (#5663)
material.angular.io build was throwing missing module errors
`CdkTableModule` and `MdTableModule` need to be exported

Relates to #5608
2017-07-10 16:43:42 -07:00
Jeremy Elbourn 4f8f6bdd4b chore: use existing screenshot firebase key 2017-07-10 15:45:00 -07:00
Paul Gschwendtner a1a7dcb463 build: fix deploying of screenshot functions
* Updates the dashboard and screenshot deploy script to exit the process immediately if the Firebase token is not set.
* Fixes that the error message of the dashboard still shows the old name of the token variable
* Renames the screenshot variables to follow the dashboard environment variables
* Explicitly specifies the project that will be uploaded in the screenshot deploy script (same as for dashboard)
2017-07-10 15:45:00 -07:00
robindijkhof 5e961cb221 test(sidenav): add e2e tests (#5463) 2017-07-10 15:24:26 -07:00
Will Howell 46d0b6f4be docs(dialog): example of how to inject MdDialogRef (#5311) 2017-07-10 12:18:47 -07:00
Paul Gschwendtner 1f97945580 build: fix stylelint deprecation warning (#5618)
* Fixes the stylelint deprecation warning
* Fixes that stylelint lints the compiled bundles from `dist/` folders of the `dashboard` or `screenshot` app
* Updates the package-lock with NPM@5.1
2017-07-10 11:38:45 -07:00
Paul Gschwendtner dabcd53bc9 build: separate deploy jobs in deploy build stage (#5621)
Currently every deployment runs in a single Travis job concurrently. This messes up the logs and it's also hard to see what actually runs at all.

The different deployment jobs should run concurrently in the deploy build stage.
2017-07-10 11:38:09 -07:00
Paul Gschwendtner 145ca8e818 docs(getting-started): include cdk in systemjs config (#5626)
* The getting started guide includes a brief section for the SystemJS configuration of a project using Angular Material. This extra section now also needs to include the CDK package.

Fixes #5624
2017-07-10 11:37:41 -07:00
Kristiyan Kostadinov 557b31b6ae chore: fix linting errors (#5617)
As a result of c09e8a7eb3, a few linting errors got introduced.
2017-07-10 10:04:25 -07:00
Paul Gschwendtner 077ebf63c5 build: fix rollup globals for examples package (#5611)
Recently the rollup globals have been changed because the operators are no longer applied to the prototype (using `/add/` imports).

This now causes some warnigns and invalid id's in the bundles of the Material examples because those still use the `/add/` imports in some examples.
2017-07-08 23:20:34 -07:00
Paul Gschwendtner 5f9a64b526 build: fix dashboard deployment (#5610)
* Fixes the dashboard deployment to Firebase. Currently the deployment is being cancelled because the functions are having compilation errors (due to TypeScript definition updates of `express`)
2017-07-08 23:20:06 -07:00
Paul Gschwendtner 1936d9ee59 chore(dashboard): fix invalid curve for payload chart (#5609)
The dashboard payload size chart showed invalid curves for the Material and CDK package size. This happened because there were multiple different values for the same day (multiple PRs merged into master at the same day). Removing the duplicate values and only taking the last result of the day ensures that the curve is always correct and also makes the chart way better in performance.
2017-07-08 23:19:46 -07:00
Austin be0c7a2ae8 chore(script): autogenerate examples module and metadata (#5608) 2017-07-08 23:19:07 -07:00
Kristiyan Kostadinov 4e656f02ce refactor: fix tests leaking overlay containers (#5600)
Fixes a few test suites that were leaking `.cdk-overlay-container` instances.
2017-07-08 23:16:45 -07:00
Kristiyan Kostadinov c09e8a7eb3 feat(native-date-adapter): use default locale from LOCALE_ID (#5419)
Uses the `LOCALE_ID` from `@angular/core` to determine the default locale in the `NativeDateAdapter`.

BREAKING CHANGE: Until now, the `NativeDateAdapter` was using the browser locale, however the `LOCALE_ID` appears to default to `en-US`.

Fixes #5393.
2017-07-08 22:23:06 -07:00
Kristiyan Kostadinov 6583505abe chore(datepicker): switch to OnPush change detection (#5584)
Switches the `MdDatepicker` component to `OnPush` change detection.

Relates to #5035.
2017-07-08 22:22:19 -07:00
Ji Won Shin 2294ea28fc fix(datepicker): allow disabling calendar popup (#5305)
* Add ability to disable datepicker pop-up in read-only mode.

* Change readOnly to disabled

* Added ability to disable datepicker toggle when the input is disabled.

* Lint edits

* Failed test fixes

* Allow disabled input to disable popup unless specified otherwise for
datepicker.

* Minor comment edits

* Added host bindings and changed delegation logic.

* Added tests for cascade and removed async testing.
2017-07-08 22:20:02 -07:00
Kristiyan Kostadinov c9956a50a2 chore(grid-list): switch to OnPush change detection (#5516)
Switches the grid list component to OnPush change detection.

Relates to #5035.
2017-07-08 21:11:23 -07:00
Kristiyan Kostadinov 880e6d513d fix(autocomplete): error when closing destroyed panel (#5446)
Fixes an error that was being thrown when attempting to close the panel of an autocomplete that is inside a destroyed view. The issue is that `closePanel` can end up getting called multiple times in a row, which leads to an attempt to call `detectChanges` on a destroyed `ChangeDetectorRef`.

Fixes #5413.
2017-07-08 21:10:43 -07:00
Kristiyan Kostadinov 372549c378 fix(select): throwing additional errors if ngModel fails to initialize (#5405)
If the user has an `md-select` with an `ngModel` that doesn't have a name inside a form, the forms module will throw an error, however Material will also start throwing errors, which may cause confusion. These changes add a null check so our errors don't get mixed up with the forms error.

Fixes #5402.
2017-07-08 21:09:04 -07:00
Kristiyan Kostadinov b7efe48a13 fix(live-announcer): remove announcer element on destroy (#5404)
Implements the `ngOnDestroy` hook on the live announcer service and removes the `_removeLiveElement` method.
2017-07-08 21:08:23 -07:00
Paul Gschwendtner 44ca46a184 fix(input): input module depends on forms module (#5579)
* The input module currently depends on the forms module. This is not necessary, because the input is able to work without `NgModel` or a `FormControl` as well.
2017-07-08 21:06:43 -07:00
Paul Gschwendtner c14978b325 fix(slider): slider module depends on forms module (#5578)
* The slider module should not not import the `FormsModule` since the slider is designed to work without forms as well.
2017-07-08 21:05:48 -07:00
Kristiyan Kostadinov b31a304fcc chore(button): switch MdAnchor to OnPush change detection (#5557)
* Switches the `MdAnchor` component to `OnPush` change detection.
* Gets rid of a `@HostBinding` in favor of using the `host`.

Relates to #5035.
2017-07-08 19:43:08 -07:00
Kristiyan Kostadinov d5e42cb656 chore(slider): switch to OnPush change detection (#5551)
* Switches `md-slider` to `OnPush` change detection.
* Fixes a few properties not reacting to external changes.

Relates to #5035.
2017-07-08 19:42:09 -07:00
Kristiyan Kostadinov 5cafa2bb0f chore(expansion-panel): switch to OnPush change detection (#5549)
* Switches the expansion panel to `OnPush` change detection.
* Fixes the open animation not triggering on the body element.

Relates to #5035.
2017-07-08 19:41:03 -07:00
Kristiyan Kostadinov 2ba713eaa5 chore(tooltip): switch to OnPush change detection (#5553)
Switches `md-tooltip` to `OnPush` change detection.

Relates to #5035.
2017-07-08 19:33:13 -07:00
Kristiyan Kostadinov ae5bca261a chore(autocomplete): switch to OnPush change detection (#5546)
* Switches `md-autocomplete` to `OnPush` change detection.
* Fixes a newly-introduced test failure.

Relates to #5035.
2017-07-08 18:57:45 -07:00
Paul Gschwendtner 9ab0c90493 fix(button-toggle): button-toggle module depends on forms module (#5542) 2017-07-08 18:57:17 -07:00
Paul Gschwendtner d716b002ef fix(slide-toggle): slide-toggle module depends on forms module (#5523)
* Currently the slide-toggle module always imports the `FormsModule` and therefore when treeshaking the `FormsModule` would be always included (even if FormsModule is not used at all)
2017-07-08 18:56:29 -07:00
Kristiyan Kostadinov 173cdddd8f chore(menu): switch to OnPush change detection (#5518)
Switches the `md-menu` and `md-menu-item` components to `OnPush` change detection.

Relates to #5035.
2017-07-08 18:55:08 -07:00