ngx-formly-zorro-antd 14.2.2 → 14.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (295) hide show
  1. package/README.md +1 -1
  2. package/autocomplete/autocomplete.props.d.ts +38 -38
  3. package/autocomplete/index.d.ts +5 -5
  4. package/autocomplete/public_api.d.ts +1 -1
  5. package/button/button.module.d.ts +11 -11
  6. package/button/button.type.d.ts +66 -66
  7. package/button/index.d.ts +5 -5
  8. package/button/public_api.d.ts +2 -2
  9. package/card/card.module.d.ts +10 -10
  10. package/card/card.wrapper.d.ts +58 -58
  11. package/card/index.d.ts +5 -5
  12. package/card/public_api.d.ts +2 -2
  13. package/cascader/cascader.module.d.ts +12 -12
  14. package/cascader/cascader.type.d.ts +152 -152
  15. package/cascader/index.d.ts +5 -5
  16. package/cascader/public_api.d.ts +2 -2
  17. package/checkbox/checkbox.module.d.ts +12 -12
  18. package/checkbox/checkbox.type.d.ts +35 -35
  19. package/checkbox/index.d.ts +5 -5
  20. package/checkbox/public_api.d.ts +2 -2
  21. package/datepicker/datepicker.module.d.ts +12 -12
  22. package/datepicker/datepicker.props.d.ts +149 -149
  23. package/datepicker/datepicker.type.d.ts +32 -32
  24. package/datepicker/index.d.ts +5 -5
  25. package/datepicker/public_api.d.ts +2 -2
  26. package/esm2020/autocomplete/autocomplete.props.mjs +2 -2
  27. package/esm2020/autocomplete/ngx-formly-zorro-antd-autocomplete.mjs +4 -4
  28. package/esm2020/autocomplete/public_api.mjs +2 -2
  29. package/esm2020/button/button.module.mjs +61 -61
  30. package/esm2020/button/button.type.mjs +110 -110
  31. package/esm2020/button/ngx-formly-zorro-antd-button.mjs +4 -4
  32. package/esm2020/button/public_api.mjs +3 -3
  33. package/esm2020/card/card.module.mjs +43 -43
  34. package/esm2020/card/card.wrapper.mjs +47 -47
  35. package/esm2020/card/ngx-formly-zorro-antd-card.mjs +4 -4
  36. package/esm2020/card/public_api.mjs +3 -3
  37. package/esm2020/cascader/cascader.module.mjs +51 -51
  38. package/esm2020/cascader/cascader.type.mjs +112 -112
  39. package/esm2020/cascader/ngx-formly-zorro-antd-cascader.mjs +4 -4
  40. package/esm2020/cascader/public_api.mjs +3 -3
  41. package/esm2020/checkbox/checkbox.module.mjs +59 -59
  42. package/esm2020/checkbox/checkbox.type.mjs +69 -69
  43. package/esm2020/checkbox/ngx-formly-zorro-antd-checkbox.mjs +4 -4
  44. package/esm2020/checkbox/public_api.mjs +3 -3
  45. package/esm2020/datepicker/datepicker.module.mjs +51 -51
  46. package/esm2020/datepicker/datepicker.props.mjs +2 -2
  47. package/esm2020/datepicker/datepicker.type.mjs +196 -196
  48. package/esm2020/datepicker/ngx-formly-zorro-antd-datepicker.mjs +4 -4
  49. package/esm2020/datepicker/public_api.mjs +3 -3
  50. package/esm2020/form-field/form-field.module.mjs +45 -45
  51. package/esm2020/form-field/form-field.props.mjs +2 -2
  52. package/esm2020/form-field/form-field.wrapper.mjs +127 -127
  53. package/esm2020/form-field/ngx-formly-zorro-antd-form-field.mjs +4 -4
  54. package/esm2020/form-field/public_api.mjs +2 -2
  55. package/esm2020/grid/grid.module.mjs +41 -41
  56. package/esm2020/grid/grid.props.mjs +2 -2
  57. package/esm2020/grid/grid.type.mjs +71 -71
  58. package/esm2020/grid/ngx-formly-zorro-antd-grid.mjs +4 -4
  59. package/esm2020/grid/public_api.mjs +3 -3
  60. package/esm2020/index.mjs +2 -2
  61. package/esm2020/input/input.module.mjs +89 -89
  62. package/esm2020/input/input.props.mjs +2 -2
  63. package/esm2020/input/input.type.mjs +309 -309
  64. package/esm2020/input/ngx-formly-zorro-antd-input.mjs +4 -4
  65. package/esm2020/input/public_api.mjs +3 -3
  66. package/esm2020/input-group/input-group.module.mjs +47 -47
  67. package/esm2020/input-group/input-group.props.mjs +2 -2
  68. package/esm2020/input-group/input-group.type.mjs +71 -71
  69. package/esm2020/input-group/ngx-formly-zorro-antd-input-group.mjs +4 -4
  70. package/esm2020/input-group/public_api.mjs +3 -3
  71. package/esm2020/input-number/input-number.module.mjs +59 -59
  72. package/esm2020/input-number/input-number.props.mjs +2 -2
  73. package/esm2020/input-number/input-number.type.mjs +128 -128
  74. package/esm2020/input-number/ngx-formly-zorro-antd-input-number.mjs +4 -4
  75. package/esm2020/input-number/public_api.mjs +3 -3
  76. package/esm2020/lib/ui-ng-zorro-antd.mjs +2 -2
  77. package/esm2020/lib/ui-ng-zorro-antd.module.mjs +97 -97
  78. package/esm2020/ngx-formly-zorro-antd.mjs +4 -4
  79. package/esm2020/radio/ngx-formly-zorro-antd-radio.mjs +4 -4
  80. package/esm2020/radio/public_api.mjs +3 -3
  81. package/esm2020/radio/radio.module.mjs +59 -59
  82. package/esm2020/radio/radio.type.mjs +96 -96
  83. package/esm2020/rate/ngx-formly-zorro-antd-rate.mjs +4 -4
  84. package/esm2020/rate/public_api.mjs +3 -3
  85. package/esm2020/rate/rate.module.mjs +51 -51
  86. package/esm2020/rate/rate.type.mjs +63 -63
  87. package/esm2020/select/ngx-formly-zorro-antd-select.mjs +4 -4
  88. package/esm2020/select/public_api.mjs +3 -3
  89. package/esm2020/select/select.module.mjs +57 -57
  90. package/esm2020/select/select.props.mjs +2 -2
  91. package/esm2020/select/select.type.mjs +170 -167
  92. package/esm2020/slider/ngx-formly-zorro-antd-slider.mjs +4 -4
  93. package/esm2020/slider/public_api.mjs +3 -3
  94. package/esm2020/slider/slider.module.mjs +51 -51
  95. package/esm2020/slider/slider.type.mjs +67 -67
  96. package/esm2020/switch/ngx-formly-zorro-antd-switch.mjs +4 -4
  97. package/esm2020/switch/public_api.mjs +3 -3
  98. package/esm2020/switch/switch.module.mjs +51 -51
  99. package/esm2020/switch/switch.type.mjs +53 -53
  100. package/esm2020/tabs/ngx-formly-zorro-antd-tabs.mjs +4 -4
  101. package/esm2020/tabs/public_api.mjs +3 -3
  102. package/esm2020/tabs/tabs.module.mjs +41 -41
  103. package/esm2020/tabs/tabs.props.mjs +2 -2
  104. package/esm2020/tabs/tabs.wrapper.mjs +115 -115
  105. package/esm2020/textarea/ngx-formly-zorro-antd-textarea.mjs +4 -4
  106. package/esm2020/textarea/public_api.mjs +3 -3
  107. package/esm2020/textarea/textarea.module.mjs +55 -55
  108. package/esm2020/textarea/textarea.type.mjs +141 -141
  109. package/esm2020/timepicker/ngx-formly-zorro-antd-timepicker.mjs +4 -4
  110. package/esm2020/timepicker/public_api.mjs +3 -3
  111. package/esm2020/timepicker/timepicker.module.mjs +51 -51
  112. package/esm2020/timepicker/timepicker.type.mjs +96 -96
  113. package/esm2020/transfer/ngx-formly-zorro-antd-transfer.mjs +4 -4
  114. package/esm2020/transfer/public_api.mjs +3 -3
  115. package/esm2020/transfer/transfer.component.mjs +128 -128
  116. package/esm2020/transfer/transfer.module.mjs +52 -52
  117. package/esm2020/transfer/transfer.type.mjs +87 -87
  118. package/esm2020/tree-select/ngx-formly-zorro-antd-tree-select.mjs +4 -4
  119. package/esm2020/tree-select/public_api.mjs +3 -3
  120. package/esm2020/tree-select/tree-select.module.mjs +51 -51
  121. package/esm2020/tree-select/tree-select.type.mjs +100 -98
  122. package/esm2020/upload/ngx-formly-zorro-antd-upload.mjs +4 -4
  123. package/esm2020/upload/public_api.mjs +3 -3
  124. package/esm2020/upload/upload.component.mjs +253 -253
  125. package/esm2020/upload/upload.module.mjs +60 -60
  126. package/esm2020/upload/upload.props.mjs +2 -2
  127. package/esm2020/upload/upload.type.mjs +129 -129
  128. package/fesm2015/ngx-formly-zorro-antd-autocomplete.mjs +2 -2
  129. package/fesm2015/ngx-formly-zorro-antd-button.mjs +152 -152
  130. package/fesm2015/ngx-formly-zorro-antd-button.mjs.map +1 -1
  131. package/fesm2015/ngx-formly-zorro-antd-card.mjs +77 -77
  132. package/fesm2015/ngx-formly-zorro-antd-card.mjs.map +1 -1
  133. package/fesm2015/ngx-formly-zorro-antd-cascader.mjs +145 -145
  134. package/fesm2015/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  135. package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs +110 -110
  136. package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  137. package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs +229 -229
  138. package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  139. package/fesm2015/ngx-formly-zorro-antd-form-field.mjs +155 -155
  140. package/fesm2015/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  141. package/fesm2015/ngx-formly-zorro-antd-grid.mjs +97 -97
  142. package/fesm2015/ngx-formly-zorro-antd-grid.mjs.map +1 -1
  143. package/fesm2015/ngx-formly-zorro-antd-input-group.mjs +102 -102
  144. package/fesm2015/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  145. package/fesm2015/ngx-formly-zorro-antd-input-number.mjs +169 -169
  146. package/fesm2015/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  147. package/fesm2015/ngx-formly-zorro-antd-input.mjs +376 -376
  148. package/fesm2015/ngx-formly-zorro-antd-input.mjs.map +1 -1
  149. package/fesm2015/ngx-formly-zorro-antd-radio.mjs +134 -134
  150. package/fesm2015/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  151. package/fesm2015/ngx-formly-zorro-antd-rate.mjs +97 -97
  152. package/fesm2015/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  153. package/fesm2015/ngx-formly-zorro-antd-select.mjs +206 -203
  154. package/fesm2015/ngx-formly-zorro-antd-select.mjs.map +1 -1
  155. package/fesm2015/ngx-formly-zorro-antd-slider.mjs +101 -101
  156. package/fesm2015/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  157. package/fesm2015/ngx-formly-zorro-antd-switch.mjs +87 -87
  158. package/fesm2015/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  159. package/fesm2015/ngx-formly-zorro-antd-tabs.mjs +141 -141
  160. package/fesm2015/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  161. package/fesm2015/ngx-formly-zorro-antd-textarea.mjs +176 -176
  162. package/fesm2015/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  163. package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs +129 -129
  164. package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  165. package/fesm2015/ngx-formly-zorro-antd-transfer.mjs +241 -241
  166. package/fesm2015/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  167. package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs +133 -131
  168. package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  169. package/fesm2015/ngx-formly-zorro-antd-upload.mjs +410 -410
  170. package/fesm2015/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  171. package/fesm2015/ngx-formly-zorro-antd.mjs +74 -74
  172. package/fesm2015/ngx-formly-zorro-antd.mjs.map +1 -1
  173. package/fesm2020/ngx-formly-zorro-antd-autocomplete.mjs +2 -2
  174. package/fesm2020/ngx-formly-zorro-antd-button.mjs +152 -152
  175. package/fesm2020/ngx-formly-zorro-antd-button.mjs.map +1 -1
  176. package/fesm2020/ngx-formly-zorro-antd-card.mjs +77 -77
  177. package/fesm2020/ngx-formly-zorro-antd-card.mjs.map +1 -1
  178. package/fesm2020/ngx-formly-zorro-antd-cascader.mjs +145 -145
  179. package/fesm2020/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  180. package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs +110 -110
  181. package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  182. package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs +229 -229
  183. package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  184. package/fesm2020/ngx-formly-zorro-antd-form-field.mjs +155 -155
  185. package/fesm2020/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  186. package/fesm2020/ngx-formly-zorro-antd-grid.mjs +97 -97
  187. package/fesm2020/ngx-formly-zorro-antd-grid.mjs.map +1 -1
  188. package/fesm2020/ngx-formly-zorro-antd-input-group.mjs +102 -102
  189. package/fesm2020/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  190. package/fesm2020/ngx-formly-zorro-antd-input-number.mjs +169 -169
  191. package/fesm2020/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  192. package/fesm2020/ngx-formly-zorro-antd-input.mjs +376 -376
  193. package/fesm2020/ngx-formly-zorro-antd-input.mjs.map +1 -1
  194. package/fesm2020/ngx-formly-zorro-antd-radio.mjs +134 -134
  195. package/fesm2020/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  196. package/fesm2020/ngx-formly-zorro-antd-rate.mjs +97 -97
  197. package/fesm2020/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  198. package/fesm2020/ngx-formly-zorro-antd-select.mjs +206 -203
  199. package/fesm2020/ngx-formly-zorro-antd-select.mjs.map +1 -1
  200. package/fesm2020/ngx-formly-zorro-antd-slider.mjs +101 -101
  201. package/fesm2020/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  202. package/fesm2020/ngx-formly-zorro-antd-switch.mjs +87 -87
  203. package/fesm2020/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  204. package/fesm2020/ngx-formly-zorro-antd-tabs.mjs +141 -141
  205. package/fesm2020/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  206. package/fesm2020/ngx-formly-zorro-antd-textarea.mjs +176 -176
  207. package/fesm2020/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  208. package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs +129 -129
  209. package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  210. package/fesm2020/ngx-formly-zorro-antd-transfer.mjs +241 -241
  211. package/fesm2020/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  212. package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs +133 -131
  213. package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  214. package/fesm2020/ngx-formly-zorro-antd-upload.mjs +409 -409
  215. package/fesm2020/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  216. package/fesm2020/ngx-formly-zorro-antd.mjs +74 -74
  217. package/fesm2020/ngx-formly-zorro-antd.mjs.map +1 -1
  218. package/form-field/form-field.module.d.ts +11 -11
  219. package/form-field/form-field.props.d.ts +105 -105
  220. package/form-field/form-field.wrapper.d.ts +9 -9
  221. package/form-field/index.d.ts +5 -5
  222. package/form-field/public_api.d.ts +3 -3
  223. package/grid/grid.module.d.ts +10 -10
  224. package/grid/grid.props.d.ts +44 -44
  225. package/grid/grid.type.d.ts +11 -11
  226. package/grid/index.d.ts +5 -5
  227. package/grid/public_api.d.ts +3 -3
  228. package/index.d.ts +1 -1
  229. package/input/index.d.ts +5 -5
  230. package/input/input.module.d.ts +14 -14
  231. package/input/input.props.d.ts +36 -36
  232. package/input/input.type.d.ts +26 -26
  233. package/input/public_api.d.ts +2 -2
  234. package/input-group/index.d.ts +5 -5
  235. package/input-group/input-group.module.d.ts +11 -11
  236. package/input-group/input-group.props.d.ts +56 -56
  237. package/input-group/input-group.type.d.ts +22 -22
  238. package/input-group/public_api.d.ts +3 -3
  239. package/input-number/index.d.ts +5 -5
  240. package/input-number/input-number.module.d.ts +12 -12
  241. package/input-number/input-number.props.d.ts +81 -81
  242. package/input-number/input-number.type.d.ts +24 -24
  243. package/input-number/public_api.d.ts +2 -2
  244. package/lib/ui-ng-zorro-antd.d.ts +1 -1
  245. package/lib/ui-ng-zorro-antd.module.d.ts +27 -27
  246. package/package.json +2 -2
  247. package/radio/index.d.ts +5 -5
  248. package/radio/public_api.d.ts +2 -2
  249. package/radio/radio.module.d.ts +14 -14
  250. package/radio/radio.type.d.ts +38 -38
  251. package/rate/index.d.ts +5 -5
  252. package/rate/public_api.d.ts +2 -2
  253. package/rate/rate.module.d.ts +12 -12
  254. package/rate/rate.type.d.ts +57 -57
  255. package/select/index.d.ts +5 -5
  256. package/select/public_api.d.ts +2 -2
  257. package/select/select.module.d.ts +13 -13
  258. package/select/select.props.d.ts +171 -166
  259. package/select/select.type.d.ts +36 -35
  260. package/slider/index.d.ts +5 -5
  261. package/slider/public_api.d.ts +2 -2
  262. package/slider/slider.module.d.ts +12 -12
  263. package/slider/slider.type.d.ts +76 -76
  264. package/switch/index.d.ts +5 -5
  265. package/switch/public_api.d.ts +2 -2
  266. package/switch/switch.module.d.ts +12 -12
  267. package/switch/switch.type.d.ts +44 -44
  268. package/tabs/index.d.ts +5 -5
  269. package/tabs/public_api.d.ts +2 -2
  270. package/tabs/tabs.module.d.ts +10 -10
  271. package/tabs/tabs.props.d.ts +126 -126
  272. package/tabs/tabs.wrapper.d.ts +28 -28
  273. package/textarea/index.d.ts +5 -5
  274. package/textarea/public_api.d.ts +2 -2
  275. package/textarea/textarea.module.d.ts +13 -13
  276. package/textarea/textarea.type.d.ts +39 -39
  277. package/timepicker/index.d.ts +5 -5
  278. package/timepicker/public_api.d.ts +2 -2
  279. package/timepicker/timepicker.module.d.ts +12 -12
  280. package/timepicker/timepicker.type.d.ts +138 -138
  281. package/transfer/index.d.ts +5 -5
  282. package/transfer/public_api.d.ts +2 -2
  283. package/transfer/transfer.component.d.ts +26 -26
  284. package/transfer/transfer.module.d.ts +13 -13
  285. package/transfer/transfer.type.d.ts +118 -118
  286. package/tree-select/index.d.ts +5 -5
  287. package/tree-select/public_api.d.ts +2 -2
  288. package/tree-select/tree-select.module.d.ts +12 -12
  289. package/tree-select/tree-select.type.d.ts +163 -158
  290. package/upload/index.d.ts +5 -5
  291. package/upload/public_api.d.ts +2 -2
  292. package/upload/upload.component.d.ts +33 -33
  293. package/upload/upload.module.d.ts +15 -15
  294. package/upload/upload.props.d.ts +173 -173
  295. package/upload/upload.type.d.ts +29 -29
