Commit Graph

591 Commits

Author SHA1 Message Date
Paul Gschwendtner acf07d18a9 build: publish script should not print error if tag does not exist (#15080)
Currently the publish script prints an error if the release tag does not exist locally yet. This is not expected since the function
that calls `git` to check if a given tag exists, returns a boolean and should not additionally print the git `stderr`.

Note we can also look into attaching the release notes automatically, but since the release notes are making the URL too large and Github denies too large URL's, this is something we can explore in a follow-ups.
2019-02-05 07:36:18 -08:00
John Crowson 3e935e9b79 feat(dialog): add ariaLabelledBy config option (#14943)
Adds the ability to set the `aria-labelledby` of a dialog without mat-dialog-title.
2019-02-05 07:32:54 -08:00
Kristiyan Kostadinov 33081878ab feat(overlay): allow for scroll strategy to be swapped out (#15067)
With #12306 we added the ability to swap out position strategies, however that won't be enough to handle all use cases since the consumer is still locked into the scroll strategy that they chose at the start. E.g. when switching an overlay from a dialog to a dropdown, it might not make sense to block scrolling anymore. These changes add an API to allow for the scroll strategy to be swapped.
2019-02-05 07:21:56 -08:00
Kristiyan Kostadinov cfe46dff32 fix(table): allow for a caption to be projected (#14965)
Fixes consumers not being allowed to project a caption into a CDK table.

Fixes #14948.
2019-01-30 14:01:40 -08:00
Paul Gschwendtner a6cc98fa6e feat(stepper): allow disabling ripples of headers (#14972)
* Adds a way for developers to disable ripples of the `MatStepHeader`. This is useful because currently developers have no way of specifically disabling ripples for a stepper (only disabling globally is possible)

Closes #14940.
2019-01-30 14:00:35 -08:00
Kristiyan Kostadinov 0ab81138cd fix(tree,scrolling): don't require user DataSource to extend DataSource (#14966)
Currently the way we verify that the passed in data source is by using `instanceof` which assumes that the consumer has extended our `DataSource`. In `cdk/table` we do the verification by checking whether the object matches the interface of a `DataSource` instead.

These changes add a utility method to check whether something is a data source and refactor the `tree` and `scrolling` entry points to be consistent with `table`.
2019-01-29 19:29:33 -08:00
Paul Gschwendtner ddd347dac6 build: simplify api golden target names (#14973)
* In order to make it easier to test/update goldens, the Bazel targets are updated to the match the actual golden file paths. This is useful because developers can then use terminal autocompletion to go to the desired golden file, and just need to add the `_api` suffix. This easier than manually constructing the Bazel API target name which is not intuitive and takes up time.
2019-01-28 16:07:28 -08:00
mmalerba e7b0e40bfa fix(stepper): ensure step state is not minified (#14933)
* fix(stepper): ensure step state is not minified

* update api goldens

* address feedback

* fix number state
2019-01-25 11:41:57 -08:00
Kristiyan Kostadinov 5a18ea61e5 feat(drag-drop): add service for attaching drag&drop to arbitrary DOM nodes (#14437)
* Adds the  `DragDrop` service that simplifies the construction logic for `DragRef` and `DropListRef` and allows consumers to attach drag&drop functionality to arbitrary DOM nodes, rather than having to go through the directives.
* Reworks `DragRef` and `DragDropRef` to make them easier to construct.
* Normalizes some of the instances where some parameters only accept an `ElementRef`, whereas others accept `ElementRef | HTMLElement`.
2019-01-25 09:07:15 -08:00
Kristiyan Kostadinov e66131744a feat(tabs): add automatic scrolling when holding down paginator (#14632)
Adds some code that automatically keeps scrolling the tab header while holding down one of the paginator buttons. This is useful on long lists of tabs where the user might have to click a lot to reach the tab that they want.

Fixes #6510.
2019-01-23 11:42:07 -08:00
Paul Gschwendtner f0708b4639 build: add missing bazel action names (#14910)
In order to have proper action names when running bazel, we should add progress messages for all custom rules. Currently Bazel always uses the first input as action name, but this is *very* confusing since failures lead to the input file, instead of the associated Bazel action.

Note that this is not really a progress_message, but it is consistent with native bazel actions (e.g. `StarlarkAction`)
2019-01-23 11:17:40 -08:00
Paul Gschwendtner e1b9c2d4ec build: remove unused dgeni package configurations (#14909)
* Removes some configuration parts of the Dgeni docs package which are overwritten by Bazel using the `apiDocsPackage`. Globs do not work within Bazel.
2019-01-23 11:17:14 -08:00
Kristiyan Kostadinov 342e6f0ad8 feat(tooltip): allow for default position to be configured (#14872)
Allows for the default position of `MatTooltip` to be set via an injection token.

Fixes #14862.
2019-01-23 11:13:03 -08:00
Paul Gschwendtner 1f3324ec1f build: allow recovering from failed publish script (#14906)
* build: fix version bumps not detected in release script

* build: allow recovering from failed publish script

* Currently if anything fails after the creating the local git tag, it's not possible to just re-run the release script because the script fails with an error saying that the local tag already exists. We can be smart about this and just use the existing tag if it refers to the expected SHA.
* Additionally if anything fails after pushing the release tag to the remote, it's not possible to re-run the release script because the tag exists remotely. We can be smart about this and just use the remote tag if it refers to the expected SHA.
2019-01-22 09:30:17 -08:00
Paul Gschwendtner 5a8dd1e9a5 build: update outdated api goldens (#14854)
* build: update outdated api goldens

* Fix failing drag-drop test
2019-01-17 11:34:19 -08:00
Kristiyan Kostadinov 9d2cb6c296 refactor(tabs): fix incorrect types for outputs (#14815)
Corrects some inaccurate types on a couple of the outputs of the `MatTabHeader`.
2019-01-17 11:33:00 -08:00
Kristiyan Kostadinov 463ac9e49a fix(list): disableRipple on list input not taking effect after init (#14836)
Fixes the `disableRipple` on the list not having an effect if it's changed through the input after init.

Fixes #14824.
2019-01-17 11:31:38 -08:00
Kristiyan Kostadinov 651549f7af feat(overlay): allow for connected overlay to be positioned relative to a point (#14616)
Allows for the connected overlay's origin to be set to a point on the page, rather than a DOM element. This allows people to easily implement right click context menus.

Relates to #5007.
2019-01-16 10:40:58 -08:00
Michael Hoffmann f6d0ea80ca docs(cdk-stepper): add guide to create stepper (#14710)
* docs(cdk-stepper): add guide to create stepper

* Added guide how to create a custom stepper using the CDK
* Added a material example to demonstrate the custom CDK stepper
* Made steps from CdkStepper public as it is necessary to build
a custom stepper

* Review comments
2019-01-16 10:37:01 -08:00
Paul Gschwendtner 2307489dff build: publish docs-content bazel artifacts (#14634) 2019-01-15 19:55:24 -08:00
Kristiyan Kostadinov 5773a5b694 chore(tabs): update api goldens (#14844)
Fixes the tabs API goldens not being up to date.
2019-01-15 19:41:38 -08:00
Kristiyan Kostadinov 0fd6456807 refactor(drag-drop): clean up DragRef public API (#14654)
Cleans up the API of the DragRef before we can expose it through the public API by making the handle, custom placeholder and custom preview easier to configure.
2019-01-14 17:16:41 -08:00
Paul Gschwendtner 4b786bd10a build: fix api goldens for dialog changes (#14830)
* Fixes the API goldens which haven't been updated for https://github.com/angular/material2/commit/b62f3f3b4a0fe5713aeef459d56ff1adcea853bb properly due to not being rebased on ec9f9c836c
2019-01-14 17:13:41 -08:00
Will Howell b62f3f3b4a feat(dialog): support adding and removing classes via dialogRef (#14772)
* feat(dialog): support adding/removing panelClasses to open dialogRef

Fixes #6206

* address comments
2019-01-14 15:39:34 -08:00
Kristiyan Kostadinov f6b428854c fix(icon): clean up cached references in icon registry on destroy (#14801)
The icon registry can end up caching some fairly large SVG elements which may end up being retained, because we're using a regular `Map`. These changes clear out all the references if the registry is destroyed.
2019-01-14 15:36:24 -08:00
Paul Gschwendtner 4701c7bc54 build: switch to docs-content from examples package (#14612)
With https://github.com/angular/material.angular.io/pull/565 the docs-content will be pulled from the `@angular/material-examples` package. Changes needed on this repository:

* Since we update some styles and logic in favor of simplicity, we need to update the Dgeni templates to conform with these changes.
* Remove the unnecessary `examplesPath` property member because we now compute the `docs-content/` asset paths in a consistent way and don't want to mix up the source locations.
2019-01-11 14:44:03 -08:00
Paul Gschwendtner 326f8bb32f build: run e2e tests with bazel (#14656)
* Builds the e2e app with Bazel
* Serves the e2e app with Bazel
* Runs the e2e tests with Bazel protractor rules
2019-01-11 14:43:04 -08:00
Paul Gschwendtner 5d86a1fe09 build: fix incorrect amd module names (#14786)
* Our UMD bundles currently have wrong AMD module names for secondary entry-points which are dash-cased. e.g. AMD module name for the bottom-sheet is `@angular/material/bottomSheet`.
* Our UMD bundles currently reference incorrect rollup globals. e.g. the AMD module name is `ng.material-experimental.{secondary}`, while it should be `ng.materialExperimental`.
2019-01-11 14:42:10 -08:00
Paul Gschwendtner 85b90e0cdb build: fix public api goldens (#14770) 2019-01-09 11:18:49 -08:00
Paul Gschwendtner aad9876403 build: run release output validations on circle (#14716)
* Runs the release output validations on CircleCI after all release packages have been built.

Closes #12877
2019-01-09 10:44:11 -08:00
Paul Gschwendtner ec9f9c836c build: test material entry-points against api goldens (#14707)
Closes #13801
2019-01-09 10:43:26 -08:00
Paul Gschwendtner 0d7258b4e2 build: update nodejs rules (#14622)
Updates to the latest version of the NodeJS rules that includes https://github.com/bazelbuild/rules_nodejs/commit/c40ceb960af4213164d4299d8fbc8220ebdd727f
2019-01-09 10:41:48 -08:00
Kristiyan Kostadinov 65ecb0886e fix(typography): deprecation warning in latest sass version (#14673)
* Updates to the latest `node-sass` version.
* Fixes the build not using the `node-sass` version from the package.json.
* Fixes a deprecation warning from the latest SASS version when the consumer has configured a non-string `font-family` (e.g. `Helvetica Neue`).

Fixes #14636.
2019-01-04 10:55:08 -08:00
vivian-hu ebdc873e98 Fix(tree):allow NestedTreeControl to have null or undefined child (#14601) 2019-01-03 13:56:35 -08:00
Paul Gschwendtner 5968b46df0 build: replace custom file casing rule with integrated rule (#14618) 2019-01-02 15:50:17 -08:00
Kristiyan Kostadinov 8ce6ba4c26 build: dev app not picking up typography changes (#14611)
Fixes the dev app CSS not being rebuilt when the typography styles change.
2019-01-02 15:49:37 -08:00
Paul Gschwendtner 452c6d391a build: ensure that there are no invalid dynamic imports (#14619)
**Note**: In a follow-up I want to wire up the release output validations as part of a CircleCI job. It just makes sense to keep all of these release output validations in the same place.

References https://github.com/angular/material2/issues/12877
2019-01-02 15:49:15 -08:00
Paul Gschwendtner d22f48c742 build: package material api docs into npm package (#14508) 2018-12-21 11:51:35 -08:00
Paul Gschwendtner 12bf619bcc build: filter out experimental changes from changelog (#14598)
* Based on request from Vivian and the comments on the last changelog
PR, we don't want to report experimental package changes (yet). In order
to make this easier for the caretaker when doing releases, we just
filter these out automatically.
2018-12-20 13:53:17 -08:00
Paul Gschwendtner 27d3b024c5 build: publish release script should add release notes to tag (#14599) 2018-12-20 13:45:09 -08:00
Paul Gschwendtner 0ba6057058 build: automatically push release tag to upstream (#14595) 2018-12-20 13:39:58 -08:00
Paul Gschwendtner fe0c2a8ca4 build: remove gulp publish tasks (#14594)
* The gulp publish script has been replaced with a standalone NodeJS script. This just made a lot of things easier and also could work with Bazel in the future.
2018-12-20 10:45:43 -08:00
Paul Gschwendtner fe7f95ec10 build: add script to publish release (#14565)
Closes #13455
2018-12-19 13:34:03 -08:00
Paul Gschwendtner 5c959932c0 build: do not generate empty changelog sections (#14581)
* Since we filter out duplicate changelog entries it can happen that a `commitGroup` shows up without any commits. e.g. there would be an empty section for `"Features"`.
2018-12-19 13:23:00 -08:00
Kristiyan Kostadinov 1b6e7b13a5 chore: update a11y golden (#14576)
It seems like a change made it in that moves something around in the a11y golden file that fails the build.
2018-12-19 07:47:58 -08:00
Kristiyan Kostadinov 2463200324 refactor: add utility for coercing element refs (#14258)
Since we're having more and more APIs that accept both an `ElementRef` and an `Element`, we have a few places that repeat the same logic for coercing the value to an `Element`. These changes add a utility function that can be used everywhere.
2018-12-19 07:13:28 -08:00
Kristiyan Kostadinov 14b90db522 fix(drag-drop): update root element if selector changes (#14426)
Currently the root element is only resolved once on init, however since it's an input, it could change. These changes add some logic to keep the element up to date.
2018-12-19 07:05:53 -08:00
Paul Gschwendtner fa83e8dd54 build: allow minor releases from master branch (#14564) 2018-12-18 10:58:51 -08:00
Kristiyan Kostadinov 792d536580 feat(drag-drop): add released event (#14513)
Adds the `cdkDragReleased` event, in addition to `cdkDragEnded`. The difference between released and ended is that released will fire as soon as the user has released the item, whereas ended will fire once all animations are done. The former is useful to customize the animation on drop, based on where the item is being dropped.

Fixes #14498.
2018-12-18 07:23:12 -08:00
Kristiyan Kostadinov 26ff7ec564 chore: correct dependencies in packages config (#14542)
Fixes `cdk-experimental` being set up to have a dependency on `material`, as well as `material-experimental` having a dependency on `cdk-experimental`. Also adds `cdk` and `material` as dependencies to `material-examples`.
2018-12-17 20:20:11 -08:00