@ptsecurity/mosaic 13.10.0 → 14.1.0

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 (531) hide show
  1. package/_theming.scss +90 -7388
  2. package/_visual.scss +6 -2778
  3. package/autocomplete/autocomplete-origin.directive.d.ts +1 -1
  4. package/autocomplete/autocomplete-trigger.directive.d.ts +1 -1
  5. package/autocomplete/autocomplete.component.d.ts +1 -1
  6. package/button/button.component.d.ts +4 -4
  7. package/button-toggle/button-toggle.component.d.ts +2 -2
  8. package/card/card.component.d.ts +3 -3
  9. package/checkbox/checkbox-required-validator.d.ts +1 -1
  10. package/checkbox/checkbox.d.ts +7 -16
  11. package/core/common-behaviors/color.d.ts +4 -1
  12. package/core/common-behaviors/error-state.d.ts +7 -4
  13. package/core/error/error-options.d.ts +3 -3
  14. package/core/formatters/date/formatter.pipe.d.ts +95 -0
  15. package/core/formatters/index.d.ts +3 -1
  16. package/core/formatters/number/formatter.d.ts +1 -1
  17. package/core/forms/forms.directive.d.ts +2 -2
  18. package/core/highlight/highlight.pipe.d.ts +1 -1
  19. package/core/line/line.d.ts +1 -1
  20. package/core/option/action.d.ts +2 -2
  21. package/core/option/optgroup.d.ts +2 -2
  22. package/core/option/option.d.ts +1 -1
  23. package/core/pop-up/pop-up-trigger.d.ts +5 -4
  24. package/core/pop-up/pop-up.d.ts +2 -2
  25. package/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts +3 -3
  26. package/core/validation/validation.d.ts +1 -12
  27. package/datepicker/calendar-body.component.d.ts +1 -1
  28. package/datepicker/calendar.component.d.ts +30 -30
  29. package/datepicker/datepicker-input.directive.d.ts +6 -11
  30. package/datepicker/datepicker-toggle.component.d.ts +2 -2
  31. package/datepicker/datepicker.component.d.ts +2 -2
  32. package/datepicker/month-view.component.d.ts +1 -1
  33. package/datepicker/multi-year-view.component.d.ts +1 -1
  34. package/datepicker/year-view.component.d.ts +1 -1
  35. package/design-tokens/legacy-2017/tokens/components/badge.json5 +46 -46
  36. package/design-tokens/legacy-2017/tokens/components/button-toggle.json5 +2 -1
  37. package/design-tokens/legacy-2017/tokens/components/checkbox.json5 +20 -15
  38. package/design-tokens/legacy-2017/tokens/components/forms.json5 +0 -4
  39. package/design-tokens/legacy-2017/tokens/components/progress-spinner.json5 +10 -1
  40. package/design-tokens/legacy-2017/tokens/components/timezone.json5 +23 -0
  41. package/design-tokens/legacy-2017/tokens.d.ts +55 -35
  42. package/design-tokens/pt-2022/tokens/components/button-toggle.json5 +2 -1
  43. package/design-tokens/pt-2022/tokens/components/checkbox.json5 +21 -16
  44. package/design-tokens/pt-2022/tokens/components/forms.json5 +0 -4
  45. package/design-tokens/pt-2022/tokens/components/progress-spinner.json5 +10 -1
  46. package/design-tokens/pt-2022/tokens/components/timezone.json5 +23 -0
  47. package/design-tokens/pt-2022/tokens/properties/colors.json5 +2 -2
  48. package/design-tokens/pt-2022/tokens/properties/typography.json5 +17 -17
  49. package/design-tokens/pt-2022/tokens.d.ts +43 -23
  50. package/design-tokens/style-dictionary/formats/figma.js +2 -2
  51. package/design-tokens/style-dictionary/transforms/attribute/palette.js +1 -1
  52. package/design-tokens/style-dictionary/transforms/attribute/size.js +1 -1
  53. package/design-tokens/style-dictionary/transforms/attribute/typography.js +1 -1
  54. package/divider/divider.component.d.ts +1 -1
  55. package/dl/dl.component.d.ts +3 -3
  56. package/dropdown/dropdown-content.directive.d.ts +1 -1
  57. package/dropdown/dropdown-item.component.d.ts +1 -1
  58. package/dropdown/dropdown-trigger.directive.d.ts +1 -1
  59. package/dropdown/dropdown.component.d.ts +1 -1
  60. package/esm2020/autocomplete/autocomplete-origin.directive.mjs +4 -4
  61. package/esm2020/autocomplete/autocomplete-trigger.directive.mjs +7 -7
  62. package/esm2020/autocomplete/autocomplete.component.mjs +5 -6
  63. package/esm2020/autocomplete/autocomplete.module.mjs +5 -5
  64. package/esm2020/button/button.component.mjs +13 -13
  65. package/esm2020/button/button.module.mjs +7 -9
  66. package/esm2020/button-toggle/button-toggle.component.mjs +9 -9
  67. package/esm2020/button-toggle/button-toggle.module.mjs +5 -5
  68. package/esm2020/card/card.component.mjs +9 -9
  69. package/esm2020/card/card.module.mjs +7 -9
  70. package/esm2020/checkbox/checkbox-module.mjs +5 -5
  71. package/esm2020/checkbox/checkbox-required-validator.mjs +4 -4
  72. package/esm2020/checkbox/checkbox.mjs +22 -38
  73. package/esm2020/core/common-behaviors/color.mjs +6 -3
  74. package/esm2020/core/common-behaviors/common-module.mjs +5 -5
  75. package/esm2020/core/common-behaviors/disabled.mjs +1 -1
  76. package/esm2020/core/common-behaviors/error-state.mjs +1 -11
  77. package/esm2020/core/error/error-options.mjs +7 -7
  78. package/esm2020/core/formatters/date/formatter.mjs +4 -4
  79. package/esm2020/core/formatters/date/formatter.pipe.mjs +187 -0
  80. package/esm2020/core/formatters/index.mjs +65 -7
  81. package/esm2020/core/formatters/number/formatter.mjs +5 -5
  82. package/esm2020/core/forms/forms-module.mjs +5 -5
  83. package/esm2020/core/forms/forms.directive.mjs +7 -7
  84. package/esm2020/core/highlight/highlight.pipe.mjs +4 -4
  85. package/esm2020/core/highlight/index.mjs +5 -5
  86. package/esm2020/core/line/line.mjs +8 -8
  87. package/esm2020/core/option/action.mjs +6 -6
  88. package/esm2020/core/option/optgroup.mjs +6 -6
  89. package/esm2020/core/option/option-module.mjs +6 -6
  90. package/esm2020/core/option/option.mjs +6 -6
  91. package/esm2020/core/pop-up/pop-up-trigger.mjs +16 -14
  92. package/esm2020/core/pop-up/pop-up.mjs +4 -4
  93. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +6 -7
  94. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.module.mjs +5 -5
  95. package/esm2020/core/services/measure-scrollbar.service.mjs +4 -4
  96. package/esm2020/core/validation/validation.mjs +1 -114
  97. package/esm2020/datepicker/calendar-body.component.mjs +4 -4
  98. package/esm2020/datepicker/calendar.component.mjs +125 -128
  99. package/esm2020/datepicker/datepicker-input.directive.mjs +14 -32
  100. package/esm2020/datepicker/datepicker-intl.mjs +4 -4
  101. package/esm2020/datepicker/datepicker-module.mjs +11 -17
  102. package/esm2020/datepicker/datepicker-toggle.component.mjs +10 -10
  103. package/esm2020/datepicker/datepicker.component.mjs +10 -10
  104. package/esm2020/datepicker/month-view.component.mjs +6 -6
  105. package/esm2020/datepicker/multi-year-view.component.mjs +4 -4
  106. package/esm2020/datepicker/year-view.component.mjs +4 -4
  107. package/esm2020/design-tokens/legacy-2017/tokens.mjs +56 -36
  108. package/esm2020/design-tokens/pt-2022/tokens.mjs +44 -24
  109. package/esm2020/divider/divider.component.mjs +4 -4
  110. package/esm2020/divider/divider.module.mjs +5 -5
  111. package/esm2020/dl/dl.component.mjs +11 -11
  112. package/esm2020/dl/dl.module.mjs +7 -9
  113. package/esm2020/dropdown/dropdown-content.directive.mjs +4 -4
  114. package/esm2020/dropdown/dropdown-item.component.mjs +7 -7
  115. package/esm2020/dropdown/dropdown-trigger.directive.mjs +4 -4
  116. package/esm2020/dropdown/dropdown.component.mjs +5 -5
  117. package/esm2020/dropdown/dropdown.module.mjs +7 -9
  118. package/esm2020/form-field/cleaner.mjs +4 -4
  119. package/esm2020/form-field/form-field.mjs +24 -21
  120. package/esm2020/form-field/form-field.module.mjs +14 -9
  121. package/esm2020/form-field/hint.mjs +6 -7
  122. package/esm2020/form-field/password-hint.mjs +11 -12
  123. package/esm2020/form-field/prefix.mjs +4 -4
  124. package/esm2020/form-field/public-api.mjs +2 -1
  125. package/esm2020/form-field/stepper.mjs +4 -4
  126. package/esm2020/form-field/suffix.mjs +4 -4
  127. package/esm2020/form-field/validate.directive.mjs +156 -0
  128. package/esm2020/icon/icon.component.mjs +10 -11
  129. package/esm2020/icon/icon.module.mjs +7 -9
  130. package/esm2020/input/input-number-validators.mjs +7 -7
  131. package/esm2020/input/input-number.mjs +4 -4
  132. package/esm2020/input/input-password.mjs +17 -50
  133. package/esm2020/input/input.mjs +19 -46
  134. package/esm2020/input/input.module.mjs +8 -10
  135. package/esm2020/link/link.component.mjs +4 -4
  136. package/esm2020/link/link.module.mjs +6 -8
  137. package/esm2020/list/list-selection.component.mjs +10 -10
  138. package/esm2020/list/list.component.mjs +8 -8
  139. package/esm2020/list/list.module.mjs +9 -11
  140. package/esm2020/loader-overlay/loader-overlay.component.mjs +15 -15
  141. package/esm2020/loader-overlay/loader-overlay.module.mjs +8 -10
  142. package/esm2020/modal/css-unit.pipe.mjs +4 -4
  143. package/esm2020/modal/modal-control.service.mjs +4 -4
  144. package/esm2020/modal/modal.component.mjs +8 -8
  145. package/esm2020/modal/modal.directive.mjs +13 -13
  146. package/esm2020/modal/modal.module.mjs +11 -14
  147. package/esm2020/modal/modal.service.mjs +6 -6
  148. package/esm2020/navbar/navbar-item.component.mjs +36 -36
  149. package/esm2020/navbar/navbar.component.mjs +11 -11
  150. package/esm2020/navbar/navbar.module.mjs +9 -11
  151. package/esm2020/navbar/vertical-navbar.component.mjs +6 -6
  152. package/esm2020/popover/popover-confirm.component.mjs +11 -11
  153. package/esm2020/popover/popover.component.mjs +20 -11
  154. package/esm2020/popover/popover.module.mjs +6 -7
  155. package/esm2020/progress-bar/progress-bar.component.mjs +7 -8
  156. package/esm2020/progress-bar/progress-bar.module.mjs +6 -8
  157. package/esm2020/progress-spinner/progress-spinner.component.mjs +25 -11
  158. package/esm2020/progress-spinner/progress-spinner.module.mjs +6 -8
  159. package/esm2020/radio/radio.component.mjs +53 -54
  160. package/esm2020/radio/radio.module.mjs +5 -5
  161. package/esm2020/select/select-option.directive.mjs +4 -4
  162. package/esm2020/select/select.component.mjs +41 -55
  163. package/esm2020/select/select.module.mjs +10 -12
  164. package/esm2020/sidebar/sidebar.component.mjs +10 -10
  165. package/esm2020/sidebar/sidebar.module.mjs +5 -5
  166. package/esm2020/sidepanel/sidepanel-container.component.mjs +7 -7
  167. package/esm2020/sidepanel/sidepanel-directives.mjs +22 -20
  168. package/esm2020/sidepanel/sidepanel.module.mjs +11 -14
  169. package/esm2020/sidepanel/sidepanel.service.mjs +33 -29
  170. package/esm2020/splitter/splitter.component.mjs +37 -37
  171. package/esm2020/splitter/splitter.module.mjs +6 -8
  172. package/esm2020/table/table.component.mjs +4 -4
  173. package/esm2020/table/table.module.mjs +7 -9
  174. package/esm2020/tabs/paginated-tab-header.mjs +4 -4
  175. package/esm2020/tabs/tab-body.component.mjs +7 -7
  176. package/esm2020/tabs/tab-content.directive.mjs +4 -4
  177. package/esm2020/tabs/tab-group.component.mjs +29 -30
  178. package/esm2020/tabs/tab-header.component.mjs +5 -5
  179. package/esm2020/tabs/tab-label-wrapper.directive.mjs +4 -4
  180. package/esm2020/tabs/tab-label.directive.mjs +4 -4
  181. package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +7 -7
  182. package/esm2020/tabs/tab.component.mjs +4 -4
  183. package/esm2020/tabs/tabs.module.mjs +11 -13
  184. package/esm2020/tags/tag-input.mjs +4 -4
  185. package/esm2020/tags/tag-list.component.mjs +26 -35
  186. package/esm2020/tags/tag.component.mjs +23 -21
  187. package/esm2020/tags/tag.module.mjs +6 -6
  188. package/esm2020/textarea/textarea.component.mjs +24 -39
  189. package/esm2020/textarea/textarea.module.mjs +5 -5
  190. package/esm2020/timepicker/timepicker.directive.mjs +10 -27
  191. package/esm2020/timepicker/timepicker.module.mjs +8 -10
  192. package/esm2020/timezone/cities-by-filter.pipe.mjs +17 -0
  193. package/esm2020/timezone/index.mjs +2 -0
  194. package/esm2020/timezone/ptsecurity-mosaic-timezone.mjs +5 -0
  195. package/esm2020/timezone/public-api.mjs +7 -0
  196. package/esm2020/timezone/timezone-option.component.mjs +48 -0
  197. package/esm2020/timezone/timezone-option.directive.mjs +58 -0
  198. package/esm2020/timezone/timezone-select.component.mjs +40 -0
  199. package/esm2020/timezone/timezone.models.mjs +3 -0
  200. package/esm2020/timezone/timezone.module.mjs +75 -0
  201. package/esm2020/timezone/timezone.utils.mjs +72 -0
  202. package/esm2020/timezone/utc-offset.pipe.mjs +17 -0
  203. package/esm2020/toast/toast-container.component.mjs +5 -5
  204. package/esm2020/toast/toast.component.mjs +9 -9
  205. package/esm2020/toast/toast.module.mjs +12 -12
  206. package/esm2020/toast/toast.service.mjs +23 -14
  207. package/esm2020/toggle/toggle.component.mjs +13 -16
  208. package/esm2020/toggle/toggle.module.mjs +5 -5
  209. package/esm2020/tooltip/tooltip.component.mjs +14 -14
  210. package/esm2020/tooltip/tooltip.module.mjs +7 -8
  211. package/esm2020/tree/control/flat-tree-control.mjs +1 -1
  212. package/esm2020/tree/data-source/nested-data-source.mjs +1 -1
  213. package/esm2020/tree/node.mjs +4 -4
  214. package/esm2020/tree/outlet.mjs +4 -4
  215. package/esm2020/tree/padding.directive.mjs +4 -4
  216. package/esm2020/tree/toggle.mjs +10 -10
  217. package/esm2020/tree/tree-base.mjs +7 -7
  218. package/esm2020/tree/tree-option.component.mjs +8 -8
  219. package/esm2020/tree/tree-selection.component.mjs +5 -5
  220. package/esm2020/tree/tree.mjs +4 -4
  221. package/esm2020/tree/tree.module.mjs +5 -5
  222. package/esm2020/tree-select/tree-select.component.mjs +39 -53
  223. package/esm2020/tree-select/tree-select.module.mjs +11 -13
  224. package/fesm2015/ptsecurity-mosaic-autocomplete.mjs +17 -18
  225. package/fesm2015/ptsecurity-mosaic-autocomplete.mjs.map +1 -1
  226. package/fesm2015/ptsecurity-mosaic-button-toggle.mjs +12 -12
  227. package/fesm2015/ptsecurity-mosaic-button-toggle.mjs.map +1 -1
  228. package/fesm2015/ptsecurity-mosaic-button.mjs +18 -20
  229. package/fesm2015/ptsecurity-mosaic-button.mjs.map +1 -1
  230. package/fesm2015/ptsecurity-mosaic-card.mjs +14 -16
  231. package/fesm2015/ptsecurity-mosaic-card.mjs.map +1 -1
  232. package/fesm2015/ptsecurity-mosaic-checkbox.mjs +28 -44
  233. package/fesm2015/ptsecurity-mosaic-checkbox.mjs.map +1 -1
  234. package/fesm2015/ptsecurity-mosaic-core.mjs +341 -217
  235. package/fesm2015/ptsecurity-mosaic-core.mjs.map +1 -1
  236. package/fesm2015/ptsecurity-mosaic-datepicker.mjs +174 -201
  237. package/fesm2015/ptsecurity-mosaic-datepicker.mjs.map +1 -1
  238. package/fesm2015/ptsecurity-mosaic-design-tokens.mjs +153 -93
  239. package/fesm2015/ptsecurity-mosaic-design-tokens.mjs.map +1 -1
  240. package/fesm2015/ptsecurity-mosaic-divider.mjs +7 -7
  241. package/fesm2015/ptsecurity-mosaic-divider.mjs.map +1 -1
  242. package/fesm2015/ptsecurity-mosaic-dl.mjs +16 -18
  243. package/fesm2015/ptsecurity-mosaic-dl.mjs.map +1 -1
  244. package/fesm2015/ptsecurity-mosaic-dropdown.mjs +22 -24
  245. package/fesm2015/ptsecurity-mosaic-dropdown.mjs.map +1 -1
  246. package/fesm2015/ptsecurity-mosaic-form-field.mjs +216 -57
  247. package/fesm2015/ptsecurity-mosaic-form-field.mjs.map +1 -1
  248. package/fesm2015/ptsecurity-mosaic-icon.mjs +15 -18
  249. package/fesm2015/ptsecurity-mosaic-icon.mjs.map +1 -1
  250. package/fesm2015/ptsecurity-mosaic-input.mjs +45 -107
  251. package/fesm2015/ptsecurity-mosaic-input.mjs.map +1 -1
  252. package/fesm2015/ptsecurity-mosaic-link.mjs +8 -10
  253. package/fesm2015/ptsecurity-mosaic-link.mjs.map +1 -1
  254. package/fesm2015/ptsecurity-mosaic-list.mjs +24 -26
  255. package/fesm2015/ptsecurity-mosaic-list.mjs.map +1 -1
  256. package/fesm2015/ptsecurity-mosaic-loader-overlay.mjs +21 -23
  257. package/fesm2015/ptsecurity-mosaic-loader-overlay.mjs.map +1 -1
  258. package/fesm2015/ptsecurity-mosaic-modal.mjs +41 -44
  259. package/fesm2015/ptsecurity-mosaic-modal.mjs.map +1 -1
  260. package/fesm2015/ptsecurity-mosaic-navbar.mjs +58 -60
  261. package/fesm2015/ptsecurity-mosaic-navbar.mjs.map +1 -1
  262. package/fesm2015/ptsecurity-mosaic-popover.mjs +33 -25
  263. package/fesm2015/ptsecurity-mosaic-popover.mjs.map +1 -1
  264. package/fesm2015/ptsecurity-mosaic-progress-bar.mjs +11 -14
  265. package/fesm2015/ptsecurity-mosaic-progress-bar.mjs.map +1 -1
  266. package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs +29 -17
  267. package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
  268. package/fesm2015/ptsecurity-mosaic-radio.mjs +57 -57
  269. package/fesm2015/ptsecurity-mosaic-radio.mjs.map +1 -1
  270. package/fesm2015/ptsecurity-mosaic-select.mjs +52 -68
  271. package/fesm2015/ptsecurity-mosaic-select.mjs.map +1 -1
  272. package/fesm2015/ptsecurity-mosaic-sidebar.mjs +13 -13
  273. package/fesm2015/ptsecurity-mosaic-sidebar.mjs.map +1 -1
  274. package/fesm2015/ptsecurity-mosaic-sidepanel.mjs +69 -66
  275. package/fesm2015/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
  276. package/fesm2015/ptsecurity-mosaic-splitter.mjs +41 -43
  277. package/fesm2015/ptsecurity-mosaic-splitter.mjs.map +1 -1
  278. package/fesm2015/ptsecurity-mosaic-table.mjs +9 -11
  279. package/fesm2015/ptsecurity-mosaic-table.mjs.map +1 -1
  280. package/fesm2015/ptsecurity-mosaic-tabs.mjs +137 -140
  281. package/fesm2015/ptsecurity-mosaic-tabs.mjs.map +1 -1
  282. package/fesm2015/ptsecurity-mosaic-tags.mjs +54 -61
  283. package/fesm2015/ptsecurity-mosaic-tags.mjs.map +1 -1
  284. package/fesm2015/ptsecurity-mosaic-textarea.mjs +28 -42
  285. package/fesm2015/ptsecurity-mosaic-textarea.mjs.map +1 -1
  286. package/fesm2015/ptsecurity-mosaic-timepicker.mjs +15 -34
  287. package/fesm2015/ptsecurity-mosaic-timepicker.mjs.map +1 -1
  288. package/fesm2015/ptsecurity-mosaic-timezone.mjs +308 -0
  289. package/fesm2015/ptsecurity-mosaic-timezone.mjs.map +1 -0
  290. package/fesm2015/ptsecurity-mosaic-toast.mjs +135 -125
  291. package/fesm2015/ptsecurity-mosaic-toast.mjs.map +1 -1
  292. package/fesm2015/ptsecurity-mosaic-toggle.mjs +16 -19
  293. package/fesm2015/ptsecurity-mosaic-toggle.mjs.map +1 -1
  294. package/fesm2015/ptsecurity-mosaic-tooltip.mjs +19 -20
  295. package/fesm2015/ptsecurity-mosaic-tooltip.mjs.map +1 -1
  296. package/fesm2015/ptsecurity-mosaic-tree-select.mjs +50 -66
  297. package/fesm2015/ptsecurity-mosaic-tree-select.mjs.map +1 -1
  298. package/fesm2015/ptsecurity-mosaic-tree.mjs +43 -43
  299. package/fesm2015/ptsecurity-mosaic-tree.mjs.map +1 -1
  300. package/fesm2020/ptsecurity-mosaic-autocomplete.mjs +17 -18
  301. package/fesm2020/ptsecurity-mosaic-autocomplete.mjs.map +1 -1
  302. package/fesm2020/ptsecurity-mosaic-button-toggle.mjs +12 -12
  303. package/fesm2020/ptsecurity-mosaic-button-toggle.mjs.map +1 -1
  304. package/fesm2020/ptsecurity-mosaic-button.mjs +18 -20
  305. package/fesm2020/ptsecurity-mosaic-button.mjs.map +1 -1
  306. package/fesm2020/ptsecurity-mosaic-card.mjs +14 -16
  307. package/fesm2020/ptsecurity-mosaic-card.mjs.map +1 -1
  308. package/fesm2020/ptsecurity-mosaic-checkbox.mjs +28 -44
  309. package/fesm2020/ptsecurity-mosaic-checkbox.mjs.map +1 -1
  310. package/fesm2020/ptsecurity-mosaic-core.mjs +338 -217
  311. package/fesm2020/ptsecurity-mosaic-core.mjs.map +1 -1
  312. package/fesm2020/ptsecurity-mosaic-datepicker.mjs +173 -200
  313. package/fesm2020/ptsecurity-mosaic-datepicker.mjs.map +1 -1
  314. package/fesm2020/ptsecurity-mosaic-design-tokens.mjs +153 -93
  315. package/fesm2020/ptsecurity-mosaic-design-tokens.mjs.map +1 -1
  316. package/fesm2020/ptsecurity-mosaic-divider.mjs +7 -7
  317. package/fesm2020/ptsecurity-mosaic-divider.mjs.map +1 -1
  318. package/fesm2020/ptsecurity-mosaic-dl.mjs +16 -18
  319. package/fesm2020/ptsecurity-mosaic-dl.mjs.map +1 -1
  320. package/fesm2020/ptsecurity-mosaic-dropdown.mjs +22 -24
  321. package/fesm2020/ptsecurity-mosaic-dropdown.mjs.map +1 -1
  322. package/fesm2020/ptsecurity-mosaic-form-field.mjs +214 -57
  323. package/fesm2020/ptsecurity-mosaic-form-field.mjs.map +1 -1
  324. package/fesm2020/ptsecurity-mosaic-icon.mjs +15 -18
  325. package/fesm2020/ptsecurity-mosaic-icon.mjs.map +1 -1
  326. package/fesm2020/ptsecurity-mosaic-input.mjs +45 -107
  327. package/fesm2020/ptsecurity-mosaic-input.mjs.map +1 -1
  328. package/fesm2020/ptsecurity-mosaic-link.mjs +8 -10
  329. package/fesm2020/ptsecurity-mosaic-link.mjs.map +1 -1
  330. package/fesm2020/ptsecurity-mosaic-list.mjs +24 -26
  331. package/fesm2020/ptsecurity-mosaic-list.mjs.map +1 -1
  332. package/fesm2020/ptsecurity-mosaic-loader-overlay.mjs +21 -23
  333. package/fesm2020/ptsecurity-mosaic-loader-overlay.mjs.map +1 -1
  334. package/fesm2020/ptsecurity-mosaic-modal.mjs +41 -44
  335. package/fesm2020/ptsecurity-mosaic-modal.mjs.map +1 -1
  336. package/fesm2020/ptsecurity-mosaic-navbar.mjs +58 -60
  337. package/fesm2020/ptsecurity-mosaic-navbar.mjs.map +1 -1
  338. package/fesm2020/ptsecurity-mosaic-popover.mjs +33 -25
  339. package/fesm2020/ptsecurity-mosaic-popover.mjs.map +1 -1
  340. package/fesm2020/ptsecurity-mosaic-progress-bar.mjs +11 -14
  341. package/fesm2020/ptsecurity-mosaic-progress-bar.mjs.map +1 -1
  342. package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs +29 -17
  343. package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
  344. package/fesm2020/ptsecurity-mosaic-radio.mjs +56 -57
  345. package/fesm2020/ptsecurity-mosaic-radio.mjs.map +1 -1
  346. package/fesm2020/ptsecurity-mosaic-select.mjs +50 -67
  347. package/fesm2020/ptsecurity-mosaic-select.mjs.map +1 -1
  348. package/fesm2020/ptsecurity-mosaic-sidebar.mjs +13 -13
  349. package/fesm2020/ptsecurity-mosaic-sidebar.mjs.map +1 -1
  350. package/fesm2020/ptsecurity-mosaic-sidepanel.mjs +69 -66
  351. package/fesm2020/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
  352. package/fesm2020/ptsecurity-mosaic-splitter.mjs +41 -43
  353. package/fesm2020/ptsecurity-mosaic-splitter.mjs.map +1 -1
  354. package/fesm2020/ptsecurity-mosaic-table.mjs +9 -11
  355. package/fesm2020/ptsecurity-mosaic-table.mjs.map +1 -1
  356. package/fesm2020/ptsecurity-mosaic-tabs.mjs +66 -69
  357. package/fesm2020/ptsecurity-mosaic-tabs.mjs.map +1 -1
  358. package/fesm2020/ptsecurity-mosaic-tags.mjs +53 -61
  359. package/fesm2020/ptsecurity-mosaic-tags.mjs.map +1 -1
  360. package/fesm2020/ptsecurity-mosaic-textarea.mjs +26 -41
  361. package/fesm2020/ptsecurity-mosaic-textarea.mjs.map +1 -1
  362. package/fesm2020/ptsecurity-mosaic-timepicker.mjs +15 -34
  363. package/fesm2020/ptsecurity-mosaic-timepicker.mjs.map +1 -1
  364. package/fesm2020/ptsecurity-mosaic-timezone.mjs +306 -0
  365. package/fesm2020/ptsecurity-mosaic-timezone.mjs.map +1 -0
  366. package/fesm2020/ptsecurity-mosaic-toast.mjs +130 -120
  367. package/fesm2020/ptsecurity-mosaic-toast.mjs.map +1 -1
  368. package/fesm2020/ptsecurity-mosaic-toggle.mjs +16 -19
  369. package/fesm2020/ptsecurity-mosaic-toggle.mjs.map +1 -1
  370. package/fesm2020/ptsecurity-mosaic-tooltip.mjs +19 -20
  371. package/fesm2020/ptsecurity-mosaic-tooltip.mjs.map +1 -1
  372. package/fesm2020/ptsecurity-mosaic-tree-select.mjs +47 -64
  373. package/fesm2020/ptsecurity-mosaic-tree-select.mjs.map +1 -1
  374. package/fesm2020/ptsecurity-mosaic-tree.mjs +43 -43
  375. package/fesm2020/ptsecurity-mosaic-tree.mjs.map +1 -1
  376. package/form-field/cleaner.d.ts +1 -1
  377. package/form-field/form-field.d.ts +13 -7
  378. package/form-field/form-field.module.d.ts +4 -3
  379. package/form-field/hint.d.ts +3 -3
  380. package/form-field/password-hint.d.ts +2 -3
  381. package/form-field/prefix.d.ts +1 -1
  382. package/form-field/public-api.d.ts +1 -0
  383. package/form-field/stepper.d.ts +1 -1
  384. package/form-field/suffix.d.ts +1 -1
  385. package/form-field/validate.directive.d.ts +32 -0
  386. package/icon/icon.component.d.ts +4 -4
  387. package/input/input-number-validators.d.ts +2 -2
  388. package/input/input-number.d.ts +1 -1
  389. package/input/input-password.d.ts +9 -15
  390. package/input/input.d.ts +14 -14
  391. package/link/link.component.d.ts +1 -1
  392. package/list/list-selection.component.d.ts +2 -2
  393. package/list/list.component.d.ts +2 -2
  394. package/loader-overlay/loader-overlay.component.d.ts +4 -4
  395. package/modal/css-unit.pipe.d.ts +1 -1
  396. package/modal/modal.component.d.ts +1 -1
  397. package/modal/modal.directive.d.ts +4 -4
  398. package/navbar/navbar-item.component.d.ts +11 -11
  399. package/navbar/navbar.component.d.ts +3 -3
  400. package/navbar/vertical-navbar.component.d.ts +1 -1
  401. package/package.json +56 -48
  402. package/popover/popover-confirm.component.d.ts +2 -2
  403. package/popover/popover.component.d.ts +5 -5
  404. package/prebuilt-themes/dark-theme.css +1 -1
  405. package/prebuilt-themes/default-theme.css +1 -1
  406. package/prebuilt-visual/default-visual.css +1 -1
  407. package/progress-bar/progress-bar.component.d.ts +3 -3
  408. package/progress-spinner/progress-spinner.component.d.ts +8 -3
  409. package/radio/radio.component.d.ts +11 -17
  410. package/select/select-option.directive.d.ts +1 -1
  411. package/select/select.component.d.ts +16 -14
  412. package/sidebar/sidebar.component.d.ts +3 -3
  413. package/sidepanel/sidepanel-container.component.d.ts +1 -1
  414. package/sidepanel/sidepanel-directives.d.ts +5 -5
  415. package/splitter/splitter.component.d.ts +4 -4
  416. package/table/table.component.d.ts +1 -1
  417. package/tabs/paginated-tab-header.d.ts +1 -1
  418. package/tabs/tab-body.component.d.ts +2 -2
  419. package/tabs/tab-content.directive.d.ts +1 -1
  420. package/tabs/tab-group.component.d.ts +8 -8
  421. package/tabs/tab-header.component.d.ts +1 -1
  422. package/tabs/tab-label-wrapper.directive.d.ts +1 -1
  423. package/tabs/tab-label.directive.d.ts +1 -1
  424. package/tabs/tab-nav-bar/tab-nav-bar.d.ts +2 -2
  425. package/tabs/tab.component.d.ts +1 -1
  426. package/tags/tag-input.d.ts +1 -1
  427. package/tags/tag-list.component.d.ts +14 -10
  428. package/tags/tag.component.d.ts +8 -6
  429. package/textarea/textarea.component.d.ts +14 -13
  430. package/timepicker/timepicker.directive.d.ts +5 -10
  431. package/timezone/README.md +0 -0
  432. package/timezone/cities-by-filter.pipe.d.ts +7 -0
  433. package/timezone/index.d.ts +1 -0
  434. package/timezone/public-api.d.ts +6 -0
  435. package/timezone/timezone-option.component.d.ts +15 -0
  436. package/timezone/timezone-option.directive.d.ts +20 -0
  437. package/timezone/timezone-select.component.d.ts +14 -0
  438. package/timezone/timezone.models.d.ts +16 -0
  439. package/timezone/timezone.module.d.ts +19 -0
  440. package/timezone/timezone.utils.d.ts +18 -0
  441. package/timezone/utc-offset.pipe.d.ts +7 -0
  442. package/toast/toast-container.component.d.ts +1 -1
  443. package/toast/toast.component.d.ts +1 -1
  444. package/toast/toast.service.d.ts +6 -4
  445. package/toggle/toggle.component.d.ts +5 -5
  446. package/tooltip/tooltip.component.d.ts +5 -6
  447. package/tree/control/flat-tree-control.d.ts +8 -8
  448. package/tree/node.d.ts +1 -1
  449. package/tree/outlet.d.ts +1 -1
  450. package/tree/padding.directive.d.ts +1 -1
  451. package/tree/toggle.d.ts +3 -3
  452. package/tree/tree-base.d.ts +2 -2
  453. package/tree/tree-option.component.d.ts +1 -1
  454. package/tree/tree-selection.component.d.ts +1 -1
  455. package/tree/tree.d.ts +1 -1
  456. package/tree-select/tree-select.component.d.ts +14 -12
  457. package/autocomplete/package.json +0 -10
  458. package/autocomplete/ptsecurity-mosaic-autocomplete.d.ts +0 -5
  459. package/button/package.json +0 -10
  460. package/button/ptsecurity-mosaic-button.d.ts +0 -5
  461. package/button-toggle/package.json +0 -10
  462. package/button-toggle/ptsecurity-mosaic-button-toggle.d.ts +0 -5
  463. package/card/package.json +0 -10
  464. package/card/ptsecurity-mosaic-card.d.ts +0 -5
  465. package/checkbox/package.json +0 -10
  466. package/checkbox/ptsecurity-mosaic-checkbox.d.ts +0 -5
  467. package/core/package.json +0 -10
  468. package/core/ptsecurity-mosaic-core.d.ts +0 -5
  469. package/datepicker/package.json +0 -10
  470. package/datepicker/ptsecurity-mosaic-datepicker.d.ts +0 -5
  471. package/design-tokens/package.json +0 -10
  472. package/design-tokens/ptsecurity-mosaic-design-tokens.d.ts +0 -5
  473. package/divider/package.json +0 -10
  474. package/divider/ptsecurity-mosaic-divider.d.ts +0 -5
  475. package/dl/package.json +0 -10
  476. package/dl/ptsecurity-mosaic-dl.d.ts +0 -5
  477. package/dropdown/package.json +0 -10
  478. package/dropdown/ptsecurity-mosaic-dropdown.d.ts +0 -5
  479. package/form-field/package.json +0 -10
  480. package/form-field/ptsecurity-mosaic-form-field.d.ts +0 -5
  481. package/icon/package.json +0 -10
  482. package/icon/ptsecurity-mosaic-icon.d.ts +0 -5
  483. package/input/package.json +0 -10
  484. package/input/ptsecurity-mosaic-input.d.ts +0 -5
  485. package/link/package.json +0 -10
  486. package/link/ptsecurity-mosaic-link.d.ts +0 -5
  487. package/list/package.json +0 -10
  488. package/list/ptsecurity-mosaic-list.d.ts +0 -5
  489. package/loader-overlay/package.json +0 -10
  490. package/loader-overlay/ptsecurity-mosaic-loader-overlay.d.ts +0 -5
  491. package/modal/package.json +0 -10
  492. package/modal/ptsecurity-mosaic-modal.d.ts +0 -5
  493. package/navbar/package.json +0 -10
  494. package/navbar/ptsecurity-mosaic-navbar.d.ts +0 -5
  495. package/popover/package.json +0 -10
  496. package/popover/ptsecurity-mosaic-popover.d.ts +0 -5
  497. package/progress-bar/package.json +0 -10
  498. package/progress-bar/ptsecurity-mosaic-progress-bar.d.ts +0 -5
  499. package/progress-spinner/package.json +0 -10
  500. package/progress-spinner/ptsecurity-mosaic-progress-spinner.d.ts +0 -5
  501. package/ptsecurity-mosaic.d.ts +0 -5
  502. package/radio/package.json +0 -10
  503. package/radio/ptsecurity-mosaic-radio.d.ts +0 -5
  504. package/select/package.json +0 -10
  505. package/select/ptsecurity-mosaic-select.d.ts +0 -5
  506. package/sidebar/package.json +0 -10
  507. package/sidebar/ptsecurity-mosaic-sidebar.d.ts +0 -5
  508. package/sidepanel/package.json +0 -10
  509. package/sidepanel/ptsecurity-mosaic-sidepanel.d.ts +0 -5
  510. package/splitter/package.json +0 -10
  511. package/splitter/ptsecurity-mosaic-splitter.d.ts +0 -5
  512. package/table/package.json +0 -10
  513. package/table/ptsecurity-mosaic-table.d.ts +0 -5
  514. package/tabs/package.json +0 -10
  515. package/tabs/ptsecurity-mosaic-tabs.d.ts +0 -5
  516. package/tags/package.json +0 -10
  517. package/tags/ptsecurity-mosaic-tags.d.ts +0 -5
  518. package/textarea/package.json +0 -10
  519. package/textarea/ptsecurity-mosaic-textarea.d.ts +0 -5
  520. package/timepicker/package.json +0 -10
  521. package/timepicker/ptsecurity-mosaic-timepicker.d.ts +0 -5
  522. package/toast/package.json +0 -10
  523. package/toast/ptsecurity-mosaic-toast.d.ts +0 -5
  524. package/toggle/package.json +0 -10
  525. package/toggle/ptsecurity-mosaic-toggle.d.ts +0 -5
  526. package/tooltip/package.json +0 -10
  527. package/tooltip/ptsecurity-mosaic-tooltip.d.ts +0 -5
  528. package/tree/package.json +0 -10
  529. package/tree/ptsecurity-mosaic-tree.d.ts +0 -5
  530. package/tree-select/package.json +0 -10
  531. package/tree-select/ptsecurity-mosaic-tree-select.d.ts +0 -5
