Skip to content

Commit

Permalink
chore: update imports to use CdkObserveContent
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk committed Jan 18, 2024
1 parent 8e04704 commit 72b3218
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
5 changes: 2 additions & 3 deletions packages/abc/ellipsis/ellipsis.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ObserversModule } from '@angular/cdk/observers';
import { CdkObserveContent } from '@angular/cdk/observers';
import { DOCUMENT, NgClass, NgStyle, NgTemplateOutlet } from '@angular/common';
import {
AfterViewInit,
Expand Down Expand Up @@ -28,8 +28,7 @@ import { NzTooltipDirective } from 'ng-zorro-antd/tooltip';
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
standalone: true,
// TODO: can't use CdkObserveContent
imports: [ObserversModule, NzTooltipDirective, NgTemplateOutlet, NgClass, NgStyle]
imports: [CdkObserveContent, NzTooltipDirective, NgTemplateOutlet, NgClass, NgStyle]
})
export class EllipsisComponent implements AfterViewInit, OnChanges {
static ngAcceptInputType_tooltip: BooleanInput;
Expand Down
4 changes: 2 additions & 2 deletions packages/abc/exception/exception.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Direction, Directionality } from '@angular/cdk/bidi';
import { ObserversModule } from '@angular/cdk/observers';
import { CdkObserveContent } from '@angular/cdk/observers';
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Expand Down Expand Up @@ -37,7 +37,7 @@ export type ExceptionType = 403 | 404 | 500;
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
standalone: true,
imports: [ObserversModule, NzButtonComponent, RouterLink]
imports: [CdkObserveContent, NzButtonComponent, RouterLink]
})
export class ExceptionComponent implements OnInit {
static ngAcceptInputType_type: ExceptionType | string;
Expand Down
4 changes: 2 additions & 2 deletions packages/abc/page-header/page-header.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Direction, Directionality } from '@angular/cdk/bidi';
import { ObserversModule } from '@angular/cdk/observers';
import { CdkObserveContent } from '@angular/cdk/observers';
import { Platform } from '@angular/cdk/platform';
import { NgTemplateOutlet } from '@angular/common';
import {
Expand Down Expand Up @@ -54,7 +54,7 @@ interface PageHeaderPath {
NzBreadCrumbItemComponent,
RouterLink,
NzStringTemplateOutletDirective,
ObserversModule
CdkObserveContent
]
})
export class PageHeaderComponent implements OnInit, OnChanges, AfterViewInit {
Expand Down
4 changes: 2 additions & 2 deletions packages/abc/se/se.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ObserversModule } from '@angular/cdk/observers';
import { CdkObserveContent } from '@angular/cdk/observers';
import { NgClass } from '@angular/common';
import {
AfterContentInit,
Expand Down Expand Up @@ -56,7 +56,7 @@ let nextUniqueId = 0;
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
standalone: true,
imports: [NgClass, NzStringTemplateOutletDirective, NzTooltipDirective, NzIconDirective, ObserversModule]
imports: [NgClass, NzStringTemplateOutletDirective, NzTooltipDirective, NzIconDirective, CdkObserveContent]
})
export class SEComponent implements OnChanges, AfterContentInit, AfterViewInit {
static ngAcceptInputType_col: NumberInput;
Expand Down
4 changes: 2 additions & 2 deletions packages/abc/sv/sv.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ObserversModule } from '@angular/cdk/observers';
import { CdkObserveContent } from '@angular/cdk/observers';
import {
AfterViewInit,
ChangeDetectionStrategy,
Expand Down Expand Up @@ -37,7 +37,7 @@ const prefixCls = `sv`;
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
standalone: true,
imports: [NzStringTemplateOutletDirective, NzTooltipDirective, NzIconDirective, ObserversModule]
imports: [NzStringTemplateOutletDirective, NzTooltipDirective, NzIconDirective, CdkObserveContent]
})
export class SVComponent implements AfterViewInit, OnChanges {
static ngAcceptInputType_col: NumberInput;
Expand Down

0 comments on commit 72b3218

Please sign in to comment.