Skip to content

Commit fe59511

Browse files
jelbourndevversion
authored andcommitted
ngAcceptType
1 parent 3fdab10 commit fe59511

File tree

56 files changed

+274
-47
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+274
-47
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@
7373
"@bazel/ibazel": "^0.10.3",
7474
"@bazel/jasmine": "^0.38.3",
7575
"@bazel/karma": "^0.38.3",
76-
"@bazel/typescript": "^0.38.3",
7776
"@bazel/protractor": "^0.38.3",
77+
"@bazel/typescript": "^0.38.3",
7878
"@firebase/app-types": "^0.3.2",
7979
"@octokit/rest": "^16.28.7",
8080
"@schematics/angular": "^9.0.0-next.15",

src/cdk/a11y/focus-trap/focus-trap.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,4 +418,7 @@ export class CdkTrapFocus implements OnDestroy, AfterContentInit, DoCheck {
418418
this.focusTrap.attachAnchors();
419419
}
420420
}
421+
422+
static ngAcceptInputType_autoCapture: boolean | string;
423+
static ngAcceptInputType_enabled: boolean | string;
421424
}

src/cdk/accordion/accordion-item.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,7 @@ export class CdkAccordionItem implements OnDestroy {
152152
}
153153
});
154154
}
155+
156+
static ngAcceptInputType_disabled: boolean | string;
157+
static ngAcceptInputType_expanded: boolean | string;
155158
}

src/cdk/accordion/accordion.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,6 @@ export class CdkAccordion implements OnDestroy, OnChanges {
5959
this._openCloseAllActions.next(expanded);
6060
}
6161
}
62+
63+
static ngAcceptInputType_multi: boolean | string;
6264
}

src/cdk/drag-drop/directives/drop-list.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export class CdkDropList<T = any> implements AfterContentInit, OnDestroy {
113113
* is allowed to be moved into a drop container.
114114
*/
115115
@Input('cdkDropListEnterPredicate')
116-
enterPredicate: (drag: CdkDrag, drop: CdkDropList) => boolean = () => true
116+
enterPredicate: (drag: CdkDrag, drop: CdkDropList) => boolean = () => true;
117117

118118
/** Whether to auto-scroll the view when the user moves their pointer close to the edges. */
119119
@Input('cdkDropListAutoScrollDisabled')
@@ -328,4 +328,7 @@ export class CdkDropList<T = any> implements AfterContentInit, OnDestroy {
328328
});
329329
}
330330

331+
static ngAcceptInputType_autoScrollDisabled: boolean | string;
332+
static ngAcceptInputType_disabled: boolean | string;
333+
static ngAcceptInputType_sortingDisabled: boolean | string;
331334
}

src/cdk/overlay/overlay-directives.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,17 @@ export class CdkConnectedOverlay implements OnDestroy, OnChanges {
383383

384384
this._backdropSubscription.unsubscribe();
385385
}
386+
387+
static ngAcceptInputType_hasBackdrop: boolean | string | undefined;
388+
static ngAcceptInputType_lockPosition: boolean | string | undefined;
389+
static ngAcceptInputType_flexibleDimensions: boolean | string | undefined;
390+
static ngAcceptInputType_growAfterOpen: boolean | string | undefined;
391+
static ngAcceptInputType_push: boolean | string | undefined;
392+
static ngAcceptInputType_width: number | string | undefined;
393+
static ngAcceptInputType_height: number | string | undefined;
394+
static ngAcceptInputType_minWidth: number | string | undefined;
395+
static ngAcceptInputType_minHeight: number | string | undefined;
396+
static ngAcceptInputType_viewportMargin: number | string | undefined;
386397
}
387398

388399

src/cdk/portal/portal-directives.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ export class CdkPortalOutlet extends BasePortalOutlet implements OnInit, OnDestr
170170

171171
return viewRef;
172172
}
173+
174+
static ngAcceptInputType_portal: Portal<any> | null | undefined | '';
173175
}
174176

175177
/**

src/cdk/scrolling/fixed-size-virtual-scroll.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,4 +203,8 @@ export class CdkFixedSizeVirtualScroll implements OnChanges {
203203
ngOnChanges() {
204204
this._scrollStrategy.updateItemAndBufferSize(this.itemSize, this.minBufferPx, this.maxBufferPx);
205205
}
206+
207+
static ngAcceptInputType_itemSize: string | number;
208+
static ngAcceptInputType_minBufferPx: string | number;
209+
static ngAcceptInputType_maxBufferPx: string | number;
206210
}

src/cdk/stepper/stepper.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,11 @@ export class CdkStep implements OnChanges {
231231
// underlying MatStepHeader, we have to make sure that change detection runs correctly.
232232
this._stepper._stateChanged();
233233
}
234+
235+
static ngAcceptInputType_editable: boolean | string;
236+
static ngAcceptInputType_hasError: boolean | string;
237+
static ngAcceptInputType_optional: boolean | string;
238+
static ngAcceptInputType_completed: boolean | string;
234239
}
235240

236241
@Directive({
@@ -519,6 +524,9 @@ export class CdkStepper implements AfterViewInit, OnDestroy {
519524
const focusedElement = this._document.activeElement;
520525
return stepperElement === focusedElement || stepperElement.contains(focusedElement);
521526
}
527+
528+
static ngAcceptInputType_linear: boolean | string;
529+
static ngAcceptInputType_selectedIndex: number | string;
522530
}
523531

524532

src/cdk/table/cell.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ export class CdkColumnDef extends _CdkColumnDefBase implements CanStick {
107107
* do not match are replaced by the '-' character.
108108
*/
109109
cssClassFriendlyName: string;
110+
111+
static ngAcceptInputType_sticky: boolean | string;
112+
static ngAcceptInputType_stickyEnd: boolean | string;
110113
}
111114

112115
/** Base class for the cells. Adds a CSS classname that identifies the column it renders in. */

0 commit comments

Comments
 (0)