ngx-formly-zorro-antd 17.1.1 → 17.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (205) hide show
  1. package/README.md +1 -1
  2. package/esm2022/autocomplete/autocomplete.props.mjs +1 -1
  3. package/esm2022/autocomplete/public_api.mjs +1 -1
  4. package/esm2022/button/button.module.mjs +5 -5
  5. package/esm2022/button/button.type.mjs +125 -125
  6. package/esm2022/button/public_api.mjs +1 -1
  7. package/esm2022/button-group/button-group.module.mjs +5 -5
  8. package/esm2022/button-group/button-group.type.mjs +69 -69
  9. package/esm2022/button-group/public_api.mjs +1 -1
  10. package/esm2022/card/card.module.mjs +5 -5
  11. package/esm2022/card/card.type.mjs +53 -53
  12. package/esm2022/card/public_api.mjs +1 -1
  13. package/esm2022/card-wrapper/card-wrapper.module.mjs +5 -5
  14. package/esm2022/card-wrapper/card-wrapper.props.mjs +1 -1
  15. package/esm2022/card-wrapper/card.wrapper.mjs +39 -39
  16. package/esm2022/card-wrapper/public_api.mjs +1 -1
  17. package/esm2022/cascader/cascader.module.mjs +5 -5
  18. package/esm2022/cascader/cascader.type.mjs +67 -67
  19. package/esm2022/cascader/public_api.mjs +1 -1
  20. package/esm2022/checkbox/checkbox.module.mjs +5 -5
  21. package/esm2022/checkbox/checkbox.type.mjs +41 -41
  22. package/esm2022/checkbox/public_api.mjs +1 -1
  23. package/esm2022/common/common.module.mjs +5 -5
  24. package/esm2022/common/formly-box-templates.directive.mjs +4 -4
  25. package/esm2022/common/formly-utils.mjs +1 -1
  26. package/esm2022/common/interface.mjs +1 -1
  27. package/esm2022/common/public_api.mjs +1 -1
  28. package/esm2022/datepicker/datepicker.module.mjs +5 -5
  29. package/esm2022/datepicker/datepicker.props.mjs +1 -1
  30. package/esm2022/datepicker/datepicker.type.mjs +151 -151
  31. package/esm2022/datepicker/public_api.mjs +1 -1
  32. package/esm2022/extension/public_api.mjs +1 -1
  33. package/esm2022/extension/value-changes-extension.mjs +1 -1
  34. package/esm2022/flex/flex.module.mjs +41 -0
  35. package/esm2022/flex/flex.type.mjs +66 -0
  36. package/esm2022/flex/ngx-formly-zorro-antd-flex.mjs +5 -0
  37. package/esm2022/flex/public_api.mjs +3 -0
  38. package/esm2022/form-field/form-field.module.mjs +5 -5
  39. package/esm2022/form-field/form-field.props.mjs +1 -1
  40. package/esm2022/form-field/form-field.wrapper.mjs +149 -149
  41. package/esm2022/form-field/public_api.mjs +1 -1
  42. package/esm2022/grid/grid.module.mjs +5 -5
  43. package/esm2022/grid/grid.props.mjs +1 -1
  44. package/esm2022/grid/grid.type.mjs +61 -61
  45. package/esm2022/grid/public_api.mjs +1 -1
  46. package/esm2022/index.mjs +1 -1
  47. package/esm2022/input/input.module.mjs +5 -5
  48. package/esm2022/input/input.props.mjs +1 -1
  49. package/esm2022/input/input.type.mjs +277 -277
  50. package/esm2022/input/public_api.mjs +1 -1
  51. package/esm2022/input-group/input-group.module.mjs +5 -5
  52. package/esm2022/input-group/input-group.props.mjs +1 -1
  53. package/esm2022/input-group/input-group.type.mjs +41 -41
  54. package/esm2022/input-group/public_api.mjs +1 -1
  55. package/esm2022/input-number/input-number.module.mjs +5 -5
  56. package/esm2022/input-number/input-number.props.mjs +1 -1
  57. package/esm2022/input-number/input-number.type.mjs +91 -91
  58. package/esm2022/input-number/public_api.mjs +1 -1
  59. package/esm2022/lib/ui-ng-zorro-antd.mjs +1 -1
  60. package/esm2022/lib/ui-ng-zorro-antd.module.mjs +12 -8
  61. package/esm2022/radio/public_api.mjs +1 -1
  62. package/esm2022/radio/radio.module.mjs +5 -5
  63. package/esm2022/radio/radio.type.mjs +83 -83
  64. package/esm2022/rate/public_api.mjs +1 -1
  65. package/esm2022/rate/rate.module.mjs +5 -5
  66. package/esm2022/rate/rate.type.mjs +35 -35
  67. package/esm2022/ref-template/public_api.mjs +1 -1
  68. package/esm2022/ref-template/ref-template.module.mjs +5 -5
  69. package/esm2022/ref-template/ref-template.type.mjs +11 -11
  70. package/esm2022/select/public_api.mjs +1 -1
  71. package/esm2022/select/select.module.mjs +5 -5
  72. package/esm2022/select/select.props.mjs +1 -1
  73. package/esm2022/select/select.type.mjs +125 -125
  74. package/esm2022/slider/public_api.mjs +1 -1
  75. package/esm2022/slider/slider.module.mjs +5 -5
  76. package/esm2022/slider/slider.type.mjs +35 -35
  77. package/esm2022/space/public_api.mjs +1 -1
  78. package/esm2022/space/space.module.mjs +5 -5
  79. package/esm2022/space/space.type.mjs +29 -29
  80. package/esm2022/switch/public_api.mjs +1 -1
  81. package/esm2022/switch/switch.module.mjs +5 -5
  82. package/esm2022/switch/switch.type.mjs +27 -27
  83. package/esm2022/tabs/public_api.mjs +1 -1
  84. package/esm2022/tabs/tabs.module.mjs +5 -5
  85. package/esm2022/tabs/tabs.props.mjs +1 -1
  86. package/esm2022/tabs/tabs.wrapper.mjs +81 -81
  87. package/esm2022/text-value/public_api.mjs +1 -1
  88. package/esm2022/text-value/text-value.module.mjs +5 -5
  89. package/esm2022/text-value/text-value.type.mjs +21 -21
  90. package/esm2022/textarea/public_api.mjs +1 -1
  91. package/esm2022/textarea/textarea.module.mjs +5 -5
  92. package/esm2022/textarea/textarea.type.mjs +115 -115
  93. package/esm2022/timepicker/public_api.mjs +1 -1
  94. package/esm2022/timepicker/timepicker.module.mjs +5 -5
  95. package/esm2022/timepicker/timepicker.type.mjs +63 -63
  96. package/esm2022/transfer/public_api.mjs +1 -1
  97. package/esm2022/transfer/transfer.component.mjs +52 -52
  98. package/esm2022/transfer/transfer.module.mjs +5 -5
  99. package/esm2022/transfer/transfer.type.mjs +49 -49
  100. package/esm2022/tree-select/public_api.mjs +1 -1
  101. package/esm2022/tree-select/tree-select.module.mjs +5 -5
  102. package/esm2022/tree-select/tree-select.type.mjs +71 -71
  103. package/esm2022/upload/public_api.mjs +1 -1
  104. package/esm2022/upload/upload.component.mjs +146 -146
  105. package/esm2022/upload/upload.module.mjs +5 -5
  106. package/esm2022/upload/upload.props.mjs +1 -1
  107. package/esm2022/upload/upload.type.mjs +85 -85
  108. package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +72 -72
  109. package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +1 -1
  110. package/fesm2022/ngx-formly-zorro-antd-button.mjs +128 -128
  111. package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
  112. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +42 -42
  113. package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
  114. package/fesm2022/ngx-formly-zorro-antd-card.mjs +56 -56
  115. package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
  116. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +70 -70
  117. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  118. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +44 -44
  119. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  120. package/fesm2022/ngx-formly-zorro-antd-common.mjs +7 -7
  121. package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -1
  122. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +154 -154
  123. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  124. package/fesm2022/ngx-formly-zorro-antd-extension.mjs.map +1 -1
  125. package/fesm2022/ngx-formly-zorro-antd-flex.mjs +109 -0
  126. package/fesm2022/ngx-formly-zorro-antd-flex.mjs.map +1 -0
  127. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +152 -152
  128. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  129. package/fesm2022/ngx-formly-zorro-antd-grid.mjs +64 -64
  130. package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
  131. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +44 -44
  132. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  133. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +94 -94
  134. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  135. package/fesm2022/ngx-formly-zorro-antd-input.mjs +280 -280
  136. package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
  137. package/fesm2022/ngx-formly-zorro-antd-radio.mjs +86 -86
  138. package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  139. package/fesm2022/ngx-formly-zorro-antd-rate.mjs +38 -38
  140. package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  141. package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs +14 -14
  142. package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
  143. package/fesm2022/ngx-formly-zorro-antd-select.mjs +128 -128
  144. package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
  145. package/fesm2022/ngx-formly-zorro-antd-slider.mjs +38 -38
  146. package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  147. package/fesm2022/ngx-formly-zorro-antd-space.mjs +32 -32
  148. package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
  149. package/fesm2022/ngx-formly-zorro-antd-switch.mjs +30 -30
  150. package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  151. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +84 -84
  152. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  153. package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +24 -24
  154. package/fesm2022/ngx-formly-zorro-antd-text-value.mjs.map +1 -1
  155. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +118 -118
  156. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  157. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +66 -66
  158. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  159. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +103 -103
  160. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  161. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +74 -74
  162. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  163. package/fesm2022/ngx-formly-zorro-antd-upload.mjs +233 -233
  164. package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  165. package/fesm2022/ngx-formly-zorro-antd.mjs +11 -7
  166. package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
  167. package/flex/flex.module.d.ts +10 -0
  168. package/flex/flex.type.d.ts +48 -0
  169. package/flex/index.d.ts +5 -0
  170. package/flex/public_api.d.ts +2 -0
  171. package/input/input.props.d.ts +4 -2
  172. package/input/public_api.d.ts +1 -0
  173. package/input-group/input-group.props.d.ts +2 -0
  174. package/input-group/public_api.d.ts +1 -1
  175. package/lib/ui-ng-zorro-antd.module.d.ts +2 -1
  176. package/package.json +24 -18
  177. package/autocomplete/package.json +0 -3
  178. package/button/package.json +0 -3
  179. package/button-group/package.json +0 -3
  180. package/card/package.json +0 -3
  181. package/card-wrapper/package.json +0 -3
  182. package/cascader/package.json +0 -3
  183. package/checkbox/package.json +0 -3
  184. package/common/package.json +0 -3
  185. package/datepicker/package.json +0 -3
  186. package/extension/package.json +0 -3
  187. package/form-field/package.json +0 -3
  188. package/grid/package.json +0 -3
  189. package/input/package.json +0 -3
  190. package/input-group/package.json +0 -3
  191. package/input-number/package.json +0 -3
  192. package/radio/package.json +0 -3
  193. package/rate/package.json +0 -3
  194. package/ref-template/package.json +0 -3
  195. package/select/package.json +0 -3
  196. package/slider/package.json +0 -3
  197. package/space/package.json +0 -3
  198. package/switch/package.json +0 -3
  199. package/tabs/package.json +0 -3
  200. package/text-value/package.json +0 -3
  201. package/textarea/package.json +0 -3
  202. package/timepicker/package.json +0 -3
  203. package/transfer/package.json +0 -3
  204. package/tree-select/package.json +0 -3
  205. package/upload/package.json +0 -3
