ngx-formly-zorro-antd 17.0.3 → 17.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. package/card-wrapper/card-wrapper.props.d.ts +4 -0
  2. package/esm2022/card/card.type.mjs +8 -5
  3. package/esm2022/card-wrapper/card-wrapper.props.mjs +1 -1
  4. package/esm2022/card-wrapper/card.wrapper.mjs +7 -4
  5. package/esm2022/datepicker/datepicker.type.mjs +151 -155
  6. package/esm2022/form-field/form-field.props.mjs +1 -1
  7. package/esm2022/form-field/form-field.wrapper.mjs +53 -53
  8. package/esm2022/grid/grid.props.mjs +1 -1
  9. package/esm2022/input/input.type.mjs +142 -146
  10. package/esm2022/lib/ui-ng-zorro-antd.module.mjs +33 -59
  11. package/esm2022/radio/radio.type.mjs +62 -42
  12. package/esm2022/select/select.type.mjs +26 -24
  13. package/esm2022/space/space.type.mjs +3 -3
  14. package/esm2022/textarea/textarea.type.mjs +18 -22
  15. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +7 -4
  16. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
  17. package/fesm2022/ngx-formly-zorro-antd-card.mjs +8 -5
  18. package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
  19. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +150 -154
  20. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  21. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +52 -52
  22. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  23. package/fesm2022/ngx-formly-zorro-antd-input.mjs +141 -145
  24. package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
  25. package/fesm2022/ngx-formly-zorro-antd-radio.mjs +62 -42
  26. package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  27. package/fesm2022/ngx-formly-zorro-antd-select.mjs +26 -24
  28. package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
  29. package/fesm2022/ngx-formly-zorro-antd-space.mjs +2 -2
  30. package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
  31. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +17 -21
  32. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  33. package/fesm2022/ngx-formly-zorro-antd.mjs +32 -58
  34. package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
  35. package/form-field/form-field.props.d.ts +50 -52
  36. package/grid/grid.props.d.ts +14 -14
  37. package/lib/ui-ng-zorro-antd.module.d.ts +1 -1
  38. package/package.json +18 -18
  39. package/space/space.type.d.ts +2 -1
@@ -1,11 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Component, ChangeDetectionStrategy, Optional, NgModule } from '@angular/core';
3
+ import * as i2 from '@angular/common';
3
4
  import { CommonModule } from '@angular/common';
4
- import * as i3 from '@ngx-formly/core';
5
+ import * as i4 from '@ngx-formly/core';
5
6
  import { FieldWrapper, FormlyModule } from '@ngx-formly/core';
6
7
  import * as i1 from 'ngx-formly-zorro-antd/common';
7
8
  import { resolveTplName, resolveTplNameArray } from 'ngx-formly-zorro-antd/common';
8
- import * as i2 from 'ng-zorro-antd/card';
9
+ import * as i3 from 'ng-zorro-antd/card';
9
10
  import { NzCardModule } from 'ng-zorro-antd/card';
10
11
 
