@ngx-formly/material 5.10.22 → 6.0.0-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (356) hide show
  1. package/README.md +4 -2
  2. package/checkbox/checkbox.module.d.ts +10 -0
  3. package/checkbox/checkbox.type.d.ts +5 -2
  4. package/checkbox/ngx-formly-material-checkbox.d.ts +1 -0
  5. package/checkbox/package.json +6 -9
  6. package/datepicker/datepicker.module.d.ts +11 -0
  7. package/datepicker/datepicker.type.d.ts +4 -4
  8. package/datepicker/ngx-formly-material-datepicker.d.ts +1 -1
  9. package/datepicker/package.json +6 -9
  10. package/esm2020/checkbox/checkbox.module.mjs +61 -0
  11. package/esm2020/checkbox/checkbox.type.mjs +109 -0
  12. package/esm2020/checkbox/ngx-formly-material-checkbox.mjs +5 -0
  13. package/esm2020/checkbox/public_api.mjs +3 -0
  14. package/esm2020/datepicker/datepicker.module.mjs +57 -0
  15. package/esm2020/datepicker/datepicker.type.mjs +117 -0
  16. package/esm2020/datepicker/ngx-formly-material-datepicker.mjs +5 -0
  17. package/esm2020/datepicker/public_api.mjs +2 -0
  18. package/esm2020/form-field/field.type.mjs +124 -0
  19. package/esm2020/form-field/form-field.module.mjs +47 -0
  20. package/esm2020/form-field/form-field.wrapper.mjs +141 -0
  21. package/esm2020/form-field/ngx-formly-material-form-field.mjs +5 -0
  22. package/esm2020/form-field/public_api.mjs +3 -0
  23. package/esm2020/input/input.module.mjs +91 -0
  24. package/esm2020/input/input.type.mjs +79 -0
  25. package/esm2020/input/ngx-formly-material-input.mjs +5 -0
  26. package/esm2020/input/public_api.mjs +3 -0
  27. package/esm2020/lib/ui-material.mjs +3 -0
  28. package/esm2020/lib/ui-material.module.mjs +43 -0
  29. package/esm2020/multicheckbox/multicheckbox.module.mjs +57 -0
  30. package/esm2020/multicheckbox/multicheckbox.type.mjs +82 -0
  31. package/esm2020/multicheckbox/ngx-formly-material-multicheckbox.mjs +5 -0
  32. package/esm2020/multicheckbox/public_api.mjs +3 -0
  33. package/esm2020/native-select/native-select.module.mjs +57 -0
  34. package/esm2020/native-select/native-select.type.mjs +97 -0
  35. package/esm2020/native-select/ngx-formly-material-native-select.mjs +5 -0
  36. package/esm2020/native-select/public_api.mjs +3 -0
  37. package/esm2020/ngx-formly-material.mjs +5 -0
  38. package/esm2020/public_api.mjs +5 -0
  39. package/esm2020/radio/ngx-formly-material-radio.mjs +5 -0
  40. package/esm2020/radio/public_api.mjs +3 -0
  41. package/esm2020/radio/radio.module.mjs +57 -0
  42. package/esm2020/radio/radio.type.mjs +89 -0
  43. package/esm2020/select/ngx-formly-material-select.mjs +5 -0
  44. package/esm2020/select/public_api.mjs +3 -0
  45. package/esm2020/select/select.module.mjs +63 -0
  46. package/esm2020/select/select.type.mjs +151 -0
  47. package/esm2020/slider/ngx-formly-material-slider.mjs +5 -0
  48. package/esm2020/slider/public_api.mjs +2 -0
  49. package/esm2020/slider/slider.module.mjs +53 -0
  50. package/esm2020/slider/slider.type.mjs +79 -0
  51. package/esm2020/textarea/ngx-formly-material-textarea.mjs +5 -0
  52. package/esm2020/textarea/public_api.mjs +3 -0
  53. package/esm2020/textarea/textarea.module.mjs +53 -0
  54. package/esm2020/textarea/textarea.type.mjs +77 -0
  55. package/esm2020/toggle/ngx-formly-material-toggle.mjs +5 -0
  56. package/esm2020/toggle/public_api.mjs +2 -0
  57. package/esm2020/toggle/toggle.module.mjs +53 -0
  58. package/esm2020/toggle/toggle.type.mjs +61 -0
  59. package/fesm2015/ngx-formly-material-checkbox.mjs +171 -0
  60. package/fesm2015/ngx-formly-material-checkbox.mjs.map +1 -0
  61. package/fesm2015/ngx-formly-material-datepicker.mjs +177 -0
  62. package/fesm2015/ngx-formly-material-datepicker.mjs.map +1 -0
  63. package/fesm2015/ngx-formly-material-form-field.mjs +312 -0
  64. package/fesm2015/ngx-formly-material-form-field.mjs.map +1 -0
  65. package/fesm2015/ngx-formly-material-input.mjs +172 -0
  66. package/fesm2015/ngx-formly-material-input.mjs.map +1 -0
  67. package/fesm2015/ngx-formly-material-multicheckbox.mjs +140 -0
  68. package/fesm2015/ngx-formly-material-multicheckbox.mjs.map +1 -0
  69. package/fesm2015/ngx-formly-material-native-select.mjs +156 -0
  70. package/fesm2015/ngx-formly-material-native-select.mjs.map +1 -0
  71. package/fesm2015/ngx-formly-material-radio.mjs +146 -0
  72. package/fesm2015/ngx-formly-material-radio.mjs.map +1 -0
  73. package/fesm2015/ngx-formly-material-select.mjs +219 -0
  74. package/fesm2015/ngx-formly-material-select.mjs.map +1 -0
  75. package/fesm2015/ngx-formly-material-slider.mjs +133 -0
  76. package/fesm2015/ngx-formly-material-slider.mjs.map +1 -0
  77. package/fesm2015/ngx-formly-material-textarea.mjs +131 -0
  78. package/fesm2015/ngx-formly-material-textarea.mjs.map +1 -0
  79. package/fesm2015/ngx-formly-material-toggle.mjs +115 -0
  80. package/fesm2015/ngx-formly-material-toggle.mjs.map +1 -0
  81. package/fesm2015/ngx-formly-material.mjs +55 -0
  82. package/fesm2015/ngx-formly-material.mjs.map +1 -0
  83. package/fesm2020/ngx-formly-material-checkbox.mjs +171 -0
  84. package/fesm2020/ngx-formly-material-checkbox.mjs.map +1 -0
  85. package/fesm2020/ngx-formly-material-datepicker.mjs +176 -0
  86. package/fesm2020/ngx-formly-material-datepicker.mjs.map +1 -0
  87. package/fesm2020/ngx-formly-material-form-field.mjs +309 -0
  88. package/fesm2020/ngx-formly-material-form-field.mjs.map +1 -0
  89. package/fesm2020/ngx-formly-material-input.mjs +172 -0
  90. package/fesm2020/ngx-formly-material-input.mjs.map +1 -0
  91. package/fesm2020/ngx-formly-material-multicheckbox.mjs +140 -0
  92. package/fesm2020/ngx-formly-material-multicheckbox.mjs.map +1 -0
  93. package/fesm2020/ngx-formly-material-native-select.mjs +156 -0
  94. package/fesm2020/ngx-formly-material-native-select.mjs.map +1 -0
  95. package/fesm2020/ngx-formly-material-radio.mjs +146 -0
  96. package/fesm2020/ngx-formly-material-radio.mjs.map +1 -0
  97. package/fesm2020/ngx-formly-material-select.mjs +216 -0
  98. package/fesm2020/ngx-formly-material-select.mjs.map +1 -0
  99. package/fesm2020/ngx-formly-material-slider.mjs +133 -0
  100. package/fesm2020/ngx-formly-material-slider.mjs.map +1 -0
  101. package/fesm2020/ngx-formly-material-textarea.mjs +131 -0
  102. package/fesm2020/ngx-formly-material-textarea.mjs.map +1 -0
  103. package/fesm2020/ngx-formly-material-toggle.mjs +115 -0
  104. package/fesm2020/ngx-formly-material-toggle.mjs.map +1 -0
  105. package/fesm2020/ngx-formly-material.mjs +55 -0
  106. package/fesm2020/ngx-formly-material.mjs.map +1 -0
  107. package/form-field/field.type.d.ts +23 -17
  108. package/form-field/form-field.module.d.ts +9 -0
  109. package/form-field/form-field.wrapper.d.ts +26 -27
  110. package/form-field/ngx-formly-material-form-field.d.ts +1 -1
  111. package/form-field/package.json +6 -9
  112. package/form-field/public_api.d.ts +1 -0
  113. package/input/input.module.d.ts +10 -0
  114. package/input/input.type.d.ts +4 -3
  115. package/input/ngx-formly-material-input.d.ts +1 -0
  116. package/input/package.json +6 -9
  117. package/lib/ui-material.module.d.ts +11 -0
  118. package/multicheckbox/multicheckbox.module.d.ts +11 -0
  119. package/multicheckbox/multicheckbox.type.d.ts +5 -2
  120. package/multicheckbox/ngx-formly-material-multicheckbox.d.ts +1 -0
  121. package/multicheckbox/package.json +6 -9
  122. package/native-select/native-select.module.d.ts +11 -0
  123. package/native-select/native-select.type.d.ts +3 -2
  124. package/native-select/ngx-formly-material-native-select.d.ts +1 -0
  125. package/native-select/package.json +6 -9
  126. package/ngx-formly-material.d.ts +1 -0
  127. package/package.json +118 -31
  128. package/radio/ngx-formly-material-radio.d.ts +1 -0
  129. package/radio/package.json +6 -9
  130. package/radio/radio.module.d.ts +11 -0
  131. package/radio/radio.type.d.ts +4 -1
  132. package/select/ngx-formly-material-select.d.ts +1 -0
  133. package/select/package.json +6 -9
  134. package/select/select.module.d.ts +12 -0
  135. package/select/select.type.d.ts +6 -4
  136. package/slider/ngx-formly-material-slider.d.ts +1 -1
  137. package/slider/package.json +6 -9
  138. package/slider/slider.module.d.ts +10 -0
  139. package/slider/slider.type.d.ts +4 -1
  140. package/textarea/ngx-formly-material-textarea.d.ts +1 -0
  141. package/textarea/package.json +6 -9
  142. package/textarea/textarea.module.d.ts +10 -0
  143. package/textarea/textarea.type.d.ts +3 -2
  144. package/toggle/ngx-formly-material-toggle.d.ts +1 -1
  145. package/toggle/package.json +6 -9
  146. package/toggle/toggle.module.d.ts +10 -0
  147. package/toggle/toggle.type.d.ts +4 -1
  148. package/bundles/ngx-formly-material-checkbox.umd.js +0 -189
  149. package/bundles/ngx-formly-material-checkbox.umd.js.map +0 -1
  150. package/bundles/ngx-formly-material-checkbox.umd.min.js +0 -2
  151. package/bundles/ngx-formly-material-checkbox.umd.min.js.map +0 -1
  152. package/bundles/ngx-formly-material-datepicker.umd.js +0 -151
  153. package/bundles/ngx-formly-material-datepicker.umd.js.map +0 -1
  154. package/bundles/ngx-formly-material-datepicker.umd.min.js +0 -2
  155. package/bundles/ngx-formly-material-datepicker.umd.min.js.map +0 -1
  156. package/bundles/ngx-formly-material-form-field.umd.js +0 -532
  157. package/bundles/ngx-formly-material-form-field.umd.js.map +0 -1
  158. package/bundles/ngx-formly-material-form-field.umd.min.js +0 -2
  159. package/bundles/ngx-formly-material-form-field.umd.min.js.map +0 -1
  160. package/bundles/ngx-formly-material-input.umd.js +0 -113
  161. package/bundles/ngx-formly-material-input.umd.js.map +0 -1
  162. package/bundles/ngx-formly-material-input.umd.min.js +0 -2
  163. package/bundles/ngx-formly-material-input.umd.min.js.map +0 -1
  164. package/bundles/ngx-formly-material-multicheckbox.umd.js +0 -205
  165. package/bundles/ngx-formly-material-multicheckbox.umd.js.map +0 -1
  166. package/bundles/ngx-formly-material-multicheckbox.umd.min.js +0 -2
  167. package/bundles/ngx-formly-material-multicheckbox.umd.min.js.map +0 -1
  168. package/bundles/ngx-formly-material-native-select.umd.js +0 -111
  169. package/bundles/ngx-formly-material-native-select.umd.js.map +0 -1
  170. package/bundles/ngx-formly-material-native-select.umd.min.js +0 -2
  171. package/bundles/ngx-formly-material-native-select.umd.min.js.map +0 -1
  172. package/bundles/ngx-formly-material-radio.umd.js +0 -161
  173. package/bundles/ngx-formly-material-radio.umd.js.map +0 -1
  174. package/bundles/ngx-formly-material-radio.umd.min.js +0 -2
  175. package/bundles/ngx-formly-material-radio.umd.min.js.map +0 -1
  176. package/bundles/ngx-formly-material-select.umd.js +0 -249
  177. package/bundles/ngx-formly-material-select.umd.js.map +0 -1
  178. package/bundles/ngx-formly-material-select.umd.min.js +0 -2
  179. package/bundles/ngx-formly-material-select.umd.min.js.map +0 -1
  180. package/bundles/ngx-formly-material-slider.umd.js +0 -122
  181. package/bundles/ngx-formly-material-slider.umd.js.map +0 -1
  182. package/bundles/ngx-formly-material-slider.umd.min.js +0 -2
  183. package/bundles/ngx-formly-material-slider.umd.min.js.map +0 -1
  184. package/bundles/ngx-formly-material-textarea.umd.js +0 -116
  185. package/bundles/ngx-formly-material-textarea.umd.js.map +0 -1
  186. package/bundles/ngx-formly-material-textarea.umd.min.js +0 -2
  187. package/bundles/ngx-formly-material-textarea.umd.min.js.map +0 -1
  188. package/bundles/ngx-formly-material-toggle.umd.js +0 -122
  189. package/bundles/ngx-formly-material-toggle.umd.js.map +0 -1
  190. package/bundles/ngx-formly-material-toggle.umd.min.js +0 -2
  191. package/bundles/ngx-formly-material-toggle.umd.min.js.map +0 -1
  192. package/bundles/ngx-formly-material.umd.js +0 -52
  193. package/bundles/ngx-formly-material.umd.js.map +0 -1
  194. package/bundles/ngx-formly-material.umd.min.js +0 -2
  195. package/bundles/ngx-formly-material.umd.min.js.map +0 -1
  196. package/checkbox/ngx-formly-material-checkbox.metadata.json +0 -1
  197. package/datepicker/ngx-formly-material-datepicker.metadata.json +0 -1
  198. package/esm2015/checkbox/checkbox.module.js +0 -34
  199. package/esm2015/checkbox/checkbox.type.js +0 -129
  200. package/esm2015/checkbox/ngx-formly-material-checkbox.js +0 -9
  201. package/esm2015/checkbox/public_api.js +0 -7
  202. package/esm2015/datepicker/datepicker.module.js +0 -34
  203. package/esm2015/datepicker/datepicker.type.js +0 -113
  204. package/esm2015/datepicker/ngx-formly-material-datepicker.js +0 -10
  205. package/esm2015/datepicker/public_api.js +0 -6
  206. package/esm2015/form-field/field.type.js +0 -170
  207. package/esm2015/form-field/form-field.module.js +0 -29
  208. package/esm2015/form-field/form-field.wrapper.js +0 -244
  209. package/esm2015/form-field/formly.error-state-matcher.js +0 -28
  210. package/esm2015/form-field/ngx-formly-material-form-field.js +0 -10
  211. package/esm2015/form-field/public_api.js +0 -7
  212. package/esm2015/input/input.module.js +0 -34
  213. package/esm2015/input/input.type.js +0 -53
  214. package/esm2015/input/ngx-formly-material-input.js +0 -9
  215. package/esm2015/input/public_api.js +0 -7
  216. package/esm2015/lib/ui-material.js +0 -7
  217. package/esm2015/lib/ui-material.module.js +0 -28
  218. package/esm2015/multicheckbox/multicheckbox.module.js +0 -36
  219. package/esm2015/multicheckbox/multicheckbox.type.js +0 -86
  220. package/esm2015/multicheckbox/ngx-formly-material-multicheckbox.js +0 -9
  221. package/esm2015/multicheckbox/public_api.js +0 -7
  222. package/esm2015/native-select/native-select.module.js +0 -36
  223. package/esm2015/native-select/native-select.type.js +0 -63
  224. package/esm2015/native-select/ngx-formly-material-native-select.js +0 -9
  225. package/esm2015/native-select/public_api.js +0 -7
  226. package/esm2015/ngx-formly-material.js +0 -9
  227. package/esm2015/public_api.js +0 -9
  228. package/esm2015/radio/ngx-formly-material-radio.js +0 -9
  229. package/esm2015/radio/public_api.js +0 -7
  230. package/esm2015/radio/radio.module.js +0 -34
  231. package/esm2015/radio/radio.type.js +0 -94
  232. package/esm2015/select/ngx-formly-material-select.js +0 -9
  233. package/esm2015/select/public_api.js +0 -7
  234. package/esm2015/select/select.module.js +0 -36
  235. package/esm2015/select/select.type.js +0 -165
  236. package/esm2015/slider/ngx-formly-material-slider.js +0 -10
  237. package/esm2015/slider/public_api.js +0 -6
  238. package/esm2015/slider/slider.module.js +0 -32
  239. package/esm2015/slider/slider.type.js +0 -56
  240. package/esm2015/textarea/ngx-formly-material-textarea.js +0 -9
  241. package/esm2015/textarea/public_api.js +0 -7
  242. package/esm2015/textarea/textarea.module.js +0 -34
  243. package/esm2015/textarea/textarea.type.js +0 -58
  244. package/esm2015/toggle/ngx-formly-material-toggle.js +0 -10
  245. package/esm2015/toggle/public_api.js +0 -6
  246. package/esm2015/toggle/toggle.module.js +0 -32
  247. package/esm2015/toggle/toggle.type.js +0 -53
  248. package/esm5/checkbox/checkbox.module.js +0 -38
  249. package/esm5/checkbox/checkbox.type.js +0 -132
  250. package/esm5/checkbox/ngx-formly-material-checkbox.js +0 -9
  251. package/esm5/checkbox/public_api.js +0 -7
  252. package/esm5/datepicker/datepicker.module.js +0 -38
  253. package/esm5/datepicker/datepicker.type.js +0 -90
  254. package/esm5/datepicker/ngx-formly-material-datepicker.js +0 -10
  255. package/esm5/datepicker/public_api.js +0 -6
  256. package/esm5/form-field/field.type.js +0 -245
  257. package/esm5/form-field/form-field.module.js +0 -33
  258. package/esm5/form-field/form-field.wrapper.js +0 -285
  259. package/esm5/form-field/formly.error-state-matcher.js +0 -32
  260. package/esm5/form-field/ngx-formly-material-form-field.js +0 -10
  261. package/esm5/form-field/public_api.js +0 -7
  262. package/esm5/input/input.module.js +0 -38
  263. package/esm5/input/input.type.js +0 -40
  264. package/esm5/input/ngx-formly-material-input.js +0 -9
  265. package/esm5/input/public_api.js +0 -7
  266. package/esm5/lib/ui-material.js +0 -7
  267. package/esm5/lib/ui-material.module.js +0 -32
  268. package/esm5/multicheckbox/multicheckbox.module.js +0 -40
  269. package/esm5/multicheckbox/multicheckbox.type.js +0 -92
  270. package/esm5/multicheckbox/ngx-formly-material-multicheckbox.js +0 -9
  271. package/esm5/multicheckbox/public_api.js +0 -7
  272. package/esm5/native-select/native-select.module.js +0 -40
  273. package/esm5/native-select/native-select.type.js +0 -38
  274. package/esm5/native-select/ngx-formly-material-native-select.js +0 -9
  275. package/esm5/native-select/public_api.js +0 -7
  276. package/esm5/ngx-formly-material.js +0 -9
  277. package/esm5/public_api.js +0 -9
  278. package/esm5/radio/ngx-formly-material-radio.js +0 -9
  279. package/esm5/radio/public_api.js +0 -7
  280. package/esm5/radio/radio.module.js +0 -38
  281. package/esm5/radio/radio.type.js +0 -98
  282. package/esm5/select/ngx-formly-material-select.js +0 -9
  283. package/esm5/select/public_api.js +0 -7
  284. package/esm5/select/select.module.js +0 -40
  285. package/esm5/select/select.type.js +0 -155
  286. package/esm5/slider/ngx-formly-material-slider.js +0 -10
  287. package/esm5/slider/public_api.js +0 -6
  288. package/esm5/slider/slider.module.js +0 -36
  289. package/esm5/slider/slider.type.js +0 -52
  290. package/esm5/textarea/ngx-formly-material-textarea.js +0 -9
  291. package/esm5/textarea/public_api.js +0 -7
  292. package/esm5/textarea/textarea.module.js +0 -38
  293. package/esm5/textarea/textarea.type.js +0 -45
  294. package/esm5/toggle/ngx-formly-material-toggle.js +0 -10
  295. package/esm5/toggle/public_api.js +0 -6
  296. package/esm5/toggle/toggle.module.js +0 -36
  297. package/esm5/toggle/toggle.type.js +0 -52
  298. package/fesm2015/ngx-formly-material-checkbox.js +0 -152
  299. package/fesm2015/ngx-formly-material-checkbox.js.map +0 -1
  300. package/fesm2015/ngx-formly-material-datepicker.js +0 -146
  301. package/fesm2015/ngx-formly-material-datepicker.js.map +0 -1
  302. package/fesm2015/ngx-formly-material-form-field.js +0 -408
  303. package/fesm2015/ngx-formly-material-form-field.js.map +0 -1
  304. package/fesm2015/ngx-formly-material-input.js +0 -93
  305. package/fesm2015/ngx-formly-material-input.js.map +0 -1
  306. package/fesm2015/ngx-formly-material-multicheckbox.js +0 -126
  307. package/fesm2015/ngx-formly-material-multicheckbox.js.map +0 -1
  308. package/fesm2015/ngx-formly-material-native-select.js +0 -103
  309. package/fesm2015/ngx-formly-material-native-select.js.map +0 -1
  310. package/fesm2015/ngx-formly-material-radio.js +0 -126
  311. package/fesm2015/ngx-formly-material-radio.js.map +0 -1
  312. package/fesm2015/ngx-formly-material-select.js +0 -200
  313. package/fesm2015/ngx-formly-material-select.js.map +0 -1
  314. package/fesm2015/ngx-formly-material-slider.js +0 -92
  315. package/fesm2015/ngx-formly-material-slider.js.map +0 -1
  316. package/fesm2015/ngx-formly-material-textarea.js +0 -95
  317. package/fesm2015/ngx-formly-material-textarea.js.map +0 -1
  318. package/fesm2015/ngx-formly-material-toggle.js +0 -89
  319. package/fesm2015/ngx-formly-material-toggle.js.map +0 -1
  320. package/fesm2015/ngx-formly-material.js +0 -48
  321. package/fesm2015/ngx-formly-material.js.map +0 -1
  322. package/fesm5/ngx-formly-material-checkbox.js +0 -157
  323. package/fesm5/ngx-formly-material-checkbox.js.map +0 -1
  324. package/fesm5/ngx-formly-material-datepicker.js +0 -125
  325. package/fesm5/ngx-formly-material-datepicker.js.map +0 -1
  326. package/fesm5/ngx-formly-material-form-field.js +0 -527
  327. package/fesm5/ngx-formly-material-form-field.js.map +0 -1
  328. package/fesm5/ngx-formly-material-input.js +0 -82
  329. package/fesm5/ngx-formly-material-input.js.map +0 -1
  330. package/fesm5/ngx-formly-material-multicheckbox.js +0 -134
  331. package/fesm5/ngx-formly-material-multicheckbox.js.map +0 -1
  332. package/fesm5/ngx-formly-material-native-select.js +0 -80
  333. package/fesm5/ngx-formly-material-native-select.js.map +0 -1
  334. package/fesm5/ngx-formly-material-radio.js +0 -132
  335. package/fesm5/ngx-formly-material-radio.js.map +0 -1
  336. package/fesm5/ngx-formly-material-select.js +0 -192
  337. package/fesm5/ngx-formly-material-select.js.map +0 -1
  338. package/fesm5/ngx-formly-material-slider.js +0 -90
  339. package/fesm5/ngx-formly-material-slider.js.map +0 -1
  340. package/fesm5/ngx-formly-material-textarea.js +0 -84
  341. package/fesm5/ngx-formly-material-textarea.js.map +0 -1
  342. package/fesm5/ngx-formly-material-toggle.js +0 -90
  343. package/fesm5/ngx-formly-material-toggle.js.map +0 -1
  344. package/fesm5/ngx-formly-material.js +0 -51
  345. package/fesm5/ngx-formly-material.js.map +0 -1
  346. package/form-field/formly.error-state-matcher.d.ts +0 -8
  347. package/form-field/ngx-formly-material-form-field.metadata.json +0 -1
  348. package/input/ngx-formly-material-input.metadata.json +0 -1
  349. package/multicheckbox/ngx-formly-material-multicheckbox.metadata.json +0 -1
  350. package/native-select/ngx-formly-material-native-select.metadata.json +0 -1
  351. package/ngx-formly-material.metadata.json +0 -1
  352. package/radio/ngx-formly-material-radio.metadata.json +0 -1
  353. package/select/ngx-formly-material-select.metadata.json +0 -1
  354. package/slider/ngx-formly-material-slider.metadata.json +0 -1
  355. package/textarea/ngx-formly-material-textarea.metadata.json +0 -1
  356. package/toggle/ngx-formly-material-toggle.metadata.json +0 -1
