ngx-formly-zorro-antd 17.0.11 → 17.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. package/autocomplete/autocomplete.props.d.ts +2 -4
  2. package/card-wrapper/card-wrapper.props.d.ts +3 -2
  3. package/common/interface.d.ts +3 -1
  4. package/esm2022/autocomplete/autocomplete.props.mjs +1 -1
  5. package/esm2022/button/button.type.mjs +7 -7
  6. package/esm2022/card/card.type.mjs +3 -3
  7. package/esm2022/card-wrapper/card-wrapper.props.mjs +1 -1
  8. package/esm2022/card-wrapper/card.wrapper.mjs +3 -3
  9. package/esm2022/cascader/cascader.type.mjs +3 -3
  10. package/esm2022/common/interface.mjs +1 -1
  11. package/esm2022/datepicker/datepicker.type.mjs +5 -5
  12. package/esm2022/form-field/form-field.props.mjs +1 -1
  13. package/esm2022/grid/grid.props.mjs +1 -1
  14. package/esm2022/grid/grid.type.mjs +5 -5
  15. package/esm2022/input/input.type.mjs +9 -9
  16. package/esm2022/input-number/input-number.type.mjs +5 -5
  17. package/esm2022/select/select.type.mjs +5 -5
  18. package/esm2022/text-value/ngx-formly-zorro-antd-text-value.mjs +5 -0
  19. package/esm2022/text-value/public_api.mjs +3 -0
  20. package/esm2022/text-value/text-value.module.mjs +46 -0
  21. package/esm2022/text-value/text-value.type.mjs +68 -0
  22. package/esm2022/textarea/textarea.type.mjs +9 -9
  23. package/esm2022/timepicker/timepicker.type.mjs +3 -3
  24. package/esm2022/tree-select/tree-select.type.mjs +3 -3
  25. package/esm2022/upload/upload.component.mjs +5 -5
  26. package/esm2022/upload/upload.type.mjs +8 -7
  27. package/fesm2022/ngx-formly-zorro-antd-button.mjs +6 -6
  28. package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
  29. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +2 -2
  30. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
  31. package/fesm2022/ngx-formly-zorro-antd-card.mjs +2 -2
  32. package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
  33. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +2 -2
  34. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  35. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +4 -4
  36. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  37. package/fesm2022/ngx-formly-zorro-antd-grid.mjs +4 -4
  38. package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
  39. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +4 -4
  40. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  41. package/fesm2022/ngx-formly-zorro-antd-input.mjs +8 -8
  42. package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
  43. package/fesm2022/ngx-formly-zorro-antd-select.mjs +4 -4
  44. package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
  45. package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +115 -0
  46. package/fesm2022/ngx-formly-zorro-antd-text-value.mjs.map +1 -0
  47. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +8 -8
  48. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  49. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +2 -2
  50. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  51. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +2 -2
  52. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  53. package/fesm2022/ngx-formly-zorro-antd-upload.mjs +10 -10
  54. package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  55. package/form-field/form-field.props.d.ts +8 -16
  56. package/grid/grid.props.d.ts +6 -9
  57. package/package.json +20 -14
  58. package/text-value/index.d.ts +5 -0
  59. package/text-value/public_api.d.ts +2 -0
  60. package/text-value/text-value.module.d.ts +11 -0
  61. package/text-value/text-value.type.d.ts +37 -0
  62. package/tree-select/tree-select.type.d.ts +2 -3
  63. package/upload/upload.component.d.ts +3 -4
@@ -44,7 +44,7 @@ export class UploadNzComponent extends NzUploadComponent {
44
44
  }
45
45
  }
46
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", className: "className", resultMap: "resultMap" }, providers: [
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: [
48
48
  {
49
49
  provide: NG_VALUE_ACCESSOR,
50
50
  useExisting: forwardRef(() => UploadNzComponent),
@@ -81,7 +81,7 @@ export class UploadNzComponent extends NzUploadComponent {
81
81
  [nzTransformFile]="nzTransformFile"
82
82
  [nzIconRender]="nzIconRender"
83
83
  [nzFileListRender]="nzFileListRender"
84
- [ngClass]="className"
84
+ [ngClass]="ngClass"
85
85
  (nzChange)="change($event)"
86
86
  (nzFileListChange)="fileListChange($event)"
87
87
  >
@@ -158,7 +158,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
158
158
  [nzTransformFile]="nzTransformFile"
159
159
  [nzIconRender]="nzIconRender"
160
160
  [nzFileListRender]="nzFileListRender"
161
- [ngClass]="className"
161
+ [ngClass]="ngClass"
162
162
  (nzChange)="change($event)"
163
163
  (nzFileListChange)="fileListChange($event)"
164
164
  >
@@ -220,9 +220,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
220
220
  type: Input
221
221
  }], nzeUploadButtonIcon: [{
222
222
  type: Input
223
- }], className: [{
223
+ }], ngClass: [{
224
224
  type: Input
225
225
  }], resultMap: [{
226
226
  type: Input
227
227
  }] } });
