Skip to content

Commit

Permalink
fixup! ngAcceptType
Browse files Browse the repository at this point in the history
  • Loading branch information
devversion committed Oct 28, 2019
1 parent fe59511 commit aec46dd
Show file tree
Hide file tree
Showing 83 changed files with 354 additions and 148 deletions.
31 changes: 16 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,14 @@
"requiredAngularVersion": "^9.0.0-0 || ^10.0.0-0",
"requiredMDCVersion": "^4.0.0-canary.062ade5c0.0",
"dependencies": {
"@angular/animations": "^9.0.0-next.13",
"@angular/common": "^9.0.0-next.13",
"@angular/compiler": "^9.0.0-next.13",
"@angular/core": "^9.0.0-next.13",
"@angular/elements": "^9.0.0-next.13",
"@angular/forms": "^9.0.0-next.13",
"@angular/platform-browser": "^9.0.0-next.13",
"@angular/animations": "^9.0.0-next.14",
"@angular/common": "^9.0.0-next.14",
"@angular/compiler": "^9.0.0-next.14",
"@angular/core": "^9.0.0-next.14",
"@angular/elements": "^9.0.0-next.14",
"@angular/forms": "^9.0.0-next.14",
"@angular/language-service": "^9.0.0-next.14",
"@angular/platform-browser": "^9.0.0-next.14",
"@types/googlemaps": "^3.37.0",
"@types/youtube": "^0.0.38",
"@webcomponents/custom-elements": "^1.1.0",
Expand All @@ -60,14 +61,14 @@
"zone.js": "~0.10.2"
},
"devDependencies": {
"@angular-devkit/core": "^9.0.0-next.15",
"@angular-devkit/schematics": "^9.0.0-next.15",
"@angular/bazel": "^9.0.0-next.13",
"@angular/compiler-cli": "^9.0.0-next.13",
"@angular/platform-browser-dynamic": "^9.0.0-next.13",
"@angular/platform-server": "^9.0.0-next.13",
"@angular/router": "^9.0.0-next.13",
"@angular/upgrade": "^9.0.0-next.13",
"@angular-devkit/core": "^9.0.0-next.12",
"@angular-devkit/schematics": "^9.0.0-next.12",
"@angular/bazel": "^9.0.0-next.14",
"@angular/compiler-cli": "^9.0.0-next.14",
"@angular/platform-browser-dynamic": "^9.0.0-next.14",
"@angular/platform-server": "^9.0.0-next.14",
"@angular/router": "^9.0.0-next.14",
"@angular/upgrade": "^9.0.0-next.14",
"@bazel/bazel": "^0.29.0",
"@bazel/buildifier": "^0.29.0",
"@bazel/ibazel": "^0.10.3",
Expand Down
3 changes: 3 additions & 0 deletions src/cdk-experimental/scrolling/auto-size-virtual-scroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,4 +463,7 @@ export class CdkAutoSizeVirtualScroll implements OnChanges {
ngOnChanges() {
this._scrollStrategy.updateBufferSize(this.minBufferPx, this.maxBufferPx);
}

static ngAcceptInputType_minBufferPx: number | string;
static ngAcceptInputType_maxBufferPx: number | string;
}
4 changes: 2 additions & 2 deletions src/cdk/a11y/focus-trap/focus-trap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ export class CdkTrapFocus implements OnDestroy, AfterContentInit, DoCheck {
this.focusTrap.attachAnchors();
}
}

static ngAcceptInputType_autoCapture: boolean | string;

static ngAcceptInputType_enabled: boolean | string;
static ngAcceptInputType_autoCapture: boolean | string;
}
2 changes: 1 addition & 1 deletion src/cdk/accordion/accordion-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,6 @@ export class CdkAccordionItem implements OnDestroy {
});
}

static ngAcceptInputType_disabled: boolean | string;
static ngAcceptInputType_expanded: boolean | string;
static ngAcceptInputType_disabled: boolean | string;
}
2 changes: 1 addition & 1 deletion src/cdk/accordion/accordion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ export class CdkAccordion implements OnDestroy, OnChanges {
this._openCloseAllActions.next(expanded);
}
}

static ngAcceptInputType_multi: boolean | string;
}
2 changes: 2 additions & 0 deletions src/cdk/drag-drop/directives/drag-handle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,6 @@ export class CdkDragHandle implements OnDestroy {
ngOnDestroy() {
this._stateChanges.complete();
}

static ngAcceptInputType_disabled: boolean | string;
}
2 changes: 2 additions & 0 deletions src/cdk/drag-drop/directives/drag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,8 @@ export class CdkDrag<T = any> implements AfterViewInit, OnChanges, OnDestroy {
});
});
}

