@ptsecurity/mosaic 13.0.0 → 13.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 (328) hide show
  1. package/_theming.scss +916 -884
  2. package/_visual.scss +839 -686
  3. package/core/formatters/date/formatter.d.ts +37 -13
  4. package/core/public-api.d.ts +1 -0
  5. package/core/version.d.ts +2 -0
  6. package/design-tokens/{tokens → legacy-2017/tokens}/components/alert.json5 +0 -0
  7. package/design-tokens/{tokens → legacy-2017/tokens}/components/autocomplete.json5 +0 -0
  8. package/design-tokens/{tokens → legacy-2017/tokens}/components/badge.json5 +0 -0
  9. package/design-tokens/{tokens → legacy-2017/tokens}/components/button-toggle.json5 +0 -0
  10. package/design-tokens/{tokens → legacy-2017/tokens}/components/button.json5 +0 -0
  11. package/design-tokens/{tokens → legacy-2017/tokens}/components/card.json5 +0 -0
  12. package/design-tokens/{tokens → legacy-2017/tokens}/components/checkbox.json5 +2 -2
  13. package/design-tokens/{tokens → legacy-2017/tokens}/components/datepicker.json5 +0 -0
  14. package/design-tokens/{tokens → legacy-2017/tokens}/components/divider.json5 +0 -0
  15. package/design-tokens/{tokens → legacy-2017/tokens}/components/dropdown.json5 +0 -0
  16. package/design-tokens/{tokens → legacy-2017/tokens}/components/form-field.json5 +0 -0
  17. package/design-tokens/{tokens → legacy-2017/tokens}/components/forms.json5 +0 -0
  18. package/design-tokens/{tokens → legacy-2017/tokens}/components/input.json5 +0 -0
  19. package/design-tokens/{tokens → legacy-2017/tokens}/components/link.json5 +0 -0
  20. package/design-tokens/{tokens → legacy-2017/tokens}/components/list.json5 +0 -0
  21. package/design-tokens/{tokens → legacy-2017/tokens}/components/modal.json5 +12 -0
  22. package/design-tokens/{tokens → legacy-2017/tokens}/components/navbar.json5 +2 -0
  23. package/design-tokens/{tokens → legacy-2017/tokens}/components/optgroup.json5 +0 -0
  24. package/design-tokens/{tokens → legacy-2017/tokens}/components/option.json5 +0 -0
  25. package/design-tokens/{tokens → legacy-2017/tokens}/components/popover.json5 +0 -0
  26. package/design-tokens/{tokens → legacy-2017/tokens}/components/popup.json5 +0 -0
  27. package/design-tokens/{tokens → legacy-2017/tokens}/components/progress-bar.json5 +0 -0
  28. package/design-tokens/{tokens → legacy-2017/tokens}/components/progress-spinner.json5 +0 -0
  29. package/design-tokens/{tokens → legacy-2017/tokens}/components/radio.json5 +0 -1
  30. package/design-tokens/{tokens → legacy-2017/tokens}/components/select.json5 +0 -0
  31. package/design-tokens/{tokens → legacy-2017/tokens}/components/sidepanel.json5 +0 -0
  32. package/design-tokens/{tokens → legacy-2017/tokens}/components/table.json5 +0 -0
  33. package/design-tokens/{tokens → legacy-2017/tokens}/components/tabs.json5 +0 -0
  34. package/design-tokens/{tokens → legacy-2017/tokens}/components/tags.json5 +6 -0
  35. package/design-tokens/{tokens → legacy-2017/tokens}/components/textarea.json5 +0 -0
  36. package/design-tokens/{tokens → legacy-2017/tokens}/components/timepicker.json5 +0 -0
  37. package/design-tokens/{tokens → legacy-2017/tokens}/components/toggle.json5 +24 -0
  38. package/design-tokens/{tokens → legacy-2017/tokens}/components/tooltip.json5 +0 -0
  39. package/design-tokens/{tokens → legacy-2017/tokens}/components/tree.json5 +0 -0
  40. package/design-tokens/{tokens → legacy-2017/tokens}/properties/aliases.json5 +0 -0
  41. package/design-tokens/{tokens → legacy-2017/tokens}/properties/colors.json5 +0 -0
  42. package/design-tokens/{tokens → legacy-2017/tokens}/properties/font.json5 +0 -0
  43. package/design-tokens/{tokens → legacy-2017/tokens}/properties/globals.json5 +0 -0
  44. package/design-tokens/{tokens → legacy-2017/tokens}/properties/padding.json5 +0 -0
  45. package/design-tokens/{tokens → legacy-2017/tokens}/properties/palette.json5 +0 -0
  46. package/design-tokens/{tokens → legacy-2017/tokens}/properties/typography.json5 +0 -0
  47. package/design-tokens/{tokens.d.ts → legacy-2017/tokens.d.ts} +22 -2
  48. package/design-tokens/pt-2022/tokens/components/alert.json5 +83 -0
  49. package/design-tokens/pt-2022/tokens/components/autocomplete.json5 +11 -0
  50. package/design-tokens/pt-2022/tokens/components/badge.json5 +184 -0
  51. package/design-tokens/pt-2022/tokens/components/button-toggle.json5 +10 -0
  52. package/design-tokens/pt-2022/tokens/components/button.json5 +143 -0
  53. package/design-tokens/pt-2022/tokens/components/card.json5 +51 -0
  54. package/design-tokens/pt-2022/tokens/components/checkbox.json5 +39 -0
  55. package/design-tokens/pt-2022/tokens/components/datepicker.json5 +64 -0
  56. package/design-tokens/pt-2022/tokens/components/divider.json5 +8 -0
  57. package/design-tokens/pt-2022/tokens/components/dropdown.json5 +47 -0
  58. package/design-tokens/pt-2022/tokens/components/form-field.json5 +52 -0
  59. package/design-tokens/pt-2022/tokens/components/forms.json5 +52 -0
  60. package/design-tokens/pt-2022/tokens/components/input.json5 +13 -0
  61. package/design-tokens/pt-2022/tokens/components/link.json5 +56 -0
  62. package/design-tokens/pt-2022/tokens/components/list.json5 +15 -0
  63. package/design-tokens/pt-2022/tokens/components/modal.json5 +79 -0
  64. package/design-tokens/pt-2022/tokens/components/navbar.json5 +69 -0
  65. package/design-tokens/pt-2022/tokens/components/optgroup.json5 +10 -0
  66. package/design-tokens/pt-2022/tokens/components/option.json5 +12 -0
  67. package/design-tokens/pt-2022/tokens/components/popover.json5 +68 -0
  68. package/design-tokens/pt-2022/tokens/components/popup.json5 +18 -0
  69. package/design-tokens/pt-2022/tokens/components/progress-bar.json5 +13 -0
  70. package/design-tokens/pt-2022/tokens/components/progress-spinner.json5 +7 -0
  71. package/design-tokens/pt-2022/tokens/components/radio.json5 +44 -0
  72. package/design-tokens/pt-2022/tokens/components/select.json5 +25 -0
  73. package/design-tokens/pt-2022/tokens/components/sidepanel.json5 +30 -0
  74. package/design-tokens/pt-2022/tokens/components/table.json5 +15 -0
  75. package/design-tokens/pt-2022/tokens/components/tabs.json5 +25 -0
  76. package/design-tokens/pt-2022/tokens/components/tags.json5 +132 -0
  77. package/design-tokens/pt-2022/tokens/components/textarea.json5 +12 -0
  78. package/design-tokens/pt-2022/tokens/components/timepicker.json5 +7 -0
  79. package/design-tokens/pt-2022/tokens/components/toggle.json5 +79 -0
  80. package/design-tokens/pt-2022/tokens/components/tooltip.json5 +83 -0
  81. package/design-tokens/pt-2022/tokens/components/tree.json5 +12 -0
  82. package/design-tokens/pt-2022/tokens/properties/aliases.json5 +3 -0
  83. package/design-tokens/pt-2022/tokens/properties/colors.json5 +112 -0
  84. package/design-tokens/pt-2022/tokens/properties/font.json5 +15 -0
  85. package/design-tokens/pt-2022/tokens/properties/globals.json5 +30 -0
  86. package/design-tokens/pt-2022/tokens/properties/padding.json5 +3 -0
  87. package/design-tokens/pt-2022/tokens/properties/palette.json5 +226 -0
  88. package/design-tokens/pt-2022/tokens/properties/typography.json5 +140 -0
  89. package/design-tokens/pt-2022/tokens.d.ts +8696 -0
  90. package/design-tokens/public-api.d.ts +3 -1
  91. package/esm2020/autocomplete/autocomplete-origin.directive.mjs +3 -3
  92. package/esm2020/autocomplete/autocomplete-trigger.directive.mjs +3 -3
  93. package/esm2020/autocomplete/autocomplete.component.mjs +3 -3
  94. package/esm2020/autocomplete/autocomplete.module.mjs +4 -4
  95. package/esm2020/button/button.component.mjs +6 -6
  96. package/esm2020/button/button.module.mjs +4 -4
  97. package/esm2020/button-toggle/button-toggle.component.mjs +6 -6
  98. package/esm2020/button-toggle/button-toggle.module.mjs +4 -4
  99. package/esm2020/card/card.component.mjs +3 -3
  100. package/esm2020/card/card.module.mjs +4 -4
  101. package/esm2020/checkbox/checkbox-module.mjs +4 -4
  102. package/esm2020/checkbox/checkbox-required-validator.mjs +3 -3
  103. package/esm2020/checkbox/checkbox.mjs +3 -3
  104. package/esm2020/core/common-behaviors/common-module.mjs +4 -4
  105. package/esm2020/core/error/error-options.mjs +6 -6
  106. package/esm2020/core/formatters/date/formatter.mjs +76 -31
  107. package/esm2020/core/formatters/date/templates/en-US.mjs +38 -37
  108. package/esm2020/core/formatters/date/templates/ru-RU.mjs +38 -37
  109. package/esm2020/core/formatters/index.mjs +4 -4
  110. package/esm2020/core/formatters/number/formatter.mjs +4 -4
  111. package/esm2020/core/forms/forms-module.mjs +4 -4
  112. package/esm2020/core/forms/forms.directive.mjs +6 -6
  113. package/esm2020/core/highlight/highlight.pipe.mjs +3 -3
  114. package/esm2020/core/highlight/index.mjs +4 -4
  115. package/esm2020/core/line/line.mjs +7 -7
  116. package/esm2020/core/option/action.mjs +3 -3
  117. package/esm2020/core/option/optgroup.mjs +3 -3
  118. package/esm2020/core/option/option-module.mjs +4 -4
  119. package/esm2020/core/option/option.mjs +3 -3
  120. package/esm2020/core/pop-up/pop-up-trigger.mjs +4 -6
  121. package/esm2020/core/pop-up/pop-up.mjs +3 -3
  122. package/esm2020/core/public-api.mjs +2 -1
  123. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +3 -3
  124. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.module.mjs +4 -4
  125. package/esm2020/core/services/measure-scrollbar.service.mjs +3 -3
  126. package/esm2020/core/version.mjs +3 -0
  127. package/esm2020/datepicker/calendar-body.component.mjs +3 -3
  128. package/esm2020/datepicker/calendar.component.mjs +6 -6
  129. package/esm2020/datepicker/datepicker-input.directive.mjs +3 -3
  130. package/esm2020/datepicker/datepicker-intl.mjs +3 -3
  131. package/esm2020/datepicker/datepicker-module.mjs +4 -4
  132. package/esm2020/datepicker/datepicker-toggle.component.mjs +6 -6
  133. package/esm2020/datepicker/datepicker.component.mjs +6 -6
  134. package/esm2020/datepicker/month-view.component.mjs +3 -3
  135. package/esm2020/datepicker/multi-year-view.component.mjs +3 -3
  136. package/esm2020/datepicker/year-view.component.mjs +3 -3
  137. package/esm2020/design-tokens/legacy-2017/tokens.mjs +953 -0
  138. package/esm2020/design-tokens/pt-2022/tokens.mjs +1013 -0
  139. package/esm2020/design-tokens/public-api.mjs +4 -2
  140. package/esm2020/divider/divider.component.mjs +3 -3
  141. package/esm2020/divider/divider.module.mjs +4 -4
  142. package/esm2020/dropdown/dropdown-content.directive.mjs +3 -3
  143. package/esm2020/dropdown/dropdown-item.component.mjs +3 -3
  144. package/esm2020/dropdown/dropdown-trigger.directive.mjs +3 -3
  145. package/esm2020/dropdown/dropdown.component.mjs +3 -3
  146. package/esm2020/dropdown/dropdown.module.mjs +4 -4
  147. package/esm2020/form-field/cleaner.mjs +5 -5
  148. package/esm2020/form-field/form-field.mjs +6 -6
  149. package/esm2020/form-field/form-field.module.mjs +4 -4
  150. package/esm2020/form-field/hint.mjs +3 -3
  151. package/esm2020/form-field/prefix.mjs +3 -3
  152. package/esm2020/form-field/stepper.mjs +3 -3
  153. package/esm2020/form-field/suffix.mjs +3 -3
  154. package/esm2020/icon/icon.component.mjs +6 -6
  155. package/esm2020/icon/icon.module.mjs +4 -4
  156. package/esm2020/input/input-number-validators.mjs +6 -6
  157. package/esm2020/input/input-number.mjs +3 -3
  158. package/esm2020/input/input.mjs +6 -6
  159. package/esm2020/input/input.module.mjs +4 -4
  160. package/esm2020/link/link.component.mjs +3 -3
  161. package/esm2020/link/link.module.mjs +4 -4
  162. package/esm2020/list/list-selection.component.mjs +20 -26
  163. package/esm2020/list/list.component.mjs +6 -6
  164. package/esm2020/list/list.module.mjs +4 -4
  165. package/esm2020/modal/css-unit.pipe.mjs +3 -3
  166. package/esm2020/modal/modal-control.service.mjs +26 -4
  167. package/esm2020/modal/modal.component.mjs +3 -3
  168. package/esm2020/modal/modal.directive.mjs +12 -12
  169. package/esm2020/modal/modal.module.mjs +4 -4
  170. package/esm2020/modal/modal.service.mjs +3 -3
  171. package/esm2020/navbar/navbar-item.component.mjs +30 -30
  172. package/esm2020/navbar/navbar.component.mjs +9 -9
  173. package/esm2020/navbar/navbar.module.mjs +4 -4
  174. package/esm2020/navbar/vertical-navbar.component.mjs +3 -3
  175. package/esm2020/popover/popover-confirm.component.mjs +6 -6
  176. package/esm2020/popover/popover.component.mjs +6 -6
  177. package/esm2020/popover/popover.module.mjs +4 -4
  178. package/esm2020/progress-bar/progress-bar.component.mjs +3 -3
  179. package/esm2020/progress-bar/progress-bar.module.mjs +4 -4
  180. package/esm2020/progress-spinner/progress-spinner.component.mjs +3 -3
  181. package/esm2020/progress-spinner/progress-spinner.module.mjs +4 -4
  182. package/esm2020/radio/radio.component.mjs +6 -6
  183. package/esm2020/radio/radio.module.mjs +4 -4
  184. package/esm2020/select/select.component.mjs +12 -12
  185. package/esm2020/select/select.module.mjs +4 -4
  186. package/esm2020/sidebar/sidebar.component.mjs +9 -9
  187. package/esm2020/sidebar/sidebar.module.mjs +4 -4
  188. package/esm2020/sidepanel/sidepanel-container.component.mjs +3 -3
  189. package/esm2020/sidepanel/sidepanel-directives.mjs +15 -15
  190. package/esm2020/sidepanel/sidepanel.module.mjs +4 -4
  191. package/esm2020/sidepanel/sidepanel.service.mjs +3 -3
  192. package/esm2020/splitter/splitter.component.mjs +12 -12
  193. package/esm2020/splitter/splitter.module.mjs +4 -4
  194. package/esm2020/table/table.component.mjs +3 -3
  195. package/esm2020/table/table.module.mjs +4 -4
  196. package/esm2020/tabs/paginated-tab-header.mjs +3 -3
  197. package/esm2020/tabs/tab-body.component.mjs +6 -6
  198. package/esm2020/tabs/tab-content.directive.mjs +3 -3
  199. package/esm2020/tabs/tab-group.component.mjs +18 -18
  200. package/esm2020/tabs/tab-header.component.mjs +3 -3
  201. package/esm2020/tabs/tab-label-wrapper.directive.mjs +3 -3
  202. package/esm2020/tabs/tab-label.directive.mjs +3 -3
  203. package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +6 -6
  204. package/esm2020/tabs/tab.component.mjs +3 -3
  205. package/esm2020/tabs/tabs.module.mjs +4 -4
  206. package/esm2020/tags/tag-input.mjs +3 -3
  207. package/esm2020/tags/tag-list.component.mjs +3 -3
  208. package/esm2020/tags/tag.component.mjs +61 -58
  209. package/esm2020/tags/tag.module.mjs +4 -4
  210. package/esm2020/textarea/textarea.component.mjs +3 -3
  211. package/esm2020/textarea/textarea.module.mjs +4 -4
  212. package/esm2020/timepicker/timepicker.directive.mjs +3 -3
  213. package/esm2020/timepicker/timepicker.module.mjs +4 -4
  214. package/esm2020/toggle/toggle.component.mjs +3 -3
  215. package/esm2020/toggle/toggle.module.mjs +4 -4
  216. package/esm2020/tooltip/tooltip.component.mjs +14 -14
  217. package/esm2020/tooltip/tooltip.module.mjs +4 -4
  218. package/esm2020/tree/data-source/flat-data-source.mjs +4 -4
  219. package/esm2020/tree/node.mjs +3 -3
  220. package/esm2020/tree/outlet.mjs +3 -3
  221. package/esm2020/tree/padding.directive.mjs +3 -3
  222. package/esm2020/tree/toggle.mjs +11 -11
  223. package/esm2020/tree/tree-base.mjs +6 -6
  224. package/esm2020/tree/tree-option.component.mjs +17 -9
  225. package/esm2020/tree/tree-selection.component.mjs +8 -5
  226. package/esm2020/tree/tree.mjs +3 -3
  227. package/esm2020/tree/tree.module.mjs +4 -4
  228. package/esm2020/tree-select/tree-select.component.mjs +46 -10
  229. package/esm2020/tree-select/tree-select.module.mjs +15 -11
  230. package/fesm2015/ptsecurity-mosaic-autocomplete.mjs +13 -13
  231. package/fesm2015/ptsecurity-mosaic-button-toggle.mjs +10 -10
  232. package/fesm2015/ptsecurity-mosaic-button.mjs +10 -10
  233. package/fesm2015/ptsecurity-mosaic-card.mjs +7 -7
  234. package/fesm2015/ptsecurity-mosaic-checkbox.mjs +10 -10
  235. package/fesm2015/ptsecurity-mosaic-core.mjs +225 -178
  236. package/fesm2015/ptsecurity-mosaic-core.mjs.map +1 -1
  237. package/fesm2015/ptsecurity-mosaic-datepicker.mjs +40 -40
  238. package/fesm2015/ptsecurity-mosaic-design-tokens.mjs +2466 -480
  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-dropdown.mjs +16 -16
  242. package/fesm2015/ptsecurity-mosaic-form-field.mjs +26 -26
  243. package/fesm2015/ptsecurity-mosaic-form-field.mjs.map +1 -1
  244. package/fesm2015/ptsecurity-mosaic-icon.mjs +10 -10
  245. package/fesm2015/ptsecurity-mosaic-input.mjs +19 -19
  246. package/fesm2015/ptsecurity-mosaic-link.mjs +7 -7
  247. package/fesm2015/ptsecurity-mosaic-list.mjs +30 -35
  248. package/fesm2015/ptsecurity-mosaic-list.mjs.map +1 -1
  249. package/fesm2015/ptsecurity-mosaic-modal.mjs +50 -28
  250. package/fesm2015/ptsecurity-mosaic-modal.mjs.map +1 -1
  251. package/fesm2015/ptsecurity-mosaic-navbar.mjs +46 -46
  252. package/fesm2015/ptsecurity-mosaic-popover.mjs +16 -16
  253. package/fesm2015/ptsecurity-mosaic-progress-bar.mjs +7 -7
  254. package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs +7 -7
  255. package/fesm2015/ptsecurity-mosaic-radio.mjs +10 -10
  256. package/fesm2015/ptsecurity-mosaic-select.mjs +16 -16
  257. package/fesm2015/ptsecurity-mosaic-sidebar.mjs +13 -13
  258. package/fesm2015/ptsecurity-mosaic-sidepanel.mjs +25 -25
  259. package/fesm2015/ptsecurity-mosaic-splitter.mjs +16 -16
  260. package/fesm2015/ptsecurity-mosaic-table.mjs +7 -7
  261. package/fesm2015/ptsecurity-mosaic-tabs.mjs +52 -52
  262. package/fesm2015/ptsecurity-mosaic-tags.mjs +72 -67
  263. package/fesm2015/ptsecurity-mosaic-tags.mjs.map +1 -1
  264. package/fesm2015/ptsecurity-mosaic-textarea.mjs +7 -7
  265. package/fesm2015/ptsecurity-mosaic-timepicker.mjs +7 -7
  266. package/fesm2015/ptsecurity-mosaic-toggle.mjs +7 -7
  267. package/fesm2015/ptsecurity-mosaic-tooltip.mjs +17 -17
  268. package/fesm2015/ptsecurity-mosaic-tooltip.mjs.map +1 -1
  269. package/fesm2015/ptsecurity-mosaic-tree-select.mjs +59 -19
  270. package/fesm2015/ptsecurity-mosaic-tree-select.mjs.map +1 -1
  271. package/fesm2015/ptsecurity-mosaic-tree.mjs +58 -47
  272. package/fesm2015/ptsecurity-mosaic-tree.mjs.map +1 -1
  273. package/fesm2020/ptsecurity-mosaic-autocomplete.mjs +13 -13
  274. package/fesm2020/ptsecurity-mosaic-button-toggle.mjs +10 -10
  275. package/fesm2020/ptsecurity-mosaic-button.mjs +10 -10
  276. package/fesm2020/ptsecurity-mosaic-card.mjs +7 -7
  277. package/fesm2020/ptsecurity-mosaic-checkbox.mjs +10 -10
  278. package/fesm2020/ptsecurity-mosaic-core.mjs +225 -178
  279. package/fesm2020/ptsecurity-mosaic-core.mjs.map +1 -1
  280. package/fesm2020/ptsecurity-mosaic-datepicker.mjs +40 -40
  281. package/fesm2020/ptsecurity-mosaic-design-tokens.mjs +2466 -480
  282. package/fesm2020/ptsecurity-mosaic-design-tokens.mjs.map +1 -1
  283. package/fesm2020/ptsecurity-mosaic-divider.mjs +7 -7
  284. package/fesm2020/ptsecurity-mosaic-dropdown.mjs +16 -16
  285. package/fesm2020/ptsecurity-mosaic-form-field.mjs +26 -26
  286. package/fesm2020/ptsecurity-mosaic-form-field.mjs.map +1 -1
  287. package/fesm2020/ptsecurity-mosaic-icon.mjs +10 -10
  288. package/fesm2020/ptsecurity-mosaic-input.mjs +19 -19
  289. package/fesm2020/ptsecurity-mosaic-link.mjs +7 -7
  290. package/fesm2020/ptsecurity-mosaic-list.mjs +29 -35
  291. package/fesm2020/ptsecurity-mosaic-list.mjs.map +1 -1
  292. package/fesm2020/ptsecurity-mosaic-modal.mjs +50 -28
  293. package/fesm2020/ptsecurity-mosaic-modal.mjs.map +1 -1
  294. package/fesm2020/ptsecurity-mosaic-navbar.mjs +46 -46
  295. package/fesm2020/ptsecurity-mosaic-popover.mjs +16 -16
  296. package/fesm2020/ptsecurity-mosaic-progress-bar.mjs +7 -7
  297. package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs +7 -7
  298. package/fesm2020/ptsecurity-mosaic-radio.mjs +10 -10
  299. package/fesm2020/ptsecurity-mosaic-select.mjs +16 -16
  300. package/fesm2020/ptsecurity-mosaic-sidebar.mjs +13 -13
  301. package/fesm2020/ptsecurity-mosaic-sidepanel.mjs +25 -25
  302. package/fesm2020/ptsecurity-mosaic-splitter.mjs +16 -16
  303. package/fesm2020/ptsecurity-mosaic-table.mjs +7 -7
  304. package/fesm2020/ptsecurity-mosaic-tabs.mjs +52 -52
  305. package/fesm2020/ptsecurity-mosaic-tags.mjs +70 -67
  306. package/fesm2020/ptsecurity-mosaic-tags.mjs.map +1 -1
  307. package/fesm2020/ptsecurity-mosaic-textarea.mjs +7 -7
  308. package/fesm2020/ptsecurity-mosaic-timepicker.mjs +7 -7
  309. package/fesm2020/ptsecurity-mosaic-toggle.mjs +7 -7
  310. package/fesm2020/ptsecurity-mosaic-tooltip.mjs +17 -17
  311. package/fesm2020/ptsecurity-mosaic-tooltip.mjs.map +1 -1
  312. package/fesm2020/ptsecurity-mosaic-tree-select.mjs +58 -19
  313. package/fesm2020/ptsecurity-mosaic-tree-select.mjs.map +1 -1
  314. package/fesm2020/ptsecurity-mosaic-tree.mjs +58 -47
  315. package/fesm2020/ptsecurity-mosaic-tree.mjs.map +1 -1
  316. package/modal/modal-control.service.d.ts +1 -0
  317. package/package.json +4 -4
  318. package/prebuilt-themes/dark-theme.css +1 -1
  319. package/prebuilt-themes/default-theme.css +1 -1
  320. package/prebuilt-visual/default-visual.css +1 -1
  321. package/tags/tag.component.d.ts +20 -20
  322. package/tree/data-source/flat-data-source.d.ts +2 -2
  323. package/tree/toggle.d.ts +1 -1
  324. package/tree/tree-option.component.d.ts +5 -3
  325. package/tree/tree-selection.component.d.ts +1 -0
  326. package/tree-select/tree-select.component.d.ts +9 -1
  327. package/tree-select/tree-select.module.d.ts +2 -1
  328. package/esm2020/design-tokens/tokens.mjs +0 -933