@@ -10,141 +10,143 @@ import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
10
10
  import * as i3 from 'ng-zorro-antd/tree-select';
11
11
  import { NzTreeSelectModule } from 'ng-zorro-antd/tree-select';
12
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: "14.2.1", ngImport: i0, type: FormlyFieldTreeSelect, deps: null, target: i0.ɵɵFactoryTarget.Component });
30
- FormlyFieldTreeSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", 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, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.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"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
63
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", 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
- }]
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: "14.2.1", ngImport: i0, type: FormlyFieldTreeSelect, deps: null, target: i0.ɵɵFactoryTarget.Component });
30
+ FormlyFieldTreeSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", 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
+ [nzPlacement]="props['placement']"
55
+ [nzMaxTagPlaceholder]="props['maxTagPlaceholder'] ?? null"
56
+ [nzTreeTemplate]="props['treeTemplate']"
57
+ [nzVirtualHeight]="props['virtualHeight'] ?? null"
58
+ [nzVirtualItemSize]="props['virtualItemSize']!"
59
+ [nzVirtualMaxBufferPx]="props['virtualMaxBufferPx']!"
60
+ [nzVirtualMinBufferPx]="props['virtualMinBufferPx']!"
61
+ [nzBackdrop]="props['backdrop']!!"
62
+ (nzExpandChange)="props['expandChange'] && props['expandChange'](field, $event)"
63
+ ></nz-tree-select>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.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", "nzPlacement", "nzExpandedKeys", "nzDisplayWith", "nzMaxTagCount", "nzMaxTagPlaceholder", "nzTreeTemplate"], outputs: ["nzOpenChange", "nzCleared", "nzRemoved", "nzExpandChange", "nzTreeClick", "nzTreeCheckBoxChange"], exportAs: ["nzTreeSelect"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
64
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldTreeSelect, decorators: [{
65
+ type: Component,
66
+ args: [{
67
+ selector: 'formly-field-treeselect',
68
+ template: ` <nz-tree-select
69
+ [formControl]="formControl"
70
+ [formlyAttributes]="field"
71
+ [nzPlaceHolder]="props.placeholder ?? ''"
72
+ [ngClass]="props['className']"
73
+ [nzAllowClear]="props['allowClear']!!"
74
+ [nzShowIcon]="props['showIcon']!!"
75
+ [nzShowSearch]="props['showSearch']!!"
76
+ [nzNotFoundContent]="props['notFoundContent']"
77
+ [nzDropdownMatchSelectWidth]="props['dropdownMatchSelectWidth']!!"
78
+ [nzDropdownStyle]="props['dropdownStyle'] ?? null"
79
+ [nzDropdownClassName]="props['dropdownClassName']"
80
+ [nzMultiple]="props['multiple']!!"
81
+ [nzHideUnMatched]="props['hideUnMatched']!!"
82
+ [nzCheckable]="props['checkable']!!"
83
+ [nzCheckStrictly]="props['checkStrictly']!!"
84
+ [nzShowExpand]="props['showExpand']!!"
85
+ [nzShowLine]="props['showLine']!!"
86
+ [nzAsyncData]="props['asyncData']"
87
+ [nzNodes]="props['nodes']!"
88
+ [nzDefaultExpandAll]="props['defaultExpandAll']!!"
89
+ [nzExpandedKeys]="props['expandedKeys']"
90
+ [nzDisplayWith]="props['displayWith']"
91
+ [nzMaxTagCount]="props['maxTagCount']"
92
+ [nzPlacement]="props['placement']"
93
+ [nzMaxTagPlaceholder]="props['maxTagPlaceholder'] ?? null"
94
+ [nzTreeTemplate]="props['treeTemplate']"
95
+ [nzVirtualHeight]="props['virtualHeight'] ?? null"
96
+ [nzVirtualItemSize]="props['virtualItemSize']!"
97
+ [nzVirtualMaxBufferPx]="props['virtualMaxBufferPx']!"
98
+ [nzVirtualMinBufferPx]="props['virtualMinBufferPx']!"
99
+ [nzBackdrop]="props['backdrop']!!"
100
+ (nzExpandChange)="props['expandChange'] && props['expandChange'](field, $event)"
101
+ ></nz-tree-select>`,
102
+ changeDetection: ChangeDetectionStrategy.OnPush
103
+ }]
102
104
  }] });
