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 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-upload.mjs","sources":["../../../../packages/formlyantd/upload/src/upload.component.ts","../../../../packages/formlyantd/upload/src/upload.type.ts","../../../../packages/formlyantd/upload/src/upload.module.ts","../../../../packages/formlyantd/upload/src/ngx-formly-zorro-antd-upload.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-function */\r\nimport {\r\n ChangeDetectionStrategy,\r\n Component,\r\n Input,\r\n ViewChild,\r\n ViewEncapsulation\r\n} from '@angular/core';\r\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\r\nimport type { OnChangeType, OnTouchedType, NzSafeAny } from 'ng-zorro-antd/core/types';\r\nimport { NzUploadChangeParam, NzUploadComponent, NzUploadFile } from 'ng-zorro-antd/upload';\r\n\r\n@Component({\r\n selector: 'formly-upload',\r\n template: `\r\n <nz-upload\r\n [nzAccept]=\"nzAccept\"\r\n [nzAction]=\"nzAction\"\r\n [nzDirectory]=\"nzDirectory\"\r\n [nzBeforeUpload]=\"nzBeforeUpload\"\r\n [nzCustomRequest]=\"nzCustomRequest\"\r\n [nzData]=\"nzData\"\r\n [(nzFileList)]=\"nzFileList\"\r\n [nzLimit]=\"nzLimit\"\r\n [nzSize]=\"nzSize\"\r\n [nzFileType]=\"nzFileType\"\r\n [nzFilter]=\"nzFilter\"\r\n [nzHeaders]=\"nzHeaders\"\r\n [nzListType]=\"nzListType\"\r\n [nzMultiple]=\"nzMultiple\"\r\n [nzName]=\"nzName\"\r\n [nzShowUploadList]=\"nzShowUploadList\"\r\n [nzShowButton]=\"nzShowButton\"\r\n [nzWithCredentials]=\"nzWithCredentials\"\r\n [nzOpenFileDialogOnClick]=\"nzOpenFileDialogOnClick\"\r\n [nzPreview]=\"nzPreview\"\r\n [nzPreviewFile]=\"nzPreviewFile\"\r\n [nzPreviewIsImage]=\"nzPreviewIsImage\"\r\n [nzRemove]=\"nzRemove\"\r\n [nzDownload]=\"nzDownload\"\r\n [nzTransformFile]=\"nzTransformFile\"\r\n [nzIconRender]=\"nzIconRender\"\r\n [nzFileListRender]=\"nzFileListRender\"\r\n [ngClass]=\"className\"\r\n (nzChange)=\"change($event)\"\r\n [nzType]=\"nzType\"\r\n (nzFileListChange)=\"fileListChange($event)\"\r\n >\r\n <ng-container *ngIf=\"text; else buttontext\">\r\n <button nz-button type=\"button\">\r\n <i nz-icon nzType=\"upload\"></i>\r\n {{ text }}\r\n </button>\r\n </ng-container>\r\n\r\n <ng-template #buttontext>\r\n <button nz-button type=\"button\">\r\n <i nz-icon nzType=\"upload\"></i>\r\n </button>\r\n </ng-template>\r\n </nz-upload>\r\n `,\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n providers: [\r\n {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: UploadComponent,\r\n multi: true\r\n }\r\n ]\r\n})\r\nexport class UploadComponent extends NzUploadComponent implements ControlValueAccessor {\r\n @ViewChild('upload', { static: true }) transfer!: NzUploadComponent;\r\n\r\n /**\r\n * 按钮文本\r\n * @default 点击上传\r\n */\r\n @Input() text?: string;\r\n /**\r\n * 样式名\r\n */\r\n @Input() className = '';\r\n @Input() resultMap?: (items: NzUploadFile[]) => NzSafeAny[];\r\n\r\n onChange: OnChangeType = () => {};\r\n onTouched: OnTouchedType = () => {};\r\n writeValue(): void {}\r\n registerOnChange(fn: NzSafeAny): void {\r\n this.onChange = fn;\r\n }\r\n registerOnTouched(fn: NzSafeAny): void {\r\n this.onTouched = fn;\r\n }\r\n setDisabledState?(isDisabled: boolean): void {\r\n this.nzDisabled = isDisabled;\r\n }\r\n\r\n fileListChange(list: NzUploadFile[]) {\r\n this.nzFileListChange.emit(list);\r\n }\r\n\r\n change(value: NzUploadChangeParam) {\r\n this.nzChange.emit(value);\r\n if (['removed', 'success'].includes(value.type ?? '')) {\r\n if (this.resultMap instanceof Function) {\r\n this.onChange(this.resultMap(value.fileList.filter(x => x.status === 'done')));\r\n } else {\r\n this.onChange(value.fileList.filter(x => x.status === 'done'));\r\n }\r\n }\r\n }\r\n}\r\n","import {\r\n Component,\r\n ChangeDetectionStrategy,\r\n TemplateRef,\r\n Type,\r\n ViewChild,\r\n OnInit\r\n} from '@angular/core';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\nimport { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { Observable, Subscription } from 'rxjs';\r\nimport {\r\n NzUploadComponent,\r\n NzUploadType,\r\n NzUploadChangeParam,\r\n NzUploadFile,\r\n NzUploadTransformFileType,\r\n UploadFilter,\r\n NzIconRenderTemplate,\r\n NzUploadListType\r\n} from 'ng-zorro-antd/upload';\r\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\r\n\r\ninterface UploadProps extends FormlyFieldProps {\r\n /**\r\n * 接受上传的文件类型, 详见 input accept Attribute\r\n */\r\n accept?: string | string[];\r\n\r\n /**\r\n * 必选参数, 上传的地址\r\n */\r\n action?: string | ((file: NzUploadFile) => string | Observable<string>);\r\n\r\n /**\r\n * 支持上传文件夹(caniuse)\r\n * @default false\r\n */\r\n directory?: boolean;\r\n\r\n /**\r\n * 上传文件之前的钩子,参数为上传的文件,若返回 false 则停止上传。注意:IE9 不支持该方法;注意:务必使用 => 定义处理方法。\r\n */\r\n beforeUpload?: (file: NzUploadFile, fileList: NzUploadFile[]) => boolean | Observable<boolean>;\r\n\r\n /**\r\n * 通过覆盖默认的上传行为,可以自定义自己的上传实现;注意:务必使用 => 定义处理方法。\r\n */\r\n customRequest?: (item: NzSafeAny) => Subscription;\r\n\r\n /**\r\n * 上传所需参数或返回上传参数的方法;注意:务必使用 => 定义处理方法。\r\n */\r\n // eslint-disable-next-line @typescript-eslint/ban-types\r\n data?: Object | ((file: NzUploadFile) => Object | Observable<{}>);\r\n\r\n /**\r\n * 文件列表,双向绑定\r\n */\r\n fileList?: NzUploadFile[];\r\n\r\n /**\r\n * 限制单次最多上传数量,nzMultiple 打开时有效;0 表示不限\r\n * @default 0\r\n */\r\n limit?: number;\r\n\r\n /**\r\n * 限制文件大小,单位:KB;0 表示不限\r\n * @default 0\r\n */\r\n size?: number;\r\n\r\n /**\r\n * 限制文件类型,例如:image/png,image/jpeg,image/gif,image/bmp\r\n */\r\n fileType?: string;\r\n\r\n /**\r\n * 自定义过滤器\r\n */\r\n filter?: UploadFilter[];\r\n\r\n /**\r\n * 设置上传的请求头部,IE10 以上有效;注意:务必使用 => 定义处理方法。\r\n */\r\n // eslint-disable-next-line @typescript-eslint/ban-types\r\n headers?: Object | ((file: NzUploadFile) => Object | Observable<{}>);\r\n\r\n /**\r\n * 上传列表的内建样式,支持三种基本样式 text, picture 和 picture-card\r\n * @default text\r\n */\r\n listType?: NzUploadListType;\r\n\r\n /**\r\n * 是否支持多选文件,ie10+ 支持。开启后按住 ctrl 可选择多个文件。\r\n * @default false;\r\n */\r\n multiple?: boolean;\r\n\r\n /**\r\n * 发到后台的文件参数名\r\n * @default file\r\n */\r\n name?: string;\r\n\r\n /**\r\n * 是否展示 uploadList, 可设为一个对象,用于单独设定 showPreviewIcon,showRemoveIcon 和 showDownloadIcon\r\n * @default true\r\n */\r\n showUploadList?:\r\n | boolean\r\n | { showPreviewIcon?: boolean; showRemoveIcon?: boolean; showDownloadIcon?: boolean };\r\n\r\n /**\r\n * 是否展示上传按钮\r\n * @default true\r\n */\r\n showButton?: boolean;\r\n\r\n /**\r\n * 上传请求时是否携带 cookie\r\n * @default false\r\n */\r\n withCredentials?: boolean;\r\n\r\n /**\r\n * 点击打开文件对话框\r\n * @default true\r\n */\r\n openFileDialogOnClick?: boolean;\r\n\r\n /**\r\n * 点击文件链接或预览图标时的回调;注意:务必使用 => 定义处理方法。\r\n */\r\n preview?: (file: NzUploadFile) => void;\r\n\r\n /**\r\n * 自定义文件预览逻辑;注意:务必使用 => 定义处理方法。\r\n */\r\n previewFile?: (file: NzUploadFile) => Observable<string>;\r\n\r\n /**\r\n * 自定义预览文件是否有效图像,一般用于图像URL为非标准格式;注意:务必使用 => 定义处理方法。\r\n */\r\n previewIsImage?: (file: NzUploadFile) => boolean;\r\n\r\n /**\r\n * 点击移除文件时的回调,返回值为 false 时不移除。支持返回 Observable 对象;注意:务必使用 => 定义处理方法。\r\n */\r\n remove?: (file: NzUploadFile) => boolean | Observable<boolean>;\r\n\r\n /**\r\n * 上传文件改变时的状态\r\n */\r\n onChange?: (value: NzUploadChangeParam) => void;\r\n\r\n /**\r\n * 点击下载文件时的回调,如果没有指定,则默认跳转到文件 url 对应的标签页\r\n * @default 跳转新标签页\r\n */\r\n download?: (file: NzUploadFile) => void;\r\n\r\n /**\r\n * 在上传之前转换文件。支持返回一个 Observable 对象\r\n */\r\n transformFile?: (file: NzUploadFile) => NzUploadTransformFileType;\r\n\r\n /**\r\n * 自定义显示 icon\r\n */\r\n iconRender?: NzIconRenderTemplate | null;\r\n\r\n /**\r\n * 自定义显示整个列表\r\n */\r\n fileListRender?: TemplateRef<void> | null;\r\n\r\n /**\r\n * 按钮文本\r\n * @default 点击上传\r\n */\r\n text?: string;\r\n\r\n /**\r\n * 文件列表改变事件\r\n */\r\n fileListChange?: (list: NzUploadFile[]) => void;\r\n\r\n /**\r\n * 返回结果格式映射\r\n * @returns 默认返回 NzUploadFile[] 格式\r\n */\r\n resultMap?: (items: NzUploadFile[]) => NzSafeAny[];\r\n}\r\n\r\nexport interface FormlyUploadFieldConfig extends FormlyFieldConfig<UploadProps> {\r\n type: 'upload' | Type<FormlyFieldUpload>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-upload',\r\n template: `<formly-upload\r\n #upload\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzAccept]=\"props['accept']\"\r\n [nzAction]=\"props['action']\"\r\n [nzDirectory]=\"props['directory']!!\"\r\n [nzBeforeUpload]=\"props['beforeUpload']\"\r\n [nzCustomRequest]=\"props['customRequest']\"\r\n [nzData]=\"props['data']\"\r\n [(nzFileList)]=\"props['fileList']\"\r\n [nzLimit]=\"props['limit']\"\r\n [nzSize]=\"props['size']\"\r\n [nzFileType]=\"props['fileType']\"\r\n [nzFilter]=\"props['filter']!\"\r\n [nzHeaders]=\"props['headers']\"\r\n [nzListType]=\"props['listType']!\"\r\n [nzMultiple]=\"props['multiple']!!\"\r\n [nzName]=\"props['name']!\"\r\n [nzShowUploadList]=\"props['showUploadList']\"\r\n [nzShowButton]=\"props['showButton']!!\"\r\n [nzWithCredentials]=\"props['withCredentials']!!\"\r\n [nzOpenFileDialogOnClick]=\"props['openFileDialogOnClick']!!\"\r\n [nzPreview]=\"props['preview']\"\r\n [nzPreviewFile]=\"props['previewFile']\"\r\n [nzPreviewIsImage]=\"props['previewIsImage']\"\r\n [nzRemove]=\"props['remove']\"\r\n (nzChange)=\"props['change'] && props['change']($event)\"\r\n [nzDownload]=\"props['download']\"\r\n [nzTransformFile]=\"props['transformFile']\"\r\n [nzIconRender]=\"props['iconRender'] ?? null\"\r\n [nzFileListRender]=\"props['fileListRender'] ?? null\"\r\n [text]=\"props['text']\"\r\n [className]=\"props['className']\"\r\n (nzFileListChange)=\"props['fileListChange'] && props['fileListChange']($event)\"\r\n [resultMap]=\"props['resultMap']\"\r\n >\r\n </formly-upload>`,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldUpload extends FieldType<FieldTypeConfig> implements OnInit {\r\n override defaultOptions = {\r\n props: {\r\n listType: 'text' as const,\r\n name: 'file',\r\n showUploadList: true,\r\n showButton: true,\r\n openFileDialogOnClick: true,\r\n limit: 0,\r\n size: 0,\r\n filter: [],\r\n text: ''\r\n }\r\n };\r\n\r\n @ViewChild('upload', { static: true }) upload!: NzUploadComponent;\r\n\r\n ngOnInit(): void {\r\n const type = this.props.type;\r\n if (type) {\r\n this.upload.nzType = type as NzUploadType;\r\n }\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { NzUploadModule } from 'ng-zorro-antd/upload';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzIconModule } from 'ng-zorro-antd/icon';\r\nimport { FormlyFieldUpload } from './upload.type';\r\nimport { UploadComponent } from './upload.component';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldUpload, UploadComponent],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n\r\n NzUploadModule,\r\n NzButtonModule,\r\n NzIconModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'upload',\r\n component: FormlyFieldUpload,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzUploadModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1","i2","i3.UploadComponent"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAwEM,MAAO,eAAgB,SAAQ,iBAAiB,CAAA;AA5DtD,IAAA,WAAA,GAAA;;AAoEE;;AAEG;QACM,IAAS,CAAA,SAAA,GAAG,EAAE,CAAC;AAGxB,QAAA,IAAA,CAAA,QAAQ,GAAiB,MAAK,GAAG,CAAC;AAClC,QAAA,IAAA,CAAA,SAAS,GAAkB,MAAK,GAAG,CAAC;AA0BrC,KAAA;AAzBC,IAAA,UAAU,MAAW;AACrB,IAAA,gBAAgB,CAAC,EAAa,EAAA;AAC5B,QAAA,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;KACpB;AACD,IAAA,iBAAiB,CAAC,EAAa,EAAA;AAC7B,QAAA,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;KACrB;AACD,IAAA,gBAAgB,CAAE,UAAmB,EAAA;AACnC,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;KAC9B;AAED,IAAA,cAAc,CAAC,IAAoB,EAAA;AACjC,QAAA,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAClC;AAED,IAAA,MAAM,CAAC,KAA0B,EAAA;AAC/B,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC1B,QAAA,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI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A;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACjCD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-upload.mjs","sources":["../../../../packages/formlyantd/upload/src/upload.component.ts","../../../../packages/formlyantd/upload/src/upload.type.ts","../../../../packages/formlyantd/upload/src/upload.module.ts","../../../../packages/formlyantd/upload/src/ngx-formly-zorro-antd-upload.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-function */\nimport {\n ChangeDetectionStrategy,\n Component,\n Input,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { OnChangeType, OnTouchedType, NzSafeAny } from 'ng-zorro-antd/core/types';\nimport { NzUploadChangeParam, NzUploadComponent, NzUploadFile } from 'ng-zorro-antd/upload';\n\n@Component({\n selector: 'formly-upload',\n template: `\n <nz-upload\n [nzAccept]=\"nzAccept\"\n [nzAction]=\"nzAction\"\n [nzDirectory]=\"nzDirectory\"\n [nzBeforeUpload]=\"nzBeforeUpload\"\n [nzCustomRequest]=\"nzCustomRequest\"\n [nzData]=\"nzData\"\n [(nzFileList)]=\"nzFileList\"\n [nzLimit]=\"nzLimit\"\n [nzSize]=\"nzSize\"\n [nzFileType]=\"nzFileType\"\n [nzFilter]=\"nzFilter\"\n [nzHeaders]=\"nzHeaders\"\n [nzListType]=\"nzListType\"\n [nzMultiple]=\"nzMultiple\"\n [nzName]=\"nzName\"\n [nzShowUploadList]=\"nzShowUploadList\"\n [nzShowButton]=\"nzShowButton\"\n [nzWithCredentials]=\"nzWithCredentials\"\n [nzOpenFileDialogOnClick]=\"nzOpenFileDialogOnClick\"\n [nzPreview]=\"nzPreview\"\n [nzPreviewFile]=\"nzPreviewFile\"\n [nzPreviewIsImage]=\"nzPreviewIsImage\"\n [nzRemove]=\"nzRemove\"\n [nzDownload]=\"nzDownload\"\n [nzTransformFile]=\"nzTransformFile\"\n [nzIconRender]=\"nzIconRender\"\n [nzFileListRender]=\"nzFileListRender\"\n [ngClass]=\"className\"\n (nzChange)=\"change($event)\"\n [nzType]=\"nzType\"\n (nzFileListChange)=\"fileListChange($event)\"\n >\n <ng-container *ngIf=\"text; else buttontext\">\n <button nz-button type=\"button\">\n <i nz-icon nzType=\"upload\"></i>\n {{ text }}\n </button>\n </ng-container>\n\n <ng-template #buttontext>\n <button nz-button type=\"button\">\n <i nz-icon nzType=\"upload\"></i>\n </button>\n </ng-template>\n </nz-upload>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: UploadComponent,\n multi: true\n }\n ]\n})\nexport class UploadComponent extends NzUploadComponent implements ControlValueAccessor {\n @ViewChild('upload', { static: true }) transfer!: NzUploadComponent;\n\n /**\n * 按钮文本\n * @default 点击上传\n */\n @Input() text?: string;\n /**\n * 样式名\n */\n @Input() className = '';\n @Input() resultMap?: (items: NzUploadFile[]) => NzSafeAny[];\n\n onChange: OnChangeType = () => {};\n onTouched: OnTouchedType = () => {};\n writeValue(): void {}\n registerOnChange(fn: NzSafeAny): void {\n this.onChange = fn;\n }\n registerOnTouched(fn: NzSafeAny): void {\n this.onTouched = fn;\n }\n setDisabledState?(isDisabled: boolean): void {\n this.nzDisabled = isDisabled;\n }\n\n fileListChange(list: NzUploadFile[]) {\n this.nzFileListChange.emit(list);\n }\n\n change(value: NzUploadChangeParam) {\n this.nzChange.emit(value);\n if (['removed', 'success'].includes(value.type ?? '')) {\n if (this.resultMap instanceof Function) {\n this.onChange(this.resultMap(value.fileList.filter(x => x.status === 'done')));\n } else {\n this.onChange(value.fileList.filter(x => x.status === 'done'));\n }\n }\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n TemplateRef,\n Type,\n ViewChild,\n OnInit\n} from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\nimport { Observable, Subscription } from 'rxjs';\nimport {\n NzUploadComponent,\n NzUploadType,\n NzUploadChangeParam,\n NzUploadFile,\n NzUploadTransformFileType,\n UploadFilter,\n NzIconRenderTemplate,\n NzUploadListType\n} from 'ng-zorro-antd/upload';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\ninterface UploadProps extends FormlyFieldProps {\n /**\n * 接受上传的文件类型, 详见 input accept Attribute\n */\n accept?: string | string[];\n\n /**\n * 必选参数, 上传的地址\n */\n action?: string | ((file: NzUploadFile) => string | Observable<string>);\n\n /**\n * 支持上传文件夹(caniuse)\n * @default false\n */\n directory?: boolean;\n\n /**\n * 上传文件之前的钩子,参数为上传的文件,若返回 false 则停止上传。注意:IE9 不支持该方法;注意:务必使用 => 定义处理方法。\n */\n beforeUpload?: (file: NzUploadFile, fileList: NzUploadFile[]) => boolean | Observable<boolean>;\n\n /**\n * 通过覆盖默认的上传行为,可以自定义自己的上传实现;注意:务必使用 => 定义处理方法。\n */\n customRequest?: (item: NzSafeAny) => Subscription;\n\n /**\n * 上传所需参数或返回上传参数的方法;注意:务必使用 => 定义处理方法。\n */\n // eslint-disable-next-line @typescript-eslint/ban-types\n data?: Object | ((file: NzUploadFile) => Object | Observable<{}>);\n\n /**\n * 文件列表,双向绑定\n */\n fileList?: NzUploadFile[];\n\n /**\n * 限制单次最多上传数量,nzMultiple 打开时有效;0 表示不限\n * @default 0\n */\n limit?: number;\n\n /**\n * 限制文件大小,单位:KB;0 表示不限\n * @default 0\n */\n size?: number;\n\n /**\n * 限制文件类型,例如:image/png,image/jpeg,image/gif,image/bmp\n */\n fileType?: string;\n\n /**\n * 自定义过滤器\n */\n filter?: UploadFilter[];\n\n /**\n * 设置上传的请求头部,IE10 以上有效;注意:务必使用 => 定义处理方法。\n */\n // eslint-disable-next-line @typescript-eslint/ban-types\n headers?: Object | ((file: NzUploadFile) => Object | Observable<{}>);\n\n /**\n * 上传列表的内建样式,支持三种基本样式 text, picture 和 picture-card\n * @default text\n */\n listType?: NzUploadListType;\n\n /**\n * 是否支持多选文件,ie10+ 支持。开启后按住 ctrl 可选择多个文件。\n * @default false;\n */\n multiple?: boolean;\n\n /**\n * 发到后台的文件参数名\n * @default file\n */\n name?: string;\n\n /**\n * 是否展示 uploadList, 可设为一个对象,用于单独设定 showPreviewIcon,showRemoveIcon 和 showDownloadIcon\n * @default true\n */\n showUploadList?:\n | boolean\n | { showPreviewIcon?: boolean; showRemoveIcon?: boolean; showDownloadIcon?: boolean };\n\n /**\n * 是否展示上传按钮\n * @default true\n */\n showButton?: boolean;\n\n /**\n * 上传请求时是否携带 cookie\n * @default false\n */\n withCredentials?: boolean;\n\n /**\n * 点击打开文件对话框\n * @default true\n */\n openFileDialogOnClick?: boolean;\n\n /**\n * 点击文件链接或预览图标时的回调;注意:务必使用 => 定义处理方法。\n */\n preview?: (file: NzUploadFile) => void;\n\n /**\n * 自定义文件预览逻辑;注意:务必使用 => 定义处理方法。\n */\n previewFile?: (file: NzUploadFile) => Observable<string>;\n\n /**\n * 自定义预览文件是否有效图像,一般用于图像URL为非标准格式;注意:务必使用 => 定义处理方法。\n */\n previewIsImage?: (file: NzUploadFile) => boolean;\n\n /**\n * 点击移除文件时的回调,返回值为 false 时不移除。支持返回 Observable 对象;注意:务必使用 => 定义处理方法。\n */\n remove?: (file: NzUploadFile) => boolean | Observable<boolean>;\n\n /**\n * 上传文件改变时的状态\n */\n onChange?: (value: NzUploadChangeParam) => void;\n\n /**\n * 点击下载文件时的回调,如果没有指定,则默认跳转到文件 url 对应的标签页\n * @default 跳转新标签页\n */\n download?: (file: NzUploadFile) => void;\n\n /**\n * 在上传之前转换文件。支持返回一个 Observable 对象\n */\n transformFile?: (file: NzUploadFile) => NzUploadTransformFileType;\n\n /**\n * 自定义显示 icon\n */\n iconRender?: NzIconRenderTemplate | null;\n\n /**\n * 自定义显示整个列表\n */\n fileListRender?: TemplateRef<void> | null;\n\n /**\n * 按钮文本\n * @default 点击上传\n */\n text?: string;\n\n /**\n * 文件列表改变事件\n */\n fileListChange?: (list: NzUploadFile[]) => void;\n\n /**\n * 返回结果格式映射\n * @returns 默认返回 NzUploadFile[] 格式\n */\n resultMap?: (items: NzUploadFile[]) => NzSafeAny[];\n}\n\nexport interface FormlyUploadFieldConfig extends FormlyFieldConfig<UploadProps> {\n type: 'upload' | Type<FormlyFieldUpload>;\n}\n\n@Component({\n selector: 'formly-field-upload',\n template: `<formly-upload\n #upload\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzAccept]=\"props['accept']\"\n [nzAction]=\"props['action']\"\n [nzDirectory]=\"props['directory']!!\"\n [nzBeforeUpload]=\"props['beforeUpload']\"\n [nzCustomRequest]=\"props['customRequest']\"\n [nzData]=\"props['data']\"\n [(nzFileList)]=\"props['fileList']\"\n [nzLimit]=\"props['limit']\"\n [nzSize]=\"props['size']\"\n [nzFileType]=\"props['fileType']\"\n [nzFilter]=\"props['filter']!\"\n [nzHeaders]=\"props['headers']\"\n [nzListType]=\"props['listType']!\"\n [nzMultiple]=\"props['multiple']!!\"\n [nzName]=\"props['name']!\"\n [nzShowUploadList]=\"props['showUploadList']\"\n [nzShowButton]=\"props['showButton']!!\"\n [nzWithCredentials]=\"props['withCredentials']!!\"\n [nzOpenFileDialogOnClick]=\"props['openFileDialogOnClick']!!\"\n [nzPreview]=\"props['preview']\"\n [nzPreviewFile]=\"props['previewFile']\"\n [nzPreviewIsImage]=\"props['previewIsImage']\"\n [nzRemove]=\"props['remove']\"\n (nzChange)=\"props['change'] && props['change']($event)\"\n [nzDownload]=\"props['download']\"\n [nzTransformFile]=\"props['transformFile']\"\n [nzIconRender]=\"props['iconRender'] ?? null\"\n [nzFileListRender]=\"props['fileListRender'] ?? null\"\n [text]=\"props['text']\"\n [className]=\"props['className']\"\n (nzFileListChange)=\"props['fileListChange'] && props['fileListChange']($event)\"\n [resultMap]=\"props['resultMap']\"\n >\n </formly-upload>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldUpload extends FieldType<FieldTypeConfig> implements OnInit {\n override defaultOptions = {\n props: {\n listType: 'text' as const,\n name: 'file',\n showUploadList: true,\n showButton: true,\n openFileDialogOnClick: true,\n limit: 0,\n size: 0,\n filter: [],\n text: ''\n }\n };\n\n @ViewChild('upload', { static: true }) upload!: NzUploadComponent;\n\n ngOnInit(): void {\n const type = this.props.type;\n if (type) {\n this.upload.nzType = type as NzUploadType;\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzUploadModule } from 'ng-zorro-antd/upload';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { FormlyFieldUpload } from './upload.type';\nimport { UploadComponent } from './upload.component';\n\n@NgModule({\n declarations: [FormlyFieldUpload, UploadComponent],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzUploadModule,\n NzButtonModule,\n NzIconModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'upload',\n component: FormlyFieldUpload,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzUploadModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1","i2","i3.UploadComponent"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAwEM,MAAO,eAAgB,SAAQ,iBAAiB,CAAA;AA5DtD,IAAA,WAAA,GAAA;;AAoEE;;AAEG;QACM,IAAS,CAAA,SAAA,GAAG,EAAE,CAAC;AAGxB,QAAA,IAAA,C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EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YAnB7B,YAAY;QACZ,mBAAmB;QACnB,uBAAuB;QAEvB,cAAc;QACd,cAAc;QACd,YAAY;QAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,YAAA,KAAK,EAAE;AACL,gBAAA;AACE,oBAAA,IAAI,EAAE,QAAQ;AACd,oBAAA,SAAS,EAAE,iBAAiB;oBAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iBAAA;AACF,aAAA;SACF,CAAC,CAAA,EAAA,CAAA,CAAA;2FAGO,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAtBhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,iBAAiB,EAAE,eAAe,CAAC;AAClD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,cAAc;wBACd,cAAc;wBACd,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACjCD;;AAEG;;;;"}
@@ -22,82 +22,82 @@ import { FormlyNzCardModule } from 'ngx-formly-zorro-antd/card';
22
22
  import { FormlyNzButtonModule } from 'ngx-formly-zorro-antd/button';
23
23
  import { FormlyNzGridModule } from 'ngx-formly-zorro-antd/grid';
24
24
 
25
- class FormlyNgAntdModule {
26
- }
27
- FormlyNgAntdModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNgAntdModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
28
- FormlyNgAntdModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNgAntdModule, imports: [FormlyNzFormFieldModule,
29
- FormlyNzInputModule,
30
- FormlyNzInputNumberModule,
31
- FormlyNzInputGroupModule,
32
- FormlyNzTextareaModule,
33
- FormlyNzRadioModule,
34
- FormlyNzCheckboxModule,
35
- FormlyNzSelectModule,
36
- FormlyNzSwitchModule,
37
- FormlyNzCascaderModule,
38
- FormlyNzDatepickerModule,
39
- FormlyNzRateModule,
40
- FormlyNzSliderModule,
41
- FormlyNzTimepickerModule,
42
- FormlyNzTransferModule,
43
- FormlyNzTreeSelectModule,
44
- FormlyNzUploadModule,
45
- FormlyNzTabsModule,
46
- FormlyNzCardModule,
47
- FormlyNzButtonModule,
48
- FormlyNzGridModule] });
49
- FormlyNgAntdModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNgAntdModule, imports: [FormlyNzFormFieldModule,
50
- FormlyNzInputModule,
51
- FormlyNzInputNumberModule,
52
- FormlyNzInputGroupModule,
53
- FormlyNzTextareaModule,
54
- FormlyNzRadioModule,
55
- FormlyNzCheckboxModule,
56
- FormlyNzSelectModule,
57
- FormlyNzSwitchModule,
58
- FormlyNzCascaderModule,
59
- FormlyNzDatepickerModule,
60
- FormlyNzRateModule,
61
- FormlyNzSliderModule,
62
- FormlyNzTimepickerModule,
63
- FormlyNzTransferModule,
64
- FormlyNzTreeSelectModule,
65
- FormlyNzUploadModule,
66
- FormlyNzTabsModule,
67
- FormlyNzCardModule,
68
- FormlyNzButtonModule,
69
- FormlyNzGridModule] });
70
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNgAntdModule, decorators: [{
71
- type: NgModule,
72
- args: [{
73
- imports: [
74
- FormlyNzFormFieldModule,
75
- FormlyNzInputModule,
76
- FormlyNzInputNumberModule,
77
- FormlyNzInputGroupModule,
78
- FormlyNzTextareaModule,
79
- FormlyNzRadioModule,
80
- FormlyNzCheckboxModule,
81
- FormlyNzSelectModule,
82
- FormlyNzSwitchModule,
83
- FormlyNzCascaderModule,
84
- FormlyNzDatepickerModule,
85
- FormlyNzRateModule,
86
- FormlyNzSliderModule,
87
- FormlyNzTimepickerModule,
88
- FormlyNzTransferModule,
89
- FormlyNzTreeSelectModule,
90
- FormlyNzUploadModule,
91
- FormlyNzTabsModule,
92
- FormlyNzCardModule,
93
- FormlyNzButtonModule,
94
- FormlyNzGridModule
95
- ]
96
- }]
25
+ class FormlyNgAntdModule {
26
+ }
27
+ FormlyNgAntdModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNgAntdModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
28
+ FormlyNgAntdModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNgAntdModule, imports: [FormlyNzFormFieldModule,
29
+ FormlyNzInputModule,
30
+ FormlyNzInputNumberModule,
31
+ FormlyNzInputGroupModule,
32
+ FormlyNzTextareaModule,
33
+ FormlyNzRadioModule,
34
+ FormlyNzCheckboxModule,
35
+ FormlyNzSelectModule,
36
+ FormlyNzSwitchModule,
37
+ FormlyNzCascaderModule,
38
+ FormlyNzDatepickerModule,
39
+ FormlyNzRateModule,
40
+ FormlyNzSliderModule,
41
+ FormlyNzTimepickerModule,
42
+ FormlyNzTransferModule,
43
+ FormlyNzTreeSelectModule,
44
+ FormlyNzUploadModule,
45
+ FormlyNzTabsModule,
46
+ FormlyNzCardModule,
47
+ FormlyNzButtonModule,
48
+ FormlyNzGridModule] });
49
+ FormlyNgAntdModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNgAntdModule, imports: [FormlyNzFormFieldModule,
50
+ FormlyNzInputModule,
51
+ FormlyNzInputNumberModule,
52
+ FormlyNzInputGroupModule,
53
+ FormlyNzTextareaModule,
54
+ FormlyNzRadioModule,
55
+ FormlyNzCheckboxModule,
56
+ FormlyNzSelectModule,
57
+ FormlyNzSwitchModule,
58
+ FormlyNzCascaderModule,
59
+ FormlyNzDatepickerModule,
60
+ FormlyNzRateModule,
61
+ FormlyNzSliderModule,
62
+ FormlyNzTimepickerModule,
63
+ FormlyNzTransferModule,
64
+ FormlyNzTreeSelectModule,
65
+ FormlyNzUploadModule,
66
+ FormlyNzTabsModule,
67
+ FormlyNzCardModule,
68
+ FormlyNzButtonModule,
69
+ FormlyNzGridModule] });
70
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNgAntdModule, decorators: [{
71
+ type: NgModule,
72
+ args: [{
73
+ imports: [
74
+ FormlyNzFormFieldModule,
75
+ FormlyNzInputModule,
76
+ FormlyNzInputNumberModule,
77
+ FormlyNzInputGroupModule,
78
+ FormlyNzTextareaModule,
79
+ FormlyNzRadioModule,
80
+ FormlyNzCheckboxModule,
81
+ FormlyNzSelectModule,
82
+ FormlyNzSwitchModule,
83
+ FormlyNzCascaderModule,
84
+ FormlyNzDatepickerModule,
85
+ FormlyNzRateModule,
86
+ FormlyNzSliderModule,
87
+ FormlyNzTimepickerModule,
88
+ FormlyNzTransferModule,
89
+ FormlyNzTreeSelectModule,
90
+ FormlyNzUploadModule,
91
+ FormlyNzTabsModule,
92
+ FormlyNzCardModule,
93
+ FormlyNzButtonModule,
94
+ FormlyNzGridModule
95
+ ]
96
+ }]
97
97
  }] });
