From fbf35bcf874f141acfd9b349f0e28910d145fd6f Mon Sep 17 00:00:00 2001 From: cipchk Date: Sat, 4 Jan 2025 01:33:06 +0800 Subject: [PATCH 1/3] docs: clean `standalone: true` --- packages/abc/auto-focus/demo/simple.md | 1 - packages/abc/avatar-list/demo/maxLength.md | 1 - packages/abc/avatar-list/demo/simple.md | 1 - packages/abc/cell/demo/simple.md | 1 - packages/abc/cell/index.en-US.md | 1 - packages/abc/cell/index.zh-CN.md | 1 - packages/abc/count-down/demo/accuracy.md | 1 - packages/abc/count-down/demo/simple.md | 1 - packages/abc/date-picker/demo/basic.md | 1 - packages/abc/date-picker/demo/shortcut.md | 1 - packages/abc/down-file/demo/simple.md | 1 - packages/abc/ellipsis/demo/line.md | 1 - packages/abc/ellipsis/demo/number.md | 1 - packages/abc/error-collect/demo/basic.md | 1 - packages/abc/exception/demo/403.md | 1 - packages/abc/exception/demo/404.md | 1 - packages/abc/exception/demo/500.md | 1 - packages/abc/footer-toolbar/demo/basic.md | 1 - packages/abc/global-footer/demo/basic.md | 1 - packages/abc/global-footer/demo/custom.md | 1 - packages/abc/highlight/demo/simple.md | 1 - packages/abc/hotkey/demo/basic.md | 1 - packages/abc/loading/demo/basic.md | 1 - packages/abc/loading/demo/custom.md | 1 - packages/abc/loading/demo/delay.md | 1 - packages/abc/lodop/demo/design.md | 1 - packages/abc/lodop/demo/print.md | 1 - packages/abc/media/demo/custom.md | 1 - packages/abc/media/demo/mp3.md | 1 - packages/abc/media/demo/mp4.md | 1 - packages/abc/notice-icon/demo/basic.md | 1 - packages/abc/notice-icon/demo/popover.md | 1 - packages/abc/observers/demo/basic.md | 1 - packages/abc/onboarding/demo/basic.md | 1 - packages/abc/onboarding/demo/multiple-pages.md | 1 - packages/abc/page-header/demo/image.md | 1 - packages/abc/page-header/demo/simple.md | 1 - packages/abc/page-header/demo/standard.md | 1 - packages/abc/page-header/demo/structure.md | 1 - packages/abc/pdf/demo/basic.md | 1 - packages/abc/pdf/demo/design.md | 1 - packages/abc/quick-menu/demo/simple.md | 1 - packages/abc/result/demo/classic.md | 1 - packages/abc/result/demo/fail.md | 1 - packages/abc/result/demo/structure.md | 1 - packages/abc/se/demo/basic.md | 1 - packages/abc/se/demo/compact.md | 1 - packages/abc/se/demo/complex.md | 1 - packages/abc/se/demo/horizontal.md | 1 - packages/abc/se/demo/inline.md | 1 - packages/abc/se/demo/line.md | 1 - packages/abc/se/demo/reactive.md | 1 - packages/abc/se/demo/reset-errors.md | 1 - packages/abc/se/demo/vertical.md | 1 - packages/abc/sg/demo/basic.md | 1 - packages/abc/st/demo/basic.md | 1 - packages/abc/st/demo/buttons.md | 1 - packages/abc/st/demo/cell.md | 1 - packages/abc/st/demo/checkbox.md | 1 - packages/abc/st/demo/colspan-rowspan.md | 1 - packages/abc/st/demo/contextmenu.md | 1 - packages/abc/st/demo/custom-data.md | 1 - packages/abc/st/demo/edit-row.md | 1 - packages/abc/st/demo/expand.md | 1 - packages/abc/st/demo/export.md | 1 - packages/abc/st/demo/fixed.md | 1 - packages/abc/st/demo/form.md | 1 - packages/abc/st/demo/grouping-columns.md | 1 - packages/abc/st/demo/radio.md | 1 - packages/abc/st/demo/render.md | 1 - packages/abc/st/demo/resizable.md | 1 - packages/abc/st/demo/responsive.md | 1 - packages/abc/st/demo/row-op.md | 1 - packages/abc/st/demo/sort.md | 1 - packages/abc/st/demo/statistical.md | 1 - packages/abc/st/demo/type.md | 1 - packages/abc/st/demo/virtual.md | 1 - packages/abc/st/demo/widget.md | 1 - packages/abc/sv/demo/basic.md | 1 - packages/abc/sv/demo/border.md | 1 - packages/abc/sv/demo/fixed.md | 1 - packages/abc/sv/demo/type.md | 1 - packages/abc/sv/demo/vertical.md | 1 - packages/abc/tag-select/demo/simple.md | 1 - packages/abc/xlsx/demo/export.md | 1 - packages/abc/xlsx/demo/import.md | 1 - packages/abc/zip/demo/read.md | 1 - packages/abc/zip/demo/save.md | 1 - packages/cache/docs/demo/simple.md | 1 - packages/chart/bar/demo/basic.md | 1 - packages/chart/card/demo/style1.md | 1 - packages/chart/card/demo/style2.md | 1 - packages/chart/card/demo/style3.md | 1 - packages/chart/chart-echarts/demo/basic.md | 1 - packages/chart/chart-echarts/demo/on.md | 1 - packages/chart/custom/demo/basic.md | 1 - packages/chart/docs/demo/resizable.md | 1 - packages/chart/gauge/demo/basic.md | 1 - packages/chart/mini-area/demo/basic.md | 1 - packages/chart/mini-area/demo/mini.md | 1 - packages/chart/mini-area/demo/tooltip.md | 1 - packages/chart/mini-bar/demo/basic.md | 1 - packages/chart/mini-bar/demo/mini.md | 1 - packages/chart/mini-bar/demo/tooltip.md | 1 - packages/chart/mini-progress/demo/basic.md | 1 - packages/chart/number-info/demo/basic.md | 1 - packages/chart/number-info/demo/multiple.md | 1 - packages/chart/number-info/demo/theme.md | 1 - packages/chart/pie/demo/basic.md | 1 - packages/chart/pie/demo/mini.md | 1 - packages/chart/radar/demo/basic.md | 1 - packages/chart/single-bar/demo/basic.md | 1 - packages/chart/tag-cloud/demo/basic.md | 1 - packages/chart/timeline/demo/basic.md | 1 - packages/chart/timeline/demo/mask.md | 1 - packages/chart/timeline/demo/max-axis.md | 1 - packages/chart/trend/demo/basic.md | 1 - packages/chart/trend/demo/reverse.md | 1 - packages/chart/water-wave/demo/basic.md | 1 - packages/form/docs/customize.en-US.md | 1 - packages/form/docs/customize.zh-CN.md | 1 - packages/form/examples/acl/demo/simple.md | 1 - packages/form/examples/conditional/demo/if.md | 1 - packages/form/examples/conditional/demo/visibleIf.md | 1 - packages/form/examples/i18n/demo/simple.md | 1 - packages/form/examples/method/demo/simple.md | 1 - packages/form/examples/modal/demo/simple.md | 1 - packages/form/src/widgets/array/demo/irregular.md | 1 - packages/form/src/widgets/array/demo/simple.md | 1 - packages/form/src/widgets/boolean/demo/simple.md | 1 - packages/form/src/widgets/checkbox/demo/simple.md | 1 - packages/form/src/widgets/custom/demo/simple.md | 1 - packages/form/src/widgets/date/demo/range.md | 1 - packages/form/src/widgets/date/demo/simple.md | 1 - packages/form/src/widgets/number/demo/simple.md | 1 - packages/form/src/widgets/object/demo/card.md | 1 - packages/form/src/widgets/object/demo/simple.md | 1 - packages/form/src/widgets/radio/demo/simple.md | 1 - packages/form/src/widgets/select/demo/coordinate.md | 1 - .../form/src/widgets/select/demo/custom-dropdown-menu.md | 1 - packages/form/src/widgets/select/demo/search.md | 1 - packages/form/src/widgets/select/demo/simple.md | 1 - packages/form/src/widgets/string/demo/simple.md | 1 - packages/form/src/widgets/string/demo/time.md | 1 - packages/form/src/widgets/text/demo/simple.md | 1 - packages/form/src/widgets/textarea/demo/simple.md | 1 - packages/form/widgets-third/monaco-editor/demo/simple.md | 1 - packages/form/widgets-third/tinymce/demo/simple.md | 1 - packages/form/widgets/autocomplete/demo/simple.md | 1 - packages/form/widgets/cascader/demo/simple.md | 1 - packages/form/widgets/color/demo/simple.md | 1 - packages/form/widgets/mention/demo/simple.md | 1 - packages/form/widgets/qr-code/demo/simple.md | 1 - packages/form/widgets/rate/demo/simple.md | 1 - packages/form/widgets/segmented/demo/simple.md | 1 - packages/form/widgets/slider/demo/simple.md | 1 - packages/form/widgets/tag/demo/simple.md | 1 - packages/form/widgets/time/demo/simple.md | 1 - packages/form/widgets/transfer/demo/simple.md | 1 - packages/form/widgets/tree-select/demo/customized-icon.md | 1 - packages/form/widgets/tree-select/demo/simple.md | 1 - packages/form/widgets/tree-select/demo/virtual-scroll.md | 1 - packages/form/widgets/upload/demo/simple.md | 1 - packages/theme/docs/demo/table-rep.md | 1 - packages/theme/src/services/drawer/demo/simple.md | 1 - packages/theme/src/services/modal/demo/drag.md | 1 - packages/theme/src/services/modal/demo/simple.md | 1 - packages/util/browser/demo/cookie.md | 1 - packages/util/pipes/currency/demo/currency-cny.md | 1 - packages/util/pipes/currency/demo/currency-mega.md | 1 - packages/util/pipes/currency/demo/currency-price.md | 1 - packages/util/pipes/filter/demo/filter.md | 1 - packages/util/pipes/filter/filter.pipe.ts | 2 +- packages/util/pipes/format/demo/format-mask.md | 1 - .../files/src/app/layout/basic/basic.component.ts | 1 - .../files/src/app/layout/passport/passport.component.ts | 1 - .../files/src/app/routes/dashboard/dashboard.component.ts | 1 - .../__name@dasherize__.component.ts.template | 1 - .../__name@dasherize__.component.ts.template | 1 - .../__name@dasherize__.component.ts.template | 1 - .../__name@dasherize__.component.ts.template | 1 - schematics/utils/ast.spec.ts | 1 - .../__name@dasherize__.component.ts.template | 1 - src/app/core/code/code.service.ts | 7 ++++--- src/app/routes/form-pages/validator/validator.component.ts | 1 - src/templates/examples_index.ts | 1 - src/templates/standalone.content.ts | 1 - 187 files changed, 5 insertions(+), 189 deletions(-) diff --git a/packages/abc/auto-focus/demo/simple.md b/packages/abc/auto-focus/demo/simple.md index 382bc5e62d..df2fe47a29 100644 --- a/packages/abc/auto-focus/demo/simple.md +++ b/packages/abc/auto-focus/demo/simple.md @@ -30,7 +30,6 @@ import { NzInputModule } from 'ng-zorro-antd/input'; } `, - standalone: true, imports: [NzButtonModule, NzInputModule, AutoFocusDirective] }) export class DemoComponent { diff --git a/packages/abc/avatar-list/demo/maxLength.md b/packages/abc/avatar-list/demo/maxLength.md index d414360969..499ea307ff 100644 --- a/packages/abc/avatar-list/demo/maxLength.md +++ b/packages/abc/avatar-list/demo/maxLength.md @@ -26,7 +26,6 @@ import { AvatarListModule } from '@delon/abc/avatar-list'; `, - standalone: true, imports: [AvatarListModule] }) export class DemoComponent {} diff --git a/packages/abc/avatar-list/demo/simple.md b/packages/abc/avatar-list/demo/simple.md index 978d1d3af0..3960f71823 100644 --- a/packages/abc/avatar-list/demo/simple.md +++ b/packages/abc/avatar-list/demo/simple.md @@ -27,7 +27,6 @@ import { AvatarListModule } from '@delon/abc/avatar-list'; `, - standalone: true, imports: [AvatarListModule] }) export class DemoComponent {} diff --git a/packages/abc/cell/demo/simple.md b/packages/abc/cell/demo/simple.md index 7b95c1d377..e150dc0a11 100644 --- a/packages/abc/cell/demo/simple.md +++ b/packages/abc/cell/demo/simple.md @@ -156,7 +156,6 @@ import { NzGridModule } from 'ng-zorro-antd/grid'; ` ], changeDetection: ChangeDetectionStrategy.OnPush, - standalone: true, imports: [CellModule, FormsModule, JsonPipe, NzGridModule] }) export class DemoComponent implements OnInit { diff --git a/packages/abc/cell/index.en-US.md b/packages/abc/cell/index.en-US.md index 4b91b8e9b5..4fcee04e38 100644 --- a/packages/abc/cell/index.en-US.md +++ b/packages/abc/cell/index.en-US.md @@ -80,7 +80,6 @@ import { NzToolTipModule } from 'ng-zorro-antd/tooltip'; '(click)': 'show()' }, changeDetection: ChangeDetectionStrategy.OnPush, - standalone: true, imports: [ NzToolTipModule ] }) export class CellTestWidget implements CellWidgetInstance { diff --git a/packages/abc/cell/index.zh-CN.md b/packages/abc/cell/index.zh-CN.md index 7280d02121..e6f0bb4927 100644 --- a/packages/abc/cell/index.zh-CN.md +++ b/packages/abc/cell/index.zh-CN.md @@ -80,7 +80,6 @@ import { NzToolTipModule } from 'ng-zorro-antd/tooltip'; '(click)': 'show()' }, changeDetection: ChangeDetectionStrategy.OnPush, - standalone: true, imports: [ NzToolTipModule ] }) export class CellTestWidget implements CellWidgetInstance { diff --git a/packages/abc/count-down/demo/accuracy.md b/packages/abc/count-down/demo/accuracy.md index 9ae461471a..fdb9e16325 100644 --- a/packages/abc/count-down/demo/accuracy.md +++ b/packages/abc/count-down/demo/accuracy.md @@ -23,7 +23,6 @@ import { CountDownComponent } from '@delon/abc/count-down'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [CountDownComponent] }) export class DemoComponent { diff --git a/packages/abc/count-down/demo/simple.md b/packages/abc/count-down/demo/simple.md index 8823805be6..f68eb54512 100644 --- a/packages/abc/count-down/demo/simple.md +++ b/packages/abc/count-down/demo/simple.md @@ -31,7 +31,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; `, - standalone: true, imports: [CountDownComponent, NzButtonModule] }) export class DemoComponent { diff --git a/packages/abc/date-picker/demo/basic.md b/packages/abc/date-picker/demo/basic.md index 9e562c2e8b..cfc84f5365 100644 --- a/packages/abc/date-picker/demo/basic.md +++ b/packages/abc/date-picker/demo/basic.md @@ -27,7 +27,6 @@ import { NzDatePickerModule } from 'ng-zorro-antd/date-picker'; result: {{ i | json }}
`, - standalone: true, imports: [JsonPipe, FormsModule, NzDatePickerModule, RangePickerDirective] }) export class DemoComponent { diff --git a/packages/abc/date-picker/demo/shortcut.md b/packages/abc/date-picker/demo/shortcut.md index d861c318bf..b8e2aee72c 100644 --- a/packages/abc/date-picker/demo/shortcut.md +++ b/packages/abc/date-picker/demo/shortcut.md @@ -27,7 +27,6 @@ import { NzDatePickerModule } from 'ng-zorro-antd/date-picker'; result: {{ i | json }}
`, - standalone: true, imports: [JsonPipe, FormsModule, NzDatePickerModule, RangePickerDirective] }) export class DemoComponent { diff --git a/packages/abc/down-file/demo/simple.md b/packages/abc/down-file/demo/simple.md index 933895eb36..bf0520bf9d 100644 --- a/packages/abc/down-file/demo/simple.md +++ b/packages/abc/down-file/demo/simple.md @@ -28,7 +28,6 @@ import { NzButtonModule } from 'ng-zorro-antd/button'; } `, - standalone: true, imports: [DownFileDirective, NzButtonModule] }) export class DemoComponent { diff --git a/packages/abc/ellipsis/demo/line.md b/packages/abc/ellipsis/demo/line.md index 859d3d31c6..03cfa037bc 100644 --- a/packages/abc/ellipsis/demo/line.md +++ b/packages/abc/ellipsis/demo/line.md @@ -33,7 +33,6 @@ import { EllipsisComponent } from '@delon/abc/ellipsis';

`, - standalone: true, imports: [EllipsisComponent] }) export class DemoComponent {} diff --git a/packages/abc/ellipsis/demo/number.md b/packages/abc/ellipsis/demo/number.md index a09caa7563..812bac378e 100644 --- a/packages/abc/ellipsis/demo/number.md +++ b/packages/abc/ellipsis/demo/number.md @@ -25,7 +25,6 @@ import { EllipsisComponent } from '@delon/abc/ellipsis';

Show Tooltip

{{ article }} `, - standalone: true, imports: [EllipsisComponent] }) export class DemoComponent { diff --git a/packages/abc/error-collect/demo/basic.md b/packages/abc/error-collect/demo/basic.md index 3450165bbe..bbec778024 100644 --- a/packages/abc/error-collect/demo/basic.md +++ b/packages/abc/error-collect/demo/basic.md @@ -25,7 +25,6 @@ import { NzInputModule } from 'ng-zorro-antd/input'; `, - standalone: true, imports: [NzFormModule, ReactiveFormsModule, NzInputModule, ErrorCollectComponent] }) export class DemoComponent implements OnInit { diff --git a/packages/abc/exception/demo/403.md b/packages/abc/exception/demo/403.md index 8091223089..734db967bc 100644 --- a/packages/abc/exception/demo/403.md +++ b/packages/abc/exception/demo/403.md @@ -13,7 +13,6 @@ import { ExceptionComponent } from '@delon/abc/exception'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [ExceptionComponent] }) export class DemoComponent {} diff --git a/packages/abc/exception/demo/404.md b/packages/abc/exception/demo/404.md index e777aaa4ea..ad6fe78baf 100644 --- a/packages/abc/exception/demo/404.md +++ b/packages/abc/exception/demo/404.md @@ -13,7 +13,6 @@ import { ExceptionComponent } from '@delon/abc/exception'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [ExceptionComponent] }) export class DemoComponent {} diff --git a/packages/abc/exception/demo/500.md b/packages/abc/exception/demo/500.md index ec3744e051..c5ca3147bb 100644 --- a/packages/abc/exception/demo/500.md +++ b/packages/abc/exception/demo/500.md @@ -13,7 +13,6 @@ import { ExceptionComponent } from '@delon/abc/exception'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [ExceptionComponent] }) export class DemoComponent {} diff --git a/packages/abc/footer-toolbar/demo/basic.md b/packages/abc/footer-toolbar/demo/basic.md index 490a892323..75102a99b3 100644 --- a/packages/abc/footer-toolbar/demo/basic.md +++ b/packages/abc/footer-toolbar/demo/basic.md @@ -28,7 +28,6 @@ import { NzInputModule } from 'ng-zorro-antd/input'; `, - standalone: true, imports: [NzFormModule, ReactiveFormsModule, NzInputModule, FooterToolbarComponent, NzButtonModule] }) export class DemoComponent implements OnInit { diff --git a/packages/abc/global-footer/demo/basic.md b/packages/abc/global-footer/demo/basic.md index 614c887864..dd230fb492 100644 --- a/packages/abc/global-footer/demo/basic.md +++ b/packages/abc/global-footer/demo/basic.md @@ -29,7 +29,6 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; } ` ], - standalone: true, imports: [GlobalFooterComponent, NzIconModule] }) export class DemoComponent { diff --git a/packages/abc/global-footer/demo/custom.md b/packages/abc/global-footer/demo/custom.md index f563b2ae6c..24a67ebaba 100644 --- a/packages/abc/global-footer/demo/custom.md +++ b/packages/abc/global-footer/demo/custom.md @@ -34,7 +34,6 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; } ` ], - standalone: true, imports: [GlobalFooterModule, NzIconModule] }) export class DemoComponent {} diff --git a/packages/abc/highlight/demo/simple.md b/packages/abc/highlight/demo/simple.md index f65ce11696..5260221ac9 100644 --- a/packages/abc/highlight/demo/simple.md +++ b/packages/abc/highlight/demo/simple.md @@ -38,7 +38,6 @@ import { NzInputModule } from 'ng-zorro-antd/input'; } ` ], - standalone: true, imports: [NzHighlightModule, NzInputModule, FormsModule] }) export class DemoComponent { diff --git a/packages/abc/hotkey/demo/basic.md b/packages/abc/hotkey/demo/basic.md index c1a381a12b..2da897455f 100644 --- a/packages/abc/hotkey/demo/basic.md +++ b/packages/abc/hotkey/demo/basic.md @@ -62,7 +62,6 @@ text area 1, press q to focus this textarea and select all textSpin `, - standalone: true, imports: [NzButtonModule] }) export class DemoComponent { diff --git a/packages/abc/loading/demo/custom.md b/packages/abc/loading/demo/custom.md index 8fa0b2bf21..52a720c233 100644 --- a/packages/abc/loading/demo/custom.md +++ b/packages/abc/loading/demo/custom.md @@ -25,7 +25,6 @@ import { NzButtonModule } from 'ng-zorro-antd/button'; template: ` @for (i of customs; track $index) { }`, - standalone: true, imports: [NzButtonModule] }) export class DemoComponent { diff --git a/packages/abc/loading/demo/delay.md b/packages/abc/loading/demo/delay.md index 7c2e018da4..f4416c618d 100644 --- a/packages/abc/loading/demo/delay.md +++ b/packages/abc/loading/demo/delay.md @@ -25,7 +25,6 @@ import { NzButtonModule } from 'ng-zorro-antd/button'; `, - standalone: true, imports: [NzButtonModule] }) export class DemoComponent { diff --git a/packages/abc/lodop/demo/design.md b/packages/abc/lodop/demo/design.md index 60cc191e6b..8883514c15 100644 --- a/packages/abc/lodop/demo/design.md +++ b/packages/abc/lodop/demo/design.md @@ -66,7 +66,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; } `, - standalone: true, imports: [NzFormModule, NzAlertModule, NzGridModule, FormsModule, NzInputModule, NzButtonModule] }) export class DemoComponent { diff --git a/packages/abc/lodop/demo/print.md b/packages/abc/lodop/demo/print.md index fd1d95a18c..56c1246ecf 100644 --- a/packages/abc/lodop/demo/print.md +++ b/packages/abc/lodop/demo/print.md @@ -109,7 +109,6 @@ import { NzSelectModule } from 'ng-zorro-antd/select'; } `, - standalone: true, imports: [NzFormModule, NzAlertModule, NzGridModule, FormsModule, NzInputModule, NzButtonModule, NzSelectModule] }) export class DemoComponent { diff --git a/packages/abc/media/demo/custom.md b/packages/abc/media/demo/custom.md index e5a895139d..852275e764 100644 --- a/packages/abc/media/demo/custom.md +++ b/packages/abc/media/demo/custom.md @@ -30,7 +30,6 @@ import { NzButtonModule } from 'ng-zorro-antd/button';
`, - standalone: true, imports: [NzButtonModule, MediaComponent] }) export class DemoComponent { diff --git a/packages/abc/media/demo/mp3.md b/packages/abc/media/demo/mp3.md index b77179a4d3..21d5be4c6f 100644 --- a/packages/abc/media/demo/mp3.md +++ b/packages/abc/media/demo/mp3.md @@ -29,7 +29,6 @@ import { NzButtonModule } from 'ng-zorro-antd/button';
`, - standalone: true, imports: [NzButtonModule, MediaComponent] }) export class DemoComponent { diff --git a/packages/abc/media/demo/mp4.md b/packages/abc/media/demo/mp4.md index 6b629d623c..865e167204 100644 --- a/packages/abc/media/demo/mp4.md +++ b/packages/abc/media/demo/mp4.md @@ -29,7 +29,6 @@ import { NzButtonModule } from 'ng-zorro-antd/button';
`, - standalone: true, imports: [NzButtonModule, MediaComponent] }) export class DemoComponent { diff --git a/packages/abc/notice-icon/demo/basic.md b/packages/abc/notice-icon/demo/basic.md index f7f6f9d087..1f8bd1ca53 100644 --- a/packages/abc/notice-icon/demo/basic.md +++ b/packages/abc/notice-icon/demo/basic.md @@ -13,7 +13,6 @@ import { NoticeIconComponent } from '@delon/abc/notice-icon'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [NoticeIconComponent] }) export class DemoComponent {} diff --git a/packages/abc/notice-icon/demo/popover.md b/packages/abc/notice-icon/demo/popover.md index dd2f53e84b..ee2a98bdfc 100644 --- a/packages/abc/notice-icon/demo/popover.md +++ b/packages/abc/notice-icon/demo/popover.md @@ -35,7 +35,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; `, - standalone: true, imports: [NoticeIconComponent] }) export class DemoComponent { diff --git a/packages/abc/observers/demo/basic.md b/packages/abc/observers/demo/basic.md index bd1d871c07..75d135a555 100644 --- a/packages/abc/observers/demo/basic.md +++ b/packages/abc/observers/demo/basic.md @@ -31,7 +31,6 @@ import { NzButtonModule } from 'ng-zorro-antd/button'; `, - standalone: true, imports: [NzButtonModule, ChartEChartsModule, ObserverSize] }) export class DemoComponent { diff --git a/packages/abc/onboarding/demo/basic.md b/packages/abc/onboarding/demo/basic.md index 0ea15c4f24..abde207437 100644 --- a/packages/abc/onboarding/demo/basic.md +++ b/packages/abc/onboarding/demo/basic.md @@ -40,7 +40,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; onboarding.json `, - standalone: true, imports: [NzButtonModule] }) export class DemoComponent { diff --git a/packages/abc/onboarding/demo/multiple-pages.md b/packages/abc/onboarding/demo/multiple-pages.md index 8ff5fdab8f..cb437e7388 100644 --- a/packages/abc/onboarding/demo/multiple-pages.md +++ b/packages/abc/onboarding/demo/multiple-pages.md @@ -29,7 +29,6 @@ import { NzButtonModule } from 'ng-zorro-antd/button'; `, - standalone: true, imports: [NzButtonModule] }) export class DemoComponent { diff --git a/packages/abc/page-header/demo/image.md b/packages/abc/page-header/demo/image.md index 2474e89995..64f3475568 100644 --- a/packages/abc/page-header/demo/image.md +++ b/packages/abc/page-header/demo/image.md @@ -49,7 +49,6 @@ import { NzBreadCrumbModule } from 'ng-zorro-antd/breadcrumb'; `, - standalone: true, imports: [PageHeaderComponent, NzBreadCrumbModule] }) export class DemoComponent {} diff --git a/packages/abc/page-header/demo/simple.md b/packages/abc/page-header/demo/simple.md index 9a2915f5e1..e9c92696df 100644 --- a/packages/abc/page-header/demo/simple.md +++ b/packages/abc/page-header/demo/simple.md @@ -25,7 +25,6 @@ import { NzBreadCrumbModule } from 'ng-zorro-antd/breadcrumb'; `, - standalone: true, imports: [PageHeaderComponent, NzBreadCrumbModule] }) export class DemoComponent {} diff --git a/packages/abc/page-header/demo/standard.md b/packages/abc/page-header/demo/standard.md index 012862eb5d..035e53dd0b 100644 --- a/packages/abc/page-header/demo/standard.md +++ b/packages/abc/page-header/demo/standard.md @@ -88,7 +88,6 @@ import { NzTabsModule } from 'ng-zorro-antd/tabs'; `, - standalone: true, imports: [ PageHeaderComponent, NzBreadCrumbModule, diff --git a/packages/abc/page-header/demo/structure.md b/packages/abc/page-header/demo/structure.md index 617ebd7524..df3c12c045 100644 --- a/packages/abc/page-header/demo/structure.md +++ b/packages/abc/page-header/demo/structure.md @@ -61,7 +61,6 @@ import { NzTabsModule } from 'ng-zorro-antd/tabs'; ` ], encapsulation: ViewEncapsulation.Emulated, - standalone: true, imports: [PageHeaderComponent, NzTabsModule] }) export class DemoComponent {} diff --git a/packages/abc/pdf/demo/basic.md b/packages/abc/pdf/demo/basic.md index 3174c4a4e7..4120434dfc 100644 --- a/packages/abc/pdf/demo/basic.md +++ b/packages/abc/pdf/demo/basic.md @@ -25,7 +25,6 @@ import { NzButtonModule } from 'ng-zorro-antd/button'; `, - standalone: true, imports: [NzButtonModule, PdfComponent] }) export class DemoComponent { diff --git a/packages/abc/pdf/demo/design.md b/packages/abc/pdf/demo/design.md index c30f0b3dac..f2f451795a 100644 --- a/packages/abc/pdf/demo/design.md +++ b/packages/abc/pdf/demo/design.md @@ -148,7 +148,6 @@ import { NzUploadFile, NzUploadModule } from 'ng-zorro-antd/upload'; `, - standalone: true, imports: [ NzButtonModule, PdfComponent, diff --git a/packages/abc/quick-menu/demo/simple.md b/packages/abc/quick-menu/demo/simple.md index 82d62a0bf9..c7e9d95334 100644 --- a/packages/abc/quick-menu/demo/simple.md +++ b/packages/abc/quick-menu/demo/simple.md @@ -34,7 +34,6 @@ import { NzListModule } from 'ng-zorro-antd/list'; `, - standalone: true, imports: [NzButtonModule, QuickMenuComponent, NzListModule] }) export class DemoComponent { diff --git a/packages/abc/result/demo/classic.md b/packages/abc/result/demo/classic.md index 1a133aef5c..0e4b15b0e7 100644 --- a/packages/abc/result/demo/classic.md +++ b/packages/abc/result/demo/classic.md @@ -71,7 +71,6 @@ import { NzStepsModule } from 'ng-zorro-antd/steps'; `, - standalone: true, imports: [ResultModule, NzGridModule, NzStepsModule, NzIconModule, NzButtonModule] }) export class DemoComponent { diff --git a/packages/abc/result/demo/fail.md b/packages/abc/result/demo/fail.md index 6f2cf9a7da..33e209220a 100644 --- a/packages/abc/result/demo/fail.md +++ b/packages/abc/result/demo/fail.md @@ -30,7 +30,6 @@ import { NzIconModule } from 'ng-zorro-antd/icon'; `, - standalone: true, imports: [ResultModule, NzIconModule, NzButtonModule] }) export class DemoComponent {} diff --git a/packages/abc/result/demo/structure.md b/packages/abc/result/demo/structure.md index 2f3c34df6c..f3c7ee3ea3 100644 --- a/packages/abc/result/demo/structure.md +++ b/packages/abc/result/demo/structure.md @@ -19,7 +19,6 @@ import { ResultModule } from '@delon/abc/result';
操作建议,一般放置按钮组
`, - standalone: true, imports: [ResultModule] }) export class DemoComponent {} diff --git a/packages/abc/se/demo/basic.md b/packages/abc/se/demo/basic.md index 05e01c2f53..0189a018e6 100644 --- a/packages/abc/se/demo/basic.md +++ b/packages/abc/se/demo/basic.md @@ -54,7 +54,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; `, - standalone: true, imports: [SEModule, NzFormModule, NzInputModule, FormsModule, NzButtonModule] }) export class DemoComponent { diff --git a/packages/abc/se/demo/compact.md b/packages/abc/se/demo/compact.md index 17171f6bde..aa0c95a2f3 100644 --- a/packages/abc/se/demo/compact.md +++ b/packages/abc/se/demo/compact.md @@ -35,7 +35,6 @@ import { NzInputModule } from 'ng-zorro-antd/input'; `, - standalone: true, imports: [SEModule, NzFormModule, NzInputModule, FormsModule, NzButtonModule] }) export class DemoComponent { diff --git a/packages/abc/se/demo/complex.md b/packages/abc/se/demo/complex.md index fd4c1d12cc..f46b12d48f 100644 --- a/packages/abc/se/demo/complex.md +++ b/packages/abc/se/demo/complex.md @@ -86,7 +86,6 @@ import { NzSelectModule } from 'ng-zorro-antd/select'; `, - standalone: true, imports: [ SEModule, NzFormModule, diff --git a/packages/abc/se/demo/horizontal.md b/packages/abc/se/demo/horizontal.md index f32790d700..0d011d16f6 100644 --- a/packages/abc/se/demo/horizontal.md +++ b/packages/abc/se/demo/horizontal.md @@ -35,7 +35,6 @@ import { NzInputModule } from 'ng-zorro-antd/input'; `, - standalone: true, imports: [SEModule, NzFormModule, NzInputModule, FormsModule, NzButtonModule] }) export class DemoComponent { diff --git a/packages/abc/se/demo/inline.md b/packages/abc/se/demo/inline.md index d265f4eb50..0fbbc6f74a 100644 --- a/packages/abc/se/demo/inline.md +++ b/packages/abc/se/demo/inline.md @@ -36,7 +36,6 @@ import { NzInputModule } from 'ng-zorro-antd/input'; `, - standalone: true, imports: [SEModule, NzFormModule, NzInputModule, FormsModule, NzButtonModule] }) export class DemoComponent { diff --git a/packages/abc/se/demo/line.md b/packages/abc/se/demo/line.md index 694a48a283..8567fdb1bc 100644 --- a/packages/abc/se/demo/line.md +++ b/packages/abc/se/demo/line.md @@ -35,7 +35,6 @@ import { NzInputModule } from 'ng-zorro-antd/input'; `, - standalone: true, imports: [SEModule, NzFormModule, NzInputModule, FormsModule, NzButtonModule] }) export class DemoComponent {} diff --git a/packages/abc/se/demo/reactive.md b/packages/abc/se/demo/reactive.md index 9ec96601eb..950b5b0ef4 100644 --- a/packages/abc/se/demo/reactive.md +++ b/packages/abc/se/demo/reactive.md @@ -49,7 +49,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; `, - standalone: true, imports: [SEModule, NzFormModule, NzInputModule, ReactiveFormsModule, NzButtonModule] }) export class DemoComponent { diff --git a/packages/abc/se/demo/reset-errors.md b/packages/abc/se/demo/reset-errors.md index 3a0f7e3b78..9bd08707cc 100644 --- a/packages/abc/se/demo/reset-errors.md +++ b/packages/abc/se/demo/reset-errors.md @@ -72,7 +72,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; `, - standalone: true, imports: [SEModule, NzFormModule, NzInputModule, ReactiveFormsModule, FormsModule, NzButtonModule] }) export class DemoComponent { diff --git a/packages/abc/se/demo/vertical.md b/packages/abc/se/demo/vertical.md index 3bae807a26..456ee0171e 100644 --- a/packages/abc/se/demo/vertical.md +++ b/packages/abc/se/demo/vertical.md @@ -35,7 +35,6 @@ import { NzInputModule } from 'ng-zorro-antd/input'; `, - standalone: true, imports: [SEModule, NzFormModule, NzInputModule, FormsModule, NzButtonModule] }) export class DemoComponent { diff --git a/packages/abc/sg/demo/basic.md b/packages/abc/sg/demo/basic.md index 2a02b185af..5d52692f25 100644 --- a/packages/abc/sg/demo/basic.md +++ b/packages/abc/sg/demo/basic.md @@ -46,7 +46,6 @@ import { SGModule } from '@delon/abc/sg'; } ` ], - standalone: true, imports: [SGModule] }) export class DemoComponent { diff --git a/packages/abc/st/demo/basic.md b/packages/abc/st/demo/basic.md index cde4beee61..4b400a64ac 100644 --- a/packages/abc/st/demo/basic.md +++ b/packages/abc/st/demo/basic.md @@ -42,7 +42,6 @@ interface User { `, - standalone: true, imports: [STModule, NzButtonModule] }) export class DemoComponent { diff --git a/packages/abc/st/demo/buttons.md b/packages/abc/st/demo/buttons.md index 1e6c0a8d79..4dff49bc1e 100644 --- a/packages/abc/st/demo/buttons.md +++ b/packages/abc/st/demo/buttons.md @@ -30,7 +30,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [STModule] }) export class DemoComponent { diff --git a/packages/abc/st/demo/cell.md b/packages/abc/st/demo/cell.md index b46e7e8a3f..a13a1ad279 100644 --- a/packages/abc/st/demo/cell.md +++ b/packages/abc/st/demo/cell.md @@ -26,7 +26,6 @@ import { NzButtonModule } from 'ng-zorro-antd/button'; `, - standalone: true, imports: [STModule, NzButtonModule] }) export class DemoComponent { diff --git a/packages/abc/st/demo/checkbox.md b/packages/abc/st/demo/checkbox.md index f423672009..7818c3ee45 100644 --- a/packages/abc/st/demo/checkbox.md +++ b/packages/abc/st/demo/checkbox.md @@ -33,7 +33,6 @@ import { NzButtonModule } from 'ng-zorro-antd/button'; [res]="{ process: dataProcess }" (change)="change($event)" />`, - standalone: true, imports: [STModule, NzButtonModule] }) export class DemoComponent { diff --git a/packages/abc/st/demo/colspan-rowspan.md b/packages/abc/st/demo/colspan-rowspan.md index 0a65432463..f40627cee3 100644 --- a/packages/abc/st/demo/colspan-rowspan.md +++ b/packages/abc/st/demo/colspan-rowspan.md @@ -31,7 +31,6 @@ const sharedOnCell = (_: STData, index: number): STOnCellResult => { @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [STModule] }) export class DemoComponent { diff --git a/packages/abc/st/demo/contextmenu.md b/packages/abc/st/demo/contextmenu.md index 79f30cd0d6..4efaf90f3e 100644 --- a/packages/abc/st/demo/contextmenu.md +++ b/packages/abc/st/demo/contextmenu.md @@ -31,7 +31,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; [contextmenu]="handleContextmenu" /> `, - standalone: true, imports: [STModule] }) export class DemoComponent { diff --git a/packages/abc/st/demo/custom-data.md b/packages/abc/st/demo/custom-data.md index c6ade8fe87..8f7e0abf15 100644 --- a/packages/abc/st/demo/custom-data.md +++ b/packages/abc/st/demo/custom-data.md @@ -40,7 +40,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; `, - standalone: true, imports: [STModule, NzButtonModule] }) export class DemoComponent implements OnInit { diff --git a/packages/abc/st/demo/edit-row.md b/packages/abc/st/demo/edit-row.md index b49239d10a..2bc1a66088 100644 --- a/packages/abc/st/demo/edit-row.md +++ b/packages/abc/st/demo/edit-row.md @@ -50,7 +50,6 @@ import { NzSwitchModule } from 'ng-zorro-antd/switch'; `, - standalone: true, imports: [STModule, NzInputModule, FormsModule, NzInputNumberModule, NzSwitchModule] }) export class DemoComponent { diff --git a/packages/abc/st/demo/expand.md b/packages/abc/st/demo/expand.md index 96bdc5422a..9ebb65f70f 100644 --- a/packages/abc/st/demo/expand.md +++ b/packages/abc/st/demo/expand.md @@ -40,7 +40,6 @@ import { NzIconDirective } from 'ng-zorro-antd/icon'; `, - standalone: true, imports: [STModule, NzIconDirective, NzButtonComponent] }) export class DemoComponent { diff --git a/packages/abc/st/demo/export.md b/packages/abc/st/demo/export.md index 14f9164bc7..f8a8eca7e6 100644 --- a/packages/abc/st/demo/export.md +++ b/packages/abc/st/demo/export.md @@ -29,7 +29,6 @@ import { NzButtonModule } from 'ng-zorro-antd/button'; > `, - standalone: true, imports: [STModule, NzButtonModule] }) export class DemoComponent { diff --git a/packages/abc/st/demo/fixed.md b/packages/abc/st/demo/fixed.md index 3744ace6b6..473e4dd2dd 100644 --- a/packages/abc/st/demo/fixed.md +++ b/packages/abc/st/demo/fixed.md @@ -29,7 +29,6 @@ import { STColumn, STData, STModule } from '@delon/abc/st'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [STModule] }) export class DemoComponent { diff --git a/packages/abc/st/demo/form.md b/packages/abc/st/demo/form.md index 24c0d29621..295fda9f8a 100644 --- a/packages/abc/st/demo/form.md +++ b/packages/abc/st/demo/form.md @@ -38,7 +38,6 @@ import { NzInputModule } from 'ng-zorro-antd/input'; `, - standalone: true, imports: [STModule, NzInputModule, FormsModule, NzButtonModule] }) export class DemoComponent { diff --git a/packages/abc/st/demo/grouping-columns.md b/packages/abc/st/demo/grouping-columns.md index 9dda868d29..af01ef99d5 100644 --- a/packages/abc/st/demo/grouping-columns.md +++ b/packages/abc/st/demo/grouping-columns.md @@ -21,7 +21,6 @@ import { STColumn, STModule } from '@delon/abc/st'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [STModule] }) export class DemoComponent { diff --git a/packages/abc/st/demo/radio.md b/packages/abc/st/demo/radio.md index 3d6aa45db5..15876f94ab 100644 --- a/packages/abc/st/demo/radio.md +++ b/packages/abc/st/demo/radio.md @@ -33,7 +33,6 @@ import { NzButtonModule } from 'ng-zorro-antd/button'; [res]="{ process: dataChange }" (change)="change($event)" />`, - standalone: true, imports: [STModule, NzButtonModule] }) export class DemoComponent { diff --git a/packages/abc/st/demo/render.md b/packages/abc/st/demo/render.md index 587c79d5bd..ae031cf6a0 100644 --- a/packages/abc/st/demo/render.md +++ b/packages/abc/st/demo/render.md @@ -64,7 +64,6 @@ import { NzToolTipModule } from 'ng-zorro-antd/tooltip'; `, - standalone: true, imports: [ STModule, NzButtonModule, diff --git a/packages/abc/st/demo/resizable.md b/packages/abc/st/demo/resizable.md index 7ae8f2b1d8..0c7355dd41 100644 --- a/packages/abc/st/demo/resizable.md +++ b/packages/abc/st/demo/resizable.md @@ -31,7 +31,6 @@ import { STChange, STColumn, STModule } from '@delon/abc/st'; template: ` `, - standalone: true, imports: [STModule] }) export class DemoComponent { diff --git a/packages/abc/st/demo/responsive.md b/packages/abc/st/demo/responsive.md index 6418bcd3ff..1cd9a99846 100644 --- a/packages/abc/st/demo/responsive.md +++ b/packages/abc/st/demo/responsive.md @@ -28,7 +28,6 @@ import { STColumn, STModule } from '@delon/abc/st'; footer="The footer" responsiveHideHeaderFooter />`, - standalone: true, imports: [STModule] }) export class DemoComponent { diff --git a/packages/abc/st/demo/row-op.md b/packages/abc/st/demo/row-op.md index 6e816e61eb..f70133f0d2 100644 --- a/packages/abc/st/demo/row-op.md +++ b/packages/abc/st/demo/row-op.md @@ -36,7 +36,6 @@ import { NzButtonModule } from 'ng-zorro-antd/button'; (change)="_click($event)" [clickRowClassName]="clickRowClassName" />`, - standalone: true, imports: [STModule, NzButtonModule] }) export class DemoComponent { diff --git a/packages/abc/st/demo/sort.md b/packages/abc/st/demo/sort.md index 3d8e2c7349..4216779947 100644 --- a/packages/abc/st/demo/sort.md +++ b/packages/abc/st/demo/sort.md @@ -32,7 +32,6 @@ interface UserData extends STData { `, - standalone: true, imports: [STModule, NzButtonModule] }) export class DemoComponent { diff --git a/packages/abc/st/demo/statistical.md b/packages/abc/st/demo/statistical.md index e6901975c7..c705dcaa07 100644 --- a/packages/abc/st/demo/statistical.md +++ b/packages/abc/st/demo/statistical.md @@ -46,7 +46,6 @@ import { NzButtonModule } from 'ng-zorro-antd/button'; `, - standalone: true, imports: [STModule, NzButtonModule, CurrencyPricePipe] }) export class DemoComponent { diff --git a/packages/abc/st/demo/type.md b/packages/abc/st/demo/type.md index 8ab63f6eaa..649c1e1c21 100644 --- a/packages/abc/st/demo/type.md +++ b/packages/abc/st/demo/type.md @@ -41,7 +41,6 @@ const r = (min: number, max: number): number => Math.floor(Math.random() * (max `, - standalone: true, imports: [STModule, NzButtonModule] }) export class DemoComponent { diff --git a/packages/abc/st/demo/virtual.md b/packages/abc/st/demo/virtual.md index d5a7b19e27..7a314344ce 100644 --- a/packages/abc/st/demo/virtual.md +++ b/packages/abc/st/demo/virtual.md @@ -26,7 +26,6 @@ import { NzButtonModule } from 'ng-zorro-antd/button'; `, - standalone: true, imports: [STModule, NzButtonModule] }) export class DemoComponent implements AfterViewInit { diff --git a/packages/abc/st/demo/widget.md b/packages/abc/st/demo/widget.md index 4b9fe375b2..044c7b881b 100644 --- a/packages/abc/st/demo/widget.md +++ b/packages/abc/st/demo/widget.md @@ -30,7 +30,6 @@ import { NzButtonModule } from 'ng-zorro-antd/button'; `, - standalone: true, imports: [STModule, NzButtonModule] }) export class DemoComponent { diff --git a/packages/abc/sv/demo/basic.md b/packages/abc/sv/demo/basic.md index 6e46b30892..6e1f16d97b 100644 --- a/packages/abc/sv/demo/basic.md +++ b/packages/abc/sv/demo/basic.md @@ -55,7 +55,6 @@ import { NzDividerModule } from 'ng-zorro-antd/divider'; `, - standalone: true, imports: [SVModule, NzDividerModule] }) export class DemoComponent {} diff --git a/packages/abc/sv/demo/border.md b/packages/abc/sv/demo/border.md index 839199723a..f9cbaa9e43 100644 --- a/packages/abc/sv/demo/border.md +++ b/packages/abc/sv/demo/border.md @@ -50,7 +50,6 @@ import { NzToolTipModule } from 'ng-zorro-antd/tooltip'; `, - standalone: true, imports: [SVModule, NzButtonModule, NzRadioModule, NzToolTipModule, FormsModule] }) export class DemoComponent { diff --git a/packages/abc/sv/demo/fixed.md b/packages/abc/sv/demo/fixed.md index 9fc1a86e1a..6696e73488 100644 --- a/packages/abc/sv/demo/fixed.md +++ b/packages/abc/sv/demo/fixed.md @@ -43,7 +43,6 @@ import { NzToolTipModule } from 'ng-zorro-antd/tooltip'; `, - standalone: true, imports: [SVModule, NzToolTipModule, STModule] }) export class DemoComponent { diff --git a/packages/abc/sv/demo/type.md b/packages/abc/sv/demo/type.md index a940c75ee2..d8f002103e 100644 --- a/packages/abc/sv/demo/type.md +++ b/packages/abc/sv/demo/type.md @@ -28,7 +28,6 @@ import { SVModule } from '@delon/abc/sv'; hhhh `, - standalone: true, imports: [SVModule] }) export class DemoComponent {} diff --git a/packages/abc/sv/demo/vertical.md b/packages/abc/sv/demo/vertical.md index 569cac51a4..782f4563b2 100644 --- a/packages/abc/sv/demo/vertical.md +++ b/packages/abc/sv/demo/vertical.md @@ -37,7 +37,6 @@ import { SVModule } from '@delon/abc/sv'; `, - standalone: true, imports: [SVModule] }) export class DemoComponent {} diff --git a/packages/abc/tag-select/demo/simple.md b/packages/abc/tag-select/demo/simple.md index 5316c67534..60c36f8ae6 100644 --- a/packages/abc/tag-select/demo/simple.md +++ b/packages/abc/tag-select/demo/simple.md @@ -28,7 +28,6 @@ interface TagSelectDemoItem { } `, - standalone: true, imports: [TagSelectComponent, NzTagModule] }) export class DemoComponent { diff --git a/packages/abc/xlsx/demo/export.md b/packages/abc/xlsx/demo/export.md index fc9240c121..eee5ad35ef 100644 --- a/packages/abc/xlsx/demo/export.md +++ b/packages/abc/xlsx/demo/export.md @@ -27,7 +27,6 @@ import { NzButtonModule } from 'ng-zorro-antd/button'; `, - standalone: true, imports: [NzButtonModule, STModule] }) export class DemoComponent { diff --git a/packages/abc/xlsx/demo/import.md b/packages/abc/xlsx/demo/import.md index a70b74d750..3d5ca7c291 100644 --- a/packages/abc/xlsx/demo/import.md +++ b/packages/abc/xlsx/demo/import.md @@ -29,7 +29,6 @@ import type { NzSafeAny } from 'ng-zorro-antd/core/types';

result: {{ data | json }}

`, changeDetection: ChangeDetectionStrategy.OnPush, - standalone: true, imports: [NzButtonModule, JsonPipe] }) export class DemoComponent { diff --git a/packages/abc/zip/demo/read.md b/packages/abc/zip/demo/read.md index 657b1fd707..29e340737c 100644 --- a/packages/abc/zip/demo/read.md +++ b/packages/abc/zip/demo/read.md @@ -32,7 +32,6 @@ import { NzButtonModule } from 'ng-zorro-antd/button'; `, changeDetection: ChangeDetectionStrategy.OnPush, - standalone: true, imports: [NzButtonModule, JsonPipe] }) export class DemoComponent { diff --git a/packages/abc/zip/demo/save.md b/packages/abc/zip/demo/save.md index b2dcec8005..7f580cd7e0 100644 --- a/packages/abc/zip/demo/save.md +++ b/packages/abc/zip/demo/save.md @@ -47,7 +47,6 @@ import { NzTableModule } from 'ng-zorro-antd/table'; } `, - standalone: true, imports: [NzButtonModule, NzTableModule, FormsModule, NzInputModule] }) export class DemoComponent { diff --git a/packages/cache/docs/demo/simple.md b/packages/cache/docs/demo/simple.md index f65ad16561..bfda05cb34 100644 --- a/packages/cache/docs/demo/simple.md +++ b/packages/cache/docs/demo/simple.md @@ -43,7 +43,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; `, - standalone: true, imports: [JsonPipe, NzButtonModule] }) export class DemoComponent implements OnDestroy { diff --git a/packages/chart/bar/demo/basic.md b/packages/chart/bar/demo/basic.md index 2bb5e41164..dd0cca4dbd 100644 --- a/packages/chart/bar/demo/basic.md +++ b/packages/chart/bar/demo/basic.md @@ -20,7 +20,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; `, - standalone: true, imports: [NzButtonModule, G2BarModule] }) export class DemoComponent { diff --git a/packages/chart/card/demo/style1.md b/packages/chart/card/demo/style1.md index 8f532ee4e3..881bc55961 100644 --- a/packages/chart/card/demo/style1.md +++ b/packages/chart/card/demo/style1.md @@ -34,7 +34,6 @@ import { NzToolTipModule } from 'ng-zorro-antd/tooltip'; 11% `, - standalone: true, imports: [G2CardModule, NzToolTipModule, TrendModule] }) export class DemoComponent {} diff --git a/packages/chart/card/demo/style2.md b/packages/chart/card/demo/style2.md index 512d2def2f..aeb52751c2 100644 --- a/packages/chart/card/demo/style2.md +++ b/packages/chart/card/demo/style2.md @@ -31,7 +31,6 @@ import { NzToolTipModule } from 'ng-zorro-antd/tooltip'; `, - standalone: true, imports: [G2CardModule, NzToolTipModule, NzIconModule] }) export class DemoComponent {} diff --git a/packages/chart/card/demo/style3.md b/packages/chart/card/demo/style3.md index 1fbc0a7a88..6aa640ab88 100644 --- a/packages/chart/card/demo/style3.md +++ b/packages/chart/card/demo/style3.md @@ -24,7 +24,6 @@ import { NzToolTipModule } from 'ng-zorro-antd/tooltip'; `, - standalone: true, imports: [G2CardModule, NzToolTipModule, NzIconModule] }) export class DemoComponent {} diff --git a/packages/chart/chart-echarts/demo/basic.md b/packages/chart/chart-echarts/demo/basic.md index 1c2ae76cef..ccbeb33d6f 100644 --- a/packages/chart/chart-echarts/demo/basic.md +++ b/packages/chart/chart-echarts/demo/basic.md @@ -30,7 +30,6 @@ import { NzSwitchModule } from 'ng-zorro-antd/switch'; `, - standalone: true, imports: [FormsModule, NzSwitchModule, NzButtonModule, ChartEChartsModule] }) export class DemoComponent { diff --git a/packages/chart/chart-echarts/demo/on.md b/packages/chart/chart-echarts/demo/on.md index 6bf0e830be..6414ad2f5a 100644 --- a/packages/chart/chart-echarts/demo/on.md +++ b/packages/chart/chart-echarts/demo/on.md @@ -22,7 +22,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [ChartEChartsModule] }) export class DemoComponent { diff --git a/packages/chart/custom/demo/basic.md b/packages/chart/custom/demo/basic.md index 7e9aa18a02..3787e44bf0 100644 --- a/packages/chart/custom/demo/basic.md +++ b/packages/chart/custom/demo/basic.md @@ -24,7 +24,6 @@ import type { NzSafeAny } from 'ng-zorro-antd/core/types'; @Component({ selector: 'chart-custom-basic', template: ` `, - standalone: true, imports: [G2CustomModule] }) export class DemoComponent { diff --git a/packages/chart/docs/demo/resizable.md b/packages/chart/docs/demo/resizable.md index a5dffbd4a4..64b8066568 100644 --- a/packages/chart/docs/demo/resizable.md +++ b/packages/chart/docs/demo/resizable.md @@ -34,7 +34,6 @@ import { NzResizableModule, NzResizeEvent } from 'ng-zorro-antd/resizable'; `, - standalone: true, imports: [NzResizableModule, G2BarModule] }) export class DemoComponent { diff --git a/packages/chart/gauge/demo/basic.md b/packages/chart/gauge/demo/basic.md index c573d9fa09..180581fc69 100644 --- a/packages/chart/gauge/demo/basic.md +++ b/packages/chart/gauge/demo/basic.md @@ -18,7 +18,6 @@ import type { NzSafeAny } from 'ng-zorro-antd/core/types'; selector: 'app-demo', template: ` `, changeDetection: ChangeDetectionStrategy.OnPush, - standalone: true, imports: [G2GaugeModule] }) export class DemoComponent implements OnDestroy { diff --git a/packages/chart/mini-area/demo/basic.md b/packages/chart/mini-area/demo/basic.md index cd7cf84f94..bc92539543 100644 --- a/packages/chart/mini-area/demo/basic.md +++ b/packages/chart/mini-area/demo/basic.md @@ -22,7 +22,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; `, - standalone: true, imports: [NzButtonModule, G2MiniAreaModule] }) export class DemoComponent { diff --git a/packages/chart/mini-area/demo/mini.md b/packages/chart/mini-area/demo/mini.md index 30a341176a..349eeddb0b 100644 --- a/packages/chart/mini-area/demo/mini.md +++ b/packages/chart/mini-area/demo/mini.md @@ -15,7 +15,6 @@ import { G2MiniAreaData, G2MiniAreaModule } from '@delon/chart/mini-area'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [G2MiniAreaModule] }) export class DemoComponent implements OnInit { diff --git a/packages/chart/mini-area/demo/tooltip.md b/packages/chart/mini-area/demo/tooltip.md index 3e08108a71..aea90b3691 100644 --- a/packages/chart/mini-area/demo/tooltip.md +++ b/packages/chart/mini-area/demo/tooltip.md @@ -15,7 +15,6 @@ import { G2MiniAreaData, G2MiniAreaModule } from '@delon/chart/mini-area'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [G2MiniAreaModule] }) export class DemoComponent implements OnInit { diff --git a/packages/chart/mini-bar/demo/basic.md b/packages/chart/mini-bar/demo/basic.md index 09fba73ea8..93ad8baadc 100644 --- a/packages/chart/mini-bar/demo/basic.md +++ b/packages/chart/mini-bar/demo/basic.md @@ -23,7 +23,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; `, - standalone: true, imports: [NzButtonModule, G2MiniBarModule] }) export class DemoComponent { diff --git a/packages/chart/mini-bar/demo/mini.md b/packages/chart/mini-bar/demo/mini.md index 1c9f9dc23e..60ab596e75 100644 --- a/packages/chart/mini-bar/demo/mini.md +++ b/packages/chart/mini-bar/demo/mini.md @@ -15,7 +15,6 @@ import { G2MiniBarData, G2MiniBarModule } from '@delon/chart/mini-bar'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [G2MiniBarModule] }) export class DemoComponent implements OnInit { diff --git a/packages/chart/mini-bar/demo/tooltip.md b/packages/chart/mini-bar/demo/tooltip.md index 50496be3c0..f7071cfe16 100644 --- a/packages/chart/mini-bar/demo/tooltip.md +++ b/packages/chart/mini-bar/demo/tooltip.md @@ -15,7 +15,6 @@ import { G2MiniBarData, G2MiniBarModule } from '@delon/chart/mini-bar'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [G2MiniBarModule] }) export class DemoComponent implements OnInit { diff --git a/packages/chart/mini-progress/demo/basic.md b/packages/chart/mini-progress/demo/basic.md index a0ba6305f9..d72355cbbb 100644 --- a/packages/chart/mini-progress/demo/basic.md +++ b/packages/chart/mini-progress/demo/basic.md @@ -15,7 +15,6 @@ import { G2MiniProgressModule } from '@delon/chart/mini-progress'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [G2MiniProgressModule] }) export class DemoComponent {} diff --git a/packages/chart/number-info/demo/basic.md b/packages/chart/number-info/demo/basic.md index e3c2312e4d..a92a279b0f 100644 --- a/packages/chart/number-info/demo/basic.md +++ b/packages/chart/number-info/demo/basic.md @@ -15,7 +15,6 @@ import { NumberInfoModule } from '@delon/chart/number-info'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [NumberInfoModule] }) export class DemoComponent {} diff --git a/packages/chart/number-info/demo/multiple.md b/packages/chart/number-info/demo/multiple.md index 4089e41774..4c28514964 100644 --- a/packages/chart/number-info/demo/multiple.md +++ b/packages/chart/number-info/demo/multiple.md @@ -25,7 +25,6 @@ import { NumberInfoModule } from '@delon/chart/number-info'; `, - standalone: true, imports: [NumberInfoModule] }) export class DemoComponent {} diff --git a/packages/chart/number-info/demo/theme.md b/packages/chart/number-info/demo/theme.md index 4efcf5f575..d60ae83a3e 100644 --- a/packages/chart/number-info/demo/theme.md +++ b/packages/chart/number-info/demo/theme.md @@ -13,7 +13,6 @@ import { NumberInfoModule } from '@delon/chart/number-info'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [NumberInfoModule] }) export class DemoComponent {} diff --git a/packages/chart/pie/demo/basic.md b/packages/chart/pie/demo/basic.md index 4aa70c2bc7..97ba919755 100644 --- a/packages/chart/pie/demo/basic.md +++ b/packages/chart/pie/demo/basic.md @@ -31,7 +31,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; (clickItem)="handleClick($event)" /> `, - standalone: true, imports: [NzButtonModule, G2PieModule] }) export class DemoComponent { diff --git a/packages/chart/pie/demo/mini.md b/packages/chart/pie/demo/mini.md index a99967499b..f357517bba 100644 --- a/packages/chart/pie/demo/mini.md +++ b/packages/chart/pie/demo/mini.md @@ -19,7 +19,6 @@ import { G2PieModule } from '@delon/chart/pie'; `, - standalone: true, imports: [G2PieModule] }) export class DemoComponent {} diff --git a/packages/chart/radar/demo/basic.md b/packages/chart/radar/demo/basic.md index 37bd25e864..0fadcc6c66 100644 --- a/packages/chart/radar/demo/basic.md +++ b/packages/chart/radar/demo/basic.md @@ -21,7 +21,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; `, - standalone: true, imports: [NzButtonModule, G2RadarModule] }) export class DemoComponent { diff --git a/packages/chart/single-bar/demo/basic.md b/packages/chart/single-bar/demo/basic.md index 2f4ca8b3e3..765d86cdb7 100644 --- a/packages/chart/single-bar/demo/basic.md +++ b/packages/chart/single-bar/demo/basic.md @@ -49,7 +49,6 @@ import { NzTableModule } from 'ng-zorro-antd/table'; ` ], encapsulation: ViewEncapsulation.Emulated, - standalone: true, imports: [NzButtonModule, NzTableModule, G2SingleBarModule] }) export class DemoComponent { diff --git a/packages/chart/tag-cloud/demo/basic.md b/packages/chart/tag-cloud/demo/basic.md index bdcd620734..c8934fb5e5 100644 --- a/packages/chart/tag-cloud/demo/basic.md +++ b/packages/chart/tag-cloud/demo/basic.md @@ -20,7 +20,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; `, - standalone: true, imports: [NzButtonModule, G2TagCloudModule] }) export class DemoComponent { diff --git a/packages/chart/timeline/demo/basic.md b/packages/chart/timeline/demo/basic.md index 54f57a5161..b46900bf8d 100644 --- a/packages/chart/timeline/demo/basic.md +++ b/packages/chart/timeline/demo/basic.md @@ -21,7 +21,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; [height]="200" (clickItem)="handleClick($event)" />`, - standalone: true, imports: [G2TimelineModule] }) export class DemoComponent implements OnInit { diff --git a/packages/chart/timeline/demo/mask.md b/packages/chart/timeline/demo/mask.md index bbd7a47437..d599562eec 100644 --- a/packages/chart/timeline/demo/mask.md +++ b/packages/chart/timeline/demo/mask.md @@ -23,7 +23,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; maskSlider="MM月dd日" (clickItem)="handleClick($event)" />`, - standalone: true, imports: [G2TimelineModule] }) export class DemoComponent implements OnInit { diff --git a/packages/chart/timeline/demo/max-axis.md b/packages/chart/timeline/demo/max-axis.md index 9330d3e073..40a90806fc 100644 --- a/packages/chart/timeline/demo/max-axis.md +++ b/packages/chart/timeline/demo/max-axis.md @@ -22,7 +22,6 @@ import { NzButtonModule } from 'ng-zorro-antd/button'; } `, - standalone: true, imports: [G2TimelineModule, NzButtonModule] }) export class DemoComponent { diff --git a/packages/chart/trend/demo/basic.md b/packages/chart/trend/demo/basic.md index a95e549e4e..aa36283f04 100644 --- a/packages/chart/trend/demo/basic.md +++ b/packages/chart/trend/demo/basic.md @@ -16,7 +16,6 @@ import { TrendModule } from '@delon/chart/trend'; 12% 11% `, - standalone: true, imports: [TrendModule] }) export class DemoComponent {} diff --git a/packages/chart/trend/demo/reverse.md b/packages/chart/trend/demo/reverse.md index 2fd0e5341d..e003914874 100644 --- a/packages/chart/trend/demo/reverse.md +++ b/packages/chart/trend/demo/reverse.md @@ -16,7 +16,6 @@ import { TrendModule } from '@delon/chart/trend'; 12% 11% `, - standalone: true, imports: [TrendModule] }) export class DemoComponent {} diff --git a/packages/chart/water-wave/demo/basic.md b/packages/chart/water-wave/demo/basic.md index 17b150203e..b362f366c7 100644 --- a/packages/chart/water-wave/demo/basic.md +++ b/packages/chart/water-wave/demo/basic.md @@ -18,7 +18,6 @@ import { G2WaterWaveModule } from '@delon/chart/water-wave'; host: { '[class.d-block]': 'true' }, - standalone: true, imports: [G2WaterWaveModule] }) export class DemoComponent {} diff --git a/packages/form/docs/customize.en-US.md b/packages/form/docs/customize.en-US.md index c864a75238..daf5644b1d 100644 --- a/packages/form/docs/customize.en-US.md +++ b/packages/form/docs/customize.en-US.md @@ -45,7 +45,6 @@ export function withTestWidget(): SFWidgetProvideConfig { `, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, - standalone: true, imports: [DelonFormModule] }) class TestWidget extends ControlWidget implements OnInit { diff --git a/packages/form/docs/customize.zh-CN.md b/packages/form/docs/customize.zh-CN.md index e36c38586c..6254bea8e3 100644 --- a/packages/form/docs/customize.zh-CN.md +++ b/packages/form/docs/customize.zh-CN.md @@ -45,7 +45,6 @@ export function withTestWidget(): SFWidgetProvideConfig { `, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, - standalone: true, imports: [DelonFormModule] }) class TestWidget extends ControlWidget implements OnInit { diff --git a/packages/form/examples/acl/demo/simple.md b/packages/form/examples/acl/demo/simple.md index 503a044b53..9d7344054e 100644 --- a/packages/form/examples/acl/demo/simple.md +++ b/packages/form/examples/acl/demo/simple.md @@ -30,7 +30,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; `, - standalone: true, imports: [DelonFormModule, NzButtonModule] }) export class DemoComponent { diff --git a/packages/form/examples/conditional/demo/if.md b/packages/form/examples/conditional/demo/if.md index 07df0e9e17..e9daf7dbea 100644 --- a/packages/form/examples/conditional/demo/if.md +++ b/packages/form/examples/conditional/demo/if.md @@ -22,7 +22,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/examples/conditional/demo/visibleIf.md b/packages/form/examples/conditional/demo/visibleIf.md index fd05dd4f18..e458528e21 100644 --- a/packages/form/examples/conditional/demo/visibleIf.md +++ b/packages/form/examples/conditional/demo/visibleIf.md @@ -28,7 +28,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; `, - standalone: true, imports: [DelonFormModule, NzButtonModule] }) export class DemoComponent implements OnInit, OnDestroy { diff --git a/packages/form/examples/i18n/demo/simple.md b/packages/form/examples/i18n/demo/simple.md index b1f978629f..d10bb14988 100644 --- a/packages/form/examples/i18n/demo/simple.md +++ b/packages/form/examples/i18n/demo/simple.md @@ -28,7 +28,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; `, - standalone: true, imports: [DelonFormModule, NzButtonModule] }) export class DemoComponent { diff --git a/packages/form/examples/method/demo/simple.md b/packages/form/examples/method/demo/simple.md index e838a6767c..1ad13fddb6 100644 --- a/packages/form/examples/method/demo/simple.md +++ b/packages/form/examples/method/demo/simple.md @@ -34,7 +34,6 @@ import { NzMessageService } from 'ng-zorro-antd/message';

`, - standalone: true, imports: [DelonFormModule, NzButtonModule] }) export class DemoComponent { diff --git a/packages/form/examples/modal/demo/simple.md b/packages/form/examples/modal/demo/simple.md index 7ca71c901a..fe6e756258 100644 --- a/packages/form/examples/modal/demo/simple.md +++ b/packages/form/examples/modal/demo/simple.md @@ -25,7 +25,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [NzButtonModule] }) export class DemoComponent { diff --git a/packages/form/src/widgets/array/demo/irregular.md b/packages/form/src/widgets/array/demo/irregular.md index 3e8b3e7112..e7dc2ae112 100644 --- a/packages/form/src/widgets/array/demo/irregular.md +++ b/packages/form/src/widgets/array/demo/irregular.md @@ -22,7 +22,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/src/widgets/array/demo/simple.md b/packages/form/src/widgets/array/demo/simple.md index fbff005b56..c5a4c57ad7 100644 --- a/packages/form/src/widgets/array/demo/simple.md +++ b/packages/form/src/widgets/array/demo/simple.md @@ -22,7 +22,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/src/widgets/boolean/demo/simple.md b/packages/form/src/widgets/boolean/demo/simple.md index ee5447d218..20865fe08e 100644 --- a/packages/form/src/widgets/boolean/demo/simple.md +++ b/packages/form/src/widgets/boolean/demo/simple.md @@ -22,7 +22,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/src/widgets/checkbox/demo/simple.md b/packages/form/src/widgets/checkbox/demo/simple.md index a91e4ed028..d6a1f8a1e8 100644 --- a/packages/form/src/widgets/checkbox/demo/simple.md +++ b/packages/form/src/widgets/checkbox/demo/simple.md @@ -24,7 +24,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/src/widgets/custom/demo/simple.md b/packages/form/src/widgets/custom/demo/simple.md index 9920b1ea43..1f5a2e7500 100644 --- a/packages/form/src/widgets/custom/demo/simple.md +++ b/packages/form/src/widgets/custom/demo/simple.md @@ -51,7 +51,6 @@ import { NzQRCodeModule } from 'ng-zorro-antd/qr-code'; `, - standalone: true, imports: [DelonFormModule, FormsModule, NzGridModule, NzInputModule, NzButtonModule, NzQRCodeModule] }) export class DemoComponent { diff --git a/packages/form/src/widgets/date/demo/range.md b/packages/form/src/widgets/date/demo/range.md index 587b0fe90c..6f3c8d9eb5 100644 --- a/packages/form/src/widgets/date/demo/range.md +++ b/packages/form/src/widgets/date/demo/range.md @@ -24,7 +24,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/src/widgets/date/demo/simple.md b/packages/form/src/widgets/date/demo/simple.md index 5be2befbf5..b35b18b197 100644 --- a/packages/form/src/widgets/date/demo/simple.md +++ b/packages/form/src/widgets/date/demo/simple.md @@ -22,7 +22,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'form-date-simple', template: ` `, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/src/widgets/number/demo/simple.md b/packages/form/src/widgets/number/demo/simple.md index f2d1df0627..7e6727b330 100644 --- a/packages/form/src/widgets/number/demo/simple.md +++ b/packages/form/src/widgets/number/demo/simple.md @@ -22,7 +22,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/src/widgets/object/demo/card.md b/packages/form/src/widgets/object/demo/card.md index d82d53b4b8..97df47fbb2 100644 --- a/packages/form/src/widgets/object/demo/card.md +++ b/packages/form/src/widgets/object/demo/card.md @@ -29,7 +29,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; More `, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent implements OnInit { diff --git a/packages/form/src/widgets/object/demo/simple.md b/packages/form/src/widgets/object/demo/simple.md index 3e7d3bf432..7254f2080f 100644 --- a/packages/form/src/widgets/object/demo/simple.md +++ b/packages/form/src/widgets/object/demo/simple.md @@ -22,7 +22,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ``, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/src/widgets/radio/demo/simple.md b/packages/form/src/widgets/radio/demo/simple.md index b03b722123..926fb63947 100644 --- a/packages/form/src/widgets/radio/demo/simple.md +++ b/packages/form/src/widgets/radio/demo/simple.md @@ -23,7 +23,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/src/widgets/select/demo/coordinate.md b/packages/form/src/widgets/select/demo/coordinate.md index b8ee7ad6f0..78dd0a7d37 100644 --- a/packages/form/src/widgets/select/demo/coordinate.md +++ b/packages/form/src/widgets/select/demo/coordinate.md @@ -23,7 +23,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/src/widgets/select/demo/custom-dropdown-menu.md b/packages/form/src/widgets/select/demo/custom-dropdown-menu.md index 737a87f2dc..a5637ed48e 100644 --- a/packages/form/src/widgets/select/demo/custom-dropdown-menu.md +++ b/packages/form/src/widgets/select/demo/custom-dropdown-menu.md @@ -55,7 +55,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; } ` ], - standalone: true, imports: [DelonFormModule, NzDividerModule, NzInputModule, NzIconModule] }) export class DemoComponent implements OnInit { diff --git a/packages/form/src/widgets/select/demo/search.md b/packages/form/src/widgets/select/demo/search.md index fd7d9e7010..485dc7cf7b 100644 --- a/packages/form/src/widgets/select/demo/search.md +++ b/packages/form/src/widgets/select/demo/search.md @@ -25,7 +25,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/src/widgets/select/demo/simple.md b/packages/form/src/widgets/select/demo/simple.md index 326be5f482..debea6cf5b 100644 --- a/packages/form/src/widgets/select/demo/simple.md +++ b/packages/form/src/widgets/select/demo/simple.md @@ -28,7 +28,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; `, - standalone: true, imports: [DelonFormModule, NzButtonModule] }) export class DemoComponent { diff --git a/packages/form/src/widgets/string/demo/simple.md b/packages/form/src/widgets/string/demo/simple.md index 59c830b5d0..db01a1b3a7 100644 --- a/packages/form/src/widgets/string/demo/simple.md +++ b/packages/form/src/widgets/string/demo/simple.md @@ -22,7 +22,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ``, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/src/widgets/string/demo/time.md b/packages/form/src/widgets/string/demo/time.md index e932d00aec..8d6635b274 100644 --- a/packages/form/src/widgets/string/demo/time.md +++ b/packages/form/src/widgets/string/demo/time.md @@ -29,7 +29,6 @@ interface UserItem { @Component({ selector: 'app-demo', template: ``, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/src/widgets/text/demo/simple.md b/packages/form/src/widgets/text/demo/simple.md index a97dddbaeb..009cd32c8f 100644 --- a/packages/form/src/widgets/text/demo/simple.md +++ b/packages/form/src/widgets/text/demo/simple.md @@ -22,7 +22,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/src/widgets/textarea/demo/simple.md b/packages/form/src/widgets/textarea/demo/simple.md index eb2bf8b928..d4e63431ae 100644 --- a/packages/form/src/widgets/textarea/demo/simple.md +++ b/packages/form/src/widgets/textarea/demo/simple.md @@ -22,7 +22,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/widgets-third/monaco-editor/demo/simple.md b/packages/form/widgets-third/monaco-editor/demo/simple.md index eecd610438..720e8906ee 100644 --- a/packages/form/widgets-third/monaco-editor/demo/simple.md +++ b/packages/form/widgets-third/monaco-editor/demo/simple.md @@ -23,7 +23,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ``, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/widgets-third/tinymce/demo/simple.md b/packages/form/widgets-third/tinymce/demo/simple.md index 1143ef40a4..9277094080 100644 --- a/packages/form/widgets-third/tinymce/demo/simple.md +++ b/packages/form/widgets-third/tinymce/demo/simple.md @@ -23,7 +23,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ``, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/widgets/autocomplete/demo/simple.md b/packages/form/widgets/autocomplete/demo/simple.md index adacd0fffd..9bced2500a 100644 --- a/packages/form/widgets/autocomplete/demo/simple.md +++ b/packages/form/widgets/autocomplete/demo/simple.md @@ -24,7 +24,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ``, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/widgets/cascader/demo/simple.md b/packages/form/widgets/cascader/demo/simple.md index 24d951834b..cdf3c35e43 100644 --- a/packages/form/widgets/cascader/demo/simple.md +++ b/packages/form/widgets/cascader/demo/simple.md @@ -24,7 +24,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/widgets/color/demo/simple.md b/packages/form/widgets/color/demo/simple.md index 5e2715c63b..fc384938f8 100644 --- a/packages/form/widgets/color/demo/simple.md +++ b/packages/form/widgets/color/demo/simple.md @@ -23,7 +23,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ``, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/widgets/mention/demo/simple.md b/packages/form/widgets/mention/demo/simple.md index c33124e0bf..c39500c762 100644 --- a/packages/form/widgets/mention/demo/simple.md +++ b/packages/form/widgets/mention/demo/simple.md @@ -27,7 +27,6 @@ const DATA = ['asdf', 'cipchk', '中文', 'にほんご']; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/widgets/qr-code/demo/simple.md b/packages/form/widgets/qr-code/demo/simple.md index 933c124c74..52b8d86f93 100644 --- a/packages/form/widgets/qr-code/demo/simple.md +++ b/packages/form/widgets/qr-code/demo/simple.md @@ -23,7 +23,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ``, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/widgets/rate/demo/simple.md b/packages/form/widgets/rate/demo/simple.md index 3fc22898c4..bfb47a08d5 100644 --- a/packages/form/widgets/rate/demo/simple.md +++ b/packages/form/widgets/rate/demo/simple.md @@ -23,7 +23,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/widgets/segmented/demo/simple.md b/packages/form/widgets/segmented/demo/simple.md index 42494fa311..b591cf6bf7 100644 --- a/packages/form/widgets/segmented/demo/simple.md +++ b/packages/form/widgets/segmented/demo/simple.md @@ -25,7 +25,6 @@ import { NzSegmentedOptions } from 'ng-zorro-antd/segmented'; @Component({ selector: 'app-demo', template: ``, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/widgets/slider/demo/simple.md b/packages/form/widgets/slider/demo/simple.md index a104d07835..bdc3b1bc72 100644 --- a/packages/form/widgets/slider/demo/simple.md +++ b/packages/form/widgets/slider/demo/simple.md @@ -23,7 +23,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/widgets/tag/demo/simple.md b/packages/form/widgets/tag/demo/simple.md index f6db94d505..0f23534a3a 100644 --- a/packages/form/widgets/tag/demo/simple.md +++ b/packages/form/widgets/tag/demo/simple.md @@ -24,7 +24,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/widgets/time/demo/simple.md b/packages/form/widgets/time/demo/simple.md index 4abe80c726..4291d90e4f 100644 --- a/packages/form/widgets/time/demo/simple.md +++ b/packages/form/widgets/time/demo/simple.md @@ -23,7 +23,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/widgets/transfer/demo/simple.md b/packages/form/widgets/transfer/demo/simple.md index 076533c8ef..77f9fc0efa 100644 --- a/packages/form/widgets/transfer/demo/simple.md +++ b/packages/form/widgets/transfer/demo/simple.md @@ -24,7 +24,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/widgets/tree-select/demo/customized-icon.md b/packages/form/widgets/tree-select/demo/customized-icon.md index ac133912c1..04e2e1ada8 100644 --- a/packages/form/widgets/tree-select/demo/customized-icon.md +++ b/packages/form/widgets/tree-select/demo/customized-icon.md @@ -34,7 +34,6 @@ import { NzTreeNode } from 'ng-zorro-antd/tree'; `, - standalone: true, imports: [DelonFormModule, NzIconModule] }) export class DemoComponent implements OnInit { diff --git a/packages/form/widgets/tree-select/demo/simple.md b/packages/form/widgets/tree-select/demo/simple.md index ed010a0e12..3d4801c9d3 100644 --- a/packages/form/widgets/tree-select/demo/simple.md +++ b/packages/form/widgets/tree-select/demo/simple.md @@ -26,7 +26,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/widgets/tree-select/demo/virtual-scroll.md b/packages/form/widgets/tree-select/demo/virtual-scroll.md index ca3e894a3c..d2fd0b811a 100644 --- a/packages/form/widgets/tree-select/demo/virtual-scroll.md +++ b/packages/form/widgets/tree-select/demo/virtual-scroll.md @@ -24,7 +24,6 @@ import { NzTreeNodeOptions } from 'ng-zorro-antd/tree'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/form/widgets/upload/demo/simple.md b/packages/form/widgets/upload/demo/simple.md index b22b92b7bd..2203b9de53 100644 --- a/packages/form/widgets/upload/demo/simple.md +++ b/packages/form/widgets/upload/demo/simple.md @@ -23,7 +23,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/packages/theme/docs/demo/table-rep.md b/packages/theme/docs/demo/table-rep.md index 4c75418d76..a37683a808 100644 --- a/packages/theme/docs/demo/table-rep.md +++ b/packages/theme/docs/demo/table-rep.md @@ -49,7 +49,6 @@ import { NzTableModule } from 'ng-zorro-antd/table'; `, - standalone: true, imports: [NzTableModule] }) export class DemoComponent { diff --git a/packages/theme/src/services/drawer/demo/simple.md b/packages/theme/src/services/drawer/demo/simple.md index a2a14b8b42..ebb8097b2e 100644 --- a/packages/theme/src/services/drawer/demo/simple.md +++ b/packages/theme/src/services/drawer/demo/simple.md @@ -28,7 +28,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; `, - standalone: true, imports: [NzButtonModule] }) export class DemoComponent { diff --git a/packages/theme/src/services/modal/demo/drag.md b/packages/theme/src/services/modal/demo/drag.md index ddcac7e9c0..100451ccac 100644 --- a/packages/theme/src/services/modal/demo/drag.md +++ b/packages/theme/src/services/modal/demo/drag.md @@ -25,7 +25,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; @Component({ selector: 'app-demo', template: ` `, - standalone: true, imports: [NzButtonModule] }) export class DemoComponent { diff --git a/packages/theme/src/services/modal/demo/simple.md b/packages/theme/src/services/modal/demo/simple.md index b06747a635..6dba9222fe 100644 --- a/packages/theme/src/services/modal/demo/simple.md +++ b/packages/theme/src/services/modal/demo/simple.md @@ -28,7 +28,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; `, - standalone: true, imports: [NzButtonModule] }) export class DemoComponent { diff --git a/packages/util/browser/demo/cookie.md b/packages/util/browser/demo/cookie.md index 8053439a7f..0b1df81769 100644 --- a/packages/util/browser/demo/cookie.md +++ b/packages/util/browser/demo/cookie.md @@ -18,7 +18,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; `, - standalone: true, imports: [NzButtonModule] }) export class DemoComponent { diff --git a/packages/util/pipes/currency/demo/currency-cny.md b/packages/util/pipes/currency/demo/currency-cny.md index 1656057a1e..ce0600e65d 100644 --- a/packages/util/pipes/currency/demo/currency-cny.md +++ b/packages/util/pipes/currency/demo/currency-cny.md @@ -19,7 +19,6 @@ import { NzInputModule } from 'ng-zorro-antd/input'; `, - standalone: true, imports: [NzInputModule, FormsModule, CurrencyCNYPipe] }) export class DemoComponent { diff --git a/packages/util/pipes/currency/demo/currency-mega.md b/packages/util/pipes/currency/demo/currency-mega.md index 30a0968c2c..c98c8ff85f 100644 --- a/packages/util/pipes/currency/demo/currency-mega.md +++ b/packages/util/pipes/currency/demo/currency-mega.md @@ -29,7 +29,6 @@ import { NzInputNumberModule } from 'ng-zorro-antd/input-number'; `, - standalone: true, imports: [NzInputModule, NzInputNumberModule, FormsModule, CurrencyMegaPipe] }) export class DemoComponent { diff --git a/packages/util/pipes/currency/demo/currency-price.md b/packages/util/pipes/currency/demo/currency-price.md index db2db63066..402e6f2f9d 100644 --- a/packages/util/pipes/currency/demo/currency-price.md +++ b/packages/util/pipes/currency/demo/currency-price.md @@ -23,7 +23,6 @@ import { NzInputNumberModule } from 'ng-zorro-antd/input-number'; `, - standalone: true, imports: [NzInputModule, FormsModule, NzInputNumberModule, CurrencyPricePipe] }) export class DemoComponent { diff --git a/packages/util/pipes/filter/demo/filter.md b/packages/util/pipes/filter/demo/filter.md index d809a12489..98dc57b6e5 100644 --- a/packages/util/pipes/filter/demo/filter.md +++ b/packages/util/pipes/filter/demo/filter.md @@ -23,7 +23,6 @@ import { NzInputNumberModule } from 'ng-zorro-antd/input-number'; `, - standalone: true, imports: [JsonPipe, FilterPipe, NzInputModule, NzInputNumberModule, FormsModule] }) export class DemoComponent { diff --git a/packages/util/pipes/filter/filter.pipe.ts b/packages/util/pipes/filter/filter.pipe.ts index 340286abb4..9fa76bc06f 100644 --- a/packages/util/pipes/filter/filter.pipe.ts +++ b/packages/util/pipes/filter/filter.pipe.ts @@ -8,7 +8,7 @@ import type { NzSafeAny } from 'ng-zorro-antd/core/types'; * 过滤数组 */ // eslint-disable-next-line @angular-eslint/no-pipe-impure -@Pipe({ name: 'filter', standalone: true, pure: false }) +@Pipe({ name: 'filter', pure: false }) export class FilterPipe implements PipeTransform { transform(array: readonly T[], matcher: (item: T, ...args: NzSafeAny[]) => boolean, ...args: NzSafeAny[]): T[] { return array.filter(i => matcher(i, ...args)); diff --git a/packages/util/pipes/format/demo/format-mask.md b/packages/util/pipes/format/demo/format-mask.md index f3df713574..fbac1bc627 100644 --- a/packages/util/pipes/format/demo/format-mask.md +++ b/packages/util/pipes/format/demo/format-mask.md @@ -23,7 +23,6 @@ import { NzInputModule } from 'ng-zorro-antd/input'; `, - standalone: true, imports: [JsonPipe, FormatMaskPipe, NzInputModule, FormsModule] }) export class DemoComponent { diff --git a/schematics/application/files/src/app/layout/basic/basic.component.ts b/schematics/application/files/src/app/layout/basic/basic.component.ts index 208be772e6..58939938e7 100644 --- a/schematics/application/files/src/app/layout/basic/basic.component.ts +++ b/schematics/application/files/src/app/layout/basic/basic.component.ts @@ -83,7 +83,6 @@ import { HeaderI18nComponent } from './widgets/i18n.component';<% } %> } `, - standalone: true, imports: [ RouterOutlet, RouterLink, diff --git a/schematics/application/files/src/app/layout/passport/passport.component.ts b/schematics/application/files/src/app/layout/passport/passport.component.ts index 11392de416..c08af023a8 100644 --- a/schematics/application/files/src/app/layout/passport/passport.component.ts +++ b/schematics/application/files/src/app/layout/passport/passport.component.ts @@ -30,7 +30,6 @@ import { HeaderI18nComponent } from '../basic/widgets/i18n.component';<% } %> `, styleUrls: ['./passport.component.less'], - standalone: true, imports: [RouterOutlet<% if (i18n) { %>, HeaderI18nComponent<% } %>, GlobalFooterModule, NzIconModule, ThemeBtnComponent] }) export class LayoutPassportComponent implements OnInit { diff --git a/schematics/application/files/src/app/routes/dashboard/dashboard.component.ts b/schematics/application/files/src/app/routes/dashboard/dashboard.component.ts index 91809dd66b..806b14cee1 100644 --- a/schematics/application/files/src/app/routes/dashboard/dashboard.component.ts +++ b/schematics/application/files/src/app/routes/dashboard/dashboard.component.ts @@ -5,7 +5,6 @@ import { PageHeaderModule } from '@delon/abc/page-header'; selector: 'app-dashboard', templateUrl: './dashboard.component.html', changeDetection: ChangeDetectionStrategy.OnPush, - standalone: true, imports: [PageHeaderModule] }) export class DashboardComponent {} diff --git a/schematics/edit/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template b/schematics/edit/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template index 6ef94c2eca..19dc8a2776 100644 --- a/schematics/edit/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +++ b/schematics/edit/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template @@ -9,7 +9,6 @@ import { SHARED_IMPORTS } from '@shared';<%}%> @Component({ selector: '<%= selector %>',<% if(standalone) {%> - standalone: true, imports: [...SHARED_IMPORTS],<%}%> templateUrl: './<%= dasherize(name) %>.component.html',<% if(!inlineStyle) { %><% } else { %> styleUrls: ['./<%= dasherize(name) %>.component.<%= style %>']<% } %><% if(!!viewEncapsulation) { %>, diff --git a/schematics/empty/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template b/schematics/empty/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template index 6944039f35..a47ebe4d72 100644 --- a/schematics/empty/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +++ b/schematics/empty/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template @@ -4,7 +4,6 @@ import { SHARED_IMPORTS } from '@shared';<%}%> @Component({ selector: '<%= selector %>',<% if(standalone) {%> - standalone: true, imports: [...SHARED_IMPORTS],<%}%> templateUrl: './<%= dasherize(name) %>.component.html',<% if(!inlineStyle) { %><% } else { %> styleUrls: ['./<%= dasherize(name) %>.component.<%= style %>']<% } %><% if(!!viewEncapsulation) { %>, diff --git a/schematics/list/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template b/schematics/list/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template index 751caaf8be..be4f40660d 100644 --- a/schematics/list/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +++ b/schematics/list/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template @@ -6,7 +6,6 @@ import { SHARED_IMPORTS } from '@shared';<%}%> @Component({ selector: '<%= selector %>',<% if(standalone) {%> - standalone: true, imports: [...SHARED_IMPORTS],<%}%> templateUrl: './<%= dasherize(name) %>.component.html',<% if(!inlineStyle) { %><% } else { %> styleUrls: ['./<%= dasherize(name) %>.component.<%= style %>']<% } %><% if(!!viewEncapsulation) { %>, diff --git a/schematics/plugin/files/sts/swagger-list/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template b/schematics/plugin/files/sts/swagger-list/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template index 5f9cc3d57b..98067d51d5 100644 --- a/schematics/plugin/files/sts/swagger-list/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +++ b/schematics/plugin/files/sts/swagger-list/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template @@ -6,7 +6,6 @@ import { SHARED_IMPORTS } from '@shared';<%}%> @Component({ selector: '<%= selector %>',<% if(standalone) {%> - standalone: true, imports: [...SHARED_IMPORTS],<%}%> templateUrl: './<%= dasherize(name) %>.component.html',<% if(!inlineStyle) { %><% } else { %> styleUrls: ['./<%= dasherize(name) %>.component.<%= style %>']<% } %><% if(!!viewEncapsulation) { %>, diff --git a/schematics/utils/ast.spec.ts b/schematics/utils/ast.spec.ts index e3c0083f41..f5c3fe02db 100644 --- a/schematics/utils/ast.spec.ts +++ b/schematics/utils/ast.spec.ts @@ -9,7 +9,6 @@ describe('cli: ast', () => { tree.create( '1.ts', `@Component({ - standalone: true, imports: [ RouterOutlet ] }) export class Comp {} diff --git a/schematics/view/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template b/schematics/view/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template index 2c174b1c1d..d276c82ae8 100644 --- a/schematics/view/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +++ b/schematics/view/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template @@ -7,7 +7,6 @@ import { SHARED_IMPORTS } from '@shared';<%}%> @Component({ selector: '<%= selector %>',<% if(standalone) {%> - standalone: true, imports: [...SHARED_IMPORTS],<%}%><% if(inlineTemplate) { %> template: ``,<% } else { %> templateUrl: './<%= dasherize(name) %>.component.html',<% } if(!inlineStyle) { %><% } else { %> diff --git a/src/app/core/code/code.service.ts b/src/app/core/code/code.service.ts index fa2224267e..ac4b8830f3 100644 --- a/src/app/core/code/code.service.ts +++ b/src/app/core/code/code.service.ts @@ -92,10 +92,11 @@ export class CodeService { } private attachStandalone(code: string): string { - // standalone: true, - if (code.includes(`standalone: true`)) return code; + return code; + // // standalone: true, + // if (code.includes(`standalone: true`)) return code; - return `${code.replace(`@Component({`, `@Component({\n standalone: true,\n`)}`; + // return `${code.replace(`@Component({`, `@Component({\n standalone: true,\n`)}`; } private yarnLock?: string; diff --git a/src/app/routes/form-pages/validator/validator.component.ts b/src/app/routes/form-pages/validator/validator.component.ts index c570f614e3..fed30785b0 100644 --- a/src/app/routes/form-pages/validator/validator.component.ts +++ b/src/app/routes/form-pages/validator/validator.component.ts @@ -31,7 +31,6 @@ import { NzMessageService } from 'ng-zorro-antd/message'; (formChange)="change($event)" (formError)="error($event)"> \`, - standalone: true, imports: [DelonFormModule] }) export class DemoComponent { diff --git a/src/templates/examples_index.ts b/src/templates/examples_index.ts index 3d31fb83ec..5b3d5fb562 100644 --- a/src/templates/examples_index.ts +++ b/src/templates/examples_index.ts @@ -6,7 +6,6 @@ import { CodeBoxComponent } from '@shared'; selector: `{{selector}}`, template: `{{{demos}}}`, host: { '[class.d-block]': `'true'` }, - standalone: true, imports: [CodeBoxComponent{{standaloneImports}}] }) export class {{componentName}} { diff --git a/src/templates/standalone.content.ts b/src/templates/standalone.content.ts index 623d93d5b5..9741a12cdc 100644 --- a/src/templates/standalone.content.ts +++ b/src/templates/standalone.content.ts @@ -6,7 +6,6 @@ import { DocsComponent } from '@shared'; selector: `{{selector}}`, template: `{{{demos}}}`, host: { '[class.d-block]': `'true'` }, - standalone: true, imports: [DocsComponent{{standaloneImports}}] }) export class {{componentName}} { From 17bdfe719dfa9a1372bbeed62b98d2d1213c4bb3 Mon Sep 17 00:00:00 2001 From: cipchk Date: Sat, 4 Jan 2025 01:37:03 +0800 Subject: [PATCH 2/3] chore: fix cli test --- schematics/empty/index.spec.ts | 2 +- schematics/list/index.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/schematics/empty/index.spec.ts b/schematics/empty/index.spec.ts index dcce12ff19..21894e2f39 100644 --- a/schematics/empty/index.spec.ts +++ b/schematics/empty/index.spec.ts @@ -73,7 +73,7 @@ describe('Schematic: empty', () => { tree = await runner.runSchematic('empty', { name: 'list', module: 'trade', standalone: true }, tree); [routingPath, tsPath, htmlPath].forEach(path => expect(tree.exists(path)).toBe(true)); expect(tree.exists(servicePath)).toBe(false); - expect(tree.readContent(tsPath)).toContain(`standalone: true,`); + expect(tree.readContent(tsPath)).toContain(`imports:`); expect(tree.readContent(tsPath)).toContain(`SHARED_IMPORTS`); expect(tree.readContent(tsPath)).toContain(`TradeListComponent`); expect(tree.readContent(tsPath)).not.toContain(`styleUrls`); diff --git a/schematics/list/index.spec.ts b/schematics/list/index.spec.ts index ce19279bd4..eaa36995f4 100644 --- a/schematics/list/index.spec.ts +++ b/schematics/list/index.spec.ts @@ -74,7 +74,7 @@ describe('Schematic: list', () => { [routesPath, tsPath, htmlPath].forEach(path => expect(tree.exists(path)).toBe(true)); expect(tree.readContent(routesPath)).toContain(`import { TradeListComponent } from './list/list.component';`); expect(tree.readContent(tsPath)).toContain(`TradeListComponent`); - expect(tree.readContent(tsPath)).toContain(`standalone: true,`); + expect(tree.readContent(tsPath)).toContain(`imports:`); expect(tree.readContent(tsPath)).not.toContain(`styleUrls`); }); From 98821d57b3a2957fe91e95dc31c54f29069884bf Mon Sep 17 00:00:00 2001 From: cipchk Date: Sat, 4 Jan 2025 01:46:23 +0800 Subject: [PATCH 3/3] chore: update --- .../abc/auto-focus/auto-focus.directive.ts | 3 +- .../avatar-list/avatar-list-item.component.ts | 3 +- packages/abc/cell/cell-host.directive.ts | 3 +- .../date-picker/range-shortcut.component.ts | 3 +- packages/abc/date-picker/range.directive.ts | 3 +- packages/abc/down-file/down-file.directive.ts | 3 +- .../full-content-toggle.directive.ts | 3 +- .../full-content/full-content.component.ts | 3 +- .../global-footer-item.component.ts | 3 +- packages/abc/hotkey/hotkey.directive.ts | 2 +- packages/abc/media/media.component.ts | 3 +- packages/abc/observers/observer-size.ts | 3 +- packages/abc/reuse-tab/index.en-US.md | 1 - packages/abc/reuse-tab/index.zh-CN.md | 1 - .../reuse-tab/reuse-tab-context.component.ts | 3 +- .../reuse-tab/reuse-tab-context.directive.ts | 3 +- packages/abc/se/se-container.component.ts | 3 +- packages/abc/sg/sg-container.component.ts | 3 +- packages/abc/sg/sg.component.ts | 3 +- packages/abc/sv/sv-container.component.ts | 3 +- packages/abc/xlsx/xlsx.directive.ts | 3 +- packages/acl/src/acl-if.directive.ts | 3 +- packages/acl/src/acl.directive.ts | 3 +- .../chart/mini-area/mini-area.component.ts | 3 +- packages/chart/mini-bar/mini-bar.component.ts | 3 +- .../chart/single-bar/single-bar.component.ts | 3 +- packages/theme/src/pipes/date/date.pipe.ts | 2 +- packages/theme/src/pipes/keys/keys.pipe.ts | 2 +- packages/theme/src/pipes/safe/html.pipe.ts | 2 +- packages/theme/src/pipes/safe/url.pipe.ts | 2 +- packages/theme/src/pipes/yn/yn.pipe.ts | 2 +- packages/theme/src/services/i18n/i18n.pipe.ts | 2 +- packages/util/pipes/currency/cny.pipe.ts | 2 +- packages/util/pipes/currency/index.en-US.md | 1 - packages/util/pipes/currency/index.zh-CN.md | 1 - packages/util/pipes/currency/mega.pipe.ts | 2 +- packages/util/pipes/currency/price.pipe.ts | 2 +- packages/util/pipes/filter/index.en-US.md | 1 - packages/util/pipes/filter/index.zh-CN.md | 1 - packages/util/pipes/format/index.en-US.md | 1 - packages/util/pipes/format/index.zh-CN.md | 1 - packages/util/pipes/format/mask.pipe.ts | 2 +- scripts/site/generate.ts | 1 + scripts/site/route-paths.txt | 2 +- src/app/core/code/code.service.ts | 4 --- .../match-router/match-router.directive.ts | 3 +- .../route-transfer.directive.ts | 3 +- src/site.config.js | 31 ++++++------------- 48 files changed, 48 insertions(+), 95 deletions(-) diff --git a/packages/abc/auto-focus/auto-focus.directive.ts b/packages/abc/auto-focus/auto-focus.directive.ts index 25c4194481..084ec65c1e 100644 --- a/packages/abc/auto-focus/auto-focus.directive.ts +++ b/packages/abc/auto-focus/auto-focus.directive.ts @@ -14,8 +14,7 @@ import { timer } from 'rxjs'; @Directive({ selector: '[auto-focus], input[autofocus="autofocus"], textarea[autofocus="autofocus"]', - exportAs: 'autoFocus', - standalone: true + exportAs: 'autoFocus' }) export class AutoFocusDirective implements AfterViewInit { private readonly el: HTMLElement = inject(ElementRef).nativeElement; diff --git a/packages/abc/avatar-list/avatar-list-item.component.ts b/packages/abc/avatar-list/avatar-list-item.component.ts index 032be816e2..f90a9f4b2f 100644 --- a/packages/abc/avatar-list/avatar-list-item.component.ts +++ b/packages/abc/avatar-list/avatar-list-item.component.ts @@ -6,8 +6,7 @@ import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@a template: ``, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - standalone: true + encapsulation: ViewEncapsulation.None }) export class AvatarListItemComponent { @Input() src?: string; diff --git a/packages/abc/cell/cell-host.directive.ts b/packages/abc/cell/cell-host.directive.ts index 5ebbccfb89..b92645027d 100644 --- a/packages/abc/cell/cell-host.directive.ts +++ b/packages/abc/cell/cell-host.directive.ts @@ -6,8 +6,7 @@ import { CellService } from './cell.service'; import { CellTextResult } from './cell.types'; @Directive({ - selector: '[cell-widget-host]', - standalone: true + selector: '[cell-widget-host]' }) export class CellHostDirective implements OnChanges { private readonly srv = inject(CellService); diff --git a/packages/abc/date-picker/range-shortcut.component.ts b/packages/abc/date-picker/range-shortcut.component.ts index 7d503fde8b..4dd3e1263e 100644 --- a/packages/abc/date-picker/range-shortcut.component.ts +++ b/packages/abc/date-picker/range-shortcut.component.ts @@ -10,8 +10,7 @@ import { AlainDateRangePickerShortcutItem } from '@delon/util/config'; } - `, - standalone: true + ` }) export class RangePickerShortcutTplComponent { @ViewChild('tpl', { static: true }) diff --git a/packages/abc/date-picker/range.directive.ts b/packages/abc/date-picker/range.directive.ts index 594b4fc88a..a54589273f 100644 --- a/packages/abc/date-picker/range.directive.ts +++ b/packages/abc/date-picker/range.directive.ts @@ -23,8 +23,7 @@ import { RangePickerShortcutTplComponent } from './range-shortcut.component'; @Directive({ selector: 'nz-range-picker[extend]', - exportAs: 'extendRangePicker', - standalone: true + exportAs: 'extendRangePicker' }) export class RangePickerDirective implements OnDestroy, AfterViewInit { static ngAcceptInputType_shortcut: AlainDateRangePickerShortcut | string | null; diff --git a/packages/abc/down-file/down-file.directive.ts b/packages/abc/down-file/down-file.directive.ts index ac7c4371dd..1892290468 100644 --- a/packages/abc/down-file/down-file.directive.ts +++ b/packages/abc/down-file/down-file.directive.ts @@ -12,8 +12,7 @@ import type { NzSafeAny } from 'ng-zorro-antd/core/types'; exportAs: 'downFile', host: { '(click)': '_click($event)' - }, - standalone: true + } }) export class DownFileDirective { private readonly el: HTMLButtonElement = inject(ElementRef).nativeElement; diff --git a/packages/abc/full-content/full-content-toggle.directive.ts b/packages/abc/full-content/full-content-toggle.directive.ts index b4f5d95ff7..a8324a4d56 100644 --- a/packages/abc/full-content/full-content-toggle.directive.ts +++ b/packages/abc/full-content/full-content-toggle.directive.ts @@ -7,8 +7,7 @@ import { FullContentComponent } from './full-content.component'; exportAs: 'fullToggle', host: { '(click)': '_click()' - }, - standalone: true + } }) export class FullContentToggleDirective { private readonly parent = inject(FullContentComponent); diff --git a/packages/abc/full-content/full-content.component.ts b/packages/abc/full-content/full-content.component.ts index 83a0afb4ad..33cc11f814 100644 --- a/packages/abc/full-content/full-content.component.ts +++ b/packages/abc/full-content/full-content.component.ts @@ -37,8 +37,7 @@ const hideTitleCls = `full-content__hidden-title`; }, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - standalone: true + encapsulation: ViewEncapsulation.None }) export class FullContentComponent implements AfterViewInit, OnInit, OnChanges, OnDestroy { private readonly destroy$ = inject(DestroyRef); diff --git a/packages/abc/global-footer/global-footer-item.component.ts b/packages/abc/global-footer/global-footer-item.component.ts index f7e86b072c..38ccf342c2 100644 --- a/packages/abc/global-footer/global-footer-item.component.ts +++ b/packages/abc/global-footer/global-footer-item.component.ts @@ -14,8 +14,7 @@ import { template: ` `, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - standalone: true + encapsulation: ViewEncapsulation.None }) export class GlobalFooterItemComponent { @ViewChild('host', { static: true }) host!: TemplateRef; diff --git a/packages/abc/hotkey/hotkey.directive.ts b/packages/abc/hotkey/hotkey.directive.ts index 0d256c9222..09ae197daa 100644 --- a/packages/abc/hotkey/hotkey.directive.ts +++ b/packages/abc/hotkey/hotkey.directive.ts @@ -3,7 +3,7 @@ import { Directive, ElementRef, Input, NgZone, OnDestroy, inject } from '@angula import { install, uninstall } from '@github/hotkey'; -@Directive({ selector: '[hotkey]', standalone: true }) +@Directive({ selector: '[hotkey]' }) export class HotkeyDirective implements OnDestroy { private readonly el: HTMLElement = inject(ElementRef).nativeElement; private readonly ngZone = inject(NgZone); diff --git a/packages/abc/media/media.component.ts b/packages/abc/media/media.component.ts index c196d5141a..598f067212 100644 --- a/packages/abc/media/media.component.ts +++ b/packages/abc/media/media.component.ts @@ -38,8 +38,7 @@ export type MediaType = 'html5' | 'youtube' | 'video' | 'audio'; }, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - standalone: true + encapsulation: ViewEncapsulation.None }) export class MediaComponent implements OnChanges, AfterViewInit, OnDestroy { private readonly destroy$ = inject(DestroyRef); diff --git a/packages/abc/observers/observer-size.ts b/packages/abc/observers/observer-size.ts index 54d1ae43f2..1bc462b3d4 100644 --- a/packages/abc/observers/observer-size.ts +++ b/packages/abc/observers/observer-size.ts @@ -81,8 +81,7 @@ export class SizeObserver implements OnDestroy { @Directive({ selector: '[observeSize]', - exportAs: 'observeSize', - standalone: true + exportAs: 'observeSize' }) export class ObserverSize implements AfterViewInit, OnDestroy { private readonly _obs = inject(SizeObserver); diff --git a/packages/abc/reuse-tab/index.en-US.md b/packages/abc/reuse-tab/index.en-US.md index 3aaf686753..3487eed136 100644 --- a/packages/abc/reuse-tab/index.en-US.md +++ b/packages/abc/reuse-tab/index.en-US.md @@ -5,7 +5,6 @@ title: reuse-tab subtitle: Reuse Route Tab cols: 1 module: import { ReuseTabModule } from '@delon/abc/reuse-tab'; -standalone: true --- Reuse route tab are extremely common for admin interfaces, and the problem of component data is not lost when switching routes. diff --git a/packages/abc/reuse-tab/index.zh-CN.md b/packages/abc/reuse-tab/index.zh-CN.md index 3c2e1136c1..6595472f9a 100644 --- a/packages/abc/reuse-tab/index.zh-CN.md +++ b/packages/abc/reuse-tab/index.zh-CN.md @@ -5,7 +5,6 @@ title: reuse-tab subtitle: 路由复用标签 cols: 1 module: import { ReuseTabModule } from '@delon/abc/reuse-tab'; -standalone: true --- 复用标签在中台系统非常常见,本质是解决不同路由页切换时组件数据不丢失问题。 diff --git a/packages/abc/reuse-tab/reuse-tab-context.component.ts b/packages/abc/reuse-tab/reuse-tab-context.component.ts index 1eb1872560..ce6bcfbd6e 100644 --- a/packages/abc/reuse-tab/reuse-tab-context.component.ts +++ b/packages/abc/reuse-tab/reuse-tab-context.component.ts @@ -6,8 +6,7 @@ import { ReuseContextCloseEvent, ReuseContextI18n } from './reuse-tab.interfaces @Component({ selector: 'reuse-tab-context', - template: ``, - standalone: true + template: `` }) export class ReuseTabContextComponent { private readonly srv = inject(ReuseTabContextService); diff --git a/packages/abc/reuse-tab/reuse-tab-context.directive.ts b/packages/abc/reuse-tab/reuse-tab-context.directive.ts index 37b770c4f8..60be2e9cf2 100644 --- a/packages/abc/reuse-tab/reuse-tab-context.directive.ts +++ b/packages/abc/reuse-tab/reuse-tab-context.directive.ts @@ -8,8 +8,7 @@ import { ReuseCustomContextMenu, ReuseItem } from './reuse-tab.interfaces'; exportAs: 'reuseTabContextMenu', host: { '(contextmenu)': '_onContextMenu($event)' - }, - standalone: true + } }) export class ReuseTabContextDirective { private readonly srv = inject(ReuseTabContextService); diff --git a/packages/abc/se/se-container.component.ts b/packages/abc/se/se-container.component.ts index 17c9f58674..8fe92cf208 100644 --- a/packages/abc/se/se-container.component.ts +++ b/packages/abc/se/se-container.component.ts @@ -29,8 +29,7 @@ import { SEErrorRefresh, SELayout } from './se.types'; }, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - standalone: true + encapsulation: ViewEncapsulation.None }) export class SETitleComponent implements OnInit { private readonly parentComp = inject(SEContainerComponent, { host: true, optional: true }); diff --git a/packages/abc/sg/sg-container.component.ts b/packages/abc/sg/sg-container.component.ts index 8877a24ef5..780a85e9f0 100644 --- a/packages/abc/sg/sg-container.component.ts +++ b/packages/abc/sg/sg-container.component.ts @@ -15,8 +15,7 @@ import { AlainConfigService } from '@delon/util/config'; }, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - standalone: true + encapsulation: ViewEncapsulation.None }) export class SGContainerComponent { @Input({ transform: numberAttribute }) gutter!: number; diff --git a/packages/abc/sg/sg.component.ts b/packages/abc/sg/sg.component.ts index 75182e29f0..24101cb832 100644 --- a/packages/abc/sg/sg.component.ts +++ b/packages/abc/sg/sg.component.ts @@ -27,8 +27,7 @@ const prefixCls = `sg`; }, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - standalone: true + encapsulation: ViewEncapsulation.None }) export class SGComponent implements OnChanges, AfterViewInit { private readonly el: HTMLElement = inject(ElementRef).nativeElement; diff --git a/packages/abc/sv/sv-container.component.ts b/packages/abc/sv/sv-container.component.ts index fca513db44..4ddfc950a3 100644 --- a/packages/abc/sv/sv-container.component.ts +++ b/packages/abc/sv/sv-container.component.ts @@ -25,8 +25,7 @@ import { NzStringTemplateOutletDirective } from 'ng-zorro-antd/core/outlet'; }, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - standalone: true + encapsulation: ViewEncapsulation.None }) export class SVTitleComponent implements OnInit { private readonly el: HTMLElement = inject(ElementRef).nativeElement; diff --git a/packages/abc/xlsx/xlsx.directive.ts b/packages/abc/xlsx/xlsx.directive.ts index abf0a8b7f2..3aa8627d10 100644 --- a/packages/abc/xlsx/xlsx.directive.ts +++ b/packages/abc/xlsx/xlsx.directive.ts @@ -8,8 +8,7 @@ import { XlsxExportOptions } from './xlsx.types'; exportAs: 'xlsx', host: { '(click)': '_click()' - }, - standalone: true + } }) export class XlsxDirective { private readonly srv = inject(XlsxService); diff --git a/packages/acl/src/acl-if.directive.ts b/packages/acl/src/acl-if.directive.ts index 04db9f550d..d59f40ad3a 100644 --- a/packages/acl/src/acl-if.directive.ts +++ b/packages/acl/src/acl-if.directive.ts @@ -7,8 +7,7 @@ import { ACLCanType } from './acl.type'; @Directive({ selector: '[aclIf]', - exportAs: 'aclIf', - standalone: true + exportAs: 'aclIf' }) export class ACLIfDirective implements OnDestroy { private readonly srv = inject(ACLService); diff --git a/packages/acl/src/acl.directive.ts b/packages/acl/src/acl.directive.ts index c85a9900cb..3f6f16a096 100644 --- a/packages/acl/src/acl.directive.ts +++ b/packages/acl/src/acl.directive.ts @@ -7,8 +7,7 @@ import { ACLCanType } from './acl.type'; @Directive({ selector: '[acl]', - exportAs: 'acl', - standalone: true + exportAs: 'acl' }) export class ACLDirective implements OnDestroy { private readonly el: HTMLElement = inject(ElementRef).nativeElement; diff --git a/packages/chart/mini-area/mini-area.component.ts b/packages/chart/mini-area/mini-area.component.ts index 9cf0012cac..0f98137f2e 100644 --- a/packages/chart/mini-area/mini-area.component.ts +++ b/packages/chart/mini-area/mini-area.component.ts @@ -34,8 +34,7 @@ export interface G2MiniAreaClickItem { }, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - standalone: true + encapsulation: ViewEncapsulation.None }) export class G2MiniAreaComponent extends G2BaseComponent { // #region fields diff --git a/packages/chart/mini-bar/mini-bar.component.ts b/packages/chart/mini-bar/mini-bar.component.ts index 0f72956310..56027fc7ef 100644 --- a/packages/chart/mini-bar/mini-bar.component.ts +++ b/packages/chart/mini-bar/mini-bar.component.ts @@ -34,8 +34,7 @@ export interface G2MiniBarClickItem { }, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - standalone: true + encapsulation: ViewEncapsulation.None }) export class G2MiniBarComponent extends G2BaseComponent { // #region fields diff --git a/packages/chart/single-bar/single-bar.component.ts b/packages/chart/single-bar/single-bar.component.ts index 75a159050f..3c8e527f42 100644 --- a/packages/chart/single-bar/single-bar.component.ts +++ b/packages/chart/single-bar/single-bar.component.ts @@ -22,8 +22,7 @@ import type { NzSafeAny } from 'ng-zorro-antd/core/types'; }, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - standalone: true + encapsulation: ViewEncapsulation.None }) export class G2SingleBarComponent extends G2BaseComponent { // #region fields diff --git a/packages/theme/src/pipes/date/date.pipe.ts b/packages/theme/src/pipes/date/date.pipe.ts index 4b15642808..aee27c4635 100644 --- a/packages/theme/src/pipes/date/date.pipe.ts +++ b/packages/theme/src/pipes/date/date.pipe.ts @@ -4,7 +4,7 @@ import { AlainConfigService } from '@delon/util/config'; import { formatDate } from '@delon/util/date-time'; import { NzI18nService } from 'ng-zorro-antd/i18n'; -@Pipe({ name: '_date', standalone: true }) +@Pipe({ name: '_date' }) export class DatePipe implements PipeTransform { private nzI18n = inject(NzI18nService); private cog = inject(AlainConfigService).get('themePipe'); diff --git a/packages/theme/src/pipes/keys/keys.pipe.ts b/packages/theme/src/pipes/keys/keys.pipe.ts index 9afe6ace26..1366c2e70c 100644 --- a/packages/theme/src/pipes/keys/keys.pipe.ts +++ b/packages/theme/src/pipes/keys/keys.pipe.ts @@ -5,7 +5,7 @@ import type { NzSafeAny } from 'ng-zorro-antd/core/types'; /** * [Document](https://ng-alain.com/theme/keys) */ -@Pipe({ name: 'keys', standalone: true }) +@Pipe({ name: 'keys' }) export class KeysPipe implements PipeTransform { transform(value: NzSafeAny, keyIsNumber: boolean = false): NzSafeAny[] { const ret: NzSafeAny[] = []; diff --git a/packages/theme/src/pipes/safe/html.pipe.ts b/packages/theme/src/pipes/safe/html.pipe.ts index 8d1e35a246..d35c07b0f6 100644 --- a/packages/theme/src/pipes/safe/html.pipe.ts +++ b/packages/theme/src/pipes/safe/html.pipe.ts @@ -1,7 +1,7 @@ import { Pipe, PipeTransform, inject } from '@angular/core'; import { DomSanitizer, SafeHtml } from '@angular/platform-browser'; -@Pipe({ name: 'html', standalone: true }) +@Pipe({ name: 'html' }) export class HTMLPipe implements PipeTransform { private readonly dom = inject(DomSanitizer); diff --git a/packages/theme/src/pipes/safe/url.pipe.ts b/packages/theme/src/pipes/safe/url.pipe.ts index a32d0c2668..f4b4e2b4e8 100644 --- a/packages/theme/src/pipes/safe/url.pipe.ts +++ b/packages/theme/src/pipes/safe/url.pipe.ts @@ -1,7 +1,7 @@ import { Pipe, PipeTransform, inject } from '@angular/core'; import { DomSanitizer, SafeUrl } from '@angular/platform-browser'; -@Pipe({ name: 'url', standalone: true }) +@Pipe({ name: 'url' }) export class URLPipe implements PipeTransform { private readonly dom = inject(DomSanitizer); diff --git a/packages/theme/src/pipes/yn/yn.pipe.ts b/packages/theme/src/pipes/yn/yn.pipe.ts index 335f5321d6..5f522e1db2 100644 --- a/packages/theme/src/pipes/yn/yn.pipe.ts +++ b/packages/theme/src/pipes/yn/yn.pipe.ts @@ -35,7 +35,7 @@ export function yn(value: boolean, opt?: YNOptions): string { return html; } -@Pipe({ name: 'yn', standalone: true }) +@Pipe({ name: 'yn' }) export class YNPipe implements PipeTransform { private readonly dom = inject(DomSanitizer); diff --git a/packages/theme/src/services/i18n/i18n.pipe.ts b/packages/theme/src/services/i18n/i18n.pipe.ts index f5ff52f66f..46833ee1bf 100644 --- a/packages/theme/src/services/i18n/i18n.pipe.ts +++ b/packages/theme/src/services/i18n/i18n.pipe.ts @@ -2,7 +2,7 @@ import { Pipe, PipeTransform, inject } from '@angular/core'; import { ALAIN_I18N_TOKEN } from './i18n'; -@Pipe({ name: 'i18n', standalone: true }) +@Pipe({ name: 'i18n' }) export class I18nPipe implements PipeTransform { private readonly i18n = inject(ALAIN_I18N_TOKEN); diff --git a/packages/util/pipes/currency/cny.pipe.ts b/packages/util/pipes/currency/cny.pipe.ts index 226852ee47..9309c3869d 100644 --- a/packages/util/pipes/currency/cny.pipe.ts +++ b/packages/util/pipes/currency/cny.pipe.ts @@ -7,7 +7,7 @@ import { CurrencyCNYOptions, CurrencyService } from '@delon/util/format'; * * 转化成人民币表示法 */ -@Pipe({ name: 'cny', standalone: true }) +@Pipe({ name: 'cny' }) export class CurrencyCNYPipe implements PipeTransform { private readonly srv = inject(CurrencyService); diff --git a/packages/util/pipes/currency/index.en-US.md b/packages/util/pipes/currency/index.en-US.md index 42eb034198..d053660aaf 100644 --- a/packages/util/pipes/currency/index.en-US.md +++ b/packages/util/pipes/currency/index.en-US.md @@ -3,7 +3,6 @@ title: currency subtitle: Currency Pipes type: Pipes module: import { CurrencyPipeModule } from '@delon/util/pipes/currency'; -standalone: true --- > You can override to set the `startingUnit`, `megaUnit`, `precision`, `ingoreZeroPrecision` through [Global Configuration](/docs/global-config). diff --git a/packages/util/pipes/currency/index.zh-CN.md b/packages/util/pipes/currency/index.zh-CN.md index d87c9c0555..766e9a83d0 100644 --- a/packages/util/pipes/currency/index.zh-CN.md +++ b/packages/util/pipes/currency/index.zh-CN.md @@ -3,7 +3,6 @@ title: currency subtitle: 货币管道 type: Pipes module: import { CurrencyPipeModule } from '@delon/util/pipes/currency'; -standalone: true --- > 可以通过[全局配置](/docs/global-config)覆盖 `startingUnit`、`megaUnit`、`precision`、`ingoreZeroPrecision` 等参数。 diff --git a/packages/util/pipes/currency/mega.pipe.ts b/packages/util/pipes/currency/mega.pipe.ts index 3be4853fb5..7e48207ef0 100644 --- a/packages/util/pipes/currency/mega.pipe.ts +++ b/packages/util/pipes/currency/mega.pipe.ts @@ -7,7 +7,7 @@ import { CurrencyMegaOptions, CurrencyService } from '@delon/util/format'; * * 大数据格式化 */ -@Pipe({ name: 'mega', standalone: true }) +@Pipe({ name: 'mega' }) export class CurrencyMegaPipe implements PipeTransform { private readonly srv = inject(CurrencyService); private isCN = inject(LOCALE_ID).startsWith('zh'); diff --git a/packages/util/pipes/currency/price.pipe.ts b/packages/util/pipes/currency/price.pipe.ts index a2c86429cf..925bc1620b 100644 --- a/packages/util/pipes/currency/price.pipe.ts +++ b/packages/util/pipes/currency/price.pipe.ts @@ -11,7 +11,7 @@ import { CurrencyFormatOptions, CurrencyService } from '@delon/util/format'; * 10000.567 => `10,000.57` * ``` */ -@Pipe({ name: 'price', standalone: true }) +@Pipe({ name: 'price' }) export class CurrencyPricePipe implements PipeTransform { private readonly srv = inject(CurrencyService); diff --git a/packages/util/pipes/filter/index.en-US.md b/packages/util/pipes/filter/index.en-US.md index 89197d824f..2f0083a9c3 100644 --- a/packages/util/pipes/filter/index.en-US.md +++ b/packages/util/pipes/filter/index.en-US.md @@ -3,7 +3,6 @@ title: filter subtitle: Filter type: Pipes module: import { FilterPipeModule } from '@delon/util/pipes/filter'; -standalone: true --- ## filter diff --git a/packages/util/pipes/filter/index.zh-CN.md b/packages/util/pipes/filter/index.zh-CN.md index c025f2e91d..8451547770 100644 --- a/packages/util/pipes/filter/index.zh-CN.md +++ b/packages/util/pipes/filter/index.zh-CN.md @@ -3,7 +3,6 @@ title: filter subtitle: 过滤数组 type: Pipes module: import { FilterPipeModule } from '@delon/util/pipes/filter'; -standalone: true --- ## filter diff --git a/packages/util/pipes/format/index.en-US.md b/packages/util/pipes/format/index.en-US.md index e3cd77eb0d..fff8a9770c 100644 --- a/packages/util/pipes/format/index.en-US.md +++ b/packages/util/pipes/format/index.en-US.md @@ -3,7 +3,6 @@ title: format subtitle: Mask type: Pipes module: import { FormatPipeModule } from '@delon/util/pipes/format'; -standalone: true --- ## mask diff --git a/packages/util/pipes/format/index.zh-CN.md b/packages/util/pipes/format/index.zh-CN.md index 901f06e5d5..419fc8a406 100644 --- a/packages/util/pipes/format/index.zh-CN.md +++ b/packages/util/pipes/format/index.zh-CN.md @@ -3,7 +3,6 @@ title: format subtitle: 掩码 type: Pipes module: import { FormatPipeModule } from '@delon/util/pipes/format'; -standalone: true --- ## mask diff --git a/packages/util/pipes/format/mask.pipe.ts b/packages/util/pipes/format/mask.pipe.ts index 4b74af28cd..64ce782bc8 100644 --- a/packages/util/pipes/format/mask.pipe.ts +++ b/packages/util/pipes/format/mask.pipe.ts @@ -21,7 +21,7 @@ import { formatMask, FormatMaskOption } from '@delon/util/format'; * formatMask('15900000000', '999****9999') => 159****0000 * ``` */ -@Pipe({ name: 'mask', standalone: true }) +@Pipe({ name: 'mask' }) export class FormatMaskPipe implements PipeTransform { transform(value: string, mask: string | FormatMaskOption): string { return formatMask(value, mask); diff --git a/scripts/site/generate.ts b/scripts/site/generate.ts index 095fc7c0f8..0da4e73490 100755 --- a/scripts/site/generate.ts +++ b/scripts/site/generate.ts @@ -258,6 +258,7 @@ function generateModule(config: ModuleConfig): void { for (const m of siteConfig.modules) { // if (m.module !== 'docs') continue; + m.standalone = m.standalone ?? true; generateModule(m); } diff --git a/scripts/site/route-paths.txt b/scripts/site/route-paths.txt index 78246ee2bc..98ab581acf 100644 --- a/scripts/site/route-paths.txt +++ b/scripts/site/route-paths.txt @@ -342,4 +342,4 @@ /util/pipes-format/en /util/pipes-format/zh /util/token/en -/util/token/zh +/util/token/zh \ No newline at end of file diff --git a/src/app/core/code/code.service.ts b/src/app/core/code/code.service.ts index ac4b8830f3..cc29de2f88 100644 --- a/src/app/core/code/code.service.ts +++ b/src/app/core/code/code.service.ts @@ -93,10 +93,6 @@ export class CodeService { private attachStandalone(code: string): string { return code; - // // standalone: true, - // if (code.includes(`standalone: true`)) return code; - - // return `${code.replace(`@Component({`, `@Component({\n standalone: true,\n`)}`; } private yarnLock?: string; diff --git a/src/app/shared/components/match-router/match-router.directive.ts b/src/app/shared/components/match-router/match-router.directive.ts index bfb9976ec1..8c7aa7d895 100644 --- a/src/app/shared/components/match-router/match-router.directive.ts +++ b/src/app/shared/components/match-router/match-router.directive.ts @@ -8,8 +8,7 @@ export interface MatchRouterOptions { } @Directive({ - selector: '[matchRouter]', - standalone: true + selector: '[matchRouter]' }) export class MatchRouterDirective implements AfterViewInit, OnDestroy { private readonly router = inject(Router); diff --git a/src/app/shared/components/route-transfer/route-transfer.directive.ts b/src/app/shared/components/route-transfer/route-transfer.directive.ts index 4f60869752..a99b5f7d58 100644 --- a/src/app/shared/components/route-transfer/route-transfer.directive.ts +++ b/src/app/shared/components/route-transfer/route-transfer.directive.ts @@ -6,8 +6,7 @@ import { copy } from '@delon/util/browser'; import { NzMessageService } from 'ng-zorro-antd/message'; @Directive({ - selector: '[routeTransfer]', - standalone: true + selector: '[routeTransfer]' }) export class RouteTransferDirective { private readonly router = inject(Router); diff --git a/src/site.config.js b/src/site.config.js index cc71cdcf18..b47c251519 100644 --- a/src/site.config.js +++ b/src/site.config.js @@ -36,8 +36,7 @@ module.exports = { src: ['./docs'], hasSubDir: false } - ], - standalone: true + ] }, { name: 'components', @@ -221,8 +220,7 @@ module.exports = { hasSubDir: true } - ], - standalone: true + ] }, { name: 'auth', @@ -243,8 +241,7 @@ module.exports = { src: ['./packages/auth/docs'], hasSubDir: false } - ], - standalone: true + ] }, { name: 'acl', @@ -265,8 +262,7 @@ module.exports = { src: ['./packages/acl/docs'], hasSubDir: false } - ], - standalone: true + ] }, { name: 'cache', @@ -287,8 +283,7 @@ module.exports = { src: ['./packages/cache/docs'], hasSubDir: false } - ], - standalone: true + ] }, { name: 'mock', @@ -309,8 +304,7 @@ module.exports = { src: ['./packages/mock/docs'], hasSubDir: false } - ], - standalone: true + ] }, { name: 'util', @@ -344,8 +338,7 @@ module.exports = { ignores: ['docs'], hasSubDir: true } - ], - standalone: true + ] }, { name: 'form', @@ -410,8 +403,7 @@ module.exports = { hasSubDir: true } - ], - standalone: true + ] }, { name: 'chart', @@ -445,8 +437,7 @@ module.exports = { ignores: ['docs'], hasSubDir: true } - ], - standalone: true + ] }, { name: 'cli', @@ -462,7 +453,6 @@ module.exports = { defaultRoute: 'getting-started', extraRouteMeta: [], metaIncludeAttributes: ['name', 'types', 'github', 'module'], - standalone: true, dir: [ { src: ['./schematics/docs'], @@ -532,8 +522,7 @@ module.exports = { src: ['./packages/theme/src/services'], hasSubDir: true } - ], - standalone: true + ] } ] };