228
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBsb2FkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvdXBsb2FkL3NyYy91cGxvYWQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHlEQUF5RDtBQUN6RCxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFFVCxVQUFVLEVBQ1YsZ0JBQWdCLEVBQ2hCLEtBQUssRUFDTCxpQkFBaUIsRUFDbEIsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUF3QixpQkFBaUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRXpFLE9BQU8sRUFBdUIsaUJBQWlCLEVBQWdCLE1BQU0sc0JBQXNCLENBQUM7Ozs7Ozs7O0FBdUY1RixNQUFNLE9BQU8saUJBQWtCLFNBQVEsaUJBQWlCO0lBcEZ4RDs7UUFpR0UsY0FBYztRQUNMLHdCQUFtQixHQUFxQjtZQUMvQyxJQUFJLEVBQUUsY0FBYztTQUNyQixDQUFDO1FBY0YsYUFBUSxHQUFpQixHQUFHLEVBQUUsR0FBRSxDQUFDLENBQUM7UUFDbEMsY0FBUyxHQUFrQixHQUFHLEVBQUUsR0FBRSxDQUFDLENBQUM7S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V09XCJuelByZXZpZXdJc0ltYWdlXCJcclxuICAgICAgW256UmVtb3ZlXT1cIm56UmVtb3ZlXCJcclxuICAgICAgW256RG93bmxvYWRdPVwibnpEb3dubG9hZFwiXHJcbiAgICAgIFtuelRyYW5zZm9ybUZpbGVdPVwibnpUcmFuc2Zvcm1GaWxlXCJcclxuICAgICAgW256SWNvblJlbmRlcl09XCJuekljb25SZW5kZXJcIlxyXG4gICAgICBbbnpGaWxlTGlzdFJlbmRlcl09XCJuekZpbGVMaXN0UmVuZGVyXCJcclxuICAgICAgW25nQ2xhc3NdPVwiY2xhc3NOYW1lXCJcclxuICAgICAgKG56Q2hhbmdlKT1cImNoYW5nZSgkZXZlbnQpXCJcclxuICAgICAgKG56RmlsZUxpc3RDaGFuZ2UpPVwiZmlsZUxpc3RDaGFuZ2UoJGV2ZW50KVwiXHJcbiAgICA+XHJcbiAgICAgIEBzd2l0Y2ggKG56VHlwZSkge1xyXG4gICAgICAgIEBjYXNlICgnZHJhZycpIHtcclxuICAgICAgICAgIDxwIGNsYXNzPVwiYW50LXVwbG9hZC1kcmFnLWljb25cIj5cclxuICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdUZW1wbGF0ZU91dGxldD1cInVwbG9hZEJ1dHRvbkljb25UcGxcIj48L25nLWNvbnRhaW5lcj5cclxuICAgICAgICAgIDwvcD5cclxuICAgICAgICAgIDxwIGNsYXNzPVwiYW50LXVwbG9hZC10ZXh0XCI+e3sgbnplVGV4dCB9fTwvcD5cclxuICAgICAgICAgIDxwIGNsYXNzPVwiYW50LXVwbG9hZC1oaW50XCI+e3sgbnplSGludCB9fTwvcD5cclxuICAgICAgICB9XHJcbiAgICAgICAgQGRlZmF1bHQge1xyXG4gICAgICAgICAgQGlmIChuemVTaG93VXBsb2FkQnV0dG9uICE9PSBmYWxzZSkge1xyXG4gICAgICAgICAgICA8YnV0dG9uIHR5cGU9XCJidXR0b25cIiBuei1idXR0b24gW2Rpc2FibGVkXT1cIm56RGlzYWJsZWQhIVwiPlxyXG4gICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nVGVtcGxhdGVPdXRsZXQ9XCJ1cGxvYWRCdXR0b25JY29uVHBsXCI+PC9uZy1jb250YWluZXI+XHJcbiAgICAgICAgICAgICAge3sgbnplVGV4dCB9fVxyXG4gICAgICAgICAgICA8L2J1dHRvbj5cclxuICAgICAgICAgIH0gQGVsc2UgaWYgKG56ZVNob3dVcGxvYWRCdXR0b24gPT09IGZhbHNlKSB7XHJcbiAgICAgICAgICAgIDxkaXY+XHJcbiAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdUZW1wbGF0ZU91dGxldD1cInVwbG9hZEJ1dHRvbkljb25UcGxcIj48L25nLWNvbnRhaW5lcj5cclxuICAgICAgICAgICAgICB7eyBuemVUZXh0IH19XHJcbiAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImFudC11cGxvYWQtaGludFwiIHN0eWxlPVwibWFyZ2luLXRvcDogOHB4XCI+e3sgbnplSGludCB9fTwvZGl2PlxyXG4gICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgIH1cclxuICAgICAgICB9XHJcbiAgICAgIH1cclxuXHJcbiAgICAgIDxuZy10ZW1wbGF0ZSAjdXBsb2FkQnV0dG9uSWNvblRwbD5cclxuICAgICAgICBAaWYgKG56ZVVwbG9hZEJ1dHRvbkljb24pIHtcclxuICAgICAgICAgIDxzcGFuXHJcbiAgICAgICAgICAgIG56LWljb25cclxuICAgICAgICAgICAgW256VHlwZV09XCJuemVVcGxvYWRCdXR0b25JY29uLnR5cGVcIlxyXG4gICAgICAgICAgICBbbnpUaGVtZV09XCJuemVVcGxvYWRCdXR0b25JY29uLnRoZW1lIHx8ICdvdXRsaW5lJ1wiXHJcbiAgICAgICAgICAgIFtuelNwaW5dPVwibnplVXBsb2FkQnV0dG9uSWNvbi5zcGluISFcIlxyXG4gICAgICAgICAgICBbbnpUd290b25lQ29sb3JdPVwibnplVXBsb2FkQnV0dG9u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ekhlYWRlcnNcIlxyXG4gICAgICBbbnpMaXN0VHlwZV09XCJuekxpc3RUeXBlXCJcclxuICAgICAgW256TXVsdGlwbGVdPVwibnpNdWx0aXBsZVwiXHJcbiAgICAgIFtuek5hbWVdPVwibnpOYW1lXCJcclxuICAgICAgW256U2hvd1VwbG9hZExpc3RdPVwibnpTaG93VXBsb2FkTGlzdFwiXHJcbiAgICAgIFtuelNob3dCdXR0b25dPVwibnpTaG93QnV0dG9uXCJcclxuICAgICAgW256V2l0aENyZWRlbnRpYWxzXT1cIm56V2l0aENyZWRlbnRpYWxzXCJcclxuICAgICAgW256T3BlbkZpbGVEaWFsb2dPbkNsaWNrXT1cIm56T3BlbkZpbGVEaWFsb2dPbkNsaWNrXCJcclxuICAgICAgW256UHJldmlld109XCJuelByZXZpZXdcIlxyXG4gICAgICBbbnpQcmV2aWV3RmlsZV09XCJuelByZXZpZXdGaWxlXCJcclxuICAgICAgW256UHJldmlld0lzSW1hZ2VdPVwibnpQcmV2aWV3SXNJbWFnZVwiXHJcbiAgICAgIFtuelJlbW92ZV09XCJuelJlbW92ZVwiXHJcbiAgICAgIFtuekRvd25sb2FkXT1cIm56RG93bmxvYWRcIlxyXG4gICAgICBbbnpUcmFuc2Zvcm1GaWxlXT1cIm56VHJhbnNmb3JtRmlsZVwiXHJcbiAgICAgIFtuekljb25SZW5kZXJdPVwibnpJY29uUmVuZGVyXCJcclxuICAgICAgW256RmlsZUxpc3RSZW5kZXJdPVwibnpGaWxlTGlzdFJlbmRlclwiXHJcbiAgICAgIFtuZ0NsYXNzXT1cIm5nQ2xhc3NcIlxyXG4gICAgICAobnpDaGFuZ2UpPVwiY2hhbmdlKCRldmVudClcIlxyXG4gICAgICAobnpGaWxlTGlzdENoYW5nZSk9XCJmaWxlTGlzdENoYW5nZSgkZXZlbnQpXCJcclxuICAgID5cclxuICAgICAgQHN3aXRjaCAobnpUeXBlKSB7XHJcbiAgICAgICAgQGNhc2UgKCdkcmFnJykge1xyXG4gICAgICAgICAgPHAgY2xhc3M9XCJhbnQtdXBsb2FkLWRyYWctaWNvblwiPlxyXG4gICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ1RlbXBsYXRlT3V0bGV0PVwidXBsb2FkQnV0dG9uSWNvblRwbFwiPjwvbmctY29udGFpbmVyPlxyXG4gICAgICAgICAgPC9wPlxyXG4gICAgICAgICAgPHAgY2xhc3M9XCJhbnQtdXBsb2FkLXRleHRcIj57eyBuemVUZXh0IH19PC9wPlxyXG4gICAgICAgICAgPHAgY2xhc3M9XCJhbnQtdXBsb2FkLWhpbnRcIj57eyBuemVIaW50IH19PC9wPlxyXG4gICAgICAgIH1cclxuICAgICAgICBAZGVmYXVsdCB7XHJcbiAgICAgICAgICBAaWYgKG56ZVNob3dVcGxvYWRCdXR0b24gIT09IGZhbHNlKSB7XHJcbiAgICAgICAgICAgIDxidXR0b24gdHlwZT1cImJ1dHRvblwiIG56LWJ1dHRvbiBbZGlzYWJsZWRdPVwibnpEaXNhYmxlZCEhXCI+XHJcbiAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdUZW1wbGF0ZU91dGxldD1cInVwbG9hZEJ1dHRvbkljb25UcGxcIj48L25nLWNvbnRhaW5lcj5cclxuICAgICAgICAgICAgICB7eyBuemVUZXh0IH19XHJcbiAgICAgICAgICAgIDwvYnV0dG9uPlxyXG4gICAgICAgICAgfSBAZWxzZSBpZiAobnplU2hvd1VwbG9hZEJ1dHRvbiA9PT0gZmFsc2UpIHtcclxuICAgICAgICAgICAgPGRpdj5cclxuICAgICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ1RlbXBsYXRlT3V0bGV0PVwidXBsb2FkQnV0dG9uSWNvblRwbFwiPjwvbmctY29udGFpbmVyPlxyXG4gICAgICAgICAgICAgIHt7IG56ZVRleHQgfX1cclxuICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiYW50LXVwbG9hZC1oaW50XCIgc3R5bGU9XCJtYXJnaW4tdG9wOiA4cHhcIj57eyBuemVIaW50IH19PC9kaXY+XHJcbiAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgfVxyXG4gICAgICAgIH1cclxuICAgICAgfVxyXG5cclxuICAgICAgPG5nLXRlbXBsYXRlICN1cGxvYWRCdXR0b25JY29uVHBsPlxyXG4gICAgICAgIEBpZiAobnplVXBsb2FkQnV0dG9uSWNvbikge1xyXG4gICAgICAgICAgPHNwYW5cclxuICAgICAgICAgICAgbnotaWNvblxyXG4gICAgICAgICAgICBbbnpUeXBlXT1cIm56ZVVwbG9hZEJ1dHRvbkljb24udHlwZVwiXHJcbiAgICAgICAgICAgIFtuelRoZW1lXT1cIm56ZVVwbG9hZEJ1dHRvbkljb24udGhlbWUgfHwgJ291dGxpbmUnXCJcclxuICAgICAgICAgICAgW256U3Bpbl09XCJuemVVcGxvYWRCdXR0b25JY29uLnNwaW4hIVwiXHJcbiAgICAgICAgICAgIFtuelR3b3RvbmVDb2xvcl09XCJuemVVcGxvYWRCdXR0b25JY29uLnR3b1RvbmVDb2xvciB8fCAnJ1wiXHJcbiAgICAgICAgICA+PC9zcGFuPlxyXG4gICAgICAgIH1cclxuICAgICAgPC9uZy10ZW1wbGF0ZT5cclxuICAgIDwvbnotdXBsb2FkPlxyXG4gIGAsXHJcbiAgZW5jYXBzdWxhdGlvbjogVmlld0VuY2Fwc3VsYXRpb24uTm9uZSxcclxuICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCxcclxuICBwcm92aWRlcnM6IFtcclxuICAgIHtcclxuICAgICAgcHJvdmlkZTogTkdfVkFMVUVfQUNDRVNTT1IsXHJcbiAgICAgIHVzZUV4aXN0aW5nOiBmb3J3YXJkUmVmKCgpID0+IFVwbG9hZE56Q29tcG9uZW50KSxcclxuICAgICAgbXVsdGk6IHRydWVcclxuICAgIH1cclxuICBdXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBVcGxvYWROekNvbXBvbmVudCBleHRlbmR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VyKHggPT4geC5zdGF0dXMgPT09ICdkb25lJykpO1xyXG4gICAgICB9XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ==
@@ -4,9 +4,10 @@ import { UploadNzComponent } from './upload.component';
4
4
  import { FormlyBoxTemplates, resolveTplName } from 'ngx-formly-zorro-antd/common';
5
5
  import * as i0 from "@angular/core";
6
6
  import * as i1 from "ngx-formly-zorro-antd/common";