11
12
  class FormlyWrapperCard extends FieldWrapper {
@@ -35,6 +36,7 @@ class FormlyWrapperCard extends FieldWrapper {
35
36
  <nz-card
36
37
  [nzActions]="nzActions"
37
38
  [formlyAttributes]="field"
39
+ [ngClass]="props['className']"
38
40
  [nzBodyStyle]="props['bodyStyle'] ?? null"
39
41
  [nzSize]="props['size']!"
40
42
  [nzBorderless]="props['borderless']!!"
@@ -48,7 +50,7 @@ class FormlyWrapperCard extends FieldWrapper {
48
50
  >
49
51
  <ng-container #fieldComponent></ng-container>
50
52
  </nz-card>
51
- `, isInline: true, dependencies: [{ kind: "component", type: i2.NzCardComponent, selector: "nz-card", inputs: ["nzBordered", "nzBorderless", "nzLoading", "nzHoverable", "nzBodyStyle", "nzCover", "nzActions", "nzType", "nzSize", "nzTitle", "nzExtra"], exportAs: ["nzCard"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
53
+ `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i3.NzCardComponent, selector: "nz-card", inputs: ["nzBordered", "nzBorderless", "nzLoading", "nzHoverable", "nzBodyStyle", "nzCover", "nzActions", "nzType", "nzSize", "nzTitle", "nzExtra"], exportAs: ["nzCard"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
52
54
  }
53
55
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyWrapperCard, decorators: [{
54
56
  type: Component,
@@ -58,6 +60,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
58
60
  <nz-card
59
61
  [nzActions]="nzActions"
60
62
  [formlyAttributes]="field"
63
+ [ngClass]="props['className']"
61
64
  [nzBodyStyle]="props['bodyStyle'] ?? null"
62
65
  [nzSize]="props['size']!"
63
66
  [nzBorderless]="props['borderless']!!"
@@ -81,7 +84,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
81
84
  class FormlyNzCardWrapperModule {
82
85
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzCardWrapperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
83
86
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzCardWrapperModule, declarations: [FormlyWrapperCard], imports: [CommonModule,
84
- NzCardModule, i3.FormlyModule] }); }
87
+ NzCardModule, i4.FormlyModule] }); }
85
88
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzCardWrapperModule, imports: [CommonModule,
86
89
  NzCardModule,
87
90
  FormlyModule.forChild({
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-card-wrapper.mjs","sources":["../../../../packages/formlyantd/card-wrapper/src/card.wrapper.ts","../../../../packages/formlyantd/card-wrapper/src/card-wrapper.module.ts","../../../../packages/formlyantd/card-wrapper/src/ngx-formly-zorro-antd-card-wrapper.ts"],"sourcesContent":["import { Component, Type, Optional, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldWrapper } from '@ngx-formly/core';\nimport {\n FormlyBoxTemplates,\n resolveTplName,\n resolveTplNameArray\n} from 'ngx-formly-zorro-antd/common';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { CardWrapperProps } from './card-wrapper.props';\n\nexport interface FormlyCardWrapperConfig extends NzFormlyFieldConfig<CardWrapperProps> {\n wrappers: ('card-wrapper' | Type<FormlyWrapperCard>)[];\n}\n\n@Component({\n selector: 'formly-wrapper-card',\n template: `\n <nz-card\n [nzActions]=\"nzActions\"\n [formlyAttributes]=\"field\"\n [nzBodyStyle]=\"props['bodyStyle'] ?? null\"\n [nzSize]=\"props['size']!\"\n [nzBorderless]=\"props['borderless']!!\"\n [nzCover]=\"nzCover\"\n [nzExtra]=\"nzExtra\"\n [nzHoverable]=\"props['hoverable']!!\"\n [nzLoading]=\"props['loading']!!\"\n [nzTitle]=\"nzTitle\"\n [nzBordered]=\"props['bordered']!!\"\n [nzType]=\"props['type'] ?? null\"\n >\n <ng-container #fieldComponent></ng-container>\n </nz-card>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyWrapperCard extends FieldWrapper<NzFormlyFieldConfig<CardWrapperProps>> {\n override defaultOptions = {\n props: {\n bordered: true\n }\n };\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get nzTitle() {\n return resolveTplName(this.props, this.fieldTemplates, 'title');\n }\n get nzCover() {\n return resolveTplName(this.props, this.fieldTemplates, 'cover');\n }\n get nzExtra() {\n return resolveTplName(this.props, this.fieldTemplates, 'extra');\n }\n get nzActions() {\n return resolveTplNameArray(this.props, this.fieldTemplates, 'actions') || [];\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\n\nimport { FormlyWrapperCard } from './card.wrapper';\nimport { NzCardModule } from 'ng-zorro-antd/card';\n\n@NgModule({\n declarations: [FormlyWrapperCard],\n imports: [\n CommonModule,\n NzCardModule,\n\n FormlyModule.forChild({\n wrappers: [\n {\n name: 'card-wrapper',\n component: FormlyWrapperCard\n }\n ]\n })\n ]\n})\nexport class FormlyNzCardWrapperModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;AAoCM,MAAO,iBAAkB,SAAQ,YAAmD,CAAA;AAOxF,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AANxD,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,QAAQ,EAAE,IAAI;AACf,aAAA;SACF,CAAC;KAID;AAED,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;KACjE;AACD,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC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AQ,CAAC;AACpB,4BAAA,QAAQ,EAAE;AACR,gCAAA;AACE,oCAAA,IAAI,EAAE,cAAc;AACpB,oCAAA,SAAS,EAAE,iBAAiB;AAC7B,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACtBD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-card-wrapper.mjs","sources":["../../../../packages/formlyantd/card-wrapper/src/card.wrapper.ts","../../../../packages/formlyantd/card-wrapper/src/card-wrapper.module.ts","../../../../packages/formlyantd/card-wrapper/src/ngx-formly-zorro-antd-card-wrapper.ts"],"sourcesContent":["import { Component, Type, Optional, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldWrapper } from '@ngx-formly/core';\nimport {\n FormlyBoxTemplates,\n resolveTplName,\n resolveTplNameArray\n} from 'ngx-formly-zorro-antd/common';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { CardWrapperProps } from './card-wrapper.props';\n\nexport interface FormlyCardWrapperConfig extends NzFormlyFieldConfig<CardWrapperProps> {\n wrappers: ('card-wrapper' | Type<FormlyWrapperCard>)[];\n}\n\n@Component({\n selector: 'formly-wrapper-card',\n template: `\n <nz-card\n [nzActions]=\"nzActions\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['className']\"\n [nzBodyStyle]=\"props['bodyStyle'] ?? null\"\n [nzSize]=\"props['size']!\"\n [nzBorderless]=\"props['borderless']!!\"\n [nzCover]=\"nzCover\"\n [nzExtra]=\"nzExtra\"\n [nzHoverable]=\"props['hoverable']!!\"\n [nzLoading]=\"props['loading']!!\"\n [nzTitle]=\"nzTitle\"\n [nzBordered]=\"props['bordered']!!\"\n [nzType]=\"props['type'] ?? null\"\n >\n <ng-container #fieldComponent></ng-container>\n </nz-card>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyWrapperCard extends FieldWrapper<NzFormlyFieldConfig<CardWrapperProps>> {\n override defaultOptions = {\n props: {\n bordered: true\n }\n };\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get nzTitle() {\n return resolveTplName(this.props, this.fieldTemplates, 'title');\n }\n get nzCover() {\n return resolveTplName(this.props, this.fieldTemplates, 'cover');\n }\n get nzExtra() {\n return resolveTplName(this.props, this.fieldTemplates, 'extra');\n }\n get nzActions() {\n return resolveTplNameArray(this.props, this.fieldTemplates, 'actions') || [];\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\n\nimport { FormlyWrapperCard } from './card.wrapper';\nimport { NzCardModule } from 'ng-zorro-antd/card';\n\n@NgModule({\n declarations: [FormlyWrapperCard],\n imports: [\n CommonModule,\n NzCardModule,\n\n FormlyModule.forChild({\n wrappers: [\n {\n name: 'card-wrapper',\n component: FormlyWrapperCard\n }\n ]\n })\n ]\n})\nexport class FormlyNzCardWrapperModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AAqCM,MAAO,iBAAkB,SAAQ,YAAmD,CAAA;AAOxF,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AANxD,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,QAAQ,EAAE,IAAI;AACf,aAAA;SACF,CAAC;KAID;AAED,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;KACjE;AACD,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;KACjE;AACD,IAAA,IAAI,OAAO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oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,QAAQ,EAAE;AACR,gCAAA;AACE,oCAAA,IAAI,EAAE,cAAc;AACpB,oCAAA,SAAS,EAAE,iBAAiB;AAC7B,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACtBD;;AAEG;;;;"}
@@ -1,13 +1,14 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Component, ChangeDetectionStrategy, Optional, NgModule } from '@angular/core';
3
+ import * as i2 from '@angular/common';
3
4
  import { CommonModule } from '@angular/common';
4
- import * as i4 from '@ngx-formly/core';
5
+ import * as i5 from '@ngx-formly/core';
5
6
  import { FieldType, FormlyModule } from '@ngx-formly/core';
6
- import * as i3 from 'ng-zorro-antd/core/outlet';
7
+ import * as i4 from 'ng-zorro-antd/core/outlet';
7
8
  import { NzOutletModule } from 'ng-zorro-antd/core/outlet';
8
9
  import * as i1 from 'ngx-formly-zorro-antd/common';
9
10
  import { resolveTplName, resolveTplNameArray } from 'ngx-formly-zorro-antd/common';
10
- import * as i2 from 'ng-zorro-antd/card';
11
+ import * as i3 from 'ng-zorro-antd/card';
11
12
  import { NzCardModule } from 'ng-zorro-antd/card';
12
13
 
13
14
  class FormlyFieldCard extends FieldType {
@@ -41,6 +42,7 @@ class FormlyFieldCard extends FieldType {
41
42
  <nz-card
42
43
  [nzActions]="nzActions"
43
44
  [formlyAttributes]="field"
45
+ [ngClass]="props['className']"
44
46
  [nzBodyStyle]="props['bodyStyle'] ?? null"
45
47
  [nzSize]="props['size']!"
46
48
  [nzBorderless]="props['borderless']!!"
@@ -61,7 +63,7 @@ class FormlyFieldCard extends FieldType {
61
63
  {{ nzContent }}
62
64
  </ng-container>
63
65
  </nz-card>
64
- `, isInline: true, dependencies: [{ kind: "component", type: i2.NzCardComponent, selector: "nz-card", inputs: ["nzBordered", "nzBorderless", "nzLoading", "nzHoverable", "nzBodyStyle", "nzCover", "nzActions", "nzType", "nzSize", "nzTitle", "nzExtra"], exportAs: ["nzCard"] }, { kind: "directive", type: i3.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "component", type: i4.FormlyField, selector: "formly-field", inputs: ["field"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
66
+ `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i3.NzCardComponent, selector: "nz-card", inputs: ["nzBordered", "nzBorderless", "nzLoading", "nzHoverable", "nzBodyStyle", "nzCover", "nzActions", "nzType", "nzSize", "nzTitle", "nzExtra"], exportAs: ["nzCard"] }, { kind: "directive", type: i4.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "component", type: i5.FormlyField, selector: "formly-field", inputs: ["field"] }, { kind: "directive", type: i5.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
65
67
  }
66
68
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyFieldCard, decorators: [{
67
69
  type: Component,
@@ -71,6 +73,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
71
73
  <nz-card
72
74
  [nzActions]="nzActions"
73
75
  [formlyAttributes]="field"
76
+ [ngClass]="props['className']"
74
77
  [nzBodyStyle]="props['bodyStyle'] ?? null"
75
78
  [nzSize]="props['size']!"
76
79
  [nzBorderless]="props['borderless']!!"
@@ -103,7 +106,7 @@ class FormlyNzCardModule {
103
106
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
104
107
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzCardModule, declarations: [FormlyFieldCard], imports: [CommonModule,
105
108
  NzCardModule,
106
- NzOutletModule, i4.FormlyModule], exports: [FormlyFieldCard] }); }
109
+ NzOutletModule, i5.FormlyModule], exports: [FormlyFieldCard] }); }
107
110
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyNzCardModule, imports: [CommonModule,
108
111
  NzCardModule,
109
112
  NzOutletModule,
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-card.mjs","sources":["../../../../packages/formlyantd/card/src/card.type.ts","../../../../packages/formlyantd/card/src/card.module.ts","../../../../packages/formlyantd/card/src/ngx-formly-zorro-antd-card.ts"],"sourcesContent":["import { Component, TemplateRef, Type, Optional, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport {\n FormlyBoxTemplates,\n resolveTplName,\n resolveTplNameArray\n} from 'ngx-formly-zorro-antd/common';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { CardWrapperProps } from 'ngx-formly-zorro-antd/card-wrapper';\n\ninterface CardProps extends CardWrapperProps {\n /**\n * 内容\n */\n content?: string | TemplateRef<{ $implicit: CardProps; options: CardProps }>;\n contentName?: string;\n}\n\nexport interface FormlyCardFieldConfig extends NzFormlyFieldConfig<CardProps> {\n type: 'card' | Type<FormlyFieldCard>;\n}\n\n@Component({\n selector: 'formly-field-card',\n template: `\n <nz-card\n [nzActions]=\"nzActions\"\n [formlyAttributes]=\"field\"\n [nzBodyStyle]=\"props['bodyStyle'] ?? null\"\n [nzSize]=\"props['size']!\"\n [nzBorderless]=\"props['borderless']!!\"\n [nzCover]=\"nzCover\"\n [nzExtra]=\"nzExtra\"\n [nzHoverable]=\"props['hoverable']!!\"\n [nzLoading]=\"props['loading']!!\"\n [nzTitle]=\"nzTitle\"\n [nzBordered]=\"props['bordered']!!\"\n [nzType]=\"props['type'] ?? null\"\n >\n @for (g of field.fieldGroup; track g.id) {\n <formly-field [field]=\"g\"></formly-field>\n }\n <ng-container\n *nzStringTemplateOutlet=\"nzContent; context: { $implicit: field, options: props }\"\n >\n {{ nzContent }}\n </ng-container>\n </nz-card>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldCard extends FieldType<FieldTypeConfig<CardProps>> {\n override defaultOptions = {\n props: {\n bordered: true,\n type: 'button'\n }\n };\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get nzTitle() {\n return resolveTplName(this.props, this.fieldTemplates, 'title');\n }\n get nzCover() {\n return resolveTplName(this.props, this.fieldTemplates, 'cover');\n }\n get nzExtra() {\n return resolveTplName(this.props, this.fieldTemplates, 'extra');\n }\n get nzActions() {\n return resolveTplNameArray(this.props, this.fieldTemplates, 'actions') || [];\n }\n get nzContent() {\n return resolveTplName(this.props, this.fieldTemplates, 'content');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\nimport { FormlyFieldCard } from './card.type';\nimport { NzCardModule } from 'ng-zorro-antd/card';\n\nconst COMPONENT = FormlyFieldCard;\n\n@NgModule({\n declarations: [COMPONENT],\n imports: [\n CommonModule,\n NzCardModule,\n NzOutletModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'card',\n component: COMPONENT\n }\n ]\n })\n ],\n exports: [COMPONENT]\n})\nexport class Forml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AM;AACZ,oCAAA,SAAS,EAAE,SAAS;AACrB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;oBACD,OAAO,EAAE,CAAC,SAAS,CAAC;AACrB,iBAAA,CAAA;;;ACzBD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-card.mjs","sources":["../../../../packages/formlyantd/card/src/card.type.ts","../../../../packages/formlyantd/card/src/card.module.ts","../../../../packages/formlyantd/card/src/ngx-formly-zorro-antd-card.ts"],"sourcesContent":["import { Component, TemplateRef, Type, Optional, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport {\n FormlyBoxTemplates,\n resolveTplName,\n resolveTplNameArray\n} from 'ngx-formly-zorro-antd/common';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { CardWrapperProps } from 'ngx-formly-zorro-antd/card-wrapper';\n\ninterface CardProps extends CardWrapperProps {\n /**\n * 内容\n */\n content?: string | TemplateRef<{ $implicit: CardProps; options: CardProps }>;\n contentName?: string;\n}\n\nexport interface FormlyCardFieldConfig extends NzFormlyFieldConfig<CardProps> {\n type: 'card' | Type<FormlyFieldCard>;\n}\n\n@Component({\n selector: 'formly-field-card',\n template: `\n <nz-card\n [nzActions]=\"nzActions\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['className']\"\n [nzBodyStyle]=\"props['bodyStyle'] ?? null\"\n [nzSize]=\"props['size']!\"\n [nzBorderless]=\"props['borderless']!!\"\n [nzCover]=\"nzCover\"\n [nzExtra]=\"nzExtra\"\n [nzHoverable]=\"props['hoverable']!!\"\n [nzLoading]=\"props['loading']!!\"\n [nzTitle]=\"nzTitle\"\n [nzBordered]=\"props['bordered']!!\"\n [nzType]=\"props['type'] ?? null\"\n >\n @for (g of field.fieldGroup; track g.id) {\n <formly-field [field]=\"g\"></formly-field>\n }\n <ng-container\n *nzStringTemplateOutlet=\"nzContent; context: { $implicit: field, options: props }\"\n >\n {{ nzContent }}\n </ng-container>\n </nz-card>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldCard extends FieldType<FieldTypeConfig<CardProps>> {\n override defaultOptions = {\n props: {\n bordered: true,\n type: 'button'\n }\n };\n\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\n super();\n }\n\n get nzTitle() {\n return resolveTplName(this.props, this.fieldTemplates, 'title');\n }\n get nzCover() {\n return resolveTplName(this.props, this.fieldTemplates, 'cover');\n }\n get nzExtra() {\n return resolveTplName(this.props, this.fieldTemplates, 'extra');\n }\n get nzActions() {\n return resolveTplNameArray(this.props, this.fieldTemplates, 'actions') || [];\n }\n get nzContent() {\n return resolveTplName(this.props, this.fieldTemplates, 'content');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\nimport { FormlyFieldCard } from './card.type';\nimport { NzCardModule } from 'ng-zorro-antd/card';\n\nconst COMPONENT = FormlyFieldCard;\n\n@NgModule({\n declarations: [COMPONENT],\n imports: [\n CommonModule,\n NzCardModule,\n NzOutletModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'card',\n component: COMPONENT\n }\n ]\n })\n ],\n exports: [COMPONENT]\n})\nexport class FormlyNzCardModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAoDM,MAAO,eAAgB,SAAQ,SAAqC,CAAA;AAQxE,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AAPxD,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,QAAQ,EAAE,IAAI;AACd,gBAAA,IAAI,EAAE,QAAQ;AACf,aAAA;SACF,CAAC;KAID;AAED,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ngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyFieldDatepicker, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
39
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.3", type: FormlyFieldDatepicker, selector: "formly-field-datepicker", usesInheritance: true, ngImport: i0, template: `<ng-container [ngSwitch]="props.type">
40
- <nz-range-picker
41
- *ngSwitchCase="'range'"
42
- [nzId]="id"
43
- [formControl]="formControl"
44
- [formlyAttributes]="field"
45
- [ngClass]="props['className']"
46
- [nzPlaceHolder]="props.placeholder ?? ''"
47
- [nzAllowClear]="props['allowClear']!!"
48
- [nzAutoFocus]="props['autoFocus']!!"
49
- [nzBackdrop]="props['backdrop']!!"
50
- [nzDefaultPickerValue]="props['defaultPickerValue']"
51
- [nzDisabledDate]="props['disabledDate']"
52
- [nzDropdownClassName]="props['dropdownClassName']"
53
- [nzFormat]="props['format']"
54
- [nzInputReadOnly]="props['inputReadOnly']!!"
55
- [nzMode]="props['mode']"
56
- [nzPopupStyle]="props['popupStyle']"
57
- [nzSize]="props['size']"
58
- [nzStatus]="props['status'] ?? ''"
59
- [nzPlacement]="props['placement']"
60
- [nzRenderExtraFooter]="props['renderExtraFooter']"
61
- [nzSuffixIcon]="props['suffixIcon']"
62
- [nzBorderless]="props['borderless']"
63
- [nzInline]="props['inline']"
64
- [nzDateRender]="props['dateRender']"
65
- [nzDisabledTime]="props['rangeOptions']?.disabledTime"
66
- [nzShowTime]="props['showTime']"
67
- [nzShowToday]="props['showToday']!!"
68
- [nzShowNow]="props['showNow']!!"
69
- [nzShowWeekNumber]="props['showWeekNumber']!!"
70
- [nzRanges]="props['rangeOptions']?.ranges"
71
- [nzSeparator]="props['rangeOptions']?.separator"
72
- (nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
73
- (nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
74
- (nzOnCalendarChange)="
75
- props['rangeOptions']?.calendarChange &&
76
- props['rangeOptions']?.calendarChange(field, $event)
77
- "
78
- (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
79
- ></nz-range-picker>
80
-
81
- <nz-date-picker
82
- *ngSwitchDefault
83
- [nzId]="id"
84
- [formControl]="formControl"
85
- [formlyAttributes]="field"
86
- [ngClass]="props['className']"
87
- [nzPlaceHolder]="props.placeholder ?? ''"
88
- [nzAllowClear]="props['allowClear']!!"
89
- [nzAutoFocus]="props['autoFocus']!!"
90
- [nzBackdrop]="props['backdrop']!!"
91
- [nzDefaultPickerValue]="props['defaultPickerValue']"
92
- [nzDisabledDate]="props['disabledDate']"
93
- [nzDropdownClassName]="props['dropdownClassName']"
94
- [nzFormat]="props['format']"
95
- [nzInputReadOnly]="props['inputReadOnly']!!"
96
- [nzMode]="props['mode']"
97
- [nzPopupStyle]="props['popupStyle']!"
98
- [nzSize]="props['size']!"
99
- [nzStatus]="props['status']!"
100
- [nzPlacement]="props['placement']!"
101
- [nzRenderExtraFooter]="props['renderExtraFooter']"
102
- [nzSuffixIcon]="props['suffixIcon']"
103
- [nzBorderless]="props['borderless']"
104
- [nzInline]="props['inline']"
105
- [nzDateRender]="props['dateRender']"
106
- [nzDisabledTime]="props['disabledTime']"
107
- [nzShowTime]="props['showTime']"
108
- [nzShowToday]="props['showToday']!!"
109
- [nzShowNow]="props['showNow']!!"
110
- [nzShowWeekNumber]="props['showWeekNumber']!!"
111
- (nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
112
- (nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
113
- (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
114
- ></nz-date-picker>
115
- </ng-container>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-year-picker,nz-range-picker", inputs: ["nzAllowClear", "nzAutoFocus", "nzDisabled", "nzBorderless", "nzInputReadOnly", "nzInline", "nzOpen", "nzDisabledDate", "nzLocale", "nzPlaceHolder", "nzPopupStyle", "nzDropdownClassName", "nzSize", "nzStatus", "nzFormat", "nzDateRender", "nzDisabledTime", "nzRenderExtraFooter", "nzShowToday", "nzMode", "nzShowNow", "nzRanges", "nzDefaultPickerValue", "nzSeparator", "nzSuffixIcon", "nzBackdrop", "nzId", "nzPlacement", "nzShowWeekNumber", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }, { kind: "directive", type: i3.NzRangePickerComponent, selector: "nz-range-picker", exportAs: ["nzRangePicker"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
39
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.3", type: FormlyFieldDatepicker, selector: "formly-field-datepicker", usesInheritance: true, ngImport: i0, template: ` @if (props.type === 'range') {
40
+ <nz-range-picker
41
+ [nzId]="id"
42
+ [formControl]="formControl"
43
+ [formlyAttributes]="field"
44
+ [ngClass]="props['className']"
45
+ [nzPlaceHolder]="props.placeholder ?? ''"
46
+ [nzAllowClear]="props['allowClear']!!"
47
+ [nzAutoFocus]="props['autoFocus']!!"
48
+ [nzBackdrop]="props['backdrop']!!"
49
+ [nzDefaultPickerValue]="props['defaultPickerValue']"
50
+ [nzDisabledDate]="props['disabledDate']"
51
+ [nzDropdownClassName]="props['dropdownClassName']"
52
+ [nzFormat]="props['format']"
53
+ [nzInputReadOnly]="props['inputReadOnly']!!"
54
+ [nzMode]="props['mode']"
55
+ [nzPopupStyle]="props['popupStyle']"
56
+ [nzSize]="props['size']"
57
+ [nzStatus]="props['status'] ?? ''"
58
+ [nzPlacement]="props['placement']"
59
+ [nzRenderExtraFooter]="props['renderExtraFooter']"
60
+ [nzSuffixIcon]="props['suffixIcon']"
61
+ [nzBorderless]="props['borderless']"
62
+ [nzInline]="props['inline']"
63
+ [nzDateRender]="props['dateRender']"
64
+ [nzDisabledTime]="props['rangeOptions']?.disabledTime"
65
+ [nzShowTime]="props['showTime']"
66
+ [nzShowToday]="props['showToday']!!"
67
+ [nzShowNow]="props['showNow']!!"
68
+ [nzShowWeekNumber]="props['showWeekNumber']!!"
69
+ [nzRanges]="props['rangeOptions']?.ranges"
70
+ [nzSeparator]="props['rangeOptions']?.separator"
71
+ (nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
72
+ (nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
73
+ (nzOnCalendarChange)="
74
+ props['rangeOptions']?.calendarChange &&
75
+ props['rangeOptions']?.calendarChange(field, $event)
76
+ "
77
+ (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
78
+ ></nz-range-picker>
79
+ } @else {
80
+ <nz-date-picker
81
+ [nzId]="id"
82
+ [formControl]="formControl"
83
+ [formlyAttributes]="field"
84
+ [ngClass]="props['className']"
85
+ [nzPlaceHolder]="props.placeholder ?? ''"
86
+ [nzAllowClear]="props['allowClear']!!"
87
+ [nzAutoFocus]="props['autoFocus']!!"
88
+ [nzBackdrop]="props['backdrop']!!"
89
+ [nzDefaultPickerValue]="props['defaultPickerValue']"
90
+ [nzDisabledDate]="props['disabledDate']"
91
+ [nzDropdownClassName]="props['dropdownClassName']"
92
+ [nzFormat]="props['format']"
93
+ [nzInputReadOnly]="props['inputReadOnly']!!"
94
+ [nzMode]="props['mode']"
95
+ [nzPopupStyle]="props['popupStyle']!"
96
+ [nzSize]="props['size']!"
97
+ [nzStatus]="props['status']!"
98
+ [nzPlacement]="props['placement']!"
99
+ [nzRenderExtraFooter]="props['renderExtraFooter']"
100
+ [nzSuffixIcon]="props['suffixIcon']"
101
+ [nzBorderless]="props['borderless']"
102
+ [nzInline]="props['inline']"
103
+ [nzDateRender]="props['dateRender']"
104
+ [nzDisabledTime]="props['disabledTime']"
105
+ [nzShowTime]="props['showTime']"
106
+ [nzShowToday]="props['showToday']!!"
107
+ [nzShowNow]="props['showNow']!!"
108
+ [nzShowWeekNumber]="props['showWeekNumber']!!"
109
+ (nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
110
+ (nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
111
+ (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
112
+ ></nz-date-picker>
113
+ }`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-year-picker,nz-range-picker", inputs: ["nzAllowClear", "nzAutoFocus", "nzDisabled", "nzBorderless", "nzInputReadOnly", "nzInline", "nzOpen", "nzDisabledDate", "nzLocale", "nzPlaceHolder", "nzPopupStyle", "nzDropdownClassName", "nzSize", "nzStatus", "nzFormat", "nzDateRender", "nzDisabledTime", "nzRenderExtraFooter", "nzShowToday", "nzMode", "nzShowNow", "nzRanges", "nzDefaultPickerValue", "nzSeparator", "nzSuffixIcon", "nzBackdrop", "nzId", "nzPlacement", "nzShowWeekNumber", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }, { kind: "directive", type: i3.NzRangePickerComponent, selector: "nz-range-picker", exportAs: ["nzRangePicker"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
116
114
  }
117
115
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: FormlyFieldDatepicker, decorators: [{
118
116
  type: Component,
119
117
  args: [{
120
118
  selector: 'formly-field-datepicker',
121
- template: `<ng-container [ngSwitch]="props.type">
122
- <nz-range-picker
123
- *ngSwitchCase="'range'"
124
- [nzId]="id"
125
- [formControl]="formControl"
126
- [formlyAttributes]="field"
127
- [ngClass]="props['className']"
128
- [nzPlaceHolder]="props.placeholder ?? ''"
129
- [nzAllowClear]="props['allowClear']!!"
130
- [nzAutoFocus]="props['autoFocus']!!"
131
- [nzBackdrop]="props['backdrop']!!"
132
- [nzDefaultPickerValue]="props['defaultPickerValue']"
133
- [nzDisabledDate]="props['disabledDate']"
134
- [nzDropdownClassName]="props['dropdownClassName']"
135
- [nzFormat]="props['format']"
136
- [nzInputReadOnly]="props['inputReadOnly']!!"
137
- [nzMode]="props['mode']"
138
- [nzPopupStyle]="props['popupStyle']"
139
- [nzSize]="props['size']"
140
- [nzStatus]="props['status'] ?? ''"
141
- [nzPlacement]="props['placement']"
142
- [nzRenderExtraFooter]="props['renderExtraFooter']"
143
- [nzSuffixIcon]="props['suffixIcon']"
144
- [nzBorderless]="props['borderless']"
145
- [nzInline]="props['inline']"
146
- [nzDateRender]="props['dateRender']"
147
- [nzDisabledTime]="props['rangeOptions']?.disabledTime"
148
- [nzShowTime]="props['showTime']"
149
- [nzShowToday]="props['showToday']!!"
150
- [nzShowNow]="props['showNow']!!"
151
- [nzShowWeekNumber]="props['showWeekNumber']!!"
152
- [nzRanges]="props['rangeOptions']?.ranges"
153
- [nzSeparator]="props['rangeOptions']?.separator"
154
- (nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
155
- (nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
156
- (nzOnCalendarChange)="
157
- props['rangeOptions']?.calendarChange &&
158
- props['rangeOptions']?.calendarChange(field, $event)
159
- "
160
- (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
161
- ></nz-range-picker>
162
-
163
- <nz-date-picker
164
- *ngSwitchDefault
165
- [nzId]="id"
166
- [formControl]="formControl"
167
- [formlyAttributes]="field"
168
- [ngClass]="props['className']"
169
- [nzPlaceHolder]="props.placeholder ?? ''"
170
- [nzAllowClear]="props['allowClear']!!"
171
- [nzAutoFocus]="props['autoFocus']!!"
172
- [nzBackdrop]="props['backdrop']!!"
173
- [nzDefaultPickerValue]="props['defaultPickerValue']"
174
- [nzDisabledDate]="props['disabledDate']"
175
- [nzDropdownClassName]="props['dropdownClassName']"
176
- [nzFormat]="props['format']"
177
- [nzInputReadOnly]="props['inputReadOnly']!!"
178
- [nzMode]="props['mode']"
179
- [nzPopupStyle]="props['popupStyle']!"
180
- [nzSize]="props['size']!"
181
- [nzStatus]="props['status']!"
182
- [nzPlacement]="props['placement']!"
183
- [nzRenderExtraFooter]="props['renderExtraFooter']"
184
- [nzSuffixIcon]="props['suffixIcon']"
185
- [nzBorderless]="props['borderless']"
186
- [nzInline]="props['inline']"
187
- [nzDateRender]="props['dateRender']"
188
- [nzDisabledTime]="props['disabledTime']"
189
- [nzShowTime]="props['showTime']"
190
- [nzShowToday]="props['showToday']!!"
191
- [nzShowNow]="props['showNow']!!"
192
- [nzShowWeekNumber]="props['showWeekNumber']!!"
193
- (nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
194
- (nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
195
- (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
196
- ></nz-date-picker>
197
- </ng-container>`,
119
+ template: ` @if (props.type === 'range') {
120
+ <nz-range-picker
121
+ [nzId]="id"
122
+ [formControl]="formControl"
123
+ [formlyAttributes]="field"
124
+ [ngClass]="props['className']"
125
+ [nzPlaceHolder]="props.placeholder ?? ''"
126
+ [nzAllowClear]="props['allowClear']!!"
127
+ [nzAutoFocus]="props['autoFocus']!!"
128
+ [nzBackdrop]="props['backdrop']!!"
129
+ [nzDefaultPickerValue]="props['defaultPickerValue']"
130
+ [nzDisabledDate]="props['disabledDate']"
131
+ [nzDropdownClassName]="props['dropdownClassName']"
132
+ [nzFormat]="props['format']"
133
+ [nzInputReadOnly]="props['inputReadOnly']!!"
134
+ [nzMode]="props['mode']"
135
+ [nzPopupStyle]="props['popupStyle']"
136
+ [nzSize]="props['size']"
137
+ [nzStatus]="props['status'] ?? ''"
138
+ [nzPlacement]="props['placement']"
139
+ [nzRenderExtraFooter]="props['renderExtraFooter']"
140
+ [nzSuffixIcon]="props['suffixIcon']"
141
+ [nzBorderless]="props['borderless']"
142
+ [nzInline]="props['inline']"
143
+ [nzDateRender]="props['dateRender']"
144
+ [nzDisabledTime]="props['rangeOptions']?.disabledTime"
145
+ [nzShowTime]="props['showTime']"
146
+ [nzShowToday]="props['showToday']!!"
147
+ [nzShowNow]="props['showNow']!!"
148
+ [nzShowWeekNumber]="props['showWeekNumber']!!"
149
+ [nzRanges]="props['rangeOptions']?.ranges"
150
+ [nzSeparator]="props['rangeOptions']?.separator"
151
+ (nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
152
+ (nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
153
+ (nzOnCalendarChange)="
154
+ props['rangeOptions']?.calendarChange &&
155
+ props['rangeOptions']?.calendarChange(field, $event)
156
+ "
157
+ (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
158
+ ></nz-range-picker>
159
+ } @else {
160
+ <nz-date-picker
161
+ [nzId]="id"
162
+ [formControl]="formControl"
163
+ [formlyAttributes]="field"
164
+ [ngClass]="props['className']"
165
+ [nzPlaceHolder]="props.placeholder ?? ''"
166
+ [nzAllowClear]="props['allowClear']!!"
167
+ [nzAutoFocus]="props['autoFocus']!!"
168
+ [nzBackdrop]="props['backdrop']!!"
169
+ [nzDefaultPickerValue]="props['defaultPickerValue']"
170
+ [nzDisabledDate]="props['disabledDate']"
171
+ [nzDropdownClassName]="props['dropdownClassName']"
172
+ [nzFormat]="props['format']"
173
+ [nzInputReadOnly]="props['inputReadOnly']!!"
174
+ [nzMode]="props['mode']"
175
+ [nzPopupStyle]="props['popupStyle']!"
176
+ [nzSize]="props['size']!"
177
+ [nzStatus]="props['status']!"
178
+ [nzPlacement]="props['placement']!"
179
+ [nzRenderExtraFooter]="props['renderExtraFooter']"
180
+ [nzSuffixIcon]="props['suffixIcon']"
181
+ [nzBorderless]="props['borderless']"
182
+ [nzInline]="props['inline']"
183
+ [nzDateRender]="props['dateRender']"
184
+ [nzDisabledTime]="props['disabledTime']"
185
+ [nzShowTime]="props['showTime']"
186
+ [nzShowToday]="props['showToday']!!"
187
+ [nzShowNow]="props['showNow']!!"
188
+ [nzShowWeekNumber]="props['showWeekNumber']!!"
189
+ (nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
190
+ (nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
191
+ (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
192
+ ></nz-date-picker>
193
+ }`,
198
194
  changeDetection: ChangeDetectionStrategy.OnPush
199
195
  }]
200
196
  }] });
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-datepicker.mjs","sources":["../../../../packages/formlyantd/datepicker/src/datepicker.type.ts","../../../../packages/formlyantd/datepicker/src/datepicker.module.ts","../../../../packages/formlyantd/datepicker/src/ngx-formly-zorro-antd-datepicker.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { DatepickerProps } from './datepicker.props';\n\nexport interface FormlyDatepickerFieldConfig extends NzFormlyFieldConfig<DatepickerProps> {\n type: 'datepicker' | Type<FormlyFieldDatepicker>;\n}\n\n@Component({\n selector: 'formly-field-datepicker',\n template: `<ng-container [ngSwitch]=\"props.type\">\n <nz-range-picker\n *ngSwitchCase=\"'range'\"\n [nzId]=\"id\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['className']\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzDefaultPickerValue]=\"props['defaultPickerValue']\"\n [nzDisabledDate]=\"props['disabledDate']\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzFormat]=\"props['format']\"\n [nzInputReadOnly]=\"props['inputReadOnly']!!\"\n [nzMode]=\"props['mode']\"\n [nzPopupStyle]=\"props['popupStyle']\"\n [nzSize]=\"props['size']\"\n [nzStatus]=\"props['status'] ?? ''\"\n [nzPlacement]=\"props['placement']\"\n [nzRenderExtraFooter]=\"props['renderExtraFooter']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzBorderless]=\"props['borderless']\"\n [nzInline]=\"props['inline']\"\n [nzDateRender]=\"props['dateRender']\"\n [nzDisabledTime]=\"props['rangeOptions']?.disabledTime\"\n [nzShowTime]=\"props['showTime']\"\n [nzShowToday]=\"props['showToday']!!\"\n [nzShowNow]=\"props['showNow']!!\"\n [nzShowWeekNumber]=\"props['showWeekNumber']!!\"\n [nzRanges]=\"props['rangeOptions']?.ranges\"\n [nzSeparator]=\"props['rangeOptions']?.separator\"\n (nzOnOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\n (nzOnOk)=\"props['onOk'] && props['onOk'](field, $event)\"\n (nzOnCalendarChange)=\"\n props['rangeOptions']?.calendarChange &&\n props['rangeOptions']?.calendarChange(field, $event)\n \"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n ></nz-range-picker>\n\n <nz-date-picker\n *ngSwitchDefault\n [nzId]=\"id\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['className']\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzDefaultPickerValue]=\"props['defaultPickerValue']\"\n [nzDisabledDate]=\"props['disabledDate']\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzFormat]=\"props['format']\"\n [nzInputReadOnly]=\"props['inputReadOnly']!!\"\n [nzMode]=\"props['mode']\"\n [nzPopupStyle]=\"props['popupStyle']!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzPlacement]=\"props['placement']!\"\n [nzRenderExtraFooter]=\"props['renderExtraFooter']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzBorderless]=\"props['borderless']\"\n [nzInline]=\"props['inline']\"\n [nzDateRender]=\"props['dateRender']\"\n [nzDisabledTime]=\"props['disabledTime']\"\n [nzShowTime]=\"props['showTime']\"\n [nzShowToday]=\"props['showToday']!!\"\n [nzShowNow]=\"props['showNow']!!\"\n [nzShowWeekNumber]=\"props['showWeekNumber']!!\"\n (nzOnOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\n (nzOnOk)=\"props['onOk'] && props['onOk'](field, $event)\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n ></nz-date-picker>\n </ng-container>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldDatepicker extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n allowClear: true,\n backdrop: false,\n defaultPickerValue: null,\n inputReadOnly: false,\n mode: 'date' as const,\n size: 'default' as const,\n status: '' as const,\n placement: 'bottomLeft' as const,\n popupStyle: {},\n borderless: false,\n inline: false,\n showToday: true,\n showNow: true,\n nzShowWeekNumber: false,\n rangeOptions: {\n separator: '~'\n }\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzDatePickerModule } from 'ng-zorro-antd/date-picker';\nimport { FormlyFieldDatepicker } from './datepicker.type';\n\n@NgModule({\n declarations: [FormlyFieldDatepicker],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzDatePickerModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'datepicker',\n component: FormlyFieldDatepicker,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzDatepickerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AA0FM,MAAO,qBAAsB,SAAQ,SAA0B,CAAA;AAjFrE,IAAA,WAAA,GAAA;;AAkFW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,kBAAkB,EAAE,IAAI;AACxB,gBAAA,aAAa,EAAE,KAAK;AACpB,gBAAA,IAAI,EAAE,MAAe;AACrB,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,SAAS,EAAE,YAAqB;AAChC,gBAAA,UAAU,EAAE,EAAE;AACd,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,MAAM,EAAE,KAAK;AACb,gBAAA,SAAS,EAAE,IAAI;AACf,gBAAA,OAAO,EAAE,IAAI;AACb,gBAAA,gBAAgB,EAAE,KAAK;AACvB,gBAAA,YAAY,EAAE;AACZ,o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;wBAElB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,YAAY;AAClB,oCAAA,SAAS,EAAE,qBAAqB;oCAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC5BD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-datepicker.mjs","sources":["../../../../packages/formlyantd/datepicker/src/datepicker.type.ts","../../../../packages/formlyantd/datepicker/src/datepicker.module.ts","../../../../packages/formlyantd/datepicker/src/ngx-formly-zorro-antd-datepicker.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { DatepickerProps } from './datepicker.props';\n\nexport interface FormlyDatepickerFieldConfig extends NzFormlyFieldConfig<DatepickerProps> {\n type: 'datepicker' | Type<FormlyFieldDatepicker>;\n}\n\n@Component({\n selector: 'formly-field-datepicker',\n template: ` @if (props.type === 'range') {\n <nz-range-picker\n [nzId]=\"id\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['className']\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzDefaultPickerValue]=\"props['defaultPickerValue']\"\n [nzDisabledDate]=\"props['disabledDate']\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzFormat]=\"props['format']\"\n [nzInputReadOnly]=\"props['inputReadOnly']!!\"\n [nzMode]=\"props['mode']\"\n [nzPopupStyle]=\"props['popupStyle']\"\n [nzSize]=\"props['size']\"\n [nzStatus]=\"props['status'] ?? ''\"\n [nzPlacement]=\"props['placement']\"\n [nzRenderExtraFooter]=\"props['renderExtraFooter']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzBorderless]=\"props['borderless']\"\n [nzInline]=\"props['inline']\"\n [nzDateRender]=\"props['dateRender']\"\n [nzDisabledTime]=\"props['rangeOptions']?.disabledTime\"\n [nzShowTime]=\"props['showTime']\"\n [nzShowToday]=\"props['showToday']!!\"\n [nzShowNow]=\"props['showNow']!!\"\n [nzShowWeekNumber]=\"props['showWeekNumber']!!\"\n [nzRanges]=\"props['rangeOptions']?.ranges\"\n [nzSeparator]=\"props['rangeOptions']?.separator\"\n (nzOnOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\n (nzOnOk)=\"props['onOk'] && props['onOk'](field, $event)\"\n (nzOnCalendarChange)=\"\n props['rangeOptions']?.calendarChange &&\n props['rangeOptions']?.calendarChange(field, $event)\n \"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n ></nz-range-picker>\n } @else {\n <nz-date-picker\n [nzId]=\"id\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['className']\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzDefaultPickerValue]=\"props['defaultPickerValue']\"\n [nzDisabledDate]=\"props['disabledDate']\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzFormat]=\"props['format']\"\n [nzInputReadOnly]=\"props['inputReadOnly']!!\"\n [nzMode]=\"props['mode']\"\n [nzPopupStyle]=\"props['popupStyle']!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzPlacement]=\"props['placement']!\"\n [nzRenderExtraFooter]=\"props['renderExtraFooter']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzBorderless]=\"props['borderless']\"\n [nzInline]=\"props['inline']\"\n [nzDateRender]=\"props['dateRender']\"\n [nzDisabledTime]=\"props['disabledTime']\"\n [nzShowTime]=\"props['showTime']\"\n [nzShowToday]=\"props['showToday']!!\"\n [nzShowNow]=\"props['showNow']!!\"\n [nzShowWeekNumber]=\"props['showWeekNumber']!!\"\n (nzOnOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\n (nzOnOk)=\"props['onOk'] && props['onOk'](field, $event)\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n ></nz-date-picker>\n }`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldDatepicker extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n allowClear: true,\n backdrop: false,\n defaultPickerValue: null,\n inputReadOnly: false,\n mode: 'date' as const,\n size: 'default' as const,\n status: '' as const,\n placement: 'bottomLeft' as const,\n popupStyle: {},\n borderless: false,\n inline: false,\n showToday: true,\n showNow: true,\n nzShowWeekNumber: false,\n rangeOptions: {\n separator: '~'\n }\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzDatePickerModule } from 'ng-zorro-antd/date-picker';\nimport { FormlyFieldDatepicker } from './datepicker.type';\n\n@NgModule({\n declarations: [FormlyFieldDatepicker],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzDatePickerModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'datepicker',\n component: FormlyFieldDatepicker,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzDatepickerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAwFM,MAAO,qBAAsB,SAAQ,SAA0B,CAAA;AA/ErE,IAAA,WAAA,GAAA;;AAg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