Commit Graph

2343 Commits

Author SHA1 Message Date
Paul Gschwendtner dfe01f2d5f fix(selection-list): do not coerece option value to boolean (#6983)
Currently the value of a `MdListOption` is coerced to a boolean. This is not the correct behavior because it would mean that there could be only two values (true/false).

Needed for #6896
2017-09-11 17:36:53 -07:00
Kristiyan Kostadinov dc9679da4f feat(selection-list): add selectAll and deselectAll functions (#6971)
* Adds the ability to select and deselect all options at once.
* Adds a demo of the selection list to the demo app.
* Fixes an issue that caused the checkbox inside the selection list to collapse.
* Sets the proper cursor on the list items.

Fixes #6969.
2017-09-11 17:35:43 -07:00
Kristiyan Kostadinov f6c9172afe perf: memory leak when subscribing to zone events (#6918)
Fixes a few memory leaks that were caused by subscribing to `NgZone.onMicrotaskEmpty` or `NgZone.onStable`. Because the two streams are `EventEmitters`, the subscription doesn't get GC-ed correctly. These changes switch to converting the emitters to observables before subscribing to them.

Fixes #6905.
2017-09-11 17:33:56 -07:00
Paul Gschwendtner a1ec81ab69 fix(slide-toggle): remove side-margin if slide-toggle label is empty (#6881)
* Removes the side-margin of the actual indicator of the slide-toggle if the user label is empty (similar as in #4730)

Fixes #6868
2017-09-11 17:30:07 -07:00
Kristiyan Kostadinov 2239e7daf0 compat(stepper): error in compatibility mode (#6989)
Fixes an error thrown by the stepper in compatibility mode.

Fixes #6988.
2017-09-11 17:23:37 -07:00
Kristiyan Kostadinov 2cefe67c77 docs: add live example of nested menu (#6977)
Adds a live example for the nested menu functionality.

Fixes #6920.
2017-09-11 17:21:37 -07:00
Kristiyan Kostadinov 85993d3a96 fix(datepicker): toggle not reacting to disabled state changes in datepicker or input (#6964)
Fixes the datepicker toggle not reacting to changes in the disabled state of the associated datepicker and datepicker input.
2017-09-11 17:20:30 -07:00
Kristiyan Kostadinov 9fe6386eec fix(select): extra whitespace around placeholder (#6955)
Fixes some extra whitespace being added around the placeholder.

Fixes #6923.
2017-09-11 17:19:22 -07:00
Terry 841e88f947 docs(table): remove duplicate css in the table-filtering-example (#6935) 2017-09-11 17:16:39 -07:00
Joey Perrott 5d2ca2aaf7 Move CanDisable mixin to MdExpansionPanel. (#6926) 2017-09-11 17:15:35 -07:00
Kristiyan Kostadinov 8a21881fe3 fix(progress-bar): query mode not reversing direction in rtl (#6922)
Fixes the progressbar in query mode not reversing its direction in RTL.
2017-09-11 17:14:48 -07:00
Kristiyan Kostadinov 51396d027f perf(dialog): avoid repaintin dialog content element on scroll (#6890)
Fixes the `<md-dialog-content>` element being repainted on scroll.

Fixes #6878.
2017-09-11 17:13:12 -07:00
Will Howell 27cbe47839 feat(dialog): add afterOpen to MdDialogRef (#6887)
* feat(dialog): add afterOpen to MdDialogRef

Provides a hook for initializing component after animation is
complete.

* Complete afterOpen observable
2017-09-11 17:12:09 -07:00
Ji Won Shin 29399b8ee0 fix(datepicker): fix wrong datepicker-input value for non MM/DD/YYYY locales (#6798)
* fix date change value for internationalization

* change value setting logic + add test
2017-09-11 16:53:15 -07:00
Paul Gschwendtner a727f970cd build: snapshot builds for moment-adapter (#6823)
* Publishes the artifacts of the material-moment-adapter on a per-commit basis.
2017-09-11 16:27:46 -07:00
Kristiyan Kostadinov a37aa6a62c fix(chips): set appropriate aria-orientation (#6464)
Based on the [accessibility guidelines](https://www.w3.org/TR/wai-aria-practices-1.1/#Listbox), the `listbox` role has a default `aria-orientation` of `vertical`, however the chips in a chip list are horizontal.
2017-09-11 16:24:49 -07:00
tinayuangao ba2f498cef update version and change log to beta-11 (#6363) 2017-09-11 16:23:37 -07:00
Andrew Seguin 3be4da69a0 a11y: add service to add aria-describedby labels (#6168)
* checkin

* changes

* a11y(tooltip): add message element for tooltip a11y

* comments

* remove extra line

* add test for tooltip message as number

* remove fit

* use renderer

* always decrement

* add aria-describer

* add test

* tests

* md to cdk

* Add aria-hidden to container

* fix aot

* comments

* comments

* rebase

* fix prerender; add a11y docs
2017-09-11 16:22:38 -07:00
Joey Perrott 426324b252 Allow snackbar position on the screen. (#4045) 2017-09-11 16:00:11 -07:00
Kristiyan Kostadinov 79a2567702 chore: fix ts and lint error (#6956)
Fixes a TS compilation error and a lint error that somehow got into master.
2017-09-11 11:32:12 -07:00
tinayuangao f2cae6e814 demo(tabs): Add accessibility demo page for tabs (#6610)
* Add accessibility demo page for tabs

* fix lint;

* .
2017-09-08 14:33:43 -07:00
Ji Won Shin 4f4c48c6e0 docs(drawer): Add additional documentation for disableClose (#6750)
* create event for ESCAPE keydown

* revert changes and update doc instead

* address comments

* minor modification

* remove mention of drawer
2017-09-08 14:31:06 -07:00
Will Howell 9f2fd477f2 docs: sort class properties and methods (#6893)
* docs: sort class properties and methods

- Properties are sorted in the order of [Inputs, Outputs, neither]. Secondary sorting done alphabetically.
- Methods are sorted alphabetically.
- All deprecated members are sorted to the end.

* Use the same sort for methods and properties
2017-09-08 14:28:26 -07:00
Jeremy Elbourn ab20ffd996 docs(list): add example and missing JsDoc for selection-list (#6899) 2017-09-08 14:28:11 -07:00
Austin dd37acffb6 Add complex tabs example (#6295)
* demos(tabs): add advanced demo for tabs

* demo(tabs): update example module
2017-09-08 14:27:45 -07:00
Paul Gschwendtner a7ce31e60d fix(slider, drawer): unsubscribe from directionaly change subject (#6907)
If a slider component will be destroyed, the `ngOnDestroy` hook calls `_directionality.change.unsubscribe()`, which means that the `unsubscribe` method is called on the `EventEmitter` instead of the actual `Subscription`. This causes the `EventEmitter` to be kind of "completed", which then means that there will be errors if `emit()` is called again (https://github.com/ReactiveX/rxjs/blob/master/src/Subject.ts#L96).

Also fixes that the drawer never unsubscribes from the `_dir.change` `EventEmitter`. This means that even if the component is destroyed, whenever the directionality changes, the drawer calls `validateDrawers()`.

Fixes #6892. Fixes #6903.
2017-09-08 13:32:51 -07:00
Ji Won Shin bef6271c61 feat(stepper): Add e2e test (#6776)
* add e2e test for stepper

* create material example to run e2e tests

* Modifiy example
2017-09-06 13:36:07 -07:00
Kristiyan Kostadinov 5f4c44ebb1 build: infinite loop when determining dependencies on windows (#6884)
Fixes the `findstr` command going into an infinite loop on Windows due to it not being scoped to TS files.
2017-09-06 13:11:30 -07:00
Kristiyan Kostadinov d3abd726e2 build: add tslint rule for validating decorators (#6800)
* Reworks the `noViewEncapsulationRule` to turn into a more generic rule that allows us to validate multiple properties and decorators.
* Fixes a few components that were caught without a `moduleId` after implementing the new rule.
* Adds validation that all components have a `moduleId`.

Fixes #6778.
2017-09-06 11:13:01 -07:00
Paul Gschwendtner 547d11f870 fix(selection-list): proper style for disabled options (#6829)
* No longer shows ripples if md-list-option is disabled
* Properly shows disabled style for disabled md-list-option (the `mat-list-item-disabled` class has been already added as part of the selection list PR)
2017-09-06 10:38:19 -07:00
Jeremy Elbourn c564df61f4 chore: add try-catch section to coding standards (#6879) 2017-09-06 10:37:18 -07:00
Kristiyan Kostadinov 6b5100bec3 fix(menu): nested menu hover not working when trigger is added lazily (#6807)
Fixes not being able to open a sub-menu if its trigger is added after initialization.

Fixes #6731.
2017-09-06 10:36:46 -07:00
Joey Perrott cf1ece0f40 Remove MaterialModule. (#6803)
BREAKING CHANGE: MaterialModule has been removed and is no longer available.  As noted in the changelog for beta.3, an aggregate module like MaterialModule prevents tools from being able to treeshake unused components and modules.
2017-09-06 10:36:08 -07:00
Kristiyan Kostadinov f1b78d4c5f compat: selection list not working in compatibility mode (#6801)
Fixes the selection list not working in M1 compatibility mode.

Fixes #6746.
2017-09-06 10:34:09 -07:00
Kristiyan Kostadinov 87d607e719 fix(grid-list): styles not cleared when switching to a different styling mode (#6660)
Fixes the old styles not being cleared when switching between styling modes in the grid list (e.g. going for proportions to a fixed height).

Fixes #4047.
2017-09-06 10:30:14 -07:00
Austin d0eef620fe bug(tabs): tabs not disabled on change #6447 (#6644)
* bug(tabs): tabs not disabled on change #6447

* tests(tab): add better tests
2017-09-06 10:29:28 -07:00
Ji Won Shin c396596385 feat(stepper): Address previous comments + add directionality support (#6775)
* code cleanup + rtl support

* Fix based on review

* modify code for unit tests
2017-09-06 10:28:18 -07:00
Paul Gschwendtner 835014a709 build: missing minified umd bundles in releases (#6809)
With the recent change of the CDK entry points the copy glob in `build-release.ts` has been updated accidentally to no longer include the ".umd.min.js" files.

Fixes #6796
2017-09-06 10:12:40 -07:00
Kristiyan Kostadinov 001001cb37 build: custom tslint rules not executing in IDEs (#6817)
Fixes our custom tslint rules not executing IDEs, because they're written in TypeScript. This is the preferred option over switching them back to ES6, because some rules require access to TS files from other parts of the build (e.g. the Rollup globals rule).
2017-09-06 10:12:13 -07:00
tinayuangao 5527e22dec docs(a11y): Add a11y docs for table, expansion panel, dialog, chips, autocomplete… (#6751)
* Add a11y docs for table, expansion panel, dialog, chips, autocomplete, and select

* address comments
2017-09-06 10:11:48 -07:00
Andrew Seguin 398915339b docs(table): fix overflow issue on ie11 site (#6792) 2017-09-06 10:11:20 -07:00
Kristiyan Kostadinov 0786518d5a chore: wrong link to stepper in demo app (#6790)
Fixes the stepper link not pointing to the correct page.
2017-09-06 10:10:42 -07:00
Joey Perrott ffa4d9dcff Create missing markdown files for cdk items. (#6770) 2017-09-06 10:10:29 -07:00
tinayuangao 1b6b270551 docs(a11y): add accessibility sections to datepicker, menu, slide … (#6710) 2017-09-01 08:11:46 -07:00
Kristiyan Kostadinov cd16ec634f docs(typography): add note about font-family quotes (#6742)
Adds a note to the typography guide about the font-family having to be quoted. It seems like we can't handle this gracefull within the mixin using the built-in `is-string` function from SASS.

Fixes #6668.
2017-09-01 08:11:24 -07:00
tinayuangao 0f27e5ab6e demo(button): display snackbar when button is clicked (#6327) 2017-09-01 08:09:53 -07:00
tinayuangao 4353a4c584 demo(progress-bar): Add progress bar accessibility demo page (#6339) 2017-09-01 08:09:29 -07:00
tinayuangao ed735a174a chore: add skip navigation link for a11y demo (#6423) 2017-09-01 08:08:24 -07:00
Paul Gschwendtner 8f9f3c8fca fix(slide-toggle): support native tabindex attribute (#6613)
Currently the slide-toggle only allows changing the tabIndex using the `tabIndex` binding. Using the native `tabindex` attribute doesn't have any affect. With this change the native tabindex property will be respected.

References #6465
2017-09-01 08:08:02 -07:00
Kristiyan Kostadinov fe37cb2551 refactor(overlay): allow for object to be passed to the OverlayState constructor (#6615)
Allows for a config object to be passed to the `OverlayState` constructor. This makes the longer configurations a bit more convenient to use.
2017-09-01 08:07:35 -07:00