ngx-formly-zorro-antd 15.0.1 → 16.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (256) hide show
  1. package/esm2022/button/button.module.mjs +62 -0
  2. package/{esm2020 → esm2022}/button/button.type.mjs +8 -7
  3. package/esm2022/card/card.module.mjs +44 -0
  4. package/esm2022/card/card.wrapper.mjs +48 -0
  5. package/esm2022/cascader/cascader.module.mjs +52 -0
  6. package/esm2022/cascader/cascader.type.mjs +113 -0
  7. package/esm2022/checkbox/checkbox.module.mjs +60 -0
  8. package/esm2022/checkbox/checkbox.type.mjs +70 -0
  9. package/esm2022/datepicker/datepicker.module.mjs +52 -0
  10. package/{esm2020 → esm2022}/datepicker/datepicker.type.mjs +8 -7
  11. package/esm2022/form-field/form-field.module.mjs +46 -0
  12. package/{esm2020 → esm2022}/form-field/form-field.wrapper.mjs +8 -7
  13. package/esm2022/grid/grid.module.mjs +42 -0
  14. package/{esm2020 → esm2022}/grid/grid.type.mjs +8 -7
  15. package/esm2022/input/input.module.mjs +90 -0
  16. package/{esm2020 → esm2022}/input/input.type.mjs +10 -9
  17. package/esm2022/input-group/input-group.module.mjs +48 -0
  18. package/esm2022/input-group/input-group.type.mjs +72 -0
  19. package/esm2022/input-number/input-number.module.mjs +60 -0
  20. package/{esm2020 → esm2022}/input-number/input-number.type.mjs +8 -7
  21. package/esm2022/lib/ui-ng-zorro-antd.module.mjs +98 -0
  22. package/esm2022/radio/radio.module.mjs +60 -0
  23. package/{esm2020 → esm2022}/radio/radio.type.mjs +8 -7
  24. package/esm2022/rate/rate.module.mjs +52 -0
  25. package/esm2022/rate/rate.type.mjs +64 -0
  26. package/esm2022/select/select.module.mjs +58 -0
  27. package/{esm2020 → esm2022}/select/select.type.mjs +8 -7
  28. package/esm2022/slider/slider.module.mjs +52 -0
  29. package/esm2022/slider/slider.type.mjs +68 -0
  30. package/esm2022/switch/switch.module.mjs +52 -0
  31. package/esm2022/switch/switch.type.mjs +54 -0
  32. package/esm2022/tabs/tabs.module.mjs +42 -0
  33. package/{esm2020 → esm2022}/tabs/tabs.wrapper.mjs +8 -7
  34. package/esm2022/textarea/textarea.module.mjs +56 -0
  35. package/{esm2020 → esm2022}/textarea/textarea.type.mjs +10 -9
  36. package/esm2022/timepicker/timepicker.module.mjs +52 -0
  37. package/esm2022/timepicker/timepicker.type.mjs +97 -0
  38. package/esm2022/transfer/transfer.component.mjs +129 -0
  39. package/esm2022/transfer/transfer.module.mjs +53 -0
  40. package/esm2022/transfer/transfer.type.mjs +88 -0
  41. package/esm2022/tree-select/tree-select.module.mjs +52 -0
  42. package/esm2022/tree-select/tree-select.type.mjs +102 -0
  43. package/{esm2020 → esm2022}/upload/upload.component.mjs +14 -13
  44. package/esm2022/upload/upload.module.mjs +61 -0
  45. package/{esm2020 → esm2022}/upload/upload.props.mjs +1 -1
  46. package/{esm2020 → esm2022}/upload/upload.type.mjs +8 -7
  47. package/fesm2022/ngx-formly-zorro-antd-autocomplete.mjs.map +1 -0
  48. package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd-button.mjs +29 -29
  49. package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -0
  50. package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-card.mjs +20 -20
  51. package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -0
  52. package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-cascader.mjs +24 -24
  53. package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -0
  54. package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-checkbox.mjs +28 -28
  55. package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -0
  56. package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd-datepicker.mjs +24 -24
  57. package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -0
  58. package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd-form-field.mjs +21 -21
  59. package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -0
  60. package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-grid.mjs +19 -19
  61. package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -0
  62. package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-input-group.mjs +22 -22
  63. package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -0
  64. package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-input-number.mjs +28 -28
  65. package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -0
  66. package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-input.mjs +43 -43
  67. package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -0
  68. package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-radio.mjs +28 -28
  69. package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -0
  70. package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd-rate.mjs +24 -24
  71. package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -0
  72. package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-select.mjs +27 -27
  73. package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -0
  74. package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-slider.mjs +24 -24
  75. package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -0
  76. package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd-switch.mjs +24 -24
  77. package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -0
  78. package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd-tabs.mjs +19 -19
  79. package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -0
  80. package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-textarea.mjs +28 -28
  81. package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -0
  82. package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-timepicker.mjs +24 -24
  83. package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -0
  84. package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd-transfer.mjs +35 -35
  85. package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -0
  86. package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd-tree-select.mjs +24 -24
  87. package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -0
  88. package/{fesm2020 → fesm2022}/ngx-formly-zorro-antd-upload.mjs +39 -39
  89. package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -0
  90. package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd.mjs +44 -44
  91. package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -0
  92. package/form-field/form-field.wrapper.d.ts +1 -1
  93. package/package.json +85 -135
  94. package/rate/rate.type.d.ts +3 -1
  95. package/transfer/transfer.component.d.ts +1 -1
  96. package/upload/upload.component.d.ts +1 -1
  97. package/upload/upload.props.d.ts +3 -1
  98. package/esm2020/button/button.module.mjs +0 -61
  99. package/esm2020/card/card.module.mjs +0 -43
  100. package/esm2020/card/card.wrapper.mjs +0 -47
  101. package/esm2020/cascader/cascader.module.mjs +0 -51
  102. package/esm2020/cascader/cascader.type.mjs +0 -112
  103. package/esm2020/checkbox/checkbox.module.mjs +0 -59
  104. package/esm2020/checkbox/checkbox.type.mjs +0 -69
  105. package/esm2020/datepicker/datepicker.module.mjs +0 -51
  106. package/esm2020/form-field/form-field.module.mjs +0 -45
  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-group/input-group.type.mjs +0 -71
  111. package/esm2020/input-number/input-number.module.mjs +0 -59
  112. package/esm2020/lib/ui-ng-zorro-antd.module.mjs +0 -97
  113. package/esm2020/radio/radio.module.mjs +0 -59
  114. package/esm2020/rate/rate.module.mjs +0 -51
  115. package/esm2020/rate/rate.type.mjs +0 -63
  116. package/esm2020/select/select.module.mjs +0 -57
  117. package/esm2020/slider/slider.module.mjs +0 -51
  118. package/esm2020/slider/slider.type.mjs +0 -67
  119. package/esm2020/switch/switch.module.mjs +0 -51
  120. package/esm2020/switch/switch.type.mjs +0 -53
  121. package/esm2020/tabs/tabs.module.mjs +0 -41
  122. package/esm2020/textarea/textarea.module.mjs +0 -55
  123. package/esm2020/timepicker/timepicker.module.mjs +0 -51
  124. package/esm2020/timepicker/timepicker.type.mjs +0 -96
  125. package/esm2020/transfer/transfer.component.mjs +0 -128
  126. package/esm2020/transfer/transfer.module.mjs +0 -52
  127. package/esm2020/transfer/transfer.type.mjs +0 -87
  128. package/esm2020/tree-select/tree-select.module.mjs +0 -51
  129. package/esm2020/tree-select/tree-select.type.mjs +0 -101
  130. package/esm2020/upload/upload.module.mjs +0 -60
  131. package/fesm2015/ngx-formly-zorro-antd-autocomplete.mjs.map +0 -1
  132. package/fesm2015/ngx-formly-zorro-antd-button.mjs.map +0 -1
  133. package/fesm2015/ngx-formly-zorro-antd-card.mjs +0 -93
  134. package/fesm2015/ngx-formly-zorro-antd-card.mjs.map +0 -1
  135. package/fesm2015/ngx-formly-zorro-antd-cascader.mjs +0 -165
  136. package/fesm2015/ngx-formly-zorro-antd-cascader.mjs.map +0 -1
  137. package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs +0 -130
  138. package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs.map +0 -1
  139. package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs.map +0 -1
  140. package/fesm2015/ngx-formly-zorro-antd-form-field.mjs.map +0 -1
  141. package/fesm2015/ngx-formly-zorro-antd-grid.mjs +0 -114
  142. package/fesm2015/ngx-formly-zorro-antd-grid.mjs.map +0 -1
  143. package/fesm2015/ngx-formly-zorro-antd-input-group.mjs +0 -120
  144. package/fesm2015/ngx-formly-zorro-antd-input-group.mjs.map +0 -1
  145. package/fesm2015/ngx-formly-zorro-antd-input-number.mjs +0 -189
  146. package/fesm2015/ngx-formly-zorro-antd-input-number.mjs.map +0 -1
  147. package/fesm2015/ngx-formly-zorro-antd-input.mjs +0 -400
  148. package/fesm2015/ngx-formly-zorro-antd-input.mjs.map +0 -1
  149. package/fesm2015/ngx-formly-zorro-antd-radio.mjs +0 -157
  150. package/fesm2015/ngx-formly-zorro-antd-radio.mjs.map +0 -1
  151. package/fesm2015/ngx-formly-zorro-antd-rate.mjs.map +0 -1
  152. package/fesm2015/ngx-formly-zorro-antd-select.mjs +0 -228
  153. package/fesm2015/ngx-formly-zorro-antd-select.mjs.map +0 -1
  154. package/fesm2015/ngx-formly-zorro-antd-slider.mjs +0 -120
  155. package/fesm2015/ngx-formly-zorro-antd-slider.mjs.map +0 -1
  156. package/fesm2015/ngx-formly-zorro-antd-switch.mjs.map +0 -1
  157. package/fesm2015/ngx-formly-zorro-antd-tabs.mjs.map +0 -1
  158. package/fesm2015/ngx-formly-zorro-antd-textarea.mjs +0 -198
  159. package/fesm2015/ngx-formly-zorro-antd-textarea.mjs.map +0 -1
  160. package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs +0 -149
  161. package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs.map +0 -1
  162. package/fesm2015/ngx-formly-zorro-antd-transfer.mjs.map +0 -1
  163. package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs.map +0 -1
  164. package/fesm2015/ngx-formly-zorro-antd-upload.mjs +0 -438
  165. package/fesm2015/ngx-formly-zorro-antd-upload.mjs.map +0 -1
  166. package/fesm2015/ngx-formly-zorro-antd.mjs.map +0 -1
  167. package/fesm2020/ngx-formly-zorro-antd-autocomplete.mjs +0 -4
  168. package/fesm2020/ngx-formly-zorro-antd-autocomplete.mjs.map +0 -1
  169. package/fesm2020/ngx-formly-zorro-antd-button.mjs +0 -173
  170. package/fesm2020/ngx-formly-zorro-antd-button.mjs.map +0 -1
  171. package/fesm2020/ngx-formly-zorro-antd-card.mjs.map +0 -1
  172. package/fesm2020/ngx-formly-zorro-antd-cascader.mjs.map +0 -1
  173. package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs.map +0 -1
  174. package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs +0 -249
  175. package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs.map +0 -1
  176. package/fesm2020/ngx-formly-zorro-antd-form-field.mjs +0 -174
  177. package/fesm2020/ngx-formly-zorro-antd-form-field.mjs.map +0 -1
  178. package/fesm2020/ngx-formly-zorro-antd-grid.mjs.map +0 -1
  179. package/fesm2020/ngx-formly-zorro-antd-input-group.mjs.map +0 -1
  180. package/fesm2020/ngx-formly-zorro-antd-input-number.mjs.map +0 -1
  181. package/fesm2020/ngx-formly-zorro-antd-input.mjs.map +0 -1
  182. package/fesm2020/ngx-formly-zorro-antd-radio.mjs.map +0 -1
  183. package/fesm2020/ngx-formly-zorro-antd-rate.mjs +0 -116
  184. package/fesm2020/ngx-formly-zorro-antd-rate.mjs.map +0 -1
  185. package/fesm2020/ngx-formly-zorro-antd-select.mjs.map +0 -1
  186. package/fesm2020/ngx-formly-zorro-antd-slider.mjs.map +0 -1
  187. package/fesm2020/ngx-formly-zorro-antd-switch.mjs +0 -106
  188. package/fesm2020/ngx-formly-zorro-antd-switch.mjs.map +0 -1
  189. package/fesm2020/ngx-formly-zorro-antd-tabs.mjs +0 -158
  190. package/fesm2020/ngx-formly-zorro-antd-tabs.mjs.map +0 -1
  191. package/fesm2020/ngx-formly-zorro-antd-textarea.mjs.map +0 -1
  192. package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs.map +0 -1
  193. package/fesm2020/ngx-formly-zorro-antd-transfer.mjs +0 -262
  194. package/fesm2020/ngx-formly-zorro-antd-transfer.mjs.map +0 -1
  195. package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs +0 -154
  196. package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs.map +0 -1
  197. package/fesm2020/ngx-formly-zorro-antd-upload.mjs.map +0 -1
  198. package/fesm2020/ngx-formly-zorro-antd.mjs +0 -104
  199. package/fesm2020/ngx-formly-zorro-antd.mjs.map +0 -1
  200. /package/{esm2020 → esm2022}/autocomplete/autocomplete.props.mjs +0 -0
  201. /package/{esm2020 → esm2022}/autocomplete/ngx-formly-zorro-antd-autocomplete.mjs +0 -0
  202. /package/{esm2020 → esm2022}/autocomplete/public_api.mjs +0 -0
  203. /package/{esm2020 → esm2022}/button/ngx-formly-zorro-antd-button.mjs +0 -0
  204. /package/{esm2020 → esm2022}/button/public_api.mjs +0 -0
  205. /package/{esm2020 → esm2022}/card/ngx-formly-zorro-antd-card.mjs +0 -0
  206. /package/{esm2020 → esm2022}/card/public_api.mjs +0 -0
  207. /package/{esm2020 → esm2022}/cascader/ngx-formly-zorro-antd-cascader.mjs +0 -0
  208. /package/{esm2020 → esm2022}/cascader/public_api.mjs +0 -0
  209. /package/{esm2020 → esm2022}/checkbox/ngx-formly-zorro-antd-checkbox.mjs +0 -0
  210. /package/{esm2020 → esm2022}/checkbox/public_api.mjs +0 -0
  211. /package/{esm2020 → esm2022}/datepicker/datepicker.props.mjs +0 -0
  212. /package/{esm2020 → esm2022}/datepicker/ngx-formly-zorro-antd-datepicker.mjs +0 -0
  213. /package/{esm2020 → esm2022}/datepicker/public_api.mjs +0 -0
  214. /package/{esm2020 → esm2022}/form-field/form-field.props.mjs +0 -0
  215. /package/{esm2020 → esm2022}/form-field/ngx-formly-zorro-antd-form-field.mjs +0 -0
  216. /package/{esm2020 → esm2022}/form-field/public_api.mjs +0 -0
  217. /package/{esm2020 → esm2022}/grid/grid.props.mjs +0 -0
  218. /package/{esm2020 → esm2022}/grid/ngx-formly-zorro-antd-grid.mjs +0 -0
  219. /package/{esm2020 → esm2022}/grid/public_api.mjs +0 -0
  220. /package/{esm2020 → esm2022}/index.mjs +0 -0
  221. /package/{esm2020 → esm2022}/input/input.props.mjs +0 -0
  222. /package/{esm2020 → esm2022}/input/ngx-formly-zorro-antd-input.mjs +0 -0
  223. /package/{esm2020 → esm2022}/input/public_api.mjs +0 -0
  224. /package/{esm2020 → esm2022}/input-group/input-group.props.mjs +0 -0
  225. /package/{esm2020 → esm2022}/input-group/ngx-formly-zorro-antd-input-group.mjs +0 -0
  226. /package/{esm2020 → esm2022}/input-group/public_api.mjs +0 -0
  227. /package/{esm2020 → esm2022}/input-number/input-number.props.mjs +0 -0
  228. /package/{esm2020 → esm2022}/input-number/ngx-formly-zorro-antd-input-number.mjs +0 -0
  229. /package/{esm2020 → esm2022}/input-number/public_api.mjs +0 -0
  230. /package/{esm2020 → esm2022}/lib/ui-ng-zorro-antd.mjs +0 -0
  231. /package/{esm2020 → esm2022}/ngx-formly-zorro-antd.mjs +0 -0
  232. /package/{esm2020 → esm2022}/radio/ngx-formly-zorro-antd-radio.mjs +0 -0
  233. /package/{esm2020 → esm2022}/radio/public_api.mjs +0 -0
  234. /package/{esm2020 → esm2022}/rate/ngx-formly-zorro-antd-rate.mjs +0 -0
  235. /package/{esm2020 → esm2022}/rate/public_api.mjs +0 -0
  236. /package/{esm2020 → esm2022}/select/ngx-formly-zorro-antd-select.mjs +0 -0
  237. /package/{esm2020 → esm2022}/select/public_api.mjs +0 -0
  238. /package/{esm2020 → esm2022}/select/select.props.mjs +0 -0
  239. /package/{esm2020 → esm2022}/slider/ngx-formly-zorro-antd-slider.mjs +0 -0
  240. /package/{esm2020 → esm2022}/slider/public_api.mjs +0 -0
  241. /package/{esm2020 → esm2022}/switch/ngx-formly-zorro-antd-switch.mjs +0 -0
  242. /package/{esm2020 → esm2022}/switch/public_api.mjs +0 -0
  243. /package/{esm2020 → esm2022}/tabs/ngx-formly-zorro-antd-tabs.mjs +0 -0
  244. /package/{esm2020 → esm2022}/tabs/public_api.mjs +0 -0
  245. /package/{esm2020 → esm2022}/tabs/tabs.props.mjs +0 -0
  246. /package/{esm2020 → esm2022}/textarea/ngx-formly-zorro-antd-textarea.mjs +0 -0
  247. /package/{esm2020 → esm2022}/textarea/public_api.mjs +0 -0
  248. /package/{esm2020 → esm2022}/timepicker/ngx-formly-zorro-antd-timepicker.mjs +0 -0
  249. /package/{esm2020 → esm2022}/timepicker/public_api.mjs +0 -0
  250. /package/{esm2020 → esm2022}/transfer/ngx-formly-zorro-antd-transfer.mjs +0 -0
  251. /package/{esm2020 → esm2022}/transfer/public_api.mjs +0 -0
  252. /package/{esm2020 → esm2022}/tree-select/ngx-formly-zorro-antd-tree-select.mjs +0 -0
  253. /package/{esm2020 → esm2022}/tree-select/public_api.mjs +0 -0
  254. /package/{esm2020 → esm2022}/upload/ngx-formly-zorro-antd-upload.mjs +0 -0
  255. /package/{esm2020 → esm2022}/upload/public_api.mjs +0 -0
  256. /package/{fesm2015 → fesm2022}/ngx-formly-zorro-antd-autocomplete.mjs +0 -0
