ngx-formly-zorro-antd 17.1.2 → 17.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (195) hide show
  1. package/README.md +1 -1
  2. package/autocomplete/package.json +3 -0
  3. package/button/package.json +3 -0
  4. package/button-group/package.json +3 -0
  5. package/card/package.json +3 -0
  6. package/card-wrapper/package.json +3 -0
  7. package/cascader/package.json +3 -0
  8. package/checkbox/package.json +3 -0
  9. package/common/package.json +3 -0
  10. package/datepicker/package.json +3 -0
  11. package/esm2022/autocomplete/autocomplete.props.mjs +1 -1
  12. package/esm2022/autocomplete/public_api.mjs +1 -1
  13. package/esm2022/button/button.module.mjs +1 -1
  14. package/esm2022/button/button.type.mjs +123 -123
  15. package/esm2022/button/public_api.mjs +1 -1
  16. package/esm2022/button-group/button-group.module.mjs +1 -1
  17. package/esm2022/button-group/button-group.type.mjs +67 -67
  18. package/esm2022/button-group/public_api.mjs +1 -1
  19. package/esm2022/card/card.module.mjs +1 -1
  20. package/esm2022/card/card.type.mjs +51 -51
  21. package/esm2022/card/public_api.mjs +1 -1
  22. package/esm2022/card-wrapper/card-wrapper.module.mjs +1 -1
  23. package/esm2022/card-wrapper/card-wrapper.props.mjs +1 -1
  24. package/esm2022/card-wrapper/card.wrapper.mjs +37 -37
  25. package/esm2022/card-wrapper/public_api.mjs +1 -1
  26. package/esm2022/cascader/cascader.module.mjs +1 -1
  27. package/esm2022/cascader/cascader.type.mjs +65 -65
  28. package/esm2022/cascader/public_api.mjs +1 -1
  29. package/esm2022/checkbox/checkbox.module.mjs +1 -1
  30. package/esm2022/checkbox/checkbox.type.mjs +48 -43
  31. package/esm2022/checkbox/public_api.mjs +1 -1
  32. package/esm2022/common/common.module.mjs +1 -1
  33. package/esm2022/common/formly-box-templates.directive.mjs +1 -1
  34. package/esm2022/common/formly-utils.mjs +1 -1
  35. package/esm2022/common/interface.mjs +1 -1
  36. package/esm2022/common/public_api.mjs +1 -1
  37. package/esm2022/datepicker/datepicker.module.mjs +1 -1
  38. package/esm2022/datepicker/datepicker.props.mjs +1 -1
  39. package/esm2022/datepicker/datepicker.type.mjs +149 -149
  40. package/esm2022/datepicker/public_api.mjs +1 -1
  41. package/esm2022/extension/public_api.mjs +1 -1
  42. package/esm2022/extension/value-changes-extension.mjs +1 -1
  43. package/esm2022/flex/flex.module.mjs +1 -1
  44. package/esm2022/flex/flex.type.mjs +35 -35
  45. package/esm2022/flex/public_api.mjs +1 -1
  46. package/esm2022/form-field/form-field.module.mjs +1 -1
  47. package/esm2022/form-field/form-field.props.mjs +1 -1
  48. package/esm2022/form-field/form-field.wrapper.mjs +147 -147
  49. package/esm2022/form-field/public_api.mjs +1 -1
  50. package/esm2022/grid/grid.module.mjs +1 -1
  51. package/esm2022/grid/grid.props.mjs +1 -1
  52. package/esm2022/grid/grid.type.mjs +59 -59
  53. package/esm2022/grid/public_api.mjs +1 -1
  54. package/esm2022/index.mjs +1 -1
  55. package/esm2022/input/input.module.mjs +1 -1
  56. package/esm2022/input/input.props.mjs +1 -1
  57. package/esm2022/input/input.type.mjs +275 -275
  58. package/esm2022/input/public_api.mjs +1 -1
  59. package/esm2022/input-group/input-group.module.mjs +1 -1
  60. package/esm2022/input-group/input-group.props.mjs +1 -1
  61. package/esm2022/input-group/input-group.type.mjs +47 -42
  62. package/esm2022/input-group/public_api.mjs +1 -1
  63. package/esm2022/input-number/input-number.module.mjs +1 -1
  64. package/esm2022/input-number/input-number.props.mjs +1 -1
  65. package/esm2022/input-number/input-number.type.mjs +89 -89
  66. package/esm2022/input-number/public_api.mjs +1 -1
  67. package/esm2022/lib/ui-ng-zorro-antd.mjs +1 -1
  68. package/esm2022/lib/ui-ng-zorro-antd.module.mjs +1 -1
  69. package/esm2022/radio/public_api.mjs +1 -1
  70. package/esm2022/radio/radio.module.mjs +1 -1
  71. package/esm2022/radio/radio.type.mjs +81 -81
  72. package/esm2022/rate/public_api.mjs +1 -1
  73. package/esm2022/rate/rate.module.mjs +1 -1
  74. package/esm2022/rate/rate.type.mjs +33 -33
  75. package/esm2022/ref-template/public_api.mjs +1 -1
  76. package/esm2022/ref-template/ref-template.module.mjs +1 -1
  77. package/esm2022/ref-template/ref-template.type.mjs +9 -9
  78. package/esm2022/select/public_api.mjs +1 -1
  79. package/esm2022/select/select.module.mjs +1 -1
  80. package/esm2022/select/select.props.mjs +1 -1
  81. package/esm2022/select/select.type.mjs +123 -123
  82. package/esm2022/slider/public_api.mjs +1 -1
  83. package/esm2022/slider/slider.module.mjs +1 -1
  84. package/esm2022/slider/slider.type.mjs +33 -33
  85. package/esm2022/space/public_api.mjs +1 -1
  86. package/esm2022/space/space.module.mjs +1 -1
  87. package/esm2022/space/space.type.mjs +27 -27
  88. package/esm2022/switch/public_api.mjs +1 -1
  89. package/esm2022/switch/switch.module.mjs +1 -1
  90. package/esm2022/switch/switch.type.mjs +25 -25
  91. package/esm2022/tabs/public_api.mjs +1 -1
  92. package/esm2022/tabs/tabs.module.mjs +1 -1
  93. package/esm2022/tabs/tabs.props.mjs +1 -1
  94. package/esm2022/tabs/tabs.wrapper.mjs +79 -79
  95. package/esm2022/text-value/public_api.mjs +1 -1
  96. package/esm2022/text-value/text-value.module.mjs +1 -1
  97. package/esm2022/text-value/text-value.type.mjs +19 -19
  98. package/esm2022/textarea/public_api.mjs +1 -1
  99. package/esm2022/textarea/textarea.module.mjs +1 -1
  100. package/esm2022/textarea/textarea.type.mjs +113 -113
  101. package/esm2022/timepicker/public_api.mjs +1 -1
  102. package/esm2022/timepicker/timepicker.module.mjs +1 -1
  103. package/esm2022/timepicker/timepicker.type.mjs +61 -61
  104. package/esm2022/transfer/public_api.mjs +1 -1
  105. package/esm2022/transfer/transfer.component.mjs +49 -49
  106. package/esm2022/transfer/transfer.module.mjs +1 -1
  107. package/esm2022/transfer/transfer.type.mjs +47 -47
  108. package/esm2022/tree-select/public_api.mjs +1 -1
  109. package/esm2022/tree-select/tree-select.module.mjs +1 -1
  110. package/esm2022/tree-select/tree-select.type.mjs +69 -69
  111. package/esm2022/upload/public_api.mjs +1 -1
  112. package/esm2022/upload/upload.component.mjs +143 -143
  113. package/esm2022/upload/upload.module.mjs +1 -1
  114. package/esm2022/upload/upload.props.mjs +1 -1
  115. package/esm2022/upload/upload.type.mjs +83 -83
  116. package/extension/package.json +3 -0
  117. package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +66 -66
  118. package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +1 -1
  119. package/fesm2022/ngx-formly-zorro-antd-button.mjs +122 -122
  120. package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
  121. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +36 -36
  122. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
  123. package/fesm2022/ngx-formly-zorro-antd-card.mjs +50 -50
  124. package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
  125. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +64 -64
  126. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  127. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +48 -43
  128. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  129. package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -1
  130. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +148 -148
  131. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  132. package/fesm2022/ngx-formly-zorro-antd-extension.mjs.map +1 -1
  133. package/fesm2022/ngx-formly-zorro-antd-flex.mjs +34 -34
  134. package/fesm2022/ngx-formly-zorro-antd-flex.mjs.map +1 -1
  135. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +146 -146
  136. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  137. package/fesm2022/ngx-formly-zorro-antd-grid.mjs +58 -58
  138. package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
  139. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +47 -42
  140. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  141. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +88 -88
  142. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  143. package/fesm2022/ngx-formly-zorro-antd-input.mjs +274 -274
  144. package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
  145. package/fesm2022/ngx-formly-zorro-antd-radio.mjs +80 -80
  146. package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  147. package/fesm2022/ngx-formly-zorro-antd-rate.mjs +32 -32
  148. package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  149. package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +8 -8
  150. package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
  151. package/fesm2022/ngx-formly-zorro-antd-select.mjs +122 -122
  152. package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
  153. package/fesm2022/ngx-formly-zorro-antd-slider.mjs +32 -32
  154. package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  155. package/fesm2022/ngx-formly-zorro-antd-space.mjs +26 -26
  156. package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
  157. package/fesm2022/ngx-formly-zorro-antd-switch.mjs +24 -24
  158. package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  159. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +78 -78
  160. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  161. package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +18 -18
  162. package/fesm2022/ngx-formly-zorro-antd-text-value.mjs.map +1 -1
  163. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +112 -112
  164. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  165. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +60 -60
  166. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  167. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +94 -94
  168. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  169. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +68 -68
  170. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  171. package/fesm2022/ngx-formly-zorro-antd-upload.mjs +224 -224
  172. package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  173. package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
  174. package/flex/package.json +3 -0
  175. package/form-field/form-field.props.d.ts +5 -1
  176. package/form-field/package.json +3 -0
  177. package/grid/package.json +3 -0
  178. package/input/package.json +3 -0
  179. package/input-group/package.json +3 -0
  180. package/input-number/package.json +3 -0
  181. package/package.json +1 -1
  182. package/radio/package.json +3 -0
  183. package/rate/package.json +3 -0
  184. package/ref-template/package.json +3 -0
  185. package/select/package.json +3 -0
  186. package/slider/package.json +3 -0
  187. package/space/package.json +3 -0
  188. package/switch/package.json +3 -0
  189. package/tabs/package.json +3 -0
  190. package/text-value/package.json +3 -0
  191. package/textarea/package.json +3 -0
  192. package/timepicker/package.json +3 -0
  193. package/transfer/package.json +3 -0
  194. package/tree-select/package.json +3 -0
  195. package/upload/package.json +3 -0