7
- import * as i2 from "@angular/forms";
8
- import * as i3 from "@ngx-formly/core";
9
- import * as i4 from "./upload.component";
7
+ import * as i2 from "@angular/common";
8
+ import * as i3 from "@angular/forms";
9
+ import * as i4 from "@ngx-formly/core";
10
+ import * as i5 from "./upload.component";
10
11
  export class FormlyFieldUpload extends FieldType {
11
12
  constructor(fieldTemplates) {
12
13
  super();
@@ -78,10 +79,10 @@ export class FormlyFieldUpload extends FieldType {
78
79
  [nzeText]="props['text']"
79
80
  [nzeUploadButtonIcon]="props['uploadButtonIcon']"
80
81
  [nzeShowUploadButton]="props['showUploadButton']"
81
- [className]="props['className']"
82
+ [ngClass]="props['ngClass']"
82
83
  (nzFileListChange)="props['fileListChange'] && props['fileListChange'](field, $event)"
83
84
  >
84
- </formly-nz-upload>`, isInline: true, dependencies: [{ 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: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "component", type: i4.UploadNzComponent, selector: "formly-nz-upload", inputs: ["nzeText", "nzeHint", "nzeShowUploadButton", "nzeUploadButton", "nzeUploadButtonIcon", "className", "resultMap"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
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 }); }
85
86
  }
86
87
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldUpload, decorators: [{
87
88
  type: Component,
@@ -125,7 +126,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
125
126
  [nzeText]="props['text']"
126
127
  [nzeUploadButtonIcon]="props['uploadButtonIcon']"
127
128
  [nzeShowUploadButton]="props['showUploadButton']"
128
- [className]="props['className']"
129
+ [ngClass]="props['ngClass']"
129
130
  (nzFileListChange)="props['fileListChange'] && props['fileListChange'](field, $event)"
130
131
  >
131
132
  </formly-nz-upload>`,
@@ -137,4 +138,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
137
138
  type: ViewChild,
138
139
  args: ['upload', { static: true }]
139
140
  }] } });
