ngx-formly-zorro-antd 13.0.0-rc.0 → 14.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (220) hide show
  1. package/README.md +0 -6
  2. package/autocomplete/autocomplete.props.d.ts +1 -2
  3. package/autocomplete/{ngx-formly-zorro-antd-autocomplete.d.ts → index.d.ts} +0 -0
  4. package/button/button.type.d.ts +2 -1
  5. package/button/{ngx-formly-zorro-antd-button.d.ts → index.d.ts} +0 -0
  6. package/card/card.wrapper.d.ts +1 -1
  7. package/card/{ngx-formly-zorro-antd-card.d.ts → index.d.ts} +0 -0
  8. package/cascader/cascader.type.d.ts +1 -1
  9. package/cascader/{ngx-formly-zorro-antd-cascader.d.ts → index.d.ts} +0 -0
  10. package/checkbox/checkbox.type.d.ts +1 -1
  11. package/checkbox/{ngx-formly-zorro-antd-checkbox.d.ts → index.d.ts} +0 -0
  12. package/datepicker/datepicker.type.d.ts +1 -1
  13. package/datepicker/{ngx-formly-zorro-antd-datepicker.d.ts → index.d.ts} +0 -0
  14. package/esm2020/autocomplete/autocomplete.props.mjs +1 -1
  15. package/esm2020/button/button.module.mjs +23 -25
  16. package/esm2020/button/button.type.mjs +84 -44
  17. package/esm2020/card/card.module.mjs +15 -17
  18. package/esm2020/card/card.wrapper.mjs +5 -5
  19. package/esm2020/cascader/cascader.module.mjs +17 -19
  20. package/esm2020/cascader/cascader.type.mjs +8 -8
  21. package/esm2020/checkbox/checkbox.module.mjs +21 -23
  22. package/esm2020/checkbox/checkbox.type.mjs +8 -8
  23. package/esm2020/datepicker/datepicker.module.mjs +17 -19
  24. package/esm2020/datepicker/datepicker.type.mjs +8 -8
  25. package/esm2020/form-field/form-field.module.mjs +15 -17
  26. package/esm2020/form-field/form-field.props.mjs +1 -1
  27. package/esm2020/form-field/form-field.wrapper.mjs +21 -11
  28. package/esm2020/grid/grid.module.mjs +41 -0
  29. package/esm2020/grid/grid.props.mjs +2 -0
  30. package/esm2020/grid/grid.type.mjs +71 -0
  31. package/esm2020/grid/ngx-formly-zorro-antd-grid.mjs +5 -0
  32. package/esm2020/grid/public_api.mjs +3 -0
  33. package/esm2020/input/input.module.mjs +31 -33
  34. package/esm2020/input/input.props.mjs +1 -1
  35. package/esm2020/input/input.type.mjs +97 -47
  36. package/esm2020/input-group/input-group.module.mjs +22 -18
  37. package/esm2020/input-group/input-group.props.mjs +1 -1
  38. package/esm2020/input-group/input-group.type.mjs +8 -8
  39. package/esm2020/input-number/input-number.module.mjs +21 -23
  40. package/esm2020/input-number/input-number.type.mjs +8 -8
  41. package/esm2020/lib/ui-ng-zorro-antd.module.mjs +30 -28
  42. package/esm2020/radio/radio.module.mjs +19 -21
  43. package/esm2020/radio/radio.type.mjs +8 -8
  44. package/esm2020/rate/rate.module.mjs +17 -19
  45. package/esm2020/rate/rate.type.mjs +7 -7
  46. package/esm2020/select/select.module.mjs +19 -21
  47. package/esm2020/select/select.type.mjs +8 -8
  48. package/esm2020/slider/slider.module.mjs +17 -19
  49. package/esm2020/slider/slider.type.mjs +7 -7
  50. package/esm2020/switch/switch.module.mjs +17 -19
  51. package/esm2020/switch/switch.type.mjs +7 -7
  52. package/esm2020/tabs/tabs.module.mjs +14 -16
  53. package/esm2020/tabs/tabs.props.mjs +1 -1
  54. package/esm2020/tabs/tabs.wrapper.mjs +8 -8
  55. package/esm2020/textarea/textarea.module.mjs +17 -19
  56. package/esm2020/textarea/textarea.type.mjs +8 -8
  57. package/esm2020/timepicker/timepicker.module.mjs +17 -19
  58. package/esm2020/timepicker/timepicker.type.mjs +8 -8
  59. package/esm2020/transfer/transfer.component.mjs +5 -5
  60. package/esm2020/transfer/transfer.module.mjs +17 -19
  61. package/esm2020/transfer/transfer.type.mjs +8 -8
  62. package/esm2020/tree-select/tree-select.module.mjs +17 -19
  63. package/esm2020/tree-select/tree-select.type.mjs +8 -8
  64. package/esm2020/upload/upload.component.mjs +10 -10
  65. package/esm2020/upload/upload.module.mjs +19 -21
  66. package/esm2020/upload/upload.type.mjs +8 -8
  67. package/fesm2015/ngx-formly-zorro-antd-button.mjs +106 -68
  68. package/fesm2015/ngx-formly-zorro-antd-button.mjs.map +1 -1
  69. package/fesm2015/ngx-formly-zorro-antd-card.mjs +18 -20
  70. package/fesm2015/ngx-formly-zorro-antd-card.mjs.map +1 -1
  71. package/fesm2015/ngx-formly-zorro-antd-cascader.mjs +24 -26
  72. package/fesm2015/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  73. package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs +27 -29
  74. package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  75. package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs +23 -25
  76. package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  77. package/fesm2015/ngx-formly-zorro-antd-form-field.mjs +35 -27
  78. package/fesm2015/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  79. package/fesm2015/ngx-formly-zorro-antd-grid.mjs +114 -0
  80. package/fesm2015/ngx-formly-zorro-antd-grid.mjs.map +1 -0
  81. package/fesm2015/ngx-formly-zorro-antd-input-group.mjs +28 -24
  82. package/fesm2015/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  83. package/fesm2015/ngx-formly-zorro-antd-input-number.mjs +27 -29
  84. package/fesm2015/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  85. package/fesm2015/ngx-formly-zorro-antd-input.mjs +127 -79
  86. package/fesm2015/ngx-formly-zorro-antd-input.mjs.map +1 -1
  87. package/fesm2015/ngx-formly-zorro-antd-radio.mjs +26 -28
  88. package/fesm2015/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  89. package/fesm2015/ngx-formly-zorro-antd-rate.mjs +22 -24
  90. package/fesm2015/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  91. package/fesm2015/ngx-formly-zorro-antd-select.mjs +26 -28
  92. package/fesm2015/ngx-formly-zorro-antd-select.mjs.map +1 -1
  93. package/fesm2015/ngx-formly-zorro-antd-slider.mjs +22 -24
  94. package/fesm2015/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  95. package/fesm2015/ngx-formly-zorro-antd-switch.mjs +22 -24
  96. package/fesm2015/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  97. package/fesm2015/ngx-formly-zorro-antd-tabs.mjs +21 -23
  98. package/fesm2015/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  99. package/fesm2015/ngx-formly-zorro-antd-textarea.mjs +23 -25
  100. package/fesm2015/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  101. package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs +24 -26
  102. package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  103. package/fesm2015/ngx-formly-zorro-antd-transfer.mjs +27 -29
  104. package/fesm2015/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  105. package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs +24 -26
  106. package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  107. package/fesm2015/ngx-formly-zorro-antd-upload.mjs +34 -36
  108. package/fesm2015/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  109. package/fesm2015/ngx-formly-zorro-antd.mjs +29 -27
  110. package/fesm2015/ngx-formly-zorro-antd.mjs.map +1 -1
  111. package/fesm2020/ngx-formly-zorro-antd-button.mjs +106 -68
  112. package/fesm2020/ngx-formly-zorro-antd-button.mjs.map +1 -1
  113. package/fesm2020/ngx-formly-zorro-antd-card.mjs +18 -20
  114. package/fesm2020/ngx-formly-zorro-antd-card.mjs.map +1 -1
  115. package/fesm2020/ngx-formly-zorro-antd-cascader.mjs +24 -26
  116. package/fesm2020/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  117. package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs +27 -29
  118. package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  119. package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs +23 -25
  120. package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  121. package/fesm2020/ngx-formly-zorro-antd-form-field.mjs +35 -27
  122. package/fesm2020/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  123. package/fesm2020/ngx-formly-zorro-antd-grid.mjs +114 -0
  124. package/fesm2020/ngx-formly-zorro-antd-grid.mjs.map +1 -0
  125. package/fesm2020/ngx-formly-zorro-antd-input-group.mjs +28 -24
  126. package/fesm2020/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  127. package/fesm2020/ngx-formly-zorro-antd-input-number.mjs +27 -29
  128. package/fesm2020/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  129. package/fesm2020/ngx-formly-zorro-antd-input.mjs +127 -79
  130. package/fesm2020/ngx-formly-zorro-antd-input.mjs.map +1 -1
  131. package/fesm2020/ngx-formly-zorro-antd-radio.mjs +26 -28
  132. package/fesm2020/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  133. package/fesm2020/ngx-formly-zorro-antd-rate.mjs +22 -24
  134. package/fesm2020/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  135. package/fesm2020/ngx-formly-zorro-antd-select.mjs +26 -28
  136. package/fesm2020/ngx-formly-zorro-antd-select.mjs.map +1 -1
  137. package/fesm2020/ngx-formly-zorro-antd-slider.mjs +22 -24
  138. package/fesm2020/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  139. package/fesm2020/ngx-formly-zorro-antd-switch.mjs +22 -24
  140. package/fesm2020/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  141. package/fesm2020/ngx-formly-zorro-antd-tabs.mjs +21 -23
  142. package/fesm2020/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  143. package/fesm2020/ngx-formly-zorro-antd-textarea.mjs +23 -25
  144. package/fesm2020/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  145. package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs +24 -26
  146. package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  147. package/fesm2020/ngx-formly-zorro-antd-transfer.mjs +27 -29
  148. package/fesm2020/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  149. package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs +24 -26
  150. package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  151. package/fesm2020/ngx-formly-zorro-antd-upload.mjs +34 -36
  152. package/fesm2020/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  153. package/fesm2020/ngx-formly-zorro-antd.mjs +29 -27
  154. package/fesm2020/ngx-formly-zorro-antd.mjs.map +1 -1
  155. package/form-field/form-field.props.d.ts +28 -0
  156. package/form-field/form-field.wrapper.d.ts +1 -1
  157. package/form-field/{ngx-formly-zorro-antd-form-field.d.ts → index.d.ts} +0 -0
  158. package/grid/grid.module.d.ts +10 -0
  159. package/grid/grid.props.d.ts +44 -0
  160. package/grid/grid.type.d.ts +11 -0
  161. package/grid/index.d.ts +5 -0
  162. package/grid/public_api.d.ts +3 -0
  163. package/input/{ngx-formly-zorro-antd-input.d.ts → index.d.ts} +0 -0
  164. package/input/input.props.d.ts +3 -36
  165. package/input/input.type.d.ts +2 -2
  166. package/input-group/{ngx-formly-zorro-antd-input-group.d.ts → index.d.ts} +0 -0
  167. package/input-group/input-group.module.d.ts +3 -2
  168. package/input-group/input-group.props.d.ts +1 -1
  169. package/input-group/input-group.type.d.ts +1 -1
  170. package/input-number/{ngx-formly-zorro-antd-input-number.d.ts → index.d.ts} +0 -0
  171. package/input-number/input-number.type.d.ts +1 -1
  172. package/lib/ui-ng-zorro-antd.module.d.ts +2 -1
  173. package/package.json +38 -29
  174. package/radio/{ngx-formly-zorro-antd-radio.d.ts → index.d.ts} +0 -0
  175. package/radio/radio.type.d.ts +1 -1
  176. package/rate/{ngx-formly-zorro-antd-rate.d.ts → index.d.ts} +0 -0
  177. package/rate/rate.type.d.ts +1 -1
  178. package/select/{ngx-formly-zorro-antd-select.d.ts → index.d.ts} +0 -0
  179. package/select/select.type.d.ts +1 -1
  180. package/slider/{ngx-formly-zorro-antd-slider.d.ts → index.d.ts} +0 -0
  181. package/slider/slider.type.d.ts +1 -1
  182. package/switch/{ngx-formly-zorro-antd-switch.d.ts → index.d.ts} +0 -0
  183. package/switch/switch.type.d.ts +1 -1
  184. package/tabs/{ngx-formly-zorro-antd-tabs.d.ts → index.d.ts} +0 -0
  185. package/tabs/tabs.props.d.ts +1 -2
  186. package/tabs/tabs.wrapper.d.ts +1 -1
  187. package/textarea/{ngx-formly-zorro-antd-textarea.d.ts → index.d.ts} +0 -0
  188. package/textarea/textarea.type.d.ts +1 -1
  189. package/timepicker/{ngx-formly-zorro-antd-timepicker.d.ts → index.d.ts} +0 -0
  190. package/timepicker/timepicker.type.d.ts +1 -1
  191. package/transfer/{ngx-formly-zorro-antd-transfer.d.ts → index.d.ts} +0 -0
  192. package/transfer/transfer.component.d.ts +1 -1
  193. package/transfer/transfer.type.d.ts +1 -1
  194. package/tree-select/{ngx-formly-zorro-antd-tree-select.d.ts → index.d.ts} +0 -0
  195. package/tree-select/tree-select.type.d.ts +1 -1
  196. package/upload/{ngx-formly-zorro-antd-upload.d.ts → index.d.ts} +0 -0
  197. package/upload/upload.component.d.ts +1 -1
  198. package/upload/upload.type.d.ts +1 -1
  199. package/autocomplete/package.json +0 -10
  200. package/button/package.json +0 -10
  201. package/card/package.json +0 -10
  202. package/cascader/package.json +0 -10
  203. package/checkbox/package.json +0 -10
  204. package/datepicker/package.json +0 -10
  205. package/form-field/package.json +0 -10
  206. package/input/package.json +0 -10
  207. package/input-group/package.json +0 -10
  208. package/input-number/package.json +0 -10
  209. package/ngx-formly-zorro-antd.d.ts +0 -5
  210. package/radio/package.json +0 -10
  211. package/rate/package.json +0 -10
  212. package/select/package.json +0 -10
  213. package/slider/package.json +0 -10
  214. package/switch/package.json +0 -10
  215. package/tabs/package.json +0 -10
  216. package/textarea/package.json +0 -10
  217. package/timepicker/package.json +0 -10
  218. package/transfer/package.json +0 -10
  219. package/tree-select/package.json +0 -10
  220. package/upload/package.json +0 -10
