@ptsecurity/mosaic 12.3.0 → 13.1.1

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 (905) hide show
  1. package/_theming.scss +978 -781
  2. package/_visual.scss +848 -692
  3. package/autocomplete/README.md +0 -0
  4. package/autocomplete/package.json +5 -5
  5. package/button/README.md +0 -0
  6. package/button/button.component.d.ts +17 -14
  7. package/button/button.module.d.ts +1 -1
  8. package/button/package.json +5 -5
  9. package/button-toggle/README.md +0 -0
  10. package/button-toggle/package.json +5 -5
  11. package/card/README.md +0 -0
  12. package/card/package.json +5 -5
  13. package/checkbox/README.md +1 -0
  14. package/checkbox/package.json +5 -5
  15. package/core/formatters/date/formatter.d.ts +41 -17
  16. package/core/formatters/date/templates/en-US.d.ts +8 -8
  17. package/core/formatters/date/templates/ru-RU.d.ts +8 -8
  18. package/core/package.json +5 -5
  19. package/core/pop-up/pop-up.d.ts +1 -0
  20. package/core/public-api.d.ts +1 -0
  21. package/core/version.d.ts +2 -0
  22. package/datepicker/README.md +0 -0
  23. package/datepicker/package.json +5 -5
  24. package/design-tokens/{tokens → legacy-2017/tokens}/components/alert.json5 +0 -0
  25. package/design-tokens/{tokens → legacy-2017/tokens}/components/autocomplete.json5 +0 -0
  26. package/design-tokens/{tokens → legacy-2017/tokens}/components/badge.json5 +0 -0
  27. package/design-tokens/{tokens → legacy-2017/tokens}/components/button-toggle.json5 +0 -0
  28. package/design-tokens/{tokens → legacy-2017/tokens}/components/button.json5 +0 -0
  29. package/design-tokens/{tokens → legacy-2017/tokens}/components/card.json5 +0 -0
  30. package/design-tokens/legacy-2017/tokens/components/checkbox.json5 +39 -0
  31. package/design-tokens/{tokens → legacy-2017/tokens}/components/datepicker.json5 +0 -0
  32. package/design-tokens/{tokens → legacy-2017/tokens}/components/divider.json5 +0 -0
  33. package/design-tokens/{tokens → legacy-2017/tokens}/components/dropdown.json5 +0 -0
  34. package/design-tokens/{tokens → legacy-2017/tokens}/components/form-field.json5 +0 -0
  35. package/design-tokens/{tokens → legacy-2017/tokens}/components/forms.json5 +0 -0
  36. package/design-tokens/{tokens → legacy-2017/tokens}/components/input.json5 +0 -0
  37. package/design-tokens/{tokens → legacy-2017/tokens}/components/link.json5 +0 -0
  38. package/design-tokens/{tokens → legacy-2017/tokens}/components/list.json5 +0 -0
  39. package/design-tokens/legacy-2017/tokens/components/modal.json5 +79 -0
  40. package/design-tokens/legacy-2017/tokens/components/navbar.json5 +69 -0
  41. package/design-tokens/{tokens → legacy-2017/tokens}/components/optgroup.json5 +0 -0
  42. package/design-tokens/{tokens → legacy-2017/tokens}/components/option.json5 +0 -0
  43. package/design-tokens/{tokens → legacy-2017/tokens}/components/popover.json5 +0 -0
  44. package/design-tokens/{tokens → legacy-2017/tokens}/components/popup.json5 +0 -0
  45. package/design-tokens/{tokens → legacy-2017/tokens}/components/progress-bar.json5 +0 -0
  46. package/design-tokens/{tokens → legacy-2017/tokens}/components/progress-spinner.json5 +0 -0
  47. package/design-tokens/legacy-2017/tokens/components/radio.json5 +44 -0
  48. package/design-tokens/{tokens → legacy-2017/tokens}/components/select.json5 +0 -0
  49. package/design-tokens/{tokens → legacy-2017/tokens}/components/sidepanel.json5 +0 -0
  50. package/design-tokens/{tokens → legacy-2017/tokens}/components/table.json5 +0 -0
  51. package/design-tokens/{tokens → legacy-2017/tokens}/components/tabs.json5 +0 -0
  52. package/design-tokens/legacy-2017/tokens/components/tags.json5 +132 -0
  53. package/design-tokens/{tokens → legacy-2017/tokens}/components/textarea.json5 +0 -0
  54. package/design-tokens/{tokens → legacy-2017/tokens}/components/timepicker.json5 +0 -0
  55. package/design-tokens/legacy-2017/tokens/components/toggle.json5 +79 -0
  56. package/design-tokens/{tokens → legacy-2017/tokens}/components/tooltip.json5 +0 -0
  57. package/design-tokens/{tokens → legacy-2017/tokens}/components/tree.json5 +0 -0
  58. package/design-tokens/{tokens → legacy-2017/tokens}/properties/aliases.json5 +0 -0
  59. package/design-tokens/{tokens → legacy-2017/tokens}/properties/colors.json5 +0 -0
  60. package/design-tokens/{tokens → legacy-2017/tokens}/properties/font.json5 +0 -0
  61. package/design-tokens/{tokens → legacy-2017/tokens}/properties/globals.json5 +0 -0
  62. package/design-tokens/{tokens → legacy-2017/tokens}/properties/padding.json5 +0 -0
  63. package/design-tokens/{tokens → legacy-2017/tokens}/properties/palette.json5 +0 -0
  64. package/design-tokens/{tokens → legacy-2017/tokens}/properties/typography.json5 +0 -0
  65. package/design-tokens/legacy-2017/tokens.d.ts +7659 -0
  66. package/design-tokens/package.json +5 -5
  67. package/design-tokens/pt-2022/tokens/components/alert.json5 +83 -0
  68. package/design-tokens/pt-2022/tokens/components/autocomplete.json5 +11 -0
  69. package/design-tokens/pt-2022/tokens/components/badge.json5 +184 -0
  70. package/design-tokens/pt-2022/tokens/components/button-toggle.json5 +10 -0
  71. package/design-tokens/pt-2022/tokens/components/button.json5 +143 -0
  72. package/design-tokens/pt-2022/tokens/components/card.json5 +51 -0
  73. package/design-tokens/pt-2022/tokens/components/checkbox.json5 +39 -0
  74. package/design-tokens/pt-2022/tokens/components/datepicker.json5 +64 -0
  75. package/design-tokens/pt-2022/tokens/components/divider.json5 +8 -0
  76. package/design-tokens/pt-2022/tokens/components/dropdown.json5 +47 -0
  77. package/design-tokens/pt-2022/tokens/components/form-field.json5 +52 -0
  78. package/design-tokens/pt-2022/tokens/components/forms.json5 +52 -0
  79. package/design-tokens/pt-2022/tokens/components/input.json5 +13 -0
  80. package/design-tokens/pt-2022/tokens/components/link.json5 +56 -0
  81. package/design-tokens/pt-2022/tokens/components/list.json5 +15 -0
  82. package/design-tokens/pt-2022/tokens/components/modal.json5 +79 -0
  83. package/design-tokens/pt-2022/tokens/components/navbar.json5 +69 -0
  84. package/design-tokens/pt-2022/tokens/components/optgroup.json5 +10 -0
  85. package/design-tokens/pt-2022/tokens/components/option.json5 +12 -0
  86. package/design-tokens/pt-2022/tokens/components/popover.json5 +68 -0
  87. package/design-tokens/pt-2022/tokens/components/popup.json5 +18 -0
  88. package/design-tokens/pt-2022/tokens/components/progress-bar.json5 +13 -0
  89. package/design-tokens/pt-2022/tokens/components/progress-spinner.json5 +7 -0
  90. package/design-tokens/pt-2022/tokens/components/radio.json5 +44 -0
  91. package/design-tokens/pt-2022/tokens/components/select.json5 +25 -0
  92. package/design-tokens/pt-2022/tokens/components/sidepanel.json5 +30 -0
  93. package/design-tokens/pt-2022/tokens/components/table.json5 +15 -0
  94. package/design-tokens/pt-2022/tokens/components/tabs.json5 +25 -0
  95. package/design-tokens/pt-2022/tokens/components/tags.json5 +132 -0
  96. package/design-tokens/pt-2022/tokens/components/textarea.json5 +12 -0
  97. package/design-tokens/pt-2022/tokens/components/timepicker.json5 +7 -0
  98. package/design-tokens/pt-2022/tokens/components/toggle.json5 +79 -0
  99. package/design-tokens/pt-2022/tokens/components/tooltip.json5 +83 -0
  100. package/design-tokens/pt-2022/tokens/components/tree.json5 +12 -0
  101. package/design-tokens/pt-2022/tokens/properties/aliases.json5 +3 -0
  102. package/design-tokens/pt-2022/tokens/properties/colors.json5 +112 -0
  103. package/design-tokens/pt-2022/tokens/properties/font.json5 +15 -0
  104. package/design-tokens/pt-2022/tokens/properties/globals.json5 +30 -0
  105. package/design-tokens/pt-2022/tokens/properties/padding.json5 +3 -0
  106. package/design-tokens/pt-2022/tokens/properties/palette.json5 +226 -0
  107. package/design-tokens/pt-2022/tokens/properties/typography.json5 +140 -0
  108. package/design-tokens/pt-2022/tokens.d.ts +8696 -0
  109. package/design-tokens/public-api.d.ts +3 -1
  110. package/divider/README.md +0 -0
  111. package/divider/package.json +5 -5
  112. package/dropdown/package.json +5 -5
  113. package/esm2020/autocomplete/autocomplete-origin.directive.mjs +21 -0
  114. package/esm2020/autocomplete/autocomplete-trigger.directive.mjs +555 -0
  115. package/esm2020/autocomplete/autocomplete.component.mjs +154 -0
  116. package/esm2020/autocomplete/autocomplete.module.mjs +34 -0
  117. package/{esm2015/autocomplete/index.js → esm2020/autocomplete/index.mjs} +0 -0
  118. package/{esm2015/autocomplete/ptsecurity-mosaic-autocomplete.js → esm2020/autocomplete/ptsecurity-mosaic-autocomplete.mjs} +0 -0
  119. package/{esm2015/autocomplete/public-api.js → esm2020/autocomplete/public-api.mjs} +0 -0
  120. package/esm2020/button/button.component.mjs +129 -0
  121. package/esm2020/button/button.module.mjs +38 -0
  122. package/{esm2015/button/index.js → esm2020/button/index.mjs} +0 -0
  123. package/{esm2015/button/ptsecurity-mosaic-button.js → esm2020/button/ptsecurity-mosaic-button.mjs} +0 -0
  124. package/{esm2015/button/public-api.js → esm2020/button/public-api.mjs} +0 -0
  125. package/esm2020/button-toggle/button-toggle.component.mjs +362 -0
  126. package/esm2020/button-toggle/button-toggle.module.mjs +19 -0
  127. package/{esm2015/button-toggle/index.js → esm2020/button-toggle/index.mjs} +0 -0
  128. package/{esm2015/button-toggle/ptsecurity-mosaic-button-toggle.js → esm2020/button-toggle/ptsecurity-mosaic-button-toggle.mjs} +0 -0
  129. package/{esm2015/button-toggle/public-api.js → esm2020/button-toggle/public-api.mjs} +0 -0
  130. package/esm2020/card/card.component.mjs +80 -0
  131. package/esm2020/card/card.module.mjs +30 -0
  132. package/{esm2015/card/index.js → esm2020/card/index.mjs} +0 -0
  133. package/{esm2015/card/ptsecurity-mosaic-card.js → esm2020/card/ptsecurity-mosaic-card.mjs} +0 -0
  134. package/{esm2015/card/public-api.js → esm2020/card/public-api.mjs} +0 -0
  135. package/{esm2015/checkbox/checkbox-config.js → esm2020/checkbox/checkbox-config.mjs} +0 -0
  136. package/esm2020/checkbox/checkbox-module.mjs +19 -0
  137. package/esm2020/checkbox/checkbox-required-validator.mjs +27 -0
  138. package/esm2020/checkbox/checkbox.mjs +315 -0
  139. package/{esm2015/checkbox/index.js → esm2020/checkbox/index.mjs} +0 -0
  140. package/{esm2015/checkbox/ptsecurity-mosaic-checkbox.js → esm2020/checkbox/ptsecurity-mosaic-checkbox.mjs} +0 -0
  141. package/{esm2015/checkbox/public-api.js → esm2020/checkbox/public-api.mjs} +0 -0
  142. package/{esm2015/core/animation/animation.js → esm2020/core/animation/animation.mjs} +0 -0
  143. package/{esm2015/core/animation/fade-animations.js → esm2020/core/animation/fade-animations.mjs} +0 -0
  144. package/{esm2015/core/animation/index.js → esm2020/core/animation/index.mjs} +0 -0
  145. package/{esm2015/core/animation/select-animations.js → esm2020/core/animation/select-animations.mjs} +0 -0
  146. package/{esm2015/core/common-behaviors/color.js → esm2020/core/common-behaviors/color.mjs} +0 -0
  147. package/esm2020/core/common-behaviors/common-module.mjs +83 -0
  148. package/{esm2015/core/common-behaviors/constructor.js → esm2020/core/common-behaviors/constructor.mjs} +0 -0
  149. package/{esm2015/core/common-behaviors/disabled.js → esm2020/core/common-behaviors/disabled.mjs} +0 -0
  150. package/{esm2015/core/common-behaviors/error-state.js → esm2020/core/common-behaviors/error-state.mjs} +0 -0
  151. package/{esm2015/core/common-behaviors/index.js → esm2020/core/common-behaviors/index.mjs} +0 -0
  152. package/{esm2015/core/common-behaviors/tabindex.js → esm2020/core/common-behaviors/tabindex.mjs} +0 -0
  153. package/esm2020/core/error/error-options.mjs +26 -0
  154. package/esm2020/core/formatters/date/formatter.mjs +359 -0
  155. package/esm2020/core/formatters/date/templates/en-US.mjs +281 -0
  156. package/esm2020/core/formatters/date/templates/ru-RU.mjs +281 -0
  157. package/esm2020/core/formatters/index.mjs +20 -0
  158. package/esm2020/core/formatters/number/formatter.mjs +105 -0
  159. package/esm2020/core/forms/forms-module.mjs +24 -0
  160. package/esm2020/core/forms/forms.directive.mjs +66 -0
  161. package/{esm2015/core/forms/index.js → esm2020/core/forms/index.mjs} +0 -0
  162. package/esm2020/core/highlight/highlight.pipe.mjs +17 -0
  163. package/esm2020/core/highlight/index.mjs +19 -0
  164. package/{esm2015/core/index.js → esm2020/core/index.mjs} +0 -0
  165. package/{esm2015/core/label/label-options.js → esm2020/core/label/label-options.mjs} +0 -0
  166. package/esm2020/core/line/line.mjs +70 -0
  167. package/esm2020/core/option/action.mjs +121 -0
  168. package/{esm2015/core/option/index.js → esm2020/core/option/index.mjs} +0 -0
  169. package/esm2020/core/option/optgroup.mjs +31 -0
  170. package/esm2020/core/option/option-module.mjs +21 -0
  171. package/esm2020/core/option/option.mjs +254 -0
  172. package/{esm2015/core/overlay/overlay-position-map.js → esm2020/core/overlay/overlay-position-map.mjs} +0 -0
  173. package/{esm2015/core/pop-up/constants.js → esm2020/core/pop-up/constants.mjs} +0 -0
  174. package/{esm2015/core/pop-up/index.js → esm2020/core/pop-up/index.mjs} +0 -0
  175. package/esm2020/core/pop-up/pop-up-trigger.mjs +239 -0
  176. package/esm2020/core/pop-up/pop-up.mjs +94 -0
  177. package/{esm2015/core/ptsecurity-mosaic-core.js → esm2020/core/ptsecurity-mosaic-core.mjs} +0 -0
  178. package/esm2020/core/public-api.mjs +18 -0
  179. package/{esm2015/core/select/constants.js → esm2020/core/select/constants.mjs} +0 -0
  180. package/{esm2015/core/select/errors.js → esm2020/core/select/errors.mjs} +0 -0
  181. package/{esm2015/core/select/events.js → esm2020/core/select/events.mjs} +0 -0
  182. package/{esm2015/core/select/index.js → esm2020/core/select/index.mjs} +0 -0
  183. package/{esm2015/core/selection/constants.js → esm2020/core/selection/constants.mjs} +0 -0
  184. package/{esm2015/core/selection/index.js → esm2020/core/selection/index.mjs} +0 -0
  185. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +37 -0
  186. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.module.mjs +18 -0
  187. package/esm2020/core/services/measure-scrollbar.service.mjs +48 -0
  188. package/{esm2015/core/utils/index.js → esm2020/core/utils/index.mjs} +0 -0
  189. package/{esm2015/core/utils/public-api.js → esm2020/core/utils/public-api.mjs} +0 -0
  190. package/{esm2015/core/utils/utils.js → esm2020/core/utils/utils.mjs} +0 -0
  191. package/{esm2015/core/validation/index.js → esm2020/core/validation/index.mjs} +0 -0
  192. package/{esm2015/core/validation/validation.js → esm2020/core/validation/validation.mjs} +0 -0
  193. package/esm2020/core/version.mjs +3 -0
  194. package/esm2020/datepicker/calendar-body.component.mjs +106 -0
  195. package/esm2020/datepicker/calendar.component.mjs +362 -0
  196. package/{esm2015/datepicker/datepicker-animations.js → esm2020/datepicker/datepicker-animations.mjs} +0 -0
  197. package/{esm2015/datepicker/datepicker-errors.js → esm2020/datepicker/datepicker-errors.mjs} +0 -0
  198. package/esm2020/datepicker/datepicker-input.directive.mjs +900 -0
  199. package/esm2020/datepicker/datepicker-intl.mjs +40 -0
  200. package/esm2020/datepicker/datepicker-module.mjs +107 -0
  201. package/esm2020/datepicker/datepicker-toggle.component.mjs +86 -0
  202. package/esm2020/datepicker/datepicker.component.mjs +408 -0
  203. package/{esm2015/datepicker/index.js → esm2020/datepicker/index.mjs} +0 -0
  204. package/esm2020/datepicker/month-view.component.mjs +257 -0
  205. package/esm2020/datepicker/multi-year-view.component.mjs +218 -0
  206. package/{esm2015/datepicker/ptsecurity-mosaic-datepicker.js → esm2020/datepicker/ptsecurity-mosaic-datepicker.mjs} +0 -0
  207. package/{esm2015/datepicker/public-api.js → esm2020/datepicker/public-api.mjs} +0 -0
  208. package/esm2020/datepicker/year-view.component.mjs +253 -0
  209. package/{esm2015/design-tokens/index.js → esm2020/design-tokens/index.mjs} +0 -0
  210. package/esm2020/design-tokens/legacy-2017/tokens.mjs +953 -0
  211. package/esm2020/design-tokens/pt-2022/tokens.mjs +1013 -0
  212. package/{esm2015/design-tokens/ptsecurity-mosaic-design-tokens.js → esm2020/design-tokens/ptsecurity-mosaic-design-tokens.mjs} +0 -0
  213. package/esm2020/design-tokens/public-api.mjs +4 -0
  214. package/esm2020/divider/divider.component.mjs +39 -0
  215. package/esm2020/divider/divider.module.mjs +18 -0
  216. package/{esm2015/divider/index.js → esm2020/divider/index.mjs} +0 -0
  217. package/{esm2015/divider/ptsecurity-mosaic-divider.js → esm2020/divider/ptsecurity-mosaic-divider.mjs} +0 -0
  218. package/{esm2015/divider/public-api.js → esm2020/divider/public-api.mjs} +0 -0
  219. package/{esm2015/dropdown/dropdown-animations.js → esm2020/dropdown/dropdown-animations.mjs} +0 -0
  220. package/esm2020/dropdown/dropdown-content.directive.mjs +64 -0
  221. package/{esm2015/dropdown/dropdown-errors.js → esm2020/dropdown/dropdown-errors.mjs} +0 -0
  222. package/esm2020/dropdown/dropdown-item.component.mjs +139 -0
  223. package/esm2020/dropdown/dropdown-trigger.directive.mjs +485 -0
  224. package/esm2020/dropdown/dropdown.component.mjs +292 -0
  225. package/esm2020/dropdown/dropdown.module.mjs +50 -0
  226. package/{esm2015/dropdown/dropdown.types.js → esm2020/dropdown/dropdown.types.mjs} +0 -0
  227. package/{esm2015/dropdown/index.js → esm2020/dropdown/index.mjs} +0 -0
  228. package/{esm2015/dropdown/ptsecurity-mosaic-dropdown.js → esm2020/dropdown/ptsecurity-mosaic-dropdown.mjs} +0 -0
  229. package/{esm2015/dropdown/public-api.js → esm2020/dropdown/public-api.mjs} +0 -0
  230. package/esm2020/form-field/cleaner.mjs +23 -0
  231. package/{esm2015/form-field/form-field-control.js → esm2020/form-field/form-field-control.mjs} +0 -0
  232. package/{esm2015/form-field/form-field-errors.js → esm2020/form-field/form-field-errors.mjs} +0 -0
  233. package/esm2020/form-field/form-field.mjs +205 -0
  234. package/esm2020/form-field/form-field.module.mjs +52 -0
  235. package/esm2020/form-field/hint.mjs +23 -0
  236. package/{esm2015/form-field/index.js → esm2020/form-field/index.mjs} +0 -0
  237. package/esm2020/form-field/prefix.mjs +13 -0
  238. package/{esm2015/form-field/ptsecurity-mosaic-form-field.js → esm2020/form-field/ptsecurity-mosaic-form-field.mjs} +0 -0
  239. package/{esm2015/form-field/public-api.js → esm2020/form-field/public-api.mjs} +0 -0
  240. package/esm2020/form-field/stepper.mjs +55 -0
  241. package/esm2020/form-field/suffix.mjs +13 -0
  242. package/esm2020/icon/icon.component.mjs +44 -0
  243. package/esm2020/icon/icon.module.mjs +38 -0
  244. package/{esm2015/icon/index.js → esm2020/icon/index.mjs} +0 -0
  245. package/{esm2015/icon/ptsecurity-mosaic-icon.js → esm2020/icon/ptsecurity-mosaic-icon.mjs} +0 -0
  246. package/{esm2015/icon/public-api.js → esm2020/icon/public-api.mjs} +0 -0
  247. package/{esm2015/index.js → esm2020/index.mjs} +0 -0
  248. package/{esm2015/input/index.js → esm2020/input/index.mjs} +0 -0
  249. package/{esm2015/input/input-errors.js → esm2020/input/input-errors.mjs} +0 -0
  250. package/esm2020/input/input-number-validators.mjs +92 -0
  251. package/esm2020/input/input-number.mjs +163 -0
  252. package/{esm2015/input/input-value-accessor.js → esm2020/input/input-value-accessor.mjs} +0 -0
  253. package/esm2020/input/input.mjs +333 -0
  254. package/esm2020/input/input.module.mjs +23 -0
  255. package/{esm2015/input/ptsecurity-mosaic-input.js → esm2020/input/ptsecurity-mosaic-input.mjs} +0 -0
  256. package/{esm2015/input/public-api.js → esm2020/input/public-api.mjs} +0 -0
  257. package/{esm2015/link/index.js → esm2020/link/index.mjs} +0 -0
  258. package/esm2020/link/link.component.mjs +107 -0
  259. package/esm2020/link/link.module.mjs +26 -0
  260. package/{esm2015/link/ptsecurity-mosaic-link.js → esm2020/link/ptsecurity-mosaic-link.mjs} +0 -0
  261. package/{esm2015/link/public-api.js → esm2020/link/public-api.mjs} +0 -0
  262. package/{esm2015/list/index.js → esm2020/list/index.mjs} +0 -0
  263. package/esm2020/list/list-selection.component.mjs +687 -0
  264. package/esm2020/list/list.component.mjs +44 -0
  265. package/esm2020/list/list.module.mjs +55 -0
  266. package/{esm2015/list/ptsecurity-mosaic-list.js → esm2020/list/ptsecurity-mosaic-list.mjs} +0 -0
  267. package/{esm2015/list/public-api.js → esm2020/list/public-api.mjs} +0 -0
  268. package/esm2020/modal/css-unit.pipe.mjs +17 -0
  269. package/{esm2015/modal/index.js → esm2020/modal/index.mjs} +0 -0
  270. package/esm2020/modal/modal-control.service.mjs +85 -0
  271. package/{esm2015/modal/modal-ref.class.js → esm2020/modal/modal-ref.class.mjs} +0 -0
  272. package/{esm2015/modal/modal-util.js → esm2020/modal/modal-util.mjs} +0 -0
  273. package/esm2020/modal/modal.component.mjs +501 -0
  274. package/esm2020/modal/modal.directive.mjs +52 -0
  275. package/esm2020/modal/modal.module.mjs +72 -0
  276. package/esm2020/modal/modal.service.mjs +124 -0
  277. package/{esm2015/modal/modal.type.js → esm2020/modal/modal.type.mjs} +0 -0
  278. package/{esm2015/modal/ptsecurity-mosaic-modal.js → esm2020/modal/ptsecurity-mosaic-modal.mjs} +0 -0
  279. package/{esm2015/modal/public-api.js → esm2020/modal/public-api.mjs} +0 -0
  280. package/{esm2015/navbar/index.js → esm2020/navbar/index.mjs} +0 -0
  281. package/esm2020/navbar/navbar-item.component.mjs +583 -0
  282. package/esm2020/navbar/navbar.component.mjs +237 -0
  283. package/esm2020/navbar/navbar.module.mjs +92 -0
  284. package/{esm2015/navbar/ptsecurity-mosaic-navbar.js → esm2020/navbar/ptsecurity-mosaic-navbar.mjs} +0 -0
  285. package/{esm2015/navbar/public-api.js → esm2020/navbar/public-api.mjs} +0 -0
  286. package/esm2020/navbar/vertical-navbar.animation.mjs +10 -0
  287. package/esm2020/navbar/vertical-navbar.component.mjs +114 -0
  288. package/{esm2015/popover/index.js → esm2020/popover/index.mjs} +0 -0
  289. package/{esm2015/popover/popover-animations.js → esm2020/popover/popover-animations.mjs} +0 -0
  290. package/esm2020/popover/popover-confirm.component.mjs +108 -0
  291. package/esm2020/popover/popover.component.mjs +253 -0
  292. package/esm2020/popover/popover.module.mjs +24 -0
  293. package/{esm2015/popover/ptsecurity-mosaic-popover.js → esm2020/popover/ptsecurity-mosaic-popover.mjs} +0 -0
  294. package/{esm2015/popover/public-api.js → esm2020/popover/public-api.mjs} +0 -0
  295. package/{esm2015/progress-bar/index.js → esm2020/progress-bar/index.mjs} +0 -0
  296. package/esm2020/progress-bar/progress-bar.component.mjs +42 -0
  297. package/esm2020/progress-bar/progress-bar.module.mjs +30 -0
  298. package/{esm2015/progress-bar/ptsecurity-mosaic-progress-bar.js → esm2020/progress-bar/ptsecurity-mosaic-progress-bar.mjs} +0 -0
  299. package/{esm2015/progress-bar/public-api.js → esm2020/progress-bar/public-api.mjs} +0 -0
  300. package/{esm2015/progress-spinner/index.js → esm2020/progress-spinner/index.mjs} +0 -0
  301. package/esm2020/progress-spinner/progress-spinner.component.mjs +46 -0
  302. package/esm2020/progress-spinner/progress-spinner.module.mjs +30 -0
  303. package/{esm2015/progress-spinner/ptsecurity-mosaic-progress-spinner.js → esm2020/progress-spinner/ptsecurity-mosaic-progress-spinner.mjs} +0 -0
  304. package/{esm2015/progress-spinner/public-api.js → esm2020/progress-spinner/public-api.mjs} +0 -0
  305. package/{esm2015/ptsecurity-mosaic.js → esm2020/ptsecurity-mosaic.mjs} +0 -0
  306. package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
  307. package/{esm2015/radio/index.js → esm2020/radio/index.mjs} +0 -0
  308. package/{esm2015/radio/ptsecurity-mosaic-radio.js → esm2020/radio/ptsecurity-mosaic-radio.mjs} +0 -0
  309. package/{esm2015/radio/public-api.js → esm2020/radio/public-api.mjs} +0 -0
  310. package/esm2020/radio/radio.component.mjs +458 -0
  311. package/esm2020/radio/radio.module.mjs +20 -0
  312. package/{esm2015/select/index.js → esm2020/select/index.mjs} +0 -0
  313. package/{esm2015/select/ptsecurity-mosaic-select.js → esm2020/select/ptsecurity-mosaic-select.mjs} +0 -0
  314. package/{esm2015/select/public-api.js → esm2020/select/public-api.mjs} +0 -0
  315. package/esm2020/select/select.component.mjs +1110 -0
  316. package/esm2020/select/select.module.mjs +64 -0
  317. package/{esm2015/sidebar/index.js → esm2020/sidebar/index.mjs} +0 -0
  318. package/{esm2015/sidebar/ptsecurity-mosaic-sidebar.js → esm2020/sidebar/ptsecurity-mosaic-sidebar.mjs} +0 -0
  319. package/{esm2015/sidebar/public-api.js → esm2020/sidebar/public-api.mjs} +0 -0
  320. package/{esm2015/sidebar/sidebar-animations.js → esm2020/sidebar/sidebar-animations.mjs} +0 -0
  321. package/esm2020/sidebar/sidebar.component.mjs +146 -0
  322. package/esm2020/sidebar/sidebar.module.mjs +30 -0
  323. package/{esm2015/sidepanel/index.js → esm2020/sidepanel/index.mjs} +0 -0
  324. package/{esm2015/sidepanel/ptsecurity-mosaic-sidepanel.js → esm2020/sidepanel/ptsecurity-mosaic-sidepanel.mjs} +0 -0
  325. package/{esm2015/sidepanel/public-api.js → esm2020/sidepanel/public-api.mjs} +0 -0
  326. package/{esm2015/sidepanel/sidepanel-animations.js → esm2020/sidepanel/sidepanel-animations.mjs} +0 -0
  327. package/{esm2015/sidepanel/sidepanel-config.js → esm2020/sidepanel/sidepanel-config.mjs} +0 -0
  328. package/esm2020/sidepanel/sidepanel-container.component.mjs +106 -0
  329. package/esm2020/sidepanel/sidepanel-directives.mjs +159 -0
  330. package/{esm2015/sidepanel/sidepanel-ref.js → esm2020/sidepanel/sidepanel-ref.mjs} +0 -0
  331. package/esm2020/sidepanel/sidepanel.module.mjs +74 -0
  332. package/esm2020/sidepanel/sidepanel.service.mjs +167 -0
  333. package/{esm2015/splitter/index.js → esm2020/splitter/index.mjs} +0 -0
  334. package/{esm2015/splitter/ptsecurity-mosaic-splitter.js → esm2020/splitter/ptsecurity-mosaic-splitter.mjs} +0 -0
  335. package/{esm2015/splitter/public-api.js → esm2020/splitter/public-api.mjs} +0 -0
  336. package/esm2020/splitter/splitter.component.mjs +482 -0
  337. package/esm2020/splitter/splitter.module.mjs +40 -0
  338. package/{esm2015/table/index.js → esm2020/table/index.mjs} +0 -0
  339. package/{esm2015/table/ptsecurity-mosaic-table.js → esm2020/table/ptsecurity-mosaic-table.mjs} +0 -0
  340. package/{esm2015/table/public-api.js → esm2020/table/public-api.mjs} +0 -0
  341. package/esm2020/table/table.component.mjs +16 -0
  342. package/esm2020/table/table.module.mjs +30 -0
  343. package/{esm2015/tabs/index.js → esm2020/tabs/index.mjs} +0 -0
  344. package/esm2020/tabs/paginated-tab-header.mjs +479 -0
  345. package/{esm2015/tabs/ptsecurity-mosaic-tabs.js → esm2020/tabs/ptsecurity-mosaic-tabs.mjs} +0 -0
  346. package/{esm2015/tabs/public-api.js → esm2020/tabs/public-api.mjs} +0 -0
  347. package/esm2020/tabs/tab-body.component.mjs +178 -0
  348. package/esm2020/tabs/tab-content.directive.mjs +15 -0
  349. package/esm2020/tabs/tab-group.component.mjs +350 -0
  350. package/esm2020/tabs/tab-header.component.mjs +67 -0
  351. package/esm2020/tabs/tab-label-wrapper.directive.mjs +78 -0
  352. package/esm2020/tabs/tab-label.directive.mjs +17 -0
  353. package/{esm2015/tabs/tab-nav-bar/index.js → esm2020/tabs/tab-nav-bar/index.mjs} +0 -0
  354. package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +110 -0
  355. package/esm2020/tabs/tab.component.mjs +133 -0
  356. package/{esm2015/tabs/tabs-animations.js → esm2020/tabs/tabs-animations.mjs} +0 -0
  357. package/esm2020/tabs/tabs.module.mjs +104 -0
  358. package/{esm2015/tags/index.js → esm2020/tags/index.mjs} +0 -0
  359. package/{esm2015/tags/ptsecurity-mosaic-tags.js → esm2020/tags/ptsecurity-mosaic-tags.mjs} +0 -0
  360. package/{esm2015/tags/public-api.js → esm2020/tags/public-api.mjs} +0 -0
  361. package/{esm2015/tags/tag-default-options.js → esm2020/tags/tag-default-options.mjs} +0 -0
  362. package/esm2020/tags/tag-input.mjs +229 -0
  363. package/esm2020/tags/tag-list.component.mjs +722 -0
  364. package/{esm2015/tags/tag-text-control.js → esm2020/tags/tag-text-control.mjs} +0 -0
  365. package/esm2020/tags/tag.component.mjs +377 -0
  366. package/esm2020/tags/tag.module.mjs +56 -0
  367. package/{esm2015/textarea/index.js → esm2020/textarea/index.mjs} +0 -0
  368. package/{esm2015/textarea/ptsecurity-mosaic-textarea.js → esm2020/textarea/ptsecurity-mosaic-textarea.mjs} +0 -0
  369. package/{esm2015/textarea/public-api.js → esm2020/textarea/public-api.mjs} +0 -0
  370. package/esm2020/textarea/textarea.component.mjs +268 -0
  371. package/esm2020/textarea/textarea.module.mjs +21 -0
  372. package/{esm2015/timepicker/index.js → esm2020/timepicker/index.mjs} +0 -0
  373. package/{esm2015/timepicker/ptsecurity-mosaic-timepicker.js → esm2020/timepicker/ptsecurity-mosaic-timepicker.mjs} +0 -0
  374. package/{esm2015/timepicker/public-api.js → esm2020/timepicker/public-api.mjs} +0 -0
  375. package/{esm2015/timepicker/timepicker.constants.js → esm2020/timepicker/timepicker.constants.mjs} +0 -0
  376. package/esm2020/timepicker/timepicker.directive.mjs +653 -0
  377. package/esm2020/timepicker/timepicker.module.mjs +34 -0
  378. package/{esm2015/toggle/index.js → esm2020/toggle/index.mjs} +0 -0
  379. package/{esm2015/toggle/ptsecurity-mosaic-toggle.js → esm2020/toggle/ptsecurity-mosaic-toggle.mjs} +0 -0
  380. package/{esm2015/toggle/public-api.js → esm2020/toggle/public-api.mjs} +0 -0
  381. package/esm2020/toggle/toggle.component.mjs +158 -0
  382. package/esm2020/toggle/toggle.module.mjs +20 -0
  383. package/{esm2015/tooltip/index.js → esm2020/tooltip/index.mjs} +0 -0
  384. package/{esm2015/tooltip/ptsecurity-mosaic-tooltip.js → esm2020/tooltip/ptsecurity-mosaic-tooltip.mjs} +0 -0
  385. package/{esm2015/tooltip/public-api.js → esm2020/tooltip/public-api.mjs} +0 -0
  386. package/{esm2015/tooltip/tooltip.animations.js → esm2020/tooltip/tooltip.animations.mjs} +0 -0
  387. package/esm2020/tooltip/tooltip.component.mjs +294 -0
  388. package/esm2020/tooltip/tooltip.module.mjs +43 -0
  389. package/{esm2015/tree/control/base-tree-control.js → esm2020/tree/control/base-tree-control.mjs} +0 -0
  390. package/{esm2015/tree/control/flat-tree-control.js → esm2020/tree/control/flat-tree-control.mjs} +0 -0
  391. package/{esm2015/tree/control/nested-tree-control.js → esm2020/tree/control/nested-tree-control.mjs} +0 -0
  392. package/{esm2015/tree/control/tree-control.js → esm2020/tree/control/tree-control.mjs} +0 -0
  393. package/esm2020/tree/data-source/flat-data-source.mjs +162 -0
  394. package/{esm2015/tree/data-source/nested-data-source.js → esm2020/tree/data-source/nested-data-source.mjs} +0 -0
  395. package/{esm2015/tree/index.js → esm2020/tree/index.mjs} +0 -0
  396. package/esm2020/tree/node.mjs +31 -0
  397. package/esm2020/tree/outlet.mjs +15 -0
  398. package/esm2020/tree/padding.directive.mjs +110 -0
  399. package/{esm2015/tree/ptsecurity-mosaic-tree.js → esm2020/tree/ptsecurity-mosaic-tree.mjs} +0 -0
  400. package/{esm2015/tree/public-api.js → esm2020/tree/public-api.mjs} +0 -0
  401. package/esm2020/tree/toggle.mjs +80 -0
  402. package/esm2020/tree/tree-base.mjs +243 -0
  403. package/{esm2015/tree/tree-errors.js → esm2020/tree/tree-errors.mjs} +0 -0
  404. package/esm2020/tree/tree-option.component.mjs +234 -0
  405. package/esm2020/tree/tree-selection.component.mjs +533 -0
  406. package/esm2020/tree/tree.mjs +15 -0
  407. package/esm2020/tree/tree.module.mjs +53 -0
  408. package/{esm2015/tree-select/index.js → esm2020/tree-select/index.mjs} +0 -0
  409. package/{esm2015/tree-select/ptsecurity-mosaic-tree-select.js → esm2020/tree-select/ptsecurity-mosaic-tree-select.mjs} +0 -0
  410. package/{esm2015/tree-select/public-api.js → esm2020/tree-select/public-api.mjs} +0 -0
  411. package/esm2020/tree-select/tree-select.component.mjs +925 -0
  412. package/esm2020/tree-select/tree-select.module.mjs +47 -0
  413. package/fesm2015/ptsecurity-mosaic-autocomplete.mjs +756 -0
  414. package/fesm2015/ptsecurity-mosaic-autocomplete.mjs.map +1 -0
  415. package/fesm2015/ptsecurity-mosaic-button-toggle.mjs +385 -0
  416. package/fesm2015/ptsecurity-mosaic-button-toggle.mjs.map +1 -0
  417. package/fesm2015/ptsecurity-mosaic-button.mjs +170 -0
  418. package/fesm2015/ptsecurity-mosaic-button.mjs.map +1 -0
  419. package/fesm2015/ptsecurity-mosaic-card.mjs +113 -0
  420. package/fesm2015/ptsecurity-mosaic-card.mjs.map +1 -0
  421. package/fesm2015/ptsecurity-mosaic-checkbox.mjs +366 -0
  422. package/fesm2015/ptsecurity-mosaic-checkbox.mjs.map +1 -0
  423. package/fesm2015/ptsecurity-mosaic-core.mjs +2704 -0
  424. package/fesm2015/ptsecurity-mosaic-core.mjs.map +1 -0
  425. package/fesm2015/ptsecurity-mosaic-datepicker.mjs +2700 -0
  426. package/fesm2015/ptsecurity-mosaic-datepicker.mjs.map +1 -0
  427. package/fesm2015/ptsecurity-mosaic-design-tokens.mjs +2925 -0
  428. package/fesm2015/ptsecurity-mosaic-design-tokens.mjs.map +1 -0
  429. package/fesm2015/ptsecurity-mosaic-divider.mjs +61 -0
  430. package/fesm2015/ptsecurity-mosaic-divider.mjs.map +1 -0
  431. package/fesm2015/ptsecurity-mosaic-dropdown.mjs +1106 -0
  432. package/fesm2015/ptsecurity-mosaic-dropdown.mjs.map +1 -0
  433. package/fesm2015/ptsecurity-mosaic-form-field.mjs +378 -0
  434. package/fesm2015/ptsecurity-mosaic-form-field.mjs.map +1 -0
  435. package/fesm2015/ptsecurity-mosaic-icon.mjs +88 -0
  436. package/fesm2015/ptsecurity-mosaic-icon.mjs.map +1 -0
  437. package/fesm2015/ptsecurity-mosaic-input.mjs +609 -0
  438. package/fesm2015/ptsecurity-mosaic-input.mjs.map +1 -0
  439. package/fesm2015/ptsecurity-mosaic-link.mjs +137 -0
  440. package/fesm2015/ptsecurity-mosaic-link.mjs.map +1 -0
  441. package/fesm2015/ptsecurity-mosaic-list.mjs +791 -0
  442. package/fesm2015/ptsecurity-mosaic-list.mjs.map +1 -0
  443. package/fesm2015/ptsecurity-mosaic-modal.mjs +864 -0
  444. package/fesm2015/ptsecurity-mosaic-modal.mjs.map +1 -0
  445. package/fesm2015/ptsecurity-mosaic-navbar.mjs +1031 -0
  446. package/fesm2015/ptsecurity-mosaic-navbar.mjs.map +1 -0
  447. package/fesm2015/ptsecurity-mosaic-popover.mjs +393 -0
  448. package/fesm2015/ptsecurity-mosaic-popover.mjs.map +1 -0
  449. package/fesm2015/ptsecurity-mosaic-progress-bar.mjs +76 -0
  450. package/fesm2015/ptsecurity-mosaic-progress-bar.mjs.map +1 -0
  451. package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs +80 -0
  452. package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs.map +1 -0
  453. package/fesm2015/ptsecurity-mosaic-radio.mjs +481 -0
  454. package/fesm2015/ptsecurity-mosaic-radio.mjs.map +1 -0
  455. package/fesm2015/ptsecurity-mosaic-select.mjs +1175 -0
  456. package/fesm2015/ptsecurity-mosaic-select.mjs.map +1 -0
  457. package/fesm2015/ptsecurity-mosaic-sidebar.mjs +202 -0
  458. package/fesm2015/ptsecurity-mosaic-sidebar.mjs.map +1 -0
  459. package/fesm2015/ptsecurity-mosaic-sidepanel.mjs +592 -0
  460. package/fesm2015/ptsecurity-mosaic-sidepanel.mjs.map +1 -0
  461. package/fesm2015/ptsecurity-mosaic-splitter.mjs +526 -0
  462. package/fesm2015/ptsecurity-mosaic-splitter.mjs.map +1 -0
  463. package/fesm2015/ptsecurity-mosaic-table.mjs +50 -0
  464. package/fesm2015/ptsecurity-mosaic-table.mjs.map +1 -0
  465. package/fesm2015/ptsecurity-mosaic-tabs.mjs +1511 -0
  466. package/fesm2015/ptsecurity-mosaic-tabs.mjs.map +1 -0
  467. package/fesm2015/ptsecurity-mosaic-tags.mjs +1377 -0
  468. package/fesm2015/ptsecurity-mosaic-tags.mjs.map +1 -0
  469. package/fesm2015/ptsecurity-mosaic-textarea.mjs +293 -0
  470. package/fesm2015/ptsecurity-mosaic-textarea.mjs.map +1 -0
  471. package/fesm2015/ptsecurity-mosaic-timepicker.mjs +715 -0
  472. package/fesm2015/ptsecurity-mosaic-timepicker.mjs.map +1 -0
  473. package/fesm2015/ptsecurity-mosaic-toggle.mjs +180 -0
  474. package/fesm2015/ptsecurity-mosaic-toggle.mjs.map +1 -0
  475. package/fesm2015/ptsecurity-mosaic-tooltip.mjs +365 -0
  476. package/fesm2015/ptsecurity-mosaic-tooltip.mjs.map +1 -0
  477. package/fesm2015/ptsecurity-mosaic-tree-select.mjs +972 -0
  478. package/fesm2015/ptsecurity-mosaic-tree-select.mjs.map +1 -0
  479. package/fesm2015/ptsecurity-mosaic-tree.mjs +1718 -0
  480. package/fesm2015/ptsecurity-mosaic-tree.mjs.map +1 -0
  481. package/fesm2015/ptsecurity-mosaic.mjs +4 -0
  482. package/fesm2015/ptsecurity-mosaic.mjs.map +1 -0
  483. package/fesm2020/ptsecurity-mosaic-autocomplete.mjs +752 -0
  484. package/fesm2020/ptsecurity-mosaic-autocomplete.mjs.map +1 -0
  485. package/fesm2020/ptsecurity-mosaic-button-toggle.mjs +383 -0
  486. package/fesm2020/ptsecurity-mosaic-button-toggle.mjs.map +1 -0
  487. package/fesm2020/ptsecurity-mosaic-button.mjs +170 -0
  488. package/fesm2020/ptsecurity-mosaic-button.mjs.map +1 -0
  489. package/fesm2020/ptsecurity-mosaic-card.mjs +113 -0
  490. package/fesm2020/ptsecurity-mosaic-card.mjs.map +1 -0
  491. package/fesm2020/ptsecurity-mosaic-checkbox.mjs +364 -0
  492. package/fesm2020/ptsecurity-mosaic-checkbox.mjs.map +1 -0
  493. package/fesm2020/ptsecurity-mosaic-core.mjs +2733 -0
  494. package/fesm2020/ptsecurity-mosaic-core.mjs.map +1 -0
  495. package/fesm2020/ptsecurity-mosaic-datepicker.mjs +2687 -0
  496. package/fesm2020/ptsecurity-mosaic-datepicker.mjs.map +1 -0
  497. package/fesm2020/ptsecurity-mosaic-design-tokens.mjs +2925 -0
  498. package/fesm2020/ptsecurity-mosaic-design-tokens.mjs.map +1 -0
  499. package/fesm2020/ptsecurity-mosaic-divider.mjs +61 -0
  500. package/fesm2020/ptsecurity-mosaic-divider.mjs.map +1 -0
  501. package/fesm2020/ptsecurity-mosaic-dropdown.mjs +1093 -0
  502. package/fesm2020/ptsecurity-mosaic-dropdown.mjs.map +1 -0
  503. package/fesm2020/ptsecurity-mosaic-form-field.mjs +377 -0
  504. package/fesm2020/ptsecurity-mosaic-form-field.mjs.map +1 -0
  505. package/fesm2020/ptsecurity-mosaic-icon.mjs +86 -0
  506. package/fesm2020/ptsecurity-mosaic-icon.mjs.map +1 -0
  507. package/fesm2020/ptsecurity-mosaic-input.mjs +605 -0
  508. package/fesm2020/ptsecurity-mosaic-input.mjs.map +1 -0
  509. package/fesm2020/ptsecurity-mosaic-link.mjs +136 -0
  510. package/fesm2020/ptsecurity-mosaic-link.mjs.map +1 -0
  511. package/fesm2020/ptsecurity-mosaic-list.mjs +784 -0
  512. package/fesm2020/ptsecurity-mosaic-list.mjs.map +1 -0
  513. package/fesm2020/ptsecurity-mosaic-modal.mjs +860 -0
  514. package/fesm2020/ptsecurity-mosaic-modal.mjs.map +1 -0
  515. package/fesm2020/ptsecurity-mosaic-navbar.mjs +1015 -0
  516. package/fesm2020/ptsecurity-mosaic-navbar.mjs.map +1 -0
  517. package/fesm2020/ptsecurity-mosaic-popover.mjs +389 -0
  518. package/fesm2020/ptsecurity-mosaic-popover.mjs.map +1 -0
  519. package/fesm2020/ptsecurity-mosaic-progress-bar.mjs +76 -0
  520. package/fesm2020/ptsecurity-mosaic-progress-bar.mjs.map +1 -0
  521. package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs +80 -0
  522. package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs.map +1 -0
  523. package/fesm2020/ptsecurity-mosaic-radio.mjs +479 -0
  524. package/fesm2020/ptsecurity-mosaic-radio.mjs.map +1 -0
  525. package/fesm2020/ptsecurity-mosaic-select.mjs +1173 -0
  526. package/fesm2020/ptsecurity-mosaic-select.mjs.map +1 -0
  527. package/fesm2020/ptsecurity-mosaic-sidebar.mjs +202 -0
  528. package/fesm2020/ptsecurity-mosaic-sidebar.mjs.map +1 -0
  529. package/fesm2020/ptsecurity-mosaic-sidepanel.mjs +589 -0
  530. package/fesm2020/ptsecurity-mosaic-sidepanel.mjs.map +1 -0
  531. package/fesm2020/ptsecurity-mosaic-splitter.mjs +526 -0
  532. package/fesm2020/ptsecurity-mosaic-splitter.mjs.map +1 -0
  533. package/fesm2020/ptsecurity-mosaic-table.mjs +50 -0
  534. package/fesm2020/ptsecurity-mosaic-table.mjs.map +1 -0
  535. package/fesm2020/ptsecurity-mosaic-tabs.mjs +1496 -0
  536. package/fesm2020/ptsecurity-mosaic-tabs.mjs.map +1 -0
  537. package/fesm2020/ptsecurity-mosaic-tags.mjs +1370 -0
  538. package/fesm2020/ptsecurity-mosaic-tags.mjs.map +1 -0
  539. package/fesm2020/ptsecurity-mosaic-textarea.mjs +291 -0
  540. package/fesm2020/ptsecurity-mosaic-textarea.mjs.map +1 -0
  541. package/fesm2020/ptsecurity-mosaic-timepicker.mjs +713 -0
  542. package/fesm2020/ptsecurity-mosaic-timepicker.mjs.map +1 -0
  543. package/fesm2020/ptsecurity-mosaic-toggle.mjs +180 -0
  544. package/fesm2020/ptsecurity-mosaic-toggle.mjs.map +1 -0
  545. package/fesm2020/ptsecurity-mosaic-tooltip.mjs +357 -0
  546. package/fesm2020/ptsecurity-mosaic-tooltip.mjs.map +1 -0
  547. package/fesm2020/ptsecurity-mosaic-tree-select.mjs +970 -0
  548. package/fesm2020/ptsecurity-mosaic-tree-select.mjs.map +1 -0
  549. package/fesm2020/ptsecurity-mosaic-tree.mjs +1705 -0
  550. package/fesm2020/ptsecurity-mosaic-tree.mjs.map +1 -0
  551. package/fesm2020/ptsecurity-mosaic.mjs +4 -0
  552. package/fesm2020/ptsecurity-mosaic.mjs.map +1 -0
  553. package/form-field/README.md +0 -0
  554. package/form-field/package.json +5 -5
  555. package/icon/README.md +0 -0
  556. package/icon/package.json +5 -5
  557. package/input/package.json +5 -5
  558. package/link/README.md +0 -0
  559. package/link/package.json +5 -5
  560. package/list/README.md +0 -0
  561. package/list/package.json +5 -5
  562. package/modal/README.md +34 -0
  563. package/modal/modal-control.service.d.ts +1 -0
  564. package/modal/package.json +5 -5
  565. package/navbar/README.md +41 -0
  566. package/navbar/navbar-item.component.d.ts +123 -34
  567. package/navbar/navbar.component.d.ts +37 -9
  568. package/navbar/navbar.module.d.ts +2 -1
  569. package/navbar/package.json +5 -5
  570. package/navbar/vertical-navbar.component.d.ts +15 -26
  571. package/package.json +299 -14
  572. package/popover/README.md +32 -0
  573. package/popover/package.json +5 -5
  574. package/prebuilt-themes/dark-theme.css +1 -1
  575. package/prebuilt-themes/default-theme.css +1 -1
  576. package/prebuilt-visual/default-visual.css +1 -1
  577. package/progress-bar/README.md +0 -0
  578. package/progress-bar/package.json +5 -5
  579. package/progress-spinner/README.md +0 -0
  580. package/progress-spinner/package.json +5 -5
  581. package/radio/package.json +5 -5
  582. package/schematics/README.md +35 -0
  583. package/schematics/ng-update/data/index.d.ts +1 -0
  584. package/schematics/ng-update/data/index.js +10 -9
  585. package/schematics/ng-update/data/index.js.map +1 -1
  586. package/schematics/ng-update/data/symbol-removal.d.ts +2 -0
  587. package/schematics/ng-update/data/symbol-removal.js +5 -0
  588. package/schematics/ng-update/data/symbol-removal.js.map +1 -0
  589. package/schematics/ng-update/index.js +3 -3
  590. package/schematics/ng-update/index.js.map +1 -1
  591. package/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.js +1 -2
  592. package/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.js.map +1 -1
  593. package/schematics/ng-update/upgrade-data.js +2 -1
  594. package/schematics/ng-update/upgrade-data.js.map +1 -1
  595. package/schematics/tsconfig.lib.json +2 -2
  596. package/select/README.md +0 -0
  597. package/select/package.json +5 -5
  598. package/sidebar/package.json +5 -5
  599. package/sidepanel/package.json +5 -5
  600. package/splitter/package.json +5 -5
  601. package/table/README.md +0 -0
  602. package/table/package.json +5 -5
  603. package/tabs/README.md +0 -0
  604. package/tabs/package.json +5 -5
  605. package/tags/README.md +0 -0
  606. package/tags/package.json +5 -5
  607. package/textarea/README.md +0 -0
  608. package/textarea/package.json +5 -5
  609. package/timepicker/README.md +0 -0
  610. package/timepicker/package.json +5 -5
  611. package/toggle/package.json +5 -5
  612. package/tooltip/package.json +5 -5
  613. package/tree/data-source/flat-data-source.d.ts +2 -2
  614. package/tree/package.json +5 -5
  615. package/tree/tree-option.component.d.ts +5 -3
  616. package/tree/tree-selection.component.d.ts +1 -0
  617. package/tree-select/README.md +0 -0
  618. package/tree-select/package.json +5 -5
  619. package/tree-select/tree-select.component.d.ts +9 -1
  620. package/tree-select/tree-select.module.d.ts +2 -1
  621. package/bundles/ptsecurity-mosaic-autocomplete.umd.js +0 -1160
  622. package/bundles/ptsecurity-mosaic-autocomplete.umd.js.map +0 -1
  623. package/bundles/ptsecurity-mosaic-button-toggle.umd.js +0 -755
  624. package/bundles/ptsecurity-mosaic-button-toggle.umd.js.map +0 -1
  625. package/bundles/ptsecurity-mosaic-button.umd.js +0 -533
  626. package/bundles/ptsecurity-mosaic-button.umd.js.map +0 -1
  627. package/bundles/ptsecurity-mosaic-card.umd.js +0 -479
  628. package/bundles/ptsecurity-mosaic-card.umd.js.map +0 -1
  629. package/bundles/ptsecurity-mosaic-checkbox.umd.js +0 -762
  630. package/bundles/ptsecurity-mosaic-checkbox.umd.js.map +0 -1
  631. package/bundles/ptsecurity-mosaic-core.umd.js +0 -2841
  632. package/bundles/ptsecurity-mosaic-core.umd.js.map +0 -1
  633. package/bundles/ptsecurity-mosaic-datepicker.umd.js +0 -3362
  634. package/bundles/ptsecurity-mosaic-datepicker.umd.js.map +0 -1
  635. package/bundles/ptsecurity-mosaic-design-tokens.umd.js +0 -1871
  636. package/bundles/ptsecurity-mosaic-design-tokens.umd.js.map +0 -1
  637. package/bundles/ptsecurity-mosaic-divider.umd.js +0 -106
  638. package/bundles/ptsecurity-mosaic-divider.umd.js.map +0 -1
  639. package/bundles/ptsecurity-mosaic-dropdown.umd.js +0 -1532
  640. package/bundles/ptsecurity-mosaic-dropdown.umd.js.map +0 -1
  641. package/bundles/ptsecurity-mosaic-form-field.umd.js +0 -788
  642. package/bundles/ptsecurity-mosaic-form-field.umd.js.map +0 -1
  643. package/bundles/ptsecurity-mosaic-icon.umd.js +0 -450
  644. package/bundles/ptsecurity-mosaic-icon.umd.js.map +0 -1
  645. package/bundles/ptsecurity-mosaic-input.umd.js +0 -1008
  646. package/bundles/ptsecurity-mosaic-input.umd.js.map +0 -1
  647. package/bundles/ptsecurity-mosaic-link.umd.js +0 -515
  648. package/bundles/ptsecurity-mosaic-link.umd.js.map +0 -1
  649. package/bundles/ptsecurity-mosaic-list.umd.js +0 -1251
  650. package/bundles/ptsecurity-mosaic-list.umd.js.map +0 -1
  651. package/bundles/ptsecurity-mosaic-modal.umd.js +0 -1312
  652. package/bundles/ptsecurity-mosaic-modal.umd.js.map +0 -1
  653. package/bundles/ptsecurity-mosaic-navbar.umd.js +0 -930
  654. package/bundles/ptsecurity-mosaic-navbar.umd.js.map +0 -1
  655. package/bundles/ptsecurity-mosaic-popover.umd.js +0 -836
  656. package/bundles/ptsecurity-mosaic-popover.umd.js.map +0 -1
  657. package/bundles/ptsecurity-mosaic-progress-bar.umd.js +0 -440
  658. package/bundles/ptsecurity-mosaic-progress-bar.umd.js.map +0 -1
  659. package/bundles/ptsecurity-mosaic-progress-spinner.umd.js +0 -448
  660. package/bundles/ptsecurity-mosaic-progress-spinner.umd.js.map +0 -1
  661. package/bundles/ptsecurity-mosaic-radio.umd.js +0 -901
  662. package/bundles/ptsecurity-mosaic-radio.umd.js.map +0 -1
  663. package/bundles/ptsecurity-mosaic-select.umd.js +0 -1606
  664. package/bundles/ptsecurity-mosaic-select.umd.js.map +0 -1
  665. package/bundles/ptsecurity-mosaic-sidebar.umd.js +0 -254
  666. package/bundles/ptsecurity-mosaic-sidebar.umd.js.map +0 -1
  667. package/bundles/ptsecurity-mosaic-sidepanel.umd.js +0 -954
  668. package/bundles/ptsecurity-mosaic-sidepanel.umd.js.map +0 -1
  669. package/bundles/ptsecurity-mosaic-splitter.umd.js +0 -635
  670. package/bundles/ptsecurity-mosaic-splitter.umd.js.map +0 -1
  671. package/bundles/ptsecurity-mosaic-table.umd.js +0 -81
  672. package/bundles/ptsecurity-mosaic-table.umd.js.map +0 -1
  673. package/bundles/ptsecurity-mosaic-tabs.umd.js +0 -2013
  674. package/bundles/ptsecurity-mosaic-tabs.umd.js.map +0 -1
  675. package/bundles/ptsecurity-mosaic-tags.umd.js +0 -1917
  676. package/bundles/ptsecurity-mosaic-tags.umd.js.map +0 -1
  677. package/bundles/ptsecurity-mosaic-textarea.umd.js +0 -664
  678. package/bundles/ptsecurity-mosaic-textarea.umd.js.map +0 -1
  679. package/bundles/ptsecurity-mosaic-timepicker.umd.js +0 -821
  680. package/bundles/ptsecurity-mosaic-timepicker.umd.js.map +0 -1
  681. package/bundles/ptsecurity-mosaic-toggle.umd.js +0 -557
  682. package/bundles/ptsecurity-mosaic-toggle.umd.js.map +0 -1
  683. package/bundles/ptsecurity-mosaic-tooltip.umd.js +0 -777
  684. package/bundles/ptsecurity-mosaic-tooltip.umd.js.map +0 -1
  685. package/bundles/ptsecurity-mosaic-tree-select.umd.js +0 -1369
  686. package/bundles/ptsecurity-mosaic-tree-select.umd.js.map +0 -1
  687. package/bundles/ptsecurity-mosaic-tree.umd.js +0 -2301
  688. package/bundles/ptsecurity-mosaic-tree.umd.js.map +0 -1
  689. package/bundles/ptsecurity-mosaic.umd.js +0 -11
  690. package/bundles/ptsecurity-mosaic.umd.js.map +0 -1
  691. package/design-tokens/tokens/components/checkbox.json5 +0 -39
  692. package/design-tokens/tokens/components/modal.json5 +0 -67
  693. package/design-tokens/tokens/components/navbar.json5 +0 -64
  694. package/design-tokens/tokens/components/radio.json5 +0 -45
  695. package/design-tokens/tokens/components/tags.json5 +0 -126
  696. package/design-tokens/tokens/components/toggle.json5 +0 -55
  697. package/design-tokens/tokens.d.ts +0 -7636
  698. package/esm2015/autocomplete/autocomplete-origin.directive.js +0 -21
  699. package/esm2015/autocomplete/autocomplete-trigger.directive.js +0 -555
  700. package/esm2015/autocomplete/autocomplete.component.js +0 -163
  701. package/esm2015/autocomplete/autocomplete.module.js +0 -34
  702. package/esm2015/button/button.component.js +0 -129
  703. package/esm2015/button/button.module.js +0 -42
  704. package/esm2015/button-toggle/button-toggle.component.js +0 -370
  705. package/esm2015/button-toggle/button-toggle.module.js +0 -19
  706. package/esm2015/card/card.component.js +0 -88
  707. package/esm2015/card/card.module.js +0 -30
  708. package/esm2015/checkbox/checkbox-module.js +0 -19
  709. package/esm2015/checkbox/checkbox-required-validator.js +0 -27
  710. package/esm2015/checkbox/checkbox.js +0 -325
  711. package/esm2015/core/common-behaviors/common-module.js +0 -83
  712. package/esm2015/core/error/error-options.js +0 -26
  713. package/esm2015/core/formatters/date/formatter.js +0 -288
  714. package/esm2015/core/formatters/date/templates/en-US.js +0 -280
  715. package/esm2015/core/formatters/date/templates/ru-RU.js +0 -280
  716. package/esm2015/core/formatters/index.js +0 -20
  717. package/esm2015/core/formatters/number/formatter.js +0 -99
  718. package/esm2015/core/forms/forms-module.js +0 -24
  719. package/esm2015/core/forms/forms.directive.js +0 -66
  720. package/esm2015/core/highlight/highlight.pipe.js +0 -17
  721. package/esm2015/core/highlight/index.js +0 -19
  722. package/esm2015/core/line/line.js +0 -70
  723. package/esm2015/core/option/action.js +0 -131
  724. package/esm2015/core/option/optgroup.js +0 -40
  725. package/esm2015/core/option/option-module.js +0 -21
  726. package/esm2015/core/option/option.js +0 -262
  727. package/esm2015/core/pop-up/pop-up-trigger.js +0 -239
  728. package/esm2015/core/pop-up/pop-up.js +0 -87
  729. package/esm2015/core/public-api.js +0 -17
  730. package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.js +0 -45
  731. package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.module.js +0 -18
  732. package/esm2015/core/services/measure-scrollbar.service.js +0 -48
  733. package/esm2015/datepicker/calendar-body.component.js +0 -114
  734. package/esm2015/datepicker/calendar.component.js +0 -377
  735. package/esm2015/datepicker/datepicker-input.directive.js +0 -892
  736. package/esm2015/datepicker/datepicker-intl.js +0 -40
  737. package/esm2015/datepicker/datepicker-module.js +0 -107
  738. package/esm2015/datepicker/datepicker-toggle.component.js +0 -94
  739. package/esm2015/datepicker/datepicker.component.js +0 -418
  740. package/esm2015/datepicker/month-view.component.js +0 -263
  741. package/esm2015/datepicker/multi-year-view.component.js +0 -224
  742. package/esm2015/datepicker/year-view.component.js +0 -259
  743. package/esm2015/design-tokens/public-api.js +0 -2
  744. package/esm2015/design-tokens/tokens.js +0 -930
  745. package/esm2015/divider/divider.component.js +0 -46
  746. package/esm2015/divider/divider.module.js +0 -18
  747. package/esm2015/dropdown/dropdown-content.directive.js +0 -66
  748. package/esm2015/dropdown/dropdown-item.component.js +0 -149
  749. package/esm2015/dropdown/dropdown-trigger.directive.js +0 -486
  750. package/esm2015/dropdown/dropdown.component.js +0 -302
  751. package/esm2015/dropdown/dropdown.module.js +0 -50
  752. package/esm2015/form-field/cleaner.js +0 -23
  753. package/esm2015/form-field/form-field.js +0 -224
  754. package/esm2015/form-field/form-field.module.js +0 -52
  755. package/esm2015/form-field/hint.js +0 -23
  756. package/esm2015/form-field/prefix.js +0 -13
  757. package/esm2015/form-field/stepper.js +0 -55
  758. package/esm2015/form-field/suffix.js +0 -13
  759. package/esm2015/icon/icon.component.js +0 -51
  760. package/esm2015/icon/icon.module.js +0 -38
  761. package/esm2015/input/input-number-validators.js +0 -92
  762. package/esm2015/input/input-number.js +0 -163
  763. package/esm2015/input/input.js +0 -333
  764. package/esm2015/input/input.module.js +0 -23
  765. package/esm2015/link/link.component.js +0 -108
  766. package/esm2015/link/link.module.js +0 -26
  767. package/esm2015/list/list-selection.component.js +0 -711
  768. package/esm2015/list/list.component.js +0 -58
  769. package/esm2015/list/list.module.js +0 -55
  770. package/esm2015/modal/css-unit.pipe.js +0 -17
  771. package/esm2015/modal/modal-control.service.js +0 -63
  772. package/esm2015/modal/modal.component.js +0 -508
  773. package/esm2015/modal/modal.directive.js +0 -52
  774. package/esm2015/modal/modal.module.js +0 -72
  775. package/esm2015/modal/modal.service.js +0 -124
  776. package/esm2015/navbar/navbar-item.component.js +0 -209
  777. package/esm2015/navbar/navbar.component.js +0 -118
  778. package/esm2015/navbar/navbar.module.js +0 -76
  779. package/esm2015/navbar/vertical-navbar.animation.js +0 -10
  780. package/esm2015/navbar/vertical-navbar.component.js +0 -140
  781. package/esm2015/popover/popover-confirm.component.js +0 -116
  782. package/esm2015/popover/popover.component.js +0 -262
  783. package/esm2015/popover/popover.module.js +0 -24
  784. package/esm2015/progress-bar/progress-bar.component.js +0 -50
  785. package/esm2015/progress-bar/progress-bar.module.js +0 -30
  786. package/esm2015/progress-spinner/progress-spinner.component.js +0 -54
  787. package/esm2015/progress-spinner/progress-spinner.module.js +0 -30
  788. package/esm2015/radio/radio.component.js +0 -467
  789. package/esm2015/radio/radio.module.js +0 -20
  790. package/esm2015/select/select.component.js +0 -1122
  791. package/esm2015/select/select.module.js +0 -64
  792. package/esm2015/sidebar/sidebar.component.js +0 -155
  793. package/esm2015/sidebar/sidebar.module.js +0 -30
  794. package/esm2015/sidepanel/sidepanel-container.component.js +0 -114
  795. package/esm2015/sidepanel/sidepanel-directives.js +0 -159
  796. package/esm2015/sidepanel/sidepanel.module.js +0 -74
  797. package/esm2015/sidepanel/sidepanel.service.js +0 -164
  798. package/esm2015/splitter/splitter.component.js +0 -489
  799. package/esm2015/splitter/splitter.module.js +0 -40
  800. package/esm2015/table/table.component.js +0 -16
  801. package/esm2015/table/table.module.js +0 -30
  802. package/esm2015/tabs/paginated-tab-header.js +0 -482
  803. package/esm2015/tabs/tab-body.component.js +0 -186
  804. package/esm2015/tabs/tab-content.directive.js +0 -15
  805. package/esm2015/tabs/tab-group.component.js +0 -359
  806. package/esm2015/tabs/tab-header.component.js +0 -76
  807. package/esm2015/tabs/tab-label-wrapper.directive.js +0 -78
  808. package/esm2015/tabs/tab-label.directive.js +0 -17
  809. package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +0 -118
  810. package/esm2015/tabs/tab.component.js +0 -133
  811. package/esm2015/tabs/tabs.module.js +0 -104
  812. package/esm2015/tags/tag-input.js +0 -229
  813. package/esm2015/tags/tag-list.component.js +0 -732
  814. package/esm2015/tags/tag.component.js +0 -386
  815. package/esm2015/tags/tag.module.js +0 -56
  816. package/esm2015/textarea/textarea.component.js +0 -268
  817. package/esm2015/textarea/textarea.module.js +0 -21
  818. package/esm2015/timepicker/timepicker.directive.js +0 -653
  819. package/esm2015/timepicker/timepicker.module.js +0 -34
  820. package/esm2015/toggle/toggle.component.js +0 -169
  821. package/esm2015/toggle/toggle.module.js +0 -20
  822. package/esm2015/tooltip/tooltip.component.js +0 -299
  823. package/esm2015/tooltip/tooltip.module.js +0 -43
  824. package/esm2015/tree/data-source/flat-data-source.js +0 -162
  825. package/esm2015/tree/node.js +0 -31
  826. package/esm2015/tree/outlet.js +0 -15
  827. package/esm2015/tree/padding.directive.js +0 -111
  828. package/esm2015/tree/toggle.js +0 -89
  829. package/esm2015/tree/tree-base.js +0 -243
  830. package/esm2015/tree/tree-option.component.js +0 -238
  831. package/esm2015/tree/tree-selection.component.js +0 -541
  832. package/esm2015/tree/tree.js +0 -23
  833. package/esm2015/tree/tree.module.js +0 -53
  834. package/esm2015/tree-select/tree-select.component.js +0 -901
  835. package/esm2015/tree-select/tree-select.module.js +0 -43
  836. package/fesm2015/ptsecurity-mosaic-autocomplete.js +0 -761
  837. package/fesm2015/ptsecurity-mosaic-autocomplete.js.map +0 -1
  838. package/fesm2015/ptsecurity-mosaic-button-toggle.js +0 -391
  839. package/fesm2015/ptsecurity-mosaic-button-toggle.js.map +0 -1
  840. package/fesm2015/ptsecurity-mosaic-button.js +0 -174
  841. package/fesm2015/ptsecurity-mosaic-button.js.map +0 -1
  842. package/fesm2015/ptsecurity-mosaic-card.js +0 -121
  843. package/fesm2015/ptsecurity-mosaic-card.js.map +0 -1
  844. package/fesm2015/ptsecurity-mosaic-checkbox.js +0 -374
  845. package/fesm2015/ptsecurity-mosaic-checkbox.js.map +0 -1
  846. package/fesm2015/ptsecurity-mosaic-core.js +0 -2680
  847. package/fesm2015/ptsecurity-mosaic-core.js.map +0 -1
  848. package/fesm2015/ptsecurity-mosaic-datepicker.js +0 -2738
  849. package/fesm2015/ptsecurity-mosaic-datepicker.js.map +0 -1
  850. package/fesm2015/ptsecurity-mosaic-design-tokens.js +0 -936
  851. package/fesm2015/ptsecurity-mosaic-design-tokens.js.map +0 -1
  852. package/fesm2015/ptsecurity-mosaic-divider.js +0 -68
  853. package/fesm2015/ptsecurity-mosaic-divider.js.map +0 -1
  854. package/fesm2015/ptsecurity-mosaic-dropdown.js +0 -1116
  855. package/fesm2015/ptsecurity-mosaic-dropdown.js.map +0 -1
  856. package/fesm2015/ptsecurity-mosaic-form-field.js +0 -396
  857. package/fesm2015/ptsecurity-mosaic-form-field.js.map +0 -1
  858. package/fesm2015/ptsecurity-mosaic-icon.js +0 -93
  859. package/fesm2015/ptsecurity-mosaic-icon.js.map +0 -1
  860. package/fesm2015/ptsecurity-mosaic-input.js +0 -605
  861. package/fesm2015/ptsecurity-mosaic-input.js.map +0 -1
  862. package/fesm2015/ptsecurity-mosaic-link.js +0 -137
  863. package/fesm2015/ptsecurity-mosaic-link.js.map +0 -1
  864. package/fesm2015/ptsecurity-mosaic-list.js +0 -822
  865. package/fesm2015/ptsecurity-mosaic-list.js.map +0 -1
  866. package/fesm2015/ptsecurity-mosaic-modal.js +0 -845
  867. package/fesm2015/ptsecurity-mosaic-modal.js.map +0 -1
  868. package/fesm2015/ptsecurity-mosaic-navbar.js +0 -539
  869. package/fesm2015/ptsecurity-mosaic-navbar.js.map +0 -1
  870. package/fesm2015/ptsecurity-mosaic-popover.js +0 -406
  871. package/fesm2015/ptsecurity-mosaic-popover.js.map +0 -1
  872. package/fesm2015/ptsecurity-mosaic-progress-bar.js +0 -84
  873. package/fesm2015/ptsecurity-mosaic-progress-bar.js.map +0 -1
  874. package/fesm2015/ptsecurity-mosaic-progress-spinner.js +0 -88
  875. package/fesm2015/ptsecurity-mosaic-progress-spinner.js.map +0 -1
  876. package/fesm2015/ptsecurity-mosaic-radio.js +0 -488
  877. package/fesm2015/ptsecurity-mosaic-radio.js.map +0 -1
  878. package/fesm2015/ptsecurity-mosaic-select.js +0 -1185
  879. package/fesm2015/ptsecurity-mosaic-select.js.map +0 -1
  880. package/fesm2015/ptsecurity-mosaic-sidebar.js +0 -211
  881. package/fesm2015/ptsecurity-mosaic-sidebar.js.map +0 -1
  882. package/fesm2015/ptsecurity-mosaic-sidepanel.js +0 -594
  883. package/fesm2015/ptsecurity-mosaic-sidepanel.js.map +0 -1
  884. package/fesm2015/ptsecurity-mosaic-splitter.js +0 -533
  885. package/fesm2015/ptsecurity-mosaic-splitter.js.map +0 -1
  886. package/fesm2015/ptsecurity-mosaic-table.js +0 -50
  887. package/fesm2015/ptsecurity-mosaic-table.js.map +0 -1
  888. package/fesm2015/ptsecurity-mosaic-tabs.js +0 -1533
  889. package/fesm2015/ptsecurity-mosaic-tabs.js.map +0 -1
  890. package/fesm2015/ptsecurity-mosaic-tags.js +0 -1389
  891. package/fesm2015/ptsecurity-mosaic-tags.js.map +0 -1
  892. package/fesm2015/ptsecurity-mosaic-textarea.js +0 -291
  893. package/fesm2015/ptsecurity-mosaic-textarea.js.map +0 -1
  894. package/fesm2015/ptsecurity-mosaic-timepicker.js +0 -713
  895. package/fesm2015/ptsecurity-mosaic-timepicker.js.map +0 -1
  896. package/fesm2015/ptsecurity-mosaic-toggle.js +0 -191
  897. package/fesm2015/ptsecurity-mosaic-toggle.js.map +0 -1
  898. package/fesm2015/ptsecurity-mosaic-tooltip.js +0 -362
  899. package/fesm2015/ptsecurity-mosaic-tooltip.js.map +0 -1
  900. package/fesm2015/ptsecurity-mosaic-tree-select.js +0 -943
  901. package/fesm2015/ptsecurity-mosaic-tree-select.js.map +0 -1
  902. package/fesm2015/ptsecurity-mosaic-tree.js +0 -1735
  903. package/fesm2015/ptsecurity-mosaic-tree.js.map +0 -1
  904. package/fesm2015/ptsecurity-mosaic.js +0 -4
  905. package/fesm2015/ptsecurity-mosaic.js.map +0 -1
