ngx-formly-zorro-antd 13.0.0 → 14.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (316) hide show
  1. package/README.md +1 -1
  2. package/autocomplete/autocomplete.props.d.ts +38 -38
  3. package/autocomplete/{ngx-formly-zorro-antd-autocomplete.d.ts → index.d.ts} +5 -5
  4. package/autocomplete/public_api.d.ts +1 -1
  5. package/button/button.module.d.ts +11 -11
  6. package/button/button.type.d.ts +66 -66
  7. package/button/{ngx-formly-zorro-antd-button.d.ts → index.d.ts} +5 -5
  8. package/button/public_api.d.ts +2 -2
  9. package/card/card.module.d.ts +10 -10
  10. package/card/card.wrapper.d.ts +58 -58
  11. package/card/{ngx-formly-zorro-antd-card.d.ts → index.d.ts} +5 -5
  12. package/card/public_api.d.ts +2 -2
  13. package/cascader/cascader.module.d.ts +12 -12
  14. package/cascader/cascader.type.d.ts +152 -152
  15. package/cascader/{ngx-formly-zorro-antd-cascader.d.ts → index.d.ts} +5 -5
  16. package/cascader/public_api.d.ts +2 -2
  17. package/checkbox/checkbox.module.d.ts +12 -12
  18. package/checkbox/checkbox.type.d.ts +35 -35
  19. package/checkbox/{ngx-formly-zorro-antd-checkbox.d.ts → index.d.ts} +5 -5
  20. package/checkbox/public_api.d.ts +2 -2
  21. package/datepicker/datepicker.module.d.ts +12 -12
  22. package/datepicker/datepicker.props.d.ts +144 -146
  23. package/datepicker/datepicker.type.d.ts +31 -31
  24. package/datepicker/{ngx-formly-zorro-antd-datepicker.d.ts → index.d.ts} +5 -5
  25. package/datepicker/public_api.d.ts +2 -2
  26. package/esm2020/autocomplete/autocomplete.props.mjs +2 -2
  27. package/esm2020/autocomplete/ngx-formly-zorro-antd-autocomplete.mjs +4 -4
  28. package/esm2020/autocomplete/public_api.mjs +2 -2
  29. package/esm2020/button/button.module.mjs +61 -63
  30. package/esm2020/button/button.type.mjs +110 -110
  31. package/esm2020/button/ngx-formly-zorro-antd-button.mjs +4 -4
  32. package/esm2020/button/public_api.mjs +3 -3
  33. package/esm2020/card/card.module.mjs +43 -45
  34. package/esm2020/card/card.wrapper.mjs +47 -47
  35. package/esm2020/card/ngx-formly-zorro-antd-card.mjs +4 -4
  36. package/esm2020/card/public_api.mjs +3 -3
  37. package/esm2020/cascader/cascader.module.mjs +51 -53
  38. package/esm2020/cascader/cascader.type.mjs +112 -112
  39. package/esm2020/cascader/ngx-formly-zorro-antd-cascader.mjs +4 -4
  40. package/esm2020/cascader/public_api.mjs +3 -3
  41. package/esm2020/checkbox/checkbox.module.mjs +59 -61
  42. package/esm2020/checkbox/checkbox.type.mjs +69 -69
  43. package/esm2020/checkbox/ngx-formly-zorro-antd-checkbox.mjs +4 -4
  44. package/esm2020/checkbox/public_api.mjs +3 -3
  45. package/esm2020/datepicker/datepicker.module.mjs +51 -53
  46. package/esm2020/datepicker/datepicker.props.mjs +2 -2
  47. package/esm2020/datepicker/datepicker.type.mjs +191 -189
  48. package/esm2020/datepicker/ngx-formly-zorro-antd-datepicker.mjs +4 -4
  49. package/esm2020/datepicker/public_api.mjs +3 -3
  50. package/esm2020/form-field/form-field.module.mjs +45 -47
  51. package/esm2020/form-field/form-field.props.mjs +2 -2
  52. package/esm2020/form-field/form-field.wrapper.mjs +127 -127
  53. package/esm2020/form-field/ngx-formly-zorro-antd-form-field.mjs +4 -4
  54. package/esm2020/form-field/public_api.mjs +2 -2
  55. package/esm2020/grid/grid.module.mjs +41 -43
  56. package/esm2020/grid/grid.props.mjs +2 -2
  57. package/esm2020/grid/grid.type.mjs +71 -71
  58. package/esm2020/grid/ngx-formly-zorro-antd-grid.mjs +4 -4
  59. package/esm2020/grid/public_api.mjs +3 -3
  60. package/esm2020/index.mjs +2 -2
  61. package/esm2020/input/input.module.mjs +89 -91
  62. package/esm2020/input/input.props.mjs +2 -2
  63. package/esm2020/input/input.type.mjs +309 -263
  64. package/esm2020/input/ngx-formly-zorro-antd-input.mjs +4 -4
  65. package/esm2020/input/public_api.mjs +3 -3
  66. package/esm2020/input-group/input-group.module.mjs +47 -49
  67. package/esm2020/input-group/input-group.props.mjs +2 -2
  68. package/esm2020/input-group/input-group.type.mjs +71 -71
  69. package/esm2020/input-group/ngx-formly-zorro-antd-input-group.mjs +4 -4
  70. package/esm2020/input-group/public_api.mjs +3 -3
  71. package/esm2020/input-number/input-number.module.mjs +59 -61
  72. package/esm2020/input-number/input-number.props.mjs +2 -2
  73. package/esm2020/input-number/input-number.type.mjs +128 -128
  74. package/esm2020/input-number/ngx-formly-zorro-antd-input-number.mjs +4 -4
  75. package/esm2020/input-number/public_api.mjs +3 -3
  76. package/esm2020/lib/ui-ng-zorro-antd.mjs +2 -2
  77. package/esm2020/lib/ui-ng-zorro-antd.module.mjs +97 -99
  78. package/esm2020/ngx-formly-zorro-antd.mjs +4 -4
  79. package/esm2020/radio/ngx-formly-zorro-antd-radio.mjs +4 -4
  80. package/esm2020/radio/public_api.mjs +3 -3
  81. package/esm2020/radio/radio.module.mjs +59 -61
  82. package/esm2020/radio/radio.type.mjs +96 -96
  83. package/esm2020/rate/ngx-formly-zorro-antd-rate.mjs +4 -4
  84. package/esm2020/rate/public_api.mjs +3 -3
  85. package/esm2020/rate/rate.module.mjs +51 -53
  86. package/esm2020/rate/rate.type.mjs +63 -63
  87. package/esm2020/select/ngx-formly-zorro-antd-select.mjs +4 -4
  88. package/esm2020/select/public_api.mjs +3 -3
  89. package/esm2020/select/select.module.mjs +57 -59
  90. package/esm2020/select/select.props.mjs +2 -2
  91. package/esm2020/select/select.type.mjs +163 -163
  92. package/esm2020/slider/ngx-formly-zorro-antd-slider.mjs +4 -4
  93. package/esm2020/slider/public_api.mjs +3 -3
  94. package/esm2020/slider/slider.module.mjs +51 -53
  95. package/esm2020/slider/slider.type.mjs +67 -67
  96. package/esm2020/switch/ngx-formly-zorro-antd-switch.mjs +4 -4
  97. package/esm2020/switch/public_api.mjs +3 -3
  98. package/esm2020/switch/switch.module.mjs +51 -53
  99. package/esm2020/switch/switch.type.mjs +53 -53
  100. package/esm2020/tabs/ngx-formly-zorro-antd-tabs.mjs +4 -4
  101. package/esm2020/tabs/public_api.mjs +3 -3
  102. package/esm2020/tabs/tabs.module.mjs +41 -43
  103. package/esm2020/tabs/tabs.props.mjs +2 -2
  104. package/esm2020/tabs/tabs.wrapper.mjs +111 -111
  105. package/esm2020/textarea/ngx-formly-zorro-antd-textarea.mjs +4 -4
  106. package/esm2020/textarea/public_api.mjs +3 -3
  107. package/esm2020/textarea/textarea.module.mjs +51 -53
  108. package/esm2020/textarea/textarea.type.mjs +88 -88
  109. package/esm2020/timepicker/ngx-formly-zorro-antd-timepicker.mjs +4 -4
  110. package/esm2020/timepicker/public_api.mjs +3 -3
  111. package/esm2020/timepicker/timepicker.module.mjs +51 -53
  112. package/esm2020/timepicker/timepicker.type.mjs +92 -92
  113. package/esm2020/transfer/ngx-formly-zorro-antd-transfer.mjs +4 -4
  114. package/esm2020/transfer/public_api.mjs +3 -3
  115. package/esm2020/transfer/transfer.component.mjs +128 -128
  116. package/esm2020/transfer/transfer.module.mjs +52 -54
  117. package/esm2020/transfer/transfer.type.mjs +87 -87
  118. package/esm2020/tree-select/ngx-formly-zorro-antd-tree-select.mjs +4 -4
  119. package/esm2020/tree-select/public_api.mjs +3 -3
  120. package/esm2020/tree-select/tree-select.module.mjs +51 -53
  121. package/esm2020/tree-select/tree-select.type.mjs +98 -98
  122. package/esm2020/upload/ngx-formly-zorro-antd-upload.mjs +4 -4
  123. package/esm2020/upload/public_api.mjs +3 -3
  124. package/esm2020/upload/upload.component.mjs +174 -174
  125. package/esm2020/upload/upload.module.mjs +60 -62
  126. package/esm2020/upload/upload.type.mjs +119 -119
  127. package/fesm2015/ngx-formly-zorro-antd-autocomplete.mjs +2 -2
  128. package/fesm2015/ngx-formly-zorro-antd-button.mjs +156 -158
  129. package/fesm2015/ngx-formly-zorro-antd-button.mjs.map +1 -1
  130. package/fesm2015/ngx-formly-zorro-antd-card.mjs +77 -79
  131. package/fesm2015/ngx-formly-zorro-antd-card.mjs.map +1 -1
  132. package/fesm2015/ngx-formly-zorro-antd-cascader.mjs +148 -150
  133. package/fesm2015/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  134. package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs +113 -115
  135. package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  136. package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs +227 -227
  137. package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  138. package/fesm2015/ngx-formly-zorro-antd-form-field.mjs +159 -161
  139. package/fesm2015/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  140. package/fesm2015/ngx-formly-zorro-antd-grid.mjs +99 -101
  141. package/fesm2015/ngx-formly-zorro-antd-grid.mjs.map +1 -1
  142. package/fesm2015/ngx-formly-zorro-antd-input-group.mjs +105 -107
  143. package/fesm2015/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  144. package/fesm2015/ngx-formly-zorro-antd-input-number.mjs +172 -174
  145. package/fesm2015/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  146. package/fesm2015/ngx-formly-zorro-antd-input.mjs +382 -338
  147. package/fesm2015/ngx-formly-zorro-antd-input.mjs.map +1 -1
  148. package/fesm2015/ngx-formly-zorro-antd-radio.mjs +137 -139
  149. package/fesm2015/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  150. package/fesm2015/ngx-formly-zorro-antd-rate.mjs +99 -101
  151. package/fesm2015/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  152. package/fesm2015/ngx-formly-zorro-antd-select.mjs +202 -204
  153. package/fesm2015/ngx-formly-zorro-antd-select.mjs.map +1 -1
  154. package/fesm2015/ngx-formly-zorro-antd-slider.mjs +103 -105
  155. package/fesm2015/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  156. package/fesm2015/ngx-formly-zorro-antd-switch.mjs +89 -91
  157. package/fesm2015/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  158. package/fesm2015/ngx-formly-zorro-antd-tabs.mjs +140 -142
  159. package/fesm2015/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  160. package/fesm2015/ngx-formly-zorro-antd-textarea.mjs +124 -126
  161. package/fesm2015/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  162. package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs +128 -130
  163. package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  164. package/fesm2015/ngx-formly-zorro-antd-transfer.mjs +243 -245
  165. package/fesm2015/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  166. package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs +134 -136
  167. package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  168. package/fesm2015/ngx-formly-zorro-antd-upload.mjs +328 -330
  169. package/fesm2015/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  170. package/fesm2015/ngx-formly-zorro-antd.mjs +74 -76
  171. package/fesm2015/ngx-formly-zorro-antd.mjs.map +1 -1
  172. package/fesm2020/ngx-formly-zorro-antd-autocomplete.mjs +2 -2
  173. package/fesm2020/ngx-formly-zorro-antd-button.mjs +156 -158
  174. package/fesm2020/ngx-formly-zorro-antd-button.mjs.map +1 -1
  175. package/fesm2020/ngx-formly-zorro-antd-card.mjs +77 -79
  176. package/fesm2020/ngx-formly-zorro-antd-card.mjs.map +1 -1
  177. package/fesm2020/ngx-formly-zorro-antd-cascader.mjs +148 -150
  178. package/fesm2020/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  179. package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs +113 -115
  180. package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  181. package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs +227 -227
  182. package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  183. package/fesm2020/ngx-formly-zorro-antd-form-field.mjs +159 -161
  184. package/fesm2020/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  185. package/fesm2020/ngx-formly-zorro-antd-grid.mjs +99 -101
  186. package/fesm2020/ngx-formly-zorro-antd-grid.mjs.map +1 -1
  187. package/fesm2020/ngx-formly-zorro-antd-input-group.mjs +105 -107
  188. package/fesm2020/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  189. package/fesm2020/ngx-formly-zorro-antd-input-number.mjs +172 -174
  190. package/fesm2020/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  191. package/fesm2020/ngx-formly-zorro-antd-input.mjs +382 -338
  192. package/fesm2020/ngx-formly-zorro-antd-input.mjs.map +1 -1
  193. package/fesm2020/ngx-formly-zorro-antd-radio.mjs +137 -139
  194. package/fesm2020/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  195. package/fesm2020/ngx-formly-zorro-antd-rate.mjs +99 -101
  196. package/fesm2020/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  197. package/fesm2020/ngx-formly-zorro-antd-select.mjs +202 -204
  198. package/fesm2020/ngx-formly-zorro-antd-select.mjs.map +1 -1
  199. package/fesm2020/ngx-formly-zorro-antd-slider.mjs +103 -105
  200. package/fesm2020/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  201. package/fesm2020/ngx-formly-zorro-antd-switch.mjs +89 -91
  202. package/fesm2020/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  203. package/fesm2020/ngx-formly-zorro-antd-tabs.mjs +140 -142
  204. package/fesm2020/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  205. package/fesm2020/ngx-formly-zorro-antd-textarea.mjs +124 -126
  206. package/fesm2020/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  207. package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs +128 -130
  208. package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  209. package/fesm2020/ngx-formly-zorro-antd-transfer.mjs +243 -245
  210. package/fesm2020/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  211. package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs +134 -136
  212. package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  213. package/fesm2020/ngx-formly-zorro-antd-upload.mjs +327 -329
  214. package/fesm2020/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  215. package/fesm2020/ngx-formly-zorro-antd.mjs +74 -76
  216. package/fesm2020/ngx-formly-zorro-antd.mjs.map +1 -1
  217. package/form-field/form-field.module.d.ts +11 -11
  218. package/form-field/form-field.props.d.ts +105 -105
  219. package/form-field/form-field.wrapper.d.ts +9 -9
  220. package/form-field/{ngx-formly-zorro-antd-form-field.d.ts → index.d.ts} +5 -5
  221. package/form-field/public_api.d.ts +3 -3
  222. package/grid/grid.module.d.ts +10 -10
  223. package/grid/grid.props.d.ts +44 -44
  224. package/grid/grid.type.d.ts +11 -11
  225. package/grid/{ngx-formly-zorro-antd-grid.d.ts → index.d.ts} +5 -5
  226. package/grid/public_api.d.ts +3 -3
  227. package/index.d.ts +1 -1
  228. package/input/{ngx-formly-zorro-antd-input.d.ts → index.d.ts} +5 -5
  229. package/input/input.module.d.ts +14 -14
  230. package/input/input.props.d.ts +36 -33
  231. package/input/input.type.d.ts +26 -26
  232. package/input/public_api.d.ts +2 -2
  233. package/input-group/{ngx-formly-zorro-antd-input-group.d.ts → index.d.ts} +5 -5
  234. package/input-group/input-group.module.d.ts +11 -11
  235. package/input-group/input-group.props.d.ts +56 -56
  236. package/input-group/input-group.type.d.ts +22 -22
  237. package/input-group/public_api.d.ts +3 -3
  238. package/input-number/{ngx-formly-zorro-antd-input-number.d.ts → index.d.ts} +5 -5
  239. package/input-number/input-number.module.d.ts +12 -12
  240. package/input-number/input-number.props.d.ts +81 -78
  241. package/input-number/input-number.type.d.ts +24 -24
  242. package/input-number/public_api.d.ts +2 -2
  243. package/lib/ui-ng-zorro-antd.d.ts +1 -1
  244. package/lib/ui-ng-zorro-antd.module.d.ts +27 -27
  245. package/package.json +34 -30
  246. package/radio/{ngx-formly-zorro-antd-radio.d.ts → index.d.ts} +5 -5
  247. package/radio/public_api.d.ts +2 -2
  248. package/radio/radio.module.d.ts +14 -14
  249. package/radio/radio.type.d.ts +38 -38
  250. package/rate/{ngx-formly-zorro-antd-rate.d.ts → index.d.ts} +5 -5
  251. package/rate/public_api.d.ts +2 -2
  252. package/rate/rate.module.d.ts +12 -12
  253. package/rate/rate.type.d.ts +57 -57
  254. package/select/{ngx-formly-zorro-antd-select.d.ts → index.d.ts} +5 -5
  255. package/select/public_api.d.ts +2 -2
  256. package/select/select.module.d.ts +13 -13
  257. package/select/select.props.d.ts +162 -162
  258. package/select/select.type.d.ts +35 -35
  259. package/slider/{ngx-formly-zorro-antd-slider.d.ts → index.d.ts} +5 -5
  260. package/slider/public_api.d.ts +2 -2
  261. package/slider/slider.module.d.ts +12 -12
  262. package/slider/slider.type.d.ts +76 -76
  263. package/switch/{ngx-formly-zorro-antd-switch.d.ts → index.d.ts} +5 -5
  264. package/switch/public_api.d.ts +2 -2
  265. package/switch/switch.module.d.ts +12 -12
  266. package/switch/switch.type.d.ts +44 -44
  267. package/tabs/{ngx-formly-zorro-antd-tabs.d.ts → index.d.ts} +5 -5
  268. package/tabs/public_api.d.ts +2 -2
  269. package/tabs/tabs.module.d.ts +10 -10
  270. package/tabs/tabs.props.d.ts +126 -126
  271. package/tabs/tabs.wrapper.d.ts +28 -28
  272. package/textarea/{ngx-formly-zorro-antd-textarea.d.ts → index.d.ts} +5 -5
  273. package/textarea/public_api.d.ts +2 -2
  274. package/textarea/textarea.module.d.ts +12 -12
  275. package/textarea/textarea.type.d.ts +38 -38
  276. package/timepicker/{ngx-formly-zorro-antd-timepicker.d.ts → index.d.ts} +5 -5
  277. package/timepicker/public_api.d.ts +2 -2
  278. package/timepicker/timepicker.module.d.ts +12 -12
  279. package/timepicker/timepicker.type.d.ts +131 -131
  280. package/transfer/{ngx-formly-zorro-antd-transfer.d.ts → index.d.ts} +5 -5
  281. package/transfer/public_api.d.ts +2 -2
  282. package/transfer/transfer.component.d.ts +26 -26
  283. package/transfer/transfer.module.d.ts +13 -13
  284. package/transfer/transfer.type.d.ts +118 -118
  285. package/tree-select/{ngx-formly-zorro-antd-tree-select.d.ts → index.d.ts} +5 -5
  286. package/tree-select/public_api.d.ts +2 -2
  287. package/tree-select/tree-select.module.d.ts +12 -12
  288. package/tree-select/tree-select.type.d.ts +158 -158
  289. package/upload/{ngx-formly-zorro-antd-upload.d.ts → index.d.ts} +5 -5
  290. package/upload/public_api.d.ts +2 -2
  291. package/upload/upload.component.d.ts +27 -27
  292. package/upload/upload.module.d.ts +15 -15
  293. package/upload/upload.type.d.ts +173 -173
  294. package/autocomplete/package.json +0 -10
  295. package/button/package.json +0 -10
  296. package/card/package.json +0 -10
  297. package/cascader/package.json +0 -10
  298. package/checkbox/package.json +0 -10
  299. package/datepicker/package.json +0 -10
  300. package/form-field/package.json +0 -10
  301. package/grid/package.json +0 -10
  302. package/input/package.json +0 -10
  303. package/input-group/package.json +0 -10
  304. package/input-number/package.json +0 -10
  305. package/ngx-formly-zorro-antd.d.ts +0 -5
  306. package/radio/package.json +0 -10
  307. package/rate/package.json +0 -10
  308. package/select/package.json +0 -10
  309. package/slider/package.json +0 -10
  310. package/switch/package.json +0 -10
  311. package/tabs/package.json +0 -10
  312. package/textarea/package.json +0 -10
  313. package/timepicker/package.json +0 -10
  314. package/transfer/package.json +0 -10
  315. package/tree-select/package.json +0 -10
  316. package/upload/package.json +0 -10
