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,174 +1,174 @@
1
- /* eslint-disable @typescript-eslint/no-empty-function */
2
- import { ChangeDetectionStrategy, Component, Input, ViewChild, ViewEncapsulation } from '@angular/core';
3
- import { NG_VALUE_ACCESSOR } from '@angular/forms';
4
- import { NzUploadComponent } from 'ng-zorro-antd/upload';
5
- import * as i0 from "@angular/core";
6
- import * as i1 from "@angular/common";
7
- import * as i2 from "ng-zorro-antd/upload";
8
- import * as i3 from "ng-zorro-antd/button";
9
- import * as i4 from "ng-zorro-antd/core/transition-patch";
10
- import * as i5 from "ng-zorro-antd/core/wave";
11
- import * as i6 from "ng-zorro-antd/icon";
12
- export class UploadComponent extends NzUploadComponent {
13
- constructor() {
14
- super(...arguments);
15
- /**
16
- * 样式名
17
- */
18
- this.className = '';
19
- this.onChange = () => { };
20
- this.onTouched = () => { };
21
- }
22
- writeValue() { }
23
- registerOnChange(fn) {
24
- this.onChange = fn;
25
- }
26
- registerOnTouched(fn) {
27
- this.onTouched = fn;
28
- }
29
- setDisabledState(isDisabled) {
30
- this.nzDisabled = isDisabled;
31
- }
32
- fileListChange(list) {
33
- this.nzFileListChange.emit(list);
34
- }
35
- change(value) {
36
- this.nzChange.emit(value);
37
- if (['removed', 'success'].includes(value.type ?? '')) {
38
- if (this.resultMap instanceof Function) {
39
- this.onChange(this.resultMap(value.fileList.filter(x => x.status === 'done')));
40
- }
41
- else {
42
- this.onChange(value.fileList.filter(x => x.status === 'done'));
43
- }
44
- }
45
- }
46
- }
47
- UploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: UploadComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
48
- 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: [
49
- {
50
- provide: NG_VALUE_ACCESSOR,
51
- useExisting: UploadComponent,
52
- multi: true
53
- }
54
- ], viewQueries: [{ propertyName: "transfer", first: true, predicate: ["upload"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
55
- <nz-upload
56
- [nzAccept]="nzAccept"
57
- [nzAction]="nzAction"
58
- [nzDirectory]="nzDirectory"
59
- [nzBeforeUpload]="nzBeforeUpload"
60
- [nzCustomRequest]="nzCustomRequest"
61
- [nzData]="nzData"
62
- [(nzFileList)]="nzFileList"
63
- [nzLimit]="nzLimit"
64
- [nzSize]="nzSize"
65
- [nzFileType]="nzFileType"
66
- [nzFilter]="nzFilter"
67
- [nzHeaders]="nzHeaders"
68
- [nzListType]="nzListType"
69
- [nzMultiple]="nzMultiple"
70
- [nzName]="nzName"
71
- [nzShowUploadList]="nzShowUploadList"
72
- [nzShowButton]="nzShowButton"
73
- [nzWithCredentials]="nzWithCredentials"
74
- [nzOpenFileDialogOnClick]="nzOpenFileDialogOnClick"
75
- [nzPreview]="nzPreview"
76
- [nzPreviewFile]="nzPreviewFile"
77
- [nzPreviewIsImage]="nzPreviewIsImage"
78
- [nzRemove]="nzRemove"
79
- [nzDownload]="nzDownload"
80
- [nzTransformFile]="nzTransformFile"
81
- [nzIconRender]="nzIconRender"
82
- [nzFileListRender]="nzFileListRender"
83
- [ngClass]="className"
84
- (nzChange)="change($event)"
85
- [nzType]="nzType"
86
- (nzFileListChange)="fileListChange($event)"
87
- >
88
- <ng-container *ngIf="text; else buttontext">
89
- <button nz-button type="button">
90
- <i nz-icon nzType="upload"></i>
91
- {{ text }}
92
- </button>
93
- </ng-container>
94
-
95
- <ng-template #buttontext>
96
- <button nz-button type="button">
97
- <i nz-icon nzType="upload"></i>
98
- </button>
99
- </ng-template>
100
- </nz-upload>
101
- `, 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 });
102
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: UploadComponent, decorators: [{
103
- type: Component,
104
- args: [{
105
- selector: 'formly-upload',
106
- template: `
107
- <nz-upload
108
- [nzAccept]="nzAccept"
109
- [nzAction]="nzAction"
110
- [nzDirectory]="nzDirectory"
111
- [nzBeforeUpload]="nzBeforeUpload"
112
- [nzCustomRequest]="nzCustomRequest"
113
- [nzData]="nzData"
114
- [(nzFileList)]="nzFileList"
115
- [nzLimit]="nzLimit"
116
- [nzSize]="nzSize"
117
- [nzFileType]="nzFileType"
118
- [nzFilter]="nzFilter"
119
- [nzHeaders]="nzHeaders"
120
- [nzListType]="nzListType"
121
- [nzMultiple]="nzMultiple"
122
- [nzName]="nzName"
123
- [nzShowUploadList]="nzShowUploadList"
124
- [nzShowButton]="nzShowButton"
125
- [nzWithCredentials]="nzWithCredentials"
126
- [nzOpenFileDialogOnClick]="nzOpenFileDialogOnClick"
127
- [nzPreview]="nzPreview"
128
- [nzPreviewFile]="nzPreviewFile"
129
- [nzPreviewIsImage]="nzPreviewIsImage"
130
- [nzRemove]="nzRemove"
131
- [nzDownload]="nzDownload"
132
- [nzTransformFile]="nzTransformFile"
133
- [nzIconRender]="nzIconRender"
134
- [nzFileListRender]="nzFileListRender"
135
- [ngClass]="className"
136
- (nzChange)="change($event)"
137
- [nzType]="nzType"
138
- (nzFileListChange)="fileListChange($event)"
139
- >
140
- <ng-container *ngIf="text; else buttontext">
141
- <button nz-button type="button">
142
- <i nz-icon nzType="upload"></i>
143
- {{ text }}
144
- </button>
145
- </ng-container>
146
-
147
- <ng-template #buttontext>
148
- <button nz-button type="button">
149
- <i nz-icon nzType="upload"></i>
150
- </button>
151
- </ng-template>
152
- </nz-upload>
153
- `,
154
- encapsulation: ViewEncapsulation.None,
155
- changeDetection: ChangeDetectionStrategy.OnPush,
156
- providers: [
157
- {
158
- provide: NG_VALUE_ACCESSOR,
159
- useExisting: UploadComponent,
160
- multi: true
161
- }
162
- ]
163
- }]
164
- }], propDecorators: { transfer: [{
165
- type: ViewChild,
166
- args: ['upload', { static: true }]
167
- }], text: [{
168
- type: Input
169
- }], className: [{
170
- type: Input
171
- }], resultMap: [{
172
- type: Input
173
- }] } });
174
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBsb2FkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvdXBsb2FkL3NyYy91cGxvYWQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHlEQUF5RDtBQUN6RCxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFDVCxLQUFLLEVBQ0wsU0FBUyxFQUNULGlCQUFpQixFQUNsQixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQXdCLGl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PVwibnpCZWZvcmVVcGxvYWRcIlxyXG4gICAgICBbbnpDdXN0b21SZXF1ZXN0XT1cIm56Q3VzdG9tUmVxdWVzdFwiXHJcbiAgICAgIFtuekRhdGFdPVwibnpEYXRhXCJcclxuICAgICAgWyhuekZpbGVMaXN0KV09XCJuekZpbGVMaXN0XCJcclxuICAgICAgW256TGltaXRdPVwibnpMaW1pdFwiXHJcbiAgICAgIFtuelNpemVdPVwibnpTaXplXCJcclxuICAgICAgW256RmlsZVR5cGVdPVwibnpGaWxlVHlwZVwiXHJcbiAgICAgIFtuekZpbHRlcl09XCJuekZpbHRlclwiXHJcbiAgICAgIFtuekhlYWRlcnNdPVwibnpIZWFkZXJzXCJcclxuICAgICAgW256TGlzdFR5cGVdPVwibnpMaXN0VHlwZVwiXHJcbiAgICAgIFtuek11bHRpcGxlXT1cIm56TXVsdGlwbGVcIlxyXG4gICAgICBbbnpOYW1lXT1cIm56TmFtZVwiXHJcbiAgICAgIFtuelNob3dVcGxvYWRMaXN0XT1cIm56U2hvd1VwbG9hZExpc3RcIlxyXG4gICAgICBbbnpTaG93QnV0dG9uXT1cIm56U2hvd0J1dHRvblwiXHJcbiAgICAgIFtueldpdGhDcmVkZW50aWFsc109XCJueldpdGhDcmVkZW50aWFsc1wiXHJcbiAgICAgIFtuek9wZW5GaWxlRGlhbG9nT25DbGlja109XCJuek9wZW5GaWxlRGlhbG9nT25DbGlja1wiXHJcbiAgICAgIFtuelByZXZpZXddPVwibnpQcmV2aWV3XCJcclxuICAgICAgW256UHJldmlld0ZpbGVdPVwibnpQcmV2aWV3RmlsZVwiXHJcbiAgICAgIFtuelByZXZpZXdJc0ltYWdlXT1cIm56UHJldmlld0lzSW1hZ2VcIlxyXG4gICAgICBbbnpSZW1vdmVdPVwibnpSZW1vdmVcIlxyXG4gICAgICBbbnpEb3dubG9hZF09XCJuekRvd25sb2FkXCJcclxuICAgICAgW256VHJhbnNmb3JtRmlsZV09XCJuelRyYW5zZm9ybUZpbGVcIlxy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npEaXNhYmxlZCA9IGlzRGlzYWJsZWQ7XHJcbiAgfVxyXG5cclxuICBmaWxlTGlzdENoYW5nZShsaXN0OiBOelVwbG9hZEZpbGVbXSkge1xyXG4gICAgdGhpcy5uekZpbGVMaXN0Q2hhbmdlLmVtaXQobGlzdCk7XHJcbiAgfVxyXG5cclxuICBjaGFuZ2UodmFsdWU6IE56VXBsb2FkQ2hhbmdlUGFyYW0pIHtcclxuICAgIHRoaXMubnpDaGFuZ2UuZW1pdCh2YWx1ZSk7XHJcbiAgICBpZiAoWydyZW1vdmVkJywgJ3N1Y2Nlc3MnXS5pbmNsdWRlcyh2YWx1ZS50eXBlID8/ICcnKSkge1xyXG4gICAgICBpZiAodGhpcy5yZXN1bHRNYXAgaW5zdGFuY2VvZiBGdW5jdGlvbikge1xyXG4gICAgICAgIHRoaXMub25DaGFuZ2UodGhpcy5yZXN1bHRNYXAodmFsdWUuZmlsZUxpc3QuZmlsdGVyKHggPT4geC5zdGF0dXMgPT09ICdkb25lJykpKTtcclxuICAgICAgfSBlbHNlIHtcclxuICAgICAgICB0aGlzLm9uQ2hhbmdlKHZhbHVlLmZpbGVMaXN0LmZpbHRlcih4ID0+IHguc3RhdHVzID09PSAnZG9uZScpKTtcclxuICAgICAgfVxyXG4gICAgfVxyXG4gIH1cclxufVxyXG4iXX0=
1
+ /* eslint-disable @typescript-eslint/no-empty-function */
2
+ import { ChangeDetectionStrategy, Component, Input, ViewChild, ViewEncapsulation } from '@angular/core';
3
+ import { NG_VALUE_ACCESSOR } from '@angular/forms';
4
+ import { NzUploadComponent } from 'ng-zorro-antd/upload';
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "@angular/common";
7
+ import * as i2 from "ng-zorro-antd/upload";
8
+ import * as i3 from "ng-zorro-antd/button";
9
+ import * as i4 from "ng-zorro-antd/core/transition-patch";
10
+ import * as i5 from "ng-zorro-antd/core/wave";
11
+ import * as i6 from "ng-zorro-antd/icon";
12
+ export class UploadComponent extends NzUploadComponent {
13
+ constructor() {
14
+ super(...arguments);
15
+ /**
16
+ * 样式名
17
+ */
18
+ this.className = '';
19
+ this.onChange = () => { };
20
+ this.onTouched = () => { };
21
+ }
22
+ writeValue() { }
23
+ registerOnChange(fn) {
24
+ this.onChange = fn;
25
+ }
26
+ registerOnTouched(fn) {
27
+ this.onTouched = fn;
28
+ }
29
+ setDisabledState(isDisabled) {
30
+ this.nzDisabled = isDisabled;
31
+ }
32
+ fileListChange(list) {
33
+ this.nzFileListChange.emit(list);
34
+ }
35
+ change(value) {
36
+ this.nzChange.emit(value);
37
+ if (['removed', 'success'].includes(value.type ?? '')) {
38
+ if (this.resultMap instanceof Function) {
39
+ this.onChange(this.resultMap(value.fileList.filter(x => x.status === 'done')));
40
+ }
41
+ else {
42
+ this.onChange(value.fileList.filter(x => x.status === 'done'));
43
+ }
44
+ }
45
+ }
46
+ }
47
+ UploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: UploadComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
48
+ 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: [
49
+ {
50
+ provide: NG_VALUE_ACCESSOR,
51
+ useExisting: UploadComponent,
52
+ multi: true
53
+ }
54
+ ], viewQueries: [{ propertyName: "transfer", first: true, predicate: ["upload"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
55
+ <nz-upload
56
+ [nzAccept]="nzAccept"
57
+ [nzAction]="nzAction"
58
+ [nzDirectory]="nzDirectory"
59
+ [nzBeforeUpload]="nzBeforeUpload"
60
+ [nzCustomRequest]="nzCustomRequest"
61
+ [nzData]="nzData"
62
+ [(nzFileList)]="nzFileList"
63
+ [nzLimit]="nzLimit"
64
+ [nzSize]="nzSize"
65
+ [nzFileType]="nzFileType"
66
+ [nzFilter]="nzFilter"
67
+ [nzHeaders]="nzHeaders"
68
+ [nzListType]="nzListType"
69
+ [nzMultiple]="nzMultiple"
70
+ [nzName]="nzName"
71
+ [nzShowUploadList]="nzShowUploadList"
72
+ [nzShowButton]="nzShowButton"
73
+ [nzWithCredentials]="nzWithCredentials"
74
+ [nzOpenFileDialogOnClick]="nzOpenFileDialogOnClick"
75
+ [nzPreview]="nzPreview"
76
+ [nzPreviewFile]="nzPreviewFile"
77
+ [nzPreviewIsImage]="nzPreviewIsImage"
78
+ [nzRemove]="nzRemove"
79
+ [nzDownload]="nzDownload"
80
+ [nzTransformFile]="nzTransformFile"
81
+ [nzIconRender]="nzIconRender"
82
+ [nzFileListRender]="nzFileListRender"
83
+ [ngClass]="className"
84
+ (nzChange)="change($event)"
85
+ [nzType]="nzType"
86
+ (nzFileListChange)="fileListChange($event)"
87
+ >
88
+ <ng-container *ngIf="text; else buttontext">
89
+ <button nz-button type="button">
90
+ <i nz-icon nzType="upload"></i>
91
+ {{ text }}
92
+ </button>
93
+ </ng-container>
94
+
95
+ <ng-template #buttontext>
96
+ <button nz-button type="button">
97
+ <i nz-icon nzType="upload"></i>
98
+ </button>
99
+ </ng-template>
100
+ </nz-upload>
101
+ `, 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 });
102
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: UploadComponent, decorators: [{
103
+ type: Component,
104
+ args: [{
105
+ selector: 'formly-upload',
106
+ template: `
107
+ <nz-upload
108
+ [nzAccept]="nzAccept"
109
+ [nzAction]="nzAction"
110
+ [nzDirectory]="nzDirectory"
111
+ [nzBeforeUpload]="nzBeforeUpload"
112
+ [nzCustomRequest]="nzCustomRequest"
113
+ [nzData]="nzData"
114
+ [(nzFileList)]="nzFileList"
115
+ [nzLimit]="nzLimit"
116
+ [nzSize]="nzSize"
117
+ [nzFileType]="nzFileType"
118
+ [nzFilter]="nzFilter"
119
+ [nzHeaders]="nzHeaders"
120
+ [nzListType]="nzListType"
121
+ [nzMultiple]="nzMultiple"
122
+ [nzName]="nzName"
123
+ [nzShowUploadList]="nzShowUploadList"
124
+ [nzShowButton]="nzShowButton"
125
+ [nzWithCredentials]="nzWithCredentials"
126
+ [nzOpenFileDialogOnClick]="nzOpenFileDialogOnClick"
127
+ [nzPreview]="nzPreview"
128
+ [nzPreviewFile]="nzPreviewFile"
129
+ [nzPreviewIsImage]="nzPreviewIsImage"
130
+ [nzRemove]="nzRemove"
131
+ [nzDownload]="nzDownload"
132
+ [nzTransformFile]="nzTransformFile"
133
+ [nzIconRender]="nzIconRender"
134
+ [nzFileListRender]="nzFileListRender"
135
+ [ngClass]="className"
136
+ (nzChange)="change($event)"
137
+ [nzType]="nzType"
138
+ (nzFileListChange)="fileListChange($event)"
139
+ >
140
+ <ng-container *ngIf="text; else buttontext">
141
+ <button nz-button type="button">
142
+ <i nz-icon nzType="upload"></i>
143
+ {{ text }}
144
+ </button>
145
+ </ng-container>
146
+
147
+ <ng-template #buttontext>
148
+ <button nz-button type="button">
149
+ <i nz-icon nzType="upload"></i>
150
+ </button>
151
+ </ng-template>
152
+ </nz-upload>
153
+ `,
154
+ encapsulation: ViewEncapsulation.None,
155
+ changeDetection: ChangeDetectionStrategy.OnPush,
156
+ providers: [
157
+ {
158
+ provide: NG_VALUE_ACCESSOR,
159
+ useExisting: UploadComponent,
160
+ multi: true
161
+ }
162
+ ]
163
+ }]
164
+ }], propDecorators: { transfer: [{
165
+ type: ViewChild,
166
+ args: ['upload', { static: true }]
167
+ }], text: [{
168
+ type: Input
169
+ }], className: [{
170
+ type: Input
171
+ }], resultMap: [{
172
+ type: Input
173
+ }] } });
174
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBsb2FkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvdXBsb2FkL3NyYy91cGxvYWQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHlEQUF5RDtBQUN6RCxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFDVCxLQUFLLEVBQ0wsU0FB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JlVXBsb2FkXT1cIm56QmVmb3JlVXBsb2FkXCJcbiAgICAgIFtuekN1c3RvbVJlcXVlc3RdPVwibnpDdXN0b21SZXF1ZXN0XCJcbiAgICAgIFtuekRhdGFdPVwibnpEYXRhXCJcbiAgICAgIFsobnpGaWxlTGlzdCldPVwibnpGaWxlTGlzdFwiXG4gICAgICBbbnpMaW1pdF09XCJuekxpbWl0XCJcbiAgICAgIFtuelNpemVdPVwibnpTaXplXCJcbiAgICAgIFtuekZpbGVUeXBlXT1cIm56RmlsZVR5cGVcIlxuICAgICAgW256RmlsdGVyXT1cIm56RmlsdGVyXCJcbiAgICAgIFtuekhlYWRlcnNdPVwibnpIZWFkZXJzXCJcbiAgICAgIFtuekxpc3RUeXBlXT1cIm56TGlzdFR5cGVcIlxuICAgICAgW256TXVsdGlwbGVdPVwibnpNdWx0aXBsZVwiXG4gICAgICBbbnpOYW1lXT1cIm56TmFtZVwiXG4gICAgICBbbnpTaG93VXBsb2FkTGlzdF09XCJuelNob3dVcGxvYWRMaXN0XCJcbiAgICAgIFtuelNob3dCdXR0b25dPVwibnpTaG93QnV0dG9uXCJcbiAgICAgIFtueldpdGhDcmVkZW50aWFsc109XCJueldpdGhDcmVkZW50aWFsc1wiXG4gICAgICBbbnpPcGVuRmlsZURpYWxvZ09uQ2xpY2tdPVwibnpPcGVuRmlsZURpYWxvZ09uQ2xpY2tcIlxuICAgICAgW256UHJldmlld109XCJuelByZXZpZXdcIlxuICAgICAgW256UHJldmlld0ZpbGVdPVwibnpQcmV2aWV3RmlsZVwiXG4gICAgICBbbnpQcmV2aWV3SXNJbWFnZV09XCJuelByZXZpZXdJc0ltYWdlXCJcbiAgICAgIFtuelJlbW92ZV09XCJuelJlbW92ZVwiXG4gICAgICBbbnpEb3dubG9hZF09XCJuekRvd25sb2FkXCJcbiAgICAgIFtuelRyYW5zZm9ybUZpbGVdPVwibnpUcmFuc2Zvcm1GaWxlXCJcbiAgICAgIFtuekljb25SZW5kZXJdPVwibnpJY29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KHZhbHVlOiBOelVwbG9hZENoYW5nZVBhcmFtKSB7XG4gICAgdGhpcy5uekNoYW5nZS5lbWl0KHZhbHVlKTtcbiAgICBpZiAoWydyZW1vdmVkJywgJ3N1Y2Nlc3MnXS5pbmNsdWRlcyh2YWx1ZS50eXBlID8/ICcnKSkge1xuICAgICAgaWYgKHRoaXMucmVzdWx0TWFwIGluc3RhbmNlb2YgRnVuY3Rpb24pIHtcbiAgICAgICAgdGhpcy5vbkNoYW5nZSh0aGlzLnJlc3VsdE1hcCh2YWx1ZS5maWxlTGlzdC5maWx0ZXIoeCA9PiB4LnN0YXR1cyA9PT0gJ2RvbmUnKSkpO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgdGhpcy5vbkNoYW5nZSh2YWx1ZS5maWxlTGlzdC5maWx0ZXIoeCA9PiB4LnN0YXR1cyA9PT0gJ2RvbmUnKSk7XG4gICAgICB9XG4gICAgfVxuICB9XG59XG4iXX0=
@@ -1,60 +1,60 @@
1
- import { NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { FormlyModule } from '@ngx-formly/core';
4
- import { ReactiveFormsModule } from '@angular/forms';
5
- import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
6
- import { NzUploadModule } from 'ng-zorro-antd/upload';
7
- import { NzButtonModule } from 'ng-zorro-antd/button';
8
- import { NzIconModule } from 'ng-zorro-antd/icon';
9
- import { FormlyFieldUpload } from './upload.type';
10
- import { UploadComponent } from './upload.component';
11
- import * as i0 from "@angular/core";
12
- import * as i1 from "@ngx-formly/core";
13
- export class FormlyNzUploadModule {
14
- }
15
- FormlyNzUploadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
16
- FormlyNzUploadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzUploadModule, declarations: [FormlyFieldUpload, UploadComponent], imports: [CommonModule,
17
- ReactiveFormsModule,
18
- FormlyNzFormFieldModule,
19
- NzUploadModule,
20
- NzButtonModule,
21
- NzIconModule, i1.FormlyModule] });
22
- FormlyNzUploadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzUploadModule, imports: [CommonModule,
23
- ReactiveFormsModule,
24
- FormlyNzFormFieldModule,
25
- NzUploadModule,
26
- NzButtonModule,
27
- NzIconModule,
28
- FormlyModule.forChild({
29
- types: [
30
- {
31
- name: 'upload',
32
- component: FormlyFieldUpload,
33
- wrappers: ['form-field']
34
- }
35
- ]
36
- })] });
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzUploadModule, decorators: [{
38
- type: NgModule,
39
- args: [{
40
- declarations: [FormlyFieldUpload, UploadComponent],
41
- imports: [
42
- CommonModule,
43
- ReactiveFormsModule,
44
- FormlyNzFormFieldModule,
45
- NzUploadModule,
46
- NzButtonModule,
47
- NzIconModule,
48
- FormlyModule.forChild({
49
- types: [
50
- {
51
- name: 'upload',
52
- component: FormlyFieldUpload,
53
- wrappers: ['form-field']
54
- }
55
- ]
56
- })
57
- ]
58
- }]
59
- }] });
60
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBsb2FkLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvdXBsb2FkL3NyYy91cGxvYWQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUF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CB7IFVwbG9hZENvbXBvbmVudCB9IGZyb20gJy4vdXBsb2FkLmNvbXBvbmVudCc7XHJcblxyXG5ATmdNb2R1bGUoe1xyXG4gIGRlY2xhcmF0aW9uczogW0Zvcm1seUZpZWxkVXBsb2FkLCBVcGxvYWRDb21wb25lbnRdLFxyXG4gIGltcG9ydHM6IFtcclxuICAgIENvbW1vbk1vZHVsZSxcclxuICAgIFJlYWN0aXZlRm9ybXNNb2R1bGUsXHJcbiAgICBGb3JtbHlOekZvcm1GaWVsZE1vZHVsZSxcclxuXHJcbiAgICBOelVwbG9hZE1vZHVsZSxcclxuICAgIE56QnV0dG9uTW9kdWxlLFxyXG4gICAgTnpJY29uTW9kdWxlLFxyXG5cclxuICAgIEZvcm1seU1vZHVsZS5mb3JDaGlsZCh7XHJcbiAgICAgIHR5cGVzOiBbXHJcbiAgICAgICAge1xyXG4gICAgICAgICAgbmFtZTogJ3VwbG9hZCcsXHJcbiAgICAgICAgICBjb21wb25lbnQ6IEZvcm1seUZpZWxkVXBsb2FkLFxyXG4gICAgICAgICAgd3JhcHBlcnM6IFsnZm9ybS1maWVsZCddXHJcbiAgICAgICAgfVxyXG4gICAgICBdXHJcbiAgICB9KVxyXG4gIF1cclxufSlcclxuZXhwb3J0IGNsYXNzIEZvcm1seU56VXBsb2FkTW9kdWxlIHt9XHJcbiJdfQ==
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { FormlyModule } from '@ngx-formly/core';
4
+ import { ReactiveFormsModule } from '@angular/forms';
5
+ import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
6
+ import { NzUploadModule } from 'ng-zorro-antd/upload';
7
+ import { NzButtonModule } from 'ng-zorro-antd/button';
8
+ import { NzIconModule } from 'ng-zorro-antd/icon';
9
+ import { FormlyFieldUpload } from './upload.type';
10
+ import { UploadComponent } from './upload.component';
11
+ import * as i0 from "@angular/core";
12
+ import * as i1 from "@ngx-formly/core";
13
+ export class FormlyNzUploadModule {
14
+ }
15
+ FormlyNzUploadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
16
+ FormlyNzUploadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzUploadModule, declarations: [FormlyFieldUpload, UploadComponent], imports: [CommonModule,
17
+ ReactiveFormsModule,
18
+ FormlyNzFormFieldModule,
19
+ NzUploadModule,
20
+ NzButtonModule,
21
+ NzIconModule, i1.FormlyModule] });
22
+ FormlyNzUploadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzUploadModule, imports: [CommonModule,
23
+ ReactiveFormsModule,
24
+ FormlyNzFormFieldModule,
25
+ NzUploadModule,
26
+ NzButtonModule,
27
+ NzIconModule,
28
+ FormlyModule.forChild({
29
+ types: [
30
+ {
31
+ name: 'upload',
32
+ component: FormlyFieldUpload,
33
+ wrappers: ['form-field']
34
+ }
35
+ ]
36
+ })] });
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzUploadModule, decorators: [{
38
+ type: NgModule,
39
+ args: [{
40
+ declarations: [FormlyFieldUpload, UploadComponent],
41
+ imports: [
42
+ CommonModule,
43
+ ReactiveFormsModule,
44
+ FormlyNzFormFieldModule,
45
+ NzUploadModule,
46
+ NzButtonModule,
47
+ NzIconModule,
48
+ FormlyModule.forChild({
49
+ types: [
50
+ {
51
+ name: 'upload',
52
+ component: FormlyFieldUpload,
53
+ wrappers: ['form-field']
54
+ }
55
+ ]
56
+ })
57
+ ]
58
+ }]
59
+ }] });
60
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBsb2FkLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJz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