"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/cdk/stepper/stepper.ts" between
material2-7.3.4.tar.gz and material2-7.3.5.tar.gz

About: material2 offers Material Design components for Angular.

stepper.ts  (material2-7.3.4):stepper.ts  (material2-7.3.5)
skipping to change at line 127 skipping to change at line 127
_showError: boolean; _showError: boolean;
_displayDefaultIndicatorType: boolean; _displayDefaultIndicatorType: boolean;
/** Template for step label if it exists. */ /** Template for step label if it exists. */
@ContentChild(CdkStepLabel) stepLabel: CdkStepLabel; @ContentChild(CdkStepLabel) stepLabel: CdkStepLabel;
/** Template for step content. */ /** Template for step content. */
@ViewChild(TemplateRef) content: TemplateRef<any>; @ViewChild(TemplateRef) content: TemplateRef<any>;
/** The top level abstract control of the step. */ /** The top level abstract control of the step. */
@Input() stepControl: { @Input() stepControl: FormControlLike;
valid: boolean;
invalid: boolean;
pending: boolean;
reset: () => void;
};
/** Whether user has seen the expanded step content or not. */ /** Whether user has seen the expanded step content or not. */
interacted = false; interacted = false;
/** Plain text label of the step. */ /** Plain text label of the step. */
@Input() label: string; @Input() label: string;
/** Error message to display when there's an error. */ /** Error message to display when there's an error. */
@Input() errorMessage: string; @Input() errorMessage: string;
skipping to change at line 519 skipping to change at line 514
private _containsFocus(): boolean { private _containsFocus(): boolean {
if (!this._document || !this._elementRef) { if (!this._document || !this._elementRef) {
return false; return false;
} }
const stepperElement = this._elementRef.nativeElement; const stepperElement = this._elementRef.nativeElement;
const focusedElement = this._document.activeElement; const focusedElement = this._document.activeElement;
return stepperElement === focusedElement || stepperElement.contains(focusedE lement); return stepperElement === focusedElement || stepperElement.contains(focusedE lement);
} }
} }
/**
* Simplified representation of a FormControl from @angular/forms.
* Used to avoid having to bring in @angular/forms for a single optional interfa
ce.
* @docs-private
*/
interface FormControlLike {
asyncValidator: () => any | null;
dirty: boolean;
disabled: boolean;
enabled: boolean;
errors: {[key: string]: any} | null;
invalid: boolean;
parent: any;
pending: boolean;
pristine: boolean;
root: FormControlLike;
status: string;
statusChanges: Observable<any>;
touched: boolean;
untouched: boolean;
updateOn: any;
valid: boolean;
validator: () => any | null;
value: any;
valueChanges: Observable<any>;
clearAsyncValidators(): void;
clearValidators(): void;
disable(opts?: any): void;
enable(opts?: any): void;
get(path: (string | number)[] | string): FormControlLike | null;
getError(errorCode: string, path?: (string | number)[] | string): any;
hasError(errorCode: string, path?: (string | number)[] | string): boolean;
markAllAsTouched(): void;
markAsDirty(opts?: any): void;
markAsPending(opts?: any): void;
markAsPristine(opts?: any): void;
markAsTouched(opts?: any): void;
markAsUntouched(opts?: any): void;
patchValue(value: any, options?: Object): void;
reset(value?: any, options?: Object): void;
setAsyncValidators(newValidator: () => any | (() => any)[] | null): void;
setErrors(errors: {[key: string]: any} | null, opts?: any): void;
setParent(parent: any): void;
setValidators(newValidator: () => any | (() => any)[] | null): void;
setValue(value: any, options?: Object): void;
updateValueAndValidity(opts?: any): void;
patchValue(value: any, options?: any): void;
registerOnChange(fn: Function): void;
registerOnDisabledChange(fn: (isDisabled: boolean) => void): void;
reset(formState?: any, options?: any): void;
setValue(value: any, options?: any): void;
}
 End of changes. 2 change blocks. 
6 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)