ngx-formly-zorro-antd 14.0.0 → 14.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (293) hide show
  1. package/README.md +1 -1
  2. package/autocomplete/autocomplete.props.d.ts +38 -38
  3. package/autocomplete/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/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/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/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/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/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 -61
  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 -43
  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 -51
  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 -59
  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 -51
  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 -45
  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 -41
  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 -89
  62. package/esm2020/input/input.props.mjs +2 -2
  63. package/esm2020/input/input.type.mjs +309 -309
  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 -47
  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 -59
  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 -97
  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 -59
  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 -51
  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 -57
  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 -51
  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 -51
  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 -41
  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 -51
  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 -51
  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 -52
  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 -51
  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 -60
  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 +152 -152
  129. package/fesm2015/ngx-formly-zorro-antd-button.mjs.map +1 -1
  130. package/fesm2015/ngx-formly-zorro-antd-card.mjs +77 -77
  131. package/fesm2015/ngx-formly-zorro-antd-card.mjs.map +1 -1
  132. package/fesm2015/ngx-formly-zorro-antd-cascader.mjs +145 -145
  133. package/fesm2015/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  134. package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs +110 -110
  135. package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  136. package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs +224 -222
  137. package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  138. package/fesm2015/ngx-formly-zorro-antd-form-field.mjs +155 -155
  139. package/fesm2015/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  140. package/fesm2015/ngx-formly-zorro-antd-grid.mjs +97 -97
  141. package/fesm2015/ngx-formly-zorro-antd-grid.mjs.map +1 -1
  142. package/fesm2015/ngx-formly-zorro-antd-input-group.mjs +102 -102
  143. package/fesm2015/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  144. package/fesm2015/ngx-formly-zorro-antd-input-number.mjs +169 -169
  145. package/fesm2015/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  146. package/fesm2015/ngx-formly-zorro-antd-input.mjs +376 -376
  147. package/fesm2015/ngx-formly-zorro-antd-input.mjs.map +1 -1
  148. package/fesm2015/ngx-formly-zorro-antd-radio.mjs +134 -134
  149. package/fesm2015/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  150. package/fesm2015/ngx-formly-zorro-antd-rate.mjs +97 -97
  151. package/fesm2015/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  152. package/fesm2015/ngx-formly-zorro-antd-select.mjs +199 -199
  153. package/fesm2015/ngx-formly-zorro-antd-select.mjs.map +1 -1
  154. package/fesm2015/ngx-formly-zorro-antd-slider.mjs +101 -101
  155. package/fesm2015/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  156. package/fesm2015/ngx-formly-zorro-antd-switch.mjs +87 -87
  157. package/fesm2015/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  158. package/fesm2015/ngx-formly-zorro-antd-tabs.mjs +137 -137
  159. package/fesm2015/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  160. package/fesm2015/ngx-formly-zorro-antd-textarea.mjs +121 -121
  161. package/fesm2015/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  162. package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs +125 -125
  163. package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  164. package/fesm2015/ngx-formly-zorro-antd-transfer.mjs +241 -241
  165. package/fesm2015/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  166. package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs +131 -131
  167. package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  168. package/fesm2015/ngx-formly-zorro-antd-upload.mjs +321 -321
  169. package/fesm2015/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  170. package/fesm2015/ngx-formly-zorro-antd.mjs +74 -74
  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 +152 -152
  174. package/fesm2020/ngx-formly-zorro-antd-button.mjs.map +1 -1
  175. package/fesm2020/ngx-formly-zorro-antd-card.mjs +77 -77
  176. package/fesm2020/ngx-formly-zorro-antd-card.mjs.map +1 -1
  177. package/fesm2020/ngx-formly-zorro-antd-cascader.mjs +145 -145
  178. package/fesm2020/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
  179. package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs +110 -110
  180. package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
  181. package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs +224 -222
  182. package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  183. package/fesm2020/ngx-formly-zorro-antd-form-field.mjs +155 -155
  184. package/fesm2020/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
  185. package/fesm2020/ngx-formly-zorro-antd-grid.mjs +97 -97
  186. package/fesm2020/ngx-formly-zorro-antd-grid.mjs.map +1 -1
  187. package/fesm2020/ngx-formly-zorro-antd-input-group.mjs +102 -102
  188. package/fesm2020/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
  189. package/fesm2020/ngx-formly-zorro-antd-input-number.mjs +169 -169
  190. package/fesm2020/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
  191. package/fesm2020/ngx-formly-zorro-antd-input.mjs +376 -376
  192. package/fesm2020/ngx-formly-zorro-antd-input.mjs.map +1 -1
  193. package/fesm2020/ngx-formly-zorro-antd-radio.mjs +134 -134
  194. package/fesm2020/ngx-formly-zorro-antd-radio.mjs.map +1 -1
  195. package/fesm2020/ngx-formly-zorro-antd-rate.mjs +97 -97
  196. package/fesm2020/ngx-formly-zorro-antd-rate.mjs.map +1 -1
  197. package/fesm2020/ngx-formly-zorro-antd-select.mjs +199 -199
  198. package/fesm2020/ngx-formly-zorro-antd-select.mjs.map +1 -1
  199. package/fesm2020/ngx-formly-zorro-antd-slider.mjs +101 -101
  200. package/fesm2020/ngx-formly-zorro-antd-slider.mjs.map +1 -1
  201. package/fesm2020/ngx-formly-zorro-antd-switch.mjs +87 -87
  202. package/fesm2020/ngx-formly-zorro-antd-switch.mjs.map +1 -1
  203. package/fesm2020/ngx-formly-zorro-antd-tabs.mjs +137 -137
  204. package/fesm2020/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
  205. package/fesm2020/ngx-formly-zorro-antd-textarea.mjs +121 -121
  206. package/fesm2020/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
  207. package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs +125 -125
  208. package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  209. package/fesm2020/ngx-formly-zorro-antd-transfer.mjs +241 -241
  210. package/fesm2020/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
  211. package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs +131 -131
  212. package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
  213. package/fesm2020/ngx-formly-zorro-antd-upload.mjs +320 -320
  214. package/fesm2020/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  215. package/fesm2020/ngx-formly-zorro-antd.mjs +74 -74
  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/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/index.d.ts +5 -5
  226. package/grid/public_api.d.ts +3 -3
  227. package/index.d.ts +1 -1
  228. package/input/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/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/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 +5 -1
  246. package/radio/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/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/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/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/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/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/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/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/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/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/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
