Commit Graph

2076 Commits

Author SHA1 Message Date
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
Paul Gschwendtner 01c6d15eb6 chore: use list example component for e2e (#5968)
* The e2e app now uses the list overview example for the list e2e tests.
2017-07-27 09:50:47 -07:00
Kristiyan Kostadinov f28dc064c2 chore: scroll active link into view in the demo app (#5979)
Scrolls to the active link in the demo app when the sidenav is opened. Previously it would jump back up to the first one. This isn't a huge issue, but is something that has been bugging me for a while.
2017-07-27 09:50:39 -07:00
Paul Gschwendtner 72106c9801 build: update saucelabs connector (#5980)
* Updates the saucelabs connector to the latest version
2017-07-27 09:50:29 -07:00
Paul Gschwendtner e52ebd776b chore: add coverage chart to dashboard (#5981)
* chore: add coverage chart to dashboard

* Switch to md-spinner
2017-07-27 09:50:19 -07:00
Paul Gschwendtner 2e3d616941 chore: consistent script names for travis setup (#5986)
* Updates the outdated README in the `ci/` folder.
* Renames the `env.sh` script to `travis-env.sh` because it only works for Travis and is not a generic script.
2017-07-27 09:50:10 -07:00
Roy 7618ae0ef9 docs(readme): fix typo and refactor list and links (#5987) 2017-07-27 09:50:00 -07:00
Ilya Zolotukhin be56e44a65 docs(): Fix typo in "Submitting an Issue" section of CONTRIBUTING.md (#5990) 2017-07-27 09:49:43 -07:00
Kristiyan Kostadinov 3a3387011a chore(progress-bar): clean up transitions (#5998)
* Removes the transition from the `stroke` property, because it's not being used anymore.
* Breaks up a few long lines that were exceeding our character limit.
2017-07-27 09:49:35 -07:00
Paul Gschwendtner 6a18c5d50c chore: better logging for madge (#6003)
* Switches madge to the programmatic API usage which also allows us to ignore warnings about the dependency on `@angular/cdk` which could not be found by Madge (since it's not a node module)
* This also allows us to reduce the amount of messages that Madge prints. Currently the CI output is not readable because the spinner of the Madge CLI spams everything.
2017-07-27 09:49:18 -07:00
mmalerba 0e95c89967 e2e: attempt to fix input screenshot flakes. (#6010) 2017-07-27 09:49:11 -07:00
Paul Gschwendtner 0f1d319c34 chore: remove drag event from gestures demo (#6032)
* The custom recognizer called "drag" has been removed a long time ago to avoid collisions with the native `drag` events.
* The demo app still shows the drag event on the gestures demo (which apparently doesn't work now anymore)
2017-07-27 09:49:04 -07:00
Paul Gschwendtner f3b4e7c6b0 build: payload status should not show all digits (#6051)
* Currently we always limit the difference in kilobytes to two digits after the decimal point. This also needs to be done for the full package size to avoid super long numbers.
2017-07-27 09:48:42 -07:00
Paul Gschwendtner 055f662a85 build: properly lint tooling source code (#6055)
* build: properly lint tooling source code

* Fixes a glob that is responsible for IDE's TypeScript service and also for TSLint
* Fixes strict null check errors in the screenshot app. Currently the app can't be compiled properly since strict null checks had been introduced there as well.

* Address feedback
2017-07-27 09:48:30 -07:00
Paul Gschwendtner e79dc291cd build: missing semicolon for typings re-exports (#6057)
* Adds a missing semicolon to the typing re-export statements.
2017-07-27 09:48:22 -07:00