Skip to content

Commit

Permalink
chore: fix module
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk committed Jan 11, 2024
1 parent 415f26c commit a8410ac
Show file tree
Hide file tree
Showing 16 changed files with 65 additions and 55 deletions.
4 changes: 2 additions & 2 deletions packages/abc/avatar-list/avatar-list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -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;
Expand Down
27 changes: 13 additions & 14 deletions packages/abc/cell/cell.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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
]
})
Expand Down
4 changes: 2 additions & 2 deletions packages/abc/ellipsis/ellipsis.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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;
Expand Down
11 changes: 9 additions & 2 deletions packages/abc/notice-icon/notice-icon-tab.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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 = {};
Expand Down
10 changes: 6 additions & 4 deletions packages/abc/notice-icon/notice-icon.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -39,9 +39,11 @@ import { NoticeIconSelect, NoticeItem } from './notice-icon.types';
NgTemplateOutlet,
NzBadgeComponent,
NzIconDirective,
NzDropDownModule,
NzDropDownDirective,
NzDropdownMenuComponent,
NzSpinComponent,
NzTabsModule,
NzTabSetComponent,
NzTabComponent,
NoticeIconTabComponent
]
})
Expand Down
9 changes: 5 additions & 4 deletions packages/abc/page-header/page-header.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -49,8 +49,9 @@ interface PageHeaderPath {
imports: [
NzAffixComponent,
NgTemplateOutlet,
NzSkeletonModule,
NzBreadCrumbModule,
NzSkeletonComponent,
NzBreadCrumbComponent,
NzBreadCrumbItemComponent,
RouterLink,
NzStringTemplateOutletDirective,
ObserversModule
Expand Down
4 changes: 2 additions & 2 deletions packages/abc/reuse-tab/reuse-tab-context-menu.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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;
Expand Down
9 changes: 5 additions & 4 deletions packages/abc/reuse-tab/reuse-tab.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions packages/abc/se/se.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions packages/abc/sv/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
|----------|-------------|------|---------|---------------|
Expand All @@ -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 |
|----------|-------------|------|---------|
Expand All @@ -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

值展示。

Expand Down
8 changes: 4 additions & 4 deletions packages/abc/sv/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module: import { SVModule } from '@delon/abc/sv';

## API

### sv-container
### sv-container:standalone

| 参数 | 说明 | 类型 | 默认值 | 全局配置 |
|----|----|----|-----|------|
Expand All @@ -26,7 +26,7 @@ module: import { SVModule } from '@delon/abc/sv';
| `[noColon]` | 默认是否不显示 label 后面的冒号 | `boolean` | `false` | - |
| `[bordered]` | 是否展示边框 | `boolean` | `false` | - |

### sv
### sv:standalone

| 参数 | 说明 | 类型 | 默认值 |
|----|----|----|-----|
Expand All @@ -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

值展示。

Expand Down
4 changes: 2 additions & 2 deletions packages/abc/sv/sv-value.component.ts
Original file line number Diff line number Diff line change
@@ -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]',
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions packages/abc/sv/sv.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions packages/chart/mini-progress/mini-progress.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions packages/chart/radar/radar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions packages/theme/theme-btn/theme-btn.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -39,7 +39,7 @@ export const ALAIN_THEME_BTN_KEYS = new InjectionToken<string>('ALAIN_THEME_BTN_
},
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: true,
imports: [NzDropDownModule, NzToolTipModule]
imports: [NzDropDownDirective, NzDropdownMenuComponent, NzTooltipDirective]
})
export class ThemeBtnComponent implements OnInit, OnDestroy {
private theme = 'default';
Expand Down

0 comments on commit a8410ac

Please sign in to comment.