ngx-formly-zorro-antd 15.0.2 → 16.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (246) hide show
  1. package/esm2022/button/button.module.mjs +61 -0
  2. package/{esm2020 → esm2022}/button/button.type.mjs +6 -6
  3. package/esm2022/card/card.module.mjs +43 -0
  4. package/{esm2020 → esm2022}/card/card.wrapper.mjs +6 -6
  5. package/esm2022/cascader/cascader.module.mjs +51 -0
  6. package/{esm2020 → esm2022}/cascader/cascader.type.mjs +6 -6
  7. package/esm2022/checkbox/checkbox.module.mjs +59 -0
  8. package/{esm2020 → esm2022}/checkbox/checkbox.type.mjs +6 -6
  9. package/esm2022/datepicker/datepicker.module.mjs +51 -0
  10. package/{esm2020 → esm2022}/datepicker/datepicker.type.mjs +6 -6
  11. package/esm2022/form-field/form-field.module.mjs +45 -0
  12. package/esm2022/form-field/form-field.props.mjs +2 -0
  13. package/{esm2020 → esm2022}/form-field/form-field.wrapper.mjs +10 -6
  14. package/esm2022/grid/grid.module.mjs +41 -0
  15. package/{esm2020 → esm2022}/grid/grid.type.mjs +6 -6
  16. package/esm2022/input/input.module.mjs +89 -0
  17. package/{esm2020 → esm2022}/input/input.type.mjs +6 -6
  18. package/esm2022/input-group/input-group.module.mjs +47 -0
  19. package/{esm2020 → esm2022}/input-group/input-group.type.mjs +6 -6
  20. package/esm2022/input-number/input-number.module.mjs +59 -0
  21. package/{esm2020 → esm2022}/input-number/input-number.type.mjs +6 -6
  22. package/{esm2020 → esm2022}/lib/ui-ng-zorro-antd.module.mjs +45 -45
  23. package/esm2022/radio/radio.module.mjs +59 -0
  24. package/{esm2020 → esm2022}/radio/radio.type.mjs +6 -6
  25. package/esm2022/rate/rate.module.mjs +51 -0
  26. package/{esm2020 → esm2022}/rate/rate.type.mjs +6 -6
  27. package/esm2022/select/select.module.mjs +57 -0
  28. package/{esm2020 → esm2022}/select/select.type.mjs +6 -6
  29. package/esm2022/slider/slider.module.mjs +51 -0
  30. package/{esm2020 → esm2022}/slider/slider.type.mjs +6 -6
  31. package/esm2022/switch/switch.module.mjs +51 -0
  32. package/{esm2020 → esm2022}/switch/switch.type.mjs +6 -6
  33. package/esm2022/tabs/tabs.module.mjs +41 -0
  34. package/{esm2020 → esm2022}/tabs/tabs.wrapper.mjs +6 -6
  35. package/esm2022/textarea/textarea.module.mjs +55 -0
  36. package/{esm2020 → esm2022}/textarea/textarea.type.mjs +6 -6
  37. package/esm2022/timepicker/timepicker.module.mjs +51 -0
  38. package/{esm2020 → esm2022}/timepicker/timepicker.type.mjs +6 -6
  39. package/{esm2020 → esm2022}/transfer/transfer.component.mjs +12 -12
  40. package/esm2022/transfer/transfer.module.mjs +52 -0
  41. package/{esm2020 → esm2022}/transfer/transfer.type.mjs +6 -6
  42. package/esm2022/tree-select/tree-select.module.mjs +51 -0
  43. package/{esm2020 → esm2022}/tree-select/tree-select.type.mjs +6 -6
  44. package/{esm2020 → esm2022}/upload/upload.component.mjs +12 -12
  45. package/esm2022/upload/upload.module.mjs +60 -0
  46. package/{esm2020 → esm2022}/upload/upload.props.mjs +1 -1
  47. package/{esm2020 → esm2022}/upload/upload.type.mjs +6 -6
  48. package/fesm2022/ngx-formly-zorro-antd-autocomplete.mjs.map +1 -0
  49. package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd-button.mjs +29 -29
  50. package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -0
  51. package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-card.mjs +20 -20
  52. package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -0
  53. package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-cascader.mjs +24 -24
  54. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -0
  55. package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-checkbox.mjs +28 -28
  56. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -0
  57. package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd-datepicker.mjs +24 -24
  58. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -0
  59. package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd-form-field.mjs +25 -21
  60. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -0
  61. package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-grid.mjs +19 -19
  62. package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -0
  63. package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-input-group.mjs +22 -22
  64. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -0
  65. package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-input-number.mjs +28 -28
  66. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -0
  67. package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-input.mjs +41 -41
  68. package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -0
  69. package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-radio.mjs +28 -28
  70. package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -0
  71. package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd-rate.mjs +24 -24
  72. package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -0
  73. package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-select.mjs +27 -27
  74. package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -0
  75. package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-slider.mjs +24 -24
  76. package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -0
  77. package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd-switch.mjs +24 -24
  78. package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -0
  79. package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd-tabs.mjs +19 -19
  80. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -0
  81. package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-textarea.mjs +26 -26
  82. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -0
  83. package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-timepicker.mjs +24 -24
  84. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -0
  85. package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd-transfer.mjs +35 -35
  86. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -0
  87. package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd-tree-select.mjs +24 -24
  88. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -0
  89. package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-upload.mjs +39 -39
  90. package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -0
  91. package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd.mjs +44 -44
  92. package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -0
  93. package/form-field/form-field.props.d.ts +9 -1
  94. package/form-field/form-field.wrapper.d.ts +1 -1
  95. package/package.json +87 -137
  96. package/rate/rate.type.d.ts +3 -1
  97. package/transfer/transfer.component.d.ts +1 -1
  98. package/upload/upload.component.d.ts +1 -1
  99. package/upload/upload.props.d.ts +3 -1
  100. package/esm2020/button/button.module.mjs +0 -61
  101. package/esm2020/card/card.module.mjs +0 -43
  102. package/esm2020/cascader/cascader.module.mjs +0 -51
  103. package/esm2020/checkbox/checkbox.module.mjs +0 -59
  104. package/esm2020/datepicker/datepicker.module.mjs +0 -51
  105. package/esm2020/form-field/form-field.module.mjs +0 -45
  106. package/esm2020/form-field/form-field.props.mjs +0 -2
  107. package/esm2020/grid/grid.module.mjs +0 -41
  108. package/esm2020/input/input.module.mjs +0 -89
  109. package/esm2020/input-group/input-group.module.mjs +0 -47
  110. package/esm2020/input-number/input-number.module.mjs +0 -59
  111. package/esm2020/radio/radio.module.mjs +0 -59
  112. package/esm2020/rate/rate.module.mjs +0 -51
  113. package/esm2020/select/select.module.mjs +0 -57
  114. package/esm2020/slider/slider.module.mjs +0 -51
  115. package/esm2020/switch/switch.module.mjs +0 -51
  116. package/esm2020/tabs/tabs.module.mjs +0 -41
  117. package/esm2020/textarea/textarea.module.mjs +0 -55
  118. package/esm2020/timepicker/timepicker.module.mjs +0 -51
  119. package/esm2020/transfer/transfer.module.mjs +0 -52
  120. package/esm2020/tree-select/tree-select.module.mjs +0 -51
  121. package/esm2020/upload/upload.module.mjs +0 -60
  122. package/fesm2015/ngx-formly-zorro-antd-autocomplete.mjs.map +0 -1
  123. package/fesm2015/ngx-formly-zorro-antd-button.mjs.map +0 -1
  124. package/fesm2015/ngx-formly-zorro-antd-card.mjs +0 -93
  125. package/fesm2015/ngx-formly-zorro-antd-card.mjs.map +0 -1
  126. package/fesm2015/ngx-formly-zorro-antd-cascader.mjs +0 -165
  127. package/fesm2015/ngx-formly-zorro-antd-cascader.mjs.map +0 -1
  128. package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs +0 -130
  129. package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs.map +0 -1
  130. package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs.map +0 -1
  131. package/fesm2015/ngx-formly-zorro-antd-form-field.mjs.map +0 -1
  132. package/fesm2015/ngx-formly-zorro-antd-grid.mjs +0 -114
  133. package/fesm2015/ngx-formly-zorro-antd-grid.mjs.map +0 -1
  134. package/fesm2015/ngx-formly-zorro-antd-input-group.mjs +0 -120
  135. package/fesm2015/ngx-formly-zorro-antd-input-group.mjs.map +0 -1
  136. package/fesm2015/ngx-formly-zorro-antd-input-number.mjs +0 -189
  137. package/fesm2015/ngx-formly-zorro-antd-input-number.mjs.map +0 -1
  138. package/fesm2015/ngx-formly-zorro-antd-input.mjs +0 -400
  139. package/fesm2015/ngx-formly-zorro-antd-input.mjs.map +0 -1
  140. package/fesm2015/ngx-formly-zorro-antd-radio.mjs +0 -157
  141. package/fesm2015/ngx-formly-zorro-antd-radio.mjs.map +0 -1
  142. package/fesm2015/ngx-formly-zorro-antd-rate.mjs.map +0 -1
  143. package/fesm2015/ngx-formly-zorro-antd-select.mjs +0 -228
  144. package/fesm2015/ngx-formly-zorro-antd-select.mjs.map +0 -1
  145. package/fesm2015/ngx-formly-zorro-antd-slider.mjs +0 -120
  146. package/fesm2015/ngx-formly-zorro-antd-slider.mjs.map +0 -1
  147. package/fesm2015/ngx-formly-zorro-antd-switch.mjs.map +0 -1
  148. package/fesm2015/ngx-formly-zorro-antd-tabs.mjs.map +0 -1
  149. package/fesm2015/ngx-formly-zorro-antd-textarea.mjs +0 -198
  150. package/fesm2015/ngx-formly-zorro-antd-textarea.mjs.map +0 -1
  151. package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs +0 -149
  152. package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs.map +0 -1
  153. package/fesm2015/ngx-formly-zorro-antd-transfer.mjs.map +0 -1
  154. package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs.map +0 -1
  155. package/fesm2015/ngx-formly-zorro-antd-upload.mjs +0 -438
  156. package/fesm2015/ngx-formly-zorro-antd-upload.mjs.map +0 -1
  157. package/fesm2015/ngx-formly-zorro-antd.mjs.map +0 -1
  158. package/fesm2020/ngx-formly-zorro-antd-autocomplete.mjs +0 -4
  159. package/fesm2020/ngx-formly-zorro-antd-autocomplete.mjs.map +0 -1
  160. package/fesm2020/ngx-formly-zorro-antd-button.mjs +0 -173
  161. package/fesm2020/ngx-formly-zorro-antd-button.mjs.map +0 -1
  162. package/fesm2020/ngx-formly-zorro-antd-card.mjs.map +0 -1
  163. package/fesm2020/ngx-formly-zorro-antd-cascader.mjs.map +0 -1
  164. package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs.map +0 -1
  165. package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs +0 -249
  166. package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs.map +0 -1
  167. package/fesm2020/ngx-formly-zorro-antd-form-field.mjs +0 -174
  168. package/fesm2020/ngx-formly-zorro-antd-form-field.mjs.map +0 -1
  169. package/fesm2020/ngx-formly-zorro-antd-grid.mjs.map +0 -1
  170. package/fesm2020/ngx-formly-zorro-antd-input-group.mjs.map +0 -1
  171. package/fesm2020/ngx-formly-zorro-antd-input-number.mjs.map +0 -1
  172. package/fesm2020/ngx-formly-zorro-antd-input.mjs.map +0 -1
  173. package/fesm2020/ngx-formly-zorro-antd-radio.mjs.map +0 -1
  174. package/fesm2020/ngx-formly-zorro-antd-rate.mjs +0 -116
  175. package/fesm2020/ngx-formly-zorro-antd-rate.mjs.map +0 -1
  176. package/fesm2020/ngx-formly-zorro-antd-select.mjs.map +0 -1
  177. package/fesm2020/ngx-formly-zorro-antd-slider.mjs.map +0 -1
  178. package/fesm2020/ngx-formly-zorro-antd-switch.mjs +0 -106
  179. package/fesm2020/ngx-formly-zorro-antd-switch.mjs.map +0 -1
  180. package/fesm2020/ngx-formly-zorro-antd-tabs.mjs +0 -158
  181. package/fesm2020/ngx-formly-zorro-antd-tabs.mjs.map +0 -1
  182. package/fesm2020/ngx-formly-zorro-antd-textarea.mjs.map +0 -1
  183. package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs.map +0 -1
  184. package/fesm2020/ngx-formly-zorro-antd-transfer.mjs +0 -262
  185. package/fesm2020/ngx-formly-zorro-antd-transfer.mjs.map +0 -1
  186. package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs +0 -154
  187. package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs.map +0 -1
  188. package/fesm2020/ngx-formly-zorro-antd-upload.mjs.map +0 -1
  189. package/fesm2020/ngx-formly-zorro-antd.mjs +0 -104
  190. package/fesm2020/ngx-formly-zorro-antd.mjs.map +0 -1
  191. /package/{esm2020 → esm2022}/autocomplete/autocomplete.props.mjs +0 -0
  192. /package/{esm2020 → esm2022}/autocomplete/ngx-formly-zorro-antd-autocomplete.mjs +0 -0
  193. /package/{esm2020 → esm2022}/autocomplete/public_api.mjs +0 -0
  194. /package/{esm2020 → esm2022}/button/ngx-formly-zorro-antd-button.mjs +0 -0
  195. /package/{esm2020 → esm2022}/button/public_api.mjs +0 -0
  196. /package/{esm2020 → esm2022}/card/ngx-formly-zorro-antd-card.mjs +0 -0
  197. /package/{esm2020 → esm2022}/card/public_api.mjs +0 -0
  198. /package/{esm2020 → esm2022}/cascader/ngx-formly-zorro-antd-cascader.mjs +0 -0
  199. /package/{esm2020 → esm2022}/cascader/public_api.mjs +0 -0
  200. /package/{esm2020 → esm2022}/checkbox/ngx-formly-zorro-antd-checkbox.mjs +0 -0
  201. /package/{esm2020 → esm2022}/checkbox/public_api.mjs +0 -0
  202. /package/{esm2020 → esm2022}/datepicker/datepicker.props.mjs +0 -0
  203. /package/{esm2020 → esm2022}/datepicker/ngx-formly-zorro-antd-datepicker.mjs +0 -0
  204. /package/{esm2020 → esm2022}/datepicker/public_api.mjs +0 -0
  205. /package/{esm2020 → esm2022}/form-field/ngx-formly-zorro-antd-form-field.mjs +0 -0
  206. /package/{esm2020 → esm2022}/form-field/public_api.mjs +0 -0
  207. /package/{esm2020 → esm2022}/grid/grid.props.mjs +0 -0
  208. /package/{esm2020 → esm2022}/grid/ngx-formly-zorro-antd-grid.mjs +0 -0
  209. /package/{esm2020 → esm2022}/grid/public_api.mjs +0 -0
  210. /package/{esm2020 → esm2022}/index.mjs +0 -0
  211. /package/{esm2020 → esm2022}/input/input.props.mjs +0 -0
  212. /package/{esm2020 → esm2022}/input/ngx-formly-zorro-antd-input.mjs +0 -0
  213. /package/{esm2020 → esm2022}/input/public_api.mjs +0 -0
  214. /package/{esm2020 → esm2022}/input-group/input-group.props.mjs +0 -0
  215. /package/{esm2020 → esm2022}/input-group/ngx-formly-zorro-antd-input-group.mjs +0 -0
  216. /package/{esm2020 → esm2022}/input-group/public_api.mjs +0 -0
  217. /package/{esm2020 → esm2022}/input-number/input-number.props.mjs +0 -0
  218. /package/{esm2020 → esm2022}/input-number/ngx-formly-zorro-antd-input-number.mjs +0 -0
  219. /package/{esm2020 → esm2022}/input-number/public_api.mjs +0 -0
  220. /package/{esm2020 → esm2022}/lib/ui-ng-zorro-antd.mjs +0 -0
  221. /package/{esm2020 → esm2022}/ngx-formly-zorro-antd.mjs +0 -0
  222. /package/{esm2020 → esm2022}/radio/ngx-formly-zorro-antd-radio.mjs +0 -0
  223. /package/{esm2020 → esm2022}/radio/public_api.mjs +0 -0
  224. /package/{esm2020 → esm2022}/rate/ngx-formly-zorro-antd-rate.mjs +0 -0
  225. /package/{esm2020 → esm2022}/rate/public_api.mjs +0 -0
  226. /package/{esm2020 → esm2022}/select/ngx-formly-zorro-antd-select.mjs +0 -0
  227. /package/{esm2020 → esm2022}/select/public_api.mjs +0 -0
  228. /package/{esm2020 → esm2022}/select/select.props.mjs +0 -0
  229. /package/{esm2020 → esm2022}/slider/ngx-formly-zorro-antd-slider.mjs +0 -0
  230. /package/{esm2020 → esm2022}/slider/public_api.mjs +0 -0
  231. /package/{esm2020 → esm2022}/switch/ngx-formly-zorro-antd-switch.mjs +0 -0
  232. /package/{esm2020 → esm2022}/switch/public_api.mjs +0 -0
  233. /package/{esm2020 → esm2022}/tabs/ngx-formly-zorro-antd-tabs.mjs +0 -0
  234. /package/{esm2020 → esm2022}/tabs/public_api.mjs +0 -0
  235. /package/{esm2020 → esm2022}/tabs/tabs.props.mjs +0 -0
  236. /package/{esm2020 → esm2022}/textarea/ngx-formly-zorro-antd-textarea.mjs +0 -0
  237. /package/{esm2020 → esm2022}/textarea/public_api.mjs +0 -0
  238. /package/{esm2020 → esm2022}/timepicker/ngx-formly-zorro-antd-timepicker.mjs +0 -0
  239. /package/{esm2020 → esm2022}/timepicker/public_api.mjs +0 -0
  240. /package/{esm2020 → esm2022}/transfer/ngx-formly-zorro-antd-transfer.mjs +0 -0
  241. /package/{esm2020 → esm2022}/transfer/public_api.mjs +0 -0
  242. /package/{esm2020 → esm2022}/tree-select/ngx-formly-zorro-antd-tree-select.mjs +0 -0
  243. /package/{esm2020 → esm2022}/tree-select/public_api.mjs +0 -0
  244. /package/{esm2020 → esm2022}/upload/ngx-formly-zorro-antd-upload.mjs +0 -0
  245. /package/{esm2020 → esm2022}/upload/public_api.mjs +0 -0
  246. /package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd-autocomplete.mjs +0 -0