@@ -2,7 +2,7 @@ import { PlatformModule } from '@angular/cdk/platform';
2
2
  import * as i4 from '@angular/common';
3
3
  import { CommonModule } from '@angular/common';
4
4
  import * as i0 from '@angular/core';
5
- import { InjectionToken, Directive, EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, ContentChildren, ContentChild, forwardRef, Output, Input, Optional, Inject, Self, NgModule } from '@angular/core';
5
+ import { InjectionToken, Directive, forwardRef, Inject, EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, ContentChildren, ContentChild, Output, Input, Optional, Self, NgModule } from '@angular/core';
6
6
  import { SPACE, BACKSPACE, DELETE, HOME, END, ENTER, TAB, COMMA, hasModifierKey } from '@ptsecurity/cdk/keycodes';
7
7
  import { coerceBooleanProperty } from '@angular/cdk/coercion';
8
8
  import * as i3 from '@angular/forms';
@@ -35,9 +35,9 @@ const TAG_ATTRIBUTE_NAMES = ['mc-basic-tag'];
35
35
  */
36
36
  class McTagAvatar {
37
37
  }
38
- /** @nocollapse */ /** @nocollapse */ McTagAvatar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McTagAvatar, deps: [], target: i0.ɵɵFactoryTarget.Directive });
39
- /** @nocollapse */ /** @nocollapse */ McTagAvatar.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: McTagAvatar, selector: "mc-tag-avatar, [mcTagAvatar]", host: { classAttribute: "mc-tag-avatar" }, ngImport: i0 });
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McTagAvatar, decorators: [{
38
+ /** @nocollapse */ /** @nocollapse */ McTagAvatar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: McTagAvatar, deps: [], target: i0.ɵɵFactoryTarget.Directive });
39
+ /** @nocollapse */ /** @nocollapse */ McTagAvatar.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: McTagAvatar, selector: "mc-tag-avatar, [mcTagAvatar]", host: { classAttribute: "mc-tag-avatar" }, ngImport: i0 });
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: McTagAvatar, decorators: [{
41
41
  type: Directive,
42
42
  args: [{
43
43
  selector: 'mc-tag-avatar, [mcTagAvatar]',
@@ -50,15 +50,64 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
50
50
  */
51
51
  class McTagTrailingIcon {
52
52
  }
53
- /** @nocollapse */ /** @nocollapse */ McTagTrailingIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McTagTrailingIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
54
- /** @nocollapse */ /** @nocollapse */ McTagTrailingIcon.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: McTagTrailingIcon, selector: "mc-tag-trailing-icon, [mcTagTrailingIcon]", host: { classAttribute: "mc-tag-trailing-icon" }, ngImport: i0 });
55
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McTagTrailingIcon, decorators: [{
53
+ /** @nocollapse */ /** @nocollapse */ McTagTrailingIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: McTagTrailingIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
54
+ /** @nocollapse */ /** @nocollapse */ McTagTrailingIcon.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: McTagTrailingIcon, selector: "mc-tag-trailing-icon, [mcTagTrailingIcon]", host: { classAttribute: "mc-tag-trailing-icon" }, ngImport: i0 });
55
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: McTagTrailingIcon, decorators: [{
56
56
  type: Directive,
57
57
  args: [{
58
58
  selector: 'mc-tag-trailing-icon, [mcTagTrailingIcon]',
59
59
  host: { class: 'mc-tag-trailing-icon' }
60
60
  }]
61
61
  }] });
