Commit Graph

4709 Commits

Author SHA1 Message Date
Paul Gschwendtner c4331048ec build(schematics): version placeholders not replaced (#13688)
Since we copy the schematics after the version placeholders have been inlined, the version range that uses the NG version placeholder is not replaced properly.

This is not problematic because by default we determine the NG version based on the installed `@angular/core` version.

```
 addPackageToPackageJson(host, '@angular/animations',
        ngCoreVersionTag || requiredAngularVersionRange);
```
2018-10-29 08:12:46 -07:00
Kristiyan Kostadinov ab5127b6e1 docs: add example for cdk platform (#13821)
Since the overview for `cdk/platform` is pretty bare on the docs site at the moment, these changes add an example that illustrates how the utilities can be used.
2018-10-29 08:11:53 -07:00
Paul Gschwendtner 91d4c0f649 build: share release output between circle jobs (#13838)
Also support parallel Karma instances on CircleCI
2018-10-29 08:11:35 -07:00
Greg Magolan b3a00376cd build: update to Angular 7.0.1 http_archive & @angular/bazel package (#13831)
* Update to Angular & @angular/bazel 7.0.1
* Remove sha256 from io_bazel_rules_sass http_archive
2018-10-29 07:57:56 -07:00
Paul Gschwendtner a479366c76 build: test remaining packages with bazel (#13844)
* Sets up Bazel build and testing for the `cdk-experimental`, `material-experimental` and `material-moment-adapter` package.
2018-10-29 07:51:02 -07:00
mmalerba 0bd8899917 chore: bump version and create 7.0.2 changelog (#13830) 2018-10-26 11:43:29 -07:00
Paul Gschwendtner ea9354e48e build: suppress warnings when building tests with bazel (#13816)
* Suppress Bazel warnings when compiling the unit tests. This is necessary for the test tsconfig because TypeScript does not inherit third-party `tsconfig` options.
2018-10-25 11:58:35 -07:00
Kristiyan Kostadinov f230633296 fix(radio): don't show hover ripples on touch devices (#13701)
On touch devices `:hover` styling persists after the user has tapped. These changes hide the persistent ripple if the user isn't able to hover, in order to avoid confusion with the other ripples.

Related to #13675.
2018-10-25 11:58:13 -07:00
Kristiyan Kostadinov fbbe463354 feat(stepper): add CdkStepHeader directive and fix CdkStepper error on init (#10614)
* Adds the `CdkStepHeader` directive which is the equivalent of `MatStepHeader` and can be used by consumers when building custom steppers.
* Fixes an error that was being thrown on init when using a `cdkStepper` directly.

Fixes #10611.
2018-10-25 11:55:38 -07:00
Nathan d2d8a1f675 feat(drag-utils): add utility function for cloning array items from one array to another (#13743)
* feat(drag-utils): add utility function for cloning array items from one array to another

creates a utility helper for cloning an array item into the array of the drop container
compliments moveItemInArray and transferArrayItem

partially closes #13100

* feat(drag-utils): add utility function for cloning array items from one array to another

resolves issues surfaced from code review

* feat(drag-utils): add utility function for cloning array items from one array to another

cuts extra space between parens

* removes link in comments, and clarifies function definition as recommended in review

* resolves nits
2018-10-25 08:21:19 -07:00
Kristiyan Kostadinov 4fbbb9d52d feat(ng-add): add preview URLs for theme choices (#13723)
Adds URLs that people can use to preview a theme, before selecting it, when going through the ng-add prompts.
Formatting is aligned with https://github.com/angular/angular-cli/blob/907ce5c94c774147c4b52870b3522aed4e087c76/packages/schematics/angular/ng-new/schema.json#L121

Fixes #13708.

**A couple of notes:**
* Blocked until https://github.com/angular/material.angular.io/pull/549 is merged and released.
* Marking this as `patch`, even though it's a `feat`, since it's basically just message changes.
2018-10-25 08:17:19 -07:00
Kristiyan Kostadinov 04716b1ad0 fix(expansion-panel): don't handle enter/space if modifier is pressed (#13790)
Doesn't `preventDefault` and handle the enter and space key presses if the user is pressing any of the modifier keys.

Fixes #13783.
2018-10-25 08:15:35 -07:00
Kristiyan Kostadinov 5d54920e81 fix(tooltip): add fallback for touch devices if Hammer isn't loaded (#13580)
Unlike other components that we use Hammer on, the tooltip won't show up at all on a touch device if Hammer isn't loaded. These changes add a fallback to using a `touchstart` event to trigger the tooltip.

Also fixes the `_manualListeners` not being cleared on Android.

Fixes #13536.
2018-10-24 16:13:35 -07:00
Kristiyan Kostadinov bbeb5ef46c fix(stepper): incorrect border color in dark theme for header with label position (#13791)
Fixes the extra border that gets added in `labelPosition="bottom"` not being colored based on the theme.
2018-10-24 16:12:29 -07:00
mmalerba 65dd75d8ec fix(cdk-platform): pass {} to @NgModule since passing nothing breaks (#13792)
in JIT mode
2018-10-24 16:12:00 -07:00
Kristiyan Kostadinov e40e6c10b9 chore: update dev environment guide to use yarn (#13800) 2018-10-24 15:36:00 -07:00
Paul Gschwendtner f5d42cd599 refactor(schematics): group ng-generate schematics in folder (#13794)
* Similarly to the CDK schematics, schematics that can be (ng-)`generated` should be grouped into its own directory. This cleans up the schematics folder and makes it clear where each schematic lives.
* Removes a tslint ignore comment in a schematic test.
2018-10-24 15:35:46 -07:00
Paul Gschwendtner 631c991d8f build: use angular 7.0.0 w/ bazel (#13793)
* Switches away from the temporary `angular/angular:bazel` branch and uses a version of Angular that is based on `master` and comes after `v7.0.0`.
2018-10-24 15:35:35 -07:00
Kristiyan Kostadinov 530c0eb1c5 docs(drag-drop): add doc section and live example for customizing the placeholder (#13777)
Adds a paragraph about the `cdkDragPlaceholder` and sets up a live example.

Fixes #13765.
2018-10-24 15:35:22 -07:00
Paul Gschwendtner b30ec56364 build: run browserstack on circleci (#13749) 2018-10-24 15:35:06 -07:00
Paul Gschwendtner bec5823719 build: test material with bazel (#13670)
* build: test material with bazel

* Supports testing `src/lib` with Bazel.

* Add prebuilt theme to all Material tests

* Always include prebuilt theme. Rebase changes for paginator spec
2018-10-24 15:34:40 -07:00
Paul Gschwendtner 3cabf781a8 refactor(ng-add): inserted version should align with other Angular dependencies. (#13704)
In favor of consistency, the versions that will be inserted when running `ng-add`, should be aligned with the default Angular dependencies in a new CLI project.

This means that we should not provide the version with a leading caret because that means that NPM can automatically/ and magically update to the most recent minor version. This shouldn't cause any problems but is just not in sync with other Angular dependencies.

All other Angular dependencies (e.g. `@angular/core') will be installed with a leading tilde. This means that it can only happen that NPM automatically updates to the most recent patch release. We should do the same in order to be consistent.
2018-10-24 15:34:20 -07:00
Paul Gschwendtner e6a25f4420 build: bazel and gulp tsconfigs need to be in sync (#13707)
* Similar to how we did it for the CDK, the ts compilations through Bazel and Gulp should be as similar as possible in order to make the tests w/ Bazel creditable.
2018-10-24 15:34:04 -07:00
Paul Gschwendtner 985774a4ea fix: material not working with ES2015 (#13709)
Fixes that Angular Material cannot be used with ES2015. See #12760 for detailed information. We already had a workaround applied, but this improves the workaround because it only partially worked for classes where no attributes were defined.

Fixes #13695.
2018-10-23 13:48:03 -07:00
Kristiyan Kostadinov d5f0f0f5fa fix(stepper): selector assuming that there will always be a dir attribute (#13751)
One of the selectors in the step header assumes that there will be at least one parent with a `dir="ltr"` or `dir="rtl"`. These changes rework it to have LTR as the base.

Fixes #13741.
2018-10-23 13:47:48 -07:00
Kristiyan Kostadinov e5fe34cab1 fix(checkbox): disabled property not being coerced (#13755)
Fixes the `disabled` property not being coerced like all the other components.

Fixes #13739.
2018-10-23 13:47:35 -07:00
Kristiyan Kostadinov b636cc09d6 chore: fix compilation error in bottom sheet tests (#13775)
Fixes a compilation error that got in through a PR that was opened before we updated to TS 3.1.
2018-10-23 12:53:50 -07:00
Paul Gschwendtner 3ca3e39d59 build: update dgeni-packages version (#13772)
* Updates to the latest `dgeni-packages` version that includes: https://github.com/angular/dgeni-packages/commit/5d90fd9f31541f380a62a52fd31493b232b9585c. This allows us to remove a workaround.
* Removes the closure testing stuff that hasn't been used for months. In case we want to reintroduce testing w/ Google Closure, we should consider using Bazel or something (AFAIK there are Bazel rules for closure)
2018-10-23 12:00:11 -07:00
Kristiyan Kostadinov cb4f5a07d5 feat(paginator): allow paginator to be disabled (#13146)
Adds the ability for the paginator to be disabled. This is useful for cases like long-running HTTP requests where the user shouldn't be able to change the current page while the data is still loading.

Fixes #13145.
2018-10-23 11:02:50 -07:00
Kristiyan Kostadinov 83fc823715 feat(bottom-sheet): allow focus restoration to be disabled (#13153)
Similarly to `MatDialog`, allows focus restoration to be disabled for `MatBottomSheet`.

Fixes #13150.
2018-10-23 11:02:23 -07:00
Kristiyan Kostadinov 0cd75366c4 feat(tabs): add the ability to customize the animation duration (#13505)
Adds the `animationDuration` input and the `MAT_TABS_CONFIG` injection token that can be used to configure the duration of the tab animation.

Fixes #13428.
2018-10-23 11:02:07 -07:00
Paul Gschwendtner 4cdf5bafd6 fix(stroked-button): ripples and focus overlay have incorrect radius (#13745)
Due to the fact that stroked buttons have a border that reduces the available space for child elements, the absolute positioned ripple container and focus overlay do not match the `border-radius` with the actual button element. 

In order to fix this in a non-breaking way, we just use `overflow: hidden` for stroked buttons as compared to just using `overflow: hidden` in general for buttons (like it has been done with https://github.com/angular/material2/pull/9424)

![image](https://user-images.githubusercontent.com/4987015/47302045-c5c32c00-d620-11e8-9d58-bc34b421943f.png)



Fixes #13738
2018-10-23 10:23:48 -07:00
Kristiyan Kostadinov e8f8d079fa fix(slide-toggle): don't show hover ripples on touch devices (#13702)
On touch devices `:hover` styling persists after the user has tapped. These changes hide the persistent ripple if the user isn't able to hover, in order to avoid confusion with the other ripples.

Related to #13675.
2018-10-23 09:16:04 -07:00
Paul Gschwendtner efe53a0999 fix(button-toggle): webkit tap highlight conflicting with ripples (#13721)
Due to the fact that the `<mat-button-toggle-group>` still has `cursor: pointer`, the webkit tap highlight overlay will show up on touch devices.

This causes a bad UX because the overlay covers the whole group while only an individual option has been touched. Additionally a ripple already shows up and now conflicts with the tap highlight overlay.
2018-10-23 09:15:39 -07:00
Paul Gschwendtner 0e8ef603bb chore: stage release script should create commit (#13748) 2018-10-23 09:02:36 -07:00
Joey Perrott 47de296116 chore: bump version to 7.0.1 w/ changelog (#13747) 2018-10-22 09:44:47 -07:00
Kristiyan Kostadinov 193eb48612 build: bump dashboard to Angular 7 final and switch to yarn (#13706) 2018-10-22 07:05:51 -07:00
Joey Perrott efeefd1408 build: fix getRemoteCommitSha to only return the sha (#13699) 2018-10-19 15:06:32 -07:00
Paul Gschwendtner 2f1578478e refactor(schematics): better ng-update success message (#13687) 2018-10-19 14:38:04 -07:00
Kristiyan Kostadinov 992bcfb179 refactor(platform): add utility to normalize passive event listener options (#13533) 2018-10-19 14:04:29 -07:00
Kristiyan Kostadinov c38ebb63cb fix(drag-drop): not picking up handle that isn't a direct descendant (#13360) 2018-10-19 14:03:36 -07:00
Paul Gschwendtner fb8496dc45 build: move aot and prerender jobs to circleci (#13690) 2018-10-19 13:42:55 -07:00
Joey Perrott 59b47e1a83 doc(select): correct css styles in select panel custom styling example (#13691) 2018-10-19 13:42:31 -07:00
Kristiyan Kostadinov 1832dd1606 refactor(list): convert MatLineSetter into a function (#13369) 2018-10-19 09:21:04 -07:00
Kristiyan Kostadinov 037a746b0e fix(grid-list): unable to assign numeric zero as gutter size (#13652) 2018-10-19 08:42:50 -07:00
Kristiyan Kostadinov 88c6548859 fix(progress-bar): not taking current path after first initialization (#13628) 2018-10-19 08:19:46 -07:00
Kristiyan Kostadinov beb473949b fix(sidenav): opened and closed events emitting twice on IE and Edge (#13649) 2018-10-19 08:18:37 -07:00
Kristiyan Kostadinov 8d98375237 fix(autocomplete): not propagating same model value when reset while open (#13634) 2018-10-19 08:17:45 -07:00
Kristiyan Kostadinov fa6e46da98 fix(expansion-panel): emitting events twice on some browsers (#13600) 2018-10-19 08:16:57 -07:00
Kristiyan Kostadinov e51de157e0 fix(menu): proper focus styling when opened by tap on a touch device (#13599) 2018-10-19 08:16:11 -07:00