@@ -1,527 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import { ReactiveFormsModule } from '@angular/forms';
3
- import { MatFormField, MatFormFieldControl, MatFormFieldModule } from '@angular/material/form-field';
4
- import { FocusMonitor } from '@angular/cdk/a11y';
5
- import { __extends } from 'tslib';
6
- import { ViewChild, Type, Component, Renderer2, ElementRef, ViewContainerRef, ViewEncapsulation, NgModule } from '@angular/core';
7
- import { FieldType, ɵdefineHiddenProp, FieldWrapper, FormlyConfig, FormlyModule } from '@ngx-formly/core';
8
- import { Subject } from 'rxjs';
9
-
10
- /**
11
- * @fileoverview added by tsickle
12
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
13
- */
14
- var FormlyErrorStateMatcher = /** @class */ (function () {
15
- function FormlyErrorStateMatcher(field) {
16
- this.field = field;
17
- }
18
- /**
19
- * @param {?} control
20
- * @param {?} form
21
- * @return {?}
22
- */
23
- FormlyErrorStateMatcher.prototype.isErrorState = /**
24
- * @param {?} control
25
- * @param {?} form
26
- * @return {?}
27
- */
28
- function (control, form) {
29
- return this.field && this.field.showError;
30
- };
31
- return FormlyErrorStateMatcher;
32
- }());
33
-
34
- /**
35
- * @fileoverview added by tsickle
36
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
37
- */
38
- /**
39
- * @abstract
40
- * @template F
41
- */
42
- var FieldType$1 = /** @class */ (function (_super) {
43
- __extends(FieldType$$1, _super);
44
- function FieldType$$1() {
45
- var _this = _super !== null && _super.apply(this, arguments) || this;
46
- _this.errorStateMatcher = new FormlyErrorStateMatcher(_this);
47
- _this.stateChanges = new Subject();
48
- _this._errorState = false;
49
- return _this;
50
- }
51
- Object.defineProperty(FieldType$$1.prototype, "formFieldControl", {
52
- get: /**
53
- * @return {?}
54
- */
55
- function () { return this._control || this; },
56
- set: /**
57
- * @param {?} control
58
- * @return {?}
59
- */
60
- function (control) {
61
- this._control = control;
62
- if (this.formField && control !== this.formField._control) {
63
- this.formField._control = control;
64
- }
65
- },
66
- enumerable: true,
67
- configurable: true
68
- });
69
- /**
70
- * @return {?}
71
- */
72
- FieldType$$1.prototype.ngOnInit = /**
73
- * @return {?}
74
- */
75
- function () {
76
- if (this.formField) {
77
- this.formField._control = this.formFieldControl;
78
- }
79
- };
80
- /**
81
- * @return {?}
82
- */
83
- FieldType$$1.prototype.ngAfterViewInit = /**
84
- * @return {?}
85
- */
86
- function () {
87
- var _this = this;
88
- if (this.matPrefix || this.matSuffix) {
89
- setTimeout((/**
90
- * @return {?}
91
- */
92
- function () {
93
- ɵdefineHiddenProp(_this.field, '_matprefix', _this.matPrefix);
94
- ɵdefineHiddenProp(_this.field, '_matsuffix', _this.matSuffix);
95
- ((/** @type {?} */ (_this.options)))._markForCheck(_this.field);
96
- }));
97
- }
98
- };
99
- /**
100
- * @return {?}
101
- */
102
- FieldType$$1.prototype.ngOnDestroy = /**
103
- * @return {?}
104
- */
105
- function () {
106
- if (this.formField) {
107
- delete this.formField._control;
108
- }
109
- this.stateChanges.complete();
110
- };
111
- /**
112
- * @param {?} ids
113
- * @return {?}
114
- */
115
- FieldType$$1.prototype.setDescribedByIds = /**
116
- * @param {?} ids
117
- * @return {?}
118
- */
119
- function (ids) { };
120
- /**
121
- * @param {?} event
122
- * @return {?}
123
- */
124
- FieldType$$1.prototype.onContainerClick = /**
125
- * @param {?} event
126
- * @return {?}
127
- */
128
- function (event) {
129
- this.field.focus = true;
130
- this.stateChanges.next();
131
- };
132
- Object.defineProperty(FieldType$$1.prototype, "errorState", {
133
- get: /**
134
- * @return {?}
135
- */
136
- function () {
137
- /** @type {?} */
138
- var showError = (/** @type {?} */ ((/** @type {?} */ (this.options)).showError))(this);
139
- if (showError !== this._errorState) {
140
- this._errorState = showError;
141
- this.stateChanges.next();
142
- }
143
- return showError;
144
- },
145
- enumerable: true,
146
- configurable: true
147
- });
148
- Object.defineProperty(FieldType$$1.prototype, "controlType", {
149
- get: /**
150
- * @return {?}
151
- */
152
- function () {
153
- if (this.to.type) {
154
- return this.to.type;
155
- }
156
- if (((/** @type {?} */ (this.field.type))) instanceof Type) {
157
- return (/** @type {?} */ (this.field.type)).constructor.name;
158
- }
159
- return (/** @type {?} */ (this.field.type));
160
- },
161
- enumerable: true,
162
- configurable: true
163
- });
164
- Object.defineProperty(FieldType$$1.prototype, "focused", {
165
- get: /**
166
- * @return {?}
167
- */
168
- function () { return !!this.field.focus && !this.disabled; },
169
- enumerable: true,
170
- configurable: true
171
- });
172
- Object.defineProperty(FieldType$$1.prototype, "disabled", {
173
- get: /**
174
- * @return {?}
175
- */
176
- function () { return !!this.to.disabled; },
177
- enumerable: true,
178
- configurable: true
179
- });
180
- Object.defineProperty(FieldType$$1.prototype, "required", {
181
- get: /**
182
- * @return {?}
183
- */
184
- function () { return !!this.to.required; },
185
- enumerable: true,
186
- configurable: true
187
- });
188
- Object.defineProperty(FieldType$$1.prototype, "placeholder", {
189
- get: /**
190
- * @return {?}
191
- */
192
- function () { return this.to.placeholder || ''; },
193
- enumerable: true,
194
- configurable: true
195
- });
196
- Object.defineProperty(FieldType$$1.prototype, "shouldPlaceholderFloat", {
197
- get: /**
198
- * @return {?}
199
- */
200
- function () { return this.shouldLabelFloat; },
201
- enumerable: true,
202
- configurable: true
203
- });
204
- Object.defineProperty(FieldType$$1.prototype, "value", {
205
- get: /**
206
- * @return {?}
207
- */
208
- function () { return this.formControl.value; },
209
- set: /**
210
- * @param {?} value
211
- * @return {?}
212
- */
213
- function (value) { this.formControl.patchValue(value); },
214
- enumerable: true,
215
- configurable: true
216
- });
217
- Object.defineProperty(FieldType$$1.prototype, "ngControl", {
218
- get: /**
219
- * @return {?}
220
- */
221
- function () { return (/** @type {?} */ (this.formControl)); },
222
- enumerable: true,
223
- configurable: true
224
- });
225
- Object.defineProperty(FieldType$$1.prototype, "empty", {
226
- get: /**
227
- * @return {?}
228
- */
229
- function () { return this.value === undefined || this.value === null || this.value === ''; },
230
- enumerable: true,
231
- configurable: true
232
- });
233
- Object.defineProperty(FieldType$$1.prototype, "shouldLabelFloat", {
234
- get: /**
235
- * @return {?}
236
- */
237
- function () { return this.focused || !this.empty; },
238
- enumerable: true,
239
- configurable: true
240
- });
241
- Object.defineProperty(FieldType$$1.prototype, "formField", {
242
- get: /**
243
- * @return {?}
244
- */
245
- function () { return this.field ? ((/** @type {?} */ (this.field)))['__formField__'] : null; },
246
- enumerable: true,
247
- configurable: true
248
- });
249
- FieldType$$1.propDecorators = {
250
- matPrefix: [{ type: ViewChild, args: ['matPrefix',] }],
251
- matSuffix: [{ type: ViewChild, args: ['matSuffix',] }]
252
- };
253
- return FieldType$$1;
254
- }(FieldType));
255
-
256
- /**
257
- * @fileoverview added by tsickle
258
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
259
- */
260
- var FormlyWrapperFormField = /** @class */ (function (_super) {
261
- __extends(FormlyWrapperFormField, _super);
262
- function FormlyWrapperFormField(config, renderer, elementRef, focusMonitor) {
263
- var _this = _super.call(this) || this;
264
- _this.config = config;
265
- _this.renderer = renderer;
266
- _this.elementRef = elementRef;
267
- _this.focusMonitor = focusMonitor;
268
- _this.stateChanges = new Subject();
269
- _this._errorState = false;
270
- _this.initialGapCalculated = false;
271
- return _this;
272
- }
273
- /**
274
- * @return {?}
275
- */
276
- FormlyWrapperFormField.prototype.ngOnInit = /**
277
- * @return {?}
278
- */
279
- function () {
280
- var _this = this;
281
- this.formField._control = this;
282
- ɵdefineHiddenProp(this.field, '__formField__', this.formField);
283
- /** @type {?} */
284
- var ref = this.config.resolveFieldTypeRef(this.formlyField);
285
- if (ref && !(ref.instance instanceof FieldType$1)) {
286
- console.warn("Component '" + ref.componentType.name + "' must extend 'FieldType' from '@ngx-formly/material/form-field'.");
287
- }
288
- // fix for https://github.com/angular/material2/issues/11437
289
- if (this.formlyField.hide && (/** @type {?} */ (this.formlyField.templateOptions)).appearance === 'outline') {
290
- this.initialGapCalculated = true;
291
- }
292
- this.focusMonitor.monitor(this.elementRef, true).subscribe((/**
293
- * @param {?} origin
294
- * @return {?}
295
- */
296
- function (origin) {
297
- if (!origin && _this.field.focus) {
298
- _this.field.focus = false;
299
- }
300
- _this.stateChanges.next();
301
- }));
302
- };
303
- /**
304
- * @return {?}
305
- */
306
- FormlyWrapperFormField.prototype.ngAfterContentChecked = /**
307
- * @return {?}
308
- */
309
- function () {
310
- if (!this.initialGapCalculated || this.formlyField.hide) {
311
- return;
312
- }
313
- this.formField.updateOutlineGap();
314
- this.initialGapCalculated = true;
315
- };
316
- /**
317
- * @return {?}
318
- */
319
- FormlyWrapperFormField.prototype.ngAfterViewInit = /**
320
- * @return {?}
321
- */
322
- function () {
323
- // temporary fix for https://github.com/angular/material2/issues/7891
324
- if (this.formField.appearance !== 'outline' && this.to.hideFieldUnderline === true) {
325
- /** @type {?} */
326
- var underlineElement = this.formField._elementRef.nativeElement.querySelector('.mat-form-field-underline');
327
- underlineElement && this.renderer.removeChild(underlineElement.parentNode, underlineElement);
328
- }
329
- };
330
- /**
331
- * @return {?}
332
- */
333
- FormlyWrapperFormField.prototype.ngOnDestroy = /**
334
- * @return {?}
335
- */
336
- function () {
337
- delete this.formlyField.__formField__;
338
- this.stateChanges.complete();
339
- this.focusMonitor.stopMonitoring(this.elementRef);
340
- };
341
- /**
342
- * @param {?} ids
343
- * @return {?}
344
- */
345
- FormlyWrapperFormField.prototype.setDescribedByIds = /**
346
- * @param {?} ids
347
- * @return {?}
348
- */
349
- function (ids) { };
350
- /**
351
- * @param {?} event
352
- * @return {?}
353
- */
354
- FormlyWrapperFormField.prototype.onContainerClick = /**
355
- * @param {?} event
356
- * @return {?}
357
- */
358
- function (event) {
359
- this.formlyField.focus = true;
360
- this.stateChanges.next();
361
- };
362
- Object.defineProperty(FormlyWrapperFormField.prototype, "errorState", {
363
- get: /**
364
- * @return {?}
365
- */
366
- function () {
367
- /** @type {?} */
368
- var showError = (/** @type {?} */ ((/** @type {?} */ (this.options)).showError))(this);
369
- if (showError !== this._errorState) {
370
- this._errorState = showError;
371
- this.stateChanges.next();
372
- }
373
- return showError;
374
- },
375
- enumerable: true,
376
- configurable: true
377
- });
378
- Object.defineProperty(FormlyWrapperFormField.prototype, "controlType", {
379
- get: /**
380
- * @return {?}
381
- */
382
- function () { return this.to.type; },
383
- enumerable: true,
384
- configurable: true
385
- });
386
- Object.defineProperty(FormlyWrapperFormField.prototype, "focused", {
387
- get: /**
388
- * @return {?}
389
- */
390
- function () { return !!this.formlyField.focus && !this.disabled; },
391
- enumerable: true,
392
- configurable: true
393
- });
394
- Object.defineProperty(FormlyWrapperFormField.prototype, "disabled", {
395
- get: /**
396
- * @return {?}
397
- */
398
- function () { return !!this.to.disabled; },
399
- enumerable: true,
400
- configurable: true
401
- });
402
- Object.defineProperty(FormlyWrapperFormField.prototype, "required", {
403
- get: /**
404
- * @return {?}
405
- */
406
- function () { return !!this.to.required; },
407
- enumerable: true,
408
- configurable: true
409
- });
410
- Object.defineProperty(FormlyWrapperFormField.prototype, "placeholder", {
411
- get: /**
412
- * @return {?}
413
- */
414
- function () { return this.to.placeholder || ''; },
415
- enumerable: true,
416
- configurable: true
417
- });
418
- Object.defineProperty(FormlyWrapperFormField.prototype, "shouldPlaceholderFloat", {
419
- get: /**
420
- * @return {?}
421
- */
422
- function () { return this.shouldLabelFloat; },
423
- enumerable: true,
424
- configurable: true
425
- });
426
- Object.defineProperty(FormlyWrapperFormField.prototype, "value", {
427
- get: /**
428
- * @return {?}
429
- */
430
- function () { return this.formControl.value; },
431
- enumerable: true,
432
- configurable: true
433
- });
434
- Object.defineProperty(FormlyWrapperFormField.prototype, "ngControl", {
435
- get: /**
436
- * @return {?}
437
- */
438
- function () { return (/** @type {?} */ (this.formControl)); },
439
- enumerable: true,
440
- configurable: true
441
- });
442
- Object.defineProperty(FormlyWrapperFormField.prototype, "empty", {
443
- get: /**
444
- * @return {?}
445
- */
446
- function () { return !this.formControl.value; },
447
- enumerable: true,
448
- configurable: true
449
- });
450
- Object.defineProperty(FormlyWrapperFormField.prototype, "shouldLabelFloat", {
451
- get: /**
452
- * @return {?}
453
- */
454
- function () { return this.focused || !this.empty; },
455
- enumerable: true,
456
- configurable: true
457
- });
458
- Object.defineProperty(FormlyWrapperFormField.prototype, "formlyField", {
459
- get: /**
460
- * @return {?}
461
- */
462
- function () { return (/** @type {?} */ (this.field)); },
463
- enumerable: true,
464
- configurable: true
465
- });
466
- FormlyWrapperFormField.decorators = [
467
- { type: Component, args: [{
468
- selector: 'formly-wrapper-mat-form-field',
469
- template: "\n <!-- fix https://github.com/angular/material2/pull/7083 by setting width to 100% -->\n <mat-form-field\n [hideRequiredMarker]=\"true\"\n [floatLabel]=\"to.floatLabel\"\n [appearance]=\"to.appearance\"\n [color]=\"to.color\">\n <ng-container #fieldComponent></ng-container>\n <mat-label *ngIf=\"to.label && to.hideLabel !== true\">\n {{ to.label }}\n <span *ngIf=\"to.required && to.hideRequiredMarker !== true\" aria-hidden=\"true\" class=\"mat-form-field-required-marker\">*</span>\n </mat-label>\n\n <ng-container matPrefix *ngIf=\"to.prefix || to._matPrefix\">\n <ng-container *ngTemplateOutlet=\"to.prefix ? to.prefix : to._matPrefix\"></ng-container>\n </ng-container>\n\n <ng-container matSuffix *ngIf=\"to.suffix || to._matSuffix\">\n <ng-container *ngTemplateOutlet=\"to.suffix ? to.suffix : to._matSuffix\"></ng-container>\n </ng-container>\n\n <mat-error>\n <formly-validation-message [field]=\"field\"></formly-validation-message>\n </mat-error>\n <!-- fix https://github.com/angular/material2/issues/7737 by setting id to null -->\n <mat-hint *ngIf=\"to.description\" [id]=\"null\">{{ to.description }}</mat-hint>\n </mat-form-field>\n ",
470
- providers: [{ provide: MatFormFieldControl, useExisting: FormlyWrapperFormField }],
471
- encapsulation: ViewEncapsulation.None,
472
- styles: ["formly-wrapper-mat-form-field .mat-form-field{width:100%}formly-wrapper-mat-form-field .mat-form-field-subscript-wrapper,formly-wrapper-mat-form-field .mat-form-field-underline{position:static}"]
473
- }] }
474
- ];
475
- /** @nocollapse */
476
- FormlyWrapperFormField.ctorParameters = function () { return [
477
- { type: FormlyConfig },
478
- { type: Renderer2 },
479
- { type: ElementRef },
480
- { type: FocusMonitor }
481
- ]; };
482
- FormlyWrapperFormField.propDecorators = {
483
- fieldComponent: [{ type: ViewChild, args: ['fieldComponent', (/** @type {?} */ ({ read: ViewContainerRef, static: true })),] }],
484
- formField: [{ type: ViewChild, args: [MatFormField, (/** @type {?} */ ({ static: true })),] }]
485
- };
486
- return FormlyWrapperFormField;
487
- }(FieldWrapper));
488
-
489
- /**
490
- * @fileoverview added by tsickle
491
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
492
- */
493
- var FormlyMatFormFieldModule = /** @class */ (function () {
494
- function FormlyMatFormFieldModule() {
495
- }
496
- FormlyMatFormFieldModule.decorators = [
497
- { type: NgModule, args: [{
498
- declarations: [FormlyWrapperFormField],
499
- imports: [
500
- CommonModule,
501
- ReactiveFormsModule,
502
- MatFormFieldModule,
503
- FormlyModule.forChild({
504
- wrappers: [{
505
- name: 'form-field',
506
- component: FormlyWrapperFormField,
507
- }],
508
- }),
509
- ],
510
- },] }
511
- ];
512
- return FormlyMatFormFieldModule;
513
- }());
514
-
515
- /**
516
- * @fileoverview added by tsickle
517
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
518
- */
519
-
520
- /**
521
- * @fileoverview added by tsickle
522
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
523
- */
524
-
525
- export { FormlyMatFormFieldModule, FieldType$1 as FieldType, FormlyWrapperFormField as ɵa };
526
-
527
- //# sourceMappingURL=ngx-formly-material-form-field.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngx-formly-material-form-field.js.map","sources":["ng://@ngx-formly/material/form-field/formly.error-state-matcher.ts","ng://@ngx-formly/material/form-field/field.type.ts","ng://@ngx-formly/material/form-field/form-field.wrapper.ts","ng://@ngx-formly/material/form-field/form-field.module.ts"],"sourcesContent":["import { FormControl, FormGroupDirective, NgForm } from '@angular/forms';\nimport { ErrorStateMatcher } from '@angular/material/core';\nimport { FieldType } from '@ngx-formly/core';\n\nexport class FormlyErrorStateMatcher implements ErrorStateMatcher {\n constructor(private field: FieldType) {}\n\n isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean {\n return this.field && this.field.showError;\n }\n}\n","import { OnInit, OnDestroy, AfterViewInit, TemplateRef, ViewChild, Type } from '@angular/core';\nimport { FieldType as CoreFieldType, ɵdefineHiddenProp as defineHiddenProp, FormlyFieldConfig } from '@ngx-formly/core';\nimport { Subject } from 'rxjs';\nimport { MatFormField, MatFormFieldControl } from '@angular/material/form-field';\nimport { FormlyErrorStateMatcher } from './formly.error-state-matcher';\n\nexport abstract class FieldType<F extends FormlyFieldConfig = FormlyFieldConfig> extends CoreFieldType<F> implements OnInit, AfterViewInit, OnDestroy, MatFormFieldControl<any> {\n @ViewChild('matPrefix') matPrefix!: TemplateRef<any>;\n @ViewChild('matSuffix') matSuffix!: TemplateRef<any>;\n\n get formFieldControl() { return this._control || this; }\n set formFieldControl(control: MatFormFieldControl<any>) {\n this._control = control;\n if (this.formField && control !== this.formField._control) {\n this.formField._control = control;\n }\n }\n\n errorStateMatcher = new FormlyErrorStateMatcher(this);\n stateChanges = new Subject<void>();\n _errorState = false;\n private _control!: MatFormFieldControl<any>;\n\n ngOnInit() {\n if (this.formField) {\n this.formField._control = this.formFieldControl;\n }\n }\n\n ngAfterViewInit() {\n if (this.matPrefix || this.matSuffix) {\n setTimeout(() => {\n defineHiddenProp(this.field, '_matprefix', this.matPrefix);\n defineHiddenProp(this.field, '_matsuffix', this.matSuffix);\n (<any> this.options)._markForCheck(this.field);\n });\n }\n }\n\n ngOnDestroy() {\n if (this.formField) {\n delete this.formField._control;\n }\n this.stateChanges.complete();\n }\n\n setDescribedByIds(ids: string[]): void { }\n onContainerClick(event: MouseEvent): void {\n this.field.focus = true;\n this.stateChanges.next();\n }\n\n get errorState() {\n const showError = this.options!.showError!(this);\n if (showError !== this._errorState) {\n this._errorState = showError;\n this.stateChanges.next();\n }\n\n return showError;\n }\n\n get controlType() {\n if (this.to.type) {\n return this.to.type;\n }\n\n if ((<any> this.field.type) instanceof Type) {\n return this.field.type!.constructor.name;\n }\n\n return this.field.type!;\n }\n get focused() { return !!this.field.focus && !this.disabled; }\n get disabled() { return !!this.to.disabled; }\n get required() { return !!this.to.required; }\n get placeholder() { return this.to.placeholder || ''; }\n get shouldPlaceholderFloat() { return this.shouldLabelFloat; }\n get value() { return this.formControl.value; }\n set value(value) { this.formControl.patchValue(value); }\n get ngControl() { return this.formControl as any; }\n get empty() { return this.value === undefined || this.value === null || this.value === ''; }\n get shouldLabelFloat() { return this.focused || !this.empty; }\n get formField(): MatFormField { return this.field ? (<any>this.field)['__formField__'] : null; }\n}\n","import { Component, ViewChild, OnInit, OnDestroy, Renderer2, AfterViewInit, AfterContentChecked, ElementRef, ViewContainerRef, ViewEncapsulation } from '@angular/core';\nimport { FieldWrapper, ɵdefineHiddenProp as defineHiddenProp, FormlyFieldConfig, FormlyConfig } from '@ngx-formly/core';\nimport { MatFormField } from '@angular/material/form-field';\nimport { MatFormFieldControl } from '@angular/material/form-field';\nimport { Subject } from 'rxjs';\nimport { FocusMonitor } from '@angular/cdk/a11y';\nimport { FieldType } from './field.type';\n\ninterface MatFormlyFieldConfig extends FormlyFieldConfig {\n __formField__: FormlyWrapperFormField;\n}\n\n@Component({\n selector: 'formly-wrapper-mat-form-field',\n template: `\n <!-- fix https://github.com/angular/material2/pull/7083 by setting width to 100% -->\n <mat-form-field\n [hideRequiredMarker]=\"true\"\n [floatLabel]=\"to.floatLabel\"\n [appearance]=\"to.appearance\"\n [color]=\"to.color\">\n <ng-container #fieldComponent></ng-container>\n <mat-label *ngIf=\"to.label && to.hideLabel !== true\">\n {{ to.label }}\n <span *ngIf=\"to.required && to.hideRequiredMarker !== true\" aria-hidden=\"true\" class=\"mat-form-field-required-marker\">*</span>\n </mat-label>\n\n <ng-container matPrefix *ngIf=\"to.prefix || to._matPrefix\">\n <ng-container *ngTemplateOutlet=\"to.prefix ? to.prefix : to._matPrefix\"></ng-container>\n </ng-container>\n\n <ng-container matSuffix *ngIf=\"to.suffix || to._matSuffix\">\n <ng-container *ngTemplateOutlet=\"to.suffix ? to.suffix : to._matSuffix\"></ng-container>\n </ng-container>\n\n <mat-error>\n <formly-validation-message [field]=\"field\"></formly-validation-message>\n </mat-error>\n <!-- fix https://github.com/angular/material2/issues/7737 by setting id to null -->\n <mat-hint *ngIf=\"to.description\" [id]=\"null\">{{ to.description }}</mat-hint>\n </mat-form-field>\n `,\n providers: [{ provide: MatFormFieldControl, useExisting: FormlyWrapperFormField }],\n styleUrls: ['./form-field.wrapper.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class FormlyWrapperFormField extends FieldWrapper<MatFormlyFieldConfig> implements OnInit, OnDestroy, MatFormFieldControl<any>, AfterViewInit, AfterContentChecked {\n // TODO: remove `any`, once dropping angular `V7` support.\n @ViewChild('fieldComponent', <any>{ read: ViewContainerRef, static: true }) fieldComponent!: ViewContainerRef;\n\n // TODO: remove `any`, once dropping angular `V7` support.\n @ViewChild(MatFormField, <any> { static: true }) formField!: MatFormField;\n\n stateChanges = new Subject<void>();\n _errorState = false;\n private initialGapCalculated = false;\n\n constructor(\n private config: FormlyConfig,\n private renderer: Renderer2,\n private elementRef: ElementRef,\n private focusMonitor: FocusMonitor,\n ) {\n super();\n }\n\n ngOnInit() {\n this.formField._control = this;\n defineHiddenProp(this.field, '__formField__', this.formField);\n\n const ref = this.config.resolveFieldTypeRef(this.formlyField);\n if (ref && !(ref.instance instanceof FieldType)) {\n console.warn(`Component '${ref.componentType.name}' must extend 'FieldType' from '@ngx-formly/material/form-field'.`);\n }\n\n // fix for https://github.com/angular/material2/issues/11437\n if (this.formlyField.hide && this.formlyField.templateOptions!.appearance === 'outline') {\n this.initialGapCalculated = true;\n }\n\n this.focusMonitor.monitor(this.elementRef, true).subscribe(origin => {\n if (!origin && this.field.focus) {\n this.field.focus = false;\n }\n\n this.stateChanges.next();\n });\n }\n\n ngAfterContentChecked() {\n if (!this.initialGapCalculated || this.formlyField.hide) {\n return;\n }\n\n this.formField.updateOutlineGap();\n this.initialGapCalculated = true;\n }\n\n ngAfterViewInit() {\n // temporary fix for https://github.com/angular/material2/issues/7891\n if (this.formField.appearance !== 'outline' && this.to.hideFieldUnderline === true) {\n const underlineElement = this.formField._elementRef.nativeElement.querySelector('.mat-form-field-underline');\n underlineElement && this.renderer.removeChild(underlineElement.parentNode, underlineElement);\n }\n }\n\n ngOnDestroy() {\n delete this.formlyField.__formField__;\n this.stateChanges.complete();\n this.focusMonitor.stopMonitoring(this.elementRef);\n }\n\n setDescribedByIds(ids: string[]): void { }\n onContainerClick(event: MouseEvent): void {\n this.formlyField.focus = true;\n this.stateChanges.next();\n }\n\n get errorState() {\n const showError = this.options!.showError!(this);\n if (showError !== this._errorState) {\n this._errorState = showError;\n this.stateChanges.next();\n }\n\n return showError;\n }\n get controlType() { return this.to.type; }\n get focused() { return !!this.formlyField.focus && !this.disabled; }\n get disabled() { return !!this.to.disabled; }\n get required() { return !!this.to.required; }\n get placeholder() { return this.to.placeholder || ''; }\n get shouldPlaceholderFloat() { return this.shouldLabelFloat; }\n get value() { return this.formControl.value; }\n get ngControl() { return this.formControl as any; }\n get empty() { return !this.formControl.value; }\n get shouldLabelFloat() { return this.focused || !this.empty; }\n\n get formlyField() { return this.field as MatFormlyFieldConfig; }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { FormlyWrapperFormField } from './form-field.wrapper';\n\n@NgModule({\n declarations: [FormlyWrapperFormField],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n MatFormFieldModule,\n FormlyModule.forChild({\n wrappers: [{\n name: 'form-field',\n component: FormlyWrapperFormField,\n }],\n }),\n ],\n})\nexport class FormlyMatFormFieldModule { }\n"],"names":["tslib_1.__extends","FieldType","defineHiddenProp","CoreFieldType"],"mappings":";;;;;;;;;;;;;AAIA;IACE,iCAAoB,KAAgB;QAAhB,UAAK,GAAL,KAAK,CAAW;KAAI;;;;;;IAExC,8CAAY;;;;;IAAZ,UAAa,OAA2B,EAAE,IAAwC;QAChF,OAAO,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC;KAC3C;IACH,8BAAC;CAAA,IAAA;;;;;;;;;;ACJD;IAAyFA,gCAAgB;IAAzG;QAAA,qEA8EC;QAlEC,uBAAiB,GAAG,IAAI,uBAAuB,CAAC,KAAI,CAAC,CAAC;QACtD,kBAAY,GAAG,IAAI,OAAO,EAAQ,CAAC;QACnC,iBAAW,GAAG,KAAK,CAAC;;KAgErB;IA1EC,sBAAIC,0CAAgB;;;;QAApB,cAAyB,OAAO,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,EAAE;;;;;QACxD,UAA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,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,kBAAkB;wBAClB,YAAY,CAAC,QAAQ,CAAC;4BACpB,QAAQ,EAAE,CAAC;oCACT,IAAI,EAAE,YAAY;oCAClB,SAAS,EAAE,sBAAsB;iCAClC,CAAC;yBACH,CAAC;qBACH;iBACF;;IACuC,+BAAC;CAdzC;;;;;;;;;;;;;;"}
@@ -1,82 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import { FormlyModule } from '@ngx-formly/core';
3
- import { ReactiveFormsModule } from '@angular/forms';
4
- import { __extends } from 'tslib';
5
- import { Component, ViewChild, NgModule } from '@angular/core';
6
- import { MatInput, MatInputModule } from '@angular/material/input';
7
- import { FieldType, FormlyMatFormFieldModule } from '@ngx-formly/material/form-field';
8
-
9
- /**
10
- * @fileoverview added by tsickle
11
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
12
- */
13
- var FormlyFieldInput = /** @class */ (function (_super) {
14
- __extends(FormlyFieldInput, _super);
15
- function FormlyFieldInput() {
16
- return _super !== null && _super.apply(this, arguments) || this;
17
- }
18
- Object.defineProperty(FormlyFieldInput.prototype, "type", {
19
- get: /**
20
- * @return {?}
21
- */
22
- function () {
23
- return this.to.type || 'text';
24
- },
25
- enumerable: true,
26
- configurable: true
27
- });
28
- FormlyFieldInput.decorators = [
29
- { type: Component, args: [{
30
- selector: 'formly-field-mat-input',
31
- template: "\n <input *ngIf=\"type !== 'number'; else numberTmp\"\n matInput\n [id]=\"id\"\n [type]=\"type || 'text'\"\n [readonly]=\"to.readonly\"\n [required]=\"to.required\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [tabindex]=\"to.tabindex\"\n [placeholder]=\"to.placeholder\">\n <ng-template #numberTmp>\n <input matInput\n [id]=\"id\"\n type=\"number\"\n [readonly]=\"to.readonly\"\n [required]=\"to.required\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [tabIndex]=\"to.tabindex\"\n [placeholder]=\"to.placeholder\">\n </ng-template>\n "
32
- }] }
33
- ];
34
- FormlyFieldInput.propDecorators = {
35
- formFieldControl: [{ type: ViewChild, args: [MatInput, (/** @type {?} */ ({ static: false })),] }]
36
- };
37
- return FormlyFieldInput;
38
- }(FieldType));
39
-
40
- /**
41
- * @fileoverview added by tsickle
42
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
43
- */
44
- var FormlyMatInputModule = /** @class */ (function () {
45
- function FormlyMatInputModule() {
46
- }
47
- FormlyMatInputModule.decorators = [
48
- { type: NgModule, args: [{
49
- declarations: [FormlyFieldInput],
50
- imports: [
51
- CommonModule,
52
- ReactiveFormsModule,
53
- MatInputModule,
54
- FormlyMatFormFieldModule,
55
- FormlyModule.forChild({
56
- types: [
57
- {
58
- name: 'input',
59
- component: FormlyFieldInput,
60
- wrappers: ['form-field'],
61
- },
62
- ],
63
- }),
64
- ],
65
- },] }
66
- ];
67
- return FormlyMatInputModule;
68
- }());
69
-
70
- /**
71
- * @fileoverview added by tsickle
72
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
73
- */
74
-
75
- /**
76
- * @fileoverview added by tsickle
77
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
78
- */
79
-
80
- export { FormlyMatInputModule, FormlyFieldInput };
81
-
82
- //# sourceMappingURL=ngx-formly-material-input.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngx-formly-material-input.js.map","sources":["ng://@ngx-formly/material/input/input.type.ts","ng://@ngx-formly/material/input/input.module.ts"],"sourcesContent":["import { Component, OnInit, ViewChild } from '@angular/core';\nimport { MatInput } from '@angular/material/input';\nimport { FieldType } from '@ngx-formly/material/form-field';\n\n@Component({\n selector: 'formly-field-mat-input',\n template: `\n <input *ngIf=\"type !== 'number'; else numberTmp\"\n matInput\n [id]=\"id\"\n [type]=\"type || 'text'\"\n [readonly]=\"to.readonly\"\n [required]=\"to.required\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [tabindex]=\"to.tabindex\"\n [placeholder]=\"to.placeholder\">\n <ng-template #numberTmp>\n <input matInput\n [id]=\"id\"\n type=\"number\"\n [readonly]=\"to.readonly\"\n [required]=\"to.required\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [tabIndex]=\"to.tabindex\"\n [placeholder]=\"to.placeholder\">\n </ng-template>\n `,\n})\nexport class FormlyFieldInput extends FieldType implements OnInit {\n @ViewChild(MatInput, <any> { static: false }) formFieldControl!: MatInput;\n\n get type() {\n return this.to.type || 'text';\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { FormlyMatFormFieldModule } from '@ngx-formly/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\n\nimport { FormlyFieldInput } from './input.type';\n\n@NgModule({\n declarations: [FormlyFieldInput],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n MatInputModule,\n\n FormlyMatFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'input',\n component: FormlyFieldInput,\n wrappers: ['form-field'],\n },\n ],\n }),\n ],\n})\nexport class FormlyMatInputModule { }\n"],"names":["tslib_1.__extends"],"mappings":";;;;;;;;;;;;;IAgCsCA,oCAAS;IA5B/C;;KAkCC;IAHC,sBAAI,kCAAI;;;;QAAR;YACE,OAAO,IAAI,CAAC,EAAE,CAAC,IAAI,IAAI,MAAM,CAAC;SAC/B;;;OAAA;;gBAjCF,SAAS,SAAC;oBACT,QAAQ,EAAE,wBAAwB;oBAClC,QAAQ,EAAE,s0BAwBT;iBACF;;;mCAEE,SAAS,SAAC,QAAQ,qBAAQ,EAAE,MAAM,EAAE,KAAK,EAAE;;IAK9C,uBAAC;CAAA,CANqC,SAAS;;;;;;AChC/C;IAUA;KAmBqC;;gBAnBpC,QAAQ,SAAC;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;oBAChC,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,cAAc;wBAEd,wBAAwB;wBACxB,YAAY,CAAC,QAAQ,CAAC;4BACpB,KAAK,EAAE;gCACL;oCACE,IAAI,EAAE,OAAO;oCACb,SAAS,EAAE,gBAAgB;oCAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;iCACzB;6BACF;yBACF,CAAC;qBACH;iBACF;;IACmC,2BAAC;CAnBrC;;;;;;;;;;;;;;"}