@@ -0,0 +1,1370 @@
1
+ import { PlatformModule } from '@angular/cdk/platform';
2
+ import * as i4 from '@angular/common';
3
+ import { CommonModule } from '@angular/common';
4
+ import * as i0 from '@angular/core';
5
+ import { InjectionToken, Directive, forwardRef, Inject, EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, ContentChildren, ContentChild, Output, Input, Optional, Self, NgModule } from '@angular/core';
6
+ import { SPACE, BACKSPACE, DELETE, HOME, END, ENTER, TAB, COMMA, hasModifierKey } from '@ptsecurity/cdk/keycodes';
7
+ import { coerceBooleanProperty } from '@angular/cdk/coercion';
8
+ import * as i3 from '@angular/forms';
9
+ import { NG_VALIDATORS } from '@angular/forms';
10
+ import * as i2 from '@angular/cdk/bidi';
11
+ import { SelectionModel } from '@angular/cdk/collections';
12
+ import { FocusKeyManager } from '@ptsecurity/cdk/a11y';
13
+ import * as i1 from '@ptsecurity/mosaic/core';
14
+ import { mixinColor, mixinDisabled, mixinErrorState, setMosaicValidation, MC_VALIDATION } from '@ptsecurity/mosaic/core';
15
+ import { McFormFieldControl } from '@ptsecurity/mosaic/form-field';
16
+ import { Subject, merge } from 'rxjs';
17
+ import { take, takeUntil, startWith } from 'rxjs/operators';
18
+ import { McIcon } from '@ptsecurity/mosaic/icon';
19
+
20
+ /** Injection token to be used to override the default options for the chips module. */
21
+ const MC_TAGS_DEFAULT_OPTIONS = new InjectionToken('mc-tags-default-options');
22
+
23
+ /** Event object emitted by McTag when selected or deselected. */
24
+ class McTagSelectionChange {
25
+ constructor(source, selected, isUserInput = false) {
26
+ this.source = source;
27
+ this.selected = selected;
28
+ this.isUserInput = isUserInput;
29
+ }
30
+ }
31
+ const TAG_ATTRIBUTE_NAMES = ['mc-basic-tag'];
32
+ /**
33
+ * Dummy directive to add CSS class to tag avatar.
34
+ * @docs-private
35
+ */
36
+ class McTagAvatar {
37
+ }
38
+ /** @nocollapse */ /** @nocollapse */ McTagAvatar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McTagAvatar, deps: [], target: i0.ɵɵFactoryTarget.Directive });
39
+ /** @nocollapse */ /** @nocollapse */ McTagAvatar.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", type: McTagAvatar, selector: "mc-tag-avatar, [mcTagAvatar]", host: { classAttribute: "mc-tag-avatar" }, ngImport: i0 });
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McTagAvatar, decorators: [{
41
+ type: Directive,
42
+ args: [{
43
+ selector: 'mc-tag-avatar, [mcTagAvatar]',
44
+ host: { class: 'mc-tag-avatar' }
45
+ }]
46
+ }] });
47
+ /**
48
+ * Dummy directive to add CSS class to tag trailing icon.
49
+ * @docs-private
50
+ */
51
+ class McTagTrailingIcon {
52
+ }
53
+ /** @nocollapse */ /** @nocollapse */ McTagTrailingIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McTagTrailingIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
54
+ /** @nocollapse */ /** @nocollapse */ McTagTrailingIcon.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.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.3.0", ngImport: i0, type: McTagTrailingIcon, decorators: [{
56
+ type: Directive,
57
+ args: [{
58
+ selector: 'mc-tag-trailing-icon, [mcTagTrailingIcon]',
59
+ host: { class: 'mc-tag-trailing-icon' }
60
+ }]
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.3.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.3.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.3.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
+ }] }]; } });
111
+ class McTagBase {
112
+ // tslint:disable-next-line:naming-convention
113
+ constructor(_elementRef) {
114
+ this._elementRef = _elementRef;
115
+ }
116
+ }
117
+ // tslint:disable-next-line:naming-convention
118
+ const McTagMixinBase = mixinColor(mixinDisabled(McTagBase));
119
+ class McTag extends McTagMixinBase {
120
+ constructor(elementRef, changeDetectorRef, _ngZone) {
121
+ super(elementRef);
122
+ this.elementRef = elementRef;
123
+ this.changeDetectorRef = changeDetectorRef;
124
+ this._ngZone = _ngZone;
125
+ /** Emits when the tag is focused. */
126
+ this.onFocus = new Subject();
127
+ /** Emits when the tag is blured. */
128
+ this.onBlur = new Subject();
129
+ /** Whether the tag has focus. */
130
+ this.hasFocus = false;
131
+ /** Whether the tag list is selectable */
132
+ this.tagListSelectable = true;
133
+ /** Emitted when the tag is selected or deselected. */
134
+ this.selectionChange = new EventEmitter();
135
+ /** Emitted when the tag is destroyed. */
136
+ this.destroyed = new EventEmitter();
137
+ /** Emitted when a tag is to be removed. */
138
+ this.removed = new EventEmitter();
139
+ this._selected = false;
140
+ this._selectable = true;
141
+ this._removable = true;
142
+ this._disabled = false;
143
+ this.addHostClassName();
144
+ this.nativeElement = elementRef.nativeElement;
145
+ }
146
+ /** Whether the tag is selected. */
147
+ get selected() {
148
+ return this._selected;
149
+ }
150
+ set selected(value) {
151
+ const coercedValue = coerceBooleanProperty(value);
152
+ if (coercedValue !== this._selected) {
153
+ this._selected = coercedValue;
154
+ this.dispatchSelectionChange();
155
+ }
156
+ }
157
+ /** The value of the tag. Defaults to the content inside `<mc-tag>` tags. */
158
+ get value() {
159
+ return this._value !== undefined
160
+ ? this._value
161
+ : this.elementRef.nativeElement.textContent;
162
+ }
163
+ set value(value) {
164
+ this._value = value;
165
+ }
166
+ /**
167
+ * Whether or not the tag is selectable. When a tag is not selectable,
168
+ * changes to its selected state are always ignored. By default a tag is
169
+ * selectable, and it becomes non-selectable if its parent tag list is
170
+ * not selectable.
171
+ */
172
+ get selectable() {
173
+ return this._selectable && this.tagListSelectable;
174
+ }
175
+ set selectable(value) {
176
+ this._selectable = coerceBooleanProperty(value);
177
+ }
178
+ /**
179
+ * Determines whether or not the tag displays the remove styling and emits (removed) events.
180
+ */
181
+ get removable() {
182
+ return this._removable;
183
+ }
184
+ set removable(value) {
185
+ this._removable = coerceBooleanProperty(value);
186
+ }
187
+ get tabindex() {
188
+ if (!this.selectable) {
189
+ return null;
190
+ }
191
+ return this.disabled ? null : -1;
192
+ }
193
+ get disabled() {
194
+ return this._disabled;
195
+ }
196
+ set disabled(value) {
197
+ if (value !== this.disabled) {
198
+ this._disabled = value;
199
+ }
200
+ }
201
+ ngAfterContentInit() {
202
+ this.addClassModificatorForIcons();
203
+ }
204
+ addClassModificatorForIcons() {
205
+ const icons = this.contentChildren.map((item) => item._elementRef.nativeElement);
206
+ if (icons.length === 1) {
207
+ const iconElement = icons[0];
208
+ if (!iconElement.previousElementSibling && !iconElement.nextElementSibling) {
209
+ if (iconElement.nextSibling) {
210
+ iconElement.classList.add('mc-icon_left');
211
+ this.nativeElement.classList.add('mc-left-icon');
212
+ }
213
+ if (iconElement.previousSibling) {
214
+ iconElement.classList.add('mc-icon_right');
215
+ this.nativeElement.classList.add('mc-right-icon');
216
+ }
217
+ }
218
+ }
219
+ else if (icons.length > 1) {
220
+ const firstIconElement = icons[0];
221
+ const secondIconElement = icons[1];
222
+ firstIconElement.classList.add('mc-icon_left');
223
+ secondIconElement.classList.add('mc-icon_right');
224
+ }
225
+ }
226
+ addHostClassName() {
227
+ // Add class for the different tags
228
+ for (const attr of TAG_ATTRIBUTE_NAMES) {
229
+ if (this.elementRef.nativeElement.hasAttribute(attr) ||
230
+ this.elementRef.nativeElement.tagName.toLowerCase() === attr) {
231
+ this.elementRef.nativeElement.classList.add(attr);
232
+ return;
233
+ }
234
+ }
235
+ this.elementRef.nativeElement.classList.add('mc-standard-tag');
236
+ }
237
+ ngOnDestroy() {
238
+ this.destroyed.emit({ tag: this });
239
+ }
240
+ select() {
241
+ if (!this._selected) {
242
+ this._selected = true;
243
+ this.dispatchSelectionChange();
244
+ }
245
+ }
246
+ deselect() {
247
+ if (this._selected) {
248
+ this._selected = false;
249
+ this.dispatchSelectionChange();
250
+ }
251
+ }
252
+ selectViaInteraction() {
253
+ if (!this._selected) {
254
+ this._selected = true;
255
+ this.dispatchSelectionChange(true);
256
+ }
257
+ }
258
+ toggleSelected(isUserInput = false) {
259
+ this._selected = !this.selected;
260
+ this.dispatchSelectionChange(isUserInput);
261
+ return this.selected;
262
+ }
263
+ /** Allows for programmatic focusing of the tag. */
264
+ focus() {
265
+ if (!this.selectable) {
266
+ return;
267
+ }
268
+ if (!this.hasFocus) {
269
+ this.elementRef.nativeElement.focus();
270
+ this.onFocus.next({ tag: this });
271
+ Promise.resolve().then(() => {
272
+ this.hasFocus = true;
273
+ this.changeDetectorRef.markForCheck();
274
+ });
275
+ }
276
+ }
277
+ /**
278
+ * Allows for programmatic removal of the tag. Called by the McTagList when the DELETE or
279
+ * BACKSPACE keys are pressed.
280
+ *
281
+ * Informs any listeners of the removal request. Does not remove the tag from the DOM.
282
+ */
283
+ remove() {
284
+ if (this.removable) {
285
+ this.removed.emit({ tag: this });
286
+ }
287
+ }
288
+ handleClick(event) {
289
+ if (this.disabled) {
290
+ event.preventDefault();
291
+ }
292
+ else {
293
+ event.stopPropagation();
294
+ }
295
+ }
296
+ handleKeydown(event) {
297
+ if (this.disabled) {
298
+ return;
299
+ }
300
+ // tslint:disable-next-line: deprecation
301
+ switch (event.keyCode) {
302
+ case DELETE:
303
+ case BACKSPACE:
304
+ // If we are removable, remove the focused tag
305
+ this.remove();
306
+ // Always prevent so page navigation does not occur
307
+ event.preventDefault();
308
+ break;
309
+ case SPACE:
310
+ // If we are selectable, toggle the focused tag
311
+ if (this.selectable) {
312
+ this.toggleSelected(true);
313
+ }
314
+ // Always prevent space from scrolling the page since the list has focus
315
+ event.preventDefault();
316
+ break;
317
+ default:
318
+ }
319
+ }
320
+ blur() {
321
+ // When animations are enabled, Angular may end up removing the tag from the DOM a little
322
+ // earlier than usual, causing it to be blurred and throwing off the logic in the tag list
323
+ // that moves focus not the next item. To work around the issue, we defer marking the tag
324
+ // as not focused until the next time the zone stabilizes.
325
+ this._ngZone.onStable
326
+ .asObservable()
327
+ .pipe(take(1))
328
+ .subscribe(() => {
329
+ this._ngZone.run(() => {
330
+ this.hasFocus = false;
331
+ this.onBlur.next({ tag: this });
332
+ });
333
+ });
334
+ }
335
+ dispatchSelectionChange(isUserInput = false) {
336
+ this.selectionChange.emit({
337
+ source: this,
338
+ isUserInput,
339
+ selected: this._selected
340
+ });
341
+ }
342
+ }
343
+ /** @nocollapse */ /** @nocollapse */ McTag.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.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.3.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:var(--mc-tags-size-margin, 2px);height:var(--mc-tags-size-height, 24px);border-width:var(--mc-tags-size-border-width, 1px);border-style:solid;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:var(--mc-tags-size-icon-padding, 3px)}.mc-tag.mc-right-icon{padding-right:var(--mc-tags-size-icon-padding, 3px)}.mc-tag .mc-tag__text{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: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:var(--mc-tags-size-height, 24px);height:var(--mc-tags-size-height, 24px)}.mc-tag__wrapper .mc-icon_left{margin-right:var(--mc-tags-size-icon-padding, 3px)}.mc-tag__wrapper .mc-icon_right{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.3.0", ngImport: i0, type: McTag, decorators: [{
346
+ type: Component,
347
+ args: [{ selector: 'mc-tag, [mc-tag], mc-basic-tag, [mc-basic-tag]', exportAs: 'mcTag', inputs: ['color'], host: {
348
+ class: 'mc-tag',
349
+ '[attr.tabindex]': 'tabindex',
350
+ '[attr.disabled]': 'disabled || null',
351
+ '[class.mc-selected]': 'selected',
352
+ '[class.mc-focused]': 'hasFocus',
353
+ '[class.mc-tag-with-avatar]': 'avatar',
354
+ '[class.mc-tag-with-icon]': 'contentChildren',
355
+ '[class.mc-tag-with-trailing-icon]': 'trailingIcon || removeIcon',
356
+ '[class.mc-disabled]': 'disabled',
357
+ '(click)': 'handleClick($event)',
358
+ '(keydown)': 'handleKeydown($event)',
359
+ '(focus)': 'focus()',
360
+ '(blur)': 'blur()'
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:var(--mc-tags-size-margin, 2px);height:var(--mc-tags-size-height, 24px);border-width:var(--mc-tags-size-border-width, 1px);border-style:solid;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:var(--mc-tags-size-icon-padding, 3px)}.mc-tag.mc-right-icon{padding-right:var(--mc-tags-size-icon-padding, 3px)}.mc-tag .mc-tag__text{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: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:var(--mc-tags-size-height, 24px);height:var(--mc-tags-size-height, 24px)}.mc-tag__wrapper .mc-icon_left{margin-right:var(--mc-tags-size-icon-padding, 3px)}.mc-tag__wrapper .mc-icon_right{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"] }]
362
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; }, propDecorators: { contentChildren: [{
363
+ type: ContentChildren,
364
+ args: [McIcon]
365
+ }], avatar: [{
366
+ type: ContentChild,
367
+ args: [McTagAvatar, { static: false }]
368
+ }], trailingIcon: [{
369
+ type: ContentChild,
370
+ args: [McTagTrailingIcon, { static: false }]
371
+ }], removeIcon: [{
372
+ type: ContentChild,
373
+ args: [forwardRef(() => McTagRemove), { static: false }]
374
+ }], selectionChange: [{
375
+ type: Output
376
+ }], destroyed: [{
377
+ type: Output
378
+ }], removed: [{
379
+ type: Output
380
+ }], selected: [{
381
+ type: Input
382
+ }], value: [{
383
+ type: Input
384
+ }], selectable: [{
385
+ type: Input
386
+ }], removable: [{
387
+ type: Input
388
+ }], disabled: [{
389
+ type: Input
390
+ }] } });
391
+
392
+ class McTagListBase {
393
+ constructor(defaultErrorStateMatcher, parentForm, parentFormGroup, ngControl) {
394
+ this.defaultErrorStateMatcher = defaultErrorStateMatcher;
395
+ this.parentForm = parentForm;
396
+ this.parentFormGroup = parentFormGroup;
397
+ this.ngControl = ngControl;
398
+ }
399
+ }
400
+ // tslint:disable-next-line:naming-convention
401
+ const McTagListMixinBase = mixinErrorState(McTagListBase);
402
+ // Increasing integer for generating unique ids for tag-list components.
403
+ let nextUniqueId$1 = 0;
404
+ /** Change event object that is emitted when the tag list value has changed. */
405
+ class McTagListChange {
406
+ constructor(source, value) {
407
+ this.source = source;
408
+ this.value = value;
409
+ }
410
+ }
411
+ class McTagList extends McTagListMixinBase {
412
+ constructor(elementRef, changeDetectorRef, defaultErrorStateMatcher, rawValidators, mcValidation, dir, parentForm, parentFormGroup, ngControl, ngModel, formControlName) {
413
+ super(defaultErrorStateMatcher, parentForm, parentFormGroup, ngControl);
414
+ this.elementRef = elementRef;
415
+ this.changeDetectorRef = changeDetectorRef;
416
+ this.rawValidators = rawValidators;
417
+ this.mcValidation = mcValidation;
418
+ this.dir = dir;
419
+ this.ngModel = ngModel;
420
+ this.formControlName = formControlName;
421
+ this.controlType = 'tag-list';
422
+ this._tabIndex = 0;
423
+ /**
424
+ * Event that emits whenever the raw value of the tag-list changes. This is here primarily
425
+ * to facilitate the two-way binding for the `value` input.
426
+ * @docs-private
427
+ */
428
+ this.valueChange = new EventEmitter();
429
+ this.uid = `mc-tag-list-${nextUniqueId$1++}`;
430
+ /**
431
+ * User defined tab index.
432
+ * When it is not null, use user defined tab index. Otherwise use tabIndex
433
+ */
434
+ this.userTabIndex = null;
435
+ this.tagChanges = new EventEmitter();
436
+ /** Orientation of the tag list. */
437
+ this.orientation = 'horizontal';
438
+ /** Event emitted when the selected tag list value has been changed by the user. */
439
+ this.change = new EventEmitter();
440
+ this._required = false;
441
+ this._disabled = false;
442
+ this._selectable = true;
443
+ this._multiple = false;
444
+ /**
445
+ * When a tag is destroyed, we store the index of the destroyed tag until the tags
446
+ * query list notifies about the update. This is necessary because we cannot determine an
447
+ * appropriate tag that should receive focus until the array of tags updated completely.
448
+ */
449
+ this.lastDestroyedTagIndex = null;
450
+ /** Subject that emits when the component has been destroyed. */
451
+ this.destroyed = new Subject();
452
+ // tslint:disable-next-line:no-empty
453
+ this.onTouched = () => { };
454
+ // tslint:disable-next-line:no-empty
455
+ this.onChange = () => { };
456
+ this._compareWith = (o1, o2) => o1 === o2;
457
+ if (this.ngControl) {
458
+ this.ngControl.valueAccessor = this;
459
+ }
460
+ }
461
+ /** Combined stream of all of the child tags' selection change events. */
462
+ get tagSelectionChanges() {
463
+ return merge(...this.tags.map((tag) => tag.selectionChange));
464
+ }
465
+ /** Combined stream of all of the child tags' focus change events. */
466
+ get tagFocusChanges() {
467
+ return merge(...this.tags.map((tag) => tag.onFocus));
468
+ }
469
+ /** Combined stream of all of the child tags' blur change events. */
470
+ get tagBlurChanges() {
471
+ return merge(...this.tags.map((tag) => tag.onBlur));
472
+ }
473
+ /** Combined stream of all of the child tags' remove change events. */
474
+ get tagRemoveChanges() {
475
+ return merge(...this.tags.map((tag) => tag.destroyed));
476
+ }
477
+ /** The array of selected tags inside tag list. */
478
+ get selected() {
479
+ return this.multiple ? this.selectionModel.selected : this.selectionModel.selected[0];
480
+ }
481
+ get canShowCleaner() {
482
+ return this.cleaner && this.tags.length > 0;
483
+ }
484
+ /** Whether the user should be allowed to select multiple tags. */
485
+ get multiple() {
486
+ return this._multiple;
487
+ }
488
+ set multiple(value) {
489
+ this._multiple = coerceBooleanProperty(value);
490
+ }
491
+ /**
492
+ * A function to compare the option values with the selected values. The first argument
493
+ * is a value from an option. The second is a value from the selection. A boolean
494
+ * should be returned.
495
+ */
496
+ get compareWith() {
497
+ return this._compareWith;
498
+ }
499
+ set compareWith(fn) {
500
+ this._compareWith = fn;
501
+ if (this.selectionModel) {
502
+ // A different comparator means the selection could change.
503
+ this.initializeSelection();
504
+ }
505
+ }
506
+ /**
507
+ * Implemented as part of McFormFieldControl.
508
+ * @docs-private
509
+ */
510
+ get value() {
511
+ return this._value;
512
+ }
513
+ set value(value) {
514
+ this.writeValue(value);
515
+ this._value = value;
516
+ }
517
+ /**
518
+ * Implemented as part of McFormFieldControl.
519
+ * @docs-private
520
+ */
521
+ get id() {
522
+ return this.tagInput ? this.tagInput.id : this.uid;
523
+ }
524
+ /**
525
+ * Implemented as part of McFormFieldControl.
526
+ * @docs-private
527
+ */
528
+ get required() {
529
+ return this._required;
530
+ }
531
+ set required(value) {
532
+ this._required = coerceBooleanProperty(value);
533
+ this.stateChanges.next();
534
+ }
535
+ /**
536
+ * Implemented as part of McFormFieldControl.
537
+ * @docs-private
538
+ */
539
+ get placeholder() {
540
+ return this.tagInput ? this.tagInput.placeholder : this._placeholder;
541
+ }
542
+ set placeholder(value) {
543
+ this._placeholder = value;
544
+ this.stateChanges.next();
545
+ }
546
+ /** Whether any tags or the mcTagInput inside of this tag-list has focus. */
547
+ get focused() {
548
+ return (this.tagInput && this.tagInput.focused) || this.hasFocusedTag();
549
+ }
550
+ /**
551
+ * Implemented as part of McFormFieldControl.
552
+ * @docs-private
553
+ */
554
+ get empty() {
555
+ return (!this.tagInput || this.tagInput.empty) && this.tags.length === 0;
556
+ }
557
+ /**
558
+ * Implemented as part of McFormFieldControl.
559
+ * @docs-private
560
+ */
561
+ get shouldLabelFloat() {
562
+ return !this.empty || this.focused;
563
+ }
564
+ /**
565
+ * Implemented as part of McFormFieldControl.
566
+ * @docs-private
567
+ */
568
+ get disabled() {
569
+ return this.ngControl ? !!this.ngControl.disabled : this._disabled;
570
+ }
571
+ set disabled(value) {
572
+ this._disabled = coerceBooleanProperty(value);
573
+ this.syncTagsDisabledState();
574
+ }
575
+ /**
576
+ * Whether or not this tag list is selectable. When a tag list is not selectable,
577
+ * the selected states for all the tags inside the tag list are always ignored.
578
+ */
579
+ get selectable() {
580
+ return this._selectable;
581
+ }
582
+ set selectable(value) {
583
+ this._selectable = coerceBooleanProperty(value);
584
+ if (this.tags) {
585
+ this.tags.forEach((tag) => tag.tagListSelectable = this._selectable);
586
+ }
587
+ }
588
+ get tabIndex() {
589
+ return this._tabIndex;
590
+ }
591
+ set tabIndex(value) {
592
+ this.userTabIndex = value;
593
+ this._tabIndex = value;
594
+ }
595
+ ngAfterContentInit() {
596
+ if (this.mcValidation.useValidation) {
597
+ setMosaicValidation(this);
598
+ }
599
+ this.keyManager = new FocusKeyManager(this.tags)
600
+ .withVerticalOrientation()
601
+ .withHorizontalOrientation(this.dir ? this.dir.value : 'ltr');
602
+ if (this.dir) {
603
+ this.dir.change
604
+ .pipe(takeUntil(this.destroyed))
605
+ .subscribe((dir) => this.keyManager.withHorizontalOrientation(dir));
606
+ }
607
+ // Prevents the tag list from capturing focus and redirecting
608
+ // it back to the first tag when the user tabs out.
609
+ this.keyManager.tabOut
610
+ .pipe(takeUntil(this.destroyed))
611
+ .subscribe(() => {
612
+ this._tabIndex = -1;
613
+ setTimeout(() => {
614
+ this._tabIndex = this.userTabIndex || 0;
615
+ this.changeDetectorRef.markForCheck();
616
+ });
617
+ });
618
+ // When the list changes, re-subscribe
619
+ this.tags.changes
620
+ .pipe(startWith(null), takeUntil(this.destroyed))
621
+ .subscribe(() => {
622
+ if (this.disabled) {
623
+ // Since this happens after the content has been
624
+ // checked, we need to defer it to the next tick.
625
+ Promise.resolve().then(() => { this.syncTagsDisabledState(); });
626
+ }
627
+ this.resetTags();
628
+ // Reset tags selected/deselected status
629
+ this.initializeSelection();
630
+ // Check to see if we need to update our tab index
631
+ this.updateTabIndex();
632
+ // Check to see if we have a destroyed tag and need to refocus
633
+ this.updateFocusForDestroyedTags();
634
+ // Defer setting the value in order to avoid the "Expression
635
+ // has changed after it was checked" errors from Angular.
636
+ Promise.resolve().then(() => {
637
+ this.tagChanges.emit(this.tags.toArray());
638
+ this.stateChanges.next();
639
+ this.propagateTagsChanges();
640
+ });
641
+ });
642
+ }
643
+ ngOnInit() {
644
+ this.selectionModel = new SelectionModel(this.multiple, undefined, false);
645
+ this.stateChanges.next();
646
+ }
647
+ ngDoCheck() {
648
+ if (this.ngControl) {
649
+ // We need to re-evaluate this on every change detection cycle, because there are some
650
+ // error triggers that we can't subscribe to (e.g. parent form submissions). This means
651
+ // that whatever logic is in here has to be super lean or we risk destroying the performance.
652
+ this.updateErrorState();
653
+ }
654
+ }
655
+ ngOnDestroy() {
656
+ this.destroyed.next();
657
+ this.destroyed.complete();
658
+ this.stateChanges.complete();
659
+ this.dropSubscriptions();
660
+ }
661
+ /** Associates an HTML input element with this tag list. */
662
+ registerInput(inputElement) {
663
+ this.tagInput = inputElement;
664
+ // todo need rethink about it
665
+ if (this.ngControl && inputElement.ngControl?.statusChanges) {
666
+ inputElement.ngControl.statusChanges
667
+ .subscribe(() => this.ngControl.control.setErrors(inputElement.ngControl.errors));
668
+ }
669
+ }
670
+ // Implemented as part of ControlValueAccessor.
671
+ writeValue(value) {
672
+ if (this.tags) {
673
+ this.setSelectionByValue(value, false);
674
+ }
675
+ }
676
+ // Implemented as part of ControlValueAccessor.
677
+ registerOnChange(fn) {
678
+ this.onChange = fn;
679
+ }
680
+ // Implemented as part of ControlValueAccessor.
681
+ registerOnTouched(fn) {
682
+ this.onTouched = fn;
683
+ }
684
+ // Implemented as part of ControlValueAccessor.
685
+ setDisabledState(isDisabled) {
686
+ this.disabled = isDisabled;
687
+ this.stateChanges.next();
688
+ }
689
+ /**
690
+ * Implemented as part of McFormFieldControl.
691
+ * @docs-private
692
+ */
693
+ onContainerClick(event) {
694
+ if (!this.originatesFromTag(event)) {
695
+ this.focus();
696
+ }
697
+ }
698
+ /**
699
+ * Focuses the first non-disabled tag in this tag list, or the associated input when there
700
+ * are no eligible tags.
701
+ */
702
+ focus() {
703
+ if (this.disabled) {
704
+ return;
705
+ }
706
+ // TODO: ARIA says this should focus the first `selected` tag if any are selected.
707
+ // Focus on first element if there's no tagInput inside tag-list
708
+ if (this.tagInput && this.tagInput.focused) {
709
+ // do nothing
710
+ }
711
+ else if (this.tags.length > 0) {
712
+ this.keyManager.setFirstItemActive();
713
+ this.stateChanges.next();
714
+ }
715
+ else {
716
+ this.focusInput();
717
+ this.stateChanges.next();
718
+ }
719
+ }
720
+ /** Attempt to focus an input if we have one. */
721
+ focusInput() {
722
+ if (this.tagInput) {
723
+ this.tagInput.focus();
724
+ }
725
+ }
726
+ /**
727
+ * Pass events to the keyboard manager. Available here for tests.
728
+ */
729
+ keydown(event) {
730
+ const target = event.target;
731
+ // If they are on an empty input and hit backspace, focus the last tag
732
+ // tslint:disable-next-line: deprecation
733
+ if (event.keyCode === BACKSPACE && this.isInputEmpty(target)) {
734
+ this.keyManager.setLastItemActive();
735
+ event.preventDefault();
736
+ }
737
+ else if (target && target.classList.contains('mc-tag')) {
738
+ // tslint:disable-next-line: deprecation
739
+ if (event.keyCode === HOME) {
740
+ this.keyManager.setFirstItemActive();
741
+ event.preventDefault();
742
+ // tslint:disable-next-line: deprecation
743
+ }
744
+ else if (event.keyCode === END) {
745
+ this.keyManager.setLastItemActive();
746
+ event.preventDefault();
747
+ }
748
+ else {
749
+ this.keyManager.onKeydown(event);
750
+ }
751
+ this.stateChanges.next();
752
+ }
753
+ }
754
+ setSelectionByValue(value, isUserInput = true) {
755
+ this.clearSelection();
756
+ this.tags.forEach((tag) => tag.deselect());
757
+ if (Array.isArray(value)) {
758
+ value.forEach((currentValue) => this.selectValue(currentValue, isUserInput));
759
+ this.sortValues();
760
+ }
761
+ else {
762
+ const correspondingTag = this.selectValue(value, isUserInput);
763
+ // Shift focus to the active item. Note that we shouldn't do this in multiple
764
+ // mode, because we don't know what tag the user interacted with last.
765
+ if (correspondingTag && isUserInput) {
766
+ this.keyManager.setActiveItem(correspondingTag);
767
+ }
768
+ }
769
+ }
770
+ /** When blurred, mark the field as touched when focus moved outside the tag list. */
771
+ blur() {
772
+ if (!this.hasFocusedTag()) {
773
+ this.keyManager.setActiveItem(-1);
774
+ }
775
+ if (!this.disabled) {
776
+ if (this.tagInput) {
777
+ // If there's a tag input, we should check whether the focus moved to tag input.
778
+ // If the focus is not moved to tag input, mark the field as touched. If the focus moved
779
+ // to tag input, do nothing.
780
+ // Timeout is needed to wait for the focus() event trigger on tag input.
781
+ setTimeout(() => {
782
+ if (!this.focused) {
783
+ this.markAsTouched();
784
+ }
785
+ });
786
+ }
787
+ else {
788
+ // If there's no tag input, then mark the field as touched.
789
+ this.markAsTouched();
790
+ }
791
+ }
792
+ }
793
+ /** Mark the field as touched */
794
+ markAsTouched() {
795
+ this.onTouched();
796
+ this.changeDetectorRef.markForCheck();
797
+ this.stateChanges.next();
798
+ }
799
+ /**
800
+ * Check the tab index as you should not be allowed to focus an empty list.
801
+ */
802
+ updateTabIndex() {
803
+ // If we have 0 tags, we should not allow keyboard focus
804
+ this._tabIndex = this.userTabIndex || (this.tags.length === 0 ? -1 : 0);
805
+ }
806
+ /**
807
+ * If the amount of tags changed, we need to update the
808
+ * key manager state and focus the next closest tag.
809
+ */
810
+ updateFocusForDestroyedTags() {
811
+ if (this.lastDestroyedTagIndex != null) {
812
+ if (this.tags.length) {
813
+ const newTagIndex = Math.min(this.lastDestroyedTagIndex, this.tags.length - 1);
814
+ this.keyManager.setActiveItem(newTagIndex);
815
+ }
816
+ else {
817
+ this.focusInput();
818
+ }
819
+ }
820
+ this.lastDestroyedTagIndex = null;
821
+ }
822
+ /**
823
+ * Utility to ensure all indexes are valid.
824
+ *
825
+ * @param index The index to be checked.
826
+ * @returns True if the index is valid for our list of tags.
827
+ */
828
+ isValidIndex(index) {
829
+ return index >= 0 && index < this.tags.length;
830
+ }
831
+ isInputEmpty(element) {
832
+ if (element && element.nodeName.toLowerCase() === 'input') {
833
+ const input = element;
834
+ return !input.value;
835
+ }
836
+ return false;
837
+ }
838
+ /**
839
+ * Finds and selects the tag based on its value.
840
+ * @returns Tag that has the corresponding value.
841
+ */
842
+ selectValue(value, isUserInput = true) {
843
+ const correspondingTag = this.tags.find((tag) => {
844
+ return tag.value != null && this._compareWith(tag.value, value);
845
+ });
846
+ if (correspondingTag) {
847
+ if (isUserInput) {
848
+ correspondingTag.selectViaInteraction();
849
+ }
850
+ else {
851
+ correspondingTag.select();
852
+ }
853
+ this.selectionModel.select(correspondingTag);
854
+ }
855
+ return correspondingTag;
856
+ }
857
+ initializeSelection() {
858
+ // Defer setting the value in order to avoid the "Expression
859
+ // has changed after it was checked" errors from Angular.
860
+ Promise.resolve().then(() => {
861
+ if (this.ngControl || this._value) {
862
+ this.setSelectionByValue(this.ngControl ? this.ngControl.value : this._value, false);
863
+ this.stateChanges.next();
864
+ }
865
+ });
866
+ }
867
+ /**
868
+ * Deselects every tag in the list.
869
+ * @param skip Tag that should not be deselected.
870
+ */
871
+ clearSelection(skip) {
872
+ this.selectionModel.clear();
873
+ this.tags.forEach((tag) => {
874
+ if (tag !== skip) {
875
+ tag.deselect();
876
+ }
877
+ });
878
+ this.stateChanges.next();
879
+ }
880
+ /**
881
+ * Sorts the model values, ensuring that they keep the same
882
+ * order that they have in the panel.
883
+ */
884
+ sortValues() {
885
+ if (this._multiple) {
886
+ this.selectionModel.clear();
887
+ this.tags.forEach((tag) => {
888
+ if (tag.selected) {
889
+ this.selectionModel.select(tag);
890
+ }
891
+ });
892
+ this.stateChanges.next();
893
+ }
894
+ }
895
+ /** Emits change event to set the model value. */
896
+ // todo need rethink this method and selection logic
897
+ propagateChanges(fallbackValue) {
898
+ let valueToEmit = null;
899
+ if (Array.isArray(this.selected)) {
900
+ valueToEmit = this.selected.map((tag) => tag.value);
901
+ }
902
+ else {
903
+ valueToEmit = this.selected ? this.selected.value : fallbackValue;
904
+ }
905
+ this._value = valueToEmit;
906
+ this.change.emit(new McTagListChange(this, valueToEmit));
907
+ this.valueChange.emit(valueToEmit);
908
+ this.onChange(valueToEmit);
909
+ this.changeDetectorRef.markForCheck();
910
+ }
911
+ propagateTagsChanges() {
912
+ const valueToEmit = this.tags.map((tag) => tag.value);
913
+ this._value = valueToEmit;
914
+ this.change.emit(new McTagListChange(this, valueToEmit));
915
+ this.valueChange.emit(valueToEmit);
916
+ this.onChange(valueToEmit);
917
+ this.changeDetectorRef.markForCheck();
918
+ }
919
+ resetTags() {
920
+ this.dropSubscriptions();
921
+ this.listenToTagsFocus();
922
+ this.listenToTagsSelection();
923
+ this.listenToTagsRemoved();
924
+ }
925
+ dropSubscriptions() {
926
+ if (this.tagFocusSubscription) {
927
+ this.tagFocusSubscription.unsubscribe();
928
+ this.tagFocusSubscription = null;
929
+ }
930
+ if (this.tagBlurSubscription) {
931
+ this.tagBlurSubscription.unsubscribe();
932
+ this.tagBlurSubscription = null;
933
+ }
934
+ if (this.tagSelectionSubscription) {
935
+ this.tagSelectionSubscription.unsubscribe();
936
+ this.tagSelectionSubscription = null;
937
+ }
938
+ if (this.tagRemoveSubscription) {
939
+ this.tagRemoveSubscription.unsubscribe();
940
+ this.tagRemoveSubscription = null;
941
+ }
942
+ }
943
+ /** Listens to user-generated selection events on each tag. */
944
+ listenToTagsSelection() {
945
+ this.tagSelectionSubscription = this.tagSelectionChanges.subscribe((event) => {
946
+ if (event.source.selected) {
947
+ this.selectionModel.select(event.source);
948
+ }
949
+ else {
950
+ this.selectionModel.deselect(event.source);
951
+ }
952
+ // For single selection tag list, make sure the deselected value is unselected.
953
+ if (!this.multiple) {
954
+ this.tags.forEach((tag) => {
955
+ if (!this.selectionModel.isSelected(tag) && tag.selected) {
956
+ tag.deselect();
957
+ }
958
+ });
959
+ }
960
+ if (event.isUserInput) {
961
+ this.propagateChanges();
962
+ }
963
+ });
964
+ }
965
+ /** Listens to user-generated selection events on each tag. */
966
+ listenToTagsFocus() {
967
+ this.tagFocusSubscription = this.tagFocusChanges
968
+ .subscribe((event) => {
969
+ const tagIndex = this.tags.toArray().indexOf(event.tag);
970
+ if (this.isValidIndex(tagIndex)) {
971
+ this.keyManager.updateActiveItem(tagIndex);
972
+ }
973
+ this.stateChanges.next();
974
+ });
975
+ this.tagBlurSubscription = this.tagBlurChanges
976
+ .subscribe(() => {
977
+ this.blur();
978
+ this.stateChanges.next();
979
+ });
980
+ }
981
+ listenToTagsRemoved() {
982
+ this.tagRemoveSubscription = this.tagRemoveChanges
983
+ .subscribe((event) => {
984
+ const tag = event.tag;
985
+ const tagIndex = this.tags.toArray().indexOf(event.tag);
986
+ // In case the tag that will be removed is currently focused, we temporarily store
987
+ // the index in order to be able to determine an appropriate sibling tag that will
988
+ // receive focus.
989
+ if (this.isValidIndex(tagIndex) && tag.hasFocus) {
990
+ this.lastDestroyedTagIndex = tagIndex;
991
+ }
992
+ });
993
+ }
994
+ /** Checks whether an event comes from inside a tag element. */
995
+ originatesFromTag(event) {
996
+ let currentElement = event.target;
997
+ while (currentElement && currentElement !== this.elementRef.nativeElement) {
998
+ if (currentElement.classList.contains('mc-tag')) {
999
+ return true;
1000
+ }
1001
+ currentElement = currentElement.parentElement;
1002
+ }
1003
+ return false;
1004
+ }
1005
+ /** Checks whether any of the tags is focused. */
1006
+ hasFocusedTag() {
1007
+ return this.tags.some((tag) => tag.hasFocus);
1008
+ }
1009
+ /** Syncs the list's disabled state with the individual tags. */
1010
+ syncTagsDisabledState() {
1011
+ if (this.tags) {
1012
+ this.tags.forEach((tag) => {
1013
+ tag.disabled = this._disabled;
1014
+ });
1015
+ }
1016
+ }
1017
+ }
1018
+ /** @nocollapse */ /** @nocollapse */ McTagList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.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.3.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:var(--mc-tag-list-size-min-height, 30px);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:var(--mc-tag-input-size-height, 22px);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.3.0", ngImport: i0, type: McTagList, decorators: [{
1021
+ type: Component,
1022
+ args: [{ selector: 'mc-tag-list', exportAs: 'mcTagList', host: {
1023
+ class: 'mc-tag-list',
1024
+ '[class.mc-disabled]': 'disabled',
1025
+ '[class.mc-invalid]': 'errorState',
1026
+ '[attr.tabindex]': 'disabled ? null : tabIndex',
1027
+ '[id]': 'uid',
1028
+ '(focus)': 'focus()',
1029
+ '(blur)': 'blur()',
1030
+ '(keydown)': 'keydown($event)'
1031
+ }, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: McFormFieldControl, useExisting: McTagList }], 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:var(--mc-tag-list-size-min-height, 30px);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:var(--mc-tag-input-size-height, 22px);margin:var(--mc-tag-input-size-margin, 2px 4px)}.mc-tags-list__cleaner .mc-cleaner{height:30px}\n"] }]
1032
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.ErrorStateMatcher }, { type: undefined, decorators: [{
1033
+ type: Optional
1034
+ }, {
1035
+ type: Inject,
1036
+ args: [NG_VALIDATORS]
1037
+ }] }, { type: undefined, decorators: [{
1038
+ type: Optional
1039
+ }, {
1040
+ type: Inject,
1041
+ args: [MC_VALIDATION]
1042
+ }] }, { type: i2.Directionality, decorators: [{
1043
+ type: Optional
1044
+ }] }, { type: i3.NgForm, decorators: [{
1045
+ type: Optional
1046
+ }] }, { type: i3.FormGroupDirective, decorators: [{
1047
+ type: Optional
1048
+ }] }, { type: i3.NgControl, decorators: [{
1049
+ type: Optional
1050
+ }, {
1051
+ type: Self
1052
+ }] }, { type: i3.NgModel, decorators: [{
1053
+ type: Optional
1054
+ }, {
1055
+ type: Self
1056
+ }] }, { type: i3.FormControlName, decorators: [{
1057
+ type: Optional
1058
+ }, {
1059
+ type: Self
1060
+ }] }]; }, propDecorators: { multiple: [{
1061
+ type: Input
1062
+ }], compareWith: [{
1063
+ type: Input
1064
+ }], value: [{
1065
+ type: Input
1066
+ }], required: [{
1067
+ type: Input
1068
+ }], placeholder: [{
1069
+ type: Input
1070
+ }], disabled: [{
1071
+ type: Input
1072
+ }], selectable: [{
1073
+ type: Input
1074
+ }], tabIndex: [{
1075
+ type: Input
1076
+ }], valueChange: [{
1077
+ type: Output
1078
+ }], errorStateMatcher: [{
1079
+ type: Input
1080
+ }], orientation: [{
1081
+ type: Input,
1082
+ args: ['orientation']
1083
+ }], change: [{
1084
+ type: Output
1085
+ }], cleaner: [{
1086
+ type: ContentChild,
1087
+ args: ['mcTagListCleaner', { static: true }]
1088
+ }], tags: [{
1089
+ type: ContentChildren,
1090
+ args: [McTag, {
1091
+ // Need to use `descendants: true`,
1092
+ // Ivy will no longer match indirect descendants if it's left as false.
1093
+ descendants: true
1094
+ }]
1095
+ }] } });
1096
+
1097
+ // Increasing integer for generating unique ids.
1098
+ let nextUniqueId = 0;
1099
+ /**
1100
+ * Directive that adds tag-specific behaviors to an input element inside `<mc-form-field>`.
1101
+ * May be placed inside or outside of an `<mc-tag-list>`.
1102
+ */
1103
+ class McTagInput {
1104
+ constructor(elementRef, renderer, defaultOptions, ngControl) {
1105
+ this.elementRef = elementRef;
1106
+ this.renderer = renderer;
1107
+ this.defaultOptions = defaultOptions;
1108
+ this.ngControl = ngControl;
1109
+ /** Whether the control is focused. */
1110
+ this.focused = false;
1111
+ /**
1112
+ * The list of key codes that will trigger a tagEnd event.
1113
+ *
1114
+ * Defaults to `[ENTER]`.
1115
+ */
1116
+ this.separatorKeyCodes = this.defaultOptions.separatorKeyCodes;
1117
+ /** Emitted when a tag is to be added. */
1118
+ this.tagEnd = new EventEmitter();
1119
+ /** The input's placeholder text. */
1120
+ this.placeholder = '';
1121
+ /** Unique id for the input. */
1122
+ this.id = `mc-tag-list-input-${nextUniqueId++}`;
1123
+ this._addOnBlur = true;
1124
+ this._disabled = false;
1125
+ this.countOfSymbolsForUpdateWidth = 3;
1126
+ // tslint:disable-next-line: no-unnecessary-type-assertion
1127
+ this.inputElement = this.elementRef.nativeElement;
1128
+ this.setDefaultInputWidth();
1129
+ }
1130
+ /** Register input for tag list */
1131
+ set tagList(value) {
1132
+ if (value) {
1133
+ this._tagList = value;
1134
+ this._tagList.registerInput(this);
1135
+ }
1136
+ }
1137
+ /**
1138
+ * Whether or not the tagEnd event will be emitted when the input is blurred.
1139
+ */
1140
+ get addOnBlur() {
1141
+ return this._addOnBlur;
1142
+ }
1143
+ set addOnBlur(value) {
1144
+ this._addOnBlur = coerceBooleanProperty(value);
1145
+ }
1146
+ /** Whether the input is disabled. */
1147
+ get disabled() {
1148
+ return this._disabled || (this._tagList && this._tagList.disabled);
1149
+ }
1150
+ set disabled(value) {
1151
+ this._disabled = coerceBooleanProperty(value);
1152
+ }
1153
+ /** Whether the input is empty. */
1154
+ get empty() {
1155
+ return !this.inputElement.value;
1156
+ }
1157
+ ngOnChanges() {
1158
+ this._tagList.stateChanges.next();
1159
+ }
1160
+ onKeydown(event) {
1161
+ if (!this.inputElement.value) {
1162
+ this._tagList.keydown(event);
1163
+ }
1164
+ if (this.isSeparatorKey(event)) {
1165
+ this.emitTagEnd();
1166
+ event.preventDefault();
1167
+ }
1168
+ }
1169
+ /** Checks to see if the blur should emit the (tagEnd) event. */
1170
+ blur() {
1171
+ this.focused = false;
1172
+ // Blur the tag list if it is not focused
1173
+ if (!this._tagList.focused) {
1174
+ this.triggerValidation();
1175
+ this._tagList.blur();
1176
+ }
1177
+ // tslint:disable-next-line: no-unnecessary-type-assertion
1178
+ if (this.addOnBlur) {
1179
+ this.emitTagEnd();
1180
+ }
1181
+ this._tagList.stateChanges.next();
1182
+ }
1183
+ triggerValidation() {
1184
+ if (!this.hasControl()) {
1185
+ return;
1186
+ }
1187
+ this.ngControl.statusChanges.emit(this.ngControl.status);
1188
+ }
1189
+ /** Checks to see if the (tagEnd) event needs to be emitted. */
1190
+ emitTagEnd() {
1191
+ if (!this.hasControl() || (this.hasControl() && !this.ngControl.invalid)) {
1192
+ this.tagEnd.emit({ input: this.inputElement, value: this.inputElement.value });
1193
+ this.updateInputWidth();
1194
+ }
1195
+ }
1196
+ onInput() {
1197
+ this.updateInputWidth();
1198
+ // Let tag list know whenever the value changes.
1199
+ this._tagList.stateChanges.next();
1200
+ }
1201
+ onPaste($event) {
1202
+ if (!$event.clipboardData) {
1203
+ return;
1204
+ }
1205
+ const data = $event.clipboardData.getData('text');
1206
+ if (data && data.length === 0) {
1207
+ return;
1208
+ }
1209
+ const items = [];
1210
+ for (const key of this.separatorKeyCodes) {
1211
+ const separator = this.separatorKeyToSymbol(key);
1212
+ if (data.search(separator) > -1) {
1213
+ items.push(...data.split(separator));
1214
+ break;
1215
+ }
1216
+ }
1217
+ if (items.length === 0) {
1218
+ items.push(data);
1219
+ }
1220
+ items.forEach((item) => this.tagEnd.emit({ input: this.inputElement, value: item }));
1221
+ this.updateInputWidth();
1222
+ $event.preventDefault();
1223
+ $event.stopPropagation();
1224
+ }
1225
+ updateInputWidth() {
1226
+ const length = this.inputElement.value.length;
1227
+ this.renderer.setStyle(this.inputElement, 'max-width', 0);
1228
+ this.oneSymbolWidth = this.inputElement.scrollWidth / length;
1229
+ this.renderer.setStyle(this.inputElement, 'max-width', '');
1230
+ if (length > this.countOfSymbolsForUpdateWidth) {
1231
+ this.renderer.setStyle(this.inputElement, 'width', `${length * this.oneSymbolWidth}px`);
1232
+ }
1233
+ else {
1234
+ this.setDefaultInputWidth();
1235
+ }
1236
+ }
1237
+ onFocus() {
1238
+ this.focused = true;
1239
+ this._tagList.stateChanges.next();
1240
+ }
1241
+ /** Focuses the input. */
1242
+ focus() {
1243
+ this.inputElement.focus();
1244
+ }
1245
+ separatorKeyToSymbol(k) {
1246
+ const sep = {
1247
+ [ENTER]: /\r?\n/,
1248
+ [TAB]: /\t/,
1249
+ [SPACE]: / /,
1250
+ [COMMA]: /,/
1251
+ }[k];
1252
+ if (sep) {
1253
+ return sep;
1254
+ }
1255
+ return k;
1256
+ }
1257
+ hasControl() {
1258
+ return !!this.ngControl;
1259
+ }
1260
+ setDefaultInputWidth() {
1261
+ this.renderer.setStyle(this.inputElement, 'width', '30px');
1262
+ }
1263
+ /** Checks whether a keycode is one of the configured separators. */
1264
+ isSeparatorKey(event) {
1265
+ if (hasModifierKey(event)) {
1266
+ return false;
1267
+ }
1268
+ // tslint:disable-next-line: deprecation
1269
+ return this.separatorKeyCodes.indexOf(event.keyCode) > -1;
1270
+ }
1271
+ }
1272
+ /** @nocollapse */ /** @nocollapse */ McTagInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.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.3.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.3.0", ngImport: i0, type: McTagInput, decorators: [{
1275
+ type: Directive,
1276
+ args: [{
1277
+ selector: 'input[mcTagInputFor]',
1278
+ exportAs: 'mcTagInput, mcTagInputFor',
1279
+ host: {
1280
+ class: 'mc-tag-input',
1281
+ '[id]': 'id',
1282
+ '[attr.disabled]': 'disabled || null',
1283
+ '[attr.placeholder]': 'placeholder || null',
1284
+ '(keydown)': 'onKeydown($event)',
1285
+ '(blur)': 'blur()',
1286
+ '(focus)': 'onFocus()',
1287
+ '(input)': 'onInput()',
1288
+ '(paste)': 'onPaste($event)'
1289
+ }
1290
+ }]
1291
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: undefined, decorators: [{
1292
+ type: Inject,
1293
+ args: [MC_TAGS_DEFAULT_OPTIONS]
1294
+ }] }, { type: i3.NgControl, decorators: [{
1295
+ type: Optional
1296
+ }, {
1297
+ type: Self
1298
+ }] }]; }, propDecorators: { separatorKeyCodes: [{
1299
+ type: Input,
1300
+ args: ['mcTagInputSeparatorKeyCodes']
1301
+ }], tagEnd: [{
1302
+ type: Output,
1303
+ args: ['mcTagInputTokenEnd']
1304
+ }], placeholder: [{
1305
+ type: Input
1306
+ }], id: [{
1307
+ type: Input
1308
+ }], tagList: [{
1309
+ type: Input,
1310
+ args: ['mcTagInputFor']
1311
+ }], addOnBlur: [{
1312
+ type: Input,
1313
+ args: ['mcTagInputAddOnBlur']
1314
+ }], disabled: [{
1315
+ type: Input
1316
+ }] } });
1317
+
1318
+ class McTagsModule {
1319
+ }
1320
+ /** @nocollapse */ /** @nocollapse */ McTagsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McTagsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1321
+ /** @nocollapse */ /** @nocollapse */ McTagsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McTagsModule, declarations: [McTagList,
1322
+ McTag,
1323
+ McTagInput,
1324
+ McTagTrailingIcon,
1325
+ McTagAvatar,
1326
+ McTagRemove], imports: [CommonModule, PlatformModule], exports: [McTagList,
1327
+ McTag,
1328
+ McTagInput,
1329
+ McTagTrailingIcon,
1330
+ McTagAvatar,
1331
+ McTagRemove] });
1332
+ /** @nocollapse */ /** @nocollapse */ McTagsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McTagsModule, providers: [{
1333
+ provide: MC_TAGS_DEFAULT_OPTIONS,
1334
+ // tslint:disable-next-line: no-object-literal-type-assertion
1335
+ useValue: { separatorKeyCodes: [ENTER] }
1336
+ }], imports: [[CommonModule, PlatformModule]] });
1337
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McTagsModule, decorators: [{
1338
+ type: NgModule,
1339
+ args: [{
1340
+ imports: [CommonModule, PlatformModule],
1341
+ exports: [
1342
+ McTagList,
1343
+ McTag,
1344
+ McTagInput,
1345
+ McTagTrailingIcon,
1346
+ McTagAvatar,
1347
+ McTagRemove
1348
+ ],
1349
+ declarations: [
1350
+ McTagList,
1351
+ McTag,
1352
+ McTagInput,
1353
+ McTagTrailingIcon,
1354
+ McTagAvatar,
1355
+ McTagRemove
1356
+ ],
1357
+ providers: [{
1358
+ provide: MC_TAGS_DEFAULT_OPTIONS,
1359
+ // tslint:disable-next-line: no-object-literal-type-assertion
1360
+ useValue: { separatorKeyCodes: [ENTER] }
1361
+ }]
1362
+ }]
1363
+ }] });
1364
+
1365
+ /**
1366
+ * Generated bundle index. Do not edit.
1367
+ */
1368
+
1369
+ export { MC_TAGS_DEFAULT_OPTIONS, McTag, McTagAvatar, McTagBase, McTagInput, McTagList, McTagListBase, McTagListChange, McTagListMixinBase, McTagMixinBase, McTagRemove, McTagSelectionChange, McTagTrailingIcon, McTagsModule };
1370
+ //# sourceMappingURL=ptsecurity-mosaic-tags.mjs.map