140
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBsb2FkLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9mb3JtbHlhbnRkL3VwbG9hZC9zcmMvdXBsb2FkLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCx1QkFBdUIsR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H1cclxuICB9XHJcblxyXG4gIGdldCBuekljb25SZW5kZXIoKSB7XHJcbiAgICByZXR1cm4gcmVzb2x2ZVRwbE5hbWUodGhpcy5wcm9wcywgdGhpcy5maWVsZFRlbXBsYXRlcywgJ2ljb25SZW5kZXInKTtcclxuICB9XHJcblxyXG4gIGdldCBuekZpbGVMaXN0UmVuZGVyKCkge1xyXG4gICAgcmV0dXJuIHJlc29sdmVUcGxOYW1lKHRoaXMucHJvcHMsIHRoaXMuZmllbGRUZW1wbGF0ZXMsICdmaWxlTGlzdFJlbmRlcicpO1xyXG4gIH1cclxufVxyXG4iXX0=
@@ -49,7 +49,7 @@ class FormlyFieldButton extends FieldType {
49
49
  [nzBlock]="props['block']!!"
50
50
  [nzDanger]="props['danger']!!"
51
51
  [nzType]="props['nzType'] ?? 'link'"
52
- [ngClass]="props['className']"
52
+ [ngClass]="props['ngClass']"
53
53
  >
54
54
  @if (props['beforeIcon']) {
55
55
  <span nz-icon [nzType]="props['beforeIcon']"></span>
@@ -71,7 +71,7 @@ class FormlyFieldButton extends FieldType {
71
71
  [attr.type]="field.type"
72
72
  [attr.form]="props['formName']"
73
73
  [attr.title]="props['title']"
74
- [disabled]="props['disabled']!!"
74
+ [disabled]="props['disabled'] || formControl.disabled!!"
75
75
  [nzGhost]="props['ghost']!!"
76
76
  [nzLoading]="props['loading']!!"
77
77
  [nzShape]="props['shape'] ?? null"
@@ -79,7 +79,7 @@ class FormlyFieldButton extends FieldType {
79
79
  [nzBlock]="props['block']!!"
80
80
  [nzDanger]="props['danger']!!"
81
81
  [nzType]="props['nzType'] ?? null"
82
- [ngClass]="props['className']"
82
+ [ngClass]="props['ngClass']"
83
83
  nz-button
84
84
  >
85
85
  @if (props['beforeIcon']) {
@@ -116,7 +116,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
116
116
  [nzBlock]="props['block']!!"
117
117
  [nzDanger]="props['danger']!!"
118
118
  [nzType]="props['nzType'] ?? 'link'"
119
- [ngClass]="props['className']"
119
+ [ngClass]="props['ngClass']"
120
120
  >
121
121
  @if (props['beforeIcon']) {
122
122
  <span nz-icon [nzType]="props['beforeIcon']"></span>
@@ -138,7 +138,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
138
138
  [attr.type]="field.type"
139
139
  [attr.form]="props['formName']"
140
140
  [attr.title]="props['title']"
141
- [disabled]="props['disabled']!!"
141
+ [disabled]="props['disabled'] || formControl.disabled!!"
142
142
  [nzGhost]="props['ghost']!!"
143
143
  [nzLoading]="props['loading']!!"
144
144
  [nzShape]="props['shape'] ?? null"
@@ -146,7 +146,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
146
146
  [nzBlock]="props['block']!!"
147
147
  [nzDanger]="props['danger']!!"
148
148
  [nzType]="props['nzType'] ?? null"
149
- [ngClass]="props['className']"
149
+ [ngClass]="props['ngClass']"
150
150
  nz-button
151
151
  >
152
152
  @if (props['beforeIcon']) {
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-button.mjs","sources":["../../../../packages/formlyantd/button/src/button.type.ts","../../../../packages/formlyantd/button/src/button.module.ts","../../../../packages/formlyantd/button/src/ngx-formly-zorro-antd-button.ts"],"sourcesContent":["import { Component, Type, TemplateRef, Optional, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\r\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\nimport {\r\n NzFormlyFieldConfig,\r\n FormlyBoxTemplates,\r\n hasTplNameValue,\r\n resolveTplName\r\n} from 'ngx-formly-zorro-antd/common';\r\n\r\nimport type { NzButtonShape, NzButtonSize, NzButtonType } from 'ng-zorro-antd/button';\r\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\r\n\r\nexport interface ButtonProps extends FormlyFieldProps {\r\n type?: 'a' | 'button';\r\n\r\n /**\r\n * 标题\r\n */\r\n title?: string;\r\n\r\n /**\r\n * form 名称\r\n */\r\n formName?: string;\r\n\r\n /**\r\n * 按钮内容文本\r\n */\r\n text?: string | TemplateRef<{ $implicit: NzSafeAny; options: ButtonProps }>;\r\n textName?: string;\r\n\r\n /**\r\n * 幽灵属性,使按钮背景透明\r\n * @default false\r\n */\r\n ghost?: boolean;\r\n\r\n /**\r\n * 设置按钮载入状态\r\n * @default false\r\n */\r\n loading?: boolean;\r\n\r\n /**\r\n * 设置按钮形状\r\n */\r\n shape?: NzButtonShape;\r\n\r\n /**\r\n * 设置按钮大小\r\n * @default default\r\n */\r\n size?: NzButtonSize;\r\n\r\n /**\r\n * 设置按钮类型\r\n */\r\n nzType?: NzButtonType;\r\n\r\n /**\r\n * 将按钮宽度调整为其父宽度的选项\r\n * @default false\r\n */\r\n block?: boolean;\r\n\r\n /**\r\n * 设置危险按钮\r\n * @default false\r\n */\r\n danger?: boolean;\r\n\r\n /**\r\n * 文字前面的图标\r\n */\r\n beforeIcon?: string;\r\n\r\n /**\r\n * 文字后面面的图标\r\n */\r\n afterIcon?: string;\r\n}\r\n\r\nexport interface FormlyButtonFieldConfig extends NzFormlyFieldConfig<ButtonProps> {\r\n type: 'button' | 'submit' | 'reset' | Type<FormlyFieldButton>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-button',\r\n template: `\r\n @if (props.type === 'a') {\r\n <a\r\n nz-button\r\n [formlyAttributes]=\"field\"\r\n [attr.title]=\"props['title']\"\r\n [nzGhost]=\"props['ghost']!!\"\r\n [nzLoading]=\"props['loading']!!\"\r\n [nzShape]=\"props['shape'] ?? null\"\r\n [nzSize]=\"props['size']!\"\r\n [nzBlock]=\"props['block']!!\"\r\n [nzDanger]=\"props['danger']!!\"\r\n [nzType]=\"props['nzType'] ?? 'link'\"\r\n [ngClass]=\"props['className']\"\r\n >\r\n @if (props['beforeIcon']) {\r\n <span nz-icon [nzType]=\"props['beforeIcon']\"></span>\r\n }\r\n @if (hasText) {\r\n <ng-container\r\n *nzStringTemplateOutlet=\"text; context: { $implicit: field, options: props }\"\r\n >\r\n {{ text }}\r\n </ng-container>\r\n }\r\n @if (props['afterIcon']) {\r\n <span nz-icon [nzType]=\"props['afterIcon']\"></span>\r\n }\r\n </a>\r\n } @else {\r\n <button\r\n [formlyAttributes]=\"field\"\r\n [attr.type]=\"field.type\"\r\n [attr.form]=\"props['formName']\"\r\n [attr.title]=\"props['title']\"\r\n [disabled]=\"props['disabled']!!\"\r\n [nzGhost]=\"props['ghost']!!\"\r\n [nzLoading]=\"props['loading']!!\"\r\n [nzShape]=\"props['shape'] ?? null\"\r\n [nzSize]=\"props['size']!\"\r\n [nzBlock]=\"props['block']!!\"\r\n [nzDanger]=\"props['danger']!!\"\r\n [nzType]=\"props['nzType'] ?? null\"\r\n [ngClass]=\"props['className']\"\r\n nz-button\r\n >\r\n @if (props['beforeIcon']) {\r\n <span nz-icon [nzType]=\"props['beforeIcon']\"></span>\r\n }\r\n @if (hasText) {\r\n <ng-container\r\n *nzStringTemplateOutlet=\"text; context: { $implicit: field, options: props }\"\r\n >\r\n {{ text }}\r\n </ng-container>\r\n }\r\n @if (props['afterIcon']) {\r\n <span nz-icon [nzType]=\"props['afterIcon']\"></span>\r\n }\r\n </button>\r\n }\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldButton extends FieldType<FieldTypeConfig<ButtonProps>> {\r\n override defaultOptions = {\r\n props: {\r\n ghost: false,\r\n loading: false,\r\n block: false,\r\n size: 'default' as const,\r\n danger: false\r\n }\r\n };\r\n\r\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\r\n super();\r\n }\r\n\r\n get hasText() {\r\n return hasTplNameValue(this.props, 'text');\r\n }\r\n\r\n get text() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'text');\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\n\r\nimport { FormlyFieldButton } from './button.type';\r\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzIconModule } from 'ng-zorro-antd/icon';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldButton],\r\n imports: [\r\n CommonModule,\r\n NzOutletModule,\r\n NzButtonModule,\r\n NzIconModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'button',\r\n component: FormlyFieldButton\r\n },\r\n {\r\n name: 'submit',\r\n extends: 'button'\r\n },\r\n {\r\n name: 'reset',\r\n extends: 'button'\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzButtonModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;AAyJM,MAAO,iBAAkB,SAAQ,SAAuC,CAAA;AAW5E,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AAVxD,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,KAAK,EAAE,KAAK;AACZ,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,KAAK,EAAE,KAAK;AACZ,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,KAAK;AACd,aAAA;SACF,CAAC;KAID;AAED,IAAA,IAAI,OAAO,GAAA;QACT,OAAO,eAAe,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;KAC5C;AAED,IAAA,IAAI,IAAI,GAAA;AACN,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;KAChE;8GArBU,iBAAiB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA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
+ {"version":3,"file":"ngx-formly-zorro-antd-button.mjs","sources":["../../../../packages/formlyantd/button/src/button.type.ts","../../../../packages/formlyantd/button/src/button.module.ts","../../../../packages/formlyantd/button/src/ngx-formly-zorro-antd-button.ts"],"sourcesContent":["import { Component, Type, TemplateRef, Optional, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\r\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\nimport {\r\n NzFormlyFieldConfig,\r\n FormlyBoxTemplates,\r\n hasTplNameValue,\r\n resolveTplName\r\n} from 'ngx-formly-zorro-antd/common';\r\n\r\nimport type { NzButtonShape, NzButtonSize, NzButtonType } from 'ng-zorro-antd/button';\r\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\r\n\r\nexport interface ButtonProps extends FormlyFieldProps {\r\n type?: 'a' | 'button';\r\n\r\n /**\r\n * 标题\r\n */\r\n title?: string;\r\n\r\n /**\r\n * form 名称\r\n */\r\n formName?: string;\r\n\r\n /**\r\n * 按钮内容文本\r\n */\r\n text?: string | TemplateRef<{ $implicit: NzSafeAny; options: ButtonProps }>;\r\n textName?: string;\r\n\r\n /**\r\n * 幽灵属性,使按钮背景透明\r\n * @default false\r\n */\r\n ghost?: boolean;\r\n\r\n /**\r\n * 设置按钮载入状态\r\n * @default false\r\n */\r\n loading?: boolean;\r\n\r\n /**\r\n * 设置按钮形状\r\n */\r\n shape?: NzButtonShape;\r\n\r\n /**\r\n * 设置按钮大小\r\n * @default default\r\n */\r\n size?: NzButtonSize;\r\n\r\n /**\r\n * 设置按钮类型\r\n */\r\n nzType?: NzButtonType;\r\n\r\n /**\r\n * 将按钮宽度调整为其父宽度的选项\r\n * @default false\r\n */\r\n block?: boolean;\r\n\r\n /**\r\n * 设置危险按钮\r\n * @default false\r\n */\r\n danger?: boolean;\r\n\r\n /**\r\n * 文字前面的图标\r\n */\r\n beforeIcon?: string;\r\n\r\n /**\r\n * 文字后面面的图标\r\n */\r\n afterIcon?: string;\r\n}\r\n\r\nexport interface FormlyButtonFieldConfig extends NzFormlyFieldConfig<ButtonProps> {\r\n type: 'button' | 'submit' | 'reset' | Type<FormlyFieldButton>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-button',\r\n template: `\r\n @if (props.type === 'a') {\r\n <a\r\n nz-button\r\n [formlyAttributes]=\"field\"\r\n [attr.title]=\"props['title']\"\r\n [nzGhost]=\"props['ghost']!!\"\r\n [nzLoading]=\"props['loading']!!\"\r\n [nzShape]=\"props['shape'] ?? null\"\r\n [nzSize]=\"props['size']!\"\r\n [nzBlock]=\"props['block']!!\"\r\n [nzDanger]=\"props['danger']!!\"\r\n [nzType]=\"props['nzType'] ?? 'link'\"\r\n [ngClass]=\"props['ngClass']\"\r\n >\r\n @if (props['beforeIcon']) {\r\n <span nz-icon [nzType]=\"props['beforeIcon']\"></span>\r\n }\r\n @if (hasText) {\r\n <ng-container\r\n *nzStringTemplateOutlet=\"text; context: { $implicit: field, options: props }\"\r\n >\r\n {{ text }}\r\n </ng-container>\r\n }\r\n @if (props['afterIcon']) {\r\n <span nz-icon [nzType]=\"props['afterIcon']\"></span>\r\n }\r\n </a>\r\n } @else {\r\n <button\r\n [formlyAttributes]=\"field\"\r\n [attr.type]=\"field.type\"\r\n [attr.form]=\"props['formName']\"\r\n [attr.title]=\"props['title']\"\r\n [disabled]=\"props['disabled'] || formControl.disabled!!\"\r\n [nzGhost]=\"props['ghost']!!\"\r\n [nzLoading]=\"props['loading']!!\"\r\n [nzShape]=\"props['shape'] ?? null\"\r\n [nzSize]=\"props['size']!\"\r\n [nzBlock]=\"props['block']!!\"\r\n [nzDanger]=\"props['danger']!!\"\r\n [nzType]=\"props['nzType'] ?? null\"\r\n [ngClass]=\"props['ngClass']\"\r\n nz-button\r\n >\r\n @if (props['beforeIcon']) {\r\n <span nz-icon [nzType]=\"props['beforeIcon']\"></span>\r\n }\r\n @if (hasText) {\r\n <ng-container\r\n *nzStringTemplateOutlet=\"text; context: { $implicit: field, options: props }\"\r\n >\r\n {{ text }}\r\n </ng-container>\r\n }\r\n @if (props['afterIcon']) {\r\n <span nz-icon [nzType]=\"props['afterIcon']\"></span>\r\n }\r\n </button>\r\n }\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldButton extends FieldType<FieldTypeConfig<ButtonProps>> {\r\n override defaultOptions = {\r\n props: {\r\n ghost: false,\r\n loading: false,\r\n block: false,\r\n size: 'default' as const,\r\n danger: false\r\n }\r\n };\r\n\r\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\r\n super();\r\n }\r\n\r\n get hasText() {\r\n return hasTplNameValue(this.props, 'text');\r\n }\r\n\r\n get text() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'text');\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\n\r\nimport { FormlyFieldButton } from './button.type';\r\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzIconModule } from 'ng-zorro-antd/icon';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldButton],\r\n imports: [\r\n CommonModule,\r\n NzOutletModule,\r\n NzButtonModule,\r\n NzIconModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'button',\r\n component: FormlyFieldButton\r\n },\r\n {\r\n name: 'submit',\r\n extends: 'button'\r\n },\r\n {\r\n name: 'reset',\r\n extends: 'button'\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzButtonModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;AAyJM,MAAO,iBAAkB,SAAQ,SAAuC,CAAA;AAW5E,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,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EAAA,UAAA,EAAA,CAAA;kBA1BhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,cAAc;wBACd,cAAc;wBACd,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;AAC7B,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,OAAO,EAAE,QAAQ;AAClB,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,OAAO;AACb,oCAAA,OAAO,EAAE,QAAQ;AAClB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AClCD;;AAEG;;;;"}
@@ -36,7 +36,7 @@ class FormlyWrapperCard extends FieldWrapper {
36
36
  <nz-card
37
37
  [nzActions]="nzActions"
38
38
  [formlyAttributes]="field"
39
- [ngClass]="props['className']"
39
+ [ngClass]="props['ngClass']"
40
40
  [nzBodyStyle]="props['bodyStyle'] ?? null"
41
41
  [nzSize]="props['size']!"
42
42
  [nzBorderless]="props['borderless']!!"
@@ -60,7 +60,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
60
60
  <nz-card
61
61
  [nzActions]="nzActions"
62
62
  [formlyAttributes]="field"
63
- [ngClass]="props['className']"
63
+ [ngClass]="props['ngClass']"
64
64
  [nzBodyStyle]="props['bodyStyle'] ?? null"
65
65
  [nzSize]="props['size']!"
66
66
  [nzBorderless]="props['borderless']!!"
@@ -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';\r\nimport { FieldWrapper } 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 './card-wrapper.props';\r\n\r\nexport interface FormlyCardWrapperConfig extends NzFormlyFieldConfig<CardWrapperProps> {\r\n wrappers: ('card-wrapper' | Type<FormlyWrapperCard>)[];\r\n}\r\n\r\n@Component({\r\n selector: 'formly-wrapper-card',\r\n template: `\r\n <nz-card\r\n [nzActions]=\"nzActions\"\r\n [formlyAttributes]=\"field\"\r\n [ngClass]=\"props['className']\"\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 <ng-container #fieldComponent></ng-container>\r\n </nz-card>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyWrapperCard extends FieldWrapper<NzFormlyFieldConfig<CardWrapperProps>> {\r\n override defaultOptions = {\r\n props: {\r\n bordered: true\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}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\n\r\nimport { FormlyWrapperCard } from './card.wrapper';\r\nimport { NzCardModule } from 'ng-zorro-antd/card';\r\n\r\n@NgModule({\r\n declarations: [FormlyWrapperCard],\r\n imports: [\r\n CommonModule,\r\n NzCardModule,\r\n\r\n FormlyModule.forChild({\r\n wrappers: [\r\n {\r\n name: 'card-wrapper',\r\n component: FormlyWrapperCard\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzCardWrapperModule {}\r\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,GAAA;AACT,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;KACjE;AACD,IAAA,IAAI,SAAS,G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AA,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';\r\nimport { FieldWrapper } 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 './card-wrapper.props';\r\n\r\nexport interface FormlyCardWrapperConfig extends NzFormlyFieldConfig<CardWrapperProps> {\r\n wrappers: ('card-wrapper' | Type<FormlyWrapperCard>)[];\r\n}\r\n\r\n@Component({\r\n selector: 'formly-wrapper-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 <ng-container #fieldComponent></ng-container>\r\n </nz-card>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyWrapperCard extends FieldWrapper<NzFormlyFieldConfig<CardWrapperProps>> {\r\n override defaultOptions = {\r\n props: {\r\n bordered: true\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}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\n\r\nimport { FormlyWrapperCard } from './card.wrapper';\r\nimport { NzCardModule } from 'ng-zorro-antd/card';\r\n\r\n@NgModule({\r\n declarations: [FormlyWrapperCard],\r\n imports: [\r\n CommonModule,\r\n NzCardModule,\r\n\r\n FormlyModule.forChild({\r\n wrappers: [\r\n {\r\n name: 'card-wrapper',\r\n component: FormlyWrapperCard\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzCardWrapperModule {}\r\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,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ACpB,wBAAA,SAAS,EAAE,iBAAiB;AAC7B,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAhBrC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;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;;;;"}
@@ -42,7 +42,7 @@ class FormlyFieldCard extends FieldType {
42
42
  <nz-card
43
43
  [nzActions]="nzActions"
44
44
  [formlyAttributes]="field"
45
- [ngClass]="props['className']"
45
+ [ngClass]="props['ngClass']"
46
46
  [nzBodyStyle]="props['bodyStyle'] ?? null"
47
47
  [nzSize]="props['size']!"
48
48
  [nzBorderless]="props['borderless']!!"
@@ -73,7 +73,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
73
73
  <nz-card
74
74
  [nzActions]="nzActions"
75
75
  [formlyAttributes]="field"
76
- [ngClass]="props['className']"
76
+ [ngClass]="props['ngClass']"
77
77
  [nzBodyStyle]="props['bodyStyle'] ?? null"
78
78
  [nzSize]="props['size']!"
79
79
  [nzBorderless]="props['borderless']!!"
@@ -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['className']\"\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 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,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;KAC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AAA,CAAA,EAAA;+GAAlB,kBAAkB,EAAA,YAAA,EAAA,CAnBb,eAAe,CAAA,EAAA,OAAA,EAAA,CAK7B,YAAY;YACZ,YAAY;AACZ,YAAA,cAAc,8BAPA,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA;AAmBpB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAd3B,YAAY;YACZ,YAAY;YACZ,cAAc;YACd,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,MAAM;AACZ,wBAAA,SAAS,EAAE,SAAS;AACrB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAIO,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAjB9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,SAAS,CAAC;AACzB,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,YAAY;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 exports: [COMPONENT]\r\n})\r\nexport class FormlyNzCardModule {}\r\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,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC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A,EAAA,CAAA,CAAA,EAAA;+GAAlB,kBAAkB,EAAA,YAAA,EAAA,CAnBb,eAAe,CAAA,EAAA,OAAA,EAAA,CAK7B,YAAY;YACZ,YAAY;AACZ,YAAA,cAAc,8BAPA,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA;AAmBpB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAd3B,YAAY;YACZ,YAAY;YACZ,cAAc;YACd,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,MAAM;AACZ,wBAAA,SAAS,EAAE,SAAS;AACrB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAIO,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAjB9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,SAAS,CAAC;AACzB,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,YAAY;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;;;;"}
@@ -61,7 +61,7 @@ class FormlyFieldCascader extends FieldType {
61
61
  [nzPlaceHolder]="props.placeholder ?? ''"
62
62
  [formControl]="formControl"
63
63
  [formlyAttributes]="field"
64
- [ngClass]="props['className']"
64
+ [ngClass]="props['ngClass']"
65
65
  [nzAllowClear]="props['allowClear']!!"
66
66
  [nzAutoFocus]="props['autoFocus']!!"
67
67
  [nzBackdrop]="props['backdrop']!!"
@@ -99,7 +99,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
99
99
  [nzPlaceHolder]="props.placeholder ?? ''"
100
100
  [formControl]="formControl"
101
101
  [formlyAttributes]="field"
102
- [ngClass]="props['className']"
102
+ [ngClass]="props['ngClass']"
103
103
  [nzAllowClear]="props['allowClear']!!"
104
104
  [nzAutoFocus]="props['autoFocus']!!"
105
105
  [nzBackdrop]="props['backdrop']!!"
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-cascader.mjs","sources":["../../../../packages/formlyantd/cascader/src/cascader.type.ts","../../../../packages/formlyantd/cascader/src/cascader.module.ts","../../../../packages/formlyantd/cascader/src/ngx-formly-zorro-antd-cascader.ts"],"sourcesContent":["import {\r\n Component,\r\n TemplateRef,\r\n Optional,\r\n Type,\r\n ChangeDetectionStrategy,\r\n OnInit\r\n} from '@angular/core';\r\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport type {\r\n NzCascaderOption,\r\n NzShowSearchOptions,\r\n NzCascaderExpandTrigger,\r\n NzCascaderSize\r\n} from 'ng-zorro-antd/cascader';\r\nimport type { NzSafeAny, NzStatus, NgStyleInterface } from 'ng-zorro-antd/core/types';\r\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';\r\nimport { resolveTplName, FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';\r\n\r\ninterface CascaderProps extends FormlyFieldProps {\r\n /**\r\n * 是否支持清除\r\n * @default true\r\n */\r\n allowClear?: boolean;\r\n\r\n /**\r\n * 是否自动聚焦,当存在输入框时\r\n * @default false\r\n */\r\n autoFocus?: boolean;\r\n\r\n /**\r\n * 浮层是否应带有背景板\r\n * @default false\r\n */\r\n backdrop?: boolean;\r\n\r\n /**\r\n * 点击父级菜单选项时,可通过该函数判断是否允许值的变化\r\n */\r\n changeOn?: (option: NzSafeAny, index: number) => boolean;\r\n\r\n /**\r\n * 当此项为 true 时,点选每级菜单选项值都会发生变化,具体见上面的演示\r\n * @default false\r\n */\r\n changeOnSelect?: boolean;\r\n\r\n /**\r\n * 自定义浮层列类名\r\n */\r\n columnClassName?: string;\r\n\r\n /**\r\n * 自定义次级菜单展开图标\r\n */\r\n expandIcon?: string | TemplateRef<void>;\r\n expandIconName?: string;\r\n\r\n /**\r\n * 次级菜单的展开方式\r\n * @default 'click'\r\n */\r\n expandTrigger?: NzCascaderExpandTrigger;\r\n\r\n /**\r\n * 选项的显示值的属性名\r\n * @default 'label'\r\n */\r\n labelProperty: string;\r\n\r\n /**\r\n * 选择后展示的渲染模板\r\n */\r\n labelRender?: TemplateRef<NzSafeAny> | null;\r\n labelRenderName?: string;\r\n\r\n /**\r\n * 用于动态加载选项。如果提供了ngModel初始值,且未提供nzOptions值,则会立即触发动态加载。\r\n */\r\n loadData?: (option: NzSafeAny, index?: number) => PromiseLike<NzSafeAny>;\r\n\r\n /**\r\n * 自定义浮层类名\r\n */\r\n menuClassName?: string;\r\n\r\n /**\r\n * 自定义浮层样式\r\n */\r\n menuStyle?: NgStyleInterface | null;\r\n\r\n /**\r\n * 当下拉列表为空时显示的内容\r\n */\r\n notFoundContent?: string | TemplateRef<void>;\r\n notFoundContentName?: string;\r\n\r\n /**\r\n * 选项的渲染模板\r\n */\r\n optionRender?: TemplateRef<{ $implicit: NzCascaderOption; index: number }> | null;\r\n optionRenderName?: string;\r\n\r\n /**\r\n * 是否显示箭头\r\n * @default true\r\n */\r\n showArrow?: boolean;\r\n\r\n /**\r\n * 显示输入框\r\n * @default true\r\n */\r\n showInput?: boolean;\r\n\r\n /**\r\n * 是否支持搜索,默认情况下对 label 进行全匹配搜索,不能和 [nzLoadData] 同时使用\r\n * @default false\r\n */\r\n showSearch?: boolean | NzShowSearchOptions;\r\n\r\n /**\r\n * 输入框大小\r\n * @default default\r\n */\r\n size?: NzCascaderSize;\r\n\r\n /**\r\n * 设置校验状态\r\n */\r\n status?: NzStatus;\r\n\r\n /**\r\n * 自定义的选择框后缀图标\r\n */\r\n suffixIcon?: string | TemplateRef<void>;\r\n suffixIconName?: string;\r\n\r\n /**\r\n * 选项的实际值的属性名\r\n * @default 'value'\r\n */\r\n valueProperty?: string;\r\n\r\n /**\r\n * 可选项数据源\r\n */\r\n cascaderOptions?: NzCascaderOption[] | null;\r\n\r\n /**\r\n * 清除值时触发\r\n */\r\n onClear?: FormlyAttributeEvent;\r\n /**\r\n * 菜单浮层的显示/隐藏\r\n */\r\n visibleChange?: FormlyAttributeEvent<boolean>;\r\n\r\n /**\r\n * 值发生变化时触发\r\n */\r\n selectionChange?: FormlyAttributeEvent<NzCascaderOption[]>;\r\n}\r\n\r\nexport interface FormlyCascaderFieldConfig extends NzFormlyFieldConfig<CascaderProps> {\r\n type: 'cascader' | Type<FormlyFieldCascader>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-cascader',\r\n template: `<nz-cascader\r\n #cascader\r\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [ngClass]=\"props['className']\"\r\n [nzAllowClear]=\"props['allowClear']!!\"\r\n [nzAutoFocus]=\"props['autoFocus']!!\"\r\n [nzBackdrop]=\"props['backdrop']!!\"\r\n [nzChangeOn]=\"props['changeOn']\"\r\n [nzChangeOnSelect]=\"props['changeOnSelect']!!\"\r\n [nzColumnClassName]=\"props['columnClassName']\"\r\n [nzExpandIcon]=\"nzExpandIcon!\"\r\n [nzExpandTrigger]=\"props['expandTrigger']!\"\r\n [nzLabelProperty]=\"props['labelProperty']\"\r\n [nzLabelRender]=\"nzLabelRender ?? null\"\r\n [nzLoadData]=\"props['loadData']\"\r\n [nzMenuClassName]=\"props['menuClassName']\"\r\n [nzMenuStyle]=\"props['menuStyle'] ?? null\"\r\n [nzNotFoundContent]=\"nzNotFoundContent\"\r\n [nzOptionRender]=\"nzOptionRender ?? null\"\r\n [nzOptions]=\"props['cascaderOptions'] ?? null\"\r\n [nzShowArrow]=\"props['showArrow']!!\"\r\n [nzShowInput]=\"props['showInput']!!\"\r\n [nzShowSearch]=\"props['showSearch']!!\"\r\n [nzSize]=\"props['size']!\"\r\n [nzStatus]=\"props['status'] ?? ''\"\r\n [nzSuffixIcon]=\"nzSuffixIcon!\"\r\n [nzValueProperty]=\"props['valueProperty']!\"\r\n (nzClear)=\"props['onClear'] && props['onClear'](field)\"\r\n (nzVisibleChange)=\"props['visibleChange'] && props['visibleChange'](field, $event)\"\r\n (nzSelectionChange)=\"props['selectionChange'] && props['selectionChange'](field, $event)\"\r\n ></nz-cascader>`,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldCascader\r\n extends FieldType<FieldTypeConfig<CascaderProps>>\r\n implements OnInit\r\n{\r\n override defaultOptions = {\r\n props: {\r\n placeholder: '请选择',\r\n allowClear: true,\r\n backdrop: false,\r\n changeOnSelect: false,\r\n expandTrigger: 'click' as const,\r\n labelProperty: 'label',\r\n showArrow: true,\r\n showInput: true,\r\n showSearch: false,\r\n size: 'default' as const,\r\n status: '' as const,\r\n valueProperty: 'value',\r\n cascaderOptions: []\r\n }\r\n };\r\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\r\n super();\r\n }\r\n\r\n get nzNotFoundContent() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'notFoundContent');\r\n }\r\n\r\n get nzExpandIcon() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'expandIcon');\r\n }\r\n\r\n get nzLabelRender() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'labelRender');\r\n }\r\n\r\n get nzOptionRender() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'optionRender');\r\n }\r\n\r\n get nzSuffixIcon() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'suffixIcon');\r\n }\r\n\r\n ngOnInit(): void {\r\n const options = this.props['cascaderOptions'];\r\n if (!options || options.length === 0) {\r\n this.props['cascaderOptions'] = this.props.options as NzSafeAny;\r\n }\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 { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\nimport { NzCascaderModule } from 'ng-zorro-antd/cascader';\r\nimport { FormlyFieldCascader } from './cascader.type';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldCascader],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n NzCascaderModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'cascader',\r\n component: FormlyFieldCascader,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzCascaderModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AAiNM,MAAO,mBACX,SAAQ,SAAyC,CAAA;AAoBjD,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AAjBxD,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,WAAW,EAAE,KAAK;AAClB,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,cAAc,EAAE,KAAK;AACrB,gBAAA,aAAa,EAAE,OAAgB;AAC/B,gBAAA,aAAa,EAAE,OAAO;AACtB,gBAAA,SAAS,EAAE,IAAI;AACf,gBAAA,SAAS,EAAE,IAAI;AACf,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,IAAI,EAAE,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B,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,UAAU;AAChB,wBAAA,SAAS,EAAE,mBAAmB;wBAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAnBlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;AACnC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,gBAAgB;wBAEhB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,SAAS,EAAE,mBAAmB;oCAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC1BD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-cascader.mjs","sources":["../../../../packages/formlyantd/cascader/src/cascader.type.ts","../../../../packages/formlyantd/cascader/src/cascader.module.ts","../../../../packages/formlyantd/cascader/src/ngx-formly-zorro-antd-cascader.ts"],"sourcesContent":["import {\r\n Component,\r\n TemplateRef,\r\n Optional,\r\n Type,\r\n ChangeDetectionStrategy,\r\n OnInit\r\n} from '@angular/core';\r\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport type {\r\n NzCascaderOption,\r\n NzShowSearchOptions,\r\n NzCascaderExpandTrigger,\r\n NzCascaderSize\r\n} from 'ng-zorro-antd/cascader';\r\nimport type { NzSafeAny, NzStatus, NgStyleInterface } from 'ng-zorro-antd/core/types';\r\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';\r\nimport { resolveTplName, FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';\r\n\r\ninterface CascaderProps extends FormlyFieldProps {\r\n /**\r\n * 是否支持清除\r\n * @default true\r\n */\r\n allowClear?: boolean;\r\n\r\n /**\r\n * 是否自动聚焦,当存在输入框时\r\n * @default false\r\n */\r\n autoFocus?: boolean;\r\n\r\n /**\r\n * 浮层是否应带有背景板\r\n * @default false\r\n */\r\n backdrop?: boolean;\r\n\r\n /**\r\n * 点击父级菜单选项时,可通过该函数判断是否允许值的变化\r\n */\r\n changeOn?: (option: NzSafeAny, index: number) => boolean;\r\n\r\n /**\r\n * 当此项为 true 时,点选每级菜单选项值都会发生变化,具体见上面的演示\r\n * @default false\r\n */\r\n changeOnSelect?: boolean;\r\n\r\n /**\r\n * 自定义浮层列类名\r\n */\r\n columnClassName?: string;\r\n\r\n /**\r\n * 自定义次级菜单展开图标\r\n */\r\n expandIcon?: string | TemplateRef<void>;\r\n expandIconName?: string;\r\n\r\n /**\r\n * 次级菜单的展开方式\r\n * @default 'click'\r\n */\r\n expandTrigger?: NzCascaderExpandTrigger;\r\n\r\n /**\r\n * 选项的显示值的属性名\r\n * @default 'label'\r\n */\r\n labelProperty: string;\r\n\r\n /**\r\n * 选择后展示的渲染模板\r\n */\r\n labelRender?: TemplateRef<NzSafeAny> | null;\r\n labelRenderName?: string;\r\n\r\n /**\r\n * 用于动态加载选项。如果提供了ngModel初始值,且未提供nzOptions值,则会立即触发动态加载。\r\n */\r\n loadData?: (option: NzSafeAny, index?: number) => PromiseLike<NzSafeAny>;\r\n\r\n /**\r\n * 自定义浮层类名\r\n */\r\n menuClassName?: string;\r\n\r\n /**\r\n * 自定义浮层样式\r\n */\r\n menuStyle?: NgStyleInterface | null;\r\n\r\n /**\r\n * 当下拉列表为空时显示的内容\r\n */\r\n notFoundContent?: string | TemplateRef<void>;\r\n notFoundContentName?: string;\r\n\r\n /**\r\n * 选项的渲染模板\r\n */\r\n optionRender?: TemplateRef<{ $implicit: NzCascaderOption; index: number }> | null;\r\n optionRenderName?: string;\r\n\r\n /**\r\n * 是否显示箭头\r\n * @default true\r\n */\r\n showArrow?: boolean;\r\n\r\n /**\r\n * 显示输入框\r\n * @default true\r\n */\r\n showInput?: boolean;\r\n\r\n /**\r\n * 是否支持搜索,默认情况下对 label 进行全匹配搜索,不能和 [nzLoadData] 同时使用\r\n * @default false\r\n */\r\n showSearch?: boolean | NzShowSearchOptions;\r\n\r\n /**\r\n * 输入框大小\r\n * @default default\r\n */\r\n size?: NzCascaderSize;\r\n\r\n /**\r\n * 设置校验状态\r\n */\r\n status?: NzStatus;\r\n\r\n /**\r\n * 自定义的选择框后缀图标\r\n */\r\n suffixIcon?: string | TemplateRef<void>;\r\n suffixIconName?: string;\r\n\r\n /**\r\n * 选项的实际值的属性名\r\n * @default 'value'\r\n */\r\n valueProperty?: string;\r\n\r\n /**\r\n * 可选项数据源\r\n */\r\n cascaderOptions?: NzCascaderOption[] | null;\r\n\r\n /**\r\n * 清除值时触发\r\n */\r\n onClear?: FormlyAttributeEvent;\r\n /**\r\n * 菜单浮层的显示/隐藏\r\n */\r\n visibleChange?: FormlyAttributeEvent<boolean>;\r\n\r\n /**\r\n * 值发生变化时触发\r\n */\r\n selectionChange?: FormlyAttributeEvent<NzCascaderOption[]>;\r\n}\r\n\r\nexport interface FormlyCascaderFieldConfig extends NzFormlyFieldConfig<CascaderProps> {\r\n type: 'cascader' | Type<FormlyFieldCascader>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-cascader',\r\n template: `<nz-cascader\r\n #cascader\r\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [ngClass]=\"props['ngClass']\"\r\n [nzAllowClear]=\"props['allowClear']!!\"\r\n [nzAutoFocus]=\"props['autoFocus']!!\"\r\n [nzBackdrop]=\"props['backdrop']!!\"\r\n [nzChangeOn]=\"props['changeOn']\"\r\n [nzChangeOnSelect]=\"props['changeOnSelect']!!\"\r\n [nzColumnClassName]=\"props['columnClassName']\"\r\n [nzExpandIcon]=\"nzExpandIcon!\"\r\n [nzExpandTrigger]=\"props['expandTrigger']!\"\r\n [nzLabelProperty]=\"props['labelProperty']\"\r\n [nzLabelRender]=\"nzLabelRender ?? null\"\r\n [nzLoadData]=\"props['loadData']\"\r\n [nzMenuClassName]=\"props['menuClassName']\"\r\n [nzMenuStyle]=\"props['menuStyle'] ?? null\"\r\n [nzNotFoundContent]=\"nzNotFoundContent\"\r\n [nzOptionRender]=\"nzOptionRender ?? null\"\r\n [nzOptions]=\"props['cascaderOptions'] ?? null\"\r\n [nzShowArrow]=\"props['showArrow']!!\"\r\n [nzShowInput]=\"props['showInput']!!\"\r\n [nzShowSearch]=\"props['showSearch']!!\"\r\n [nzSize]=\"props['size']!\"\r\n [nzStatus]=\"props['status'] ?? ''\"\r\n [nzSuffixIcon]=\"nzSuffixIcon!\"\r\n [nzValueProperty]=\"props['valueProperty']!\"\r\n (nzClear)=\"props['onClear'] && props['onClear'](field)\"\r\n (nzVisibleChange)=\"props['visibleChange'] && props['visibleChange'](field, $event)\"\r\n (nzSelectionChange)=\"props['selectionChange'] && props['selectionChange'](field, $event)\"\r\n ></nz-cascader>`,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldCascader\r\n extends FieldType<FieldTypeConfig<CascaderProps>>\r\n implements OnInit\r\n{\r\n override defaultOptions = {\r\n props: {\r\n placeholder: '请选择',\r\n allowClear: true,\r\n backdrop: false,\r\n changeOnSelect: false,\r\n expandTrigger: 'click' as const,\r\n labelProperty: 'label',\r\n showArrow: true,\r\n showInput: true,\r\n showSearch: false,\r\n size: 'default' as const,\r\n status: '' as const,\r\n valueProperty: 'value',\r\n cascaderOptions: []\r\n }\r\n };\r\n constructor(@Optional() public fieldTemplates: FormlyBoxTemplates) {\r\n super();\r\n }\r\n\r\n get nzNotFoundContent() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'notFoundContent');\r\n }\r\n\r\n get nzExpandIcon() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'expandIcon');\r\n }\r\n\r\n get nzLabelRender() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'labelRender');\r\n }\r\n\r\n get nzOptionRender() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'optionRender');\r\n }\r\n\r\n get nzSuffixIcon() {\r\n return resolveTplName(this.props, this.fieldTemplates, 'suffixIcon');\r\n }\r\n\r\n ngOnInit(): void {\r\n const options = this.props['cascaderOptions'];\r\n if (!options || options.length === 0) {\r\n this.props['cascaderOptions'] = this.props.options as NzSafeAny;\r\n }\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 { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\nimport { NzCascaderModule } from 'ng-zorro-antd/cascader';\r\nimport { FormlyFieldCascader } from './cascader.type';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldCascader],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n NzCascaderModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'cascader',\r\n component: FormlyFieldCascader,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzCascaderModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AAiNM,MAAO,mBACX,SAAQ,SAAyC,CAAA;AAoBjD,IAAA,WAAA,CAA+B,cAAkC,EAAA;AAC/D,QAAA,KAAK,EAAE,CAAC;QADqB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AAjBxD,QAAA,IAAA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A,EAAA,CAEhC,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YACvB,gBAAgB,EAAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA,EAAA;AAaP,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,YAhB/B,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YACvB,gBAAgB;YAEhB,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,UAAU;AAChB,wBAAA,SAAS,EAAE,mBAAmB;wBAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAnBlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;AACnC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,gBAAgB;wBAEhB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,SAAS,EAAE,mBAAmB;oCAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC1BD;;AAEG;;;;"}
@@ -41,7 +41,7 @@ class FormlyFieldDatepicker extends FieldType {
41
41
  [nzId]="id"
42
42
  [formControl]="formControl"
43
43
  [formlyAttributes]="field"
44
- [ngClass]="props['className']"
44
+ [ngClass]="props['ngClass']"
45
45
  [nzPlaceHolder]="props.placeholder ?? ''"
46
46
  [nzAllowClear]="props['allowClear']!!"
47
47
  [nzAutoFocus]="props['autoFocus']!!"
@@ -81,7 +81,7 @@ class FormlyFieldDatepicker extends FieldType {
81
81
  [nzId]="id"
82
82
  [formControl]="formControl"
83
83
  [formlyAttributes]="field"
84
- [ngClass]="props['className']"
84
+ [ngClass]="props['ngClass']"
85
85
  [nzPlaceHolder]="props.placeholder ?? ''"
86
86
  [nzAllowClear]="props['allowClear']!!"
87
87
  [nzAutoFocus]="props['autoFocus']!!"
@@ -121,7 +121,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
121
121
  [nzId]="id"
122
122
  [formControl]="formControl"
123
123
  [formlyAttributes]="field"
124
- [ngClass]="props['className']"
124
+ [ngClass]="props['ngClass']"
125
125
  [nzPlaceHolder]="props.placeholder ?? ''"
126
126
  [nzAllowClear]="props['allowClear']!!"
127
127
  [nzAutoFocus]="props['autoFocus']!!"
@@ -161,7 +161,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
161
161
  [nzId]="id"
162
162
  [formControl]="formControl"
163
163
  [formlyAttributes]="field"
164
- [ngClass]="props['className']"
164
+ [ngClass]="props['ngClass']"
165
165
  [nzPlaceHolder]="props.placeholder ?? ''"
166
166
  [nzAllowClear]="props['allowClear']!!"
167
167
  [nzAutoFocus]="props['autoFocus']!!"
@@ -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';\r\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\r\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\r\nimport type { DatepickerProps } from './datepicker.props';\r\n\r\nexport interface FormlyDatepickerFieldConfig extends NzFormlyFieldConfig<DatepickerProps> {\r\n type: 'datepicker' | Type<FormlyFieldDatepicker>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-datepicker',\r\n template: ` @if (props.type === 'range') {\r\n <nz-range-picker\r\n [nzId]=\"id\"\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [ngClass]=\"props['className']\"\r\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\r\n [nzAllowClear]=\"props['allowClear']!!\"\r\n [nzAutoFocus]=\"props['autoFocus']!!\"\r\n [nzBackdrop]=\"props['backdrop']!!\"\r\n [nzDefaultPickerValue]=\"props['defaultPickerValue']\"\r\n [nzDisabledDate]=\"props['disabledDate']\"\r\n [nzDropdownClassName]=\"props['dropdownClassName']\"\r\n [nzFormat]=\"props['format']\"\r\n [nzInputReadOnly]=\"props['inputReadOnly']!!\"\r\n [nzMode]=\"props['mode']\"\r\n [nzPopupStyle]=\"props['popupStyle']\"\r\n [nzSize]=\"props['size']\"\r\n [nzStatus]=\"props['status'] ?? ''\"\r\n [nzPlacement]=\"props['placement']\"\r\n [nzRenderExtraFooter]=\"props['renderExtraFooter']\"\r\n [nzSuffixIcon]=\"props['suffixIcon']\"\r\n [nzBorderless]=\"props['borderless']\"\r\n [nzInline]=\"props['inline']\"\r\n [nzDateRender]=\"props['dateRender']\"\r\n [nzDisabledTime]=\"props['rangeOptions']?.disabledTime\"\r\n [nzShowTime]=\"props['showTime']\"\r\n [nzShowToday]=\"props['showToday']!!\"\r\n [nzShowNow]=\"props['showNow']!!\"\r\n [nzShowWeekNumber]=\"props['showWeekNumber']!!\"\r\n [nzRanges]=\"props['rangeOptions']?.ranges\"\r\n [nzSeparator]=\"props['rangeOptions']?.separator\"\r\n (nzOnOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\r\n (nzOnOk)=\"props['onOk'] && props['onOk'](field, $event)\"\r\n (nzOnCalendarChange)=\"\r\n props['rangeOptions']?.calendarChange &&\r\n props['rangeOptions']?.calendarChange(field, $event)\r\n \"\r\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\r\n ></nz-range-picker>\r\n } @else {\r\n <nz-date-picker\r\n [nzId]=\"id\"\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [ngClass]=\"props['className']\"\r\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\r\n [nzAllowClear]=\"props['allowClear']!!\"\r\n [nzAutoFocus]=\"props['autoFocus']!!\"\r\n [nzBackdrop]=\"props['backdrop']!!\"\r\n [nzDefaultPickerValue]=\"props['defaultPickerValue']\"\r\n [nzDisabledDate]=\"props['disabledDate']\"\r\n [nzDropdownClassName]=\"props['dropdownClassName']\"\r\n [nzFormat]=\"props['format']\"\r\n [nzInputReadOnly]=\"props['inputReadOnly']!!\"\r\n [nzMode]=\"props['mode']\"\r\n [nzPopupStyle]=\"props['popupStyle']!\"\r\n [nzSize]=\"props['size']!\"\r\n [nzStatus]=\"props['status']!\"\r\n [nzPlacement]=\"props['placement']!\"\r\n [nzRenderExtraFooter]=\"props['renderExtraFooter']\"\r\n [nzSuffixIcon]=\"props['suffixIcon']\"\r\n [nzBorderless]=\"props['borderless']\"\r\n [nzInline]=\"props['inline']\"\r\n [nzDateRender]=\"props['dateRender']\"\r\n [nzDisabledTime]=\"props['disabledTime']\"\r\n [nzShowTime]=\"props['showTime']\"\r\n [nzShowToday]=\"props['showToday']!!\"\r\n [nzShowNow]=\"props['showNow']!!\"\r\n [nzShowWeekNumber]=\"props['showWeekNumber']!!\"\r\n (nzOnOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\r\n (nzOnOk)=\"props['onOk'] && props['onOk'](field, $event)\"\r\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\r\n ></nz-date-picker>\r\n }`,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldDatepicker extends FieldType<FieldTypeConfig> {\r\n override defaultOptions = {\r\n props: {\r\n allowClear: true,\r\n backdrop: false,\r\n defaultPickerValue: null,\r\n inputReadOnly: false,\r\n mode: 'date' as const,\r\n size: 'default' as const,\r\n status: '' as const,\r\n placement: 'bottomLeft' as const,\r\n popupStyle: {},\r\n borderless: false,\r\n inline: false,\r\n showToday: true,\r\n showNow: true,\r\n nzShowWeekNumber: false,\r\n rangeOptions: {\r\n separator: '~'\r\n }\r\n }\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 { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { NzDatePickerModule } from 'ng-zorro-antd/date-picker';\r\nimport { FormlyFieldDatepicker } from './datepicker.type';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldDatepicker],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n\r\n NzDatePickerModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'datepicker',\r\n component: FormlyFieldDatepicker,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzDatepickerModule {}\r\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;;AAgFW,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,MAA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,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';\r\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\r\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\r\nimport type { DatepickerProps } from './datepicker.props';\r\n\r\nexport interface FormlyDatepickerFieldConfig extends NzFormlyFieldConfig<DatepickerProps> {\r\n type: 'datepicker' | Type<FormlyFieldDatepicker>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-datepicker',\r\n template: ` @if (props.type === 'range') {\r\n <nz-range-picker\r\n [nzId]=\"id\"\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [ngClass]=\"props['ngClass']\"\r\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\r\n [nzAllowClear]=\"props['allowClear']!!\"\r\n [nzAutoFocus]=\"props['autoFocus']!!\"\r\n [nzBackdrop]=\"props['backdrop']!!\"\r\n [nzDefaultPickerValue]=\"props['defaultPickerValue']\"\r\n [nzDisabledDate]=\"props['disabledDate']\"\r\n [nzDropdownClassName]=\"props['dropdownClassName']\"\r\n [nzFormat]=\"props['format']\"\r\n [nzInputReadOnly]=\"props['inputReadOnly']!!\"\r\n [nzMode]=\"props['mode']\"\r\n [nzPopupStyle]=\"props['popupStyle']\"\r\n [nzSize]=\"props['size']\"\r\n [nzStatus]=\"props['status'] ?? ''\"\r\n [nzPlacement]=\"props['placement']\"\r\n [nzRenderExtraFooter]=\"props['renderExtraFooter']\"\r\n [nzSuffixIcon]=\"props['suffixIcon']\"\r\n [nzBorderless]=\"props['borderless']\"\r\n [nzInline]=\"props['inline']\"\r\n [nzDateRender]=\"props['dateRender']\"\r\n [nzDisabledTime]=\"props['rangeOptions']?.disabledTime\"\r\n [nzShowTime]=\"props['showTime']\"\r\n [nzShowToday]=\"props['showToday']!!\"\r\n [nzShowNow]=\"props['showNow']!!\"\r\n [nzShowWeekNumber]=\"props['showWeekNumber']!!\"\r\n [nzRanges]=\"props['rangeOptions']?.ranges\"\r\n [nzSeparator]=\"props['rangeOptions']?.separator\"\r\n (nzOnOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\r\n (nzOnOk)=\"props['onOk'] && props['onOk'](field, $event)\"\r\n (nzOnCalendarChange)=\"\r\n props['rangeOptions']?.calendarChange &&\r\n props['rangeOptions']?.calendarChange(field, $event)\r\n \"\r\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\r\n ></nz-range-picker>\r\n } @else {\r\n <nz-date-picker\r\n [nzId]=\"id\"\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [ngClass]=\"props['ngClass']\"\r\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\r\n [nzAllowClear]=\"props['allowClear']!!\"\r\n [nzAutoFocus]=\"props['autoFocus']!!\"\r\n [nzBackdrop]=\"props['backdrop']!!\"\r\n [nzDefaultPickerValue]=\"props['defaultPickerValue']\"\r\n [nzDisabledDate]=\"props['disabledDate']\"\r\n [nzDropdownClassName]=\"props['dropdownClassName']\"\r\n [nzFormat]=\"props['format']\"\r\n [nzInputReadOnly]=\"props['inputReadOnly']!!\"\r\n [nzMode]=\"props['mode']\"\r\n [nzPopupStyle]=\"props['popupStyle']!\"\r\n [nzSize]=\"props['size']!\"\r\n [nzStatus]=\"props['status']!\"\r\n [nzPlacement]=\"props['placement']!\"\r\n [nzRenderExtraFooter]=\"props['renderExtraFooter']\"\r\n [nzSuffixIcon]=\"props['suffixIcon']\"\r\n [nzBorderless]=\"props['borderless']\"\r\n [nzInline]=\"props['inline']\"\r\n [nzDateRender]=\"props['dateRender']\"\r\n [nzDisabledTime]=\"props['disabledTime']\"\r\n [nzShowTime]=\"props['showTime']\"\r\n [nzShowToday]=\"props['showToday']!!\"\r\n [nzShowNow]=\"props['showNow']!!\"\r\n [nzShowWeekNumber]=\"props['showWeekNumber']!!\"\r\n (nzOnOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\r\n (nzOnOk)=\"props['onOk'] && props['onOk'](field, $event)\"\r\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\r\n ></nz-date-picker>\r\n }`,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldDatepicker extends FieldType<FieldTypeConfig> {\r\n override defaultOptions = {\r\n props: {\r\n allowClear: true,\r\n backdrop: false,\r\n defaultPickerValue: null,\r\n inputReadOnly: false,\r\n mode: 'date' as const,\r\n size: 'default' as const,\r\n status: '' as const,\r\n placement: 'bottomLeft' as const,\r\n popupStyle: {},\r\n borderless: false,\r\n inline: false,\r\n showToday: true,\r\n showNow: true,\r\n nzShowWeekNumber: false,\r\n rangeOptions: {\r\n separator: '~'\r\n }\r\n }\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 { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { NzDatePickerModule } from 'ng-zorro-antd/date-picker';\r\nimport { FormlyFieldDatepicker } from './datepicker.type';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldDatepicker],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n\r\n NzDatePickerModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'datepicker',\r\n component: FormlyFieldDatepicker,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzDatepickerModule {}\r\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;;AAgFW,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,oBAAA,SAAS,EAAE,GAAG;AACf,iBAAA;AACF,aAAA;SACF,CAAC;AACH,KAAA;8GAtBY,qBAAqB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAArB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,EA7EtB,QAAA,EAAA,yBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,YAAY;AAClB,wBAAA,SAAS,EAAE,qBAAqB;wBAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBApBpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,qBAAqB,CAAC;AACrC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,kBAAkB;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;;;;"}
@@ -12,8 +12,8 @@ class FormlyFieldGrid extends FieldType {
12
12
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldGrid, selector: "formly-field-grid", usesInheritance: true, ngImport: i0, template: `
13
13
  <div
14
14
  nz-row
15
- [ngStyle]="props['style']"
16
- [ngClass]="props['className']"
15
+ [ngStyle]="props['ngStyle']"
16
+ [ngClass]="props['ngClass']"
17
17
  [nzAlign]="props.align ?? null"
18
18
  [nzGutter]="props.gutter ?? null"
19
19
  [nzJustify]="props.justify ?? null"
@@ -47,8 +47,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
47
47
  template: `
48
48
  <div
49
49
  nz-row
50
- [ngStyle]="props['style']"
51
- [ngClass]="props['className']"
50
+ [ngStyle]="props['ngStyle']"
51
+ [ngClass]="props['ngClass']"
52
52
  [nzAlign]="props.align ?? null"
53
53
  [nzGutter]="props.gutter ?? null"
54
54
  [nzJustify]="props.justify ?? null"