@ptsecurity/mosaic 12.2.1 → 13.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (913) hide show
  1. package/_theming.scss +1000 -934
  2. package/_visual.scss +849 -694
  3. package/autocomplete/README.md +0 -0
  4. package/autocomplete/package.json +5 -5
  5. package/button/README.md +0 -0
  6. package/button/button.component.d.ts +17 -14
  7. package/button/button.module.d.ts +1 -1
  8. package/button/package.json +5 -5
  9. package/button-toggle/README.md +0 -0
  10. package/button-toggle/package.json +5 -5
  11. package/card/README.md +0 -0
  12. package/card/package.json +5 -5
  13. package/checkbox/README.md +1 -0
  14. package/checkbox/package.json +5 -5
  15. package/core/formatters/date/formatter.d.ts +41 -17
  16. package/core/formatters/date/templates/en-US.d.ts +8 -8
  17. package/core/formatters/date/templates/ru-RU.d.ts +8 -8
  18. package/core/package.json +5 -5
  19. package/core/public-api.d.ts +1 -0
  20. package/core/version.d.ts +2 -0
  21. package/datepicker/README.md +0 -0
  22. package/datepicker/package.json +5 -5
  23. package/design-tokens/{tokens → legacy-2017/tokens}/components/alert.json5 +0 -0
  24. package/design-tokens/{tokens → legacy-2017/tokens}/components/autocomplete.json5 +0 -0
  25. package/design-tokens/{tokens → legacy-2017/tokens}/components/badge.json5 +0 -0
  26. package/design-tokens/{tokens → legacy-2017/tokens}/components/button-toggle.json5 +0 -0
  27. package/design-tokens/{tokens → legacy-2017/tokens}/components/button.json5 +0 -0
  28. package/design-tokens/{tokens → legacy-2017/tokens}/components/card.json5 +0 -0
  29. package/design-tokens/legacy-2017/tokens/components/checkbox.json5 +39 -0
  30. package/design-tokens/{tokens → legacy-2017/tokens}/components/datepicker.json5 +0 -0
  31. package/design-tokens/{tokens → legacy-2017/tokens}/components/divider.json5 +0 -0
  32. package/design-tokens/{tokens → legacy-2017/tokens}/components/dropdown.json5 +0 -0
  33. package/design-tokens/{tokens → legacy-2017/tokens}/components/form-field.json5 +0 -0
  34. package/design-tokens/{tokens → legacy-2017/tokens}/components/forms.json5 +0 -0
  35. package/design-tokens/{tokens → legacy-2017/tokens}/components/input.json5 +0 -0
  36. package/design-tokens/{tokens → legacy-2017/tokens}/components/link.json5 +0 -0
  37. package/design-tokens/{tokens → legacy-2017/tokens}/components/list.json5 +0 -0
  38. package/design-tokens/legacy-2017/tokens/components/modal.json5 +79 -0
  39. package/design-tokens/legacy-2017/tokens/components/navbar.json5 +69 -0
  40. package/design-tokens/{tokens → legacy-2017/tokens}/components/optgroup.json5 +0 -0
  41. package/design-tokens/{tokens → legacy-2017/tokens}/components/option.json5 +0 -0
  42. package/design-tokens/{tokens → legacy-2017/tokens}/components/popover.json5 +0 -0
  43. package/design-tokens/{tokens → legacy-2017/tokens}/components/popup.json5 +0 -0
  44. package/design-tokens/{tokens → legacy-2017/tokens}/components/progress-bar.json5 +0 -0
  45. package/design-tokens/{tokens → legacy-2017/tokens}/components/progress-spinner.json5 +0 -0
  46. package/design-tokens/legacy-2017/tokens/components/radio.json5 +44 -0
  47. package/design-tokens/{tokens → legacy-2017/tokens}/components/select.json5 +0 -0
  48. package/design-tokens/{tokens → legacy-2017/tokens}/components/sidepanel.json5 +0 -0
  49. package/design-tokens/{tokens → legacy-2017/tokens}/components/table.json5 +0 -0
  50. package/design-tokens/{tokens → legacy-2017/tokens}/components/tabs.json5 +0 -0
  51. package/design-tokens/legacy-2017/tokens/components/tags.json5 +132 -0
  52. package/design-tokens/{tokens → legacy-2017/tokens}/components/textarea.json5 +0 -0
  53. package/design-tokens/{tokens → legacy-2017/tokens}/components/timepicker.json5 +0 -0
  54. package/design-tokens/legacy-2017/tokens/components/toggle.json5 +79 -0
  55. package/design-tokens/{tokens → legacy-2017/tokens}/components/tooltip.json5 +0 -0
  56. package/design-tokens/{tokens → legacy-2017/tokens}/components/tree.json5 +0 -0
  57. package/design-tokens/{tokens → legacy-2017/tokens}/properties/aliases.json5 +0 -0
  58. package/design-tokens/{tokens → legacy-2017/tokens}/properties/colors.json5 +0 -0
  59. package/design-tokens/{tokens → legacy-2017/tokens}/properties/font.json5 +0 -0
  60. package/design-tokens/{tokens → legacy-2017/tokens}/properties/globals.json5 +0 -0
  61. package/design-tokens/{tokens → legacy-2017/tokens}/properties/padding.json5 +0 -0
  62. package/design-tokens/{tokens → legacy-2017/tokens}/properties/palette.json5 +0 -0
  63. package/design-tokens/{tokens → legacy-2017/tokens}/properties/typography.json5 +0 -0
  64. package/design-tokens/legacy-2017/tokens.d.ts +7659 -0
  65. package/design-tokens/package.json +5 -5
  66. package/design-tokens/pt-2022/tokens/components/alert.json5 +83 -0
  67. package/design-tokens/pt-2022/tokens/components/autocomplete.json5 +11 -0
  68. package/design-tokens/pt-2022/tokens/components/badge.json5 +184 -0
  69. package/design-tokens/pt-2022/tokens/components/button-toggle.json5 +10 -0
  70. package/design-tokens/pt-2022/tokens/components/button.json5 +143 -0
  71. package/design-tokens/pt-2022/tokens/components/card.json5 +51 -0
  72. package/design-tokens/pt-2022/tokens/components/checkbox.json5 +39 -0
  73. package/design-tokens/pt-2022/tokens/components/datepicker.json5 +64 -0
  74. package/design-tokens/pt-2022/tokens/components/divider.json5 +8 -0
  75. package/design-tokens/pt-2022/tokens/components/dropdown.json5 +47 -0
  76. package/design-tokens/pt-2022/tokens/components/form-field.json5 +52 -0
  77. package/design-tokens/pt-2022/tokens/components/forms.json5 +52 -0
  78. package/design-tokens/pt-2022/tokens/components/input.json5 +13 -0
  79. package/design-tokens/pt-2022/tokens/components/link.json5 +56 -0
  80. package/design-tokens/pt-2022/tokens/components/list.json5 +15 -0
  81. package/design-tokens/pt-2022/tokens/components/modal.json5 +79 -0
  82. package/design-tokens/pt-2022/tokens/components/navbar.json5 +69 -0
  83. package/design-tokens/pt-2022/tokens/components/optgroup.json5 +10 -0
  84. package/design-tokens/pt-2022/tokens/components/option.json5 +12 -0
  85. package/design-tokens/pt-2022/tokens/components/popover.json5 +68 -0
  86. package/design-tokens/pt-2022/tokens/components/popup.json5 +18 -0
  87. package/design-tokens/pt-2022/tokens/components/progress-bar.json5 +13 -0
  88. package/design-tokens/pt-2022/tokens/components/progress-spinner.json5 +7 -0
  89. package/design-tokens/pt-2022/tokens/components/radio.json5 +44 -0
  90. package/design-tokens/pt-2022/tokens/components/select.json5 +25 -0
  91. package/design-tokens/pt-2022/tokens/components/sidepanel.json5 +30 -0
  92. package/design-tokens/pt-2022/tokens/components/table.json5 +15 -0
  93. package/design-tokens/pt-2022/tokens/components/tabs.json5 +25 -0
  94. package/design-tokens/pt-2022/tokens/components/tags.json5 +132 -0
  95. package/design-tokens/pt-2022/tokens/components/textarea.json5 +12 -0
  96. package/design-tokens/pt-2022/tokens/components/timepicker.json5 +7 -0
  97. package/design-tokens/pt-2022/tokens/components/toggle.json5 +79 -0
  98. package/design-tokens/pt-2022/tokens/components/tooltip.json5 +83 -0
  99. package/design-tokens/pt-2022/tokens/components/tree.json5 +12 -0
  100. package/design-tokens/pt-2022/tokens/properties/aliases.json5 +3 -0
  101. package/design-tokens/pt-2022/tokens/properties/colors.json5 +112 -0
  102. package/design-tokens/pt-2022/tokens/properties/font.json5 +15 -0
  103. package/design-tokens/pt-2022/tokens/properties/globals.json5 +30 -0
  104. package/design-tokens/pt-2022/tokens/properties/padding.json5 +3 -0
  105. package/design-tokens/pt-2022/tokens/properties/palette.json5 +226 -0
  106. package/design-tokens/pt-2022/tokens/properties/typography.json5 +140 -0
  107. package/design-tokens/pt-2022/tokens.d.ts +8696 -0
  108. package/design-tokens/public-api.d.ts +3 -1
  109. package/design-tokens/style-dictionary/build.js +6 -0
  110. package/design-tokens/style-dictionary/configs/index.js +2 -1
  111. package/divider/README.md +0 -0
  112. package/divider/package.json +5 -5
  113. package/dropdown/dropdown-item.component.d.ts +1 -0
  114. package/dropdown/package.json +5 -5
  115. package/esm2020/autocomplete/autocomplete-origin.directive.mjs +21 -0
  116. package/esm2020/autocomplete/autocomplete-trigger.directive.mjs +555 -0
  117. package/esm2020/autocomplete/autocomplete.component.mjs +154 -0
  118. package/esm2020/autocomplete/autocomplete.module.mjs +34 -0
  119. package/{esm2015/autocomplete/index.js → esm2020/autocomplete/index.mjs} +0 -0
  120. package/{esm2015/autocomplete/ptsecurity-mosaic-autocomplete.js → esm2020/autocomplete/ptsecurity-mosaic-autocomplete.mjs} +0 -0
  121. package/{esm2015/autocomplete/public-api.js → esm2020/autocomplete/public-api.mjs} +0 -0
  122. package/esm2020/button/button.component.mjs +129 -0
  123. package/esm2020/button/button.module.mjs +38 -0
  124. package/{esm2015/button/index.js → esm2020/button/index.mjs} +0 -0
  125. package/{esm2015/button/ptsecurity-mosaic-button.js → esm2020/button/ptsecurity-mosaic-button.mjs} +0 -0
  126. package/{esm2015/button/public-api.js → esm2020/button/public-api.mjs} +0 -0
  127. package/esm2020/button-toggle/button-toggle.component.mjs +362 -0
  128. package/esm2020/button-toggle/button-toggle.module.mjs +19 -0
  129. package/{esm2015/button-toggle/index.js → esm2020/button-toggle/index.mjs} +0 -0
  130. package/{esm2015/button-toggle/ptsecurity-mosaic-button-toggle.js → esm2020/button-toggle/ptsecurity-mosaic-button-toggle.mjs} +0 -0
  131. package/{esm2015/button-toggle/public-api.js → esm2020/button-toggle/public-api.mjs} +0 -0
  132. package/esm2020/card/card.component.mjs +80 -0
  133. package/esm2020/card/card.module.mjs +30 -0
  134. package/{esm2015/card/index.js → esm2020/card/index.mjs} +0 -0
  135. package/{esm2015/card/ptsecurity-mosaic-card.js → esm2020/card/ptsecurity-mosaic-card.mjs} +0 -0
  136. package/{esm2015/card/public-api.js → esm2020/card/public-api.mjs} +0 -0
  137. package/{esm2015/checkbox/checkbox-config.js → esm2020/checkbox/checkbox-config.mjs} +0 -0
  138. package/esm2020/checkbox/checkbox-module.mjs +19 -0
  139. package/esm2020/checkbox/checkbox-required-validator.mjs +27 -0
  140. package/esm2020/checkbox/checkbox.mjs +315 -0
  141. package/{esm2015/checkbox/index.js → esm2020/checkbox/index.mjs} +0 -0
  142. package/{esm2015/checkbox/ptsecurity-mosaic-checkbox.js → esm2020/checkbox/ptsecurity-mosaic-checkbox.mjs} +0 -0
  143. package/{esm2015/checkbox/public-api.js → esm2020/checkbox/public-api.mjs} +0 -0
  144. package/{esm2015/core/animation/animation.js → esm2020/core/animation/animation.mjs} +0 -0
  145. package/{esm2015/core/animation/fade-animations.js → esm2020/core/animation/fade-animations.mjs} +0 -0
  146. package/{esm2015/core/animation/index.js → esm2020/core/animation/index.mjs} +0 -0
  147. package/{esm2015/core/animation/select-animations.js → esm2020/core/animation/select-animations.mjs} +0 -0
  148. package/{esm2015/core/common-behaviors/color.js → esm2020/core/common-behaviors/color.mjs} +0 -0
  149. package/esm2020/core/common-behaviors/common-module.mjs +83 -0
  150. package/{esm2015/core/common-behaviors/constructor.js → esm2020/core/common-behaviors/constructor.mjs} +0 -0
  151. package/{esm2015/core/common-behaviors/disabled.js → esm2020/core/common-behaviors/disabled.mjs} +0 -0
  152. package/{esm2015/core/common-behaviors/error-state.js → esm2020/core/common-behaviors/error-state.mjs} +0 -0
  153. package/{esm2015/core/common-behaviors/index.js → esm2020/core/common-behaviors/index.mjs} +0 -0
  154. package/{esm2015/core/common-behaviors/tabindex.js → esm2020/core/common-behaviors/tabindex.mjs} +0 -0
  155. package/esm2020/core/error/error-options.mjs +26 -0
  156. package/esm2020/core/formatters/date/formatter.mjs +359 -0
  157. package/esm2020/core/formatters/date/templates/en-US.mjs +281 -0
  158. package/esm2020/core/formatters/date/templates/ru-RU.mjs +281 -0
  159. package/esm2020/core/formatters/index.mjs +20 -0
  160. package/esm2020/core/formatters/number/formatter.mjs +105 -0
  161. package/esm2020/core/forms/forms-module.mjs +24 -0
  162. package/esm2020/core/forms/forms.directive.mjs +66 -0
  163. package/{esm2015/core/forms/index.js → esm2020/core/forms/index.mjs} +0 -0
  164. package/esm2020/core/highlight/highlight.pipe.mjs +17 -0
  165. package/esm2020/core/highlight/index.mjs +19 -0
  166. package/{esm2015/core/index.js → esm2020/core/index.mjs} +0 -0
  167. package/{esm2015/core/label/label-options.js → esm2020/core/label/label-options.mjs} +0 -0
  168. package/esm2020/core/line/line.mjs +70 -0
  169. package/esm2020/core/option/action.mjs +121 -0
  170. package/{esm2015/core/option/index.js → esm2020/core/option/index.mjs} +0 -0
  171. package/esm2020/core/option/optgroup.mjs +31 -0
  172. package/esm2020/core/option/option-module.mjs +21 -0
  173. package/esm2020/core/option/option.mjs +254 -0
  174. package/{esm2015/core/overlay/overlay-position-map.js → esm2020/core/overlay/overlay-position-map.mjs} +0 -0
  175. package/{esm2015/core/pop-up/constants.js → esm2020/core/pop-up/constants.mjs} +0 -0
  176. package/{esm2015/core/pop-up/index.js → esm2020/core/pop-up/index.mjs} +0 -0
  177. package/esm2020/core/pop-up/pop-up-trigger.mjs +244 -0
  178. package/esm2020/core/pop-up/pop-up.mjs +91 -0
  179. package/{esm2015/core/ptsecurity-mosaic-core.js → esm2020/core/ptsecurity-mosaic-core.mjs} +0 -0
  180. package/esm2020/core/public-api.mjs +18 -0
  181. package/{esm2015/core/select/constants.js → esm2020/core/select/constants.mjs} +0 -0
  182. package/{esm2015/core/select/errors.js → esm2020/core/select/errors.mjs} +0 -0
  183. package/{esm2015/core/select/events.js → esm2020/core/select/events.mjs} +0 -0
  184. package/{esm2015/core/select/index.js → esm2020/core/select/index.mjs} +0 -0
  185. package/{esm2015/core/selection/constants.js → esm2020/core/selection/constants.mjs} +0 -0
  186. package/{esm2015/core/selection/index.js → esm2020/core/selection/index.mjs} +0 -0
  187. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +37 -0
  188. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.module.mjs +18 -0
  189. package/esm2020/core/services/measure-scrollbar.service.mjs +48 -0
  190. package/{esm2015/core/utils/index.js → esm2020/core/utils/index.mjs} +0 -0
  191. package/{esm2015/core/utils/public-api.js → esm2020/core/utils/public-api.mjs} +0 -0
  192. package/{esm2015/core/utils/utils.js → esm2020/core/utils/utils.mjs} +0 -0
  193. package/{esm2015/core/validation/index.js → esm2020/core/validation/index.mjs} +0 -0
  194. package/{esm2015/core/validation/validation.js → esm2020/core/validation/validation.mjs} +0 -0
  195. package/esm2020/core/version.mjs +3 -0
  196. package/esm2020/datepicker/calendar-body.component.mjs +106 -0
  197. package/esm2020/datepicker/calendar.component.mjs +362 -0
  198. package/{esm2015/datepicker/datepicker-animations.js → esm2020/datepicker/datepicker-animations.mjs} +0 -0
  199. package/{esm2015/datepicker/datepicker-errors.js → esm2020/datepicker/datepicker-errors.mjs} +0 -0
  200. package/esm2020/datepicker/datepicker-input.directive.mjs +900 -0
  201. package/esm2020/datepicker/datepicker-intl.mjs +40 -0
  202. package/esm2020/datepicker/datepicker-module.mjs +107 -0
  203. package/esm2020/datepicker/datepicker-toggle.component.mjs +86 -0
  204. package/esm2020/datepicker/datepicker.component.mjs +408 -0
  205. package/{esm2015/datepicker/index.js → esm2020/datepicker/index.mjs} +0 -0
  206. package/esm2020/datepicker/month-view.component.mjs +257 -0
  207. package/esm2020/datepicker/multi-year-view.component.mjs +218 -0
  208. package/{esm2015/datepicker/ptsecurity-mosaic-datepicker.js → esm2020/datepicker/ptsecurity-mosaic-datepicker.mjs} +0 -0
  209. package/{esm2015/datepicker/public-api.js → esm2020/datepicker/public-api.mjs} +0 -0
  210. package/esm2020/datepicker/year-view.component.mjs +253 -0
  211. package/{esm2015/design-tokens/index.js → esm2020/design-tokens/index.mjs} +0 -0
  212. package/esm2020/design-tokens/legacy-2017/tokens.mjs +953 -0
  213. package/esm2020/design-tokens/pt-2022/tokens.mjs +1013 -0
  214. package/{esm2015/design-tokens/ptsecurity-mosaic-design-tokens.js → esm2020/design-tokens/ptsecurity-mosaic-design-tokens.mjs} +0 -0
  215. package/esm2020/design-tokens/public-api.mjs +4 -0
  216. package/esm2020/divider/divider.component.mjs +39 -0
  217. package/esm2020/divider/divider.module.mjs +18 -0
  218. package/{esm2015/divider/index.js → esm2020/divider/index.mjs} +0 -0
  219. package/{esm2015/divider/ptsecurity-mosaic-divider.js → esm2020/divider/ptsecurity-mosaic-divider.mjs} +0 -0
  220. package/{esm2015/divider/public-api.js → esm2020/divider/public-api.mjs} +0 -0
  221. package/{esm2015/dropdown/dropdown-animations.js → esm2020/dropdown/dropdown-animations.mjs} +0 -0
  222. package/esm2020/dropdown/dropdown-content.directive.mjs +64 -0
  223. package/{esm2015/dropdown/dropdown-errors.js → esm2020/dropdown/dropdown-errors.mjs} +0 -0
  224. package/esm2020/dropdown/dropdown-item.component.mjs +139 -0
  225. package/esm2020/dropdown/dropdown-trigger.directive.mjs +485 -0
  226. package/esm2020/dropdown/dropdown.component.mjs +292 -0
  227. package/esm2020/dropdown/dropdown.module.mjs +50 -0
  228. package/{esm2015/dropdown/dropdown.types.js → esm2020/dropdown/dropdown.types.mjs} +0 -0
  229. package/{esm2015/dropdown/index.js → esm2020/dropdown/index.mjs} +0 -0
  230. package/{esm2015/dropdown/ptsecurity-mosaic-dropdown.js → esm2020/dropdown/ptsecurity-mosaic-dropdown.mjs} +0 -0
  231. package/{esm2015/dropdown/public-api.js → esm2020/dropdown/public-api.mjs} +0 -0
  232. package/esm2020/form-field/cleaner.mjs +23 -0
  233. package/{esm2015/form-field/form-field-control.js → esm2020/form-field/form-field-control.mjs} +0 -0
  234. package/{esm2015/form-field/form-field-errors.js → esm2020/form-field/form-field-errors.mjs} +0 -0
  235. package/esm2020/form-field/form-field.mjs +205 -0
  236. package/esm2020/form-field/form-field.module.mjs +52 -0
  237. package/esm2020/form-field/hint.mjs +23 -0
  238. package/{esm2015/form-field/index.js → esm2020/form-field/index.mjs} +0 -0
  239. package/esm2020/form-field/prefix.mjs +13 -0
  240. package/{esm2015/form-field/ptsecurity-mosaic-form-field.js → esm2020/form-field/ptsecurity-mosaic-form-field.mjs} +0 -0
  241. package/{esm2015/form-field/public-api.js → esm2020/form-field/public-api.mjs} +0 -0
  242. package/esm2020/form-field/stepper.mjs +55 -0
  243. package/esm2020/form-field/suffix.mjs +13 -0
  244. package/esm2020/icon/icon.component.mjs +44 -0
  245. package/esm2020/icon/icon.module.mjs +38 -0
  246. package/{esm2015/icon/index.js → esm2020/icon/index.mjs} +0 -0
  247. package/{esm2015/icon/ptsecurity-mosaic-icon.js → esm2020/icon/ptsecurity-mosaic-icon.mjs} +0 -0
  248. package/{esm2015/icon/public-api.js → esm2020/icon/public-api.mjs} +0 -0
  249. package/{esm2015/index.js → esm2020/index.mjs} +0 -0
  250. package/{esm2015/input/index.js → esm2020/input/index.mjs} +0 -0
  251. package/{esm2015/input/input-errors.js → esm2020/input/input-errors.mjs} +0 -0
  252. package/esm2020/input/input-number-validators.mjs +92 -0
  253. package/esm2020/input/input-number.mjs +163 -0
  254. package/{esm2015/input/input-value-accessor.js → esm2020/input/input-value-accessor.mjs} +0 -0
  255. package/esm2020/input/input.mjs +333 -0
  256. package/esm2020/input/input.module.mjs +23 -0
  257. package/{esm2015/input/ptsecurity-mosaic-input.js → esm2020/input/ptsecurity-mosaic-input.mjs} +0 -0
  258. package/{esm2015/input/public-api.js → esm2020/input/public-api.mjs} +0 -0
  259. package/{esm2015/link/index.js → esm2020/link/index.mjs} +0 -0
  260. package/esm2020/link/link.component.mjs +107 -0
  261. package/esm2020/link/link.module.mjs +26 -0
  262. package/{esm2015/link/ptsecurity-mosaic-link.js → esm2020/link/ptsecurity-mosaic-link.mjs} +0 -0
  263. package/{esm2015/link/public-api.js → esm2020/link/public-api.mjs} +0 -0
  264. package/{esm2015/list/index.js → esm2020/list/index.mjs} +0 -0
  265. package/esm2020/list/list-selection.component.mjs +687 -0
  266. package/esm2020/list/list.component.mjs +44 -0
  267. package/esm2020/list/list.module.mjs +55 -0
  268. package/{esm2015/list/ptsecurity-mosaic-list.js → esm2020/list/ptsecurity-mosaic-list.mjs} +0 -0
  269. package/{esm2015/list/public-api.js → esm2020/list/public-api.mjs} +0 -0
  270. package/esm2020/modal/css-unit.pipe.mjs +17 -0
  271. package/{esm2015/modal/index.js → esm2020/modal/index.mjs} +0 -0
  272. package/esm2020/modal/modal-control.service.mjs +85 -0
  273. package/{esm2015/modal/modal-ref.class.js → esm2020/modal/modal-ref.class.mjs} +0 -0
  274. package/{esm2015/modal/modal-util.js → esm2020/modal/modal-util.mjs} +0 -0
  275. package/esm2020/modal/modal.component.mjs +501 -0
  276. package/esm2020/modal/modal.directive.mjs +52 -0
  277. package/esm2020/modal/modal.module.mjs +72 -0
  278. package/esm2020/modal/modal.service.mjs +124 -0
  279. package/{esm2015/modal/modal.type.js → esm2020/modal/modal.type.mjs} +0 -0
  280. package/{esm2015/modal/ptsecurity-mosaic-modal.js → esm2020/modal/ptsecurity-mosaic-modal.mjs} +0 -0
  281. package/{esm2015/modal/public-api.js → esm2020/modal/public-api.mjs} +0 -0
  282. package/{esm2015/navbar/index.js → esm2020/navbar/index.mjs} +0 -0
  283. package/esm2020/navbar/navbar-item.component.mjs +577 -0
  284. package/esm2020/navbar/navbar.component.mjs +237 -0
  285. package/esm2020/navbar/navbar.module.mjs +92 -0
  286. package/{esm2015/navbar/ptsecurity-mosaic-navbar.js → esm2020/navbar/ptsecurity-mosaic-navbar.mjs} +0 -0
  287. package/{esm2015/navbar/public-api.js → esm2020/navbar/public-api.mjs} +0 -0
  288. package/esm2020/navbar/vertical-navbar.animation.mjs +10 -0
  289. package/esm2020/navbar/vertical-navbar.component.mjs +114 -0
  290. package/{esm2015/popover/index.js → esm2020/popover/index.mjs} +0 -0
  291. package/{esm2015/popover/popover-animations.js → esm2020/popover/popover-animations.mjs} +0 -0
  292. package/esm2020/popover/popover-confirm.component.mjs +108 -0
  293. package/esm2020/popover/popover.component.mjs +253 -0
  294. package/esm2020/popover/popover.module.mjs +24 -0
  295. package/{esm2015/popover/ptsecurity-mosaic-popover.js → esm2020/popover/ptsecurity-mosaic-popover.mjs} +0 -0
  296. package/{esm2015/popover/public-api.js → esm2020/popover/public-api.mjs} +0 -0
  297. package/{esm2015/progress-bar/index.js → esm2020/progress-bar/index.mjs} +0 -0
  298. package/esm2020/progress-bar/progress-bar.component.mjs +42 -0
  299. package/esm2020/progress-bar/progress-bar.module.mjs +30 -0
  300. package/{esm2015/progress-bar/ptsecurity-mosaic-progress-bar.js → esm2020/progress-bar/ptsecurity-mosaic-progress-bar.mjs} +0 -0
  301. package/{esm2015/progress-bar/public-api.js → esm2020/progress-bar/public-api.mjs} +0 -0
  302. package/{esm2015/progress-spinner/index.js → esm2020/progress-spinner/index.mjs} +0 -0
  303. package/esm2020/progress-spinner/progress-spinner.component.mjs +46 -0
  304. package/esm2020/progress-spinner/progress-spinner.module.mjs +30 -0
  305. package/{esm2015/progress-spinner/ptsecurity-mosaic-progress-spinner.js → esm2020/progress-spinner/ptsecurity-mosaic-progress-spinner.mjs} +0 -0
  306. package/{esm2015/progress-spinner/public-api.js → esm2020/progress-spinner/public-api.mjs} +0 -0
  307. package/{esm2015/ptsecurity-mosaic.js → esm2020/ptsecurity-mosaic.mjs} +0 -0
  308. package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
  309. package/{esm2015/radio/index.js → esm2020/radio/index.mjs} +0 -0
  310. package/{esm2015/radio/ptsecurity-mosaic-radio.js → esm2020/radio/ptsecurity-mosaic-radio.mjs} +0 -0
  311. package/{esm2015/radio/public-api.js → esm2020/radio/public-api.mjs} +0 -0
  312. package/esm2020/radio/radio.component.mjs +458 -0
  313. package/esm2020/radio/radio.module.mjs +20 -0
  314. package/{esm2015/select/index.js → esm2020/select/index.mjs} +0 -0
  315. package/{esm2015/select/ptsecurity-mosaic-select.js → esm2020/select/ptsecurity-mosaic-select.mjs} +0 -0
  316. package/{esm2015/select/public-api.js → esm2020/select/public-api.mjs} +0 -0
  317. package/esm2020/select/select.component.mjs +1110 -0
  318. package/esm2020/select/select.module.mjs +64 -0
  319. package/{esm2015/sidebar/index.js → esm2020/sidebar/index.mjs} +0 -0
  320. package/{esm2015/sidebar/ptsecurity-mosaic-sidebar.js → esm2020/sidebar/ptsecurity-mosaic-sidebar.mjs} +0 -0
  321. package/{esm2015/sidebar/public-api.js → esm2020/sidebar/public-api.mjs} +0 -0
  322. package/{esm2015/sidebar/sidebar-animations.js → esm2020/sidebar/sidebar-animations.mjs} +0 -0
  323. package/esm2020/sidebar/sidebar.component.mjs +146 -0
  324. package/esm2020/sidebar/sidebar.module.mjs +30 -0
  325. package/{esm2015/sidepanel/index.js → esm2020/sidepanel/index.mjs} +0 -0
  326. package/{esm2015/sidepanel/ptsecurity-mosaic-sidepanel.js → esm2020/sidepanel/ptsecurity-mosaic-sidepanel.mjs} +0 -0
  327. package/{esm2015/sidepanel/public-api.js → esm2020/sidepanel/public-api.mjs} +0 -0
  328. package/{esm2015/sidepanel/sidepanel-animations.js → esm2020/sidepanel/sidepanel-animations.mjs} +0 -0
  329. package/{esm2015/sidepanel/sidepanel-config.js → esm2020/sidepanel/sidepanel-config.mjs} +0 -0
  330. package/esm2020/sidepanel/sidepanel-container.component.mjs +106 -0
  331. package/esm2020/sidepanel/sidepanel-directives.mjs +159 -0
  332. package/{esm2015/sidepanel/sidepanel-ref.js → esm2020/sidepanel/sidepanel-ref.mjs} +0 -0
  333. package/esm2020/sidepanel/sidepanel.module.mjs +74 -0
  334. package/esm2020/sidepanel/sidepanel.service.mjs +167 -0
  335. package/{esm2015/splitter/index.js → esm2020/splitter/index.mjs} +0 -0
  336. package/{esm2015/splitter/ptsecurity-mosaic-splitter.js → esm2020/splitter/ptsecurity-mosaic-splitter.mjs} +0 -0
  337. package/{esm2015/splitter/public-api.js → esm2020/splitter/public-api.mjs} +0 -0
  338. package/esm2020/splitter/splitter.component.mjs +480 -0
  339. package/esm2020/splitter/splitter.module.mjs +40 -0
  340. package/{esm2015/table/index.js → esm2020/table/index.mjs} +0 -0
  341. package/{esm2015/table/ptsecurity-mosaic-table.js → esm2020/table/ptsecurity-mosaic-table.mjs} +0 -0
  342. package/{esm2015/table/public-api.js → esm2020/table/public-api.mjs} +0 -0
  343. package/esm2020/table/table.component.mjs +16 -0
  344. package/esm2020/table/table.module.mjs +30 -0
  345. package/{esm2015/tabs/index.js → esm2020/tabs/index.mjs} +0 -0
  346. package/esm2020/tabs/paginated-tab-header.mjs +479 -0
  347. package/{esm2015/tabs/ptsecurity-mosaic-tabs.js → esm2020/tabs/ptsecurity-mosaic-tabs.mjs} +0 -0
  348. package/{esm2015/tabs/public-api.js → esm2020/tabs/public-api.mjs} +0 -0
  349. package/esm2020/tabs/tab-body.component.mjs +178 -0
  350. package/esm2020/tabs/tab-content.directive.mjs +15 -0
  351. package/esm2020/tabs/tab-group.component.mjs +350 -0
  352. package/esm2020/tabs/tab-header.component.mjs +67 -0
  353. package/esm2020/tabs/tab-label-wrapper.directive.mjs +78 -0
  354. package/esm2020/tabs/tab-label.directive.mjs +17 -0
  355. package/{esm2015/tabs/tab-nav-bar/index.js → esm2020/tabs/tab-nav-bar/index.mjs} +0 -0
  356. package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +110 -0
  357. package/esm2020/tabs/tab.component.mjs +133 -0
  358. package/{esm2015/tabs/tabs-animations.js → esm2020/tabs/tabs-animations.mjs} +0 -0
  359. package/esm2020/tabs/tabs.module.mjs +104 -0
  360. package/{esm2015/tags/index.js → esm2020/tags/index.mjs} +0 -0
  361. package/{esm2015/tags/ptsecurity-mosaic-tags.js → esm2020/tags/ptsecurity-mosaic-tags.mjs} +0 -0
  362. package/{esm2015/tags/public-api.js → esm2020/tags/public-api.mjs} +0 -0
  363. package/{esm2015/tags/tag-default-options.js → esm2020/tags/tag-default-options.mjs} +0 -0
  364. package/esm2020/tags/tag-input.mjs +229 -0
  365. package/esm2020/tags/tag-list.component.mjs +722 -0
  366. package/{esm2015/tags/tag-text-control.js → esm2020/tags/tag-text-control.mjs} +0 -0
  367. package/esm2020/tags/tag.component.mjs +377 -0
  368. package/esm2020/tags/tag.module.mjs +56 -0
  369. package/{esm2015/textarea/index.js → esm2020/textarea/index.mjs} +0 -0
  370. package/{esm2015/textarea/ptsecurity-mosaic-textarea.js → esm2020/textarea/ptsecurity-mosaic-textarea.mjs} +0 -0
  371. package/{esm2015/textarea/public-api.js → esm2020/textarea/public-api.mjs} +0 -0
  372. package/esm2020/textarea/textarea.component.mjs +268 -0
  373. package/esm2020/textarea/textarea.module.mjs +21 -0
  374. package/{esm2015/timepicker/index.js → esm2020/timepicker/index.mjs} +0 -0
  375. package/{esm2015/timepicker/ptsecurity-mosaic-timepicker.js → esm2020/timepicker/ptsecurity-mosaic-timepicker.mjs} +0 -0
  376. package/{esm2015/timepicker/public-api.js → esm2020/timepicker/public-api.mjs} +0 -0
  377. package/{esm2015/timepicker/timepicker.constants.js → esm2020/timepicker/timepicker.constants.mjs} +0 -0
  378. package/esm2020/timepicker/timepicker.directive.mjs +653 -0
  379. package/esm2020/timepicker/timepicker.module.mjs +34 -0
  380. package/{esm2015/toggle/index.js → esm2020/toggle/index.mjs} +0 -0
  381. package/{esm2015/toggle/ptsecurity-mosaic-toggle.js → esm2020/toggle/ptsecurity-mosaic-toggle.mjs} +0 -0
  382. package/{esm2015/toggle/public-api.js → esm2020/toggle/public-api.mjs} +0 -0
  383. package/esm2020/toggle/toggle.component.mjs +158 -0
  384. package/esm2020/toggle/toggle.module.mjs +20 -0
  385. package/{esm2015/tooltip/index.js → esm2020/tooltip/index.mjs} +0 -0
  386. package/{esm2015/tooltip/ptsecurity-mosaic-tooltip.js → esm2020/tooltip/ptsecurity-mosaic-tooltip.mjs} +0 -0
  387. package/{esm2015/tooltip/public-api.js → esm2020/tooltip/public-api.mjs} +0 -0
  388. package/{esm2015/tooltip/tooltip.animations.js → esm2020/tooltip/tooltip.animations.mjs} +0 -0
  389. package/esm2020/tooltip/tooltip.component.mjs +291 -0
  390. package/esm2020/tooltip/tooltip.module.mjs +43 -0
  391. package/{esm2015/tree/control/base-tree-control.js → esm2020/tree/control/base-tree-control.mjs} +0 -0
  392. package/{esm2015/tree/control/flat-tree-control.js → esm2020/tree/control/flat-tree-control.mjs} +0 -0
  393. package/{esm2015/tree/control/nested-tree-control.js → esm2020/tree/control/nested-tree-control.mjs} +0 -0
  394. package/{esm2015/tree/control/tree-control.js → esm2020/tree/control/tree-control.mjs} +0 -0
  395. package/esm2020/tree/data-source/flat-data-source.mjs +162 -0
  396. package/{esm2015/tree/data-source/nested-data-source.js → esm2020/tree/data-source/nested-data-source.mjs} +0 -0
  397. package/{esm2015/tree/index.js → esm2020/tree/index.mjs} +0 -0
  398. package/esm2020/tree/node.mjs +31 -0
  399. package/esm2020/tree/outlet.mjs +15 -0
  400. package/esm2020/tree/padding.directive.mjs +110 -0
  401. package/{esm2015/tree/ptsecurity-mosaic-tree.js → esm2020/tree/ptsecurity-mosaic-tree.mjs} +0 -0
  402. package/{esm2015/tree/public-api.js → esm2020/tree/public-api.mjs} +0 -0
  403. package/esm2020/tree/toggle.mjs +80 -0
  404. package/esm2020/tree/tree-base.mjs +243 -0
  405. package/{esm2015/tree/tree-errors.js → esm2020/tree/tree-errors.mjs} +0 -0
  406. package/esm2020/tree/tree-option.component.mjs +234 -0
  407. package/esm2020/tree/tree-selection.component.mjs +533 -0
  408. package/esm2020/tree/tree.mjs +15 -0
  409. package/esm2020/tree/tree.module.mjs +53 -0
  410. package/{esm2015/tree-select/index.js → esm2020/tree-select/index.mjs} +0 -0
  411. package/{esm2015/tree-select/ptsecurity-mosaic-tree-select.js → esm2020/tree-select/ptsecurity-mosaic-tree-select.mjs} +0 -0
  412. package/{esm2015/tree-select/public-api.js → esm2020/tree-select/public-api.mjs} +0 -0
  413. package/esm2020/tree-select/tree-select.component.mjs +925 -0
  414. package/esm2020/tree-select/tree-select.module.mjs +47 -0
  415. package/fesm2015/ptsecurity-mosaic-autocomplete.mjs +756 -0
  416. package/fesm2015/ptsecurity-mosaic-autocomplete.mjs.map +1 -0
  417. package/fesm2015/ptsecurity-mosaic-button-toggle.mjs +385 -0
  418. package/fesm2015/ptsecurity-mosaic-button-toggle.mjs.map +1 -0
  419. package/fesm2015/ptsecurity-mosaic-button.mjs +170 -0
  420. package/fesm2015/ptsecurity-mosaic-button.mjs.map +1 -0
  421. package/fesm2015/ptsecurity-mosaic-card.mjs +113 -0
  422. package/fesm2015/ptsecurity-mosaic-card.mjs.map +1 -0
  423. package/fesm2015/ptsecurity-mosaic-checkbox.mjs +366 -0
  424. package/fesm2015/ptsecurity-mosaic-checkbox.mjs.map +1 -0
  425. package/fesm2015/ptsecurity-mosaic-core.mjs +2706 -0
  426. package/fesm2015/ptsecurity-mosaic-core.mjs.map +1 -0
  427. package/fesm2015/ptsecurity-mosaic-datepicker.mjs +2700 -0
  428. package/fesm2015/ptsecurity-mosaic-datepicker.mjs.map +1 -0
  429. package/fesm2015/ptsecurity-mosaic-design-tokens.mjs +2925 -0
  430. package/fesm2015/ptsecurity-mosaic-design-tokens.mjs.map +1 -0
  431. package/fesm2015/ptsecurity-mosaic-divider.mjs +61 -0
  432. package/fesm2015/ptsecurity-mosaic-divider.mjs.map +1 -0
  433. package/fesm2015/ptsecurity-mosaic-dropdown.mjs +1106 -0
  434. package/fesm2015/ptsecurity-mosaic-dropdown.mjs.map +1 -0
  435. package/fesm2015/ptsecurity-mosaic-form-field.mjs +378 -0
  436. package/fesm2015/ptsecurity-mosaic-form-field.mjs.map +1 -0
  437. package/fesm2015/ptsecurity-mosaic-icon.mjs +88 -0
  438. package/fesm2015/ptsecurity-mosaic-icon.mjs.map +1 -0
  439. package/fesm2015/ptsecurity-mosaic-input.mjs +609 -0
  440. package/fesm2015/ptsecurity-mosaic-input.mjs.map +1 -0
  441. package/fesm2015/ptsecurity-mosaic-link.mjs +137 -0
  442. package/fesm2015/ptsecurity-mosaic-link.mjs.map +1 -0
  443. package/fesm2015/ptsecurity-mosaic-list.mjs +791 -0
  444. package/fesm2015/ptsecurity-mosaic-list.mjs.map +1 -0
  445. package/fesm2015/ptsecurity-mosaic-modal.mjs +864 -0
  446. package/fesm2015/ptsecurity-mosaic-modal.mjs.map +1 -0
  447. package/fesm2015/ptsecurity-mosaic-navbar.mjs +1025 -0
  448. package/fesm2015/ptsecurity-mosaic-navbar.mjs.map +1 -0
  449. package/fesm2015/ptsecurity-mosaic-popover.mjs +393 -0
  450. package/fesm2015/ptsecurity-mosaic-popover.mjs.map +1 -0
  451. package/fesm2015/ptsecurity-mosaic-progress-bar.mjs +76 -0
  452. package/fesm2015/ptsecurity-mosaic-progress-bar.mjs.map +1 -0
  453. package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs +80 -0
  454. package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs.map +1 -0
  455. package/fesm2015/ptsecurity-mosaic-radio.mjs +481 -0
  456. package/fesm2015/ptsecurity-mosaic-radio.mjs.map +1 -0
  457. package/fesm2015/ptsecurity-mosaic-select.mjs +1175 -0
  458. package/fesm2015/ptsecurity-mosaic-select.mjs.map +1 -0
  459. package/fesm2015/ptsecurity-mosaic-sidebar.mjs +202 -0
  460. package/fesm2015/ptsecurity-mosaic-sidebar.mjs.map +1 -0
  461. package/fesm2015/ptsecurity-mosaic-sidepanel.mjs +592 -0
  462. package/fesm2015/ptsecurity-mosaic-sidepanel.mjs.map +1 -0
  463. package/fesm2015/ptsecurity-mosaic-splitter.mjs +524 -0
  464. package/fesm2015/ptsecurity-mosaic-splitter.mjs.map +1 -0
  465. package/fesm2015/ptsecurity-mosaic-table.mjs +50 -0
  466. package/fesm2015/ptsecurity-mosaic-table.mjs.map +1 -0
  467. package/fesm2015/ptsecurity-mosaic-tabs.mjs +1511 -0
  468. package/fesm2015/ptsecurity-mosaic-tabs.mjs.map +1 -0
  469. package/fesm2015/ptsecurity-mosaic-tags.mjs +1377 -0
  470. package/fesm2015/ptsecurity-mosaic-tags.mjs.map +1 -0
  471. package/fesm2015/ptsecurity-mosaic-textarea.mjs +293 -0
  472. package/fesm2015/ptsecurity-mosaic-textarea.mjs.map +1 -0
  473. package/fesm2015/ptsecurity-mosaic-timepicker.mjs +715 -0
  474. package/fesm2015/ptsecurity-mosaic-timepicker.mjs.map +1 -0
  475. package/fesm2015/ptsecurity-mosaic-toggle.mjs +180 -0
  476. package/fesm2015/ptsecurity-mosaic-toggle.mjs.map +1 -0
  477. package/fesm2015/ptsecurity-mosaic-tooltip.mjs +362 -0
  478. package/fesm2015/ptsecurity-mosaic-tooltip.mjs.map +1 -0
  479. package/fesm2015/ptsecurity-mosaic-tree-select.mjs +972 -0
  480. package/fesm2015/ptsecurity-mosaic-tree-select.mjs.map +1 -0
  481. package/fesm2015/ptsecurity-mosaic-tree.mjs +1718 -0
  482. package/fesm2015/ptsecurity-mosaic-tree.mjs.map +1 -0
  483. package/fesm2015/ptsecurity-mosaic.mjs +4 -0
  484. package/fesm2015/ptsecurity-mosaic.mjs.map +1 -0
  485. package/fesm2020/ptsecurity-mosaic-autocomplete.mjs +752 -0
  486. package/fesm2020/ptsecurity-mosaic-autocomplete.mjs.map +1 -0
  487. package/fesm2020/ptsecurity-mosaic-button-toggle.mjs +383 -0
  488. package/fesm2020/ptsecurity-mosaic-button-toggle.mjs.map +1 -0
  489. package/fesm2020/ptsecurity-mosaic-button.mjs +170 -0
  490. package/fesm2020/ptsecurity-mosaic-button.mjs.map +1 -0
  491. package/fesm2020/ptsecurity-mosaic-card.mjs +113 -0
  492. package/fesm2020/ptsecurity-mosaic-card.mjs.map +1 -0
  493. package/fesm2020/ptsecurity-mosaic-checkbox.mjs +364 -0
  494. package/fesm2020/ptsecurity-mosaic-checkbox.mjs.map +1 -0
  495. package/fesm2020/ptsecurity-mosaic-core.mjs +2735 -0
  496. package/fesm2020/ptsecurity-mosaic-core.mjs.map +1 -0
  497. package/fesm2020/ptsecurity-mosaic-datepicker.mjs +2687 -0
  498. package/fesm2020/ptsecurity-mosaic-datepicker.mjs.map +1 -0
  499. package/fesm2020/ptsecurity-mosaic-design-tokens.mjs +2925 -0
  500. package/fesm2020/ptsecurity-mosaic-design-tokens.mjs.map +1 -0
  501. package/fesm2020/ptsecurity-mosaic-divider.mjs +61 -0
  502. package/fesm2020/ptsecurity-mosaic-divider.mjs.map +1 -0
  503. package/fesm2020/ptsecurity-mosaic-dropdown.mjs +1093 -0
  504. package/fesm2020/ptsecurity-mosaic-dropdown.mjs.map +1 -0
  505. package/fesm2020/ptsecurity-mosaic-form-field.mjs +377 -0
  506. package/fesm2020/ptsecurity-mosaic-form-field.mjs.map +1 -0
  507. package/fesm2020/ptsecurity-mosaic-icon.mjs +86 -0
  508. package/fesm2020/ptsecurity-mosaic-icon.mjs.map +1 -0
  509. package/fesm2020/ptsecurity-mosaic-input.mjs +605 -0
  510. package/fesm2020/ptsecurity-mosaic-input.mjs.map +1 -0
  511. package/fesm2020/ptsecurity-mosaic-link.mjs +136 -0
  512. package/fesm2020/ptsecurity-mosaic-link.mjs.map +1 -0
  513. package/fesm2020/ptsecurity-mosaic-list.mjs +784 -0
  514. package/fesm2020/ptsecurity-mosaic-list.mjs.map +1 -0
  515. package/fesm2020/ptsecurity-mosaic-modal.mjs +860 -0
  516. package/fesm2020/ptsecurity-mosaic-modal.mjs.map +1 -0
  517. package/fesm2020/ptsecurity-mosaic-navbar.mjs +1009 -0
  518. package/fesm2020/ptsecurity-mosaic-navbar.mjs.map +1 -0
  519. package/fesm2020/ptsecurity-mosaic-popover.mjs +389 -0
  520. package/fesm2020/ptsecurity-mosaic-popover.mjs.map +1 -0
  521. package/fesm2020/ptsecurity-mosaic-progress-bar.mjs +76 -0
  522. package/fesm2020/ptsecurity-mosaic-progress-bar.mjs.map +1 -0
  523. package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs +80 -0
  524. package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs.map +1 -0
  525. package/fesm2020/ptsecurity-mosaic-radio.mjs +479 -0
  526. package/fesm2020/ptsecurity-mosaic-radio.mjs.map +1 -0
  527. package/fesm2020/ptsecurity-mosaic-select.mjs +1173 -0
  528. package/fesm2020/ptsecurity-mosaic-select.mjs.map +1 -0
  529. package/fesm2020/ptsecurity-mosaic-sidebar.mjs +202 -0
  530. package/fesm2020/ptsecurity-mosaic-sidebar.mjs.map +1 -0
  531. package/fesm2020/ptsecurity-mosaic-sidepanel.mjs +589 -0
  532. package/fesm2020/ptsecurity-mosaic-sidepanel.mjs.map +1 -0
  533. package/fesm2020/ptsecurity-mosaic-splitter.mjs +524 -0
  534. package/fesm2020/ptsecurity-mosaic-splitter.mjs.map +1 -0
  535. package/fesm2020/ptsecurity-mosaic-table.mjs +50 -0
  536. package/fesm2020/ptsecurity-mosaic-table.mjs.map +1 -0
  537. package/fesm2020/ptsecurity-mosaic-tabs.mjs +1496 -0
  538. package/fesm2020/ptsecurity-mosaic-tabs.mjs.map +1 -0
  539. package/fesm2020/ptsecurity-mosaic-tags.mjs +1370 -0
  540. package/fesm2020/ptsecurity-mosaic-tags.mjs.map +1 -0
  541. package/fesm2020/ptsecurity-mosaic-textarea.mjs +291 -0
  542. package/fesm2020/ptsecurity-mosaic-textarea.mjs.map +1 -0
  543. package/fesm2020/ptsecurity-mosaic-timepicker.mjs +713 -0
  544. package/fesm2020/ptsecurity-mosaic-timepicker.mjs.map +1 -0
  545. package/fesm2020/ptsecurity-mosaic-toggle.mjs +180 -0
  546. package/fesm2020/ptsecurity-mosaic-toggle.mjs.map +1 -0
  547. package/fesm2020/ptsecurity-mosaic-tooltip.mjs +354 -0
  548. package/fesm2020/ptsecurity-mosaic-tooltip.mjs.map +1 -0
  549. package/fesm2020/ptsecurity-mosaic-tree-select.mjs +970 -0
  550. package/fesm2020/ptsecurity-mosaic-tree-select.mjs.map +1 -0
  551. package/fesm2020/ptsecurity-mosaic-tree.mjs +1705 -0
  552. package/fesm2020/ptsecurity-mosaic-tree.mjs.map +1 -0
  553. package/fesm2020/ptsecurity-mosaic.mjs +4 -0
  554. package/fesm2020/ptsecurity-mosaic.mjs.map +1 -0
  555. package/form-field/README.md +0 -0
  556. package/form-field/package.json +5 -5
  557. package/icon/README.md +0 -0
  558. package/icon/package.json +5 -5
  559. package/input/package.json +5 -5
  560. package/link/README.md +0 -0
  561. package/link/package.json +5 -5
  562. package/list/README.md +0 -0
  563. package/list/package.json +5 -5
  564. package/modal/README.md +34 -0
  565. package/modal/modal-control.service.d.ts +1 -0
  566. package/modal/package.json +5 -5
  567. package/navbar/README.md +41 -0
  568. package/navbar/navbar-item.component.d.ts +122 -34
  569. package/navbar/navbar.component.d.ts +37 -9
  570. package/navbar/navbar.module.d.ts +2 -1
  571. package/navbar/package.json +5 -5
  572. package/navbar/vertical-navbar.component.d.ts +15 -26
  573. package/package.json +299 -14
  574. package/popover/README.md +32 -0
  575. package/popover/package.json +5 -5
  576. package/popover/popover.component.d.ts +2 -0
  577. package/popover/popover.module.d.ts +2 -1
  578. package/prebuilt-themes/dark-theme.css +1 -1
  579. package/prebuilt-themes/default-theme.css +1 -1
  580. package/prebuilt-visual/default-visual.css +1 -1
  581. package/progress-bar/README.md +0 -0
  582. package/progress-bar/package.json +5 -5
  583. package/progress-spinner/README.md +0 -0
  584. package/progress-spinner/package.json +5 -5
  585. package/radio/package.json +5 -5
  586. package/schematics/README.md +35 -0
  587. package/schematics/ng-update/data/index.d.ts +1 -0
  588. package/schematics/ng-update/data/index.js +10 -9
  589. package/schematics/ng-update/data/index.js.map +1 -1
  590. package/schematics/ng-update/data/symbol-removal.d.ts +2 -0
  591. package/schematics/ng-update/data/symbol-removal.js +5 -0
  592. package/schematics/ng-update/data/symbol-removal.js.map +1 -0
  593. package/schematics/ng-update/index.js +3 -3
  594. package/schematics/ng-update/index.js.map +1 -1
  595. package/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.js +1 -2
  596. package/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.js.map +1 -1
  597. package/schematics/ng-update/upgrade-data.js +2 -1
  598. package/schematics/ng-update/upgrade-data.js.map +1 -1
  599. package/schematics/tsconfig.lib.json +2 -2
  600. package/select/README.md +0 -0
  601. package/select/package.json +5 -5
  602. package/sidebar/package.json +5 -5
  603. package/sidepanel/package.json +5 -5
  604. package/splitter/package.json +5 -5
  605. package/splitter/splitter.component.d.ts +46 -5
  606. package/splitter/splitter.module.d.ts +1 -1
  607. package/table/README.md +0 -0
  608. package/table/package.json +5 -5
  609. package/tabs/README.md +0 -0
  610. package/tabs/package.json +5 -5
  611. package/tags/README.md +0 -0
  612. package/tags/package.json +5 -5
  613. package/tags/tag.component.d.ts +20 -20
  614. package/textarea/README.md +0 -0
  615. package/textarea/package.json +5 -5
  616. package/timepicker/README.md +0 -0
  617. package/timepicker/package.json +5 -5
  618. package/toggle/package.json +5 -5
  619. package/tooltip/package.json +5 -5
  620. package/tree/data-source/flat-data-source.d.ts +2 -2
  621. package/tree/package.json +5 -5
  622. package/tree/toggle.d.ts +1 -1
  623. package/tree/tree-option.component.d.ts +5 -3
  624. package/tree/tree-selection.component.d.ts +1 -0
  625. package/tree-select/README.md +0 -0
  626. package/tree-select/package.json +5 -5
  627. package/tree-select/tree-select.component.d.ts +9 -1
  628. package/tree-select/tree-select.module.d.ts +2 -1
  629. package/bundles/ptsecurity-mosaic-autocomplete.umd.js +0 -1160
  630. package/bundles/ptsecurity-mosaic-autocomplete.umd.js.map +0 -1
  631. package/bundles/ptsecurity-mosaic-button-toggle.umd.js +0 -755
  632. package/bundles/ptsecurity-mosaic-button-toggle.umd.js.map +0 -1
  633. package/bundles/ptsecurity-mosaic-button.umd.js +0 -533
  634. package/bundles/ptsecurity-mosaic-button.umd.js.map +0 -1
  635. package/bundles/ptsecurity-mosaic-card.umd.js +0 -479
  636. package/bundles/ptsecurity-mosaic-card.umd.js.map +0 -1
  637. package/bundles/ptsecurity-mosaic-checkbox.umd.js +0 -762
  638. package/bundles/ptsecurity-mosaic-checkbox.umd.js.map +0 -1
  639. package/bundles/ptsecurity-mosaic-core.umd.js +0 -2843
  640. package/bundles/ptsecurity-mosaic-core.umd.js.map +0 -1
  641. package/bundles/ptsecurity-mosaic-datepicker.umd.js +0 -3355
  642. package/bundles/ptsecurity-mosaic-datepicker.umd.js.map +0 -1
  643. package/bundles/ptsecurity-mosaic-design-tokens.umd.js +0 -1872
  644. package/bundles/ptsecurity-mosaic-design-tokens.umd.js.map +0 -1
  645. package/bundles/ptsecurity-mosaic-divider.umd.js +0 -106
  646. package/bundles/ptsecurity-mosaic-divider.umd.js.map +0 -1
  647. package/bundles/ptsecurity-mosaic-dropdown.umd.js +0 -1517
  648. package/bundles/ptsecurity-mosaic-dropdown.umd.js.map +0 -1
  649. package/bundles/ptsecurity-mosaic-form-field.umd.js +0 -788
  650. package/bundles/ptsecurity-mosaic-form-field.umd.js.map +0 -1
  651. package/bundles/ptsecurity-mosaic-icon.umd.js +0 -450
  652. package/bundles/ptsecurity-mosaic-icon.umd.js.map +0 -1
  653. package/bundles/ptsecurity-mosaic-input.umd.js +0 -1008
  654. package/bundles/ptsecurity-mosaic-input.umd.js.map +0 -1
  655. package/bundles/ptsecurity-mosaic-link.umd.js +0 -515
  656. package/bundles/ptsecurity-mosaic-link.umd.js.map +0 -1
  657. package/bundles/ptsecurity-mosaic-list.umd.js +0 -1256
  658. package/bundles/ptsecurity-mosaic-list.umd.js.map +0 -1
  659. package/bundles/ptsecurity-mosaic-modal.umd.js +0 -1305
  660. package/bundles/ptsecurity-mosaic-modal.umd.js.map +0 -1
  661. package/bundles/ptsecurity-mosaic-navbar.umd.js +0 -930
  662. package/bundles/ptsecurity-mosaic-navbar.umd.js.map +0 -1
  663. package/bundles/ptsecurity-mosaic-popover.umd.js +0 -830
  664. package/bundles/ptsecurity-mosaic-popover.umd.js.map +0 -1
  665. package/bundles/ptsecurity-mosaic-progress-bar.umd.js +0 -440
  666. package/bundles/ptsecurity-mosaic-progress-bar.umd.js.map +0 -1
  667. package/bundles/ptsecurity-mosaic-progress-spinner.umd.js +0 -448
  668. package/bundles/ptsecurity-mosaic-progress-spinner.umd.js.map +0 -1
  669. package/bundles/ptsecurity-mosaic-radio.umd.js +0 -901
  670. package/bundles/ptsecurity-mosaic-radio.umd.js.map +0 -1
  671. package/bundles/ptsecurity-mosaic-select.umd.js +0 -1606
  672. package/bundles/ptsecurity-mosaic-select.umd.js.map +0 -1
  673. package/bundles/ptsecurity-mosaic-sidebar.umd.js +0 -254
  674. package/bundles/ptsecurity-mosaic-sidebar.umd.js.map +0 -1
  675. package/bundles/ptsecurity-mosaic-sidepanel.umd.js +0 -954
  676. package/bundles/ptsecurity-mosaic-sidepanel.umd.js.map +0 -1
  677. package/bundles/ptsecurity-mosaic-splitter.umd.js +0 -436
  678. package/bundles/ptsecurity-mosaic-splitter.umd.js.map +0 -1
  679. package/bundles/ptsecurity-mosaic-table.umd.js +0 -81
  680. package/bundles/ptsecurity-mosaic-table.umd.js.map +0 -1
  681. package/bundles/ptsecurity-mosaic-tabs.umd.js +0 -2013
  682. package/bundles/ptsecurity-mosaic-tabs.umd.js.map +0 -1
  683. package/bundles/ptsecurity-mosaic-tags.umd.js +0 -1911
  684. package/bundles/ptsecurity-mosaic-tags.umd.js.map +0 -1
  685. package/bundles/ptsecurity-mosaic-textarea.umd.js +0 -664
  686. package/bundles/ptsecurity-mosaic-textarea.umd.js.map +0 -1
  687. package/bundles/ptsecurity-mosaic-timepicker.umd.js +0 -820
  688. package/bundles/ptsecurity-mosaic-timepicker.umd.js.map +0 -1
  689. package/bundles/ptsecurity-mosaic-toggle.umd.js +0 -557
  690. package/bundles/ptsecurity-mosaic-toggle.umd.js.map +0 -1
  691. package/bundles/ptsecurity-mosaic-tooltip.umd.js +0 -777
  692. package/bundles/ptsecurity-mosaic-tooltip.umd.js.map +0 -1
  693. package/bundles/ptsecurity-mosaic-tree-select.umd.js +0 -1368
  694. package/bundles/ptsecurity-mosaic-tree-select.umd.js.map +0 -1
  695. package/bundles/ptsecurity-mosaic-tree.umd.js +0 -2301
  696. package/bundles/ptsecurity-mosaic-tree.umd.js.map +0 -1
  697. package/bundles/ptsecurity-mosaic.umd.js +0 -11
  698. package/bundles/ptsecurity-mosaic.umd.js.map +0 -1
  699. package/design-tokens/tokens/components/checkbox.json5 +0 -39
  700. package/design-tokens/tokens/components/modal.json5 +0 -67
  701. package/design-tokens/tokens/components/navbar.json5 +0 -64
  702. package/design-tokens/tokens/components/radio.json5 +0 -45
  703. package/design-tokens/tokens/components/tags.json5 +0 -126
  704. package/design-tokens/tokens/components/toggle.json5 +0 -55
  705. package/design-tokens/tokens.d.ts +0 -7637
  706. package/esm2015/autocomplete/autocomplete-origin.directive.js +0 -21
  707. package/esm2015/autocomplete/autocomplete-trigger.directive.js +0 -555
  708. package/esm2015/autocomplete/autocomplete.component.js +0 -163
  709. package/esm2015/autocomplete/autocomplete.module.js +0 -34
  710. package/esm2015/button/button.component.js +0 -129
  711. package/esm2015/button/button.module.js +0 -42
  712. package/esm2015/button-toggle/button-toggle.component.js +0 -370
  713. package/esm2015/button-toggle/button-toggle.module.js +0 -19
  714. package/esm2015/card/card.component.js +0 -88
  715. package/esm2015/card/card.module.js +0 -30
  716. package/esm2015/checkbox/checkbox-module.js +0 -19
  717. package/esm2015/checkbox/checkbox-required-validator.js +0 -27
  718. package/esm2015/checkbox/checkbox.js +0 -325
  719. package/esm2015/core/common-behaviors/common-module.js +0 -83
  720. package/esm2015/core/error/error-options.js +0 -26
  721. package/esm2015/core/formatters/date/formatter.js +0 -288
  722. package/esm2015/core/formatters/date/templates/en-US.js +0 -280
  723. package/esm2015/core/formatters/date/templates/ru-RU.js +0 -280
  724. package/esm2015/core/formatters/index.js +0 -20
  725. package/esm2015/core/formatters/number/formatter.js +0 -99
  726. package/esm2015/core/forms/forms-module.js +0 -24
  727. package/esm2015/core/forms/forms.directive.js +0 -66
  728. package/esm2015/core/highlight/highlight.pipe.js +0 -17
  729. package/esm2015/core/highlight/index.js +0 -19
  730. package/esm2015/core/line/line.js +0 -70
  731. package/esm2015/core/option/action.js +0 -131
  732. package/esm2015/core/option/optgroup.js +0 -40
  733. package/esm2015/core/option/option-module.js +0 -21
  734. package/esm2015/core/option/option.js +0 -262
  735. package/esm2015/core/pop-up/pop-up-trigger.js +0 -241
  736. package/esm2015/core/pop-up/pop-up.js +0 -87
  737. package/esm2015/core/public-api.js +0 -17
  738. package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.js +0 -45
  739. package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.module.js +0 -18
  740. package/esm2015/core/services/measure-scrollbar.service.js +0 -48
  741. package/esm2015/datepicker/calendar-body.component.js +0 -114
  742. package/esm2015/datepicker/calendar.component.js +0 -377
  743. package/esm2015/datepicker/datepicker-input.directive.js +0 -885
  744. package/esm2015/datepicker/datepicker-intl.js +0 -40
  745. package/esm2015/datepicker/datepicker-module.js +0 -107
  746. package/esm2015/datepicker/datepicker-toggle.component.js +0 -94
  747. package/esm2015/datepicker/datepicker.component.js +0 -418
  748. package/esm2015/datepicker/month-view.component.js +0 -263
  749. package/esm2015/datepicker/multi-year-view.component.js +0 -224
  750. package/esm2015/datepicker/year-view.component.js +0 -259
  751. package/esm2015/design-tokens/public-api.js +0 -2
  752. package/esm2015/design-tokens/tokens.js +0 -931
  753. package/esm2015/divider/divider.component.js +0 -46
  754. package/esm2015/divider/divider.module.js +0 -18
  755. package/esm2015/dropdown/dropdown-content.directive.js +0 -66
  756. package/esm2015/dropdown/dropdown-item.component.js +0 -142
  757. package/esm2015/dropdown/dropdown-trigger.directive.js +0 -478
  758. package/esm2015/dropdown/dropdown.component.js +0 -302
  759. package/esm2015/dropdown/dropdown.module.js +0 -50
  760. package/esm2015/form-field/cleaner.js +0 -23
  761. package/esm2015/form-field/form-field.js +0 -224
  762. package/esm2015/form-field/form-field.module.js +0 -52
  763. package/esm2015/form-field/hint.js +0 -23
  764. package/esm2015/form-field/prefix.js +0 -13
  765. package/esm2015/form-field/stepper.js +0 -55
  766. package/esm2015/form-field/suffix.js +0 -13
  767. package/esm2015/icon/icon.component.js +0 -51
  768. package/esm2015/icon/icon.module.js +0 -38
  769. package/esm2015/input/input-number-validators.js +0 -92
  770. package/esm2015/input/input-number.js +0 -163
  771. package/esm2015/input/input.js +0 -333
  772. package/esm2015/input/input.module.js +0 -23
  773. package/esm2015/link/link.component.js +0 -108
  774. package/esm2015/link/link.module.js +0 -26
  775. package/esm2015/list/list-selection.component.js +0 -716
  776. package/esm2015/list/list.component.js +0 -58
  777. package/esm2015/list/list.module.js +0 -55
  778. package/esm2015/modal/css-unit.pipe.js +0 -17
  779. package/esm2015/modal/modal-control.service.js +0 -63
  780. package/esm2015/modal/modal.component.js +0 -508
  781. package/esm2015/modal/modal.directive.js +0 -52
  782. package/esm2015/modal/modal.module.js +0 -72
  783. package/esm2015/modal/modal.service.js +0 -117
  784. package/esm2015/navbar/navbar-item.component.js +0 -209
  785. package/esm2015/navbar/navbar.component.js +0 -118
  786. package/esm2015/navbar/navbar.module.js +0 -76
  787. package/esm2015/navbar/vertical-navbar.animation.js +0 -10
  788. package/esm2015/navbar/vertical-navbar.component.js +0 -140
  789. package/esm2015/popover/popover-confirm.component.js +0 -115
  790. package/esm2015/popover/popover.component.js +0 -256
  791. package/esm2015/popover/popover.module.js +0 -23
  792. package/esm2015/progress-bar/progress-bar.component.js +0 -50
  793. package/esm2015/progress-bar/progress-bar.module.js +0 -30
  794. package/esm2015/progress-spinner/progress-spinner.component.js +0 -54
  795. package/esm2015/progress-spinner/progress-spinner.module.js +0 -30
  796. package/esm2015/radio/radio.component.js +0 -467
  797. package/esm2015/radio/radio.module.js +0 -20
  798. package/esm2015/select/select.component.js +0 -1122
  799. package/esm2015/select/select.module.js +0 -64
  800. package/esm2015/sidebar/sidebar.component.js +0 -155
  801. package/esm2015/sidebar/sidebar.module.js +0 -30
  802. package/esm2015/sidepanel/sidepanel-container.component.js +0 -114
  803. package/esm2015/sidepanel/sidepanel-directives.js +0 -159
  804. package/esm2015/sidepanel/sidepanel.module.js +0 -74
  805. package/esm2015/sidepanel/sidepanel.service.js +0 -164
  806. package/esm2015/splitter/splitter.component.js +0 -331
  807. package/esm2015/splitter/splitter.module.js +0 -38
  808. package/esm2015/table/table.component.js +0 -16
  809. package/esm2015/table/table.module.js +0 -30
  810. package/esm2015/tabs/paginated-tab-header.js +0 -482
  811. package/esm2015/tabs/tab-body.component.js +0 -186
  812. package/esm2015/tabs/tab-content.directive.js +0 -15
  813. package/esm2015/tabs/tab-group.component.js +0 -359
  814. package/esm2015/tabs/tab-header.component.js +0 -76
  815. package/esm2015/tabs/tab-label-wrapper.directive.js +0 -78
  816. package/esm2015/tabs/tab-label.directive.js +0 -17
  817. package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +0 -118
  818. package/esm2015/tabs/tab.component.js +0 -133
  819. package/esm2015/tabs/tabs.module.js +0 -104
  820. package/esm2015/tags/tag-input.js +0 -229
  821. package/esm2015/tags/tag-list.component.js +0 -732
  822. package/esm2015/tags/tag.component.js +0 -382
  823. package/esm2015/tags/tag.module.js +0 -56
  824. package/esm2015/textarea/textarea.component.js +0 -268
  825. package/esm2015/textarea/textarea.module.js +0 -21
  826. package/esm2015/timepicker/timepicker.directive.js +0 -652
  827. package/esm2015/timepicker/timepicker.module.js +0 -34
  828. package/esm2015/toggle/toggle.component.js +0 -169
  829. package/esm2015/toggle/toggle.module.js +0 -20
  830. package/esm2015/tooltip/tooltip.component.js +0 -299
  831. package/esm2015/tooltip/tooltip.module.js +0 -43
  832. package/esm2015/tree/data-source/flat-data-source.js +0 -162
  833. package/esm2015/tree/node.js +0 -31
  834. package/esm2015/tree/outlet.js +0 -15
  835. package/esm2015/tree/padding.directive.js +0 -111
  836. package/esm2015/tree/toggle.js +0 -89
  837. package/esm2015/tree/tree-base.js +0 -243
  838. package/esm2015/tree/tree-option.component.js +0 -238
  839. package/esm2015/tree/tree-selection.component.js +0 -541
  840. package/esm2015/tree/tree.js +0 -23
  841. package/esm2015/tree/tree.module.js +0 -53
  842. package/esm2015/tree-select/tree-select.component.js +0 -900
  843. package/esm2015/tree-select/tree-select.module.js +0 -43
  844. package/fesm2015/ptsecurity-mosaic-autocomplete.js +0 -761
  845. package/fesm2015/ptsecurity-mosaic-autocomplete.js.map +0 -1
  846. package/fesm2015/ptsecurity-mosaic-button-toggle.js +0 -391
  847. package/fesm2015/ptsecurity-mosaic-button-toggle.js.map +0 -1
  848. package/fesm2015/ptsecurity-mosaic-button.js +0 -174
  849. package/fesm2015/ptsecurity-mosaic-button.js.map +0 -1
  850. package/fesm2015/ptsecurity-mosaic-card.js +0 -121
  851. package/fesm2015/ptsecurity-mosaic-card.js.map +0 -1
  852. package/fesm2015/ptsecurity-mosaic-checkbox.js +0 -374
  853. package/fesm2015/ptsecurity-mosaic-checkbox.js.map +0 -1
  854. package/fesm2015/ptsecurity-mosaic-core.js +0 -2682
  855. package/fesm2015/ptsecurity-mosaic-core.js.map +0 -1
  856. package/fesm2015/ptsecurity-mosaic-datepicker.js +0 -2731
  857. package/fesm2015/ptsecurity-mosaic-datepicker.js.map +0 -1
  858. package/fesm2015/ptsecurity-mosaic-design-tokens.js +0 -937
  859. package/fesm2015/ptsecurity-mosaic-design-tokens.js.map +0 -1
  860. package/fesm2015/ptsecurity-mosaic-divider.js +0 -68
  861. package/fesm2015/ptsecurity-mosaic-divider.js.map +0 -1
  862. package/fesm2015/ptsecurity-mosaic-dropdown.js +0 -1101
  863. package/fesm2015/ptsecurity-mosaic-dropdown.js.map +0 -1
  864. package/fesm2015/ptsecurity-mosaic-form-field.js +0 -396
  865. package/fesm2015/ptsecurity-mosaic-form-field.js.map +0 -1
  866. package/fesm2015/ptsecurity-mosaic-icon.js +0 -93
  867. package/fesm2015/ptsecurity-mosaic-icon.js.map +0 -1
  868. package/fesm2015/ptsecurity-mosaic-input.js +0 -605
  869. package/fesm2015/ptsecurity-mosaic-input.js.map +0 -1
  870. package/fesm2015/ptsecurity-mosaic-link.js +0 -137
  871. package/fesm2015/ptsecurity-mosaic-link.js.map +0 -1
  872. package/fesm2015/ptsecurity-mosaic-list.js +0 -827
  873. package/fesm2015/ptsecurity-mosaic-list.js.map +0 -1
  874. package/fesm2015/ptsecurity-mosaic-modal.js +0 -838
  875. package/fesm2015/ptsecurity-mosaic-modal.js.map +0 -1
  876. package/fesm2015/ptsecurity-mosaic-navbar.js +0 -539
  877. package/fesm2015/ptsecurity-mosaic-navbar.js.map +0 -1
  878. package/fesm2015/ptsecurity-mosaic-popover.js +0 -399
  879. package/fesm2015/ptsecurity-mosaic-popover.js.map +0 -1
  880. package/fesm2015/ptsecurity-mosaic-progress-bar.js +0 -84
  881. package/fesm2015/ptsecurity-mosaic-progress-bar.js.map +0 -1
  882. package/fesm2015/ptsecurity-mosaic-progress-spinner.js +0 -88
  883. package/fesm2015/ptsecurity-mosaic-progress-spinner.js.map +0 -1
  884. package/fesm2015/ptsecurity-mosaic-radio.js +0 -488
  885. package/fesm2015/ptsecurity-mosaic-radio.js.map +0 -1
  886. package/fesm2015/ptsecurity-mosaic-select.js +0 -1185
  887. package/fesm2015/ptsecurity-mosaic-select.js.map +0 -1
  888. package/fesm2015/ptsecurity-mosaic-sidebar.js +0 -211
  889. package/fesm2015/ptsecurity-mosaic-sidebar.js.map +0 -1
  890. package/fesm2015/ptsecurity-mosaic-sidepanel.js +0 -594
  891. package/fesm2015/ptsecurity-mosaic-sidepanel.js.map +0 -1
  892. package/fesm2015/ptsecurity-mosaic-splitter.js +0 -373
  893. package/fesm2015/ptsecurity-mosaic-splitter.js.map +0 -1
  894. package/fesm2015/ptsecurity-mosaic-table.js +0 -50
  895. package/fesm2015/ptsecurity-mosaic-table.js.map +0 -1
  896. package/fesm2015/ptsecurity-mosaic-tabs.js +0 -1533
  897. package/fesm2015/ptsecurity-mosaic-tabs.js.map +0 -1
  898. package/fesm2015/ptsecurity-mosaic-tags.js +0 -1385
  899. package/fesm2015/ptsecurity-mosaic-tags.js.map +0 -1
  900. package/fesm2015/ptsecurity-mosaic-textarea.js +0 -291
  901. package/fesm2015/ptsecurity-mosaic-textarea.js.map +0 -1
  902. package/fesm2015/ptsecurity-mosaic-timepicker.js +0 -712
  903. package/fesm2015/ptsecurity-mosaic-timepicker.js.map +0 -1
  904. package/fesm2015/ptsecurity-mosaic-toggle.js +0 -191
  905. package/fesm2015/ptsecurity-mosaic-toggle.js.map +0 -1
  906. package/fesm2015/ptsecurity-mosaic-tooltip.js +0 -362
  907. package/fesm2015/ptsecurity-mosaic-tooltip.js.map +0 -1
  908. package/fesm2015/ptsecurity-mosaic-tree-select.js +0 -942
  909. package/fesm2015/ptsecurity-mosaic-tree-select.js.map +0 -1
  910. package/fesm2015/ptsecurity-mosaic-tree.js +0 -1735
  911. package/fesm2015/ptsecurity-mosaic-tree.js.map +0 -1
  912. package/fesm2015/ptsecurity-mosaic.js +0 -4
  913. package/fesm2015/ptsecurity-mosaic.js.map +0 -1