62
+ /**
63
+ *
64
+ * Example:
65
+ *
66
+ * `<mc-tag>
67
+ * <mc-icon mcTagRemove>cancel</mc-icon>
68
+ * </mc-tag>`
69
+ *
70
+ * You *may* use a custom icon, but you may need to override the `mc-tag-remove` positioning
71
+ * styles to properly center the icon within the tag.
72
+ */
73
+ class McTagRemove {
74
+ constructor(parentTag) {
75
+ this.parentTag = parentTag;
76
+ }
77
+ focus($event) {
78
+ $event.stopPropagation();
79
+ }
80
+ /** Calls the parent tag's public `remove()` method if applicable. */
81
+ handleClick(event) {
82
+ if (this.parentTag.removable) {
83
+ this.parentTag.hasFocus = true;
84
+ this.parentTag.remove();
85
+ }
86
+ // We need to stop event propagation because otherwise the event will bubble up to the
87
+ // form field and cause the `onContainerClick` method to be invoked. This method would then
88
+ // reset the focused tag that has been focused after tag removal. Usually the parent
89
+ // the parent click listener of the `McTag` would prevent propagation, but it can happen
90
+ // that the tag is being removed before the event bubbles up.
91
+ event.stopPropagation();
92
+ }
93
+ }
94
+ /** @nocollapse */ /** @nocollapse */ McTagRemove.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: McTagRemove, deps: [{ token: forwardRef(() => McTag) }], target: i0.ɵɵFactoryTarget.Directive });
95
+ /** @nocollapse */ /** @nocollapse */ McTagRemove.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: McTagRemove, selector: "[mcTagRemove]", host: { listeners: { "click": "handleClick($event)", "focus": "focus($event)" }, properties: { "attr.tabindex": "-1" }, classAttribute: "mc-tag-remove mc-tag-trailing-icon" }, ngImport: i0 });
96
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: McTagRemove, decorators: [{
97
+ type: Directive,
98
+ args: [{
99
+ selector: '[mcTagRemove]',
100
+ host: {
101
+ class: 'mc-tag-remove mc-tag-trailing-icon',
102
+ '[attr.tabindex]': '-1',
103
+ '(click)': 'handleClick($event)',
104
+ '(focus)': 'focus($event)'
105
+ }
106
+ }]
107
+ }], ctorParameters: function () { return [{ type: McTag, decorators: [{
108
+ type: Inject,
109
+ args: [forwardRef(() => McTag)]
110
+ }] }]; } });
62
111
  class McTagBase {
63
112
  // tslint:disable-next-line:naming-convention
64
113
  constructor(_elementRef) {
@@ -291,9 +340,9 @@ class McTag extends McTagMixinBase {
291
340
  });
292
341
  }