@@ -41,94 +41,94 @@ export class FormlyFieldUpload extends FieldType {
41
41
  return resolveTplName(this.props, this.fieldTemplates, 'fileListRender');
42
42
  }
43
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
- #upload
46
- [formControl]="formControl"
47
- [formlyAttributes]="field"
48
- [nzAccept]="props['accept']"
49
- [nzAction]="props['action']"
50
- [nzDirectory]="props['directory']!!"
51
- [nzBeforeUpload]="props['beforeUpload']"
52
- [nzCustomRequest]="props['customRequest']"
53
- [nzData]="props['data']"
54
- [nzDisabled]="props['disabled']!!"
55
- [(nzFileList)]="props['fileList']"
56
- [nzLimit]="props['limit']"
57
- [nzSize]="props['size']"
58
- [nzFileType]="props['fileType']"
59
- [nzFilter]="props['filter']!"
60
- [nzHeaders]="props['headers']"
61
- [nzListType]="props['listType']!"
62
- [nzMultiple]="props['multiple']!!"
63
- [nzName]="props['name'] || ''"
64
- [nzShowUploadList]="props['showUploadList']"
65
- [nzShowButton]="props['showButton']!!"
66
- [nzWithCredentials]="props['withCredentials']!!"
67
- [nzOpenFileDialogOnClick]="props['openFileDialogOnClick']!!"
68
- [nzPreview]="props['preview']"
69
- [nzPreviewFile]="props['previewFile']"
70
- [nzPreviewIsImage]="props['previewIsImage']"
71
- [nzRemove]="props['remove']"
72
- (nzChange)="props.change && props.change(field, $event)"
73
- [nzDownload]="props['download']"
74
- [nzTransformFile]="props['transformFile']"
75
- [nzIconRender]="nzIconRender ?? null"
76
- [nzFileListRender]="nzFileListRender ?? null"
77
- [resultMap]="props['resultMap']"
78
- [nzeHint]="props['hint']"
79
- [nzeText]="props['text']"
80
- [nzeUploadButtonIcon]="props['uploadButtonIcon']"
81
- [nzeShowUploadButton]="props['showUploadButton']"
82
- [ngClass]="props['ngClass']"
83
- (nzFileListChange)="props['fileListChange'] && props['fileListChange'](field, $event)"
84
- >
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
+ #upload
46
+ [formControl]="formControl"
47
+ [formlyAttributes]="field"
48
+ [nzAccept]="props['accept']"
49
+ [nzAction]="props['action']"
50
+ [nzDirectory]="props['directory']!!"
51
+ [nzBeforeUpload]="props['beforeUpload']"
52
+ [nzCustomRequest]="props['customRequest']"
53
+ [nzData]="props['data']"
54
+ [nzDisabled]="props['disabled']!!"
55
+ [(nzFileList)]="props['fileList']"
56
+ [nzLimit]="props['limit']"
57
+ [nzSize]="props['size']"
58
+ [nzFileType]="props['fileType']"
59
+ [nzFilter]="props['filter']!"
60
+ [nzHeaders]="props['headers']"
61
+ [nzListType]="props['listType']!"
62
+ [nzMultiple]="props['multiple']!!"
63
+ [nzName]="props['name'] || ''"
64
+ [nzShowUploadList]="props['showUploadList']"
65
+ [nzShowButton]="props['showButton']!!"
66
+ [nzWithCredentials]="props['withCredentials']!!"
67
+ [nzOpenFileDialogOnClick]="props['openFileDialogOnClick']!!"
68
+ [nzPreview]="props['preview']"
69
+ [nzPreviewFile]="props['previewFile']"
70
+ [nzPreviewIsImage]="props['previewIsImage']"
71
+ [nzRemove]="props['remove']"
72
+ (nzChange)="props.change && props.change(field, $event)"
73
+ [nzDownload]="props['download']"
74
+ [nzTransformFile]="props['transformFile']"
75
+ [nzIconRender]="nzIconRender ?? null"
76
+ [nzFileListRender]="nzFileListRender ?? null"
77
+ [resultMap]="props['resultMap']"
78
+ [nzeHint]="props['hint']"
79
+ [nzeText]="props['text']"
80
+ [nzeUploadButtonIcon]="props['uploadButtonIcon']"
81
+ [nzeShowUploadButton]="props['showUploadButton']"
82
+ [ngClass]="props['ngClass']"
83
+ (nzFileListChange)="props['fileListChange'] && props['fileListChange'](field, $event)"
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
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',
91
- template: `<formly-nz-upload
92
- #upload
93
- [formControl]="formControl"
94
- [formlyAttributes]="field"
95
- [nzAccept]="props['accept']"
96
- [nzAction]="props['action']"
97
- [nzDirectory]="props['directory']!!"
98
- [nzBeforeUpload]="props['beforeUpload']"
99
- [nzCustomRequest]="props['customRequest']"
100
- [nzData]="props['data']"
101
- [nzDisabled]="props['disabled']!!"
102
- [(nzFileList)]="props['fileList']"
103
- [nzLimit]="props['limit']"
104
- [nzSize]="props['size']"
105
- [nzFileType]="props['fileType']"
106
- [nzFilter]="props['filter']!"
107
- [nzHeaders]="props['headers']"
108
- [nzListType]="props['listType']!"
109
- [nzMultiple]="props['multiple']!!"
110
- [nzName]="props['name'] || ''"
111
- [nzShowUploadList]="props['showUploadList']"
112
- [nzShowButton]="props['showButton']!!"
113
- [nzWithCredentials]="props['withCredentials']!!"
114
- [nzOpenFileDialogOnClick]="props['openFileDialogOnClick']!!"
115
- [nzPreview]="props['preview']"
116
- [nzPreviewFile]="props['previewFile']"
117
- [nzPreviewIsImage]="props['previewIsImage']"
118
- [nzRemove]="props['remove']"
119
- (nzChange)="props.change && props.change(field, $event)"
120
- [nzDownload]="props['download']"
121
- [nzTransformFile]="props['transformFile']"
122
- [nzIconRender]="nzIconRender ?? null"
123
- [nzFileListRender]="nzFileListRender ?? null"
124
- [resultMap]="props['resultMap']"
125
- [nzeHint]="props['hint']"
126
- [nzeText]="props['text']"
127
- [nzeUploadButtonIcon]="props['uploadButtonIcon']"
128
- [nzeShowUploadButton]="props['showUploadButton']"
129
- [ngClass]="props['ngClass']"
130
- (nzFileListChange)="props['fileListChange'] && props['fileListChange'](field, $event)"
131
- >
91
+ template: `<formly-nz-upload
92
+ #upload
93
+ [formControl]="formControl"
94
+ [formlyAttributes]="field"
95
+ [nzAccept]="props['accept']"
96
+ [nzAction]="props['action']"
97
+ [nzDirectory]="props['directory']!!"
98
+ [nzBeforeUpload]="props['beforeUpload']"
99
+ [nzCustomRequest]="props['customRequest']"
100
+ [nzData]="props['data']"
101
+ [nzDisabled]="props['disabled']!!"
102
+ [(nzFileList)]="props['fileList']"
103
+ [nzLimit]="props['limit']"
104
+ [nzSize]="props['size']"
105
+ [nzFileType]="props['fileType']"
106
+ [nzFilter]="props['filter']!"
107
+ [nzHeaders]="props['headers']"
108
+ [nzListType]="props['listType']!"
109
+ [nzMultiple]="props['multiple']!!"
110
+ [nzName]="props['name'] || ''"
111
+ [nzShowUploadList]="props['showUploadList']"
112
+ [nzShowButton]="props['showButton']!!"
113
+ [nzWithCredentials]="props['withCredentials']!!"
114
+ [nzOpenFileDialogOnClick]="props['openFileDialogOnClick']!!"
115
+ [nzPreview]="props['preview']"
116
+ [nzPreviewFile]="props['previewFile']"
117
+ [nzPreviewIsImage]="props['previewIsImage']"
118
+ [nzRemove]="props['remove']"
119
+ (nzChange)="props.change && props.change(field, $event)"
120
+ [nzDownload]="props['download']"
121
+ [nzTransformFile]="props['transformFile']"
122
+ [nzIconRender]="nzIconRender ?? null"
123
+ [nzFileListRender]="nzFileListRender ?? null"
124
+ [resultMap]="props['resultMap']"
125
+ [nzeHint]="props['hint']"
126
+ [nzeText]="props['text']"
127
+ [nzeUploadButtonIcon]="props['uploadButtonIcon']"
128
+ [nzeShowUploadButton]="props['showUploadButton']"
129
+ [ngClass]="props['ngClass']"
130
+ (nzFileListChange)="props['fileListChange'] && props['fileListChange'](field, $event)"
131
+ >
132
132
  </formly-nz-upload>`,
133
133
  changeDetection: ChangeDetectionStrategy.OnPush
134
134
  }]
@@ -138,4 +138,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImpor
138
138
  type: ViewChild,
139
139
  args: ['upload', { static: true }]
140
140
  }] } });
141
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBsb2FkLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9mb3JtbHlhbnRkL3VwbG9hZC9zcmMvdXBsb2FkLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCx1QkFBdUIsRUFFdkIsU0FBUyxFQUVULFFBQVEsRUFDVCxNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsU0FBUyxFQUFtQixNQUFNLGtCQUFrQixDQUFDO0FBRTlELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBRXZELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxjQUFjLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQzs7Ozs7OztBQW9EbEYsTUFBTSxPQUFPLGlCQUFrQixTQUFRLFNBQXVDO0lBbUI1RSxZQUErQixjQUFrQztRQUMvRCxLQUFLLEVBQUUsQ0FBQztRQURxQixtQkFBYyxHQUFkLGNBQWMsQ0FBb0I7UUFsQnhELG1CQUFjLEdBQUc7WUFDeEIsS0FBSyxFQUFFO2dCQUNMLFFBQVEsRUFBRSxNQUFlO2dCQUN6QixJQUFJLEVBQUUsTUFBTTtnQkFDWixjQUFjLEVBQUUsSUFBSTtnQkFDcEIsVUFBVSxFQUFFLElBQUk7Z0JBQ2hCLHFCQUFxQixFQUFFLElBQUk7Z0JBQzNCLGdCQUFn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hDcmVkZW50aWFsc109XCJwcm9wc1snd2l0aENyZWRlbnRpYWxzJ10hIVwiXHJcbiAgICBbbnpPcGVuRmlsZURpYWxvZ09uQ2xpY2tdPVwicHJvcHNbJ29wZW5GaWxlRGlhbG9nT25DbGljayddISFcIlxyXG4gICAgW256UHJldmlld109XCJwcm9wc1sncHJldmlldyddXCJcclxuICAgIFtuelByZXZpZXdGaWxlXT1cInByb3BzWydwcmV2aWV3RmlsZSddXCJcclxuICAgIFtuelByZXZpZXdJc0ltYWdlXT1cInByb3BzWydwcmV2aWV3SXNJbWFnZSddXCJcclxuICAgIFtuelJlbW92ZV09XCJwcm9wc1sncmVtb3ZlJ11cIlxyXG4gICAgKG56Q2hhbmdlKT1cInByb3BzLmNoYW5nZSAmJiBwcm9wcy5jaGFuZ2UoZmllbGQsICRldmVudClcIlxyXG4gICAgW256RG93bmxvYWRdPVwicHJvcHNbJ2Rvd25sb2FkJ11cIlxyXG4gICAgW256VHJhbnNmb3JtRmlsZV09XCJwcm9wc1sndHJhbnNmb3JtRmlsZSddXCJcclxuICAgIFtuekljb25SZW5kZXJdPVwibnpJY29uUmVuZGVyID8/IG51bGxcIlxyXG4gICAgW256RmlsZUxpc3RSZW5kZXJdPVwibnpGaWxlTGlzdFJlbmRlciA/PyBudWxsXCJcclxuICAgIFtyZXN1bHRNYXBdPVwicHJvcHNbJ3Jlc3VsdE1hcCddXCJcclxuICAgIFtuemVIaW50XT1cInByb3BzWydoaW50J11cIlxyXG4gICAgW256ZVRleHRdPVwicHJvcHNbJ3RleHQnXVwiXHJcbiAgICBbbnplVXBsb2FkQnV0dG9uSWNvbl09XCJwcm9wc1sndXBsb2FkQnV0dG9uSWNvbiddXCJcclxuICAgIFtuemVTaG93VXBsb2FkQnV0dG9uXT1cInByb3BzWydzaG93VXBsb2FkQnV0dG9uJ11cIlxyXG4gICAgW25nQ2xhc3NdPVwicHJvcHNbJ25nQ2xhc3MnXVwiXHJcbiAgICAobnpGaWxlTGlzdENoYW5nZ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0ZXMpIHtcbiAgICBzdXBlcigpO1xuICB9XG5cbiAgbmdPbkluaXQoKTogdm9pZCB7XG4gICAgY29uc3QgdHlwZSA9IHRoaXMucHJvcHMudHlwZTtcbiAgICBpZiAodHlwZSkge1xuICAgICAgdGhpcy51cGxvYWQubnpUeXBlID0gdHlwZTtcbiAgICB9XG4gIH1cblxuICBnZXQgbnpJY29uUmVuZGVyKCkge1xuICAgIHJldHVybiByZXNvbHZlVHBsTmFtZSh0aGlzLnByb3BzLCB0aGlzLmZpZWxkVGVtcGxhdGVzLCAnaWNvblJlbmRlcicpO1xuICB9XG5cbiAgZ2V0IG56RmlsZUxpc3RSZW5kZXIoKSB7XG4gICAgcmV0dXJuIHJlc29sdmVUcGxOYW1lKHRoaXMucHJvcHMsIHRoaXMuZmllbGRUZW1wbGF0ZXMsICdmaWxlTGlzdFJlbmRlcicpO1xuICB9XG59XG4iXX0=
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/ngx-formly-zorro-antd-extension.mjs"
3
+ }
@@ -31,78 +31,78 @@ class FormlyFieldButtonGroup extends FieldType {
31
31
  this.subjectDestroy();
32
32
  }
33
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
- <nz-button-group [formlyAttributes]="field" [nzSize]="props['size'] || 'default'">
36
- @for (item of props.buttons; track item.id) {
37
- <ng-container *ngTemplateOutlet="btnTemplate; context: { $implicit: item }"></ng-container>
38
- }
39
- </nz-button-group>
40
-
41
- <ng-template #btnTemplate let-item>
42
- <button
43
- nz-button
44
- [formlyAttributes]="item"
45
- [type]="item.type || 'button'"
46
- [attr.title]="item.props['title']"
47
- [disabled]="item.props.disabled!!"
48
- [nzBlock]="item.props.block!!"
49
- [nzDanger]="item.props.danger!!"
50
- [nzGhost]="item.props.ghost!!"
51
- [nzSize]="item.props.size || 'default'"
52
- [nzLoading]="item.props.loading!!"
53
- [nzShape]="item.props.shape ?? null"
54
- [nzType]="item.props.nzType ?? null"
55
- >
56
- @if (item.props.beforeIcon) {
57
- <span nz-icon [nzType]="item.props.beforeIcon"></span>
58
- }
59
- @if (item.props.text) {
60
- <span>{{ item.props.text }}</span>
61
- }
62
- @if (item.props.afterIcon) {
63
- <span nz-icon [nzType]="item.props.afterIcon"></span>
64
- }
65
- </button>
66
- </ng-template>
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
+ <nz-button-group [formlyAttributes]="field" [nzSize]="props['size'] || 'default'">
36
+ @for (item of props.buttons; track item.id) {
37
+ <ng-container *ngTemplateOutlet="btnTemplate; context: { $implicit: item }"></ng-container>
38
+ }
39
+ </nz-button-group>
40
+
41
+ <ng-template #btnTemplate let-item>
42
+ <button
43
+ nz-button
44
+ [formlyAttributes]="item"
45
+ [type]="item.type || 'button'"
46
+ [attr.title]="item.props['title']"
47
+ [disabled]="item.props.disabled!!"
48
+ [nzBlock]="item.props.block!!"
49
+ [nzDanger]="item.props.danger!!"
50
+ [nzGhost]="item.props.ghost!!"
51
+ [nzSize]="item.props.size || 'default'"
52
+ [nzLoading]="item.props.loading!!"
53
+ [nzShape]="item.props.shape ?? null"
54
+ [nzType]="item.props.nzType ?? null"
55
+ >
56
+ @if (item.props.beforeIcon) {
57
+ <span nz-icon [nzType]="item.props.beforeIcon"></span>
58
+ }
59
+ @if (item.props.text) {
60
+ <span>{{ item.props.text }}</span>
61
+ }
62
+ @if (item.props.afterIcon) {
63
+ <span nz-icon [nzType]="item.props.afterIcon"></span>
64
+ }
65
+ </button>
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
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',
73
- template: `
74
- <nz-button-group [formlyAttributes]="field" [nzSize]="props['size'] || 'default'">
75
- @for (item of props.buttons; track item.id) {
76
- <ng-container *ngTemplateOutlet="btnTemplate; context: { $implicit: item }"></ng-container>
77
- }
78
- </nz-button-group>
79
-
80
- <ng-template #btnTemplate let-item>
81
- <button
82
- nz-button
83
- [formlyAttributes]="item"
84
- [type]="item.type || 'button'"
85
- [attr.title]="item.props['title']"
86
- [disabled]="item.props.disabled!!"
87
- [nzBlock]="item.props.block!!"
88
- [nzDanger]="item.props.danger!!"
89
- [nzGhost]="item.props.ghost!!"
90
- [nzSize]="item.props.size || 'default'"
91
- [nzLoading]="item.props.loading!!"
92
- [nzShape]="item.props.shape ?? null"
93
- [nzType]="item.props.nzType ?? null"
94
- >
95
- @if (item.props.beforeIcon) {
96
- <span nz-icon [nzType]="item.props.beforeIcon"></span>
97
- }
98
- @if (item.props.text) {
99
- <span>{{ item.props.text }}</span>
100
- }
101
- @if (item.props.afterIcon) {
102
- <span nz-icon [nzType]="item.props.afterIcon"></span>
103
- }
104
- </button>
105
- </ng-template>
73
+ template: `
74
+ <nz-button-group [formlyAttributes]="field" [nzSize]="props['size'] || 'default'">
75
+ @for (item of props.buttons; track item.id) {
76
+ <ng-container *ngTemplateOutlet="btnTemplate; context: { $implicit: item }"></ng-container>
77
+ }
78
+ </nz-button-group>
79
+
80
+ <ng-template #btnTemplate let-item>
81
+ <button
82
+ nz-button
83
+ [formlyAttributes]="item"
84
+ [type]="item.type || 'button'"
85
+ [attr.title]="item.props['title']"
86
+ [disabled]="item.props.disabled!!"
87
+ [nzBlock]="item.props.block!!"
88
+ [nzDanger]="item.props.danger!!"
89
+ [nzGhost]="item.props.ghost!!"
90
+ [nzSize]="item.props.size || 'default'"
91
+ [nzLoading]="item.props.loading!!"
92
+ [nzShape]="item.props.shape ?? null"
93
+ [nzType]="item.props.nzType ?? null"
94
+ >
95
+ @if (item.props.beforeIcon) {
96
+ <span nz-icon [nzType]="item.props.beforeIcon"></span>
97
+ }
98
+ @if (item.props.text) {
99
+ <span>{{ item.props.text }}</span>
100
+ }
101
+ @if (item.props.afterIcon) {
102
+ <span nz-icon [nzType]="item.props.afterIcon"></span>
103
+ }
104
+ </button>
105
+ </ng-template>
106
106
  `,
