Commit Graph

4624 Commits

Author SHA1 Message Date
Paul Gschwendtner ef429c44a8 fix(schematics): do not publish testing utilities to npm (#13633) 2018-10-16 15:40:53 -04:00
Paul Gschwendtner 240acf6a57 build: update bazel sass rules (#13622) 2018-10-16 12:36:31 -04:00
Kristiyan Kostadinov 39a57767fd chore(drag-drop): fix leftover cdkDrop references (#13629) 2018-10-16 12:36:08 -04:00
Paul Gschwendtner 8e324c8e21 build: run chrome and firefox headless tests in circleci (#13603) 2018-10-16 12:35:37 -04:00
Andrew Seguin 3f98306429 chore: bump package.json to 7.0.0-rc.2 (#13623)
* chore: bump package.json to rc.2

* update
2018-10-15 15:16:23 -07:00
mmalerba 8cfaeea4b0 fix(virtual-scroll): fix several small bugs (#13597)
* fix(virtual-scroll): fix several small bugs

fixes include:
* ensure content wrapper is at least as wide as the viewport
* run change detection when data source emits but the data length remains the same
* improve error message when no virtual scroll strategy is provided
* add docs on using a custom virtual scroll strategy

* address comments

* address feedback
2018-10-15 14:02:49 -07:00
Joey Perrott 160b68877f chore(drag-drop): rename cdkDrop to cdkDropList (#13619) 2018-10-15 14:00:44 -07:00
Kristiyan Kostadinov 60b4a58bc3 fix(drag-drop): enterPredicate being called with wrong drop container (#13578)
Fixes the `enterPredicate` being called with the item's current container, rather than the one it is being moved into. Also tweaks the function signature to avoid unnecessary null checks and expands the description.
2018-10-15 13:15:45 -07:00
Paul Gschwendtner 6afe3f557f refactor(schematics): add test cases for cdk ng-update (#13517) 2018-10-15 09:37:00 -07:00
Paul Gschwendtner d128fffcd6 build: test cdk with bazel (#13575)
* build: test cdk with bazel

* Add comment for bazel tsconfig files

* CDK tsconfig sync with Bazel build tsconfig
2018-10-15 09:35:51 -07:00
Kristiyan Kostadinov 85f04db62a build: set up tooling to ensure consistent prefixes for CSS classes (#13563)
Enables the `selector-class-pattern` Stylelint rule and fixes everything that wasn't consistent.

Fixes #13545.
2018-10-15 09:35:35 -07:00
Andrew Seguin b2e2dde200 chore(table): cleanup demo by moving to examples (#13576) 2018-10-15 09:35:04 -07:00
Kristiyan Kostadinov 5d538d706c fix(experimental/dialog): disableClose option not working (#13584)
* Fixes the `disableClose` option not working for `cdk-experimental/dialog`.
* Updates our unit tests that were supposed to catch the issue, but didn't. Also updates similar tests for `material/dialog` and `material/bottom-sheet`.

Fixes #13583.
2018-10-15 09:34:35 -07:00
Kristiyan Kostadinov ba7d53d5bb fix(experimental/dialog): emitting events twice on some browsers (#13587)
Fixes the `Dialog` emitting some of its events twice on certain browsers due to an issue in `@angular/animations` which invokes the animation `done` callback twice.

Fixes #13585.
2018-10-15 09:34:13 -07:00
Paul Gschwendtner 3ee9b47a3c refactor(schematics): do not depend on parse5 twice (#13594)
* As we've already moved the ng-update foundation to the CDK, and therefore introduced an `optionalDependency` on `parse5` for the CDK, we should also move the last `parse5` call from `@angular/material` to the `@angular/cdk`. This way we don't depend on `parse5` for both packages + we can re-use the abstract utility function within the CDK schematics if we need them.

* The `parse5` runtime check is actually not working because NodeJS would throw already if we just `require("parse5")`. Since we marked `parse5` as a dependency and the default NodeJS `module not found` message is clear enough, we can remove this check from the `ng-add` command as well.
2018-10-15 09:33:37 -07:00
Paul Gschwendtner 1ccd1eed92 build: fix cronjob snapshot jobs failing (#13595)
* Due to the fact that we modify the `package.json` in cronjobs without updating the actual lock-file, the `--frozen-lockfile` installation fails. In order to fix this, we should just re-install the dependencies after the general `yarn` installation.
2018-10-15 09:33:27 -07:00
Paul Gschwendtner 8c3457b50a build: move lint job to circleci (#13596)
* Runs the Lint job on CircleCI within a new workflow.
* Adds comment for structuring the Circle config file (the file will
become even larger in the future)
2018-10-15 09:33:15 -07:00
Paul Gschwendtner be65a2bf73 chore: remove unused schematics readme (#13604)
* Since we already track all available schematics in the schematics guide, we should remove the outdated `README.md` for the Angular Material schematics.
* Also while being at it, we should remove the readme for the CDK schematics as well because there is no useful information stored within that readme (the source is self-explaining; and documented mostly)
2018-10-15 09:32:43 -07:00
Nicolas Falla a90aaea073 doc: fix typo in changelog 2018-10-15 09:32:14 -07:00
Kristiyan Kostadinov 28e19a7cef chore: wrong name for drag&drop input (#13513)
Fixes a typo in the name for the `cdkDragEnterPredicate` input.
2018-10-11 10:02:47 -07:00
Kristiyan Kostadinov 84288689dd chore: fix z-index on drag-drop demos and button width on tooltip demo (#13515)
* Fixes the free-dragging example in the docs site going under other UI elements if they're dragged too far.
* Fixes one of the buttons on the tooltip demo being uneven.

Fixes #13510.
2018-10-11 10:02:01 -07:00
Paul Gschwendtner 9085de716a feat(schematics): prompt for name when generating component (#13518)
* Since the CLI is able to prompt for required schema properties, we should automatically prompt for a name when a developer wants to generate a CDK or Material component.
2018-10-11 10:01:11 -07:00
Pedro Poveda 7ef88041c0 docs: clean up slide toggle API Docs (#13522)
* docs: clean up slide toggle API docs

* fix: grammar fix
2018-10-11 10:00:57 -07:00
Paul Gschwendtner 282736f8be build: build cdk with angular from source (#13541)
* build: build cdk with angular from source

* Continues the long-term Bazel goal by fixing the CDK bazel build
targets. Also builds the CDK targets with Angular from source.

Follow up's will try to make serving, and testing possible.

* Build package on CI

* No longer compile with AOT compiler that generates factory files that cannot be packaged into "ng_package"
2018-10-11 10:00:40 -07:00
Kevin Lanni a2c23a45be docs: fix typo in typography example (#13564) 2018-10-11 09:59:43 -07:00
Paul Gschwendtner 2dff30161d chore(schematics): re-enable linting for ignored file (#13542)
* Re-enables linting for the `build-component` file which has been originally copied from `@schematics/angular`. For some reason, linting has been disabled explicitly for this file. This re-enables TSLint.
* Also fixes a few shadowed variable failures (this logic comes from the `@schematics/angular:component` schematic and **should** be kept as similar as possible)
2018-10-10 11:28:53 -07:00
Paul Gschwendtner b0a1dafa8e fix(schematics): template content exceeds max line length (#13521)
* Assuming most of the CLI projects have the line limit at around `100`, one line within the `address-form` TS template file exceeds this average max-line-length boundary by `17`.
2018-10-10 11:28:40 -07:00
Paul Gschwendtner c14c34e84a docs: show all available schematics in the schematics guide (#13520)
* docs: show all available schematics in the schematics guide

* Updates the outdated `schematics` guide to mention the new available component schematics.

* Address feedback
2018-10-10 11:28:08 -07:00
mmalerba f1386824ab demo(prerender): add theme to prerender demo (#13516) 2018-10-10 11:27:50 -07:00
Kristiyan Kostadinov c4a422abad build: fix custom lint rule throwing errors in IDE on invalid files (#13488)
Fixes errors being thrown by the decorator validation rule when run in an IDE. The errors can happen, because the rule is run for each key stroke and the user might not be done typing out the definition yet. The two cases where it was throwing were when a decorator is added without being called (e.g. `@Component class Something`) and when defining a new property that doesn't have an initializer yet (e.g. `@Component({selector})`).
2018-10-10 11:27:12 -07:00
Paul Gschwendtner e0856645e0 build: enable sourcemaps for bazel (#13471)
* Since the NodeJS rules execute built code in a sandbox, we need to enable source map support. This is recommended by the `Bazel NodeJS` rules.

* Also introduces support for repository-wide defaults. This will be helpful when fully switching to Bazel.
2018-10-10 11:27:05 -07:00
Paul Gschwendtner 4ada0c46fa build: fix firebase app type warnings (#13469)
* The `firebase` packages comes by default without typings. Firebase defines the app types as peer dependencies, so we should fix those.
2018-10-10 11:26:57 -07:00
Paul Gschwendtner d1e59a21fc fix(ng-add): do not add theme file if existing theme is set up (#13468)
* fix(ng-add): do not add theme file if existing theme is set up

* No longer adds other theme files to the workspace configuration if a custom theme has been generated in a previous run already.

* Instead of silently doing nothing if a prebuilt theme is being generated while another prebuilt theme is already defined, we now replace the previous prebuilt theme with the new theme.

* Do not overwrite existing custom-theme files
2018-10-10 11:26:49 -07:00
Jeremy Elbourn 21de68e6d7 docs: update readme for Q4 2018 (#13463) 2018-10-10 11:26:38 -07:00
Michael Prentice 4a0eb2bc70 fix(schematics): tree folder icons do not have enough contrast (#13462)
addresses aXe/Lighthouse a11y audit failures
2018-10-10 11:26:30 -07:00
Paul Gschwendtner b06a897b5b build: ensure dependencies are properly locked (#13482)
* Since we lock our dependencies in the `yarn.lock` file, we need to enforce that the lock file is in sync with the `package.json` file (similar as in angular/angular)
* Since we cache the dependenices & the yarn cache within Travis, it can happen that the node modules are stale (there is no checksum mechanism in Travis). In that case we need to purge the node modules and re-install.
2018-10-10 11:26:05 -07:00
vivian-hu 2e4a51180b chore: bump verion to 7.0.0-rc.1 w/ changelog (#13501) 2018-10-08 17:34:05 -07:00
Jeremy Elbourn 9cd3132607 chore: fix implicit-any error in drag-styling.ts (#13500) 2018-10-08 17:09:46 -07:00
Kristiyan Kostadinov f3555f164e refactor(drag-drop): convert cdk-drop into a directive (#13441)
Converts `cdk-drop` into a directive and moves the handful of structural styles into JS.

Fixes #13341.
2018-10-08 15:59:44 -07:00
Paul Gschwendtner 4b15b78a44 build(docs): ensure const types are not truncated (#13457)
* By default TypeScript truncates the types when calling `typeToString`. Since we don't want to truncate the types automatically, we need to work around: https://github.com/angular/dgeni-packages/issues/276 until there is a possibility to change this using the `tsHost`.
2018-10-05 16:36:08 -07:00
Paul Gschwendtner 4a9bbcb60d fix(schematics): name is required when generating the drag-drop schematic (#13452)
* Similar to the other component generation schematics in `@angular/material`, the drag-drop schematic in `@angular/cdk` requires a name to be specified. If we don't mark this as required, a runtime exception will be thrown (`Cannot read property 'replace' of undefined`)
2018-10-05 16:34:34 -07:00
Paul Gschwendtner da63c6f850 build: switch to yarn (#13362)
* build: switch to yarn

* Use more recent version of Yarn
2018-10-05 14:37:41 -07:00
Jeremy Elbourn 4fc5ee1571 docs: clean up and clarify theming docs (#13435)
This makes some minor wording changes to the main theming guide and
mostly rewrites the theming-your-own-component guide. Edited for
clarify, brevity, and language.

Fixes #13206
2018-10-05 14:36:35 -07:00
Paul Gschwendtner b7de6be7ed chore(docs): hide value accessors from docs (#13453)
* Since we recently added logic for showing constants in the docs, we should avoid showing the value accessor constants which are actually just used kind-of internally.
2018-10-05 14:14:04 -07:00
Kristiyan Kostadinov e4cf0599e7 refactor(live-announcer): run outside NgZone (#10631)
Switches to running the timeout from the `LiveAnnouncer` outside the `NgZone`, because it does all of its DOM manipulation directly on the element and it doesn't have to trigger Angular's change detection.
2018-10-05 13:52:22 -07:00
Joey Perrott a706c8c619 fix(expansion-panel): correct jump in panel sizing during animation (#12509) 2018-10-05 11:26:53 -07:00
Kristiyan Kostadinov 0060bd7ec8 fix(form-field): not updating outline when prefix/suffix is added or removed (#13253)
Fixes the form field's outline not reacting to the prefix/suffix being toggled after init.

Fixes #13251.
2018-10-05 11:12:58 -07:00
Kristiyan Kostadinov 1c60acf728 docs(button-toggle): add appearance docs and example (#13416)
As discussed in #12443, these changes add some docs and a live example for the button toggle `appearance`.
2018-10-05 11:10:55 -07:00
Paul Gschwendtner 900c1f7e71 refactor(schematics): better margin for drag-drop schematic (#13447)
* Improves the margin of the drag-drop schematic containers. Since the component does not have any inner padding, the containers would show up at the edge of the page. This happens if someone just runs `ng add @angular/cdk` and `ng g @angular/cdk:drag-drop myComponent`.
* Indents wrapped attributes in HTML template files. The goal of the schematics should be also to generate resources that can be used for learning. Right now it's not 100% clear where the child element starts (see: https://google.github.io/styleguide/htmlcssguide.html#HTML_Line-Wrapping)
2018-10-05 11:10:18 -07:00
Paul Gschwendtner 321c01d723 build(docs): deprecated state of type alias not showing up (#13449)
* Currently if a type alias is marked as `@deprecated`, we don't add an indication as for the constants. Now a similar indication will be added if a type alias is deprecated.
* Similarly to the constants and `angular.io`, we will display the actual type of the `type-alias` in a better-looking & more clear way.
* Also fixes that the constant code "overview" does not include the trailing semicolon (Angular.io also adds a trailing semicolon)
2018-10-05 11:09:50 -07:00