@@ -1,17 +1,17 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
- import * as i3 from '@angular/common';
3
+ import * as i1 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
- import * as i5 from '@ngx-formly/core';
5
+ import * as i6 from '@ngx-formly/core';
6
6
  import { FieldType, FormlyModule } from '@ngx-formly/core';
7
- import * as i4 from '@angular/forms';
7
+ import * as i2 from '@angular/forms';
8
8
  import { ReactiveFormsModule } from '@angular/forms';
9
9
  import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
10
- import * as i1 from 'ng-zorro-antd/input';
10
+ import * as i3 from 'ng-zorro-antd/input';
11
11
  import { NzInputModule } from 'ng-zorro-antd/input';
12
- import * as i2 from 'ng-zorro-antd/auto-complete';
12
+ import * as i4 from 'ng-zorro-antd/auto-complete';
13
13
  import { NzAutocompleteModule } from 'ng-zorro-antd/auto-complete';
14
- import * as i6 from 'ng-zorro-antd/icon';
14
+ import * as i5 from 'ng-zorro-antd/icon';
15
15
  import { NzIconModule } from 'ng-zorro-antd/icon';
16
16
 
17
17
  class FormlyFieldInput extends FieldType {
@@ -33,14 +33,11 @@ class FormlyFieldInput extends FieldType {
33
33
  this.passwordVisible = false;
34
34
  }
35
35
  }