98
98
 
99
- /**
100
- * Generated bundle index. Do not edit.
99
+ /**
100
+ * Generated bundle index. Do not edit.
101
101
  */
102
102
 
103
103
  export { FormlyNgAntdModule };
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd.mjs","sources":["../../../../packages/formlyantd/src/lib/ui-ng-zorro-antd.module.ts","../../../../packages/formlyantd/src/ngx-formly-zorro-antd.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\r\n\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\nimport { FormlyNzInputModule } from 'ngx-formly-zorro-antd/input';\r\nimport { FormlyNzInputNumberModule } from 'ngx-formly-zorro-antd/input-number';\r\nimport { FormlyNzInputGroupModule } from 'ngx-formly-zorro-antd/input-group';\r\nimport { FormlyNzTextareaModule } from 'ngx-formly-zorro-antd/textarea';\r\nimport { FormlyNzRadioModule } from 'ngx-formly-zorro-antd/radio';\r\nimport { FormlyNzCheckboxModule } from 'ngx-formly-zorro-antd/checkbox';\r\nimport { FormlyNzSelectModule } from 'ngx-formly-zorro-antd/select';\r\nimport { FormlyNzSwitchModule } from 'ngx-formly-zorro-antd/switch';\r\nimport { FormlyNzCascaderModule } from 'ngx-formly-zorro-antd/cascader';\r\nimport { FormlyNzDatepickerModule } from 'ngx-formly-zorro-antd/datepicker';\r\nimport { FormlyNzRateModule } from 'ngx-formly-zorro-antd/rate';\r\nimport { FormlyNzSliderModule } from 'ngx-formly-zorro-antd/slider';\r\nimport { FormlyNzTimepickerModule } from 'ngx-formly-zorro-antd/timepicker';\r\nimport { FormlyNzTransferModule } from 'ngx-formly-zorro-antd/transfer';\r\nimport { FormlyNzTreeSelectModule } from 'ngx-formly-zorro-antd/tree-select';\r\nimport { FormlyNzUploadModule } from 'ngx-formly-zorro-antd/upload';\r\nimport { FormlyNzTabsModule } from 'ngx-formly-zorro-antd/tabs';\r\nimport { FormlyNzCardModule } from 'ngx-formly-zorro-antd/card';\r\nimport { FormlyNzButtonModule } from 'ngx-formly-zorro-antd/button';\r\nimport { FormlyNzGridModule } from 'ngx-formly-zorro-antd/grid';\r\n\r\n@NgModule({\r\n imports: [\r\n FormlyNzFormFieldModule,\r\n FormlyNzInputModule,\r\n FormlyNzInputNumberModule,\r\n FormlyNzInputGroupModule,\r\n FormlyNzTextareaModule,\r\n FormlyNzRadioModule,\r\n FormlyNzCheckboxModule,\r\n FormlyNzSelectModule,\r\n FormlyNzSwitchModule,\r\n FormlyNzCascaderModule,\r\n FormlyNzDatepickerModule,\r\n FormlyNzRateModule,\r\n FormlyNzSliderModule,\r\n FormlyNzTimepickerModule,\r\n FormlyNzTransferModule,\r\n FormlyNzTreeSelectModule,\r\n FormlyNzUploadModule,\r\n FormlyNzTabsModule,\r\n FormlyNzCardModule,\r\n FormlyNzButtonModule,\r\n FormlyNzGridModule\r\n ]\r\n})\r\nexport class FormlyNgAntdModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;MAiDa,kBAAkB,CAAA;;+GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAlB,kBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAvB3B,uBAAuB;QACvB,mBAAmB;QACnB,yBAAyB;QACzB,wBAAwB;QACxB,sBAAsB;QACtB,mBAAmB;QACnB,sBAAsB;QACtB,oBAAoB;QACpB,oBAAoB;QACpB,sBAAsB;QACtB,wBAAwB;QACxB,kBAAkB;QAClB,oBAAoB;QACpB,wBAAwB;QACxB,sBAAsB;QACtB,wBAAwB;QACxB,oBAAoB;QACpB,kBAAkB;QAClB,kBAAkB;QAClB,oBAAoB;QACpB,kBAAkB,CAAA,EAAA,CAAA,CAAA;AAGT,kBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAvB3B,uBAAuB;QACvB,mBAAmB;QACnB,yBAAyB;QACzB,wBAAwB;QACxB,sBAAsB;QACtB,mBAAmB;QACnB,sBAAsB;QACtB,oBAAoB;QACpB,oBAAoB;QACpB,sBAAsB;QACtB,wBAAwB;QACxB,kBAAkB;QAClB,oBAAoB;QACpB,wBAAwB;QACxB,sBAAsB;QACtB,wBAAwB;QACxB,oBAAoB;QACpB,kBAAkB;QAClB,kBAAkB;QAClB,oBAAoB;QACpB,kBAAkB,CAAA,EAAA,CAAA,CAAA;2FAGT,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAzB9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,uBAAuB;wBACvB,mBAAmB;wBACnB,yBAAyB;wBACzB,wBAAwB;wBACxB,sBAAsB;wBACtB,mBAAmB;wBACnB,sBAAsB;wBACtB,oBAAoB;wBACpB,oBAAoB;wBACpB,sBAAsB;wBACtB,wBAAwB;wBACxB,kBAAkB;wBAClB,oBAAoB;wBACpB,wBAAwB;wBACxB,sBAAsB;wBACtB,wBAAwB;wBACxB,oBAAoB;wBACpB,kBAAkB;wBAClB,kBAAkB;wBAClB,oBAAoB;wBACpB,kBAAkB;AACnB,qBAAA;AACF,iBAAA,CAAA;;;AChDD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd.mjs","sources":["../../../../packages/formlyantd/src/lib/ui-ng-zorro-antd.module.ts","../../../../packages/formlyantd/src/ngx-formly-zorro-antd.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\n\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\nimport { FormlyNzInputModule } from 'ngx-formly-zorro-antd/input';\nimport { FormlyNzInputNumberModule } from 'ngx-formly-zorro-antd/input-number';\nimport { FormlyNzInputGroupModule } from 'ngx-formly-zorro-antd/input-group';\nimport { FormlyNzTextareaModule } from 'ngx-formly-zorro-antd/textarea';\nimport { FormlyNzRadioModule } from 'ngx-formly-zorro-antd/radio';\nimport { FormlyNzCheckboxModule } from 'ngx-formly-zorro-antd/checkbox';\nimport { FormlyNzSelectModule } from 'ngx-formly-zorro-antd/select';\nimport { FormlyNzSwitchModule } from 'ngx-formly-zorro-antd/switch';\nimport { FormlyNzCascaderModule } from 'ngx-formly-zorro-antd/cascader';\nimport { FormlyNzDatepickerModule } from 'ngx-formly-zorro-antd/datepicker';\nimport { FormlyNzRateModule } from 'ngx-formly-zorro-antd/rate';\nimport { FormlyNzSliderModule } from 'ngx-formly-zorro-antd/slider';\nimport { FormlyNzTimepickerModule } from 'ngx-formly-zorro-antd/timepicker';\nimport { FormlyNzTransferModule } from 'ngx-formly-zorro-antd/transfer';\nimport { FormlyNzTreeSelectModule } from 'ngx-formly-zorro-antd/tree-select';\nimport { FormlyNzUploadModule } from 'ngx-formly-zorro-antd/upload';\nimport { FormlyNzTabsModule } from 'ngx-formly-zorro-antd/tabs';\nimport { FormlyNzCardModule } from 'ngx-formly-zorro-antd/card';\nimport { FormlyNzButtonModule } from 'ngx-formly-zorro-antd/button';\nimport { FormlyNzGridModule } from 'ngx-formly-zorro-antd/grid';\n\n@NgModule({\n imports: [\n FormlyNzFormFieldModule,\n FormlyNzInputModule,\n FormlyNzInputNumberModule,\n FormlyNzInputGroupModule,\n FormlyNzTextareaModule,\n FormlyNzRadioModule,\n FormlyNzCheckboxModule,\n FormlyNzSelectModule,\n FormlyNzSwitchModule,\n FormlyNzCascaderModule,\n FormlyNzDatepickerModule,\n FormlyNzRateModule,\n FormlyNzSliderModule,\n FormlyNzTimepickerModule,\n FormlyNzTransferModule,\n FormlyNzTreeSelectModule,\n FormlyNzUploadModule,\n FormlyNzTabsModule,\n FormlyNzCardModule,\n FormlyNzButtonModule,\n FormlyNzGridModule\n ]\n})\nexport class FormlyNgAntdModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;MAiDa,kBAAkB,CAAA;;+GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAA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AmB;wBACnB,sBAAsB;wBACtB,oBAAoB;wBACpB,oBAAoB;wBACpB,sBAAsB;wBACtB,wBAAwB;wBACxB,kBAAkB;wBAClB,oBAAoB;wBACpB,wBAAwB;wBACxB,sBAAsB;wBACtB,wBAAwB;wBACxB,oBAAoB;wBACpB,kBAAkB;wBAClB,kBAAkB;wBAClB,oBAAoB;wBACpB,kBAAkB;AACnB,qBAAA;AACF,iBAAA,CAAA;;;AChDD;;AAEG;;;;"}
@@ -1,11 +1,11 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./form-field.wrapper";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/forms";
5
- import * as i4 from "ng-zorro-antd/form";
6
- import * as i5 from "@ngx-formly/core";
7
- export declare class FormlyNzFormFieldModule {
8
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzFormFieldModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzFormFieldModule, [typeof i1.FormlyWrapperFormField], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.NzFormModule, typeof i5.FormlyModule], never>;
10
- static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzFormFieldModule>;
11
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./form-field.wrapper";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/forms";
5
+ import * as i4 from "ng-zorro-antd/form";
6
+ import * as i5 from "@ngx-formly/core";
7
+ export declare class FormlyNzFormFieldModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzFormFieldModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzFormFieldModule, [typeof i1.FormlyWrapperFormField], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.NzFormModule, typeof i5.FormlyModule], never>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzFormFieldModule>;
11
+ }
@@ -1,105 +1,105 @@
1
- import { TemplateRef } from '@angular/core';
2
- import { FormlyFieldProps as CoreFormlyFieldProps } from '@ngx-formly/core';
3
- import type { EmbeddedProperty } from 'ng-zorro-antd/grid';
4
- import type { NzFormTooltipIcon } from 'ng-zorro-antd/form';
5
- import type { NzTSType } from 'ng-zorro-antd/core/types';
6
- /** nz表单配置项 */
7
- export interface NzFormWrapperProps extends CoreFormlyFieldProps {
8
- /**
9
- * 隐藏必填标记
10
- */
11
- hideRequiredMarker?: boolean;
12
- /**
13
- * 隐藏Label
14
- */
15
- hideLabel?: boolean;
16
- /**
17
- * className
18
- */
19
- className?: string;
20
- /**
21
- * itemClass
22
- */
23
- itemClass?: string;
24
- /**
25
- * labelClass
26
- */
27
- labelClass?: string;
28
- /**
29
- * controlClass
30
- */
31
- controlClass?: string;
32
- /**
33
- * 是否不显示 label 后面的冒号
34
- */
35
- noColon?: boolean;
36
- /**
37
- * 配置提示信息
38
- */
39
- tooltipTitle?: NzTSType;
40
- /**
41
- * 配置提示信息的图标
42
- */
43
- tooltipIcon?: string | NzFormTooltipIcon;
44
- /**
45
- * 配合 nzValidateStatus 属性使用,展示校验状态图标
46
- * @default false
47
- */
48
- hasFeedback?: boolean;
49
- /**
50
- * 用于显示表单额外提示信息
51
- */
52
- controlExtra?: string | TemplateRef<void>;
53
- /** 24 栅格系统 */
54
- grid?: {
55
- /** flex 布局属性 */
56
- labelFlex?: string | number | null;
57
- /** 栅格左侧的间隔格数,间隔内不可以有栅格 */
58
- labelOffset?: string | number | null;
59
- /** 栅格顺序 */
60
- labelOrder?: string | number | null;
61
- /** 栅格向左移动格数 */
62
- labelPull?: string | number | null;
63
- /** 栅格向右移动格数 */
64
- labelPush?: string | number | null;
65
- /** 栅格占位格数,为 0 时相当于 display: none */
66
- labelSpan?: string | number | null;
67
- /** <576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
68
- labelXs?: string | number | EmbeddedProperty | null;
69
- /** ≥576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
70
- labelSm?: string | number | EmbeddedProperty | null;
71
- /** ≥768px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
72
- labelMd?: string | number | EmbeddedProperty | null;
73
- /** ≥992px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
74
- labelLg?: string | number | EmbeddedProperty | null;
75
- /** ≥1200px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
76
- labelXl?: string | number | EmbeddedProperty | null;
77
- /** ≥1600px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
78
- labelXXl?: string | number | EmbeddedProperty | null;
79
- /** flex 布局属性 */
80
- controlFlex?: string | number | null;
81
- /** 栅格左侧的间隔格数,间隔内不可以有栅格 */
82
- controlOffset?: string | number | null;
83
- /** 栅格顺序 */
84
- controlOrder?: string | number | null;
85
- /** 栅格向左移动格数 */
86
- controlPull?: string | number | null;
87
- /** 栅格向右移动格数 */
88
- controlPush?: string | number | null;
89
- /** 栅格占位格数,为 0 时相当于 display: none */
90
- /** 栅格占位格数,为 0 时相当于 display: none */
91
- controlSpan?: string | number | null;
92
- /** <576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
93
- controlXs?: string | number | EmbeddedProperty | null;
94
- /** ≥576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
95
- controlSm?: string | number | EmbeddedProperty | null;
96
- /** ≥768px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
97
- controlMd?: string | number | EmbeddedProperty | null;
98
- /** ≥992px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
99
- controlLg?: string | number | EmbeddedProperty | null;
100
- /** ≥1200px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
101
- controlXl?: string | number | EmbeddedProperty | null;
102
- /** ≥1600px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
103
- controlXXl?: string | number | EmbeddedProperty | null;
104
- };
105
- }
1
+ import { TemplateRef } from '@angular/core';
2
+ import { FormlyFieldProps as CoreFormlyFieldProps } from '@ngx-formly/core';
3
+ import type { EmbeddedProperty } from 'ng-zorro-antd/grid';
4
+ import type { NzFormTooltipIcon } from 'ng-zorro-antd/form';
5
+ import type { NzTSType } from 'ng-zorro-antd/core/types';
6
+ /** nz表单配置项 */
7
+ export interface NzFormWrapperProps extends CoreFormlyFieldProps {
8
+ /**
9
+ * 隐藏必填标记
10
+ */
11
+ hideRequiredMarker?: boolean;
12
+ /**
13
+ * 隐藏Label
14
+ */
15
+ hideLabel?: boolean;
16
+ /**
17
+ * className
18
+ */
19
+ className?: string;
20
+ /**
21
+ * itemClass
22
+ */
23
+ itemClass?: string;
24
+ /**
25
+ * labelClass
26
+ */
27
+ labelClass?: string;
28
+ /**
29
+ * controlClass
30
+ */
31
+ controlClass?: string;
32
+ /**
33
+ * 是否不显示 label 后面的冒号
34
+ */
35
+ noColon?: boolean;
36
+ /**
37
+ * 配置提示信息
38
+ */
39
+ tooltipTitle?: NzTSType;
40
+ /**
41
+ * 配置提示信息的图标
42
+ */
43
+ tooltipIcon?: string | NzFormTooltipIcon;
44
+ /**
45
+ * 配合 nzValidateStatus 属性使用,展示校验状态图标
46
+ * @default false
47
+ */
48
+ hasFeedback?: boolean;
49
+ /**
50
+ * 用于显示表单额外提示信息
51
+ */
52
+ controlExtra?: string | TemplateRef<void>;
53
+ /** 24 栅格系统 */
54
+ grid?: {
55
+ /** flex 布局属性 */
56
+ labelFlex?: string | number | null;
57
+ /** 栅格左侧的间隔格数,间隔内不可以有栅格 */
58
+ labelOffset?: string | number | null;
59
+ /** 栅格顺序 */
60
+ labelOrder?: string | number | null;
61
+ /** 栅格向左移动格数 */
62
+ labelPull?: string | number | null;
63
+ /** 栅格向右移动格数 */
64
+ labelPush?: string | number | null;
65
+ /** 栅格占位格数,为 0 时相当于 display: none */
66
+ labelSpan?: string | number | null;
67
+ /** <576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
68
+ labelXs?: string | number | EmbeddedProperty | null;
69
+ /** ≥576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
70
+ labelSm?: string | number | EmbeddedProperty | null;
71
+ /** ≥768px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
72
+ labelMd?: string | number | EmbeddedProperty | null;
73
+ /** ≥992px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
74
+ labelLg?: string | number | EmbeddedProperty | null;
75
+ /** ≥1200px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
76
+ labelXl?: string | number | EmbeddedProperty | null;
77
+ /** ≥1600px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
78
+ labelXXl?: string | number | EmbeddedProperty | null;
79
+ /** flex 布局属性 */
80
+ controlFlex?: string | number | null;
81
+ /** 栅格左侧的间隔格数,间隔内不可以有栅格 */
82
+ controlOffset?: string | number | null;
83
+ /** 栅格顺序 */
84
+ controlOrder?: string | number | null;
85
+ /** 栅格向左移动格数 */
86
+ controlPull?: string | number | null;
87
+ /** 栅格向右移动格数 */
88
+ controlPush?: string | number | null;
89
+ /** 栅格占位格数,为 0 时相当于 display: none */
90
+ /** 栅格占位格数,为 0 时相当于 display: none */
91
+ controlSpan?: string | number | null;
92
+ /** <576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
93
+ controlXs?: string | number | EmbeddedProperty | null;
94
+ /** ≥576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
95
+ controlSm?: string | number | EmbeddedProperty | null;
96
+ /** ≥768px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
97
+ controlMd?: string | number | EmbeddedProperty | null;
98
+ /** ≥992px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
99
+ controlLg?: string | number | EmbeddedProperty | null;
100
+ /** ≥1200px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
101
+ controlXl?: string | number | EmbeddedProperty | null;
102
+ /** ≥1600px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
103
+ controlXXl?: string | number | EmbeddedProperty | null;
104
+ };
105
+ }
@@ -1,9 +1,9 @@
1
- import { FieldWrapper, FormlyFieldConfig } from '@ngx-formly/core';
2
- import type { NzFormWrapperProps } from './form-field.props';
3
- import * as i0 from "@angular/core";
4
- export declare type FormlyFieldProps = NzFormWrapperProps;
5
- export declare class FormlyWrapperFormField extends FieldWrapper<FormlyFieldConfig<FormlyFieldProps>> {
6
- get errorState(): "error" | "success";
7
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyWrapperFormField, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<FormlyWrapperFormField, "formly-wrapper-nz-form-field", never, {}, {}, never, never, false>;
9
- }
1
+ import { FieldWrapper, FormlyFieldConfig } from '@ngx-formly/core';
2
+ import type { NzFormWrapperProps } from './form-field.props';
3
+ import * as i0 from "@angular/core";
4
+ export declare type FormlyFieldProps = NzFormWrapperProps;
5
+ export declare class FormlyWrapperFormField extends FieldWrapper<FormlyFieldConfig<FormlyFieldProps>> {
6
+ get errorState(): "error" | "success";
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyWrapperFormField, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyWrapperFormField, "formly-wrapper-nz-form-field", never, {}, {}, never, never, false>;
9
+ }
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="ngx-formly-zorro-antd/form-field" />
5
- export * from './public_api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="ngx-formly-zorro-antd/form-field" />
5
+ export * from './public_api';
@@ -1,3 +1,3 @@
1
- export { FormlyNzFormFieldModule } from './form-field.module';
2
- export { FormlyFieldProps } from './form-field.wrapper';
3
- export { NzFormWrapperProps } from './form-field.props';
1
+ export { FormlyNzFormFieldModule } from './form-field.module';
2
+ export { FormlyFieldProps } from './form-field.wrapper';
3
+ export { NzFormWrapperProps } from './form-field.props';
@@ -1,10 +1,10 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./grid.type";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "ng-zorro-antd/grid";
5
- import * as i4 from "@ngx-formly/core";
6
- export declare class FormlyNzGridModule {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzGridModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzGridModule, [typeof i1.FormlyFieldGrid], [typeof i2.CommonModule, typeof i3.NzGridModule, typeof i4.FormlyModule], never>;
9
- static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzGridModule>;
10
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./grid.type";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "ng-zorro-antd/grid";
5
+ import * as i4 from "@ngx-formly/core";
6
+ export declare class FormlyNzGridModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzGridModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzGridModule, [typeof i1.FormlyFieldGrid], [typeof i2.CommonModule, typeof i3.NzGridModule, typeof i4.FormlyModule], never>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzGridModule>;
10
+ }