static ngAcceptInputType_disabled: boolean | string;
}

/** Gets the closest ancestor of an element that matches a selector. */
Expand Down
2 changes: 2 additions & 0 deletions src/cdk/drag-drop/directives/drop-list-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@ export class CdkDropListGroup<T> implements OnDestroy {
ngOnDestroy() {
this._items.clear();
}

static ngAcceptInputType_disabled: boolean | string;
}
4 changes: 2 additions & 2 deletions src/cdk/drag-drop/directives/drop-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export class CdkDropList<T = any> implements AfterContentInit, OnDestroy {
* is allowed to be moved into a drop container.
*/
@Input('cdkDropListEnterPredicate')
enterPredicate: (drag: CdkDrag, drop: CdkDropList) => boolean = () => true;
enterPredicate: (drag: CdkDrag, drop: CdkDropList) => boolean = () => true

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

static ngAcceptInputType_autoScrollDisabled: boolean | string;
static ngAcceptInputType_disabled: boolean | string;
static ngAcceptInputType_sortingDisabled: boolean | string;
static ngAcceptInputType_autoScrollDisabled: boolean | string;
}
2 changes: 2 additions & 0 deletions src/cdk/drag-drop/drag-ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1173,6 +1173,8 @@ export class DragRef<T = any> {

return value ? value.mouse : 0;
}

static ngAcceptInputType_disabled: boolean | string;
}

/** Point on the page or within an element. */
Expand Down
3 changes: 3 additions & 0 deletions src/cdk/observers/observe-content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ export class CdkObserveContent implements AfterContentInit, OnDestroy {
this._currentSubscription.unsubscribe();
}
}

static ngAcceptInputType_disabled: boolean | string;
static ngAcceptInputType_debounce: boolean | string;
}


Expand Down
15 changes: 5 additions & 10 deletions src/cdk/overlay/overlay-directives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,16 +384,11 @@ export class CdkConnectedOverlay implements OnDestroy, OnChanges {
this._backdropSubscription.unsubscribe();
}

static ngAcceptInputType_hasBackdrop: boolean | string | undefined;
static ngAcceptInputType_lockPosition: boolean | string | undefined;
static ngAcceptInputType_flexibleDimensions: boolean | string | undefined;
static ngAcceptInputType_growAfterOpen: boolean | string | undefined;
static ngAcceptInputType_push: boolean | string | undefined;
static ngAcceptInputType_width: number | string | undefined;
static ngAcceptInputType_height: number | string | undefined;
static ngAcceptInputType_minWidth: number | string | undefined;
static ngAcceptInputType_minHeight: number | string | undefined;
static ngAcceptInputType_viewportMargin: number | string | undefined;
static ngAcceptInputType_hasBackdrop: boolean | string;
static ngAcceptInputType_lockPosition: boolean | string;
static ngAcceptInputType_flexibleDimensions: boolean | string;
static ngAcceptInputType_growAfterOpen: boolean | string;
static ngAcceptInputType_push: boolean | string;
}


Expand Down
4 changes: 4 additions & 0 deletions src/cdk/stepper/stepper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,10 @@ export class CdkStepper implements AfterViewInit, OnDestroy {
return stepperElement === focusedElement || stepperElement.contains(focusedElement);
}

static ngAcceptInputType_editable: boolean | string;
static ngAcceptInputType_optional: boolean | string;
static ngAcceptInputType_completed: boolean | string;
static ngAcceptInputType_hasError: boolean | string;
static ngAcceptInputType_linear: boolean | string;
static ngAcceptInputType_selectedIndex: number | string;
}
Expand Down
4 changes: 4 additions & 0 deletions src/cdk/table/row.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ export class CdkHeaderRowDef extends _CdkHeaderRowDefBase implements CanStick, O
ngOnChanges(changes: SimpleChanges): void {
super.ngOnChanges(changes);
}

static ngAcceptInputType_sticky: boolean | string;
}

// Boilerplate for applying mixins to CdkFooterRowDef.
Expand All @@ -125,6 +127,8 @@ export class CdkFooterRowDef extends _CdkFooterRowDefBase implements CanStick, O
ngOnChanges(changes: SimpleChanges): void {
super.ngOnChanges(changes);
}

static ngAcceptInputType_sticky: boolean | string;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/cdk/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ export class CdkTable<T> implements AfterContentChecked, CollectionViewer, OnDes
this.updateStickyColumnStyles();
});
}

