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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-formly-zorro-antd-form-field.mjs","sources":["../../../../packages/formlyantd/form-field/src/form-field.wrapper.ts","../../../../packages/formlyantd/form-field/src/form-field.module.ts","../../../../packages/formlyantd/form-field/src/ngx-formly-zorro-antd-form-field.ts"],"sourcesContent":["import { Component } from '@angular/core';\nimport { FieldWrapper, FormlyFieldConfig } from '@ngx-formly/core';\nimport type { NzFormWrapperProps } from './form-field.props';\n\nexport type FormlyFieldProps = NzFormWrapperProps;\n\n@Component({\n selector: 'formly-wrapper-nz-form-field',\n styleUrls: ['./form-field.wrapper.scss'],\n template: `\n <nz-form-item [ngClass]=\"props.itemClass!\">\n <ng-container *ngIf=\"props.label && props['hideLabel'] !== true\">\n <nz-form-label\n [nzFlex]=\"props['grid']?.labelFlex ?? null\"\n [nzOffset]=\"props['grid']?.labelOffset ?? null\"\n [nzOrder]=\"props['grid']?.labelOrder ?? null\"\n [nzPull]=\"props['grid']?.labelPull ?? null\"\n [nzPush]=\"props['grid']?.labelPush ?? null\"\n [nzSpan]=\"props['grid']?.labelSpan ?? null\"\n [nzXs]=\"props['grid']?.labelXs ?? null\"\n [nzSm]=\"props['grid']?.labelSm ?? null\"\n [nzMd]=\"props['grid']?.labelMd ?? null\"\n [nzLg]=\"props['grid']?.labelLg ?? null\"\n [nzXl]=\"props['grid']?.labelXl ?? null\"\n [nzXXl]=\"props['grid']?.labelXXl ?? null\"\n [ngClass]=\"props.labelClass!\"\n [nzRequired]=\"props.required && props['hideRequiredMarker'] !== true\"\n [nzFor]=\"id\"\n [nzNoColon]=\"props['noColon']!!\"\n [nzTooltipTitle]=\"props['tooltipTitle']\"\n [nzTooltipIcon]=\"props['tooltipIcon']!\"\n [nzLabelAlign]=\"props['labelAlign'] ?? 'right'\"\n [nzLabelWrap]=\"props['labelWrap']!!\"\n >\n <span class=\"formly-label-text\">\n {{ props.label }}\n </span>\n </nz-form-label>\n </ng-container>\n <nz-form-control\n [nzValidateStatus]=\"errorState\"\n [nzHasFeedback]=\"props['hasFeedback']!!\"\n [nzExtra]=\"props['controlExtra']\"\n [nzErrorTip]=\"errorTpl\"\n [ngClass]=\"props.controlClass!\"\n [nzFlex]=\"props['grid']?.controlFlex ?? null\"\n [nzOffset]=\"props['grid']?.controlOffset ?? null\"\n [nzOrder]=\"props['grid']?.controlOrder ?? null\"\n [nzPull]=\"props['grid']?.controlPull ?? null\"\n [nzPush]=\"props['grid']?.controlPush ?? null\"\n [nzSpan]=\"props['grid']?.controlSpan ?? null\"\n [nzXs]=\"props['grid']?.controlXs ?? null\"\n [nzSm]=\"props['grid']?.controlSm ?? null\"\n [nzMd]=\"props['grid']?.controlMd ?? null\"\n [nzLg]=\"props['grid']?.controlLg ?? null\"\n [nzXl]=\"props['grid']?.controlXl ?? null\"\n [nzXXl]=\"props['grid']?.controlXXl ?? null\"\n >\n <ng-container #fieldComponent></ng-container>\n\n <ng-template #errorTpl let-control>\n <formly-validation-message [field]=\"field\"></formly-validation-message>\n </ng-template>\n </nz-form-control>\n </nz-form-item>\n `\n})\nexport class FormlyWrapperFormField extends FieldWrapper<FormlyFieldConfig<FormlyFieldProps>> {\n get errorState() {\n return this.showError ? 'error' : 'success';\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 { NzFormModule } from 'ng-zorro-antd/form';\nimport { FormlyWrapperFormField } from './form-field.wrapper';\n\n@NgModule({\n declarations: [FormlyWrapperFormField],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzFormModule,\n FormlyModule.forChild({\n wrappers: [\n {\n name: 'form-field',\n component: FormlyWrapperFormField\n }\n ]\n })\n ]\n})\nexport class FormlyNzFormFieldModule {}\n","/**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qBAAA;AACF,iBAAA,CAAA;;;ACtBD;;AAEG;;;;"}
@@ -8,9 +8,8 @@ import * as i2 from 'ng-zorro-antd/grid';
8
8
  import { NzGridModule } from 'ng-zorro-antd/grid';
9
9
 
10
10
  class FormlyFieldGrid extends FieldType {
11
- }
12
- FormlyFieldGridfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyFieldGrid, deps: null, target: i0.ɵɵFactoryTarget.Component });
13
- FormlyFieldGrid.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: FormlyFieldGrid, selector: "formly-field-grid", usesInheritance: true, ngImport: i0, template: `
11
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldGrid, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
12
+ static { thiscmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyFieldGrid, selector: "formly-field-grid", usesInheritance: true, ngImport: i0, template: `
14
13
  <div
15
14
  nz-row
16
15
  [nzAlign]="props.align ?? null"
@@ -36,8 +35,9 @@ FormlyFieldGrid.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versio
36
35
  [nzXXl]="item.props?.['grid']?.['xxl'] || props.xxl"
37
36
  ></formly-field>
38
37
  </div>
39
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "component", type: i3.FormlyField, selector: "formly-field", inputs: ["field"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyFieldGrid, decorators: [{
38
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "component", type: i3.FormlyField, selector: "formly-field", inputs: ["field"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
39
+ }
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldGrid, decorators: [{
41
41
  type: Component,
42
42
  args: [{
43
43
  selector: 'formly-field-grid',
@@ -73,21 +73,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
73
73
  }] });
74
74
 
75
75
  class FormlyNzGridModule {
76
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
77
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzGridModule, declarations: [FormlyFieldGrid], imports: [CommonModule,
78
+ NzGridModule, i3.FormlyModule] }); }
79
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzGridModule, imports: [CommonModule,
80
+ NzGridModule,
81
+ FormlyModule.forChild({
82
+ types: [
83
+ {
84
+ name: 'grid',
85
+ component: FormlyFieldGrid
86
+ }
87
+ ]
88
+ })] }); }
76
89
  }
77
- FormlyNzGridModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
78
- FormlyNzGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzGridModule, declarations: [FormlyFieldGrid], imports: [CommonModule,
79
- NzGridModule, i3.FormlyModule] });
80
- FormlyNzGridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzGridModule, imports: [CommonModule,
81
- NzGridModule,
82
- FormlyModule.forChild({
83
- types: [
84
- {
85
- name: 'grid',
86
- component: FormlyFieldGrid
87
- }
88
- ]
89
- })] });
90
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzGridModule, decorators: [{
90
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzGridModule, decorators: [{
91
91
  type: NgModule,
92
92
  args: [{
93
93
  declarations: [FormlyFieldGrid],
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-formly-zorro-antd-grid.mjs","sources":["../../../../packages/formlyantd/grid/src/grid.type.ts","../../../../packages/formlyantd/grid/src/grid.module.ts","../../../../packages/formlyantd/grid/src/ngx-formly-zorro-antd-grid.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\n\nimport type { GridProps } from './grid.props';\n\nexport interface FormlyGridFieldConfig extends FormlyFieldConfig<GridProps> {\n type: 'grid' | Type<FormlyFieldGrid>;\n}\n\n@Component({\n selector: 'formly-field-grid',\n template: `\n <div\n nz-row\n [nzAlign]=\"props.align ?? null\"\n [nzGutter]=\"props.gutter ?? null\"\n [nzJustify]=\"props.justify ?? null\"\n [formlyAttributes]=\"field\"\n >\n <formly-field\n *ngFor=\"let item of field.fieldGroup\"\n [field]=\"item\"\n nz-col\n [nzFlex]=\"item.props?.['grid']?.['flex'] || props.flex\"\n [nzOffset]=\"item.props?.['grid']?.['offset'] || props.offset\"\n [nzOrder]=\"item.props?.['grid']?.['order'] || props.order\"\n [nzPull]=\"item.props?.['grid']?.['pull'] || props.pull\"\n [nzPush]=\"item.props?.['grid']?.['push'] || props.push\"\n [nzSpan]=\"item.props?.['grid']?.['span'] || props.span\"\n [nzXs]=\"item.props?.['grid']?.['xs'] || props.xs\"\n [nzSm]=\"item.props?.['grid']?.['sm'] || props.sm\"\n [nzMd]=\"item.props?.['grid']?.['md'] || props.md\"\n [nzLg]=\"item.props?.['grid']?.['lg'] || props.lg\"\n [nzXl]=\"item.props?.['grid']?.['xl'] || props.xl\"\n [nzXXl]=\"item.props?.['grid']?.['xxl'] || props.xxl\"\n ></formly-field>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldGrid extends FieldType<FieldTypeConfig<GridProps>> {}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\n\nimport { FormlyFieldGrid } from './grid.type';\n\nimport { NzGridModule } from 'ng-zorro-antd/grid';\n\n@NgModule({\n declarations: [FormlyFieldGrid],\n imports: [\n CommonModule,\n NzGridModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'grid',\n component: FormlyFieldGrid\n }\n ]\n })\n ]\n})\nexport class FormlyNzGridModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;AAwCM,MAAO,eAAgB,SAAQ,SAAqC,CAAA;8GAA7D,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,EA7BhB,QAAA,EAAA,mBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,cAAA,EAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,cAAA,EAAA,QAAA,EAAA,+CAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,QAAA,EAAA,SAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EAAA,QAAA,EAAA,CAAA,OAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,cAAA,EAAA,QAAA,EAAA,8BAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,WAAA,EAAA,UAAA,CA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AAE,MAAM;AACZ,wBAAA,SAAS,EAAE,eAAe;AAC3B,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAhB9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,eAAe,CAAC;AAC/B,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,MAAM;AACZ,oCAAA,SAAS,EAAE,eAAe;AAC3B,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACvBD;;AAEG;;;;"}
@@ -27,9 +27,8 @@ class FormlyFieldInputGroup extends FieldType {
27
27
  }
28
28
  return envent.id;
29
29
  }
30
- }
31
- FormlyFieldInputGroupfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyFieldInputGroup, deps: null, target: i0.ɵɵFactoryTarget.Component });
32
- FormlyFieldInputGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: FormlyFieldInputGroup, selector: "formly-field-input-group", usesInheritance: true, ngImport: i0, template: `
30
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldInputGroup, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
31
+ static { thiscmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyFieldInputGroup, selector: "formly-field-input-group", usesInheritance: true, ngImport: i0, template: `
33
32
  <nz-input-group
34
33
  [nzPrefixIcon]="props['prefixIcon']"
35
34
  [nzSuffixIcon]="props['suffixIcon']"
@@ -46,8 +45,9 @@ FormlyFieldInputGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
46
45
  >
47
46
  <formly-field *ngFor="let f of group; trackBy: trackById" [field]="f"></formly-field>
48
47
  </nz-input-group>
49
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i2.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "component", type: i3.FormlyField, selector: "formly-field", inputs: ["field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
50
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyFieldInputGroup, decorators: [{
48
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i2.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "component", type: i3.FormlyField, selector: "formly-field", inputs: ["field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
49
+ }
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldInputGroup, decorators: [{
51
51
  type: Component,
52
52
  args: [{
53
53
  selector: 'formly-field-input-group',
@@ -74,24 +74,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
74
74
  }] });
75
75
 
76
76
  class FormlyNzInputGroupModule {
77
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzInputGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
78
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzInputGroupModule, declarations: [FormlyFieldInputGroup], imports: [CommonModule,
79
+ NzInputModule,
80
+ FormlyNzFormFieldModule, i3.FormlyModule] }); }
81
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzInputGroupModule, imports: [CommonModule,
82
+ NzInputModule,
83
+ FormlyNzFormFieldModule,
84
+ FormlyModule.forChild({
85
+ types: [
86
+ {
87
+ name: 'input-group',
88
+ component: FormlyFieldInputGroup,
89
+ wrappers: ['form-field']
90
+ }
91
+ ]
92
+ })] }); }
77
93
  }
78
- FormlyNzInputGroupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzInputGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
79
- FormlyNzInputGroupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzInputGroupModule, declarations: [FormlyFieldInputGroup], imports: [CommonModule,
80
- NzInputModule,
81
- FormlyNzFormFieldModule, i3.FormlyModule] });
82
- FormlyNzInputGroupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzInputGroupModule, imports: [CommonModule,
83
- NzInputModule,
84
- FormlyNzFormFieldModule,
85
- FormlyModule.forChild({
86
- types: [
87
- {
88
- name: 'input-group',
89
- component: FormlyFieldInputGroup,
90
- wrappers: ['form-field']
91
- }
92
- ]
93
- })] });
94
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzInputGroupModule, decorators: [{
94
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzInputGroupModule, decorators: [{
95
95
  type: NgModule,
96
96
  args: [{
97
97
  declarations: [FormlyFieldInputGroup],
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-formly-zorro-antd-input-group.mjs","sources":["../../../../packages/formlyantd/input-group/src/input-group.type.ts","../../../../packages/formlyantd/input-group/src/input-group.module.ts","../../../../packages/formlyantd/input-group/src/ngx-formly-zorro-antd-input-group.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FormlyFieldConfig, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\nimport type { InputGroupProps } from './input-group.props';\n\nexport interface FormlyInputGroupFieldConfig extends FormlyFieldConfig<InputGroupProps> {\n type: 'input-group' | Type<FormlyFieldInputGroup>;\n}\n\n@Component({\n selector: 'formly-field-input-group',\n template: `\n <nz-input-group\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\n [nzAddOnBefore]=\"props['addOnBefore']\"\n [nzAddOnAfter]=\"props['addOnAfter']\"\n [nzPrefix]=\"props['prefix']\"\n [nzSuffix]=\"props['suffix']\"\n [nzCompact]=\"props['compact']!!\"\n [nzSearch]=\"props['search']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n >\n <formly-field *ngFor=\"let f of group; trackBy: trackById\" [field]=\"f\"></formly-field>\n </nz-input-group>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldInputGroup extends FieldType<FieldTypeConfig<InputGroupProps>> {\n override defaultOptions = {\n props: {\n status: '' as const,\n size: 'default' as const\n }\n };\n get group() {\n return this.field.fieldGroup;\n }\n trackById(index: number, envent: NzSafeAny) {\n if (!envent.id) {\n return index;\n }\n return envent.id;\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { FormlyFieldInputGroup } from './input-group.type';\nimport { NzInputModule } from 'ng-zorro-antd/input';\n\n@NgModule({\n declarations: [FormlyFieldInputGroup],\n imports: [\n CommonModule,\n NzInputModule,\n\n FormlyNzFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'input-group',\n component: FormlyFieldInputGroup,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzInputGroupModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;AA+BM,MAAO,qBAAsB,SAAQ,SAA2C,CAAA;AAtBtF,IAAA,WAAA,GAAA;;AAuBW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,IAAI,EAAE,SAAkB;AACzB,aAAA;SACF,CAAC;AAUH,KAAA;AATC,IAAA,IAAI,KAAK,GAAA;AACP,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC;KAC9B;IACD,SAAS,CAAC,KAAa,EAAE,MAAiB,EAAA;AACxC,QAAA,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE;AACd,YAAA,OAAO,KAAK,CAAC;AACd,SAAA;QACD,OAAO,MAAM,CAAC,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K,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,aAAa;AACnB,oCAAA,SAAS,EAAE,qBAAqB;oCAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACzBD;;AAEG;;;;"}
@@ -31,9 +31,8 @@ class FormlyFieldInputNumber extends FieldType {
31
31
  }
32
32
  };
33
33
  }
34
- }
35
- FormlyFieldInputNumberfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyFieldInputNumber, deps: null, target: i0.ɵɵFactoryTarget.Component });
36
- FormlyFieldInputNumber.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: FormlyFieldInputNumber, selector: "formly-field-inputnumber", usesInheritance: true, ngImport: i0, template: `
34
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldInputNumber, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
35
+ static { thiscmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyFieldInputNumber, selector: "formly-field-inputnumber", usesInheritance: true, ngImport: i0, template: `
37
36
  <ng-container [ngSwitch]="props.type">
38
37
  <nz-input-number-group
39
38
  *ngSwitchCase="'group'"
@@ -77,8 +76,9 @@ FormlyFieldInputNumber.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
77
76
  (nzBlur)="props.blur && props.blur(field, $event)"
78
77
  ></nz-input-number>
79
78
  </ng-template>
80
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzSize", "nzMin", "nzMax", "nzParser", "nzPrecision", "nzPrecisionMode", "nzPlaceHolder", "nzStatus", "nzStep", "nzInputMode", "nzId", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzBorderless", "nzFormatter"], outputs: ["nzBlur", "nzFocus"], exportAs: ["nzInputNumber"] }, { kind: "component", type: i3.NzInputNumberGroupComponent, selector: "nz-input-number-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzCompact"], exportAs: ["nzInputNumberGroup"] }, { kind: "directive", type: i3.NzInputNumberGroupWhitSuffixOrPrefixDirective, selector: "nz-input-number-group[nzSuffix], nz-input-number-group[nzPrefix]" }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
81
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyFieldInputNumber, decorators: [{
79
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzSize", "nzMin", "nzMax", "nzParser", "nzPrecision", "nzPrecisionMode", "nzPlaceHolder", "nzStatus", "nzStep", "nzInputMode", "nzId", "nzDisabled", "nzReadOnly", "nzAutoFocus", "nzBorderless", "nzFormatter"], outputs: ["nzBlur", "nzFocus"], exportAs: ["nzInputNumber"] }, { kind: "component", type: i3.NzInputNumberGroupComponent, selector: "nz-input-number-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzCompact"], exportAs: ["nzInputNumberGroup"] }, { kind: "directive", type: i3.NzInputNumberGroupWhitSuffixOrPrefixDirective, selector: "nz-input-number-group[nzSuffix], nz-input-number-group[nzPrefix]" }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
80
+ }
81
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldInputNumber, decorators: [{
82
82
  type: Component,
83
83
  args: [{
84
84
  selector: 'formly-field-inputnumber',
@@ -132,30 +132,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
132
132
  }] });
133
133
 
134
134
  class FormlyNzInputNumberModule {
135
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzInputNumberModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
136
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzInputNumberModule, declarations: [FormlyFieldInputNumber], imports: [CommonModule,
137
+ ReactiveFormsModule,
138
+ FormlyNzFormFieldModule,
139
+ NzInputNumberModule, i4.FormlyModule] }); }
140
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzInputNumberModule, imports: [CommonModule,
141
+ ReactiveFormsModule,
142
+ FormlyNzFormFieldModule,
143
+ NzInputNumberModule,
144
+ FormlyModule.forChild({
145
+ types: [
146
+ {
147
+ name: 'number',
148
+ component: FormlyFieldInputNumber,
149
+ wrappers: ['form-field']
150
+ },
151
+ {
152
+ name: 'integer',
153
+ extends: 'number'
154
+ }
155
+ ]
156
+ })] }); }
135
157
  }
136
- FormlyNzInputNumberModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzInputNumberModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
137
- FormlyNzInputNumberModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzInputNumberModule, declarations: [FormlyFieldInputNumber], imports: [CommonModule,
138
- ReactiveFormsModule,
139
- FormlyNzFormFieldModule,
140
- NzInputNumberModule, i4.FormlyModule] });
141
- FormlyNzInputNumberModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzInputNumberModule, imports: [CommonModule,
142
- ReactiveFormsModule,
143
- FormlyNzFormFieldModule,
144
- NzInputNumberModule,
145
- FormlyModule.forChild({
146
- types: [
147
- {
148
- name: 'number',
149
- component: FormlyFieldInputNumber,
150
- wrappers: ['form-field']
151
- },
152
- {
153
- name: 'integer',
154
- extends: 'number'
155
- }
156
- ]
157
- })] });
158
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzInputNumberModule, decorators: [{
158
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzInputNumberModule, decorators: [{
159
159
  type: NgModule,
160
160
  args: [{
161
161
  declarations: [FormlyFieldInputNumber],
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-formly-zorro-antd-input-number.mjs","sources":["../../../../packages/formlyantd/input-number/src/input-number.type.ts","../../../../packages/formlyantd/input-number/src/input-number.module.ts","../../../../packages/formlyantd/input-number/src/ngx-formly-zorro-antd-input-number.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\n\nimport type { InputNumberProps } from './input-number.props';\n\nexport interface FormlyInputNumberFieldConfig extends FormlyFieldConfig<InputNumberProps> {\n type: 'number' | 'integer' | Type<FormlyFieldInputNumber>;\n}\n\n@Component({\n selector: 'formly-field-inputnumber',\n template: `\n <ng-container [ngSwitch]=\"props.type\">\n <nz-input-number-group\n *ngSwitchCase=\"'group'\"\n [ngClass]=\"props['className']\"\n [nzAddOnAfter]=\"props['addOnAfter']\"\n [nzAddOnBefore]=\"props['addOnBefore']\"\n [nzPrefix]=\"props['prefix']\"\n [nzSuffix]=\"props['suffix']\"\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzCompact]=\"props['compact']\"\n >\n <ng-container *ngTemplateOutlet=\"nzinputnumber\"></ng-container>\n </nz-input-number-group>\n\n <ng-container *ngSwitchDefault>\n <ng-template [ngTemplateOutlet]=\"nzinputnumber\"></ng-template>\n </ng-container>\n </ng-container>\n\n <ng-template #nzinputnumber>\n <nz-input-number\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzMax]=\"props.max!\"\n [nzMin]=\"props.min!\"\n [nzReadOnly]=\"props.readonly!!\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzBorderless]=\"!!props['borderless']\"\n [nzPrecision]=\"props['precision']\"\n [nzPrecisionMode]=\"props['precisionMode']!\"\n [nzStep]=\"props['step'] ?? 1\"\n [nzFormatter]=\"props['formatter']!\"\n [nzParser]=\"props['parser']!\"\n [nzInputMode]=\"props['inputMode']!\"\n [ngClass]=\"props['className']\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n (nzFocus)=\"props.focus && props.focus(field, $event)\"\n (nzBlur)=\"props.blur && props.blur(field, $event)\"\n ></nz-input-number>\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldInputNumber extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n max: Infinity,\n min: -Infinity,\n parser: (value: string) =>\n value\n .trim()\n .replace(/。/g, '.')\n // eslint-disable-next-line no-useless-escape\n .replace(/[^\\w\\.-]+/g, ''),\n precisionMode: 'toFixed' as const,\n size: 'default' as const,\n status: '' as const,\n step: 1,\n inputMode: 'decimal',\n formatter: (value: number | string) => value\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 { FormlyFieldInputNumber } from './input-number.type';\nimport { NzInputNumberModule } from 'ng-zorro-antd/input-number';\n\n@NgModule({\n declarations: [FormlyFieldInputNumber],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzInputNumberModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'number',\n component: FormlyFieldInputNumber,\n wrappers: ['form-field']\n },\n {\n name: 'integer',\n extends: 'number'\n }\n ]\n })\n ]\n})\nexport class FormlyNzInputNumberModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AA0DM,MAAO,sBAAuB,SAAQ,SAA0B,CAAA;AAjDtE,IAAA,WAAA,GAAA;;AAkDW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,GAAG,EAAE,QAAQ;gBACb,GAAG,EAAE,CAAC,QAAQ;AACd,gBAAA,MAAM,EAAE,CAAC,KAAa,KACpB,KAAK;AACF,qBAAA,IAAI,EAAE;AACN,qBAAA,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;;AAElB,qBAAA,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC;AAC9B,gBAAA,aAAa,EAAE,SAAkB;AACjC,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,IAAI,EAAE,CAAC;AACP,gBAAA,SAAS,EAAE,SAAS;AACpB,gBAAA,SAAS,EAAE,CAAC,KAAsB,KAAK,KAAK;AAC7C,aAAA;SACF,CAAC;AACH,KAAA;8GAnBY,sBAAsB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,sBAAsB,EA/CvB,QAAA,EAAA,0BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;A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,QAAQ;AAClB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
@@ -32,9 +32,8 @@ class FormlyFieldInput extends FieldType {
32
32
  };
33
33
  this.passwordVisible = false;
34
34
  }
35
- }
36
- FormlyFieldInputfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyFieldInput, deps: null, target: i0.ɵɵFactoryTarget.Component });
37
- FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: FormlyFieldInput, selector: "formly-field-input", usesInheritance: true, ngImport: i0, template: `
35
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldInput, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
36
+ static { thiscmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyFieldInput, selector: "formly-field-input", usesInheritance: true, ngImport: i0, template: `
38
37
  <ng-container [ngSwitch]="props.type">
39
38
  <ng-container *ngSwitchCase="'password'">
40
39
  <nz-input-group
@@ -169,8 +168,9 @@ FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versi
169
168
  (click)="formControl.reset()"
170
169
  ></span>
171
170
  </ng-template>
172
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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: 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: "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.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "component", type: i4.NzAutocompleteComponent, selector: "nz-autocomplete", inputs: ["nzWidth", "nzOverlayClassName", "nzOverlayStyle", "nzDefaultActiveFirstOption", "nzBackfill", "compareWith", "nzDataSource"], outputs: ["selectionChange"], exportAs: ["nzAutocomplete"] }, { kind: "component", type: i4.NzAutocompleteOptionComponent, selector: "nz-auto-option", inputs: ["nzValue", "nzLabel", "nzDisabled"], outputs: ["selectionChange", "mouseEntered"], exportAs: ["nzAutoOption"] }, { kind: "directive", type: i4.NzAutocompleteTriggerDirective, selector: "input[nzAutocomplete], textarea[nzAutocomplete]", inputs: ["nzAutocomplete"], exportAs: ["nzAutocompleteTrigger"] }, { kind: "directive", type: i5.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i6.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
173
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyFieldInput, decorators: [{
171
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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: 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: "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.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "component", type: i4.NzAutocompleteComponent, selector: "nz-autocomplete", inputs: ["nzWidth", "nzOverlayClassName", "nzOverlayStyle", "nzDefaultActiveFirstOption", "nzBackfill", "compareWith", "nzDataSource"], outputs: ["selectionChange"], exportAs: ["nzAutocomplete"] }, { kind: "component", type: i4.NzAutocompleteOptionComponent, selector: "nz-auto-option", inputs: ["nzValue", "nzLabel", "nzDisabled"], outputs: ["selectionChange", "mouseEntered"], exportAs: ["nzAutoOption"] }, { kind: "directive", type: i4.NzAutocompleteTriggerDirective, selector: "input[nzAutocomplete], textarea[nzAutocomplete]", inputs: ["nzAutocomplete"], exportAs: ["nzAutocompleteTrigger"] }, { kind: "directive", type: i5.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i6.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
172
+ }
173
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldInput, decorators: [{
174
174
  type: Component,
175
175
  args: [{
176
176
  selector: 'formly-field-input',
@@ -315,45 +315,45 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
315
315
  }] });
316
316
 
317
317
  class FormlyNzInputModule {
318
- }
319
- FormlyNzInputModulefac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
320
- FormlyNzInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzInputModule, declarations: [FormlyFieldInput], imports: [CommonModule,
321
- ReactiveFormsModule,
322
- NzInputModule,
323
- NzAutocompleteModule,
324
- NzIconModule,
325
- FormlyNzFormFieldModule, i6.FormlyModule] });
326
- FormlyNzInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzInputModule, imports: [CommonModule,
327
- ReactiveFormsModule,
328
- NzInputModule,
329
- NzAutocompleteModule,
330
- NzIconModule,
331
- FormlyNzFormFieldModule,
332
- FormlyModule.forChild({
333
- types: [
334
- {
335
- name: 'input',
336
- component: FormlyFieldInput,
337
- wrappers: ['form-field'],
338
- defaultOptions: {
339
- props: {
340
- type: 'input'
318
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
319
+ static { thismod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzInputModule, declarations: [FormlyFieldInput], imports: [CommonModule,
320
+ ReactiveFormsModule,
321
+ NzInputModule,
322
+ NzAutocompleteModule,
323
+ NzIconModule,
324
+ FormlyNzFormFieldModule, i6.FormlyModule] }); }
325
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzInputModule, imports: [CommonModule,
326
+ ReactiveFormsModule,
327
+ NzInputModule,
328
+ NzAutocompleteModule,
329
+ NzIconModule,
330
+ FormlyNzFormFieldModule,
331
+ FormlyModule.forChild({
332
+ types: [
333
+ {
334
+ name: 'input',
335
+ component: FormlyFieldInput,
336
+ wrappers: ['form-field'],
337
+ defaultOptions: {
338
+ props: {
339
+ type: 'input'
340
+ }
341
341
  }
342
- }
343
- },
344
- { name: 'string', extends: 'input' },
345
- {
346
- name: 'password',
347
- extends: 'input',
348
- defaultOptions: {
349
- props: {
350
- type: 'password'
342
+ },
343
+ { name: 'string', extends: 'input' },
344
+ {
345
+ name: 'password',
346
+ extends: 'input',
347
+ defaultOptions: {
348
+ props: {
349
+ type: 'password'
350
+ }
351
351
  }
352
352
  }
353
- }
354
- ]
355
- })] });
356
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzInputModule, decorators: [{
353
+ ]
354
+ })] }); }
355
+ }
356
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzInputModule, decorators: [{
357
357
  type: NgModule,
358
358
  args: [{
359
359
  declarations: [FormlyFieldInput],
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-formly-zorro-antd-input.mjs","sources":["../../../../packages/formlyantd/input/src/input.type.ts","../../../../packages/formlyantd/input/src/input.module.ts","../../../../packages/formlyantd/input/src/ngx-formly-zorro-antd-input.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\nimport type { InputProps } from './input.props';\n\nexport interface FormlyInputFieldConfig extends FormlyFieldConfig<InputProps> {\n type: 'input' | 'string' | 'password' | Type<FormlyFieldInput>;\n}\n\n@Component({\n selector: 'formly-field-input',\n template: `\n <ng-container [ngSwitch]=\"props.type\">\n <ng-container *ngSwitchCase=\"'password'\">\n <nz-input-group\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\n [nzAddOnBefore]=\"props['addOnBefore']\"\n [nzAddOnAfter]=\"props['addOnAfter']\"\n [nzPrefix]=\"props['prefix']\"\n [nzCompact]=\"props['compact']!!\"\n [nzSearch]=\"props['search']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzSuffix]=\"passwordEyeTpl\"\n >\n <input\n [type]=\"passwordVisible ? 'text' : 'password'\"\n nz-input\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzBorderless]=\"props['borderless']!!\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n />\n </nz-input-group>\n </ng-container>\n\n <nz-input-group\n *ngSwitchCase=\"'autoComplete'\"\n [nzSize]=\"props['size']\"\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\n [nzAddOnBefore]=\"props['addOnBefore']\"\n [nzAddOnAfter]=\"props['addOnAfter']\"\n [nzPrefix]=\"props['prefix']\"\n [nzSuffix]=\"props['allowClear']!! ? inputClearTpl : props['suffix']\"\n >\n <input\n nz-input\n [nzBorderless]=\"props['borderless']\"\n [nzAutocomplete]=\"auto\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n />\n <nz-autocomplete\n [nzBackfill]=\"props['autocompleteOptions']?.backfill\"\n [nzDefaultActiveFirstOption]=\"props['autocompleteOptions']?.defaultActiveFirstOption\"\n [nzWidth]=\"props['autocompleteOptions']?.width\"\n [nzOverlayClassName]=\"props['autocompleteOptions']?.overlayClassName\"\n [nzOverlayStyle]=\"props['autocompleteOptions']?.overlayStyle\"\n [compareWith]=\"props['autocompleteOptions']?.compareWith\"\n #auto\n >\n <nz-auto-option\n *ngFor=\"let option of props['autocompleteOptions'].dataSource\"\n [nzLabel]=\"option.label\"\n [nzValue]=\"option.value\"\n >\n {{ option.label }}\n </nz-auto-option>\n </nz-autocomplete>\n </nz-input-group>\n\n <nz-input-group\n *ngSwitchCase=\"'group'\"\n [nzPrefixIcon]=\"props['prefixIcon']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\n [nzAddOnBefore]=\"props['addOnBefore']\"\n [nzAddOnAfter]=\"props['addOnAfter']\"\n [nzPrefix]=\"props['prefix']\"\n [nzSuffix]=\"props['allowClear']!! ? inputClearTpl : props['suffix']\"\n [nzCompact]=\"props['compact']!!\"\n [nzSearch]=\"props['search']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n >\n <input\n nz-input\n type=\"text\"\n [ngClass]=\"props['className']!\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzBorderless]=\"!!props['borderless']!!\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n />\n </nz-input-group>\n\n <input\n *ngSwitchDefault\n nz-input\n type=\"text\"\n [ngClass]=\"props['className']!\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzSize]=\"props['size']\"\n [nzStatus]=\"props['status']\"\n [nzBorderless]=\"props['borderless']!!\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n />\n </ng-container>\n\n <!-- 查看密码 -->\n <ng-template #passwordEyeTpl>\n <span\n nz-icon\n class=\"cursor-pointer\"\n [nzType]=\"passwordVisible ? 'eye-invisible' : 'eye'\"\n (click)=\"passwordVisible = !passwordVisible\"\n ></span>\n\n <span\n nz-icon\n class=\"ant-input-clear-icon\"\n nzTheme=\"fill\"\n nzType=\"close-circle\"\n *ngIf=\"formControl.value && props['allowClear']!!\"\n (click)=\"formControl.reset()\"\n ></span>\n </ng-template>\n <!-- 清除数据 -->\n <ng-template #inputClearTpl>\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 FormlyFieldInput extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n borderless: false,\n compact: false,\n search: false,\n allowClear: false,\n autocompleteOptions: {\n backfill: false,\n defaultActiveFirstOption: true,\n compareWith: (o1: NzSafeAny, o2: NzSafeAny) => o1 === o2\n }\n }\n };\n passwordVisible = false;\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 { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzAutocompleteModule } from 'ng-zorro-antd/auto-complete';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\nimport { FormlyFieldInput } from './input.type';\n\n@NgModule({\n declarations: [FormlyFieldInput],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzInputModule,\n NzAutocompleteModule,\n NzIconModule,\n\n FormlyNzFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'input',\n component: FormlyFieldInput,\n wrappers: ['form-field'],\n defaultOptions: {\n props: {\n type: 'input'\n }\n }\n },\n { name: 'string', extends: 'input' },\n {\n name: 'password',\n extends: 'input',\n defaultOptions: {\n props: {\n type: 'password'\n }\n }\n }\n ]\n })\n ]\n})\nexport class FormlyNzInputModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;AAsJM,MAAO,gBAAiB,SAAQ,SAA0B,CAAA;AA5IhE,IAAA,WAAA,GAAA;;AA6IW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,MAAM,EAAE,KAAK;AACb,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,mBAAmB,EAAE;AACnB,oBAAA,QAAQ,EAAE,KAAK;AACf,oBAAA,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,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC/CD;;AAEG;;;;"}
@@ -23,9 +23,8 @@ class FormlyFieldRadio extends FieldType {
23
23
  }
24
24
  };
25
25
  }
26
- }
27
- FormlyFieldRadiofac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component });
28
- FormlyFieldRadio.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: FormlyFieldRadio, selector: "formly-field-radio", usesInheritance: true, ngImport: i0, template: `
26
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
27
+ static { thiscmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyFieldRadio, selector: "formly-field-radio", usesInheritance: true, ngImport: i0, template: `
29
28
  <nz-radio-group
30
29
  [formControl]="formControl"
31
30
  [formlyAttributes]="field"
@@ -58,8 +57,9 @@ FormlyFieldRadio.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versi
58
57
  </label>
59
58
  </ng-template>
60
59
  </nz-radio-group>
61
- `, 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.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus"], exportAs: ["nzRadio"] }, { kind: "directive", type: i3.NzRadioButtonDirective, selector: "[nz-radio-button]" }, { kind: "component", type: i3.NzRadioGroupComponent, selector: "nz-radio-group", inputs: ["nzDisabled", "nzButtonStyle", "nzSize", "nzName"], exportAs: ["nzRadioGroup"] }, { 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 });
62
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyFieldRadio, decorators: [{
60
+ `, 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.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus"], exportAs: ["nzRadio"] }, { kind: "directive", type: i3.NzRadioButtonDirective, selector: "[nz-radio-button]" }, { kind: "component", type: i3.NzRadioGroupComponent, selector: "nz-radio-group", inputs: ["nzDisabled", "nzButtonStyle", "nzSize", "nzName"], exportAs: ["nzRadioGroup"] }, { 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 }); }
61
+ }
62
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldRadio, decorators: [{
63
63
  type: Component,
64
64
  args: [{
65
65
  selector: 'formly-field-radio',
@@ -102,30 +102,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
102
102
  }] });
103
103
 
104
104
  class FormlyNzRadioModule {
105
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
106
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzRadioModule, declarations: [FormlyFieldRadio], imports: [CommonModule,
107
+ ReactiveFormsModule,
108
+ FormlyNzFormFieldModule,
109
+ FormlySelectModule,
110
+ NzFormModule,
111
+ NzRadioModule, i4.FormlyModule] }); }
112
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzRadioModule, imports: [CommonModule,
113
+ ReactiveFormsModule,
114
+ FormlyNzFormFieldModule,
115
+ FormlySelectModule,
116
+ NzFormModule,
117
+ NzRadioModule,
118
+ FormlyModule.forChild({
119
+ types: [
120
+ {
121
+ name: 'radio',
122
+ component: FormlyFieldRadio,
123
+ wrappers: ['form-field']
124
+ }
125
+ ]
126
+ })] }); }
105
127
  }
106
- FormlyNzRadioModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
107
- FormlyNzRadioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzRadioModule, declarations: [FormlyFieldRadio], imports: [CommonModule,
108
- ReactiveFormsModule,
109
- FormlyNzFormFieldModule,
110
- FormlySelectModule,
111
- NzFormModule,
112
- NzRadioModule, i4.FormlyModule] });
113
- FormlyNzRadioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzRadioModule, imports: [CommonModule,
114
- ReactiveFormsModule,
115
- FormlyNzFormFieldModule,
116
- FormlySelectModule,
117
- NzFormModule,
118
- NzRadioModule,
119
- FormlyModule.forChild({
120
- types: [
121
- {
122
- name: 'radio',
123
- component: FormlyFieldRadio,
124
- wrappers: ['form-field']
125
- }
126
- ]
127
- })] });
128
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormlyNzRadioModule, decorators: [{
128
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzRadioModule, decorators: [{
129
129
  type: NgModule,
130
130
  args: [{
131
131
  declarations: [FormlyFieldRadio],
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-formly-zorro-antd-radio.mjs","sources":["../../../../packages/formlyantd/radio/src/radio.type.ts","../../../../packages/formlyantd/radio/src/radio.module.ts","../../../../packages/formlyantd/radio/src/ngx-formly-zorro-antd-radio.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\nimport type { FormlyFieldSelectProps } from '@ngx-formly/core/select';\nimport type { NzSizeLDSType } from 'ng-zorro-antd/core/types';\nimport type { NzRadioButtonStyle } from 'ng-zorro-antd/radio';\n\ninterface RadioProps extends FormlyFieldProps, FormlyFieldSelectProps {\n type?: 'button';\n\n /**\n * nz-radio-group 下所有 input[type=\"radio\"] 的 name 属性\n */\n name?: string | null;\n /**\n * 大小,只对按钮样式生效\n * @default default\n */\n size?: NzSizeLDSType;\n /**\n * RadioButton 的风格样式,目前有描边和填色两种风格\n * @default outline\n */\n buttonStyle?: NzRadioButtonStyle;\n}\n\nexport interface FormlyRadioFieldConfig extends FormlyFieldConfig<RadioProps> {\n type: 'radio' | Type<FormlyFieldRadio>;\n}\n\n@Component({\n selector: 'formly-field-radio',\n template: `\n <nz-radio-group\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzName]=\"field.name ?? null\"\n [nzSize]=\"props['size']!\"\n [nzButtonStyle]=\"props['buttonStyle']!\"\n (ngModelChange)=\"props.change && props.change(field, $event)\"\n >\n <ng-container *ngIf=\"props.type !== 'button'; else button\">\n <label\n *ngFor=\"let option of props.options | formlySelectOptions: field | async; let i = index\"\n [id]=\"id + '_' + i\"\n [nzDisabled]=\"option.disabled === true\"\n [nzValue]=\"option.value\"\n nz-radio\n >\n {{ option.label }}\n </label>\n </ng-container>\n\n <ng-template #button>\n <label\n *ngFor=\"let option of props.options | formlySelectOptions: field | async; let i = index\"\n [id]=\"id + '_' + i\"\n [nzDisabled]=\"option.disabled === true\"\n [nzValue]=\"option.value\"\n nz-radio-button\n >\n {{ option.label }}\n </label>\n </ng-template>\n </nz-radio-group>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldRadio extends FieldType<FieldTypeConfig<RadioProps>> {\n override defaultOptions = {\n props: {\n size: 'default' as const,\n buttonStyle: 'outline' 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 { FormlySelectModule } from '@ngx-formly/core/select';\n\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\nimport { FormlyFieldRadio } from './radio.type';\n\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\n\n@NgModule({\n declarations: [FormlyFieldRadio],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n FormlySelectModule,\n NzFormModule,\n\n NzRadioModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'radio',\n component: FormlyFieldRadio,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzRadioModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;AAqEM,MAAO,gBAAiB,SAAQ,SAAsC,CAAA;AAtC5E,IAAA,WAAA,GAAA;;AAuCW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,WAAW,EAAE,SAAkB;AAChC,aAAA;SACF,CAAC;AACH,KAAA;8GAPY,gBAAgB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,gBAAgB,EApCjB,QAAA,EAAA,oBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,cAAA,EAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,IAAA,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,UAAA,CAAA,EAAA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