293
342
  }
294
- /** @nocollapse */ /** @nocollapse */ McTag.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McTag, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
295
- /** @nocollapse */ /** @nocollapse */ McTag.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: McTag, selector: "mc-tag, [mc-tag], mc-basic-tag, [mc-basic-tag]", inputs: { color: "color", selected: "selected", value: "value", selectable: "selectable", removable: "removable", disabled: "disabled" }, outputs: { selectionChange: "selectionChange", destroyed: "destroyed", removed: "removed" }, host: { listeners: { "click": "handleClick($event)", "keydown": "handleKeydown($event)", "focus": "focus()", "blur": "blur()" }, properties: { "attr.tabindex": "tabindex", "attr.disabled": "disabled || null", "class.mc-selected": "selected", "class.mc-focused": "hasFocus", "class.mc-tag-with-avatar": "avatar", "class.mc-tag-with-icon": "contentChildren", "class.mc-tag-with-trailing-icon": "trailingIcon || removeIcon", "class.mc-disabled": "disabled" }, classAttribute: "mc-tag" }, queries: [{ propertyName: "avatar", first: true, predicate: McTagAvatar, descendants: true }, { propertyName: "trailingIcon", first: true, predicate: McTagTrailingIcon, descendants: true }, { propertyName: "removeIcon", first: true, predicate: i0.forwardRef(function () { return McTagRemove; }), descendants: true }, { propertyName: "contentChildren", predicate: McIcon }], exportAs: ["mcTag"], usesInheritance: true, ngImport: i0, template: "<div class=\"mc-tag__wrapper\">\n <span class=\"mc-tag__text\"><ng-content></ng-content></span>\n <ng-content select=\"[mc-icon]\"></ng-content>\n <div class=\"mc-tag-overlay\"></div>\n</div>\n", styles: [".mc-tag{position:relative;display:inline-block;overflow:hidden;margin:2px;margin:var(--mc-tags-size-margin, 2px);height:24px;height:var(--mc-tags-size-height, 24px);border-width:1px;border-width:var(--mc-tags-size-border-width, 1px);border-style:solid;border-radius:4px;border-radius:var(--mc-tags-size-border-radius, 4px);cursor:default;outline:none;box-sizing:border-box}.mc-tag.mc-left-icon{padding-left:3px;padding-left:var(--mc-tags-size-icon-padding, 3px)}.mc-tag.mc-right-icon{padding-right:3px;padding-right:var(--mc-tags-size-icon-padding, 3px)}.mc-tag .mc-tag__text{margin-left:7px;margin-left:calc(var(--mc-tags-size-text-margin, 8px) - var(--mc-tags-size-border-width, 1px));text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mc-tag:not(.mc-tag-with-icon) .mc-tag__text{margin-right:7px;margin-right:calc(var(--mc-tags-size-text-margin, 8px) - var(--mc-tags-size-border-width, 1px))}.mc-tag__wrapper{display:flex;align-items:center;height:100%;flex:1 1 100%}.mc-tag__wrapper .mc-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:24px;width:var(--mc-tags-size-height, 24px);height:24px;height:var(--mc-tags-size-height, 24px)}.mc-tag__wrapper .mc-icon_left{margin-right:3px;margin-right:var(--mc-tags-size-icon-padding, 3px)}.mc-tag__wrapper .mc-icon_right{margin-left:3px;margin-left:var(--mc-tags-size-icon-padding, 3px)}.mc-tag-overlay{position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;pointer-events:none;border-radius:inherit}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
296
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McTag, decorators: [{
343
+ /** @nocollapse */ /** @nocollapse */ McTag.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: McTag, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
344
+ /** @nocollapse */ /** @nocollapse */ McTag.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.0", type: McTag, selector: "mc-tag, [mc-tag], mc-basic-tag, [mc-basic-tag]", inputs: { color: "color", selected: "selected", value: "value", selectable: "selectable", removable: "removable", disabled: "disabled" }, outputs: { selectionChange: "selectionChange", destroyed: "destroyed", removed: "removed" }, host: { listeners: { "click": "handleClick($event)", "keydown": "handleKeydown($event)", "focus": "focus()", "blur": "blur()" }, properties: { "attr.tabindex": "tabindex", "attr.disabled": "disabled || null", "class.mc-selected": "selected", "class.mc-focused": "hasFocus", "class.mc-tag-with-avatar": "avatar", "class.mc-tag-with-icon": "contentChildren", "class.mc-tag-with-trailing-icon": "trailingIcon || removeIcon", "class.mc-disabled": "disabled" }, classAttribute: "mc-tag" }, queries: [{ propertyName: "avatar", first: true, predicate: McTagAvatar, descendants: true }, { propertyName: "trailingIcon", first: true, predicate: McTagTrailingIcon, descendants: true }, { propertyName: "removeIcon", first: true, predicate: i0.forwardRef(function () { return McTagRemove; }), descendants: true }, { propertyName: "contentChildren", predicate: McIcon }], exportAs: ["mcTag"], usesInheritance: true, ngImport: i0, template: "<div class=\"mc-tag__wrapper\">\n <span class=\"mc-tag__text\"><ng-content></ng-content></span>\n <ng-content select=\"[mc-icon]\"></ng-content>\n <div class=\"mc-tag-overlay\"></div>\n</div>\n", styles: [".mc-tag{position:relative;display:inline-block;overflow:hidden;margin:2px;margin:var(--mc-tags-size-margin, 2px);height:24px;height:var(--mc-tags-size-height, 24px);border-width:1px;border-width:var(--mc-tags-size-border-width, 1px);border-style:solid;border-radius:4px;border-radius:var(--mc-tags-size-border-radius, 4px);cursor:default;outline:none;box-sizing:border-box}.mc-tag .mc-icon:hover{cursor:pointer}.mc-tag.mc-disabled .mc-icon:hover{cursor:default}.mc-tag.mc-left-icon{padding-left:3px;padding-left:var(--mc-tags-size-icon-padding, 3px)}.mc-tag.mc-right-icon{padding-right:3px;padding-right:var(--mc-tags-size-icon-padding, 3px)}.mc-tag .mc-tag__text{margin-left:7px;margin-left:calc(var(--mc-tags-size-text-margin, 8px) - var(--mc-tags-size-border-width, 1px));text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mc-tag:not(.mc-tag-with-icon) .mc-tag__text{margin-right:7px;margin-right:calc(var(--mc-tags-size-text-margin, 8px) - var(--mc-tags-size-border-width, 1px))}.mc-tag__wrapper{display:flex;align-items:center;height:100%;flex:1 1 100%}.mc-tag__wrapper .mc-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:24px;width:var(--mc-tags-size-height, 24px);height:24px;height:var(--mc-tags-size-height, 24px)}.mc-tag__wrapper .mc-icon_left{margin-right:3px;margin-right:var(--mc-tags-size-icon-padding, 3px)}.mc-tag__wrapper .mc-icon_right{margin-left:3px;margin-left:var(--mc-tags-size-icon-padding, 3px)}.mc-tag-overlay{position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;pointer-events:none;border-radius:inherit}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
345
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: McTag, decorators: [{
297
346
  type: Component,
298
347
  args: [{ selector: 'mc-tag, [mc-tag], mc-basic-tag, [mc-basic-tag]', exportAs: 'mcTag', inputs: ['color'], host: {
299
348
  class: 'mc-tag',
@@ -309,7 +358,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
309
358
  '(keydown)': 'handleKeydown($event)',
310
359
  '(focus)': 'focus()',
311
360
  '(blur)': 'blur()'
312
- }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div class=\"mc-tag__wrapper\">\n <span class=\"mc-tag__text\"><ng-content></ng-content></span>\n <ng-content select=\"[mc-icon]\"></ng-content>\n <div class=\"mc-tag-overlay\"></div>\n</div>\n", styles: [".mc-tag{position:relative;display:inline-block;overflow:hidden;margin:2px;margin:var(--mc-tags-size-margin, 2px);height:24px;height:var(--mc-tags-size-height, 24px);border-width:1px;border-width:var(--mc-tags-size-border-width, 1px);border-style:solid;border-radius:4px;border-radius:var(--mc-tags-size-border-radius, 4px);cursor:default;outline:none;box-sizing:border-box}.mc-tag.mc-left-icon{padding-left:3px;padding-left:var(--mc-tags-size-icon-padding, 3px)}.mc-tag.mc-right-icon{padding-right:3px;padding-right:var(--mc-tags-size-icon-padding, 3px)}.mc-tag .mc-tag__text{margin-left:7px;margin-left:calc(var(--mc-tags-size-text-margin, 8px) - var(--mc-tags-size-border-width, 1px));text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mc-tag:not(.mc-tag-with-icon) .mc-tag__text{margin-right:7px;margin-right:calc(var(--mc-tags-size-text-margin, 8px) - var(--mc-tags-size-border-width, 1px))}.mc-tag__wrapper{display:flex;align-items:center;height:100%;flex:1 1 100%}.mc-tag__wrapper .mc-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:24px;width:var(--mc-tags-size-height, 24px);height:24px;height:var(--mc-tags-size-height, 24px)}.mc-tag__wrapper .mc-icon_left{margin-right:3px;margin-right:var(--mc-tags-size-icon-padding, 3px)}.mc-tag__wrapper .mc-icon_right{margin-left:3px;margin-left:var(--mc-tags-size-icon-padding, 3px)}.mc-tag-overlay{position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;pointer-events:none;border-radius:inherit}\n"] }]
361
+ }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div class=\"mc-tag__wrapper\">\n <span class=\"mc-tag__text\"><ng-content></ng-content></span>\n <ng-content select=\"[mc-icon]\"></ng-content>\n <div class=\"mc-tag-overlay\"></div>\n</div>\n", styles: [".mc-tag{position:relative;display:inline-block;overflow:hidden;margin:2px;margin:var(--mc-tags-size-margin, 2px);height:24px;height:var(--mc-tags-size-height, 24px);border-width:1px;border-width:var(--mc-tags-size-border-width, 1px);border-style:solid;border-radius:4px;border-radius:var(--mc-tags-size-border-radius, 4px);cursor:default;outline:none;box-sizing:border-box}.mc-tag .mc-icon:hover{cursor:pointer}.mc-tag.mc-disabled .mc-icon:hover{cursor:default}.mc-tag.mc-left-icon{padding-left:3px;padding-left:var(--mc-tags-size-icon-padding, 3px)}.mc-tag.mc-right-icon{padding-right:3px;padding-right:var(--mc-tags-size-icon-padding, 3px)}.mc-tag .mc-tag__text{margin-left:7px;margin-left:calc(var(--mc-tags-size-text-margin, 8px) - var(--mc-tags-size-border-width, 1px));text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mc-tag:not(.mc-tag-with-icon) .mc-tag__text{margin-right:7px;margin-right:calc(var(--mc-tags-size-text-margin, 8px) - var(--mc-tags-size-border-width, 1px))}.mc-tag__wrapper{display:flex;align-items:center;height:100%;flex:1 1 100%}.mc-tag__wrapper .mc-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:24px;width:var(--mc-tags-size-height, 24px);height:24px;height:var(--mc-tags-size-height, 24px)}.mc-tag__wrapper .mc-icon_left{margin-right:3px;margin-right:var(--mc-tags-size-icon-padding, 3px)}.mc-tag__wrapper .mc-icon_right{margin-left:3px;margin-left:var(--mc-tags-size-icon-padding, 3px)}.mc-tag-overlay{position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;pointer-events:none;border-radius:inherit}\n"] }]
313
362
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; }, propDecorators: { contentChildren: [{
314
363
  type: ContentChildren,
315
364
  args: [McIcon]
@@ -339,52 +388,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
339
388
  }], disabled: [{
340
389
  type: Input
341
390
  }] } });
