Commit Graph

2053 Commits

Author SHA1 Message Date
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
Kristiyan Kostadinov eaa6099262 fix(menu): prevent user from accidentally opening a sub-menu while animating (#5996)
Makes the menu panel non-interactive while it is animating, preventing the user from accidentally triggering a sub-menu.
2017-07-27 09:43:57 -07:00
tinayuangao 59319d03ab fix(checkbox): Add RequiredTrue validator for md-checkbox (#6006)
* Try to make screenshot image size same as before

* change back to 1024 x 768

* Add MdCehckboxRequiredValidator

* extends CheckboxRequiredValidator

* Workaround for aot build error

* Add doc

* fix test
2017-07-27 09:43:37 -07:00
mmalerba a87a0005e4 fix(slider): work around slidestart event sometimes not firing on iOS (#6009) 2017-07-27 09:43:26 -07:00
Paul Gschwendtner ee73d2c173 fix(datepicker): deprecate selectedChanged output (#6025)
* Deprecates the `selectedChanged` output on the datepicker component in favor of the `dateChange` and `dateInput` bindings on the input element.

Closes #6000
2017-07-27 09:43:11 -07:00
mmalerba 08037f966b fix(datepicker): use correct viewContainerRef for dialog. (#6026) 2017-07-27 09:43:01 -07:00
Kristiyan Kostadinov 3cb394512a feat(menu): add injection token for overriding the default options (#5483)
* feat(menu): add injection token for overriding the default options

Adds a new injection token that allows the consumer to override the default values for the `xPosition`, `yPosition` and `overlapTrigger` options.

Fixes #5479.

* fix: unresolved merge conflict and pr feedback
2017-07-25 17:10:33 -07:00
Kristiyan Kostadinov 92d8368aea fix(input): invalid font declaration (#5154)
Fixes the `font` declaration on the `md-input-container` being ignored, because it was invalid.

Note: I updated the font size to the correct value from [the spec](https://material.io/guidelines/components/text-fields.html#text-fields-states), however I'm not using it, in order to avoid any breaking changes. Also note that since the line height wasn't being used before, the baseline is now slightly off when next to a select.

Fixes #5262.
2017-07-25 17:09:40 -07:00
Will Howell f4f64ac59e fix(snackbar): make closeWithAction public method (#5686)
* fix(snackbar): make closeWithAction public method

* Add unit tests
2017-07-25 16:27:21 -07:00
Kristiyan Kostadinov 940f1a2dbe chore(input): switch to OnPush change detection (#5692)
* chore(input): switch to OnPush change detection

Switches the `MdInputContainer` to `OnPush` change detection and sorts out the various change detection-related issues.

Relates to #5035.

* chore: linter errors
2017-07-25 16:27:13 -07:00