36
- FormlyFieldInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldInput, deps: null, target: i0.ɵɵFactoryTarget.Component });
37
- FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyFieldInput, selector: "formly-field-input", usesInheritance: true, ngImport: i0, template: `
36
+ FormlyFieldInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldInput, deps: null, target: i0.ɵɵFactoryTarget.Component });
37
+ FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: FormlyFieldInput, selector: "formly-field-input", usesInheritance: true, ngImport: i0, template: `
38
38
  <ng-container [ngSwitch]="props.type">
39
39
  <ng-container *ngSwitchCase="'password'">
40
40
  <nz-input-group
41
- [nzSize]="props['size']"
42
- [nzStatus]="props['status']"
43
- [nzSearch]="props['search']"
44
41
  [nzPrefixIcon]="props['prefixIcon']"
45
42
  [nzSuffixIcon]="props['suffixIcon']"
46
43
  [nzAddOnAfterIcon]="props['addOnAfterIcon']"
@@ -48,7 +45,11 @@ FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
48
45
  [nzAddOnBefore]="props['addOnBefore']"
49
46
  [nzAddOnAfter]="props['addOnAfter']"
50
47
  [nzPrefix]="props['prefix']"
51
- [nzSuffix]="suffixpassword"
48
+ [nzCompact]="props['compact']!!"
49
+ [nzSearch]="props['search']!!"
50
+ [nzSize]="props['size']!"
51
+ [nzStatus]="props['status']!"
52
+ [nzSuffix]="passwordEyeTpl"
52
53
  >
53
54
  <input
54
55
  [type]="passwordVisible ? 'text' : 'password'"
@@ -59,15 +60,6 @@ FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
59
60
  (ngModelChange)="props.change && props.change(field, $event)"
60
61
  />
61
62
  </nz-input-group>
62
-
63
- <ng-template #suffixpassword>
64
- <i
65
- nz-icon
66
- class="cursor-pointer"
67
- [nzType]="passwordVisible ? 'eye-invisible' : 'eye'"
68
- (click)="passwordVisible = !passwordVisible"
69
- ></i>
70
- </ng-template>
71
63
  </ng-container>
72
64
 
73
65
  <nz-input-group
@@ -80,7 +72,7 @@ FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
80
72
  [nzAddOnBefore]="props['addOnBefore']"
81
73
  [nzAddOnAfter]="props['addOnAfter']"
82
74
  [nzPrefix]="props['prefix']"
83
- [nzSuffix]="props['suffix']"
75
+ [nzSuffix]="props['allowClear']!! ? inputClearTpl : props['suffix']"
84
76
  >
85
77
  <input
86
78
  nz-input
@@ -110,9 +102,6 @@ FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
110
102
 
111
103
  <nz-input-group
112
104
  *ngSwitchCase="'group'"
113
- [nzSize]="props['size']"
114
- [nzStatus]="props['status']"
115
- [nzSearch]="props['search']"
116
105
  [nzPrefixIcon]="props['prefixIcon']"
117
106
  [nzSuffixIcon]="props['suffixIcon']"
118
107
  [nzAddOnAfterIcon]="props['addOnAfterIcon']"
@@ -120,11 +109,16 @@ FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
120
109
  [nzAddOnBefore]="props['addOnBefore']"
121
110
  [nzAddOnAfter]="props['addOnAfter']"
122
111
  [nzPrefix]="props['prefix']"
123
- [nzSuffix]="props['suffix']"
112
+ [nzSuffix]="props['allowClear']!! ? inputClearTpl : props['suffix']"
113
+ [nzCompact]="props['compact']!!"
114
+ [nzSearch]="props['search']!!"
115
+ [nzSize]="props['size']!"
116
+ [nzStatus]="props['status']!"
124
117
  >
125
118
  <input
126
119
  nz-input
127
120
  type="text"
121
+ [ngClass]="props['className']!"
128
122
  [formControl]="formControl"
129
123
  [formlyAttributes]="field"
130
124
  [nzBorderless]="!!props['borderless']!!"
@@ -136,6 +130,7 @@ FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
136
130
  *ngSwitchDefault
137
131
  nz-input
138
132
  type="text"
133
+ [ngClass]="props['className']!"
139
134
  [formControl]="formControl"
140
135
  [formlyAttributes]="field"
141
136
  [nzSize]="props['size']"
@@ -144,8 +139,38 @@ FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
144
139
  (ngModelChange)="props.change && props.change(field, $event)"
145
140
  />
146
141
  </ng-container>