342
- /**
343
- *
344
- * Example:
345
- *
346
- * `<mc-tag>
347
- * <mc-icon mcTagRemove>cancel</mc-icon>
348
- * </mc-tag>`
349
- *
350
- * You *may* use a custom icon, but you may need to override the `mc-tag-remove` positioning
351
- * styles to properly center the icon within the tag.
352
- */
353
- class McTagRemove {
354
- constructor(parentTag) {
355
- this.parentTag = parentTag;
356
- }
357
- focus($event) {
358
- $event.stopPropagation();
359
- }
360
- /** Calls the parent tag's public `remove()` method if applicable. */
361
- handleClick(event) {
362
- if (this.parentTag.removable) {
363
- this.parentTag.hasFocus = true;
364
- this.parentTag.remove();
365
- }
366
- // We need to stop event propagation because otherwise the event will bubble up to the
367
- // form field and cause the `onContainerClick` method to be invoked. This method would then
368
- // reset the focused tag that has been focused after tag removal. Usually the parent
369
- // the parent click listener of the `McTag` would prevent propagation, but it can happen
370
- // that the tag is being removed before the event bubbles up.
371
- event.stopPropagation();
372
- }
373
- }
374
- /** @nocollapse */ /** @nocollapse */ McTagRemove.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McTagRemove, deps: [{ token: McTag }], target: i0.ɵɵFactoryTarget.Directive });
375
- /** @nocollapse */ /** @nocollapse */ McTagRemove.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: McTagRemove, selector: "[mcTagRemove]", host: { listeners: { "click": "handleClick($event)", "focus": "focus($event)" }, properties: { "attr.tabindex": "-1" }, classAttribute: "mc-tag-remove mc-tag-trailing-icon" }, ngImport: i0 });
376
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McTagRemove, decorators: [{
377
- type: Directive,
378
- args: [{
379
- selector: '[mcTagRemove]',
380
- host: {
381
- class: 'mc-tag-remove mc-tag-trailing-icon',
382
- '[attr.tabindex]': '-1',
383
- '(click)': 'handleClick($event)',
384
- '(focus)': 'focus($event)'
385
- }
386
- }]
387
- }], ctorParameters: function () { return [{ type: McTag }]; } });
388
391
 