103
105
 
104
- class FormlyNzTreeSelectModule {
105
- }
106
- FormlyNzTreeSelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzTreeSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
107
- FormlyNzTreeSelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzTreeSelectModule, declarations: [FormlyFieldTreeSelect], imports: [CommonModule,
108
- ReactiveFormsModule,
109
- FormlyNzFormFieldModule,
110
- NzTreeSelectModule, i4.FormlyModule] });
111
- FormlyNzTreeSelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzTreeSelectModule, imports: [CommonModule,
112
- ReactiveFormsModule,
113
- FormlyNzFormFieldModule,
114
- NzTreeSelectModule,
115
- FormlyModule.forChild({
116
- types: [
117
- {
118
- name: 'tree-select',
119
- component: FormlyFieldTreeSelect,
120
- wrappers: ['form-field']
121
- }
122
- ]
123
- })] });
124
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzTreeSelectModule, decorators: [{
125
- type: NgModule,
126
- args: [{
127
- declarations: [FormlyFieldTreeSelect],
128
- imports: [
129
- CommonModule,
130
- ReactiveFormsModule,
131
- FormlyNzFormFieldModule,
132
- NzTreeSelectModule,
133
- FormlyModule.forChild({
134
- types: [
135
- {
136
- name: 'tree-select',
137
- component: FormlyFieldTreeSelect,
138
- wrappers: ['form-field']
139
- }
140
- ]
141
- })
142
- ]
143
- }]
106
+ class FormlyNzTreeSelectModule {
107
+ }
108
+ FormlyNzTreeSelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzTreeSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
109
+ FormlyNzTreeSelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzTreeSelectModule, declarations: [FormlyFieldTreeSelect], imports: [CommonModule,
110
+ ReactiveFormsModule,
111
+ FormlyNzFormFieldModule,
112
+ NzTreeSelectModule, i4.FormlyModule] });
113
+ FormlyNzTreeSelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyNzTreeSelectModule, imports: [CommonModule,
114
+ ReactiveFormsModule,
115
+ FormlyNzFormFieldModule,
116
+ NzTreeSelectModule,
117
+ FormlyModule.forChild({
118
+ types: [
119
+ {
120
+ name: 'tree-select',
121
+ component: FormlyFieldTreeSelect,
122
+ wrappers: ['form-field']
123
+ }
124
+ ]
125
+ })] });
126
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", 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
+ }]
144
146
  }] });
