@ptsecurity/mosaic 12.2.2 → 13.0.0

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