ngx-formly-zorro-antd 13.0.0-rc.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (303) hide show
  1. package/README.md +7 -0
  2. package/autocomplete/autocomplete.props.d.ts +39 -0
  3. package/autocomplete/ngx-formly-zorro-antd-autocomplete.d.ts +5 -0
  4. package/autocomplete/package.json +10 -0
  5. package/autocomplete/public_api.d.ts +1 -0
  6. package/button/button.module.d.ts +11 -0
  7. package/button/button.type.d.ts +65 -0
  8. package/button/ngx-formly-zorro-antd-button.d.ts +5 -0
  9. package/button/package.json +10 -0
  10. package/button/public_api.d.ts +2 -0
  11. package/card/card.module.d.ts +10 -0
  12. package/card/card.wrapper.d.ts +58 -0
  13. package/card/ngx-formly-zorro-antd-card.d.ts +5 -0
  14. package/card/package.json +10 -0
  15. package/card/public_api.d.ts +2 -0
  16. package/cascader/cascader.module.d.ts +12 -0
  17. package/cascader/cascader.type.d.ts +152 -0
  18. package/cascader/ngx-formly-zorro-antd-cascader.d.ts +5 -0
  19. package/cascader/package.json +10 -0
  20. package/cascader/public_api.d.ts +2 -0
  21. package/checkbox/checkbox.module.d.ts +12 -0
  22. package/checkbox/checkbox.type.d.ts +35 -0
  23. package/checkbox/ngx-formly-zorro-antd-checkbox.d.ts +5 -0
  24. package/checkbox/package.json +10 -0
  25. package/checkbox/public_api.d.ts +2 -0
  26. package/datepicker/datepicker.module.d.ts +12 -0
  27. package/datepicker/datepicker.props.d.ts +146 -0
  28. package/datepicker/datepicker.type.d.ts +31 -0
  29. package/datepicker/ngx-formly-zorro-antd-datepicker.d.ts +5 -0
  30. package/datepicker/package.json +10 -0
  31. package/datepicker/public_api.d.ts +2 -0
  32. package/esm2020/autocomplete/autocomplete.props.mjs +2 -0
  33. package/esm2020/autocomplete/ngx-formly-zorro-antd-autocomplete.mjs +5 -0
  34. package/esm2020/autocomplete/public_api.mjs +2 -0
  35. package/esm2020/button/button.module.mjs +63 -0
  36. package/esm2020/button/button.type.mjs +70 -0
  37. package/esm2020/button/ngx-formly-zorro-antd-button.mjs +5 -0
  38. package/esm2020/button/public_api.mjs +3 -0
  39. package/esm2020/card/card.module.mjs +45 -0
  40. package/esm2020/card/card.wrapper.mjs +47 -0
  41. package/esm2020/card/ngx-formly-zorro-antd-card.mjs +5 -0
  42. package/esm2020/card/public_api.mjs +3 -0
  43. package/esm2020/cascader/cascader.module.mjs +53 -0
  44. package/esm2020/cascader/cascader.type.mjs +112 -0
  45. package/esm2020/cascader/ngx-formly-zorro-antd-cascader.mjs +5 -0
  46. package/esm2020/cascader/public_api.mjs +3 -0
  47. package/esm2020/checkbox/checkbox.module.mjs +61 -0
  48. package/esm2020/checkbox/checkbox.type.mjs +69 -0
  49. package/esm2020/checkbox/ngx-formly-zorro-antd-checkbox.mjs +5 -0
  50. package/esm2020/checkbox/public_api.mjs +3 -0
  51. package/esm2020/datepicker/datepicker.module.mjs +53 -0
  52. package/esm2020/datepicker/datepicker.props.mjs +2 -0
  53. package/esm2020/datepicker/datepicker.type.mjs +189 -0
  54. package/esm2020/datepicker/ngx-formly-zorro-antd-datepicker.mjs +5 -0
  55. package/esm2020/datepicker/public_api.mjs +3 -0
  56. package/esm2020/form-field/form-field.module.mjs +47 -0
  57. package/esm2020/form-field/form-field.props.mjs +2 -0
  58. package/esm2020/form-field/form-field.wrapper.mjs +117 -0
  59. package/esm2020/form-field/ngx-formly-zorro-antd-form-field.mjs +5 -0
  60. package/esm2020/form-field/public_api.mjs +2 -0
  61. package/esm2020/index.mjs +2 -0
  62. package/esm2020/input/input.module.mjs +91 -0
  63. package/esm2020/input/input.props.mjs +2 -0
  64. package/esm2020/input/input.type.mjs +259 -0
  65. package/esm2020/input/ngx-formly-zorro-antd-input.mjs +5 -0
  66. package/esm2020/input/public_api.mjs +3 -0
  67. package/esm2020/input-group/input-group.module.mjs +43 -0
  68. package/esm2020/input-group/input-group.props.mjs +2 -0
  69. package/esm2020/input-group/input-group.type.mjs +71 -0
  70. package/esm2020/input-group/ngx-formly-zorro-antd-input-group.mjs +5 -0
  71. package/esm2020/input-group/public_api.mjs +3 -0
  72. package/esm2020/input-number/input-number.module.mjs +61 -0
  73. package/esm2020/input-number/input-number.props.mjs +2 -0
  74. package/esm2020/input-number/input-number.type.mjs +128 -0
  75. package/esm2020/input-number/ngx-formly-zorro-antd-input-number.mjs +5 -0
  76. package/esm2020/input-number/public_api.mjs +3 -0
  77. package/esm2020/lib/ui-ng-zorro-antd.mjs +2 -0
  78. package/esm2020/lib/ui-ng-zorro-antd.module.mjs +95 -0
  79. package/esm2020/ngx-formly-zorro-antd.mjs +5 -0
  80. package/esm2020/radio/ngx-formly-zorro-antd-radio.mjs +5 -0
  81. package/esm2020/radio/public_api.mjs +3 -0
  82. package/esm2020/radio/radio.module.mjs +61 -0
  83. package/esm2020/radio/radio.type.mjs +96 -0
  84. package/esm2020/rate/ngx-formly-zorro-antd-rate.mjs +5 -0
  85. package/esm2020/rate/public_api.mjs +3 -0
  86. package/esm2020/rate/rate.module.mjs +53 -0
  87. package/esm2020/rate/rate.type.mjs +63 -0
  88. package/esm2020/select/ngx-formly-zorro-antd-select.mjs +5 -0
  89. package/esm2020/select/public_api.mjs +3 -0
  90. package/esm2020/select/select.module.mjs +59 -0
  91. package/esm2020/select/select.props.mjs +2 -0
  92. package/esm2020/select/select.type.mjs +163 -0
  93. package/esm2020/slider/ngx-formly-zorro-antd-slider.mjs +5 -0
  94. package/esm2020/slider/public_api.mjs +3 -0
  95. package/esm2020/slider/slider.module.mjs +53 -0
  96. package/esm2020/slider/slider.type.mjs +67 -0
  97. package/esm2020/switch/ngx-formly-zorro-antd-switch.mjs +5 -0
  98. package/esm2020/switch/public_api.mjs +3 -0
  99. package/esm2020/switch/switch.module.mjs +53 -0
  100. package/esm2020/switch/switch.type.mjs +53 -0
  101. package/esm2020/tabs/ngx-formly-zorro-antd-tabs.mjs +5 -0
  102. package/esm2020/tabs/public_api.mjs +3 -0
  103. package/esm2020/tabs/tabs.module.mjs +43 -0
  104. package/esm2020/tabs/tabs.props.mjs +2 -0
  105. package/esm2020/tabs/tabs.wrapper.mjs +111 -0
  106. package/esm2020/textarea/ngx-formly-zorro-antd-textarea.mjs +5 -0
  107. package/esm2020/textarea/public_api.mjs +3 -0
  108. package/esm2020/textarea/textarea.module.mjs +53 -0
  109. package/esm2020/textarea/textarea.type.mjs +88 -0
  110. package/esm2020/timepicker/ngx-formly-zorro-antd-timepicker.mjs +5 -0
  111. package/esm2020/timepicker/public_api.mjs +3 -0
  112. package/esm2020/timepicker/timepicker.module.mjs +53 -0
  113. package/esm2020/timepicker/timepicker.type.mjs +92 -0
  114. package/esm2020/transfer/ngx-formly-zorro-antd-transfer.mjs +5 -0
  115. package/esm2020/transfer/public_api.mjs +3 -0
  116. package/esm2020/transfer/transfer.component.mjs +128 -0
  117. package/esm2020/transfer/transfer.module.mjs +54 -0
  118. package/esm2020/transfer/transfer.type.mjs +87 -0
  119. package/esm2020/tree-select/ngx-formly-zorro-antd-tree-select.mjs +5 -0
  120. package/esm2020/tree-select/public_api.mjs +3 -0
  121. package/esm2020/tree-select/tree-select.module.mjs +53 -0
  122. package/esm2020/tree-select/tree-select.type.mjs +98 -0
  123. package/esm2020/upload/ngx-formly-zorro-antd-upload.mjs +5 -0
  124. package/esm2020/upload/public_api.mjs +3 -0
  125. package/esm2020/upload/upload.component.mjs +174 -0
  126. package/esm2020/upload/upload.module.mjs +62 -0
  127. package/esm2020/upload/upload.type.mjs +119 -0
  128. package/fesm2015/ngx-formly-zorro-antd-autocomplete.mjs +4 -0
  129. package/fesm2015/ngx-formly-zorro-antd-autocomplete.mjs.map +1 -0
  130. package/fesm2015/ngx-formly-zorro-antd-button.mjs +135 -0
  131. package/fesm2015/ngx-formly-zorro-antd-button.mjs.map +1 -0
  132. package/fesm2015/ngx-formly-zorro-antd-card.mjs +95 -0
  133. package/fesm2015/ngx-formly-zorro-antd-card.mjs.map +1 -0
  134. package/fesm2015/ngx-formly-zorro-antd-cascader.mjs +167 -0
  135. package/fesm2015/ngx-formly-zorro-antd-cascader.mjs.map +1 -0
  136. package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs +132 -0
  137. package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs.map +1 -0
  138. package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs +244 -0
  139. package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs.map +1 -0
  140. package/fesm2015/ngx-formly-zorro-antd-form-field.mjs +166 -0
  141. package/fesm2015/ngx-formly-zorro-antd-form-field.mjs.map +1 -0
  142. package/fesm2015/ngx-formly-zorro-antd-input-group.mjs +116 -0
  143. package/fesm2015/ngx-formly-zorro-antd-input-group.mjs.map +1 -0
  144. package/fesm2015/ngx-formly-zorro-antd-input-number.mjs +191 -0
  145. package/fesm2015/ngx-formly-zorro-antd-input-number.mjs.map +1 -0
  146. package/fesm2015/ngx-formly-zorro-antd-input.mjs +352 -0
  147. package/fesm2015/ngx-formly-zorro-antd-input.mjs.map +1 -0
  148. package/fesm2015/ngx-formly-zorro-antd-radio.mjs +159 -0
  149. package/fesm2015/ngx-formly-zorro-antd-radio.mjs.map +1 -0
  150. package/fesm2015/ngx-formly-zorro-antd-rate.mjs +118 -0
  151. package/fesm2015/ngx-formly-zorro-antd-rate.mjs.map +1 -0
  152. package/fesm2015/ngx-formly-zorro-antd-select.mjs +223 -0
  153. package/fesm2015/ngx-formly-zorro-antd-select.mjs.map +1 -0
  154. package/fesm2015/ngx-formly-zorro-antd-slider.mjs +122 -0
  155. package/fesm2015/ngx-formly-zorro-antd-slider.mjs.map +1 -0
  156. package/fesm2015/ngx-formly-zorro-antd-switch.mjs +108 -0
  157. package/fesm2015/ngx-formly-zorro-antd-switch.mjs.map +1 -0
  158. package/fesm2015/ngx-formly-zorro-antd-tabs.mjs +156 -0
  159. package/fesm2015/ngx-formly-zorro-antd-tabs.mjs.map +1 -0
  160. package/fesm2015/ngx-formly-zorro-antd-textarea.mjs +143 -0
  161. package/fesm2015/ngx-formly-zorro-antd-textarea.mjs.map +1 -0
  162. package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs +147 -0
  163. package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs.map +1 -0
  164. package/fesm2015/ngx-formly-zorro-antd-transfer.mjs +264 -0
  165. package/fesm2015/ngx-formly-zorro-antd-transfer.mjs.map +1 -0
  166. package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs +153 -0
  167. package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs.map +1 -0
  168. package/fesm2015/ngx-formly-zorro-antd-upload.mjs +351 -0
  169. package/fesm2015/ngx-formly-zorro-antd-upload.mjs.map +1 -0
  170. package/fesm2015/ngx-formly-zorro-antd.mjs +102 -0
  171. package/fesm2015/ngx-formly-zorro-antd.mjs.map +1 -0
  172. package/fesm2020/ngx-formly-zorro-antd-autocomplete.mjs +4 -0
  173. package/fesm2020/ngx-formly-zorro-antd-autocomplete.mjs.map +1 -0
  174. package/fesm2020/ngx-formly-zorro-antd-button.mjs +135 -0
  175. package/fesm2020/ngx-formly-zorro-antd-button.mjs.map +1 -0
  176. package/fesm2020/ngx-formly-zorro-antd-card.mjs +95 -0
  177. package/fesm2020/ngx-formly-zorro-antd-card.mjs.map +1 -0
  178. package/fesm2020/ngx-formly-zorro-antd-cascader.mjs +167 -0
  179. package/fesm2020/ngx-formly-zorro-antd-cascader.mjs.map +1 -0
  180. package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs +132 -0
  181. package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs.map +1 -0
  182. package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs +244 -0
  183. package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs.map +1 -0
  184. package/fesm2020/ngx-formly-zorro-antd-form-field.mjs +166 -0
  185. package/fesm2020/ngx-formly-zorro-antd-form-field.mjs.map +1 -0
  186. package/fesm2020/ngx-formly-zorro-antd-input-group.mjs +116 -0
  187. package/fesm2020/ngx-formly-zorro-antd-input-group.mjs.map +1 -0
  188. package/fesm2020/ngx-formly-zorro-antd-input-number.mjs +191 -0
  189. package/fesm2020/ngx-formly-zorro-antd-input-number.mjs.map +1 -0
  190. package/fesm2020/ngx-formly-zorro-antd-input.mjs +352 -0
  191. package/fesm2020/ngx-formly-zorro-antd-input.mjs.map +1 -0
  192. package/fesm2020/ngx-formly-zorro-antd-radio.mjs +159 -0
  193. package/fesm2020/ngx-formly-zorro-antd-radio.mjs.map +1 -0
  194. package/fesm2020/ngx-formly-zorro-antd-rate.mjs +118 -0
  195. package/fesm2020/ngx-formly-zorro-antd-rate.mjs.map +1 -0
  196. package/fesm2020/ngx-formly-zorro-antd-select.mjs +223 -0
  197. package/fesm2020/ngx-formly-zorro-antd-select.mjs.map +1 -0
  198. package/fesm2020/ngx-formly-zorro-antd-slider.mjs +122 -0
  199. package/fesm2020/ngx-formly-zorro-antd-slider.mjs.map +1 -0
  200. package/fesm2020/ngx-formly-zorro-antd-switch.mjs +108 -0
  201. package/fesm2020/ngx-formly-zorro-antd-switch.mjs.map +1 -0
  202. package/fesm2020/ngx-formly-zorro-antd-tabs.mjs +156 -0
  203. package/fesm2020/ngx-formly-zorro-antd-tabs.mjs.map +1 -0
  204. package/fesm2020/ngx-formly-zorro-antd-textarea.mjs +143 -0
  205. package/fesm2020/ngx-formly-zorro-antd-textarea.mjs.map +1 -0
  206. package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs +147 -0
  207. package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs.map +1 -0
  208. package/fesm2020/ngx-formly-zorro-antd-transfer.mjs +264 -0
  209. package/fesm2020/ngx-formly-zorro-antd-transfer.mjs.map +1 -0
  210. package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs +153 -0
  211. package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs.map +1 -0
  212. package/fesm2020/ngx-formly-zorro-antd-upload.mjs +350 -0
  213. package/fesm2020/ngx-formly-zorro-antd-upload.mjs.map +1 -0
  214. package/fesm2020/ngx-formly-zorro-antd.mjs +102 -0
  215. package/fesm2020/ngx-formly-zorro-antd.mjs.map +1 -0
  216. package/form-field/form-field.module.d.ts +11 -0
  217. package/form-field/form-field.props.d.ts +77 -0
  218. package/form-field/form-field.wrapper.d.ts +9 -0
  219. package/form-field/ngx-formly-zorro-antd-form-field.d.ts +5 -0
  220. package/form-field/package.json +10 -0
  221. package/form-field/public_api.d.ts +3 -0
  222. package/index.d.ts +1 -0
  223. package/input/input.module.d.ts +14 -0
  224. package/input/input.props.d.ts +66 -0
  225. package/input/input.type.d.ts +26 -0
  226. package/input/ngx-formly-zorro-antd-input.d.ts +5 -0
  227. package/input/package.json +10 -0
  228. package/input/public_api.d.ts +2 -0
  229. package/input-group/input-group.module.d.ts +10 -0
  230. package/input-group/input-group.props.d.ts +56 -0
  231. package/input-group/input-group.type.d.ts +22 -0
  232. package/input-group/ngx-formly-zorro-antd-input-group.d.ts +5 -0
  233. package/input-group/package.json +10 -0
  234. package/input-group/public_api.d.ts +3 -0
  235. package/input-number/input-number.module.d.ts +12 -0
  236. package/input-number/input-number.props.d.ts +78 -0
  237. package/input-number/input-number.type.d.ts +24 -0
  238. package/input-number/ngx-formly-zorro-antd-input-number.d.ts +5 -0
  239. package/input-number/package.json +10 -0
  240. package/input-number/public_api.d.ts +2 -0
  241. package/lib/ui-ng-zorro-antd.d.ts +1 -0
  242. package/lib/ui-ng-zorro-antd.module.d.ts +26 -0
  243. package/ngx-formly-zorro-antd.d.ts +5 -0
  244. package/package.json +204 -0
  245. package/radio/ngx-formly-zorro-antd-radio.d.ts +5 -0
  246. package/radio/package.json +10 -0
  247. package/radio/public_api.d.ts +2 -0
  248. package/radio/radio.module.d.ts +14 -0
  249. package/radio/radio.type.d.ts +38 -0
  250. package/rate/ngx-formly-zorro-antd-rate.d.ts +5 -0
  251. package/rate/package.json +10 -0
  252. package/rate/public_api.d.ts +2 -0
  253. package/rate/rate.module.d.ts +12 -0
  254. package/rate/rate.type.d.ts +57 -0
  255. package/select/ngx-formly-zorro-antd-select.d.ts +5 -0
  256. package/select/package.json +10 -0
  257. package/select/public_api.d.ts +2 -0
  258. package/select/select.module.d.ts +13 -0
  259. package/select/select.props.d.ts +162 -0
  260. package/select/select.type.d.ts +35 -0
  261. package/slider/ngx-formly-zorro-antd-slider.d.ts +5 -0
  262. package/slider/package.json +10 -0
  263. package/slider/public_api.d.ts +2 -0
  264. package/slider/slider.module.d.ts +12 -0
  265. package/slider/slider.type.d.ts +76 -0
  266. package/switch/ngx-formly-zorro-antd-switch.d.ts +5 -0
  267. package/switch/package.json +10 -0
  268. package/switch/public_api.d.ts +2 -0
  269. package/switch/switch.module.d.ts +12 -0
  270. package/switch/switch.type.d.ts +44 -0
  271. package/tabs/ngx-formly-zorro-antd-tabs.d.ts +5 -0
  272. package/tabs/package.json +10 -0
  273. package/tabs/public_api.d.ts +2 -0
  274. package/tabs/tabs.module.d.ts +10 -0
  275. package/tabs/tabs.props.d.ts +127 -0
  276. package/tabs/tabs.wrapper.d.ts +28 -0
  277. package/textarea/ngx-formly-zorro-antd-textarea.d.ts +5 -0
  278. package/textarea/package.json +10 -0
  279. package/textarea/public_api.d.ts +2 -0
  280. package/textarea/textarea.module.d.ts +12 -0
  281. package/textarea/textarea.type.d.ts +38 -0
  282. package/timepicker/ngx-formly-zorro-antd-timepicker.d.ts +5 -0
  283. package/timepicker/package.json +10 -0
  284. package/timepicker/public_api.d.ts +2 -0
  285. package/timepicker/timepicker.module.d.ts +12 -0
  286. package/timepicker/timepicker.type.d.ts +131 -0
  287. package/transfer/ngx-formly-zorro-antd-transfer.d.ts +5 -0
  288. package/transfer/package.json +10 -0
  289. package/transfer/public_api.d.ts +2 -0
  290. package/transfer/transfer.component.d.ts +26 -0
  291. package/transfer/transfer.module.d.ts +13 -0
  292. package/transfer/transfer.type.d.ts +118 -0
  293. package/tree-select/ngx-formly-zorro-antd-tree-select.d.ts +5 -0
  294. package/tree-select/package.json +10 -0
  295. package/tree-select/public_api.d.ts +2 -0
  296. package/tree-select/tree-select.module.d.ts +12 -0
  297. package/tree-select/tree-select.type.d.ts +158 -0
  298. package/upload/ngx-formly-zorro-antd-upload.d.ts +5 -0
  299. package/upload/package.json +10 -0
  300. package/upload/public_api.d.ts +2 -0
  301. package/upload/upload.component.d.ts +27 -0
  302. package/upload/upload.module.d.ts +15 -0
  303. package/upload/upload.type.d.ts +173 -0
