ngx-formly-zorro-antd 14.0.0 → 14.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (293) hide show
  1. package/README.md +1 -1
  2. package/autocomplete/autocomplete.props.d.ts +38 -38
  3. package/autocomplete/index.d.ts +5 -5
  4. package/autocomplete/public_api.d.ts +1 -1
  5. package/button/button.module.d.ts +11 -11
  6. package/button/button.type.d.ts +66 -66
  7. package/button/index.d.ts +5 -5
  8. package/button/public_api.d.ts +2 -2
  9. package/card/card.module.d.ts +10 -10
  10. package/card/card.wrapper.d.ts +58 -58
  11. package/card/index.d.ts +5 -5
  12. package/card/public_api.d.ts +2 -2
  13. package/cascader/cascader.module.d.ts +12 -12
  14. package/cascader/cascader.type.d.ts +152 -152
  15. package/cascader/index.d.ts +5 -5
  16. package/cascader/public_api.d.ts +2 -2
  17. package/checkbox/checkbox.module.d.ts +12 -12
  18. package/checkbox/checkbox.type.d.ts +35 -35
  19. package/checkbox/index.d.ts +5 -5
  20. package/checkbox/public_api.d.ts +2 -2
  21. package/datepicker/datepicker.module.d.ts +12 -12
  22. package/datepicker/datepicker.props.d.ts +144 -146
  23. package/datepicker/datepicker.type.d.ts +31 -31
  24. package/datepicker/index.d.ts +5 -5
  25. package/datepicker/public_api.d.ts +2 -2
  26. package/esm2020/autocomplete/autocomplete.props.mjs +2 -2
  27. package/esm2020/autocomplete/ngx-formly-zorro-antd-autocomplete.mjs +4 -4
  28. package/esm2020/autocomplete/public_api.mjs +2 -2
  29. package/esm2020/button/button.module.mjs +61 -61
  30. package/esm2020/button/button.type.mjs +110 -110
  31. package/esm2020/button/ngx-formly-zorro-antd-button.mjs +4 -4
  32. package/esm2020/button/public_api.mjs +3 -3
  33. package/esm2020/card/card.module.mjs +43 -43
  34. package/esm2020/card/card.wrapper.mjs +47 -47
  35. package/esm2020/card/ngx-formly-zorro-antd-card.mjs +4 -4
  36. package/esm2020/card/public_api.mjs +3 -3
  37. package/esm2020/cascader/cascader.module.mjs +51 -51
  38. package/esm2020/cascader/cascader.type.mjs +112 -112
  39. package/esm2020/cascader/ngx-formly-zorro-antd-cascader.mjs +4 -4
  40. package/esm2020/cascader/public_api.mjs +3 -3
  41. package/esm2020/checkbox/checkbox.module.mjs +59 -59
  42. package/esm2020/checkbox/checkbox.type.mjs +69 -69
  43. package/esm2020/checkbox/ngx-formly-zorro-antd-checkbox.mjs +4 -4
  44. package/esm2020/checkbox/public_api.mjs +3 -3
  45. package/esm2020/datepicker/datepicker.module.mjs +51 -51
  46. package/esm2020/datepicker/datepicker.props.mjs +2 -2
  47. package/esm2020/datepicker/datepicker.type.mjs +191 -189
  48. package/esm2020/datepicker/ngx-formly-zorro-antd-datepicker.mjs +4 -4
  49. package/esm2020/datepicker/public_api.mjs +3 -3
  50. package/esm2020/form-field/form-field.module.mjs +45 -45
  51. package/esm2020/form-field/form-field.props.mjs +2 -2
  52. package/esm2020/form-field/form-field.wrapper.mjs +127 -127
  53. package/esm2020/form-field/ngx-formly-zorro-antd-form-field.mjs +4 -4
  54. package/esm2020/form-field/public_api.mjs +2 -2
  55. package/esm2020/grid/grid.module.mjs +41 -41
  56. package/esm2020/grid/grid.props.mjs +2 -2
  57. package/esm2020/grid/grid.type.mjs +71 -71
  58. package/esm2020/grid/ngx-formly-zorro-antd-grid.mjs +4 -4
  59. package/esm2020/grid/public_api.mjs +3 -3
  60. package/esm2020/index.mjs +2 -2
  61. package/esm2020/input/input.module.mjs +89 -89
  62. package/esm2020/input/input.props.mjs +2 -2
  63. package/esm2020/input/input.type.mjs +309 -309
  64. package/esm2020/input/ngx-formly-zorro-antd-input.mjs +4 -4
  65. package/esm2020/input/public_api.mjs +3 -3
  66. package/esm2020/input-group/input-group.module.mjs +47 -47
  67. package/esm2020/input-group/input-group.props.mjs +2 -2
  68. package/esm2020/input-group/input-group.type.mjs +71 -71
  69. package/esm2020/input-group/ngx-formly-zorro-antd-input-group.mjs +4 -4
  70. package/esm2020/input-group/public_api.mjs +3 -3
  71. package/esm2020/input-number/input-number.module.mjs +59 -59
  72. package/esm2020/input-number/input-number.props.mjs +2 -2
  73. package/esm2020/input-number/input-number.type.mjs +128 -128
  74. package/esm2020/input-number/ngx-formly-zorro-antd-input-number.mjs +4 -4
  75. package/esm2020/input-number/public_api.mjs +3 -3
  76. package/esm2020/lib/ui-ng-zorro-antd.mjs +2 -2
  77. package/esm2020/lib/ui-ng-zorro-antd.module.mjs +97 -97
  78. package/esm2020/ngx-formly-zorro-antd.mjs +4 -4
  79. package/esm2020/radio/ngx-formly-zorro-antd-radio.mjs +4 -4
  80. package/esm2020/radio/public_api.mjs +3 -3
  81. package/esm2020/radio/radio.module.mjs +59 -59
  82. package/esm2020/radio/radio.type.mjs +96 -96
  83. package/esm2020/rate/ngx-formly-zorro-antd-rate.mjs +4 -4
  84. package/esm2020/rate/public_api.mjs +3 -3
  85. package/esm2020/rate/rate.module.mjs +51 -51
  86. package/esm2020/rate/rate.type.mjs +63 -63
  87. package/esm2020/select/ngx-formly-zorro-antd-select.mjs +4 -4
  88. package/esm2020/select/public_api.mjs +3 -3
  89. package/esm2020/select/select.module.mjs +57 -57
  90. package/esm2020/select/select.props.mjs +2 -2
  91. package/esm2020/select/select.type.mjs +163 -163
  92. package/esm2020/slider/ngx-formly-zorro-antd-slider.mjs +4 -4
  93. package/esm2020/slider/public_api.mjs +3 -3
  94. package/esm2020/slider/slider.module.mjs +51 -51
  95. package/esm2020/slider/slider.type.mjs +67 -67
  96. package/esm2020/switch/ngx-formly-zorro-antd-switch.mjs +4 -4
  97. package/esm2020/switch/public_api.mjs +3 -3
  98. package/esm2020/switch/switch.module.mjs +51 -51
  99. package/esm2020/switch/switch.type.mjs +53 -53
  100. package/esm2020/tabs/ngx-formly-zorro-antd-tabs.mjs +4 -4
  101. package/esm2020/tabs/public_api.mjs +3 -3
  102. package/esm2020/tabs/tabs.module.mjs +41 -41
  103. package/esm2020/tabs/tabs.props.mjs +2 -2
  104. package/esm2020/tabs/tabs.wrapper.mjs +111 -111
  105. package/esm2020/textarea/ngx-formly-zorro-antd-textarea.mjs +4 -4
  106. package/esm2020/textarea/public_api.mjs +3 -3
  107. package/esm2020/textarea/textarea.module.mjs +51 -51
  108. package/esm2020/textarea/textarea.type.mjs +88 -88
  109. package/esm2020/timepicker/ngx-formly-zorro-antd-timepicker.mjs +4 -4
  110. package/esm2020/timepicker/public_api.mjs +3 -3
  111. package/esm2020/timepicker/timepicker.module.mjs +51 -51
  112. package/esm2020/timepicker/timepicker.type.mjs +92 -92
  113. package/esm2020/transfer/ngx-formly-zorro-antd-transfer.mjs +4 -4
  114. package/esm2020/transfer/public_api.mjs +3 -3
  115. package/esm2020/transfer/transfer.component.mjs +128 -128
  116. package/esm2020/transfer/transfer.module.mjs +52 -52
  117. package/esm2020/transfer/transfer.type.mjs +87 -87
  118. package/esm2020/tree-select/ngx-formly-zorro-antd-tree-select.mjs +4 -4
  119. package/esm2020/tree-select/public_api.mjs +3 -3
  120. package/esm2020/tree-select/tree-select.module.mjs +51 -51
  121. package/esm2020/tree-select/tree-select.type.mjs +98 -98
  122. package/esm2020/upload/ngx-formly-zorro-antd-upload.mjs +4 -4
  123. package/esm2020/upload/public_api.mjs +3 -3
  124. package/esm2020/upload/upload.component.mjs +174 -174
  125. package/esm2020/upload/upload.module.mjs +60 -60
  126. package/esm2020/upload/upload.type.mjs +119 -119
  127. package/fesm2015/ngx-formly-zorro-antd-autocomplete.mjs +2 -2
  128. package/fesm2015/ngx-formly-zorro-antd-button.mjs +152 -152
  129. package/fesm2015/ngx-formly-zorro-antd-button.mjs.map +1 -1
  130. package/fesm2015/ngx-formly-zorro-antd-card.mjs +77 -77
  131. package/fesm2015/ngx-formly-zorro-antd-card.mjs.map +1 -1
  132. package/fesm2015/ngx-formly-zorro-antd-cascader.mjs +145 -145
  133. package/fesm2015/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  134. package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs +110 -110
  135. package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  136. package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs +224 -222
  137. package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  138. package/fesm2015/ngx-formly-zorro-antd-form-field.mjs +155 -155
  139. package/fesm2015/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  140. package/fesm2015/ngx-formly-zorro-antd-grid.mjs +97 -97
  141. package/fesm2015/ngx-formly-zorro-antd-grid.mjs.map +1 -1
  142. package/fesm2015/ngx-formly-zorro-antd-input-group.mjs +102 -102
  143. package/fesm2015/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  144. package/fesm2015/ngx-formly-zorro-antd-input-number.mjs +169 -169
  145. package/fesm2015/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  146. package/fesm2015/ngx-formly-zorro-antd-input.mjs +376 -376
  147. package/fesm2015/ngx-formly-zorro-antd-input.mjs.map +1 -1
  148. package/fesm2015/ngx-formly-zorro-antd-radio.mjs +134 -134
  149. package/fesm2015/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  150. package/fesm2015/ngx-formly-zorro-antd-rate.mjs +97 -97
  151. package/fesm2015/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  152. package/fesm2015/ngx-formly-zorro-antd-select.mjs +199 -199
  153. package/fesm2015/ngx-formly-zorro-antd-select.mjs.map +1 -1
  154. package/fesm2015/ngx-formly-zorro-antd-slider.mjs +101 -101
  155. package/fesm2015/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  156. package/fesm2015/ngx-formly-zorro-antd-switch.mjs +87 -87
  157. package/fesm2015/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  158. package/fesm2015/ngx-formly-zorro-antd-tabs.mjs +137 -137
  159. package/fesm2015/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  160. package/fesm2015/ngx-formly-zorro-antd-textarea.mjs +121 -121
  161. package/fesm2015/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  162. package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs +125 -125
  163. package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  164. package/fesm2015/ngx-formly-zorro-antd-transfer.mjs +241 -241
  165. package/fesm2015/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  166. package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs +131 -131
  167. package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  168. package/fesm2015/ngx-formly-zorro-antd-upload.mjs +321 -321
  169. package/fesm2015/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  170. package/fesm2015/ngx-formly-zorro-antd.mjs +74 -74
  171. package/fesm2015/ngx-formly-zorro-antd.mjs.map +1 -1
  172. package/fesm2020/ngx-formly-zorro-antd-autocomplete.mjs +2 -2
  173. package/fesm2020/ngx-formly-zorro-antd-button.mjs +152 -152
  174. package/fesm2020/ngx-formly-zorro-antd-button.mjs.map +1 -1
  175. package/fesm2020/ngx-formly-zorro-antd-card.mjs +77 -77
  176. package/fesm2020/ngx-formly-zorro-antd-card.mjs.map +1 -1
  177. package/fesm2020/ngx-formly-zorro-antd-cascader.mjs +145 -145
  178. package/fesm2020/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  179. package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs +110 -110
  180. package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  181. package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs +224 -222
  182. package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  183. package/fesm2020/ngx-formly-zorro-antd-form-field.mjs +155 -155
  184. package/fesm2020/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  185. package/fesm2020/ngx-formly-zorro-antd-grid.mjs +97 -97
  186. package/fesm2020/ngx-formly-zorro-antd-grid.mjs.map +1 -1
  187. package/fesm2020/ngx-formly-zorro-antd-input-group.mjs +102 -102
  188. package/fesm2020/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  189. package/fesm2020/ngx-formly-zorro-antd-input-number.mjs +169 -169
  190. package/fesm2020/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  191. package/fesm2020/ngx-formly-zorro-antd-input.mjs +376 -376
  192. package/fesm2020/ngx-formly-zorro-antd-input.mjs.map +1 -1
  193. package/fesm2020/ngx-formly-zorro-antd-radio.mjs +134 -134
  194. package/fesm2020/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  195. package/fesm2020/ngx-formly-zorro-antd-rate.mjs +97 -97
  196. package/fesm2020/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  197. package/fesm2020/ngx-formly-zorro-antd-select.mjs +199 -199
  198. package/fesm2020/ngx-formly-zorro-antd-select.mjs.map +1 -1
  199. package/fesm2020/ngx-formly-zorro-antd-slider.mjs +101 -101
  200. package/fesm2020/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  201. package/fesm2020/ngx-formly-zorro-antd-switch.mjs +87 -87
  202. package/fesm2020/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  203. package/fesm2020/ngx-formly-zorro-antd-tabs.mjs +137 -137
  204. package/fesm2020/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  205. package/fesm2020/ngx-formly-zorro-antd-textarea.mjs +121 -121
  206. package/fesm2020/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  207. package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs +125 -125
  208. package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  209. package/fesm2020/ngx-formly-zorro-antd-transfer.mjs +241 -241
  210. package/fesm2020/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  211. package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs +131 -131
  212. package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  213. package/fesm2020/ngx-formly-zorro-antd-upload.mjs +320 -320
  214. package/fesm2020/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  215. package/fesm2020/ngx-formly-zorro-antd.mjs +74 -74
  216. package/fesm2020/ngx-formly-zorro-antd.mjs.map +1 -1
  217. package/form-field/form-field.module.d.ts +11 -11
  218. package/form-field/form-field.props.d.ts +105 -105
  219. package/form-field/form-field.wrapper.d.ts +9 -9
  220. package/form-field/index.d.ts +5 -5
  221. package/form-field/public_api.d.ts +3 -3
  222. package/grid/grid.module.d.ts +10 -10
  223. package/grid/grid.props.d.ts +44 -44
  224. package/grid/grid.type.d.ts +11 -11
  225. package/grid/index.d.ts +5 -5
  226. package/grid/public_api.d.ts +3 -3
  227. package/index.d.ts +1 -1
  228. package/input/index.d.ts +5 -5
  229. package/input/input.module.d.ts +14 -14
  230. package/input/input.props.d.ts +36 -33
  231. package/input/input.type.d.ts +26 -26
  232. package/input/public_api.d.ts +2 -2
  233. package/input-group/index.d.ts +5 -5
  234. package/input-group/input-group.module.d.ts +11 -11
  235. package/input-group/input-group.props.d.ts +56 -56
  236. package/input-group/input-group.type.d.ts +22 -22
  237. package/input-group/public_api.d.ts +3 -3
  238. package/input-number/index.d.ts +5 -5
  239. package/input-number/input-number.module.d.ts +12 -12
  240. package/input-number/input-number.props.d.ts +81 -78
  241. package/input-number/input-number.type.d.ts +24 -24
  242. package/input-number/public_api.d.ts +2 -2
  243. package/lib/ui-ng-zorro-antd.d.ts +1 -1
  244. package/lib/ui-ng-zorro-antd.module.d.ts +27 -27
  245. package/package.json +5 -1
  246. package/radio/index.d.ts +5 -5
  247. package/radio/public_api.d.ts +2 -2
  248. package/radio/radio.module.d.ts +14 -14
  249. package/radio/radio.type.d.ts +38 -38
  250. package/rate/index.d.ts +5 -5
  251. package/rate/public_api.d.ts +2 -2
  252. package/rate/rate.module.d.ts +12 -12
  253. package/rate/rate.type.d.ts +57 -57
  254. package/select/index.d.ts +5 -5
  255. package/select/public_api.d.ts +2 -2
  256. package/select/select.module.d.ts +13 -13
  257. package/select/select.props.d.ts +162 -162
  258. package/select/select.type.d.ts +35 -35
  259. package/slider/index.d.ts +5 -5
  260. package/slider/public_api.d.ts +2 -2
  261. package/slider/slider.module.d.ts +12 -12
  262. package/slider/slider.type.d.ts +76 -76
  263. package/switch/index.d.ts +5 -5
  264. package/switch/public_api.d.ts +2 -2
  265. package/switch/switch.module.d.ts +12 -12
  266. package/switch/switch.type.d.ts +44 -44
  267. package/tabs/index.d.ts +5 -5
  268. package/tabs/public_api.d.ts +2 -2
  269. package/tabs/tabs.module.d.ts +10 -10
  270. package/tabs/tabs.props.d.ts +126 -126
  271. package/tabs/tabs.wrapper.d.ts +28 -28
  272. package/textarea/index.d.ts +5 -5
  273. package/textarea/public_api.d.ts +2 -2
  274. package/textarea/textarea.module.d.ts +12 -12
  275. package/textarea/textarea.type.d.ts +38 -38
  276. package/timepicker/index.d.ts +5 -5
  277. package/timepicker/public_api.d.ts +2 -2
  278. package/timepicker/timepicker.module.d.ts +12 -12
  279. package/timepicker/timepicker.type.d.ts +131 -131
  280. package/transfer/index.d.ts +5 -5
  281. package/transfer/public_api.d.ts +2 -2
  282. package/transfer/transfer.component.d.ts +26 -26
  283. package/transfer/transfer.module.d.ts +13 -13
  284. package/transfer/transfer.type.d.ts +118 -118
  285. package/tree-select/index.d.ts +5 -5
  286. package/tree-select/public_api.d.ts +2 -2
  287. package/tree-select/tree-select.module.d.ts +12 -12
  288. package/tree-select/tree-select.type.d.ts +158 -158
  289. package/upload/index.d.ts +5 -5
  290. package/upload/public_api.d.ts +2 -2
  291. package/upload/upload.component.d.ts +27 -27
  292. package/upload/upload.module.d.ts +15 -15
  293. package/upload/upload.type.d.ts +173 -173