@@ -22,9 +22,8 @@ class FormlyFieldRate extends FieldType {
22
22
  }
23
23
  };
24
24
  }
25
- }
26
- FormlyFieldRatefac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyFieldRate, deps: null, target: i0.ɵɵFactoryTarget.Component });
27
- FormlyFieldRate.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: FormlyFieldRate, selector: "formly-field-rate", usesInheritance: true, ngImport: i0, template: `
25
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldRate, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
26
+ static { thiscmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyFieldRate, selector: "formly-field-rate", usesInheritance: true, ngImport: i0, template: `
28
27
  <nz-rate
29
28
  [formControl]="formControl"
30
29
  [formlyAttributes]="field"
@@ -40,8 +39,9 @@ FormlyFieldRate.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versio
40
39
  (nzOnHoverChange)="props['hoverChange'] && props['hoverChange'](field, $event)"
41
40
  (nzOnKeyDown)="props.keydown && props.keydown(field, $event)"
42
41
  ></nz-rate>
43
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.NzRateComponent, selector: "nz-rate", inputs: ["nzAllowClear", "nzAllowHalf", "nzDisabled", "nzAutoFocus", "nzCharacter", "nzCount", "nzTooltips"], outputs: ["nzOnBlur", "nzOnFocus", "nzOnHoverChange", "nzOnKeyDown"], exportAs: ["nzRate"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
44
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyFieldRate, decorators: [{
42
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.NzRateComponent, selector: "nz-rate", inputs: ["nzAllowClear", "nzAllowHalf", "nzDisabled", "nzAutoFocus", "nzCharacter", "nzCount", "nzTooltips"], outputs: ["nzOnBlur", "nzOnFocus", "nzOnHoverChange", "nzOnKeyDown"], exportAs: ["nzRate"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
43
+ }
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldRate, decorators: [{
45
45
  type: Component,
46
46
  args: [{
47
47
  selector: 'formly-field-rate',
@@ -67,26 +67,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
67
67
  }] });
68
68
 
69
69
  class FormlyNzRateModule {
70
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzRateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
71
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzRateModule, declarations: [FormlyFieldRate], imports: [CommonModule,
72
+ ReactiveFormsModule,
73
+ FormlyNzFormFieldModule,
74
+ NzRateModule, i3.FormlyModule] }); }
75
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzRateModule, imports: [CommonModule,
76
+ ReactiveFormsModule,
77
+ FormlyNzFormFieldModule,
78
+ NzRateModule,
79
+ FormlyModule.forChild({
80
+ types: [
81
+ {
82
+ name: 'rate',
83
+ component: FormlyFieldRate,
84
+ wrappers: ['form-field']
85
+ }
86
+ ]
87
+ })] }); }
70
88
  }