static ngAcceptInputType_multiTemplateDataRows: boolean | string;
}

Expand Down
2 changes: 0 additions & 2 deletions src/cdk/text-field/autosize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,4 @@ export class CdkTextareaAutosize implements AfterViewInit, DoCheck, OnDestroy {
}

static ngAcceptInputType_enabled: boolean | string;
static ngAcceptInputType_minRows: number | string;
static ngAcceptInputType_maxRows: number | string;
}
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export class MyTelInput implements ControlValueAccessor, MatFormFieldControl<MyT
_handleInput(): void {
this.onChange(this.parts.value);
}

static ngAcceptInputType_disabled: boolean | string;
static ngAcceptInputType_required: boolean | string;
}
6 changes: 6 additions & 0 deletions src/material-experimental/mdc-button/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ export class MatButton extends MatButtonBase {
@Optional() @Inject(ANIMATION_MODULE_TYPE) animationMode?: string) {
super(elementRef, platform, ngZone, animationMode);
}

static ngAcceptInputType_disabled: boolean | string;
static ngAcceptInputType_disableRipple: boolean | string;
}

/**
Expand Down Expand Up @@ -85,4 +88,7 @@ export class MatAnchor extends MatAnchorBase {
@Optional() @Inject(ANIMATION_MODULE_TYPE) animationMode?: string) {
super(elementRef, platform, ngZone, animationMode);
}

static ngAcceptInputType_disabled: boolean | string;
static ngAcceptInputType_disableRipple: boolean | string;
}
6 changes: 6 additions & 0 deletions src/material-experimental/mdc-button/fab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ export class MatFabButton extends MatButtonBase {
@Optional() @Inject(ANIMATION_MODULE_TYPE) animationMode?: string) {
super(elementRef, platform, ngZone, animationMode);
}

static ngAcceptInputType_disabled: boolean | string;
static ngAcceptInputType_disableRipple: boolean | string;
}


Expand Down Expand Up @@ -85,4 +88,7 @@ export class MatFabAnchor extends MatAnchor {
@Optional() @Inject(ANIMATION_MODULE_TYPE) animationMode?: string) {
super(elementRef, platform, ngZone, animationMode);
}

static ngAcceptInputType_disabled: boolean | string;
static ngAcceptInputType_disableRipple: boolean | string;
}
6 changes: 6 additions & 0 deletions src/material-experimental/mdc-button/icon-button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ export class MatIconButton extends MatButtonBase {
@Optional() @Inject(ANIMATION_MODULE_TYPE) animationMode?: string) {
super(elementRef, platform, ngZone, animationMode);
}

static ngAcceptInputType_disabled: boolean | string;
static ngAcceptInputType_disableRipple: boolean | string;
}

/**
Expand Down Expand Up @@ -79,4 +82,7 @@ export class MatIconAnchor extends MatAnchorBase {
@Optional() @Inject(ANIMATION_MODULE_TYPE) animationMode?: string) {
super(elementRef, platform, ngZone, animationMode);
}

static ngAcceptInputType_disabled: boolean | string;
static ngAcceptInputType_disableRipple: boolean | string;
}
6 changes: 6 additions & 0 deletions src/material-experimental/mdc-checkbox/checkbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,4 +349,10 @@ export class MatCheckbox implements AfterViewInit, OnDestroy, ControlValueAccess
this._classes[cssClass] = active;
this._changeDetectorRef.markForCheck();
}

static ngAcceptInputType_checked: boolean | string;
static ngAcceptInputType_indeterminate: boolean | string;
static ngAcceptInputType_disabled: boolean | string;
static ngAcceptInputType_required: boolean | string;
static ngAcceptInputType_disableRipple: boolean | string;
}
3 changes: 3 additions & 0 deletions src/material-experimental/mdc-chips/chip-grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,4 +520,7 @@ export class MatChipGrid extends _MatChipGridMixinBase implements AfterContentIn

return false;
}

static ngAcceptInputType_disabled: boolean | string;
static ngAcceptInputType_required: boolean | string;
}
2 changes: 2 additions & 0 deletions src/material-experimental/mdc-chips/chip-icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,6 @@ export class MatChipRemove extends _MatChipRemoveMixinBase implements CanDisable
constructor(_elementRef: ElementRef) {
super(_elementRef);
}

static ngAcceptInputType_disabled: boolean | string;
}
3 changes: 3 additions & 0 deletions src/material-experimental/mdc-chips/chip-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,7 @@ export class MatChipInput implements MatChipTextControl, OnChanges {
const keyCode = event.keyCode;
return Array.isArray(separators) ? separators.indexOf(keyCode) > -1 : separators.has(keyCode);
}

static ngAcceptInputType_addOnBlur: boolean | string;
static ngAcceptInputType_disabled: boolean | string;
}
5 changes: 5 additions & 0 deletions src/material-experimental/mdc-chips/chip-listbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -554,5 +554,10 @@ export class MatChipListbox extends MatChipSet implements AfterContentInit, Cont

this._lastDestroyedChipIndex = null;
}

static ngAcceptInputType_multiple: boolean | string;
static ngAcceptInputType_selectable: boolean | string;
static ngAcceptInputType_required: boolean | string;
static ngAcceptInputType_disabled: boolean | string;
}

7 changes: 7 additions & 0 deletions src/material-experimental/mdc-chips/chip-option.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,4 +226,11 @@ export class MatChipOption extends MatChip {
this._handleInteraction(event);
}
}

static ngAcceptInputType_selectable: boolean | string;
static ngAcceptInputType_selected: boolean | string;
static ngAcceptInputType_disabled: boolean | string;
static ngAcceptInputType_removable: boolean | string;
static ngAcceptInputType_highlighted: boolean | string;
static ngAcceptInputType_disableRipple: boolean | string;
}
2 changes: 2 additions & 0 deletions src/material-experimental/mdc-chips/chip-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,5 +300,7 @@ export class MatChipSet extends _MatChipSetMixinBase implements AfterContentInit

return false;
}

static ngAcceptInputType_disabled: boolean | string;
}

5 changes: 5 additions & 0 deletions src/material-experimental/mdc-chips/chip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,4 +389,9 @@ export class MatChip extends _MatChipMixinBase implements AfterContentInit, Afte
this._chipFoundation.handleInteraction(event);
}
}

static ngAcceptInputType_disabled: boolean | string;
static ngAcceptInputType_removable: boolean | string;
static ngAcceptInputType_highlighted: boolean | string;
static ngAcceptInputType_disableRipple: boolean | string;
}
5 changes: 4 additions & 1 deletion src/material-experimental/mdc-menu/menu-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,7 @@ import {MatMenuItem as BaseMatMenuItem} from '@angular/material/menu';
{provide: BaseMatMenuItem, useExisting: MatMenuItem},
]
})
export class MatMenuItem extends BaseMatMenuItem {}
export class MatMenuItem extends BaseMatMenuItem {
static ngAcceptInputType_disabled: boolean | string;
static ngAcceptInputType_disableRipple: boolean | string;
}
3 changes: 3 additions & 0 deletions src/material-experimental/mdc-menu/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,7 @@ export class MatMenu extends BaseMatMenu {
// - should update the elevation when the same menu is opened at a different depth
// - should not increase the elevation if the user specified a custom one
}

static ngAcceptInputType_overlapTrigger: boolean | string;
static ngAcceptInputType_hasBackdrop: boolean | string;
}
2 changes: 2 additions & 0 deletions src/material-experimental/mdc-radio/radio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,6 @@ export class MatRadioButton implements AfterViewInit, OnDestroy {
this._classes = {...this._classes, [cssClass]: active};
this._changeDetectorRef.markForCheck();
}

static ngAcceptInputType_disabled: boolean | string;
}
6 changes: 6 additions & 0 deletions src/material-experimental/mdc-slide-toggle/slide-toggle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,4 +312,10 @@ export class MatSlideToggle implements ControlValueAccessor, AfterViewInit, OnDe
this._classes[cssClass] = active;
this._changeDetectorRef.markForCheck();
}

static ngAcceptInputType_tabIndex: number | string;
static ngAcceptInputType_required: boolean | string;
static ngAcceptInputType_checked: boolean | string;
static ngAcceptInputType_disableRipple: boolean | string;
static ngAcceptInputType_disabled: boolean | string;
}
8 changes: 8 additions & 0 deletions src/material-experimental/mdc-slider/slider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -531,4 +531,12 @@ export class MatSlider implements AfterViewInit, OnChanges, OnDestroy, ControlVa
this.value = value;
this._syncValue();
}

static ngAcceptInputType_min: number | string;
static ngAcceptInputType_max: number | string;
static ngAcceptInputType_value: number | string;
static ngAcceptInputType_step: number | string;
static ngAcceptInputType_tickInterval: number | string;
static ngAcceptInputType_thumbLabel: boolean | string;
static ngAcceptInputType_disabled: boolean | string;
}

0 comments on commit aec46dd

Please sign in to comment.