145
147
 
146
- /**
147
- * Generated bundle index. Do not edit.
148
+ /**
149
+ * Generated bundle index. Do not edit.
148
150
  */
149
151
 
150
152
  export { FormlyFieldTreeSelect, FormlyNzTreeSelectModule };
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-tree-select.mjs","sources":["../../../../packages/formlyantd/tree-select/src/tree-select.type.ts","../../../../packages/formlyantd/tree-select/src/tree-select.module.ts","../../../../packages/formlyantd/tree-select/src/ngx-formly-zorro-antd-tree-select.ts"],"sourcesContent":["import { Component, Type, TemplateRef, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\nimport type { NzFormatEmitEvent, NzTreeNode, NzTreeNodeOptions } from 'ng-zorro-antd/tree';\nimport type { NgStyleInterface } from 'ng-zorro-antd/core/types';\n\ninterface TreeSelectProps extends FormlyFieldProps {\n /**\n * 显示清除按钮\n * @default false\n */\n allowClear?: boolean;\n\n /**\n * 是否展示 TreeNode title 前的图标,没有默认样式\n * @default false\n */\n showIcon?: boolean;\n\n /**\n * 显示搜索框\n * @default false\n */\n showSearch?: boolean;\n\n /**\n * 当下拉列表为空时显示的内容\n */\n notFoundContent?: string;\n\n /**\n * 下拉菜单和选择器同宽\n * @default true\n */\n dropdownMatchSelectWidth?: boolean;\n\n /**\n * 下拉菜单的样式\n */\n dropdownStyle?: NgStyleInterface | null;\n\n /**\n * 下拉菜单的 className 属性\n */\n dropdownClassName?: string;\n\n /**\n * 支持多选(当设置 nzCheckable 时自动变为true)\n * @default false\n */\n multiple?: boolean;\n\n /**\n * 搜索隐藏未匹配的节点\n * @default false\n */\n hideUnMatched?: boolean;\n\n /**\n * 节点前添加 Checkbox 复选框\n * @default false\n */\n checkable?: boolean;\n\n /**\n * checkable 状态下节点选择完全受控(父子节点选中状态不再关联)\n * @default false\n */\n checkStrictly?: boolean;\n\n /**\n * 节点前添加展开图标\n * @default true\n */\n showExpand?: boolean;\n\n /**\n * 是否展示连接线\n * @default false\n */\n showLine?: boolean;\n\n /**\n * 是否异步加载(显示加载状态)\n * @default false\n */\n asyncData?: boolean;\n\n /**\n * treeNodes 数据\n * @default []\n */\n nodes?: NzTreeNodeOptions[];\n\n /**\n * 默认展开所有树节点\n * @default false\n */\n defaultExpandAll?: boolean;\n\n /**\n * 默认展开指定的树节点\n */\n expandedKeys?: string[];\n\n /**\n * \t如何在输入框显示所选的节点值的方法\n * @default (node: NzTreeNode) => node.title\n */\n displayWith?: (node: NzTreeNode) => string;\n\n /**\n * 最多显示多少个 tag\n *\n */\n maxTagCount?: number;\n\n /**\n * 隐藏 tag 时显示的内容\n */\n maxTagPlaceholder?: TemplateRef<{ $implicit: NzTreeNode[] }>;\n\n /**\n * 自定义节点\n */\n treeTemplate?: TemplateRef<{ $implicit: NzTreeNode }>;\n\n /**\n * 虚拟滚动的总高度\n */\n virtualHeight?: string | null;\n\n /**\n * 虚拟滚动时每一列的高度,与 cdk itemSize 相同\n * @default 28\n */\n virtualItemSize?: number;\n\n /**\n * 缓冲区最大像素高度,与 cdk maxBufferPx 相同\n * @default 500\n */\n virtualMaxBufferPx?: number;\n\n /**\n * 缓冲区最小像素高度,低于该值时将加载新结构,与 cdk minBufferPx 相同\n * @default 28\n */\n virtualMinBufferPx?: number;\n\n /**\n * 浮层是否应带有背景板\n * @default false\n */\n backdrop?: boolean;\n\n /**\n * 点击展开树节点图标调用\n */\n expandChange?: (field: FormlyFieldConfig, value: NzFormatEmitEvent) => void;\n}\n\nexport interface FormlyTreeSelectFieldConfig extends FormlyFieldConfig<TreeSelectProps> {\n type: 'tree-select' | Type<FormlyFieldTreeSelect>;\n}\n\n@Component({\n selector: 'formly-field-treeselect',\n template: ` <nz-tree-select\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [ngClass]=\"props['className']\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzShowIcon]=\"props['showIcon']!!\"\n [nzShowSearch]=\"props['showSearch']!!\"\n [nzNotFoundContent]=\"props['notFoundContent']\"\n [nzDropdownMatchSelectWidth]=\"props['dropdownMatchSelectWidth']!!\"\n [nzDropdownStyle]=\"props['dropdownStyle'] ?? null\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzMultiple]=\"props['multiple']!!\"\n [nzHideUnMatched]=\"props['hideUnMatched']!!\"\n [nzCheckable]=\"props['checkable']!!\"\n [nzCheckStrictly]=\"props['checkStrictly']!!\"\n [nzShowExpand]=\"props['showExpand']!!\"\n [nzShowLine]=\"props['showLine']!!\"\n [nzAsyncData]=\"props['asyncData']\"\n [nzNodes]=\"props['nodes']!\"\n [nzDefaultExpandAll]=\"props['defaultExpandAll']!!\"\n [nzExpandedKeys]=\"props['expandedKeys']\"\n [nzDisplayWith]=\"props['displayWith']\"\n [nzMaxTagCount]=\"props['maxTagCount']\"\n [nzMaxTagPlaceholder]=\"props['maxTagPlaceholder'] ?? null\"\n [nzTreeTemplate]=\"props['treeTemplate']\"\n [nzVirtualHeight]=\"props['virtualHeight'] ?? null\"\n [nzVirtualItemSize]=\"props['virtualItemSize']!\"\n [nzVirtualMaxBufferPx]=\"props['virtualMaxBufferPx']!\"\n [nzVirtualMinBufferPx]=\"props['virtualMinBufferPx']!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n (nzExpandChange)=\"props['expandChange'] && props['expandChange'](field, $event)\"\n ></nz-tree-select>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldTreeSelect extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n dropdownMatchSelectWidth: true,\n showExpand: true,\n nodes: [],\n displayWith: (node: NzTreeNode) => node.title,\n virtualItemSize: 28,\n virtualMaxBufferPx: 500,\n virtualMinBufferPx: 28\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzTreeSelectModule } from 'ng-zorro-antd/tree-select';\nimport { FormlyFieldTreeSelect } from './tree-select.type';\n\n@NgModule({\n declarations: [FormlyFieldTreeSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzTreeSelectModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'tree-select',\n component: FormlyFieldTreeSelect,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzTreeSelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\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A;iBACF,CAAA;;;AC5BD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-tree-select.mjs","sources":["../../../../packages/formlyantd/tree-select/src/tree-select.type.ts","../../../../packages/formlyantd/tree-select/src/tree-select.module.ts","../../../../packages/formlyantd/tree-select/src/ngx-formly-zorro-antd-tree-select.ts"],"sourcesContent":["import { Component, Type, TemplateRef, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport type { NzFormatEmitEvent, NzTreeNode, NzTreeNodeOptions } from 'ng-zorro-antd/tree';\r\nimport type { NzPlacementType } from 'ng-zorro-antd/tree-select';\r\nimport type { NgStyleInterface } from 'ng-zorro-antd/core/types';\r\n\r\ninterface TreeSelectProps extends FormlyFieldProps {\r\n /**\r\n * 显示清除按钮\r\n * @default false\r\n */\r\n allowClear?: boolean;\r\n\r\n /**\r\n * 是否展示 TreeNode title 前的图标,没有默认样式\r\n * @default false\r\n */\r\n showIcon?: boolean;\r\n\r\n /**\r\n * 显示搜索框\r\n * @default false\r\n */\r\n showSearch?: boolean;\r\n\r\n /**\r\n * 当下拉列表为空时显示的内容\r\n */\r\n notFoundContent?: string;\r\n\r\n /**\r\n * 下拉菜单和选择器同宽\r\n * @default true\r\n */\r\n dropdownMatchSelectWidth?: boolean;\r\n\r\n /**\r\n * 下拉菜单的样式\r\n */\r\n dropdownStyle?: NgStyleInterface | null;\r\n\r\n /**\r\n * 下拉菜单的 className 属性\r\n */\r\n dropdownClassName?: string;\r\n\r\n /**\r\n * 选择框弹出的位置\r\n */\r\n placement?: NzPlacementType;\r\n\r\n /**\r\n * 支持多选(当设置 nzCheckable 时自动变为true)\r\n * @default false\r\n */\r\n multiple?: boolean;\r\n\r\n /**\r\n * 搜索隐藏未匹配的节点\r\n * @default false\r\n */\r\n hideUnMatched?: boolean;\r\n\r\n /**\r\n * 节点前添加 Checkbox 复选框\r\n * @default false\r\n */\r\n checkable?: boolean;\r\n\r\n /**\r\n * checkable 状态下节点选择完全受控(父子节点选中状态不再关联)\r\n * @default false\r\n */\r\n checkStrictly?: boolean;\r\n\r\n /**\r\n * 节点前添加展开图标\r\n * @default true\r\n */\r\n showExpand?: boolean;\r\n\r\n /**\r\n * 是否展示连接线\r\n * @default false\r\n */\r\n showLine?: boolean;\r\n\r\n /**\r\n * 是否异步加载(显示加载状态)\r\n * @default false\r\n */\r\n asyncData?: boolean;\r\n\r\n /**\r\n * treeNodes 数据\r\n * @default []\r\n */\r\n nodes?: NzTreeNodeOptions[];\r\n\r\n /**\r\n * 默认展开所有树节点\r\n * @default false\r\n */\r\n defaultExpandAll?: boolean;\r\n\r\n /**\r\n * 默认展开指定的树节点\r\n */\r\n expandedKeys?: string[];\r\n\r\n /**\r\n * \t如何在输入框显示所选的节点值的方法\r\n * @default (node: NzTreeNode) => node.title\r\n */\r\n displayWith?: (node: NzTreeNode) => string;\r\n\r\n /**\r\n * 最多显示多少个 tag\r\n *\r\n */\r\n maxTagCount?: number;\r\n\r\n /**\r\n * 隐藏 tag 时显示的内容\r\n */\r\n maxTagPlaceholder?: TemplateRef<{ $implicit: NzTreeNode[] }>;\r\n\r\n /**\r\n * 自定义节点\r\n */\r\n treeTemplate?: TemplateRef<{ $implicit: NzTreeNode }>;\r\n\r\n /**\r\n * 虚拟滚动的总高度\r\n */\r\n virtualHeight?: string | null;\r\n\r\n /**\r\n * 虚拟滚动时每一列的高度,与 cdk itemSize 相同\r\n * @default 28\r\n */\r\n virtualItemSize?: number;\r\n\r\n /**\r\n * 缓冲区最大像素高度,与 cdk maxBufferPx 相同\r\n * @default 500\r\n */\r\n virtualMaxBufferPx?: number;\r\n\r\n /**\r\n * 缓冲区最小像素高度,低于该值时将加载新结构,与 cdk minBufferPx 相同\r\n * @default 28\r\n */\r\n virtualMinBufferPx?: number;\r\n\r\n /**\r\n * 浮层是否应带有背景板\r\n * @default false\r\n */\r\n backdrop?: boolean;\r\n\r\n /**\r\n * 点击展开树节点图标调用\r\n */\r\n expandChange?: (field: FormlyFieldConfig, value: NzFormatEmitEvent) => void;\r\n}\r\n\r\nexport interface FormlyTreeSelectFieldConfig extends FormlyFieldConfig<TreeSelectProps> {\r\n type: 'tree-select' | Type<FormlyFieldTreeSelect>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-treeselect',\r\n template: ` <nz-tree-select\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\r\n [ngClass]=\"props['className']\"\r\n [nzAllowClear]=\"props['allowClear']!!\"\r\n [nzShowIcon]=\"props['showIcon']!!\"\r\n [nzShowSearch]=\"props['showSearch']!!\"\r\n [nzNotFoundContent]=\"props['notFoundContent']\"\r\n [nzDropdownMatchSelectWidth]=\"props['dropdownMatchSelectWidth']!!\"\r\n [nzDropdownStyle]=\"props['dropdownStyle'] ?? null\"\r\n [nzDropdownClassName]=\"props['dropdownClassName']\"\r\n [nzMultiple]=\"props['multiple']!!\"\r\n [nzHideUnMatched]=\"props['hideUnMatched']!!\"\r\n [nzCheckable]=\"props['checkable']!!\"\r\n [nzCheckStrictly]=\"props['checkStrictly']!!\"\r\n [nzShowExpand]=\"props['showExpand']!!\"\r\n [nzShowLine]=\"props['showLine']!!\"\r\n [nzAsyncData]=\"props['asyncData']\"\r\n [nzNodes]=\"props['nodes']!\"\r\n [nzDefaultExpandAll]=\"props['defaultExpandAll']!!\"\r\n [nzExpandedKeys]=\"props['expandedKeys']\"\r\n [nzDisplayWith]=\"props['displayWith']\"\r\n [nzMaxTagCount]=\"props['maxTagCount']\"\r\n [nzPlacement]=\"props['placement']\"\r\n [nzMaxTagPlaceholder]=\"props['maxTagPlaceholder'] ?? null\"\r\n [nzTreeTemplate]=\"props['treeTemplate']\"\r\n [nzVirtualHeight]=\"props['virtualHeight'] ?? null\"\r\n [nzVirtualItemSize]=\"props['virtualItemSize']!\"\r\n [nzVirtualMaxBufferPx]=\"props['virtualMaxBufferPx']!\"\r\n [nzVirtualMinBufferPx]=\"props['virtualMinBufferPx']!\"\r\n [nzBackdrop]=\"props['backdrop']!!\"\r\n (nzExpandChange)=\"props['expandChange'] && props['expandChange'](field, $event)\"\r\n ></nz-tree-select>`,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldTreeSelect extends FieldType<FieldTypeConfig> {\r\n override defaultOptions = {\r\n props: {\r\n dropdownMatchSelectWidth: true,\r\n showExpand: true,\r\n nodes: [],\r\n displayWith: (node: NzTreeNode) => node.title,\r\n virtualItemSize: 28,\r\n virtualMaxBufferPx: 500,\r\n virtualMinBufferPx: 28\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 { NzTreeSelectModule } from 'ng-zorro-antd/tree-select';\r\nimport { FormlyFieldTreeSelect } from './tree-select.type';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldTreeSelect],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n\r\n NzTreeSelectModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'tree-select',\r\n component: FormlyFieldTreeSelect,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzTreeSelectModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAmNM,MAAO,qBAAsB,SAAQ,SAA0B,CAAA;AAtCrE,IAAA,WAAA,GAAA;;QAuCW,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,wBAAwB,EA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