Commit Graph

2062 Commits

Author SHA1 Message Date
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
tinayuangao 8d19d4dfe8 Update the checkbox example so when user make checkbox checked, the (#6066)
upper part is updated
2017-07-27 09:48:10 -07:00
Paul Gschwendtner 072b32a4e2 build: dynamic cdk entrypoint mapping in tsconfigs (#6088)
* Removes the hard-coded path mappings for the CDK entry points and replaces it with a dynamic solution.
2017-07-27 09:48:01 -07:00
Kristiyan Kostadinov 6f73b35102 fix(select): consistent error behavior to md-input-container (#4754)
* Gets `md-select` to behave in the same way as `md-input-container` when it comes to errors. This means highlighting itself when it is invalid and touched, or one of the parent forms/form groups is submitted.
* Moves the error state logic into a separate function in order to avoid some hard-to-follow selectors and to potentially allow overrides. This should also be a first step to supporting `md-error` inside `md-select`.
* Changes the required asterisk to always have the theme warn color, similarly to the input asterisk.

Fixes #4611.
2017-07-27 09:46:16 -07:00
Kristiyan Kostadinov 0a5489f9c4 feat: add change emitters to the Intl providers (#5867)
Since we're switching all components to OnPush change detection, they won't necessarily react to dynamic changes in the i18n labels. These changes add an `EventEmitter` per provider that allow for components to react to those types of changes. Note that it's up to the consumer to call `provider.changes.emit()` in order to trigger the re-render.

Fixes #5738.
2017-07-27 09:46:05 -07:00
tinayuangao 8edbe47e37 Add accessibility page to demo-app (#5748)
* Add accessibility page

* fix lint
2017-07-27 09:45:55 -07:00
mmalerba 641a38f98c fix(datepicker): make touch UI calendar use 80% of width in portrait (#5943)
mode
2017-07-27 09:45:31 -07:00
Andrew Seguin 3c460015f2 fix(compat): add element selector for cdk-accordion (#5954) 2017-07-27 09:45:19 -07:00
Andrew Seguin a7e75dac2a fix(compat): add camelCase selectors to tab label wrapper (#5955)
* fix(compat): add camelCase selectors to tab label wrapper

* remove internally used dash-case

* remove uses of dash-case
2017-07-27 09:45:11 -07:00
Andrew Seguin 2bf6b57ea8 fix(overlay): add prefixed inputs, deprecate old ones (#5957) 2017-07-27 09:45:02 -07:00
Jon Walsh 2deed4c6e6 docs(input): remove outdated comments (#5961) 2017-07-27 09:44:54 -07:00
Kristiyan Kostadinov 81f1f97b7d fix(expansion-panel): standalone panel shouldn't override margins (#5962)
Previously, a standalone expansion panel would transition from `margin: 0` not no set margin, which causes inconsistent behavior of the consumer specified a custom margin on it. These changes make it so it doesn't override the margin at all, unless it's a part of an accordion.

Fixes #5949.
2017-07-27 09:44:45 -07:00
Kristiyan Kostadinov fdded66b5a fix(autocomplete): don't prevent default enter action if panel is closed (#5977)
Currently the autocomplete will always prevented the default enter key action, even if the panel is closed, which goes against the native behavior.

Fixes #5976.
2017-07-27 09:44:23 -07:00
Kristiyan Kostadinov 63505dc371 fix(connected-position-strategy): position change event not emitting for fallback positions (#5978)
* Fixes the `onPositionChange` event from the `ConnectedPositionStrategy` not emitting if the strategy picks one of the fallback positions.
* Fixes the autocomplete panel not having the proper offset when it is in the `above` position. This was tightly-coupled to the `onPositionChange` not firing.
* Fixes a couple of tests that were nested in another test, causing them not to be executed. I've removed one of the tests since it was also duplicated with one above. This seems to have been the result of a faulty conflict resolution.
2017-07-27 09:44:13 -07:00
Kristiyan Kostadinov a51f82f12e feat(menu): add indicator to menu items that trigger a sub-menu (#5995)
Adds an arrow indicator to the `md-menu-item` instances that trigger a sub-menu.
2017-07-27 09:44:04 -07:00