@@ -1,23 +1,25 @@
1
- import * as i2 from '@angular/common';
1
+ import * as i1$1 from '@angular/common';
2
2
  import { CommonModule } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
- import { Component, Directive, Input, forwardRef, ChangeDetectionStrategy, Inject, EventEmitter, Output, ViewEncapsulation, ContentChild, ContentChildren, ViewChild, NgModule } from '@angular/core';
4
+ import { Component, Directive, Input, ChangeDetectionStrategy, Inject, EventEmitter, Output, InjectionToken, ViewEncapsulation, ContentChild, ContentChildren, ViewChild, forwardRef, Optional, Self, NgModule } from '@angular/core';
5
5
  import * as i1 from '@ptsecurity/mosaic/icon';
6
6
  import { McIconModule } from '@ptsecurity/mosaic/icon';
7
- import { ThemePalette, mixinColor } from '@ptsecurity/mosaic/core';
7
+ import { ThemePalette, mixinColor, MC_VALIDATION } from '@ptsecurity/mosaic/core';
8
8
  import { F8, ESCAPE } from '@ptsecurity/cdk/keycodes';
9
9
  import { Subject, EMPTY, merge } from 'rxjs';
10
10
  import { startWith, takeUntil } from 'rxjs/operators';
11
- import * as i1$1 from '@angular/cdk/a11y';
11
+ import * as i1$2 from '@angular/cdk/a11y';
12
+ import * as i1$3 from '@angular/forms';
13
+ import { NgModel, FormControlName, RequiredValidator, NG_VALIDATORS } from '@angular/forms';
12
14
 