@@ -1,162 +1,162 @@
1
- import { TemplateRef } from '@angular/core';
2
- import type { FormlyFieldConfig } from '@ngx-formly/core';
3
- import type { FormlyFieldSelectProps } from '@ngx-formly/core/select';
4
- import { NzOptionComponent } from 'ng-zorro-antd/select';
5
- import type { NzSelectSizeType, NzSelectModeType, NzSelectItemInterface } from 'ng-zorro-antd/select';
6
- import type { NzStatus, NzSafeAny } from 'ng-zorro-antd/core/types';
7
- export interface SelectProps extends FormlyFieldSelectProps {
8
- /**
9
- * 与 SelectControlValueAccessor 相同
10
- * @default
11
- * (o1: any, o2: any) => o1===o2
12
- */
13
- compareWith?: (o1: NzSafeAny, o2: NzSafeAny) => boolean;
14
- /**
15
- * 是否在选中项后清空搜索框,只在 mode 为 multiple 或 tags 时有效。
16
- * @default true
17
- */
18
- autoClearSearchValue?: boolean;
19
- /**
20
- * 支持清除
21
- * @default false
22
- */
23
- allowClear?: boolean;
24
- /**
25
- * 浮层是否应带有背景板
26
- * @default false
27
- */
28
- backdrop?: boolean;
29
- /**
30
- * 是否无边框
31
- * @default false
32
- */
33
- borderless?: boolean;
34
- /**
35
- * 下拉菜单是否打开,可双向绑定
36
- * @default false
37
- */
38
- open?: boolean;
39
- /**
40
- * 下拉菜单的 className 属性
41
- */
42
- dropdownClassName?: string;
43
- /**
44
- * 下拉菜单和选择器同宽
45
- * @default true
46
- */
47
- dropdownMatchSelectWidth?: boolean;
48
- /**
49
- * 下拉菜单的 style 属性
50
- *
51
- */
52
- dropdownStyle?: {
53
- [key: string]: string;
54
- } | null;
55
- /**
56
- * 自定义选择框的Template内容
57
- */
58
- customTemplate?: TemplateRef<{
59
- $implicit: NzSelectItemInterface;
60
- }> | null;
61
- /**
62
- * 是否使用服务端搜索,当为 true 时,将不再在前端对 nz-option 进行过滤
63
- * @default false
64
- */
65
- serverSearch?: boolean;
66
- /**
67
- * 是否根据输入项进行筛选。当其为一个函数时,会接收 inputValueoption 两个参数,当 option 符合筛选条件时,应返回 true,反之则返回 false。
68
- *
69
- */
70
- filterOption?: (input?: string, option?: NzOptionComponent) => boolean;
71
- /**
72
- * 最多选中多少个标签
73
- * @default Infinity
74
- */
75
- maxMultipleCount?: number;
76
- /**
77
- * 设置 nz-select 的模式
78
- * @default default
79
- */
80
- mode?: NzSelectModeType;
81
- /**
82
- * 当下拉列表为空时显示的内容
83
- */
84
- notFoundContent?: string | TemplateRef<void>;
85
- /**
86
- * 是否显示下拉小箭头
87
- * @default 单选为 true,多选为 false
88
- */
89
- showArrow?: boolean;
90
- /**
91
- * 使单选模式可搜索
92
- * @default false
93
- */
94
- showSearch?: boolean;
95
- /**
96
- * 选择框大小
97
- * @default default
98
- */
99
- size?: NzSelectSizeType;
100
- /**
101
- * 设置校验状态
102
- */
103
- status?: NzStatus;
104
- /**
105
- * 自定义的选择框后缀图标
106
- */
107
- suffixIcon?: TemplateRef<NzSafeAny> | string;
108
- /**
109
- * 自定义的多选框清除图标
110
- */
111
- removeIcon?: TemplateRef<NzSafeAny>;
112
- /**
113
- * 自定义的多选框清空图标
114
- */
115
- clearIcon?: TemplateRef<NzSafeAny>;
116
- /**
117
- * 自定义当前选中的条目图标
118
- */
119
- menuItemSelectedIcon?: TemplateRef<NzSafeAny>;
120
- /**
121
- * 在 tags 和 multiple 模式下自动分词的分隔符
122
- * @default []
123
- */
124
- tokenSeparators?: string[];
125
- /**
126
- * 加载中状态
127
- * @default false
128
- */
129
- loading?: boolean;
130
- /**
131
- * 最多显示多少个 tag
132
- */
133
- maxTagCount?: number;
134
- /**
135
- * 隐藏 tag 时显示的内容
136
- */
137
- maxTagPlaceholder?: TemplateRef<{
138
- $implicit: NzSafeAny[];
139
- }> | null;
140
- /**
141
- * 下拉菜单中每个 Option 的高度
142
- * @default 32
143
- */
144
- optionHeightPx?: number;
145
- /**
146
- * 下拉菜单中最多展示的 Option 个数,超出部分滚动
147
- * @default 8
148
- */
149
- optionOverflowSize?: number;
150
- /**
151
- * 下拉菜单打开状态变化回调
152
- */
153
- openChange?: (field: FormlyFieldConfig, vent: boolean) => void;
154
- /**
155
- * 下拉列表滚动到底部的回调
156
- */
157
- scrollToBottom?: (field: FormlyFieldConfig, event: NzSafeAny) => void;
158
- /**
159
- * 文本框值变化时回调
160
- */
161
- onSearch?: (field: FormlyFieldConfig, event: string) => void;
162
- }
1
+ import { TemplateRef } from '@angular/core';
2
+ import type { FormlyFieldConfig } from '@ngx-formly/core';
3
+ import type { FormlyFieldSelectProps } from '@ngx-formly/core/select';
4
+ import { NzOptionComponent } from 'ng-zorro-antd/select';
5
+ import type { NzSelectSizeType, NzSelectModeType, NzSelectItemInterface } from 'ng-zorro-antd/select';
6
+ import type { NzStatus, NzSafeAny } from 'ng-zorro-antd/core/types';
7
+ export interface SelectProps extends FormlyFieldSelectProps {
8
+ /**
9
+ * 与 SelectControlValueAccessor 相同
10
+ * @default
11
+ * (o1: any, o2: any) => o1===o2
12
+ */
13
+ compareWith?: (o1: NzSafeAny, o2: NzSafeAny) => boolean;
14
+ /**
15
+ * 是否在选中项后清空搜索框,只在 mode 为 multiple 或 tags 时有效。
16
+ * @default true
17
+ */
18
+ autoClearSearchValue?: boolean;
19
+ /**
20
+ * 支持清除
21
+ * @default false
22
+ */
23
+ allowClear?: boolean;
24
+ /**
25
+ * 浮层是否应带有背景板
26
+ * @default false
27
+ */
28
+ backdrop?: boolean;
29
+ /**
30
+ * 是否无边框
31
+ * @default false
32
+ */
33
+ borderless?: boolean;
34
+ /**
35
+ * 下拉菜单是否打开,可双向绑定
36
+ * @default false
37
+ */
38
+ open?: boolean;
39
+ /**
40
+ * 下拉菜单的 className 属性
41
+ */
42
+ dropdownClassName?: string;
43
+ /**
44
+ * 下拉菜单和选择器同宽
45
+ * @default true
46
+ */
47
+ dropdownMatchSelectWidth?: boolean;
48
+ /**
49
+ * 下拉菜单的 style 属性
50
+ *
51
+ */
52
+ dropdownStyle?: {
53
+ [key: string]: string;
54
+ } | null;
55
+ /**
56
+ * 自定义选择框的Template内容
57
+ */
58
+ customTemplate?: TemplateRef<{
59
+ $implicit: NzSelectItemInterface;
60
+ }> | null;
61
+ /**
62
+ * 是否使用服务端搜索,当为 true 时,将不再在前端对 nz-option 进行过滤
63
+ * @default false
64
+ */
65
+ serverSearch?: boolean;
66
+ /**
67
+ * 是否根据输入项进行筛选。当其为一个函数时,会接收 inputValueoption 两个参数,当 option 符合筛选条件时,应返回 true,反之则返回 false。
68
+ *
69
+ */
70
+ filterOption?: (input?: string, option?: NzOptionComponent) => boolean;
71
+ /**
72
+ * 最多选中多少个标签
73
+ * @default Infinity
74
+ */
75
+ maxMultipleCount?: number;
76
+ /**
77
+ * 设置 nz-select 的模式
78
+ * @default default
79
+ */
80
+ mode?: NzSelectModeType;
81
+ /**
82
+ * 当下拉列表为空时显示的内容
83
+ */
84
+ notFoundContent?: string | TemplateRef<void>;
85
+ /**
86
+ * 是否显示下拉小箭头
87
+ * @default 单选为 true,多选为 false
88
+ */
89
+ showArrow?: boolean;
90
+ /**
91
+ * 使单选模式可搜索
92
+ * @default false
93
+ */
94
+ showSearch?: boolean;
95
+ /**
96
+ * 选择框大小
97
+ * @default default
98
+ */
99
+ size?: NzSelectSizeType;
100
+ /**
101
+ * 设置校验状态
102
+ */
103
+ status?: NzStatus;
104
+ /**
105
+ * 自定义的选择框后缀图标
106
+ */
107
+ suffixIcon?: TemplateRef<NzSafeAny> | string;
108
+ /**
109
+ * 自定义的多选框清除图标
110
+ */
111
+ removeIcon?: TemplateRef<NzSafeAny>;
112
+ /**
113
+ * 自定义的多选框清空图标
114
+ */
115
+ clearIcon?: TemplateRef<NzSafeAny>;
116
+ /**
117
+ * 自定义当前选中的条目图标
118
+ */
119
+ menuItemSelectedIcon?: TemplateRef<NzSafeAny>;
120
+ /**
121
+ * 在 tags 和 multiple 模式下自动分词的分隔符
122
+ * @default []
123
+ */
124
+ tokenSeparators?: string[];
125
+ /**
126
+ * 加载中状态
127
+ * @default false
128
+ */
129
+ loading?: boolean;
130
+ /**
131
+ * 最多显示多少个 tag
132
+ */
133
+ maxTagCount?: number;
134
+ /**
135
+ * 隐藏 tag 时显示的内容
136
+ */
137
+ maxTagPlaceholder?: TemplateRef<{
138
+ $implicit: NzSafeAny[];
139
+ }> | null;
140
+ /**
141
+ * 下拉菜单中每个 Option 的高度
142
+ * @default 32
143
+ */
144
+ optionHeightPx?: number;
145
+ /**
146
+ * 下拉菜单中最多展示的 Option 个数,超出部分滚动
147
+ * @default 8
148
+ */
149
+ optionOverflowSize?: number;
150
+ /**
151
+ * 下拉菜单打开状态变化回调
152
+ */
153
+ openChange?: (field: FormlyFieldConfig, vent: boolean) => void;
154
+ /**
155
+ * 下拉列表滚动到底部的回调
156
+ */
157
+ scrollToBottom?: (field: FormlyFieldConfig, event: NzSafeAny) => void;
158
+ /**
159
+ * 文本框值变化时回调
160
+ */
161
+ onSearch?: (field: FormlyFieldConfig, event: string) => void;
162
+ }
@@ -1,35 +1,35 @@
1
- import { Type, OnInit } from '@angular/core';
2
- import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
3
- import { NzSelectComponent } from 'ng-zorro-antd/select';
4
- import type { NzSafeAny } from 'ng-zorro-antd/core/types';
5
- import type { SelectProps } from './select.props';
6
- import * as i0 from "@angular/core";
7
- export interface FormlySelectFieldConfig extends FormlyFieldConfig<SelectProps> {
8
- type: 'select' | 'enum' | Type<FormlyFieldSelect>;
9
- }
10
- export declare class FormlyFieldSelect extends FieldType<FieldTypeConfig> implements OnInit {
11
- defaultOptions: {
12
- props: {
13
- compareWith: (o1: NzSafeAny, o2: NzSafeAny) => boolean;
14
- autoClearSearchValue: boolean;
15
- allowClear: boolean;
16
- backdrop: boolean;
17
- open: boolean;
18
- dropdownMatchSelectWidth: boolean;
19
- serverSearch: boolean;
20
- maxMultipleCount: number;
21
- mode: "default";
22
- showSearch: boolean;
23
- size: "default";
24
- status: "";
25
- tokenSeparators: never[];
26
- loading: boolean;
27
- optionHeightPx: number;
28
- optionOverflowSize: number;
29
- };
30
- };
31
- select: NzSelectComponent;
32
- ngOnInit(): void;
33
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldSelect, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldSelect, "formly-field-select", never, {}, {}, never, never, false>;
35
- }
1
+ import { Type, OnInit } from '@angular/core';
2
+ import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
3
+ import { NzSelectComponent } from 'ng-zorro-antd/select';
4
+ import type { NzSafeAny } from 'ng-zorro-antd/core/types';
5
+ import type { SelectProps } from './select.props';
6
+ import * as i0 from "@angular/core";
7
+ export interface FormlySelectFieldConfig extends FormlyFieldConfig<SelectProps> {
8
+ type: 'select' | 'enum' | Type<FormlyFieldSelect>;
9
+ }
10
+ export declare class FormlyFieldSelect extends FieldType<FieldTypeConfig> implements OnInit {
11
+ defaultOptions: {
12
+ props: {
13
+ compareWith: (o1: NzSafeAny, o2: NzSafeAny) => boolean;
14
+ autoClearSearchValue: boolean;
15
+ allowClear: boolean;
16
+ backdrop: boolean;
17
+ open: boolean;
18
+ dropdownMatchSelectWidth: boolean;
19
+ serverSearch: boolean;
20
+ maxMultipleCount: number;
21
+ mode: "default";
22
+ showSearch: boolean;
23
+ size: "default";
24
+ status: "";
25
+ tokenSeparators: never[];
26
+ loading: boolean;
27
+ optionHeightPx: number;
28
+ optionOverflowSize: number;
29
+ };
30
+ };
31
+ select: NzSelectComponent;
32
+ ngOnInit(): void;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldSelect, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldSelect, "formly-field-select", never, {}, {}, never, never, false>;
35
+ }
package/slider/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="ngx-formly-zorro-antd/slider" />
5
- export * from './public_api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="ngx-formly-zorro-antd/slider" />
5
+ export * from './public_api';
@@ -1,2 +1,2 @@
1
- export { FormlyNzSliderModule } from './slider.module';
2
- export { FormlyFieldSlider, FormlySlideFieldConfig } from './slider.type';
1
+ export { FormlyNzSliderModule } from './slider.module';
2
+ export { FormlyFieldSlider, FormlySlideFieldConfig } from './slider.type';
@@ -1,12 +1,12 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./slider.type";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/forms";
5
- import * as i4 from "ngx-formly-zorro-antd/form-field";
6
- import * as i5 from "ng-zorro-antd/slider";
7
- import * as i6 from "@ngx-formly/core";
8
- export declare class FormlyNzSliderModule {
9
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzSliderModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzSliderModule, [typeof i1.FormlyFieldSlider], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FormlyNzFormFieldModule, typeof i5.NzSliderModule, typeof i6.FormlyModule], never>;
11
- static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzSliderModule>;
12
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./slider.type";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/forms";
5
+ import * as i4 from "ngx-formly-zorro-antd/form-field";
6
+ import * as i5 from "ng-zorro-antd/slider";
7
+ import * as i6 from "@ngx-formly/core";
8
+ export declare class FormlyNzSliderModule {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzSliderModule, never>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzSliderModule, [typeof i1.FormlyFieldSlider], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FormlyNzFormFieldModule, typeof i5.NzSliderModule, typeof i6.FormlyModule], never>;
11
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzSliderModule>;
12
+ }
@@ -1,76 +1,76 @@
1
- import { Type } from '@angular/core';
2
- import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
3
- import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
4
- import type { NzSliderShowTooltip } from 'ng-zorro-antd/slider';
5
- import * as i0 from "@angular/core";
6
- interface SlideProps extends FormlyFieldProps {
7
- /**
8
- * 是否只能拖拽到刻度上
9
- * @default false
10
- */
11
- dots?: boolean;
12
- /**
13
- * marks 不为空对象时有效,值为 true 时表示值为包含关系,false 表示并列
14
- * @default true
15
- */
16
- included?: boolean;
17
- /**
18
- * 刻度标记,key 的类型必须为 number 且取值在闭区间 [min, max] 内,每个标签可以单独设置样式
19
- * @default
20
- * { number: string/HTML } or { number: { style: object, label: string/HTML } }
21
- */
22
- marks?: object;
23
- /**
24
- * 双滑块模式
25
- * @default false
26
- */
27
- range?: boolean;
28
- /**
29
- * Slider 会把当前值传给 nzTipFormatter,并在 Tooltip 中显示 nzTipFormatter 的返回值,若为 null,则隐藏 Tooltip。
30
- */
31
- tipFormatter?: (value: number) => string;
32
- /**
33
- * 值为 true 时,Slider 为垂直方向
34
- * @default false
35
- */
36
- vertical?: boolean;
37
- /**
38
- * 反向坐标轴
39
- * @default false
40
- */
41
- reverse?: boolean;
42
- /**
43
- * 值为 always 时总是显示,值为 never 时在任何情况下都不显示
44
- * @default default
45
- */
46
- tooltipVisible?: NzSliderShowTooltip;
47
- /**
48
- * 设置 Tooltip 的默认位置。
49
- */
50
- tooltipPlacement?: string;
51
- /**
52
- * 与 onmouseup 触发时机一致,把当前值作为参数传入。
53
- */
54
- afterChange?: (field: FormlyFieldConfig, value: number[] | number) => void;
55
- }
56
- export interface FormlySlideFieldConfig extends FormlyFieldConfig<SlideProps> {
57
- type: 'slider' | Type<FormlyFieldSlider>;
58
- }
59
- export declare class FormlyFieldSlider extends FieldType<FieldTypeConfig<SlideProps>> {
60
- defaultOptions: {
61
- props: {
62
- max: number;
63
- min: number;
64
- step: number;
65
- dots: boolean;
66
- included: boolean;
67
- range: boolean;
68
- vertical: boolean;
69
- reverse: boolean;
70
- tooltipVisible: "default";
71
- };
72
- };
73
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldSlider, never>;
74
- static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldSlider, "formly-field-slider", never, {}, {}, never, never, false>;
75
- }
76
- export {};
1
+ import { Type } from '@angular/core';
2
+ import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
3
+ import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
4
+ import type { NzSliderShowTooltip } from 'ng-zorro-antd/slider';
5
+ import * as i0 from "@angular/core";
6
+ interface SlideProps extends FormlyFieldProps {
7
+ /**
8
+ * 是否只能拖拽到刻度上
9
+ * @default false
10
+ */
11
+ dots?: boolean;
12
+ /**
13
+ * marks 不为空对象时有效,值为 true 时表示值为包含关系,false 表示并列
14
+ * @default true
15
+ */
16
+ included?: boolean;
17
+ /**
18
+ * 刻度标记,key 的类型必须为 number 且取值在闭区间 [min, max] 内,每个标签可以单独设置样式
19
+ * @default
20
+ * { number: string/HTML } or { number: { style: object, label: string/HTML } }
21
+ */
22
+ marks?: object;
23
+ /**
24
+ * 双滑块模式
25
+ * @default false
26
+ */
27
+ range?: boolean;
28
+ /**
29
+ * Slider 会把当前值传给 nzTipFormatter,并在 Tooltip 中显示 nzTipFormatter 的返回值,若为 null,则隐藏 Tooltip。
30
+ */
31
+ tipFormatter?: (value: number) => string;
32
+ /**
33
+ * 值为 true 时,Slider 为垂直方向
34
+ * @default false
35
+ */
36
+ vertical?: boolean;
37
+ /**
38
+ * 反向坐标轴
39
+ * @default false
40
+ */
41
+ reverse?: boolean;
42
+ /**
43
+ * 值为 always 时总是显示,值为 never 时在任何情况下都不显示
44
+ * @default default
45
+ */
46
+ tooltipVisible?: NzSliderShowTooltip;
47
+ /**
48
+ * 设置 Tooltip 的默认位置。
49
+ */
50
+ tooltipPlacement?: string;
51
+ /**
52
+ * 与 onmouseup 触发时机一致,把当前值作为参数传入。
53
+ */
54
+ afterChange?: (field: FormlyFieldConfig, value: number[] | number) => void;
55
+ }
56
+ export interface FormlySlideFieldConfig extends FormlyFieldConfig<SlideProps> {
57
+ type: 'slider' | Type<FormlyFieldSlider>;
58
+ }
59
+ export declare class FormlyFieldSlider extends FieldType<FieldTypeConfig<SlideProps>> {
60
+ defaultOptions: {
61
+ props: {
62
+ max: number;
63
+ min: number;
64
+ step: number;
65
+ dots: boolean;
66
+ included: boolean;
67
+ range: boolean;
68
+ vertical: boolean;
69
+ reverse: boolean;
70
+ tooltipVisible: "default";
71
+ };
72
+ };
73
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldSlider, never>;
74
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldSlider, "formly-field-slider", never, {}, {}, never, never, false>;
75
+ }
76
+ export {};
package/switch/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="ngx-formly-zorro-antd/switch" />
5
- export * from './public_api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="ngx-formly-zorro-antd/switch" />
5
+ export * from './public_api';
@@ -1,2 +1,2 @@
1
- export { FormlyNzSwitchModule } from './switch.module';
2
- export { FormlyFieldSwitch, FormlySwitchFieldConfig } from './switch.type';
1
+ export { FormlyNzSwitchModule } from './switch.module';
2
+ export { FormlyFieldSwitch, FormlySwitchFieldConfig } from './switch.type';
@@ -1,12 +1,12 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./switch.type";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/forms";
5
- import * as i4 from "ngx-formly-zorro-antd/form-field";
6
- import * as i5 from "ng-zorro-antd/switch";
7
- import * as i6 from "@ngx-formly/core";
8
- export declare class FormlyNzSwitchModule {
9
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzSwitchModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzSwitchModule, [typeof i1.FormlyFieldSwitch], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FormlyNzFormFieldModule, typeof i5.NzSwitchModule, typeof i6.FormlyModule], never>;
11
- static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzSwitchModule>;
12
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./switch.type";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/forms";
5
+ import * as i4 from "ngx-formly-zorro-antd/form-field";
6
+ import * as i5 from "ng-zorro-antd/switch";
7
+ import * as i6 from "@ngx-formly/core";
8
+ export declare class FormlyNzSwitchModule {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzSwitchModule, never>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzSwitchModule, [typeof i1.FormlyFieldSwitch], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FormlyNzFormFieldModule, typeof i5.NzSwitchModule, typeof i6.FormlyModule], never>;
11
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzSwitchModule>;
12
+ }