71
- FormlyNzRateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzRateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
72
- FormlyNzRateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzRateModule, declarations: [FormlyFieldRate], imports: [CommonModule,
73
- ReactiveFormsModule,
74
- FormlyNzFormFieldModule,
75
- NzRateModule, i3.FormlyModule] });
76
- FormlyNzRateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzRateModule, imports: [CommonModule,
77
- ReactiveFormsModule,
78
- FormlyNzFormFieldModule,
79
- NzRateModule,
80
- FormlyModule.forChild({
81
- types: [
82
- {
83
- name: 'rate',
84
- component: FormlyFieldRate,
85
- wrappers: ['form-field']
86
- }
87
- ]
88
- })] });
89
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzRateModule, decorators: [{
89
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzRateModule, decorators: [{
90
90
  type: NgModule,
91
91
  args: [{
92
92
  declarations: [FormlyFieldRate],
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-formly-zorro-antd-rate.mjs","sources":["../../../../packages/formlyantd/rate/src/rate.type.ts","../../../../packages/formlyantd/rate/src/rate.module.ts","../../../../packages/formlyantd/rate/src/ngx-formly-zorro-antd-rate.ts"],"sourcesContent":["import { Component, TemplateRef, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\ninterface RateProps extends FormlyFieldProps {\n /**\n * 是否允许再次点击后清除\n * @default true\n */\n allowClear?: boolean;\n\n /**\n * 是否允许半选\n * @default false\n */\n allowHalf?: boolean;\n\n /**\n * 自动获取焦点\n * @default false\n */\n autoFocus?: boolean;\n\n /**\n * 自定义字符\n * @default <span nz-icon nzType=\"star\"></span>\n */\n character?: TemplateRef<{\n $implicit: number;\n }>;\n\n /**\n * star 总数\n * @default 5\n */\n count?: number;\n\n /**\n * 自定义每项的提示信息\n * @default []\n */\n tooltips?: string[];\n\n /**\n * 鼠标经过时数值变化的回调\n */\n hoverChange?: (field: FormlyFieldConfig, event?: number) => void;\n}\n\nexport interface FormlyRateFieldConfig extends FormlyFieldConfig<RateProps> {\n type: 'rate' | Type<FormlyFieldRate>;\n}\n\n@Component({\n selector: 'formly-field-rate',\n template: `\n <nz-rate\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAllowHalf]=\"props['allowHalf']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzCharacter]=\"props['character']!\"\n [nzCount]=\"props['count']\"\n [nzTooltips]=\"props['tooltips']!\"\n (ngModelChange)=\"props.change && props.change(field, $event)\"\n (nzOnBlur)=\"props.blur && props.blur(field, $event)\"\n (nzOnFocus)=\"props.focus && props.focus(field, $event)\"\n (nzOnHoverChange)=\"props['hoverChange'] && props['hoverChange'](field, $event)\"\n (nzOnKeyDown)=\"props.keydown && props.keydown(field, $event)\"\n ></nz-rate>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldRate extends FieldType<FieldTypeConfig<RateProps>> {\n override defaultOptions = {\n props: {\n allowClear: true,\n allowHalf: false,\n autoFocus: false,\n count: 5,\n tooltips: []\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzRateModule } from 'ng-zorro-antd/rate';\n\nimport { FormlyFieldRate } from './rate.type';\n\n@NgModule({\n declarations: [FormlyFieldRate],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzRateModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'rate',\n component: FormlyFieldRate,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzRateModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AA0EM,MAAO,eAAgB,SAAQ,SAAqC,CAAA;AArB1E,IAAA,WAAA,GAAA;;AAsBW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,SAAS,EAAE,KAAK;AAChB,gBAAA,SAAS,EAAE,KAAK;AAChB,gBAAA,KAAK,EAAE,CAAC;AACR,gBAAA,QAAQ,EAAE,EAAE;AACb,aAAA;SACF,CAAC;AACH,KAAA;8GAVY,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAe,EAnBhB,QAAA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ACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC5BD;;AAEG;;;;"}
@@ -42,9 +42,8 @@ class FormlyFieldSelect extends FieldType {
42
42
  this.select.nzFilterOption = this.props['filterOption'];
43
43
  }
44
44
  }
45
- }
46
- FormlyFieldSelectfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyFieldSelect, deps: null, target: i0.ɵɵFactoryTarget.Component });
47
- FormlyFieldSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: FormlyFieldSelect, selector: "formly-field-select", viewQueries: [{ propertyName: "select", first: true, predicate: ["select"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
45
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldSelect, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
46
+ static { thiscmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyFieldSelect, selector: "formly-field-select", viewQueries: [{ propertyName: "select", first: true, predicate: ["select"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
48
47
  <nz-select
49
48
  #select
50
49
  [class.ng-dirty]="showError"
@@ -102,8 +101,9 @@ FormlyFieldSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
102
101
  </ng-template>
103
102
  </ng-container>
104
103
  </nz-select>
105
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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.NzOptionComponent, selector: "nz-option", inputs: ["nzLabel", "nzValue", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i3.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus"], exportAs: ["nzSelect"] }, { kind: "component", type: i3.NzOptionGroupComponent, selector: "nz-option-group", inputs: ["nzLabel"], exportAs: ["nzOptionGroup"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.FormlySelectOptionsPipe, name: "formlySelectOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
106
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyFieldSelect, decorators: [{
104
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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.NzOptionComponent, selector: "nz-option", inputs: ["nzLabel", "nzValue", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i3.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus"], exportAs: ["nzSelect"] }, { kind: "component", type: i3.NzOptionGroupComponent, selector: "nz-option-group", inputs: ["nzLabel"], exportAs: ["nzOptionGroup"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.FormlySelectOptionsPipe, name: "formlySelectOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
105
+ }
106
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldSelect, decorators: [{
107
107
  type: Component,
108
108
  args: [{
109
109
  selector: 'formly-field-select',
@@ -174,29 +174,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
174
174
  }] } });
175
175
 
176
176
  class FormlyNzSelectModule {
177
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
178
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzSelectModule, declarations: [FormlyFieldSelect], imports: [CommonModule,
179
+ ReactiveFormsModule,
180
+ NzSelectModule,
181
+ FormlyNzFormFieldModule,
182
+ FormlySelectModule, i4.FormlyModule] }); }
183
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzSelectModule, imports: [CommonModule,
184
+ ReactiveFormsModule,
185
+ NzSelectModule,
186
+ FormlyNzFormFieldModule,
187
+ FormlySelectModule,
188
+ FormlyModule.forChild({
189
+ types: [
190
+ {
191
+ name: 'select',
192
+ component: FormlyFieldSelect,
193
+ wrappers: ['form-field']
194
+ },
195
+ { name: 'enum', extends: 'select' }
196
+ ]
197
+ })] }); }
177
198
  }
178
- FormlyNzSelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
179
- FormlyNzSelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzSelectModule, declarations: [FormlyFieldSelect], imports: [CommonModule,
180
- ReactiveFormsModule,
181
- NzSelectModule,
182
- FormlyNzFormFieldModule,
183
- FormlySelectModule, i4.FormlyModule] });
184
- FormlyNzSelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzSelectModule, imports: [CommonModule,
185
- ReactiveFormsModule,
186
- NzSelectModule,
187
- FormlyNzFormFieldModule,
188
- FormlySelectModule,
189
- FormlyModule.forChild({
190
- types: [
191
- {
192
- name: 'select',
193
- component: FormlyFieldSelect,
194
- wrappers: ['form-field']
195
- },
196
- { name: 'enum', extends: 'select' }
197
- ]
198
- })] });
199
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzSelectModule, decorators: [{
199
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzSelectModule, decorators: [{
200
200
  type: NgModule,
201
201
  args: [{
202
202
  declarations: [FormlyFieldSelect],
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-formly-zorro-antd-select.mjs","sources":["../../../../packages/formlyantd/select/src/select.type.ts","../../../../packages/formlyantd/select/src/select.module.ts","../../../../packages/formlyantd/select/src/ngx-formly-zorro-antd-select.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy, ViewChild, OnInit } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\n\nimport { NzSelectComponent } from 'ng-zorro-antd/select';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\nimport type { SelectProps } from './select.props';\n\nexport interface FormlySelectFieldConfig extends FormlyFieldConfig<SelectProps> {\n type: 'select' | 'enum' | Type<FormlyFieldSelect>;\n}\n\n@Component({\n selector: 'formly-field-select',\n template: `\n <nz-select\n #select\n [class.ng-dirty]=\"showError\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [compareWith]=\"props['compareWith']!\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzSelectOnTab]=\"props['selectOnTab']!!\"\n [nzAutoClearSearchValue]=\"props['autoClearSearchValue']\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzBorderless]=\"props['borderless']\"\n [nzOpen]=\"props['open']!!\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzDropdownMatchSelectWidth]=\"props['dropdownMatchSelectWidth']!!\"\n [nzDropdownStyle]=\"props['dropdownStyle'] ?? null\"\n [nzCustomTemplate]=\"props['customTemplate'] ?? null\"\n [nzServerSearch]=\"props['serverSearch']!!\"\n [nzMaxMultipleCount]=\"props['maxMultipleCount']!\"\n [nzMode]=\"props['mode']!\"\n [nzShowSearch]=\"props['showSearch']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzLoading]=\"props['loading']!!\"\n [nzPlacement]=\"props['placement']\"\n [nzShowArrow]=\"props['showArrow']!!\"\n [nzMaxTagCount]=\"props['maxTagCount']\"\n [nzMaxTagPlaceholder]=\"props['maxTagPlaceholder'] ?? null\"\n [nzOptionHeightPx]=\"props['optionHeightPx']!\"\n [nzOptionOverflowSize]=\"props['optionOverflowSize']!\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n (ngModelChange)=\"props.change && props.change(field, $event)\"\n (nzBlur)=\"props.blur && props.blur(field, $event)\"\n (nzFocus)=\"props.focus && props.focus(field, $event)\"\n (nzOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\n (nzScrollToBottom)=\"props['scrollToBottom'] && props['scrollToBottom'](field, $event)\"\n (nzOnSearch)=\"props['onSearch'] && props['onSearch'](field, $event)\"\n >\n <ng-container *ngFor=\"let item of to.options | formlySelectOptions: field | async\">\n <nz-option-group [nzLabel]=\"item.label\" *ngIf=\"item.group; else selectoption\">\n <nz-option\n *ngFor=\"let child of item.group\"\n [nzValue]=\"child.value\"\n [nzDisabled]=\"child.disabled\"\n [nzLabel]=\"child.label\"\n >\n </nz-option>\n </nz-option-group>\n\n <ng-template #selectoption>\n <nz-option\n [nzValue]=\"item.value\"\n [nzDisabled]=\"item.disabled\"\n [nzLabel]=\"item.label\"\n ></nz-option>\n </ng-template>\n </ng-container>\n </nz-select>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldSelect extends FieldType<FieldTypeConfig> implements OnInit {\n override defaultOptions = {\n props: {\n compareWith: (o1: NzSafeAny, o2: NzSafeAny) => o1 === o2,\n autoClearSearchValue: true,\n allowClear: false,\n backdrop: false,\n open: false,\n dropdownMatchSelectWidth: true,\n serverSearch: false,\n selectOnTab: false,\n maxMultipleCount: Infinity,\n mode: 'default' as const,\n showSearch: false,\n size: 'default' as const,\n status: '' as const,\n tokenSeparators: [],\n loading: false,\n optionHeightPx: 32,\n optionOverflowSize: 8\n }\n };\n @ViewChild('select', { static: true }) select!: NzSelectComponent;\n ngOnInit(): void {\n if (this.props['filterOption'] instanceof Function) {\n this.select.nzFilterOption = this.props['filterOption'] as any;\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzSelectModule } from 'ng-zorro-antd/select';\n\nimport { FormlyFieldSelect } from './select.type';\n\n@NgModule({\n declarations: [FormlyFieldSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzSelectModule,\n\n FormlyNzFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'select',\n component: FormlyFieldSelect,\n wrappers: ['form-field']\n },\n { name: 'enum', extends: 'select' }\n ]\n })\n ]\n})\nexport class FormlyNzSelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AA0EM,MAAO,iBAAkB,SAAQ,SAA0B,CAAA;AA/DjE,IAAA,WAAA,GAAA;;AAgEW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;gBACL,WAAW,EAAE,CAAC,EAAa,EAAE,EAAa,KAAK,EAAE,KAAK,EAAE;AACxD,gB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BACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,cAAc;wBAEd,uBAAuB;wBACvB,kBAAkB;wBAClB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACD,gCAAA,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE;AACpC,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
@@ -26,9 +26,8 @@ class FormlyFieldSlider extends FieldType {
26
26
  }
27
27
  };
28
28
  }
29
- }
30
- FormlyFieldSliderfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyFieldSlider, deps: null, target: i0.ɵɵFactoryTarget.Component });
31
- FormlyFieldSlider.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: FormlyFieldSlider, selector: "formly-field-slider", usesInheritance: true, ngImport: i0, template: `<nz-slider
29
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldSlider, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
30
+ static { thiscmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyFieldSlider, selector: "formly-field-slider", usesInheritance: true, ngImport: i0, template: `<nz-slider
32
31
  #slider
33
32
  [formControl]="formControl"
34
33
  [formlyAttributes]="field"
@@ -44,8 +43,9 @@ FormlyFieldSlider.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
44
43
  [nzTooltipVisible]="props['tooltipVisible']!"
45
44
  (ngModelChange)="props.change && props.change(field, $event)"
46
45
  (nzOnAfterChange)="props['afterChange'] && props['afterChange'](field, $event)"
47
- ></nz-slider>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.NzSliderComponent, selector: "nz-slider", inputs: ["nzDisabled", "nzDots", "nzIncluded", "nzRange", "nzVertical", "nzReverse", "nzDefaultValue", "nzMarks", "nzMax", "nzMin", "nzStep", "nzTooltipVisible", "nzTooltipPlacement", "nzTipFormatter"], outputs: ["nzOnAfterChange"], exportAs: ["nzSlider"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
48
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyFieldSlider, decorators: [{
46
+ ></nz-slider>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.NzSliderComponent, selector: "nz-slider", inputs: ["nzDisabled", "nzDots", "nzIncluded", "nzRange", "nzVertical", "nzReverse", "nzDefaultValue", "nzMarks", "nzMax", "nzMin", "nzStep", "nzTooltipVisible", "nzTooltipPlacement", "nzTipFormatter"], outputs: ["nzOnAfterChange"], exportAs: ["nzSlider"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
47
+ }
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldSlider, decorators: [{
49
49
  type: Component,
50
50
  args: [{
51
51
  selector: 'formly-field-slider',
@@ -71,26 +71,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
71
71
  }] });
72
72
 
73
73
  class FormlyNzSliderModule {
74
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzSliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
75
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzSliderModule, declarations: [FormlyFieldSlider], imports: [CommonModule,
76
+ ReactiveFormsModule,
77
+ FormlyNzFormFieldModule,
78
+ NzSliderModule, i3.FormlyModule] }); }
79
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzSliderModule, imports: [CommonModule,
80
+ ReactiveFormsModule,
81
+ FormlyNzFormFieldModule,
82
+ NzSliderModule,
83
+ FormlyModule.forChild({
84
+ types: [
85
+ {
86
+ name: 'slider',
87
+ component: FormlyFieldSlider,
88
+ wrappers: ['form-field']
89
+ }
90
+ ]
91
+ })] }); }
74
92
  }
75
- FormlyNzSliderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzSliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
76
- FormlyNzSliderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzSliderModule, declarations: [FormlyFieldSlider], imports: [CommonModule,
77
- ReactiveFormsModule,
78
- FormlyNzFormFieldModule,
79
- NzSliderModule, i3.FormlyModule] });
80
- FormlyNzSliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzSliderModule, imports: [CommonModule,
81
- ReactiveFormsModule,
82
- FormlyNzFormFieldModule,
83
- NzSliderModule,
84
- FormlyModule.forChild({
85
- types: [
86
- {
87
- name: 'slider',
88
- component: FormlyFieldSlider,
89
- wrappers: ['form-field']
90
- }
91
- ]
92
- })] });
93
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzSliderModule, decorators: [{
93
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzSliderModule, decorators: [{
94
94
  type: NgModule,
95
95
  args: [{
96
96
  declarations: [FormlyFieldSlider],
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-formly-zorro-antd-slider.mjs","sources":["../../../../packages/formlyantd/slider/src/slider.type.ts","../../../../packages/formlyantd/slider/src/slider.module.ts","../../../../packages/formlyantd/slider/src/ngx-formly-zorro-antd-slider.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\nimport type { NzSliderShowTooltip } from 'ng-zorro-antd/slider';\n\ninterface SlideProps extends FormlyFieldProps {\n /**\n * 是否只能拖拽到刻度上\n * @default false\n */\n dots?: boolean;\n\n /**\n * marks 不为空对象时有效,值为 true 时表示值为包含关系,false 表示并列\n * @default true\n */\n included?: boolean;\n\n /**\n * 刻度标记,key 的类型必须为 number 且取值在闭区间 [min, max] 内,每个标签可以单独设置样式\n * @default\n * { number: string/HTML } or { number: { style: object, label: string/HTML } }\n */\n marks?: object;\n\n /**\n * 双滑块模式\n * @default false\n */\n range?: boolean;\n\n /**\n * Slider 会把当前值传给 nzTipFormatter,并在 Tooltip 中显示 nzTipFormatter 的返回值,若为 null,则隐藏 Tooltip。\n */\n tipFormatter?: (value: number) => string;\n\n /**\n * 值为 true 时,Slider 为垂直方向\n * @default false\n */\n vertical?: boolean;\n\n /**\n * 反向坐标轴\n * @default false\n */\n reverse?: boolean;\n\n /**\n * 值为 always 时总是显示,值为 never 时在任何情况下都不显示\n * @default default\n */\n tooltipVisible?: NzSliderShowTooltip;\n\n /**\n * 设置 Tooltip 的默认位置。\n */\n tooltipPlacement?: string;\n\n /**\n * 与 onmouseup 触发时机一致,把当前值作为参数传入。\n */\n afterChange?: (field: FormlyFieldConfig, value: number[] | number) => void;\n}\n\nexport interface FormlySlideFieldConfig extends FormlyFieldConfig<SlideProps> {\n type: 'slider' | Type<FormlyFieldSlider>;\n}\n\n@Component({\n selector: 'formly-field-slider',\n template: `<nz-slider\n #slider\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzDots]=\"props['dots']!!\"\n [nzIncluded]=\"props['included']!!\"\n [nzMax]=\"props.max\"\n [nzMin]=\"props.min\"\n [nzRange]=\"props['range']!!\"\n [nzStep]=\"props.step\"\n [nzTipFormatter]=\"props['tipFormatter']\"\n [nzVertical]=\"props['vertical']!!\"\n [nzReverse]=\"props['reverse']!!\"\n [nzTooltipVisible]=\"props['tooltipVisible']!\"\n (ngModelChange)=\"props.change && props.change(field, $event)\"\n (nzOnAfterChange)=\"props['afterChange'] && props['afterChange'](field, $event)\"\n ></nz-slider>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldSlider extends FieldType<FieldTypeConfig<SlideProps>> {\n override defaultOptions = {\n props: {\n max: 100,\n min: 0,\n step: 1,\n dots: false,\n included: true,\n range: false,\n vertical: false,\n reverse: false,\n tooltipVisible: 'default' as const\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { FormlyFieldSlider } from './slider.type';\nimport { NzSliderModule } from 'ng-zorro-antd/slider';\n\n@NgModule({\n declarations: [FormlyFieldSlider],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzSliderModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'slider',\n component: FormlyFieldSlider,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzSliderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AA0FM,MAAO,iBAAkB,SAAQ,SAAsC,CAAA;AArB7E,IAAA,WAAA,GAAA;;AAsBW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,GAAG,EAAE,GAAG;AACR,gBAAA,GAAG,EAAE,CAAC;AACN,gBAAA,IAAI,EAAE,CAAC;AACP,gBAAA,IAAI,EAAE,KAAK;AACX,gBAAA,QAAQ,EAAE,IAAI;AACd,gBAAA,KAAK,EAAE,KAAK;AACZ,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,cAAc,EAAE,SAAkB;AACnC,aAAA;SACF,CAAC;AACH,KAAA;8GAdY,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,iBAAiB,EAnBlB,QAAA,EAAA,qBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;AAgBI,eAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QA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 minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyFieldSwitch, deps: null, target: i0.ɵɵFactoryTarget.Component });
25
- FormlyFieldSwitch.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: FormlyFieldSwitch, selector: "formly-field-switch", usesInheritance: true, ngImport: i0, template: `
23
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldSwitch, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
24
+ static { thiscmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyFieldSwitch, selector: "formly-field-switch", usesInheritance: true, ngImport: i0, template: `
26
25
  <nz-switch
27
26
  [formControl]="formControl"
28
27
  [formlyAttributes]="field"
@@ -34,8 +33,9 @@ FormlyFieldSwitch.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
34
33
  [nzControl]="props['control']!!"
35
34
  (ngModelChange)="props.change && props.change(field, $event)"
36
35
  ></nz-switch>
37
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
38
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyFieldSwitch, decorators: [{
36
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
37
+ }
38
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldSwitch, decorators: [{
39
39
  type: Component,
40
40
  args: [{
41
41
  selector: 'formly-field-switch',
@@ -57,26 +57,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
57
57
  }] });
58
58
 
59
59
  class FormlyNzSwitchModule {
60
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzSwitchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
61
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzSwitchModule, declarations: [FormlyFieldSwitch], imports: [CommonModule,
62
+ ReactiveFormsModule,
63
+ FormlyNzFormFieldModule,
64
+ NzSwitchModule, i3.FormlyModule] }); }
65
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzSwitchModule, imports: [CommonModule,
66
+ ReactiveFormsModule,
67
+ FormlyNzFormFieldModule,
68
+ NzSwitchModule,
69
+ FormlyModule.forChild({
70
+ types: [
71
+ {
72
+ name: 'switch',
73
+ component: FormlyFieldSwitch,
74
+ wrappers: ['form-field']
75
+ }
76
+ ]
77
+ })] }); }
60
78
  }
61
- FormlyNzSwitchModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzSwitchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
62
- FormlyNzSwitchModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzSwitchModule, declarations: [FormlyFieldSwitch], imports: [CommonModule,
63
- ReactiveFormsModule,
64
- FormlyNzFormFieldModule,
65
- NzSwitchModule, i3.FormlyModule] });
66
- FormlyNzSwitchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzSwitchModule, imports: [CommonModule,
67
- ReactiveFormsModule,
68
- FormlyNzFormFieldModule,
69
- NzSwitchModule,
70
- FormlyModule.forChild({
71
- types: [
72
- {
73
- name: 'switch',
74
- component: FormlyFieldSwitch,
75
- wrappers: ['form-field']
76
- }
77
- ]
78
- })] });
79
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzSwitchModule, decorators: [{
79
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzSwitchModule, decorators: [{
80
80
  type: NgModule,
81
81
  args: [{
82
82
  declarations: [FormlyFieldSwitch],
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-formly-zorro-antd-switch.mjs","sources":["../../../../packages/formlyantd/switch/src/switch.type.ts","../../../../packages/formlyantd/switch/src/switch.module.ts","../../../../packages/formlyantd/switch/src/ngx-formly-zorro-antd-switch.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 { NzSizeDSType } from 'ng-zorro-antd/core/types';\n\ninterface SwitchProps extends FormlyFieldProps {\n /**\n * 选中时的内容\n */\n checkedChildren?: string | TemplateRef<void> | null;\n\n /**\n * 非选中时的内容\n */\n unCheckedChildren?: string | TemplateRef<void> | null;\n\n /**\n * 开关大小\n */\n size?: NzSizeDSType;\n\n /**\n * 加载中的开关\n * @default false\n */\n loading?: boolean;\n\n /**\n * 是否完全由用户控制状态\n * @default false\n */\n control?: boolean;\n}\n\nexport interface FormlySwitchFieldConfig extends FormlyFieldConfig<SwitchProps> {\n type: 'switch' | Type<FormlyFieldSwitch>;\n}\n\n@Component({\n selector: 'formly-field-switch',\n template: `\n <nz-switch\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzId]=\"id\"\n [nzCheckedChildren]=\"props['checkedChildren'] ?? null\"\n [nzUnCheckedChildren]=\"props['unCheckedChildren'] ?? null\"\n [nzSize]=\"props['size']!\"\n [nzLoading]=\"props['loading']!!\"\n [nzControl]=\"props['control']!!\"\n (ngModelChange)=\"props.change && props.change(field, $event)\"\n ></nz-switch>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldSwitch extends FieldType<FieldTypeConfig<SwitchProps>> {\n override defaultOptions = {\n props: {\n size: 'default' as const,\n loading: false,\n control: false\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 { FormlyFieldSwitch } from './switch.type';\n\nimport { NzSwitchModule } from 'ng-zorro-antd/switch';\n\n@NgModule({\n declarations: [FormlyFieldSwitch],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzSwitchModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'switch',\n component: FormlyFieldSwitch,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzSwitchModule {}\n","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,iBAAiB;wBAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAnBhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,cAAc;wBACd,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC5BD;;AAEG;;;;"}
@@ -28,9 +28,8 @@ class FormlyWrapperTabs extends FieldWrapper {
28
28
  }
29
29
  };
30
30
  }
31
- }
32
- FormlyWrapperTabsfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyWrapperTabs, deps: null, target: i0.ɵɵFactoryTarget.Component });
33
- FormlyWrapperTabs.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: FormlyWrapperTabs, selector: "formly-wrapper-tabs", usesInheritance: true, ngImport: i0, template: `<nz-tabset
31
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyWrapperTabs, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
32
+ static { thiscmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyWrapperTabs, selector: "formly-wrapper-tabs", usesInheritance: true, ngImport: i0, template: `<nz-tabset
34
33
  [(nzSelectedIndex)]="props['selectedIndex']"
35
34
  [nzAnimated]="props['animated']!"
36
35
  [nzSize]="props['size']!"
@@ -68,8 +67,9 @@ FormlyWrapperTabs.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
68
67
  >
69
68
  <formly-field [field]="tab"></formly-field>
70
69
  </nz-tab>
71
- </nz-tabset>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2.NzTabSetComponent, selector: "nz-tabset", inputs: ["nzSelectedIndex", "nzTabPosition", "nzTabBarExtraContent", "nzCanDeactivate", "nzAddIcon", "nzTabBarStyle", "nzType", "nzSize", "nzAnimated", "nzTabBarGutter", "nzHideAdd", "nzCentered", "nzHideAll", "nzLinkRouter", "nzLinkExact"], outputs: ["nzSelectChange", "nzSelectedIndexChange", "nzTabListScroll", "nzClose", "nzAdd"], exportAs: ["nzTabset"] }, { kind: "component", type: i2.NzTabComponent, selector: "nz-tab", inputs: ["nzTitle", "nzClosable", "nzCloseIcon", "nzDisabled", "nzForceRender"], outputs: ["nzSelect", "nzDeselect", "nzClick", "nzContextmenu"], exportAs: ["nzTab"] }, { kind: "component", type: i3.FormlyField, selector: "formly-field", inputs: ["field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
72
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyWrapperTabs, decorators: [{
70
+ </nz-tabset>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2.NzTabSetComponent, selector: "nz-tabset", inputs: ["nzSelectedIndex", "nzTabPosition", "nzTabBarExtraContent", "nzCanDeactivate", "nzAddIcon", "nzTabBarStyle", "nzType", "nzSize", "nzAnimated", "nzTabBarGutter", "nzHideAdd", "nzCentered", "nzHideAll", "nzLinkRouter", "nzLinkExact"], outputs: ["nzSelectChange", "nzSelectedIndexChange", "nzTabListScroll", "nzClose", "nzAdd"], exportAs: ["nzTabset"] }, { kind: "component", type: i2.NzTabComponent, selector: "nz-tab", inputs: ["nzTitle", "nzClosable", "nzCloseIcon", "nzDisabled", "nzForceRender"], outputs: ["nzSelect", "nzDeselect", "nzClick", "nzContextmenu"], exportAs: ["nzTab"] }, { kind: "component", type: i3.FormlyField, selector: "formly-field", inputs: ["field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
71
+ }
72
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyWrapperTabs, decorators: [{
73
73
  type: Component,
74
74
  args: [{
75
75
  selector: 'formly-wrapper-tabs',
@@ -117,21 +117,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
117
117
  }] });
118
118
 
119
119
  class FormlyNzTabsModule {
120
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzTabsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
121
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzTabsModule, declarations: [FormlyWrapperTabs], imports: [CommonModule,
122
+ NzTabsModule, i3.FormlyModule] }); }
123
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzTabsModule, imports: [CommonModule,
124
+ NzTabsModule,
125
+ FormlyModule.forChild({
126
+ wrappers: [
127
+ {
128
+ name: 'tabs',
129
+ component: FormlyWrapperTabs
130
+ }
131
+ ]
132
+ })] }); }
120
133
  }