13
15
  class McCleaner {
14
16
  constructor() {
15
17
  this.themePalette = ThemePalette;
16
18
  }
17
19
  }
18
- /** @nocollapse */ /** @nocollapse */ McCleaner.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McCleaner, deps: [], target: i0.ɵɵFactoryTarget.Component });
19
- /** @nocollapse */ /** @nocollapse */ McCleaner.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: McCleaner, selector: "mc-cleaner", host: { classAttribute: "mc-cleaner" }, exportAs: ["mcCleaner"], ngImport: i0, template: `<i class="mc-icon_light" mc-icon="mc-close-circle_16" [color]="themePalette.Second"></i>`, isInline: true, components: [{ type: i1.McIcon, selector: "[mc-icon]", inputs: ["color"] }], directives: [{ type: i1.McIconCSSStyler, selector: "[mc-icon]" }] });
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McCleaner, decorators: [{
20
+ /** @nocollapse */ McCleaner.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McCleaner, deps: [], target: i0.ɵɵFactoryTarget.Component });
21
+ /** @nocollapse */ McCleaner.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: McCleaner, selector: "mc-cleaner", host: { classAttribute: "mc-cleaner" }, exportAs: ["mcCleaner"], ngImport: i0, template: `<i class="mc-icon_light" mc-icon="mc-close-circle_16" [color]="themePalette.Second"></i>`, isInline: true, dependencies: [{ kind: "component", type: i1.McIcon, selector: "[mc-icon]", inputs: ["color"] }, { kind: "directive", type: i1.McIconCSSStyler, selector: "[mc-icon]" }] });
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McCleaner, decorators: [{
21
23
  type: Component,
22
24
  args: [{
23
25
  selector: 'mc-cleaner',
@@ -43,9 +45,8 @@ function getMcFormFieldYouCanNotUseCleanerInNumberInputError() {
43
45
 
44
46
  let nextHintUniqueId = 0;
45
47
  class McHintBase {
46
- // tslint:disable-next-line:naming-convention
47
- constructor(_elementRef) {
48
- this._elementRef = _elementRef;
48
+ constructor(elementRef) {
49
+ this.elementRef = elementRef;
49
50
  }
50
51
  }
51
52
  // tslint:disable-next-line:naming-convention
@@ -56,9 +57,9 @@ class McHint extends McHintMixinBase {
56
57
  this.id = `mc-hint-${nextHintUniqueId++}`;
57
58
  }
58
59
  }
59
- /** @nocollapse */ /** @nocollapse */ McHint.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McHint, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
60
- /** @nocollapse */ /** @nocollapse */ McHint.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: McHint, selector: "mc-hint", inputs: { color: "color", id: "id" }, host: { properties: { "attr.id": "id" }, classAttribute: "mc-hint" }, usesInheritance: true, ngImport: i0 });
61
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McHint, decorators: [{
60
+ /** @nocollapse */ McHint.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McHint, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
61
+ /** @nocollapse */ McHint.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.2", type: McHint, selector: "mc-hint", inputs: { color: "color", id: "id" }, host: { properties: { "attr.id": "id" }, classAttribute: "mc-hint" }, usesInheritance: true, ngImport: i0 });
62
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McHint, decorators: [{
62
63
  type: Directive,
63
64
  args: [{
64
65
  selector: 'mc-hint',
@@ -163,16 +164,16 @@ class McPasswordHint {
163
164
  return this.lastControlValue !== this.formField.control.value;
164
165
  }
165
166
  }
166
- /** @nocollapse */ /** @nocollapse */ McPasswordHint.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McPasswordHint, deps: [{ token: i0.ChangeDetectorRef }, { token: forwardRef(() => McFormField) }], target: i0.ɵɵFactoryTarget.Component });
167
- /** @nocollapse */ /** @nocollapse */ McPasswordHint.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: McPasswordHint, selector: "mc-password-hint", inputs: { id: "id", rule: "rule", min: "min", max: "max", regex: "regex" }, host: { properties: { "class.mc-password-hint_valid": "checked", "class.mc-password-hint_invalid": "hasError", "attr.id": "id" }, classAttribute: "mc-password-hint" }, ngImport: i0, template: `
167
+ /** @nocollapse */ McPasswordHint.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McPasswordHint, deps: [{ token: i0.ChangeDetectorRef }, { token: MC_FORM_FIELD }], target: i0.ɵɵFactoryTarget.Component });
168
+ /** @nocollapse */ McPasswordHint.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: McPasswordHint, selector: "mc-password-hint", inputs: { id: "id", rule: "rule", min: "min", max: "max", regex: "regex" }, host: { properties: { "class.mc-password-hint_valid": "checked", "class.mc-password-hint_invalid": "hasError", "attr.id": "id" }, classAttribute: "mc-password-hint" }, ngImport: i0, template: `
168
169
  <i *ngIf="!checked" class="mc-password-hint__icon" mc-icon="mc-close-M_16"></i>
169
170
  <i *ngIf="checked" class="mc-password-hint__icon" mc-icon="mc-check_16"></i>
170
171
 
171
172
  <span class="mc-password-hint__text">
172
173
  <ng-content></ng-content>
173
174
  </span>
174
- `, isInline: true, components: [{ type: i1.McIcon, selector: "[mc-icon]", inputs: ["color"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.McIconCSSStyler, selector: "[mc-icon]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
175
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McPasswordHint, decorators: [{
175
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i1.McIcon, selector: "[mc-icon]", inputs: ["color"] }, { kind: "directive", type: i1.McIconCSSStyler, selector: "[mc-icon]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
176
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McPasswordHint, decorators: [{
176
177
  type: Component,
177
178
  args: [{
178
179
  selector: 'mc-password-hint',
@@ -193,9 +194,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
193
194
  changeDetection: ChangeDetectionStrategy.OnPush
194
195
  }]
195
196
  }], ctorParameters: function () {
196
- return [{ type: i0.ChangeDetectorRef }, { type: McFormField, decorators: [{
197
+ return [{ type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
197
198
  type: Inject,
198
- args: [forwardRef(() => McFormField)]
199
+ args: [MC_FORM_FIELD]
199
200
  }] }];
200
201
  }, propDecorators: { id: [{
201
202
  type: Input
@@ -211,9 +212,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
211
212
 
212
213
  class McPrefix {
213
214
  }
214
- /** @nocollapse */ /** @nocollapse */ McPrefix.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McPrefix, deps: [], target: i0.ɵɵFactoryTarget.Directive });
215
- /** @nocollapse */ /** @nocollapse */ McPrefix.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: McPrefix, selector: "[mcPrefix]", ngImport: i0 });
216
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McPrefix, decorators: [{
215
+ /** @nocollapse */ McPrefix.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McPrefix, deps: [], target: i0.ɵɵFactoryTarget.Directive });
216
+ /** @nocollapse */ McPrefix.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.2", type: McPrefix, selector: "[mcPrefix]", ngImport: i0 });
217
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McPrefix, decorators: [{
217
218
  type: Directive,
218
219
  args: [{
219
220
  selector: '[mcPrefix]'
@@ -245,8 +246,8 @@ class McStepper {
245
246
  $event.preventDefault();
246
247
  }
247
248
  }
248
- /** @nocollapse */ /** @nocollapse */ McStepper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McStepper, deps: [], target: i0.ɵɵFactoryTarget.Component });
249
- /** @nocollapse */ /** @nocollapse */ McStepper.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: McStepper, selector: "mc-stepper", outputs: { stepUp: "stepUp", stepDown: "stepDown" }, ngImport: i0, template: `
249
+ /** @nocollapse */ McStepper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McStepper, deps: [], target: i0.ɵɵFactoryTarget.Component });
250
+ /** @nocollapse */ McStepper.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: McStepper, selector: "mc-stepper", outputs: { stepUp: "stepUp", stepDown: "stepDown" }, ngImport: i0, template: `
250
251
  <i class="mc mc-icon mc-icon_light mc-second mc-stepper-step-up mc-angle-down-L_16"
251
252
  (mousedown)="onStepUp($event)">
252
253
  </i>
@@ -254,7 +255,7 @@ class McStepper {
254
255
  (mousedown)="onStepDown($event)">
255
256
  </i>
256
257
  `, isInline: true });
257
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McStepper, decorators: [{
258
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McStepper, decorators: [{
258
259
  type: Component,
259
260
  args: [{
260
261
  selector: 'mc-stepper',
@@ -275,9 +276,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
275
276
 
276
277
  class McSuffix {
277
278
  }
278
- /** @nocollapse */ /** @nocollapse */ McSuffix.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McSuffix, deps: [], target: i0.ɵɵFactoryTarget.Directive });
279
- /** @nocollapse */ /** @nocollapse */ McSuffix.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: McSuffix, selector: "[mcSuffix]", ngImport: i0 });
280
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McSuffix, decorators: [{
279
+ /** @nocollapse */ McSuffix.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McSuffix, deps: [], target: i0.ɵɵFactoryTarget.Directive });
280
+ /** @nocollapse */ McSuffix.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.2", type: McSuffix, selector: "[mcSuffix]", ngImport: i0 });
281
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McSuffix, decorators: [{
281
282
  type: Directive,
282
283
  args: [{
283
284
  selector: '[mcSuffix]'
@@ -285,20 +286,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
285
286
  }] });
286
287
 
287
288
  let nextUniqueId = 0;
289
+ /**
290
+ * Injection token that can be used to inject an instances of `MatFormField`. It serves
291
+ * as alternative token to the actual `MatFormField` class which would cause unnecessary
292
+ * retention of the `MatFormField` class and its component metadata.
293
+ */
294
+ const MC_FORM_FIELD = new InjectionToken('McFormField');
288
295
  class McFormFieldBase {
289
- // tslint:disable-next-line:naming-convention
290
- constructor(_elementRef) {
291
- this._elementRef = _elementRef;
296
+ constructor(elementRef) {
297
+ this.elementRef = elementRef;
292
298
  }
293
299
  }
294
300
  // tslint:disable-next-line:naming-convention
295
301
  const McFormFieldMixinBase = mixinColor(McFormFieldBase);
296
302
  class McFormField extends McFormFieldMixinBase {
297
- constructor(
298
- // tslint:disable-next-line:naming-convention
299
- _elementRef, _changeDetectorRef, focusMonitor) {
300
- super(_elementRef);
301
- this._elementRef = _elementRef;
303
+ constructor(elementRef, _changeDetectorRef, focusMonitor) {
304
+ super(elementRef);
305
+ this.elementRef = elementRef;
302
306
  this._changeDetectorRef = _changeDetectorRef;
303
307
  this.focusMonitor = focusMonitor;
304
308
  // Unique id for the internal form field label.
@@ -355,7 +359,7 @@ class McFormField extends McFormFieldMixinBase {
355
359
  }
356
360
  this.validateControlChild();
357
361
  if (this.control.controlType) {
358
- this._elementRef.nativeElement.classList.add(`mc-form-field-type-${this.control.controlType}`);
362
+ this.elementRef.nativeElement.classList.add(`mc-form-field-type-${this.control.controlType}`);
359
363
  }
360
364
  // Subscribe to changes in the child control state in order to update the form field UI.
361
365
  this.control.stateChanges
@@ -417,7 +421,7 @@ class McFormField extends McFormFieldMixinBase {
417
421
  * positioned relative to.
418
422
  */
419
423
  getConnectedOverlayOrigin() {
420
- return this.connectionContainerRef || this._elementRef;
424
+ return this.connectionContainerRef || this.elementRef;
421
425
  }
422
426
  /** Determines whether a class from the NgControl should be forwarded to the host element. */
423
427
  shouldForward(prop) {
@@ -430,10 +434,10 @@ class McFormField extends McFormFieldMixinBase {
430
434
  this.stopFocusMonitor();
431
435
  }
432
436
  runFocusMonitor() {
433
- this.focusMonitor.monitor(this._elementRef.nativeElement, true);
437
+ this.focusMonitor.monitor(this.elementRef.nativeElement, true);
434
438
  }
435
439
  stopFocusMonitor() {
436
- this.focusMonitor.stopMonitoring(this._elementRef.nativeElement);
440
+ this.focusMonitor.stopMonitoring(this.elementRef.nativeElement);
437
441
  }
438
442
  /** Throws an error if the form field's control is missing. */
439
443
  validateControlChild() {
@@ -442,9 +446,9 @@ class McFormField extends McFormFieldMixinBase {
442
446
  }
443
447
  }
444
448
  }
445
- /** @nocollapse */ /** @nocollapse */ McFormField.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McFormField, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$1.FocusMonitor }], target: i0.ɵɵFactoryTarget.Component });
446
- /** @nocollapse */ /** @nocollapse */ McFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: McFormField, selector: "mc-form-field", inputs: { color: "color" }, host: { listeners: { "keydown": "onKeyDown($event)", "mouseenter": "onHoverChanged(true)", "mouseleave": "onHoverChanged(false)" }, properties: { "class.mc-form-field_invalid": "control.errorState", "class.mc-form-field_has-prefix": "hasPrefix", "class.mc-form-field_has-suffix": "hasSuffix", "class.mc-form-field_has-cleaner": "canShowCleaner", "class.mc-form-field_has-stepper": "canShowStepper", "class.mc-disabled": "control.disabled", "class.ng-untouched": "shouldForward(\"untouched\")", "class.ng-touched": "shouldForward(\"touched\")", "class.ng-pristine": "shouldForward(\"pristine\")", "class.ng-dirty": "shouldForward(\"dirty\")", "class.ng-valid": "shouldForward(\"valid\")", "class.ng-invalid": "shouldForward(\"invalid\")", "class.ng-pending": "shouldForward(\"pending\")" }, classAttribute: "mc-form-field" }, queries: [{ propertyName: "control", first: true, predicate: McFormFieldControl, descendants: true }, { propertyName: "stepper", first: true, predicate: McStepper, descendants: true }, { propertyName: "cleaner", first: true, predicate: McCleaner, descendants: true }, { propertyName: "hint", predicate: McHint }, { propertyName: "passwordHints", predicate: McPasswordHint }, { propertyName: "suffix", predicate: McSuffix }, { propertyName: "prefix", predicate: McPrefix }], viewQueries: [{ propertyName: "connectionContainerRef", first: true, predicate: ["connectionContainer"], descendants: true, static: true }], exportAs: ["mcFormField"], usesInheritance: true, ngImport: i0, template: "<div class=\"mc-form-field__container\" (click)=\"onContainerClick($event)\">\n\n <div class=\"mc-form-field__prefix\" *ngIf=\"hasPrefix\">\n <ng-content select=\"[mcPrefix]\"></ng-content>\n </div>\n\n <div class=\"mc-form-field__infix\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"mc-form-field__suffix\" *ngIf=\"hasSuffix\">\n <ng-content select=\"[mcSuffix]\"></ng-content>\n </div>\n\n <div class=\"mc-form-field__cleaner\"\n *ngIf=\"canShowCleaner && !hasSuffix\"\n (click)=\"clearValue($event)\">\n <ng-content select=\"mc-cleaner\"></ng-content>\n </div>\n\n <ng-content select=\"mc-password-toggle\"></ng-content>\n\n <ng-content *ngIf=\"canShowStepper\" select=\"mc-stepper\"></ng-content>\n</div>\n\n<div class=\"mc-form-field__hint\">\n <ng-content select=\"mc-hint, mc-password-hint\"></ng-content>\n</div>\n", styles: [".mc-form-field{position:relative;display:inline-block;width:100%;border-radius:4px;border-radius:var(--mc-form-field-size-border-radius, 4px)}.mc-form-field:hover{z-index:1}.mc-form-field.mc-focused{z-index:2}.mc-form-field-type-input-password .mc-input{padding-right:32px;padding-right:var(--mc-form-field-size-button-width, 32px)}.mc-hint{display:block}.mc-password-hint{display:block;padding-left:20px;padding-left:calc(16px + var(--mc-form-field-password-hint-size-icon-margin, 4px))}.mc-password-hint .mc-icon{position:absolute;left:0}.mc-form-field__hint>.mc-password-hint{margin-top:8px;margin-top:var(--mc-form-field-password-hint-size-margin-top, 8px)}.mc-form-field__hint>.mc-hint{margin-top:4px;margin-top:var(--mc-form-field-hint-size-margin-top, 4px)}.mc-form-field__container{position:relative;border-width:1px;border-width:var(--mc-form-field-size-border-width, 1px);border-style:solid;border-color:transparent;border-radius:4px;border-radius:var(--mc-form-field-size-border-radius, 4px)}.mc-form-field_without-borders .mc-form-field__container{border-color:transparent}.mc-form-field__prefix,.mc-form-field__suffix{position:absolute;top:0;bottom:0;width:32px;display:flex;flex-direction:row;justify-content:center;align-items:center}.mc-form-field__prefix{left:0}.mc-form-field__suffix{right:0}.mc-form-field_has-suffix .mc-input,.mc-form-field_has-cleaner .mc-input,.mc-form-field_has-stepper .mc-input{padding-right:32px;padding-right:var(--mc-form-field-size-button-width, 32px)}.mc-form-field_has-prefix .mc-input{padding-left:32px;padding-left:var(--mc-form-field-size-button-width, 32px)}.mc-cleaner{display:flex;width:32px;width:var(--mc-form-field-size-button-width, 32px);height:100%;cursor:pointer}.mc-cleaner .mc-icon{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.mc-form-field__cleaner .mc-cleaner{position:absolute;top:0;bottom:0;right:0}mc-stepper{position:absolute;display:flex;flex-direction:column;justify-content:center;align-items:center;top:0;bottom:0;right:0;width:32px;width:var(--mc-form-field-size-button-width, 32px)}mc-stepper .mc-stepper-step-up,mc-stepper .mc-stepper-step-down{cursor:pointer;width:32px;width:var(--mc-form-field-size-button-width, 32px);text-align:center}mc-stepper .mc-stepper-step-up{transform:scaleY(-1)}\n", ".mc-input{background:transparent;margin:0;border:none;outline:none;width:100%;width:var(--mc-input-size-width, 100%);min-height:30px;min-height:calc(var(--mc-form-field-size-height, 32px) - var(--mc-form-field-size-border-width, 1px) * 2);padding:0 12px;padding:var(--mc-input-size-padding, 0 12px)}.mc-input::-ms-clear{display:none;width:0;height:0}.mc-input::-ms-reveal{display:none;width:0;height:0}.mc-input::-webkit-search-decoration,.mc-input::-webkit-search-cancel-button,.mc-input::-webkit-search-results-button,.mc-input::-webkit-search-results-decoration{display:none}.mc-input{display:inline-block}input.mc-input[type=number]{-moz-appearance:textfield}input.mc-input[type=number]::-webkit-inner-spin-button,input.mc-input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}input.mc-input:invalid{box-shadow:none;box-shadow:initial}.mc-password-toggle{display:flex;position:absolute;top:-1px;right:-1px;border:1px solid transparent;width:32px;height:32px;align-items:center;justify-content:center;cursor:pointer;border-top-right-radius:4px;border-top-right-radius:var(--mc-form-field-size-border-radius, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mc-form-field-size-border-radius, 4px)}.mc-password-toggle::-moz-focus-inner{border:0}.mc-password-toggle:focus{outline:none}\n", ".mc-timepicker{padding-right:15px;padding-right:calc(var(--mc-timepicker-size-padding-right, 16px) - var(--mc-form-field-size-border-width, 1px))}.mc-form-field-type-timepicker{width:auto}\n", ".mc-form-field-type-datepicker{width:auto}.mc-datepicker{width:130px;width:var(--mc-datepicker-input-size-width, 130px)}\n", ".mc-textarea{background:transparent;margin:0;border:none;outline:none;resize:none;overflow:auto;width:100%;box-sizing:border-box;padding:5px 12px;padding:var(--mc-textarea-size-padding, 5px 12px)}.mc-textarea{display:inline-block;-webkit-appearance:none;vertical-align:bottom}.mc-textarea:not(.mc-textarea-resizable){box-sizing:border-box;overflow-y:hidden}.mc-textarea.mc-textarea-resizable{resize:vertical;min-height:50px;min-height:var(--mc-textarea-size-min-height, 50px)}.mc-textarea:invalid{box-shadow:none;box-shadow:initial}\n"], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
447
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McFormField, decorators: [{
449
+ /** @nocollapse */ McFormField.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McFormField, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$2.FocusMonitor }], target: i0.ɵɵFactoryTarget.Component });
450
+ /** @nocollapse */ McFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: McFormField, selector: "mc-form-field", inputs: { color: "color" }, host: { listeners: { "keydown": "onKeyDown($event)", "mouseenter": "onHoverChanged(true)", "mouseleave": "onHoverChanged(false)" }, properties: { "class.mc-form-field_invalid": "control.errorState", "class.mc-form-field_has-prefix": "hasPrefix", "class.mc-form-field_has-suffix": "hasSuffix", "class.mc-form-field_has-cleaner": "canShowCleaner", "class.mc-form-field_has-stepper": "canShowStepper", "class.mc-disabled": "control.disabled", "class.ng-untouched": "shouldForward(\"untouched\")", "class.ng-touched": "shouldForward(\"touched\")", "class.ng-pristine": "shouldForward(\"pristine\")", "class.ng-dirty": "shouldForward(\"dirty\")", "class.ng-valid": "shouldForward(\"valid\")", "class.ng-invalid": "shouldForward(\"invalid\")", "class.ng-pending": "shouldForward(\"pending\")" }, classAttribute: "mc-form-field" }, providers: [{ provide: MC_FORM_FIELD, useExisting: McFormField }], queries: [{ propertyName: "control", first: true, predicate: McFormFieldControl, descendants: true }, { propertyName: "stepper", first: true, predicate: McStepper, descendants: true }, { propertyName: "cleaner", first: true, predicate: McCleaner, descendants: true }, { propertyName: "hint", predicate: McHint }, { propertyName: "passwordHints", predicate: McPasswordHint }, { propertyName: "suffix", predicate: McSuffix }, { propertyName: "prefix", predicate: McPrefix }], viewQueries: [{ propertyName: "connectionContainerRef", first: true, predicate: ["connectionContainer"], descendants: true, static: true }], exportAs: ["mcFormField"], usesInheritance: true, ngImport: i0, template: "<div class=\"mc-form-field__container\" (click)=\"onContainerClick($event)\">\n\n <div class=\"mc-form-field__prefix\" *ngIf=\"hasPrefix\">\n <ng-content select=\"[mcPrefix]\"></ng-content>\n </div>\n\n <div class=\"mc-form-field__infix\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"mc-form-field__suffix\" *ngIf=\"hasSuffix\">\n <ng-content select=\"[mcSuffix]\"></ng-content>\n </div>\n\n <div class=\"mc-form-field__cleaner\"\n *ngIf=\"canShowCleaner && !hasSuffix\"\n (click)=\"clearValue($event)\">\n <ng-content select=\"mc-cleaner\"></ng-content>\n </div>\n\n <ng-content select=\"mc-password-toggle\"></ng-content>\n\n <ng-content *ngIf=\"canShowStepper\" select=\"mc-stepper\"></ng-content>\n</div>\n\n<div class=\"mc-form-field__hint\">\n <ng-content select=\"mc-hint, mc-password-hint\"></ng-content>\n</div>\n", styles: [".mc-form{display:flex;flex-direction:column}.mc-form__row{display:flex;flex-direction:row}.mc-form-horizontal .mc-form-row_margin{margin-bottom:20px;margin-bottom:var(--mc-forms-size-horizontal-row-margin-bottom, 20px)}.mc-form-horizontal .mc-form__label{padding-top:6px;padding-top:var(--mc-forms-size-horizontal-label-padding-top, 6px);text-align:end}.mc-form-horizontal .mc-form__control{padding-left:16px;padding-left:var(--mc-forms-size-horizontal-control-padding-left, 16px)}.mc-form-horizontal .mc-form__legend{margin-top:32px;margin-top:var(--mc-forms-size-horizontal-legend-margin-top, 32px);margin-bottom:16px;margin-bottom:var(--mc-forms-size-horizontal-legend-margin-bottom, 16px)}.mc-form-vertical .mc-form__row{flex-direction:column}.mc-form-vertical .mc-form-row_margin{margin-bottom:16px;margin-bottom:var(--mc-forms-size-vertical-row-margin-bottom, 16px)}.mc-form-vertical .mc-form__label{padding-top:0;padding-top:var(--mc-forms-size-vertical-label-padding-top, 0);padding-bottom:4px;padding-bottom:var(--mc-forms-size-vertical-label-padding-bottom, 4px);text-align:start}.mc-form-vertical .mc-form__control{padding-left:0}.mc-form-vertical .mc-form__legend{margin-top:32px;margin-top:var(--mc-forms-size-vertical-legend-margin-top, 32px);margin-bottom:12px;margin-bottom:var(--mc-forms-size-vertical-legend-margin-bottom, 12px)}.mc-form__fieldset{display:flex;flex-direction:column}.mc-form__fieldset.mc-horizontal{flex-direction:row}.mc-form__fieldset.mc-horizontal .mc-form__row:not(:first-child){padding-left:24px;padding-left:var(--mc-forms-size-vertical-control-padding-left, 24px)}.mc-form-field{position:relative;display:inline-block;width:100%;border-radius:4px;border-radius:var(--mc-form-field-size-border-radius, 4px)}.mc-form-field:hover{z-index:1}.mc-form-field.mc-focused{z-index:2}.mc-form-field-type-input-password .mc-input{padding-right:32px;padding-right:var(--mc-form-field-size-button-width, 32px)}.mc-hint{display:block}.mc-password-hint{display:block;padding-left:20px;padding-left:calc(16px + var(--mc-form-field-password-hint-size-icon-margin, 4px))}.mc-password-hint .mc-icon{position:absolute;left:0}.mc-form-field__hint>.mc-password-hint{margin-top:8px;margin-top:var(--mc-form-field-password-hint-size-margin-top, 8px)}.mc-form-field__hint>.mc-hint{margin-top:4px;margin-top:var(--mc-form-field-hint-size-margin-top, 4px)}.mc-form-field__container{position:relative;border-width:1px;border-width:var(--mc-form-field-size-border-width, 1px);border-style:solid;border-color:transparent;border-radius:4px;border-radius:var(--mc-form-field-size-border-radius, 4px)}.mc-form-field_without-borders .mc-form-field__container{border-color:transparent}.mc-form-field__prefix,.mc-form-field__suffix{position:absolute;top:0;bottom:0;width:32px;display:flex;flex-direction:row;justify-content:center;align-items:center}.mc-form-field__prefix{left:0}.mc-form-field__suffix{right:0}.mc-form-field_has-suffix .mc-input,.mc-form-field_has-cleaner .mc-input,.mc-form-field_has-stepper .mc-input{padding-right:32px;padding-right:var(--mc-form-field-size-button-width, 32px)}.mc-form-field_has-prefix .mc-input{padding-left:32px;padding-left:var(--mc-form-field-size-button-width, 32px)}.mc-cleaner{display:flex;width:32px;width:var(--mc-form-field-size-button-width, 32px);height:100%;cursor:pointer}.mc-cleaner .mc-icon{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.mc-form-field__cleaner .mc-cleaner{position:absolute;top:0;bottom:0;right:0}mc-stepper{position:absolute;display:flex;flex-direction:column;justify-content:center;align-items:center;top:0;bottom:0;right:0;width:32px;width:var(--mc-form-field-size-button-width, 32px)}mc-stepper .mc-stepper-step-up,mc-stepper .mc-stepper-step-down{cursor:pointer;width:32px;width:var(--mc-form-field-size-button-width, 32px);text-align:center}mc-stepper .mc-stepper-step-up{transform:scaleY(-1)}\n", ".mc-input{background:transparent;margin:0;border:none;outline:none;width:100%;width:var(--mc-input-size-width, 100%);min-height:30px;min-height:calc(var(--mc-form-field-size-height, 32px) - var(--mc-form-field-size-border-width, 1px) * 2);padding:0 12px;padding:var(--mc-input-size-padding, 0 12px)}.mc-input::-ms-clear{display:none;width:0;height:0}.mc-input::-ms-reveal{display:none;width:0;height:0}.mc-input::-webkit-search-decoration,.mc-input::-webkit-search-cancel-button,.mc-input::-webkit-search-results-button,.mc-input::-webkit-search-results-decoration{display:none}.mc-input{display:inline-block}input.mc-input[type=number]{-moz-appearance:textfield}input.mc-input[type=number]::-webkit-inner-spin-button,input.mc-input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}input.mc-input:invalid{box-shadow:none;box-shadow:initial}.mc-password-toggle{display:flex;position:absolute;top:-1px;right:-1px;border:1px solid transparent;width:32px;height:32px;align-items:center;justify-content:center;cursor:pointer;border-top-right-radius:4px;border-top-right-radius:var(--mc-form-field-size-border-radius, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mc-form-field-size-border-radius, 4px)}.mc-password-toggle::-moz-focus-inner{border:0}.mc-password-toggle:focus{outline:none}\n", ".mc-timepicker{padding-right:15px;padding-right:calc(var(--mc-timepicker-size-padding-right, 16px) - var(--mc-form-field-size-border-width, 1px))}.mc-form-field-type-timepicker{width:auto}\n", ".mc-form-field-type-datepicker{width:auto}.mc-datepicker{width:130px;width:var(--mc-datepicker-input-size-width, 130px)}\n", ".mc-textarea{background:transparent;margin:0;border:none;outline:none;resize:none;overflow:auto;width:100%;box-sizing:border-box;padding:5px 12px;padding:var(--mc-textarea-size-padding, 5px 12px)}.mc-textarea{display:inline-block;-webkit-appearance:none;vertical-align:bottom}.mc-textarea:not(.mc-textarea-resizable){box-sizing:border-box;overflow-y:hidden}.mc-textarea.mc-textarea-resizable{resize:vertical;min-height:50px;min-height:var(--mc-textarea-size-min-height, 50px)}.mc-textarea:invalid{box-shadow:none;box-shadow:initial}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
451
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McFormField, decorators: [{
448
452
  type: Component,
449
453
  args: [{ selector: 'mc-form-field', exportAs: 'mcFormField', host: {
450
454
  class: 'mc-form-field',
@@ -464,8 +468,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
464
468
  '(keydown)': 'onKeyDown($event)',
465
469
  '(mouseenter)': 'onHoverChanged(true)',
466
470
  '(mouseleave)': 'onHoverChanged(false)'
467
- }, inputs: ['color'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"mc-form-field__container\" (click)=\"onContainerClick($event)\">\n\n <div class=\"mc-form-field__prefix\" *ngIf=\"hasPrefix\">\n <ng-content select=\"[mcPrefix]\"></ng-content>\n </div>\n\n <div class=\"mc-form-field__infix\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"mc-form-field__suffix\" *ngIf=\"hasSuffix\">\n <ng-content select=\"[mcSuffix]\"></ng-content>\n </div>\n\n <div class=\"mc-form-field__cleaner\"\n *ngIf=\"canShowCleaner && !hasSuffix\"\n (click)=\"clearValue($event)\">\n <ng-content select=\"mc-cleaner\"></ng-content>\n </div>\n\n <ng-content select=\"mc-password-toggle\"></ng-content>\n\n <ng-content *ngIf=\"canShowStepper\" select=\"mc-stepper\"></ng-content>\n</div>\n\n<div class=\"mc-form-field__hint\">\n <ng-content select=\"mc-hint, mc-password-hint\"></ng-content>\n</div>\n", styles: [".mc-form-field{position:relative;display:inline-block;width:100%;border-radius:4px;border-radius:var(--mc-form-field-size-border-radius, 4px)}.mc-form-field:hover{z-index:1}.mc-form-field.mc-focused{z-index:2}.mc-form-field-type-input-password .mc-input{padding-right:32px;padding-right:var(--mc-form-field-size-button-width, 32px)}.mc-hint{display:block}.mc-password-hint{display:block;padding-left:20px;padding-left:calc(16px + var(--mc-form-field-password-hint-size-icon-margin, 4px))}.mc-password-hint .mc-icon{position:absolute;left:0}.mc-form-field__hint>.mc-password-hint{margin-top:8px;margin-top:var(--mc-form-field-password-hint-size-margin-top, 8px)}.mc-form-field__hint>.mc-hint{margin-top:4px;margin-top:var(--mc-form-field-hint-size-margin-top, 4px)}.mc-form-field__container{position:relative;border-width:1px;border-width:var(--mc-form-field-size-border-width, 1px);border-style:solid;border-color:transparent;border-radius:4px;border-radius:var(--mc-form-field-size-border-radius, 4px)}.mc-form-field_without-borders .mc-form-field__container{border-color:transparent}.mc-form-field__prefix,.mc-form-field__suffix{position:absolute;top:0;bottom:0;width:32px;display:flex;flex-direction:row;justify-content:center;align-items:center}.mc-form-field__prefix{left:0}.mc-form-field__suffix{right:0}.mc-form-field_has-suffix .mc-input,.mc-form-field_has-cleaner .mc-input,.mc-form-field_has-stepper .mc-input{padding-right:32px;padding-right:var(--mc-form-field-size-button-width, 32px)}.mc-form-field_has-prefix .mc-input{padding-left:32px;padding-left:var(--mc-form-field-size-button-width, 32px)}.mc-cleaner{display:flex;width:32px;width:var(--mc-form-field-size-button-width, 32px);height:100%;cursor:pointer}.mc-cleaner .mc-icon{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.mc-form-field__cleaner .mc-cleaner{position:absolute;top:0;bottom:0;right:0}mc-stepper{position:absolute;display:flex;flex-direction:column;justify-content:center;align-items:center;top:0;bottom:0;right:0;width:32px;width:var(--mc-form-field-size-button-width, 32px)}mc-stepper .mc-stepper-step-up,mc-stepper .mc-stepper-step-down{cursor:pointer;width:32px;width:var(--mc-form-field-size-button-width, 32px);text-align:center}mc-stepper .mc-stepper-step-up{transform:scaleY(-1)}\n", ".mc-input{background:transparent;margin:0;border:none;outline:none;width:100%;width:var(--mc-input-size-width, 100%);min-height:30px;min-height:calc(var(--mc-form-field-size-height, 32px) - var(--mc-form-field-size-border-width, 1px) * 2);padding:0 12px;padding:var(--mc-input-size-padding, 0 12px)}.mc-input::-ms-clear{display:none;width:0;height:0}.mc-input::-ms-reveal{display:none;width:0;height:0}.mc-input::-webkit-search-decoration,.mc-input::-webkit-search-cancel-button,.mc-input::-webkit-search-results-button,.mc-input::-webkit-search-results-decoration{display:none}.mc-input{display:inline-block}input.mc-input[type=number]{-moz-appearance:textfield}input.mc-input[type=number]::-webkit-inner-spin-button,input.mc-input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}input.mc-input:invalid{box-shadow:none;box-shadow:initial}.mc-password-toggle{display:flex;position:absolute;top:-1px;right:-1px;border:1px solid transparent;width:32px;height:32px;align-items:center;justify-content:center;cursor:pointer;border-top-right-radius:4px;border-top-right-radius:var(--mc-form-field-size-border-radius, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mc-form-field-size-border-radius, 4px)}.mc-password-toggle::-moz-focus-inner{border:0}.mc-password-toggle:focus{outline:none}\n", ".mc-timepicker{padding-right:15px;padding-right:calc(var(--mc-timepicker-size-padding-right, 16px) - var(--mc-form-field-size-border-width, 1px))}.mc-form-field-type-timepicker{width:auto}\n", ".mc-form-field-type-datepicker{width:auto}.mc-datepicker{width:130px;width:var(--mc-datepicker-input-size-width, 130px)}\n", ".mc-textarea{background:transparent;margin:0;border:none;outline:none;resize:none;overflow:auto;width:100%;box-sizing:border-box;padding:5px 12px;padding:var(--mc-textarea-size-padding, 5px 12px)}.mc-textarea{display:inline-block;-webkit-appearance:none;vertical-align:bottom}.mc-textarea:not(.mc-textarea-resizable){box-sizing:border-box;overflow-y:hidden}.mc-textarea.mc-textarea-resizable{resize:vertical;min-height:50px;min-height:var(--mc-textarea-size-min-height, 50px)}.mc-textarea:invalid{box-shadow:none;box-shadow:initial}\n"] }]
468
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$1.FocusMonitor }]; }, propDecorators: { control: [{
471
+ }, inputs: ['color'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: MC_FORM_FIELD, useExisting: McFormField }], template: "<div class=\"mc-form-field__container\" (click)=\"onContainerClick($event)\">\n\n <div class=\"mc-form-field__prefix\" *ngIf=\"hasPrefix\">\n <ng-content select=\"[mcPrefix]\"></ng-content>\n </div>\n\n <div class=\"mc-form-field__infix\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"mc-form-field__suffix\" *ngIf=\"hasSuffix\">\n <ng-content select=\"[mcSuffix]\"></ng-content>\n </div>\n\n <div class=\"mc-form-field__cleaner\"\n *ngIf=\"canShowCleaner && !hasSuffix\"\n (click)=\"clearValue($event)\">\n <ng-content select=\"mc-cleaner\"></ng-content>\n </div>\n\n <ng-content select=\"mc-password-toggle\"></ng-content>\n\n <ng-content *ngIf=\"canShowStepper\" select=\"mc-stepper\"></ng-content>\n</div>\n\n<div class=\"mc-form-field__hint\">\n <ng-content select=\"mc-hint, mc-password-hint\"></ng-content>\n</div>\n", styles: [".mc-form{display:flex;flex-direction:column}.mc-form__row{display:flex;flex-direction:row}.mc-form-horizontal .mc-form-row_margin{margin-bottom:20px;margin-bottom:var(--mc-forms-size-horizontal-row-margin-bottom, 20px)}.mc-form-horizontal .mc-form__label{padding-top:6px;padding-top:var(--mc-forms-size-horizontal-label-padding-top, 6px);text-align:end}.mc-form-horizontal .mc-form__control{padding-left:16px;padding-left:var(--mc-forms-size-horizontal-control-padding-left, 16px)}.mc-form-horizontal .mc-form__legend{margin-top:32px;margin-top:var(--mc-forms-size-horizontal-legend-margin-top, 32px);margin-bottom:16px;margin-bottom:var(--mc-forms-size-horizontal-legend-margin-bottom, 16px)}.mc-form-vertical .mc-form__row{flex-direction:column}.mc-form-vertical .mc-form-row_margin{margin-bottom:16px;margin-bottom:var(--mc-forms-size-vertical-row-margin-bottom, 16px)}.mc-form-vertical .mc-form__label{padding-top:0;padding-top:var(--mc-forms-size-vertical-label-padding-top, 0);padding-bottom:4px;padding-bottom:var(--mc-forms-size-vertical-label-padding-bottom, 4px);text-align:start}.mc-form-vertical .mc-form__control{padding-left:0}.mc-form-vertical .mc-form__legend{margin-top:32px;margin-top:var(--mc-forms-size-vertical-legend-margin-top, 32px);margin-bottom:12px;margin-bottom:var(--mc-forms-size-vertical-legend-margin-bottom, 12px)}.mc-form__fieldset{display:flex;flex-direction:column}.mc-form__fieldset.mc-horizontal{flex-direction:row}.mc-form__fieldset.mc-horizontal .mc-form__row:not(:first-child){padding-left:24px;padding-left:var(--mc-forms-size-vertical-control-padding-left, 24px)}.mc-form-field{position:relative;display:inline-block;width:100%;border-radius:4px;border-radius:var(--mc-form-field-size-border-radius, 4px)}.mc-form-field:hover{z-index:1}.mc-form-field.mc-focused{z-index:2}.mc-form-field-type-input-password .mc-input{padding-right:32px;padding-right:var(--mc-form-field-size-button-width, 32px)}.mc-hint{display:block}.mc-password-hint{display:block;padding-left:20px;padding-left:calc(16px + var(--mc-form-field-password-hint-size-icon-margin, 4px))}.mc-password-hint .mc-icon{position:absolute;left:0}.mc-form-field__hint>.mc-password-hint{margin-top:8px;margin-top:var(--mc-form-field-password-hint-size-margin-top, 8px)}.mc-form-field__hint>.mc-hint{margin-top:4px;margin-top:var(--mc-form-field-hint-size-margin-top, 4px)}.mc-form-field__container{position:relative;border-width:1px;border-width:var(--mc-form-field-size-border-width, 1px);border-style:solid;border-color:transparent;border-radius:4px;border-radius:var(--mc-form-field-size-border-radius, 4px)}.mc-form-field_without-borders .mc-form-field__container{border-color:transparent}.mc-form-field__prefix,.mc-form-field__suffix{position:absolute;top:0;bottom:0;width:32px;display:flex;flex-direction:row;justify-content:center;align-items:center}.mc-form-field__prefix{left:0}.mc-form-field__suffix{right:0}.mc-form-field_has-suffix .mc-input,.mc-form-field_has-cleaner .mc-input,.mc-form-field_has-stepper .mc-input{padding-right:32px;padding-right:var(--mc-form-field-size-button-width, 32px)}.mc-form-field_has-prefix .mc-input{padding-left:32px;padding-left:var(--mc-form-field-size-button-width, 32px)}.mc-cleaner{display:flex;width:32px;width:var(--mc-form-field-size-button-width, 32px);height:100%;cursor:pointer}.mc-cleaner .mc-icon{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.mc-form-field__cleaner .mc-cleaner{position:absolute;top:0;bottom:0;right:0}mc-stepper{position:absolute;display:flex;flex-direction:column;justify-content:center;align-items:center;top:0;bottom:0;right:0;width:32px;width:var(--mc-form-field-size-button-width, 32px)}mc-stepper .mc-stepper-step-up,mc-stepper .mc-stepper-step-down{cursor:pointer;width:32px;width:var(--mc-form-field-size-button-width, 32px);text-align:center}mc-stepper .mc-stepper-step-up{transform:scaleY(-1)}\n", ".mc-input{background:transparent;margin:0;border:none;outline:none;width:100%;width:var(--mc-input-size-width, 100%);min-height:30px;min-height:calc(var(--mc-form-field-size-height, 32px) - var(--mc-form-field-size-border-width, 1px) * 2);padding:0 12px;padding:var(--mc-input-size-padding, 0 12px)}.mc-input::-ms-clear{display:none;width:0;height:0}.mc-input::-ms-reveal{display:none;width:0;height:0}.mc-input::-webkit-search-decoration,.mc-input::-webkit-search-cancel-button,.mc-input::-webkit-search-results-button,.mc-input::-webkit-search-results-decoration{display:none}.mc-input{display:inline-block}input.mc-input[type=number]{-moz-appearance:textfield}input.mc-input[type=number]::-webkit-inner-spin-button,input.mc-input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}input.mc-input:invalid{box-shadow:none;box-shadow:initial}.mc-password-toggle{display:flex;position:absolute;top:-1px;right:-1px;border:1px solid transparent;width:32px;height:32px;align-items:center;justify-content:center;cursor:pointer;border-top-right-radius:4px;border-top-right-radius:var(--mc-form-field-size-border-radius, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mc-form-field-size-border-radius, 4px)}.mc-password-toggle::-moz-focus-inner{border:0}.mc-password-toggle:focus{outline:none}\n", ".mc-timepicker{padding-right:15px;padding-right:calc(var(--mc-timepicker-size-padding-right, 16px) - var(--mc-form-field-size-border-width, 1px))}.mc-form-field-type-timepicker{width:auto}\n", ".mc-form-field-type-datepicker{width:auto}.mc-datepicker{width:130px;width:var(--mc-datepicker-input-size-width, 130px)}\n", ".mc-textarea{background:transparent;margin:0;border:none;outline:none;resize:none;overflow:auto;width:100%;box-sizing:border-box;padding:5px 12px;padding:var(--mc-textarea-size-padding, 5px 12px)}.mc-textarea{display:inline-block;-webkit-appearance:none;vertical-align:bottom}.mc-textarea:not(.mc-textarea-resizable){box-sizing:border-box;overflow-y:hidden}.mc-textarea.mc-textarea-resizable{resize:vertical;min-height:50px;min-height:var(--mc-textarea-size-min-height, 50px)}.mc-textarea:invalid{box-shadow:none;box-shadow:initial}\n"] }]
472
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$2.FocusMonitor }]; }, propDecorators: { control: [{
469
473
  type: ContentChild,
470
474
  args: [McFormFieldControl, { static: false }]
471
475
  }], stepper: [{
@@ -492,9 +496,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
492
496
  }] } });
