diff --git a/packages/abc/avatar-list/avatar-list.component.ts b/packages/abc/avatar-list/avatar-list.component.ts index 4fbf28fdf..3ec5fe472 100644 --- a/packages/abc/avatar-list/avatar-list.component.ts +++ b/packages/abc/avatar-list/avatar-list.component.ts @@ -17,7 +17,7 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { InputNumber, NumberInput } from '@delon/util/decorator'; import { NzAvatarComponent } from 'ng-zorro-antd/avatar'; import type { NgStyleInterface, NzSizeLDSType } from 'ng-zorro-antd/core/types'; -import { NzToolTipModule } from 'ng-zorro-antd/tooltip'; +import { NzTooltipDirective } from 'ng-zorro-antd/tooltip'; import { AvatarListItemComponent } from './avatar-list-item.component'; @@ -33,7 +33,7 @@ import { AvatarListItemComponent } from './avatar-list-item.component'; changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, - imports: [NgStyle, NgClass, NzAvatarComponent, NzToolTipModule] + imports: [NgStyle, NgClass, NzAvatarComponent, NzTooltipDirective] }) export class AvatarListComponent implements AfterViewInit, OnChanges { static ngAcceptInputType_maxLength: NumberInput; diff --git a/packages/abc/cell/cell.component.ts b/packages/abc/cell/cell.component.ts index 2a566e193..f675a40a7 100644 --- a/packages/abc/cell/cell.component.ts +++ b/packages/abc/cell/cell.component.ts @@ -22,14 +22,14 @@ import { Subscription } from 'rxjs'; import { updateHostClass } from '@delon/util/browser'; import { BooleanInput, InputBoolean } from '@delon/util/decorator'; import { WINDOW } from '@delon/util/token'; -import { NzBadgeModule } from 'ng-zorro-antd/badge'; -import { NzCheckboxModule } from 'ng-zorro-antd/checkbox'; +import { NzBadgeComponent } from 'ng-zorro-antd/badge'; +import { NzCheckboxComponent } from 'ng-zorro-antd/checkbox'; import type { NzSafeAny } from 'ng-zorro-antd/core/types'; -import { NzIconModule } from 'ng-zorro-antd/icon'; -import { NzImage, NzImageModule, NzImageService } from 'ng-zorro-antd/image'; -import { NzRadioModule } from 'ng-zorro-antd/radio'; -import { NzTagModule } from 'ng-zorro-antd/tag'; -import { NzToolTipModule } from 'ng-zorro-antd/tooltip'; +import { NzIconDirective } from 'ng-zorro-antd/icon'; +import { NzImage, NzImageService } from 'ng-zorro-antd/image'; +import { NzRadioComponent } from 'ng-zorro-antd/radio'; +import { NzTagComponent } from 'ng-zorro-antd/tag'; +import { NzTooltipDirective } from 'ng-zorro-antd/tooltip'; import { CellHostDirective } from './cell-host.directive'; import { CellService } from './cell.service'; @@ -115,13 +115,12 @@ import type { CellDefaultText, CellOptions, CellTextResult, CellValue, CellWidge imports: [ FormsModule, NgTemplateOutlet, - NzCheckboxModule, - NzRadioModule, - NzIconModule, - NzTagModule, - NzBadgeModule, - NzToolTipModule, - NzImageModule, + NzCheckboxComponent, + NzRadioComponent, + NzIconDirective, + NzTagComponent, + NzBadgeComponent, + NzTooltipDirective, CellHostDirective ] }) diff --git a/packages/abc/ellipsis/ellipsis.component.ts b/packages/abc/ellipsis/ellipsis.component.ts index 478226be9..fcf41fcfd 100644 --- a/packages/abc/ellipsis/ellipsis.component.ts +++ b/packages/abc/ellipsis/ellipsis.component.ts @@ -18,7 +18,7 @@ import { take } from 'rxjs'; import { BooleanInput, InputBoolean, InputNumber, NumberInput } from '@delon/util/decorator'; import type { NzSafeAny } from 'ng-zorro-antd/core/types'; -import { NzToolTipModule } from 'ng-zorro-antd/tooltip'; +import { NzTooltipDirective } from 'ng-zorro-antd/tooltip'; @Component({ selector: 'ellipsis', @@ -29,7 +29,7 @@ import { NzToolTipModule } from 'ng-zorro-antd/tooltip'; encapsulation: ViewEncapsulation.None, standalone: true, // TODO: can't use CdkObserveContent - imports: [ObserversModule, NzToolTipModule, NgTemplateOutlet, NgClass, NgStyle] + imports: [ObserversModule, NzTooltipDirective, NgTemplateOutlet, NgClass, NgStyle] }) export class EllipsisComponent implements AfterViewInit, OnChanges { static ngAcceptInputType_tooltip: BooleanInput; diff --git a/packages/abc/notice-icon/notice-icon-tab.component.ts b/packages/abc/notice-icon/notice-icon-tab.component.ts index 5a6480dc0..3f2fd8846 100644 --- a/packages/abc/notice-icon/notice-icon-tab.component.ts +++ b/packages/abc/notice-icon/notice-icon-tab.component.ts @@ -3,7 +3,7 @@ import { Component, EventEmitter, Input, Output, ViewEncapsulation } from '@angu import { LocaleData } from '@delon/theme'; import { NzStringTemplateOutletDirective } from 'ng-zorro-antd/core/outlet'; -import { NzListModule } from 'ng-zorro-antd/list'; +import { NzListComponent, NzListItemComponent, NzListItemMetaComponent } from 'ng-zorro-antd/list'; import { NzTagComponent } from 'ng-zorro-antd/tag'; import { NoticeIconSelect, NoticeItem } from './notice-icon.types'; @@ -15,7 +15,14 @@ import { NoticeIconSelect, NoticeItem } from './notice-icon.types'; preserveWhitespaces: false, encapsulation: ViewEncapsulation.None, standalone: true, - imports: [NgTemplateOutlet, NzStringTemplateOutletDirective, NzListModule, NzTagComponent] + imports: [ + NgTemplateOutlet, + NzStringTemplateOutletDirective, + NzListComponent, + NzListItemComponent, + NzListItemMetaComponent, + NzTagComponent + ] }) export class NoticeIconTabComponent { @Input() locale: LocaleData = {}; diff --git a/packages/abc/notice-icon/notice-icon.component.ts b/packages/abc/notice-icon/notice-icon.component.ts index 8f73baf82..99252a53a 100644 --- a/packages/abc/notice-icon/notice-icon.component.ts +++ b/packages/abc/notice-icon/notice-icon.component.ts @@ -17,10 +17,10 @@ import { DelonLocaleService, LocaleData } from '@delon/theme'; import { BooleanInput, InputBoolean, InputNumber, NumberInput } from '@delon/util/decorator'; import { NzBadgeComponent } from 'ng-zorro-antd/badge'; import type { NgClassType } from 'ng-zorro-antd/core/types'; -import { NzDropDownModule } from 'ng-zorro-antd/dropdown'; +import { NzDropDownDirective, NzDropdownMenuComponent } from 'ng-zorro-antd/dropdown'; import { NzIconDirective } from 'ng-zorro-antd/icon'; import { NzSpinComponent } from 'ng-zorro-antd/spin'; -import { NzTabsModule } from 'ng-zorro-antd/tabs'; +import { NzTabComponent, NzTabSetComponent } from 'ng-zorro-antd/tabs'; import { NoticeIconTabComponent } from './notice-icon-tab.component'; import { NoticeIconSelect, NoticeItem } from './notice-icon.types'; @@ -39,9 +39,11 @@ import { NoticeIconSelect, NoticeItem } from './notice-icon.types'; NgTemplateOutlet, NzBadgeComponent, NzIconDirective, - NzDropDownModule, + NzDropDownDirective, + NzDropdownMenuComponent, NzSpinComponent, - NzTabsModule, + NzTabSetComponent, + NzTabComponent, NoticeIconTabComponent ] }) diff --git a/packages/abc/page-header/page-header.component.ts b/packages/abc/page-header/page-header.component.ts index 69a6717ff..91b282e72 100644 --- a/packages/abc/page-header/page-header.component.ts +++ b/packages/abc/page-header/page-header.component.ts @@ -28,10 +28,10 @@ import { isEmpty } from '@delon/util/browser'; import { AlainConfigService } from '@delon/util/config'; import { BooleanInput, InputBoolean, InputNumber, NumberInput } from '@delon/util/decorator'; import { NzAffixComponent } from 'ng-zorro-antd/affix'; -import { NzBreadCrumbModule } from 'ng-zorro-antd/breadcrumb'; +import { NzBreadCrumbComponent, NzBreadCrumbItemComponent } from 'ng-zorro-antd/breadcrumb'; import { NzStringTemplateOutletDirective } from 'ng-zorro-antd/core/outlet'; import type { NzSafeAny } from 'ng-zorro-antd/core/types'; -import { NzSkeletonModule } from 'ng-zorro-antd/skeleton'; +import { NzSkeletonComponent } from 'ng-zorro-antd/skeleton'; interface PageHeaderPath { title?: string; @@ -49,8 +49,9 @@ interface PageHeaderPath { imports: [ NzAffixComponent, NgTemplateOutlet, - NzSkeletonModule, - NzBreadCrumbModule, + NzSkeletonComponent, + NzBreadCrumbComponent, + NzBreadCrumbItemComponent, RouterLink, NzStringTemplateOutletDirective, ObserversModule diff --git a/packages/abc/reuse-tab/reuse-tab-context-menu.component.ts b/packages/abc/reuse-tab/reuse-tab-context-menu.component.ts index 7d4bd85df..6dd0478ee 100644 --- a/packages/abc/reuse-tab/reuse-tab-context-menu.component.ts +++ b/packages/abc/reuse-tab/reuse-tab-context-menu.component.ts @@ -9,7 +9,7 @@ import { } from '@angular/core'; import { DelonLocaleService } from '@delon/theme'; -import { NzMenuModule } from 'ng-zorro-antd/menu'; +import { NzMenuDirective, NzMenuItemComponent } from 'ng-zorro-antd/menu'; import { CloseType, @@ -30,7 +30,7 @@ import { changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, - imports: [NzMenuModule] + imports: [NzMenuDirective, NzMenuItemComponent] }) export class ReuseTabContextMenuComponent implements OnInit { private _i18n!: ReuseContextI18n; diff --git a/packages/abc/reuse-tab/reuse-tab.component.ts b/packages/abc/reuse-tab/reuse-tab.component.ts index 611a2a075..6a7fc5b7d 100644 --- a/packages/abc/reuse-tab/reuse-tab.component.ts +++ b/packages/abc/reuse-tab/reuse-tab.component.ts @@ -27,8 +27,8 @@ import { debounceTime, filter, of } from 'rxjs'; import { AlainI18NService, ALAIN_I18N_TOKEN } from '@delon/theme'; import { BooleanInput, InputBoolean, InputNumber, NumberInput } from '@delon/util/decorator'; import type { NzSafeAny } from 'ng-zorro-antd/core/types'; -import { NzIconModule } from 'ng-zorro-antd/icon'; -import { NzTabSetComponent, NzTabsModule } from 'ng-zorro-antd/tabs'; +import { NzIconDirective } from 'ng-zorro-antd/icon'; +import { NzTabComponent, NzTabSetComponent } from 'ng-zorro-antd/tabs'; import { ReuseTabContextMenuComponent } from './reuse-tab-context-menu.component'; import { ReuseTabContextComponent } from './reuse-tab-context.component'; @@ -67,11 +67,12 @@ import { ReuseTabStorageState, REUSE_TAB_STORAGE_KEY, REUSE_TAB_STORAGE_STATE } standalone: true, imports: [ NgTemplateOutlet, - NzTabsModule, + NzTabSetComponent, + NzTabComponent, ReuseTabContextMenuComponent, ReuseTabContextDirective, ReuseTabContextComponent, - NzIconModule + NzIconDirective ] }) export class ReuseTabComponent implements OnInit, OnChanges { diff --git a/packages/abc/se/se.component.ts b/packages/abc/se/se.component.ts index 8b73492ad..cf2bda6f3 100644 --- a/packages/abc/se/se.component.ts +++ b/packages/abc/se/se.component.ts @@ -31,7 +31,7 @@ import { NzFormStatusService } from 'ng-zorro-antd/core/form'; import { NzStringTemplateOutletDirective } from 'ng-zorro-antd/core/outlet'; import type { NzSafeAny } from 'ng-zorro-antd/core/types'; import { NzIconDirective } from 'ng-zorro-antd/icon'; -import { NzToolTipModule } from 'ng-zorro-antd/tooltip'; +import { NzTooltipDirective } from 'ng-zorro-antd/tooltip'; import { SEContainerComponent } from './se-container.component'; import { SEError, SEErrorType } from './se.types'; @@ -56,7 +56,7 @@ let nextUniqueId = 0; changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, - imports: [NgClass, NzStringTemplateOutletDirective, NzToolTipModule, NzIconDirective, ObserversModule] + imports: [NgClass, NzStringTemplateOutletDirective, NzTooltipDirective, NzIconDirective, ObserversModule] }) export class SEComponent implements OnChanges, AfterContentInit, AfterViewInit { static ngAcceptInputType_col: NumberInput; diff --git a/packages/abc/sv/index.en-US.md b/packages/abc/sv/index.en-US.md index c1669b066..adec3c64f 100644 --- a/packages/abc/sv/index.en-US.md +++ b/packages/abc/sv/index.en-US.md @@ -11,7 +11,7 @@ Viewing grid system is a higher-order components based on the original [Grid Sys ## API -### sv-container +### sv-container:standalone | Property | Description | Type | Default | Global Config | |----------|-------------|------|---------|---------------| @@ -26,7 +26,7 @@ Viewing grid system is a higher-order components based on the original [Grid Sys | `[noColon]` | Whether to not display : after label text | `boolean` | `false` | - | | `[bordered]` | Whether to display the border | `boolean` | `false` | - | -### sv +### sv:standalone | Property | Description | Type | Default | |----------|-------------|------|---------| @@ -41,11 +41,11 @@ Viewing grid system is a higher-order components based on the original [Grid Sys | `[noColon]` | Whether to not display : after label text | `boolean` | `false` | - | | `[hideLabel]` | Whether to hide the current label | `boolean` | `false` | -### sv-title +### sv-title:standalone Display title. -### sv-value +### sv-value:standalone 值展示。 diff --git a/packages/abc/sv/index.zh-CN.md b/packages/abc/sv/index.zh-CN.md index e473604b7..c158a186b 100644 --- a/packages/abc/sv/index.zh-CN.md +++ b/packages/abc/sv/index.zh-CN.md @@ -11,7 +11,7 @@ module: import { SVModule } from '@delon/abc/sv'; ## API -### sv-container +### sv-container:standalone | 参数 | 说明 | 类型 | 默认值 | 全局配置 | |----|----|----|-----|------| @@ -26,7 +26,7 @@ module: import { SVModule } from '@delon/abc/sv'; | `[noColon]` | 默认是否不显示 label 后面的冒号 | `boolean` | `false` | - | | `[bordered]` | 是否展示边框 | `boolean` | `false` | - | -### sv +### sv:standalone | 参数 | 说明 | 类型 | 默认值 | |----|----|----|-----| @@ -41,11 +41,11 @@ module: import { SVModule } from '@delon/abc/sv'; | `[noColon]` | 是否不显示 label 后面的冒号 | `boolean` | `false` | - | | `[hideLabel]` | 是否隐藏当前 `label` | `boolean` | `false` | -### sv-title +### sv-title:standalone 用于展示标题,单独一行。 -### sv-value +### sv-value:standalone 值展示。 diff --git a/packages/abc/sv/sv-value.component.ts b/packages/abc/sv/sv-value.component.ts index adec8cc66..f897bf405 100644 --- a/packages/abc/sv/sv-value.component.ts +++ b/packages/abc/sv/sv-value.component.ts @@ -1,7 +1,7 @@ import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core'; import type { NzTSType } from 'ng-zorro-antd/core/types'; -import { NzToolTipModule } from 'ng-zorro-antd/tooltip'; +import { NzTooltipDirective } from 'ng-zorro-antd/tooltip'; @Component({ selector: 'sv-value, [sv-value]', @@ -24,7 +24,7 @@ import { NzToolTipModule } from 'ng-zorro-antd/tooltip'; changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, - imports: [NzToolTipModule] + imports: [NzTooltipDirective] }) export class SVValueComponent { @Input() prefix?: string; diff --git a/packages/abc/sv/sv.component.ts b/packages/abc/sv/sv.component.ts index 23b48a562..cb2bbe98c 100644 --- a/packages/abc/sv/sv.component.ts +++ b/packages/abc/sv/sv.component.ts @@ -19,7 +19,7 @@ import { isEmpty } from '@delon/util/browser'; import { BooleanInput, InputBoolean, InputNumber, NumberInput } from '@delon/util/decorator'; import { NzStringTemplateOutletDirective } from 'ng-zorro-antd/core/outlet'; import { NzIconDirective } from 'ng-zorro-antd/icon'; -import { NzToolTipModule } from 'ng-zorro-antd/tooltip'; +import { NzTooltipDirective } from 'ng-zorro-antd/tooltip'; import { SVContainerComponent } from './sv-container.component'; @@ -37,7 +37,7 @@ const prefixCls = `sv`; changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, - imports: [NzStringTemplateOutletDirective, NzToolTipModule, NzIconDirective, ObserversModule] + imports: [NzStringTemplateOutletDirective, NzTooltipDirective, NzIconDirective, ObserversModule] }) export class SVComponent implements AfterViewInit, OnChanges { static ngAcceptInputType_col: NumberInput; diff --git a/packages/chart/mini-progress/mini-progress.component.ts b/packages/chart/mini-progress/mini-progress.component.ts index 4b4ed8918..ff43223f4 100644 --- a/packages/chart/mini-progress/mini-progress.component.ts +++ b/packages/chart/mini-progress/mini-progress.component.ts @@ -10,7 +10,7 @@ import { import { DelonLocaleService } from '@delon/theme'; import { InputNumber, NumberInput, toNumber } from '@delon/util/decorator'; -import { NzToolTipModule } from 'ng-zorro-antd/tooltip'; +import { NzTooltipDirective } from 'ng-zorro-antd/tooltip'; @Component({ selector: 'g2-mini-progress', @@ -21,7 +21,7 @@ import { NzToolTipModule } from 'ng-zorro-antd/tooltip'; changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, - imports: [NzToolTipModule, NgStyle] + imports: [NzTooltipDirective, NgStyle] }) export class G2MiniProgressComponent implements OnChanges { static ngAcceptInputType_target: NumberInput; diff --git a/packages/chart/radar/radar.component.ts b/packages/chart/radar/radar.component.ts index 766dc016e..ae7b65ec1 100644 --- a/packages/chart/radar/radar.component.ts +++ b/packages/chart/radar/radar.component.ts @@ -15,7 +15,7 @@ import { G2BaseComponent } from '@delon/chart/core'; import { BooleanInput, InputBoolean, InputNumber, NumberInput } from '@delon/util/decorator'; import { NzStringTemplateOutletDirective } from 'ng-zorro-antd/core/outlet'; import type { NzSafeAny } from 'ng-zorro-antd/core/types'; -import { NzGridModule } from 'ng-zorro-antd/grid'; +import { NzColDirective, NzRowDirective } from 'ng-zorro-antd/grid'; import { NzSkeletonComponent } from 'ng-zorro-antd/skeleton'; export interface G2RadarData { @@ -42,7 +42,7 @@ export interface G2RadarClickItem { changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, - imports: [NzSkeletonComponent, NzStringTemplateOutletDirective, NzGridModule, NgStyle] + imports: [NzSkeletonComponent, NzStringTemplateOutletDirective, NzRowDirective, NzColDirective, NgStyle] }) export class G2RadarComponent extends G2BaseComponent { static ngAcceptInputType_height: NumberInput; diff --git a/packages/theme/theme-btn/theme-btn.component.ts b/packages/theme/theme-btn/theme-btn.component.ts index aefa7f4a3..4a47ab8f2 100644 --- a/packages/theme/theme-btn/theme-btn.component.ts +++ b/packages/theme/theme-btn/theme-btn.component.ts @@ -20,8 +20,8 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { AlainConfigService } from '@delon/util/config'; import type { NzSafeAny } from 'ng-zorro-antd/core/types'; -import { NzDropDownModule } from 'ng-zorro-antd/dropdown'; -import { NzToolTipModule } from 'ng-zorro-antd/tooltip'; +import { NzDropDownDirective, NzDropdownMenuComponent } from 'ng-zorro-antd/dropdown'; +import { NzTooltipDirective } from 'ng-zorro-antd/tooltip'; export interface ThemeBtnType { key: string; @@ -39,7 +39,7 @@ export const ALAIN_THEME_BTN_KEYS = new InjectionToken('ALAIN_THEME_BTN_ }, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, - imports: [NzDropDownModule, NzToolTipModule] + imports: [NzDropDownDirective, NzDropdownMenuComponent, NzTooltipDirective] }) export class ThemeBtnComponent implements OnInit, OnDestroy { private theme = 'default';