@ptsecurity/mosaic 13.0.0 → 13.2.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 (413) hide show
  1. package/_theming.scss +1235 -1004
  2. package/_visual.scss +914 -708
  3. package/core/formatters/date/formatter.d.ts +37 -13
  4. package/core/pop-up/pop-up.d.ts +1 -0
  5. package/core/public-api.d.ts +1 -0
  6. package/core/version.d.ts +2 -0
  7. package/design-tokens/{tokens → legacy-2017/tokens}/components/alert.json5 +0 -0
  8. package/design-tokens/{tokens → legacy-2017/tokens}/components/autocomplete.json5 +0 -0
  9. package/design-tokens/{tokens → legacy-2017/tokens}/components/badge.json5 +28 -38
  10. package/design-tokens/{tokens → legacy-2017/tokens}/components/button-toggle.json5 +0 -0
  11. package/design-tokens/{tokens → legacy-2017/tokens}/components/button.json5 +0 -0
  12. package/design-tokens/{tokens → legacy-2017/tokens}/components/card.json5 +0 -0
  13. package/design-tokens/{tokens → legacy-2017/tokens}/components/checkbox.json5 +2 -2
  14. package/design-tokens/{tokens → legacy-2017/tokens}/components/datepicker.json5 +0 -0
  15. package/design-tokens/{tokens → legacy-2017/tokens}/components/divider.json5 +0 -0
  16. package/design-tokens/legacy-2017/tokens/components/dl.json5 +38 -0
  17. package/design-tokens/{tokens → legacy-2017/tokens}/components/dropdown.json5 +0 -0
  18. package/design-tokens/legacy-2017/tokens/components/form-field.json5 +91 -0
  19. package/design-tokens/{tokens → legacy-2017/tokens}/components/forms.json5 +0 -0
  20. package/design-tokens/{tokens → legacy-2017/tokens}/components/input.json5 +0 -0
  21. package/design-tokens/{tokens → legacy-2017/tokens}/components/link.json5 +0 -0
  22. package/design-tokens/{tokens → legacy-2017/tokens}/components/list.json5 +0 -0
  23. package/design-tokens/{tokens → legacy-2017/tokens}/components/modal.json5 +12 -0
  24. package/design-tokens/{tokens → legacy-2017/tokens}/components/navbar.json5 +2 -0
  25. package/design-tokens/{tokens → legacy-2017/tokens}/components/optgroup.json5 +0 -0
  26. package/design-tokens/{tokens → legacy-2017/tokens}/components/option.json5 +0 -0
  27. package/design-tokens/{tokens → legacy-2017/tokens}/components/popover.json5 +0 -0
  28. package/design-tokens/{tokens → legacy-2017/tokens}/components/popup.json5 +0 -0
  29. package/design-tokens/{tokens → legacy-2017/tokens}/components/progress-bar.json5 +0 -0
  30. package/design-tokens/{tokens → legacy-2017/tokens}/components/progress-spinner.json5 +0 -0
  31. package/design-tokens/{tokens → legacy-2017/tokens}/components/radio.json5 +0 -1
  32. package/design-tokens/{tokens → legacy-2017/tokens}/components/select.json5 +0 -0
  33. package/design-tokens/{tokens → legacy-2017/tokens}/components/sidepanel.json5 +0 -0
  34. package/design-tokens/{tokens → legacy-2017/tokens}/components/table.json5 +0 -0
  35. package/design-tokens/legacy-2017/tokens/components/tabs.json5 +101 -0
  36. package/design-tokens/{tokens → legacy-2017/tokens}/components/tags.json5 +6 -0
  37. package/design-tokens/{tokens → legacy-2017/tokens}/components/textarea.json5 +0 -0
  38. package/design-tokens/{tokens → legacy-2017/tokens}/components/timepicker.json5 +0 -0
  39. package/design-tokens/{tokens → legacy-2017/tokens}/components/toggle.json5 +24 -0
  40. package/design-tokens/{tokens → legacy-2017/tokens}/components/tooltip.json5 +0 -0
  41. package/design-tokens/{tokens → legacy-2017/tokens}/components/tree.json5 +0 -0
  42. package/design-tokens/{tokens → legacy-2017/tokens}/properties/aliases.json5 +0 -0
  43. package/design-tokens/{tokens → legacy-2017/tokens}/properties/colors.json5 +4 -0
  44. package/design-tokens/{tokens → legacy-2017/tokens}/properties/font.json5 +0 -0
  45. package/design-tokens/{tokens → legacy-2017/tokens}/properties/globals.json5 +20 -1
  46. package/design-tokens/{tokens → legacy-2017/tokens}/properties/padding.json5 +0 -0
  47. package/design-tokens/{tokens → legacy-2017/tokens}/properties/palette.json5 +0 -0
  48. package/design-tokens/{tokens → legacy-2017/tokens}/properties/typography.json5 +0 -0
  49. package/design-tokens/{tokens.d.ts → legacy-2017/tokens.d.ts} +101 -28
  50. package/design-tokens/pt-2022/tokens/components/alert.json5 +83 -0
  51. package/design-tokens/pt-2022/tokens/components/autocomplete.json5 +11 -0
  52. package/design-tokens/pt-2022/tokens/components/badge.json5 +174 -0
  53. package/design-tokens/pt-2022/tokens/components/button-toggle.json5 +10 -0
  54. package/design-tokens/pt-2022/tokens/components/button.json5 +143 -0
  55. package/design-tokens/pt-2022/tokens/components/card.json5 +51 -0
  56. package/design-tokens/pt-2022/tokens/components/checkbox.json5 +39 -0
  57. package/design-tokens/pt-2022/tokens/components/datepicker.json5 +64 -0
  58. package/design-tokens/pt-2022/tokens/components/divider.json5 +8 -0
  59. package/design-tokens/pt-2022/tokens/components/dl.json5 +38 -0
  60. package/design-tokens/pt-2022/tokens/components/dropdown.json5 +47 -0
  61. package/design-tokens/pt-2022/tokens/components/form-field.json5 +91 -0
  62. package/design-tokens/pt-2022/tokens/components/forms.json5 +52 -0
  63. package/design-tokens/pt-2022/tokens/components/input.json5 +13 -0
  64. package/design-tokens/pt-2022/tokens/components/link.json5 +56 -0
  65. package/design-tokens/pt-2022/tokens/components/list.json5 +15 -0
  66. package/design-tokens/pt-2022/tokens/components/modal.json5 +79 -0
  67. package/design-tokens/pt-2022/tokens/components/navbar.json5 +69 -0
  68. package/design-tokens/pt-2022/tokens/components/optgroup.json5 +10 -0
  69. package/design-tokens/pt-2022/tokens/components/option.json5 +12 -0
  70. package/design-tokens/pt-2022/tokens/components/popover.json5 +68 -0
  71. package/design-tokens/pt-2022/tokens/components/popup.json5 +18 -0
  72. package/design-tokens/pt-2022/tokens/components/progress-bar.json5 +13 -0
  73. package/design-tokens/pt-2022/tokens/components/progress-spinner.json5 +7 -0
  74. package/design-tokens/pt-2022/tokens/components/radio.json5 +44 -0
  75. package/design-tokens/pt-2022/tokens/components/select.json5 +25 -0
  76. package/design-tokens/pt-2022/tokens/components/sidepanel.json5 +30 -0
  77. package/design-tokens/pt-2022/tokens/components/table.json5 +15 -0
  78. package/design-tokens/pt-2022/tokens/components/tabs.json5 +101 -0
  79. package/design-tokens/pt-2022/tokens/components/tags.json5 +132 -0
  80. package/design-tokens/pt-2022/tokens/components/textarea.json5 +12 -0
  81. package/design-tokens/pt-2022/tokens/components/timepicker.json5 +7 -0
  82. package/design-tokens/pt-2022/tokens/components/toggle.json5 +79 -0
  83. package/design-tokens/pt-2022/tokens/components/tooltip.json5 +83 -0
  84. package/design-tokens/pt-2022/tokens/components/tree.json5 +12 -0
  85. package/design-tokens/pt-2022/tokens/properties/aliases.json5 +3 -0
  86. package/design-tokens/pt-2022/tokens/properties/colors.json5 +116 -0
  87. package/design-tokens/pt-2022/tokens/properties/font.json5 +15 -0
  88. package/design-tokens/pt-2022/tokens/properties/globals.json5 +49 -0
  89. package/design-tokens/pt-2022/tokens/properties/padding.json5 +3 -0
  90. package/design-tokens/pt-2022/tokens/properties/palette.json5 +226 -0
  91. package/design-tokens/pt-2022/tokens/properties/typography.json5 +140 -0
  92. package/design-tokens/pt-2022/tokens.d.ts +8749 -0
  93. package/design-tokens/public-api.d.ts +3 -1
  94. package/dl/README.md +0 -0
  95. package/dl/dl.component.d.ts +26 -0
  96. package/dl/dl.module.d.ts +10 -0
  97. package/dl/index.d.ts +1 -0
  98. package/dl/package.json +10 -0
  99. package/dl/ptsecurity-mosaic-dl.d.ts +5 -0
  100. package/dl/public-api.d.ts +2 -0
  101. package/esm2020/autocomplete/autocomplete-origin.directive.mjs +3 -3
  102. package/esm2020/autocomplete/autocomplete-trigger.directive.mjs +3 -3
  103. package/esm2020/autocomplete/autocomplete.component.mjs +5 -5
  104. package/esm2020/autocomplete/autocomplete.module.mjs +4 -4
  105. package/esm2020/button/button.component.mjs +7 -7
  106. package/esm2020/button/button.module.mjs +4 -4
  107. package/esm2020/button-toggle/button-toggle.component.mjs +8 -8
  108. package/esm2020/button-toggle/button-toggle.module.mjs +4 -4
  109. package/esm2020/card/card.component.mjs +4 -4
  110. package/esm2020/card/card.module.mjs +4 -4
  111. package/esm2020/checkbox/checkbox-module.mjs +4 -4
  112. package/esm2020/checkbox/checkbox-required-validator.mjs +3 -3
  113. package/esm2020/checkbox/checkbox.mjs +4 -4
  114. package/esm2020/core/common-behaviors/common-module.mjs +4 -4
  115. package/esm2020/core/error/error-options.mjs +6 -6
  116. package/esm2020/core/formatters/date/formatter.mjs +76 -31
  117. package/esm2020/core/formatters/date/templates/en-US.mjs +38 -37
  118. package/esm2020/core/formatters/date/templates/ru-RU.mjs +38 -37
  119. package/esm2020/core/formatters/index.mjs +4 -4
  120. package/esm2020/core/formatters/number/formatter.mjs +4 -4
  121. package/esm2020/core/forms/forms-module.mjs +4 -4
  122. package/esm2020/core/forms/forms.directive.mjs +6 -6
  123. package/esm2020/core/highlight/highlight.pipe.mjs +3 -3
  124. package/esm2020/core/highlight/index.mjs +4 -4
  125. package/esm2020/core/line/line.mjs +7 -7
  126. package/esm2020/core/option/action.mjs +3 -3
  127. package/esm2020/core/option/optgroup.mjs +4 -4
  128. package/esm2020/core/option/option-module.mjs +4 -4
  129. package/esm2020/core/option/option.mjs +4 -4
  130. package/esm2020/core/pop-up/pop-up-trigger.mjs +7 -14
  131. package/esm2020/core/pop-up/pop-up.mjs +7 -4
  132. package/esm2020/core/public-api.mjs +2 -1
  133. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +4 -4
  134. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.module.mjs +4 -4
  135. package/esm2020/core/services/measure-scrollbar.service.mjs +3 -3
  136. package/esm2020/core/version.mjs +3 -0
  137. package/esm2020/datepicker/calendar-body.component.mjs +4 -4
  138. package/esm2020/datepicker/calendar.component.mjs +7 -7
  139. package/esm2020/datepicker/datepicker-input.directive.mjs +3 -3
  140. package/esm2020/datepicker/datepicker-intl.mjs +3 -3
  141. package/esm2020/datepicker/datepicker-module.mjs +4 -4
  142. package/esm2020/datepicker/datepicker-toggle.component.mjs +7 -7
  143. package/esm2020/datepicker/datepicker.component.mjs +8 -8
  144. package/esm2020/datepicker/month-view.component.mjs +3 -3
  145. package/esm2020/datepicker/multi-year-view.component.mjs +3 -3
  146. package/esm2020/datepicker/year-view.component.mjs +3 -3
  147. package/esm2020/design-tokens/legacy-2017/tokens.mjs +1006 -0
  148. package/esm2020/design-tokens/pt-2022/tokens.mjs +1066 -0
  149. package/esm2020/design-tokens/public-api.mjs +4 -2
  150. package/esm2020/divider/divider.component.mjs +4 -4
  151. package/esm2020/divider/divider.module.mjs +4 -4
  152. package/esm2020/dl/dl.component.mjs +78 -0
  153. package/esm2020/dl/dl.module.mjs +42 -0
  154. package/esm2020/dl/index.mjs +2 -0
  155. package/esm2020/dl/ptsecurity-mosaic-dl.mjs +5 -0
  156. package/esm2020/dl/public-api.mjs +3 -0
  157. package/esm2020/dropdown/dropdown-content.directive.mjs +3 -3
  158. package/esm2020/dropdown/dropdown-item.component.mjs +4 -4
  159. package/esm2020/dropdown/dropdown-trigger.directive.mjs +3 -3
  160. package/esm2020/dropdown/dropdown.component.mjs +6 -6
  161. package/esm2020/dropdown/dropdown.module.mjs +4 -4
  162. package/esm2020/form-field/cleaner.mjs +5 -5
  163. package/esm2020/form-field/form-field.mjs +48 -28
  164. package/esm2020/form-field/form-field.module.mjs +10 -5
  165. package/esm2020/form-field/hint.mjs +6 -6
  166. package/esm2020/form-field/password-hint.mjs +115 -0
  167. package/esm2020/form-field/prefix.mjs +3 -3
  168. package/esm2020/form-field/public-api.mjs +2 -1
  169. package/esm2020/form-field/stepper.mjs +3 -3
  170. package/esm2020/form-field/suffix.mjs +3 -3
  171. package/esm2020/icon/icon.component.mjs +6 -6
  172. package/esm2020/icon/icon.module.mjs +4 -4
  173. package/esm2020/input/input-number-validators.mjs +6 -6
  174. package/esm2020/input/input-number.mjs +3 -3
  175. package/esm2020/input/input-password.mjs +367 -0
  176. package/esm2020/input/input.mjs +6 -6
  177. package/esm2020/input/input.module.mjs +50 -8
  178. package/esm2020/input/public-api.mjs +2 -1
  179. package/esm2020/link/link.component.mjs +3 -3
  180. package/esm2020/link/link.module.mjs +4 -4
  181. package/esm2020/list/list-selection.component.mjs +22 -28
  182. package/esm2020/list/list.component.mjs +7 -7
  183. package/esm2020/list/list.module.mjs +4 -4
  184. package/esm2020/modal/css-unit.pipe.mjs +3 -3
  185. package/esm2020/modal/modal-control.service.mjs +26 -4
  186. package/esm2020/modal/modal.component.mjs +4 -4
  187. package/esm2020/modal/modal.directive.mjs +12 -12
  188. package/esm2020/modal/modal.module.mjs +4 -4
  189. package/esm2020/modal/modal.service.mjs +3 -3
  190. package/esm2020/navbar/navbar-item.component.mjs +37 -31
  191. package/esm2020/navbar/navbar.component.mjs +10 -10
  192. package/esm2020/navbar/navbar.module.mjs +4 -4
  193. package/esm2020/navbar/vertical-navbar.component.mjs +6 -6
  194. package/esm2020/popover/popover-confirm.component.mjs +8 -8
  195. package/esm2020/popover/popover.component.mjs +8 -8
  196. package/esm2020/popover/popover.module.mjs +4 -4
  197. package/esm2020/progress-bar/progress-bar.component.mjs +4 -4
  198. package/esm2020/progress-bar/progress-bar.module.mjs +4 -4
  199. package/esm2020/progress-spinner/progress-spinner.component.mjs +4 -4
  200. package/esm2020/progress-spinner/progress-spinner.module.mjs +4 -4
  201. package/esm2020/radio/radio.component.mjs +7 -7
  202. package/esm2020/radio/radio.module.mjs +4 -4
  203. package/esm2020/select/select.component.mjs +15 -15
  204. package/esm2020/select/select.module.mjs +4 -4
  205. package/esm2020/sidebar/sidebar.component.mjs +9 -9
  206. package/esm2020/sidebar/sidebar.module.mjs +4 -4
  207. package/esm2020/sidepanel/sidepanel-container.component.mjs +5 -5
  208. package/esm2020/sidepanel/sidepanel-directives.mjs +18 -18
  209. package/esm2020/sidepanel/sidepanel.module.mjs +4 -4
  210. package/esm2020/sidepanel/sidepanel.service.mjs +3 -3
  211. package/esm2020/splitter/splitter.component.mjs +22 -20
  212. package/esm2020/splitter/splitter.module.mjs +4 -4
  213. package/esm2020/table/table.component.mjs +3 -3
  214. package/esm2020/table/table.module.mjs +4 -4
  215. package/esm2020/tabs/paginated-tab-header.mjs +3 -3
  216. package/esm2020/tabs/tab-body.component.mjs +6 -6
  217. package/esm2020/tabs/tab-content.directive.mjs +3 -3
  218. package/esm2020/tabs/tab-group.component.mjs +20 -20
  219. package/esm2020/tabs/tab-header.component.mjs +4 -4
  220. package/esm2020/tabs/tab-label-wrapper.directive.mjs +3 -3
  221. package/esm2020/tabs/tab-label.directive.mjs +3 -3
  222. package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +9 -9
  223. package/esm2020/tabs/tab.component.mjs +3 -3
  224. package/esm2020/tabs/tabs.module.mjs +4 -4
  225. package/esm2020/tags/tag-input.mjs +3 -3
  226. package/esm2020/tags/tag-list.component.mjs +4 -4
  227. package/esm2020/tags/tag.component.mjs +61 -58
  228. package/esm2020/tags/tag.module.mjs +4 -4
  229. package/esm2020/textarea/textarea.component.mjs +3 -3
  230. package/esm2020/textarea/textarea.module.mjs +4 -4
  231. package/esm2020/timepicker/timepicker.directive.mjs +3 -3
  232. package/esm2020/timepicker/timepicker.module.mjs +4 -4
  233. package/esm2020/toggle/toggle.component.mjs +6 -6
  234. package/esm2020/toggle/toggle.module.mjs +4 -4
  235. package/esm2020/tooltip/tooltip.component.mjs +17 -14
  236. package/esm2020/tooltip/tooltip.module.mjs +4 -4
  237. package/esm2020/tree/data-source/flat-data-source.mjs +4 -4
  238. package/esm2020/tree/node.mjs +3 -3
  239. package/esm2020/tree/outlet.mjs +3 -3
  240. package/esm2020/tree/padding.directive.mjs +3 -3
  241. package/esm2020/tree/toggle.mjs +11 -11
  242. package/esm2020/tree/tree-base.mjs +6 -6
  243. package/esm2020/tree/tree-option.component.mjs +17 -9
  244. package/esm2020/tree/tree-selection.component.mjs +8 -5
  245. package/esm2020/tree/tree.mjs +3 -3
  246. package/esm2020/tree/tree.module.mjs +4 -4
  247. package/esm2020/tree-select/tree-select.component.mjs +46 -10
  248. package/esm2020/tree-select/tree-select.module.mjs +15 -11
  249. package/fesm2015/ptsecurity-mosaic-autocomplete.mjs +15 -15
  250. package/fesm2015/ptsecurity-mosaic-autocomplete.mjs.map +1 -1
  251. package/fesm2015/ptsecurity-mosaic-button-toggle.mjs +12 -12
  252. package/fesm2015/ptsecurity-mosaic-button-toggle.mjs.map +1 -1
  253. package/fesm2015/ptsecurity-mosaic-button.mjs +11 -11
  254. package/fesm2015/ptsecurity-mosaic-button.mjs.map +1 -1
  255. package/fesm2015/ptsecurity-mosaic-card.mjs +8 -8
  256. package/fesm2015/ptsecurity-mosaic-card.mjs.map +1 -1
  257. package/fesm2015/ptsecurity-mosaic-checkbox.mjs +11 -11
  258. package/fesm2015/ptsecurity-mosaic-checkbox.mjs.map +1 -1
  259. package/fesm2015/ptsecurity-mosaic-core.mjs +234 -189
  260. package/fesm2015/ptsecurity-mosaic-core.mjs.map +1 -1
  261. package/fesm2015/ptsecurity-mosaic-datepicker.mjs +44 -44
  262. package/fesm2015/ptsecurity-mosaic-datepicker.mjs.map +1 -1
  263. package/fesm2015/ptsecurity-mosaic-design-tokens.mjs +2647 -502
  264. package/fesm2015/ptsecurity-mosaic-design-tokens.mjs.map +1 -1
  265. package/fesm2015/ptsecurity-mosaic-divider.mjs +8 -8
  266. package/fesm2015/ptsecurity-mosaic-divider.mjs.map +1 -1
  267. package/fesm2015/ptsecurity-mosaic-dl.mjs +124 -0
  268. package/fesm2015/ptsecurity-mosaic-dl.mjs.map +1 -0
  269. package/fesm2015/ptsecurity-mosaic-dropdown.mjs +19 -19
  270. package/fesm2015/ptsecurity-mosaic-dropdown.mjs.map +1 -1
  271. package/fesm2015/ptsecurity-mosaic-form-field.mjs +193 -51
  272. package/fesm2015/ptsecurity-mosaic-form-field.mjs.map +1 -1
  273. package/fesm2015/ptsecurity-mosaic-icon.mjs +10 -10
  274. package/fesm2015/ptsecurity-mosaic-icon.mjs.map +1 -1
  275. package/fesm2015/ptsecurity-mosaic-input.mjs +429 -28
  276. package/fesm2015/ptsecurity-mosaic-input.mjs.map +1 -1
  277. package/fesm2015/ptsecurity-mosaic-link.mjs +7 -7
  278. package/fesm2015/ptsecurity-mosaic-link.mjs.map +1 -1
  279. package/fesm2015/ptsecurity-mosaic-list.mjs +33 -38
  280. package/fesm2015/ptsecurity-mosaic-list.mjs.map +1 -1
  281. package/fesm2015/ptsecurity-mosaic-modal.mjs +51 -29
  282. package/fesm2015/ptsecurity-mosaic-modal.mjs.map +1 -1
  283. package/fesm2015/ptsecurity-mosaic-navbar.mjs +55 -49
  284. package/fesm2015/ptsecurity-mosaic-navbar.mjs.map +1 -1
  285. package/fesm2015/ptsecurity-mosaic-popover.mjs +18 -18
  286. package/fesm2015/ptsecurity-mosaic-popover.mjs.map +1 -1
  287. package/fesm2015/ptsecurity-mosaic-progress-bar.mjs +8 -8
  288. package/fesm2015/ptsecurity-mosaic-progress-bar.mjs.map +1 -1
  289. package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs +8 -8
  290. package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
  291. package/fesm2015/ptsecurity-mosaic-radio.mjs +11 -11
  292. package/fesm2015/ptsecurity-mosaic-radio.mjs.map +1 -1
  293. package/fesm2015/ptsecurity-mosaic-select.mjs +18 -18
  294. package/fesm2015/ptsecurity-mosaic-select.mjs.map +1 -1
  295. package/fesm2015/ptsecurity-mosaic-sidebar.mjs +13 -13
  296. package/fesm2015/ptsecurity-mosaic-sidebar.mjs.map +1 -1
  297. package/fesm2015/ptsecurity-mosaic-sidepanel.mjs +28 -28
  298. package/fesm2015/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
  299. package/fesm2015/ptsecurity-mosaic-splitter.mjs +25 -23
  300. package/fesm2015/ptsecurity-mosaic-splitter.mjs.map +1 -1
  301. package/fesm2015/ptsecurity-mosaic-table.mjs +7 -7
  302. package/fesm2015/ptsecurity-mosaic-table.mjs.map +1 -1
  303. package/fesm2015/ptsecurity-mosaic-tabs.mjs +56 -56
  304. package/fesm2015/ptsecurity-mosaic-tabs.mjs.map +1 -1
  305. package/fesm2015/ptsecurity-mosaic-tags.mjs +73 -68
  306. package/fesm2015/ptsecurity-mosaic-tags.mjs.map +1 -1
  307. package/fesm2015/ptsecurity-mosaic-textarea.mjs +7 -7
  308. package/fesm2015/ptsecurity-mosaic-textarea.mjs.map +1 -1
  309. package/fesm2015/ptsecurity-mosaic-timepicker.mjs +7 -7
  310. package/fesm2015/ptsecurity-mosaic-timepicker.mjs.map +1 -1
  311. package/fesm2015/ptsecurity-mosaic-toggle.mjs +9 -9
  312. package/fesm2015/ptsecurity-mosaic-toggle.mjs.map +1 -1
  313. package/fesm2015/ptsecurity-mosaic-tooltip.mjs +20 -17
  314. package/fesm2015/ptsecurity-mosaic-tooltip.mjs.map +1 -1
  315. package/fesm2015/ptsecurity-mosaic-tree-select.mjs +59 -19
  316. package/fesm2015/ptsecurity-mosaic-tree-select.mjs.map +1 -1
  317. package/fesm2015/ptsecurity-mosaic-tree.mjs +58 -47
  318. package/fesm2015/ptsecurity-mosaic-tree.mjs.map +1 -1
  319. package/fesm2015/ptsecurity-mosaic.mjs.map +1 -1
  320. package/fesm2020/ptsecurity-mosaic-autocomplete.mjs +15 -15
  321. package/fesm2020/ptsecurity-mosaic-autocomplete.mjs.map +1 -1
  322. package/fesm2020/ptsecurity-mosaic-button-toggle.mjs +12 -12
  323. package/fesm2020/ptsecurity-mosaic-button-toggle.mjs.map +1 -1
  324. package/fesm2020/ptsecurity-mosaic-button.mjs +11 -11
  325. package/fesm2020/ptsecurity-mosaic-button.mjs.map +1 -1
  326. package/fesm2020/ptsecurity-mosaic-card.mjs +8 -8
  327. package/fesm2020/ptsecurity-mosaic-card.mjs.map +1 -1
  328. package/fesm2020/ptsecurity-mosaic-checkbox.mjs +11 -11
  329. package/fesm2020/ptsecurity-mosaic-checkbox.mjs.map +1 -1
  330. package/fesm2020/ptsecurity-mosaic-core.mjs +234 -189
  331. package/fesm2020/ptsecurity-mosaic-core.mjs.map +1 -1
  332. package/fesm2020/ptsecurity-mosaic-datepicker.mjs +44 -44
  333. package/fesm2020/ptsecurity-mosaic-datepicker.mjs.map +1 -1
  334. package/fesm2020/ptsecurity-mosaic-design-tokens.mjs +2647 -502
  335. package/fesm2020/ptsecurity-mosaic-design-tokens.mjs.map +1 -1
  336. package/fesm2020/ptsecurity-mosaic-divider.mjs +8 -8
  337. package/fesm2020/ptsecurity-mosaic-divider.mjs.map +1 -1
  338. package/fesm2020/ptsecurity-mosaic-dl.mjs +124 -0
  339. package/fesm2020/ptsecurity-mosaic-dl.mjs.map +1 -0
  340. package/fesm2020/ptsecurity-mosaic-dropdown.mjs +19 -19
  341. package/fesm2020/ptsecurity-mosaic-dropdown.mjs.map +1 -1
  342. package/fesm2020/ptsecurity-mosaic-form-field.mjs +182 -51
  343. package/fesm2020/ptsecurity-mosaic-form-field.mjs.map +1 -1
  344. package/fesm2020/ptsecurity-mosaic-icon.mjs +10 -10
  345. package/fesm2020/ptsecurity-mosaic-icon.mjs.map +1 -1
  346. package/fesm2020/ptsecurity-mosaic-input.mjs +422 -28
  347. package/fesm2020/ptsecurity-mosaic-input.mjs.map +1 -1
  348. package/fesm2020/ptsecurity-mosaic-link.mjs +7 -7
  349. package/fesm2020/ptsecurity-mosaic-link.mjs.map +1 -1
  350. package/fesm2020/ptsecurity-mosaic-list.mjs +32 -38
  351. package/fesm2020/ptsecurity-mosaic-list.mjs.map +1 -1
  352. package/fesm2020/ptsecurity-mosaic-modal.mjs +51 -29
  353. package/fesm2020/ptsecurity-mosaic-modal.mjs.map +1 -1
  354. package/fesm2020/ptsecurity-mosaic-navbar.mjs +55 -49
  355. package/fesm2020/ptsecurity-mosaic-navbar.mjs.map +1 -1
  356. package/fesm2020/ptsecurity-mosaic-popover.mjs +18 -18
  357. package/fesm2020/ptsecurity-mosaic-popover.mjs.map +1 -1
  358. package/fesm2020/ptsecurity-mosaic-progress-bar.mjs +8 -8
  359. package/fesm2020/ptsecurity-mosaic-progress-bar.mjs.map +1 -1
  360. package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs +8 -8
  361. package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
  362. package/fesm2020/ptsecurity-mosaic-radio.mjs +11 -11
  363. package/fesm2020/ptsecurity-mosaic-radio.mjs.map +1 -1
  364. package/fesm2020/ptsecurity-mosaic-select.mjs +18 -18
  365. package/fesm2020/ptsecurity-mosaic-select.mjs.map +1 -1
  366. package/fesm2020/ptsecurity-mosaic-sidebar.mjs +13 -13
  367. package/fesm2020/ptsecurity-mosaic-sidebar.mjs.map +1 -1
  368. package/fesm2020/ptsecurity-mosaic-sidepanel.mjs +28 -28
  369. package/fesm2020/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
  370. package/fesm2020/ptsecurity-mosaic-splitter.mjs +25 -23
  371. package/fesm2020/ptsecurity-mosaic-splitter.mjs.map +1 -1
  372. package/fesm2020/ptsecurity-mosaic-table.mjs +7 -7
  373. package/fesm2020/ptsecurity-mosaic-table.mjs.map +1 -1
  374. package/fesm2020/ptsecurity-mosaic-tabs.mjs +56 -56
  375. package/fesm2020/ptsecurity-mosaic-tabs.mjs.map +1 -1
  376. package/fesm2020/ptsecurity-mosaic-tags.mjs +71 -68
  377. package/fesm2020/ptsecurity-mosaic-tags.mjs.map +1 -1
  378. package/fesm2020/ptsecurity-mosaic-textarea.mjs +7 -7
  379. package/fesm2020/ptsecurity-mosaic-textarea.mjs.map +1 -1
  380. package/fesm2020/ptsecurity-mosaic-timepicker.mjs +7 -7
  381. package/fesm2020/ptsecurity-mosaic-timepicker.mjs.map +1 -1
  382. package/fesm2020/ptsecurity-mosaic-toggle.mjs +9 -9
  383. package/fesm2020/ptsecurity-mosaic-toggle.mjs.map +1 -1
  384. package/fesm2020/ptsecurity-mosaic-tooltip.mjs +20 -17
  385. package/fesm2020/ptsecurity-mosaic-tooltip.mjs.map +1 -1
  386. package/fesm2020/ptsecurity-mosaic-tree-select.mjs +58 -19
  387. package/fesm2020/ptsecurity-mosaic-tree-select.mjs.map +1 -1
  388. package/fesm2020/ptsecurity-mosaic-tree.mjs +58 -47
  389. package/fesm2020/ptsecurity-mosaic-tree.mjs.map +1 -1
  390. package/fesm2020/ptsecurity-mosaic.mjs.map +1 -1
  391. package/form-field/form-field.d.ts +9 -2
  392. package/form-field/form-field.module.d.ts +8 -7
  393. package/form-field/password-hint.d.ts +38 -0
  394. package/form-field/public-api.d.ts +1 -0
  395. package/input/input-password.d.ts +120 -0
  396. package/input/input.module.d.ts +7 -6
  397. package/input/public-api.d.ts +1 -0
  398. package/modal/modal-control.service.d.ts +1 -0
  399. package/navbar/navbar-item.component.d.ts +1 -0
  400. package/package.json +12 -4
  401. package/prebuilt-themes/dark-theme.css +1 -1
  402. package/prebuilt-themes/default-theme.css +1 -1
  403. package/prebuilt-visual/default-visual.css +1 -1
  404. package/tags/tag.component.d.ts +20 -20
  405. package/tree/data-source/flat-data-source.d.ts +2 -2
  406. package/tree/toggle.d.ts +1 -1
  407. package/tree/tree-option.component.d.ts +5 -3
  408. package/tree/tree-selection.component.d.ts +1 -0
  409. package/tree-select/tree-select.component.d.ts +9 -1
  410. package/tree-select/tree-select.module.d.ts +2 -1
  411. package/design-tokens/tokens/components/form-field.json5 +0 -52
  412. package/design-tokens/tokens/components/tabs.json5 +0 -25
  413. package/esm2020/design-tokens/tokens.mjs +0 -933