@@ -0,0 +1,244 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
+ import * as i2 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i4 from '@ngx-formly/core';
6
+ import { FieldType, FormlyModule } from '@ngx-formly/core';
7
+ import * as i3 from '@angular/forms';
8
+ import { ReactiveFormsModule } from '@angular/forms';
9
+ import { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';
10
+ import * as i1 from 'ng-zorro-antd/date-picker';
11
+ import { NzDatePickerModule } from 'ng-zorro-antd/date-picker';
12
+
13
+ class FormlyFieldDatepicker extends FieldType {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.defaultOptions = {
17
+ props: {
18
+ allowClear: true,
19
+ backdrop: false,
20
+ defaultPickerValue: null,
21
+ inputReadOnly: false,
22
+ mode: 'date',
23
+ size: 'default',
24
+ status: '',
25
+ placement: 'bottomLeft',
26
+ popupStyle: {},
27
+ borderless: false,
28
+ inline: false,
29
+ showToday: true,
30
+ showNow: true,
31
+ rangeOptions: {
32
+ separator: '~'
33
+ }
34
+ }
35
+ };
36
+ }
37
+ }
38
+ FormlyFieldDatepicker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldDatepicker, deps: null, target: i0.ɵɵFactoryTarget.Component });
39
+ FormlyFieldDatepicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyFieldDatepicker, selector: "formly-field-datepicker", usesInheritance: true, ngImport: i0, template: `<ng-container [ngSwitch]="props.type">
40
+ <nz-range-picker
41
+ *ngSwitchCase="'range'"
42
+ [nzId]="id"
43
+ [formControl]="formControl"
44
+ [formlyAttributes]="field"
45
+ [ngClass]="props['className']"
46
+ [nzPlaceHolder]="props.placeholder ?? ''"
47
+ [nzAllowClear]="props['allowClear']!!"
48
+ [nzAutoFocus]="props['autoFocus']!!"
49
+ [nzBackdrop]="props['backdrop']!!"
50
+ [nzDefaultPickerValue]="props['defaultPickerValue']"
51
+ [nzDisabledDate]="props['disabledDate']"
52
+ [nzDropdownClassName]="props['dropdownClassName']"
53
+ [nzFormat]="props['format']"
54
+ [nzInputReadOnly]="props['inputReadOnly']!!"
55
+ [nzMode]="props['mode']"
56
+ [nzPopupStyle]="props['popupStyle']"
57
+ [nzSize]="props['size']"
58
+ [nzStatus]="props['status'] ?? ''"
59
+ [nzPlacement]="props['placement']"
60
+ [nzRenderExtraFooter]="props['renderExtraFooter']"
61
+ [nzSuffixIcon]="props['suffixIcon']"
62
+ [nzBorderless]="props['borderless']"
63
+ [nzInline]="props['inline']"
64
+ [nzDateRender]="props['dateRender']"
65
+ [nzDisabledTime]="props['rangeOptions']?.disabledTime"
66
+ [nzShowTime]="props['showTime']"
67
+ [nzShowToday]="props['showToday']!!"
68
+ [nzShowNow]="props['showNow']!!"
69
+ [nzRanges]="props['rangeOptions']?.ranges"
70
+ [nzSeparator]="props['rangeOptions']?.separator"
71
+ (nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
72
+ (nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
73
+ (nzOnCalendarChange)="
74
+ props['rangeOptions']?.calendarChange &&
75
+ props['rangeOptions']?.calendarChange(field, $event)
76
+ "
77
+ (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
78
+ ></nz-range-picker>
79
+
80
+ <nz-date-picker
81
+ *ngSwitchDefault
82
+ [nzId]="id"
83
+ [formControl]="formControl"
84
+ [formlyAttributes]="field"
85
+ [ngClass]="props['className']"
86
+ [nzPlaceHolder]="props.placeholder ?? ''"
87
+ [nzAllowClear]="props['allowClear']!!"
88
+ [nzAutoFocus]="props['autoFocus']!!"
89
+ [nzBackdrop]="props['backdrop']!!"
90
+ [nzDefaultPickerValue]="props['defaultPickerValue']"
91
+ [nzDisabledDate]="props['disabledDate']"
92
+ [nzDropdownClassName]="props['dropdownClassName']"
93
+ [nzFormat]="props['format']"
94
+ [nzInputReadOnly]="props['inputReadOnly']!!"
95
+ [nzMode]="props['mode']"
96
+ [nzPopupStyle]="props['popupStyle']!"
97
+ [nzSize]="props['size']!"
98
+ [nzStatus]="props['status']!"
99
+ [nzPlacement]="props['placement']!"
100
+ [nzRenderExtraFooter]="props['renderExtraFooter']"
101
+ [nzSuffixIcon]="props['suffixIcon']"
102
+ [nzBorderless]="props['borderless']"
103
+ [nzInline]="props['inline']"
104
+ [nzDateRender]="props['dateRender']"
105
+ [nzDisabledTime]="props['disabledTime']"
106
+ [nzShowTime]="props['showTime']"
107
+ [nzShowToday]="props['showToday']!!"
108
+ [nzShowNow]="props['showNow']!!"
109
+ (nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
110
+ (nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
111
+ ></nz-date-picker>
112
+ </ng-container>`, isInline: true, components: [{ type: i1.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-year-picker,nz-range-picker", inputs: ["nzAllowClear", "nzAutoFocus", "nzDisabled", "nzBorderless", "nzInputReadOnly", "nzInline", "nzOpen", "nzDisabledDate", "nzLocale", "nzPlaceHolder", "nzPopupStyle", "nzDropdownClassName", "nzSize", "nzStatus", "nzFormat", "nzDateRender", "nzDisabledTime", "nzRenderExtraFooter", "nzShowToday", "nzMode", "nzShowNow", "nzRanges", "nzDefaultPickerValue", "nzSeparator", "nzSuffixIcon", "nzBackdrop", "nzId", "nzPlacement", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }], directives: [{ type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1.NzRangePickerComponent, selector: "nz-range-picker", exportAs: ["nzRangePicker"] }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgSwitchDefault, selector: "[ngSwitchDefault]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
113
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldDatepicker, decorators: [{
114
+ type: Component,
115
+ args: [{
116
+ selector: 'formly-field-datepicker',
117
+ template: `<ng-container [ngSwitch]="props.type">
118
+ <nz-range-picker
119
+ *ngSwitchCase="'range'"
120
+ [nzId]="id"
121
+ [formControl]="formControl"
122
+ [formlyAttributes]="field"
123
+ [ngClass]="props['className']"
124
+ [nzPlaceHolder]="props.placeholder ?? ''"
125
+ [nzAllowClear]="props['allowClear']!!"
126
+ [nzAutoFocus]="props['autoFocus']!!"
127
+ [nzBackdrop]="props['backdrop']!!"
128
+ [nzDefaultPickerValue]="props['defaultPickerValue']"
129
+ [nzDisabledDate]="props['disabledDate']"
130
+ [nzDropdownClassName]="props['dropdownClassName']"
131
+ [nzFormat]="props['format']"
132
+ [nzInputReadOnly]="props['inputReadOnly']!!"
133
+ [nzMode]="props['mode']"
134
+ [nzPopupStyle]="props['popupStyle']"
135
+ [nzSize]="props['size']"
136
+ [nzStatus]="props['status'] ?? ''"
137
+ [nzPlacement]="props['placement']"
138
+ [nzRenderExtraFooter]="props['renderExtraFooter']"
139
+ [nzSuffixIcon]="props['suffixIcon']"
140
+ [nzBorderless]="props['borderless']"
141
+ [nzInline]="props['inline']"
142
+ [nzDateRender]="props['dateRender']"
143
+ [nzDisabledTime]="props['rangeOptions']?.disabledTime"
144
+ [nzShowTime]="props['showTime']"
145
+ [nzShowToday]="props['showToday']!!"
146
+ [nzShowNow]="props['showNow']!!"
147
+ [nzRanges]="props['rangeOptions']?.ranges"
148
+ [nzSeparator]="props['rangeOptions']?.separator"
149
+ (nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
150
+ (nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
151
+ (nzOnCalendarChange)="
152
+ props['rangeOptions']?.calendarChange &&
153
+ props['rangeOptions']?.calendarChange(field, $event)
154
+ "
155
+ (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
156
+ ></nz-range-picker>
157
+
158
+ <nz-date-picker
159
+ *ngSwitchDefault
160
+ [nzId]="id"
161
+ [formControl]="formControl"
162
+ [formlyAttributes]="field"
163
+ [ngClass]="props['className']"
164
+ [nzPlaceHolder]="props.placeholder ?? ''"
165
+ [nzAllowClear]="props['allowClear']!!"
166
+ [nzAutoFocus]="props['autoFocus']!!"
167
+ [nzBackdrop]="props['backdrop']!!"
168
+ [nzDefaultPickerValue]="props['defaultPickerValue']"
169
+ [nzDisabledDate]="props['disabledDate']"
170
+ [nzDropdownClassName]="props['dropdownClassName']"
171
+ [nzFormat]="props['format']"
172
+ [nzInputReadOnly]="props['inputReadOnly']!!"
173
+ [nzMode]="props['mode']"
174
+ [nzPopupStyle]="props['popupStyle']!"
175
+ [nzSize]="props['size']!"
176
+ [nzStatus]="props['status']!"
177
+ [nzPlacement]="props['placement']!"
178
+ [nzRenderExtraFooter]="props['renderExtraFooter']"
179
+ [nzSuffixIcon]="props['suffixIcon']"
180
+ [nzBorderless]="props['borderless']"
181
+ [nzInline]="props['inline']"
182
+ [nzDateRender]="props['dateRender']"
183
+ [nzDisabledTime]="props['disabledTime']"
184
+ [nzShowTime]="props['showTime']"
185
+ [nzShowToday]="props['showToday']!!"
186
+ [nzShowNow]="props['showNow']!!"
187
+ (nzOnOpenChange)="props['openChange'] && props['openChange'](field, $event)"
188
+ (nzOnOk)="props['onOk'] && props['onOk'](field, $event)"
189
+ ></nz-date-picker>
190
+ </ng-container>`,
191
+ changeDetection: ChangeDetectionStrategy.OnPush
192
+ }]
193
+ }] });
194
+
195
+ class FormlyNzDatepickerModule {
196
+ }
197
+ FormlyNzDatepickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzDatepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
198
+ FormlyNzDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzDatepickerModule, declarations: [FormlyFieldDatepicker], imports: [CommonModule,
199
+ ReactiveFormsModule,
200
+ FormlyNzFormFieldModule,
201
+ NzDatePickerModule, i4.FormlyModule] });
202
+ FormlyNzDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzDatepickerModule, imports: [[
203
+ CommonModule,
204
+ ReactiveFormsModule,
205
+ FormlyNzFormFieldModule,
206
+ NzDatePickerModule,
207
+ FormlyModule.forChild({
208
+ types: [
209
+ {
210
+ name: 'datepicker',
211
+ component: FormlyFieldDatepicker,
212
+ wrappers: ['form-field']
213
+ }
214
+ ]
215
+ })
216
+ ]] });
217
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzDatepickerModule, decorators: [{
218
+ type: NgModule,
219
+ args: [{
220
+ declarations: [FormlyFieldDatepicker],
221
+ imports: [
222
+ CommonModule,
223
+ ReactiveFormsModule,
224
+ FormlyNzFormFieldModule,
225
+ NzDatePickerModule,
226
+ FormlyModule.forChild({
227
+ types: [
228
+ {
229
+ name: 'datepicker',
230
+ component: FormlyFieldDatepicker,
231
+ wrappers: ['form-field']
232
+ }
233
+ ]
234
+ })
235
+ ]
236
+ }]
237
+ }] });
238
+
239
+ /**
240
+ * Generated bundle index. Do not edit.
241
+ */
242
+
243
+ export { FormlyFieldDatepicker, FormlyNzDatepickerModule };
244
+ //# sourceMappingURL=ngx-formly-zorro-antd-datepicker.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-formly-zorro-antd-datepicker.mjs","sources":["../../../../packages/formlyantd/datepicker/src/datepicker.type.ts","../../../../packages/formlyantd/datepicker/src/datepicker.module.ts","../../../../packages/formlyantd/datepicker/src/ngx-formly-zorro-antd-datepicker.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FieldType, FormlyFieldConfig, FieldTypeConfig } from '@ngx-formly/core';\r\n\r\nimport type { DatepickerProps } from './datepicker.props';\r\n\r\nexport interface FormlyDatepickerFieldConfig extends FormlyFieldConfig<DatepickerProps> {\r\n type: 'datepicker' | Type<FormlyFieldDatepicker>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-datepicker',\r\n template: `<ng-container [ngSwitch]=\"props.type\">\r\n <nz-range-picker\r\n *ngSwitchCase=\"'range'\"\r\n [nzId]=\"id\"\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [ngClass]=\"props['className']\"\r\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\r\n [nzAllowClear]=\"props['allowClear']!!\"\r\n [nzAutoFocus]=\"props['autoFocus']!!\"\r\n [nzBackdrop]=\"props['backdrop']!!\"\r\n [nzDefaultPickerValue]=\"props['defaultPickerValue']\"\r\n [nzDisabledDate]=\"props['disabledDate']\"\r\n [nzDropdownClassName]=\"props['dropdownClassName']\"\r\n [nzFormat]=\"props['format']\"\r\n [nzInputReadOnly]=\"props['inputReadOnly']!!\"\r\n [nzMode]=\"props['mode']\"\r\n [nzPopupStyle]=\"props['popupStyle']\"\r\n [nzSize]=\"props['size']\"\r\n [nzStatus]=\"props['status'] ?? ''\"\r\n [nzPlacement]=\"props['placement']\"\r\n [nzRenderExtraFooter]=\"props['renderExtraFooter']\"\r\n [nzSuffixIcon]=\"props['suffixIcon']\"\r\n [nzBorderless]=\"props['borderless']\"\r\n [nzInline]=\"props['inline']\"\r\n [nzDateRender]=\"props['dateRender']\"\r\n [nzDisabledTime]=\"props['rangeOptions']?.disabledTime\"\r\n [nzShowTime]=\"props['showTime']\"\r\n [nzShowToday]=\"props['showToday']!!\"\r\n [nzShowNow]=\"props['showNow']!!\"\r\n [nzRanges]=\"props['rangeOptions']?.ranges\"\r\n [nzSeparator]=\"props['rangeOptions']?.separator\"\r\n (nzOnOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\r\n (nzOnOk)=\"props['onOk'] && props['onOk'](field, $event)\"\r\n (nzOnCalendarChange)=\"\r\n props['rangeOptions']?.calendarChange &&\r\n props['rangeOptions']?.calendarChange(field, $event)\r\n \"\r\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\r\n ></nz-range-picker>\r\n\r\n <nz-date-picker\r\n *ngSwitchDefault\r\n [nzId]=\"id\"\r\n [formControl]=\"formControl\"\r\n [formlyAttributes]=\"field\"\r\n [ngClass]=\"props['className']\"\r\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\r\n [nzAllowClear]=\"props['allowClear']!!\"\r\n [nzAutoFocus]=\"props['autoFocus']!!\"\r\n [nzBackdrop]=\"props['backdrop']!!\"\r\n [nzDefaultPickerValue]=\"props['defaultPickerValue']\"\r\n [nzDisabledDate]=\"props['disabledDate']\"\r\n [nzDropdownClassName]=\"props['dropdownClassName']\"\r\n [nzFormat]=\"props['format']\"\r\n [nzInputReadOnly]=\"props['inputReadOnly']!!\"\r\n [nzMode]=\"props['mode']\"\r\n [nzPopupStyle]=\"props['popupStyle']!\"\r\n [nzSize]=\"props['size']!\"\r\n [nzStatus]=\"props['status']!\"\r\n [nzPlacement]=\"props['placement']!\"\r\n [nzRenderExtraFooter]=\"props['renderExtraFooter']\"\r\n [nzSuffixIcon]=\"props['suffixIcon']\"\r\n [nzBorderless]=\"props['borderless']\"\r\n [nzInline]=\"props['inline']\"\r\n [nzDateRender]=\"props['dateRender']\"\r\n [nzDisabledTime]=\"props['disabledTime']\"\r\n [nzShowTime]=\"props['showTime']\"\r\n [nzShowToday]=\"props['showToday']!!\"\r\n [nzShowNow]=\"props['showNow']!!\"\r\n (nzOnOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\r\n (nzOnOk)=\"props['onOk'] && props['onOk'](field, $event)\"\r\n ></nz-date-picker>\r\n </ng-container>`,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldDatepicker extends FieldType<FieldTypeConfig> {\r\n override defaultOptions = {\r\n props: {\r\n allowClear: true,\r\n backdrop: false,\r\n defaultPickerValue: null,\r\n inputReadOnly: false,\r\n mode: 'date' as const,\r\n size: 'default' as const,\r\n status: '' as const,\r\n placement: 'bottomLeft' as const,\r\n popupStyle: {},\r\n borderless: false,\r\n inline: false,\r\n showToday: true,\r\n showNow: true,\r\n rangeOptions: {\r\n separator: '~'\r\n }\r\n }\r\n };\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\r\n\r\nimport { NzDatePickerModule } from 'ng-zorro-antd/date-picker';\r\nimport { FormlyFieldDatepicker } from './datepicker.type';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldDatepicker],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormlyNzFormFieldModule,\r\n\r\n NzDatePickerModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'datepicker',\r\n component: FormlyFieldDatepicker,\r\n wrappers: ['form-field']\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzDatepick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,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,YAAY;AAClB,wBAAA,SAAS,EAAE,qBAAqB;wBAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC;AACH,SAAA,CAAA,EAAA,CAAA,CAAA;4FAEU,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBApBpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,qBAAqB,CAAC;AACrC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,kBAAkB;wBAElB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,YAAY;AAClB,oCAAA,SAAS,EAAE,qBAAqB;oCAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC5BD;;AAEG;;;;"}
@@ -0,0 +1,166 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, NgModule } from '@angular/core';
3
+ import * as i4 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i2 from '@ngx-formly/core';
6
+ import { FieldWrapper, FormlyModule } from '@ngx-formly/core';
7
+ import { ReactiveFormsModule } from '@angular/forms';
8
+ import * as i1 from 'ng-zorro-antd/form';
9
+ import { NzFormModule } from 'ng-zorro-antd/form';
10
+ import * as i3 from 'ng-zorro-antd/grid';
11
+
12
+ class FormlyWrapperFormField extends FieldWrapper {
13
+ get errorState() {
14
+ return this.showError ? 'error' : 'success';
15
+ }
16
+ }
17
+ FormlyWrapperFormField.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyWrapperFormField, deps: null, target: i0.ɵɵFactoryTarget.Component });
18
+ FormlyWrapperFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyWrapperFormField, selector: "formly-wrapper-nz-form-field", usesInheritance: true, ngImport: i0, template: `
19
+ <nz-form-item>
20
+ <ng-container *ngIf="props.label && props['hideLabel'] !== true">
21
+ <nz-form-label
22
+ [nzFlex]="props['grid']?.labelFlex ?? null"
23
+ [nzOffset]="props['grid']?.labelOffset ?? null"
24
+ [nzOrder]="props['grid']?.labelOrder ?? null"
25
+ [nzPull]="props['grid']?.labelPull ?? null"
26
+ [nzPush]="props['grid']?.labelPush ?? null"
27
+ [nzSpan]="props['grid']?.labelSpan ?? null"
28
+ [nzXs]="props['grid']?.labelXs ?? null"
29
+ [nzSm]="props['grid']?.labelSm ?? null"
30
+ [nzMd]="props['grid']?.labelMd ?? null"
31
+ [nzLg]="props['grid']?.labelLg ?? null"
32
+ [nzXl]="props['grid']?.labelXl ?? null"
33
+ [nzXXl]="props['grid']?.labelXXl ?? null"
34
+ [ngClass]="props.labelClass!"
35
+ [nzRequired]="props.required && props['hideRequiredMarker'] !== true"
36
+ [nzFor]="id"
37
+ >
38
+ <span class="formly-label-text">
39
+ {{ props.label }}
40
+ </span>
41
+ </nz-form-label>
42
+ </ng-container>
43
+ <nz-form-control
44
+ [nzValidateStatus]="errorState"
45
+ [nzErrorTip]="errorTpl"
46
+ [ngClass]="props.controlClass!"
47
+ [nzFlex]="props['grid']?.controlFlex ?? null"
48
+ [nzOffset]="props['grid']?.controlOffset ?? null"
49
+ [nzOrder]="props['grid']?.controlOrder ?? null"
50
+ [nzPull]="props['grid']?.controlPull ?? null"
51
+ [nzPush]="props['grid']?.controlPush ?? null"
52
+ [nzSpan]="props['grid']?.controlSpan ?? null"
53
+ [nzXs]="props['grid']?.controlXs ?? null"
54
+ [nzSm]="props['grid']?.controlSm ?? null"
55
+ [nzMd]="props['grid']?.controlMd ?? null"
56
+ [nzLg]="props['grid']?.controlLg ?? null"
57
+ [nzXl]="props['grid']?.controlXl ?? null"
58
+ [nzXXl]="props['grid']?.controlXXl ?? null"
59
+ >
60
+ <ng-container #fieldComponent></ng-container>
61
+
62
+ <ng-template #errorTpl let-control>
63
+ <formly-validation-message [field]="field"></formly-validation-message>
64
+ </ng-template>
65
+ </nz-form-control>
66
+ </nz-form-item>
67
+ `, isInline: true, styles: [":host .formly-label-text{overflow:hidden;text-overflow:ellipsis}\n"], components: [{ type: i1.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { type: i1.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon"], exportAs: ["nzFormLabel"] }, { type: i1.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { type: i2.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }], directives: [{ type: i3.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.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"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
68
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyWrapperFormField, decorators: [{
69
+ type: Component,
70
+ args: [{ selector: 'formly-wrapper-nz-form-field', template: `
71
+ <nz-form-item>
72
+ <ng-container *ngIf="props.label && props['hideLabel'] !== true">
73
+ <nz-form-label
74
+ [nzFlex]="props['grid']?.labelFlex ?? null"
75
+ [nzOffset]="props['grid']?.labelOffset ?? null"
76
+ [nzOrder]="props['grid']?.labelOrder ?? null"
77
+ [nzPull]="props['grid']?.labelPull ?? null"
78
+ [nzPush]="props['grid']?.labelPush ?? null"
79
+ [nzSpan]="props['grid']?.labelSpan ?? null"
80
+ [nzXs]="props['grid']?.labelXs ?? null"
81
+ [nzSm]="props['grid']?.labelSm ?? null"
82
+ [nzMd]="props['grid']?.labelMd ?? null"
83
+ [nzLg]="props['grid']?.labelLg ?? null"
84
+ [nzXl]="props['grid']?.labelXl ?? null"
85
+ [nzXXl]="props['grid']?.labelXXl ?? null"
86
+ [ngClass]="props.labelClass!"
87
+ [nzRequired]="props.required && props['hideRequiredMarker'] !== true"
88
+ [nzFor]="id"
89
+ >
90
+ <span class="formly-label-text">
91
+ {{ props.label }}
92
+ </span>
93
+ </nz-form-label>
94
+ </ng-container>
95
+ <nz-form-control
96
+ [nzValidateStatus]="errorState"
97
+ [nzErrorTip]="errorTpl"
98
+ [ngClass]="props.controlClass!"
99
+ [nzFlex]="props['grid']?.controlFlex ?? null"
100
+ [nzOffset]="props['grid']?.controlOffset ?? null"
101
+ [nzOrder]="props['grid']?.controlOrder ?? null"
102
+ [nzPull]="props['grid']?.controlPull ?? null"
103
+ [nzPush]="props['grid']?.controlPush ?? null"
104
+ [nzSpan]="props['grid']?.controlSpan ?? null"
105
+ [nzXs]="props['grid']?.controlXs ?? null"
106
+ [nzSm]="props['grid']?.controlSm ?? null"
107
+ [nzMd]="props['grid']?.controlMd ?? null"
108
+ [nzLg]="props['grid']?.controlLg ?? null"
109
+ [nzXl]="props['grid']?.controlXl ?? null"
110
+ [nzXXl]="props['grid']?.controlXXl ?? null"
111
+ >
112
+ <ng-container #fieldComponent></ng-container>
113
+
114
+ <ng-template #errorTpl let-control>
115
+ <formly-validation-message [field]="field"></formly-validation-message>
116
+ </ng-template>
117
+ </nz-form-control>
118
+ </nz-form-item>
119
+ `, styles: [":host .formly-label-text{overflow:hidden;text-overflow:ellipsis}\n"] }]
120
+ }] });
121
+
122
+ class FormlyNzFormFieldModule {
123
+ }
124
+ FormlyNzFormFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
125
+ FormlyNzFormFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzFormFieldModule, declarations: [FormlyWrapperFormField], imports: [CommonModule,
126
+ ReactiveFormsModule,
127
+ NzFormModule, i2.FormlyModule] });
128
+ FormlyNzFormFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzFormFieldModule, imports: [[
129
+ CommonModule,
130
+ ReactiveFormsModule,
131
+ NzFormModule,
132
+ FormlyModule.forChild({
133
+ wrappers: [
134
+ {
135
+ name: 'form-field',
136
+ component: FormlyWrapperFormField
137
+ }
138
+ ]
139
+ })
140
+ ]] });
141
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzFormFieldModule, decorators: [{
142
+ type: NgModule,
143
+ args: [{
144
+ declarations: [FormlyWrapperFormField],
145
+ imports: [
146
+ CommonModule,
147
+ ReactiveFormsModule,
148
+ NzFormModule,
149
+ FormlyModule.forChild({
150
+ wrappers: [
151
+ {
152
+ name: 'form-field',
153
+ component: FormlyWrapperFormField
154
+ }
155
+ ]
156
+ })
157
+ ]
158
+ }]
159
+ }] });
160
+
161
+ /**
162
+ * Generated bundle index. Do not edit.
163
+ */
164
+
165
+ export { FormlyNzFormFieldModule };
166
+ //# sourceMappingURL=ngx-formly-zorro-antd-form-field.mjs.map
@@ -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';\r\nimport { FieldWrapper, FormlyFieldConfig } from '@ngx-formly/core';\r\nimport type { NzFormWrapperProps } from './form-field.props';\r\n\r\nexport type FormlyFieldProps = NzFormWrapperProps;\r\n\r\n@Component({\r\n selector: 'formly-wrapper-nz-form-field',\r\n styleUrls: ['./form-field.wrapper.scss'],\r\n template: `\r\n <nz-form-item>\r\n <ng-container *ngIf=\"props.label && props['hideLabel'] !== true\">\r\n <nz-form-label\r\n [nzFlex]=\"props['grid']?.labelFlex ?? null\"\r\n [nzOffset]=\"props['grid']?.labelOffset ?? null\"\r\n [nzOrder]=\"props['grid']?.labelOrder ?? null\"\r\n [nzPull]=\"props['grid']?.labelPull ?? null\"\r\n [nzPush]=\"props['grid']?.labelPush ?? null\"\r\n [nzSpan]=\"props['grid']?.labelSpan ?? null\"\r\n [nzXs]=\"props['grid']?.labelXs ?? null\"\r\n [nzSm]=\"props['grid']?.labelSm ?? null\"\r\n [nzMd]=\"props['grid']?.labelMd ?? null\"\r\n [nzLg]=\"props['grid']?.labelLg ?? null\"\r\n [nzXl]=\"props['grid']?.labelXl ?? null\"\r\n [nzXXl]=\"props['grid']?.labelXXl ?? null\"\r\n [ngClass]=\"props.labelClass!\"\r\n [nzRequired]=\"props.required && props['hideRequiredMarker'] !== true\"\r\n [nzFor]=\"id\"\r\n >\r\n <span class=\"formly-label-text\">\r\n {{ props.label }}\r\n </span>\r\n </nz-form-label>\r\n </ng-container>\r\n <nz-form-control\r\n [nzValidateStatus]=\"errorState\"\r\n [nzErrorTip]=\"errorTpl\"\r\n [ngClass]=\"props.controlClass!\"\r\n [nzFlex]=\"props['grid']?.controlFlex ?? null\"\r\n [nzOffset]=\"props['grid']?.controlOffset ?? null\"\r\n [nzOrder]=\"props['grid']?.controlOrder ?? null\"\r\n [nzPull]=\"props['grid']?.controlPull ?? null\"\r\n [nzPush]=\"props['grid']?.controlPush ?? null\"\r\n [nzSpan]=\"props['grid']?.controlSpan ?? null\"\r\n [nzXs]=\"props['grid']?.controlXs ?? null\"\r\n [nzSm]=\"props['grid']?.controlSm ?? null\"\r\n [nzMd]=\"props['grid']?.controlMd ?? null\"\r\n [nzLg]=\"props['grid']?.controlLg ?? null\"\r\n [nzXl]=\"props['grid']?.controlXl ?? null\"\r\n [nzXXl]=\"props['grid']?.controlXXl ?? null\"\r\n >\r\n <ng-container #fieldComponent></ng-container>\r\n\r\n <ng-template #errorTpl let-control>\r\n <formly-validation-message [field]=\"field\"></formly-validation-message>\r\n </ng-template>\r\n </nz-form-control>\r\n </nz-form-item>\r\n `\r\n})\r\nexport class FormlyWrapperFormField extends FieldWrapper<FormlyFieldConfig<FormlyFieldProps>> {\r\n get errorState() {\r\n return this.showError ? 'error' : 'success';\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { NzFormModule } from 'ng-zorro-antd/form';\r\nimport { FormlyWrapperFormField } from './form-field.wrapper';\r\n\r\n@NgModule({\r\n declarations: [FormlyWrapperFormField],\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n NzFormModule,\r\n FormlyModule.forChild({\r\n wrappers: [\r\n {\r\n name: 'form-field',\r\n component: FormlyWrapperFormField\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzFormFieldModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AA4DM,MAAO,sBAAuB,SAAQ,YAAiD,CAAA;AAC3F,IAAA,IAAI,UAAU,GAAA;QACZ,OAAO,IAAI,CAAC,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;KAC7C;;oHAHU,sBAAsB,EAAA,IA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GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,EAdzB,OAAA,EAAA,CAAA;YACP,YAAY;YACZ,mBAAmB;YACnB,YAAY;YACZ,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,QAAQ,EAAE;AACR,oBAAA;AACE,wBAAA,IAAI,EAAE,YAAY;AAClB,wBAAA,SAAS,EAAE,sBAAsB;AAClC,qBAAA;AACF,iBAAA;aACF,CAAC;AACH,SAAA,CAAA,EAAA,CAAA,CAAA;4FAEU,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAhBnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;AACtC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,YAAY;wBACZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,QAAQ,EAAE;AACR,gCAAA;AACE,oCAAA,IAAI,EAAE,YAAY;AAClB,oCAAA,SAAS,EAAE,sBAAsB;AAClC,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACtBD;;AAEG;;;;"}
@@ -0,0 +1,116 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
+ import * as i3 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i2 from '@ngx-formly/core';
6
+ import { FieldType, FormlyModule } from '@ngx-formly/core';
7
+ import * as i1 from 'ng-zorro-antd/input';
8
+ import { NzInputModule } from 'ng-zorro-antd/input';
9
+
10
+ class FormlyFieldInputGroup extends FieldType {
11
+ constructor() {
12
+ super(...arguments);
13
+ this.defaultOptions = {
14
+ props: {
15
+ status: '',
16
+ size: 'default'
17
+ }
18
+ };
19
+ }
20
+ get group() {
21
+ return this.field.fieldGroup;
22
+ }
23
+ trackById(index, envent) {
24
+ if (!envent.id) {
25
+ return index;
26
+ }
27
+ return envent.id;
28
+ }
29
+ }
30
+ FormlyFieldInputGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldInputGroup, deps: null, target: i0.ɵɵFactoryTarget.Component });
31
+ FormlyFieldInputGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyFieldInputGroup, selector: "formly-field-input-group", usesInheritance: true, ngImport: i0, template: `
32
+ <nz-input-group
33
+ [nzPrefixIcon]="props['prefixIcon']"
34
+ [nzSuffixIcon]="props['suffixIcon']"
35
+ [nzAddOnAfterIcon]="props['addOnAfterIcon']"
36
+ [nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
37
+ [nzAddOnBefore]="props['addOnBefore']"
38
+ [nzAddOnAfter]="props['addOnAfter']"
39
+ [nzPrefix]="props['prefix']"
40
+ [nzSuffix]="props['suffix']"
41
+ [nzCompact]="props['compact']!!"
42
+ [nzSearch]="props['search']!!"
43
+ [nzSize]="props['size']!"
44
+ [nzStatus]="props['status']!"
45
+ >
46
+ <formly-field *ngFor="let f of group; trackBy: trackById" [field]="f"></formly-field>
47
+ </nz-input-group>
48
+ `, isInline: true, components: [{ type: i1.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { type: i2.FormlyField, selector: "formly-field", inputs: ["field"] }], directives: [{ type: i1.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
49
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldInputGroup, decorators: [{
50
+ type: Component,
51
+ args: [{
52
+ selector: 'formly-field-input-group',
53
+ template: `
54
+ <nz-input-group
55
+ [nzPrefixIcon]="props['prefixIcon']"
56
+ [nzSuffixIcon]="props['suffixIcon']"
57
+ [nzAddOnAfterIcon]="props['addOnAfterIcon']"
58
+ [nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
59
+ [nzAddOnBefore]="props['addOnBefore']"
60
+ [nzAddOnAfter]="props['addOnAfter']"
61
+ [nzPrefix]="props['prefix']"
62
+ [nzSuffix]="props['suffix']"
63
+ [nzCompact]="props['compact']!!"
64
+ [nzSearch]="props['search']!!"
65
+ [nzSize]="props['size']!"
66
+ [nzStatus]="props['status']!"
67
+ >
68
+ <formly-field *ngFor="let f of group; trackBy: trackById" [field]="f"></formly-field>
69
+ </nz-input-group>
70
+ `,
71
+ changeDetection: ChangeDetectionStrategy.OnPush
72
+ }]
73
+ }] });
74
+
75
+ class FormlyNzInputGroupModule {
76
+ }
77
+ FormlyNzInputGroupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzInputGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
78
+ FormlyNzInputGroupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzInputGroupModule, declarations: [FormlyFieldInputGroup], imports: [CommonModule,
79
+ NzInputModule, i2.FormlyModule] });
80
+ FormlyNzInputGroupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzInputGroupModule, imports: [[
81
+ CommonModule,
82
+ NzInputModule,
83
+ FormlyModule.forChild({
84
+ types: [
85
+ {
86
+ name: 'input-group',
87
+ component: FormlyFieldInputGroup
88
+ }
89
+ ]
90
+ })
91
+ ]] });
92
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNzInputGroupModule, decorators: [{
93
+ type: NgModule,
94
+ args: [{
95
+ declarations: [FormlyFieldInputGroup],
96
+ imports: [
97
+ CommonModule,
98
+ NzInputModule,
99
+ FormlyModule.forChild({
100
+ types: [
101
+ {
102
+ name: 'input-group',
103
+ component: FormlyFieldInputGroup
104
+ }
105
+ ]
106
+ })
107
+ ]
108
+ }]
109
+ }] });
110
+
111
+ /**
112
+ * Generated bundle index. Do not edit.
113
+ */
114
+
115
+ export { FormlyFieldInputGroup, FormlyNzInputGroupModule };
116
+ //# sourceMappingURL=ngx-formly-zorro-antd-input-group.mjs.map
@@ -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';\r\nimport { FieldType, FormlyFieldConfig, FieldTypeConfig } from '@ngx-formly/core';\r\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\r\nimport type { InputGroupProps } from './input-group.props';\r\n\r\nexport interface FormlyInputGroupFieldConfig extends FormlyFieldConfig<InputGroupProps> {\r\n type: 'input-group' | Type<FormlyFieldInputGroup>;\r\n}\r\n\r\n@Component({\r\n selector: 'formly-field-input-group',\r\n template: `\r\n <nz-input-group\r\n [nzPrefixIcon]=\"props['prefixIcon']\"\r\n [nzSuffixIcon]=\"props['suffixIcon']\"\r\n [nzAddOnAfterIcon]=\"props['addOnAfterIcon']\"\r\n [nzAddOnBeforeIcon]=\"props['addOnBeforeIcon']\"\r\n [nzAddOnBefore]=\"props['addOnBefore']\"\r\n [nzAddOnAfter]=\"props['addOnAfter']\"\r\n [nzPrefix]=\"props['prefix']\"\r\n [nzSuffix]=\"props['suffix']\"\r\n [nzCompact]=\"props['compact']!!\"\r\n [nzSearch]=\"props['search']!!\"\r\n [nzSize]=\"props['size']!\"\r\n [nzStatus]=\"props['status']!\"\r\n >\r\n <formly-field *ngFor=\"let f of group; trackBy: trackById\" [field]=\"f\"></formly-field>\r\n </nz-input-group>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FormlyFieldInputGroup extends FieldType<FieldTypeConfig<InputGroupProps>> {\r\n override defaultOptions = {\r\n props: {\r\n status: '' as const,\r\n size: 'default' as const\r\n }\r\n };\r\n get group() {\r\n return this.field.fieldGroup;\r\n }\r\n trackById(index: number, envent: NzSafeAny) {\r\n if (!envent.id) {\r\n return index;\r\n }\r\n return envent.id;\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormlyModule } from '@ngx-formly/core';\r\n\r\nimport { FormlyFieldInputGroup } from './input-group.type';\r\nimport { NzInputModule } from 'ng-zorro-antd/input';\r\n\r\n@NgModule({\r\n declarations: [FormlyFieldInputGroup],\r\n imports: [\r\n CommonModule,\r\n NzInputModule,\r\n\r\n FormlyModule.forChild({\r\n types: [\r\n {\r\n name: 'input-group',\r\n component: FormlyFieldInputGroup\r\n }\r\n ]\r\n })\r\n ]\r\n})\r\nexport class FormlyNzInputGroupModule {}\r\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,I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