Commit Graph

3301 Commits

Author SHA1 Message Date
Paul Gschwendtner ab930cf87b build: publish artifacts based on branch (#9919)
Build artifacts will be published differently for different branches. For example, commits in `master` will be published on the `master` branch on the `*-builds` repository. `5.2.x` commits will be published on the `5.2.x` branch on the `*-builds` repository.

Tags on the build repositories will be explicit to indicate from what branch they come. The version placeholders (in the build output) will be similar as before, and won't contain any information about the branch. e.g. `5.2.x-5.2.1-43s435s` will look bad.
2018-02-13 10:35:40 -08:00
Jeremy Elbourn 729d3a1699 chore(badge): fix bad import path in demo-app (#9926) 2018-02-13 10:32:16 -08:00
Austin c98d217dfe feat(badge): add badge component (#7483) 2018-02-13 07:55:21 -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 708b91a7c4 build: don't skip master build when only md files have changed (#9879)
Scopes the logic, that skips the build if only Markdown files, only to PR builds. This avoids issues where we merge in a lot of PRs to master, followed by a docs PR which ends up silencing potential build errors.
2018-02-13 07:52:19 -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
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
Paul Gschwendtner 7feaeb1f9e docs(dgeni): fix typo in method name (#9892)
* Fixes a minor typo in the `MergeInheritedProperties` processor.
* Fixes an incorrectly placed comment inside of `decorators.ts`.
* Cleans up the `dgeni/index.ts` file
2018-02-13 07:51:13 -08:00
Paul Gschwendtner 47ab3367b9 docs(dgeni): simplify filtering of alias exports (#9893)
Simplifies the processor that filters alias exports. This is now possible with https://github.com/angular/dgeni-packages/commit/f7034143390293f908cd94ca424fcf9420653d70
2018-02-13 07:50:15 -08:00
Johan CHOUQUET f6c1b9a3a5 docs(overlay): fix duplicated word (#9897) 2018-02-13 07:49:40 -08:00
Andrew Seguin 46876d62f8 docs(table): fix typo regarding sortChange (#9906) 2018-02-13 07:48:57 -08:00
heavybeard 4b017ba83f docs(card): fix missing end-quote in type (#9914) 2018-02-13 07:48:27 -08:00
Paul Gschwendtner 7ae807e10b fix(list): list-options require a parent selection list (#9899)
Since the `MatListOption` component requires a parent `MatSelectionList`, the DI of the selection list shouldn't be optional. Otherwise there will be runtime exceptions due to an undefined selection list property.
2018-02-13 07:47:23 -08:00
Jeremy Elbourn 40773c59be fix(theming): add aliases for alternate spelling of "grey" (#9903) 2018-02-13 07:46:39 -08:00
Kristiyan Kostadinov 82c5ff071d feat(autocomplete): add opened/closed events to panel (#9904)
Adds the `opened` and `closed` event emitters to the autocomplete panel, allowing consumers to react to the panel being opened and closed.

Fixes #9894.
2018-02-13 07:45:57 -08:00
Paul Gschwendtner c9bd2ba142 update(ripple): allow passing ripple config only (#9760)
Adds a method overload to the `launch` method of the `MatRipple` class. This should make it possible for developers to just pass in a configuration without coordinates that will be ignored (e.g. `launch(0, 0, {centered: true});`).
2018-02-13 07:45:35 -08:00
Kristiyan Kostadinov 1c15e8f23d fix(select): lock dropdown position when scrolling (#9789)
This was the initial use-case for introducing the locked positioning to the `ConnectedPositionStrategy`. Since `mat-select` has some special positioning requirements, it would look weird if we kept repositioning it as the user scrolls. These changes add an input `CdkConnectedOverlay` that allows for the position to be locked and locks it for `mat-select`.
2018-02-13 07:45:08 -08:00
Kristiyan Kostadinov 98a6910593 feat(bottom-sheet): add result param when dismissing bottom sheet (#9810)
Something that came up while doing the docs. Adds the ability for the consumer to pass back a result from a bottom sheet. Also adds a test for `afterDismissed` since it didn't have one.
2018-02-13 07:43:46 -08:00
Kristiyan Kostadinov dcd9c795c3 fix(overlay): expose backdropClick mouse event in ConnectedOverlayDirective (#9845)
Exposes the `MouseEvent` from the backdrop click in the `ConnectedOverlayDirective.backdropClick` emitter.

Relates to #9713.
2018-02-13 07:41:12 -08:00
Kristiyan Kostadinov 0db1795f62 refactor(selection-model): avoid unnecessary null checks in change event (#9850)
* Makes the `added` and `removed` properties on the `SelectionChange` event required since they're guaranteed to be an empty array. This makes it more convenient to consume, because it avoids having to null check them every time.
* Turns the `SelectionChange` into an interface to reduce the amount of code being generated.
2018-02-13 07:40:49 -08:00
Kristiyan Kostadinov 10e26a5311 fix(viewport-ruler): fix server-side rendering errors when attempting to measure the viewport (#9870)
Fixes some errors being thrown by the `ViewportRuler` when attempting to measure the viewport or to get the scroll position while rendering on the server.

Relates to #9066.
2018-02-13 07:40:07 -08:00
Kristiyan Kostadinov 87bbfc52c8 fix(input): AutofillMonitor stream not being completed when stopping monitoring (#9886)
Currently we only remove the event listeners and CSS classes when we stop monitoring an element, however any subscriptions are still live. These changes complete the subject since it won't be reused if we decide to start monitoring again.
2018-02-13 07:39:41 -08:00
Paul Gschwendtner 53417d49ed feat: add ripples to button-toggle (#9891)
* Adds ripples to the `MatButtonToggle` component
* Fixes that the focus overlay for button toggles shows on mouse/touch press.
* Properly stops monitoring through the `FocusMonitor` on component destroy.
* Removes unnecessary mixin for focus-overlay color. Color can be always set, because the overlay will be toggled through `opacity` (performance improvement)

Closes #9442
2018-02-13 07:38:24 -08:00
Adam Netočný 66a01fb383 fix(tooltip): memory leak in _setTooltipMessage (#6782) 2018-02-13 07:37:09 -08:00
Kristiyan Kostadinov 6d4e052973 feat(drawer): allow for backdrop to be disabled (#9381)
Adds the `hasBackdrop` input to the drawer container, allowing users to disable the backdrop.

Fixes #5300.
2018-02-13 07:35:34 -08:00
Kristiyan Kostadinov 038370461b feat(datepicker): add theming support (#9407)
Adds support for theming the datepicker using the `color` attribute, as well as inheriting the theme color from the form field around a datepicker input.
2018-02-13 07:35:02 -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
mmalerba f2c28b1805 chore: add 6.0.0-beta-0 to changelog (#9909) 2018-02-12 15:20:07 -08:00
mmalerba dd8163307f chore: update changelog for 5.2.1 (#9905) 2018-02-12 12:48:18 -08:00
mmalerba 0799beed45 chore: add 5.2.x to CI tested branches (#9902) 2018-02-12 09:01:29 -08:00
Kristiyan Kostadinov 762088741a build: overlay container not being cleaned up in global overlay tests (#9878)
* Fixes the `GlobalPositionStrategy` tests leaking `.cdk-overlay-container` instances which can cause flakes in other tests.
* Fixes a wrong method name in the bottom sheet overview.
2018-02-11 14:51:28 -08:00
Kristiyan Kostadinov 008ee07ce8 docs: add overview docs for bottom sheet (#9809)
Adds the initial readme and overview example for the bottom sheet component.
2018-02-09 14:20:17 -08:00
Kristiyan Kostadinov 669d607d13 chore: bump to Angular 5.2.x (#9770)
Bumps to the latest minor version of Angular now that a compilation error, that was blocking us previously, has been resolved. Also fixes a couple of AoT errors in the demo app.
2018-02-09 14:19:44 -08:00
rellis-of-rhindleton 98daab3935 updated Creating a Custom Form Field doc ngControl section (#9855)
* Creating a custom form field docs -- updated ngControl section to reflect errors injecting NgControl

If the component already implements ControlValueAccessor, injecting NgControl in the constructor (as described in the docs) may fail. Added an alternate way.

* Update creating-a-custom-form-field-control.md

* added word "provider" for clarity
2018-02-09 14:19:26 -08:00
Paul Gschwendtner cf54802e44 chore: less warnings for docs generation (#9864)
* Hides the warnings about unresolved TypeScript symbols for the mixin base classes. Those warnings are not fixable and are polluting the Dgeni output.
* Adds missing `@deprecated` tags to entries that already have the  `@deletion-target` set.
* Updates to the latest version of dgeni-packages because https://github.com/angular/dgeni-packages/commit/3a4e5685589b99b85dfb88e8fd8dbf46aab24088 landed.
2018-02-09 14:19:05 -08:00
Paul Gschwendtner ca37a7ff28 refactor(native-date-adapter): remove hard-coded platform IE check (#9190)
* Removes the hard-coded platform check for IE in the NativeDateAdapter.
2018-02-09 14:18:34 -08:00
Louw Swart 3aceb7361c feat(expansion): add accordion expand/collapse all (#6929) (#7461)
Adds openAll()/closeAll() to perform expand/collapse all on multiple expandable accordions.

Closes #6929
2018-02-09 14:18:18 -08:00
Kristiyan Kostadinov 39936c6204 fix(selection-list): external changes to selection model not being reflected (#9846)
Fixes the selection list not reflecting external changes made to its `selectedOptions` model.

Fixes #9838.
2018-02-09 14:17:56 -08:00
Kristiyan Kostadinov 1b90318c18 chore: fix lint warnings (#9869)
Fixes a few lint warnings that got into master.
2018-02-09 12:59:36 -08:00
Paul Gschwendtner 591d1f28bb docs(ripple): mention terminateOnPointerUp option (#9825)
* Explains what the `terminateOnPointerUp` ripple option is doing, and how it can be specified.
2018-02-08 13:46:25 -08:00
Jeremy Elbourn 64ce0c4b96 docs(chips): remove outdated note about chips being in-progress. (#9818) 2018-02-08 13:45:33 -08:00
Austin 6feaf62585 feat(tabs): add ability to lazy load tab content (#8921)
* feat(tabs): add ability to lazy load tab content

* fix: lint

* chore: nit

* chore: pr feedback

* fix: presubmit error
2018-02-08 13:44:06 -08:00
Kristiyan Kostadinov 6a8ce02775 fix(overlay): validate that ConnectedPositionStrategy positions are passed in correctly at runtime (#9466)
Since we have some cases where we pass in positions verbatim to the connected position strategy (the connected position directive), we could end up in a situation where the consumer passed in a set of invalid positions that don't break necessarily, but don't work correctly either. These changes add some sanity checks at runtime to make debugging easier.
2018-02-08 13:43:44 -08:00
Kristiyan Kostadinov b68d38c51f refactor(select,autocomplete): consolidate logic for scrolling options into view (#9630)
Combines some duplicated logic for determining how to scroll an option into view into a single place so it's easier to maintain.
2018-02-08 13:43:16 -08:00
Kristiyan Kostadinov 3b48c0d1c3 refactor(tooltip): reuse OverlayRef and portal (#9637)
* Reworks the tooltip to reuse the `OverlayRef` after the first time it is opened, rather than destroying it and creating a new one for every subsequent open. This reduces the overhead from having the create the new overlays all the time.
* Changes the signature of the `ConnectedPositionStrategy.withScrollableContainers` method to return the position strategy. This is primarily for consistency with the other methods.
2018-02-08 13:42:35 -08:00
Paul Gschwendtner 46c809728d fix(datepicker): changed after checked error if focused datepicker inputs turn disabled (#9717)
In some situations, the `disable()` method of a form control is called while the datepicker input is focused. This causes a changed after checked error.

Normally, native input elements automatically blur if they turn disabled. This behavior is problematic, because it would mean that it triggers another change detection cycle, which then causes a changed after checked error if the input element was focused before.

Fixes #9559
2018-02-08 13:42:14 -08:00
Kyle Erf df0bfdcc7b feat(radio): add aria-describedby passthrough to radio button input (#9741)
Adds a simple "aria-describedby" input in the manner of "aria-labelledby."
The ability to set "aria-describedby" is essential for accessible radio buttons,
as the attribute allows further description of a radio button to be read
after mentioning the button's label and whether or not it is checked.
2018-02-08 13:41:59 -08:00
Kristiyan Kostadinov 171486ea54 fix(slider): unable to reset value by setting it back to undefined (#9768)
Fixes the slider value not being reset to zero if the consumer sets it to undefined.

Fixes #9740.
2018-02-08 13:41:42 -08:00
Kristiyan Kostadinov 0968c3a8e0 refactor(live-announcer): expose promise when announcing a message (#9812)
Since there's a timeout when announcing something through the `LiveAnnouncer.announce` method, it may be hard/prone to race conditions for the consumer to coordinate it with some other action. These changes expose a promise that will be resolved once the message has been added to the DOM.
2018-02-08 13:41:27 -08:00
Ed Morales 7fbdc0ddaa fix(overlay): dimension not updated after init (#8765) 2018-02-08 13:41:01 -08:00