ngx-formly-zorro-antd 17.1.0 → 17.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. package/card/card.module.d.ts +1 -1
  2. package/esm2022/button/button.module.mjs +4 -4
  3. package/esm2022/button/button.type.mjs +3 -3
  4. package/esm2022/button-group/button-group.module.mjs +4 -4
  5. package/esm2022/button-group/button-group.type.mjs +3 -3
  6. package/esm2022/card/card.module.mjs +7 -8
  7. package/esm2022/card/card.type.mjs +3 -3
  8. package/esm2022/card-wrapper/card-wrapper.module.mjs +4 -4
  9. package/esm2022/card-wrapper/card.wrapper.mjs +3 -3
  10. package/esm2022/cascader/cascader.module.mjs +4 -4
  11. package/esm2022/cascader/cascader.type.mjs +3 -3
  12. package/esm2022/checkbox/checkbox.module.mjs +4 -4
  13. package/esm2022/checkbox/checkbox.type.mjs +3 -3
  14. package/esm2022/common/common.module.mjs +4 -4
  15. package/esm2022/common/formly-box-templates.directive.mjs +3 -3
  16. package/esm2022/datepicker/datepicker.module.mjs +4 -4
  17. package/esm2022/datepicker/datepicker.type.mjs +3 -3
  18. package/esm2022/flex/flex.module.mjs +41 -0
  19. package/esm2022/flex/flex.type.mjs +66 -0
  20. package/esm2022/flex/ngx-formly-zorro-antd-flex.mjs +5 -0
  21. package/esm2022/flex/public_api.mjs +3 -0
  22. package/esm2022/form-field/form-field.module.mjs +4 -4
  23. package/esm2022/form-field/form-field.props.mjs +1 -1
  24. package/esm2022/form-field/form-field.wrapper.mjs +38 -4
  25. package/esm2022/grid/grid.module.mjs +4 -4
  26. package/esm2022/grid/grid.type.mjs +3 -3
  27. package/esm2022/input/input.module.mjs +4 -4
  28. package/esm2022/input/input.props.mjs +1 -1
  29. package/esm2022/input/input.type.mjs +3 -3
  30. package/esm2022/input/public_api.mjs +1 -1
  31. package/esm2022/input-group/input-group.module.mjs +4 -4
  32. package/esm2022/input-group/input-group.props.mjs +1 -1
  33. package/esm2022/input-group/input-group.type.mjs +3 -3
  34. package/esm2022/input-group/public_api.mjs +1 -1
  35. package/esm2022/input-number/input-number.module.mjs +4 -4
  36. package/esm2022/input-number/input-number.type.mjs +3 -3
  37. package/esm2022/lib/ui-ng-zorro-antd.module.mjs +12 -8
  38. package/esm2022/radio/radio.module.mjs +4 -4
  39. package/esm2022/radio/radio.type.mjs +3 -3
  40. package/esm2022/rate/rate.module.mjs +4 -4
  41. package/esm2022/rate/rate.type.mjs +3 -3
  42. package/esm2022/ref-template/ref-template.module.mjs +4 -4
  43. package/esm2022/ref-template/ref-template.type.mjs +3 -3
  44. package/esm2022/select/select.module.mjs +4 -4
  45. package/esm2022/select/select.type.mjs +3 -3
  46. package/esm2022/slider/slider.module.mjs +4 -4
  47. package/esm2022/slider/slider.type.mjs +3 -3
  48. package/esm2022/space/space.module.mjs +4 -4
  49. package/esm2022/space/space.type.mjs +3 -3
  50. package/esm2022/switch/switch.module.mjs +4 -4
  51. package/esm2022/switch/switch.type.mjs +3 -3
  52. package/esm2022/tabs/tabs.module.mjs +4 -4
  53. package/esm2022/tabs/tabs.wrapper.mjs +3 -3
  54. package/esm2022/text-value/text-value.module.mjs +4 -4
  55. package/esm2022/text-value/text-value.type.mjs +3 -3
  56. package/esm2022/textarea/textarea.module.mjs +4 -4
  57. package/esm2022/textarea/textarea.type.mjs +3 -3
  58. package/esm2022/timepicker/timepicker.module.mjs +4 -4
  59. package/esm2022/timepicker/timepicker.type.mjs +3 -3
  60. package/esm2022/transfer/transfer.component.mjs +3 -3
  61. package/esm2022/transfer/transfer.module.mjs +4 -4
  62. package/esm2022/transfer/transfer.type.mjs +3 -3
  63. package/esm2022/tree-select/tree-select.module.mjs +4 -4
  64. package/esm2022/tree-select/tree-select.type.mjs +3 -3
  65. package/esm2022/upload/upload.component.mjs +3 -3
  66. package/esm2022/upload/upload.module.mjs +4 -4
  67. package/esm2022/upload/upload.type.mjs +3 -3
  68. package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +7 -7
  69. package/fesm2022/ngx-formly-zorro-antd-button.mjs +7 -7
  70. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +7 -7
  71. package/fesm2022/ngx-formly-zorro-antd-card.mjs +9 -10
  72. package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
  73. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +7 -7
  74. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +7 -7
  75. package/fesm2022/ngx-formly-zorro-antd-common.mjs +7 -7
  76. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +7 -7
  77. package/fesm2022/ngx-formly-zorro-antd-flex.mjs +109 -0
  78. package/fesm2022/ngx-formly-zorro-antd-flex.mjs.map +1 -0
  79. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +41 -7
  80. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  81. package/fesm2022/ngx-formly-zorro-antd-grid.mjs +7 -7
  82. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +7 -7
  83. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +7 -7
  84. package/fesm2022/ngx-formly-zorro-antd-input.mjs +7 -7
  85. package/fesm2022/ngx-formly-zorro-antd-radio.mjs +7 -7
  86. package/fesm2022/ngx-formly-zorro-antd-rate.mjs +7 -7
  87. package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +7 -7
  88. package/fesm2022/ngx-formly-zorro-antd-select.mjs +7 -7
  89. package/fesm2022/ngx-formly-zorro-antd-slider.mjs +7 -7
  90. package/fesm2022/ngx-formly-zorro-antd-space.mjs +7 -7
  91. package/fesm2022/ngx-formly-zorro-antd-switch.mjs +7 -7
  92. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +7 -7
  93. package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +7 -7
  94. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +7 -7
  95. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +7 -7
  96. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +10 -10
  97. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +7 -7
  98. package/fesm2022/ngx-formly-zorro-antd-upload.mjs +10 -10
  99. package/fesm2022/ngx-formly-zorro-antd.mjs +11 -7
  100. package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
  101. package/flex/flex.module.d.ts +10 -0
  102. package/flex/flex.type.d.ts +48 -0
  103. package/flex/index.d.ts +5 -0
  104. package/flex/public_api.d.ts +2 -0
  105. package/form-field/form-field.props.d.ts +16 -0
  106. package/form-field/form-field.wrapper.d.ts +4 -0
  107. package/input/input.props.d.ts +4 -2
  108. package/input/public_api.d.ts +1 -0
  109. package/input-group/input-group.props.d.ts +2 -0
  110. package/input-group/public_api.d.ts +1 -1
  111. package/lib/ui-ng-zorro-antd.module.d.ts +2 -1
  112. package/package.json +14 -8
