Commit Graph

444 Commits

Author SHA1 Message Date
Kristiyan Kostadinov b2ae3f4a9d build: clean up build workaround for ts 2.9 (#12912)
Removes a workaround that was initially introduced to get #12182 through. The root issue has been resolved in #12876.
2018-08-30 14:35:29 -07:00
Jeremy Elbourn 4576863b17 chore: make publish version+branch check support minor and patch (#12910) 2018-08-30 13:05:03 -07:00
Paul Gschwendtner 53b4af6d2a build(docs): fix description comments sometimes empty (#12885)
Follow-up commit for 4879dc4720.

---

Disables concatenation of multiple leading comments for a TypeScript node. Since all shipped source files have a license banner at top, the license banner comment would be incorrectly considered as "comment" for the first TypeScript node of a given file. Since there are various files in the Material project where the first node of a source file is exported and should only use the first leading comment, we need to disable comment concatenation.

See for example: https://github.com/angular/material2/blob/master/src/cdk/coercion/boolean-property.ts
2018-08-29 15:43:52 -07:00
Kristiyan Kostadinov d424c70676 build: update to TS 2.9 and enable strictFunctionTypes (#12182)
Bumps the project to TypeScript 2.9, enables the `strictFunctionTypes` everywhere and fixes the various errors.

Fixes #12177.
2018-08-28 07:17:26 -07:00
Paul Gschwendtner e5e5b68a93 build: prevent publishing from the wrong branch (#12831)
* Patch releases should be published from patch publish branches with the format: `{}.{}.x`
* Minor releases should be published from minor publish branches with the format: `{}.x`
* Major releases should be published from the `master` branch.

Closes #12655
2018-08-25 07:49:36 -07:00
Kristiyan Kostadinov 2364b7cc3a build: add tslint rule to disallow private setters (#12706)
Adds a tslint rule to prevent people from adding private getters since they don't contribute to the public API and they generate more ES5 code.
2018-08-21 11:41:33 -07:00
Paul Gschwendtner 4879dc4720 docs: show exported functions (#12736)
Changes the Dgeni setup to properly display exported functions (e.g. from cdk/coercion, cdk/a11y, cdk/platform)
2018-08-20 13:40:28 -07:00
Paul Gschwendtner 7d140a2bd6 build(dgeni): do not warn if @breaking-change is used without @deprecated (#12750)
* Similarly as the TSLint rule, we should only warn (on `gulp docs`) if there is a `@deprecated` tag without a `@breaking-change` tag. If there is a `@breaking-change` tag, but no `@deprecated` tag, it's valid because a breaking change does not always involve a deprecation (e.g. "to be made required").
* Updates the log patching for the Dgeni package to also hide warnings for mixins that don't end with `MixinBase`.
2018-08-20 13:39:01 -07:00
Paul Gschwendtner 6732414936 build: update dashboard dependencies (#12630)
* Updates the dashboard dependencies and refreshes the `package-lock` file.
2018-08-13 16:42:05 -07:00
Kristiyan Kostadinov 86925e203d build: demo app html and css not being updated on changes (#12619) 2018-08-13 06:52:47 -07:00
Paul Gschwendtner fca1429718 build: remove madge (#12548) 2018-08-08 09:45:53 -07:00
Paul Gschwendtner 895756d109 build: inline resources for demo-app (#12511) 2018-08-08 08:31:08 -07:00
Paul Gschwendtner 4ecde453a7 refactor(schematics): detect package version from node modules (#12535) 2018-08-07 13:31:12 -07:00
Joey Perrott 3357e70d5f chore: allow for scss imports from node_modules (#12475) 2018-08-07 13:27:33 -07:00
Kristiyan Kostadinov 96923331e9 build: add tslint rule enforce import spacing (#12536) 2018-08-07 13:26:27 -07:00
Kristiyan Kostadinov d392a8dc0b build: material sources not being watched when developing locally (#12472)
Fixes the Material sources not being rebuilt on changes due to an incorrect pattern.
2018-08-01 07:31:20 -07:00
Paul Gschwendtner 51af4718db refactor(schematics): remove type checker for identifier switch rule (#12454)
Removes type checking from the `switchIdentifiersRule` because we don't want to depend on types for older versions when running the schematics. The rule still maintains the explicit checks that ensure that only identifiers from Material or the CDK are being updated,
2018-07-31 15:19:25 -07:00
Paul Gschwendtner f5f7f1c3d1 build: add version stamp to release output (#12418) 2018-07-31 09:23:20 -07:00
Paul Gschwendtner e4ac04d678 build: speed-up stylesheet building (#12426)
* Switches back from `dart-sass` to `node-sass` due to a pretty huge slow-down we noticed (can be revisited)
* No longer copies all SCSS files to the temporary `package` output just in favor of the demo-app (slows down unnecessarily). This now allows us to live-reload theme changes within a second.
* No longer rebuilds all package SCSS files twice for the ES5 output (rel: https://github.com/angular/material2/pull/7403)
2018-07-31 09:06:39 -07:00
Kristiyan Kostadinov 877de5691b build: rename @deletion-target to @breaking-change (#12421)
As discussed, renames the `@deletion-target` tag to `@breaking-change` to make the intentions of the tag clearer. Also adds an extra check to the tslint rule to catch any leftover `@deletion-target` tags.
2018-07-28 21:51:41 -07:00
Paul Gschwendtner e07400354a build: switch to dart-sass (#12370)
* Switches to dart-sass in order to be consistent with the Bazel output. That way we can identify potential issues with the SASS output (e.g. demo-app) before we at some point make the full-switch.
* Also speeds-up the project installs because libsass bindings are no longer needed (trade-off with compilation time though; but pretty minimal due to our amount of Sass files)
2018-07-28 21:49:04 -07:00
Paul Gschwendtner 634163ef45 docs: properly show method overloads (#12308)
* Shows method overloads in the documentation instead of showing the overload-base method that has most likely no `JSDoc` nor good-explaining parameter names (parameters have multiple purposes and types)
2018-07-24 10:07:15 -07:00
Paul Gschwendtner f9b9e25d61 build: fix dashboard deployment (#12293) 2018-07-20 08:26:39 -07:00
Paul Gschwendtner afb0ee37eb chore: remove screenshot testing (#12155)
Removes the screenshot test tool since Angular Material is visually being tested inside of Google.
2018-07-11 08:24:21 -07:00
Paul Gschwendtner f315e3e7e6 build: fix random ngc resolve failures (#12103)
* Depending on the timing for building the assets and building the ESM output (kind of randomly), building the Material package will result in NGC failures. This happens when running the `material:build-no-bundles` task (e.g. unit testing; serving the dev-app) because the assets are built in parallel with the ESM output.
* Removes a duplicated function in the package-tools.
2018-07-11 08:21:04 -07:00
Paul Gschwendtner fc1d1a4840 fix(tab-nav-bar): ripples still showing up when globally disabled (#11865) 2018-06-29 09:36:37 -07:00
Paul Gschwendtner 637ef836cc feat(docs): show additional type aliases in docs. (#11901) 2018-06-28 14:13:01 -07:00
Kristiyan Kostadinov 46e6116d80 build: add tslint rule to enforce consistent rxjs imports (#11629)
Adds a small tslint rule that will help us catch cases like [this one](https://github.com/angular/material2/blob/master/src/demo-app/virtual-scroll/virtual-scroll-demo.ts#L10), which can come up when the IDE auto-imports something from rjxs.
2018-06-06 22:55:16 -07:00
Jeremy Elbourn de120ad5d4 chore: add importAs to metadata generated for unit tests
This is necessary so that, when generating ngInjectableDefs, ngc can
correctly determine the import location for injected dependencies.
Without this, the generated imports use a relative path to dist instead
of e.g. "@angular/cdk/overlay". In real life it's not a problem because
the packages are resolved to node_modules.
2018-06-06 22:39:07 -07:00
Kristiyan Kostadinov 4bc2d04eb9 build: add tslint rule to ensure that setters are declared after getters (#11522) 2018-05-30 08:20:33 -07:00
Kristiyan Kostadinov cdbb3e16b1 build: fix rollup global name in umd bundle (#11413)
Between rxjs 5.5 and 6.0 the global name changed from `Rx` to `rxjs`, however ours is still set to `Rx`. These changes switch to using the correct name.

Fixes #11299.
2018-05-23 20:42:06 -07:00
mmalerba f59658d848 virtual-scroll: merge into master under cdk-experimental (#11354)
* feat(virtual-scroll): fixed size virtual scroll (#9316)

* feat(virtual-scroll): fixed size virtual scroll

* address some comments

* change VirtualScrollStrategy interface a bit

* address some more comments

* fix lint & build

* chore: move virtual-scroll to cdk-experimental (#9974)

* virtual-scroll: simplify scroll listener logic (#10102)

* virtual-scroll: only move views that need to be moved (#10099)

* virtual-scroll: only move views that need to be moved

* address comments

* virtual-scroll: switch `throttleTime` to `sampleTime` (#10179)

* virtual-scroll: switch throttleTime to sampleTime

* add comment

* virtual-scroll: allow user to pass `Observable<T[]>` (#10158)

* virtual-scroll: rename `Range` to `ListRange` to avoid confusion with native `Range` (#10220)

* virtual-scroll: add autosize scroll strategy (#10219)

* rename fixed size virtual scroll directive

* add autosize virtual scroll strategy

* add item size estimator class

* add logic for jumping rendered content based on scroll position

* address comments

* virtual-scroll: add `onContentRendered` hook to `VirtualScrollStrategy` (#10290)

* virtual-scroll: add `onContentRendered` hook to `VirtualScrollStrategy`

* address comemnts

* virtual-scroll: add incremental scroll logic in `AutosizeVirtualScrollStrategy` (#10504)

* virtual-scroll: add incremental scroll logic in `AutosizeVirtualScrollStrategy`.

This still has a couple issues that need to be ironed out and it doesn't
have the code for correcting the error between the predicted and actual
scroll position. (See various TODOs for additional things that need
work).

* fix lint

* address comments

* address comments

* fix bazel

* fix devapp

* fix lint

* cleanup

* virtual-scroll: rewrite offset in terms of "to-top" and fix a bug where items were removed too soon (#10986)

* rewrite offsets to the end of the rendered content as offsets to the
start

* add some more autosize demos for testing

* make sure not to remove too many items

* address comments

* virtual-scroll: address amcdnl's feedback (#10988)

* rewrite offsets to the end of the rendered content as offsets to the
start

* add some more autosize demos for testing

* make sure not to remove too many items

* virtual-scroll: address amcdnl's feedback

* virtual-scroll: fix updating when data changes and add trackBy demos (#11085)

* virtual-scroll: add logic to correct the scroll position as user move… (#11137)

* virtual-scroll: add logic to correct the scroll position as user moves toward the top

* address comments

* fix(scrolling): adds right to fix pushed content (#11192)

* fix(scrolling): adds right to fix pushed content

* chore: address feedback

* chore: address pr feedback

* virtual-scroll: add tests for fixed size items (#11255)

* virtual-scroll: add tests for fixed size items

* address comments

* fix bug in fixed size strategy

* fix bazel build

* virtual-scroll: add tests for `cdkVirtualFor` logic (#11275)

* merge fixed size test components into one

* add tests for cdkVirtualFor logic

* allow undefined to be explicitly passed as trackBy

* fix bazel build

* address comments

* add some basic tests (#11295)

* fix lint

* virtual-scroll: add e2e tests for autosize scroll strategy (#11345)

* set up virtual scroll page in e2e app

* add gulp task for e2e:watch

* add e2e tests for autosize

* address comments

* address comments

* fix lint and tests

* fix bad rebase

* fix(scrolling): scrollbar jump when data change on scroll (#11193)

* fix(scrolling): data change not updating size

* chore: remove todo

* chore: more performant fix for jump
2018-05-22 09:19:56 -07:00
Kristiyan Kostadinov 4cbd072b88 build: fix dashboard compilation errors (#11300)
* Bumps the dashboard to the latest Firebase version to fix some TS compilation errors.
* Adds a package-lock for the dashboard for consistency with everything else and to help avoid versioning issues.
* Bumps the screenshot tool to the latest version of Firebase.
2018-05-14 18:20:03 -07:00
Kristiyan Kostadinov 9dadf371d5 chore: remove references to the web animations polyfill (#11179)
Gets rid of the Web animations polyfill from our demo apps, as well as from the docs. The polyfill is not longer required as of Angular 6.
2018-05-08 09:59:01 -07:00
Kristiyan Kostadinov 01ec602b0b build: handle prerelease versions in deletion target rule (#10101) 2018-05-04 10:57:03 -07:00
Kristiyan Kostadinov e504d81815 build: bump screenshot tool to Angular 6 (#11150) 2018-05-04 10:00:31 -07:00
Kristiyan Kostadinov b0457cd152 build: fix screenshot tool compilation errors (#11060) 2018-05-02 11:02:33 -07:00
Kristiyan Kostadinov 340b0b23ea build: fix dashboard compilation errors (#11066) 2018-05-01 14:38:17 -07:00
Andrew Seguin 1ee9c5f967 chore(demo): add examples to demo app (#11018)
* chore(demo): add examples to demo app

* fix aot
2018-04-27 18:43:36 -07:00
Kristiyan Kostadinov b590cec04b build: add stylelint rule to validate ampersands in theme selectors (#10949)
Replaces the `selector-nested-pattern-scoped` Stylelint rule with a new rule called `no-ampersand-beyond-selector-start`. The new rule will enforce that ampersands can only be used at the start of selectors in theme mixins. This will catch issues like #10889 and #10904 where having an ampersand anywhere else in the selector will work in most cases, but will break down once the mixin is wrapped in a selector.
2018-04-25 22:04:06 -07:00
Andrew Seguin 6dd6080d58 Revert "chore(demo): add examples to demo app (#10743)" (#11017)
This reverts commit 68b1f2afeb.
2018-04-25 22:01:12 -07:00
Andrew Seguin 68b1f2afeb chore(demo): add examples to demo app (#10743)
* chore(demo): add examples to demo app

* fix polyfill
2018-04-25 21:58:54 -07:00
Tobias Schweizer 153dfb8f34 fix(datepicker): allow MatCalendarHeader to be re-used inside a custom header (#10856)
* refactor (MatCalendarHeader): remove Host decorator

* fix (remove unused import)

* feature (MatCalendarHeader): add custom header using the standard header to demo

* fix (ts lint)

* test (MatCalendarHeader): add a unit test for custom header input (ongoing)

* refactor (styling)

* refactor (styling)

* test (MatCalendarHeader): pass header component to datepicker

* test (MatCalendarHeader): remove header component to fix test (temporary)

* test (MatCalendarHeader): provide entryComponents

* test (MatCalendarHeader): add custom header component to declarations

* fix (MatCalendarHeader): fix issue with rollup-globals

* test (MatCalendarHeader): get rid of declarations param

* test (MatCalendarHeader): add test to check for standard calendar header selector

* test (MatCalendarHeader): rename test

* test (MatCalendarHeader): type annotations
2018-04-19 11:04:50 -07:00
Jeremy Elbourn c9f5be6c9e fix(schematics): make v6 migration work (#10853)
This includes:
* Adding missing schema json to package
* Add missing packageGroup entries to material, cdk, and moment-adapter
* Move schematics for migration to the migrate-specific schema
* Bump version to 6.0.0-rc.11
2018-04-16 11:51:50 -07:00
Igor Minar f1a33e90c1 build: mark material and cdk packages as sideEffect-free for webpack v4 (#10816)
This change enables material and cdk packages to take advantage of webpacks more advanced optimizations
documented at https://github.com/webpack/webpack/tree/master/examples/side-effects

Our code is already side-effect free because otherwise @angular-devkit/build-optimizer would break it, so it's safe
to turn this on.
2018-04-12 13:04:28 -07:00
mmalerba 3cc21cdc30 cleanup: migrate migration tool to schematics (#10736)
* WIP: migrate migration tool to schematics

* address comments

* fix bazel

* make released version work

* Add additional rules

* wip

* wip

* yay, working

* all rules migrated

* combine packages in single `npm i` call

* update schematics version and fix TODOs
2018-04-11 13:30:27 -07:00
Rafael Santana c147f32f9a chore: remove noRxjsPatchImportsRule (#10765) 2018-04-10 11:06:51 -07:00
mmalerba b472330659 docs(datepicker): add docs for custom calendar header (#10543)
* docs(datepicker): add docs for custom calendar header

* fix error

* fix error in example module generation
2018-04-10 10:54:27 -07:00
Jeremy Elbourn 09a60bbc3e build(bazel): add version stamping (#10687) 2018-04-09 12:44:55 -07:00
Joey Perrott 7fb2f892b6 chore: bind devapp to 0.0.0.0 (#10714) 2018-04-05 10:30:35 -07:00