ngx-formly-zorro-antd 13.0.0-rc.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (303) hide show
  1. package/README.md +7 -0
  2. package/autocomplete/autocomplete.props.d.ts +39 -0
  3. package/autocomplete/ngx-formly-zorro-antd-autocomplete.d.ts +5 -0
  4. package/autocomplete/package.json +10 -0
  5. package/autocomplete/public_api.d.ts +1 -0
  6. package/button/button.module.d.ts +11 -0
  7. package/button/button.type.d.ts +65 -0
  8. package/button/ngx-formly-zorro-antd-button.d.ts +5 -0
  9. package/button/package.json +10 -0
  10. package/button/public_api.d.ts +2 -0
  11. package/card/card.module.d.ts +10 -0
  12. package/card/card.wrapper.d.ts +58 -0
  13. package/card/ngx-formly-zorro-antd-card.d.ts +5 -0
  14. package/card/package.json +10 -0
  15. package/card/public_api.d.ts +2 -0
  16. package/cascader/cascader.module.d.ts +12 -0
  17. package/cascader/cascader.type.d.ts +152 -0
  18. package/cascader/ngx-formly-zorro-antd-cascader.d.ts +5 -0
  19. package/cascader/package.json +10 -0
  20. package/cascader/public_api.d.ts +2 -0
  21. package/checkbox/checkbox.module.d.ts +12 -0
  22. package/checkbox/checkbox.type.d.ts +35 -0
  23. package/checkbox/ngx-formly-zorro-antd-checkbox.d.ts +5 -0
  24. package/checkbox/package.json +10 -0
  25. package/checkbox/public_api.d.ts +2 -0
  26. package/datepicker/datepicker.module.d.ts +12 -0
  27. package/datepicker/datepicker.props.d.ts +146 -0
  28. package/datepicker/datepicker.type.d.ts +31 -0
  29. package/datepicker/ngx-formly-zorro-antd-datepicker.d.ts +5 -0
  30. package/datepicker/package.json +10 -0
  31. package/datepicker/public_api.d.ts +2 -0
  32. package/esm2020/autocomplete/autocomplete.props.mjs +2 -0
  33. package/esm2020/autocomplete/ngx-formly-zorro-antd-autocomplete.mjs +5 -0
  34. package/esm2020/autocomplete/public_api.mjs +2 -0
  35. package/esm2020/button/button.module.mjs +63 -0
  36. package/esm2020/button/button.type.mjs +70 -0
  37. package/esm2020/button/ngx-formly-zorro-antd-button.mjs +5 -0
  38. package/esm2020/button/public_api.mjs +3 -0
  39. package/esm2020/card/card.module.mjs +45 -0
  40. package/esm2020/card/card.wrapper.mjs +47 -0
  41. package/esm2020/card/ngx-formly-zorro-antd-card.mjs +5 -0
  42. package/esm2020/card/public_api.mjs +3 -0
  43. package/esm2020/cascader/cascader.module.mjs +53 -0
  44. package/esm2020/cascader/cascader.type.mjs +112 -0
  45. package/esm2020/cascader/ngx-formly-zorro-antd-cascader.mjs +5 -0
  46. package/esm2020/cascader/public_api.mjs +3 -0
  47. package/esm2020/checkbox/checkbox.module.mjs +61 -0
  48. package/esm2020/checkbox/checkbox.type.mjs +69 -0
  49. package/esm2020/checkbox/ngx-formly-zorro-antd-checkbox.mjs +5 -0
  50. package/esm2020/checkbox/public_api.mjs +3 -0
  51. package/esm2020/datepicker/datepicker.module.mjs +53 -0
  52. package/esm2020/datepicker/datepicker.props.mjs +2 -0
  53. package/esm2020/datepicker/datepicker.type.mjs +189 -0
  54. package/esm2020/datepicker/ngx-formly-zorro-antd-datepicker.mjs +5 -0
  55. package/esm2020/datepicker/public_api.mjs +3 -0
  56. package/esm2020/form-field/form-field.module.mjs +47 -0
  57. package/esm2020/form-field/form-field.props.mjs +2 -0
  58. package/esm2020/form-field/form-field.wrapper.mjs +117 -0
  59. package/esm2020/form-field/ngx-formly-zorro-antd-form-field.mjs +5 -0
  60. package/esm2020/form-field/public_api.mjs +2 -0
  61. package/esm2020/index.mjs +2 -0
  62. package/esm2020/input/input.module.mjs +91 -0
  63. package/esm2020/input/input.props.mjs +2 -0
  64. package/esm2020/input/input.type.mjs +259 -0
  65. package/esm2020/input/ngx-formly-zorro-antd-input.mjs +5 -0
  66. package/esm2020/input/public_api.mjs +3 -0
  67. package/esm2020/input-group/input-group.module.mjs +43 -0
  68. package/esm2020/input-group/input-group.props.mjs +2 -0
  69. package/esm2020/input-group/input-group.type.mjs +71 -0
  70. package/esm2020/input-group/ngx-formly-zorro-antd-input-group.mjs +5 -0
  71. package/esm2020/input-group/public_api.mjs +3 -0
  72. package/esm2020/input-number/input-number.module.mjs +61 -0
  73. package/esm2020/input-number/input-number.props.mjs +2 -0
  74. package/esm2020/input-number/input-number.type.mjs +128 -0
  75. package/esm2020/input-number/ngx-formly-zorro-antd-input-number.mjs +5 -0
  76. package/esm2020/input-number/public_api.mjs +3 -0
  77. package/esm2020/lib/ui-ng-zorro-antd.mjs +2 -0
  78. package/esm2020/lib/ui-ng-zorro-antd.module.mjs +95 -0
  79. package/esm2020/ngx-formly-zorro-antd.mjs +5 -0
  80. package/esm2020/radio/ngx-formly-zorro-antd-radio.mjs +5 -0
  81. package/esm2020/radio/public_api.mjs +3 -0
  82. package/esm2020/radio/radio.module.mjs +61 -0
  83. package/esm2020/radio/radio.type.mjs +96 -0
  84. package/esm2020/rate/ngx-formly-zorro-antd-rate.mjs +5 -0
  85. package/esm2020/rate/public_api.mjs +3 -0
  86. package/esm2020/rate/rate.module.mjs +53 -0
  87. package/esm2020/rate/rate.type.mjs +63 -0
  88. package/esm2020/select/ngx-formly-zorro-antd-select.mjs +5 -0
  89. package/esm2020/select/public_api.mjs +3 -0
  90. package/esm2020/select/select.module.mjs +59 -0
  91. package/esm2020/select/select.props.mjs +2 -0
  92. package/esm2020/select/select.type.mjs +163 -0
  93. package/esm2020/slider/ngx-formly-zorro-antd-slider.mjs +5 -0
  94. package/esm2020/slider/public_api.mjs +3 -0
  95. package/esm2020/slider/slider.module.mjs +53 -0
  96. package/esm2020/slider/slider.type.mjs +67 -0
  97. package/esm2020/switch/ngx-formly-zorro-antd-switch.mjs +5 -0
  98. package/esm2020/switch/public_api.mjs +3 -0
  99. package/esm2020/switch/switch.module.mjs +53 -0
  100. package/esm2020/switch/switch.type.mjs +53 -0
  101. package/esm2020/tabs/ngx-formly-zorro-antd-tabs.mjs +5 -0
  102. package/esm2020/tabs/public_api.mjs +3 -0
  103. package/esm2020/tabs/tabs.module.mjs +43 -0
  104. package/esm2020/tabs/tabs.props.mjs +2 -0
  105. package/esm2020/tabs/tabs.wrapper.mjs +111 -0
  106. package/esm2020/textarea/ngx-formly-zorro-antd-textarea.mjs +5 -0
  107. package/esm2020/textarea/public_api.mjs +3 -0
  108. package/esm2020/textarea/textarea.module.mjs +53 -0
  109. package/esm2020/textarea/textarea.type.mjs +88 -0
  110. package/esm2020/timepicker/ngx-formly-zorro-antd-timepicker.mjs +5 -0
  111. package/esm2020/timepicker/public_api.mjs +3 -0
  112. package/esm2020/timepicker/timepicker.module.mjs +53 -0
  113. package/esm2020/timepicker/timepicker.type.mjs +92 -0
  114. package/esm2020/transfer/ngx-formly-zorro-antd-transfer.mjs +5 -0
  115. package/esm2020/transfer/public_api.mjs +3 -0
  116. package/esm2020/transfer/transfer.component.mjs +128 -0
  117. package/esm2020/transfer/transfer.module.mjs +54 -0
  118. package/esm2020/transfer/transfer.type.mjs +87 -0
  119. package/esm2020/tree-select/ngx-formly-zorro-antd-tree-select.mjs +5 -0
  120. package/esm2020/tree-select/public_api.mjs +3 -0
  121. package/esm2020/tree-select/tree-select.module.mjs +53 -0
  122. package/esm2020/tree-select/tree-select.type.mjs +98 -0
  123. package/esm2020/upload/ngx-formly-zorro-antd-upload.mjs +5 -0
  124. package/esm2020/upload/public_api.mjs +3 -0
  125. package/esm2020/upload/upload.component.mjs +174 -0
  126. package/esm2020/upload/upload.module.mjs +62 -0
  127. package/esm2020/upload/upload.type.mjs +119 -0
  128. package/fesm2015/ngx-formly-zorro-antd-autocomplete.mjs +4 -0
  129. package/fesm2015/ngx-formly-zorro-antd-autocomplete.mjs.map +1 -0
  130. package/fesm2015/ngx-formly-zorro-antd-button.mjs +135 -0
  131. package/fesm2015/ngx-formly-zorro-antd-button.mjs.map +1 -0
  132. package/fesm2015/ngx-formly-zorro-antd-card.mjs +95 -0
  133. package/fesm2015/ngx-formly-zorro-antd-card.mjs.map +1 -0
  134. package/fesm2015/ngx-formly-zorro-antd-cascader.mjs +167 -0
  135. package/fesm2015/ngx-formly-zorro-antd-cascader.mjs.map +1 -0
  136. package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs +132 -0
  137. package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs.map +1 -0
  138. package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs +244 -0
  139. package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs.map +1 -0
  140. package/fesm2015/ngx-formly-zorro-antd-form-field.mjs +166 -0
  141. package/fesm2015/ngx-formly-zorro-antd-form-field.mjs.map +1 -0
  142. package/fesm2015/ngx-formly-zorro-antd-input-group.mjs +116 -0
  143. package/fesm2015/ngx-formly-zorro-antd-input-group.mjs.map +1 -0
  144. package/fesm2015/ngx-formly-zorro-antd-input-number.mjs +191 -0
  145. package/fesm2015/ngx-formly-zorro-antd-input-number.mjs.map +1 -0
  146. package/fesm2015/ngx-formly-zorro-antd-input.mjs +352 -0
  147. package/fesm2015/ngx-formly-zorro-antd-input.mjs.map +1 -0
  148. package/fesm2015/ngx-formly-zorro-antd-radio.mjs +159 -0
  149. package/fesm2015/ngx-formly-zorro-antd-radio.mjs.map +1 -0
  150. package/fesm2015/ngx-formly-zorro-antd-rate.mjs +118 -0
  151. package/fesm2015/ngx-formly-zorro-antd-rate.mjs.map +1 -0
  152. package/fesm2015/ngx-formly-zorro-antd-select.mjs +223 -0
  153. package/fesm2015/ngx-formly-zorro-antd-select.mjs.map +1 -0
  154. package/fesm2015/ngx-formly-zorro-antd-slider.mjs +122 -0
  155. package/fesm2015/ngx-formly-zorro-antd-slider.mjs.map +1 -0
  156. package/fesm2015/ngx-formly-zorro-antd-switch.mjs +108 -0
  157. package/fesm2015/ngx-formly-zorro-antd-switch.mjs.map +1 -0
  158. package/fesm2015/ngx-formly-zorro-antd-tabs.mjs +156 -0
  159. package/fesm2015/ngx-formly-zorro-antd-tabs.mjs.map +1 -0
  160. package/fesm2015/ngx-formly-zorro-antd-textarea.mjs +143 -0
  161. package/fesm2015/ngx-formly-zorro-antd-textarea.mjs.map +1 -0
  162. package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs +147 -0
  163. package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs.map +1 -0
  164. package/fesm2015/ngx-formly-zorro-antd-transfer.mjs +264 -0
  165. package/fesm2015/ngx-formly-zorro-antd-transfer.mjs.map +1 -0
  166. package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs +153 -0
  167. package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs.map +1 -0
  168. package/fesm2015/ngx-formly-zorro-antd-upload.mjs +351 -0
  169. package/fesm2015/ngx-formly-zorro-antd-upload.mjs.map +1 -0
  170. package/fesm2015/ngx-formly-zorro-antd.mjs +102 -0
  171. package/fesm2015/ngx-formly-zorro-antd.mjs.map +1 -0
  172. package/fesm2020/ngx-formly-zorro-antd-autocomplete.mjs +4 -0
  173. package/fesm2020/ngx-formly-zorro-antd-autocomplete.mjs.map +1 -0
  174. package/fesm2020/ngx-formly-zorro-antd-button.mjs +135 -0
  175. package/fesm2020/ngx-formly-zorro-antd-button.mjs.map +1 -0
  176. package/fesm2020/ngx-formly-zorro-antd-card.mjs +95 -0
  177. package/fesm2020/ngx-formly-zorro-antd-card.mjs.map +1 -0
  178. package/fesm2020/ngx-formly-zorro-antd-cascader.mjs +167 -0
  179. package/fesm2020/ngx-formly-zorro-antd-cascader.mjs.map +1 -0
  180. package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs +132 -0
  181. package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs.map +1 -0
  182. package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs +244 -0
  183. package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs.map +1 -0
  184. package/fesm2020/ngx-formly-zorro-antd-form-field.mjs +166 -0
  185. package/fesm2020/ngx-formly-zorro-antd-form-field.mjs.map +1 -0
  186. package/fesm2020/ngx-formly-zorro-antd-input-group.mjs +116 -0
  187. package/fesm2020/ngx-formly-zorro-antd-input-group.mjs.map +1 -0
  188. package/fesm2020/ngx-formly-zorro-antd-input-number.mjs +191 -0
  189. package/fesm2020/ngx-formly-zorro-antd-input-number.mjs.map +1 -0
  190. package/fesm2020/ngx-formly-zorro-antd-input.mjs +352 -0
  191. package/fesm2020/ngx-formly-zorro-antd-input.mjs.map +1 -0
  192. package/fesm2020/ngx-formly-zorro-antd-radio.mjs +159 -0
  193. package/fesm2020/ngx-formly-zorro-antd-radio.mjs.map +1 -0
  194. package/fesm2020/ngx-formly-zorro-antd-rate.mjs +118 -0
  195. package/fesm2020/ngx-formly-zorro-antd-rate.mjs.map +1 -0
  196. package/fesm2020/ngx-formly-zorro-antd-select.mjs +223 -0
  197. package/fesm2020/ngx-formly-zorro-antd-select.mjs.map +1 -0
  198. package/fesm2020/ngx-formly-zorro-antd-slider.mjs +122 -0
  199. package/fesm2020/ngx-formly-zorro-antd-slider.mjs.map +1 -0
  200. package/fesm2020/ngx-formly-zorro-antd-switch.mjs +108 -0
  201. package/fesm2020/ngx-formly-zorro-antd-switch.mjs.map +1 -0
  202. package/fesm2020/ngx-formly-zorro-antd-tabs.mjs +156 -0
  203. package/fesm2020/ngx-formly-zorro-antd-tabs.mjs.map +1 -0
  204. package/fesm2020/ngx-formly-zorro-antd-textarea.mjs +143 -0
  205. package/fesm2020/ngx-formly-zorro-antd-textarea.mjs.map +1 -0
  206. package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs +147 -0
  207. package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs.map +1 -0
  208. package/fesm2020/ngx-formly-zorro-antd-transfer.mjs +264 -0
  209. package/fesm2020/ngx-formly-zorro-antd-transfer.mjs.map +1 -0
  210. package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs +153 -0
  211. package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs.map +1 -0
  212. package/fesm2020/ngx-formly-zorro-antd-upload.mjs +350 -0
  213. package/fesm2020/ngx-formly-zorro-antd-upload.mjs.map +1 -0
  214. package/fesm2020/ngx-formly-zorro-antd.mjs +102 -0
  215. package/fesm2020/ngx-formly-zorro-antd.mjs.map +1 -0
  216. package/form-field/form-field.module.d.ts +11 -0
  217. package/form-field/form-field.props.d.ts +77 -0
  218. package/form-field/form-field.wrapper.d.ts +9 -0
  219. package/form-field/ngx-formly-zorro-antd-form-field.d.ts +5 -0
  220. package/form-field/package.json +10 -0
  221. package/form-field/public_api.d.ts +3 -0
  222. package/index.d.ts +1 -0
  223. package/input/input.module.d.ts +14 -0
  224. package/input/input.props.d.ts +66 -0
  225. package/input/input.type.d.ts +26 -0
  226. package/input/ngx-formly-zorro-antd-input.d.ts +5 -0
  227. package/input/package.json +10 -0
  228. package/input/public_api.d.ts +2 -0
  229. package/input-group/input-group.module.d.ts +10 -0
  230. package/input-group/input-group.props.d.ts +56 -0
  231. package/input-group/input-group.type.d.ts +22 -0
  232. package/input-group/ngx-formly-zorro-antd-input-group.d.ts +5 -0
  233. package/input-group/package.json +10 -0
  234. package/input-group/public_api.d.ts +3 -0
  235. package/input-number/input-number.module.d.ts +12 -0
  236. package/input-number/input-number.props.d.ts +78 -0
  237. package/input-number/input-number.type.d.ts +24 -0
  238. package/input-number/ngx-formly-zorro-antd-input-number.d.ts +5 -0
  239. package/input-number/package.json +10 -0
  240. package/input-number/public_api.d.ts +2 -0
  241. package/lib/ui-ng-zorro-antd.d.ts +1 -0
  242. package/lib/ui-ng-zorro-antd.module.d.ts +26 -0
  243. package/ngx-formly-zorro-antd.d.ts +5 -0
  244. package/package.json +204 -0
  245. package/radio/ngx-formly-zorro-antd-radio.d.ts +5 -0
  246. package/radio/package.json +10 -0
  247. package/radio/public_api.d.ts +2 -0
  248. package/radio/radio.module.d.ts +14 -0
  249. package/radio/radio.type.d.ts +38 -0
  250. package/rate/ngx-formly-zorro-antd-rate.d.ts +5 -0
  251. package/rate/package.json +10 -0
  252. package/rate/public_api.d.ts +2 -0
  253. package/rate/rate.module.d.ts +12 -0
  254. package/rate/rate.type.d.ts +57 -0
  255. package/select/ngx-formly-zorro-antd-select.d.ts +5 -0
  256. package/select/package.json +10 -0
  257. package/select/public_api.d.ts +2 -0
  258. package/select/select.module.d.ts +13 -0
  259. package/select/select.props.d.ts +162 -0
  260. package/select/select.type.d.ts +35 -0
  261. package/slider/ngx-formly-zorro-antd-slider.d.ts +5 -0
  262. package/slider/package.json +10 -0
  263. package/slider/public_api.d.ts +2 -0
  264. package/slider/slider.module.d.ts +12 -0
  265. package/slider/slider.type.d.ts +76 -0
  266. package/switch/ngx-formly-zorro-antd-switch.d.ts +5 -0
  267. package/switch/package.json +10 -0
  268. package/switch/public_api.d.ts +2 -0
  269. package/switch/switch.module.d.ts +12 -0
  270. package/switch/switch.type.d.ts +44 -0
  271. package/tabs/ngx-formly-zorro-antd-tabs.d.ts +5 -0
  272. package/tabs/package.json +10 -0
  273. package/tabs/public_api.d.ts +2 -0
  274. package/tabs/tabs.module.d.ts +10 -0
  275. package/tabs/tabs.props.d.ts +127 -0
  276. package/tabs/tabs.wrapper.d.ts +28 -0
  277. package/textarea/ngx-formly-zorro-antd-textarea.d.ts +5 -0
  278. package/textarea/package.json +10 -0
  279. package/textarea/public_api.d.ts +2 -0
  280. package/textarea/textarea.module.d.ts +12 -0
  281. package/textarea/textarea.type.d.ts +38 -0
  282. package/timepicker/ngx-formly-zorro-antd-timepicker.d.ts +5 -0
  283. package/timepicker/package.json +10 -0
  284. package/timepicker/public_api.d.ts +2 -0
  285. package/timepicker/timepicker.module.d.ts +12 -0
  286. package/timepicker/timepicker.type.d.ts +131 -0
  287. package/transfer/ngx-formly-zorro-antd-transfer.d.ts +5 -0
  288. package/transfer/package.json +10 -0
  289. package/transfer/public_api.d.ts +2 -0
  290. package/transfer/transfer.component.d.ts +26 -0
  291. package/transfer/transfer.module.d.ts +13 -0
  292. package/transfer/transfer.type.d.ts +118 -0
  293. package/tree-select/ngx-formly-zorro-antd-tree-select.d.ts +5 -0
  294. package/tree-select/package.json +10 -0
  295. package/tree-select/public_api.d.ts +2 -0
  296. package/tree-select/tree-select.module.d.ts +12 -0
  297. package/tree-select/tree-select.type.d.ts +158 -0
  298. package/upload/ngx-formly-zorro-antd-upload.d.ts +5 -0
  299. package/upload/package.json +10 -0
  300. package/upload/public_api.d.ts +2 -0
  301. package/upload/upload.component.d.ts +27 -0
  302. package/upload/upload.module.d.ts +15 -0
  303. package/upload/upload.type.d.ts +173 -0