147
- `, isInline: true, components: [{ type: i1.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { type: i2.NzAutocompleteComponent, selector: "nz-autocomplete", inputs: ["nzWidth", "nzOverlayClassName", "nzOverlayStyle", "nzDefaultActiveFirstOption", "nzBackfill", "compareWith", "nzDataSource"], outputs: ["selectionChange"], exportAs: ["nzAutocomplete"] }, { type: i2.NzAutocompleteOptionComponent, selector: "nz-auto-option", inputs: ["nzValue", "nzLabel", "nzDisabled"], outputs: ["selectionChange", "mouseEntered"], exportAs: ["nzAutoOption"] }], directives: [{ type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { type: i1.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i5.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { type: i2.NzAutocompleteTriggerDirective, selector: "input[nzAutocomplete], textarea[nzAutocomplete]", inputs: ["nzAutocomplete"], exportAs: ["nzAutocompleteTrigger"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgSwitchDefault, selector: "[ngSwitchDefault]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
148
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldInput, decorators: [{
142
+
143
+ <!-- 查看密码 -->
144
+ <ng-template #passwordEyeTpl>
145
+ <span
146
+ nz-icon
147
+ class="cursor-pointer"
148
+ [nzType]="passwordVisible ? 'eye-invisible' : 'eye'"
149
+ (click)="passwordVisible = !passwordVisible"
150
+ ></span>
151
+
152
+ <span
153
+ nz-icon
154
+ class="ant-input-clear-icon"
155
+ nzTheme="fill"
156
+ nzType="close-circle"
157
+ *ngIf="formControl.value && props['allowClear']!!"
158
+ (click)="formControl.reset()"
159
+ ></span>
160
+ </ng-template>
161
+ <!-- 清除数据 -->
162
+ <ng-template #inputClearTpl>
163
+ <span
164
+ nz-icon
165
+ class="ant-input-clear-icon"
166
+ nzTheme="fill"
167
+ nzType="close-circle"
168
+ *ngIf="formControl.value"
169
+ (click)="formControl.reset()"
170
+ ></span>
171
+ </ng-template>
172
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { 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.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i3.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i3.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "component", type: i4.NzAutocompleteComponent, selector: "nz-autocomplete", inputs: ["nzWidth", "nzOverlayClassName", "nzOverlayStyle", "nzDefaultActiveFirstOption", "nzBackfill", "compareWith", "nzDataSource"], outputs: ["selectionChange"], exportAs: ["nzAutocomplete"] }, { kind: "component", type: i4.NzAutocompleteOptionComponent, selector: "nz-auto-option", inputs: ["nzValue", "nzLabel", "nzDisabled"], outputs: ["selectionChange", "mouseEntered"], exportAs: ["nzAutoOption"] }, { kind: "directive", type: i4.NzAutocompleteTriggerDirective, selector: "input[nzAutocomplete], textarea[nzAutocomplete]", inputs: ["nzAutocomplete"], exportAs: ["nzAutocompleteTrigger"] }, { 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 });
173
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldInput, decorators: [{
149
174
  type: Component,
150
175
  args: [{
151
176
  selector: 'formly-field-input',
@@ -153,9 +178,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
153
178
  <ng-container [ngSwitch]="props.type">
154
179
  <ng-container *ngSwitchCase="'password'">
155
180
  <nz-input-group
156
- [nzSize]="props['size']"
157
- [nzStatus]="props['status']"
158
- [nzSearch]="props['search']"
159
181
  [nzPrefixIcon]="props['prefixIcon']"
160
182
  [nzSuffixIcon]="props['suffixIcon']"
161
183
  [nzAddOnAfterIcon]="props['addOnAfterIcon']"
@@ -163,7 +185,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
163
185
  [nzAddOnBefore]="props['addOnBefore']"
164
186
  [nzAddOnAfter]="props['addOnAfter']"
165
187
  [nzPrefix]="props['prefix']"
166
- [nzSuffix]="suffixpassword"
188
+ [nzCompact]="props['compact']!!"
189
+ [nzSearch]="props['search']!!"
190
+ [nzSize]="props['size']!"
191
+ [nzStatus]="props['status']!"
192
+ [nzSuffix]="passwordEyeTpl"
167
193
  >
168
194
  <input
169
195
  [type]="passwordVisible ? 'text' : 'password'"
@@ -174,15 +200,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
174
200
  (ngModelChange)="props.change && props.change(field, $event)"
175
201
  />
176
202
  </nz-input-group>
177
-
178
- <ng-template #suffixpassword>
179
- <i
180
- nz-icon
181
- class="cursor-pointer"
182
- [nzType]="passwordVisible ? 'eye-invisible' : 'eye'"
183
- (click)="passwordVisible = !passwordVisible"
184
- ></i>
185
- </ng-template>
186
203
  </ng-container>
187
204
 
188
205
  <nz-input-group
@@ -195,7 +212,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
195
212
  [nzAddOnBefore]="props['addOnBefore']"
196
213
  [nzAddOnAfter]="props['addOnAfter']"
197
214
  [nzPrefix]="props['prefix']"
198
- [nzSuffix]="props['suffix']"
215
+ [nzSuffix]="props['allowClear']!! ? inputClearTpl : props['suffix']"
199
216
  >
200
217
  <input
201
218
  nz-input
@@ -225,9 +242,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
225
242
 
226
243
  <nz-input-group
227
244
  *ngSwitchCase="'group'"
228
- [nzSize]="props['size']"
229
- [nzStatus]="props['status']"
230
- [nzSearch]="props['search']"
231
245
  [nzPrefixIcon]="props['prefixIcon']"
232
246
  [nzSuffixIcon]="props['suffixIcon']"
233
247
  [nzAddOnAfterIcon]="props['addOnAfterIcon']"
@@ -235,11 +249,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
235
249
  [nzAddOnBefore]="props['addOnBefore']"
236
250
  [nzAddOnAfter]="props['addOnAfter']"
237
251
  [nzPrefix]="props['prefix']"
238
- [nzSuffix]="props['suffix']"
252
+ [nzSuffix]="props['allowClear']!! ? inputClearTpl : props['suffix']"
253
+ [nzCompact]="props['compact']!!"
254
+ [nzSearch]="props['search']!!"
255
+ [nzSize]="props['size']!"
256
+ [nzStatus]="props['status']!"
239
257
  >
240
258
  <input
241
259
  nz-input
242
260
  type="text"
261
+ [ngClass]="props['className']!"
243
262
  [formControl]="formControl"
244
263
  [formlyAttributes]="field"
245
264
  [nzBorderless]="!!props['borderless']!!"
@@ -251,6 +270,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
251
270
  *ngSwitchDefault
252
271
  nz-input
253
272
  type="text"
273
+ [ngClass]="props['className']!"
254
274
  [formControl]="formControl"
255
275
  [formlyAttributes]="field"
256
276
  [nzSize]="props['size']"
@@ -259,6 +279,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
259
279
  (ngModelChange)="props.change && props.change(field, $event)"
260
280
  />
261
281
  </ng-container>
282
+
283
+ <!-- 查看密码 -->
284
+ <ng-template #passwordEyeTpl>
285
+ <span
286
+ nz-icon
287
+ class="cursor-pointer"
288
+ [nzType]="passwordVisible ? 'eye-invisible' : 'eye'"
289
+ (click)="passwordVisible = !passwordVisible"
290
+ ></span>
291
+
292
+ <span
293
+ nz-icon
294
+ class="ant-input-clear-icon"
295
+ nzTheme="fill"
296
+ nzType="close-circle"
297
+ *ngIf="formControl.value && props['allowClear']!!"
298
+ (click)="formControl.reset()"
299
+ ></span>
300
+ </ng-template>
301
+ <!-- 清除数据 -->
302
+ <ng-template #inputClearTpl>
303
+ <span
304
+ nz-icon
305
+ class="ant-input-clear-icon"
306
+ nzTheme="fill"
307
+ nzType="close-circle"
308
+ *ngIf="formControl.value"
309
+ (click)="formControl.reset()"
310
+ ></span>
311
+ </ng-template>
262
312
  `,
263
313
  changeDetection: ChangeDetectionStrategy.OnPush
264
314
  }]
@@ -266,46 +316,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
266
316
 
267
317
  class FormlyNzInputModule {
268
318
  }
