Commit Graph

429 Commits

Author SHA1 Message Date
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
Rafael Santana b85ee8c575 chore: remove duplicate imports (#10692) 2018-04-05 07:55:15 -07:00
Jeremy Elbourn 872952efb9 build: add ng_package rule for @angular/material (#10625)
In order to make this work, this includes:
* Move schematics under src/lib
* Change sass rules to omit sourcemaps
* Add cdk/text-field and lib/tree to packages list
* Add bazel rules for prebuilt themes
* Add html assets to all ng_module rules
* Point all ng_module rules to a package common tsconfig
* Add missing index.ts for src/lib
* Add bazel rules for schematics
* Fix incorrect module_name for hyphenated lib ng_module rules
* Add NgModules to `imports` of the example module (formerly were just
exports)
2018-03-30 11:45:00 -07:00
Joey Perrott c05005a688 chore: update to rxjs v6 beta and angular v6 beta (#10496) 2018-03-23 08:40:20 -07:00
Jeremy Elbourn 9091b21f6f build(bazel): add rule for cdk npm package (#10509)
* build(bazel): add rule for cdk npm package

* Bump to rc0, remove moment from cdk rollup config

* Remove TODOs
2018-03-22 14:21:04 -07:00
Jeremy Elbourn 6f63fd283e build: add schematics to @angular/material package (#10351)
This also fixes a handful of minor issues with the blueprints
2018-03-12 14:31:59 -07:00
Jeremy Elbourn fcc09089c3 build: create sass_bundle bazel rule (#10055)
This defines a bazel rule to bundle sass partials into a single file
using the "scss-bundle" npm package. The rule definition is commented so
that it can serve as an example for creating other rules in the future.

I've also added the missing build file for badge so that its theme can
be included in the bundle.
2018-03-12 11:12:38 -07:00
Kristiyan Kostadinov 7ff086afd1 build: add stylelint rule to avoid top-level ampersands in themes (#10280)
* Adds a stylelint rule that will log a warning for top-level ampersand selectors inside of mixins. This will help us avoid issues like #9991 in the future.
* Makes the `mat-radio-color` internal.
2018-03-06 11:17:37 -05:00
Paul Gschwendtner b53002ce01 build: add package name to AMD modules (#10177)
* Fixes that the UMD bundles, which use the `define` function in AMD mode, don't have a module name. This feature has been added in later versions of Rollup, so we had to upgrade. By comparing with the previous UMD bundles, the bundles still seem to work properly (also in our demo-app).

Fixes #10142
2018-02-28 11:15:16 -08:00
Paul Gschwendtner e21015da16 build: update dgeni packages (#10144)
* Updates dgeni-packages to the latest version (to include https://github.com/angular/dgeni-packages/pull/262)
* Cleans up the logic for removing duplicate exports and aliases from Dgeni. Right now, it can happen that parameter Dgeni docs are being filtered out.
2018-02-28 11:14:31 -08:00
Kristiyan Kostadinov d078e5ee6a build: add stylelint rule to ban concrete CSS rules inside theme files (#10003)
Adds a stylelint rule that will ensure that all of the CSS rules inside theme files are placed inside a mixin. This avoids style duplication whenever the file is imported.

Relates to #9999.
2018-02-26 07:05:53 -08:00
Kristiyan Kostadinov f33e2a2d3e refactor: clean out variables that are being assigned to but not being read (#9871) 2018-02-22 11:34:10 -08:00
Jeremy Elbourn 19463bb6c9 chore: update master to Angular 6.0.0 beta (#10078) 2018-02-22 08:17:29 -08:00
Kristiyan Kostadinov 4c3e385b00 build: enforce that deprecated APIs have a deletion target (#9931)
Follow-up from #9881. Ensures that anything marked with `@deprecated` also has a `@deletion-target`.
2018-02-13 11:34:47 -08:00
Paul Gschwendtner 2f891e64f6 build: enforce consistent version names (#9917)
Ensures that versions are following a consistent format before publishing. e.g. versions like `6.0.0-beta-0` is not valid, because the last dash should be actually a dot.

Closes #9910.
2018-02-13 07:53:32 -08:00
Kristiyan Kostadinov b6e7174f62 build: add tslint rule to enforce deletion targets (#9881)
Adds a tslint rule that will mark any deletion targets that are due to be deleted.
2018-02-13 07:51:57 -08:00