@@ -1,263 +1,309 @@
1
- import { Component, ChangeDetectionStrategy } from '@angular/core';
2
- import { FieldType } from '@ngx-formly/core';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "ng-zorro-antd/input";
5
- import * as i2 from "ng-zorro-antd/auto-complete";
6
- import * as i3 from "@angular/common";
7
- import * as i4 from "@angular/forms";
8
- import * as i5 from "@ngx-formly/core";
9
- import * as i6 from "ng-zorro-antd/icon";
10
- export class FormlyFieldInput extends FieldType {
11
- constructor() {
12
- super(...arguments);
13
- this.defaultOptions = {
14
- props: {
15
- borderless: false,
16
- compact: false,
17
- search: false,
18
- allowClear: false,
19
- autocompleteOptions: {
20
- backfill: false,
21
- defaultActiveFirstOption: true,
22
- compareWith: (o1, o2) => o1 === o2
23
- }
24
- }
25
- };
26
- this.passwordVisible = false;
27
- }
28
- }
29
- FormlyFieldInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldInput, deps: null, target: i0.ɵɵFactoryTarget.Component });
30
- FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyFieldInput, selector: "formly-field-input", usesInheritance: true, ngImport: i0, template: `
31
- <ng-container [ngSwitch]="props.type">
32
- <ng-container *ngSwitchCase="'password'">
33
- <nz-input-group
34
- [nzPrefixIcon]="props['prefixIcon']"
35
- [nzSuffixIcon]="props['suffixIcon']"
36
- [nzAddOnAfterIcon]="props['addOnAfterIcon']"
37
- [nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
38
- [nzAddOnBefore]="props['addOnBefore']"
39
- [nzAddOnAfter]="props['addOnAfter']"
40
- [nzPrefix]="props['prefix']"
41
- [nzCompact]="props['compact']!!"
42
- [nzSearch]="props['search']!!"
43
- [nzSize]="props['size']!"
44
- [nzStatus]="props['status']!"
45
- [nzSuffix]="suffixpassword"
46
- >
47
- <input
48
- [type]="passwordVisible ? 'text' : 'password'"
49
- nz-input
50
- [formControl]="formControl"
51
- [formlyAttributes]="field"
52
- [nzBorderless]="props['borderless']!!"
53
- (ngModelChange)="props.change && props.change(field, $event)"
54
- />
55
- </nz-input-group>
56
-
57
- <ng-template #suffixpassword>
58
- <span
59
- nz-icon
60
- class="cursor-pointer"
61
- [nzType]="passwordVisible ? 'eye-invisible' : 'eye'"
62
- (click)="passwordVisible = !passwordVisible"
63
- ></span>
64
- </ng-template>
65
- </ng-container>
66
-
67
- <nz-input-group
68
- *ngSwitchCase="'autoComplete'"
69
- [nzSize]="props['size']"
70
- [nzPrefixIcon]="props['prefixIcon']"
71
- [nzSuffixIcon]="props['suffixIcon']"
72
- [nzAddOnAfterIcon]="props['addOnAfterIcon']"
73
- [nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
74
- [nzAddOnBefore]="props['addOnBefore']"
75
- [nzAddOnAfter]="props['addOnAfter']"
76
- [nzPrefix]="props['prefix']"
77
- [nzSuffix]="props['suffix']"
78
- >
79
- <input
80
- nz-input
81
- [nzBorderless]="props['borderless']"
82
- [nzAutocomplete]="auto"
83
- [formControl]="formControl"
84
- [formlyAttributes]="field"
85
- />
86
- <nz-autocomplete
87
- [nzBackfill]="props['autocompleteOptions']?.backfill"
88
- [nzDefaultActiveFirstOption]="props['autocompleteOptions']?.defaultActiveFirstOption"
89
- [nzWidth]="props['autocompleteOptions']?.width"
90
- [nzOverlayClassName]="props['autocompleteOptions']?.overlayClassName"
91
- [nzOverlayStyle]="props['autocompleteOptions']?.overlayStyle"
92
- [compareWith]="props['autocompleteOptions']?.compareWith"
93
- #auto
94
- >
95
- <nz-auto-option
96
- *ngFor="let option of props['autocompleteOptions'].dataSource"
97
- [nzLabel]="option.label"
98
- [nzValue]="option.value"
99
- >
100
- {{ option.label }}
101
- </nz-auto-option>
102
- </nz-autocomplete>
103
- </nz-input-group>
104
-
105
- <nz-input-group
106
- *ngSwitchCase="'group'"
107
- [nzPrefixIcon]="props['prefixIcon']"
108
- [nzSuffixIcon]="props['suffixIcon']"
109
- [nzAddOnAfterIcon]="props['addOnAfterIcon']"
110
- [nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
111
- [nzAddOnBefore]="props['addOnBefore']"
112
- [nzAddOnAfter]="props['addOnAfter']"
113
- [nzPrefix]="props['prefix']"
114
- [nzSuffix]="props['suffix']"
115
- [nzCompact]="props['compact']!!"
116
- [nzSearch]="props['search']!!"
117
- [nzSize]="props['size']!"
118
- [nzStatus]="props['status']!"
119
- >
120
- <input
121
- nz-input
122
- type="text"
123
- [formControl]="formControl"
124
- [formlyAttributes]="field"
125
- [nzBorderless]="!!props['borderless']!!"
126
- (ngModelChange)="props.change && props.change(field, $event)"
127
- />
128
- </nz-input-group>
129
-
130
- <input
131
- *ngSwitchDefault
132
- nz-input
133
- type="text"
134
- [formControl]="formControl"
135
- [formlyAttributes]="field"
136
- [nzSize]="props['size']"
137
- [nzStatus]="props['status']"
138
- [nzBorderless]="props['borderless']!!"
139
- (ngModelChange)="props.change && props.change(field, $event)"
140
- />
141
- </ng-container>
142
- `, 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.NzAutocompleteComponent, selector: "nz-autocomplete", inputs: ["nzWidth", "nzOverlayClassName", "nzOverlayStyle", "nzDefaultActiveFirstOption", "nzBackfill", "compareWith", "nzDataSource"], outputs: ["selectionChange"], exportAs: ["nzAutocomplete"] }, { type: i2.NzAutocompleteOptionComponent, selector: "nz-auto-option", inputs: ["nzValue", "nzLabel", "nzDisabled"], outputs: ["selectionChange", "mouseEntered"], exportAs: ["nzAutoOption"] }], directives: [{ type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { type: i1.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i5.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { type: i2.NzAutocompleteTriggerDirective, selector: "input[nzAutocomplete], textarea[nzAutocomplete]", inputs: ["nzAutocomplete"], exportAs: ["nzAutocompleteTrigger"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgSwitchDefault, selector: "[ngSwitchDefault]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
143
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldInput, decorators: [{
144
- type: Component,
145
- args: [{
146
- selector: 'formly-field-input',
147
- template: `
148
- <ng-container [ngSwitch]="props.type">
149
- <ng-container *ngSwitchCase="'password'">
150
- <nz-input-group
151
- [nzPrefixIcon]="props['prefixIcon']"
152
- [nzSuffixIcon]="props['suffixIcon']"
153
- [nzAddOnAfterIcon]="props['addOnAfterIcon']"
154
- [nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
155
- [nzAddOnBefore]="props['addOnBefore']"
156
- [nzAddOnAfter]="props['addOnAfter']"
157
- [nzPrefix]="props['prefix']"
158
- [nzCompact]="props['compact']!!"
159
- [nzSearch]="props['search']!!"
160
- [nzSize]="props['size']!"
161
- [nzStatus]="props['status']!"
162
- [nzSuffix]="suffixpassword"
163
- >
164
- <input
165
- [type]="passwordVisible ? 'text' : 'password'"
166
- nz-input
167
- [formControl]="formControl"
168
- [formlyAttributes]="field"
169
- [nzBorderless]="props['borderless']!!"
170
- (ngModelChange)="props.change && props.change(field, $event)"
171
- />
172
- </nz-input-group>
173
-
174
- <ng-template #suffixpassword>
175
- <span
176
- nz-icon
177
- class="cursor-pointer"
178
- [nzType]="passwordVisible ? 'eye-invisible' : 'eye'"
179
- (click)="passwordVisible = !passwordVisible"
180
- ></span>
181
- </ng-template>
182
- </ng-container>
183
-
184
- <nz-input-group
185
- *ngSwitchCase="'autoComplete'"
186
- [nzSize]="props['size']"
187
- [nzPrefixIcon]="props['prefixIcon']"
188
- [nzSuffixIcon]="props['suffixIcon']"
189
- [nzAddOnAfterIcon]="props['addOnAfterIcon']"
190
- [nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
191
- [nzAddOnBefore]="props['addOnBefore']"
192
- [nzAddOnAfter]="props['addOnAfter']"
193
- [nzPrefix]="props['prefix']"
194
- [nzSuffix]="props['suffix']"
195
- >
196
- <input
197
- nz-input
198
- [nzBorderless]="props['borderless']"
199
- [nzAutocomplete]="auto"
200
- [formControl]="formControl"
201
- [formlyAttributes]="field"
202
- />
203
- <nz-autocomplete
204
- [nzBackfill]="props['autocompleteOptions']?.backfill"
205
- [nzDefaultActiveFirstOption]="props['autocompleteOptions']?.defaultActiveFirstOption"
206
- [nzWidth]="props['autocompleteOptions']?.width"
207
- [nzOverlayClassName]="props['autocompleteOptions']?.overlayClassName"
208
- [nzOverlayStyle]="props['autocompleteOptions']?.overlayStyle"
209
- [compareWith]="props['autocompleteOptions']?.compareWith"
210
- #auto
211
- >
212
- <nz-auto-option
213
- *ngFor="let option of props['autocompleteOptions'].dataSource"
214
- [nzLabel]="option.label"
215
- [nzValue]="option.value"
216
- >
217
- {{ option.label }}
218
- </nz-auto-option>
219
- </nz-autocomplete>
220
- </nz-input-group>
221
-
222
- <nz-input-group
223
- *ngSwitchCase="'group'"
224
- [nzPrefixIcon]="props['prefixIcon']"
225
- [nzSuffixIcon]="props['suffixIcon']"
226
- [nzAddOnAfterIcon]="props['addOnAfterIcon']"
227
- [nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
228
- [nzAddOnBefore]="props['addOnBefore']"
229
- [nzAddOnAfter]="props['addOnAfter']"
230
- [nzPrefix]="props['prefix']"
231
- [nzSuffix]="props['suffix']"
232
- [nzCompact]="props['compact']!!"
233
- [nzSearch]="props['search']!!"
234
- [nzSize]="props['size']!"
235
- [nzStatus]="props['status']!"
236
- >
237
- <input
238
- nz-input
239
- type="text"
240
- [formControl]="formControl"
241
- [formlyAttributes]="field"
242
- [nzBorderless]="!!props['borderless']!!"
243
- (ngModelChange)="props.change && props.change(field, $event)"
244
- />
245
- </nz-input-group>
246
-
247
- <input
248
- *ngSwitchDefault
249
- nz-input
250
- type="text"
251
- [formControl]="formControl"
252
- [formlyAttributes]="field"
253
- [nzSize]="props['size']"
254
- [nzStatus]="props['status']"
255
- [nzBorderless]="props['borderless']!!"
256
- (ngModelChange)="props.change && props.change(field, $event)"
257
- />
258
- </ng-container>
259
- `,
260
- changeDetection: ChangeDetectionStrategy.OnPush
261
- }]
262
- }] });
263
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvaW5wdXQvc3JjL2lucHV0LnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSx1QkFBdUIsRUFBUSxNQUFNLGVBQWUsQ0FBQztBQUN6RSxPQUFPLEVBQUUsU0FBUyxFQUFzQyxNQUFNLGtCQUFrQixDQUFDOzs7Ozs7OztBQThIakYsTUFBTSxPQUFPLGdCQUFpQixTQUFRLFNBQTBCO0lBckhoRTs7UUFzSFcsbUJBQWMsR0FBRztZQUN4QixLQUFLLEVBQUU7Z0JBQ0wsVUFBVSxFQUFFLEtBQUs7Z0JBQ2pCLE9BQU8sRUFBRSxLQUFLO2dCQUNkLE1BQU0sRUFBRSxLQUFLO2dCQUNiLFVB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cm9wc1snYWRkT25BZnRlciddXCJcclxuICAgICAgICAgIFtuelByZWZpeF09XCJwcm9wc1sncHJlZml4J11cIlxyXG4gICAgICAgICAgW256Q29tcGFjdF09XCJwcm9wc1snY29tcGFjdCddISFcIlxyXG4gICAgICAgICAgW256U2VhcmNoXT1cInByb3BzWydzZWFyY2gnXSEhXCJcclxuICAgICAgICAgIFtuelNpemVdPVwicHJvcHNbJ3NpemUnXSFcIlxyXG4gICAgICAgICAgW256U3RhdHVzXT1cInByb3BzWydzdGF0dXMnXSFcIlxyXG4gICAgICAgICAgW256U3VmZml4XT1cInN1ZmZpeHBhc3N3b3JkXCJcclxuICAgICAgICA+XHJcbiAgICAgICAgICA8aW5wdXRcclxuICAgICAgICAgICAgW3R5cGVdPVwicGFzc3dvcmRWaXNpYmxlID8gJ3RleHQnIDogJ3Bhc3N3b3JkJ1wiXHJcbiAgICAgICAgICAgIG56LWlucHV0XHJcbiAgICAgICAgICAgIFtmb3JtQ29udHJvbF09XCJmb3JtQ29udHJvbFwiXHJcbiAgICAgICAgICAgIFtmb3JtbHlBdHRyaWJ1dGVzXT1cImZpZWxkXCJcclxuICAgICAgICAgICAgW256Qm9yZGVybGVzc109XCJwcm9wc1snYm9yZGVybGVzcyddISFcIlxyXG4gICAgICAgICAgICAobmdNb2RlbENoYW5nZSk9XCJwcm9wcy5jaGFuZ2UgJiYgcHJvcHMuY2hhbmdlKGZpZWxkLCAkZXZlbnQpXCJcclxuICAgICAgICAgIC8+XHJcbiAgICAgICAgPC9uei1pbnB1dC1ncm91cD5cclxuXHJcbiAgICAgICAgPG5nLXRlbXBsYXRlICNzdWZmaXhwYXNzd29yZD5cclxuICAgICAgICAgIDxzcGFuXHJcbiAgICAgICAgICAgIG56LWljb25cclxuICAgICAgICAgICAgY2xhc3M9XCJjdXJzb3ItcG9pbnRlclwiXHJcbiAgICAgICAgICAgIFtuelR5cGVdPVwicGFzc3dvcmRWaXNpYmxlID8gJ2V5ZS1pbnZpc2libGUnIDogJ2V5ZSdcIlxyXG4gICAgICAgICAgICAoY2xpY2spPVwicGFzc3dvcmRWaXNpYmxlID0gIXBhc3N3b3JkVmlzaWJsZVwiXHJcbiAgICAgICAgICA+PC9zcGFuPlxyXG4gICAgICAgIDwvbmctdGVtcGxhdGU+XHJcbiAgICAgIDwvbmctY29udGFpbmVyPlxyXG5cclxuICAgICAgPG56LWlucHV0LWdyb3VwXHJcbiAgICAgICAgKm5nU3dpdGNoQ2FzZT1cIidhdXRvQ29tcGxldGUnXCJcclxuICAgICAgICBbbnpTaXplXT1cInByb3BzWydzaXplJ11cIlxyXG4gICAgICAgIFtuelByZWZpeEljb25dPVwicHJvcHNbJ3ByZWZpeEljb24nXVwiXHJcbiAgICAgICAgW256U3VmZml4SWNvbl09XCJwcm9wc1snc3VmZml4SWNvbiddXCJcclxuICAgICAgICBbbnpBZGRPbkFmdGVySWNvbl09XCJwcm9wc1snYWRkT25BZnRlckljb24nXVwiXHJcbiAgICAgICAgW256QWRkT25CZWZvcmVJY29uXT1cInByb3BzWydhZGRPbkJlZm9yZUljb24nXVwiXHJcbiAgICAgICAgW256QWRkT25CZWZvcmVdPVwicHJvcHNbJ2FkZE9uQmVmb3JlJ11cIlxyXG4gICAgICAgIFtuekFkZE9uQWZ0ZXJdPVwicHJvcHNbJ2FkZE9uQWZ0ZXInXVwiXHJcbiAgICAgICAgW256UHJlZml4XT1cInByb3BzWydwcmVmaXgnXVwiXHJcbiAgICAgICAgW256U3VmZml4XT1cInByb3BzWydzdWZmaXgnXVwiXHJcbiAgICAgID5cclxuICAgICAgICA8aW5wdXRcclxuICAgICAgICAgIG56LWlucHV0XHJcbiAgICAgICAgICBbbnpCb3JkZXJsZXNzXT1cInByb3BzWydib3JkZXJsZXNzJ11cIlxyXG4gICAgICAgICAgW256QXV0b2NvbXBsZXRlXT1cImF1dG9cIlxyXG4gICAgICAgICAgW2Zvcm1Db250cm9sXT1cImZvcm1Db250cm9sXCJcclxuICAgICAgICAgIFtmb3JtbHlBdHRyaWJ1dGVzXT1cImZpZWxkXCJcclxuICAgICAgICAvPlxyXG4gICAgICAgIDxuei1hdXRvY29tcGxldGVcclxuICAgICAgICAgIFtuekJhY2tmaWxsXT1cInByb3BzWydhdXRvY29tcGxldGVPcHRpb25zJ10/LmJhY2tmaWxsXCJcclxuICAgICAgICAgIFtuekRlZmF1bHRBY3RpdmVGaXJzdE9wdGlvbl09XCJwcm9wc1snYXV0b2NvbXBsZXRlT3B0aW9ucyddPy5kZWZhdWx0QWN0aXZlRmlyc3RPcHRpb25cIlxyXG4gICAgICAgICAgW256V2lkdGhdPVwicHJvcHNbJ2F1dG9jb21wbGV0ZU9wdGlvbnMnXT8ud2lkdGhcIlxyXG4gICAgICAgICAgW256T3ZlcmxheUNsYXNzTmFtZV09XCJwcm9wc1snYXV0b2NvbXBsZXRlT3B0aW9ucyddPy5vdmVybGF5Q2xhc3NOYW1lXCJcclxuICAgICAgICAgIFtuek92ZXJsYXlTdHlsZV09XCJwcm9wc1snYXV0b2NvbXBsZXRlT3B0aW9ucyddPy5vdmVybGF5U3R5bGVcIlxyXG4gICAgICAgICAgW2NvbXBhcmVXaXRoXT1cInByb3BzWydhdXRvY29tcGxldGVPcHRpb25zJ10/LmNvbXBhcmVXaXRoXCJcclxuICAgICAgICAgICNhdXRvXHJcbiAgICAgICAgPlxyXG4gICAgICAgICAgPG56LWF1dG8tb3B0aW9uXHJcbiAgICAgICAgICAgICpuZ0Zvcj1cImxldCBvcHRpb24gb2YgcHJvcHNbJ2F1dG9jb21wbGV0ZU9wdGlvbnMnXS5kYXRhU291cmNlXCJcclxuICAgICAgICAgICAgW256TGFiZWxdPVwib3B0aW9uLmxhYmVsXCJcclxuICAgICAgICAgICAgW256VmFsdWVdPVwib3B0aW9uLnZhbHVlXCJcclxuICAgICAgICAgID5cclxuICAgICAgICAgICAge3sgb3B0aW9uLmxhYmVsIH19XHJcbiAgICAgICAgICA8L256LWF1dG8tb3B0aW9uPlxyXG4gICAgICAgIDwvbnotYXV0b2NvbXBsZXRlPlxyXG4gICAgICA8L256LWlucHV0LWdyb3VwPlxyXG5cclxuICAgICAgPG56LWlucHV0LWdyb3VwXHJcbiAgICAgICAgKm5nU3dpdGNoQ2FzZT1cIidncm91cCdcIlxyXG4gICAgICAgIFtuelByZWZpeEljb25dPVwicHJvcHNbJ3ByZWZpeEljb24nXVwiXHJcbiAgICAgICAgW256U3VmZml4SWNvbl09XCJwcm9wc1snc3VmZml4SWNvbiddXCJcclxuICAgICAgICBbbnpBZGRPbkFmdGVySWNvbl09XCJwcm9wc1snYWRkT25BZnRlckljb24nXVwiXHJcbiAgICAgICAgW256QWRkT25CZWZvcmVJY29uXT1cInByb3BzWydhZGRPbkJlZm9yZUljb24nXVwiXHJcbiAgICAgICAgW256QWRkT25CZWZvcmVdPVwicHJvcHNbJ2FkZE9uQmVmb3JlJ11cIlxyXG4gICAgICAgIFtuekFkZE9uQWZ0ZXJdPVwicHJvcHNbJ2FkZE9uQWZ0ZXInXVwiXHJcbiAgICAgICAgW256UHJlZml4XT1cInByb3BzWydwcmVmaXgnXVwiXHJcbiAgICAgICAgW256U3VmZml4XT1cInByb3BzWydzdWZmaXgnXVwiXHJcbiAgICAgICAgW256Q29tcGFjdF09XCJwcm9wc1snY29tcGFjdCddISFcIlxyXG4gICAgICAgIFtuelNlYXJjaF09XCJwcm9wc1snc2VhcmNoJ10hIVwiXHJcbiAgICAgICAgW256U2l6ZV09XCJwcm9wc1snc2l6ZSddIVwiXHJcbiAgICAgICAgW256U3RhdHVzXT1cInByb3BzWydzdGF0dXMnXSFcIlxyXG4gICAgICA+XHJcbiAgICAgICAgPGlucHV0XHJcbiAgICAgICAgICBuei1pbnB1dFxyXG4gICAgICAgICAgdHlwZT1cInRleHRcIlxyXG4gICAgICAgICAgW2Zvcm1Db250cm9sXT1cImZvcm1Db250cm9sXCJcclxuICAgICAgICAgIFtmb3JtbHlBdHRyaWJ1dGVzXT1cImZpZWxkXCJcclxuICAgICAgICAgIFtuekJvcmRl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2UsXHJcbiAgICAgIGFsbG93Q2xlYXI6IGZhbHNlLFxyXG4gICAgICBhdXRvY29tcGxldGVPcHRpb25zOiB7XHJcbiAgICAgICAgYmFja2ZpbGw6IGZhbHNlLFxyXG4gICAgICAgIGRlZmF1bHRBY3RpdmVGaXJzdE9wdGlvbjogdHJ1ZSxcclxuICAgICAgICBjb21wYXJlV2l0aDogKG8xOiBOelNhZmVBbnksIG8yOiBOelNhZmVBbnkpID0+IG8xID09PSBvMlxyXG4gICAgICB9XHJcbiAgICB9XHJcbiAgfTtcclxuICBwYXNzd29yZFZpc2libGUgPSBmYWxzZTtcclxufVxyXG4iXX0=
1
+ import { Component, ChangeDetectionStrategy } from '@angular/core';
2
+ import { FieldType } from '@ngx-formly/core';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@angular/common";
5
+ import * as i2 from "@angular/forms";
6
+ import * as i3 from "ng-zorro-antd/input";
7
+ import * as i4 from "ng-zorro-antd/auto-complete";
8
+ import * as i5 from "ng-zorro-antd/icon";
9
+ import * as i6 from "@ngx-formly/core";
10
+ export class FormlyFieldInput extends FieldType {
11
+ constructor() {
12
+ super(...arguments);
13
+ this.defaultOptions = {
14
+ props: {
15
+ borderless: false,
16
+ compact: false,
17
+ search: false,
18
+ allowClear: false,
19
+ autocompleteOptions: {
20
+ backfill: false,
21
+ defaultActiveFirstOption: true,
22
+ compareWith: (o1, o2) => o1 === o2
23
+ }
24
+ }
25
+ };
26
+ this.passwordVisible = false;
27
+ }
28
+ }
29
+ FormlyFieldInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldInput, deps: null, target: i0.ɵɵFactoryTarget.Component });
30
+ FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: FormlyFieldInput, selector: "formly-field-input", usesInheritance: true, ngImport: i0, template: `
31
+ <ng-container [ngSwitch]="props.type">
32
+ <ng-container *ngSwitchCase="'password'">
33
+ <nz-input-group
34
+ [nzPrefixIcon]="props['prefixIcon']"
35
+ [nzSuffixIcon]="props['suffixIcon']"
36
+ [nzAddOnAfterIcon]="props['addOnAfterIcon']"
37
+ [nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
38
+ [nzAddOnBefore]="props['addOnBefore']"
39
+ [nzAddOnAfter]="props['addOnAfter']"
40
+ [nzPrefix]="props['prefix']"
41
+ [nzCompact]="props['compact']!!"
42
+ [nzSearch]="props['search']!!"
43
+ [nzSize]="props['size']!"
44
+ [nzStatus]="props['status']!"
45
+ [nzSuffix]="passwordEyeTpl"
46
+ >
47
+ <input
48
+ [type]="passwordVisible ? 'text' : 'password'"
49
+ nz-input
50
+ [formControl]="formControl"
51
+ [formlyAttributes]="field"
52
+ [nzBorderless]="props['borderless']!!"
53
+ (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
54
+ />
55
+ </nz-input-group>
56
+ </ng-container>
57
+
58
+ <nz-input-group
59
+ *ngSwitchCase="'autoComplete'"
60
+ [nzSize]="props['size']"
61
+ [nzPrefixIcon]="props['prefixIcon']"
62
+ [nzSuffixIcon]="props['suffixIcon']"
63
+ [nzAddOnAfterIcon]="props['addOnAfterIcon']"
64
+ [nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
65
+ [nzAddOnBefore]="props['addOnBefore']"
66
+ [nzAddOnAfter]="props['addOnAfter']"
67
+ [nzPrefix]="props['prefix']"
68
+ [nzSuffix]="props['allowClear']!! ? inputClearTpl : props['suffix']"
69
+ >
70
+ <input
71
+ nz-input
72
+ [nzBorderless]="props['borderless']"
73
+ [nzAutocomplete]="auto"
74
+ [formControl]="formControl"
75
+ [formlyAttributes]="field"
76
+ />
77
+ <nz-autocomplete
78
+ [nzBackfill]="props['autocompleteOptions']?.backfill"
79
+ [nzDefaultActiveFirstOption]="props['autocompleteOptions']?.defaultActiveFirstOption"
80
+ [nzWidth]="props['autocompleteOptions']?.width"
81
+ [nzOverlayClassName]="props['autocompleteOptions']?.overlayClassName"
82
+ [nzOverlayStyle]="props['autocompleteOptions']?.overlayStyle"
83
+ [compareWith]="props['autocompleteOptions']?.compareWith"
84
+ #auto
85
+ >
86
+ <nz-auto-option
87
+ *ngFor="let option of props['autocompleteOptions'].dataSource"
88
+ [nzLabel]="option.label"
89
+ [nzValue]="option.value"
90
+ >
91
+ {{ option.label }}
92
+ </nz-auto-option>
93
+ </nz-autocomplete>
94
+ </nz-input-group>
95
+
96
+ <nz-input-group
97
+ *ngSwitchCase="'group'"
98
+ [nzPrefixIcon]="props['prefixIcon']"
99
+ [nzSuffixIcon]="props['suffixIcon']"
100
+ [nzAddOnAfterIcon]="props['addOnAfterIcon']"
101
+ [nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
102
+ [nzAddOnBefore]="props['addOnBefore']"
103
+ [nzAddOnAfter]="props['addOnAfter']"
104
+ [nzPrefix]="props['prefix']"
105
+ [nzSuffix]="props['allowClear']!! ? inputClearTpl : props['suffix']"
106
+ [nzCompact]="props['compact']!!"
107
+ [nzSearch]="props['search']!!"
108
+ [nzSize]="props['size']!"
109
+ [nzStatus]="props['status']!"
110
+ >
111
+ <input
112
+ nz-input
113
+ type="text"
114
+ [ngClass]="props['className']!"
115
+ [formControl]="formControl"
116
+ [formlyAttributes]="field"
117
+ [nzBorderless]="!!props['borderless']!!"
118
+ (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
119
+ />
120
+ </nz-input-group>
121
+
122
+ <input
123
+ *ngSwitchDefault
124
+ nz-input
125
+ type="text"
126
+ [ngClass]="props['className']!"
127
+ [formControl]="formControl"
128
+ [formlyAttributes]="field"
129
+ [nzSize]="props['size']"
130
+ [nzStatus]="props['status']"
131
+ [nzBorderless]="props['borderless']!!"
132
+ (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
133
+ />
134
+ </ng-container>
135
+
136
+ <!-- 查看密码 -->
137
+ <ng-template #passwordEyeTpl>
138
+ <span
139
+ nz-icon
140
+ class="cursor-pointer"
141
+ [nzType]="passwordVisible ? 'eye-invisible' : 'eye'"
142
+ (click)="passwordVisible = !passwordVisible"
143
+ ></span>
144
+
145
+ <span
146
+ nz-icon
147
+ class="ant-input-clear-icon"
148
+ nzTheme="fill"
149
+ nzType="close-circle"
150
+ *ngIf="formControl.value && props['allowClear']!!"
151
+ (click)="formControl.reset()"
152
+ ></span>
153
+ </ng-template>
154
+ <!-- 清除数据 -->
155
+ <ng-template #inputClearTpl>
156
+ <span
157
+ nz-icon
158
+ class="ant-input-clear-icon"
159
+ nzTheme="fill"
160
+ nzType="close-circle"
161
+ *ngIf="formControl.value"
162
+ (click)="formControl.reset()"
163
+ ></span>
164
+ </ng-template>
165
+ `, 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 });
166
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldInput, decorators: [{
167
+ type: Component,
168
+ args: [{
169
+ selector: 'formly-field-input',
170
+ template: `
171
+ <ng-container [ngSwitch]="props.type">
172
+ <ng-container *ngSwitchCase="'password'">
173
+ <nz-input-group
174
+ [nzPrefixIcon]="props['prefixIcon']"
175
+ [nzSuffixIcon]="props['suffixIcon']"
176
+ [nzAddOnAfterIcon]="props['addOnAfterIcon']"
177
+ [nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
178
+ [nzAddOnBefore]="props['addOnBefore']"
179
+ [nzAddOnAfter]="props['addOnAfter']"
180
+ [nzPrefix]="props['prefix']"
181
+ [nzCompact]="props['compact']!!"
182
+ [nzSearch]="props['search']!!"
183
+ [nzSize]="props['size']!"
184
+ [nzStatus]="props['status']!"
185
+ [nzSuffix]="passwordEyeTpl"
186
+ >
187
+ <input
188
+ [type]="passwordVisible ? 'text' : 'password'"
189
+ nz-input
190
+ [formControl]="formControl"
191
+ [formlyAttributes]="field"
192
+ [nzBorderless]="props['borderless']!!"
193
+ (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
194
+ />
195
+ </nz-input-group>
196
+ </ng-container>
197
+
198
+ <nz-input-group
199
+ *ngSwitchCase="'autoComplete'"
200
+ [nzSize]="props['size']"
201
+ [nzPrefixIcon]="props['prefixIcon']"
202
+ [nzSuffixIcon]="props['suffixIcon']"
203
+ [nzAddOnAfterIcon]="props['addOnAfterIcon']"
204
+ [nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
205
+ [nzAddOnBefore]="props['addOnBefore']"
206
+ [nzAddOnAfter]="props['addOnAfter']"
207
+ [nzPrefix]="props['prefix']"
208
+ [nzSuffix]="props['allowClear']!! ? inputClearTpl : props['suffix']"
209
+ >
210
+ <input
211
+ nz-input
212
+ [nzBorderless]="props['borderless']"
213
+ [nzAutocomplete]="auto"
214
+ [formControl]="formControl"
215
+ [formlyAttributes]="field"
216
+ />
217
+ <nz-autocomplete
218
+ [nzBackfill]="props['autocompleteOptions']?.backfill"
219
+ [nzDefaultActiveFirstOption]="props['autocompleteOptions']?.defaultActiveFirstOption"
220
+ [nzWidth]="props['autocompleteOptions']?.width"
221
+ [nzOverlayClassName]="props['autocompleteOptions']?.overlayClassName"
222
+ [nzOverlayStyle]="props['autocompleteOptions']?.overlayStyle"
223
+ [compareWith]="props['autocompleteOptions']?.compareWith"
224
+ #auto
225
+ >
226
+ <nz-auto-option
227
+ *ngFor="let option of props['autocompleteOptions'].dataSource"
228
+ [nzLabel]="option.label"
229
+ [nzValue]="option.value"
230
+ >
231
+ {{ option.label }}
232
+ </nz-auto-option>
233
+ </nz-autocomplete>
234
+ </nz-input-group>
235
+
236
+ <nz-input-group
237
+ *ngSwitchCase="'group'"
238
+ [nzPrefixIcon]="props['prefixIcon']"
239
+ [nzSuffixIcon]="props['suffixIcon']"
240
+ [nzAddOnAfterIcon]="props['addOnAfterIcon']"
241
+ [nzAddOnBeforeIcon]="props['addOnBeforeIcon']"
242
+ [nzAddOnBefore]="props['addOnBefore']"
243
+ [nzAddOnAfter]="props['addOnAfter']"
244
+ [nzPrefix]="props['prefix']"
245
+ [nzSuffix]="props['allowClear']!! ? inputClearTpl : props['suffix']"
246
+ [nzCompact]="props['compact']!!"
247
+ [nzSearch]="props['search']!!"
248
+ [nzSize]="props['size']!"
249
+ [nzStatus]="props['status']!"
250
+ >
251
+ <input
252
+ nz-input
253
+ type="text"
254
+ [ngClass]="props['className']!"
255
+ [formControl]="formControl"
256
+ [formlyAttributes]="field"
257
+ [nzBorderless]="!!props['borderless']!!"
258
+ (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
259
+ />
260
+ </nz-input-group>
261
+
262
+ <input
263
+ *ngSwitchDefault
264
+ nz-input
265
+ type="text"
266
+ [ngClass]="props['className']!"
267
+ [formControl]="formControl"
268
+ [formlyAttributes]="field"
269
+ [nzSize]="props['size']"
270
+ [nzStatus]="props['status']"
271
+ [nzBorderless]="props['borderless']!!"
272
+ (ngModelChange)="props['modelChange'] && props['modelChange'](field, $event)"
273
+ />
274
+ </ng-container>
275
+
276
+ <!-- 查看密码 -->
277
+ <ng-template #passwordEyeTpl>
278
+ <span
279
+ nz-icon
280
+ class="cursor-pointer"
281
+ [nzType]="passwordVisible ? 'eye-invisible' : 'eye'"
282
+ (click)="passwordVisible = !passwordVisible"
283
+ ></span>
284
+
285
+ <span
286
+ nz-icon
287
+ class="ant-input-clear-icon"
288
+ nzTheme="fill"
289
+ nzType="close-circle"
290
+ *ngIf="formControl.value && props['allowClear']!!"
291
+ (click)="formControl.reset()"
292
+ ></span>
293
+ </ng-template>
294
+ <!-- 清除数据 -->
295
+ <ng-template #inputClearTpl>
296
+ <span
297
+ nz-icon
298
+ class="ant-input-clear-icon"
299
+ nzTheme="fill"
300
+ nzType="close-circle"
301
+ *ngIf="formControl.value"
302
+ (click)="formControl.reset()"
303
+ ></span>
304
+ </ng-template>
305
+ `,
306
+ changeDetection: ChangeDetectionStrategy.OnPush
307
+ }]
308
+ }] });
309
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvaW5wdXQvc3JjL2lucHV0LnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSx1QkFBdUIsRUFBUSxNQUFNLGVBQWUsQ0FBQztBQUN6RSxPQUFPLEVBQUUsU0FBUyxFQUFzQyxNQUFNLGtCQUFrQixDQUFDOzs7Ozs7OztBQXFKakYsTUFBTSxPQUFPLGdCQUFpQixTQUFRLFNBQTBCO0lBNUloRTs7UUE2SVcsbUJBQWMsR0FBRztZQUN4QixLQUFLLEVBQUU7Z0JBQ0wsVUFBVSxFQUFFLEtBQUs7Z0JBQ2pCLE9BQU8sRUFBRSxLQUFLO2dCQUNkLE1BQU0sRUFBRSxLQUFLO2dCQUNiLFVBQVUsRUFBRSxLQUFLO2dCQUNqQixtQkFBbUIsRUFBRTtvQkFDbkIsUUFBUSxFQUFFLEtBQUs7b0JBQ2Ysd0JBQXdCLEVBQUUsSUFBSTtvQkFDOUIsV0FBVyxFQUFFLENBQUMsRUFBYSxFQUFFLEVBQWEsRUFBRSxF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9tICduZy16b3Jyby1hbnRkL2NvcmUvdHlwZXMnO1xuXG5pbXBvcnQgdHlwZSB7IElucHV0UHJvcHMgfSBmcm9tICcuL2lucHV0LnByb3BzJztcblxuZXhwb3J0IGludGVyZmFjZSBGb3JtbHlJbnB1dEZpZWxkQ29uZmlnIGV4dGVuZHMgRm9ybWx5RmllbGRDb25maWc8SW5wdXRQcm9wcz4ge1xuICB0eXBlOiAnaW5wdXQnIHwgJ3N0cmluZycgfCAncGFzc3dvcmQnIHwgVHlwZTxGb3JtbHlGaWVsZElucHV0Pjtcbn1cblxuQENvbXBvbmVudCh7XG4gIHNlbGVjdG9yOiAnZm9ybWx5LWZpZWxkLWlucHV0JyxcbiAgdGVtcGxhdGU6IGBcbiAgICA8bmctY29udGFpbmVyIFtuZ1N3aXRjaF09XCJwcm9wcy50eXBlXCI+XG4gICAgICA8bmctY29udGFpbmVyICpuZ1N3aXRjaENhc2U9XCIncGFzc3dvcmQnXCI+XG4gICAgICAgIDxuei1pbnB1dC1ncm91cFxuICAgICAgICAgIFtuelByZWZpeEljb25dPVwicHJvcHNbJ3ByZWZpeEljb24nXVwiXG4gICAgICAgICAgW256U3VmZml4SWNvbl09XCJwcm9wc1snc3VmZml4SWNvbiddXCJcbiAgICAgICAgICBbbnpBZGRPbkFmdGVySWNvbl09XCJwcm9wc1snYWRkT25BZnRlckljb24nXVwiXG4gICAgICAgICAgW256QWRkT25CZWZvcmVJY29uXT1cInByb3BzWydhZGRPbkJlZm9yZUljb24nXVwiXG4gICAgICAgICAgW256QWRkT25CZWZvcmVdPVwicHJvcHNbJ2FkZE9uQmVmb3JlJ11cIlxuICAgICAgICAgIFtuekFkZE9uQWZ0ZXJdPVwicHJvcHNbJ2FkZE9uQWZ0ZXInXVwiXG4gICAgICAgICAgW256UHJlZml4XT1cInByb3BzWydwcmVmaXgnXVwiXG4gICAgICAgICAgW256Q29tcGFjdF09XCJwcm9wc1snY29tcGFjdCddISFcIlxuICAgICAgICAgIFtuelNlYXJjaF09XCJwcm9wc1snc2VhcmNoJ10hIVwiXG4gICAgICAgICAgW256U2l6ZV09XCJwcm9wc1snc2l6ZSddIVwiXG4gICAgICAgICAgW256U3RhdHVzXT1cInByb3BzWydzdGF0dXMnXSFcIlxuICAgICAgICAgIFtuelN1ZmZpeF09XCJwYXNzd29yZEV5ZVRwbFwiXG4gICAgICAgID5cbiAgICAgICAgICA8aW5wdXRcbiAgICAgICAgICAgIFt0eXBlXT1cInBhc3N3b3JkVmlzaWJsZSA/ICd0ZXh0JyA6ICdwYXNzd29yZCdcIlxuICAgICAgICAgICAgbnotaW5wdXRcbiAgICAgICAgICAgIFtmb3JtQ29udHJvbF09XCJmb3JtQ29udHJvbFwiXG4gICAgICAgICAgICBbZm9ybWx5QXR0cmlidXRlc109XCJmaWVsZFwiXG4gICAgICAgICAgICBbbnpCb3JkZXJsZXNzXT1cInByb3BzWydib3JkZXJsZXNzJ10hIVwiXG4gICAgICAgICAgICAobmdNb2RlbENoYW5nZSk9XCJwcm9wc1snbW9kZWxDaGFuZ2UnXSAmJiBwcm9wc1snbW9kZWxDaGFuZ2UnXShmaWVsZCwgJGV2ZW50KVwiXG4gICAgICAgICAgLz5cbiAgICAgICAgPC9uei1pbnB1dC1ncm91cD5cbiAgICAgIDwvbmctY29udGFpbmVyPlxuXG4gICAgICA8bnotaW5wdXQtZ3JvdXBcbiAgICAgICAgKm5nU3dpdGNoQ2FzZT1cIidhdXRvQ29tcGxldGUnXCJcbiAgICAgICAgW256U2l6ZV09XCJwcm9wc1snc2l6ZSddXCJcbiAgICAgICAgW256UHJlZml4SWNvbl09XCJwcm9wc1sncHJlZml4SWNvbiddXCJcbiAgICAgICAgW256U3VmZml4SWNvbl09XCJwcm9wc1snc3VmZml4SWNvbiddXCJcbiAgICAgICAgW256QWRkT25BZnRlckljb25dPVwicHJvcHNbJ2FkZE9uQWZ0ZXJJY29uJ11cIlxuICAgICAgICBbbnpBZGRPbkJlZm9yZUljb25dPVwicHJvcHNbJ2FkZE9uQmVmb3JlSWNvbiddXCJcbiAgICAgICAgW256QWRkT25CZWZvcmVdPVwicHJvcHNbJ2FkZE9uQmVmb3JlJ11cIlxuICAgICAgICBbbnpBZGRPbkFmdGVyXT1cInByb3BzWydhZGRPbkFmdGVyJ11cIlxuICAgICAgICBbbnpQcmVmaXhdPVwicHJvcHNbJ3ByZWZpeCddXCJcbiAgICAgICAgW256U3VmZml4XT1cInByb3BzWydhbGxvd0NsZWFyJ10hISA/IGlucHV0Q2xlYXJUcGwgOiBwcm9wc1snc3VmZml4J11cIlxuICAgICAgPlxuICAgICAgICA8aW5wdXRcbiAgICAgICAgICBuei1pbnB1dFxuICAgICAgICAgIFtuekJvcmRlcmxlc3NdPVwicHJvcHNbJ2JvcmRlcmxlc3MnXVwiXG4gICAgICAgICAgW256QXV0b2NvbXBsZXRlXT1cImF1dG9cIlxuICAgICAgICAgIFtmb3JtQ29udHJvbF09XCJmb3JtQ29udHJvbFwiXG4gICAgICAgICAgW2Zvcm1seUF0dHJpYnV0ZXNdPVwiZmllbGRcIlxuICAgICAgICAvPlxuICAgICAgICA8bnotYXV0b2NvbXBsZXRlXG4gICAgICAgICAgW256QmFja2ZpbGxdPVwicHJvcHNbJ2F1dG9jb21wbGV0ZU9wdGlvbnMnXT8uYmFja2ZpbGxcIlxuICAgICAgICAgIFtuekRlZmF1bHRBY3RpdmVGaXJzdE9wdGlvbl09XCJwcm9wc1snYXV0b2NvbXBsZXRlT3B0aW9ucyddPy5kZWZhdWx0QWN0aXZlRmlyc3RPcHRpb25cIlxuICAgICAgICAgIFtueldpZHRoXT1cInByb3BzWydhdXRvY29tcGxldGVPcHRpb25zJ10/LndpZHRoXCJcbiAgICAgICAgICBbbnpPdmVybGF5Q2xhc3NOYW1lXT1cInByb3BzWydhdXRvY29tcGxldGVPcHRpb25zJ10/Lm92ZXJsYXlDbGFzc05hbWVcIlxuICAgICAgICAgIFtuek92ZXJsYXlTdHlsZV09XCJwcm9wc1snYXV0b2NvbXBsZXRlT3B0aW9ucyddPy5vdmVybGF5U3R5bGVcIlxuICAgICAgICAgIFtjb21wYXJlV2l0aF09XCJwcm9wc1snYXV0b2NvbXBsZXRlT3B0aW9ucyddPy5jb21wYXJlV2l0aFwiXG4gICAgICAgICAgI2F1dG9cbiAgICAgICAgPlxuICAgICAgICAgIDxuei1hdXRvLW9wdGlvblxuICAgICAgICAgICAgKm5nRm9yPVwibGV0IG9wdGlvbiBvZiBwcm9wc1snYXV0b2NvbXBsZXRlT3B0aW9ucyddLmRhdGFTb3VyY2VcIlxuICAgICAgICAgICAgW256TGFiZWxdPVwib3B0aW9uLmxhYmVsXCJcbiAgICAgICAgICAgIFtuelZhbHVlXT1cIm9wdGlvbi52YWx1ZVwiXG4gICAgICAgICAgPlxuICAgICAgICAgICAge3sgb3B0aW9uLmxhYmVsIH19XG4gICAgICAgICAgPC9uei1hdXRvLW9wdGlvbj5cbiAgICAgICAgPC9uei1hdXRvY29tcGxldGU+XG4gICAgICA8L256LWlucHV0LWdyb3VwPlxuXG4gICAgICA8bnotaW5wdXQtZ3JvdXBcbiAgICAgICAgKm5nU3dpdGNoQ2FzZT1cIidncm91cCdcIlxuICAgICAgICBbbnpQcmVmaXhJY29uXT1cInByb3BzWydwcmVmaXhJY29uJ11cIlxuICAgICAgICBbbnpTdWZmaXhJY29uXT1cInByb3BzWydzdWZmaXhJY29uJ11cIlxuICAgICAgICBbbnpBZGRPbkFmdGVySWNvbl09XCJwcm9wc1snYWRkT25BZnRlckljb24nXVwiXG4gICAgICAgIFtuekFkZE9uQmVmb3JlSWNvbl09XCJwcm9wc1snYWRkT25CZWZvcmVJY29uJ11cIlxuICAgICAgICBbbnpBZGRPbkJlZm9yZV09XCJwcm9wc1snYWRkT25CZWZvcmUnXVwiXG4gICAgICAgIFtuekFkZE9uQWZ0ZXJdPVwicHJvcHNbJ2FkZE9uQWZ0ZXInXVwiXG4gICAgICAgIFtuelByZWZpeF09XCJwcm9wc1sncHJlZml4J11cIlxuICAgICAgICBbbnpTdWZmaXhdPVwicHJvcHNbJ2FsbG93Q2xlYXInXSEhID8gaW5wdXRDbGVhclRwbCA6IHByb3BzWydzdWZmaXgnXVwiXG4gICAgICAgIFtuekNvbXBhY3RdPVwicHJvcHNbJ2NvbXBhY3QnXSEhXCJcbiAgICAgICAgW256U2VhcmNoXT1cInByb3BzWydzZWFyY2gnXSEhXCJcbiAgICAgICAgW256U2l6ZV09XCJwcm9wc1snc2l6ZSddIVwiXG4gICAgICAgIFtuelN0YXR1c109XCJwcm9wc1snc3RhdHVzJ10hXCJcbiAgICAgID5cbiAgICAgICAgPGlucHV0XG4gICAgICAgICAgbnotaW5wdXRcbiAgICAgICAgICB0eXBlPVwidGV4dFwiXG4gICAgICAgICAgW25nQ2xhc3NdPVwicHJvcHNbJ2NsYXNzTmFtZSddIVwiXG4gICAgICAgICAgW2Zvcm1Db250cm9sXT1cImZvcm1Db250cm9sXCJcbiAgICAgICAgICBbZm9ybWx5QXR0cmlidXRlc109XCJmaWVsZFwiXG4gICAgICAgICAgW256Qm9yZGVybGVzc109XCIhIXByb3BzWydib3JkZXJsZXNzJ10hIVwiXG4gICAgICAgICAgKG5nTW9kZWxDaGFuZ2UpPVwicHJvcHNbJ21vZGVsQ2hhbmdlJ10gJiYgcHJvcHNbJ21vZGVsQ2hhbmdlJ10oZmllbGQsICRldmVudClcIlxuICAgICAgICAvPlxuICAgICAgPC9uei1pbnB1dC1ncm91cD5cblxuICAgICAgPGlucHV0XG4gICAgICAgICpuZ1N3aXRjaERlZmF1bHRcbiAgICAgICAgbnotaW5wdXRcbiAgICAgICAgdHlwZT1cInRleHRcIlxuICAgICAgICBbbmdDbGFzc109XCJwcm9wc1snY2xhc3NOYW1lJ10hXCJcbiAgICAgICAgW2Zvcm1Db250cm9sXT1cImZvcm1Db250cm9sXCJcbiAgICAgICAgW2Zvcm1seUF0dHJpYnV0ZXNdPVwiZmllbGRcIlxuICAgICAgICBbbnpTaXplXT1cInByb3BzWydzaXplJ11cIlxuICAgICA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