From fe277c769d2ce20d4945b8886ff47ff7119e16c3 Mon Sep 17 00:00:00 2001 From: Nicolas Frizzarin Date: Fri, 1 Dec 2023 20:59:07 +0100 Subject: [PATCH 1/4] feat(module:core): make no-animation standalone --- components/badge/badge-sup.component.ts | 4 ++-- components/badge/badge.spec.ts | 4 ++-- components/drawer/drawer.spec.ts | 4 ++-- components/graph/demo/module | 4 ++-- components/popconfirm/popconfirm.ts | 4 ++-- components/popover/popover.ts | 4 ++-- components/tooltip/tooltip.ts | 4 ++-- components/tree-view/demo/module | 4 ++-- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/components/badge/badge-sup.component.ts b/components/badge/badge-sup.component.ts index 92e65743880..cd377961a82 100644 --- a/components/badge/badge-sup.component.ts +++ b/components/badge/badge-sup.component.ts @@ -16,7 +16,7 @@ import { } from '@angular/core'; import { zoomBadgeMotion } from 'ng-zorro-antd/core/animation'; -import { NzNoAnimationModule } from 'ng-zorro-antd/core/no-animation'; +import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation'; import { NzSafeAny, NzSizeDSType } from 'ng-zorro-antd/core/types'; @Component({ @@ -27,7 +27,7 @@ import { NzSafeAny, NzSizeDSType } from 'ng-zorro-antd/core/types'; changeDetection: ChangeDetectionStrategy.OnPush, animations: [zoomBadgeMotion], standalone: true, - imports: [NgFor, NgIf, NzNoAnimationModule], + imports: [NgFor, NgIf, NzNoAnimationDirective], template: ` { beforeEach(fakeAsync(() => { TestBed.configureTestingModule({ - imports: [BidiModule, NzBadgeModule, NzNoAnimationModule, BrowserAnimationsModule], + imports: [BidiModule, NzBadgeModule, NzNoAnimationDirective, BrowserAnimationsModule], declarations: [NzTestBadgeBasicComponent, NzTestBadgeRtlComponent] }); TestBed.compileComponents(); diff --git a/components/drawer/drawer.spec.ts b/components/drawer/drawer.spec.ts index ceaa6e9801b..0d52e9c1e71 100644 --- a/components/drawer/drawer.spec.ts +++ b/components/drawer/drawer.spec.ts @@ -5,7 +5,7 @@ import { Component, Inject, Input, TemplateRef, ViewChild } from '@angular/core' import { ComponentFixture, fakeAsync, inject, TestBed, tick, waitForAsync } from '@angular/core/testing'; import { NoopAnimationsModule } from '@angular/platform-browser/animations'; -import { NzNoAnimationModule } from 'ng-zorro-antd/core/no-animation'; +import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation'; import { dispatchKeyboardEvent } from 'ng-zorro-antd/core/testing'; import { NZ_DRAWER_DATA } from 'ng-zorro-antd/drawer/drawer-options'; @@ -18,7 +18,7 @@ describe('NzDrawerComponent', () => { beforeEach( waitForAsync(() => { TestBed.configureTestingModule({ - imports: [BidiModule, NzDrawerModule, NoopAnimationsModule, NzNoAnimationModule], + imports: [BidiModule, NzDrawerModule, NoopAnimationsModule, NzNoAnimationDirective], declarations: [NzTestDrawerComponent, NzTestDrawerRtlComponent] }).compileComponents(); }) diff --git a/components/graph/demo/module b/components/graph/demo/module index 21c31d7d20e..2dd23ee5bf5 100644 --- a/components/graph/demo/module +++ b/components/graph/demo/module @@ -2,6 +2,6 @@ import { NzGraphModule } from 'ng-zorro-antd/graph'; import { NzButtonModule } from 'ng-zorro-antd/button'; import { NzIconModule } from 'ng-zorro-antd/icon'; import { NzRadioModule } from 'ng-zorro-antd/radio'; -import { NzNoAnimationModule } from 'ng-zorro-antd/core/no-animation'; +import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation'; -export const moduleList = [ NzGraphModule, NzButtonModule, NzIconModule, NzRadioModule, NzNoAnimationModule ]; +export const moduleList = [ NzGraphModule, NzButtonModule, NzIconModule, NzRadioModule, NzNoAnimationDirective ]; diff --git a/components/popconfirm/popconfirm.ts b/components/popconfirm/popconfirm.ts index 36f8ec08a13..33d89df5126 100644 --- a/components/popconfirm/popconfirm.ts +++ b/components/popconfirm/popconfirm.ts @@ -34,7 +34,7 @@ import { finalize, first, takeUntil } from 'rxjs/operators'; import { NzButtonModule, NzButtonType } from 'ng-zorro-antd/button'; import { zoomBigMotion } from 'ng-zorro-antd/core/animation'; import { NzConfigKey, NzConfigService, WithConfig } from 'ng-zorro-antd/core/config'; -import { NzNoAnimationDirective, NzNoAnimationModule } from 'ng-zorro-antd/core/no-animation'; +import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation'; import { NzOutletModule } from 'ng-zorro-antd/core/outlet'; import { NzOverlayModule } from 'ng-zorro-antd/core/overlay'; import { BooleanInput, NgStyleInterface, NzSafeAny, NzTSType } from 'ng-zorro-antd/core/types'; @@ -220,7 +220,7 @@ export class NzPopconfirmDirective extends NzTooltipBaseDirective { A11yModule, NgClass, NgStyle, - NzNoAnimationModule, + NzNoAnimationDirective, NgIf, NzOutletModule, NzIconModule, diff --git a/components/popover/popover.ts b/components/popover/popover.ts index a5d0e03e3dd..a6d362162ea 100644 --- a/components/popover/popover.ts +++ b/components/popover/popover.ts @@ -25,7 +25,7 @@ import { import { zoomBigMotion } from 'ng-zorro-antd/core/animation'; import { NzConfigKey, NzConfigService, WithConfig } from 'ng-zorro-antd/core/config'; -import { NzNoAnimationDirective, NzNoAnimationModule } from 'ng-zorro-antd/core/no-animation'; +import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation'; import { NzOutletModule } from 'ng-zorro-antd/core/outlet'; import { NzOverlayModule } from 'ng-zorro-antd/core/overlay'; import { BooleanInput, NgStyleInterface, NzTSType } from 'ng-zorro-antd/core/types'; @@ -140,7 +140,7 @@ export class NzPopoverDirective extends NzTooltipBaseDirective { `, - imports: [OverlayModule, NzOverlayModule, NgClass, NgStyle, NzNoAnimationModule, NgIf, NzOutletModule], + imports: [OverlayModule, NzOverlayModule, NgClass, NgStyle, NzNoAnimationDirective, NgIf, NzOutletModule], standalone: true }) export class NzPopoverComponent extends NzToolTipComponent { diff --git a/components/tooltip/tooltip.ts b/components/tooltip/tooltip.ts index d24ce8b8a6d..242b08345b2 100644 --- a/components/tooltip/tooltip.ts +++ b/components/tooltip/tooltip.ts @@ -25,7 +25,7 @@ import { import { zoomBigMotion } from 'ng-zorro-antd/core/animation'; import { isPresetColor, NzPresetColor } from 'ng-zorro-antd/core/color'; -import { NzNoAnimationDirective, NzNoAnimationModule } from 'ng-zorro-antd/core/no-animation'; +import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation'; import { NzOutletModule } from 'ng-zorro-antd/core/outlet'; import { NzOverlayModule } from 'ng-zorro-antd/core/overlay'; import { BooleanInput, NgStyleInterface, NzTSType } from 'ng-zorro-antd/core/types'; @@ -130,7 +130,7 @@ export class NzTooltipDirective extends NzTooltipBaseDirective { `, preserveWhitespaces: false, - imports: [OverlayModule, NgClass, NgStyle, NzNoAnimationModule, NzOutletModule, NzOverlayModule], + imports: [OverlayModule, NgClass, NgStyle, NzNoAnimationDirective, NzOutletModule, NzOverlayModule], standalone: true }) export class NzToolTipComponent extends NzTooltipBaseComponent { diff --git a/components/tree-view/demo/module b/components/tree-view/demo/module index 527e7bae318..c91d23fe279 100644 --- a/components/tree-view/demo/module +++ b/components/tree-view/demo/module @@ -1,10 +1,10 @@ import { NzButtonModule } from 'ng-zorro-antd/button'; import { NzCheckboxModule } from 'ng-zorro-antd/checkbox'; import { NzHighlightModule } from 'ng-zorro-antd/core/highlight'; -import { NzNoAnimationModule } from 'ng-zorro-antd/core/no-animation'; +import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation'; import { NzIconModule } from 'ng-zorro-antd/icon'; import { NzInputModule } from 'ng-zorro-antd/input'; import { NzSwitchModule } from 'ng-zorro-antd/switch'; import { NzTreeViewModule } from 'ng-zorro-antd/tree-view'; -export const moduleList = [ NzTreeViewModule, NzIconModule, NzCheckboxModule, NzInputModule, NzSwitchModule, NzButtonModule, NzNoAnimationModule, NzHighlightModule ]; \ No newline at end of file +export const moduleList = [ NzTreeViewModule, NzIconModule, NzCheckboxModule, NzInputModule, NzSwitchModule, NzButtonModule, NzNoAnimationDirective, NzHighlightModule ]; \ No newline at end of file From 144ad4282c0925c4c7040953618a6365ee47e176 Mon Sep 17 00:00:00 2001 From: Nicolas Frizzarin Date: Thu, 7 Dec 2023 10:41:49 +0100 Subject: [PATCH 2/4] refactor(module:*): use standalone directive --- components/auto-complete/autocomplete.component.ts | 9 +++++---- components/cascader/cascader.component.ts | 12 ++++++------ components/drawer/drawer.component.ts | 4 ++-- components/dropdown/dropdown-menu.component.ts | 4 ++-- components/menu/submenu.component.ts | 4 ++-- components/select/select.component.ts | 4 ++-- components/tree/tree.component.ts | 14 +++++++------- 7 files changed, 26 insertions(+), 25 deletions(-) diff --git a/components/auto-complete/autocomplete.component.ts b/components/auto-complete/autocomplete.component.ts index 86903be4c17..71d5e87843c 100644 --- a/components/auto-complete/autocomplete.component.ts +++ b/components/auto-complete/autocomplete.component.ts @@ -30,11 +30,11 @@ import { ViewChildren, ViewEncapsulation } from '@angular/core'; -import { Observable, Subject, Subscription, defer, merge } from 'rxjs'; +import { defer, merge, Observable, Subject, Subscription } from 'rxjs'; import { filter, switchMap, take, takeUntil } from 'rxjs/operators'; import { slideMotion } from 'ng-zorro-antd/core/animation'; -import { NzNoAnimationDirective, NzNoAnimationModule } from 'ng-zorro-antd/core/no-animation'; +import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation'; import { BooleanInput, CompareWith, NzSafeAny } from 'ng-zorro-antd/core/types'; import { InputBoolean } from 'ng-zorro-antd/core/util'; @@ -66,7 +66,7 @@ function normalizeDataSource(value: AutocompleteDataSource): AutocompleteDataSou changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, - imports: [NgClass, NgFor, NgStyle, NgTemplateOutlet, NzAutocompleteOptionComponent, NzNoAnimationModule], + imports: [NgClass, NgFor, NgStyle, NgTemplateOutlet, NzAutocompleteOptionComponent, NzNoAnimationDirective], template: `
o1 === o2; @Input() nzDataSource?: AutocompleteDataSource; @Output() - readonly selectionChange: EventEmitter = new EventEmitter(); + readonly selectionChange: EventEmitter = + new EventEmitter(); showPanel: boolean = true; isOpen: boolean = false; diff --git a/components/cascader/cascader.component.ts b/components/cascader/cascader.component.ts index bfff2b86baf..e8a58306990 100644 --- a/components/cascader/cascader.component.ts +++ b/components/cascader/cascader.component.ts @@ -13,6 +13,7 @@ import { Component, ElementRef, EventEmitter, + forwardRef, Host, HostListener, Input, @@ -28,17 +29,16 @@ import { TemplateRef, ViewChild, ViewChildren, - ViewEncapsulation, - forwardRef + ViewEncapsulation } from '@angular/core'; import { ControlValueAccessor, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms'; -import { BehaviorSubject, EMPTY, Observable, fromEvent, of as observableOf } from 'rxjs'; +import { BehaviorSubject, EMPTY, fromEvent, Observable, of as observableOf } from 'rxjs'; import { distinctUntilChanged, map, startWith, switchMap, takeUntil, withLatestFrom } from 'rxjs/operators'; import { slideMotion } from 'ng-zorro-antd/core/animation'; import { NzConfigKey, NzConfigService, WithConfig } from 'ng-zorro-antd/core/config'; import { NzFormNoStatusService, NzFormPatchModule, NzFormStatusService } from 'ng-zorro-antd/core/form'; -import { NzNoAnimationDirective, NzNoAnimationModule } from 'ng-zorro-antd/core/no-animation'; +import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation'; import { DEFAULT_CASCADER_POSITIONS, NzOverlayModule } from 'ng-zorro-antd/core/overlay'; import { NzDestroyService } from 'ng-zorro-antd/core/services'; import { @@ -50,7 +50,7 @@ import { NzStatus, NzValidateStatus } from 'ng-zorro-antd/core/types'; -import { InputBoolean, getStatusClassNames, toArray } from 'ng-zorro-antd/core/util'; +import { getStatusClassNames, InputBoolean, toArray } from 'ng-zorro-antd/core/util'; import { NzEmptyModule } from 'ng-zorro-antd/empty'; import { NzCascaderI18nInterface, NzI18nService } from 'ng-zorro-antd/i18n'; import { NzIconModule } from 'ng-zorro-antd/icon'; @@ -233,7 +233,7 @@ const defaultDisplayRender = (labels: string[]): string => labels.join(' / '); NzIconModule, NzFormPatchModule, NzOverlayModule, - NzNoAnimationModule, + NzNoAnimationDirective, NgClass, NgStyle, NzEmptyModule, diff --git a/components/drawer/drawer.component.ts b/components/drawer/drawer.component.ts index 3ac42b94dde..cd3d534bd3d 100644 --- a/components/drawer/drawer.component.ts +++ b/components/drawer/drawer.component.ts @@ -35,7 +35,7 @@ import { Observable, Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; import { NzConfigKey, NzConfigService, WithConfig } from 'ng-zorro-antd/core/config'; -import { NzNoAnimationModule } from 'ng-zorro-antd/core/no-animation'; +import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation'; import { NzOutletModule } from 'ng-zorro-antd/core/outlet'; import { BooleanInput, NgStyleInterface, NzSafeAny } from 'ng-zorro-antd/core/types'; import { InputBoolean, toCssPixel } from 'ng-zorro-antd/core/util'; @@ -140,7 +140,7 @@ const NZ_CONFIG_MODULE_NAME: NzConfigKey = 'drawer'; `, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, - imports: [NzNoAnimationModule, NgIf, NgStyle, NzOutletModule, NzIconModule, PortalModule, NgTemplateOutlet], + imports: [NzNoAnimationDirective, NgIf, NgStyle, NzOutletModule, NzIconModule, PortalModule, NgTemplateOutlet], standalone: true }) export class NzDrawerComponent = NzSafeAny> diff --git a/components/dropdown/dropdown-menu.component.ts b/components/dropdown/dropdown-menu.component.ts index 8f33326d3b2..923792e267a 100644 --- a/components/dropdown/dropdown-menu.component.ts +++ b/components/dropdown/dropdown-menu.component.ts @@ -27,7 +27,7 @@ import { BehaviorSubject, Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; import { slideMotion } from 'ng-zorro-antd/core/animation'; -import { NzNoAnimationDirective, NzNoAnimationModule } from 'ng-zorro-antd/core/no-animation'; +import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation'; import { IndexableObject, NzSafeAny } from 'ng-zorro-antd/core/types'; import { MenuService, NzIsMenuInsideDropDownToken } from 'ng-zorro-antd/menu'; @@ -66,7 +66,7 @@ export type NzPlacementType = 'bottomLeft' | 'bottomCenter' | 'bottomRight' | 't preserveWhitespaces: false, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, - imports: [NgClass, NgStyle, NzNoAnimationModule], + imports: [NgClass, NgStyle, NzNoAnimationDirective], standalone: true }) export class NzDropdownMenuComponent implements AfterContentInit, OnDestroy, OnInit { diff --git a/components/menu/submenu.component.ts b/components/menu/submenu.component.ts index b73fa25d7d0..33c05400bd0 100644 --- a/components/menu/submenu.component.ts +++ b/components/menu/submenu.component.ts @@ -33,7 +33,7 @@ import { import { combineLatest, merge, Subject } from 'rxjs'; import { map, startWith, switchMap, takeUntil } from 'rxjs/operators'; -import { NzNoAnimationDirective, NzNoAnimationModule } from 'ng-zorro-antd/core/no-animation'; +import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation'; import { getPlacementName, POSITION_MAP, POSITION_TYPE_HORIZONTAL } from 'ng-zorro-antd/core/overlay'; import { BooleanInput } from 'ng-zorro-antd/core/types'; import { InputBoolean } from 'ng-zorro-antd/core/util'; @@ -149,7 +149,7 @@ const listOfHorizontalPositions = [ NzSubMenuTitleComponent, NzSubmenuInlineChildComponent, NgIf, - NzNoAnimationModule, + NzNoAnimationDirective, NzSubmenuNoneInlineChildComponent, OverlayModule ], diff --git a/components/select/select.component.ts b/components/select/select.component.ts index f44666625d6..f50345605ac 100644 --- a/components/select/select.component.ts +++ b/components/select/select.component.ts @@ -45,7 +45,7 @@ import { distinctUntilChanged, map, startWith, switchMap, takeUntil, withLatestF import { slideMotion } from 'ng-zorro-antd/core/animation'; import { NzConfigKey, NzConfigService, WithConfig } from 'ng-zorro-antd/core/config'; import { NzFormNoStatusService, NzFormPatchModule, NzFormStatusService } from 'ng-zorro-antd/core/form'; -import { NzNoAnimationDirective, NzNoAnimationModule } from 'ng-zorro-antd/core/no-animation'; +import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation'; import { getPlacementName, NzOverlayModule, POSITION_MAP, POSITION_TYPE } from 'ng-zorro-antd/core/overlay'; import { cancelRequestAnimationFrame, reqAnimFrame } from 'ng-zorro-antd/core/polyfill'; import { NzDestroyService } from 'ng-zorro-antd/core/services'; @@ -203,7 +203,7 @@ export type NzSelectSizeType = 'large' | 'default' | 'small'; imports: [ NzSelectTopControlComponent, CdkOverlayOrigin, - NzNoAnimationModule, + NzNoAnimationDirective, NzSelectArrowComponent, NgIf, NzFormPatchModule, diff --git a/components/tree/tree.component.ts b/components/tree/tree.component.ts index cb8f2d4766c..8842829e2b2 100644 --- a/components/tree/tree.component.ts +++ b/components/tree/tree.component.ts @@ -13,7 +13,9 @@ import { Component, ContentChild, EventEmitter, + forwardRef, Host, + inject, Input, OnChanges, OnDestroy, @@ -22,9 +24,7 @@ import { Output, SimpleChange, TemplateRef, - ViewChild, - forwardRef, - inject + ViewChild } from '@angular/core'; import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; import { Observable, Subject } from 'rxjs'; @@ -32,8 +32,9 @@ import { takeUntil } from 'rxjs/operators'; import { treeCollapseMotion } from 'ng-zorro-antd/core/animation'; import { NzConfigKey, NzConfigService, WithConfig } from 'ng-zorro-antd/core/config'; -import { NzNoAnimationDirective, NzNoAnimationModule } from 'ng-zorro-antd/core/no-animation'; +import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation'; import { + flattenTreeData, NzFormatBeforeDropEvent, NzFormatEmitEvent, NzTreeBase, @@ -41,8 +42,7 @@ import { NzTreeHigherOrderServiceToken, NzTreeNode, NzTreeNodeKey, - NzTreeNodeOptions, - flattenTreeData + NzTreeNodeOptions } from 'ng-zorro-antd/core/tree'; import { BooleanInput, NzSafeAny } from 'ng-zorro-antd/core/types'; import { InputBoolean } from 'ng-zorro-antd/core/util'; @@ -176,7 +176,7 @@ const NZ_CONFIG_MODULE_NAME: NzConfigKey = 'tree'; NgIf, CdkVirtualForOf, NgTemplateOutlet, - NzNoAnimationModule, + NzNoAnimationDirective, NgForOf, NzTreeNodeBuiltinComponent ], From 382e1b3ca752dba73f118813cb9dab746b0ee9bd Mon Sep 17 00:00:00 2001 From: Nicolas Frizzarin Date: Thu, 7 Dec 2023 11:06:28 +0100 Subject: [PATCH 3/4] style(module:auto-complete): fix linter --- components/auto-complete/autocomplete.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/auto-complete/autocomplete.component.ts b/components/auto-complete/autocomplete.component.ts index 71d5e87843c..6e1666cd460 100644 --- a/components/auto-complete/autocomplete.component.ts +++ b/components/auto-complete/autocomplete.component.ts @@ -111,8 +111,7 @@ export class NzAutocompleteComponent implements AfterContentInit, AfterViewInit, @Input() compareWith: CompareWith = (o1, o2) => o1 === o2; @Input() nzDataSource?: AutocompleteDataSource; @Output() - readonly selectionChange: EventEmitter = - new EventEmitter(); + readonly selectionChange: EventEmitter = new EventEmitter(); showPanel: boolean = true; isOpen: boolean = false; From 1e66e48fdfbaad4e0e27f1719baa5318e491e62e Mon Sep 17 00:00:00 2001 From: Nicolas Frizzarin Date: Mon, 11 Dec 2023 16:58:54 +0100 Subject: [PATCH 4/4] refactor(module:*): use standalone directive instead module --- components/date-picker/date-picker.component.ts | 12 ++++++------ components/tree-select/tree-select.component.ts | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/components/date-picker/date-picker.component.ts b/components/date-picker/date-picker.component.ts index e6baa06ca4a..5c8ab5f52e5 100644 --- a/components/date-picker/date-picker.component.ts +++ b/components/date-picker/date-picker.component.ts @@ -22,6 +22,7 @@ import { Component, ElementRef, EventEmitter, + forwardRef, Host, Inject, Input, @@ -36,8 +37,7 @@ import { TemplateRef, ViewChild, ViewChildren, - ViewEncapsulation, - forwardRef + ViewEncapsulation } from '@angular/core'; import { ControlValueAccessor, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms'; import { fromEvent, of as observableOf } from 'rxjs'; @@ -47,11 +47,11 @@ import { NzResizeObserver } from 'ng-zorro-antd/cdk/resize-observer'; import { slideMotion } from 'ng-zorro-antd/core/animation'; import { NzConfigKey, NzConfigService, WithConfig } from 'ng-zorro-antd/core/config'; import { NzFormNoStatusService, NzFormPatchModule, NzFormStatusService } from 'ng-zorro-antd/core/form'; -import { NzNoAnimationDirective, NzNoAnimationModule } from 'ng-zorro-antd/core/no-animation'; +import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation'; import { NzOutletModule } from 'ng-zorro-antd/core/outlet'; import { DATE_PICKER_POSITION_MAP, DEFAULT_DATE_PICKER_POSITIONS, NzOverlayModule } from 'ng-zorro-antd/core/overlay'; import { NzDestroyService } from 'ng-zorro-antd/core/services'; -import { CandyDate, CompatibleValue, cloneDate, wrongSortOrder } from 'ng-zorro-antd/core/time'; +import { CandyDate, cloneDate, CompatibleValue, wrongSortOrder } from 'ng-zorro-antd/core/time'; import { BooleanInput, FunctionProp, @@ -62,7 +62,7 @@ import { OnChangeType, OnTouchedType } from 'ng-zorro-antd/core/types'; -import { InputBoolean, getStatusClassNames, toBoolean, valueFunctionProp } from 'ng-zorro-antd/core/util'; +import { getStatusClassNames, InputBoolean, toBoolean, valueFunctionProp } from 'ng-zorro-antd/core/util'; import { DateHelperService, NzDatePickerI18nInterface, @@ -264,7 +264,7 @@ export type NzPlacement = 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topRight'; DateRangePopupComponent, CdkConnectedOverlay, NzOverlayModule, - NzNoAnimationModule + NzNoAnimationDirective ], standalone: true }) diff --git a/components/tree-select/tree-select.component.ts b/components/tree-select/tree-select.component.ts index 9ac84ae0ef7..46ba47a6257 100644 --- a/components/tree-select/tree-select.component.ts +++ b/components/tree-select/tree-select.component.ts @@ -39,7 +39,7 @@ import { distinctUntilChanged, filter, map, takeUntil, tap, withLatestFrom } fro import { slideMotion } from 'ng-zorro-antd/core/animation'; import { NzConfigKey, NzConfigService, WithConfig } from 'ng-zorro-antd/core/config'; import { NzFormNoStatusService, NzFormPatchModule, NzFormStatusService } from 'ng-zorro-antd/core/form'; -import { NzNoAnimationDirective, NzNoAnimationModule } from 'ng-zorro-antd/core/no-animation'; +import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation'; import { NzOverlayModule, POSITION_MAP } from 'ng-zorro-antd/core/overlay'; import { reqAnimFrame } from 'ng-zorro-antd/core/polyfill'; import { @@ -239,7 +239,7 @@ const listOfPositions = [ NzOverlayModule, CdkConnectedOverlay, NgClass, - NzNoAnimationModule, + NzNoAnimationDirective, NgStyle, NzTreeModule, NgIf,