@@ -0,0 +1,118 @@
1
+ import { TemplateRef, Type, OnInit } from '@angular/core';
2
+ import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
3
+ import { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
4
+ import { Observable } from 'rxjs';
5
+ import { NzTransferComponent, TransferCanMove, TransferChange, TransferItem, TransferSearchChange, TransferSelectChange } from 'ng-zorro-antd/transfer';
6
+ import type { NzSafeAny, NgStyleInterface } from 'ng-zorro-antd/core/types';
7
+ import * as i0 from "@angular/core";
8
+ interface TransferProps extends FormlyFieldProps {
9
+ /**
10
+ * 数据源,其中若数据属性 direction: 'right' 将会被渲染到右边一栏中或使用 nzTargetKeys
11
+ * @default []
12
+ */
13
+ dataSource?: TransferItem[];
14
+ /**
15
+ * 标题集合,顺序从左至右
16
+ * @default ['', '']
17
+ */
18
+ titles?: string[];
19
+ /**
20
+ * 操作文案集合,顺序从下至上
21
+ * @default ['', '']
22
+ */
23
+ operations?: string[];
24
+ /**
25
+ * 两个穿梭框的自定义样式,等同 ngStyle
26
+ */
27
+ listStyle?: NgStyleInterface;
28
+ /**
29
+ * 单数单位
30
+ * @default 项目
31
+ */
32
+ itemUnit?: string;
33
+ /**
34
+ * 复数单位
35
+ * @default 项目
36
+ */
37
+ itemsUnit?: string;
38
+ /**
39
+ * 自定义渲染列表,见示例
40
+ * @default [null, null]
41
+ */
42
+ renderList?: Array<TemplateRef<NzSafeAny> | null> | null;
43
+ /**
44
+ * 每行数据渲染模板,见示例
45
+ */
46
+ render?: TemplateRef<NzSafeAny> | null;
47
+ /**
48
+ * 底部渲染模板,见示例
49
+ */
50
+ footer?: TemplateRef<NzSafeAny> | null;
51
+ /**
52
+ * 是否显示搜索框
53
+ * @default false
54
+ */
55
+ showSearch?: boolean;
56
+ /**
57
+ * 接收 inputValueoption 两个参数,当 option 符合筛选条件时,应返回 true,反之则返回 false。
58
+ */
59
+ filterOption?: (inputValue: string, item: TransferItem) => boolean;
60
+ /**
61
+ * 搜索框的默认值
62
+ * @default 请输入搜索内容
63
+ */
64
+ searchPlaceholder?: string;
65
+ /**
66
+ * 当列表为空时显示的内容
67
+ * @default 列表为空
68
+ */
69
+ notFoundContent?: string;
70
+ /**
71
+ * 穿梭时二次校验。注意: 穿梭组件内部始终只保留一份数据,二次校验过程中需取消穿梭项则直接删除该项;具体用法见示例。
72
+ */
73
+ canMove?: (arg: TransferCanMove) => Observable<TransferItem[]>;
74
+ /**
75
+ * 设置被选中的 key 集合
76
+ */
77
+ selectedKeys?: string[];
78
+ /**
79
+ * 显示在右侧框数据的 key 集合
80
+ */
81
+ targetKeys?: string[];
82
+ /**
83
+ * 选项在两栏之间转移时的回调函数
84
+ */
85
+ onChange?: (value: TransferChange) => void;
86
+ /**
87
+ * 搜索框内容时改变时的回调函数
88
+ */
89
+ searchChange?: (field: FormlyFieldConfig, value: TransferSearchChange) => void;
90
+ /**
91
+ * 选中项发生改变时的回调函数
92
+ */
93
+ selectChange?: (field: FormlyFieldConfig, value: TransferSelectChange) => void;
94
+ /**
95
+ * 返回结果格式映射
96
+ * @returns 默认返回 TransferItem[] 格式
97
+ */
98
+ resultMap?: (items: TransferItem[]) => NzSafeAny[];
99
+ }
100
+ export interface FormlyTransferFieldConfig extends FormlyFieldConfig<TransferProps> {
101
+ type: 'transfer' | Type<FormlyFieldTransfer>;
102
+ }
103
+ export declare class FormlyFieldTransfer extends FieldType<FieldTypeConfig> implements OnInit {
104
+ defaultOptions: {
105
+ props: {
106
+ dataSource: never[];
107
+ titles: string[];
108
+ operations: string[];
109
+ renderList: null[];
110
+ listStyle: {};
111
+ };
112
+ };
113
+ transfer: NzTransferComponent;
114
+ ngOnInit(): void;
115
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldTransfer, never>;
116
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldTransfer, "formly-field-transfer", never, {}, {}, never, never>;
117
+ }
118
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="ngx-formly-zorro-antd/tree-select" />
5
+ export * from './public_api';
@@ -0,0 +1,10 @@
1
+ {
2
+ "module": "../fesm2015/ngx-formly-zorro-antd-tree-select.mjs",
3
+ "es2020": "../fesm2020/ngx-formly-zorro-antd-tree-select.mjs",
4
+ "esm2020": "../esm2020/tree-select/ngx-formly-zorro-antd-tree-select.mjs",
5
+ "fesm2020": "../fesm2020/ngx-formly-zorro-antd-tree-select.mjs",
6
+ "fesm2015": "../fesm2015/ngx-formly-zorro-antd-tree-select.mjs",
7
+ "typings": "ngx-formly-zorro-antd-tree-select.d.ts",
8
+ "sideEffects": false,
9
+ "name": "ngx-formly-zorro-antd/tree-select"
10
+ }
@@ -0,0 +1,2 @@
1
+ export { FormlyNzTreeSelectModule } from './tree-select.module';
2
+ export { FormlyFieldTreeSelect, FormlyTreeSelectFieldConfig } from './tree-select.type';
@@ -0,0 +1,12 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./tree-select.type";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/forms";
5
+ import * as i4 from "ngx-formly-zorro-antd/form-field";
6
+ import * as i5 from "ng-zorro-antd/tree-select";
7
+ import * as i6 from "@ngx-formly/core";
8
+ export declare class FormlyNzTreeSelectModule {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzTreeSelectModule, never>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzTreeSelectModule, [typeof i1.FormlyFieldTreeSelect], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FormlyNzFormFieldModule, typeof i5.NzTreeSelectModule, typeof i6.FormlyModule], never>;
11
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzTreeSelectModule>;
12
+ }
@@ -0,0 +1,158 @@
1
+ import { Type, TemplateRef } from '@angular/core';
2
+ import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
3
+ import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
4
+ import type { NzFormatEmitEvent, NzTreeNode, NzTreeNodeOptions } from 'ng-zorro-antd/tree';
5
+ import type { NgStyleInterface } from 'ng-zorro-antd/core/types';
6
+ import * as i0 from "@angular/core";
7
+ interface TreeSelectProps extends FormlyFieldProps {
8
+ /**
9
+ * 显示清除按钮
10
+ * @default false
11
+ */
12
+ allowClear?: boolean;
13
+ /**
14
+ * 是否展示 TreeNode title 前的图标,没有默认样式
15
+ * @default false
16
+ */
17
+ showIcon?: boolean;
18
+ /**
19
+ * 显示搜索框
20
+ * @default false
21
+ */
22
+ showSearch?: boolean;
23
+ /**
24
+ * 当下拉列表为空时显示的内容
25
+ */
26
+ notFoundContent?: string;
27
+ /**
28
+ * 下拉菜单和选择器同宽
29
+ * @default true
30
+ */
31
+ dropdownMatchSelectWidth?: boolean;
32
+ /**
33
+ * 下拉菜单的样式
34
+ */
35
+ dropdownStyle?: NgStyleInterface | null;
36
+ /**
37
+ * 下拉菜单的 className 属性
38
+ */
39
+ dropdownClassName?: string;
40
+ /**
41
+ * 支持多选(当设置 nzCheckable 时自动变为true)
42
+ * @default false
43
+ */
44
+ multiple?: boolean;
45
+ /**
46
+ * 搜索隐藏未匹配的节点
47
+ * @default false
48
+ */
49
+ hideUnMatched?: boolean;
50
+ /**
51
+ * 节点前添加 Checkbox 复选框
52
+ * @default false
53
+ */
54
+ checkable?: boolean;
55
+ /**
56
+ * checkable 状态下节点选择完全受控(父子节点选中状态不再关联)
57
+ * @default false
58
+ */
59
+ checkStrictly?: boolean;
60
+ /**
61
+ * 节点前添加展开图标
62
+ * @default true
63
+ */
64
+ showExpand?: boolean;
65
+ /**
66
+ * 是否展示连接线
67
+ * @default false
68
+ */
69
+ showLine?: boolean;
70
+ /**
71
+ * 是否异步加载(显示加载状态)
72
+ * @default false
73
+ */
74
+ asyncData?: boolean;
75
+ /**
76
+ * treeNodes 数据
77
+ * @default []
78
+ */
79
+ nodes?: NzTreeNodeOptions[];
80
+ /**
81
+ * 默认展开所有树节点
82
+ * @default false
83
+ */
84
+ defaultExpandAll?: boolean;
85
+ /**
86
+ * 默认展开指定的树节点
87
+ */
88
+ expandedKeys?: string[];
89
+ /**
90
+ * 如何在输入框显示所选的节点值的方法
91
+ * @default (node: NzTreeNode) => node.title
92
+ */
93
+ displayWith?: (node: NzTreeNode) => string;
94
+ /**
95
+ * 最多显示多少个 tag
96
+ *
97
+ */
98
+ maxTagCount?: number;
99
+ /**
100
+ * 隐藏 tag 时显示的内容
101
+ */
102
+ maxTagPlaceholder?: TemplateRef<{
103
+ $implicit: NzTreeNode[];
104
+ }>;
105
+ /**
106
+ * 自定义节点
107
+ */
108
+ treeTemplate?: TemplateRef<{
109
+ $implicit: NzTreeNode;
110
+ }>;
111
+ /**
112
+ * 虚拟滚动的总高度
113
+ */
114
+ virtualHeight?: string | null;
115
+ /**
116
+ * 虚拟滚动时每一列的高度,与 cdk itemSize 相同
117
+ * @default 28
118
+ */
119
+ virtualItemSize?: number;
120
+ /**
121
+ * 缓冲区最大像素高度,与 cdk maxBufferPx 相同
122
+ * @default 500
123
+ */
124
+ virtualMaxBufferPx?: number;
125
+ /**
126
+ * 缓冲区最小像素高度,低于该值时将加载新结构,与 cdk minBufferPx 相同
127
+ * @default 28
128
+ */
129
+ virtualMinBufferPx?: number;
130
+ /**
131
+ * 浮层是否应带有背景板
132
+ * @default false
133
+ */
134
+ backdrop?: boolean;
135
+ /**
136
+ * 点击展开树节点图标调用
137
+ */
138
+ expandChange?: (field: FormlyFieldConfig, value: NzFormatEmitEvent) => void;
139
+ }
140
+ export interface FormlyTreeSelectFieldConfig extends FormlyFieldConfig<TreeSelectProps> {
141
+ type: 'tree-select' | Type<FormlyFieldTreeSelect>;
142
+ }
143
+ export declare class FormlyFieldTreeSelect extends FieldType<FieldTypeConfig> {
144
+ defaultOptions: {
145
+ props: {
146
+ dropdownMatchSelectWidth: boolean;
147
+ showExpand: boolean;
148
+ nodes: never[];
149
+ displayWith: (node: NzTreeNode) => string;
150
+ virtualItemSize: number;
151
+ virtualMaxBufferPx: number;
152
+ virtualMinBufferPx: number;
153
+ };
154
+ };
155
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldTreeSelect, never>;
156
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldTreeSelect, "formly-field-treeselect", never, {}, {}, never, never>;
157
+ }
158
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="ngx-formly-zorro-antd/upload" />
5
+ export * from './public_api';
@@ -0,0 +1,10 @@
1
+ {
2
+ "module": "../fesm2015/ngx-formly-zorro-antd-upload.mjs",
3
+ "es2020": "../fesm2020/ngx-formly-zorro-antd-upload.mjs",
4
+ "esm2020": "../esm2020/upload/ngx-formly-zorro-antd-upload.mjs",
5
+ "fesm2020": "../fesm2020/ngx-formly-zorro-antd-upload.mjs",
6
+ "fesm2015": "../fesm2015/ngx-formly-zorro-antd-upload.mjs",
7
+ "typings": "ngx-formly-zorro-antd-upload.d.ts",
8
+ "sideEffects": false,
9
+ "name": "ngx-formly-zorro-antd/upload"
10
+ }
@@ -0,0 +1,2 @@
1
+ export { FormlyNzUploadModule } from './upload.module';
2
+ export { FormlyFieldUpload, FormlyUploadFieldConfig } from './upload.type';
@@ -0,0 +1,27 @@
1
+ import { ControlValueAccessor } from '@angular/forms';
2
+ import type { OnChangeType, OnTouchedType, NzSafeAny } from 'ng-zorro-antd/core/types';
3
+ import { NzUploadChangeParam, NzUploadComponent, NzUploadFile } from 'ng-zorro-antd/upload';
4
+ import * as i0 from "@angular/core";
5
+ export declare class UploadComponent extends NzUploadComponent implements ControlValueAccessor {
6
+ transfer: NzUploadComponent;
7
+ /**
8
+ * 按钮文本
9
+ * @default 点击上传
10
+ */
11
+ text?: string;
12
+ /**
13
+ * 样式名
14
+ */
15
+ className: string;
16
+ resultMap?: (items: NzUploadFile[]) => NzSafeAny[];
17
+ onChange: OnChangeType;
18
+ onTouched: OnTouchedType;
19
+ writeValue(): void;
20
+ registerOnChange(fn: NzSafeAny): void;
21
+ registerOnTouched(fn: NzSafeAny): void;
22
+ setDisabledState?(isDisabled: boolean): void;
23
+ fileListChange(list: NzUploadFile[]): void;
24
+ change(value: NzUploadChangeParam): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<UploadComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<UploadComponent, "formly-upload", never, { "text": "text"; "className": "className"; "resultMap": "resultMap"; }, {}, never, never>;
27
+ }
@@ -0,0 +1,15 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./upload.type";
3
+ import * as i2 from "./upload.component";
4
+ import * as i3 from "@angular/common";
5
+ import * as i4 from "@angular/forms";
6
+ import * as i5 from "ngx-formly-zorro-antd/form-field";
7
+ import * as i6 from "ng-zorro-antd/upload";
8
+ import * as i7 from "ng-zorro-antd/button";
9
+ import * as i8 from "ng-zorro-antd/icon";
10
+ import * as i9 from "@ngx-formly/core";
11
+ export declare class FormlyNzUploadModule {
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzUploadModule, never>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzUploadModule, [typeof i1.FormlyFieldUpload, typeof i2.UploadComponent], [typeof i3.CommonModule, typeof i4.ReactiveFormsModule, typeof i5.FormlyNzFormFieldModule, typeof i6.NzUploadModule, typeof i7.NzButtonModule, typeof i8.NzIconModule, typeof i9.FormlyModule], never>;
14
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzUploadModule>;
15
+ }
@@ -0,0 +1,173 @@
1
+ import { TemplateRef, Type, OnInit } from '@angular/core';
2
+ import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
3
+ import { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
4
+ import { Observable, Subscription } from 'rxjs';
5
+ import { NzUploadComponent, NzUploadChangeParam, NzUploadFile, NzUploadTransformFileType, UploadFilter, NzIconRenderTemplate, NzUploadListType } from 'ng-zorro-antd/upload';
6
+ import type { NzSafeAny } from 'ng-zorro-antd/core/types';
7
+ import * as i0 from "@angular/core";
8
+ interface UploadProps extends FormlyFieldProps {
9
+ /**
10
+ * 接受上传的文件类型, 详见 input accept Attribute
11
+ */
12
+ accept?: string | string[];
13
+ /**
14
+ * 必选参数, 上传的地址
15
+ */
16
+ action?: string | ((file: NzUploadFile) => string | Observable<string>);
17
+ /**
18
+ * 支持上传文件夹(caniuse)
19
+ * @default false
20
+ */
21
+ directory?: boolean;
22
+ /**
23
+ * 上传文件之前的钩子,参数为上传的文件,若返回 false 则停止上传。注意:IE9 不支持该方法;注意:务必使用 => 定义处理方法。
24
+ */
25
+ beforeUpload?: (file: NzUploadFile, fileList: NzUploadFile[]) => boolean | Observable<boolean>;
26
+ /**
27
+ * 通过覆盖默认的上传行为,可以自定义自己的上传实现;注意:务必使用 => 定义处理方法。
28
+ */
29
+ customRequest?: (item: NzSafeAny) => Subscription;
30
+ /**
31
+ * 上传所需参数或返回上传参数的方法;注意:务必使用 => 定义处理方法。
32
+ */
33
+ data?: Object | ((file: NzUploadFile) => Object | Observable<{}>);
34
+ /**
35
+ * 文件列表,双向绑定
36
+ */
37
+ fileList?: NzUploadFile[];
38
+ /**
39
+ * 限制单次最多上传数量,nzMultiple 打开时有效;0 表示不限
40
+ * @default 0
41
+ */
42
+ limit?: number;
43
+ /**
44
+ * 限制文件大小,单位:KB;0 表示不限
45
+ * @default 0
46
+ */
47
+ size?: number;
48
+ /**
49
+ * 限制文件类型,例如:image/png,image/jpeg,image/gif,image/bmp
50
+ */
51
+ fileType?: string;
52
+ /**
53
+ * 自定义过滤器
54
+ */
55
+ filter?: UploadFilter[];
56
+ /**
57
+ * 设置上传的请求头部,IE10 以上有效;注意:务必使用 => 定义处理方法。
58
+ */
59
+ headers?: Object | ((file: NzUploadFile) => Object | Observable<{}>);
60
+ /**
61
+ * 上传列表的内建样式,支持三种基本样式 text, picture 和 picture-card
62
+ * @default text
63
+ */
64
+ listType?: NzUploadListType;
65
+ /**
66
+ * 是否支持多选文件,ie10+ 支持。开启后按住 ctrl 可选择多个文件。
67
+ * @default false;
68
+ */
69
+ multiple?: boolean;
70
+ /**
71
+ * 发到后台的文件参数名
72
+ * @default file
73
+ */
74
+ name?: string;
75
+ /**
76
+ * 是否展示 uploadList, 可设为一个对象,用于单独设定 showPreviewIcon,showRemoveIcon 和 showDownloadIcon
77
+ * @default true
78
+ */
79
+ showUploadList?: boolean | {
80
+ showPreviewIcon?: boolean;
81
+ showRemoveIcon?: boolean;
82
+ showDownloadIcon?: boolean;
83
+ };
84
+ /**
85
+ * 是否展示上传按钮
86
+ * @default true
87
+ */
88
+ showButton?: boolean;
89
+ /**
90
+ * 上传请求时是否携带 cookie
91
+ * @default false
92
+ */
93
+ withCredentials?: boolean;
94
+ /**
95
+ * 点击打开文件对话框
96
+ * @default true
97
+ */
98
+ openFileDialogOnClick?: boolean;
99
+ /**
100
+ * 点击文件链接或预览图标时的回调;注意:务必使用 => 定义处理方法。
101
+ */
102
+ preview?: (file: NzUploadFile) => void;
103
+ /**
104
+ * 自定义文件预览逻辑;注意:务必使用 => 定义处理方法。
105
+ */
106
+ previewFile?: (file: NzUploadFile) => Observable<string>;
107
+ /**
108
+ * 自定义预览文件是否有效图像,一般用于图像URL为非标准格式;注意:务必使用 => 定义处理方法。
109
+ */
110
+ previewIsImage?: (file: NzUploadFile) => boolean;
111
+ /**
112
+ * 点击移除文件时的回调,返回值为 false 时不移除。支持返回 Observable 对象;注意:务必使用 => 定义处理方法。
113
+ */
114
+ remove?: (file: NzUploadFile) => boolean | Observable<boolean>;
115
+ /**
116
+ * 上传文件改变时的状态
117
+ */
118
+ onChange?: (value: NzUploadChangeParam) => void;
119
+ /**
120
+ * 点击下载文件时的回调,如果没有指定,则默认跳转到文件 url 对应的标签页
121
+ * @default 跳转新标签页
122
+ */
123
+ download?: (file: NzUploadFile) => void;
124
+ /**
125
+ * 在上传之前转换文件。支持返回一个 Observable 对象
126
+ */
127
+ transformFile?: (file: NzUploadFile) => NzUploadTransformFileType;
128
+ /**
129
+ * 自定义显示 icon
130
+ */
131
+ iconRender?: NzIconRenderTemplate | null;
132
+ /**
133
+ * 自定义显示整个列表
134
+ */
135
+ fileListRender?: TemplateRef<void> | null;
136
+ /**
137
+ * 按钮文本
138
+ * @default 点击上传
139
+ */
140
+ text?: string;
141
+ /**
142
+ * 文件列表改变事件
143
+ */
144
+ fileListChange?: (list: NzUploadFile[]) => void;
145
+ /**
146
+ * 返回结果格式映射
147
+ * @returns 默认返回 NzUploadFile[] 格式
148
+ */
149
+ resultMap?: (items: NzUploadFile[]) => NzSafeAny[];
150
+ }
151
+ export interface FormlyUploadFieldConfig extends FormlyFieldConfig<UploadProps> {
152
+ type: 'upload' | Type<FormlyFieldUpload>;
153
+ }
154
+ export declare class FormlyFieldUpload extends FieldType<FieldTypeConfig> implements OnInit {
155
+ defaultOptions: {
156
+ props: {
157
+ listType: "text";
158
+ name: string;
159
+ showUploadList: boolean;
160
+ showButton: boolean;
161
+ openFileDialogOnClick: boolean;
162
+ limit: number;
163
+ size: number;
164
+ filter: never[];
165
+ text: string;
166
+ };
167
+ };
168
+ upload: NzUploadComponent;
169
+ ngOnInit(): void;
170
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldUpload, never>;
171
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldUpload, "formly-field-upload", never, {}, {}, never, never>;
172
+ }
173
+ export {};