@@ -1,1517 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/cdk/overlay'), require('@angular/common'), require('@ptsecurity/mosaic/icon'), require('@angular/cdk/portal'), require('rxjs'), require('@ptsecurity/mosaic/core'), require('@angular/cdk/a11y'), require('@angular/cdk/platform'), require('@ptsecurity/cdk/keycodes'), require('rxjs/operators'), require('@angular/cdk/coercion'), require('@angular/cdk/keycodes'), require('@ptsecurity/cdk/a11y'), require('@angular/animations'), require('@angular/cdk/bidi')) :
3
- typeof define === 'function' && define.amd ? define('@ptsecurity/mosaic/dropdown', ['exports', '@angular/core', '@angular/cdk/overlay', '@angular/common', '@ptsecurity/mosaic/icon', '@angular/cdk/portal', 'rxjs', '@ptsecurity/mosaic/core', '@angular/cdk/a11y', '@angular/cdk/platform', '@ptsecurity/cdk/keycodes', 'rxjs/operators', '@angular/cdk/coercion', '@angular/cdk/keycodes', '@ptsecurity/cdk/a11y', '@angular/animations', '@angular/cdk/bidi'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.ptsecurity = global.ptsecurity || {}, global.ptsecurity.mosaic = global.ptsecurity.mosaic || {}, global.ptsecurity.mosaic.dropdown = {}), global.ng.core, global.ng.cdk.overlay, global.ng.common, global.ptsecurity.mosaic.icon, global.ng.cdk.portal, global.rxjs, global.ptsecurity.mosaic.core, global.ng.cdk.a11y, global.ng.cdk.platform, global.mc.cdk.keycodes, global.rxjs.operators, global.ng.cdk.coercion, global.ng.cdk.keycodes, global.mc.cdk.a11y, global.ng.animations, global.ng.cdk.bidi));
5
- })(this, (function (exports, i0, i1$1, i3, i2, portal, rxjs, core, i1, platform, keycodes$1, operators, coercion, keycodes, a11y, animations, i4) { 'use strict';
6
-
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
18
- }
19
- });
20
- }
21
- n["default"] = e;
22
- return Object.freeze(n);
23
- }
24
-
25
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
- var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
27
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
28
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
29
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
30
- var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
31
-
32
- /**
33
- * Injection token used to provide the parent dropdown to dropdown-specific components.
34
- * @docs-private
35
- */
36
- var MC_DROPDOWN_PANEL = new i0.InjectionToken('MC_DROPDOWN_PANEL');
37
- /** Injection token to be used to override the default options for `mc-dropdown`. */
38
- var MC_DROPDOWN_DEFAULT_OPTIONS = new i0.InjectionToken('mc-dropdown-default-options', {
39
- providedIn: 'root',
40
- factory: MC_DROPDOWN_DEFAULT_OPTIONS_FACTORY
41
- });
42
- /** @docs-private */
43
- // tslint:disable-next-line:naming-convention
44
- function MC_DROPDOWN_DEFAULT_OPTIONS_FACTORY() {
45
- return {
46
- overlapTriggerX: true,
47
- overlapTriggerY: false,
48
- xPosition: 'after',
49
- yPosition: 'below',
50
- backdropClass: 'cdk-overlay-transparent-backdrop',
51
- hasBackdrop: false
52
- };
53
- }
54
-
55
- /**
56
- * Dropdown content that will be rendered lazily once the dropdown is opened.
57
- */
58
- var McDropdownContent = /** @class */ (function () {
59
- function McDropdownContent(template, componentFactoryResolver, appRef, injector, viewContainerRef, document) {
60
- this.template = template;
61
- this.componentFactoryResolver = componentFactoryResolver;
62
- this.appRef = appRef;
63
- this.injector = injector;
64
- this.viewContainerRef = viewContainerRef;
65
- this.document = document;
66
- /** Emits when the dropdown content has been attached. */
67
- this.attached = new rxjs.Subject();
68
- }
69
- /**
70
- * Attaches the content with a particular context.
71
- * @docs-private
72
- */
73
- McDropdownContent.prototype.attach = function (context) {
74
- if (context === void 0) { context = {}; }
75
- if (!this.portal) {
76
- this.portal = new portal.TemplatePortal(this.template, this.viewContainerRef);
77
- }
78
- this.detach();
79
- if (!this.outlet) {
80
- this.outlet = new portal.DomPortalOutlet(this.document.createElement('div'), this.componentFactoryResolver, this.appRef, this.injector);
81
- }
82
- var element = this.template.elementRef.nativeElement;
83
- // Because we support opening the same dropdown from different triggers (which in turn have their
84
- // own `OverlayRef` panel), we have to re-insert the host element every time, otherwise we
85
- // risk it staying attached to a pane that's no longer in the DOM.
86
- element.parentNode.insertBefore(this.outlet.outletElement, element);
87
- this.portal.attach(this.outlet, context);
88
- this.attached.next();
89
- };
90
- /**
91
- * Detaches the content.
92
- * @docs-private
93
- */
94
- McDropdownContent.prototype.detach = function () {
95
- var _a;
96
- if ((_a = this.portal) === null || _a === void 0 ? void 0 : _a.isAttached) {
97
- this.portal.detach();
98
- }
99
- };
100
- McDropdownContent.prototype.ngOnDestroy = function () {
101
- var _a;
102
- (_a = this.outlet) === null || _a === void 0 ? void 0 : _a.dispose();
103
- };
104
- return McDropdownContent;
105
- }());
106
- /** @nocollapse */ McDropdownContent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDropdownContent, deps: [{ token: i0__namespace.TemplateRef }, { token: i0__namespace.ComponentFactoryResolver }, { token: i0__namespace.ApplicationRef }, { token: i0__namespace.Injector }, { token: i0__namespace.ViewContainerRef }, { token: i3.DOCUMENT }], target: i0__namespace.ɵɵFactoryTarget.Directive });
107
- /** @nocollapse */ McDropdownContent.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McDropdownContent, selector: "ng-template[mcDropdownContent]", ngImport: i0__namespace });
108
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDropdownContent, decorators: [{
109
- type: i0.Directive,
110
- args: [{
111
- selector: 'ng-template[mcDropdownContent]'
112
- }]
113
- }], ctorParameters: function () {
114
- return [{ type: i0__namespace.TemplateRef }, { type: i0__namespace.ComponentFactoryResolver }, { type: i0__namespace.ApplicationRef }, { type: i0__namespace.Injector }, { type: i0__namespace.ViewContainerRef }, { type: undefined, decorators: [{
115
- type: i0.Inject,
116
- args: [i3.DOCUMENT]
117
- }] }];
118
- } });
119
-
120
- /*! *****************************************************************************
121
- Copyright (c) Microsoft Corporation.
122
-
123
- Permission to use, copy, modify, and/or distribute this software for any
124
- purpose with or without fee is hereby granted.
125
-
126
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
127
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
128
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
129
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
130
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
131
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
132
- PERFORMANCE OF THIS SOFTWARE.
133
- ***************************************************************************** */
134
- /* global Reflect, Promise */
135
- var extendStatics = function (d, b) {
136
- extendStatics = Object.setPrototypeOf ||
137
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
138
- function (d, b) { for (var p in b)
139
- if (Object.prototype.hasOwnProperty.call(b, p))
140
- d[p] = b[p]; };
141
- return extendStatics(d, b);
142
- };
143
- function __extends(d, b) {
144
- if (typeof b !== "function" && b !== null)
145
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
146
- extendStatics(d, b);
147
- function __() { this.constructor = d; }
148
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
149
- }
150
- var __assign = function () {
151
- __assign = Object.assign || function __assign(t) {
152
- for (var s, i = 1, n = arguments.length; i < n; i++) {
153
- s = arguments[i];
154
- for (var p in s)
155
- if (Object.prototype.hasOwnProperty.call(s, p))
156
- t[p] = s[p];
157
- }
158
- return t;
159
- };
160
- return __assign.apply(this, arguments);
161
- };
162
- function __rest(s, e) {
163
- var t = {};
164
- for (var p in s)
165
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
166
- t[p] = s[p];
167
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
168
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
169
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
170
- t[p[i]] = s[p[i]];
171
- }
172
- return t;
173
- }
174
- function __decorate(decorators, target, key, desc) {
175
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
176
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
177
- r = Reflect.decorate(decorators, target, key, desc);
178
- else
179
- for (var i = decorators.length - 1; i >= 0; i--)
180
- if (d = decorators[i])
181
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
182
- return c > 3 && r && Object.defineProperty(target, key, r), r;
183
- }
184
- function __param(paramIndex, decorator) {
185
- return function (target, key) { decorator(target, key, paramIndex); };
186
- }
187
- function __metadata(metadataKey, metadataValue) {
188
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
189
- return Reflect.metadata(metadataKey, metadataValue);
190
- }
191
- function __awaiter(thisArg, _arguments, P, generator) {
192
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
193
- return new (P || (P = Promise))(function (resolve, reject) {
194
- function fulfilled(value) { try {
195
- step(generator.next(value));
196
- }
197
- catch (e) {
198
- reject(e);
199
- } }
200
- function rejected(value) { try {
201
- step(generator["throw"](value));
202
- }
203
- catch (e) {
204
- reject(e);
205
- } }
206
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
207
- step((generator = generator.apply(thisArg, _arguments || [])).next());
208
- });
209
- }
210
- function __generator(thisArg, body) {
211
- var _ = { label: 0, sent: function () { if (t[0] & 1)
212
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
213
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
214
- function verb(n) { return function (v) { return step([n, v]); }; }
215
- function step(op) {
216
- if (f)
217
- throw new TypeError("Generator is already executing.");
218
- while (_)
219
- try {
220
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
221
- return t;
222
- if (y = 0, t)
223
- op = [op[0] & 2, t.value];
224
- switch (op[0]) {
225
- case 0:
226
- case 1:
227
- t = op;
228
- break;
229
- case 4:
230
- _.label++;
231
- return { value: op[1], done: false };
232
- case 5:
233
- _.label++;
234
- y = op[1];
235
- op = [0];
236
- continue;
237
- case 7:
238
- op = _.ops.pop();
239
- _.trys.pop();
240
- continue;
241
- default:
242
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
243
- _ = 0;
244
- continue;
245
- }
246
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
247
- _.label = op[1];
248
- break;
249
- }
250
- if (op[0] === 6 && _.label < t[1]) {
251
- _.label = t[1];
252
- t = op;
253
- break;
254
- }
255
- if (t && _.label < t[2]) {
256
- _.label = t[2];
257
- _.ops.push(op);
258
- break;
259
- }
260
- if (t[2])
261
- _.ops.pop();
262
- _.trys.pop();
263
- continue;
264
- }
265
- op = body.call(thisArg, _);
266
- }
267
- catch (e) {
268
- op = [6, e];
269
- y = 0;
270
- }
271
- finally {
272
- f = t = 0;
273
- }
274
- if (op[0] & 5)
275
- throw op[1];
276
- return { value: op[0] ? op[1] : void 0, done: true };
277
- }
278
- }
279
- var __createBinding = Object.create ? (function (o, m, k, k2) {
280
- if (k2 === undefined)
281
- k2 = k;
282
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
283
- }) : (function (o, m, k, k2) {
284
- if (k2 === undefined)
285
- k2 = k;
286
- o[k2] = m[k];
287
- });
288
- function __exportStar(m, o) {
289
- for (var p in m)
290
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
291
- __createBinding(o, m, p);
292
- }
293
- function __values(o) {
294
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
295
- if (m)
296
- return m.call(o);
297
- if (o && typeof o.length === "number")
298
- return {
299
- next: function () {
300
- if (o && i >= o.length)
301
- o = void 0;
302
- return { value: o && o[i++], done: !o };
303
- }
304
- };
305
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
306
- }
307
- function __read(o, n) {
308
- var m = typeof Symbol === "function" && o[Symbol.iterator];
309
- if (!m)
310
- return o;
311
- var i = m.call(o), r, ar = [], e;
312
- try {
313
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
314
- ar.push(r.value);
315
- }
316
- catch (error) {
317
- e = { error: error };
318
- }
319
- finally {
320
- try {
321
- if (r && !r.done && (m = i["return"]))
322
- m.call(i);
323
- }
324
- finally {
325
- if (e)
326
- throw e.error;
327
- }
328
- }
329
- return ar;
330
- }
331
- /** @deprecated */
332
- function __spread() {
333
- for (var ar = [], i = 0; i < arguments.length; i++)
334
- ar = ar.concat(__read(arguments[i]));
335
- return ar;
336
- }
337
- /** @deprecated */
338
- function __spreadArrays() {
339
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
340
- s += arguments[i].length;
341
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
342
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
343
- r[k] = a[j];
344
- return r;
345
- }
346
- function __spreadArray(to, from, pack) {
347
- if (pack || arguments.length === 2)
348
- for (var i = 0, l = from.length, ar; i < l; i++) {
349
- if (ar || !(i in from)) {
350
- if (!ar)
351
- ar = Array.prototype.slice.call(from, 0, i);
352
- ar[i] = from[i];
353
- }
354
- }
355
- return to.concat(ar || Array.prototype.slice.call(from));
356
- }
357
- function __await(v) {
358
- return this instanceof __await ? (this.v = v, this) : new __await(v);
359
- }
360
- function __asyncGenerator(thisArg, _arguments, generator) {
361
- if (!Symbol.asyncIterator)
362
- throw new TypeError("Symbol.asyncIterator is not defined.");
363
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
364
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
365
- function verb(n) { if (g[n])
366
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
367
- function resume(n, v) { try {
368
- step(g[n](v));
369
- }
370
- catch (e) {
371
- settle(q[0][3], e);
372
- } }
373
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
374
- function fulfill(value) { resume("next", value); }
375
- function reject(value) { resume("throw", value); }
376
- function settle(f, v) { if (f(v), q.shift(), q.length)
377
- resume(q[0][0], q[0][1]); }
378
- }
379
- function __asyncDelegator(o) {
380
- var i, p;
381
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
382
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
383
- }
384
- function __asyncValues(o) {
385
- if (!Symbol.asyncIterator)
386
- throw new TypeError("Symbol.asyncIterator is not defined.");
387
- var m = o[Symbol.asyncIterator], i;
388
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
389
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
390
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
391
- }
392
- function __makeTemplateObject(cooked, raw) {
393
- if (Object.defineProperty) {
394
- Object.defineProperty(cooked, "raw", { value: raw });
395
- }
396
- else {
397
- cooked.raw = raw;
398
- }
399
- return cooked;
400
- }
401
- ;
402
- var __setModuleDefault = Object.create ? (function (o, v) {
403
- Object.defineProperty(o, "default", { enumerable: true, value: v });
404
- }) : function (o, v) {
405
- o["default"] = v;
406
- };
407
- function __importStar(mod) {
408
- if (mod && mod.__esModule)
409
- return mod;
410
- var result = {};
411
- if (mod != null)
412
- for (var k in mod)
413
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
414
- __createBinding(result, mod, k);
415
- __setModuleDefault(result, mod);
416
- return result;
417
- }
418
- function __importDefault(mod) {
419
- return (mod && mod.__esModule) ? mod : { default: mod };
420
- }
421
- function __classPrivateFieldGet(receiver, state, kind, f) {
422
- if (kind === "a" && !f)
423
- throw new TypeError("Private accessor was defined without a getter");
424
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
425
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
426
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
427
- }
428
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
429
- if (kind === "m")
430
- throw new TypeError("Private method is not writable");
431
- if (kind === "a" && !f)
432
- throw new TypeError("Private accessor was defined without a setter");
433
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
434
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
435
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
436
- }
437
-
438
- // Boilerplate for applying mixins to McDropdownItem.
439
- /** @docs-private */
440
- var McDropdownItemBase = /** @class */ (function () {
441
- function McDropdownItemBase() {
442
- }
443
- return McDropdownItemBase;
444
- }());
445
- // tslint:disable-next-line:naming-convention
446
- var McDropdownItemMixinBase = core.mixinDisabled(McDropdownItemBase);
447
- /**
448
- * This directive is intended to be used inside an mc-dropdown tag.
449
- * It exists mostly to set the role attribute.
450
- */
451
- var McDropdownItem = /** @class */ (function (_super) {
452
- __extends(McDropdownItem, _super);
453
- function McDropdownItem(elementRef, focusMonitor, parentDropdownPanel) {
454
- var _this = _super.call(this) || this;
455
- _this.elementRef = elementRef;
456
- _this.focusMonitor = focusMonitor;
457
- _this.parentDropdownPanel = parentDropdownPanel;
458
- /** Stream that emits when the dropdown item is hovered. */
459
- _this.hovered = new rxjs.Subject();
460
- /** Stream that emits when the menu item is focused. */
461
- _this.focused = new rxjs.Subject();
462
- /** Whether the dropdown item is highlighted. */
463
- _this.highlighted = false;
464
- /** Whether the dropdown item acts as a trigger for a nested dropdown. */
465
- _this.isNested = false;
466
- return _this;
467
- }
468
- McDropdownItem.prototype.ngAfterViewInit = function () {
469
- if (this.focusMonitor) {
470
- // Start monitoring the element so it gets the appropriate focused classes. We want
471
- // to show the focus style for menu items only when the focus was not caused by a
472
- // mouse or touch interaction.
473
- this.focusMonitor.monitor(this.elementRef, false);
474
- }
475
- };
476
- McDropdownItem.prototype.ngOnDestroy = function () {
477
- if (this.focusMonitor) {
478
- this.focusMonitor.stopMonitoring(this.elementRef);
479
- }
480
- this.hovered.complete();
481
- this.focused.complete();
482
- };
483
- McDropdownItem.prototype.resetStyles = function () {
484
- this.getHostElement().classList.remove('cdk-keyboard-focused');
485
- };
486
- /** Focuses the dropdown item. */
487
- McDropdownItem.prototype.focus = function (origin, options) {
488
- if (this.focusMonitor && origin) {
489
- this.focusMonitor.focusVia(this.getHostElement(), origin, options);
490
- }
491
- else {
492
- this.getHostElement().focus(options);
493
- }
494
- this.focused.next(this);
495
- };
496
- /** Returns the host DOM element. */
497
- McDropdownItem.prototype.getHostElement = function () {
498
- return this.elementRef.nativeElement;
499
- };
500
- /** Used to set the `tabindex`. */
501
- McDropdownItem.prototype.getTabIndex = function () {
502
- return this.disabled ? '-1' : '0';
503
- };
504
- /** Prevents the default element actions if it is disabled. */
505
- // We have to use a `HostListener` here in order to support both Ivy and ViewEngine.
506
- // In Ivy the `host` bindings will be merged when this class is extended, whereas in
507
- // ViewEngine they're overwritten.
508
- // TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.
509
- // tslint:disable-next-line:no-host-decorator-in-concrete
510
- McDropdownItem.prototype.checkDisabled = function (event) {
511
- if (this.disabled) {
512
- event.preventDefault();
513
- event.stopPropagation();
514
- }
515
- };
516
- /** Emits to the hover stream. */
517
- // We have to use a `HostListener` here in order to support both Ivy and ViewEngine.
518
- // In Ivy the `host` bindings will be merged when this class is extended, whereas in
519
- // ViewEngine they're overwritten.
520
- // TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.
521
- // tslint:disable-next-line:no-host-decorator-in-concrete
522
- McDropdownItem.prototype.handleMouseEnter = function () {
523
- this.hovered.next(this);
524
- };
525
- /** Gets the label to be used when determining whether the option should be focused. */
526
- McDropdownItem.prototype.getLabel = function () {
527
- var _a, _b;
528
- var clone = this.getHostElement().cloneNode(true);
529
- var icons = clone.querySelectorAll('[mc-icon], .mc-icon');
530
- // Strip away icons so they don't show up in the text.
531
- // tslint:disable-next-line:prefer-for-of
532
- for (var i = 0; i < icons.length; i++) {
533
- var icon = icons[i];
534
- (_a = icon.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild(icon);
535
- }
536
- return ((_b = clone.textContent) === null || _b === void 0 ? void 0 : _b.trim()) || '';
537
- };
538
- return McDropdownItem;
539
- }(McDropdownItemMixinBase));
540
- /** @nocollapse */ McDropdownItem.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDropdownItem, deps: [{ token: i0__namespace.ElementRef }, { token: i1__namespace.FocusMonitor }, { token: MC_DROPDOWN_PANEL, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
541
- /** @nocollapse */ McDropdownItem.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McDropdownItem, selector: "mc-dropdown-item, [mc-dropdown-item]", inputs: { disabled: "disabled" }, host: { listeners: { "click": "checkDisabled($event)", "mouseenter": "handleMouseEnter()" }, properties: { "class.mc-dropdown-item_with-icon": "icon", "class.mc-dropdown-item_highlighted": "highlighted", "attr.disabled": "disabled || null", "attr.tabindex": "getTabIndex()" }, classAttribute: "mc-dropdown-item" }, queries: [{ propertyName: "icon", first: true, predicate: i2.McIcon, descendants: true }], exportAs: ["mcDropdownItem"], usesInheritance: true, ngImport: i0__namespace, 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", 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-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__namespace.McIcon, selector: "[mc-icon]", inputs: ["color"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.McIconCSSStyler, selector: "[mc-icon]" }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
542
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDropdownItem, decorators: [{
543
- type: i0.Component,
544
- args: [{
545
- selector: 'mc-dropdown-item, [mc-dropdown-item]',
546
- exportAs: 'mcDropdownItem',
547
- templateUrl: 'dropdown-item.html',
548
- styleUrls: ['dropdown-item.scss'],
549
- inputs: ['disabled'],
550
- host: {
551
- class: 'mc-dropdown-item',
552
- '[class.mc-dropdown-item_with-icon]': 'icon',
553
- '[class.mc-dropdown-item_highlighted]': 'highlighted',
554
- '[attr.disabled]': 'disabled || null',
555
- '[attr.tabindex]': 'getTabIndex()'
556
- },
557
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
558
- encapsulation: i0.ViewEncapsulation.None
559
- }]
560
- }], ctorParameters: function () {
561
- return [{ type: i0__namespace.ElementRef }, { type: i1__namespace.FocusMonitor }, { type: undefined, decorators: [{
562
- type: i0.Inject,
563
- args: [MC_DROPDOWN_PANEL]
564
- }, {
565
- type: i0.Optional
566
- }] }];
567
- }, propDecorators: { icon: [{
568
- type: i0.ContentChild,
569
- args: [i2.McIcon]
570
- }], checkDisabled: [{
571
- type: i0.HostListener,
572
- args: ['click', ['$event']]
573
- }], handleMouseEnter: [{
574
- type: i0.HostListener,
575
- args: ['mouseenter']
576
- }] } });
577
-
578
- /**
579
- * Throws an exception for the case when dropdown trigger doesn't have a valid mc-dropdown instance
580
- * @docs-private
581
- */
582
- function throwMcDropdownMissingError() {
583
- throw Error("mcDropdownTriggerFor: must pass in an mc-dropdown instance.\n Example:\n <mc-dropdown #dropdown=\"mcDropdown\"></mc-dropdown>\n <button [mcDropdownTriggerFor]=\"dropdown\"></button>");
584
- }
585
- /**
586
- * Throws an exception for the case when dropdown's x-position value isn't valid.
587
- * In other words, it doesn't match 'before' or 'after'.
588
- * @docs-private
589
- */
590
- function throwMcDropdownInvalidPositionX() {
591
- throw Error("xPosition value must be either 'before' or after'.\n Example: <mc-dropdown [xPosition]=\"'before'\" #dropdown=\"mcDropdown\"></mc-dropdown>");
592
- }
593
- /**
594
- * Throws an exception for the case when dropdown's y-position value isn't valid.
595
- * In other words, it doesn't match 'above' or 'below'.
596
- * @docs-private
597
- */
598
- function throwMcDropdownInvalidPositionY() {
599
- throw Error("yPosition value must be either 'above' or below'.\n Example: <mc-dropdown [yPosition]=\"'above'\" #dropdown=\"mcDropdown\"></mc-dropdown>");
600
- }
601
-
602
- /**
603
- * Animations used by the mc-dropdown component.
604
- * @docs-private
605
- */
606
- var mcDropdownAnimations = {
607
- /**
608
- * This animation controls the dropdown panel's entry and exit from the page.
609
- *
610
- * When the dropdown panel is added to the DOM, it scales in and fades in its border.
611
- *
612
- * When the dropdown panel is removed from the DOM, it simply fades out after a brief
613
- * delay to display the ripple.
614
- */
615
- transformDropdown: animations.trigger('transformDropdown', [
616
- animations.state('void', animations.style({
617
- opacity: 0,
618
- transform: 'scale(0.8)'
619
- })),
620
- animations.transition('void => enter', animations.group([
621
- animations.query('.mc-dropdown__content', animations.animate('50ms linear', animations.style({ opacity: 1 }))),
622
- animations.animate('50ms cubic-bezier(0, 0, 0.2, 1)', animations.style({ transform: 'scale(1)' }))
623
- ])),
624
- animations.transition('* => void', animations.animate('50ms 25ms linear', animations.style({ opacity: 0 })))
625
- ]),
626
- /**
627
- * This animation fades in the background color and content of the dropdown panel
628
- * after its containing element is scaled in.
629
- */
630
- fadeInItems: animations.trigger('fadeInItems', [
631
- // now. Remove next time we do breaking changes.
632
- animations.state('showing', animations.style({ opacity: 1 })),
633
- animations.transition('void => *', [
634
- animations.style({ opacity: 0 }),
635
- animations.animate('200ms 60ms cubic-bezier(0.55, 0, 0.55, 0.2)')
636
- ])
637
- ])
638
- };
639
- var fadeInItems = mcDropdownAnimations.fadeInItems;
640
- var transformDropdown = mcDropdownAnimations.transformDropdown;
641
-
642
- var McDropdown = /** @class */ (function () {
643
- function McDropdown(elementRef, ngZone, defaultOptions) {
644
- this.elementRef = elementRef;
645
- this.ngZone = ngZone;
646
- this.defaultOptions = defaultOptions;
647
- this.navigationWithWrap = false;
648
- this._xPosition = this.defaultOptions.xPosition;
649
- this._yPosition = this.defaultOptions.yPosition;
650
- this._overlapTriggerX = this.defaultOptions.overlapTriggerX;
651
- this._overlapTriggerY = this.defaultOptions.overlapTriggerY;
652
- this._hasBackdrop = this.defaultOptions.hasBackdrop;
653
- this.triggerWidth = '';
654
- /** Config object to be passed into the dropdown's ngClass */
655
- this.classList = {};
656
- /** Current state of the panel animation. */
657
- this.panelAnimationState = 'void';
658
- /** Emits whenever an animation on the dropdown completes. */
659
- this.animationDone = new rxjs.Subject();
660
- /** Class to be added to the backdrop element. */
661
- this.backdropClass = this.defaultOptions.backdropClass;
662
- /** Event emitted when the dropdown is closed. */
663
- this.closed = new i0.EventEmitter();
664
- /** Only the direct descendant menu items. */
665
- this.directDescendantItems = new i0.QueryList();
666
- /** Subscription to tab events on the dropdown panel */
667
- this.tabSubscription = rxjs.Subscription.EMPTY;
668
- }
669
- Object.defineProperty(McDropdown.prototype, "xPosition", {
670
- /** Position of the dropdown in the X axis. */
671
- get: function () {
672
- return this._xPosition;
673
- },
674
- set: function (value) {
675
- if (value !== 'before' && value !== 'after') {
676
- throwMcDropdownInvalidPositionX();
677
- }
678
- this._xPosition = value;
679
- this.setPositionClasses();
680
- },
681
- enumerable: false,
682
- configurable: true
683
- });
684
- Object.defineProperty(McDropdown.prototype, "yPosition", {
685
- /** Position of the dropdown in the Y axis. */
686
- get: function () {
687
- return this._yPosition;
688
- },
689
- set: function (value) {
690
- if (value !== 'above' && value !== 'below') {
691
- throwMcDropdownInvalidPositionY();
692
- }
693
- this._yPosition = value;
694
- this.setPositionClasses();
695
- },
696
- enumerable: false,
697
- configurable: true
698
- });
699
- Object.defineProperty(McDropdown.prototype, "overlapTriggerY", {
700
- /** Whether the dropdown should overlap its trigger vertically. */
701
- get: function () {
702
- return this._overlapTriggerY;
703
- },
704
- set: function (value) {
705
- this._overlapTriggerY = coercion.coerceBooleanProperty(value);
706
- },
707
- enumerable: false,
708
- configurable: true
709
- });
710
- Object.defineProperty(McDropdown.prototype, "overlapTriggerX", {
711
- /** Whether the dropdown should overlap its trigger horizontally. */
712
- get: function () {
713
- return this._overlapTriggerX;
714
- },
715
- set: function (value) {
716
- this._overlapTriggerX = coercion.coerceBooleanProperty(value);
717
- },
718
- enumerable: false,
719
- configurable: true
720
- });
721
- Object.defineProperty(McDropdown.prototype, "hasBackdrop", {
722
- /** Whether the dropdown has a backdrop. */
723
- get: function () {
724
- return this._hasBackdrop;
725
- },
726
- set: function (value) {
727
- this._hasBackdrop = coercion.coerceBooleanProperty(value);
728
- },
729
- enumerable: false,
730
- configurable: true
731
- });
732
- Object.defineProperty(McDropdown.prototype, "panelClass", {
733
- /**
734
- * This method takes classes set on the host mc-dropdown element and applies them on the
735
- * dropdown template that displays in the overlay container. Otherwise, it's difficult
736
- * to style the containing dropdown from outside the component.
737
- * @param classes list of class names
738
- */
739
- set: function (classes) {
740
- var _this = this;
741
- var previousPanelClass = this.previousPanelClass;
742
- if (previousPanelClass && previousPanelClass.length) {
743
- previousPanelClass
744
- .split(' ')
745
- .forEach(function (className) { return _this.classList[className] = false; });
746
- }
747
- this.previousPanelClass = classes;
748
- if (classes === null || classes === void 0 ? void 0 : classes.length) {
749
- classes
750
- .split(' ')
751
- .forEach(function (className) { return _this.classList[className] = true; });
752
- this.elementRef.nativeElement.className = '';
753
- }
754
- },
755
- enumerable: false,
756
- configurable: true
757
- });
758
- McDropdown.prototype.ngOnInit = function () {
759
- this.setPositionClasses();
760
- };
761
- McDropdown.prototype.ngAfterContentInit = function () {
762
- var _this = this;
763
- this.updateDirectDescendants();
764
- this.keyManager = new a11y.FocusKeyManager(this.directDescendantItems)
765
- .withTypeAhead();
766
- if (this.navigationWithWrap) {
767
- this.keyManager.withWrap();
768
- }
769
- this.tabSubscription = this.keyManager.tabOut
770
- .subscribe(function () { return _this.closed.emit('tab'); });
771
- // If a user manually (programmatically) focuses a menu item, we need to reflect that focus
772
- // change back to the key manager. Note that we don't need to unsubscribe here because focused
773
- // is internal and we know that it gets completed on destroy.
774
- this.directDescendantItems.changes
775
- .pipe(operators.startWith(this.directDescendantItems), operators.switchMap(function (items) { return rxjs.merge.apply(void 0, __spreadArray([], __read(items.map(function (item) { return item.focused; })))); }))
776
- .subscribe(function (focusedItem) { return _this.keyManager.updateActiveItem(focusedItem); });
777
- };
778
- McDropdown.prototype.ngOnDestroy = function () {
779
- this.directDescendantItems.destroy();
780
- this.tabSubscription.unsubscribe();
781
- this.closed.complete();
782
- };
783
- /** Stream that emits whenever the hovered dropdown item changes. */
784
- McDropdown.prototype.hovered = function () {
785
- var itemChanges = this.directDescendantItems.changes;
786
- return itemChanges.pipe(operators.startWith(this.directDescendantItems), operators.switchMap(function (items) { return rxjs.merge.apply(void 0, __spreadArray([], __read(items.map(function (item) { return item.hovered; })))); }));
787
- };
788
- /** Handle a keyboard event from the dropdown, delegating to the appropriate action. */
789
- McDropdown.prototype.handleKeydown = function (event) {
790
- // tslint:disable-next-line:deprecation
791
- var keyCode = event.keyCode;
792
- switch (keyCode) {
793
- case keycodes$1.ESCAPE:
794
- this.closed.emit('keydown');
795
- break;
796
- case keycodes$1.LEFT_ARROW:
797
- if (this.parent && this.direction === 'ltr') {
798
- this.closed.emit('keydown');
799
- }
800
- break;
801
- case keycodes$1.RIGHT_ARROW:
802
- if (this.parent && this.direction === 'rtl') {
803
- this.closed.emit('keydown');
804
- }
805
- break;
806
- default:
807
- if (keyCode === keycodes.UP_ARROW || keyCode === keycodes.DOWN_ARROW) {
808
- this.keyManager.setFocusOrigin('keyboard');
809
- }
810
- this.keyManager.onKeydown(event);
811
- return;
812
- }
813
- // Don't allow the event to propagate if we've already handled it, or it may
814
- // end up reaching other overlays that were opened earlier.
815
- event.stopPropagation();
816
- };
817
- /**
818
- * Focus the first item in the dropdown.
819
- * @param origin Action from which the focus originated. Used to set the correct styling.
820
- */
821
- McDropdown.prototype.focusFirstItem = function (origin) {
822
- var _this = this;
823
- if (origin === void 0) { origin = 'program'; }
824
- // When the content is rendered lazily, it takes a bit before the items are inside the DOM.
825
- if (this.lazyContent) {
826
- this.ngZone.onStable
827
- .pipe(operators.take(1))
828
- .subscribe(function () { return _this.keyManager.setFocusOrigin(origin).setFirstItemActive(); });
829
- }
830
- else {
831
- this.keyManager.setFocusOrigin(origin).setFirstItemActive();
832
- }
833
- };
834
- /**
835
- * Resets the active item in the dropdown. This is used when the dropdown is opened, allowing
836
- * the user to start from the first option when pressing the down arrow.
837
- */
838
- McDropdown.prototype.resetActiveItem = function () {
839
- var _a;
840
- (_a = this.keyManager.activeItem) === null || _a === void 0 ? void 0 : _a.resetStyles();
841
- this.keyManager.setActiveItem(-1);
842
- };
843
- /**
844
- * Adds classes to the dropdown panel based on its position. Can be used by
845
- * consumers to add specific styling based on the position.
846
- * @param posX Position of the dropdown along the x axis.
847
- * @param posY Position of the dropdown along the y axis.
848
- * @docs-private
849
- */
850
- McDropdown.prototype.setPositionClasses = function (posX, posY) {
851
- if (posX === void 0) { posX = this.xPosition; }
852
- if (posY === void 0) { posY = this.yPosition; }
853
- var classes = this.classList;
854
- classes['mc-dropdown-before'] = posX === 'before';
855
- classes['mc-dropdown-after'] = posX === 'after';
856
- classes['mc-dropdown-above'] = posY === 'above';
857
- classes['mc-dropdown-below'] = posY === 'below';
858
- };
859
- /** Starts the enter animation. */
860
- McDropdown.prototype.startAnimation = function () {
861
- this.panelAnimationState = 'enter';
862
- };
863
- /** Resets the panel animation to its initial state. */
864
- McDropdown.prototype.resetAnimation = function () {
865
- this.panelAnimationState = 'void';
866
- };
867
- /** Callback that is invoked when the panel animation completes. */
868
- McDropdown.prototype.onAnimationDone = function (event) {
869
- this.animationDone.next(event);
870
- this.isAnimating = false;
871
- };
872
- McDropdown.prototype.onAnimationStart = function (event) {
873
- this.isAnimating = true;
874
- // Scroll the content element to the top as soon as the animation starts. This is necessary,
875
- // because we move focus to the first item while it's still being animated, which can throw
876
- // the browser off when it determines the scroll position. Alternatively we can move focus
877
- // when the animation is done, however moving focus asynchronously will interrupt screen
878
- // readers which are in the process of reading out the dropdown already. We take the `element`
879
- // from the `event` since we can't use a `ViewChild` to access the pane.
880
- if (event.toState === 'enter' && this.keyManager.activeItemIndex === 0) {
881
- event.element.scrollTop = 0;
882
- }
883
- };
884
- McDropdown.prototype.close = function () {
885
- var focusOrigin = this.keyManager.getFocusOrigin() === 'keyboard' ? 'keydown' : 'click';
886
- this.closed.emit(focusOrigin);
887
- };
888
- /**
889
- * Sets up a stream that will keep track of any newly-added menu items and will update the list
890
- * of direct descendants. We collect the descendants this way, because `_allItems` can include
891
- * items that are part of child menus, and using a custom way of registering items is unreliable
892
- * when it comes to maintaining the item order.
893
- */
894
- McDropdown.prototype.updateDirectDescendants = function () {
895
- var _this = this;
896
- this.items.changes
897
- .pipe(operators.startWith(this.items))
898
- .subscribe(function (items) {
899
- _this.directDescendantItems.reset(items.filter(function (item) { return item.parentDropdownPanel === _this; }));
900
- _this.directDescendantItems.notifyOnChanges();
901
- });
902
- };
903
- return McDropdown;
904
- }());
905
- /** @nocollapse */ McDropdown.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDropdown, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.NgZone }, { token: MC_DROPDOWN_DEFAULT_OPTIONS }], target: i0__namespace.ɵɵFactoryTarget.Component });
906
- /** @nocollapse */ McDropdown.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McDropdown, selector: "mc-dropdown", inputs: { navigationWithWrap: "navigationWithWrap", xPosition: "xPosition", yPosition: "yPosition", overlapTriggerY: "overlapTriggerY", overlapTriggerX: "overlapTriggerX", hasBackdrop: "hasBackdrop", panelClass: ["class", "panelClass"], backdropClass: "backdropClass" }, outputs: { closed: "closed" }, providers: [
907
- { provide: MC_DROPDOWN_PANEL, useExisting: McDropdown }
908
- ], queries: [{ propertyName: "lazyContent", first: true, predicate: McDropdownContent, descendants: true }, { propertyName: "items", predicate: McDropdownItem, descendants: true }], viewQueries: [{ propertyName: "templateRef", first: true, predicate: i0.TemplateRef, descendants: true }], exportAs: ["mcDropdown"], ngImport: i0__namespace, 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__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], animations: [
909
- mcDropdownAnimations.transformDropdown,
910
- mcDropdownAnimations.fadeInItems
911
- ], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
912
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDropdown, decorators: [{
913
- type: i0.Component,
914
- args: [{
915
- selector: 'mc-dropdown',
916
- exportAs: 'mcDropdown',
917
- templateUrl: 'dropdown.html',
918
- styleUrls: ['dropdown.scss'],
919
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
920
- encapsulation: i0.ViewEncapsulation.None,
921
- animations: [
922
- mcDropdownAnimations.transformDropdown,
923
- mcDropdownAnimations.fadeInItems
924
- ],
925
- providers: [
926
- { provide: MC_DROPDOWN_PANEL, useExisting: McDropdown }
927
- ]
928
- }]
929
- }], ctorParameters: function () {
930
- return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.NgZone }, { type: undefined, decorators: [{
931
- type: i0.Inject,
932
- args: [MC_DROPDOWN_DEFAULT_OPTIONS]
933
- }] }];
934
- }, propDecorators: { navigationWithWrap: [{
935
- type: i0.Input
936
- }], xPosition: [{
937
- type: i0.Input
938
- }], yPosition: [{
939
- type: i0.Input
940
- }], overlapTriggerY: [{
941
- type: i0.Input
942
- }], overlapTriggerX: [{
943
- type: i0.Input
944
- }], hasBackdrop: [{
945
- type: i0.Input
946
- }], panelClass: [{
947
- type: i0.Input,
948
- args: ['class']
949
- }], backdropClass: [{
950
- type: i0.Input
951
- }], templateRef: [{
952
- type: i0.ViewChild,
953
- args: [i0.TemplateRef, { static: false }]
954
- }], items: [{
955
- type: i0.ContentChildren,
956
- args: [McDropdownItem, { descendants: true }]
957
- }], lazyContent: [{
958
- type: i0.ContentChild,
959
- args: [McDropdownContent, { static: false }]
960
- }], closed: [{
961
- type: i0.Output
962
- }] } });
963
-
964
- /** Injection token that determines the scroll handling while the dropdown is open. */
965
- var MC_DROPDOWN_SCROLL_STRATEGY = new i0.InjectionToken('mc-dropdown-scroll-strategy');
966
- /** @docs-private */
967
- // tslint:disable-next-line:naming-convention
968
- function MC_DROPDOWN_SCROLL_STRATEGY_FACTORY(overlay) {
969
- return function () { return overlay.scrollStrategies.reposition(); };
970
- }
971
- /** @docs-private */
972
- var MC_DROPDOWN_SCROLL_STRATEGY_FACTORY_PROVIDER = {
973
- provide: MC_DROPDOWN_SCROLL_STRATEGY,
974
- deps: [i1$1.Overlay],
975
- useFactory: MC_DROPDOWN_SCROLL_STRATEGY_FACTORY
976
- };
977
- /** Default top padding of the nested dropdown panel. */
978
- var NESTED_PANEL_TOP_PADDING = 4;
979
- var NESTED_PANEL_LEFT_PADDING = 8;
980
- /** Options for binding a passive event listener. */
981
- var passiveEventListenerOptions = platform.normalizePassiveListenerOptions({ passive: true });
982
- /**
983
- * This directive is intended to be used in conjunction with an mc-dropdown tag. It is
984
- * responsible for toggling the display of the provided dropdown instance.
985
- */
986
- var McDropdownTrigger = /** @class */ (function () {
987
- function McDropdownTrigger(overlay, elementRef, viewContainerRef, scrollStrategy, parent, dropdownItemInstance, _dir, focusMonitor) {
988
- var _this = this;
989
- this.overlay = overlay;
990
- this.elementRef = elementRef;
991
- this.viewContainerRef = viewContainerRef;
992
- this.scrollStrategy = scrollStrategy;
993
- this.parent = parent;
994
- this.dropdownItemInstance = dropdownItemInstance;
995
- this._dir = _dir;
996
- this.focusMonitor = focusMonitor;
997
- this.openByArrowDown = true;
998
- /**
999
- * Whether focus should be restored when the menu is closed.
1000
- * Note that disabling this option can have accessibility implications
1001
- * and it's up to you to manage focus, if you decide to turn it off.
1002
- */
1003
- this.restoreFocus = true;
1004
- /** Event emitted when the associated dropdown is opened. */
1005
- this.dropdownOpened = new i0.EventEmitter();
1006
- /** Event emitted when the associated dropdown is closed. */
1007
- this.dropdownClosed = new i0.EventEmitter();
1008
- this._opened = false;
1009
- this.overlayRef = null;
1010
- this.closeSubscription = rxjs.Subscription.EMPTY;
1011
- this.hoverSubscription = rxjs.Subscription.EMPTY;
1012
- /**
1013
- * Handles touch start events on the trigger.
1014
- * Needs to be an arrow function so we can easily use addEventListener and removeEventListener.
1015
- */
1016
- this.handleTouchStart = function () { return _this.openedBy = 'touch'; };
1017
- elementRef.nativeElement.addEventListener('touchstart', this.handleTouchStart, passiveEventListenerOptions);
1018
- if (dropdownItemInstance) {
1019
- dropdownItemInstance.isNested = this.isNested();
1020
- }
1021
- }
1022
- Object.defineProperty(McDropdownTrigger.prototype, "dropdown", {
1023
- /** References the dropdown instance that the trigger is associated with. */
1024
- get: function () {
1025
- return this._dropdown;
1026
- },
1027
- set: function (dropdown) {
1028
- var _this = this;
1029
- if (dropdown === this._dropdown) {
1030
- return;
1031
- }
1032
- this._dropdown = dropdown;
1033
- this.closeSubscription.unsubscribe();
1034
- if (dropdown) {
1035
- this.closeSubscription = dropdown.closed
1036
- .asObservable()
1037
- .subscribe(function (reason) {
1038
- _this.destroy(reason);
1039
- // If a click closed the dropdown, we should close the entire chain of nested dropdowns.
1040
- if (['click', 'tab'].includes(reason) && _this.parent) {
1041
- _this.parent.closed.emit(reason);
1042
- }
1043
- });
1044
- }
1045
- },
1046
- enumerable: false,
1047
- configurable: true
1048
- });
1049
- Object.defineProperty(McDropdownTrigger.prototype, "dir", {
1050
- /** The text direction of the containing app. */
1051
- get: function () {
1052
- var _a;
1053
- return ((_a = this._dir) === null || _a === void 0 ? void 0 : _a.value) === 'rtl' ? 'rtl' : 'ltr';
1054
- },
1055
- enumerable: false,
1056
- configurable: true
1057
- });
1058
- Object.defineProperty(McDropdownTrigger.prototype, "opened", {
1059
- /** Whether the dropdown is open. */
1060
- get: function () {
1061
- return this._opened;
1062
- },
1063
- enumerable: false,
1064
- configurable: true
1065
- });
1066
- McDropdownTrigger.prototype.ngAfterContentInit = function () {
1067
- this.check();
1068
- this.handleHover();
1069
- };
1070
- McDropdownTrigger.prototype.ngOnDestroy = function () {
1071
- if (this.overlayRef) {
1072
- this.overlayRef.dispose();
1073
- this.overlayRef = null;
1074
- }
1075
- this.elementRef.nativeElement.removeEventListener('touchstart', this.handleTouchStart, passiveEventListenerOptions);
1076
- this.cleanUpSubscriptions();
1077
- };
1078
- /** Whether the dropdown triggers a nested dropdown or a top-level one. */
1079
- McDropdownTrigger.prototype.isNested = function () {
1080
- return !!(this.dropdownItemInstance && this.parent);
1081
- };
1082
- /** Toggles the dropdown between the open and closed states. */
1083
- McDropdownTrigger.prototype.toggle = function () {
1084
- // tslint:disable-next-line:no-void-expression
1085
- return this._opened ? this.close() : this.open();
1086
- };
1087
- /** Opens the dropdown. */
1088
- McDropdownTrigger.prototype.open = function () {
1089
- var _this = this;
1090
- if (this._opened) {
1091
- return;
1092
- }
1093
- this.check();
1094
- var overlayRef = this.createOverlay();
1095
- var overlayConfig = overlayRef.getConfig();
1096
- this.setPosition(overlayConfig.positionStrategy);
1097
- overlayConfig.hasBackdrop = this.dropdown.hasBackdrop ? !this.isNested() : this.dropdown.hasBackdrop;
1098
- overlayRef.attach(this.getPortal());
1099
- if (this.dropdown.lazyContent) {
1100
- this.dropdown.lazyContent.detach();
1101
- this.dropdown.lazyContent.attach(this.data);
1102
- }
1103
- this.closeSubscription = this.closingActions()
1104
- .subscribe(function () { return _this.close(); });
1105
- this.init();
1106
- if (this.dropdown instanceof McDropdown) {
1107
- this.dropdown.startAnimation();
1108
- }
1109
- };
1110
- /** Closes the dropdown. */
1111
- McDropdownTrigger.prototype.close = function () {
1112
- this.dropdown.closed.emit();
1113
- };
1114
- /**
1115
- * Focuses the dropdown trigger.
1116
- */
1117
- McDropdownTrigger.prototype.focus = function (origin, options) {
1118
- if (this.focusMonitor && origin) {
1119
- this.focusMonitor.focusVia(this.elementRef.nativeElement, origin, options);
1120
- }
1121
- else {
1122
- this.elementRef.nativeElement.focus();
1123
- }
1124
- };
1125
- /** Handles mouse presses on the trigger. */
1126
- McDropdownTrigger.prototype.handleMousedown = function (event) {
1127
- // Since right or middle button clicks won't trigger the `click` event,
1128
- // we shouldn't consider the dropdown as opened by mouse in those cases.
1129
- this.openedBy = event.button === 0 ? 'mouse' : undefined;
1130
- // Since clicking on the trigger won't close the dropdown if it opens a nested dropdown,
1131
- // we should prevent focus from moving onto it via click to avoid the
1132
- // highlight from lingering on the dropdown item.
1133
- if (this.isNested()) {
1134
- event.preventDefault();
1135
- }
1136
- };
1137
- /** Handles key presses on the trigger. */
1138
- McDropdownTrigger.prototype.handleKeydown = function (event) {
1139
- // tslint:disable-next-line:deprecation
1140
- var keyCode = event.keyCode;
1141
- // Pressing enter on the trigger will trigger the click handler later.
1142
- if (keyCode === keycodes$1.ENTER || keyCode === keycodes$1.SPACE) {
1143
- this.openedBy = 'keyboard';
1144
- }
1145
- if ((this.isNested() &&
1146
- ((keyCode === keycodes$1.RIGHT_ARROW && this.dir === 'ltr') || (keyCode === keycodes$1.LEFT_ARROW && this.dir === 'rtl'))) ||
1147
- (!this.isNested() && (keyCode === keycodes$1.DOWN_ARROW && this.openByArrowDown))) {
1148
- event.preventDefault();
1149
- this.openedBy = 'keyboard';
1150
- this.open();
1151
- }
1152
- };
1153
- /** Handles click events on the trigger. */
1154
- McDropdownTrigger.prototype.handleClick = function (event) {
1155
- if (this.isNested()) {
1156
- // Stop event propagation to avoid closing the parent dropdown.
1157
- event.stopPropagation();
1158
- this.open();
1159
- }
1160
- else {
1161
- this.toggle();
1162
- }
1163
- };
1164
- /** Closes the dropdown and does the necessary cleanup. */
1165
- McDropdownTrigger.prototype.destroy = function (reason) {
1166
- var _this = this;
1167
- if (!this.overlayRef || !this.opened) {
1168
- return;
1169
- }
1170
- this.lastDestroyReason = reason;
1171
- this.dropdown.resetActiveItem();
1172
- this.closeSubscription.unsubscribe();
1173
- this.overlayRef.detach();
1174
- if (this.restoreFocus && (reason === 'keydown' || !this.openedBy || !this.isNested())) {
1175
- this.focus(this.openedBy);
1176
- }
1177
- this.openedBy = undefined;
1178
- if (this.dropdown instanceof McDropdown) {
1179
- this.dropdown.resetAnimation();
1180
- var animationSubscription = this.dropdown.animationDone
1181
- .pipe(operators.filter(function (event) { return event.toState === 'void'; }), operators.take(1));
1182
- if (this.dropdown.lazyContent) {
1183
- // Wait for the exit animation to finish before detaching the content.
1184
- animationSubscription
1185
- .pipe(
1186
- // Interrupt if the content got re-attached.
1187
- operators.takeUntil(this.dropdown.lazyContent.attached))
1188
- .subscribe({
1189
- next: function () { return _this.dropdown.lazyContent.detach(); },
1190
- // No matter whether the content got re-attached, reset the this.dropdown.
1191
- complete: function () { return _this.setIsOpened(false); }
1192
- });
1193
- }
1194
- else {
1195
- animationSubscription
1196
- .subscribe(function () { return _this.setIsOpened(false); });
1197
- }
1198
- }
1199
- else {
1200
- this.setIsOpened(false);
1201
- if (this.dropdown.lazyContent) {
1202
- this.dropdown.lazyContent.detach();
1203
- }
1204
- }
1205
- };
1206
- /**
1207
- * This method sets the dropdown state to open and focuses the first item if
1208
- * the dropdown was opened via the keyboard.
1209
- */
1210
- McDropdownTrigger.prototype.init = function () {
1211
- this.dropdown.parent = this.isNested() ? this.parent : undefined;
1212
- this.dropdown.direction = this.dir;
1213
- if (!this.dropdown.parent) {
1214
- this.dropdown.triggerWidth = this.getWidth();
1215
- }
1216
- this.dropdown.focusFirstItem(this.openedBy || 'program');
1217
- this.setIsOpened(true);
1218
- };
1219
- // set state rather than toggle to support triggers sharing a dropdown
1220
- McDropdownTrigger.prototype.setIsOpened = function (isOpen) {
1221
- this._opened = isOpen;
1222
- // tslint:disable-next-line:no-void-expression
1223
- this._opened ? this.dropdownOpened.emit() : this.dropdownClosed.emit();
1224
- if (this.isNested()) {
1225
- this.dropdownItemInstance.highlighted = isOpen;
1226
- }
1227
- };
1228
- /**
1229
- * This method checks that a valid instance of McDropdown has been passed into
1230
- * mcDropdownTriggerFor. If not, an exception is thrown.
1231
- */
1232
- McDropdownTrigger.prototype.check = function () {
1233
- if (!this.dropdown) {
1234
- throwMcDropdownMissingError();
1235
- }
1236
- };
1237
- /**
1238
- * This method creates the overlay from the provided dropdown's template and saves its
1239
- * OverlayRef so that it can be attached to the DOM when open is called.
1240
- */
1241
- McDropdownTrigger.prototype.createOverlay = function () {
1242
- if (!this.overlayRef) {
1243
- var config = this.getOverlayConfig();
1244
- this.subscribeToPositions(config.positionStrategy);
1245
- this.overlayRef = this.overlay.create(config);
1246
- // Consume the `keydownEvents` in order to prevent them from going to another overlay.
1247
- // Ideally we'd also have our keyboard event logic in here, however doing so will
1248
- // break anybody that may have implemented the `McDropdownPanel` themselves.
1249
- this.overlayRef.keydownEvents()
1250
- .subscribe();
1251
- }
1252
- return this.overlayRef;
1253
- };
1254
- /**
1255
- * This method builds the configuration object needed to create the overlay, the OverlayState.
1256
- * @returns OverlayConfig
1257
- */
1258
- McDropdownTrigger.prototype.getOverlayConfig = function () {
1259
- return new i1$1.OverlayConfig({
1260
- positionStrategy: this.overlay.position()
1261
- .flexibleConnectedTo(this.elementRef)
1262
- .withLockedPosition()
1263
- .withTransformOriginOn('.mc-dropdown__panel'),
1264
- backdropClass: this.dropdown.backdropClass || 'cdk-overlay-transparent-backdrop',
1265
- scrollStrategy: this.scrollStrategy(),
1266
- direction: this.dir
1267
- });
1268
- };
1269
- /**
1270
- * Listens to changes in the position of the overlay and sets the correct classes
1271
- * on the dropdown based on the new position. This ensures the animation origin is always
1272
- * correct, even if a fallback position is used for the overlay.
1273
- */
1274
- McDropdownTrigger.prototype.subscribeToPositions = function (position) {
1275
- var _this = this;
1276
- if (this.dropdown.setPositionClasses) {
1277
- position.positionChanges
1278
- .subscribe(function (change) {
1279
- var posX = change.connectionPair.overlayX === 'start' ? 'after' : 'before';
1280
- var posY = change.connectionPair.overlayY === 'top' ? 'below' : 'above';
1281
- _this.dropdown.setPositionClasses(posX, posY);
1282
- });
1283
- }
1284
- };
1285
- /**
1286
- * Sets the appropriate positions on a position strategy
1287
- * so the overlay connects with the trigger correctly.
1288
- * @param positionStrategy Strategy whose position to update.
1289
- */
1290
- McDropdownTrigger.prototype.setPosition = function (positionStrategy) {
1291
- var _b = __read(this.dropdown.xPosition === 'before' ?
1292
- ['end', 'start', 'end', 'start'] :
1293
- ['start', 'end', 'start', 'end'], 4), originX = _b[0], originFallbackX = _b[1], overlayX = _b[2], overlayFallbackX = _b[3];
1294
- // tslint:disable-next-line:prefer-const
1295
- var _c = __read(this.dropdown.yPosition === 'above' ?
1296
- ['bottom', 'top', 'bottom', 'top'] :
1297
- ['top', 'bottom', 'top', 'bottom'], 4), overlayY = _c[0], overlayFallbackY = _c[1], originY = _c[2], originFallbackY = _c[3];
1298
- var offsetY = 0;
1299
- var offsetX = 0;
1300
- if (this.isNested()) {
1301
- // When the dropdown is nested, it should always align itself
1302
- // to the edges of the trigger, instead of overlapping it.
1303
- overlayFallbackX = originX = this.dropdown.xPosition === 'before' ? 'start' : 'end';
1304
- originFallbackX = overlayX = originX === 'end' ? 'start' : 'end';
1305
- offsetY = overlayY === 'bottom' ? NESTED_PANEL_TOP_PADDING : -NESTED_PANEL_TOP_PADDING;
1306
- offsetX = NESTED_PANEL_LEFT_PADDING;
1307
- }
1308
- else {
1309
- if (!this.dropdown.overlapTriggerY) {
1310
- originY = overlayY === 'top' ? 'bottom' : 'top';
1311
- originFallbackY = overlayFallbackY === 'top' ? 'bottom' : 'top';
1312
- }
1313
- if (!this.dropdown.overlapTriggerX) {
1314
- overlayFallbackX = originX = this.dropdown.xPosition === 'before' ? 'start' : 'end';
1315
- originFallbackX = overlayX = originX === 'end' ? 'start' : 'end';
1316
- }
1317
- }
1318
- positionStrategy.withPositions([
1319
- { originX: originX, originY: originY, overlayX: overlayX, overlayY: overlayY, offsetY: offsetY, offsetX: -offsetX },
1320
- { originX: originFallbackX, originY: originY, overlayX: overlayFallbackX, overlayY: overlayY, offsetY: offsetY, offsetX: offsetX },
1321
- {
1322
- originX: originX,
1323
- originY: originFallbackY,
1324
- overlayX: overlayX,
1325
- overlayY: overlayFallbackY,
1326
- offsetY: -offsetY,
1327
- offsetX: -offsetX
1328
- },
1329
- {
1330
- originX: originFallbackX,
1331
- originY: originFallbackY,
1332
- overlayX: overlayFallbackX,
1333
- overlayY: overlayFallbackY,
1334
- offsetY: -offsetY,
1335
- offsetX: -offsetX
1336
- }
1337
- ]);
1338
- };
1339
- /** Cleans up the active subscriptions. */
1340
- McDropdownTrigger.prototype.cleanUpSubscriptions = function () {
1341
- this.closeSubscription.unsubscribe();
1342
- this.hoverSubscription.unsubscribe();
1343
- };
1344
- /** Returns a stream that emits whenever an action that should close the dropdown occurs. */
1345
- McDropdownTrigger.prototype.closingActions = function () {
1346
- var _this = this;
1347
- var backdrop = this.overlayRef.backdropClick();
1348
- var outsidePointerEvents = this.overlayRef.outsidePointerEvents();
1349
- var detachments = this.overlayRef.detachments();
1350
- var parentClose = this.parent ? this.parent.closed : rxjs.of();
1351
- var hover = this.parent ? this.parent.hovered()
1352
- .pipe(operators.filter(function (active) { return active !== _this.dropdownItemInstance; }), operators.filter(function () { return _this._opened; })) : rxjs.of();
1353
- return rxjs.merge(backdrop, outsidePointerEvents, parentClose, hover, detachments);
1354
- };
1355
- /** Handles the cases where the user hovers over the trigger. */
1356
- McDropdownTrigger.prototype.handleHover = function () {
1357
- var _this = this;
1358
- // Subscribe to changes in the hovered item in order to toggle the panel.
1359
- if (!this.isNested()) {
1360
- return;
1361
- }
1362
- this.hoverSubscription = this.parent.hovered()
1363
- // Since we might have multiple competing triggers for the same dropdown (e.g. a nested dropdown
1364
- // with different data and triggers), we have to delay it by a tick to ensure that
1365
- // it won't be closed immediately after it is opened.
1366
- .pipe(operators.filter(function (active) { return active === _this.dropdownItemInstance && !active.disabled; }), operators.delay(0, rxjs.asapScheduler))
1367
- .subscribe(function () {
1368
- _this.openedBy = 'mouse';
1369
- // If the same dropdown is used between multiple triggers, it might still be animating
1370
- // while the new trigger tries to re-open it. Wait for the animation to finish
1371
- // before doing so. Also interrupt if the user moves to another item.
1372
- if (_this.dropdown instanceof McDropdown && _this.dropdown.isAnimating) {
1373
- // We need the `delay(0)` here in order to avoid
1374
- // 'changed after checked' errors in some cases. See #12194.
1375
- _this.dropdown.animationDone
1376
- .pipe(operators.take(1), operators.delay(0, rxjs.asapScheduler), operators.takeUntil(_this.parent.hovered()))
1377
- .subscribe(function () { return _this.open(); });
1378
- }
1379
- else {
1380
- _this.open();
1381
- }
1382
- });
1383
- };
1384
- /** Gets the portal that should be attached to the overlay. */
1385
- McDropdownTrigger.prototype.getPortal = function () {
1386
- // Note that we can avoid this check by keeping the portal on the dropdown panel.
1387
- // While it would be cleaner, we'd have to introduce another required method on
1388
- // `McDropdownPanel`, making it harder to consume.
1389
- if (!this.portal || this.portal.templateRef !== this.dropdown.templateRef) {
1390
- this.portal = new portal.TemplatePortal(this.dropdown.templateRef, this.viewContainerRef);
1391
- }
1392
- return this.portal;
1393
- };
1394
- McDropdownTrigger.prototype.getWidth = function () {
1395
- var nativeElement = this.elementRef.nativeElement;
1396
- var _b = window.getComputedStyle(nativeElement), width = _b.width, borderRightWidth = _b.borderRightWidth, borderLeftWidth = _b.borderLeftWidth;
1397
- return parseInt(width) - parseInt(borderRightWidth) - parseInt(borderLeftWidth) + "px";
1398
- };
1399
- return McDropdownTrigger;
1400
- }());
1401
- /** @nocollapse */ McDropdownTrigger.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDropdownTrigger, deps: [{ token: i1__namespace$1.Overlay }, { token: i0__namespace.ElementRef }, { token: i0__namespace.ViewContainerRef }, { token: MC_DROPDOWN_SCROLL_STRATEGY }, { token: McDropdown, optional: true }, { token: McDropdownItem, optional: true, self: true }, { token: i4__namespace.Directionality, optional: true }, { token: i1__namespace.FocusMonitor }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1402
- /** @nocollapse */ McDropdownTrigger.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McDropdownTrigger, selector: "[mcDropdownTriggerFor]", inputs: { data: ["mcDropdownTriggerData", "data"], openByArrowDown: "openByArrowDown", restoreFocus: ["mcDropdownTriggerRestoreFocus", "restoreFocus"], dropdown: ["mcDropdownTriggerFor", "dropdown"] }, outputs: { dropdownOpened: "dropdownOpened", dropdownClosed: "dropdownClosed" }, host: { listeners: { "mousedown": "handleMousedown($event)", "keydown": "handleKeydown($event)", "click": "handleClick($event)" }, properties: { "class.mc-pressed": "opened" }, classAttribute: "mc-dropdown-trigger" }, exportAs: ["mcDropdownTrigger"], ngImport: i0__namespace });
1403
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDropdownTrigger, decorators: [{
1404
- type: i0.Directive,
1405
- args: [{
1406
- selector: "[mcDropdownTriggerFor]",
1407
- exportAs: 'mcDropdownTrigger',
1408
- host: {
1409
- class: 'mc-dropdown-trigger',
1410
- '[class.mc-pressed]': 'opened',
1411
- '(mousedown)': 'handleMousedown($event)',
1412
- '(keydown)': 'handleKeydown($event)',
1413
- '(click)': 'handleClick($event)'
1414
- }
1415
- }]
1416
- }], ctorParameters: function () {
1417
- return [{ type: i1__namespace$1.Overlay }, { type: i0__namespace.ElementRef }, { type: i0__namespace.ViewContainerRef }, { type: undefined, decorators: [{
1418
- type: i0.Inject,
1419
- args: [MC_DROPDOWN_SCROLL_STRATEGY]
1420
- }] }, { type: McDropdown, decorators: [{
1421
- type: i0.Optional
1422
- }] }, { type: McDropdownItem, decorators: [{
1423
- type: i0.Optional
1424
- }, {
1425
- type: i0.Self
1426
- }] }, { type: i4__namespace.Directionality, decorators: [{
1427
- type: i0.Optional
1428
- }] }, { type: i1__namespace.FocusMonitor }];
1429
- }, propDecorators: { data: [{
1430
- type: i0.Input,
1431
- args: ['mcDropdownTriggerData']
1432
- }], openByArrowDown: [{
1433
- type: i0.Input
1434
- }], restoreFocus: [{
1435
- type: i0.Input,
1436
- args: ['mcDropdownTriggerRestoreFocus']
1437
- }], dropdown: [{
1438
- type: i0.Input,
1439
- args: ['mcDropdownTriggerFor']
1440
- }], dropdownOpened: [{
1441
- type: i0.Output
1442
- }], dropdownClosed: [{
1443
- type: i0.Output
1444
- }] } });
1445
-
1446
- var McDropdownModule = /** @class */ (function () {
1447
- function McDropdownModule() {
1448
- }
1449
- return McDropdownModule;
1450
- }());
1451
- /** @nocollapse */ McDropdownModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDropdownModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1452
- /** @nocollapse */ McDropdownModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDropdownModule, declarations: [McDropdown,
1453
- McDropdownItem,
1454
- McDropdownTrigger,
1455
- McDropdownContent], imports: [i3.CommonModule,
1456
- i1$1.OverlayModule,
1457
- i2.McIconModule], exports: [McDropdown,
1458
- McDropdownItem,
1459
- McDropdownTrigger,
1460
- McDropdownContent] });
1461
- /** @nocollapse */ McDropdownModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDropdownModule, providers: [MC_DROPDOWN_SCROLL_STRATEGY_FACTORY_PROVIDER], imports: [[
1462
- i3.CommonModule,
1463
- i1$1.OverlayModule,
1464
- i2.McIconModule
1465
- ]] });
1466
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDropdownModule, decorators: [{
1467
- type: i0.NgModule,
1468
- args: [{
1469
- imports: [
1470
- i3.CommonModule,
1471
- i1$1.OverlayModule,
1472
- i2.McIconModule
1473
- ],
1474
- exports: [
1475
- McDropdown,
1476
- McDropdownItem,
1477
- McDropdownTrigger,
1478
- McDropdownContent
1479
- ],
1480
- declarations: [
1481
- McDropdown,
1482
- McDropdownItem,
1483
- McDropdownTrigger,
1484
- McDropdownContent
1485
- ],
1486
- providers: [MC_DROPDOWN_SCROLL_STRATEGY_FACTORY_PROVIDER]
1487
- }]
1488
- }] });
1489
-
1490
- /**
1491
- * Generated bundle index. Do not edit.
1492
- */
1493
-
1494
- exports.MC_DROPDOWN_DEFAULT_OPTIONS = MC_DROPDOWN_DEFAULT_OPTIONS;
1495
- exports.MC_DROPDOWN_DEFAULT_OPTIONS_FACTORY = MC_DROPDOWN_DEFAULT_OPTIONS_FACTORY;
1496
- exports.MC_DROPDOWN_PANEL = MC_DROPDOWN_PANEL;
1497
- exports.MC_DROPDOWN_SCROLL_STRATEGY = MC_DROPDOWN_SCROLL_STRATEGY;
1498
- exports.MC_DROPDOWN_SCROLL_STRATEGY_FACTORY = MC_DROPDOWN_SCROLL_STRATEGY_FACTORY;
1499
- exports.MC_DROPDOWN_SCROLL_STRATEGY_FACTORY_PROVIDER = MC_DROPDOWN_SCROLL_STRATEGY_FACTORY_PROVIDER;
1500
- exports.McDropdown = McDropdown;
1501
- exports.McDropdownContent = McDropdownContent;
1502
- exports.McDropdownItem = McDropdownItem;
1503
- exports.McDropdownModule = McDropdownModule;
1504
- exports.McDropdownTrigger = McDropdownTrigger;
1505
- exports.NESTED_PANEL_LEFT_PADDING = NESTED_PANEL_LEFT_PADDING;
1506
- exports.NESTED_PANEL_TOP_PADDING = NESTED_PANEL_TOP_PADDING;
1507
- exports.fadeInItems = fadeInItems;
1508
- exports.mcDropdownAnimations = mcDropdownAnimations;
1509
- exports.throwMcDropdownInvalidPositionX = throwMcDropdownInvalidPositionX;
1510
- exports.throwMcDropdownInvalidPositionY = throwMcDropdownInvalidPositionY;
1511
- exports.throwMcDropdownMissingError = throwMcDropdownMissingError;
1512
- exports.transformDropdown = transformDropdown;
1513
-
1514
- Object.defineProperty(exports, '__esModule', { value: true });
1515
-
1516
- }));
1517
- //# sourceMappingURL=ptsecurity-mosaic-dropdown.umd.js.map