@@ -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.0.3", ngImport: i0, type: FormlyFieldInputGroup, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
31
+ static { thiscmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.3", 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.0.3", 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.0.3", ngImport: i0, type: FormlyNzInputGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
78
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.3", 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.0.3", 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.0.3", 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":";;;;;;;;;;AASA,MAsBa,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,EAAE,CAAC;KAClB;8GAfU,qBAAqB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AA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ACzB,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.0.3", ngImport: i0, type: FormlyFieldInputNumber, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
35
+ static { thiscmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.3", 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.0.3", 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.0.3", ngImport: i0, type: FormlyNzInputNumberModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
136
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.3", 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.0.3", 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.0.3", 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 FormlyNzIn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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.0.3", ngImport: i0, type: FormlyFieldInput, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
36
+ static { thiscmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.3", 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
@@ -165,12 +164,13 @@ FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versi
165
164
  class="ant-input-clear-icon"
166
165
  nzTheme="fill"
167
166
  nzType="close-circle"
168
- *ngIf="formControl.value"
167
+ *ngIf="formControl.value && !props['disabled'] && !props['readonly']"
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.0.3", ngImport: i0, type: FormlyFieldInput, decorators: [{
174
174
  type: Component,
175
175
  args: [{
176
176
  selector: 'formly-field-input',
@@ -305,7 +305,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
305
305
  class="ant-input-clear-icon"
306
306
  nzTheme="fill"
307
307
  nzType="close-circle"
308
- *ngIf="formControl.value"
308
+ *ngIf="formControl.value && !props['disabled'] && !props['readonly']"
309
309
  (click)="formControl.reset()"
310
310
  ></span>
311
311
  </ng-template>
@@ -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.0.3", ngImport: i0, type: FormlyNzInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
319
+ static { thismod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.3", 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.0.3", 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.0.3", 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":";;;;;;;;;;;;;;;;AAUA,MA4Ia,gBAAiB,SAAQ,SAA0B,CAAA;AA5IhE,IAAA,WAAA,GAAA;;AA6IW,QA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EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE;AACpC,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,OAAO,EAAE,OAAO;AAChB,oCAAA,cAAc,EAAE;AACd,wCAAA,KAAK,EAAE;AACL,4CAAA,IAAI,EAAE,UAAU;AACjB,yCAAA;AACF,qCAAA;AACF,iCAAA;AACF,6BAAA;yBACF,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.0.3", ngImport: i0, type: FormlyFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
27
+ static { thiscmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.3", 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.0.3", 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.0.3", ngImport: i0, type: FormlyNzRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
106
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.3", 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.0.3", 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.0.3", 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":";;;;;;;;;;;;;;;AA+BA,MAsCa,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,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EAAE,OAAO;AACb,wBAAA,SAAS,EAAE,gBAAgB;wBAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGO,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBArB/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;AAChC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,kBAAkB;wBAClB,YAAY;wBAEZ,aAAa;wBACb,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,OAAO;AACb,oCAAA,SAAS,EAAE,gBAAgB;oCAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AChCD;;AAEG;;;;"}
@@ -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.0.3", ngImport: i0, type: FormlyFieldRate, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
26
+ static { thiscmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.3", 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.0.3", 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.0.3", ngImport: i0, type: FormlyNzRateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
71
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.3", 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.0.3", 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.0.3", 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":";;;;;;;;;;;AAqDA,MAqBa,eAAgB,SAAQ,SAAqC,CAAA;AArB1E,IA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