@@ -1,16 +1,21 @@
1
+ import * as i3$1 from '@angular/cdk/a11y';
1
2
  import { A11yModule } from '@angular/cdk/a11y';
2
3
  import { CommonModule } from '@angular/common';
3
4
  import * as i0 from '@angular/core';
4
- import { Directive, Optional, Self, Attribute, Input, InjectionToken, Inject, forwardRef, NgModule } from '@angular/core';
5
+ import { Directive, Optional, Self, Attribute, Input, InjectionToken, Inject, forwardRef, Component, ChangeDetectionStrategy, ViewEncapsulation, NgModule } from '@angular/core';
5
6
  import * as i1 from '@angular/forms';
6
7
  import { NG_VALIDATORS, Validators, FormsModule } from '@angular/forms';
7
8
  import * as i3 from '@ptsecurity/mosaic/core';
8
- import { mixinErrorState, setMosaicValidation, MC_VALIDATION, McCommonModule } from '@ptsecurity/mosaic/core';
9
- import { coerceBooleanProperty } from '@angular/cdk/coercion';
9
+ import { mixinErrorState, setMosaicValidation, MC_VALIDATION, PopUpTriggers, McCommonModule } from '@ptsecurity/mosaic/core';
10
+ import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
10
11
  import { getSupportedInputTypes } from '@angular/cdk/platform';