107
107
  changeDetection: ChangeDetectionStrategy.OnPush
108
108
  }]
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-button-group.mjs","sources":["../../../../packages/formlyantd/button-group/src/button-group.type.ts","../../../../packages/formlyantd/button-group/src/button-group.module.ts","../../../../packages/formlyantd/button-group/src/ngx-formly-zorro-antd-button-group.ts"],"sourcesContent":["import { Component, Type, OnDestroy, 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 { Subject } from 'rxjs';\r\nimport { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\r\nimport { ButtonProps } from 'ngx-formly-zorro-antd/button';\r\n\r\nimport type { NzButtonGroupSize } from 'ng-zorro-antd/button';\r\n\r\ninterface ButtonGroupProps extends FormlyFieldProps {\r\n size?: NzButtonGroupSize;\r\n\r\n /**\r\n * 每个按钮配置\r\n */\r\n buttons?: NzFormlyFieldConfig<Omit<ButtonProps, 'size' | 'textName'>>[];\r\n}\r\n\r\nexport interface FormlyButtonGroupFieldConfig extends NzFormlyFieldConfig<ButtonGroupProps> {\r\n type: 'button-group' | Type<FormlyFieldButtonGroup>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-button-group',\r\n template: `\r\n <nz-button-group [formlyAttributes]=\"field\" [nzSize]=\"props['size'] || 'default'\">\r\n @for (item of props.buttons; track item.id) {\r\n <ng-container *ngTemplateOutlet=\"btnTemplate; context: { $implicit: item }\"></ng-container>\r\n }\r\n </nz-button-group>\r\n\r\n <ng-template #btnTemplate let-item>\r\n <button\r\n nz-button\r\n [formlyAttributes]=\"item\"\r\n [type]=\"item.type || 'button'\"\r\n [attr.title]=\"item.props['title']\"\r\n [disabled]=\"item.props.disabled!!\"\r\n [nzBlock]=\"item.props.block!!\"\r\n [nzDanger]=\"item.props.danger!!\"\r\n [nzGhost]=\"item.props.ghost!!\"\r\n [nzSize]=\"item.props.size || 'default'\"\r\n [nzLoading]=\"item.props.loading!!\"\r\n [nzShape]=\"item.props.shape ?? null\"\r\n [nzType]=\"item.props.nzType ?? null\"\r\n >\r\n @if (item.props.beforeIcon) {\r\n <span nz-icon [nzType]=\"item.props.beforeIcon\"></span>\r\n }\r\n @if (item.props.text) {\r\n <span>{{ item.props.text }}</span>\r\n }\r\n @if (item.props.afterIcon) {\r\n <span nz-icon [nzType]=\"item.props.afterIcon\"></span>\r\n }\r\n </button>\r\n </ng-template>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldButtonGroup\r\n extends FieldType<FieldTypeConfig<ButtonGroupProps>>\r\n implements OnDestroy\r\n{\r\n destroy$ = new Subject<void>();\r\n override defaultOptions = {\r\n props: {\r\n size: 'default' as const,\r\n buttons: []\r\n }\r\n };\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n subjectDestroy(): void {\r\n this.destroy$.next();\r\n this.destroy$.complete();\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.subjectDestroy();\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 { FormlyFieldButtonGroup } from './button-group.type';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzIconModule } from 'ng-zorro-antd/icon';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldButtonGroup],\r\n imports: [\r\n CommonModule,\r\n NzButtonModule,\r\n NzIconModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'button-group',\r\n component: FormlyFieldButtonGroup\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzButtonGroupModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AA4DM,MAAO,sBACX,SAAQ,SAA4C,CAAA;AAWpD,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE,CAAC;AATV,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,OAA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,yBAAyB,CAAA;8GAAzB,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAAzB,yBAAyB,EAAA,YAAA,EAAA,CAhBrB,sBAAsB,CAAA,EAAA,OAAA,EAAA,CAEnC,YAAY;YACZ,cAAc;YACd,YAAY,EAAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA,EAAA;AAYH,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,yBAAyB,YAdlC,YAAY;YACZ,cAAc;YACd,YAAY;YAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,cAAc;AACpB,wBAAA,SAAS,EAAE,sBAAsB;AAClC,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAjBrC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;AACtC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,cAAc;wBACd,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,cAAc;AACpB,oCAAA,SAAS,EAAE,sBAAsB;AAClC,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACxBD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-button-group.mjs","sources":["../../../../packages/formlyantd/button-group/src/button-group.type.ts","../../../../packages/formlyantd/button-group/src/button-group.module.ts","../../../../packages/formlyantd/button-group/src/ngx-formly-zorro-antd-button-group.ts"],"sourcesContent":["import { Component, Type, OnDestroy, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\nimport { Subject } from 'rxjs';\nimport { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport { ButtonProps } from 'ngx-formly-zorro-antd/button';\n\nimport type { NzButtonGroupSize } from 'ng-zorro-antd/button';\n\ninterface ButtonGroupProps extends FormlyFieldProps {\n size?: NzButtonGroupSize;\n\n /**\n * 每个按钮配置\n */\n buttons?: NzFormlyFieldConfig<Omit<ButtonProps, 'size' | 'textName'>>[];\n}\n\nexport interface FormlyButtonGroupFieldConfig extends NzFormlyFieldConfig<ButtonGroupProps> {\n type: 'button-group' | Type<FormlyFieldButtonGroup>;\n}\n\n@Component({\n selector: 'formly-field-button-group',\n template: `\n <nz-button-group [formlyAttributes]=\"field\" [nzSize]=\"props['size'] || 'default'\">\n @for (item of props.buttons; track item.id) {\n <ng-container *ngTemplateOutlet=\"btnTemplate; context: { $implicit: item }\"></ng-container>\n }\n </nz-button-group>\n\n <ng-template #btnTemplate let-item>\n <button\n nz-button\n [formlyAttributes]=\"item\"\n [type]=\"item.type || 'button'\"\n [attr.title]=\"item.props['title']\"\n [disabled]=\"item.props.disabled!!\"\n [nzBlock]=\"item.props.block!!\"\n [nzDanger]=\"item.props.danger!!\"\n [nzGhost]=\"item.props.ghost!!\"\n [nzSize]=\"item.props.size || 'default'\"\n [nzLoading]=\"item.props.loading!!\"\n [nzShape]=\"item.props.shape ?? null\"\n [nzType]=\"item.props.nzType ?? null\"\n >\n @if (item.props.beforeIcon) {\n <span nz-icon [nzType]=\"item.props.beforeIcon\"></span>\n }\n @if (item.props.text) {\n <span>{{ item.props.text }}</span>\n }\n @if (item.props.afterIcon) {\n <span nz-icon [nzType]=\"item.props.afterIcon\"></span>\n }\n </button>\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldButtonGroup\n extends FieldType<FieldTypeConfig<ButtonGroupProps>>\n implements OnDestroy\n{\n destroy$ = new Subject<void>();\n override defaultOptions = {\n props: {\n size: 'default' as const,\n buttons: []\n }\n };\n\n constructor() {\n super();\n }\n\n subjectDestroy(): void {\n this.destroy$.next();\n this.destroy$.complete();\n }\n\n ngOnDestroy(): void {\n this.subjectDestroy();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\n\nimport { FormlyFieldButtonGroup } from './button-group.type';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\n@NgModule({\n declarations: [FormlyFieldButtonGroup],\n imports: [\n CommonModule,\n NzButtonModule,\n NzIconModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'button-group',\n component: FormlyFieldButtonGroup\n }\n ]\n })\n ]\n})\nexport class FormlyNzButtonGroupModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AA4DM,MAAO,sBACX,SAAQ,SAA4C,CAAA;AAWpD,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE,CAAC;AATV,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,OAAO,EAAQ,CAAC;AACtB,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,OAAO,EAAE,EAAE;AACZ,aAAA;SACF,CAAC;KAID;IAED,cAAc,GAAA;AACZ,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;AACrB,QAAA,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;KAC1B;IAED,WAAW,GAAA;QACT,IAAI,CAAC,cAAc,EAAE,CAAC;K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