Skip to content

Commit 67eef4c

Browse files
committed
fix lint and api
1 parent 8d5a7b5 commit 67eef4c

File tree

5 files changed

+20
-6
lines changed

5 files changed

+20
-6
lines changed

.stylelintrc.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@
8787
"selector-max-id": 0,
8888
"no-missing-end-of-source-newline": true,
8989
"no-eol-whitespace": true,
90-
"max-line-length": 100,
90+
"max-line-length": [100, {
91+
"ignorePattern": "/https?://.*/"
92+
}],
9193
"linebreaks": "unix",
9294
"selector-class-pattern": ["^_?(mat-|cdk-|example-|demo-|ng-|mdc-|map-)", {
9395
"resolveNestedSelectors": true

src/material-experimental/mdc-list/list.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
border-radius: 50%;
7676

7777
// `.mdc-list-item` added for extra specificity to override MDC's built in styles.
78-
[dir="rtl"] .mdc-list-item & {
78+
[dir='rtl'] .mdc-list-item & {
7979
margin-left: $margin-value;
8080
margin-right: 0;
8181
}
@@ -94,7 +94,7 @@
9494
.mat-mdc-list-avatar ~ .mat-divider-inset {
9595
margin-left: 72px;
9696

97-
[dir="rtl"] & {
97+
[dir='rtl'] & {
9898
margin-right: 72px;
9999
}
100100
}

src/material-experimental/mdc-list/list.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ import {
1010
ChangeDetectionStrategy,
1111
Component,
1212
ContentChildren,
13-
Directive, ElementRef,
13+
Directive,
14+
ElementRef,
15+
NgZone,
1416
QueryList,
1517
ViewEncapsulation
1618
} from '@angular/core';
@@ -75,4 +77,8 @@ export class MatList extends MatListBase {}
7577
export class MatListItem extends MatListItemBase {
7678
@ContentChildren(MatLine, {read: ElementRef, descendants: true}) lines:
7779
QueryList<ElementRef<Element>>;
80+
81+
constructor(element: ElementRef, ngZone: NgZone) {
82+
super(element, ngZone);
83+
}
7884
}

src/material-experimental/mdc-list/selection-list.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99
import {
1010
ChangeDetectionStrategy,
1111
Component,
12-
ContentChildren, ElementRef,
12+
ContentChildren,
13+
ElementRef,
1314
forwardRef,
15+
NgZone,
1416
QueryList,
1517
ViewEncapsulation
1618
} from '@angular/core';
@@ -60,4 +62,8 @@ export class MatSelectionList extends MatListBase {}
6062
export class MatListOption extends MatListItemBase {
6163
@ContentChildren(MatLine, {read: ElementRef, descendants: true}) lines:
6264
QueryList<ElementRef<Element>>;
65+
66+
constructor(element: ElementRef, ngZone: NgZone) {
67+
super(element, ngZone);
68+
}
6369
}

tools/public_api_guard/material/core.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ export declare type SanityChecks = boolean | GranularSanityChecks;
457457

458458
export declare const JAN = 0, FEB = 1, MAR = 2, APR = 3, MAY = 4, JUN = 5, JUL = 6, AUG = 7, SEP = 8, OCT = 9, NOV = 10, DEC = 11;
459459

460-
export declare function setLines(lines: QueryList<MatLine>, element: ElementRef<HTMLElement>): void;
460+
export declare function setLines(lines: QueryList<unknown>, element: ElementRef<HTMLElement>, prefix?: string): void;
461461

462462
export declare class ShowOnDirtyErrorStateMatcher implements ErrorStateMatcher {
463463
isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean;

0 commit comments

Comments
 (0)