Commit Graph

2090 Commits

Author SHA1 Message Date
Paul Gschwendtner 3c19234d35 chore: fix invalid paths for codeowner folders (#6191)
The GitHub code owners feature does not work properly right now because the different paths/globs to the folders (like the `input`)  are not matching at all.

This is because the paths are not absolute nor relative paths but still include a directory name. This does not work properly and can be confirmed by playing with the `.gitignore` (which has the same pattern matching)
2017-08-01 12:51:52 -07:00
Andrew Seguin 4afcc0a727 fix(table): Fix change det issue with http example (#6169)
* fix(table): Fix change det issue with http example

* Update table-http-example.ts
2017-08-01 12:49:47 -07:00
Austin 51eca3b1d0 demos(*): fix inputs spilling over when screen width small (#6155)
* demos(*): fix inputs spilling over when screen width small

* chore(*): fix line break
2017-08-01 12:49:27 -07:00
Paul Gschwendtner 20cd8a1fb5 build: dynamic path mappings for cdk entry points (#6138)
* No longer hard-codes the path mappings for dependencies of individual CDK secondary entry-points.
2017-08-01 12:48:34 -07:00
Paul Gschwendtner 2320532516 build: no longer add pure annotations to es5 bundles (#6107)
* The pure annotations are no longer added to ES5 bundles of Angular Material or the CDK. The pure annotations should be added by the new build optimizer which is part of the CLI.
2017-08-01 12:48:08 -07:00
Paul Gschwendtner e79f7f9c77 chore: add paginator to prerender check (#6167)
* Adds the paginator component to the universal app
2017-07-31 11:25:57 -07:00
Paul Gschwendtner f78726d7ec chore: add expansion panel to prerender check (#6166)
* Adds the expansion panel to the universal app that will be validated on the CI.
2017-07-31 11:25:36 -07:00
Paul Gschwendtner 2b59c96a29 build: peer dependency for material-examples package (#6165)
* Adds peer dependencies for the CDK and Material to the examples package. This ensures that the API that is used in the examples is always compatible with the current installed version of the CDK or Material.
2017-07-31 11:25:24 -07:00
Kristiyan Kostadinov edcbb24f11 chore: update tslint (#6149)
Updates tslint to 5.5.0 and resolves some errors that weren't being caught before. This version also has the advantage of printing out the full stack trace if one of the rules throws an error.
2017-07-31 11:24:53 -07:00
Paul Gschwendtner 19614cda32 build(closure): detect cdk entry points from filesystem (#6144)
* The closure script now detects the CDK entry points from the filesystem. This is important to avoid hard-coding the CDK entry points multiple times in the project.
2017-07-31 11:24:35 -07:00
mmalerba 9cff8c73b5 fix(datepicker): fix error when selecting month with fewer days in year (#6129)
view
2017-07-31 11:23:36 -07:00
mmalerba 94bf5e92e2 fix(input): prevent input caret from sticking on iOS (#6128) 2017-07-31 11:23:14 -07:00
Paul Gschwendtner 3940fab732 build: use version placeholder in package configs (#6112)
Recently the version placeholders had been replaced with hardcoded versions because it was necessary to be able to release the CDK.

But now the version placeholders are replaced in every file and therefore they can be used instead of the hardcoded values.
2017-07-31 11:22:40 -07:00
Paul Gschwendtner 88772d46f5 docs: individual cdk entry points for systemjs (#6105)
* docs: individual cdk entry points for systemjs

* Updates the SystemJS guide section to show that the individual CDK entry points need to be mapped manually.

* Address feedback
2017-07-31 11:22:21 -07:00
Kristiyan Kostadinov d29fb66a87 fix(pseudo-checkbox): simplify theming (#6082)
Currently the pseudo checkbox both inherits its colors via CSS and has a `color` input. This means that if we wanted to the keep it in sync with its parent component (e.g. a multi-select), we'd have to add some boilerplate that listens to changes, goes through and updates all of the checkboxes, and triggers change detection while avoiding the "changed after check" assertions.

Since the component is meant to be really lean and to inherit its colors from the parent, these changes remove the `color` input altogether in order to reduce the complexity and be clearer regarding the intended usage.

Since the same is true for the `md-option` component, I've removed the `md-options.{{ palette }}` selectors as well.

Fixes #6079.
2017-07-31 11:15:36 -07:00
mmalerba 9ac5d13d43 fix(input): fix input/placeholder alignment on safari (#6072) 2017-07-31 11:14:30 -07:00
Kristiyan Kostadinov d9e6f7502a build: add tslint rule to verify rollup globals config (#5963)
Adds a custom tslint rule that ensures that we've added all of the necessary external modules to the Rollup config. This is helpful, because forgetting to add a module will log a warning, but it won't break the build necessarily, which is why we occasionally need PRs like #5930.
2017-07-31 11:13:33 -07:00
tinayuangao bf2336d51f a11y(button-toggle): Add accessibility demo page for button toggle (#5948)
* Add accessibility page for button toggle

* Add role group. Add labels for button toggle groups
2017-07-31 11:12:40 -07:00
tinayuangao 1ab4b7e8ea a11y(chips): Add accessibility demo page for chips (#5947)
* Add accessibility page

* Use some real world examples for chips

* add aria-label

* Update chips-a11y.ts
2017-07-31 11:12:24 -07:00
tinayuangao 1570fbbe5c a11y(checkbox): Add checkbox accessibility demo page (#5921)
* use real world examples for checkbox

* Checkbox a11y demo

* remove pseudo checkbox

* address comments
2017-07-31 11:10:37 -07:00
mmalerba 42554763c8 fix(datepicker): refactor datepicker toggle to support theming (#5317)
* fix(datepicker): refactor toggle to fix theming and allow it to be
combined with button directives

* update usages of datepicker toggle

* change to suggested API

* fix new uses of mdDatepickerToggle after rebase
2017-07-31 11:09:51 -07:00
Paul Gschwendtner 9b45681fcd test(slide-toggle): verify that NgControl stays pristine if initial value is set (#4970)
* If a developer sets an initial value for the slide-toggle the NgControl of the slide-toggle can turn dirty. The slide-toggle should only turn dirty if the value changed after initialization. This adds a test to confirm that this is not the case.
2017-07-31 11:06:04 -07:00
Kristiyan Kostadinov a882546deb refactor(sidenav): switch to the angular animations API (#4959)
* refactor(sidenav): switch to the angular animations API

Switches the sidenav to use the `@angular/animations` API. This saves us a lot of code that was involved in orchestrating the various animations, in addition to making it easier to follow. It also makes it possible for the consumer to disable the animations by using the `NoopAnimationsModule`.

* chore: remove redundant annotations

* fix: focus restoration issue in IE

* chore: linting error

* chore: put back the toggle animation promises

* fix: avoid initial animation

* fix: sidenav not showing when animation starts

* chore: update e2e tests
2017-07-31 11:05:47 -07:00
Andrew Seguin 846899db0e fix(list): :empty selector did not catch in mat-list-text (#6124)
Since there was a whitespace character (newline) in the HTML, :empty never triggered in the CSS
2017-07-28 12:56:02 -07:00
Andrew Seguin 11975e6e20 revert(5422): chore(dialog): switch to OnPush change detection (#6123)
* fix(sidenav): animate sidenav on open/close changes

* Revert "chore(dialog): switch to OnPush change detection (#5422)"

This reverts commit cf071c75f5.
2017-07-28 12:54:20 -07:00
Kristiyan Kostadinov cf071c75f5 chore(dialog): switch to OnPush change detection (#5422)
Switches the dialog container to `OnPush` change detection.

Relates to #5035.
2017-07-28 08:06:32 -07:00
Kristiyan Kostadinov ba000bdeee chore: fix linting errors (#6044)
Fixes a couple of linting errors that were introduced in master.
2017-07-28 08:02:04 -07:00
Rafael Santana aea8df4791 docs(table): add missing imports and improve example using http (#5956)
* fix: add missing OnInit

* refactor: simplify example

* fix: export interfaces and remove unused import

* address comments

* correct nested path
2017-07-28 08:01:21 -07:00
Paul Gschwendtner c9d67c08de chore: remove unused jasmine matcher types (#6089)
* Removes unused jasmine matcher type definitions since the `jasmine-matchers.ts` file has been removed.
2017-07-28 08:00:44 -07:00
Kristiyan Kostadinov 0314bd8025 fix(checkbox): server-side rendering error when checking textContent (#5470)
Adds an extra null check when trimming the checkbox `textContent`. This avoids issues in Universal where the `textContent` will be undefined.

Fixes #5453.
2017-07-28 07:59:33 -07:00
Kristiyan Kostadinov 41c804b36a fix(expansion-panel): toggle not being updated when set programmatically (#5650)
* fix(expansion-panel): toggle not being updated when set programmatically

Fixes the toggle arrow not being flipped when the `expanded` is set programmatically, in addition to the `hideToggle` input not working either. This is a regression from #5549 and is a consequence of the fact that the panel header reaches into the panel to determine what to do with the arrow.

Fixes #5623.

* chore: add a couple of unit tests for the fixes
2017-07-28 07:59:15 -07:00
Andrew Seguin 66e222fc2e feat(table): support dynamic column definitions (#5545)
* checkin

* move logic from baserow to table

* update

* tests

* add tests

* lint

* fix imports, revert columnsDiffer as protected

* add tests for errors

* add license to errors file

* review

* remove unnecessary imports

* add comment about ngDoCheck()

* cleanup imports

* remove fdescribe

* rebase

* ugh, fdescribe

* rebase
2017-07-28 07:58:51 -07:00
mmalerba e9ab9b430c fix(input): set default width of 200px on input-container (#5833) 2017-07-28 07:57:48 -07:00
Kristiyan Kostadinov 91f7bf7c91 feat(menu): increase nested menu elevation based on depth (#5937)
* feat(menu): increase nested menu elevation based on depth

Increases the sub-menu elevation, based on its depth. [Spec for reference](https://material.io/guidelines/material-design/elevation-shadows.html)

* refactor: address feedback
2017-07-28 07:57:32 -07:00
Andrew Seguin f52c7f4aee fix: add camelCase ng-content selectors (#5953)
* fix: add camelCase ng-content selectors

* change list.md
2017-07-28 07:57:14 -07:00
tinayuangao 53e3fd955b a11y(radio): Add radio buttons accessibility demo page (#5958)
* Add page for radio

* address comments

* add description
2017-07-28 07:56:38 -07:00
Paul Gschwendtner 34ec068741 feat(select): allow disabling ripples for options (#5967)
* Adds a binding that allows developers to disable ripples for every option in a select.
2017-07-28 07:56:11 -07:00
Kristiyan Kostadinov 82535039a2 fix(chips): cursor on remove button and box-shadow transition (#6019)
* Adds a `pointer-cursor` to the chip remove button to indicate that it's clickable.
* Adds a transition to the focused chip `box-shadow` to make it less harsh.
* Breaks up a long line that was exceeding our character limit.
2017-07-28 07:55:44 -07:00
Kristiyan Kostadinov 2388d91642 fix(select): server-side rendering error with preselected value (#6049)
Fixes a server-side rendering error in `md-select` if it has a preselected value, in addition to one in the `md-option` component.

Fixes #6045.
2017-07-28 07:48:34 -07:00
tinayuangao f8c5be8b5c fix(button-toggle): remove emit change event when value changes (#6034) 2017-07-28 07:48:14 -07:00
Kristiyan Kostadinov 05ca4a7bec fix(textarea): server-side rendering error when using mdTextareaAutosize (#6050)
Fixes a server-side rendering error when using the `mdTextareaAutosize` directive.

Fixes #6047.
2017-07-28 07:47:45 -07:00
Kristiyan Kostadinov e7da1e474e fix(chips): add exportAs for chip and chip list (#6084)
Adds `exportAs` declarations to the `MdChip` and `MdChipList` directives to make them a little more convenient to use in templates.

Fixes #6070.
2017-07-28 07:47:23 -07:00
Kristiyan Kostadinov 22ce1da37e fix(grid-list): invalid inline styles when rendering server-side (#6052)
Fixes issue in the grid list that was causing it to set invalid styles when it is rendered on the server-side. It's because the browser converts the camelCased styles to dash-case automatically, but that doesn't happen on the server.

Fixes #6048.
2017-07-28 07:47:14 -07:00
Will Howell 0409707adc style(button-toggle, slider, expansion): remove base colors in themes (#5147)
* Cleanup harsh colors for selected button toggle

- Light theme: black -> black-54
- Dark theme: white -> white-70

* Make the slider min thumb less harsh in light theme

- Light theme: black -> black-87
- Dark theme: white -> white

* Use default text color for expansion panel
2017-07-28 07:45:39 -07:00
Paul Gschwendtner dfe10c3fd3 fix(slide-toggle): invalid model change event (#4220)
* fix(slide-toggle): invalid model change event (#4140)" (#4218)

While initially looking into #4124, there were a few more issues inside of the slide-toggle.

* ngModelChange event is dispatched at initialization.

* Checked state isn't synchronized when state changes through drag. New state after dragging got overwritten by click event on label.

* Removes unnecessary logic inside of `change` listener. Change event doesn't fire if underlying checkbox is disabled.

Fixes #4124.

* Cast NgModel value to a boolean

* Properly mark component for check
2017-07-28 07:45:25 -07:00
Paul Gschwendtner 3bfe7f0f92 feat: expose version object in releases (#4962)
* In releases there will be a constant called `VERSION` that holds the current version of the installed package (material or cdk)
* This is similar as for every @angular package like core, forms, compiler.
2017-07-27 09:52:12 -07:00
Kristiyan Kostadinov b34b440ee3 test(menu): fix test failures against Angular 4.2 (#5168)
Fixes a couple of menu unit tests that were failing against Angular 4.2.2.
2017-07-27 09:52:00 -07:00
Austin 40072a1970 docs(demos): autocomplete examples (#5787) 2017-07-27 09:51:43 -07:00
Juliano 63411dc500 docs(expansion): create overview and examples (#5823)
* docs(expansion): create overview and examples

* ommit 'public' keyword

* change doc structure

* review 2

* eliminate md-accordion mentioned in expansion panel content

* will's reviews

* break lines at 100 chars

* typo

* toggleHide => hideToggle in overview

* Rafael's review (travis and prefix css class)

* Rafael's review (prefix header-align css class)

* new line for expansion-overview-example.css

* overview jelbourn's reviews

* expansion-steps-example (will's reviews)

* new line in steps example

* delete paragraph in header

* expansion panel => expansion-panel

* add styleUrls in steps example @Component decorator

* update steps example @Component decorator
2017-07-27 09:51:29 -07:00
Andrew Seguin fee0c6d5b0 docs(table): remove header from table overview (#5855)
* docs(table): remove header from table overview

* Add newline

* add newline
2017-07-27 09:51:11 -07:00