3
3
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
4
4
*/
5
5
6
+ import { DatePipe , NgForOf , NgIf , NgTemplateOutlet } from '@angular/common' ;
6
7
import {
7
8
Component ,
8
9
ViewEncapsulation ,
@@ -16,13 +17,14 @@ import {
16
17
17
18
import { InputBoolean } from 'ng-zorro-antd/core/util' ;
18
19
import { NzCronExpressionCronErrorI18n } from 'ng-zorro-antd/i18n' ;
20
+ import { NzIconModule } from 'ng-zorro-antd/icon' ;
19
21
20
22
@Component ( {
21
23
changeDetection : ChangeDetectionStrategy . OnPush ,
22
24
encapsulation : ViewEncapsulation . None ,
23
25
selector : 'nz-cron-expression-preview' ,
24
26
exportAs : 'nzCronExpressionPreview' ,
25
- template : `<div class="ant-collapse ant-collapse-borderless ant-cron-expression-preview">
27
+ template : ` <div class="ant-collapse ant-collapse-borderless ant-cron-expression-preview">
26
28
<div class="ant-cron-expression-preview-dateTime" [class.ant-cron-expression-preview-dateTime-center]="!isExpand">
27
29
<ng-container *ngIf="visible; else cronError">
28
30
<ng-container *ngIf="!nzSemantic; else semanticTemplate">
@@ -44,7 +46,9 @@ import { NzCronExpressionCronErrorI18n } from 'ng-zorro-antd/i18n';
44
46
<li *ngIf="isExpand"><span nz-icon nzType="down" nzTheme="outline" (click)="setExpand()"></span></li>
45
47
<li *ngIf="!isExpand"><span nz-icon nzType="up" nzTheme="outline" (click)="setExpand()"></span></li>
46
48
</ul>
47
- </div>`
49
+ </div>` ,
50
+ imports : [ NgIf , NgTemplateOutlet , NgForOf , DatePipe , NzIconModule ] ,
51
+ standalone : true
48
52
} )
49
53
export class NzCronExpressionPreviewComponent {
50
54
@Input ( ) TimeList : Date [ ] = [ ] ;
0 commit comments