@@ -41,287 +41,287 @@ class FormlyFieldInput extends FieldType {
41
41
  get addOnAfter() {
42
42
  return resolveTplName(this.props, this.fieldTemplates, 'addOnAfter');
43
43
  }
44
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldInput, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
45
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.6", type: FormlyFieldInput, selector: "formly-field-input", usesInheritance: true, ngImport: i0, template: `
46
- @switch (props.type) {
47
- @case ('password') {
48
- <nz-input-group
49
- [nzPrefixIcon]="props['prefixIcon']"
50
- [nzSuffixIcon]="props['suffixIcon']"
51
- [nzAddOnAfterIcon]="props['addOnAfterIcon']"
52
- [nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
53
- [nzAddOnBefore]="addOnBefore"
54
- [nzAddOnAfter]="addOnAfter"
55
- [nzPrefix]="props['prefix']"
56
- [nzCompact]="props['compact']!!"
57
- [nzSearch]="props['search']!!"
58
- [nzSize]="props['size']!"
59
- [nzStatus]="props['status']!"
60
- [nzSuffix]="passwordEyeTpl"
61
- >
62
- <input
63
- [type]="passwordVisible ? 'text' : 'password'"
64
- nz-input
65
- [formControl]="formControl"
66
- [formlyAttributes]="field"
67
- [nzBorderless]="props['borderless']!!"
68
- (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
69
- />
70
- </nz-input-group>
71
- }
72
- @case ('autoComplete') {
73
- <nz-input-group
74
- [nzSize]="props['size']"
75
- [nzPrefixIcon]="props['prefixIcon']"
76
- [nzSuffixIcon]="props['suffixIcon']"
77
- [nzAddOnAfterIcon]="props['addOnAfterIcon']"
78
- [nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
79
- [nzAddOnBefore]="addOnBefore"
80
- [nzAddOnAfter]="addOnAfter"
81
- [nzPrefix]="props['prefix']"
82
- [nzSuffix]="props['allowClear']!! ? inputClearTpl : props['suffix']"
83
- >
84
- <input
85
- nz-input
86
- [nzBorderless]="props['borderless']"
87
- [nzAutocomplete]="auto"
88
- [formControl]="formControl"
89
- [formlyAttributes]="field"
90
- />
91
- <nz-autocomplete
92
- [nzBackfill]="props['autocompleteOptions']?.backfill"
93
- [nzDefaultActiveFirstOption]="props['autocompleteOptions']?.defaultActiveFirstOption"
94
- [nzWidth]="props['autocompleteOptions']?.width"
95
- [nzOverlayClassName]="props['autocompleteOptions']?.overlayClassName"
96
- [nzOverlayStyle]="props['autocompleteOptions']?.overlayStyle"
97
- [compareWith]="props['autocompleteOptions']?.compareWith"
98
- #auto
99
- >
100
- @for (option of props['autocompleteOptions'].dataSource; track option) {
101
- <nz-auto-option [nzLabel]="option.label" [nzValue]="option.value">
102
- {{ option.label }}
103
- </nz-auto-option>
104
- }
105
- </nz-autocomplete>
106
- </nz-input-group>
107
- }
108
- @case ('group') {
109
- <nz-input-group
110
- [nzPrefixIcon]="props['prefixIcon']"
111
- [nzSuffixIcon]="props['suffixIcon']"
112
- [nzAddOnAfterIcon]="props['addOnAfterIcon']"
113
- [nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
114
- [nzAddOnBefore]="addOnBefore"
115
- [nzAddOnAfter]="addOnAfter"
116
- [nzPrefix]="props['prefix']"
117
- [nzSuffix]="props['allowClear']!! ? inputClearTpl : props['suffix']"
118
- [nzCompact]="props['compact']!!"
119
- [nzSearch]="props['search']!!"
120
- [nzSize]="props['size']!"
121
- [nzStatus]="props['status']!"
122
- >
123
- <input
124
- nz-input
125
- type="text"
126
- [ngClass]="props['ngClass']"
127
- [ngStyle]="props['ngStyle']"
128
- [formControl]="formControl"
129
- [formlyAttributes]="field"
130
- [nzBorderless]="!!props['borderless']!!"
131
- (ngModelChange)="props['modelChange']?.(field, $event)"
132
- />
133
- </nz-input-group>
134
- }
135
- @default {
136
- <input
137
- nz-input
138
- type="text"
139
- [ngClass]="props['ngClass']"
140
- [ngStyle]="props['ngStyle']"
141
- [formControl]="formControl"
142
- [formlyAttributes]="field"
143
- [nzSize]="props['size']"
144
- [nzStatus]="props['status']"
145
- [nzBorderless]="props['borderless']!!"
146
- (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
147
- />
148
- }
149
- }
150
-
151
- <!-- 查看密码 -->
152
- <ng-template #passwordEyeTpl>
153
- <span
154
- nz-icon
155
- class="cursor-pointer"
156
- [nzType]="passwordVisible ? 'eye-invisible' : 'eye'"
157
- (click)="passwordVisible = !passwordVisible"
158
- ></span>
159
-
160
- @if (formControl.value && props['allowClear']!!) {
161
- <span
162
- nz-icon
163
- class="ant-input-clear-icon"
164
- nzTheme="fill"
165
- nzType="close-circle"
166
- (click)="formControl.reset()"
167
- ></span>
168
- }
169
- </ng-template>
170
- <!-- 清除数据 -->
171
- <ng-template #inputClearTpl>
172
- @if (formControl.value && !props['disabled'] && !props['readonly']) {
173
- <span
174
- nz-icon
175
- class="ant-input-clear-icon"
176
- nzTheme="fill"
177
- nzType="close-circle"
178
- (click)="formControl.reset()"
179
- ></span>
180
- }
181
- </ng-template>
44
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldInput, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
45
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.9", type: FormlyFieldInput, selector: "formly-field-input", usesInheritance: true, ngImport: i0, template: `
46
+ @switch (props.type) {
47
+ @case ('password') {
48
+ <nz-input-group
49
+ [nzPrefixIcon]="props['prefixIcon']"
50
+ [nzSuffixIcon]="props['suffixIcon']"
51
+ [nzAddOnAfterIcon]="props['addOnAfterIcon']"
52
+ [nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
53
+ [nzAddOnBefore]="addOnBefore"
54
+ [nzAddOnAfter]="addOnAfter"
55
+ [nzPrefix]="props['prefix']"
56
+ [nzCompact]="props['compact']!!"
57
+ [nzSearch]="props['search']!!"
58
+ [nzSize]="props['size']!"
59
+ [nzStatus]="props['status']!"
60
+ [nzSuffix]="passwordEyeTpl"
61
+ >
62
+ <input
63
+ [type]="passwordVisible ? 'text' : 'password'"
64
+ nz-input
65
+ [formControl]="formControl"
66
+ [formlyAttributes]="field"
67
+ [nzBorderless]="props['borderless']!!"
68
+ (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
69
+ />
70
+ </nz-input-group>
71
+ }
72
+ @case ('autoComplete') {
73
+ <nz-input-group
74
+ [nzSize]="props['size']"
75
+ [nzPrefixIcon]="props['prefixIcon']"
76
+ [nzSuffixIcon]="props['suffixIcon']"
77
+ [nzAddOnAfterIcon]="props['addOnAfterIcon']"
78
+ [nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
79
+ [nzAddOnBefore]="addOnBefore"
80
+ [nzAddOnAfter]="addOnAfter"
81
+ [nzPrefix]="props['prefix']"
82
+ [nzSuffix]="props['allowClear']!! ? inputClearTpl : props['suffix']"
83
+ >
84
+ <input
85
+ nz-input
86
+ [nzBorderless]="props['borderless']"
87
+ [nzAutocomplete]="auto"
88
+ [formControl]="formControl"
89
+ [formlyAttributes]="field"
90
+ />
91
+ <nz-autocomplete
92
+ [nzBackfill]="props['autocompleteOptions']?.backfill"
93
+ [nzDefaultActiveFirstOption]="props['autocompleteOptions']?.defaultActiveFirstOption"
94
+ [nzWidth]="props['autocompleteOptions']?.width"
95
+ [nzOverlayClassName]="props['autocompleteOptions']?.overlayClassName"
96
+ [nzOverlayStyle]="props['autocompleteOptions']?.overlayStyle"
97
+ [compareWith]="props['autocompleteOptions']?.compareWith"
98
+ #auto
99
+ >
100
+ @for (option of props['autocompleteOptions'].dataSource; track option) {
101
+ <nz-auto-option [nzLabel]="option.label" [nzValue]="option.value">
102
+ {{ option.label }}
103
+ </nz-auto-option>
104
+ }
105
+ </nz-autocomplete>
106
+ </nz-input-group>
107
+ }
108
+ @case ('group') {
109
+ <nz-input-group
110
+ [nzPrefixIcon]="props['prefixIcon']"
111
+ [nzSuffixIcon]="props['suffixIcon']"
112
+ [nzAddOnAfterIcon]="props['addOnAfterIcon']"
113
+ [nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
114
+ [nzAddOnBefore]="addOnBefore"
115
+ [nzAddOnAfter]="addOnAfter"
116
+ [nzPrefix]="props['prefix']"
117
+ [nzSuffix]="props['allowClear']!! ? inputClearTpl : props['suffix']"
118
+ [nzCompact]="props['compact']!!"
119
+ [nzSearch]="props['search']!!"
120
+ [nzSize]="props['size']!"
121
+ [nzStatus]="props['status']!"
122
+ >
123
+ <input
124
+ nz-input
125
+ type="text"
126
+ [ngClass]="props['ngClass']"
127
+ [ngStyle]="props['ngStyle']"
128
+ [formControl]="formControl"
129
+ [formlyAttributes]="field"
130
+ [nzBorderless]="!!props['borderless']!!"
131
+ (ngModelChange)="props['modelChange']?.(field, $event)"
132
+ />
133
+ </nz-input-group>
134
+ }
135
+ @default {
136
+ <input
137
+ nz-input
138
+ type="text"
139
+ [ngClass]="props['ngClass']"
140
+ [ngStyle]="props['ngStyle']"
141
+ [formControl]="formControl"
142
+ [formlyAttributes]="field"
143
+ [nzSize]="props['size']"
144
+ [nzStatus]="props['status']"
145
+ [nzBorderless]="props['borderless']!!"
146
+ (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
147
+ />
148
+ }
149
+ }
150
+
151
+ <!-- 查看密码 -->
152
+ <ng-template #passwordEyeTpl>
153
+ <span
154
+ nz-icon
155
+ class="cursor-pointer"
156
+ [nzType]="passwordVisible ? 'eye-invisible' : 'eye'"
157
+ (click)="passwordVisible = !passwordVisible"
158
+ ></span>
159
+
160
+ @if (formControl.value && props['allowClear']!!) {
161
+ <span
162
+ nz-icon
163
+ class="ant-input-clear-icon"
164
+ nzTheme="fill"
165
+ nzType="close-circle"
166
+ (click)="formControl.reset()"
167
+ ></span>
168
+ }
169
+ </ng-template>
170
+ <!-- 清除数据 -->
171
+ <ng-template #inputClearTpl>
172
+ @if (formControl.value && !props['disabled'] && !props['readonly']) {
173
+ <span
174
+ nz-icon
175
+ class="ant-input-clear-icon"
176
+ nzTheme="fill"
177
+ nzType="close-circle"
178
+ (click)="formControl.reset()"
179
+ ></span>
180
+ }
181
+ </ng-template>
182
182
  `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i3.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: 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.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i4.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i4.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "component", type: i5.NzAutocompleteComponent, selector: "nz-autocomplete", inputs: ["nzWidth", "nzOverlayClassName", "nzOverlayStyle", "nzDefaultActiveFirstOption", "nzBackfill", "compareWith", "nzDataSource"], outputs: ["selectionChange"], exportAs: ["nzAutocomplete"] }, { kind: "component", type: i5.NzAutocompleteOptionComponent, selector: "nz-auto-option", inputs: ["nzValue", "nzLabel", "nzDisabled"], outputs: ["selectionChange", "mouseEntered"], exportAs: ["nzAutoOption"] }, { kind: "directive", type: i5.NzAutocompleteTriggerDirective, selector: "input[nzAutocomplete], textarea[nzAutocomplete]", inputs: ["nzAutocomplete"], exportAs: ["nzAutocompleteTrigger"] }, { kind: "directive", type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i7.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
183
183
  }
184
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyFieldInput, decorators: [{
184
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyFieldInput, decorators: [{
185
185
  type: Component,
186
186
  args: [{
187
187
  selector: 'formly-field-input',
188
- template: `
189
- @switch (props.type) {
190
- @case ('password') {
191
- <nz-input-group
192
- [nzPrefixIcon]="props['prefixIcon']"
193
- [nzSuffixIcon]="props['suffixIcon']"
194
- [nzAddOnAfterIcon]="props['addOnAfterIcon']"
195
- [nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
196
- [nzAddOnBefore]="addOnBefore"
197
- [nzAddOnAfter]="addOnAfter"
198
- [nzPrefix]="props['prefix']"
199
- [nzCompact]="props['compact']!!"
200
- [nzSearch]="props['search']!!"
201
- [nzSize]="props['size']!"
202
- [nzStatus]="props['status']!"
203
- [nzSuffix]="passwordEyeTpl"
204
- >
205
- <input
206
- [type]="passwordVisible ? 'text' : 'password'"
207
- nz-input
208
- [formControl]="formControl"
209
- [formlyAttributes]="field"
210
- [nzBorderless]="props['borderless']!!"
211
- (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
212
- />
213
- </nz-input-group>
214
- }
215
- @case ('autoComplete') {
216
- <nz-input-group
217
- [nzSize]="props['size']"
218
- [nzPrefixIcon]="props['prefixIcon']"
219
- [nzSuffixIcon]="props['suffixIcon']"
220
- [nzAddOnAfterIcon]="props['addOnAfterIcon']"
221
- [nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
222
- [nzAddOnBefore]="addOnBefore"
223
- [nzAddOnAfter]="addOnAfter"
224
- [nzPrefix]="props['prefix']"
225
- [nzSuffix]="props['allowClear']!! ? inputClearTpl : props['suffix']"
226
- >
227
- <input
228
- nz-input
229
- [nzBorderless]="props['borderless']"
230
- [nzAutocomplete]="auto"
231
- [formControl]="formControl"
232
- [formlyAttributes]="field"
233
- />
234
- <nz-autocomplete
235
- [nzBackfill]="props['autocompleteOptions']?.backfill"
236
- [nzDefaultActiveFirstOption]="props['autocompleteOptions']?.defaultActiveFirstOption"
237
- [nzWidth]="props['autocompleteOptions']?.width"
238
- [nzOverlayClassName]="props['autocompleteOptions']?.overlayClassName"
239
- [nzOverlayStyle]="props['autocompleteOptions']?.overlayStyle"
240
- [compareWith]="props['autocompleteOptions']?.compareWith"
241
- #auto
242
- >
243
- @for (option of props['autocompleteOptions'].dataSource; track option) {
244
- <nz-auto-option [nzLabel]="option.label" [nzValue]="option.value">
245
- {{ option.label }}
246
- </nz-auto-option>
247
- }
248
- </nz-autocomplete>
249
- </nz-input-group>
250
- }
251
- @case ('group') {
252
- <nz-input-group
253
- [nzPrefixIcon]="props['prefixIcon']"
254
- [nzSuffixIcon]="props['suffixIcon']"
255
- [nzAddOnAfterIcon]="props['addOnAfterIcon']"
256
- [nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
257
- [nzAddOnBefore]="addOnBefore"
258
- [nzAddOnAfter]="addOnAfter"
259
- [nzPrefix]="props['prefix']"
260
- [nzSuffix]="props['allowClear']!! ? inputClearTpl : props['suffix']"
261
- [nzCompact]="props['compact']!!"
262
- [nzSearch]="props['search']!!"
263
- [nzSize]="props['size']!"
264
- [nzStatus]="props['status']!"
265
- >
266
- <input
267
- nz-input
268
- type="text"
269
- [ngClass]="props['ngClass']"
270
- [ngStyle]="props['ngStyle']"
271
- [formControl]="formControl"
272
- [formlyAttributes]="field"
273
- [nzBorderless]="!!props['borderless']!!"
274
- (ngModelChange)="props['modelChange']?.(field, $event)"
275
- />
276
- </nz-input-group>
277
- }
278
- @default {
279
- <input
280
- nz-input
281
- type="text"
282
- [ngClass]="props['ngClass']"
283
- [ngStyle]="props['ngStyle']"
284
- [formControl]="formControl"
285
- [formlyAttributes]="field"
286
- [nzSize]="props['size']"
287
- [nzStatus]="props['status']"
288
- [nzBorderless]="props['borderless']!!"
289
- (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
290
- />
291
- }
292
- }
293
-
294
- <!-- 查看密码 -->
295
- <ng-template #passwordEyeTpl>
296
- <span
297
- nz-icon
298
- class="cursor-pointer"
299
- [nzType]="passwordVisible ? 'eye-invisible' : 'eye'"
300
- (click)="passwordVisible = !passwordVisible"
301
- ></span>
302
-
303
- @if (formControl.value && props['allowClear']!!) {
304
- <span
305
- nz-icon
306
- class="ant-input-clear-icon"
307
- nzTheme="fill"
308
- nzType="close-circle"
309
- (click)="formControl.reset()"
310
- ></span>
311
- }
312
- </ng-template>
313
- <!-- 清除数据 -->
314
- <ng-template #inputClearTpl>
315
- @if (formControl.value && !props['disabled'] && !props['readonly']) {
316
- <span
317
- nz-icon
318
- class="ant-input-clear-icon"
319
- nzTheme="fill"
320
- nzType="close-circle"
321
- (click)="formControl.reset()"
322
- ></span>
323
- }
324
- </ng-template>
188
+ template: `
189
+ @switch (props.type) {
190
+ @case ('password') {
191
+ <nz-input-group
192
+ [nzPrefixIcon]="props['prefixIcon']"
193
+ [nzSuffixIcon]="props['suffixIcon']"
194
+ [nzAddOnAfterIcon]="props['addOnAfterIcon']"
195
+ [nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
196
+ [nzAddOnBefore]="addOnBefore"
197
+ [nzAddOnAfter]="addOnAfter"
198
+ [nzPrefix]="props['prefix']"
199
+ [nzCompact]="props['compact']!!"
200
+ [nzSearch]="props['search']!!"
201
+ [nzSize]="props['size']!"
202
+ [nzStatus]="props['status']!"
203
+ [nzSuffix]="passwordEyeTpl"
204
+ >
205
+ <input
206
+ [type]="passwordVisible ? 'text' : 'password'"
207
+ nz-input
208
+ [formControl]="formControl"
209
+ [formlyAttributes]="field"
210
+ [nzBorderless]="props['borderless']!!"
211
+ (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
212
+ />
213
+ </nz-input-group>
214
+ }
215
+ @case ('autoComplete') {
216
+ <nz-input-group
217
+ [nzSize]="props['size']"
218
+ [nzPrefixIcon]="props['prefixIcon']"
219
+ [nzSuffixIcon]="props['suffixIcon']"
220
+ [nzAddOnAfterIcon]="props['addOnAfterIcon']"
221
+ [nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
222
+ [nzAddOnBefore]="addOnBefore"
223
+ [nzAddOnAfter]="addOnAfter"
224
+ [nzPrefix]="props['prefix']"
225
+ [nzSuffix]="props['allowClear']!! ? inputClearTpl : props['suffix']"
226
+ >
227
+ <input
228
+ nz-input
229
+ [nzBorderless]="props['borderless']"
230
+ [nzAutocomplete]="auto"
231
+ [formControl]="formControl"
232
+ [formlyAttributes]="field"
233
+ />
234
+ <nz-autocomplete
235
+ [nzBackfill]="props['autocompleteOptions']?.backfill"
236
+ [nzDefaultActiveFirstOption]="props['autocompleteOptions']?.defaultActiveFirstOption"
237
+ [nzWidth]="props['autocompleteOptions']?.width"
238
+ [nzOverlayClassName]="props['autocompleteOptions']?.overlayClassName"
239
+ [nzOverlayStyle]="props['autocompleteOptions']?.overlayStyle"
240
+ [compareWith]="props['autocompleteOptions']?.compareWith"
241
+ #auto
242
+ >
243
+ @for (option of props['autocompleteOptions'].dataSource; track option) {
244
+ <nz-auto-option [nzLabel]="option.label" [nzValue]="option.value">
245
+ {{ option.label }}
246
+ </nz-auto-option>
247
+ }
248
+ </nz-autocomplete>
249
+ </nz-input-group>
250
+ }
251
+ @case ('group') {
252
+ <nz-input-group
253
+ [nzPrefixIcon]="props['prefixIcon']"
254
+ [nzSuffixIcon]="props['suffixIcon']"
255
+ [nzAddOnAfterIcon]="props['addOnAfterIcon']"
256
+ [nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
257
+ [nzAddOnBefore]="addOnBefore"
258
+ [nzAddOnAfter]="addOnAfter"
259
+ [nzPrefix]="props['prefix']"
260
+ [nzSuffix]="props['allowClear']!! ? inputClearTpl : props['suffix']"
261
+ [nzCompact]="props['compact']!!"
262
+ [nzSearch]="props['search']!!"
263
+ [nzSize]="props['size']!"
264
+ [nzStatus]="props['status']!"
265
+ >
266
+ <input
267
+ nz-input
268
+ type="text"
269
+ [ngClass]="props['ngClass']"
270
+ [ngStyle]="props['ngStyle']"
271
+ [formControl]="formControl"
272
+ [formlyAttributes]="field"
273
+ [nzBorderless]="!!props['borderless']!!"
274
+ (ngModelChange)="props['modelChange']?.(field, $event)"
275
+ />
276
+ </nz-input-group>
277
+ }
278
+ @default {
279
+ <input
280
+ nz-input
281
+ type="text"
282
+ [ngClass]="props['ngClass']"
283
+ [ngStyle]="props['ngStyle']"
284
+ [formControl]="formControl"
285
+ [formlyAttributes]="field"
286
+ [nzSize]="props['size']"
287
+ [nzStatus]="props['status']"
288
+ [nzBorderless]="props['borderless']!!"
289
+ (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
290
+ />
291
+ }
292
+ }
293
+
294
+ <!-- 查看密码 -->
295
+ <ng-template #passwordEyeTpl>
296
+ <span
297
+ nz-icon
298
+ class="cursor-pointer"
299
+ [nzType]="passwordVisible ? 'eye-invisible' : 'eye'"
300
+ (click)="passwordVisible = !passwordVisible"
301
+ ></span>
302
+
303
+ @if (formControl.value && props['allowClear']!!) {
304
+ <span
305
+ nz-icon
306
+ class="ant-input-clear-icon"
307
+ nzTheme="fill"
308
+ nzType="close-circle"
309
+ (click)="formControl.reset()"
310
+ ></span>
311
+ }
312
+ </ng-template>
313
+ <!-- 清除数据 -->
314
+ <ng-template #inputClearTpl>
315
+ @if (formControl.value && !props['disabled'] && !props['readonly']) {
316
+ <span
317
+ nz-icon
318
+ class="ant-input-clear-icon"
319
+ nzTheme="fill"
320
+ nzType="close-circle"
321
+ (click)="formControl.reset()"
322
+ ></span>
323
+ }
324
+ </ng-template>
325
325
  `,
326
326
  changeDetection: ChangeDetectionStrategy.OnPush
327
327
  }]
@@ -330,14 +330,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImpor
330
330
  }] }] });
331
331
 
332
332
  class FormlyNzInputModule {
333
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
334
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzInputModule, declarations: [FormlyFieldInput], imports: [CommonModule,
333
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
334
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzInputModule, declarations: [FormlyFieldInput], imports: [CommonModule,
335
335
  ReactiveFormsModule,
336
336
  NzInputModule,
337
337
  NzAutocompleteModule,
338
338
  NzIconModule,
339
339
  FormlyNzFormFieldModule, i7.FormlyModule] }); }
340
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzInputModule, imports: [CommonModule,
340
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzInputModule, imports: [CommonModule,
341
341
  ReactiveFormsModule,
342
342
  NzInputModule,
343
343
  NzAutocompleteModule,
@@ -368,7 +368,7 @@ class FormlyNzInputModule {
368
368
  ]
369
369
  })] }); }
370
370
  }
371
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.6", ngImport: i0, type: FormlyNzInputModule, decorators: [{
371
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: FormlyNzInputModule, decorators: [{
372
372
  type: NgModule,
373
373
  args: [{
374
374
  declarations: [FormlyFieldInput],