Commit Graph

132 Commits

Author SHA1 Message Date
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
Paul Gschwendtner b30ec56364 build: run browserstack on circleci (#13749) 2018-10-24 15:35:06 -07:00
Paul Gschwendtner 34812fa1d8 build: run e2e tests with chrome headless (#13671) 2018-10-19 07:27:44 -07:00
Paul Gschwendtner 7b6e90e732 build: run e2e tests on circlci (#13643) 2018-10-17 14:55:35 -04:00
Kristiyan Kostadinov 97703be459 chore: add support for noImplicitThis (#13404) 2018-10-17 10:02:17 -04:00
Paul Gschwendtner 8e324c8e21 build: run chrome and firefox headless tests in circleci (#13603) 2018-10-16 12:35:37 -04: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 52473f5ab9 feat(drag-drop): move into cdk (#12758)
Moves the `drag-drop` module from `cdk-experimental` to `cdk`.
2018-08-21 11:26:39 -07:00
Paul Gschwendtner f68c86acfc build: reduce e2e parallel instances (#12724)
Reduces the protractor parallel instances because it seems to be flaky if we run a lot of processes inside of the Travis.
2018-08-20 13:43:04 -07:00
Paul Gschwendtner 9d882a0119 build: do not e2e tests on saucelabs (#12700)
* No longer runs e2e tests inside of Saucelabs because Chrome is also installed on Travis CI and we should keep Saucelabs available for other browsers that don't run inside of Dockers or Travis.
2018-08-16 13:54:59 -07:00
Paul Gschwendtner 1f9df4c907 build: test against angular snapshots (#12600) 2018-08-13 06:53:03 -07:00
Kristiyan Kostadinov 8973971846 build: e2e and test init files not being linted (#12221) 2018-07-18 08:54:44 -07:00
heavybeard 2f9b51f18e chore: fix typo in karma config comment (#12111) 2018-07-11 08:21:49 -07:00
Paul Gschwendtner fdd70823cf build: fix small browser test coverage (#11970)
* No longer just runs the tests against the first browser of a test platform (travis, saucelabs, browserstack)
* Stability is more valuable than speed (runs sequentially on CI now)
* Update Saucelabs Connect
* Remove unused spec reporter
* Update from Edge 14 to Edge 17
* Fix pixel deviations in Edge 17
2018-07-11 08:18:32 -07:00
Paul Gschwendtner 485016745f build: use index file from material package (#11995)
* A `index.ts` file for the Material package has been added at some point. To be consistent, we switch away from `public-api.ts` to `index.ts` for the output of the individual packages.
2018-07-05 14:40:20 -07:00
Kristiyan Kostadinov 27811a3329 feat: add experimental drag-drop package (#11864) 2018-06-28 08:46:44 -07:00
Kristiyan Kostadinov 6d1b600289 build: include cdk-experimental/dialog in various configs (#11891) 2018-06-27 08:37:43 -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
Joey Perrott a6475792b8 fix(ci): Shard tests on CI across 3 browsers (#11048) 2018-04-27 15:10:57 -07:00
Joey Perrott 39341eab1f chore: use dot reporter in karma. (#10981) 2018-04-25 22:03:55 -07:00
Joey Perrott c059982f23 chore: suppress passed tests logs during travis usage (#10722) 2018-04-05 22:19:47 -07:00
mmalerba a73819dfec cleanup: Stop testing Safari 9 (#10637) 2018-03-30 13:04:31 -07:00
Joey Perrott c05005a688 chore: update to rxjs v6 beta and angular v6 beta (#10496) 2018-03-23 08:40:20 -07:00
Kristiyan Kostadinov d2067e7fc3 build: log out full stack trace in unit tests (#10518)
Removes the one-line limit for the stack traces inside unit tests.
2018-03-22 14:21:37 -07:00
Joey Perrott f88224315b chore(testing): use karma spec reporter to show karma results instead of built in dots (#10500) 2018-03-20 21:11:24 -07:00
mmalerba ced9c90bee feat(cdk-input): move input autofill and autosize utils into cdk (#9831)
* move autofill to cdk

* move textarea autosize into cdk

* fix bazel build

* rename input to text-field

* set resize back to none for autosize in input css

* fix tsconfig
2018-03-13 09:00:11 -07:00
tinayuangao c975ca8746 feat(tree): merge tree branch to master (#9796) 2018-02-22 08:15:02 -08:00
Joey Perrott 8473a410ee chore: remove IE11 from saucelab tests (#10047) 2018-02-20 12:16:24 -08:00
Austin c98d217dfe feat(badge): add badge component (#7483) 2018-02-13 07:55:21 -08:00
Kristiyan Kostadinov c3b84659c8 build: fix runtime errors not being logged out on karma initialization (#9888)
Currently if something throws an error right after Karma has initialized, the log will look something like the following:

```
HeadlessChrome 0.0.0 (Windows 10 0.0.0) ERROR
  {
    "originalErr": {},
    "__zone_symbol__currentTask": {
      "type": "microTask",
      "state": "notScheduled",
      "source": "Promise.then",
      "zone": "<root>",
      "cancelFn": null,
      "runCount": 0
    }
  }
```

These changes log out the stack trace explicitly so we have some more info to work with if it happens.
2018-02-13 07:51:35 -08:00
Jeremy Elbourn 21a83bae8d chore: add bazel test rules for the cdk (#9726)
This adds bazel test rules for everything under cdk/ and sets CircleCI Overlay tests don't work because there's not yet a way to pass through flags to the browser. These issues will be addressed in a follow-up PR.
2018-02-12 16:01:00 -08:00
Kristiyan Kostadinov bbf62cdd6c feat: add bottom sheet component (#9764)
* Adds an initial implementation of the new `MatBottomSheet` service that allows users to display component-based or template-based bottom sheets.
* Sets up the various boilerplate and infrastructure necessary for a new component.

Note: this is an initial implementation that has the necessary functionality, styles and accessibility. More docs, examples and touch gestures will be added in a follow-up.
2018-02-06 09:31:11 -08:00
Paul Gschwendtner 33afd93198 build: remove chrome sandbox workaround (#9498)
In order to align with the `angular/angular` setup, we also remove the temporary Chrome Headless Sandbox workaround in favor of faster Travis CI containers. To be able to still use headless chrome, we specify the `no-sandbox` flag.

Reference https://github.com/angular/angular/pull/21641
2018-01-22 09:46:11 -08:00
CaerusKaru bd0ec64932 feat(divider): move divider out of mat-list (#5862) 2017-12-21 11:32:00 -08:00
Joey Perrott 1121d53af7 chore: create cdk-experimental package (#9059) 2017-12-19 16:45:54 -08:00
Paul Gschwendtner 71305ce8f6 build: add material experimental package (#8591)
* Adds the material-experimental package.
2017-11-29 13:46:04 -08:00
Paul Gschwendtner a0075fff4c build: run tests in chrome headless local (#8651)
Runs local tests in Chrome Headless. This speeds up the tests and also ensures more test stability. On Windows there are a lot of pixel deviation failures because the tests seemed to be affected by the screen resolution or window frame.

By running the tests headless, the Chrome launcher has more control about the rendering and pixel deviations like before won't happen anymore. It's still the same Chrome that runs, just that the screen is kind of emulated like in XVFB.
2017-11-28 10:34:39 -08:00
Paul Gschwendtner 8009f1bf11 chore: update chromedriver version for e2e tests (#8635)
* No longer explicitly specifies the Chrome Driver version for the e2e tests. The chrome driver associated with the latest Chrome version will be used now.
2017-11-28 10:34:07 -08:00
Kristiyan Kostadinov de8c6e2881 fix: import individual rx operators (#8160)
After the switch to lettable operators, we had started importing all operators via `rxjs/operators`. These changes switch us back to only importing the individual ones and add some linting so it doesn't happen in the future.
2017-10-31 16:05:10 -07:00
Kristiyan Kostadinov f29da63583 feat: update to rxjs 5.5.0 and switch to lettable operators (#7276)
Bumps the required RxJS version to 5.5.0 and gets rid of our RxChain in favor of using the lettable Rx operators. Refactors all the usages and updates the configs.

Fixes #7275.
2017-10-28 09:37:43 -07:00
Kristiyan Kostadinov 0ea43700ef refactor: switch to HttpClient (#6702)
Refactors all of the usages of the deprecated `Http` by replacing them with the `HttpClient`.

BREAKING CHANGE: Material now requires `@angular/common` instead of `@angular/http` and uses `HttpClient` instead of `Http`.
2017-10-24 10:42:35 -07:00
Paul Gschwendtner fe08c2b74b build: run tests with firefox headless (#7828) 2017-10-18 16:11:36 -07:00
Paul Gschwendtner 0ab6ebeef1 build: run tests against ios10 (#7707) 2017-10-12 14:40:06 -07:00
Paul Gschwendtner 7f274b4688 build: create coverage reports in chrome (#7714)
* No longer creates the coverage reports inside of Browserstack. The reports can be generated inside of Chrome Headless that doesn't run remotely on BrowserStack or Saucelabs.
2017-10-12 14:39:52 -07:00
Joey Perrott 4d04472d3f chore(accordion): move CdkAccordion to @angular/cdk (#7530)
* Move UniqueSelectionDispatcher to CDK.

BREAKING CHANGE: UniqueSelectionDispatcher, UniqueSelectionDispatcherListener and UNIQUE_SELECTION_DISPATCHER_PROVIDER are no longer
available from @angular/material and instead must be imported from @angular/cdk/collections

* Move UniqueSelectionDispatcher to CDK.

BREAKING CHANGE: UniqueSelectionDispatcher, UniqueSelectionDispatcherListener and UNIQUE_SELECTION_DISPATCHER_PROVIDER are no longer
available from @angular/material and instead must be imported from @angular/cdk/collections

* Move CdkAccordion to @angular/cdk/accordion

BREAKING CHANGE:
  - CdkAccordion is now in @angular/cdk/accordion
  - AccordionChild is renamed to CdkAccordionChild
  - CdkAccordion no longer has displayMode and hideToggle @Inputs
  - CdkAccordionItem is now a @Directive
  - CdkAccordion is now exportedAs CdkAccordion for template referencing
  - CdkAccordionItem is now exported as CdkAccordionItem for template referencing
2017-10-11 22:18:54 -07:00
Kara f3b0b54ee6 build(): fix source maps (#7403) 2017-10-02 17:13:20 -07:00
mmalerba 8b715e00bf chore: fix demo app build (#7428) 2017-09-29 16:12:13 -07:00
Andrew Seguin 20a23f16e8 fix: remove all md prefixes (#7241) 2017-09-28 13:45:03 -07:00
Jeremy Elbourn 1cb8907a66 build: create JS bundles for each component (#6998)
Before this change, all of `@angular/material` was bundled into a
single, flat JS file.

After this change, each top-level component (i.e., each directory under
`src/lib`) will be have its own JS file (and d.ts and metadata.json).

The benefit of this change is that current versions of webpack will be
able to do a much better job of only including the code an app is using.

It also allows (but does not require) people to explicitly import from specific components,
e.g.
```
import {MdButtonModule} from '@angular/material/button';
``

For development _within Angular Material itself_ we have to use these
deeper imports because the root `@angular/material` doesn't exist until
we build the relase package.

Additionally, this PR adds a `tsconfig.json` for each dir under `src/`
with the correct path mappings for that directory, so that IDEs will
correctly generate imports.

Closure Compiler CI check is also disabled by this PR; it cannot work
with the new package structure until a release with
https://github.com/google/closure-compiler/pull/2600 is made available.
2017-09-14 15:15:17 -07:00
mmalerba 9545427c73 feat(datepicker): Add Moment.js adapter (#6860)
* create moment adapter

* add Moment to karma.conf.js

* use MAT_DATE_LOCALE

* tests are now running

* add in tests

* WIP: demo

* add synthetic default imports for moment

* add locale switching to demo

* fix moment import issues with tests

* fix aot

* address comments

* fix closure issue

* add additional explanation of rollup issue

* remove moment adapter demo since it is preventing sync into g3 (will add
back as a docs example in future PR).

* fix bad rebase
2017-09-12 13:24:23 -07:00