389
392
  class McTagListBase {
390
393
  constructor(defaultErrorStateMatcher, parentForm, parentFormGroup, ngControl) {
@@ -1012,9 +1015,9 @@ class McTagList extends McTagListMixinBase {
1012
1015
  }
1013
1016
  }
1014
1017
  }
1015
- /** @nocollapse */ /** @nocollapse */ McTagList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McTagList, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.ErrorStateMatcher }, { token: NG_VALIDATORS, optional: true }, { token: MC_VALIDATION, optional: true }, { token: i2.Directionality, optional: true }, { token: i3.NgForm, optional: true }, { token: i3.FormGroupDirective, optional: true }, { token: i3.NgControl, optional: true, self: true }, { token: i3.NgModel, optional: true, self: true }, { token: i3.FormControlName, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component });
1016
- /** @nocollapse */ /** @nocollapse */ McTagList.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: McTagList, selector: "mc-tag-list", inputs: { multiple: "multiple", compareWith: "compareWith", value: "value", required: "required", placeholder: "placeholder", disabled: "disabled", selectable: "selectable", tabIndex: "tabIndex", errorStateMatcher: "errorStateMatcher", orientation: "orientation" }, outputs: { valueChange: "valueChange", change: "change" }, host: { listeners: { "focus": "focus()", "blur": "blur()", "keydown": "keydown($event)" }, properties: { "class.mc-disabled": "disabled", "class.mc-invalid": "errorState", "attr.tabindex": "disabled ? null : tabIndex", "id": "uid" }, classAttribute: "mc-tag-list" }, providers: [{ provide: McFormFieldControl, useExisting: McTagList }], queries: [{ propertyName: "cleaner", first: true, predicate: ["mcTagListCleaner"], descendants: true, static: true }, { propertyName: "tags", predicate: McTag, descendants: true }], exportAs: ["mcTagList"], usesInheritance: true, ngImport: i0, template: "<div class=\"mc-tags-list__list-container\">\n <ng-content></ng-content>\n</div>\n\n<div class=\"mc-tags-list__cleaner\"\n *ngIf=\"canShowCleaner\">\n <ng-content select=\"mc-cleaner\"></ng-content>\n</div>\n", styles: [".mc-tag-list{display:flex;flex-direction:row;box-sizing:border-box}.mc-tag-input{border:none;outline:none;background:transparent}.mc-tags-list__list-container{display:flex;flex-wrap:wrap;flex:1 1 100%;box-sizing:border-box;min-width:0;min-height:30px;min-height:var(--mc-tag-list-size-min-height, 30px);padding:1px 6px;padding:var(--mc-tag-list-size-padding, 1px 6px)}.mc-tags-list__list-container .mc-tag-input{max-width:100%;flex:1 1 auto;height:22px;height:var(--mc-tag-input-size-height, 22px);margin:2px 4px;margin:var(--mc-tag-input-size-margin, 2px 4px)}.mc-tags-list__cleaner .mc-cleaner{height:30px}\n"], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1017
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McTagList, decorators: [{
1018
+ /** @nocollapse */ /** @nocollapse */ McTagList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: McTagList, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.ErrorStateMatcher }, { token: NG_VALIDATORS, optional: true }, { token: MC_VALIDATION, optional: true }, { token: i2.Directionality, optional: true }, { token: i3.NgForm, optional: true }, { token: i3.FormGroupDirective, optional: true }, { token: i3.NgControl, optional: true, self: true }, { token: i3.NgModel, optional: true, self: true }, { token: i3.FormControlName, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component });
1019
+ /** @nocollapse */ /** @nocollapse */ McTagList.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.0", type: McTagList, selector: "mc-tag-list", inputs: { multiple: "multiple", compareWith: "compareWith", value: "value", required: "required", placeholder: "placeholder", disabled: "disabled", selectable: "selectable", tabIndex: "tabIndex", errorStateMatcher: "errorStateMatcher", orientation: "orientation" }, outputs: { valueChange: "valueChange", change: "change" }, host: { listeners: { "focus": "focus()", "blur": "blur()", "keydown": "keydown($event)" }, properties: { "class.mc-disabled": "disabled", "class.mc-invalid": "errorState", "attr.tabindex": "disabled ? null : tabIndex", "id": "uid" }, classAttribute: "mc-tag-list" }, providers: [{ provide: McFormFieldControl, useExisting: McTagList }], queries: [{ propertyName: "cleaner", first: true, predicate: ["mcTagListCleaner"], descendants: true, static: true }, { propertyName: "tags", predicate: McTag, descendants: true }], exportAs: ["mcTagList"], usesInheritance: true, ngImport: i0, template: "<div class=\"mc-tags-list__list-container\">\n <ng-content></ng-content>\n</div>\n\n<div class=\"mc-tags-list__cleaner\"\n *ngIf=\"canShowCleaner\">\n <ng-content select=\"mc-cleaner\"></ng-content>\n</div>\n", styles: [".mc-tag-list{display:flex;flex-direction:row;box-sizing:border-box}.mc-tag-input{border:none;outline:none;background:transparent}.mc-tags-list__list-container{display:flex;flex-wrap:wrap;flex:1 1 100%;box-sizing:border-box;min-width:0;min-height:30px;min-height:var(--mc-tag-list-size-min-height, 30px);padding:1px 6px;padding:var(--mc-tag-list-size-padding, 1px 6px)}.mc-tags-list__list-container .mc-tag-input{max-width:100%;flex:1 1 auto;height:22px;height:var(--mc-tag-input-size-height, 22px);margin:2px 4px;margin:var(--mc-tag-input-size-margin, 2px 4px)}.mc-tags-list__cleaner .mc-cleaner{height:30px}\n"], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1020
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: McTagList, decorators: [{
1018
1021
  type: Component,
1019
1022
  args: [{ selector: 'mc-tag-list', exportAs: 'mcTagList', host: {
1020
1023
  class: 'mc-tag-list',
@@ -1266,9 +1269,9 @@ class McTagInput {
1266
1269
  return this.separatorKeyCodes.indexOf(event.keyCode) > -1;
1267
1270
  }
1268
1271
  }
1269
- /** @nocollapse */ /** @nocollapse */ McTagInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McTagInput, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: MC_TAGS_DEFAULT_OPTIONS }, { token: i3.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
1270
- /** @nocollapse */ /** @nocollapse */ McTagInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: McTagInput, selector: "input[mcTagInputFor]", inputs: { separatorKeyCodes: ["mcTagInputSeparatorKeyCodes", "separatorKeyCodes"], placeholder: "placeholder", id: "id", tagList: ["mcTagInputFor", "tagList"], addOnBlur: ["mcTagInputAddOnBlur", "addOnBlur"], disabled: "disabled" }, outputs: { tagEnd: "mcTagInputTokenEnd" }, host: { listeners: { "keydown": "onKeydown($event)", "blur": "blur()", "focus": "onFocus()", "input": "onInput()", "paste": "onPaste($event)" }, properties: { "id": "id", "attr.disabled": "disabled || null", "attr.placeholder": "placeholder || null" }, classAttribute: "mc-tag-input" }, exportAs: ["mcTagInput", "mcTagInputFor"], usesOnChanges: true, ngImport: i0 });
1271
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McTagInput, decorators: [{
1272
+ /** @nocollapse */ /** @nocollapse */ McTagInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: McTagInput, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: MC_TAGS_DEFAULT_OPTIONS }, { token: i3.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
1273
+ /** @nocollapse */ /** @nocollapse */ McTagInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: McTagInput, selector: "input[mcTagInputFor]", inputs: { separatorKeyCodes: ["mcTagInputSeparatorKeyCodes", "separatorKeyCodes"], placeholder: "placeholder", id: "id", tagList: ["mcTagInputFor", "tagList"], addOnBlur: ["mcTagInputAddOnBlur", "addOnBlur"], disabled: "disabled" }, outputs: { tagEnd: "mcTagInputTokenEnd" }, host: { listeners: { "keydown": "onKeydown($event)", "blur": "blur()", "focus": "onFocus()", "input": "onInput()", "paste": "onPaste($event)" }, properties: { "id": "id", "attr.disabled": "disabled || null", "attr.placeholder": "placeholder || null" }, classAttribute: "mc-tag-input" }, exportAs: ["mcTagInput", "mcTagInputFor"], usesOnChanges: true, ngImport: i0 });
1274
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: McTagInput, decorators: [{
1272
1275
  type: Directive,
1273
1276
  args: [{
1274
1277
  selector: 'input[mcTagInputFor]',
@@ -1314,8 +1317,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
1314
1317
 
1315
1318
  class McTagsModule {
1316
1319
  }
1317
- /** @nocollapse */ /** @nocollapse */ McTagsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McTagsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1318
- /** @nocollapse */ /** @nocollapse */ McTagsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McTagsModule, declarations: [McTagList,
1320
+ /** @nocollapse */ /** @nocollapse */ McTagsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: McTagsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1321
+ /** @nocollapse */ /** @nocollapse */ McTagsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: McTagsModule, declarations: [McTagList,
1319
1322
  McTag,
1320
1323
  McTagInput,
1321
1324
  McTagTrailingIcon,
@@ -1326,12 +1329,12 @@ class McTagsModule {
1326
1329
  McTagTrailingIcon,
1327
1330
  McTagAvatar,
1328
1331
  McTagRemove] });
1329
- /** @nocollapse */ /** @nocollapse */ McTagsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McTagsModule, providers: [{
1332
+ /** @nocollapse */ /** @nocollapse */ McTagsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: McTagsModule, providers: [{
1330
1333
  provide: MC_TAGS_DEFAULT_OPTIONS,
1331
1334
  // tslint:disable-next-line: no-object-literal-type-assertion
1332
1335
  useValue: { separatorKeyCodes: [ENTER] }
1333
1336
  }], imports: [[CommonModule, PlatformModule]] });
1334
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McTagsModule, decorators: [{
1337
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: McTagsModule, decorators: [{
1335
1338
  type: NgModule,
1336
1339
  args: [{
1337
1340
  imports: [CommonModule, PlatformModule],