avancement planning
This commit is contained in:
+9
-3
@@ -1,13 +1,13 @@
|
||||
import { LEFT_ARROW, RIGHT_ARROW, UP_ARROW, DOWN_ARROW } from '@angular/cdk/keycodes';
|
||||
import { NgTemplateOutlet } from '@angular/common';
|
||||
import * as i0 from '@angular/core';
|
||||
import { inject, signal, Injectable, ElementRef, DestroyRef, viewChild, TemplateRef, input, booleanAttribute, computed, ViewEncapsulation, ChangeDetectionStrategy, Component, ChangeDetectorRef, Injector, EventEmitter, viewChildren, contentChildren, afterNextRender, effect, forwardRef, Output, Input, NgModule } from '@angular/core';
|
||||
import { inject, signal, Injectable, ANIMATION_MODULE_TYPE, ElementRef, DestroyRef, viewChild, TemplateRef, input, booleanAttribute, computed, ViewEncapsulation, ChangeDetectionStrategy, Component, ChangeDetectorRef, Injector, EventEmitter, viewChildren, contentChildren, afterNextRender, effect, forwardRef, Output, Input, NgModule } from '@angular/core';
|
||||
import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
import { ReplaySubject, Subject, of } from 'rxjs';
|
||||
import { tap, switchMap, filter, take, map, bufferCount } from 'rxjs/operators';
|
||||
import * as i1 from 'ng-zorro-antd/icon';
|
||||
import { NzIconModule } from 'ng-zorro-antd/icon';
|
||||
import { _IdGenerator } from '@angular/cdk/a11y';
|
||||
import { ReplaySubject, Subject } from 'rxjs';
|
||||
import { __esDecorate, __runInitializers } from 'tslib';
|
||||
import { Directionality } from '@angular/cdk/bidi';
|
||||
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
||||
@@ -47,6 +47,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
|
||||
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
|
||||
*/
|
||||
class NzSegmentedItemComponent {
|
||||
animationType = inject(ANIMATION_MODULE_TYPE, { optional: true });
|
||||
service = inject(NzSegmentedService);
|
||||
elementRef = inject(ElementRef);
|
||||
destroyRef = inject(DestroyRef);
|
||||
@@ -68,7 +69,12 @@ class NzSegmentedItemComponent {
|
||||
if (value === this.nzValue()) {
|
||||
this.service.activated$.next(this.elementRef.nativeElement);
|
||||
}
|
||||
}), switchMap(value => this.service.animationDone$.pipe(filter(event => event.toState === 'to' || event.toState === 'toVertical'), take(1), map(() => value))), filter(value => value === this.nzValue()), takeUntilDestroyed(this.destroyRef))
|
||||
}), switchMap(value => {
|
||||
if (this.animationType === 'NoopAnimations') {
|
||||
return of(value);
|
||||
}
|
||||
return this.service.animationDone$.pipe(filter(event => event.toState === 'to' || event.toState === 'toVertical'), take(1), map(() => value));
|
||||
}), filter(value => value === this.nzValue()), takeUntilDestroyed(this.destroyRef))
|
||||
.subscribe(() => this.isChecked.set(true));
|
||||
}
|
||||
handleClick() {
|
||||
|
||||
Reference in New Issue
Block a user