12
+ import * as i4 from '@ptsecurity/mosaic/form-field';
11
13
  import { McFormFieldControl } from '@ptsecurity/mosaic/form-field';
12
14
  import { Subject } from 'rxjs';
13
15
  import { A, C, V, X, Z, F1, F12, ZERO, NINE, NUMPAD_ZERO, NUMPAD_NINE, NUMPAD_MINUS, DASH, FF_MINUS, DELETE, BACKSPACE, TAB, ESCAPE, ENTER, LEFT_ARROW, RIGHT_ARROW, HOME, END, UP_ARROW, DOWN_ARROW } from '@ptsecurity/cdk/keycodes';
16
+ import * as i2 from '@angular/cdk/bidi';
17
+ import * as i1$1 from '@angular/cdk/overlay';
18
+ import { McTooltipTrigger, MC_TOOLTIP_SCROLL_STRATEGY } from '@ptsecurity/mosaic/tooltip';
14
19
 
15
20
  function getMcInputUnsupportedTypeError(inputType) {
16
21
  return Error(`Input type "${inputType}" isn't supported by mcInput.`);
@@ -133,9 +138,9 @@ class McNumberInput {
133
138
  }
134
139
  }
135
140
  }
136
- /** @nocollapse */ /** @nocollapse */ McNumberInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McNumberInput, deps: [{ token: i0.ElementRef }, { token: i1.NgControl, optional: true, self: true }, { token: 'step', attribute: true }, { token: 'big-step', attribute: true }, { token: 'min', attribute: true }, { token: 'max', attribute: true }], target: i0.ɵɵFactoryTarget.Directive });
137
- /** @nocollapse */ /** @nocollapse */ McNumberInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: McNumberInput, selector: "input[mcInput][type=\"number\"]", inputs: { bigStep: "bigStep", step: "step", min: "min", max: "max" }, host: { listeners: { "blur": "focusChanged(false)", "focus": "focusChanged(true)", "paste": "onPaste($event)", "keydown": "onKeyDown($event)" } }, exportAs: ["mcNumericalInput"], ngImport: i0 });
138
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McNumberInput, decorators: [{
141
+ /** @nocollapse */ /** @nocollapse */ McNumberInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McNumberInput, deps: [{ token: i0.ElementRef }, { token: i1.NgControl, optional: true, self: true }, { token: 'step', attribute: true }, { token: 'big-step', attribute: true }, { token: 'min', attribute: true }, { token: 'max', attribute: true }], target: i0.ɵɵFactoryTarget.Directive });
142
+ /** @nocollapse */ /** @nocollapse */ McNumberInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", type: McNumberInput, selector: "input[mcInput][type=\"number\"]", inputs: { bigStep: "bigStep", step: "step", min: "min", max: "max" }, host: { listeners: { "blur": "focusChanged(false)", "focus": "focusChanged(true)", "paste": "onPaste($event)", "keydown": "onKeyDown($event)" } }, exportAs: ["mcNumericalInput"], ngImport: i0 });
143
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McNumberInput, decorators: [{
139
144
  type: Directive,
140
145
  args: [{
141
146
  selector: `input[mcInput][type="number"]`,
@@ -186,7 +191,7 @@ const MC_INPUT_INVALID_TYPES = [
186
191
  'reset',
187
192
  'submit'
188
193
  ];
189
- let nextUniqueId = 0;
194
+ let nextUniqueId$1 = 0;
190
195
  class McInputBase {
191
196
  constructor(defaultErrorStateMatcher, parentForm, parentFormGroup, ngControl) {
192
197
  this.defaultErrorStateMatcher = defaultErrorStateMatcher;
@@ -222,7 +227,7 @@ class McInput extends McInputMixinBase {
222
227
  * @docs-private
223
228
  */
224
229
  this.controlType = 'input';
225
- this.uid = `mc-input-${nextUniqueId++}`;
230
+ this.uid = `mc-input-${nextUniqueId$1++}`;
226
231
  this.neverEmptyInputTypes = [
227
232
  'date',
228
233
  'datetime',
@@ -402,11 +407,11 @@ class McInput extends McInputMixinBase {
402
407
  return validity && validity.badInput;
403
408
  }
404
409
  }
405
- /** @nocollapse */ /** @nocollapse */ McInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McInput, deps: [{ token: i0.ElementRef }, { token: NG_VALIDATORS, optional: true, self: true }, { token: MC_VALIDATION, optional: true }, { token: i1.NgControl, optional: true, self: true }, { token: McNumberInput, optional: true, self: true }, { token: i1.NgModel, optional: true, self: true }, { token: i1.FormControlName, optional: true, self: true }, { token: i1.NgForm, optional: true }, { token: i1.FormGroupDirective, optional: true }, { token: i3.ErrorStateMatcher }, { token: MC_INPUT_VALUE_ACCESSOR, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
406
- /** @nocollapse */ /** @nocollapse */ McInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: McInput, selector: "input[mcInput]", inputs: { errorStateMatcher: "errorStateMatcher", placeholder: "placeholder", disabled: "disabled", id: "id", required: "required", type: "type", value: "value" }, host: { listeners: { "blur": "onBlur()", "focus": "focusChanged(true)", "input": "onInput()" }, properties: { "attr.id": "id", "attr.placeholder": "placeholder", "attr.disabled": "disabled || null", "required": "required" }, classAttribute: "mc-input" }, providers: [{
410
+ /** @nocollapse */ /** @nocollapse */ McInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McInput, deps: [{ token: i0.ElementRef }, { token: NG_VALIDATORS, optional: true, self: true }, { token: MC_VALIDATION, optional: true }, { token: i1.NgControl, optional: true, self: true }, { token: McNumberInput, optional: true, self: true }, { token: i1.NgModel, optional: true, self: true }, { token: i1.FormControlName, optional: true, self: true }, { token: i1.NgForm, optional: true }, { token: i1.FormGroupDirective, optional: true }, { token: i3.ErrorStateMatcher }, { token: MC_INPUT_VALUE_ACCESSOR, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
411
+ /** @nocollapse */ /** @nocollapse */ McInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", type: McInput, selector: "input[mcInput]", inputs: { errorStateMatcher: "errorStateMatcher", placeholder: "placeholder", disabled: "disabled", id: "id", required: "required", type: "type", value: "value" }, host: { listeners: { "blur": "onBlur()", "focus": "focusChanged(true)", "input": "onInput()" }, properties: { "attr.id": "id", "attr.placeholder": "placeholder", "attr.disabled": "disabled || null", "required": "required" }, classAttribute: "mc-input" }, providers: [{
407
412
  provide: McFormFieldControl, useExisting: McInput
408
413
  }], exportAs: ["mcInput"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
409
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McInput, decorators: [{
414
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McInput, decorators: [{
410
415
  type: Directive,
411
416
  args: [{
412
417
  selector: `input[mcInput]`,
@@ -483,9 +488,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
483
488
  }] } });
484
489
  class McInputMono {
485
490
  }
486
- /** @nocollapse */ /** @nocollapse */ McInputMono.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McInputMono, deps: [], target: i0.ɵɵFactoryTarget.Directive });
487
- /** @nocollapse */ /** @nocollapse */ McInputMono.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: McInputMono, selector: "input[mcInputMonospace]", host: { classAttribute: "mc-input_monospace" }, exportAs: ["McInputMonospace"], ngImport: i0 });
488
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McInputMono, decorators: [{
491
+ /** @nocollapse */ /** @nocollapse */ McInputMono.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McInputMono, deps: [], target: i0.ɵɵFactoryTarget.Directive });
492
+ /** @nocollapse */ /** @nocollapse */ McInputMono.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", type: McInputMono, selector: "input[mcInputMonospace]", host: { classAttribute: "mc-input_monospace" }, exportAs: ["McInputMonospace"], ngImport: i0 });
493
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McInputMono, decorators: [{
489
494
  type: Directive,
490
495
  args: [{
491
496
  selector: 'input[mcInputMonospace]',
@@ -524,9 +529,9 @@ class MinValidator {
524
529
  this.validator = Validators.min(parseInt(this.min, 10));
525
530
  }
526
531
  }
527
- /** @nocollapse */ /** @nocollapse */ MinValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MinValidator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
528
- /** @nocollapse */ /** @nocollapse */ MinValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MinValidator, selector: "[min][formControlName],[min][formControl],[min][ngModel]", inputs: { min: "min" }, host: { properties: { "attr.min": "min ? min : null" } }, providers: [MIN_VALIDATOR], usesOnChanges: true, ngImport: i0 });
529
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MinValidator, decorators: [{
532
+ /** @nocollapse */ /** @nocollapse */ MinValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: MinValidator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
533
+ /** @nocollapse */ /** @nocollapse */ MinValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", type: MinValidator, selector: "[min][formControlName],[min][formControl],[min][ngModel]", inputs: { min: "min" }, host: { properties: { "attr.min": "min ? min : null" } }, providers: [MIN_VALIDATOR], usesOnChanges: true, ngImport: i0 });
534
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: MinValidator, decorators: [{
530
535
  type: Directive,
531
536
  args: [{
532
537
  selector: '[min][formControlName],[min][formControl],[min][ngModel]',
@@ -568,9 +573,9 @@ class MaxValidator {
568
573
  this.validator = Validators.max(parseInt(this.max, 10));
569
574
  }
570
575
  }
571
- /** @nocollapse */ /** @nocollapse */ MaxValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MaxValidator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
572
- /** @nocollapse */ /** @nocollapse */ MaxValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MaxValidator, selector: "[max][formControlName],[max][formControl],[max][ngModel]", inputs: { max: "max" }, host: { properties: { "attr.max": "max ? max : null" } }, providers: [MAX_VALIDATOR], usesOnChanges: true, ngImport: i0 });
573
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MaxValidator, decorators: [{
576
+ /** @nocollapse */ /** @nocollapse */ MaxValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: MaxValidator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
577
+ /** @nocollapse */ /** @nocollapse */ MaxValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", type: MaxValidator, selector: "[max][formControlName],[max][formControl],[max][ngModel]", inputs: { max: "max" }, host: { properties: { "attr.max": "max ? max : null" } }, providers: [MAX_VALIDATOR], usesOnChanges: true, ngImport: i0 });
578
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: MaxValidator, decorators: [{
574
579
  type: Directive,
575
580
  args: [{
576
581
  selector: '[max][formControlName],[max][formControl],[max][ngModel]',
@@ -583,17 +588,406 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
583
588
  type: Input
584
589
  }] } });
585
590
 
591
+ let nextUniqueId = 0;
592
+ class McPasswordToggle extends McTooltipTrigger {
593
+ constructor(overlay, elementRef, ngZone, scrollDispatcher, hostView, scrollStrategy, direction, focusMonitor, formField) {
594
+ super(overlay, elementRef, ngZone, scrollDispatcher, hostView, scrollStrategy, direction);
595
+ this.focusMonitor = focusMonitor;
596
+ this.formField = formField;
597
+ this._tabIndex = 0;
598
+ this.trigger = `${PopUpTriggers.Hover}`;
599
+ this.runFocusMonitor();
600
+ }
601
+ get content() {
602
+ return this.formField.control.elementType === 'password' ?
603
+ this.mcTooltipHidden :
604
+ this._content;
605
+ }
606
+ set content(content) {
607
+ this._content = content;
608
+ this.updateData();
609
+ }
610
+ get disabled() {
611
+ return this._disabled === undefined ? this.formField.disabled : this._disabled;
612
+ }
613
+ set disabled(value) {
614
+ this._disabled = coerceBooleanProperty(value);
615
+ this._disabled ? this.stopFocusMonitor() : this.runFocusMonitor();
616
+ }
617
+ get tabIndex() {
618
+ return this.disabled ? -1 : this._tabIndex;
619
+ }
620
+ set tabIndex(value) {
621
+ // If the specified tabIndex value is null or undefined, fall back to the default value.
622
+ this._tabIndex = value != null ? coerceNumberProperty(value) : 0;
623
+ }
624
+ get hidden() {
625
+ return this.formField.control.elementType === 'password';
626
+ }
627
+ ngOnDestroy() {
628
+ this.stopFocusMonitor();
629
+ }
630
+ toggle() {
631
+ if (this.disabled) {
632
+ return;
633
+ }
634
+ this.hide();
635
+ const input = this.formField.control;
636
+ input.toggleType();
637
+ this.updateData();
638
+ }
639
+ runFocusMonitor() {
640
+ this.focusMonitor.monitor(this.elementRef)
641
+ .subscribe((origin) => {
642
+ if (origin === 'keyboard') {
643
+ this.show();
644
+ }
645
+ else if (origin === null) {
646
+ this.hide();
647
+ }
648
+ });
649
+ }
650
+ stopFocusMonitor() {
651
+ this.focusMonitor.stopMonitoring(this.elementRef);
652
+ }
653
+ }
654
+ /** @nocollapse */ /** @nocollapse */ McPasswordToggle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McPasswordToggle, deps: [{ token: i1$1.Overlay }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i1$1.ScrollDispatcher }, { token: i0.ViewContainerRef }, { token: MC_TOOLTIP_SCROLL_STRATEGY }, { token: i2.Directionality, optional: true }, { token: i3$1.FocusMonitor }, { token: i4.McFormField }], target: i0.ɵɵFactoryTarget.Component });
655
+ /** @nocollapse */ /** @nocollapse */ McPasswordToggle.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: McPasswordToggle, selector: "mc-password-toggle", inputs: { content: ["mcTooltipNotHidden", "content"], mcTooltipHidden: "mcTooltipHidden", disabled: "disabled", tabIndex: "tabIndex" }, host: { listeners: { "click": "toggle()", "keydown.ENTER": "toggle()", "keydown.SPACE": "toggle()" }, properties: { "class.mc-eye_16": "hidden", "class.mc-eye-crossed_16": "!hidden", "attr.tabindex": "disabled ? null : tabIndex", "attr.disabled": "disabled || null" }, classAttribute: "mc-password-toggle mc" }, exportAs: ["mcPasswordToggle"], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
656
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McPasswordToggle, decorators: [{
657
+ type: Component,
658
+ args: [{
659
+ selector: `mc-password-toggle`,
660
+ exportAs: 'mcPasswordToggle',
661
+ template: '<ng-content></ng-content>',
662
+ host: {
663
+ class: 'mc-password-toggle mc',
664
+ '[class.mc-eye_16]': 'hidden',
665
+ '[class.mc-eye-crossed_16]': '!hidden',
666
+ '[attr.tabindex]': 'disabled ? null : tabIndex',
667
+ '[attr.disabled]': 'disabled || null',
668
+ '(click)': 'toggle()',
669
+ '(keydown.ENTER)': 'toggle()',
670
+ '(keydown.SPACE)': 'toggle()'
671
+ },
672
+ changeDetection: ChangeDetectionStrategy.OnPush,
673
+ encapsulation: ViewEncapsulation.None
674
+ }]
675
+ }], ctorParameters: function () { return [{ type: i1$1.Overlay }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i1$1.ScrollDispatcher }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{
676
+ type: Inject,
677
+ args: [MC_TOOLTIP_SCROLL_STRATEGY]
678
+ }] }, { type: i2.Directionality, decorators: [{
679
+ type: Optional
680
+ }] }, { type: i3$1.FocusMonitor }, { type: i4.McFormField }]; }, propDecorators: { content: [{
681
+ type: Input,
682
+ args: ['mcTooltipNotHidden']
683
+ }], mcTooltipHidden: [{
684
+ type: Input
685
+ }], disabled: [{
686
+ type: Input
687
+ }], tabIndex: [{
688
+ type: Input
689
+ }] } });
690
+ class McInputPassword extends McInputMixinBase {
691
+ // tslint:disable-next-line: naming-convention
692
+ constructor(elementRef, rawValidators, mcValidation, ngControl, ngModel, formControlName, parentForm, parentFormGroup, defaultErrorStateMatcher, inputValueAccessor) {
693
+ super(defaultErrorStateMatcher, parentForm, parentFormGroup, ngControl);
694
+ this.elementRef = elementRef;
695
+ this.rawValidators = rawValidators;
696
+ this.mcValidation = mcValidation;
697
+ this.ngModel = ngModel;
698
+ this.formControlName = formControlName;
699
+ /**
700
+ * Implemented as part of McFormFieldControl.
701
+ * @docs-private
702
+ */
703
+ this.focused = false;
704
+ /**
705
+ * Implemented as part of McFormFieldControl.
706
+ * @docs-private
707
+ */
708
+ this.stateChanges = new Subject();
709
+ /**
710
+ * Implemented as part of McFormFieldControl.
711
+ * @docs-private
712
+ */
713
+ this.controlType = 'input-password';
714
+ this.elementType = 'password';
715
+ this.uid = `mc-input-${nextUniqueId++}`;
716
+ this._disabled = false;
717
+ this._required = false;
718
+ // If no input value accessor was explicitly specified, use the element as the input value
719
+ // accessor.
720
+ this._inputValueAccessor = inputValueAccessor || this.elementRef.nativeElement;
721
+ this.previousNativeValue = this.value;
722
+ // Force setter to be called in case id was not specified.
723
+ this.id = this.id;
724
+ }
725
+ /**
726
+ * Implemented as part of McFormFieldControl.
727
+ * @docs-private
728
+ */
729
+ get disabled() {
730
+ if (this.ngControl?.disabled !== null) {
731
+ return this.ngControl.disabled;
732
+ }
733
+ return this._disabled;
734
+ }
735
+ set disabled(value) {
736
+ this._disabled = coerceBooleanProperty(value);
737
+ // Browsers may not fire the blur event if the input is disabled too quickly.
738
+ // Reset from here to ensure that the element doesn't become stuck.
739
+ if (this.focused) {
740
+ this.focused = false;
741
+ this.stateChanges.next();
742
+ }
743
+ }
744
+ /**
745
+ * Implemented as part of McFormFieldControl.
746
+ * @docs-private
747
+ */
748
+ get id() {
749
+ return this._id;
750
+ }
751
+ set id(value) {
752
+ this._id = value || this.uid;
753
+ }
754
+ /**
755
+ * Implemented as part of McFormFieldControl.
756
+ * @docs-private
757
+ */
758
+ get required() {
759
+ return this._required;
760
+ }
761
+ set required(value) {
762
+ this._required = coerceBooleanProperty(value);
763
+ }
764
+ // this.elementRef.nativeElement.type = this._type;
765
+ /**
766
+ * Implemented as part of McFormFieldControl.
767
+ * @docs-private
768
+ */
769
+ get value() {
770
+ return this._inputValueAccessor.value;
771
+ }
772
+ set value(value) {
773
+ if (value === this.value) {
774
+ return;
775
+ }
776
+ this._inputValueAccessor.value = value;
777
+ this.stateChanges.next();
778
+ }
779
+ ngAfterContentInit() {
780
+ if (!this.ngControl) {
781
+ return;
782
+ }
783
+ if (this.mcValidation.useValidation) {
784
+ setMosaicValidation(this);
785
+ }
786
+ }
787
+ ngOnChanges() {
788
+ this.stateChanges.next();
789
+ }
790
+ ngOnDestroy() {
791
+ this.stateChanges.complete();
792
+ }
793
+ ngDoCheck() {
794
+ if (this.ngControl) {
795
+ // We need to re-evaluate this on every change detection cycle, because there are some
796
+ // error triggers that we can't subscribe to (e.g. parent form submissions). This means
797
+ // that whatever logic is in here has to be super lean or we risk destroying the performance.
798
+ this.updateErrorState();
799
+ }
800
+ // We need to dirty-check the native element's value, because there are some cases where
801
+ // we won't be notified when it changes (e.g. the consumer isn't using forms or they're
802
+ // updating the value using `emitEvent: false`).
803
+ this.dirtyCheckNativeValue();
804
+ }
805
+ toggleType() {
806
+ this.elementType = this.elementType === 'password' ? 'text' : 'password';
807
+ }
808
+ /** Focuses the input. */
809
+ focus() {
810
+ this.elementRef.nativeElement.focus();
811
+ }
812
+ onBlur() {
813
+ if (this.ngControl?.control) {
814
+ const control = this.ngControl.control;
815
+ control.updateValueAndValidity({ emitEvent: false });
816
+ control.statusChanges.emit(control.status);
817
+ }
818
+ this.focusChanged(false);
819
+ }
820
+ /** Callback for the cases where the focused state of the input changes. */
821
+ focusChanged(isFocused) {
822
+ if (isFocused === this.focused) {
823
+ return;
824
+ }
825
+ this.focused = isFocused;
826
+ this.stateChanges.next({ focused: this.focused });
827
+ }
828
+ onInput() {
829
+ // This is a noop function and is used to let Angular know whenever the value changes.
830
+ // Angular will run a new change detection each time the `input` event has been dispatched.
831
+ // It's necessary that Angular recognizes the value change, because when floatingLabel
832
+ // is set to false and Angular forms aren't used, the placeholder won't recognize the
833
+ // value changes and will not disappear.
834
+ // Listening to the input event wouldn't be necessary when the input is using the
835
+ // FormsModule or ReactiveFormsModule, because Angular forms also listens to input events.
836
+ }
837
+ /**
838
+ * Implemented as part of McFormFieldControl.
839
+ * @docs-private
840
+ */
841
+ get empty() {
842
+ return !this.elementRef.nativeElement.value && !this.isBadInput();
843
+ }
844
+ /**
845
+ * Implemented as part of McFormFieldControl.
846
+ * @docs-private
847
+ */
848
+ onContainerClick() {
849
+ this.focus();
850
+ }
851
+ /** Does some manual dirty checking on the native input `value` property. */
852
+ dirtyCheckNativeValue() {
853
+ if (this.previousNativeValue !== this.value) {
854
+ this.previousNativeValue = this.value;
855
+ this.stateChanges.next();
856
+ }
857
+ }
858
+ /** Checks whether the input is invalid based on the native validation. */
859
+ isBadInput() {
860
+ // The `validity` property won't be present on platform-server.
861
+ return this.elementRef.nativeElement.validity?.badInput;
862
+ }
863
+ }
864
+ /** @nocollapse */ /** @nocollapse */ McInputPassword.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McInputPassword, deps: [{ token: i0.ElementRef }, { token: NG_VALIDATORS, optional: true, self: true }, { token: MC_VALIDATION, optional: true }, { token: i1.NgControl, optional: true, self: true }, { token: i1.NgModel, optional: true, self: true }, { token: i1.FormControlName, optional: true, self: true }, { token: i1.NgForm, optional: true }, { token: i1.FormGroupDirective, optional: true }, { token: i3.ErrorStateMatcher }, { token: MC_INPUT_VALUE_ACCESSOR, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
865
+ /** @nocollapse */ /** @nocollapse */ McInputPassword.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", type: McInputPassword, selector: "input[mcInputPassword]", inputs: { errorStateMatcher: "errorStateMatcher", placeholder: "placeholder", disabled: "disabled", id: "id", required: "required", value: "value" }, host: { listeners: { "blur": "onBlur()", "focus": "focusChanged(true)", "input": "onInput()" }, properties: { "attr.id": "id", "attr.type": "elementType", "attr.placeholder": "placeholder", "attr.disabled": "disabled || null", "required": "required" }, classAttribute: "mc-input mc-input-password" }, providers: [{
866
+ provide: McFormFieldControl, useExisting: McInputPassword
867
+ }], exportAs: ["mcInputPassword"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
868
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McInputPassword, decorators: [{
869
+ type: Directive,
870
+ args: [{
871
+ selector: `input[mcInputPassword]`,
872
+ exportAs: 'mcInputPassword',
873
+ host: {
874
+ class: 'mc-input mc-input-password',
875
+ // Native input properties that are overwritten by Angular inputs need to be synced with
876
+ // the native input element. Otherwise property bindings for those don't work.
877
+ '[attr.id]': 'id',
878
+ '[attr.type]': 'elementType',
879
+ '[attr.placeholder]': 'placeholder',
880
+ '[attr.disabled]': 'disabled || null',
881
+ '[required]': 'required',
882
+ '(blur)': 'onBlur()',
883
+ '(focus)': 'focusChanged(true)',
884
+ '(input)': 'onInput()'
885
+ },
886
+ providers: [{
887
+ provide: McFormFieldControl, useExisting: McInputPassword
888
+ }]
889
+ }]
890
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: undefined, decorators: [{
891
+ type: Optional
892
+ }, {
893
+ type: Self
894
+ }, {
895
+ type: Inject,
896
+ args: [NG_VALIDATORS]
897
+ }] }, { type: undefined, decorators: [{
898
+ type: Optional
899
+ }, {
900
+ type: Inject,
901
+ args: [MC_VALIDATION]
902
+ }] }, { type: i1.NgControl, decorators: [{
903
+ type: Optional
904
+ }, {
905
+ type: Self
906
+ }] }, { type: i1.NgModel, decorators: [{
907
+ type: Optional
908
+ }, {
909
+ type: Self
910
+ }] }, { type: i1.FormControlName, decorators: [{
911
+ type: Optional
912
+ }, {
913
+ type: Self
914
+ }] }, { type: i1.NgForm, decorators: [{
915
+ type: Optional
916
+ }] }, { type: i1.FormGroupDirective, decorators: [{
917
+ type: Optional
918
+ }] }, { type: i3.ErrorStateMatcher }, { type: undefined, decorators: [{
919
+ type: Optional
920
+ }, {
921
+ type: Self
922
+ }, {
923
+ type: Inject,
924
+ args: [MC_INPUT_VALUE_ACCESSOR]
925
+ }] }]; }, propDecorators: { errorStateMatcher: [{
926
+ type: Input
927
+ }], placeholder: [{
928
+ type: Input
929
+ }], disabled: [{
930
+ type: Input
931
+ }], id: [{
932
+ type: Input
933
+ }], required: [{
934
+ type: Input
935
+ }], value: [{
936
+ type: Input
937
+ }] } });
938
+
586
939
  class McInputModule {
587
940
  }
588
- /** @nocollapse */ /** @nocollapse */ McInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
589
- /** @nocollapse */ /** @nocollapse */ McInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McInputModule, declarations: [McInput, McNumberInput, McInputMono, MinValidator, MaxValidator], imports: [CommonModule, A11yModule, McCommonModule, FormsModule], exports: [McInput, McNumberInput, McInputMono, MinValidator, MaxValidator] });
590
- /** @nocollapse */ /** @nocollapse */ McInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McInputModule, imports: [[CommonModule, A11yModule, McCommonModule, FormsModule]] });
591
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McInputModule, decorators: [{
941
+ /** @nocollapse */ /** @nocollapse */ McInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
942
+ /** @nocollapse */ /** @nocollapse */ McInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McInputModule, declarations: [McInput,
943
+ McNumberInput,
944
+ McInputPassword,
945
+ McPasswordToggle,
946
+ McInputMono,
947
+ MinValidator,
948
+ MaxValidator], imports: [CommonModule,
949
+ A11yModule,
950
+ McCommonModule,
951
+ FormsModule], exports: [McInput,
952
+ McNumberInput,
953
+ McInputPassword,
954
+ McPasswordToggle,
955
+ McInputMono,
956
+ MinValidator,
957
+ MaxValidator] });
958
+ /** @nocollapse */ /** @nocollapse */ McInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McInputModule, imports: [[
959
+ CommonModule,
960
+ A11yModule,
961
+ McCommonModule,
962
+ FormsModule
963
+ ]] });
964
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McInputModule, decorators: [{
592
965
  type: NgModule,
593
966
  args: [{
594
- imports: [CommonModule, A11yModule, McCommonModule, FormsModule],
595
- exports: [McInput, McNumberInput, McInputMono, MinValidator, MaxValidator],
596
- declarations: [McInput, McNumberInput, McInputMono, MinValidator, MaxValidator]
967
+ imports: [
968
+ CommonModule,
969
+ A11yModule,
970
+ McCommonModule,
971
+ FormsModule
972
+ ],
973
+ declarations: [
974
+ McInput,
975
+ McNumberInput,
976
+ McInputPassword,
977
+ McPasswordToggle,
978
+ McInputMono,
979
+ MinValidator,
980
+ MaxValidator
981
+ ],
982
+ exports: [
983
+ McInput,
984
+ McNumberInput,
985
+ McInputPassword,
986
+ McPasswordToggle,
987
+ McInputMono,
988
+ MinValidator,
989
+ MaxValidator
990
+ ]
597
991
  }]
598
992
  }] });
599
993
 
@@ -601,5 +995,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
601
995
  * Generated bundle index. Do not edit.
602
996
  */
603
997
 
604
- export { BIG_STEP, MAX_VALIDATOR, MC_INPUT_VALUE_ACCESSOR, MIN_VALIDATOR, MaxValidator, McInput, McInputBase, McInputMixinBase, McInputModule, McInputMono, McNumberInput, MinValidator, SMALL_STEP, add, getPrecision, isDigit, isFloat, isInt, normalizeSplitter };
998
+ export { BIG_STEP, MAX_VALIDATOR, MC_INPUT_VALUE_ACCESSOR, MIN_VALIDATOR, MaxValidator, McInput, McInputBase, McInputMixinBase, McInputModule, McInputMono, McInputPassword, McNumberInput, McPasswordToggle, MinValidator, SMALL_STEP, add, getPrecision, isDigit, isFloat, isInt, normalizeSplitter };
605
999
  //# sourceMappingURL=ptsecurity-mosaic-input.mjs.map