121
- FormlyNzTabsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzTabsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
122
- FormlyNzTabsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzTabsModule, declarations: [FormlyWrapperTabs], imports: [CommonModule,
123
- NzTabsModule, i3.FormlyModule] });
124
- FormlyNzTabsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzTabsModule, imports: [CommonModule,
125
- NzTabsModule,
126
- FormlyModule.forChild({
127
- wrappers: [
128
- {
129
- name: 'tabs',
130
- component: FormlyWrapperTabs
131
- }
132
- ]
133
- })] });
134
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzTabsModule, decorators: [{
134
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzTabsModule, decorators: [{
135
135
  type: NgModule,
136
136
  args: [{
137
137
  declarations: [FormlyWrapperTabs],
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-formly-zorro-antd-tabs.mjs","sources":["../../../../packages/formlyantd/tabs/src/tabs.wrapper.ts","../../../../packages/formlyantd/tabs/src/tabs.module.ts","../../../../packages/formlyantd/tabs/src/ngx-formly-zorro-antd-tabs.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldWrapper, FormlyFieldConfig } from '@ngx-formly/core';\n\nimport type { TabsProps } from './tabs.props';\n\nexport interface FormlyTabsWrapperConfig extends FormlyFieldConfig<TabsProps> {\n wrappers: ('tabs' | Type<FormlyWrapperTabs>)[];\n}\n\n@Component({\n selector: 'formly-wrapper-tabs',\n template: `<nz-tabset\n [(nzSelectedIndex)]=\"props['selectedIndex']\"\n [nzAnimated]=\"props['animated']!\"\n [nzSize]=\"props['size']!\"\n [nzTabBarExtraContent]=\"props['tabBarExtraContent']\"\n [nzTabBarStyle]=\"props['tabBarStyle'] ?? null\"\n [nzTabPosition]=\"props['tabPosition']!\"\n [nzType]=\"props['type']!\"\n [nzTabBarGutter]=\"props['tabBarGutter']\"\n [nzHideAll]=\"props['hideAll']!!\"\n [nzLinkRouter]=\"props['linkRouter']!!\"\n [nzLinkExact]=\"props['linkExact']!!\"\n [nzCanDeactivate]=\"props['canDeactivate'] ?? null\"\n [nzHideAdd]=\"props['hideAdd']!!\"\n [nzAddIcon]=\"props['addIcon']!\"\n (nzSelectedIndexChange)=\"\n props['selectedIndexChange'] && props['selectedIndexChange'](field, $event)\n \"\n (nzSelectChange)=\"\n props['selectChange'] && props['selectChange'](field, $event.index, $event.tab)\n \"\n (nzAdd)=\"props['onAdd'] && props['onAdd'](field)\"\n (nzClose)=\"props['onClose'] && props['onClose'](field, $event.index)\"\n >\n <nz-tab\n *ngFor=\"let tab of field.fieldGroup; let i = index; let last = last\"\n [nzTitle]=\"tab.props?.label || ''\"\n [nzForceRender]=\"tab.props!['tab']?.forceRender\"\n [nzDisabled]=\"tab.props!['tab']?.disabled\"\n (nzClick)=\"tab.props!['tab']?.click && tab.props!['tab']?.click(field)\"\n (nzContextmenu)=\"\n tab.props!['tab']?.contextmenu && tab.props!['tab']?.contextmenu(field, $event)\n \"\n (nzSelect)=\"tab.props!['tab']?.select && tab.props!['tab']?.select(field)\"\n (nzDeselect)=\"tab.props!['tab']?.deselect && tab.props!['tab']?.deselect(field)\"\n >\n <formly-field [field]=\"tab\"></formly-field>\n </nz-tab>\n </nz-tabset>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyWrapperTabs extends FieldWrapper<FormlyFieldConfig<TabsProps>> {\n override defaultOptions = {\n props: {\n animated: true,\n size: 'default' as const,\n type: 'line' as const,\n tabPosition: 'top' as const,\n hideAll: false,\n linkRouter: false,\n linkExact: true,\n centered: false,\n hideAdd: false,\n tab: {\n forceRender: false,\n disabled: false\n }\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\n\nimport { FormlyWrapperTabs } from './tabs.wrapper';\nimport { NzTabsModule } from 'ng-zorro-antd/tabs';\n\n@NgModule({\n declarations: [FormlyWrapperTabs],\n imports: [\n CommonModule,\n\n NzTabsModule,\n\n FormlyModule.forChild({\n wrappers: [\n {\n name: 'tabs',\n component: FormlyWrapperTabs\n }\n ]\n })\n ]\n})\nexport class FormlyNzTabsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;AAoDM,MAAO,iBAAkB,SAAQ,YAA0C,CAAA;AA3CjF,IAAA,WAAA,GAAA;;AA4CW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,QAAQ,EAAE,IAAI;AACd,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,IAAI,EAAE,MAAe;AACrB,gBAAA,WAAW,EAAE,KAAc;AAC3B,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,SAAS,EAAE,IAAI;AACf,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,GAAG,EAAE;AACH,oBAAA,WAAW,EAAE,KAAK;AAClB,oBAAA,QAAQ,EAAE,KAAK;AAChB,iBAAA;AACF,aAAA;SACF,CAAC;AACH,KAAA;8GAlBY,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,iBAAiB,EAzClB,QAAA,EAAA,qBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;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AAC7B,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACvBD;;AAEG;;;;"}
@@ -23,9 +23,8 @@ class FormlyFieldTextarea extends FieldType {
23
23
  }
24
24
  };
25
25
  }
26
- }
27
- FormlyFieldTextareafac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyFieldTextarea, deps: null, target: i0.ɵɵFactoryTarget.Component });
28
- FormlyFieldTextarea.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: FormlyFieldTextarea, selector: "formly-field-textarea", usesInheritance: true, ngImport: i0, template: `
26
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldTextarea, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
27
+ static { thiscmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyFieldTextarea, selector: "formly-field-textarea", usesInheritance: true, ngImport: i0, template: `
29
28
  <ng-container [ngSwitch]="props.type">
30
29
  <ng-container *ngSwitchCase="'count'">
31
30
  <nz-textarea-count [nzMaxCharacterCount]="props['maxCharacterCount'] || 0">
@@ -80,8 +79,9 @@ FormlyFieldTextarea.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ve
80
79
  (click)="formControl.reset()"
81
80
  ></span>
82
81
  </ng-template>
83
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { 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.NzTextareaCountComponent, selector: "nz-textarea-count", inputs: ["nzMaxCharacterCount", "nzComputeCharacterCount", "nzFormatter"] }, { kind: "directive", type: i3.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i3.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i3.NzAutosizeDirective, selector: "textarea[nzAutosize]", inputs: ["nzAutosize"], exportAs: ["nzAutosize"] }, { kind: "directive", type: i3.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "directive", type: i4.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i5.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
84
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyFieldTextarea, decorators: [{
82
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { 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.NzTextareaCountComponent, selector: "nz-textarea-count", inputs: ["nzMaxCharacterCount", "nzComputeCharacterCount", "nzFormatter"] }, { kind: "directive", type: i3.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i3.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i3.NzAutosizeDirective, selector: "textarea[nzAutosize]", inputs: ["nzAutosize"], exportAs: ["nzAutosize"] }, { kind: "directive", type: i3.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "directive", type: i4.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i5.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
83
+ }
84
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldTextarea, decorators: [{
85
85
  type: Component,
86
86
  args: [{
87
87
  selector: 'formly-field-textarea',
@@ -146,28 +146,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
146
146
  }] });
147
147
 
148
148
  class FormlyNzTextareaModule {
149
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzTextareaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
150
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzTextareaModule, declarations: [FormlyFieldTextarea], imports: [CommonModule,
151
+ ReactiveFormsModule,
152
+ FormlyNzFormFieldModule,
153
+ NzInputModule,
154
+ NzIconModule, i5.FormlyModule] }); }
155
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzTextareaModule, imports: [CommonModule,
156
+ ReactiveFormsModule,
157
+ FormlyNzFormFieldModule,
158
+ NzInputModule,
159
+ NzIconModule,
160
+ FormlyModule.forChild({
161
+ types: [
162
+ {
163
+ name: 'textarea',
164
+ component: FormlyFieldTextarea,
165
+ wrappers: ['form-field']
166
+ }
167
+ ]
168
+ })] }); }
149
169
  }
150
- FormlyNzTextareaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzTextareaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
151
- FormlyNzTextareaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzTextareaModule, declarations: [FormlyFieldTextarea], imports: [CommonModule,
152
- ReactiveFormsModule,
153
- FormlyNzFormFieldModule,
154
- NzInputModule,
155
- NzIconModule, i5.FormlyModule] });
156
- FormlyNzTextareaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzTextareaModule, imports: [CommonModule,
157
- ReactiveFormsModule,
158
- FormlyNzFormFieldModule,
159
- NzInputModule,
160
- NzIconModule,
161
- FormlyModule.forChild({
162
- types: [
163
- {
164
- name: 'textarea',
165
- component: FormlyFieldTextarea,
166
- wrappers: ['form-field']
167
- }
168
- ]
169
- })] });
170
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzTextareaModule, decorators: [{
170
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzTextareaModule, decorators: [{
171
171
  type: NgModule,
172
172
  args: [{
173
173
  declarations: [FormlyFieldTextarea],
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-formly-zorro-antd-textarea.mjs","sources":["../../../../packages/formlyantd/textarea/src/textarea.type.ts","../../../../packages/formlyantd/textarea/src/textarea.module.ts","../../../../packages/formlyantd/textarea/src/ngx-formly-zorro-antd-textarea.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\ninterface TextareaProps extends FormlyFieldProps {\n type?: 'count' | 'clear';\n\n /**\n * 自适应内容高度,可设置为 boolean 或对象:{ minRows: 2, maxRows: 6 }\n * @default false\n */\n autosize?: boolean | { minRows: number; maxRows: number };\n\n /**\n * 是否隐藏边框\n * @default false\n */\n borderless?: boolean;\n\n /**\n * textarea 数字提示显示的最大值\n */\n maxCharacterCount?: number;\n}\n\nexport interface FormlyTextareaFieldConfig extends FormlyFieldConfig<TextareaProps> {\n type: 'textarea' | Type<FormlyFieldTextarea>;\n}\n\n@Component({\n selector: 'formly-field-textarea',\n template: `\n <ng-container [ngSwitch]=\"props.type\">\n <ng-container *ngSwitchCase=\"'count'\">\n <nz-textarea-count [nzMaxCharacterCount]=\"props['maxCharacterCount'] || 0\">\n <textarea\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['className']\"\n [attr.rows]=\"props.rows\"\n [attr.cols]=\"props.cols\"\n nz-input\n [nzBorderless]=\"props['borderless']!!\"\n [nzAutosize]=\"props['autosize']!!\"\n ></textarea>\n </nz-textarea-count>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'clear'\">\n <nz-input-group\n class=\"ant-input-affix-wrapper-textarea-with-clear-btn\"\n [nzSuffix]=\"textAreaClearTpl\"\n >\n <ng-container *ngTemplateOutlet=\"textareaTpl\"> </ng-container>\n </nz-input-group>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <ng-container *ngTemplateOutlet=\"textareaTpl\"> </ng-container>\n </ng-container>\n </ng-container>\n\n <ng-template #textareaTpl>\n <textarea\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['className']\"\n [attr.rows]=\"props.rows\"\n [attr.cols]=\"props.cols\"\n nz-input\n [nzBorderless]=\"props['borderless']!!\"\n [nzAutosize]=\"props['autosize']!!\"\n ></textarea>\n </ng-template>\n\n <!-- 清除数据 -->\n <ng-template #textAreaClearTpl>\n <span\n nz-icon\n class=\"ant-input-clear-icon\"\n nzTheme=\"fill\"\n nzType=\"close-circle\"\n *ngIf=\"formControl.value && !props['disabled'] && !props['readonly']\"\n (click)=\"formControl.reset()\"\n ></span>\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldTextarea extends FieldType<FieldTypeConfig<TextareaProps>> {\n override defaultOptions = {\n props: {\n rows: 4,\n autosize: false,\n borderless: false\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { FormlyFieldTextarea } from './textarea.type';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\n@NgModule({\n declarations: [FormlyFieldTextarea],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzInputModule,\n NzIconModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'textarea',\n component: FormlyFieldTextarea,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzTextareaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AAyFM,MAAO,mBAAoB,SAAQ,SAAyC,CAAA;AA5DlF,IAAA,WAAA,GAAA;;AA6DW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,IAAI,EAAE,CAAC;AACP,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,UAAU,EAAE,KAAK;AAClB,aAAA;SACF,CAAC;AACH,KAAA;8GARY,mBAAmB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAnB,IAAA,SAAA,IAAA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