493
497
  class McFormFieldWithoutBorders {
494
498
  }
495
- /** @nocollapse */ /** @nocollapse */ McFormFieldWithoutBorders.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McFormFieldWithoutBorders, deps: [], target: i0.ɵɵFactoryTarget.Directive });
496
- /** @nocollapse */ /** @nocollapse */ McFormFieldWithoutBorders.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: McFormFieldWithoutBorders, selector: "mc-form-field[mcFormFieldWithoutBorders]", host: { classAttribute: "mc-form-field_without-borders" }, exportAs: ["mcFormFieldWithoutBorders"], ngImport: i0 });
497
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McFormFieldWithoutBorders, decorators: [{
499
+ /** @nocollapse */ McFormFieldWithoutBorders.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McFormFieldWithoutBorders, deps: [], target: i0.ɵɵFactoryTarget.Directive });
500
+ /** @nocollapse */ McFormFieldWithoutBorders.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.2", type: McFormFieldWithoutBorders, selector: "mc-form-field[mcFormFieldWithoutBorders]", host: { classAttribute: "mc-form-field_without-borders" }, exportAs: ["mcFormFieldWithoutBorders"], ngImport: i0 });
501
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McFormFieldWithoutBorders, decorators: [{
498
502
  type: Directive,
499
503
  args: [{
500
504
  selector: 'mc-form-field[mcFormFieldWithoutBorders]',
@@ -503,26 +507,179 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
503
507
  }]
504
508
  }] });
