Skip to content

Commit

Permalink
build: update bazel setup and angular (#24772)
Browse files Browse the repository at this point in the history
* build: update bazel setup and angular

This should fix the snapshot CI job

* build: update goldens after type signature changes in compiler

The signatures changed with: angular/angular@d3c0fa3
  • Loading branch information
devversion authored Apr 21, 2022
1 parent 49c1921 commit 3bb1747
Show file tree
Hide file tree
Showing 59 changed files with 356 additions and 470 deletions.
4 changes: 2 additions & 2 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# Add NodeJS rules
http_archive(
name = "build_bazel_rules_nodejs",
sha256 = "3ceb1e5b5dcad5fa2ad8870a20201cfbb9c9c63cac4055c9ab370034c765297f",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.3.0/rules_nodejs-5.3.0.tar.gz"],
sha256 = "2b2004784358655f334925e7eadc7ba80f701144363df949b3293e1ae7a2fb7b",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.4.0/rules_nodejs-5.4.0.tar.gz"],
)

# Add sass rules
Expand Down
40 changes: 20 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@
},
"version": "14.0.0-next.11",
"dependencies": {
"@angular/animations": "14.0.0-next.13",
"@angular/common": "14.0.0-next.13",
"@angular/compiler": "14.0.0-next.13",
"@angular/core": "14.0.0-next.13",
"@angular/forms": "14.0.0-next.13",
"@angular/platform-browser": "14.0.0-next.13",
"@angular/animations": "14.0.0-next.14",
"@angular/common": "14.0.0-next.14",
"@angular/compiler": "14.0.0-next.14",
"@angular/core": "14.0.0-next.14",
"@angular/forms": "14.0.0-next.14",
"@angular/platform-browser": "14.0.0-next.14",
"@types/google.maps": "^3.47.3",
"@types/youtube": "^0.0.46",
"rxjs": "^6.6.7",
Expand All @@ -71,27 +71,27 @@
"@angular-devkit/build-angular": "14.0.0-next.9",
"@angular-devkit/core": "14.0.0-next.9",
"@angular-devkit/schematics": "14.0.0-next.9",
"@angular/bazel": "14.0.0-next.9",
"@angular/bazel": "14.0.0-next.14",
"@angular/cli": "14.0.0-next.9",
"@angular/compiler-cli": "14.0.0-next.13",
"@angular/compiler-cli": "14.0.0-next.14",
"@angular/dev-infra-private": "https://github.com/angular/dev-infra-private-builds.git#94108cd31fae6c341fdce4394c9a050f134b25fa",
"@angular/localize": "14.0.0-next.13",
"@angular/platform-browser-dynamic": "14.0.0-next.13",
"@angular/platform-server": "14.0.0-next.13",
"@angular/router": "14.0.0-next.13",
"@angular/localize": "14.0.0-next.14",
"@angular/platform-browser-dynamic": "14.0.0-next.14",
"@angular/platform-server": "14.0.0-next.14",
"@angular/router": "14.0.0-next.14",
"@axe-core/webdriverjs": "^4.3.2",
"@babel/core": "^7.16.12",
"@bazel/bazelisk": "~1.11.0",
"@bazel/buildifier": "~5.0.1",
"@bazel/concatjs": "5.3.0",
"@bazel/esbuild": "5.3.0",
"@bazel/concatjs": "5.4.0",
"@bazel/esbuild": "5.4.0",
"@bazel/ibazel": "~0.16.2",
"@bazel/jasmine": "5.3.0",
"@bazel/protractor": "5.3.0",
"@bazel/rollup": "5.3.0",
"@bazel/runfiles": "5.3.0",
"@bazel/terser": "5.3.0",
"@bazel/worker": "5.3.0",
"@bazel/jasmine": "5.4.0",
"@bazel/protractor": "5.4.0",
"@bazel/rollup": "5.4.0",
"@bazel/runfiles": "5.4.0",
"@bazel/terser": "5.4.0",
"@bazel/worker": "5.4.0",
"@firebase/app-types": "^0.7.0",
"@material/animation": "14.0.0-canary.9736ddce9.0",
"@material/auto-init": "14.0.0-canary.9736ddce9.0",
Expand Down
6 changes: 4 additions & 2 deletions src/cdk/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ sass_library(
# Creates the @angular/cdk package published to npm.
ng_package(
name = "npm_package",
srcs = ["package.json"],
data = [":sass_lib"] + prebuiltStyleTargets + CDK_SCSS_LIBS,
srcs = [
"package.json",
":sass_lib",
] + prebuiltStyleTargets + CDK_SCSS_LIBS,
nested_packages = [
"//src/cdk/schematics:npm_package",
],
Expand Down
8 changes: 3 additions & 5 deletions src/dev-app/stepper/stepper-demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
* found in the LICENSE file at https://angular.io/license
*/

import {AbstractControl, FormBuilder, Validators} from '@angular/forms';

import {Component} from '@angular/core';
import {ThemePalette} from '@angular/material/core';
import {AbstractControl, FormBuilder, Validators} from '@angular/forms';

@Component({
selector: 'stepper-demo',
Expand All @@ -31,10 +32,7 @@ export class StepperDemo {
});

formGroup = this._formBuilder.group({
formArray: this._formBuilder.array<
| {firstNameFormCtrl?: string | null; lastNameFormCtrl?: string | null}
| {emailFormCtrl?: string | null}
>([
formArray: this._formBuilder.array([
this._formBuilder.group({
firstNameFormCtrl: this._formBuilder.control('', [Validators.required]),
lastNameFormCtrl: this._formBuilder.control('', [Validators.required]),
Expand Down
4 changes: 2 additions & 2 deletions src/material-experimental/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ sass_library(

ng_package(
name = "npm_package",
srcs = ["package.json"],
data = [
srcs = [
"package.json",
":sass_lib",
":theming_scss_lib",
],
Expand Down
2 changes: 0 additions & 2 deletions src/material/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ ng_package(
name = "npm_package",
srcs = [
"package.json",
],
data = [
":sass_lib",
"//src/material/core:theming_scss_lib",
"//src/material/prebuilt-themes:deeppurple-amber",
Expand Down
4 changes: 2 additions & 2 deletions tools/defaults.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def ng_module(
if module_name and not testonly:
_make_tsec_test(kwargs["name"])

def ng_package(name, data = [], deps = [], externals = PKG_EXTERNALS, readme_md = None, visibility = None, **kwargs):
def ng_package(name, srcs = [], deps = [], externals = PKG_EXTERNALS, readme_md = None, visibility = None, **kwargs):
# If no readme file has been specified explicitly, use the default readme for
# release packages from "src/README.md".
if not readme_md:
Expand All @@ -186,7 +186,7 @@ def ng_package(name, data = [], deps = [], externals = PKG_EXTERNALS, readme_md
_ng_package(
name = name,
externals = externals,
data = data + [":license_copied"],
srcs = srcs + [":license_copied"],
deps = deps,
# We never set a `package_name` for NPM packages, neither do we enable validation.
# This is necessary because the source targets of the NPM packages all have
Expand Down
6 changes: 3 additions & 3 deletions tools/public_api_guard/cdk/a11y.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class CdkAriaLive implements OnDestroy {
get politeness(): AriaLivePoliteness;
set politeness(value: AriaLivePoliteness);
// (undocumented)
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkAriaLive, "[cdkAriaLive]", ["cdkAriaLive"], { "politeness": "cdkAriaLive"; "duration": "cdkAriaLiveDuration"; }, {}, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkAriaLive, "[cdkAriaLive]", ["cdkAriaLive"], { "politeness": "cdkAriaLive"; "duration": "cdkAriaLiveDuration"; }, {}, never, never, false>;
// (undocumented)
static ɵfac: i0.ɵɵFactoryDeclaration<CdkAriaLive, never>;
}
Expand All @@ -88,7 +88,7 @@ export class CdkMonitorFocus implements AfterViewInit, OnDestroy {
// (undocumented)
ngOnDestroy(): void;
// (undocumented)
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMonitorFocus, "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", never, {}, { "cdkFocusChange": "cdkFocusChange"; }, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMonitorFocus, "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", never, {}, { "cdkFocusChange": "cdkFocusChange"; }, never, never, false>;
// (undocumented)
static ɵfac: i0.ɵɵFactoryDeclaration<CdkMonitorFocus, never>;
}
Expand All @@ -111,7 +111,7 @@ export class CdkTrapFocus implements OnDestroy, AfterContentInit, OnChanges, DoC
// (undocumented)
ngOnDestroy(): void;
// (undocumented)
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkTrapFocus, "[cdkTrapFocus]", ["cdkTrapFocus"], { "enabled": "cdkTrapFocus"; "autoCapture": "cdkTrapFocusAutoCapture"; }, {}, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkTrapFocus, "[cdkTrapFocus]", ["cdkTrapFocus"], { "enabled": "cdkTrapFocus"; "autoCapture": "cdkTrapFocusAutoCapture"; }, {}, never, never, false>;
// (undocumented)
static ɵfac: i0.ɵɵFactoryDeclaration<CdkTrapFocus, never>;
}
Expand Down
4 changes: 2 additions & 2 deletions tools/public_api_guard/cdk/accordion.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class CdkAccordion implements OnDestroy, OnChanges {
readonly _openCloseAllActions: Subject<boolean>;
readonly _stateChanges: Subject<SimpleChanges>;
// (undocumented)
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkAccordion, "cdk-accordion, [cdkAccordion]", ["cdkAccordion"], { "multi": "multi"; }, {}, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkAccordion, "cdk-accordion, [cdkAccordion]", ["cdkAccordion"], { "multi": "multi"; }, {}, never, never, false>;
// (undocumented)
static ɵfac: i0.ɵɵFactoryDeclaration<CdkAccordion, never>;
}
Expand All @@ -58,7 +58,7 @@ export class CdkAccordionItem implements OnDestroy {
readonly opened: EventEmitter<void>;
toggle(): void;
// (undocumented)
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkAccordionItem, "cdk-accordion-item, [cdkAccordionItem]", ["cdkAccordionItem"], { "expanded": "expanded"; "disabled": "disabled"; }, { "closed": "closed"; "opened": "opened"; "destroyed": "destroyed"; "expandedChange": "expandedChange"; }, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkAccordionItem, "cdk-accordion-item, [cdkAccordionItem]", ["cdkAccordionItem"], { "expanded": "expanded"; "disabled": "disabled"; }, { "closed": "closed"; "opened": "opened"; "destroyed": "destroyed"; "expandedChange": "expandedChange"; }, never, never, false>;
// (undocumented)
static ɵfac: i0.ɵɵFactoryDeclaration<CdkAccordionItem, [{ optional: true; skipSelf: true; }, null, null]>;
}
Expand Down
2 changes: 1 addition & 1 deletion tools/public_api_guard/cdk/bidi.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class Dir implements Directionality, AfterContentInit, OnDestroy {
_rawDir: string;
get value(): Direction;
// (undocumented)
static ɵdir: i0.ɵɵDirectiveDeclaration<Dir, "[dir]", ["dir"], { "dir": "dir"; }, { "change": "dirChange"; }, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<Dir, "[dir]", ["dir"], { "dir": "dir"; }, { "change": "dirChange"; }, never, never, false>;
// (undocumented)
static ɵfac: i0.ɵɵFactoryDeclaration<Dir, never>;
}
Expand Down
2 changes: 1 addition & 1 deletion tools/public_api_guard/cdk/clipboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class CdkCopyToClipboard implements OnDestroy {
ngOnDestroy(): void;
text: string;
// (undocumented)
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkCopyToClipboard, "[cdkCopyToClipboard]", never, { "text": "cdkCopyToClipboard"; "attempts": "cdkCopyToClipboardAttempts"; }, { "copied": "cdkCopyToClipboardCopied"; }, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkCopyToClipboard, "[cdkCopyToClipboard]", never, { "text": "cdkCopyToClipboard"; "attempts": "cdkCopyToClipboardAttempts"; }, { "copied": "cdkCopyToClipboardCopied"; }, never, never, false>;
// (undocumented)
static ɵfac: i0.ɵɵFactoryDeclaration<CdkCopyToClipboard, [null, null, { optional: true; }]>;
}
Expand Down
2 changes: 1 addition & 1 deletion tools/public_api_guard/cdk/dialog.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class CdkDialogContainer<C extends DialogConfig = DialogConfig> extends B
_portalOutlet: CdkPortalOutlet;
protected _trapFocus(): void;
// (undocumented)
static ɵcmp: i0.ɵɵComponentDeclaration<CdkDialogContainer<any>, "cdk-dialog-container", never, {}, {}, never, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<CdkDialogContainer<any>, "cdk-dialog-container", never, {}, {}, never, never, false>;
// (undocumented)
static ɵfac: i0.ɵɵFactoryDeclaration<CdkDialogContainer<any>, [null, null, { optional: true; }, null, null, null, null, null]>;
}
Expand Down
12 changes: 6 additions & 6 deletions tools/public_api_guard/cdk/drag-drop.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class CdkDrag<T = any> implements AfterViewInit, OnChanges, OnDestroy {
setFreeDragPosition(value: Point): void;
readonly started: EventEmitter<CdkDragStart>;
// (undocumented)
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDrag<any>, "[cdkDrag]", ["cdkDrag"], { "data": "cdkDragData"; "lockAxis": "cdkDragLockAxis"; "rootElementSelector": "cdkDragRootElement"; "boundaryElement": "cdkDragBoundary"; "dragStartDelay": "cdkDragStartDelay"; "freeDragPosition": "cdkDragFreeDragPosition"; "disabled": "cdkDragDisabled"; "constrainPosition": "cdkDragConstrainPosition"; "previewClass": "cdkDragPreviewClass"; "previewContainer": "cdkDragPreviewContainer"; }, { "started": "cdkDragStarted"; "released": "cdkDragReleased"; "ended": "cdkDragEnded"; "entered": "cdkDragEntered"; "exited": "cdkDragExited"; "dropped": "cdkDragDropped"; "moved": "cdkDragMoved"; }, ["_previewTemplate", "_placeholderTemplate", "_handles"]>;
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDrag<any>, "[cdkDrag]", ["cdkDrag"], { "data": "cdkDragData"; "lockAxis": "cdkDragLockAxis"; "rootElementSelector": "cdkDragRootElement"; "boundaryElement": "cdkDragBoundary"; "dragStartDelay": "cdkDragStartDelay"; "freeDragPosition": "cdkDragFreeDragPosition"; "disabled": "cdkDragDisabled"; "constrainPosition": "cdkDragConstrainPosition"; "previewClass": "cdkDragPreviewClass"; "previewContainer": "cdkDragPreviewContainer"; }, { "started": "cdkDragStarted"; "released": "cdkDragReleased"; "ended": "cdkDragEnded"; "entered": "cdkDragEntered"; "exited": "cdkDragExited"; "dropped": "cdkDragDropped"; "moved": "cdkDragMoved"; }, ["_previewTemplate", "_placeholderTemplate", "_handles"], never, false>;
// (undocumented)
static ɵfac: i0.ɵɵFactoryDeclaration<CdkDrag<any>, [null, { optional: true; skipSelf: true; }, null, null, null, { optional: true; }, { optional: true; }, null, null, { optional: true; self: true; }, { optional: true; skipSelf: true; }]>;
}
Expand Down Expand Up @@ -153,7 +153,7 @@ export class CdkDragHandle implements OnDestroy {
_parentDrag: {} | undefined;
readonly _stateChanges: Subject<CdkDragHandle>;
// (undocumented)
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDragHandle, "[cdkDragHandle]", never, { "disabled": "cdkDragHandleDisabled"; }, {}, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDragHandle, "[cdkDragHandle]", never, { "disabled": "cdkDragHandleDisabled"; }, {}, never, never, false>;
// (undocumented)
static ɵfac: i0.ɵɵFactoryDeclaration<CdkDragHandle, [null, { optional: true; skipSelf: true; }]>;
}
Expand Down Expand Up @@ -183,7 +183,7 @@ export class CdkDragPlaceholder<T = any> {
// (undocumented)
templateRef: TemplateRef<T>;
// (undocumented)
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDragPlaceholder<any>, "ng-template[cdkDragPlaceholder]", never, { "data": "data"; }, {}, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDragPlaceholder<any>, "ng-template[cdkDragPlaceholder]", never, { "data": "data"; }, {}, never, never, false>;
// (undocumented)
static ɵfac: i0.ɵɵFactoryDeclaration<CdkDragPlaceholder<any>, never>;
}
Expand All @@ -197,7 +197,7 @@ export class CdkDragPreview<T = any> {
// (undocumented)
templateRef: TemplateRef<T>;
// (undocumented)
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDragPreview<any>, "ng-template[cdkDragPreview]", never, { "data": "data"; "matchSize": "matchSize"; }, {}, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDragPreview<any>, "ng-template[cdkDragPreview]", never, { "data": "data"; "matchSize": "matchSize"; }, {}, never, never, false>;
// (undocumented)
static ɵfac: i0.ɵɵFactoryDeclaration<CdkDragPreview<any>, never>;
}
Expand Down Expand Up @@ -250,7 +250,7 @@ export class CdkDropList<T = any> implements OnDestroy {
sortingDisabled: BooleanInput;
sortPredicate: (index: number, drag: CdkDrag, drop: CdkDropList) => boolean;
// (undocumented)
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDropList<any>, "[cdkDropList], cdk-drop-list", ["cdkDropList"], { "connectedTo": "cdkDropListConnectedTo"; "data": "cdkDropListData"; "orientation": "cdkDropListOrientation"; "id": "id"; "lockAxis": "cdkDropListLockAxis"; "disabled": "cdkDropListDisabled"; "sortingDisabled": "cdkDropListSortingDisabled"; "enterPredicate": "cdkDropListEnterPredicate"; "sortPredicate": "cdkDropListSortPredicate"; "autoScrollDisabled": "cdkDropListAutoScrollDisabled"; "autoScrollStep": "cdkDropListAutoScrollStep"; }, { "dropped": "cdkDropListDropped"; "entered": "cdkDropListEntered"; "exited": "cdkDropListExited"; "sorted": "cdkDropListSorted"; }, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDropList<any>, "[cdkDropList], cdk-drop-list", ["cdkDropList"], { "connectedTo": "cdkDropListConnectedTo"; "data": "cdkDropListData"; "orientation": "cdkDropListOrientation"; "id": "id"; "lockAxis": "cdkDropListLockAxis"; "disabled": "cdkDropListDisabled"; "sortingDisabled": "cdkDropListSortingDisabled"; "enterPredicate": "cdkDropListEnterPredicate"; "sortPredicate": "cdkDropListSortPredicate"; "autoScrollDisabled": "cdkDropListAutoScrollDisabled"; "autoScrollStep": "cdkDropListAutoScrollStep"; }, { "dropped": "cdkDropListDropped"; "entered": "cdkDropListEntered"; "exited": "cdkDropListExited"; "sorted": "cdkDropListSorted"; }, never, never, false>;
// (undocumented)
static ɵfac: i0.ɵɵFactoryDeclaration<CdkDropList<any>, [null, null, null, null, { optional: true; }, { optional: true; skipSelf: true; }, { optional: true; }]>;
}
Expand All @@ -263,7 +263,7 @@ export class CdkDropListGroup<T> implements OnDestroy {
// (undocumented)
ngOnDestroy(): void;
// (undocumented)
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDropListGroup<any>, "[cdkDropListGroup]", ["cdkDropListGroup"], { "disabled": "cdkDropListGroupDisabled"; }, {}, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDropListGroup<any>, "[cdkDropListGroup]", ["cdkDropListGroup"], { "disabled": "cdkDropListGroupDisabled"; }, {}, never, never, false>;
// (undocumented)
static ɵfac: i0.ɵɵFactoryDeclaration<CdkDropListGroup<any>, never>;
}
Expand Down
2 changes: 1 addition & 1 deletion tools/public_api_guard/cdk/observers.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class CdkObserveContent implements AfterContentInit, OnDestroy {
// (undocumented)
ngOnDestroy(): void;
// (undocumented)
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkObserveContent, "[cdkObserveContent]", ["cdkObserveContent"], { "disabled": "cdkObserveContentDisabled"; "debounce": "debounce"; }, { "event": "cdkObserveContent"; }, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkObserveContent, "[cdkObserveContent]", ["cdkObserveContent"], { "disabled": "cdkObserveContentDisabled"; "debounce": "debounce"; }, { "event": "cdkObserveContent"; }, never, never, false>;
// (undocumented)
static ɵfac: i0.ɵɵFactoryDeclaration<CdkObserveContent, never>;
}
Expand Down
Loading

0 comments on commit 3bb1747

Please sign in to comment.