()
| 232 | } |
| 233 | |
| 234 | override ngAfterContentInit() { |
| 235 | super.ngAfterContentInit(); |
| 236 | this._icons.forEach(({name, templateRef}) => (this._iconOverrides[name] = templateRef)); |
| 237 | |
| 238 | // Mark the component for change detection whenever the content children query changes |
| 239 | this.steps.changes.pipe(takeUntil(this._destroyed)).subscribe(() => this._stateChanged()); |
| 240 | |
| 241 | // Transition events won't fire if animations are disabled so we simulate them. |
| 242 | this.selectedIndexChange.pipe(takeUntil(this._destroyed)).subscribe(() => { |
| 243 | const duration = this._getAnimationDuration(); |
| 244 | if (duration === '0ms' || duration === '0s') { |
| 245 | this._onAnimationDone(); |
| 246 | } else { |
| 247 | this._isAnimating.set(true); |
| 248 | } |
| 249 | }); |
| 250 | |
| 251 | this._ngZone.runOutsideAngular(() => { |
| 252 | if (!this._animationsDisabled) { |
| 253 | setTimeout(() => { |
| 254 | // Delay enabling the animations so we don't animate the initial state. |
| 255 | this._elementRef.nativeElement.classList.add('mat-stepper-animations-enabled'); |
| 256 | |
| 257 | // Bind this outside the zone since it fires for all transitions inside the stepper. |
| 258 | this._cleanupTransition = this._renderer.listen( |
| 259 | this._elementRef.nativeElement, |
| 260 | 'transitionend', |
| 261 | this._handleTransitionend, |
| 262 | ); |
| 263 | }, 200); |
| 264 | } |
| 265 | }); |
| 266 | } |
| 267 | |
| 268 | override ngAfterViewInit(): void { |
| 269 | super.ngAfterViewInit(); |
nothing calls this directly
no test coverage detected