505
509
 
510
+ class McValidateDirective {
511
+ constructor(formFieldControl, rawValidators, ngControl, parentForm, parentFormGroup, mcValidation, cdr) {
512
+ this.formFieldControl = formFieldControl;
513
+ this.rawValidators = rawValidators;
514
+ this.ngControl = ngControl;
515
+ this.parentForm = parentForm;
516
+ this.parentFormGroup = parentFormGroup;
517
+ this.mcValidation = mcValidation;
518
+ this.cdr = cdr;
519
+ }
520
+ get isNgModel() {
521
+ return this.ngControl instanceof NgModel;
522
+ }
523
+ get isFormControl() {
524
+ return this.ngControl instanceof FormControlName;
525
+ }
526
+ get validationControl() {
527
+ const ngControl = (this.formFieldControl.ngControl || this.formFieldControl);
528
+ return ngControl.control || ngControl;
529
+ }
530
+ get parent() {
531
+ return this.parentForm || this.parentFormGroup;
532
+ }
533
+ get hasNotSubmittedParent() {
534
+ return this.parent && !this.parent.submitted;
535
+ }
536
+ ngAfterContentInit() {
537
+ if (this.mcValidation.useValidation) {
538
+ this.setMosaicValidation();
539
+ }
540
+ }
541
+ setValidState(control, validator) {
542
+ if (!control) {
543
+ return;
544
+ }
545
+ control.clearValidators();
546
+ control.updateValueAndValidity({ emitEvent: false });
547
+ control.setValidators(validator);
548
+ }
549
+ /** This function do next:
550
+ * - run validation on submitting parent form
551
+ * - prevent validation in required validator if form doesn't submitted
552
+ * - if control has focus validation will be prevented
553
+ */
554
+ setMosaicValidation() {
555
+ var _a;
556
+ if (!this.validationControl) {
557
+ return;
558
+ }
559
+ (_a = this.parent) === null || _a === void 0 ? void 0 : _a.ngSubmit.subscribe(() => this.validationControl.updateValueAndValidity({ emitEvent: false }));
560
+ if (this.isNgModel) {
561
+ this.setMosaicValidationForModelControl();
562
+ }
563
+ else if (this.isFormControl) {
564
+ this.setMosaicValidationForFormControl();
565
+ }
566
+ }
567
+ setMosaicValidationForModelControl() {
568
+ if (!this.rawValidators) {
569
+ return;
570
+ }
571
+ this.rawValidators.forEach((validator) => {
572
+ // tslint:disable-next-line: no-unbound-method
573
+ const originalValidate = validator.validate;
574
+ if (validator instanceof RequiredValidator) {
575
+ // changed required validation logic
576
+ validator.validate = (control) => {
577
+ if (this.hasNotSubmittedParent) {
578
+ return null;
579
+ }
580
+ return originalValidate.call(validator, control);
581
+ };
582
+ }
583
+ else {
584
+ // changed all other validation logic
585
+ validator.validate = (control) => {
586
+ if (this.formFieldControl.focused) {
587
+ return null;
588
+ }
589
+ return originalValidate.call(validator, control);
590
+ };
591
+ }
592
+ });
593
+ }
594
+ setMosaicValidationForFormControl() {
595
+ const originalValidator = this.validationControl.validator;
596
+ // changed required validation logic after initialization
597
+ if (this.validationControl.invalid && this.validationControl.errors.required) {
598
+ Promise.resolve().then(() => {
599
+ this.setValidState(this.validationControl, originalValidator);
600
+ this.cdr.markForCheck();
601
+ });
602
+ }
603
+ // check dynamic updates
604
+ this.validationControl.statusChanges
605
+ .subscribe(() => {
606
+ // changed required validation logic
607
+ if (this.validationControl.invalid && (this.hasNotSubmittedParent) && this.validationControl.errors.required) {
608
+ this.setValidState(this.validationControl, originalValidator);
609
+ }
610
+ // changed all other validation logic
611
+ if (this.validationControl.invalid && this.formFieldControl.focused) {
612
+ this.setValidState(this.validationControl, originalValidator);
613
+ }
614
+ });
615
+ }
616
+ }
617
+ /** @nocollapse */ McValidateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McValidateDirective, deps: [{ token: forwardRef(() => McFormFieldControl) }, { token: NG_VALIDATORS, optional: true, self: true }, { token: i1$3.NgControl, optional: true, self: true }, { token: i1$3.NgForm, optional: true }, { token: i1$3.FormGroupDirective, optional: true }, { token: MC_VALIDATION, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
618
+ /** @nocollapse */ McValidateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.2", type: McValidateDirective, selector: "\n input[mcInput],\n input[mcInputPassword],\n input[mcTimepicker],\n input[mcDatepicker],\n mc-select,\n mc-tag-list,\n textarea[mcTextarea],\n mc-tree-select\n ", exportAs: ["McValidate"], ngImport: i0 });
619
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McValidateDirective, decorators: [{
620
+ type: Directive,
621
+ args: [{
622
+ selector: `
623
+ input[mcInput],
624
+ input[mcInputPassword],
625
+ input[mcTimepicker],
626
+ input[mcDatepicker],
627
+ mc-select,
628
+ mc-tag-list,
629
+ textarea[mcTextarea],
630
+ mc-tree-select
631
+ `,
632
+ exportAs: 'McValidate'
633
+ }]
634
+ }], ctorParameters: function () {
635
+ return [{ type: McFormFieldControl, decorators: [{
636
+ type: Inject,
637
+ args: [forwardRef(() => McFormFieldControl)]
638
+ }] }, { type: undefined, decorators: [{
639
+ type: Optional
640
+ }, {
641
+ type: Self
642
+ }, {
643
+ type: Inject,
644
+ args: [NG_VALIDATORS]
645
+ }] }, { type: i1$3.NgControl, decorators: [{
646
+ type: Optional
647
+ }, {
648
+ type: Self
649
+ }] }, { type: i1$3.NgForm, decorators: [{
650
+ type: Optional
651
+ }] }, { type: i1$3.FormGroupDirective, decorators: [{
652
+ type: Optional
653
+ }] }, { type: undefined, decorators: [{
654
+ type: Optional
655
+ }, {
656
+ type: Inject,
657
+ args: [MC_VALIDATION]
658
+ }] }, { type: i0.ChangeDetectorRef }];
659
+ } });
660
+
506
661
  class McFormFieldModule {
507
662
  }