269
- FormlyNzInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
270
- FormlyNzInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzInputModule, declarations: [FormlyFieldInput], imports: [CommonModule,
319
+ FormlyNzInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
320
+ FormlyNzInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputModule, declarations: [FormlyFieldInput], imports: [CommonModule,
321
+ ReactiveFormsModule,
322
+ NzInputModule,
323
+ NzAutocompleteModule,
324
+ NzIconModule,
325
+ FormlyNzFormFieldModule, i6.FormlyModule] });
326
+ FormlyNzInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputModule, imports: [CommonModule,
271
327
  ReactiveFormsModule,
272
328
  NzInputModule,
273
329
  NzAutocompleteModule,
274
330
  NzIconModule,
275
- FormlyNzFormFieldModule, i5.FormlyModule] });
276
- FormlyNzInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzInputModule, imports: [[
277
- CommonModule,
278
- ReactiveFormsModule,
279
- NzInputModule,
280
- NzAutocompleteModule,
281
- NzIconModule,
282
- FormlyNzFormFieldModule,
283
- FormlyModule.forChild({
284
- types: [
285
- {
286
- name: 'input',
287
- component: FormlyFieldInput,
288
- wrappers: ['form-field'],
289
- defaultOptions: {
290
- props: {
291
- type: 'input'
292
- }
331
+ FormlyNzFormFieldModule,
332
+ FormlyModule.forChild({
333
+ types: [
334
+ {
335
+ name: 'input',
336
+ component: FormlyFieldInput,
337
+ wrappers: ['form-field'],
338
+ defaultOptions: {
339
+ props: {
340
+ type: 'input'
293
341
  }
294
- },
295
- { name: 'string', extends: 'input' },
296
- {
297
- name: 'password',
298
- extends: 'input',
299
- defaultOptions: {
300
- props: {
301
- type: 'password'
302
- }
342
+ }
343
+ },
344
+ { name: 'string', extends: 'input' },
345
+ {
346
+ name: 'password',
347
+ extends: 'input',
348
+ defaultOptions: {
349
+ props: {
350
+ type: 'password'
303
351
  }
304
352
  }
305
- ]
306
- })
307
- ]] });
308
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzInputModule, decorators: [{
353
+ }
354
+ ]
355
+ })] });
356
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzInputModule, decorators: [{
309
357
  type: NgModule,
310
358
  args: [{
311
359
  declarations: [FormlyFieldInput],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-input.mjs","sources":["../../../../packages/formlyantd/input/src/input.type.ts","../../../../packages/formlyantd/input/src/input.module.ts","../../../../packages/formlyantd/input/src/ngx-formly-zorro-antd-input.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\r\n\r\nimport { InputProps } from './input.props';\r\n\r\nexport interface FormlyInputFieldConfig extends FormlyFieldConfig<InputProps> {\r\n type: 'input' | 'string' | 'password' | Type<FormlyFieldInput>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-input',\r\n template: `\r\n <ng-container [ngSwitch]=\"props.type\">\r\n <ng-container *ngSwitchCase=\"'password'\">\r\n <nz-input-group\r\n [nzSize]=\"props['size']\"\r\n [nzStatus]=\"props['status']\"\r\n [nzSearch]=\"props['search']\"\r\n [nzPrefixIcon]=\"props['prefixIcon']\"\r\n [nzSuffixIcon]=\"props['suffixIcon']\"\r\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\r\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\r\n [nzAddOnBefore]=\"props['addOnBefore']\"\r\n [nzAddOnAfter]=\"props['addOnAfter']\"\r\n [nzPrefix]=\"props['prefix']\"\r\n [nzSuffix]=\"suffixpassword\"\r\n >\r\n <input\r\n [type]=\"passwordVisible ? 'text' : 'password'\"\r\n nz-input\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzBorderless]=\"props['borderless']!!\"\r\n (ngModelChange)=\"props.change && props.change(field, $event)\"\r\n />\r\n </nz-input-group>\r\n\r\n <ng-template #suffixpassword>\r\n <i\r\n nz-icon\r\n class=\"cursor-pointer\"\r\n [nzType]=\"passwordVisible ? 'eye-invisible' : 'eye'\"\r\n (click)=\"passwordVisible = !passwordVisible\"\r\n ></i>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <nz-input-group\r\n *ngSwitchCase=\"'autoComplete'\"\r\n [nzSize]=\"props['size']\"\r\n [nzPrefixIcon]=\"props['prefixIcon']\"\r\n [nzSuffixIcon]=\"props['suffixIcon']\"\r\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\r\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\r\n [nzAddOnBefore]=\"props['addOnBefore']\"\r\n [nzAddOnAfter]=\"props['addOnAfter']\"\r\n [nzPrefix]=\"props['prefix']\"\r\n [nzSuffix]=\"props['suffix']\"\r\n >\r\n <input\r\n nz-input\r\n [nzBorderless]=\"props['borderless']\"\r\n [nzAutocomplete]=\"auto\"\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n />\r\n <nz-autocomplete\r\n [nzBackfill]=\"props['autocompleteOptions']?.backfill\"\r\n [nzDefaultActiveFirstOption]=\"props['autocompleteOptions']?.defaultActiveFirstOption\"\r\n [nzWidth]=\"props['autocompleteOptions']?.width\"\r\n [nzOverlayClassName]=\"props['autocompleteOptions']?.overlayClassName\"\r\n [nzOverlayStyle]=\"props['autocompleteOptions']?.overlayStyle\"\r\n [compareWith]=\"props['autocompleteOptions']?.compareWith\"\r\n #auto\r\n >\r\n <nz-auto-option\r\n *ngFor=\"let option of props['autocompleteOptions'].dataSource\"\r\n [nzLabel]=\"option.label\"\r\n [nzValue]=\"option.value\"\r\n >\r\n {{ option.label }}\r\n </nz-auto-option>\r\n </nz-autocomplete>\r\n </nz-input-group>\r\n\r\n <nz-input-group\r\n *ngSwitchCase=\"'group'\"\r\n [nzSize]=\"props['size']\"\r\n [nzStatus]=\"props['status']\"\r\n [nzSearch]=\"props['search']\"\r\n [nzPrefixIcon]=\"props['prefixIcon']\"\r\n [nzSuffixIcon]=\"props['suffixIcon']\"\r\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\r\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\r\n [nzAddOnBefore]=\"props['addOnBefore']\"\r\n [nzAddOnAfter]=\"props['addOnAfter']\"\r\n [nzPrefix]=\"props['prefix']\"\r\n [nzSuffix]=\"props['suffix']\"\r\n >\r\n <input\r\n nz-input\r\n type=\"text\"\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzBorderless]=\"!!props['borderless']!!\"\r\n (ngModelChange)=\"props.change && props.change(field, $event)\"\r\n />\r\n </nz-input-group>\r\n\r\n <input\r\n *ngSwitchDefault\r\n nz-input\r\n type=\"text\"\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzSize]=\"props['size']\"\r\n [nzStatus]=\"props['status']\"\r\n [nzBorderless]=\"props['borderless']!!\"\r\n (ngModelChange)=\"props.change && props.change(field, $event)\"\r\n />\r\n </ng-container>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldInput extends FieldType<FieldTypeConfig> {\r\n override defaultOptions = {\r\n props: {\r\n borderless: false,\r\n compact: false,\r\n search: false,\r\n allowClear: false,\r\n autocompleteOptions: {\r\n backfill: false,\r\n defaultActiveFirstOption: true,\r\n compareWith: (o1: NzSafeAny, o2: NzSafeAny) => o1 === o2\r\n }\r\n }\r\n };\r\n passwordVisible = false;\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 { NzInputModule } from 'ng-zorro-antd/input';\r\nimport { NzAutocompleteModule } from 'ng-zorro-antd/auto-complete';\r\nimport { NzIconModule } from 'ng-zorro-antd/icon';\r\n\r\nimport { FormlyFieldInput } from './input.type';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldInput],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n NzInputModule,\r\n NzAutocompleteModule,\r\n NzIconModule,\r\n\r\n FormlyNzFormFieldModule,\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'input',\r\n component: FormlyFieldInput,\r\n wrappers: ['form-field'],\r\n defaultOptions: {\r\n props: {\r\n type: 'input'\r\n }\r\n }\r\n },\r\n { name: 'string', extends: 'input' },\r\n {\r\n name: 'password',\r\n extends: 'input',\r\n defaultOptions: {\r\n props: {\r\n type: 'password'\r\n }\r\n }\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzInputModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;AA6HM,MAAO,gBAAiB,SAAQ,SAA0B,CAAA;AAnHhE,IAAA,WAAA,GAAA;;QAoHW,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,MAAM,EAAE,KAAK;AACb,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,mBAAmB,EAAE;AACnB,oBAAA,QAAQ,EAAE,KAAK;AACf,oBAAA,wBAAwB,EAAE,IAAI;oBAC9B,WAAW,EAAE,CAAC,EAAa,EAAE,EAAa,KAAK,EAAE,KAAK,EAAE;AACzD,iBAAA;AACF,aAAA;SACF,CAAC;AACF,QAAA,IAAe,CAAA,eAAA,GAAG,KAAK,CAAC;KACzB;;8GAfY,gBAAgB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,E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AAO,EAAE,OAAO,EAAE;AACpC,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,OAAO,EAAE,OAAO;AAChB,oCAAA,cAAc,EAAE;AACd,wCAAA,KAAK,EAAE;AACL,4CAAA,IAAI,EAAE,UAAU;AACjB,yCAAA;AACF,qCAAA;AACF,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;iBACF,CAAA;;;AC/CD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-input.mjs","sources":["../../../../packages/formlyantd/input/src/input.type.ts","../../../../packages/formlyantd/input/src/input.module.ts","../../../../packages/formlyantd/input/src/ngx-formly-zorro-antd-input.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\r\n\r\nimport type { InputProps } from './input.props';\r\n\r\nexport interface FormlyInputFieldConfig extends FormlyFieldConfig<InputProps> {\r\n type: 'input' | 'string' | 'password' | Type<FormlyFieldInput>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-input',\r\n template: `\r\n <ng-container [ngSwitch]=\"props.type\">\r\n <ng-container *ngSwitchCase=\"'password'\">\r\n <nz-input-group\r\n [nzPrefixIcon]=\"props['prefixIcon']\"\r\n [nzSuffixIcon]=\"props['suffixIcon']\"\r\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\r\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\r\n [nzAddOnBefore]=\"props['addOnBefore']\"\r\n [nzAddOnAfter]=\"props['addOnAfter']\"\r\n [nzPrefix]=\"props['prefix']\"\r\n [nzCompact]=\"props['compact']!!\"\r\n [nzSearch]=\"props['search']!!\"\r\n [nzSize]=\"props['size']!\"\r\n [nzStatus]=\"props['status']!\"\r\n [nzSuffix]=\"passwordEyeTpl\"\r\n >\r\n <input\r\n [type]=\"passwordVisible ? 'text' : 'password'\"\r\n nz-input\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzBorderless]=\"props['borderless']!!\"\r\n (ngModelChange)=\"props.change && props.change(field, $event)\"\r\n />\r\n </nz-input-group>\r\n </ng-container>\r\n\r\n <nz-input-group\r\n *ngSwitchCase=\"'autoComplete'\"\r\n [nzSize]=\"props['size']\"\r\n [nzPrefixIcon]=\"props['prefixIcon']\"\r\n [nzSuffixIcon]=\"props['suffixIcon']\"\r\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\r\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\r\n [nzAddOnBefore]=\"props['addOnBefore']\"\r\n [nzAddOnAfter]=\"props['addOnAfter']\"\r\n [nzPrefix]=\"props['prefix']\"\r\n [nzSuffix]=\"props['allowClear']!! ? inputClearTpl : props['suffix']\"\r\n >\r\n <input\r\n nz-input\r\n [nzBorderless]=\"props['borderless']\"\r\n [nzAutocomplete]=\"auto\"\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n />\r\n <nz-autocomplete\r\n [nzBackfill]=\"props['autocompleteOptions']?.backfill\"\r\n [nzDefaultActiveFirstOption]=\"props['autocompleteOptions']?.defaultActiveFirstOption\"\r\n [nzWidth]=\"props['autocompleteOptions']?.width\"\r\n [nzOverlayClassName]=\"props['autocompleteOptions']?.overlayClassName\"\r\n [nzOverlayStyle]=\"props['autocompleteOptions']?.overlayStyle\"\r\n [compareWith]=\"props['autocompleteOptions']?.compareWith\"\r\n #auto\r\n >\r\n <nz-auto-option\r\n *ngFor=\"let option of props['autocompleteOptions'].dataSource\"\r\n [nzLabel]=\"option.label\"\r\n [nzValue]=\"option.value\"\r\n >\r\n {{ option.label }}\r\n </nz-auto-option>\r\n </nz-autocomplete>\r\n </nz-input-group>\r\n\r\n <nz-input-group\r\n *ngSwitchCase=\"'group'\"\r\n [nzPrefixIcon]=\"props['prefixIcon']\"\r\n [nzSuffixIcon]=\"props['suffixIcon']\"\r\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\r\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\r\n [nzAddOnBefore]=\"props['addOnBefore']\"\r\n [nzAddOnAfter]=\"props['addOnAfter']\"\r\n [nzPrefix]=\"props['prefix']\"\r\n [nzSuffix]=\"props['allowClear']!! ? inputClearTpl : props['suffix']\"\r\n [nzCompact]=\"props['compact']!!\"\r\n [nzSearch]=\"props['search']!!\"\r\n [nzSize]=\"props['size']!\"\r\n [nzStatus]=\"props['status']!\"\r\n >\r\n <input\r\n nz-input\r\n type=\"text\"\r\n [ngClass]=\"props['className']!\"\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzBorderless]=\"!!props['borderless']!!\"\r\n (ngModelChange)=\"props.change && props.change(field, $event)\"\r\n />\r\n </nz-input-group>\r\n\r\n <input\r\n *ngSwitchDefault\r\n nz-input\r\n type=\"text\"\r\n [ngClass]=\"props['className']!\"\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzSize]=\"props['size']\"\r\n [nzStatus]=\"props['status']\"\r\n [nzBorderless]=\"props['borderless']!!\"\r\n (ngModelChange)=\"props.change && props.change(field, $event)\"\r\n />\r\n </ng-container>\r\n\r\n <!-- 查看密码 -->\r\n <ng-template #passwordEyeTpl>\r\n <span\r\n nz-icon\r\n class=\"cursor-pointer\"\r\n [nzType]=\"passwordVisible ? 'eye-invisible' : 'eye'\"\r\n (click)=\"passwordVisible = !passwordVisible\"\r\n ></span>\r\n\r\n <span\r\n nz-icon\r\n class=\"ant-input-clear-icon\"\r\n nzTheme=\"fill\"\r\n nzType=\"close-circle\"\r\n *ngIf=\"formControl.value && props['allowClear']!!\"\r\n (click)=\"formControl.reset()\"\r\n ></span>\r\n </ng-template>\r\n <!-- 清除数据 -->\r\n <ng-template #inputClearTpl>\r\n <span\r\n nz-icon\r\n class=\"ant-input-clear-icon\"\r\n nzTheme=\"fill\"\r\n nzType=\"close-circle\"\r\n *ngIf=\"formControl.value\"\r\n (click)=\"formControl.reset()\"\r\n ></span>\r\n </ng-template>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldInput extends FieldType<FieldTypeConfig> {\r\n override defaultOptions = {\r\n props: {\r\n borderless: false,\r\n compact: false,\r\n search: false,\r\n allowClear: false,\r\n autocompleteOptions: {\r\n backfill: false,\r\n defaultActiveFirstOption: true,\r\n compareWith: (o1: NzSafeAny, o2: NzSafeAny) => o1 === o2\r\n }\r\n }\r\n };\r\n passwordVisible = false;\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 { NzInputModule } from 'ng-zorro-antd/input';\r\nimport { NzAutocompleteModule } from 'ng-zorro-antd/auto-complete';\r\nimport { NzIconModule } from 'ng-zorro-antd/icon';\r\n\r\nimport { FormlyFieldInput } from './input.type';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldInput],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n NzInputModule,\r\n NzAutocompleteModule,\r\n NzIconModule,\r\n\r\n FormlyNzFormFieldModule,\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'input',\r\n component: FormlyFieldInput,\r\n wrappers: ['form-field'],\r\n defaultOptions: {\r\n props: {\r\n type: 'input'\r\n }\r\n }\r\n },\r\n { name: 'string', extends: 'input' },\r\n {\r\n name: 'password',\r\n extends: 'input',\r\n defaultOptions: {\r\n props: {\r\n type: 'password'\r\n }\r\n }\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzInputModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;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AI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE;AACpC,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,OAAO,EAAE,OAAO;AAChB,oCAAA,cAAc,EAAE;AACd,wCAAA,KAAK,EAAE;AACL,4CAAA,IAAI,EAAE,UAAU;AACjB,yCAAA;AACF,qCAAA;AACF,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;iBACF,CAAA;;;AC/CD;;AAEG;;;;"}
@@ -1,15 +1,15 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
- import * as i4 from '@angular/common';
3
+ import * as i1 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
5
  import * as i2 from '@angular/forms';
6
6
  import { ReactiveFormsModule } from '@angular/forms';
7
- import * as i3 from '@ngx-formly/core';
7
+ import * as i4 from '@ngx-formly/core';
8
8
  import { FieldType, FormlyModule } from '@ngx-formly/core';
9
9
  import * as i5 from '@ngx-formly/core/select';
10
10
  import { FormlySelectModule } from '@ngx-formly/core/select';
11
11
  import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
12
- import * as i1 from 'ng-zorro-antd/radio';
12
+ import * as i3 from 'ng-zorro-antd/radio';
13
13
  import { NzRadioModule } from 'ng-zorro-antd/radio';
14
14
  import { NzFormModule } from 'ng-zorro-antd/form';
15
15
 
@@ -24,8 +24,8 @@ class FormlyFieldRadio extends FieldType {
24
24
  };
25
25
  }
26
26
  }
27
- FormlyFieldRadio.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component });
28
- FormlyFieldRadio.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyFieldRadio, selector: "formly-field-radio", usesInheritance: true, ngImport: i0, template: `
27
+ FormlyFieldRadio.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component });
28
+ FormlyFieldRadio.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: FormlyFieldRadio, selector: "formly-field-radio", usesInheritance: true, ngImport: i0, template: `
29
29
  <nz-radio-group
30
30
  [formControl]="formControl"
31
31
  [formlyAttributes]="field"
@@ -58,8 +58,8 @@ FormlyFieldRadio.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
58
58
  </label>
59
59
  </ng-template>
60
60
  </nz-radio-group>
61
- `, isInline: true, components: [{ type: i1.NzRadioGroupComponent, selector: "nz-radio-group", inputs: ["nzDisabled", "nzButtonStyle", "nzSize", "nzName"], exportAs: ["nzRadioGroup"] }, { type: i1.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus"], exportAs: ["nzRadio"] }], directives: [{ type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NzRadioButtonDirective, selector: "[nz-radio-button]" }], pipes: { "async": i4.AsyncPipe, "formlySelectOptions": i5.FormlySelectOptionsPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
62
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldRadio, decorators: [{
61
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus"], exportAs: ["nzRadio"] }, { kind: "directive", type: i3.NzRadioButtonDirective, selector: "[nz-radio-button]" }, { kind: "component", type: i3.NzRadioGroupComponent, selector: "nz-radio-group", inputs: ["nzDisabled", "nzButtonStyle", "nzSize", "nzName"], exportAs: ["nzRadioGroup"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.FormlySelectOptionsPipe, name: "formlySelectOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
62
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldRadio, decorators: [{
63
63
  type: Component,
64
64
  args: [{
65
65
  selector: 'formly-field-radio',
@@ -103,31 +103,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
103
103
 
104
104
  class FormlyNzRadioModule {
105
105
  }
106
- FormlyNzRadioModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
107
- FormlyNzRadioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzRadioModule, declarations: [FormlyFieldRadio], imports: [CommonModule,
106
+ FormlyNzRadioModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
107
+ FormlyNzRadioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzRadioModule, declarations: [FormlyFieldRadio], imports: [CommonModule,
108
108
  ReactiveFormsModule,
109
109
  FormlyNzFormFieldModule,
110
110
  FormlySelectModule,
111
111
  NzFormModule,
112
- NzRadioModule, i3.FormlyModule] });
113
- FormlyNzRadioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzRadioModule, imports: [[
114
- CommonModule,
115
- ReactiveFormsModule,
116
- FormlyNzFormFieldModule,
117
- FormlySelectModule,
118
- NzFormModule,
119
- NzRadioModule,
120
- FormlyModule.forChild({
121
- types: [
122
- {
123
- name: 'radio',
124
- component: FormlyFieldRadio,
125
- wrappers: ['form-field']
126
- }
127
- ]
128
- })
129
- ]] });
130
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzRadioModule, decorators: [{
112
+ NzRadioModule, i4.FormlyModule] });
113
+ FormlyNzRadioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzRadioModule, imports: [CommonModule,
114
+ ReactiveFormsModule,
115
+ FormlyNzFormFieldModule,
116
+ FormlySelectModule,
117
+ NzFormModule,
118
+ NzRadioModule,
119
+ FormlyModule.forChild({
120
+ types: [
121
+ {
122
+ name: 'radio',
123
+ component: FormlyFieldRadio,
124
+ wrappers: ['form-field']
125
+ }
126
+ ]
127
+ })] });
128
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzRadioModule, decorators: [{
131
129
  type: NgModule,
132
130
  args: [{
133
131
  declarations: [FormlyFieldRadio],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-radio.mjs","sources":["../../../../packages/formlyantd/radio/src/radio.type.ts","../../../../packages/formlyantd/radio/src/radio.module.ts","../../../../packages/formlyantd/radio/src/ngx-formly-zorro-antd-radio.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport type { FormlyFieldSelectProps } from '@ngx-formly/core/select';\r\nimport type { NzSizeLDSType } from 'ng-zorro-antd/core/types';\r\nimport type { NzRadioButtonStyle } from 'ng-zorro-antd/radio';\r\n\r\ninterface RadioProps extends FormlyFieldProps, FormlyFieldSelectProps {\r\n type?: 'button';\r\n\r\n /**\r\n * nz-radio-group 下所有 input[type=\"radio\"] 的 name 属性\r\n */\r\n name?: string | null;\r\n /**\r\n * 大小,只对按钮样式生效\r\n * @default default\r\n */\r\n size?: NzSizeLDSType;\r\n /**\r\n * RadioButton 的风格样式,目前有描边和填色两种风格\r\n * @default outline\r\n */\r\n buttonStyle?: NzRadioButtonStyle;\r\n}\r\n\r\nexport interface FormlyRadioFieldConfig extends FormlyFieldConfig<RadioProps> {\r\n type: 'radio' | Type<FormlyFieldRadio>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-radio',\r\n template: `\r\n <nz-radio-group\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzName]=\"field.name ?? null\"\r\n [nzSize]=\"props['size']!\"\r\n [nzButtonStyle]=\"props['buttonStyle']!\"\r\n (ngModelChange)=\"props.change && props.change(field, $event)\"\r\n >\r\n <ng-container *ngIf=\"props.type !== 'button'; else button\">\r\n <label\r\n *ngFor=\"let option of props.options | formlySelectOptions: field | async; let i = index\"\r\n [id]=\"id + '_' + i\"\r\n [nzDisabled]=\"option.disabled === true\"\r\n [nzValue]=\"option.value\"\r\n nz-radio\r\n >\r\n {{ option.label }}\r\n </label>\r\n </ng-container>\r\n\r\n <ng-template #button>\r\n <label\r\n *ngFor=\"let option of props.options | formlySelectOptions: field | async; let i = index\"\r\n [id]=\"id + '_' + i\"\r\n [nzDisabled]=\"option.disabled === true\"\r\n [nzValue]=\"option.value\"\r\n nz-radio-button\r\n >\r\n {{ option.label }}\r\n </label>\r\n </ng-template>\r\n </nz-radio-group>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldRadio extends FieldType<FieldTypeConfig<RadioProps>> {\r\n override defaultOptions = {\r\n props: {\r\n size: 'default' as const,\r\n buttonStyle: 'outline' as const\r\n }\r\n };\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { FormlySelectModule } from '@ngx-formly/core/select';\r\n\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\nimport { FormlyFieldRadio } from './radio.type';\r\n\r\nimport { NzFormModule } from 'ng-zorro-antd/form';\r\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldRadio],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n FormlySelectModule,\r\n NzFormModule,\r\n\r\n NzRadioModule,\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'radio',\r\n component: FormlyFieldRadio,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzRadioModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;AAqEM,MAAO,gBAAiB,SAAQ,S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AAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA;AAYJ,mBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,EAnBrB,OAAA,EAAA,CAAA;YACP,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YACvB,kBAAkB;YAClB,YAAY;YAEZ,aAAa;YACb,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,OAAO;AACb,wBAAA,SAAS,EAAE,gBAAgB;wBAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC;SACH,CAAA,EAAA,CAAA,CAAA;4FAEU,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBArB/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;AAChC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,kBAAkB;wBAClB,YAAY;wBAEZ,aAAa;wBACb,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,OAAO;AACb,oCAAA,SAAS,EAAE,gBAAgB;oCAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;iBACF,CAAA;;;AChCD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-radio.mjs","sources":["../../../../packages/formlyantd/radio/src/radio.type.ts","../../../../packages/formlyantd/radio/src/radio.module.ts","../../../../packages/formlyantd/radio/src/ngx-formly-zorro-antd-radio.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport type { FormlyFieldSelectProps } from '@ngx-formly/core/select';\r\nimport type { NzSizeLDSType } from 'ng-zorro-antd/core/types';\r\nimport type { NzRadioButtonStyle } from 'ng-zorro-antd/radio';\r\n\r\ninterface RadioProps extends FormlyFieldProps, FormlyFieldSelectProps {\r\n type?: 'button';\r\n\r\n /**\r\n * nz-radio-group 下所有 input[type=\"radio\"] 的 name 属性\r\n */\r\n name?: string | null;\r\n /**\r\n * 大小,只对按钮样式生效\r\n * @default default\r\n */\r\n size?: NzSizeLDSType;\r\n /**\r\n * RadioButton 的风格样式,目前有描边和填色两种风格\r\n * @default outline\r\n */\r\n buttonStyle?: NzRadioButtonStyle;\r\n}\r\n\r\nexport interface FormlyRadioFieldConfig extends FormlyFieldConfig<RadioProps> {\r\n type: 'radio' | Type<FormlyFieldRadio>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-radio',\r\n template: `\r\n <nz-radio-group\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzName]=\"field.name ?? null\"\r\n [nzSize]=\"props['size']!\"\r\n [nzButtonStyle]=\"props['buttonStyle']!\"\r\n (ngModelChange)=\"props.change && props.change(field, $event)\"\r\n >\r\n <ng-container *ngIf=\"props.type !== 'button'; else button\">\r\n <label\r\n *ngFor=\"let option of props.options | formlySelectOptions: field | async; let i = index\"\r\n [id]=\"id + '_' + i\"\r\n [nzDisabled]=\"option.disabled === true\"\r\n [nzValue]=\"option.value\"\r\n nz-radio\r\n >\r\n {{ option.label }}\r\n </label>\r\n </ng-container>\r\n\r\n <ng-template #button>\r\n <label\r\n *ngFor=\"let option of props.options | formlySelectOptions: field | async; let i = index\"\r\n [id]=\"id + '_' + i\"\r\n [nzDisabled]=\"option.disabled === true\"\r\n [nzValue]=\"option.value\"\r\n nz-radio-button\r\n >\r\n {{ option.label }}\r\n </label>\r\n </ng-template>\r\n </nz-radio-group>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldRadio extends FieldType<FieldTypeConfig<RadioProps>> {\r\n override defaultOptions = {\r\n props: {\r\n size: 'default' as const,\r\n buttonStyle: 'outline' as const\r\n }\r\n };\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { FormlySelectModule } from '@ngx-formly/core/select';\r\n\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\nimport { FormlyFieldRadio } from './radio.type';\r\n\r\nimport { NzFormModule } from 'ng-zorro-antd/form';\r\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldRadio],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n FormlySelectModule,\r\n NzFormModule,\r\n\r\n NzRadioModule,\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'radio',\r\n component: FormlyFieldRadio,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzRadioModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;AAqEM,MAAO,gBAAiB,SAAQ,SAAsC,CAAA;AAtC5E,IAAA,WAAA,GAAA;;QAuCW,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,WAAW,EAAE,SAAkB;AAChC,aAAA;SACF,CAAC;KACH;;6GAPY,gBAAgB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAA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