ngx-formly-zorro-antd 13.0.0 → 14.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (316) hide show
  1. package/README.md +1 -1
  2. package/autocomplete/autocomplete.props.d.ts +38 -38
  3. package/autocomplete/{ngx-formly-zorro-antd-autocomplete.d.ts → 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/{ngx-formly-zorro-antd-button.d.ts → 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/{ngx-formly-zorro-antd-card.d.ts → 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/{ngx-formly-zorro-antd-cascader.d.ts → 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/{ngx-formly-zorro-antd-checkbox.d.ts → 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/{ngx-formly-zorro-antd-datepicker.d.ts → 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 -63
  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 -45
  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 -53
  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 -61
  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 -53
  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 -47
  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 -43
  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 -91
  62. package/esm2020/input/input.props.mjs +2 -2
  63. package/esm2020/input/input.type.mjs +309 -263
  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 -49
  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 -61
  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 -99
  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 -61
  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 -53
  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 -59
  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 -53
  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 -53
  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 -43
  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 -53
  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 -53
  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 -54
  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 -53
  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 -62
  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 +156 -158
  129. package/fesm2015/ngx-formly-zorro-antd-button.mjs.map +1 -1
  130. package/fesm2015/ngx-formly-zorro-antd-card.mjs +77 -79
  131. package/fesm2015/ngx-formly-zorro-antd-card.mjs.map +1 -1
  132. package/fesm2015/ngx-formly-zorro-antd-cascader.mjs +148 -150
  133. package/fesm2015/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  134. package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs +113 -115
  135. package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  136. package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs +227 -227
  137. package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  138. package/fesm2015/ngx-formly-zorro-antd-form-field.mjs +159 -161
  139. package/fesm2015/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  140. package/fesm2015/ngx-formly-zorro-antd-grid.mjs +99 -101
  141. package/fesm2015/ngx-formly-zorro-antd-grid.mjs.map +1 -1
  142. package/fesm2015/ngx-formly-zorro-antd-input-group.mjs +105 -107
  143. package/fesm2015/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  144. package/fesm2015/ngx-formly-zorro-antd-input-number.mjs +172 -174
  145. package/fesm2015/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  146. package/fesm2015/ngx-formly-zorro-antd-input.mjs +382 -338
  147. package/fesm2015/ngx-formly-zorro-antd-input.mjs.map +1 -1
  148. package/fesm2015/ngx-formly-zorro-antd-radio.mjs +137 -139
  149. package/fesm2015/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  150. package/fesm2015/ngx-formly-zorro-antd-rate.mjs +99 -101
  151. package/fesm2015/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  152. package/fesm2015/ngx-formly-zorro-antd-select.mjs +202 -204
  153. package/fesm2015/ngx-formly-zorro-antd-select.mjs.map +1 -1
  154. package/fesm2015/ngx-formly-zorro-antd-slider.mjs +103 -105
  155. package/fesm2015/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  156. package/fesm2015/ngx-formly-zorro-antd-switch.mjs +89 -91
  157. package/fesm2015/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  158. package/fesm2015/ngx-formly-zorro-antd-tabs.mjs +140 -142
  159. package/fesm2015/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  160. package/fesm2015/ngx-formly-zorro-antd-textarea.mjs +124 -126
  161. package/fesm2015/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  162. package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs +128 -130
  163. package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  164. package/fesm2015/ngx-formly-zorro-antd-transfer.mjs +243 -245
  165. package/fesm2015/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  166. package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs +134 -136
  167. package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  168. package/fesm2015/ngx-formly-zorro-antd-upload.mjs +328 -330
  169. package/fesm2015/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  170. package/fesm2015/ngx-formly-zorro-antd.mjs +74 -76
  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 +156 -158
  174. package/fesm2020/ngx-formly-zorro-antd-button.mjs.map +1 -1
  175. package/fesm2020/ngx-formly-zorro-antd-card.mjs +77 -79
  176. package/fesm2020/ngx-formly-zorro-antd-card.mjs.map +1 -1
  177. package/fesm2020/ngx-formly-zorro-antd-cascader.mjs +148 -150
  178. package/fesm2020/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  179. package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs +113 -115
  180. package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  181. package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs +227 -227
  182. package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  183. package/fesm2020/ngx-formly-zorro-antd-form-field.mjs +159 -161
  184. package/fesm2020/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  185. package/fesm2020/ngx-formly-zorro-antd-grid.mjs +99 -101
  186. package/fesm2020/ngx-formly-zorro-antd-grid.mjs.map +1 -1
  187. package/fesm2020/ngx-formly-zorro-antd-input-group.mjs +105 -107
  188. package/fesm2020/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  189. package/fesm2020/ngx-formly-zorro-antd-input-number.mjs +172 -174
  190. package/fesm2020/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  191. package/fesm2020/ngx-formly-zorro-antd-input.mjs +382 -338
  192. package/fesm2020/ngx-formly-zorro-antd-input.mjs.map +1 -1
  193. package/fesm2020/ngx-formly-zorro-antd-radio.mjs +137 -139
  194. package/fesm2020/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  195. package/fesm2020/ngx-formly-zorro-antd-rate.mjs +99 -101
  196. package/fesm2020/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  197. package/fesm2020/ngx-formly-zorro-antd-select.mjs +202 -204
  198. package/fesm2020/ngx-formly-zorro-antd-select.mjs.map +1 -1
  199. package/fesm2020/ngx-formly-zorro-antd-slider.mjs +103 -105
  200. package/fesm2020/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  201. package/fesm2020/ngx-formly-zorro-antd-switch.mjs +89 -91
  202. package/fesm2020/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  203. package/fesm2020/ngx-formly-zorro-antd-tabs.mjs +140 -142
  204. package/fesm2020/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  205. package/fesm2020/ngx-formly-zorro-antd-textarea.mjs +124 -126
  206. package/fesm2020/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  207. package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs +128 -130
  208. package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  209. package/fesm2020/ngx-formly-zorro-antd-transfer.mjs +243 -245
  210. package/fesm2020/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  211. package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs +134 -136
  212. package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  213. package/fesm2020/ngx-formly-zorro-antd-upload.mjs +327 -329
  214. package/fesm2020/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  215. package/fesm2020/ngx-formly-zorro-antd.mjs +74 -76
  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/{ngx-formly-zorro-antd-form-field.d.ts → 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/{ngx-formly-zorro-antd-grid.d.ts → index.d.ts} +5 -5
  226. package/grid/public_api.d.ts +3 -3
  227. package/index.d.ts +1 -1
  228. package/input/{ngx-formly-zorro-antd-input.d.ts → 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/{ngx-formly-zorro-antd-input-group.d.ts → 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/{ngx-formly-zorro-antd-input-number.d.ts → 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 +34 -30
  246. package/radio/{ngx-formly-zorro-antd-radio.d.ts → 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/{ngx-formly-zorro-antd-rate.d.ts → 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/{ngx-formly-zorro-antd-select.d.ts → 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/{ngx-formly-zorro-antd-slider.d.ts → 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/{ngx-formly-zorro-antd-switch.d.ts → 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/{ngx-formly-zorro-antd-tabs.d.ts → 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/{ngx-formly-zorro-antd-textarea.d.ts → 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/{ngx-formly-zorro-antd-timepicker.d.ts → 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/{ngx-formly-zorro-antd-transfer.d.ts → 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/{ngx-formly-zorro-antd-tree-select.d.ts → 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/{ngx-formly-zorro-antd-upload.d.ts → 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
  294. package/autocomplete/package.json +0 -10
  295. package/button/package.json +0 -10
  296. package/card/package.json +0 -10
  297. package/cascader/package.json +0 -10
  298. package/checkbox/package.json +0 -10
  299. package/datepicker/package.json +0 -10
  300. package/form-field/package.json +0 -10
  301. package/grid/package.json +0 -10
  302. package/input/package.json +0 -10
  303. package/input-group/package.json +0 -10
  304. package/input-number/package.json +0 -10
  305. package/ngx-formly-zorro-antd.d.ts +0 -5
  306. package/radio/package.json +0 -10
  307. package/rate/package.json +0 -10
  308. package/select/package.json +0 -10
  309. package/slider/package.json +0 -10
  310. package/switch/package.json +0 -10
  311. package/tabs/package.json +0 -10
  312. package/textarea/package.json +0 -10
  313. package/timepicker/package.json +0 -10
  314. package/transfer/package.json +0 -10
  315. package/tree-select/package.json +0 -10
  316. package/upload/package.json +0 -10
@@ -1,349 +1,347 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Component, ViewEncapsulation, ChangeDetectionStrategy, ViewChild, Input, 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 i3$1 from '@ngx-formly/core';
5
+ import * as i2$1 from '@ngx-formly/core';
6
6
  import { FieldType, FormlyModule } from '@ngx-formly/core';
7
- import * as i2$1 from '@angular/forms';
7
+ import * as i1$1 from '@angular/forms';
8
8
  import { NG_VALUE_ACCESSOR, ReactiveFormsModule } from '@angular/forms';
9
9
  import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
10
- import * as i1 from 'ng-zorro-antd/upload';
10
+ import * as i2 from 'ng-zorro-antd/upload';
11
11
  import { NzUploadComponent, NzUploadModule } from 'ng-zorro-antd/upload';
12
- import * as i2 from 'ng-zorro-antd/button';
12
+ import * as i3 from 'ng-zorro-antd/button';
13
13
  import { NzButtonModule } from 'ng-zorro-antd/button';
14
14
  import * as i6 from 'ng-zorro-antd/icon';
15
15
  import { NzIconModule } from 'ng-zorro-antd/icon';
16
- import * as i4 from 'ng-zorro-antd/core/wave';
17
- import * as i5 from 'ng-zorro-antd/core/transition-patch';
16
+ import * as i4 from 'ng-zorro-antd/core/transition-patch';
17
+ import * as i5 from 'ng-zorro-antd/core/wave';
18
18
 
19
- /* eslint-disable @typescript-eslint/no-empty-function */
20
- class UploadComponent extends NzUploadComponent {
21
- constructor() {
22
- super(...arguments);
23
- /**
24
- * 样式名
25
- */
26
- this.className = '';
27
- this.onChange = () => { };
28
- this.onTouched = () => { };
29
- }
30
- writeValue() { }
31
- registerOnChange(fn) {
32
- this.onChange = fn;
33
- }
34
- registerOnTouched(fn) {
35
- this.onTouched = fn;
36
- }
37
- setDisabledState(isDisabled) {
38
- this.nzDisabled = isDisabled;
39
- }
40
- fileListChange(list) {
41
- this.nzFileListChange.emit(list);
42
- }
43
- change(value) {
44
- this.nzChange.emit(value);
45
- if (['removed', 'success'].includes(value.type ?? '')) {
46
- if (this.resultMap instanceof Function) {
47
- this.onChange(this.resultMap(value.fileList.filter(x => x.status === 'done')));
48
- }
49
- else {
50
- this.onChange(value.fileList.filter(x => x.status === 'done'));
51
- }
52
- }
53
- }
54
- }
55
- UploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UploadComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
56
- UploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: UploadComponent, selector: "formly-upload", inputs: { text: "text", className: "className", resultMap: "resultMap" }, providers: [
57
- {
58
- provide: NG_VALUE_ACCESSOR,
59
- useExisting: UploadComponent,
60
- multi: true
61
- }
62
- ], viewQueries: [{ propertyName: "transfer", first: true, predicate: ["upload"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
63
- <nz-upload
64
- [nzAccept]="nzAccept"
65
- [nzAction]="nzAction"
66
- [nzDirectory]="nzDirectory"
67
- [nzBeforeUpload]="nzBeforeUpload"
68
- [nzCustomRequest]="nzCustomRequest"
69
- [nzData]="nzData"
70
- [(nzFileList)]="nzFileList"
71
- [nzLimit]="nzLimit"
72
- [nzSize]="nzSize"
73
- [nzFileType]="nzFileType"
74
- [nzFilter]="nzFilter"
75
- [nzHeaders]="nzHeaders"
76
- [nzListType]="nzListType"
77
- [nzMultiple]="nzMultiple"
78
- [nzName]="nzName"
79
- [nzShowUploadList]="nzShowUploadList"
80
- [nzShowButton]="nzShowButton"
81
- [nzWithCredentials]="nzWithCredentials"
82
- [nzOpenFileDialogOnClick]="nzOpenFileDialogOnClick"
83
- [nzPreview]="nzPreview"
84
- [nzPreviewFile]="nzPreviewFile"
85
- [nzPreviewIsImage]="nzPreviewIsImage"
86
- [nzRemove]="nzRemove"
87
- [nzDownload]="nzDownload"
88
- [nzTransformFile]="nzTransformFile"
89
- [nzIconRender]="nzIconRender"
90
- [nzFileListRender]="nzFileListRender"
91
- [ngClass]="className"
92
- (nzChange)="change($event)"
93
- [nzType]="nzType"
94
- (nzFileListChange)="fileListChange($event)"
95
- >
96
- <ng-container *ngIf="text; else buttontext">
97
- <button nz-button type="button">
98
- <i nz-icon nzType="upload"></i>
99
- {{ text }}
100
- </button>
101
- </ng-container>
102
-
103
- <ng-template #buttontext>
104
- <button nz-button type="button">
105
- <i nz-icon nzType="upload"></i>
106
- </button>
107
- </ng-template>
108
- </nz-upload>
109
- `, isInline: true, components: [{ type: i1.NzUploadComponent, selector: "nz-upload", inputs: ["nzType", "nzLimit", "nzSize", "nzFileType", "nzAccept", "nzAction", "nzDirectory", "nzOpenFileDialogOnClick", "nzBeforeUpload", "nzCustomRequest", "nzData", "nzFilter", "nzFileList", "nzDisabled", "nzHeaders", "nzListType", "nzMultiple", "nzName", "nzShowUploadList", "nzShowButton", "nzWithCredentials", "nzRemove", "nzPreview", "nzPreviewFile", "nzPreviewIsImage", "nzTransformFile", "nzDownload", "nzIconRender", "nzFileListRender"], outputs: ["nzChange", "nzFileListChange"], exportAs: ["nzUpload"] }, { type: i2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { type: i5.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
110
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UploadComponent, decorators: [{
111
- type: Component,
112
- args: [{
113
- selector: 'formly-upload',
114
- template: `
115
- <nz-upload
116
- [nzAccept]="nzAccept"
117
- [nzAction]="nzAction"
118
- [nzDirectory]="nzDirectory"
119
- [nzBeforeUpload]="nzBeforeUpload"
120
- [nzCustomRequest]="nzCustomRequest"
121
- [nzData]="nzData"
122
- [(nzFileList)]="nzFileList"
123
- [nzLimit]="nzLimit"
124
- [nzSize]="nzSize"
125
- [nzFileType]="nzFileType"
126
- [nzFilter]="nzFilter"
127
- [nzHeaders]="nzHeaders"
128
- [nzListType]="nzListType"
129
- [nzMultiple]="nzMultiple"
130
- [nzName]="nzName"
131
- [nzShowUploadList]="nzShowUploadList"
132
- [nzShowButton]="nzShowButton"
133
- [nzWithCredentials]="nzWithCredentials"
134
- [nzOpenFileDialogOnClick]="nzOpenFileDialogOnClick"
135
- [nzPreview]="nzPreview"
136
- [nzPreviewFile]="nzPreviewFile"
137
- [nzPreviewIsImage]="nzPreviewIsImage"
138
- [nzRemove]="nzRemove"
139
- [nzDownload]="nzDownload"
140
- [nzTransformFile]="nzTransformFile"
141
- [nzIconRender]="nzIconRender"
142
- [nzFileListRender]="nzFileListRender"
143
- [ngClass]="className"
144
- (nzChange)="change($event)"
145
- [nzType]="nzType"
146
- (nzFileListChange)="fileListChange($event)"
147
- >
148
- <ng-container *ngIf="text; else buttontext">
149
- <button nz-button type="button">
150
- <i nz-icon nzType="upload"></i>
151
- {{ text }}
152
- </button>
153
- </ng-container>
154
-
155
- <ng-template #buttontext>
156
- <button nz-button type="button">
157
- <i nz-icon nzType="upload"></i>
158
- </button>
159
- </ng-template>
160
- </nz-upload>
161
- `,
162
- encapsulation: ViewEncapsulation.None,
163
- changeDetection: ChangeDetectionStrategy.OnPush,
164
- providers: [
165
- {
166
- provide: NG_VALUE_ACCESSOR,
167
- useExisting: UploadComponent,
168
- multi: true
169
- }
170
- ]
171
- }]
172
- }], propDecorators: { transfer: [{
173
- type: ViewChild,
174
- args: ['upload', { static: true }]
175
- }], text: [{
176
- type: Input
177
- }], className: [{
178
- type: Input
179
- }], resultMap: [{
180
- type: Input
19
+ /* eslint-disable @typescript-eslint/no-empty-function */
20
+ class UploadComponent extends NzUploadComponent {
21
+ constructor() {
22
+ super(...arguments);
23
+ /**
24
+ * 样式名
25
+ */
26
+ this.className = '';
27
+ this.onChange = () => { };
28
+ this.onTouched = () => { };
29
+ }
30
+ writeValue() { }
31
+ registerOnChange(fn) {
32
+ this.onChange = fn;
33
+ }
34
+ registerOnTouched(fn) {
35
+ this.onTouched = fn;
36
+ }
37
+ setDisabledState(isDisabled) {
38
+ this.nzDisabled = isDisabled;
39
+ }
40
+ fileListChange(list) {
41
+ this.nzFileListChange.emit(list);
42
+ }
43
+ change(value) {
44
+ this.nzChange.emit(value);
45
+ if (['removed', 'success'].includes(value.type ?? '')) {
46
+ if (this.resultMap instanceof Function) {
47
+ this.onChange(this.resultMap(value.fileList.filter(x => x.status === 'done')));
48
+ }
49
+ else {
50
+ this.onChange(value.fileList.filter(x => x.status === 'done'));
51
+ }
52
+ }
53
+ }
54
+ }
55
+ UploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: UploadComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
56
+ UploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: UploadComponent, selector: "formly-upload", inputs: { text: "text", className: "className", resultMap: "resultMap" }, providers: [
57
+ {
58
+ provide: NG_VALUE_ACCESSOR,
59
+ useExisting: UploadComponent,
60
+ multi: true
61
+ }
62
+ ], viewQueries: [{ propertyName: "transfer", first: true, predicate: ["upload"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
63
+ <nz-upload
64
+ [nzAccept]="nzAccept"
65
+ [nzAction]="nzAction"
66
+ [nzDirectory]="nzDirectory"
67
+ [nzBeforeUpload]="nzBeforeUpload"
68
+ [nzCustomRequest]="nzCustomRequest"
69
+ [nzData]="nzData"
70
+ [(nzFileList)]="nzFileList"
71
+ [nzLimit]="nzLimit"
72
+ [nzSize]="nzSize"
73
+ [nzFileType]="nzFileType"
74
+ [nzFilter]="nzFilter"
75
+ [nzHeaders]="nzHeaders"
76
+ [nzListType]="nzListType"
77
+ [nzMultiple]="nzMultiple"
78
+ [nzName]="nzName"
79
+ [nzShowUploadList]="nzShowUploadList"
80
+ [nzShowButton]="nzShowButton"
81
+ [nzWithCredentials]="nzWithCredentials"
82
+ [nzOpenFileDialogOnClick]="nzOpenFileDialogOnClick"
83
+ [nzPreview]="nzPreview"
84
+ [nzPreviewFile]="nzPreviewFile"
85
+ [nzPreviewIsImage]="nzPreviewIsImage"
86
+ [nzRemove]="nzRemove"
87
+ [nzDownload]="nzDownload"
88
+ [nzTransformFile]="nzTransformFile"
89
+ [nzIconRender]="nzIconRender"
90
+ [nzFileListRender]="nzFileListRender"
91
+ [ngClass]="className"
92
+ (nzChange)="change($event)"
93
+ [nzType]="nzType"
94
+ (nzFileListChange)="fileListChange($event)"
95
+ >
96
+ <ng-container *ngIf="text; else buttontext">
97
+ <button nz-button type="button">
98
+ <i nz-icon nzType="upload"></i>
99
+ {{ text }}
100
+ </button>
101
+ </ng-container>
102
+
103
+ <ng-template #buttontext>
104
+ <button nz-button type="button">
105
+ <i nz-icon nzType="upload"></i>
106
+ </button>
107
+ </ng-template>
108
+ </nz-upload>
109
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.NzUploadComponent, selector: "nz-upload", inputs: ["nzType", "nzLimit", "nzSize", "nzFileType", "nzAccept", "nzAction", "nzDirectory", "nzOpenFileDialogOnClick", "nzBeforeUpload", "nzCustomRequest", "nzData", "nzFilter", "nzFileList", "nzDisabled", "nzHeaders", "nzListType", "nzMultiple", "nzName", "nzShowUploadList", "nzShowButton", "nzWithCredentials", "nzRemove", "nzPreview", "nzPreviewFile", "nzPreviewIsImage", "nzTransformFile", "nzDownload", "nzIconRender", "nzFileListRender"], outputs: ["nzChange", "nzFileListChange"], exportAs: ["nzUpload"] }, { kind: "component", type: i3.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i4.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i5.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
110
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: UploadComponent, decorators: [{
111
+ type: Component,
112
+ args: [{
113
+ selector: 'formly-upload',
114
+ template: `
115
+ <nz-upload
116
+ [nzAccept]="nzAccept"
117
+ [nzAction]="nzAction"
118
+ [nzDirectory]="nzDirectory"
119
+ [nzBeforeUpload]="nzBeforeUpload"
120
+ [nzCustomRequest]="nzCustomRequest"
121
+ [nzData]="nzData"
122
+ [(nzFileList)]="nzFileList"
123
+ [nzLimit]="nzLimit"
124
+ [nzSize]="nzSize"
125
+ [nzFileType]="nzFileType"
126
+ [nzFilter]="nzFilter"
127
+ [nzHeaders]="nzHeaders"
128
+ [nzListType]="nzListType"
129
+ [nzMultiple]="nzMultiple"
130
+ [nzName]="nzName"
131
+ [nzShowUploadList]="nzShowUploadList"
132
+ [nzShowButton]="nzShowButton"
133
+ [nzWithCredentials]="nzWithCredentials"
134
+ [nzOpenFileDialogOnClick]="nzOpenFileDialogOnClick"
135
+ [nzPreview]="nzPreview"
136
+ [nzPreviewFile]="nzPreviewFile"
137
+ [nzPreviewIsImage]="nzPreviewIsImage"
138
+ [nzRemove]="nzRemove"
139
+ [nzDownload]="nzDownload"
140
+ [nzTransformFile]="nzTransformFile"
141
+ [nzIconRender]="nzIconRender"
142
+ [nzFileListRender]="nzFileListRender"
143
+ [ngClass]="className"
144
+ (nzChange)="change($event)"
145
+ [nzType]="nzType"
146
+ (nzFileListChange)="fileListChange($event)"
147
+ >
148
+ <ng-container *ngIf="text; else buttontext">
149
+ <button nz-button type="button">
150
+ <i nz-icon nzType="upload"></i>
151
+ {{ text }}
152
+ </button>
153
+ </ng-container>
154
+
155
+ <ng-template #buttontext>
156
+ <button nz-button type="button">
157
+ <i nz-icon nzType="upload"></i>
158
+ </button>
159
+ </ng-template>
160
+ </nz-upload>
161
+ `,
162
+ encapsulation: ViewEncapsulation.None,
163
+ changeDetection: ChangeDetectionStrategy.OnPush,
164
+ providers: [
165
+ {
166
+ provide: NG_VALUE_ACCESSOR,
167
+ useExisting: UploadComponent,
168
+ multi: true
169
+ }
170
+ ]
171
+ }]
172
+ }], propDecorators: { transfer: [{
173
+ type: ViewChild,
174
+ args: ['upload', { static: true }]
175
+ }], text: [{
176
+ type: Input
177
+ }], className: [{
178
+ type: Input
179
+ }], resultMap: [{
180
+ type: Input
181
181
  }] } });
182
182
 
183
- class FormlyFieldUpload extends FieldType {
184
- constructor() {
185
- super(...arguments);
186
- this.defaultOptions = {
187
- props: {
188
- listType: 'text',
189
- name: 'file',
190
- showUploadList: true,
191
- showButton: true,
192
- openFileDialogOnClick: true,
193
- limit: 0,
194
- size: 0,
195
- filter: [],
196
- text: ''
197
- }
198
- };
199
- }
200
- ngOnInit() {
201
- const type = this.props.type;
202
- if (type) {
203
- this.upload.nzType = type;
204
- }
205
- }
206
- }
207
- FormlyFieldUpload.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldUpload, deps: null, target: i0.ɵɵFactoryTarget.Component });
208
- FormlyFieldUpload.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyFieldUpload, selector: "formly-field-upload", viewQueries: [{ propertyName: "upload", first: true, predicate: ["upload"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `<formly-upload
209
- #upload
210
- [formControl]="formControl"
211
- [formlyAttributes]="field"
212
- [nzAccept]="props['accept']"
213
- [nzAction]="props['action']"
214
- [nzDirectory]="props['directory']!!"
215
- [nzBeforeUpload]="props['beforeUpload']"
216
- [nzCustomRequest]="props['customRequest']"
217
- [nzData]="props['data']"
218
- [(nzFileList)]="props['fileList']"
219
- [nzLimit]="props['limit']"
220
- [nzSize]="props['size']"
221
- [nzFileType]="props['fileType']"
222
- [nzFilter]="props['filter']!"
223
- [nzHeaders]="props['headers']"
224
- [nzListType]="props['listType']!"
225
- [nzMultiple]="props['multiple']!!"
226
- [nzName]="props['name']!"
227
- [nzShowUploadList]="props['showUploadList']"
228
- [nzShowButton]="props['showButton']!!"
229
- [nzWithCredentials]="props['withCredentials']!!"
230
- [nzOpenFileDialogOnClick]="props['openFileDialogOnClick']!!"
231
- [nzPreview]="props['preview']"
232
- [nzPreviewFile]="props['previewFile']"
233
- [nzPreviewIsImage]="props['previewIsImage']"
234
- [nzRemove]="props['remove']"
235
- (nzChange)="props['change'] && props['change']($event)"
236
- [nzDownload]="props['download']"
237
- [nzTransformFile]="props['transformFile']"
238
- [nzIconRender]="props['iconRender'] ?? null"
239
- [nzFileListRender]="props['fileListRender'] ?? null"
240
- [text]="props['text']"
241
- [className]="props['className']"
242
- (nzFileListChange)="props['fileListChange'] && props['fileListChange']($event)"
243
- [resultMap]="props['resultMap']"
244
- >
245
- </formly-upload>`, isInline: true, components: [{ type: UploadComponent, selector: "formly-upload", inputs: ["text", "className", "resultMap"] }], directives: [{ type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3$1.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
246
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldUpload, decorators: [{
247
- type: Component,
248
- args: [{
249
- selector: 'formly-field-upload',
250
- template: `<formly-upload
251
- #upload
252
- [formControl]="formControl"
253
- [formlyAttributes]="field"
254
- [nzAccept]="props['accept']"
255
- [nzAction]="props['action']"
256
- [nzDirectory]="props['directory']!!"
257
- [nzBeforeUpload]="props['beforeUpload']"
258
- [nzCustomRequest]="props['customRequest']"
259
- [nzData]="props['data']"
260
- [(nzFileList)]="props['fileList']"
261
- [nzLimit]="props['limit']"
262
- [nzSize]="props['size']"
263
- [nzFileType]="props['fileType']"
264
- [nzFilter]="props['filter']!"
265
- [nzHeaders]="props['headers']"
266
- [nzListType]="props['listType']!"
267
- [nzMultiple]="props['multiple']!!"
268
- [nzName]="props['name']!"
269
- [nzShowUploadList]="props['showUploadList']"
270
- [nzShowButton]="props['showButton']!!"
271
- [nzWithCredentials]="props['withCredentials']!!"
272
- [nzOpenFileDialogOnClick]="props['openFileDialogOnClick']!!"
273
- [nzPreview]="props['preview']"
274
- [nzPreviewFile]="props['previewFile']"
275
- [nzPreviewIsImage]="props['previewIsImage']"
276
- [nzRemove]="props['remove']"
277
- (nzChange)="props['change'] && props['change']($event)"
278
- [nzDownload]="props['download']"
279
- [nzTransformFile]="props['transformFile']"
280
- [nzIconRender]="props['iconRender'] ?? null"
281
- [nzFileListRender]="props['fileListRender'] ?? null"
282
- [text]="props['text']"
283
- [className]="props['className']"
284
- (nzFileListChange)="props['fileListChange'] && props['fileListChange']($event)"
285
- [resultMap]="props['resultMap']"
286
- >
287
- </formly-upload>`,
288
- changeDetection: ChangeDetectionStrategy.OnPush
289
- }]
290
- }], propDecorators: { upload: [{
291
- type: ViewChild,
292
- args: ['upload', { static: true }]
183
+ class FormlyFieldUpload extends FieldType {
184
+ constructor() {
185
+ super(...arguments);
186
+ this.defaultOptions = {
187
+ props: {
188
+ listType: 'text',
189
+ name: 'file',
190
+ showUploadList: true,
191
+ showButton: true,
192
+ openFileDialogOnClick: true,
193
+ limit: 0,
194
+ size: 0,
195
+ filter: [],
196
+ text: ''
197
+ }
198
+ };
199
+ }
200
+ ngOnInit() {
201
+ const type = this.props.type;
202
+ if (type) {
203
+ this.upload.nzType = type;
204
+ }
205
+ }
206
+ }
207
+ FormlyFieldUpload.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldUpload, deps: null, target: i0.ɵɵFactoryTarget.Component });
208
+ FormlyFieldUpload.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: FormlyFieldUpload, selector: "formly-field-upload", viewQueries: [{ propertyName: "upload", first: true, predicate: ["upload"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `<formly-upload
209
+ #upload
210
+ [formControl]="formControl"
211
+ [formlyAttributes]="field"
212
+ [nzAccept]="props['accept']"
213
+ [nzAction]="props['action']"
214
+ [nzDirectory]="props['directory']!!"
215
+ [nzBeforeUpload]="props['beforeUpload']"
216
+ [nzCustomRequest]="props['customRequest']"
217
+ [nzData]="props['data']"
218
+ [(nzFileList)]="props['fileList']"
219
+ [nzLimit]="props['limit']"
220
+ [nzSize]="props['size']"
221
+ [nzFileType]="props['fileType']"
222
+ [nzFilter]="props['filter']!"
223
+ [nzHeaders]="props['headers']"
224
+ [nzListType]="props['listType']!"
225
+ [nzMultiple]="props['multiple']!!"
226
+ [nzName]="props['name']!"
227
+ [nzShowUploadList]="props['showUploadList']"
228
+ [nzShowButton]="props['showButton']!!"
229
+ [nzWithCredentials]="props['withCredentials']!!"
230
+ [nzOpenFileDialogOnClick]="props['openFileDialogOnClick']!!"
231
+ [nzPreview]="props['preview']"
232
+ [nzPreviewFile]="props['previewFile']"
233
+ [nzPreviewIsImage]="props['previewIsImage']"
234
+ [nzRemove]="props['remove']"
235
+ (nzChange)="props['change'] && props['change']($event)"
236
+ [nzDownload]="props['download']"
237
+ [nzTransformFile]="props['transformFile']"
238
+ [nzIconRender]="props['iconRender'] ?? null"
239
+ [nzFileListRender]="props['fileListRender'] ?? null"
240
+ [text]="props['text']"
241
+ [className]="props['className']"
242
+ (nzFileListChange)="props['fileListChange'] && props['fileListChange']($event)"
243
+ [resultMap]="props['resultMap']"
244
+ >
245
+ </formly-upload>`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "component", type: UploadComponent, selector: "formly-upload", inputs: ["text", "className", "resultMap"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
246
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldUpload, decorators: [{
247
+ type: Component,
248
+ args: [{
249
+ selector: 'formly-field-upload',
250
+ template: `<formly-upload
251
+ #upload
252
+ [formControl]="formControl"
253
+ [formlyAttributes]="field"
254
+ [nzAccept]="props['accept']"
255
+ [nzAction]="props['action']"
256
+ [nzDirectory]="props['directory']!!"
257
+ [nzBeforeUpload]="props['beforeUpload']"
258
+ [nzCustomRequest]="props['customRequest']"
259
+ [nzData]="props['data']"
260
+ [(nzFileList)]="props['fileList']"
261
+ [nzLimit]="props['limit']"
262
+ [nzSize]="props['size']"
263
+ [nzFileType]="props['fileType']"
264
+ [nzFilter]="props['filter']!"
265
+ [nzHeaders]="props['headers']"
266
+ [nzListType]="props['listType']!"
267
+ [nzMultiple]="props['multiple']!!"
268
+ [nzName]="props['name']!"
269
+ [nzShowUploadList]="props['showUploadList']"
270
+ [nzShowButton]="props['showButton']!!"
271
+ [nzWithCredentials]="props['withCredentials']!!"
272
+ [nzOpenFileDialogOnClick]="props['openFileDialogOnClick']!!"
273
+ [nzPreview]="props['preview']"
274
+ [nzPreviewFile]="props['previewFile']"
275
+ [nzPreviewIsImage]="props['previewIsImage']"
276
+ [nzRemove]="props['remove']"
277
+ (nzChange)="props['change'] && props['change']($event)"
278
+ [nzDownload]="props['download']"
279
+ [nzTransformFile]="props['transformFile']"
280
+ [nzIconRender]="props['iconRender'] ?? null"
281
+ [nzFileListRender]="props['fileListRender'] ?? null"
282
+ [text]="props['text']"
283
+ [className]="props['className']"
284
+ (nzFileListChange)="props['fileListChange'] && props['fileListChange']($event)"
285
+ [resultMap]="props['resultMap']"
286
+ >
287
+ </formly-upload>`,
288
+ changeDetection: ChangeDetectionStrategy.OnPush
289
+ }]
290
+ }], propDecorators: { upload: [{
291
+ type: ViewChild,
292
+ args: ['upload', { static: true }]
293
293
  }] } });
294
294
 
295
- class FormlyNzUploadModule {
296
- }
297
- FormlyNzUploadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
298
- FormlyNzUploadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzUploadModule, declarations: [FormlyFieldUpload, UploadComponent], imports: [CommonModule,
299
- ReactiveFormsModule,
300
- FormlyNzFormFieldModule,
301
- NzUploadModule,
302
- NzButtonModule,
303
- NzIconModule, i3$1.FormlyModule] });
304
- FormlyNzUploadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzUploadModule, imports: [[
305
- CommonModule,
306
- ReactiveFormsModule,
307
- FormlyNzFormFieldModule,
308
- NzUploadModule,
309
- NzButtonModule,
310
- NzIconModule,
311
- FormlyModule.forChild({
312
- types: [
313
- {
314
- name: 'upload',
315
- component: FormlyFieldUpload,
316
- wrappers: ['form-field']
317
- }
318
- ]
319
- })
320
- ]] });
321
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzUploadModule, decorators: [{
322
- type: NgModule,
323
- args: [{
324
- declarations: [FormlyFieldUpload, UploadComponent],
325
- imports: [
326
- CommonModule,
327
- ReactiveFormsModule,
328
- FormlyNzFormFieldModule,
329
- NzUploadModule,
330
- NzButtonModule,
331
- NzIconModule,
332
- FormlyModule.forChild({
333
- types: [
334
- {
335
- name: 'upload',
336
- component: FormlyFieldUpload,
337
- wrappers: ['form-field']
338
- }
339
- ]
340
- })
341
- ]
342
- }]
295
+ class FormlyNzUploadModule {
296
+ }
297
+ FormlyNzUploadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
298
+ FormlyNzUploadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzUploadModule, declarations: [FormlyFieldUpload, UploadComponent], imports: [CommonModule,
299
+ ReactiveFormsModule,
300
+ FormlyNzFormFieldModule,
301
+ NzUploadModule,
302
+ NzButtonModule,
303
+ NzIconModule, i2$1.FormlyModule] });
304
+ FormlyNzUploadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzUploadModule, imports: [CommonModule,
305
+ ReactiveFormsModule,
306
+ FormlyNzFormFieldModule,
307
+ NzUploadModule,
308
+ NzButtonModule,
309
+ NzIconModule,
310
+ FormlyModule.forChild({
311
+ types: [
312
+ {
313
+ name: 'upload',
314
+ component: FormlyFieldUpload,
315
+ wrappers: ['form-field']
316
+ }
317
+ ]
318
+ })] });
319
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzUploadModule, decorators: [{
320
+ type: NgModule,
321
+ args: [{
322
+ declarations: [FormlyFieldUpload, UploadComponent],
323
+ imports: [
324
+ CommonModule,
325
+ ReactiveFormsModule,
326
+ FormlyNzFormFieldModule,
327
+ NzUploadModule,
328
+ NzButtonModule,
329
+ NzIconModule,
330
+ FormlyModule.forChild({
331
+ types: [
332
+ {
333
+ name: 'upload',
334
+ component: FormlyFieldUpload,
335
+ wrappers: ['form-field']
336
+ }
337
+ ]
338
+ })
339
+ ]
340
+ }]
343
341
  }] });
344
342
 
345
- /**
346
- * Generated bundle index. Do not edit.
343
+ /**
344
+ * Generated bundle index. Do not edit.
347
345
  */
348
346
 
349
347
  export { FormlyFieldUpload, FormlyNzUploadModule };