508
- /** @nocollapse */ /** @nocollapse */ McFormFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
509
- /** @nocollapse */ /** @nocollapse */ McFormFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McFormFieldModule, declarations: [McFormField,
663
+ /** @nocollapse */ McFormFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
664
+ /** @nocollapse */ McFormFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: McFormFieldModule, declarations: [McFormField,
510
665
  McFormFieldWithoutBorders,
511
666
  McHint,
512
667
  McPasswordHint,
513
668
  McPrefix,
514
669
  McSuffix,
515
670
  McCleaner,
516
- McStepper], imports: [CommonModule, McIconModule], exports: [McFormField,
671
+ McStepper,
672
+ McValidateDirective], imports: [CommonModule, McIconModule], exports: [McFormField,
517
673
  McFormFieldWithoutBorders,
518
674
  McHint,
519
675
  McPasswordHint,
520
676
  McPrefix,
521
677
  McSuffix,
522
678
  McCleaner,
523
- McStepper] });
524
- /** @nocollapse */ /** @nocollapse */ McFormFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McFormFieldModule, imports: [[CommonModule, McIconModule]] });
525
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McFormFieldModule, decorators: [{
679
+ McStepper,
680
+ McValidateDirective] });
681
+ /** @nocollapse */ McFormFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McFormFieldModule, imports: [CommonModule, McIconModule] });
682
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McFormFieldModule, decorators: [{
526
683
  type: NgModule,
527
684
  args: [{
528
685
  declarations: [
@@ -533,7 +690,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
533
690
  McPrefix,
534
691
  McSuffix,
535
692
  McCleaner,
536
- McStepper
693
+ McStepper,
694
+ McValidateDirective
537
695
  ],
538
696
  imports: [CommonModule, McIconModule],
539
697
  exports: [
@@ -544,7 +702,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
544
702
  McPrefix,
545
703
  McSuffix,
546
704
  McCleaner,
547
- McStepper
705
+ McStepper,
706
+ McValidateDirective
548
707
  ]
549
708
  }]
550
709
  }] });
@@ -553,5 +712,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
553
712
  * Generated bundle index. Do not edit.
554
713
  */
555
714
 
556
- export { McCleaner, McFormField, McFormFieldBase, McFormFieldControl, McFormFieldMixinBase, McFormFieldModule, McFormFieldWithoutBorders, McHint, McHintBase, McHintMixinBase, McPasswordHint, McPrefix, McStepper, McSuffix, PasswordRules, getMcFormFieldMissingControlError, getMcFormFieldYouCanNotUseCleanerInNumberInputError, regExpPasswordValidator };
715
+ export { MC_FORM_FIELD, McCleaner, McFormField, McFormFieldBase, McFormFieldControl, McFormFieldMixinBase, McFormFieldModule, McFormFieldWithoutBorders, McHint, McHintBase, McHintMixinBase, McPasswordHint, McPrefix, McStepper, McSuffix, McValidateDirective, PasswordRules, getMcFormFieldMissingControlError, getMcFormFieldYouCanNotUseCleanerInNumberInputError, regExpPasswordValidator };
557
716
  //# sourceMappingURL=ptsecurity-mosaic-form-field.mjs.map