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,147 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
+ import * as i4 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i3 from '@ngx-formly/core';
6
+ import { FieldType, FormlyModule } from '@ngx-formly/core';
7
+ import * as i2 from '@angular/forms';
8
+ import { ReactiveFormsModule } from '@angular/forms';
9
+ import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
10
+ import * as i1 from 'ng-zorro-antd/time-picker';
11
+ import { NzTimePickerModule } from 'ng-zorro-antd/time-picker';
12
+
13
+ class FormlyFieldTimepicker extends FieldType {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.defaultOptions = {
17
+ props: {
18
+ allowEmpty: true,
19
+ autoFocus: false,
20
+ backdrop: false,
21
+ open: false,
22
+ clearText: 'clear',
23
+ defaultOpenValue: new Date(),
24
+ format: 'HH:mm:ss'
25
+ }
26
+ };
27
+ }
28
+ }
29
+ FormlyFieldTimepicker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldTimepicker, deps: null, target: i0.ɵɵFactoryTarget.Component });
30
+ FormlyFieldTimepicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyFieldTimepicker, selector: "formly-field-timepicker", usesInheritance: true, ngImport: i0, template: `<nz-time-picker
31
+ #time
32
+ [formControl]="formControl"
33
+ [formlyAttributes]="field"
34
+ [nzPlaceHolder]="props.placeholder ?? ''"
35
+ [ngClass]="props['className']"
36
+ [nzAddOn]="props['addOn']"
37
+ [nzAllowEmpty]="props['allowEmpty']!!"
38
+ [nzAutoFocus]="props['autoFocus']!!"
39
+ [nzBackdrop]="props['backdrop']!!"
40
+ [nzClearText]="props['clearText']"
41
+ [nzNowText]="props['nowText']"
42
+ [nzOkText]="props['okText']"
43
+ [nzDefaultOpenValue]="props['defaultOpenValue']"
44
+ [nzDisabledHours]="props['disabledHours']"
45
+ [nzDisabledMinutes]="props['disabledMinutes']"
46
+ [nzDisabledSeconds]="props['disabledSeconds']"
47
+ [nzFormat]="props['format']"
48
+ [nzHideDisabledOptions]="props['hideDisabledOptions']!!"
49
+ [nzHourStep]="props['hourStep']"
50
+ [nzBorderless]="!!props['borderless']"
51
+ [nzMinuteStep]="props['minuteStep']"
52
+ [nzSecondStep]="props['secondStep']"
53
+ [nzOpen]="props['open']!!"
54
+ [nzPopupClassName]="props['popupClassName']"
55
+ [nzUse12Hours]="props['use12Hours']!!"
56
+ [nzSuffixIcon]="props['suffixIcon']"
57
+ (ngModelChange)="props.change && props.change(field, $event)"
58
+ (nzOpenChange)="props['openChange'] && props['openChange'](field, $event)"
59
+ ></nz-time-picker>`, isInline: true, components: [{ type: i1.NzTimePickerComponent, selector: "nz-time-picker", inputs: ["nzId", "nzSize", "nzStatus", "nzHourStep", "nzMinuteStep", "nzSecondStep", "nzClearText", "nzNowText", "nzOkText", "nzPopupClassName", "nzPlaceHolder", "nzAddOn", "nzDefaultOpenValue", "nzDisabledHours", "nzDisabledMinutes", "nzDisabledSeconds", "nzFormat", "nzOpen", "nzUse12Hours", "nzSuffixIcon", "nzHideDisabledOptions", "nzAllowEmpty", "nzDisabled", "nzAutoFocus", "nzBackdrop", "nzBorderless"], outputs: ["nzOpenChange"], exportAs: ["nzTimePicker"] }], directives: [{ type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
60
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldTimepicker, decorators: [{
61
+ type: Component,
62
+ args: [{
63
+ selector: 'formly-field-timepicker',
64
+ template: `<nz-time-picker
65
+ #time
66
+ [formControl]="formControl"
67
+ [formlyAttributes]="field"
68
+ [nzPlaceHolder]="props.placeholder ?? ''"
69
+ [ngClass]="props['className']"
70
+ [nzAddOn]="props['addOn']"
71
+ [nzAllowEmpty]="props['allowEmpty']!!"
72
+ [nzAutoFocus]="props['autoFocus']!!"
73
+ [nzBackdrop]="props['backdrop']!!"
74
+ [nzClearText]="props['clearText']"
75
+ [nzNowText]="props['nowText']"
76
+ [nzOkText]="props['okText']"
77
+ [nzDefaultOpenValue]="props['defaultOpenValue']"
78
+ [nzDisabledHours]="props['disabledHours']"
79
+ [nzDisabledMinutes]="props['disabledMinutes']"
80
+ [nzDisabledSeconds]="props['disabledSeconds']"
81
+ [nzFormat]="props['format']"
82
+ [nzHideDisabledOptions]="props['hideDisabledOptions']!!"
83
+ [nzHourStep]="props['hourStep']"
84
+ [nzBorderless]="!!props['borderless']"
85
+ [nzMinuteStep]="props['minuteStep']"
86
+ [nzSecondStep]="props['secondStep']"
87
+ [nzOpen]="props['open']!!"
88
+ [nzPopupClassName]="props['popupClassName']"
89
+ [nzUse12Hours]="props['use12Hours']!!"
90
+ [nzSuffixIcon]="props['suffixIcon']"
91
+ (ngModelChange)="props.change && props.change(field, $event)"
92
+ (nzOpenChange)="props['openChange'] && props['openChange'](field, $event)"
93
+ ></nz-time-picker>`,
94
+ changeDetection: ChangeDetectionStrategy.OnPush
95
+ }]
96
+ }] });
97
+
98
+ class FormlyNzTimepickerModule {
99
+ }
100
+ FormlyNzTimepickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzTimepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
101
+ FormlyNzTimepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzTimepickerModule, declarations: [FormlyFieldTimepicker], imports: [CommonModule,
102
+ ReactiveFormsModule,
103
+ FormlyNzFormFieldModule,
104
+ NzTimePickerModule, i3.FormlyModule] });
105
+ FormlyNzTimepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzTimepickerModule, imports: [[
106
+ CommonModule,
107
+ ReactiveFormsModule,
108
+ FormlyNzFormFieldModule,
109
+ NzTimePickerModule,
110
+ FormlyModule.forChild({
111
+ types: [
112
+ {
113
+ name: 'timepicker',
114
+ component: FormlyFieldTimepicker,
115
+ wrappers: ['form-field']
116
+ }
117
+ ]
118
+ })
119
+ ]] });
120
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzTimepickerModule, decorators: [{
121
+ type: NgModule,
122
+ args: [{
123
+ declarations: [FormlyFieldTimepicker],
124
+ imports: [
125
+ CommonModule,
126
+ ReactiveFormsModule,
127
+ FormlyNzFormFieldModule,
128
+ NzTimePickerModule,
129
+ FormlyModule.forChild({
130
+ types: [
131
+ {
132
+ name: 'timepicker',
133
+ component: FormlyFieldTimepicker,
134
+ wrappers: ['form-field']
135
+ }
136
+ ]
137
+ })
138
+ ]
139
+ }]
140
+ }] });
141
+
142
+ /**
143
+ * Generated bundle index. Do not edit.
144
+ */
145
+
146
+ export { FormlyFieldTimepicker, FormlyNzTimepickerModule };
147
+ //# sourceMappingURL=ngx-formly-zorro-antd-timepicker.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-formly-zorro-antd-timepicker.mjs","sources":["../../../../packages/formlyantd/timepicker/src/timepicker.type.ts","../../../../packages/formlyantd/timepicker/src/timepicker.module.ts","../../../../packages/formlyantd/timepicker/src/ngx-formly-zorro-antd-timepicker.ts"],"sourcesContent":["import { Component, TemplateRef, Type, ChangeDetectionStrategy } from '@angular/core';\r\nimport { DatePipe } from '@angular/common';\r\nimport { FieldType, FormlyFieldConfig, FieldTypeConfig } from '@ngx-formly/core';\r\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\r\n\r\ninterface TimepickerProps extends FormlyFieldProps {\r\n /**\r\n * 选择框底部显示自定义的内容\r\n */\r\n addOn?: TemplateRef<void>;\r\n\r\n /**\r\n * 是否展示清除按钮\r\n * @default true\r\n */\r\n allowEmpty?: boolean;\r\n\r\n /**\r\n * 自动获取焦点\r\n * @default false\r\n */\r\n autoFocus?: boolean;\r\n\r\n /**\r\n * 浮层是否应带有背景板\r\n * @default false\r\n */\r\n backdrop?: boolean;\r\n\r\n /**\r\n * 清除按钮的提示文案\r\n * @default clear\r\n */\r\n clearText?: string;\r\n\r\n /**\r\n * 此刻按钮文本\r\n * @default 此刻\r\n */\r\n nowText?: string;\r\n\r\n /**\r\n * 确认按钮文本\r\n * @default 确定\r\n */\r\n okText?: string;\r\n\r\n /**\r\n * 当 [ngModel] 不存在时,可以设置面板打开时默认选中的值\r\n * @default new Date()\r\n */\r\n defaultOpenValue?: Date;\r\n\r\n /**\r\n * \t禁止选择部分小时选项\r\n */\r\n disabledHours?: () => number[];\r\n\r\n /**\r\n * 禁止选择部分分钟选项\r\n */\r\n disabledMinutes?: (hour: number) => number[];\r\n\r\n /**\r\n * 禁止选择部分秒选项\r\n */\r\n disabledSeconds?: (hour: number, minute: number) => number[];\r\n\r\n /**\r\n * 展示的时间格式\r\n * @default \"HH:mm:ss\"\r\n */\r\n format?: DatePipe;\r\n\r\n /**\r\n * 隐藏禁止选择的选项\r\n * @default false\r\n */\r\n hideDisabledOptions?: boolean;\r\n\r\n /**\r\n * 小时选项间隔\r\n * @default 1\r\n */\r\n hourStep?: number;\r\n\r\n /**\r\n * 分钟选项间隔\r\n * @default 1\r\n */\r\n minuteStep?: number;\r\n\r\n /**\r\n * 秒选项间隔\r\n * @default 1\r\n */\r\n secondStep?: number;\r\n\r\n /**\r\n * 面板是否打开,可双向绑定\r\n * @default false\r\n */\r\n open?: boolean;\r\n\r\n /**\r\n * 弹出层类名\r\n * @default '''\r\n */\r\n popupClassName?: string;\r\n\r\n /**\r\n * 使用12小时制,为true时format默认为h:mm:ss a\r\n * @default false\r\n */\r\n use12Hours?: boolean;\r\n /**\r\n * 无边框\r\n * @default false\r\n */\r\n borderless?: boolean;\r\n\r\n /**\r\n * 自定义的后缀图标\r\n *\r\n */\r\n suffixIcon?: string | TemplateRef<void>;\r\n\r\n /**\r\n * 面板打开/关闭时的回调\r\n */\r\n openChange?: (field: FormlyFieldConfig, value: boolean) => void;\r\n}\r\n\r\nexport interface FormlyTimepickerFieldConfig extends FormlyFieldConfig<TimepickerProps> {\r\n type: 'timepicker' | Type<FormlyFieldTimepicker>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-timepicker',\r\n template: `<nz-time-picker\r\n #time\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\r\n [ngClass]=\"props['className']\"\r\n [nzAddOn]=\"props['addOn']\"\r\n [nzAllowEmpty]=\"props['allowEmpty']!!\"\r\n [nzAutoFocus]=\"props['autoFocus']!!\"\r\n [nzBackdrop]=\"props['backdrop']!!\"\r\n [nzClearText]=\"props['clearText']\"\r\n [nzNowText]=\"props['nowText']\"\r\n [nzOkText]=\"props['okText']\"\r\n [nzDefaultOpenValue]=\"props['defaultOpenValue']\"\r\n [nzDisabledHours]=\"props['disabledHours']\"\r\n [nzDisabledMinutes]=\"props['disabledMinutes']\"\r\n [nzDisabledSeconds]=\"props['disabledSeconds']\"\r\n [nzFormat]=\"props['format']\"\r\n [nzHideDisabledOptions]=\"props['hideDisabledOptions']!!\"\r\n [nzHourStep]=\"props['hourStep']\"\r\n [nzBorderless]=\"!!props['borderless']\"\r\n [nzMinuteStep]=\"props['minuteStep']\"\r\n [nzSecondStep]=\"props['secondStep']\"\r\n [nzOpen]=\"props['open']!!\"\r\n [nzPopupClassName]=\"props['popupClassName']\"\r\n [nzUse12Hours]=\"props['use12Hours']!!\"\r\n [nzSuffixIcon]=\"props['suffixIcon']\"\r\n (ngModelChange)=\"props.change && props.change(field, $event)\"\r\n (nzOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\r\n ></nz-time-picker>`,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldTimepicker extends FieldType<FieldTypeConfig> {\r\n override defaultOptions = {\r\n props: {\r\n allowEmpty: true,\r\n autoFocus: false,\r\n backdrop: false,\r\n open: false,\r\n clearText: 'clear',\r\n defaultOpenValue: new Date(),\r\n format: 'HH:mm:ss' as NzSafeAny\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 { NzTimePickerModule } from 'ng-zorro-antd/time-picker';\r\nimport { FormlyFieldTimepicker } from './timepicker.type';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldTimepicker],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n\r\n NzTimePickerModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'timepicker',\r\n component: FormlyFieldTimepicker,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzTimepickerModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AA6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,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA;AAaT,wBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,EAlB1B,OAAA,EAAA,CAAA;YACP,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YAEvB,kBAAkB;YAElB,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,YAAY;AAClB,wBAAA,SAAS,EAAE,qBAAqB;wBAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC;SACH,CAAA,EAAA,CAAA,CAAA;4FAEU,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBApBpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,qBAAqB,CAAC;AACrC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,kBAAkB;wBAElB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,YAAY;AAClB,oCAAA,SAAS,EAAE,qBAAqB;oCAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;iBACF,CAAA;;;AC5BD;;AAEG;;;;"}
@@ -0,0 +1,264 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ViewEncapsulation, ChangeDetectionStrategy, ViewChild, Input, NgModule } from '@angular/core';
3
+ import { CommonModule } from '@angular/common';
4
+ import * as i3 from '@ngx-formly/core';
5
+ import { FieldType, FormlyModule } from '@ngx-formly/core';
6
+ import * as i2 from '@angular/forms';
7
+ import { NG_VALUE_ACCESSOR, ReactiveFormsModule } from '@angular/forms';
8
+ import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
9
+ import * as i1 from 'ng-zorro-antd/transfer';
10
+ import { NzTransferComponent, NzTransferModule } from 'ng-zorro-antd/transfer';
11
+
12
+ /* eslint-disable @typescript-eslint/no-empty-function */
13
+ class TransferComponent extends NzTransferComponent {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.onChange = () => { };
17
+ this.onTouched = () => { };
18
+ }
19
+ writeValue(obj) {
20
+ setTimeout(() => {
21
+ this.nzTargetKeys = obj;
22
+ this['cdr'].markForCheck();
23
+ this.onChange(this.transfer.rightDataSource);
24
+ }, 0);
25
+ }
26
+ registerOnChange(fn) {
27
+ this.onChange = fn;
28
+ }
29
+ registerOnTouched(fn) {
30
+ this.onTouched = fn;
31
+ }
32
+ setDisabledState(isDisabled) {
33
+ this.nzDisabled = isDisabled;
34
+ }
35
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
36
+ change(value) {
37
+ if (this.resultMap instanceof Function) {
38
+ this.onChange(this.resultMap(this.transfer.rightDataSource));
39
+ }
40
+ else {
41
+ this.onChange(this.transfer.rightDataSource);
42
+ }
43
+ }
44
+ /**
45
+ * 选中项发生改变时的回调函数
46
+ */
47
+ selectChange(value) {
48
+ this.nzSelectChange.emit(value);
49
+ }
50
+ /**
51
+ * 搜索框内容时改变时的回调函数
52
+ */
53
+ searchChange(value) {
54
+ this.nzSearchChange.emit(value);
55
+ }
56
+ }
57
+ TransferComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TransferComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
58
+ TransferComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: TransferComponent, selector: "formly-transfer", inputs: { resultMap: "resultMap" }, providers: [
59
+ {
60
+ provide: NG_VALUE_ACCESSOR,
61
+ useExisting: TransferComponent,
62
+ multi: true
63
+ }
64
+ ], viewQueries: [{ propertyName: "transfer", first: true, predicate: ["transfer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
65
+ <nz-transfer
66
+ #transfer
67
+ [nzDataSource]="nzDataSource"
68
+ [nzDisabled]="nzDisabled"
69
+ [nzTitles]="nzTitles"
70
+ [nzOperations]="nzOperations"
71
+ [nzListStyle]="nzListStyle"
72
+ [nzItemUnit]="nzItemUnit"
73
+ [nzItemsUnit]="nzItemsUnit"
74
+ [nzRenderList]="nzRenderList"
75
+ [nzRender]="nzRender"
76
+ [nzFooter]="nzFooter"
77
+ [nzShowSearch]="nzShowSearch"
78
+ [nzFilterOption]="nzFilterOption"
79
+ [nzSearchPlaceholder]="nzSearchPlaceholder"
80
+ [nzNotFoundContent]="nzNotFoundContent"
81
+ [nzSelectedKeys]="nzSelectedKeys"
82
+ [nzTargetKeys]="nzTargetKeys"
83
+ (nzChange)="change($event)"
84
+ (nzSearchChange)="searchChange($event)"
85
+ (nzSelectChange)="selectChange($event)"
86
+ style="flex: auto;"
87
+ ></nz-transfer>
88
+ `, isInline: true, components: [{ type: i1.NzTransferComponent, selector: "nz-transfer", inputs: ["nzDisabled", "nzDataSource", "nzTitles", "nzOperations", "nzListStyle", "nzShowSelectAll", "nzItemUnit", "nzItemsUnit", "nzCanMove", "nzRenderList", "nzRender", "nzFooter", "nzShowSearch", "nzFilterOption", "nzSearchPlaceholder", "nzNotFoundContent", "nzTargetKeys", "nzSelectedKeys", "nzStatus"], outputs: ["nzChange", "nzSearchChange", "nzSelectChange"], exportAs: ["nzTransfer"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
89
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TransferComponent, decorators: [{
90
+ type: Component,
91
+ args: [{
92
+ selector: 'formly-transfer',
93
+ template: `
94
+ <nz-transfer
95
+ #transfer
96
+ [nzDataSource]="nzDataSource"
97
+ [nzDisabled]="nzDisabled"
98
+ [nzTitles]="nzTitles"
99
+ [nzOperations]="nzOperations"
100
+ [nzListStyle]="nzListStyle"
101
+ [nzItemUnit]="nzItemUnit"
102
+ [nzItemsUnit]="nzItemsUnit"
103
+ [nzRenderList]="nzRenderList"
104
+ [nzRender]="nzRender"
105
+ [nzFooter]="nzFooter"
106
+ [nzShowSearch]="nzShowSearch"
107
+ [nzFilterOption]="nzFilterOption"
108
+ [nzSearchPlaceholder]="nzSearchPlaceholder"
109
+ [nzNotFoundContent]="nzNotFoundContent"
110
+ [nzSelectedKeys]="nzSelectedKeys"
111
+ [nzTargetKeys]="nzTargetKeys"
112
+ (nzChange)="change($event)"
113
+ (nzSearchChange)="searchChange($event)"
114
+ (nzSelectChange)="selectChange($event)"
115
+ style="flex: auto;"
116
+ ></nz-transfer>
117
+ `,
118
+ encapsulation: ViewEncapsulation.None,
119
+ changeDetection: ChangeDetectionStrategy.OnPush,
120
+ providers: [
121
+ {
122
+ provide: NG_VALUE_ACCESSOR,
123
+ useExisting: TransferComponent,
124
+ multi: true
125
+ }
126
+ ]
127
+ }]
128
+ }], propDecorators: { transfer: [{
129
+ type: ViewChild,
130
+ args: ['transfer', { static: true }]
131
+ }], resultMap: [{
132
+ type: Input
133
+ }] } });
134
+
135
+ class FormlyFieldTransfer extends FieldType {
136
+ constructor() {
137
+ super(...arguments);
138
+ this.defaultOptions = {
139
+ props: {
140
+ dataSource: [],
141
+ titles: ['', ''],
142
+ operations: ['', ''],
143
+ renderList: [null, null],
144
+ listStyle: {}
145
+ }
146
+ };
147
+ }
148
+ ngOnInit() {
149
+ const canMove = this.props['canMove'];
150
+ if (canMove !== null && canMove !== undefined) {
151
+ this.transfer.nzCanMove = canMove;
152
+ }
153
+ }
154
+ }
155
+ FormlyFieldTransfer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldTransfer, deps: null, target: i0.ɵɵFactoryTarget.Component });
156
+ FormlyFieldTransfer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyFieldTransfer, selector: "formly-field-transfer", viewQueries: [{ propertyName: "transfer", first: true, predicate: ["transfer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `<formly-transfer
157
+ #transfer
158
+ [formControl]="formControl"
159
+ [formlyAttributes]="field"
160
+ [nzDataSource]="props['dataSource']"
161
+ [nzTitles]="props['titles']"
162
+ [nzOperations]="props['operations']"
163
+ [nzListStyle]="props['listStyle']"
164
+ [nzItemUnit]="props['itemUnit']"
165
+ [nzItemsUnit]="props['itemsUnit']"
166
+ [nzRenderList]="props['renderList']!"
167
+ [nzRender]="props['render'] ?? null"
168
+ [nzFooter]="props['footer'] ?? null"
169
+ [nzShowSearch]="props['showSearch']!!"
170
+ [nzFilterOption]="props['filterOption']"
171
+ [nzSearchPlaceholder]="props['searchPlaceholder']"
172
+ [nzNotFoundContent]="props['notFoundContent']"
173
+ [nzSelectedKeys]="props['selectedKeys']"
174
+ [nzTargetKeys]="props['targetKeys']"
175
+ [resultMap]="props['resultMap']"
176
+ (nzChange)="props['onChange'] && props['onChange']($event)"
177
+ (nzSearchChange)="props['searchChange'] && props['searchChange'](field, $event)"
178
+ (nzSelectChange)="props['selectChange'] && props['selectChange'](field, $event)"
179
+ ></formly-transfer>`, isInline: true, components: [{ type: TransferComponent, selector: "formly-transfer", inputs: ["resultMap"] }], directives: [{ type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
180
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldTransfer, decorators: [{
181
+ type: Component,
182
+ args: [{
183
+ selector: 'formly-field-transfer',
184
+ template: `<formly-transfer
185
+ #transfer
186
+ [formControl]="formControl"
187
+ [formlyAttributes]="field"
188
+ [nzDataSource]="props['dataSource']"
189
+ [nzTitles]="props['titles']"
190
+ [nzOperations]="props['operations']"
191
+ [nzListStyle]="props['listStyle']"
192
+ [nzItemUnit]="props['itemUnit']"
193
+ [nzItemsUnit]="props['itemsUnit']"
194
+ [nzRenderList]="props['renderList']!"
195
+ [nzRender]="props['render'] ?? null"
196
+ [nzFooter]="props['footer'] ?? null"
197
+ [nzShowSearch]="props['showSearch']!!"
198
+ [nzFilterOption]="props['filterOption']"
199
+ [nzSearchPlaceholder]="props['searchPlaceholder']"
200
+ [nzNotFoundContent]="props['notFoundContent']"
201
+ [nzSelectedKeys]="props['selectedKeys']"
202
+ [nzTargetKeys]="props['targetKeys']"
203
+ [resultMap]="props['resultMap']"
204
+ (nzChange)="props['onChange'] && props['onChange']($event)"
205
+ (nzSearchChange)="props['searchChange'] && props['searchChange'](field, $event)"
206
+ (nzSelectChange)="props['selectChange'] && props['selectChange'](field, $event)"
207
+ ></formly-transfer>`,
208
+ changeDetection: ChangeDetectionStrategy.OnPush
209
+ }]
210
+ }], propDecorators: { transfer: [{
211
+ type: ViewChild,
212
+ args: ['transfer', { static: true }]
213
+ }] } });
214
+
215
+ class FormlyNzTransferModule {
216
+ }
217
+ FormlyNzTransferModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzTransferModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
218
+ FormlyNzTransferModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzTransferModule, declarations: [FormlyFieldTransfer, TransferComponent], imports: [CommonModule,
219
+ ReactiveFormsModule,
220
+ FormlyNzFormFieldModule,
221
+ NzTransferModule, i3.FormlyModule] });
222
+ FormlyNzTransferModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzTransferModule, imports: [[
223
+ CommonModule,
224
+ ReactiveFormsModule,
225
+ FormlyNzFormFieldModule,
226
+ NzTransferModule,
227
+ FormlyModule.forChild({
228
+ types: [
229
+ {
230
+ name: 'transfer',
231
+ component: FormlyFieldTransfer,
232
+ wrappers: ['form-field']
233
+ }
234
+ ]
235
+ })
236
+ ]] });
237
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzTransferModule, decorators: [{
238
+ type: NgModule,
239
+ args: [{
240
+ declarations: [FormlyFieldTransfer, TransferComponent],
241
+ imports: [
242
+ CommonModule,
243
+ ReactiveFormsModule,
244
+ FormlyNzFormFieldModule,
245
+ NzTransferModule,
246
+ FormlyModule.forChild({
247
+ types: [
248
+ {
249
+ name: 'transfer',
250
+ component: FormlyFieldTransfer,
251
+ wrappers: ['form-field']
252
+ }
253
+ ]
254
+ })
255
+ ]
256
+ }]
257
+ }] });
258
+
259
+ /**
260
+ * Generated bundle index. Do not edit.
261
+ */
262
+
263
+ export { FormlyFieldTransfer, FormlyNzTransferModule };
264
+ //# sourceMappingURL=ngx-formly-zorro-antd-transfer.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-formly-zorro-antd-transfer.mjs","sources":["../../../../packages/formlyantd/transfer/src/transfer.component.ts","../../../../packages/formlyantd/transfer/src/transfer.type.ts","../../../../packages/formlyantd/transfer/src/transfer.module.ts","../../../../packages/formlyantd/transfer/src/ngx-formly-zorro-antd-transfer.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-function */\r\nimport {\r\n ChangeDetectionStrategy,\r\n ChangeDetectorRef,\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 { NzTransferComponent } from 'ng-zorro-antd/transfer';\r\n\r\nimport type { OnChangeType, OnTouchedType, NzSafeAny } from 'ng-zorro-antd/core/types';\r\nimport type {\r\n TransferChange,\r\n TransferItem,\r\n TransferSearchChange,\r\n TransferSelectChange\r\n} from 'ng-zorro-antd/transfer';\r\n\r\n@Component({\r\n selector: 'formly-transfer',\r\n template: `\r\n <nz-transfer\r\n #transfer\r\n [nzDataSource]=\"nzDataSource\"\r\n [nzDisabled]=\"nzDisabled\"\r\n [nzTitles]=\"nzTitles\"\r\n [nzOperations]=\"nzOperations\"\r\n [nzListStyle]=\"nzListStyle\"\r\n [nzItemUnit]=\"nzItemUnit\"\r\n [nzItemsUnit]=\"nzItemsUnit\"\r\n [nzRenderList]=\"nzRenderList\"\r\n [nzRender]=\"nzRender\"\r\n [nzFooter]=\"nzFooter\"\r\n [nzShowSearch]=\"nzShowSearch\"\r\n [nzFilterOption]=\"nzFilterOption\"\r\n [nzSearchPlaceholder]=\"nzSearchPlaceholder\"\r\n [nzNotFoundContent]=\"nzNotFoundContent\"\r\n [nzSelectedKeys]=\"nzSelectedKeys\"\r\n [nzTargetKeys]=\"nzTargetKeys\"\r\n (nzChange)=\"change($event)\"\r\n (nzSearchChange)=\"searchChange($event)\"\r\n (nzSelectChange)=\"selectChange($event)\"\r\n style=\"flex: auto;\"\r\n ></nz-transfer>\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: TransferComponent,\r\n multi: true\r\n }\r\n ]\r\n})\r\nexport class TransferComponent extends NzTransferComponent implements ControlValueAccessor {\r\n @ViewChild('transfer', { static: true }) transfer!: NzTransferComponent;\r\n @Input() resultMap?: (items: TransferItem[]) => NzSafeAny[];\r\n\r\n onChange: OnChangeType = () => {};\r\n onTouched: OnTouchedType = () => {};\r\n writeValue(obj: NzSafeAny): void {\r\n setTimeout(() => {\r\n this.nzTargetKeys = obj;\r\n (this['cdr'] as ChangeDetectorRef).markForCheck();\r\n this.onChange(this.transfer.rightDataSource);\r\n }, 0);\r\n }\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 // eslint-disable-next-line @typescript-eslint/no-unused-vars\r\n change(value: TransferChange): void {\r\n if (this.resultMap instanceof Function) {\r\n this.onChange(this.resultMap(this.transfer.rightDataSource));\r\n } else {\r\n this.onChange(this.transfer.rightDataSource);\r\n }\r\n }\r\n\r\n /**\r\n * 选中项发生改变时的回调函数\r\n */\r\n selectChange(value: TransferSelectChange) {\r\n this.nzSelectChange.emit(value);\r\n }\r\n\r\n /**\r\n * 搜索框内容时改变时的回调函数\r\n */\r\n searchChange(value: TransferSearchChange) {\r\n this.nzSearchChange.emit(value);\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 } from 'rxjs';\r\nimport {\r\n NzTransferComponent,\r\n TransferCanMove,\r\n TransferChange,\r\n TransferItem,\r\n TransferSearchChange,\r\n TransferSelectChange\r\n} from 'ng-zorro-antd/transfer';\r\nimport type { NzSafeAny, NgStyleInterface } from 'ng-zorro-antd/core/types';\r\n\r\ninterface TransferProps extends FormlyFieldProps {\r\n /**\r\n * 数据源,其中若数据属性 direction: 'right' 将会被渲染到右边一栏中或使用 nzTargetKeys\r\n * @default []\r\n */\r\n dataSource?: TransferItem[];\r\n\r\n /**\r\n * 标题集合,顺序从左至右\r\n * @default ['', '']\r\n */\r\n titles?: string[];\r\n\r\n /**\r\n * 操作文案集合,顺序从下至上\r\n * @default ['', '']\r\n */\r\n operations?: string[];\r\n\r\n /**\r\n * 两个穿梭框的自定义样式,等同 ngStyle\r\n */\r\n listStyle?: NgStyleInterface;\r\n\r\n /**\r\n * 单数单位\r\n * @default 项目\r\n */\r\n itemUnit?: string;\r\n\r\n /**\r\n * 复数单位\r\n * @default 项目\r\n */\r\n itemsUnit?: string;\r\n\r\n /**\r\n * 自定义渲染列表,见示例\r\n * @default [null, null]\r\n */\r\n renderList?: Array<TemplateRef<NzSafeAny> | null> | null;\r\n\r\n /**\r\n * 每行数据渲染模板,见示例\r\n */\r\n render?: TemplateRef<NzSafeAny> | null;\r\n\r\n /**\r\n * 底部渲染模板,见示例\r\n */\r\n footer?: TemplateRef<NzSafeAny> | null;\r\n\r\n /**\r\n * 是否显示搜索框\r\n * @default false\r\n */\r\n showSearch?: boolean;\r\n\r\n /**\r\n * 接收 inputValueoption 两个参数,当 option 符合筛选条件时,应返回 true,反之则返回 false。\r\n */\r\n filterOption?: (inputValue: string, item: TransferItem) => boolean;\r\n\r\n /**\r\n * 搜索框的默认值\r\n * @default 请输入搜索内容\r\n */\r\n searchPlaceholder?: string;\r\n\r\n /**\r\n * 当列表为空时显示的内容\r\n * @default 列表为空\r\n */\r\n notFoundContent?: string;\r\n\r\n /**\r\n * 穿梭时二次校验。注意: 穿梭组件内部始终只保留一份数据,二次校验过程中需取消穿梭项则直接删除该项;具体用法见示例。\r\n */\r\n canMove?: (arg: TransferCanMove) => Observable<TransferItem[]>;\r\n\r\n /**\r\n * 设置被选中的 key 集合\r\n */\r\n selectedKeys?: string[];\r\n\r\n /**\r\n * 显示在右侧框数据的 key 集合\r\n */\r\n targetKeys?: string[];\r\n\r\n /**\r\n * 选项在两栏之间转移时的回调函数\r\n */\r\n onChange?: (value: TransferChange) => void;\r\n\r\n /**\r\n * 搜索框内容时改变时的回调函数\r\n */\r\n searchChange?: (field: FormlyFieldConfig, value: TransferSearchChange) => void;\r\n\r\n /**\r\n * 选中项发生改变时的回调函数\r\n */\r\n selectChange?: (field: FormlyFieldConfig, value: TransferSelectChange) => void;\r\n\r\n /**\r\n * 返回结果格式映射\r\n * @returns 默认返回 TransferItem[] 格式\r\n */\r\n resultMap?: (items: TransferItem[]) => NzSafeAny[];\r\n}\r\n\r\nexport interface FormlyTransferFieldConfig extends FormlyFieldConfig<TransferProps> {\r\n type: 'transfer' | Type<FormlyFieldTransfer>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-transfer',\r\n template: `<formly-transfer\r\n #transfer\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzDataSource]=\"props['dataSource']\"\r\n [nzTitles]=\"props['titles']\"\r\n [nzOperations]=\"props['operations']\"\r\n [nzListStyle]=\"props['listStyle']\"\r\n [nzItemUnit]=\"props['itemUnit']\"\r\n [nzItemsUnit]=\"props['itemsUnit']\"\r\n [nzRenderList]=\"props['renderList']!\"\r\n [nzRender]=\"props['render'] ?? null\"\r\n [nzFooter]=\"props['footer'] ?? null\"\r\n [nzShowSearch]=\"props['showSearch']!!\"\r\n [nzFilterOption]=\"props['filterOption']\"\r\n [nzSearchPlaceholder]=\"props['searchPlaceholder']\"\r\n [nzNotFoundContent]=\"props['notFoundContent']\"\r\n [nzSelectedKeys]=\"props['selectedKeys']\"\r\n [nzTargetKeys]=\"props['targetKeys']\"\r\n [resultMap]=\"props['resultMap']\"\r\n (nzChange)=\"props['onChange'] && props['onChange']($event)\"\r\n (nzSearchChange)=\"props['searchChange'] && props['searchChange'](field, $event)\"\r\n (nzSelectChange)=\"props['selectChange'] && props['selectChange'](field, $event)\"\r\n ></formly-transfer>`,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldTransfer extends FieldType<FieldTypeConfig> implements OnInit {\r\n override defaultOptions = {\r\n props: {\r\n dataSource: [],\r\n titles: ['', ''],\r\n operations: ['', ''],\r\n renderList: [null, null],\r\n listStyle: {}\r\n }\r\n };\r\n\r\n @ViewChild('transfer', { static: true }) transfer!: NzTransferComponent;\r\n\r\n ngOnInit(): void {\r\n const canMove = this.props['canMove'];\r\n if (canMove !== null && canMove !== undefined) {\r\n this.transfer.nzCanMove = canMove;\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 { NzTransferModule } from 'ng-zorro-antd/transfer';\r\nimport { FormlyFieldTransfer } from './transfer.type';\r\nimport { TransferComponent } from './transfer.component';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldTransfer, TransferComponent],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n\r\n NzTransferModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'transfer',\r\n component: FormlyFieldTransfer,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzTransferModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1.TransferComponent","i1"],"mappings":";;;;;;;;;;;AAAA;AAyDM,MAAO,iBAAkB,SAAQ,mBAAmB,CAAA;AArC1D,IAAA,WAAA,GAAA;;AAyCE,QAAA,IAAA,CAAA,QAAQ,GAAiB,MAAK,GAAG,CAAC;AAClC,QAAA,IAAA,CAAA,SAAS,GAAkB,MAAK,GAAG,CAAC;KAwCrC;AAvCC,IAAA,UAAU,CAAC,GAAc,EAAA;QACvB,UAAU,CAAC,MAAK;AACd,YAAA,IAAI,CAAC,YAAY,GAAG,GAAG,CAAC;AACvB,YAAA,IAAI,CAAC,KAAK,CAAuB,CAAC,YAAY,EAAE,CAAC;YAClD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;SAC9C,EAAE,CAAC,CAAC,CAAC;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KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,SAAS,EAAE,mBAAmB;oCAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;iBACF,CAAA;;;AC7BD;;AAEG;;;;"}
@@ -0,0 +1,153 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
+ import * as i4 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i3 from '@ngx-formly/core';
6
+ import { FieldType, FormlyModule } from '@ngx-formly/core';
7
+ import * as i2 from '@angular/forms';
8
+ import { ReactiveFormsModule } from '@angular/forms';
9
+ import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
10
+ import * as i1 from 'ng-zorro-antd/tree-select';
11
+ import { NzTreeSelectModule } from 'ng-zorro-antd/tree-select';
12
+
13
+ class FormlyFieldTreeSelect extends FieldType {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.defaultOptions = {
17
+ props: {
18
+ dropdownMatchSelectWidth: true,
19
+ showExpand: true,
20
+ nodes: [],
21
+ displayWith: (node) => node.title,
22
+ virtualItemSize: 28,
23
+ virtualMaxBufferPx: 500,
24
+ virtualMinBufferPx: 28
25
+ }
26
+ };
27
+ }
28
+ }
29
+ FormlyFieldTreeSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldTreeSelect, deps: null, target: i0.ɵɵFactoryTarget.Component });
30
+ FormlyFieldTreeSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyFieldTreeSelect, selector: "formly-field-treeselect", usesInheritance: true, ngImport: i0, template: ` <nz-tree-select
31
+ [formControl]="formControl"
32
+ [formlyAttributes]="field"
33
+ [nzPlaceHolder]="props.placeholder ?? ''"
34
+ [ngClass]="props['className']"
35
+ [nzAllowClear]="props['allowClear']!!"
36
+ [nzShowIcon]="props['showIcon']!!"
37
+ [nzShowSearch]="props['showSearch']!!"
38
+ [nzNotFoundContent]="props['notFoundContent']"
39
+ [nzDropdownMatchSelectWidth]="props['dropdownMatchSelectWidth']!!"
40
+ [nzDropdownStyle]="props['dropdownStyle'] ?? null"
41
+ [nzDropdownClassName]="props['dropdownClassName']"
42
+ [nzMultiple]="props['multiple']!!"
43
+ [nzHideUnMatched]="props['hideUnMatched']!!"
44
+ [nzCheckable]="props['checkable']!!"
45
+ [nzCheckStrictly]="props['checkStrictly']!!"
46
+ [nzShowExpand]="props['showExpand']!!"
47
+ [nzShowLine]="props['showLine']!!"
48
+ [nzAsyncData]="props['asyncData']"
49
+ [nzNodes]="props['nodes']!"
50
+ [nzDefaultExpandAll]="props['defaultExpandAll']!!"
51
+ [nzExpandedKeys]="props['expandedKeys']"
52
+ [nzDisplayWith]="props['displayWith']"
53
+ [nzMaxTagCount]="props['maxTagCount']"
54
+ [nzMaxTagPlaceholder]="props['maxTagPlaceholder'] ?? null"
55
+ [nzTreeTemplate]="props['treeTemplate']"
56
+ [nzVirtualHeight]="props['virtualHeight'] ?? null"
57
+ [nzVirtualItemSize]="props['virtualItemSize']!"
58
+ [nzVirtualMaxBufferPx]="props['virtualMaxBufferPx']!"
59
+ [nzVirtualMinBufferPx]="props['virtualMinBufferPx']!"
60
+ [nzBackdrop]="props['backdrop']!!"
61
+ (nzExpandChange)="props['expandChange'] && props['expandChange'](field, $event)"
62
+ ></nz-tree-select>`, isInline: true, components: [{ type: i1.NzTreeSelectComponent, selector: "nz-tree-select", inputs: ["nzId", "nzAllowClear", "nzShowExpand", "nzShowLine", "nzDropdownMatchSelectWidth", "nzCheckable", "nzHideUnMatched", "nzShowIcon", "nzShowSearch", "nzDisabled", "nzAsyncData", "nzMultiple", "nzDefaultExpandAll", "nzCheckStrictly", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualHeight", "nzExpandedIcon", "nzNotFoundContent", "nzNodes", "nzOpen", "nzSize", "nzPlaceHolder", "nzDropdownStyle", "nzDropdownClassName", "nzBackdrop", "nzStatus", "nzExpandedKeys", "nzDisplayWith", "nzMaxTagCount", "nzMaxTagPlaceholder", "nzTreeTemplate"], outputs: ["nzOpenChange", "nzCleared", "nzRemoved", "nzExpandChange", "nzTreeClick", "nzTreeCheckBoxChange"], exportAs: ["nzTreeSelect"] }], directives: [{ type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
63
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldTreeSelect, decorators: [{
64
+ type: Component,
65
+ args: [{
66
+ selector: 'formly-field-treeselect',
67
+ template: ` <nz-tree-select
68
+ [formControl]="formControl"
69
+ [formlyAttributes]="field"
70
+ [nzPlaceHolder]="props.placeholder ?? ''"
71
+ [ngClass]="props['className']"
72
+ [nzAllowClear]="props['allowClear']!!"
73
+ [nzShowIcon]="props['showIcon']!!"
74
+ [nzShowSearch]="props['showSearch']!!"
75
+ [nzNotFoundContent]="props['notFoundContent']"
76
+ [nzDropdownMatchSelectWidth]="props['dropdownMatchSelectWidth']!!"
77
+ [nzDropdownStyle]="props['dropdownStyle'] ?? null"
78
+ [nzDropdownClassName]="props['dropdownClassName']"
79
+ [nzMultiple]="props['multiple']!!"
80
+ [nzHideUnMatched]="props['hideUnMatched']!!"
81
+ [nzCheckable]="props['checkable']!!"
82
+ [nzCheckStrictly]="props['checkStrictly']!!"
83
+ [nzShowExpand]="props['showExpand']!!"
84
+ [nzShowLine]="props['showLine']!!"
85
+ [nzAsyncData]="props['asyncData']"
86
+ [nzNodes]="props['nodes']!"
87
+ [nzDefaultExpandAll]="props['defaultExpandAll']!!"
88
+ [nzExpandedKeys]="props['expandedKeys']"
89
+ [nzDisplayWith]="props['displayWith']"
90
+ [nzMaxTagCount]="props['maxTagCount']"
91
+ [nzMaxTagPlaceholder]="props['maxTagPlaceholder'] ?? null"
92
+ [nzTreeTemplate]="props['treeTemplate']"
93
+ [nzVirtualHeight]="props['virtualHeight'] ?? null"
94
+ [nzVirtualItemSize]="props['virtualItemSize']!"
95
+ [nzVirtualMaxBufferPx]="props['virtualMaxBufferPx']!"
96
+ [nzVirtualMinBufferPx]="props['virtualMinBufferPx']!"
97
+ [nzBackdrop]="props['backdrop']!!"
98
+ (nzExpandChange)="props['expandChange'] && props['expandChange'](field, $event)"
99
+ ></nz-tree-select>`,
100
+ changeDetection: ChangeDetectionStrategy.OnPush
101
+ }]
102
+ }] });
103
+
104
+ class FormlyNzTreeSelectModule {
105
+ }
106
+ FormlyNzTreeSelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzTreeSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
107
+ FormlyNzTreeSelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzTreeSelectModule, declarations: [FormlyFieldTreeSelect], imports: [CommonModule,
108
+ ReactiveFormsModule,
109
+ FormlyNzFormFieldModule,
110
+ NzTreeSelectModule, i3.FormlyModule] });
111
+ FormlyNzTreeSelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzTreeSelectModule, imports: [[
112
+ CommonModule,
113
+ ReactiveFormsModule,
114
+ FormlyNzFormFieldModule,
115
+ NzTreeSelectModule,
116
+ FormlyModule.forChild({
117
+ types: [
118
+ {
119
+ name: 'tree-select',
120
+ component: FormlyFieldTreeSelect,
121
+ wrappers: ['form-field']
122
+ }
123
+ ]
124
+ })
125
+ ]] });
126
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzTreeSelectModule, decorators: [{
127
+ type: NgModule,
128
+ args: [{
129
+ declarations: [FormlyFieldTreeSelect],
130
+ imports: [
131
+ CommonModule,
132
+ ReactiveFormsModule,
133
+ FormlyNzFormFieldModule,
134
+ NzTreeSelectModule,
135
+ FormlyModule.forChild({
136
+ types: [
137
+ {
138
+ name: 'tree-select',
139
+ component: FormlyFieldTreeSelect,
140
+ wrappers: ['form-field']
141
+ }
142
+ ]
143
+ })
144
+ ]
145
+ }]
146
+ }] });
147
+
148
+ /**
149
+ * Generated bundle index. Do not edit.
150
+ */
151
+
152
+ export { FormlyFieldTreeSelect, FormlyNzTreeSelectModule };
153
+ //# sourceMappingURL=ngx-formly-zorro-antd-tree-select.mjs.map