@@ -1,309 +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 "@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.change && props.change(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.change && props.change(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.change && props.change(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.change && props.change(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.change && props.change(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.change && props.change(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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvaW5wdXQvc3JjL2lucHV0LnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSx1QkFBdUIsRUFBUSxNQUFNLGVBQWUsQ0FBQztBQUN6RSxPQUFPLEVBQUUsU0FBUyxFQUFzQyxNQUFNLGtCQUFrQixDQUFDOzs7Ozs7OztBQXFKakYsTUFBTSxPQUFPLGdCQUFpQixTQUFRLFNBQTBCO0lBNUloRTs7UUE2SVcsbUJBQWMsR0FBRztZQUN4QixLQUFLLEVBQUU7Z0JBQ0wsVUFBVSxFQUFFLEtBQUs7Z0JBQ2pCLE9BQU8sRUFBRSxLQUFLO2dCQUNkLE1BQU0sRUFBRSxLQUFLO2dCQUNiLFVBQVUsRUFBRSxLQUFLO2dCQUNqQixtQkFBbUIsRUFBRTtvQkFDbkIsUUFBUS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ljb25dPVwicHJvcHNbJ3ByZWZpeEljb24nXVwiXHJcbiAgICAgICAgW256U3VmZml4SWNvbl09XCJwcm9wc1snc3VmZml4SWNvbiddXCJcclxuICAgICAgICBbbnpBZGRPbkFmdGVySWNvbl09XCJwcm9wc1snYWRkT25BZnRlckljb24nXVwiXHJcbiAgICAgICAgW256QWRkT25CZWZvcmVJY29uXT1cInByb3BzWydhZGRPbkJlZm9yZUljb24nXVwiXHJcbiAgICAgICAgW256QWRkT25CZWZvcmVdPVwicHJvcHNbJ2FkZE9uQmVmb3JlJ11cIlxyXG4gICAgICAgIFtuekFkZE9uQWZ0ZXJdPVwicHJvcHNbJ2FkZE9uQWZ0ZXInXVwiXHJcbiAgICAgICAgW256UHJlZml4XT1cInByb3BzWydwcmVmaXgnXVwiXHJcbiAgICAgICAgW256U3VmZml4XT1cInByb3BzWydhbGxvd0NsZWFyJ10hISA/IGlucHV0Q2xlYXJUcGwgOiBwcm9wc1snc3VmZml4J11cIlxyXG4gICAgICA+XHJcbiAgICAgICAgPGlucHV0XHJcbiAgICAgICAgICBuei1pbnB1dFxyXG4gICAgICAgICAgW256Qm9yZGVybGVzc109XCJwcm9wc1snYm9yZGVybGVzcyddXCJcclxuICAgICAgICAgIFtuekF1dG9jb21wbGV0ZV09XCJhdXRvXCJcclxuICAgICAgICAgIFtmb3JtQ29udHJvbF09XCJmb3JtQ29udHJvbFwiXHJcbiAgICAgICAgICBbZm9ybWx5QXR0cmlidXRlc109XCJmaWVsZFwiXHJcbiAgICAgICAgLz5cclxuICAgICAgICA8bnotYXV0b2NvbXBsZXRlXHJcbiAgICAgICAgICBbbnpCYWNrZmlsbF09XCJwcm9wc1snYXV0b2NvbXBsZXRlT3B0aW9ucyddPy5iYWNrZmlsbFwiXHJcbiAgICAgICAgICBbbnpEZWZhdWx0QWN0aXZlRmlyc3RPcHRpb25dPVwicHJvcHNbJ2F1dG9jb21wbGV0ZU9wdGlvbnMnXT8uZGVmYXVsdEFjdGl2ZUZpcnN0T3B0aW9uXCJcclxuICAgICAgICAgIFtueldpZHRoXT1cInByb3BzWydhdXRvY29tcGxldGVPcHRpb25zJ10/LndpZHRoXCJcclxuICAgICAgICAgIFtuek92ZXJsYXlDbGFzc05hbWVdPVwicHJvcHNbJ2F1dG9jb21wbGV0ZU9wdGlvbnMnXT8ub3ZlcmxheUNsYXNzTmFtZVwiXHJcbiAgICAgICAgICBbbnpPdmVybGF5U3R5bGVdPVwicHJvcHNbJ2F1dG9jb21wbGV0ZU9wdGlvbnMnXT8ub3ZlcmxheVN0eWxlXCJcclxuICAgICAgICAgIFtjb21wYXJlV2l0aF09XCJwcm9wc1snYXV0b2NvbXBsZXRlT3B0aW9ucyddPy5jb21wYXJlV2l0aFwiXHJcbiAgICAgICAgICAjYXV0b1xyXG4gICAgICAgID5cclxuICAgICAgICAgIDxuei1hdXRvLW9wdGlvblxyXG4gICAgICAgICAgICAqbmdGb3I9XCJsZXQgb3B0aW9uIG9mIHByb3BzWydhdXRvY29tcGxldGVPcHRpb25zJ10uZGF0YVNvdXJjZVwiXHJcbiAgICAgICAgICAgIFtuekxhYmVsXT1cIm9wdGlvbi5sYWJlbFwiXHJcbiAgICAgICAgICAgIFtuelZhbHVlXT1cIm9wdGlvbi52YWx1ZVwiXHJcbiAgICAgICAgICA+XHJcbiAgICAgICAgICAgIHt7IG9wdGlvbi5sYWJlbCB9fVxyXG4gICAgICAgICAgPC9uei1hdXRvLW9wdGlvbj5cclxuICAgICAgICA8L256LWF1dG9jb21wbGV0ZT5cclxuICAgICAgPC9uei1pbnB1dC1ncm91cD5cclxuXHJcbiAgICAgIDxuei1pbnB1dC1ncm91cFxyXG4gICAgICAgICpuZ1N3aXRjaENhc2U9XCInZ3JvdXAnXCJcclxuICAgICAgICBbbnpQcmVmaXhJY29uXT1cInByb3BzWydwcmVmaXhJY29uJ11cIlxyXG4gICAgICAgIFtuelN1ZmZpeEljb25dPVwicHJvcHNbJ3N1ZmZpeEljb24nXVwiXHJcbiAgICAgICAgW256QWRkT25BZnRlckljb25dPVwicHJvcHNbJ2FkZE9uQWZ0ZXJJY29uJ11cIlxyXG4gICAgICAgIFtuekFkZE9uQmVmb3JlSWNvbl09XCJwcm9wc1snYWRkT25CZWZvcmVJY29uJ11cIlxyXG4gICAgICAgIFtuekFkZE9uQmVmb3JlXT1cInByb3BzWydhZGRPbkJlZm9yZSddXCJcclxuICAgICAgICBbbnpBZGRPbkFmdGVyXT1cInByb3BzWydhZGRPbkFmdGVyJ11cIlxyXG4gICAgICAgIFtuelByZWZpeF09XCJwcm9wc1sncHJlZml4J11cIlxyXG4gICAgICAgIFtuelN1ZmZpeF09XCJwcm9wc1snYWxsb3dDbGVhciddISEgPyBpbnB1dENsZWFyVHBsIDogcHJvcHNbJ3N1ZmZpeCddXCJcclxuICAgICAgICBbbnpDb21wYWN0XT1cInByb3BzWydjb21wYWN0J10hIVwiXHJcbiAgICAgICAgW256U2VhcmNoXT1cInByb3BzWydzZWFyY2gnXSEhXCJcclxuICAgICAgICBbbnpTaXplXT1cInByb3BzWydzaXplJ10hXCJcclxuICAgICAgICBbbnpTdGF0dXNdPVwicHJvcHNbJ3N0YXR1cyddIVwiXHJcbiAgICAgID5cclxuICAgICAgICA8aW5wdXRcclxuICAgICAgICAgIG56LWlucHV0XHJcbiAgICAgICAgICB0eXBlPVwidGV4dFwiXHJcbiAgICAgICAgICBbbmdDbGFzc109XCJwcm9wc1snY2xhc3NOYW1lJ10hXCJcclxuICAgICAgICAgIFtmb3JtQ29udHJvbF09XCJmb3JtQ29udHJvbFwiXHJcbiAgICAgICAgICBbZm9ybWx5QXR0cmlidXRlc109XCJmaWVsZFwiXHJcbiAgICAgICAgICBbbnpCb3JkZXJsZXNzXT1cIiEhcHJvcHNbJ2JvcmRlcmxlc3MnXSEhXCJcclxuICAgICAgICAgIChuZ01vZGVsQ2hhbmdlKT1cInByb3BzLmNoYW5nZSAmJiBwcm9wcy5jaGFuZ2UoZmllbGQsICRldmVudClcIlxyXG4gICAgICAgIC8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sc2UsXHJcbiAgICAgIGF1dG9jb21wbGV0ZU9wdGlvbnM6IHtcclxuICAgICAgICBiYWNrZmlsbDogZmFsc2UsXHJcbiAgICAgICAgZGVmYXVsdEFjdGl2ZUZpcnN0T3B0aW9uOiB0cnVlLFxyXG4gICAgICAgIGNvbXBhcmVXaXRoOiAobzE6IE56U2FmZUFueSwgbzI6IE56U2FmZUFueSkgPT4gbzEgPT09IG8yXHJcbiAgICAgIH1cclxuICAgIH1cclxuICB9O1xyXG4gIHBhc3N3b3JkVmlzaWJsZSA9IGZhbHNlO1xyXG59XHJcbiJdfQ==
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvaW5wdXQvc3JjL2lucHV0LnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSx1QkFBdUIsRUFBUSxNQUFNLGVBQWUsQ0FBQztBQUN6RSxPQUFPLEVBQUUsU0FBUyxFQUFzQyxNQUFNLGtCQUFrQixDQUFDOzs7Ozs7OztBQXFKakYsTUFBTSxPQUFPLGdCQUFpQixTQUFRLFNBQTBCO0lBNUloRTs7UUE2SVcsbUJBQWMsR0FBRztZQUN4QixLQUFLLEVBQUU7Z0JBQ0wsVUFBVSxFQUFFLEtBQUs7Z0JBQ2pCLE9BQU8sRUFBRSxLQUFLO2dCQUNkLE1BQU0sRUFBRSxLQUFLO2dCQUNiLFVBQVUsRUFBRSxLQUFLO2dCQUNqQixtQkFBbUIsRUFBRTtvQkFDbkIsUUFBUSxFQUFFLEtBQUs7b0JBQ2Ysd0JBQXdCLEVBQUUsSUFBSTtvQkFDOUIsV0FBVyxFQUFFLENBQUMsRUFBYSxFQUFFLEVBQWEsRUFBRSxFQUFFLENBQUMsRUFBRSxLQUFLL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mUvdHlwZXMnO1xuXG5pbXBvcnQgdHlwZSB7IElucHV0UHJvcHMgfSBmcm9tICcuL2lucHV0LnByb3BzJztcblxuZXhwb3J0IGludGVyZmFjZSBGb3JtbHlJbnB1dEZpZWxkQ29uZmlnIGV4dGVuZHMgRm9ybWx5RmllbGRDb25maWc8SW5wdXRQcm9wcz4ge1xuICB0eXBlOiAnaW5wdXQnIHwgJ3N0cmluZycgfCAncGFzc3dvcmQnIHwgVHlwZTxGb3JtbHlGaWVsZElucHV0Pjtcbn1cblxuQENvbXBvbmVudCh7XG4gIHNlbGVjdG9yOiAnZm9ybWx5LWZpZWxkLWlucHV0JyxcbiAgdGVtcGxhdGU6IGBcbiAgICA8bmctY29udGFpbmVyIFtuZ1N3aXRjaF09XCJwcm9wcy50eXBlXCI+XG4gICAgICA8bmctY29udGFpbmVyICpuZ1N3aXRjaENhc2U9XCIncGFzc3dvcmQnXCI+XG4gICAgICAgIDxuei1pbnB1dC1ncm91cFxuICAgICAgICAgIFtuelByZWZpeEljb25dPVwicHJvcHNbJ3ByZWZpeEljb24nXVwiXG4gICAgICAgICAgW256U3VmZml4SWNvbl09XCJwcm9wc1snc3VmZml4SWNvbiddXCJcbiAgICAgICAgICBbbnpBZGRPbkFmdGVySWNvbl09XCJwcm9wc1snYWRkT25BZnRlckljb24nXVwiXG4gICAgICAgICAgW256QWRkT25CZWZvcmVJY29uXT1cInByb3BzWydhZGRPbkJlZm9yZUljb24nXVwiXG4gICAgICAgICAgW256QWRkT25CZWZvcmVdPVwicHJvcHNbJ2FkZE9uQmVmb3JlJ11cIlxuICAgICAgICAgIFtuekFkZE9uQWZ0ZXJdPVwicHJvcHNbJ2FkZE9uQWZ0ZXInXVwiXG4gICAgICAgICAgW256UHJlZml4XT1cInByb3BzWydwcmVmaXgnXVwiXG4gICAgICAgICAgW256Q29tcGFjdF09XCJwcm9wc1snY29tcGFjdCddISFcIlxuICAgICAgICAgIFtuelNlYXJjaF09XCJwcm9wc1snc2VhcmNoJ10hIVwiXG4gICAgICAgICAgW256U2l6ZV09XCJwcm9wc1snc2l6ZSddIVwiXG4gICAgICAgICAgW256U3RhdHVzXT1cInByb3BzWydzdGF0dXMnXSFcIlxuICAgICAgICAgIFtuelN1ZmZpeF09XCJwYXNzd29yZEV5ZVRwbFwiXG4gICAgICAgID5cbiAgICAgICAgICA8aW5wdXRcbiAgICAgICAgICAgIFt0eXBlXT1cInBhc3N3b3JkVmlzaWJsZSA/ICd0ZXh0JyA6ICdwYXNzd29yZCdcIlxuICAgICAgICAgICAgbnotaW5wdXRcbiAgICAgICAgICAgIFtmb3JtQ29udHJvbF09XCJmb3JtQ29udHJvbFwiXG4gICAgICAgICAgICBbZm9ybWx5QXR0cmlidXRlc109XCJmaWVsZFwiXG4gICAgICAgICAgICBbbnpCb3JkZXJsZXNzXT1cInByb3BzWydib3JkZXJsZXNzJ10hIVwiXG4gICAgICAgICAgICAobmdNb2RlbENoYW5nZSk9XCJwcm9wc1snbW9kZWxDaGFuZ2UnXSAmJiBwcm9wc1snbW9kZWxDaGFuZ2UnXShmaWVsZCwgJGV2ZW50KVwiXG4gICAgICAgICAgLz5cbiAgICAgICAgPC9uei1pbnB1dC1ncm91cD5cbiAgICAgIDwvbmctY29udGFpbmVyPlxuXG4gICAgICA8bnotaW5wdXQtZ3JvdXBcbiAgICAgICAgKm5nU3dpdGNoQ2FzZT1cIidhdXRvQ29tcGxldGUnXCJcbiAgICAgICAgW256U2l6ZV09XCJwcm9wc1snc2l6ZSddXCJcbiAgICAgICAgW256UHJlZml4SWNvbl09XCJwcm9wc1sncHJlZml4SWNvbiddXCJcbiAgICAgICAgW256U3VmZml4SWNvbl09XCJwcm9wc1snc3VmZml4SWNvbiddXCJcbiAgICAgICAgW256QWRkT25BZnRlckljb25dPVwicHJvcHNbJ2FkZE9uQWZ0ZXJJY29uJ11cIlxuICAgICAgICBbbnpBZGRPbkJlZm9yZUljb25dPVwicHJvcHNbJ2FkZE9uQmVmb3JlSWNvbiddXCJcbiAgICAgICAgW256QWRkT25CZWZvcmVdPVwicHJvcHNbJ2FkZE9uQmVmb3JlJ11cIlxuICAgICAgICBbbnpBZGRPbkFmdGVyXT1cInByb3BzWydhZGRPbkFmdGVyJ11cIlxuICAgICAgICBbbnpQcmVmaXhdPVwicHJvcHNbJ3ByZWZpeCddXCJcbiAgICAgICAgW256U3VmZml4XT1cInByb3BzWydhbGxvd0NsZWFyJ10hISA/IGlucHV0Q2xlYXJUcGwgOiBwcm9wc1snc3VmZml4J11cIlxuICAgICAgPlxuICAgICAgICA8aW5wdXRcbiAgICAgICAgICBuei1pbnB1dFxuICAgICAgICAgIFtuekJvcmRlcmxlc3NdPVwicHJvcHNbJ2JvcmRlcmxlc3MnXVwiXG4gICAgICAgICAgW256QXV0b2NvbXBsZXRlXT1cImF1dG9cIlxuICAgICAgICAgIFtmb3JtQ29udHJvbF09XCJmb3JtQ29udHJvbFwiXG4gICAgICAgICAgW2Zvcm1seUF0dHJpYnV0ZXNdPVwiZmllbGRcIlxuICAgICAgICAvPlxuICAgICAgICA8bnotYXV0b2NvbXBsZXRlXG4gICAgICAgICAgW256QmFja2ZpbGxdPVwicHJvcHNbJ2F1dG9jb21wbGV0ZU9wdGlvbnMnXT8uYmFja2ZpbGxcIlxuICAgICAgICAgIFtuekRlZmF1bHRBY3RpdmVGaXJzdE9wdGlvbl09XCJwcm9wc1snYXV0b2NvbXBsZXRlT3B0aW9ucyddPy5kZWZhdWx0QWN0aXZlRmlyc3RPcHRpb25cIlxuICAgICAgICAgIFtueldpZHRoXT1cInByb3BzWydhdXRvY29tcGxldGVPcHRpb25zJ10/LndpZHRoXCJcbiAgICAgICAgICBbbnpPdmVybGF5Q2xhc3NOYW1lXT1cInByb3BzWydhdXRvY29tcGxldGVPcHRpb25zJ10/Lm92ZXJsYXlDbGFzc05hbWVcIlxuICAgICAgICAgIFtuek92ZXJsYXlTdHlsZV09XCJwcm9wc1snYXV0b2NvbXBsZXRlT3B0aW9ucyddPy5vdmVybGF5U3R5bGVcIlxuICAgICAgICAgIFtjb21wYXJlV2l0aF09XCJwcm9wc1snYXV0b2NvbXBsZXRlT3B0aW9ucyddPy5jb21wYXJlV2l0aFwiXG4gICAgICAgICAgI2F1dG9cbiAgICAgICAgPlxuICAgICAgICAgIDxuei1hdXRvLW9wdGlvblxuICAgICAgICAgICAgKm5nRm9yPVwibGV0IG9wdGlvbiBvZiBwcm9wc1snYXV0b2NvbXBsZXRlT3B0aW9ucyddLmRhdGFTb3VyY2VcIlxuICAgICAgICAgICAgW256TGFiZWxdPVwib3B0aW9uLmxhYmVsXCJcbiAgICAgICAgICAgIFtuelZhbHVlXT1cIm9wdGlvbi52YWx1ZVwiXG4gICAgICAgICAgPlxuICAgICAgICAgICAge3sgb3B0aW9uLmxhYmVsIH19XG4gICAgICAgICAgPC9uei1hdXRvLW9wdGlvbj5cbiAgICAgICAgPC9uei1hdXRvY29tcGxldGU+XG4gICAgICA8L256LWlucHV0LWdyb3VwPlxuXG4gICAgICA8bnotaW5wdXQtZ3JvdXBcbiAgICAgICAgKm5nU3dpdGNoQ2FzZT1cIidncm91cCdcIlxuICAgICAgICBbbnpQcmVmaXhJY29uXT1cInByb3BzWydwcmVmaXhJY29uJ11cIlxuICAgICAgICBbbnpTdWZmaXhJY29uXT1cInByb3BzWydzdWZmaXhJY29uJ11cIlxuICAgICAgICBbbnpBZGRPbkFmdGVySWNvbl09XCJwcm9wc1snYWRkT25BZnRlckljb24nXVwiXG4gICAgICAgIFtuekFkZE9uQmVmb3JlSWNvbl09XCJwcm9wc1snYWRkT25CZWZvcmVJY29uJ11cIlxuICAgICAgICBbbnpBZGRPbkJlZm9yZV09XCJwcm9wc1snYWRkT25CZWZvcmUnXVwiXG4gICAgICAgIFtuekFkZE9uQWZ0ZXJdPVwicHJvcHNbJ2FkZE9uQWZ0ZXInXVwiXG4gICAgICAgIFtuelByZWZpeF09XCJwcm9wc1sncHJlZml4J11cIlxuICAgICAgICBbbnpTdWZmaXhdPVwicHJvcHNbJ2FsbG93Q2xlYXInXSEhID8gaW5wdXRDbGVhclRwbCA6IHByb3BzWydzdWZmaXgnXVwiXG4gICAgICAgIFtuekNvbXBhY3RdPVwicHJvcHNbJ2NvbXBhY3QnXSEhXCJcbiAgICAgICAgW256U2VhcmNoXT1cInByb3BzWydzZWFyY2gnXSEhXCJcbiAgICAgICAgW256U2l6ZV09XCJwcm9wc1snc2l6ZSddIVwiXG4gICAgICAgIFtuelN0YXR1c109XCJwcm9wc1snc3RhdHVzJ10hXCJcbiAgICAgID5cbiAgICAgICAgPGlucHV0XG4gICAgICAgICAgbnotaW5wdXRcbiAgICAgICAgICB0eXBlPVwidGV4dFwiXG4gICAgICAgICAgW25nQ2xhc3NdPVwicHJvcHNbJ2NsYXNzTmFtZSddIVwiXG4gICAgICAgICAgW2Zvcm1Db250cm9sXT1cImZvcm1Db250cm9sXCJcbiAgICAgICAgICBbZm9ybWx5QXR0cmlidXRlc109XCJmaWVsZFwiXG4gICAgICAgICAgW256Qm9yZGVybGVzc109XCIhIXByb3BzWydib3JkZXJsZXNzJ10hIVwiXG4gICAgICAgICAgKG5nTW9kZWxDaGFuZ2UpPVwicHJvcHNbJ21vZGVsQ2hhbmdlJ10gJiYgcHJvcHNbJ21vZGVsQ2hhbmdlJ10oZmllbGQsICRldmVudClcIlxuICAgICAgICAvPlxuICAgICAgPC9uei1pbnB1dC1ncm91cD5cblxuICAgICAgPGlucHV0XG4gICAgICAgICpuZ1N3aXRjaERlZmF1bHRcbiAgICAgICAgbnotaW5wdXRcbiAgICAgICAgdHlwZT1cInRleHRcIlxuICAgICAgICBbbmdDbGFzc109XCJwcm9wc1snY2xhc3NOYW1lJ10hXCJcbiAgICAgICAgW2Zvcm1Db250cm9sXT1cImZvcm1Db250cm9sXCJcbiAgICAgICAgW2Zvcm1seUF0dHJpYnV0ZXNdPVwiZmllbGRcIlxuICAgICAgICBbbnpTaXplXT1cInByb3BzWydzaXplJ11cIlxuICAgICAgICBbbnpTdGF0dXNdPVwicHJvc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