@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
@@ -1,1116 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { InjectionToken, Directive, Inject, Component, ChangeDetectionStrategy, ViewEncapsulation, Optional, ContentChild, HostListener, EventEmitter, QueryList, TemplateRef, Input, ViewChild, ContentChildren, Output, Self, NgModule } from '@angular/core';
3
- import * as i1$1 from '@angular/cdk/overlay';
4
- import { Overlay, OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
5
- import * as i3 from '@angular/common';
6
- import { DOCUMENT, CommonModule } from '@angular/common';
7
- import * as i2 from '@ptsecurity/mosaic/icon';
8
- import { McIcon, McIconModule } from '@ptsecurity/mosaic/icon';
9
- import { TemplatePortal, DomPortalOutlet } from '@angular/cdk/portal';
10
- import { Subject, Subscription, merge, of, asapScheduler } from 'rxjs';
11
- import * as i1 from '@angular/cdk/a11y';
12
- import { mixinDisabled } from '@ptsecurity/mosaic/core';
13
- import * as i4 from '@angular/cdk/bidi';
14
- import { normalizePassiveListenerOptions } from '@angular/cdk/platform';
15
- import { RIGHT_ARROW, LEFT_ARROW, ESCAPE, ENTER, SPACE, DOWN_ARROW as DOWN_ARROW$1 } from '@ptsecurity/cdk/keycodes';
16
- import { startWith, switchMap, take, filter, takeUntil, delay } from 'rxjs/operators';
17
- import { coerceBooleanProperty } from '@angular/cdk/coercion';
18
- import { UP_ARROW, DOWN_ARROW } from '@angular/cdk/keycodes';
19
- import { FocusKeyManager } from '@ptsecurity/cdk/a11y';
20
- import { trigger, state, style, transition, group, query, animate } from '@angular/animations';
21
-
22
- /**
23
- * Injection token used to provide the parent dropdown to dropdown-specific components.
24
- * @docs-private
25
- */
26
- const MC_DROPDOWN_PANEL = new InjectionToken('MC_DROPDOWN_PANEL');
27
- /** Injection token to be used to override the default options for `mc-dropdown`. */
28
- const MC_DROPDOWN_DEFAULT_OPTIONS = new InjectionToken('mc-dropdown-default-options', {
29
- providedIn: 'root',
30
- factory: MC_DROPDOWN_DEFAULT_OPTIONS_FACTORY
31
- });
32
- /** @docs-private */
33
- // tslint:disable-next-line:naming-convention
34
- function MC_DROPDOWN_DEFAULT_OPTIONS_FACTORY() {
35
- return {
36
- overlapTriggerX: true,
37
- overlapTriggerY: false,
38
- xPosition: 'after',
39
- yPosition: 'below',
40
- backdropClass: 'cdk-overlay-transparent-backdrop',
41
- hasBackdrop: false
42
- };
43
- }
44
-
45
- /**
46
- * Dropdown content that will be rendered lazily once the dropdown is opened.
47
- */
48
- class McDropdownContent {
49
- constructor(template, componentFactoryResolver, appRef, injector, viewContainerRef, document) {
50
- this.template = template;
51
- this.componentFactoryResolver = componentFactoryResolver;
52
- this.appRef = appRef;
53
- this.injector = injector;
54
- this.viewContainerRef = viewContainerRef;
55
- this.document = document;
56
- /** Emits when the dropdown content has been attached. */
57
- this.attached = new Subject();
58
- }
59
- /**
60
- * Attaches the content with a particular context.
61
- * @docs-private
62
- */
63
- attach(context = {}) {
64
- if (!this.portal) {
65
- this.portal = new TemplatePortal(this.template, this.viewContainerRef);
66
- }
67
- this.detach();
68
- if (!this.outlet) {
69
- this.outlet = new DomPortalOutlet(this.document.createElement('div'), this.componentFactoryResolver, this.appRef, this.injector);
70
- }
71
- const element = this.template.elementRef.nativeElement;
72
- // Because we support opening the same dropdown from different triggers (which in turn have their
73
- // own `OverlayRef` panel), we have to re-insert the host element every time, otherwise we
74
- // risk it staying attached to a pane that's no longer in the DOM.
75
- element.parentNode.insertBefore(this.outlet.outletElement, element);
76
- this.portal.attach(this.outlet, context);
77
- this.attached.next();
78
- }
79
- /**
80
- * Detaches the content.
81
- * @docs-private
82
- */
83
- detach() {
84
- var _a;
85
- if ((_a = this.portal) === null || _a === void 0 ? void 0 : _a.isAttached) {
86
- this.portal.detach();
87
- }
88
- }
89
- ngOnDestroy() {
90
- var _a;
91
- (_a = this.outlet) === null || _a === void 0 ? void 0 : _a.dispose();
92
- }
93
- }
94
- /** @nocollapse */ McDropdownContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McDropdownContent, deps: [{ token: i0.TemplateRef }, { token: i0.ComponentFactoryResolver }, { token: i0.ApplicationRef }, { token: i0.Injector }, { token: i0.ViewContainerRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });
95
- /** @nocollapse */ McDropdownContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McDropdownContent, selector: "ng-template[mcDropdownContent]", ngImport: i0 });
96
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McDropdownContent, decorators: [{
97
- type: Directive,
98
- args: [{
99
- selector: 'ng-template[mcDropdownContent]'
100
- }]
101
- }], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ComponentFactoryResolver }, { type: i0.ApplicationRef }, { type: i0.Injector }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{
102
- type: Inject,
103
- args: [DOCUMENT]
104
- }] }]; } });
105
-
106
- // Boilerplate for applying mixins to McDropdownItem.
107
- /** @docs-private */
108
- class McDropdownItemBase {
109
- }
110
- // tslint:disable-next-line:naming-convention
111
- const McDropdownItemMixinBase = mixinDisabled(McDropdownItemBase);
112
- /**
113
- * This directive is intended to be used inside an mc-dropdown tag.
114
- * It exists mostly to set the role attribute.
115
- */
116
- class McDropdownItem extends McDropdownItemMixinBase {
117
- constructor(elementRef, focusMonitor, parentDropdownPanel) {
118
- super();
119
- this.elementRef = elementRef;
120
- this.focusMonitor = focusMonitor;
121
- this.parentDropdownPanel = parentDropdownPanel;
122
- /** Stream that emits when the dropdown item is hovered. */
123
- this.hovered = new Subject();
124
- /** Stream that emits when the menu item is focused. */
125
- this.focused = new Subject();
126
- /** Whether the dropdown item is highlighted. */
127
- this.highlighted = false;
128
- /** Whether the dropdown item acts as a trigger for a nested dropdown. */
129
- this.isNested = false;
130
- }
131
- ngAfterViewInit() {
132
- if (this.focusMonitor) {
133
- // Start monitoring the element so it gets the appropriate focused classes. We want
134
- // to show the focus style for menu items only when the focus was not caused by a
135
- // mouse or touch interaction.
136
- this.focusMonitor.monitor(this.elementRef, false);
137
- }
138
- }
139
- ngOnDestroy() {
140
- if (this.focusMonitor) {
141
- this.focusMonitor.stopMonitoring(this.elementRef);
142
- }
143
- this.hovered.complete();
144
- this.focused.complete();
145
- }
146
- resetStyles() {
147
- this.getHostElement().classList.remove('cdk-keyboard-focused');
148
- }
149
- /** Focuses the dropdown item. */
150
- focus(origin, options) {
151
- if (this.focusMonitor && origin) {
152
- this.focusMonitor.focusVia(this.getHostElement(), origin, options);
153
- }
154
- else {
155
- this.getHostElement().focus(options);
156
- }
157
- this.focused.next(this);
158
- }
159
- /** Returns the host DOM element. */
160
- getHostElement() {
161
- return this.elementRef.nativeElement;
162
- }
163
- /** Used to set the `tabindex`. */
164
- getTabIndex() {
165
- return this.disabled ? '-1' : '0';
166
- }
167
- /** Prevents the default element actions if it is disabled. */
168
- // We have to use a `HostListener` here in order to support both Ivy and ViewEngine.
169
- // In Ivy the `host` bindings will be merged when this class is extended, whereas in
170
- // ViewEngine they're overwritten.
171
- // TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.
172
- // tslint:disable-next-line:no-host-decorator-in-concrete
173
- checkDisabled(event) {
174
- if (this.disabled) {
175
- event.preventDefault();
176
- event.stopPropagation();
177
- }
178
- }
179
- /** Emits to the hover stream. */
180
- // We have to use a `HostListener` here in order to support both Ivy and ViewEngine.
181
- // In Ivy the `host` bindings will be merged when this class is extended, whereas in
182
- // ViewEngine they're overwritten.
183
- // TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.
184
- // tslint:disable-next-line:no-host-decorator-in-concrete
185
- handleMouseEnter() {
186
- this.hovered.next(this);
187
- }
188
- /** Gets the label to be used when determining whether the option should be focused. */
189
- getLabel() {
190
- var _a, _b;
191
- const clone = this.getHostElement().cloneNode(true);
192
- const icons = clone.querySelectorAll('[mc-icon], .mc-icon');
193
- // Strip away icons so they don't show up in the text.
194
- // tslint:disable-next-line:prefer-for-of
195
- for (let i = 0; i < icons.length; i++) {
196
- const icon = icons[i];
197
- (_a = icon.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild(icon);
198
- }
199
- return ((_b = clone.textContent) === null || _b === void 0 ? void 0 : _b.trim()) || '';
200
- }
201
- haltDisabledEvents(event) {
202
- if (this.disabled) {
203
- event.preventDefault();
204
- event.stopImmediatePropagation();
205
- event.stopPropagation();
206
- }
207
- }
208
- }
209
- /** @nocollapse */ McDropdownItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McDropdownItem, deps: [{ token: i0.ElementRef }, { token: i1.FocusMonitor }, { token: MC_DROPDOWN_PANEL, optional: true }], target: i0.ɵɵFactoryTarget.Component });
210
- /** @nocollapse */ McDropdownItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McDropdownItem, selector: "mc-dropdown-item, [mc-dropdown-item]", inputs: { disabled: "disabled" }, host: { listeners: { "click": "checkDisabled($event)", "mouseenter": "handleMouseEnter()" }, properties: { "class.mc-dropdown-item_with-icon": "icon", "class.mc-dropdown-item_highlighted": "highlighted", "attr.disabled": "disabled || null", "attr.tabindex": "getTabIndex()" }, classAttribute: "mc-dropdown-item" }, queries: [{ propertyName: "icon", first: true, predicate: McIcon, descendants: true }], exportAs: ["mcDropdownItem"], usesInheritance: true, ngImport: i0, template: "<div class=\"mc-dropdown-item-wrapper\">\n <ng-content></ng-content>\n</div>\n<i *ngIf=\"isNested\" mc-icon=\"mc-angle-right-M_16\" class=\"mc-dropdown-trigger__icon\"></i>\n<div class=\"mc-dropdown-item-overlay\" (click)=\"haltDisabledEvents($event)\"></div>\n", styles: [".mc-dropdown-item{-webkit-user-select:none;user-select:none;display:flex;align-items:center;position:relative;box-sizing:border-box;width:100%;border:1px solid transparent;outline:none;padding:0;text-align:left;white-space:nowrap}.mc-dropdown-item:not([disabled]){cursor:pointer}.mc-dropdown-item .mc-dropdown-item__caption{margin-top:4px}.mc-dropdown-item.mc-dropdown-item_with-icon .mc-dropdown-item__caption{margin-left:24px}.mc-dropdown-item .docs-navbar-version__num{margin-right:4px}.mc-dropdown-item-wrapper{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:5px 15px;padding:var(--mc-dropdown-item-size-padding, 5px 15px)}.mc-dropdown-item-wrapper [mc-icon]{padding:0 8px 2px 0;padding:var(--mc-dropdown-item-size-icon-padding, 0 8px 2px 0)}.mc-dropdown-item-overlay{position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;border-radius:inherit}.mc-dropdown-trigger__icon{margin-left:auto;padding-right:8px;padding-right:var(--dropdown-trigger-size-icon-padding-right, 8px)}.mc-dropdown__group-header{-webkit-user-select:none;user-select:none;padding:6px 15px;padding:var(--mc-dropdown-item-size-padding, 6px 15px)}.mc-dropdown__group-header.mc-dropdown__group-header_small{padding:8px 15px;padding:var(--mc-dropdown-item-size-padding, 8px 15px)}.mc-dropdown__divider{height:1px;height:var(--mc-dropdown-divider-size-height, 1px);margin:4px 0;margin:var(--mc-dropdown-divider-size-margin, 4px 0)}\n"], components: [{ type: i2.McIcon, selector: "[mc-icon]", inputs: ["color"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.McIconCSSStyler, selector: "[mc-icon]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
211
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McDropdownItem, decorators: [{
212
- type: Component,
213
- args: [{
214
- selector: 'mc-dropdown-item, [mc-dropdown-item]',
215
- exportAs: 'mcDropdownItem',
216
- templateUrl: 'dropdown-item.html',
217
- styleUrls: ['dropdown-item.scss'],
218
- inputs: ['disabled'],
219
- host: {
220
- class: 'mc-dropdown-item',
221
- '[class.mc-dropdown-item_with-icon]': 'icon',
222
- '[class.mc-dropdown-item_highlighted]': 'highlighted',
223
- '[attr.disabled]': 'disabled || null',
224
- '[attr.tabindex]': 'getTabIndex()'
225
- },
226
- changeDetection: ChangeDetectionStrategy.OnPush,
227
- encapsulation: ViewEncapsulation.None
228
- }]
229
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.FocusMonitor }, { type: undefined, decorators: [{
230
- type: Inject,
231
- args: [MC_DROPDOWN_PANEL]
232
- }, {
233
- type: Optional
234
- }] }]; }, propDecorators: { icon: [{
235
- type: ContentChild,
236
- args: [McIcon]
237
- }], checkDisabled: [{
238
- type: HostListener,
239
- args: ['click', ['$event']]
240
- }], handleMouseEnter: [{
241
- type: HostListener,
242
- args: ['mouseenter']
243
- }] } });
244
-
245
- /**
246
- * Throws an exception for the case when dropdown trigger doesn't have a valid mc-dropdown instance
247
- * @docs-private
248
- */
249
- function throwMcDropdownMissingError() {
250
- throw Error(`mcDropdownTriggerFor: must pass in an mc-dropdown instance.
251
- Example:
252
- <mc-dropdown #dropdown="mcDropdown"></mc-dropdown>
253
- <button [mcDropdownTriggerFor]="dropdown"></button>`);
254
- }
255
- /**
256
- * Throws an exception for the case when dropdown's x-position value isn't valid.
257
- * In other words, it doesn't match 'before' or 'after'.
258
- * @docs-private
259
- */
260
- function throwMcDropdownInvalidPositionX() {
261
- throw Error(`xPosition value must be either 'before' or after'.
262
- Example: <mc-dropdown [xPosition]="'before'" #dropdown="mcDropdown"></mc-dropdown>`);
263
- }
264
- /**
265
- * Throws an exception for the case when dropdown's y-position value isn't valid.
266
- * In other words, it doesn't match 'above' or 'below'.
267
- * @docs-private
268
- */
269
- function throwMcDropdownInvalidPositionY() {
270
- throw Error(`yPosition value must be either 'above' or below'.
271
- Example: <mc-dropdown [yPosition]="'above'" #dropdown="mcDropdown"></mc-dropdown>`);
272
- }
273
-
274
- /**
275
- * Animations used by the mc-dropdown component.
276
- * @docs-private
277
- */
278
- const mcDropdownAnimations = {
279
- /**
280
- * This animation controls the dropdown panel's entry and exit from the page.
281
- *
282
- * When the dropdown panel is added to the DOM, it scales in and fades in its border.
283
- *
284
- * When the dropdown panel is removed from the DOM, it simply fades out after a brief
285
- * delay to display the ripple.
286
- */
287
- transformDropdown: trigger('transformDropdown', [
288
- state('void', style({
289
- opacity: 0,
290
- transform: 'scale(0.8)'
291
- })),
292
- transition('void => enter', group([
293
- query('.mc-dropdown__content', animate('50ms linear', style({ opacity: 1 }))),
294
- animate('50ms cubic-bezier(0, 0, 0.2, 1)', style({ transform: 'scale(1)' }))
295
- ])),
296
- transition('* => void', animate('50ms 25ms linear', style({ opacity: 0 })))
297
- ]),
298
- /**
299
- * This animation fades in the background color and content of the dropdown panel
300
- * after its containing element is scaled in.
301
- */
302
- fadeInItems: trigger('fadeInItems', [
303
- // now. Remove next time we do breaking changes.
304
- state('showing', style({ opacity: 1 })),
305
- transition('void => *', [
306
- style({ opacity: 0 }),
307
- animate('200ms 60ms cubic-bezier(0.55, 0, 0.55, 0.2)')
308
- ])
309
- ])
310
- };
311
- const fadeInItems = mcDropdownAnimations.fadeInItems;
312
- const transformDropdown = mcDropdownAnimations.transformDropdown;
313
-
314
- class McDropdown {
315
- constructor(elementRef, ngZone, defaultOptions) {
316
- this.elementRef = elementRef;
317
- this.ngZone = ngZone;
318
- this.defaultOptions = defaultOptions;
319
- this.navigationWithWrap = false;
320
- this._xPosition = this.defaultOptions.xPosition;
321
- this._yPosition = this.defaultOptions.yPosition;
322
- this._overlapTriggerX = this.defaultOptions.overlapTriggerX;
323
- this._overlapTriggerY = this.defaultOptions.overlapTriggerY;
324
- this._hasBackdrop = this.defaultOptions.hasBackdrop;
325
- this.triggerWidth = '';
326
- /** Config object to be passed into the dropdown's ngClass */
327
- this.classList = {};
328
- /** Current state of the panel animation. */
329
- this.panelAnimationState = 'void';
330
- /** Emits whenever an animation on the dropdown completes. */
331
- this.animationDone = new Subject();
332
- /** Class to be added to the backdrop element. */
333
- this.backdropClass = this.defaultOptions.backdropClass;
334
- /** Event emitted when the dropdown is closed. */
335
- this.closed = new EventEmitter();
336
- /** Only the direct descendant menu items. */
337
- this.directDescendantItems = new QueryList();
338
- /** Subscription to tab events on the dropdown panel */
339
- this.tabSubscription = Subscription.EMPTY;
340
- }
341
- /** Position of the dropdown in the X axis. */
342
- get xPosition() {
343
- return this._xPosition;
344
- }
345
- set xPosition(value) {
346
- if (value !== 'before' && value !== 'after') {
347
- throwMcDropdownInvalidPositionX();
348
- }
349
- this._xPosition = value;
350
- this.setPositionClasses();
351
- }
352
- /** Position of the dropdown in the Y axis. */
353
- get yPosition() {
354
- return this._yPosition;
355
- }
356
- set yPosition(value) {
357
- if (value !== 'above' && value !== 'below') {
358
- throwMcDropdownInvalidPositionY();
359
- }
360
- this._yPosition = value;
361
- this.setPositionClasses();
362
- }
363
- /** Whether the dropdown should overlap its trigger vertically. */
364
- get overlapTriggerY() {
365
- return this._overlapTriggerY;
366
- }
367
- set overlapTriggerY(value) {
368
- this._overlapTriggerY = coerceBooleanProperty(value);
369
- }
370
- /** Whether the dropdown should overlap its trigger horizontally. */
371
- get overlapTriggerX() {
372
- return this._overlapTriggerX;
373
- }
374
- set overlapTriggerX(value) {
375
- this._overlapTriggerX = coerceBooleanProperty(value);
376
- }
377
- /** Whether the dropdown has a backdrop. */
378
- get hasBackdrop() {
379
- return this._hasBackdrop;
380
- }
381
- set hasBackdrop(value) {
382
- this._hasBackdrop = coerceBooleanProperty(value);
383
- }
384
- /**
385
- * This method takes classes set on the host mc-dropdown element and applies them on the
386
- * dropdown template that displays in the overlay container. Otherwise, it's difficult
387
- * to style the containing dropdown from outside the component.
388
- * @param classes list of class names
389
- */
390
- set panelClass(classes) {
391
- const previousPanelClass = this.previousPanelClass;
392
- if (previousPanelClass && previousPanelClass.length) {
393
- previousPanelClass
394
- .split(' ')
395
- .forEach((className) => this.classList[className] = false);
396
- }
397
- this.previousPanelClass = classes;
398
- if (classes === null || classes === void 0 ? void 0 : classes.length) {
399
- classes
400
- .split(' ')
401
- .forEach((className) => this.classList[className] = true);
402
- this.elementRef.nativeElement.className = '';
403
- }
404
- }
405
- ngOnInit() {
406
- this.setPositionClasses();
407
- }
408
- ngAfterContentInit() {
409
- this.updateDirectDescendants();
410
- this.keyManager = new FocusKeyManager(this.directDescendantItems)
411
- .withTypeAhead();
412
- if (this.navigationWithWrap) {
413
- this.keyManager.withWrap();
414
- }
415
- this.tabSubscription = this.keyManager.tabOut
416
- .subscribe(() => this.closed.emit('tab'));
417
- // If a user manually (programmatically) focuses a menu item, we need to reflect that focus
418
- // change back to the key manager. Note that we don't need to unsubscribe here because focused
419
- // is internal and we know that it gets completed on destroy.
420
- this.directDescendantItems.changes
421
- .pipe(startWith(this.directDescendantItems), switchMap((items) => merge(...items.map((item) => item.focused))))
422
- .subscribe((focusedItem) => this.keyManager.updateActiveItem(focusedItem));
423
- }
424
- ngOnDestroy() {
425
- this.directDescendantItems.destroy();
426
- this.tabSubscription.unsubscribe();
427
- this.closed.complete();
428
- }
429
- /** Stream that emits whenever the hovered dropdown item changes. */
430
- hovered() {
431
- const itemChanges = this.directDescendantItems.changes;
432
- return itemChanges.pipe(startWith(this.directDescendantItems), switchMap((items) => merge(...items.map((item) => item.hovered))));
433
- }
434
- /** Handle a keyboard event from the dropdown, delegating to the appropriate action. */
435
- handleKeydown(event) {
436
- // tslint:disable-next-line:deprecation
437
- const keyCode = event.keyCode;
438
- switch (keyCode) {
439
- case ESCAPE:
440
- this.closed.emit('keydown');
441
- break;
442
- case LEFT_ARROW:
443
- if (this.parent && this.direction === 'ltr') {
444
- this.closed.emit('keydown');
445
- }
446
- break;
447
- case RIGHT_ARROW:
448
- if (this.parent && this.direction === 'rtl') {
449
- this.closed.emit('keydown');
450
- }
451
- break;
452
- default:
453
- if (keyCode === UP_ARROW || keyCode === DOWN_ARROW) {
454
- this.keyManager.setFocusOrigin('keyboard');
455
- }
456
- this.keyManager.onKeydown(event);
457
- return;
458
- }
459
- // Don't allow the event to propagate if we've already handled it, or it may
460
- // end up reaching other overlays that were opened earlier.
461
- event.stopPropagation();
462
- }
463
- /**
464
- * Focus the first item in the dropdown.
465
- * @param origin Action from which the focus originated. Used to set the correct styling.
466
- */
467
- focusFirstItem(origin = 'program') {
468
- // When the content is rendered lazily, it takes a bit before the items are inside the DOM.
469
- if (this.lazyContent) {
470
- this.ngZone.onStable
471
- .pipe(take(1))
472
- .subscribe(() => this.keyManager.setFocusOrigin(origin).setFirstItemActive());
473
- }
474
- else {
475
- this.keyManager.setFocusOrigin(origin).setFirstItemActive();
476
- }
477
- }
478
- /**
479
- * Resets the active item in the dropdown. This is used when the dropdown is opened, allowing
480
- * the user to start from the first option when pressing the down arrow.
481
- */
482
- resetActiveItem() {
483
- var _a;
484
- (_a = this.keyManager.activeItem) === null || _a === void 0 ? void 0 : _a.resetStyles();
485
- this.keyManager.setActiveItem(-1);
486
- }
487
- /**
488
- * Adds classes to the dropdown panel based on its position. Can be used by
489
- * consumers to add specific styling based on the position.
490
- * @param posX Position of the dropdown along the x axis.
491
- * @param posY Position of the dropdown along the y axis.
492
- * @docs-private
493
- */
494
- setPositionClasses(posX = this.xPosition, posY = this.yPosition) {
495
- const classes = this.classList;
496
- classes['mc-dropdown-before'] = posX === 'before';
497
- classes['mc-dropdown-after'] = posX === 'after';
498
- classes['mc-dropdown-above'] = posY === 'above';
499
- classes['mc-dropdown-below'] = posY === 'below';
500
- }
501
- /** Starts the enter animation. */
502
- startAnimation() {
503
- this.panelAnimationState = 'enter';
504
- }
505
- /** Resets the panel animation to its initial state. */
506
- resetAnimation() {
507
- this.panelAnimationState = 'void';
508
- }
509
- /** Callback that is invoked when the panel animation completes. */
510
- onAnimationDone(event) {
511
- this.animationDone.next(event);
512
- this.isAnimating = false;
513
- }
514
- onAnimationStart(event) {
515
- this.isAnimating = true;
516
- // Scroll the content element to the top as soon as the animation starts. This is necessary,
517
- // because we move focus to the first item while it's still being animated, which can throw
518
- // the browser off when it determines the scroll position. Alternatively we can move focus
519
- // when the animation is done, however moving focus asynchronously will interrupt screen
520
- // readers which are in the process of reading out the dropdown already. We take the `element`
521
- // from the `event` since we can't use a `ViewChild` to access the pane.
522
- if (event.toState === 'enter' && this.keyManager.activeItemIndex === 0) {
523
- event.element.scrollTop = 0;
524
- }
525
- }
526
- close() {
527
- const focusOrigin = this.keyManager.getFocusOrigin() === 'keyboard' ? 'keydown' : 'click';
528
- this.closed.emit(focusOrigin);
529
- }
530
- /**
531
- * Sets up a stream that will keep track of any newly-added menu items and will update the list
532
- * of direct descendants. We collect the descendants this way, because `_allItems` can include
533
- * items that are part of child menus, and using a custom way of registering items is unreliable
534
- * when it comes to maintaining the item order.
535
- */
536
- updateDirectDescendants() {
537
- this.items.changes
538
- .pipe(startWith(this.items))
539
- .subscribe((items) => {
540
- this.directDescendantItems.reset(items.filter((item) => item.parentDropdownPanel === this));
541
- this.directDescendantItems.notifyOnChanges();
542
- });
543
- }
544
- }
545
- /** @nocollapse */ McDropdown.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McDropdown, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: MC_DROPDOWN_DEFAULT_OPTIONS }], target: i0.ɵɵFactoryTarget.Component });
546
- /** @nocollapse */ McDropdown.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McDropdown, selector: "mc-dropdown", inputs: { navigationWithWrap: "navigationWithWrap", xPosition: "xPosition", yPosition: "yPosition", overlapTriggerY: "overlapTriggerY", overlapTriggerX: "overlapTriggerX", hasBackdrop: "hasBackdrop", panelClass: ["class", "panelClass"], backdropClass: "backdropClass" }, outputs: { closed: "closed" }, providers: [
547
- { provide: MC_DROPDOWN_PANEL, useExisting: McDropdown }
548
- ], queries: [{ propertyName: "lazyContent", first: true, predicate: McDropdownContent, descendants: true }, { propertyName: "items", predicate: McDropdownItem, descendants: true }], viewQueries: [{ propertyName: "templateRef", first: true, predicate: TemplateRef, descendants: true }], exportAs: ["mcDropdown"], ngImport: i0, template: "<ng-template>\n <div class=\"mc-dropdown__panel\"\n [ngClass]=\"classList\"\n [class.mc-dropdown__panel_nested]=\"parent\"\n [style.min-width]=\"triggerWidth\"\n (keydown)=\"handleKeydown($event)\"\n (click)=\"close()\"\n [@transformDropdown]=\"panelAnimationState\"\n (@transformDropdown.start)=\"onAnimationStart($event)\"\n (@transformDropdown.done)=\"onAnimationDone($event)\"\n tabindex=\"-1\">\n\n <div class=\"mc-dropdown__content\">\n <ng-content></ng-content>\n </div>\n </div>\n</ng-template>\n", styles: [".mc-dropdown__panel{margin-top:-1px;max-width:640px;max-width:var(--mc-dropdown-panel-size-max-width, 640px);border-width:1px;border-width:var(--mc-dropdown-panel-size-border-width, 1px);border-style:solid;border-bottom-left-radius:3px;border-bottom-left-radius:var(--mc-dropdown-panel-size-border-radius, 3px);border-bottom-right-radius:3px;border-bottom-right-radius:var(--mc-dropdown-panel-size-border-radius, 3px);padding:4px 0;padding:var(--mc-dropdown-panel-size-padding, 4px 0)}.mc-dropdown__panel.mc-dropdown__panel_nested{border-top-left-radius:3px;border-top-left-radius:var(--mc-dropdown-panel-size-border-radius, 3px);border-top-right-radius:3px;border-top-right-radius:var(--mc-dropdown-panel-size-border-radius, 3px)}.mc-dropdown__panel.ng-animating{pointer-events:none}.mc-dropdown__content{display:flex;flex-direction:column}\n"], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], animations: [
549
- mcDropdownAnimations.transformDropdown,
550
- mcDropdownAnimations.fadeInItems
551
- ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
552
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McDropdown, decorators: [{
553
- type: Component,
554
- args: [{
555
- selector: 'mc-dropdown',
556
- exportAs: 'mcDropdown',
557
- templateUrl: 'dropdown.html',
558
- styleUrls: ['dropdown.scss'],
559
- changeDetection: ChangeDetectionStrategy.OnPush,
560
- encapsulation: ViewEncapsulation.None,
561
- animations: [
562
- mcDropdownAnimations.transformDropdown,
563
- mcDropdownAnimations.fadeInItems
564
- ],
565
- providers: [
566
- { provide: MC_DROPDOWN_PANEL, useExisting: McDropdown }
567
- ]
568
- }]
569
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: undefined, decorators: [{
570
- type: Inject,
571
- args: [MC_DROPDOWN_DEFAULT_OPTIONS]
572
- }] }]; }, propDecorators: { navigationWithWrap: [{
573
- type: Input
574
- }], xPosition: [{
575
- type: Input
576
- }], yPosition: [{
577
- type: Input
578
- }], overlapTriggerY: [{
579
- type: Input
580
- }], overlapTriggerX: [{
581
- type: Input
582
- }], hasBackdrop: [{
583
- type: Input
584
- }], panelClass: [{
585
- type: Input,
586
- args: ['class']
587
- }], backdropClass: [{
588
- type: Input
589
- }], templateRef: [{
590
- type: ViewChild,
591
- args: [TemplateRef, { static: false }]
592
- }], items: [{
593
- type: ContentChildren,
594
- args: [McDropdownItem, { descendants: true }]
595
- }], lazyContent: [{
596
- type: ContentChild,
597
- args: [McDropdownContent, { static: false }]
598
- }], closed: [{
599
- type: Output
600
- }] } });
601
-
602
- /** Injection token that determines the scroll handling while the dropdown is open. */
603
- const MC_DROPDOWN_SCROLL_STRATEGY = new InjectionToken('mc-dropdown-scroll-strategy');
604
- /** @docs-private */
605
- // tslint:disable-next-line:naming-convention
606
- function MC_DROPDOWN_SCROLL_STRATEGY_FACTORY(overlay) {
607
- return () => overlay.scrollStrategies.reposition();
608
- }
609
- /** @docs-private */
610
- const MC_DROPDOWN_SCROLL_STRATEGY_FACTORY_PROVIDER = {
611
- provide: MC_DROPDOWN_SCROLL_STRATEGY,
612
- deps: [Overlay],
613
- useFactory: MC_DROPDOWN_SCROLL_STRATEGY_FACTORY
614
- };
615
- /** Default top padding of the nested dropdown panel. */
616
- const NESTED_PANEL_TOP_PADDING = 4;
617
- const NESTED_PANEL_LEFT_PADDING = 8;
618
- /** Options for binding a passive event listener. */
619
- const passiveEventListenerOptions = normalizePassiveListenerOptions({ passive: true });
620
- /**
621
- * This directive is intended to be used in conjunction with an mc-dropdown tag. It is
622
- * responsible for toggling the display of the provided dropdown instance.
623
- */
624
- class McDropdownTrigger {
625
- constructor(overlay, elementRef, viewContainerRef, scrollStrategy, parent, dropdownItemInstance, _dir, focusMonitor) {
626
- this.overlay = overlay;
627
- this.elementRef = elementRef;
628
- this.viewContainerRef = viewContainerRef;
629
- this.scrollStrategy = scrollStrategy;
630
- this.parent = parent;
631
- this.dropdownItemInstance = dropdownItemInstance;
632
- this._dir = _dir;
633
- this.focusMonitor = focusMonitor;
634
- this.openByArrowDown = true;
635
- /**
636
- * Whether focus should be restored when the menu is closed.
637
- * Note that disabling this option can have accessibility implications
638
- * and it's up to you to manage focus, if you decide to turn it off.
639
- */
640
- this.restoreFocus = true;
641
- /** Event emitted when the associated dropdown is opened. */
642
- this.dropdownOpened = new EventEmitter();
643
- /** Event emitted when the associated dropdown is closed. */
644
- this.dropdownClosed = new EventEmitter();
645
- this._opened = false;
646
- this.overlayRef = null;
647
- this.closeSubscription = Subscription.EMPTY;
648
- this.hoverSubscription = Subscription.EMPTY;
649
- /**
650
- * Handles touch start events on the trigger.
651
- * Needs to be an arrow function so we can easily use addEventListener and removeEventListener.
652
- */
653
- this.handleTouchStart = () => this.openedBy = 'touch';
654
- elementRef.nativeElement.addEventListener('touchstart', this.handleTouchStart, passiveEventListenerOptions);
655
- if (dropdownItemInstance) {
656
- dropdownItemInstance.isNested = this.isNested();
657
- }
658
- }
659
- /** References the dropdown instance that the trigger is associated with. */
660
- get dropdown() {
661
- return this._dropdown;
662
- }
663
- set dropdown(dropdown) {
664
- if (dropdown === this._dropdown) {
665
- return;
666
- }
667
- this._dropdown = dropdown;
668
- this.closeSubscription.unsubscribe();
669
- if (dropdown) {
670
- this.closeSubscription = dropdown.closed
671
- .asObservable()
672
- .subscribe((reason) => {
673
- this.destroy(reason);
674
- // If a click closed the dropdown, we should close the entire chain of nested dropdowns.
675
- if (['click', 'tab'].includes(reason) && this.parent) {
676
- this.parent.closed.emit(reason);
677
- }
678
- });
679
- }
680
- }
681
- /** The text direction of the containing app. */
682
- get dir() {
683
- var _a;
684
- return ((_a = this._dir) === null || _a === void 0 ? void 0 : _a.value) === 'rtl' ? 'rtl' : 'ltr';
685
- }
686
- /** Whether the dropdown is open. */
687
- get opened() {
688
- return this._opened;
689
- }
690
- ngAfterContentInit() {
691
- this.check();
692
- this.handleHover();
693
- }
694
- ngOnDestroy() {
695
- if (this.overlayRef) {
696
- this.overlayRef.dispose();
697
- this.overlayRef = null;
698
- }
699
- this.elementRef.nativeElement.removeEventListener('touchstart', this.handleTouchStart, passiveEventListenerOptions);
700
- this.cleanUpSubscriptions();
701
- }
702
- /** Whether the dropdown triggers a nested dropdown or a top-level one. */
703
- isNested() {
704
- return !!(this.dropdownItemInstance && this.parent);
705
- }
706
- /** Toggles the dropdown between the open and closed states. */
707
- toggle() {
708
- // tslint:disable-next-line:no-void-expression
709
- return this._opened ? this.close() : this.open();
710
- }
711
- /** Opens the dropdown. */
712
- open() {
713
- if (this._opened) {
714
- return;
715
- }
716
- this.check();
717
- const overlayRef = this.createOverlay();
718
- const overlayConfig = overlayRef.getConfig();
719
- this.setPosition(overlayConfig.positionStrategy);
720
- overlayConfig.hasBackdrop = this.dropdown.hasBackdrop ? !this.isNested() : this.dropdown.hasBackdrop;
721
- overlayRef.attach(this.getPortal());
722
- if (this.dropdown.lazyContent) {
723
- this.dropdown.lazyContent.detach();
724
- this.dropdown.lazyContent.attach(this.data);
725
- }
726
- this.closeSubscription = this.closingActions()
727
- .subscribe(() => this.close());
728
- this.init();
729
- if (this.dropdown instanceof McDropdown) {
730
- this.dropdown.startAnimation();
731
- }
732
- }
733
- /** Closes the dropdown. */
734
- close() {
735
- this.dropdown.closed.emit();
736
- }
737
- /**
738
- * Focuses the dropdown trigger.
739
- */
740
- focus(origin, options) {
741
- if (this.focusMonitor && origin) {
742
- this.focusMonitor.focusVia(this.elementRef.nativeElement, origin, options);
743
- }
744
- else {
745
- this.elementRef.nativeElement.focus();
746
- }
747
- }
748
- /** Handles mouse presses on the trigger. */
749
- handleMousedown(event) {
750
- // Since right or middle button clicks won't trigger the `click` event,
751
- // we shouldn't consider the dropdown as opened by mouse in those cases.
752
- this.openedBy = event.button === 0 ? 'mouse' : undefined;
753
- // Since clicking on the trigger won't close the dropdown if it opens a nested dropdown,
754
- // we should prevent focus from moving onto it via click to avoid the
755
- // highlight from lingering on the dropdown item.
756
- if (this.isNested()) {
757
- event.preventDefault();
758
- }
759
- }
760
- /** Handles key presses on the trigger. */
761
- handleKeydown(event) {
762
- // tslint:disable-next-line:deprecation
763
- const keyCode = event.keyCode;
764
- if (keyCode === ENTER || keyCode === SPACE) {
765
- this.openedBy = 'keyboard';
766
- event.preventDefault();
767
- if (this.isNested()) {
768
- // Stop event propagation to avoid closing the parent dropdown.
769
- event.stopPropagation();
770
- this.open();
771
- }
772
- else {
773
- this.toggle();
774
- }
775
- }
776
- if ((this.isNested() &&
777
- ((keyCode === RIGHT_ARROW && this.dir === 'ltr') || (keyCode === LEFT_ARROW && this.dir === 'rtl'))) ||
778
- (!this.isNested() && (keyCode === DOWN_ARROW$1 && this.openByArrowDown))) {
779
- event.preventDefault();
780
- this.openedBy = 'keyboard';
781
- this.open();
782
- }
783
- }
784
- /** Handles click events on the trigger. */
785
- handleClick(event) {
786
- if (this.isNested()) {
787
- // Stop event propagation to avoid closing the parent dropdown.
788
- event.stopPropagation();
789
- this.open();
790
- }
791
- else {
792
- this.toggle();
793
- }
794
- }
795
- /** Closes the dropdown and does the necessary cleanup. */
796
- destroy(reason) {
797
- if (!this.overlayRef || !this.opened) {
798
- return;
799
- }
800
- this.lastDestroyReason = reason;
801
- this.dropdown.resetActiveItem();
802
- this.closeSubscription.unsubscribe();
803
- this.overlayRef.detach();
804
- if (this.restoreFocus && (reason === 'keydown' || !this.openedBy || !this.isNested())) {
805
- this.focus(this.openedBy);
806
- }
807
- this.openedBy = undefined;
808
- if (this.dropdown instanceof McDropdown) {
809
- this.dropdown.resetAnimation();
810
- const animationSubscription = this.dropdown.animationDone
811
- .pipe(filter((event) => event.toState === 'void'), take(1));
812
- if (this.dropdown.lazyContent) {
813
- // Wait for the exit animation to finish before detaching the content.
814
- animationSubscription
815
- .pipe(
816
- // Interrupt if the content got re-attached.
817
- takeUntil(this.dropdown.lazyContent.attached))
818
- .subscribe({
819
- next: () => this.dropdown.lazyContent.detach(),
820
- // No matter whether the content got re-attached, reset the this.dropdown.
821
- complete: () => this.setIsOpened(false)
822
- });
823
- }
824
- else {
825
- animationSubscription
826
- .subscribe(() => this.setIsOpened(false));
827
- }
828
- }
829
- else {
830
- this.setIsOpened(false);
831
- if (this.dropdown.lazyContent) {
832
- this.dropdown.lazyContent.detach();
833
- }
834
- }
835
- }
836
- /**
837
- * This method sets the dropdown state to open and focuses the first item if
838
- * the dropdown was opened via the keyboard.
839
- */
840
- init() {
841
- this.dropdown.parent = this.isNested() ? this.parent : undefined;
842
- this.dropdown.direction = this.dir;
843
- if (!this.dropdown.parent) {
844
- this.dropdown.triggerWidth = this.getWidth();
845
- }
846
- this.dropdown.focusFirstItem(this.openedBy || 'program');
847
- this.setIsOpened(true);
848
- }
849
- // set state rather than toggle to support triggers sharing a dropdown
850
- setIsOpened(isOpen) {
851
- this._opened = isOpen;
852
- // tslint:disable-next-line:no-void-expression
853
- this._opened ? this.dropdownOpened.emit() : this.dropdownClosed.emit();
854
- if (this.isNested()) {
855
- this.dropdownItemInstance.highlighted = isOpen;
856
- }
857
- }
858
- /**
859
- * This method checks that a valid instance of McDropdown has been passed into
860
- * mcDropdownTriggerFor. If not, an exception is thrown.
861
- */
862
- check() {
863
- if (!this.dropdown) {
864
- throwMcDropdownMissingError();
865
- }
866
- }
867
- /**
868
- * This method creates the overlay from the provided dropdown's template and saves its
869
- * OverlayRef so that it can be attached to the DOM when open is called.
870
- */
871
- createOverlay() {
872
- if (!this.overlayRef) {
873
- const config = this.getOverlayConfig();
874
- this.subscribeToPositions(config.positionStrategy);
875
- this.overlayRef = this.overlay.create(config);
876
- // Consume the `keydownEvents` in order to prevent them from going to another overlay.
877
- // Ideally we'd also have our keyboard event logic in here, however doing so will
878
- // break anybody that may have implemented the `McDropdownPanel` themselves.
879
- this.overlayRef.keydownEvents()
880
- .subscribe();
881
- }
882
- return this.overlayRef;
883
- }
884
- /**
885
- * This method builds the configuration object needed to create the overlay, the OverlayState.
886
- * @returns OverlayConfig
887
- */
888
- getOverlayConfig() {
889
- return new OverlayConfig({
890
- positionStrategy: this.overlay.position()
891
- .flexibleConnectedTo(this.elementRef)
892
- .withLockedPosition()
893
- .withTransformOriginOn('.mc-dropdown__panel'),
894
- backdropClass: this.dropdown.backdropClass || 'cdk-overlay-transparent-backdrop',
895
- scrollStrategy: this.scrollStrategy(),
896
- direction: this.dir
897
- });
898
- }
899
- /**
900
- * Listens to changes in the position of the overlay and sets the correct classes
901
- * on the dropdown based on the new position. This ensures the animation origin is always
902
- * correct, even if a fallback position is used for the overlay.
903
- */
904
- subscribeToPositions(position) {
905
- if (this.dropdown.setPositionClasses) {
906
- position.positionChanges
907
- .subscribe((change) => {
908
- const posX = change.connectionPair.overlayX === 'start' ? 'after' : 'before';
909
- const posY = change.connectionPair.overlayY === 'top' ? 'below' : 'above';
910
- this.dropdown.setPositionClasses(posX, posY);
911
- });
912
- }
913
- }
914
- /**
915
- * Sets the appropriate positions on a position strategy
916
- * so the overlay connects with the trigger correctly.
917
- * @param positionStrategy Strategy whose position to update.
918
- */
919
- setPosition(positionStrategy) {
920
- let [originX, originFallbackX, overlayX, overlayFallbackX] = this.dropdown.xPosition === 'before' ?
921
- ['end', 'start', 'end', 'start'] :
922
- ['start', 'end', 'start', 'end'];
923
- // tslint:disable-next-line:prefer-const
924
- let [overlayY, overlayFallbackY, originY, originFallbackY] = this.dropdown.yPosition === 'above' ?
925
- ['bottom', 'top', 'bottom', 'top'] :
926
- ['top', 'bottom', 'top', 'bottom'];
927
- let offsetY = 0;
928
- let offsetX = 0;
929
- if (this.isNested()) {
930
- // When the dropdown is nested, it should always align itself
931
- // to the edges of the trigger, instead of overlapping it.
932
- overlayFallbackX = originX = this.dropdown.xPosition === 'before' ? 'start' : 'end';
933
- originFallbackX = overlayX = originX === 'end' ? 'start' : 'end';
934
- offsetY = overlayY === 'bottom' ? NESTED_PANEL_TOP_PADDING : -NESTED_PANEL_TOP_PADDING;
935
- offsetX = NESTED_PANEL_LEFT_PADDING;
936
- }
937
- else {
938
- if (!this.dropdown.overlapTriggerY) {
939
- originY = overlayY === 'top' ? 'bottom' : 'top';
940
- originFallbackY = overlayFallbackY === 'top' ? 'bottom' : 'top';
941
- }
942
- if (!this.dropdown.overlapTriggerX) {
943
- overlayFallbackX = originX = this.dropdown.xPosition === 'before' ? 'start' : 'end';
944
- originFallbackX = overlayX = originX === 'end' ? 'start' : 'end';
945
- }
946
- }
947
- positionStrategy.withPositions([
948
- { originX, originY, overlayX, overlayY, offsetY, offsetX: -offsetX },
949
- { originX: originFallbackX, originY, overlayX: overlayFallbackX, overlayY, offsetY, offsetX },
950
- {
951
- originX,
952
- originY: originFallbackY,
953
- overlayX,
954
- overlayY: overlayFallbackY,
955
- offsetY: -offsetY,
956
- offsetX: -offsetX
957
- },
958
- {
959
- originX: originFallbackX,
960
- originY: originFallbackY,
961
- overlayX: overlayFallbackX,
962
- overlayY: overlayFallbackY,
963
- offsetY: -offsetY,
964
- offsetX: -offsetX
965
- }
966
- ]);
967
- }
968
- /** Cleans up the active subscriptions. */
969
- cleanUpSubscriptions() {
970
- this.closeSubscription.unsubscribe();
971
- this.hoverSubscription.unsubscribe();
972
- }
973
- /** Returns a stream that emits whenever an action that should close the dropdown occurs. */
974
- closingActions() {
975
- const backdrop = this.overlayRef.backdropClick();
976
- const outsidePointerEvents = this.overlayRef.outsidePointerEvents();
977
- const detachments = this.overlayRef.detachments();
978
- const parentClose = this.parent ? this.parent.closed : of();
979
- const hover = this.parent ? this.parent.hovered()
980
- .pipe(filter((active) => active !== this.dropdownItemInstance), filter(() => this._opened)) : of();
981
- return merge(backdrop, outsidePointerEvents, parentClose, hover, detachments);
982
- }
983
- /** Handles the cases where the user hovers over the trigger. */
984
- handleHover() {
985
- // Subscribe to changes in the hovered item in order to toggle the panel.
986
- if (!this.isNested()) {
987
- return;
988
- }
989
- this.hoverSubscription = this.parent.hovered()
990
- // Since we might have multiple competing triggers for the same dropdown (e.g. a nested dropdown
991
- // with different data and triggers), we have to delay it by a tick to ensure that
992
- // it won't be closed immediately after it is opened.
993
- .pipe(filter((active) => active === this.dropdownItemInstance && !active.disabled), delay(0, asapScheduler))
994
- .subscribe(() => {
995
- this.openedBy = 'mouse';
996
- // If the same dropdown is used between multiple triggers, it might still be animating
997
- // while the new trigger tries to re-open it. Wait for the animation to finish
998
- // before doing so. Also interrupt if the user moves to another item.
999
- if (this.dropdown instanceof McDropdown && this.dropdown.isAnimating) {
1000
- // We need the `delay(0)` here in order to avoid
1001
- // 'changed after checked' errors in some cases. See #12194.
1002
- this.dropdown.animationDone
1003
- .pipe(take(1), delay(0, asapScheduler), takeUntil(this.parent.hovered()))
1004
- .subscribe(() => this.open());
1005
- }
1006
- else {
1007
- this.open();
1008
- }
1009
- });
1010
- }
1011
- /** Gets the portal that should be attached to the overlay. */
1012
- getPortal() {
1013
- // Note that we can avoid this check by keeping the portal on the dropdown panel.
1014
- // While it would be cleaner, we'd have to introduce another required method on
1015
- // `McDropdownPanel`, making it harder to consume.
1016
- if (!this.portal || this.portal.templateRef !== this.dropdown.templateRef) {
1017
- this.portal = new TemplatePortal(this.dropdown.templateRef, this.viewContainerRef);
1018
- }
1019
- return this.portal;
1020
- }
1021
- getWidth() {
1022
- const nativeElement = this.elementRef.nativeElement;
1023
- const { width, borderRightWidth, borderLeftWidth } = window.getComputedStyle(nativeElement);
1024
- return `${parseInt(width) - parseInt(borderRightWidth) - parseInt(borderLeftWidth)}px`;
1025
- }
1026
- }
1027
- /** @nocollapse */ McDropdownTrigger.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McDropdownTrigger, deps: [{ token: i1$1.Overlay }, { token: i0.ElementRef }, { token: i0.ViewContainerRef }, { token: MC_DROPDOWN_SCROLL_STRATEGY }, { token: McDropdown, optional: true }, { token: McDropdownItem, optional: true, self: true }, { token: i4.Directionality, optional: true }, { token: i1.FocusMonitor }], target: i0.ɵɵFactoryTarget.Directive });
1028
- /** @nocollapse */ McDropdownTrigger.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McDropdownTrigger, selector: "[mcDropdownTriggerFor]", inputs: { data: ["mcDropdownTriggerData", "data"], openByArrowDown: "openByArrowDown", restoreFocus: ["mcDropdownTriggerRestoreFocus", "restoreFocus"], dropdown: ["mcDropdownTriggerFor", "dropdown"] }, outputs: { dropdownOpened: "dropdownOpened", dropdownClosed: "dropdownClosed" }, host: { listeners: { "mousedown": "handleMousedown($event)", "keydown": "handleKeydown($event)", "click": "handleClick($event)" }, properties: { "class.mc-pressed": "opened" }, classAttribute: "mc-dropdown-trigger" }, exportAs: ["mcDropdownTrigger"], ngImport: i0 });
1029
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McDropdownTrigger, decorators: [{
1030
- type: Directive,
1031
- args: [{
1032
- selector: `[mcDropdownTriggerFor]`,
1033
- exportAs: 'mcDropdownTrigger',
1034
- host: {
1035
- class: 'mc-dropdown-trigger',
1036
- '[class.mc-pressed]': 'opened',
1037
- '(mousedown)': 'handleMousedown($event)',
1038
- '(keydown)': 'handleKeydown($event)',
1039
- '(click)': 'handleClick($event)'
1040
- }
1041
- }]
1042
- }], ctorParameters: function () { return [{ type: i1$1.Overlay }, { type: i0.ElementRef }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{
1043
- type: Inject,
1044
- args: [MC_DROPDOWN_SCROLL_STRATEGY]
1045
- }] }, { type: McDropdown, decorators: [{
1046
- type: Optional
1047
- }] }, { type: McDropdownItem, decorators: [{
1048
- type: Optional
1049
- }, {
1050
- type: Self
1051
- }] }, { type: i4.Directionality, decorators: [{
1052
- type: Optional
1053
- }] }, { type: i1.FocusMonitor }]; }, propDecorators: { data: [{
1054
- type: Input,
1055
- args: ['mcDropdownTriggerData']
1056
- }], openByArrowDown: [{
1057
- type: Input
1058
- }], restoreFocus: [{
1059
- type: Input,
1060
- args: ['mcDropdownTriggerRestoreFocus']
1061
- }], dropdown: [{
1062
- type: Input,
1063
- args: ['mcDropdownTriggerFor']
1064
- }], dropdownOpened: [{
1065
- type: Output
1066
- }], dropdownClosed: [{
1067
- type: Output
1068
- }] } });
1069
-
1070
- class McDropdownModule {
1071
- }
1072
- /** @nocollapse */ McDropdownModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McDropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1073
- /** @nocollapse */ McDropdownModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McDropdownModule, declarations: [McDropdown,
1074
- McDropdownItem,
1075
- McDropdownTrigger,
1076
- McDropdownContent], imports: [CommonModule,
1077
- OverlayModule,
1078
- McIconModule], exports: [McDropdown,
1079
- McDropdownItem,
1080
- McDropdownTrigger,
1081
- McDropdownContent] });
1082
- /** @nocollapse */ McDropdownModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McDropdownModule, providers: [MC_DROPDOWN_SCROLL_STRATEGY_FACTORY_PROVIDER], imports: [[
1083
- CommonModule,
1084
- OverlayModule,
1085
- McIconModule
1086
- ]] });
1087
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: McDropdownModule, decorators: [{
1088
- type: NgModule,
1089
- args: [{
1090
- imports: [
1091
- CommonModule,
1092
- OverlayModule,
1093
- McIconModule
1094
- ],
1095
- exports: [
1096
- McDropdown,
1097
- McDropdownItem,
1098
- McDropdownTrigger,
1099
- McDropdownContent
1100
- ],
1101
- declarations: [
1102
- McDropdown,
1103
- McDropdownItem,
1104
- McDropdownTrigger,
1105
- McDropdownContent
1106
- ],
1107
- providers: [MC_DROPDOWN_SCROLL_STRATEGY_FACTORY_PROVIDER]
1108
- }]
1109
- }] });
1110
-
1111
- /**
1112
- * Generated bundle index. Do not edit.
1113
- */
1114
-
1115
- export { MC_DROPDOWN_DEFAULT_OPTIONS, MC_DROPDOWN_DEFAULT_OPTIONS_FACTORY, MC_DROPDOWN_PANEL, MC_DROPDOWN_SCROLL_STRATEGY, MC_DROPDOWN_SCROLL_STRATEGY_FACTORY, MC_DROPDOWN_SCROLL_STRATEGY_FACTORY_PROVIDER, McDropdown, McDropdownContent, McDropdownItem, McDropdownModule, McDropdownTrigger, NESTED_PANEL_LEFT_PADDING, NESTED_PANEL_TOP_PADDING, fadeInItems, mcDropdownAnimations, throwMcDropdownInvalidPositionX, throwMcDropdownInvalidPositionY, throwMcDropdownMissingError, transformDropdown };
1116
- //# sourceMappingURL=ptsecurity-mosaic-dropdown.js.map