@@ -43,8 +43,8 @@ export class UploadNzComponent extends NzUploadComponent {
43
43
  }
44
44
  }
45
45
  }
46
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: UploadNzComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
47
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: UploadNzComponent, selector: "formly-nz-upload", inputs: { nzeText: "nzeText", nzeHint: "nzeHint", nzeShowUploadButton: ["nzeShowUploadButton", "nzeShowUploadButton", booleanAttribute], nzeUploadButton: "nzeUploadButton", nzeUploadButtonIcon: "nzeUploadButtonIcon", ngClass: "ngClass", resultMap: "resultMap" }, providers: [
46
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: UploadNzComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
47
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.9", type: UploadNzComponent, selector: "formly-nz-upload", inputs: { nzeText: "nzeText", nzeHint: "nzeHint", nzeShowUploadButton: ["nzeShowUploadButton", "nzeShowUploadButton", booleanAttribute], nzeUploadButton: "nzeUploadButton", nzeUploadButtonIcon: "nzeUploadButtonIcon", ngClass: "ngClass", resultMap: "resultMap" }, providers: [
48
48
  {
49
49
  provide: NG_VALUE_ACCESSOR,
50
50
  useExisting: forwardRef(() => UploadNzComponent),
@@ -123,7 +123,7 @@ export class UploadNzComponent extends NzUploadComponent {
123
123
  </nz-upload>
124
124
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.NzUploadComponent, selector: "nz-upload", inputs: ["nzType", "nzLimit", "nzSize", "nzFileType", "nzAccept", "nzAction", "nzDirectory", "nzOpenFileDialogOnClick", "nzBeforeUpload", "nzCustomRequest", "nzData", "nzFilter", "nzFileList", "nzDisabled", "nzHeaders", "nzListType", "nzMultiple", "nzName", "nzShowUploadList", "nzShowButton", "nzWithCredentials", "nzRemove", "nzPreview", "nzPreviewFile", "nzPreviewIsImage", "nzTransformFile", "nzDownload", "nzIconRender", "nzFileListRender"], outputs: ["nzChange", "nzFileListChange"], exportAs: ["nzUpload"] }, { kind: "component", type: i3.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i4.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i5.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
125
125
  }
126
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: UploadNzComponent, decorators: [{
126
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: UploadNzComponent, decorators: [{
127
127
  type: Component,
128
128
  args: [{
129
129
  selector: 'formly-nz-upload',
@@ -11,14 +11,14 @@ import { UploadNzComponent } from './upload.component';
11
11
  import * as i0 from "@angular/core";
12
12
  import * as i1 from "@ngx-formly/core";
13
13
  export class FormlyNzUploadModule {
14
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
15
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzUploadModule, declarations: [FormlyFieldUpload, UploadNzComponent], imports: [CommonModule,
14
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
15
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzUploadModule, declarations: [FormlyFieldUpload, UploadNzComponent], imports: [CommonModule,
16
16
  ReactiveFormsModule,
17
17
  FormlyNzFormFieldModule,
18
18
  NzUploadModule,
19
19
  NzButtonModule,
20
20
  NzIconModule, i1.FormlyModule] }); }
21
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzUploadModule, imports: [CommonModule,
21
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzUploadModule, imports: [CommonModule,
22
22
  ReactiveFormsModule,
23
23
  FormlyNzFormFieldModule,
24
24
  NzUploadModule,
@@ -34,7 +34,7 @@ export class FormlyNzUploadModule {
34
34
  ]
35
35
  })] }); }
36
36
  }
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzUploadModule, decorators: [{
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzUploadModule, decorators: [{
38
38
  type: NgModule,
39
39
  args: [{
40
40
  declarations: [FormlyFieldUpload, UploadNzComponent],
@@ -40,8 +40,8 @@ export class FormlyFieldUpload extends FieldType {
40
40
  get nzFileListRender() {
41
41
  return resolveTplName(this.props, this.fieldTemplates, 'fileListRender');
42
42
  }
43
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldUpload, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
44
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.6", type: FormlyFieldUpload, selector: "formly-field-upload", viewQueries: [{ propertyName: "upload", first: true, predicate: ["upload"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `<formly-nz-upload
43
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldUpload, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
44
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.9", type: FormlyFieldUpload, selector: "formly-field-upload", viewQueries: [{ propertyName: "upload", first: true, predicate: ["upload"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `<formly-nz-upload
45
45
  #upload
46
46
  [formControl]="formControl"
47
47
  [formlyAttributes]="field"
@@ -84,7 +84,7 @@ export class FormlyFieldUpload extends FieldType {
84
84
  >
85
85
  </formly-nz-upload>`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "component", type: i5.UploadNzComponent, selector: "formly-nz-upload", inputs: ["nzeText", "nzeHint", "nzeShowUploadButton", "nzeUploadButton", "nzeUploadButtonIcon", "ngClass", "resultMap"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
86
86
  }
87
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldUpload, decorators: [{
87
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldUpload, decorators: [{
88
88
  type: Component,
89
89
  args: [{
90
90
  selector: 'formly-field-upload',
@@ -30,8 +30,8 @@ class FormlyFieldButtonGroup extends FieldType {
30
30
  ngOnDestroy() {
31
31
  this.subjectDestroy();
32
32
  }
33
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldButtonGroup, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
34
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldButtonGroup, selector: "formly-field-button-group", usesInheritance: true, ngImport: i0, template: `
33
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldButtonGroup, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
34
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.9", type: FormlyFieldButtonGroup, selector: "formly-field-button-group", usesInheritance: true, ngImport: i0, template: `
35
35
  <nz-button-group [formlyAttributes]="field" [nzSize]="props['size'] || 'default'">
36
36
  @for (item of props.buttons; track item.id) {
37
37
  <ng-container *ngTemplateOutlet="btnTemplate; context: { $implicit: item }"></ng-container>
@@ -66,7 +66,7 @@ class FormlyFieldButtonGroup extends FieldType {
66
66
  </ng-template>
67
67
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "component", type: i2.NzButtonGroupComponent, selector: "nz-button-group", inputs: ["nzSize"], exportAs: ["nzButtonGroup"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i5.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i6.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
68
68
  }
69
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldButtonGroup, decorators: [{
69
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldButtonGroup, decorators: [{
70
70
  type: Component,
71
71
  args: [{
72
72
  selector: 'formly-field-button-group',
@@ -109,11 +109,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
109
109
  }], ctorParameters: () => [] });
110
110
 
111
111
  class FormlyNzButtonGroupModule {
112
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzButtonGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
113
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzButtonGroupModule, declarations: [FormlyFieldButtonGroup], imports: [CommonModule,
112
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzButtonGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
113
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzButtonGroupModule, declarations: [FormlyFieldButtonGroup], imports: [CommonModule,
114
114
  NzButtonModule,
115
115
  NzIconModule, i6.FormlyModule] }); }
116
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzButtonGroupModule, imports: [CommonModule,
116
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzButtonGroupModule, imports: [CommonModule,
117
117
  NzButtonModule,
118
118
  NzIconModule,
119
119
  FormlyModule.forChild({
@@ -125,7 +125,7 @@ class FormlyNzButtonGroupModule {
125
125
  ]
126
126
  })] }); }
127
127
  }
128
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzButtonGroupModule, decorators: [{
128
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzButtonGroupModule, decorators: [{
129
129
  type: NgModule,
130
130
  args: [{
131
131
  declarations: [FormlyFieldButtonGroup],
@@ -35,8 +35,8 @@ class FormlyFieldButton extends FieldType {
35
35
  get text() {
36
36
  return resolveTplName(this.props, this.fieldTemplates, 'text');
37
37
  }
38
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldButton, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
39
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldButton, selector: "formly-field-button", usesInheritance: true, ngImport: i0, template: `
38
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldButton, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
39
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.9", type: FormlyFieldButton, selector: "formly-field-button", usesInheritance: true, ngImport: i0, template: `
40
40
  @if (props.type === 'a') {
41
41
  <a
42
42
  nz-button
@@ -99,7 +99,7 @@ class FormlyFieldButton extends FieldType {
99
99
  }
100
100
  `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "component", type: i4.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i5.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i6.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i7.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i8.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
101
101
  }
102
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldButton, decorators: [{
102
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldButton, decorators: [{
103
103
  type: Component,
104
104
  args: [{
105
105
  selector: 'formly-field-button',
@@ -172,12 +172,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
172
172
  }] }] });
173
173
 
174
174
  class FormlyNzButtonModule {
175
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
176
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzButtonModule, declarations: [FormlyFieldButton], imports: [CommonModule,
175
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
176
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzButtonModule, declarations: [FormlyFieldButton], imports: [CommonModule,
177
177
  NzOutletModule,
178
178
  NzButtonModule,
179
179
  NzIconModule, i8.FormlyModule] }); }
180
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzButtonModule, imports: [CommonModule,
180
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzButtonModule, imports: [CommonModule,
181
181
  NzOutletModule,
182
182
  NzButtonModule,
183
183
  NzIconModule,
@@ -198,7 +198,7 @@ class FormlyNzButtonModule {
198
198
  ]
199
199
  })] }); }
200
200
  }
201
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzButtonModule, decorators: [{
201
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzButtonModule, decorators: [{
202
202
  type: NgModule,
203
203
  args: [{
204
204
  declarations: [FormlyFieldButton],
@@ -31,8 +31,8 @@ class FormlyWrapperCard extends FieldWrapper {
31
31
  get nzActions() {
32
32
  return resolveTplNameArray(this.props, this.fieldTemplates, 'actions') || [];
33
33
  }
34
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyWrapperCard, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
35
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.6", type: FormlyWrapperCard, selector: "formly-wrapper-card", usesInheritance: true, ngImport: i0, template: `
34
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyWrapperCard, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
35
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.9", type: FormlyWrapperCard, selector: "formly-wrapper-card", usesInheritance: true, ngImport: i0, template: `
36
36
  <nz-card
37
37
  [nzActions]="nzActions"
38
38
  [formlyAttributes]="field"
@@ -52,7 +52,7 @@ class FormlyWrapperCard extends FieldWrapper {
52
52
  </nz-card>
53
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 }); }
54
54
  }
55
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyWrapperCard, decorators: [{
55
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyWrapperCard, decorators: [{
56
56
  type: Component,
57
57
  args: [{
58
58
  selector: 'formly-wrapper-card',
@@ -82,10 +82,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
82
82
  }] }] });
83
83
 
84
84
  class FormlyNzCardWrapperModule {
85
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzCardWrapperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
86
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzCardWrapperModule, declarations: [FormlyWrapperCard], imports: [CommonModule,
85
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCardWrapperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
86
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCardWrapperModule, declarations: [FormlyWrapperCard], imports: [CommonModule,
87
87
  NzCardModule, i4.FormlyModule] }); }
88
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzCardWrapperModule, imports: [CommonModule,
88
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCardWrapperModule, imports: [CommonModule,
89
89
  NzCardModule,
90
90
  FormlyModule.forChild({
91
91
  wrappers: [
@@ -96,7 +96,7 @@ class FormlyNzCardWrapperModule {
96
96
  ]
97
97
  })] }); }
98
98
  }
99
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzCardWrapperModule, decorators: [{
99
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCardWrapperModule, decorators: [{
100
100
  type: NgModule,
101
101
  args: [{
102
102
  declarations: [FormlyWrapperCard],
@@ -37,8 +37,8 @@ class FormlyFieldCard extends FieldType {
37
37
  get nzContent() {
38
38
  return resolveTplName(this.props, this.fieldTemplates, 'content');
39
39
  }
40
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldCard, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
41
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldCard, selector: "formly-field-card", usesInheritance: true, ngImport: i0, template: `
40
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldCard, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
41
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.9", type: FormlyFieldCard, selector: "formly-field-card", usesInheritance: true, ngImport: i0, template: `
42
42
  <nz-card
43
43
  [nzActions]="nzActions"
44
44
  [formlyAttributes]="field"
@@ -65,7 +65,7 @@ class FormlyFieldCard extends FieldType {
65
65
  </nz-card>
66
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 }); }
67
67
  }
68
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldCard, decorators: [{
68
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldCard, decorators: [{
69
69
  type: Component,
70
70
  args: [{
71
71
  selector: 'formly-field-card',
@@ -103,11 +103,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
103
103
 
104
104
  const COMPONENT = FormlyFieldCard;
105
105
  class FormlyNzCardModule {
106
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
107
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzCardModule, declarations: [FormlyFieldCard], imports: [CommonModule,
106
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
107
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCardModule, declarations: [FormlyFieldCard], imports: [CommonModule,
108
108
  NzCardModule,
109
- NzOutletModule, i5.FormlyModule], exports: [FormlyFieldCard] }); }
110
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzCardModule, imports: [CommonModule,
109
+ NzOutletModule, i5.FormlyModule] }); }
110
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCardModule, imports: [CommonModule,
111
111
  NzCardModule,
112
112
  NzOutletModule,
113
113
  FormlyModule.forChild({
@@ -119,7 +119,7 @@ class FormlyNzCardModule {
119
119
  ]
120
120
  })] }); }
121
121
  }
122
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzCardModule, decorators: [{
122
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCardModule, decorators: [{
123
123
  type: NgModule,
124
124
  args: [{
125
125
  declarations: [COMPONENT],
@@ -135,8 +135,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
135
135
  }
136
136
  ]
137
137
  })
138
- ],
139
- exports: [COMPONENT]
138
+ ]
140
139
  }]
141
140
  }] });
142
141
 
@@ -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';\r\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\r\nimport {\r\n FormlyBoxTemplates,\r\n resolveTplName,\r\n resolveTplNameArray\r\n} from 'ngx-formly-zorro-antd/common';\r\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\r\nimport { CardWrapperProps } from 'ngx-formly-zorro-antd/card-wrapper';\r\n\r\ninterface CardProps extends CardWrapperProps {\r\n /**\r\n * 内容\r\n */\r\n content?: string | TemplateRef<{ $implicit: CardProps; options: CardProps }>;\r\n contentName?: string;\r\n}\r\n\r\nexport interface FormlyCardFieldConfig extends NzFormlyFieldConfig<CardProps> {\r\n type: 'card' | Type<FormlyFieldCard>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-card',\r\n template: `\r\n <nz-card\r\n [nzActions]=\"nzActions\"\r\n [formlyAttributes]=\"field\"\r\n [ngClass]=\"props['ngClass']\"\r\n [nzBodyStyle]=\"props['bodyStyle'] ?? null\"\r\n [nzSize]=\"props['size']!\"\r\n [nzBorderless]=\"props['borderless']!!\"\r\n [nzCover]=\"nzCover\"\r\n [nzExtra]=\"nzExtra\"\r\n [nzHoverable]=\"props['hoverable']!!\"\r\n [nzLoading]=\"props['loading']!!\"\r\n [nzTitle]=\"nzTitle\"\r\n [nzBordered]=\"props['bordered']!!\"\r\n [nzType]=\"props['type'] ?? null\"\r\n >\r\n @for (g of field.fieldGroup; track g.id) {\r\n <formly-field [field]=\"g\"></formly-field>\r\n }\r\n <ng-container\r\n *nzStringTemplateOutlet=\"nzContent; context: { $implicit: field, options: props }\"\r\n >\r\n {{ nzContent }}\r\n </ng-container>\r\n </nz-card>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldCard extends FieldType<FieldTypeConfig<CardProps>> {\r\n override defaultOptions = {\r\n props: {\r\n bordered: true,\r\n type: 'button'\r\n }\r\n };\r\n\r\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\r\n super();\r\n }\r\n\r\n get nzTitle() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'title');\r\n }\r\n get nzCover() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'cover');\r\n }\r\n get nzExtra() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'extra');\r\n }\r\n get nzActions() {\r\n return resolveTplNameArray(this.props, this.fieldTemplates, 'actions') || [];\r\n }\r\n get nzContent() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'content');\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\r\nimport { FormlyFieldCard } from './card.type';\r\nimport { NzCardModule } from 'ng-zorro-antd/card';\r\n\r\nconst COMPONENT = FormlyFieldCard;\r\n\r\n@NgModule({\r\n declarations: [COMPONENT],\r\n imports: [\r\n CommonModule,\r\n NzCardModule,\r\n NzOutletModule,\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'card',\r\n component: COMPONENT\r\n }\r\n ]\r\n })\r\n ],\r\n exports: [COMPONENT]\r\n})\r\nexport class FormlyNzCardModule {}\r\n","/**\n * Generated bundle index. Do not ed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AAY;wBACZ,cAAc;wBACd,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,MAAM;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';\r\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\r\nimport {\r\n FormlyBoxTemplates,\r\n resolveTplName,\r\n resolveTplNameArray\r\n} from 'ngx-formly-zorro-antd/common';\r\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\r\nimport { CardWrapperProps } from 'ngx-formly-zorro-antd/card-wrapper';\r\n\r\ninterface CardProps extends CardWrapperProps {\r\n /**\r\n * 内容\r\n */\r\n content?: string | TemplateRef<{ $implicit: CardProps; options: CardProps }>;\r\n contentName?: string;\r\n}\r\n\r\nexport interface FormlyCardFieldConfig extends NzFormlyFieldConfig<CardProps> {\r\n type: 'card' | Type<FormlyFieldCard>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-card',\r\n template: `\r\n <nz-card\r\n [nzActions]=\"nzActions\"\r\n [formlyAttributes]=\"field\"\r\n [ngClass]=\"props['ngClass']\"\r\n [nzBodyStyle]=\"props['bodyStyle'] ?? null\"\r\n [nzSize]=\"props['size']!\"\r\n [nzBorderless]=\"props['borderless']!!\"\r\n [nzCover]=\"nzCover\"\r\n [nzExtra]=\"nzExtra\"\r\n [nzHoverable]=\"props['hoverable']!!\"\r\n [nzLoading]=\"props['loading']!!\"\r\n [nzTitle]=\"nzTitle\"\r\n [nzBordered]=\"props['bordered']!!\"\r\n [nzType]=\"props['type'] ?? null\"\r\n >\r\n @for (g of field.fieldGroup; track g.id) {\r\n <formly-field [field]=\"g\"></formly-field>\r\n }\r\n <ng-container\r\n *nzStringTemplateOutlet=\"nzContent; context: { $implicit: field, options: props }\"\r\n >\r\n {{ nzContent }}\r\n </ng-container>\r\n </nz-card>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldCard extends FieldType<FieldTypeConfig<CardProps>> {\r\n override defaultOptions = {\r\n props: {\r\n bordered: true,\r\n type: 'button'\r\n }\r\n };\r\n\r\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\r\n super();\r\n }\r\n\r\n get nzTitle() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'title');\r\n }\r\n get nzCover() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'cover');\r\n }\r\n get nzExtra() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'extra');\r\n }\r\n get nzActions() {\r\n return resolveTplNameArray(this.props, this.fieldTemplates, 'actions') || [];\r\n }\r\n get nzContent() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'content');\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\r\nimport { FormlyFieldCard } from './card.type';\r\nimport { NzCardModule } from 'ng-zorro-antd/card';\r\n\r\nconst COMPONENT = FormlyFieldCard;\r\n\r\n@NgModule({\r\n declarations: [COMPONENT],\r\n imports: [\r\n CommonModule,\r\n NzCardModule,\r\n NzOutletModule,\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'card',\r\n component: COMPONENT\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzCardModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n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AY;wBACZ,cAAc;wBACd,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,MAAM;AACZ,oCAAA,SAAS,EAAE,SAAS;AACrB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACxBD;;AAEG;;;;"}
@@ -55,8 +55,8 @@ class FormlyFieldCascader extends FieldType {
55
55
  this.props['cascaderOptions'] = this.props.options;
56
56
  }
57
57
  }
58
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldCascader, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
59
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.6", type: FormlyFieldCascader, selector: "formly-field-cascader", usesInheritance: true, ngImport: i0, template: `<nz-cascader
58
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldCascader, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
59
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.9", type: FormlyFieldCascader, selector: "formly-field-cascader", usesInheritance: true, ngImport: i0, template: `<nz-cascader
60
60
  #cascader
61
61
  [nzPlaceHolder]="props.placeholder ?? ''"
62
62
  [formControl]="formControl"
@@ -90,7 +90,7 @@ class FormlyFieldCascader extends FieldType {
90
90
  (nzSelectionChange)="props['selectionChange'] && props['selectionChange'](field, $event)"
91
91
  ></nz-cascader>`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i4.NzCascaderComponent, selector: "nz-cascader, [nz-cascader]", inputs: ["nzOptionRender", "nzShowInput", "nzShowArrow", "nzAllowClear", "nzAutoFocus", "nzChangeOnSelect", "nzDisabled", "nzColumnClassName", "nzExpandTrigger", "nzValueProperty", "nzLabelRender", "nzLabelProperty", "nzNotFoundContent", "nzSize", "nzBackdrop", "nzShowSearch", "nzPlaceHolder", "nzMenuClassName", "nzMenuStyle", "nzMouseEnterDelay", "nzMouseLeaveDelay", "nzStatus", "nzTriggerAction", "nzChangeOn", "nzLoadData", "nzSuffixIcon", "nzExpandIcon", "nzOptions"], outputs: ["nzVisibleChange", "nzSelectionChange", "nzSelect", "nzClear"], exportAs: ["nzCascader"] }, { kind: "directive", type: i5.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
92
92
  }
93
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldCascader, decorators: [{
93
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldCascader, decorators: [{
94
94
  type: Component,
95
95
  args: [{
96
96
  selector: 'formly-field-cascader',
@@ -134,12 +134,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
134
134
  }] }] });
135
135
 
136
136
  class FormlyNzCascaderModule {
137
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzCascaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
138
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzCascaderModule, declarations: [FormlyFieldCascader], imports: [CommonModule,
137
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCascaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
138
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCascaderModule, declarations: [FormlyFieldCascader], imports: [CommonModule,
139
139
  ReactiveFormsModule,
140
140
  FormlyNzFormFieldModule,
141
141
  NzCascaderModule, i5.FormlyModule] }); }
142
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzCascaderModule, imports: [CommonModule,
142
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCascaderModule, imports: [CommonModule,
143
143
  ReactiveFormsModule,
144
144
  FormlyNzFormFieldModule,
145
145
  NzCascaderModule,
@@ -153,7 +153,7 @@ class FormlyNzCascaderModule {
153
153
  ]
154
154
  })] }); }
155
155
  }
156
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzCascaderModule, decorators: [{
156
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCascaderModule, decorators: [{
157
157
  type: NgModule,
158
158
  args: [{
159
159
  declarations: [FormlyFieldCascader],
@@ -19,8 +19,8 @@ class FormlyFieldCheckbox extends FieldType {
19
19
  }
20
20
  };
21
21
  }
22
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldCheckbox, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
23
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldCheckbox, selector: "formly-field-checkbox", usesInheritance: true, ngImport: i0, template: `
22
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldCheckbox, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
23
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.9", type: FormlyFieldCheckbox, selector: "formly-field-checkbox", usesInheritance: true, ngImport: i0, template: `
24
24
  @if (props.type !== 'group') {
25
25
  <label
26
26
  [formControl]="formControl"
@@ -41,7 +41,7 @@ class FormlyFieldCheckbox extends FieldType {
41
41
  }
42
42
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.NzCheckboxComponent, selector: "[nz-checkbox]", inputs: ["nzValue", "nzAutoFocus", "nzDisabled", "nzIndeterminate", "nzChecked", "nzId"], outputs: ["nzCheckedChange"], exportAs: ["nzCheckbox"] }, { kind: "component", type: i2.NzCheckboxGroupComponent, selector: "nz-checkbox-group", inputs: ["nzDisabled"], exportAs: ["nzCheckboxGroup"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
43
43
  }
44
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldCheckbox, decorators: [{
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldCheckbox, decorators: [{
45
45
  type: Component,
46
46
  args: [{
47
47
  selector: 'formly-field-checkbox',
@@ -70,12 +70,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
70
70
  }] });
71
71
 
72
72
  class FormlyNzCheckboxModule {
73
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
74
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzCheckboxModule, declarations: [FormlyFieldCheckbox], imports: [CommonModule,
73
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
74
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCheckboxModule, declarations: [FormlyFieldCheckbox], imports: [CommonModule,
75
75
  ReactiveFormsModule,
76
76
  FormlyNzFormFieldModule,
77
77
  NzCheckboxModule, i3.FormlyModule] }); }
78
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzCheckboxModule, imports: [CommonModule,
78
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCheckboxModule, imports: [CommonModule,
79
79
  ReactiveFormsModule,
80
80
  FormlyNzFormFieldModule,
81
81
  NzCheckboxModule,
@@ -93,7 +93,7 @@ class FormlyNzCheckboxModule {
93
93
  ]
94
94
  })] }); }
95
95
  }
96
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzCheckboxModule, decorators: [{
96
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzCheckboxModule, decorators: [{
97
97
  type: NgModule,
98
98
  args: [{
99
99
  declarations: [FormlyFieldCheckbox],
@@ -85,10 +85,10 @@ class FormlyBoxTemplates {
85
85
  });
86
86
  return;
87
87
  }
88
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyBoxTemplates, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
89
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.6", type: FormlyBoxTemplates, isStandalone: true, selector: "[formly-box]", inputs: { templateList: ["formly-box", "templateList"] }, outputs: { templateChange: "templateChange" }, queries: [{ propertyName: "namedTemplate", predicate: NamedTemplate }], exportAs: ["FormlyBox"], usesOnChanges: true, ngImport: i0 }); }
88
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyBoxTemplates, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
89
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.9", type: FormlyBoxTemplates, isStandalone: true, selector: "[formly-box]", inputs: { templateList: ["formly-box", "templateList"] }, outputs: { templateChange: "templateChange" }, queries: [{ propertyName: "namedTemplate", predicate: NamedTemplate }], exportAs: ["FormlyBox"], usesOnChanges: true, ngImport: i0 }); }
90
90
  }
91
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyBoxTemplates, decorators: [{
91
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyBoxTemplates, decorators: [{
92
92
  type: Directive,
93
93
  args: [{
94
94
  // eslint-disable-next-line @angular-eslint/directive-selector
@@ -108,11 +108,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
108
108
 
109
109
  const COMPONENT = [FormlyBoxTemplates, NamedTemplate];
110
110
  class FormlyCommonModule {
111
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
112
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.6", ngImport: i0, type: FormlyCommonModule, imports: [CommonModule, FormlyBoxTemplates, NamedTemplate], exports: [FormlyBoxTemplates, NamedTemplate] }); }
113
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyCommonModule, imports: [CommonModule] }); }
111
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
112
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyCommonModule, imports: [CommonModule, FormlyBoxTemplates, NamedTemplate], exports: [FormlyBoxTemplates, NamedTemplate] }); }
113
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyCommonModule, imports: [CommonModule] }); }
114
114
  }
115
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyCommonModule, decorators: [{
115
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyCommonModule, decorators: [{
116
116
  type: NgModule,
117
117
  args: [{
118
118
  imports: [CommonModule, ...COMPONENT],
@@ -35,8 +35,8 @@ class FormlyFieldDatepicker extends FieldType {
35
35
  }
36
36
  };
37
37
  }
38
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldDatepicker, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
39
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldDatepicker, selector: "formly-field-datepicker", usesInheritance: true, ngImport: i0, template: ` @if (props.type === 'range') {
38
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldDatepicker, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
39
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.9", type: FormlyFieldDatepicker, selector: "formly-field-datepicker", usesInheritance: true, ngImport: i0, template: ` @if (props.type === 'range') {
40
40
  <nz-range-picker
41
41
  [nzId]="id"
42
42
  [formControl]="formControl"
@@ -112,7 +112,7 @@ class FormlyFieldDatepicker extends FieldType {
112
112
  ></nz-date-picker>
113
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 }); }
114
114
  }
115
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldDatepicker, decorators: [{
115
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldDatepicker, decorators: [{
116
116
  type: Component,
117
117
  args: [{
118
118
  selector: 'formly-field-datepicker',
@@ -196,12 +196,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
196
196
  }] });
197
197
 
198
198
  class FormlyNzDatepickerModule {
199
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzDatepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
200
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzDatepickerModule, declarations: [FormlyFieldDatepicker], imports: [CommonModule,
199
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzDatepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
200
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzDatepickerModule, declarations: [FormlyFieldDatepicker], imports: [CommonModule,
201
201
  ReactiveFormsModule,
202
202
  FormlyNzFormFieldModule,
203
203
  NzDatePickerModule, i4.FormlyModule] }); }
204
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzDatepickerModule, imports: [CommonModule,
204
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzDatepickerModule, imports: [CommonModule,
205
205
  ReactiveFormsModule,
206
206
  FormlyNzFormFieldModule,
207
207
  NzDatePickerModule,
@@ -215,7 +215,7 @@ class FormlyNzDatepickerModule {
215
215
  ]
216
216
  })] }); }
217
217
  }
218
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzDatepickerModule, decorators: [{
218
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzDatepickerModule, decorators: [{
219
219
  type: NgModule,
220
220
  args: [{
221
221
  declarations: [FormlyFieldDatepicker],
@@ -0,0 +1,109 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
+ import * as i1 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i3 from '@ngx-formly/core';
6
+ import { FieldType, FormlyModule } from '@ngx-formly/core';
7
+ import * as i2 from 'ng-zorro-antd/flex';
8
+ import { NzFlexModule } from 'ng-zorro-antd/flex';
9
+
10
+ class FormlyFieldFlex extends FieldType {
11
+ constructor() {
12
+ super(...arguments);
13
+ this.defaultOptions = {
14
+ props: {
15
+ vertical: false,
16
+ justify: 'normal',
17
+ align: 'normal',
18
+ gap: 0,
19
+ wrap: 'nowrap',
20
+ flex: 'unset'
21
+ }
22
+ };
23
+ }
24
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldFlex, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
25
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.9", type: FormlyFieldFlex, selector: "formly-field-flex", usesInheritance: true, ngImport: i0, template: `
26
+ <div
27
+ [ngClass]="props['ngClass']"
28
+ [ngStyle]="props['ngStyle']"
29
+ [formlyAttributes]="field"
30
+ [nzVertical]="props['vertical']!!"
31
+ [nzJustify]="props['justify']!"
32
+ [nzAlign]="props['align']!"
33
+ [nzGap]="props['gap']!"
34
+ [nzWrap]="props['wrap']!"
35
+ [nzFlex]="props['flex']!"
36
+ nz-flex
37
+ >
38
+ @for (item of field.fieldGroup; track item.id) {
39
+ <formly-field [field]="item"></formly-field>
40
+ }
41
+ </div>
42
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i2.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }, { kind: "component", type: i3.FormlyField, selector: "formly-field", inputs: ["field"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
43
+ }
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldFlex, decorators: [{
45
+ type: Component,
46
+ args: [{
47
+ selector: 'formly-field-flex',
48
+ template: `
49
+ <div
50
+ [ngClass]="props['ngClass']"
51
+ [ngStyle]="props['ngStyle']"
52
+ [formlyAttributes]="field"
53
+ [nzVertical]="props['vertical']!!"
54
+ [nzJustify]="props['justify']!"
55
+ [nzAlign]="props['align']!"
56
+ [nzGap]="props['gap']!"
57
+ [nzWrap]="props['wrap']!"
58
+ [nzFlex]="props['flex']!"
59
+ nz-flex
60
+ >
61
+ @for (item of field.fieldGroup; track item.id) {
62
+ <formly-field [field]="item"></formly-field>
63
+ }
64
+ </div>
65
+ `,
66
+ changeDetection: ChangeDetectionStrategy.OnPush
67
+ }]
68
+ }] });
69
+
70
+ class FormlyNzFlexModule {
71
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzFlexModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
72
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzFlexModule, declarations: [FormlyFieldFlex], imports: [CommonModule,
73
+ NzFlexModule, i3.FormlyModule] }); }
74
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzFlexModule, imports: [CommonModule,
75
+ NzFlexModule,
76
+ FormlyModule.forChild({
77
+ types: [
78
+ {
79
+ name: 'flex',
80
+ component: FormlyFieldFlex
81
+ }
82
+ ]
83
+ })] }); }
84
+ }
85
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzFlexModule, decorators: [{
86
+ type: NgModule,
87
+ args: [{
88
+ declarations: [FormlyFieldFlex],
89
+ imports: [
90
+ CommonModule,
91
+ NzFlexModule,
92
+ FormlyModule.forChild({
93
+ types: [
94
+ {
95
+ name: 'flex',
96
+ component: FormlyFieldFlex
97
+ }
98
+ ]
99
+ })
100
+ ]
101
+ }]
102
+ }] });
103
+
104
+ /**
105
+ * Generated bundle index. Do not edit.
106
+ */
107
+
108
+ export { FormlyFieldFlex, FormlyNzFlexModule };
109
+ //# sourceMappingURL=ngx-formly-zorro-antd-flex.mjs.map